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,3 +1,4 @@
|
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
1
2
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
2
3
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
4
|
import React, { forwardRef, useRef, useImperativeHandle } from 'react';
|
|
@@ -11,7 +12,7 @@ import { ClickableLinkPlugin } from '@lexical/react/LexicalClickableLinkPlugin';
|
|
|
11
12
|
import { ListPlugin } from '@lexical/react/LexicalListPlugin';
|
|
12
13
|
import CheckListPlugin from './plugins/check-list/index.mjs';
|
|
13
14
|
import ControlledStatePlugin from './plugins/controlled-state/index.mjs';
|
|
14
|
-
import { useIdentity, useDefault } from '@aiszlab/relax';
|
|
15
|
+
import { useIdentity, useDefault, clsx } from '@aiszlab/relax';
|
|
15
16
|
import { useMessage } from '../message/hooks.mjs';
|
|
16
17
|
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
17
18
|
import { useTheme } from '../theme/hooks.mjs';
|
|
@@ -23,13 +24,13 @@ import { HorizontalRuleNode } from '@lexical/react/LexicalHorizontalRuleNode';
|
|
|
23
24
|
import { CodeNode } from '@lexical/code';
|
|
24
25
|
import { CheckableListItemNode, replacement } from './nodes/checkable-list-item.mjs';
|
|
25
26
|
import ToolbarPlugin from './plugins/toolbar/index.mjs';
|
|
26
|
-
import MarkdownShortcutPlugin
|
|
27
|
+
import MarkdownShortcutPlugin from './plugins/markdown-shortcut/index.mjs';
|
|
27
28
|
import { typography } from '../theme/theme.mjs';
|
|
28
29
|
import '../checkbox/index.mjs';
|
|
29
|
-
import { $convertFromMarkdownString } from '@lexical/markdown';
|
|
30
|
+
import { $convertFromMarkdownString, TRANSFORMERS } from '@lexical/markdown';
|
|
30
31
|
import styles$1 from '../checkbox/styles.mjs';
|
|
31
32
|
|
|
32
|
-
var _excluded = ["placeholder", "disabled", "defaultValue", "onChange", "value"];
|
|
33
|
+
var _excluded = ["placeholder", "disabled", "defaultValue", "onChange", "value", "className", "style"];
|
|
33
34
|
var styles = {
|
|
34
35
|
shell: function shell(props) {
|
|
35
36
|
return [{
|
|
@@ -79,7 +80,9 @@ var RichTextEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
79
80
|
defaultValue = _ref.defaultValue,
|
|
80
81
|
onChange = _ref.onChange;
|
|
81
82
|
_ref.value;
|
|
82
|
-
var
|
|
83
|
+
var className = _ref.className,
|
|
84
|
+
style = _ref.style,
|
|
85
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
83
86
|
var _useIdentity = useIdentity(),
|
|
84
87
|
_useIdentity2 = _slicedToArray(_useIdentity, 1),
|
|
85
88
|
id = _useIdentity2[0];
|
|
@@ -103,7 +106,7 @@ var RichTextEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
103
106
|
codeBackgroundColor: theme.colors[ColorToken.SurfaceContainerHighest]
|
|
104
107
|
})),
|
|
105
108
|
editor: {
|
|
106
|
-
className: "musaex-1a2a7pz musaex-y0sash musaex-1vgzror musaex-igxgg9 musaex-
|
|
109
|
+
className: "musaex-1a2a7pz musaex-y0sash musaex-1vgzror musaex-igxgg9 musaex-ktxt4i"
|
|
107
110
|
},
|
|
108
111
|
h1: _stylex.props(typography.display.large),
|
|
109
112
|
h2: _stylex.props(typography.display.medium),
|
|
@@ -173,7 +176,7 @@ var RichTextEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
173
176
|
// different value usage, use different serialization
|
|
174
177
|
switch (_use) {
|
|
175
178
|
case "markdown":
|
|
176
|
-
$convertFromMarkdownString(defaultValue, TRANSFORMERS);
|
|
179
|
+
$convertFromMarkdownString(defaultValue, TRANSFORMERS, void 0, true);
|
|
177
180
|
break;
|
|
178
181
|
default:
|
|
179
182
|
editor.setEditorState(editor.parseEditorState(defaultValue));
|
|
@@ -193,8 +196,8 @@ var RichTextEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
193
196
|
return /*#__PURE__*/React.createElement(LexicalComposer, {
|
|
194
197
|
initialConfig: initialConfig
|
|
195
198
|
}, /*#__PURE__*/React.createElement("div", {
|
|
196
|
-
className: styled.shell.className,
|
|
197
|
-
style: styled.shell.style
|
|
199
|
+
className: clsx(className, styled.shell.className),
|
|
200
|
+
style: _objectSpread(_objectSpread({}, styled.shell.style), style)
|
|
198
201
|
}, !disabled && /*#__PURE__*/React.createElement(ToolbarPlugin, null), /*#__PURE__*/React.createElement(RichTextPlugin, {
|
|
199
202
|
contentEditable: /*#__PURE__*/React.createElement(ContentEditable, {
|
|
200
203
|
className: styled.editor.className,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Key } from "react";
|
|
2
|
-
import type { Mode, ReadableOptions, SelectProps, ValueOrValues } from "
|
|
2
|
+
import type { Mode, ReadableOptions, SelectProps, ValueOrValues } from "musae/types/select";
|
|
3
3
|
import type { Option } from "musae/types/option";
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
@@ -66,12 +66,15 @@ var Select = function Select(_ref) {
|
|
|
66
66
|
className: "musaex-1pgy25r"
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
+
var selectedKeys = React.useMemo(function () {
|
|
70
|
+
return Array.from(readableValues.keys());
|
|
71
|
+
}, [readableValues]);
|
|
69
72
|
return /*#__PURE__*/React.createElement(picker.default, _objectSpread({
|
|
70
73
|
ref: ref,
|
|
71
74
|
pickable: /*#__PURE__*/React.createElement(selections.default, {
|
|
72
75
|
items: menuItems,
|
|
73
76
|
onSelect: onChange,
|
|
74
|
-
selectedKeys:
|
|
77
|
+
selectedKeys: selectedKeys
|
|
75
78
|
}),
|
|
76
79
|
className: relax.clsx(classNames[className.SelectClassToken.Select], className$1, styled.picker.className),
|
|
77
80
|
style: _objectSpread(_objectSpread({}, styled.picker.style), style),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
|
-
import React, { useRef, useCallback } from 'react';
|
|
2
|
+
import React, { useRef, useCallback, useMemo } from 'react';
|
|
3
3
|
import Picker from '../picker/picker.mjs';
|
|
4
4
|
import { useOptions, useValue } from './hooks.mjs';
|
|
5
5
|
import { SelectClassToken } from '../../utils/class-name.mjs';
|
|
@@ -64,12 +64,15 @@ var Select = function Select(_ref) {
|
|
|
64
64
|
className: "musaex-1pgy25r"
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
+
var selectedKeys = useMemo(function () {
|
|
68
|
+
return Array.from(readableValues.keys());
|
|
69
|
+
}, [readableValues]);
|
|
67
70
|
return /*#__PURE__*/React.createElement(Picker, _objectSpread({
|
|
68
71
|
ref: ref,
|
|
69
72
|
pickable: /*#__PURE__*/React.createElement(Selections, {
|
|
70
73
|
items: menuItems,
|
|
71
74
|
onSelect: onChange,
|
|
72
|
-
selectedKeys:
|
|
75
|
+
selectedKeys: selectedKeys
|
|
73
76
|
}),
|
|
74
77
|
className: clsx(classNames[SelectClassToken.Select], className, styled.picker.className),
|
|
75
78
|
style: _objectSpread(_objectSpread({}, styled.picker.style), style),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type ForwardRefExoticComponent, type PropsWithoutRef, type RefAttributes } from "react";
|
|
2
|
-
import type { SelectorProps, SelectorRef } from "
|
|
2
|
+
import type { SelectorProps, SelectorRef } from "musae/types/select";
|
|
3
3
|
declare const Selector: ForwardRefExoticComponent<PropsWithoutRef<SelectorProps> & RefAttributes<SelectorRef>>;
|
|
4
4
|
export default Selector;
|
|
@@ -11,10 +11,8 @@ var relax = require('@aiszlab/relax');
|
|
|
11
11
|
var toValues = function toValues(valueOrValues) {
|
|
12
12
|
// empty
|
|
13
13
|
if (relax.isVoid(valueOrValues)) return [];
|
|
14
|
-
// already array
|
|
15
|
-
if (relax.isArray(valueOrValues)) return valueOrValues;
|
|
16
14
|
// convert to array
|
|
17
|
-
return
|
|
15
|
+
return relax.toArray(valueOrValues);
|
|
18
16
|
};
|
|
19
17
|
/**
|
|
20
18
|
* @description
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Filter, ReadableOptions, ToMenuItem, Value, ValueOrValues } from "
|
|
1
|
+
import type { Filter, ReadableOptions, ToMenuItem, Value, ValueOrValues } from "musae/types/select";
|
|
2
2
|
import type { Option } from "musae/types/option";
|
|
3
3
|
import type { MenuItem } from "musae/types/menu";
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
6
6
|
* convert to value array
|
|
7
7
|
*/
|
|
8
|
-
export declare const toValues: (valueOrValues?: ValueOrValues) =>
|
|
8
|
+
export declare const toValues: (valueOrValues?: ValueOrValues) => (string | number | bigint | Pick<Option, "value" | "label">)[];
|
|
9
9
|
/**
|
|
10
10
|
* @description
|
|
11
11
|
* convert to key
|
|
@@ -2,7 +2,7 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
2
2
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
3
3
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import _typeof from '@babel/runtime/helpers/typeof';
|
|
5
|
-
import { isVoid,
|
|
5
|
+
import { isVoid, toArray } from '@aiszlab/relax';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @description
|
|
@@ -11,10 +11,8 @@ import { isVoid, isArray } from '@aiszlab/relax';
|
|
|
11
11
|
var toValues = function toValues(valueOrValues) {
|
|
12
12
|
// empty
|
|
13
13
|
if (isVoid(valueOrValues)) return [];
|
|
14
|
-
// already array
|
|
15
|
-
if (isArray(valueOrValues)) return valueOrValues;
|
|
16
14
|
// convert to array
|
|
17
|
-
return
|
|
15
|
+
return toArray(valueOrValues);
|
|
18
16
|
};
|
|
19
17
|
/**
|
|
20
18
|
* @description
|
|
@@ -6,53 +6,24 @@ var React = require('react');
|
|
|
6
6
|
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
7
7
|
var className = require('../../utils/class-name.cjs');
|
|
8
8
|
var relax = require('@aiszlab/relax');
|
|
9
|
+
var tokens_stylex = require('../theme/tokens.stylex.cjs');
|
|
9
10
|
var componentToken = require('../../utils/component-token.cjs');
|
|
11
|
+
var hooks = require('../theme/hooks.cjs');
|
|
12
|
+
var color = require('@aiszlab/fuzzy/color');
|
|
10
13
|
|
|
11
14
|
var styles = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
borderTopRightRadius: null,
|
|
22
|
-
borderBottomLeftRadius: null,
|
|
23
|
-
borderBottomRightRadius: null,
|
|
24
|
-
$$css: true
|
|
25
|
-
},
|
|
26
|
-
button: {
|
|
27
|
-
width: "musaex-1lwsb27",
|
|
28
|
-
height: "musaex-1bti5vo",
|
|
29
|
-
borderRadius: "musaex-z7qqyb",
|
|
30
|
-
borderStartStartRadius: null,
|
|
31
|
-
borderStartEndRadius: null,
|
|
32
|
-
borderEndStartRadius: null,
|
|
33
|
-
borderEndEndRadius: null,
|
|
34
|
-
borderTopLeftRadius: null,
|
|
35
|
-
borderTopRightRadius: null,
|
|
36
|
-
borderBottomLeftRadius: null,
|
|
37
|
-
borderBottomRightRadius: null,
|
|
38
|
-
$$css: true
|
|
39
|
-
},
|
|
40
|
-
avatar: {
|
|
41
|
-
width: "musaex-rdd3y",
|
|
42
|
-
height: "musaex-1bti5vo",
|
|
43
|
-
borderRadius: "musaex-z7qqyb",
|
|
44
|
-
borderStartStartRadius: null,
|
|
45
|
-
borderStartEndRadius: null,
|
|
46
|
-
borderEndStartRadius: null,
|
|
47
|
-
borderEndEndRadius: null,
|
|
48
|
-
borderTopLeftRadius: null,
|
|
49
|
-
borderTopRightRadius: null,
|
|
50
|
-
borderBottomLeftRadius: null,
|
|
51
|
-
borderBottomRightRadius: null,
|
|
52
|
-
$$css: true
|
|
15
|
+
variables: function variables(props) {
|
|
16
|
+
return [{
|
|
17
|
+
"--shadow": "musaex-36wvql",
|
|
18
|
+
"--lighter-shadow": "musaex-p8ugqh",
|
|
19
|
+
$$css: true
|
|
20
|
+
}, {
|
|
21
|
+
"----shadow": props.shadow != null ? props.shadow : "initial",
|
|
22
|
+
"----lighter-shadow": props.lighterShadow != null ? props.lighterShadow : "initial"
|
|
23
|
+
}];
|
|
53
24
|
},
|
|
54
25
|
skeleton: {
|
|
55
|
-
background: "musaex-
|
|
26
|
+
background: "musaex-uwpeme",
|
|
56
27
|
backgroundAttachment: null,
|
|
57
28
|
backgroundClip: null,
|
|
58
29
|
backgroundColor: null,
|
|
@@ -66,7 +37,7 @@ var styles = {
|
|
|
66
37
|
$$css: true
|
|
67
38
|
},
|
|
68
39
|
animation: {
|
|
69
|
-
background: "musaex-
|
|
40
|
+
background: "musaex-1br516c",
|
|
70
41
|
backgroundAttachment: null,
|
|
71
42
|
backgroundClip: null,
|
|
72
43
|
backgroundColor: null,
|
|
@@ -86,12 +57,15 @@ var styles = {
|
|
|
86
57
|
};
|
|
87
58
|
var Skeleton = function Skeleton(_ref) {
|
|
88
59
|
var _ref$animation = _ref.animation,
|
|
89
|
-
animation = _ref$animation === void 0 ?
|
|
90
|
-
variant = _ref.variant,
|
|
60
|
+
animation = _ref$animation === void 0 ? true : _ref$animation,
|
|
91
61
|
className$1 = _ref.className,
|
|
92
62
|
style = _ref.style;
|
|
93
63
|
var classNames = useClassNames.useClassNames(componentToken.ComponentToken.Skeleton);
|
|
94
|
-
var
|
|
64
|
+
var theme = hooks.useTheme();
|
|
65
|
+
var styled = stylex.default.props(styles.variables({
|
|
66
|
+
shadow: color.hexToRgba(theme.colors.shadow, tokens_stylex.OPACITY.thin),
|
|
67
|
+
lighterShadow: color.hexToRgba(theme.colors.shadow, tokens_stylex.OPACITY.thick)
|
|
68
|
+
}), styles.skeleton, animation && styles.animation);
|
|
95
69
|
return /*#__PURE__*/React.createElement("div", {
|
|
96
70
|
className: relax.clsx(classNames[className.SkeletonClassToken.Skeleton], className$1, styled.className),
|
|
97
71
|
style: _objectSpread(_objectSpread({}, styled.style), style)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SkeletonProps } from "
|
|
1
|
+
import type { SkeletonProps } from "musae/types/skeleton";
|
|
2
2
|
import React from "react";
|
|
3
|
-
declare const Skeleton: ({ animation,
|
|
3
|
+
declare const Skeleton: ({ animation, className, style }: SkeletonProps) => React.JSX.Element;
|
|
4
4
|
export default Skeleton;
|
|
@@ -4,53 +4,24 @@ import React from 'react';
|
|
|
4
4
|
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
5
5
|
import { SkeletonClassToken } from '../../utils/class-name.mjs';
|
|
6
6
|
import { clsx } from '@aiszlab/relax';
|
|
7
|
+
import { OPACITY } from '../theme/tokens.stylex.mjs';
|
|
7
8
|
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
9
|
+
import { useTheme } from '../theme/hooks.mjs';
|
|
10
|
+
import { hexToRgba } from '@aiszlab/fuzzy/color';
|
|
8
11
|
|
|
9
12
|
var styles = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
borderTopRightRadius: null,
|
|
20
|
-
borderBottomLeftRadius: null,
|
|
21
|
-
borderBottomRightRadius: null,
|
|
22
|
-
$$css: true
|
|
23
|
-
},
|
|
24
|
-
button: {
|
|
25
|
-
width: "musaex-1lwsb27",
|
|
26
|
-
height: "musaex-1bti5vo",
|
|
27
|
-
borderRadius: "musaex-z7qqyb",
|
|
28
|
-
borderStartStartRadius: null,
|
|
29
|
-
borderStartEndRadius: null,
|
|
30
|
-
borderEndStartRadius: null,
|
|
31
|
-
borderEndEndRadius: null,
|
|
32
|
-
borderTopLeftRadius: null,
|
|
33
|
-
borderTopRightRadius: null,
|
|
34
|
-
borderBottomLeftRadius: null,
|
|
35
|
-
borderBottomRightRadius: null,
|
|
36
|
-
$$css: true
|
|
37
|
-
},
|
|
38
|
-
avatar: {
|
|
39
|
-
width: "musaex-rdd3y",
|
|
40
|
-
height: "musaex-1bti5vo",
|
|
41
|
-
borderRadius: "musaex-z7qqyb",
|
|
42
|
-
borderStartStartRadius: null,
|
|
43
|
-
borderStartEndRadius: null,
|
|
44
|
-
borderEndStartRadius: null,
|
|
45
|
-
borderEndEndRadius: null,
|
|
46
|
-
borderTopLeftRadius: null,
|
|
47
|
-
borderTopRightRadius: null,
|
|
48
|
-
borderBottomLeftRadius: null,
|
|
49
|
-
borderBottomRightRadius: null,
|
|
50
|
-
$$css: true
|
|
13
|
+
variables: function variables(props) {
|
|
14
|
+
return [{
|
|
15
|
+
"--shadow": "musaex-36wvql",
|
|
16
|
+
"--lighter-shadow": "musaex-p8ugqh",
|
|
17
|
+
$$css: true
|
|
18
|
+
}, {
|
|
19
|
+
"----shadow": props.shadow != null ? props.shadow : "initial",
|
|
20
|
+
"----lighter-shadow": props.lighterShadow != null ? props.lighterShadow : "initial"
|
|
21
|
+
}];
|
|
51
22
|
},
|
|
52
23
|
skeleton: {
|
|
53
|
-
background: "musaex-
|
|
24
|
+
background: "musaex-uwpeme",
|
|
54
25
|
backgroundAttachment: null,
|
|
55
26
|
backgroundClip: null,
|
|
56
27
|
backgroundColor: null,
|
|
@@ -64,7 +35,7 @@ var styles = {
|
|
|
64
35
|
$$css: true
|
|
65
36
|
},
|
|
66
37
|
animation: {
|
|
67
|
-
background: "musaex-
|
|
38
|
+
background: "musaex-1br516c",
|
|
68
39
|
backgroundAttachment: null,
|
|
69
40
|
backgroundClip: null,
|
|
70
41
|
backgroundColor: null,
|
|
@@ -84,12 +55,15 @@ var styles = {
|
|
|
84
55
|
};
|
|
85
56
|
var Skeleton = function Skeleton(_ref) {
|
|
86
57
|
var _ref$animation = _ref.animation,
|
|
87
|
-
animation = _ref$animation === void 0 ?
|
|
88
|
-
variant = _ref.variant,
|
|
58
|
+
animation = _ref$animation === void 0 ? true : _ref$animation,
|
|
89
59
|
className = _ref.className,
|
|
90
60
|
style = _ref.style;
|
|
91
61
|
var classNames = useClassNames(ComponentToken.Skeleton);
|
|
92
|
-
var
|
|
62
|
+
var theme = useTheme();
|
|
63
|
+
var styled = _stylex.props(styles.variables({
|
|
64
|
+
shadow: hexToRgba(theme.colors.shadow, OPACITY.thin),
|
|
65
|
+
lighterShadow: hexToRgba(theme.colors.shadow, OPACITY.thick)
|
|
66
|
+
}), styles.skeleton, animation && styles.animation);
|
|
93
67
|
return /*#__PURE__*/React.createElement("div", {
|
|
94
68
|
className: clsx(classNames[SkeletonClassToken.Skeleton], className, styled.className),
|
|
95
69
|
style: _objectSpread(_objectSpread({}, styled.style), style)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ContextValue } from "
|
|
1
|
+
import type { ContextValue } from "musae/types/steps";
|
|
2
2
|
export declare const Context: import("react").Context<ContextValue>;
|
|
@@ -5,12 +5,13 @@ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var relax = require('@aiszlab/relax');
|
|
7
7
|
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
8
|
+
var tokens_stylex = require('../theme/tokens.stylex.cjs');
|
|
8
9
|
var hooks = require('../theme/hooks.cjs');
|
|
9
10
|
var colors = require('../../utils/colors.cjs');
|
|
10
11
|
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
11
12
|
var className = require('../../utils/class-name.cjs');
|
|
12
|
-
var layer = require('../../utils/layer.cjs');
|
|
13
13
|
var componentToken = require('../../utils/component-token.cjs');
|
|
14
|
+
var color = require('@aiszlab/fuzzy/color');
|
|
14
15
|
var check = require('../icon/icons/navigation/check.cjs');
|
|
15
16
|
var close = require('../icon/icons/navigation/close.cjs');
|
|
16
17
|
|
|
@@ -139,7 +140,7 @@ var styles = {
|
|
|
139
140
|
$$css: true
|
|
140
141
|
},
|
|
141
142
|
disabled: {
|
|
142
|
-
opacity: "musaex-
|
|
143
|
+
opacity: "musaex-1n1gcw9",
|
|
143
144
|
$$css: true
|
|
144
145
|
},
|
|
145
146
|
checked: function checked(props) {
|
|
@@ -258,28 +259,28 @@ var Switch = function Switch(_ref) {
|
|
|
258
259
|
backgroundColor: theme.colors[colors.ColorToken.SurfaceContainerHighest],
|
|
259
260
|
color: theme.colors[colors.ColorToken.OnSurfaceVariant]
|
|
260
261
|
}, disabled && {
|
|
261
|
-
borderColor:
|
|
262
|
-
backgroundColor:
|
|
263
|
-
color:
|
|
262
|
+
borderColor: color.hexToRgba(theme.colors[colors.ColorToken.OnSurface], tokens_stylex.OPACITY.medium),
|
|
263
|
+
backgroundColor: color.hexToRgba(theme.colors[colors.ColorToken.SurfaceVariant], tokens_stylex.OPACITY.medium),
|
|
264
|
+
color: color.hexToRgba(theme.colors[colors.ColorToken.OnSurface], tokens_stylex.OPACITY.thicker)
|
|
264
265
|
})), isChecked && styles["switch"].checked(_objectSpread({
|
|
265
266
|
backgroundColor: theme.colors[colors.ColorToken.Primary],
|
|
266
267
|
color: theme.colors[colors.ColorToken.OnPrimary]
|
|
267
268
|
}, disabled && {
|
|
268
|
-
backgroundColor:
|
|
269
|
+
backgroundColor: color.hexToRgba(theme.colors[colors.ColorToken.OnSurface], tokens_stylex.OPACITY.medium),
|
|
269
270
|
color: theme.colors[colors.ColorToken.Surface]
|
|
270
271
|
})), disabled && styles["switch"].disabled),
|
|
271
272
|
slider: stylex.default.props(styles.slider.normal(_objectSpread({
|
|
272
273
|
backgroundColor: theme.colors[colors.ColorToken.OnSurfaceVariant],
|
|
273
274
|
color: theme.colors[colors.ColorToken.SurfaceContainerHighest]
|
|
274
275
|
}, disabled && {
|
|
275
|
-
backgroundColor:
|
|
276
|
+
backgroundColor: color.hexToRgba(theme.colors[colors.ColorToken.OnSurface], tokens_stylex.OPACITY.thicker),
|
|
276
277
|
color: theme.colors[colors.ColorToken.SurfaceContainerHighest]
|
|
277
278
|
})), icon && styles.slider.icon, disabled && styles.slider.disabled, isChecked && styles.slider.checked(_objectSpread({
|
|
278
279
|
backgroundColor: theme.colors[colors.ColorToken.OnPrimary],
|
|
279
280
|
color: theme.colors[colors.ColorToken.OnPrimaryContainer]
|
|
280
281
|
}, disabled && {
|
|
281
282
|
backgroundColor: theme.colors[colors.ColorToken.Surface],
|
|
282
|
-
color:
|
|
283
|
+
color: color.hexToRgba(theme.colors[colors.ColorToken.OnSurface], tokens_stylex.OPACITY.thicker)
|
|
283
284
|
}))),
|
|
284
285
|
supporting: stylex.default.props(styles.supporting["default"], isChecked && styles.supporting.checked),
|
|
285
286
|
leading: stylex.default.props(styles.supporting.child, styles.leading["default"], isChecked && styles.leading.checked),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { SwitchProps } from "
|
|
2
|
+
import type { SwitchProps } from "musae/types/switch";
|
|
3
3
|
declare const Switch: ({ value, style, className, icon, checkedChildren, uncheckedChildren, disabled, onChange, }: SwitchProps) => React.JSX.Element;
|
|
4
4
|
export default Switch;
|
|
@@ -3,12 +3,13 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { useControlledState, useEvent, clsx } from '@aiszlab/relax';
|
|
5
5
|
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
6
|
+
import { OPACITY } from '../theme/tokens.stylex.mjs';
|
|
6
7
|
import { useTheme } from '../theme/hooks.mjs';
|
|
7
8
|
import { ColorToken } from '../../utils/colors.mjs';
|
|
8
9
|
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
9
10
|
import { SwitchClassToken } from '../../utils/class-name.mjs';
|
|
10
|
-
import { layer } from '../../utils/layer.mjs';
|
|
11
11
|
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
12
|
+
import { hexToRgba } from '@aiszlab/fuzzy/color';
|
|
12
13
|
import Check from '../icon/icons/navigation/check.mjs';
|
|
13
14
|
import Close from '../icon/icons/navigation/close.mjs';
|
|
14
15
|
|
|
@@ -137,7 +138,7 @@ var styles = {
|
|
|
137
138
|
$$css: true
|
|
138
139
|
},
|
|
139
140
|
disabled: {
|
|
140
|
-
opacity: "musaex-
|
|
141
|
+
opacity: "musaex-1n1gcw9",
|
|
141
142
|
$$css: true
|
|
142
143
|
},
|
|
143
144
|
checked: function checked(props) {
|
|
@@ -256,28 +257,28 @@ var Switch = function Switch(_ref) {
|
|
|
256
257
|
backgroundColor: theme.colors[ColorToken.SurfaceContainerHighest],
|
|
257
258
|
color: theme.colors[ColorToken.OnSurfaceVariant]
|
|
258
259
|
}, disabled && {
|
|
259
|
-
borderColor:
|
|
260
|
-
backgroundColor:
|
|
261
|
-
color:
|
|
260
|
+
borderColor: hexToRgba(theme.colors[ColorToken.OnSurface], OPACITY.medium),
|
|
261
|
+
backgroundColor: hexToRgba(theme.colors[ColorToken.SurfaceVariant], OPACITY.medium),
|
|
262
|
+
color: hexToRgba(theme.colors[ColorToken.OnSurface], OPACITY.thicker)
|
|
262
263
|
})), isChecked && styles["switch"].checked(_objectSpread({
|
|
263
264
|
backgroundColor: theme.colors[ColorToken.Primary],
|
|
264
265
|
color: theme.colors[ColorToken.OnPrimary]
|
|
265
266
|
}, disabled && {
|
|
266
|
-
backgroundColor:
|
|
267
|
+
backgroundColor: hexToRgba(theme.colors[ColorToken.OnSurface], OPACITY.medium),
|
|
267
268
|
color: theme.colors[ColorToken.Surface]
|
|
268
269
|
})), disabled && styles["switch"].disabled),
|
|
269
270
|
slider: _stylex.props(styles.slider.normal(_objectSpread({
|
|
270
271
|
backgroundColor: theme.colors[ColorToken.OnSurfaceVariant],
|
|
271
272
|
color: theme.colors[ColorToken.SurfaceContainerHighest]
|
|
272
273
|
}, disabled && {
|
|
273
|
-
backgroundColor:
|
|
274
|
+
backgroundColor: hexToRgba(theme.colors[ColorToken.OnSurface], OPACITY.thicker),
|
|
274
275
|
color: theme.colors[ColorToken.SurfaceContainerHighest]
|
|
275
276
|
})), icon && styles.slider.icon, disabled && styles.slider.disabled, isChecked && styles.slider.checked(_objectSpread({
|
|
276
277
|
backgroundColor: theme.colors[ColorToken.OnPrimary],
|
|
277
278
|
color: theme.colors[ColorToken.OnPrimaryContainer]
|
|
278
279
|
}, disabled && {
|
|
279
280
|
backgroundColor: theme.colors[ColorToken.Surface],
|
|
280
|
-
color:
|
|
281
|
+
color: hexToRgba(theme.colors[ColorToken.OnSurface], OPACITY.thicker)
|
|
281
282
|
}))),
|
|
282
283
|
supporting: _stylex.props(styles.supporting["default"], isChecked && styles.supporting.checked),
|
|
283
284
|
leading: _stylex.props(styles.supporting.child, styles.leading["default"], isChecked && styles.leading.checked),
|
|
@@ -76,7 +76,9 @@ var Body = function Body() {
|
|
|
76
76
|
}));
|
|
77
77
|
var rows = table.getRowModel().rows;
|
|
78
78
|
var _isEmpty = relax.isEmpty(rows);
|
|
79
|
-
return /*#__PURE__*/React.createElement("tbody", null, _isEmpty && (/*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td",
|
|
79
|
+
return /*#__PURE__*/React.createElement("tbody", null, _isEmpty && (/*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
|
|
80
|
+
colSpan: table.getAllColumns().length
|
|
81
|
+
}, /*#__PURE__*/React.createElement(empty.default, null)))), !_isEmpty && table.getRowModel().rows.map(function (row) {
|
|
80
82
|
return /*#__PURE__*/React.createElement("tr", {
|
|
81
83
|
key: row.id
|
|
82
84
|
}, row.getVisibleCells().map(function (cell) {
|
|
@@ -74,7 +74,9 @@ var Body = function Body() {
|
|
|
74
74
|
}));
|
|
75
75
|
var rows = table.getRowModel().rows;
|
|
76
76
|
var _isEmpty = isEmpty(rows);
|
|
77
|
-
return /*#__PURE__*/React.createElement("tbody", null, _isEmpty && (/*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td",
|
|
77
|
+
return /*#__PURE__*/React.createElement("tbody", null, _isEmpty && (/*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
|
|
78
|
+
colSpan: table.getAllColumns().length
|
|
79
|
+
}, /*#__PURE__*/React.createElement(Empty, null)))), !_isEmpty && table.getRowModel().rows.map(function (row) {
|
|
78
80
|
return /*#__PURE__*/React.createElement("tr", {
|
|
79
81
|
key: row.id
|
|
80
82
|
}, row.getVisibleCells().map(function (cell) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type Key, type RefObject } from "react";
|
|
2
|
-
import type { TabItem } from "
|
|
2
|
+
import type { TabItem } from "musae/types/tabs";
|
|
3
3
|
import type { Partialable } from "@aiszlab/relax/types";
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
6
6
|
* use tab context
|
|
7
7
|
*/
|
|
8
|
-
export declare const useTabsContext: () => import("
|
|
8
|
+
export declare const useTabsContext: () => import("musae/types/tabs").ContextValue;
|
|
9
9
|
/**
|
|
10
10
|
* @description
|
|
11
11
|
* tabs
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { TabsProps } from "
|
|
2
|
+
import type { TabsProps } from "musae/types/tabs";
|
|
3
3
|
declare const Tabs: ({ items, className, style, activeKey: _activeKey, defaultActiveKey, forceRender, destroyable, }: TabsProps) => React.JSX.Element | null;
|
|
4
4
|
export default Tabs;
|