@devschile/chucao 1.0.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/LICENSE +21 -0
- package/README.md +358 -0
- package/dist/chucao/chucao.css +2 -0
- package/dist/chucao/chucao.esm.js +2 -0
- package/dist/chucao/chucao.esm.js.map +1 -0
- package/dist/chucao/fonts/fira-sans-latin-400-normal.woff2 +0 -0
- package/dist/chucao/fonts/fira-sans-latin-600-normal.woff2 +0 -0
- package/dist/chucao/fonts/fira-sans-latin-700-normal.woff2 +0 -0
- package/dist/chucao/fonts/inconsolata-latin-400-normal.woff2 +0 -0
- package/dist/chucao/index.esm.js +2 -0
- package/dist/chucao/index.esm.js.map +1 -0
- package/dist/chucao/p-2eeff869.entry.js +2 -0
- package/dist/chucao/p-2eeff869.entry.js.map +1 -0
- package/dist/chucao/p-QBEhw78y.js +3 -0
- package/dist/chucao/p-QBEhw78y.js.map +1 -0
- package/dist/cjs/ch-badge_5.cjs.entry.js +187 -0
- package/dist/cjs/ch-badge_5.cjs.entry.js.map +1 -0
- package/dist/cjs/chucao.cjs.js +27 -0
- package/dist/cjs/chucao.cjs.js.map +1 -0
- package/dist/cjs/index-Do8JpTKQ.js +1485 -0
- package/dist/cjs/index-Do8JpTKQ.js.map +1 -0
- package/dist/cjs/index.cjs.js +98 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +17 -0
- package/dist/collection/components/ch-badge/ch-badge.css +27 -0
- package/dist/collection/components/ch-badge/ch-badge.js +53 -0
- package/dist/collection/components/ch-badge/ch-badge.js.map +1 -0
- package/dist/collection/components/ch-button/ch-button.css +58 -0
- package/dist/collection/components/ch-button/ch-button.js +132 -0
- package/dist/collection/components/ch-button/ch-button.js.map +1 -0
- package/dist/collection/components/ch-card/ch-card.css +44 -0
- package/dist/collection/components/ch-card/ch-card.js +19 -0
- package/dist/collection/components/ch-card/ch-card.js.map +1 -0
- package/dist/collection/components/ch-input/ch-input.css +43 -0
- package/dist/collection/components/ch-input/ch-input.js +240 -0
- package/dist/collection/components/ch-input/ch-input.js.map +1 -0
- package/dist/collection/components/ch-select/ch-select.css +45 -0
- package/dist/collection/components/ch-select/ch-select.js +220 -0
- package/dist/collection/components/ch-select/ch-select.js.map +1 -0
- package/dist/collection/fonts/fira-sans-latin-400-normal.woff2 +0 -0
- package/dist/collection/fonts/fira-sans-latin-600-normal.woff2 +0 -0
- package/dist/collection/fonts/fira-sans-latin-700-normal.woff2 +0 -0
- package/dist/collection/fonts/inconsolata-latin-400-normal.woff2 +0 -0
- package/dist/collection/index.js +11 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/tokens/tokens.js +70 -0
- package/dist/collection/tokens/tokens.js.map +1 -0
- package/dist/collection/tokens/types.js +2 -0
- package/dist/collection/tokens/types.js.map +1 -0
- package/dist/components/ch-badge.d.ts +11 -0
- package/dist/components/ch-badge.js +2 -0
- package/dist/components/ch-badge.js.map +1 -0
- package/dist/components/ch-button.d.ts +11 -0
- package/dist/components/ch-button.js +2 -0
- package/dist/components/ch-button.js.map +1 -0
- package/dist/components/ch-card.d.ts +11 -0
- package/dist/components/ch-card.js +2 -0
- package/dist/components/ch-card.js.map +1 -0
- package/dist/components/ch-input.d.ts +11 -0
- package/dist/components/ch-input.js +2 -0
- package/dist/components/ch-input.js.map +1 -0
- package/dist/components/ch-select.d.ts +11 -0
- package/dist/components/ch-select.js +2 -0
- package/dist/components/ch-select.js.map +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/p-BImgfbXx.js +2 -0
- package/dist/components/p-BImgfbXx.js.map +1 -0
- package/dist/esm/ch-badge_5.entry.js +181 -0
- package/dist/esm/ch-badge_5.entry.js.map +1 -0
- package/dist/esm/chucao.js +23 -0
- package/dist/esm/chucao.js.map +1 -0
- package/dist/esm/index-QBEhw78y.js +1476 -0
- package/dist/esm/index-QBEhw78y.js.map +1 -0
- package/dist/esm/index.js +74 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/ch-badge/ch-badge.d.ts +8 -0
- package/dist/types/components/ch-button/ch-button.d.ts +24 -0
- package/dist/types/components/ch-card/ch-card.d.ts +3 -0
- package/dist/types/components/ch-input/ch-input.d.ts +44 -0
- package/dist/types/components/ch-select/ch-select.d.ts +44 -0
- package/dist/types/components.d.ts +348 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/stencil-public-runtime.d.ts +1861 -0
- package/dist/types/tokens/tokens.d.ts +69 -0
- package/dist/types/tokens/types.d.ts +5 -0
- package/dist-react/components.d.ts +29 -0
- package/dist-react/components.js +51 -0
- package/dist-react/components.ts +81 -0
- package/dist-vue/index.d.ts +7 -0
- package/dist-vue/index.js +47 -0
- package/dist-vue/index.ts +63 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +125 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export declare const colorBackgroundBase = "#100a1c";
|
|
2
|
+
export declare const colorBackgroundTopGlow = "#201e40";
|
|
3
|
+
export declare const colorBackgroundBottomGlow = "#261226";
|
|
4
|
+
export declare const colorSurfaceDefault = "rgba(32, 30, 64, 0.6)";
|
|
5
|
+
export declare const colorSurfaceHover = "rgba(45, 212, 191, 0.08)";
|
|
6
|
+
export declare const colorBorderDefault = "rgba(255, 255, 255, 0.08)";
|
|
7
|
+
export declare const colorBorderHover = "rgba(45, 212, 191, 0.3)";
|
|
8
|
+
export declare const colorAccentDefault = "#2dd4bf";
|
|
9
|
+
export declare const colorAccentHover = "#5ee8d4";
|
|
10
|
+
export declare const colorStatusPositive = "#4ade80";
|
|
11
|
+
export declare const colorStatusPositiveBackground = "rgba(34, 197, 94, 0.18)";
|
|
12
|
+
export declare const colorStatusWarning = "#f87171";
|
|
13
|
+
export declare const colorStatusWarningBackground = "rgba(248, 113, 113, 0.15)";
|
|
14
|
+
export declare const colorTextPrimary = "#ffffff";
|
|
15
|
+
export declare const colorTextSecondary = "rgba(255, 255, 255, 0.55)";
|
|
16
|
+
export declare const colorBrandHuemulDark = "#85422b";
|
|
17
|
+
export declare const colorBrandHuemulLight = "#b45b38";
|
|
18
|
+
export declare const colorBrandStroke = "#1d1d1b";
|
|
19
|
+
export declare const typographyBody = "Fira Sans, Droid Sans, Helvetica Neue, sans-serif";
|
|
20
|
+
export declare const typographyHeading = "Inconsolata, monospace";
|
|
21
|
+
export declare const spacingRadius = "6px";
|
|
22
|
+
export declare const layoutMaxWidth = "68rem";
|
|
23
|
+
export declare const tokens: {
|
|
24
|
+
readonly color: {
|
|
25
|
+
readonly background: {
|
|
26
|
+
readonly base: "#100a1c";
|
|
27
|
+
readonly topGlow: "#201e40";
|
|
28
|
+
readonly bottomGlow: "#261226";
|
|
29
|
+
};
|
|
30
|
+
readonly surface: {
|
|
31
|
+
readonly default: "rgba(32, 30, 64, 0.6)";
|
|
32
|
+
readonly hover: "rgba(45, 212, 191, 0.08)";
|
|
33
|
+
};
|
|
34
|
+
readonly border: {
|
|
35
|
+
readonly default: "rgba(255, 255, 255, 0.08)";
|
|
36
|
+
readonly hover: "rgba(45, 212, 191, 0.3)";
|
|
37
|
+
};
|
|
38
|
+
readonly accent: {
|
|
39
|
+
readonly default: "#2dd4bf";
|
|
40
|
+
readonly hover: "#5ee8d4";
|
|
41
|
+
};
|
|
42
|
+
readonly status: {
|
|
43
|
+
readonly positive: "#4ade80";
|
|
44
|
+
readonly positiveBackground: "rgba(34, 197, 94, 0.18)";
|
|
45
|
+
readonly warning: "#f87171";
|
|
46
|
+
readonly warningBackground: "rgba(248, 113, 113, 0.15)";
|
|
47
|
+
};
|
|
48
|
+
readonly text: {
|
|
49
|
+
readonly primary: "#ffffff";
|
|
50
|
+
readonly secondary: "rgba(255, 255, 255, 0.55)";
|
|
51
|
+
};
|
|
52
|
+
readonly brand: {
|
|
53
|
+
readonly huemulDark: "#85422b";
|
|
54
|
+
readonly huemulLight: "#b45b38";
|
|
55
|
+
readonly stroke: "#1d1d1b";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
readonly typography: {
|
|
59
|
+
readonly body: "Fira Sans, Droid Sans, Helvetica Neue, sans-serif";
|
|
60
|
+
readonly heading: "Inconsolata, monospace";
|
|
61
|
+
};
|
|
62
|
+
readonly spacing: {
|
|
63
|
+
readonly radius: "6px";
|
|
64
|
+
};
|
|
65
|
+
readonly layout: {
|
|
66
|
+
readonly maxWidth: "68rem";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export type TokenCategory = keyof typeof tokens;
|
|
@@ -0,0 +1,5 @@
|
|
|
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.radius';
|
|
4
|
+
export type LayoutToken = 'layout.max-width';
|
|
5
|
+
export type TokenName = ColorToken | TypographyToken | SpacingToken | LayoutToken;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
+
import { type ChButtonCustomEvent, type ChInputCustomEvent, type ChSelectCustomEvent } from "@devschile/chucao";
|
|
7
|
+
import type { Components } from "@devschile/chucao/dist/components";
|
|
8
|
+
import { ChBadge as ChBadgeElement } from "@devschile/chucao/dist/components/ch-badge.js";
|
|
9
|
+
import { ChButton as ChButtonElement } from "@devschile/chucao/dist/components/ch-button.js";
|
|
10
|
+
import { ChCard as ChCardElement } from "@devschile/chucao/dist/components/ch-card.js";
|
|
11
|
+
import { ChInput as ChInputElement } from "@devschile/chucao/dist/components/ch-input.js";
|
|
12
|
+
import { ChSelect as ChSelectElement } from "@devschile/chucao/dist/components/ch-select.js";
|
|
13
|
+
export type ChBadgeEvents = NonNullable<unknown>;
|
|
14
|
+
export declare const ChBadge: StencilReactComponent<ChBadgeElement, ChBadgeEvents, Components.ChBadge>;
|
|
15
|
+
export type ChButtonEvents = {
|
|
16
|
+
onChClick: EventName<ChButtonCustomEvent<MouseEvent>>;
|
|
17
|
+
};
|
|
18
|
+
export declare const ChButton: StencilReactComponent<ChButtonElement, ChButtonEvents, Components.ChButton>;
|
|
19
|
+
export type ChCardEvents = NonNullable<unknown>;
|
|
20
|
+
export declare const ChCard: StencilReactComponent<ChCardElement, ChCardEvents, Components.ChCard>;
|
|
21
|
+
export type ChInputEvents = {
|
|
22
|
+
onChInput: EventName<ChInputCustomEvent<string>>;
|
|
23
|
+
onChChange: EventName<ChInputCustomEvent<string>>;
|
|
24
|
+
};
|
|
25
|
+
export declare const ChInput: StencilReactComponent<ChInputElement, ChInputEvents, Components.ChInput>;
|
|
26
|
+
export type ChSelectEvents = {
|
|
27
|
+
onChChange: EventName<ChSelectCustomEvent<string>>;
|
|
28
|
+
};
|
|
29
|
+
export declare const ChSelect: StencilReactComponent<ChSelectElement, ChSelectEvents, Components.ChSelect>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { ChBadge as ChBadgeElement, defineCustomElement as defineChBadge } from "@devschile/chucao/dist/components/ch-badge.js";
|
|
5
|
+
import { ChButton as ChButtonElement, defineCustomElement as defineChButton } from "@devschile/chucao/dist/components/ch-button.js";
|
|
6
|
+
import { ChCard as ChCardElement, defineCustomElement as defineChCard } from "@devschile/chucao/dist/components/ch-card.js";
|
|
7
|
+
import { ChInput as ChInputElement, defineCustomElement as defineChInput } from "@devschile/chucao/dist/components/ch-input.js";
|
|
8
|
+
import { ChSelect as ChSelectElement, defineCustomElement as defineChSelect } from "@devschile/chucao/dist/components/ch-select.js";
|
|
9
|
+
export const ChBadge = /*@__PURE__*/ createComponent({
|
|
10
|
+
tagName: 'ch-badge',
|
|
11
|
+
elementClass: ChBadgeElement,
|
|
12
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
13
|
+
react: React,
|
|
14
|
+
events: {},
|
|
15
|
+
defineCustomElement: defineChBadge
|
|
16
|
+
});
|
|
17
|
+
export const ChButton = /*@__PURE__*/ createComponent({
|
|
18
|
+
tagName: 'ch-button',
|
|
19
|
+
elementClass: ChButtonElement,
|
|
20
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
21
|
+
react: React,
|
|
22
|
+
events: { onChClick: 'chClick' },
|
|
23
|
+
defineCustomElement: defineChButton
|
|
24
|
+
});
|
|
25
|
+
export const ChCard = /*@__PURE__*/ createComponent({
|
|
26
|
+
tagName: 'ch-card',
|
|
27
|
+
elementClass: ChCardElement,
|
|
28
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
29
|
+
react: React,
|
|
30
|
+
events: {},
|
|
31
|
+
defineCustomElement: defineChCard
|
|
32
|
+
});
|
|
33
|
+
export const ChInput = /*@__PURE__*/ createComponent({
|
|
34
|
+
tagName: 'ch-input',
|
|
35
|
+
elementClass: ChInputElement,
|
|
36
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
37
|
+
react: React,
|
|
38
|
+
events: {
|
|
39
|
+
onChInput: 'chInput',
|
|
40
|
+
onChChange: 'chChange'
|
|
41
|
+
},
|
|
42
|
+
defineCustomElement: defineChInput
|
|
43
|
+
});
|
|
44
|
+
export const ChSelect = /*@__PURE__*/ createComponent({
|
|
45
|
+
tagName: 'ch-select',
|
|
46
|
+
elementClass: ChSelectElement,
|
|
47
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
48
|
+
react: React,
|
|
49
|
+
events: { onChChange: 'chChange' },
|
|
50
|
+
defineCustomElement: defineChSelect
|
|
51
|
+
});
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
5
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/* eslint-disable */
|
|
9
|
+
|
|
10
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
11
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
12
|
+
import React from 'react';
|
|
13
|
+
|
|
14
|
+
import { type ChButtonCustomEvent, type ChInputCustomEvent, type ChSelectCustomEvent } from "@devschile/chucao";
|
|
15
|
+
import type { Components } from "@devschile/chucao/dist/components";
|
|
16
|
+
import { ChBadge as ChBadgeElement, defineCustomElement as defineChBadge } from "@devschile/chucao/dist/components/ch-badge.js";
|
|
17
|
+
import { ChButton as ChButtonElement, defineCustomElement as defineChButton } from "@devschile/chucao/dist/components/ch-button.js";
|
|
18
|
+
import { ChCard as ChCardElement, defineCustomElement as defineChCard } from "@devschile/chucao/dist/components/ch-card.js";
|
|
19
|
+
import { ChInput as ChInputElement, defineCustomElement as defineChInput } from "@devschile/chucao/dist/components/ch-input.js";
|
|
20
|
+
import { ChSelect as ChSelectElement, defineCustomElement as defineChSelect } from "@devschile/chucao/dist/components/ch-select.js";
|
|
21
|
+
|
|
22
|
+
export type ChBadgeEvents = NonNullable<unknown>;
|
|
23
|
+
|
|
24
|
+
export const ChBadge: StencilReactComponent<ChBadgeElement, ChBadgeEvents, Components.ChBadge> = /*@__PURE__*/ createComponent<ChBadgeElement, ChBadgeEvents, Components.ChBadge>({
|
|
25
|
+
tagName: 'ch-badge',
|
|
26
|
+
elementClass: ChBadgeElement,
|
|
27
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
28
|
+
react: React,
|
|
29
|
+
events: {} as ChBadgeEvents,
|
|
30
|
+
defineCustomElement: defineChBadge
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export type ChButtonEvents = { onChClick: EventName<ChButtonCustomEvent<MouseEvent>> };
|
|
34
|
+
|
|
35
|
+
export const ChButton: StencilReactComponent<ChButtonElement, ChButtonEvents, Components.ChButton> = /*@__PURE__*/ createComponent<ChButtonElement, ChButtonEvents, Components.ChButton>({
|
|
36
|
+
tagName: 'ch-button',
|
|
37
|
+
elementClass: ChButtonElement,
|
|
38
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
39
|
+
react: React,
|
|
40
|
+
events: { onChClick: 'chClick' } as ChButtonEvents,
|
|
41
|
+
defineCustomElement: defineChButton
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export type ChCardEvents = NonNullable<unknown>;
|
|
45
|
+
|
|
46
|
+
export const ChCard: StencilReactComponent<ChCardElement, ChCardEvents, Components.ChCard> = /*@__PURE__*/ createComponent<ChCardElement, ChCardEvents, Components.ChCard>({
|
|
47
|
+
tagName: 'ch-card',
|
|
48
|
+
elementClass: ChCardElement,
|
|
49
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
50
|
+
react: React,
|
|
51
|
+
events: {} as ChCardEvents,
|
|
52
|
+
defineCustomElement: defineChCard
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export type ChInputEvents = {
|
|
56
|
+
onChInput: EventName<ChInputCustomEvent<string>>,
|
|
57
|
+
onChChange: EventName<ChInputCustomEvent<string>>
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export const ChInput: StencilReactComponent<ChInputElement, ChInputEvents, Components.ChInput> = /*@__PURE__*/ createComponent<ChInputElement, ChInputEvents, Components.ChInput>({
|
|
61
|
+
tagName: 'ch-input',
|
|
62
|
+
elementClass: ChInputElement,
|
|
63
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
64
|
+
react: React,
|
|
65
|
+
events: {
|
|
66
|
+
onChInput: 'chInput',
|
|
67
|
+
onChChange: 'chChange'
|
|
68
|
+
} as ChInputEvents,
|
|
69
|
+
defineCustomElement: defineChInput
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export type ChSelectEvents = { onChChange: EventName<ChSelectCustomEvent<string>> };
|
|
73
|
+
|
|
74
|
+
export const ChSelect: StencilReactComponent<ChSelectElement, ChSelectEvents, Components.ChSelect> = /*@__PURE__*/ createComponent<ChSelectElement, ChSelectEvents, Components.ChSelect>({
|
|
75
|
+
tagName: 'ch-select',
|
|
76
|
+
elementClass: ChSelectElement,
|
|
77
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
78
|
+
react: React,
|
|
79
|
+
events: { onChChange: 'chChange' } as ChSelectEvents,
|
|
80
|
+
defineCustomElement: defineChSelect
|
|
81
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type StencilVueComponent } from '@stencil/vue-output-target/runtime';
|
|
2
|
+
import type { JSX } from '@devschile/chucao/dist/components';
|
|
3
|
+
export declare const ChBadge: StencilVueComponent<JSX.ChBadge>;
|
|
4
|
+
export declare const ChButton: StencilVueComponent<JSX.ChButton>;
|
|
5
|
+
export declare const ChCard: StencilVueComponent<JSX.ChCard>;
|
|
6
|
+
export declare const ChInput: StencilVueComponent<JSX.ChInput>;
|
|
7
|
+
export declare const ChSelect: StencilVueComponent<JSX.ChSelect>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* auto-generated vue proxies */
|
|
4
|
+
import { defineContainer } from '@stencil/vue-output-target/runtime';
|
|
5
|
+
import { defineCustomElement as defineChBadge } from '@devschile/chucao/dist/components/ch-badge.js';
|
|
6
|
+
import { defineCustomElement as defineChButton } from '@devschile/chucao/dist/components/ch-button.js';
|
|
7
|
+
import { defineCustomElement as defineChCard } from '@devschile/chucao/dist/components/ch-card.js';
|
|
8
|
+
import { defineCustomElement as defineChInput } from '@devschile/chucao/dist/components/ch-input.js';
|
|
9
|
+
import { defineCustomElement as defineChSelect } from '@devschile/chucao/dist/components/ch-select.js';
|
|
10
|
+
export const ChBadge = /*@__PURE__*/ defineContainer('ch-badge', defineChBadge, [
|
|
11
|
+
'variant'
|
|
12
|
+
]);
|
|
13
|
+
export const ChButton = /*@__PURE__*/ defineContainer('ch-button', defineChButton, [
|
|
14
|
+
'variant',
|
|
15
|
+
'disabled',
|
|
16
|
+
'label',
|
|
17
|
+
'chClick'
|
|
18
|
+
], [
|
|
19
|
+
'chClick'
|
|
20
|
+
]);
|
|
21
|
+
export const ChCard = /*@__PURE__*/ defineContainer('ch-card', defineChCard);
|
|
22
|
+
export const ChInput = /*@__PURE__*/ defineContainer('ch-input', defineChInput, [
|
|
23
|
+
'label',
|
|
24
|
+
'type',
|
|
25
|
+
'value',
|
|
26
|
+
'placeholder',
|
|
27
|
+
'name',
|
|
28
|
+
'disabled',
|
|
29
|
+
'required',
|
|
30
|
+
'chInput',
|
|
31
|
+
'chChange'
|
|
32
|
+
], [
|
|
33
|
+
'chInput',
|
|
34
|
+
'chChange'
|
|
35
|
+
]);
|
|
36
|
+
export const ChSelect = /*@__PURE__*/ defineContainer('ch-select', defineChSelect, [
|
|
37
|
+
'label',
|
|
38
|
+
'options',
|
|
39
|
+
'value',
|
|
40
|
+
'placeholder',
|
|
41
|
+
'name',
|
|
42
|
+
'disabled',
|
|
43
|
+
'required',
|
|
44
|
+
'chChange'
|
|
45
|
+
], [
|
|
46
|
+
'chChange'
|
|
47
|
+
]);
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* auto-generated vue proxies */
|
|
4
|
+
import { defineContainer, type StencilVueComponent } from '@stencil/vue-output-target/runtime';
|
|
5
|
+
|
|
6
|
+
import type { JSX } from '@devschile/chucao/dist/components';
|
|
7
|
+
|
|
8
|
+
import { defineCustomElement as defineChBadge } from '@devschile/chucao/dist/components/ch-badge.js';
|
|
9
|
+
import { defineCustomElement as defineChButton } from '@devschile/chucao/dist/components/ch-button.js';
|
|
10
|
+
import { defineCustomElement as defineChCard } from '@devschile/chucao/dist/components/ch-card.js';
|
|
11
|
+
import { defineCustomElement as defineChInput } from '@devschile/chucao/dist/components/ch-input.js';
|
|
12
|
+
import { defineCustomElement as defineChSelect } from '@devschile/chucao/dist/components/ch-select.js';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export const ChBadge: StencilVueComponent<JSX.ChBadge> = /*@__PURE__*/ defineContainer<JSX.ChBadge>('ch-badge', defineChBadge, [
|
|
17
|
+
'variant'
|
|
18
|
+
]);
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export const ChButton: StencilVueComponent<JSX.ChButton> = /*@__PURE__*/ defineContainer<JSX.ChButton>('ch-button', defineChButton, [
|
|
22
|
+
'variant',
|
|
23
|
+
'disabled',
|
|
24
|
+
'label',
|
|
25
|
+
'chClick'
|
|
26
|
+
], [
|
|
27
|
+
'chClick'
|
|
28
|
+
]);
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export const ChCard: StencilVueComponent<JSX.ChCard> = /*@__PURE__*/ defineContainer<JSX.ChCard>('ch-card', defineChCard);
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export const ChInput: StencilVueComponent<JSX.ChInput> = /*@__PURE__*/ defineContainer<JSX.ChInput>('ch-input', defineChInput, [
|
|
35
|
+
'label',
|
|
36
|
+
'type',
|
|
37
|
+
'value',
|
|
38
|
+
'placeholder',
|
|
39
|
+
'name',
|
|
40
|
+
'disabled',
|
|
41
|
+
'required',
|
|
42
|
+
'chInput',
|
|
43
|
+
'chChange'
|
|
44
|
+
], [
|
|
45
|
+
'chInput',
|
|
46
|
+
'chChange'
|
|
47
|
+
]);
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
export const ChSelect: StencilVueComponent<JSX.ChSelect> = /*@__PURE__*/ defineContainer<JSX.ChSelect>('ch-select', defineChSelect, [
|
|
51
|
+
'label',
|
|
52
|
+
'options',
|
|
53
|
+
'value',
|
|
54
|
+
'placeholder',
|
|
55
|
+
'name',
|
|
56
|
+
'disabled',
|
|
57
|
+
'required',
|
|
58
|
+
'chChange'
|
|
59
|
+
], [
|
|
60
|
+
'chChange'
|
|
61
|
+
]);
|
|
62
|
+
|
|
63
|
+
|
package/loader/cdn.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/cjs/loader.cjs.js');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/cjs/loader.cjs.js');
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from '../dist/types/components';
|
|
2
|
+
export interface CustomElementsDefineOptions {
|
|
3
|
+
exclude?: string[];
|
|
4
|
+
resourcesUrl?: string;
|
|
5
|
+
syncQueue?: boolean;
|
|
6
|
+
jmp?: (c: Function) => any;
|
|
7
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
8
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
15
|
+
export declare function applyPolyfills(): Promise<void>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
19
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
20
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
21
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
22
|
+
* will result in the same behavior.
|
|
23
|
+
*/
|
|
24
|
+
export declare function setNonce(nonce: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/esm/loader.js';
|
package/loader/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
2
|
+
export * from '../dist/esm/loader.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@devschile/chucao",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Chucao — devsChile design system, packaged as StencilJS web components",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"stenciljs",
|
|
7
|
+
"web-components",
|
|
8
|
+
"design-system",
|
|
9
|
+
"devschile",
|
|
10
|
+
"chucao",
|
|
11
|
+
"ui-components"
|
|
12
|
+
],
|
|
13
|
+
"author": "devsChile",
|
|
14
|
+
"homepage": "https://github.com/devschile/chucao#readme",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/devschile/chucao/issues"
|
|
17
|
+
},
|
|
18
|
+
"main": "dist/index.cjs.js",
|
|
19
|
+
"module": "dist/index.js",
|
|
20
|
+
"types": "dist/types/index.d.ts",
|
|
21
|
+
"collection": "dist/collection/collection-manifest.json",
|
|
22
|
+
"collection:main": "dist/collection/index.js",
|
|
23
|
+
"unpkg": "dist/chucao/chucao.esm.js",
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./dist/types/index.d.ts",
|
|
27
|
+
"import": "./dist/chucao/chucao.esm.js",
|
|
28
|
+
"require": "./dist/chucao/chucao.cjs.js"
|
|
29
|
+
},
|
|
30
|
+
"./ch-button": {
|
|
31
|
+
"import": "./dist/components/ch-button.js",
|
|
32
|
+
"types": "./dist/components/ch-button.d.ts"
|
|
33
|
+
},
|
|
34
|
+
"./dist/components": {
|
|
35
|
+
"import": "./dist/components/index.js",
|
|
36
|
+
"types": "./dist/components/index.d.ts"
|
|
37
|
+
},
|
|
38
|
+
"./dist/components/*": {
|
|
39
|
+
"import": "./dist/components/*",
|
|
40
|
+
"types": "./dist/components/*.d.ts"
|
|
41
|
+
},
|
|
42
|
+
"./loader": {
|
|
43
|
+
"import": "./loader/index.js",
|
|
44
|
+
"require": "./loader/index.cjs",
|
|
45
|
+
"types": "./loader/index.d.ts"
|
|
46
|
+
},
|
|
47
|
+
"./react": {
|
|
48
|
+
"import": "./dist-react/components.js",
|
|
49
|
+
"types": "./dist-react/components.d.ts"
|
|
50
|
+
},
|
|
51
|
+
"./vue": {
|
|
52
|
+
"import": "./dist-vue/index.js",
|
|
53
|
+
"types": "./dist-vue/index.d.ts"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"sideEffects": false,
|
|
57
|
+
"repository": {
|
|
58
|
+
"type": "git",
|
|
59
|
+
"url": "https://github.com/devschile/chucao.git"
|
|
60
|
+
},
|
|
61
|
+
"publishConfig": {
|
|
62
|
+
"access": "public"
|
|
63
|
+
},
|
|
64
|
+
"engines": {
|
|
65
|
+
"node": ">=24"
|
|
66
|
+
},
|
|
67
|
+
"packageManager": "pnpm@11.17.0",
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"react": "^18 || ^19",
|
|
70
|
+
"react-dom": "^18 || ^19",
|
|
71
|
+
"vue": "^3.4.38"
|
|
72
|
+
},
|
|
73
|
+
"peerDependenciesMeta": {
|
|
74
|
+
"react": {
|
|
75
|
+
"optional": true
|
|
76
|
+
},
|
|
77
|
+
"react-dom": {
|
|
78
|
+
"optional": true
|
|
79
|
+
},
|
|
80
|
+
"vue": {
|
|
81
|
+
"optional": true
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"files": [
|
|
85
|
+
"dist/",
|
|
86
|
+
"dist-react/",
|
|
87
|
+
"dist-vue/",
|
|
88
|
+
"loader/"
|
|
89
|
+
],
|
|
90
|
+
"scripts": {
|
|
91
|
+
"build": "stencil build && pnpm run build:react && pnpm run build:vue",
|
|
92
|
+
"build:react": "tsc -p tsconfig.react.json",
|
|
93
|
+
"build:vue": "tsc -p tsconfig.vue.json",
|
|
94
|
+
"start": "stencil build --dev --watch --serve",
|
|
95
|
+
"test": "stencil-test --prod",
|
|
96
|
+
"test:watch": "stencil-test --prod --watch",
|
|
97
|
+
"test:coverage": "stencil-test --prod --coverage",
|
|
98
|
+
"generate": "stencil generate",
|
|
99
|
+
"lint": "oxlint .",
|
|
100
|
+
"lint:fix": "oxlint . --fix",
|
|
101
|
+
"format": "prettier --write .",
|
|
102
|
+
"format:check": "prettier --check ."
|
|
103
|
+
},
|
|
104
|
+
"devDependencies": {
|
|
105
|
+
"@stencil/core": "^4.27.1 || ^5.0.0-0",
|
|
106
|
+
"@stencil/react-output-target": "^1.6.1",
|
|
107
|
+
"@stencil/vitest": "^1.8.3",
|
|
108
|
+
"@stencil/vue-output-target": "^0.14.1",
|
|
109
|
+
"@types/node": "^22.13.5",
|
|
110
|
+
"@types/react": "^19.2.18",
|
|
111
|
+
"@types/react-dom": "^19.2.4",
|
|
112
|
+
"@vitest/browser-playwright": "^4.0.0",
|
|
113
|
+
"@vitest/coverage-istanbul": "^4.1.10",
|
|
114
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
115
|
+
"oxlint": "^1.77.0",
|
|
116
|
+
"playwright": "^1.52.0",
|
|
117
|
+
"prettier": "^3.9.6",
|
|
118
|
+
"react": "^19.2.8",
|
|
119
|
+
"react-dom": "^19.2.8",
|
|
120
|
+
"typescript": "^7.0.2",
|
|
121
|
+
"vitest": "^4.0.0",
|
|
122
|
+
"vue": "^3.5.41"
|
|
123
|
+
},
|
|
124
|
+
"license": "MIT"
|
|
125
|
+
}
|