Remove with Text
Remove GetEngineeringSpcReview Better error message EnforceCodeStyleInBuild NginxFileSystem Remove Reactors and Working Directory AppSettings Delete self contained Thunder Tests Back to .net8.0 api/v4/InfinityQS ApiExplorerSettings Wafer Counter
This commit is contained in:
24
Server/wwwroot/package/dist/collection/components/badge/badge.css
vendored
Normal file
24
Server/wwwroot/package/dist/collection/components/badge/badge.css
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
:root {
|
||||
--ifx-font-family: "Source Sans 3";
|
||||
font-family: var(--ifx-font-family, sans-serif);
|
||||
}
|
||||
|
||||
:host {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.badge__container {
|
||||
display: inline-flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 4px 8px;
|
||||
gap: 8px;
|
||||
border: 1px solid #EEEDED;
|
||||
background-color: #EEEDED;
|
||||
border-radius: 100px;
|
||||
font-family: var(--ifx-font-family);
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
font-weight: 400;
|
||||
color: #1D1D1D;
|
||||
}
|
21
Server/wwwroot/package/dist/collection/components/badge/badge.e2e.js
vendored
Normal file
21
Server/wwwroot/package/dist/collection/components/badge/badge.e2e.js
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
import { newE2EPage } from "@stencil/core/testing";
|
||||
describe('ifx-badge', () => {
|
||||
it('should render', async () => {
|
||||
const page = await newE2EPage();
|
||||
await page.setContent('<ifx-badge></ifx-badge>');
|
||||
const element = await page.find('ifx-badge');
|
||||
expect(element).toHaveClass('hydrated');
|
||||
});
|
||||
it('should display slotted content', async () => {
|
||||
const page = await newE2EPage();
|
||||
await page.setContent('<ifx-badge>Test content</ifx-badge>');
|
||||
const badgeContent = await page.evaluate(() => {
|
||||
const badge = document.querySelector('ifx-badge');
|
||||
const slot = badge.shadowRoot.querySelector('slot');
|
||||
const nodes = slot.assignedNodes();
|
||||
return nodes[0].textContent;
|
||||
});
|
||||
expect(badgeContent).toBe('Test content');
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=badge.e2e.js.map
|
1
Server/wwwroot/package/dist/collection/components/badge/badge.e2e.js.map
vendored
Normal file
1
Server/wwwroot/package/dist/collection/components/badge/badge.e2e.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"badge.e2e.js","sourceRoot":"","sources":["../../../src/components/badge/badge.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;EAEzB,EAAE,CAAC,eAAe,EAAE,KAAK,IAAI,EAAE;IAC7B,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;IAChC,MAAM,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAAC;IAEjD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC7C,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;EAC1C,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,gCAAgC,EAAE,KAAK,IAAI,EAAE;IAC9C,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;IAChC,MAAM,IAAI,CAAC,UAAU,CAAC,qCAAqC,CAAC,CAAC;IAE7D,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE;MAC5C,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;MAClD,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;MACpD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;MACnC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;IAC9B,CAAC,CAAC,CAAC;IAEH,MAAM,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;EAC5C,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('ifx-badge', () => {\n\n it('should render', async () => {\n const page = await newE2EPage();\n await page.setContent('<ifx-badge></ifx-badge>');\n\n const element = await page.find('ifx-badge');\n expect(element).toHaveClass('hydrated');\n });\n\n it('should display slotted content', async () => {\n const page = await newE2EPage();\n await page.setContent('<ifx-badge>Test content</ifx-badge>');\n\n const badgeContent = await page.evaluate(() => {\n const badge = document.querySelector('ifx-badge');\n const slot = badge.shadowRoot.querySelector('slot');\n const nodes = slot.assignedNodes();\n return nodes[0].textContent;\n });\n\n expect(badgeContent).toBe('Test content');\n });\n\n});\n"]}
|
19
Server/wwwroot/package/dist/collection/components/badge/badge.js
vendored
Normal file
19
Server/wwwroot/package/dist/collection/components/badge/badge.js
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
import { h } from "@stencil/core";
|
||||
export class Badge {
|
||||
render() {
|
||||
return (h("div", { class: "badge__container" }, h("slot", null)));
|
||||
}
|
||||
static get is() { return "ifx-badge"; }
|
||||
static get encapsulation() { return "shadow"; }
|
||||
static get originalStyleUrls() {
|
||||
return {
|
||||
"$": ["badge.scss"]
|
||||
};
|
||||
}
|
||||
static get styleUrls() {
|
||||
return {
|
||||
"$": ["badge.css"]
|
||||
};
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=badge.js.map
|
1
Server/wwwroot/package/dist/collection/components/badge/badge.js.map
vendored
Normal file
1
Server/wwwroot/package/dist/collection/components/badge/badge.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../src/components/badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAO7C,MAAM,OAAO,KAAK;EAEhB,MAAM;IACJ,OAAO,CACL,WAAK,KAAK,EAAC,kBAAkB;MAC3B,eAAQ,CACJ,CACP,CAAC;EACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, h } from '@stencil/core';\n\n@Component({\n tag: 'ifx-badge',\n styleUrl: 'badge.scss',\n shadow: true\n})\nexport class Badge {\n\n render() {\n return (\n <div class=\"badge__container\">\n <slot />\n </div>\n );\n }\n}"]}
|
22
Server/wwwroot/package/dist/collection/components/badge/badge.stories.js
vendored
Normal file
22
Server/wwwroot/package/dist/collection/components/badge/badge.stories.js
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
import { icons } from "@infineon/infineon-icons";
|
||||
export default {
|
||||
title: "Components/Badge",
|
||||
tags: ['autodocs'],
|
||||
args: {
|
||||
label: 'Badge label',
|
||||
icon: false
|
||||
},
|
||||
argTypes: {
|
||||
iconName: {
|
||||
options: Object.values(icons).map(i => i['name']),
|
||||
control: { type: 'select' }
|
||||
}
|
||||
}
|
||||
};
|
||||
const DefaultTemplate = (args) => `<ifx-badge>
|
||||
${args.icon ? `<ifx-icon icon="${args.iconName}"></ifx-icon>` : ""}
|
||||
${args.label}
|
||||
</ifx-badge>`;
|
||||
export const Default = DefaultTemplate.bind({});
|
||||
Default.argTypes = {};
|
||||
//# sourceMappingURL=badge.stories.js.map
|
1
Server/wwwroot/package/dist/collection/components/badge/badge.stories.js.map
vendored
Normal file
1
Server/wwwroot/package/dist/collection/components/badge/badge.stories.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"badge.stories.js","sourceRoot":"","sources":["../../../src/components/badge/badge.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;EACb,KAAK,EAAE,kBAAkB;EACzB,IAAI,EAAE,CAAC,UAAU,CAAC;EAElB,IAAI,EAAE;IACJ,KAAK,EAAE,aAAa;IACpB,IAAI,EAAE,KAAK;GACZ;EAED,QAAQ,EAAE;IACR,QAAQ,EAAE;MACR,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;MACjD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC5B;GACF;CACF,CAAC;AAGF,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,EAAE,CAC/B;MACI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,mBAAmB,IAAI,CAAC,QAAQ,eAAe,CAAC,CAAC,CAAC,EAAE;MAChE,IAAI,CAAC,KAAK;eACD,CAAC;AAGhB,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,OAAO,CAAC,QAAQ,GAAG,EAElB,CAAA","sourcesContent":["import { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: \"Components/Badge\",\n tags: ['autodocs'],\n\n args: {\n label: 'Badge label',\n icon: false\n },\n \n argTypes: { \n iconName: {\n options: Object.values(icons).map(i => i['name']),\n control: { type: 'select' }\n }\n }\n};\n\n\nconst DefaultTemplate = (args) =>\n `<ifx-badge>\n ${args.icon ? `<ifx-icon icon=\"${args.iconName}\"></ifx-icon>` : \"\"}\n ${args.label}\n </ifx-badge>`;\n\n\nexport const Default = DefaultTemplate.bind({});\nDefault.argTypes = {\n\n}\n\n\n\n"]}
|
Reference in New Issue
Block a user