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
package/dist/index.cjs
CHANGED
|
@@ -24,6 +24,7 @@ var drawer = require('./components/drawer/drawer.cjs');
|
|
|
24
24
|
var dialog = require('./components/dialog/dialog.cjs');
|
|
25
25
|
var tag = require('./components/tag/tag.cjs');
|
|
26
26
|
var calendar = require('./components/calendar/calendar.cjs');
|
|
27
|
+
var contribution = require('./components/calendar/contribution.cjs');
|
|
27
28
|
var datePicker = require('./components/date-picker/date-picker.cjs');
|
|
28
29
|
var timePicker = require('./components/time-picker/time-picker.cjs');
|
|
29
30
|
var dateRangePicker = require('./components/date-range-picker/date-range-picker.cjs');
|
|
@@ -46,7 +47,7 @@ var progress = require('./components/progress/progress.cjs');
|
|
|
46
47
|
var popover = require('./components/popover/popover.cjs');
|
|
47
48
|
var watermark = require('./components/watermark/watermark.cjs');
|
|
48
49
|
var collapse = require('./components/collapse/collapse.cjs');
|
|
49
|
-
var
|
|
50
|
+
var fab = require('./components/fab/fab.cjs');
|
|
50
51
|
var transfer = require('./components/transfer/transfer.cjs');
|
|
51
52
|
var badge = require('./components/badge/badge.cjs');
|
|
52
53
|
var skeleton = require('./components/skeleton/skeleton.cjs');
|
|
@@ -90,6 +91,7 @@ exports.Drawer = drawer.default;
|
|
|
90
91
|
exports.Dialog = dialog.default;
|
|
91
92
|
exports.Tag = tag.default;
|
|
92
93
|
exports.Calendar = calendar.default;
|
|
94
|
+
exports.ContributionCalendar = contribution.default;
|
|
93
95
|
exports.DatePicker = datePicker.default;
|
|
94
96
|
exports.TimePicker = timePicker.default;
|
|
95
97
|
exports.DateRangePicker = dateRangePicker.default;
|
|
@@ -112,7 +114,7 @@ exports.Progress = progress.default;
|
|
|
112
114
|
exports.Popover = popover.default;
|
|
113
115
|
exports.Watermark = watermark.default;
|
|
114
116
|
exports.Collapse = collapse.default;
|
|
115
|
-
exports.
|
|
117
|
+
exports.Fab = fab.default;
|
|
116
118
|
exports.Transfer = transfer.default;
|
|
117
119
|
exports.Badge = badge.default;
|
|
118
120
|
exports.Skeleton = skeleton.default;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export { Empty } from "./components/empty";
|
|
|
23
23
|
export { Drawer } from "./components/drawer";
|
|
24
24
|
export { Dialog } from "./components/dialog";
|
|
25
25
|
export { Tag } from "./components/tag";
|
|
26
|
-
export { Calendar } from "./components/calendar";
|
|
26
|
+
export { Calendar, ContributionCalendar } from "./components/calendar";
|
|
27
27
|
export { DatePicker } from "./components/date-picker";
|
|
28
28
|
export { TimePicker } from "./components/time-picker";
|
|
29
29
|
export { DateRangePicker } from "./components/date-range-picker";
|
|
@@ -48,7 +48,7 @@ export { Progress } from "./components/progress";
|
|
|
48
48
|
export { Popover } from "./components/popover";
|
|
49
49
|
export { Watermark } from "./components/watermark";
|
|
50
50
|
export { Collapse } from "./components/collapse";
|
|
51
|
-
export {
|
|
51
|
+
export { Fab } from "./components/fab";
|
|
52
52
|
export { Transfer } from "./components/transfer";
|
|
53
53
|
export { Badge } from "./components/badge";
|
|
54
54
|
export { Skeleton } from "./components/skeleton";
|
package/dist/index.mjs
CHANGED
|
@@ -24,6 +24,7 @@ export { default as Drawer } from './components/drawer/drawer.mjs';
|
|
|
24
24
|
export { default as Dialog } from './components/dialog/dialog.mjs';
|
|
25
25
|
export { default as Tag } from './components/tag/tag.mjs';
|
|
26
26
|
export { default as Calendar } from './components/calendar/calendar.mjs';
|
|
27
|
+
export { default as ContributionCalendar } from './components/calendar/contribution.mjs';
|
|
27
28
|
export { default as DatePicker } from './components/date-picker/date-picker.mjs';
|
|
28
29
|
export { default as TimePicker } from './components/time-picker/time-picker.mjs';
|
|
29
30
|
export { default as DateRangePicker } from './components/date-range-picker/date-range-picker.mjs';
|
|
@@ -46,7 +47,7 @@ export { default as Progress } from './components/progress/progress.mjs';
|
|
|
46
47
|
export { default as Popover } from './components/popover/popover.mjs';
|
|
47
48
|
export { default as Watermark } from './components/watermark/watermark.mjs';
|
|
48
49
|
export { default as Collapse } from './components/collapse/collapse.mjs';
|
|
49
|
-
export { default as
|
|
50
|
+
export { default as Fab } from './components/fab/fab.mjs';
|
|
50
51
|
export { default as Transfer } from './components/transfer/transfer.mjs';
|
|
51
52
|
export { default as Badge } from './components/badge/badge.mjs';
|
|
52
53
|
export { default as Skeleton } from './components/skeleton/skeleton.mjs';
|
package/dist/locale/context.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type Locale } from "
|
|
1
|
+
import { type Locale } from "musae/types/locale";
|
|
2
2
|
export declare const LocaleContext: import("react").Context<Locale>;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
3
3
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
4
4
|
var componentToken = require('../../utils/component-token.cjs');
|
|
5
5
|
|
|
6
|
-
var en_US = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
6
|
+
var en_US = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
7
7
|
locale: "en_US"
|
|
8
8
|
}, componentToken.ComponentToken.Dialog, {
|
|
9
9
|
confirm: "Confirm",
|
|
@@ -29,6 +29,10 @@ var en_US = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_def
|
|
|
29
29
|
}), componentToken.ComponentToken.I18nButton, {
|
|
30
30
|
zh_CN: "Chinese",
|
|
31
31
|
en_US: "English"
|
|
32
|
+
}), componentToken.ComponentToken.Drawer, {
|
|
33
|
+
confirm: "Confirm"
|
|
34
|
+
}), componentToken.ComponentToken.Upload, {
|
|
35
|
+
upload: "Upload"
|
|
32
36
|
});
|
|
33
37
|
|
|
34
38
|
exports.default = en_US;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
3
3
|
|
|
4
|
-
var en_US = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
4
|
+
var en_US = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
5
5
|
locale: "en_US"
|
|
6
6
|
}, ComponentToken.Dialog, {
|
|
7
7
|
confirm: "Confirm",
|
|
@@ -27,6 +27,10 @@ var en_US = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_def
|
|
|
27
27
|
}), ComponentToken.I18nButton, {
|
|
28
28
|
zh_CN: "Chinese",
|
|
29
29
|
en_US: "English"
|
|
30
|
+
}), ComponentToken.Drawer, {
|
|
31
|
+
confirm: "Confirm"
|
|
32
|
+
}), ComponentToken.Upload, {
|
|
33
|
+
upload: "Upload"
|
|
30
34
|
});
|
|
31
35
|
|
|
32
36
|
export { en_US as default };
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
3
3
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
4
4
|
var componentToken = require('../../utils/component-token.cjs');
|
|
5
5
|
|
|
6
|
-
var zh_CN = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
6
|
+
var zh_CN = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
7
7
|
locale: "zh_CN"
|
|
8
8
|
}, componentToken.ComponentToken.Dialog, {
|
|
9
9
|
confirm: "确认",
|
|
@@ -29,6 +29,10 @@ var zh_CN = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_def
|
|
|
29
29
|
}), componentToken.ComponentToken.I18nButton, {
|
|
30
30
|
zh_CN: "中文",
|
|
31
31
|
en_US: "英文"
|
|
32
|
+
}), componentToken.ComponentToken.Drawer, {
|
|
33
|
+
confirm: "确认"
|
|
34
|
+
}), componentToken.ComponentToken.Upload, {
|
|
35
|
+
upload: "上传"
|
|
32
36
|
});
|
|
33
37
|
|
|
34
38
|
exports.default = zh_CN;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
3
3
|
|
|
4
|
-
var zh_CN = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
4
|
+
var zh_CN = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
5
5
|
locale: "zh_CN"
|
|
6
6
|
}, ComponentToken.Dialog, {
|
|
7
7
|
confirm: "确认",
|
|
@@ -27,6 +27,10 @@ var zh_CN = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_def
|
|
|
27
27
|
}), ComponentToken.I18nButton, {
|
|
28
28
|
zh_CN: "中文",
|
|
29
29
|
en_US: "英文"
|
|
30
|
+
}), ComponentToken.Drawer, {
|
|
31
|
+
confirm: "确认"
|
|
32
|
+
}), ComponentToken.Upload, {
|
|
33
|
+
upload: "上传"
|
|
30
34
|
});
|
|
31
35
|
|
|
32
36
|
export { zh_CN as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Locale, LocaleCode } from "
|
|
1
|
+
import type { Locale, LocaleCode } from "musae/types/locale";
|
|
2
2
|
export type LocaleComponentToken = Exclude<keyof Locale, "locale">;
|
|
3
3
|
type UsedLocale<C extends LocaleComponentToken> = [Locale[C], LocaleCode];
|
|
4
4
|
export declare const useLocale: <C extends LocaleComponentToken = LocaleComponentToken>(componentName: C) => UsedLocale<C>;
|
package/dist/styles.css
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
:root{--musaex-127010g:-1;--musaex-1vh8wei:1;--musaex-11upij1:50;--musaex-oqacdq:60;--musaex-if0yew:990;--musaex-9gpkaf:1080;--musaex-80rspi:1080;--musaex-ah5ngi:1080;--musaex-ymrixl:1080;--musaex-1tyqau6:1090;--musaex-7fr0d6:1200;--musaex-dlxqgz:9999;}
|
|
2
2
|
:root{--musaex-1aj7t22:0px;--musaex-1ax7z96:1px;--musaex-jdzqnm:2px;--musaex-1hydgie:4px;--musaex-fwu7zn:8px;--musaex-1l9c3uf:16px;--musaex-cx2xv5:20px;--musaex-rlgvtq:24px;--musaex-1qsoxbc:28px;--musaex-16n5srz:32px;--musaex-wll1cf:36px;--musaex-cftog7:40px;--musaex-laggmb:48px;--musaex-xrqq76:64px;--musaex-1spnrok:96px;--musaex-11uhodo:120px;--musaex-2h23ia:190px;--musaex-1rrllem:calc(Infinity * 1px);--musaex-1qj6wod:100%;--musaex-70uu0v:50%;--musaex-1yg5bqe:auto;}
|
|
3
|
-
:root{--musaex-
|
|
3
|
+
:root{--musaex-1f2azoo:0.08;--musaex-1wowidf:0.12;--musaex-1ap209q:0.16;--musaex-1itczwt:0.38;}
|
|
4
4
|
:root{--musaex-1odcd6w:0px;--musaex-bbiwro:0.1px;--musaex-1x9q6du:0.15px;--musaex-1fsxyg9:0.25px;--musaex-2s74kj:0.4px;--musaex-1ry795:0.5px;}
|
|
5
5
|
:root{--musaex-1wblvyz:0px;--musaex-dojqt2:1px;--musaex-1h5s2h0:2px;--musaex-qk2ac7:4px;--musaex-h30iw9:6px;--musaex-vk5id6:8px;--musaex-1ncxh3n:12px;--musaex-oohzsl:16px;--musaex-1tzp6vk:24px;--musaex-15cw4i4:32px;--musaex-1n7xs5j:48px;--musaex-68a8pz:auto;}
|
|
6
6
|
:root{--musaex-gmufu8:none;--musaex-15zostt:rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;--musaex-1trg6py:rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px 0px;--musaex-4poz8g:rgba(0, 0, 0, 0.2) 0px 3px 5px -1px, rgba(0, 0, 0, 0.14) 0px 6px 10px 0px, rgba(0, 0, 0, 0.12) 0px 1px 18px 0px;--musaex-1vq77kn:rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;--musaex-1yt3x0a:rgba(0, 0, 0, 0.2) 0px 7px 8px -4px, rgba(0, 0, 0, 0.14) 0px 12px 17px 2px, rgba(0, 0, 0, 0.12) 0px 5px 22px 4px;}
|
|
7
|
+
.musaex-1utc1yc{--cell-color:var(----cell-color,revert)}
|
|
8
|
+
.musaex-1erll0c{--cell-size:calc(var(--musaex-cx2xv5) / 2)}
|
|
7
9
|
.musaex-1gm2eyx{--code-background-color:var(----code-background-color,revert)}
|
|
10
|
+
.musaex-p8ugqh{--lighter-shadow:var(----lighter-shadow,revert)}
|
|
8
11
|
.musaex-1i66ttz{--on-primary-color:var(----on-primary-color,revert)}
|
|
9
12
|
.musaex-1x71zss{--outline-color:var(----outline-color,revert)}
|
|
10
13
|
.musaex-1w3qx2l{--primary-color:var(----primary-color,revert)}
|
|
14
|
+
.musaex-36wvql{--shadow:var(----shadow,revert)}
|
|
11
15
|
@keyframes musaex-1928g5l-B{from{background-position:100% 50%;}100%{background-position:0 50%;}}
|
|
12
16
|
@keyframes musaex-r5zuwi-B{from{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-110;}12%{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-110;}20%{stroke-dasharray:20 200;stroke-width:30px;stroke-dashoffset:-115;}40%{stroke-dasharray:20 200;stroke-width:30px;stroke-dashoffset:-195;}48%{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-220;}62%{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-220;}70%{stroke-dasharray:20 200;stroke-width:30px;stroke-dashoffset:-225;}90%{stroke-dasharray:20 200;stroke-width:30px;stroke-dashoffset:-305;}98%{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-330;}to{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-330;}}
|
|
13
17
|
@keyframes musaex-f6d5zf-B{from{stroke-dasharray:0 440;stroke-width:20px;stroke-dashoffset:0;}8%{stroke-dasharray:40 400;stroke-width:30px;stroke-dashoffset:-5;}28%{stroke-dasharray:40 400;stroke-width:30px;stroke-dashoffset:-175;}36%{stroke-dasharray:0 440;stroke-width:20px;stroke-dashoffset:-220;}58%{stroke-dasharray:0 440;stroke-width:20px;stroke-dashoffset:-220;}66%{stroke-dasharray:40 400;stroke-width:30px;stroke-dashoffset:-225;}86%{stroke-dasharray:40 400;stroke-width:30px;stroke-dashoffset:-395;}94%{stroke-dasharray:0 440;stroke-width:20px;stroke-dashoffset:-440;}to{stroke-dasharray:0 440;stroke-width:20px;stroke-dashoffset:-440;}}
|
|
@@ -15,8 +19,8 @@
|
|
|
15
19
|
@keyframes musaex-rw80zm-B{from{stroke-dasharray:0 660;stroke-width:20px;stroke-dashoffset:-330;}4%{stroke-dasharray:0 660;stroke-width:20px;stroke-dashoffset:-330;}12%{stroke-dasharray:60 600;stroke-width:30px;stroke-dashoffset:-335;}32%{stroke-dasharray:60 600;stroke-width:30px;stroke-dashoffset:-595;}40%{stroke-dasharray:0 660;stroke-width:20px;stroke-dashoffset:-660;}54%{stroke-dasharray:0 660;stroke-width:20px;stroke-dashoffset:-660;}62%{stroke-dasharray:60 600;stroke-width:30px;stroke-dashoffset:-665;}82%{stroke-dasharray:60 600;stroke-width:30px;stroke-dashoffset:-925;}90%{stroke-dasharray:0 660;stroke-width:20px;stroke-dashoffset:-990;}to{stroke-dasharray:0 660;stroke-width:20px;stroke-dashoffset:-990;}}
|
|
16
20
|
@keyframes musaex-1fy8ia8-B{to{transform:rotate(360deg);}}
|
|
17
21
|
.musaex-1bu15qu:not(#\#){animation:musaex-1fy8ia8-B 1s infinite linear}
|
|
18
|
-
.musaex-
|
|
19
|
-
.musaex-
|
|
22
|
+
.musaex-1br516c:not(#\#){background:linear-gradient(90deg,var(--shadow) 25%,var(--lighter-shadow) 37%,var(--shadow) 63%)}
|
|
23
|
+
.musaex-uwpeme:not(#\#){background:var(--shadow)}
|
|
20
24
|
.musaex-1om8rk0:not(#\#){border-inline:var(--musaex-1ax7z96)}
|
|
21
25
|
.musaex-1gs6z28:not(#\#){border:none}
|
|
22
26
|
.musaex-firn0k:not(#\#){border:var(--musaex-1aj7t22)}
|
|
@@ -35,6 +39,7 @@
|
|
|
35
39
|
.musaex-p8vts:not(#\#){margin:var(--musaex-1wblvyz)}
|
|
36
40
|
.musaex-gnae0u:not(#\#){margin:var(--musaex-68a8pz)}
|
|
37
41
|
.musaex-9qdtsz:not(#\#){margin:var(--musaex-dojqt2)}
|
|
42
|
+
.musaex-1717udv:not(#\#){padding:0}
|
|
38
43
|
.musaex-2wmp0v:not(#\#){padding:var(--musaex-1ncxh3n)}
|
|
39
44
|
.musaex-ox8tdy:not(#\#){padding:var(--musaex-1tzp6vk)}
|
|
40
45
|
.musaex-j8pfrn:not(#\#){padding:var(--musaex-1wblvyz)}
|
|
@@ -52,6 +57,7 @@
|
|
|
52
57
|
.musaex-z7qqyb:not(#\#):not(#\#){border-radius:var(--musaex-1rrllem)}
|
|
53
58
|
.musaex-qwu505:not(#\#):not(#\#){border-radius:var(--musaex-fwu7zn)}
|
|
54
59
|
.musaex-18pg0zq:not(#\#):not(#\#){border-radius:var(--musaex-h30iw9)}
|
|
60
|
+
.musaex-llun4g:not(#\#):not(#\#){border-radius:var(--musaex-jdzqnm)}
|
|
55
61
|
.musaex-1fioaya:not(#\#):not(#\#){border-radius:var(--musaex-qk2ac7)}
|
|
56
62
|
.musaex-1u07kge:not(#\#):not(#\#){border-radius:var(--musaex-vk5id6)}
|
|
57
63
|
.musaex-1y0btm7:not(#\#):not(#\#){border-style:solid}
|
|
@@ -80,8 +86,8 @@
|
|
|
80
86
|
.musaex-3hncxx:not(#\#):not(#\#){outline:var(--musaex-1aj7t22)}
|
|
81
87
|
.musaex-ysyzu8:not(#\#):not(#\#){overflow:auto}
|
|
82
88
|
.musaex-b3r6kr:not(#\#):not(#\#){overflow:hidden}
|
|
89
|
+
.musaex-1rea2x4:not(#\#):not(#\#){overflow:visible}
|
|
83
90
|
.musaex-qhkzqn:not(#\#):not(#\#){padding-block:var(--musaex-1ncxh3n)}
|
|
84
|
-
.musaex-1daajqp:not(#\#):not(#\#){padding-block:var(--musaex-1tzp6vk)}
|
|
85
91
|
.musaex-133qg4p:not(#\#):not(#\#){padding-block:var(--musaex-1wblvyz)}
|
|
86
92
|
.musaex-4bkepr:not(#\#):not(#\#){padding-block:var(--musaex-h30iw9)}
|
|
87
93
|
.musaex-4g05pm:not(#\#):not(#\#){padding-block:var(--musaex-oohzsl)}
|
|
@@ -123,8 +129,11 @@
|
|
|
123
129
|
.musaex-jbqb8w:not(#\#):not(#\#):not(#\#){background-color:transparent}
|
|
124
130
|
.musaex-q1mx2j:not(#\#):not(#\#):not(#\#){background-color:var(--backgroundColor,revert)}
|
|
125
131
|
.musaex-8hsaj5:not(#\#):not(#\#):not(#\#){background-color:var(--bcbnzo,revert)}
|
|
132
|
+
.musaex-1204rnj:not(#\#):not(#\#):not(#\#){background-color:var(--cell-color)}
|
|
126
133
|
.musaex-1x8l0va:not(#\#):not(#\#):not(#\#){background-color:var(--code-background-color)}
|
|
127
134
|
.musaex-1db4oza:not(#\#):not(#\#):not(#\#){background-size:400% 100%}
|
|
135
|
+
.musaex-1vathgz:not(#\#):not(#\#):not(#\#){border-collapse:separate}
|
|
136
|
+
.musaex-g5hwcv:not(#\#):not(#\#):not(#\#){border-spacing:var(--musaex-qk2ac7)}
|
|
128
137
|
.musaex-igitpm:not(#\#):not(#\#):not(#\#){box-shadow:var(--boxShadow,revert)}
|
|
129
138
|
.musaex-sgc7hx:not(#\#):not(#\#):not(#\#){box-shadow:var(--musaex-15zostt)}
|
|
130
139
|
.musaex-1bhjvst:not(#\#):not(#\#):not(#\#){box-shadow:var(--musaex-1trg6py)}
|
|
@@ -214,6 +223,7 @@
|
|
|
214
223
|
.musaex-1kwx3ox:not(#\#):not(#\#):not(#\#){margin-inline-end:calc(100% + var(--musaex-rlgvtq) + var(--musaex-jdzqnm) * 4 + var(--musaex-jdzqnm))}
|
|
215
224
|
.musaex-1uoloo9:not(#\#):not(#\#):not(#\#){margin-inline-end:var(--marginInlineEnd,revert)}
|
|
216
225
|
.musaex-1lziwak:not(#\#):not(#\#):not(#\#){margin-inline-start:0}
|
|
226
|
+
.musaex-vc5jky:not(#\#):not(#\#):not(#\#){margin-inline-start:auto}
|
|
217
227
|
.musaex-xsxsn7:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(-100% - var(--musaex-rlgvtq) - var(--musaex-jdzqnm) * 4 - var(--musaex-jdzqnm))}
|
|
218
228
|
.musaex-1bec1b4:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(100% + var(--musaex-rlgvtq) + var(--musaex-jdzqnm) * 4 + var(--musaex-jdzqnm))}
|
|
219
229
|
.musaex-1f2nheo:not(#\#):not(#\#):not(#\#){margin-inline-start:var(--marginInlineStart,revert)}
|
|
@@ -224,7 +234,7 @@
|
|
|
224
234
|
.musaex-byyjgo:not(#\#):not(#\#):not(#\#){opacity:.5}
|
|
225
235
|
.musaex-g01cxk:not(#\#):not(#\#):not(#\#){opacity:0}
|
|
226
236
|
.musaex-1hc1fzr:not(#\#):not(#\#):not(#\#){opacity:1}
|
|
227
|
-
.musaex-
|
|
237
|
+
.musaex-1n1gcw9:not(#\#):not(#\#):not(#\#){opacity:var(--musaex-1itczwt)}
|
|
228
238
|
.musaex-3x427e:not(#\#):not(#\#):not(#\#){order:var(--order,revert)}
|
|
229
239
|
.musaex-1jw8hb:not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--musaex-15cw4i4) / 2 - var(--musaex-jdzqnm))}
|
|
230
240
|
.musaex-naytfa:not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--musaex-rlgvtq) + var(--musaex-jdzqnm) * 4)}
|
|
@@ -264,6 +274,7 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
264
274
|
.musaex-rycbv3:not(#\#):not(#\#):not(#\#){transform:translateX(50%) translateY(-50%)}
|
|
265
275
|
.musaex-1vfo23u:not(#\#):not(#\#):not(#\#){transform:translateX(50%) translateY(50%)}
|
|
266
276
|
.musaex-1v0jg1i:not(#\#):not(#\#):not(#\#){transform:var(--transform,revert)}
|
|
277
|
+
.musaex-1g2r6go:not(#\#):not(#\#):not(#\#){transition-duration:.1s}
|
|
267
278
|
.musaex-13dflua:not(#\#):not(#\#):not(#\#){transition-duration:.2s}
|
|
268
279
|
.musaex-1d8287x:not(#\#):not(#\#):not(#\#){transition-duration:.3s}
|
|
269
280
|
.musaex-fagghw:not(#\#):not(#\#):not(#\#){transition-property:all}
|
|
@@ -274,6 +285,7 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
274
285
|
.musaex-19991ni:not(#\#):not(#\#):not(#\#){transition-property:opacity}
|
|
275
286
|
.musaex-bjh9w0:not(#\#):not(#\#):not(#\#){transition-property:padding-inline-start,padding-inline-end}
|
|
276
287
|
.musaex-11xpdln:not(#\#):not(#\#):not(#\#){transition-property:transform}
|
|
288
|
+
.musaex-qzan4j:not(#\#):not(#\#):not(#\#){transition-property:translate,opacity}
|
|
277
289
|
.musaex-87ps6o:not(#\#):not(#\#):not(#\#){user-select:none}
|
|
278
290
|
.musaex-3ajldb:not(#\#):not(#\#):not(#\#){vertical-align:bottom}
|
|
279
291
|
.musaex-xymvpz:not(#\#):not(#\#):not(#\#){vertical-align:middle}
|
|
@@ -283,7 +295,7 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
283
295
|
.musaex-19v51jg:not(#\#):not(#\#):not(#\#){will-change:background-color,color,box-shadow}
|
|
284
296
|
.musaex-1o9dqaq:not(#\#):not(#\#):not(#\#){will-change:box-shadow,transform}
|
|
285
297
|
.musaex-1so62im:not(#\#):not(#\#):not(#\#){will-change:transform}
|
|
286
|
-
.musaex-
|
|
298
|
+
.musaex-1enemt:not(#\#):not(#\#):not(#\#){will-change:translate,opacity}
|
|
287
299
|
.musaex-13faqbe:not(#\#):not(#\#):not(#\#){word-break:break-word}
|
|
288
300
|
.musaex-cjiq3g:not(#\#):not(#\#):not(#\#){z-index:var(--musaex-11upij1)}
|
|
289
301
|
.musaex-18enb72:not(#\#):not(#\#):not(#\#){z-index:var(--musaex-127010g)}
|
|
@@ -330,6 +342,7 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
330
342
|
.musaex-t7dq6l:not(#\#):not(#\#):not(#\#):not(#\#){height:auto}
|
|
331
343
|
.musaex-bmf846:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(100vh - var(--musaex-xrqq76) - var(--musaex-15cw4i4))}
|
|
332
344
|
.musaex-g7h5cd:not(#\#):not(#\#):not(#\#):not(#\#){height:fit-content}
|
|
345
|
+
.musaex-sahybl:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--cell-size)}
|
|
333
346
|
.musaex-1jwls1v:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--height,revert)}
|
|
334
347
|
.musaex-1dql3xx:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-16n5srz)}
|
|
335
348
|
.musaex-18eqiv3:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-1ax7z96)}
|
|
@@ -340,7 +353,6 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
340
353
|
.musaex-h22aca:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-2h23ia)}
|
|
341
354
|
.musaex-r8va6l:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-70uu0v)}
|
|
342
355
|
.musaex-19ak84k:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-cftog7)}
|
|
343
|
-
.musaex-1bti5vo:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-cx2xv5)}
|
|
344
356
|
.musaex-drj9st:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-fwu7zn)}
|
|
345
357
|
.musaex-26n3vf:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-jdzqnm)}
|
|
346
358
|
.musaex-1q1utna:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-laggmb)}
|
|
@@ -362,16 +374,19 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
362
374
|
.musaex-19h4m1:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:var(--musaex-qk2ac7)}
|
|
363
375
|
.musaex-11m1c1s:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:var(--musaex-vk5id6)}
|
|
364
376
|
.musaex-fi9ciw:not(#\#):not(#\#):not(#\#):not(#\#){max-height:calc(100% - var(--musaex-15cw4i4) * 2)}
|
|
377
|
+
.musaex-193iq5w:not(#\#):not(#\#):not(#\#):not(#\#){max-width:100%}
|
|
365
378
|
.musaex-16xn7b0:not(#\#):not(#\#):not(#\#):not(#\#){max-width:100vw}
|
|
366
379
|
.musaex-77asx0:not(#\#):not(#\#):not(#\#):not(#\#){max-width:var(--musaex-1qj6wod)}
|
|
367
|
-
.musaex-
|
|
380
|
+
.musaex-189dakb:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--cell-size)}
|
|
368
381
|
.musaex-tynr54:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musaex-16n5srz)}
|
|
369
382
|
.musaex-1mjul0d:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musaex-1spnrok)}
|
|
383
|
+
.musaex-ktxt4i:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musaex-2h23ia)}
|
|
370
384
|
.musaex-1p0x9m9:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musaex-cftog7)}
|
|
371
385
|
.musaex-1fdzm4i:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musaex-laggmb)}
|
|
372
386
|
.musaex-1ite1z3:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musaex-rlgvtq)}
|
|
373
387
|
.musaex-1jzhcrs:not(#\#):not(#\#):not(#\#):not(#\#){min-width:200px}
|
|
374
388
|
.musaex-15cq3s0:not(#\#):not(#\#):not(#\#):not(#\#){min-width:480px}
|
|
389
|
+
.musaex-1q6qbx2:not(#\#):not(#\#):not(#\#):not(#\#){min-width:var(--cell-size)}
|
|
375
390
|
.musaex-13to73x:not(#\#):not(#\#):not(#\#):not(#\#){min-width:var(--minWidth,revert)}
|
|
376
391
|
.musaex-1kc4xvm:not(#\#):not(#\#):not(#\#):not(#\#){min-width:var(--musaex-16n5srz)}
|
|
377
392
|
.musaex-1n0e6fi:not(#\#):not(#\#):not(#\#):not(#\#){min-width:var(--musaex-1aj7t22)}
|
|
@@ -395,12 +410,10 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
395
410
|
.musaex-3m8u43:not(#\#):not(#\#):not(#\#):not(#\#){right:0}
|
|
396
411
|
.musaex-k6ci0l:not(#\#):not(#\#):not(#\#):not(#\#){right:20px}
|
|
397
412
|
.musaex-l9l3z8:not(#\#):not(#\#):not(#\#):not(#\#){right:var(--musaex-15cw4i4)}
|
|
398
|
-
.musaex-134unf5:not(#\#):not(#\#):not(#\#):not(#\#){right:var(--musaex-oohzsl)}
|
|
399
413
|
.musaex-13vifvy:not(#\#):not(#\#):not(#\#):not(#\#){top:0}
|
|
400
414
|
.musaex-wa60dl:not(#\#):not(#\#):not(#\#):not(#\#){top:50%}
|
|
401
415
|
.musaex-98oeat:not(#\#):not(#\#):not(#\#):not(#\#){top:calc(var(--musaex-xrqq76) + var(--musaex-15cw4i4))}
|
|
402
416
|
.musaex-1mjgxse:not(#\#):not(#\#):not(#\#):not(#\#){top:var(--musaex-15cw4i4)}
|
|
403
|
-
.musaex-167ikqz:not(#\#):not(#\#):not(#\#):not(#\#){top:var(--musaex-oohzsl)}
|
|
404
417
|
.musaex-13op6mf:not(#\#):not(#\#):not(#\#):not(#\#){top:var(--musaex-qk2ac7)}
|
|
405
418
|
.musaex-rzbxsz:not(#\#):not(#\#):not(#\#):not(#\#){top:var(--top,revert)}
|
|
406
419
|
.musaex-h8yej3:not(#\#):not(#\#):not(#\#):not(#\#){width:100%}
|
|
@@ -408,7 +421,6 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
408
421
|
.musaex-vy4d1p:not(#\#):not(#\#):not(#\#):not(#\#){width:24px}
|
|
409
422
|
.musaex-16b21pk:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(1ch + var(--musaex-1ncxh3n) * 2)}
|
|
410
423
|
.musaex-eq5yr9:not(#\#):not(#\#):not(#\#):not(#\#){width:fit-content}
|
|
411
|
-
.musaex-1fvqbsf:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-11uhodo)}
|
|
412
424
|
.musaex-zx3e9c:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-16n5srz)}
|
|
413
425
|
.musaex-1k7lhcj:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-1ax7z96)}
|
|
414
426
|
.musaex-ohro5l:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-1hydgie)}
|
|
@@ -417,7 +429,6 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
417
429
|
.musaex-1doc0eo:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-2h23ia)}
|
|
418
430
|
.musaex-1um6o8b:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-70uu0v)}
|
|
419
431
|
.musaex-1opwmbq:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-cftog7)}
|
|
420
|
-
.musaex-rdd3y:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-cx2xv5)}
|
|
421
432
|
.musaex-1ankuk0:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-fwu7zn)}
|
|
422
433
|
.musaex-yueg9c:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-laggmb)}
|
|
423
434
|
.musaex-v4a0uj:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-oohzsl)}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "musae/types/element";
|
|
2
|
-
export
|
|
3
|
-
Hour = "hour",
|
|
4
|
-
Minute = "minute",
|
|
5
|
-
Second = "second"
|
|
6
|
-
}
|
|
2
|
+
export type TimeUnit = "hour" | "minute" | "second";
|
|
7
3
|
type Value = [number, number, number];
|
|
8
4
|
/**
|
|
9
5
|
* @description
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode, RefObject } from "react";
|
|
2
|
-
import type { CLASS_NAMES } from "
|
|
3
|
-
import type { HolderRef } from "
|
|
2
|
+
import type { CLASS_NAMES } from "../utils/class-name";
|
|
3
|
+
import type { HolderRef } from "./notification";
|
|
4
4
|
import type { Locale } from "musae/types/locale";
|
|
5
5
|
export type ClassNames = typeof CLASS_NAMES;
|
|
6
6
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ComponentProps } from "musae/types/element";
|
|
2
|
-
import { ButtonProps } from "
|
|
2
|
+
import { ButtonProps } from "./button";
|
|
3
3
|
/**
|
|
4
4
|
* @description
|
|
5
|
-
*
|
|
5
|
+
* countdown props
|
|
6
6
|
*/
|
|
7
|
-
export type
|
|
7
|
+
export type CountdownProps = Pick<ButtonProps, "children" | "disabled" | "variant" | "color" | "size" | "shape" | "ripple"> & ComponentProps & {
|
|
8
8
|
/**
|
|
9
9
|
* @description
|
|
10
10
|
* count total after every trigger
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties, ReactNode } from "react";
|
|
2
|
-
import type { Closable } from "
|
|
2
|
+
import type { Closable } from "../hooks/use-closable";
|
|
3
3
|
import type { RequiredIn } from "@aiszlab/relax/types";
|
|
4
|
-
import type { PortalProps } from "
|
|
4
|
+
import type { PortalProps } from "./portal";
|
|
5
5
|
import type { ComponentProps } from "musae/types/element";
|
|
6
6
|
/**
|
|
7
7
|
* @description
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { ComponentProps } from "musae/types/element";
|
|
3
|
-
import type { Gutter } from "
|
|
3
|
+
import type { Gutter } from "../hooks/use-gutters";
|
|
4
4
|
export type Align = "center" | "left" | "right";
|
|
5
5
|
export type Orientation = "horizontal" | "vertical";
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
import type { Closable } from "
|
|
2
|
+
import type { Closable } from "../hooks/use-closable";
|
|
3
3
|
import type { ComponentProps } from "musae/types/element";
|
|
4
4
|
export type Placement = "right" | "left" | "top" | "bottom";
|
|
5
5
|
/**
|
|
@@ -52,6 +52,11 @@ export type DrawerProps = Pick<ComponentProps, "className"> & {
|
|
|
52
52
|
* @default void 0
|
|
53
53
|
*/
|
|
54
54
|
onClose?: VoidFunction;
|
|
55
|
+
/**
|
|
56
|
+
* @description
|
|
57
|
+
* on confirm handler
|
|
58
|
+
*/
|
|
59
|
+
onConfirm?: VoidFunction;
|
|
55
60
|
};
|
|
56
61
|
/**
|
|
57
62
|
* @description
|
package/dist/types/element.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CSSProperties
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
2
|
/**
|
|
3
3
|
* @author
|
|
4
4
|
* @description
|
|
@@ -17,58 +17,3 @@ export interface ComponentProps {
|
|
|
17
17
|
*/
|
|
18
18
|
style?: CSSProperties;
|
|
19
19
|
}
|
|
20
|
-
/**
|
|
21
|
-
* @author murukal
|
|
22
|
-
* @description
|
|
23
|
-
* field need pass some props
|
|
24
|
-
* use this props as common
|
|
25
|
-
*/
|
|
26
|
-
export interface FieldRenderProps<T = unknown> {
|
|
27
|
-
/**
|
|
28
|
-
* @description
|
|
29
|
-
* name
|
|
30
|
-
*/
|
|
31
|
-
name: string;
|
|
32
|
-
/**
|
|
33
|
-
* @description
|
|
34
|
-
* value
|
|
35
|
-
*/
|
|
36
|
-
value: unknown;
|
|
37
|
-
/**
|
|
38
|
-
* @description
|
|
39
|
-
* invalid
|
|
40
|
-
*/
|
|
41
|
-
invalid?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* @description
|
|
44
|
-
* ref
|
|
45
|
-
*/
|
|
46
|
-
ref?: RefCallback<T>;
|
|
47
|
-
/**
|
|
48
|
-
* @description
|
|
49
|
-
* change handler
|
|
50
|
-
*/
|
|
51
|
-
onChange: (...args: unknown[]) => void;
|
|
52
|
-
/**
|
|
53
|
-
* @description
|
|
54
|
-
* blur handler
|
|
55
|
-
*/
|
|
56
|
-
onBlur: (...args: unknown[]) => void;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* @description
|
|
60
|
-
* with level
|
|
61
|
-
*/
|
|
62
|
-
export type WithLevel<T extends Object> = T & {
|
|
63
|
-
/**
|
|
64
|
-
* @description
|
|
65
|
-
* level
|
|
66
|
-
*/
|
|
67
|
-
level: number;
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* @description
|
|
71
|
-
* size
|
|
72
|
-
* in musae, we always use three size
|
|
73
|
-
*/
|
|
74
|
-
export type Size = "small" | "medium" | "large";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
import type { PortalProps } from "
|
|
2
|
+
import type { PortalProps } from "./portal";
|
|
3
3
|
/**
|
|
4
4
|
* @description
|
|
5
5
|
* floatable ref
|
|
@@ -15,7 +15,7 @@ export type FloatableRef = {
|
|
|
15
15
|
* @description
|
|
16
16
|
* props
|
|
17
17
|
*/
|
|
18
|
-
export type
|
|
18
|
+
export type FabProps = {
|
|
19
19
|
/**
|
|
20
20
|
* @description
|
|
21
21
|
* container
|
|
@@ -35,7 +35,7 @@ export type FloatableProps = {
|
|
|
35
35
|
/**
|
|
36
36
|
* @link {FloatingActionButtonProps.container}
|
|
37
37
|
*/
|
|
38
|
-
container?:
|
|
38
|
+
container?: FabProps["container"];
|
|
39
39
|
/**
|
|
40
40
|
* @description
|
|
41
41
|
* children
|
package/dist/types/form.d.ts
CHANGED
|
@@ -1,6 +1,44 @@
|
|
|
1
|
-
import type { PropsWithoutRef, ReactNode, RefAttributes } from "react";
|
|
1
|
+
import type { PropsWithoutRef, ReactNode, RefAttributes, RefCallback } from "react";
|
|
2
2
|
import type { DeepPartial, FieldValues, UseFormReturn } from "react-hook-form";
|
|
3
3
|
import type { ComponentProps } from "./element";
|
|
4
|
+
/**
|
|
5
|
+
* @author murukal
|
|
6
|
+
* @description
|
|
7
|
+
* field need pass some props
|
|
8
|
+
* use this props as common
|
|
9
|
+
*/
|
|
10
|
+
export interface FieldRenderProps<T = unknown> {
|
|
11
|
+
/**
|
|
12
|
+
* @description
|
|
13
|
+
* name
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* @description
|
|
18
|
+
* value
|
|
19
|
+
*/
|
|
20
|
+
value: unknown;
|
|
21
|
+
/**
|
|
22
|
+
* @description
|
|
23
|
+
* invalid
|
|
24
|
+
*/
|
|
25
|
+
invalid?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @description
|
|
28
|
+
* ref
|
|
29
|
+
*/
|
|
30
|
+
ref?: RefCallback<T>;
|
|
31
|
+
/**
|
|
32
|
+
* @description
|
|
33
|
+
* change handler
|
|
34
|
+
*/
|
|
35
|
+
onChange: (...args: unknown[]) => void;
|
|
36
|
+
/**
|
|
37
|
+
* @description
|
|
38
|
+
* blur handler
|
|
39
|
+
*/
|
|
40
|
+
onBlur: (...args: unknown[]) => void;
|
|
41
|
+
}
|
|
4
42
|
/**
|
|
5
43
|
* @author murukal
|
|
6
44
|
* @description
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CSSProperties, ReactNode } from "react";
|
|
2
2
|
import type { ComponentProps } from "musae/types/element";
|
|
3
|
-
import type { Gutter } from "
|
|
3
|
+
import type { Gutter } from "../hooks/use-gutters";
|
|
4
4
|
export interface RowProps extends ComponentProps {
|
|
5
5
|
/**
|
|
6
6
|
* @description
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { Locale } from "musae/types/locale";
|
|
2
|
-
import type { ButtonProps } from "
|
|
2
|
+
import type { ButtonProps } from "./button";
|
|
3
|
+
import { ComponentProps } from "musae/types/element";
|
|
3
4
|
/**
|
|
4
5
|
* @description
|
|
5
6
|
* i18n button props
|
|
6
7
|
*/
|
|
7
|
-
export type I18nButtonProps = {
|
|
8
|
+
export type I18nButtonProps = ComponentProps & {
|
|
8
9
|
/**
|
|
9
10
|
* @description
|
|
10
11
|
* change handler
|
package/dist/types/locale.d.ts
CHANGED
package/dist/types/menu.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Key, ReactNode } from "react";
|
|
2
|
-
import type { ComponentProps
|
|
3
|
-
|
|
2
|
+
import type { ComponentProps } from "./element";
|
|
3
|
+
export type Size = "small" | "medium" | "large";
|
|
4
4
|
export type Mode = "vertical" | "horizontal" | "inline";
|
|
5
5
|
/**
|
|
6
6
|
* @author murukal
|
|
@@ -65,7 +65,7 @@ export interface MenuProps extends ComponentProps {
|
|
|
65
65
|
* selected keys
|
|
66
66
|
* @default void 0
|
|
67
67
|
*/
|
|
68
|
-
selectedKeys?: Key[];
|
|
68
|
+
selectedKeys?: Key[] | Key;
|
|
69
69
|
/**
|
|
70
70
|
* @description
|
|
71
71
|
* default selected keys
|
|
@@ -129,7 +129,7 @@ export type MenuItem = ComponentProps & {
|
|
|
129
129
|
* @description
|
|
130
130
|
* menu item render props
|
|
131
131
|
*/
|
|
132
|
-
export type MenuItemProps =
|
|
132
|
+
export type MenuItemProps = Omit<MenuItem, "key" | "children"> & ComponentProps & {
|
|
133
133
|
/**
|
|
134
134
|
* @description
|
|
135
135
|
* value
|
|
@@ -156,6 +156,11 @@ export type MenuItemProps = WithLevel<Omit<MenuItem, "key" | "children">> & Comp
|
|
|
156
156
|
* mode
|
|
157
157
|
*/
|
|
158
158
|
mode: Mode;
|
|
159
|
+
/**
|
|
160
|
+
* @description
|
|
161
|
+
* level
|
|
162
|
+
*/
|
|
163
|
+
level: number;
|
|
159
164
|
};
|
|
160
165
|
/**
|
|
161
166
|
* @author murukal
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NotificationConfig, Type } from "../notification";
|
|
1
|
+
import type { NotificationConfig, Type } from "../components/notification";
|
|
2
2
|
export type MessageConfig = Omit<NotificationConfig, "title" | "placement" | "closable">;
|
|
3
3
|
export type OpenHandler = (config: Omit<MessageConfig, "type">) => Promise<void>;
|
|
4
4
|
/**
|