colibri-ui 0.8.66 → 0.8.68
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/Calendar.d.ts +43 -0
- package/Calendar/Calendar.js +511 -0
- package/Calendar/Calendar.module.css +322 -0
- package/Calendar/index.d.ts +2 -4
- package/Calendar/index.js +3 -376
- 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.js +145 -30
- package/Datepicker/components/DatePicker/index.module.css +34 -45
- package/Datepicker/components/DatePicker/index.props.d.ts +12 -0
- package/Datepicker/index.d.ts +1 -1
- package/Datepicker/index.js +25 -8
- package/Datepicker/index.props.d.ts +15 -2
- 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/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.d.ts +1 -1
- package/Status/index.js +7 -1
- package/Status/index.module.css +37 -24
- package/Status/index.props.d.ts +3 -0
- 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 +9 -9
- package/esm/Avatar/Avatar.module.css +50 -33
- package/esm/Avatar/index.js +75 -38
- package/esm/Badge/Badge.module.css +7 -7
- package/esm/Badge/Control/index.js +2 -2
- package/esm/Badge/index.js +5 -11
- package/esm/Badge/index.props.d.ts +0 -2
- package/esm/Button/Button.module.css +95 -135
- package/esm/Button/index.js +6 -6
- package/esm/Calendar/Calendar.d.ts +43 -0
- package/esm/Calendar/Calendar.js +499 -0
- package/esm/Calendar/Calendar.module.css +322 -0
- package/esm/Calendar/index.d.ts +2 -4
- 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 +8 -7
- package/esm/Chip/Chip.module.css +34 -24
- package/esm/Chip/index.js +6 -6
- 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/Counter/index.js +8 -8
- package/esm/Datepicker/Datepicker.module.css +1 -1
- package/esm/Datepicker/components/DatePicker/index.js +146 -31
- package/esm/Datepicker/components/DatePicker/index.module.css +34 -45
- package/esm/Datepicker/components/DatePicker/index.props.d.ts +12 -0
- package/esm/Datepicker/index.d.ts +1 -1
- package/esm/Datepicker/index.js +27 -10
- package/esm/Datepicker/index.props.d.ts +15 -2
- package/esm/DotsLoader/DotsLoader.module.css +5 -5
- package/esm/DotsLoader/index.d.ts +1 -3
- package/esm/DotsLoader/index.js +7 -20
- 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 +6 -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/Item/index.js +2 -2
- package/esm/Grid/index.js +11 -8
- package/esm/Grid/index.props.d.ts +4 -3
- package/esm/Icons/ArrowNext.js +3 -3
- package/esm/Icons/Cart.js +3 -3
- package/esm/Icons/Check.js +7 -7
- package/esm/Icons/Chevron.js +3 -3
- package/esm/Icons/Close.js +3 -3
- package/esm/Icons/Cross.js +3 -3
- package/esm/Icons/CrossFill.js +3 -3
- package/esm/Icons/Edit.js +3 -3
- package/esm/Icons/Exit.js +3 -3
- package/esm/Icons/EyeClosed.js +3 -3
- package/esm/Icons/EyeOpen.js +4 -4
- package/esm/Icons/Help.js +3 -3
- package/esm/Icons/Info.js +3 -3
- package/esm/Icons/Minus.js +3 -3
- package/esm/Icons/More.js +5 -5
- package/esm/Icons/Plus.js +3 -3
- package/esm/Icons/Setting.js +5 -5
- package/esm/Icons/Shield.js +3 -3
- package/esm/Icons/Trash.js +3 -3
- package/esm/Icons/User.js +4 -4
- package/esm/Image/index.js +4 -4
- package/esm/Input/index.js +4 -4
- package/esm/InputRadio/InputRadio.module.css +37 -34
- package/esm/InputRadio/index.js +7 -7
- package/esm/Menu/Menu.module.css +2 -2
- package/esm/Menu/components/MenuItem/MenuItem.module.css +8 -8
- package/esm/Menu/components/MenuItem/index.js +2 -2
- package/esm/Menu/index.js +2 -2
- package/esm/Modal/Modal.module.css +11 -11
- package/esm/Modal/components/Close/Close.module.css +1 -1
- package/esm/Modal/components/Close/index.js +3 -3
- package/esm/Modal/components/Content/Content.module.css +1 -1
- package/esm/Modal/components/Content/index.js +2 -2
- package/esm/Modal/components/Title/index.js +3 -3
- package/esm/Modal/index.js +9 -9
- package/esm/MultiSelect/components/MenuOverlay/index.js +9 -11
- package/esm/MultiSelect/components/MenuOverlay/index.module.css +3 -3
- package/esm/MultiSelect/components/MenuOverlayItem/index.js +3 -3
- package/esm/MultiSelect/index.js +13 -12
- 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/Radio.js +2 -2
- package/esm/RadioGroup/RadioGroup.module.css +4 -4
- package/esm/RadioGroup/index.js +3 -3
- 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.js +4 -4
- package/esm/Select/components/MenuOverlay/index.module.css +1 -1
- package/esm/Select/components/MenuOverlayItem/index.js +3 -3
- package/esm/Select/index.js +11 -10
- package/esm/Select/index.module.css +3 -3
- package/esm/Separator/Separator.module.css +2 -2
- package/esm/Separator/index.js +2 -2
- package/esm/Skeleton/Skeleton.module.css +4 -4
- package/esm/Skeleton/index.js +13 -9
- package/esm/Skeleton/index.props.d.ts +2 -2
- package/esm/Status/index.d.ts +1 -1
- package/esm/Status/index.js +9 -3
- package/esm/Status/index.module.css +37 -24
- package/esm/Status/index.props.d.ts +3 -0
- package/esm/Switch/Switch.module.css +41 -26
- package/esm/Switch/index.js +9 -8
- package/esm/TabsMenu/Tab/Tab.js +2 -2
- package/esm/TabsMenu/Tab/Tab.module.css +29 -26
- package/esm/TabsMenu/TabsMenu.module.css +1 -1
- package/esm/TabsMenu/index.js +3 -3
- package/esm/TabsPanels/Panel/index.js +2 -2
- package/esm/TabsPanels/index.js +3 -3
- package/esm/TextArea/TextArea.module.css +2 -2
- package/esm/TextArea/index.js +4 -4
- 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/TimeSelect/Label/index.js +2 -2
- package/esm/TimeSelect/index.js +3 -3
- package/esm/Tooltip/Tooltip.module.css +8 -8
- package/esm/Tooltip/index.js +8 -7
- package/esm/Typography/Typography.module.css +151 -26
- package/esm/Typography/index.js +2 -2
- package/esm/Typography/index.props.d.ts +3 -3
- package/esm/base/BaseInput/BaseInput.module.css +2 -2
- package/esm/base/BaseInput/index.js +2 -2
- package/esm/base/FormField/FormField.module.css +6 -2
- package/esm/base/FormField/index.js +5 -4
- package/esm/base/InputRoot/InputRoot.module.css +33 -26
- package/esm/base/InputRoot/index.d.ts +1 -1
- package/esm/base/InputRoot/index.js +8 -7
- package/esm/base/InputRoot/index.props.d.ts +1 -0
- package/esm/helpers/date/index.js +3 -53
- package/esm/hooks/useOnClickOutside/index.d.ts +1 -1
- package/esm/hooks/useOnClickOutside/index.js +2 -2
- package/esm/index.d.ts +13 -1
- package/esm/index.js +8 -2
- 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 +13 -1
- package/index.js +90 -65
- 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/Calendar/components/ContinueButton/index.d.ts +0 -10
- package/Calendar/components/ContinueButton/index.js +0 -42
- package/Calendar/components/ContinueButton/index.module.css +0 -4
- package/Calendar/components/Month/Month.d.ts +0 -16
- package/Calendar/components/Month/Month.js +0 -203
- package/Calendar/components/Month/index.module.css +0 -143
- package/Calendar/components/Presets/index.d.ts +0 -19
- package/Calendar/components/Presets/index.js +0 -61
- package/Calendar/components/Presets/index.module.css +0 -28
- package/Calendar/index.module.css +0 -94
- package/Calendar/index.props.d.ts +0 -22
- package/Calendar/utils/getMonthWeeks.d.ts +0 -20
- package/Calendar/utils/getMonthWeeks.js +0 -81
- package/Calendar/utils/getNumberOfMonthsBetweenDates.d.ts +0 -4
- package/Calendar/utils/getNumberOfMonthsBetweenDates.js +0 -21
- package/Calendar/utils/getPresets.d.ts +0 -12
- package/Calendar/utils/getPresets.js +0 -99
- package/Calendar/utils/getStartMonth.d.ts +0 -6
- package/Calendar/utils/getStartMonth.js +0 -15
- package/Datepicker/components/TimePicker/Label/index.d.ts +0 -8
- package/Datepicker/components/TimePicker/Label/index.js +0 -27
- package/Datepicker/components/TimePicker/helpers.d.ts +0 -12
- package/Datepicker/components/TimePicker/helpers.js +0 -39
- package/Datepicker/components/TimePicker/index.d.ts +0 -4
- package/Datepicker/components/TimePicker/index.js +0 -69
- package/Datepicker/components/TimePicker/index.module.css +0 -58
- package/Datepicker/components/TimePicker/index.props.d.ts +0 -8
- 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/Calendar/components/ContinueButton/index.d.ts +0 -10
- package/esm/Calendar/components/ContinueButton/index.js +0 -35
- package/esm/Calendar/components/ContinueButton/index.module.css +0 -4
- package/esm/Calendar/components/Month/Month.d.ts +0 -16
- package/esm/Calendar/components/Month/Month.js +0 -175
- package/esm/Calendar/components/Month/index.module.css +0 -143
- package/esm/Calendar/components/Presets/index.d.ts +0 -19
- package/esm/Calendar/components/Presets/index.js +0 -36
- package/esm/Calendar/components/Presets/index.module.css +0 -28
- package/esm/Calendar/index.js +0 -371
- package/esm/Calendar/index.module.css +0 -94
- package/esm/Calendar/index.props.d.ts +0 -22
- package/esm/Calendar/utils/getMonthWeeks.d.ts +0 -20
- package/esm/Calendar/utils/getMonthWeeks.js +0 -79
- package/esm/Calendar/utils/getNumberOfMonthsBetweenDates.d.ts +0 -4
- package/esm/Calendar/utils/getNumberOfMonthsBetweenDates.js +0 -19
- package/esm/Calendar/utils/getPresets.d.ts +0 -12
- package/esm/Calendar/utils/getPresets.js +0 -87
- package/esm/Calendar/utils/getStartMonth.d.ts +0 -6
- package/esm/Calendar/utils/getStartMonth.js +0 -13
- package/esm/Datepicker/components/TimePicker/Label/index.d.ts +0 -8
- package/esm/Datepicker/components/TimePicker/Label/index.js +0 -19
- package/esm/Datepicker/components/TimePicker/helpers.d.ts +0 -12
- package/esm/Datepicker/components/TimePicker/helpers.js +0 -18
- package/esm/Datepicker/components/TimePicker/index.d.ts +0 -4
- package/esm/Datepicker/components/TimePicker/index.js +0 -58
- package/esm/Datepicker/components/TimePicker/index.module.css +0 -58
- package/esm/Datepicker/components/TimePicker/index.props.d.ts +0 -8
- 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/libs/numbers/leadingZeros.js +0 -12
- package/esm/libs/requestIdleCallback/index.js +0 -8
- package/esm/theme_default_variables.css +0 -143
- package/libs/numbers/leadingZeros.js +0 -14
- package/libs/requestIdleCallback/index.js +0 -10
- 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
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
3
|
+
export type CalendarSize = "xs" | "s" | "m" | "l" | "xl";
|
|
4
|
+
export type CalendarSelectionMode = "single" | "range";
|
|
5
|
+
export type CalendarView = "days" | "months" | "years";
|
|
6
|
+
export interface CalendarEvent {
|
|
7
|
+
date: Date;
|
|
8
|
+
color?: string;
|
|
9
|
+
label?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
interface CalendarCommonProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
12
|
+
defaultVisibleMonth?: Date;
|
|
13
|
+
defaultView?: CalendarView;
|
|
14
|
+
disabledDates?: Date[] | ((date: Date) => boolean);
|
|
15
|
+
events?: CalendarEvent[];
|
|
16
|
+
locale?: string;
|
|
17
|
+
maxDate?: Date;
|
|
18
|
+
minDate?: Date;
|
|
19
|
+
monthLabel?: string;
|
|
20
|
+
monthsToShow?: 1 | 2;
|
|
21
|
+
nextMonthLabel?: string;
|
|
22
|
+
onVisibleMonthChange?: (month: Date) => void;
|
|
23
|
+
previousMonthLabel?: string;
|
|
24
|
+
showOutsideDays?: boolean;
|
|
25
|
+
size?: CalendarSize;
|
|
26
|
+
visibleMonth?: Date;
|
|
27
|
+
weekStartsOn?: 0 | 1;
|
|
28
|
+
yearLabel?: string;
|
|
29
|
+
yearRange?: [number, number];
|
|
30
|
+
}
|
|
31
|
+
export interface CalendarSingleProps extends CalendarCommonProps {
|
|
32
|
+
onChange: (value: Date) => void;
|
|
33
|
+
selectionMode?: "single";
|
|
34
|
+
value: Date | null;
|
|
35
|
+
}
|
|
36
|
+
export interface CalendarRangeProps extends CalendarCommonProps {
|
|
37
|
+
onChange: (value: [Date | null, Date | null]) => void;
|
|
38
|
+
selectionMode: "range";
|
|
39
|
+
value: [Date | null, Date | null];
|
|
40
|
+
}
|
|
41
|
+
export type CalendarProps = CalendarSingleProps | CalendarRangeProps;
|
|
42
|
+
declare const Calendar: (props: CalendarProps) => React.JSX.Element;
|
|
43
|
+
export default Calendar;
|