@ptsecurity/mosaic 13.3.0 → 13.3.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/design-tokens/legacy-2017/tokens/components/alert.json5 +83 -0
- package/design-tokens/legacy-2017/tokens/components/autocomplete.json5 +11 -0
- package/design-tokens/legacy-2017/tokens/components/badge.json5 +174 -0
- package/design-tokens/legacy-2017/tokens/components/button-toggle.json5 +10 -0
- package/design-tokens/legacy-2017/tokens/components/button.json5 +142 -0
- package/design-tokens/legacy-2017/tokens/components/card.json5 +51 -0
- package/design-tokens/legacy-2017/tokens/components/checkbox.json5 +39 -0
- package/design-tokens/legacy-2017/tokens/components/datepicker.json5 +64 -0
- package/design-tokens/legacy-2017/tokens/components/divider.json5 +8 -0
- package/design-tokens/legacy-2017/tokens/components/dl.json5 +38 -0
- package/design-tokens/legacy-2017/tokens/components/dropdown.json5 +48 -0
- package/design-tokens/legacy-2017/tokens/components/form-field.json5 +92 -0
- package/design-tokens/legacy-2017/tokens/components/forms.json5 +52 -0
- package/design-tokens/legacy-2017/tokens/components/input.json5 +12 -0
- package/design-tokens/legacy-2017/tokens/components/link.json5 +50 -0
- package/design-tokens/legacy-2017/tokens/components/list.json5 +13 -0
- package/design-tokens/legacy-2017/tokens/components/modal.json5 +81 -0
- package/design-tokens/legacy-2017/tokens/components/navbar.json5 +70 -0
- package/design-tokens/legacy-2017/tokens/components/optgroup.json5 +10 -0
- package/design-tokens/legacy-2017/tokens/components/option.json5 +12 -0
- package/design-tokens/legacy-2017/tokens/components/popover.json5 +68 -0
- package/design-tokens/legacy-2017/tokens/components/popup.json5 +18 -0
- package/design-tokens/legacy-2017/tokens/components/progress-bar.json5 +13 -0
- package/design-tokens/legacy-2017/tokens/components/progress-spinner.json5 +7 -0
- package/design-tokens/legacy-2017/tokens/components/radio.json5 +44 -0
- package/design-tokens/legacy-2017/tokens/components/select.json5 +24 -0
- package/design-tokens/legacy-2017/tokens/components/sidepanel.json5 +32 -0
- package/design-tokens/legacy-2017/tokens/components/table.json5 +15 -0
- package/design-tokens/legacy-2017/tokens/components/tabs.json5 +101 -0
- package/design-tokens/legacy-2017/tokens/components/tags.json5 +131 -0
- package/design-tokens/legacy-2017/tokens/components/textarea.json5 +12 -0
- package/design-tokens/legacy-2017/tokens/components/timepicker.json5 +7 -0
- package/design-tokens/legacy-2017/tokens/components/toggle.json5 +79 -0
- package/design-tokens/legacy-2017/tokens/components/tooltip.json5 +83 -0
- package/design-tokens/legacy-2017/tokens/components/tree.json5 +15 -0
- package/design-tokens/legacy-2017/tokens/properties/aliases.json5 +3 -0
- package/design-tokens/legacy-2017/tokens/properties/colors.json5 +114 -0
- package/design-tokens/legacy-2017/tokens/properties/font.json5 +12 -0
- package/design-tokens/legacy-2017/tokens/properties/globals.json5 +49 -0
- package/design-tokens/legacy-2017/tokens/properties/padding.json5 +3 -0
- package/design-tokens/legacy-2017/tokens/properties/palette.json5 +163 -0
- package/design-tokens/legacy-2017/tokens/properties/typography.json5 +175 -0
- package/design-tokens/pt-2022/tokens/components/alert.json5 +83 -0
- package/design-tokens/pt-2022/tokens/components/autocomplete.json5 +11 -0
- package/design-tokens/pt-2022/tokens/components/badge.json5 +174 -0
- package/design-tokens/pt-2022/tokens/components/button-toggle.json5 +10 -0
- package/design-tokens/pt-2022/tokens/components/button.json5 +142 -0
- package/design-tokens/pt-2022/tokens/components/card.json5 +51 -0
- package/design-tokens/pt-2022/tokens/components/checkbox.json5 +39 -0
- package/design-tokens/pt-2022/tokens/components/datepicker.json5 +64 -0
- package/design-tokens/pt-2022/tokens/components/divider.json5 +8 -0
- package/design-tokens/pt-2022/tokens/components/dl.json5 +38 -0
- package/design-tokens/pt-2022/tokens/components/dropdown.json5 +48 -0
- package/design-tokens/pt-2022/tokens/components/form-field.json5 +92 -0
- package/design-tokens/pt-2022/tokens/components/forms.json5 +52 -0
- package/design-tokens/pt-2022/tokens/components/input.json5 +12 -0
- package/design-tokens/pt-2022/tokens/components/link.json5 +50 -0
- package/design-tokens/pt-2022/tokens/components/list.json5 +13 -0
- package/design-tokens/pt-2022/tokens/components/modal.json5 +81 -0
- package/design-tokens/pt-2022/tokens/components/navbar.json5 +70 -0
- package/design-tokens/pt-2022/tokens/components/optgroup.json5 +10 -0
- package/design-tokens/pt-2022/tokens/components/option.json5 +12 -0
- package/design-tokens/pt-2022/tokens/components/popover.json5 +68 -0
- package/design-tokens/pt-2022/tokens/components/popup.json5 +18 -0
- package/design-tokens/pt-2022/tokens/components/progress-bar.json5 +13 -0
- package/design-tokens/pt-2022/tokens/components/progress-spinner.json5 +7 -0
- package/design-tokens/pt-2022/tokens/components/radio.json5 +44 -0
- package/design-tokens/pt-2022/tokens/components/select.json5 +24 -0
- package/design-tokens/pt-2022/tokens/components/sidepanel.json5 +32 -0
- package/design-tokens/pt-2022/tokens/components/table.json5 +15 -0
- package/design-tokens/pt-2022/tokens/components/tabs.json5 +101 -0
- package/design-tokens/pt-2022/tokens/components/tags.json5 +131 -0
- package/design-tokens/pt-2022/tokens/components/textarea.json5 +12 -0
- package/design-tokens/pt-2022/tokens/components/timepicker.json5 +7 -0
- package/design-tokens/pt-2022/tokens/components/toggle.json5 +79 -0
- package/design-tokens/pt-2022/tokens/components/tooltip.json5 +83 -0
- package/design-tokens/pt-2022/tokens/components/tree.json5 +15 -0
- package/design-tokens/pt-2022/tokens/properties/aliases.json5 +3 -0
- package/design-tokens/pt-2022/tokens/properties/colors.json5 +116 -0
- package/design-tokens/pt-2022/tokens/properties/font.json5 +15 -0
- package/design-tokens/pt-2022/tokens/properties/globals.json5 +49 -0
- package/design-tokens/pt-2022/tokens/properties/padding.json5 +3 -0
- package/design-tokens/pt-2022/tokens/properties/palette.json5 +226 -0
- package/design-tokens/pt-2022/tokens/properties/typography.json5 +175 -0
- package/design-tokens/style-dictionary/build.js +62 -0
- package/design-tokens/style-dictionary/configs/css.js +13 -0
- package/design-tokens/style-dictionary/configs/index.js +48 -0
- package/design-tokens/style-dictionary/configs/js.js +9 -0
- package/design-tokens/style-dictionary/configs/scss.js +23 -0
- package/design-tokens/style-dictionary/filters/color.js +7 -0
- package/design-tokens/style-dictionary/filters/palette.js +7 -0
- package/design-tokens/style-dictionary/filters/size.js +7 -0
- package/design-tokens/style-dictionary/filters/typography.js +7 -0
- package/design-tokens/style-dictionary/formats/palette.js +25 -0
- package/design-tokens/style-dictionary/formats/typography.js +52 -0
- package/design-tokens/style-dictionary/transformGroups/css.js +13 -0
- package/design-tokens/style-dictionary/transformGroups/scss.js +12 -0
- package/design-tokens/style-dictionary/transforms/attribute/palette.js +9 -0
- package/design-tokens/style-dictionary/transforms/attribute/prefix.js +11 -0
- package/design-tokens/style-dictionary/transforms/attribute/size.js +8 -0
- package/design-tokens/style-dictionary/transforms/attribute/typography.js +9 -0
- package/package.json +4 -4
@@ -0,0 +1,101 @@
|
|
1
|
+
{
|
2
|
+
tabs: {
|
3
|
+
'light-color-scheme': {
|
4
|
+
border: { value: '{light-color-scheme.second.palette.value.300}' },
|
5
|
+
|
6
|
+
state: {
|
7
|
+
normal: {
|
8
|
+
icon: { value: '{light-color-scheme.foreground.icon}' },
|
9
|
+
text: { value: '{light-color-scheme.foreground.text}' }
|
10
|
+
},
|
11
|
+
hover: {
|
12
|
+
icon: { value: '{light-color-scheme.foreground.text}' },
|
13
|
+
text: { value: '{light-color-scheme.foreground.text}' }
|
14
|
+
},
|
15
|
+
active: {
|
16
|
+
'marker-color': { value: '{light-color-scheme.primary.default}' }
|
17
|
+
},
|
18
|
+
empty: {
|
19
|
+
icon: { value: '{light-color-scheme.foreground.text-disabled}' },
|
20
|
+
text: { value: '{light-color-scheme.foreground.text-disabled}' }
|
21
|
+
},
|
22
|
+
disabled: {
|
23
|
+
icon: { value: '{light-color-scheme.foreground.text-disabled}' },
|
24
|
+
text: { value: '{light-color-scheme.foreground.text-disabled}' },
|
25
|
+
'marker-opacity': { value: '0.3' }
|
26
|
+
}
|
27
|
+
}
|
28
|
+
},
|
29
|
+
'dark-color-scheme': {
|
30
|
+
border: { value: '{dark-color-scheme.second.palette.value.300}' },
|
31
|
+
|
32
|
+
state: {
|
33
|
+
normal: {
|
34
|
+
icon: { value: '{dark-color-scheme.foreground.icon}' },
|
35
|
+
text: { value: '{dark-color-scheme.foreground.text}' }
|
36
|
+
},
|
37
|
+
hover: {
|
38
|
+
icon: { value: '{dark-color-scheme.foreground.text}' },
|
39
|
+
text: { value: '{dark-color-scheme.foreground.text}' }
|
40
|
+
},
|
41
|
+
active: {
|
42
|
+
'marker-color': { value: '{dark-color-scheme.primary.default}' }
|
43
|
+
},
|
44
|
+
empty: {
|
45
|
+
icon: { value: '{dark-color-scheme.foreground.text-disabled}' },
|
46
|
+
text: { value: '{dark-color-scheme.foreground.text-disabled}' }
|
47
|
+
},
|
48
|
+
disabled: {
|
49
|
+
icon: { value: '{dark-color-scheme.foreground.text-disabled}' },
|
50
|
+
text: { value: '{dark-color-scheme.foreground.text-disabled}' },
|
51
|
+
'marker-opacity': { value: '0.3' }
|
52
|
+
}
|
53
|
+
}
|
54
|
+
},
|
55
|
+
size: {
|
56
|
+
height: { value: '40px' },
|
57
|
+
'highlight-height': { value: '4px' },
|
58
|
+
'padding-horizontal': { value: '16px' },
|
59
|
+
'border-width': { value: '1px' },
|
60
|
+
'border-radius': { value: '3px' },
|
61
|
+
'label-icon-margin': { value: '{margin.iconText_M-horizontal}' }
|
62
|
+
},
|
63
|
+
font: {
|
64
|
+
default: { value: 'body' }
|
65
|
+
}
|
66
|
+
},
|
67
|
+
'vertical-tabs': {
|
68
|
+
'light-color-scheme': {
|
69
|
+
state: {
|
70
|
+
normal: {
|
71
|
+
background: { value: 'transparent' },
|
72
|
+
},
|
73
|
+
selected: {
|
74
|
+
background: { value: '{light-color-scheme.states.selected-color}' },
|
75
|
+
},
|
76
|
+
hover: {
|
77
|
+
background: { value: '{light-color-scheme.background.overlay-hover}' },
|
78
|
+
},
|
79
|
+
'hover-selected': {
|
80
|
+
background: { value: 'adjust-color({light-color-scheme.states.selected-color}, $saturation:-22%, $lightness:-5%)' },
|
81
|
+
}
|
82
|
+
}
|
83
|
+
},
|
84
|
+
'dark-color-scheme': {
|
85
|
+
state: {
|
86
|
+
normal: {
|
87
|
+
background: { value: 'transparent' },
|
88
|
+
},
|
89
|
+
selected: {
|
90
|
+
background: { value: '{dark-color-scheme.states.selected-color}' },
|
91
|
+
},
|
92
|
+
hover: {
|
93
|
+
background: { value: '{dark-color-scheme.background.overlay-hover}' },
|
94
|
+
},
|
95
|
+
'hover-selected': {
|
96
|
+
background: { value: 'adjust-color({dark-color-scheme.states.selected-color}, $lightness:-1%)' },
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
@@ -0,0 +1,131 @@
|
|
1
|
+
{
|
2
|
+
tags: {
|
3
|
+
'light-color-scheme': {
|
4
|
+
primary: {
|
5
|
+
background: { value: '{light-color-scheme.primary.palette.value.100}' },
|
6
|
+
border: { value: '{light-color-scheme.primary.palette.value.100}' },
|
7
|
+
text: { value: '{light-color-scheme.primary.default}' },
|
8
|
+
icon: { value: 'mix({light-color-scheme.primary.palette.value.400}, {light-color-scheme.background.overlay-hover})' },
|
9
|
+
states: {
|
10
|
+
hover: {
|
11
|
+
icon: { value: '{light-color-scheme.primary.palette.value.600}' }
|
12
|
+
},
|
13
|
+
focused:{ value: '{light-color-scheme.primary.palette.value.500}' },
|
14
|
+
disabled: {
|
15
|
+
text: { value: 'mix({light-color-scheme.primary.palette.value.500}, transparent, 50%)' },
|
16
|
+
background: { value: 'mix({light-color-scheme.primary.palette.value.500}, transparent, 10%)' }
|
17
|
+
}
|
18
|
+
}
|
19
|
+
},
|
20
|
+
second: {
|
21
|
+
background: { value: '{light-color-scheme.second.palette.value.100}' },
|
22
|
+
border: { value: '{light-color-scheme.second.palette.value.100}' },
|
23
|
+
text: { value: '{light-color-scheme.foreground.text}' },
|
24
|
+
icon: { value: 'mix({light-color-scheme.second.palette.value.400}, {light-color-scheme.background.overlay-hover})' },
|
25
|
+
states: {
|
26
|
+
hover: {
|
27
|
+
icon: { value: '{light-color-scheme.second.palette.value.400}' }
|
28
|
+
},
|
29
|
+
focused: { value: '{light-color-scheme.primary.palette.value.500}' },
|
30
|
+
disabled: {
|
31
|
+
text: { value: 'mix({light-color-scheme.second.palette.value.300}, transparent, 50%)' },
|
32
|
+
background: { value: 'mix({light-color-scheme.second.palette.value.300}, transparent, 10%)' }
|
33
|
+
}
|
34
|
+
}
|
35
|
+
},
|
36
|
+
error: {
|
37
|
+
background: { value: '{light-color-scheme.error.palette.value.100}' },
|
38
|
+
border: { value: '{light-color-scheme.error.palette.value.100}' },
|
39
|
+
text: { value: '{light-color-scheme.error.default}' },
|
40
|
+
icon: { value: 'mix({light-color-scheme.error.palette.value.400}, {light-color-scheme.background.overlay-hover})' },
|
41
|
+
states: {
|
42
|
+
hover: {
|
43
|
+
icon: { value: '{light-color-scheme.error.palette.value.500}' }
|
44
|
+
},
|
45
|
+
focused: { value: '{light-color-scheme.error.palette.value.400}' },
|
46
|
+
disabled: {
|
47
|
+
text: { value: 'mix({light-color-scheme.error.palette.value.400}, transparent, 50%)' },
|
48
|
+
background: { value: 'mix({light-color-scheme.error.palette.value.400}, transparent, 10%)' }
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
},
|
53
|
+
'dark-color-scheme': {
|
54
|
+
primary: {
|
55
|
+
background: { value: '{dark-color-scheme.primary.palette.value.700}' },
|
56
|
+
border: { value: '{dark-color-scheme.primary.palette.value.700}' },
|
57
|
+
text: { value: '{dark-color-scheme.primary.palette.value.200}' },
|
58
|
+
icon: { value: 'mix({dark-color-scheme.primary.palette.value.400}, {dark-color-scheme.background.overlay-hover})' },
|
59
|
+
states: {
|
60
|
+
hover: {
|
61
|
+
icon: { value: '{dark-color-scheme.primary.palette.value.500}' }
|
62
|
+
},
|
63
|
+
focused: { value: '{dark-color-scheme.primary.palette.value.400}' },
|
64
|
+
disabled: {
|
65
|
+
text: { value: 'mix({dark-color-scheme.primary.palette.value.400}, transparent, 50%)' },
|
66
|
+
background: { value: 'mix({dark-color-scheme.primary.palette.value.400}, transparent, 10%)' }
|
67
|
+
}
|
68
|
+
}
|
69
|
+
},
|
70
|
+
second: {
|
71
|
+
background: { value: '{dark-color-scheme.second.palette.value.700}' },
|
72
|
+
border: { value: '{dark-color-scheme.second.palette.value.700}' },
|
73
|
+
text: { value: '{dark-color-scheme.second.palette.value.200}' },
|
74
|
+
icon: { value: 'mix({dark-color-scheme.second.palette.value.400}, {dark-color-scheme.background.overlay-hover})' },
|
75
|
+
states: {
|
76
|
+
hover: {
|
77
|
+
icon: { value: '{dark-color-scheme.second.palette.value.100}' }
|
78
|
+
},
|
79
|
+
focused: { value: '{dark-color-scheme.primary.palette.value.400}' },
|
80
|
+
disabled: {
|
81
|
+
text: { value: 'mix({dark-color-scheme.second.palette.value.400}, transparent, 50%)' },
|
82
|
+
background: { value: 'mix({dark-color-scheme.second.palette.value.400}, transparent, 10%)' }
|
83
|
+
}
|
84
|
+
}
|
85
|
+
},
|
86
|
+
error: {
|
87
|
+
background: { value: '{dark-color-scheme.error.palette.value.700}' },
|
88
|
+
border: { value: '{dark-color-scheme.error.palette.value.700}' },
|
89
|
+
text: { value: '{dark-color-scheme.error.palette.value.200}' },
|
90
|
+
icon: { value: 'mix({dark-color-scheme.error.palette.value.400}, {dark-color-scheme.background.overlay-hover})' },
|
91
|
+
states: {
|
92
|
+
hover: {
|
93
|
+
icon: { value: '{dark-color-scheme.error.palette.value.200}' }
|
94
|
+
},
|
95
|
+
focused: { value: '{dark-color-scheme.error.palette.value.400}' },
|
96
|
+
disabled: {
|
97
|
+
text: { value: 'mix({dark-color-scheme.error.palette.value.400}, transparent, 50%)' },
|
98
|
+
background: { value: 'mix({dark-color-scheme.error.palette.value.400}, transparent, 10%)' }
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
},
|
103
|
+
size: {
|
104
|
+
margin: { value: '2px' },
|
105
|
+
height: { value: '{size.badge_tag-height}' },
|
106
|
+
'border-width': { value: '1px' },
|
107
|
+
'border-radius': { value: '4px' },
|
108
|
+
'icon-padding': { value: '{size.xxs}' },
|
109
|
+
'text-margin': { value: '{padding.badge_tag-horizontal}' }
|
110
|
+
},
|
111
|
+
font: {
|
112
|
+
default: { value: 'caption' },
|
113
|
+
mono: { value: 'caption-mono' },
|
114
|
+
caps: { value: 'caption-caps' }
|
115
|
+
}
|
116
|
+
},
|
117
|
+
'tag-list': {
|
118
|
+
size: {
|
119
|
+
padding: { value: '1px 6px' },
|
120
|
+
}
|
121
|
+
},
|
122
|
+
'tag-input': {
|
123
|
+
size: {
|
124
|
+
height: { value: '22px' },
|
125
|
+
margin: { value: '2px 4px' }
|
126
|
+
},
|
127
|
+
font: {
|
128
|
+
default: { value: 'body' }
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
{
|
2
|
+
toggle: {
|
3
|
+
'light-color-scheme': {
|
4
|
+
border: { value: '{light-color-scheme.foreground.border}' },
|
5
|
+
background: {
|
6
|
+
value: 'linear-gradient(to bottom, {light-color-scheme.second.palette.value.100}, {light-color-scheme.background.background-disabled})'
|
7
|
+
},
|
8
|
+
'circle-border': { value: '{light-color-scheme.foreground.border}' },
|
9
|
+
'circle-background': { value: 'linear-gradient(to bottom, white, {light-color-scheme.second.palette.value.100})' },
|
10
|
+
|
11
|
+
states: {
|
12
|
+
focused: {
|
13
|
+
shadow: {
|
14
|
+
value: 'inset 0 0 0 1px {light-color-scheme.background.background}, 0 0 0 2px {light-color-scheme.primary.palette.value.500}'
|
15
|
+
}
|
16
|
+
}
|
17
|
+
},
|
18
|
+
primary: {
|
19
|
+
checked: {
|
20
|
+
'border-color': { value: '{light-color-scheme.primary.default}'},
|
21
|
+
background: { value: '{light-color-scheme.primary.default}'}
|
22
|
+
}
|
23
|
+
},
|
24
|
+
error: {
|
25
|
+
checked: {
|
26
|
+
'border-color': { value: '{light-color-scheme.error.default}'},
|
27
|
+
background: { value: '{light-color-scheme.error.default}'}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
},
|
31
|
+
'dark-color-scheme': {
|
32
|
+
border: { value: '{dark-color-scheme.foreground.border}' },
|
33
|
+
background: {
|
34
|
+
value: '{dark-color-scheme.background.background}'
|
35
|
+
},
|
36
|
+
'circle-border': { value: '{dark-color-scheme.foreground.border}' },
|
37
|
+
'circle-background': { value: 'white' },
|
38
|
+
|
39
|
+
states: {
|
40
|
+
focused: {
|
41
|
+
shadow: {
|
42
|
+
value: 'inset 0 0 0 1px {dark-color-scheme.background.background}, 0 0 0 2px {dark-color-scheme.primary.palette.value.400}'
|
43
|
+
}
|
44
|
+
}
|
45
|
+
},
|
46
|
+
primary: {
|
47
|
+
checked: {
|
48
|
+
'border-color': { value: '{dark-color-scheme.primary.default}'},
|
49
|
+
background: { value: '{dark-color-scheme.primary.default}'}
|
50
|
+
}
|
51
|
+
},
|
52
|
+
error: {
|
53
|
+
checked: {
|
54
|
+
'border-color': { value: '{dark-color-scheme.error.default}'},
|
55
|
+
background: { value: '{dark-color-scheme.error.default}'}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
},
|
59
|
+
size: {
|
60
|
+
height: { value: '16px' },
|
61
|
+
width: { value: '28px' },
|
62
|
+
'border-radius': { value: '9px' },
|
63
|
+
'label-margin': { value: '{margin.iconText_M-horizontal}' }
|
64
|
+
},
|
65
|
+
font: {
|
66
|
+
default: { value: 'body' }
|
67
|
+
}
|
68
|
+
},
|
69
|
+
'toggle-small': {
|
70
|
+
size: {
|
71
|
+
height: { value: '14px' },
|
72
|
+
width: { value: '24px' },
|
73
|
+
'border-radius': { value: '8px' }
|
74
|
+
},
|
75
|
+
font: {
|
76
|
+
default: { value: 'caption' }
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
{
|
2
|
+
tooltip: {
|
3
|
+
'light-color-scheme': {
|
4
|
+
background: { value: '{light-color-scheme.second.palette.value.700}' },
|
5
|
+
text: { value: '{light-color-scheme.second.palette.value.contrast.700}' },
|
6
|
+
border: { value: 'transparent' },
|
7
|
+
shadow: { value: '0 2px 4px 0 rgba(0, 0, 0, 0.2)' },
|
8
|
+
|
9
|
+
'warning': {
|
10
|
+
background: { value: '{light-color-scheme.warning.palette.value.60}' },
|
11
|
+
text: { value: '{light-color-scheme.second.palette.value.700}' },
|
12
|
+
border: { value: '{light-color-scheme.warning.palette.value.200}' }
|
13
|
+
}
|
14
|
+
},
|
15
|
+
'dark-color-scheme': {
|
16
|
+
background: { value: '{dark-color-scheme.second.palette.value.40}' },
|
17
|
+
text: { value: '{dark-color-scheme.second.palette.value.contrast.40}' },
|
18
|
+
border: { value: 'transparent' },
|
19
|
+
shadow: { value: '0 2px 4px 0 rgba(0, 0, 0, 0.2)' },
|
20
|
+
|
21
|
+
'warning': {
|
22
|
+
background: { value: '{dark-color-scheme.warning.palette.value.60}' },
|
23
|
+
text: { value: '{dark-color-scheme.second.palette.value.700}' },
|
24
|
+
border: { value: '{dark-color-scheme.warning.palette.value.200}' }
|
25
|
+
}
|
26
|
+
},
|
27
|
+
size: {
|
28
|
+
'max-width': { value: '300px' },
|
29
|
+
'border-width': { value: '1px' },
|
30
|
+
'border-radius': { value: '3px' },
|
31
|
+
padding: { value: '8px 16px' },
|
32
|
+
'arrow-size': { value: '12px' },
|
33
|
+
'trigger-margin': { value: '9px' }
|
34
|
+
},
|
35
|
+
font: {
|
36
|
+
default: { value: 'caption' }
|
37
|
+
}
|
38
|
+
},
|
39
|
+
'extended-tooltip': {
|
40
|
+
'light-color-scheme': {
|
41
|
+
background: { value: '{popup.light-color-scheme.background}' },
|
42
|
+
text: { value: '{light-color-scheme.foreground.text}' },
|
43
|
+
border: { value: '{popup.light-color-scheme.border}' },
|
44
|
+
shadow: { value: '0 2px 4px 0 rgba(0, 0, 0, 0.2)' }
|
45
|
+
},
|
46
|
+
'dark-color-scheme': {
|
47
|
+
background: { value: '{popup.dark-color-scheme.background}' },
|
48
|
+
text: { value: '{dark-color-scheme.foreground.text}' },
|
49
|
+
border: { value: '{popup.dark-color-scheme.border}' },
|
50
|
+
shadow: { value: '0 2px 4px 0 rgba(0, 0, 0, 0.2)' }
|
51
|
+
},
|
52
|
+
size: {
|
53
|
+
'border-radius': { value: '3px' },
|
54
|
+
'arrow-size': { value: '12px' },
|
55
|
+
'trigger-margin': { value: '9px' },
|
56
|
+
padding: { value: '8px 16px' },
|
57
|
+
'max-height': { value: '480px' }
|
58
|
+
},
|
59
|
+
font: {
|
60
|
+
default: { value: 'caption' }
|
61
|
+
}
|
62
|
+
},
|
63
|
+
'extended-tooltip-header': {
|
64
|
+
'light-color-scheme': {
|
65
|
+
border: { value: '{light-color-scheme.second.palette.value.100}' },
|
66
|
+
text: { value: '{light-color-scheme.foreground.text}' },
|
67
|
+
background: { value: 'white' }
|
68
|
+
},
|
69
|
+
'dark-color-scheme': {
|
70
|
+
border: { value: '{light-color-scheme.second.palette.value.60}' },
|
71
|
+
text: { value: '{dark-color-scheme.foreground.text}' },
|
72
|
+
background: { value: '{light-color-scheme.second.palette.value.700}' }
|
73
|
+
},
|
74
|
+
size: {
|
75
|
+
height: { value: '40px' },
|
76
|
+
padding: { value: '10px 16px' }
|
77
|
+
},
|
78
|
+
font: {
|
79
|
+
default: { value: 'subheading' }
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
tree: {
|
3
|
+
size: {
|
4
|
+
'node-height': { value: '32px' },
|
5
|
+
|
6
|
+
'padding-left': { value: '{size.m}' },
|
7
|
+
'toggle-padding': { value: '{size.xxs}' },
|
8
|
+
'icon-padding': { value: '{size.s}' },
|
9
|
+
'padding-right': { value: '{size.l}' }
|
10
|
+
},
|
11
|
+
font: {
|
12
|
+
node: { value: 'body' }
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,114 @@
|
|
1
|
+
{
|
2
|
+
'light-color-scheme': {
|
3
|
+
primary: {
|
4
|
+
default: { value: '{palette.blue.500}' },
|
5
|
+
|
6
|
+
palette: { value: '{palette.blue}' }
|
7
|
+
},
|
8
|
+
second: {
|
9
|
+
default: { value: '{palette.grey.300}' },
|
10
|
+
|
11
|
+
palette: { value: '{palette.grey}' }
|
12
|
+
},
|
13
|
+
error: {
|
14
|
+
default: { value: '{palette.red.400}' },
|
15
|
+
|
16
|
+
palette: { value: '{palette.red}' }
|
17
|
+
},
|
18
|
+
info: {
|
19
|
+
default: { value: '{palette.blue.200}' },
|
20
|
+
|
21
|
+
palette: { value: '{palette.blue}' }
|
22
|
+
},
|
23
|
+
success: {
|
24
|
+
default: { value: '{palette.green.200}' },
|
25
|
+
|
26
|
+
palette: { value: '{palette.green}' }
|
27
|
+
},
|
28
|
+
warning: {
|
29
|
+
default: { value: '{palette.yellow.200}' },
|
30
|
+
|
31
|
+
palette: { value: '{palette.yellow}' }
|
32
|
+
},
|
33
|
+
foreground: {
|
34
|
+
text: { value: '{palette.grey.700}' },
|
35
|
+
'text-less-contrast': { value: '{palette.grey.400}'},
|
36
|
+
'text-disabled': { value: '{palette.grey.300}' },
|
37
|
+
'text-error': { value: '{light-color-scheme.error.palette.value.500}' },
|
38
|
+
'text-success': { value: '{light-color-scheme.success.palette.value.560}' },
|
39
|
+
divider: { value: '{palette.grey.100}' },
|
40
|
+
border: { value: '{palette.grey.300}' },
|
41
|
+
icon: { value: '{palette.grey.400}' }
|
42
|
+
},
|
43
|
+
background: {
|
44
|
+
background: { value: 'white' },
|
45
|
+
'background-disabled': { value: '{palette.grey.60}' },
|
46
|
+
|
47
|
+
'overlay-hover': { value: 'rgba(black, 0.05)' },
|
48
|
+
'overlay-active': { value: 'rgba(black, 0.1)' },
|
49
|
+
'overlay-disabled': { value: 'rgba(white, 0.3)' }
|
50
|
+
},
|
51
|
+
states: {
|
52
|
+
'focused-color': { value: '{light-color-scheme.primary.palette.value.500}' },
|
53
|
+
'selected-color': { value: '{light-color-scheme.primary.palette.value.100}' },
|
54
|
+
'pressed-shadow': { value: 'inset 0 1px 2px 0 rgba(black, 0.2)' },
|
55
|
+
'disabled-opacity': { value: 0.3 }
|
56
|
+
}
|
57
|
+
},
|
58
|
+
'dark-color-scheme': {
|
59
|
+
primary: {
|
60
|
+
default: { value: '{palette.blue.400}' },
|
61
|
+
|
62
|
+
palette: { value: '{palette.blue}' }
|
63
|
+
},
|
64
|
+
second: {
|
65
|
+
default: { value: '{palette.grey.400}' },
|
66
|
+
|
67
|
+
palette: { value: '{palette.grey}' }
|
68
|
+
},
|
69
|
+
error: {
|
70
|
+
default: { value: '{palette.red.400}' },
|
71
|
+
|
72
|
+
palette: { value: '{palette.red}' }
|
73
|
+
},
|
74
|
+
info: {
|
75
|
+
default: { value: '{palette.blue.400}' },
|
76
|
+
|
77
|
+
palette: { value: '{palette.blue}' }
|
78
|
+
},
|
79
|
+
success: {
|
80
|
+
default: { value: '{palette.green.400}' },
|
81
|
+
|
82
|
+
palette: { value: '{palette.green}' }
|
83
|
+
},
|
84
|
+
warning: {
|
85
|
+
default: { value: '{palette.yellow.400}' },
|
86
|
+
|
87
|
+
palette: { value: '{palette.yellow}' }
|
88
|
+
},
|
89
|
+
foreground: {
|
90
|
+
text: { value: '{palette.grey.60}' },
|
91
|
+
'text-less-contrast': { value: '{palette.grey.400}'},
|
92
|
+
'text-disabled': { value: '{palette.grey.400}' },
|
93
|
+
'text-error': { value: '{dark-color-scheme.error.palette.value.400}' },
|
94
|
+
'text-success': { value: '{dark-color-scheme.success.palette.value.400}' },
|
95
|
+
divider: { value: '{palette.grey.600}' },
|
96
|
+
border: { value: '{palette.grey.500}' },
|
97
|
+
icon: { value: '{palette.grey.400}' }
|
98
|
+
},
|
99
|
+
background: {
|
100
|
+
background: { value: '{palette.grey.800}' },
|
101
|
+
'background-disabled': { value: '{palette.grey.600}' },
|
102
|
+
|
103
|
+
'overlay-hover': { value: 'rgba(black, 0.05)' },
|
104
|
+
'overlay-active': { value: 'rgba(black, 0.1)' },
|
105
|
+
'overlay-disabled': { value: 'rgba(white, 0.2)' }
|
106
|
+
},
|
107
|
+
states: {
|
108
|
+
'focused-color': { value: '{dark-color-scheme.primary.palette.value.400}' },
|
109
|
+
'selected-color': { value: '{dark-color-scheme.primary.palette.value.700}' },
|
110
|
+
'pressed-shadow': { value: 'inset 1px 2px 2px 0 rgba(black, 0.2)' },
|
111
|
+
'disabled-opacity': { value: 0.3 }
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
{
|
2
|
+
size: {
|
3
|
+
'3xs': { value: '2px' },
|
4
|
+
'xxs': { value: '4px' },
|
5
|
+
'xs': { value: '6px' },
|
6
|
+
's': { value: '8px' },
|
7
|
+
'm': { value: '12px' },
|
8
|
+
'l': { value: '16px' },
|
9
|
+
'xl': { value: '20px' },
|
10
|
+
'xxl': { value: '24px' },
|
11
|
+
'3xl': { value: '32px' },
|
12
|
+
'4xl': { value: '40px' },
|
13
|
+
'5xl': { value: '48px' },
|
14
|
+
'6xl': { value: '56px' },
|
15
|
+
'7xl': { value: '64px' },
|
16
|
+
|
17
|
+
'border-width': '1px',
|
18
|
+
'border-radius': '3px',
|
19
|
+
|
20
|
+
// this will be deleted
|
21
|
+
'option-height': '32px',
|
22
|
+
'panel-height': '48px',
|
23
|
+
// у radio и checkbox в макетах 20px, у тоггла есть две модификации на 16px и 14px
|
24
|
+
'control_S-height': '16px',
|
25
|
+
// в form-field это реализовано через отступы
|
26
|
+
'control_M-height': '32px',
|
27
|
+
// этого нет сейчас
|
28
|
+
'button-minWidth': '64px',
|
29
|
+
// badge на padding
|
30
|
+
'badge_tag-height': '24px',
|
31
|
+
// modal; sidepanel - сейчас в этих компонентах paddings
|
32
|
+
'header-height': '56px',
|
33
|
+
'footer-height': '64px',
|
34
|
+
// this will be deleted
|
35
|
+
},
|
36
|
+
padding: {
|
37
|
+
'control-horizontal': '16px',
|
38
|
+
'option-horizontal': '16px',
|
39
|
+
'badge_tag-horizontal': '8px',
|
40
|
+
'header-right': '8px',
|
41
|
+
'headerFooter-horizontal': '16px',
|
42
|
+
},
|
43
|
+
margin: {
|
44
|
+
// у radio-group нет таких отступов, а у checkbox вообще нет группы
|
45
|
+
'controlGroup_S-vertical': '8px',
|
46
|
+
'iconText_M-horizontal': '8px',
|
47
|
+
'iconText_S-horizontal': '4px'
|
48
|
+
}
|
49
|
+
}
|