@seed-design/rootage-artifacts 0.0.0 → 0.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/README.md +10 -0
- package/color.yaml +438 -366
- package/components/action-button.yaml +415 -205
- package/components/action-chip.yaml +139 -67
- package/components/action-sheet-close-button.yaml +45 -0
- package/components/action-sheet-item.yaml +52 -0
- package/components/action-sheet.yaml +115 -0
- package/components/avatar-stack.yaml +74 -0
- package/components/avatar.yaml +110 -47
- package/components/badge.yaml +153 -130
- package/components/bottom-sheet-close-button.yaml +38 -0
- package/components/bottom-sheet.yaml +143 -0
- package/components/callout.yaml +169 -129
- package/components/checkbox.yaml +139 -116
- package/components/chip-tab.yaml +82 -59
- package/components/chip-tablist.yaml +20 -11
- package/components/chip.yaml +314 -0
- package/components/contextual-floating-button.yaml +155 -0
- package/components/control-chip.yaml +157 -88
- package/components/dialog.yaml +119 -18
- package/components/divider.yaml +17 -0
- package/components/extended-action-sheet-close-button.yaml +50 -0
- package/components/extended-action-sheet-item.yaml +67 -0
- package/components/extended-action-sheet.yaml +134 -0
- package/components/extended-fab.yaml +102 -0
- package/components/fab.yaml +38 -20
- package/components/floating-action-button.yaml +99 -0
- package/components/help-bubble.yaml +121 -32
- package/components/identity-placeholder.yaml +23 -0
- package/components/inline-banner.yaml +188 -141
- package/components/link-content.yaml +60 -0
- package/components/manner-temp-badge.yaml +78 -0
- package/components/manner-temp.yaml +61 -0
- package/components/menu-sheet-close-button.yaml +49 -0
- package/components/menu-sheet-item.yaml +70 -0
- package/components/menu-sheet.yaml +133 -0
- package/components/notification-badge.yaml +67 -0
- package/components/progress-circle.yaml +83 -40
- package/components/radio.yaml +67 -71
- package/components/reaction-button.yaml +159 -0
- package/components/segmented-control-item.yaml +54 -0
- package/components/segmented-control.yaml +41 -30
- package/components/select-box.yaml +152 -0
- package/components/skeleton.yaml +56 -0
- package/components/snackbar.yaml +125 -0
- package/components/switch.yaml +98 -46
- package/components/tab.yaml +49 -31
- package/components/tablist.yaml +56 -15
- package/components/text-button.yaml +41 -57
- package/components/text-field.yaml +361 -0
- package/components/toggle-button.yaml +196 -0
- package/components/top-navigation.yaml +100 -0
- package/components/typography.yaml +167 -138
- package/dimension.yaml +88 -0
- package/duration.yaml +25 -0
- package/font-size.yaml +9 -0
- package/gradient.yaml +151 -0
- package/line-height.yaml +4 -4
- package/package.json +5 -2
- package/radius.yaml +10 -10
- package/timing-function.yaml +37 -0
- package/components/expand-button.yaml +0 -34
- package/unit.yaml +0 -70
|
@@ -1,38 +1,49 @@
|
|
|
1
1
|
# yaml-language-server: $schema=./schema.json
|
|
2
|
-
# parts: root,
|
|
2
|
+
# parts: root, segment, indicator
|
|
3
3
|
kind: ComponentSpec
|
|
4
4
|
metadata:
|
|
5
5
|
id: segmented-control
|
|
6
6
|
name: Segmented Control
|
|
7
7
|
data:
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
schema:
|
|
9
|
+
slots:
|
|
10
10
|
root:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
minWidth: 86px
|
|
19
|
-
fontSize: $font-size.t5
|
|
20
|
-
lineHeight: $line-height.t5
|
|
21
|
-
fontWeight: $font-weight.medium
|
|
22
|
-
color: $color.fg.neutral-muted
|
|
11
|
+
properties:
|
|
12
|
+
padding:
|
|
13
|
+
type: dimension
|
|
14
|
+
cornerRadius:
|
|
15
|
+
type: dimension
|
|
16
|
+
color:
|
|
17
|
+
type: color
|
|
23
18
|
indicator:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
19
|
+
properties:
|
|
20
|
+
color:
|
|
21
|
+
type: color
|
|
22
|
+
cornerRadius:
|
|
23
|
+
type: dimension
|
|
24
|
+
shadow:
|
|
25
|
+
type: shadow
|
|
26
|
+
transformDuration:
|
|
27
|
+
type: duration
|
|
28
|
+
transformTimingFunction:
|
|
29
|
+
type: cubicBezier
|
|
30
|
+
definitions:
|
|
31
|
+
base:
|
|
32
|
+
enabled:
|
|
33
|
+
root:
|
|
34
|
+
padding: $dimension.x1
|
|
35
|
+
cornerRadius: $radius.full
|
|
36
|
+
color: $color.bg.neutral-weak
|
|
37
|
+
indicator:
|
|
38
|
+
color: $color.bg.layer-default
|
|
39
|
+
cornerRadius: $radius.full
|
|
40
|
+
shadow:
|
|
41
|
+
type: shadow
|
|
42
|
+
value:
|
|
43
|
+
- offsetX: 0px
|
|
44
|
+
offsetY: 1px
|
|
45
|
+
blur: 6px
|
|
46
|
+
spread: 0px
|
|
47
|
+
color: "#0000000d"
|
|
48
|
+
transformDuration: $duration.d4
|
|
49
|
+
transformTimingFunction: $timing-function.easing
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# yaml-language-server: $schema=./schema.json
|
|
2
|
+
kind: ComponentSpec
|
|
3
|
+
metadata:
|
|
4
|
+
id: select-box
|
|
5
|
+
name: Select Box
|
|
6
|
+
data:
|
|
7
|
+
schema:
|
|
8
|
+
slots:
|
|
9
|
+
root:
|
|
10
|
+
properties:
|
|
11
|
+
paddingX:
|
|
12
|
+
type: dimension
|
|
13
|
+
paddingY:
|
|
14
|
+
type: dimension
|
|
15
|
+
gap:
|
|
16
|
+
type: dimension
|
|
17
|
+
strokeWidth:
|
|
18
|
+
type: dimension
|
|
19
|
+
strokeColor:
|
|
20
|
+
type: color
|
|
21
|
+
cornerRadius:
|
|
22
|
+
type: dimension
|
|
23
|
+
color:
|
|
24
|
+
type: color
|
|
25
|
+
content:
|
|
26
|
+
properties:
|
|
27
|
+
gap:
|
|
28
|
+
type: dimension
|
|
29
|
+
label:
|
|
30
|
+
properties:
|
|
31
|
+
color:
|
|
32
|
+
type: color
|
|
33
|
+
fontWeight:
|
|
34
|
+
type: number
|
|
35
|
+
fontSize:
|
|
36
|
+
type: dimension
|
|
37
|
+
lineHeight:
|
|
38
|
+
type: dimension
|
|
39
|
+
description:
|
|
40
|
+
properties:
|
|
41
|
+
color:
|
|
42
|
+
type: color
|
|
43
|
+
fontWeight:
|
|
44
|
+
type: number
|
|
45
|
+
fontSize:
|
|
46
|
+
type: dimension
|
|
47
|
+
lineHeight:
|
|
48
|
+
type: dimension
|
|
49
|
+
checkboxControl:
|
|
50
|
+
properties:
|
|
51
|
+
size:
|
|
52
|
+
type: dimension
|
|
53
|
+
color:
|
|
54
|
+
type: color
|
|
55
|
+
strokeWidth:
|
|
56
|
+
type: dimension
|
|
57
|
+
strokeColor:
|
|
58
|
+
type: color
|
|
59
|
+
cornerRadius:
|
|
60
|
+
type: dimension
|
|
61
|
+
checkboxIcon:
|
|
62
|
+
properties:
|
|
63
|
+
size:
|
|
64
|
+
type: dimension
|
|
65
|
+
radioControl:
|
|
66
|
+
properties:
|
|
67
|
+
size:
|
|
68
|
+
type: dimension
|
|
69
|
+
color:
|
|
70
|
+
type: color
|
|
71
|
+
strokeWidth:
|
|
72
|
+
type: dimension
|
|
73
|
+
strokeColor:
|
|
74
|
+
type: color
|
|
75
|
+
cornerRadius:
|
|
76
|
+
type: dimension
|
|
77
|
+
radioIcon:
|
|
78
|
+
properties:
|
|
79
|
+
size:
|
|
80
|
+
type: dimension
|
|
81
|
+
cornerRadius:
|
|
82
|
+
type: dimension
|
|
83
|
+
definitions:
|
|
84
|
+
base:
|
|
85
|
+
enabled:
|
|
86
|
+
root:
|
|
87
|
+
paddingX: $dimension.x4
|
|
88
|
+
paddingY: $dimension.x5
|
|
89
|
+
gap: $dimension.x2_5
|
|
90
|
+
strokeWidth: 1px
|
|
91
|
+
strokeColor: $color.stroke.neutral
|
|
92
|
+
cornerRadius: $radius.r3
|
|
93
|
+
content:
|
|
94
|
+
gap: $dimension.x0_5
|
|
95
|
+
label:
|
|
96
|
+
color: $color.fg.neutral
|
|
97
|
+
fontWeight: $font-weight.bold
|
|
98
|
+
fontSize: $font-size.t5
|
|
99
|
+
lineHeight: $line-height.t5
|
|
100
|
+
description:
|
|
101
|
+
color: $color.fg.neutral-muted
|
|
102
|
+
fontWeight: $font-weight.regular
|
|
103
|
+
fontSize: $font-size.t4
|
|
104
|
+
lineHeight: $line-height.t4
|
|
105
|
+
checkboxControl:
|
|
106
|
+
size: $dimension.x6
|
|
107
|
+
color: $color.bg.layer-default
|
|
108
|
+
strokeWidth: 1px
|
|
109
|
+
strokeColor: $color.stroke.control
|
|
110
|
+
cornerRadius: $radius.r1
|
|
111
|
+
checkboxIcon:
|
|
112
|
+
size: $dimension.x3_5
|
|
113
|
+
radioControl:
|
|
114
|
+
size: $dimension.x6
|
|
115
|
+
color: $color.bg.layer-default
|
|
116
|
+
strokeWidth: 1px
|
|
117
|
+
strokeColor: $color.stroke.control
|
|
118
|
+
cornerRadius: $radius.full
|
|
119
|
+
radioIcon:
|
|
120
|
+
size: $dimension.x2_5
|
|
121
|
+
cornerRadius: $radius.full
|
|
122
|
+
|
|
123
|
+
enabled,pressed:
|
|
124
|
+
root:
|
|
125
|
+
color: $color.bg.layer-default-pressed
|
|
126
|
+
checkboxControl:
|
|
127
|
+
color: $color.bg.layer-default-pressed
|
|
128
|
+
radioControl:
|
|
129
|
+
color: $color.bg.layer-default-pressed
|
|
130
|
+
|
|
131
|
+
enabled,selected:
|
|
132
|
+
root:
|
|
133
|
+
color: $color.bg.neutral-weak
|
|
134
|
+
strokeColor: $color.stroke.control
|
|
135
|
+
checkboxControl:
|
|
136
|
+
color: $color.bg.brand-solid
|
|
137
|
+
strokeWidth: 0
|
|
138
|
+
checkboxIcon:
|
|
139
|
+
color: $color.palette.static-white
|
|
140
|
+
radioControl:
|
|
141
|
+
color: $color.bg.brand-solid
|
|
142
|
+
strokeWidth: 0
|
|
143
|
+
radioIcon:
|
|
144
|
+
color: $color.palette.static-white
|
|
145
|
+
|
|
146
|
+
enabled,selected,pressed:
|
|
147
|
+
root:
|
|
148
|
+
color: $color.bg.neutral-weak-pressed
|
|
149
|
+
checkboxControl:
|
|
150
|
+
color: $color.bg.brand-solid-pressed
|
|
151
|
+
radioControl:
|
|
152
|
+
color: $color.bg.brand-solid-pressed
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# yaml-language-server: $schema=./schema.json
|
|
2
|
+
kind: ComponentSpec
|
|
3
|
+
metadata:
|
|
4
|
+
id: skeleton
|
|
5
|
+
name: Skeleton
|
|
6
|
+
data:
|
|
7
|
+
schema:
|
|
8
|
+
slots:
|
|
9
|
+
root:
|
|
10
|
+
properties:
|
|
11
|
+
color:
|
|
12
|
+
type: color
|
|
13
|
+
cornerRadius:
|
|
14
|
+
type: dimension
|
|
15
|
+
shimmer:
|
|
16
|
+
properties:
|
|
17
|
+
duration:
|
|
18
|
+
type: duration
|
|
19
|
+
timingFunction:
|
|
20
|
+
type: cubicBezier
|
|
21
|
+
color:
|
|
22
|
+
type: gradient
|
|
23
|
+
definitions:
|
|
24
|
+
base:
|
|
25
|
+
enabled:
|
|
26
|
+
shimmer:
|
|
27
|
+
duration: 1.5s
|
|
28
|
+
timingFunction: $timing-function.easing
|
|
29
|
+
radius=0:
|
|
30
|
+
enabled:
|
|
31
|
+
root:
|
|
32
|
+
cornerRadius: 0px
|
|
33
|
+
radius=8:
|
|
34
|
+
enabled:
|
|
35
|
+
root:
|
|
36
|
+
cornerRadius: 8px
|
|
37
|
+
radius=16:
|
|
38
|
+
enabled:
|
|
39
|
+
root:
|
|
40
|
+
cornerRadius: 16px
|
|
41
|
+
radius=full:
|
|
42
|
+
enabled:
|
|
43
|
+
root:
|
|
44
|
+
cornerRadius: $radius.full
|
|
45
|
+
tone=neutral:
|
|
46
|
+
enabled:
|
|
47
|
+
root:
|
|
48
|
+
color: $color.palette.gray-200
|
|
49
|
+
shimmer:
|
|
50
|
+
color: $gradient.shimmer-neutral
|
|
51
|
+
tone=magic:
|
|
52
|
+
enabled:
|
|
53
|
+
root:
|
|
54
|
+
color: $color.bg.magic-weak
|
|
55
|
+
shimmer:
|
|
56
|
+
color: $gradient.shimmer-magic
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# yaml-language-server: $schema=./schema.json
|
|
2
|
+
kind: ComponentSpec
|
|
3
|
+
metadata:
|
|
4
|
+
id: snackbar
|
|
5
|
+
name: Snackbar
|
|
6
|
+
data:
|
|
7
|
+
schema:
|
|
8
|
+
slots:
|
|
9
|
+
region:
|
|
10
|
+
properties:
|
|
11
|
+
paddingX:
|
|
12
|
+
type: dimension
|
|
13
|
+
paddingY:
|
|
14
|
+
type: dimension
|
|
15
|
+
offsetDuration:
|
|
16
|
+
type: duration
|
|
17
|
+
offsetTimingFunction:
|
|
18
|
+
type: cubicBezier
|
|
19
|
+
root:
|
|
20
|
+
properties:
|
|
21
|
+
color:
|
|
22
|
+
type: color
|
|
23
|
+
cornerRadius:
|
|
24
|
+
type: dimension
|
|
25
|
+
minHeight:
|
|
26
|
+
type: dimension
|
|
27
|
+
paddingX:
|
|
28
|
+
type: dimension
|
|
29
|
+
paddingY:
|
|
30
|
+
type: dimension
|
|
31
|
+
gap:
|
|
32
|
+
type: dimension
|
|
33
|
+
enterOpacity:
|
|
34
|
+
type: number
|
|
35
|
+
enterScale:
|
|
36
|
+
type: number
|
|
37
|
+
enterDuration:
|
|
38
|
+
type: duration
|
|
39
|
+
enterTimingFunction:
|
|
40
|
+
type: cubicBezier
|
|
41
|
+
exitScale:
|
|
42
|
+
type: number
|
|
43
|
+
exitOpacity:
|
|
44
|
+
type: number
|
|
45
|
+
exitDuration:
|
|
46
|
+
type: duration
|
|
47
|
+
exitTimingFunction:
|
|
48
|
+
type: cubicBezier
|
|
49
|
+
message:
|
|
50
|
+
properties:
|
|
51
|
+
color:
|
|
52
|
+
type: color
|
|
53
|
+
fontSize:
|
|
54
|
+
type: dimension
|
|
55
|
+
lineHeight:
|
|
56
|
+
type: dimension
|
|
57
|
+
fontWeight:
|
|
58
|
+
type: number
|
|
59
|
+
prefixIcon:
|
|
60
|
+
properties:
|
|
61
|
+
size:
|
|
62
|
+
type: dimension
|
|
63
|
+
color:
|
|
64
|
+
type: color
|
|
65
|
+
actionButton:
|
|
66
|
+
properties:
|
|
67
|
+
targetPaddingX:
|
|
68
|
+
type: dimension
|
|
69
|
+
targetMinHeight:
|
|
70
|
+
type: dimension
|
|
71
|
+
color:
|
|
72
|
+
type: color
|
|
73
|
+
fontSize:
|
|
74
|
+
type: dimension
|
|
75
|
+
lineHeight:
|
|
76
|
+
type: dimension
|
|
77
|
+
fontWeight:
|
|
78
|
+
type: number
|
|
79
|
+
definitions:
|
|
80
|
+
base:
|
|
81
|
+
enabled:
|
|
82
|
+
# TODO: we might split region out to a separate component
|
|
83
|
+
region:
|
|
84
|
+
paddingX: $dimension.x2
|
|
85
|
+
paddingY: $dimension.x2
|
|
86
|
+
offsetDuration: $duration.d4
|
|
87
|
+
offsetTimingFunction: $timing-function.easing
|
|
88
|
+
root:
|
|
89
|
+
color: $color.bg.neutral-solid
|
|
90
|
+
cornerRadius: $radius.r2
|
|
91
|
+
minHeight: 44px
|
|
92
|
+
paddingX: $dimension.x4
|
|
93
|
+
paddingY: $dimension.x2_5
|
|
94
|
+
gap: $dimension.x2
|
|
95
|
+
enterOpacity: 0
|
|
96
|
+
enterScale: 0.8
|
|
97
|
+
enterDuration: $duration.d3
|
|
98
|
+
enterTimingFunction: $timing-function.enter
|
|
99
|
+
exitOpacity: 0
|
|
100
|
+
exitScale: 0.8
|
|
101
|
+
exitDuration: $duration.d2
|
|
102
|
+
exitTimingFunction: $timing-function.exit
|
|
103
|
+
message:
|
|
104
|
+
color: $color.palette.static-white
|
|
105
|
+
fontSize: $font-size.t4
|
|
106
|
+
lineHeight: $line-height.t4
|
|
107
|
+
fontWeight: $font-weight.regular
|
|
108
|
+
prefixIcon:
|
|
109
|
+
size: 24px
|
|
110
|
+
actionButton:
|
|
111
|
+
targetPaddingX: $dimension.x2
|
|
112
|
+
targetMinHeight: 44px
|
|
113
|
+
color: $color.fg.brand
|
|
114
|
+
fontSize: $font-size.t4
|
|
115
|
+
lineHeight: $line-height.t4
|
|
116
|
+
fontWeight: $font-weight.bold
|
|
117
|
+
variant=default: {}
|
|
118
|
+
variant=positive:
|
|
119
|
+
enabled:
|
|
120
|
+
prefixIcon:
|
|
121
|
+
color: $color.fg.positive
|
|
122
|
+
variant=critical:
|
|
123
|
+
enabled:
|
|
124
|
+
prefixIcon:
|
|
125
|
+
color: $color.fg.critical
|
package/components/switch.yaml
CHANGED
|
@@ -5,52 +5,104 @@ metadata:
|
|
|
5
5
|
id: switch
|
|
6
6
|
name: Switch
|
|
7
7
|
data:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
control:
|
|
11
|
-
color: $color.palette.gray-600
|
|
12
|
-
cornerRadius: $radius.full
|
|
13
|
-
thumb:
|
|
14
|
-
color: $color.fg.static-white
|
|
15
|
-
cornerRadius: $radius.full
|
|
16
|
-
enabled,selected:
|
|
17
|
-
control:
|
|
18
|
-
color: $color.bg.brand-solid
|
|
19
|
-
disabled:
|
|
20
|
-
root:
|
|
21
|
-
opacity: 0.38
|
|
22
|
-
size=medium:
|
|
23
|
-
enabled:
|
|
24
|
-
root:
|
|
25
|
-
height: 31px
|
|
26
|
-
width: 51px
|
|
27
|
-
control:
|
|
28
|
-
paddingX: 2px
|
|
29
|
-
paddingY: 2px
|
|
30
|
-
thumb:
|
|
31
|
-
height: 27px
|
|
32
|
-
width: 27px
|
|
33
|
-
shadow:
|
|
34
|
-
type: shadow
|
|
35
|
-
value:
|
|
36
|
-
- offsetX: 0px
|
|
37
|
-
offsetY: 3px
|
|
38
|
-
blur: 8px
|
|
39
|
-
spread: 0px
|
|
40
|
-
color: "#00000026"
|
|
41
|
-
- offsetX: 0px
|
|
42
|
-
offsetY: 1px
|
|
43
|
-
blur: 3px
|
|
44
|
-
spread: 0px
|
|
45
|
-
color: "#0000000f"
|
|
46
|
-
size=small:
|
|
47
|
-
enabled:
|
|
8
|
+
schema:
|
|
9
|
+
slots:
|
|
48
10
|
root:
|
|
49
|
-
|
|
50
|
-
|
|
11
|
+
properties:
|
|
12
|
+
height:
|
|
13
|
+
type: dimension
|
|
14
|
+
gap:
|
|
15
|
+
type: dimension
|
|
16
|
+
opacity:
|
|
17
|
+
type: number
|
|
51
18
|
control:
|
|
52
|
-
|
|
53
|
-
|
|
19
|
+
properties:
|
|
20
|
+
color:
|
|
21
|
+
type: color
|
|
22
|
+
cornerRadius:
|
|
23
|
+
type: dimension
|
|
24
|
+
height:
|
|
25
|
+
type: dimension
|
|
26
|
+
width:
|
|
27
|
+
type: dimension
|
|
28
|
+
paddingX:
|
|
29
|
+
type: dimension
|
|
30
|
+
paddingY:
|
|
31
|
+
type: dimension
|
|
54
32
|
thumb:
|
|
55
|
-
|
|
56
|
-
|
|
33
|
+
properties:
|
|
34
|
+
color:
|
|
35
|
+
type: color
|
|
36
|
+
cornerRadius:
|
|
37
|
+
type: dimension
|
|
38
|
+
height:
|
|
39
|
+
type: dimension
|
|
40
|
+
width:
|
|
41
|
+
type: dimension
|
|
42
|
+
shadow:
|
|
43
|
+
type: shadow
|
|
44
|
+
label:
|
|
45
|
+
properties:
|
|
46
|
+
fontSize:
|
|
47
|
+
type: dimension
|
|
48
|
+
lineHeight:
|
|
49
|
+
type: dimension
|
|
50
|
+
fontWeight:
|
|
51
|
+
type: number
|
|
52
|
+
definitions:
|
|
53
|
+
base:
|
|
54
|
+
enabled:
|
|
55
|
+
control:
|
|
56
|
+
color: $color.palette.gray-600
|
|
57
|
+
cornerRadius: $radius.full
|
|
58
|
+
thumb:
|
|
59
|
+
color: $color.palette.static-white
|
|
60
|
+
cornerRadius: $radius.full
|
|
61
|
+
enabled,selected:
|
|
62
|
+
control:
|
|
63
|
+
color: $color.bg.brand-solid
|
|
64
|
+
disabled:
|
|
65
|
+
root:
|
|
66
|
+
opacity: 0.38
|
|
67
|
+
size=medium:
|
|
68
|
+
enabled:
|
|
69
|
+
root:
|
|
70
|
+
height: 32px
|
|
71
|
+
control:
|
|
72
|
+
height: 32px
|
|
73
|
+
width: 52px
|
|
74
|
+
paddingX: 2px
|
|
75
|
+
paddingY: 2px
|
|
76
|
+
thumb:
|
|
77
|
+
height: 28px
|
|
78
|
+
width: 28px
|
|
79
|
+
shadow:
|
|
80
|
+
type: shadow
|
|
81
|
+
value:
|
|
82
|
+
- offsetX: 0px
|
|
83
|
+
offsetY: 3px
|
|
84
|
+
blur: 8px
|
|
85
|
+
spread: 0px
|
|
86
|
+
color: "#00000026"
|
|
87
|
+
- offsetX: 0px
|
|
88
|
+
offsetY: 1px
|
|
89
|
+
blur: 3px
|
|
90
|
+
spread: 0px
|
|
91
|
+
color: "#0000000f"
|
|
92
|
+
size=small:
|
|
93
|
+
enabled:
|
|
94
|
+
root:
|
|
95
|
+
height: 24px
|
|
96
|
+
gap: $dimension.x2
|
|
97
|
+
control:
|
|
98
|
+
height: 16px
|
|
99
|
+
width: 26px
|
|
100
|
+
paddingX: 2px
|
|
101
|
+
paddingY: 2px
|
|
102
|
+
thumb:
|
|
103
|
+
height: 12px
|
|
104
|
+
width: 12px
|
|
105
|
+
label:
|
|
106
|
+
fontSize: $font-size.t4
|
|
107
|
+
lineHeight: $line-height.t4
|
|
108
|
+
fontWeight: $font-weight.regular
|
package/components/tab.yaml
CHANGED
|
@@ -4,36 +4,54 @@ metadata:
|
|
|
4
4
|
id: tab
|
|
5
5
|
name: Tab
|
|
6
6
|
data:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
label:
|
|
10
|
-
color: $color.fg.neutral-subtle
|
|
11
|
-
notification:
|
|
12
|
-
size: $unit.x1
|
|
13
|
-
cornerRadius: $radius.full
|
|
14
|
-
color: $color.bg.brand-solid
|
|
15
|
-
marginLeft: $unit.x0_5
|
|
16
|
-
selected:
|
|
17
|
-
label:
|
|
18
|
-
color: $color.fg.neutral
|
|
19
|
-
disabled:
|
|
20
|
-
label:
|
|
21
|
-
color: $color.fg.disabled
|
|
22
|
-
size=medium:
|
|
23
|
-
enabled:
|
|
24
|
-
root:
|
|
25
|
-
minHeight: 44px
|
|
26
|
-
paddingX: $unit.x2_5
|
|
27
|
-
paddingY: $unit.x2_5
|
|
28
|
-
label:
|
|
29
|
-
fontSize: $font-size.t5
|
|
30
|
-
fontWeight: $font-weight.bold
|
|
31
|
-
size=small:
|
|
32
|
-
enabled:
|
|
7
|
+
schema:
|
|
8
|
+
slots:
|
|
33
9
|
root:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
properties:
|
|
11
|
+
minHeight:
|
|
12
|
+
type: dimension
|
|
13
|
+
paddingX:
|
|
14
|
+
type: dimension
|
|
15
|
+
paddingY:
|
|
16
|
+
type: dimension
|
|
37
17
|
label:
|
|
38
|
-
|
|
39
|
-
|
|
18
|
+
properties:
|
|
19
|
+
color:
|
|
20
|
+
type: color
|
|
21
|
+
fontSize:
|
|
22
|
+
type: dimension
|
|
23
|
+
lineHeight:
|
|
24
|
+
type: dimension
|
|
25
|
+
fontWeight:
|
|
26
|
+
type: number
|
|
27
|
+
definitions:
|
|
28
|
+
base:
|
|
29
|
+
enabled:
|
|
30
|
+
label:
|
|
31
|
+
color: $color.fg.neutral-subtle
|
|
32
|
+
selected:
|
|
33
|
+
label:
|
|
34
|
+
color: $color.fg.neutral
|
|
35
|
+
disabled:
|
|
36
|
+
label:
|
|
37
|
+
color: $color.fg.disabled
|
|
38
|
+
size=medium:
|
|
39
|
+
enabled:
|
|
40
|
+
root:
|
|
41
|
+
minHeight: 44px
|
|
42
|
+
paddingX: $dimension.x2_5
|
|
43
|
+
paddingY: $dimension.x2_5
|
|
44
|
+
label:
|
|
45
|
+
fontSize: $font-size.t5
|
|
46
|
+
lineHeight: $line-height.t5
|
|
47
|
+
fontWeight: $font-weight.bold
|
|
48
|
+
size=small:
|
|
49
|
+
enabled:
|
|
50
|
+
root:
|
|
51
|
+
minHeight: 40px
|
|
52
|
+
paddingX: $dimension.x2_5
|
|
53
|
+
paddingY: $dimension.x2_5
|
|
54
|
+
label:
|
|
55
|
+
fontSize: $font-size.t4
|
|
56
|
+
lineHeight: $line-height.t4
|
|
57
|
+
fontWeight: $font-weight.bold
|