@seed-design/css 1.2.3 → 1.2.4

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 (205) hide show
  1. package/all.css +1012 -172
  2. package/all.layered.css +9070 -0
  3. package/all.layered.min.css +1 -0
  4. package/all.min.css +1 -1
  5. package/base.css +4 -0
  6. package/base.layered.css +858 -0
  7. package/base.layered.min.css +1 -0
  8. package/base.min.css +1 -1
  9. package/package.json +11 -2
  10. package/recipes/action-button.css +69 -17
  11. package/recipes/action-button.layered.css +421 -0
  12. package/recipes/action-button.layered.mjs +79 -0
  13. package/recipes/action-chip.layered.css +84 -0
  14. package/recipes/action-chip.layered.mjs +51 -0
  15. package/recipes/action-sheet-item.layered.css +38 -0
  16. package/recipes/action-sheet-item.layered.mjs +29 -0
  17. package/recipes/action-sheet.layered.css +134 -0
  18. package/recipes/action-sheet.layered.mjs +60 -0
  19. package/recipes/app-bar-main.layered.css +165 -0
  20. package/recipes/app-bar-main.layered.mjs +63 -0
  21. package/recipes/app-bar.css +8 -0
  22. package/recipes/app-bar.layered.css +302 -0
  23. package/recipes/app-bar.layered.mjs +70 -0
  24. package/recipes/app-screen.layered.css +332 -0
  25. package/recipes/app-screen.layered.mjs +98 -0
  26. package/recipes/article.layered.css +12 -0
  27. package/recipes/article.layered.mjs +22 -0
  28. package/recipes/aspect-ratio.layered.css +26 -0
  29. package/recipes/aspect-ratio.layered.mjs +22 -0
  30. package/recipes/avatar-stack.layered.css +94 -0
  31. package/recipes/avatar-stack.layered.mjs +50 -0
  32. package/recipes/avatar.layered.css +222 -0
  33. package/recipes/avatar.layered.mjs +65 -0
  34. package/recipes/badge.layered.css +140 -0
  35. package/recipes/badge.layered.mjs +131 -0
  36. package/recipes/bottom-sheet-handle.css +9 -2
  37. package/recipes/bottom-sheet-handle.layered.css +36 -0
  38. package/recipes/bottom-sheet-handle.layered.mjs +36 -0
  39. package/recipes/bottom-sheet.css +11 -0
  40. package/recipes/bottom-sheet.layered.css +224 -0
  41. package/recipes/bottom-sheet.layered.mjs +75 -0
  42. package/recipes/callout.css +77 -12
  43. package/recipes/callout.layered.css +242 -0
  44. package/recipes/callout.layered.mjs +63 -0
  45. package/recipes/checkbox-group.layered.css +7 -0
  46. package/recipes/checkbox-group.layered.mjs +22 -0
  47. package/recipes/checkbox.layered.css +54 -0
  48. package/recipes/checkbox.layered.mjs +48 -0
  49. package/recipes/checkmark.css +61 -13
  50. package/recipes/checkmark.layered.css +187 -0
  51. package/recipes/checkmark.layered.mjs +86 -0
  52. package/recipes/chip-tabs.css +62 -14
  53. package/recipes/chip-tabs.layered.css +254 -0
  54. package/recipes/chip-tabs.layered.mjs +75 -0
  55. package/recipes/chip.css +60 -15
  56. package/recipes/chip.layered.css +272 -0
  57. package/recipes/chip.layered.mjs +80 -0
  58. package/recipes/contextual-floating-button.css +24 -7
  59. package/recipes/contextual-floating-button.layered.css +130 -0
  60. package/recipes/contextual-floating-button.layered.mjs +34 -0
  61. package/recipes/control-chip.layered.css +99 -0
  62. package/recipes/control-chip.layered.mjs +51 -0
  63. package/recipes/dialog.layered.css +111 -0
  64. package/recipes/dialog.layered.mjs +66 -0
  65. package/recipes/extended-action-sheet-item.layered.css +38 -0
  66. package/recipes/extended-action-sheet-item.layered.mjs +29 -0
  67. package/recipes/extended-action-sheet.layered.css +132 -0
  68. package/recipes/extended-action-sheet.layered.mjs +64 -0
  69. package/recipes/extended-fab.layered.css +79 -0
  70. package/recipes/extended-fab.layered.mjs +34 -0
  71. package/recipes/fab.layered.css +37 -0
  72. package/recipes/fab.layered.mjs +22 -0
  73. package/recipes/field-label.layered.css +35 -0
  74. package/recipes/field-label.layered.mjs +47 -0
  75. package/recipes/field.layered.css +81 -0
  76. package/recipes/field.layered.mjs +60 -0
  77. package/recipes/floating-action-button.css +15 -5
  78. package/recipes/floating-action-button.layered.css +101 -0
  79. package/recipes/floating-action-button.layered.mjs +47 -0
  80. package/recipes/help-bubble.css +8 -0
  81. package/recipes/help-bubble.layered.css +104 -0
  82. package/recipes/help-bubble.layered.mjs +60 -0
  83. package/recipes/identity-placeholder.css +2 -2
  84. package/recipes/identity-placeholder.d.ts +1 -1
  85. package/recipes/identity-placeholder.layered.css +22 -0
  86. package/recipes/identity-placeholder.layered.mjs +43 -0
  87. package/recipes/identity-placeholder.mjs +2 -1
  88. package/recipes/image-frame-icon.layered.css +8 -0
  89. package/recipes/image-frame-icon.layered.mjs +22 -0
  90. package/recipes/image-frame-indicator.layered.css +18 -0
  91. package/recipes/image-frame-indicator.layered.mjs +22 -0
  92. package/recipes/image-frame-reaction-button.css +9 -1
  93. package/recipes/image-frame-reaction-button.layered.css +43 -0
  94. package/recipes/image-frame-reaction-button.layered.mjs +22 -0
  95. package/recipes/image-frame.layered.css +28 -0
  96. package/recipes/image-frame.layered.mjs +34 -0
  97. package/recipes/inline-banner.layered.css +161 -0
  98. package/recipes/inline-banner.layered.mjs +64 -0
  99. package/recipes/input-button.css +27 -5
  100. package/recipes/input-button.layered.css +167 -0
  101. package/recipes/input-button.layered.mjs +64 -0
  102. package/recipes/link-content.layered.css +48 -0
  103. package/recipes/link-content.layered.mjs +35 -0
  104. package/recipes/list-header.layered.css +26 -0
  105. package/recipes/list-header.layered.mjs +29 -0
  106. package/recipes/list-item.css +63 -17
  107. package/recipes/list-item.layered.css +187 -0
  108. package/recipes/list-item.layered.mjs +59 -0
  109. package/recipes/manner-temp-badge.layered.css +72 -0
  110. package/recipes/manner-temp-badge.layered.mjs +37 -0
  111. package/recipes/manner-temp.layered.css +57 -0
  112. package/recipes/manner-temp.layered.mjs +37 -0
  113. package/recipes/menu-sheet-item.css +24 -3
  114. package/recipes/menu-sheet-item.layered.css +102 -0
  115. package/recipes/menu-sheet-item.layered.mjs +56 -0
  116. package/recipes/menu-sheet.css +18 -3
  117. package/recipes/menu-sheet.layered.css +167 -0
  118. package/recipes/menu-sheet.layered.mjs +74 -0
  119. package/recipes/notification-badge-positioner.layered.css +35 -0
  120. package/recipes/notification-badge-positioner.layered.mjs +51 -0
  121. package/recipes/notification-badge.layered.css +33 -0
  122. package/recipes/notification-badge.layered.mjs +29 -0
  123. package/recipes/page-banner.css +122 -22
  124. package/recipes/page-banner.layered.css +361 -0
  125. package/recipes/page-banner.layered.mjs +117 -0
  126. package/recipes/progress-circle.layered.css +52 -0
  127. package/recipes/progress-circle.layered.mjs +55 -0
  128. package/recipes/pull-to-refresh.layered.css +19 -0
  129. package/recipes/pull-to-refresh.layered.mjs +36 -0
  130. package/recipes/radio-group.layered.css +7 -0
  131. package/recipes/radio-group.layered.mjs +22 -0
  132. package/recipes/radio.layered.css +54 -0
  133. package/recipes/radio.layered.mjs +48 -0
  134. package/recipes/radiomark.css +34 -7
  135. package/recipes/radiomark.layered.css +132 -0
  136. package/recipes/radiomark.layered.mjs +48 -0
  137. package/recipes/reaction-button.css +24 -7
  138. package/recipes/reaction-button.layered.css +124 -0
  139. package/recipes/reaction-button.layered.mjs +29 -0
  140. package/recipes/scroll-fog.layered.css +27 -0
  141. package/recipes/scroll-fog.layered.mjs +28 -0
  142. package/recipes/segmented-control.css +31 -7
  143. package/recipes/segmented-control.layered.css +108 -0
  144. package/recipes/segmented-control.layered.mjs +40 -0
  145. package/recipes/select-box-group.layered.css +13 -0
  146. package/recipes/select-box-group.layered.mjs +22 -0
  147. package/recipes/select-box.css +19 -3
  148. package/recipes/select-box.layered.css +148 -0
  149. package/recipes/select-box.layered.mjs +63 -0
  150. package/recipes/selectBoxCheckmark.css +9 -2
  151. package/recipes/selectBoxCheckmark.layered.css +42 -0
  152. package/recipes/selectBoxCheckmark.layered.mjs +36 -0
  153. package/recipes/skeleton.layered.css +56 -0
  154. package/recipes/skeleton.layered.mjs +36 -0
  155. package/recipes/slider-marker.layered.css +54 -0
  156. package/recipes/slider-marker.layered.mjs +30 -0
  157. package/recipes/slider-tick.layered.css +25 -0
  158. package/recipes/slider-tick.layered.mjs +29 -0
  159. package/recipes/slider.css +25 -1
  160. package/recipes/slider.layered.css +238 -0
  161. package/recipes/slider.layered.mjs +68 -0
  162. package/recipes/snackbar-region.layered.css +18 -0
  163. package/recipes/snackbar-region.layered.mjs +22 -0
  164. package/recipes/snackbar.css +20 -1
  165. package/recipes/snackbar.layered.css +126 -0
  166. package/recipes/snackbar.layered.mjs +56 -0
  167. package/recipes/switch.layered.css +62 -0
  168. package/recipes/switch.layered.mjs +44 -0
  169. package/recipes/switchmark.css +9 -1
  170. package/recipes/switchmark.layered.css +100 -0
  171. package/recipes/switchmark.layered.mjs +49 -0
  172. package/recipes/tabs.css +9 -0
  173. package/recipes/tabs.layered.css +211 -0
  174. package/recipes/tabs.layered.mjs +78 -0
  175. package/recipes/tag-group-item.layered.css +98 -0
  176. package/recipes/tag-group-item.layered.mjs +55 -0
  177. package/recipes/tag-group.layered.css +58 -0
  178. package/recipes/tag-group.layered.mjs +62 -0
  179. package/recipes/text-input.css +1 -0
  180. package/recipes/text-input.layered.css +236 -0
  181. package/recipes/text-input.layered.mjs +73 -0
  182. package/recipes/text.layered.css +364 -0
  183. package/recipes/text.layered.mjs +90 -0
  184. package/recipes/toggle-button.css +42 -11
  185. package/recipes/toggle-button.layered.css +183 -0
  186. package/recipes/toggle-button.layered.mjs +34 -0
  187. package/vars/color/stroke.d.ts +2 -1
  188. package/vars/color/stroke.mjs +2 -1
  189. package/vars/component/identity-placeholder.d.ts +2 -2
  190. package/vars/component/identity-placeholder.mjs +2 -2
  191. package/vars/component/image-frame-floater.d.ts +1 -1
  192. package/vars/component/image-frame.d.ts +11 -17
  193. package/vars/component/image-frame.mjs +7 -12
  194. package/vars/component/index.d.ts +1 -0
  195. package/vars/component/index.mjs +1 -0
  196. package/vars/component/list-item.d.ts +1 -1
  197. package/vars/component/list-item.mjs +1 -1
  198. package/vars/component/segmented-control-indicator.d.ts +24 -0
  199. package/vars/component/segmented-control-indicator.mjs +24 -0
  200. package/vars/component/segmented-control-item.d.ts +3 -11
  201. package/vars/component/segmented-control-item.mjs +3 -11
  202. package/vars/component/segmented-control.d.ts +0 -8
  203. package/vars/component/segmented-control.mjs +0 -8
  204. package/vars/component/slider.d.ts +3 -1
  205. package/vars/component/slider.mjs +3 -1
@@ -0,0 +1,62 @@
1
+ import './tag-group.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const tagGroupSlotNames = [
5
+ [
6
+ "root",
7
+ "seed-tag-group__root"
8
+ ],
9
+ [
10
+ "separator",
11
+ "seed-tag-group__separator"
12
+ ]
13
+ ];
14
+
15
+ const defaultVariant = {
16
+ "size": "t2",
17
+ "truncate": false
18
+ };
19
+
20
+ const compoundVariants = [
21
+ {
22
+ "size": "t2",
23
+ "truncate": false
24
+ },
25
+ {
26
+ "size": "t3",
27
+ "truncate": false
28
+ },
29
+ {
30
+ "size": "t4",
31
+ "truncate": false
32
+ }
33
+ ];
34
+
35
+ export const tagGroupVariantMap = {
36
+ "size": [
37
+ "t2",
38
+ "t3",
39
+ "t4"
40
+ ],
41
+ "truncate": [
42
+ true,
43
+ false
44
+ ]
45
+ };
46
+
47
+ export const tagGroupVariantKeys = Object.keys(tagGroupVariantMap);
48
+
49
+ export function tagGroup(props) {
50
+ return Object.fromEntries(
51
+ tagGroupSlotNames.map(([slot, className]) => {
52
+ return [
53
+ slot,
54
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
55
+ ];
56
+ }),
57
+ );
58
+ }
59
+
60
+ Object.assign(tagGroup, { splitVariantProps: (props) => splitVariantProps(props, tagGroupVariantMap) });
61
+
62
+ // @recipe(seed): tag-group
@@ -50,6 +50,7 @@
50
50
  }
51
51
  .seed-text-input__value:is(:disabled, [disabled], [data-disabled]) {
52
52
  color: var(--seed-color-fg-disabled);
53
+ cursor: not-allowed;
53
54
  }
54
55
  .seed-text-input__value:is(:disabled, [disabled], [data-disabled])::placeholder {
55
56
  color: var(--seed-color-fg-disabled);
@@ -0,0 +1,236 @@
1
+ @layer seed-components {
2
+ .seed-text-input__root {
3
+ align-items: center;
4
+ width: 100%;
5
+ display: flex;
6
+ position: relative;
7
+ overflow: hidden;
8
+ }
9
+
10
+ .seed-text-input__root:after {
11
+ content: "";
12
+ border-radius: inherit;
13
+ transition: border-color .1s var(--seed-timing-function-easing);
14
+ pointer-events: none;
15
+ border-color: #0000;
16
+ position: absolute;
17
+ inset: 0;
18
+ }
19
+
20
+ .seed-text-input__value {
21
+ box-sizing: border-box;
22
+ font: inherit;
23
+ resize: none;
24
+ color: var(--seed-color-fg-neutral);
25
+ font-weight: var(--seed-font-weight-regular);
26
+ background: none;
27
+ border: none;
28
+ outline: none;
29
+ flex-grow: 1;
30
+ align-self: stretch;
31
+ padding-left: 0;
32
+ padding-right: 0;
33
+ }
34
+
35
+ .seed-text-input__value:is(input) {
36
+ width: 0;
37
+ }
38
+
39
+ .seed-text-input__value::placeholder {
40
+ color: var(--seed-color-fg-placeholder);
41
+ font-weight: var(--seed-font-weight-regular);
42
+ }
43
+
44
+ .seed-text-input__value:is(:autofill, :autofill) {
45
+ -webkit-text-fill-color: var(--seed-color-fg-neutral);
46
+ transition: background-color 2147480000s 2147480000s;
47
+ }
48
+
49
+ @supports (background-clip: text) {
50
+ .seed-text-input__value:is(:autofill, :autofill) {
51
+ background-clip: text;
52
+ transition: none;
53
+ }
54
+ }
55
+
56
+ .seed-text-input__value:is(:disabled, [disabled], [data-disabled]) {
57
+ color: var(--seed-color-fg-disabled);
58
+ cursor: not-allowed;
59
+ }
60
+
61
+ .seed-text-input__value:is(:disabled, [disabled], [data-disabled])::placeholder {
62
+ color: var(--seed-color-fg-disabled);
63
+ }
64
+
65
+ .seed-text-input__prefixText {
66
+ color: var(--seed-color-fg-neutral-muted);
67
+ font-weight: var(--seed-font-weight-regular);
68
+ }
69
+
70
+ .seed-text-input__prefixIcon {
71
+ color: var(--seed-color-fg-neutral-muted);
72
+ flex-shrink: 0;
73
+ }
74
+
75
+ .seed-text-input__suffixText {
76
+ color: var(--seed-color-fg-neutral-muted);
77
+ font-weight: var(--seed-font-weight-regular);
78
+ }
79
+
80
+ .seed-text-input__suffixIcon {
81
+ color: var(--seed-color-fg-neutral-muted);
82
+ flex-shrink: 0;
83
+ }
84
+
85
+ .seed-text-input__root--variant_outline {
86
+ border-radius: var(--seed-radius-r3);
87
+ box-shadow: inset 0 0 0 1px var(--seed-color-stroke-neutral-weak);
88
+ }
89
+
90
+ .seed-text-input__root--variant_outline:after {
91
+ border-style: solid;
92
+ border-width: 2px;
93
+ }
94
+
95
+ .seed-text-input__root--variant_outline:not([data-readonly]):is(:focus, [data-focus]):after {
96
+ border-color: var(--seed-color-stroke-neutral-contrast);
97
+ border-width: 2px;
98
+ }
99
+
100
+ .seed-text-input__root--variant_outline:is(:invalid, [data-invalid]):after, .seed-text-input__root--variant_outline:is(:invalid, [data-invalid]):is(:focus, [data-focus]):after {
101
+ border-color: var(--seed-color-stroke-critical-solid);
102
+ border-width: 2px;
103
+ }
104
+
105
+ .seed-text-input__root--variant_outline:is(:disabled, [disabled], [data-disabled]), .seed-text-input__root--variant_outline[data-readonly]:not(:is(:disabled, [disabled], [data-disabled])) {
106
+ background-color: var(--seed-color-bg-disabled);
107
+ }
108
+
109
+ .seed-text-input__value--variant_outline:first-child {
110
+ padding-left: var(--seed-dimension-x4);
111
+ }
112
+
113
+ .seed-text-input__value--variant_outline:last-child {
114
+ padding-right: var(--seed-dimension-x4);
115
+ }
116
+
117
+ .seed-text-input__prefixText--variant_outline:first-child, .seed-text-input__prefixIcon--variant_outline:first-child {
118
+ margin-left: var(--seed-dimension-x4);
119
+ }
120
+
121
+ .seed-text-input__suffixText--variant_outline:last-child, .seed-text-input__suffixIcon--variant_outline:last-child {
122
+ margin-right: var(--seed-dimension-x4);
123
+ }
124
+
125
+ .seed-text-input__root--variant_underline {
126
+ gap: var(--seed-dimension-x2_5);
127
+ min-height: var(--seed-dimension-x10);
128
+ box-shadow: inset 0 calc(1px * -1) 0 0 var(--seed-color-stroke-neutral-weak);
129
+ }
130
+
131
+ .seed-text-input__root--variant_underline:after {
132
+ border-bottom-style: solid;
133
+ border-bottom-width: 2px;
134
+ }
135
+
136
+ .seed-text-input__root--variant_underline:not([data-readonly]):is(:focus, [data-focus]):after {
137
+ border-bottom-color: var(--seed-color-stroke-neutral-contrast);
138
+ border-bottom-width: 2px;
139
+ }
140
+
141
+ .seed-text-input__root--variant_underline:is(:invalid, [data-invalid]):after, .seed-text-input__root--variant_underline:is(:invalid, [data-invalid]):is(:focus, [data-focus]):after {
142
+ border-bottom-color: var(--seed-color-stroke-critical-solid);
143
+ border-bottom-width: 2px;
144
+ }
145
+
146
+ .seed-text-input__value--variant_underline, .seed-text-input__value--variant_underline::placeholder {
147
+ font-size: var(--seed-font-size-t6);
148
+ line-height: var(--seed-line-height-t6);
149
+ }
150
+
151
+ .seed-text-input__value--variant_underline[data-readonly]:not(:is(:disabled, [disabled], [data-disabled])), .seed-text-input__value--variant_underline[data-readonly]:not(:is(:disabled, [disabled], [data-disabled]))::placeholder {
152
+ color: var(--seed-color-fg-neutral-muted);
153
+ }
154
+
155
+ .seed-text-input__prefixText--variant_underline {
156
+ font-size: var(--seed-font-size-t6);
157
+ line-height: var(--seed-line-height-t6);
158
+ }
159
+
160
+ .seed-text-input__prefixIcon--variant_underline {
161
+ width: var(--seed-dimension-x6);
162
+ height: var(--seed-dimension-x6);
163
+ }
164
+
165
+ .seed-text-input__suffixText--variant_underline {
166
+ font-size: var(--seed-font-size-t6);
167
+ line-height: var(--seed-line-height-t6);
168
+ }
169
+
170
+ .seed-text-input__suffixIcon--variant_underline {
171
+ width: var(--seed-dimension-x6);
172
+ height: var(--seed-dimension-x6);
173
+ }
174
+
175
+ .seed-text-input__value--size_large:is(textarea) {
176
+ min-height: 95px;
177
+ padding-top: var(--seed-dimension-x3_5);
178
+ padding-bottom: var(--seed-dimension-x3_5);
179
+ }
180
+
181
+ .seed-text-input__value--size_medium:is(textarea) {
182
+ min-height: 90px;
183
+ padding-top: 11px;
184
+ padding-bottom: 11px;
185
+ }
186
+
187
+ .seed-text-input__root--variant_outline-size_large {
188
+ gap: var(--seed-dimension-x2_5);
189
+ min-height: var(--seed-dimension-x13);
190
+ }
191
+
192
+ .seed-text-input__value--variant_outline-size_large, .seed-text-input__value--variant_outline-size_large::placeholder, .seed-text-input__prefixText--variant_outline-size_large {
193
+ font-size: var(--seed-font-size-t5);
194
+ line-height: var(--seed-line-height-t5);
195
+ }
196
+
197
+ .seed-text-input__prefixIcon--variant_outline-size_large {
198
+ width: var(--seed-dimension-x5);
199
+ height: var(--seed-dimension-x5);
200
+ }
201
+
202
+ .seed-text-input__suffixText--variant_outline-size_large {
203
+ font-size: var(--seed-font-size-t5);
204
+ line-height: var(--seed-line-height-t5);
205
+ }
206
+
207
+ .seed-text-input__suffixIcon--variant_outline-size_large {
208
+ width: var(--seed-dimension-x5);
209
+ height: var(--seed-dimension-x5);
210
+ }
211
+
212
+ .seed-text-input__root--variant_outline-size_medium {
213
+ gap: var(--seed-dimension-x1_5);
214
+ min-height: var(--seed-dimension-x10);
215
+ }
216
+
217
+ .seed-text-input__value--variant_outline-size_medium, .seed-text-input__value--variant_outline-size_medium::placeholder, .seed-text-input__prefixText--variant_outline-size_medium {
218
+ font-size: var(--seed-font-size-t4);
219
+ line-height: var(--seed-line-height-t4);
220
+ }
221
+
222
+ .seed-text-input__prefixIcon--variant_outline-size_medium {
223
+ width: var(--seed-dimension-x4);
224
+ height: var(--seed-dimension-x4);
225
+ }
226
+
227
+ .seed-text-input__suffixText--variant_outline-size_medium {
228
+ font-size: var(--seed-font-size-t4);
229
+ line-height: var(--seed-line-height-t4);
230
+ }
231
+
232
+ .seed-text-input__suffixIcon--variant_outline-size_medium {
233
+ width: var(--seed-dimension-x4);
234
+ height: var(--seed-dimension-x4);
235
+ }
236
+ }
@@ -0,0 +1,73 @@
1
+ import './text-input.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const textInputSlotNames = [
5
+ [
6
+ "root",
7
+ "seed-text-input__root"
8
+ ],
9
+ [
10
+ "value",
11
+ "seed-text-input__value"
12
+ ],
13
+ [
14
+ "prefixText",
15
+ "seed-text-input__prefixText"
16
+ ],
17
+ [
18
+ "prefixIcon",
19
+ "seed-text-input__prefixIcon"
20
+ ],
21
+ [
22
+ "suffixText",
23
+ "seed-text-input__suffixText"
24
+ ],
25
+ [
26
+ "suffixIcon",
27
+ "seed-text-input__suffixIcon"
28
+ ]
29
+ ];
30
+
31
+ const defaultVariant = {
32
+ "variant": "outline",
33
+ "size": "large"
34
+ };
35
+
36
+ const compoundVariants = [
37
+ {
38
+ "variant": "outline",
39
+ "size": "large"
40
+ },
41
+ {
42
+ "variant": "outline",
43
+ "size": "medium"
44
+ }
45
+ ];
46
+
47
+ export const textInputVariantMap = {
48
+ "variant": [
49
+ "outline",
50
+ "underline"
51
+ ],
52
+ "size": [
53
+ "large",
54
+ "medium"
55
+ ]
56
+ };
57
+
58
+ export const textInputVariantKeys = Object.keys(textInputVariantMap);
59
+
60
+ export function textInput(props) {
61
+ return Object.fromEntries(
62
+ textInputSlotNames.map(([slot, className]) => {
63
+ return [
64
+ slot,
65
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
66
+ ];
67
+ }),
68
+ );
69
+ }
70
+
71
+ Object.assign(textInput, { splitVariantProps: (props) => splitVariantProps(props, textInputVariantMap) });
72
+
73
+ // @recipe(seed): text-input