musae 0.5.13 → 0.5.15
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/avatar.cjs +8 -6
- package/dist/components/avatar/avatar.mjs +6 -6
- package/dist/components/avatar/context.cjs +2 -0
- package/dist/components/avatar/group.cjs +5 -3
- package/dist/components/avatar/group.mjs +4 -4
- package/dist/components/avatar/index.cjs +2 -0
- package/dist/components/badge/badge.cjs +5 -3
- package/dist/components/badge/badge.mjs +3 -3
- package/dist/components/badge/context.cjs +2 -0
- package/dist/components/bench/bench.cjs +8 -6
- package/dist/components/bench/bench.mjs +6 -6
- package/dist/components/bench/hooks.cjs +5 -3
- package/dist/components/bench/hooks.mjs +3 -3
- package/dist/components/breadcrumb/breadcrumb.cjs +5 -3
- package/dist/components/breadcrumb/breadcrumb.mjs +3 -3
- package/dist/components/breadcrumb/context.cjs +2 -0
- package/dist/components/breadcrumb/item.cjs +3 -1
- package/dist/components/breadcrumb/item.mjs +1 -1
- package/dist/components/button/button.cjs +142 -138
- package/dist/components/button/button.d.ts +0 -81
- package/dist/components/button/button.mjs +141 -138
- package/dist/components/button/context.cjs +2 -0
- package/dist/components/button/hooks.cjs +3 -1
- package/dist/components/button/hooks.mjs +1 -1
- package/dist/components/calendar/calendar.cjs +7 -5
- package/dist/components/calendar/calendar.mjs +5 -5
- package/dist/components/calendar/context.cjs +2 -0
- package/dist/components/calendar/contribution.cjs +10 -8
- package/dist/components/calendar/contribution.mjs +8 -8
- package/dist/components/calendar/hooks.cjs +7 -5
- package/dist/components/calendar/hooks.mjs +6 -6
- package/dist/components/cascader/cascader.cjs +7 -5
- package/dist/components/cascader/cascader.mjs +5 -5
- package/dist/components/cascader/context.cjs +2 -0
- package/dist/components/cascader/hooks.cjs +10 -8
- package/dist/components/cascader/hooks.mjs +10 -10
- package/dist/components/cascader/utils.cjs +7 -5
- package/dist/components/cascader/utils.mjs +5 -5
- package/dist/components/chat/chat.cjs +4 -2
- package/dist/components/chat/chat.mjs +2 -2
- package/dist/components/chat/context.cjs +2 -0
- package/dist/components/chat/item.cjs +6 -4
- package/dist/components/chat/item.mjs +4 -4
- package/dist/components/checkbox/Indeterminate.cjs +2 -0
- package/dist/components/checkbox/check.cjs +2 -0
- package/dist/components/checkbox/checkbox.cjs +27 -25
- package/dist/components/checkbox/checkbox.mjs +25 -25
- package/dist/components/checkbox/context.cjs +2 -0
- package/dist/components/checkbox/group.cjs +4 -2
- package/dist/components/checkbox/group.mjs +2 -2
- package/dist/components/checkbox/index.cjs +2 -0
- package/dist/components/checkbox/styles.cjs +26 -24
- package/dist/components/checkbox/styles.d.ts +24 -24
- package/dist/components/checkbox/styles.mjs +24 -24
- package/dist/components/clock/clock.cjs +6 -4
- package/dist/components/clock/clock.mjs +4 -4
- package/dist/components/clock/column.cjs +6 -4
- package/dist/components/clock/column.mjs +4 -4
- package/dist/components/clock/context.cjs +2 -0
- package/dist/components/collapse/collapse.cjs +4 -2
- package/dist/components/collapse/collapse.mjs +2 -2
- package/dist/components/collapse/context.cjs +2 -0
- package/dist/components/collapse/hooks.cjs +4 -2
- package/dist/components/collapse/hooks.mjs +2 -2
- package/dist/components/collapse/item.cjs +3 -1
- package/dist/components/collapse/item.mjs +1 -1
- package/dist/components/config/context.cjs +2 -0
- package/dist/components/config/hooks.cjs +2 -0
- package/dist/components/config/provider.cjs +4 -2
- package/dist/components/config/provider.mjs +2 -2
- package/dist/components/countdown/context.cjs +2 -0
- package/dist/components/countdown/countdown.cjs +15 -13
- package/dist/components/countdown/countdown.mjs +13 -13
- package/dist/components/date-picker/context.cjs +2 -0
- package/dist/components/date-picker/date-picker.cjs +5 -3
- package/dist/components/date-picker/date-picker.mjs +3 -3
- package/dist/components/date-picker/hooks.cjs +4 -2
- package/dist/components/date-picker/hooks.mjs +2 -2
- package/dist/components/date-range-picker/context.cjs +2 -0
- package/dist/components/date-range-picker/date-range-picker.cjs +4 -2
- package/dist/components/date-range-picker/date-range-picker.mjs +2 -2
- package/dist/components/date-range-picker/hooks.cjs +7 -5
- package/dist/components/date-range-picker/hooks.mjs +5 -5
- package/dist/components/dialog/context.cjs +2 -0
- package/dist/components/dialog/dialog.cjs +3 -1
- package/dist/components/dialog/dialog.mjs +1 -1
- package/dist/components/dialog/hooks.cjs +3 -1
- package/dist/components/dialog/hooks.mjs +1 -1
- package/dist/components/dialog/popup.cjs +11 -9
- package/dist/components/dialog/popup.mjs +9 -9
- package/dist/components/divider/context.cjs +2 -0
- package/dist/components/divider/divider.cjs +14 -12
- package/dist/components/divider/divider.mjs +12 -12
- package/dist/components/divider/hooks.cjs +2 -0
- package/dist/components/drawer/context.cjs +2 -0
- package/dist/components/drawer/drawer.cjs +5 -3
- package/dist/components/drawer/drawer.mjs +3 -3
- package/dist/components/drawer/hooks.cjs +2 -0
- package/dist/components/drawer/popup.cjs +4 -2
- package/dist/components/drawer/popup.mjs +2 -2
- package/dist/components/ellipsis/context.cjs +2 -0
- package/dist/components/ellipsis/ellipsis.cjs +5 -3
- package/dist/components/ellipsis/ellipsis.mjs +3 -3
- package/dist/components/ellipsis/utils.cjs +4 -2
- package/dist/components/ellipsis/utils.mjs +2 -2
- package/dist/components/empty/context.cjs +2 -0
- package/dist/components/empty/empty.cjs +3 -1
- package/dist/components/empty/empty.mjs +1 -1
- package/dist/components/fab/context.cjs +2 -0
- package/dist/components/fab/fab.cjs +10 -8
- package/dist/components/fab/fab.mjs +8 -8
- package/dist/components/form/context.cjs +2 -0
- package/dist/components/form/field/error.cjs +4 -2
- package/dist/components/form/field/error.mjs +2 -2
- package/dist/components/form/field/field.cjs +3 -1
- package/dist/components/form/field/field.mjs +1 -1
- package/dist/components/form/field/layout.cjs +6 -4
- package/dist/components/form/field/layout.mjs +4 -4
- package/dist/components/form/field/support.cjs +3 -1
- package/dist/components/form/field/support.mjs +1 -1
- package/dist/components/form/form.cjs +4 -2
- package/dist/components/form/form.mjs +2 -2
- package/dist/components/form/hooks.cjs +3 -1
- package/dist/components/form/hooks.mjs +1 -1
- package/dist/components/form/index.cjs +2 -0
- package/dist/components/form/item.cjs +3 -1
- package/dist/components/form/item.mjs +1 -1
- package/dist/components/grid/col.cjs +5 -3
- package/dist/components/grid/col.mjs +3 -3
- package/dist/components/grid/context.cjs +2 -0
- package/dist/components/grid/index.cjs +2 -0
- package/dist/components/grid/row.cjs +5 -3
- package/dist/components/grid/row.mjs +4 -4
- package/dist/components/highlight/context.cjs +2 -0
- package/dist/components/highlight/highlight.cjs +3 -1
- package/dist/components/highlight/highlight.mjs +1 -1
- package/dist/components/i18n-button/context.cjs +2 -0
- package/dist/components/i18n-button/hooks.cjs +3 -1
- package/dist/components/i18n-button/hooks.mjs +1 -1
- package/dist/components/i18n-button/i18n-button.cjs +4 -2
- package/dist/components/i18n-button/i18n-button.mjs +2 -2
- package/dist/components/icon/context.cjs +2 -0
- package/dist/components/icon/hoc.cjs +2 -0
- package/dist/components/icon/icon.cjs +4 -2
- package/dist/components/icon/icon.mjs +2 -2
- package/dist/components/icon/icons/action/account-circle.cjs +2 -0
- package/dist/components/icon/icons/action/check-circle-outline.cjs +2 -0
- package/dist/components/icon/icons/action/check-circle.cjs +2 -0
- package/dist/components/icon/icons/action/code.cjs +2 -0
- package/dist/components/icon/icons/action/delete.cjs +2 -0
- package/dist/components/icon/icons/action/done-outline.cjs +2 -0
- package/dist/components/icon/icons/action/done.cjs +2 -0
- package/dist/components/icon/icons/action/index.cjs +2 -0
- package/dist/components/icon/icons/action/open-in-new.cjs +2 -0
- package/dist/components/icon/icons/action/rocket-launch.cjs +2 -0
- package/dist/components/icon/icons/action/swap-horiz.cjs +2 -0
- package/dist/components/icon/icons/action/swap-vert.cjs +2 -0
- package/dist/components/icon/icons/action/three-d-rotation.cjs +2 -0
- package/dist/components/icon/icons/action/translate.cjs +2 -0
- package/dist/components/icon/icons/action/visibility-off.cjs +2 -0
- package/dist/components/icon/icons/action/visibility.cjs +2 -0
- package/dist/components/icon/icons/action/zoom-in.cjs +2 -0
- package/dist/components/icon/icons/action/zoom-out.cjs +2 -0
- package/dist/components/icon/icons/alert/add-alert.cjs +2 -0
- package/dist/components/icon/icons/alert/auto-delete.cjs +2 -0
- package/dist/components/icon/icons/alert/error-outline.cjs +2 -0
- package/dist/components/icon/icons/alert/error.cjs +2 -0
- package/dist/components/icon/icons/alert/index.cjs +2 -0
- package/dist/components/icon/icons/alert/notification-important.cjs +2 -0
- package/dist/components/icon/icons/alert/warning-amber.cjs +2 -0
- package/dist/components/icon/icons/alert/warning.cjs +2 -0
- package/dist/components/icon/icons/content/clear.cjs +2 -0
- package/dist/components/icon/icons/content/font-download.cjs +2 -0
- package/dist/components/icon/icons/content/index.cjs +2 -0
- package/dist/components/icon/icons/content/link-off.cjs +2 -0
- package/dist/components/icon/icons/content/redo.cjs +2 -0
- package/dist/components/icon/icons/content/undo.cjs +2 -0
- package/dist/components/icon/icons/editor/attch-file.cjs +2 -0
- package/dist/components/icon/icons/editor/checklist.cjs +2 -0
- package/dist/components/icon/icons/editor/format-bold.cjs +2 -0
- package/dist/components/icon/icons/editor/format-italic.cjs +2 -0
- package/dist/components/icon/icons/editor/format-strikethrough.cjs +2 -0
- package/dist/components/icon/icons/editor/format-underlined.cjs +2 -0
- package/dist/components/icon/icons/editor/index.cjs +2 -0
- package/dist/components/icon/icons/editor/insert-link.cjs +2 -0
- package/dist/components/icon/icons/editor/notes.cjs +2 -0
- package/dist/components/icon/icons/editor/subscript.cjs +2 -0
- package/dist/components/icon/icons/editor/superscript.cjs +2 -0
- package/dist/components/icon/icons/hardware/index.cjs +2 -0
- package/dist/components/icon/icons/hardware/keyboard-arrow-down.cjs +2 -0
- package/dist/components/icon/icons/hardware/keyboard-arrow-left.cjs +2 -0
- package/dist/components/icon/icons/hardware/keyboard-arrow-right.cjs +2 -0
- package/dist/components/icon/icons/hardware/keyboard-arrow-up.cjs +2 -0
- package/dist/components/icon/icons/hardware/keyboard-double-arrow-left.cjs +2 -0
- package/dist/components/icon/icons/hardware/keyboard-double-arrow-right.cjs +2 -0
- package/dist/components/icon/icons/home/smart-toy.cjs +2 -0
- package/dist/components/icon/icons/home/wind-power.cjs +2 -0
- package/dist/components/icon/icons/image/bedtime.cjs +2 -0
- package/dist/components/icon/icons/image/edit.cjs +2 -0
- package/dist/components/icon/icons/image/index.cjs +2 -0
- package/dist/components/icon/icons/image/looks-five.cjs +2 -0
- package/dist/components/icon/icons/image/looks-four.cjs +2 -0
- package/dist/components/icon/icons/image/looks-one.cjs +2 -0
- package/dist/components/icon/icons/image/looks-six.cjs +2 -0
- package/dist/components/icon/icons/image/looks-three.cjs +2 -0
- package/dist/components/icon/icons/image/looks-two.cjs +2 -0
- package/dist/components/icon/icons/image/rotate-left.cjs +2 -0
- package/dist/components/icon/icons/image/rotate-right.cjs +2 -0
- package/dist/components/icon/icons/image/wb-sunny.cjs +2 -0
- package/dist/components/icon/icons/index.cjs +2 -0
- package/dist/components/icon/icons/mock/github.cjs +2 -0
- package/dist/components/icon/icons/mock/index.cjs +2 -0
- package/dist/components/icon/icons/mock/loading.cjs +2 -0
- package/dist/components/icon/icons/navigation/cancel.cjs +2 -0
- package/dist/components/icon/icons/navigation/check.cjs +2 -0
- package/dist/components/icon/icons/navigation/close.cjs +2 -0
- package/dist/components/icon/icons/navigation/index.cjs +2 -0
- package/dist/components/icon/icons/navigation/more-horiz.cjs +2 -0
- package/dist/components/icon/icons/navigation/unfold-more.cjs +2 -0
- package/dist/components/icon/icons/toggle/index.cjs +2 -0
- package/dist/components/icon/icons/toggle/star-half.cjs +2 -0
- package/dist/components/icon/icons/toggle/star-outline.cjs +2 -0
- package/dist/components/icon/icons/toggle/star.cjs +2 -0
- package/dist/components/icon-button/icon-button.cjs +4 -2
- package/dist/components/icon-button/icon-button.mjs +2 -2
- package/dist/components/image/context.cjs +2 -0
- package/dist/components/image/hooks.cjs +2 -0
- package/dist/components/image/image.cjs +4 -2
- package/dist/components/image/image.mjs +2 -2
- package/dist/components/image/index.cjs +2 -0
- package/dist/components/image/preview/context.cjs +2 -0
- package/dist/components/image/preview/group.cjs +6 -4
- package/dist/components/image/preview/group.mjs +4 -4
- package/dist/components/image/preview/operations.cjs +5 -3
- package/dist/components/image/preview/operations.mjs +3 -3
- package/dist/components/image/preview/preview.cjs +4 -2
- package/dist/components/image/preview/preview.mjs +2 -2
- package/dist/components/input/context.cjs +2 -0
- package/dist/components/input/hooks.cjs +7 -5
- package/dist/components/input/hooks.mjs +5 -5
- package/dist/components/input/input.cjs +6 -4
- package/dist/components/input/input.mjs +4 -4
- package/dist/components/layout/footer.cjs +2 -0
- package/dist/components/layout/header.cjs +3 -1
- package/dist/components/layout/header.mjs +1 -1
- package/dist/components/layout/hooks.cjs +2 -0
- package/dist/components/layout/index.cjs +2 -0
- package/dist/components/layout/layout.cjs +3 -1
- package/dist/components/layout/layout.mjs +1 -1
- package/dist/components/layout/main.cjs +2 -0
- package/dist/components/layout/sider.cjs +2 -0
- package/dist/components/loading/context.cjs +2 -0
- package/dist/components/loading/loading.cjs +6 -4
- package/dist/components/loading/loading.mjs +4 -4
- package/dist/components/markdown/context.cjs +2 -0
- package/dist/components/markdown/index.cjs +2 -0
- package/dist/components/markdown/loading.cjs +2 -0
- package/dist/components/markdown/markdown.cjs +4 -2
- package/dist/components/markdown/markdown.mjs +2 -2
- package/dist/components/markdown/utils.cjs +2 -0
- package/dist/components/menu/context.cjs +2 -0
- package/dist/components/menu/group.cjs +6 -4
- package/dist/components/menu/group.mjs +4 -4
- package/dist/components/menu/hooks.cjs +6 -4
- package/dist/components/menu/hooks.mjs +4 -4
- package/dist/components/menu/item.cjs +4 -2
- package/dist/components/menu/item.mjs +2 -2
- package/dist/components/menu/menu.cjs +5 -3
- package/dist/components/menu/menu.mjs +3 -3
- package/dist/components/message/hooks.cjs +2 -0
- package/dist/components/message/messager.cjs +2 -0
- package/dist/components/notification/context.cjs +2 -0
- package/dist/components/notification/holder.cjs +8 -6
- package/dist/components/notification/holder.mjs +6 -6
- package/dist/components/notification/hooks.cjs +6 -4
- package/dist/components/notification/hooks.mjs +4 -4
- package/dist/components/notification/notification.cjs +6 -4
- package/dist/components/notification/notification.mjs +4 -4
- package/dist/components/notification/notifier.cjs +3 -1
- package/dist/components/notification/notifier.mjs +1 -1
- package/dist/components/number-input/hooks.cjs +3 -1
- package/dist/components/number-input/hooks.mjs +1 -1
- package/dist/components/number-input/number-input.cjs +2 -0
- package/dist/components/otp-input/hooks.cjs +3 -1
- package/dist/components/otp-input/hooks.mjs +1 -1
- package/dist/components/otp-input/otp-input.cjs +5 -3
- package/dist/components/otp-input/otp-input.mjs +3 -3
- package/dist/components/pagination/context.cjs +2 -0
- package/dist/components/pagination/hooks.cjs +4 -2
- package/dist/components/pagination/hooks.mjs +2 -2
- package/dist/components/pagination/item.cjs +2 -0
- package/dist/components/pagination/pagination.cjs +6 -4
- package/dist/components/pagination/pagination.mjs +4 -4
- package/dist/components/password-input/password-input.cjs +3 -1
- package/dist/components/password-input/password-input.mjs +1 -1
- package/dist/components/picker/context.cjs +2 -0
- package/dist/components/picker/picker.cjs +10 -8
- package/dist/components/picker/picker.mjs +8 -8
- package/dist/components/popconfirm/context.cjs +2 -0
- package/dist/components/popconfirm/popconfirm.cjs +6 -4
- package/dist/components/popconfirm/popconfirm.mjs +4 -4
- package/dist/components/popover/context.cjs +2 -0
- package/dist/components/popover/hooks.cjs +4 -2
- package/dist/components/popover/hooks.mjs +2 -2
- package/dist/components/popover/popover.cjs +25 -13
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/popover/popover.mjs +23 -13
- package/dist/components/popper/context.cjs +2 -0
- package/dist/components/popper/dropdown.cjs +11 -9
- package/dist/components/popper/dropdown.mjs +9 -9
- package/dist/components/popper/hooks.cjs +9 -7
- package/dist/components/popper/hooks.mjs +7 -7
- package/dist/components/popper/popper.cjs +3 -1
- package/dist/components/popper/popper.mjs +1 -1
- package/dist/components/portal/portal.cjs +5 -3
- package/dist/components/portal/portal.mjs +3 -3
- package/dist/components/progress/circular.cjs +3 -1
- package/dist/components/progress/circular.mjs +1 -1
- package/dist/components/progress/context.cjs +2 -0
- package/dist/components/progress/hooks.cjs +3 -1
- package/dist/components/progress/hooks.mjs +3 -3
- package/dist/components/progress/linear.cjs +3 -1
- package/dist/components/progress/linear.mjs +1 -1
- package/dist/components/progress/progress.cjs +4 -2
- package/dist/components/progress/progress.mjs +2 -2
- package/dist/components/quote/context.cjs +2 -0
- package/dist/components/quote/quote.cjs +3 -1
- package/dist/components/quote/quote.mjs +1 -1
- package/dist/components/quote/styles.cjs +5 -3
- package/dist/components/quote/styles.d.ts +2 -2
- package/dist/components/quote/styles.mjs +3 -3
- package/dist/components/radio/context.cjs +2 -0
- package/dist/components/radio/group.cjs +3 -1
- package/dist/components/radio/group.mjs +1 -1
- package/dist/components/radio/index.cjs +2 -0
- package/dist/components/radio/radio.cjs +6 -4
- package/dist/components/radio/radio.mjs +4 -4
- package/dist/components/rate/context.cjs +2 -0
- package/dist/components/rate/hooks.cjs +4 -2
- package/dist/components/rate/hooks.mjs +2 -2
- package/dist/components/rate/rate.cjs +7 -5
- package/dist/components/rate/rate.mjs +5 -5
- package/dist/components/rate/star.cjs +3 -1
- package/dist/components/rate/star.mjs +1 -1
- package/dist/components/rich-text-editor/context.cjs +2 -0
- package/dist/components/rich-text-editor/dropdown.cjs +6 -4
- package/dist/components/rich-text-editor/dropdown.mjs +4 -4
- package/dist/components/rich-text-editor/index.cjs +3 -1
- package/dist/components/rich-text-editor/index.mjs +1 -1
- package/dist/components/rich-text-editor/nodes/checkable-list-item.cjs +6 -4
- package/dist/components/rich-text-editor/nodes/checkable-list-item.mjs +4 -4
- package/dist/components/rich-text-editor/nodes/checkbox.cjs +6 -4
- package/dist/components/rich-text-editor/nodes/checkbox.mjs +4 -4
- package/dist/components/rich-text-editor/plugins/check-list/index.cjs +2 -0
- package/dist/components/rich-text-editor/plugins/controlled-state/index.cjs +6 -4
- package/dist/components/rich-text-editor/plugins/controlled-state/index.mjs +4 -4
- package/dist/components/rich-text-editor/plugins/editable/index.cjs +2 -0
- package/dist/components/rich-text-editor/plugins/floating-link-editor/index.cjs +2 -0
- package/dist/components/rich-text-editor/plugins/markdown-shortcut/index.cjs +2 -0
- package/dist/components/rich-text-editor/plugins/toolbar/hooks.cjs +5 -3
- package/dist/components/rich-text-editor/plugins/toolbar/hooks.mjs +4 -4
- package/dist/components/rich-text-editor/plugins/toolbar/index.cjs +3 -1
- package/dist/components/rich-text-editor/plugins/toolbar/index.mjs +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.cjs +17 -15
- package/dist/components/rich-text-editor/rich-text-editor.mjs +15 -15
- package/dist/components/rich-text-editor/utils/get-element-by-node.cjs +3 -1
- package/dist/components/rich-text-editor/utils/get-element-by-node.mjs +1 -1
- package/dist/components/rich-text-editor/utils.cjs +7 -5
- package/dist/components/rich-text-editor/utils.mjs +5 -5
- package/dist/components/ripple/hooks.cjs +3 -1
- package/dist/components/ripple/hooks.mjs +1 -1
- package/dist/components/ripple/ripple.cjs +4 -2
- package/dist/components/ripple/ripple.mjs +2 -2
- package/dist/components/select/context.cjs +2 -0
- package/dist/components/select/hooks.cjs +10 -8
- package/dist/components/select/hooks.mjs +11 -11
- package/dist/components/select/select.cjs +9 -7
- package/dist/components/select/select.mjs +7 -7
- package/dist/components/select/selections.cjs +2 -0
- package/dist/components/select/selector.cjs +6 -4
- package/dist/components/select/selector.mjs +4 -4
- package/dist/components/select/utils.cjs +4 -2
- package/dist/components/select/utils.mjs +2 -2
- package/dist/components/skeleton/context.cjs +2 -0
- package/dist/components/skeleton/skeleton.cjs +8 -6
- package/dist/components/skeleton/skeleton.mjs +6 -6
- package/dist/components/space/space.cjs +5 -3
- package/dist/components/space/space.mjs +3 -3
- package/dist/components/split-panel/context.cjs +2 -0
- package/dist/components/split-panel/divider.cjs +8 -6
- package/dist/components/split-panel/divider.mjs +6 -6
- package/dist/components/split-panel/hooks.cjs +5 -3
- package/dist/components/split-panel/hooks.mjs +3 -3
- package/dist/components/split-panel/panel.cjs +15 -13
- package/dist/components/split-panel/panel.mjs +13 -13
- package/dist/components/split-panel/split-panel.cjs +6 -4
- package/dist/components/split-panel/split-panel.mjs +4 -4
- package/dist/components/steps/context.cjs +2 -0
- package/dist/components/steps/item.cjs +16 -14
- package/dist/components/steps/item.mjs +14 -14
- package/dist/components/steps/steps.cjs +11 -9
- package/dist/components/steps/steps.mjs +9 -9
- package/dist/components/switch/context.cjs +2 -0
- package/dist/components/switch/switch.cjs +6 -4
- package/dist/components/switch/switch.mjs +4 -4
- package/dist/components/table/body.cjs +3 -1
- package/dist/components/table/body.mjs +1 -1
- package/dist/components/table/context.cjs +2 -0
- package/dist/components/table/header/cell.cjs +7 -5
- package/dist/components/table/header/cell.mjs +5 -5
- package/dist/components/table/header/header.cjs +3 -1
- package/dist/components/table/header/header.mjs +1 -1
- package/dist/components/table/hooks.cjs +7 -5
- package/dist/components/table/hooks.mjs +5 -5
- package/dist/components/table/table.cjs +5 -3
- package/dist/components/table/table.mjs +3 -3
- package/dist/components/tabs/context.cjs +2 -0
- package/dist/components/tabs/hooks.cjs +9 -7
- package/dist/components/tabs/hooks.mjs +7 -7
- package/dist/components/tabs/navigation.cjs +5 -3
- package/dist/components/tabs/navigation.mjs +3 -3
- package/dist/components/tabs/panels.cjs +4 -2
- package/dist/components/tabs/panels.mjs +2 -2
- package/dist/components/tabs/tab.cjs +2 -0
- package/dist/components/tabs/tabs.cjs +5 -3
- package/dist/components/tabs/tabs.mjs +3 -3
- package/dist/components/tag/context.cjs +2 -0
- package/dist/components/tag/tag.cjs +5 -3
- package/dist/components/tag/tag.mjs +3 -3
- package/dist/components/textarea/context.cjs +2 -0
- package/dist/components/textarea/textarea.cjs +6 -4
- package/dist/components/textarea/textarea.mjs +4 -4
- package/dist/components/theme/hooks.cjs +7 -5
- package/dist/components/theme/hooks.mjs +5 -5
- package/dist/components/theme/theme-provider.cjs +2 -0
- package/dist/components/theme/theme.cjs +2 -31
- package/dist/components/theme/theme.mjs +0 -31
- package/dist/components/theme/tokens.stylex.cjs +4 -34
- package/dist/components/theme/tokens.stylex.mjs +2 -34
- package/dist/components/time-picker/context.cjs +2 -0
- package/dist/components/time-picker/hooks.cjs +3 -1
- package/dist/components/time-picker/hooks.mjs +1 -1
- package/dist/components/time-picker/panel.cjs +5 -3
- package/dist/components/time-picker/panel.mjs +3 -3
- package/dist/components/time-picker/time-picker.cjs +4 -2
- package/dist/components/time-picker/time-picker.mjs +2 -2
- package/dist/components/timeline/context.cjs +2 -0
- package/dist/components/timeline/item.cjs +10 -8
- package/dist/components/timeline/item.mjs +8 -8
- package/dist/components/timeline/timeline.cjs +5 -3
- package/dist/components/timeline/timeline.mjs +3 -3
- package/dist/components/tooltip/context.cjs +2 -0
- package/dist/components/tooltip/tooltip.cjs +2 -0
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tour/context.cjs +2 -0
- package/dist/components/tour/hooks.cjs +2 -0
- package/dist/components/tour/spotlight.cjs +2 -0
- package/dist/components/tour/tour.cjs +8 -6
- package/dist/components/tour/tour.mjs +6 -6
- package/dist/components/transfer/context.cjs +2 -0
- package/dist/components/transfer/hooks.cjs +3 -1
- package/dist/components/transfer/hooks.mjs +1 -1
- package/dist/components/transfer/item.cjs +2 -0
- package/dist/components/transfer/list.cjs +3 -1
- package/dist/components/transfer/list.mjs +1 -1
- package/dist/components/transfer/transfer.cjs +4 -2
- package/dist/components/transfer/transfer.mjs +2 -2
- package/dist/components/tree/context.cjs +2 -0
- package/dist/components/tree/hooks.cjs +4 -2
- package/dist/components/tree/hooks.mjs +2 -2
- package/dist/components/tree/list.cjs +7 -5
- package/dist/components/tree/list.mjs +5 -5
- package/dist/components/tree/node.cjs +6 -4
- package/dist/components/tree/node.mjs +4 -4
- package/dist/components/tree/tree.cjs +6 -4
- package/dist/components/tree/tree.mjs +4 -4
- package/dist/components/upload/context.cjs +2 -0
- package/dist/components/upload/upload.cjs +5 -3
- package/dist/components/upload/upload.mjs +3 -3
- package/dist/components/upload/uploaded-item.cjs +4 -2
- package/dist/components/upload/uploaded-item.mjs +2 -2
- package/dist/components/upload/uploaded-list.cjs +10 -12
- package/dist/components/upload/uploaded-list.mjs +8 -12
- package/dist/components/upload/utils.cjs +2 -0
- package/dist/components/visually-hidden/context.cjs +2 -0
- package/dist/components/visually-hidden/visually-hidden.cjs +2 -0
- package/dist/components/waterfall/context.cjs +2 -0
- package/dist/components/waterfall/hooks.cjs +3 -1
- package/dist/components/waterfall/hooks.mjs +1 -1
- package/dist/components/waterfall/sequential.cjs +4 -2
- package/dist/components/waterfall/sequential.mjs +2 -2
- package/dist/components/waterfall/waterfall.cjs +9 -7
- package/dist/components/waterfall/waterfall.mjs +7 -7
- package/dist/components/watermark/hooks.cjs +4 -2
- package/dist/components/watermark/hooks.mjs +2 -2
- package/dist/components/watermark/watermark.cjs +12 -14
- package/dist/components/watermark/watermark.mjs +10 -14
- package/dist/hooks/use-class-names.cjs +2 -0
- package/dist/hooks/use-closable.cjs +6 -4
- package/dist/hooks/use-closable.mjs +4 -4
- package/dist/hooks/use-container.cjs +4 -2
- package/dist/hooks/use-container.mjs +2 -2
- package/dist/hooks/use-expandable.cjs +2 -0
- package/dist/hooks/use-gutters.cjs +2 -0
- package/dist/hooks/use-lazy-boolean.cjs +2 -0
- package/dist/index.cjs +2 -1
- package/dist/index.mjs +0 -1
- package/dist/locale/context.cjs +2 -0
- package/dist/locale/locales/en_US.cjs +2 -0
- package/dist/locale/locales/index.cjs +2 -0
- package/dist/locale/locales/zh_CN.cjs +2 -0
- package/dist/locale/use-locale.cjs +2 -0
- package/dist/node_modules/.pnpm/{@stylexjs_stylex@0.10.0 → @stylexjs_stylex@0.10.1}/node_modules/@stylexjs/stylex/lib/es/stylex.cjs +4 -2
- package/dist/node_modules/.pnpm/{@stylexjs_stylex@0.10.0 → @stylexjs_stylex@0.10.1}/node_modules/@stylexjs/stylex/lib/es/stylex.mjs +2 -2
- package/dist/styles.css +167 -139
- package/dist/types/button.d.ts +2 -2
- package/dist/types/popconfirm.d.ts +1 -1
- package/dist/types/popover.d.ts +2 -2
- package/dist/types/tooltip.d.ts +3 -2
- package/dist/utils/color-role.cjs +2 -0
- package/dist/utils/date.cjs +2 -0
- package/dist/utils/keyboard.cjs +2 -0
- package/dist/utils/styles.cjs +2 -0
- package/dist/utils/timespan.cjs +10 -8
- package/dist/utils/timespan.mjs +8 -8
- package/package.json +32 -33
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
1
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
4
|
|
|
3
5
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
4
6
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
7
|
var React = require('react');
|
|
6
|
-
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.10.
|
|
8
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.10.1/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
7
9
|
var context = require('./context.cjs');
|
|
8
10
|
var hooks = require('../theme/hooks.cjs');
|
|
9
11
|
var theme = require('../theme/theme.cjs');
|
|
@@ -144,9 +146,9 @@ var Avatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
144
146
|
var src = _ref.src,
|
|
145
147
|
alt = _ref.alt,
|
|
146
148
|
_ref$shape = _ref.shape,
|
|
147
|
-
_shape = _ref$shape ===
|
|
149
|
+
_shape = _ref$shape === void 0 ? "circular" : _ref$shape,
|
|
148
150
|
_ref$size = _ref.size,
|
|
149
|
-
_size = _ref$size ===
|
|
151
|
+
_size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
150
152
|
className$1 = _ref.className,
|
|
151
153
|
style = _ref.style,
|
|
152
154
|
crossOrigin = _ref.crossOrigin,
|
|
@@ -155,8 +157,8 @@ var Avatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
155
157
|
var theme$1 = hooks.useTheme();
|
|
156
158
|
var group = React.useContext(context.default);
|
|
157
159
|
var isInGroup = !!group;
|
|
158
|
-
var size = (_group$size = group === null || group ===
|
|
159
|
-
var shape = (_group$shape = group === null || group ===
|
|
160
|
+
var size = (_group$size = group === null || group === void 0 ? void 0 : group.size) !== null && _group$size !== void 0 ? _group$size : _size;
|
|
161
|
+
var shape = (_group$shape = group === null || group === void 0 ? void 0 : group.shape) !== null && _group$shape !== void 0 ? _group$shape : _shape;
|
|
160
162
|
var classNames = useClassNames.useClassNames(context.CLASS_NAMES);
|
|
161
163
|
var loadStatus = relax.useImageLoader({
|
|
162
164
|
src: src,
|
|
@@ -193,7 +195,7 @@ var Avatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
193
195
|
style: styled.image.style,
|
|
194
196
|
crossOrigin: crossOrigin,
|
|
195
197
|
referrerPolicy: referrerPolicy
|
|
196
|
-
})), loadStatus !== "loaded" && (alt === null || alt ===
|
|
198
|
+
})), loadStatus !== "loaded" && (alt === null || alt === void 0 ? void 0 : alt.slice(0, 2).toUpperCase()));
|
|
197
199
|
});
|
|
198
200
|
|
|
199
201
|
exports.default = Avatar;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import React, { forwardRef, useContext } from 'react';
|
|
4
|
-
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.10.
|
|
4
|
+
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.10.1/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
5
5
|
import Context, { CLASS_NAMES } from './context.mjs';
|
|
6
6
|
import { useTheme } from '../theme/hooks.mjs';
|
|
7
7
|
import { typography } from '../theme/theme.mjs';
|
|
@@ -142,9 +142,9 @@ var Avatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
142
142
|
var src = _ref.src,
|
|
143
143
|
alt = _ref.alt,
|
|
144
144
|
_ref$shape = _ref.shape,
|
|
145
|
-
_shape = _ref$shape ===
|
|
145
|
+
_shape = _ref$shape === void 0 ? "circular" : _ref$shape,
|
|
146
146
|
_ref$size = _ref.size,
|
|
147
|
-
_size = _ref$size ===
|
|
147
|
+
_size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
148
148
|
className = _ref.className,
|
|
149
149
|
style = _ref.style,
|
|
150
150
|
crossOrigin = _ref.crossOrigin,
|
|
@@ -153,8 +153,8 @@ var Avatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
153
153
|
var theme = useTheme();
|
|
154
154
|
var group = useContext(Context);
|
|
155
155
|
var isInGroup = !!group;
|
|
156
|
-
var size = (_group$size = group === null || group ===
|
|
157
|
-
var shape = (_group$shape = group === null || group ===
|
|
156
|
+
var size = (_group$size = group === null || group === void 0 ? void 0 : group.size) !== null && _group$size !== void 0 ? _group$size : _size;
|
|
157
|
+
var shape = (_group$shape = group === null || group === void 0 ? void 0 : group.shape) !== null && _group$shape !== void 0 ? _group$shape : _shape;
|
|
158
158
|
var classNames = useClassNames(CLASS_NAMES);
|
|
159
159
|
var loadStatus = useImageLoader({
|
|
160
160
|
src: src,
|
|
@@ -191,7 +191,7 @@ var Avatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
191
191
|
style: styled.image.style,
|
|
192
192
|
crossOrigin: crossOrigin,
|
|
193
193
|
referrerPolicy: referrerPolicy
|
|
194
|
-
})), loadStatus !== "loaded" && (alt === null || alt ===
|
|
194
|
+
})), loadStatus !== "loaded" && (alt === null || alt === void 0 ? void 0 : alt.slice(0, 2).toUpperCase()));
|
|
195
195
|
});
|
|
196
196
|
|
|
197
197
|
export { Avatar as default };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
1
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
4
|
|
|
3
5
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
@@ -11,11 +13,11 @@ var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
|
11
13
|
var _Group = function Group(_ref) {
|
|
12
14
|
var _children = _ref.children,
|
|
13
15
|
_ref$shape = _ref.shape,
|
|
14
|
-
shape = _ref$shape ===
|
|
16
|
+
shape = _ref$shape === void 0 ? "circular" : _ref$shape,
|
|
15
17
|
_ref$size = _ref.size,
|
|
16
|
-
size = _ref$size ===
|
|
18
|
+
size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
17
19
|
_ref$max = _ref.max,
|
|
18
|
-
max = _ref$max ===
|
|
20
|
+
max = _ref$max === void 0 ? 3 : _ref$max;
|
|
19
21
|
var classNames = useClassNames.useClassNames(context.CLASS_NAMES);
|
|
20
22
|
var styled = {
|
|
21
23
|
className: "musaex-3nfvp2 musaex-87ps6o"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
2
|
-
import React, { useMemo, Children,
|
|
2
|
+
import React, { useMemo, Children, cloneElement, isValidElement } from 'react';
|
|
3
3
|
import Context, { CLASS_NAMES } from './context.mjs';
|
|
4
4
|
import Popover from '../popover/popover.mjs';
|
|
5
5
|
import Avatar from './avatar.mjs';
|
|
@@ -9,11 +9,11 @@ import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
|
9
9
|
var _Group = function Group(_ref) {
|
|
10
10
|
var _children = _ref.children,
|
|
11
11
|
_ref$shape = _ref.shape,
|
|
12
|
-
shape = _ref$shape ===
|
|
12
|
+
shape = _ref$shape === void 0 ? "circular" : _ref$shape,
|
|
13
13
|
_ref$size = _ref.size,
|
|
14
|
-
size = _ref$size ===
|
|
14
|
+
size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
15
15
|
_ref$max = _ref.max,
|
|
16
|
-
max = _ref$max ===
|
|
16
|
+
max = _ref$max === void 0 ? 3 : _ref$max;
|
|
17
17
|
var classNames = useClassNames(CLASS_NAMES);
|
|
18
18
|
var styled = {
|
|
19
19
|
className: "musaex-3nfvp2 musaex-87ps6o"
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
1
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
4
|
|
|
3
5
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
4
6
|
var React = require('react');
|
|
5
7
|
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
6
|
-
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.10.
|
|
8
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.10.1/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
7
9
|
var theme = require('../theme/theme.cjs');
|
|
8
10
|
var tokens_stylex = require('../theme/tokens.stylex.cjs');
|
|
9
11
|
var hooks = require('../theme/hooks.cjs');
|
|
@@ -94,9 +96,9 @@ var Badge = function Badge(_ref) {
|
|
|
94
96
|
children = _ref.children,
|
|
95
97
|
content = _ref.content,
|
|
96
98
|
_ref$invisible = _ref.invisible,
|
|
97
|
-
invisible = _ref$invisible ===
|
|
99
|
+
invisible = _ref$invisible === void 0 ? false : _ref$invisible,
|
|
98
100
|
_ref$placement = _ref.placement,
|
|
99
|
-
placement = _ref$placement ===
|
|
101
|
+
placement = _ref$placement === void 0 ? "top-right" : _ref$placement;
|
|
100
102
|
var classNames = useClassNames.useClassNames(context.CLASS_NAMES);
|
|
101
103
|
var theme$1 = hooks.useTheme();
|
|
102
104
|
var isDot = relax.isVoid(content);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
4
|
-
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.10.
|
|
4
|
+
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.10.1/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
5
5
|
import { typography } from '../theme/theme.mjs';
|
|
6
6
|
import { sizes } from '../theme/tokens.stylex.mjs';
|
|
7
7
|
import { useTheme } from '../theme/hooks.mjs';
|
|
@@ -92,9 +92,9 @@ var Badge = function Badge(_ref) {
|
|
|
92
92
|
children = _ref.children,
|
|
93
93
|
content = _ref.content,
|
|
94
94
|
_ref$invisible = _ref.invisible,
|
|
95
|
-
invisible = _ref$invisible ===
|
|
95
|
+
invisible = _ref$invisible === void 0 ? false : _ref$invisible,
|
|
96
96
|
_ref$placement = _ref.placement,
|
|
97
|
-
placement = _ref$placement ===
|
|
97
|
+
placement = _ref$placement === void 0 ? "top-right" : _ref$placement;
|
|
98
98
|
var classNames = useClassNames(CLASS_NAMES);
|
|
99
99
|
var theme = useTheme();
|
|
100
100
|
var isDot = isVoid(content);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
1
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
4
|
|
|
3
5
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
4
6
|
var React = require('react');
|
|
5
7
|
var index = require('../layout/index.cjs');
|
|
6
|
-
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.10.
|
|
8
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.10.1/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
7
9
|
var tokens_stylex = require('../theme/tokens.stylex.cjs');
|
|
8
10
|
var divider = require('../divider/divider.cjs');
|
|
9
11
|
var hooks$1 = require('./hooks.cjs');
|
|
@@ -81,7 +83,7 @@ var Bench = function Bench(_ref) {
|
|
|
81
83
|
title = _ref.title,
|
|
82
84
|
logo = _ref.logo,
|
|
83
85
|
_ref$navigations = _ref.navigations,
|
|
84
|
-
navigations = _ref$navigations ===
|
|
86
|
+
navigations = _ref$navigations === void 0 ? [] : _ref$navigations,
|
|
85
87
|
className$1 = _ref.className,
|
|
86
88
|
style = _ref.style,
|
|
87
89
|
trailing = _ref.trailing,
|
|
@@ -89,12 +91,12 @@ var Bench = function Bench(_ref) {
|
|
|
89
91
|
location = _ref.location,
|
|
90
92
|
defaultExpandedKeys = _ref.defaultExpandedKeys,
|
|
91
93
|
_ref$classNames = _ref.classNames,
|
|
92
|
-
_ref$classNames2 = _ref$classNames ===
|
|
94
|
+
_ref$classNames2 = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
93
95
|
mainClassName = _ref$classNames2.main,
|
|
94
96
|
_ref$elevation = _ref.elevation,
|
|
95
|
-
elevation = _ref$elevation ===
|
|
97
|
+
elevation = _ref$elevation === void 0 ? "xsmall" : _ref$elevation,
|
|
96
98
|
_ref$layout = _ref.layout,
|
|
97
|
-
layout = _ref$layout ===
|
|
99
|
+
layout = _ref$layout === void 0 ? "mix" : _ref$layout;
|
|
98
100
|
var theme$1 = hooks.useTheme();
|
|
99
101
|
var _logo = hooks$1.useLogo(logo);
|
|
100
102
|
var _useNavigations = hooks$1.useNavigations({
|
|
@@ -127,7 +129,7 @@ var Bench = function Bench(_ref) {
|
|
|
127
129
|
className: styled.header.className,
|
|
128
130
|
style: styled.header.style
|
|
129
131
|
}, !!_logo && /*#__PURE__*/React.createElement("img", {
|
|
130
|
-
src: _logo === null || _logo ===
|
|
132
|
+
src: _logo === null || _logo === void 0 ? void 0 : _logo.url,
|
|
131
133
|
alt: "logo"
|
|
132
134
|
}), !!_logo && (/*#__PURE__*/React.createElement("div", {
|
|
133
135
|
className: styled.divider.className,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Layout } from '../layout/index.mjs';
|
|
4
|
-
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.10.
|
|
4
|
+
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.10.1/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
5
5
|
import { elevations } from '../theme/tokens.stylex.mjs';
|
|
6
6
|
import Divider from '../divider/divider.mjs';
|
|
7
7
|
import { useLogo, useNavigations } from './hooks.mjs';
|
|
@@ -79,7 +79,7 @@ var Bench = function Bench(_ref) {
|
|
|
79
79
|
title = _ref.title,
|
|
80
80
|
logo = _ref.logo,
|
|
81
81
|
_ref$navigations = _ref.navigations,
|
|
82
|
-
navigations = _ref$navigations ===
|
|
82
|
+
navigations = _ref$navigations === void 0 ? [] : _ref$navigations,
|
|
83
83
|
className = _ref.className,
|
|
84
84
|
style = _ref.style,
|
|
85
85
|
trailing = _ref.trailing,
|
|
@@ -87,12 +87,12 @@ var Bench = function Bench(_ref) {
|
|
|
87
87
|
location = _ref.location,
|
|
88
88
|
defaultExpandedKeys = _ref.defaultExpandedKeys,
|
|
89
89
|
_ref$classNames = _ref.classNames,
|
|
90
|
-
_ref$classNames2 = _ref$classNames ===
|
|
90
|
+
_ref$classNames2 = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
91
91
|
mainClassName = _ref$classNames2.main,
|
|
92
92
|
_ref$elevation = _ref.elevation,
|
|
93
|
-
elevation = _ref$elevation ===
|
|
93
|
+
elevation = _ref$elevation === void 0 ? "xsmall" : _ref$elevation,
|
|
94
94
|
_ref$layout = _ref.layout,
|
|
95
|
-
layout = _ref$layout ===
|
|
95
|
+
layout = _ref$layout === void 0 ? "mix" : _ref$layout;
|
|
96
96
|
var theme = useTheme();
|
|
97
97
|
var _logo = useLogo(logo);
|
|
98
98
|
var _useNavigations = useNavigations({
|
|
@@ -125,7 +125,7 @@ var Bench = function Bench(_ref) {
|
|
|
125
125
|
className: styled.header.className,
|
|
126
126
|
style: styled.header.style
|
|
127
127
|
}, !!_logo && /*#__PURE__*/React.createElement("img", {
|
|
128
|
-
src: _logo === null || _logo ===
|
|
128
|
+
src: _logo === null || _logo === void 0 ? void 0 : _logo.url,
|
|
129
129
|
alt: "logo"
|
|
130
130
|
}), !!_logo && (/*#__PURE__*/React.createElement("div", {
|
|
131
131
|
className: styled.divider.className,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
1
3
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
2
4
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
3
5
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
@@ -27,7 +29,7 @@ var _toMenuItem3 = function toMenuItem(_ref, parentKeys) {
|
|
|
27
29
|
children = _ref.children,
|
|
28
30
|
item = _objectWithoutProperties(_ref, _excluded);
|
|
29
31
|
// convert children
|
|
30
|
-
var _reduce = (children !== null && children !==
|
|
32
|
+
var _reduce = (children !== null && children !== void 0 ? children : []).reduce(function (_ref2, child) {
|
|
31
33
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
32
34
|
_menuItems = _ref3[0],
|
|
33
35
|
_paths = _ref3[1];
|
|
@@ -97,7 +99,7 @@ var useNavigations = function useNavigations(_ref4) {
|
|
|
97
99
|
var selectedKeys = React.useMemo(function () {
|
|
98
100
|
var _paths$get$at, _paths$get;
|
|
99
101
|
if (relax.isUndefined(location)) return [];
|
|
100
|
-
return [(_paths$get$at = (_paths$get = paths.get(location)) === null || _paths$get ===
|
|
102
|
+
return [(_paths$get$at = (_paths$get = paths.get(location)) === null || _paths$get === void 0 ? void 0 : _paths$get.at(0)) !== null && _paths$get$at !== void 0 ? _paths$get$at : location, location];
|
|
101
103
|
}, [location, paths]);
|
|
102
104
|
// side menu
|
|
103
105
|
var sideMenuItems = React.useMemo(function () {
|
|
@@ -111,7 +113,7 @@ var useNavigations = function useNavigations(_ref4) {
|
|
|
111
113
|
}
|
|
112
114
|
// top-side relation
|
|
113
115
|
if (!selectedKeys[0]) return [];
|
|
114
|
-
return (_sideNavigations$get = sideNavigations.get(selectedKeys[0])) !== null && _sideNavigations$get !==
|
|
116
|
+
return (_sideNavigations$get = sideNavigations.get(selectedKeys[0])) !== null && _sideNavigations$get !== void 0 ? _sideNavigations$get : [];
|
|
115
117
|
}, [selectedKeys, sideNavigations, topNavigations]);
|
|
116
118
|
// top menu items
|
|
117
119
|
var topMenuItems = React.useMemo(function () {
|
|
@@ -27,7 +27,7 @@ var _toMenuItem3 = function toMenuItem(_ref, parentKeys) {
|
|
|
27
27
|
children = _ref.children,
|
|
28
28
|
item = _objectWithoutProperties(_ref, _excluded);
|
|
29
29
|
// convert children
|
|
30
|
-
var _reduce = (children !== null && children !==
|
|
30
|
+
var _reduce = (children !== null && children !== void 0 ? children : []).reduce(function (_ref2, child) {
|
|
31
31
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
32
32
|
_menuItems = _ref3[0],
|
|
33
33
|
_paths = _ref3[1];
|
|
@@ -97,7 +97,7 @@ var useNavigations = function useNavigations(_ref4) {
|
|
|
97
97
|
var selectedKeys = useMemo(function () {
|
|
98
98
|
var _paths$get$at, _paths$get;
|
|
99
99
|
if (isUndefined(location)) return [];
|
|
100
|
-
return [(_paths$get$at = (_paths$get = paths.get(location)) === null || _paths$get ===
|
|
100
|
+
return [(_paths$get$at = (_paths$get = paths.get(location)) === null || _paths$get === void 0 ? void 0 : _paths$get.at(0)) !== null && _paths$get$at !== void 0 ? _paths$get$at : location, location];
|
|
101
101
|
}, [location, paths]);
|
|
102
102
|
// side menu
|
|
103
103
|
var sideMenuItems = useMemo(function () {
|
|
@@ -111,7 +111,7 @@ var useNavigations = function useNavigations(_ref4) {
|
|
|
111
111
|
}
|
|
112
112
|
// top-side relation
|
|
113
113
|
if (!selectedKeys[0]) return [];
|
|
114
|
-
return (_sideNavigations$get = sideNavigations.get(selectedKeys[0])) !== null && _sideNavigations$get !==
|
|
114
|
+
return (_sideNavigations$get = sideNavigations.get(selectedKeys[0])) !== null && _sideNavigations$get !== void 0 ? _sideNavigations$get : [];
|
|
115
115
|
}, [selectedKeys, sideNavigations, topNavigations]);
|
|
116
116
|
// top menu items
|
|
117
117
|
var topMenuItems = useMemo(function () {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
1
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
4
|
|
|
3
5
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
4
6
|
var React = require('react');
|
|
5
|
-
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.10.
|
|
7
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.10.1/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
6
8
|
var theme = require('../theme/theme.cjs');
|
|
7
9
|
var hooks = require('../theme/hooks.cjs');
|
|
8
10
|
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
@@ -22,10 +24,10 @@ var styles = {
|
|
|
22
24
|
};
|
|
23
25
|
var Breadcrumb = function Breadcrumb(_ref) {
|
|
24
26
|
var _ref$items = _ref.items,
|
|
25
|
-
items = _ref$items ===
|
|
27
|
+
items = _ref$items === void 0 ? [] : _ref$items,
|
|
26
28
|
className$1 = _ref.className,
|
|
27
29
|
_ref$separator = _ref.separator,
|
|
28
|
-
separator = _ref$separator ===
|
|
30
|
+
separator = _ref$separator === void 0 ? "/" : _ref$separator,
|
|
29
31
|
style = _ref.style;
|
|
30
32
|
var theme$1 = hooks.useTheme();
|
|
31
33
|
var classNames = useClassNames.useClassNames(context.CLASS_NAMES);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.10.
|
|
3
|
+
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.10.1/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
4
4
|
import { typography } from '../theme/theme.mjs';
|
|
5
5
|
import { useTheme } from '../theme/hooks.mjs';
|
|
6
6
|
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
@@ -20,10 +20,10 @@ var styles = {
|
|
|
20
20
|
};
|
|
21
21
|
var Breadcrumb = function Breadcrumb(_ref) {
|
|
22
22
|
var _ref$items = _ref.items,
|
|
23
|
-
items = _ref$items ===
|
|
23
|
+
items = _ref$items === void 0 ? [] : _ref$items,
|
|
24
24
|
className = _ref.className,
|
|
25
25
|
_ref$separator = _ref.separator,
|
|
26
|
-
separator = _ref$separator ===
|
|
26
|
+
separator = _ref$separator === void 0 ? "/" : _ref$separator,
|
|
27
27
|
style = _ref.style;
|
|
28
28
|
var theme = useTheme();
|
|
29
29
|
var classNames = useClassNames(CLASS_NAMES);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
1
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
4
|
|
|
3
5
|
var React = require('react');
|
|
4
|
-
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.10.
|
|
6
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.10.1/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
5
7
|
var hooks = require('../theme/hooks.cjs');
|
|
6
8
|
var className = require('@aiszlab/relax/class-name');
|
|
7
9
|
var context = require('./context.cjs');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.10.
|
|
2
|
+
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.10.1/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
3
3
|
import { useTheme } from '../theme/hooks.mjs';
|
|
4
4
|
import { stringify } from '@aiszlab/relax/class-name';
|
|
5
5
|
import { Context } from './context.mjs';
|