musae 0.3.3 → 0.3.5
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/button/button.cjs +11 -10
- package/dist/components/button/button.mjs +7 -6
- package/dist/components/calendar/contribution.cjs +251 -0
- package/dist/components/calendar/contribution.d.ts +13 -0
- package/dist/components/calendar/contribution.mjs +249 -0
- package/dist/components/calendar/index.d.ts +2 -1
- package/dist/components/config/provider.cjs +2 -2
- package/dist/components/config/provider.mjs +2 -2
- package/dist/components/drawer/popup.cjs +51 -17
- package/dist/components/drawer/popup.d.ts +1 -1
- package/dist/components/drawer/popup.mjs +51 -17
- package/dist/components/fab/floatable.d.ts +1 -1
- package/dist/components/icon/icons/action/delete.cjs +20 -0
- package/dist/components/icon/icons/action/delete.d.ts +3 -0
- package/dist/components/icon/icons/action/delete.mjs +18 -0
- package/dist/components/icon/icons/action/index.cjs +7 -1
- package/dist/components/icon/icons/action/index.d.ts +5 -1
- package/dist/components/icon/icons/action/index.mjs +6 -2
- package/dist/components/icon/icons/action/three-d-rotation.cjs +28 -0
- package/dist/components/icon/icons/action/three-d-rotation.d.ts +3 -0
- package/dist/components/icon/icons/action/three-d-rotation.mjs +26 -0
- package/dist/components/icon/icons/editor/attch-file.cjs +20 -0
- package/dist/components/icon/icons/editor/attch-file.d.ts +3 -0
- package/dist/components/icon/icons/editor/attch-file.mjs +18 -0
- package/dist/components/icon/icons/editor/index.cjs +4 -1
- package/dist/components/icon/icons/editor/index.d.ts +3 -1
- package/dist/components/icon/icons/editor/index.mjs +4 -2
- package/dist/components/icon/icons/index.cjs +6 -0
- package/dist/components/icon/icons/index.mjs +3 -0
- package/dist/components/menu/hooks.d.ts +1 -2
- package/dist/components/menu/item.d.ts +2 -3
- package/dist/components/pagination/pagination.cjs +1 -1
- package/dist/components/pagination/pagination.mjs +2 -2
- package/dist/components/popover/popover.cjs +1 -1
- package/dist/components/popover/popover.mjs +1 -1
- package/dist/components/popper/dropdown.cjs +44 -19
- package/dist/components/popper/dropdown.mjs +46 -21
- package/dist/components/popper/hooks.cjs +88 -89
- package/dist/components/popper/hooks.d.ts +7 -13
- package/dist/components/popper/hooks.mjs +91 -91
- package/dist/components/rich-text-editor/plugins/controlled-state/index.cjs +1 -2
- package/dist/components/rich-text-editor/plugins/controlled-state/index.mjs +1 -2
- package/dist/components/rich-text-editor/plugins/markdown-shortcut/index.cjs +5 -4
- package/dist/components/rich-text-editor/plugins/markdown-shortcut/index.d.ts +3 -3
- package/dist/components/rich-text-editor/plugins/markdown-shortcut/index.mjs +3 -4
- package/dist/components/rich-text-editor/rich-text-editor.cjs +5 -5
- package/dist/components/rich-text-editor/rich-text-editor.mjs +3 -3
- package/dist/components/select/utils.cjs +1 -3
- package/dist/components/select/utils.d.ts +1 -1
- package/dist/components/select/utils.mjs +2 -4
- package/dist/components/skeleton/skeleton.cjs +5 -48
- package/dist/components/skeleton/skeleton.d.ts +1 -1
- package/dist/components/skeleton/skeleton.mjs +5 -48
- package/dist/components/steps/context.d.ts +1 -1
- package/dist/components/steps/item.d.ts +1 -1
- package/dist/components/steps/steps.d.ts +1 -1
- package/dist/components/switch/switch.cjs +7 -6
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/switch/switch.mjs +8 -7
- package/dist/components/table/body.cjs +3 -1
- package/dist/components/table/body.mjs +3 -1
- package/dist/components/tabs/context.d.ts +1 -1
- package/dist/components/tabs/hooks.d.ts +2 -2
- package/dist/components/tabs/navigation.d.ts +1 -1
- package/dist/components/tabs/panels.d.ts +1 -1
- package/dist/components/tabs/tab.d.ts +1 -1
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tag/tag.d.ts +1 -1
- package/dist/components/theme/hooks.cjs +6 -6
- package/dist/components/theme/hooks.d.ts +1 -1
- package/dist/components/theme/hooks.mjs +6 -6
- package/dist/components/theme/theme-provider.cjs +12 -6
- package/dist/components/theme/theme-provider.d.ts +2 -2
- package/dist/components/theme/theme-provider.mjs +12 -6
- package/dist/components/time-picker/hooks.d.ts +1 -1
- package/dist/components/time-picker/panel.d.ts +1 -1
- package/dist/components/time-picker/time-picker.d.ts +1 -1
- package/dist/components/timeline/context.d.ts +1 -1
- package/dist/components/timeline/item.d.ts +1 -1
- package/dist/components/timeline/timeline.d.ts +1 -1
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/transfer/context.d.ts +1 -1
- package/dist/components/transfer/hooks.d.ts +1 -1
- package/dist/components/transfer/item.d.ts +1 -1
- package/dist/components/transfer/list.d.ts +1 -1
- package/dist/components/transfer/transfer.d.ts +1 -1
- package/dist/components/upload/upload.cjs +31 -6
- package/dist/components/upload/upload.d.ts +2 -2
- package/dist/components/upload/upload.mjs +31 -6
- package/dist/components/upload/uploadeds.cjs +119 -55
- package/dist/components/upload/uploadeds.d.ts +1 -1
- package/dist/components/upload/uploadeds.mjs +121 -57
- package/dist/components/upload/utils.cjs +9 -0
- package/dist/components/upload/utils.d.ts +6 -0
- package/dist/components/upload/utils.mjs +9 -0
- package/dist/components/visually-hidden/visually-hidden.d.ts +1 -1
- package/dist/components/waterfall/sequential.d.ts +1 -1
- package/dist/components/waterfall/waterfall.d.ts +1 -1
- package/dist/components/watermark/hooks.d.ts +1 -1
- package/dist/components/watermark/watermark.d.ts +1 -1
- package/dist/hooks/use-class-names.d.ts +1 -0
- package/dist/hooks/use-closable.cjs +0 -8
- package/dist/hooks/use-closable.mjs +0 -8
- package/dist/hooks/use-container.d.ts +1 -1
- package/dist/hooks/use-lazy-boolean.cjs +2 -2
- package/dist/hooks/use-lazy-boolean.mjs +2 -2
- package/dist/index.cjs +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -0
- package/dist/locale/locales/en_US.cjs +5 -1
- package/dist/locale/locales/en_US.mjs +5 -1
- package/dist/locale/locales/zh_CN.cjs +5 -1
- package/dist/locale/locales/zh_CN.mjs +5 -1
- package/dist/styles.css +16 -7
- package/dist/types/drawer.d.ts +5 -0
- package/dist/types/element.d.ts +1 -56
- package/dist/types/form.d.ts +39 -1
- package/dist/types/locale.d.ts +6 -0
- package/dist/types/menu.d.ts +8 -3
- package/dist/types/popper.d.ts +1 -1
- package/dist/types/skeleton.d.ts +0 -7
- package/dist/{components/theme/types.d.ts → types/theme.d.ts} +1 -1
- package/dist/types/tree.d.ts +7 -2
- package/dist/{components/upload/types.d.ts → types/upload.d.ts} +59 -22
- package/dist/{components/waterfall/types.d.ts → types/waterfall.d.ts} +3 -3
- package/dist/utils/class-name.cjs +1 -1
- package/dist/utils/class-name.d.ts +3 -1
- package/dist/utils/class-name.mjs +1 -1
- package/dist/utils/colors.cjs +0 -10
- package/dist/utils/colors.d.ts +1 -4
- package/dist/utils/colors.mjs +1 -10
- 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/dist/utils/date.cjs +13 -0
- package/dist/utils/date.d.ts +6 -0
- package/dist/utils/date.mjs +13 -0
- package/package.json +25 -25
- package/dist/components/icon/icons/three-dimension-rotation.d.ts +0 -3
- /package/dist/{components/steps/types.d.ts → types/steps.d.ts} +0 -0
- /package/dist/{components/switch/types.d.ts → types/switch.d.ts} +0 -0
- /package/dist/{components/tabs/types.d.ts → types/tabs.d.ts} +0 -0
- /package/dist/{components/tag/types.d.ts → types/tag.d.ts} +0 -0
- /package/dist/{components/time-picker/types.d.ts → types/time-picker.d.ts} +0 -0
- /package/dist/{components/timeline/types.d.ts → types/timeline.d.ts} +0 -0
- /package/dist/{components/tooltip/types.d.ts → types/tooltip.d.ts} +0 -0
- /package/dist/{components/transfer/types.d.ts → types/transfer.d.ts} +0 -0
- /package/dist/{components/visually-hidden/types.d.ts → types/visually-hidden.d.ts} +0 -0
- /package/dist/{components/watermark/types.d.ts → types/watermark.d.ts} +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
1
|
import { isUndefined, useEvent } from '@aiszlab/relax';
|
|
3
2
|
import React, { useMemo } from 'react';
|
|
4
3
|
import { Button } from '../components/button/button.mjs';
|
|
@@ -26,18 +25,11 @@ var useClosable = function useClosable(_ref) {
|
|
|
26
25
|
// closer react element for dialog
|
|
27
26
|
var closer = useMemo(function () {
|
|
28
27
|
if (!triggers.has("close")) return null;
|
|
29
|
-
var styled = {
|
|
30
|
-
className: "musaex-167ikqz musaex-134unf5"
|
|
31
|
-
};
|
|
32
28
|
return /*#__PURE__*/React.createElement(Button, {
|
|
33
29
|
shape: "circular",
|
|
34
30
|
variant: "text",
|
|
35
31
|
prefix: /*#__PURE__*/React.createElement(Close, null),
|
|
36
32
|
onClick: onClose,
|
|
37
|
-
className: styled.className,
|
|
38
|
-
style: _objectSpread(_objectSpread({}, styled.style), {}, {
|
|
39
|
-
position: "absolute"
|
|
40
|
-
}),
|
|
41
33
|
size: "small"
|
|
42
34
|
});
|
|
43
35
|
}, [triggers, onClose]);
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var useLazyBoolean = function useLazyBoolean() {
|
|
6
6
|
var _useBoolean = relax.useBoolean(),
|
|
7
7
|
_useBoolean2 = _slicedToArray(_useBoolean, 2),
|
|
8
|
-
|
|
8
|
+
isTruthy = _useBoolean2[0],
|
|
9
9
|
_useBoolean2$ = _useBoolean2[1],
|
|
10
10
|
_turnOn = _useBoolean2$.turnOn,
|
|
11
11
|
_turnOff = _useBoolean2$.turnOff,
|
|
@@ -52,7 +52,7 @@ var useLazyBoolean = function useLazyBoolean() {
|
|
|
52
52
|
});
|
|
53
53
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
54
54
|
}, []);
|
|
55
|
-
return [
|
|
55
|
+
return [isTruthy, {
|
|
56
56
|
turnOn: turnOn,
|
|
57
57
|
turnOff: turnOff,
|
|
58
58
|
toggle: toggle,
|
|
@@ -5,7 +5,7 @@ import { useCallback } from 'react';
|
|
|
5
5
|
var useLazyBoolean = function useLazyBoolean() {
|
|
6
6
|
var _useBoolean = useBoolean(),
|
|
7
7
|
_useBoolean2 = _slicedToArray(_useBoolean, 2),
|
|
8
|
-
|
|
8
|
+
isTruthy = _useBoolean2[0],
|
|
9
9
|
_useBoolean2$ = _useBoolean2[1],
|
|
10
10
|
_turnOn = _useBoolean2$.turnOn,
|
|
11
11
|
_turnOff = _useBoolean2$.turnOff,
|
|
@@ -52,7 +52,7 @@ var useLazyBoolean = function useLazyBoolean() {
|
|
|
52
52
|
});
|
|
53
53
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
54
54
|
}, []);
|
|
55
|
-
return [
|
|
55
|
+
return [isTruthy, {
|
|
56
56
|
turnOn: turnOn,
|
|
57
57
|
turnOff: turnOff,
|
|
58
58
|
toggle: toggle,
|
package/dist/index.cjs
CHANGED
|
@@ -24,6 +24,7 @@ var drawer = require('./components/drawer/drawer.cjs');
|
|
|
24
24
|
var dialog = require('./components/dialog/dialog.cjs');
|
|
25
25
|
var tag = require('./components/tag/tag.cjs');
|
|
26
26
|
var calendar = require('./components/calendar/calendar.cjs');
|
|
27
|
+
var contribution = require('./components/calendar/contribution.cjs');
|
|
27
28
|
var datePicker = require('./components/date-picker/date-picker.cjs');
|
|
28
29
|
var timePicker = require('./components/time-picker/time-picker.cjs');
|
|
29
30
|
var dateRangePicker = require('./components/date-range-picker/date-range-picker.cjs');
|
|
@@ -90,6 +91,7 @@ exports.Drawer = drawer.default;
|
|
|
90
91
|
exports.Dialog = dialog.default;
|
|
91
92
|
exports.Tag = tag.default;
|
|
92
93
|
exports.Calendar = calendar.default;
|
|
94
|
+
exports.ContributionCalendar = contribution.default;
|
|
93
95
|
exports.DatePicker = datePicker.default;
|
|
94
96
|
exports.TimePicker = timePicker.default;
|
|
95
97
|
exports.DateRangePicker = dateRangePicker.default;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export { Empty } from "./components/empty";
|
|
|
23
23
|
export { Drawer } from "./components/drawer";
|
|
24
24
|
export { Dialog } from "./components/dialog";
|
|
25
25
|
export { Tag } from "./components/tag";
|
|
26
|
-
export { Calendar } from "./components/calendar";
|
|
26
|
+
export { Calendar, ContributionCalendar } from "./components/calendar";
|
|
27
27
|
export { DatePicker } from "./components/date-picker";
|
|
28
28
|
export { TimePicker } from "./components/time-picker";
|
|
29
29
|
export { DateRangePicker } from "./components/date-range-picker";
|
package/dist/index.mjs
CHANGED
|
@@ -24,6 +24,7 @@ export { default as Drawer } from './components/drawer/drawer.mjs';
|
|
|
24
24
|
export { default as Dialog } from './components/dialog/dialog.mjs';
|
|
25
25
|
export { default as Tag } from './components/tag/tag.mjs';
|
|
26
26
|
export { default as Calendar } from './components/calendar/calendar.mjs';
|
|
27
|
+
export { default as ContributionCalendar } from './components/calendar/contribution.mjs';
|
|
27
28
|
export { default as DatePicker } from './components/date-picker/date-picker.mjs';
|
|
28
29
|
export { default as TimePicker } from './components/time-picker/time-picker.mjs';
|
|
29
30
|
export { default as DateRangePicker } from './components/date-range-picker/date-range-picker.mjs';
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
3
3
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
4
4
|
var componentToken = require('../../utils/component-token.cjs');
|
|
5
5
|
|
|
6
|
-
var en_US = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
6
|
+
var en_US = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
7
7
|
locale: "en_US"
|
|
8
8
|
}, componentToken.ComponentToken.Dialog, {
|
|
9
9
|
confirm: "Confirm",
|
|
@@ -29,6 +29,10 @@ var en_US = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_def
|
|
|
29
29
|
}), componentToken.ComponentToken.I18nButton, {
|
|
30
30
|
zh_CN: "Chinese",
|
|
31
31
|
en_US: "English"
|
|
32
|
+
}), componentToken.ComponentToken.Drawer, {
|
|
33
|
+
confirm: "Confirm"
|
|
34
|
+
}), componentToken.ComponentToken.Upload, {
|
|
35
|
+
upload: "Upload"
|
|
32
36
|
});
|
|
33
37
|
|
|
34
38
|
exports.default = en_US;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
3
3
|
|
|
4
|
-
var en_US = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
4
|
+
var en_US = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
5
5
|
locale: "en_US"
|
|
6
6
|
}, ComponentToken.Dialog, {
|
|
7
7
|
confirm: "Confirm",
|
|
@@ -27,6 +27,10 @@ var en_US = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_def
|
|
|
27
27
|
}), ComponentToken.I18nButton, {
|
|
28
28
|
zh_CN: "Chinese",
|
|
29
29
|
en_US: "English"
|
|
30
|
+
}), ComponentToken.Drawer, {
|
|
31
|
+
confirm: "Confirm"
|
|
32
|
+
}), ComponentToken.Upload, {
|
|
33
|
+
upload: "Upload"
|
|
30
34
|
});
|
|
31
35
|
|
|
32
36
|
export { en_US as default };
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
3
3
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
4
4
|
var componentToken = require('../../utils/component-token.cjs');
|
|
5
5
|
|
|
6
|
-
var zh_CN = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
6
|
+
var zh_CN = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
7
7
|
locale: "zh_CN"
|
|
8
8
|
}, componentToken.ComponentToken.Dialog, {
|
|
9
9
|
confirm: "确认",
|
|
@@ -29,6 +29,10 @@ var zh_CN = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_def
|
|
|
29
29
|
}), componentToken.ComponentToken.I18nButton, {
|
|
30
30
|
zh_CN: "中文",
|
|
31
31
|
en_US: "英文"
|
|
32
|
+
}), componentToken.ComponentToken.Drawer, {
|
|
33
|
+
confirm: "确认"
|
|
34
|
+
}), componentToken.ComponentToken.Upload, {
|
|
35
|
+
upload: "上传"
|
|
32
36
|
});
|
|
33
37
|
|
|
34
38
|
exports.default = zh_CN;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
3
3
|
|
|
4
|
-
var zh_CN = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
4
|
+
var zh_CN = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
5
5
|
locale: "zh_CN"
|
|
6
6
|
}, ComponentToken.Dialog, {
|
|
7
7
|
confirm: "确认",
|
|
@@ -27,6 +27,10 @@ var zh_CN = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_def
|
|
|
27
27
|
}), ComponentToken.I18nButton, {
|
|
28
28
|
zh_CN: "中文",
|
|
29
29
|
en_US: "英文"
|
|
30
|
+
}), ComponentToken.Drawer, {
|
|
31
|
+
confirm: "确认"
|
|
32
|
+
}), ComponentToken.Upload, {
|
|
33
|
+
upload: "上传"
|
|
30
34
|
});
|
|
31
35
|
|
|
32
36
|
export { zh_CN as default };
|
package/dist/styles.css
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
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
|
+
.musaex-1utc1yc{--cell-color:var(----cell-color,revert)}
|
|
8
|
+
.musaex-1erll0c{--cell-size:calc(var(--musaex-cx2xv5) / 2)}
|
|
7
9
|
.musaex-1gm2eyx{--code-background-color:var(----code-background-color,revert)}
|
|
8
10
|
.musaex-p8ugqh{--lighter-shadow:var(----lighter-shadow,revert)}
|
|
9
11
|
.musaex-1i66ttz{--on-primary-color:var(----on-primary-color,revert)}
|
|
@@ -37,6 +39,7 @@
|
|
|
37
39
|
.musaex-p8vts:not(#\#){margin:var(--musaex-1wblvyz)}
|
|
38
40
|
.musaex-gnae0u:not(#\#){margin:var(--musaex-68a8pz)}
|
|
39
41
|
.musaex-9qdtsz:not(#\#){margin:var(--musaex-dojqt2)}
|
|
42
|
+
.musaex-1717udv:not(#\#){padding:0}
|
|
40
43
|
.musaex-2wmp0v:not(#\#){padding:var(--musaex-1ncxh3n)}
|
|
41
44
|
.musaex-ox8tdy:not(#\#){padding:var(--musaex-1tzp6vk)}
|
|
42
45
|
.musaex-j8pfrn:not(#\#){padding:var(--musaex-1wblvyz)}
|
|
@@ -54,6 +57,7 @@
|
|
|
54
57
|
.musaex-z7qqyb:not(#\#):not(#\#){border-radius:var(--musaex-1rrllem)}
|
|
55
58
|
.musaex-qwu505:not(#\#):not(#\#){border-radius:var(--musaex-fwu7zn)}
|
|
56
59
|
.musaex-18pg0zq:not(#\#):not(#\#){border-radius:var(--musaex-h30iw9)}
|
|
60
|
+
.musaex-llun4g:not(#\#):not(#\#){border-radius:var(--musaex-jdzqnm)}
|
|
57
61
|
.musaex-1fioaya:not(#\#):not(#\#){border-radius:var(--musaex-qk2ac7)}
|
|
58
62
|
.musaex-1u07kge:not(#\#):not(#\#){border-radius:var(--musaex-vk5id6)}
|
|
59
63
|
.musaex-1y0btm7:not(#\#):not(#\#){border-style:solid}
|
|
@@ -82,8 +86,8 @@
|
|
|
82
86
|
.musaex-3hncxx:not(#\#):not(#\#){outline:var(--musaex-1aj7t22)}
|
|
83
87
|
.musaex-ysyzu8:not(#\#):not(#\#){overflow:auto}
|
|
84
88
|
.musaex-b3r6kr:not(#\#):not(#\#){overflow:hidden}
|
|
89
|
+
.musaex-1rea2x4:not(#\#):not(#\#){overflow:visible}
|
|
85
90
|
.musaex-qhkzqn:not(#\#):not(#\#){padding-block:var(--musaex-1ncxh3n)}
|
|
86
|
-
.musaex-1daajqp:not(#\#):not(#\#){padding-block:var(--musaex-1tzp6vk)}
|
|
87
91
|
.musaex-133qg4p:not(#\#):not(#\#){padding-block:var(--musaex-1wblvyz)}
|
|
88
92
|
.musaex-4bkepr:not(#\#):not(#\#){padding-block:var(--musaex-h30iw9)}
|
|
89
93
|
.musaex-4g05pm:not(#\#):not(#\#){padding-block:var(--musaex-oohzsl)}
|
|
@@ -125,8 +129,11 @@
|
|
|
125
129
|
.musaex-jbqb8w:not(#\#):not(#\#):not(#\#){background-color:transparent}
|
|
126
130
|
.musaex-q1mx2j:not(#\#):not(#\#):not(#\#){background-color:var(--backgroundColor,revert)}
|
|
127
131
|
.musaex-8hsaj5:not(#\#):not(#\#):not(#\#){background-color:var(--bcbnzo,revert)}
|
|
132
|
+
.musaex-1204rnj:not(#\#):not(#\#):not(#\#){background-color:var(--cell-color)}
|
|
128
133
|
.musaex-1x8l0va:not(#\#):not(#\#):not(#\#){background-color:var(--code-background-color)}
|
|
129
134
|
.musaex-1db4oza:not(#\#):not(#\#):not(#\#){background-size:400% 100%}
|
|
135
|
+
.musaex-1vathgz:not(#\#):not(#\#):not(#\#){border-collapse:separate}
|
|
136
|
+
.musaex-g5hwcv:not(#\#):not(#\#):not(#\#){border-spacing:var(--musaex-qk2ac7)}
|
|
130
137
|
.musaex-igitpm:not(#\#):not(#\#):not(#\#){box-shadow:var(--boxShadow,revert)}
|
|
131
138
|
.musaex-sgc7hx:not(#\#):not(#\#):not(#\#){box-shadow:var(--musaex-15zostt)}
|
|
132
139
|
.musaex-1bhjvst:not(#\#):not(#\#):not(#\#){box-shadow:var(--musaex-1trg6py)}
|
|
@@ -216,6 +223,7 @@
|
|
|
216
223
|
.musaex-1kwx3ox:not(#\#):not(#\#):not(#\#){margin-inline-end:calc(100% + var(--musaex-rlgvtq) + var(--musaex-jdzqnm) * 4 + var(--musaex-jdzqnm))}
|
|
217
224
|
.musaex-1uoloo9:not(#\#):not(#\#):not(#\#){margin-inline-end:var(--marginInlineEnd,revert)}
|
|
218
225
|
.musaex-1lziwak:not(#\#):not(#\#):not(#\#){margin-inline-start:0}
|
|
226
|
+
.musaex-vc5jky:not(#\#):not(#\#):not(#\#){margin-inline-start:auto}
|
|
219
227
|
.musaex-xsxsn7:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(-100% - var(--musaex-rlgvtq) - var(--musaex-jdzqnm) * 4 - var(--musaex-jdzqnm))}
|
|
220
228
|
.musaex-1bec1b4:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(100% + var(--musaex-rlgvtq) + var(--musaex-jdzqnm) * 4 + var(--musaex-jdzqnm))}
|
|
221
229
|
.musaex-1f2nheo:not(#\#):not(#\#):not(#\#){margin-inline-start:var(--marginInlineStart,revert)}
|
|
@@ -266,6 +274,7 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
266
274
|
.musaex-rycbv3:not(#\#):not(#\#):not(#\#){transform:translateX(50%) translateY(-50%)}
|
|
267
275
|
.musaex-1vfo23u:not(#\#):not(#\#):not(#\#){transform:translateX(50%) translateY(50%)}
|
|
268
276
|
.musaex-1v0jg1i:not(#\#):not(#\#):not(#\#){transform:var(--transform,revert)}
|
|
277
|
+
.musaex-1g2r6go:not(#\#):not(#\#):not(#\#){transition-duration:.1s}
|
|
269
278
|
.musaex-13dflua:not(#\#):not(#\#):not(#\#){transition-duration:.2s}
|
|
270
279
|
.musaex-1d8287x:not(#\#):not(#\#):not(#\#){transition-duration:.3s}
|
|
271
280
|
.musaex-fagghw:not(#\#):not(#\#):not(#\#){transition-property:all}
|
|
@@ -276,6 +285,7 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
276
285
|
.musaex-19991ni:not(#\#):not(#\#):not(#\#){transition-property:opacity}
|
|
277
286
|
.musaex-bjh9w0:not(#\#):not(#\#):not(#\#){transition-property:padding-inline-start,padding-inline-end}
|
|
278
287
|
.musaex-11xpdln:not(#\#):not(#\#):not(#\#){transition-property:transform}
|
|
288
|
+
.musaex-qzan4j:not(#\#):not(#\#):not(#\#){transition-property:translate,opacity}
|
|
279
289
|
.musaex-87ps6o:not(#\#):not(#\#):not(#\#){user-select:none}
|
|
280
290
|
.musaex-3ajldb:not(#\#):not(#\#):not(#\#){vertical-align:bottom}
|
|
281
291
|
.musaex-xymvpz:not(#\#):not(#\#):not(#\#){vertical-align:middle}
|
|
@@ -285,7 +295,7 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
285
295
|
.musaex-19v51jg:not(#\#):not(#\#):not(#\#){will-change:background-color,color,box-shadow}
|
|
286
296
|
.musaex-1o9dqaq:not(#\#):not(#\#):not(#\#){will-change:box-shadow,transform}
|
|
287
297
|
.musaex-1so62im:not(#\#):not(#\#):not(#\#){will-change:transform}
|
|
288
|
-
.musaex-
|
|
298
|
+
.musaex-1enemt:not(#\#):not(#\#):not(#\#){will-change:translate,opacity}
|
|
289
299
|
.musaex-13faqbe:not(#\#):not(#\#):not(#\#){word-break:break-word}
|
|
290
300
|
.musaex-cjiq3g:not(#\#):not(#\#):not(#\#){z-index:var(--musaex-11upij1)}
|
|
291
301
|
.musaex-18enb72:not(#\#):not(#\#):not(#\#){z-index:var(--musaex-127010g)}
|
|
@@ -332,6 +342,7 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
332
342
|
.musaex-t7dq6l:not(#\#):not(#\#):not(#\#):not(#\#){height:auto}
|
|
333
343
|
.musaex-bmf846:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(100vh - var(--musaex-xrqq76) - var(--musaex-15cw4i4))}
|
|
334
344
|
.musaex-g7h5cd:not(#\#):not(#\#):not(#\#):not(#\#){height:fit-content}
|
|
345
|
+
.musaex-sahybl:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--cell-size)}
|
|
335
346
|
.musaex-1jwls1v:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--height,revert)}
|
|
336
347
|
.musaex-1dql3xx:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-16n5srz)}
|
|
337
348
|
.musaex-18eqiv3:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-1ax7z96)}
|
|
@@ -342,7 +353,6 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
342
353
|
.musaex-h22aca:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-2h23ia)}
|
|
343
354
|
.musaex-r8va6l:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-70uu0v)}
|
|
344
355
|
.musaex-19ak84k:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-cftog7)}
|
|
345
|
-
.musaex-1bti5vo:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-cx2xv5)}
|
|
346
356
|
.musaex-drj9st:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-fwu7zn)}
|
|
347
357
|
.musaex-26n3vf:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-jdzqnm)}
|
|
348
358
|
.musaex-1q1utna:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musaex-laggmb)}
|
|
@@ -364,8 +374,10 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
364
374
|
.musaex-19h4m1:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:var(--musaex-qk2ac7)}
|
|
365
375
|
.musaex-11m1c1s:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:var(--musaex-vk5id6)}
|
|
366
376
|
.musaex-fi9ciw:not(#\#):not(#\#):not(#\#):not(#\#){max-height:calc(100% - var(--musaex-15cw4i4) * 2)}
|
|
377
|
+
.musaex-193iq5w:not(#\#):not(#\#):not(#\#):not(#\#){max-width:100%}
|
|
367
378
|
.musaex-16xn7b0:not(#\#):not(#\#):not(#\#):not(#\#){max-width:100vw}
|
|
368
379
|
.musaex-77asx0:not(#\#):not(#\#):not(#\#):not(#\#){max-width:var(--musaex-1qj6wod)}
|
|
380
|
+
.musaex-189dakb:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--cell-size)}
|
|
369
381
|
.musaex-tynr54:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musaex-16n5srz)}
|
|
370
382
|
.musaex-1mjul0d:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musaex-1spnrok)}
|
|
371
383
|
.musaex-ktxt4i:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musaex-2h23ia)}
|
|
@@ -374,6 +386,7 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
374
386
|
.musaex-1ite1z3:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musaex-rlgvtq)}
|
|
375
387
|
.musaex-1jzhcrs:not(#\#):not(#\#):not(#\#):not(#\#){min-width:200px}
|
|
376
388
|
.musaex-15cq3s0:not(#\#):not(#\#):not(#\#):not(#\#){min-width:480px}
|
|
389
|
+
.musaex-1q6qbx2:not(#\#):not(#\#):not(#\#):not(#\#){min-width:var(--cell-size)}
|
|
377
390
|
.musaex-13to73x:not(#\#):not(#\#):not(#\#):not(#\#){min-width:var(--minWidth,revert)}
|
|
378
391
|
.musaex-1kc4xvm:not(#\#):not(#\#):not(#\#):not(#\#){min-width:var(--musaex-16n5srz)}
|
|
379
392
|
.musaex-1n0e6fi:not(#\#):not(#\#):not(#\#):not(#\#){min-width:var(--musaex-1aj7t22)}
|
|
@@ -397,12 +410,10 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
397
410
|
.musaex-3m8u43:not(#\#):not(#\#):not(#\#):not(#\#){right:0}
|
|
398
411
|
.musaex-k6ci0l:not(#\#):not(#\#):not(#\#):not(#\#){right:20px}
|
|
399
412
|
.musaex-l9l3z8:not(#\#):not(#\#):not(#\#):not(#\#){right:var(--musaex-15cw4i4)}
|
|
400
|
-
.musaex-134unf5:not(#\#):not(#\#):not(#\#):not(#\#){right:var(--musaex-oohzsl)}
|
|
401
413
|
.musaex-13vifvy:not(#\#):not(#\#):not(#\#):not(#\#){top:0}
|
|
402
414
|
.musaex-wa60dl:not(#\#):not(#\#):not(#\#):not(#\#){top:50%}
|
|
403
415
|
.musaex-98oeat:not(#\#):not(#\#):not(#\#):not(#\#){top:calc(var(--musaex-xrqq76) + var(--musaex-15cw4i4))}
|
|
404
416
|
.musaex-1mjgxse:not(#\#):not(#\#):not(#\#):not(#\#){top:var(--musaex-15cw4i4)}
|
|
405
|
-
.musaex-167ikqz:not(#\#):not(#\#):not(#\#):not(#\#){top:var(--musaex-oohzsl)}
|
|
406
417
|
.musaex-13op6mf:not(#\#):not(#\#):not(#\#):not(#\#){top:var(--musaex-qk2ac7)}
|
|
407
418
|
.musaex-rzbxsz:not(#\#):not(#\#):not(#\#):not(#\#){top:var(--top,revert)}
|
|
408
419
|
.musaex-h8yej3:not(#\#):not(#\#):not(#\#):not(#\#){width:100%}
|
|
@@ -410,7 +421,6 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
410
421
|
.musaex-vy4d1p:not(#\#):not(#\#):not(#\#):not(#\#){width:24px}
|
|
411
422
|
.musaex-16b21pk:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(1ch + var(--musaex-1ncxh3n) * 2)}
|
|
412
423
|
.musaex-eq5yr9:not(#\#):not(#\#):not(#\#):not(#\#){width:fit-content}
|
|
413
|
-
.musaex-1fvqbsf:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-11uhodo)}
|
|
414
424
|
.musaex-zx3e9c:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-16n5srz)}
|
|
415
425
|
.musaex-1k7lhcj:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-1ax7z96)}
|
|
416
426
|
.musaex-ohro5l:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-1hydgie)}
|
|
@@ -419,7 +429,6 @@ html[dir='rtl'] .musaex-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
|
419
429
|
.musaex-1doc0eo:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-2h23ia)}
|
|
420
430
|
.musaex-1um6o8b:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-70uu0v)}
|
|
421
431
|
.musaex-1opwmbq:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-cftog7)}
|
|
422
|
-
.musaex-rdd3y:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-cx2xv5)}
|
|
423
432
|
.musaex-1ankuk0:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-fwu7zn)}
|
|
424
433
|
.musaex-yueg9c:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-laggmb)}
|
|
425
434
|
.musaex-v4a0uj:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musaex-oohzsl)}
|
package/dist/types/drawer.d.ts
CHANGED
package/dist/types/element.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CSSProperties
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
2
|
/**
|
|
3
3
|
* @author
|
|
4
4
|
* @description
|
|
@@ -17,58 +17,3 @@ export interface ComponentProps {
|
|
|
17
17
|
*/
|
|
18
18
|
style?: CSSProperties;
|
|
19
19
|
}
|
|
20
|
-
/**
|
|
21
|
-
* @author murukal
|
|
22
|
-
* @description
|
|
23
|
-
* field need pass some props
|
|
24
|
-
* use this props as common
|
|
25
|
-
*/
|
|
26
|
-
export interface FieldRenderProps<T = unknown> {
|
|
27
|
-
/**
|
|
28
|
-
* @description
|
|
29
|
-
* name
|
|
30
|
-
*/
|
|
31
|
-
name: string;
|
|
32
|
-
/**
|
|
33
|
-
* @description
|
|
34
|
-
* value
|
|
35
|
-
*/
|
|
36
|
-
value: unknown;
|
|
37
|
-
/**
|
|
38
|
-
* @description
|
|
39
|
-
* invalid
|
|
40
|
-
*/
|
|
41
|
-
invalid?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* @description
|
|
44
|
-
* ref
|
|
45
|
-
*/
|
|
46
|
-
ref?: RefCallback<T>;
|
|
47
|
-
/**
|
|
48
|
-
* @description
|
|
49
|
-
* change handler
|
|
50
|
-
*/
|
|
51
|
-
onChange: (...args: unknown[]) => void;
|
|
52
|
-
/**
|
|
53
|
-
* @description
|
|
54
|
-
* blur handler
|
|
55
|
-
*/
|
|
56
|
-
onBlur: (...args: unknown[]) => void;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* @description
|
|
60
|
-
* with level
|
|
61
|
-
*/
|
|
62
|
-
export type WithLevel<T extends Object> = T & {
|
|
63
|
-
/**
|
|
64
|
-
* @description
|
|
65
|
-
* level
|
|
66
|
-
*/
|
|
67
|
-
level: number;
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* @description
|
|
71
|
-
* size
|
|
72
|
-
* in musae, we always use three size
|
|
73
|
-
*/
|
|
74
|
-
export type Size = "small" | "medium" | "large";
|
package/dist/types/form.d.ts
CHANGED
|
@@ -1,6 +1,44 @@
|
|
|
1
|
-
import type { PropsWithoutRef, ReactNode, RefAttributes } from "react";
|
|
1
|
+
import type { PropsWithoutRef, ReactNode, RefAttributes, RefCallback } from "react";
|
|
2
2
|
import type { DeepPartial, FieldValues, UseFormReturn } from "react-hook-form";
|
|
3
3
|
import type { ComponentProps } from "./element";
|
|
4
|
+
/**
|
|
5
|
+
* @author murukal
|
|
6
|
+
* @description
|
|
7
|
+
* field need pass some props
|
|
8
|
+
* use this props as common
|
|
9
|
+
*/
|
|
10
|
+
export interface FieldRenderProps<T = unknown> {
|
|
11
|
+
/**
|
|
12
|
+
* @description
|
|
13
|
+
* name
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* @description
|
|
18
|
+
* value
|
|
19
|
+
*/
|
|
20
|
+
value: unknown;
|
|
21
|
+
/**
|
|
22
|
+
* @description
|
|
23
|
+
* invalid
|
|
24
|
+
*/
|
|
25
|
+
invalid?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @description
|
|
28
|
+
* ref
|
|
29
|
+
*/
|
|
30
|
+
ref?: RefCallback<T>;
|
|
31
|
+
/**
|
|
32
|
+
* @description
|
|
33
|
+
* change handler
|
|
34
|
+
*/
|
|
35
|
+
onChange: (...args: unknown[]) => void;
|
|
36
|
+
/**
|
|
37
|
+
* @description
|
|
38
|
+
* blur handler
|
|
39
|
+
*/
|
|
40
|
+
onBlur: (...args: unknown[]) => void;
|
|
41
|
+
}
|
|
4
42
|
/**
|
|
5
43
|
* @author murukal
|
|
6
44
|
* @description
|
package/dist/types/locale.d.ts
CHANGED
package/dist/types/menu.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Key, ReactNode } from "react";
|
|
2
|
-
import type { ComponentProps
|
|
3
|
-
|
|
2
|
+
import type { ComponentProps } from "./element";
|
|
3
|
+
export type Size = "small" | "medium" | "large";
|
|
4
4
|
export type Mode = "vertical" | "horizontal" | "inline";
|
|
5
5
|
/**
|
|
6
6
|
* @author murukal
|
|
@@ -129,7 +129,7 @@ export type MenuItem = ComponentProps & {
|
|
|
129
129
|
* @description
|
|
130
130
|
* menu item render props
|
|
131
131
|
*/
|
|
132
|
-
export type MenuItemProps =
|
|
132
|
+
export type MenuItemProps = Omit<MenuItem, "key" | "children"> & ComponentProps & {
|
|
133
133
|
/**
|
|
134
134
|
* @description
|
|
135
135
|
* value
|
|
@@ -156,6 +156,11 @@ export type MenuItemProps = WithLevel<Omit<MenuItem, "key" | "children">> & Comp
|
|
|
156
156
|
* mode
|
|
157
157
|
*/
|
|
158
158
|
mode: Mode;
|
|
159
|
+
/**
|
|
160
|
+
* @description
|
|
161
|
+
* level
|
|
162
|
+
*/
|
|
163
|
+
level: number;
|
|
159
164
|
};
|
|
160
165
|
/**
|
|
161
166
|
* @author murukal
|
package/dist/types/popper.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface PopperProps extends Pick<DOMAttributes<HTMLDivElement>, "onMous
|
|
|
66
66
|
*
|
|
67
67
|
* @default true
|
|
68
68
|
*
|
|
69
|
-
* default case, popper will auto disappear after open change
|
|
69
|
+
* default case, popper will auto disappear after private `open` state change to `false`
|
|
70
70
|
* but sometimes, you want to control popper disappear animation
|
|
71
71
|
* set `disappearable` to false, and use popper.ref to disappear
|
|
72
72
|
*/
|
package/dist/types/skeleton.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ComponentProps } from "musae/types/element";
|
|
2
|
-
type Variant = "button" | "avatar" | "title";
|
|
3
2
|
/**
|
|
4
3
|
* @description
|
|
5
4
|
* skeleton props
|
|
@@ -10,10 +9,4 @@ export type SkeletonProps = ComponentProps & {
|
|
|
10
9
|
* animation
|
|
11
10
|
*/
|
|
12
11
|
animation?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* @description
|
|
15
|
-
* variant
|
|
16
|
-
*/
|
|
17
|
-
variant?: Variant;
|
|
18
12
|
};
|
|
19
|
-
export {};
|
package/dist/types/tree.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Key, ReactNode } from "react";
|
|
2
|
-
import type { ComponentProps
|
|
2
|
+
import type { ComponentProps } from "./element";
|
|
3
3
|
/**
|
|
4
4
|
* @description
|
|
5
5
|
* tree node
|
|
@@ -97,7 +97,7 @@ export type TreeProps = ComponentProps & {
|
|
|
97
97
|
* @description
|
|
98
98
|
* tree node props
|
|
99
99
|
*/
|
|
100
|
-
export type TreeNodeProps =
|
|
100
|
+
export type TreeNodeProps = Omit<TreeNode, "children" | "key"> & {
|
|
101
101
|
/**
|
|
102
102
|
* @description
|
|
103
103
|
* value
|
|
@@ -113,6 +113,11 @@ export type TreeNodeProps = WithLevel<Omit<TreeNode, "children" | "key">> & {
|
|
|
113
113
|
* expand handler
|
|
114
114
|
*/
|
|
115
115
|
onExpand?: (key: Key) => void;
|
|
116
|
+
/**
|
|
117
|
+
* @description
|
|
118
|
+
* level
|
|
119
|
+
*/
|
|
120
|
+
level: number;
|
|
116
121
|
};
|
|
117
122
|
/**
|
|
118
123
|
* @description
|
|
@@ -1,4 +1,44 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
1
|
+
import type { Key, ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* @description
|
|
4
|
+
* status
|
|
5
|
+
*/
|
|
6
|
+
export type UploadStatus = "success" | "error" | "loading";
|
|
7
|
+
export type ControlledValue = {
|
|
8
|
+
url: string;
|
|
9
|
+
key?: Key;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @description
|
|
13
|
+
* uploaded item
|
|
14
|
+
*/
|
|
15
|
+
export type UploadedItem = {
|
|
16
|
+
/**
|
|
17
|
+
* @description
|
|
18
|
+
* unique key
|
|
19
|
+
*/
|
|
20
|
+
key: Key;
|
|
21
|
+
/**
|
|
22
|
+
* @description
|
|
23
|
+
* file
|
|
24
|
+
*/
|
|
25
|
+
file?: File;
|
|
26
|
+
/**
|
|
27
|
+
* {@link UploadStatus}
|
|
28
|
+
*/
|
|
29
|
+
status: UploadStatus;
|
|
30
|
+
/**
|
|
31
|
+
* @description
|
|
32
|
+
* url
|
|
33
|
+
*/
|
|
34
|
+
url?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @description
|
|
37
|
+
* error
|
|
38
|
+
*/
|
|
39
|
+
error?: Error;
|
|
40
|
+
};
|
|
41
|
+
export type Value = UploadedItem | ControlledValue;
|
|
2
42
|
/**
|
|
3
43
|
* @description
|
|
4
44
|
* `Upload` props
|
|
@@ -40,6 +80,23 @@ export type UploadProps = {
|
|
|
40
80
|
* @default void 0
|
|
41
81
|
*/
|
|
42
82
|
onError?: (error: unknown) => void;
|
|
83
|
+
/**
|
|
84
|
+
* @description
|
|
85
|
+
* value
|
|
86
|
+
*/
|
|
87
|
+
value?: Value[];
|
|
88
|
+
/**
|
|
89
|
+
* @description
|
|
90
|
+
* value change handler
|
|
91
|
+
*/
|
|
92
|
+
onChange?: (value: Value[]) => void;
|
|
93
|
+
/**
|
|
94
|
+
* @description
|
|
95
|
+
* limit
|
|
96
|
+
* @default
|
|
97
|
+
* Infinity
|
|
98
|
+
*/
|
|
99
|
+
limit?: number;
|
|
43
100
|
};
|
|
44
101
|
/**
|
|
45
102
|
* @description
|
|
@@ -56,24 +113,4 @@ export type UploadedsRef = {
|
|
|
56
113
|
* @description
|
|
57
114
|
* uploaded list props
|
|
58
115
|
*/
|
|
59
|
-
export type UploadedsProps = Pick<UploadProps, "uploader" | "onError">;
|
|
60
|
-
/**
|
|
61
|
-
* @description
|
|
62
|
-
* status
|
|
63
|
-
*/
|
|
64
|
-
export type UploadStatus = "success" | "error" | "loading";
|
|
65
|
-
/**
|
|
66
|
-
* @description
|
|
67
|
-
* uploaded item
|
|
68
|
-
*/
|
|
69
|
-
export type UploadedItem = {
|
|
70
|
-
/**
|
|
71
|
-
* @description
|
|
72
|
-
* file
|
|
73
|
-
*/
|
|
74
|
-
file: File;
|
|
75
|
-
/**
|
|
76
|
-
* {@link UploadStatus}
|
|
77
|
-
*/
|
|
78
|
-
status: UploadStatus;
|
|
79
|
-
};
|
|
116
|
+
export type UploadedsProps = Pick<UploadProps, "uploader" | "onError" | "value" | "onChange" | "limit">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { ComponentProps } from "musae/types/element";
|
|
3
|
-
import {
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { ComponentProps } from "musae/types/element";
|
|
3
|
+
import type { Gutter } from "../hooks/use-gutters";
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
6
6
|
* waterfall props
|