@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.
Files changed (105) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +358 -0
  3. package/dist/chucao/chucao.css +2 -0
  4. package/dist/chucao/chucao.esm.js +2 -0
  5. package/dist/chucao/chucao.esm.js.map +1 -0
  6. package/dist/chucao/fonts/fira-sans-latin-400-normal.woff2 +0 -0
  7. package/dist/chucao/fonts/fira-sans-latin-600-normal.woff2 +0 -0
  8. package/dist/chucao/fonts/fira-sans-latin-700-normal.woff2 +0 -0
  9. package/dist/chucao/fonts/inconsolata-latin-400-normal.woff2 +0 -0
  10. package/dist/chucao/index.esm.js +2 -0
  11. package/dist/chucao/index.esm.js.map +1 -0
  12. package/dist/chucao/p-2eeff869.entry.js +2 -0
  13. package/dist/chucao/p-2eeff869.entry.js.map +1 -0
  14. package/dist/chucao/p-QBEhw78y.js +3 -0
  15. package/dist/chucao/p-QBEhw78y.js.map +1 -0
  16. package/dist/cjs/ch-badge_5.cjs.entry.js +187 -0
  17. package/dist/cjs/ch-badge_5.cjs.entry.js.map +1 -0
  18. package/dist/cjs/chucao.cjs.js +27 -0
  19. package/dist/cjs/chucao.cjs.js.map +1 -0
  20. package/dist/cjs/index-Do8JpTKQ.js +1485 -0
  21. package/dist/cjs/index-Do8JpTKQ.js.map +1 -0
  22. package/dist/cjs/index.cjs.js +98 -0
  23. package/dist/cjs/index.cjs.js.map +1 -0
  24. package/dist/cjs/loader.cjs.js +15 -0
  25. package/dist/cjs/loader.cjs.js.map +1 -0
  26. package/dist/collection/collection-manifest.json +17 -0
  27. package/dist/collection/components/ch-badge/ch-badge.css +27 -0
  28. package/dist/collection/components/ch-badge/ch-badge.js +53 -0
  29. package/dist/collection/components/ch-badge/ch-badge.js.map +1 -0
  30. package/dist/collection/components/ch-button/ch-button.css +58 -0
  31. package/dist/collection/components/ch-button/ch-button.js +132 -0
  32. package/dist/collection/components/ch-button/ch-button.js.map +1 -0
  33. package/dist/collection/components/ch-card/ch-card.css +44 -0
  34. package/dist/collection/components/ch-card/ch-card.js +19 -0
  35. package/dist/collection/components/ch-card/ch-card.js.map +1 -0
  36. package/dist/collection/components/ch-input/ch-input.css +43 -0
  37. package/dist/collection/components/ch-input/ch-input.js +240 -0
  38. package/dist/collection/components/ch-input/ch-input.js.map +1 -0
  39. package/dist/collection/components/ch-select/ch-select.css +45 -0
  40. package/dist/collection/components/ch-select/ch-select.js +220 -0
  41. package/dist/collection/components/ch-select/ch-select.js.map +1 -0
  42. package/dist/collection/fonts/fira-sans-latin-400-normal.woff2 +0 -0
  43. package/dist/collection/fonts/fira-sans-latin-600-normal.woff2 +0 -0
  44. package/dist/collection/fonts/fira-sans-latin-700-normal.woff2 +0 -0
  45. package/dist/collection/fonts/inconsolata-latin-400-normal.woff2 +0 -0
  46. package/dist/collection/index.js +11 -0
  47. package/dist/collection/index.js.map +1 -0
  48. package/dist/collection/tokens/tokens.js +70 -0
  49. package/dist/collection/tokens/tokens.js.map +1 -0
  50. package/dist/collection/tokens/types.js +2 -0
  51. package/dist/collection/tokens/types.js.map +1 -0
  52. package/dist/components/ch-badge.d.ts +11 -0
  53. package/dist/components/ch-badge.js +2 -0
  54. package/dist/components/ch-badge.js.map +1 -0
  55. package/dist/components/ch-button.d.ts +11 -0
  56. package/dist/components/ch-button.js +2 -0
  57. package/dist/components/ch-button.js.map +1 -0
  58. package/dist/components/ch-card.d.ts +11 -0
  59. package/dist/components/ch-card.js +2 -0
  60. package/dist/components/ch-card.js.map +1 -0
  61. package/dist/components/ch-input.d.ts +11 -0
  62. package/dist/components/ch-input.js +2 -0
  63. package/dist/components/ch-input.js.map +1 -0
  64. package/dist/components/ch-select.d.ts +11 -0
  65. package/dist/components/ch-select.js +2 -0
  66. package/dist/components/ch-select.js.map +1 -0
  67. package/dist/components/index.d.ts +35 -0
  68. package/dist/components/index.js +2 -0
  69. package/dist/components/index.js.map +1 -0
  70. package/dist/components/p-BImgfbXx.js +2 -0
  71. package/dist/components/p-BImgfbXx.js.map +1 -0
  72. package/dist/esm/ch-badge_5.entry.js +181 -0
  73. package/dist/esm/ch-badge_5.entry.js.map +1 -0
  74. package/dist/esm/chucao.js +23 -0
  75. package/dist/esm/chucao.js.map +1 -0
  76. package/dist/esm/index-QBEhw78y.js +1476 -0
  77. package/dist/esm/index-QBEhw78y.js.map +1 -0
  78. package/dist/esm/index.js +74 -0
  79. package/dist/esm/index.js.map +1 -0
  80. package/dist/esm/loader.js +13 -0
  81. package/dist/esm/loader.js.map +1 -0
  82. package/dist/index.cjs.js +1 -0
  83. package/dist/index.js +1 -0
  84. package/dist/types/components/ch-badge/ch-badge.d.ts +8 -0
  85. package/dist/types/components/ch-button/ch-button.d.ts +24 -0
  86. package/dist/types/components/ch-card/ch-card.d.ts +3 -0
  87. package/dist/types/components/ch-input/ch-input.d.ts +44 -0
  88. package/dist/types/components/ch-select/ch-select.d.ts +44 -0
  89. package/dist/types/components.d.ts +348 -0
  90. package/dist/types/index.d.ts +12 -0
  91. package/dist/types/stencil-public-runtime.d.ts +1861 -0
  92. package/dist/types/tokens/tokens.d.ts +69 -0
  93. package/dist/types/tokens/types.d.ts +5 -0
  94. package/dist-react/components.d.ts +29 -0
  95. package/dist-react/components.js +51 -0
  96. package/dist-react/components.ts +81 -0
  97. package/dist-vue/index.d.ts +7 -0
  98. package/dist-vue/index.js +47 -0
  99. package/dist-vue/index.ts +63 -0
  100. package/loader/cdn.js +1 -0
  101. package/loader/index.cjs.js +1 -0
  102. package/loader/index.d.ts +24 -0
  103. package/loader/index.es2017.js +1 -0
  104. package/loader/index.js +2 -0
  105. package/package.json +125 -0
@@ -0,0 +1,98 @@
1
+ 'use strict';
2
+
3
+ /* Generated by toki v1.10.0 — do not edit */
4
+ const colorBackgroundBase = '#100a1c';
5
+ const colorBackgroundTopGlow = '#201e40';
6
+ const colorBackgroundBottomGlow = '#261226';
7
+ const colorSurfaceDefault = 'rgba(32, 30, 64, 0.6)';
8
+ const colorSurfaceHover = 'rgba(45, 212, 191, 0.08)';
9
+ const colorBorderDefault = 'rgba(255, 255, 255, 0.08)';
10
+ const colorBorderHover = 'rgba(45, 212, 191, 0.3)';
11
+ const colorAccentDefault = '#2dd4bf';
12
+ const colorAccentHover = '#5ee8d4';
13
+ const colorStatusPositive = '#4ade80';
14
+ const colorStatusPositiveBackground = 'rgba(34, 197, 94, 0.18)';
15
+ const colorStatusWarning = '#f87171';
16
+ const colorStatusWarningBackground = 'rgba(248, 113, 113, 0.15)';
17
+ const colorTextPrimary = '#ffffff';
18
+ const colorTextSecondary = 'rgba(255, 255, 255, 0.55)';
19
+ const colorBrandHuemulDark = '#85422b';
20
+ const colorBrandHuemulLight = '#b45b38';
21
+ const colorBrandStroke = '#1d1d1b';
22
+ const typographyBody = 'Fira Sans, Droid Sans, Helvetica Neue, sans-serif';
23
+ const typographyHeading = 'Inconsolata, monospace';
24
+ const spacingRadius = '6px';
25
+ const layoutMaxWidth = '68rem';
26
+ const tokens = {
27
+ color: {
28
+ background: {
29
+ base: '#100a1c',
30
+ topGlow: '#201e40',
31
+ bottomGlow: '#261226',
32
+ },
33
+ surface: {
34
+ default: 'rgba(32, 30, 64, 0.6)',
35
+ hover: 'rgba(45, 212, 191, 0.08)',
36
+ },
37
+ border: {
38
+ default: 'rgba(255, 255, 255, 0.08)',
39
+ hover: 'rgba(45, 212, 191, 0.3)',
40
+ },
41
+ accent: {
42
+ default: '#2dd4bf',
43
+ hover: '#5ee8d4',
44
+ },
45
+ status: {
46
+ positive: '#4ade80',
47
+ positiveBackground: 'rgba(34, 197, 94, 0.18)',
48
+ warning: '#f87171',
49
+ warningBackground: 'rgba(248, 113, 113, 0.15)',
50
+ },
51
+ text: {
52
+ primary: '#ffffff',
53
+ secondary: 'rgba(255, 255, 255, 0.55)',
54
+ },
55
+ brand: {
56
+ huemulDark: '#85422b',
57
+ huemulLight: '#b45b38',
58
+ stroke: '#1d1d1b',
59
+ },
60
+ },
61
+ typography: {
62
+ body: 'Fira Sans, Droid Sans, Helvetica Neue, sans-serif',
63
+ heading: 'Inconsolata, monospace',
64
+ },
65
+ spacing: {
66
+ radius: '6px',
67
+ },
68
+ layout: {
69
+ maxWidth: '68rem',
70
+ },
71
+ };
72
+
73
+ exports.colorAccentDefault = colorAccentDefault;
74
+ exports.colorAccentHover = colorAccentHover;
75
+ exports.colorBackgroundBase = colorBackgroundBase;
76
+ exports.colorBackgroundBottomGlow = colorBackgroundBottomGlow;
77
+ exports.colorBackgroundTopGlow = colorBackgroundTopGlow;
78
+ exports.colorBorderDefault = colorBorderDefault;
79
+ exports.colorBorderHover = colorBorderHover;
80
+ exports.colorBrandHuemulDark = colorBrandHuemulDark;
81
+ exports.colorBrandHuemulLight = colorBrandHuemulLight;
82
+ exports.colorBrandStroke = colorBrandStroke;
83
+ exports.colorStatusPositive = colorStatusPositive;
84
+ exports.colorStatusPositiveBackground = colorStatusPositiveBackground;
85
+ exports.colorStatusWarning = colorStatusWarning;
86
+ exports.colorStatusWarningBackground = colorStatusWarningBackground;
87
+ exports.colorSurfaceDefault = colorSurfaceDefault;
88
+ exports.colorSurfaceHover = colorSurfaceHover;
89
+ exports.colorTextPrimary = colorTextPrimary;
90
+ exports.colorTextSecondary = colorTextSecondary;
91
+ exports.layoutMaxWidth = layoutMaxWidth;
92
+ exports.spacingRadius = spacingRadius;
93
+ exports.tokens = tokens;
94
+ exports.typographyBody = typographyBody;
95
+ exports.typographyHeading = typographyHeading;
96
+ //# sourceMappingURL=index.cjs.js.map
97
+
98
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.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 spacingRadius = '6px';\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 },\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 },\n spacing: {\n radius: '6px',\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,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;AAC7B,MAAM,qBAAqB,GAAG;AAC9B,MAAM,gBAAgB,GAAG;AACzB,MAAM,cAAc,GAAG;AACvB,MAAM,iBAAiB,GAAG;AAC1B,MAAM,aAAa,GAAG;AACtB,MAAM,cAAc,GAAG;AAEvB,MAAM,MAAM,GAAG;AACpB,IAAA,KAAK,EAAE;AACL,QAAA,UAAU,EAAE;AACV,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,OAAO,EAAE,SAAS;AAClB,YAAA,UAAU,EAAE,SAAS;AACtB,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,uBAAuB;AAChC,YAAA,KAAK,EAAE,0BAA0B;AAClC,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,OAAO,EAAE,2BAA2B;AACpC,YAAA,KAAK,EAAE,yBAAyB;AACjC,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,OAAO,EAAE,SAAS;AAClB,YAAA,KAAK,EAAE,SAAS;AACjB,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,QAAQ,EAAE,SAAS;AACnB,YAAA,kBAAkB,EAAE,yBAAyB;AAC7C,YAAA,OAAO,EAAE,SAAS;AAClB,YAAA,iBAAiB,EAAE,2BAA2B;AAC/C,SAAA;AACD,QAAA,IAAI,EAAE;AACJ,YAAA,OAAO,EAAE,SAAS;AAClB,YAAA,SAAS,EAAE,2BAA2B;AACvC,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,UAAU,EAAE,SAAS;AACrB,YAAA,WAAW,EAAE,SAAS;AACtB,YAAA,MAAM,EAAE,SAAS;AAClB,SAAA;AACF,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,IAAI,EAAE,mDAAmD;AACzD,QAAA,OAAO,EAAE,wBAAwB;AAClC,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,MAAM,EAAE,KAAK;AACd,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,QAAQ,EAAE,OAAO;AAClB,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-Do8JpTKQ.js');
4
+
5
+ const defineCustomElements = async (win, options) => {
6
+ if (typeof window === 'undefined') return undefined;
7
+ await index.globalScripts();
8
+ return index.bootstrapLazy([["ch-badge_5.cjs",[[769,"ch-badge",{"variant":[1]}],[769,"ch-button",{"variant":[1],"disabled":[4],"label":[1]}],[257,"ch-card"],[513,"ch-input",{"label":[1],"type":[1],"value":[1025],"placeholder":[1],"name":[1],"disabled":[4],"required":[4]}],[513,"ch-select",{"label":[1],"options":[16],"value":[1025],"placeholder":[1],"name":[1],"disabled":[4],"required":[4]}]]]], options);
9
+ };
10
+
11
+ exports.setNonce = index.setNonce;
12
+ exports.defineCustomElements = defineCustomElements;
13
+ //# sourceMappingURL=loader.cjs.js.map
14
+
15
+ //# sourceMappingURL=loader.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.cjs.js","sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = async (win, options) => {\n if (typeof window === 'undefined') return undefined;\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"names":["globalScripts","bootstrapLazy"],"mappings":";;;;AAGY,MAAC,oBAAoB,GAAG,OAAO,GAAG,EAAE,OAAO,KAAK;AAC5D,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS;AACrD,EAAE,MAAMA,mBAAa,EAAE;AACvB,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D;;;;;"}
@@ -0,0 +1,17 @@
1
+ {
2
+ "entries": [
3
+ "components/ch-badge/ch-badge.js",
4
+ "components/ch-button/ch-button.js",
5
+ "components/ch-select/ch-select.js",
6
+ "components/ch-card/ch-card.js",
7
+ "components/ch-input/ch-input.js"
8
+ ],
9
+ "mixins": [],
10
+ "compiler": {
11
+ "name": "@stencil/core",
12
+ "version": "4.43.5",
13
+ "typescriptVersion": "5.8.3"
14
+ },
15
+ "collections": [],
16
+ "bundles": []
17
+ }
@@ -0,0 +1,27 @@
1
+ :host {
2
+ display: inline-block;
3
+ }
4
+
5
+ .badge {
6
+ display: inline-block;
7
+ padding: 0.18rem 0.6rem;
8
+ border-radius: 999px;
9
+ font-size: 0.68rem;
10
+ font-weight: 600;
11
+ text-transform: uppercase;
12
+ letter-spacing: 0.03em;
13
+ }
14
+
15
+ .badge--default {
16
+ background: var(--color-surface-hover);
17
+ color: var(--accent);
18
+ }
19
+
20
+ .badge--positive {
21
+ background: var(--color-status-positive-background);
22
+ color: var(--color-status-positive);
23
+ }
24
+ .badge--warning {
25
+ background: var(--color-status-warning-background);
26
+ color: var(--color-status-warning);
27
+ }
@@ -0,0 +1,53 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class ChBadge {
3
+ /**
4
+ * The visual style of the badge. Either `default`, `positive`, or `warning`.
5
+ */
6
+ variant = 'default';
7
+ render() {
8
+ return (h(Host, { key: '9bac1191887568872ad75b1eec3a6084310253db' }, h("span", { key: 'fae2007c430f102f8ad4e0cc7d97c606dde69eed', class: { badge: true, [`badge--${this.variant}`]: true } }, h("slot", { key: '56913dac3a8c18e76a419c22c27c69ca1adc8cc0' }))));
9
+ }
10
+ static get is() { return "ch-badge"; }
11
+ static get encapsulation() { return "shadow"; }
12
+ static get originalStyleUrls() {
13
+ return {
14
+ "$": ["ch-badge.css"]
15
+ };
16
+ }
17
+ static get styleUrls() {
18
+ return {
19
+ "$": ["ch-badge.css"]
20
+ };
21
+ }
22
+ static get properties() {
23
+ return {
24
+ "variant": {
25
+ "type": "string",
26
+ "mutable": false,
27
+ "complexType": {
28
+ "original": "ChBadgeVariant",
29
+ "resolved": "\"default\" | \"positive\" | \"warning\"",
30
+ "references": {
31
+ "ChBadgeVariant": {
32
+ "location": "local",
33
+ "path": "/Users/hectorpalmatellez/dev/chucao/src/components/ch-badge/ch-badge.tsx",
34
+ "id": "src/components/ch-badge/ch-badge.tsx::ChBadgeVariant"
35
+ }
36
+ }
37
+ },
38
+ "required": false,
39
+ "optional": false,
40
+ "docs": {
41
+ "tags": [],
42
+ "text": "The visual style of the badge. Either `default`, `positive`, or `warning`."
43
+ },
44
+ "getter": false,
45
+ "setter": false,
46
+ "reflect": false,
47
+ "attribute": "variant",
48
+ "defaultValue": "'default'"
49
+ }
50
+ };
51
+ }
52
+ }
53
+ //# sourceMappingURL=ch-badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ch-badge.js","sourceRoot":"","sources":["../../../../src/components/ch-badge/ch-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AASzD,MAAM,OAAO,OAAO;IAClB;;OAEG;IACK,OAAO,GAAmB,SAAS,CAAC;IAE5C,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,6DAAM,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,UAAU,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE;gBAC5D,8DAAa,CACR,CACF,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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"]}
@@ -0,0 +1,58 @@
1
+ :host {
2
+ display: inline-block;
3
+ }
4
+
5
+ .btn {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ gap: 0.35rem;
9
+ border: none;
10
+ cursor: pointer;
11
+ font-family: inherit;
12
+ font-size: inherit;
13
+ }
14
+
15
+ .btn:disabled {
16
+ opacity: 0.5;
17
+ cursor: not-allowed;
18
+ }
19
+
20
+ .btn:focus-visible {
21
+ outline: 2px solid var(--accent);
22
+ outline-offset: 2px;
23
+ }
24
+
25
+ .btn--primary {
26
+ background-color: var(--accent);
27
+ color: #06210f;
28
+ font-weight: 700;
29
+ padding: 0.25rem 0.8rem;
30
+ border-radius: 999px;
31
+ transition:
32
+ background-color 0.2s,
33
+ transform 0.15s;
34
+ }
35
+
36
+ .btn--primary:hover {
37
+ background-color: var(--accent-hover);
38
+ transform: translateY(-1px);
39
+ }
40
+
41
+ .btn--secondary {
42
+ background-color: transparent;
43
+ color: var(--text);
44
+ font-weight: 700;
45
+ padding: 0.25rem 0.8rem;
46
+ border-radius: 999px;
47
+ border: 1px solid var(--border);
48
+ transition:
49
+ border-color 0.2s,
50
+ background-color 0.2s,
51
+ transform 0.15s;
52
+ }
53
+
54
+ .btn--secondary:hover {
55
+ border-color: var(--border-hover);
56
+ background-color: var(--surface-hover);
57
+ transform: translateY(-1px);
58
+ }
@@ -0,0 +1,132 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class ChButton {
3
+ /**
4
+ * The visual style of the button. Either `primary` or `secondary`.
5
+ */
6
+ variant = 'primary';
7
+ /**
8
+ * Whether the button is disabled.
9
+ */
10
+ disabled = false;
11
+ /**
12
+ * Accessible label set as `aria-label` on the native `<button>`. Use it
13
+ * when the button's content doesn't convey its purpose on its own (e.g.
14
+ * an icon-only button).
15
+ */
16
+ label;
17
+ /**
18
+ * Emitted when the button is clicked.
19
+ */
20
+ chClick;
21
+ handleClick = (ev) => {
22
+ this.chClick.emit(ev);
23
+ };
24
+ render() {
25
+ return (h(Host, { key: 'ac7192a829924909b5068272786a301ae94f722c' }, h("button", { key: '74e32d6dcc873224e48101b13019df73aeac45c9', class: { btn: true, [`btn--${this.variant}`]: true }, type: "button", disabled: this.disabled, "aria-label": this.label, onClick: this.handleClick }, h("slot", { key: '2aee1cf56fec308e43d2abce2af9752fe7bc6f47' }))));
26
+ }
27
+ static get is() { return "ch-button"; }
28
+ static get encapsulation() { return "shadow"; }
29
+ static get originalStyleUrls() {
30
+ return {
31
+ "$": ["ch-button.css"]
32
+ };
33
+ }
34
+ static get styleUrls() {
35
+ return {
36
+ "$": ["ch-button.css"]
37
+ };
38
+ }
39
+ static get properties() {
40
+ return {
41
+ "variant": {
42
+ "type": "string",
43
+ "mutable": false,
44
+ "complexType": {
45
+ "original": "ChButtonVariant",
46
+ "resolved": "\"primary\" | \"secondary\"",
47
+ "references": {
48
+ "ChButtonVariant": {
49
+ "location": "local",
50
+ "path": "/Users/hectorpalmatellez/dev/chucao/src/components/ch-button/ch-button.tsx",
51
+ "id": "src/components/ch-button/ch-button.tsx::ChButtonVariant"
52
+ }
53
+ }
54
+ },
55
+ "required": false,
56
+ "optional": false,
57
+ "docs": {
58
+ "tags": [],
59
+ "text": "The visual style of the button. Either `primary` or `secondary`."
60
+ },
61
+ "getter": false,
62
+ "setter": false,
63
+ "reflect": false,
64
+ "attribute": "variant",
65
+ "defaultValue": "'primary'"
66
+ },
67
+ "disabled": {
68
+ "type": "boolean",
69
+ "mutable": false,
70
+ "complexType": {
71
+ "original": "boolean",
72
+ "resolved": "boolean",
73
+ "references": {}
74
+ },
75
+ "required": false,
76
+ "optional": false,
77
+ "docs": {
78
+ "tags": [],
79
+ "text": "Whether the button is disabled."
80
+ },
81
+ "getter": false,
82
+ "setter": false,
83
+ "reflect": false,
84
+ "attribute": "disabled",
85
+ "defaultValue": "false"
86
+ },
87
+ "label": {
88
+ "type": "string",
89
+ "mutable": false,
90
+ "complexType": {
91
+ "original": "string",
92
+ "resolved": "string",
93
+ "references": {}
94
+ },
95
+ "required": false,
96
+ "optional": true,
97
+ "docs": {
98
+ "tags": [],
99
+ "text": "Accessible label set as `aria-label` on the native `<button>`. Use it\nwhen the button's content doesn't convey its purpose on its own (e.g.\nan icon-only button)."
100
+ },
101
+ "getter": false,
102
+ "setter": false,
103
+ "reflect": false,
104
+ "attribute": "label"
105
+ }
106
+ };
107
+ }
108
+ static get events() {
109
+ return [{
110
+ "method": "chClick",
111
+ "name": "chClick",
112
+ "bubbles": true,
113
+ "cancelable": true,
114
+ "composed": true,
115
+ "docs": {
116
+ "tags": [],
117
+ "text": "Emitted when the button is clicked."
118
+ },
119
+ "complexType": {
120
+ "original": "MouseEvent",
121
+ "resolved": "MouseEvent",
122
+ "references": {
123
+ "MouseEvent": {
124
+ "location": "global",
125
+ "id": "global::MouseEvent"
126
+ }
127
+ }
128
+ }
129
+ }];
130
+ }
131
+ }
132
+ //# sourceMappingURL=ch-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ch-button.js","sourceRoot":"","sources":["../../../../src/components/ch-button/ch-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAqB,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AASnF,MAAM,OAAO,QAAQ;IACnB;;OAEG;IACK,OAAO,GAAoB,SAAS,CAAC;IAE7C;;OAEG;IACK,QAAQ,GAAG,KAAK,CAAC;IAEzB;;;;OAIG;IACK,KAAK,CAAU;IAEvB;;OAEG;IACM,OAAO,CAA2B;IAEnC,WAAW,GAAG,CAAC,EAAc,EAAE,EAAE;QACvC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACxB,CAAC,CAAC;IAEF,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,+DACE,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,QAAQ,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EACpD,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,QAAQ,gBACX,IAAI,CAAC,KAAK,EACtB,OAAO,EAAE,IAAI,CAAC,WAAW;gBAEzB,8DAAa,CACN,CACJ,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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"]}
@@ -0,0 +1,44 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ ::slotted(p) {
6
+ color: var(--text-muted);
7
+ }
8
+
9
+ .card {
10
+ color: var(--text);
11
+ background: var(--surface);
12
+ border: 1px solid var(--border);
13
+ border-radius: var(--radius);
14
+ padding: 1.35rem 1.5rem;
15
+ backdrop-filter: blur(10px);
16
+ position: relative;
17
+ overflow: hidden;
18
+ transition:
19
+ border-color 0.2s,
20
+ transform 0.15s,
21
+ box-shadow 0.2s;
22
+ }
23
+
24
+ .card::before {
25
+ content: '';
26
+ position: absolute;
27
+ left: 0;
28
+ top: 0;
29
+ bottom: 0;
30
+ width: 3px;
31
+ background: var(--accent);
32
+ opacity: 0;
33
+ transition: opacity 0.2s;
34
+ }
35
+
36
+ .card:hover {
37
+ border-color: var(--border-hover);
38
+ transform: translateX(2px);
39
+ box-shadow: 0 4px 20px rgba(45, 212, 191, 0.06);
40
+ }
41
+
42
+ .card:hover::before {
43
+ opacity: 1;
44
+ }
@@ -0,0 +1,19 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class ChCard {
3
+ render() {
4
+ return (h(Host, { key: 'e9685d92d3ffe08fb37088c0743534fd2701ecbb' }, h("div", { key: '98317e248251b8d23baea9dd3810fc94953dabc4', class: "card" }, h("slot", { key: '842e2fe5f72c74f1a14f20957e2edfd882b71edc' }))));
5
+ }
6
+ static get is() { return "ch-card"; }
7
+ static get encapsulation() { return "shadow"; }
8
+ static get originalStyleUrls() {
9
+ return {
10
+ "$": ["ch-card.css"]
11
+ };
12
+ }
13
+ static get styleUrls() {
14
+ return {
15
+ "$": ["ch-card.css"]
16
+ };
17
+ }
18
+ }
19
+ //# sourceMappingURL=ch-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ch-card.js","sourceRoot":"","sources":["../../../../src/components/ch-card/ch-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,MAAM;IACjB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,4DAAK,KAAK,EAAC,MAAM;gBACf,8DAAa,CACT,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;CACF","sourcesContent":["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"]}
@@ -0,0 +1,43 @@
1
+ :host {
2
+ display: inline-block;
3
+ width: 100%;
4
+ }
5
+
6
+ .label {
7
+ display: block;
8
+ margin-bottom: 0.35rem;
9
+ font-size: 0.85rem;
10
+ font-weight: 600;
11
+ color: var(--text);
12
+ }
13
+
14
+ .input {
15
+ box-sizing: border-box;
16
+ width: 100%;
17
+ padding: 0.8rem 1.25rem;
18
+ border-radius: var(--radius);
19
+ border: 1px solid var(--border);
20
+ background: var(--surface);
21
+ color: var(--text);
22
+ backdrop-filter: blur(10px);
23
+ font-family: inherit;
24
+ font-size: inherit;
25
+ transition:
26
+ border-color 0.2s,
27
+ box-shadow 0.2s;
28
+ }
29
+
30
+ .input::placeholder {
31
+ color: var(--text-muted);
32
+ }
33
+
34
+ .input:focus {
35
+ border-color: var(--accent);
36
+ box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
37
+ outline: none;
38
+ }
39
+
40
+ .input:disabled {
41
+ opacity: 0.5;
42
+ cursor: not-allowed;
43
+ }