@seed-design/lynx-css 0.11.1 → 0.12.0
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 +3257 -1214
- package/all.min.css +1 -1
- package/base.css +12 -2
- package/base.min.css +1 -1
- package/package.json +1 -1
- package/recipes/alert-dialog.css +114 -0
- package/recipes/alert-dialog.d.ts +24 -0
- package/recipes/alert-dialog.mjs +67 -0
- package/recipes/app-bar.css +27 -21
- package/recipes/attachment-input-item.css +276 -0
- package/recipes/attachment-input-item.d.ts +40 -0
- package/recipes/attachment-input-item.mjs +128 -0
- package/recipes/attachment-input-trigger.css +53 -0
- package/recipes/attachment-input-trigger.d.ts +28 -0
- package/recipes/attachment-input-trigger.mjs +60 -0
- package/recipes/attachment-input.css +31 -0
- package/recipes/attachment-input.d.ts +21 -0
- package/recipes/attachment-input.mjs +44 -0
- package/recipes/callout.css +61 -56
- package/recipes/chip-tabs.css +136 -0
- package/recipes/chip-tabs.d.ts +52 -0
- package/recipes/chip-tabs.mjs +147 -0
- package/recipes/contextual-floating-button.css +131 -0
- package/recipes/contextual-floating-button.d.ts +40 -0
- package/recipes/contextual-floating-button.mjs +104 -0
- package/recipes/dialog.css +130 -0
- package/recipes/dialog.d.ts +28 -0
- package/recipes/dialog.mjs +76 -0
- package/recipes/floating-action-button.css +61 -0
- package/recipes/floating-action-button.d.ts +36 -0
- package/recipes/floating-action-button.mjs +67 -0
- package/recipes/help-bubble.css +112 -0
- package/recipes/help-bubble.d.ts +36 -0
- package/recipes/help-bubble.mjs +96 -0
- package/recipes/identity-placeholder.css +11 -0
- package/recipes/identity-placeholder.d.ts +24 -0
- package/recipes/identity-placeholder.mjs +43 -0
- package/recipes/input-button.css +20 -1
- package/recipes/input-button.d.ts +1 -1
- package/recipes/input-button.mjs +10 -1
- package/recipes/list-item.css +8 -9
- package/recipes/list-item.d.ts +4 -0
- package/recipes/list-item.mjs +11 -1
- package/recipes/menu-item.css +16 -2
- package/recipes/menu-item.d.ts +1 -1
- package/recipes/menu-item.mjs +4 -0
- package/recipes/menu-sheet-item.css +26 -15
- package/recipes/menu-sheet-item.d.ts +1 -1
- package/recipes/menu-sheet-item.mjs +4 -0
- package/recipes/menu-sheet.css +18 -13
- package/recipes/page-banner.css +8 -0
- package/recipes/page-banner.d.ts +1 -1
- package/recipes/page-banner.mjs +4 -0
- package/recipes/quantity-picker.css +213 -0
- package/recipes/quantity-picker.d.ts +44 -0
- package/recipes/quantity-picker.mjs +102 -0
- package/recipes/reaction-button.css +7 -12
- package/recipes/reaction-button.mjs +7 -8
- package/recipes/scroll-fog.css +66 -0
- package/recipes/scroll-fog.d.ts +36 -0
- package/recipes/scroll-fog.mjs +78 -0
- package/recipes/select-item.css +105 -0
- package/recipes/select-item.d.ts +36 -0
- package/recipes/select-item.mjs +83 -0
- package/recipes/select-trigger.css +147 -0
- package/recipes/select-trigger.d.ts +44 -0
- package/recipes/select-trigger.mjs +90 -0
- package/recipes/select.css +88 -0
- package/recipes/select.d.ts +32 -0
- package/recipes/select.mjs +81 -0
- package/recipes/skeleton.css +41 -0
- package/recipes/skeleton.d.ts +36 -0
- package/recipes/skeleton.mjs +50 -0
- package/recipes/slider-marker.css +44 -0
- package/recipes/slider-marker.d.ts +30 -0
- package/recipes/slider-marker.mjs +65 -0
- package/recipes/slider-tick.css +14 -0
- package/recipes/slider-tick.d.ts +22 -0
- package/recipes/slider-tick.mjs +29 -0
- package/recipes/slider.css +140 -0
- package/recipes/slider.d.ts +40 -0
- package/recipes/slider.mjs +99 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
.seed-help-bubble__positioner {
|
|
2
|
+
position: fixed
|
|
3
|
+
}
|
|
4
|
+
.seed-help-bubble__motion {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
align-items: stretch;
|
|
8
|
+
padding: 8px;
|
|
9
|
+
margin: -8px;
|
|
10
|
+
overflow: visible;
|
|
11
|
+
opacity: 0;
|
|
12
|
+
transform: scale(1);
|
|
13
|
+
transition-property: opacity, transform;
|
|
14
|
+
transition-duration: var(--seed-duration-d4);
|
|
15
|
+
transition-timing-function: var(--seed-timing-function-easing)
|
|
16
|
+
}
|
|
17
|
+
.seed-help-bubble__content {
|
|
18
|
+
position: relative;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
align-items: flex-start;
|
|
22
|
+
overflow: visible;
|
|
23
|
+
background-color: var(--seed-color-bg-neutral-inverted);
|
|
24
|
+
padding-top: var(--seed-dimension-x2_5);
|
|
25
|
+
padding-right: var(--seed-dimension-x3);
|
|
26
|
+
padding-bottom: var(--seed-dimension-x2_5);
|
|
27
|
+
padding-left: var(--seed-dimension-x3);
|
|
28
|
+
border-radius: var(--seed-radius-r3);
|
|
29
|
+
max-width: 280px
|
|
30
|
+
}
|
|
31
|
+
.seed-help-bubble__arrow {
|
|
32
|
+
position: absolute;
|
|
33
|
+
width: 12px;
|
|
34
|
+
height: 12px;
|
|
35
|
+
overflow: visible;
|
|
36
|
+
transform: rotate(0deg)
|
|
37
|
+
}
|
|
38
|
+
.seed-help-bubble__arrowTip {
|
|
39
|
+
width: 12px;
|
|
40
|
+
height: calc(8px + 1px);
|
|
41
|
+
background-color: var(--seed-color-bg-neutral-inverted);
|
|
42
|
+
clip-path: path("M0 0 H12 V1 L8 7 Q6 9 4 7 L0 1 Z");
|
|
43
|
+
transform: translateY(-1px)
|
|
44
|
+
}
|
|
45
|
+
.seed-help-bubble__body {
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
flex-grow: 1;
|
|
49
|
+
flex-shrink: 1;
|
|
50
|
+
min-width: 0;
|
|
51
|
+
overflow: visible;
|
|
52
|
+
gap: var(--seed-dimension-x0_5)
|
|
53
|
+
}
|
|
54
|
+
.seed-help-bubble__title {
|
|
55
|
+
color: var(--seed-color-fg-neutral-inverted);
|
|
56
|
+
font-size: var(--seed-font-size-t3);
|
|
57
|
+
font-weight: var(--seed-font-weight-bold);
|
|
58
|
+
line-height: var(--seed-line-height-t3)
|
|
59
|
+
}
|
|
60
|
+
.seed-help-bubble__description {
|
|
61
|
+
color: var(--seed-color-fg-neutral-inverted);
|
|
62
|
+
font-size: var(--seed-font-size-t3);
|
|
63
|
+
font-weight: var(--seed-font-weight-regular);
|
|
64
|
+
line-height: var(--seed-line-height-t3)
|
|
65
|
+
}
|
|
66
|
+
.seed-help-bubble__closeButton {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
padding-top: calc((38px - var(--seed-dimension-x3_5)) / 2);
|
|
72
|
+
padding-right: calc((38px - var(--seed-dimension-x3_5)) / 2);
|
|
73
|
+
padding-bottom: calc((38px - var(--seed-dimension-x3_5)) / 2);
|
|
74
|
+
padding-left: calc((38px - var(--seed-dimension-x3_5)) / 2);
|
|
75
|
+
margin-left: calc(var(--seed-dimension-x1) - ((38px - var(--seed-dimension-x3_5)) / 2));
|
|
76
|
+
margin-right: calc(-1 * ((38px - var(--seed-dimension-x3_5)) / 2));
|
|
77
|
+
margin-top: calc(-1 * ((38px - var(--seed-dimension-x3_5)) / 2) + var(--seed-dimension-x0_5));
|
|
78
|
+
margin-bottom: calc(-1 * ((38px - var(--seed-dimension-x3_5)) / 2) + var(--seed-dimension-x0_5));
|
|
79
|
+
border-radius: var(--seed-radius-r3);
|
|
80
|
+
color: var(--seed-color-fg-neutral-inverted);
|
|
81
|
+
transform: scale(1);
|
|
82
|
+
transition: transform var(--seed-duration-pressed-scale) var(--seed-timing-function-pressed-scale)
|
|
83
|
+
}
|
|
84
|
+
.seed-help-bubble__motion--positioned_true {
|
|
85
|
+
width: calc(100% + 16px)
|
|
86
|
+
}
|
|
87
|
+
.seed-help-bubble__arrow--side_top {
|
|
88
|
+
transform: rotate(0deg)
|
|
89
|
+
}
|
|
90
|
+
.seed-help-bubble__arrow--side_right {
|
|
91
|
+
transform: rotate(90deg)
|
|
92
|
+
}
|
|
93
|
+
.seed-help-bubble__arrow--side_bottom {
|
|
94
|
+
transform: rotate(180deg)
|
|
95
|
+
}
|
|
96
|
+
.seed-help-bubble__arrow--side_left {
|
|
97
|
+
transform: rotate(270deg)
|
|
98
|
+
}
|
|
99
|
+
.seed-help-bubble__closeButton--pressed_true {
|
|
100
|
+
transform: scale(var(--seed-scale-s97))
|
|
101
|
+
}
|
|
102
|
+
.seed-help-bubble__motion--positioned_false {
|
|
103
|
+
opacity: 0;
|
|
104
|
+
transform: scale(0.9);
|
|
105
|
+
transition-duration: 0s
|
|
106
|
+
}
|
|
107
|
+
.seed-help-bubble__motion--open_true-positioned_true {
|
|
108
|
+
opacity: 1;
|
|
109
|
+
transform: scale(1);
|
|
110
|
+
transition-duration: var(--seed-duration-d4);
|
|
111
|
+
transition-timing-function: var(--seed-timing-function-enter)
|
|
112
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare interface HelpBubbleVariant {
|
|
2
|
+
/**
|
|
3
|
+
* @default false
|
|
4
|
+
*/
|
|
5
|
+
open: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
positioned: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* @default "top"
|
|
12
|
+
*/
|
|
13
|
+
side: "top" | "right" | "bottom" | "left";
|
|
14
|
+
/**
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
pressed: boolean;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare type HelpBubbleVariantMap = {
|
|
21
|
+
[key in keyof HelpBubbleVariant]: Array<HelpBubbleVariant[key]>;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export declare type HelpBubbleVariantProps = Partial<HelpBubbleVariant>;
|
|
25
|
+
|
|
26
|
+
export declare type HelpBubbleSlotName = "positioner" | "motion" | "content" | "arrow" | "arrowTip" | "body" | "title" | "description" | "closeButton";
|
|
27
|
+
|
|
28
|
+
export declare const helpBubbleVariantMap: HelpBubbleVariantMap;
|
|
29
|
+
|
|
30
|
+
export declare const helpBubble: ((
|
|
31
|
+
props?: HelpBubbleVariantProps,
|
|
32
|
+
) => Record<HelpBubbleSlotName, string>) & {
|
|
33
|
+
splitVariantProps: <T extends HelpBubbleVariantProps>(
|
|
34
|
+
props: T,
|
|
35
|
+
) => [HelpBubbleVariantProps, Omit<T, keyof HelpBubbleVariantProps>];
|
|
36
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import './help-bubble.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const helpBubbleSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"positioner",
|
|
7
|
+
"seed-help-bubble__positioner"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"motion",
|
|
11
|
+
"seed-help-bubble__motion"
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"content",
|
|
15
|
+
"seed-help-bubble__content"
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"arrow",
|
|
19
|
+
"seed-help-bubble__arrow"
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"arrowTip",
|
|
23
|
+
"seed-help-bubble__arrowTip"
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"body",
|
|
27
|
+
"seed-help-bubble__body"
|
|
28
|
+
],
|
|
29
|
+
[
|
|
30
|
+
"title",
|
|
31
|
+
"seed-help-bubble__title"
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
"description",
|
|
35
|
+
"seed-help-bubble__description"
|
|
36
|
+
],
|
|
37
|
+
[
|
|
38
|
+
"closeButton",
|
|
39
|
+
"seed-help-bubble__closeButton"
|
|
40
|
+
]
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
const defaultVariant = {
|
|
44
|
+
"open": false,
|
|
45
|
+
"positioned": false,
|
|
46
|
+
"side": "top",
|
|
47
|
+
"pressed": false
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const compoundVariants = [
|
|
51
|
+
{
|
|
52
|
+
"positioned": false
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"open": true,
|
|
56
|
+
"positioned": true
|
|
57
|
+
}
|
|
58
|
+
];
|
|
59
|
+
|
|
60
|
+
export const helpBubbleVariantMap = {
|
|
61
|
+
"open": [
|
|
62
|
+
true,
|
|
63
|
+
false
|
|
64
|
+
],
|
|
65
|
+
"positioned": [
|
|
66
|
+
true,
|
|
67
|
+
false
|
|
68
|
+
],
|
|
69
|
+
"side": [
|
|
70
|
+
"top",
|
|
71
|
+
"right",
|
|
72
|
+
"bottom",
|
|
73
|
+
"left"
|
|
74
|
+
],
|
|
75
|
+
"pressed": [
|
|
76
|
+
true,
|
|
77
|
+
false
|
|
78
|
+
]
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export const helpBubbleVariantKeys = Object.keys(helpBubbleVariantMap);
|
|
82
|
+
|
|
83
|
+
export function helpBubble(props) {
|
|
84
|
+
return Object.fromEntries(
|
|
85
|
+
helpBubbleSlotNames.map(([slot, className]) => {
|
|
86
|
+
return [
|
|
87
|
+
slot,
|
|
88
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
89
|
+
];
|
|
90
|
+
}),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
Object.assign(helpBubble, { splitVariantProps: (props) => splitVariantProps(props, helpBubbleVariantMap) });
|
|
95
|
+
|
|
96
|
+
// @recipe(seed): help-bubble
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare interface IdentityPlaceholderVariant {
|
|
2
|
+
/**
|
|
3
|
+
* @default "person"
|
|
4
|
+
*/
|
|
5
|
+
identity: "person" | "business";
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare type IdentityPlaceholderVariantMap = {
|
|
9
|
+
[key in keyof IdentityPlaceholderVariant]: Array<IdentityPlaceholderVariant[key]>;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export declare type IdentityPlaceholderVariantProps = Partial<IdentityPlaceholderVariant>;
|
|
13
|
+
|
|
14
|
+
export declare type IdentityPlaceholderSlotName = "root" | "image";
|
|
15
|
+
|
|
16
|
+
export declare const identityPlaceholderVariantMap: IdentityPlaceholderVariantMap;
|
|
17
|
+
|
|
18
|
+
export declare const identityPlaceholder: ((
|
|
19
|
+
props?: IdentityPlaceholderVariantProps,
|
|
20
|
+
) => Record<IdentityPlaceholderSlotName, string>) & {
|
|
21
|
+
splitVariantProps: <T extends IdentityPlaceholderVariantProps>(
|
|
22
|
+
props: T,
|
|
23
|
+
) => [IdentityPlaceholderVariantProps, Omit<T, keyof IdentityPlaceholderVariantProps>];
|
|
24
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import './identity-placeholder.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
|
package/recipes/input-button.css
CHANGED
|
@@ -6,13 +6,22 @@
|
|
|
6
6
|
position: relative;
|
|
7
7
|
overflow: hidden
|
|
8
8
|
}
|
|
9
|
+
.seed-input-button__content {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
align-items: center;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
pointer-events: none
|
|
16
|
+
}
|
|
9
17
|
.seed-input-button__button {
|
|
10
18
|
position: absolute;
|
|
11
19
|
top: 0;
|
|
12
20
|
right: 0;
|
|
13
21
|
bottom: 0;
|
|
14
22
|
left: 0;
|
|
15
|
-
background-color: var(--seed-color-bg-transparent)
|
|
23
|
+
background-color: var(--seed-color-bg-transparent);
|
|
24
|
+
transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing)
|
|
16
25
|
}
|
|
17
26
|
.seed-input-button__baseStroke {
|
|
18
27
|
position: absolute;
|
|
@@ -80,6 +89,7 @@
|
|
|
80
89
|
pointer-events: none
|
|
81
90
|
}
|
|
82
91
|
.seed-input-button__clearButton {
|
|
92
|
+
pointer-events: auto;
|
|
83
93
|
flex-shrink: 0;
|
|
84
94
|
color: var(--seed-color-fg-neutral-subtle)
|
|
85
95
|
}
|
|
@@ -90,6 +100,9 @@
|
|
|
90
100
|
padding-right: var(--seed-dimension-x4);
|
|
91
101
|
border-radius: var(--seed-radius-r3)
|
|
92
102
|
}
|
|
103
|
+
.seed-input-button__content--size_large {
|
|
104
|
+
gap: var(--seed-dimension-x2_5)
|
|
105
|
+
}
|
|
93
106
|
.seed-input-button__button--size_large {
|
|
94
107
|
border-radius: var(--seed-radius-r3)
|
|
95
108
|
}
|
|
@@ -134,6 +147,9 @@
|
|
|
134
147
|
padding-right: var(--seed-dimension-x3_5);
|
|
135
148
|
border-radius: var(--seed-radius-r2)
|
|
136
149
|
}
|
|
150
|
+
.seed-input-button__content--size_medium {
|
|
151
|
+
gap: var(--seed-dimension-x2)
|
|
152
|
+
}
|
|
137
153
|
.seed-input-button__button--size_medium {
|
|
138
154
|
border-radius: var(--seed-radius-r2)
|
|
139
155
|
}
|
|
@@ -206,4 +222,7 @@
|
|
|
206
222
|
}
|
|
207
223
|
.seed-input-button__placeholder--readOnly_true {
|
|
208
224
|
color: var(--seed-color-fg-placeholder)
|
|
225
|
+
}
|
|
226
|
+
.seed-input-button__button--disabled_false-readOnly_false:active {
|
|
227
|
+
background-color: var(--seed-color-bg-transparent-pressed)
|
|
209
228
|
}
|
|
@@ -27,7 +27,7 @@ declare type InputButtonVariantMap = {
|
|
|
27
27
|
|
|
28
28
|
export declare type InputButtonVariantProps = Partial<InputButtonVariant>;
|
|
29
29
|
|
|
30
|
-
export declare type InputButtonSlotName = "root" | "button" | "baseStroke" | "stroke" | "value" | "placeholder" | "prefixText" | "prefixIcon" | "suffixText" | "suffixIcon" | "clearButton";
|
|
30
|
+
export declare type InputButtonSlotName = "root" | "button" | "content" | "baseStroke" | "stroke" | "value" | "placeholder" | "prefixText" | "prefixIcon" | "suffixText" | "suffixIcon" | "clearButton";
|
|
31
31
|
|
|
32
32
|
export declare const inputButtonVariantMap: InputButtonVariantMap;
|
|
33
33
|
|
package/recipes/input-button.mjs
CHANGED
|
@@ -10,6 +10,10 @@ const inputButtonSlotNames = [
|
|
|
10
10
|
"button",
|
|
11
11
|
"seed-input-button__button"
|
|
12
12
|
],
|
|
13
|
+
[
|
|
14
|
+
"content",
|
|
15
|
+
"seed-input-button__content"
|
|
16
|
+
],
|
|
13
17
|
[
|
|
14
18
|
"baseStroke",
|
|
15
19
|
"seed-input-button__baseStroke"
|
|
@@ -56,7 +60,12 @@ const defaultVariant = {
|
|
|
56
60
|
"readOnly": false
|
|
57
61
|
};
|
|
58
62
|
|
|
59
|
-
const compoundVariants = [
|
|
63
|
+
const compoundVariants = [
|
|
64
|
+
{
|
|
65
|
+
"disabled": false,
|
|
66
|
+
"readOnly": false
|
|
67
|
+
}
|
|
68
|
+
];
|
|
60
69
|
|
|
61
70
|
export const inputButtonVariantMap = {
|
|
62
71
|
"size": [
|
package/recipes/list-item.css
CHANGED
|
@@ -28,19 +28,17 @@
|
|
|
28
28
|
right: 0;
|
|
29
29
|
bottom: 0;
|
|
30
30
|
left: 0;
|
|
31
|
-
border-radius:
|
|
31
|
+
border-radius: var(--seed-dimension-x2_5);
|
|
32
32
|
background-color: var(--seed-color-bg-transparent-pressed);
|
|
33
33
|
opacity: 0;
|
|
34
|
-
transition: opacity var(--seed-duration-color-transition) var(--seed-timing-function-easing), left var(--seed-duration-d3) var(--seed-timing-function-easing), right var(--seed-duration-d3) var(--seed-timing-function-easing)
|
|
34
|
+
transition: opacity var(--seed-duration-color-transition) var(--seed-timing-function-easing), left var(--seed-duration-d3) var(--seed-timing-function-easing), right var(--seed-duration-d3) var(--seed-timing-function-easing)
|
|
35
35
|
}
|
|
36
36
|
.seed-list-item__layout {
|
|
37
37
|
position: relative;
|
|
38
38
|
display: flex;
|
|
39
39
|
flex-direction: row;
|
|
40
40
|
align-items: center;
|
|
41
|
-
width: 100
|
|
42
|
-
transform: scale(1);
|
|
43
|
-
transition: transform var(--seed-duration-pressed-scale) var(--seed-timing-function-pressed-scale)
|
|
41
|
+
width: 100%
|
|
44
42
|
}
|
|
45
43
|
.seed-list-item__prefix {
|
|
46
44
|
display: flex;
|
|
@@ -100,12 +98,8 @@
|
|
|
100
98
|
.seed-list-item__pressedOverlay--pressed_true {
|
|
101
99
|
right: var(--seed-dimension-x1_5);
|
|
102
100
|
left: var(--seed-dimension-x1_5);
|
|
103
|
-
border-radius: var(--seed-dimension-x2_5);
|
|
104
101
|
opacity: 1
|
|
105
102
|
}
|
|
106
|
-
.seed-list-item__layout--pressed_true {
|
|
107
|
-
transform: scale(var(--seed-scale-s98))
|
|
108
|
-
}
|
|
109
103
|
.seed-list-item__title--disabled_true {
|
|
110
104
|
color: var(--seed-color-fg-disabled)
|
|
111
105
|
}
|
|
@@ -117,4 +111,9 @@
|
|
|
117
111
|
}
|
|
118
112
|
.seed-list-item__suffixIcon--disabled_true {
|
|
119
113
|
color: var(--seed-color-fg-disabled)
|
|
114
|
+
}
|
|
115
|
+
.seed-list-item__root--interactive_true-disabled_false:active .seed-list-item__pressedOverlay {
|
|
116
|
+
right: var(--seed-dimension-x1_5);
|
|
117
|
+
left: var(--seed-dimension-x1_5);
|
|
118
|
+
opacity: 1
|
|
120
119
|
}
|
package/recipes/list-item.d.ts
CHANGED
package/recipes/list-item.mjs
CHANGED
|
@@ -53,14 +53,24 @@ const listItemSlotNames = [
|
|
|
53
53
|
];
|
|
54
54
|
|
|
55
55
|
const defaultVariant = {
|
|
56
|
+
"interactive": false,
|
|
56
57
|
"highlighted": false,
|
|
57
58
|
"pressed": false,
|
|
58
59
|
"disabled": false
|
|
59
60
|
};
|
|
60
61
|
|
|
61
|
-
const compoundVariants = [
|
|
62
|
+
const compoundVariants = [
|
|
63
|
+
{
|
|
64
|
+
"interactive": true,
|
|
65
|
+
"disabled": false
|
|
66
|
+
}
|
|
67
|
+
];
|
|
62
68
|
|
|
63
69
|
export const listItemVariantMap = {
|
|
70
|
+
"interactive": [
|
|
71
|
+
true,
|
|
72
|
+
false
|
|
73
|
+
],
|
|
64
74
|
"highlighted": [
|
|
65
75
|
true,
|
|
66
76
|
false
|
package/recipes/menu-item.css
CHANGED
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
align-items: center;
|
|
6
6
|
flex-shrink: 0
|
|
7
7
|
}
|
|
8
|
+
.seed-menu-item__scaleContent {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
align-items: center;
|
|
12
|
+
width: 100%;
|
|
13
|
+
min-width: 0
|
|
14
|
+
}
|
|
8
15
|
.seed-menu-item__pressedOverlay {
|
|
9
16
|
position: absolute;
|
|
10
17
|
top: 0;
|
|
@@ -42,7 +49,9 @@
|
|
|
42
49
|
padding-top: var(--seed-dimension-x3);
|
|
43
50
|
padding-bottom: var(--seed-dimension-x3);
|
|
44
51
|
padding-left: var(--seed-dimension-x4);
|
|
45
|
-
padding-right: var(--seed-dimension-x4)
|
|
52
|
+
padding-right: var(--seed-dimension-x4)
|
|
53
|
+
}
|
|
54
|
+
.seed-menu-item__scaleContent--size_medium {
|
|
46
55
|
gap: var(--seed-dimension-x3)
|
|
47
56
|
}
|
|
48
57
|
.seed-menu-item__label--size_medium {
|
|
@@ -65,7 +74,9 @@
|
|
|
65
74
|
padding-top: var(--seed-dimension-x2_5);
|
|
66
75
|
padding-bottom: var(--seed-dimension-x2_5);
|
|
67
76
|
padding-left: var(--seed-dimension-x4);
|
|
68
|
-
padding-right: var(--seed-dimension-x4)
|
|
77
|
+
padding-right: var(--seed-dimension-x4)
|
|
78
|
+
}
|
|
79
|
+
.seed-menu-item__scaleContent--size_small {
|
|
69
80
|
gap: var(--seed-dimension-x2)
|
|
70
81
|
}
|
|
71
82
|
.seed-menu-item__label--size_small {
|
|
@@ -96,6 +107,9 @@
|
|
|
96
107
|
.seed-menu-item__suffixIcon--disabled_true {
|
|
97
108
|
color: var(--seed-color-fg-disabled)
|
|
98
109
|
}
|
|
110
|
+
.seed-menu-item__root--disabled_false:active .seed-menu-item__pressedOverlay {
|
|
111
|
+
opacity: 1
|
|
112
|
+
}
|
|
99
113
|
.seed-menu-item__label--tone_neutral-disabled_false {
|
|
100
114
|
color: var(--seed-color-fg-neutral)
|
|
101
115
|
}
|
package/recipes/menu-item.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ declare type MenuItemVariantMap = {
|
|
|
23
23
|
|
|
24
24
|
export declare type MenuItemVariantProps = Partial<MenuItemVariant>;
|
|
25
25
|
|
|
26
|
-
export declare type MenuItemSlotName = "root" | "pressedOverlay" | "body" | "label" | "description" | "prefixIcon" | "suffixIcon";
|
|
26
|
+
export declare type MenuItemSlotName = "root" | "scaleContent" | "pressedOverlay" | "body" | "label" | "description" | "prefixIcon" | "suffixIcon";
|
|
27
27
|
|
|
28
28
|
export declare const menuItemVariantMap: MenuItemVariantMap;
|
|
29
29
|
|
package/recipes/menu-item.mjs
CHANGED
|
@@ -9,8 +9,19 @@
|
|
|
9
9
|
padding-right: var(--seed-dimension-x4);
|
|
10
10
|
padding-bottom: var(--seed-dimension-x3_5);
|
|
11
11
|
padding-left: var(--seed-dimension-x4);
|
|
12
|
+
background-color: var(--seed-color-bg-neutral-weak);
|
|
13
|
+
}
|
|
14
|
+
.seed-menu-sheet-item__root:active {
|
|
15
|
+
background-color: var(--seed-color-bg-neutral-weak-pressed);
|
|
16
|
+
}
|
|
17
|
+
.seed-menu-sheet-item__scaleContent {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: flex-start;
|
|
22
|
+
width: 100%;
|
|
23
|
+
min-width: 0;
|
|
12
24
|
gap: var(--seed-dimension-x3_5);
|
|
13
|
-
background-color: var(--seed-color-bg-neutral-weak)
|
|
14
25
|
}
|
|
15
26
|
.seed-menu-sheet-item__content {
|
|
16
27
|
display: flex;
|
|
@@ -18,52 +29,52 @@
|
|
|
18
29
|
flex-grow: 1;
|
|
19
30
|
flex-shrink: 1;
|
|
20
31
|
min-width: 0;
|
|
21
|
-
gap: var(--seed-dimension-x0_5)
|
|
32
|
+
gap: var(--seed-dimension-x0_5);
|
|
22
33
|
}
|
|
23
34
|
.seed-menu-sheet-item__label {
|
|
24
35
|
font-size: var(--seed-font-size-t5);
|
|
25
36
|
line-height: var(--seed-line-height-t5);
|
|
26
|
-
font-weight: var(--seed-font-weight-regular)
|
|
37
|
+
font-weight: var(--seed-font-weight-regular);
|
|
27
38
|
}
|
|
28
39
|
.seed-menu-sheet-item__description {
|
|
29
40
|
color: var(--seed-color-fg-neutral-subtle);
|
|
30
41
|
font-size: var(--seed-font-size-t3);
|
|
31
42
|
line-height: var(--seed-line-height-t3);
|
|
32
|
-
font-weight: var(--seed-font-weight-medium)
|
|
43
|
+
font-weight: var(--seed-font-weight-medium);
|
|
33
44
|
}
|
|
34
45
|
.seed-menu-sheet-item__prefixIcon {
|
|
35
46
|
flex-shrink: 0;
|
|
36
47
|
width: 22px;
|
|
37
|
-
height: 22px
|
|
48
|
+
height: 22px;
|
|
38
49
|
}
|
|
39
50
|
.seed-menu-sheet-item__divider {
|
|
40
51
|
width: 100%;
|
|
41
52
|
height: 1px;
|
|
42
|
-
background-color: var(--seed-color-stroke-neutral-muted)
|
|
53
|
+
background-color: var(--seed-color-stroke-neutral-muted);
|
|
43
54
|
}
|
|
44
55
|
.seed-menu-sheet-item__prefixIcon--tone_neutral {
|
|
45
|
-
color: var(--seed-color-fg-neutral)
|
|
56
|
+
color: var(--seed-color-fg-neutral);
|
|
46
57
|
}
|
|
47
58
|
.seed-menu-sheet-item__label--tone_neutral {
|
|
48
|
-
color: var(--seed-color-fg-neutral)
|
|
59
|
+
color: var(--seed-color-fg-neutral);
|
|
49
60
|
}
|
|
50
61
|
.seed-menu-sheet-item__prefixIcon--tone_critical {
|
|
51
|
-
color: var(--seed-color-fg-critical)
|
|
62
|
+
color: var(--seed-color-fg-critical);
|
|
52
63
|
}
|
|
53
64
|
.seed-menu-sheet-item__label--tone_critical {
|
|
54
|
-
color: var(--seed-color-fg-critical)
|
|
65
|
+
color: var(--seed-color-fg-critical);
|
|
55
66
|
}
|
|
56
67
|
.seed-menu-sheet-item__content--labelAlign_left {
|
|
57
68
|
align-items: flex-start;
|
|
58
|
-
text-align: start
|
|
69
|
+
text-align: start;
|
|
59
70
|
}
|
|
60
|
-
.seed-menu-sheet-
|
|
61
|
-
justify-content: center
|
|
71
|
+
.seed-menu-sheet-item__scaleContent--labelAlign_center {
|
|
72
|
+
justify-content: center;
|
|
62
73
|
}
|
|
63
74
|
.seed-menu-sheet-item__content--labelAlign_center {
|
|
64
75
|
align-items: center;
|
|
65
|
-
text-align: center
|
|
76
|
+
text-align: center;
|
|
66
77
|
}
|
|
67
78
|
.seed-menu-sheet-item__root--pressed_true {
|
|
68
|
-
background-color: var(--seed-color-bg-neutral-weak-pressed)
|
|
79
|
+
background-color: var(--seed-color-bg-neutral-weak-pressed);
|
|
69
80
|
}
|
|
@@ -19,7 +19,7 @@ declare type MenuSheetItemVariantMap = {
|
|
|
19
19
|
|
|
20
20
|
export declare type MenuSheetItemVariantProps = Partial<MenuSheetItemVariant>;
|
|
21
21
|
|
|
22
|
-
export declare type MenuSheetItemSlotName = "root" | "content" | "label" | "description" | "prefixIcon" | "divider";
|
|
22
|
+
export declare type MenuSheetItemSlotName = "root" | "scaleContent" | "content" | "label" | "description" | "prefixIcon" | "divider";
|
|
23
23
|
|
|
24
24
|
export declare const menuSheetItemVariantMap: MenuSheetItemVariantMap;
|
|
25
25
|
|