@uxf/ui 10.0.0-beta.9 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +3 -2
- package/_select-base/_select-base.js +6 -5
- 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 +5 -3
- package/chip/chip.stories.js +37 -31
- 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.js +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/create-component-preview-page/create-component-preview-page.d.ts +8 -0
- package/create-component-preview-page/create-component-preview-page.js +40 -0
- package/create-component-preview-page/index.d.ts +2 -0
- package/create-component-preview-page/index.js +18 -0
- package/create-component-preview-page/ui-components.d.ts +237 -0
- package/create-component-preview-page/ui-components.js +263 -0
- package/create-component-preview-page/ui-readmes.d.ts +2 -0
- package/create-component-preview-page/ui-readmes.js +102 -0
- 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 +5 -3
- 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/date-picker.stories.js +2 -1
- 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 +11 -0
- package/{modal/modal-dialog.js → dialog/dialog.js} +9 -10
- 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/dialog/theme.d.ts +4 -0
- package/dialog/theme.js +2 -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-list.js +2 -16
- 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 +6 -4
- package/modal/modal.js +9 -9
- package/modal/modal.stories.js +12 -0
- package/modal/theme.d.ts +7 -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 -12
- 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 -4
- package/select/select.js +2 -2
- 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-input.stories.js +2 -1
- 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/files/get-file-icon.d.ts +2 -0
- package/utils/files/get-file-icon.js +19 -0
- 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
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.twLineHeight = void 0;
|
|
5
5
|
exports.twLineHeight = {
|
|
6
|
-
3: ".75rem",
|
|
7
|
-
4: "1rem",
|
|
8
|
-
5: "1.25rem",
|
|
9
|
-
6: "1.5rem",
|
|
10
|
-
7: "1.75rem",
|
|
11
|
-
8: "2rem",
|
|
12
|
-
9: "2.25rem",
|
|
13
|
-
10: "2.5rem",
|
|
6
|
+
"3": ".75rem",
|
|
7
|
+
"4": "1rem",
|
|
8
|
+
"5": "1.25rem",
|
|
9
|
+
"6": "1.5rem",
|
|
10
|
+
"7": "1.75rem",
|
|
11
|
+
"8": "2rem",
|
|
12
|
+
"9": "2.25rem",
|
|
13
|
+
"10": "2.5rem",
|
|
14
14
|
none: "1",
|
|
15
15
|
tight: "1.25",
|
|
16
16
|
snug: "1.375",
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
export declare const twSpacing: {
|
|
2
|
-
0: string;
|
|
3
|
-
1: string;
|
|
4
|
-
2: string;
|
|
5
|
-
3: string;
|
|
6
|
-
4: string;
|
|
7
|
-
5: string;
|
|
8
|
-
6: string;
|
|
9
|
-
7: string;
|
|
10
|
-
8: string;
|
|
11
|
-
9: string;
|
|
12
|
-
10: string;
|
|
13
|
-
11: string;
|
|
14
|
-
12: string;
|
|
15
|
-
14: string;
|
|
16
|
-
16: string;
|
|
17
|
-
20: string;
|
|
18
|
-
24: string;
|
|
19
|
-
28: string;
|
|
20
|
-
32: string;
|
|
21
|
-
36: string;
|
|
22
|
-
40: string;
|
|
23
|
-
44: string;
|
|
24
|
-
48: string;
|
|
25
|
-
52: string;
|
|
26
|
-
56: string;
|
|
27
|
-
60: string;
|
|
28
|
-
64: string;
|
|
29
|
-
72: string;
|
|
30
|
-
80: string;
|
|
31
|
-
96: string;
|
|
2
|
+
"0": string;
|
|
3
|
+
"1": string;
|
|
4
|
+
"2": string;
|
|
5
|
+
"3": string;
|
|
6
|
+
"4": string;
|
|
7
|
+
"5": string;
|
|
8
|
+
"6": string;
|
|
9
|
+
"7": string;
|
|
10
|
+
"8": string;
|
|
11
|
+
"9": string;
|
|
12
|
+
"10": string;
|
|
13
|
+
"11": string;
|
|
14
|
+
"12": string;
|
|
15
|
+
"14": string;
|
|
16
|
+
"16": string;
|
|
17
|
+
"20": string;
|
|
18
|
+
"24": string;
|
|
19
|
+
"28": string;
|
|
20
|
+
"32": string;
|
|
21
|
+
"36": string;
|
|
22
|
+
"40": string;
|
|
23
|
+
"44": string;
|
|
24
|
+
"48": string;
|
|
25
|
+
"52": string;
|
|
26
|
+
"56": string;
|
|
27
|
+
"60": string;
|
|
28
|
+
"64": string;
|
|
29
|
+
"72": string;
|
|
30
|
+
"80": string;
|
|
31
|
+
"96": string;
|
|
32
32
|
px: string;
|
|
33
|
-
0.5: string;
|
|
34
|
-
1.5: string;
|
|
35
|
-
2.5: string;
|
|
36
|
-
3.5: string;
|
|
33
|
+
"0.5": string;
|
|
34
|
+
"1.5": string;
|
|
35
|
+
"2.5": string;
|
|
36
|
+
"3.5": string;
|
|
37
37
|
inherit: string;
|
|
38
38
|
};
|
|
39
39
|
export type TwSpacing = typeof twSpacing;
|
package/tw-tokens/tw-spacing.js
CHANGED
|
@@ -3,40 +3,40 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.twSpacing = void 0;
|
|
5
5
|
exports.twSpacing = {
|
|
6
|
-
0: "0px",
|
|
7
|
-
1: "0.25rem",
|
|
8
|
-
2: "0.5rem",
|
|
9
|
-
3: "0.75rem",
|
|
10
|
-
4: "1rem",
|
|
11
|
-
5: "1.25rem",
|
|
12
|
-
6: "1.5rem",
|
|
13
|
-
7: "1.75rem",
|
|
14
|
-
8: "2rem",
|
|
15
|
-
9: "2.25rem",
|
|
16
|
-
10: "2.5rem",
|
|
17
|
-
11: "2.75rem",
|
|
18
|
-
12: "3rem",
|
|
19
|
-
14: "3.5rem",
|
|
20
|
-
16: "4rem",
|
|
21
|
-
20: "5rem",
|
|
22
|
-
24: "6rem",
|
|
23
|
-
28: "7rem",
|
|
24
|
-
32: "8rem",
|
|
25
|
-
36: "9rem",
|
|
26
|
-
40: "10rem",
|
|
27
|
-
44: "11rem",
|
|
28
|
-
48: "12rem",
|
|
29
|
-
52: "13rem",
|
|
30
|
-
56: "14rem",
|
|
31
|
-
60: "15rem",
|
|
32
|
-
64: "16rem",
|
|
33
|
-
72: "18rem",
|
|
34
|
-
80: "20rem",
|
|
35
|
-
96: "24rem",
|
|
6
|
+
"0": "0px",
|
|
7
|
+
"1": "0.25rem",
|
|
8
|
+
"2": "0.5rem",
|
|
9
|
+
"3": "0.75rem",
|
|
10
|
+
"4": "1rem",
|
|
11
|
+
"5": "1.25rem",
|
|
12
|
+
"6": "1.5rem",
|
|
13
|
+
"7": "1.75rem",
|
|
14
|
+
"8": "2rem",
|
|
15
|
+
"9": "2.25rem",
|
|
16
|
+
"10": "2.5rem",
|
|
17
|
+
"11": "2.75rem",
|
|
18
|
+
"12": "3rem",
|
|
19
|
+
"14": "3.5rem",
|
|
20
|
+
"16": "4rem",
|
|
21
|
+
"20": "5rem",
|
|
22
|
+
"24": "6rem",
|
|
23
|
+
"28": "7rem",
|
|
24
|
+
"32": "8rem",
|
|
25
|
+
"36": "9rem",
|
|
26
|
+
"40": "10rem",
|
|
27
|
+
"44": "11rem",
|
|
28
|
+
"48": "12rem",
|
|
29
|
+
"52": "13rem",
|
|
30
|
+
"56": "14rem",
|
|
31
|
+
"60": "15rem",
|
|
32
|
+
"64": "16rem",
|
|
33
|
+
"72": "18rem",
|
|
34
|
+
"80": "20rem",
|
|
35
|
+
"96": "24rem",
|
|
36
36
|
px: "1px",
|
|
37
|
-
0.5: "0.125rem",
|
|
38
|
-
1.5: "0.375rem",
|
|
39
|
-
2.5: "0.625rem",
|
|
40
|
-
3.5: "0.875rem",
|
|
37
|
+
"0.5": "0.125rem",
|
|
38
|
+
"1.5": "0.375rem",
|
|
39
|
+
"2.5": "0.625rem",
|
|
40
|
+
"3.5": "0.875rem",
|
|
41
41
|
inherit: "inherit",
|
|
42
42
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const twZIndex: {
|
|
2
|
-
0: string;
|
|
3
|
-
1: string;
|
|
4
|
-
10: string;
|
|
5
|
-
20: string;
|
|
6
|
-
30: string;
|
|
7
|
-
40: string;
|
|
8
|
-
50: string;
|
|
2
|
+
"0": string;
|
|
3
|
+
"1": string;
|
|
4
|
+
"10": string;
|
|
5
|
+
"20": string;
|
|
6
|
+
"30": string;
|
|
7
|
+
"40": string;
|
|
8
|
+
"50": string;
|
|
9
9
|
auto: string;
|
|
10
10
|
focus: string;
|
|
11
11
|
fixed: string;
|
package/tw-tokens/tw-z-index.js
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.twZIndex = void 0;
|
|
5
5
|
exports.twZIndex = {
|
|
6
|
-
0: "0",
|
|
7
|
-
1: "1",
|
|
8
|
-
10: "10",
|
|
9
|
-
20: "20",
|
|
10
|
-
30: "30",
|
|
11
|
-
40: "40",
|
|
12
|
-
50: "50",
|
|
6
|
+
"0": "0",
|
|
7
|
+
"1": "1",
|
|
8
|
+
"10": "10",
|
|
9
|
+
"20": "20",
|
|
10
|
+
"30": "30",
|
|
11
|
+
"40": "40",
|
|
12
|
+
"50": "50",
|
|
13
13
|
auto: "auto",
|
|
14
14
|
focus: "5",
|
|
15
15
|
fixed: "10",
|
package/types/index.d.ts
CHANGED
package/types/index.js
CHANGED
|
@@ -15,5 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./color"), exports);
|
|
18
|
-
__exportStar(require("./form-control-props"), exports);
|
|
19
18
|
__exportStar(require("./file-response"), exports);
|
|
19
|
+
__exportStar(require("./form-control-props"), exports);
|
package/utils/action.d.ts
CHANGED
package/utils/action.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.action = void 0;
|
|
4
|
-
const addon_actions_1 = require("@storybook/addon-actions");
|
|
5
4
|
function action(name, handler) {
|
|
6
5
|
return function (...args) {
|
|
7
|
-
|
|
6
|
+
// eslint-disable-next-line no-console
|
|
7
|
+
console.log(name, ...args);
|
|
8
8
|
handler(...args);
|
|
9
9
|
};
|
|
10
10
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getIconNameFromFileExtension = void 0;
|
|
4
|
+
function getIconNameFromFileExtension(extension) {
|
|
5
|
+
switch (extension) {
|
|
6
|
+
case "jpg":
|
|
7
|
+
case "jpeg":
|
|
8
|
+
case "png":
|
|
9
|
+
case "gif":
|
|
10
|
+
return "imageFile";
|
|
11
|
+
case "mp4":
|
|
12
|
+
case "avi":
|
|
13
|
+
case "mov":
|
|
14
|
+
return "videoFile";
|
|
15
|
+
default:
|
|
16
|
+
return "file";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.getIconNameFromFileExtension = getIconNameFromFileExtension;
|
package/utils/icons-config.js
CHANGED
|
@@ -95,16 +95,26 @@ module.exports = {
|
|
|
95
95
|
height: 512,
|
|
96
96
|
data: `<path d="m365.3 93.38-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6c0-16.9-6.7-33.2-18.7-45.22zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160V128c0 17.67 14.33 32 32 32h79.1v288zM215.3 292c-4.68 0-9.051 2.34-11.65 6.234L164 357.8l-11.68-17.53c-2.62-3.97-7.02-6.27-11.62-6.27-4.682 0-9.053 2.34-11.65 6.234l-46.67 70c-2.865 4.297-3.131 9.82-.6953 14.37C84.09 429.2 88.84 432 93.1 432h196c5.163 0 9.907-2.844 12.34-7.395 2.436-4.551 2.17-10.07-.6953-14.37l-74.67-112C224.4 294.3 220 292 215.3 292zm-87.3-4c17.67 0 32-14.33 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z" fill="currentColor" />`,
|
|
97
97
|
},
|
|
98
|
-
|
|
99
|
-
width:
|
|
98
|
+
"triangle-exclamation": {
|
|
99
|
+
width: 512,
|
|
100
100
|
height: 512,
|
|
101
|
-
data: `<path d="
|
|
101
|
+
data: `<path fill="currentColor" d="M248.4 84.3c1.6-2.7 4.5-4.3 7.6-4.3s6 1.6 7.6 4.3L461.9 410c1.4 2.3 2.1 4.9 2.1 7.5c0 8-6.5 14.5-14.5 14.5H62.5c-8 0-14.5-6.5-14.5-14.5c0-2.7 .7-5.3 2.1-7.5L248.4 84.3zm-41-25L9.1 385c-6 9.8-9.1 21-9.1 32.5C0 452 28 480 62.5 480h387c34.5 0 62.5-28 62.5-62.5c0-11.5-3.2-22.7-9.1-32.5L304.6 59.3C294.3 42.4 275.9 32 256 32s-38.3 10.4-48.6 27.3zM288 368a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-8-184c0-13.3-10.7-24-24-24s-24 10.7-24 24v96c0 13.3 10.7 24 24 24s24-10.7 24-24V184z"/>`,
|
|
102
102
|
},
|
|
103
103
|
user: {
|
|
104
104
|
width: 448,
|
|
105
105
|
height: 512,
|
|
106
106
|
data: `<path d="M272 304h-96C78.8 304 0 382.8 0 480a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32c0-97.2-78.8-176-176-176zM48.99 464c7.9-63.1 61.81-112 127.01-112h96c65.16 0 119.1 48.95 127 112H48.99zM224 256c70.69 0 128-57.31 128-128S294.69 0 224 0 96 57.31 96 128c0 70.7 57.3 128 128 128zm0-208c44.11 0 80 35.89 80 80s-35.89 80-80 80-80-35.9-80-80c0-44.11 35.9-80 80-80z" fill="currentColor"/>`,
|
|
107
107
|
},
|
|
108
|
+
videoFile: {
|
|
109
|
+
width: 384,
|
|
110
|
+
height: 512,
|
|
111
|
+
data: `<path d="m365.3 93.38-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6c0-16.9-6.7-33.2-18.7-45.22zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160V128c0 17.67 14.33 32 32 32h79.1v288zm-96-160c0-17.67-14.33-32-32-32h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-16.52l43.84 30.2c8.46 5.82 20.16-.08 20.16-10.28V284.6c0-10.16-11.64-16.16-20.16-10.32L240 304.5V288z" fill="currentColor" />`,
|
|
112
|
+
},
|
|
113
|
+
xmark: {
|
|
114
|
+
width: 384,
|
|
115
|
+
height: 512,
|
|
116
|
+
data: `<path fill="currentColor" d="M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"/>`,
|
|
117
|
+
},
|
|
108
118
|
xmarkLarge: {
|
|
109
119
|
width: 448,
|
|
110
120
|
height: 512,
|
|
@@ -13,7 +13,7 @@ function getRandomUuid() {
|
|
|
13
13
|
function uploadFile(file, uploadOptions) {
|
|
14
14
|
// axios.put("/api/upload", file, { signal: uploadOptions?.abortController?.signal, onUploadProgress: uploadOptions?.onUploadProgress });
|
|
15
15
|
return new Promise((resolve) => {
|
|
16
|
-
const time = file.size /
|
|
16
|
+
const time = file.size / 100;
|
|
17
17
|
const interval = time / 10;
|
|
18
18
|
let loaded = 0;
|
|
19
19
|
const intervalTimer = window.setInterval(() => {
|
package/utils/snap-test.js
CHANGED
|
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.snapTest = void 0;
|
|
7
|
+
const dayjs_1 = __importDefault(require("dayjs"));
|
|
7
8
|
const react_1 = __importDefault(require("react"));
|
|
8
9
|
const react_test_renderer_1 = require("react-test-renderer");
|
|
9
10
|
const get_provider_config_1 = require("../_private-utils/get-provider-config");
|
|
10
11
|
const context_1 = require("../context");
|
|
11
|
-
const dayjs_1 = __importDefault(require("dayjs"));
|
|
12
12
|
const snapTest = (name, component) => {
|
|
13
13
|
beforeAll(() => {
|
|
14
14
|
jest.useFakeTimers();
|
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
1
|
import { ButtonColor, ButtonSize, ButtonVariant } from "@uxf/ui/button";
|
|
2
|
+
import React, { ReactNode } from "react";
|
|
3
|
+
import { AlertBubbleColor, AlertBubbleSize } from "../alert-bubble";
|
|
3
4
|
import { ChipColor } from "../chip";
|
|
4
5
|
import { InputGroupSizes } from "../input/theme";
|
|
6
|
+
import { MessageColor, MessageVariant } from "../message/theme";
|
|
5
7
|
export declare const defaultConfig: StorybookConfig;
|
|
6
8
|
export interface StorybookConfig {
|
|
9
|
+
AlertBubble: {
|
|
10
|
+
colors: AlertBubbleColor[];
|
|
11
|
+
sizes: AlertBubbleSize[];
|
|
12
|
+
};
|
|
7
13
|
Button: {
|
|
14
|
+
colors: ButtonColor[];
|
|
8
15
|
sizes: ButtonSize[];
|
|
9
16
|
variants: ButtonVariant[];
|
|
10
|
-
|
|
17
|
+
};
|
|
18
|
+
Confirm: {
|
|
19
|
+
colors: MessageColor[];
|
|
20
|
+
sizes: MessageVariant[];
|
|
11
21
|
};
|
|
12
22
|
Chip: {
|
|
13
23
|
colors: ChipColor[];
|
|
@@ -26,11 +26,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.StorybookContextProvider = exports.useStorybookConfig = exports.defaultConfig = void 0;
|
|
27
27
|
const react_1 = __importStar(require("react"));
|
|
28
28
|
exports.defaultConfig = {
|
|
29
|
+
AlertBubble: {
|
|
30
|
+
sizes: ["xs", "sm", "default", "lg", "xl", "2xl"],
|
|
31
|
+
colors: ["default", "success", "error", "warning"],
|
|
32
|
+
},
|
|
29
33
|
Button: {
|
|
30
34
|
sizes: ["xs", "sm", "default", "lg", "xl"],
|
|
31
|
-
colors: ["default", "success", "error"],
|
|
35
|
+
colors: ["default", "success", "error", "warning"],
|
|
32
36
|
variants: ["default", "outlined", "white", "text"],
|
|
33
37
|
},
|
|
38
|
+
Confirm: {
|
|
39
|
+
colors: ["default", "success", "error", "warning"],
|
|
40
|
+
sizes: ["simple", "centered"],
|
|
41
|
+
},
|
|
34
42
|
Chip: {
|
|
35
43
|
colors: ["primary", "orange", "red", "yellow", "pink", "purple", "indigo", "green", "blue", "default"],
|
|
36
44
|
},
|
package/utils/tailwind-config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const tailwindThemeDefaults = require("./tailwind-theme-defaults");
|
|
2
|
-
const {
|
|
2
|
+
const { fontFamily } = require("tailwindcss/defaultTheme");
|
|
3
3
|
const { rem } = require("@uxf/styles/units/rem");
|
|
4
4
|
|
|
5
5
|
/** @type {import('tailwindcss').Config} */
|
|
@@ -9,6 +9,14 @@ module.exports = {
|
|
|
9
9
|
theme: {
|
|
10
10
|
containers: tailwindThemeDefaults.containers,
|
|
11
11
|
screens: tailwindThemeDefaults.screens,
|
|
12
|
+
alertBubbleSize: {
|
|
13
|
+
xs: "32px",
|
|
14
|
+
sm: "40px",
|
|
15
|
+
default: "48px",
|
|
16
|
+
lg: "56px",
|
|
17
|
+
xl: "64px",
|
|
18
|
+
"2xl": "80px",
|
|
19
|
+
},
|
|
12
20
|
inputSize: {
|
|
13
21
|
xs: "30px",
|
|
14
22
|
sm: "34px",
|
|
@@ -87,6 +95,7 @@ module.exports = {
|
|
|
87
95
|
800: "#991b1b",
|
|
88
96
|
900: "#7f1d1d",
|
|
89
97
|
},
|
|
98
|
+
test: "#ff00ff",
|
|
90
99
|
},
|
|
91
100
|
fontFamily: {
|
|
92
101
|
sans: ["var(--font-inter)", ...fontFamily.sans],
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ArrowButton = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const icon_1 = require("../../icon");
|
|
9
|
-
const ArrowButton = (props) => {
|
|
10
|
-
return (react_1.default.createElement("button", { className: `uxf-image-gallery__button ${props.type === "prev" ? "uxf-image-gallery__button--prev" : "uxf-image-gallery__button--next"}`, onClick: props.onClick },
|
|
11
|
-
react_1.default.createElement(icon_1.Icon, { className: "uxf-image-gallery__button-icon", name: props.type === "prev" ? "chevronLeft" : "chevronRight" })));
|
|
12
|
-
};
|
|
13
|
-
exports.ArrowButton = ArrowButton;
|
|
14
|
-
exports.ArrowButton.displayName = "UxfUiArrowButton";
|
package/modal/modal-dialog.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { ModalWidths } from "@uxf/ui/modal/theme";
|
|
3
|
-
export interface ModalDialogProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
disableBackdropClose?: boolean;
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
open: boolean;
|
|
9
|
-
width?: keyof ModalWidths;
|
|
10
|
-
}
|
|
11
|
-
export declare const ModalDialog: React.NamedExoticComponent<ModalDialogProps>;
|
|
File without changes
|