@sekiui/elements 0.0.49 → 0.0.50

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 (129) hide show
  1. package/dist/cdn/index.js +2 -2
  2. package/dist/cdn/{p-BLeUUc2-.js → p-DOQb1L-i.js} +28 -3
  3. package/dist/cdn/seki-button.js +1 -1
  4. package/dist/cdn/seki-field-description.js +1 -1
  5. package/dist/cdn/seki-field-error.js +1 -1
  6. package/dist/cdn/seki-field-group.js +1 -1
  7. package/dist/cdn/seki-field-label.js +1 -1
  8. package/dist/cdn/seki-field-legend.js +1 -1
  9. package/dist/cdn/seki-field.js +1 -1
  10. package/dist/cdn/seki-fieldset.js +1 -1
  11. package/dist/cdn/seki-input.js +1 -1
  12. package/dist/cdn/seki-select-content.d.ts +11 -0
  13. package/dist/cdn/seki-select-content.js +94 -0
  14. package/dist/cdn/seki-select-group.d.ts +11 -0
  15. package/dist/cdn/seki-select-group.js +42 -0
  16. package/dist/cdn/seki-select-option.d.ts +11 -0
  17. package/dist/cdn/seki-select-option.js +101 -0
  18. package/dist/cdn/seki-select-trigger.d.ts +11 -0
  19. package/dist/cdn/seki-select-trigger.js +147 -0
  20. package/dist/cdn/seki-select.d.ts +11 -0
  21. package/dist/cdn/seki-select.js +303 -0
  22. package/dist/cdn/seki-skeleton.js +2 -2
  23. package/dist/cjs/{index-BxD7Xe36.js → index-8TkHNmrx.js} +28 -3
  24. package/dist/cjs/index.cjs.js +1 -1
  25. package/dist/cjs/loader.cjs.js +2 -2
  26. package/dist/cjs/seki-button.cjs.entry.js +1 -1
  27. package/dist/cjs/seki-field-description.cjs.entry.js +1 -1
  28. package/dist/cjs/seki-field-error.cjs.entry.js +1 -1
  29. package/dist/cjs/seki-field-group.cjs.entry.js +1 -1
  30. package/dist/cjs/seki-field-label.cjs.entry.js +1 -1
  31. package/dist/cjs/seki-field-legend.cjs.entry.js +1 -1
  32. package/dist/cjs/seki-field.cjs.entry.js +1 -1
  33. package/dist/cjs/seki-fieldset.cjs.entry.js +1 -1
  34. package/dist/cjs/seki-input.cjs.entry.js +1 -1
  35. package/dist/cjs/seki-select-content.cjs.entry.js +72 -0
  36. package/dist/cjs/seki-select-group.cjs.entry.js +21 -0
  37. package/dist/cjs/seki-select-option.cjs.entry.js +78 -0
  38. package/dist/cjs/seki-select-trigger.cjs.entry.js +126 -0
  39. package/dist/cjs/seki-select.cjs.entry.js +254 -0
  40. package/dist/cjs/seki-skeleton.cjs.entry.js +2 -2
  41. package/dist/cjs/seki-switch.cjs.entry.js +1 -1
  42. package/dist/cjs/sekiui.cjs.js +2 -2
  43. package/dist/collection/collection-manifest.json +5 -0
  44. package/dist/collection/components/select/seki-select.css +410 -0
  45. package/dist/collection/components/select/seki-select.js +728 -0
  46. package/dist/collection/components/select-content/seki-select-content.css +403 -0
  47. package/dist/collection/components/select-content/seki-select-content.js +112 -0
  48. package/dist/collection/components/select-group/seki-select-group.css +393 -0
  49. package/dist/collection/components/select-group/seki-select-group.js +51 -0
  50. package/dist/collection/components/select-option/seki-select-option.css +423 -0
  51. package/dist/collection/components/select-option/seki-select-option.js +178 -0
  52. package/dist/collection/components/select-trigger/seki-select-trigger.css +477 -0
  53. package/dist/collection/components/select-trigger/seki-select-trigger.js +138 -0
  54. package/dist/collection/components/skeleton/seki-skeleton.js +1 -1
  55. package/dist/collection/utils/select/index.js +6 -0
  56. package/dist/collection/utils/select/select-context.js +38 -0
  57. package/dist/collection/utils/select/types.js +1 -0
  58. package/dist/components/index.js +2 -2
  59. package/dist/components/{p-BFmmBW7R.js → p-Bo3Iu2B_.js} +28 -3
  60. package/dist/components/seki-button.js +1 -1
  61. package/dist/components/seki-field-description.js +1 -1
  62. package/dist/components/seki-field-error.js +1 -1
  63. package/dist/components/seki-field-group.js +1 -1
  64. package/dist/components/seki-field-label.js +1 -1
  65. package/dist/components/seki-field-legend.js +1 -1
  66. package/dist/components/seki-field.js +1 -1
  67. package/dist/components/seki-fieldset.js +1 -1
  68. package/dist/components/seki-input.js +1 -1
  69. package/dist/components/seki-select-content.d.ts +11 -0
  70. package/dist/components/seki-select-content.js +94 -0
  71. package/dist/components/seki-select-group.d.ts +11 -0
  72. package/dist/components/seki-select-group.js +42 -0
  73. package/dist/components/seki-select-option.d.ts +11 -0
  74. package/dist/components/seki-select-option.js +101 -0
  75. package/dist/components/seki-select-trigger.d.ts +11 -0
  76. package/dist/components/seki-select-trigger.js +147 -0
  77. package/dist/components/seki-select.d.ts +11 -0
  78. package/dist/components/seki-select.js +303 -0
  79. package/dist/components/seki-skeleton.js +2 -2
  80. package/dist/esm/{index-ByHohxc0.js → index-CXbcuidh.js} +28 -3
  81. package/dist/esm/index.js +1 -1
  82. package/dist/esm/loader.js +3 -3
  83. package/dist/esm/seki-button.entry.js +1 -1
  84. package/dist/esm/seki-field-description.entry.js +1 -1
  85. package/dist/esm/seki-field-error.entry.js +1 -1
  86. package/dist/esm/seki-field-group.entry.js +1 -1
  87. package/dist/esm/seki-field-label.entry.js +1 -1
  88. package/dist/esm/seki-field-legend.entry.js +1 -1
  89. package/dist/esm/seki-field.entry.js +1 -1
  90. package/dist/esm/seki-fieldset.entry.js +1 -1
  91. package/dist/esm/seki-input.entry.js +1 -1
  92. package/dist/esm/seki-select-content.entry.js +70 -0
  93. package/dist/esm/seki-select-group.entry.js +19 -0
  94. package/dist/esm/seki-select-option.entry.js +76 -0
  95. package/dist/esm/seki-select-trigger.entry.js +124 -0
  96. package/dist/esm/seki-select.entry.js +252 -0
  97. package/dist/esm/seki-skeleton.entry.js +2 -2
  98. package/dist/esm/seki-switch.entry.js +1 -1
  99. package/dist/esm/sekiui.js +3 -3
  100. package/dist/sekiui/index.esm.js +1 -1
  101. package/dist/sekiui/{p-3b2d3e96.entry.js → p-0dc263b4.entry.js} +1 -1
  102. package/dist/sekiui/{p-51f2af94.entry.js → p-2c2c1b32.entry.js} +1 -1
  103. package/dist/sekiui/p-34efaa97.entry.js +1 -0
  104. package/dist/sekiui/p-422ca6b1.entry.js +1 -0
  105. package/dist/sekiui/p-462e506e.entry.js +1 -0
  106. package/dist/sekiui/{p-1b1a5e38.entry.js → p-46eb60c1.entry.js} +1 -1
  107. package/dist/sekiui/{p-128cfe90.entry.js → p-4b53d186.entry.js} +1 -1
  108. package/dist/sekiui/{p-1c923d08.entry.js → p-4d5088f9.entry.js} +1 -1
  109. package/dist/sekiui/{p-459bb637.entry.js → p-5071ac36.entry.js} +1 -1
  110. package/dist/sekiui/p-69c09654.entry.js +1 -0
  111. package/dist/sekiui/{p-bc921daa.entry.js → p-930b01ff.entry.js} +1 -1
  112. package/dist/sekiui/p-CXbcuidh.js +2 -0
  113. package/dist/sekiui/{p-70281e83.entry.js → p-b8aa77e4.entry.js} +1 -1
  114. package/dist/sekiui/{p-d034b071.entry.js → p-bdbf3000.entry.js} +1 -1
  115. package/dist/sekiui/p-cec05c04.entry.js +1 -0
  116. package/dist/sekiui/{p-2ecf7587.entry.js → p-ddc8d46e.entry.js} +1 -1
  117. package/dist/sekiui/{p-281803dd.entry.js → p-e79c7b4d.entry.js} +1 -1
  118. package/dist/sekiui/sekiui.esm.js +1 -1
  119. package/dist/types/components/select/seki-select.d.ts +80 -0
  120. package/dist/types/components/select-content/seki-select-content.d.ts +15 -0
  121. package/dist/types/components/select-group/seki-select-group.d.ts +10 -0
  122. package/dist/types/components/select-option/seki-select-option.d.ts +29 -0
  123. package/dist/types/components/select-trigger/seki-select-trigger.d.ts +21 -0
  124. package/dist/types/components.d.ts +310 -0
  125. package/dist/types/utils/select/index.d.ts +6 -0
  126. package/dist/types/utils/select/select-context.d.ts +19 -0
  127. package/dist/types/utils/select/types.d.ts +109 -0
  128. package/package.json +4 -1
  129. package/dist/sekiui/p-ByHohxc0.js +0 -2
@@ -0,0 +1,403 @@
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
+ :host {
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
+ :host {
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
+ :host([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
+ :host {
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
+ :host {
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
+ :host {
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
+ :host {
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
+ :host {
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
+ position: absolute;
360
+ top: calc(100% + 4px); /* Position below the trigger with small gap */
361
+ left: 0;
362
+ right: 0;
363
+ z-index: 50;
364
+ min-width: 100%;
365
+ }
366
+
367
+ .content-container {
368
+ background: var(--seki-select-content-bg);
369
+ border: var(--seki-select-content-border);
370
+ border-radius: var(--seki-select-content-radius);
371
+ box-shadow: var(--seki-select-content-shadow);
372
+ padding: var(--seki-select-content-padding);
373
+ width: 100%;
374
+ }
375
+
376
+ .content-scroll {
377
+ overflow-y: auto;
378
+ overflow-x: hidden;
379
+ }
380
+
381
+ /* Scrollbar styling */
382
+ .content-scroll::-webkit-scrollbar {
383
+ width: 8px;
384
+ }
385
+
386
+ .content-scroll::-webkit-scrollbar-track {
387
+ background: transparent;
388
+ }
389
+
390
+ .content-scroll::-webkit-scrollbar-thumb {
391
+ background: var(--seki-color-border);
392
+ border-radius: 4px;
393
+ }
394
+
395
+ .content-scroll::-webkit-scrollbar-thumb:hover {
396
+ background: var(--seki-color-muted-foreground);
397
+ }
398
+
399
+ /* Dark mode support */
400
+ [data-theme="dark"] .content-container {
401
+ background: var(--seki-select-content-bg);
402
+ border-color: var(--seki-color-border);
403
+ }
@@ -0,0 +1,112 @@
1
+ import { Host, h } from "@stencil/core";
2
+ /**
3
+ * @slot - Options and groups
4
+ */
5
+ export class SekiSelectContent {
6
+ constructor() {
7
+ this.forceUpdate = 0; // Used to force re-renders
8
+ this.handleParentOpenChange = () => {
9
+ // Force re-render when parent's open state changes
10
+ this.forceUpdate++;
11
+ };
12
+ }
13
+ // ===========================
14
+ // Lifecycle
15
+ // ===========================
16
+ componentDidLoad() {
17
+ // Listen for state changes from parent
18
+ const parent = this.el.closest('seki-select');
19
+ if (parent) {
20
+ parent.addEventListener('sekiOpenChange', this.handleParentOpenChange);
21
+ }
22
+ }
23
+ disconnectedCallback() {
24
+ const parent = this.el.closest('seki-select');
25
+ if (parent) {
26
+ parent.removeEventListener('sekiOpenChange', this.handleParentOpenChange);
27
+ }
28
+ }
29
+ // ===========================
30
+ // Methods
31
+ // ===========================
32
+ /** Scroll to make an option visible */
33
+ async scrollToOption(optionId) {
34
+ if (!this.scrollContainerRef)
35
+ return;
36
+ const optionElement = this.el.querySelector(`#${optionId}`);
37
+ if (optionElement) {
38
+ optionElement.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
39
+ }
40
+ }
41
+ // ===========================
42
+ // Helpers
43
+ // ===========================
44
+ getSelectContext() {
45
+ const parent = this.el.parentElement;
46
+ return parent === null || parent === void 0 ? void 0 : parent.selectContext;
47
+ }
48
+ // ===========================
49
+ // Render
50
+ // ===========================
51
+ render() {
52
+ const selectContext = this.getSelectContext();
53
+ if (!selectContext) {
54
+ return null;
55
+ }
56
+ const isOpen = selectContext.open;
57
+ // Lazy rendering - only render when open
58
+ if (!isOpen) {
59
+ return null;
60
+ }
61
+ const parent = this.el.closest('seki-select');
62
+ const maxHeight = (parent === null || parent === void 0 ? void 0 : parent.maxHeight) || '12.5rem';
63
+ return (h(Host, null, h("div", { class: "content-container", role: "listbox", id: selectContext.contentId, "aria-multiselectable": selectContext.multiple ? 'true' : undefined }, h("div", { ref: (el) => (this.scrollContainerRef = el), class: "content-scroll", style: { maxHeight } }, h("slot", null)))));
64
+ }
65
+ static get is() { return "seki-select-content"; }
66
+ static get encapsulation() { return "shadow"; }
67
+ static get originalStyleUrls() {
68
+ return {
69
+ "$": ["seki-select-content.css"]
70
+ };
71
+ }
72
+ static get styleUrls() {
73
+ return {
74
+ "$": ["seki-select-content.css"]
75
+ };
76
+ }
77
+ static get states() {
78
+ return {
79
+ "forceUpdate": {}
80
+ };
81
+ }
82
+ static get methods() {
83
+ return {
84
+ "scrollToOption": {
85
+ "complexType": {
86
+ "signature": "(optionId: string) => Promise<void>",
87
+ "parameters": [{
88
+ "name": "optionId",
89
+ "type": "string",
90
+ "docs": ""
91
+ }],
92
+ "references": {
93
+ "Promise": {
94
+ "location": "global",
95
+ "id": "global::Promise"
96
+ },
97
+ "HTMLElement": {
98
+ "location": "global",
99
+ "id": "global::HTMLElement"
100
+ }
101
+ },
102
+ "return": "Promise<void>"
103
+ },
104
+ "docs": {
105
+ "text": "Scroll to make an option visible",
106
+ "tags": []
107
+ }
108
+ }
109
+ };
110
+ }
111
+ static get elementRef() { return "el"; }
112
+ }