@seed-design/rootage-artifacts 0.0.0 → 0.0.2

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 +168 -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,76 +3,148 @@ kind: ComponentSpec
3
3
  metadata:
4
4
  id: action-chip
5
5
  name: Action Chip
6
+ deprecated: Use Chip.Button with variant="solid" instead.
7
+ lastUpdated: 25-07-16
6
8
  data:
7
- base:
8
- enabled:
9
+ schema:
10
+ slots:
9
11
  root:
10
- color: $color.bg.neutral-weak
11
- cornerRadius: $radius.full
12
+ properties:
13
+ color:
14
+ type: color
15
+ cornerRadius:
16
+ type: dimension
17
+ minHeight:
18
+ type: dimension
19
+ paddingY:
20
+ type: dimension
21
+ gap:
22
+ type: dimension
23
+ paddingX:
24
+ type: dimension
25
+ minWidth:
26
+ type: dimension
12
27
  label:
13
- color: $color.fg.neutral
14
- fontWeight: $font-weight.medium
28
+ properties:
29
+ color:
30
+ type: color
31
+ fontWeight:
32
+ type: number
33
+ fontSize:
34
+ type: dimension
35
+ lineHeight:
36
+ type: dimension
15
37
  prefixIcon:
16
- color: $color.fg.neutral
38
+ properties:
39
+ color:
40
+ type: color
41
+ size:
42
+ type: dimension
17
43
  suffixIcon:
18
- color: $color.fg.neutral
19
- count:
20
- color: $color.fg.neutral-muted
21
- pressed:
22
- root:
23
- color: $color.bg.neutral-weak-pressed
24
- disabled:
25
- root:
26
- color: $color.bg.disabled
27
- label:
28
- color: $color.fg.disabled
29
- prefixIcon:
30
- color: $color.fg.disabled
31
- suffixIcon:
32
- color: $color.fg.disabled
33
- count:
34
- color: $color.fg.disabled
35
- size=small:
36
- enabled:
37
- root:
38
- minHeight: $unit.x8
39
- paddingY: $unit.x1_5
40
- gap: $unit.x1
41
- label:
42
- fontSize: $font-size.t4
43
- prefixIcon:
44
- size: $unit.x4
45
- suffixIcon:
46
- size: $unit.x3_5
47
- size=medium:
48
- enabled:
49
- root:
50
- minHeight: $unit.x9
51
- paddingY: $unit.x2
52
- gap: $unit.x1
53
- label:
54
- fontSize: $font-size.t4
55
- prefixIcon:
56
- size: $unit.x4
57
- suffixIcon:
58
- size: $unit.x3_5
59
- size=small,layout=with text:
60
- enabled:
61
- root:
62
- paddingX: $unit.x3
63
- size=small,layout=icon only:
64
- enabled:
65
- root:
66
- minWidth: $unit.x8
44
+ properties:
45
+ color:
46
+ type: color
47
+ size:
48
+ type: dimension
67
49
  icon:
68
- size: $unit.x4
69
- size=medium,layout=with text:
70
- enabled:
71
- root:
72
- paddingX: $unit.x3_5
73
- size=medium,layout=icon only:
74
- enabled:
75
- root:
76
- minWidth: $unit.x9
77
- icon:
78
- size: $unit.x4
50
+ properties:
51
+ color:
52
+ type: color
53
+ size:
54
+ type: dimension
55
+ count:
56
+ properties:
57
+ color:
58
+ type: color
59
+ fontWeight:
60
+ type: number
61
+ fontSize:
62
+ type: dimension
63
+ lineHeight:
64
+ type: dimension
65
+ definitions:
66
+ base:
67
+ enabled:
68
+ root:
69
+ color: $color.bg.neutral-weak
70
+ cornerRadius: $radius.full
71
+ label:
72
+ color: $color.fg.neutral
73
+ fontWeight: $font-weight.medium
74
+ prefixIcon:
75
+ color: $color.fg.neutral
76
+ suffixIcon:
77
+ color: $color.fg.neutral-subtle
78
+ icon:
79
+ color: $color.fg.neutral
80
+ count:
81
+ color: $color.fg.neutral-muted
82
+ fontWeight: $font-weight.medium
83
+ pressed:
84
+ root:
85
+ color: $color.bg.neutral-weak-pressed
86
+ disabled:
87
+ root:
88
+ color: $color.bg.disabled
89
+ label:
90
+ color: $color.fg.disabled
91
+ prefixIcon:
92
+ color: $color.fg.disabled
93
+ suffixIcon:
94
+ color: $color.fg.disabled
95
+ icon:
96
+ color: $color.fg.disabled
97
+ count:
98
+ color: $color.fg.disabled
99
+ size=small:
100
+ enabled:
101
+ root:
102
+ minHeight: $dimension.x8
103
+ paddingY: $dimension.x1_5
104
+ gap: $dimension.x1
105
+ label:
106
+ fontSize: $font-size.t4
107
+ lineHeight: $line-height.t4
108
+ prefixIcon:
109
+ size: $dimension.x4
110
+ suffixIcon:
111
+ size: $dimension.x3_5
112
+ count:
113
+ fontSize: $font-size.t4
114
+ lineHeight: $line-height.t4
115
+ size=medium:
116
+ enabled:
117
+ root:
118
+ minHeight: $dimension.x9
119
+ paddingY: $dimension.x2
120
+ gap: $dimension.x1
121
+ label:
122
+ fontSize: $font-size.t4
123
+ lineHeight: $line-height.t4
124
+ prefixIcon:
125
+ size: $dimension.x4
126
+ suffixIcon:
127
+ size: $dimension.x3_5
128
+ count:
129
+ fontSize: $font-size.t4
130
+ lineHeight: $line-height.t4
131
+ size=small,layout=withText:
132
+ enabled:
133
+ root:
134
+ paddingX: $dimension.x3
135
+ size=small,layout=iconOnly:
136
+ enabled:
137
+ root:
138
+ minWidth: $dimension.x8
139
+ icon:
140
+ size: $dimension.x4
141
+ size=medium,layout=withText:
142
+ enabled:
143
+ root:
144
+ paddingX: $dimension.x3_5
145
+ size=medium,layout=iconOnly:
146
+ enabled:
147
+ root:
148
+ minWidth: $dimension.x9
149
+ icon:
150
+ size: $dimension.x4
@@ -0,0 +1,45 @@
1
+ # yaml-language-server: $schema=./schema.json
2
+ kind: ComponentSpec
3
+ metadata:
4
+ id: action-sheet-close-button
5
+ name: 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
+ paddingX:
17
+ type: dimension
18
+ paddingY:
19
+ type: dimension
20
+ label:
21
+ properties:
22
+ color:
23
+ type: color
24
+ fontSize:
25
+ type: dimension
26
+ lineHeight:
27
+ type: dimension
28
+ fontWeight:
29
+ type: number
30
+ definitions:
31
+ base:
32
+ enabled:
33
+ root:
34
+ color: $color.bg.layer-floating
35
+ minHeight: 50px
36
+ paddingX: $dimension.spacing-x.global-gutter
37
+ paddingY: $dimension.x3_5
38
+ label:
39
+ fontSize: $font-size.t5
40
+ lineHeight: $line-height.t5
41
+ fontWeight: $font-weight.bold
42
+ color: $color.fg.neutral
43
+ pressed:
44
+ root:
45
+ color: $color.bg.layer-floating-pressed
@@ -0,0 +1,52 @@
1
+ # yaml-language-server: $schema=./schema.json
2
+ kind: ComponentSpec
3
+ metadata:
4
+ id: action-sheet-item
5
+ name: 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
+ label:
21
+ properties:
22
+ color:
23
+ type: color
24
+ fontSize:
25
+ type: dimension
26
+ lineHeight:
27
+ type: dimension
28
+ fontWeight:
29
+ type: number
30
+ definitions:
31
+ base:
32
+ enabled:
33
+ root:
34
+ color: $color.bg.layer-floating
35
+ minHeight: 50px
36
+ paddingX: $dimension.spacing-x.global-gutter
37
+ paddingY: $dimension.x3_5
38
+ label:
39
+ fontSize: $font-size.t5
40
+ lineHeight: $line-height.t5
41
+ fontWeight: $font-weight.regular
42
+ pressed:
43
+ root:
44
+ color: $color.bg.layer-floating-pressed
45
+ tone=neutral:
46
+ enabled:
47
+ label:
48
+ color: $color.fg.neutral
49
+ tone=critical:
50
+ enabled:
51
+ label:
52
+ color: $color.fg.critical
@@ -0,0 +1,115 @@
1
+ # yaml-language-server: $schema=./schema.json
2
+ kind: ComponentSpec
3
+ metadata:
4
+ id: action-sheet
5
+ name: 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
+ topCornerRadius:
33
+ type: dimension
34
+ enterDuration:
35
+ type: duration
36
+ enterTimingFunction:
37
+ type: cubicBezier
38
+ exitDuration:
39
+ type: duration
40
+ exitTimingFunction:
41
+ type: cubicBezier
42
+ header:
43
+ properties:
44
+ paddingX:
45
+ type: dimension
46
+ paddingY:
47
+ type: dimension
48
+ gap:
49
+ type: dimension
50
+ title:
51
+ properties:
52
+ fontSize:
53
+ type: dimension
54
+ lineHeight:
55
+ type: dimension
56
+ fontWeight:
57
+ type: number
58
+ color:
59
+ type: color
60
+ description:
61
+ properties:
62
+ fontSize:
63
+ type: dimension
64
+ lineHeight:
65
+ type: dimension
66
+ fontWeight:
67
+ type: number
68
+ color:
69
+ type: color
70
+ divider:
71
+ properties:
72
+ strokeWidth:
73
+ type: dimension
74
+ strokeColor:
75
+ type: color
76
+ marginX:
77
+ type: dimension
78
+ definitions:
79
+ base:
80
+ enabled:
81
+ backdrop:
82
+ color: $color.bg.overlay
83
+ enterDuration: $duration.d2
84
+ enterTimingFunction: $timing-function.enter
85
+ enterOpacity: 0
86
+ exitDuration: $duration.d2
87
+ exitTimingFunction: $timing-function.exit
88
+ exitOpacity: 0
89
+ content:
90
+ color: $color.bg.layer-floating
91
+ maxWidth: 480px
92
+ topCornerRadius: $radius.r5
93
+ enterDuration: $duration.d6
94
+ enterTimingFunction: $timing-function.enter-expressive
95
+ # Do we need translateY definition here?
96
+ exitDuration: $duration.d4
97
+ exitTimingFunction: $timing-function.exit
98
+ header:
99
+ paddingX: $dimension.spacing-x.global-gutter
100
+ paddingY: $dimension.x3_5
101
+ gap: $dimension.x1
102
+ title:
103
+ fontSize: $font-size.t4
104
+ lineHeight: $line-height.t4
105
+ fontWeight: $font-weight.bold
106
+ color: $color.fg.neutral-muted
107
+ description:
108
+ fontSize: $font-size.t3
109
+ lineHeight: $line-height.t3
110
+ fontWeight: $font-weight.regular
111
+ color: $color.fg.neutral-muted
112
+ divider:
113
+ strokeWidth: 1px
114
+ strokeColor: $color.stroke.neutral
115
+ marginX: $dimension.spacing-x.global-gutter
@@ -0,0 +1,74 @@
1
+ # yaml-language-server: $schema=./schema.json
2
+ kind: ComponentSpec
3
+ metadata:
4
+ id: avatar-stack
5
+ name: Avatar Stack
6
+ data:
7
+ schema:
8
+ slots:
9
+ root:
10
+ properties:
11
+ gap:
12
+ type: dimension
13
+ item:
14
+ properties:
15
+ cornerRadius:
16
+ type: dimension
17
+ strokeColor:
18
+ type: color
19
+ strokeWidth:
20
+ type: dimension
21
+ definitions:
22
+ base:
23
+ enabled:
24
+ item:
25
+ cornerRadius: $radius.full
26
+ strokeColor: $color.bg.layer-default
27
+ size=20:
28
+ enabled:
29
+ root:
30
+ gap: -5px
31
+ item:
32
+ strokeWidth: 1px
33
+ size=24:
34
+ enabled:
35
+ root:
36
+ gap: -6px
37
+ item:
38
+ strokeWidth: 1px
39
+ size=36:
40
+ enabled:
41
+ root:
42
+ gap: -8px
43
+ item:
44
+ strokeWidth: 2px
45
+ size=42:
46
+ enabled:
47
+ root:
48
+ gap: -10px
49
+ item:
50
+ strokeWidth: 2px
51
+ size=48:
52
+ enabled:
53
+ root:
54
+ gap: -12px
55
+ item:
56
+ strokeWidth: 2px
57
+ size=64:
58
+ enabled:
59
+ root:
60
+ gap: -16px
61
+ item:
62
+ strokeWidth: 3px
63
+ size=80:
64
+ enabled:
65
+ root:
66
+ gap: -20px
67
+ item:
68
+ strokeWidth: 4px
69
+ size=96:
70
+ enabled:
71
+ root:
72
+ gap: -24px
73
+ item:
74
+ strokeWidth: 5px
@@ -4,52 +4,115 @@ metadata:
4
4
  id: avatar
5
5
  name: Avatar
6
6
  data:
7
- base:
8
- enabled:
7
+ schema:
8
+ slots:
9
9
  root:
10
- cornerRadius: $radius.full
10
+ properties:
11
+ cornerRadius:
12
+ type: dimension
13
+ size:
14
+ type: dimension
15
+ strokeColor:
16
+ type: color
17
+ strokeWidth:
18
+ type: dimension
19
+ badgeMask:
20
+ properties:
21
+ offset:
22
+ type: dimension
23
+ size:
24
+ type: dimension
11
25
  badge:
12
- cornerRadius: $radius.full
13
- color: $color.bg.layer-default
14
- size=20:
15
- enabled:
16
- root:
17
- size: $unit.x5
18
- badge:
19
- size: $unit.x2_5
20
- size=24:
21
- enabled:
22
- root:
23
- size: $unit.x6
24
- badge:
25
- size: $unit.x3
26
- size=36:
27
- enabled:
28
- root:
29
- size: $unit.x9
30
- badge:
31
- size: $unit.x4
32
- size=48:
33
- enabled:
34
- root:
35
- size: $unit.x12
36
- badge:
37
- size: $unit.x6
38
- size=64:
39
- enabled:
40
- root:
41
- size: $unit.x16
42
- badge:
43
- size: $unit.x6
44
- size=80:
45
- enabled:
46
- root:
47
- size: 80px
48
- badge:
49
- size: $unit.x6
50
- size=96:
51
- enabled:
52
- root:
53
- size: 96px
54
- badge:
55
- size: $unit.x8
26
+ properties:
27
+ offset:
28
+ type: dimension
29
+ size:
30
+ type: dimension
31
+ definitions:
32
+ base:
33
+ enabled:
34
+ root:
35
+ cornerRadius: $radius.full
36
+ strokeColor: $color.stroke.on-image
37
+ size=20:
38
+ enabled:
39
+ root:
40
+ size: 20px
41
+ strokeWidth: 1px
42
+ size=24:
43
+ enabled:
44
+ root:
45
+ size: 24px
46
+ strokeWidth: 1px
47
+ badgeMask:
48
+ offset: 14px
49
+ size: 12px
50
+ badge:
51
+ offset: 15px
52
+ size: 10px
53
+ size=36:
54
+ enabled:
55
+ root:
56
+ size: 36px
57
+ strokeWidth: 1px
58
+ badgeMask:
59
+ offset: 20px
60
+ size: 18px
61
+ badge:
62
+ offset: 22px
63
+ size: 14px
64
+ size=42:
65
+ enabled:
66
+ root:
67
+ size: 42px
68
+ strokeWidth: 1px
69
+ badgeMask:
70
+ offset: 24px
71
+ size: 20px
72
+ badge:
73
+ offset: 26px
74
+ size: 16px
75
+ size=48:
76
+ enabled:
77
+ root:
78
+ size: 48px
79
+ strokeWidth: 1px
80
+ badgeMask:
81
+ offset: 28px
82
+ size: 22px
83
+ badge:
84
+ offset: 30px
85
+ size: 18px
86
+ size=64:
87
+ enabled:
88
+ root:
89
+ size: 64px
90
+ strokeWidth: 1px
91
+ badgeMask:
92
+ offset: 40px
93
+ size: 26px
94
+ badge:
95
+ offset: 42px
96
+ size: 22px
97
+ size=80:
98
+ enabled:
99
+ root:
100
+ size: 80px
101
+ strokeWidth: 1px
102
+ badgeMask:
103
+ offset: 52px
104
+ size: 32px
105
+ badge:
106
+ offset: 54px
107
+ size: 28px
108
+ size=96:
109
+ enabled:
110
+ root:
111
+ size: 96px
112
+ strokeWidth: 1px
113
+ badgeMask:
114
+ offset: 62px
115
+ size: 38px
116
+ badge:
117
+ offset: 65px
118
+ size: 32px