@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,47 @@
1
+ import './field-label.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const fieldLabelSlotNames = [
5
+ [
6
+ "root",
7
+ "seed-field-label__root"
8
+ ],
9
+ [
10
+ "indicatorText",
11
+ "seed-field-label__indicatorText"
12
+ ],
13
+ [
14
+ "indicatorIcon",
15
+ "seed-field-label__indicatorIcon"
16
+ ]
17
+ ];
18
+
19
+ const defaultVariant = {
20
+ "weight": "medium"
21
+ };
22
+
23
+ const compoundVariants = [];
24
+
25
+ export const fieldLabelVariantMap = {
26
+ "weight": [
27
+ "medium",
28
+ "bold"
29
+ ]
30
+ };
31
+
32
+ export const fieldLabelVariantKeys = Object.keys(fieldLabelVariantMap);
33
+
34
+ export function fieldLabel(props) {
35
+ return Object.fromEntries(
36
+ fieldLabelSlotNames.map(([slot, className]) => {
37
+ return [
38
+ slot,
39
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
40
+ ];
41
+ }),
42
+ );
43
+ }
44
+
45
+ Object.assign(fieldLabel, { splitVariantProps: (props) => splitVariantProps(props, fieldLabelVariantMap) });
46
+
47
+ // @recipe(seed): field-label
@@ -0,0 +1,81 @@
1
+ @layer seed-components {
2
+ .seed-field__root {
3
+ gap: var(--seed-dimension-x2);
4
+ flex-direction: column;
5
+ width: 100%;
6
+ display: flex;
7
+ }
8
+
9
+ .seed-field__header {
10
+ padding-left: var(--seed-dimension-x0_5);
11
+ padding-right: var(--seed-dimension-x0_5);
12
+ justify-content: space-between;
13
+ align-items: center;
14
+ gap: var(--seed-dimension-x2_5);
15
+ display: flex;
16
+ }
17
+
18
+ .seed-field__footer {
19
+ padding-left: var(--seed-dimension-x0_5);
20
+ padding-right: var(--seed-dimension-x0_5);
21
+ align-items: flex-start;
22
+ gap: var(--seed-dimension-x2);
23
+ display: flex;
24
+ }
25
+
26
+ .seed-field__description {
27
+ color: var(--seed-color-fg-neutral-subtle);
28
+ font-weight: var(--seed-font-weight-regular);
29
+ font-size: var(--seed-font-size-t4);
30
+ line-height: var(--seed-line-height-t4);
31
+ --seed-prefix-icon-size: var(--seed-dimension-x4);
32
+ --seed-prefix-icon-color: var(--seed-color-fg-neutral-subtle);
33
+ --seed-prefix-icon-margin-right: var(--seed-dimension-x1_5);
34
+ --seed-prefix-icon-margin-top: calc((var(--seed-line-height-t4) - var(--seed-dimension-x4)) / 2);
35
+ display: flex;
36
+ }
37
+
38
+ .seed-field__errorMessage {
39
+ color: var(--seed-color-fg-critical);
40
+ font-weight: var(--seed-font-weight-regular);
41
+ font-size: var(--seed-font-size-t4);
42
+ line-height: var(--seed-line-height-t4);
43
+ --seed-prefix-icon-size: var(--seed-dimension-x4);
44
+ --seed-prefix-icon-color: var(--seed-color-fg-critical);
45
+ --seed-prefix-icon-margin-right: var(--seed-dimension-x1_5);
46
+ --seed-prefix-icon-margin-top: calc((var(--seed-line-height-t4) - var(--seed-dimension-x4)) / 2);
47
+ display: flex;
48
+ }
49
+
50
+ .seed-field__characterCountArea {
51
+ font-size: var(--seed-font-size-t4);
52
+ line-height: var(--seed-line-height-t4);
53
+ margin-left: auto;
54
+ }
55
+
56
+ .seed-field__characterCount {
57
+ color: var(--seed-color-fg-neutral);
58
+ font-weight: var(--seed-font-weight-regular);
59
+ font-size: var(--seed-font-size-t4);
60
+ line-height: var(--seed-line-height-t4);
61
+ }
62
+
63
+ .seed-field__characterCount[data-empty]:not(:is(:invalid, [data-invalid])) {
64
+ color: var(--seed-color-fg-neutral-subtle);
65
+ }
66
+
67
+ .seed-field__characterCount:is(:invalid, [data-invalid]) {
68
+ color: var(--seed-color-fg-critical);
69
+ }
70
+
71
+ .seed-field__maxCharacterCount {
72
+ color: var(--seed-color-fg-neutral-subtle);
73
+ font-weight: var(--seed-font-weight-regular);
74
+ font-size: var(--seed-font-size-t4);
75
+ line-height: var(--seed-line-height-t4);
76
+ }
77
+
78
+ .seed-field__maxCharacterCount:is(:invalid, [data-invalid]) {
79
+ color: var(--seed-color-fg-critical);
80
+ }
81
+ }
@@ -0,0 +1,60 @@
1
+ import './field.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const fieldSlotNames = [
5
+ [
6
+ "root",
7
+ "seed-field__root"
8
+ ],
9
+ [
10
+ "header",
11
+ "seed-field__header"
12
+ ],
13
+ [
14
+ "footer",
15
+ "seed-field__footer"
16
+ ],
17
+ [
18
+ "description",
19
+ "seed-field__description"
20
+ ],
21
+ [
22
+ "errorMessage",
23
+ "seed-field__errorMessage"
24
+ ],
25
+ [
26
+ "characterCountArea",
27
+ "seed-field__characterCountArea"
28
+ ],
29
+ [
30
+ "characterCount",
31
+ "seed-field__characterCount"
32
+ ],
33
+ [
34
+ "maxCharacterCount",
35
+ "seed-field__maxCharacterCount"
36
+ ]
37
+ ];
38
+
39
+ const defaultVariant = {};
40
+
41
+ const compoundVariants = [];
42
+
43
+ export const fieldVariantMap = {};
44
+
45
+ export const fieldVariantKeys = Object.keys(fieldVariantMap);
46
+
47
+ export function field(props) {
48
+ return Object.fromEntries(
49
+ fieldSlotNames.map(([slot, className]) => {
50
+ return [
51
+ slot,
52
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
53
+ ];
54
+ }),
55
+ );
56
+ }
57
+
58
+ Object.assign(field, { splitVariantProps: (props) => splitVariantProps(props, fieldVariantMap) });
59
+
60
+ // @recipe(seed): field
@@ -10,9 +10,12 @@
10
10
  -moz-osx-font-smoothing: grayscale;
11
11
  text-decoration: none;
12
12
  font-family: inherit;
13
+ outline: var(--seed-dimension-x0_5) solid transparent;
14
+ outline-offset: var(--seed-dimension-x0_5);
13
15
  }
14
- .seed-floating-action-button__root:is(:focus, [data-focus]) {
15
- outline: none;
16
+ .seed-floating-action-button__root:is(:focus-visible, [data-focus-visible]) {
17
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
18
+ outline-offset: var(--seed-dimension-x0_5);
16
19
  }
17
20
  .seed-floating-action-button__root:is(:disabled, [disabled], [data-disabled]) {
18
21
  cursor: not-allowed;
@@ -27,10 +30,17 @@
27
30
  font-size: var(--seed-font-size-t5);
28
31
  line-height: var(--seed-line-height-t5);
29
32
  font-weight: var(--seed-font-weight-bold);
30
- transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing), max-width var(--seed-duration-d4) var(--seed-timing-function-easing), height var(--seed-duration-d4) var(--seed-timing-function-easing), padding var(--seed-duration-d4) var(--seed-timing-function-easing);
33
+ transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing), max-width var(--seed-duration-d4) var(--seed-timing-function-easing), height var(--seed-duration-d4) var(--seed-timing-function-easing), padding var(--seed-duration-d4) var(--seed-timing-function-easing), outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
31
34
  }
32
- .seed-floating-action-button__root:is(:active, [data-active]) {
33
- background: var(--seed-color-bg-brand-solid-pressed);
35
+ @media (hover: hover) {
36
+ .seed-floating-action-button__root:is(:hover, [data-hover]) {
37
+ background: var(--seed-color-bg-brand-solid-pressed);
38
+ }
39
+ }
40
+ @media (hover: none) {
41
+ .seed-floating-action-button__root:is(:active, [data-active]) {
42
+ background: var(--seed-color-bg-brand-solid-pressed);
43
+ }
34
44
  }
35
45
  .seed-floating-action-button__icon {
36
46
  display: inline-flex;
@@ -0,0 +1,101 @@
1
+ @layer seed-components {
2
+ .seed-floating-action-button__root {
3
+ box-sizing: border-box;
4
+ cursor: pointer;
5
+ text-transform: none;
6
+ -webkit-font-smoothing: antialiased;
7
+ -moz-osx-font-smoothing: grayscale;
8
+ outline: var(--seed-dimension-x0_5) solid transparent;
9
+ outline-offset: var(--seed-dimension-x0_5);
10
+ border: none;
11
+ justify-content: center;
12
+ align-items: center;
13
+ font-family: inherit;
14
+ text-decoration: none;
15
+ display: inline-flex;
16
+ }
17
+
18
+ .seed-floating-action-button__root:is(:focus-visible, [data-focus-visible]) {
19
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
20
+ outline-offset: var(--seed-dimension-x0_5);
21
+ }
22
+
23
+ .seed-floating-action-button__root:is(:disabled, [disabled], [data-disabled]) {
24
+ cursor: not-allowed;
25
+ }
26
+
27
+ .seed-floating-action-button__root {
28
+ background: var(--seed-color-bg-brand-solid);
29
+ border-radius: var(--seed-radius-full);
30
+ box-shadow: var(--seed-shadow-s3);
31
+ color: var(--seed-color-palette-static-white);
32
+ font-size: var(--seed-font-size-t5);
33
+ line-height: var(--seed-line-height-t5);
34
+ font-weight: var(--seed-font-weight-bold);
35
+ transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing), max-width var(--seed-duration-d4) var(--seed-timing-function-easing), height var(--seed-duration-d4) var(--seed-timing-function-easing), padding var(--seed-duration-d4) var(--seed-timing-function-easing), outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
36
+ position: relative;
37
+ overflow: hidden;
38
+ }
39
+
40
+ @media (hover: hover) {
41
+ .seed-floating-action-button__root:is(:hover, [data-hover]) {
42
+ background: var(--seed-color-bg-brand-solid-pressed);
43
+ }
44
+ }
45
+
46
+ @media (hover: none) {
47
+ .seed-floating-action-button__root:is(:active, [data-active]) {
48
+ background: var(--seed-color-bg-brand-solid-pressed);
49
+ }
50
+ }
51
+
52
+ .seed-floating-action-button__icon {
53
+ color: var(--seed-color-palette-static-white);
54
+ transition: margin-right var(--seed-duration-d4) var(--seed-timing-function-easing), width var(--seed-duration-d4) var(--seed-timing-function-easing), height var(--seed-duration-d4) var(--seed-timing-function-easing);
55
+ flex-shrink: 0;
56
+ justify-content: center;
57
+ align-items: center;
58
+ display: inline-flex;
59
+ }
60
+
61
+ .seed-floating-action-button__label {
62
+ word-break: keep-all;
63
+ white-space: nowrap;
64
+ overflow: hidden;
65
+ }
66
+
67
+ .seed-floating-action-button__root--extended_true {
68
+ padding-left: var(--seed-dimension-x4_5);
69
+ padding-right: var(--seed-dimension-x4_5);
70
+ width: fit-content;
71
+ max-width: 999px;
72
+ height: 48px;
73
+ }
74
+
75
+ .seed-floating-action-button__icon--extended_true {
76
+ width: var(--seed-dimension-x5);
77
+ height: var(--seed-dimension-x5);
78
+ margin-right: var(--seed-dimension-x1);
79
+ transition: none;
80
+ }
81
+
82
+ .seed-floating-action-button__root--extended_false {
83
+ min-width: 56px;
84
+ max-width: 56px;
85
+ height: 56px;
86
+ padding: 0;
87
+ }
88
+
89
+ .seed-floating-action-button__icon--extended_false {
90
+ width: var(--seed-dimension-x6);
91
+ height: var(--seed-dimension-x6);
92
+ position: absolute;
93
+ top: 50%;
94
+ left: 50%;
95
+ transform: translate(-50%, -50%);
96
+ }
97
+
98
+ .seed-floating-action-button__label--extended_false {
99
+ opacity: 0;
100
+ }
101
+ }
@@ -0,0 +1,47 @@
1
+ import './floating-action-button.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const floatingActionButtonSlotNames = [
5
+ [
6
+ "root",
7
+ "seed-floating-action-button__root"
8
+ ],
9
+ [
10
+ "icon",
11
+ "seed-floating-action-button__icon"
12
+ ],
13
+ [
14
+ "label",
15
+ "seed-floating-action-button__label"
16
+ ]
17
+ ];
18
+
19
+ const defaultVariant = {
20
+ "extended": true
21
+ };
22
+
23
+ const compoundVariants = [];
24
+
25
+ export const floatingActionButtonVariantMap = {
26
+ "extended": [
27
+ true,
28
+ false
29
+ ]
30
+ };
31
+
32
+ export const floatingActionButtonVariantKeys = Object.keys(floatingActionButtonVariantMap);
33
+
34
+ export function floatingActionButton(props) {
35
+ return Object.fromEntries(
36
+ floatingActionButtonSlotNames.map(([slot, className]) => {
37
+ return [
38
+ slot,
39
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
40
+ ];
41
+ }),
42
+ );
43
+ }
44
+
45
+ Object.assign(floatingActionButton, { splitVariantProps: (props) => splitVariantProps(props, floatingActionButtonVariantMap) });
46
+
47
+ // @recipe(seed): floating-action-button
@@ -80,4 +80,12 @@
80
80
  color: var(--seed-color-fg-neutral-inverted);
81
81
  --seed-icon-size: var(--seed-dimension-x3_5);
82
82
  --seed-icon-color: var(--seed-color-fg-neutral-inverted);
83
+ border-radius: var(--seed-radius-r3);
84
+ transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
85
+ outline: var(--seed-dimension-x0_5) solid transparent;
86
+ outline-offset: calc(var(--seed-dimension-x0_5) * -1);
87
+ }
88
+ .seed-help-bubble__closeButton:is(:focus-visible, [data-focus-visible]) {
89
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
90
+ outline-offset: calc(var(--seed-dimension-x0_5) * -1);
83
91
  }
@@ -0,0 +1,104 @@
1
+ @layer seed-components {
2
+ .seed-help-bubble__positioner {
3
+ --popover-z-index: 99;
4
+ z-index: calc(var(--popover-z-index) + var(--z-index-offset, 0));
5
+ }
6
+
7
+ .seed-help-bubble__content {
8
+ background: var(--seed-color-bg-neutral-inverted);
9
+ padding-left: var(--seed-dimension-x3);
10
+ padding-right: var(--seed-dimension-x3);
11
+ padding-top: var(--seed-dimension-x2_5);
12
+ padding-bottom: var(--seed-dimension-x2_5);
13
+ border-radius: var(--seed-radius-r3);
14
+ --seed-box-max-width: initial;
15
+ max-width: var(--seed-box-max-width);
16
+ align-items: flex-start;
17
+ display: flex;
18
+ }
19
+
20
+ .seed-help-bubble__content:is([data-state="open"], [data-open]) {
21
+ animation: seed-enter;
22
+ animation-timing-function: var(--seed-timing-function-enter);
23
+ animation-duration: var(--seed-duration-d4);
24
+ --seed-enter-translate-x: 0;
25
+ --seed-enter-translate-y: 0;
26
+ --seed-enter-opacity: 0;
27
+ --seed-enter-scale: .9;
28
+ }
29
+
30
+ .seed-help-bubble__content:not(:is([data-state="open"], [data-open])) {
31
+ animation: seed-exit;
32
+ animation-timing-function: var(--seed-timing-function-easing);
33
+ animation-duration: var(--seed-duration-d4);
34
+ --seed-exit-translate-x: 0;
35
+ --seed-exit-translate-y: 0;
36
+ --seed-exit-opacity: 0;
37
+ --seed-exit-scale: 1;
38
+ animation-fill-mode: forwards;
39
+ }
40
+
41
+ .seed-help-bubble__content:is([hidden], [data-hidden]) {
42
+ display: none !important;
43
+ }
44
+
45
+ .seed-help-bubble__arrow {
46
+ width: 12px;
47
+ height: 12px;
48
+ }
49
+
50
+ .seed-help-bubble__arrowTip {
51
+ fill: var(--seed-color-bg-neutral-inverted);
52
+ width: 12px;
53
+ height: 8px;
54
+ display: block;
55
+ }
56
+
57
+ .seed-help-bubble__body {
58
+ gap: var(--seed-dimension-x0_5);
59
+ word-break: keep-all;
60
+ flex-direction: column;
61
+ display: flex;
62
+ }
63
+
64
+ .seed-help-bubble__title {
65
+ color: var(--seed-color-fg-neutral-inverted);
66
+ font-size: var(--seed-font-size-t3);
67
+ font-weight: var(--seed-font-weight-bold);
68
+ line-height: var(--seed-line-height-t3);
69
+ white-space: pre-wrap;
70
+ }
71
+
72
+ .seed-help-bubble__description {
73
+ color: var(--seed-color-fg-neutral-inverted);
74
+ font-size: var(--seed-font-size-t3);
75
+ font-weight: var(--seed-font-weight-regular);
76
+ line-height: var(--seed-line-height-t3);
77
+ white-space: pre-wrap;
78
+ }
79
+
80
+ .seed-help-bubble__closeButton {
81
+ cursor: pointer;
82
+ padding: calc((38px - var(--seed-dimension-x3_5)) / 2);
83
+ margin-left: calc(var(--seed-dimension-x1) - ((38px - var(--seed-dimension-x3_5)) / 2));
84
+ margin-right: calc(-1 * ((38px - var(--seed-dimension-x3_5)) / 2));
85
+ margin-top: calc(-1 * ((38px - var(--seed-dimension-x3_5)) / 2) + var(--seed-dimension-x0_5));
86
+ color: var(--seed-color-fg-neutral-inverted);
87
+ --seed-icon-size: var(--seed-dimension-x3_5);
88
+ --seed-icon-color: var(--seed-color-fg-neutral-inverted);
89
+ border-radius: var(--seed-radius-r3);
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: calc(var(--seed-dimension-x0_5) * -1);
93
+ background: none;
94
+ border: none;
95
+ justify-content: center;
96
+ align-items: center;
97
+ display: flex;
98
+ }
99
+
100
+ .seed-help-bubble__closeButton:is(:focus-visible, [data-focus-visible]) {
101
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
102
+ outline-offset: calc(var(--seed-dimension-x0_5) * -1);
103
+ }
104
+ }
@@ -0,0 +1,60 @@
1
+ import './help-bubble.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const helpBubbleSlotNames = [
5
+ [
6
+ "positioner",
7
+ "seed-help-bubble__positioner"
8
+ ],
9
+ [
10
+ "content",
11
+ "seed-help-bubble__content"
12
+ ],
13
+ [
14
+ "arrow",
15
+ "seed-help-bubble__arrow"
16
+ ],
17
+ [
18
+ "arrowTip",
19
+ "seed-help-bubble__arrowTip"
20
+ ],
21
+ [
22
+ "body",
23
+ "seed-help-bubble__body"
24
+ ],
25
+ [
26
+ "title",
27
+ "seed-help-bubble__title"
28
+ ],
29
+ [
30
+ "description",
31
+ "seed-help-bubble__description"
32
+ ],
33
+ [
34
+ "closeButton",
35
+ "seed-help-bubble__closeButton"
36
+ ]
37
+ ];
38
+
39
+ const defaultVariant = {};
40
+
41
+ const compoundVariants = [];
42
+
43
+ export const helpBubbleVariantMap = {};
44
+
45
+ export const helpBubbleVariantKeys = Object.keys(helpBubbleVariantMap);
46
+
47
+ export function helpBubble(props) {
48
+ return Object.fromEntries(
49
+ helpBubbleSlotNames.map(([slot, className]) => {
50
+ return [
51
+ slot,
52
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
53
+ ];
54
+ }),
55
+ );
56
+ }
57
+
58
+ Object.assign(helpBubble, { splitVariantProps: (props) => splitVariantProps(props, helpBubbleVariantMap) });
59
+
60
+ // @recipe(seed): help-bubble
@@ -7,7 +7,7 @@
7
7
  vertical-align: top;
8
8
  width: 100%;
9
9
  height: 100%;
10
- background-color: var(--seed-color-palette-gray-400)
10
+ background-color: var(--seed-color-palette-gray-500)
11
11
  }
12
12
  .seed-identity-placeholder__image {
13
13
  display: block;
@@ -15,5 +15,5 @@
15
15
  height: 100%;
16
16
  object-fit: cover;
17
17
  overflow: hidden;
18
- fill: #f7f8fa
18
+ fill: var(--seed-color-palette-static-white-alpha-800)
19
19
  }
@@ -2,7 +2,7 @@ declare interface IdentityPlaceholderVariant {
2
2
  /**
3
3
  * @default "person"
4
4
  */
5
- identity: "person";
5
+ identity: "person" | "business";
6
6
  }
7
7
 
8
8
  declare type IdentityPlaceholderVariantMap = {
@@ -0,0 +1,22 @@
1
+ @layer seed-components {
2
+ .seed-identity-placeholder__root {
3
+ box-sizing: border-box;
4
+ vertical-align: top;
5
+ background-color: var(--seed-color-palette-gray-500);
6
+ justify-content: center;
7
+ align-items: center;
8
+ width: 100%;
9
+ height: 100%;
10
+ display: inline-flex;
11
+ position: relative;
12
+ }
13
+
14
+ .seed-identity-placeholder__image {
15
+ object-fit: cover;
16
+ width: 100%;
17
+ height: 100%;
18
+ fill: var(--seed-color-palette-static-white-alpha-800);
19
+ display: block;
20
+ overflow: hidden;
21
+ }
22
+ }
@@ -0,0 +1,43 @@
1
+ import './identity-placeholder.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const identityPlaceholderSlotNames = [
5
+ [
6
+ "root",
7
+ "seed-identity-placeholder__root"
8
+ ],
9
+ [
10
+ "image",
11
+ "seed-identity-placeholder__image"
12
+ ]
13
+ ];
14
+
15
+ const defaultVariant = {
16
+ "identity": "person"
17
+ };
18
+
19
+ const compoundVariants = [];
20
+
21
+ export const identityPlaceholderVariantMap = {
22
+ "identity": [
23
+ "person",
24
+ "business"
25
+ ]
26
+ };
27
+
28
+ export const identityPlaceholderVariantKeys = Object.keys(identityPlaceholderVariantMap);
29
+
30
+ export function identityPlaceholder(props) {
31
+ return Object.fromEntries(
32
+ identityPlaceholderSlotNames.map(([slot, className]) => {
33
+ return [
34
+ slot,
35
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
36
+ ];
37
+ }),
38
+ );
39
+ }
40
+
41
+ Object.assign(identityPlaceholder, { splitVariantProps: (props) => splitVariantProps(props, identityPlaceholderVariantMap) });
42
+
43
+ // @recipe(seed): identity-placeholder
@@ -20,7 +20,8 @@ const compoundVariants = [];
20
20
 
21
21
  export const identityPlaceholderVariantMap = {
22
22
  "identity": [
23
- "person"
23
+ "person",
24
+ "business"
24
25
  ]
25
26
  };
26
27
 
@@ -0,0 +1,8 @@
1
+ @layer seed-components {
2
+ .seed-image-frame-icon {
3
+ color: var(--seed-color-palette-static-white);
4
+ justify-content: center;
5
+ align-items: center;
6
+ display: inline-flex;
7
+ }
8
+ }
@@ -0,0 +1,22 @@
1
+ import './image-frame-icon.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const defaultVariant = {};
5
+
6
+ const compoundVariants = [];
7
+
8
+ export const imageFrameIconVariantMap = {};
9
+
10
+ export const imageFrameIconVariantKeys = Object.keys(imageFrameIconVariantMap);
11
+
12
+ export function imageFrameIcon(props) {
13
+ return createClassName(
14
+ "seed-image-frame-icon",
15
+ mergeVariants(defaultVariant, props),
16
+ compoundVariants,
17
+ );
18
+ }
19
+
20
+ Object.assign(imageFrameIcon, { splitVariantProps: (props) => splitVariantProps(props, imageFrameIconVariantMap) });
21
+
22
+ // @recipe(seed): image-frame-icon