@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,18 @@
|
|
|
1
|
+
@layer seed-components {
|
|
2
|
+
.seed-image-frame-indicator {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
background-color: var(--seed-color-palette-static-black-alpha-800);
|
|
5
|
+
color: var(--seed-color-palette-static-white);
|
|
6
|
+
border-radius: var(--seed-radius-full);
|
|
7
|
+
padding-left: var(--seed-dimension-x1_5);
|
|
8
|
+
padding-right: var(--seed-dimension-x1_5);
|
|
9
|
+
padding-top: var(--seed-dimension-x0_5);
|
|
10
|
+
padding-bottom: var(--seed-dimension-x0_5);
|
|
11
|
+
font-size: var(--seed-font-size-t1);
|
|
12
|
+
line-height: var(--seed-line-height-t1);
|
|
13
|
+
font-weight: var(--seed-font-weight-medium);
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
display: inline-flex;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import './image-frame-indicator.layered.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const defaultVariant = {};
|
|
5
|
+
|
|
6
|
+
const compoundVariants = [];
|
|
7
|
+
|
|
8
|
+
export const imageFrameIndicatorVariantMap = {};
|
|
9
|
+
|
|
10
|
+
export const imageFrameIndicatorVariantKeys = Object.keys(imageFrameIndicatorVariantMap);
|
|
11
|
+
|
|
12
|
+
export function imageFrameIndicator(props) {
|
|
13
|
+
return createClassName(
|
|
14
|
+
"seed-image-frame-indicator",
|
|
15
|
+
mergeVariants(defaultVariant, props),
|
|
16
|
+
compoundVariants,
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
Object.assign(imageFrameIndicator, { splitVariantProps: (props) => splitVariantProps(props, imageFrameIndicatorVariantMap) });
|
|
21
|
+
|
|
22
|
+
// @recipe(seed): image-frame-indicator
|
|
@@ -20,10 +20,18 @@
|
|
|
20
20
|
right: calc((var(--seed-dimension-x10) - var(--seed-dimension-x6)) / 2 * -1);
|
|
21
21
|
bottom: calc((var(--seed-dimension-x10) - var(--seed-dimension-x6)) / 2 * -1);
|
|
22
22
|
left: calc((var(--seed-dimension-x10) - var(--seed-dimension-x6)) / 2 * -1);
|
|
23
|
+
outline: var(--seed-dimension-x0_5) solid transparent;
|
|
24
|
+
outline-offset: calc(var(--seed-dimension-x0_5) * -1);
|
|
25
|
+
transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
|
|
23
26
|
}
|
|
24
|
-
.seed-image-frame-reaction-button:focus {
|
|
27
|
+
.seed-image-frame-reaction-button:is(:focus, [data-focus]) {
|
|
25
28
|
outline: none;
|
|
26
29
|
}
|
|
30
|
+
.seed-image-frame-reaction-button:is(:focus-visible, [data-focus-visible]):before {
|
|
31
|
+
border-radius: var(--seed-radius-r1);
|
|
32
|
+
outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
|
|
33
|
+
outline-offset: calc(var(--seed-dimension-x0_5) * -1);
|
|
34
|
+
}
|
|
27
35
|
.seed-image-frame-reaction-button:is([aria-pressed=true], [data-pressed]) {
|
|
28
36
|
--seed-icon-color: var(--seed-color-bg-transparent);
|
|
29
37
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@layer seed-components {
|
|
2
|
+
.seed-image-frame-reaction-button {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
width: var(--seed-dimension-x6);
|
|
6
|
+
height: var(--seed-dimension-x6);
|
|
7
|
+
--seed-icon-size: var(--seed-dimension-x6);
|
|
8
|
+
--seed-icon-color: var(--seed-color-palette-static-white);
|
|
9
|
+
background: none;
|
|
10
|
+
border: none;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
padding: 0;
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
position: relative;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.seed-image-frame-reaction-button:before {
|
|
19
|
+
content: "";
|
|
20
|
+
top: calc((var(--seed-dimension-x10) - var(--seed-dimension-x6)) / 2 * -1);
|
|
21
|
+
right: calc((var(--seed-dimension-x10) - var(--seed-dimension-x6)) / 2 * -1);
|
|
22
|
+
bottom: calc((var(--seed-dimension-x10) - var(--seed-dimension-x6)) / 2 * -1);
|
|
23
|
+
left: calc((var(--seed-dimension-x10) - var(--seed-dimension-x6)) / 2 * -1);
|
|
24
|
+
outline: var(--seed-dimension-x0_5) solid transparent;
|
|
25
|
+
outline-offset: calc(var(--seed-dimension-x0_5) * -1);
|
|
26
|
+
transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
|
|
27
|
+
position: absolute;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.seed-image-frame-reaction-button:is(:focus, [data-focus]) {
|
|
31
|
+
outline: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.seed-image-frame-reaction-button:is(:focus-visible, [data-focus-visible]):before {
|
|
35
|
+
border-radius: var(--seed-radius-r1);
|
|
36
|
+
outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
|
|
37
|
+
outline-offset: calc(var(--seed-dimension-x0_5) * -1);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.seed-image-frame-reaction-button:is([aria-pressed="true"], [data-pressed]) {
|
|
41
|
+
--seed-icon-color: var(--seed-color-bg-transparent);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import './image-frame-reaction-button.layered.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const defaultVariant = {};
|
|
5
|
+
|
|
6
|
+
const compoundVariants = [];
|
|
7
|
+
|
|
8
|
+
export const imageFrameReactionButtonVariantMap = {};
|
|
9
|
+
|
|
10
|
+
export const imageFrameReactionButtonVariantKeys = Object.keys(imageFrameReactionButtonVariantMap);
|
|
11
|
+
|
|
12
|
+
export function imageFrameReactionButton(props) {
|
|
13
|
+
return createClassName(
|
|
14
|
+
"seed-image-frame-reaction-button",
|
|
15
|
+
mergeVariants(defaultVariant, props),
|
|
16
|
+
compoundVariants,
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
Object.assign(imageFrameReactionButton, { splitVariantProps: (props) => splitVariantProps(props, imageFrameReactionButtonVariantMap) });
|
|
21
|
+
|
|
22
|
+
// @recipe(seed): image-frame-reaction-button
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@layer seed-components {
|
|
2
|
+
.seed-image-frame {
|
|
3
|
+
border-radius: inherit;
|
|
4
|
+
position: relative;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.seed-image-frame > img, .seed-image-frame > video {
|
|
9
|
+
object-fit: cover;
|
|
10
|
+
border-radius: inherit;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
display: block;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.seed-image-frame--stroke_true:after {
|
|
17
|
+
content: "";
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
border-radius: inherit;
|
|
20
|
+
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-neutral-subtle);
|
|
21
|
+
position: absolute;
|
|
22
|
+
inset: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.seed-image-frame--rounded_true {
|
|
26
|
+
border-radius: var(--seed-radius-r2);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import './image-frame.layered.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const defaultVariant = {
|
|
5
|
+
"stroke": false,
|
|
6
|
+
"rounded": false
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const compoundVariants = [];
|
|
10
|
+
|
|
11
|
+
export const imageFrameVariantMap = {
|
|
12
|
+
"stroke": [
|
|
13
|
+
true,
|
|
14
|
+
false
|
|
15
|
+
],
|
|
16
|
+
"rounded": [
|
|
17
|
+
true,
|
|
18
|
+
false
|
|
19
|
+
]
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const imageFrameVariantKeys = Object.keys(imageFrameVariantMap);
|
|
23
|
+
|
|
24
|
+
export function imageFrame(props) {
|
|
25
|
+
return createClassName(
|
|
26
|
+
"seed-image-frame",
|
|
27
|
+
mergeVariants(defaultVariant, props),
|
|
28
|
+
compoundVariants,
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
Object.assign(imageFrame, { splitVariantProps: (props) => splitVariantProps(props, imageFrameVariantMap) });
|
|
33
|
+
|
|
34
|
+
// @recipe(seed): image-frame
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
@layer seed-components {
|
|
2
|
+
.seed-inline-banner__root {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
-webkit-font-smoothing: antialiased;
|
|
5
|
+
-moz-osx-font-smoothing: grayscale;
|
|
6
|
+
text-align: start;
|
|
7
|
+
width: 100%;
|
|
8
|
+
min-height: var(--seed-dimension-x10);
|
|
9
|
+
padding-inline: var(--seed-dimension-x4);
|
|
10
|
+
padding-block: var(--seed-dimension-x2_5);
|
|
11
|
+
--seed-prefix-icon-size: var(--seed-dimension-x4);
|
|
12
|
+
--seed-prefix-icon-margin-right: var(--seed-dimension-x2);
|
|
13
|
+
--seed-prefix-icon-margin-top: calc((var(--seed-dimension-x10) - var(--seed-dimension-x4)) * .5 - var(--seed-dimension-x2_5));
|
|
14
|
+
--seed-suffix-icon-size: var(--seed-dimension-x4);
|
|
15
|
+
--seed-suffix-icon-margin-left: var(--seed-dimension-x4);
|
|
16
|
+
--seed-suffix-icon-align-self: center;
|
|
17
|
+
border: none;
|
|
18
|
+
align-items: flex-start;
|
|
19
|
+
font-family: inherit;
|
|
20
|
+
display: flex;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.seed-inline-banner__root:is(button) {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.seed-inline-banner__content {
|
|
28
|
+
margin-inline-end: auto;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.seed-inline-banner__title {
|
|
32
|
+
font-size: var(--seed-font-size-t4);
|
|
33
|
+
line-height: var(--seed-line-height-t4);
|
|
34
|
+
font-weight: var(--seed-font-weight-bold);
|
|
35
|
+
flex-shrink: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.seed-inline-banner__title:after {
|
|
39
|
+
content: " ";
|
|
40
|
+
white-space: pre;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.seed-inline-banner__description {
|
|
44
|
+
font-size: var(--seed-font-size-t4);
|
|
45
|
+
line-height: var(--seed-line-height-t4);
|
|
46
|
+
font-weight: var(--seed-font-weight-medium);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.seed-inline-banner__link {
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
margin-block: auto;
|
|
52
|
+
margin-left: var(--seed-dimension-x4);
|
|
53
|
+
font-family: inherit;
|
|
54
|
+
font-size: var(--seed-font-size-t2);
|
|
55
|
+
line-height: var(--seed-line-height-t2);
|
|
56
|
+
font-weight: var(--seed-font-weight-regular);
|
|
57
|
+
text-underline-offset: 2px;
|
|
58
|
+
background-color: #0000;
|
|
59
|
+
border: none;
|
|
60
|
+
flex-grow: 0;
|
|
61
|
+
flex-shrink: 0;
|
|
62
|
+
align-items: center;
|
|
63
|
+
text-decoration: underline;
|
|
64
|
+
display: flex;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.seed-inline-banner__closeButton {
|
|
68
|
+
width: var(--seed-dimension-x10);
|
|
69
|
+
height: var(--seed-dimension-x10);
|
|
70
|
+
margin: calc((var(--seed-dimension-x10) - var(--seed-dimension-x4)) * -.5);
|
|
71
|
+
margin-left: calc((var(--seed-dimension-x10) - var(--seed-dimension-x4)) * -.5 + var(--seed-dimension-x4));
|
|
72
|
+
--seed-suffix-icon-margin-left: initial;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
background-color: #0000;
|
|
75
|
+
border: none;
|
|
76
|
+
flex-grow: 0;
|
|
77
|
+
flex-shrink: 0;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
align-self: center;
|
|
80
|
+
align-items: center;
|
|
81
|
+
padding: 0;
|
|
82
|
+
display: flex;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.seed-inline-banner__root--variant_neutralWeak {
|
|
86
|
+
background-color: var(--seed-color-bg-neutral-weak);
|
|
87
|
+
color: var(--seed-color-fg-neutral);
|
|
88
|
+
--seed-prefix-icon-color: var(--seed-color-fg-neutral);
|
|
89
|
+
--seed-suffix-icon-color: var(--seed-color-fg-neutral);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.seed-inline-banner__title--variant_neutralWeak, .seed-inline-banner__description--variant_neutralWeak, .seed-inline-banner__link--variant_neutralWeak {
|
|
93
|
+
color: var(--seed-color-fg-neutral);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.seed-inline-banner__root--variant_positiveWeak {
|
|
97
|
+
background-color: var(--seed-color-bg-positive-weak);
|
|
98
|
+
color: var(--seed-color-fg-positive-contrast);
|
|
99
|
+
--seed-prefix-icon-color: var(--seed-color-fg-positive-contrast);
|
|
100
|
+
--seed-suffix-icon-color: var(--seed-color-fg-positive-contrast);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.seed-inline-banner__title--variant_positiveWeak, .seed-inline-banner__description--variant_positiveWeak, .seed-inline-banner__link--variant_positiveWeak {
|
|
104
|
+
color: var(--seed-color-fg-positive-contrast);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.seed-inline-banner__root--variant_informativeWeak {
|
|
108
|
+
background-color: var(--seed-color-bg-informative-weak);
|
|
109
|
+
color: var(--seed-color-fg-informative-contrast);
|
|
110
|
+
--seed-prefix-icon-color: var(--seed-color-fg-informative-contrast);
|
|
111
|
+
--seed-suffix-icon-color: var(--seed-color-fg-informative-contrast);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.seed-inline-banner__title--variant_informativeWeak, .seed-inline-banner__description--variant_informativeWeak, .seed-inline-banner__link--variant_informativeWeak {
|
|
115
|
+
color: var(--seed-color-fg-informative-contrast);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.seed-inline-banner__root--variant_warningWeak {
|
|
119
|
+
background-color: var(--seed-color-bg-warning-weak);
|
|
120
|
+
color: var(--seed-color-fg-warning-contrast);
|
|
121
|
+
--seed-prefix-icon-color: var(--seed-color-fg-warning-contrast);
|
|
122
|
+
--seed-suffix-icon-color: var(--seed-color-fg-warning-contrast);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.seed-inline-banner__title--variant_warningWeak, .seed-inline-banner__description--variant_warningWeak, .seed-inline-banner__link--variant_warningWeak {
|
|
126
|
+
color: var(--seed-color-fg-warning-contrast);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.seed-inline-banner__root--variant_warningSolid {
|
|
130
|
+
background-color: var(--seed-color-bg-warning-solid);
|
|
131
|
+
color: var(--seed-color-fg-neutral);
|
|
132
|
+
--seed-prefix-icon-color: var(--seed-color-fg-neutral);
|
|
133
|
+
--seed-suffix-icon-color: var(--seed-color-fg-neutral);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.seed-inline-banner__title--variant_warningSolid, .seed-inline-banner__description--variant_warningSolid, .seed-inline-banner__link--variant_warningSolid {
|
|
137
|
+
color: var(--seed-color-fg-neutral);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.seed-inline-banner__root--variant_criticalWeak {
|
|
141
|
+
background-color: var(--seed-color-bg-critical-weak);
|
|
142
|
+
color: var(--seed-color-fg-critical-contrast);
|
|
143
|
+
--seed-prefix-icon-color: var(--seed-color-fg-critical-contrast);
|
|
144
|
+
--seed-suffix-icon-color: var(--seed-color-fg-critical-contrast);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.seed-inline-banner__title--variant_criticalWeak, .seed-inline-banner__description--variant_criticalWeak, .seed-inline-banner__link--variant_criticalWeak {
|
|
148
|
+
color: var(--seed-color-fg-critical-contrast);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.seed-inline-banner__root--variant_criticalSolid {
|
|
152
|
+
background-color: var(--seed-color-bg-critical-solid);
|
|
153
|
+
color: var(--seed-color-palette-static-white);
|
|
154
|
+
--seed-prefix-icon-color: var(--seed-color-palette-static-white);
|
|
155
|
+
--seed-suffix-icon-color: var(--seed-color-palette-static-white);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.seed-inline-banner__title--variant_criticalSolid, .seed-inline-banner__description--variant_criticalSolid, .seed-inline-banner__link--variant_criticalSolid {
|
|
159
|
+
color: var(--seed-color-palette-static-white);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import './inline-banner.layered.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const inlineBannerSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"root",
|
|
7
|
+
"seed-inline-banner__root"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"content",
|
|
11
|
+
"seed-inline-banner__content"
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"title",
|
|
15
|
+
"seed-inline-banner__title"
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"description",
|
|
19
|
+
"seed-inline-banner__description"
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"link",
|
|
23
|
+
"seed-inline-banner__link"
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"closeButton",
|
|
27
|
+
"seed-inline-banner__closeButton"
|
|
28
|
+
]
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
const defaultVariant = {
|
|
32
|
+
"variant": "neutralWeak"
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const compoundVariants = [];
|
|
36
|
+
|
|
37
|
+
export const inlineBannerVariantMap = {
|
|
38
|
+
"variant": [
|
|
39
|
+
"neutralWeak",
|
|
40
|
+
"positiveWeak",
|
|
41
|
+
"informativeWeak",
|
|
42
|
+
"warningWeak",
|
|
43
|
+
"warningSolid",
|
|
44
|
+
"criticalWeak",
|
|
45
|
+
"criticalSolid"
|
|
46
|
+
]
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const inlineBannerVariantKeys = Object.keys(inlineBannerVariantMap);
|
|
50
|
+
|
|
51
|
+
export function inlineBanner(props) {
|
|
52
|
+
return Object.fromEntries(
|
|
53
|
+
inlineBannerSlotNames.map(([slot, className]) => {
|
|
54
|
+
return [
|
|
55
|
+
slot,
|
|
56
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
57
|
+
];
|
|
58
|
+
}),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
Object.assign(inlineBanner, { splitVariantProps: (props) => splitVariantProps(props, inlineBannerVariantMap) });
|
|
63
|
+
|
|
64
|
+
// @recipe(seed): inline-banner
|
package/recipes/input-button.css
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
border-radius: var(--seed-radius-r3);
|
|
24
24
|
background-color: var(--seed-color-bg-transparent);
|
|
25
25
|
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-neutral-weak);
|
|
26
|
-
transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing);
|
|
26
|
+
transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing), outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
|
|
27
27
|
}
|
|
28
28
|
.seed-input-button__button::after {
|
|
29
29
|
content: "";
|
|
@@ -43,15 +43,27 @@
|
|
|
43
43
|
cursor: not-allowed;
|
|
44
44
|
background-color: var(--seed-color-bg-disabled);
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
@media (hover: hover) {
|
|
47
|
+
.seed-input-button__button:not([data-disabled]):not(:is([data-readonly])):is(:hover, [data-hover]) {
|
|
48
|
+
background-color: var(--seed-color-bg-transparent-pressed);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
@media (hover: none) {
|
|
52
|
+
.seed-input-button__button:not([data-disabled]):not(:is([data-readonly])):is(:active, [data-active]) {
|
|
53
|
+
background-color: var(--seed-color-bg-transparent-pressed);
|
|
54
|
+
}
|
|
48
55
|
}
|
|
49
56
|
.seed-input-button__button:is([data-readonly]):not([data-disabled]) {
|
|
50
57
|
cursor: default;
|
|
51
58
|
background-color: var(--seed-color-bg-disabled);
|
|
52
59
|
}
|
|
53
|
-
.seed-input-button__button
|
|
54
|
-
outline:
|
|
60
|
+
.seed-input-button__button {
|
|
61
|
+
outline: var(--seed-dimension-x0_5) solid transparent;
|
|
62
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
63
|
+
}
|
|
64
|
+
.seed-input-button__button:is(:focus-visible, [data-focus-visible]) {
|
|
65
|
+
outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
|
|
66
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
55
67
|
}
|
|
56
68
|
.seed-input-button__button:is(:invalid, [data-invalid])::after {
|
|
57
69
|
border-width: 2px;
|
|
@@ -124,6 +136,16 @@
|
|
|
124
136
|
border: none;
|
|
125
137
|
background-color: transparent;
|
|
126
138
|
padding: 0;
|
|
139
|
+
border-radius: var(--seed-radius-full);
|
|
140
|
+
transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
|
|
141
|
+
outline: var(--seed-dimension-x0_5) solid transparent;
|
|
142
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
143
|
+
}
|
|
144
|
+
.seed-input-button__clearButton:is(:focus-visible, [data-focus-visible]) {
|
|
145
|
+
outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
|
|
146
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
147
|
+
}
|
|
148
|
+
.seed-input-button__clearButton {
|
|
127
149
|
--seed-icon-size: 22px;
|
|
128
150
|
--seed-icon-color: var(--seed-color-fg-neutral-subtle);
|
|
129
151
|
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
@layer seed-components {
|
|
2
|
+
.seed-input-button__root {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
isolation: isolate;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: var(--seed-dimension-x13);
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: var(--seed-dimension-x2_5);
|
|
9
|
+
padding-left: var(--seed-dimension-x4);
|
|
10
|
+
padding-right: var(--seed-dimension-x4);
|
|
11
|
+
display: flex;
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.seed-input-button__button {
|
|
16
|
+
z-index: -1;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
border-radius: var(--seed-radius-r3);
|
|
19
|
+
background-color: var(--seed-color-bg-transparent);
|
|
20
|
+
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-neutral-weak);
|
|
21
|
+
transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing), outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
|
|
22
|
+
border: none;
|
|
23
|
+
padding: 0;
|
|
24
|
+
position: absolute;
|
|
25
|
+
inset: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.seed-input-button__button:after {
|
|
29
|
+
content: "";
|
|
30
|
+
border-radius: inherit;
|
|
31
|
+
transition: border-color .1s var(--seed-timing-function-easing);
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
border: 2px solid #0000;
|
|
34
|
+
position: absolute;
|
|
35
|
+
inset: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.seed-input-button__button[data-disabled] {
|
|
39
|
+
cursor: not-allowed;
|
|
40
|
+
background-color: var(--seed-color-bg-disabled);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media (hover: hover) {
|
|
44
|
+
.seed-input-button__button:not([data-disabled]):not([data-readonly]):is(:hover, [data-hover]) {
|
|
45
|
+
background-color: var(--seed-color-bg-transparent-pressed);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@media (hover: none) {
|
|
50
|
+
.seed-input-button__button:not([data-disabled]):not([data-readonly]):is(:active, [data-active]) {
|
|
51
|
+
background-color: var(--seed-color-bg-transparent-pressed);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.seed-input-button__button[data-readonly]:not([data-disabled]) {
|
|
56
|
+
cursor: default;
|
|
57
|
+
background-color: var(--seed-color-bg-disabled);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.seed-input-button__button {
|
|
61
|
+
outline: var(--seed-dimension-x0_5) solid transparent;
|
|
62
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.seed-input-button__button:is(:focus-visible, [data-focus-visible]) {
|
|
66
|
+
outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
|
|
67
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.seed-input-button__button:is(:invalid, [data-invalid]):after {
|
|
71
|
+
border-width: 2px;
|
|
72
|
+
border-color: var(--seed-color-stroke-critical-solid);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.seed-input-button__value {
|
|
76
|
+
font-size: var(--seed-font-size-t5);
|
|
77
|
+
line-height: var(--seed-line-height-t5);
|
|
78
|
+
font-weight: var(--seed-font-weight-regular);
|
|
79
|
+
color: var(--seed-color-fg-neutral);
|
|
80
|
+
text-overflow: ellipsis;
|
|
81
|
+
white-space: nowrap;
|
|
82
|
+
pointer-events: none;
|
|
83
|
+
flex-grow: 1;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.seed-input-button__value[data-disabled] {
|
|
88
|
+
color: var(--seed-color-fg-disabled);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.seed-input-button__value[data-readonly]:not([data-disabled]) {
|
|
92
|
+
color: var(--seed-color-fg-neutral);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.seed-input-button__placeholder {
|
|
96
|
+
font-size: var(--seed-font-size-t5);
|
|
97
|
+
line-height: var(--seed-line-height-t5);
|
|
98
|
+
font-weight: var(--seed-font-weight-regular);
|
|
99
|
+
color: var(--seed-color-fg-placeholder);
|
|
100
|
+
text-overflow: ellipsis;
|
|
101
|
+
white-space: nowrap;
|
|
102
|
+
pointer-events: none;
|
|
103
|
+
flex-grow: 1;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.seed-input-button__placeholder[data-disabled] {
|
|
108
|
+
color: var(--seed-color-fg-disabled);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.seed-input-button__placeholder[data-readonly]:not([data-disabled]) {
|
|
112
|
+
color: var(--seed-color-fg-placeholder);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.seed-input-button__prefixText {
|
|
116
|
+
font-size: var(--seed-font-size-t5);
|
|
117
|
+
line-height: var(--seed-line-height-t5);
|
|
118
|
+
font-weight: var(--seed-font-weight-regular);
|
|
119
|
+
color: var(--seed-color-fg-neutral-muted);
|
|
120
|
+
pointer-events: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.seed-input-button__prefixIcon {
|
|
124
|
+
width: var(--seed-dimension-x5);
|
|
125
|
+
height: var(--seed-dimension-x5);
|
|
126
|
+
color: var(--seed-color-fg-neutral-muted);
|
|
127
|
+
pointer-events: none;
|
|
128
|
+
flex-shrink: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.seed-input-button__suffixText {
|
|
132
|
+
font-size: var(--seed-font-size-t5);
|
|
133
|
+
line-height: var(--seed-line-height-t5);
|
|
134
|
+
font-weight: var(--seed-font-weight-regular);
|
|
135
|
+
color: var(--seed-color-fg-neutral-muted);
|
|
136
|
+
pointer-events: none;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.seed-input-button__suffixIcon {
|
|
140
|
+
width: var(--seed-dimension-x5);
|
|
141
|
+
height: var(--seed-dimension-x5);
|
|
142
|
+
color: var(--seed-color-fg-neutral-muted);
|
|
143
|
+
pointer-events: none;
|
|
144
|
+
flex-shrink: 0;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.seed-input-button__clearButton {
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
border-radius: var(--seed-radius-full);
|
|
150
|
+
transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
|
|
151
|
+
outline: var(--seed-dimension-x0_5) solid transparent;
|
|
152
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
153
|
+
background-color: #0000;
|
|
154
|
+
border: none;
|
|
155
|
+
padding: 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.seed-input-button__clearButton:is(:focus-visible, [data-focus-visible]) {
|
|
159
|
+
outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
|
|
160
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.seed-input-button__clearButton {
|
|
164
|
+
--seed-icon-size: 22px;
|
|
165
|
+
--seed-icon-color: var(--seed-color-fg-neutral-subtle);
|
|
166
|
+
}
|
|
167
|
+
}
|