@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
@@ -22,6 +22,13 @@
22
22
  }
23
23
  .seed-callout__root:is(button, a) {
24
24
  cursor: pointer;
25
+ transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
26
+ outline: var(--seed-dimension-x0_5) solid transparent;
27
+ outline-offset: var(--seed-dimension-x0_5);
28
+ }
29
+ .seed-callout__root:is(button, a):is(:focus-visible, [data-focus-visible]) {
30
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
31
+ outline-offset: var(--seed-dimension-x0_5);
25
32
  }
26
33
  .seed-callout__content {
27
34
  margin-right: auto;
@@ -57,6 +64,14 @@
57
64
  font-weight: var(--seed-font-weight-regular);
58
65
  text-decoration: underline;
59
66
  text-underline-offset: 2px;
67
+ transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
68
+ border-radius: var(--seed-radius-r1);
69
+ outline: var(--seed-dimension-x0_5) solid transparent;
70
+ outline-offset: var(--seed-dimension-x0_5);
71
+ }
72
+ .seed-callout__link:is(:focus-visible, [data-focus-visible]) {
73
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
74
+ outline-offset: var(--seed-dimension-x0_5);
60
75
  }
61
76
  .seed-callout__closeButton {
62
77
  border: none;
@@ -71,14 +86,29 @@
71
86
  width: var(--seed-dimension-x10);
72
87
  height: var(--seed-dimension-x10);
73
88
  margin: calc((var(--seed-dimension-x10) - var(--seed-dimension-x4)) * -0.5);
89
+ border-radius: var(--seed-radius-r2_5);
90
+ transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
91
+ outline: var(--seed-dimension-x0_5) solid transparent;
92
+ outline-offset: var(--seed-dimension-x0_5);
93
+ }
94
+ .seed-callout__closeButton:is(:focus-visible, [data-focus-visible]) {
95
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
96
+ outline-offset: var(--seed-dimension-x0_5);
74
97
  }
75
98
  .seed-callout__root--tone_neutral {
76
99
  background-color: var(--seed-color-bg-neutral-weak);
77
100
  --seed-prefix-icon-color: var(--seed-color-fg-neutral);
78
101
  --seed-suffix-icon-color: var(--seed-color-fg-neutral);
79
102
  }
80
- .seed-callout__root--tone_neutral:is(button, a):is(:active, [data-active]) {
81
- background-color: var(--seed-color-bg-neutral-weak-pressed);
103
+ @media (hover: hover) {
104
+ .seed-callout__root--tone_neutral:is(button, a):is(:hover, [data-hover]) {
105
+ background-color: var(--seed-color-bg-neutral-weak-pressed);
106
+ }
107
+ }
108
+ @media (hover: none) {
109
+ .seed-callout__root--tone_neutral:is(button, a):is(:active, [data-active]) {
110
+ background-color: var(--seed-color-bg-neutral-weak-pressed);
111
+ }
82
112
  }
83
113
  .seed-callout__title--tone_neutral {
84
114
  color: var(--seed-color-fg-neutral);
@@ -94,8 +124,15 @@
94
124
  --seed-prefix-icon-color: var(--seed-color-fg-informative-contrast);
95
125
  --seed-suffix-icon-color: var(--seed-color-fg-informative-contrast);
96
126
  }
97
- .seed-callout__root--tone_informative:is(button, a):is(:active, [data-active]) {
98
- background-color: var(--seed-color-bg-informative-weak-pressed);
127
+ @media (hover: hover) {
128
+ .seed-callout__root--tone_informative:is(button, a):is(:hover, [data-hover]) {
129
+ background-color: var(--seed-color-bg-informative-weak-pressed);
130
+ }
131
+ }
132
+ @media (hover: none) {
133
+ .seed-callout__root--tone_informative:is(button, a):is(:active, [data-active]) {
134
+ background-color: var(--seed-color-bg-informative-weak-pressed);
135
+ }
99
136
  }
100
137
  .seed-callout__title--tone_informative {
101
138
  color: var(--seed-color-fg-informative-contrast);
@@ -111,8 +148,15 @@
111
148
  --seed-prefix-icon-color: var(--seed-color-fg-positive-contrast);
112
149
  --seed-suffix-icon-color: var(--seed-color-fg-positive-contrast);
113
150
  }
114
- .seed-callout__root--tone_positive:is(button, a):is(:active, [data-active]) {
115
- background-color: var(--seed-color-bg-positive-weak-pressed);
151
+ @media (hover: hover) {
152
+ .seed-callout__root--tone_positive:is(button, a):is(:hover, [data-hover]) {
153
+ background-color: var(--seed-color-bg-positive-weak-pressed);
154
+ }
155
+ }
156
+ @media (hover: none) {
157
+ .seed-callout__root--tone_positive:is(button, a):is(:active, [data-active]) {
158
+ background-color: var(--seed-color-bg-positive-weak-pressed);
159
+ }
116
160
  }
117
161
  .seed-callout__title--tone_positive {
118
162
  color: var(--seed-color-fg-positive-contrast);
@@ -128,8 +172,15 @@
128
172
  --seed-prefix-icon-color: var(--seed-color-fg-warning-contrast);
129
173
  --seed-suffix-icon-color: var(--seed-color-fg-warning-contrast);
130
174
  }
131
- .seed-callout__root--tone_warning:is(button, a):is(:active, [data-active]) {
132
- background-color: var(--seed-color-bg-warning-weak-pressed);
175
+ @media (hover: hover) {
176
+ .seed-callout__root--tone_warning:is(button, a):is(:hover, [data-hover]) {
177
+ background-color: var(--seed-color-bg-warning-weak-pressed);
178
+ }
179
+ }
180
+ @media (hover: none) {
181
+ .seed-callout__root--tone_warning:is(button, a):is(:active, [data-active]) {
182
+ background-color: var(--seed-color-bg-warning-weak-pressed);
183
+ }
133
184
  }
134
185
  .seed-callout__title--tone_warning {
135
186
  color: var(--seed-color-fg-warning-contrast);
@@ -145,8 +196,15 @@
145
196
  --seed-prefix-icon-color: var(--seed-color-fg-critical-contrast);
146
197
  --seed-suffix-icon-color: var(--seed-color-fg-critical-contrast);
147
198
  }
148
- .seed-callout__root--tone_critical:is(button, a):is(:active, [data-active]) {
149
- background-color: var(--seed-color-bg-critical-weak-pressed);
199
+ @media (hover: hover) {
200
+ .seed-callout__root--tone_critical:is(button, a):is(:hover, [data-hover]) {
201
+ background-color: var(--seed-color-bg-critical-weak-pressed);
202
+ }
203
+ }
204
+ @media (hover: none) {
205
+ .seed-callout__root--tone_critical:is(button, a):is(:active, [data-active]) {
206
+ background-color: var(--seed-color-bg-critical-weak-pressed);
207
+ }
150
208
  }
151
209
  .seed-callout__title--tone_critical {
152
210
  color: var(--seed-color-fg-critical-contrast);
@@ -162,8 +220,15 @@
162
220
  --seed-prefix-icon-color: var(--seed-color-fg-neutral);
163
221
  --seed-suffix-icon-color: var(--seed-color-fg-neutral);
164
222
  }
165
- .seed-callout__root--tone_magic:is(button, a):is(:active, [data-active]) {
166
- background-image: linear-gradient(88deg, var(--seed-gradient-glow-magic-pressed));
223
+ @media (hover: hover) {
224
+ .seed-callout__root--tone_magic:is(button, a):is(:hover, [data-hover]) {
225
+ background-image: linear-gradient(88deg, var(--seed-gradient-glow-magic-pressed));
226
+ }
227
+ }
228
+ @media (hover: none) {
229
+ .seed-callout__root--tone_magic:is(button, a):is(:active, [data-active]) {
230
+ background-image: linear-gradient(88deg, var(--seed-gradient-glow-magic-pressed));
231
+ }
167
232
  }
168
233
  .seed-callout__title--tone_magic {
169
234
  color: var(--seed-color-fg-neutral);
@@ -0,0 +1,242 @@
1
+ @layer seed-components {
2
+ .seed-callout__root {
3
+ box-sizing: border-box;
4
+ -webkit-font-smoothing: antialiased;
5
+ -moz-osx-font-smoothing: grayscale;
6
+ font-family: inherit;
7
+ font-size: unset;
8
+ text-align: start;
9
+ width: 100%;
10
+ min-height: 50px;
11
+ padding-left: var(--seed-dimension-x3_5);
12
+ padding-right: var(--seed-dimension-x3_5);
13
+ padding-top: var(--seed-dimension-x3_5);
14
+ padding-bottom: var(--seed-dimension-x3_5);
15
+ align-items: center;
16
+ gap: var(--seed-dimension-x3);
17
+ border-radius: var(--seed-radius-r2_5);
18
+ --seed-prefix-icon-size: var(--seed-dimension-x4);
19
+ --seed-suffix-icon-size: var(--seed-dimension-x4);
20
+ border: none;
21
+ text-decoration: none;
22
+ display: flex;
23
+ }
24
+
25
+ .seed-callout__root:is(button, a) {
26
+ cursor: pointer;
27
+ transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
28
+ outline: var(--seed-dimension-x0_5) solid transparent;
29
+ outline-offset: var(--seed-dimension-x0_5);
30
+ }
31
+
32
+ .seed-callout__root:is(button, a):is(:focus-visible, [data-focus-visible]) {
33
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
34
+ outline-offset: var(--seed-dimension-x0_5);
35
+ }
36
+
37
+ .seed-callout__content {
38
+ line-height: var(--seed-line-height-t4);
39
+ margin-right: auto;
40
+ }
41
+
42
+ .seed-callout__title {
43
+ font-size: var(--seed-font-size-t4);
44
+ line-height: var(--seed-line-height-t4);
45
+ font-weight: var(--seed-font-weight-bold);
46
+ }
47
+
48
+ .seed-callout__title:after {
49
+ content: " ";
50
+ white-space: pre;
51
+ }
52
+
53
+ .seed-callout__description {
54
+ font-size: var(--seed-font-size-t4);
55
+ line-height: var(--seed-line-height-t4);
56
+ font-weight: var(--seed-font-weight-regular);
57
+ }
58
+
59
+ .seed-callout__description:not(:last-child):after {
60
+ content: " ";
61
+ white-space: pre;
62
+ }
63
+
64
+ .seed-callout__link {
65
+ cursor: pointer;
66
+ font-family: inherit;
67
+ font-size: var(--seed-font-size-t4);
68
+ line-height: var(--seed-line-height-t4);
69
+ font-weight: var(--seed-font-weight-regular);
70
+ text-underline-offset: 2px;
71
+ transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
72
+ border-radius: var(--seed-radius-r1);
73
+ outline: var(--seed-dimension-x0_5) solid transparent;
74
+ outline-offset: var(--seed-dimension-x0_5);
75
+ background-color: #0000;
76
+ border: none;
77
+ padding: 0;
78
+ text-decoration: underline;
79
+ display: inline-block;
80
+ }
81
+
82
+ .seed-callout__link:is(:focus-visible, [data-focus-visible]) {
83
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
84
+ outline-offset: var(--seed-dimension-x0_5);
85
+ }
86
+
87
+ .seed-callout__closeButton {
88
+ cursor: pointer;
89
+ width: var(--seed-dimension-x10);
90
+ height: var(--seed-dimension-x10);
91
+ margin: calc((var(--seed-dimension-x10) - var(--seed-dimension-x4)) * -.5);
92
+ border-radius: var(--seed-radius-r2_5);
93
+ transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
94
+ outline: var(--seed-dimension-x0_5) solid transparent;
95
+ outline-offset: var(--seed-dimension-x0_5);
96
+ background-color: #0000;
97
+ border: none;
98
+ flex-grow: 0;
99
+ flex-shrink: 0;
100
+ justify-content: center;
101
+ align-items: center;
102
+ padding: 0;
103
+ display: flex;
104
+ }
105
+
106
+ .seed-callout__closeButton:is(:focus-visible, [data-focus-visible]) {
107
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
108
+ outline-offset: var(--seed-dimension-x0_5);
109
+ }
110
+
111
+ .seed-callout__root--tone_neutral {
112
+ background-color: var(--seed-color-bg-neutral-weak);
113
+ --seed-prefix-icon-color: var(--seed-color-fg-neutral);
114
+ --seed-suffix-icon-color: var(--seed-color-fg-neutral);
115
+ }
116
+
117
+ @media (hover: hover) {
118
+ .seed-callout__root--tone_neutral:is(button, a):is(:hover, [data-hover]) {
119
+ background-color: var(--seed-color-bg-neutral-weak-pressed);
120
+ }
121
+ }
122
+
123
+ @media (hover: none) {
124
+ .seed-callout__root--tone_neutral:is(button, a):is(:active, [data-active]) {
125
+ background-color: var(--seed-color-bg-neutral-weak-pressed);
126
+ }
127
+ }
128
+
129
+ .seed-callout__title--tone_neutral, .seed-callout__description--tone_neutral, .seed-callout__link--tone_neutral {
130
+ color: var(--seed-color-fg-neutral);
131
+ }
132
+
133
+ .seed-callout__root--tone_informative {
134
+ background-color: var(--seed-color-bg-informative-weak);
135
+ --seed-prefix-icon-color: var(--seed-color-fg-informative-contrast);
136
+ --seed-suffix-icon-color: var(--seed-color-fg-informative-contrast);
137
+ }
138
+
139
+ @media (hover: hover) {
140
+ .seed-callout__root--tone_informative:is(button, a):is(:hover, [data-hover]) {
141
+ background-color: var(--seed-color-bg-informative-weak-pressed);
142
+ }
143
+ }
144
+
145
+ @media (hover: none) {
146
+ .seed-callout__root--tone_informative:is(button, a):is(:active, [data-active]) {
147
+ background-color: var(--seed-color-bg-informative-weak-pressed);
148
+ }
149
+ }
150
+
151
+ .seed-callout__title--tone_informative, .seed-callout__description--tone_informative, .seed-callout__link--tone_informative {
152
+ color: var(--seed-color-fg-informative-contrast);
153
+ }
154
+
155
+ .seed-callout__root--tone_positive {
156
+ background-color: var(--seed-color-bg-positive-weak);
157
+ --seed-prefix-icon-color: var(--seed-color-fg-positive-contrast);
158
+ --seed-suffix-icon-color: var(--seed-color-fg-positive-contrast);
159
+ }
160
+
161
+ @media (hover: hover) {
162
+ .seed-callout__root--tone_positive:is(button, a):is(:hover, [data-hover]) {
163
+ background-color: var(--seed-color-bg-positive-weak-pressed);
164
+ }
165
+ }
166
+
167
+ @media (hover: none) {
168
+ .seed-callout__root--tone_positive:is(button, a):is(:active, [data-active]) {
169
+ background-color: var(--seed-color-bg-positive-weak-pressed);
170
+ }
171
+ }
172
+
173
+ .seed-callout__title--tone_positive, .seed-callout__description--tone_positive, .seed-callout__link--tone_positive {
174
+ color: var(--seed-color-fg-positive-contrast);
175
+ }
176
+
177
+ .seed-callout__root--tone_warning {
178
+ background-color: var(--seed-color-bg-warning-weak);
179
+ --seed-prefix-icon-color: var(--seed-color-fg-warning-contrast);
180
+ --seed-suffix-icon-color: var(--seed-color-fg-warning-contrast);
181
+ }
182
+
183
+ @media (hover: hover) {
184
+ .seed-callout__root--tone_warning:is(button, a):is(:hover, [data-hover]) {
185
+ background-color: var(--seed-color-bg-warning-weak-pressed);
186
+ }
187
+ }
188
+
189
+ @media (hover: none) {
190
+ .seed-callout__root--tone_warning:is(button, a):is(:active, [data-active]) {
191
+ background-color: var(--seed-color-bg-warning-weak-pressed);
192
+ }
193
+ }
194
+
195
+ .seed-callout__title--tone_warning, .seed-callout__description--tone_warning, .seed-callout__link--tone_warning {
196
+ color: var(--seed-color-fg-warning-contrast);
197
+ }
198
+
199
+ .seed-callout__root--tone_critical {
200
+ background-color: var(--seed-color-bg-critical-weak);
201
+ --seed-prefix-icon-color: var(--seed-color-fg-critical-contrast);
202
+ --seed-suffix-icon-color: var(--seed-color-fg-critical-contrast);
203
+ }
204
+
205
+ @media (hover: hover) {
206
+ .seed-callout__root--tone_critical:is(button, a):is(:hover, [data-hover]) {
207
+ background-color: var(--seed-color-bg-critical-weak-pressed);
208
+ }
209
+ }
210
+
211
+ @media (hover: none) {
212
+ .seed-callout__root--tone_critical:is(button, a):is(:active, [data-active]) {
213
+ background-color: var(--seed-color-bg-critical-weak-pressed);
214
+ }
215
+ }
216
+
217
+ .seed-callout__title--tone_critical, .seed-callout__description--tone_critical, .seed-callout__link--tone_critical {
218
+ color: var(--seed-color-fg-critical-contrast);
219
+ }
220
+
221
+ .seed-callout__root--tone_magic {
222
+ background-image: linear-gradient(88deg, var(--seed-gradient-glow-magic));
223
+ --seed-prefix-icon-color: var(--seed-color-fg-neutral);
224
+ --seed-suffix-icon-color: var(--seed-color-fg-neutral);
225
+ }
226
+
227
+ @media (hover: hover) {
228
+ .seed-callout__root--tone_magic:is(button, a):is(:hover, [data-hover]) {
229
+ background-image: linear-gradient(88deg, var(--seed-gradient-glow-magic-pressed));
230
+ }
231
+ }
232
+
233
+ @media (hover: none) {
234
+ .seed-callout__root--tone_magic:is(button, a):is(:active, [data-active]) {
235
+ background-image: linear-gradient(88deg, var(--seed-gradient-glow-magic-pressed));
236
+ }
237
+ }
238
+
239
+ .seed-callout__title--tone_magic, .seed-callout__description--tone_magic, .seed-callout__link--tone_magic {
240
+ color: var(--seed-color-fg-neutral);
241
+ }
242
+ }
@@ -0,0 +1,63 @@
1
+ import './callout.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const calloutSlotNames = [
5
+ [
6
+ "root",
7
+ "seed-callout__root"
8
+ ],
9
+ [
10
+ "content",
11
+ "seed-callout__content"
12
+ ],
13
+ [
14
+ "title",
15
+ "seed-callout__title"
16
+ ],
17
+ [
18
+ "description",
19
+ "seed-callout__description"
20
+ ],
21
+ [
22
+ "link",
23
+ "seed-callout__link"
24
+ ],
25
+ [
26
+ "closeButton",
27
+ "seed-callout__closeButton"
28
+ ]
29
+ ];
30
+
31
+ const defaultVariant = {
32
+ "tone": "neutral"
33
+ };
34
+
35
+ const compoundVariants = [];
36
+
37
+ export const calloutVariantMap = {
38
+ "tone": [
39
+ "neutral",
40
+ "informative",
41
+ "positive",
42
+ "warning",
43
+ "critical",
44
+ "magic"
45
+ ]
46
+ };
47
+
48
+ export const calloutVariantKeys = Object.keys(calloutVariantMap);
49
+
50
+ export function callout(props) {
51
+ return Object.fromEntries(
52
+ calloutSlotNames.map(([slot, className]) => {
53
+ return [
54
+ slot,
55
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
56
+ ];
57
+ }),
58
+ );
59
+ }
60
+
61
+ Object.assign(callout, { splitVariantProps: (props) => splitVariantProps(props, calloutVariantMap) });
62
+
63
+ // @recipe(seed): callout
@@ -0,0 +1,7 @@
1
+ @layer seed-components {
2
+ .seed-checkbox-group {
3
+ gap: var(--seed-dimension-x1);
4
+ flex-direction: column;
5
+ display: flex;
6
+ }
7
+ }
@@ -0,0 +1,22 @@
1
+ import './checkbox-group.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const defaultVariant = {};
5
+
6
+ const compoundVariants = [];
7
+
8
+ export const checkboxGroupVariantMap = {};
9
+
10
+ export const checkboxGroupVariantKeys = Object.keys(checkboxGroupVariantMap);
11
+
12
+ export function checkboxGroup(props) {
13
+ return createClassName(
14
+ "seed-checkbox-group",
15
+ mergeVariants(defaultVariant, props),
16
+ compoundVariants,
17
+ );
18
+ }
19
+
20
+ Object.assign(checkboxGroup, { splitVariantProps: (props) => splitVariantProps(props, checkboxGroupVariantMap) });
21
+
22
+ // @recipe(seed): checkbox-group
@@ -0,0 +1,54 @@
1
+ @layer seed-components {
2
+ .seed-checkbox__root {
3
+ vertical-align: top;
4
+ isolation: isolate;
5
+ cursor: pointer;
6
+ align-items: flex-start;
7
+ gap: var(--seed-dimension-x2);
8
+ max-width: 100%;
9
+ display: inline-flex;
10
+ position: relative;
11
+ }
12
+
13
+ .seed-checkbox__root:is(:disabled, [disabled], [data-disabled]) {
14
+ cursor: not-allowed;
15
+ }
16
+
17
+ .seed-checkbox__label {
18
+ color: var(--seed-color-fg-neutral);
19
+ }
20
+
21
+ .seed-checkbox__label:is(:disabled, [disabled], [data-disabled]) {
22
+ color: var(--seed-color-fg-disabled);
23
+ }
24
+
25
+ .seed-checkbox__label--weight_regular {
26
+ font-weight: var(--seed-font-weight-regular);
27
+ }
28
+
29
+ .seed-checkbox__label--weight_bold {
30
+ font-weight: var(--seed-font-weight-bold);
31
+ }
32
+
33
+ .seed-checkbox__root--size_large {
34
+ min-height: var(--seed-dimension-x9);
35
+ --checkmark-margin-top: calc((var(--seed-dimension-x9) - var(--seed-dimension-x6)) / 2);
36
+ }
37
+
38
+ .seed-checkbox__label--size_large {
39
+ font-size: var(--seed-font-size-t5);
40
+ line-height: var(--seed-line-height-t5);
41
+ margin-top: calc(var(--seed-dimension-x9) / 2 - var(--seed-line-height-t5) / 2);
42
+ }
43
+
44
+ .seed-checkbox__root--size_medium {
45
+ min-height: var(--seed-dimension-x8);
46
+ --checkmark-margin-top: calc((var(--seed-dimension-x8) - var(--seed-dimension-x5)) / 2);
47
+ }
48
+
49
+ .seed-checkbox__label--size_medium {
50
+ font-size: var(--seed-font-size-t4);
51
+ line-height: var(--seed-line-height-t4);
52
+ margin-top: calc(var(--seed-dimension-x8) / 2 - var(--seed-line-height-t4) / 2);
53
+ }
54
+ }
@@ -0,0 +1,48 @@
1
+ import './checkbox.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const checkboxSlotNames = [
5
+ [
6
+ "root",
7
+ "seed-checkbox__root"
8
+ ],
9
+ [
10
+ "label",
11
+ "seed-checkbox__label"
12
+ ]
13
+ ];
14
+
15
+ const defaultVariant = {
16
+ "size": "medium",
17
+ "weight": "regular"
18
+ };
19
+
20
+ const compoundVariants = [];
21
+
22
+ export const checkboxVariantMap = {
23
+ "weight": [
24
+ "regular",
25
+ "bold"
26
+ ],
27
+ "size": [
28
+ "large",
29
+ "medium"
30
+ ]
31
+ };
32
+
33
+ export const checkboxVariantKeys = Object.keys(checkboxVariantMap);
34
+
35
+ export function checkbox(props) {
36
+ return Object.fromEntries(
37
+ checkboxSlotNames.map(([slot, className]) => {
38
+ return [
39
+ slot,
40
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
41
+ ];
42
+ }),
43
+ );
44
+ }
45
+
46
+ Object.assign(checkbox, { splitVariantProps: (props) => splitVariantProps(props, checkboxVariantMap) });
47
+
48
+ // @recipe(seed): checkbox