@uxf/ui 10.0.0-beta.8 → 10.0.0-beta.80
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/_file-input-base/file-input-base.js +15 -1
- package/_file-input-base/index.d.ts +1 -1
- package/_input-with-popover/input-with-popover.d.ts +4 -3
- package/_input-with-popover/input-with-popover.js +26 -26
- package/_select-base/_select-base.d.ts +2 -2
- package/_select-base/_select-base.js +4 -3
- package/_select-base/index.d.ts +1 -1
- package/alert-bubble/alert-bubble.d.ts +8 -0
- package/alert-bubble/alert-bubble.js +22 -0
- package/alert-bubble/alert-bubble.spec.d.ts +1 -0
- package/alert-bubble/alert-bubble.spec.js +9 -0
- package/alert-bubble/alert-bubble.stories.d.ts +7 -0
- package/alert-bubble/alert-bubble.stories.js +50 -0
- package/alert-bubble/index.d.ts +3 -0
- package/alert-bubble/index.js +5 -0
- package/alert-bubble/theme.d.ts +16 -0
- package/alert-bubble/theme.js +2 -0
- package/avatar/README.md +8 -0
- package/avatar/avatar.stories.js +1 -1
- package/avatar/index.d.ts +1 -1
- package/avatar-file-input/README.md +1 -0
- package/avatar-file-input/avatar-file-input.d.ts +3 -0
- package/avatar-file-input/avatar-file-input.js +12 -6
- package/avatar-file-input/avatar-file-input.stories.js +5 -5
- package/avatar-file-input/index.d.ts +1 -1
- package/avatar-file-input/theme.d.ts +5 -0
- package/avatar-file-input/theme.js +2 -0
- package/badge/README.md +1 -0
- package/badge/badge.d.ts +1 -1
- package/badge/badge.stories.js +1 -1
- package/badge/index.d.ts +1 -1
- package/button/README.md +68 -0
- package/button/button.stories.js +0 -1
- package/button/index.d.ts +1 -1
- package/button/theme.d.ts +1 -0
- package/button-group/README.md +1 -0
- package/button-group/button-group.js +1 -1
- package/button-group/button-group.stories.js +1 -1
- package/button-group/index.d.ts +1 -1
- package/button-list/README.md +1 -0
- package/button-list/button-list.d.ts +1 -1
- package/button-list/button-list.js +22 -22
- package/button-list/index.d.ts +1 -1
- package/calendar/README.md +1 -0
- package/calendar/calendar-day-cell.d.ts +4 -1
- package/calendar/calendar-day-cell.js +18 -18
- package/{date-picker/date-picker-navigation.d.ts → calendar/calendar-navigation.d.ts} +2 -3
- package/{date-picker/date-picker-navigation.js → calendar/calendar-navigation.js} +6 -6
- package/calendar/calendar-provider.js +2 -2
- package/calendar/calendar.d.ts +5 -0
- package/calendar/calendar.js +6 -9
- package/calendar/calendar.stories.js +1 -1
- package/calendar/index.d.ts +4 -1
- package/calendar/index.js +5 -15
- package/checkbox/README.md +1 -0
- package/checkbox/checkbox.stories.js +1 -1
- package/checkbox/index.d.ts +1 -1
- package/checkbox-button/README.md +1 -0
- package/checkbox-button/checkbox-button.js +2 -2
- package/checkbox-button/checkbox-button.stories.js +1 -1
- package/checkbox-button/index.d.ts +1 -1
- package/checkbox-input/README.md +1 -0
- package/checkbox-input/checkbox-input.d.ts +1 -1
- package/checkbox-input/checkbox-input.stories.js +1 -1
- package/checkbox-input/index.d.ts +1 -1
- package/chip/README.md +1 -0
- package/chip/chip.d.ts +1 -1
- package/chip/chip.js +7 -5
- package/chip/chip.stories.js +37 -28
- package/chip/index.d.ts +2 -2
- package/color-radio/README.md +8 -0
- package/color-radio/color-radio.js +1 -1
- package/color-radio/index.d.ts +1 -1
- package/color-radio-group/README.md +9 -0
- package/color-radio-group/color-radio-group.js +3 -3
- package/color-radio-group/color-radio-group.stories.js +1 -1
- package/color-radio-group/index.d.ts +1 -1
- package/combobox/README.md +12 -0
- package/combobox/combobox.d.ts +1 -1
- package/combobox/combobox.stories.d.ts +2 -1
- package/combobox/combobox.stories.js +7 -3
- package/combobox/index.d.ts +1 -1
- package/config/icons-config.d.ts +1 -1
- package/config/icons-config.js +1 -1
- package/config/icons.d.ts +13 -3
- package/config/icons.js +3 -1
- package/content/types.d.ts +1 -1
- package/context/provider.js +1 -1
- package/css/alert-bubble.css +100 -0
- package/css/avatar-file-input.css +54 -20
- package/css/avatar.css +4 -4
- package/css/badge.css +5 -5
- package/css/button-group.css +1 -1
- package/css/button-list.css +2 -2
- package/css/button.css +78 -32
- package/css/calendar.css +115 -51
- package/css/checkbox-button.css +10 -10
- package/css/checkbox.css +9 -9
- package/css/chip.css +217 -318
- package/css/color-radio-group.css +1 -1
- package/css/color-radio.css +3 -3
- package/css/component-structure-analyzer.css +12 -12
- package/css/date-picker.css +10 -3
- package/css/date-range-picker.css +21 -0
- package/css/datetime-picker.css +2 -2
- package/css/dialog.css +55 -0
- package/css/dropdown.css +11 -3
- package/css/dropzone.css +6 -6
- package/css/error-message.css +1 -1
- package/css/file-input.css +2 -2
- package/css/flash-messages.css +133 -9
- package/css/icon.css +1 -1
- package/css/image-gallery.css +8 -8
- package/css/input-with-popover.css +1 -1
- package/css/input.css +10 -10
- package/css/layout.css +4 -4
- package/css/list-item.css +2 -2
- package/css/message.css +92 -0
- package/css/modal.css +10 -54
- package/css/multi-combobox.css +12 -12
- package/css/pagination.css +14 -14
- package/css/paper.css +1 -1
- package/css/radio-group.css +3 -3
- package/css/radio.css +7 -7
- package/css/raster-image.css +1 -1
- package/css/select-base.css +1 -1
- package/css/tabs.css +16 -16
- package/css/text-link.css +4 -4
- package/css/textarea.css +68 -76
- package/css/time-picker.css +12 -16
- package/css/toggle.css +3 -3
- package/css/tooltip.css +2 -2
- package/date-picker/README.md +9 -0
- package/date-picker/date-picker-content.d.ts +5 -2
- package/date-picker/date-picker-content.js +4 -3
- package/date-picker/date-picker-decade.js +10 -10
- package/date-picker/date-picker-month.js +6 -6
- package/date-picker/date-picker-year.js +2 -2
- package/date-picker/date-picker.d.ts +4 -1
- package/date-picker/date-picker.js +4 -2
- package/date-picker/index.d.ts +1 -1
- package/date-picker-input/README.md +11 -0
- package/date-picker-input/date-picker-input.d.ts +2 -0
- package/date-picker-input/date-picker-input.js +5 -3
- package/date-picker-input/date-picker-input.stories.js +1 -1
- package/date-picker-input/index.d.ts +1 -1
- package/date-picker-input/index.js +3 -3
- package/date-range-picker/README.md +1 -0
- package/date-range-picker/date-range-picker-content.d.ts +5 -0
- package/date-range-picker/date-range-picker-content.js +56 -0
- package/date-range-picker/date-range-picker-decade.d.ts +6 -0
- package/date-range-picker/date-range-picker-decade.js +72 -0
- package/date-range-picker/date-range-picker-month.d.ts +8 -0
- package/date-range-picker/date-range-picker-month.js +69 -0
- package/date-range-picker/date-range-picker-year.d.ts +7 -0
- package/date-range-picker/date-range-picker-year.js +80 -0
- package/date-range-picker/date-range-picker.d.ts +11 -0
- package/date-range-picker/date-range-picker.js +51 -0
- package/date-range-picker/date-range-picker.spec.d.ts +1 -0
- package/date-range-picker/date-range-picker.spec.js +9 -0
- package/date-range-picker/date-range-picker.stories.d.ts +7 -0
- package/date-range-picker/date-range-picker.stories.js +43 -0
- package/date-range-picker/index.d.ts +3 -0
- package/date-range-picker/index.js +5 -0
- package/date-range-picker/types.d.ts +5 -0
- package/date-range-picker/types.js +2 -0
- package/date-range-picker-input/README.md +1 -0
- package/date-range-picker-input/date-range-picker-input.d.ts +17 -0
- package/date-range-picker-input/date-range-picker-input.js +62 -0
- package/date-range-picker-input/date-range-picker-input.spec.d.ts +1 -0
- package/date-range-picker-input/date-range-picker-input.spec.js +9 -0
- package/date-range-picker-input/date-range-picker-input.stories.d.ts +10 -0
- package/date-range-picker-input/date-range-picker-input.stories.js +53 -0
- package/date-range-picker-input/index.d.ts +2 -0
- package/date-range-picker-input/index.js +5 -0
- package/datetime-picker/README.md +13 -0
- package/datetime-picker/datetime-picker.d.ts +3 -1
- package/datetime-picker/datetime-picker.js +5 -5
- package/datetime-picker/index.d.ts +1 -1
- package/datetime-picker/index.js +2 -2
- package/datetime-picker-input/README.md +1 -0
- package/datetime-picker-input/datetime-picker-input.d.ts +2 -0
- package/datetime-picker-input/datetime-picker-input.js +5 -3
- package/datetime-picker-input/datetime-picker-input.stories.js +1 -1
- package/datetime-picker-input/index.d.ts +1 -1
- package/datetime-picker-input/index.js +2 -2
- package/dialog/dialog.d.ts +9 -0
- package/{modal/modal-dialog.js → dialog/dialog.js} +8 -9
- package/dialog/dialog.spec.d.ts +1 -0
- package/dialog/dialog.spec.js +9 -0
- package/dialog/dialog.stories.d.ts +7 -0
- package/dialog/dialog.stories.js +47 -0
- package/dialog/index.d.ts +2 -0
- package/dialog/index.js +5 -0
- package/dropdown/README.md +1 -0
- package/dropdown/dropdown.stories.js +2 -2
- package/dropdown/index.d.ts +1 -1
- package/dropzone/README.md +8 -0
- package/dropzone/dropzone-input.js +10 -6
- package/dropzone/dropzone.stories.js +7 -7
- package/error-message/README.md +7 -0
- package/error-message/error-message.stories.js +1 -1
- package/file-input/README.md +11 -0
- package/file-input/file-input.d.ts +3 -0
- package/file-input/file-input.js +10 -22
- package/file-input/file-input.stories.js +5 -5
- package/file-input/index.d.ts +1 -1
- package/flash-messages/README.md +23 -0
- package/flash-messages/flash-message.d.ts +1 -1
- package/flash-messages/flash-message.js +1 -1
- package/flash-messages/flash-messages.js +52 -18
- package/flash-messages/flash-messages.stories.js +12 -0
- package/flash-messages/index.d.ts +2 -2
- package/flash-messages/index.js +4 -4
- package/form-component/README.md +7 -0
- package/form-component/index.d.ts +1 -1
- package/hooks/use-dropdown.d.ts +16 -8
- package/icon/README.md +11 -0
- package/icon/icon.stories.js +1 -1
- package/icon/index.d.ts +1 -1
- package/image-gallery/components/close-button.d.ts +2 -1
- package/image-gallery/components/close-button.js +2 -3
- package/image-gallery/components/gallery.d.ts +4 -1
- package/image-gallery/components/gallery.js +6 -5
- package/image-gallery/components/next-button.d.ts +7 -0
- package/image-gallery/components/next-button.js +14 -0
- package/image-gallery/components/prev-button.d.ts +7 -0
- package/image-gallery/components/prev-button.js +14 -0
- package/image-gallery/image-gallery.d.ts +4 -1
- package/image-gallery/image-gallery.js +2 -2
- package/image-gallery/image-gallery.stories.js +5 -1
- package/image-gallery/image.d.ts +1 -1
- package/image-gallery/image.js +1 -1
- package/image-gallery/use-image.js +1 -1
- package/input/README.md +8 -0
- package/input/input-element.d.ts +1 -0
- package/input/input-element.js +1 -1
- package/input/input.d.ts +2 -2
- package/input/input.js +3 -3
- package/input/input.stories.js +3 -3
- package/label/README.md +7 -0
- package/label/index.d.ts +1 -1
- package/label/label.stories.js +1 -1
- package/layout/index.d.ts +1 -1
- package/layout/layout.js +28 -28
- package/list-item/README.md +7 -0
- package/list-item/index.d.ts +1 -1
- package/list-item/list-item.stories.js +1 -1
- package/loader/README.md +7 -0
- package/loader/index.d.ts +1 -1
- package/message/README.md +1 -0
- package/message/index.d.ts +3 -0
- package/message/index.js +7 -0
- package/message/message-content.d.ts +17 -0
- package/message/message-content.js +41 -0
- package/message/message-service.d.ts +13 -0
- package/message/message-service.js +29 -0
- package/message/message.d.ts +20 -0
- package/message/message.js +47 -0
- package/message/message.spec.d.ts +1 -0
- package/message/message.spec.js +9 -0
- package/message/message.stories.d.ts +7 -0
- package/message/message.stories.js +82 -0
- package/message/theme.d.ts +12 -0
- package/message/theme.js +2 -0
- package/modal/README.md +24 -0
- package/modal/index.d.ts +3 -2
- package/modal/index.js +3 -3
- package/modal/modal.d.ts +5 -4
- package/modal/modal.js +9 -9
- package/modal/modal.stories.js +12 -0
- package/modal/theme.d.ts +3 -0
- package/multi-combobox/README.md +10 -0
- package/multi-combobox/_multi-combobox-base.js +28 -22
- package/multi-combobox/multi-combobox.js +1 -1
- package/multi-combobox/multi-combobox.stories.js +7 -4
- package/multi-combobox/types.d.ts +5 -1
- package/multi-select/README.md +11 -0
- package/multi-select/_multi-select-base.js +21 -21
- package/multi-select/index.d.ts +1 -1
- package/multi-select/multi-select.js +1 -1
- package/multi-select/multi-select.stories.js +6 -3
- package/multi-select/types.d.ts +1 -1
- package/package.json +17 -10
- package/pagination/README.md +31 -0
- package/pagination/index.d.ts +1 -1
- package/pagination/pagination.d.ts +1 -1
- package/pagination/pagination.js +2 -2
- package/pagination/pagination.stories.d.ts +0 -3
- package/pagination/pagination.stories.js +14 -30
- package/paper/README.md +7 -0
- package/paper/index.d.ts +1 -1
- package/paper/paper.stories.js +1 -1
- package/radio/README.md +7 -0
- package/radio/index.d.ts +1 -1
- package/radio/radio.stories.js +1 -1
- package/radio-group/README.md +8 -0
- package/radio-group/index.d.ts +2 -2
- package/radio-group/radio-group.d.ts +3 -3
- package/radio-group/radio-group.js +2 -2
- package/radio-group/radio-group.stories.js +5 -5
- package/raster-image/README.md +7 -0
- package/raster-image/index.d.ts +1 -1
- package/raster-image/raster-image.js +1 -1
- package/scripts/generate-tw-tokens.js +40 -32
- package/select/README.md +11 -0
- package/select/index.d.ts +1 -1
- package/select/select.d.ts +1 -1
- package/select/select.js +1 -1
- package/select/select.stories.d.ts +2 -1
- package/select/select.stories.js +9 -3
- package/tabs/README.md +7 -0
- package/tabs/index.d.ts +1 -1
- package/text-input/README.md +10 -0
- package/text-input/index.d.ts +1 -1
- package/text-input/text-input.d.ts +1 -0
- package/text-input/text-input.js +2 -2
- package/text-link/README.md +19 -0
- package/text-link/index.d.ts +1 -1
- package/text-link/text-link.d.ts +1 -1
- package/textarea/README.md +9 -0
- package/textarea/index.d.ts +1 -1
- package/textarea/textarea.js +5 -5
- package/textarea/textarea.stories.js +1 -1
- package/time-picker/README.md +8 -0
- package/time-picker/index.d.ts +1 -1
- package/time-picker/time-picker-hour.js +6 -6
- package/time-picker/time-picker-hours.js +2 -2
- package/time-picker/time-picker-minute.js +6 -6
- package/time-picker/time-picker-minutes.js +2 -2
- package/time-picker/time-picker.d.ts +2 -1
- package/time-picker/time-picker.js +7 -6
- package/time-picker-input/README.md +9 -0
- package/time-picker-input/index.d.ts +1 -1
- package/time-picker-input/index.js +3 -3
- package/time-picker-input/time-picker-input.js +6 -4
- package/time-picker-input/time-picker-input.stories.js +1 -1
- package/toggle/README.md +7 -0
- package/toggle/index.d.ts +1 -1
- package/toggle/toggle.js +8 -8
- package/toggle/toggle.stories.js +1 -1
- package/tooltip/README.md +7 -0
- package/tooltip/index.d.ts +2 -2
- package/tooltip/tooltip.js +27 -25
- package/tooltip/tooltip.stories.js +1 -1
- package/tooltip/use-tooltip.d.ts +19 -11
- package/tooltip/use-tooltip.js +15 -15
- package/tw-tokens/tw-colors.d.ts +283 -282
- package/tw-tokens/tw-colors.js +283 -282
- package/tw-tokens/tw-line-height.d.ts +8 -8
- package/tw-tokens/tw-line-height.js +8 -8
- package/tw-tokens/tw-spacing.d.ts +34 -34
- package/tw-tokens/tw-spacing.js +34 -34
- package/tw-tokens/tw-z-index.d.ts +7 -7
- package/tw-tokens/tw-z-index.js +7 -7
- package/types/index.d.ts +1 -1
- package/types/index.js +1 -1
- package/typography/README.md +7 -0
- package/utils/action.d.ts +2 -1
- package/utils/action.js +2 -2
- package/utils/icons-config.js +13 -3
- package/utils/mocks/{uploadFIle.mock.js → upload-file.mock.js} +1 -1
- package/utils/snap-test.js +1 -1
- package/utils/storybook-config.d.ts +12 -2
- package/utils/storybook-config.js +9 -1
- package/utils/tailwind-config.js +10 -1
- package/image-gallery/components/arrow-button.d.ts +0 -7
- package/image-gallery/components/arrow-button.js +0 -14
- package/modal/modal-dialog.d.ts +0 -11
- /package/utils/mocks/{uploadFIle.mock.d.ts → upload-file.mock.d.ts} +0 -0
package/css/button.css
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&--full-width {
|
|
20
|
-
@apply w-full flex
|
|
20
|
+
@apply flex w-full flex-row justify-center;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&.is-disabled {
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
&--size-xs {
|
|
57
|
-
|
|
57
|
+
@apply rounded px-2.5 text-xs;
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
height: theme("inputSize.xs");
|
|
60
60
|
|
|
61
61
|
&.is-loading::after {
|
|
62
62
|
height: 14px;
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
&.uxf-button--icon-button {
|
|
67
|
-
width: theme("inputSize.xs");
|
|
68
|
-
|
|
69
67
|
@apply p-0;
|
|
68
|
+
|
|
69
|
+
width: theme("inputSize.xs");
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.uxf-icon {
|
|
@@ -75,19 +75,19 @@
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&--size-sm {
|
|
78
|
-
height: theme("inputSize.sm");
|
|
79
|
-
|
|
80
78
|
@apply px-3 text-sm leading-4;
|
|
81
79
|
|
|
80
|
+
height: theme("inputSize.sm");
|
|
81
|
+
|
|
82
82
|
&.is-loading::after {
|
|
83
83
|
height: 16px;
|
|
84
84
|
width: 16px;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
&.uxf-button--icon-button {
|
|
88
|
-
width: theme("inputSize.sm");
|
|
89
|
-
|
|
90
88
|
@apply p-0;
|
|
89
|
+
|
|
90
|
+
width: theme("inputSize.sm");
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.uxf-icon {
|
|
@@ -96,10 +96,10 @@
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
&--size-default {
|
|
99
|
-
height: theme("inputSize.default");
|
|
100
|
-
|
|
101
99
|
@apply px-4 text-sm;
|
|
102
100
|
|
|
101
|
+
height: theme("inputSize.default");
|
|
102
|
+
|
|
103
103
|
&.uxf-button--icon-button {
|
|
104
104
|
width: theme("inputSize.default");
|
|
105
105
|
|
|
@@ -108,10 +108,10 @@
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
&--size-lg {
|
|
111
|
-
height: theme("inputSize.lg");
|
|
112
|
-
|
|
113
111
|
@apply px-4 text-base;
|
|
114
112
|
|
|
113
|
+
height: theme("inputSize.lg");
|
|
114
|
+
|
|
115
115
|
&.uxf-button--icon-button {
|
|
116
116
|
width: theme("inputSize.lg");
|
|
117
117
|
|
|
@@ -120,14 +120,14 @@
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
&--size-xl {
|
|
123
|
-
height: theme("inputSize.xl");
|
|
124
|
-
|
|
125
123
|
@apply px-6 text-base;
|
|
126
124
|
|
|
127
|
-
|
|
128
|
-
width: theme("inputSize.xl");
|
|
125
|
+
height: theme("inputSize.xl");
|
|
129
126
|
|
|
127
|
+
&.uxf-button--icon-button {
|
|
130
128
|
@apply p-0;
|
|
129
|
+
|
|
130
|
+
width: theme("inputSize.xl");
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
|
|
@@ -146,11 +146,11 @@
|
|
|
146
146
|
@apply focus-visible:ring-primary;
|
|
147
147
|
|
|
148
148
|
:root .light & {
|
|
149
|
-
@apply
|
|
149
|
+
@apply border-primary text-primary is-hoverable:border-primary-700 is-hoverable:text-primary-700;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
:root .dark & {
|
|
153
|
-
@apply
|
|
153
|
+
@apply border-primary text-primary is-hoverable:border-primary-300 is-hoverable:text-primary-300;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
|
|
@@ -158,11 +158,23 @@
|
|
|
158
158
|
@apply focus-visible:ring-success;
|
|
159
159
|
|
|
160
160
|
:root .light & {
|
|
161
|
-
@apply
|
|
161
|
+
@apply border-success text-success is-hoverable:border-success-700 is-hoverable:text-success-700;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
:root .dark & {
|
|
165
|
-
@apply
|
|
165
|
+
@apply border-success text-success is-hoverable:border-success-300 is-hoverable:text-success-300;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&.uxf-button--color-warning {
|
|
170
|
+
@apply focus-visible:ring-warning;
|
|
171
|
+
|
|
172
|
+
:root .light & {
|
|
173
|
+
@apply border-warning text-warning is-hoverable:border-warning-700 is-hoverable:text-warning-700;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:root .dark & {
|
|
177
|
+
@apply border-warning text-warning is-hoverable:border-warning-300 is-hoverable:text-warning-300;
|
|
166
178
|
}
|
|
167
179
|
}
|
|
168
180
|
|
|
@@ -170,21 +182,21 @@
|
|
|
170
182
|
@apply focus-visible:ring-error;
|
|
171
183
|
|
|
172
184
|
:root .light & {
|
|
173
|
-
@apply
|
|
185
|
+
@apply border-error text-error is-hoverable:border-error-700 is-hoverable:text-error-700;
|
|
174
186
|
}
|
|
175
187
|
|
|
176
188
|
:root .dark & {
|
|
177
|
-
@apply
|
|
189
|
+
@apply border-error text-error is-hoverable:border-error-300 is-hoverable:text-error-300;
|
|
178
190
|
}
|
|
179
191
|
}
|
|
180
192
|
|
|
181
193
|
&.is-disabled {
|
|
182
194
|
:root .light & {
|
|
183
|
-
@apply border-gray-300 bg-gray-300
|
|
195
|
+
@apply text-lightLow border-gray-300 bg-gray-300;
|
|
184
196
|
}
|
|
185
197
|
|
|
186
198
|
:root .dark & {
|
|
187
|
-
@apply border-gray-700 bg-gray-700
|
|
199
|
+
@apply text-darkLow border-gray-700 bg-gray-700;
|
|
188
200
|
}
|
|
189
201
|
}
|
|
190
202
|
}
|
|
@@ -209,7 +221,7 @@
|
|
|
209
221
|
|
|
210
222
|
&.is-disabled {
|
|
211
223
|
:root .light & {
|
|
212
|
-
@apply bg-gray-300
|
|
224
|
+
@apply text-lightLow bg-gray-300;
|
|
213
225
|
}
|
|
214
226
|
|
|
215
227
|
:root .dark & {
|
|
@@ -231,7 +243,7 @@
|
|
|
231
243
|
|
|
232
244
|
&.is-disabled {
|
|
233
245
|
:root .light & {
|
|
234
|
-
@apply bg-gray-300
|
|
246
|
+
@apply text-lightLow bg-gray-300;
|
|
235
247
|
}
|
|
236
248
|
|
|
237
249
|
:root .dark & {
|
|
@@ -253,7 +265,29 @@
|
|
|
253
265
|
|
|
254
266
|
&.is-disabled {
|
|
255
267
|
:root .light & {
|
|
256
|
-
@apply bg-gray-300
|
|
268
|
+
@apply text-lightLow bg-gray-300;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
:root .dark & {
|
|
272
|
+
@apply bg-gray-600 text-gray-400;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
&.uxf-button--color-warning {
|
|
278
|
+
@apply focus-visible:ring-warning;
|
|
279
|
+
|
|
280
|
+
:root .light & {
|
|
281
|
+
@apply bg-warning is-hoverable:bg-warning-700;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
:root .dark & {
|
|
285
|
+
@apply bg-warning is-hoverable:bg-warning-400;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
&.is-disabled {
|
|
289
|
+
:root .light & {
|
|
290
|
+
@apply text-lightLow bg-gray-300;
|
|
257
291
|
}
|
|
258
292
|
|
|
259
293
|
:root .dark & {
|
|
@@ -264,14 +298,14 @@
|
|
|
264
298
|
}
|
|
265
299
|
|
|
266
300
|
&--variant-white {
|
|
267
|
-
@apply
|
|
301
|
+
@apply focus-visible:ring-primary border;
|
|
268
302
|
|
|
269
303
|
:root .light & {
|
|
270
|
-
@apply border-lightBorder
|
|
304
|
+
@apply border-lightBorder text-lightMedium is-hoverable:bg-gray-100 bg-white;
|
|
271
305
|
}
|
|
272
306
|
|
|
273
307
|
:root .dark & {
|
|
274
|
-
@apply border-darkBorder text-darkMedium
|
|
308
|
+
@apply border-darkBorder bg-lightHigh text-darkMedium is-hoverable:bg-gray-800 is-hoverable:text-darkHigh;
|
|
275
309
|
}
|
|
276
310
|
|
|
277
311
|
&.is-disabled {
|
|
@@ -280,7 +314,7 @@
|
|
|
280
314
|
}
|
|
281
315
|
|
|
282
316
|
:root .dark & {
|
|
283
|
-
@apply text-darkLow
|
|
317
|
+
@apply border-darkBorder text-darkLow;
|
|
284
318
|
}
|
|
285
319
|
}
|
|
286
320
|
}
|
|
@@ -322,6 +356,18 @@
|
|
|
322
356
|
}
|
|
323
357
|
}
|
|
324
358
|
|
|
359
|
+
&.uxf-button--color-warning {
|
|
360
|
+
@apply text-warning;
|
|
361
|
+
|
|
362
|
+
:root .light & {
|
|
363
|
+
@apply is-hoverable:text-warning-700;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
:root .dark & {
|
|
367
|
+
@apply is-hoverable:text-warning-300;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
325
371
|
&.is-disabled {
|
|
326
372
|
:root .light & {
|
|
327
373
|
@apply text-lightLow;
|
package/css/calendar.css
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
.uxf-calendar {
|
|
2
|
-
&__cell
|
|
2
|
+
&__cell {
|
|
3
|
+
--bg-color: unset;
|
|
4
|
+
--color: unset;
|
|
5
|
+
--compensated-radii: calc(theme("borderRadius.md") - theme("spacing.px"));
|
|
6
|
+
|
|
3
7
|
align-items: center;
|
|
8
|
+
background-color: var(--bg-color);
|
|
9
|
+
color: var(--color);
|
|
4
10
|
display: flex;
|
|
5
11
|
font-size: 14px;
|
|
6
12
|
font-weight: theme("fontWeight.medium");
|
|
@@ -12,22 +18,22 @@
|
|
|
12
18
|
text-align: center;
|
|
13
19
|
|
|
14
20
|
:root .light & {
|
|
15
|
-
|
|
16
|
-
color: theme("colors.lightMedium");
|
|
21
|
+
--bg-color: theme("backgroundColor.white");
|
|
22
|
+
--color: theme("colors.lightMedium");
|
|
17
23
|
}
|
|
18
24
|
|
|
19
25
|
:root .dark & {
|
|
20
|
-
|
|
21
|
-
color: theme("colors.darkMedium");
|
|
26
|
+
--bg-color: theme("backgroundColor.gray.900");
|
|
27
|
+
--color: theme("colors.darkMedium");
|
|
22
28
|
}
|
|
23
29
|
|
|
24
30
|
&:hover {
|
|
25
31
|
:root .light & {
|
|
26
|
-
|
|
32
|
+
--bg-color: theme("backgroundColor.gray.50");
|
|
27
33
|
}
|
|
28
34
|
|
|
29
35
|
:root .dark & {
|
|
30
|
-
|
|
36
|
+
--bg-color: theme("backgroundColor.gray.950");
|
|
31
37
|
}
|
|
32
38
|
}
|
|
33
39
|
|
|
@@ -41,60 +47,63 @@
|
|
|
41
47
|
}
|
|
42
48
|
}
|
|
43
49
|
|
|
44
|
-
&.is-disabled{
|
|
50
|
+
&.is-disabled {
|
|
45
51
|
cursor: auto;
|
|
46
52
|
|
|
47
53
|
:root .light & {
|
|
48
|
-
|
|
54
|
+
--bg-color: theme("backgroundColor.gray.100");
|
|
49
55
|
}
|
|
50
56
|
|
|
51
57
|
:root .dark & {
|
|
52
|
-
|
|
58
|
+
--bg-color: theme("backgroundColor.gray.800");
|
|
53
59
|
}
|
|
54
60
|
}
|
|
55
61
|
|
|
56
|
-
--compensated-radii: calc(theme("borderRadius.md") - theme("spacing.px"));
|
|
57
|
-
|
|
58
62
|
&:first-child {
|
|
59
63
|
border-top-left-radius: var(--compensated-radii);
|
|
60
64
|
}
|
|
61
65
|
|
|
62
|
-
&:nth-child(7) {
|
|
63
|
-
border-top-right-radius: var(--compensated-radii);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&:nth-last-child(7) {
|
|
67
|
-
border-bottom-left-radius: var(--compensated-radii);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
66
|
&:last-child {
|
|
71
67
|
border-bottom-right-radius: var(--compensated-radii);
|
|
72
68
|
}
|
|
73
69
|
|
|
74
70
|
&--selected {
|
|
75
|
-
:root .light
|
|
76
|
-
background-color: theme("backgroundColor.primary.500");
|
|
77
|
-
color: theme("colors.white");
|
|
78
|
-
}
|
|
79
|
-
|
|
71
|
+
:root .light &,
|
|
80
72
|
:root .dark & {
|
|
81
|
-
|
|
82
|
-
color: theme("colors.white");
|
|
73
|
+
--bg-color: theme("backgroundColor.primary.500");
|
|
74
|
+
--color: theme("colors.white");
|
|
83
75
|
}
|
|
84
76
|
|
|
85
77
|
&:hover {
|
|
86
|
-
:root .light
|
|
87
|
-
background-color: theme("backgroundColor.primary.500");
|
|
88
|
-
}
|
|
89
|
-
|
|
78
|
+
:root .light &,
|
|
90
79
|
:root .dark & {
|
|
91
|
-
|
|
80
|
+
--bg-color: theme("backgroundColor.primary.500");
|
|
92
81
|
}
|
|
93
82
|
}
|
|
94
83
|
}
|
|
95
84
|
|
|
85
|
+
&--inside-range {
|
|
86
|
+
background-color: theme("backgroundColor.primary.100");
|
|
87
|
+
color: theme("colors.lightMedium");
|
|
88
|
+
|
|
89
|
+
:root .dark & {
|
|
90
|
+
background-color: theme("backgroundColor.primary.900");
|
|
91
|
+
color: theme("colors.darkMedium");
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&--is-hovered {
|
|
96
|
+
background-color: theme("backgroundColor.primary.100");
|
|
97
|
+
color: theme("colors.lightMedium");
|
|
98
|
+
|
|
99
|
+
:root .dark & {
|
|
100
|
+
background-color: theme("backgroundColor.primary.900");
|
|
101
|
+
color: theme("colors.darkMedium");
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
96
105
|
&--today {
|
|
97
|
-
.uxf-
|
|
106
|
+
.uxf-calendar__cell__inner {
|
|
98
107
|
align-items: center;
|
|
99
108
|
border-radius: 999px;
|
|
100
109
|
display: inline-flex;
|
|
@@ -104,47 +113,67 @@
|
|
|
104
113
|
width: 32px;
|
|
105
114
|
|
|
106
115
|
:root .light & {
|
|
107
|
-
|
|
108
|
-
color: theme("colors.white");
|
|
116
|
+
--bg-color: theme("backgroundColor.lightHigh");
|
|
117
|
+
--color: theme("colors.white");
|
|
109
118
|
}
|
|
110
119
|
|
|
111
120
|
:root .dark & {
|
|
121
|
+
--bg-color: theme("backgroundColor.transparent");
|
|
122
|
+
--color: theme("colors.white");
|
|
123
|
+
|
|
124
|
+
border: 2px solid theme("colors.darkMedium");
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&.uxf-calendar__cell--selected {
|
|
129
|
+
.uxf-calendar__cell__inner {
|
|
112
130
|
background-color: theme("backgroundColor.transparent");
|
|
113
131
|
border: 2px solid theme("colors.darkMedium");
|
|
114
132
|
color: theme("colors.white");
|
|
115
133
|
}
|
|
116
134
|
}
|
|
117
135
|
|
|
118
|
-
&.uxf-calendar__cell-
|
|
119
|
-
.uxf-
|
|
120
|
-
background-color: theme("backgroundColor.
|
|
136
|
+
&.uxf-calendar__cell--inside-range {
|
|
137
|
+
.uxf-calendar__cell__inner {
|
|
138
|
+
background-color: theme("backgroundColor.lightHigh");
|
|
139
|
+
border: 2px solid theme("colors.lightHigh");
|
|
140
|
+
border-radius: 999px;
|
|
121
141
|
color: theme("colors.white");
|
|
122
|
-
|
|
142
|
+
|
|
143
|
+
:root .dark & {
|
|
144
|
+
background-color: theme("backgroundColor.transparent");
|
|
145
|
+
border: 2px solid theme("colors.darkMedium");
|
|
146
|
+
color: theme("colors.white");
|
|
147
|
+
}
|
|
123
148
|
}
|
|
124
149
|
}
|
|
125
150
|
}
|
|
126
151
|
|
|
127
152
|
&--not-current-month {
|
|
128
153
|
:root .light & {
|
|
129
|
-
|
|
130
|
-
color: theme("colors.lightLow");
|
|
154
|
+
--bg-color: theme("backgroundColor.gray.100");
|
|
155
|
+
--color: theme("colors.lightLow");
|
|
131
156
|
}
|
|
132
157
|
|
|
133
158
|
:root .dark & {
|
|
134
|
-
|
|
135
|
-
color: theme("colors.darkLow");
|
|
159
|
+
--bg-color: theme("backgroundColor.gray.800");
|
|
160
|
+
--color: theme("colors.darkLow");
|
|
136
161
|
}
|
|
137
162
|
}
|
|
138
163
|
}
|
|
139
164
|
|
|
140
|
-
&__cell-
|
|
141
|
-
|
|
142
|
-
|
|
165
|
+
&__cell-day {
|
|
166
|
+
&:nth-child(7) {
|
|
167
|
+
border-top-right-radius: var(--compensated-radii);
|
|
168
|
+
}
|
|
143
169
|
|
|
144
|
-
&:
|
|
145
|
-
border-
|
|
170
|
+
&:nth-last-child(7) {
|
|
171
|
+
border-bottom-left-radius: var(--compensated-radii);
|
|
146
172
|
}
|
|
173
|
+
}
|
|
147
174
|
|
|
175
|
+
&__cell-month,
|
|
176
|
+
&__cell-year {
|
|
148
177
|
&:nth-child(3) {
|
|
149
178
|
border-top-right-radius: var(--compensated-radii);
|
|
150
179
|
}
|
|
@@ -152,9 +181,16 @@
|
|
|
152
181
|
&:nth-last-child(3) {
|
|
153
182
|
border-bottom-left-radius: var(--compensated-radii);
|
|
154
183
|
}
|
|
184
|
+
}
|
|
155
185
|
|
|
156
|
-
|
|
157
|
-
|
|
186
|
+
&__cell-hour,
|
|
187
|
+
&__cell-minute {
|
|
188
|
+
&:nth-child(6) {
|
|
189
|
+
border-top-right-radius: var(--compensated-radii);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&:nth-last-child(6) {
|
|
193
|
+
border-bottom-left-radius: var(--compensated-radii);
|
|
158
194
|
}
|
|
159
195
|
}
|
|
160
196
|
|
|
@@ -188,7 +224,9 @@
|
|
|
188
224
|
|
|
189
225
|
&__days,
|
|
190
226
|
&__year,
|
|
191
|
-
&__decade
|
|
227
|
+
&__decade,
|
|
228
|
+
&__hours,
|
|
229
|
+
&__minutes {
|
|
192
230
|
border-radius: 6px;
|
|
193
231
|
display: grid;
|
|
194
232
|
gap: 1px;
|
|
@@ -212,4 +250,30 @@
|
|
|
212
250
|
&__decade {
|
|
213
251
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
214
252
|
}
|
|
253
|
+
|
|
254
|
+
&__hours,
|
|
255
|
+
&__minutes {
|
|
256
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.uxf-calendar-navigation {
|
|
261
|
+
align-items: center;
|
|
262
|
+
display: flex;
|
|
263
|
+
justify-content: space-between;
|
|
264
|
+
margin-bottom: theme("spacing.4");
|
|
265
|
+
|
|
266
|
+
&__title {
|
|
267
|
+
font-size: 14px;
|
|
268
|
+
font-weight: theme("fontWeight.medium");
|
|
269
|
+
text-align: center;
|
|
270
|
+
|
|
271
|
+
:root .light & {
|
|
272
|
+
@apply text-lightMedium is-hoverable:text-lightHigh;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
:root .dark & {
|
|
276
|
+
@apply text-darkMedium is-hoverable:text-darkHigh;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
215
279
|
}
|
package/css/checkbox-button.css
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
.uxf-checkbox-button {
|
|
2
|
-
@apply
|
|
3
|
-
|
|
4
|
-
before:transition focus-visible:ring-
|
|
2
|
+
@apply relative inline-flex shrink-0 items-center justify-between space-x-4 rounded-lg px-4 py-3 outline-none
|
|
3
|
+
transition before:absolute before:inset-0 before:rounded-lg before:border before:border-transparent
|
|
4
|
+
before:transition focus-visible:ring-2 focus-visible:ring-offset-2;
|
|
5
5
|
|
|
6
6
|
&__icon {
|
|
7
|
-
@apply
|
|
8
|
-
before:
|
|
7
|
+
@apply relative h-5 w-5 rounded bg-white p-1 text-transparent before:absolute before:inset-0 before:rounded
|
|
8
|
+
before:border before:transition;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
:root .light & {
|
|
12
|
-
@apply
|
|
12
|
+
@apply focus-visible:ring-primary bg-gray-200;
|
|
13
13
|
|
|
14
14
|
.uxf-checkbox-button__icon {
|
|
15
15
|
@apply before:border-gray-600;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&.is-disabled {
|
|
35
|
-
@apply bg-gray-100
|
|
35
|
+
@apply pointer-events-none bg-gray-100;
|
|
36
36
|
|
|
37
37
|
.uxf-checkbox-button__icon {
|
|
38
38
|
@apply before:border-gray-300;
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
:root .dark & {
|
|
60
|
-
@apply
|
|
60
|
+
@apply focus-visible:ring-primary bg-gray-800 focus-visible:ring-offset-gray-900;
|
|
61
61
|
|
|
62
62
|
.uxf-checkbox-button__icon {
|
|
63
63
|
@apply before:border-transparent;
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
&.is-selected {
|
|
71
|
-
@apply text-white
|
|
71
|
+
@apply bg-primary text-white;
|
|
72
72
|
|
|
73
73
|
.uxf-checkbox-button__icon {
|
|
74
74
|
@apply text-primary before:border-transparent;
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
&.is-disabled {
|
|
83
|
-
@apply bg-gray-800
|
|
83
|
+
@apply pointer-events-none bg-gray-800;
|
|
84
84
|
|
|
85
85
|
&.is-selected {
|
|
86
86
|
@apply bg-gray-600;
|
package/css/checkbox.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.uxf-checkbox {
|
|
2
|
-
@apply relative shrink-0
|
|
3
|
-
focus-visible:before:
|
|
4
|
-
focus-visible:before:
|
|
2
|
+
@apply relative flex shrink-0 items-center justify-center rounded border outline-none transition
|
|
3
|
+
focus-visible:before:absolute focus-visible:before:inset-[-5px]
|
|
4
|
+
focus-visible:before:rounded-lg focus-visible:before:border-2;
|
|
5
5
|
|
|
6
6
|
&__inner {
|
|
7
7
|
@apply hidden;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
@apply h-4 w-4;
|
|
12
12
|
|
|
13
13
|
.uxf-checkbox__inner {
|
|
14
|
-
@apply
|
|
14
|
+
@apply h-2.5 w-2.5;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@apply h-6 w-6;
|
|
20
20
|
|
|
21
21
|
.uxf-checkbox__inner {
|
|
22
|
-
@apply
|
|
22
|
+
@apply h-4 w-4;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
:root .light & {
|
|
38
|
-
@apply
|
|
38
|
+
@apply focus-visible:before:border-primary border-gray-400 bg-white;
|
|
39
39
|
|
|
40
40
|
&.is-selected {
|
|
41
|
-
@apply bg-primary
|
|
41
|
+
@apply bg-primary is-hoverable:bg-primary-700 border-transparent;
|
|
42
42
|
|
|
43
43
|
.uxf-checkbox__inner {
|
|
44
44
|
@apply text-white;
|
|
@@ -77,10 +77,10 @@
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
:root .dark & {
|
|
80
|
-
@apply
|
|
80
|
+
@apply focus-visible:before:border-primary border-gray-400 bg-gray-900;
|
|
81
81
|
|
|
82
82
|
&.is-selected {
|
|
83
|
-
@apply bg-primary
|
|
83
|
+
@apply bg-primary is-hoverable:bg-primary-300 border-transparent;
|
|
84
84
|
|
|
85
85
|
.uxf-checkbox__inner {
|
|
86
86
|
@apply text-white;
|