@re-code/ui-components 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/cjs/index-CwGon_W1.js +4501 -0
- package/dist/cjs/index.cjs.js +3 -0
- package/dist/cjs/loader.cjs.js +12 -0
- package/dist/cjs/ui-components.cjs.js +51 -0
- package/dist/cjs/ui-label.cjs.entry.js +26 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/ui-label/ui-label.css +199 -0
- package/dist/collection/components/ui-label/ui-label.js +152 -0
- package/dist/collection/components/ui-label/ui-label.stories.js +67 -0
- package/dist/collection/global/types.js +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +6 -0
- package/dist/components/index2.js +4488 -0
- package/dist/components/ui-label.d.ts +11 -0
- package/dist/components/ui-label.js +51 -0
- package/dist/esm/index-CDwILsz8.js +4488 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +10 -0
- package/dist/esm/ui-components.js +47 -0
- package/dist/esm/ui-label.entry.js +24 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/ui-label/ui-label.d.ts +9 -0
- package/dist/types/components/ui-label/ui-label.stories.d.ts +4 -0
- package/dist/types/components.d.ts +67 -0
- package/dist/types/global/types.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +1839 -0
- package/dist/types/ui-components/.stencil/ui-label.d.ts +15 -0
- package/dist/types/ui-components/.stencil/ui-label.stories.d.ts +10 -0
- package/dist/ui-components/index-CDwILsz8.js +4488 -0
- package/dist/ui-components/index-Ds6GXFU9.js +4491 -0
- package/dist/ui-components/index-Ds6GXFU9.js.map +1 -0
- package/dist/ui-components/index-NEMW1Jjc.js +4491 -0
- package/dist/ui-components/index-NEMW1Jjc.js.map +1 -0
- package/dist/ui-components/index.esm.js +1 -0
- package/dist/ui-components/index.esm.js.map +1 -0
- package/dist/ui-components/ui-components.css +28 -0
- package/dist/ui-components/ui-components.esm.js +47 -0
- package/dist/ui-components/ui-components.esm.js.map +1 -0
- package/dist/ui-components/ui-label.entry.js +24 -0
- package/dist/ui-components/ui-label.entry.js.map +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiLabel extends Components.UiLabel, HTMLElement {}
|
|
4
|
+
export const UiLabel: {
|
|
5
|
+
prototype: UiLabel;
|
|
6
|
+
new (): UiLabel;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, h, d as Host, t as transformTag } from './index2.js';
|
|
2
|
+
|
|
3
|
+
const uiLabelCss = () => `:host{display:inline-block;font-family:"Roboto", system-ui, -apple-system, sans-serif;color:#1D1B20;transition:all 0.2s ease-in-out}:host(.ui-label--display-large){font-size:57px;line-height:64px;font-weight:400;letter-spacing:-0.25px}:host(.ui-label--display-medium){font-size:45px;line-height:52px;font-weight:400;letter-spacing:0px}:host(.ui-label--display-small){font-size:36px;line-height:44px;font-weight:400;letter-spacing:0px}:host(.ui-label--headline-large){font-size:32px;line-height:40px;font-weight:400;letter-spacing:0px}:host(.ui-label--headline-medium){font-size:28px;line-height:36px;font-weight:400;letter-spacing:0px}:host(.ui-label--headline-small){font-size:24px;line-height:32px;font-weight:400;letter-spacing:0px}:host(.ui-label--title-large){font-size:22px;line-height:28px;font-weight:400;letter-spacing:0px}:host(.ui-label--title-medium){font-size:16px;line-height:24px;font-weight:500;letter-spacing:0.15px}:host(.ui-label--title-small){font-size:14px;line-height:20px;font-weight:500;letter-spacing:0.1px}:host(.ui-label--body-large){font-size:16px;line-height:24px;font-weight:400;letter-spacing:0.5px}:host(.ui-label--body-medium){font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.25px}:host(.ui-label--body-small){font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.4px}:host(.ui-label--label-large){font-size:14px;line-height:20px;font-weight:500;letter-spacing:0.1px}:host(.ui-label--label-medium){font-size:12px;line-height:16px;font-weight:500;letter-spacing:0.5px}:host(.ui-label--label-small){font-size:11px;line-height:16px;font-weight:500;letter-spacing:0.5px}:host(.ui-label--color-primary){color:#6750A4}:host(.ui-label--color-on-primary){color:#FFFFFF}:host(.ui-label--color-primary-container){color:#EADDFF}:host(.ui-label--color-on-primary-container){color:#21005D}:host(.ui-label--color-secondary){color:#625B71}:host(.ui-label--color-on-secondary){color:#FFFFFF}:host(.ui-label--color-secondary-container){color:#E8DEF8}:host(.ui-label--color-on-secondary-container){color:#1D192B}:host(.ui-label--color-tertiary){color:#7D5260}:host(.ui-label--color-on-tertiary){color:#FFFFFF}:host(.ui-label--color-tertiary-container){color:#FFD8E4}:host(.ui-label--color-on-tertiary-container){color:#31111D}:host(.ui-label--color-error){color:#B3261E}:host(.ui-label--color-on-error){color:#FFFFFF}:host(.ui-label--color-surface){color:#FEF7FF}:host(.ui-label--color-on-surface){color:#1D1B20}:host(.ui-label--color-on-surface-variant){color:#49454F}:host(.ui-label--color-outline){color:#79747E}:host(.ui-label--weight-normal){font-weight:400}:host(.ui-label--weight-medium){font-weight:500}:host(.ui-label--weight-bold){font-weight:700}:host(.ui-label--italic){font-style:italic !important}`;
|
|
4
|
+
|
|
5
|
+
const UiLabel$1 = /*@__PURE__*/ proxyCustomElement(class UiLabel extends H {
|
|
6
|
+
constructor(registerHost) {
|
|
7
|
+
super();
|
|
8
|
+
if (registerHost !== false) {
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
}
|
|
11
|
+
this.__attachShadow();
|
|
12
|
+
this.variant = 'body-medium';
|
|
13
|
+
this.color = 'on-surface';
|
|
14
|
+
this.italic = false;
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
const classMap = {
|
|
18
|
+
[`ui-label--${this.variant}`]: true,
|
|
19
|
+
[`ui-label--color-${this.color}`]: true,
|
|
20
|
+
[`ui-label--weight-${this.weight}`]: !!this.weight,
|
|
21
|
+
'ui-label--italic': this.italic
|
|
22
|
+
};
|
|
23
|
+
return (h(Host, { key: 'aa90dba620bb302ef1f8d2d9452eab3cb1c993db', class: classMap }, h("span", { key: '09e6a2daad525a3946a4d926799e866970a70fc3' }, this.label, " ", h("slot", { key: '972f325c8826a2bc3f7d1a36bf5adb4335285904' }))));
|
|
24
|
+
}
|
|
25
|
+
static get style() { return uiLabelCss(); }
|
|
26
|
+
}, [257, "ui-label", {
|
|
27
|
+
"label": [1],
|
|
28
|
+
"variant": [1],
|
|
29
|
+
"color": [1],
|
|
30
|
+
"weight": [1],
|
|
31
|
+
"italic": [4]
|
|
32
|
+
}]);
|
|
33
|
+
function defineCustomElement$1() {
|
|
34
|
+
if (typeof customElements === "undefined") {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const components = ["ui-label"];
|
|
38
|
+
components.forEach(tagName => { switch (tagName) {
|
|
39
|
+
case "ui-label":
|
|
40
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
41
|
+
customElements.define(transformTag(tagName), UiLabel$1);
|
|
42
|
+
}
|
|
43
|
+
break;
|
|
44
|
+
} });
|
|
45
|
+
}
|
|
46
|
+
defineCustomElement$1(UiLabel$1);
|
|
47
|
+
|
|
48
|
+
const UiLabel = UiLabel$1;
|
|
49
|
+
const defineCustomElement = defineCustomElement$1;
|
|
50
|
+
|
|
51
|
+
export { UiLabel, defineCustomElement };
|