@seed-design/css 1.2.2 → 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 (216) hide show
  1. package/all.css +1033 -192
  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 +9 -1
  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.css +0 -2
  29. package/recipes/aspect-ratio.layered.css +26 -0
  30. package/recipes/aspect-ratio.layered.mjs +22 -0
  31. package/recipes/avatar-stack.layered.css +94 -0
  32. package/recipes/avatar-stack.layered.mjs +50 -0
  33. package/recipes/avatar.layered.css +222 -0
  34. package/recipes/avatar.layered.mjs +65 -0
  35. package/recipes/badge.layered.css +140 -0
  36. package/recipes/badge.layered.mjs +131 -0
  37. package/recipes/bottom-sheet-handle.css +9 -2
  38. package/recipes/bottom-sheet-handle.layered.css +36 -0
  39. package/recipes/bottom-sheet-handle.layered.mjs +36 -0
  40. package/recipes/bottom-sheet.css +14 -3
  41. package/recipes/bottom-sheet.layered.css +224 -0
  42. package/recipes/bottom-sheet.layered.mjs +75 -0
  43. package/recipes/callout.css +77 -12
  44. package/recipes/callout.layered.css +242 -0
  45. package/recipes/callout.layered.mjs +63 -0
  46. package/recipes/checkbox-group.layered.css +7 -0
  47. package/recipes/checkbox-group.layered.mjs +22 -0
  48. package/recipes/checkbox.layered.css +54 -0
  49. package/recipes/checkbox.layered.mjs +48 -0
  50. package/recipes/checkmark.css +61 -13
  51. package/recipes/checkmark.layered.css +187 -0
  52. package/recipes/checkmark.layered.mjs +86 -0
  53. package/recipes/chip-tabs.css +62 -14
  54. package/recipes/chip-tabs.layered.css +254 -0
  55. package/recipes/chip-tabs.layered.mjs +75 -0
  56. package/recipes/chip.css +60 -15
  57. package/recipes/chip.layered.css +272 -0
  58. package/recipes/chip.layered.mjs +80 -0
  59. package/recipes/contextual-floating-button.css +24 -7
  60. package/recipes/contextual-floating-button.layered.css +130 -0
  61. package/recipes/contextual-floating-button.layered.mjs +34 -0
  62. package/recipes/control-chip.layered.css +99 -0
  63. package/recipes/control-chip.layered.mjs +51 -0
  64. package/recipes/dialog.layered.css +111 -0
  65. package/recipes/dialog.layered.mjs +66 -0
  66. package/recipes/extended-action-sheet-item.layered.css +38 -0
  67. package/recipes/extended-action-sheet-item.layered.mjs +29 -0
  68. package/recipes/extended-action-sheet.layered.css +132 -0
  69. package/recipes/extended-action-sheet.layered.mjs +64 -0
  70. package/recipes/extended-fab.layered.css +79 -0
  71. package/recipes/extended-fab.layered.mjs +34 -0
  72. package/recipes/fab.layered.css +37 -0
  73. package/recipes/fab.layered.mjs +22 -0
  74. package/recipes/field-label.layered.css +35 -0
  75. package/recipes/field-label.layered.mjs +47 -0
  76. package/recipes/field.layered.css +81 -0
  77. package/recipes/field.layered.mjs +60 -0
  78. package/recipes/floating-action-button.css +15 -5
  79. package/recipes/floating-action-button.layered.css +101 -0
  80. package/recipes/floating-action-button.layered.mjs +47 -0
  81. package/recipes/help-bubble.css +8 -0
  82. package/recipes/help-bubble.layered.css +104 -0
  83. package/recipes/help-bubble.layered.mjs +60 -0
  84. package/recipes/identity-placeholder.css +2 -2
  85. package/recipes/identity-placeholder.d.ts +1 -1
  86. package/recipes/identity-placeholder.layered.css +22 -0
  87. package/recipes/identity-placeholder.layered.mjs +43 -0
  88. package/recipes/identity-placeholder.mjs +2 -1
  89. package/recipes/image-frame-icon.layered.css +8 -0
  90. package/recipes/image-frame-icon.layered.mjs +22 -0
  91. package/recipes/image-frame-indicator.layered.css +18 -0
  92. package/recipes/image-frame-indicator.layered.mjs +22 -0
  93. package/recipes/image-frame-reaction-button.css +9 -1
  94. package/recipes/image-frame-reaction-button.layered.css +43 -0
  95. package/recipes/image-frame-reaction-button.layered.mjs +22 -0
  96. package/recipes/image-frame.layered.css +28 -0
  97. package/recipes/image-frame.layered.mjs +34 -0
  98. package/recipes/inline-banner.layered.css +161 -0
  99. package/recipes/inline-banner.layered.mjs +64 -0
  100. package/recipes/input-button.css +27 -5
  101. package/recipes/input-button.layered.css +167 -0
  102. package/recipes/input-button.layered.mjs +64 -0
  103. package/recipes/link-content.layered.css +48 -0
  104. package/recipes/link-content.layered.mjs +35 -0
  105. package/recipes/list-header.layered.css +26 -0
  106. package/recipes/list-header.layered.mjs +29 -0
  107. package/recipes/list-item.css +63 -17
  108. package/recipes/list-item.layered.css +187 -0
  109. package/recipes/list-item.layered.mjs +59 -0
  110. package/recipes/manner-temp-badge.layered.css +72 -0
  111. package/recipes/manner-temp-badge.layered.mjs +37 -0
  112. package/recipes/manner-temp.layered.css +57 -0
  113. package/recipes/manner-temp.layered.mjs +37 -0
  114. package/recipes/menu-sheet-item.css +24 -3
  115. package/recipes/menu-sheet-item.layered.css +102 -0
  116. package/recipes/menu-sheet-item.layered.mjs +56 -0
  117. package/recipes/menu-sheet.css +18 -3
  118. package/recipes/menu-sheet.layered.css +167 -0
  119. package/recipes/menu-sheet.layered.mjs +74 -0
  120. package/recipes/notification-badge-positioner.layered.css +35 -0
  121. package/recipes/notification-badge-positioner.layered.mjs +51 -0
  122. package/recipes/notification-badge.layered.css +33 -0
  123. package/recipes/notification-badge.layered.mjs +29 -0
  124. package/recipes/page-banner.css +122 -22
  125. package/recipes/page-banner.layered.css +361 -0
  126. package/recipes/page-banner.layered.mjs +117 -0
  127. package/recipes/progress-circle.layered.css +52 -0
  128. package/recipes/progress-circle.layered.mjs +55 -0
  129. package/recipes/pull-to-refresh.layered.css +19 -0
  130. package/recipes/pull-to-refresh.layered.mjs +36 -0
  131. package/recipes/radio-group.layered.css +7 -0
  132. package/recipes/radio-group.layered.mjs +22 -0
  133. package/recipes/radio.layered.css +54 -0
  134. package/recipes/radio.layered.mjs +48 -0
  135. package/recipes/radiomark.css +34 -7
  136. package/recipes/radiomark.layered.css +132 -0
  137. package/recipes/radiomark.layered.mjs +48 -0
  138. package/recipes/reaction-button.css +24 -7
  139. package/recipes/reaction-button.layered.css +124 -0
  140. package/recipes/reaction-button.layered.mjs +29 -0
  141. package/recipes/scroll-fog.layered.css +27 -0
  142. package/recipes/scroll-fog.layered.mjs +28 -0
  143. package/recipes/segmented-control.css +31 -5
  144. package/recipes/segmented-control.layered.css +108 -0
  145. package/recipes/segmented-control.layered.mjs +40 -0
  146. package/recipes/select-box-group.layered.css +13 -0
  147. package/recipes/select-box-group.layered.mjs +22 -0
  148. package/recipes/select-box.css +19 -3
  149. package/recipes/select-box.layered.css +148 -0
  150. package/recipes/select-box.layered.mjs +63 -0
  151. package/recipes/selectBoxCheckmark.css +9 -2
  152. package/recipes/selectBoxCheckmark.layered.css +42 -0
  153. package/recipes/selectBoxCheckmark.layered.mjs +36 -0
  154. package/recipes/skeleton.layered.css +56 -0
  155. package/recipes/skeleton.layered.mjs +36 -0
  156. package/recipes/slider-marker.layered.css +54 -0
  157. package/recipes/slider-marker.layered.mjs +30 -0
  158. package/recipes/slider-tick.layered.css +25 -0
  159. package/recipes/slider-tick.layered.mjs +29 -0
  160. package/recipes/slider.css +41 -16
  161. package/recipes/slider.layered.css +238 -0
  162. package/recipes/slider.layered.mjs +68 -0
  163. package/recipes/snackbar-region.layered.css +18 -0
  164. package/recipes/snackbar-region.layered.mjs +22 -0
  165. package/recipes/snackbar.css +20 -1
  166. package/recipes/snackbar.layered.css +126 -0
  167. package/recipes/snackbar.layered.mjs +56 -0
  168. package/recipes/switch.layered.css +62 -0
  169. package/recipes/switch.layered.mjs +44 -0
  170. package/recipes/switchmark.css +9 -1
  171. package/recipes/switchmark.layered.css +100 -0
  172. package/recipes/switchmark.layered.mjs +49 -0
  173. package/recipes/tabs.css +9 -0
  174. package/recipes/tabs.layered.css +211 -0
  175. package/recipes/tabs.layered.mjs +78 -0
  176. package/recipes/tag-group-item.layered.css +98 -0
  177. package/recipes/tag-group-item.layered.mjs +55 -0
  178. package/recipes/tag-group.layered.css +58 -0
  179. package/recipes/tag-group.layered.mjs +62 -0
  180. package/recipes/text-input.css +1 -0
  181. package/recipes/text-input.layered.css +236 -0
  182. package/recipes/text-input.layered.mjs +73 -0
  183. package/recipes/text.layered.css +364 -0
  184. package/recipes/text.layered.mjs +90 -0
  185. package/recipes/toggle-button.css +42 -11
  186. package/recipes/toggle-button.layered.css +183 -0
  187. package/recipes/toggle-button.layered.mjs +34 -0
  188. package/vars/color/stroke.d.ts +2 -1
  189. package/vars/color/stroke.mjs +2 -1
  190. package/vars/component/action-button.d.ts +61 -61
  191. package/vars/component/bottom-sheet.d.ts +3 -3
  192. package/vars/component/bottom-sheet.mjs +3 -3
  193. package/vars/component/callout.d.ts +7 -7
  194. package/vars/component/chip-tab.d.ts +2 -1
  195. package/vars/component/chip-tab.mjs +2 -1
  196. package/vars/component/contextual-floating-button.d.ts +2 -2
  197. package/vars/component/identity-placeholder.d.ts +2 -2
  198. package/vars/component/identity-placeholder.mjs +2 -2
  199. package/vars/component/image-frame-floater.d.ts +1 -1
  200. package/vars/component/image-frame.d.ts +11 -17
  201. package/vars/component/image-frame.mjs +7 -12
  202. package/vars/component/index.d.ts +1 -0
  203. package/vars/component/index.mjs +1 -0
  204. package/vars/component/input-button.d.ts +1 -1
  205. package/vars/component/list-item.d.ts +1 -1
  206. package/vars/component/list-item.mjs +1 -1
  207. package/vars/component/segmented-control-indicator.d.ts +24 -0
  208. package/vars/component/segmented-control-indicator.mjs +24 -0
  209. package/vars/component/segmented-control-item.d.ts +3 -11
  210. package/vars/component/segmented-control-item.mjs +3 -11
  211. package/vars/component/segmented-control.d.ts +0 -8
  212. package/vars/component/segmented-control.mjs +0 -8
  213. package/vars/component/select-box.d.ts +1 -1
  214. package/vars/component/slider.d.ts +14 -10
  215. package/vars/component/slider.mjs +11 -10
  216. package/vars/component/text-input.d.ts +1 -1
@@ -0,0 +1,238 @@
1
+ @layer seed-components {
2
+ .seed-slider__root {
3
+ align-items: stretch;
4
+ gap: var(--seed-dimension-x0_5);
5
+ user-select: none;
6
+ touch-action: none;
7
+ flex-direction: column;
8
+ width: 100%;
9
+ display: flex;
10
+ }
11
+
12
+ .seed-slider__root[data-dragging] {
13
+ cursor: grabbing;
14
+ }
15
+
16
+ .seed-slider__root:is(:disabled, [disabled], [data-disabled]) {
17
+ cursor: not-allowed;
18
+ }
19
+
20
+ .seed-slider__control {
21
+ align-items: center;
22
+ height: 26px;
23
+ display: flex;
24
+ position: relative;
25
+ }
26
+
27
+ .seed-slider__track {
28
+ background-color: var(--seed-color-palette-gray-400);
29
+ height: var(--seed-dimension-x1);
30
+ border-radius: var(--seed-radius-full);
31
+ flex-grow: 1;
32
+ position: relative;
33
+ overflow: hidden;
34
+ }
35
+
36
+ .seed-slider__range {
37
+ background-color: var(--seed-color-fg-neutral);
38
+ height: 100%;
39
+ transition: left var(--seed-duration-d3) var(--seed-timing-function-easing), right var(--seed-duration-d3) var(--seed-timing-function-easing);
40
+ will-change: left, right;
41
+ position: absolute;
42
+ }
43
+
44
+ .seed-slider__range[data-dir="ltr"] {
45
+ left: var(--range-start);
46
+ right: var(--range-end);
47
+ }
48
+
49
+ .seed-slider__range[data-dir="rtl"] {
50
+ right: var(--range-start);
51
+ left: var(--range-end);
52
+ }
53
+
54
+ .seed-slider__range:is(:disabled, [disabled], [data-disabled]) {
55
+ background-color: var(--seed-color-fg-disabled);
56
+ }
57
+
58
+ .seed-slider__range[data-dragging] {
59
+ transition: none;
60
+ }
61
+
62
+ .seed-slider__thumb {
63
+ width: var(--seed-dimension-x5);
64
+ height: var(--seed-dimension-x5);
65
+ transition: left var(--seed-duration-d3) var(--seed-timing-function-easing), right var(--seed-duration-d3) var(--seed-timing-function-easing), opacity var(--seed-duration-d2) var(--seed-timing-function-easing);
66
+ will-change: left, right, opacity;
67
+ position: absolute;
68
+ top: 50%;
69
+ transform: translate(-50%, -50%);
70
+ }
71
+
72
+ .seed-slider__thumb[data-ssr] {
73
+ opacity: 0;
74
+ }
75
+
76
+ .seed-slider__thumb[data-dir="ltr"] {
77
+ left: calc(var(--thumb-position) * 1% + var(--thumb-offset));
78
+ }
79
+
80
+ .seed-slider__thumb[data-dir="rtl"] {
81
+ right: calc(var(--thumb-position) * 1% + var(--thumb-offset));
82
+ }
83
+
84
+ .seed-slider__thumb:after {
85
+ content: "";
86
+ background-color: var(--seed-color-bg-neutral-inverted);
87
+ border-radius: var(--seed-radius-full);
88
+ outline: var(--seed-dimension-x0_5) solid transparent;
89
+ outline-offset: var(--seed-dimension-x0_5);
90
+ transition: transform var(--seed-duration-d3) var(--seed-timing-function-easing), outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
91
+ will-change: transform;
92
+ cursor: grab;
93
+ position: absolute;
94
+ inset: 0;
95
+ }
96
+
97
+ .seed-slider__thumb:is(:disabled, [disabled], [data-disabled]):after {
98
+ background-color: var(--seed-color-fg-disabled);
99
+ cursor: not-allowed;
100
+ }
101
+
102
+ .seed-slider__thumb[data-dragging] {
103
+ transition: none;
104
+ }
105
+
106
+ .seed-slider__thumb[data-thumb-dragging]:after {
107
+ transform: scale(1.2);
108
+ }
109
+
110
+ .seed-slider__thumb:is(:focus, [data-focus]) {
111
+ outline: none;
112
+ }
113
+
114
+ .seed-slider__thumb:is(:focus-visible, [data-focus-visible]):after {
115
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
116
+ outline-offset: var(--seed-dimension-x0_5);
117
+ }
118
+
119
+ .seed-slider__markers {
120
+ height: var(--seed-line-height-t3);
121
+ position: relative;
122
+ }
123
+
124
+ .seed-slider__valueIndicatorRoot {
125
+ box-sizing: border-box;
126
+ transition: left var(--seed-duration-d3) var(--seed-timing-function-easing), right var(--seed-duration-d3) var(--seed-timing-function-easing);
127
+ will-change: left, right;
128
+ background: var(--seed-color-bg-neutral-inverted);
129
+ padding-left: var(--seed-dimension-x2);
130
+ padding-right: var(--seed-dimension-x2);
131
+ padding-top: var(--seed-dimension-x1);
132
+ padding-bottom: var(--seed-dimension-x1);
133
+ border-radius: var(--seed-radius-r1_5);
134
+ color: var(--seed-color-fg-neutral-inverted);
135
+ font-size: var(--seed-font-size-t3);
136
+ line-height: var(--seed-line-height-t3);
137
+ font-weight: var(--seed-font-weight-medium);
138
+ white-space: pre-wrap;
139
+ text-align: center;
140
+ width: max-content;
141
+ min-width: calc(var(--seed-dimension-x2) * 2 + var(--seed-dimension-x2));
142
+ flex-direction: column;
143
+ align-items: center;
144
+ display: flex;
145
+ position: absolute;
146
+ top: 50%;
147
+ }
148
+
149
+ .seed-slider__valueIndicatorRoot[data-dir="ltr"] {
150
+ left: calc(var(--indicator-label-position) * 1% + var(--indicator-label-offset));
151
+ transform: translate(-50%, calc(-100% - var(--seed-dimension-x5) / 2 - var(--seed-dimension-x3)));
152
+ }
153
+
154
+ .seed-slider__valueIndicatorRoot[data-dir="rtl"] {
155
+ right: calc(var(--indicator-label-position) * 1% + var(--indicator-label-offset));
156
+ transform: translate(50%, calc(-100% - var(--seed-dimension-x5) / 2 - var(--seed-dimension-x3)));
157
+ }
158
+
159
+ .seed-slider__valueIndicatorRoot[data-value-indicator-shown][data-dir="ltr"] {
160
+ animation: seed-enter;
161
+ animation-timing-function: var(--seed-timing-function-enter);
162
+ animation-duration: var(--seed-duration-d4);
163
+ --seed-enter-translate-x: -50%;
164
+ --seed-enter-translate-y: calc(-100% - var(--seed-dimension-x5) / 2 - .3125rem);
165
+ --seed-enter-opacity: 0;
166
+ --seed-enter-scale: .9;
167
+ }
168
+
169
+ .seed-slider__valueIndicatorRoot[data-value-indicator-shown][data-dir="rtl"] {
170
+ animation: seed-enter;
171
+ animation-timing-function: var(--seed-timing-function-enter);
172
+ animation-duration: var(--seed-duration-d4);
173
+ --seed-enter-translate-x: 50%;
174
+ --seed-enter-translate-y: calc(-100% - var(--seed-dimension-x5) / 2 - .3125rem);
175
+ --seed-enter-opacity: 0;
176
+ --seed-enter-scale: .9;
177
+ }
178
+
179
+ .seed-slider__valueIndicatorRoot:not([data-value-indicator-shown])[data-dir="ltr"] {
180
+ animation: seed-exit;
181
+ animation-timing-function: var(--seed-timing-function-easing);
182
+ animation-duration: var(--seed-duration-d4);
183
+ --seed-exit-translate-x: -50%;
184
+ --seed-exit-translate-y: calc(-100% - var(--seed-dimension-x5) / 2 - .3125rem);
185
+ --seed-exit-opacity: 0;
186
+ --seed-exit-scale: 1;
187
+ animation-fill-mode: forwards;
188
+ }
189
+
190
+ .seed-slider__valueIndicatorRoot:not([data-value-indicator-shown])[data-dir="rtl"] {
191
+ animation: seed-exit;
192
+ animation-timing-function: var(--seed-timing-function-easing);
193
+ animation-duration: var(--seed-duration-d4);
194
+ --seed-exit-translate-x: 50%;
195
+ --seed-exit-translate-y: calc(-100% - var(--seed-dimension-x5) / 2 - .3125rem);
196
+ --seed-exit-opacity: 0;
197
+ --seed-exit-scale: 1;
198
+ animation-fill-mode: forwards;
199
+ }
200
+
201
+ .seed-slider__valueIndicatorRoot[data-dragging] {
202
+ transition: none;
203
+ }
204
+
205
+ .seed-slider__valueIndicatorRoot:not([data-value-indicator-shown]):not([data-indicator-ever-shown]) {
206
+ animation-duration: 0s;
207
+ }
208
+
209
+ .seed-slider__valueIndicatorArrow {
210
+ width: var(--seed-dimension-x2);
211
+ height: var(--seed-dimension-x2);
212
+ transition: left var(--seed-duration-d3) var(--seed-timing-function-easing), right var(--seed-duration-d3) var(--seed-timing-function-easing);
213
+ will-change: left, right;
214
+ position: absolute;
215
+ top: 100%;
216
+ }
217
+
218
+ .seed-slider__valueIndicatorArrow[data-dir="ltr"] {
219
+ left: calc(50% + (var(--thumb-offset) - var(--indicator-label-offset)));
220
+ transform: translateX(-50%);
221
+ }
222
+
223
+ .seed-slider__valueIndicatorArrow[data-dir="rtl"] {
224
+ right: calc(50% + (var(--thumb-offset) - var(--indicator-label-offset)));
225
+ transform: translateX(50%);
226
+ }
227
+
228
+ .seed-slider__valueIndicatorArrow[data-dragging] {
229
+ transition: none;
230
+ }
231
+
232
+ .seed-slider__valueIndicatorArrowTip {
233
+ fill: var(--seed-color-bg-neutral-inverted);
234
+ width: var(--seed-dimension-x2);
235
+ height: var(--seed-dimension-x1_5);
236
+ display: block;
237
+ }
238
+ }
@@ -0,0 +1,68 @@
1
+ import './slider.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const sliderSlotNames = [
5
+ [
6
+ "root",
7
+ "seed-slider__root"
8
+ ],
9
+ [
10
+ "track",
11
+ "seed-slider__track"
12
+ ],
13
+ [
14
+ "control",
15
+ "seed-slider__control"
16
+ ],
17
+ [
18
+ "range",
19
+ "seed-slider__range"
20
+ ],
21
+ [
22
+ "thumb",
23
+ "seed-slider__thumb"
24
+ ],
25
+ [
26
+ "tick",
27
+ "seed-slider__tick"
28
+ ],
29
+ [
30
+ "markers",
31
+ "seed-slider__markers"
32
+ ],
33
+ [
34
+ "valueIndicatorRoot",
35
+ "seed-slider__valueIndicatorRoot"
36
+ ],
37
+ [
38
+ "valueIndicatorArrow",
39
+ "seed-slider__valueIndicatorArrow"
40
+ ],
41
+ [
42
+ "valueIndicatorArrowTip",
43
+ "seed-slider__valueIndicatorArrowTip"
44
+ ]
45
+ ];
46
+
47
+ const defaultVariant = {};
48
+
49
+ const compoundVariants = [];
50
+
51
+ export const sliderVariantMap = {};
52
+
53
+ export const sliderVariantKeys = Object.keys(sliderVariantMap);
54
+
55
+ export function slider(props) {
56
+ return Object.fromEntries(
57
+ sliderSlotNames.map(([slot, className]) => {
58
+ return [
59
+ slot,
60
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
61
+ ];
62
+ }),
63
+ );
64
+ }
65
+
66
+ Object.assign(slider, { splitVariantProps: (props) => splitVariantProps(props, sliderVariantMap) });
67
+
68
+ // @recipe(seed): slider
@@ -0,0 +1,18 @@
1
+ @layer seed-components {
2
+ .seed-snackbar-region {
3
+ z-index: 2147483647;
4
+ left: calc(env(safe-area-inset-left, 0px));
5
+ right: calc(env(safe-area-inset-right, 0px));
6
+ bottom: calc(env(safe-area-inset-bottom, 0px) + var(--snackbar-region-offset, 0px));
7
+ padding-left: var(--seed-dimension-x2);
8
+ padding-right: var(--seed-dimension-x2);
9
+ padding-top: var(--seed-dimension-x2);
10
+ padding-bottom: var(--seed-dimension-x2);
11
+ transition-property: bottom;
12
+ transition-duration: var(--seed-duration-d4);
13
+ transition-timing-function: var(--seed-timing-function-easing);
14
+ flex-direction: column;
15
+ align-items: center;
16
+ display: flex;
17
+ }
18
+ }
@@ -0,0 +1,22 @@
1
+ import './snackbar-region.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const defaultVariant = {};
5
+
6
+ const compoundVariants = [];
7
+
8
+ export const snackbarRegionVariantMap = {};
9
+
10
+ export const snackbarRegionVariantKeys = Object.keys(snackbarRegionVariantMap);
11
+
12
+ export function snackbarRegion(props) {
13
+ return createClassName(
14
+ "seed-snackbar-region",
15
+ mergeVariants(defaultVariant, props),
16
+ compoundVariants,
17
+ );
18
+ }
19
+
20
+ Object.assign(snackbarRegion, { splitVariantProps: (props) => splitVariantProps(props, snackbarRegionVariantMap) });
21
+
22
+ // @recipe(seed): snackbar-region
@@ -29,6 +29,15 @@
29
29
  --seed-exit-opacity: 0;
30
30
  --seed-exit-scale: 0.8;
31
31
  }
32
+ .seed-snackbar__root {
33
+ transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
34
+ outline: var(--seed-dimension-x0_5) solid transparent;
35
+ outline-offset: var(--seed-dimension-x0_5);
36
+ }
37
+ .seed-snackbar__root:is(:focus-visible, [data-focus-visible]) {
38
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
39
+ outline-offset: var(--seed-dimension-x0_5);
40
+ }
32
41
  .seed-snackbar__content {
33
42
  display: flex;
34
43
  flex-grow: 1;
@@ -64,7 +73,6 @@
64
73
  -moz-osx-font-smoothing: grayscale;
65
74
  background-color: unset;
66
75
  text-decoration: none;
67
- outline: none;
68
76
  flex-shrink: 0;
69
77
  color: var(--seed-color-fg-brand);
70
78
  font-size: var(--seed-font-size-t4);
@@ -80,6 +88,17 @@
80
88
  right: calc(-1 * var(--seed-dimension-x2));
81
89
  min-height: 44px;
82
90
  background: transparent;
91
+ outline: var(--seed-dimension-x0_5) solid transparent;
92
+ outline-offset: calc(var(--seed-dimension-x0_5) * -1);
93
+ transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
94
+ }
95
+ .seed-snackbar__actionButton:is(:focus, [data-focus]) {
96
+ outline: none;
97
+ }
98
+ .seed-snackbar__actionButton:is(:focus-visible, [data-focus-visible]):after {
99
+ border-radius: var(--seed-radius-r1);
100
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
101
+ outline-offset: calc(var(--seed-dimension-x0_5) * -1);
83
102
  }
84
103
  .seed-snackbar__prefixIcon--variant_default {
85
104
  display: none;
@@ -0,0 +1,126 @@
1
+ @layer seed-components {
2
+ .seed-snackbar__root {
3
+ box-sizing: border-box;
4
+ background: var(--seed-color-bg-neutral-inverted);
5
+ border-radius: var(--seed-radius-r2);
6
+ width: 100%;
7
+ max-width: 560px;
8
+ padding-left: var(--seed-dimension-x2_5);
9
+ padding-right: var(--seed-dimension-x2_5);
10
+ padding-top: var(--seed-dimension-x2_5);
11
+ padding-bottom: var(--seed-dimension-x2_5);
12
+ min-height: 44px;
13
+ animation: seed-enter;
14
+ animation-timing-function: var(--seed-timing-function-enter);
15
+ animation-duration: var(--seed-duration-d3);
16
+ --seed-enter-translate-x: 0;
17
+ --seed-enter-translate-y: 0;
18
+ --seed-enter-opacity: 0;
19
+ --seed-enter-scale: .8;
20
+ align-items: center;
21
+ display: flex;
22
+ }
23
+
24
+ .seed-snackbar__root:not([data-open]) {
25
+ animation: seed-exit;
26
+ animation-timing-function: var(--seed-timing-function-exit);
27
+ animation-duration: var(--seed-duration-d2);
28
+ --seed-exit-translate-x: 0;
29
+ --seed-exit-translate-y: 0;
30
+ --seed-exit-opacity: 0;
31
+ --seed-exit-scale: .8;
32
+ animation-fill-mode: forwards;
33
+ }
34
+
35
+ .seed-snackbar__root {
36
+ transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
37
+ outline: var(--seed-dimension-x0_5) solid transparent;
38
+ outline-offset: var(--seed-dimension-x0_5);
39
+ }
40
+
41
+ .seed-snackbar__root:is(:focus-visible, [data-focus-visible]) {
42
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
43
+ outline-offset: var(--seed-dimension-x0_5);
44
+ }
45
+
46
+ .seed-snackbar__content {
47
+ padding-left: var(--seed-dimension-x1_5);
48
+ padding-right: var(--seed-dimension-x1_5);
49
+ justify-content: space-between;
50
+ align-items: center;
51
+ gap: var(--seed-dimension-x2_5);
52
+ flex-grow: 1;
53
+ display: flex;
54
+ }
55
+
56
+ .seed-snackbar__message {
57
+ color: var(--seed-color-fg-neutral-inverted);
58
+ font-size: var(--seed-font-size-t4);
59
+ line-height: var(--seed-line-height-t4);
60
+ font-weight: var(--seed-font-weight-regular);
61
+ margin: 0;
62
+ }
63
+
64
+ .seed-snackbar__prefixIcon {
65
+ width: 24px;
66
+ height: 24px;
67
+ padding-right: var(--seed-dimension-x0_5);
68
+ flex-shrink: 0;
69
+ }
70
+
71
+ .seed-snackbar__actionButton {
72
+ box-sizing: border-box;
73
+ cursor: pointer;
74
+ text-transform: none;
75
+ -webkit-font-smoothing: antialiased;
76
+ -moz-osx-font-smoothing: grayscale;
77
+ background-color: unset;
78
+ color: var(--seed-color-fg-brand);
79
+ font-size: var(--seed-font-size-t4);
80
+ line-height: var(--seed-line-height-t4);
81
+ font-weight: var(--seed-font-weight-bold);
82
+ border: none;
83
+ flex-shrink: 0;
84
+ justify-content: center;
85
+ align-items: center;
86
+ text-decoration: none;
87
+ display: inline-flex;
88
+ position: relative;
89
+ }
90
+
91
+ .seed-snackbar__actionButton:after {
92
+ content: "";
93
+ top: 50%;
94
+ left: calc(-1 * var(--seed-dimension-x2));
95
+ right: calc(-1 * var(--seed-dimension-x2));
96
+ outline: var(--seed-dimension-x0_5) solid transparent;
97
+ outline-offset: calc(var(--seed-dimension-x0_5) * -1);
98
+ min-height: 44px;
99
+ transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
100
+ background: none;
101
+ position: absolute;
102
+ transform: translateY(-50%);
103
+ }
104
+
105
+ .seed-snackbar__actionButton:is(:focus, [data-focus]) {
106
+ outline: none;
107
+ }
108
+
109
+ .seed-snackbar__actionButton:is(:focus-visible, [data-focus-visible]):after {
110
+ border-radius: var(--seed-radius-r1);
111
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
112
+ outline-offset: calc(var(--seed-dimension-x0_5) * -1);
113
+ }
114
+
115
+ .seed-snackbar__prefixIcon--variant_default {
116
+ display: none;
117
+ }
118
+
119
+ .seed-snackbar__prefixIcon--variant_positive {
120
+ color: var(--seed-color-fg-positive);
121
+ }
122
+
123
+ .seed-snackbar__prefixIcon--variant_critical {
124
+ color: var(--seed-color-fg-critical);
125
+ }
126
+ }
@@ -0,0 +1,56 @@
1
+ import './snackbar.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const snackbarSlotNames = [
5
+ [
6
+ "root",
7
+ "seed-snackbar__root"
8
+ ],
9
+ [
10
+ "message",
11
+ "seed-snackbar__message"
12
+ ],
13
+ [
14
+ "prefixIcon",
15
+ "seed-snackbar__prefixIcon"
16
+ ],
17
+ [
18
+ "actionButton",
19
+ "seed-snackbar__actionButton"
20
+ ],
21
+ [
22
+ "content",
23
+ "seed-snackbar__content"
24
+ ]
25
+ ];
26
+
27
+ const defaultVariant = {
28
+ "variant": "default"
29
+ };
30
+
31
+ const compoundVariants = [];
32
+
33
+ export const snackbarVariantMap = {
34
+ "variant": [
35
+ "default",
36
+ "positive",
37
+ "critical"
38
+ ]
39
+ };
40
+
41
+ export const snackbarVariantKeys = Object.keys(snackbarVariantMap);
42
+
43
+ export function snackbar(props) {
44
+ return Object.fromEntries(
45
+ snackbarSlotNames.map(([slot, className]) => {
46
+ return [
47
+ slot,
48
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
49
+ ];
50
+ }),
51
+ );
52
+ }
53
+
54
+ Object.assign(snackbar, { splitVariantProps: (props) => splitVariantProps(props, snackbarVariantMap) });
55
+
56
+ // @recipe(seed): snackbar
@@ -0,0 +1,62 @@
1
+ @layer seed-components {
2
+ .seed-switch__root {
3
+ box-sizing: border-box;
4
+ vertical-align: top;
5
+ isolation: isolate;
6
+ cursor: pointer;
7
+ justify-content: space-between;
8
+ align-items: flex-start;
9
+ display: inline-flex;
10
+ position: relative;
11
+ }
12
+
13
+ .seed-switch__root:is(:disabled, [disabled], [data-disabled]) {
14
+ cursor: not-allowed;
15
+ }
16
+
17
+ .seed-switch__label {
18
+ font-weight: var(--seed-font-weight-medium);
19
+ color: var(--seed-color-fg-neutral);
20
+ transition: opacity var(--seed-duration-d1) var(--seed-timing-function-easing);
21
+ }
22
+
23
+ .seed-switch__label:is(:disabled, [disabled], [data-disabled]) {
24
+ opacity: .58;
25
+ }
26
+
27
+ .seed-switch__root--size_16 {
28
+ min-height: var(--seed-dimension-x6);
29
+ gap: var(--seed-dimension-x1_5);
30
+ --switchmark-margin-top: calc((var(--seed-dimension-x6) - 16px) / 2);
31
+ }
32
+
33
+ .seed-switch__label--size_16 {
34
+ font-size: var(--seed-font-size-t3);
35
+ line-height: var(--seed-line-height-t3);
36
+ margin-top: calc(var(--seed-dimension-x6) / 2 - var(--seed-line-height-t3) / 2);
37
+ }
38
+
39
+ .seed-switch__root--size_24 {
40
+ min-height: var(--seed-dimension-x6);
41
+ gap: var(--seed-dimension-x2);
42
+ --switchmark-margin-top: calc((var(--seed-dimension-x6) - 24px) / 2);
43
+ }
44
+
45
+ .seed-switch__label--size_24 {
46
+ font-size: var(--seed-font-size-t4);
47
+ line-height: var(--seed-line-height-t4);
48
+ margin-top: calc(var(--seed-dimension-x6) / 2 - var(--seed-line-height-t4) / 2);
49
+ }
50
+
51
+ .seed-switch__root--size_32 {
52
+ min-height: var(--seed-dimension-x8);
53
+ gap: var(--seed-dimension-x2_5);
54
+ --switchmark-margin-top: calc((var(--seed-dimension-x8) - 32px) / 2);
55
+ }
56
+
57
+ .seed-switch__label--size_32 {
58
+ font-size: var(--seed-font-size-t5);
59
+ line-height: var(--seed-line-height-t5);
60
+ margin-top: calc(var(--seed-dimension-x8) / 2 - var(--seed-line-height-t5) / 2);
61
+ }
62
+ }
@@ -0,0 +1,44 @@
1
+ import './switch.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const switchSlotNames = [
5
+ [
6
+ "root",
7
+ "seed-switch__root"
8
+ ],
9
+ [
10
+ "label",
11
+ "seed-switch__label"
12
+ ]
13
+ ];
14
+
15
+ const defaultVariant = {
16
+ "size": 32
17
+ };
18
+
19
+ const compoundVariants = [];
20
+
21
+ export const switchVariantMap = {
22
+ "size": [
23
+ "16",
24
+ "24",
25
+ "32"
26
+ ]
27
+ };
28
+
29
+ export const switchVariantKeys = Object.keys(switchVariantMap);
30
+
31
+ export function switchStyle(props) {
32
+ return Object.fromEntries(
33
+ switchSlotNames.map(([slot, className]) => {
34
+ return [
35
+ slot,
36
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
37
+ ];
38
+ }),
39
+ );
40
+ }
41
+
42
+ Object.assign(switchStyle, { splitVariantProps: (props) => splitVariantProps(props, switchVariantMap) });
43
+
44
+ // @recipe(seed): switch
@@ -5,11 +5,19 @@
5
5
  border-radius: var(--seed-radius-full);
6
6
  background: var(--seed-color-palette-gray-600);
7
7
  margin: var(--switchmark-margin-top, 0) 0;
8
- transition: background-color var(--seed-duration-d1) var(--seed-timing-function-easing) 20ms, opacity var(--seed-duration-d1) var(--seed-timing-function-easing);
8
+ transition: background-color var(--seed-duration-d1) var(--seed-timing-function-easing) 20ms, opacity var(--seed-duration-d1) var(--seed-timing-function-easing), outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
9
9
  }
10
10
  .seed-switchmark__root:is(:disabled, [disabled], [data-disabled]) {
11
11
  opacity: 0.38;
12
12
  }
13
+ .seed-switchmark__root {
14
+ outline: var(--seed-focus-ring, var(--seed-dimension-x0_5) solid transparent);
15
+ outline-offset: var(--seed-dimension-x0_5);
16
+ }
17
+ .seed-switchmark__root:is(:focus-visible, [data-focus-visible]) {
18
+ outline: var(--seed-focus-ring, var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring));
19
+ outline-offset: var(--seed-dimension-x0_5);
20
+ }
13
21
  .seed-switchmark__thumb {
14
22
  border-radius: var(--seed-radius-full);
15
23
  transition: transform var(--seed-duration-d3) var(--seed-timing-function-easing), background-color var(--seed-duration-d1) var(--seed-timing-function-easing) 20ms;