musae 0.3.2 → 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.d.ts +13 -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.d.ts +7 -7
- package/dist/components/icon/icons/alert/notification-important.d.ts +1 -1
- package/dist/components/icon/icons/alert/warning-amber.d.ts +1 -1
- package/dist/components/icon/icons/alert/warning.d.ts +1 -1
- package/dist/components/icon/icons/content/clear.d.ts +1 -1
- package/dist/components/icon/icons/content/font-download.d.ts +1 -1
- package/dist/components/icon/icons/content/index.d.ts +5 -5
- package/dist/components/icon/icons/content/link-off.d.ts +1 -1
- package/dist/components/icon/icons/content/redo.d.ts +1 -1
- package/dist/components/icon/icons/content/undo.d.ts +1 -1
- package/dist/components/icon/icons/editor/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.d.ts +9 -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.d.ts +6 -6
- package/dist/components/icon/icons/hardware/keyboard-arrow-down.d.ts +1 -1
- package/dist/components/icon/icons/hardware/keyboard-arrow-left.d.ts +1 -1
- package/dist/components/icon/icons/hardware/keyboard-arrow-right.d.ts +1 -1
- package/dist/components/icon/icons/hardware/keyboard-arrow-up.d.ts +1 -1
- package/dist/components/icon/icons/hardware/keyboard-double-arrow-left.d.ts +1 -1
- package/dist/components/icon/icons/hardware/keyboard-double-arrow-right.d.ts +1 -1
- package/dist/components/icon/icons/image/bedtime.d.ts +1 -1
- package/dist/components/icon/icons/image/edit.d.ts +1 -1
- package/dist/components/icon/icons/image/index.d.ts +11 -11
- package/dist/components/icon/icons/image/looks-five.d.ts +1 -1
- package/dist/components/icon/icons/image/looks-four.d.ts +1 -1
- package/dist/components/icon/icons/image/looks-one.d.ts +1 -1
- package/dist/components/icon/icons/image/looks-six.d.ts +1 -1
- package/dist/components/icon/icons/image/looks-three.d.ts +1 -1
- package/dist/components/icon/icons/image/looks-two.d.ts +1 -1
- package/dist/components/icon/icons/image/rotate-left.d.ts +1 -1
- package/dist/components/icon/icons/image/rotate-right.d.ts +1 -1
- package/dist/components/icon/icons/image/wb-sunny.d.ts +1 -1
- package/dist/components/icon/icons/mock/github.d.ts +1 -1
- package/dist/components/icon/icons/mock/index.d.ts +2 -2
- package/dist/components/icon/icons/mock/loading.d.ts +1 -1
- package/dist/components/icon/icons/navigation/cancel.d.ts +1 -1
- package/dist/components/icon/icons/navigation/check.d.ts +1 -1
- package/dist/components/icon/icons/navigation/close.d.ts +1 -1
- package/dist/components/icon/icons/navigation/index.d.ts +5 -5
- package/dist/components/icon/icons/navigation/more-horiz.d.ts +1 -1
- package/dist/components/icon/icons/navigation/unfold-more.d.ts +1 -1
- package/dist/components/icon/icons/three-dimension-rotation.d.ts +1 -1
- package/dist/components/icon/icons/toggle/index.d.ts +3 -3
- package/dist/components/icon/icons/toggle/star-half.d.ts +1 -1
- package/dist/components/icon/icons/toggle/star-outline.d.ts +1 -1
- package/dist/components/icon/icons/toggle/star.d.ts +1 -1
- package/dist/components/icon/index.d.ts +0 -5
- package/dist/components/image/hooks.d.ts +1 -1
- package/dist/components/image/image.cjs +2 -2
- package/dist/components/image/image.d.ts +1 -1
- package/dist/components/image/image.mjs +2 -2
- package/dist/components/image/index.d.ts +2 -2
- package/dist/components/image/preview/context.d.ts +1 -1
- package/dist/components/image/preview/group.d.ts +1 -1
- package/dist/components/image/preview/operations.d.ts +1 -1
- package/dist/components/image/preview/preview.d.ts +1 -1
- package/dist/components/input/hooks.d.ts +1 -1
- package/dist/components/input/index.d.ts +1 -2
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/kbd/kbd.d.ts +1 -1
- package/dist/components/kbd/utils.d.ts +1 -1
- package/dist/components/layout/footer.d.ts +1 -1
- package/dist/components/layout/header.d.ts +1 -1
- package/dist/components/layout/index.d.ts +1 -1
- package/dist/components/layout/layout.d.ts +1 -1
- package/dist/components/layout/main.d.ts +1 -1
- package/dist/components/layout/sider.d.ts +1 -1
- package/dist/components/loading/loading.d.ts +1 -1
- package/dist/components/menu/hooks.cjs +7 -7
- package/dist/components/menu/hooks.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/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 +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- 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/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 +1 -1
- 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/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,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;
|
|
@@ -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;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
1
2
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
2
3
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
4
|
import React, { forwardRef, useRef, useImperativeHandle } from 'react';
|
|
@@ -11,7 +12,7 @@ import { ClickableLinkPlugin } from '@lexical/react/LexicalClickableLinkPlugin';
|
|
|
11
12
|
import { ListPlugin } from '@lexical/react/LexicalListPlugin';
|
|
12
13
|
import CheckListPlugin from './plugins/check-list/index.mjs';
|
|
13
14
|
import ControlledStatePlugin from './plugins/controlled-state/index.mjs';
|
|
14
|
-
import { useIdentity, useDefault } from '@aiszlab/relax';
|
|
15
|
+
import { useIdentity, useDefault, clsx } from '@aiszlab/relax';
|
|
15
16
|
import { useMessage } from '../message/hooks.mjs';
|
|
16
17
|
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
17
18
|
import { useTheme } from '../theme/hooks.mjs';
|
|
@@ -29,7 +30,7 @@ import '../checkbox/index.mjs';
|
|
|
29
30
|
import { $convertFromMarkdownString } from '@lexical/markdown';
|
|
30
31
|
import styles$1 from '../checkbox/styles.mjs';
|
|
31
32
|
|
|
32
|
-
var _excluded = ["placeholder", "disabled", "defaultValue", "onChange", "value"];
|
|
33
|
+
var _excluded = ["placeholder", "disabled", "defaultValue", "onChange", "value", "className", "style"];
|
|
33
34
|
var styles = {
|
|
34
35
|
shell: function shell(props) {
|
|
35
36
|
return [{
|
|
@@ -79,7 +80,9 @@ var RichTextEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
79
80
|
defaultValue = _ref.defaultValue,
|
|
80
81
|
onChange = _ref.onChange;
|
|
81
82
|
_ref.value;
|
|
82
|
-
var
|
|
83
|
+
var className = _ref.className,
|
|
84
|
+
style = _ref.style,
|
|
85
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
83
86
|
var _useIdentity = useIdentity(),
|
|
84
87
|
_useIdentity2 = _slicedToArray(_useIdentity, 1),
|
|
85
88
|
id = _useIdentity2[0];
|
|
@@ -103,7 +106,7 @@ var RichTextEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
103
106
|
codeBackgroundColor: theme.colors[ColorToken.SurfaceContainerHighest]
|
|
104
107
|
})),
|
|
105
108
|
editor: {
|
|
106
|
-
className: "musaex-1a2a7pz musaex-y0sash musaex-1vgzror musaex-igxgg9 musaex-
|
|
109
|
+
className: "musaex-1a2a7pz musaex-y0sash musaex-1vgzror musaex-igxgg9 musaex-ktxt4i"
|
|
107
110
|
},
|
|
108
111
|
h1: _stylex.props(typography.display.large),
|
|
109
112
|
h2: _stylex.props(typography.display.medium),
|
|
@@ -193,8 +196,8 @@ var RichTextEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
193
196
|
return /*#__PURE__*/React.createElement(LexicalComposer, {
|
|
194
197
|
initialConfig: initialConfig
|
|
195
198
|
}, /*#__PURE__*/React.createElement("div", {
|
|
196
|
-
className: styled.shell.className,
|
|
197
|
-
style: styled.shell.style
|
|
199
|
+
className: clsx(className, styled.shell.className),
|
|
200
|
+
style: _objectSpread(_objectSpread({}, styled.shell.style), style)
|
|
198
201
|
}, !disabled && /*#__PURE__*/React.createElement(ToolbarPlugin, null), /*#__PURE__*/React.createElement(RichTextPlugin, {
|
|
199
202
|
contentEditable: /*#__PURE__*/React.createElement(ContentEditable, {
|
|
200
203
|
className: styled.editor.className,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Key } from "react";
|
|
2
|
-
import type { Mode, ReadableOptions, SelectProps, ValueOrValues } from "
|
|
2
|
+
import type { Mode, ReadableOptions, SelectProps, ValueOrValues } from "musae/types/select";
|
|
3
3
|
import type { Option } from "musae/types/option";
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
@@ -66,12 +66,15 @@ var Select = function Select(_ref) {
|
|
|
66
66
|
className: "musaex-1pgy25r"
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
+
var selectedKeys = React.useMemo(function () {
|
|
70
|
+
return Array.from(readableValues.keys());
|
|
71
|
+
}, [readableValues]);
|
|
69
72
|
return /*#__PURE__*/React.createElement(picker.default, _objectSpread({
|
|
70
73
|
ref: ref,
|
|
71
74
|
pickable: /*#__PURE__*/React.createElement(selections.default, {
|
|
72
75
|
items: menuItems,
|
|
73
76
|
onSelect: onChange,
|
|
74
|
-
selectedKeys:
|
|
77
|
+
selectedKeys: selectedKeys
|
|
75
78
|
}),
|
|
76
79
|
className: relax.clsx(classNames[className.SelectClassToken.Select], className$1, styled.picker.className),
|
|
77
80
|
style: _objectSpread(_objectSpread({}, styled.picker.style), style),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
|
-
import React, { useRef, useCallback } from 'react';
|
|
2
|
+
import React, { useRef, useCallback, useMemo } from 'react';
|
|
3
3
|
import Picker from '../picker/picker.mjs';
|
|
4
4
|
import { useOptions, useValue } from './hooks.mjs';
|
|
5
5
|
import { SelectClassToken } from '../../utils/class-name.mjs';
|
|
@@ -64,12 +64,15 @@ var Select = function Select(_ref) {
|
|
|
64
64
|
className: "musaex-1pgy25r"
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
+
var selectedKeys = useMemo(function () {
|
|
68
|
+
return Array.from(readableValues.keys());
|
|
69
|
+
}, [readableValues]);
|
|
67
70
|
return /*#__PURE__*/React.createElement(Picker, _objectSpread({
|
|
68
71
|
ref: ref,
|
|
69
72
|
pickable: /*#__PURE__*/React.createElement(Selections, {
|
|
70
73
|
items: menuItems,
|
|
71
74
|
onSelect: onChange,
|
|
72
|
-
selectedKeys:
|
|
75
|
+
selectedKeys: selectedKeys
|
|
73
76
|
}),
|
|
74
77
|
className: clsx(classNames[SelectClassToken.Select], className, styled.picker.className),
|
|
75
78
|
style: _objectSpread(_objectSpread({}, styled.picker.style), style),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type ForwardRefExoticComponent, type PropsWithoutRef, type RefAttributes } from "react";
|
|
2
|
-
import type { SelectorProps, SelectorRef } from "
|
|
2
|
+
import type { SelectorProps, SelectorRef } from "musae/types/select";
|
|
3
3
|
declare const Selector: ForwardRefExoticComponent<PropsWithoutRef<SelectorProps> & RefAttributes<SelectorRef>>;
|
|
4
4
|
export default Selector;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Filter, ReadableOptions, ToMenuItem, Value, ValueOrValues } from "
|
|
1
|
+
import type { Filter, ReadableOptions, ToMenuItem, Value, ValueOrValues } from "musae/types/select";
|
|
2
2
|
import type { Option } from "musae/types/option";
|
|
3
3
|
import type { MenuItem } from "musae/types/menu";
|
|
4
4
|
/**
|
|
@@ -6,9 +6,22 @@ var React = require('react');
|
|
|
6
6
|
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
7
7
|
var className = require('../../utils/class-name.cjs');
|
|
8
8
|
var relax = require('@aiszlab/relax');
|
|
9
|
+
var tokens_stylex = require('../theme/tokens.stylex.cjs');
|
|
9
10
|
var componentToken = require('../../utils/component-token.cjs');
|
|
11
|
+
var hooks = require('../theme/hooks.cjs');
|
|
12
|
+
var colors = require('../../utils/colors.cjs');
|
|
10
13
|
|
|
11
14
|
var styles = {
|
|
15
|
+
variables: function variables(props) {
|
|
16
|
+
return [{
|
|
17
|
+
"--shadow": "musaex-36wvql",
|
|
18
|
+
"--lighter-shadow": "musaex-p8ugqh",
|
|
19
|
+
$$css: true
|
|
20
|
+
}, {
|
|
21
|
+
"----shadow": props.shadow != null ? props.shadow : "initial",
|
|
22
|
+
"----lighter-shadow": props.lighterShadow != null ? props.lighterShadow : "initial"
|
|
23
|
+
}];
|
|
24
|
+
},
|
|
12
25
|
title: {
|
|
13
26
|
width: "musaex-1fvqbsf",
|
|
14
27
|
height: "musaex-1bti5vo",
|
|
@@ -52,7 +65,7 @@ var styles = {
|
|
|
52
65
|
$$css: true
|
|
53
66
|
},
|
|
54
67
|
skeleton: {
|
|
55
|
-
background: "musaex-
|
|
68
|
+
background: "musaex-uwpeme",
|
|
56
69
|
backgroundAttachment: null,
|
|
57
70
|
backgroundClip: null,
|
|
58
71
|
backgroundColor: null,
|
|
@@ -66,7 +79,7 @@ var styles = {
|
|
|
66
79
|
$$css: true
|
|
67
80
|
},
|
|
68
81
|
animation: {
|
|
69
|
-
background: "musaex-
|
|
82
|
+
background: "musaex-1br516c",
|
|
70
83
|
backgroundAttachment: null,
|
|
71
84
|
backgroundClip: null,
|
|
72
85
|
backgroundColor: null,
|
|
@@ -91,7 +104,11 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
91
104
|
className$1 = _ref.className,
|
|
92
105
|
style = _ref.style;
|
|
93
106
|
var classNames = useClassNames.useClassNames(componentToken.ComponentToken.Skeleton);
|
|
94
|
-
var
|
|
107
|
+
var theme = hooks.useTheme();
|
|
108
|
+
var styled = stylex.default.props(styles.variables({
|
|
109
|
+
shadow: colors.toRgba(theme.colors.shadow, tokens_stylex.OPACITY.thin),
|
|
110
|
+
lighterShadow: colors.toRgba(theme.colors.shadow, tokens_stylex.OPACITY.thick)
|
|
111
|
+
}), !!variant && styles[variant], animation && styles.animation);
|
|
95
112
|
return /*#__PURE__*/React.createElement("div", {
|
|
96
113
|
className: relax.clsx(classNames[className.SkeletonClassToken.Skeleton], className$1, styled.className),
|
|
97
114
|
style: _objectSpread(_objectSpread({}, styled.style), style)
|