@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
@@ -4,133 +4,156 @@ metadata:
4
4
  id: badge
5
5
  name: Badge
6
6
  data:
7
- size=medium:
8
- enabled:
9
- root:
10
- minHeight: $unit.x5
11
- paddingX: $unit.x2
12
- paddingY: $unit.x1
13
- fontSize: $font-size.t2
14
- size=small:
15
- enabled:
16
- root:
17
- minHeight: $unit.x4
18
- paddingX: $unit.x1_5
19
- paddingY: $unit.x0_5
20
- fontSize: $font-size.t1
21
- shape=pill:
22
- enabled:
23
- root:
24
- borderRadius: $radius.full
25
- shape=rectangle, size=medium:
26
- enabled:
27
- root:
28
- borderRadius: $radius.x1
29
- shape=rectangle, size=small:
30
- enabled:
31
- root:
32
- borderRadius: $radius.x0_5
33
- variant=soft:
34
- enabled:
35
- label:
36
- fontWeight: $font-weight.medium
37
- variant=solid:
38
- enabled:
39
- label:
40
- fontWeight: $font-weight.bold
41
- variant=outlined:
42
- enabled:
43
- root:
44
- borderWidth: 1px
45
- label:
46
- fontWeight: $font-weight.bold
47
- tone=neutral, variant=soft:
48
- enabled:
49
- root:
50
- color: $color.bg.neutral-weak
51
- label:
52
- color: $color.fg.neutral
53
- tone=neutral, variant=solid:
54
- enabled:
55
- root:
56
- color: $color.bg.neutral-solid
57
- label:
58
- color: $color.fg.static-white
59
- tone=neutral, variant=outlined:
60
- enabled:
61
- root:
62
- strokeColor: $color.stroke.neutral
63
- label:
64
- color: $color.fg.neutral
65
- tone=brand, variant=soft:
66
- enabled:
67
- root:
68
- color: $color.bg.brand-weak
69
- label:
70
- color: $color.fg.brand
71
- tone=brand, variant=solid:
72
- enabled:
73
- root:
74
- color: $color.bg.brand-solid
75
- label:
76
- color: $color.fg.static-white
77
- tone=brand, variant=outlined:
78
- enabled:
79
- root:
80
- strokeColor: $color.stroke.brand
81
- label:
82
- color: $color.fg.brand
83
- tone=informative, variant=soft:
84
- enabled:
85
- root:
86
- color: $color.bg.informative-weak
87
- label:
88
- color: $color.fg.informative
89
- tone=informative, variant=solid:
90
- enabled:
91
- root:
92
- color: $color.bg.informative-solid
93
- label:
94
- color: $color.fg.static-white
95
- tone=informative, variant=outlined:
96
- enabled:
97
- root:
98
- strokeColor: $color.fg.informative
99
- label:
100
- color: $color.fg.informative
101
- tone=positive, variant=soft:
102
- enabled:
103
- root:
104
- color: $color.bg.positive-weak
105
- label:
106
- color: $color.fg.positive
107
- tone=positive, variant=solid:
108
- enabled:
109
- root:
110
- color: $color.bg.positive-solid
111
- label:
112
- color: $color.fg.static-white
113
- tone=positive, variant=outlined:
114
- enabled:
115
- root:
116
- strokeColor: $color.stroke.positive
117
- label:
118
- color: $color.fg.positive
119
- tone=danger, variant=soft:
120
- enabled:
121
- root:
122
- color: $color.bg.danger-weak
123
- label:
124
- color: $color.fg.danger
125
- tone=danger, variant=solid:
126
- enabled:
127
- root:
128
- color: $color.bg.danger-solid
129
- label:
130
- color: $color.fg.static-white
131
- tone=danger, variant=outlined:
132
- enabled:
133
- root:
134
- strokeColor: $color.stroke.danger
135
- label:
136
- color: $color.fg.danger
7
+ schema:
8
+ slots:
9
+ root:
10
+ properties:
11
+ minHeight:
12
+ type: dimension
13
+ paddingX:
14
+ type: dimension
15
+ paddingY:
16
+ type: dimension
17
+ cornerRadius:
18
+ type: dimension
19
+ strokeWidth:
20
+ type: dimension
21
+ strokeColor:
22
+ type: color
23
+ color:
24
+ type: color
25
+ label:
26
+ properties:
27
+ fontSize:
28
+ type: dimension
29
+ lineHeight:
30
+ type: dimension
31
+ fontWeight:
32
+ type: number
33
+ color:
34
+ type: color
35
+ definitions:
36
+ size=large:
37
+ enabled:
38
+ root:
39
+ minHeight: $dimension.x6
40
+ paddingX: $dimension.x2
41
+ paddingY: $dimension.x1
42
+ cornerRadius: $radius.r1_5
43
+ label:
44
+ fontSize: $font-size.t2
45
+ lineHeight: $line-height.t2
46
+ size=medium:
47
+ enabled:
48
+ root:
49
+ minHeight: $dimension.x5
50
+ paddingX: $dimension.x1_5
51
+ paddingY: $dimension.x0_5
52
+ cornerRadius: $radius.r1
53
+ label:
54
+ fontSize: $font-size.t1
55
+ lineHeight: $line-height.t1
56
+ variant=weak:
57
+ enabled:
58
+ label:
59
+ fontWeight: $font-weight.medium
60
+ variant=solid:
61
+ enabled:
62
+ label:
63
+ fontWeight: $font-weight.bold
64
+ variant=outline:
65
+ enabled:
66
+ root:
67
+ strokeWidth: 1px
68
+ label:
69
+ fontWeight: $font-weight.bold
70
+ tone=neutral, variant=weak:
71
+ enabled:
72
+ root:
73
+ color: $color.bg.neutral-weak
74
+ label:
75
+ color: $color.fg.neutral-muted
76
+ tone=neutral, variant=solid:
77
+ enabled:
78
+ root:
79
+ color: $color.palette.gray-800
80
+ label:
81
+ color: $color.fg.neutral-inverted
82
+ tone=neutral, variant=outline:
83
+ enabled:
84
+ root:
85
+ strokeColor: $color.stroke.neutral
86
+ label:
87
+ color: $color.fg.neutral-muted
88
+ tone=brand, variant=weak:
89
+ enabled:
90
+ root:
91
+ color: $color.palette.carrot-100
92
+ label:
93
+ color: $color.palette.carrot-900
94
+ tone=brand, variant=solid:
95
+ enabled:
96
+ root:
97
+ color: $color.bg.brand-solid
98
+ label:
99
+ color: $color.palette.static-white
100
+ tone=brand, variant=outline:
101
+ enabled:
102
+ root:
103
+ strokeColor: $color.stroke.brand
104
+ label:
105
+ color: $color.fg.brand
106
+ tone=informative, variant=weak:
107
+ enabled:
108
+ root:
109
+ color: $color.bg.informative-weak
110
+ label:
111
+ color: $color.fg.informative-contrast
112
+ tone=informative, variant=solid:
113
+ enabled:
114
+ root:
115
+ color: $color.bg.informative-solid
116
+ label:
117
+ color: $color.palette.static-white
118
+ tone=informative, variant=outline:
119
+ enabled:
120
+ root:
121
+ strokeColor: $color.stroke.informative
122
+ label:
123
+ color: $color.fg.informative
124
+ tone=positive, variant=weak:
125
+ enabled:
126
+ root:
127
+ color: $color.bg.positive-weak
128
+ label:
129
+ color: $color.fg.positive-contrast
130
+ tone=positive, variant=solid:
131
+ enabled:
132
+ root:
133
+ color: $color.bg.positive-solid
134
+ label:
135
+ color: $color.palette.static-white
136
+ tone=positive, variant=outline:
137
+ enabled:
138
+ root:
139
+ strokeColor: $color.stroke.positive
140
+ label:
141
+ color: $color.fg.positive
142
+ tone=critical, variant=weak:
143
+ enabled:
144
+ root:
145
+ color: $color.bg.critical-weak
146
+ label:
147
+ color: $color.fg.critical-contrast
148
+ tone=critical, variant=solid:
149
+ enabled:
150
+ root:
151
+ color: $color.bg.critical-solid
152
+ label:
153
+ color: $color.palette.static-white
154
+ tone=critical, variant=outline:
155
+ enabled:
156
+ root:
157
+ strokeColor: $color.stroke.critical
158
+ label:
159
+ color: $color.fg.critical
@@ -0,0 +1,38 @@
1
+ # yaml-language-server: $schema=./schema.json
2
+ kind: ComponentSpec
3
+ metadata:
4
+ id: bottom-sheet-close-button
5
+ name: Bottom Sheet Close Button
6
+ data:
7
+ schema:
8
+ slots:
9
+ root:
10
+ properties:
11
+ color:
12
+ type: color
13
+ cornerRadius:
14
+ type: dimension
15
+ targetSize:
16
+ type: dimension
17
+ size:
18
+ type: dimension
19
+ icon:
20
+ properties:
21
+ color:
22
+ type: color
23
+ size:
24
+ type: dimension
25
+ definitions:
26
+ base:
27
+ enabled:
28
+ root:
29
+ color: $color.bg.neutral-weak
30
+ cornerRadius: $radius.full
31
+ targetSize: 44px
32
+ size: 28px
33
+ icon:
34
+ color: $color.fg.neutral
35
+ size: 14px
36
+ pressed:
37
+ root:
38
+ color: $color.bg.neutral-weak-pressed
@@ -0,0 +1,143 @@
1
+ # yaml-language-server: $schema=./schema.json
2
+ kind: ComponentSpec
3
+ metadata:
4
+ id: bottom-sheet
5
+ name: Bottom 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
+ topCornerRadius:
32
+ type: dimension
33
+ enterDuration:
34
+ type: duration
35
+ enterTimingFunction:
36
+ type: cubicBezier
37
+ exitDuration:
38
+ type: duration
39
+ exitTimingFunction:
40
+ type: cubicBezier
41
+ header:
42
+ properties:
43
+ gap:
44
+ type: dimension
45
+ paddingLeft:
46
+ type: dimension
47
+ paddingRight:
48
+ type: dimension
49
+ paddingTop:
50
+ type: dimension
51
+ paddingBottom:
52
+ type: dimension
53
+ body:
54
+ properties:
55
+ paddingX:
56
+ type: dimension
57
+ footer:
58
+ properties:
59
+ paddingX:
60
+ type: dimension
61
+ paddingTop:
62
+ type: dimension
63
+ paddingBottom:
64
+ type: dimension
65
+ title:
66
+ properties:
67
+ color:
68
+ type: color
69
+ fontSize:
70
+ type: dimension
71
+ lineHeight:
72
+ type: dimension
73
+ fontWeight:
74
+ type: number
75
+ description:
76
+ properties:
77
+ color:
78
+ type: color
79
+ fontSize:
80
+ type: dimension
81
+ lineHeight:
82
+ type: dimension
83
+ fontWeight:
84
+ type: number
85
+ closeButton:
86
+ properties:
87
+ fromTop:
88
+ type: dimension
89
+ fromRight:
90
+ type: dimension
91
+ definitions:
92
+ base:
93
+ enabled:
94
+ backdrop:
95
+ color: $color.bg.overlay
96
+ enterDuration: $duration.d2
97
+ enterTimingFunction: $timing-function.enter
98
+ enterOpacity: 0
99
+ exitDuration: $duration.d2
100
+ exitTimingFunction: $timing-function.exit
101
+ exitOpacity: 0
102
+ content:
103
+ color: $color.bg.layer-floating
104
+ maxWidth: 640px
105
+ topCornerRadius: $radius.r6
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.x2
113
+ paddingTop: $dimension.x6
114
+ paddingBottom: $dimension.x4
115
+ body:
116
+ paddingX: $dimension.spacing-x.global-gutter
117
+ footer:
118
+ paddingX: $dimension.spacing-x.global-gutter
119
+ paddingTop: $dimension.x3
120
+ paddingBottom: $dimension.x4
121
+ title:
122
+ color: $color.fg.neutral
123
+ fontSize: $font-size.t8
124
+ lineHeight: $line-height.t8
125
+ fontWeight: $font-weight.bold
126
+ description:
127
+ color: $color.fg.neutral-muted
128
+ fontSize: $font-size.t5
129
+ lineHeight: $line-height.t5
130
+ fontWeight: $font-weight.regular
131
+ closeButton:
132
+ fromTop: $dimension.x5
133
+ fromRight: $dimension.x5
134
+ headerAlignment=left:
135
+ enabled:
136
+ header:
137
+ paddingLeft: $dimension.spacing-x.global-gutter
138
+ paddingRight: 50px
139
+ headerAlignment=center:
140
+ enabled:
141
+ header:
142
+ paddingLeft: 50px
143
+ paddingRight: 50px