@devschile/chucao 1.2.0 → 1.4.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 +1 -0
- 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-1f47dd08.entry.js +2 -0
- package/dist/chucao/p-1f47dd08.entry.js.map +1 -0
- package/dist/chucao/p-438e1401.entry.js +2 -0
- package/dist/chucao/p-438e1401.entry.js.map +1 -0
- package/dist/chucao/p-7413b8c3.entry.js +2 -0
- package/dist/chucao/p-7413b8c3.entry.js.map +1 -0
- package/dist/chucao/p-90db80a2.entry.js +2 -0
- package/dist/chucao/p-90db80a2.entry.js.map +1 -0
- package/dist/chucao/p-Bk9pvIKL.js +3 -0
- package/dist/chucao/p-Bk9pvIKL.js.map +1 -0
- package/dist/chucao/p-faa21ce0.entry.js +2 -0
- package/dist/chucao/p-faa21ce0.entry.js.map +1 -0
- package/dist/cjs/ch-badge_5.cjs.entry.js +57 -9
- package/dist/cjs/ch-badge_5.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-checkbox.cjs.entry.js +80 -0
- package/dist/cjs/ch-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-radio.cjs.entry.js +83 -0
- package/dist/cjs/ch-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-switch.cjs.entry.js +80 -0
- package/dist/cjs/ch-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-textarea.cjs.entry.js +94 -0
- package/dist/cjs/ch-textarea.cjs.entry.js.map +1 -0
- package/dist/cjs/chucao.cjs.js +2 -2
- package/dist/cjs/{index-Tiana_FZ.js → index-DX3RZKi8.js} +6 -3
- package/dist/cjs/index-DX3RZKi8.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 +2 -2
- package/dist/collection/collection-manifest.json +5 -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-card/ch-card.js +1 -1
- package/dist/collection/components/ch-checkbox/ch-checkbox.css +79 -0
- package/dist/collection/components/ch-checkbox/ch-checkbox.js +276 -0
- package/dist/collection/components/ch-checkbox/ch-checkbox.js.map +1 -0
- package/dist/collection/components/ch-input/ch-input.css +30 -10
- package/dist/collection/components/ch-input/ch-input.js +83 -1
- package/dist/collection/components/ch-input/ch-input.js.map +1 -1
- package/dist/collection/components/ch-radio/ch-radio.css +89 -0
- package/dist/collection/components/ch-radio/ch-radio.js +282 -0
- package/dist/collection/components/ch-radio/ch-radio.js.map +1 -0
- package/dist/collection/components/ch-select/ch-select.css +30 -10
- package/dist/collection/components/ch-select/ch-select.js +83 -1
- package/dist/collection/components/ch-select/ch-select.js.map +1 -1
- package/dist/collection/components/ch-switch/ch-switch.css +92 -0
- package/dist/collection/components/ch-switch/ch-switch.js +276 -0
- package/dist/collection/components/ch-switch/ch-switch.js.map +1 -0
- package/dist/collection/components/ch-textarea/ch-textarea.css +66 -0
- package/dist/collection/components/ch-textarea/ch-textarea.js +323 -0
- package/dist/collection/components/ch-textarea/ch-textarea.js.map +1 -0
- 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-checkbox.d.ts +11 -0
- package/dist/components/ch-checkbox.js +2 -0
- package/dist/components/ch-checkbox.js.map +1 -0
- package/dist/components/ch-input.js +1 -1
- package/dist/components/ch-input.js.map +1 -1
- package/dist/components/ch-radio.d.ts +11 -0
- package/dist/components/ch-radio.js +2 -0
- package/dist/components/ch-radio.js.map +1 -0
- package/dist/components/ch-select.js +1 -1
- package/dist/components/ch-select.js.map +1 -1
- package/dist/components/ch-switch.d.ts +11 -0
- package/dist/components/ch-switch.js +2 -0
- package/dist/components/ch-switch.js.map +1 -0
- package/dist/components/ch-textarea.d.ts +11 -0
- package/dist/components/ch-textarea.js +2 -0
- package/dist/components/ch-textarea.js.map +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-CcEsJ4Ml.js +2 -0
- package/dist/components/p-CcEsJ4Ml.js.map +1 -0
- package/dist/esm/ch-badge_5.entry.js +57 -9
- package/dist/esm/ch-badge_5.entry.js.map +1 -1
- package/dist/esm/ch-checkbox.entry.js +78 -0
- package/dist/esm/ch-checkbox.entry.js.map +1 -0
- package/dist/esm/ch-radio.entry.js +81 -0
- package/dist/esm/ch-radio.entry.js.map +1 -0
- package/dist/esm/ch-switch.entry.js +78 -0
- package/dist/esm/ch-switch.entry.js.map +1 -0
- package/dist/esm/ch-textarea.entry.js +92 -0
- package/dist/esm/ch-textarea.entry.js.map +1 -0
- package/dist/esm/chucao.js +3 -3
- package/dist/esm/{index-CuWheDah.js → index-Bk9pvIKL.js} +6 -3
- package/dist/esm/index-Bk9pvIKL.js.map +1 -0
- package/dist/esm/index.js +109 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/ch-checkbox/ch-checkbox.d.ts +51 -0
- package/dist/types/components/ch-input/ch-input.d.ts +16 -0
- package/dist/types/components/ch-radio/ch-radio.d.ts +58 -0
- package/dist/types/components/ch-select/ch-select.d.ts +16 -0
- package/dist/types/components/ch-switch/ch-switch.d.ts +51 -0
- package/dist/types/components/ch-textarea/ch-textarea.d.ts +60 -0
- package/dist/types/components.d.ts +571 -0
- package/dist/types/tokens/tokens.d.ts +104 -2
- package/dist/types/tokens/types.d.ts +13 -4
- package/dist-react/components.d.ts +22 -1
- package/dist-react/components.js +39 -0
- package/dist-react/components.ts +55 -1
- package/dist-vue/index.d.ts +4 -0
- package/dist-vue/index.js +69 -0
- package/dist-vue/index.ts +77 -0
- package/package.json +2 -1
- package/dist/chucao/p-035c479d.entry.js +0 -2
- package/dist/chucao/p-035c479d.entry.js.map +0 -1
- package/dist/chucao/p-CuWheDah.js +0 -3
- package/dist/chucao/p-CuWheDah.js.map +0 -1
- package/dist/cjs/index-Tiana_FZ.js.map +0 -1
- package/dist/components/p-DXg-7eP0.js +0 -2
- package/dist/components/p-DXg-7eP0.js.map +0 -1
- package/dist/esm/index-CuWheDah.js.map +0 -1
|
@@ -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;
|
|
@@ -3,13 +3,17 @@
|
|
|
3
3
|
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
4
|
*/
|
|
5
5
|
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
-
import { type ChButtonCustomEvent, type ChInputCustomEvent, type ChSelectCustomEvent } from "@devschile/chucao";
|
|
6
|
+
import { type ChButtonCustomEvent, type ChCheckboxCustomEvent, type ChInputCustomEvent, type ChRadioCustomEvent, type ChSelectCustomEvent, type ChSwitchCustomEvent, type ChTextareaCustomEvent } from "@devschile/chucao";
|
|
7
7
|
import type { Components } from "@devschile/chucao/dist/components";
|
|
8
8
|
import { ChBadge as ChBadgeElement } from "@devschile/chucao/dist/components/ch-badge.js";
|
|
9
9
|
import { ChButton as ChButtonElement } from "@devschile/chucao/dist/components/ch-button.js";
|
|
10
10
|
import { ChCard as ChCardElement } from "@devschile/chucao/dist/components/ch-card.js";
|
|
11
|
+
import { ChCheckbox as ChCheckboxElement } from "@devschile/chucao/dist/components/ch-checkbox.js";
|
|
11
12
|
import { ChInput as ChInputElement } from "@devschile/chucao/dist/components/ch-input.js";
|
|
13
|
+
import { ChRadio as ChRadioElement } from "@devschile/chucao/dist/components/ch-radio.js";
|
|
12
14
|
import { ChSelect as ChSelectElement } from "@devschile/chucao/dist/components/ch-select.js";
|
|
15
|
+
import { ChSwitch as ChSwitchElement } from "@devschile/chucao/dist/components/ch-switch.js";
|
|
16
|
+
import { ChTextarea as ChTextareaElement } from "@devschile/chucao/dist/components/ch-textarea.js";
|
|
13
17
|
export type ChBadgeEvents = NonNullable<unknown>;
|
|
14
18
|
export declare const ChBadge: StencilReactComponent<ChBadgeElement, ChBadgeEvents, Components.ChBadge>;
|
|
15
19
|
export type ChButtonEvents = {
|
|
@@ -18,12 +22,29 @@ export type ChButtonEvents = {
|
|
|
18
22
|
export declare const ChButton: StencilReactComponent<ChButtonElement, ChButtonEvents, Components.ChButton>;
|
|
19
23
|
export type ChCardEvents = NonNullable<unknown>;
|
|
20
24
|
export declare const ChCard: StencilReactComponent<ChCardElement, ChCardEvents, Components.ChCard>;
|
|
25
|
+
export type ChCheckboxEvents = {
|
|
26
|
+
onChChange: EventName<ChCheckboxCustomEvent<boolean>>;
|
|
27
|
+
};
|
|
28
|
+
export declare const ChCheckbox: StencilReactComponent<ChCheckboxElement, ChCheckboxEvents, Components.ChCheckbox>;
|
|
21
29
|
export type ChInputEvents = {
|
|
22
30
|
onChInput: EventName<ChInputCustomEvent<string>>;
|
|
23
31
|
onChChange: EventName<ChInputCustomEvent<string>>;
|
|
24
32
|
};
|
|
25
33
|
export declare const ChInput: StencilReactComponent<ChInputElement, ChInputEvents, Components.ChInput>;
|
|
34
|
+
export type ChRadioEvents = {
|
|
35
|
+
onChChange: EventName<ChRadioCustomEvent<string>>;
|
|
36
|
+
};
|
|
37
|
+
export declare const ChRadio: StencilReactComponent<ChRadioElement, ChRadioEvents, Components.ChRadio>;
|
|
26
38
|
export type ChSelectEvents = {
|
|
27
39
|
onChChange: EventName<ChSelectCustomEvent<string>>;
|
|
28
40
|
};
|
|
29
41
|
export declare const ChSelect: StencilReactComponent<ChSelectElement, ChSelectEvents, Components.ChSelect>;
|
|
42
|
+
export type ChSwitchEvents = {
|
|
43
|
+
onChChange: EventName<ChSwitchCustomEvent<boolean>>;
|
|
44
|
+
};
|
|
45
|
+
export declare const ChSwitch: StencilReactComponent<ChSwitchElement, ChSwitchEvents, Components.ChSwitch>;
|
|
46
|
+
export type ChTextareaEvents = {
|
|
47
|
+
onChInput: EventName<ChTextareaCustomEvent<string>>;
|
|
48
|
+
onChChange: EventName<ChTextareaCustomEvent<string>>;
|
|
49
|
+
};
|
|
50
|
+
export declare const ChTextarea: StencilReactComponent<ChTextareaElement, ChTextareaEvents, Components.ChTextarea>;
|
package/dist-react/components.js
CHANGED
|
@@ -4,8 +4,12 @@ import React from 'react';
|
|
|
4
4
|
import { ChBadge as ChBadgeElement, defineCustomElement as defineChBadge } from "@devschile/chucao/dist/components/ch-badge.js";
|
|
5
5
|
import { ChButton as ChButtonElement, defineCustomElement as defineChButton } from "@devschile/chucao/dist/components/ch-button.js";
|
|
6
6
|
import { ChCard as ChCardElement, defineCustomElement as defineChCard } from "@devschile/chucao/dist/components/ch-card.js";
|
|
7
|
+
import { ChCheckbox as ChCheckboxElement, defineCustomElement as defineChCheckbox } from "@devschile/chucao/dist/components/ch-checkbox.js";
|
|
7
8
|
import { ChInput as ChInputElement, defineCustomElement as defineChInput } from "@devschile/chucao/dist/components/ch-input.js";
|
|
9
|
+
import { ChRadio as ChRadioElement, defineCustomElement as defineChRadio } from "@devschile/chucao/dist/components/ch-radio.js";
|
|
8
10
|
import { ChSelect as ChSelectElement, defineCustomElement as defineChSelect } from "@devschile/chucao/dist/components/ch-select.js";
|
|
11
|
+
import { ChSwitch as ChSwitchElement, defineCustomElement as defineChSwitch } from "@devschile/chucao/dist/components/ch-switch.js";
|
|
12
|
+
import { ChTextarea as ChTextareaElement, defineCustomElement as defineChTextarea } from "@devschile/chucao/dist/components/ch-textarea.js";
|
|
9
13
|
export const ChBadge = /*@__PURE__*/ createComponent({
|
|
10
14
|
tagName: 'ch-badge',
|
|
11
15
|
elementClass: ChBadgeElement,
|
|
@@ -30,6 +34,14 @@ export const ChCard = /*@__PURE__*/ createComponent({
|
|
|
30
34
|
events: {},
|
|
31
35
|
defineCustomElement: defineChCard
|
|
32
36
|
});
|
|
37
|
+
export const ChCheckbox = /*@__PURE__*/ createComponent({
|
|
38
|
+
tagName: 'ch-checkbox',
|
|
39
|
+
elementClass: ChCheckboxElement,
|
|
40
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
41
|
+
react: React,
|
|
42
|
+
events: { onChChange: 'chChange' },
|
|
43
|
+
defineCustomElement: defineChCheckbox
|
|
44
|
+
});
|
|
33
45
|
export const ChInput = /*@__PURE__*/ createComponent({
|
|
34
46
|
tagName: 'ch-input',
|
|
35
47
|
elementClass: ChInputElement,
|
|
@@ -41,6 +53,14 @@ export const ChInput = /*@__PURE__*/ createComponent({
|
|
|
41
53
|
},
|
|
42
54
|
defineCustomElement: defineChInput
|
|
43
55
|
});
|
|
56
|
+
export const ChRadio = /*@__PURE__*/ createComponent({
|
|
57
|
+
tagName: 'ch-radio',
|
|
58
|
+
elementClass: ChRadioElement,
|
|
59
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
60
|
+
react: React,
|
|
61
|
+
events: { onChChange: 'chChange' },
|
|
62
|
+
defineCustomElement: defineChRadio
|
|
63
|
+
});
|
|
44
64
|
export const ChSelect = /*@__PURE__*/ createComponent({
|
|
45
65
|
tagName: 'ch-select',
|
|
46
66
|
elementClass: ChSelectElement,
|
|
@@ -49,3 +69,22 @@ export const ChSelect = /*@__PURE__*/ createComponent({
|
|
|
49
69
|
events: { onChChange: 'chChange' },
|
|
50
70
|
defineCustomElement: defineChSelect
|
|
51
71
|
});
|
|
72
|
+
export const ChSwitch = /*@__PURE__*/ createComponent({
|
|
73
|
+
tagName: 'ch-switch',
|
|
74
|
+
elementClass: ChSwitchElement,
|
|
75
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
76
|
+
react: React,
|
|
77
|
+
events: { onChChange: 'chChange' },
|
|
78
|
+
defineCustomElement: defineChSwitch
|
|
79
|
+
});
|
|
80
|
+
export const ChTextarea = /*@__PURE__*/ createComponent({
|
|
81
|
+
tagName: 'ch-textarea',
|
|
82
|
+
elementClass: ChTextareaElement,
|
|
83
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
84
|
+
react: React,
|
|
85
|
+
events: {
|
|
86
|
+
onChInput: 'chInput',
|
|
87
|
+
onChChange: 'chChange'
|
|
88
|
+
},
|
|
89
|
+
defineCustomElement: defineChTextarea
|
|
90
|
+
});
|
package/dist-react/components.ts
CHANGED
|
@@ -11,13 +11,17 @@ import type { EventName, StencilReactComponent } from '@stencil/react-output-tar
|
|
|
11
11
|
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
12
12
|
import React from 'react';
|
|
13
13
|
|
|
14
|
-
import { type ChButtonCustomEvent, type ChInputCustomEvent, type ChSelectCustomEvent } from "@devschile/chucao";
|
|
14
|
+
import { type ChButtonCustomEvent, type ChCheckboxCustomEvent, type ChInputCustomEvent, type ChRadioCustomEvent, type ChSelectCustomEvent, type ChSwitchCustomEvent, type ChTextareaCustomEvent } from "@devschile/chucao";
|
|
15
15
|
import type { Components } from "@devschile/chucao/dist/components";
|
|
16
16
|
import { ChBadge as ChBadgeElement, defineCustomElement as defineChBadge } from "@devschile/chucao/dist/components/ch-badge.js";
|
|
17
17
|
import { ChButton as ChButtonElement, defineCustomElement as defineChButton } from "@devschile/chucao/dist/components/ch-button.js";
|
|
18
18
|
import { ChCard as ChCardElement, defineCustomElement as defineChCard } from "@devschile/chucao/dist/components/ch-card.js";
|
|
19
|
+
import { ChCheckbox as ChCheckboxElement, defineCustomElement as defineChCheckbox } from "@devschile/chucao/dist/components/ch-checkbox.js";
|
|
19
20
|
import { ChInput as ChInputElement, defineCustomElement as defineChInput } from "@devschile/chucao/dist/components/ch-input.js";
|
|
21
|
+
import { ChRadio as ChRadioElement, defineCustomElement as defineChRadio } from "@devschile/chucao/dist/components/ch-radio.js";
|
|
20
22
|
import { ChSelect as ChSelectElement, defineCustomElement as defineChSelect } from "@devschile/chucao/dist/components/ch-select.js";
|
|
23
|
+
import { ChSwitch as ChSwitchElement, defineCustomElement as defineChSwitch } from "@devschile/chucao/dist/components/ch-switch.js";
|
|
24
|
+
import { ChTextarea as ChTextareaElement, defineCustomElement as defineChTextarea } from "@devschile/chucao/dist/components/ch-textarea.js";
|
|
21
25
|
|
|
22
26
|
export type ChBadgeEvents = NonNullable<unknown>;
|
|
23
27
|
|
|
@@ -52,6 +56,17 @@ export const ChCard: StencilReactComponent<ChCardElement, ChCardEvents, Componen
|
|
|
52
56
|
defineCustomElement: defineChCard
|
|
53
57
|
});
|
|
54
58
|
|
|
59
|
+
export type ChCheckboxEvents = { onChChange: EventName<ChCheckboxCustomEvent<boolean>> };
|
|
60
|
+
|
|
61
|
+
export const ChCheckbox: StencilReactComponent<ChCheckboxElement, ChCheckboxEvents, Components.ChCheckbox> = /*@__PURE__*/ createComponent<ChCheckboxElement, ChCheckboxEvents, Components.ChCheckbox>({
|
|
62
|
+
tagName: 'ch-checkbox',
|
|
63
|
+
elementClass: ChCheckboxElement,
|
|
64
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
65
|
+
react: React,
|
|
66
|
+
events: { onChChange: 'chChange' } as ChCheckboxEvents,
|
|
67
|
+
defineCustomElement: defineChCheckbox
|
|
68
|
+
});
|
|
69
|
+
|
|
55
70
|
export type ChInputEvents = {
|
|
56
71
|
onChInput: EventName<ChInputCustomEvent<string>>,
|
|
57
72
|
onChChange: EventName<ChInputCustomEvent<string>>
|
|
@@ -69,6 +84,17 @@ export const ChInput: StencilReactComponent<ChInputElement, ChInputEvents, Compo
|
|
|
69
84
|
defineCustomElement: defineChInput
|
|
70
85
|
});
|
|
71
86
|
|
|
87
|
+
export type ChRadioEvents = { onChChange: EventName<ChRadioCustomEvent<string>> };
|
|
88
|
+
|
|
89
|
+
export const ChRadio: StencilReactComponent<ChRadioElement, ChRadioEvents, Components.ChRadio> = /*@__PURE__*/ createComponent<ChRadioElement, ChRadioEvents, Components.ChRadio>({
|
|
90
|
+
tagName: 'ch-radio',
|
|
91
|
+
elementClass: ChRadioElement,
|
|
92
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
93
|
+
react: React,
|
|
94
|
+
events: { onChChange: 'chChange' } as ChRadioEvents,
|
|
95
|
+
defineCustomElement: defineChRadio
|
|
96
|
+
});
|
|
97
|
+
|
|
72
98
|
export type ChSelectEvents = { onChChange: EventName<ChSelectCustomEvent<string>> };
|
|
73
99
|
|
|
74
100
|
export const ChSelect: StencilReactComponent<ChSelectElement, ChSelectEvents, Components.ChSelect> = /*@__PURE__*/ createComponent<ChSelectElement, ChSelectEvents, Components.ChSelect>({
|
|
@@ -79,3 +105,31 @@ export const ChSelect: StencilReactComponent<ChSelectElement, ChSelectEvents, Co
|
|
|
79
105
|
events: { onChChange: 'chChange' } as ChSelectEvents,
|
|
80
106
|
defineCustomElement: defineChSelect
|
|
81
107
|
});
|
|
108
|
+
|
|
109
|
+
export type ChSwitchEvents = { onChChange: EventName<ChSwitchCustomEvent<boolean>> };
|
|
110
|
+
|
|
111
|
+
export const ChSwitch: StencilReactComponent<ChSwitchElement, ChSwitchEvents, Components.ChSwitch> = /*@__PURE__*/ createComponent<ChSwitchElement, ChSwitchEvents, Components.ChSwitch>({
|
|
112
|
+
tagName: 'ch-switch',
|
|
113
|
+
elementClass: ChSwitchElement,
|
|
114
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
115
|
+
react: React,
|
|
116
|
+
events: { onChChange: 'chChange' } as ChSwitchEvents,
|
|
117
|
+
defineCustomElement: defineChSwitch
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
export type ChTextareaEvents = {
|
|
121
|
+
onChInput: EventName<ChTextareaCustomEvent<string>>,
|
|
122
|
+
onChChange: EventName<ChTextareaCustomEvent<string>>
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export const ChTextarea: StencilReactComponent<ChTextareaElement, ChTextareaEvents, Components.ChTextarea> = /*@__PURE__*/ createComponent<ChTextareaElement, ChTextareaEvents, Components.ChTextarea>({
|
|
126
|
+
tagName: 'ch-textarea',
|
|
127
|
+
elementClass: ChTextareaElement,
|
|
128
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
129
|
+
react: React,
|
|
130
|
+
events: {
|
|
131
|
+
onChInput: 'chInput',
|
|
132
|
+
onChChange: 'chChange'
|
|
133
|
+
} as ChTextareaEvents,
|
|
134
|
+
defineCustomElement: defineChTextarea
|
|
135
|
+
});
|
package/dist-vue/index.d.ts
CHANGED
|
@@ -3,5 +3,9 @@ import type { JSX } from '@devschile/chucao/dist/components';
|
|
|
3
3
|
export declare const ChBadge: StencilVueComponent<JSX.ChBadge>;
|
|
4
4
|
export declare const ChButton: StencilVueComponent<JSX.ChButton>;
|
|
5
5
|
export declare const ChCard: StencilVueComponent<JSX.ChCard>;
|
|
6
|
+
export declare const ChCheckbox: StencilVueComponent<JSX.ChCheckbox>;
|
|
6
7
|
export declare const ChInput: StencilVueComponent<JSX.ChInput>;
|
|
8
|
+
export declare const ChRadio: StencilVueComponent<JSX.ChRadio>;
|
|
7
9
|
export declare const ChSelect: StencilVueComponent<JSX.ChSelect>;
|
|
10
|
+
export declare const ChSwitch: StencilVueComponent<JSX.ChSwitch>;
|
|
11
|
+
export declare const ChTextarea: StencilVueComponent<JSX.ChTextarea>;
|
package/dist-vue/index.js
CHANGED
|
@@ -5,8 +5,12 @@ import { defineContainer } from '@stencil/vue-output-target/runtime';
|
|
|
5
5
|
import { defineCustomElement as defineChBadge } from '@devschile/chucao/dist/components/ch-badge.js';
|
|
6
6
|
import { defineCustomElement as defineChButton } from '@devschile/chucao/dist/components/ch-button.js';
|
|
7
7
|
import { defineCustomElement as defineChCard } from '@devschile/chucao/dist/components/ch-card.js';
|
|
8
|
+
import { defineCustomElement as defineChCheckbox } from '@devschile/chucao/dist/components/ch-checkbox.js';
|
|
8
9
|
import { defineCustomElement as defineChInput } from '@devschile/chucao/dist/components/ch-input.js';
|
|
10
|
+
import { defineCustomElement as defineChRadio } from '@devschile/chucao/dist/components/ch-radio.js';
|
|
9
11
|
import { defineCustomElement as defineChSelect } from '@devschile/chucao/dist/components/ch-select.js';
|
|
12
|
+
import { defineCustomElement as defineChSwitch } from '@devschile/chucao/dist/components/ch-switch.js';
|
|
13
|
+
import { defineCustomElement as defineChTextarea } from '@devschile/chucao/dist/components/ch-textarea.js';
|
|
10
14
|
export const ChBadge = /*@__PURE__*/ defineContainer('ch-badge', defineChBadge, [
|
|
11
15
|
'variant'
|
|
12
16
|
]);
|
|
@@ -19,6 +23,20 @@ export const ChButton = /*@__PURE__*/ defineContainer('ch-button', defineChButto
|
|
|
19
23
|
'chClick'
|
|
20
24
|
]);
|
|
21
25
|
export const ChCard = /*@__PURE__*/ defineContainer('ch-card', defineChCard);
|
|
26
|
+
export const ChCheckbox = /*@__PURE__*/ defineContainer('ch-checkbox', defineChCheckbox, [
|
|
27
|
+
'label',
|
|
28
|
+
'name',
|
|
29
|
+
'value',
|
|
30
|
+
'checked',
|
|
31
|
+
'disabled',
|
|
32
|
+
'required',
|
|
33
|
+
'hint',
|
|
34
|
+
'errorMessage',
|
|
35
|
+
'invalid',
|
|
36
|
+
'chChange'
|
|
37
|
+
], [
|
|
38
|
+
'chChange'
|
|
39
|
+
]);
|
|
22
40
|
export const ChInput = /*@__PURE__*/ defineContainer('ch-input', defineChInput, [
|
|
23
41
|
'label',
|
|
24
42
|
'type',
|
|
@@ -27,12 +45,29 @@ export const ChInput = /*@__PURE__*/ defineContainer('ch-input', defineChInput,
|
|
|
27
45
|
'name',
|
|
28
46
|
'disabled',
|
|
29
47
|
'required',
|
|
48
|
+
'hint',
|
|
49
|
+
'errorMessage',
|
|
50
|
+
'invalid',
|
|
30
51
|
'chInput',
|
|
31
52
|
'chChange'
|
|
32
53
|
], [
|
|
33
54
|
'chInput',
|
|
34
55
|
'chChange'
|
|
35
56
|
]);
|
|
57
|
+
export const ChRadio = /*@__PURE__*/ defineContainer('ch-radio', defineChRadio, [
|
|
58
|
+
'label',
|
|
59
|
+
'options',
|
|
60
|
+
'value',
|
|
61
|
+
'name',
|
|
62
|
+
'disabled',
|
|
63
|
+
'required',
|
|
64
|
+
'hint',
|
|
65
|
+
'errorMessage',
|
|
66
|
+
'invalid',
|
|
67
|
+
'chChange'
|
|
68
|
+
], [
|
|
69
|
+
'chChange'
|
|
70
|
+
]);
|
|
36
71
|
export const ChSelect = /*@__PURE__*/ defineContainer('ch-select', defineChSelect, [
|
|
37
72
|
'label',
|
|
38
73
|
'options',
|
|
@@ -41,7 +76,41 @@ export const ChSelect = /*@__PURE__*/ defineContainer('ch-select', defineChSelec
|
|
|
41
76
|
'name',
|
|
42
77
|
'disabled',
|
|
43
78
|
'required',
|
|
79
|
+
'hint',
|
|
80
|
+
'errorMessage',
|
|
81
|
+
'invalid',
|
|
82
|
+
'chChange'
|
|
83
|
+
], [
|
|
84
|
+
'chChange'
|
|
85
|
+
]);
|
|
86
|
+
export const ChSwitch = /*@__PURE__*/ defineContainer('ch-switch', defineChSwitch, [
|
|
87
|
+
'label',
|
|
88
|
+
'name',
|
|
89
|
+
'value',
|
|
90
|
+
'checked',
|
|
91
|
+
'disabled',
|
|
92
|
+
'required',
|
|
93
|
+
'hint',
|
|
94
|
+
'errorMessage',
|
|
95
|
+
'invalid',
|
|
96
|
+
'chChange'
|
|
97
|
+
], [
|
|
98
|
+
'chChange'
|
|
99
|
+
]);
|
|
100
|
+
export const ChTextarea = /*@__PURE__*/ defineContainer('ch-textarea', defineChTextarea, [
|
|
101
|
+
'label',
|
|
102
|
+
'value',
|
|
103
|
+
'placeholder',
|
|
104
|
+
'rows',
|
|
105
|
+
'name',
|
|
106
|
+
'disabled',
|
|
107
|
+
'required',
|
|
108
|
+
'hint',
|
|
109
|
+
'errorMessage',
|
|
110
|
+
'invalid',
|
|
111
|
+
'chInput',
|
|
44
112
|
'chChange'
|
|
45
113
|
], [
|
|
114
|
+
'chInput',
|
|
46
115
|
'chChange'
|
|
47
116
|
]);
|
package/dist-vue/index.ts
CHANGED
|
@@ -8,8 +8,12 @@ import type { JSX } from '@devschile/chucao/dist/components';
|
|
|
8
8
|
import { defineCustomElement as defineChBadge } from '@devschile/chucao/dist/components/ch-badge.js';
|
|
9
9
|
import { defineCustomElement as defineChButton } from '@devschile/chucao/dist/components/ch-button.js';
|
|
10
10
|
import { defineCustomElement as defineChCard } from '@devschile/chucao/dist/components/ch-card.js';
|
|
11
|
+
import { defineCustomElement as defineChCheckbox } from '@devschile/chucao/dist/components/ch-checkbox.js';
|
|
11
12
|
import { defineCustomElement as defineChInput } from '@devschile/chucao/dist/components/ch-input.js';
|
|
13
|
+
import { defineCustomElement as defineChRadio } from '@devschile/chucao/dist/components/ch-radio.js';
|
|
12
14
|
import { defineCustomElement as defineChSelect } from '@devschile/chucao/dist/components/ch-select.js';
|
|
15
|
+
import { defineCustomElement as defineChSwitch } from '@devschile/chucao/dist/components/ch-switch.js';
|
|
16
|
+
import { defineCustomElement as defineChTextarea } from '@devschile/chucao/dist/components/ch-textarea.js';
|
|
13
17
|
|
|
14
18
|
|
|
15
19
|
|
|
@@ -31,6 +35,22 @@ export const ChButton: StencilVueComponent<JSX.ChButton> = /*@__PURE__*/ defineC
|
|
|
31
35
|
export const ChCard: StencilVueComponent<JSX.ChCard> = /*@__PURE__*/ defineContainer<JSX.ChCard>('ch-card', defineChCard);
|
|
32
36
|
|
|
33
37
|
|
|
38
|
+
export const ChCheckbox: StencilVueComponent<JSX.ChCheckbox> = /*@__PURE__*/ defineContainer<JSX.ChCheckbox>('ch-checkbox', defineChCheckbox, [
|
|
39
|
+
'label',
|
|
40
|
+
'name',
|
|
41
|
+
'value',
|
|
42
|
+
'checked',
|
|
43
|
+
'disabled',
|
|
44
|
+
'required',
|
|
45
|
+
'hint',
|
|
46
|
+
'errorMessage',
|
|
47
|
+
'invalid',
|
|
48
|
+
'chChange'
|
|
49
|
+
], [
|
|
50
|
+
'chChange'
|
|
51
|
+
]);
|
|
52
|
+
|
|
53
|
+
|
|
34
54
|
export const ChInput: StencilVueComponent<JSX.ChInput> = /*@__PURE__*/ defineContainer<JSX.ChInput>('ch-input', defineChInput, [
|
|
35
55
|
'label',
|
|
36
56
|
'type',
|
|
@@ -39,6 +59,9 @@ export const ChInput: StencilVueComponent<JSX.ChInput> = /*@__PURE__*/ defineCon
|
|
|
39
59
|
'name',
|
|
40
60
|
'disabled',
|
|
41
61
|
'required',
|
|
62
|
+
'hint',
|
|
63
|
+
'errorMessage',
|
|
64
|
+
'invalid',
|
|
42
65
|
'chInput',
|
|
43
66
|
'chChange'
|
|
44
67
|
], [
|
|
@@ -47,6 +70,22 @@ export const ChInput: StencilVueComponent<JSX.ChInput> = /*@__PURE__*/ defineCon
|
|
|
47
70
|
]);
|
|
48
71
|
|
|
49
72
|
|
|
73
|
+
export const ChRadio: StencilVueComponent<JSX.ChRadio> = /*@__PURE__*/ defineContainer<JSX.ChRadio>('ch-radio', defineChRadio, [
|
|
74
|
+
'label',
|
|
75
|
+
'options',
|
|
76
|
+
'value',
|
|
77
|
+
'name',
|
|
78
|
+
'disabled',
|
|
79
|
+
'required',
|
|
80
|
+
'hint',
|
|
81
|
+
'errorMessage',
|
|
82
|
+
'invalid',
|
|
83
|
+
'chChange'
|
|
84
|
+
], [
|
|
85
|
+
'chChange'
|
|
86
|
+
]);
|
|
87
|
+
|
|
88
|
+
|
|
50
89
|
export const ChSelect: StencilVueComponent<JSX.ChSelect> = /*@__PURE__*/ defineContainer<JSX.ChSelect>('ch-select', defineChSelect, [
|
|
51
90
|
'label',
|
|
52
91
|
'options',
|
|
@@ -55,8 +94,46 @@ export const ChSelect: StencilVueComponent<JSX.ChSelect> = /*@__PURE__*/ defineC
|
|
|
55
94
|
'name',
|
|
56
95
|
'disabled',
|
|
57
96
|
'required',
|
|
97
|
+
'hint',
|
|
98
|
+
'errorMessage',
|
|
99
|
+
'invalid',
|
|
100
|
+
'chChange'
|
|
101
|
+
], [
|
|
102
|
+
'chChange'
|
|
103
|
+
]);
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
export const ChSwitch: StencilVueComponent<JSX.ChSwitch> = /*@__PURE__*/ defineContainer<JSX.ChSwitch>('ch-switch', defineChSwitch, [
|
|
107
|
+
'label',
|
|
108
|
+
'name',
|
|
109
|
+
'value',
|
|
110
|
+
'checked',
|
|
111
|
+
'disabled',
|
|
112
|
+
'required',
|
|
113
|
+
'hint',
|
|
114
|
+
'errorMessage',
|
|
115
|
+
'invalid',
|
|
116
|
+
'chChange'
|
|
117
|
+
], [
|
|
118
|
+
'chChange'
|
|
119
|
+
]);
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
export const ChTextarea: StencilVueComponent<JSX.ChTextarea> = /*@__PURE__*/ defineContainer<JSX.ChTextarea>('ch-textarea', defineChTextarea, [
|
|
123
|
+
'label',
|
|
124
|
+
'value',
|
|
125
|
+
'placeholder',
|
|
126
|
+
'rows',
|
|
127
|
+
'name',
|
|
128
|
+
'disabled',
|
|
129
|
+
'required',
|
|
130
|
+
'hint',
|
|
131
|
+
'errorMessage',
|
|
132
|
+
'invalid',
|
|
133
|
+
'chInput',
|
|
58
134
|
'chChange'
|
|
59
135
|
], [
|
|
136
|
+
'chInput',
|
|
60
137
|
'chChange'
|
|
61
138
|
]);
|
|
62
139
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devschile/chucao",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.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-CuWheDah.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-035c479d.entry.js.map
|