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,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)
|
|
@@ -4,9 +4,22 @@ import React from 'react';
|
|
|
4
4
|
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
5
5
|
import { SkeletonClassToken } from '../../utils/class-name.mjs';
|
|
6
6
|
import { clsx } from '@aiszlab/relax';
|
|
7
|
+
import { OPACITY } from '../theme/tokens.stylex.mjs';
|
|
7
8
|
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
9
|
+
import { useTheme } from '../theme/hooks.mjs';
|
|
10
|
+
import { toRgba } from '../../utils/colors.mjs';
|
|
8
11
|
|
|
9
12
|
var styles = {
|
|
13
|
+
variables: function variables(props) {
|
|
14
|
+
return [{
|
|
15
|
+
"--shadow": "musaex-36wvql",
|
|
16
|
+
"--lighter-shadow": "musaex-p8ugqh",
|
|
17
|
+
$$css: true
|
|
18
|
+
}, {
|
|
19
|
+
"----shadow": props.shadow != null ? props.shadow : "initial",
|
|
20
|
+
"----lighter-shadow": props.lighterShadow != null ? props.lighterShadow : "initial"
|
|
21
|
+
}];
|
|
22
|
+
},
|
|
10
23
|
title: {
|
|
11
24
|
width: "musaex-1fvqbsf",
|
|
12
25
|
height: "musaex-1bti5vo",
|
|
@@ -50,7 +63,7 @@ var styles = {
|
|
|
50
63
|
$$css: true
|
|
51
64
|
},
|
|
52
65
|
skeleton: {
|
|
53
|
-
background: "musaex-
|
|
66
|
+
background: "musaex-uwpeme",
|
|
54
67
|
backgroundAttachment: null,
|
|
55
68
|
backgroundClip: null,
|
|
56
69
|
backgroundColor: null,
|
|
@@ -64,7 +77,7 @@ var styles = {
|
|
|
64
77
|
$$css: true
|
|
65
78
|
},
|
|
66
79
|
animation: {
|
|
67
|
-
background: "musaex-
|
|
80
|
+
background: "musaex-1br516c",
|
|
68
81
|
backgroundAttachment: null,
|
|
69
82
|
backgroundClip: null,
|
|
70
83
|
backgroundColor: null,
|
|
@@ -89,7 +102,11 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
89
102
|
className = _ref.className,
|
|
90
103
|
style = _ref.style;
|
|
91
104
|
var classNames = useClassNames(ComponentToken.Skeleton);
|
|
92
|
-
var
|
|
105
|
+
var theme = useTheme();
|
|
106
|
+
var styled = _stylex.props(styles.variables({
|
|
107
|
+
shadow: toRgba(theme.colors.shadow, OPACITY.thin),
|
|
108
|
+
lighterShadow: toRgba(theme.colors.shadow, OPACITY.thick)
|
|
109
|
+
}), !!variant && styles[variant], animation && styles.animation);
|
|
93
110
|
return /*#__PURE__*/React.createElement("div", {
|
|
94
111
|
className: clsx(classNames[SkeletonClassToken.Skeleton], className, styled.className),
|
|
95
112
|
style: _objectSpread(_objectSpread({}, styled.style), style)
|
|
@@ -5,11 +5,11 @@ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var relax = require('@aiszlab/relax');
|
|
7
7
|
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
8
|
+
var tokens_stylex = require('../theme/tokens.stylex.cjs');
|
|
8
9
|
var hooks = require('../theme/hooks.cjs');
|
|
9
10
|
var colors = require('../../utils/colors.cjs');
|
|
10
11
|
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
11
12
|
var className = require('../../utils/class-name.cjs');
|
|
12
|
-
var layer = require('../../utils/layer.cjs');
|
|
13
13
|
var componentToken = require('../../utils/component-token.cjs');
|
|
14
14
|
var check = require('../icon/icons/navigation/check.cjs');
|
|
15
15
|
var close = require('../icon/icons/navigation/close.cjs');
|
|
@@ -139,7 +139,7 @@ var styles = {
|
|
|
139
139
|
$$css: true
|
|
140
140
|
},
|
|
141
141
|
disabled: {
|
|
142
|
-
opacity: "musaex-
|
|
142
|
+
opacity: "musaex-1n1gcw9",
|
|
143
143
|
$$css: true
|
|
144
144
|
},
|
|
145
145
|
checked: function checked(props) {
|
|
@@ -258,28 +258,28 @@ var Switch = function Switch(_ref) {
|
|
|
258
258
|
backgroundColor: theme.colors[colors.ColorToken.SurfaceContainerHighest],
|
|
259
259
|
color: theme.colors[colors.ColorToken.OnSurfaceVariant]
|
|
260
260
|
}, disabled && {
|
|
261
|
-
borderColor:
|
|
262
|
-
backgroundColor:
|
|
263
|
-
color:
|
|
261
|
+
borderColor: colors.toRgba(theme.colors[colors.ColorToken.OnSurface], tokens_stylex.OPACITY.medium),
|
|
262
|
+
backgroundColor: colors.toRgba(theme.colors[colors.ColorToken.SurfaceVariant], tokens_stylex.OPACITY.medium),
|
|
263
|
+
color: colors.toRgba(theme.colors[colors.ColorToken.OnSurface], tokens_stylex.OPACITY.thicker)
|
|
264
264
|
})), isChecked && styles["switch"].checked(_objectSpread({
|
|
265
265
|
backgroundColor: theme.colors[colors.ColorToken.Primary],
|
|
266
266
|
color: theme.colors[colors.ColorToken.OnPrimary]
|
|
267
267
|
}, disabled && {
|
|
268
|
-
backgroundColor:
|
|
268
|
+
backgroundColor: colors.toRgba(theme.colors[colors.ColorToken.OnSurface], tokens_stylex.OPACITY.medium),
|
|
269
269
|
color: theme.colors[colors.ColorToken.Surface]
|
|
270
270
|
})), disabled && styles["switch"].disabled),
|
|
271
271
|
slider: stylex.default.props(styles.slider.normal(_objectSpread({
|
|
272
272
|
backgroundColor: theme.colors[colors.ColorToken.OnSurfaceVariant],
|
|
273
273
|
color: theme.colors[colors.ColorToken.SurfaceContainerHighest]
|
|
274
274
|
}, disabled && {
|
|
275
|
-
backgroundColor:
|
|
275
|
+
backgroundColor: colors.toRgba(theme.colors[colors.ColorToken.OnSurface], tokens_stylex.OPACITY.thicker),
|
|
276
276
|
color: theme.colors[colors.ColorToken.SurfaceContainerHighest]
|
|
277
277
|
})), icon && styles.slider.icon, disabled && styles.slider.disabled, isChecked && styles.slider.checked(_objectSpread({
|
|
278
278
|
backgroundColor: theme.colors[colors.ColorToken.OnPrimary],
|
|
279
279
|
color: theme.colors[colors.ColorToken.OnPrimaryContainer]
|
|
280
280
|
}, disabled && {
|
|
281
281
|
backgroundColor: theme.colors[colors.ColorToken.Surface],
|
|
282
|
-
color:
|
|
282
|
+
color: colors.toRgba(theme.colors[colors.ColorToken.OnSurface], tokens_stylex.OPACITY.thicker)
|
|
283
283
|
}))),
|
|
284
284
|
supporting: stylex.default.props(styles.supporting["default"], isChecked && styles.supporting.checked),
|
|
285
285
|
leading: stylex.default.props(styles.supporting.child, styles.leading["default"], isChecked && styles.leading.checked),
|
|
@@ -3,11 +3,11 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { useControlledState, useEvent, clsx } from '@aiszlab/relax';
|
|
5
5
|
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
6
|
+
import { OPACITY } from '../theme/tokens.stylex.mjs';
|
|
6
7
|
import { useTheme } from '../theme/hooks.mjs';
|
|
7
|
-
import { ColorToken } from '../../utils/colors.mjs';
|
|
8
|
+
import { ColorToken, toRgba } from '../../utils/colors.mjs';
|
|
8
9
|
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
9
10
|
import { SwitchClassToken } from '../../utils/class-name.mjs';
|
|
10
|
-
import { layer } from '../../utils/layer.mjs';
|
|
11
11
|
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
12
12
|
import Check from '../icon/icons/navigation/check.mjs';
|
|
13
13
|
import Close from '../icon/icons/navigation/close.mjs';
|
|
@@ -137,7 +137,7 @@ var styles = {
|
|
|
137
137
|
$$css: true
|
|
138
138
|
},
|
|
139
139
|
disabled: {
|
|
140
|
-
opacity: "musaex-
|
|
140
|
+
opacity: "musaex-1n1gcw9",
|
|
141
141
|
$$css: true
|
|
142
142
|
},
|
|
143
143
|
checked: function checked(props) {
|
|
@@ -256,28 +256,28 @@ var Switch = function Switch(_ref) {
|
|
|
256
256
|
backgroundColor: theme.colors[ColorToken.SurfaceContainerHighest],
|
|
257
257
|
color: theme.colors[ColorToken.OnSurfaceVariant]
|
|
258
258
|
}, disabled && {
|
|
259
|
-
borderColor:
|
|
260
|
-
backgroundColor:
|
|
261
|
-
color:
|
|
259
|
+
borderColor: toRgba(theme.colors[ColorToken.OnSurface], OPACITY.medium),
|
|
260
|
+
backgroundColor: toRgba(theme.colors[ColorToken.SurfaceVariant], OPACITY.medium),
|
|
261
|
+
color: toRgba(theme.colors[ColorToken.OnSurface], OPACITY.thicker)
|
|
262
262
|
})), isChecked && styles["switch"].checked(_objectSpread({
|
|
263
263
|
backgroundColor: theme.colors[ColorToken.Primary],
|
|
264
264
|
color: theme.colors[ColorToken.OnPrimary]
|
|
265
265
|
}, disabled && {
|
|
266
|
-
backgroundColor:
|
|
266
|
+
backgroundColor: toRgba(theme.colors[ColorToken.OnSurface], OPACITY.medium),
|
|
267
267
|
color: theme.colors[ColorToken.Surface]
|
|
268
268
|
})), disabled && styles["switch"].disabled),
|
|
269
269
|
slider: _stylex.props(styles.slider.normal(_objectSpread({
|
|
270
270
|
backgroundColor: theme.colors[ColorToken.OnSurfaceVariant],
|
|
271
271
|
color: theme.colors[ColorToken.SurfaceContainerHighest]
|
|
272
272
|
}, disabled && {
|
|
273
|
-
backgroundColor:
|
|
273
|
+
backgroundColor: toRgba(theme.colors[ColorToken.OnSurface], OPACITY.thicker),
|
|
274
274
|
color: theme.colors[ColorToken.SurfaceContainerHighest]
|
|
275
275
|
})), icon && styles.slider.icon, disabled && styles.slider.disabled, isChecked && styles.slider.checked(_objectSpread({
|
|
276
276
|
backgroundColor: theme.colors[ColorToken.OnPrimary],
|
|
277
277
|
color: theme.colors[ColorToken.OnPrimaryContainer]
|
|
278
278
|
}, disabled && {
|
|
279
279
|
backgroundColor: theme.colors[ColorToken.Surface],
|
|
280
|
-
color:
|
|
280
|
+
color: toRgba(theme.colors[ColorToken.OnSurface], OPACITY.thicker)
|
|
281
281
|
}))),
|
|
282
282
|
supporting: _stylex.props(styles.supporting["default"], isChecked && styles.supporting.checked),
|
|
283
283
|
leading: _stylex.props(styles.supporting.child, styles.leading["default"], isChecked && styles.leading.checked),
|
|
@@ -58,7 +58,14 @@ var sizes = {
|
|
|
58
58
|
auto: "var(--musaex-1yg5bqe)",
|
|
59
59
|
__themeName__: "musaex-qhz0mn"
|
|
60
60
|
};
|
|
61
|
+
var OPACITY = {
|
|
62
|
+
thin: 0.08,
|
|
63
|
+
medium: 0.12,
|
|
64
|
+
thick: 0.16,
|
|
65
|
+
thicker: 0.38
|
|
66
|
+
};
|
|
61
67
|
|
|
68
|
+
exports.OPACITY = OPACITY;
|
|
62
69
|
exports.elevations = elevations;
|
|
63
70
|
exports.sizes = sizes;
|
|
64
71
|
exports.spacing = spacing;
|
|
@@ -90,11 +90,13 @@ export declare const positions: import("@stylexjs/stylex").VarGroup<Readonly<{
|
|
|
90
90
|
}>, symbol>;
|
|
91
91
|
/**
|
|
92
92
|
* @description
|
|
93
|
-
*
|
|
93
|
+
* opacity
|
|
94
94
|
*/
|
|
95
|
-
export
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
95
|
+
export type OpacityToken = "thin" | "medium" | "thick" | "thicker";
|
|
96
|
+
export declare const OPACITY: Record<OpacityToken, number>;
|
|
97
|
+
export declare const opacity: import("@stylexjs/stylex").VarGroup<Readonly<{
|
|
98
|
+
medium: number;
|
|
99
|
+
thin: number;
|
|
100
|
+
thick: number;
|
|
101
|
+
thicker: number;
|
|
100
102
|
}>, symbol>;
|
|
@@ -58,5 +58,11 @@ var sizes = {
|
|
|
58
58
|
auto: "var(--musaex-1yg5bqe)",
|
|
59
59
|
__themeName__: "musaex-qhz0mn"
|
|
60
60
|
};
|
|
61
|
+
var OPACITY = {
|
|
62
|
+
thin: 0.08,
|
|
63
|
+
medium: 0.12,
|
|
64
|
+
thick: 0.16,
|
|
65
|
+
thicker: 0.38
|
|
66
|
+
};
|
|
61
67
|
|
|
62
|
-
export { elevations, sizes, spacing };
|
|
68
|
+
export { OPACITY, elevations, sizes, spacing };
|
|
@@ -256,8 +256,14 @@ export declare const useClassNames: <T extends ComponentToken = ComponentToken>(
|
|
|
256
256
|
0: string;
|
|
257
257
|
1: string;
|
|
258
258
|
};
|
|
259
|
-
45: {
|
|
259
|
+
45: {
|
|
260
|
+
0: string;
|
|
261
|
+
};
|
|
260
262
|
46: {
|
|
261
263
|
0: string;
|
|
262
264
|
};
|
|
265
|
+
47: {
|
|
266
|
+
0: string;
|
|
267
|
+
1: string;
|
|
268
|
+
};
|
|
263
269
|
}[T];
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
require("musae/styles")
|
|
2
2
|
var index = require('./components/avatar/index.cjs');
|
|
3
3
|
var index$1 = require('./components/radio/index.cjs');
|
|
4
4
|
var index$2 = require('./components/checkbox/index.cjs');
|
|
@@ -46,7 +46,7 @@ var progress = require('./components/progress/progress.cjs');
|
|
|
46
46
|
var popover = require('./components/popover/popover.cjs');
|
|
47
47
|
var watermark = require('./components/watermark/watermark.cjs');
|
|
48
48
|
var collapse = require('./components/collapse/collapse.cjs');
|
|
49
|
-
var
|
|
49
|
+
var fab = require('./components/fab/fab.cjs');
|
|
50
50
|
var transfer = require('./components/transfer/transfer.cjs');
|
|
51
51
|
var badge = require('./components/badge/badge.cjs');
|
|
52
52
|
var skeleton = require('./components/skeleton/skeleton.cjs');
|
|
@@ -112,7 +112,7 @@ exports.Progress = progress.default;
|
|
|
112
112
|
exports.Popover = popover.default;
|
|
113
113
|
exports.Watermark = watermark.default;
|
|
114
114
|
exports.Collapse = collapse.default;
|
|
115
|
-
exports.
|
|
115
|
+
exports.Fab = fab.default;
|
|
116
116
|
exports.Transfer = transfer.default;
|
|
117
117
|
exports.Badge = badge.default;
|
|
118
118
|
exports.Skeleton = skeleton.default;
|
package/dist/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export { Progress } from "./components/progress";
|
|
|
48
48
|
export { Popover } from "./components/popover";
|
|
49
49
|
export { Watermark } from "./components/watermark";
|
|
50
50
|
export { Collapse } from "./components/collapse";
|
|
51
|
-
export {
|
|
51
|
+
export { Fab } from "./components/fab";
|
|
52
52
|
export { Transfer } from "./components/transfer";
|
|
53
53
|
export { Badge } from "./components/badge";
|
|
54
54
|
export { Skeleton } from "./components/skeleton";
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "musae/styles
|
|
1
|
+
import "musae/styles";
|
|
2
2
|
export { Avatar } from './components/avatar/index.mjs';
|
|
3
3
|
export { Radio } from './components/radio/index.mjs';
|
|
4
4
|
export { Checkbox } from './components/checkbox/index.mjs';
|
|
@@ -46,7 +46,7 @@ export { default as Progress } from './components/progress/progress.mjs';
|
|
|
46
46
|
export { default as Popover } from './components/popover/popover.mjs';
|
|
47
47
|
export { default as Watermark } from './components/watermark/watermark.mjs';
|
|
48
48
|
export { default as Collapse } from './components/collapse/collapse.mjs';
|
|
49
|
-
export { default as
|
|
49
|
+
export { default as Fab } from './components/fab/fab.mjs';
|
|
50
50
|
export { default as Transfer } from './components/transfer/transfer.mjs';
|
|
51
51
|
export { default as Badge } from './components/badge/badge.mjs';
|
|
52
52
|
export { default as Skeleton } from './components/skeleton/skeleton.mjs';
|
package/dist/locale/context.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type Locale } from "
|
|
1
|
+
import { type Locale } from "musae/types/locale";
|
|
2
2
|
export declare const LocaleContext: import("react").Context<Locale>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Locale, LocaleCode } from "
|
|
1
|
+
import type { Locale, LocaleCode } from "musae/types/locale";
|
|
2
2
|
export type LocaleComponentToken = Exclude<keyof Locale, "locale">;
|
|
3
3
|
type UsedLocale<C extends LocaleComponentToken> = [Locale[C], LocaleCode];
|
|
4
4
|
export declare const useLocale: <C extends LocaleComponentToken = LocaleComponentToken>(componentName: C) => UsedLocale<C>;
|
package/dist/styles.css
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
:root{--musaex-127010g:-1;--musaex-1vh8wei:1;--musaex-11upij1:50;--musaex-oqacdq:60;--musaex-if0yew:990;--musaex-9gpkaf:1080;--musaex-80rspi:1080;--musaex-ah5ngi:1080;--musaex-ymrixl:1080;--musaex-1tyqau6:1090;--musaex-7fr0d6:1200;--musaex-dlxqgz:9999;}
|
|
2
2
|
:root{--musaex-1aj7t22:0px;--musaex-1ax7z96:1px;--musaex-jdzqnm:2px;--musaex-1hydgie:4px;--musaex-fwu7zn:8px;--musaex-1l9c3uf:16px;--musaex-cx2xv5:20px;--musaex-rlgvtq:24px;--musaex-1qsoxbc:28px;--musaex-16n5srz:32px;--musaex-wll1cf:36px;--musaex-cftog7:40px;--musaex-laggmb:48px;--musaex-xrqq76:64px;--musaex-1spnrok:96px;--musaex-11uhodo:120px;--musaex-2h23ia:190px;--musaex-1rrllem:calc(Infinity * 1px);--musaex-1qj6wod:100%;--musaex-70uu0v:50%;--musaex-1yg5bqe:auto;}
|
|
3
|
-
:root{--musaex-
|
|
3
|
+
:root{--musaex-1f2azoo:0.08;--musaex-1wowidf:0.12;--musaex-1ap209q:0.16;--musaex-1itczwt:0.38;}
|
|
4
4
|
:root{--musaex-1odcd6w:0px;--musaex-bbiwro:0.1px;--musaex-1x9q6du:0.15px;--musaex-1fsxyg9:0.25px;--musaex-2s74kj:0.4px;--musaex-1ry795:0.5px;}
|
|
5
5
|
:root{--musaex-1wblvyz:0px;--musaex-dojqt2:1px;--musaex-1h5s2h0:2px;--musaex-qk2ac7:4px;--musaex-h30iw9:6px;--musaex-vk5id6:8px;--musaex-1ncxh3n:12px;--musaex-oohzsl:16px;--musaex-1tzp6vk:24px;--musaex-15cw4i4:32px;--musaex-1n7xs5j:48px;--musaex-68a8pz:auto;}
|
|
6
6
|
:root{--musaex-gmufu8:none;--musaex-15zostt:rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;--musaex-1trg6py:rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px 0px;--musaex-4poz8g:rgba(0, 0, 0, 0.2) 0px 3px 5px -1px, rgba(0, 0, 0, 0.14) 0px 6px 10px 0px, rgba(0, 0, 0, 0.12) 0px 1px 18px 0px;--musaex-1vq77kn:rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;--musaex-1yt3x0a:rgba(0, 0, 0, 0.2) 0px 7px 8px -4px, rgba(0, 0, 0, 0.14) 0px 12px 17px 2px, rgba(0, 0, 0, 0.12) 0px 5px 22px 4px;}
|
|
7
7
|
.musaex-1gm2eyx{--code-background-color:var(----code-background-color,revert)}
|
|
8
|
+
.musaex-p8ugqh{--lighter-shadow:var(----lighter-shadow,revert)}
|
|
8
9
|
.musaex-1i66ttz{--on-primary-color:var(----on-primary-color,revert)}
|
|
9
10
|
.musaex-1x71zss{--outline-color:var(----outline-color,revert)}
|
|
10
11
|
.musaex-1w3qx2l{--primary-color:var(----primary-color,revert)}
|
|
12
|
+
.musaex-36wvql{--shadow:var(----shadow,revert)}
|
|
11
13
|
@keyframes musaex-1928g5l-B{from{background-position:100% 50%;}100%{background-position:0 50%;}}
|
|
12
14
|
@keyframes musaex-r5zuwi-B{from{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-110;}12%{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-110;}20%{stroke-dasharray:20 200;stroke-width:30px;stroke-dashoffset:-115;}40%{stroke-dasharray:20 200;stroke-width:30px;stroke-dashoffset:-195;}48%{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-220;}62%{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-220;}70%{stroke-dasharray:20 200;stroke-width:30px;stroke-dashoffset:-225;}90%{stroke-dasharray:20 200;stroke-width:30px;stroke-dashoffset:-305;}98%{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-330;}to{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-330;}}
|
|
13
15
|
@keyframes musaex-f6d5zf-B{from{stroke-dasharray:0 440;stroke-width:20px;stroke-dashoffset:0;}8%{stroke-dasharray:40 400;stroke-width:30px;stroke-dashoffset:-5;}28%{stroke-dasharray:40 400;stroke-width:30px;stroke-dashoffset:-175;}36%{stroke-dasharray:0 440;stroke-width:20px;stroke-dashoffset:-220;}58%{stroke-dasharray:0 440;stroke-width:20px;stroke-dashoffset:-220;}66%{stroke-dasharray:40 400;stroke-width:30px;stroke-dashoffset:-225;}86%{stroke-dasharray:40 400;stroke-width:30px;stroke-dashoffset:-395;}94%{stroke-dasharray:0 440;stroke-width:20px;stroke-dashoffset:-440;}to{stroke-dasharray:0 440;stroke-width:20px;stroke-dashoffset:-440;}}
|
|
@@ -15,8 +17,8 @@
|
|
|
15
17
|
@keyframes musaex-rw80zm-B{from{stroke-dasharray:0 660;stroke-width:20px;stroke-dashoffset:-330;}4%{stroke-dasharray:0 660;stroke-width:20px;stroke-dashoffset:-330;}12%{stroke-dasharray:60 600;stroke-width:30px;stroke-dashoffset:-335;}32%{stroke-dasharray:60 600;stroke-width:30px;stroke-dashoffset:-595;}40%{stroke-dasharray:0 660;stroke-width:20px;stroke-dashoffset:-660;}54%{stroke-dasharray:0 660;stroke-width:20px;stroke-dashoffset:-660;}62%{stroke-dasharray:60 600;stroke-width:30px;stroke-dashoffset:-665;}82%{stroke-dasharray:60 600;stroke-width:30px;stroke-dashoffset:-925;}90%{stroke-dasharray:0 660;stroke-width:20px;stroke-dashoffset:-990;}to{stroke-dasharray:0 660;stroke-width:20px;stroke-dashoffset:-990;}}
|
|
16
18
|
@keyframes musaex-1fy8ia8-B{to{transform:rotate(360deg);}}
|
|
17
19
|
.musaex-1bu15qu:not(#\#){animation:musaex-1fy8ia8-B 1s infinite linear}
|
|
18
|
-
.musaex-
|
|
19
|
-
.musaex-
|
|
20
|
+
.musaex-1br516c:not(#\#){background:linear-gradient(90deg,var(--shadow) 25%,var(--lighter-shadow) 37%,var(--shadow) 63%)}
|
|
21
|
+
.musaex-uwpeme:not(#\#){background:var(--shadow)}
|
|
20
22
|
.musaex-1om8rk0:not(#\#){border-inline:var(--musaex-1ax7z96)}
|
|
21
23
|
.musaex-1gs6z28:not(#\#){border:none}
|
|
22
24
|
.musaex-firn0k:not(#\#){border:var(--musaex-1aj7t22)}
|
|
@@ -224,7 +226,7 @@
|
|
|
224
226
|
.musaex-byyjgo:not(#\#):not(#\#):not(#\#){opacity:.5}
|
|
225
227
|
.musaex-g01cxk:not(#\#):not(#\#):not(#\#){opacity:0}
|
|
226
228
|
.musaex-1hc1fzr:not(#\#):not(#\#):not(#\#){opacity:1}
|
|
227
|
-
.musaex-
|
|
229
|
+
.musaex-1n1gcw9:not(#\#):not(#\#):not(#\#){opacity:var(--musaex-1itczwt)}
|
|
228
230
|
.musaex-3x427e:not(#\#):not(#\#):not(#\#){order:var(--order,revert)}
|
|
229
231
|
.musaex-1jw8hb:not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--musaex-15cw4i4) / 2 - var(--musaex-jdzqnm))}
|
|
230
232
|
.musaex-naytfa:not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--musaex-rlgvtq) + var(--musaex-jdzqnm) * 4)}
|
|
@@ -364,9 +366,9 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
364
366
|
.musaex-fi9ciw:not(#\#):not(#\#):not(#\#):not(#\#){max-height:calc(100% - var(--musaex-15cw4i4) * 2)}
|
|
365
367
|
.musaex-16xn7b0:not(#\#):not(#\#):not(#\#):not(#\#){max-width:100vw}
|
|
366
368
|
.musaex-77asx0:not(#\#):not(#\#):not(#\#):not(#\#){max-width:var(--musaex-1qj6wod)}
|
|
367
|
-
.musaex-1y06zzy:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musaex-11uhodo)}
|
|
368
369
|
.musaex-tynr54:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musaex-16n5srz)}
|
|
369
370
|
.musaex-1mjul0d:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musaex-1spnrok)}
|
|
371
|
+
.musaex-ktxt4i:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musaex-2h23ia)}
|
|
370
372
|
.musaex-1p0x9m9:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musaex-cftog7)}
|
|
371
373
|
.musaex-1fdzm4i:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musaex-laggmb)}
|
|
372
374
|
.musaex-1ite1z3:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musaex-rlgvtq)}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "musae/types/element";
|
|
2
|
-
export
|
|
3
|
-
Hour = "hour",
|
|
4
|
-
Minute = "minute",
|
|
5
|
-
Second = "second"
|
|
6
|
-
}
|
|
2
|
+
export type TimeUnit = "hour" | "minute" | "second";
|
|
7
3
|
type Value = [number, number, number];
|
|
8
4
|
/**
|
|
9
5
|
* @description
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode, RefObject } from "react";
|
|
2
|
-
import type { CLASS_NAMES } from "
|
|
3
|
-
import type { HolderRef } from "
|
|
2
|
+
import type { CLASS_NAMES } from "../utils/class-name";
|
|
3
|
+
import type { HolderRef } from "./notification";
|
|
4
4
|
import type { Locale } from "musae/types/locale";
|
|
5
5
|
export type ClassNames = typeof CLASS_NAMES;
|
|
6
6
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ComponentProps } from "musae/types/element";
|
|
2
|
-
import { ButtonProps } from "
|
|
2
|
+
import { ButtonProps } from "./button";
|
|
3
3
|
/**
|
|
4
4
|
* @description
|
|
5
|
-
*
|
|
5
|
+
* countdown props
|
|
6
6
|
*/
|
|
7
|
-
export type
|
|
7
|
+
export type CountdownProps = Pick<ButtonProps, "children" | "disabled" | "variant" | "color" | "size" | "shape" | "ripple"> & ComponentProps & {
|
|
8
8
|
/**
|
|
9
9
|
* @description
|
|
10
10
|
* count total after every trigger
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties, ReactNode } from "react";
|
|
2
|
-
import type { Closable } from "
|
|
2
|
+
import type { Closable } from "../hooks/use-closable";
|
|
3
3
|
import type { RequiredIn } from "@aiszlab/relax/types";
|
|
4
|
-
import type { PortalProps } from "
|
|
4
|
+
import type { PortalProps } from "./portal";
|
|
5
5
|
import type { ComponentProps } from "musae/types/element";
|
|
6
6
|
/**
|
|
7
7
|
* @description
|