@seed-design/lynx-css 0.14.2 → 1.0.1
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 +1078 -373
- package/all.min.css +1 -1
- package/base.css +10 -0
- package/base.min.css +1 -1
- package/package.json +1 -1
- package/recipes/alert-dialog.css +11 -0
- package/recipes/alert-dialog.d.ts +1 -1
- package/recipes/alert-dialog.mjs +8 -0
- package/recipes/app-bar.css +7 -3
- package/recipes/attachment-input-item.css +7 -0
- package/recipes/attachment-input.css +2 -1
- package/recipes/avatar-stack.css +69 -0
- package/recipes/avatar-stack.d.ts +24 -0
- package/recipes/avatar-stack.mjs +55 -0
- package/recipes/avatar.css +257 -0
- package/recipes/avatar.d.ts +28 -0
- package/recipes/avatar.mjs +82 -0
- package/recipes/badge.css +22 -23
- package/recipes/badge.d.ts +0 -4
- package/recipes/badge.mjs +1 -14
- package/recipes/bottom-sheet.css +33 -2
- package/recipes/bottom-sheet.d.ts +5 -1
- package/recipes/bottom-sheet.mjs +28 -2
- package/recipes/callout.css +1 -8
- package/recipes/checkbox.css +7 -1
- package/recipes/checkmark.css +17 -26
- package/recipes/checkmark.d.ts +1 -5
- package/recipes/checkmark.mjs +7 -60
- package/recipes/chip-tabs.css +12 -7
- package/recipes/chip.css +16 -11
- package/recipes/content-placeholder.css +29 -0
- package/recipes/content-placeholder.d.ts +21 -0
- package/recipes/content-placeholder.mjs +44 -0
- package/recipes/dialog.css +4 -2
- package/recipes/{input-button.css → field-button.css} +49 -49
- package/recipes/field-button.d.ts +40 -0
- package/recipes/{input-button.mjs → field-button.mjs} +20 -20
- package/recipes/floating-action-button.css +15 -8
- package/recipes/image-frame-icon.css +8 -0
- package/recipes/image-frame-icon.d.ts +19 -0
- package/recipes/image-frame-icon.mjs +22 -0
- package/recipes/image-frame-indicator.css +17 -0
- package/recipes/image-frame-indicator.d.ts +21 -0
- package/recipes/image-frame-indicator.mjs +36 -0
- package/recipes/image-frame-reaction-button.css +20 -0
- package/recipes/image-frame-reaction-button.d.ts +21 -0
- package/recipes/image-frame-reaction-button.mjs +40 -0
- package/recipes/image-frame.css +87 -0
- package/recipes/image-frame.d.ts +32 -0
- package/recipes/image-frame.mjs +72 -0
- package/recipes/list-item.css +0 -4
- package/recipes/list-item.d.ts +1 -1
- package/recipes/list-item.mjs +0 -4
- package/recipes/menu-sheet-item.css +5 -1
- package/recipes/menu-sheet.css +5 -0
- package/recipes/menu-sheet.d.ts +1 -1
- package/recipes/menu-sheet.mjs +4 -0
- package/recipes/menu.css +1 -13
- package/recipes/menu.d.ts +1 -1
- package/recipes/menu.mjs +0 -4
- package/recipes/progress-circle.css +61 -4
- package/recipes/progress-circle.d.ts +1 -1
- package/recipes/progress-circle.mjs +1 -0
- package/recipes/pull-to-refresh.css +14 -0
- package/recipes/pull-to-refresh.d.ts +21 -0
- package/recipes/pull-to-refresh.mjs +40 -0
- package/recipes/reaction-button.css +19 -19
- package/recipes/reaction-button.d.ts +0 -4
- package/recipes/reaction-button.mjs +0 -11
- package/recipes/scroll-fog.css +4 -17
- package/recipes/scroll-fog.d.ts +1 -1
- package/recipes/scroll-fog.mjs +0 -8
- package/recipes/segmented-control.css +24 -14
- package/recipes/segmented-control.d.ts +4 -4
- package/recipes/segmented-control.mjs +8 -8
- package/recipes/select-box-checkmark.css +4 -7
- package/recipes/select-box.css +10 -4
- package/recipes/select-item.css +13 -2
- package/recipes/select-item.d.ts +1 -1
- package/recipes/select-item.mjs +4 -0
- package/recipes/select-trigger.css +13 -2
- package/recipes/select-trigger.d.ts +1 -1
- package/recipes/select-trigger.mjs +4 -0
- package/recipes/select.css +1 -13
- package/recipes/select.d.ts +1 -1
- package/recipes/select.mjs +0 -4
- package/recipes/slider-marker.css +2 -2
- package/recipes/slider-tick.css +1 -1
- package/recipes/slider.css +2 -5
- package/recipes/tabs.css +11 -11
- package/recipes/wheel-picker.css +151 -0
- package/recipes/wheel-picker.d.ts +32 -0
- package/recipes/wheel-picker.mjs +90 -0
- package/recipes/input-button.d.ts +0 -40
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
.seed-wheel-picker__root {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
z-index: 0;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
background-color: var(--seed-color-bg-layer-floating);
|
|
7
|
+
}
|
|
8
|
+
.seed-wheel-picker__scrollFog {
|
|
9
|
+
position: relative;
|
|
10
|
+
z-index: 1;
|
|
11
|
+
height: 100%;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
14
|
+
.seed-wheel-picker__columns {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
}
|
|
21
|
+
.seed-wheel-picker__column {
|
|
22
|
+
position: relative;
|
|
23
|
+
flex-shrink: 0;
|
|
24
|
+
width: max-content;
|
|
25
|
+
height: 100%;
|
|
26
|
+
}
|
|
27
|
+
.seed-wheel-picker__track {
|
|
28
|
+
color: var(--seed-color-fg-disabled);
|
|
29
|
+
}
|
|
30
|
+
.seed-wheel-picker__sizingContent {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
align-items: center;
|
|
34
|
+
width: max-content;
|
|
35
|
+
height: 0;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
opacity: 0;
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
}
|
|
40
|
+
.seed-wheel-picker__item {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: row;
|
|
43
|
+
height: 100%;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
color: var(--seed-color-fg-disabled);
|
|
47
|
+
}
|
|
48
|
+
.seed-wheel-picker__item text {
|
|
49
|
+
color: var(--seed-color-fg-disabled);
|
|
50
|
+
}
|
|
51
|
+
.seed-wheel-picker__itemLabel {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: row;
|
|
54
|
+
flex-shrink: 0;
|
|
55
|
+
width: max-content;
|
|
56
|
+
height: 100%;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
padding-left: var(--seed-dimension-x4);
|
|
60
|
+
padding-right: var(--seed-dimension-x4);
|
|
61
|
+
font-weight: var(--seed-font-weight-medium);
|
|
62
|
+
color: var(--seed-color-fg-disabled);
|
|
63
|
+
}
|
|
64
|
+
.seed-wheel-picker__itemText {
|
|
65
|
+
font-weight: var(--seed-font-weight-medium);
|
|
66
|
+
color: var(--seed-color-fg-disabled);
|
|
67
|
+
}
|
|
68
|
+
.seed-wheel-picker__selectionIndicator {
|
|
69
|
+
position: absolute;
|
|
70
|
+
z-index: 0;
|
|
71
|
+
left: var(--seed-dimension-x4);
|
|
72
|
+
right: var(--seed-dimension-x4);
|
|
73
|
+
top: 50%;
|
|
74
|
+
transform: translateY(-50%);
|
|
75
|
+
border-radius: var(--seed-radius-r2);
|
|
76
|
+
background-color: var(--seed-color-bg-neutral-weak);
|
|
77
|
+
pointer-events: none;
|
|
78
|
+
}
|
|
79
|
+
.seed-wheel-picker__root--size_small {
|
|
80
|
+
height: var(--seed-wheel-picker-viewport-size, 180px);
|
|
81
|
+
}
|
|
82
|
+
.seed-wheel-picker__selectionIndicator--size_small {
|
|
83
|
+
height: var(--seed-wheel-picker-item-size, 36px);
|
|
84
|
+
}
|
|
85
|
+
.seed-wheel-picker__itemLabel--size_small {
|
|
86
|
+
font-size: var(--seed-font-size-t7-static);
|
|
87
|
+
line-height: var(--seed-line-height-t7-static);
|
|
88
|
+
}
|
|
89
|
+
.seed-wheel-picker__itemText--size_small {
|
|
90
|
+
font-size: var(--seed-font-size-t7-static);
|
|
91
|
+
line-height: var(--seed-line-height-t7-static);
|
|
92
|
+
}
|
|
93
|
+
.seed-wheel-picker__root--size_medium {
|
|
94
|
+
height: var(--seed-wheel-picker-viewport-size, 220px);
|
|
95
|
+
}
|
|
96
|
+
.seed-wheel-picker__selectionIndicator--size_medium {
|
|
97
|
+
height: var(--seed-wheel-picker-item-size, 44px);
|
|
98
|
+
}
|
|
99
|
+
.seed-wheel-picker__itemLabel--size_medium {
|
|
100
|
+
font-size: var(--seed-font-size-t10-static);
|
|
101
|
+
line-height: var(--seed-line-height-t10-static);
|
|
102
|
+
}
|
|
103
|
+
.seed-wheel-picker__itemText--size_medium {
|
|
104
|
+
font-size: var(--seed-font-size-t10-static);
|
|
105
|
+
line-height: var(--seed-line-height-t10-static);
|
|
106
|
+
}
|
|
107
|
+
.seed-wheel-picker__track--selected_true {
|
|
108
|
+
color: var(--seed-color-fg-neutral);
|
|
109
|
+
}
|
|
110
|
+
.seed-wheel-picker__item--selected_true {
|
|
111
|
+
color: var(--seed-color-fg-neutral);
|
|
112
|
+
}
|
|
113
|
+
.seed-wheel-picker__item--selected_true text {
|
|
114
|
+
color: var(--seed-color-fg-neutral);
|
|
115
|
+
}
|
|
116
|
+
.seed-wheel-picker__itemLabel--selected_true {
|
|
117
|
+
color: var(--seed-color-fg-neutral);
|
|
118
|
+
}
|
|
119
|
+
.seed-wheel-picker__itemText--selected_true {
|
|
120
|
+
color: var(--seed-color-fg-neutral);
|
|
121
|
+
}
|
|
122
|
+
.seed-wheel-picker__track--disabled_true {
|
|
123
|
+
color: var(--seed-color-fg-disabled);
|
|
124
|
+
}
|
|
125
|
+
.seed-wheel-picker__item--disabled_true {
|
|
126
|
+
color: var(--seed-color-fg-disabled);
|
|
127
|
+
}
|
|
128
|
+
.seed-wheel-picker__item--disabled_true text {
|
|
129
|
+
color: var(--seed-color-fg-disabled);
|
|
130
|
+
}
|
|
131
|
+
.seed-wheel-picker__itemLabel--disabled_true {
|
|
132
|
+
color: var(--seed-color-fg-disabled);
|
|
133
|
+
}
|
|
134
|
+
.seed-wheel-picker__itemText--disabled_true {
|
|
135
|
+
color: var(--seed-color-fg-disabled);
|
|
136
|
+
}
|
|
137
|
+
.seed-wheel-picker__track--selected_true-disabled_true {
|
|
138
|
+
color: var(--seed-color-fg-disabled);
|
|
139
|
+
}
|
|
140
|
+
.seed-wheel-picker__item--selected_true-disabled_true {
|
|
141
|
+
color: var(--seed-color-fg-disabled);
|
|
142
|
+
}
|
|
143
|
+
.seed-wheel-picker__item--selected_true-disabled_true text {
|
|
144
|
+
color: var(--seed-color-fg-disabled);
|
|
145
|
+
}
|
|
146
|
+
.seed-wheel-picker__itemLabel--selected_true-disabled_true {
|
|
147
|
+
color: var(--seed-color-fg-disabled);
|
|
148
|
+
}
|
|
149
|
+
.seed-wheel-picker__itemText--selected_true-disabled_true {
|
|
150
|
+
color: var(--seed-color-fg-disabled);
|
|
151
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare interface WheelPickerVariant {
|
|
2
|
+
/**
|
|
3
|
+
* @default "medium"
|
|
4
|
+
*/
|
|
5
|
+
size: "small" | "medium";
|
|
6
|
+
/**
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
selected: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare type WheelPickerVariantMap = {
|
|
17
|
+
[key in keyof WheelPickerVariant]: Array<WheelPickerVariant[key]>;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export declare type WheelPickerVariantProps = Partial<WheelPickerVariant>;
|
|
21
|
+
|
|
22
|
+
export declare type WheelPickerSlotName = "root" | "scrollFog" | "columns" | "column" | "track" | "sizingContent" | "item" | "itemLabel" | "itemText" | "selectionIndicator";
|
|
23
|
+
|
|
24
|
+
export declare const wheelPickerVariantMap: WheelPickerVariantMap;
|
|
25
|
+
|
|
26
|
+
export declare const wheelPicker: ((
|
|
27
|
+
props?: WheelPickerVariantProps,
|
|
28
|
+
) => Record<WheelPickerSlotName, string>) & {
|
|
29
|
+
splitVariantProps: <T extends WheelPickerVariantProps>(
|
|
30
|
+
props: T,
|
|
31
|
+
) => [WheelPickerVariantProps, Omit<T, keyof WheelPickerVariantProps>];
|
|
32
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import './wheel-picker.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const wheelPickerSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"root",
|
|
7
|
+
"seed-wheel-picker__root"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"scrollFog",
|
|
11
|
+
"seed-wheel-picker__scrollFog"
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"columns",
|
|
15
|
+
"seed-wheel-picker__columns"
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"column",
|
|
19
|
+
"seed-wheel-picker__column"
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"track",
|
|
23
|
+
"seed-wheel-picker__track"
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"sizingContent",
|
|
27
|
+
"seed-wheel-picker__sizingContent"
|
|
28
|
+
],
|
|
29
|
+
[
|
|
30
|
+
"item",
|
|
31
|
+
"seed-wheel-picker__item"
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
"itemLabel",
|
|
35
|
+
"seed-wheel-picker__itemLabel"
|
|
36
|
+
],
|
|
37
|
+
[
|
|
38
|
+
"itemText",
|
|
39
|
+
"seed-wheel-picker__itemText"
|
|
40
|
+
],
|
|
41
|
+
[
|
|
42
|
+
"selectionIndicator",
|
|
43
|
+
"seed-wheel-picker__selectionIndicator"
|
|
44
|
+
]
|
|
45
|
+
];
|
|
46
|
+
|
|
47
|
+
const defaultVariant = {
|
|
48
|
+
"size": "medium",
|
|
49
|
+
"selected": false,
|
|
50
|
+
"disabled": false
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const compoundVariants = [
|
|
54
|
+
{
|
|
55
|
+
"selected": true,
|
|
56
|
+
"disabled": true
|
|
57
|
+
}
|
|
58
|
+
];
|
|
59
|
+
|
|
60
|
+
export const wheelPickerVariantMap = {
|
|
61
|
+
"size": [
|
|
62
|
+
"small",
|
|
63
|
+
"medium"
|
|
64
|
+
],
|
|
65
|
+
"selected": [
|
|
66
|
+
true,
|
|
67
|
+
false
|
|
68
|
+
],
|
|
69
|
+
"disabled": [
|
|
70
|
+
true,
|
|
71
|
+
false
|
|
72
|
+
]
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export const wheelPickerVariantKeys = Object.keys(wheelPickerVariantMap);
|
|
76
|
+
|
|
77
|
+
export function wheelPicker(props) {
|
|
78
|
+
return Object.fromEntries(
|
|
79
|
+
wheelPickerSlotNames.map(([slot, className]) => {
|
|
80
|
+
return [
|
|
81
|
+
slot,
|
|
82
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
83
|
+
];
|
|
84
|
+
}),
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
Object.assign(wheelPicker, { splitVariantProps: (props) => splitVariantProps(props, wheelPickerVariantMap) });
|
|
89
|
+
|
|
90
|
+
// @recipe(seed): wheel-picker
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
declare interface InputButtonVariant {
|
|
2
|
-
/**
|
|
3
|
-
* @default "large"
|
|
4
|
-
*/
|
|
5
|
-
size: "large" | "medium";
|
|
6
|
-
/**
|
|
7
|
-
* @default false
|
|
8
|
-
*/
|
|
9
|
-
pressed: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* @default false
|
|
12
|
-
*/
|
|
13
|
-
invalid: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* @default false
|
|
16
|
-
*/
|
|
17
|
-
disabled: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
|
-
readOnly: boolean;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare type InputButtonVariantMap = {
|
|
25
|
-
[key in keyof InputButtonVariant]: Array<InputButtonVariant[key]>;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export declare type InputButtonVariantProps = Partial<InputButtonVariant>;
|
|
29
|
-
|
|
30
|
-
export declare type InputButtonSlotName = "root" | "button" | "content" | "baseStroke" | "stroke" | "value" | "placeholder" | "prefixText" | "prefixIcon" | "suffixText" | "suffixIcon" | "clearButton";
|
|
31
|
-
|
|
32
|
-
export declare const inputButtonVariantMap: InputButtonVariantMap;
|
|
33
|
-
|
|
34
|
-
export declare const inputButton: ((
|
|
35
|
-
props?: InputButtonVariantProps,
|
|
36
|
-
) => Record<InputButtonSlotName, string>) & {
|
|
37
|
-
splitVariantProps: <T extends InputButtonVariantProps>(
|
|
38
|
-
props: T,
|
|
39
|
-
) => [InputButtonVariantProps, Omit<T, keyof InputButtonVariantProps>];
|
|
40
|
-
}
|