@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
@@ -0,0 +1,133 @@
1
+ # yaml-language-server: $schema=./schema.json
2
+ kind: ComponentSpec
3
+ metadata:
4
+ id: menu-sheet
5
+ name: Menu Sheet
6
+ data:
7
+ schema:
8
+ slots:
9
+ backdrop:
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
25
+ content:
26
+ properties:
27
+ color:
28
+ type: color
29
+ maxWidth:
30
+ type: dimension
31
+ paddingX:
32
+ type: dimension
33
+ paddingY:
34
+ type: dimension
35
+ topCornerRadius:
36
+ type: dimension
37
+ enterDuration:
38
+ type: duration
39
+ enterTimingFunction:
40
+ type: cubicBezier
41
+ exitDuration:
42
+ type: duration
43
+ exitTimingFunction:
44
+ type: cubicBezier
45
+ header:
46
+ properties:
47
+ gap:
48
+ type: dimension
49
+ paddingBottom:
50
+ type: dimension
51
+ title:
52
+ properties:
53
+ fontSize:
54
+ type: dimension
55
+ lineHeight:
56
+ type: dimension
57
+ fontWeight:
58
+ type: number
59
+ color:
60
+ type: color
61
+ description:
62
+ properties:
63
+ fontSize:
64
+ type: dimension
65
+ lineHeight:
66
+ type: dimension
67
+ fontWeight:
68
+ type: number
69
+ color:
70
+ type: color
71
+ list:
72
+ properties:
73
+ gap:
74
+ type: dimension
75
+ group:
76
+ properties:
77
+ cornerRadius:
78
+ type: dimension
79
+ divider:
80
+ properties:
81
+ strokeBottomWidth:
82
+ type: dimension
83
+ strokeColor:
84
+ type: color
85
+ footer:
86
+ properties:
87
+ paddingTop:
88
+ type: dimension
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
+ maxWidth: 480px
103
+ paddingX: $dimension.spacing-x.global-gutter
104
+ paddingY: $dimension.x4
105
+ topCornerRadius: $radius.r5
106
+ enterDuration: $duration.d6
107
+ enterTimingFunction: $timing-function.enter-expressive
108
+ # Do we need translateY definition here?
109
+ exitDuration: $duration.d4
110
+ exitTimingFunction: $timing-function.exit
111
+ header:
112
+ gap: $dimension.x1
113
+ paddingBottom: $dimension.x4
114
+ title:
115
+ fontSize: $font-size.t6
116
+ lineHeight: $line-height.t6
117
+ fontWeight: $font-weight.bold
118
+ color: $color.fg.neutral
119
+ description:
120
+ fontSize: $font-size.t4
121
+ lineHeight: $line-height.t4
122
+ fontWeight: $font-weight.regular
123
+ color: $color.fg.neutral-muted
124
+ # We might need description in near future
125
+ list:
126
+ gap: $dimension.x2_5
127
+ group:
128
+ cornerRadius: $radius.r4
129
+ divider:
130
+ strokeBottomWidth: 1px
131
+ strokeColor: $color.stroke.neutral
132
+ footer:
133
+ paddingTop: $dimension.x2_5
@@ -0,0 +1,67 @@
1
+ # yaml-language-server: $schema=./schema.json
2
+ kind: ComponentSpec
3
+ metadata:
4
+ id: notification-badge
5
+ name: Notification Badge
6
+ data:
7
+ schema:
8
+ slots:
9
+ root:
10
+ properties:
11
+ color:
12
+ type: color
13
+ minHeight:
14
+ type: dimension
15
+ paddingX:
16
+ type: dimension
17
+ paddingY:
18
+ type: dimension
19
+ cornerRadius:
20
+ type: dimension
21
+ iconAttachedInsetEnd:
22
+ type: dimension
23
+ iconAttachedInsetTop:
24
+ type: dimension
25
+ textAttachedGap:
26
+ type: dimension
27
+ size:
28
+ type: dimension
29
+ label:
30
+ properties:
31
+ color:
32
+ type: color
33
+ fontSize:
34
+ type: dimension
35
+ lineHeight:
36
+ type: dimension
37
+ fontWeight:
38
+ type: number
39
+ definitions:
40
+ base:
41
+ enabled:
42
+ root:
43
+ color: $color.bg.brand-solid
44
+ label:
45
+ color: $color.palette.static-white
46
+ size=large:
47
+ enabled:
48
+ root:
49
+ minHeight: 18px
50
+ paddingX: $dimension.x1
51
+ paddingY: 0px
52
+ cornerRadius: $radius.full
53
+ iconAttachedInsetEnd: 8px
54
+ iconAttachedInsetTop: 14px
55
+ textAttachedGap: 2px
56
+ label:
57
+ fontSize: $font-size.t1
58
+ lineHeight: $line-height.t1
59
+ fontWeight: $font-weight.bold
60
+ size=small:
61
+ enabled:
62
+ root:
63
+ size: 6px
64
+ cornerRadius: $radius.full
65
+ iconAttachedInsetEnd: 7px
66
+ iconAttachedInsetTop: 7px
67
+ textAttachedGap: 2px
@@ -1,41 +1,84 @@
1
1
  # yaml-language-server: $schema=./schema.json
2
- base:
3
- enabled:
4
- root: null
5
- track:
6
- fill: "#0017580d"
7
- indicator:
8
- color: "#d1d3d8"
9
- indicator-path: null
10
- size=small:
11
- enabled:
12
- root:
13
- size: $unit.x6
14
- track: null
15
- indicator: null
16
- size=medium:
17
- enabled:
18
- root:
19
- size: $unit.x10
20
- track: null
21
- indicator: null
22
- variant=indeterminate:
23
- enabled:
24
- root: null
25
- track: null
26
- indicator: null
27
- indicator-path:
28
- headDashDuration: 1.2s
29
- tailDashDuration: 1.2s
30
- rotateDuration: 1.2s
31
- headDashTimingFunction: cubic-bezier(0.35, 0, 0.65, 1)
32
- tailDashTimingFunction: cubic-bezier(0.35, 0, 0.65, 0.6)
33
- rotateTimingFunction: cubic-bezier(0.35, 0.25, 0.65, 0.75)
34
- variant=determinate:
35
- enabled:
36
- root: null
37
- track: null
38
- indicator: null
39
- indicator-path:
40
- transitionDuration: 0.4s
41
- transitionTimingFunction: cubic-bezier(0, 0, 0.15, 1)
2
+ kind: ComponentSpec
3
+ metadata:
4
+ id: progress-circle
5
+ name: Progress Circle
6
+ data:
7
+ schema:
8
+ slots:
9
+ root:
10
+ properties:
11
+ size:
12
+ type: dimension
13
+ thickness:
14
+ type: dimension
15
+ track:
16
+ properties:
17
+ color:
18
+ type: color
19
+ range:
20
+ properties:
21
+ color:
22
+ type: color
23
+ lengthDuration:
24
+ type: duration
25
+ lengthTimingFunction:
26
+ type: cubicBezier
27
+ rotateDuration:
28
+ type: duration
29
+ headTimingFunction:
30
+ type: cubicBezier
31
+ tailTimingFunction:
32
+ type: cubicBezier
33
+ rotateTimingFunction:
34
+ type: cubicBezier
35
+ definitions:
36
+ size=40:
37
+ enabled:
38
+ root:
39
+ size: $dimension.x10
40
+ thickness: 5px
41
+ size=24:
42
+ enabled:
43
+ root:
44
+ size: $dimension.x6
45
+ thickness: 3px
46
+ indeterminate=false:
47
+ enabled:
48
+ range:
49
+ lengthDuration: 300ms
50
+ lengthTimingFunction:
51
+ type: cubicBezier
52
+ value: [0, 0, 0.15, 1]
53
+ indeterminate=true:
54
+ enabled:
55
+ range:
56
+ lengthDuration: 1.2s
57
+ rotateDuration: 1.2s
58
+ headTimingFunction:
59
+ type: cubicBezier
60
+ value: [0.35, 0, 0.65, 1]
61
+ tailTimingFunction:
62
+ type: cubicBezier
63
+ value: [0.35, 0, 0.65, 0.6]
64
+ rotateTimingFunction:
65
+ type: cubicBezier
66
+ value: [0.35, 0.25, 0.65, 0.75]
67
+ tone=neutral:
68
+ enabled:
69
+ track:
70
+ color: $color.palette.gray-200
71
+ range:
72
+ color: $color.palette.gray-500
73
+ tone=brand:
74
+ enabled:
75
+ track:
76
+ color: $color.palette.carrot-200
77
+ range:
78
+ color: $color.bg.brand-solid
79
+ tone=staticWhite:
80
+ enabled:
81
+ track:
82
+ color: $color.palette.static-white-alpha-300
83
+ range:
84
+ color: $color.palette.static-white
@@ -4,76 +4,72 @@ metadata:
4
4
  id: radio
5
5
  name: Radio
6
6
  data:
7
- base:
8
- enabled:
9
- label:
10
- color: $color.fg.neutral
11
- control:
12
- strokeColor: $color.stroke.control
13
- strokeWidth: 1px
14
- cornerRadius: $radius.full
15
- enabled,selected:
16
- control:
17
- color: $color.bg.brand-solid
18
- icon:
19
- color: $color.fg.static-white
20
- pressed:
21
- control:
22
- color: $color.bg.layer-default-pressed
23
- pressed,selected:
24
- control:
25
- color: $color.bg.brand-solid-pressed
26
- icon:
27
- color: $color.fg.static-white
28
- disabled:
29
- label:
30
- color: $color.fg.disabled
31
- control:
32
- color: $color.bg.disabled
33
- disabled,selected:
34
- label:
35
- color: $color.fg.disabled
36
- icon:
37
- color: $color.bg.disabled
38
- size=small:
39
- enabled:
40
- root:
41
- gap: $unit.x2
42
- minHeight: $unit.x7
43
- label:
44
- fontSize: $font-size.t3
45
- control:
46
- size: $unit.x4
47
- icon:
48
- size: $unit.x2
49
- disabled:
50
- icon:
51
- size: $unit.x2
52
- size=medium:
53
- enabled:
7
+ schema:
8
+ slots:
54
9
  root:
55
- gap: $unit.x2_5
56
- minHeight: $unit.x8
57
- label:
58
- fontSize: $font-size.t4
59
- control:
60
- size: $unit.x5
61
- icon:
62
- size: $unit.x2
63
- disabled:
64
- icon:
65
- size: $unit.x2_5
66
- size=large:
67
- enabled:
68
- root:
69
- gap: $unit.x3
70
- minHeight: $unit.x9
71
- label:
72
- fontSize: $font-size.t5
73
- control:
74
- size: $unit.x6
75
- icon:
76
- size: $unit.x2_5
77
- disabled:
10
+ properties:
11
+ color:
12
+ type: color
13
+ size:
14
+ type: dimension
15
+ strokeWidth:
16
+ type: dimension
17
+ strokeColor:
18
+ type: color
19
+ cornerRadius:
20
+ type: dimension
78
21
  icon:
79
- size: $unit.x3
22
+ properties:
23
+ color:
24
+ type: color
25
+ size:
26
+ type: dimension
27
+ definitions:
28
+ base:
29
+ enabled:
30
+ root:
31
+ color: $color.bg.layer-default
32
+ strokeWidth: 1px
33
+ strokeColor: $color.stroke.control
34
+ cornerRadius: $radius.full
35
+ icon:
36
+ cornerRadius: $radius.full
37
+ enabled,pressed:
38
+ root:
39
+ color: $color.bg.layer-default-pressed
40
+ enabled,selected:
41
+ root:
42
+ color: $color.bg.brand-solid
43
+ strokeWidth: 0px
44
+ icon:
45
+ color: $color.palette.static-white
46
+ enabled,selected,pressed:
47
+ root:
48
+ color: $color.bg.brand-solid-pressed
49
+ disabled:
50
+ root:
51
+ color: $color.palette.gray-300
52
+ disabled,selected:
53
+ root:
54
+ strokeColor: $color.palette.gray-300
55
+ icon:
56
+ color: $color.palette.gray-300
57
+
58
+ size=large:
59
+ enabled:
60
+ root:
61
+ size: $dimension.x6
62
+ icon:
63
+ size: $dimension.x2_5
64
+ disabled:
65
+ icon:
66
+ size: $dimension.x3
67
+ size=medium:
68
+ enabled:
69
+ root:
70
+ size: $dimension.x5
71
+ icon:
72
+ size: $dimension.x2
73
+ disabled:
74
+ icon:
75
+ size: $dimension.x2_5
@@ -0,0 +1,159 @@
1
+ # yaml-language-server: $schema=./schema.json
2
+ kind: ComponentSpec
3
+ metadata:
4
+ id: reaction-button
5
+ name: Reaction Button
6
+ data:
7
+ schema:
8
+ slots:
9
+ root:
10
+ properties:
11
+ color:
12
+ type: color
13
+ colorDuration:
14
+ type: duration
15
+ colorTimingFunction:
16
+ type: cubicBezier
17
+ strokeColor:
18
+ type: color
19
+ strokeWidth:
20
+ type: dimension
21
+ minHeight:
22
+ type: dimension
23
+ cornerRadius:
24
+ type: dimension
25
+ gap:
26
+ type: dimension
27
+ paddingX:
28
+ type: dimension
29
+ paddingY:
30
+ type: dimension
31
+ label:
32
+ properties:
33
+ color:
34
+ type: color
35
+ fontWeight:
36
+ type: number
37
+ fontSize:
38
+ type: dimension
39
+ lineHeight:
40
+ type: dimension
41
+ count:
42
+ properties:
43
+ color:
44
+ type: color
45
+ fontWeight:
46
+ type: number
47
+ fontSize:
48
+ type: dimension
49
+ lineHeight:
50
+ type: dimension
51
+ prefixIcon:
52
+ properties:
53
+ color:
54
+ type: color
55
+ size:
56
+ type: dimension
57
+ progressCircle:
58
+ properties:
59
+ trackColor:
60
+ type: color
61
+ rangeColor:
62
+ type: color
63
+ size:
64
+ type: dimension
65
+ thickness:
66
+ type: dimension
67
+ definitions:
68
+ base:
69
+ enabled:
70
+ root:
71
+ color: $color.bg.neutral-weak
72
+ colorDuration: $duration.d4
73
+ colorTimingFunction: $timing-function.easing
74
+ label:
75
+ color: $color.fg.neutral
76
+ fontWeight: $font-weight.medium
77
+ count:
78
+ color: $color.fg.neutral
79
+ fontWeight: $font-weight.bold
80
+ prefixIcon:
81
+ color: $color.fg.neutral
82
+ progressCircle:
83
+ trackColor: $color.palette.gray-500
84
+ rangeColor: $color.fg.neutral
85
+ pressed:
86
+ root:
87
+ color: $color.bg.neutral-weak-pressed
88
+ selected:
89
+ root:
90
+ color: $color.bg.layer-default
91
+ strokeColor: $color.stroke.brand
92
+ strokeWidth: 1px
93
+ label:
94
+ color: $color.fg.brand
95
+ count:
96
+ color: $color.fg.brand
97
+ prefixIcon:
98
+ color: $color.fg.brand
99
+ progressCircle:
100
+ trackColor: $color.palette.carrot-200
101
+ rangeColor: $color.fg.brand
102
+ selected,pressed:
103
+ root:
104
+ color: $color.bg.layer-default-pressed
105
+ disabled:
106
+ root:
107
+ color: $color.bg.disabled
108
+ strokeWidth: 0px
109
+ label:
110
+ color: $color.fg.disabled
111
+ count:
112
+ color: $color.fg.disabled
113
+ prefixIcon:
114
+ color: $color.fg.disabled
115
+ loading:
116
+ root:
117
+ color: $color.bg.neutral-weak-pressed
118
+ selected,loading:
119
+ root:
120
+ color: $color.bg.layer-default-pressed
121
+ strokeWidth: 1px
122
+ size=xsmall:
123
+ enabled:
124
+ root:
125
+ minHeight: $dimension.x8
126
+ cornerRadius: $radius.full
127
+ gap: $dimension.x1
128
+ paddingX: $dimension.x3
129
+ paddingY: $dimension.x1_5
130
+ prefixIcon:
131
+ size: 18px
132
+ label:
133
+ fontSize: $font-size.t3
134
+ lineHeight: $line-height.t3
135
+ count:
136
+ fontSize: $font-size.t3
137
+ lineHeight: $line-height.t3
138
+ progressCircle:
139
+ size: 14px
140
+ thickness: 2px
141
+ size=small:
142
+ enabled:
143
+ root:
144
+ minHeight: $dimension.x9
145
+ cornerRadius: $radius.full
146
+ gap: $dimension.x1
147
+ paddingX: $dimension.x3_5
148
+ paddingY: $dimension.x2
149
+ prefixIcon:
150
+ size: 18px
151
+ label:
152
+ fontSize: $font-size.t3
153
+ lineHeight: $line-height.t3
154
+ count:
155
+ fontSize: $font-size.t3
156
+ lineHeight: $line-height.t3
157
+ progressCircle:
158
+ size: 14px
159
+ thickness: 2px
@@ -0,0 +1,54 @@
1
+ # yaml-language-server: $schema=./schema.json
2
+ # parts: root, segment, indicator
3
+ kind: ComponentSpec
4
+ metadata:
5
+ id: segmented-control-item
6
+ name: Segmented Control Item
7
+ data:
8
+ schema:
9
+ slots:
10
+ root:
11
+ properties:
12
+ height:
13
+ type: dimension
14
+ cornerRadius:
15
+ type: dimension
16
+ paddingX:
17
+ type: dimension
18
+ minWidth:
19
+ type: dimension
20
+ color:
21
+ type: color
22
+ label:
23
+ properties:
24
+ fontSize:
25
+ type: dimension
26
+ lineHeight:
27
+ type: dimension
28
+ fontWeight:
29
+ type: number
30
+ color:
31
+ type: color
32
+ definitions:
33
+ base:
34
+ enabled:
35
+ root:
36
+ height: $dimension.x8
37
+ cornerRadius: $radius.full
38
+ paddingX: $dimension.x4
39
+ minWidth: 86px
40
+ label:
41
+ fontSize: $font-size.t5
42
+ lineHeight: $line-height.t5
43
+ fontWeight: $font-weight.medium
44
+ color: $color.fg.neutral-muted
45
+ pressed:
46
+ root:
47
+ color: $color.bg.neutral-weak-pressed
48
+ selected:
49
+ label:
50
+ fontWeight: $font-weight.bold
51
+ color: $color.fg.neutral
52
+ disabled:
53
+ label:
54
+ color: $color.fg.disabled