@seed-design/css 1.2.3 → 1.2.5

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 +1013 -174
  2. package/all.layered.css +9069 -0
  3. package/all.layered.min.css +1 -0
  4. package/all.min.css +1 -1
  5. package/base.css +5 -2
  6. package/base.layered.css +857 -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,134 @@
1
+ @layer seed-components {
2
+ .seed-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-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-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-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-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
+ border-top-left-radius: var(--seed-radius-r5);
47
+ border-top-right-radius: var(--seed-radius-r5);
48
+ flex-direction: column;
49
+ flex: 1;
50
+ display: flex;
51
+ position: relative;
52
+ overflow: hidden;
53
+ }
54
+
55
+ .seed-action-sheet__content:not(:is([data-state="open"], [data-open])) {
56
+ animation: seed-exit;
57
+ animation-timing-function: var(--seed-timing-function-exit);
58
+ animation-duration: var(--seed-duration-d4);
59
+ --seed-exit-translate-x: 0;
60
+ --seed-exit-translate-y: 100%;
61
+ --seed-exit-opacity: 1;
62
+ --seed-exit-scale: 1;
63
+ animation-fill-mode: forwards;
64
+ }
65
+
66
+ .seed-action-sheet__content:is([data-state="open"], [data-open]) {
67
+ animation: seed-enter;
68
+ animation-timing-function: var(--seed-timing-function-enter-expressive);
69
+ animation-duration: var(--seed-duration-d6);
70
+ --seed-enter-translate-x: 0;
71
+ --seed-enter-translate-y: 100%;
72
+ --seed-enter-opacity: 1;
73
+ --seed-enter-scale: 1;
74
+ }
75
+
76
+ .seed-action-sheet__header {
77
+ padding-inline: var(--seed-dimension-spacing-x-global-gutter);
78
+ padding-block: var(--seed-dimension-x3_5);
79
+ align-items: center;
80
+ gap: var(--seed-dimension-x1);
81
+ flex-direction: column;
82
+ display: flex;
83
+ position: relative;
84
+ }
85
+
86
+ .seed-action-sheet__header:after {
87
+ content: "";
88
+ left: var(--seed-dimension-spacing-x-global-gutter);
89
+ right: var(--seed-dimension-spacing-x-global-gutter);
90
+ background: var(--seed-color-stroke-neutral-muted);
91
+ height: 1px;
92
+ display: block;
93
+ position: absolute;
94
+ bottom: 0;
95
+ }
96
+
97
+ .seed-action-sheet__title {
98
+ color: var(--seed-color-fg-neutral-muted);
99
+ font-size: var(--seed-font-size-t4);
100
+ line-height: var(--seed-line-height-t4);
101
+ font-weight: var(--seed-font-weight-bold);
102
+ }
103
+
104
+ .seed-action-sheet__description {
105
+ color: var(--seed-color-fg-neutral-muted);
106
+ font-size: var(--seed-font-size-t3);
107
+ line-height: var(--seed-line-height-t3);
108
+ font-weight: var(--seed-font-weight-regular);
109
+ }
110
+
111
+ .seed-action-sheet__list {
112
+ flex-direction: column;
113
+ align-items: stretch;
114
+ display: flex;
115
+ }
116
+
117
+ .seed-action-sheet__closeButton {
118
+ background-color: var(--seed-color-bg-layer-floating);
119
+ min-height: 50px;
120
+ padding-inline: var(--seed-dimension-spacing-x-global-gutter);
121
+ padding-block: var(--seed-dimension-x3_5);
122
+ color: var(--seed-color-fg-neutral);
123
+ font-size: var(--seed-font-size-t5);
124
+ line-height: var(--seed-line-height-t5);
125
+ font-weight: var(--seed-font-weight-bold);
126
+ justify-content: center;
127
+ align-items: center;
128
+ display: flex;
129
+ }
130
+
131
+ .seed-action-sheet__closeButton:is(:active, [data-active]) {
132
+ background-color: var(--seed-color-bg-layer-floating-pressed);
133
+ }
134
+ }
@@ -0,0 +1,60 @@
1
+ import './action-sheet.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const actionSheetSlotNames = [
5
+ [
6
+ "backdrop",
7
+ "seed-action-sheet__backdrop"
8
+ ],
9
+ [
10
+ "positioner",
11
+ "seed-action-sheet__positioner"
12
+ ],
13
+ [
14
+ "content",
15
+ "seed-action-sheet__content"
16
+ ],
17
+ [
18
+ "header",
19
+ "seed-action-sheet__header"
20
+ ],
21
+ [
22
+ "title",
23
+ "seed-action-sheet__title"
24
+ ],
25
+ [
26
+ "description",
27
+ "seed-action-sheet__description"
28
+ ],
29
+ [
30
+ "list",
31
+ "seed-action-sheet__list"
32
+ ],
33
+ [
34
+ "closeButton",
35
+ "seed-action-sheet__closeButton"
36
+ ]
37
+ ];
38
+
39
+ const defaultVariant = {};
40
+
41
+ const compoundVariants = [];
42
+
43
+ export const actionSheetVariantMap = {};
44
+
45
+ export const actionSheetVariantKeys = Object.keys(actionSheetVariantMap);
46
+
47
+ export function actionSheet(props) {
48
+ return Object.fromEntries(
49
+ actionSheetSlotNames.map(([slot, className]) => {
50
+ return [
51
+ slot,
52
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
53
+ ];
54
+ }),
55
+ );
56
+ }
57
+
58
+ Object.assign(actionSheet, { splitVariantProps: (props) => splitVariantProps(props, actionSheetVariantMap) });
59
+
60
+ // @recipe(seed): action-sheet
@@ -0,0 +1,165 @@
1
+ @layer seed-components {
2
+ .seed-app-bar-main__root {
3
+ flex: 1;
4
+ }
5
+
6
+ .seed-app-bar-main__title, .seed-app-bar-main__subtitle {
7
+ white-space: nowrap;
8
+ text-overflow: ellipsis;
9
+ overflow: hidden;
10
+ }
11
+
12
+ .seed-app-bar-main__title--layout_titleOnly {
13
+ font-size: var(--seed-font-size-t6-static);
14
+ font-weight: var(--seed-font-weight-bold);
15
+ line-height: var(--seed-line-height-t6-static);
16
+ }
17
+
18
+ .seed-app-bar-main__title--layout_withSubtitle {
19
+ font-size: var(--seed-font-size-t5-static);
20
+ font-weight: var(--seed-font-weight-bold);
21
+ line-height: var(--seed-line-height-t5-static);
22
+ }
23
+
24
+ .seed-app-bar-main__subtitle--layout_withSubtitle {
25
+ font-size: var(--seed-font-size-t2-static);
26
+ font-weight: var(--seed-font-weight-regular);
27
+ line-height: var(--seed-line-height-t2-static);
28
+ }
29
+
30
+ .seed-app-bar-main__root--theme_cupertino {
31
+ text-align: center;
32
+ top: var(--seed-safe-area-top);
33
+ padding-left: var(--centered-title-padding-x, 0);
34
+ padding-right: var(--centered-title-padding-x, 0);
35
+ pointer-events: none;
36
+ justify-content: center;
37
+ align-items: center;
38
+ display: flex;
39
+ position: absolute;
40
+ bottom: 0;
41
+ left: 0;
42
+ right: 0;
43
+ }
44
+
45
+ .seed-app-bar-main__root--theme_android {
46
+ justify-content: flex-start;
47
+ align-items: center;
48
+ width: 100%;
49
+ min-width: 0;
50
+ height: 100%;
51
+ display: flex;
52
+ }
53
+
54
+ [data-global-transition-state="enter-active"] .seed-app-bar-main__root--transitionStyle_slideFromRightIOS[data-activity-is-top] {
55
+ --seed-enter-translate-x: 25%;
56
+ --seed-enter-translate-y: 0;
57
+ --seed-enter-opacity: 0;
58
+ --seed-enter-scale: 1;
59
+ opacity: 1;
60
+ animation: .35s cubic-bezier(.2, .1, .21, .99) seed-enter;
61
+ transform: translate3d(0, 0, 0);
62
+ }
63
+
64
+ [data-global-transition-state="exit-active"] .seed-app-bar-main__root--transitionStyle_slideFromRightIOS[data-activity-is-top] {
65
+ transform: translate3d(calc(var(--swipe-back-displacement, 0) * .15), 0, 0);
66
+ opacity: calc(1 - var(--swipe-back-displacement-ratio, 0) * 3);
67
+ --seed-exit-translate-x: 25%;
68
+ --seed-exit-translate-y: 0;
69
+ --seed-exit-opacity: 0;
70
+ --seed-exit-scale: 1;
71
+ animation: .35s cubic-bezier(.2, .1, .21, .99) forwards seed-exit;
72
+ }
73
+
74
+ [data-global-transition-state="enter-done"] .seed-app-bar-main__root--transitionStyle_slideFromRightIOS[data-activity-is-top] {
75
+ --seed-enter-translate-x: calc(var(--swipe-back-displacement, 0) * .15);
76
+ --seed-enter-translate-y: 0;
77
+ --seed-enter-opacity: calc(1 - var(--swipe-back-displacement-ratio, 0) * 3);
78
+ --seed-enter-scale: 1;
79
+ opacity: 1;
80
+ animation: .35s cubic-bezier(.2, .1, .21, .99) seed-enter;
81
+ transform: translate3d(0, 0, 0);
82
+ }
83
+
84
+ [data-swipe-back-state="swiping"] .seed-app-bar-main__root--transitionStyle_slideFromRightIOS[data-activity-is-top]:not(#\#) {
85
+ transform: translate3d(calc(var(--swipe-back-displacement, 0) * .15), 0, 0);
86
+ opacity: calc(1 - var(--swipe-back-displacement-ratio, 0) * 3);
87
+ animation: none;
88
+ }
89
+
90
+ [data-swipe-back-state="canceling"] .seed-app-bar-main__root--transitionStyle_slideFromRightIOS[data-activity-is-top]:not(#\#) {
91
+ opacity: 1;
92
+ transition: transform .35s cubic-bezier(.2, .1, .21, .99), opacity .35s cubic-bezier(.2, .1, .21, .99);
93
+ transform: translate3d(0, 0, 0);
94
+ animation: none !important;
95
+ }
96
+
97
+ [data-swipe-back-state="completing"] .seed-app-bar-main__root--transitionStyle_slideFromRightIOS[data-activity-is-top]:not(#\#) {
98
+ opacity: 0;
99
+ transition: transform .35s cubic-bezier(.2, .1, .21, .99), opacity .35s cubic-bezier(.2, .1, .21, .99);
100
+ transform: translate3d(25%, 0, 0);
101
+ animation: none !important;
102
+ }
103
+
104
+ [data-global-transition-state="enter-active"][data-top-activity-type="full-screen"] .seed-app-bar-main__root--transitionStyle_slideFromRightIOS:not([data-activity-is-top]) {
105
+ opacity: 1;
106
+ --seed-exit-translate-x: -25%;
107
+ --seed-exit-translate-y: 0;
108
+ --seed-exit-opacity: 0;
109
+ --seed-exit-scale: 1;
110
+ animation: .35s cubic-bezier(.2, .1, .21, .99) forwards seed-exit;
111
+ transform: translate3d(0, 0, 0);
112
+ }
113
+
114
+ [data-global-transition-state="exit-active"][data-top-activity-type="full-screen"] .seed-app-bar-main__root--transitionStyle_slideFromRightIOS:not([data-activity-is-top]) {
115
+ --seed-enter-translate-x: calc(-25% + var(--swipe-back-displacement, 0) * .15);
116
+ --seed-enter-translate-y: 0;
117
+ --seed-enter-opacity: calc(var(--swipe-back-displacement-ratio, 0));
118
+ --seed-enter-scale: 1;
119
+ opacity: 1;
120
+ animation: .35s cubic-bezier(.2, .1, .21, .99) seed-enter;
121
+ transform: translate3d(0, 0, 0);
122
+ }
123
+
124
+ [data-global-transition-state="enter-done"][data-top-activity-type="full-screen"] .seed-app-bar-main__root--transitionStyle_slideFromRightIOS:not([data-activity-is-top]) {
125
+ transform: translate3d(calc(-25% + var(--swipe-back-displacement, 0) * .15), 0, 0);
126
+ opacity: calc(var(--swipe-back-displacement-ratio, 0));
127
+ --seed-exit-translate-x: -25%;
128
+ --seed-exit-translate-y: 0;
129
+ --seed-exit-opacity: 0;
130
+ --seed-exit-scale: 1;
131
+ animation: .35s cubic-bezier(.2, .1, .21, .99) forwards seed-exit;
132
+ }
133
+
134
+ [data-swipe-back-state="swiping"] .seed-app-bar-main__root--transitionStyle_slideFromRightIOS:not([data-activity-is-top]):not(#\#) {
135
+ transform: translate3d(calc(-25% + var(--swipe-back-displacement, 0) * .15), 0, 0);
136
+ opacity: calc(var(--swipe-back-displacement-ratio, 0));
137
+ animation: none;
138
+ }
139
+
140
+ [data-swipe-back-state="canceling"] .seed-app-bar-main__root--transitionStyle_slideFromRightIOS:not([data-activity-is-top]):not(#\#) {
141
+ opacity: 0;
142
+ transition: transform .35s cubic-bezier(.2, .1, .21, .99), opacity .35s cubic-bezier(.2, .1, .21, .99);
143
+ transform: translate3d(-25%, 0, 0);
144
+ animation: none !important;
145
+ }
146
+
147
+ [data-swipe-back-state="completing"] .seed-app-bar-main__root--transitionStyle_slideFromRightIOS:not([data-activity-is-top]):not(#\#) {
148
+ opacity: 1;
149
+ transition: transform .35s cubic-bezier(.2, .1, .21, .99), opacity .35s cubic-bezier(.2, .1, .21, .99);
150
+ transform: translate3d(0, 0, 0);
151
+ animation: none !important;
152
+ }
153
+
154
+ .seed-app-bar-main__root--tone_layer, .seed-app-bar-main__title--tone_layer {
155
+ color: var(--seed-color-fg-neutral);
156
+ }
157
+
158
+ .seed-app-bar-main__subtitle--tone_layer {
159
+ color: var(--seed-color-fg-neutral-muted);
160
+ }
161
+
162
+ .seed-app-bar-main__root--tone_transparent, .seed-app-bar-main__title--tone_transparent, .seed-app-bar-main__subtitle--tone_transparent {
163
+ color: var(--seed-color-palette-static-white);
164
+ }
165
+ }
@@ -0,0 +1,63 @@
1
+ import './app-bar-main.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const appBarMainSlotNames = [
5
+ [
6
+ "root",
7
+ "seed-app-bar-main__root"
8
+ ],
9
+ [
10
+ "title",
11
+ "seed-app-bar-main__title"
12
+ ],
13
+ [
14
+ "subtitle",
15
+ "seed-app-bar-main__subtitle"
16
+ ]
17
+ ];
18
+
19
+ const defaultVariant = {
20
+ "layout": "titleOnly",
21
+ "theme": "cupertino",
22
+ "transitionStyle": "slideFromRightIOS",
23
+ "tone": "layer"
24
+ };
25
+
26
+ const compoundVariants = [];
27
+
28
+ export const appBarMainVariantMap = {
29
+ "layout": [
30
+ "titleOnly",
31
+ "withSubtitle"
32
+ ],
33
+ "theme": [
34
+ "cupertino",
35
+ "android"
36
+ ],
37
+ "transitionStyle": [
38
+ "slideFromRightIOS",
39
+ "fadeFromBottomAndroid",
40
+ "fadeIn"
41
+ ],
42
+ "tone": [
43
+ "layer",
44
+ "transparent"
45
+ ]
46
+ };
47
+
48
+ export const appBarMainVariantKeys = Object.keys(appBarMainVariantMap);
49
+
50
+ export function appBarMain(props) {
51
+ return Object.fromEntries(
52
+ appBarMainSlotNames.map(([slot, className]) => {
53
+ return [
54
+ slot,
55
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
56
+ ];
57
+ }),
58
+ );
59
+ }
60
+
61
+ Object.assign(appBarMain, { splitVariantProps: (props) => splitVariantProps(props, appBarMainVariantMap) });
62
+
63
+ // @recipe(seed): app-bar-main
@@ -36,6 +36,14 @@
36
36
  background: none;
37
37
  font-family: inherit;
38
38
  padding: 0;
39
+ border-radius: var(--seed-radius-r1);
40
+ transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
41
+ outline: var(--seed-dimension-x0_5) solid transparent;
42
+ outline-offset: calc(var(--seed-dimension-x0_5) * -1);
43
+ }
44
+ .seed-app-bar__iconButton:is(:focus-visible, [data-focus-visible]) {
45
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
46
+ outline-offset: calc(var(--seed-dimension-x0_5) * -1);
39
47
  }
40
48
  .seed-app-bar__icon {
41
49
  display: inline-block;