@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.
Files changed (63) hide show
  1. package/README.md +10 -0
  2. package/color.yaml +438 -366
  3. package/components/action-button.yaml +415 -205
  4. package/components/action-chip.yaml +139 -67
  5. package/components/action-sheet-close-button.yaml +45 -0
  6. package/components/action-sheet-item.yaml +52 -0
  7. package/components/action-sheet.yaml +115 -0
  8. package/components/avatar-stack.yaml +74 -0
  9. package/components/avatar.yaml +110 -47
  10. package/components/badge.yaml +153 -130
  11. package/components/bottom-sheet-close-button.yaml +38 -0
  12. package/components/bottom-sheet.yaml +143 -0
  13. package/components/callout.yaml +169 -129
  14. package/components/checkbox.yaml +139 -116
  15. package/components/chip-tab.yaml +82 -59
  16. package/components/chip-tablist.yaml +20 -11
  17. package/components/chip.yaml +314 -0
  18. package/components/contextual-floating-button.yaml +155 -0
  19. package/components/control-chip.yaml +157 -88
  20. package/components/dialog.yaml +119 -18
  21. package/components/divider.yaml +17 -0
  22. package/components/extended-action-sheet-close-button.yaml +50 -0
  23. package/components/extended-action-sheet-item.yaml +67 -0
  24. package/components/extended-action-sheet.yaml +134 -0
  25. package/components/extended-fab.yaml +102 -0
  26. package/components/fab.yaml +38 -20
  27. package/components/floating-action-button.yaml +99 -0
  28. package/components/help-bubble.yaml +121 -32
  29. package/components/identity-placeholder.yaml +23 -0
  30. package/components/inline-banner.yaml +188 -141
  31. package/components/link-content.yaml +60 -0
  32. package/components/manner-temp-badge.yaml +78 -0
  33. package/components/manner-temp.yaml +61 -0
  34. package/components/menu-sheet-close-button.yaml +49 -0
  35. package/components/menu-sheet-item.yaml +70 -0
  36. package/components/menu-sheet.yaml +133 -0
  37. package/components/notification-badge.yaml +67 -0
  38. package/components/progress-circle.yaml +83 -40
  39. package/components/radio.yaml +67 -71
  40. package/components/reaction-button.yaml +159 -0
  41. package/components/segmented-control-item.yaml +54 -0
  42. package/components/segmented-control.yaml +41 -30
  43. package/components/select-box.yaml +152 -0
  44. package/components/skeleton.yaml +56 -0
  45. package/components/snackbar.yaml +125 -0
  46. package/components/switch.yaml +98 -46
  47. package/components/tab.yaml +49 -31
  48. package/components/tablist.yaml +56 -15
  49. package/components/text-button.yaml +41 -57
  50. package/components/text-field.yaml +361 -0
  51. package/components/toggle-button.yaml +196 -0
  52. package/components/top-navigation.yaml +100 -0
  53. package/components/typography.yaml +167 -138
  54. package/dimension.yaml +88 -0
  55. package/duration.yaml +25 -0
  56. package/font-size.yaml +9 -0
  57. package/gradient.yaml +151 -0
  58. package/line-height.yaml +4 -4
  59. package/package.json +5 -2
  60. package/radius.yaml +10 -10
  61. package/timing-function.yaml +37 -0
  62. package/components/expand-button.yaml +0 -34
  63. package/unit.yaml +0 -70
@@ -3,98 +3,167 @@ kind: ComponentSpec
3
3
  metadata:
4
4
  id: control-chip
5
5
  name: Control Chip
6
+ deprecated: Use Chip.Toggle or Chip.Button instead.
7
+ lastUpdated: 25-07-16
6
8
  data:
7
- base:
8
- enabled:
9
+ schema:
10
+ slots:
9
11
  root:
10
- strokeColor: $color.stroke.neutral
11
- strokeWidth: 1px
12
- cornerRadius: $radius.full
12
+ properties:
13
+ strokeColor:
14
+ type: color
15
+ strokeWidth:
16
+ type: dimension
17
+ cornerRadius:
18
+ type: dimension
19
+ minHeight:
20
+ type: dimension
21
+ paddingY:
22
+ type: dimension
23
+ gap:
24
+ type: dimension
25
+ paddingX:
26
+ type: dimension
27
+ minWidth:
28
+ type: dimension
29
+ color:
30
+ type: color
13
31
  label:
14
- color: $color.fg.neutral
15
- fontWeight: $font-weight.medium
32
+ properties:
33
+ color:
34
+ type: color
35
+ fontWeight:
36
+ type: number
37
+ fontSize:
38
+ type: dimension
39
+ lineHeight:
40
+ type: dimension
16
41
  prefixIcon:
17
- color: $color.fg.neutral
42
+ properties:
43
+ color:
44
+ type: color
45
+ size:
46
+ type: dimension
18
47
  suffixIcon:
19
- color: $color.fg.neutral
48
+ properties:
49
+ color:
50
+ type: color
51
+ size:
52
+ type: dimension
20
53
  icon:
21
- color: $color.fg.neutral
54
+ properties:
55
+ color:
56
+ type: color
57
+ size:
58
+ type: dimension
22
59
  count:
23
- color: $color.fg.neutral-muted
24
- pressed:
25
- root:
26
- color: $color.bg.layer-default-pressed
27
- selected:
28
- root:
29
- strokeWidth: 0
30
- color: $color.bg.brand-weak
31
- label:
32
- color: $color.fg.brand
33
- prefixIcon:
34
- color: $color.fg.brand
35
- suffixIcon:
36
- color: $color.fg.brand
37
- icon:
38
- color: $color.fg.brand
39
- count:
40
- color: $color.fg.brand
41
- selected, pressed:
42
- root:
43
- color: $color.bg.brand-weak-pressed
44
- disabled:
45
- root:
46
- color: $color.bg.disabled
47
- label:
48
- color: $color.fg.disabled
49
- prefixIcon:
50
- color: $color.fg.disabled
51
- suffixIcon:
52
- color: $color.fg.disabled
53
- icon:
54
- color: $color.fg.disabled
55
- count:
56
- color: $color.fg.disabled
57
- size=small:
58
- enabled:
59
- root:
60
- minHeight: $unit.x8
61
- paddingY: $unit.x1_5
62
- gap: $unit.x1
63
- label:
64
- fontSize: $font-size.t4
65
- prefixIcon:
66
- size: $unit.x4
67
- suffixIcon:
68
- size: $unit.x3_5
69
- size=medium:
70
- enabled:
71
- root:
72
- minHeight: $unit.x9
73
- paddingY: $unit.x2
74
- gap: $unit.x1
75
- label:
76
- fontSize: $font-size.t4
77
- prefixIcon:
78
- size: $unit.x4
79
- suffixIcon:
80
- size: $unit.x3_5
81
- size=small,layout=with text:
82
- enabled:
83
- root:
84
- paddingX: $unit.x3
85
- size=small,layout=icon only:
86
- enabled:
87
- root:
88
- minWidth: $unit.x8
89
- icon:
90
- size: $unit.x4
91
- size=medium,layout=with text:
92
- enabled:
93
- root:
94
- paddingX: $unit.x3_5
95
- size=medium,layout=icon only:
96
- enabled:
97
- root:
98
- minWidth: $unit.x9
99
- icon:
100
- size: $unit.x4
60
+ properties:
61
+ color:
62
+ type: color
63
+ fontWeight:
64
+ type: number
65
+ fontSize:
66
+ type: dimension
67
+ definitions:
68
+ base:
69
+ enabled:
70
+ root:
71
+ strokeColor: $color.stroke.neutral
72
+ strokeWidth: 1px
73
+ cornerRadius: $radius.full
74
+ label:
75
+ color: $color.fg.neutral
76
+ fontWeight: $font-weight.medium
77
+ prefixIcon:
78
+ color: $color.fg.neutral
79
+ suffixIcon:
80
+ color: $color.fg.neutral-subtle
81
+ icon:
82
+ color: $color.fg.neutral
83
+ count:
84
+ color: $color.fg.neutral-muted
85
+ fontWeight: $font-weight.medium
86
+ pressed:
87
+ root:
88
+ color: $color.bg.layer-default-pressed
89
+ selected:
90
+ root:
91
+ strokeWidth: 0
92
+ color: $color.bg.neutral-solid-muted
93
+ label:
94
+ color: $color.palette.static-white
95
+ fontWeight: $font-weight.bold
96
+ prefixIcon:
97
+ color: $color.palette.static-white
98
+ suffixIcon:
99
+ color: $color.palette.static-white
100
+ icon:
101
+ color: $color.palette.static-white
102
+ count:
103
+ color: $color.palette.static-white-alpha-800
104
+ selected, pressed:
105
+ root:
106
+ color: $color.bg.neutral-solid-muted-pressed
107
+ disabled:
108
+ root:
109
+ color: $color.bg.disabled
110
+ label:
111
+ color: $color.fg.disabled
112
+ prefixIcon:
113
+ color: $color.fg.disabled
114
+ suffixIcon:
115
+ color: $color.fg.disabled
116
+ icon:
117
+ color: $color.fg.disabled
118
+ count:
119
+ color: $color.fg.disabled
120
+ size=small:
121
+ enabled:
122
+ root:
123
+ minHeight: $dimension.x8
124
+ paddingY: $dimension.x1_5
125
+ gap: $dimension.x1
126
+ label:
127
+ fontSize: $font-size.t4
128
+ lineHeight: $line-height.t4
129
+ prefixIcon:
130
+ size: $dimension.x4
131
+ suffixIcon:
132
+ size: $dimension.x3_5
133
+ count:
134
+ fontSize: $font-size.t4
135
+ size=medium:
136
+ enabled:
137
+ root:
138
+ minHeight: $dimension.x9
139
+ paddingY: $dimension.x2
140
+ gap: $dimension.x1
141
+ label:
142
+ fontSize: $font-size.t4
143
+ lineHeight: $line-height.t4
144
+ prefixIcon:
145
+ size: $dimension.x4
146
+ suffixIcon:
147
+ size: $dimension.x3_5
148
+ count:
149
+ fontSize: $font-size.t4
150
+ size=small,layout=withText:
151
+ enabled:
152
+ root:
153
+ paddingX: $dimension.x3
154
+ size=small,layout=iconOnly:
155
+ enabled:
156
+ root:
157
+ minWidth: $dimension.x8
158
+ icon:
159
+ size: $dimension.x4
160
+ size=medium,layout=withText:
161
+ enabled:
162
+ root:
163
+ paddingX: $dimension.x3_5
164
+ size=medium,layout=iconOnly:
165
+ enabled:
166
+ root:
167
+ minWidth: $dimension.x9
168
+ icon:
169
+ size: $dimension.x4
@@ -4,27 +4,128 @@ metadata:
4
4
  id: dialog
5
5
  name: Dialog
6
6
  data:
7
- base:
8
- enabled:
7
+ schema:
8
+ slots:
9
9
  backdrop:
10
- background: $color.bg.overlay
10
+ properties:
11
+ color:
12
+ type: color
13
+ enterDuration:
14
+ type: duration
15
+ enterTimingFunction:
16
+ type: cubicBezier
17
+ enterOpacity:
18
+ type: number
19
+ exitDuration:
20
+ type: duration
21
+ exitTimingFunction:
22
+ type: cubicBezier
23
+ exitOpacity:
24
+ type: number
11
25
  content:
12
- background: $color.bg.layer-default
13
- borderRadius: $radius.x4
14
- marginX: $unit.x8
15
- paddingX: $unit.x5
16
- paddingY: $unit.x5
17
- maxWidth: 272px
26
+ properties:
27
+ color:
28
+ type: color
29
+ cornerRadius:
30
+ type: dimension
31
+ marginX:
32
+ type: dimension
33
+ marginY:
34
+ type: dimension
35
+ maxWidth:
36
+ type: dimension
37
+ enterDuration:
38
+ type: duration
39
+ enterTimingFunction:
40
+ type: cubicBezier
41
+ enterOpacity:
42
+ type: number
43
+ enterScale:
44
+ type: number
45
+ exitDuration:
46
+ type: duration
47
+ exitTimingFunction:
48
+ type: cubicBezier
49
+ exitOpacity:
50
+ type: number
18
51
  header:
19
- gap: $unit.x1_5
52
+ properties:
53
+ gap:
54
+ type: dimension
55
+ paddingX:
56
+ type: dimension
57
+ paddingTop:
58
+ type: dimension
20
59
  footer:
21
- paddingTop: $unit.x4
22
- gap: $unit.x2
60
+ properties:
61
+ gap:
62
+ type: dimension
63
+ paddingX:
64
+ type: dimension
65
+ paddingTop:
66
+ type: dimension
67
+ paddingBottom:
68
+ type: dimension
23
69
  title:
24
- color: $color.fg.neutral
25
- fontSize: $font-size.t7
26
- fontWeight: $font-weight.bold
70
+ properties:
71
+ color:
72
+ type: color
73
+ fontSize:
74
+ type: dimension
75
+ lineHeight:
76
+ type: dimension
77
+ fontWeight:
78
+ type: number
27
79
  description:
28
- color: $color.fg.neutral
29
- fontSize: $font-size.t5
30
- fontWeight: $font-weight.regular
80
+ properties:
81
+ color:
82
+ type: color
83
+ fontSize:
84
+ type: dimension
85
+ lineHeight:
86
+ type: dimension
87
+ fontWeight:
88
+ type: number
89
+ definitions:
90
+ base:
91
+ enabled:
92
+ backdrop:
93
+ color: $color.bg.overlay
94
+ enterDuration: $duration.d2
95
+ enterTimingFunction: $timing-function.enter
96
+ enterOpacity: 0
97
+ exitDuration: $duration.d2
98
+ exitTimingFunction: $timing-function.exit
99
+ exitOpacity: 0
100
+ content:
101
+ color: $color.bg.layer-floating
102
+ cornerRadius: $radius.r5
103
+ marginX: $dimension.x8
104
+ marginY: $dimension.x16
105
+ maxWidth: 272px
106
+ enterDuration: $duration.d4
107
+ enterTimingFunction: $timing-function.enter-expressive
108
+ enterOpacity: 0
109
+ enterScale: 1.3
110
+ exitDuration: $duration.d2
111
+ exitTimingFunction: $timing-function.exit
112
+ exitOpacity: 0
113
+ header:
114
+ gap: $dimension.x1_5
115
+ paddingX: $dimension.x5
116
+ paddingTop: $dimension.x5
117
+ footer:
118
+ gap: $dimension.x2
119
+ paddingX: $dimension.x5
120
+ paddingTop: $dimension.x4
121
+ paddingBottom: $dimension.x5
122
+ title:
123
+ color: $color.fg.neutral
124
+ fontSize: $font-size.t7
125
+ lineHeight: $line-height.t7
126
+ fontWeight: $font-weight.bold
127
+ description:
128
+ color: $color.fg.neutral
129
+ fontSize: $font-size.t5
130
+ lineHeight: $line-height.t5
131
+ fontWeight: $font-weight.regular
@@ -0,0 +1,17 @@
1
+ # yaml-language-server: $schema=./schema.json
2
+ kind: ComponentSpec
3
+ metadata:
4
+ id: divider
5
+ name: Divider
6
+ data:
7
+ schema:
8
+ slots:
9
+ root:
10
+ properties:
11
+ thickness:
12
+ type: dimension
13
+ definitions:
14
+ base:
15
+ enabled:
16
+ root:
17
+ thickness: 1px
@@ -0,0 +1,50 @@
1
+ # yaml-language-server: $schema=./schema.json
2
+ kind: ComponentSpec
3
+ metadata:
4
+ id: extended-action-sheet-close-button
5
+ name: Extended Action Sheet Close Button
6
+ deprecated: Use menu-sheet-close-button instead.
7
+ data:
8
+ schema:
9
+ slots:
10
+ root:
11
+ properties:
12
+ color:
13
+ type: color
14
+ minHeight:
15
+ type: dimension
16
+ cornerRadius:
17
+ type: dimension
18
+ paddingX:
19
+ type: dimension
20
+ paddingY:
21
+ type: dimension
22
+ gap:
23
+ type: dimension
24
+ label:
25
+ properties:
26
+ color:
27
+ type: color
28
+ fontSize:
29
+ type: dimension
30
+ lineHeight:
31
+ type: dimension
32
+ fontWeight:
33
+ type: number
34
+ definitions:
35
+ base:
36
+ enabled:
37
+ root:
38
+ color: $color.bg.neutral-weak
39
+ minHeight: 52px
40
+ cornerRadius: $radius.r3
41
+ paddingX: $dimension.x5
42
+ paddingY: $dimension.x3_5
43
+ label:
44
+ color: $color.fg.neutral
45
+ fontSize: $font-size.t5
46
+ lineHeight: $line-height.t5
47
+ fontWeight: $font-weight.medium
48
+ pressed:
49
+ root:
50
+ color: $color.bg.neutral-weak-pressed
@@ -0,0 +1,67 @@
1
+ # yaml-language-server: $schema=./schema.json
2
+ kind: ComponentSpec
3
+ metadata:
4
+ id: extended-action-sheet-item
5
+ name: Extended Action Sheet Item
6
+ deprecated: Use menu-sheet-item instead.
7
+ data:
8
+ schema:
9
+ slots:
10
+ root:
11
+ properties:
12
+ color:
13
+ type: color
14
+ minHeight:
15
+ type: dimension
16
+ paddingX:
17
+ type: dimension
18
+ paddingY:
19
+ type: dimension
20
+ gap:
21
+ type: dimension
22
+ prefixIcon:
23
+ properties:
24
+ size:
25
+ type: dimension
26
+ color:
27
+ type: color
28
+ label:
29
+ properties:
30
+ color:
31
+ type: color
32
+ fontSize:
33
+ type: dimension
34
+ lineHeight:
35
+ type: dimension
36
+ fontWeight:
37
+ type: number
38
+ definitions:
39
+ base:
40
+ enabled:
41
+ root:
42
+ color: $color.bg.neutral-weak
43
+ minHeight: 52px
44
+ paddingX: $dimension.x4
45
+ paddingY: $dimension.x3_5
46
+ gap: $dimension.x3_5
47
+ prefixIcon:
48
+ size: 22px
49
+ label:
50
+ fontSize: $font-size.t5
51
+ lineHeight: $line-height.t5
52
+ fontWeight: $font-weight.regular
53
+ pressed:
54
+ root:
55
+ color: $color.bg.neutral-weak-pressed
56
+ tone=neutral:
57
+ enabled:
58
+ prefixIcon:
59
+ color: $color.fg.neutral
60
+ label:
61
+ color: $color.fg.neutral
62
+ tone=critical:
63
+ enabled:
64
+ prefixIcon:
65
+ color: $color.fg.critical
66
+ label:
67
+ color: $color.fg.critical
@@ -0,0 +1,134 @@
1
+ # yaml-language-server: $schema=./schema.json
2
+ kind: ComponentSpec
3
+ metadata:
4
+ id: extended-action-sheet
5
+ name: Extended Action Sheet
6
+ deprecated: Use menu-sheet instead.
7
+ data:
8
+ schema:
9
+ slots:
10
+ backdrop:
11
+ properties:
12
+ color:
13
+ type: color
14
+ enterDuration:
15
+ type: duration
16
+ enterTimingFunction:
17
+ type: cubicBezier
18
+ enterOpacity:
19
+ type: number
20
+ exitDuration:
21
+ type: duration
22
+ exitTimingFunction:
23
+ type: cubicBezier
24
+ exitOpacity:
25
+ type: number
26
+ content:
27
+ properties:
28
+ color:
29
+ type: color
30
+ maxWidth:
31
+ type: dimension
32
+ paddingX:
33
+ type: dimension
34
+ paddingY:
35
+ type: dimension
36
+ topCornerRadius:
37
+ type: dimension
38
+ enterDuration:
39
+ type: duration
40
+ enterTimingFunction:
41
+ type: cubicBezier
42
+ exitDuration:
43
+ type: duration
44
+ exitTimingFunction:
45
+ type: cubicBezier
46
+ header:
47
+ properties:
48
+ gap:
49
+ type: dimension
50
+ paddingBottom:
51
+ type: dimension
52
+ title:
53
+ properties:
54
+ fontSize:
55
+ type: dimension
56
+ lineHeight:
57
+ type: dimension
58
+ fontWeight:
59
+ type: number
60
+ color:
61
+ type: color
62
+ description:
63
+ properties:
64
+ fontSize:
65
+ type: dimension
66
+ lineHeight:
67
+ type: dimension
68
+ fontWeight:
69
+ type: number
70
+ color:
71
+ type: color
72
+ list:
73
+ properties:
74
+ gap:
75
+ type: dimension
76
+ group:
77
+ properties:
78
+ cornerRadius:
79
+ type: dimension
80
+ divider:
81
+ properties:
82
+ strokeBottomWidth:
83
+ type: dimension
84
+ strokeColor:
85
+ type: color
86
+ footer:
87
+ properties:
88
+ paddingTop:
89
+ type: dimension
90
+ definitions:
91
+ base:
92
+ enabled:
93
+ backdrop:
94
+ color: $color.bg.overlay
95
+ enterDuration: $duration.d2
96
+ enterTimingFunction: $timing-function.enter
97
+ enterOpacity: 0
98
+ exitDuration: $duration.d2
99
+ exitTimingFunction: $timing-function.exit
100
+ exitOpacity: 0
101
+ content:
102
+ color: $color.bg.layer-floating
103
+ maxWidth: 480px
104
+ paddingX: $dimension.spacing-x.global-gutter
105
+ paddingY: $dimension.x4
106
+ topCornerRadius: $radius.r5
107
+ enterDuration: $duration.d6
108
+ enterTimingFunction: $timing-function.enter-expressive
109
+ # Do we need translateY definition here?
110
+ exitDuration: $duration.d4
111
+ exitTimingFunction: $timing-function.exit
112
+ header:
113
+ gap: $dimension.x1
114
+ paddingBottom: $dimension.x4
115
+ title:
116
+ fontSize: $font-size.t6
117
+ lineHeight: $line-height.t6
118
+ fontWeight: $font-weight.bold
119
+ color: $color.fg.neutral
120
+ description:
121
+ fontSize: $font-size.t4
122
+ lineHeight: $line-height.t4
123
+ fontWeight: $font-weight.regular
124
+ color: $color.fg.neutral-muted
125
+ # We might need description in near future
126
+ list:
127
+ gap: $dimension.x2_5
128
+ group:
129
+ cornerRadius: $radius.r4
130
+ divider:
131
+ strokeBottomWidth: 1px
132
+ strokeColor: $color.stroke.neutral
133
+ footer:
134
+ paddingTop: $dimension.x2_5