musae 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/avatar/context.d.ts +1 -1
- package/dist/components/avatar/group.d.ts +1 -1
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/bench/bench.cjs +8 -10
- package/dist/components/bench/bench.mjs +8 -10
- package/dist/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/components/breadcrumb/item.d.ts +1 -1
- package/dist/components/button/button.cjs +6 -6
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.mjs +7 -7
- package/dist/components/button/hooks.d.ts +2 -2
- package/dist/components/calendar/calendar.d.ts +1 -1
- package/dist/components/calendar/hooks.d.ts +1 -1
- package/dist/components/calendar/index.d.ts +1 -2
- package/dist/components/cascader/cascader.d.ts +1 -1
- package/dist/components/cascader/hooks.d.ts +1 -1
- package/dist/components/cascader/utils.d.ts +1 -1
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/context.d.ts +1 -1
- package/dist/components/checkbox/group.d.ts +1 -1
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/checkbox/styles.cjs +1 -1
- package/dist/components/checkbox/styles.d.ts +1 -1
- package/dist/components/checkbox/styles.mjs +1 -1
- package/dist/components/clock/clock.cjs +1 -2
- package/dist/components/clock/clock.d.ts +1 -1
- package/dist/components/clock/clock.mjs +1 -2
- package/dist/components/clock/column.cjs +9 -9
- package/dist/components/clock/column.d.ts +1 -1
- package/dist/components/clock/column.mjs +8 -8
- package/dist/components/collapse/collapse.d.ts +1 -1
- package/dist/components/collapse/context.d.ts +1 -1
- package/dist/components/collapse/hooks.d.ts +1 -1
- package/dist/components/collapse/item.d.ts +1 -1
- package/dist/components/config/context.d.ts +1 -1
- package/dist/components/config/hooks.d.ts +1 -1
- package/dist/components/config/provider.d.ts +1 -1
- package/dist/components/countdown/countdown.d.ts +2 -2
- package/dist/components/date-picker/date-picker.d.ts +1 -1
- package/dist/components/date-picker/hooks.d.ts +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts +1 -1
- package/dist/components/date-range-picker/hooks.d.ts +1 -1
- package/dist/components/dialog/dialog.d.ts +1 -1
- package/dist/components/dialog/hooks.d.ts +1 -1
- package/dist/components/dialog/popup.d.ts +1 -1
- package/dist/components/divider/divider.d.ts +1 -1
- package/dist/components/divider/hooks.d.ts +1 -1
- package/dist/components/drawer/drawer.d.ts +1 -1
- package/dist/components/drawer/hooks.d.ts +1 -1
- package/dist/components/drawer/popup.d.ts +1 -1
- package/dist/components/{floating-action-button/floating-action-button.cjs → fab/fab.cjs} +2 -2
- package/dist/components/fab/fab.d.ts +4 -0
- package/dist/components/{floating-action-button/floating-action-button.mjs → fab/fab.mjs} +2 -2
- package/dist/components/{floating-action-button → fab}/floatable.d.ts +1 -1
- package/dist/components/fab/index.d.ts +2 -0
- package/dist/components/grid/col.d.ts +1 -1
- package/dist/components/grid/index.d.ts +2 -2
- package/dist/components/grid/row.d.ts +1 -1
- package/dist/components/highlight/highlight.d.ts +1 -1
- package/dist/components/i18n-button/i18n-button.cjs +11 -3
- package/dist/components/i18n-button/i18n-button.d.ts +2 -2
- package/dist/components/i18n-button/i18n-button.mjs +12 -4
- package/dist/components/icon/hoc.d.ts +2 -2
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/icon/icons/action/check-circle-outline.d.ts +1 -1
- package/dist/components/icon/icons/action/check-circle.d.ts +1 -1
- package/dist/components/icon/icons/action/code.d.ts +1 -1
- package/dist/components/icon/icons/action/done-outline.d.ts +1 -1
- package/dist/components/icon/icons/action/done.d.ts +1 -1
- package/dist/components/icon/icons/action/index.cjs +18 -1
- package/dist/components/icon/icons/action/index.d.ts +16 -0
- package/dist/components/icon/icons/action/index.mjs +31 -13
- package/dist/components/icon/icons/action/open-in-new.d.ts +1 -1
- package/dist/components/icon/icons/action/swap-horiz.d.ts +1 -1
- package/dist/components/icon/icons/action/swap-vert.d.ts +1 -1
- package/dist/components/icon/icons/action/translate.d.ts +1 -1
- package/dist/components/icon/icons/action/visibility-off.d.ts +1 -1
- package/dist/components/icon/icons/action/visibility.d.ts +1 -1
- package/dist/components/icon/icons/action/zoom-in.d.ts +1 -1
- package/dist/components/icon/icons/action/zoom-out.d.ts +1 -1
- package/dist/components/icon/icons/alert/add-alert.d.ts +1 -1
- package/dist/components/icon/icons/alert/auto-delete.d.ts +1 -1
- package/dist/components/icon/icons/alert/error-outline.d.ts +1 -1
- package/dist/components/icon/icons/alert/error.d.ts +1 -1
- package/dist/components/icon/icons/alert/index.cjs +12 -1
- package/dist/components/icon/icons/alert/index.d.ts +10 -0
- package/dist/components/icon/icons/alert/index.mjs +19 -7
- package/dist/components/icon/icons/alert/notification-important.d.ts +1 -1
- package/dist/components/icon/icons/alert/warning-amber.d.ts +1 -1
- package/dist/components/icon/icons/alert/warning.d.ts +1 -1
- package/dist/components/icon/icons/content/clear.d.ts +1 -1
- package/dist/components/icon/icons/content/font-download.d.ts +1 -1
- package/dist/components/icon/icons/content/index.cjs +10 -1
- package/dist/components/icon/icons/content/index.d.ts +8 -0
- package/dist/components/icon/icons/content/index.mjs +15 -5
- package/dist/components/icon/icons/content/link-off.d.ts +1 -1
- package/dist/components/icon/icons/content/redo.d.ts +1 -1
- package/dist/components/icon/icons/content/undo.d.ts +1 -1
- package/dist/components/icon/icons/editor/checklist.d.ts +1 -1
- package/dist/components/icon/icons/editor/format-bold.d.ts +1 -1
- package/dist/components/icon/icons/editor/format-italic.d.ts +1 -1
- package/dist/components/icon/icons/editor/format-strikethrough.d.ts +1 -1
- package/dist/components/icon/icons/editor/format-underlined.d.ts +1 -1
- package/dist/components/icon/icons/editor/index.cjs +14 -1
- package/dist/components/icon/icons/editor/index.d.ts +12 -0
- package/dist/components/icon/icons/editor/index.mjs +23 -9
- package/dist/components/icon/icons/editor/insert-link.d.ts +1 -1
- package/dist/components/icon/icons/editor/notes.d.ts +1 -1
- package/dist/components/icon/icons/editor/subscript.d.ts +1 -1
- package/dist/components/icon/icons/editor/superscript.d.ts +1 -1
- package/dist/components/icon/icons/hardware/index.cjs +11 -1
- package/dist/components/icon/icons/hardware/index.d.ts +9 -0
- package/dist/components/icon/icons/hardware/index.mjs +17 -6
- package/dist/components/icon/icons/hardware/keyboard-arrow-down.d.ts +1 -1
- package/dist/components/icon/icons/hardware/keyboard-arrow-left.d.ts +1 -1
- package/dist/components/icon/icons/hardware/keyboard-arrow-right.d.ts +1 -1
- package/dist/components/icon/icons/hardware/keyboard-arrow-up.d.ts +1 -1
- package/dist/components/icon/icons/hardware/keyboard-double-arrow-left.d.ts +1 -1
- package/dist/components/icon/icons/hardware/keyboard-double-arrow-right.d.ts +1 -1
- package/dist/components/icon/icons/image/bedtime.d.ts +1 -1
- package/dist/components/icon/icons/image/edit.d.ts +1 -1
- package/dist/components/icon/icons/image/index.cjs +16 -1
- package/dist/components/icon/icons/image/index.d.ts +14 -0
- package/dist/components/icon/icons/image/index.mjs +27 -11
- package/dist/components/icon/icons/image/looks-five.d.ts +1 -1
- package/dist/components/icon/icons/image/looks-four.d.ts +1 -1
- package/dist/components/icon/icons/image/looks-one.d.ts +1 -1
- package/dist/components/icon/icons/image/looks-six.d.ts +1 -1
- package/dist/components/icon/icons/image/looks-three.d.ts +1 -1
- package/dist/components/icon/icons/image/looks-two.d.ts +1 -1
- package/dist/components/icon/icons/image/rotate-left.d.ts +1 -1
- package/dist/components/icon/icons/image/rotate-right.d.ts +1 -1
- package/dist/components/icon/icons/image/wb-sunny.d.ts +1 -1
- package/dist/components/icon/icons/mock/github.d.ts +1 -1
- package/dist/components/icon/icons/mock/index.cjs +7 -1
- package/dist/components/icon/icons/mock/index.d.ts +5 -0
- package/dist/components/icon/icons/mock/index.mjs +9 -2
- package/dist/components/icon/icons/mock/loading.d.ts +1 -1
- package/dist/components/icon/icons/navigation/cancel.d.ts +1 -1
- package/dist/components/icon/icons/navigation/check.d.ts +1 -1
- package/dist/components/icon/icons/navigation/close.d.ts +1 -1
- package/dist/components/icon/icons/navigation/index.cjs +10 -1
- package/dist/components/icon/icons/navigation/index.d.ts +8 -0
- package/dist/components/icon/icons/navigation/index.mjs +15 -5
- package/dist/components/icon/icons/navigation/more-horiz.d.ts +1 -1
- package/dist/components/icon/icons/navigation/unfold-more.d.ts +1 -1
- package/dist/components/icon/icons/three-dimension-rotation.d.ts +1 -1
- package/dist/components/icon/icons/toggle/index.cjs +8 -1
- package/dist/components/icon/icons/toggle/index.d.ts +6 -0
- package/dist/components/icon/icons/toggle/index.mjs +11 -3
- package/dist/components/icon/icons/toggle/star-half.d.ts +1 -1
- package/dist/components/icon/icons/toggle/star-outline.d.ts +1 -1
- package/dist/components/icon/icons/toggle/star.d.ts +1 -1
- package/dist/components/icon/index.d.ts +0 -5
- package/dist/components/image/hooks.d.ts +1 -1
- package/dist/components/image/image.cjs +2 -2
- package/dist/components/image/image.d.ts +1 -1
- package/dist/components/image/image.mjs +2 -2
- package/dist/components/image/index.d.ts +2 -2
- package/dist/components/image/preview/context.d.ts +1 -1
- package/dist/components/image/preview/group.d.ts +1 -1
- package/dist/components/image/preview/operations.d.ts +1 -1
- package/dist/components/image/preview/preview.d.ts +1 -1
- package/dist/components/input/hooks.d.ts +1 -1
- package/dist/components/input/index.d.ts +1 -2
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/kbd/kbd.d.ts +1 -1
- package/dist/components/kbd/utils.d.ts +1 -1
- package/dist/components/layout/footer.d.ts +1 -1
- package/dist/components/layout/header.d.ts +1 -1
- package/dist/components/layout/index.d.ts +1 -1
- package/dist/components/layout/layout.d.ts +1 -1
- package/dist/components/layout/main.d.ts +1 -1
- package/dist/components/layout/sider.d.ts +1 -1
- package/dist/components/loading/loading.d.ts +1 -1
- package/dist/components/menu/hooks.cjs +7 -7
- package/dist/components/menu/hooks.mjs +8 -8
- package/dist/components/message/hooks.d.ts +1 -1
- package/dist/components/message/messager.d.ts +1 -1
- package/dist/components/notification/holder.d.ts +1 -1
- package/dist/components/notification/hooks.d.ts +1 -1
- package/dist/components/notification/index.d.ts +1 -1
- package/dist/components/notification/notification.d.ts +1 -1
- package/dist/components/notification/notifier.d.ts +1 -1
- package/dist/components/number-input/number-input.d.ts +1 -1
- package/dist/components/otp-input/otp-input.d.ts +1 -1
- package/dist/components/pagination/hooks.cjs +24 -15
- package/dist/components/pagination/hooks.d.ts +7 -4
- package/dist/components/pagination/hooks.mjs +25 -16
- package/dist/components/pagination/item.cjs +9 -9
- package/dist/components/pagination/item.d.ts +2 -2
- package/dist/components/pagination/item.mjs +9 -9
- package/dist/components/pagination/pagination.cjs +16 -10
- package/dist/components/pagination/pagination.d.ts +2 -2
- package/dist/components/pagination/pagination.mjs +16 -10
- package/dist/components/picker/context.d.ts +1 -1
- package/dist/components/picker/picker.d.ts +1 -1
- package/dist/components/popconfirm/popconfirm.d.ts +1 -1
- package/dist/components/popover/hooks.d.ts +1 -1
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/popper/dropdown.cjs +0 -3
- package/dist/components/popper/dropdown.d.ts +2 -2
- package/dist/components/popper/dropdown.mjs +0 -3
- package/dist/components/popper/hooks.d.ts +1 -1
- package/dist/components/popper/index.d.ts +0 -2
- package/dist/components/popper/popper.d.ts +1 -1
- package/dist/components/portal/portal.d.ts +1 -1
- package/dist/components/progress/circular.d.ts +1 -1
- package/dist/components/progress/linear.d.ts +1 -1
- package/dist/components/progress/progress.d.ts +1 -1
- package/dist/components/quote/quote.d.ts +1 -1
- package/dist/components/radio/context.d.ts +1 -1
- package/dist/components/radio/group.d.ts +1 -1
- package/dist/components/radio/index.d.ts +1 -1
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/rate/hooks.d.ts +1 -1
- package/dist/components/rate/rate.d.ts +1 -1
- package/dist/components/rate/star.d.ts +1 -1
- package/dist/components/rich-text-editor/dropdown.cjs +1 -1
- package/dist/components/rich-text-editor/dropdown.d.ts +1 -1
- package/dist/components/rich-text-editor/dropdown.mjs +1 -1
- package/dist/components/rich-text-editor/index.cjs +20 -2
- package/dist/components/rich-text-editor/index.d.ts +1 -1
- package/dist/components/rich-text-editor/index.mjs +20 -2
- package/dist/components/rich-text-editor/plugins/controlled-state/index.d.ts +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.cjs +8 -5
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.mjs +9 -6
- package/dist/components/ripple/hooks.d.ts +1 -1
- package/dist/components/ripple/ripple.d.ts +1 -1
- package/dist/components/select/hooks.d.ts +1 -1
- package/dist/components/select/select.cjs +4 -1
- package/dist/components/select/select.mjs +5 -2
- package/dist/components/select/selections.d.ts +1 -1
- package/dist/components/select/selector.d.ts +1 -1
- package/dist/components/select/utils.d.ts +1 -1
- package/dist/components/skeleton/skeleton.cjs +20 -3
- package/dist/components/skeleton/skeleton.d.ts +1 -1
- package/dist/components/skeleton/skeleton.mjs +20 -3
- package/dist/components/space/space.d.ts +1 -1
- package/dist/components/switch/switch.cjs +8 -8
- package/dist/components/switch/switch.mjs +9 -9
- package/dist/components/theme/tokens.stylex.cjs +7 -0
- package/dist/components/theme/tokens.stylex.d.ts +8 -6
- package/dist/components/theme/tokens.stylex.mjs +7 -1
- package/dist/hooks/use-class-names.d.ts +7 -1
- package/dist/hooks/use-container.d.ts +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/locale/context.d.ts +1 -1
- package/dist/locale/use-locale.d.ts +1 -1
- package/dist/styles.css +7 -5
- package/dist/{components/clock/types.d.ts → types/clock.d.ts} +1 -5
- package/dist/{components/config/types.d.ts → types/config.d.ts} +2 -2
- package/dist/{components/countdown/types.d.ts → types/countdown.d.ts} +3 -3
- package/dist/{components/date-picker/types.d.ts → types/date-picker.d.ts} +1 -1
- package/dist/{components/dialog/types.d.ts → types/dialog.d.ts} +2 -2
- package/dist/{components/divider/types.d.ts → types/divider.d.ts} +1 -1
- package/dist/{components/drawer/types.d.ts → types/drawer.d.ts} +1 -1
- package/dist/{components/floating-action-button/types.d.ts → types/fab.d.ts} +3 -3
- package/dist/{components/grid/types.d.ts → types/grid.d.ts} +1 -1
- package/dist/{components/i18n-button/types.d.ts → types/i18n-button.d.ts} +3 -2
- package/dist/types/menu.d.ts +1 -1
- package/dist/{components/message/types.d.ts → types/message.d.ts} +1 -1
- package/dist/{components/pagination/types.d.ts → types/pagination.d.ts} +20 -9
- package/dist/{components/popconfirm/types.d.ts → types/popconfirm.d.ts} +2 -2
- package/dist/{components/popper/types.d.ts → types/popper.d.ts} +1 -1
- package/dist/{components/quote/types.d.ts → types/quote.d.ts} +1 -1
- package/dist/{components/radio/types.d.ts → types/radio.d.ts} +1 -1
- package/dist/types/rich-text-editor.d.ts +2 -1
- package/dist/{components/skeleton/types.d.ts → types/skeleton.d.ts} +1 -1
- package/dist/{components/space/types.d.ts → types/space.d.ts} +1 -1
- package/dist/types/tour.d.ts +1 -1
- package/dist/utils/class-name.cjs +10 -1
- package/dist/utils/class-name.d.ts +22 -3
- package/dist/utils/class-name.mjs +11 -2
- package/dist/utils/colors.cjs +10 -0
- package/dist/utils/colors.d.ts +3 -0
- package/dist/utils/colors.mjs +10 -1
- package/dist/utils/component-token.cjs +1 -0
- package/dist/utils/component-token.d.ts +2 -1
- package/dist/utils/component-token.mjs +1 -0
- package/package.json +2 -2
- package/dist/components/clock/hooks.cjs +0 -12
- package/dist/components/clock/hooks.d.ts +0 -2
- package/dist/components/clock/hooks.mjs +0 -12
- package/dist/components/clock/types.cjs +0 -6
- package/dist/components/clock/types.mjs +0 -8
- package/dist/components/floating-action-button/floating-action-button.d.ts +0 -4
- package/dist/components/floating-action-button/index.d.ts +0 -2
- package/dist/components/pagination/types.cjs +0 -11
- package/dist/components/pagination/types.mjs +0 -13
- package/dist/utils/layer.cjs +0 -23
- package/dist/utils/layer.d.ts +0 -7
- package/dist/utils/layer.mjs +0 -23
- /package/dist/components/{floating-action-button → fab}/floatable.cjs +0 -0
- /package/dist/components/{floating-action-button → fab}/floatable.mjs +0 -0
- /package/dist/{components/avatar/types.d.ts → types/avatar.d.ts} +0 -0
- /package/dist/{components/badge/types.d.ts → types/badge.d.ts} +0 -0
- /package/dist/{components/breadcrumb/types.d.ts → types/breadcrumb.d.ts} +0 -0
- /package/dist/{components/button/types.d.ts → types/button.d.ts} +0 -0
- /package/dist/{components/calendar/types.d.ts → types/calendar.d.ts} +0 -0
- /package/dist/{components/cascader/types.d.ts → types/cascader.d.ts} +0 -0
- /package/dist/{components/checkbox/types.d.ts → types/checkbox.d.ts} +0 -0
- /package/dist/{components/collapse/types.d.ts → types/collapse.d.ts} +0 -0
- /package/dist/{components/date-range-picker/types.d.ts → types/date-range-picker.d.ts} +0 -0
- /package/dist/{components/highlight/types.d.ts → types/highlight.d.ts} +0 -0
- /package/dist/{components/icon/types.d.ts → types/icon.d.ts} +0 -0
- /package/dist/{components/image/types.d.ts → types/image.d.ts} +0 -0
- /package/dist/{components/input/types.d.ts → types/input.d.ts} +0 -0
- /package/dist/{components/kbd/types.d.ts → types/kbd.d.ts} +0 -0
- /package/dist/{components/layout/types.d.ts → types/layout.d.ts} +0 -0
- /package/dist/{components/loading/types.d.ts → types/loading.d.ts} +0 -0
- /package/dist/{components/notification/types.d.ts → types/notification.d.ts} +0 -0
- /package/dist/{components/number-input/types.d.ts → types/number-input.d.ts} +0 -0
- /package/dist/{components/otp-input/types.d.ts → types/otp-input.d.ts} +0 -0
- /package/dist/{components/popover/types.d.ts → types/popover.d.ts} +0 -0
- /package/dist/{components/portal/types.d.ts → types/portal.d.ts} +0 -0
- /package/dist/{components/progress/types.d.ts → types/progress.d.ts} +0 -0
- /package/dist/{components/rate/types.d.ts → types/rate.d.ts} +0 -0
- /package/dist/{components/ripple/types.d.ts → types/ripple.d.ts} +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var types = require('./types.cjs');
|
|
5
4
|
var button = require('../button/button.cjs');
|
|
6
5
|
var keyboardArrowLeft = require('../icon/icons/hardware/keyboard-arrow-left.cjs');
|
|
7
6
|
var keyboardArrowRight = require('../icon/icons/hardware/keyboard-arrow-right.cjs');
|
|
@@ -11,13 +10,13 @@ var keyboardDoubleArrowRight = require('../icon/icons/hardware/keyboard-double-a
|
|
|
11
10
|
|
|
12
11
|
var Item = function Item(_ref) {
|
|
13
12
|
var value = _ref.value,
|
|
14
|
-
|
|
13
|
+
_onClick = _ref.onClick,
|
|
15
14
|
add = _ref.add,
|
|
16
15
|
subtract = _ref.subtract,
|
|
17
16
|
checked = _ref.checked,
|
|
18
17
|
hasNext = _ref.hasNext,
|
|
19
18
|
hasPrev = _ref.hasPrev;
|
|
20
|
-
if (value ===
|
|
19
|
+
if (value === "prev") {
|
|
21
20
|
return /*#__PURE__*/React.createElement(button.Button, {
|
|
22
21
|
onClick: function onClick() {
|
|
23
22
|
return subtract();
|
|
@@ -28,7 +27,7 @@ var Item = function Item(_ref) {
|
|
|
28
27
|
disabled: !hasPrev
|
|
29
28
|
}, /*#__PURE__*/React.createElement(keyboardArrowLeft.default, null));
|
|
30
29
|
}
|
|
31
|
-
if (value ===
|
|
30
|
+
if (value === "next") {
|
|
32
31
|
return /*#__PURE__*/React.createElement(button.Button, {
|
|
33
32
|
onClick: function onClick() {
|
|
34
33
|
return add();
|
|
@@ -39,13 +38,14 @@ var Item = function Item(_ref) {
|
|
|
39
38
|
disabled: !hasNext
|
|
40
39
|
}, /*#__PURE__*/React.createElement(keyboardArrowRight.default, null));
|
|
41
40
|
}
|
|
42
|
-
|
|
41
|
+
var isMorePrev = value === "more-prev";
|
|
42
|
+
var isMoreNext = value === "more-next";
|
|
43
|
+
if (isMorePrev || isMoreNext) {
|
|
43
44
|
var styled = {
|
|
44
45
|
more: {
|
|
45
46
|
className: "musaex-1aldg33 musaex-1oew0n0"
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
|
-
var isNegative = value === types.PaginationItemType.MorePrev;
|
|
49
49
|
return /*#__PURE__*/React.createElement(button.Button, {
|
|
50
50
|
shape: "circular",
|
|
51
51
|
variant: "text",
|
|
@@ -53,11 +53,11 @@ var Item = function Item(_ref) {
|
|
|
53
53
|
className: styled.more.className,
|
|
54
54
|
style: styled.more.style,
|
|
55
55
|
onClick: function onClick() {
|
|
56
|
-
|
|
56
|
+
isMorePrev ? subtract(5) : add(5);
|
|
57
57
|
}
|
|
58
58
|
}, /*#__PURE__*/React.createElement(moreHoriz.default, {
|
|
59
59
|
role: "separator"
|
|
60
|
-
}), /*#__PURE__*/React.createElement(
|
|
60
|
+
}), /*#__PURE__*/React.createElement(isMorePrev ? keyboardDoubleArrowLeft.default : keyboardDoubleArrowRight.default, {
|
|
61
61
|
role: "button"
|
|
62
62
|
}));
|
|
63
63
|
}
|
|
@@ -66,7 +66,7 @@ var Item = function Item(_ref) {
|
|
|
66
66
|
color: checked ? "primary" : "secondary",
|
|
67
67
|
variant: checked ? "filled" : "text",
|
|
68
68
|
onClick: function onClick() {
|
|
69
|
-
|
|
69
|
+
_onClick(value);
|
|
70
70
|
}
|
|
71
71
|
}, value);
|
|
72
72
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
declare const Item: ({ value,
|
|
2
|
+
import type { PaginationItemProps } from "musae/types/pagination";
|
|
3
|
+
declare const Item: ({ value, onClick, add, subtract, checked, hasNext, hasPrev, }: PaginationItemProps) => React.JSX.Element;
|
|
4
4
|
export default Item;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { createElement } from 'react';
|
|
2
|
-
import { PaginationItemType } from './types.mjs';
|
|
3
2
|
import { Button } from '../button/button.mjs';
|
|
4
3
|
import KeyboardArrowLeft from '../icon/icons/hardware/keyboard-arrow-left.mjs';
|
|
5
4
|
import KeyboardArrowRight from '../icon/icons/hardware/keyboard-arrow-right.mjs';
|
|
@@ -9,13 +8,13 @@ import KeyboardDoubleArrowRight from '../icon/icons/hardware/keyboard-double-arr
|
|
|
9
8
|
|
|
10
9
|
var Item = function Item(_ref) {
|
|
11
10
|
var value = _ref.value,
|
|
12
|
-
|
|
11
|
+
_onClick = _ref.onClick,
|
|
13
12
|
add = _ref.add,
|
|
14
13
|
subtract = _ref.subtract,
|
|
15
14
|
checked = _ref.checked,
|
|
16
15
|
hasNext = _ref.hasNext,
|
|
17
16
|
hasPrev = _ref.hasPrev;
|
|
18
|
-
if (value ===
|
|
17
|
+
if (value === "prev") {
|
|
19
18
|
return /*#__PURE__*/React.createElement(Button, {
|
|
20
19
|
onClick: function onClick() {
|
|
21
20
|
return subtract();
|
|
@@ -26,7 +25,7 @@ var Item = function Item(_ref) {
|
|
|
26
25
|
disabled: !hasPrev
|
|
27
26
|
}, /*#__PURE__*/React.createElement(KeyboardArrowLeft, null));
|
|
28
27
|
}
|
|
29
|
-
if (value ===
|
|
28
|
+
if (value === "next") {
|
|
30
29
|
return /*#__PURE__*/React.createElement(Button, {
|
|
31
30
|
onClick: function onClick() {
|
|
32
31
|
return add();
|
|
@@ -37,13 +36,14 @@ var Item = function Item(_ref) {
|
|
|
37
36
|
disabled: !hasNext
|
|
38
37
|
}, /*#__PURE__*/React.createElement(KeyboardArrowRight, null));
|
|
39
38
|
}
|
|
40
|
-
|
|
39
|
+
var isMorePrev = value === "more-prev";
|
|
40
|
+
var isMoreNext = value === "more-next";
|
|
41
|
+
if (isMorePrev || isMoreNext) {
|
|
41
42
|
var styled = {
|
|
42
43
|
more: {
|
|
43
44
|
className: "musaex-1aldg33 musaex-1oew0n0"
|
|
44
45
|
}
|
|
45
46
|
};
|
|
46
|
-
var isNegative = value === PaginationItemType.MorePrev;
|
|
47
47
|
return /*#__PURE__*/React.createElement(Button, {
|
|
48
48
|
shape: "circular",
|
|
49
49
|
variant: "text",
|
|
@@ -51,11 +51,11 @@ var Item = function Item(_ref) {
|
|
|
51
51
|
className: styled.more.className,
|
|
52
52
|
style: styled.more.style,
|
|
53
53
|
onClick: function onClick() {
|
|
54
|
-
|
|
54
|
+
isMorePrev ? subtract(5) : add(5);
|
|
55
55
|
}
|
|
56
56
|
}, /*#__PURE__*/React.createElement(MoreHoriz, {
|
|
57
57
|
role: "separator"
|
|
58
|
-
}), /*#__PURE__*/createElement(
|
|
58
|
+
}), /*#__PURE__*/createElement(isMorePrev ? KeyboardDoubleArrowLeft : KeyboardDoubleArrowRight, {
|
|
59
59
|
role: "button"
|
|
60
60
|
}));
|
|
61
61
|
}
|
|
@@ -64,7 +64,7 @@ var Item = function Item(_ref) {
|
|
|
64
64
|
color: checked ? "primary" : "secondary",
|
|
65
65
|
variant: checked ? "filled" : "text",
|
|
66
66
|
onClick: function onClick() {
|
|
67
|
-
|
|
67
|
+
_onClick(value);
|
|
68
68
|
}
|
|
69
69
|
}, value);
|
|
70
70
|
};
|
|
@@ -20,18 +20,28 @@ var Pagination = function Pagination(_ref) {
|
|
|
20
20
|
boundaries = _ref$boundaries === void 0 ? 1 : _ref$boundaries,
|
|
21
21
|
_pageSize = _ref.pageSize,
|
|
22
22
|
_ref$pageSizes = _ref.pageSizes,
|
|
23
|
-
pageSizes = _ref$pageSizes === void 0 ? [10, 20, 50, 100] : _ref$pageSizes
|
|
23
|
+
pageSizes = _ref$pageSizes === void 0 ? [10, 20, 50, 100] : _ref$pageSizes,
|
|
24
|
+
_at = _ref.at,
|
|
25
|
+
_onChange = _ref.onChange,
|
|
26
|
+
_onPageSizeChange = _ref.onPageSizeChange;
|
|
27
|
+
var classNames = useClassNames.useClassNames(componentToken.ComponentToken.Pagination);
|
|
28
|
+
var _useLocale = useLocale.useLocale(componentToken.ComponentToken.Pagination),
|
|
29
|
+
_useLocale2 = _slicedToArray(_useLocale, 1),
|
|
30
|
+
locale = _useLocale2[0];
|
|
24
31
|
var _usePagiantion = hooks.usePagiantion({
|
|
25
32
|
boundaries: boundaries,
|
|
26
33
|
pageSize: _pageSize,
|
|
27
34
|
siblings: siblings,
|
|
28
|
-
total: total
|
|
35
|
+
total: total,
|
|
36
|
+
at: _at,
|
|
37
|
+
onChange: _onChange,
|
|
38
|
+
onPageSizeChange: _onPageSizeChange
|
|
29
39
|
}),
|
|
30
40
|
paginationItems = _usePagiantion.paginationItems,
|
|
31
41
|
add = _usePagiantion.add,
|
|
32
42
|
subtract = _usePagiantion.subtract,
|
|
33
|
-
|
|
34
|
-
|
|
43
|
+
onChange = _usePagiantion.onChange,
|
|
44
|
+
at = _usePagiantion.at,
|
|
35
45
|
hasNext = _usePagiantion.hasNext,
|
|
36
46
|
hasPrev = _usePagiantion.hasPrev,
|
|
37
47
|
pageSize = _usePagiantion.pageSize,
|
|
@@ -44,10 +54,6 @@ var Pagination = function Pagination(_ref) {
|
|
|
44
54
|
className: "musaex-78zum5 musaex-6s0dn4"
|
|
45
55
|
}
|
|
46
56
|
};
|
|
47
|
-
var classNames = useClassNames.useClassNames(componentToken.ComponentToken.Pagination);
|
|
48
|
-
var _useLocale = useLocale.useLocale(componentToken.ComponentToken.Pagination),
|
|
49
|
-
_useLocale2 = _slicedToArray(_useLocale, 1),
|
|
50
|
-
locale = _useLocale2[0];
|
|
51
57
|
var sizeOptions = React.useMemo(function () {
|
|
52
58
|
return Array.from(new Set(pageSizes)).map(function (size) {
|
|
53
59
|
return {
|
|
@@ -69,8 +75,8 @@ var Pagination = function Pagination(_ref) {
|
|
|
69
75
|
value: item$1,
|
|
70
76
|
add: add,
|
|
71
77
|
subtract: subtract,
|
|
72
|
-
|
|
73
|
-
checked:
|
|
78
|
+
onClick: onChange,
|
|
79
|
+
checked: at === item$1,
|
|
74
80
|
hasNext: hasNext,
|
|
75
81
|
hasPrev: hasPrev
|
|
76
82
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { PagiantionProps } from "
|
|
3
|
-
declare const Pagination: ({ total, siblings, boundaries, pageSize: _pageSize, pageSizes, }: PagiantionProps) => React.JSX.Element;
|
|
2
|
+
import type { PagiantionProps } from "musae/types/pagination";
|
|
3
|
+
declare const Pagination: ({ total, siblings, boundaries, pageSize: _pageSize, pageSizes, at: _at, onChange: _onChange, onPageSizeChange: _onPageSizeChange, }: PagiantionProps) => React.JSX.Element;
|
|
4
4
|
export default Pagination;
|
|
@@ -18,18 +18,28 @@ var Pagination = function Pagination(_ref) {
|
|
|
18
18
|
boundaries = _ref$boundaries === void 0 ? 1 : _ref$boundaries,
|
|
19
19
|
_pageSize = _ref.pageSize,
|
|
20
20
|
_ref$pageSizes = _ref.pageSizes,
|
|
21
|
-
pageSizes = _ref$pageSizes === void 0 ? [10, 20, 50, 100] : _ref$pageSizes
|
|
21
|
+
pageSizes = _ref$pageSizes === void 0 ? [10, 20, 50, 100] : _ref$pageSizes,
|
|
22
|
+
_at = _ref.at,
|
|
23
|
+
_onChange = _ref.onChange,
|
|
24
|
+
_onPageSizeChange = _ref.onPageSizeChange;
|
|
25
|
+
var classNames = useClassNames(ComponentToken.Pagination);
|
|
26
|
+
var _useLocale = useLocale(ComponentToken.Pagination),
|
|
27
|
+
_useLocale2 = _slicedToArray(_useLocale, 1),
|
|
28
|
+
locale = _useLocale2[0];
|
|
22
29
|
var _usePagiantion = usePagiantion({
|
|
23
30
|
boundaries: boundaries,
|
|
24
31
|
pageSize: _pageSize,
|
|
25
32
|
siblings: siblings,
|
|
26
|
-
total: total
|
|
33
|
+
total: total,
|
|
34
|
+
at: _at,
|
|
35
|
+
onChange: _onChange,
|
|
36
|
+
onPageSizeChange: _onPageSizeChange
|
|
27
37
|
}),
|
|
28
38
|
paginationItems = _usePagiantion.paginationItems,
|
|
29
39
|
add = _usePagiantion.add,
|
|
30
40
|
subtract = _usePagiantion.subtract,
|
|
31
|
-
|
|
32
|
-
|
|
41
|
+
onChange = _usePagiantion.onChange,
|
|
42
|
+
at = _usePagiantion.at,
|
|
33
43
|
hasNext = _usePagiantion.hasNext,
|
|
34
44
|
hasPrev = _usePagiantion.hasPrev,
|
|
35
45
|
pageSize = _usePagiantion.pageSize,
|
|
@@ -42,10 +52,6 @@ var Pagination = function Pagination(_ref) {
|
|
|
42
52
|
className: "musaex-78zum5 musaex-6s0dn4"
|
|
43
53
|
}
|
|
44
54
|
};
|
|
45
|
-
var classNames = useClassNames(ComponentToken.Pagination);
|
|
46
|
-
var _useLocale = useLocale(ComponentToken.Pagination),
|
|
47
|
-
_useLocale2 = _slicedToArray(_useLocale, 1),
|
|
48
|
-
locale = _useLocale2[0];
|
|
49
55
|
var sizeOptions = useMemo(function () {
|
|
50
56
|
return Array.from(new Set(pageSizes)).map(function (size) {
|
|
51
57
|
return {
|
|
@@ -67,8 +73,8 @@ var Pagination = function Pagination(_ref) {
|
|
|
67
73
|
value: item,
|
|
68
74
|
add: add,
|
|
69
75
|
subtract: subtract,
|
|
70
|
-
|
|
71
|
-
checked:
|
|
76
|
+
onClick: onChange,
|
|
77
|
+
checked: at === item,
|
|
72
78
|
hasNext: hasNext,
|
|
73
79
|
hasPrev: hasPrev
|
|
74
80
|
}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ContextValue } from "
|
|
1
|
+
import type { ContextValue } from "musae/types/picker";
|
|
2
2
|
export declare const Context: import("react").Context<ContextValue>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { PickerProps, PickerRef } from "
|
|
2
|
+
import type { PickerProps, PickerRef } from "musae/types/picker";
|
|
3
3
|
declare const Picker: React.ForwardRefExoticComponent<PickerProps & React.RefAttributes<PickerRef>>;
|
|
4
4
|
export default Picker;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { PopconfirmProps, ChildProps } from "
|
|
2
|
+
import type { PopconfirmProps, ChildProps } from "musae/types/popconfirm";
|
|
3
3
|
declare const Popconfirm: <P extends ChildProps<T>, T extends HTMLElement>({ content, title, onConfirm, onCancel, className, placement, children: _children, style, }: PopconfirmProps<P, T>) => React.JSX.Element;
|
|
4
4
|
export default Popconfirm;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { ChildProps, PopoverRef } from "
|
|
2
|
+
import type { ChildProps, PopoverRef } from "musae/types/popover";
|
|
3
3
|
declare const Popover: React.ForwardRefExoticComponent<import("../../types/element").ComponentProps & {
|
|
4
4
|
children: React.ReactElement<ChildProps<HTMLElement>, string | React.JSXElementConstructor<any>>;
|
|
5
5
|
title?: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { PopperRef } from "
|
|
3
|
-
declare const Dropdown: React.ForwardRefExoticComponent<Omit<import("
|
|
2
|
+
import type { PopperRef } from "musae/types/popper";
|
|
3
|
+
declare const Dropdown: React.ForwardRefExoticComponent<Omit<import("musae/types/popper").PopperProps, "container" | "placement" | "portal"> & {
|
|
4
4
|
placement: import("@floating-ui/dom").Placement;
|
|
5
5
|
} & React.RefAttributes<PopperRef>>;
|
|
6
6
|
export default Dropdown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { PopperProps, PopperRef } from "
|
|
2
|
+
import type { PopperProps, PopperRef } from "musae/types/popper";
|
|
3
3
|
declare const Popper: React.ForwardRefExoticComponent<PopperProps & React.RefAttributes<PopperRef>>;
|
|
4
4
|
export default Popper;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TypedRadio } from "
|
|
1
|
+
import type { TypedRadio } from "musae/types/radio";
|
|
2
2
|
export declare const Radio: TypedRadio;
|
|
@@ -61,7 +61,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
61
61
|
return /*#__PURE__*/React.createElement(menu.default, {
|
|
62
62
|
items: items,
|
|
63
63
|
onClick: onClick,
|
|
64
|
-
selectedKeys:
|
|
64
|
+
selectedKeys: value
|
|
65
65
|
});
|
|
66
66
|
}, [items, onClick, value]);
|
|
67
67
|
return /*#__PURE__*/React.createElement(popover.default, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React, { type Key } from "react";
|
|
2
|
-
import { DropdownProps } from "
|
|
2
|
+
import type { DropdownProps } from "musae/types/rich-text-editor";
|
|
3
3
|
declare const Dropdown: <T extends Key = React.Key>({ items: _items, value: _value, onChange, children, }: DropdownProps<T>) => React.JSX.Element;
|
|
4
4
|
export default Dropdown;
|
|
@@ -59,7 +59,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
59
59
|
return /*#__PURE__*/React.createElement(Menu, {
|
|
60
60
|
items: items,
|
|
61
61
|
onClick: onClick,
|
|
62
|
-
selectedKeys:
|
|
62
|
+
selectedKeys: value
|
|
63
63
|
});
|
|
64
64
|
}, [items, onClick, value]);
|
|
65
65
|
return /*#__PURE__*/React.createElement(Popover, {
|
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
2
|
+
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
2
3
|
var React = require('react');
|
|
4
|
+
var skeleton = require('../skeleton/skeleton.cjs');
|
|
5
|
+
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
6
|
+
var componentToken = require('../../utils/component-token.cjs');
|
|
7
|
+
var relax = require('@aiszlab/relax');
|
|
8
|
+
var className = require('../../utils/class-name.cjs');
|
|
3
9
|
|
|
10
|
+
var _excluded = ["className"];
|
|
4
11
|
var _RichTextEditor = /*#__PURE__*/React.lazy(function () {
|
|
5
12
|
return Promise.resolve().then(function () { return require('./rich-text-editor.cjs'); });
|
|
6
13
|
});
|
|
7
|
-
var RichTextEditor = /*#__PURE__*/React.forwardRef(function (
|
|
14
|
+
var RichTextEditor = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
15
|
+
var className$1 = _ref.className,
|
|
16
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
+
var styled = {
|
|
18
|
+
className: "musaex-h22aca musaex-1k094eu musaex-qwu505"
|
|
19
|
+
};
|
|
20
|
+
var classNames = useClassNames.useClassNames(componentToken.ComponentToken.RichTextEditor);
|
|
8
21
|
return /*#__PURE__*/React.createElement(React.Suspense, {
|
|
9
|
-
fallback: /*#__PURE__*/React.createElement(
|
|
22
|
+
fallback: /*#__PURE__*/React.createElement(skeleton.default, {
|
|
23
|
+
animation: true,
|
|
24
|
+
className: relax.clsx(classNames[className.RichTextEditorClassToken.Loading], styled.className),
|
|
25
|
+
style: styled.style
|
|
26
|
+
})
|
|
10
27
|
}, /*#__PURE__*/React.createElement(_RichTextEditor, _objectSpread(_objectSpread({}, props), {}, {
|
|
28
|
+
className: relax.clsx(classNames[className.RichTextEditorClassToken.RichTextEditor], className$1),
|
|
11
29
|
ref: ref
|
|
12
30
|
})));
|
|
13
31
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { RichTextEditorRef } from "musae/types/rich-text-editor";
|
|
3
|
-
declare const RichTextEditor: React.ForwardRefExoticComponent<Pick<React.HTMLAttributes<HTMLDivElement>, "aria-placeholder"> & {
|
|
3
|
+
declare const RichTextEditor: React.ForwardRefExoticComponent<Pick<React.HTMLAttributes<HTMLDivElement>, "aria-placeholder"> & import("../../types/element").ComponentProps & {
|
|
4
4
|
placeholder?: import("@lexical/react/LexicalContentEditable").Props["placeholder"];
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
defaultValue?: string;
|
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
2
3
|
import React, { forwardRef, Suspense, createElement, lazy } from 'react';
|
|
4
|
+
import Skeleton from '../skeleton/skeleton.mjs';
|
|
5
|
+
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
6
|
+
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
7
|
+
import { clsx } from '@aiszlab/relax';
|
|
8
|
+
import { RichTextEditorClassToken } from '../../utils/class-name.mjs';
|
|
3
9
|
|
|
10
|
+
var _excluded = ["className"];
|
|
4
11
|
var _RichTextEditor = /*#__PURE__*/lazy(function () {
|
|
5
12
|
return import('./rich-text-editor.mjs');
|
|
6
13
|
});
|
|
7
|
-
var RichTextEditor = /*#__PURE__*/forwardRef(function (
|
|
14
|
+
var RichTextEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
15
|
+
var className = _ref.className,
|
|
16
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
+
var styled = {
|
|
18
|
+
className: "musaex-h22aca musaex-1k094eu musaex-qwu505"
|
|
19
|
+
};
|
|
20
|
+
var classNames = useClassNames(ComponentToken.RichTextEditor);
|
|
8
21
|
return /*#__PURE__*/React.createElement(Suspense, {
|
|
9
|
-
fallback: /*#__PURE__*/React.createElement(
|
|
22
|
+
fallback: /*#__PURE__*/React.createElement(Skeleton, {
|
|
23
|
+
animation: true,
|
|
24
|
+
className: clsx(classNames[RichTextEditorClassToken.Loading], styled.className),
|
|
25
|
+
style: styled.style
|
|
26
|
+
})
|
|
10
27
|
}, /*#__PURE__*/createElement(_RichTextEditor, _objectSpread(_objectSpread({}, props), {}, {
|
|
28
|
+
className: clsx(classNames[RichTextEditorClassToken.RichTextEditor], className),
|
|
11
29
|
ref: ref
|
|
12
30
|
})));
|
|
13
31
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
3
4
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
4
5
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
6
|
var React = require('react');
|
|
@@ -31,7 +32,7 @@ require('../checkbox/index.cjs');
|
|
|
31
32
|
var markdown = require('@lexical/markdown');
|
|
32
33
|
var styles$1 = require('../checkbox/styles.cjs');
|
|
33
34
|
|
|
34
|
-
var _excluded = ["placeholder", "disabled", "defaultValue", "onChange", "value"];
|
|
35
|
+
var _excluded = ["placeholder", "disabled", "defaultValue", "onChange", "value", "className", "style"];
|
|
35
36
|
var styles = {
|
|
36
37
|
shell: function shell(props) {
|
|
37
38
|
return [{
|
|
@@ -81,7 +82,9 @@ var RichTextEditor = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
81
82
|
defaultValue = _ref.defaultValue,
|
|
82
83
|
onChange = _ref.onChange;
|
|
83
84
|
_ref.value;
|
|
84
|
-
var
|
|
85
|
+
var className = _ref.className,
|
|
86
|
+
style = _ref.style,
|
|
87
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
85
88
|
var _useIdentity = relax.useIdentity(),
|
|
86
89
|
_useIdentity2 = _slicedToArray(_useIdentity, 1),
|
|
87
90
|
id = _useIdentity2[0];
|
|
@@ -105,7 +108,7 @@ var RichTextEditor = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
105
108
|
codeBackgroundColor: theme$1.colors[colors.ColorToken.SurfaceContainerHighest]
|
|
106
109
|
})),
|
|
107
110
|
editor: {
|
|
108
|
-
className: "musaex-1a2a7pz musaex-y0sash musaex-1vgzror musaex-igxgg9 musaex-
|
|
111
|
+
className: "musaex-1a2a7pz musaex-y0sash musaex-1vgzror musaex-igxgg9 musaex-ktxt4i"
|
|
109
112
|
},
|
|
110
113
|
h1: stylex.default.props(theme.typography.display.large),
|
|
111
114
|
h2: stylex.default.props(theme.typography.display.medium),
|
|
@@ -195,8 +198,8 @@ var RichTextEditor = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
195
198
|
return /*#__PURE__*/React.createElement(LexicalComposer.LexicalComposer, {
|
|
196
199
|
initialConfig: initialConfig
|
|
197
200
|
}, /*#__PURE__*/React.createElement("div", {
|
|
198
|
-
className: styled.shell.className,
|
|
199
|
-
style: styled.shell.style
|
|
201
|
+
className: relax.clsx(className, styled.shell.className),
|
|
202
|
+
style: _objectSpread(_objectSpread({}, styled.shell.style), style)
|
|
200
203
|
}, !disabled && /*#__PURE__*/React.createElement(index$1.default, null), /*#__PURE__*/React.createElement(LexicalRichTextPlugin.RichTextPlugin, {
|
|
201
204
|
contentEditable: /*#__PURE__*/React.createElement(LexicalContentEditable.ContentEditable, {
|
|
202
205
|
className: styled.editor.className,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { RichTextEditorRef } from "musae/types/rich-text-editor";
|
|
3
|
-
declare const RichTextEditor: React.ForwardRefExoticComponent<Pick<React.HTMLAttributes<HTMLDivElement>, "aria-placeholder"> & {
|
|
3
|
+
declare const RichTextEditor: React.ForwardRefExoticComponent<Pick<React.HTMLAttributes<HTMLDivElement>, "aria-placeholder"> & import("../../types/element").ComponentProps & {
|
|
4
4
|
placeholder?: import("@lexical/react/LexicalContentEditable").Props["placeholder"];
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
defaultValue?: string;
|