@sekiui/elements 0.0.35 → 0.0.37

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 (90) hide show
  1. package/dist/cjs/{index-dzrwTIbP.js → index-CQBxP9_b.js} +57 -1
  2. package/dist/cjs/index.cjs.js +1 -1
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/seki-button.cjs.entry.js +1 -1
  5. package/dist/cjs/seki-field-description.cjs.entry.js +43 -0
  6. package/dist/cjs/seki-field-error.cjs.entry.js +66 -0
  7. package/dist/cjs/seki-field-group.cjs.entry.js +25 -0
  8. package/dist/cjs/seki-field-label.cjs.entry.js +22 -0
  9. package/dist/cjs/seki-field-legend.cjs.entry.js +17 -0
  10. package/dist/cjs/seki-field.cjs.entry.js +47 -0
  11. package/dist/cjs/seki-fieldset.cjs.entry.js +22 -0
  12. package/dist/cjs/seki-input.cjs.entry.js +2 -2
  13. package/dist/cjs/seki-skeleton.cjs.entry.js +2 -2
  14. package/dist/cjs/seki-switch.cjs.entry.js +1 -1
  15. package/dist/cjs/sekiui.cjs.js +2 -2
  16. package/dist/collection/collection-manifest.json +7 -0
  17. package/dist/collection/components/field/seki-field.css +451 -0
  18. package/dist/collection/components/field/seki-field.js +94 -0
  19. package/dist/collection/components/field-description/seki-field-description.css +372 -0
  20. package/dist/collection/components/field-description/seki-field-description.js +95 -0
  21. package/dist/collection/components/field-error/seki-field-error.css +373 -0
  22. package/dist/collection/components/field-error/seki-field-error.js +163 -0
  23. package/dist/collection/components/field-group/seki-field-group.css +371 -0
  24. package/dist/collection/components/field-group/seki-field-group.js +52 -0
  25. package/dist/collection/components/field-label/seki-field-label.css +380 -0
  26. package/dist/collection/components/field-label/seki-field-label.js +68 -0
  27. package/dist/collection/components/field-legend/seki-field-legend.css +375 -0
  28. package/dist/collection/components/field-legend/seki-field-legend.js +18 -0
  29. package/dist/collection/components/fieldset/seki-fieldset.css +382 -0
  30. package/dist/collection/components/fieldset/seki-fieldset.js +49 -0
  31. package/dist/collection/components/input/seki-input.js +1 -1
  32. package/dist/collection/components/skeleton/seki-skeleton.js +1 -1
  33. package/dist/components/index.js +2 -2
  34. package/dist/components/{p--oknAIA5.js → p-ag6agK1v.js} +30 -2
  35. package/dist/components/seki-button.js +1 -1
  36. package/dist/components/seki-field-description.d.ts +11 -0
  37. package/dist/components/seki-field-description.js +66 -0
  38. package/dist/components/seki-field-error.d.ts +11 -0
  39. package/dist/components/seki-field-error.js +94 -0
  40. package/dist/components/seki-field-group.d.ts +11 -0
  41. package/dist/components/seki-field-group.js +46 -0
  42. package/dist/components/seki-field-label.d.ts +11 -0
  43. package/dist/components/seki-field-label.js +44 -0
  44. package/dist/components/seki-field-legend.d.ts +11 -0
  45. package/dist/components/seki-field-legend.js +36 -0
  46. package/dist/components/seki-field.d.ts +11 -0
  47. package/dist/components/seki-field.js +69 -0
  48. package/dist/components/seki-fieldset.d.ts +11 -0
  49. package/dist/components/seki-fieldset.js +43 -0
  50. package/dist/components/seki-input.js +2 -2
  51. package/dist/components/seki-skeleton.js +2 -2
  52. package/dist/esm/{index-F_LoNrhC.js → index-xoBNLQoq.js} +57 -2
  53. package/dist/esm/index.js +1 -1
  54. package/dist/esm/loader.js +3 -3
  55. package/dist/esm/seki-button.entry.js +1 -1
  56. package/dist/esm/seki-field-description.entry.js +41 -0
  57. package/dist/esm/seki-field-error.entry.js +64 -0
  58. package/dist/esm/seki-field-group.entry.js +23 -0
  59. package/dist/esm/seki-field-label.entry.js +20 -0
  60. package/dist/esm/seki-field-legend.entry.js +15 -0
  61. package/dist/esm/seki-field.entry.js +45 -0
  62. package/dist/esm/seki-fieldset.entry.js +20 -0
  63. package/dist/esm/seki-input.entry.js +2 -2
  64. package/dist/esm/seki-skeleton.entry.js +2 -2
  65. package/dist/esm/seki-switch.entry.js +1 -1
  66. package/dist/esm/sekiui.js +3 -3
  67. package/dist/sekiui/index.esm.js +1 -1
  68. package/dist/sekiui/{p-a22c9d08.entry.js → p-0226e4f7.entry.js} +1 -1
  69. package/dist/sekiui/{p-b0298d88.entry.js → p-03487f1f.entry.js} +1 -1
  70. package/dist/sekiui/p-0f6ca3b1.entry.js +1 -0
  71. package/dist/sekiui/p-17cdd420.entry.js +1 -0
  72. package/dist/sekiui/p-3787d562.entry.js +1 -0
  73. package/dist/sekiui/p-4cf3ac27.entry.js +1 -0
  74. package/dist/sekiui/{p-23858479.entry.js → p-72741840.entry.js} +1 -1
  75. package/dist/sekiui/{p-3a4a98f8.entry.js → p-96f49bc5.entry.js} +1 -1
  76. package/dist/sekiui/p-a9601821.entry.js +1 -0
  77. package/dist/sekiui/p-d09b94a2.entry.js +1 -0
  78. package/dist/sekiui/p-d25987f6.entry.js +1 -0
  79. package/dist/sekiui/p-xoBNLQoq.js +2 -0
  80. package/dist/sekiui/sekiui.esm.js +1 -1
  81. package/dist/types/components/field/seki-field.d.ts +21 -0
  82. package/dist/types/components/field-description/seki-field-description.d.ts +20 -0
  83. package/dist/types/components/field-error/seki-field-error.d.ts +34 -0
  84. package/dist/types/components/field-group/seki-field-group.d.ts +8 -0
  85. package/dist/types/components/field-label/seki-field-label.d.ts +13 -0
  86. package/dist/types/components/field-legend/seki-field-legend.d.ts +3 -0
  87. package/dist/types/components/fieldset/seki-fieldset.d.ts +8 -0
  88. package/dist/types/components.d.ts +187 -0
  89. package/package.json +1 -1
  90. package/dist/sekiui/p-F_LoNrhC.js +0 -2
@@ -0,0 +1,372 @@
1
+ /**
2
+ * SekiUI Design Tokens - Index
3
+ * Aggregates all design token files into a single entry point
4
+ *
5
+ * Import this file to get access to all design tokens:
6
+ * @import '../tokens/index.css';
7
+ */
8
+
9
+ /**
10
+ * SekiUI Design Tokens - Colors
11
+ * Based on shadcn/ui color system
12
+ */
13
+
14
+ /* =============================================================================
15
+ PRIMITIVE COLOR TOKENS (Layer 1: Raw Values)
16
+ ============================================================================= */
17
+
18
+ :root {
19
+ /* Neutral Scale (50-950) - shadcn/ui inspired */
20
+ --seki-neutral-50: hsl(0, 0%, 98%);
21
+ --seki-neutral-100: hsl(0, 0%, 96.1%);
22
+ --seki-neutral-200: hsl(0, 0%, 89.8%);
23
+ --seki-neutral-300: hsl(0, 0%, 83.1%);
24
+ --seki-neutral-400: hsl(0, 0%, 63.9%);
25
+ --seki-neutral-500: hsl(0, 0%, 45.1%);
26
+ --seki-neutral-600: hsl(0, 0%, 32.2%);
27
+ --seki-neutral-700: hsl(0, 0%, 25.1%);
28
+ --seki-neutral-800: hsl(0, 0%, 14.9%);
29
+ --seki-neutral-900: hsl(0, 0%, 9%);
30
+ --seki-neutral-950: hsl(0, 0%, 3.9%);
31
+
32
+ /* Primary/Accent Scale (50-950) */
33
+ --seki-primary-50: hsl(210, 100%, 97%);
34
+ --seki-primary-100: hsl(210, 95%, 93%);
35
+ --seki-primary-200: hsl(210, 95%, 85%);
36
+ --seki-primary-300: hsl(210, 90%, 73%);
37
+ --seki-primary-400: hsl(210, 85%, 58%);
38
+ --seki-primary-500: hsl(210, 80%, 48%);
39
+ --seki-primary-600: hsl(210, 75%, 40%);
40
+ --seki-primary-700: hsl(210, 70%, 32%);
41
+ --seki-primary-800: hsl(210, 65%, 25%);
42
+ --seki-primary-900: hsl(210, 60%, 18%);
43
+ --seki-primary-950: hsl(210, 55%, 10%);
44
+
45
+ /* Semantic Color Primitives */
46
+ --seki-success-500: hsl(142, 71%, 45%);
47
+ --seki-success-600: hsl(142, 71%, 35%);
48
+ --seki-warning-500: hsl(38, 92%, 50%);
49
+ --seki-warning-600: hsl(38, 92%, 40%);
50
+ --seki-destructive-500: hsl(0, 84.2%, 60.2%);
51
+ --seki-destructive-600: hsl(0, 72%, 41%);
52
+ }
53
+
54
+ /* =============================================================================
55
+ SEMANTIC TOKENS (Layer 2: shadcn/ui Style)
56
+ ============================================================================= */
57
+
58
+ :root {
59
+ /* Base */
60
+ --seki-background: hsl(0, 0%, 100%);
61
+ --seki-foreground: hsl(0, 0%, 3.9%);
62
+
63
+ /* Muted */
64
+ --seki-muted: hsl(0, 0%, 96.1%);
65
+ --seki-muted-foreground: hsl(0, 0%, 45.1%);
66
+
67
+ /* Card */
68
+ --seki-card: hsl(0, 0%, 100%);
69
+ --seki-card-foreground: hsl(0, 0%, 3.9%);
70
+
71
+ /* Popover */
72
+ --seki-popover: hsl(0, 0%, 100%);
73
+ --seki-popover-foreground: hsl(0, 0%, 3.9%);
74
+
75
+ /* Border */
76
+ --seki-border: hsl(0, 0%, 89.8%);
77
+ --seki-input: hsl(0, 0%, 89.8%);
78
+
79
+ /* Primary */
80
+ --seki-primary: hsl(0, 0%, 9%);
81
+ --seki-primary-foreground: hsl(0, 0%, 98%);
82
+
83
+ /* Secondary */
84
+ --seki-secondary: hsl(0, 0%, 96.1%);
85
+ --seki-secondary-foreground: hsl(0, 0%, 9%);
86
+
87
+ /* Accent */
88
+ --seki-accent: hsl(0, 0%, 96.1%);
89
+ --seki-accent-foreground: hsl(0, 0%, 9%);
90
+
91
+ /* Destructive */
92
+ --seki-destructive: hsl(0, 84.2%, 60.2%);
93
+ --seki-destructive-foreground: hsl(0, 0%, 98%);
94
+
95
+ /* Ring */
96
+ --seki-ring: hsl(0, 0%, 3.9%);
97
+
98
+ /* Legacy aliases for backward compatibility */
99
+ --seki-bg-primary: var(--seki-background);
100
+ --seki-bg-secondary: var(--seki-muted);
101
+ --seki-bg-tertiary: var(--seki-accent);
102
+ --seki-text-primary: var(--seki-foreground);
103
+ --seki-text-secondary: var(--seki-muted-foreground);
104
+ --seki-text-tertiary: var(--seki-neutral-400);
105
+ --seki-border-default: var(--seki-border);
106
+ --seki-border-emphasis: var(--seki-neutral-300);
107
+ }
108
+
109
+ /* Dark Mode Semantic Tokens */
110
+ :root[data-theme='dark'] {
111
+ /* Base */
112
+ --seki-background: hsl(0, 0%, 3.9%);
113
+ --seki-foreground: hsl(0, 0%, 98%);
114
+
115
+ /* Muted */
116
+ --seki-muted: hsl(0, 0%, 14.9%);
117
+ --seki-muted-foreground: hsl(0, 0%, 63.9%);
118
+
119
+ /* Card */
120
+ --seki-card: hsl(0, 0%, 3.9%);
121
+ --seki-card-foreground: hsl(0, 0%, 98%);
122
+
123
+ /* Popover */
124
+ --seki-popover: hsl(0, 0%, 3.9%);
125
+ --seki-popover-foreground: hsl(0, 0%, 98%);
126
+
127
+ /* Border */
128
+ --seki-border: hsl(0, 0%, 14.9%);
129
+ --seki-input: hsl(0, 0%, 14.9%);
130
+
131
+ /* Primary */
132
+ --seki-primary: hsl(0, 0%, 98%);
133
+ --seki-primary-foreground: hsl(0, 0%, 9%);
134
+
135
+ /* Secondary */
136
+ --seki-secondary: hsl(0, 0%, 14.9%);
137
+ --seki-secondary-foreground: hsl(0, 0%, 98%);
138
+
139
+ /* Accent */
140
+ --seki-accent: hsl(0, 0%, 14.9%);
141
+ --seki-accent-foreground: hsl(0, 0%, 98%);
142
+
143
+ /* Destructive */
144
+ --seki-destructive: hsl(0, 62.8%, 30.6%);
145
+ --seki-destructive-foreground: hsl(0, 0%, 98%);
146
+
147
+ /* Ring */
148
+ --seki-ring: hsl(0, 0%, 83.1%);
149
+
150
+ /* Legacy aliases for backward compatibility */
151
+ --seki-bg-primary: var(--seki-background);
152
+ --seki-bg-secondary: var(--seki-muted);
153
+ --seki-bg-tertiary: var(--seki-accent);
154
+ --seki-text-primary: var(--seki-foreground);
155
+ --seki-text-secondary: var(--seki-muted-foreground);
156
+ --seki-text-tertiary: var(--seki-neutral-600);
157
+ --seki-border-default: var(--seki-border);
158
+ --seki-border-emphasis: var(--seki-neutral-700);
159
+
160
+ /* Button overrides for dark mode */
161
+ --seki-button-primary-hover-bg: hsl(0, 0%, 98%, 0.9);
162
+ --seki-button-secondary-hover-bg: hsl(0, 0%, 14.9%, 0.8);
163
+ }
164
+
165
+ /* =============================================================================
166
+ COMPONENT TOKENS (Layer 3: Button-Specific - shadcn/ui Style)
167
+ ============================================================================= */
168
+
169
+ :root {
170
+ /* Button Variant: Primary (default in shadcn/ui) */
171
+ --seki-button-primary-bg: var(--seki-primary);
172
+ --seki-button-primary-text: var(--seki-primary-foreground);
173
+ --seki-button-primary-border: transparent;
174
+ --seki-button-primary-hover-bg: hsl(0, 0%, 9%, 0.9);
175
+ --seki-button-primary-hover-text: var(--seki-primary-foreground);
176
+ --seki-button-primary-hover-border: transparent;
177
+
178
+ /* Button Variant: Secondary */
179
+ --seki-button-secondary-bg: var(--seki-secondary);
180
+ --seki-button-secondary-text: var(--seki-secondary-foreground);
181
+ --seki-button-secondary-border: transparent;
182
+ --seki-button-secondary-hover-bg: hsl(0, 0%, 96.1%, 0.8);
183
+ --seki-button-secondary-hover-text: var(--seki-secondary-foreground);
184
+ --seki-button-secondary-hover-border: transparent;
185
+
186
+ /* Button Variant: Outline */
187
+ --seki-button-outline-bg: transparent;
188
+ --seki-button-outline-text: var(--seki-foreground);
189
+ --seki-button-outline-border: var(--seki-input);
190
+ --seki-button-outline-hover-bg: var(--seki-accent);
191
+ --seki-button-outline-hover-text: var(--seki-accent-foreground);
192
+ --seki-button-outline-hover-border: var(--seki-input);
193
+
194
+ /* Button Variant: Ghost */
195
+ --seki-button-ghost-bg: transparent;
196
+ --seki-button-ghost-text: var(--seki-foreground);
197
+ --seki-button-ghost-border: transparent;
198
+ --seki-button-ghost-hover-bg: var(--seki-accent);
199
+ --seki-button-ghost-hover-text: var(--seki-accent-foreground);
200
+ --seki-button-ghost-hover-border: transparent;
201
+
202
+ /* Button Variant: Destructive */
203
+ --seki-button-destructive-bg: var(--seki-destructive);
204
+ --seki-button-destructive-text: var(--seki-destructive-foreground);
205
+ --seki-button-destructive-border: transparent;
206
+ --seki-button-destructive-hover-bg: hsl(0, 84.2%, 60.2%, 0.9);
207
+ --seki-button-destructive-hover-border: transparent;
208
+
209
+ /* Button Sizing: Small */
210
+ --seki-button-sm-padding-x: var(--seki-spacing-3, 0.75rem);
211
+ --seki-button-sm-padding-y: 0.375rem;
212
+ --seki-button-sm-font-size: var(--seki-text-sm, 0.875rem);
213
+ --seki-button-sm-height: 2.25rem; /* Updated from 2rem to match shadcn (36px) */
214
+
215
+ /* Button Sizing: Medium (default) */
216
+ --seki-button-md-padding-x: var(--seki-spacing-4, 1rem);
217
+ --seki-button-md-padding-y: var(--seki-spacing-2, 0.5rem);
218
+ --seki-button-md-font-size: var(--seki-text-base, 1rem);
219
+ --seki-button-md-height: 2.5rem;
220
+
221
+ /* Button Sizing: Large */
222
+ --seki-button-lg-padding-x: 2rem; /* Updated from 1.25rem to match shadcn */
223
+ --seki-button-lg-padding-y: 0.5rem;
224
+ --seki-button-lg-font-size: 1rem; /* Updated from 1.125rem to match shadcn */
225
+ --seki-button-lg-height: 2.75rem; /* Updated from 3rem to match shadcn (44px) */
226
+
227
+ /* Button Sizing: Icon-only (NEW - shadcn compatibility) */
228
+ --seki-button-icon-sm-size: 2rem; /* 32x32px square */
229
+ --seki-button-icon-size: 2.5rem; /* 40x40px square */
230
+ --seki-button-icon-lg-size: 3rem; /* 48x48px square */
231
+ --seki-button-icon-gap: 0.5rem; /* 8px gap between icon and text */
232
+
233
+ /* Button Variant: Link (NEW - shadcn compatibility) */
234
+ --seki-button-link-bg: transparent;
235
+ --seki-button-link-text: var(--seki-primary);
236
+ --seki-button-link-border: transparent;
237
+ --seki-button-link-hover-bg: transparent;
238
+ --seki-button-link-hover-text: var(--seki-primary);
239
+ --seki-button-link-hover-border: transparent;
240
+
241
+ /* Button Common */
242
+ --seki-button-radius: var(--seki-radius-md, 0.375rem);
243
+ --seki-button-font-weight: var(--seki-font-medium, 500);
244
+ --seki-button-transition-duration: 150ms;
245
+ --seki-button-transition-timing: ease-in-out;
246
+ --seki-button-shadow: var(--seki-shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05));
247
+ --seki-button-shadow-hover: var(--seki-shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1));
248
+ --seki-button-disabled-opacity: 0.5;
249
+
250
+ /* Input Component Colors */
251
+ --seki-input-bg: var(--seki-background);
252
+ --seki-input-border: var(--seki-border);
253
+ --seki-input-text: var(--seki-foreground);
254
+ --seki-input-placeholder: var(--seki-muted-foreground);
255
+ --seki-input-ring: var(--seki-ring);
256
+ --seki-input-invalid-border: var(--seki-destructive);
257
+ --seki-input-invalid-ring: var(--seki-destructive);
258
+ --seki-input-disabled-opacity: 0.5;
259
+ --seki-input-radius: var(--seki-radius-md);
260
+ }
261
+
262
+ /**
263
+ * SekiUI Design Tokens - Spacing
264
+ * 4px base unit, rem-based scale
265
+ */
266
+
267
+ :root {
268
+ /* Spacing Scale (4px base unit) */
269
+ --seki-spacing-0: 0;
270
+ --seki-spacing-0-5: 0.125rem; /* 2px */
271
+ --seki-spacing-1: 0.25rem; /* 4px */
272
+ --seki-spacing-1-5: 0.375rem; /* 6px */
273
+ --seki-spacing-2: 0.5rem; /* 8px */
274
+ --seki-spacing-2-5: 0.625rem; /* 10px */
275
+ --seki-spacing-3: 0.75rem; /* 12px */
276
+ --seki-spacing-3-5: 0.875rem; /* 14px */
277
+ --seki-spacing-4: 1rem; /* 16px */
278
+ --seki-spacing-5: 1.25rem; /* 20px */
279
+ --seki-spacing-6: 1.5rem; /* 24px */
280
+ --seki-spacing-8: 2rem; /* 32px */
281
+ --seki-spacing-10: 2.5rem; /* 40px */
282
+ --seki-spacing-12: 3rem; /* 48px */
283
+ --seki-spacing-16: 4rem; /* 64px */
284
+ --seki-spacing-20: 5rem; /* 80px */
285
+ --seki-spacing-24: 6rem; /* 96px */
286
+
287
+ /* Input Component Tokens */
288
+ --seki-input-height-sm: 2rem; /* 32px */
289
+ --seki-input-height-md: 2.5rem; /* 40px - default */
290
+ --seki-input-height-lg: 3rem; /* 48px */
291
+ --seki-input-padding-x: 0.75rem; /* 12px */
292
+ --seki-input-padding-y: 0.5rem; /* 8px */
293
+ --seki-input-font-size: 0.875rem; /* 14px */
294
+ --seki-input-ring-offset: 2px;
295
+ }
296
+
297
+ /**
298
+ * SekiUI Design Tokens - Shadows
299
+ * Subtle elevation system
300
+ */
301
+
302
+ :root {
303
+ /* Shadow Levels */
304
+ --seki-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
305
+ --seki-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
306
+ --seki-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.15), 0 4px 6px -4px rgb(0 0 0 / 0.1);
307
+ }
308
+
309
+ /**
310
+ * SekiUI Design Tokens - Typography
311
+ * System font stacks, sizes, weights, line heights
312
+ */
313
+
314
+ :root {
315
+ /* Font Families */
316
+ --seki-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
317
+ Arial, sans-serif;
318
+ --seki-font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
319
+
320
+ /* Font Sizes (rem-based) */
321
+ --seki-text-xs: 0.75rem; /* 12px */
322
+ --seki-text-sm: 0.875rem; /* 14px */
323
+ --seki-text-base: 1rem; /* 16px */
324
+ --seki-text-lg: 1.125rem; /* 18px */
325
+ --seki-text-xl: 1.25rem; /* 20px */
326
+ --seki-text-2xl: 1.5rem; /* 24px */
327
+ --seki-text-3xl: 1.875rem; /* 30px */
328
+ --seki-text-4xl: 2.25rem; /* 36px */
329
+
330
+ /* Font Weights */
331
+ --seki-font-normal: 400;
332
+ --seki-font-medium: 500;
333
+ --seki-font-semibold: 600;
334
+ --seki-font-bold: 700;
335
+
336
+ /* Line Heights */
337
+ --seki-leading-tight: 1.25;
338
+ --seki-leading-normal: 1.5;
339
+ --seki-leading-relaxed: 1.75;
340
+ }
341
+
342
+ /**
343
+ * SekiUI Design Tokens - Border Radius
344
+ * Four-level radius system
345
+ */
346
+
347
+ :root {
348
+ /* Border Radius Levels */
349
+ --seki-radius-sm: 0.25rem; /* 4px */
350
+ --seki-radius-md: 0.375rem; /* 6px */
351
+ --seki-radius-lg: 0.5rem; /* 8px */
352
+ --seki-radius-xl: 1rem; /* 16px */
353
+ }
354
+
355
+
356
+
357
+ :host {
358
+ display: block;
359
+ }
360
+
361
+ .description {
362
+ color: var(--seki-description-color, hsl(var(--seki-muted-foreground)));
363
+ font-size: var(--seki-description-font-size, 0.875rem);
364
+ line-height: var(--seki-description-line-height, 1.4);
365
+ }
366
+
367
+ /* Reduced motion */
368
+ @media (prefers-reduced-motion: reduce) {
369
+ .description {
370
+ transition: none;
371
+ }
372
+ }
@@ -0,0 +1,95 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * Generate a unique ID for the component
4
+ */
5
+ function generateId() {
6
+ return `seki-field-description-${Math.random().toString(36).substr(2, 9)}`;
7
+ }
8
+ export class SekiFieldDescription {
9
+ constructor() {
10
+ /**
11
+ * Internal component ID (generated or from prop)
12
+ */
13
+ this.componentId = '';
14
+ }
15
+ componentWillLoad() {
16
+ this.componentId = this.id || generateId();
17
+ }
18
+ componentWillUpdate() {
19
+ // Update componentId if id prop changes
20
+ if (this.id && this.id !== this.componentId) {
21
+ this.componentId = this.id;
22
+ }
23
+ }
24
+ /**
25
+ * Get the component's ID
26
+ * Useful for dynamically setting aria-describedby attributes
27
+ */
28
+ async getId() {
29
+ return this.componentId;
30
+ }
31
+ render() {
32
+ return (h("div", { key: 'ddd92769c6eed18b11eacd6005e1820a6abf1aa5', id: this.componentId, class: "description" }, h("slot", { key: '6da6a0a3300cf2bdfb20ae9c6cf972ab0f014726' })));
33
+ }
34
+ static get is() { return "seki-field-description"; }
35
+ static get encapsulation() { return "shadow"; }
36
+ static get originalStyleUrls() {
37
+ return {
38
+ "$": ["seki-field-description.css"]
39
+ };
40
+ }
41
+ static get styleUrls() {
42
+ return {
43
+ "$": ["seki-field-description.css"]
44
+ };
45
+ }
46
+ static get properties() {
47
+ return {
48
+ "id": {
49
+ "type": "string",
50
+ "mutable": false,
51
+ "complexType": {
52
+ "original": "string",
53
+ "resolved": "string | undefined",
54
+ "references": {}
55
+ },
56
+ "required": false,
57
+ "optional": true,
58
+ "docs": {
59
+ "tags": [],
60
+ "text": "Unique ID for this description element\nAuto-generated if not provided\nUsed for aria-describedby references"
61
+ },
62
+ "getter": false,
63
+ "setter": false,
64
+ "reflect": false,
65
+ "attribute": "id"
66
+ }
67
+ };
68
+ }
69
+ static get states() {
70
+ return {
71
+ "componentId": {}
72
+ };
73
+ }
74
+ static get methods() {
75
+ return {
76
+ "getId": {
77
+ "complexType": {
78
+ "signature": "() => Promise<string>",
79
+ "parameters": [],
80
+ "references": {
81
+ "Promise": {
82
+ "location": "global",
83
+ "id": "global::Promise"
84
+ }
85
+ },
86
+ "return": "Promise<string>"
87
+ },
88
+ "docs": {
89
+ "text": "Get the component's ID\nUseful for dynamically setting aria-describedby attributes",
90
+ "tags": []
91
+ }
92
+ }
93
+ };
94
+ }
95
+ }