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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DividerProps } from "musae/types/divider";
|
|
2
2
|
import React from "react";
|
|
3
3
|
declare const Divider: ({ align, children, orientation, className, style, margin, }: DividerProps) => React.JSX.Element;
|
|
4
4
|
export default Divider;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Placement } from "
|
|
1
|
+
import type { Placement } from "musae/types/drawer";
|
|
2
2
|
export declare const PLACEMENTS: Record<Placement, [hidden: string, appeared: string]>;
|
|
@@ -18,8 +18,11 @@ var theme = require('../theme/theme.cjs');
|
|
|
18
18
|
var dom = require('@aiszlab/relax/dom');
|
|
19
19
|
var useClosable = require('../../hooks/use-closable.cjs');
|
|
20
20
|
var componentToken = require('../../utils/component-token.cjs');
|
|
21
|
+
var space = require('../space/space.cjs');
|
|
22
|
+
var button = require('../button/button.cjs');
|
|
23
|
+
var useLocale = require('../../locale/use-locale.cjs');
|
|
21
24
|
|
|
22
|
-
var _excluded = ["open", "onClose", "placement", "closable", "onClosed", "size", "className"];
|
|
25
|
+
var _excluded = ["open", "onClose", "placement", "closable", "onClosed", "size", "className", "onConfirm"];
|
|
23
26
|
var styles = {
|
|
24
27
|
popup: {
|
|
25
28
|
position: "musaex-ixxii4",
|
|
@@ -133,17 +136,28 @@ var styles = {
|
|
|
133
136
|
}(props.size)
|
|
134
137
|
}];
|
|
135
138
|
},
|
|
136
|
-
header: {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
139
|
+
header: function header(props) {
|
|
140
|
+
return [{
|
|
141
|
+
display: "musaex-78zum5",
|
|
142
|
+
paddingInline: "musaex-y0sash",
|
|
143
|
+
paddingStart: null,
|
|
144
|
+
paddingLeft: null,
|
|
145
|
+
paddingEnd: null,
|
|
146
|
+
paddingRight: null,
|
|
147
|
+
paddingBlock: "musaex-4g05pm",
|
|
148
|
+
paddingTop: null,
|
|
149
|
+
paddingBottom: null,
|
|
150
|
+
alignItems: "musaex-6s0dn4",
|
|
151
|
+
gap: "musaex-4ttznp",
|
|
152
|
+
rowGap: null,
|
|
153
|
+
columnGap: null,
|
|
154
|
+
borderBottomWidth: "musaex-cql0v9",
|
|
155
|
+
borderBottomStyle: "musaex-1q0q8m5",
|
|
156
|
+
borderBottomColor: "musaex-43481e",
|
|
157
|
+
$$css: true
|
|
158
|
+
}, {
|
|
159
|
+
"--borderBottomColor": props.outlineColor != null ? props.outlineColor : "initial"
|
|
160
|
+
}];
|
|
147
161
|
},
|
|
148
162
|
body: {
|
|
149
163
|
flex: "musaex-98rzlu",
|
|
@@ -160,6 +174,12 @@ var styles = {
|
|
|
160
174
|
paddingTop: null,
|
|
161
175
|
paddingBottom: null,
|
|
162
176
|
$$css: true
|
|
177
|
+
},
|
|
178
|
+
actions: {
|
|
179
|
+
marginInlineStart: "musaex-vc5jky",
|
|
180
|
+
marginLeft: null,
|
|
181
|
+
marginRight: null,
|
|
182
|
+
$$css: true
|
|
163
183
|
}
|
|
164
184
|
};
|
|
165
185
|
var Popup = function Popup(_ref) {
|
|
@@ -170,6 +190,7 @@ var Popup = function Popup(_ref) {
|
|
|
170
190
|
onClosed = _ref.onClosed,
|
|
171
191
|
size = _ref.size,
|
|
172
192
|
className$1 = _ref.className,
|
|
193
|
+
onConfirm = _ref.onConfirm,
|
|
173
194
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
174
195
|
var _useAnimate = framerMotion.useAnimate(),
|
|
175
196
|
_useAnimate2 = _slicedToArray(_useAnimate, 2),
|
|
@@ -180,7 +201,10 @@ var Popup = function Popup(_ref) {
|
|
|
180
201
|
var theme$1 = hooks.useTheme();
|
|
181
202
|
var panelRef = React.useRef(null);
|
|
182
203
|
var overlayRef = React.useRef(null);
|
|
183
|
-
|
|
204
|
+
var _useLocale = useLocale.useLocale(componentToken.ComponentToken.Drawer),
|
|
205
|
+
_useLocale2 = _slicedToArray(_useLocale, 1),
|
|
206
|
+
locale = _useLocale2[0];
|
|
207
|
+
// children render hooks
|
|
184
208
|
var _useClosable = useClosable.useClosable({
|
|
185
209
|
closable: closable,
|
|
186
210
|
onClose: onClose
|
|
@@ -224,7 +248,7 @@ var Popup = function Popup(_ref) {
|
|
|
224
248
|
}))();
|
|
225
249
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
226
250
|
}, [open].concat(_toConsumableArray(_placement)));
|
|
227
|
-
|
|
251
|
+
// when open, try focus dialog
|
|
228
252
|
React.useEffect(function () {
|
|
229
253
|
if (!open) return;
|
|
230
254
|
if (dom.contains(scope.current, document.activeElement)) return;
|
|
@@ -244,9 +268,14 @@ var Popup = function Popup(_ref) {
|
|
|
244
268
|
}), styles[placement]({
|
|
245
269
|
size: size
|
|
246
270
|
})),
|
|
247
|
-
header: stylex.default.props(theme.typography.body.large, styles.header
|
|
271
|
+
header: stylex.default.props(theme.typography.body.large, styles.header({
|
|
272
|
+
outlineColor: theme$1.colors[colors.ColorToken.Outline]
|
|
273
|
+
})),
|
|
248
274
|
body: {
|
|
249
275
|
className: "musaex-98rzlu musaex-ox8tdy"
|
|
276
|
+
},
|
|
277
|
+
actions: {
|
|
278
|
+
className: "musaex-vc5jky"
|
|
250
279
|
}
|
|
251
280
|
};
|
|
252
281
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -264,10 +293,15 @@ var Popup = function Popup(_ref) {
|
|
|
264
293
|
className: relax.clsx(classNames[className.DrawerClassToken.Panel], styled.panel.className),
|
|
265
294
|
style: styled.panel.style,
|
|
266
295
|
ref: panelRef
|
|
267
|
-
},
|
|
296
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
268
297
|
className: relax.clsx(classNames[className.DrawerClassToken.Header], styled.header.className),
|
|
269
298
|
style: styled.header.style
|
|
270
|
-
}, props.title
|
|
299
|
+
}, closer, props.title, /*#__PURE__*/React.createElement(space.default, {
|
|
300
|
+
className: styled.actions.className,
|
|
301
|
+
style: styled.actions.style
|
|
302
|
+
}, /*#__PURE__*/React.createElement(button.Button, {
|
|
303
|
+
onClick: onConfirm
|
|
304
|
+
}, locale.confirm))), /*#__PURE__*/React.createElement("div", {
|
|
271
305
|
className: relax.clsx(classNames[className.DrawerClassToken.Body], styled.body.className),
|
|
272
306
|
style: styled.body.style
|
|
273
307
|
}, props.children)));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { PopupProps } from "
|
|
3
|
-
declare const Popup: ({ open, onClose, placement, closable, onClosed, size, className, ...props }: PopupProps) => React.JSX.Element;
|
|
2
|
+
import type { PopupProps } from "musae/types/drawer";
|
|
3
|
+
declare const Popup: ({ open, onClose, placement, closable, onClosed, size, className, onConfirm, ...props }: PopupProps) => React.JSX.Element;
|
|
4
4
|
export default Popup;
|
|
@@ -16,8 +16,11 @@ import { typography } from '../theme/theme.mjs';
|
|
|
16
16
|
import { contains } from '@aiszlab/relax/dom';
|
|
17
17
|
import { useClosable } from '../../hooks/use-closable.mjs';
|
|
18
18
|
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
19
|
+
import Space from '../space/space.mjs';
|
|
20
|
+
import { Button } from '../button/button.mjs';
|
|
21
|
+
import { useLocale } from '../../locale/use-locale.mjs';
|
|
19
22
|
|
|
20
|
-
var _excluded = ["open", "onClose", "placement", "closable", "onClosed", "size", "className"];
|
|
23
|
+
var _excluded = ["open", "onClose", "placement", "closable", "onClosed", "size", "className", "onConfirm"];
|
|
21
24
|
var styles = {
|
|
22
25
|
popup: {
|
|
23
26
|
position: "musaex-ixxii4",
|
|
@@ -131,17 +134,28 @@ var styles = {
|
|
|
131
134
|
}(props.size)
|
|
132
135
|
}];
|
|
133
136
|
},
|
|
134
|
-
header: {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
137
|
+
header: function header(props) {
|
|
138
|
+
return [{
|
|
139
|
+
display: "musaex-78zum5",
|
|
140
|
+
paddingInline: "musaex-y0sash",
|
|
141
|
+
paddingStart: null,
|
|
142
|
+
paddingLeft: null,
|
|
143
|
+
paddingEnd: null,
|
|
144
|
+
paddingRight: null,
|
|
145
|
+
paddingBlock: "musaex-4g05pm",
|
|
146
|
+
paddingTop: null,
|
|
147
|
+
paddingBottom: null,
|
|
148
|
+
alignItems: "musaex-6s0dn4",
|
|
149
|
+
gap: "musaex-4ttznp",
|
|
150
|
+
rowGap: null,
|
|
151
|
+
columnGap: null,
|
|
152
|
+
borderBottomWidth: "musaex-cql0v9",
|
|
153
|
+
borderBottomStyle: "musaex-1q0q8m5",
|
|
154
|
+
borderBottomColor: "musaex-43481e",
|
|
155
|
+
$$css: true
|
|
156
|
+
}, {
|
|
157
|
+
"--borderBottomColor": props.outlineColor != null ? props.outlineColor : "initial"
|
|
158
|
+
}];
|
|
145
159
|
},
|
|
146
160
|
body: {
|
|
147
161
|
flex: "musaex-98rzlu",
|
|
@@ -158,6 +172,12 @@ var styles = {
|
|
|
158
172
|
paddingTop: null,
|
|
159
173
|
paddingBottom: null,
|
|
160
174
|
$$css: true
|
|
175
|
+
},
|
|
176
|
+
actions: {
|
|
177
|
+
marginInlineStart: "musaex-vc5jky",
|
|
178
|
+
marginLeft: null,
|
|
179
|
+
marginRight: null,
|
|
180
|
+
$$css: true
|
|
161
181
|
}
|
|
162
182
|
};
|
|
163
183
|
var Popup = function Popup(_ref) {
|
|
@@ -168,6 +188,7 @@ var Popup = function Popup(_ref) {
|
|
|
168
188
|
onClosed = _ref.onClosed,
|
|
169
189
|
size = _ref.size,
|
|
170
190
|
className = _ref.className,
|
|
191
|
+
onConfirm = _ref.onConfirm,
|
|
171
192
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
172
193
|
var _useAnimate = useAnimate(),
|
|
173
194
|
_useAnimate2 = _slicedToArray(_useAnimate, 2),
|
|
@@ -178,7 +199,10 @@ var Popup = function Popup(_ref) {
|
|
|
178
199
|
var theme = useTheme();
|
|
179
200
|
var panelRef = useRef(null);
|
|
180
201
|
var overlayRef = useRef(null);
|
|
181
|
-
|
|
202
|
+
var _useLocale = useLocale(ComponentToken.Drawer),
|
|
203
|
+
_useLocale2 = _slicedToArray(_useLocale, 1),
|
|
204
|
+
locale = _useLocale2[0];
|
|
205
|
+
// children render hooks
|
|
182
206
|
var _useClosable = useClosable({
|
|
183
207
|
closable: closable,
|
|
184
208
|
onClose: onClose
|
|
@@ -222,7 +246,7 @@ var Popup = function Popup(_ref) {
|
|
|
222
246
|
}))();
|
|
223
247
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
224
248
|
}, [open].concat(_toConsumableArray(_placement)));
|
|
225
|
-
|
|
249
|
+
// when open, try focus dialog
|
|
226
250
|
useEffect(function () {
|
|
227
251
|
if (!open) return;
|
|
228
252
|
if (contains(scope.current, document.activeElement)) return;
|
|
@@ -242,9 +266,14 @@ var Popup = function Popup(_ref) {
|
|
|
242
266
|
}), styles[placement]({
|
|
243
267
|
size: size
|
|
244
268
|
})),
|
|
245
|
-
header: _stylex.props(typography.body.large, styles.header
|
|
269
|
+
header: _stylex.props(typography.body.large, styles.header({
|
|
270
|
+
outlineColor: theme.colors[ColorToken.Outline]
|
|
271
|
+
})),
|
|
246
272
|
body: {
|
|
247
273
|
className: "musaex-98rzlu musaex-ox8tdy"
|
|
274
|
+
},
|
|
275
|
+
actions: {
|
|
276
|
+
className: "musaex-vc5jky"
|
|
248
277
|
}
|
|
249
278
|
};
|
|
250
279
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -262,10 +291,15 @@ var Popup = function Popup(_ref) {
|
|
|
262
291
|
className: clsx(classNames[DrawerClassToken.Panel], styled.panel.className),
|
|
263
292
|
style: styled.panel.style,
|
|
264
293
|
ref: panelRef
|
|
265
|
-
},
|
|
294
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
266
295
|
className: clsx(classNames[DrawerClassToken.Header], styled.header.className),
|
|
267
296
|
style: styled.header.style
|
|
268
|
-
}, props.title
|
|
297
|
+
}, closer, props.title, /*#__PURE__*/React.createElement(Space, {
|
|
298
|
+
className: styled.actions.className,
|
|
299
|
+
style: styled.actions.style
|
|
300
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
301
|
+
onClick: onConfirm
|
|
302
|
+
}, locale.confirm))), /*#__PURE__*/React.createElement("div", {
|
|
269
303
|
className: clsx(classNames[DrawerClassToken.Body], styled.body.className),
|
|
270
304
|
style: styled.body.style
|
|
271
305
|
}, props.children)));
|
|
@@ -9,7 +9,7 @@ var modifiers = require('@dnd-kit/modifiers');
|
|
|
9
9
|
var relax = require('@aiszlab/relax');
|
|
10
10
|
var useContainer = require('../../hooks/use-container.cjs');
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var Fab = function Fab(_ref) {
|
|
13
13
|
var container = _ref.container,
|
|
14
14
|
children = _ref.children;
|
|
15
15
|
var _useIdentity = relax.useIdentity(),
|
|
@@ -36,4 +36,4 @@ var FloatingActionButton = function FloatingActionButton(_ref) {
|
|
|
36
36
|
}, children));
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
exports.default =
|
|
39
|
+
exports.default = Fab;
|
|
@@ -7,7 +7,7 @@ import { restrictToParentElement } from '@dnd-kit/modifiers';
|
|
|
7
7
|
import { useIdentity, useEvent } from '@aiszlab/relax';
|
|
8
8
|
import { useContainer } from '../../hooks/use-container.mjs';
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var Fab = function Fab(_ref) {
|
|
11
11
|
var container = _ref.container,
|
|
12
12
|
children = _ref.children;
|
|
13
13
|
var _useIdentity = useIdentity(),
|
|
@@ -34,4 +34,4 @@ var FloatingActionButton = function FloatingActionButton(_ref) {
|
|
|
34
34
|
}, children));
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
export {
|
|
37
|
+
export { Fab as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { FloatableProps, FloatableRef } from "
|
|
2
|
+
import type { FloatableProps, FloatableRef } from "musae/types/fab";
|
|
3
3
|
declare const Floatable: React.ForwardRefExoticComponent<FloatableProps & React.RefAttributes<FloatableRef>>;
|
|
4
4
|
export default Floatable;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const Grid: {
|
|
2
|
-
Row: ({ align, children, gutter, justify, className, as: As, style, }: import("
|
|
3
|
-
Col: ({ children, className, span, as: As, style }: import("
|
|
2
|
+
Row: ({ align, children, gutter, justify, className, as: As, style, }: import("../../types/grid").RowProps) => import("react").JSX.Element;
|
|
3
|
+
Col: ({ children, className, span, as: As, style }: import("../../types/grid").ColProps) => import("react").JSX.Element;
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { HighlightProps } from "
|
|
2
|
+
import type { HighlightProps } from "musae/types/highlight";
|
|
3
3
|
declare const _default: React.MemoExoticComponent<({ children, capture }: HighlightProps) => React.JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -8,16 +8,22 @@ var popover = require('../popover/popover.cjs');
|
|
|
8
8
|
var hooks = require('./hooks.cjs');
|
|
9
9
|
var menu = require('../menu/menu.cjs');
|
|
10
10
|
var relax = require('@aiszlab/relax');
|
|
11
|
+
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
12
|
+
var componentToken = require('../../utils/component-token.cjs');
|
|
13
|
+
var className = require('../../utils/class-name.cjs');
|
|
11
14
|
var translate = require('../icon/icons/action/translate.cjs');
|
|
12
15
|
|
|
13
16
|
var I18nButton = function I18nButton(_ref) {
|
|
14
17
|
var onChange = _ref.onChange,
|
|
15
|
-
variant = _ref.variant
|
|
18
|
+
variant = _ref.variant,
|
|
19
|
+
className$1 = _ref.className,
|
|
20
|
+
style = _ref.style;
|
|
16
21
|
var _useLocales = hooks.useLocales(),
|
|
17
22
|
selections = _useLocales.selections,
|
|
18
23
|
locales = _useLocales.locales,
|
|
19
24
|
localeCode = _useLocales.localeCode;
|
|
20
25
|
var popoverRef = React.useRef(null);
|
|
26
|
+
var classNames = useClassNames.useClassNames(componentToken.ComponentToken.I18nButton);
|
|
21
27
|
var change = relax.useEvent(/*#__PURE__*/function () {
|
|
22
28
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(value) {
|
|
23
29
|
var _popoverRef$current;
|
|
@@ -42,14 +48,16 @@ var I18nButton = function I18nButton(_ref) {
|
|
|
42
48
|
ref: popoverRef,
|
|
43
49
|
triggerBy: "click",
|
|
44
50
|
content: /*#__PURE__*/React.createElement(menu.default, {
|
|
45
|
-
selectedKeys:
|
|
51
|
+
selectedKeys: localeCode,
|
|
46
52
|
items: selections,
|
|
47
53
|
onClick: change
|
|
48
54
|
}),
|
|
49
55
|
padding: 8
|
|
50
56
|
}, /*#__PURE__*/React.createElement(button.Button, {
|
|
51
57
|
shape: "circular",
|
|
52
|
-
variant: variant
|
|
58
|
+
variant: variant,
|
|
59
|
+
className: relax.clsx(classNames[className.I18nButtonClassToken.I18nButton], className$1),
|
|
60
|
+
style: style
|
|
53
61
|
}, /*#__PURE__*/React.createElement(translate.default, null)));
|
|
54
62
|
};
|
|
55
63
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { I18nButtonProps } from "
|
|
3
|
-
declare const I18nButton: ({ onChange, variant }: I18nButtonProps) => React.JSX.Element;
|
|
2
|
+
import type { I18nButtonProps } from "musae/types/i18n-button";
|
|
3
|
+
declare const I18nButton: ({ onChange, variant, className, style }: I18nButtonProps) => React.JSX.Element;
|
|
4
4
|
export default I18nButton;
|
|
@@ -5,17 +5,23 @@ import { Button } from '../button/button.mjs';
|
|
|
5
5
|
import Popover from '../popover/popover.mjs';
|
|
6
6
|
import { useLocales } from './hooks.mjs';
|
|
7
7
|
import Menu from '../menu/menu.mjs';
|
|
8
|
-
import { useEvent } from '@aiszlab/relax';
|
|
8
|
+
import { useEvent, clsx } from '@aiszlab/relax';
|
|
9
|
+
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
10
|
+
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
11
|
+
import { I18nButtonClassToken } from '../../utils/class-name.mjs';
|
|
9
12
|
import Translate from '../icon/icons/action/translate.mjs';
|
|
10
13
|
|
|
11
14
|
var I18nButton = function I18nButton(_ref) {
|
|
12
15
|
var onChange = _ref.onChange,
|
|
13
|
-
variant = _ref.variant
|
|
16
|
+
variant = _ref.variant,
|
|
17
|
+
className = _ref.className,
|
|
18
|
+
style = _ref.style;
|
|
14
19
|
var _useLocales = useLocales(),
|
|
15
20
|
selections = _useLocales.selections,
|
|
16
21
|
locales = _useLocales.locales,
|
|
17
22
|
localeCode = _useLocales.localeCode;
|
|
18
23
|
var popoverRef = useRef(null);
|
|
24
|
+
var classNames = useClassNames(ComponentToken.I18nButton);
|
|
19
25
|
var change = useEvent(/*#__PURE__*/function () {
|
|
20
26
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(value) {
|
|
21
27
|
var _popoverRef$current;
|
|
@@ -40,14 +46,16 @@ var I18nButton = function I18nButton(_ref) {
|
|
|
40
46
|
ref: popoverRef,
|
|
41
47
|
triggerBy: "click",
|
|
42
48
|
content: /*#__PURE__*/React.createElement(Menu, {
|
|
43
|
-
selectedKeys:
|
|
49
|
+
selectedKeys: localeCode,
|
|
44
50
|
items: selections,
|
|
45
51
|
onClick: change
|
|
46
52
|
}),
|
|
47
53
|
padding: 8
|
|
48
54
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
49
55
|
shape: "circular",
|
|
50
|
-
variant: variant
|
|
56
|
+
variant: variant,
|
|
57
|
+
className: clsx(classNames[I18nButtonClassToken.I18nButton], className),
|
|
58
|
+
style: style
|
|
51
59
|
}, /*#__PURE__*/React.createElement(Translate, null)));
|
|
52
60
|
};
|
|
53
61
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const CheckCircleOutline: (props: Omit<import("
|
|
2
|
+
declare const CheckCircleOutline: (props: Omit<import("../../../../types/icon").IconProps, "as">) => React.FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
3
3
|
export default CheckCircleOutline;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const CheckCircle: (props: Omit<import("
|
|
2
|
+
declare const CheckCircle: (props: Omit<import("../../../../types/icon").IconProps, "as">) => React.FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
3
3
|
export default CheckCircle;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const Code: (props: Omit<import("
|
|
2
|
+
declare const Code: (props: Omit<import("../../../../types/icon").IconProps, "as">) => React.FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
3
3
|
export default Code;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var hoc = require('../../hoc.cjs');
|
|
5
|
+
|
|
6
|
+
var Delete = hoc.withIcon(function (_ref) {
|
|
7
|
+
var size = _ref.size;
|
|
8
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
width: size,
|
|
11
|
+
height: size,
|
|
12
|
+
viewBox: "0 0 24 24",
|
|
13
|
+
fill: "none"
|
|
14
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
15
|
+
d: "M16 9V19H8V9H16ZM14.5 3H9.5L8.5 4H5V6H19V4H15.5L14.5 3ZM18 7H6V19C6 20.1 6.9 21 8 21H16C17.1 21 18 20.1 18 19V7Z",
|
|
16
|
+
fill: "currentColor"
|
|
17
|
+
}));
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
exports.default = Delete;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { withIcon } from '../../hoc.mjs';
|
|
3
|
+
|
|
4
|
+
var Delete = withIcon(function (_ref) {
|
|
5
|
+
var size = _ref.size;
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: size,
|
|
9
|
+
height: size,
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
fill: "none"
|
|
12
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
13
|
+
d: "M16 9V19H8V9H16ZM14.5 3H9.5L8.5 4H5V6H19V4H15.5L14.5 3ZM18 7H6V19C6 20.1 6.9 21 8 21H16C17.1 21 18 20.1 18 19V7Z",
|
|
14
|
+
fill: "currentColor"
|
|
15
|
+
}));
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export { Delete as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const DoneOutline: (props: Omit<import("
|
|
2
|
+
declare const DoneOutline: (props: Omit<import("../../../../types/icon").IconProps, "as">) => React.FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
3
3
|
export default DoneOutline;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const Done: (props: Omit<import("
|
|
2
|
+
declare const Done: (props: Omit<import("../../../../types/icon").IconProps, "as">) => React.FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
3
3
|
export default Done;
|
|
@@ -13,6 +13,8 @@ var doneOutline = require('./done-outline.cjs');
|
|
|
13
13
|
var translate = require('./translate.cjs');
|
|
14
14
|
var code = require('./code.cjs');
|
|
15
15
|
var openInNew = require('./open-in-new.cjs');
|
|
16
|
+
var _delete = require('./delete.cjs');
|
|
17
|
+
var threeDRotation = require('./three-d-rotation.cjs');
|
|
16
18
|
|
|
17
19
|
var _ = {
|
|
18
20
|
Visibility: visibility.default,
|
|
@@ -27,7 +29,9 @@ var _ = {
|
|
|
27
29
|
DoneOutline: doneOutline.default,
|
|
28
30
|
Translate: translate.default,
|
|
29
31
|
Code: code.default,
|
|
30
|
-
OpenInNew: openInNew.default
|
|
32
|
+
OpenInNew: openInNew.default,
|
|
33
|
+
Delete: _delete.default,
|
|
34
|
+
ThreeDRotation: threeDRotation.default
|
|
31
35
|
};
|
|
32
36
|
|
|
33
37
|
exports.Visibility = visibility.default;
|
|
@@ -43,4 +47,6 @@ exports.DoneOutline = doneOutline.default;
|
|
|
43
47
|
exports.Translate = translate.default;
|
|
44
48
|
exports.Code = code.default;
|
|
45
49
|
exports.OpenInNew = openInNew.default;
|
|
50
|
+
exports.Delete = _delete.default;
|
|
51
|
+
exports.ThreeDRotation = threeDRotation.default;
|
|
46
52
|
exports.default = _;
|
|
@@ -11,20 +11,24 @@ import DoneOutline from "./done-outline";
|
|
|
11
11
|
import Translate from "./translate";
|
|
12
12
|
import Code from "./code";
|
|
13
13
|
import OpenInNew from "./open-in-new";
|
|
14
|
+
import Delete from "./delete";
|
|
15
|
+
import ThreeDRotation from "./three-d-rotation";
|
|
14
16
|
declare const _: {
|
|
15
|
-
Visibility: (props: Omit<import("
|
|
16
|
-
VisibilityOff: (props: Omit<import("
|
|
17
|
-
CheckCircleOutline: (props: Omit<import("
|
|
18
|
-
Done: (props: Omit<import("
|
|
19
|
-
CheckCircle: (props: Omit<import("
|
|
20
|
-
SwapHoriz: (props: Omit<import("
|
|
21
|
-
SwapVert: (props: Omit<import("
|
|
22
|
-
ZoomOut: (props: Omit<import("
|
|
23
|
-
ZoomIn: (props: Omit<import("
|
|
24
|
-
DoneOutline: (props: Omit<import("
|
|
25
|
-
Translate: (props: Omit<import("
|
|
26
|
-
Code: (props: Omit<import("
|
|
27
|
-
OpenInNew: (props: Omit<import("
|
|
17
|
+
Visibility: (props: Omit<import("../../../../types/icon").IconProps, "as">) => import("react").FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
18
|
+
VisibilityOff: (props: Omit<import("../../../../types/icon").IconProps, "as">) => import("react").FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
19
|
+
CheckCircleOutline: (props: Omit<import("../../../../types/icon").IconProps, "as">) => import("react").FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
20
|
+
Done: (props: Omit<import("../../../../types/icon").IconProps, "as">) => import("react").FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
21
|
+
CheckCircle: (props: Omit<import("../../../../types/icon").IconProps, "as">) => import("react").FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
22
|
+
SwapHoriz: (props: Omit<import("../../../../types/icon").IconProps, "as">) => import("react").FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
23
|
+
SwapVert: (props: Omit<import("../../../../types/icon").IconProps, "as">) => import("react").FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
24
|
+
ZoomOut: (props: Omit<import("../../../../types/icon").IconProps, "as">) => import("react").FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
25
|
+
ZoomIn: (props: Omit<import("../../../../types/icon").IconProps, "as">) => import("react").FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
26
|
+
DoneOutline: (props: Omit<import("../../../../types/icon").IconProps, "as">) => import("react").FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
27
|
+
Translate: (props: Omit<import("../../../../types/icon").IconProps, "as">) => import("react").FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
28
|
+
Code: (props: Omit<import("../../../../types/icon").IconProps, "as">) => import("react").FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
29
|
+
OpenInNew: (props: Omit<import("../../../../types/icon").IconProps, "as">) => import("react").FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
30
|
+
Delete: (props: Omit<import("../../../../types/icon").IconProps, "as">) => import("react").FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
31
|
+
ThreeDRotation: (props: Omit<import("../../../../types/icon").IconProps, "as">) => import("react").FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
28
32
|
};
|
|
29
33
|
export default _;
|
|
30
|
-
export { Visibility, VisibilityOff, CheckCircleOutline, Done, CheckCircle, SwapHoriz, SwapVert, ZoomOut, ZoomIn, DoneOutline, Translate, Code, OpenInNew, };
|
|
34
|
+
export { Visibility, VisibilityOff, CheckCircleOutline, Done, CheckCircle, SwapHoriz, SwapVert, ZoomOut, ZoomIn, DoneOutline, Translate, Code, OpenInNew, Delete, ThreeDRotation, };
|