@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.
- package/all.css +1012 -172
- package/all.layered.css +9070 -0
- package/all.layered.min.css +1 -0
- package/all.min.css +1 -1
- package/base.css +4 -0
- package/base.layered.css +858 -0
- package/base.layered.min.css +1 -0
- package/base.min.css +1 -1
- package/package.json +11 -2
- package/recipes/action-button.css +69 -17
- package/recipes/action-button.layered.css +421 -0
- package/recipes/action-button.layered.mjs +79 -0
- package/recipes/action-chip.layered.css +84 -0
- package/recipes/action-chip.layered.mjs +51 -0
- package/recipes/action-sheet-item.layered.css +38 -0
- package/recipes/action-sheet-item.layered.mjs +29 -0
- package/recipes/action-sheet.layered.css +134 -0
- package/recipes/action-sheet.layered.mjs +60 -0
- package/recipes/app-bar-main.layered.css +165 -0
- package/recipes/app-bar-main.layered.mjs +63 -0
- package/recipes/app-bar.css +8 -0
- package/recipes/app-bar.layered.css +302 -0
- package/recipes/app-bar.layered.mjs +70 -0
- package/recipes/app-screen.layered.css +332 -0
- package/recipes/app-screen.layered.mjs +98 -0
- package/recipes/article.layered.css +12 -0
- package/recipes/article.layered.mjs +22 -0
- package/recipes/aspect-ratio.layered.css +26 -0
- package/recipes/aspect-ratio.layered.mjs +22 -0
- package/recipes/avatar-stack.layered.css +94 -0
- package/recipes/avatar-stack.layered.mjs +50 -0
- package/recipes/avatar.layered.css +222 -0
- package/recipes/avatar.layered.mjs +65 -0
- package/recipes/badge.layered.css +140 -0
- package/recipes/badge.layered.mjs +131 -0
- package/recipes/bottom-sheet-handle.css +9 -2
- package/recipes/bottom-sheet-handle.layered.css +36 -0
- package/recipes/bottom-sheet-handle.layered.mjs +36 -0
- package/recipes/bottom-sheet.css +11 -0
- package/recipes/bottom-sheet.layered.css +224 -0
- package/recipes/bottom-sheet.layered.mjs +75 -0
- package/recipes/callout.css +77 -12
- package/recipes/callout.layered.css +242 -0
- package/recipes/callout.layered.mjs +63 -0
- package/recipes/checkbox-group.layered.css +7 -0
- package/recipes/checkbox-group.layered.mjs +22 -0
- package/recipes/checkbox.layered.css +54 -0
- package/recipes/checkbox.layered.mjs +48 -0
- package/recipes/checkmark.css +61 -13
- package/recipes/checkmark.layered.css +187 -0
- package/recipes/checkmark.layered.mjs +86 -0
- package/recipes/chip-tabs.css +62 -14
- package/recipes/chip-tabs.layered.css +254 -0
- package/recipes/chip-tabs.layered.mjs +75 -0
- package/recipes/chip.css +60 -15
- package/recipes/chip.layered.css +272 -0
- package/recipes/chip.layered.mjs +80 -0
- package/recipes/contextual-floating-button.css +24 -7
- package/recipes/contextual-floating-button.layered.css +130 -0
- package/recipes/contextual-floating-button.layered.mjs +34 -0
- package/recipes/control-chip.layered.css +99 -0
- package/recipes/control-chip.layered.mjs +51 -0
- package/recipes/dialog.layered.css +111 -0
- package/recipes/dialog.layered.mjs +66 -0
- package/recipes/extended-action-sheet-item.layered.css +38 -0
- package/recipes/extended-action-sheet-item.layered.mjs +29 -0
- package/recipes/extended-action-sheet.layered.css +132 -0
- package/recipes/extended-action-sheet.layered.mjs +64 -0
- package/recipes/extended-fab.layered.css +79 -0
- package/recipes/extended-fab.layered.mjs +34 -0
- package/recipes/fab.layered.css +37 -0
- package/recipes/fab.layered.mjs +22 -0
- package/recipes/field-label.layered.css +35 -0
- package/recipes/field-label.layered.mjs +47 -0
- package/recipes/field.layered.css +81 -0
- package/recipes/field.layered.mjs +60 -0
- package/recipes/floating-action-button.css +15 -5
- package/recipes/floating-action-button.layered.css +101 -0
- package/recipes/floating-action-button.layered.mjs +47 -0
- package/recipes/help-bubble.css +8 -0
- package/recipes/help-bubble.layered.css +104 -0
- package/recipes/help-bubble.layered.mjs +60 -0
- package/recipes/identity-placeholder.css +2 -2
- package/recipes/identity-placeholder.d.ts +1 -1
- package/recipes/identity-placeholder.layered.css +22 -0
- package/recipes/identity-placeholder.layered.mjs +43 -0
- package/recipes/identity-placeholder.mjs +2 -1
- package/recipes/image-frame-icon.layered.css +8 -0
- package/recipes/image-frame-icon.layered.mjs +22 -0
- package/recipes/image-frame-indicator.layered.css +18 -0
- package/recipes/image-frame-indicator.layered.mjs +22 -0
- package/recipes/image-frame-reaction-button.css +9 -1
- package/recipes/image-frame-reaction-button.layered.css +43 -0
- package/recipes/image-frame-reaction-button.layered.mjs +22 -0
- package/recipes/image-frame.layered.css +28 -0
- package/recipes/image-frame.layered.mjs +34 -0
- package/recipes/inline-banner.layered.css +161 -0
- package/recipes/inline-banner.layered.mjs +64 -0
- package/recipes/input-button.css +27 -5
- package/recipes/input-button.layered.css +167 -0
- package/recipes/input-button.layered.mjs +64 -0
- package/recipes/link-content.layered.css +48 -0
- package/recipes/link-content.layered.mjs +35 -0
- package/recipes/list-header.layered.css +26 -0
- package/recipes/list-header.layered.mjs +29 -0
- package/recipes/list-item.css +63 -17
- package/recipes/list-item.layered.css +187 -0
- package/recipes/list-item.layered.mjs +59 -0
- package/recipes/manner-temp-badge.layered.css +72 -0
- package/recipes/manner-temp-badge.layered.mjs +37 -0
- package/recipes/manner-temp.layered.css +57 -0
- package/recipes/manner-temp.layered.mjs +37 -0
- package/recipes/menu-sheet-item.css +24 -3
- package/recipes/menu-sheet-item.layered.css +102 -0
- package/recipes/menu-sheet-item.layered.mjs +56 -0
- package/recipes/menu-sheet.css +18 -3
- package/recipes/menu-sheet.layered.css +167 -0
- package/recipes/menu-sheet.layered.mjs +74 -0
- package/recipes/notification-badge-positioner.layered.css +35 -0
- package/recipes/notification-badge-positioner.layered.mjs +51 -0
- package/recipes/notification-badge.layered.css +33 -0
- package/recipes/notification-badge.layered.mjs +29 -0
- package/recipes/page-banner.css +122 -22
- package/recipes/page-banner.layered.css +361 -0
- package/recipes/page-banner.layered.mjs +117 -0
- package/recipes/progress-circle.layered.css +52 -0
- package/recipes/progress-circle.layered.mjs +55 -0
- package/recipes/pull-to-refresh.layered.css +19 -0
- package/recipes/pull-to-refresh.layered.mjs +36 -0
- package/recipes/radio-group.layered.css +7 -0
- package/recipes/radio-group.layered.mjs +22 -0
- package/recipes/radio.layered.css +54 -0
- package/recipes/radio.layered.mjs +48 -0
- package/recipes/radiomark.css +34 -7
- package/recipes/radiomark.layered.css +132 -0
- package/recipes/radiomark.layered.mjs +48 -0
- package/recipes/reaction-button.css +24 -7
- package/recipes/reaction-button.layered.css +124 -0
- package/recipes/reaction-button.layered.mjs +29 -0
- package/recipes/scroll-fog.layered.css +27 -0
- package/recipes/scroll-fog.layered.mjs +28 -0
- package/recipes/segmented-control.css +31 -7
- package/recipes/segmented-control.layered.css +108 -0
- package/recipes/segmented-control.layered.mjs +40 -0
- package/recipes/select-box-group.layered.css +13 -0
- package/recipes/select-box-group.layered.mjs +22 -0
- package/recipes/select-box.css +19 -3
- package/recipes/select-box.layered.css +148 -0
- package/recipes/select-box.layered.mjs +63 -0
- package/recipes/selectBoxCheckmark.css +9 -2
- package/recipes/selectBoxCheckmark.layered.css +42 -0
- package/recipes/selectBoxCheckmark.layered.mjs +36 -0
- package/recipes/skeleton.layered.css +56 -0
- package/recipes/skeleton.layered.mjs +36 -0
- package/recipes/slider-marker.layered.css +54 -0
- package/recipes/slider-marker.layered.mjs +30 -0
- package/recipes/slider-tick.layered.css +25 -0
- package/recipes/slider-tick.layered.mjs +29 -0
- package/recipes/slider.css +25 -1
- package/recipes/slider.layered.css +238 -0
- package/recipes/slider.layered.mjs +68 -0
- package/recipes/snackbar-region.layered.css +18 -0
- package/recipes/snackbar-region.layered.mjs +22 -0
- package/recipes/snackbar.css +20 -1
- package/recipes/snackbar.layered.css +126 -0
- package/recipes/snackbar.layered.mjs +56 -0
- package/recipes/switch.layered.css +62 -0
- package/recipes/switch.layered.mjs +44 -0
- package/recipes/switchmark.css +9 -1
- package/recipes/switchmark.layered.css +100 -0
- package/recipes/switchmark.layered.mjs +49 -0
- package/recipes/tabs.css +9 -0
- package/recipes/tabs.layered.css +211 -0
- package/recipes/tabs.layered.mjs +78 -0
- package/recipes/tag-group-item.layered.css +98 -0
- package/recipes/tag-group-item.layered.mjs +55 -0
- package/recipes/tag-group.layered.css +58 -0
- package/recipes/tag-group.layered.mjs +62 -0
- package/recipes/text-input.css +1 -0
- package/recipes/text-input.layered.css +236 -0
- package/recipes/text-input.layered.mjs +73 -0
- package/recipes/text.layered.css +364 -0
- package/recipes/text.layered.mjs +90 -0
- package/recipes/toggle-button.css +42 -11
- package/recipes/toggle-button.layered.css +183 -0
- package/recipes/toggle-button.layered.mjs +34 -0
- package/vars/color/stroke.d.ts +2 -1
- package/vars/color/stroke.mjs +2 -1
- package/vars/component/identity-placeholder.d.ts +2 -2
- package/vars/component/identity-placeholder.mjs +2 -2
- package/vars/component/image-frame-floater.d.ts +1 -1
- package/vars/component/image-frame.d.ts +11 -17
- package/vars/component/image-frame.mjs +7 -12
- package/vars/component/index.d.ts +1 -0
- package/vars/component/index.mjs +1 -0
- package/vars/component/list-item.d.ts +1 -1
- package/vars/component/list-item.mjs +1 -1
- package/vars/component/segmented-control-indicator.d.ts +24 -0
- package/vars/component/segmented-control-indicator.mjs +24 -0
- package/vars/component/segmented-control-item.d.ts +3 -11
- package/vars/component/segmented-control-item.mjs +3 -11
- package/vars/component/segmented-control.d.ts +0 -8
- package/vars/component/segmented-control.mjs +0 -8
- package/vars/component/slider.d.ts +3 -1
- 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:
|
|
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
|
-
|
|
33
|
-
|
|
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
|
package/recipes/help-bubble.css
CHANGED
|
@@ -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-
|
|
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:
|
|
18
|
+
fill: var(--seed-color-palette-static-white-alpha-800)
|
|
19
19
|
}
|
|
@@ -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
|
|
@@ -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
|