@devschile/chucao 1.1.0 → 1.3.0
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/README.md +28 -331
- package/dist/chucao/chucao.css +2 -2
- package/dist/chucao/chucao.esm.js +1 -1
- package/dist/chucao/index.esm.js +1 -1
- package/dist/chucao/index.esm.js.map +1 -1
- package/dist/chucao/p-94a2b1be.entry.js +2 -0
- package/dist/chucao/p-94a2b1be.entry.js.map +1 -0
- package/dist/chucao/p-COo5t8-6.js +3 -0
- package/dist/chucao/p-COo5t8-6.js.map +1 -0
- package/dist/cjs/ch-badge_5.cjs.entry.js +6 -6
- package/dist/cjs/ch-badge_5.cjs.entry.js.map +1 -1
- package/dist/cjs/chucao.cjs.js +1 -1
- package/dist/cjs/{index-Do8JpTKQ.js → index-yB1Ik3Sa.js} +3 -3
- package/dist/cjs/index-yB1Ik3Sa.js.map +1 -0
- package/dist/cjs/index.cjs.js +148 -7
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ch-badge/ch-badge.css +5 -5
- package/dist/collection/components/ch-button/ch-button.css +19 -19
- package/dist/collection/components/ch-card/ch-card.css +10 -10
- package/dist/collection/components/ch-input/ch-input.css +10 -10
- package/dist/collection/components/ch-select/ch-select.css +10 -10
- package/dist/collection/tokens/tokens.js +108 -6
- package/dist/collection/tokens/tokens.js.map +1 -1
- package/dist/collection/tokens/types.js.map +1 -1
- package/dist/components/ch-badge.js +1 -1
- package/dist/components/ch-badge.js.map +1 -1
- package/dist/components/ch-button.js +1 -1
- package/dist/components/ch-button.js.map +1 -1
- package/dist/components/ch-card.js +1 -1
- package/dist/components/ch-card.js.map +1 -1
- package/dist/components/ch-input.js +1 -1
- package/dist/components/ch-input.js.map +1 -1
- package/dist/components/ch-select.js +1 -1
- package/dist/components/ch-select.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-DCKzDjxR.js +2 -0
- package/dist/components/p-DCKzDjxR.js.map +1 -0
- package/dist/esm/ch-badge_5.entry.js +6 -6
- package/dist/esm/ch-badge_5.entry.js.map +1 -1
- package/dist/esm/chucao.js +2 -2
- package/dist/esm/{index-QBEhw78y.js → index-COo5t8-6.js} +3 -3
- package/dist/esm/index-COo5t8-6.js.map +1 -0
- package/dist/esm/index.js +109 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/types/tokens/tokens.d.ts +104 -2
- package/dist/types/tokens/types.d.ts +13 -4
- package/package.json +2 -1
- package/dist/chucao/p-2eeff869.entry.js +0 -2
- package/dist/chucao/p-2eeff869.entry.js.map +0 -1
- package/dist/chucao/p-QBEhw78y.js +0 -3
- package/dist/chucao/p-QBEhw78y.js.map +0 -1
- package/dist/cjs/index-Do8JpTKQ.js.map +0 -1
- package/dist/components/p-BImgfbXx.js +0 -2
- package/dist/components/p-BImgfbXx.js.map +0 -1
- package/dist/esm/index-QBEhw78y.js.map +0 -1
package/dist/esm/index.js
CHANGED
|
@@ -8,6 +8,7 @@ const colorBorderDefault = 'rgba(255, 255, 255, 0.08)';
|
|
|
8
8
|
const colorBorderHover = 'rgba(45, 212, 191, 0.3)';
|
|
9
9
|
const colorAccentDefault = '#2dd4bf';
|
|
10
10
|
const colorAccentHover = '#5ee8d4';
|
|
11
|
+
const colorAccentText = '#06210f';
|
|
11
12
|
const colorStatusPositive = '#4ade80';
|
|
12
13
|
const colorStatusPositiveBackground = 'rgba(34, 197, 94, 0.18)';
|
|
13
14
|
const colorStatusWarning = '#f87171';
|
|
@@ -19,10 +20,48 @@ const colorBrandHuemulLight = '#b45b38';
|
|
|
19
20
|
const colorBrandStroke = '#1d1d1b';
|
|
20
21
|
const typographyBody = 'Fira Sans, Droid Sans, Helvetica Neue, sans-serif';
|
|
21
22
|
const typographyHeading = 'Inconsolata, monospace';
|
|
22
|
-
const
|
|
23
|
+
const typographySizeXs = '0.68rem';
|
|
24
|
+
const typographySizeSm = '0.85rem';
|
|
25
|
+
const typographySizeMd = '1rem';
|
|
26
|
+
const typographySizeLg = '1.25rem';
|
|
27
|
+
const typographySizeXl = '1.5rem';
|
|
28
|
+
const typographyWeightRegular = '400';
|
|
29
|
+
const typographyWeightSemibold = '600';
|
|
30
|
+
const typographyWeightBold = '700';
|
|
31
|
+
const typographyTrackingBadge = '0.03em';
|
|
32
|
+
const spacing2xs = '0.18rem';
|
|
33
|
+
const spacingXs = '0.25rem';
|
|
34
|
+
const spacingSm = '0.35rem';
|
|
35
|
+
const spacingMd = '0.5rem';
|
|
36
|
+
const spacingLg = '0.6rem';
|
|
37
|
+
const spacingXl = '0.8rem';
|
|
38
|
+
const spacing2xl = '1rem';
|
|
39
|
+
const spacing3xl = '1.25rem';
|
|
40
|
+
const spacing4xl = '1.35rem';
|
|
41
|
+
const spacing5xl = '1.5rem';
|
|
42
|
+
const spacing6xl = '2rem';
|
|
43
|
+
const spacingShift = '2px';
|
|
44
|
+
const spacingElevate = '1px';
|
|
45
|
+
const radiusSm = '6px';
|
|
46
|
+
const radiusMd = '8px';
|
|
47
|
+
const radiusPill = '999px';
|
|
48
|
+
const borderWidth = '1px';
|
|
49
|
+
const borderAccentBar = '3px';
|
|
50
|
+
const shadowFocusRing = '0 0 0 3px rgba(45, 212, 191, 0.12)';
|
|
51
|
+
const shadowCardHover = '0 4px 20px rgba(45, 212, 191, 0.06)';
|
|
52
|
+
const effectBlur = '10px';
|
|
53
|
+
const durationFast = '150ms';
|
|
54
|
+
const durationNormal = '200ms';
|
|
55
|
+
const easingDefault = 'ease';
|
|
56
|
+
const focusOutlineWidth = '2px';
|
|
57
|
+
const focusOutlineOffset = '2px';
|
|
58
|
+
const opacityDisabled = 0.5;
|
|
59
|
+
const zIndexBase = 0;
|
|
60
|
+
const zIndexDropdown = 100;
|
|
61
|
+
const zIndexModal = 1000;
|
|
23
62
|
const layoutMaxWidth = '68rem';
|
|
24
63
|
const tokens = {
|
|
25
|
-
color: {
|
|
64
|
+
'color': {
|
|
26
65
|
background: {
|
|
27
66
|
base: '#100a1c',
|
|
28
67
|
topGlow: '#201e40',
|
|
@@ -39,6 +78,7 @@ const tokens = {
|
|
|
39
78
|
accent: {
|
|
40
79
|
default: '#2dd4bf',
|
|
41
80
|
hover: '#5ee8d4',
|
|
81
|
+
text: '#06210f',
|
|
42
82
|
},
|
|
43
83
|
status: {
|
|
44
84
|
positive: '#4ade80',
|
|
@@ -56,19 +96,81 @@ const tokens = {
|
|
|
56
96
|
stroke: '#1d1d1b',
|
|
57
97
|
},
|
|
58
98
|
},
|
|
59
|
-
typography: {
|
|
99
|
+
'typography': {
|
|
60
100
|
body: 'Fira Sans, Droid Sans, Helvetica Neue, sans-serif',
|
|
61
101
|
heading: 'Inconsolata, monospace',
|
|
102
|
+
size: {
|
|
103
|
+
xs: '0.68rem',
|
|
104
|
+
sm: '0.85rem',
|
|
105
|
+
md: '1rem',
|
|
106
|
+
lg: '1.25rem',
|
|
107
|
+
xl: '1.5rem',
|
|
108
|
+
},
|
|
109
|
+
weight: {
|
|
110
|
+
regular: '400',
|
|
111
|
+
semibold: '600',
|
|
112
|
+
bold: '700',
|
|
113
|
+
},
|
|
114
|
+
tracking: {
|
|
115
|
+
badge: '0.03em',
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
'spacing': {
|
|
119
|
+
'2xs': '0.18rem',
|
|
120
|
+
'xs': '0.25rem',
|
|
121
|
+
'sm': '0.35rem',
|
|
122
|
+
'md': '0.5rem',
|
|
123
|
+
'lg': '0.6rem',
|
|
124
|
+
'xl': '0.8rem',
|
|
125
|
+
'2xl': '1rem',
|
|
126
|
+
'3xl': '1.25rem',
|
|
127
|
+
'4xl': '1.35rem',
|
|
128
|
+
'5xl': '1.5rem',
|
|
129
|
+
'6xl': '2rem',
|
|
130
|
+
'shift': '2px',
|
|
131
|
+
'elevate': '1px',
|
|
132
|
+
},
|
|
133
|
+
'radius': {
|
|
134
|
+
sm: '6px',
|
|
135
|
+
md: '8px',
|
|
136
|
+
pill: '999px',
|
|
137
|
+
},
|
|
138
|
+
'border': {
|
|
139
|
+
width: '1px',
|
|
140
|
+
accentBar: '3px',
|
|
141
|
+
},
|
|
142
|
+
'shadow': {
|
|
143
|
+
focusRing: '0 0 0 3px rgba(45, 212, 191, 0.12)',
|
|
144
|
+
cardHover: '0 4px 20px rgba(45, 212, 191, 0.06)',
|
|
145
|
+
},
|
|
146
|
+
'effect': {
|
|
147
|
+
blur: '10px',
|
|
148
|
+
},
|
|
149
|
+
'duration': {
|
|
150
|
+
fast: '150ms',
|
|
151
|
+
normal: '200ms',
|
|
152
|
+
},
|
|
153
|
+
'easing': {
|
|
154
|
+
default: 'ease',
|
|
155
|
+
},
|
|
156
|
+
'focus': {
|
|
157
|
+
outlineWidth: '2px',
|
|
158
|
+
outlineOffset: '2px',
|
|
159
|
+
},
|
|
160
|
+
'opacity': {
|
|
161
|
+
disabled: 0.5,
|
|
62
162
|
},
|
|
63
|
-
|
|
64
|
-
|
|
163
|
+
'z-index': {
|
|
164
|
+
base: 0,
|
|
165
|
+
dropdown: 100,
|
|
166
|
+
modal: 1000,
|
|
65
167
|
},
|
|
66
|
-
layout: {
|
|
168
|
+
'layout': {
|
|
67
169
|
maxWidth: '68rem',
|
|
68
170
|
},
|
|
69
171
|
};
|
|
70
172
|
|
|
71
|
-
export { colorAccentDefault, colorAccentHover, colorBackgroundBase, colorBackgroundBottomGlow, colorBackgroundTopGlow, colorBorderDefault, colorBorderHover, colorBrandHuemulDark, colorBrandHuemulLight, colorBrandStroke, colorStatusPositive, colorStatusPositiveBackground, colorStatusWarning, colorStatusWarningBackground, colorSurfaceDefault, colorSurfaceHover, colorTextPrimary, colorTextSecondary, layoutMaxWidth,
|
|
173
|
+
export { borderAccentBar, borderWidth, colorAccentDefault, colorAccentHover, colorAccentText, colorBackgroundBase, colorBackgroundBottomGlow, colorBackgroundTopGlow, colorBorderDefault, colorBorderHover, colorBrandHuemulDark, colorBrandHuemulLight, colorBrandStroke, colorStatusPositive, colorStatusPositiveBackground, colorStatusWarning, colorStatusWarningBackground, colorSurfaceDefault, colorSurfaceHover, colorTextPrimary, colorTextSecondary, durationFast, durationNormal, easingDefault, effectBlur, focusOutlineOffset, focusOutlineWidth, layoutMaxWidth, opacityDisabled, radiusMd, radiusPill, radiusSm, shadowCardHover, shadowFocusRing, spacing2xl, spacing2xs, spacing3xl, spacing4xl, spacing5xl, spacing6xl, spacingElevate, spacingLg, spacingMd, spacingShift, spacingSm, spacingXl, spacingXs, tokens, typographyBody, typographyHeading, typographySizeLg, typographySizeMd, typographySizeSm, typographySizeXl, typographySizeXs, typographyTrackingBadge, typographyWeightBold, typographyWeightRegular, typographyWeightSemibold, zIndexBase, zIndexDropdown, zIndexModal };
|
|
72
174
|
//# sourceMappingURL=index.js.map
|
|
73
175
|
|
|
74
176
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["src/tokens/tokens.ts"],"sourcesContent":["/* Generated by toki v1.10.0 — do not edit */\n\nexport const colorBackgroundBase = '#100a1c';\nexport const colorBackgroundTopGlow = '#201e40';\nexport const colorBackgroundBottomGlow = '#261226';\nexport const colorSurfaceDefault = 'rgba(32, 30, 64, 0.6)';\nexport const colorSurfaceHover = 'rgba(45, 212, 191, 0.08)';\nexport const colorBorderDefault = 'rgba(255, 255, 255, 0.08)';\nexport const colorBorderHover = 'rgba(45, 212, 191, 0.3)';\nexport const colorAccentDefault = '#2dd4bf';\nexport const colorAccentHover = '#5ee8d4';\nexport const colorStatusPositive = '#4ade80';\nexport const colorStatusPositiveBackground = 'rgba(34, 197, 94, 0.18)';\nexport const colorStatusWarning = '#f87171';\nexport const colorStatusWarningBackground = 'rgba(248, 113, 113, 0.15)';\nexport const colorTextPrimary = '#ffffff';\nexport const colorTextSecondary = 'rgba(255, 255, 255, 0.55)';\nexport const colorBrandHuemulDark = '#85422b';\nexport const colorBrandHuemulLight = '#b45b38';\nexport const colorBrandStroke = '#1d1d1b';\nexport const typographyBody = 'Fira Sans, Droid Sans, Helvetica Neue, sans-serif';\nexport const typographyHeading = 'Inconsolata, monospace';\nexport const
|
|
1
|
+
{"version":3,"file":"index.js","sources":["src/tokens/tokens.ts"],"sourcesContent":["/* Generated by toki v1.10.0 — do not edit */\n\nexport const colorBackgroundBase = '#100a1c';\nexport const colorBackgroundTopGlow = '#201e40';\nexport const colorBackgroundBottomGlow = '#261226';\nexport const colorSurfaceDefault = 'rgba(32, 30, 64, 0.6)';\nexport const colorSurfaceHover = 'rgba(45, 212, 191, 0.08)';\nexport const colorBorderDefault = 'rgba(255, 255, 255, 0.08)';\nexport const colorBorderHover = 'rgba(45, 212, 191, 0.3)';\nexport const colorAccentDefault = '#2dd4bf';\nexport const colorAccentHover = '#5ee8d4';\nexport const colorAccentText = '#06210f';\nexport const colorStatusPositive = '#4ade80';\nexport const colorStatusPositiveBackground = 'rgba(34, 197, 94, 0.18)';\nexport const colorStatusWarning = '#f87171';\nexport const colorStatusWarningBackground = 'rgba(248, 113, 113, 0.15)';\nexport const colorTextPrimary = '#ffffff';\nexport const colorTextSecondary = 'rgba(255, 255, 255, 0.55)';\nexport const colorBrandHuemulDark = '#85422b';\nexport const colorBrandHuemulLight = '#b45b38';\nexport const colorBrandStroke = '#1d1d1b';\nexport const typographyBody = 'Fira Sans, Droid Sans, Helvetica Neue, sans-serif';\nexport const typographyHeading = 'Inconsolata, monospace';\nexport const typographySizeXs = '0.68rem';\nexport const typographySizeSm = '0.85rem';\nexport const typographySizeMd = '1rem';\nexport const typographySizeLg = '1.25rem';\nexport const typographySizeXl = '1.5rem';\nexport const typographyWeightRegular = '400';\nexport const typographyWeightSemibold = '600';\nexport const typographyWeightBold = '700';\nexport const typographyTrackingBadge = '0.03em';\nexport const spacing2xs = '0.18rem';\nexport const spacingXs = '0.25rem';\nexport const spacingSm = '0.35rem';\nexport const spacingMd = '0.5rem';\nexport const spacingLg = '0.6rem';\nexport const spacingXl = '0.8rem';\nexport const spacing2xl = '1rem';\nexport const spacing3xl = '1.25rem';\nexport const spacing4xl = '1.35rem';\nexport const spacing5xl = '1.5rem';\nexport const spacing6xl = '2rem';\nexport const spacingShift = '2px';\nexport const spacingElevate = '1px';\nexport const radiusSm = '6px';\nexport const radiusMd = '8px';\nexport const radiusPill = '999px';\nexport const borderWidth = '1px';\nexport const borderAccentBar = '3px';\nexport const shadowFocusRing = '0 0 0 3px rgba(45, 212, 191, 0.12)';\nexport const shadowCardHover = '0 4px 20px rgba(45, 212, 191, 0.06)';\nexport const effectBlur = '10px';\nexport const durationFast = '150ms';\nexport const durationNormal = '200ms';\nexport const easingDefault = 'ease';\nexport const focusOutlineWidth = '2px';\nexport const focusOutlineOffset = '2px';\nexport const opacityDisabled = 0.5;\nexport const zIndexBase = 0;\nexport const zIndexDropdown = 100;\nexport const zIndexModal = 1000;\nexport const layoutMaxWidth = '68rem';\n\nexport const tokens = {\n 'color': {\n background: {\n base: '#100a1c',\n topGlow: '#201e40',\n bottomGlow: '#261226',\n },\n surface: {\n default: 'rgba(32, 30, 64, 0.6)',\n hover: 'rgba(45, 212, 191, 0.08)',\n },\n border: {\n default: 'rgba(255, 255, 255, 0.08)',\n hover: 'rgba(45, 212, 191, 0.3)',\n },\n accent: {\n default: '#2dd4bf',\n hover: '#5ee8d4',\n text: '#06210f',\n },\n status: {\n positive: '#4ade80',\n positiveBackground: 'rgba(34, 197, 94, 0.18)',\n warning: '#f87171',\n warningBackground: 'rgba(248, 113, 113, 0.15)',\n },\n text: {\n primary: '#ffffff',\n secondary: 'rgba(255, 255, 255, 0.55)',\n },\n brand: {\n huemulDark: '#85422b',\n huemulLight: '#b45b38',\n stroke: '#1d1d1b',\n },\n },\n 'typography': {\n body: 'Fira Sans, Droid Sans, Helvetica Neue, sans-serif',\n heading: 'Inconsolata, monospace',\n size: {\n xs: '0.68rem',\n sm: '0.85rem',\n md: '1rem',\n lg: '1.25rem',\n xl: '1.5rem',\n },\n weight: {\n regular: '400',\n semibold: '600',\n bold: '700',\n },\n tracking: {\n badge: '0.03em',\n },\n },\n 'spacing': {\n '2xs': '0.18rem',\n 'xs': '0.25rem',\n 'sm': '0.35rem',\n 'md': '0.5rem',\n 'lg': '0.6rem',\n 'xl': '0.8rem',\n '2xl': '1rem',\n '3xl': '1.25rem',\n '4xl': '1.35rem',\n '5xl': '1.5rem',\n '6xl': '2rem',\n 'shift': '2px',\n 'elevate': '1px',\n },\n 'radius': {\n sm: '6px',\n md: '8px',\n pill: '999px',\n },\n 'border': {\n width: '1px',\n accentBar: '3px',\n },\n 'shadow': {\n focusRing: '0 0 0 3px rgba(45, 212, 191, 0.12)',\n cardHover: '0 4px 20px rgba(45, 212, 191, 0.06)',\n },\n 'effect': {\n blur: '10px',\n },\n 'duration': {\n fast: '150ms',\n normal: '200ms',\n },\n 'easing': {\n default: 'ease',\n },\n 'focus': {\n outlineWidth: '2px',\n outlineOffset: '2px',\n },\n 'opacity': {\n disabled: 0.5,\n },\n 'z-index': {\n base: 0,\n dropdown: 100,\n modal: 1000,\n },\n 'layout': {\n maxWidth: '68rem',\n },\n} as const;\n\nexport type TokenCategory = keyof typeof tokens;\n"],"names":[],"mappings":"AAAA;AAEO,MAAM,mBAAmB,GAAG;AAC5B,MAAM,sBAAsB,GAAG;AAC/B,MAAM,yBAAyB,GAAG;AAClC,MAAM,mBAAmB,GAAG;AAC5B,MAAM,iBAAiB,GAAG;AAC1B,MAAM,kBAAkB,GAAG;AAC3B,MAAM,gBAAgB,GAAG;AACzB,MAAM,kBAAkB,GAAG;AAC3B,MAAM,gBAAgB,GAAG;AACzB,MAAM,eAAe,GAAG;AACxB,MAAM,mBAAmB,GAAG;AAC5B,MAAM,6BAA6B,GAAG;AACtC,MAAM,kBAAkB,GAAG;AAC3B,MAAM,4BAA4B,GAAG;AACrC,MAAM,gBAAgB,GAAG;AACzB,MAAM,kBAAkB,GAAG;AAC3B,MAAM,oBAAoB,GAAG;AA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AA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,QAAQ,EAAE,OAAO;AAClB,KAAA;;;;;"}
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as globalScripts, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { g as globalScripts, b as bootstrapLazy } from './index-COo5t8-6.js';
|
|
2
|
+
export { s as setNonce } from './index-COo5t8-6.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = async (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -7,6 +7,7 @@ export declare const colorBorderDefault = "rgba(255, 255, 255, 0.08)";
|
|
|
7
7
|
export declare const colorBorderHover = "rgba(45, 212, 191, 0.3)";
|
|
8
8
|
export declare const colorAccentDefault = "#2dd4bf";
|
|
9
9
|
export declare const colorAccentHover = "#5ee8d4";
|
|
10
|
+
export declare const colorAccentText = "#06210f";
|
|
10
11
|
export declare const colorStatusPositive = "#4ade80";
|
|
11
12
|
export declare const colorStatusPositiveBackground = "rgba(34, 197, 94, 0.18)";
|
|
12
13
|
export declare const colorStatusWarning = "#f87171";
|
|
@@ -18,7 +19,45 @@ export declare const colorBrandHuemulLight = "#b45b38";
|
|
|
18
19
|
export declare const colorBrandStroke = "#1d1d1b";
|
|
19
20
|
export declare const typographyBody = "Fira Sans, Droid Sans, Helvetica Neue, sans-serif";
|
|
20
21
|
export declare const typographyHeading = "Inconsolata, monospace";
|
|
21
|
-
export declare const
|
|
22
|
+
export declare const typographySizeXs = "0.68rem";
|
|
23
|
+
export declare const typographySizeSm = "0.85rem";
|
|
24
|
+
export declare const typographySizeMd = "1rem";
|
|
25
|
+
export declare const typographySizeLg = "1.25rem";
|
|
26
|
+
export declare const typographySizeXl = "1.5rem";
|
|
27
|
+
export declare const typographyWeightRegular = "400";
|
|
28
|
+
export declare const typographyWeightSemibold = "600";
|
|
29
|
+
export declare const typographyWeightBold = "700";
|
|
30
|
+
export declare const typographyTrackingBadge = "0.03em";
|
|
31
|
+
export declare const spacing2xs = "0.18rem";
|
|
32
|
+
export declare const spacingXs = "0.25rem";
|
|
33
|
+
export declare const spacingSm = "0.35rem";
|
|
34
|
+
export declare const spacingMd = "0.5rem";
|
|
35
|
+
export declare const spacingLg = "0.6rem";
|
|
36
|
+
export declare const spacingXl = "0.8rem";
|
|
37
|
+
export declare const spacing2xl = "1rem";
|
|
38
|
+
export declare const spacing3xl = "1.25rem";
|
|
39
|
+
export declare const spacing4xl = "1.35rem";
|
|
40
|
+
export declare const spacing5xl = "1.5rem";
|
|
41
|
+
export declare const spacing6xl = "2rem";
|
|
42
|
+
export declare const spacingShift = "2px";
|
|
43
|
+
export declare const spacingElevate = "1px";
|
|
44
|
+
export declare const radiusSm = "6px";
|
|
45
|
+
export declare const radiusMd = "8px";
|
|
46
|
+
export declare const radiusPill = "999px";
|
|
47
|
+
export declare const borderWidth = "1px";
|
|
48
|
+
export declare const borderAccentBar = "3px";
|
|
49
|
+
export declare const shadowFocusRing = "0 0 0 3px rgba(45, 212, 191, 0.12)";
|
|
50
|
+
export declare const shadowCardHover = "0 4px 20px rgba(45, 212, 191, 0.06)";
|
|
51
|
+
export declare const effectBlur = "10px";
|
|
52
|
+
export declare const durationFast = "150ms";
|
|
53
|
+
export declare const durationNormal = "200ms";
|
|
54
|
+
export declare const easingDefault = "ease";
|
|
55
|
+
export declare const focusOutlineWidth = "2px";
|
|
56
|
+
export declare const focusOutlineOffset = "2px";
|
|
57
|
+
export declare const opacityDisabled = 0.5;
|
|
58
|
+
export declare const zIndexBase = 0;
|
|
59
|
+
export declare const zIndexDropdown = 100;
|
|
60
|
+
export declare const zIndexModal = 1000;
|
|
22
61
|
export declare const layoutMaxWidth = "68rem";
|
|
23
62
|
export declare const tokens: {
|
|
24
63
|
readonly color: {
|
|
@@ -38,6 +77,7 @@ export declare const tokens: {
|
|
|
38
77
|
readonly accent: {
|
|
39
78
|
readonly default: "#2dd4bf";
|
|
40
79
|
readonly hover: "#5ee8d4";
|
|
80
|
+
readonly text: "#06210f";
|
|
41
81
|
};
|
|
42
82
|
readonly status: {
|
|
43
83
|
readonly positive: "#4ade80";
|
|
@@ -58,9 +98,71 @@ export declare const tokens: {
|
|
|
58
98
|
readonly typography: {
|
|
59
99
|
readonly body: "Fira Sans, Droid Sans, Helvetica Neue, sans-serif";
|
|
60
100
|
readonly heading: "Inconsolata, monospace";
|
|
101
|
+
readonly size: {
|
|
102
|
+
readonly xs: "0.68rem";
|
|
103
|
+
readonly sm: "0.85rem";
|
|
104
|
+
readonly md: "1rem";
|
|
105
|
+
readonly lg: "1.25rem";
|
|
106
|
+
readonly xl: "1.5rem";
|
|
107
|
+
};
|
|
108
|
+
readonly weight: {
|
|
109
|
+
readonly regular: "400";
|
|
110
|
+
readonly semibold: "600";
|
|
111
|
+
readonly bold: "700";
|
|
112
|
+
};
|
|
113
|
+
readonly tracking: {
|
|
114
|
+
readonly badge: "0.03em";
|
|
115
|
+
};
|
|
61
116
|
};
|
|
62
117
|
readonly spacing: {
|
|
63
|
-
readonly
|
|
118
|
+
readonly '2xs': "0.18rem";
|
|
119
|
+
readonly xs: "0.25rem";
|
|
120
|
+
readonly sm: "0.35rem";
|
|
121
|
+
readonly md: "0.5rem";
|
|
122
|
+
readonly lg: "0.6rem";
|
|
123
|
+
readonly xl: "0.8rem";
|
|
124
|
+
readonly '2xl': "1rem";
|
|
125
|
+
readonly '3xl': "1.25rem";
|
|
126
|
+
readonly '4xl': "1.35rem";
|
|
127
|
+
readonly '5xl': "1.5rem";
|
|
128
|
+
readonly '6xl': "2rem";
|
|
129
|
+
readonly shift: "2px";
|
|
130
|
+
readonly elevate: "1px";
|
|
131
|
+
};
|
|
132
|
+
readonly radius: {
|
|
133
|
+
readonly sm: "6px";
|
|
134
|
+
readonly md: "8px";
|
|
135
|
+
readonly pill: "999px";
|
|
136
|
+
};
|
|
137
|
+
readonly border: {
|
|
138
|
+
readonly width: "1px";
|
|
139
|
+
readonly accentBar: "3px";
|
|
140
|
+
};
|
|
141
|
+
readonly shadow: {
|
|
142
|
+
readonly focusRing: "0 0 0 3px rgba(45, 212, 191, 0.12)";
|
|
143
|
+
readonly cardHover: "0 4px 20px rgba(45, 212, 191, 0.06)";
|
|
144
|
+
};
|
|
145
|
+
readonly effect: {
|
|
146
|
+
readonly blur: "10px";
|
|
147
|
+
};
|
|
148
|
+
readonly duration: {
|
|
149
|
+
readonly fast: "150ms";
|
|
150
|
+
readonly normal: "200ms";
|
|
151
|
+
};
|
|
152
|
+
readonly easing: {
|
|
153
|
+
readonly default: "ease";
|
|
154
|
+
};
|
|
155
|
+
readonly focus: {
|
|
156
|
+
readonly outlineWidth: "2px";
|
|
157
|
+
readonly outlineOffset: "2px";
|
|
158
|
+
};
|
|
159
|
+
readonly opacity: {
|
|
160
|
+
readonly disabled: 0.5;
|
|
161
|
+
};
|
|
162
|
+
readonly 'z-index': {
|
|
163
|
+
readonly base: 0;
|
|
164
|
+
readonly dropdown: 100;
|
|
165
|
+
readonly modal: 1000;
|
|
64
166
|
};
|
|
65
167
|
readonly layout: {
|
|
66
168
|
readonly maxWidth: "68rem";
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
export type ColorToken = 'color.background.base' | 'color.background.top-glow' | 'color.background.bottom-glow' | 'color.surface.default' | 'color.surface.hover' | 'color.border.default' | 'color.border.hover' | 'color.accent.default' | 'color.accent.hover' | 'color.status.positive' | 'color.status.positive-background' | 'color.status.warning' | 'color.status.warning-background' | 'color.text.primary' | 'color.text.secondary' | 'color.brand.huemul-dark' | 'color.brand.huemul-light' | 'color.brand.stroke';
|
|
2
|
-
export type TypographyToken = 'typography.body' | 'typography.heading';
|
|
3
|
-
export type SpacingToken = 'spacing.
|
|
1
|
+
export type ColorToken = 'color.background.base' | 'color.background.top-glow' | 'color.background.bottom-glow' | 'color.surface.default' | 'color.surface.hover' | 'color.border.default' | 'color.border.hover' | 'color.accent.default' | 'color.accent.hover' | 'color.accent.text' | 'color.status.positive' | 'color.status.positive-background' | 'color.status.warning' | 'color.status.warning-background' | 'color.text.primary' | 'color.text.secondary' | 'color.brand.huemul-dark' | 'color.brand.huemul-light' | 'color.brand.stroke';
|
|
2
|
+
export type TypographyToken = 'typography.body' | 'typography.heading' | 'typography.size.xs' | 'typography.size.sm' | 'typography.size.md' | 'typography.size.lg' | 'typography.size.xl' | 'typography.weight.regular' | 'typography.weight.semibold' | 'typography.weight.bold' | 'typography.tracking.badge';
|
|
3
|
+
export type SpacingToken = 'spacing.2xs' | 'spacing.xs' | 'spacing.sm' | 'spacing.md' | 'spacing.lg' | 'spacing.xl' | 'spacing.2xl' | 'spacing.3xl' | 'spacing.4xl' | 'spacing.5xl' | 'spacing.6xl' | 'spacing.shift' | 'spacing.elevate';
|
|
4
|
+
export type RadiusToken = 'radius.sm' | 'radius.md' | 'radius.pill';
|
|
5
|
+
export type BorderToken = 'border.width' | 'border.accent-bar';
|
|
6
|
+
export type ShadowToken = 'shadow.focus-ring' | 'shadow.card-hover';
|
|
7
|
+
export type EffectToken = 'effect.blur';
|
|
8
|
+
export type DurationToken = 'duration.fast' | 'duration.normal';
|
|
9
|
+
export type EasingToken = 'easing.default';
|
|
10
|
+
export type FocusToken = 'focus.outline-width' | 'focus.outline-offset';
|
|
11
|
+
export type OpacityToken = 'opacity.disabled';
|
|
12
|
+
export type ZIndexToken = 'z-index.base' | 'z-index.dropdown' | 'z-index.modal';
|
|
4
13
|
export type LayoutToken = 'layout.max-width';
|
|
5
|
-
export type TokenName = ColorToken | TypographyToken | SpacingToken | LayoutToken;
|
|
14
|
+
export type TokenName = ColorToken | TypographyToken | SpacingToken | RadiusToken | BorderToken | ShadowToken | EffectToken | DurationToken | EasingToken | FocusToken | OpacityToken | ZIndexToken | LayoutToken;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devschile/chucao",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Chucao — devsChile design system, packaged as StencilJS web components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stenciljs",
|
|
@@ -118,6 +118,7 @@
|
|
|
118
118
|
"test:watch": "stencil-test --prod --watch",
|
|
119
119
|
"test:coverage": "stencil-test --prod --coverage",
|
|
120
120
|
"generate": "stencil generate",
|
|
121
|
+
"generate:gallery": "node scripts/generate-gallery.mjs",
|
|
121
122
|
"lint": "oxlint .",
|
|
122
123
|
"lint:fix": "oxlint . --fix",
|
|
123
124
|
"format": "prettier --write .",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,h as r,H as t,c as a}from"./p-QBEhw78y.js";const o=()=>`:host{display:inline-block}.badge{display:inline-block;padding:0.18rem 0.6rem;border-radius:999px;font-size:0.68rem;font-weight:600;text-transform:uppercase;letter-spacing:0.03em}.badge--default{background:var(--color-surface-hover);color:var(--accent)}.badge--positive{background:var(--color-status-positive-background);color:var(--color-status-positive)}.badge--warning{background:var(--color-status-warning-background);color:var(--color-status-warning)}`;const s=class{constructor(r){e(this,r)}variant="default";render(){return r(t,{key:"9bac1191887568872ad75b1eec3a6084310253db"},r("span",{key:"fae2007c430f102f8ad4e0cc7d97c606dde69eed",class:{badge:true,[`badge--${this.variant}`]:true}},r("slot",{key:"56913dac3a8c18e76a419c22c27c69ca1adc8cc0"})))}};s.style=o();const i=()=>`:host{display:inline-block}.btn{display:inline-flex;align-items:center;gap:0.35rem;border:none;cursor:pointer;font-family:inherit;font-size:inherit}.btn:disabled{opacity:0.5;cursor:not-allowed}.btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.btn--primary{background-color:var(--accent);color:#06210f;font-weight:700;padding:0.25rem 0.8rem;border-radius:999px;transition:background-color 0.2s, transform 0.15s}.btn--primary:hover{background-color:var(--accent-hover);transform:translateY(-1px)}.btn--secondary{background-color:transparent;color:var(--text);font-weight:700;padding:0.25rem 0.8rem;border-radius:999px;border:1px solid var(--border);transition:border-color 0.2s, background-color 0.2s, transform 0.15s}.btn--secondary:hover{border-color:var(--border-hover);background-color:var(--surface-hover);transform:translateY(-1px)}`;const c=class{constructor(r){e(this,r);this.chClick=a(this,"chClick")}variant="primary";disabled=false;label;chClick;handleClick=e=>{this.chClick.emit(e)};render(){return r(t,{key:"ac7192a829924909b5068272786a301ae94f722c"},r("button",{key:"74e32d6dcc873224e48101b13019df73aeac45c9",class:{btn:true,[`btn--${this.variant}`]:true},type:"button",disabled:this.disabled,"aria-label":this.label,onClick:this.handleClick},r("slot",{key:"2aee1cf56fec308e43d2abce2af9752fe7bc6f47"})))}};c.style=i();const d=()=>`:host{display:block}::slotted(p){color:var(--text-muted)}.card{color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.35rem 1.5rem;backdrop-filter:blur(10px);position:relative;overflow:hidden;transition:border-color 0.2s, transform 0.15s, box-shadow 0.2s}.card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--accent);opacity:0;transition:opacity 0.2s}.card:hover{border-color:var(--border-hover);transform:translateX(2px);box-shadow:0 4px 20px rgba(45, 212, 191, 0.06)}.card:hover::before{opacity:1}`;const n=class{constructor(r){e(this,r)}render(){return r(t,{key:"e9685d92d3ffe08fb37088c0743534fd2701ecbb"},r("div",{key:"98317e248251b8d23baea9dd3810fc94953dabc4",class:"card"},r("slot",{key:"842e2fe5f72c74f1a14f20957e2edfd882b71edc"})))}};n.style=d();const l=()=>`:host{display:inline-block;width:100%}.label{display:block;margin-bottom:0.35rem;font-size:0.85rem;font-weight:600;color:var(--text)}.input{box-sizing:border-box;width:100%;padding:0.8rem 1.25rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);backdrop-filter:blur(10px);font-family:inherit;font-size:inherit;transition:border-color 0.2s, box-shadow 0.2s}.input::placeholder{color:var(--text-muted)}.input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(45, 212, 191, 0.12);outline:none}.input:disabled{opacity:0.5;cursor:not-allowed}`;let b=0;const h=class{constructor(r){e(this,r);this.chInput=a(this,"chInput");this.chChange=a(this,"chChange")}inputId=`ch-input-${++b}`;label;type="text";value="";placeholder;name;disabled=false;required=false;chInput;chChange;handleInput=e=>{this.value=e.target.value;this.chInput.emit(this.value)};handleChange=e=>{this.value=e.target.value;this.chChange.emit(this.value)};render(){return r(t,{key:"83f68aa09efcfcd544012ffde27f116c122ba215"},this.label&&r("label",{key:"d8ca4d52450a024991a3c8f22876483d2031593c",class:"label",htmlFor:this.inputId},this.label),r("input",{key:"fe8c7ce352397b8b0401226501039fc87e8cef57",id:this.label?this.inputId:undefined,class:"input",type:this.type,name:this.name,placeholder:this.placeholder,disabled:this.disabled,required:this.required,value:this.value,onInput:this.handleInput,onChange:this.handleChange}))}};h.style=l();const u=()=>`:host{display:inline-block;width:100%}.label{display:block;margin-bottom:0.35rem;font-size:0.85rem;font-weight:600;color:var(--text)}.select{box-sizing:border-box;width:100%;padding:0.8rem 1.25rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);backdrop-filter:blur(10px);font-family:inherit;font-size:inherit;cursor:pointer;transition:border-color 0.2s, box-shadow 0.2s}.select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(45, 212, 191, 0.12);outline:none}.select:disabled{opacity:0.5;cursor:not-allowed}.select option{background:var(--bg);color:var(--text)}`;let f=0;const p=class{constructor(r){e(this,r);this.chChange=a(this,"chChange")}selectId=`ch-select-${++f}`;label;options=[];value;placeholder;name;disabled=false;required=false;chChange;handleChange=e=>{this.value=e.target.value;this.chChange.emit(this.value)};render(){return r(t,{key:"57cb1bebbc8ab5ddc01ca1d568cd6871ad6591a2"},this.label&&r("label",{key:"4f89a32b4dea704c6e4f59d7c070281bffbe6dae",class:"label",htmlFor:this.selectId},this.label),r("select",{key:"f4d5badf61e6d72f3f1c9383a0f1b4093303acd3",id:this.label?this.selectId:undefined,class:"select",name:this.name,disabled:this.disabled,required:this.required,onChange:this.handleChange},this.placeholder&&r("option",{key:"241c5db4c8947c8b6bb0ad855e71e99b7315eb73",value:"",disabled:true,hidden:true,selected:!this.value},this.placeholder),this.options.map((e=>r("option",{value:e.value,disabled:e.disabled,selected:e.value===this.value},e.label)))))}};p.style=u();export{s as ch_badge,c as ch_button,n as ch_card,h as ch_input,p as ch_select};
|
|
2
|
-
//# sourceMappingURL=p-2eeff869.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["chBadgeCss","ChBadge","variant","render","h","Host","key","class","badge","this","chButtonCss","ChButton","disabled","label","chClick","handleClick","ev","emit","btn","type","onClick","chCardCss","ChCard","chInputCss","inputIds","ChInput","inputId","value","placeholder","name","required","chInput","chChange","handleInput","target","handleChange","htmlFor","id","undefined","onInput","onChange","chSelectCss","selectIds","ChSelect","selectId","options","hidden","selected","map","option"],"sources":["src/components/ch-badge/ch-badge.css?tag=ch-badge&encapsulation=shadow","src/components/ch-badge/ch-badge.tsx","src/components/ch-button/ch-button.css?tag=ch-button&encapsulation=shadow","src/components/ch-button/ch-button.tsx","src/components/ch-card/ch-card.css?tag=ch-card&encapsulation=shadow","src/components/ch-card/ch-card.tsx","src/components/ch-input/ch-input.css?tag=ch-input&encapsulation=shadow","src/components/ch-input/ch-input.tsx","src/components/ch-select/ch-select.css?tag=ch-select&encapsulation=shadow","src/components/ch-select/ch-select.tsx"],"sourcesContent":[":host {\n display: inline-block;\n}\n\n.badge {\n display: inline-block;\n padding: 0.18rem 0.6rem;\n border-radius: 999px;\n font-size: 0.68rem;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n}\n\n.badge--default {\n background: var(--color-surface-hover);\n color: var(--accent);\n}\n\n.badge--positive {\n background: var(--color-status-positive-background);\n color: var(--color-status-positive);\n}\n.badge--warning {\n background: var(--color-status-warning-background);\n color: var(--color-status-warning);\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\n\nexport type ChBadgeVariant = 'default' | 'positive' | 'warning';\n\n@Component({\n tag: 'ch-badge',\n styleUrl: 'ch-badge.css',\n shadow: true,\n})\nexport class ChBadge {\n /**\n * The visual style of the badge. Either `default`, `positive`, or `warning`.\n */\n @Prop() variant: ChBadgeVariant = 'default';\n\n render() {\n return (\n <Host>\n <span class={{ badge: true, [`badge--${this.variant}`]: true }}>\n <slot></slot>\n </span>\n </Host>\n );\n }\n}\n",":host {\n display: inline-block;\n}\n\n.btn {\n display: inline-flex;\n align-items: center;\n gap: 0.35rem;\n border: none;\n cursor: pointer;\n font-family: inherit;\n font-size: inherit;\n}\n\n.btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.btn:focus-visible {\n outline: 2px solid var(--accent);\n outline-offset: 2px;\n}\n\n.btn--primary {\n background-color: var(--accent);\n color: #06210f;\n font-weight: 700;\n padding: 0.25rem 0.8rem;\n border-radius: 999px;\n transition:\n background-color 0.2s,\n transform 0.15s;\n}\n\n.btn--primary:hover {\n background-color: var(--accent-hover);\n transform: translateY(-1px);\n}\n\n.btn--secondary {\n background-color: transparent;\n color: var(--text);\n font-weight: 700;\n padding: 0.25rem 0.8rem;\n border-radius: 999px;\n border: 1px solid var(--border);\n transition:\n border-color 0.2s,\n background-color 0.2s,\n transform 0.15s;\n}\n\n.btn--secondary:hover {\n border-color: var(--border-hover);\n background-color: var(--surface-hover);\n transform: translateY(-1px);\n}\n","import { Component, Event, type EventEmitter, Host, Prop, h } from '@stencil/core';\n\nexport type ChButtonVariant = 'primary' | 'secondary';\n\n@Component({\n tag: 'ch-button',\n styleUrl: 'ch-button.css',\n shadow: true,\n})\nexport class ChButton {\n /**\n * The visual style of the button. Either `primary` or `secondary`.\n */\n @Prop() variant: ChButtonVariant = 'primary';\n\n /**\n * Whether the button is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * Accessible label set as `aria-label` on the native `<button>`. Use it\n * when the button's content doesn't convey its purpose on its own (e.g.\n * an icon-only button).\n */\n @Prop() label?: string;\n\n /**\n * Emitted when the button is clicked.\n */\n @Event() chClick: EventEmitter<MouseEvent>;\n\n private handleClick = (ev: MouseEvent) => {\n this.chClick.emit(ev);\n };\n\n render() {\n return (\n <Host>\n <button\n class={{ btn: true, [`btn--${this.variant}`]: true }}\n type=\"button\"\n disabled={this.disabled}\n aria-label={this.label}\n onClick={this.handleClick}\n >\n <slot></slot>\n </button>\n </Host>\n );\n }\n}\n",":host {\n display: block;\n}\n\n::slotted(p) {\n color: var(--text-muted);\n}\n\n.card {\n color: var(--text);\n background: var(--surface);\n border: 1px solid var(--border);\n border-radius: var(--radius);\n padding: 1.35rem 1.5rem;\n backdrop-filter: blur(10px);\n position: relative;\n overflow: hidden;\n transition:\n border-color 0.2s,\n transform 0.15s,\n box-shadow 0.2s;\n}\n\n.card::before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n width: 3px;\n background: var(--accent);\n opacity: 0;\n transition: opacity 0.2s;\n}\n\n.card:hover {\n border-color: var(--border-hover);\n transform: translateX(2px);\n box-shadow: 0 4px 20px rgba(45, 212, 191, 0.06);\n}\n\n.card:hover::before {\n opacity: 1;\n}\n","import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'ch-card',\n styleUrl: 'ch-card.css',\n shadow: true,\n})\nexport class ChCard {\n render() {\n return (\n <Host>\n <div class=\"card\">\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n",":host {\n display: inline-block;\n width: 100%;\n}\n\n.label {\n display: block;\n margin-bottom: 0.35rem;\n font-size: 0.85rem;\n font-weight: 600;\n color: var(--text);\n}\n\n.input {\n box-sizing: border-box;\n width: 100%;\n padding: 0.8rem 1.25rem;\n border-radius: var(--radius);\n border: 1px solid var(--border);\n background: var(--surface);\n color: var(--text);\n backdrop-filter: blur(10px);\n font-family: inherit;\n font-size: inherit;\n transition:\n border-color 0.2s,\n box-shadow 0.2s;\n}\n\n.input::placeholder {\n color: var(--text-muted);\n}\n\n.input:focus {\n border-color: var(--accent);\n box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);\n outline: none;\n}\n\n.input:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n","import { Component, Event, type EventEmitter, Host, Prop, h } from '@stencil/core';\n\nlet inputIds = 0;\n\n@Component({\n tag: 'ch-input',\n styleUrl: 'ch-input.css',\n shadow: true,\n})\nexport class ChInput {\n private readonly inputId = `ch-input-${++inputIds}`;\n\n /**\n * Visible label rendered above the input and associated with it via\n * `for`/`id`, so assistive technology announces the input's purpose.\n */\n @Prop() label?: string;\n\n /**\n * The type of the input, mirroring the native `<input type>` attribute.\n */\n @Prop() type = 'text';\n\n /**\n * The value of the input.\n */\n @Prop({ mutable: true }) value = '';\n\n /**\n * Placeholder text shown when the input is empty.\n */\n @Prop() placeholder?: string;\n\n /**\n * The name of the input, submitted with form data.\n */\n @Prop() name?: string;\n\n /**\n * Whether the input is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * Whether the input is required.\n */\n @Prop() required = false;\n\n /**\n * Emitted on every keystroke, with the current input value.\n */\n @Event() chInput: EventEmitter<string>;\n\n /**\n * Emitted when the input value is committed (on native `change`).\n */\n @Event() chChange: EventEmitter<string>;\n\n private handleInput = (ev: InputEvent) => {\n this.value = (ev.target as HTMLInputElement).value;\n this.chInput.emit(this.value);\n };\n\n private handleChange = (ev: Event) => {\n this.value = (ev.target as HTMLInputElement).value;\n this.chChange.emit(this.value);\n };\n\n render() {\n return (\n <Host>\n {this.label && (\n <label class=\"label\" htmlFor={this.inputId}>\n {this.label}\n </label>\n )}\n <input\n id={this.label ? this.inputId : undefined}\n class=\"input\"\n type={this.type}\n name={this.name}\n placeholder={this.placeholder}\n disabled={this.disabled}\n required={this.required}\n value={this.value}\n onInput={this.handleInput}\n onChange={this.handleChange}\n />\n </Host>\n );\n }\n}\n",":host {\n display: inline-block;\n width: 100%;\n}\n\n.label {\n display: block;\n margin-bottom: 0.35rem;\n font-size: 0.85rem;\n font-weight: 600;\n color: var(--text);\n}\n\n.select {\n box-sizing: border-box;\n width: 100%;\n padding: 0.8rem 1.25rem;\n border-radius: var(--radius);\n border: 1px solid var(--border);\n background: var(--surface);\n color: var(--text);\n backdrop-filter: blur(10px);\n font-family: inherit;\n font-size: inherit;\n cursor: pointer;\n transition:\n border-color 0.2s,\n box-shadow 0.2s;\n}\n\n.select:focus {\n border-color: var(--accent);\n box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);\n outline: none;\n}\n\n.select:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.select option {\n background: var(--bg);\n color: var(--text);\n}\n","import { Component, Event, type EventEmitter, Host, Prop, h } from '@stencil/core';\n\nexport interface ChSelectOption {\n label: string;\n value: string;\n disabled?: boolean;\n}\n\nlet selectIds = 0;\n\n@Component({\n tag: 'ch-select',\n styleUrl: 'ch-select.css',\n shadow: true,\n})\nexport class ChSelect {\n private readonly selectId = `ch-select-${++selectIds}`;\n\n /**\n * Visible label rendered above the select and associated with it via\n * `for`/`id`, so assistive technology announces the select's purpose.\n */\n @Prop() label?: string;\n\n /**\n * The list of options rendered inside the select.\n */\n @Prop() options: ChSelectOption[] = [];\n\n /**\n * The value of the selected option.\n */\n @Prop({ mutable: true }) value?: string;\n\n /**\n * Placeholder shown as a disabled, hidden first option when no value is selected.\n */\n @Prop() placeholder?: string;\n\n /**\n * The name of the select, submitted with form data.\n */\n @Prop() name?: string;\n\n /**\n * Whether the select is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * Whether a value is required.\n */\n @Prop() required = false;\n\n /**\n * Emitted when the selected option changes, with the new value.\n */\n @Event() chChange: EventEmitter<string>;\n\n private handleChange = (ev: Event) => {\n this.value = (ev.target as HTMLSelectElement).value;\n this.chChange.emit(this.value);\n };\n\n render() {\n return (\n <Host>\n {this.label && (\n <label class=\"label\" htmlFor={this.selectId}>\n {this.label}\n </label>\n )}\n <select\n id={this.label ? this.selectId : undefined}\n class=\"select\"\n name={this.name}\n disabled={this.disabled}\n required={this.required}\n onChange={this.handleChange}\n >\n {this.placeholder && (\n <option value=\"\" disabled hidden selected={!this.value}>\n {this.placeholder}\n </option>\n )}\n {this.options.map(option => (\n <option value={option.value} disabled={option.disabled} selected={option.value === this.value}>\n {option.label}\n </option>\n ))}\n </select>\n </Host>\n );\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAa,IAAM,2c,MCSZC,EAAO,M,yBAIVC,QAA0B,UAElC,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,QAAAE,IAAA,2CAAMC,MAAO,CAAEC,MAAO,KAAM,CAAC,UAAUC,KAAKP,WAAY,OACtDE,EAAA,QAAAE,IAAA,8C,eCnBV,MAAMI,EAAc,IAAM,w2B,MCSbC,EAAQ,M,wDAIXT,QAA2B,UAK3BU,SAAW,MAOXC,MAKCC,QAEDC,YAAeC,IACrBP,KAAKK,QAAQG,KAAKD,EAAG,EAGvB,MAAAb,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,UAAAE,IAAA,2CACEC,MAAO,CAAEW,IAAK,KAAM,CAAC,QAAQT,KAAKP,WAAY,MAC9CiB,KAAK,SACLP,SAAUH,KAAKG,SAAQ,aACXH,KAAKI,MACjBO,QAASX,KAAKM,aAEdX,EAAA,QAAAE,IAAA,8C,eC9CV,MAAMe,EAAY,IAAM,8lB,MCOXC,EAAM,M,yBACjB,MAAAnB,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,OAAAE,IAAA,2CAAKC,MAAM,QACTH,EAAA,QAAAE,IAAA,8C,eCZV,MAAMiB,EAAa,IAAM,+lBCEzB,IAAIC,EAAW,E,MAOFC,EAAO,M,yFACDC,QAAU,cAAcF,IAMjCX,MAKAM,KAAO,OAKUQ,MAAQ,GAKzBC,YAKAC,KAKAjB,SAAW,MAKXkB,SAAW,MAKVC,QAKAC,SAEDC,YAAejB,IACrBP,KAAKkB,MAASX,EAAGkB,OAA4BP,MAC7ClB,KAAKsB,QAAQd,KAAKR,KAAKkB,MAAM,EAGvBQ,aAAgBnB,IACtBP,K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AGTnB,KAAKoC,QAAQG,KAAIC,GAChB7C,EAAA,UAAQuB,MAAOsB,EAAOtB,MAAOf,SAAUqC,EAAOrC,SAAUmC,SAAUE,EAAOtB,QAAUlB,KAAKkB,OACrFsB,EAAOpC,U","ignoreList":[]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const e="chucao";const t={hotModuleReplacement:false,hydratedSelectorName:"hydrated",lazyLoad:true,prop:true,propChangeCallback:false,updatable:true};const n=()=>{};const r=":root{--color-background-base:#100a1c;--color-background-top-glow:#201e40;--color-background-bottom-glow:#261226;--color-surface-default:rgba(32, 30, 64, 0.6);--color-surface-hover:rgba(45, 212, 191, 0.08);--color-border-default:rgba(255, 255, 255, 0.08);--color-border-hover:rgba(45, 212, 191, 0.3);--color-accent-default:#2dd4bf;--color-accent-hover:#5ee8d4;--color-status-positive:#4ade80;--color-status-positive-background:rgba(34, 197, 94, 0.18);--color-status-warning:#f87171;--color-status-warning-background:rgba(248, 113, 113, 0.15);--color-text-primary:#ffffff;--color-text-secondary:rgba(255, 255, 255, 0.55);--color-brand-huemul-dark:#85422b;--color-brand-huemul-light:#b45b38;--color-brand-stroke:#1d1d1b;--typography-body:Fira Sans, Droid Sans, Helvetica Neue, sans-serif;--typography-heading:Inconsolata, monospace;--spacing-radius:6px;--layout-max-width:68rem}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/fira-sans-latin-400-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:600;font-display:swap;src:url('./fonts/fira-sans-latin-600-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:700;font-display:swap;src:url('./fonts/fira-sans-latin-700-normal.woff2') format('woff2')}@font-face{font-family:'Inconsolata';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/inconsolata-latin-400-normal.woff2') format('woff2')}:root{--bg:var(--color-background-base);--bg-gradient:radial-gradient(50% 30% ellipse at center top, var(--color-background-top-glow) 0%, rgba(0, 0, 0, 0) 100%),\n radial-gradient(60% 50% ellipse at center bottom, var(--color-background-bottom-glow) 0%, var(--color-background-base) 100%);--surface:var(--color-surface-default);--surface-hover:var(--color-surface-hover);--border:var(--color-border-default);--border-hover:var(--color-border-hover);--text:var(--color-text-primary);--text-muted:var(--color-text-secondary);--accent:var(--color-accent-default);--accent-hover:var(--color-accent-hover);--font-body:var(--typography-body);--font-heading:var(--typography-heading);--radius:var(--spacing-radius)}body{font-family:var(--font-body)}.ch-container{width:100%;max-width:var(--layout-max-width);margin-inline:auto}.ch-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.ch-flex{display:flex}.ch-flex-col{display:flex;flex-direction:column}.ch-items-center{align-items:center}.ch-justify-center{justify-content:center}.ch-justify-between{justify-content:space-between}.ch-gap-sm{gap:0.5rem}.ch-gap-md{gap:1rem}.ch-text-center{text-align:center}.ch-text-primary{color:var(--text)}.ch-text-muted{color:var(--text-muted)}.ch-text-accent{color:var(--accent)}.ch-heading{font-family:var(--font-heading)}";function o(e,t,n){const r=typeof HTMLElement!=="undefined"?HTMLElement.prototype:null;while(e&&e!==r){const r=Object.getOwnPropertyDescriptor(e,t);if(r&&(!n||r.get))return r;e=Object.getPrototypeOf(e)}return void 0}var l=(e,t)=>{var n;const r=t.t;const l=Object.entries((n=r.o)!=null?n:{});l.map((([n,[r]])=>{if(r&31||r&32){const r=e[n];const l=o(Object.getPrototypeOf(e),n,true)||Object.getOwnPropertyDescriptor(e,n);if(l){Object.defineProperty(e,n,{get(){return l.get.call(this)},set(e){l.set.call(this,e)},configurable:true,enumerable:true})}if(t.l.has(n)){e[n]=t.l.get(n)}else if(r!==void 0){e[n]=r}}}))};var i=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var s=(e,n)=>{if(!n)return;e.__stencil__getHostRef=()=>n;n.i=e;if(n.t.u&512&&t.prop){l(e,n)}};var a=(e,t)=>{const n={u:0,$hostElement$:e,t,l:new Map,v:new Map};{n.h=new Promise((e=>n.p=e));e["s-p"]=[];e["s-rc"]=[]}{n.m=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var c=(e,t)=>t in e;var f=(e,t)=>(0,console.error)(e,t);var u=new Map;var d=(e,t,n)=>{const r=e.$.replace(/-/g,"_");const o=e.S;if(!o){return void 0}const l=u.get(o);if(l){return l[r]}
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${o}.entry.js${""}`).then((e=>{{u.set(o,e)}return e[r]}),(e=>{f(e,t.$hostElement$)}))};var v=new Map;var h="{visibility:hidden}.hydrated{visibility:inherit}";var p="slot-fb{display:contents}slot-fb[hidden]{display:none}";var m=typeof window!=="undefined"?window:{};var y={u:0,j:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var b=e=>Promise.resolve(e);var g=(()=>{try{if(!m.document.adoptedStyleSheets){return false}new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var w=g?(()=>!!m.document&&Object.getOwnPropertyDescriptor(m.document.adoptedStyleSheets,"length").writable)():false;var $=false;var S=[];var j=[];var x=(e,t)=>n=>{e.push(n);if(!$){$=true;if(t&&y.u&4){C(O)}else{y.raf(O)}}};var k=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){f(e)}}e.length=0};var O=()=>{k(S);{k(j);if($=S.length>0){y.raf(O)}}};var C=e=>b().then(e);var M=x(j,true);function E(e){if(!g)return void 0;const t=new CSSStyleSheet;t.replaceSync(e);return t}var L;function R(e){var t;const n={mode:"open"};const o=this.attachShadow(n);if(L===void 0)L=(t=E(r))!=null?t:null;if(L){if(w){o.adoptedStyleSheets.push(L)}else{o.adoptedStyleSheets=[...o.adoptedStyleSheets,L]}}else if(!g){const e=document.createElement("style");e.innerHTML=r;o.prepend(e)}}var A=(e,t="")=>{{return()=>{}}};var D=(e,t)=>{{return()=>{}}};function H(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var N=new WeakMap;var U=(e,t,n)=>{let r=v.get(e);if(g&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}v.set(e,r)};var F=(e,t,n)=>{var r,o,l;const i=T(t);const s=v.get(i);if(!m.document){return i}e=e.nodeType===11?e:m.document;if(s){if(typeof s==="string"){e=e.head||e;let n=N.get(e);let l;if(!n){N.set(e,n=new Set)}if(!n.has(i)){l=m.document.createElement("style");l.textContent=s;const a=(r=y.k)!=null?r:H(m.document);if(a!=null){l.setAttribute("nonce",a)}if(!(t.u&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(l,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(g){const t=(o=e.defaultView)!=null?o:e.ownerDocument.defaultView;const n=new t.CSSStyleSheet;n.replaceSync(s);if(w){e.adoptedStyleSheets.unshift(n)}else{e.adoptedStyleSheets=[n,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t&&true){t.textContent=s+t.textContent}else{e.prepend(l)}}}else{e.append(l)}}if(t.u&1){e.insertBefore(l,null)}if(t.u&4){l.textContent+=p}if(n){n.add(i)}}}else{let t=N.get(e);if(!t){N.set(e,t=new Set)}if(!t.has(i)){const n=(l=e.defaultView)!=null?l:e.ownerDocument.defaultView;let r;if(s.constructor===n.CSSStyleSheet){r=s}else{r=new n.CSSStyleSheet;for(let e=0;e<s.cssRules.length;e++){r.insertRule(s.cssRules[e].cssText,e)}}if(w){e.adoptedStyleSheets.push(r)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]}t.add(i)}}}return i};var P=e=>{const t=e.t;const n=e.$hostElement$;const r=t.u;const o=A("attachStyles",t.$);const l=F(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=l;n.classList.add(l+"-h")}o()};var T=(e,t)=>"sc-"+e.$;var z=e=>{e=typeof e;return e==="object"||e==="function"};var W=(e,t,...n)=>{if(typeof e==="string"){e=Ne(e)}let r=null;let o=null;let l=false;let i=false;const s=[];const a=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){a(r)}else if(r!=null&&typeof r!=="boolean"){if(l=typeof e!=="function"&&!z(r)){r=String(r)}if(l&&i){s[s.length-1].O+=r}else{s.push(l?I(null,r):r)}i=l}}};a(n);if(t){if(t.key){o=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}const c=I(e,null);c.C=t;if(s.length>0){c.M=s}{c.L=o}return c};var I=(e,t)=>{const n={u:0,R:e,O:t!=null?t:null,A:null,M:null};{n.C=null}{n.L=null}return n};var V={};var q=e=>e&&e.R===V;var G=(e,t,n)=>{if(e!=null&&!z(e)){if(t&4){{return e==="false"?false:e===""||!!e}}if(t&1){return String(e)}return e}return e};var Y=e=>{var t;return(t=i(e))==null?void 0:t.$hostElement$};var Z=(e,t,n)=>{const r=Y(e);return{emit:e=>_(r,t,{bubbles:true,composed:true,cancelable:true,detail:e})}};var _=(e,t,n)=>{const r=y.ce(t,n);e.dispatchEvent(r);return r};var B=(e,t,n,r,o,l,s)=>{if(n===r){return}let a=c(e,t);let f=t.toLowerCase();if(t==="class"){const t=e.classList;const o=K(n);let l=K(r);{t.remove(...o.filter((e=>e&&!l.includes(e))));t.add(...l.filter((e=>e&&!o.includes(e))))}}else if(t==="key");else if(!a&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(c(m,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(n||r){const o=t.endsWith(Q);t=t.replace(X,"");if(n){y.rel(e,t,n,o)}if(r){y.ael(e,t,r,o)}}}else if(t[0]==="a"&&t.startsWith("attr:")){const n=t.slice(5);let o;{const t=i(e);if(t&&t.t&&t.t.o){const e=t.t.o[n];if(e&&e[1]){o=e[1]}}}if(!o){o=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}if(r==null||r===false){if(r!==false||e.getAttribute(o)===""){e.removeAttribute(o)}}else{e.setAttribute(o,r===true?"":r)}return}else if(t[0]==="p"&&t.startsWith("prop:")){const n=t.slice(5);try{e[n]=r}catch(e){}return}else{const i=z(r);if((a||i&&r!==null)&&!o){try{if(!e.tagName.includes("-")){const o=r==null?"":r;if(t==="list"){a=false}else if(n==null||e[t]!==o){if(typeof e.__lookupSetter__(t)==="function"){e[t]=o}else{e.setAttribute(t,o)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!a||l&4||o)&&!i&&e.nodeType===1){r=r===true?"":r;{e.setAttribute(t,r)}}}};var J=/\s/;var K=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(J)};var Q="Capture";var X=new RegExp(Q+"$");var ee=(e,t,n,r)=>{const o=t.A.nodeType===11&&t.A.host?t.A.host:t.A;const l=e&&e.C||{};const i=t.C||{};{for(const e of te(Object.keys(l))){if(!(e in i)){B(o,e,l[e],void 0,n,t.u)}}}for(const e of te(Object.keys(i))){B(o,e,l[e],i[e],n,t.u)}};function te(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var ne;var re=false;var oe=false;var le=(e,t,n)=>{const r=t.M[n];let o=0;let l;let i;if(r.O!=null){l=r.A=m.document.createTextNode(r.O)}else{if(!m.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.")}l=r.A=m.document.createElement(r.R);{ee(null,r,oe)}if(r.M){const t=r.R==="template"?l.content:l;for(o=0;o<r.M.length;++o){i=le(e,r,o);if(i){t.appendChild(i)}}}}l["s-hn"]=ne;return l};var ie=e=>{y.u|=1;const t=e.closest(ne.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((e=>e["s-cr"]));const r=Array.from(e.__childNodes||e.childNodes);for(const e of n?r.reverse():r){if(e["s-sh"]!=null){de(t,e,n!=null?n:null);e["s-sh"]=void 0}}}y.u&=-2};var se=(e,t,n,r,o,l)=>{let i=e;let s;if(i.shadowRoot&&i.tagName===ne){i=i.shadowRoot}if(n.R==="template"){i=i.content}for(;o<=l;++o){if(r[o]){s=le(null,n,o);if(s){r[o].A=s;de(i,s,t)}}}};var ae=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.A;if(e){e.remove()}}}};var ce=(e,t,n,r,o=false)=>{let l=0;let i=0;let s=0;let a=0;let c=t.length-1;let f=t[0];let u=t[c];let d=r.length-1;let v=r[0];let h=r[d];let p;let m;const y=n.R==="template"?e.content:e;while(l<=c&&i<=d){if(f==null){f=t[++l]}else if(u==null){u=t[--c]}else if(v==null){v=r[++i]}else if(h==null){h=r[--d]}else if(fe(f,v,o)){ue(f,v,o);f=t[++l];v=r[++i]}else if(fe(u,h,o)){ue(u,h,o);u=t[--c];h=r[--d]}else if(fe(f,h,o)){ue(f,h,o);de(y,f.A,u.A.nextSibling);f=t[++l];h=r[--d]}else if(fe(u,v,o)){ue(u,v,o);de(y,u.A,f.A);u=t[--c];v=r[++i]}else{s=-1;{for(a=l;a<=c;++a){if(t[a]&&t[a].L!==null&&t[a].L===v.L){s=a;break}}}if(s>=0){m=t[s];if(m.R!==v.R){p=le(t&&t[i],n,s)}else{ue(m,v,o);t[s]=void 0;p=m.A}v=r[++i]}else{p=le(t&&t[i],n,i);v=r[++i]}if(p){{de(f.A.parentNode,p,f.A)}}}}if(l>c){se(e,r[d+1]==null?null:r[d+1].A,n,r,i,d)}else if(i>d){ae(t,l,c)}};var fe=(e,t,n=false)=>{if(e.R===t.R){if(!n){return e.L===t.L}if(n&&!e.L&&t.L){e.L=t.L}return true}return false};var ue=(e,n,r=false)=>{const o=n.A=e.A;const l=e.M;const i=n.M;const s=n.R;const a=n.O;if(a==null){{if(s==="slot"&&!re){if(e.D!==n.D){n.A["s-sn"]=n.D||"";ie(n.A.parentElement)}}ee(e,n,oe)}if(l!==null&&i!==null){ce(o,l,n,i,r)}else if(i!==null){if(e.O!==null){o.textContent=""}se(o,null,n,i,0,i.length-1)}else if(!r&&t.updatable&&l!==null){ae(l,0,l.length-1)}else;}else if(e.O!==a){o.data=a}};var de=(e,t,n,r)=>{if(e.__insertBefore){return e.__insertBefore(t,n)}else{return e==null?void 0:e.insertBefore(t,n)}};var ve=(e,t,n=false)=>{const r=e.$hostElement$;const o=e.t;const l=e.H||I(null,null);const i=q(t);const s=i?t:W(null,null,t);ne=r.tagName;if(n&&s.C){for(const e of Object.keys(s.C)){if(r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){s.C[e]=r[e]}}}s.R=null;s.u|=4;e.H=s;s.A=l.A=r.shadowRoot||r;re=!!(o.u&1)&&!(o.u&128);ue(l,s,n)};var he=(e,t)=>{if(t&&!e.N&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.N=()=>{t["s-p"].splice(n-1,1);r()})))}};var pe=(e,t)=>{{e.u|=16}if(e.u&4){e.u|=512;return}he(e,e.U);const n=()=>me(e,t);if(t){queueMicrotask((()=>{n()}));return}return M(n)};var me=(e,t)=>{const n=e.$hostElement$;const r=A("scheduleUpdate",e.t.$);const o=e.i;if(!o){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let l;if(t){{if(e.m.length){e.m.forEach((e=>e(n)))}}l=je(o,"componentWillLoad",void 0,n)}else{l=je(o,"componentWillUpdate",void 0,n)}l=ye(l,(()=>je(o,"componentWillRender",void 0,n)));r();return ye(l,(()=>ge(e,o,t)))};var ye=(e,t)=>be(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var be=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var ge=async(e,t,n)=>{var r;const o=e.$hostElement$;const l=A("update",e.t.$);const i=o["s-rc"];if(n){P(e)}const s=A("render",e.t.$);{we(e,t,o,n)}if(i){i.map((e=>e()));o["s-rc"]=void 0}s();l();{const t=(r=o["s-p"])!=null?r:[];const n=()=>$e(e);if(t.length===0){n()}else{Promise.all(t).then(n).catch(n);e.u|=4;t.length=0}}};var we=(e,t,n,r)=>{try{t=t.render();{e.u&=-17}{e.u|=2}{{{ve(e,t,r)}}}}catch(t){f(t,e.$hostElement$)}return null};var $e=e=>{const t=e.t.$;const n=e.$hostElement$;const r=A("postUpdate",t);const o=e.i;const l=e.U;je(o,"componentDidRender",void 0,n);if(!(e.u&64)){e.u|=64;{xe(n)}je(o,"componentDidLoad",void 0,n);r();{e.p(n);if(!l){Se()}}}else{je(o,"componentDidUpdate",void 0,n);r()}{if(e.N){e.N();e.N=void 0}if(e.u&512){C((()=>pe(e,false)))}e.u&=-517}};var Se=t=>{C((()=>_(m,"appload",{detail:{namespace:e}})))};var je=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){f(e,r)}}return void 0};var xe=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var ke=(e,t)=>i(e).l.get(t);var Oe=(e,t,n,r)=>{const o=i(e);if(!o){return}if(!o){throw new Error(`Couldn't find host element for "${r.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const l=o.l.get(t);const s=o.u;const a=o.i;n=G(n,r.o[t][0]);const c=Number.isNaN(l)&&Number.isNaN(n);const f=n!==l&&!c;if((!(s&8)||l===void 0)&&f){o.l.set(t,n);if(s&2){if(a.componentShouldUpdate){const e=a.componentShouldUpdate(n,l,t);if(e===false&&!(s&16)){return}}if(!(s&16)){pe(o,false)}}}};var Ce=(e,n,r)=>{var l,s;const a=e.prototype;if(n.o||t.propChangeCallback){const c=Object.entries((l=n.o)!=null?l:{});c.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:l,set:s}=o(a,e)||{};if(l)n.o[e][0]|=2048;if(s)n.o[e][0]|=4096;if(r&1||!l){Object.defineProperty(a,e,{get(){{if((n.o[e][0]&2048)===0){return ke(this,e)}const t=i(this);const r=t?t.i:a;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(a,e,{set(o){const l=i(this);if(!l){return}if(s){const r=t&32?this[e]:l.$hostElement$[e];if(typeof r==="undefined"&&l.l.get(e)){o=l.l.get(e)}s.apply(this,[G(o,t)]);o=t&32?this[e]:l.$hostElement$[e];Oe(this,e,o,n);return}{if((r&1)===0||(n.o[e][0]&4096)===0){Oe(this,e,o,n);if(r&1&&!l.i){l.m.push((()=>{if(n.o[e][0]&4096&&l.i[e]!==l.l.get(e)){l.i[e]=o}}))}return}const i=()=>{const r=l.i[e];if(!l.l.get(e)&&r){l.l.set(e,r)}l.i[e]=G(o,t);Oe(this,e,l.i[e],n)};if(l.i){i()}else{l.m.push((()=>{i()}))}}}})}}));if(r&1){const r=new Map;a.attributeChangedCallback=function(e,o,l){y.jmp((()=>{var s;const f=r.get(e);const u=i(this);if(this.hasOwnProperty(f)&&t.lazyLoad){l=this[f];delete this[f]}if(a.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==l){return}else if(f==null){const t=u==null?void 0:u.u;if(u&&t&&!(t&8)&&l!==o){const r=u.i;const i=(s=n.F)==null?void 0:s[e];i==null?void 0:i.forEach((n=>{const[[i,s]]=Object.entries(n);if(r[i]!=null&&(t&128||s&1)){r[i].call(r,l,o,e)}}))}return}const d=c.find((([e])=>e===f));const v=d&&d[1][0]&4;const h=v&&l===null&&this[f]===void 0;if(v){l=l===null||l==="false"?false:true}const p=Object.getOwnPropertyDescriptor(a,f);if(!h&&l!=this[f]&&(!p.get||!!p.set)){this[f]=l}}))};e.observedAttributes=Array.from(new Set([...Object.keys((s=n.F)!=null?s:{}),...c.filter((([e,t])=>t[0]&31)).map((([e,t])=>{const n=t[1]||e;r.set(n,e);return n}))]))}}return e};var Me=async(e,n,r,o)=>{let l;try{if((n.u&32)===0){n.u|=32;const o=r.S;if(o){const t=d(r,n);if(t&&"then"in t){const e=D();l=await t;e()}else{l=t}if(!l){throw new Error(`Constructor for "${r.$}#${n.P}" was not found`)}if(!l.isProxied){Ce(l,r,2);l.isProxied=true}const o=A("createInstance",r.$);{n.u|=8}try{new l(n)}catch(t){f(t,e)}{n.u&=-9}o();{Ee(n.i,e)}}else{l=e.constructor;const t=e.localName;customElements.whenDefined(t).then((()=>n.u|=128))}if(l&&l.style){let e;if(typeof l.style==="string"){e=l.style}const n=T(r);if(!v.has(n)||t.hotModuleReplacement){const t=A("registerStyles",r.$);U(n,e,!!(r.u&1));t()}}}const o=n.U;const i=()=>pe(n,true);if(o&&o["s-rc"]){o["s-rc"].push(i)}else{i()}}catch(t){f(t,e);if(n.N){n.N();n.N=void 0}if(n.p){n.p(e)}}};var Ee=(e,t)=>{{je(e,"connectedCallback",void 0,t)}};var Le=e=>{if((y.u&1)===0){const t=i(e);if(!t){return}const n=t.t;const r=A("connectedCallback",n.$);if(!(t.u&1)){t.u|=1;{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){he(t,t.U=n);break}}}if(n.o){Object.entries(n.o).map((([t,[n]])=>{if(n&31&&Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];delete e[t];e[t]=n}}))}{Me(e,t,n)}}else{if(t==null?void 0:t.i){Ee(t.i,e)}else if(t==null?void 0:t.h){t.h.then((()=>Ee(t.i,e)))}}r()}};var Re=(e,t)=>{{je(e,"disconnectedCallback",void 0,t||e)}};var Ae=async e=>{if((y.u&1)===0){const t=i(e);if(t==null?void 0:t.i){Re(t.i,e)}else if(t==null?void 0:t.h){t.h.then((()=>Re(t.i,e)))}}if(N.has(e)){N.delete(e)}if(e.shadowRoot&&N.has(e.shadowRoot)){N.delete(e.shadowRoot)}};var De=(e,t={})=>{var n;if(!m.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=A();const o=[];const l=t.exclude||[];const s=m.customElements;const c=m.document.head;const f=c.querySelector("meta[charset]");const u=m.document.createElement("style");const d=[];let v;let p=true;Object.assign(y,t);y.j=new URL(t.resourcesUrl||"./",m.document.baseURI).href;e.map((e=>{e[1].map((t=>{const n={u:t[0],$:t[1],o:t[2],T:t[3]};{n.o=t[2]}const r=Ne(n.$);const c=class extends HTMLElement{["s-p"];["s-rc"];hasRegisteredEventListeners=false;constructor(e){super(e);e=this;a(e,n);if(n.u&1){{if(!e.shadowRoot){R.call(e,n)}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${n.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=i(this);if(!e){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(v){clearTimeout(v);v=null}if(p){d.push(this)}else{y.jmp((()=>Le(this)))}}disconnectedCallback(){y.jmp((()=>Ae(this)));y.raf((()=>{var e;const t=i(this);if(!t){return}const n=d.findIndex((e=>e===this));if(n>-1){d.splice(n,1)}if(((e=t==null?void 0:t.H)==null?void 0:e.A)instanceof Node&&!t.H.A.isConnected){delete t.H.A}}))}componentOnReady(){var e;return(e=i(this))==null?void 0:e.h}};n.S=e[0];if(!l.includes(r)&&!s.get(r)){o.push(r);s.define(r,Ce(c,n,1))}}))}));if(o.length>0){{u.textContent+=o.sort()+h}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=y.k)!=null?n:H(m.document);if(e!=null){u.setAttribute("nonce",e)}c.insertBefore(u,f?f.nextSibling:c.firstChild)}}p=false;if(d.length){d.map((e=>e.connectedCallback()))}else{{y.jmp((()=>v=setTimeout(Se,30)))}}r()};var He=e=>y.k=e;function Ne(e){return e}export{V as H,De as b,Z as c,n as g,W as h,b as p,s as r,He as s};
|
|
3
|
-
//# sourceMappingURL=p-QBEhw78y.js.map
|