musae 1.0.27-beta.3 → 1.0.27-beta.30
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/avatar.cjs +1 -1
- package/dist/components/avatar/avatar.mjs +1 -1
- package/dist/components/badge/badge.cjs +1 -1
- package/dist/components/badge/badge.mjs +1 -1
- package/dist/components/bench/bench.cjs +1 -1
- package/dist/components/bench/bench.mjs +1 -1
- package/dist/components/breadcrumb/breadcrumb.cjs +1 -1
- package/dist/components/breadcrumb/breadcrumb.mjs +1 -1
- package/dist/components/breadcrumb/item.cjs +6 -3
- package/dist/components/breadcrumb/item.mjs +6 -3
- package/dist/components/button/button.cjs +1 -1
- package/dist/components/button/button.mjs +1 -1
- package/dist/components/button/styles.cjs +5 -5
- package/dist/components/button/styles.d.ts +15 -5
- package/dist/components/button/styles.mjs +5 -5
- package/dist/components/calendar/calendar.cjs +5 -3
- package/dist/components/calendar/calendar.d.ts +1 -0
- package/dist/components/calendar/calendar.mjs +5 -3
- package/dist/components/calendar/contribution.cjs +1 -1
- package/dist/components/calendar/contribution.mjs +1 -1
- package/dist/components/calendar/hooks.cjs +24 -21
- package/dist/components/calendar/hooks.d.ts +3 -2
- package/dist/components/calendar/hooks.mjs +24 -21
- package/dist/components/chat/chat.cjs +1 -1
- package/dist/components/chat/chat.mjs +1 -1
- package/dist/components/checkbox/checkbox.cjs +6 -27
- package/dist/components/checkbox/checkbox.mjs +4 -25
- package/dist/components/checkbox/styles.cjs +4 -4
- package/dist/components/checkbox/styles.d.ts +12 -4
- package/dist/components/checkbox/styles.mjs +4 -4
- package/dist/components/clock/column.cjs +2 -2
- package/dist/components/clock/column.mjs +2 -2
- package/dist/components/collapse/item.cjs +1 -1
- package/dist/components/collapse/item.mjs +1 -1
- package/dist/components/date-picker/date-picker.cjs +1 -1
- package/dist/components/date-picker/date-picker.mjs +1 -1
- package/dist/components/dialog/popup.cjs +1 -1
- package/dist/components/dialog/popup.mjs +1 -1
- package/dist/components/divider/divider.cjs +1 -1
- package/dist/components/divider/divider.mjs +1 -1
- package/dist/components/drawer/popup.cjs +1 -1
- package/dist/components/drawer/popup.mjs +1 -1
- package/dist/components/empty/empty.cjs +1 -1
- package/dist/components/empty/empty.mjs +1 -1
- package/dist/components/form/field/layout.cjs +1 -1
- package/dist/components/form/field/layout.mjs +1 -1
- package/dist/components/icon/icons/action/calendar-today.cjs +22 -0
- package/dist/components/icon/icons/action/calendar-today.d.ts +3 -0
- package/dist/components/icon/icons/action/calendar-today.mjs +18 -0
- package/dist/components/icon/icons/action/index.cjs +2 -0
- package/dist/components/icon/icons/action/index.d.ts +2 -1
- package/dist/components/icon/icons/action/index.mjs +1 -0
- package/dist/components/icon/icons/communication/index.d.ts +2 -0
- package/dist/components/icon/icons/communication/location-on.cjs +25 -0
- package/dist/components/icon/icons/communication/location-on.d.ts +3 -0
- package/dist/components/icon/icons/communication/location-on.mjs +21 -0
- package/dist/components/icon/icons/content/add.cjs +22 -0
- package/dist/components/icon/icons/content/add.mjs +18 -0
- package/dist/components/icon/icons/content/index.cjs +4 -0
- package/dist/components/icon/icons/content/index.d.ts +3 -1
- package/dist/components/icon/icons/content/index.mjs +2 -0
- package/dist/components/icon/icons/content/remove.cjs +22 -0
- package/dist/components/icon/icons/content/remove.mjs +18 -0
- package/dist/components/icon/icons/index.cjs +10 -0
- package/dist/components/icon/icons/index.d.ts +2 -0
- package/dist/components/icon/icons/index.mjs +5 -0
- package/dist/components/icon/icons/social/index.d.ts +2 -0
- package/dist/components/icon/icons/social/share.cjs +22 -0
- package/dist/components/icon/icons/social/share.d.ts +3 -0
- package/dist/components/icon/icons/social/share.mjs +18 -0
- package/dist/components/icon-button/icon-button.cjs +1 -1
- package/dist/components/icon-button/icon-button.mjs +1 -1
- package/dist/components/input/input.cjs +7 -14
- package/dist/components/input/input.mjs +4 -11
- package/dist/components/layout/sidebar.cjs +1 -1
- package/dist/components/layout/sidebar.mjs +1 -1
- package/dist/components/loading/loading.cjs +1 -1
- package/dist/components/loading/loading.mjs +1 -1
- package/dist/components/markdown/markdown.cjs +1 -1
- package/dist/components/markdown/markdown.mjs +1 -1
- package/dist/components/menu/group.cjs +1 -1
- package/dist/components/menu/group.mjs +1 -1
- package/dist/components/menu/item.cjs +4 -4
- package/dist/components/menu/item.mjs +4 -4
- package/dist/components/notification/holder.cjs +1 -1
- package/dist/components/notification/holder.mjs +1 -1
- package/dist/components/notification/notification.cjs +1 -1
- package/dist/components/notification/notification.mjs +1 -1
- package/dist/components/pagination/item.cjs +1 -1
- package/dist/components/pagination/item.mjs +1 -1
- package/dist/components/password-input/password-input.cjs +1 -1
- package/dist/components/password-input/password-input.mjs +1 -1
- package/dist/components/picker/picker.cjs +14 -8
- package/dist/components/picker/picker.mjs +14 -8
- package/dist/components/popconfirm/popconfirm.cjs +1 -1
- package/dist/components/popconfirm/popconfirm.mjs +1 -1
- package/dist/components/popover/popover.cjs +1 -1
- package/dist/components/popover/popover.mjs +1 -1
- package/dist/components/progress/linear.cjs +2 -2
- package/dist/components/progress/linear.mjs +2 -2
- package/dist/components/quote/quote.cjs +1 -1
- package/dist/components/quote/quote.mjs +1 -1
- package/dist/components/radio/radio.cjs +1 -1
- package/dist/components/radio/radio.mjs +1 -1
- package/dist/components/rate/star.cjs +1 -1
- package/dist/components/rate/star.mjs +1 -1
- package/dist/components/rich-text-editor/plugins/controlled-state/index.cjs +12 -26
- package/dist/components/rich-text-editor/plugins/controlled-state/index.mjs +13 -27
- package/dist/components/rich-text-editor/rich-text-editor.cjs +4 -12
- package/dist/components/rich-text-editor/rich-text-editor.mjs +4 -12
- package/dist/components/rich-text-editor/utils.cjs +2 -2
- package/dist/components/rich-text-editor/utils.mjs +2 -2
- package/dist/components/select/select.cjs +7 -2
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.mjs +7 -2
- package/dist/components/select/selector.cjs +9 -5
- package/dist/components/select/selector.d.ts +1 -1
- package/dist/components/select/selector.mjs +9 -5
- package/dist/components/slider/track.d.ts +1 -1
- package/dist/components/space/space.cjs +1 -1
- package/dist/components/space/space.mjs +1 -1
- package/dist/components/split-panel/divider.cjs +1 -1
- package/dist/components/split-panel/divider.mjs +1 -1
- package/dist/components/split-panel/split-panel.cjs +1 -1
- package/dist/components/split-panel/split-panel.mjs +1 -1
- package/dist/components/steps/item.cjs +1 -1
- package/dist/components/steps/item.mjs +1 -1
- package/dist/components/steps/steps.cjs +1 -1
- package/dist/components/steps/steps.mjs +1 -1
- package/dist/components/table/body.cjs +1 -1
- package/dist/components/table/body.mjs +1 -1
- package/dist/components/table/header/header.cjs +1 -1
- package/dist/components/table/header/header.mjs +1 -1
- package/dist/components/tabs/context.cjs +1 -4
- package/dist/components/tabs/context.d.ts +2 -2
- package/dist/components/tabs/context.mjs +1 -4
- package/dist/components/tabs/hooks/use-navigation.cjs +87 -0
- package/dist/components/tabs/hooks/use-navigation.d.ts +12 -0
- package/dist/components/tabs/hooks/use-navigation.mjs +85 -0
- package/dist/components/tabs/hooks/use-tabs-context.cjs +18 -0
- package/dist/components/tabs/hooks/use-tabs-context.d.ts +7 -0
- package/dist/components/tabs/hooks/use-tabs-context.mjs +16 -0
- package/dist/components/tabs/hooks/use-tabs.cjs +46 -0
- package/dist/components/tabs/hooks/use-tabs.d.ts +17 -0
- package/dist/components/tabs/hooks/use-tabs.mjs +44 -0
- package/dist/components/tabs/navigation.cjs +48 -18
- package/dist/components/tabs/navigation.mjs +47 -17
- package/dist/components/tabs/panels.cjs +56 -39
- package/dist/components/tabs/panels.mjs +56 -39
- package/dist/components/tabs/tab.cjs +7 -9
- package/dist/components/tabs/tab.mjs +6 -8
- package/dist/components/tabs/tabs.cjs +11 -6
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.mjs +10 -5
- package/dist/components/tag/tag.cjs +55 -30
- package/dist/components/tag/tag.d.ts +1 -1
- package/dist/components/tag/tag.mjs +55 -30
- package/dist/components/textarea/textarea.cjs +1 -1
- package/dist/components/textarea/textarea.mjs +1 -1
- package/dist/components/theme/tokens.stylex.d.ts +2 -0
- package/dist/components/time-picker/time-picker.cjs +1 -1
- package/dist/components/time-picker/time-picker.mjs +1 -1
- package/dist/components/timeline/item.cjs +1 -1
- package/dist/components/timeline/item.mjs +1 -1
- package/dist/components/tour/tour.cjs +1 -1
- package/dist/components/tour/tour.mjs +1 -1
- package/dist/components/transfer/list.cjs +1 -1
- package/dist/components/transfer/list.mjs +1 -1
- package/dist/components/tree/node.cjs +2 -2
- package/dist/components/tree/node.mjs +2 -2
- package/dist/components/upload/uploaded-item/index.cjs +1 -1
- package/dist/components/upload/uploaded-item/index.mjs +1 -1
- package/dist/components/upload/uploaded-list.cjs +1 -1
- package/dist/components/upload/uploaded-list.mjs +1 -1
- package/dist/hooks/use-closable.cjs +1 -1
- package/dist/hooks/use-closable.mjs +1 -1
- package/dist/hooks/use-theme-color-vars.cjs +7 -9
- package/dist/hooks/use-theme-color-vars.d.ts +2 -1
- package/dist/hooks/use-theme-color-vars.mjs +6 -8
- package/dist/styles.css +151 -103
- package/dist/types/calendar.d.ts +20 -12
- package/dist/types/form.d.ts +1 -1
- package/dist/types/picker.d.ts +6 -0
- package/dist/types/select.d.ts +9 -2
- package/dist/types/tabs.d.ts +18 -2
- package/dist/types/tag.d.ts +10 -6
- package/package.json +10 -11
- package/dist/components/tabs/hooks.cjs +0 -145
- package/dist/components/tabs/hooks.d.ts +0 -43
- package/dist/components/tabs/hooks.mjs +0 -140
- /package/dist/node_modules/.pnpm/{@stylexjs_stylex@0.17.5 → @stylexjs_stylex@0.18.3}/node_modules/@stylexjs/stylex/lib/es/stylex.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@stylexjs_stylex@0.17.5 → @stylexjs_stylex@0.18.3}/node_modules/@stylexjs/stylex/lib/es/stylex.mjs +0 -0
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
6
6
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
8
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.18.3/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
9
9
|
var context = require('./context.cjs');
|
|
10
10
|
var hooks = require('../theme/hooks.cjs');
|
|
11
11
|
var theme = require('../theme/theme.cjs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import React, { forwardRef, useContext } from 'react';
|
|
4
|
-
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
4
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.18.3/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
5
5
|
import Context, { CLASS_NAMES } from './context.mjs';
|
|
6
6
|
import { useTheme } from '../theme/hooks.mjs';
|
|
7
7
|
import { $label } from '../theme/theme.mjs';
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
8
|
-
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
8
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.18.3/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
9
9
|
var theme = require('../theme/theme.cjs');
|
|
10
10
|
var hooks = require('../theme/hooks.cjs');
|
|
11
11
|
var relax = require('@aiszlab/relax');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
4
|
-
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
4
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.18.3/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
5
5
|
import { $label } from '../theme/theme.mjs';
|
|
6
6
|
import { useTheme } from '../theme/hooks.mjs';
|
|
7
7
|
import { isVoid } from '@aiszlab/relax';
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
7
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.18.3/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
8
8
|
var hooks = require('./hooks.cjs');
|
|
9
9
|
var theme = require('../theme/theme.cjs');
|
|
10
10
|
var className = require('@aiszlab/relax/class-name');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
3
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.18.3/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
4
4
|
import { useLogo, useNavigations, useMenuKeys, useMenuItems } from './hooks.mjs';
|
|
5
5
|
import { $title } from '../theme/theme.mjs';
|
|
6
6
|
import { stringify } from '@aiszlab/relax/class-name';
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
7
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.18.3/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
8
8
|
var theme = require('../theme/theme.cjs');
|
|
9
9
|
var hooks = require('../theme/hooks.cjs');
|
|
10
10
|
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
3
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.18.3/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
4
4
|
import { $label } from '../theme/theme.mjs';
|
|
5
5
|
import { useTheme } from '../theme/hooks.mjs';
|
|
6
6
|
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
@@ -23,11 +23,14 @@ var Item = function Item(_ref) {
|
|
|
23
23
|
className: "musaex-tem6mo"
|
|
24
24
|
},
|
|
25
25
|
1: {
|
|
26
|
-
className: "musaex-tem6mo musaex-ipt7de musaex-db68te musaex-
|
|
26
|
+
className: "musaex-tem6mo musaex-ipt7de musaex-db68te musaex-5nhjnm musaex-1i6b086 musaex-fagghw musaex-1ptezny"
|
|
27
27
|
}
|
|
28
28
|
}[!!isLink << 0],
|
|
29
29
|
separator: {
|
|
30
30
|
className: "musaex-1erkn4t"
|
|
31
|
+
},
|
|
32
|
+
anchor: {
|
|
33
|
+
className: "musaex-1hl2dhg musaex-1heor9g"
|
|
31
34
|
}
|
|
32
35
|
};
|
|
33
36
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("li", {
|
|
@@ -36,9 +39,9 @@ var Item = function Item(_ref) {
|
|
|
36
39
|
"--color-surface": theme.colors.surface,
|
|
37
40
|
"--color-on-surface": theme.colors["on-surface"]
|
|
38
41
|
})
|
|
39
|
-
}, isLink && /*#__PURE__*/React.createElement("a", {
|
|
42
|
+
}, isLink && (/*#__PURE__*/React.createElement("a", _objectSpread(_objectSpread({}, styled.anchor), {}, {
|
|
40
43
|
href: href
|
|
41
|
-
}, label), !isLink && label), !max && (/*#__PURE__*/React.createElement("li", {
|
|
44
|
+
}), label)), !isLink && label), !max && (/*#__PURE__*/React.createElement("li", {
|
|
42
45
|
role: "separator",
|
|
43
46
|
className: className.stringify(classNames.separator, styled.separator.className),
|
|
44
47
|
style: styled.separator.style
|
|
@@ -19,11 +19,14 @@ var Item = function Item(_ref) {
|
|
|
19
19
|
className: "musaex-tem6mo"
|
|
20
20
|
},
|
|
21
21
|
1: {
|
|
22
|
-
className: "musaex-tem6mo musaex-ipt7de musaex-db68te musaex-
|
|
22
|
+
className: "musaex-tem6mo musaex-ipt7de musaex-db68te musaex-5nhjnm musaex-1i6b086 musaex-fagghw musaex-1ptezny"
|
|
23
23
|
}
|
|
24
24
|
}[!!isLink << 0],
|
|
25
25
|
separator: {
|
|
26
26
|
className: "musaex-1erkn4t"
|
|
27
|
+
},
|
|
28
|
+
anchor: {
|
|
29
|
+
className: "musaex-1hl2dhg musaex-1heor9g"
|
|
27
30
|
}
|
|
28
31
|
};
|
|
29
32
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("li", {
|
|
@@ -32,9 +35,9 @@ var Item = function Item(_ref) {
|
|
|
32
35
|
"--color-surface": theme.colors.surface,
|
|
33
36
|
"--color-on-surface": theme.colors["on-surface"]
|
|
34
37
|
})
|
|
35
|
-
}, isLink && /*#__PURE__*/React.createElement("a", {
|
|
38
|
+
}, isLink && (/*#__PURE__*/React.createElement("a", _objectSpread(_objectSpread({}, styled.anchor), {}, {
|
|
36
39
|
href: href
|
|
37
|
-
}, label), !isLink && label), !max && (/*#__PURE__*/React.createElement("li", {
|
|
40
|
+
}), label)), !isLink && label), !max && (/*#__PURE__*/React.createElement("li", {
|
|
38
41
|
role: "separator",
|
|
39
42
|
className: stringify(classNames.separator, styled.separator.className),
|
|
40
43
|
style: styled.separator.style
|
|
@@ -6,7 +6,7 @@ var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
|
6
6
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var className = require('@aiszlab/relax/class-name');
|
|
9
|
-
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
9
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.18.3/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
10
10
|
var tokens_stylex = require('../theme/tokens.stylex.cjs');
|
|
11
11
|
var hooks = require('../theme/hooks.cjs');
|
|
12
12
|
var hooks$1 = require('./hooks.cjs');
|
|
@@ -2,7 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import React, { forwardRef } from 'react';
|
|
4
4
|
import { stringify } from '@aiszlab/relax/class-name';
|
|
5
|
-
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
5
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.18.3/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
6
6
|
import { OPACITY } from '../theme/tokens.stylex.mjs';
|
|
7
7
|
import { useTheme } from '../theme/hooks.mjs';
|
|
8
8
|
import { useButton } from './hooks.mjs';
|
|
@@ -36,7 +36,7 @@ var styles = {
|
|
|
36
36
|
kMzoRj: "musaex-k59kd",
|
|
37
37
|
kWkggS: "musaex-onffnr",
|
|
38
38
|
kMwMTN: "musaex-1nt3oiv",
|
|
39
|
-
|
|
39
|
+
kkqDRM: "musaex-52rqan",
|
|
40
40
|
$$css: true
|
|
41
41
|
},
|
|
42
42
|
outlined: {
|
|
@@ -44,12 +44,12 @@ var styles = {
|
|
|
44
44
|
ksu8eU: "musaex-1y0btm7",
|
|
45
45
|
kVAM5u: "musaex-1u22kak",
|
|
46
46
|
kMwMTN: "musaex-erz01e",
|
|
47
|
-
|
|
47
|
+
kHE3J0: "musaex-iy4r31",
|
|
48
48
|
$$css: true
|
|
49
49
|
},
|
|
50
50
|
text: {
|
|
51
51
|
kMwMTN: "musaex-erz01e",
|
|
52
|
-
|
|
52
|
+
kHE3J0: "musaex-iy4r31",
|
|
53
53
|
$$css: true
|
|
54
54
|
}
|
|
55
55
|
},
|
|
@@ -117,7 +117,7 @@ var styles = {
|
|
|
117
117
|
kGVxlE: null,
|
|
118
118
|
kVAM5u: null,
|
|
119
119
|
kWkggS: null,
|
|
120
|
-
|
|
120
|
+
kkqDRM: null,
|
|
121
121
|
$$css: true
|
|
122
122
|
},
|
|
123
123
|
filled: {
|
|
@@ -129,7 +129,7 @@ var styles = {
|
|
|
129
129
|
$$css: true
|
|
130
130
|
},
|
|
131
131
|
text: {
|
|
132
|
-
|
|
132
|
+
kHE3J0: null,
|
|
133
133
|
$$css: true
|
|
134
134
|
}
|
|
135
135
|
}
|
|
@@ -31,7 +31,9 @@ declare const styles: {
|
|
|
31
31
|
readonly backgroundColor: import("@stylexjs/stylex").StyleXClassNameFor<"backgroundColor", "var(--color-button)">;
|
|
32
32
|
readonly color: import("@stylexjs/stylex").StyleXClassNameFor<"color", "var(--color-on-button)">;
|
|
33
33
|
readonly ":hover": import("@stylexjs/stylex").StyleXClassNameFor<":hover", {
|
|
34
|
-
readonly
|
|
34
|
+
readonly "@media (hover: hover)": {
|
|
35
|
+
readonly boxShadow: import("@stylexjs/stylex").StyleXVar<string>;
|
|
36
|
+
};
|
|
35
37
|
}>;
|
|
36
38
|
}>;
|
|
37
39
|
readonly outlined: Readonly<{
|
|
@@ -40,13 +42,17 @@ declare const styles: {
|
|
|
40
42
|
readonly borderColor: import("@stylexjs/stylex").StyleXClassNameFor<"borderColor", "var(--color-button)">;
|
|
41
43
|
readonly color: import("@stylexjs/stylex").StyleXClassNameFor<"color", "var(--color-button)">;
|
|
42
44
|
readonly ":hover": import("@stylexjs/stylex").StyleXClassNameFor<":hover", {
|
|
43
|
-
readonly
|
|
45
|
+
readonly "@media (hover: hover)": {
|
|
46
|
+
readonly backgroundColor: "var(--color-button-opacity-08)";
|
|
47
|
+
};
|
|
44
48
|
}>;
|
|
45
49
|
}>;
|
|
46
50
|
readonly text: Readonly<{
|
|
47
51
|
readonly color: import("@stylexjs/stylex").StyleXClassNameFor<"color", "var(--color-button)">;
|
|
48
52
|
readonly ":hover": import("@stylexjs/stylex").StyleXClassNameFor<":hover", {
|
|
49
|
-
readonly
|
|
53
|
+
readonly "@media (hover: hover)": {
|
|
54
|
+
readonly backgroundColor: "var(--color-button-opacity-08)";
|
|
55
|
+
};
|
|
50
56
|
}>;
|
|
51
57
|
}>;
|
|
52
58
|
}>;
|
|
@@ -116,7 +122,9 @@ declare const styles: {
|
|
|
116
122
|
readonly borderColor: import("@stylexjs/stylex").StyleXClassNameFor<"borderColor", null>;
|
|
117
123
|
readonly backgroundColor: import("@stylexjs/stylex").StyleXClassNameFor<"backgroundColor", null>;
|
|
118
124
|
readonly ":hover": import("@stylexjs/stylex").StyleXClassNameFor<":hover", {
|
|
119
|
-
readonly
|
|
125
|
+
readonly "@media (hover: hover)": {
|
|
126
|
+
readonly boxShadow: null;
|
|
127
|
+
};
|
|
120
128
|
}>;
|
|
121
129
|
}>;
|
|
122
130
|
readonly filled: Readonly<{
|
|
@@ -127,7 +135,9 @@ declare const styles: {
|
|
|
127
135
|
}>;
|
|
128
136
|
readonly text: Readonly<{
|
|
129
137
|
readonly ":hover": import("@stylexjs/stylex").StyleXClassNameFor<":hover", {
|
|
130
|
-
readonly
|
|
138
|
+
readonly "@media (hover: hover)": {
|
|
139
|
+
readonly backgroundColor: null;
|
|
140
|
+
};
|
|
131
141
|
}>;
|
|
132
142
|
}>;
|
|
133
143
|
}>;
|
|
@@ -32,7 +32,7 @@ var styles = {
|
|
|
32
32
|
kMzoRj: "musaex-k59kd",
|
|
33
33
|
kWkggS: "musaex-onffnr",
|
|
34
34
|
kMwMTN: "musaex-1nt3oiv",
|
|
35
|
-
|
|
35
|
+
kkqDRM: "musaex-52rqan",
|
|
36
36
|
$$css: true
|
|
37
37
|
},
|
|
38
38
|
outlined: {
|
|
@@ -40,12 +40,12 @@ var styles = {
|
|
|
40
40
|
ksu8eU: "musaex-1y0btm7",
|
|
41
41
|
kVAM5u: "musaex-1u22kak",
|
|
42
42
|
kMwMTN: "musaex-erz01e",
|
|
43
|
-
|
|
43
|
+
kHE3J0: "musaex-iy4r31",
|
|
44
44
|
$$css: true
|
|
45
45
|
},
|
|
46
46
|
text: {
|
|
47
47
|
kMwMTN: "musaex-erz01e",
|
|
48
|
-
|
|
48
|
+
kHE3J0: "musaex-iy4r31",
|
|
49
49
|
$$css: true
|
|
50
50
|
}
|
|
51
51
|
},
|
|
@@ -113,7 +113,7 @@ var styles = {
|
|
|
113
113
|
kGVxlE: null,
|
|
114
114
|
kVAM5u: null,
|
|
115
115
|
kWkggS: null,
|
|
116
|
-
|
|
116
|
+
kkqDRM: null,
|
|
117
117
|
$$css: true
|
|
118
118
|
},
|
|
119
119
|
filled: {
|
|
@@ -125,7 +125,7 @@ var styles = {
|
|
|
125
125
|
$$css: true
|
|
126
126
|
},
|
|
127
127
|
text: {
|
|
128
|
-
|
|
128
|
+
kHE3J0: null,
|
|
129
129
|
$$css: true
|
|
130
130
|
}
|
|
131
131
|
}
|
|
@@ -6,7 +6,7 @@ var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var hooks = require('./hooks.cjs');
|
|
8
8
|
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
9
|
-
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
9
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.18.3/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
10
10
|
var className = require('@aiszlab/relax/class-name');
|
|
11
11
|
var hooks$1 = require('../theme/hooks.cjs');
|
|
12
12
|
var iconButton = require('../icon-button/icon-button.cjs');
|
|
@@ -38,6 +38,7 @@ var Calendar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
38
38
|
var className$1 = _ref.className,
|
|
39
39
|
style = _ref.style,
|
|
40
40
|
value = _ref.value,
|
|
41
|
+
disabledDate = _ref.disabledDate,
|
|
41
42
|
_onClick = _ref.onClick;
|
|
42
43
|
var classNames = useClassNames.useClassNames(context.CLASS_NAMES);
|
|
43
44
|
var _useValue = hooks.useValue({
|
|
@@ -58,7 +59,8 @@ var Calendar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
58
59
|
var dateCells = hooks.useDateCells({
|
|
59
60
|
timespan: timespan,
|
|
60
61
|
focusedAt: focusedAt,
|
|
61
|
-
|
|
62
|
+
onClick: onClick,
|
|
63
|
+
disabledDate: disabledDate,
|
|
62
64
|
classNames: classNames
|
|
63
65
|
});
|
|
64
66
|
var headCells = hooks.useHeadCells({
|
|
@@ -72,7 +74,7 @@ var Calendar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
72
74
|
header: stylex.props(theme.$label.large, styles.header),
|
|
73
75
|
heading: stylex.props(styles.heading, theme.$body.medium),
|
|
74
76
|
body: {
|
|
75
|
-
className: "musaex-
|
|
77
|
+
className: "musaex-1vathgz musaex-4jqler"
|
|
76
78
|
}
|
|
77
79
|
};
|
|
78
80
|
React.useImperativeHandle(ref, function () {
|
|
@@ -3,5 +3,6 @@ import type { CalendarRef } from "../../types/calendar";
|
|
|
3
3
|
declare const Calendar: React.ForwardRefExoticComponent<import("../../types/element").ComponentProps & {
|
|
4
4
|
value?: import("dayjs").Dayjs | [import("@aiszlab/relax/types").Partialable<import("dayjs").Dayjs>, import("@aiszlab/relax/types").Partialable<import("dayjs").Dayjs>];
|
|
5
5
|
onClick?: (value: import("dayjs").Dayjs) => void;
|
|
6
|
+
disabledDate?: (date: import("dayjs").Dayjs) => boolean;
|
|
6
7
|
} & React.RefAttributes<CalendarRef>>;
|
|
7
8
|
export default Calendar;
|
|
@@ -2,7 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import React, { forwardRef, useImperativeHandle } from 'react';
|
|
3
3
|
import { useValue, useFocusedAt, useDateCells, useHeadCells } from './hooks.mjs';
|
|
4
4
|
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
5
|
-
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
5
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.18.3/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
6
6
|
import { stringify } from '@aiszlab/relax/class-name';
|
|
7
7
|
import { useTheme } from '../theme/hooks.mjs';
|
|
8
8
|
import IconButton from '../icon-button/icon-button.mjs';
|
|
@@ -34,6 +34,7 @@ var Calendar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
34
34
|
var className = _ref.className,
|
|
35
35
|
style = _ref.style,
|
|
36
36
|
value = _ref.value,
|
|
37
|
+
disabledDate = _ref.disabledDate,
|
|
37
38
|
_onClick = _ref.onClick;
|
|
38
39
|
var classNames = useClassNames(CLASS_NAMES);
|
|
39
40
|
var _useValue = useValue({
|
|
@@ -54,7 +55,8 @@ var Calendar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
54
55
|
var dateCells = useDateCells({
|
|
55
56
|
timespan: timespan,
|
|
56
57
|
focusedAt: focusedAt,
|
|
57
|
-
|
|
58
|
+
onClick: onClick,
|
|
59
|
+
disabledDate: disabledDate,
|
|
58
60
|
classNames: classNames
|
|
59
61
|
});
|
|
60
62
|
var headCells = useHeadCells({
|
|
@@ -68,7 +70,7 @@ var Calendar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
68
70
|
header: props($label.large, styles.header),
|
|
69
71
|
heading: props(styles.heading, $body.medium),
|
|
70
72
|
body: {
|
|
71
|
-
className: "musaex-
|
|
73
|
+
className: "musaex-1vathgz musaex-4jqler"
|
|
72
74
|
}
|
|
73
75
|
};
|
|
74
76
|
useImperativeHandle(ref, function () {
|
|
@@ -6,7 +6,7 @@ var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
|
6
6
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
var dayjs = require('dayjs');
|
|
8
8
|
var React = require('react');
|
|
9
|
-
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
9
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.18.3/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
10
10
|
var hooks = require('../theme/hooks.cjs');
|
|
11
11
|
var tooltip = require('../tooltip/tooltip.cjs');
|
|
12
12
|
var relax = require('@aiszlab/relax');
|
|
@@ -2,7 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
3
|
import dayjs from 'dayjs';
|
|
4
4
|
import React, { useMemo } from 'react';
|
|
5
|
-
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
5
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.18.3/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
6
6
|
import { useTheme } from '../theme/hooks.mjs';
|
|
7
7
|
import Tooltip from '../tooltip/tooltip.mjs';
|
|
8
8
|
import { min, clamp, toFunction } from '@aiszlab/relax';
|
|
@@ -8,7 +8,7 @@ var React = require('react');
|
|
|
8
8
|
var relax = require('@aiszlab/relax');
|
|
9
9
|
var timespan = require('../../utils/timespan.cjs');
|
|
10
10
|
var className = require('@aiszlab/relax/class-name');
|
|
11
|
-
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
11
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.18.3/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
12
12
|
var iconButton = require('../icon-button/icon-button.cjs');
|
|
13
13
|
var theme = require('../theme/theme.cjs');
|
|
14
14
|
var useThemeColorVars = require('../../hooks/use-theme-color-vars.cjs');
|
|
@@ -30,7 +30,6 @@ var styles = {
|
|
|
30
30
|
kgeoSG: "musaex-10tli2e",
|
|
31
31
|
kEoFBp: "musaex-1hmns74",
|
|
32
32
|
kLkRvE: "musaex-14lex9m",
|
|
33
|
-
kxmVGU: "musaex-rt65ts",
|
|
34
33
|
kgzTxl: "musaex-4dflte",
|
|
35
34
|
$$css: true
|
|
36
35
|
},
|
|
@@ -39,17 +38,17 @@ var styles = {
|
|
|
39
38
|
$$css: true
|
|
40
39
|
},
|
|
41
40
|
range: {
|
|
42
|
-
kSJ0CW: "musaex-
|
|
43
|
-
koaPKo: "musaex-
|
|
41
|
+
kSJ0CW: "musaex-1d34y9o",
|
|
42
|
+
koaPKo: "musaex-vgnsxj",
|
|
44
43
|
$$css: true
|
|
45
44
|
},
|
|
46
45
|
from: {
|
|
47
46
|
kSJ0CW: "musaex-fbisj7",
|
|
48
|
-
koaPKo: "musaex-
|
|
47
|
+
koaPKo: "musaex-vgnsxj",
|
|
49
48
|
$$css: true
|
|
50
49
|
},
|
|
51
50
|
to: {
|
|
52
|
-
kSJ0CW: "musaex-
|
|
51
|
+
kSJ0CW: "musaex-1d34y9o",
|
|
53
52
|
koaPKo: "musaex-1gkks1t",
|
|
54
53
|
$$css: true
|
|
55
54
|
}
|
|
@@ -80,7 +79,8 @@ var useHeadCells = function useHeadCells(_ref) {
|
|
|
80
79
|
var useDateCells = function useDateCells(_ref2) {
|
|
81
80
|
var timespan = _ref2.timespan,
|
|
82
81
|
focusedAt = _ref2.focusedAt,
|
|
83
|
-
|
|
82
|
+
_onClick = _ref2.onClick,
|
|
83
|
+
disabledDate = _ref2.disabledDate,
|
|
84
84
|
classNames = _ref2.classNames;
|
|
85
85
|
var _themeColorVars = useThemeColorVars.useThemeColorVars(["secondary-container"]);
|
|
86
86
|
return React.useMemo(function () {
|
|
@@ -90,35 +90,38 @@ var useDateCells = function useDateCells(_ref2) {
|
|
|
90
90
|
var to = end.endOf("week");
|
|
91
91
|
var gap = to.diff(from, "d") + 1;
|
|
92
92
|
var dateCells = Array.from(new Array(gap).keys()).reduce(function (prev, _, index) {
|
|
93
|
+
var _prev$at;
|
|
93
94
|
if (prev.at(prev.length - 1).length === 7) prev.push([]);
|
|
94
95
|
var currentAt = from.add(index, "d");
|
|
95
96
|
var formatted = currentAt.format("YYYY-MM-DD");
|
|
96
97
|
var isFrom = timespan.isFrom(currentAt);
|
|
97
98
|
var isTo = timespan.isTo(currentAt);
|
|
98
99
|
var isBetween = timespan.isBetween(currentAt);
|
|
99
|
-
var
|
|
100
|
+
var isHidden = currentAt.isBefore(start, "d") || currentAt.isAfter(end, "d");
|
|
101
|
+
var isDisabled = isHidden || !!(disabledDate !== null && disabledDate !== void 0 && disabledDate(currentAt));
|
|
100
102
|
var isSelected = isFrom || isTo;
|
|
101
103
|
var styled = {
|
|
102
|
-
cell: stylex.props(styles.cell, styles.date,
|
|
104
|
+
cell: stylex.props(styles.cell, styles.date, isHidden && styles.hidden, isBetween && styles.range, isFrom && timespan.isRange && styles.from, isTo && timespan.isRange && styles.to, theme.$body.large),
|
|
103
105
|
trigger: {
|
|
104
|
-
className: "musaex-zzs3sa
|
|
106
|
+
className: "musaex-zzs3sa"
|
|
105
107
|
}
|
|
106
108
|
};
|
|
107
|
-
prev.at(prev.length - 1).push(/*#__PURE__*/React.createElement("td", {
|
|
109
|
+
(_prev$at = prev.at(prev.length - 1)) === null || _prev$at === void 0 || _prev$at.push(/*#__PURE__*/React.createElement("td", {
|
|
108
110
|
title: formatted,
|
|
109
111
|
key: formatted,
|
|
110
|
-
className: className.stringify(classNames.dateCell,
|
|
112
|
+
className: className.stringify(classNames.dateCell, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classNames.dateCellSelected, isSelected), classNames.dateCellInRange, !!timespan.isRange && isBetween), classNames.dateCellRangeFrom, !!timespan.isRange && isFrom), classNames.dateCellRangeTo, !!timespan.isRange && isTo), styled.cell.className),
|
|
111
113
|
style: _objectSpread(_objectSpread({}, styled.cell.style), _themeColorVars),
|
|
112
114
|
"aria-selected": isSelected,
|
|
113
|
-
"aria-hidden":
|
|
115
|
+
"aria-hidden": isHidden
|
|
114
116
|
}, /*#__PURE__*/React.createElement(iconButton.default, {
|
|
115
117
|
variant: isSelected ? "filled" : "text",
|
|
116
118
|
size: "small",
|
|
117
119
|
color: isSelected ? "primary" : "secondary",
|
|
120
|
+
disabled: isDisabled,
|
|
118
121
|
className: className.stringify(classNames.date, styled.trigger.className),
|
|
119
122
|
style: styled.trigger.style,
|
|
120
123
|
onClick: function onClick() {
|
|
121
|
-
|
|
124
|
+
_onClick(currentAt);
|
|
122
125
|
}
|
|
123
126
|
}, currentAt.date())));
|
|
124
127
|
return prev;
|
|
@@ -128,15 +131,15 @@ var useDateCells = function useDateCells(_ref2) {
|
|
|
128
131
|
key: index
|
|
129
132
|
}, cells);
|
|
130
133
|
});
|
|
131
|
-
}, [focusedAt, timespan, classNames,
|
|
134
|
+
}, [focusedAt, timespan, classNames, _onClick, disabledDate, _themeColorVars]);
|
|
132
135
|
};
|
|
133
136
|
/**
|
|
134
137
|
* @description
|
|
135
138
|
* time span
|
|
136
139
|
*/
|
|
137
|
-
var useValue = function useValue(
|
|
138
|
-
var _click =
|
|
139
|
-
value =
|
|
140
|
+
var useValue = function useValue(_ref3) {
|
|
141
|
+
var _click = _ref3.onClick,
|
|
142
|
+
value = _ref3.value;
|
|
140
143
|
// change handler
|
|
141
144
|
var onClick = React.useCallback(function (_value) {
|
|
142
145
|
_click === null || _click === void 0 || _click(_value);
|
|
@@ -161,9 +164,9 @@ var useValue = function useValue(_ref4) {
|
|
|
161
164
|
* @description
|
|
162
165
|
* point at
|
|
163
166
|
*/
|
|
164
|
-
var useFocusedAt = function useFocusedAt(
|
|
165
|
-
var
|
|
166
|
-
_focusedAt =
|
|
167
|
+
var useFocusedAt = function useFocusedAt(_ref4) {
|
|
168
|
+
var _ref4$focusedAt = _ref4.focusedAt,
|
|
169
|
+
_focusedAt = _ref4$focusedAt === void 0 ? dayjs() : _ref4$focusedAt;
|
|
167
170
|
var _useState = React.useState(_focusedAt),
|
|
168
171
|
_useState2 = _slicedToArray(_useState, 2),
|
|
169
172
|
focusedAt = _useState2[0],
|
|
@@ -15,10 +15,11 @@ export declare const useHeadCells: ({ classNames }: {
|
|
|
15
15
|
* @description
|
|
16
16
|
* dates
|
|
17
17
|
*/
|
|
18
|
-
export declare const useDateCells: ({ timespan, focusedAt,
|
|
18
|
+
export declare const useDateCells: ({ timespan, focusedAt, onClick, disabledDate, classNames, }: {
|
|
19
19
|
timespan: Timespan;
|
|
20
20
|
focusedAt: Dayjs;
|
|
21
|
-
|
|
21
|
+
onClick: Required<CalendarProps>["onClick"];
|
|
22
|
+
disabledDate?: CalendarProps["disabledDate"];
|
|
22
23
|
classNames: typeof CLASS_NAMES;
|
|
23
24
|
}) => React.JSX.Element[];
|
|
24
25
|
/**
|