musae 0.3.2 → 0.3.5
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/dist/components/avatar/context.d.ts +1 -1
- package/dist/components/avatar/group.d.ts +1 -1
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/bench/bench.cjs +8 -10
- package/dist/components/bench/bench.mjs +8 -10
- package/dist/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/components/breadcrumb/item.d.ts +1 -1
- package/dist/components/button/button.cjs +12 -11
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.mjs +7 -6
- package/dist/components/button/hooks.d.ts +2 -2
- package/dist/components/calendar/calendar.d.ts +1 -1
- package/dist/components/calendar/contribution.cjs +251 -0
- package/dist/components/calendar/contribution.d.ts +13 -0
- package/dist/components/calendar/contribution.mjs +249 -0
- package/dist/components/calendar/hooks.d.ts +1 -1
- package/dist/components/calendar/index.d.ts +2 -2
- package/dist/components/cascader/cascader.d.ts +1 -1
- package/dist/components/cascader/hooks.d.ts +1 -1
- package/dist/components/cascader/utils.d.ts +1 -1
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/context.d.ts +1 -1
- package/dist/components/checkbox/group.d.ts +1 -1
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/checkbox/styles.cjs +1 -1
- package/dist/components/checkbox/styles.d.ts +1 -1
- package/dist/components/checkbox/styles.mjs +1 -1
- package/dist/components/clock/clock.cjs +1 -2
- package/dist/components/clock/clock.d.ts +1 -1
- package/dist/components/clock/clock.mjs +1 -2
- package/dist/components/clock/column.cjs +9 -9
- package/dist/components/clock/column.d.ts +1 -1
- package/dist/components/clock/column.mjs +8 -8
- package/dist/components/collapse/collapse.d.ts +1 -1
- package/dist/components/collapse/context.d.ts +1 -1
- package/dist/components/collapse/hooks.d.ts +1 -1
- package/dist/components/collapse/item.d.ts +1 -1
- package/dist/components/config/context.d.ts +1 -1
- package/dist/components/config/hooks.d.ts +1 -1
- package/dist/components/config/provider.cjs +2 -2
- package/dist/components/config/provider.d.ts +1 -1
- package/dist/components/config/provider.mjs +2 -2
- package/dist/components/countdown/countdown.d.ts +2 -2
- package/dist/components/date-picker/date-picker.d.ts +1 -1
- package/dist/components/date-picker/hooks.d.ts +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts +1 -1
- package/dist/components/date-range-picker/hooks.d.ts +1 -1
- package/dist/components/dialog/dialog.d.ts +1 -1
- package/dist/components/dialog/hooks.d.ts +1 -1
- package/dist/components/dialog/popup.d.ts +1 -1
- package/dist/components/divider/divider.d.ts +1 -1
- package/dist/components/divider/hooks.d.ts +1 -1
- package/dist/components/drawer/drawer.d.ts +1 -1
- package/dist/components/drawer/hooks.d.ts +1 -1
- package/dist/components/drawer/popup.cjs +51 -17
- package/dist/components/drawer/popup.d.ts +2 -2
- package/dist/components/drawer/popup.mjs +51 -17
- package/dist/components/{floating-action-button/floating-action-button.cjs → fab/fab.cjs} +2 -2
- package/dist/components/fab/fab.d.ts +4 -0
- package/dist/components/{floating-action-button/floating-action-button.mjs → fab/fab.mjs} +2 -2
- package/dist/components/{floating-action-button → fab}/floatable.d.ts +1 -1
- package/dist/components/fab/index.d.ts +2 -0
- package/dist/components/grid/col.d.ts +1 -1
- package/dist/components/grid/index.d.ts +2 -2
- package/dist/components/grid/row.d.ts +1 -1
- package/dist/components/highlight/highlight.d.ts +1 -1
- package/dist/components/i18n-button/i18n-button.cjs +11 -3
- package/dist/components/i18n-button/i18n-button.d.ts +2 -2
- package/dist/components/i18n-button/i18n-button.mjs +12 -4
- package/dist/components/icon/hoc.d.ts +2 -2
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/icon/icons/action/check-circle-outline.d.ts +1 -1
- package/dist/components/icon/icons/action/check-circle.d.ts +1 -1
- package/dist/components/icon/icons/action/code.d.ts +1 -1
- package/dist/components/icon/icons/action/delete.cjs +20 -0
- package/dist/components/icon/icons/action/delete.d.ts +3 -0
- package/dist/components/icon/icons/action/delete.mjs +18 -0
- package/dist/components/icon/icons/action/done-outline.d.ts +1 -1
- package/dist/components/icon/icons/action/done.d.ts +1 -1
- package/dist/components/icon/icons/action/index.cjs +7 -1
- package/dist/components/icon/icons/action/index.d.ts +18 -14
- package/dist/components/icon/icons/action/index.mjs +6 -2
- package/dist/components/icon/icons/action/open-in-new.d.ts +1 -1
- package/dist/components/icon/icons/action/swap-horiz.d.ts +1 -1
- package/dist/components/icon/icons/action/swap-vert.d.ts +1 -1
- package/dist/components/icon/icons/action/three-d-rotation.cjs +28 -0
- package/dist/components/icon/icons/action/three-d-rotation.d.ts +3 -0
- package/dist/components/icon/icons/action/three-d-rotation.mjs +26 -0
- package/dist/components/icon/icons/action/translate.d.ts +1 -1
- package/dist/components/icon/icons/action/visibility-off.d.ts +1 -1
- package/dist/components/icon/icons/action/visibility.d.ts +1 -1
- package/dist/components/icon/icons/action/zoom-in.d.ts +1 -1
- package/dist/components/icon/icons/action/zoom-out.d.ts +1 -1
- package/dist/components/icon/icons/alert/add-alert.d.ts +1 -1
- package/dist/components/icon/icons/alert/auto-delete.d.ts +1 -1
- package/dist/components/icon/icons/alert/error-outline.d.ts +1 -1
- package/dist/components/icon/icons/alert/error.d.ts +1 -1
- package/dist/components/icon/icons/alert/index.d.ts +7 -7
- package/dist/components/icon/icons/alert/notification-important.d.ts +1 -1
- package/dist/components/icon/icons/alert/warning-amber.d.ts +1 -1
- package/dist/components/icon/icons/alert/warning.d.ts +1 -1
- package/dist/components/icon/icons/content/clear.d.ts +1 -1
- package/dist/components/icon/icons/content/font-download.d.ts +1 -1
- package/dist/components/icon/icons/content/index.d.ts +5 -5
- package/dist/components/icon/icons/content/link-off.d.ts +1 -1
- package/dist/components/icon/icons/content/redo.d.ts +1 -1
- package/dist/components/icon/icons/content/undo.d.ts +1 -1
- package/dist/components/icon/icons/editor/attch-file.cjs +20 -0
- package/dist/components/icon/icons/editor/attch-file.d.ts +3 -0
- package/dist/components/icon/icons/editor/attch-file.mjs +18 -0
- package/dist/components/icon/icons/editor/checklist.d.ts +1 -1
- package/dist/components/icon/icons/editor/format-bold.d.ts +1 -1
- package/dist/components/icon/icons/editor/format-italic.d.ts +1 -1
- package/dist/components/icon/icons/editor/format-strikethrough.d.ts +1 -1
- package/dist/components/icon/icons/editor/format-underlined.d.ts +1 -1
- package/dist/components/icon/icons/editor/index.cjs +4 -1
- package/dist/components/icon/icons/editor/index.d.ts +12 -10
- package/dist/components/icon/icons/editor/index.mjs +4 -2
- package/dist/components/icon/icons/editor/insert-link.d.ts +1 -1
- package/dist/components/icon/icons/editor/notes.d.ts +1 -1
- package/dist/components/icon/icons/editor/subscript.d.ts +1 -1
- package/dist/components/icon/icons/editor/superscript.d.ts +1 -1
- package/dist/components/icon/icons/hardware/index.d.ts +6 -6
- package/dist/components/icon/icons/hardware/keyboard-arrow-down.d.ts +1 -1
- package/dist/components/icon/icons/hardware/keyboard-arrow-left.d.ts +1 -1
- package/dist/components/icon/icons/hardware/keyboard-arrow-right.d.ts +1 -1
- package/dist/components/icon/icons/hardware/keyboard-arrow-up.d.ts +1 -1
- package/dist/components/icon/icons/hardware/keyboard-double-arrow-left.d.ts +1 -1
- package/dist/components/icon/icons/hardware/keyboard-double-arrow-right.d.ts +1 -1
- package/dist/components/icon/icons/image/bedtime.d.ts +1 -1
- package/dist/components/icon/icons/image/edit.d.ts +1 -1
- package/dist/components/icon/icons/image/index.d.ts +11 -11
- package/dist/components/icon/icons/image/looks-five.d.ts +1 -1
- package/dist/components/icon/icons/image/looks-four.d.ts +1 -1
- package/dist/components/icon/icons/image/looks-one.d.ts +1 -1
- package/dist/components/icon/icons/image/looks-six.d.ts +1 -1
- package/dist/components/icon/icons/image/looks-three.d.ts +1 -1
- package/dist/components/icon/icons/image/looks-two.d.ts +1 -1
- package/dist/components/icon/icons/image/rotate-left.d.ts +1 -1
- package/dist/components/icon/icons/image/rotate-right.d.ts +1 -1
- package/dist/components/icon/icons/image/wb-sunny.d.ts +1 -1
- package/dist/components/icon/icons/index.cjs +6 -0
- package/dist/components/icon/icons/index.mjs +3 -0
- package/dist/components/icon/icons/mock/github.d.ts +1 -1
- package/dist/components/icon/icons/mock/index.d.ts +2 -2
- package/dist/components/icon/icons/mock/loading.d.ts +1 -1
- package/dist/components/icon/icons/navigation/cancel.d.ts +1 -1
- package/dist/components/icon/icons/navigation/check.d.ts +1 -1
- package/dist/components/icon/icons/navigation/close.d.ts +1 -1
- package/dist/components/icon/icons/navigation/index.d.ts +5 -5
- package/dist/components/icon/icons/navigation/more-horiz.d.ts +1 -1
- package/dist/components/icon/icons/navigation/unfold-more.d.ts +1 -1
- package/dist/components/icon/icons/toggle/index.d.ts +3 -3
- package/dist/components/icon/icons/toggle/star-half.d.ts +1 -1
- package/dist/components/icon/icons/toggle/star-outline.d.ts +1 -1
- package/dist/components/icon/icons/toggle/star.d.ts +1 -1
- package/dist/components/icon/index.d.ts +0 -5
- package/dist/components/image/hooks.d.ts +1 -1
- package/dist/components/image/image.cjs +2 -2
- package/dist/components/image/image.d.ts +1 -1
- package/dist/components/image/image.mjs +2 -2
- package/dist/components/image/index.d.ts +2 -2
- package/dist/components/image/preview/context.d.ts +1 -1
- package/dist/components/image/preview/group.d.ts +1 -1
- package/dist/components/image/preview/operations.d.ts +1 -1
- package/dist/components/image/preview/preview.d.ts +1 -1
- package/dist/components/input/hooks.d.ts +1 -1
- package/dist/components/input/index.d.ts +1 -2
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/kbd/kbd.d.ts +1 -1
- package/dist/components/kbd/utils.d.ts +1 -1
- package/dist/components/layout/footer.d.ts +1 -1
- package/dist/components/layout/header.d.ts +1 -1
- package/dist/components/layout/index.d.ts +1 -1
- package/dist/components/layout/layout.d.ts +1 -1
- package/dist/components/layout/main.d.ts +1 -1
- package/dist/components/layout/sider.d.ts +1 -1
- package/dist/components/loading/loading.d.ts +1 -1
- package/dist/components/menu/hooks.cjs +7 -7
- package/dist/components/menu/hooks.d.ts +1 -2
- package/dist/components/menu/hooks.mjs +8 -8
- package/dist/components/menu/item.d.ts +2 -3
- package/dist/components/message/hooks.d.ts +1 -1
- package/dist/components/message/messager.d.ts +1 -1
- package/dist/components/notification/holder.d.ts +1 -1
- package/dist/components/notification/hooks.d.ts +1 -1
- package/dist/components/notification/index.d.ts +1 -1
- package/dist/components/notification/notification.d.ts +1 -1
- package/dist/components/notification/notifier.d.ts +1 -1
- package/dist/components/number-input/number-input.d.ts +1 -1
- package/dist/components/otp-input/otp-input.d.ts +1 -1
- package/dist/components/pagination/pagination.cjs +1 -1
- package/dist/components/pagination/pagination.mjs +2 -2
- package/dist/components/picker/context.d.ts +1 -1
- package/dist/components/picker/picker.d.ts +1 -1
- package/dist/components/popconfirm/popconfirm.d.ts +1 -1
- package/dist/components/popover/hooks.d.ts +1 -1
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/popover.cjs +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/popover/popover.mjs +1 -1
- package/dist/components/popper/dropdown.cjs +44 -22
- package/dist/components/popper/dropdown.d.ts +2 -2
- package/dist/components/popper/dropdown.mjs +46 -24
- package/dist/components/popper/hooks.cjs +88 -89
- package/dist/components/popper/hooks.d.ts +8 -14
- package/dist/components/popper/hooks.mjs +91 -91
- package/dist/components/popper/index.d.ts +0 -2
- package/dist/components/popper/popper.d.ts +1 -1
- package/dist/components/portal/portal.d.ts +1 -1
- package/dist/components/progress/circular.d.ts +1 -1
- package/dist/components/progress/linear.d.ts +1 -1
- package/dist/components/progress/progress.d.ts +1 -1
- package/dist/components/quote/quote.d.ts +1 -1
- package/dist/components/radio/context.d.ts +1 -1
- package/dist/components/radio/group.d.ts +1 -1
- package/dist/components/radio/index.d.ts +1 -1
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/rate/hooks.d.ts +1 -1
- package/dist/components/rate/rate.d.ts +1 -1
- package/dist/components/rate/star.d.ts +1 -1
- package/dist/components/rich-text-editor/dropdown.cjs +1 -1
- package/dist/components/rich-text-editor/dropdown.d.ts +1 -1
- package/dist/components/rich-text-editor/dropdown.mjs +1 -1
- package/dist/components/rich-text-editor/index.cjs +20 -2
- package/dist/components/rich-text-editor/index.d.ts +1 -1
- package/dist/components/rich-text-editor/index.mjs +20 -2
- package/dist/components/rich-text-editor/plugins/controlled-state/index.cjs +1 -2
- package/dist/components/rich-text-editor/plugins/controlled-state/index.d.ts +1 -1
- package/dist/components/rich-text-editor/plugins/controlled-state/index.mjs +1 -2
- package/dist/components/rich-text-editor/plugins/markdown-shortcut/index.cjs +5 -4
- package/dist/components/rich-text-editor/plugins/markdown-shortcut/index.d.ts +3 -3
- package/dist/components/rich-text-editor/plugins/markdown-shortcut/index.mjs +3 -4
- package/dist/components/rich-text-editor/rich-text-editor.cjs +13 -10
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.mjs +12 -9
- package/dist/components/ripple/hooks.d.ts +1 -1
- package/dist/components/ripple/ripple.d.ts +1 -1
- package/dist/components/select/hooks.d.ts +1 -1
- package/dist/components/select/select.cjs +4 -1
- package/dist/components/select/select.mjs +5 -2
- package/dist/components/select/selections.d.ts +1 -1
- package/dist/components/select/selector.d.ts +1 -1
- package/dist/components/select/utils.cjs +1 -3
- package/dist/components/select/utils.d.ts +2 -2
- package/dist/components/select/utils.mjs +2 -4
- package/dist/components/skeleton/skeleton.cjs +20 -46
- package/dist/components/skeleton/skeleton.d.ts +2 -2
- package/dist/components/skeleton/skeleton.mjs +20 -46
- package/dist/components/space/space.d.ts +1 -1
- package/dist/components/steps/context.d.ts +1 -1
- package/dist/components/steps/item.d.ts +1 -1
- package/dist/components/steps/steps.d.ts +1 -1
- package/dist/components/switch/switch.cjs +9 -8
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/switch/switch.mjs +9 -8
- package/dist/components/table/body.cjs +3 -1
- package/dist/components/table/body.mjs +3 -1
- package/dist/components/tabs/context.d.ts +1 -1
- package/dist/components/tabs/hooks.d.ts +2 -2
- package/dist/components/tabs/navigation.d.ts +1 -1
- package/dist/components/tabs/panels.d.ts +1 -1
- package/dist/components/tabs/tab.d.ts +1 -1
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tag/tag.d.ts +1 -1
- package/dist/components/theme/hooks.cjs +6 -6
- package/dist/components/theme/hooks.d.ts +1 -1
- package/dist/components/theme/hooks.mjs +6 -6
- package/dist/components/theme/theme-provider.cjs +12 -6
- package/dist/components/theme/theme-provider.d.ts +2 -2
- package/dist/components/theme/theme-provider.mjs +12 -6
- package/dist/components/theme/tokens.stylex.cjs +7 -0
- package/dist/components/theme/tokens.stylex.d.ts +8 -6
- package/dist/components/theme/tokens.stylex.mjs +7 -1
- package/dist/components/time-picker/hooks.d.ts +1 -1
- package/dist/components/time-picker/panel.d.ts +1 -1
- package/dist/components/time-picker/time-picker.d.ts +1 -1
- package/dist/components/timeline/context.d.ts +1 -1
- package/dist/components/timeline/item.d.ts +1 -1
- package/dist/components/timeline/timeline.d.ts +1 -1
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/transfer/context.d.ts +1 -1
- package/dist/components/transfer/hooks.d.ts +1 -1
- package/dist/components/transfer/item.d.ts +1 -1
- package/dist/components/transfer/list.d.ts +1 -1
- package/dist/components/transfer/transfer.d.ts +1 -1
- package/dist/components/upload/upload.cjs +31 -6
- package/dist/components/upload/upload.d.ts +2 -2
- package/dist/components/upload/upload.mjs +31 -6
- package/dist/components/upload/uploadeds.cjs +119 -55
- package/dist/components/upload/uploadeds.d.ts +1 -1
- package/dist/components/upload/uploadeds.mjs +121 -57
- package/dist/components/upload/utils.cjs +9 -0
- package/dist/components/upload/utils.d.ts +6 -0
- package/dist/components/upload/utils.mjs +9 -0
- package/dist/components/visually-hidden/visually-hidden.d.ts +1 -1
- package/dist/components/waterfall/sequential.d.ts +1 -1
- package/dist/components/waterfall/waterfall.d.ts +1 -1
- package/dist/components/watermark/hooks.d.ts +1 -1
- package/dist/components/watermark/watermark.d.ts +1 -1
- package/dist/hooks/use-class-names.d.ts +8 -1
- package/dist/hooks/use-closable.cjs +0 -8
- package/dist/hooks/use-closable.mjs +0 -8
- package/dist/hooks/use-container.d.ts +1 -1
- package/dist/hooks/use-lazy-boolean.cjs +2 -2
- package/dist/hooks/use-lazy-boolean.mjs +2 -2
- package/dist/index.cjs +4 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -1
- package/dist/locale/context.d.ts +1 -1
- package/dist/locale/locales/en_US.cjs +5 -1
- package/dist/locale/locales/en_US.mjs +5 -1
- package/dist/locale/locales/zh_CN.cjs +5 -1
- package/dist/locale/locales/zh_CN.mjs +5 -1
- package/dist/locale/use-locale.d.ts +1 -1
- package/dist/styles.css +23 -12
- package/dist/{components/clock/types.d.ts → types/clock.d.ts} +1 -5
- package/dist/{components/config/types.d.ts → types/config.d.ts} +2 -2
- package/dist/{components/countdown/types.d.ts → types/countdown.d.ts} +3 -3
- package/dist/{components/date-picker/types.d.ts → types/date-picker.d.ts} +1 -1
- package/dist/{components/dialog/types.d.ts → types/dialog.d.ts} +2 -2
- package/dist/{components/divider/types.d.ts → types/divider.d.ts} +1 -1
- package/dist/{components/drawer/types.d.ts → types/drawer.d.ts} +6 -1
- package/dist/types/element.d.ts +1 -56
- package/dist/{components/floating-action-button/types.d.ts → types/fab.d.ts} +3 -3
- package/dist/types/form.d.ts +39 -1
- package/dist/{components/grid/types.d.ts → types/grid.d.ts} +1 -1
- package/dist/{components/i18n-button/types.d.ts → types/i18n-button.d.ts} +3 -2
- package/dist/types/locale.d.ts +6 -0
- package/dist/types/menu.d.ts +9 -4
- package/dist/{components/message/types.d.ts → types/message.d.ts} +1 -1
- package/dist/{components/popconfirm/types.d.ts → types/popconfirm.d.ts} +2 -2
- package/dist/{components/popper/types.d.ts → types/popper.d.ts} +2 -2
- package/dist/{components/quote/types.d.ts → types/quote.d.ts} +1 -1
- package/dist/{components/radio/types.d.ts → types/radio.d.ts} +1 -1
- package/dist/types/rich-text-editor.d.ts +2 -1
- package/dist/types/skeleton.d.ts +12 -0
- package/dist/{components/space/types.d.ts → types/space.d.ts} +1 -1
- package/dist/{components/theme/types.d.ts → types/theme.d.ts} +1 -1
- package/dist/types/tour.d.ts +1 -1
- package/dist/types/tree.d.ts +7 -2
- package/dist/{components/upload/types.d.ts → types/upload.d.ts} +59 -22
- package/dist/{components/waterfall/types.d.ts → types/waterfall.d.ts} +3 -3
- package/dist/utils/class-name.cjs +10 -1
- package/dist/utils/class-name.d.ts +24 -3
- package/dist/utils/class-name.mjs +11 -2
- package/dist/utils/colors.d.ts +1 -1
- package/dist/utils/component-token.cjs +2 -0
- package/dist/utils/component-token.d.ts +3 -1
- package/dist/utils/component-token.mjs +2 -0
- package/dist/utils/date.cjs +13 -0
- package/dist/utils/date.d.ts +6 -0
- package/dist/utils/date.mjs +13 -0
- package/package.json +25 -25
- package/dist/components/clock/hooks.cjs +0 -12
- package/dist/components/clock/hooks.d.ts +0 -2
- package/dist/components/clock/hooks.mjs +0 -12
- package/dist/components/clock/types.cjs +0 -6
- package/dist/components/clock/types.mjs +0 -8
- package/dist/components/floating-action-button/floating-action-button.d.ts +0 -4
- package/dist/components/floating-action-button/index.d.ts +0 -2
- package/dist/components/icon/icons/three-dimension-rotation.d.ts +0 -3
- package/dist/components/skeleton/types.d.ts +0 -19
- package/dist/utils/layer.cjs +0 -23
- package/dist/utils/layer.d.ts +0 -7
- package/dist/utils/layer.mjs +0 -23
- /package/dist/components/{floating-action-button → fab}/floatable.cjs +0 -0
- /package/dist/components/{floating-action-button → fab}/floatable.mjs +0 -0
- /package/dist/{components/avatar/types.d.ts → types/avatar.d.ts} +0 -0
- /package/dist/{components/badge/types.d.ts → types/badge.d.ts} +0 -0
- /package/dist/{components/breadcrumb/types.d.ts → types/breadcrumb.d.ts} +0 -0
- /package/dist/{components/button/types.d.ts → types/button.d.ts} +0 -0
- /package/dist/{components/calendar/types.d.ts → types/calendar.d.ts} +0 -0
- /package/dist/{components/cascader/types.d.ts → types/cascader.d.ts} +0 -0
- /package/dist/{components/checkbox/types.d.ts → types/checkbox.d.ts} +0 -0
- /package/dist/{components/collapse/types.d.ts → types/collapse.d.ts} +0 -0
- /package/dist/{components/date-range-picker/types.d.ts → types/date-range-picker.d.ts} +0 -0
- /package/dist/{components/highlight/types.d.ts → types/highlight.d.ts} +0 -0
- /package/dist/{components/icon/types.d.ts → types/icon.d.ts} +0 -0
- /package/dist/{components/image/types.d.ts → types/image.d.ts} +0 -0
- /package/dist/{components/input/types.d.ts → types/input.d.ts} +0 -0
- /package/dist/{components/kbd/types.d.ts → types/kbd.d.ts} +0 -0
- /package/dist/{components/layout/types.d.ts → types/layout.d.ts} +0 -0
- /package/dist/{components/loading/types.d.ts → types/loading.d.ts} +0 -0
- /package/dist/{components/notification/types.d.ts → types/notification.d.ts} +0 -0
- /package/dist/{components/number-input/types.d.ts → types/number-input.d.ts} +0 -0
- /package/dist/{components/otp-input/types.d.ts → types/otp-input.d.ts} +0 -0
- /package/dist/{components/popover/types.d.ts → types/popover.d.ts} +0 -0
- /package/dist/{components/portal/types.d.ts → types/portal.d.ts} +0 -0
- /package/dist/{components/progress/types.d.ts → types/progress.d.ts} +0 -0
- /package/dist/{components/rate/types.d.ts → types/rate.d.ts} +0 -0
- /package/dist/{components/ripple/types.d.ts → types/ripple.d.ts} +0 -0
- /package/dist/{components/steps/types.d.ts → types/steps.d.ts} +0 -0
- /package/dist/{components/switch/types.d.ts → types/switch.d.ts} +0 -0
- /package/dist/{components/tabs/types.d.ts → types/tabs.d.ts} +0 -0
- /package/dist/{components/tag/types.d.ts → types/tag.d.ts} +0 -0
- /package/dist/{components/time-picker/types.d.ts → types/time-picker.d.ts} +0 -0
- /package/dist/{components/timeline/types.d.ts → types/timeline.d.ts} +0 -0
- /package/dist/{components/tooltip/types.d.ts → types/tooltip.d.ts} +0 -0
- /package/dist/{components/transfer/types.d.ts → types/transfer.d.ts} +0 -0
- /package/dist/{components/visually-hidden/types.d.ts → types/visually-hidden.d.ts} +0 -0
- /package/dist/{components/watermark/types.d.ts → types/watermark.d.ts} +0 -0
|
@@ -8,7 +8,7 @@ var rxjs = require('rxjs');
|
|
|
8
8
|
|
|
9
9
|
var PALETTE = {
|
|
10
10
|
primary: {
|
|
11
|
-
"0": "#
|
|
11
|
+
"0": "#000000",
|
|
12
12
|
"10": "#21005D",
|
|
13
13
|
"20": "#381E72",
|
|
14
14
|
"30": "#4F378B",
|
|
@@ -23,7 +23,7 @@ var PALETTE = {
|
|
|
23
23
|
"100": "#FFF"
|
|
24
24
|
},
|
|
25
25
|
secondary: {
|
|
26
|
-
"0": "#
|
|
26
|
+
"0": "#000000",
|
|
27
27
|
"10": "#1D192B",
|
|
28
28
|
"20": "#332D41",
|
|
29
29
|
"30": "#4A4458",
|
|
@@ -38,7 +38,7 @@ var PALETTE = {
|
|
|
38
38
|
"100": "#FFF"
|
|
39
39
|
},
|
|
40
40
|
tertiary: {
|
|
41
|
-
"0": "#
|
|
41
|
+
"0": "#000000",
|
|
42
42
|
"10": "#31111D",
|
|
43
43
|
"20": "#492532",
|
|
44
44
|
"30": "#633B48",
|
|
@@ -53,7 +53,7 @@ var PALETTE = {
|
|
|
53
53
|
"100": "#FFF"
|
|
54
54
|
},
|
|
55
55
|
error: {
|
|
56
|
-
"0": "#
|
|
56
|
+
"0": "#000000",
|
|
57
57
|
"10": "#410E0B",
|
|
58
58
|
"20": "#601410",
|
|
59
59
|
"30": "#8C1D18",
|
|
@@ -68,7 +68,7 @@ var PALETTE = {
|
|
|
68
68
|
"100": "#FFF"
|
|
69
69
|
},
|
|
70
70
|
neutral: {
|
|
71
|
-
"0": "#
|
|
71
|
+
"0": "#000000",
|
|
72
72
|
"10": "#1D1B20",
|
|
73
73
|
"20": "#48464C",
|
|
74
74
|
"30": "#48464C",
|
|
@@ -83,7 +83,7 @@ var PALETTE = {
|
|
|
83
83
|
"100": "#FFF"
|
|
84
84
|
},
|
|
85
85
|
neutralVariant: {
|
|
86
|
-
"0": "#
|
|
86
|
+
"0": "#000000",
|
|
87
87
|
"10": "#1D1A22",
|
|
88
88
|
"20": "#322F37",
|
|
89
89
|
"30": "#49454F",
|
|
@@ -8,7 +8,7 @@ import { Observable, distinctUntilChanged } from 'rxjs';
|
|
|
8
8
|
|
|
9
9
|
var PALETTE = {
|
|
10
10
|
primary: {
|
|
11
|
-
"0": "#
|
|
11
|
+
"0": "#000000",
|
|
12
12
|
"10": "#21005D",
|
|
13
13
|
"20": "#381E72",
|
|
14
14
|
"30": "#4F378B",
|
|
@@ -23,7 +23,7 @@ var PALETTE = {
|
|
|
23
23
|
"100": "#FFF"
|
|
24
24
|
},
|
|
25
25
|
secondary: {
|
|
26
|
-
"0": "#
|
|
26
|
+
"0": "#000000",
|
|
27
27
|
"10": "#1D192B",
|
|
28
28
|
"20": "#332D41",
|
|
29
29
|
"30": "#4A4458",
|
|
@@ -38,7 +38,7 @@ var PALETTE = {
|
|
|
38
38
|
"100": "#FFF"
|
|
39
39
|
},
|
|
40
40
|
tertiary: {
|
|
41
|
-
"0": "#
|
|
41
|
+
"0": "#000000",
|
|
42
42
|
"10": "#31111D",
|
|
43
43
|
"20": "#492532",
|
|
44
44
|
"30": "#633B48",
|
|
@@ -53,7 +53,7 @@ var PALETTE = {
|
|
|
53
53
|
"100": "#FFF"
|
|
54
54
|
},
|
|
55
55
|
error: {
|
|
56
|
-
"0": "#
|
|
56
|
+
"0": "#000000",
|
|
57
57
|
"10": "#410E0B",
|
|
58
58
|
"20": "#601410",
|
|
59
59
|
"30": "#8C1D18",
|
|
@@ -68,7 +68,7 @@ var PALETTE = {
|
|
|
68
68
|
"100": "#FFF"
|
|
69
69
|
},
|
|
70
70
|
neutral: {
|
|
71
|
-
"0": "#
|
|
71
|
+
"0": "#000000",
|
|
72
72
|
"10": "#1D1B20",
|
|
73
73
|
"20": "#48464C",
|
|
74
74
|
"30": "#48464C",
|
|
@@ -83,7 +83,7 @@ var PALETTE = {
|
|
|
83
83
|
"100": "#FFF"
|
|
84
84
|
},
|
|
85
85
|
neutralVariant: {
|
|
86
|
-
"0": "#
|
|
86
|
+
"0": "#000000",
|
|
87
87
|
"10": "#1D1A22",
|
|
88
88
|
"20": "#322F37",
|
|
89
89
|
"30": "#49454F",
|
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var hooks = require('./hooks.cjs');
|
|
5
|
-
var
|
|
5
|
+
var relax = require('@aiszlab/relax');
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @author murukal
|
|
@@ -11,13 +11,19 @@ var deepmerge = require('deepmerge');
|
|
|
11
11
|
* theme provider
|
|
12
12
|
* if user provider theme, we will merge it with presets theme
|
|
13
13
|
*/
|
|
14
|
-
var ThemeProvider = function ThemeProvider(
|
|
14
|
+
var ThemeProvider = function ThemeProvider(_ref) {
|
|
15
|
+
var _theme = _ref.theme,
|
|
16
|
+
children = _ref.children;
|
|
15
17
|
var theme = React.useMemo(function () {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
if (!_theme) {
|
|
19
|
+
return {
|
|
20
|
+
palette: hooks.PALETTE
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
return relax.merge(_theme, {
|
|
18
24
|
palette: hooks.PALETTE
|
|
19
25
|
});
|
|
20
|
-
}, [
|
|
26
|
+
}, [_theme]);
|
|
21
27
|
var _useSwitchable = hooks.useSwitchable({
|
|
22
28
|
theme: theme
|
|
23
29
|
}),
|
|
@@ -30,7 +36,7 @@ var ThemeProvider = function ThemeProvider(props) {
|
|
|
30
36
|
mode: mode,
|
|
31
37
|
toggle: toggle
|
|
32
38
|
}
|
|
33
|
-
},
|
|
39
|
+
}, children);
|
|
34
40
|
};
|
|
35
41
|
|
|
36
42
|
exports.default = ThemeProvider;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { Props } from "
|
|
2
|
+
import type { Props } from "musae/types/theme";
|
|
3
3
|
/**
|
|
4
4
|
* @author murukal
|
|
5
5
|
*
|
|
@@ -7,5 +7,5 @@ import type { Props } from "./types";
|
|
|
7
7
|
* theme provider
|
|
8
8
|
* if user provider theme, we will merge it with presets theme
|
|
9
9
|
*/
|
|
10
|
-
declare const ThemeProvider: (
|
|
10
|
+
declare const ThemeProvider: ({ theme: _theme, children }: Props) => React.JSX.Element;
|
|
11
11
|
export default ThemeProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { PALETTE, useSwitchable, Context } from './hooks.mjs';
|
|
3
|
-
import
|
|
3
|
+
import { merge } from '@aiszlab/relax';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @author murukal
|
|
@@ -9,13 +9,19 @@ import deepmerge from 'deepmerge';
|
|
|
9
9
|
* theme provider
|
|
10
10
|
* if user provider theme, we will merge it with presets theme
|
|
11
11
|
*/
|
|
12
|
-
var ThemeProvider = function ThemeProvider(
|
|
12
|
+
var ThemeProvider = function ThemeProvider(_ref) {
|
|
13
|
+
var _theme = _ref.theme,
|
|
14
|
+
children = _ref.children;
|
|
13
15
|
var theme = useMemo(function () {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
if (!_theme) {
|
|
17
|
+
return {
|
|
18
|
+
palette: PALETTE
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
return merge(_theme, {
|
|
16
22
|
palette: PALETTE
|
|
17
23
|
});
|
|
18
|
-
}, [
|
|
24
|
+
}, [_theme]);
|
|
19
25
|
var _useSwitchable = useSwitchable({
|
|
20
26
|
theme: theme
|
|
21
27
|
}),
|
|
@@ -28,7 +34,7 @@ var ThemeProvider = function ThemeProvider(props) {
|
|
|
28
34
|
mode: mode,
|
|
29
35
|
toggle: toggle
|
|
30
36
|
}
|
|
31
|
-
},
|
|
37
|
+
}, children);
|
|
32
38
|
};
|
|
33
39
|
|
|
34
40
|
export { ThemeProvider as default };
|
|
@@ -58,7 +58,14 @@ var sizes = {
|
|
|
58
58
|
auto: "var(--musaex-1yg5bqe)",
|
|
59
59
|
__themeName__: "musaex-qhz0mn"
|
|
60
60
|
};
|
|
61
|
+
var OPACITY = {
|
|
62
|
+
thin: 0.08,
|
|
63
|
+
medium: 0.12,
|
|
64
|
+
thick: 0.16,
|
|
65
|
+
thicker: 0.38
|
|
66
|
+
};
|
|
61
67
|
|
|
68
|
+
exports.OPACITY = OPACITY;
|
|
62
69
|
exports.elevations = elevations;
|
|
63
70
|
exports.sizes = sizes;
|
|
64
71
|
exports.spacing = spacing;
|
|
@@ -90,11 +90,13 @@ export declare const positions: import("@stylexjs/stylex").VarGroup<Readonly<{
|
|
|
90
90
|
}>, symbol>;
|
|
91
91
|
/**
|
|
92
92
|
* @description
|
|
93
|
-
*
|
|
93
|
+
* opacity
|
|
94
94
|
*/
|
|
95
|
-
export
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
95
|
+
export type OpacityToken = "thin" | "medium" | "thick" | "thicker";
|
|
96
|
+
export declare const OPACITY: Record<OpacityToken, number>;
|
|
97
|
+
export declare const opacity: import("@stylexjs/stylex").VarGroup<Readonly<{
|
|
98
|
+
medium: number;
|
|
99
|
+
thin: number;
|
|
100
|
+
thick: number;
|
|
101
|
+
thicker: number;
|
|
100
102
|
}>, symbol>;
|
|
@@ -58,5 +58,11 @@ var sizes = {
|
|
|
58
58
|
auto: "var(--musaex-1yg5bqe)",
|
|
59
59
|
__themeName__: "musaex-qhz0mn"
|
|
60
60
|
};
|
|
61
|
+
var OPACITY = {
|
|
62
|
+
thin: 0.08,
|
|
63
|
+
medium: 0.12,
|
|
64
|
+
thick: 0.16,
|
|
65
|
+
thicker: 0.38
|
|
66
|
+
};
|
|
61
67
|
|
|
62
|
-
export { elevations, sizes, spacing };
|
|
68
|
+
export { OPACITY, elevations, sizes, spacing };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { PanelProps, PanelRef } from "
|
|
2
|
+
import type { PanelProps, PanelRef } from "musae/types/time-picker";
|
|
3
3
|
declare const Panel: React.ForwardRefExoticComponent<PanelProps & React.RefAttributes<PanelRef>>;
|
|
4
4
|
export default Panel;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ContextValue } from "
|
|
1
|
+
import type { ContextValue } from "musae/types/timeline";
|
|
2
2
|
export declare const Context: import("react").Context<ContextValue>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { TransferProps } from "
|
|
2
|
+
import type { TransferProps } from "musae/types/transfer";
|
|
3
3
|
declare const Transfer: ({ options, value, titles, disabled, className, style, }: TransferProps) => React.JSX.Element;
|
|
4
4
|
export default Transfer;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
3
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
4
|
+
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
4
5
|
var React = require('react');
|
|
5
6
|
var relax = require('@aiszlab/relax');
|
|
6
7
|
var keyboard = require('../../utils/keyboard.cjs');
|
|
7
8
|
var uploadeds = require('./uploadeds.cjs');
|
|
9
|
+
var button = require('../button/button.cjs');
|
|
10
|
+
var useLocale = require('../../locale/use-locale.cjs');
|
|
11
|
+
var componentToken = require('../../utils/component-token.cjs');
|
|
8
12
|
|
|
9
13
|
var Upload = function Upload(_ref) {
|
|
10
14
|
var _onClick = _ref.onClick,
|
|
@@ -12,9 +16,15 @@ var Upload = function Upload(_ref) {
|
|
|
12
16
|
multiple = _ref.multiple,
|
|
13
17
|
_children = _ref.children,
|
|
14
18
|
uploader = _ref.uploader,
|
|
15
|
-
onError = _ref.onError
|
|
19
|
+
onError = _ref.onError,
|
|
20
|
+
value = _ref.value,
|
|
21
|
+
onChange = _ref.onChange,
|
|
22
|
+
limit = _ref.limit;
|
|
16
23
|
var inputRef = React.useRef(null);
|
|
17
24
|
var uploadedsRef = React.useRef(null);
|
|
25
|
+
var _useLocale = useLocale.useLocale(componentToken.ComponentToken.Upload),
|
|
26
|
+
_useLocale2 = _slicedToArray(_useLocale, 1),
|
|
27
|
+
_locale = _useLocale2[0];
|
|
18
28
|
// file upload
|
|
19
29
|
var upload = relax.useEvent(function (files) {
|
|
20
30
|
files.forEach(function (file) {
|
|
@@ -22,7 +32,7 @@ var Upload = function Upload(_ref) {
|
|
|
22
32
|
(_uploadedsRef$current = uploadedsRef.current) === null || _uploadedsRef$current === void 0 || _uploadedsRef$current.add(file);
|
|
23
33
|
});
|
|
24
34
|
});
|
|
25
|
-
var
|
|
35
|
+
var _onChange = relax.useEvent(function (e) {
|
|
26
36
|
var files = e.target.files;
|
|
27
37
|
if (!files) return;
|
|
28
38
|
upload(Array.from(files));
|
|
@@ -45,17 +55,28 @@ var Upload = function Upload(_ref) {
|
|
|
45
55
|
upload(files);
|
|
46
56
|
};
|
|
47
57
|
var styled = {
|
|
58
|
+
upload: {
|
|
59
|
+
className: "musaex-78zum5 musaex-dt5ytf musaex-1lsrmdg"
|
|
60
|
+
},
|
|
48
61
|
input: {
|
|
49
62
|
className: "musaex-1s85apg"
|
|
50
63
|
}
|
|
51
64
|
};
|
|
52
65
|
var children = React.useMemo(function () {
|
|
66
|
+
if (!_children) {
|
|
67
|
+
return /*#__PURE__*/React.createElement(button.Button, {
|
|
68
|
+
disabled: disabled
|
|
69
|
+
}, _locale.upload);
|
|
70
|
+
}
|
|
53
71
|
// @ts-ignore
|
|
54
72
|
return /*#__PURE__*/React.cloneElement(_children, {
|
|
55
73
|
disabled: disabled
|
|
56
74
|
});
|
|
57
|
-
}, [_children, disabled]);
|
|
58
|
-
return /*#__PURE__*/React.createElement("div",
|
|
75
|
+
}, [_children, disabled, _locale]);
|
|
76
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
77
|
+
className: styled.upload.className,
|
|
78
|
+
style: styled.upload.style
|
|
79
|
+
}, /*#__PURE__*/React.createElement("div", _objectSpread({}, !disabled && {
|
|
59
80
|
onClick: onClick,
|
|
60
81
|
onKeyDown: onKeyDown,
|
|
61
82
|
onDrop: onDrop,
|
|
@@ -63,17 +84,21 @@ var Upload = function Upload(_ref) {
|
|
|
63
84
|
}), /*#__PURE__*/React.createElement("input", {
|
|
64
85
|
ref: inputRef,
|
|
65
86
|
type: "file",
|
|
87
|
+
value: "",
|
|
66
88
|
onClick: function onClick(e) {
|
|
67
89
|
return e.stopPropagation();
|
|
68
90
|
},
|
|
69
91
|
className: styled.input.className,
|
|
70
92
|
style: styled.input.style,
|
|
71
93
|
multiple: multiple,
|
|
72
|
-
onChange:
|
|
94
|
+
onChange: _onChange
|
|
73
95
|
}), children), /*#__PURE__*/React.createElement(uploadeds.default, {
|
|
74
96
|
ref: uploadedsRef,
|
|
97
|
+
value: value,
|
|
75
98
|
uploader: uploader,
|
|
76
|
-
onError: onError
|
|
99
|
+
onError: onError,
|
|
100
|
+
onChange: onChange,
|
|
101
|
+
limit: limit
|
|
77
102
|
}));
|
|
78
103
|
};
|
|
79
104
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { UploadProps } from "
|
|
3
|
-
declare const Upload: ({ onClick: _onClick, disabled, multiple, children: _children, uploader, onError }: UploadProps) => React.JSX.Element;
|
|
2
|
+
import type { UploadProps } from "musae/types/upload";
|
|
3
|
+
declare const Upload: ({ onClick: _onClick, disabled, multiple, children: _children, uploader, onError, value, onChange, limit, }: UploadProps) => React.JSX.Element;
|
|
4
4
|
export default Upload;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
2
3
|
import React, { useRef, useMemo, cloneElement } from 'react';
|
|
3
4
|
import { useEvent } from '@aiszlab/relax';
|
|
4
5
|
import { Keyboard } from '../../utils/keyboard.mjs';
|
|
5
6
|
import Uploadeds from './uploadeds.mjs';
|
|
7
|
+
import { Button } from '../button/button.mjs';
|
|
8
|
+
import { useLocale } from '../../locale/use-locale.mjs';
|
|
9
|
+
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
6
10
|
|
|
7
11
|
var Upload = function Upload(_ref) {
|
|
8
12
|
var _onClick = _ref.onClick,
|
|
@@ -10,9 +14,15 @@ var Upload = function Upload(_ref) {
|
|
|
10
14
|
multiple = _ref.multiple,
|
|
11
15
|
_children = _ref.children,
|
|
12
16
|
uploader = _ref.uploader,
|
|
13
|
-
onError = _ref.onError
|
|
17
|
+
onError = _ref.onError,
|
|
18
|
+
value = _ref.value,
|
|
19
|
+
onChange = _ref.onChange,
|
|
20
|
+
limit = _ref.limit;
|
|
14
21
|
var inputRef = useRef(null);
|
|
15
22
|
var uploadedsRef = useRef(null);
|
|
23
|
+
var _useLocale = useLocale(ComponentToken.Upload),
|
|
24
|
+
_useLocale2 = _slicedToArray(_useLocale, 1),
|
|
25
|
+
_locale = _useLocale2[0];
|
|
16
26
|
// file upload
|
|
17
27
|
var upload = useEvent(function (files) {
|
|
18
28
|
files.forEach(function (file) {
|
|
@@ -20,7 +30,7 @@ var Upload = function Upload(_ref) {
|
|
|
20
30
|
(_uploadedsRef$current = uploadedsRef.current) === null || _uploadedsRef$current === void 0 || _uploadedsRef$current.add(file);
|
|
21
31
|
});
|
|
22
32
|
});
|
|
23
|
-
var
|
|
33
|
+
var _onChange = useEvent(function (e) {
|
|
24
34
|
var files = e.target.files;
|
|
25
35
|
if (!files) return;
|
|
26
36
|
upload(Array.from(files));
|
|
@@ -43,17 +53,28 @@ var Upload = function Upload(_ref) {
|
|
|
43
53
|
upload(files);
|
|
44
54
|
};
|
|
45
55
|
var styled = {
|
|
56
|
+
upload: {
|
|
57
|
+
className: "musaex-78zum5 musaex-dt5ytf musaex-1lsrmdg"
|
|
58
|
+
},
|
|
46
59
|
input: {
|
|
47
60
|
className: "musaex-1s85apg"
|
|
48
61
|
}
|
|
49
62
|
};
|
|
50
63
|
var children = useMemo(function () {
|
|
64
|
+
if (!_children) {
|
|
65
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
66
|
+
disabled: disabled
|
|
67
|
+
}, _locale.upload);
|
|
68
|
+
}
|
|
51
69
|
// @ts-ignore
|
|
52
70
|
return /*#__PURE__*/cloneElement(_children, {
|
|
53
71
|
disabled: disabled
|
|
54
72
|
});
|
|
55
|
-
}, [_children, disabled]);
|
|
56
|
-
return /*#__PURE__*/React.createElement("div",
|
|
73
|
+
}, [_children, disabled, _locale]);
|
|
74
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
75
|
+
className: styled.upload.className,
|
|
76
|
+
style: styled.upload.style
|
|
77
|
+
}, /*#__PURE__*/React.createElement("div", _objectSpread({}, !disabled && {
|
|
57
78
|
onClick: onClick,
|
|
58
79
|
onKeyDown: onKeyDown,
|
|
59
80
|
onDrop: onDrop,
|
|
@@ -61,17 +82,21 @@ var Upload = function Upload(_ref) {
|
|
|
61
82
|
}), /*#__PURE__*/React.createElement("input", {
|
|
62
83
|
ref: inputRef,
|
|
63
84
|
type: "file",
|
|
85
|
+
value: "",
|
|
64
86
|
onClick: function onClick(e) {
|
|
65
87
|
return e.stopPropagation();
|
|
66
88
|
},
|
|
67
89
|
className: styled.input.className,
|
|
68
90
|
style: styled.input.style,
|
|
69
91
|
multiple: multiple,
|
|
70
|
-
onChange:
|
|
92
|
+
onChange: _onChange
|
|
71
93
|
}), children), /*#__PURE__*/React.createElement(Uploadeds, {
|
|
72
94
|
ref: uploadedsRef,
|
|
95
|
+
value: value,
|
|
73
96
|
uploader: uploader,
|
|
74
|
-
onError: onError
|
|
97
|
+
onError: onError,
|
|
98
|
+
onChange: onChange,
|
|
99
|
+
limit: limit
|
|
75
100
|
}));
|
|
76
101
|
};
|
|
77
102
|
|