@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,57 @@
1
+ @layer seed-components {
2
+ .seed-manner-temp {
3
+ justify-content: flex-start;
4
+ align-items: center;
5
+ gap: var(--seed-dimension-x1);
6
+ box-sizing: border-box;
7
+ font-size: var(--seed-font-size-t5);
8
+ line-height: var(--seed-line-height-t5);
9
+ font-weight: var(--seed-font-weight-bold);
10
+ --seed-suffix-icon-size: var(--seed-dimension-x8);
11
+ --seed-suffix-icon-margin-left: calc(var(--seed-dimension-x1) * -1);
12
+ --seed-suffix-icon-margin-right: calc(var(--seed-dimension-x1) * -1);
13
+ --seed-suffix-icon-margin-top: calc(var(--seed-dimension-x1) * -1);
14
+ --seed-suffix-icon-margin-bottom: calc(var(--seed-dimension-x1) * -1);
15
+ display: inline-flex;
16
+ }
17
+
18
+ .seed-manner-temp--level_l1 {
19
+ color: var(--seed-color-manner-temp-l1-text);
20
+ }
21
+
22
+ .seed-manner-temp--level_l2 {
23
+ color: var(--seed-color-manner-temp-l2-text);
24
+ }
25
+
26
+ .seed-manner-temp--level_l3 {
27
+ color: var(--seed-color-manner-temp-l3-text);
28
+ }
29
+
30
+ .seed-manner-temp--level_l4 {
31
+ color: var(--seed-color-manner-temp-l4-text);
32
+ }
33
+
34
+ .seed-manner-temp--level_l5 {
35
+ color: var(--seed-color-manner-temp-l5-text);
36
+ }
37
+
38
+ .seed-manner-temp--level_l6 {
39
+ color: var(--seed-color-manner-temp-l6-text);
40
+ }
41
+
42
+ .seed-manner-temp--level_l7 {
43
+ color: var(--seed-color-manner-temp-l7-text);
44
+ }
45
+
46
+ .seed-manner-temp--level_l8 {
47
+ color: var(--seed-color-manner-temp-l8-text);
48
+ }
49
+
50
+ .seed-manner-temp--level_l9 {
51
+ color: var(--seed-color-manner-temp-l9-text);
52
+ }
53
+
54
+ .seed-manner-temp--level_l10 {
55
+ color: var(--seed-color-manner-temp-l10-text);
56
+ }
57
+ }
@@ -0,0 +1,37 @@
1
+ import './manner-temp.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const defaultVariant = {
5
+ "level": "l1"
6
+ };
7
+
8
+ const compoundVariants = [];
9
+
10
+ export const mannerTempVariantMap = {
11
+ "level": [
12
+ "l1",
13
+ "l2",
14
+ "l3",
15
+ "l4",
16
+ "l5",
17
+ "l6",
18
+ "l7",
19
+ "l8",
20
+ "l9",
21
+ "l10"
22
+ ]
23
+ };
24
+
25
+ export const mannerTempVariantKeys = Object.keys(mannerTempVariantMap);
26
+
27
+ export function mannerTemp(props) {
28
+ return createClassName(
29
+ "seed-manner-temp",
30
+ mergeVariants(defaultVariant, props),
31
+ compoundVariants,
32
+ );
33
+ }
34
+
35
+ Object.assign(mannerTemp, { splitVariantProps: (props) => splitVariantProps(props, mannerTempVariantMap) });
36
+
37
+ // @recipe(seed): manner-temp
@@ -12,14 +12,35 @@
12
12
  margin: 0;
13
13
  border: none;
14
14
  font-family: inherit;
15
- outline: none;
16
15
  }
17
- .seed-menu-sheet-item__root:is(:active, [data-active]) {
18
- background-color: var(--seed-color-bg-neutral-weak-pressed);
16
+ @media (hover: hover) {
17
+ .seed-menu-sheet-item__root:is(:hover, [data-hover]) {
18
+ background-color: var(--seed-color-bg-neutral-weak-pressed);
19
+ }
20
+ }
21
+ @media (hover: none) {
22
+ .seed-menu-sheet-item__root:is(:active, [data-active]) {
23
+ background-color: var(--seed-color-bg-neutral-weak-pressed);
24
+ }
25
+ }
26
+ .seed-menu-sheet-item__root:first-child {
27
+ border-top-left-radius: var(--seed-radius-r4);
28
+ border-top-right-radius: var(--seed-radius-r4);
19
29
  }
20
30
  .seed-menu-sheet-item__root:last-child {
31
+ border-bottom-left-radius: var(--seed-radius-r4);
32
+ border-bottom-right-radius: var(--seed-radius-r4);
21
33
  box-shadow: none;
22
34
  }
35
+ .seed-menu-sheet-item__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: calc(var(--seed-dimension-x0_5) * -1);
39
+ }
40
+ .seed-menu-sheet-item__root:is(:focus-visible, [data-focus-visible]) {
41
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
42
+ outline-offset: calc(var(--seed-dimension-x0_5) * -1);
43
+ }
23
44
  .seed-menu-sheet-item__root {
24
45
  --seed-prefix-icon-size: 22px;
25
46
  }
@@ -0,0 +1,102 @@
1
+ @layer seed-components {
2
+ .seed-menu-sheet-item__root {
3
+ background-color: var(--seed-color-bg-neutral-weak);
4
+ min-height: 52px;
5
+ padding-left: var(--seed-dimension-x4);
6
+ padding-right: var(--seed-dimension-x4);
7
+ padding-top: var(--seed-dimension-x3_5);
8
+ padding-bottom: var(--seed-dimension-x3_5);
9
+ align-items: center;
10
+ gap: var(--seed-dimension-x3_5);
11
+ box-shadow: inset 0 calc(-1 * 1px) 0 var(--seed-color-stroke-neutral-muted);
12
+ border: none;
13
+ margin: 0;
14
+ font-family: inherit;
15
+ display: flex;
16
+ }
17
+
18
+ @media (hover: hover) {
19
+ .seed-menu-sheet-item__root:is(:hover, [data-hover]) {
20
+ background-color: var(--seed-color-bg-neutral-weak-pressed);
21
+ }
22
+ }
23
+
24
+ @media (hover: none) {
25
+ .seed-menu-sheet-item__root:is(:active, [data-active]) {
26
+ background-color: var(--seed-color-bg-neutral-weak-pressed);
27
+ }
28
+ }
29
+
30
+ .seed-menu-sheet-item__root:first-child {
31
+ border-top-left-radius: var(--seed-radius-r4);
32
+ border-top-right-radius: var(--seed-radius-r4);
33
+ }
34
+
35
+ .seed-menu-sheet-item__root:last-child {
36
+ border-bottom-left-radius: var(--seed-radius-r4);
37
+ border-bottom-right-radius: var(--seed-radius-r4);
38
+ box-shadow: none;
39
+ }
40
+
41
+ .seed-menu-sheet-item__root {
42
+ transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
43
+ outline: var(--seed-dimension-x0_5) solid transparent;
44
+ outline-offset: calc(var(--seed-dimension-x0_5) * -1);
45
+ }
46
+
47
+ .seed-menu-sheet-item__root:is(:focus-visible, [data-focus-visible]) {
48
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
49
+ outline-offset: calc(var(--seed-dimension-x0_5) * -1);
50
+ }
51
+
52
+ .seed-menu-sheet-item__root {
53
+ --seed-prefix-icon-size: 22px;
54
+ }
55
+
56
+ .seed-menu-sheet-item__content {
57
+ gap: var(--seed-dimension-x0_5);
58
+ flex-direction: column;
59
+ display: flex;
60
+ }
61
+
62
+ .seed-menu-sheet-item__label {
63
+ font-size: var(--seed-font-size-t5);
64
+ line-height: var(--seed-line-height-t5);
65
+ font-weight: var(--seed-font-weight-regular);
66
+ }
67
+
68
+ .seed-menu-sheet-item__description {
69
+ font-size: var(--seed-font-size-t3);
70
+ line-height: var(--seed-line-height-t3);
71
+ font-weight: var(--seed-font-weight-medium);
72
+ color: var(--seed-color-fg-neutral-subtle);
73
+ }
74
+
75
+ .seed-menu-sheet-item__root--tone_neutral {
76
+ --seed-prefix-icon-color: var(--seed-color-fg-neutral);
77
+ }
78
+
79
+ .seed-menu-sheet-item__label--tone_neutral {
80
+ color: var(--seed-color-fg-neutral);
81
+ }
82
+
83
+ .seed-menu-sheet-item__root--tone_critical {
84
+ --seed-prefix-icon-color: var(--seed-color-fg-critical);
85
+ }
86
+
87
+ .seed-menu-sheet-item__label--tone_critical {
88
+ color: var(--seed-color-fg-critical);
89
+ }
90
+
91
+ .seed-menu-sheet-item__content--labelAlign_left {
92
+ text-align: start;
93
+ }
94
+
95
+ .seed-menu-sheet-item__root--labelAlign_center {
96
+ justify-content: center;
97
+ }
98
+
99
+ .seed-menu-sheet-item__content--labelAlign_center {
100
+ align-items: center;
101
+ }
102
+ }
@@ -0,0 +1,56 @@
1
+ import './menu-sheet-item.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const menuSheetItemSlotNames = [
5
+ [
6
+ "root",
7
+ "seed-menu-sheet-item__root"
8
+ ],
9
+ [
10
+ "content",
11
+ "seed-menu-sheet-item__content"
12
+ ],
13
+ [
14
+ "label",
15
+ "seed-menu-sheet-item__label"
16
+ ],
17
+ [
18
+ "description",
19
+ "seed-menu-sheet-item__description"
20
+ ]
21
+ ];
22
+
23
+ const defaultVariant = {
24
+ "tone": "neutral",
25
+ "labelAlign": "left"
26
+ };
27
+
28
+ const compoundVariants = [];
29
+
30
+ export const menuSheetItemVariantMap = {
31
+ "tone": [
32
+ "neutral",
33
+ "critical"
34
+ ],
35
+ "labelAlign": [
36
+ "left",
37
+ "center"
38
+ ]
39
+ };
40
+
41
+ export const menuSheetItemVariantKeys = Object.keys(menuSheetItemVariantMap);
42
+
43
+ export function menuSheetItem(props) {
44
+ return Object.fromEntries(
45
+ menuSheetItemSlotNames.map(([slot, className]) => {
46
+ return [
47
+ slot,
48
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
49
+ ];
50
+ }),
51
+ );
52
+ }
53
+
54
+ Object.assign(menuSheetItem, { splitVariantProps: (props) => splitVariantProps(props, menuSheetItemVariantMap) });
55
+
56
+ // @recipe(seed): menu-sheet-item
@@ -90,14 +90,29 @@
90
90
  border-radius: var(--seed-radius-r3);
91
91
  border: none;
92
92
  font-family: inherit;
93
- outline: none;
94
93
  color: var(--seed-color-fg-neutral);
95
94
  font-size: var(--seed-font-size-t5);
96
95
  line-height: var(--seed-line-height-t5);
97
96
  font-weight: var(--seed-font-weight-medium);
97
+ transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
98
98
  }
99
- .seed-menu-sheet__closeButton:is(:active, [data-active]) {
100
- background-color: var(--seed-color-bg-neutral-weak-pressed);
99
+ @media (hover: hover) {
100
+ .seed-menu-sheet__closeButton:is(:hover, [data-hover]) {
101
+ background-color: var(--seed-color-bg-neutral-weak-pressed);
102
+ }
103
+ }
104
+ @media (hover: none) {
105
+ .seed-menu-sheet__closeButton:is(:active, [data-active]) {
106
+ background-color: var(--seed-color-bg-neutral-weak-pressed);
107
+ }
108
+ }
109
+ .seed-menu-sheet__closeButton {
110
+ outline: var(--seed-dimension-x0_5) solid transparent;
111
+ outline-offset: var(--seed-dimension-x0_5);
112
+ }
113
+ .seed-menu-sheet__closeButton:is(:focus-visible, [data-focus-visible]) {
114
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
115
+ outline-offset: var(--seed-dimension-x0_5);
101
116
  }
102
117
  .seed-menu-sheet__backdrop--skipAnimation_false:is([data-state="open"], [data-open]) {
103
118
  animation: seed-enter;
@@ -0,0 +1,167 @@
1
+ @layer seed-components {
2
+ .seed-menu-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-menu-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-menu-sheet__content {
21
+ box-sizing: border-box;
22
+ word-break: break-all;
23
+ z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
24
+ background: var(--seed-color-bg-layer-floating);
25
+ padding-left: var(--seed-dimension-spacing-x-global-gutter);
26
+ padding-right: var(--seed-dimension-spacing-x-global-gutter);
27
+ padding-top: var(--seed-dimension-x4);
28
+ padding-bottom: calc(var(--seed-dimension-x4) + var(--seed-safe-area-bottom));
29
+ border-top-left-radius: var(--seed-radius-r5);
30
+ border-top-right-radius: var(--seed-radius-r5);
31
+ flex-direction: column;
32
+ flex: 1;
33
+ display: flex;
34
+ position: relative;
35
+ }
36
+
37
+ .seed-menu-sheet__header {
38
+ text-align: center;
39
+ align-items: center;
40
+ gap: var(--seed-dimension-x1);
41
+ padding-bottom: var(--seed-dimension-x4);
42
+ flex-direction: column;
43
+ display: flex;
44
+ }
45
+
46
+ .seed-menu-sheet__title {
47
+ color: var(--seed-color-fg-neutral);
48
+ font-size: var(--seed-font-size-t6);
49
+ line-height: var(--seed-line-height-t6);
50
+ font-weight: var(--seed-font-weight-bold);
51
+ margin: 0;
52
+ }
53
+
54
+ .seed-menu-sheet__description {
55
+ color: var(--seed-color-fg-neutral-muted);
56
+ font-size: var(--seed-font-size-t4);
57
+ line-height: var(--seed-line-height-t4);
58
+ font-weight: var(--seed-font-weight-regular);
59
+ margin: 0;
60
+ }
61
+
62
+ .seed-menu-sheet__list {
63
+ align-items: stretch;
64
+ gap: var(--seed-dimension-x2_5);
65
+ flex-direction: column;
66
+ display: flex;
67
+ }
68
+
69
+ .seed-menu-sheet__group {
70
+ border-radius: var(--seed-radius-r4);
71
+ flex-direction: column;
72
+ align-items: stretch;
73
+ display: flex;
74
+ overflow: hidden;
75
+ }
76
+
77
+ .seed-menu-sheet__footer {
78
+ padding-top: var(--seed-dimension-x2_5);
79
+ flex-direction: column;
80
+ align-items: stretch;
81
+ display: flex;
82
+ }
83
+
84
+ .seed-menu-sheet__closeButton {
85
+ background-color: var(--seed-color-bg-neutral-weak);
86
+ min-height: 52px;
87
+ padding-left: var(--seed-dimension-x5);
88
+ padding-right: var(--seed-dimension-x5);
89
+ padding-top: var(--seed-dimension-x3_5);
90
+ padding-bottom: var(--seed-dimension-x3_5);
91
+ border-radius: var(--seed-radius-r3);
92
+ color: var(--seed-color-fg-neutral);
93
+ font-family: inherit;
94
+ font-size: var(--seed-font-size-t5);
95
+ line-height: var(--seed-line-height-t5);
96
+ font-weight: var(--seed-font-weight-medium);
97
+ transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
98
+ border: none;
99
+ justify-content: center;
100
+ align-items: center;
101
+ display: flex;
102
+ }
103
+
104
+ @media (hover: hover) {
105
+ .seed-menu-sheet__closeButton:is(:hover, [data-hover]) {
106
+ background-color: var(--seed-color-bg-neutral-weak-pressed);
107
+ }
108
+ }
109
+
110
+ @media (hover: none) {
111
+ .seed-menu-sheet__closeButton:is(:active, [data-active]) {
112
+ background-color: var(--seed-color-bg-neutral-weak-pressed);
113
+ }
114
+ }
115
+
116
+ .seed-menu-sheet__closeButton {
117
+ outline: var(--seed-dimension-x0_5) solid transparent;
118
+ outline-offset: var(--seed-dimension-x0_5);
119
+ }
120
+
121
+ .seed-menu-sheet__closeButton:is(:focus-visible, [data-focus-visible]) {
122
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
123
+ outline-offset: var(--seed-dimension-x0_5);
124
+ }
125
+
126
+ .seed-menu-sheet__backdrop--skipAnimation_false:is([data-state="open"], [data-open]) {
127
+ animation: seed-enter;
128
+ animation-timing-function: var(--seed-timing-function-enter);
129
+ animation-duration: var(--seed-duration-d2);
130
+ --seed-enter-translate-x: 0;
131
+ --seed-enter-translate-y: 0;
132
+ --seed-enter-opacity: 0;
133
+ --seed-enter-scale: 1;
134
+ }
135
+
136
+ .seed-menu-sheet__backdrop--skipAnimation_false:not(:is([data-state="open"], [data-open])) {
137
+ animation: seed-exit;
138
+ animation-timing-function: var(--seed-timing-function-exit);
139
+ animation-duration: var(--seed-duration-d2);
140
+ --seed-exit-translate-x: 0;
141
+ --seed-exit-translate-y: 0;
142
+ --seed-exit-opacity: 0;
143
+ --seed-exit-scale: 1;
144
+ animation-fill-mode: forwards;
145
+ }
146
+
147
+ .seed-menu-sheet__content--skipAnimation_false:is([data-state="open"], [data-open]) {
148
+ animation: seed-enter;
149
+ animation-timing-function: var(--seed-timing-function-enter-expressive);
150
+ animation-duration: var(--seed-duration-d6);
151
+ --seed-enter-translate-x: 0;
152
+ --seed-enter-translate-y: 100%;
153
+ --seed-enter-opacity: 1;
154
+ --seed-enter-scale: 1;
155
+ }
156
+
157
+ .seed-menu-sheet__content--skipAnimation_false:not(:is([data-state="open"], [data-open])) {
158
+ animation: seed-exit;
159
+ animation-timing-function: var(--seed-timing-function-exit);
160
+ animation-duration: var(--seed-duration-d4);
161
+ --seed-exit-translate-x: 0;
162
+ --seed-exit-translate-y: 100%;
163
+ --seed-exit-opacity: 1;
164
+ --seed-exit-scale: 1;
165
+ animation-fill-mode: forwards;
166
+ }
167
+ }
@@ -0,0 +1,74 @@
1
+ import './menu-sheet.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const menuSheetSlotNames = [
5
+ [
6
+ "backdrop",
7
+ "seed-menu-sheet__backdrop"
8
+ ],
9
+ [
10
+ "positioner",
11
+ "seed-menu-sheet__positioner"
12
+ ],
13
+ [
14
+ "content",
15
+ "seed-menu-sheet__content"
16
+ ],
17
+ [
18
+ "header",
19
+ "seed-menu-sheet__header"
20
+ ],
21
+ [
22
+ "title",
23
+ "seed-menu-sheet__title"
24
+ ],
25
+ [
26
+ "description",
27
+ "seed-menu-sheet__description"
28
+ ],
29
+ [
30
+ "list",
31
+ "seed-menu-sheet__list"
32
+ ],
33
+ [
34
+ "group",
35
+ "seed-menu-sheet__group"
36
+ ],
37
+ [
38
+ "footer",
39
+ "seed-menu-sheet__footer"
40
+ ],
41
+ [
42
+ "closeButton",
43
+ "seed-menu-sheet__closeButton"
44
+ ]
45
+ ];
46
+
47
+ const defaultVariant = {
48
+ "skipAnimation": false
49
+ };
50
+
51
+ const compoundVariants = [];
52
+
53
+ export const menuSheetVariantMap = {
54
+ "skipAnimation": [
55
+ false
56
+ ]
57
+ };
58
+
59
+ export const menuSheetVariantKeys = Object.keys(menuSheetVariantMap);
60
+
61
+ export function menuSheet(props) {
62
+ return Object.fromEntries(
63
+ menuSheetSlotNames.map(([slot, className]) => {
64
+ return [
65
+ slot,
66
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
67
+ ];
68
+ }),
69
+ );
70
+ }
71
+
72
+ Object.assign(menuSheet, { splitVariantProps: (props) => splitVariantProps(props, menuSheetVariantMap) });
73
+
74
+ // @recipe(seed): menu-sheet
@@ -0,0 +1,35 @@
1
+ @layer seed-components {
2
+ .seed-notification-badge-positioner {
3
+ box-sizing: border-box;
4
+ justify-content: center;
5
+ align-items: center;
6
+ display: inline-flex;
7
+ position: absolute;
8
+ }
9
+
10
+ .seed-notification-badge-positioner--attach_icon {
11
+ bottom: auto;
12
+ left: auto;
13
+ translate: 100% -100%;
14
+ }
15
+
16
+ .seed-notification-badge-positioner--attach_text {
17
+ bottom: auto;
18
+ left: auto;
19
+ translate: 100%;
20
+ }
21
+
22
+ .seed-notification-badge-positioner--size_large-attach_icon {
23
+ top: 14px;
24
+ right: 8px;
25
+ }
26
+
27
+ .seed-notification-badge-positioner--size_small-attach_icon {
28
+ top: 7px;
29
+ right: 7px;
30
+ }
31
+
32
+ .seed-notification-badge-positioner--size_large-attach_text, .seed-notification-badge-positioner--size_small-attach_text {
33
+ right: -2px;
34
+ }
35
+ }
@@ -0,0 +1,51 @@
1
+ import './notification-badge-positioner.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const defaultVariant = {
5
+ "size": "large",
6
+ "attach": "icon"
7
+ };
8
+
9
+ const compoundVariants = [
10
+ {
11
+ "size": "large",
12
+ "attach": "icon"
13
+ },
14
+ {
15
+ "size": "small",
16
+ "attach": "icon"
17
+ },
18
+ {
19
+ "size": "large",
20
+ "attach": "text"
21
+ },
22
+ {
23
+ "size": "small",
24
+ "attach": "text"
25
+ }
26
+ ];
27
+
28
+ export const notificationBadgePositionerVariantMap = {
29
+ "attach": [
30
+ "icon",
31
+ "text"
32
+ ],
33
+ "size": [
34
+ "small",
35
+ "large"
36
+ ]
37
+ };
38
+
39
+ export const notificationBadgePositionerVariantKeys = Object.keys(notificationBadgePositionerVariantMap);
40
+
41
+ export function notificationBadgePositioner(props) {
42
+ return createClassName(
43
+ "seed-notification-badge-positioner",
44
+ mergeVariants(defaultVariant, props),
45
+ compoundVariants,
46
+ );
47
+ }
48
+
49
+ Object.assign(notificationBadgePositioner, { splitVariantProps: (props) => splitVariantProps(props, notificationBadgePositionerVariantMap) });
50
+
51
+ // @recipe(seed): notification-badge-positioner
@@ -0,0 +1,33 @@
1
+ @layer seed-components {
2
+ .seed-notification-badge {
3
+ box-sizing: border-box;
4
+ text-transform: none;
5
+ text-align: start;
6
+ -webkit-font-smoothing: antialiased;
7
+ -moz-osx-font-smoothing: grayscale;
8
+ background-color: var(--seed-color-bg-brand-solid);
9
+ color: var(--seed-color-palette-static-white);
10
+ justify-content: center;
11
+ align-items: center;
12
+ text-decoration: none;
13
+ display: inline-flex;
14
+ }
15
+
16
+ .seed-notification-badge--size_small {
17
+ border-radius: var(--seed-radius-full);
18
+ width: 6px;
19
+ height: 6px;
20
+ }
21
+
22
+ .seed-notification-badge--size_large {
23
+ border-radius: var(--seed-radius-full);
24
+ min-height: 18px;
25
+ padding-left: var(--seed-dimension-x1);
26
+ padding-right: var(--seed-dimension-x1);
27
+ font-size: var(--seed-font-size-t1);
28
+ line-height: var(--seed-line-height-t1);
29
+ font-weight: var(--seed-font-weight-bold);
30
+ padding-top: 0;
31
+ padding-bottom: 0;
32
+ }
33
+ }