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,3 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import Star from './star.mjs';
|
|
2
|
+
import StarHalf from './star-half.mjs';
|
|
3
|
+
import StarOutline from './star-outline.mjs';
|
|
4
|
+
|
|
5
|
+
var _ = {
|
|
6
|
+
Star: Star,
|
|
7
|
+
StarHalf: StarHalf,
|
|
8
|
+
StarOutline: StarOutline
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { Star, StarHalf, StarOutline, _ as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const StarHalf: (props: Omit<import("
|
|
2
|
+
declare const StarHalf: (props: Omit<import("../../../../types/icon").IconProps, "as">) => React.FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
3
3
|
export default StarHalf;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const StarOutline: (props: Omit<import("
|
|
2
|
+
declare const StarOutline: (props: Omit<import("../../../../types/icon").IconProps, "as">) => React.FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
3
3
|
export default StarOutline;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const Star: (props: Omit<import("
|
|
2
|
+
declare const Star: (props: Omit<import("../../../../types/icon").IconProps, "as">) => React.FunctionComponentElement<import("../../../../types/icon").IconProps>;
|
|
3
3
|
export default Star;
|
|
@@ -31,13 +31,13 @@ var Image = function Image(_ref) {
|
|
|
31
31
|
// not in preview group, render self
|
|
32
32
|
turnOn();
|
|
33
33
|
});
|
|
34
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, status === "loaded" && /*#__PURE__*/React.createElement("img", {
|
|
34
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, status === "loaded" && (/*#__PURE__*/React.createElement("img", {
|
|
35
35
|
src: src,
|
|
36
36
|
alt: alt,
|
|
37
37
|
onClick: click,
|
|
38
38
|
width: width,
|
|
39
39
|
height: height
|
|
40
|
-
}), isOpen && !contextValue && /*#__PURE__*/React.createElement(preview.default, {
|
|
40
|
+
})), isOpen && !contextValue && /*#__PURE__*/React.createElement(preview.default, {
|
|
41
41
|
src: src,
|
|
42
42
|
onClose: turnOff,
|
|
43
43
|
alt: alt
|
|
@@ -29,13 +29,13 @@ var Image = function Image(_ref) {
|
|
|
29
29
|
// not in preview group, render self
|
|
30
30
|
turnOn();
|
|
31
31
|
});
|
|
32
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, status === "loaded" && /*#__PURE__*/React.createElement("img", {
|
|
32
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, status === "loaded" && (/*#__PURE__*/React.createElement("img", {
|
|
33
33
|
src: src,
|
|
34
34
|
alt: alt,
|
|
35
35
|
onClick: click,
|
|
36
36
|
width: width,
|
|
37
37
|
height: height
|
|
38
|
-
}), isOpen && !contextValue && /*#__PURE__*/React.createElement(Preview, {
|
|
38
|
+
})), isOpen && !contextValue && /*#__PURE__*/React.createElement(Preview, {
|
|
39
39
|
src: src,
|
|
40
40
|
onClose: turnOff,
|
|
41
41
|
alt: alt
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const Image: (({ src, alt, width, height }: import("
|
|
2
|
-
Group: ({ children, items }: import("
|
|
1
|
+
declare const Image: (({ src, alt, width, height }: import("musae/types/image").ImageProps) => import("react").JSX.Element) & {
|
|
2
|
+
Group: ({ children, items }: import("musae/types/image").PreviewGroupProps) => import("react").JSX.Element;
|
|
3
3
|
};
|
|
4
4
|
export { Image };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { OperationsProps } from "
|
|
2
|
+
import type { OperationsProps } from "musae/types/image";
|
|
3
3
|
declare const Operations: ({ onClose, onZoomIn, onZoomOut, onRotateRight, onRotateLeft, onFlipX, onFlipY, }: OperationsProps) => React.JSX.Element;
|
|
4
4
|
export default Operations;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { PreviewRef } from "
|
|
2
|
+
import type { PreviewRef } from "musae/types/image";
|
|
3
3
|
declare const Preview: React.ForwardRefExoticComponent<Pick<React.ImgHTMLAttributes<HTMLImageElement>, "alt"> & {
|
|
4
4
|
src: string;
|
|
5
5
|
onClose: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ChangeEventHandler, type Dispatch, type FocusEventHandler, type MouseEventHandler, type SetStateAction, type RefObject } from "react";
|
|
2
|
-
import type { InputProps } from "
|
|
2
|
+
import type { InputProps } from "musae/types/input";
|
|
3
3
|
/**
|
|
4
4
|
* @description
|
|
5
5
|
* use events for input
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type CSSProperties } from "react";
|
|
2
|
-
import type { InputProps, InputRef } from "
|
|
2
|
+
import type { InputProps, InputRef } from "musae/types/input";
|
|
3
3
|
export declare const styles: Readonly<{
|
|
4
4
|
readonly wrapper: (props: {
|
|
5
5
|
outlineColor: CSSProperties["borderColor"];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TypedLayout } from "
|
|
1
|
+
import type { TypedLayout } from "musae/types/layout";
|
|
2
2
|
export declare const Layout: TypedLayout;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { LoadingProps } from "
|
|
2
|
+
import type { LoadingProps } from "musae/types/loading";
|
|
3
3
|
declare const Loading: ({ size, overlay, children, className, style, loading, }: LoadingProps) => React.JSX.Element;
|
|
4
4
|
export default Loading;
|
|
@@ -47,17 +47,17 @@ var useItemChildren = function useItemChildren(_ref) {
|
|
|
47
47
|
hasChildren = _ref.hasChildren,
|
|
48
48
|
isExpanded = _ref.isExpanded,
|
|
49
49
|
isInline = _ref.isInline;
|
|
50
|
-
|
|
50
|
+
// prefix
|
|
51
51
|
var _prefix = React.useMemo(function () {
|
|
52
52
|
return prefix && /*#__PURE__*/React.createElement("span", _objectSpread({}, {
|
|
53
53
|
className: "musaex-78zum5 musaex-l56j7k musaex-6s0dn4 musaex-1a1twg2"
|
|
54
54
|
}), prefix);
|
|
55
55
|
}, [prefix]);
|
|
56
|
-
|
|
56
|
+
// child
|
|
57
57
|
var _label = React.useMemo(function () {
|
|
58
58
|
return label && /*#__PURE__*/React.createElement("span", null, label);
|
|
59
59
|
}, [label]);
|
|
60
|
-
|
|
60
|
+
// suffix
|
|
61
61
|
var _suffix = React.useMemo(function () {
|
|
62
62
|
if (!suffix && !hasChildren) return null;
|
|
63
63
|
var styled = stylex.default.props(styles.collapser({
|
|
@@ -98,12 +98,12 @@ var useContextValue = function useContextValue(_ref2) {
|
|
|
98
98
|
_expandedKeys = _useControlledState4[0],
|
|
99
99
|
_setExpandedKeys = _useControlledState4[1];
|
|
100
100
|
var selectedKeys = React.useMemo(function () {
|
|
101
|
-
return new Set(_selectedKeys);
|
|
101
|
+
return new Set(relax.toArray(_selectedKeys));
|
|
102
102
|
}, [_selectedKeys]);
|
|
103
103
|
var expandedKeys = React.useMemo(function () {
|
|
104
104
|
return new Set(_expandedKeys);
|
|
105
105
|
}, [_expandedKeys]);
|
|
106
|
-
|
|
106
|
+
// click handler
|
|
107
107
|
var click = React.useCallback(/*#__PURE__*/function () {
|
|
108
108
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(key) {
|
|
109
109
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -122,7 +122,7 @@ var useContextValue = function useContextValue(_ref2) {
|
|
|
122
122
|
return _ref3.apply(this, arguments);
|
|
123
123
|
};
|
|
124
124
|
}(), [onClick, _setSelectedKeys]);
|
|
125
|
-
|
|
125
|
+
// toggle expand
|
|
126
126
|
var toggle = React.useCallback(function (key) {
|
|
127
127
|
var isExpanded = expandedKeys.has(key);
|
|
128
128
|
_setExpandedKeys(function (prev) {
|
|
@@ -131,7 +131,7 @@ var useContextValue = function useContextValue(_ref2) {
|
|
|
131
131
|
return Array.from(expanded);
|
|
132
132
|
});
|
|
133
133
|
}, [expandedKeys, _setExpandedKeys]);
|
|
134
|
-
|
|
134
|
+
// collect item
|
|
135
135
|
var collect = React.useCallback(function (key, item) {
|
|
136
136
|
if (!item) return;
|
|
137
137
|
setTrigger(key, item);
|
|
@@ -5,7 +5,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
5
5
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
6
6
|
import React, { useMemo, useCallback, useContext } from 'react';
|
|
7
7
|
import Context from './context.mjs';
|
|
8
|
-
import { useControlledState } from '@aiszlab/relax';
|
|
8
|
+
import { useControlledState, toArray } from '@aiszlab/relax';
|
|
9
9
|
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
10
10
|
import KeyboardArrowUp from '../icon/icons/hardware/keyboard-arrow-up.mjs';
|
|
11
11
|
|
|
@@ -47,17 +47,17 @@ var useItemChildren = function useItemChildren(_ref) {
|
|
|
47
47
|
hasChildren = _ref.hasChildren,
|
|
48
48
|
isExpanded = _ref.isExpanded,
|
|
49
49
|
isInline = _ref.isInline;
|
|
50
|
-
|
|
50
|
+
// prefix
|
|
51
51
|
var _prefix = useMemo(function () {
|
|
52
52
|
return prefix && /*#__PURE__*/React.createElement("span", _objectSpread({}, {
|
|
53
53
|
className: "musaex-78zum5 musaex-l56j7k musaex-6s0dn4 musaex-1a1twg2"
|
|
54
54
|
}), prefix);
|
|
55
55
|
}, [prefix]);
|
|
56
|
-
|
|
56
|
+
// child
|
|
57
57
|
var _label = useMemo(function () {
|
|
58
58
|
return label && /*#__PURE__*/React.createElement("span", null, label);
|
|
59
59
|
}, [label]);
|
|
60
|
-
|
|
60
|
+
// suffix
|
|
61
61
|
var _suffix = useMemo(function () {
|
|
62
62
|
if (!suffix && !hasChildren) return null;
|
|
63
63
|
var styled = _stylex.props(styles.collapser({
|
|
@@ -98,12 +98,12 @@ var useContextValue = function useContextValue(_ref2) {
|
|
|
98
98
|
_expandedKeys = _useControlledState4[0],
|
|
99
99
|
_setExpandedKeys = _useControlledState4[1];
|
|
100
100
|
var selectedKeys = useMemo(function () {
|
|
101
|
-
return new Set(_selectedKeys);
|
|
101
|
+
return new Set(toArray(_selectedKeys));
|
|
102
102
|
}, [_selectedKeys]);
|
|
103
103
|
var expandedKeys = useMemo(function () {
|
|
104
104
|
return new Set(_expandedKeys);
|
|
105
105
|
}, [_expandedKeys]);
|
|
106
|
-
|
|
106
|
+
// click handler
|
|
107
107
|
var click = useCallback(/*#__PURE__*/function () {
|
|
108
108
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(key) {
|
|
109
109
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -122,7 +122,7 @@ var useContextValue = function useContextValue(_ref2) {
|
|
|
122
122
|
return _ref3.apply(this, arguments);
|
|
123
123
|
};
|
|
124
124
|
}(), [onClick, _setSelectedKeys]);
|
|
125
|
-
|
|
125
|
+
// toggle expand
|
|
126
126
|
var toggle = useCallback(function (key) {
|
|
127
127
|
var isExpanded = expandedKeys.has(key);
|
|
128
128
|
_setExpandedKeys(function (prev) {
|
|
@@ -131,7 +131,7 @@ var useContextValue = function useContextValue(_ref2) {
|
|
|
131
131
|
return Array.from(expanded);
|
|
132
132
|
});
|
|
133
133
|
}, [expandedKeys, _setExpandedKeys]);
|
|
134
|
-
|
|
134
|
+
// collect item
|
|
135
135
|
var collect = useCallback(function (key, item) {
|
|
136
136
|
if (!item) return;
|
|
137
137
|
setTrigger(key, item);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { HolderProps, HolderRef } from "
|
|
2
|
+
import type { HolderProps, HolderRef } from "musae/types/notification";
|
|
3
3
|
declare const Holder: React.ForwardRefExoticComponent<HolderProps & React.RefAttributes<HolderRef>>;
|
|
4
4
|
export default Holder;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HolderRef, Notifier, Type, NotificationConfig } from "
|
|
1
|
+
import type { HolderRef, Notifier, Type, NotificationConfig } from "musae/types/notification";
|
|
2
2
|
import Holder from "./holder";
|
|
3
3
|
import { useNotification } from "./hooks";
|
|
4
4
|
import Notification from "./notifier";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { NotificationProps, Axis } from "
|
|
2
|
+
import type { NotificationProps, Axis } from "musae/types/notification";
|
|
3
3
|
export declare const PLACEMENTS: Record<Axis, [hidden: string, appeared: string]>;
|
|
4
4
|
declare const Notification: React.ForwardRefExoticComponent<NotificationProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Notification;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { NumberInputProps } from "
|
|
2
|
+
import type { NumberInputProps } from "musae/types/number-input";
|
|
3
3
|
declare const NumberInput: ({ value: __value, formatter: _formatter }: NumberInputProps) => React.JSX.Element;
|
|
4
4
|
export default NumberInput;
|
|
@@ -2,7 +2,6 @@ var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
|
2
2
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
3
3
|
var relax = require('@aiszlab/relax');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var types = require('./types.cjs');
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* @author murukal
|
|
@@ -14,22 +13,27 @@ var usePagiantion = function usePagiantion(_ref) {
|
|
|
14
13
|
var total = _ref.total,
|
|
15
14
|
siblings = _ref.siblings,
|
|
16
15
|
boundaries = _ref.boundaries,
|
|
17
|
-
_pageSize = _ref.pageSize
|
|
16
|
+
_pageSize = _ref.pageSize,
|
|
17
|
+
_at = _ref.at,
|
|
18
|
+
_onChange = _ref.onChange,
|
|
19
|
+
_onPageSizeChange = _ref.onPageSizeChange;
|
|
18
20
|
var _useControlledState = relax.useControlledState(_pageSize, {
|
|
19
21
|
defaultState: 10
|
|
20
22
|
}),
|
|
21
23
|
_useControlledState2 = _slicedToArray(_useControlledState, 2),
|
|
22
24
|
pageSize = _useControlledState2[0],
|
|
23
25
|
setPageSize = _useControlledState2[1];
|
|
26
|
+
// convert total into page count
|
|
27
|
+
// at least 1 page
|
|
24
28
|
var pages = React.useMemo(function () {
|
|
25
|
-
return Math.ceil(total / Math.max(1, pageSize));
|
|
29
|
+
return Math.max(1, Math.ceil(total / Math.max(1, pageSize)));
|
|
26
30
|
}, [total, pageSize]);
|
|
27
|
-
var _useCounter = relax.useCounter(
|
|
31
|
+
var _useCounter = relax.useCounter(_at, {
|
|
28
32
|
min: 1,
|
|
29
33
|
max: pages
|
|
30
34
|
}),
|
|
31
35
|
_useCounter2 = _slicedToArray(_useCounter, 2),
|
|
32
|
-
|
|
36
|
+
at = _useCounter2[0],
|
|
33
37
|
_useCounter2$ = _useCounter2[1],
|
|
34
38
|
add = _useCounter2$.add,
|
|
35
39
|
subtract = _useCounter2$.subtract,
|
|
@@ -38,28 +42,33 @@ var usePagiantion = function usePagiantion(_ref) {
|
|
|
38
42
|
// max renderable pages
|
|
39
43
|
var renderable = siblings * 2 + 3 + boundaries * 2;
|
|
40
44
|
if (renderable > pages) {
|
|
41
|
-
return [
|
|
45
|
+
return ["prev"].concat(_toConsumableArray(relax.range(1, pages)), ["next"]);
|
|
42
46
|
}
|
|
43
|
-
var focusedAt = relax.clamp(
|
|
47
|
+
var focusedAt = relax.clamp(at, boundaries + 3, pages - (boundaries + 2));
|
|
44
48
|
var from = Math.max(focusedAt - siblings, boundaries);
|
|
45
49
|
var to = Math.min(focusedAt + siblings, pages - (boundaries - 1));
|
|
46
50
|
var hasPrevMore = from > boundaries + 2;
|
|
47
51
|
var hasNextMore = to < pages - (boundaries + 1);
|
|
48
|
-
return [
|
|
49
|
-
}, [boundaries,
|
|
52
|
+
return ["prev"].concat(_toConsumableArray(relax.range(1, boundaries)), _toConsumableArray(hasPrevMore ? ["more-prev"] : [boundaries + 1]), _toConsumableArray(relax.range(from, to)), _toConsumableArray(hasNextMore ? ["more-next"] : [pages - boundaries]), _toConsumableArray(relax.range(pages - (boundaries - 1), pages)), ["next"]);
|
|
53
|
+
}, [boundaries, at, pages, siblings]);
|
|
50
54
|
// whether prev button is usable
|
|
51
|
-
var hasPrev =
|
|
55
|
+
var hasPrev = at > 1;
|
|
52
56
|
// whether next button is usable
|
|
53
|
-
var hasNext =
|
|
54
|
-
var
|
|
57
|
+
var hasNext = at < pages;
|
|
58
|
+
var onChange = relax.useEvent(function (at) {
|
|
59
|
+
_onChange === null || _onChange === void 0 || _onChange(at);
|
|
60
|
+
setCount(at);
|
|
61
|
+
});
|
|
62
|
+
var onPageSizeChange = relax.useEvent(function (pageSize) {
|
|
63
|
+
_onPageSizeChange === null || _onPageSizeChange === void 0 || _onPageSizeChange(pageSize);
|
|
55
64
|
setPageSize(pageSize);
|
|
56
|
-
};
|
|
65
|
+
});
|
|
57
66
|
return {
|
|
58
67
|
paginationItems: paginationItems,
|
|
59
68
|
add: add,
|
|
60
69
|
subtract: subtract,
|
|
61
|
-
|
|
62
|
-
|
|
70
|
+
onChange: onChange,
|
|
71
|
+
at: at,
|
|
63
72
|
hasPrev: hasPrev,
|
|
64
73
|
hasNext: hasNext,
|
|
65
74
|
pageSize: pageSize,
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { PaginationItems } from "musae/types/pagination";
|
|
2
2
|
/**
|
|
3
3
|
* @author murukal
|
|
4
4
|
*
|
|
5
5
|
* @description
|
|
6
6
|
* use pagination
|
|
7
7
|
*/
|
|
8
|
-
export declare const usePagiantion: ({ total, siblings, boundaries, pageSize: _pageSize, }: {
|
|
8
|
+
export declare const usePagiantion: ({ total, siblings, boundaries, pageSize: _pageSize, at: _at, onChange: _onChange, onPageSizeChange: _onPageSizeChange, }: {
|
|
9
9
|
total: number;
|
|
10
10
|
siblings: number;
|
|
11
11
|
boundaries: number;
|
|
12
12
|
pageSize?: number;
|
|
13
|
+
at?: number;
|
|
14
|
+
onChange?: (at: number) => void;
|
|
15
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
13
16
|
}) => {
|
|
14
17
|
paginationItems: PaginationItems;
|
|
15
18
|
add: (step?: number) => void;
|
|
16
19
|
subtract: (step?: number) => void;
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
onChange: (at: number) => void;
|
|
21
|
+
at: number;
|
|
19
22
|
hasPrev: boolean;
|
|
20
23
|
hasNext: boolean;
|
|
21
24
|
pageSize: number;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
2
2
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
|
-
import { useControlledState, useCounter, range, clamp } from '@aiszlab/relax';
|
|
3
|
+
import { useControlledState, useCounter, range, clamp, useEvent } from '@aiszlab/relax';
|
|
4
4
|
import { useMemo } from 'react';
|
|
5
|
-
import { PaginationItemType } from './types.mjs';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* @author murukal
|
|
@@ -14,22 +13,27 @@ var usePagiantion = function usePagiantion(_ref) {
|
|
|
14
13
|
var total = _ref.total,
|
|
15
14
|
siblings = _ref.siblings,
|
|
16
15
|
boundaries = _ref.boundaries,
|
|
17
|
-
_pageSize = _ref.pageSize
|
|
16
|
+
_pageSize = _ref.pageSize,
|
|
17
|
+
_at = _ref.at,
|
|
18
|
+
_onChange = _ref.onChange,
|
|
19
|
+
_onPageSizeChange = _ref.onPageSizeChange;
|
|
18
20
|
var _useControlledState = useControlledState(_pageSize, {
|
|
19
21
|
defaultState: 10
|
|
20
22
|
}),
|
|
21
23
|
_useControlledState2 = _slicedToArray(_useControlledState, 2),
|
|
22
24
|
pageSize = _useControlledState2[0],
|
|
23
25
|
setPageSize = _useControlledState2[1];
|
|
26
|
+
// convert total into page count
|
|
27
|
+
// at least 1 page
|
|
24
28
|
var pages = useMemo(function () {
|
|
25
|
-
return Math.ceil(total / Math.max(1, pageSize));
|
|
29
|
+
return Math.max(1, Math.ceil(total / Math.max(1, pageSize)));
|
|
26
30
|
}, [total, pageSize]);
|
|
27
|
-
var _useCounter = useCounter(
|
|
31
|
+
var _useCounter = useCounter(_at, {
|
|
28
32
|
min: 1,
|
|
29
33
|
max: pages
|
|
30
34
|
}),
|
|
31
35
|
_useCounter2 = _slicedToArray(_useCounter, 2),
|
|
32
|
-
|
|
36
|
+
at = _useCounter2[0],
|
|
33
37
|
_useCounter2$ = _useCounter2[1],
|
|
34
38
|
add = _useCounter2$.add,
|
|
35
39
|
subtract = _useCounter2$.subtract,
|
|
@@ -38,28 +42,33 @@ var usePagiantion = function usePagiantion(_ref) {
|
|
|
38
42
|
// max renderable pages
|
|
39
43
|
var renderable = siblings * 2 + 3 + boundaries * 2;
|
|
40
44
|
if (renderable > pages) {
|
|
41
|
-
return [
|
|
45
|
+
return ["prev"].concat(_toConsumableArray(range(1, pages)), ["next"]);
|
|
42
46
|
}
|
|
43
|
-
var focusedAt = clamp(
|
|
47
|
+
var focusedAt = clamp(at, boundaries + 3, pages - (boundaries + 2));
|
|
44
48
|
var from = Math.max(focusedAt - siblings, boundaries);
|
|
45
49
|
var to = Math.min(focusedAt + siblings, pages - (boundaries - 1));
|
|
46
50
|
var hasPrevMore = from > boundaries + 2;
|
|
47
51
|
var hasNextMore = to < pages - (boundaries + 1);
|
|
48
|
-
return [
|
|
49
|
-
}, [boundaries,
|
|
52
|
+
return ["prev"].concat(_toConsumableArray(range(1, boundaries)), _toConsumableArray(hasPrevMore ? ["more-prev"] : [boundaries + 1]), _toConsumableArray(range(from, to)), _toConsumableArray(hasNextMore ? ["more-next"] : [pages - boundaries]), _toConsumableArray(range(pages - (boundaries - 1), pages)), ["next"]);
|
|
53
|
+
}, [boundaries, at, pages, siblings]);
|
|
50
54
|
// whether prev button is usable
|
|
51
|
-
var hasPrev =
|
|
55
|
+
var hasPrev = at > 1;
|
|
52
56
|
// whether next button is usable
|
|
53
|
-
var hasNext =
|
|
54
|
-
var
|
|
57
|
+
var hasNext = at < pages;
|
|
58
|
+
var onChange = useEvent(function (at) {
|
|
59
|
+
_onChange === null || _onChange === void 0 || _onChange(at);
|
|
60
|
+
setCount(at);
|
|
61
|
+
});
|
|
62
|
+
var onPageSizeChange = useEvent(function (pageSize) {
|
|
63
|
+
_onPageSizeChange === null || _onPageSizeChange === void 0 || _onPageSizeChange(pageSize);
|
|
55
64
|
setPageSize(pageSize);
|
|
56
|
-
};
|
|
65
|
+
});
|
|
57
66
|
return {
|
|
58
67
|
paginationItems: paginationItems,
|
|
59
68
|
add: add,
|
|
60
69
|
subtract: subtract,
|
|
61
|
-
|
|
62
|
-
|
|
70
|
+
onChange: onChange,
|
|
71
|
+
at: at,
|
|
63
72
|
hasPrev: hasPrev,
|
|
64
73
|
hasNext: hasNext,
|
|
65
74
|
pageSize: pageSize,
|