@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,51 @@
1
+ import './control-chip.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const defaultVariant = {
5
+ "size": "medium",
6
+ "layout": "withText"
7
+ };
8
+
9
+ const compoundVariants = [
10
+ {
11
+ "size": "medium",
12
+ "layout": "withText"
13
+ },
14
+ {
15
+ "size": "medium",
16
+ "layout": "iconOnly"
17
+ },
18
+ {
19
+ "size": "small",
20
+ "layout": "withText"
21
+ },
22
+ {
23
+ "size": "small",
24
+ "layout": "iconOnly"
25
+ }
26
+ ];
27
+
28
+ export const controlChipVariantMap = {
29
+ "size": [
30
+ "medium",
31
+ "small"
32
+ ],
33
+ "layout": [
34
+ "withText",
35
+ "iconOnly"
36
+ ]
37
+ };
38
+
39
+ export const controlChipVariantKeys = Object.keys(controlChipVariantMap);
40
+
41
+ export function controlChip(props) {
42
+ return createClassName(
43
+ "seed-control-chip",
44
+ mergeVariants(defaultVariant, props),
45
+ compoundVariants,
46
+ );
47
+ }
48
+
49
+ Object.assign(controlChip, { splitVariantProps: (props) => splitVariantProps(props, controlChipVariantMap) });
50
+
51
+ // @recipe(seed): control-chip
@@ -0,0 +1,111 @@
1
+ @layer seed-components {
2
+ .seed-dialog__positioner {
3
+ overscroll-behavior-y: none;
4
+ --dialog-z-index: 2;
5
+ z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
6
+ justify-content: center;
7
+ align-items: center;
8
+ display: flex;
9
+ position: fixed;
10
+ inset: 0;
11
+ }
12
+
13
+ .seed-dialog__backdrop {
14
+ background: var(--seed-color-bg-overlay);
15
+ z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
16
+ position: fixed;
17
+ inset: 0;
18
+ }
19
+
20
+ .seed-dialog__content {
21
+ box-sizing: border-box;
22
+ word-break: break-all;
23
+ z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
24
+ background: var(--seed-color-bg-layer-floating);
25
+ max-width: 272px;
26
+ margin: auto var(--seed-dimension-x8);
27
+ border-radius: var(--seed-radius-r5);
28
+ flex-direction: column;
29
+ flex: 1;
30
+ display: flex;
31
+ position: relative;
32
+ }
33
+
34
+ .seed-dialog__header {
35
+ padding-left: var(--seed-dimension-x5);
36
+ padding-right: var(--seed-dimension-x5);
37
+ padding-top: var(--seed-dimension-x5);
38
+ gap: var(--seed-dimension-x1_5);
39
+ flex-direction: column;
40
+ display: flex;
41
+ }
42
+
43
+ .seed-dialog__title {
44
+ color: var(--seed-color-fg-neutral);
45
+ font-size: var(--seed-font-size-t7);
46
+ line-height: var(--seed-line-height-t7);
47
+ font-weight: var(--seed-font-weight-bold);
48
+ margin: 0;
49
+ }
50
+
51
+ .seed-dialog__description {
52
+ color: var(--seed-color-fg-neutral);
53
+ font-size: var(--seed-font-size-t5);
54
+ line-height: var(--seed-line-height-t5);
55
+ font-weight: var(--seed-font-weight-regular);
56
+ white-space: pre-wrap;
57
+ margin: 0;
58
+ }
59
+
60
+ .seed-dialog__footer {
61
+ padding-left: var(--seed-dimension-x5);
62
+ padding-right: var(--seed-dimension-x5);
63
+ padding-top: var(--seed-dimension-x4);
64
+ padding-bottom: var(--seed-dimension-x5);
65
+ flex-direction: column;
66
+ align-items: stretch;
67
+ display: flex;
68
+ }
69
+
70
+ .seed-dialog__backdrop--skipAnimation_false:is([data-state="open"], [data-open]) {
71
+ animation: seed-enter;
72
+ animation-timing-function: var(--seed-timing-function-enter);
73
+ animation-duration: var(--seed-duration-d2);
74
+ --seed-enter-translate-x: 0;
75
+ --seed-enter-translate-y: 0;
76
+ --seed-enter-opacity: 0;
77
+ --seed-enter-scale: 1;
78
+ }
79
+
80
+ .seed-dialog__backdrop--skipAnimation_false:not(:is([data-state="open"], [data-open])) {
81
+ animation: seed-exit;
82
+ animation-timing-function: var(--seed-timing-function-exit);
83
+ animation-duration: var(--seed-duration-d2);
84
+ --seed-exit-translate-x: 0;
85
+ --seed-exit-translate-y: 0;
86
+ --seed-exit-opacity: 0;
87
+ --seed-exit-scale: 1;
88
+ animation-fill-mode: forwards;
89
+ }
90
+
91
+ .seed-dialog__content--skipAnimation_false:is([data-state="open"], [data-open]) {
92
+ animation: seed-enter;
93
+ animation-timing-function: var(--seed-timing-function-enter-expressive);
94
+ animation-duration: var(--seed-duration-d4);
95
+ --seed-enter-translate-x: 0;
96
+ --seed-enter-translate-y: 0;
97
+ --seed-enter-opacity: 0;
98
+ --seed-enter-scale: 1.3;
99
+ }
100
+
101
+ .seed-dialog__content--skipAnimation_false:not(:is([data-state="open"], [data-open])) {
102
+ animation: seed-exit;
103
+ animation-timing-function: var(--seed-timing-function-exit);
104
+ animation-duration: var(--seed-duration-d2);
105
+ --seed-exit-translate-x: 0;
106
+ --seed-exit-translate-y: 0;
107
+ --seed-exit-opacity: 0;
108
+ --seed-exit-scale: 1;
109
+ animation-fill-mode: forwards;
110
+ }
111
+ }
@@ -0,0 +1,66 @@
1
+ import './dialog.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const dialogSlotNames = [
5
+ [
6
+ "positioner",
7
+ "seed-dialog__positioner"
8
+ ],
9
+ [
10
+ "backdrop",
11
+ "seed-dialog__backdrop"
12
+ ],
13
+ [
14
+ "content",
15
+ "seed-dialog__content"
16
+ ],
17
+ [
18
+ "header",
19
+ "seed-dialog__header"
20
+ ],
21
+ [
22
+ "footer",
23
+ "seed-dialog__footer"
24
+ ],
25
+ [
26
+ "action",
27
+ "seed-dialog__action"
28
+ ],
29
+ [
30
+ "title",
31
+ "seed-dialog__title"
32
+ ],
33
+ [
34
+ "description",
35
+ "seed-dialog__description"
36
+ ]
37
+ ];
38
+
39
+ const defaultVariant = {
40
+ "skipAnimation": false
41
+ };
42
+
43
+ const compoundVariants = [];
44
+
45
+ export const dialogVariantMap = {
46
+ "skipAnimation": [
47
+ false
48
+ ]
49
+ };
50
+
51
+ export const dialogVariantKeys = Object.keys(dialogVariantMap);
52
+
53
+ export function dialog(props) {
54
+ return Object.fromEntries(
55
+ dialogSlotNames.map(([slot, className]) => {
56
+ return [
57
+ slot,
58
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
59
+ ];
60
+ }),
61
+ );
62
+ }
63
+
64
+ Object.assign(dialog, { splitVariantProps: (props) => splitVariantProps(props, dialogVariantMap) });
65
+
66
+ // @recipe(seed): dialog
@@ -0,0 +1,38 @@
1
+ @layer seed-components {
2
+ .seed-extended-action-sheet-item {
3
+ background-color: var(--seed-color-bg-neutral-weak);
4
+ min-height: 52px;
5
+ padding-inline: var(--seed-dimension-x4);
6
+ padding-block: var(--seed-dimension-x3_5);
7
+ justify-content: flex-start;
8
+ align-items: center;
9
+ gap: var(--seed-dimension-x3_5);
10
+ box-shadow: inset 0 calc(-1 * 1px) 0 var(--seed-color-stroke-neutral-muted);
11
+ font-size: var(--seed-font-size-t5);
12
+ line-height: var(--seed-line-height-t5);
13
+ font-weight: var(--seed-font-weight-regular);
14
+ display: flex;
15
+ }
16
+
17
+ .seed-extended-action-sheet-item:is(:active, [data-active]) {
18
+ background-color: var(--seed-color-bg-neutral-weak-pressed);
19
+ }
20
+
21
+ .seed-extended-action-sheet-item:last-child {
22
+ box-shadow: none;
23
+ }
24
+
25
+ .seed-extended-action-sheet-item {
26
+ --seed-prefix-icon-size: 22px;
27
+ }
28
+
29
+ .seed-extended-action-sheet-item--tone_neutral {
30
+ color: var(--seed-color-fg-neutral);
31
+ --seed-prefix-icon-color: var(--seed-color-fg-neutral);
32
+ }
33
+
34
+ .seed-extended-action-sheet-item--tone_critical {
35
+ color: var(--seed-color-fg-critical);
36
+ --seed-prefix-icon-color: var(--seed-color-fg-critical);
37
+ }
38
+ }
@@ -0,0 +1,29 @@
1
+ import './extended-action-sheet-item.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const defaultVariant = {
5
+ "tone": "neutral"
6
+ };
7
+
8
+ const compoundVariants = [];
9
+
10
+ export const extendedActionSheetItemVariantMap = {
11
+ "tone": [
12
+ "neutral",
13
+ "critical"
14
+ ]
15
+ };
16
+
17
+ export const extendedActionSheetItemVariantKeys = Object.keys(extendedActionSheetItemVariantMap);
18
+
19
+ export function extendedActionSheetItem(props) {
20
+ return createClassName(
21
+ "seed-extended-action-sheet-item",
22
+ mergeVariants(defaultVariant, props),
23
+ compoundVariants,
24
+ );
25
+ }
26
+
27
+ Object.assign(extendedActionSheetItem, { splitVariantProps: (props) => splitVariantProps(props, extendedActionSheetItemVariantMap) });
28
+
29
+ // @recipe(seed): extended-action-sheet-item
@@ -0,0 +1,132 @@
1
+ @layer seed-components {
2
+ .seed-extended-action-sheet__positioner {
3
+ overscroll-behavior-y: none;
4
+ --sheet-z-index: 2;
5
+ z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
6
+ justify-content: center;
7
+ align-items: flex-end;
8
+ display: flex;
9
+ position: fixed;
10
+ inset: 0;
11
+ }
12
+
13
+ .seed-extended-action-sheet__backdrop {
14
+ background: var(--seed-color-bg-overlay);
15
+ z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
16
+ position: fixed;
17
+ inset: 0;
18
+ }
19
+
20
+ .seed-extended-action-sheet__backdrop:not(:is([data-state="open"], [data-open])) {
21
+ animation: seed-exit;
22
+ animation-timing-function: var(--seed-timing-function-exit);
23
+ animation-duration: var(--seed-duration-d2);
24
+ --seed-exit-translate-x: 0;
25
+ --seed-exit-translate-y: 0;
26
+ --seed-exit-opacity: 0;
27
+ --seed-exit-scale: 1;
28
+ animation-fill-mode: forwards;
29
+ }
30
+
31
+ .seed-extended-action-sheet__backdrop:is([data-state="open"], [data-open]) {
32
+ animation: seed-enter;
33
+ animation-timing-function: var(--seed-timing-function-enter);
34
+ animation-duration: var(--seed-duration-d2);
35
+ --seed-enter-translate-x: 0;
36
+ --seed-enter-translate-y: 0;
37
+ --seed-enter-opacity: 0;
38
+ --seed-enter-scale: 1;
39
+ }
40
+
41
+ .seed-extended-action-sheet__content {
42
+ box-sizing: border-box;
43
+ word-break: break-all;
44
+ z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
45
+ background: var(--seed-color-bg-layer-floating);
46
+ padding-inline: var(--seed-dimension-spacing-x-global-gutter);
47
+ padding-block: var(--seed-dimension-x4);
48
+ border-top-left-radius: var(--seed-radius-r5);
49
+ border-top-right-radius: var(--seed-radius-r5);
50
+ flex-direction: column;
51
+ flex: 1;
52
+ display: flex;
53
+ position: relative;
54
+ }
55
+
56
+ .seed-extended-action-sheet__content:not(:is([data-state="open"], [data-open])) {
57
+ animation: seed-exit;
58
+ animation-timing-function: var(--seed-timing-function-exit);
59
+ animation-duration: var(--seed-duration-d4);
60
+ --seed-exit-translate-x: 0;
61
+ --seed-exit-translate-y: 100%;
62
+ --seed-exit-opacity: 1;
63
+ --seed-exit-scale: 1;
64
+ animation-fill-mode: forwards;
65
+ }
66
+
67
+ .seed-extended-action-sheet__content:is([data-state="open"], [data-open]) {
68
+ animation: seed-enter;
69
+ animation-timing-function: var(--seed-timing-function-enter-expressive);
70
+ animation-duration: var(--seed-duration-d6);
71
+ --seed-enter-translate-x: 0;
72
+ --seed-enter-translate-y: 100%;
73
+ --seed-enter-opacity: 1;
74
+ --seed-enter-scale: 1;
75
+ }
76
+
77
+ .seed-extended-action-sheet__header {
78
+ align-items: center;
79
+ gap: var(--seed-dimension-x1);
80
+ padding-bottom: var(--seed-dimension-x4);
81
+ flex-direction: column;
82
+ display: flex;
83
+ }
84
+
85
+ .seed-extended-action-sheet__title {
86
+ color: var(--seed-color-fg-neutral);
87
+ font-size: var(--seed-font-size-t6);
88
+ line-height: var(--seed-line-height-t6);
89
+ font-weight: var(--seed-font-weight-bold);
90
+ }
91
+
92
+ .seed-extended-action-sheet__list {
93
+ align-items: stretch;
94
+ gap: var(--seed-dimension-x2_5);
95
+ flex-direction: column;
96
+ display: flex;
97
+ }
98
+
99
+ .seed-extended-action-sheet__group {
100
+ border-radius: var(--seed-radius-r4);
101
+ flex-direction: column;
102
+ align-items: stretch;
103
+ display: flex;
104
+ overflow: hidden;
105
+ }
106
+
107
+ .seed-extended-action-sheet__footer {
108
+ padding-top: var(--seed-dimension-x2_5);
109
+ flex-direction: column;
110
+ align-items: stretch;
111
+ display: flex;
112
+ }
113
+
114
+ .seed-extended-action-sheet__closeButton {
115
+ background-color: var(--seed-color-bg-neutral-weak);
116
+ min-height: 52px;
117
+ padding-inline: var(--seed-dimension-x5);
118
+ padding-block: var(--seed-dimension-x3_5);
119
+ border-radius: var(--seed-radius-r3);
120
+ color: var(--seed-color-fg-neutral);
121
+ font-size: var(--seed-font-size-t5);
122
+ line-height: var(--seed-line-height-t5);
123
+ font-weight: var(--seed-font-weight-medium);
124
+ justify-content: center;
125
+ align-items: center;
126
+ display: flex;
127
+ }
128
+
129
+ .seed-extended-action-sheet__closeButton:is(:active, [data-active]) {
130
+ background-color: var(--seed-color-bg-neutral-weak-pressed);
131
+ }
132
+ }
@@ -0,0 +1,64 @@
1
+ import './extended-action-sheet.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const extendedActionSheetSlotNames = [
5
+ [
6
+ "backdrop",
7
+ "seed-extended-action-sheet__backdrop"
8
+ ],
9
+ [
10
+ "positioner",
11
+ "seed-extended-action-sheet__positioner"
12
+ ],
13
+ [
14
+ "content",
15
+ "seed-extended-action-sheet__content"
16
+ ],
17
+ [
18
+ "header",
19
+ "seed-extended-action-sheet__header"
20
+ ],
21
+ [
22
+ "title",
23
+ "seed-extended-action-sheet__title"
24
+ ],
25
+ [
26
+ "list",
27
+ "seed-extended-action-sheet__list"
28
+ ],
29
+ [
30
+ "group",
31
+ "seed-extended-action-sheet__group"
32
+ ],
33
+ [
34
+ "footer",
35
+ "seed-extended-action-sheet__footer"
36
+ ],
37
+ [
38
+ "closeButton",
39
+ "seed-extended-action-sheet__closeButton"
40
+ ]
41
+ ];
42
+
43
+ const defaultVariant = {};
44
+
45
+ const compoundVariants = [];
46
+
47
+ export const extendedActionSheetVariantMap = {};
48
+
49
+ export const extendedActionSheetVariantKeys = Object.keys(extendedActionSheetVariantMap);
50
+
51
+ export function extendedActionSheet(props) {
52
+ return Object.fromEntries(
53
+ extendedActionSheetSlotNames.map(([slot, className]) => {
54
+ return [
55
+ slot,
56
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
57
+ ];
58
+ }),
59
+ );
60
+ }
61
+
62
+ Object.assign(extendedActionSheet, { splitVariantProps: (props) => splitVariantProps(props, extendedActionSheetVariantMap) });
63
+
64
+ // @recipe(seed): extended-action-sheet
@@ -0,0 +1,79 @@
1
+ @layer seed-components {
2
+ .seed-extended-fab {
3
+ box-sizing: border-box;
4
+ cursor: pointer;
5
+ text-transform: none;
6
+ white-space: nowrap;
7
+ vertical-align: middle;
8
+ -webkit-font-smoothing: antialiased;
9
+ -moz-osx-font-smoothing: grayscale;
10
+ border: none;
11
+ flex-shrink: 0;
12
+ justify-content: center;
13
+ align-items: center;
14
+ font-family: inherit;
15
+ text-decoration: none;
16
+ display: inline-flex;
17
+ }
18
+
19
+ .seed-extended-fab:is(:focus, [data-focus]) {
20
+ outline: none;
21
+ }
22
+
23
+ .seed-extended-fab:is(:disabled, [disabled], [data-disabled]) {
24
+ cursor: not-allowed;
25
+ }
26
+
27
+ .seed-extended-fab {
28
+ border-radius: var(--seed-radius-full);
29
+ box-shadow: 0 2px 6px #00000026;
30
+ }
31
+
32
+ .seed-extended-fab--variant_neutralSolid {
33
+ background: var(--seed-color-bg-neutral-inverted);
34
+ color: var(--seed-color-fg-neutral-inverted);
35
+ }
36
+
37
+ .seed-extended-fab--variant_neutralSolid:is(:active, [data-active]) {
38
+ background: var(--seed-color-bg-neutral-inverted-pressed);
39
+ }
40
+
41
+ .seed-extended-fab--variant_neutralSolid {
42
+ --seed-prefix-icon-color: var(--seed-color-fg-neutral-inverted);
43
+ }
44
+
45
+ .seed-extended-fab--variant_layerFloating {
46
+ background: var(--seed-color-bg-layer-floating);
47
+ color: var(--seed-color-fg-neutral);
48
+ }
49
+
50
+ .seed-extended-fab--variant_layerFloating:is(:active, [data-active]) {
51
+ background: var(--seed-color-bg-layer-floating-pressed);
52
+ }
53
+
54
+ .seed-extended-fab--variant_layerFloating {
55
+ --seed-prefix-icon-color: var(--seed-color-fg-neutral);
56
+ }
57
+
58
+ .seed-extended-fab--size_small {
59
+ padding-inline: var(--seed-dimension-x3_5);
60
+ padding-block: var(--seed-dimension-x2_5);
61
+ gap: var(--seed-dimension-x1);
62
+ min-height: 40px;
63
+ font-size: var(--seed-font-size-t4);
64
+ line-height: var(--seed-line-height-t4);
65
+ font-weight: var(--seed-font-weight-medium);
66
+ --seed-prefix-icon-size: 16px;
67
+ }
68
+
69
+ .seed-extended-fab--size_medium {
70
+ padding-inline: var(--seed-dimension-x4);
71
+ padding-block: var(--seed-dimension-x3);
72
+ gap: var(--seed-dimension-x1);
73
+ min-height: 48px;
74
+ font-size: var(--seed-font-size-t5);
75
+ line-height: var(--seed-line-height-t5);
76
+ font-weight: var(--seed-font-weight-bold);
77
+ --seed-prefix-icon-size: 16px;
78
+ }
79
+ }
@@ -0,0 +1,34 @@
1
+ import './extended-fab.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const defaultVariant = {
5
+ "variant": "neutralSolid",
6
+ "size": "medium"
7
+ };
8
+
9
+ const compoundVariants = [];
10
+
11
+ export const extendedFabVariantMap = {
12
+ "variant": [
13
+ "neutralSolid",
14
+ "layerFloating"
15
+ ],
16
+ "size": [
17
+ "small",
18
+ "medium"
19
+ ]
20
+ };
21
+
22
+ export const extendedFabVariantKeys = Object.keys(extendedFabVariantMap);
23
+
24
+ export function extendedFab(props) {
25
+ return createClassName(
26
+ "seed-extended-fab",
27
+ mergeVariants(defaultVariant, props),
28
+ compoundVariants,
29
+ );
30
+ }
31
+
32
+ Object.assign(extendedFab, { splitVariantProps: (props) => splitVariantProps(props, extendedFabVariantMap) });
33
+
34
+ // @recipe(seed): extended-fab
@@ -0,0 +1,37 @@
1
+ @layer seed-components {
2
+ .seed-fab {
3
+ box-sizing: border-box;
4
+ cursor: pointer;
5
+ text-transform: none;
6
+ -webkit-font-smoothing: antialiased;
7
+ -moz-osx-font-smoothing: grayscale;
8
+ border: none;
9
+ justify-content: center;
10
+ align-items: center;
11
+ font-family: inherit;
12
+ text-decoration: none;
13
+ display: inline-flex;
14
+ }
15
+
16
+ .seed-fab:is(:focus, [data-focus]) {
17
+ outline: none;
18
+ }
19
+
20
+ .seed-fab:is(:disabled, [disabled], [data-disabled]) {
21
+ cursor: not-allowed;
22
+ }
23
+
24
+ .seed-fab {
25
+ background: var(--seed-color-bg-layer-floating);
26
+ border-radius: var(--seed-radius-full);
27
+ --seed-icon-size: 22px;
28
+ --seed-icon-color: var(--seed-color-fg-neutral);
29
+ width: 44px;
30
+ height: 44px;
31
+ box-shadow: 0 2px 6px #00000026;
32
+ }
33
+
34
+ .seed-fab:is(:active, [data-active]) {
35
+ background: var(--seed-color-bg-layer-floating-pressed);
36
+ }
37
+ }
@@ -0,0 +1,22 @@
1
+ import './fab.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const defaultVariant = {};
5
+
6
+ const compoundVariants = [];
7
+
8
+ export const fabVariantMap = {};
9
+
10
+ export const fabVariantKeys = Object.keys(fabVariantMap);
11
+
12
+ export function fab(props) {
13
+ return createClassName(
14
+ "seed-fab",
15
+ mergeVariants(defaultVariant, props),
16
+ compoundVariants,
17
+ );
18
+ }
19
+
20
+ Object.assign(fab, { splitVariantProps: (props) => splitVariantProps(props, fabVariantMap) });
21
+
22
+ // @recipe(seed): fab
@@ -0,0 +1,35 @@
1
+ @layer seed-components {
2
+ .seed-field-label__root {
3
+ color: var(--seed-color-fg-neutral);
4
+ font-size: var(--seed-font-size-t5);
5
+ line-height: var(--seed-line-height-t5);
6
+ }
7
+
8
+ .seed-field-label__indicatorText {
9
+ vertical-align: bottom;
10
+ padding-left: clamp(calc(4px * var(--seed-font-size-limit-min)), .25rem, calc(4px * var(--seed-font-size-limit-max)));
11
+ color: var(--seed-color-fg-neutral-subtle);
12
+ font-size: var(--seed-font-size-t4);
13
+ line-height: var(--seed-line-height-t5);
14
+ font-weight: var(--seed-font-weight-regular);
15
+ display: inline;
16
+ }
17
+
18
+ .seed-field-label__indicatorIcon {
19
+ vertical-align: top;
20
+ width: clamp(calc(6px * var(--seed-font-size-limit-min)), .375rem, calc(6px * var(--seed-font-size-limit-max)));
21
+ height: clamp(calc(6px * var(--seed-font-size-limit-min)), .375rem, calc(6px * var(--seed-font-size-limit-max)));
22
+ margin-top: clamp(calc(4px * var(--seed-font-size-limit-min)), .25rem, calc(4px * var(--seed-font-size-limit-max)));
23
+ margin-left: clamp(calc(2px * var(--seed-font-size-limit-min)), .125rem, calc(2px * var(--seed-font-size-limit-max)));
24
+ color: var(--seed-color-fg-critical);
25
+ display: inline;
26
+ }
27
+
28
+ .seed-field-label__root--weight_medium {
29
+ font-weight: var(--seed-font-weight-medium);
30
+ }
31
+
32
+ .seed-field-label__root--weight_bold {
33
+ font-weight: var(--seed-font-weight-bold);
34
+ }
35
+ }