musae 0.2.26 → 0.3.1
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 +179 -0
- package/dist/components/avatar/{avatar.js → avatar.mjs} +12 -12
- package/dist/components/avatar/context.cjs +9 -0
- package/dist/components/avatar/group.cjs +67 -0
- package/dist/components/avatar/{group.js → group.mjs} +6 -6
- package/dist/components/avatar/index.cjs +8 -0
- package/dist/components/avatar/{index.js → index.mjs} +2 -2
- package/dist/components/avatar/types.d.ts +1 -1
- package/dist/components/badge/badge.cjs +120 -0
- package/dist/components/badge/{badge.js → badge.mjs} +9 -10
- package/dist/components/badge/types.d.ts +1 -1
- package/dist/components/bench/bench.cjs +164 -0
- package/dist/components/bench/bench.d.ts +2 -2
- package/dist/components/bench/{bench.js → bench.mjs} +13 -14
- package/dist/components/bench/hooks.cjs +129 -0
- package/dist/components/bench/hooks.d.ts +4 -4
- package/dist/components/bench/{hooks.js → hooks.mjs} +3 -3
- package/dist/components/bench/index.d.ts +0 -2
- package/dist/components/breadcrumb/breadcrumb.cjs +60 -0
- package/dist/components/breadcrumb/{breadcrumb.js → breadcrumb.mjs} +10 -11
- package/dist/components/breadcrumb/item.cjs +88 -0
- package/dist/components/breadcrumb/{item.js → item.mjs} +6 -6
- package/dist/components/breadcrumb/types.d.ts +1 -1
- package/dist/components/button/button.cjs +298 -0
- package/dist/components/button/{button.js → button.mjs} +15 -15
- package/dist/components/button/hooks.cjs +24 -0
- package/dist/components/button/{hooks.js → hooks.mjs} +1 -1
- package/dist/components/button/types.d.ts +1 -1
- package/dist/components/calendar/calendar.cjs +109 -0
- package/dist/components/calendar/{calendar.js → calendar.mjs} +15 -16
- package/dist/components/calendar/hooks.cjs +235 -0
- package/dist/components/calendar/{hooks.js → hooks.mjs} +11 -11
- package/dist/components/calendar/types.d.ts +1 -1
- package/dist/components/cascader/cascader.cjs +86 -0
- package/dist/components/cascader/{cascader.js → cascader.mjs} +8 -9
- package/dist/components/cascader/hooks.cjs +130 -0
- package/dist/components/cascader/hooks.d.ts +2 -2
- package/dist/components/cascader/{hooks.js → hooks.mjs} +1 -1
- package/dist/components/cascader/types.d.ts +1 -1
- package/dist/components/cascader/utils.cjs +108 -0
- package/dist/components/cascader/utils.d.ts +1 -1
- package/dist/components/checkbox/checkbox.cjs +88 -0
- package/dist/components/checkbox/{checkbox.js → checkbox.mjs} +10 -10
- package/dist/components/checkbox/context.cjs +7 -0
- package/dist/components/checkbox/group.cjs +48 -0
- package/dist/components/checkbox/{group.js → group.mjs} +1 -1
- package/dist/components/checkbox/index.cjs +8 -0
- package/dist/components/checkbox/{index.js → index.mjs} +2 -2
- package/dist/components/checkbox/styles.cjs +186 -0
- package/dist/components/checkbox/styles.d.ts +1 -0
- package/dist/components/checkbox/{styles.js → styles.mjs} +1 -0
- package/dist/components/checkbox/types.d.ts +1 -1
- package/dist/components/clock/clock.cjs +40 -0
- package/dist/components/clock/{clock.js → clock.mjs} +7 -8
- package/dist/components/clock/column.cjs +92 -0
- package/dist/components/clock/{column.js → column.mjs} +9 -9
- package/dist/components/clock/hooks.cjs +12 -0
- package/dist/components/clock/{hooks.js → hooks.mjs} +1 -1
- package/dist/components/clock/types.cjs +6 -0
- package/dist/components/clock/types.d.ts +1 -1
- package/dist/components/collapse/collapse.cjs +102 -0
- package/dist/components/collapse/{collapse.js → collapse.mjs} +10 -11
- package/dist/components/collapse/context.cjs +12 -0
- package/dist/components/collapse/hooks.cjs +51 -0
- package/dist/components/collapse/item.cjs +170 -0
- package/dist/components/collapse/{item.js → item.mjs} +9 -9
- package/dist/components/collapse/types.d.ts +1 -1
- package/dist/components/config/context.cjs +11 -0
- package/dist/components/config/{context.js → context.mjs} +1 -1
- package/dist/components/config/hooks.cjs +12 -0
- package/dist/components/config/{hooks.js → hooks.mjs} +1 -1
- package/dist/components/config/provider.cjs +35 -0
- package/dist/components/config/{provider.js → provider.mjs} +7 -8
- package/dist/components/config/types.d.ts +1 -1
- package/dist/components/countdown/countdown.cjs +85 -0
- package/dist/components/countdown/{countdown.js → countdown.mjs} +2 -3
- package/dist/components/countdown/types.d.ts +1 -1
- package/dist/components/date-picker/date-picker.cjs +45 -0
- package/dist/components/date-picker/{date-picker.js → date-picker.mjs} +12 -13
- package/dist/components/date-picker/hooks.cjs +31 -0
- package/dist/components/date-picker/hooks.d.ts +1 -1
- package/dist/components/date-range-picker/date-range-picker.cjs +56 -0
- package/dist/components/date-range-picker/{date-range-picker.js → date-range-picker.mjs} +8 -9
- package/dist/components/date-range-picker/hooks.cjs +41 -0
- package/dist/components/date-range-picker/hooks.d.ts +1 -1
- package/dist/components/dialog/dialog.cjs +40 -0
- package/dist/components/dialog/{dialog.js → dialog.mjs} +3 -4
- package/dist/components/dialog/hooks.cjs +32 -0
- package/dist/components/dialog/{hooks.js → hooks.mjs} +4 -4
- package/dist/components/dialog/popup.cjs +216 -0
- package/dist/components/dialog/{popup.js → popup.mjs} +20 -20
- package/dist/components/dialog/types.d.ts +1 -1
- package/dist/components/divider/divider.cjs +181 -0
- package/dist/components/divider/{divider.js → divider.mjs} +12 -13
- package/dist/components/divider/hooks.cjs +16 -0
- package/dist/components/divider/types.d.ts +1 -1
- package/dist/components/drawer/drawer.cjs +46 -0
- package/dist/components/drawer/{drawer.js → drawer.mjs} +3 -4
- package/dist/components/drawer/hooks.cjs +8 -0
- package/dist/components/drawer/popup.cjs +276 -0
- package/dist/components/drawer/{popup.js → popup.mjs} +15 -15
- package/dist/components/drawer/types.d.ts +1 -1
- package/dist/components/empty/empty.cjs +66 -0
- package/dist/components/empty/{empty.js → empty.mjs} +8 -9
- package/dist/components/floating-action-button/floatable.cjs +102 -0
- package/dist/components/floating-action-button/{floatable.js → floatable.mjs} +4 -4
- package/dist/components/floating-action-button/floating-action-button.cjs +39 -0
- package/dist/components/floating-action-button/{floating-action-button.js → floating-action-button.mjs} +3 -4
- package/dist/components/form/context.cjs +12 -0
- package/dist/components/form/context.d.ts +1 -1
- package/dist/components/form/{context.js → context.mjs} +1 -2
- package/dist/components/form/field/error.cjs +74 -0
- package/dist/components/form/field/error.d.ts +1 -1
- package/dist/components/form/field/{error.js → error.mjs} +6 -6
- package/dist/components/form/field/field.cjs +96 -0
- package/dist/components/form/field/field.d.ts +2 -2
- package/dist/components/form/field/field.mjs +94 -0
- package/dist/components/form/field/layout.cjs +79 -0
- package/dist/components/form/field/layout.d.ts +4 -3
- package/dist/components/form/field/layout.mjs +77 -0
- package/dist/components/form/form.cjs +55 -0
- package/dist/components/form/form.d.ts +1 -1
- package/dist/components/form/{form.js → form.mjs} +2 -2
- package/dist/components/form/hooks.cjs +14 -0
- package/dist/components/form/hooks.d.ts +3 -2
- package/dist/components/form/index.cjs +10 -0
- package/dist/components/form/index.d.ts +1 -4
- package/dist/components/form/index.mjs +10 -0
- package/dist/components/form/item.cjs +35 -0
- package/dist/components/form/item.d.ts +1 -1
- package/dist/components/form/{item.js → item.mjs} +4 -2
- package/dist/components/grid/col.cjs +40 -0
- package/dist/components/grid/{col.js → col.mjs} +5 -5
- package/dist/components/grid/index.cjs +9 -0
- package/dist/components/grid/{index.js → index.mjs} +2 -2
- package/dist/components/grid/row.cjs +65 -0
- package/dist/components/grid/{row.js → row.mjs} +6 -6
- package/dist/components/grid/types.d.ts +1 -1
- package/dist/components/highlight/highlight.cjs +57 -0
- package/dist/components/highlight/{highlight.js → highlight.mjs} +6 -6
- package/dist/components/i18n-button/hooks.cjs +78 -0
- package/dist/components/i18n-button/hooks.d.ts +2 -2
- package/dist/components/i18n-button/{hooks.js → hooks.mjs} +3 -3
- package/dist/components/i18n-button/i18n-button.cjs +56 -0
- package/dist/components/i18n-button/{i18n-button.js → i18n-button.mjs} +6 -7
- package/dist/components/i18n-button/types.d.ts +1 -1
- package/dist/components/icon/hoc.cjs +17 -0
- package/dist/components/icon/{hoc.js → hoc.mjs} +1 -1
- package/dist/components/icon/icon.cjs +60 -0
- package/dist/components/icon/{icon.js → icon.mjs} +8 -9
- package/dist/components/icon/icons/action/check-circle-outline.cjs +20 -0
- package/dist/components/icon/icons/action/{check-circle-outline.js → check-circle-outline.mjs} +2 -3
- package/dist/components/icon/icons/action/check-circle.cjs +20 -0
- package/dist/components/icon/icons/action/{check-circle.js → check-circle.mjs} +2 -3
- package/dist/components/icon/icons/action/code.cjs +20 -0
- package/dist/components/icon/icons/action/{code.js → code.mjs} +2 -3
- package/dist/components/icon/icons/action/done-outline.cjs +20 -0
- package/dist/components/icon/icons/action/{done-outline.js → done-outline.mjs} +2 -3
- package/dist/components/icon/icons/action/done.cjs +20 -0
- package/dist/components/icon/icons/action/{done.js → done.mjs} +2 -3
- package/dist/components/icon/icons/action/index.cjs +29 -0
- package/dist/components/icon/icons/action/index.mjs +13 -0
- package/dist/components/icon/icons/action/open-in-new.cjs +20 -0
- package/dist/components/icon/icons/action/{open-in-new.js → open-in-new.mjs} +2 -3
- package/dist/components/icon/icons/action/swap-horiz.cjs +20 -0
- package/dist/components/icon/icons/action/{swap-horiz.js → swap-horiz.mjs} +2 -3
- package/dist/components/icon/icons/action/swap-vert.cjs +20 -0
- package/dist/components/icon/icons/action/{swap-vert.js → swap-vert.mjs} +2 -3
- package/dist/components/icon/icons/action/translate.cjs +20 -0
- package/dist/components/icon/icons/action/{translate.js → translate.mjs} +2 -3
- package/dist/components/icon/icons/action/visibility-off.cjs +20 -0
- package/dist/components/icon/icons/action/{visibility-off.js → visibility-off.mjs} +2 -3
- package/dist/components/icon/icons/action/visibility.cjs +20 -0
- package/dist/components/icon/icons/action/{visibility.js → visibility.mjs} +2 -3
- package/dist/components/icon/icons/action/zoom-in.cjs +20 -0
- package/dist/components/icon/icons/action/{zoom-in.js → zoom-in.mjs} +2 -3
- package/dist/components/icon/icons/action/zoom-out.cjs +20 -0
- package/dist/components/icon/icons/action/{zoom-out.js → zoom-out.mjs} +2 -3
- package/dist/components/icon/icons/alert/add-alert.cjs +20 -0
- package/dist/components/icon/icons/alert/{add-alert.js → add-alert.mjs} +2 -3
- package/dist/components/icon/icons/alert/auto-delete.cjs +26 -0
- package/dist/components/icon/icons/alert/{auto-delete.js → auto-delete.mjs} +2 -3
- package/dist/components/icon/icons/alert/error-outline.cjs +20 -0
- package/dist/components/icon/icons/alert/{error-outline.js → error-outline.mjs} +2 -3
- package/dist/components/icon/icons/alert/error.cjs +20 -0
- package/dist/components/icon/icons/alert/{error.js → error.mjs} +2 -3
- package/dist/components/icon/icons/alert/index.cjs +17 -0
- package/dist/components/icon/icons/alert/index.mjs +7 -0
- package/dist/components/icon/icons/alert/notification-important.cjs +20 -0
- package/dist/components/icon/icons/alert/{notification-important.js → notification-important.mjs} +2 -3
- package/dist/components/icon/icons/alert/warning-amber.cjs +20 -0
- package/dist/components/icon/icons/alert/{warning-amber.js → warning-amber.mjs} +2 -3
- package/dist/components/icon/icons/alert/warning.cjs +20 -0
- package/dist/components/icon/icons/alert/{warning.js → warning.mjs} +2 -3
- package/dist/components/icon/icons/content/clear.cjs +20 -0
- package/dist/components/icon/icons/content/{clear.js → clear.mjs} +2 -3
- package/dist/components/icon/icons/content/font-download.cjs +20 -0
- package/dist/components/icon/icons/content/{font-download.js → font-download.mjs} +2 -3
- package/dist/components/icon/icons/content/index.cjs +13 -0
- package/dist/components/icon/icons/content/index.mjs +5 -0
- package/dist/components/icon/icons/content/link-off.cjs +20 -0
- package/dist/components/icon/icons/content/{link-off.js → link-off.mjs} +2 -3
- package/dist/components/icon/icons/content/redo.cjs +20 -0
- package/dist/components/icon/icons/content/{redo.js → redo.mjs} +2 -3
- package/dist/components/icon/icons/content/undo.cjs +20 -0
- package/dist/components/icon/icons/content/{undo.js → undo.mjs} +2 -3
- package/dist/components/icon/icons/editor/checklist.cjs +20 -0
- package/dist/components/icon/icons/editor/{checklist.js → checklist.mjs} +2 -3
- package/dist/components/icon/icons/editor/format-bold.cjs +20 -0
- package/dist/components/icon/icons/editor/{format-bold.js → format-bold.mjs} +2 -3
- package/dist/components/icon/icons/editor/format-italic.cjs +20 -0
- package/dist/components/icon/icons/editor/{format-italic.js → format-italic.mjs} +2 -3
- package/dist/components/icon/icons/editor/format-strikethrough.cjs +20 -0
- package/dist/components/icon/icons/editor/{format-strikethrough.js → format-strikethrough.mjs} +2 -3
- package/dist/components/icon/icons/editor/format-underlined.cjs +20 -0
- package/dist/components/icon/icons/editor/{format-underlined.js → format-underlined.mjs} +2 -3
- package/dist/components/icon/icons/editor/index.cjs +21 -0
- package/dist/components/icon/icons/editor/index.mjs +9 -0
- package/dist/components/icon/icons/editor/insert-link.cjs +20 -0
- package/dist/components/icon/icons/editor/{insert-link.js → insert-link.mjs} +2 -3
- package/dist/components/icon/icons/editor/notes.cjs +20 -0
- package/dist/components/icon/icons/editor/{notes.js → notes.mjs} +2 -3
- package/dist/components/icon/icons/editor/subscript.cjs +20 -0
- package/dist/components/icon/icons/editor/{subscript.js → subscript.mjs} +2 -3
- package/dist/components/icon/icons/editor/superscript.cjs +20 -0
- package/dist/components/icon/icons/editor/{superscript.js → superscript.mjs} +2 -3
- package/dist/components/icon/icons/hardware/index.cjs +15 -0
- package/dist/components/icon/icons/hardware/{index.js → index.mjs} +6 -6
- package/dist/components/icon/icons/hardware/keyboard-arrow-down.cjs +19 -0
- package/dist/components/icon/icons/hardware/{keyboard-arrow-down.js → keyboard-arrow-down.mjs} +2 -3
- package/dist/components/icon/icons/hardware/keyboard-arrow-left.cjs +20 -0
- package/dist/components/icon/icons/hardware/{keyboard-arrow-left.js → keyboard-arrow-left.mjs} +2 -3
- package/dist/components/icon/icons/hardware/keyboard-arrow-right.cjs +20 -0
- package/dist/components/icon/icons/hardware/{keyboard-arrow-right.js → keyboard-arrow-right.mjs} +2 -3
- package/dist/components/icon/icons/hardware/keyboard-arrow-up.cjs +20 -0
- package/dist/components/icon/icons/hardware/{keyboard-arrow-up.js → keyboard-arrow-up.mjs} +2 -3
- package/dist/components/icon/icons/hardware/keyboard-double-arrow-left.cjs +23 -0
- package/dist/components/icon/icons/hardware/{keyboard-double-arrow-left.js → keyboard-double-arrow-left.mjs} +2 -3
- package/dist/components/icon/icons/hardware/keyboard-double-arrow-right.cjs +23 -0
- package/dist/components/icon/icons/hardware/{keyboard-double-arrow-right.js → keyboard-double-arrow-right.mjs} +2 -3
- package/dist/components/icon/icons/image/bedtime.cjs +20 -0
- package/dist/components/icon/icons/image/{bedtime.js → bedtime.mjs} +2 -3
- package/dist/components/icon/icons/image/edit.cjs +20 -0
- package/dist/components/icon/icons/image/{edit.js → edit.mjs} +2 -3
- package/dist/components/icon/icons/image/index.cjs +25 -0
- package/dist/components/icon/icons/image/index.mjs +11 -0
- package/dist/components/icon/icons/image/looks-five.cjs +20 -0
- package/dist/components/icon/icons/image/{looks-five.js → looks-five.mjs} +2 -3
- package/dist/components/icon/icons/image/looks-four.cjs +20 -0
- package/dist/components/icon/icons/image/{looks-four.js → looks-four.mjs} +2 -3
- package/dist/components/icon/icons/image/looks-one.cjs +20 -0
- package/dist/components/icon/icons/image/{looks-one.js → looks-one.mjs} +2 -3
- package/dist/components/icon/icons/image/looks-six.cjs +20 -0
- package/dist/components/icon/icons/image/{looks-six.js → looks-six.mjs} +2 -3
- package/dist/components/icon/icons/image/looks-three.cjs +20 -0
- package/dist/components/icon/icons/image/{looks-three.js → looks-three.mjs} +2 -3
- package/dist/components/icon/icons/image/looks-two.cjs +20 -0
- package/dist/components/icon/icons/image/{looks-two.js → looks-two.mjs} +2 -3
- package/dist/components/icon/icons/image/rotate-left.cjs +20 -0
- package/dist/components/icon/icons/image/{rotate-left.js → rotate-left.mjs} +2 -3
- package/dist/components/icon/icons/image/rotate-right.cjs +20 -0
- package/dist/components/icon/icons/image/{rotate-right.js → rotate-right.mjs} +2 -3
- package/dist/components/icon/icons/image/wb-sunny.cjs +20 -0
- package/dist/components/icon/icons/image/{wb-sunny.js → wb-sunny.mjs} +2 -3
- package/dist/components/icon/icons/index.cjs +125 -0
- package/dist/components/icon/icons/index.mjs +61 -0
- package/dist/components/icon/icons/mock/github.cjs +21 -0
- package/dist/components/icon/icons/mock/{github.js → github.mjs} +2 -3
- package/dist/components/icon/icons/mock/index.cjs +7 -0
- package/dist/components/icon/icons/mock/index.mjs +2 -0
- package/dist/components/icon/icons/mock/loading.cjs +26 -0
- package/dist/components/icon/icons/mock/{loading.js → loading.mjs} +2 -3
- package/dist/components/icon/icons/navigation/cancel.cjs +20 -0
- package/dist/components/icon/icons/navigation/{cancel.js → cancel.mjs} +2 -3
- package/dist/components/icon/icons/navigation/check.cjs +20 -0
- package/dist/components/icon/icons/navigation/{check.js → check.mjs} +2 -3
- package/dist/components/icon/icons/navigation/close.cjs +20 -0
- package/dist/components/icon/icons/navigation/{close.js → close.mjs} +2 -3
- package/dist/components/icon/icons/navigation/index.cjs +13 -0
- package/dist/components/icon/icons/navigation/index.mjs +5 -0
- package/dist/components/icon/icons/navigation/more-horiz.cjs +20 -0
- package/dist/components/icon/icons/navigation/{more-horiz.js → more-horiz.mjs} +2 -3
- package/dist/components/icon/icons/navigation/unfold-more.cjs +20 -0
- package/dist/components/icon/icons/navigation/{unfold-more.js → unfold-more.mjs} +2 -3
- package/dist/components/icon/icons/toggle/index.cjs +9 -0
- package/dist/components/icon/icons/toggle/index.mjs +3 -0
- package/dist/components/icon/icons/toggle/star-half.cjs +20 -0
- package/dist/components/icon/icons/toggle/{star-half.js → star-half.mjs} +2 -3
- package/dist/components/icon/icons/toggle/star-outline.cjs +20 -0
- package/dist/components/icon/icons/toggle/{star-outline.js → star-outline.mjs} +2 -3
- package/dist/components/icon/icons/toggle/star.cjs +20 -0
- package/dist/components/icon/icons/toggle/{star.js → star.mjs} +2 -3
- package/dist/components/icon/types.d.ts +1 -1
- package/dist/components/image/hooks.cjs +65 -0
- package/dist/components/image/{hooks.js → hooks.mjs} +7 -7
- package/dist/components/image/image.cjs +47 -0
- package/dist/components/image/{image.js → image.mjs} +2 -2
- package/dist/components/image/index.cjs +8 -0
- package/dist/components/image/{index.js → index.mjs} +2 -2
- package/dist/components/image/preview/context.cjs +7 -0
- package/dist/components/image/preview/group.cjs +62 -0
- package/dist/components/image/preview/{group.js → group.mjs} +2 -2
- package/dist/components/image/preview/operations.cjs +148 -0
- package/dist/components/image/preview/{operations.js → operations.mjs} +10 -10
- package/dist/components/image/preview/preview.cjs +135 -0
- package/dist/components/image/preview/{preview.js → preview.mjs} +3 -3
- package/dist/components/image/types.d.ts +1 -1
- package/dist/components/input/hooks.cjs +69 -0
- package/dist/components/input/input.cjs +225 -0
- package/dist/components/input/{input.js → input.mjs} +11 -12
- package/dist/components/input/types.d.ts +1 -1
- package/dist/components/layout/footer.cjs +7 -0
- package/dist/components/layout/header.cjs +46 -0
- package/dist/components/layout/{header.js → header.mjs} +4 -4
- package/dist/components/layout/hooks.cjs +60 -0
- package/dist/components/layout/hooks.d.ts +1 -1
- package/dist/components/layout/{hooks.js → hooks.mjs} +4 -4
- package/dist/components/layout/index.cjs +13 -0
- package/dist/components/layout/index.mjs +13 -0
- package/dist/components/layout/layout.cjs +52 -0
- package/dist/components/layout/{layout.js → layout.mjs} +5 -5
- package/dist/components/layout/main.cjs +8 -0
- package/dist/components/layout/sider.cjs +18 -0
- package/dist/components/layout/{sider.js → sider.mjs} +1 -1
- package/dist/components/layout/types.d.ts +1 -1
- package/dist/components/loading/loading.cjs +159 -0
- package/dist/components/loading/loading.d.ts +1 -1
- package/dist/components/loading/{loading.js → loading.mjs} +39 -49
- package/dist/components/loading/types.d.ts +9 -2
- package/dist/components/menu/context.cjs +20 -0
- package/dist/components/menu/context.d.ts +1 -1
- package/dist/components/menu/group.cjs +190 -0
- package/dist/components/menu/group.d.ts +2 -2
- package/dist/components/menu/{group.js → group.mjs} +11 -11
- package/dist/components/menu/hooks.cjs +163 -0
- package/dist/components/menu/hooks.d.ts +2 -2
- package/dist/components/menu/{hooks.js → hooks.mjs} +4 -4
- package/dist/components/menu/index.d.ts +1 -2
- package/dist/components/menu/item.cjs +291 -0
- package/dist/components/menu/item.d.ts +3 -3
- package/dist/components/menu/{item.js → item.mjs} +17 -17
- package/dist/components/menu/menu.cjs +73 -0
- package/dist/components/menu/menu.d.ts +1 -1
- package/dist/components/menu/{menu.js → menu.mjs} +7 -8
- package/dist/components/message/hooks.cjs +47 -0
- package/dist/components/message/{hooks.js → hooks.mjs} +1 -1
- package/dist/components/message/messager.cjs +22 -0
- package/dist/components/message/{messager.js → messager.mjs} +2 -3
- package/dist/components/notification/holder.cjs +170 -0
- package/dist/components/notification/{holder.js → holder.mjs} +4 -4
- package/dist/components/notification/hooks.cjs +86 -0
- package/dist/components/notification/{hooks.js → hooks.mjs} +2 -2
- package/dist/components/notification/notification.cjs +279 -0
- package/dist/components/notification/{notification.js → notification.mjs} +14 -14
- package/dist/components/notification/notifier.cjs +73 -0
- package/dist/components/notification/{notifier.js → notifier.mjs} +2 -3
- package/dist/components/number-input/hooks.cjs +31 -0
- package/dist/components/number-input/number-input.cjs +40 -0
- package/dist/components/number-input/{number-input.js → number-input.mjs} +3 -4
- package/dist/components/otp-input/hooks.cjs +82 -0
- package/dist/components/otp-input/{hooks.js → hooks.mjs} +1 -1
- package/dist/components/otp-input/otp-input.cjs +89 -0
- package/dist/components/otp-input/{otp-input.js → otp-input.mjs} +3 -4
- package/dist/components/pagination/hooks.cjs +70 -0
- package/dist/components/pagination/{hooks.js → hooks.mjs} +1 -1
- package/dist/components/pagination/item.cjs +74 -0
- package/dist/components/pagination/{item.js → item.mjs} +7 -7
- package/dist/components/pagination/pagination.cjs +90 -0
- package/dist/components/pagination/{pagination.js → pagination.mjs} +8 -9
- package/dist/components/pagination/types.cjs +11 -0
- package/dist/components/picker/context.cjs +9 -0
- package/dist/components/picker/context.d.ts +1 -1
- package/dist/components/picker/index.d.ts +1 -2
- package/dist/components/picker/picker.cjs +123 -0
- package/dist/components/picker/picker.d.ts +1 -1
- package/dist/components/picker/{picker.js → picker.mjs} +16 -14
- package/dist/components/popconfirm/popconfirm.cjs +148 -0
- package/dist/components/popconfirm/{popconfirm.js → popconfirm.mjs} +13 -14
- package/dist/components/popconfirm/types.d.ts +1 -1
- package/dist/components/popover/hooks.cjs +64 -0
- package/dist/components/popover/{hooks.js → hooks.mjs} +1 -1
- package/dist/components/popover/popover.cjs +154 -0
- package/dist/components/popover/{popover.js → popover.mjs} +9 -10
- package/dist/components/popover/types.d.ts +1 -1
- package/dist/components/popper/dropdown.cjs +135 -0
- package/dist/components/popper/{dropdown.js → dropdown.mjs} +11 -11
- package/dist/components/popper/hooks.cjs +187 -0
- package/dist/components/popper/{hooks.js → hooks.mjs} +1 -1
- package/dist/components/popper/popper.cjs +26 -0
- package/dist/components/popper/{popper.js → popper.mjs} +2 -2
- package/dist/components/popper/types.d.ts +1 -1
- package/dist/components/portal/portal.cjs +39 -0
- package/dist/components/portal/{portal.js → portal.mjs} +1 -1
- package/dist/components/progress/circular.cjs +86 -0
- package/dist/components/progress/{circular.js → circular.mjs} +5 -5
- package/dist/components/progress/hooks.cjs +48 -0
- package/dist/components/progress/linear.cjs +85 -0
- package/dist/components/progress/{linear.js → linear.mjs} +7 -7
- package/dist/components/progress/progress.cjs +22 -0
- package/dist/components/progress/{progress.js → progress.mjs} +3 -4
- package/dist/components/progress/types.d.ts +1 -1
- package/dist/components/quote/quote.cjs +30 -0
- package/dist/components/quote/{quote.js → quote.mjs} +9 -10
- package/dist/components/quote/styles.cjs +31 -0
- package/dist/components/quote/types.d.ts +1 -1
- package/dist/components/radio/context.cjs +7 -0
- package/dist/components/radio/group.cjs +37 -0
- package/dist/components/radio/{group.js → group.mjs} +1 -1
- package/dist/components/radio/index.cjs +8 -0
- package/dist/components/radio/{index.js → index.mjs} +2 -2
- package/dist/components/radio/radio.cjs +241 -0
- package/dist/components/radio/{radio.js → radio.mjs} +13 -13
- package/dist/components/radio/types.d.ts +1 -1
- package/dist/components/rate/hooks.cjs +59 -0
- package/dist/components/rate/rate.cjs +66 -0
- package/dist/components/rate/{rate.js → rate.mjs} +7 -8
- package/dist/components/rate/star.cjs +147 -0
- package/dist/components/rate/{star.js → star.mjs} +9 -9
- package/dist/components/rate/types.d.ts +1 -1
- package/dist/components/rich-text-editor/dropdown.cjs +80 -0
- package/dist/components/rich-text-editor/dropdown.d.ts +1 -1
- package/dist/components/rich-text-editor/{dropdown.js → dropdown.mjs} +4 -4
- package/dist/components/rich-text-editor/index.cjs +15 -0
- package/dist/components/rich-text-editor/index.d.ts +9 -2
- package/dist/components/rich-text-editor/index.mjs +15 -0
- package/dist/components/rich-text-editor/nodes/checkable-list-item.cjs +89 -0
- package/dist/components/rich-text-editor/plugins/check-list/index.cjs +49 -0
- package/dist/components/rich-text-editor/plugins/controlled-state/index.cjs +53 -0
- package/dist/components/rich-text-editor/plugins/controlled-state/index.d.ts +6 -3
- package/dist/components/rich-text-editor/plugins/controlled-state/{index.js → index.mjs} +15 -7
- package/dist/components/rich-text-editor/plugins/floating-link-editor/index.cjs +123 -0
- package/dist/components/rich-text-editor/plugins/floating-link-editor/{index.js → index.mjs} +10 -10
- package/dist/components/rich-text-editor/plugins/markdown-shortcut/index.cjs +16 -0
- package/dist/components/rich-text-editor/plugins/markdown-shortcut/{index.js → index.mjs} +3 -4
- package/dist/components/rich-text-editor/plugins/toolbar/hooks.cjs +265 -0
- package/dist/components/rich-text-editor/plugins/toolbar/hooks.d.ts +3 -3
- package/dist/components/rich-text-editor/plugins/toolbar/{hooks.js → hooks.mjs} +11 -11
- package/dist/components/rich-text-editor/plugins/toolbar/index.cjs +218 -0
- package/dist/components/rich-text-editor/plugins/toolbar/{index.js → index.mjs} +17 -17
- package/dist/components/rich-text-editor/rich-text-editor.cjs +220 -0
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +9 -2
- package/dist/components/rich-text-editor/{rich-text-editor.js → rich-text-editor.mjs} +32 -25
- package/dist/components/rich-text-editor/utils/get-element-by-node.cjs +8 -0
- package/dist/components/ripple/hooks.cjs +53 -0
- package/dist/components/ripple/ripple.cjs +93 -0
- package/dist/components/ripple/{ripple.js → ripple.mjs} +2 -2
- package/dist/components/select/hooks.cjs +120 -0
- package/dist/components/select/hooks.d.ts +5 -5
- package/dist/components/select/{hooks.js → hooks.mjs} +27 -52
- package/dist/components/select/select.cjs +97 -0
- package/dist/components/select/select.d.ts +2 -2
- package/dist/components/select/{select.js → select.mjs} +19 -14
- package/dist/components/select/selections.cjs +41 -0
- package/dist/components/select/selections.d.ts +1 -1
- package/dist/components/select/{selections.js → selections.mjs} +3 -3
- package/dist/components/select/selector.cjs +94 -0
- package/dist/components/select/selector.d.ts +1 -1
- package/dist/components/select/{selector.js → selector.mjs} +32 -20
- package/dist/components/select/utils.cjs +67 -0
- package/dist/components/select/utils.d.ts +3 -3
- package/dist/components/skeleton/skeleton.cjs +101 -0
- package/dist/components/skeleton/{skeleton.js → skeleton.mjs} +5 -6
- package/dist/components/skeleton/types.d.ts +1 -1
- package/dist/components/space/space.cjs +61 -0
- package/dist/components/space/{space.js → space.mjs} +4 -5
- package/dist/components/space/types.d.ts +1 -1
- package/dist/components/steps/context.cjs +9 -0
- package/dist/components/steps/item.cjs +237 -0
- package/dist/components/steps/{item.js → item.mjs} +10 -10
- package/dist/components/steps/steps.cjs +78 -0
- package/dist/components/steps/{steps.js → steps.mjs} +7 -8
- package/dist/components/steps/types.d.ts +1 -1
- package/dist/components/switch/switch.cjs +311 -0
- package/dist/components/switch/{switch.js → switch.mjs} +15 -16
- package/dist/components/switch/types.d.ts +1 -1
- package/dist/components/table/body.cjs +92 -0
- package/dist/components/table/{body.js → body.mjs} +7 -7
- package/dist/components/table/context.cjs +18 -0
- package/dist/components/table/context.d.ts +1 -1
- package/dist/components/table/header/cell.cjs +134 -0
- package/dist/components/table/header/cell.d.ts +2 -2
- package/dist/components/table/header/{cell.js → cell.mjs} +12 -13
- package/dist/components/table/header/header.cjs +109 -0
- package/dist/components/table/header/header.d.ts +1 -1
- package/dist/components/table/header/{header.js → header.mjs} +8 -8
- package/dist/components/table/hooks.cjs +75 -0
- package/dist/components/table/hooks.d.ts +3 -3
- package/dist/components/table/{hooks.js → hooks.mjs} +4 -3
- package/dist/components/table/index.d.ts +0 -2
- package/dist/components/table/table.cjs +41 -0
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/{table.js → table.mjs} +5 -6
- package/dist/components/tabs/context.cjs +7 -0
- package/dist/components/tabs/hooks.cjs +134 -0
- package/dist/components/tabs/{hooks.js → hooks.mjs} +1 -1
- package/dist/components/tabs/navigation.cjs +168 -0
- package/dist/components/tabs/{navigation.js → navigation.mjs} +8 -8
- package/dist/components/tabs/panels.cjs +88 -0
- package/dist/components/tabs/{panels.js → panels.mjs} +5 -5
- package/dist/components/tabs/tab.cjs +35 -0
- package/dist/components/tabs/{tab.js → tab.mjs} +5 -5
- package/dist/components/tabs/tabs.cjs +56 -0
- package/dist/components/tabs/{tabs.js → tabs.mjs} +8 -9
- package/dist/components/tabs/types.d.ts +1 -1
- package/dist/components/tag/tag.cjs +123 -0
- package/dist/components/tag/{tag.js → tag.mjs} +10 -11
- package/dist/components/tag/types.d.ts +1 -1
- package/dist/components/theme/hooks.cjs +218 -0
- package/dist/components/theme/{hooks.js → hooks.mjs} +2 -2
- package/dist/components/theme/theme-provider.cjs +36 -0
- package/dist/components/theme/{theme-provider.js → theme-provider.mjs} +2 -3
- package/dist/components/theme/theme.cjs +145 -0
- package/dist/components/theme/tokens.stylex.cjs +64 -0
- package/dist/components/time-picker/hooks.cjs +31 -0
- package/dist/components/time-picker/hooks.d.ts +1 -1
- package/dist/components/time-picker/panel.cjs +105 -0
- package/dist/components/time-picker/{panel.js → panel.mjs} +15 -15
- package/dist/components/time-picker/time-picker.cjs +64 -0
- package/dist/components/time-picker/{time-picker.js → time-picker.mjs} +12 -13
- package/dist/components/time-picker/types.d.ts +1 -1
- package/dist/components/timeline/context.cjs +8 -0
- package/dist/components/timeline/item.cjs +220 -0
- package/dist/components/timeline/{item.js → item.mjs} +8 -8
- package/dist/components/timeline/timeline.cjs +44 -0
- package/dist/components/timeline/{timeline.js → timeline.mjs} +6 -7
- package/dist/components/tooltip/tooltip.cjs +24 -0
- package/dist/components/tooltip/{tooltip.js → tooltip.mjs} +5 -6
- package/dist/components/tooltip/types.d.ts +1 -1
- package/dist/components/tour/hooks.cjs +47 -0
- package/dist/components/tour/hooks.d.ts +1 -1
- package/dist/components/tour/index.d.ts +0 -2
- package/dist/components/tour/spotlight.cjs +65 -0
- package/dist/components/tour/spotlight.d.ts +1 -1
- package/dist/components/tour/{spotlight.js → spotlight.mjs} +3 -3
- package/dist/components/tour/tour.cjs +171 -0
- package/dist/components/tour/tour.d.ts +1 -1
- package/dist/components/tour/{tour.js → tour.mjs} +16 -17
- package/dist/components/transfer/context.cjs +11 -0
- package/dist/components/transfer/hooks.cjs +72 -0
- package/dist/components/transfer/item.cjs +27 -0
- package/dist/components/transfer/{item.js → item.mjs} +4 -4
- package/dist/components/transfer/list.cjs +132 -0
- package/dist/components/transfer/{list.js → list.mjs} +11 -11
- package/dist/components/transfer/transfer.cjs +82 -0
- package/dist/components/transfer/{transfer.js → transfer.mjs} +10 -11
- package/dist/components/transfer/types.d.ts +2 -2
- package/dist/components/tree/context.cjs +12 -0
- package/dist/components/tree/context.d.ts +1 -1
- package/dist/components/tree/hooks.cjs +67 -0
- package/dist/components/tree/hooks.d.ts +1 -1
- package/dist/components/tree/index.d.ts +1 -2
- package/dist/components/tree/list.cjs +97 -0
- package/dist/components/tree/list.d.ts +1 -1
- package/dist/components/tree/{list.js → list.mjs} +8 -8
- package/dist/components/tree/node.cjs +153 -0
- package/dist/components/tree/node.d.ts +1 -1
- package/dist/components/tree/{node.js → node.mjs} +14 -14
- package/dist/components/tree/tree.cjs +68 -0
- package/dist/components/tree/tree.d.ts +1 -1
- package/dist/components/tree/{tree.js → tree.mjs} +4 -5
- package/dist/components/upload/upload.cjs +80 -0
- package/dist/components/upload/{upload.js → upload.mjs} +3 -4
- package/dist/components/upload/uploadeds.cjs +116 -0
- package/dist/components/upload/{uploadeds.js → uploadeds.mjs} +3 -3
- package/dist/components/visually-hidden/visually-hidden.cjs +21 -0
- package/dist/components/visually-hidden/{visually-hidden.js → visually-hidden.mjs} +4 -5
- package/dist/components/waterfall/hooks.cjs +60 -0
- package/dist/components/waterfall/sequential.cjs +73 -0
- package/dist/components/waterfall/{sequential.js → sequential.mjs} +2 -2
- package/dist/components/waterfall/types.d.ts +1 -1
- package/dist/components/waterfall/waterfall.cjs +152 -0
- package/dist/components/waterfall/{waterfall.js → waterfall.mjs} +10 -11
- package/dist/components/watermark/hooks.cjs +154 -0
- package/dist/components/watermark/watermark.cjs +86 -0
- package/dist/components/watermark/{watermark.js → watermark.mjs} +2 -3
- package/dist/hooks/use-class-names.cjs +12 -0
- package/dist/hooks/use-class-names.d.ts +1 -0
- package/dist/hooks/{use-class-names.js → use-class-names.mjs} +1 -1
- package/dist/hooks/use-closable.cjs +61 -0
- package/dist/hooks/use-closable.d.ts +1 -1
- package/dist/hooks/{use-closable.js → use-closable.mjs} +3 -3
- package/dist/hooks/use-container.cjs +28 -0
- package/dist/hooks/use-expandable.cjs +74 -0
- package/dist/hooks/use-gutters.cjs +13 -0
- package/dist/hooks/use-lazy-boolean.cjs +64 -0
- package/dist/index.cjs +130 -0
- package/dist/index.d.ts +2 -13
- package/dist/index.mjs +64 -0
- package/dist/locale/context.cjs +6 -0
- package/dist/locale/context.d.ts +1 -1
- package/dist/locale/context.mjs +6 -0
- package/dist/locale/index.d.ts +1 -2
- package/dist/locale/locales/en_US.cjs +34 -0
- package/dist/locale/locales/en_US.d.ts +1 -1
- package/dist/locale/locales/{en_US.js → en_US.mjs} +3 -5
- package/dist/locale/locales/index.cjs +7 -0
- package/dist/locale/locales/index.mjs +2 -0
- package/dist/locale/locales/zh_CN.cjs +34 -0
- package/dist/locale/locales/zh_CN.d.ts +1 -1
- package/dist/locale/locales/{zh_CN.js → zh_CN.mjs} +3 -5
- package/dist/locale/use-locale.cjs +12 -0
- package/dist/locale/use-locale.d.ts +1 -1
- package/dist/locale/{use-locale.js → use-locale.mjs} +1 -1
- package/dist/node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.cjs +306 -0
- package/dist/styles.css +2 -6
- package/dist/{components/bench/types.d.ts → types/bench.d.ts} +5 -5
- package/dist/{components/form/types.d.ts → types/form.d.ts} +12 -2
- package/dist/{locale/types.d.ts → types/locale.d.ts} +1 -4
- package/dist/{components/menu/types.d.ts → types/menu.d.ts} +2 -2
- package/dist/{components/picker/types.d.ts → types/picker.d.ts} +3 -3
- package/dist/{components/rich-text-editor/types.d.ts → types/rich-text-editor.d.ts} +16 -6
- package/dist/{components/select/types.d.ts → types/select.d.ts} +12 -6
- package/dist/{components/table/types.d.ts → types/table.d.ts} +10 -5
- package/dist/{components/tour/types.d.ts → types/tour.d.ts} +1 -1
- package/dist/{components/tree/types.d.ts → types/tree.d.ts} +1 -1
- package/dist/utils/class-name.cjs +357 -0
- package/dist/utils/class-name.d.ts +4 -1
- package/dist/utils/{class-name.js → class-name.mjs} +4 -3
- package/dist/utils/colors.cjs +72 -0
- package/dist/utils/component-token.cjs +54 -0
- package/dist/utils/keyboard.cjs +12 -0
- package/dist/utils/layer.cjs +23 -0
- package/dist/utils/styles.cjs +15 -0
- package/dist/utils/timespan.cjs +52 -0
- package/package.json +28 -47
- package/dist/components/form/field/field.js +0 -88
- package/dist/components/form/field/layout.js +0 -65
- package/dist/components/form/index.js +0 -10
- package/dist/components/icon/icons/action/index.js +0 -13
- package/dist/components/icon/icons/alert/index.js +0 -7
- package/dist/components/icon/icons/content/index.js +0 -5
- package/dist/components/icon/icons/editor/index.js +0 -9
- package/dist/components/icon/icons/image/index.js +0 -11
- package/dist/components/icon/icons/index.js +0 -61
- package/dist/components/icon/icons/mock/index.js +0 -2
- package/dist/components/icon/icons/navigation/index.js +0 -5
- package/dist/components/icon/icons/toggle/index.js +0 -3
- package/dist/components/layout/index.js +0 -13
- package/dist/components/rich-text-editor/index.js +0 -12
- package/dist/index.js +0 -64
- package/dist/locale/context.js +0 -6
- package/dist/locale/locales/index.js +0 -2
- package/dist/locale/types.js +0 -7
- /package/dist/components/avatar/{context.js → context.mjs} +0 -0
- /package/dist/components/cascader/{utils.js → utils.mjs} +0 -0
- /package/dist/components/checkbox/{context.js → context.mjs} +0 -0
- /package/dist/components/clock/{types.js → types.mjs} +0 -0
- /package/dist/components/collapse/{context.js → context.mjs} +0 -0
- /package/dist/components/collapse/{hooks.js → hooks.mjs} +0 -0
- /package/dist/components/date-picker/{hooks.js → hooks.mjs} +0 -0
- /package/dist/components/date-range-picker/{hooks.js → hooks.mjs} +0 -0
- /package/dist/components/divider/{hooks.js → hooks.mjs} +0 -0
- /package/dist/components/drawer/{hooks.js → hooks.mjs} +0 -0
- /package/dist/components/form/{hooks.js → hooks.mjs} +0 -0
- /package/dist/components/image/preview/{context.js → context.mjs} +0 -0
- /package/dist/components/input/{hooks.js → hooks.mjs} +0 -0
- /package/dist/components/layout/{footer.js → footer.mjs} +0 -0
- /package/dist/components/layout/{main.js → main.mjs} +0 -0
- /package/dist/components/menu/{context.js → context.mjs} +0 -0
- /package/dist/components/number-input/{hooks.js → hooks.mjs} +0 -0
- /package/dist/components/pagination/{types.js → types.mjs} +0 -0
- /package/dist/components/picker/{context.js → context.mjs} +0 -0
- /package/dist/components/progress/{hooks.js → hooks.mjs} +0 -0
- /package/dist/components/quote/{styles.js → styles.mjs} +0 -0
- /package/dist/components/radio/{context.js → context.mjs} +0 -0
- /package/dist/components/rate/{hooks.js → hooks.mjs} +0 -0
- /package/dist/components/rich-text-editor/nodes/{checkable-list-item.js → checkable-list-item.mjs} +0 -0
- /package/dist/components/rich-text-editor/plugins/check-list/{index.js → index.mjs} +0 -0
- /package/dist/components/rich-text-editor/utils/{get-element-by-node.js → get-element-by-node.mjs} +0 -0
- /package/dist/components/ripple/{hooks.js → hooks.mjs} +0 -0
- /package/dist/components/select/{utils.js → utils.mjs} +0 -0
- /package/dist/components/steps/{context.js → context.mjs} +0 -0
- /package/dist/components/table/{context.js → context.mjs} +0 -0
- /package/dist/components/tabs/{context.js → context.mjs} +0 -0
- /package/dist/components/theme/{theme.js → theme.mjs} +0 -0
- /package/dist/components/theme/{tokens.stylex.js → tokens.stylex.mjs} +0 -0
- /package/dist/components/time-picker/{hooks.js → hooks.mjs} +0 -0
- /package/dist/components/timeline/{context.js → context.mjs} +0 -0
- /package/dist/components/tour/{hooks.js → hooks.mjs} +0 -0
- /package/dist/components/transfer/{context.js → context.mjs} +0 -0
- /package/dist/components/transfer/{hooks.js → hooks.mjs} +0 -0
- /package/dist/components/tree/{context.js → context.mjs} +0 -0
- /package/dist/components/tree/{hooks.js → hooks.mjs} +0 -0
- /package/dist/components/waterfall/{hooks.js → hooks.mjs} +0 -0
- /package/dist/components/watermark/{hooks.js → hooks.mjs} +0 -0
- /package/dist/hooks/{use-container.js → use-container.mjs} +0 -0
- /package/dist/hooks/{use-expandable.js → use-expandable.mjs} +0 -0
- /package/dist/hooks/{use-gutters.js → use-gutters.mjs} +0 -0
- /package/dist/hooks/{use-lazy-boolean.js → use-lazy-boolean.mjs} +0 -0
- /package/dist/node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/{stylex.js → stylex.mjs} +0 -0
- /package/dist/utils/{colors.js → colors.mjs} +0 -0
- /package/dist/utils/{component-token.js → component-token.mjs} +0 -0
- /package/dist/utils/{keyboard.js → keyboard.mjs} +0 -0
- /package/dist/utils/{layer.js → layer.mjs} +0 -0
- /package/dist/utils/{styles.js → styles.mjs} +0 -0
- /package/dist/utils/{timespan.js → timespan.mjs} +0 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
|
|
3
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
4
|
+
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var className = require('../../utils/class-name.cjs');
|
|
7
|
+
var relax = require('@aiszlab/relax');
|
|
8
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
9
|
+
var hooks = require('../theme/hooks.cjs');
|
|
10
|
+
var hooks$1 = require('./hooks.cjs');
|
|
11
|
+
var ripple = require('../ripple/ripple.cjs');
|
|
12
|
+
var theme = require('../theme/theme.cjs');
|
|
13
|
+
var colors = require('../../utils/colors.cjs');
|
|
14
|
+
var layer = require('../../utils/layer.cjs');
|
|
15
|
+
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
16
|
+
var componentToken = require('../../utils/component-token.cjs');
|
|
17
|
+
|
|
18
|
+
var _excluded = ["children", "className", "style", "color", "size", "variant", "shape", "disabled", "ripple", "type", "onClick", "prefix", "suffix"];
|
|
19
|
+
var styles = {
|
|
20
|
+
button: {
|
|
21
|
+
position: "musaex-1n2onr6",
|
|
22
|
+
overflow: "musaex-b3r6kr",
|
|
23
|
+
overflowX: null,
|
|
24
|
+
overflowY: null,
|
|
25
|
+
display: "musaex-3nfvp2",
|
|
26
|
+
alignItems: "musaex-6s0dn4",
|
|
27
|
+
justifyContent: "musaex-l56j7k",
|
|
28
|
+
gap: "musaex-1lsrmdg",
|
|
29
|
+
rowGap: null,
|
|
30
|
+
columnGap: null,
|
|
31
|
+
whiteSpace: "musaex-uxw1ft",
|
|
32
|
+
transitionProperty: "musaex-fagghw",
|
|
33
|
+
transitionDuration: "musaex-1d8287x",
|
|
34
|
+
willChange: "musaex-19v51jg",
|
|
35
|
+
flexShrink: "musaex-2lah0s",
|
|
36
|
+
$$css: true
|
|
37
|
+
},
|
|
38
|
+
small: {
|
|
39
|
+
paddingBlock: "musaex-133qg4p",
|
|
40
|
+
paddingTop: null,
|
|
41
|
+
paddingBottom: null,
|
|
42
|
+
paddingInline: "musaex-n18ftv",
|
|
43
|
+
paddingStart: null,
|
|
44
|
+
paddingLeft: null,
|
|
45
|
+
paddingEnd: null,
|
|
46
|
+
paddingRight: null,
|
|
47
|
+
minHeight: "musaex-1ite1z3",
|
|
48
|
+
minWidth: "musaex-8pi1lr",
|
|
49
|
+
$$css: true
|
|
50
|
+
},
|
|
51
|
+
medium: {
|
|
52
|
+
paddingBlock: "musaex-15v7278",
|
|
53
|
+
paddingTop: null,
|
|
54
|
+
paddingBottom: null,
|
|
55
|
+
paddingInline: "musaex-ei3nwd",
|
|
56
|
+
paddingStart: null,
|
|
57
|
+
paddingLeft: null,
|
|
58
|
+
paddingEnd: null,
|
|
59
|
+
paddingRight: null,
|
|
60
|
+
minHeight: "musaex-1p0x9m9",
|
|
61
|
+
minWidth: "musaex-qt0gpg",
|
|
62
|
+
$$css: true
|
|
63
|
+
},
|
|
64
|
+
large: {
|
|
65
|
+
paddingBlock: "musaex-qhkzqn",
|
|
66
|
+
paddingTop: null,
|
|
67
|
+
paddingBottom: null,
|
|
68
|
+
paddingInline: "musaex-1mavw9y",
|
|
69
|
+
paddingStart: null,
|
|
70
|
+
paddingLeft: null,
|
|
71
|
+
paddingEnd: null,
|
|
72
|
+
paddingRight: null,
|
|
73
|
+
minHeight: "musaex-1fdzm4i",
|
|
74
|
+
minWidth: "musaex-sffz45",
|
|
75
|
+
$$css: true
|
|
76
|
+
},
|
|
77
|
+
circular: {
|
|
78
|
+
borderRadius: "musaex-z7qqyb",
|
|
79
|
+
borderStartStartRadius: null,
|
|
80
|
+
borderStartEndRadius: null,
|
|
81
|
+
borderEndStartRadius: null,
|
|
82
|
+
borderEndEndRadius: null,
|
|
83
|
+
borderTopLeftRadius: null,
|
|
84
|
+
borderTopRightRadius: null,
|
|
85
|
+
borderBottomLeftRadius: null,
|
|
86
|
+
borderBottomRightRadius: null,
|
|
87
|
+
padding: null,
|
|
88
|
+
paddingInline: null,
|
|
89
|
+
paddingStart: null,
|
|
90
|
+
paddingLeft: null,
|
|
91
|
+
paddingEnd: null,
|
|
92
|
+
paddingRight: null,
|
|
93
|
+
paddingBlock: null,
|
|
94
|
+
paddingTop: null,
|
|
95
|
+
paddingBottom: null,
|
|
96
|
+
aspectRatio: "musaex-1plog1",
|
|
97
|
+
justifyContent: "musaex-l56j7k",
|
|
98
|
+
$$css: true
|
|
99
|
+
},
|
|
100
|
+
rounded: {
|
|
101
|
+
borderRadius: "musaex-z7qqyb",
|
|
102
|
+
borderStartStartRadius: null,
|
|
103
|
+
borderStartEndRadius: null,
|
|
104
|
+
borderEndStartRadius: null,
|
|
105
|
+
borderEndEndRadius: null,
|
|
106
|
+
borderTopLeftRadius: null,
|
|
107
|
+
borderTopRightRadius: null,
|
|
108
|
+
borderBottomLeftRadius: null,
|
|
109
|
+
borderBottomRightRadius: null,
|
|
110
|
+
minWidth: null,
|
|
111
|
+
$$css: true
|
|
112
|
+
},
|
|
113
|
+
filled: function filled(props) {
|
|
114
|
+
return [{
|
|
115
|
+
border: "musaex-1gs6z28",
|
|
116
|
+
borderWidth: null,
|
|
117
|
+
borderInlineWidth: null,
|
|
118
|
+
borderInlineStartWidth: null,
|
|
119
|
+
borderLeftWidth: null,
|
|
120
|
+
borderInlineEndWidth: null,
|
|
121
|
+
borderRightWidth: null,
|
|
122
|
+
borderBlockWidth: null,
|
|
123
|
+
borderTopWidth: null,
|
|
124
|
+
borderBottomWidth: null,
|
|
125
|
+
borderStyle: null,
|
|
126
|
+
borderInlineStyle: null,
|
|
127
|
+
borderInlineStartStyle: null,
|
|
128
|
+
borderLeftStyle: null,
|
|
129
|
+
borderInlineEndStyle: null,
|
|
130
|
+
borderRightStyle: null,
|
|
131
|
+
borderBlockStyle: null,
|
|
132
|
+
borderTopStyle: null,
|
|
133
|
+
borderBottomStyle: null,
|
|
134
|
+
borderColor: null,
|
|
135
|
+
borderInlineColor: null,
|
|
136
|
+
borderInlineStartColor: null,
|
|
137
|
+
borderLeftColor: null,
|
|
138
|
+
borderInlineEndColor: null,
|
|
139
|
+
borderRightColor: null,
|
|
140
|
+
borderBlockColor: null,
|
|
141
|
+
borderTopColor: null,
|
|
142
|
+
borderBottomColor: null,
|
|
143
|
+
backgroundColor: "musaex-q1mx2j",
|
|
144
|
+
color: "musaex-19dipnz",
|
|
145
|
+
boxShadow: "musaex-1nadr2t",
|
|
146
|
+
$$css: true
|
|
147
|
+
}, {
|
|
148
|
+
"--backgroundColor": props.backgroundColor != null ? props.backgroundColor : "initial",
|
|
149
|
+
"--color": props.color != null ? props.color : "initial"
|
|
150
|
+
}];
|
|
151
|
+
},
|
|
152
|
+
outlined: function outlined(props) {
|
|
153
|
+
return [{
|
|
154
|
+
borderWidth: "musaex-bupo1m",
|
|
155
|
+
borderInlineWidth: null,
|
|
156
|
+
borderInlineStartWidth: null,
|
|
157
|
+
borderLeftWidth: null,
|
|
158
|
+
borderInlineEndWidth: null,
|
|
159
|
+
borderRightWidth: null,
|
|
160
|
+
borderBlockWidth: null,
|
|
161
|
+
borderTopWidth: null,
|
|
162
|
+
borderBottomWidth: null,
|
|
163
|
+
borderStyle: "musaex-1y0btm7",
|
|
164
|
+
borderInlineStyle: null,
|
|
165
|
+
borderInlineStartStyle: null,
|
|
166
|
+
borderLeftStyle: null,
|
|
167
|
+
borderInlineEndStyle: null,
|
|
168
|
+
borderRightStyle: null,
|
|
169
|
+
borderBlockStyle: null,
|
|
170
|
+
borderTopStyle: null,
|
|
171
|
+
borderBottomStyle: null,
|
|
172
|
+
borderColor: "musaex-eqt46j",
|
|
173
|
+
borderInlineColor: null,
|
|
174
|
+
borderInlineStartColor: null,
|
|
175
|
+
borderLeftColor: null,
|
|
176
|
+
borderInlineEndColor: null,
|
|
177
|
+
borderRightColor: null,
|
|
178
|
+
borderBlockColor: null,
|
|
179
|
+
borderTopColor: null,
|
|
180
|
+
borderBottomColor: null,
|
|
181
|
+
color: "musaex-19dipnz",
|
|
182
|
+
backgroundColor: "musaex-rl4t6d",
|
|
183
|
+
$$css: true
|
|
184
|
+
}, {
|
|
185
|
+
"--borderColor": props.color != null ? props.color : "initial",
|
|
186
|
+
"--color": props.color != null ? props.color : "initial",
|
|
187
|
+
"--1e2mv7m": props.hoveredBackgroundColor != null ? props.hoveredBackgroundColor : "initial"
|
|
188
|
+
}];
|
|
189
|
+
},
|
|
190
|
+
text: function text(props) {
|
|
191
|
+
return [{
|
|
192
|
+
color: "musaex-19dipnz",
|
|
193
|
+
backgroundColor: "musaex-rl4t6d",
|
|
194
|
+
$$css: true
|
|
195
|
+
}, {
|
|
196
|
+
"--color": props.color != null ? props.color : "initial",
|
|
197
|
+
"--1e2mv7m": props.hoveredBackgroundColor != null ? props.hoveredBackgroundColor : "initial"
|
|
198
|
+
}];
|
|
199
|
+
},
|
|
200
|
+
disabled: function disabled(props) {
|
|
201
|
+
return [{
|
|
202
|
+
backgroundColor: "musaex-q1mx2j",
|
|
203
|
+
color: "musaex-19dipnz",
|
|
204
|
+
cursor: "musaex-1h6gzvc",
|
|
205
|
+
boxShadow: null,
|
|
206
|
+
borderColor: "musaex-eqt46j",
|
|
207
|
+
borderInlineColor: null,
|
|
208
|
+
borderInlineStartColor: null,
|
|
209
|
+
borderLeftColor: null,
|
|
210
|
+
borderInlineEndColor: null,
|
|
211
|
+
borderRightColor: null,
|
|
212
|
+
borderBlockColor: null,
|
|
213
|
+
borderTopColor: null,
|
|
214
|
+
borderBottomColor: null,
|
|
215
|
+
$$css: true
|
|
216
|
+
}, {
|
|
217
|
+
"--backgroundColor": props.backgroundColor != null ? props.backgroundColor : "initial",
|
|
218
|
+
"--color": props.color != null ? props.color : "initial",
|
|
219
|
+
"--borderColor": props.outlineColor != null ? props.outlineColor : "initial"
|
|
220
|
+
}];
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* @author murukal
|
|
225
|
+
*
|
|
226
|
+
* @description
|
|
227
|
+
* button
|
|
228
|
+
* 1. diff from normal html button, this button is default type `button`, not `submit`
|
|
229
|
+
*/
|
|
230
|
+
var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
231
|
+
var children = _ref.children,
|
|
232
|
+
className$1 = _ref.className,
|
|
233
|
+
style = _ref.style,
|
|
234
|
+
_ref$color = _ref.color,
|
|
235
|
+
color = _ref$color === void 0 ? "primary" : _ref$color,
|
|
236
|
+
_ref$size = _ref.size,
|
|
237
|
+
size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
238
|
+
_ref$variant = _ref.variant,
|
|
239
|
+
variant = _ref$variant === void 0 ? "filled" : _ref$variant,
|
|
240
|
+
_ref$shape = _ref.shape,
|
|
241
|
+
shape = _ref$shape === void 0 ? "rounded" : _ref$shape,
|
|
242
|
+
_ref$disabled = _ref.disabled,
|
|
243
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
244
|
+
_ref$ripple = _ref.ripple,
|
|
245
|
+
ripple$1 = _ref$ripple === void 0 ? true : _ref$ripple,
|
|
246
|
+
_ref$type = _ref.type,
|
|
247
|
+
type = _ref$type === void 0 ? "button" : _ref$type,
|
|
248
|
+
_onClick = _ref.onClick,
|
|
249
|
+
prefix = _ref.prefix,
|
|
250
|
+
suffix = _ref.suffix,
|
|
251
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
252
|
+
var classNames = useClassNames.useClassNames(componentToken.ComponentToken.Button);
|
|
253
|
+
var theme$1 = hooks.useTheme();
|
|
254
|
+
var _useButton = hooks$1.useButton({
|
|
255
|
+
onClick: _onClick
|
|
256
|
+
}),
|
|
257
|
+
onClick = _useButton.onClick,
|
|
258
|
+
clear = _useButton.clear,
|
|
259
|
+
ripples = _useButton.ripples;
|
|
260
|
+
var styled = {
|
|
261
|
+
button: stylex.default.props(styles.button, theme.typography.label[size],
|
|
262
|
+
// size
|
|
263
|
+
styles[size],
|
|
264
|
+
// variant
|
|
265
|
+
variant === "filled" && styles.filled({
|
|
266
|
+
backgroundColor: theme$1.colors[color],
|
|
267
|
+
color: theme$1.colors["on-".concat(color)]
|
|
268
|
+
}), variant === "outlined" && styles.outlined({
|
|
269
|
+
color: theme$1.colors[color],
|
|
270
|
+
hoveredBackgroundColor: layer.layer(theme$1.colors[colors.ColorToken.Primary], "thin")
|
|
271
|
+
}), variant === "text" && styles.text({
|
|
272
|
+
color: theme$1.colors[color],
|
|
273
|
+
hoveredBackgroundColor: layer.layer(theme$1.colors[colors.ColorToken.Primary], "thin")
|
|
274
|
+
}),
|
|
275
|
+
// shape
|
|
276
|
+
styles[shape],
|
|
277
|
+
// disabled
|
|
278
|
+
disabled && styles.disabled({
|
|
279
|
+
backgroundColor: variant === "filled" ? layer.layer(theme$1.colors[colors.ColorToken.OnSurface], "medium") : "transparent",
|
|
280
|
+
color: layer.layer(theme$1.colors[colors.ColorToken.OnSurface], "thicker"),
|
|
281
|
+
outlineColor: variant === "outlined" ? layer.layer(theme$1.colors[colors.ColorToken.OnSurface], "thicker") : null
|
|
282
|
+
}))
|
|
283
|
+
};
|
|
284
|
+
return /*#__PURE__*/React.createElement("button", _objectSpread({
|
|
285
|
+
onClick: onClick,
|
|
286
|
+
ref: ref,
|
|
287
|
+
disabled: disabled,
|
|
288
|
+
className: relax.clsx(classNames[className.ButtonClassToken.Button], className$1, styled.button.className),
|
|
289
|
+
style: _objectSpread(_objectSpread({}, styled.button.style), style),
|
|
290
|
+
type: type
|
|
291
|
+
}, props), prefix, children, suffix, ripple$1 && /*#__PURE__*/React.createElement(ripple.default, {
|
|
292
|
+
ripples: ripples,
|
|
293
|
+
onClear: clear
|
|
294
|
+
}));
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
exports.Button = Button;
|
|
298
|
+
exports.default = Button;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import React, { forwardRef } from 'react';
|
|
4
|
-
import { ButtonClassToken } from '../../utils/class-name.
|
|
4
|
+
import { ButtonClassToken } from '../../utils/class-name.mjs';
|
|
5
5
|
import { clsx } from '@aiszlab/relax';
|
|
6
|
-
import
|
|
7
|
-
import { useTheme } from '../theme/hooks.
|
|
8
|
-
import { useButton } from './hooks.
|
|
9
|
-
import Ripple from '../ripple/ripple.
|
|
10
|
-
import { typography } from '../theme/theme.
|
|
11
|
-
import { ColorToken } from '../../utils/colors.
|
|
12
|
-
import { layer } from '../../utils/layer.
|
|
13
|
-
import { useClassNames } from '../../hooks/use-class-names.
|
|
14
|
-
import { ComponentToken } from '../../utils/component-token.
|
|
6
|
+
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
7
|
+
import { useTheme } from '../theme/hooks.mjs';
|
|
8
|
+
import { useButton } from './hooks.mjs';
|
|
9
|
+
import Ripple from '../ripple/ripple.mjs';
|
|
10
|
+
import { typography } from '../theme/theme.mjs';
|
|
11
|
+
import { ColorToken } from '../../utils/colors.mjs';
|
|
12
|
+
import { layer } from '../../utils/layer.mjs';
|
|
13
|
+
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
14
|
+
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
15
15
|
|
|
16
16
|
var _excluded = ["children", "className", "style", "color", "size", "variant", "shape", "disabled", "ripple", "type", "onClick", "prefix", "suffix"];
|
|
17
17
|
var styles = {
|
|
@@ -22,6 +22,7 @@ var styles = {
|
|
|
22
22
|
overflowY: null,
|
|
23
23
|
display: "musaex-3nfvp2",
|
|
24
24
|
alignItems: "musaex-6s0dn4",
|
|
25
|
+
justifyContent: "musaex-l56j7k",
|
|
25
26
|
gap: "musaex-1lsrmdg",
|
|
26
27
|
rowGap: null,
|
|
27
28
|
columnGap: null,
|
|
@@ -245,7 +246,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
245
246
|
_onClick = _ref.onClick,
|
|
246
247
|
prefix = _ref.prefix,
|
|
247
248
|
suffix = _ref.suffix,
|
|
248
|
-
props
|
|
249
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
249
250
|
var classNames = useClassNames(ComponentToken.Button);
|
|
250
251
|
var theme = useTheme();
|
|
251
252
|
var _useButton = useButton({
|
|
@@ -255,7 +256,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
255
256
|
clear = _useButton.clear,
|
|
256
257
|
ripples = _useButton.ripples;
|
|
257
258
|
var styled = {
|
|
258
|
-
button: props(styles.button, typography.label[size],
|
|
259
|
+
button: _stylex.props(styles.button, typography.label[size],
|
|
259
260
|
// size
|
|
260
261
|
styles[size],
|
|
261
262
|
// variant
|
|
@@ -285,11 +286,10 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
285
286
|
className: clsx(classNames[ButtonClassToken.Button], className, styled.button.className),
|
|
286
287
|
style: _objectSpread(_objectSpread({}, styled.button.style), style),
|
|
287
288
|
type: type
|
|
288
|
-
}, props
|
|
289
|
+
}, props), prefix, children, suffix, ripple && /*#__PURE__*/React.createElement(Ripple, {
|
|
289
290
|
ripples: ripples,
|
|
290
291
|
onClear: clear
|
|
291
292
|
}));
|
|
292
293
|
});
|
|
293
|
-
var Button$1 = Button;
|
|
294
294
|
|
|
295
|
-
export { Button, Button
|
|
295
|
+
export { Button, Button as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var React = require('react');
|
|
2
|
+
var relax = require('@aiszlab/relax');
|
|
3
|
+
var hooks = require('../ripple/hooks.cjs');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* hooks for button component
|
|
8
|
+
*/
|
|
9
|
+
var useButton = function useButton(props) {
|
|
10
|
+
var _useRipple = hooks.useRipple(),
|
|
11
|
+
ripples = _useRipple.ripples,
|
|
12
|
+
add = _useRipple.add,
|
|
13
|
+
clear = _useRipple.clear;
|
|
14
|
+
var ripple = React.useCallback(function (e) {
|
|
15
|
+
add(e);
|
|
16
|
+
}, [add]);
|
|
17
|
+
return {
|
|
18
|
+
ripples: ripples,
|
|
19
|
+
onClick: relax.chain(props.onClick, ripple),
|
|
20
|
+
clear: clear
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
exports.useButton = useButton;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ButtonHTMLAttributes, MouseEventHandler, ReactNode } from "react";
|
|
2
|
-
import type { ComponentProps } from "
|
|
2
|
+
import type { ComponentProps } from "musae/types/element";
|
|
3
3
|
export type Variant = "filled" | "outlined" | "text";
|
|
4
4
|
export type Color = "primary" | "secondary" | "tertiary";
|
|
5
5
|
type Size = "small" | "medium" | "large";
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
|
|
3
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var hooks = require('./hooks.cjs');
|
|
6
|
+
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
7
|
+
var className = require('../../utils/class-name.cjs');
|
|
8
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
9
|
+
var theme = require('../theme/theme.cjs');
|
|
10
|
+
var relax = require('@aiszlab/relax');
|
|
11
|
+
var button = require('../button/button.cjs');
|
|
12
|
+
var hooks$1 = require('../theme/hooks.cjs');
|
|
13
|
+
var colors = require('../../utils/colors.cjs');
|
|
14
|
+
var componentToken = require('../../utils/component-token.cjs');
|
|
15
|
+
var keyboardDoubleArrowLeft = require('../icon/icons/hardware/keyboard-double-arrow-left.cjs');
|
|
16
|
+
var keyboardDoubleArrowRight = require('../icon/icons/hardware/keyboard-double-arrow-right.cjs');
|
|
17
|
+
var keyboardArrowLeft = require('../icon/icons/hardware/keyboard-arrow-left.cjs');
|
|
18
|
+
var keyboardArrowRight = require('../icon/icons/hardware/keyboard-arrow-right.cjs');
|
|
19
|
+
|
|
20
|
+
var styles = {
|
|
21
|
+
header: function header(props) {
|
|
22
|
+
return [{
|
|
23
|
+
display: "musaex-78zum5",
|
|
24
|
+
alignItems: "musaex-6s0dn4",
|
|
25
|
+
columnGap: "musaex-21kgnr",
|
|
26
|
+
paddingInline: "musaex-1dhq86w",
|
|
27
|
+
paddingStart: null,
|
|
28
|
+
paddingLeft: null,
|
|
29
|
+
paddingEnd: null,
|
|
30
|
+
paddingRight: null,
|
|
31
|
+
color: "musaex-19dipnz",
|
|
32
|
+
$$css: true
|
|
33
|
+
}, {
|
|
34
|
+
"--color": props.color != null ? props.color : "initial"
|
|
35
|
+
}];
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var Calendar = function Calendar(_ref) {
|
|
39
|
+
var className$1 = _ref.className,
|
|
40
|
+
style = _ref.style,
|
|
41
|
+
value = _ref.value,
|
|
42
|
+
_onClick = _ref.onClick,
|
|
43
|
+
_focusedAt = _ref.focusedAt;
|
|
44
|
+
var _useValue = hooks.useValue({
|
|
45
|
+
onClick: _onClick,
|
|
46
|
+
value: value
|
|
47
|
+
}),
|
|
48
|
+
timespan = _useValue.timespan,
|
|
49
|
+
onClick = _useValue.onClick;
|
|
50
|
+
var _useFocusedAt = hooks.useFocusedAt({
|
|
51
|
+
focusedAt: _focusedAt
|
|
52
|
+
}),
|
|
53
|
+
focusedAt = _useFocusedAt.focusedAt,
|
|
54
|
+
toPrevYear = _useFocusedAt.toPrevYear,
|
|
55
|
+
toPrevMonth = _useFocusedAt.toPrevMonth,
|
|
56
|
+
toNextYear = _useFocusedAt.toNextYear,
|
|
57
|
+
toNextMonth = _useFocusedAt.toNextMonth;
|
|
58
|
+
var dateCells = hooks.useDateCells({
|
|
59
|
+
timespan: timespan,
|
|
60
|
+
focusedAt: focusedAt,
|
|
61
|
+
click: onClick
|
|
62
|
+
});
|
|
63
|
+
var headCells = hooks.useHeadCells();
|
|
64
|
+
var classNames = useClassNames.useClassNames(componentToken.ComponentToken.Calendar);
|
|
65
|
+
var theme$1 = hooks$1.useTheme();
|
|
66
|
+
var styled = {
|
|
67
|
+
calendar: {
|
|
68
|
+
className: "musaex-eq5yr9"
|
|
69
|
+
},
|
|
70
|
+
header: stylex.default.props(theme.typography.label.large, styles.header({
|
|
71
|
+
color: theme$1.colors[colors.ColorToken.OnSurfaceVariant]
|
|
72
|
+
})),
|
|
73
|
+
heading: {
|
|
74
|
+
className: "musaex-98rzlu musaex-78zum5 musaex-l56j7k"
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
78
|
+
className: relax.clsx(styled.calendar.className, className$1),
|
|
79
|
+
style: _objectSpread(_objectSpread({}, styled.calendar.style), style)
|
|
80
|
+
}, /*#__PURE__*/React.createElement("header", {
|
|
81
|
+
className: relax.clsx(classNames[className.CalendarClassToken.Header], styled.header.className),
|
|
82
|
+
style: styled.header.style
|
|
83
|
+
}, /*#__PURE__*/React.createElement(button.Button, {
|
|
84
|
+
variant: "text",
|
|
85
|
+
prefix: /*#__PURE__*/React.createElement(keyboardDoubleArrowLeft.default, null),
|
|
86
|
+
onClick: toPrevYear,
|
|
87
|
+
shape: "circular"
|
|
88
|
+
}), /*#__PURE__*/React.createElement(button.Button, {
|
|
89
|
+
variant: "text",
|
|
90
|
+
prefix: /*#__PURE__*/React.createElement(keyboardArrowLeft.default, null),
|
|
91
|
+
onClick: toPrevMonth,
|
|
92
|
+
shape: "circular"
|
|
93
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
94
|
+
className: relax.clsx(classNames[className.CalendarClassToken.Heading], styled.heading.className),
|
|
95
|
+
style: styled.heading.style
|
|
96
|
+
}, focusedAt.format("YYYY-MM")), /*#__PURE__*/React.createElement(button.Button, {
|
|
97
|
+
variant: "text",
|
|
98
|
+
prefix: /*#__PURE__*/React.createElement(keyboardArrowRight.default, null),
|
|
99
|
+
onClick: toNextMonth,
|
|
100
|
+
shape: "circular"
|
|
101
|
+
}), /*#__PURE__*/React.createElement(button.Button, {
|
|
102
|
+
variant: "text",
|
|
103
|
+
prefix: /*#__PURE__*/React.createElement(keyboardDoubleArrowRight.default, null),
|
|
104
|
+
onClick: toNextYear,
|
|
105
|
+
shape: "circular"
|
|
106
|
+
})), /*#__PURE__*/React.createElement("table", null, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, headCells)), /*#__PURE__*/React.createElement("tbody", null, dateCells)));
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
exports.default = Calendar;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { useValue, useFocusedAt, useDateCells, useHeadCells } from './hooks.
|
|
4
|
-
import { useClassNames } from '../../hooks/use-class-names.
|
|
5
|
-
import { CalendarClassToken } from '../../utils/class-name.
|
|
6
|
-
import
|
|
7
|
-
import { typography } from '../theme/theme.
|
|
3
|
+
import { useValue, useFocusedAt, useDateCells, useHeadCells } from './hooks.mjs';
|
|
4
|
+
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
5
|
+
import { CalendarClassToken } from '../../utils/class-name.mjs';
|
|
6
|
+
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
7
|
+
import { typography } from '../theme/theme.mjs';
|
|
8
8
|
import { clsx } from '@aiszlab/relax';
|
|
9
|
-
import Button from '../button/button.
|
|
10
|
-
import { useTheme } from '../theme/hooks.
|
|
11
|
-
import { ColorToken } from '../../utils/colors.
|
|
12
|
-
import { ComponentToken } from '../../utils/component-token.
|
|
13
|
-
import KeyboardDoubleArrowLeft from '../icon/icons/hardware/keyboard-double-arrow-left.
|
|
14
|
-
import KeyboardDoubleArrowRight from '../icon/icons/hardware/keyboard-double-arrow-right.
|
|
15
|
-
import KeyboardArrowLeft from '../icon/icons/hardware/keyboard-arrow-left.
|
|
16
|
-
import KeyboardArrowRight from '../icon/icons/hardware/keyboard-arrow-right.
|
|
9
|
+
import { Button } from '../button/button.mjs';
|
|
10
|
+
import { useTheme } from '../theme/hooks.mjs';
|
|
11
|
+
import { ColorToken } from '../../utils/colors.mjs';
|
|
12
|
+
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
13
|
+
import KeyboardDoubleArrowLeft from '../icon/icons/hardware/keyboard-double-arrow-left.mjs';
|
|
14
|
+
import KeyboardDoubleArrowRight from '../icon/icons/hardware/keyboard-double-arrow-right.mjs';
|
|
15
|
+
import KeyboardArrowLeft from '../icon/icons/hardware/keyboard-arrow-left.mjs';
|
|
16
|
+
import KeyboardArrowRight from '../icon/icons/hardware/keyboard-arrow-right.mjs';
|
|
17
17
|
|
|
18
18
|
var styles = {
|
|
19
19
|
header: function header(props) {
|
|
@@ -65,7 +65,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
65
65
|
calendar: {
|
|
66
66
|
className: "musaex-eq5yr9"
|
|
67
67
|
},
|
|
68
|
-
header: props(typography.label.large, styles.header({
|
|
68
|
+
header: _stylex.props(typography.label.large, styles.header({
|
|
69
69
|
color: theme.colors[ColorToken.OnSurfaceVariant]
|
|
70
70
|
})),
|
|
71
71
|
heading: {
|
|
@@ -103,6 +103,5 @@ var Calendar = function Calendar(_ref) {
|
|
|
103
103
|
shape: "circular"
|
|
104
104
|
})), /*#__PURE__*/React.createElement("table", null, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, headCells)), /*#__PURE__*/React.createElement("tbody", null, dateCells)));
|
|
105
105
|
};
|
|
106
|
-
var Calendar$1 = Calendar;
|
|
107
106
|
|
|
108
|
-
export { Calendar
|
|
107
|
+
export { Calendar as default };
|