colibri-ui 0.8.65 → 0.8.67
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/Accordion/Accordion.module.css +8 -7
- package/Accordion/index.js +1 -1
- package/Avatar/Avatar.module.css +50 -33
- package/Avatar/index.js +74 -37
- package/Badge/Badge.module.css +7 -7
- package/Badge/index.js +3 -9
- package/Badge/index.props.d.ts +0 -2
- package/Button/Button.module.css +95 -135
- package/Calendar/components/Month/Month.js +3 -5
- package/Calendar/components/Month/index.module.css +20 -19
- package/Calendar/components/Presets/index.module.css +4 -4
- package/Calendar/index.module.css +26 -23
- package/Calendar/utils/getPresets.js +2 -2
- package/Card/Card.d.ts +25 -0
- package/Card/Card.js +70 -0
- package/Card/Card.module.css +90 -0
- package/Card/index.d.ts +2 -0
- package/Card/index.js +9 -0
- package/Card/package.json +6 -0
- package/Checkbox/Checkbox.module.css +38 -28
- package/Checkbox/index.js +1 -0
- package/Chip/Chip.module.css +34 -24
- package/CodeField/CodeField.d.ts +29 -0
- package/CodeField/CodeField.js +316 -0
- package/CodeField/CodeField.module.css +211 -0
- package/CodeField/index.d.ts +2 -0
- package/CodeField/index.js +13 -0
- package/CodeField/package.json +6 -0
- package/Counter/Counter.module.css +11 -10
- package/Datepicker/Datepicker.module.css +1 -1
- package/Datepicker/components/DatePicker/index.module.css +22 -16
- package/Datepicker/components/TimePicker/index.module.css +21 -15
- package/DotsLoader/DotsLoader.module.css +5 -5
- package/DotsLoader/index.d.ts +1 -3
- package/DotsLoader/index.js +1 -14
- package/Drawer/Drawer.d.ts +43 -0
- package/Drawer/Drawer.js +227 -0
- package/Drawer/Drawer.module.css +280 -0
- package/Drawer/index.d.ts +2 -0
- package/Drawer/index.js +10 -0
- package/Drawer/package.json +6 -0
- package/Dropdown/Dropdown.module.css +6 -6
- package/Dropdown/index.js +26 -17
- package/Dropdown/index.props.d.ts +7 -6
- package/Dropzone/Dropzone.d.ts +30 -0
- package/Dropzone/Dropzone.js +258 -0
- package/Dropzone/Dropzone.module.css +164 -0
- package/Dropzone/index.d.ts +2 -0
- package/Dropzone/index.js +7 -0
- package/Dropzone/package.json +6 -0
- package/Editable/Editable.d.ts +18 -0
- package/Editable/Editable.js +166 -0
- package/Editable/Editable.module.css +61 -0
- package/Editable/index.d.ts +2 -0
- package/Editable/index.js +10 -0
- package/Editable/package.json +6 -0
- package/Grid/Grid.module.css +2 -2
- package/Grid/Item/Grid-Item.module.css +3 -3
- package/Grid/index.js +9 -6
- package/Grid/index.props.d.ts +4 -3
- package/Icons/Check.js +1 -1
- package/InputRadio/InputRadio.module.css +37 -34
- package/Menu/Menu.module.css +2 -2
- package/Menu/components/MenuItem/MenuItem.module.css +8 -8
- package/Modal/Modal.module.css +11 -11
- package/Modal/components/Close/Close.module.css +1 -1
- package/Modal/components/Content/Content.module.css +1 -1
- package/MultiSelect/components/MenuOverlay/index.js +2 -4
- package/MultiSelect/components/MenuOverlay/index.module.css +3 -3
- package/MultiSelect/index.js +1 -0
- package/MultiSelect/index.module.css +5 -5
- package/Progress/Progress.d.ts +20 -0
- package/Progress/Progress.js +109 -0
- package/Progress/Progress.module.css +191 -0
- package/Progress/index.d.ts +2 -0
- package/Progress/index.js +7 -0
- package/Progress/package.json +6 -0
- package/README.md +91 -2
- package/RadioGroup/RadioGroup.module.css +4 -4
- package/Rating/Rating.d.ts +24 -0
- package/Rating/Rating.js +131 -0
- package/Rating/Rating.module.css +219 -0
- package/Rating/index.d.ts +2 -0
- package/Rating/index.js +10 -0
- package/Rating/package.json +6 -0
- package/Select/components/MenuOverlay/index.module.css +1 -1
- package/Select/index.js +1 -0
- package/Select/index.module.css +3 -3
- package/Separator/Separator.module.css +2 -2
- package/Skeleton/Skeleton.module.css +4 -4
- package/Skeleton/index.js +10 -6
- package/Skeleton/index.props.d.ts +2 -2
- package/Status/index.module.css +18 -17
- package/Switch/Switch.module.css +41 -26
- package/Switch/index.js +1 -0
- package/TabsMenu/Tab/Tab.module.css +29 -26
- package/TabsMenu/TabsMenu.module.css +1 -1
- package/TextArea/TextArea.module.css +2 -2
- package/Theme/colors/index.d.ts +190 -38
- package/Theme/colors/theme_buenos_aires.d.ts +211 -31
- package/Theme/colors/theme_buenos_aires.js +139 -34
- package/Theme/colors/theme_jaipur.d.ts +251 -0
- package/Theme/colors/theme_jaipur.js +157 -0
- package/Theme/global.css +1 -1
- package/Theme/index.d.ts +973 -13
- package/Theme/index.js +2 -2
- package/Theme/themes/buenos_aires.d.ts +476 -0
- package/Theme/themes/buenos_aires.js +626 -150
- package/Theme/themes/jaipur.d.ts +628 -0
- package/Theme/themes/jaipur.js +635 -0
- package/Tooltip/Tooltip.module.css +8 -8
- package/Tooltip/index.js +4 -3
- package/Typography/Typography.module.css +151 -26
- package/Typography/index.props.d.ts +3 -3
- package/base/BaseInput/BaseInput.module.css +2 -2
- package/base/FormField/FormField.module.css +6 -2
- package/base/FormField/index.js +1 -0
- package/base/InputRoot/InputRoot.module.css +33 -26
- package/base/InputRoot/index.d.ts +1 -1
- package/base/InputRoot/index.js +3 -2
- package/base/InputRoot/index.props.d.ts +1 -0
- package/esm/Accordion/Accordion.module.css +8 -7
- package/esm/Accordion/index.js +1 -1
- package/esm/Avatar/Avatar.module.css +50 -33
- package/esm/Avatar/index.js +74 -37
- package/esm/Badge/Badge.module.css +7 -7
- package/esm/Badge/index.js +3 -9
- package/esm/Badge/index.props.d.ts +0 -2
- package/esm/Button/Button.module.css +95 -135
- package/esm/Calendar/components/Month/Month.js +3 -5
- package/esm/Calendar/components/Month/index.module.css +20 -19
- package/esm/Calendar/components/Presets/index.module.css +4 -4
- package/esm/Calendar/index.module.css +26 -23
- package/esm/Calendar/utils/getPresets.js +2 -2
- package/esm/Card/Card.d.ts +25 -0
- package/esm/Card/Card.js +61 -0
- package/esm/Card/Card.module.css +90 -0
- package/esm/Card/index.d.ts +2 -0
- package/esm/Checkbox/Checkbox.module.css +38 -28
- package/esm/Checkbox/index.js +1 -0
- package/esm/Chip/Chip.module.css +34 -24
- package/esm/CodeField/CodeField.d.ts +29 -0
- package/esm/CodeField/CodeField.js +303 -0
- package/esm/CodeField/CodeField.module.css +211 -0
- package/esm/CodeField/index.d.ts +2 -0
- package/esm/Counter/Counter.module.css +11 -10
- package/esm/Datepicker/Datepicker.module.css +1 -1
- package/esm/Datepicker/components/DatePicker/index.module.css +22 -16
- package/esm/Datepicker/components/TimePicker/index.module.css +21 -15
- package/esm/DotsLoader/DotsLoader.module.css +5 -5
- package/esm/DotsLoader/index.d.ts +1 -3
- package/esm/DotsLoader/index.js +1 -14
- package/esm/Drawer/Drawer.d.ts +43 -0
- package/esm/Drawer/Drawer.js +216 -0
- package/esm/Drawer/Drawer.module.css +280 -0
- package/esm/Drawer/index.d.ts +2 -0
- package/esm/Dropdown/Dropdown.module.css +6 -6
- package/esm/Dropdown/index.js +27 -18
- package/esm/Dropdown/index.props.d.ts +7 -6
- package/esm/Dropzone/Dropzone.d.ts +30 -0
- package/esm/Dropzone/Dropzone.js +248 -0
- package/esm/Dropzone/Dropzone.module.css +164 -0
- package/esm/Dropzone/index.d.ts +2 -0
- package/esm/Editable/Editable.d.ts +18 -0
- package/esm/Editable/Editable.js +157 -0
- package/esm/Editable/Editable.module.css +61 -0
- package/esm/Editable/index.d.ts +2 -0
- package/esm/Grid/Grid.module.css +2 -2
- package/esm/Grid/Item/Grid-Item.module.css +3 -3
- package/esm/Grid/index.js +9 -6
- package/esm/Grid/index.props.d.ts +4 -3
- package/esm/Icons/Check.js +1 -1
- package/esm/InputRadio/InputRadio.module.css +37 -34
- package/esm/Menu/Menu.module.css +2 -2
- package/esm/Menu/components/MenuItem/MenuItem.module.css +8 -8
- package/esm/Modal/Modal.module.css +11 -11
- package/esm/Modal/components/Close/Close.module.css +1 -1
- package/esm/Modal/components/Content/Content.module.css +1 -1
- package/esm/MultiSelect/components/MenuOverlay/index.js +2 -4
- package/esm/MultiSelect/components/MenuOverlay/index.module.css +3 -3
- package/esm/MultiSelect/index.js +1 -0
- package/esm/MultiSelect/index.module.css +5 -5
- package/esm/Progress/Progress.d.ts +20 -0
- package/esm/Progress/Progress.js +102 -0
- package/esm/Progress/Progress.module.css +191 -0
- package/esm/Progress/index.d.ts +2 -0
- package/esm/RadioGroup/RadioGroup.module.css +4 -4
- package/esm/Rating/Rating.d.ts +24 -0
- package/esm/Rating/Rating.js +121 -0
- package/esm/Rating/Rating.module.css +219 -0
- package/esm/Rating/index.d.ts +2 -0
- package/esm/Select/components/MenuOverlay/index.module.css +1 -1
- package/esm/Select/index.js +1 -0
- package/esm/Select/index.module.css +3 -3
- package/esm/Separator/Separator.module.css +2 -2
- package/esm/Skeleton/Skeleton.module.css +4 -4
- package/esm/Skeleton/index.js +10 -6
- package/esm/Skeleton/index.props.d.ts +2 -2
- package/esm/Status/index.module.css +18 -17
- package/esm/Switch/Switch.module.css +41 -26
- package/esm/Switch/index.js +1 -0
- package/esm/TabsMenu/Tab/Tab.module.css +29 -26
- package/esm/TabsMenu/TabsMenu.module.css +1 -1
- package/esm/TextArea/TextArea.module.css +2 -2
- package/esm/Theme/colors/index.d.ts +190 -38
- package/esm/Theme/colors/theme_buenos_aires.d.ts +211 -31
- package/esm/Theme/colors/theme_buenos_aires.js +132 -34
- package/esm/Theme/colors/theme_jaipur.d.ts +251 -0
- package/esm/Theme/colors/theme_jaipur.js +140 -0
- package/esm/Theme/global.css +1 -1
- package/esm/Theme/index.d.ts +973 -13
- package/esm/Theme/index.js +2 -2
- package/esm/Theme/themes/buenos_aires.d.ts +476 -0
- package/esm/Theme/themes/buenos_aires.js +618 -142
- package/esm/Theme/themes/jaipur.d.ts +628 -0
- package/esm/Theme/themes/jaipur.js +631 -0
- package/esm/Tooltip/Tooltip.module.css +8 -8
- package/esm/Tooltip/index.js +4 -3
- package/esm/Typography/Typography.module.css +151 -26
- package/esm/Typography/index.props.d.ts +3 -3
- package/esm/base/BaseInput/BaseInput.module.css +2 -2
- package/esm/base/FormField/FormField.module.css +6 -2
- package/esm/base/FormField/index.js +1 -0
- package/esm/base/InputRoot/InputRoot.module.css +33 -26
- package/esm/base/InputRoot/index.d.ts +1 -1
- package/esm/base/InputRoot/index.js +3 -2
- package/esm/base/InputRoot/index.props.d.ts +1 -0
- package/esm/hooks/useOnClickOutside/index.d.ts +1 -1
- package/esm/hooks/useOnClickOutside/index.js +2 -2
- package/esm/index.d.ts +12 -0
- package/esm/index.js +7 -0
- package/esm/theme_ba_variables.css +625 -149
- package/esm/theme_jaipur_variables.css +627 -0
- package/hooks/useOnClickOutside/index.d.ts +1 -1
- package/hooks/useOnClickOutside/index.js +2 -2
- package/index.d.ts +12 -0
- package/index.js +26 -0
- package/package.json +1 -1
- package/theme_ba_variables.css +625 -149
- package/theme_jaipur_variables.css +627 -0
- package/Avatar/assets/org-circle.svg.js +0 -64
- package/Avatar/assets/user-circle.svg.js +0 -43
- package/Theme/colors/common.d.ts +0 -39
- package/Theme/colors/common.js +0 -32
- package/Theme/colors/index.js +0 -11
- package/Theme/colors/theme_default.d.ts +0 -47
- package/Theme/colors/theme_default.js +0 -38
- package/Theme/themes/default.d.ts +0 -144
- package/Theme/themes/default.js +0 -151
- package/esm/Avatar/assets/org-circle.svg.js +0 -5
- package/esm/Avatar/assets/user-circle.svg.js +0 -5
- package/esm/Theme/colors/common.d.ts +0 -39
- package/esm/Theme/colors/common.js +0 -24
- package/esm/Theme/colors/index.js +0 -7
- package/esm/Theme/colors/theme_default.d.ts +0 -47
- package/esm/Theme/colors/theme_default.js +0 -29
- package/esm/Theme/themes/default.d.ts +0 -144
- package/esm/Theme/themes/default.js +0 -147
- package/esm/theme_default_variables.css +0 -143
- package/theme_default_variables.css +0 -143
package/Button/Button.module.css
CHANGED
|
@@ -1,42 +1,40 @@
|
|
|
1
1
|
.root {
|
|
2
2
|
align-items: center;
|
|
3
|
-
border:
|
|
4
|
-
border-radius:
|
|
3
|
+
border: var(--border-width-hairline) solid;
|
|
4
|
+
border-radius: var(--component-button-radius);
|
|
5
5
|
box-sizing: border-box;
|
|
6
6
|
cursor: pointer;
|
|
7
7
|
display: inline-flex;
|
|
8
8
|
flex-shrink: 0;
|
|
9
|
-
font-size:
|
|
9
|
+
font-size: var(--component-button-font-size-m);
|
|
10
10
|
font-style: normal;
|
|
11
11
|
font-weight: 400;
|
|
12
|
-
gap:
|
|
13
|
-
height:
|
|
12
|
+
gap: var(--space-2);
|
|
13
|
+
height: var(--component-button-height-m);
|
|
14
14
|
justify-content: center;
|
|
15
|
-
line-height:
|
|
15
|
+
line-height: var(--component-button-height-m);
|
|
16
16
|
overflow: hidden;
|
|
17
|
-
padding: 0
|
|
17
|
+
padding: 0 var(--space-3);
|
|
18
18
|
text-overflow: ellipsis;
|
|
19
|
-
|
|
20
|
-
transition: color 0.15s linear;
|
|
21
|
-
transition: transform 0.1s ease-out;
|
|
19
|
+
transition: background-color 0.15s linear, border-color 0.15s linear, color 0.15s linear;
|
|
22
20
|
white-space: nowrap;
|
|
23
21
|
width: fit-content;
|
|
24
22
|
}
|
|
25
23
|
.root_icon {
|
|
26
|
-
border-radius:
|
|
27
|
-
width:
|
|
24
|
+
border-radius: var(--radius-full);
|
|
25
|
+
width: var(--component-button-height-m);
|
|
28
26
|
}
|
|
29
27
|
.root_icon.size_xs {
|
|
30
|
-
width:
|
|
28
|
+
width: var(--component-button-height-xs);
|
|
31
29
|
}
|
|
32
30
|
.root_icon.size_s {
|
|
33
|
-
width:
|
|
31
|
+
width: var(--component-button-height-s);
|
|
34
32
|
}
|
|
35
33
|
.root_icon.size_m {
|
|
36
|
-
width:
|
|
34
|
+
width: var(--component-button-height-m);
|
|
37
35
|
}
|
|
38
36
|
.root_icon.size_l {
|
|
39
|
-
width:
|
|
37
|
+
width: var(--component-button-height-l);
|
|
40
38
|
}
|
|
41
39
|
.root_fullWidth {
|
|
42
40
|
width: 100%;
|
|
@@ -47,174 +45,136 @@
|
|
|
47
45
|
}
|
|
48
46
|
|
|
49
47
|
.size_xs {
|
|
50
|
-
font-size:
|
|
51
|
-
height:
|
|
52
|
-
line-height:
|
|
48
|
+
font-size: var(--component-button-font-size-xs);
|
|
49
|
+
height: var(--component-button-height-xs);
|
|
50
|
+
line-height: var(--component-button-height-xs);
|
|
53
51
|
}
|
|
54
52
|
.size_s {
|
|
55
|
-
font-size:
|
|
56
|
-
height:
|
|
57
|
-
line-height:
|
|
53
|
+
font-size: var(--component-button-font-size-s);
|
|
54
|
+
height: var(--component-button-height-s);
|
|
55
|
+
line-height: var(--component-button-height-s);
|
|
58
56
|
}
|
|
59
57
|
.size_m {
|
|
60
|
-
font-size:
|
|
61
|
-
height:
|
|
62
|
-
line-height:
|
|
58
|
+
font-size: var(--component-button-font-size-m);
|
|
59
|
+
height: var(--component-button-height-m);
|
|
60
|
+
line-height: var(--component-button-height-m);
|
|
63
61
|
}
|
|
64
62
|
.size_l {
|
|
65
|
-
border-radius:
|
|
66
|
-
font-size:
|
|
67
|
-
height:
|
|
68
|
-
line-height:
|
|
63
|
+
border-radius: var(--component-button-radius-lg);
|
|
64
|
+
font-size: var(--component-button-font-size-l);
|
|
65
|
+
height: var(--component-button-height-l);
|
|
66
|
+
line-height: var(--component-button-height-l);
|
|
69
67
|
}
|
|
70
68
|
|
|
71
69
|
button.variant_primary {
|
|
72
|
-
background-color: var(--button-primary-bg);
|
|
73
|
-
border-color: var(--button-primary-border
|
|
74
|
-
color: var(--button-primary-
|
|
70
|
+
background-color: var(--component-button-primary-bg);
|
|
71
|
+
border-color: var(--component-button-primary-border);
|
|
72
|
+
color: var(--component-button-primary-text);
|
|
75
73
|
}
|
|
76
74
|
button.variant_primary:hover {
|
|
77
|
-
background-color: var(--button-primary-bg-
|
|
78
|
-
border-color: var(--button-primary-border-
|
|
79
|
-
color: var(--button-primary-
|
|
75
|
+
background-color: var(--component-button-primary-bg-hover);
|
|
76
|
+
border-color: var(--component-button-primary-border-hover);
|
|
77
|
+
color: var(--component-button-primary-text-hover);
|
|
80
78
|
}
|
|
81
79
|
button.variant_primary:active {
|
|
82
|
-
background-color: var(--button-primary-bg-
|
|
83
|
-
border-color: var(--button-primary-border-
|
|
84
|
-
color: var(--button-primary-
|
|
85
|
-
}
|
|
86
|
-
button.variant_primary_disabled {
|
|
87
|
-
background-color: var(--button-primary-bg-disabled);
|
|
88
|
-
border-color: var(--button-primary-border-color-disabled);
|
|
89
|
-
color: var(--button-primary-color-disabled);
|
|
90
|
-
cursor: not-allowed;
|
|
91
|
-
pointer-events: none;
|
|
80
|
+
background-color: var(--component-button-primary-bg-pressed);
|
|
81
|
+
border-color: var(--component-button-primary-border-pressed);
|
|
82
|
+
color: var(--component-button-primary-text-pressed);
|
|
92
83
|
}
|
|
93
84
|
button.variant_secondary {
|
|
94
|
-
background-color: var(--button-secondary-bg);
|
|
95
|
-
border-color: var(--button-secondary-border
|
|
96
|
-
color: var(--button-secondary-
|
|
85
|
+
background-color: var(--component-button-secondary-bg);
|
|
86
|
+
border-color: var(--component-button-secondary-border);
|
|
87
|
+
color: var(--component-button-secondary-text);
|
|
97
88
|
}
|
|
98
89
|
button.variant_secondary:hover {
|
|
99
|
-
background-color: var(--button-secondary-bg-
|
|
100
|
-
border-color: var(--button-secondary-border-
|
|
101
|
-
color: var(--button-secondary-
|
|
90
|
+
background-color: var(--component-button-secondary-bg-hover);
|
|
91
|
+
border-color: var(--component-button-secondary-border-hover);
|
|
92
|
+
color: var(--component-button-secondary-text-hover);
|
|
102
93
|
}
|
|
103
94
|
button.variant_secondary:active {
|
|
104
|
-
background-color: var(--button-secondary-bg-
|
|
105
|
-
border-color: var(--button-secondary-border-
|
|
106
|
-
color: var(--button-secondary-
|
|
107
|
-
}
|
|
108
|
-
button.variant_secondary_disabled {
|
|
109
|
-
background-color: var(--button-secondary-bg-disabled);
|
|
110
|
-
border-color: var(--button-secondary-border-color-disabled);
|
|
111
|
-
color: var(--button-secondary-color-disabled);
|
|
112
|
-
cursor: not-allowed;
|
|
113
|
-
pointer-events: none;
|
|
95
|
+
background-color: var(--component-button-secondary-bg-pressed);
|
|
96
|
+
border-color: var(--component-button-secondary-border-pressed);
|
|
97
|
+
color: var(--component-button-secondary-text-pressed);
|
|
114
98
|
}
|
|
115
99
|
button.variant_pseudo {
|
|
116
|
-
background-color: var(--button-pseudo-bg);
|
|
117
|
-
border-color: var(--button-pseudo-border
|
|
118
|
-
color: var(--button-pseudo-
|
|
100
|
+
background-color: var(--component-button-pseudo-bg);
|
|
101
|
+
border-color: var(--component-button-pseudo-border);
|
|
102
|
+
color: var(--component-button-pseudo-text);
|
|
119
103
|
}
|
|
120
104
|
button.variant_pseudo:hover {
|
|
121
|
-
background-color: var(--button-pseudo-bg-
|
|
122
|
-
border-color: var(--button-pseudo-border-
|
|
123
|
-
color: var(--button-pseudo-
|
|
105
|
+
background-color: var(--component-button-pseudo-bg-hover);
|
|
106
|
+
border-color: var(--component-button-pseudo-border-hover);
|
|
107
|
+
color: var(--component-button-pseudo-text-hover);
|
|
124
108
|
}
|
|
125
109
|
button.variant_pseudo:active {
|
|
126
|
-
background-color: var(--button-pseudo-bg-
|
|
127
|
-
border-color: var(--button-pseudo-border-
|
|
128
|
-
color: var(--button-pseudo-
|
|
129
|
-
}
|
|
130
|
-
button.variant_pseudo_disabled {
|
|
131
|
-
background-color: var(--button-pseudo-bg-disabled);
|
|
132
|
-
border-color: var(--button-pseudo-border-color-disabled);
|
|
133
|
-
color: var(--button-pseudo-color-disabled);
|
|
134
|
-
cursor: not-allowed;
|
|
135
|
-
pointer-events: none;
|
|
110
|
+
background-color: var(--component-button-pseudo-bg-pressed);
|
|
111
|
+
border-color: var(--component-button-pseudo-border-pressed);
|
|
112
|
+
color: var(--component-button-pseudo-text-pressed);
|
|
136
113
|
}
|
|
137
114
|
button.variant_outline {
|
|
138
|
-
background-color: var(--button-outline-bg);
|
|
139
|
-
border-color: var(--button-outline-border
|
|
140
|
-
color: var(--button-outline-
|
|
115
|
+
background-color: var(--component-button-outline-bg);
|
|
116
|
+
border-color: var(--component-button-outline-border);
|
|
117
|
+
color: var(--component-button-outline-text);
|
|
141
118
|
}
|
|
142
119
|
button.variant_outline:hover {
|
|
143
|
-
background-color: var(--button-outline-bg-
|
|
144
|
-
border-color: var(--button-outline-border-
|
|
145
|
-
color: var(--button-outline-
|
|
120
|
+
background-color: var(--component-button-outline-bg-hover);
|
|
121
|
+
border-color: var(--component-button-outline-border-hover);
|
|
122
|
+
color: var(--component-button-outline-text-hover);
|
|
146
123
|
}
|
|
147
124
|
button.variant_outline:active {
|
|
148
|
-
background-color: var(--button-outline-bg-
|
|
149
|
-
border-color: var(--button-outline-border-
|
|
150
|
-
color: var(--button-outline-
|
|
151
|
-
}
|
|
152
|
-
button.variant_outline_disabled {
|
|
153
|
-
background-color: var(--button-outline-bg-disabled);
|
|
154
|
-
border-color: var(--button-outline-border-color-disabled);
|
|
155
|
-
color: var(--button-outline-color-disabled);
|
|
156
|
-
cursor: not-allowed;
|
|
157
|
-
pointer-events: none;
|
|
125
|
+
background-color: var(--component-button-outline-bg-pressed);
|
|
126
|
+
border-color: var(--component-button-outline-border-pressed);
|
|
127
|
+
color: var(--component-button-outline-text-pressed);
|
|
158
128
|
}
|
|
159
129
|
button.variant_clear {
|
|
160
|
-
background-color:
|
|
161
|
-
border-color:
|
|
162
|
-
color: var(--button-clear-
|
|
130
|
+
background-color: var(--component-button-clear-bg);
|
|
131
|
+
border-color: var(--component-button-clear-border);
|
|
132
|
+
color: var(--component-button-clear-text);
|
|
163
133
|
}
|
|
164
134
|
button.variant_clear:hover {
|
|
165
|
-
color: var(--button-clear-
|
|
135
|
+
background-color: var(--component-button-clear-bg-hover);
|
|
136
|
+
border-color: var(--component-button-clear-border-hover);
|
|
137
|
+
color: var(--component-button-clear-text-hover);
|
|
166
138
|
}
|
|
167
139
|
button.variant_clear:active {
|
|
168
|
-
color: var(--button-clear-
|
|
169
|
-
|
|
170
|
-
button
|
|
171
|
-
background-color: var(--button-clear-bg-disabled);
|
|
172
|
-
border-color: var(--button-clear-border-color-disabled);
|
|
173
|
-
color: var(--button-clear-color-disabled);
|
|
174
|
-
cursor: not-allowed;
|
|
175
|
-
pointer-events: none;
|
|
140
|
+
background-color: var(--component-button-clear-bg-pressed);
|
|
141
|
+
border-color: var(--component-button-clear-border-pressed);
|
|
142
|
+
color: var(--component-button-clear-text-pressed);
|
|
176
143
|
}
|
|
177
144
|
button.variant_alert {
|
|
178
|
-
background-color: var(--button-alert-bg);
|
|
179
|
-
border-color: var(--button-alert-border
|
|
180
|
-
color: var(--button-alert-
|
|
145
|
+
background-color: var(--component-button-alert-bg);
|
|
146
|
+
border-color: var(--component-button-alert-border);
|
|
147
|
+
color: var(--component-button-alert-text);
|
|
181
148
|
}
|
|
182
149
|
button.variant_alert:hover {
|
|
183
|
-
background-color: var(--button-alert-bg-
|
|
184
|
-
border-color: var(--button-alert-border-
|
|
185
|
-
color: var(--button-alert-
|
|
150
|
+
background-color: var(--component-button-alert-bg-hover);
|
|
151
|
+
border-color: var(--component-button-alert-border-hover);
|
|
152
|
+
color: var(--component-button-alert-text-hover);
|
|
186
153
|
}
|
|
187
154
|
button.variant_alert:active {
|
|
188
|
-
background-color: var(--button-alert-bg-
|
|
189
|
-
border-color: var(--button-alert-border-
|
|
190
|
-
color: var(--button-alert-
|
|
191
|
-
}
|
|
192
|
-
button.variant_alert_disabled {
|
|
193
|
-
background-color: var(--button-alert-bg-disabled);
|
|
194
|
-
border-color: var(--button-alert-border-color-disabled);
|
|
195
|
-
color: var(--button-alert-color-disabled);
|
|
196
|
-
cursor: not-allowed;
|
|
197
|
-
pointer-events: none;
|
|
155
|
+
background-color: var(--component-button-alert-bg-pressed);
|
|
156
|
+
border-color: var(--component-button-alert-border-pressed);
|
|
157
|
+
color: var(--component-button-alert-text-pressed);
|
|
198
158
|
}
|
|
199
159
|
button.variant_success {
|
|
200
|
-
background-color: var(--button-success-bg);
|
|
201
|
-
border-color: var(--button-success-border
|
|
202
|
-
color: var(--button-success-
|
|
160
|
+
background-color: var(--component-button-success-bg);
|
|
161
|
+
border-color: var(--component-button-success-border);
|
|
162
|
+
color: var(--component-button-success-text);
|
|
203
163
|
}
|
|
204
164
|
button.variant_success:hover {
|
|
205
|
-
background-color: var(--button-success-bg-
|
|
206
|
-
border-color: var(--button-success-border-
|
|
207
|
-
color: var(--button-success-
|
|
165
|
+
background-color: var(--component-button-success-bg-hover);
|
|
166
|
+
border-color: var(--component-button-success-border-hover);
|
|
167
|
+
color: var(--component-button-success-text-hover);
|
|
208
168
|
}
|
|
209
169
|
button.variant_success:active {
|
|
210
|
-
background-color: var(--button-success-bg-
|
|
211
|
-
border-color: var(--button-success-border-
|
|
212
|
-
color: var(--button-success-
|
|
213
|
-
}
|
|
214
|
-
button.variant_success_disabled {
|
|
215
|
-
background-color: var(--button-
|
|
216
|
-
border-color: var(--button-
|
|
217
|
-
color: var(--button-
|
|
170
|
+
background-color: var(--component-button-success-bg-pressed);
|
|
171
|
+
border-color: var(--component-button-success-border-pressed);
|
|
172
|
+
color: var(--component-button-success-text-pressed);
|
|
173
|
+
}
|
|
174
|
+
button.variant_primary_disabled, button.variant_secondary_disabled, button.variant_pseudo_disabled, button.variant_outline_disabled, button.variant_clear_disabled, button.variant_alert_disabled, button.variant_success_disabled {
|
|
175
|
+
background-color: var(--component-button-bg-disabled);
|
|
176
|
+
border-color: var(--component-button-border-disabled);
|
|
177
|
+
color: var(--component-button-text-disabled);
|
|
218
178
|
cursor: not-allowed;
|
|
219
179
|
pointer-events: none;
|
|
220
180
|
}
|
|
@@ -47,7 +47,7 @@ var WEEK_DAYS = Array.from({
|
|
|
47
47
|
};
|
|
48
48
|
});
|
|
49
49
|
var SELECTED_BG_STYLE = {
|
|
50
|
-
background: "var(--
|
|
50
|
+
background: "var(--component-switch-bg-checked)"
|
|
51
51
|
};
|
|
52
52
|
var TRANSPARENT_BG_STYLE = {
|
|
53
53
|
background: "transparent"
|
|
@@ -107,8 +107,7 @@ var DayButton = /*#__PURE__*/React__namespace.memo(function (_ref2) {
|
|
|
107
107
|
}, /*#__PURE__*/React__namespace.createElement(index$1.default, {
|
|
108
108
|
size: "s",
|
|
109
109
|
style: {
|
|
110
|
-
|
|
111
|
-
color: isActive ? "rgba(0, 0, 0, 0.8)" : "rgba(0, 0, 0, 0.3)"
|
|
110
|
+
color: isActive ? isSelected ? "var(--component-tab-text-active)" : "var(--color-text-primary)" : "var(--color-text-disabled)"
|
|
112
111
|
}
|
|
113
112
|
}, day));
|
|
114
113
|
});
|
|
@@ -163,8 +162,7 @@ var Month = function Month(props) {
|
|
|
163
162
|
key: index
|
|
164
163
|
}, /*#__PURE__*/React__namespace.createElement(index$1.default, {
|
|
165
164
|
style: {
|
|
166
|
-
|
|
167
|
-
color: isWeekend ? "var(--typography-alert)" : "var(--palette-black)"
|
|
165
|
+
color: isWeekend ? "var(--color-status-error)" : "var(--color-text-secondary)"
|
|
168
166
|
}
|
|
169
167
|
}, name));
|
|
170
168
|
})), weeks.map(function (days, weekIndex) {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
.root {
|
|
2
2
|
box-sizing: border-box;
|
|
3
|
-
|
|
3
|
+
color: var(--color-text-primary);
|
|
4
|
+
padding: 0 var(--space-4);
|
|
4
5
|
width: 100%;
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
.month-name {
|
|
8
|
-
padding:
|
|
9
|
+
padding: var(--space-2) 0 var(--space-6);
|
|
9
10
|
text-align: center;
|
|
10
11
|
}
|
|
11
12
|
|
|
@@ -18,41 +19,37 @@
|
|
|
18
19
|
|
|
19
20
|
.week {
|
|
20
21
|
display: grid;
|
|
21
|
-
gap:
|
|
22
|
+
gap: var(--space-1);
|
|
22
23
|
grid-template-columns: repeat(7, 1fr);
|
|
23
24
|
justify-content: center;
|
|
24
|
-
margin:
|
|
25
|
+
margin: var(--space-1) 0;
|
|
25
26
|
padding: 0;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
.day {
|
|
29
30
|
display: block;
|
|
30
|
-
min-height:
|
|
31
|
+
min-height: var(--component-calendar-day-size);
|
|
31
32
|
position: relative;
|
|
32
33
|
text-align: center;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
.legend {
|
|
36
37
|
display: grid;
|
|
37
|
-
gap:
|
|
38
|
+
gap: var(--space-1);
|
|
38
39
|
grid-template-columns: repeat(7, 1fr);
|
|
39
|
-
margin:
|
|
40
|
+
margin: var(--space-1) 0;
|
|
40
41
|
padding: 0;
|
|
41
42
|
text-align: center;
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
.selected-range-day {
|
|
45
46
|
display: block;
|
|
46
|
-
height:
|
|
47
|
+
height: var(--component-calendar-day-size);
|
|
47
48
|
position: relative;
|
|
48
49
|
text-align: center;
|
|
49
|
-
z-index: 0;
|
|
50
|
-
}
|
|
51
|
-
.selected-range-day:hover {
|
|
52
|
-
z-index: 1;
|
|
53
50
|
}
|
|
54
51
|
.selected-range-day::before {
|
|
55
|
-
background:
|
|
52
|
+
background: var(--component-menu-item-bg-hover);
|
|
56
53
|
content: "";
|
|
57
54
|
display: block;
|
|
58
55
|
height: 100%;
|
|
@@ -60,6 +57,7 @@
|
|
|
60
57
|
position: absolute;
|
|
61
58
|
top: 0;
|
|
62
59
|
width: 200%;
|
|
60
|
+
z-index: 0;
|
|
63
61
|
}
|
|
64
62
|
.selected-range-day:first-child::before {
|
|
65
63
|
left: 0;
|
|
@@ -101,11 +99,13 @@
|
|
|
101
99
|
.start-of-selection::before {
|
|
102
100
|
left: 50%;
|
|
103
101
|
right: auto;
|
|
102
|
+
width: 50%;
|
|
104
103
|
}
|
|
105
104
|
|
|
106
105
|
.end-of-selection::before {
|
|
107
106
|
left: auto;
|
|
108
107
|
right: 50%;
|
|
108
|
+
width: 50%;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
.first-child:first-child::before {
|
|
@@ -118,26 +118,27 @@
|
|
|
118
118
|
|
|
119
119
|
.day-inner {
|
|
120
120
|
border: 0;
|
|
121
|
-
border-radius:
|
|
121
|
+
border-radius: var(--component-calendar-day-radius);
|
|
122
122
|
display: inline-block;
|
|
123
|
-
height:
|
|
124
|
-
max-width:
|
|
123
|
+
height: var(--component-calendar-day-size);
|
|
124
|
+
max-width: var(--component-calendar-day-size);
|
|
125
125
|
outline: 0;
|
|
126
126
|
padding: 0;
|
|
127
127
|
position: relative;
|
|
128
128
|
text-align: center;
|
|
129
129
|
transition: background 0.3s ease;
|
|
130
130
|
width: 100%;
|
|
131
|
+
z-index: 1;
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
.day-inner-active {
|
|
134
135
|
cursor: pointer;
|
|
135
136
|
}
|
|
136
137
|
.day-inner-active:hover {
|
|
137
|
-
background: var(--
|
|
138
|
+
background: var(--component-menu-item-bg-hover);
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
.day-focused {
|
|
141
|
-
outline:
|
|
142
|
-
outline-offset:
|
|
142
|
+
outline: var(--focus-ring-width) solid var(--component-input-focus-ring);
|
|
143
|
+
outline-offset: var(--focus-ring-width);
|
|
143
144
|
}
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
|
|
14
14
|
.item {
|
|
15
15
|
flex-grow: 1;
|
|
16
|
-
padding: 0
|
|
16
|
+
padding: 0 var(--space-1);
|
|
17
17
|
}
|
|
18
18
|
.item > button {
|
|
19
19
|
display: block;
|
|
20
|
-
padding: 0
|
|
20
|
+
padding: 0 var(--space-2);
|
|
21
21
|
width: 100%;
|
|
22
22
|
}
|
|
23
23
|
.item:first-child {
|
|
24
|
-
padding-left:
|
|
24
|
+
padding-left: var(--space-4);
|
|
25
25
|
}
|
|
26
26
|
.item:last-child {
|
|
27
|
-
padding-right:
|
|
27
|
+
padding-right: var(--space-4);
|
|
28
28
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
.root {
|
|
2
|
+
color: var(--color-text-primary);
|
|
2
3
|
display: flex;
|
|
3
4
|
flex-direction: column;
|
|
4
5
|
-moz-osx-font-smoothing: grayscale;
|
|
5
6
|
-webkit-font-smoothing: antialiased;
|
|
6
|
-
gap:
|
|
7
|
-
min-height:
|
|
8
|
-
min-width:
|
|
7
|
+
gap: var(--space-4);
|
|
8
|
+
min-height: var(--component-calendar-min-block-size);
|
|
9
|
+
min-width: var(--component-calendar-min-inline-size);
|
|
9
10
|
overflow: hidden;
|
|
10
11
|
position: relative;
|
|
11
12
|
text-rendering: optimizelegibility;
|
|
@@ -13,15 +14,15 @@
|
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
.month-control-prev-arrow {
|
|
16
|
-
color: var(--
|
|
17
|
+
color: var(--color-icon-primary);
|
|
17
18
|
transform: rotate(180deg);
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
.month-control-next-arrow {
|
|
21
|
-
color: var(--
|
|
22
|
+
color: var(--color-icon-primary);
|
|
22
23
|
position: absolute;
|
|
23
|
-
right:
|
|
24
|
-
top:
|
|
24
|
+
right: var(--space-4);
|
|
25
|
+
top: var(--space-4);
|
|
25
26
|
transform: rotate(360deg);
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -29,61 +30,63 @@
|
|
|
29
30
|
background: transparent;
|
|
30
31
|
border: 0;
|
|
31
32
|
cursor: pointer;
|
|
32
|
-
height:
|
|
33
|
+
height: var(--component-calendar-control-block-size);
|
|
33
34
|
outline: 0;
|
|
34
|
-
padding: 0
|
|
35
|
+
padding: 0 var(--space-4);
|
|
35
36
|
position: absolute;
|
|
36
37
|
top: 0;
|
|
37
|
-
width:
|
|
38
|
+
width: var(--component-calendar-control-inline-size);
|
|
38
39
|
}
|
|
39
40
|
.month-control[disabled] {
|
|
40
41
|
cursor: default;
|
|
41
42
|
}
|
|
42
43
|
.month-control[disabled] .month-control-prev-arrow {
|
|
43
|
-
|
|
44
|
+
color: var(--color-text-disabled);
|
|
45
|
+
opacity: 1;
|
|
44
46
|
}
|
|
45
47
|
.month-control[disabled] .month-control-next-arrow {
|
|
46
|
-
|
|
48
|
+
color: var(--color-text-disabled);
|
|
49
|
+
opacity: 1;
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
.month-control-prev {
|
|
50
|
-
border-left-width:
|
|
53
|
+
border-left-width: var(--space-4);
|
|
51
54
|
left: 0;
|
|
52
55
|
text-align: left;
|
|
53
56
|
}
|
|
54
57
|
.month-control-prev::before {
|
|
55
|
-
background: linear-gradient(to right,
|
|
56
|
-
border: 0 solid
|
|
57
|
-
border-left-width:
|
|
58
|
+
background: linear-gradient(to right, var(--color-bg-surface) 0%, transparent 100%);
|
|
59
|
+
border: 0 solid var(--color-bg-surface);
|
|
60
|
+
border-left-width: var(--space-6);
|
|
58
61
|
content: "";
|
|
59
62
|
display: block;
|
|
60
63
|
height: 100%;
|
|
61
64
|
left: 0;
|
|
62
65
|
position: absolute;
|
|
63
66
|
top: 0;
|
|
64
|
-
width:
|
|
67
|
+
width: var(--component-calendar-fade-inline-size);
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
.month-control-next {
|
|
68
|
-
border-right-width:
|
|
71
|
+
border-right-width: var(--space-4);
|
|
69
72
|
right: 0;
|
|
70
73
|
text-align: right;
|
|
71
74
|
}
|
|
72
75
|
.month-control-next::before {
|
|
73
|
-
background: linear-gradient(to left,
|
|
74
|
-
border: 0 solid
|
|
75
|
-
border-right-width:
|
|
76
|
+
background: linear-gradient(to left, var(--color-bg-surface) 0%, transparent 100%);
|
|
77
|
+
border: 0 solid var(--color-bg-surface);
|
|
78
|
+
border-right-width: var(--space-6);
|
|
76
79
|
content: "";
|
|
77
80
|
display: block;
|
|
78
81
|
height: 100%;
|
|
79
82
|
position: absolute;
|
|
80
83
|
right: 0;
|
|
81
84
|
top: 0;
|
|
82
|
-
width:
|
|
85
|
+
width: var(--component-calendar-fade-inline-size);
|
|
83
86
|
}
|
|
84
87
|
|
|
85
88
|
.months {
|
|
86
|
-
min-height:
|
|
89
|
+
min-height: var(--component-calendar-months-min-block-size);
|
|
87
90
|
position: relative;
|
|
88
91
|
transition: transform 0.3s ease;
|
|
89
92
|
}
|
|
@@ -47,7 +47,7 @@ var getCurrWeek = function getCurrWeek() {
|
|
|
47
47
|
var today = new Date();
|
|
48
48
|
var date = new Date(today);
|
|
49
49
|
var days = 0;
|
|
50
|
-
//
|
|
50
|
+
// If today is Monday, skip it.
|
|
51
51
|
if (today.getDay() === 1) {
|
|
52
52
|
date = addDays(date);
|
|
53
53
|
days++;
|
|
@@ -64,7 +64,7 @@ var getCurrWeek = function getCurrWeek() {
|
|
|
64
64
|
};
|
|
65
65
|
var getNextWeek = function getNextWeek() {
|
|
66
66
|
var date = new Date();
|
|
67
|
-
//
|
|
67
|
+
// If today is Monday, move to tomorrow.
|
|
68
68
|
if (date.getDay() === 1) {
|
|
69
69
|
date = addDays(date);
|
|
70
70
|
}
|
package/Card/Card.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { CSSProperties, HTMLAttributes } from "react";
|
|
3
|
+
export type CardSize = "s" | "m" | "l";
|
|
4
|
+
export type CardOrientation = "horizontal" | "vertical";
|
|
5
|
+
export type CardBackgroundType = "none" | "solid";
|
|
6
|
+
export interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
size?: CardSize;
|
|
8
|
+
view?: "default" | string;
|
|
9
|
+
orientation?: CardOrientation;
|
|
10
|
+
selected?: boolean;
|
|
11
|
+
backgroundType?: CardBackgroundType;
|
|
12
|
+
}
|
|
13
|
+
export interface CardContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
14
|
+
aspectRatio?: CSSProperties["aspectRatio"] | number;
|
|
15
|
+
orientation?: CardOrientation;
|
|
16
|
+
}
|
|
17
|
+
export interface CardInnerContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
18
|
+
orientation?: CardOrientation;
|
|
19
|
+
}
|
|
20
|
+
/** Root card container. */
|
|
21
|
+
export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
/** Clipped card area that normally contains media and CardInnerContent. */
|
|
23
|
+
export declare const CardContent: React.ForwardRefExoticComponent<CardContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
/** Content layer rendered over an image or another CardContent background. */
|
|
25
|
+
export declare const CardInnerContent: React.ForwardRefExoticComponent<CardInnerContentProps & React.RefAttributes<HTMLDivElement>>;
|