musae 0.2.19 → 0.2.21
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.js +25 -29
- package/dist/components/avatar/group.js +2 -2
- package/dist/components/badge/badge.js +25 -26
- package/dist/components/bench/bench.d.ts +1 -1
- package/dist/components/bench/bench.js +32 -22
- package/dist/components/bench/types.d.ts +8 -2
- package/dist/components/breadcrumb/breadcrumb.js +3 -3
- package/dist/components/breadcrumb/item.js +9 -9
- package/dist/components/button/button.js +42 -42
- package/dist/components/calendar/calendar.js +8 -8
- package/dist/components/calendar/hooks.js +20 -21
- package/dist/components/cascader/cascader.js +2 -2
- package/dist/components/checkbox/checkbox.d.ts +2 -0
- package/dist/components/checkbox/checkbox.js +17 -200
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/styles.d.ts +93 -0
- package/dist/components/checkbox/styles.js +183 -0
- package/dist/components/clock/clock.js +5 -5
- package/dist/components/clock/column.js +10 -11
- package/dist/components/collapse/collapse.js +5 -5
- package/dist/components/collapse/item.js +22 -23
- package/dist/components/date-picker/date-picker.js +2 -2
- package/dist/components/date-range-picker/date-range-picker.js +3 -3
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/dialog/popup.d.ts +1 -1
- package/dist/components/dialog/popup.js +34 -33
- package/dist/components/dialog/types.d.ts +5 -4
- package/dist/components/divider/divider.d.ts +1 -1
- package/dist/components/divider/divider.js +38 -38
- package/dist/components/divider/types.d.ts +3 -3
- package/dist/components/drawer/drawer.js +1 -1
- package/dist/components/drawer/popup.d.ts +1 -1
- package/dist/components/drawer/popup.js +46 -45
- package/dist/components/drawer/types.d.ts +3 -2
- package/dist/components/empty/empty.js +3 -3
- package/dist/components/floating-action-button/floatable.js +7 -7
- package/dist/components/form/field/error.js +5 -5
- package/dist/components/form/field/field.js +3 -4
- package/dist/components/form/field/layout.js +5 -5
- package/dist/components/form/form.js +5 -1
- package/dist/components/form/types.d.ts +2 -1
- package/dist/components/grid/col.js +3 -3
- package/dist/components/grid/row.js +7 -7
- package/dist/components/highlight/highlight.js +2 -2
- package/dist/components/i18n-button/i18n-button.js +24 -6
- package/dist/components/icon/icon.js +6 -7
- package/dist/components/icon/icons/action/code.d.ts +3 -0
- package/dist/components/icon/icons/action/code.js +19 -0
- package/dist/components/icon/icons/action/index.d.ts +3 -1
- package/dist/components/icon/icons/action/index.js +2 -0
- package/dist/components/icon/icons/action/open-in-new.d.ts +3 -0
- package/dist/components/icon/icons/action/open-in-new.js +19 -0
- package/dist/components/icon/icons/content/clear.d.ts +2 -2
- package/dist/components/icon/icons/content/clear.js +4 -4
- package/dist/components/icon/icons/content/font-download.d.ts +3 -0
- package/dist/components/icon/icons/content/font-download.js +19 -0
- package/dist/components/icon/icons/content/index.d.ts +5 -1
- package/dist/components/icon/icons/content/index.js +4 -0
- package/dist/components/icon/icons/content/link-off.d.ts +3 -0
- package/dist/components/icon/icons/content/link-off.js +19 -0
- package/dist/components/icon/icons/content/redo.d.ts +3 -0
- package/dist/components/icon/icons/content/redo.js +19 -0
- package/dist/components/icon/icons/content/undo.d.ts +3 -0
- package/dist/components/icon/icons/content/undo.js +19 -0
- package/dist/components/icon/icons/editor/checklist.d.ts +3 -0
- package/dist/components/icon/icons/editor/checklist.js +19 -0
- package/dist/components/icon/icons/editor/format-bold.d.ts +3 -0
- package/dist/components/icon/icons/editor/format-bold.js +19 -0
- package/dist/components/icon/icons/editor/format-italic.d.ts +3 -0
- package/dist/components/icon/icons/editor/format-italic.js +19 -0
- package/dist/components/icon/icons/editor/format-strikethrough.d.ts +3 -0
- package/dist/components/icon/icons/editor/format-strikethrough.js +19 -0
- package/dist/components/icon/icons/editor/format-underlined.d.ts +3 -0
- package/dist/components/icon/icons/editor/format-underlined.js +19 -0
- package/dist/components/icon/icons/editor/index.d.ts +10 -0
- package/dist/components/icon/icons/editor/index.js +9 -0
- package/dist/components/icon/icons/editor/insert-link.d.ts +3 -0
- package/dist/components/icon/icons/editor/insert-link.js +19 -0
- package/dist/components/icon/icons/editor/notes.d.ts +3 -0
- package/dist/components/icon/icons/editor/notes.js +19 -0
- package/dist/components/icon/icons/editor/subscript.d.ts +3 -0
- package/dist/components/icon/icons/editor/subscript.js +19 -0
- package/dist/components/icon/icons/editor/superscript.d.ts +3 -0
- package/dist/components/icon/icons/editor/superscript.js +19 -0
- package/dist/components/icon/icons/image/edit.d.ts +3 -0
- package/dist/components/icon/icons/image/edit.js +19 -0
- package/dist/components/icon/icons/image/index.d.ts +8 -1
- package/dist/components/icon/icons/image/index.js +7 -0
- package/dist/components/icon/icons/image/looks-five.d.ts +3 -0
- package/dist/components/icon/icons/image/looks-five.js +19 -0
- package/dist/components/icon/icons/image/looks-four.d.ts +3 -0
- package/dist/components/icon/icons/image/looks-four.js +19 -0
- package/dist/components/icon/icons/image/looks-one.d.ts +3 -0
- package/dist/components/icon/icons/image/looks-one.js +19 -0
- package/dist/components/icon/icons/image/looks-six.d.ts +3 -0
- package/dist/components/icon/icons/image/looks-six.js +19 -0
- package/dist/components/icon/icons/image/looks-three.d.ts +3 -0
- package/dist/components/icon/icons/image/looks-three.js +19 -0
- package/dist/components/icon/icons/image/looks-two.d.ts +3 -0
- package/dist/components/icon/icons/image/looks-two.js +19 -0
- package/dist/components/icon/icons/index.d.ts +1 -8
- package/dist/components/icon/icons/index.js +22 -16
- package/dist/components/icon/icons/mock/loading.js +1 -1
- package/dist/components/image/preview/operations.js +19 -19
- package/dist/components/image/preview/preview.js +3 -3
- package/dist/components/input/input.js +25 -26
- package/dist/components/layout/header.js +10 -10
- package/dist/components/layout/layout.js +5 -5
- package/dist/components/loading/loading.js +44 -44
- package/dist/components/menu/group.js +16 -15
- package/dist/components/menu/hooks.js +7 -7
- package/dist/components/menu/item.js +42 -45
- package/dist/components/menu/menu.js +2 -3
- package/dist/components/notification/holder.js +21 -21
- package/dist/components/notification/notification.js +34 -35
- package/dist/components/notification/notifier.js +1 -1
- package/dist/components/otp-input/otp-input.js +2 -2
- package/dist/components/pagination/item.js +1 -1
- package/dist/components/pagination/pagination.js +3 -4
- package/dist/components/picker/picker.js +2 -3
- package/dist/components/popconfirm/popconfirm.js +9 -10
- package/dist/components/popover/hooks.d.ts +16 -0
- package/dist/components/popover/hooks.js +64 -0
- package/dist/components/popover/popover.d.ts +1 -0
- package/dist/components/popover/popover.js +25 -24
- package/dist/components/popover/types.d.ts +7 -1
- package/dist/components/popper/dropdown.d.ts +3 -2
- package/dist/components/popper/dropdown.js +53 -125
- package/dist/components/popper/hooks.d.ts +27 -2
- package/dist/components/popper/hooks.js +164 -2
- package/dist/components/popper/index.d.ts +2 -0
- package/dist/components/popper/popper.d.ts +2 -2
- package/dist/components/popper/popper.js +4 -2
- package/dist/components/popper/types.d.ts +32 -3
- package/dist/components/portal/portal.js +1 -1
- package/dist/components/progress/circular.js +8 -8
- package/dist/components/progress/linear.js +9 -9
- package/dist/components/quote/index.d.ts +2 -0
- package/dist/components/quote/quote.d.ts +4 -0
- package/dist/components/quote/quote.js +29 -0
- package/dist/components/quote/styles.d.ts +20 -0
- package/dist/components/quote/styles.js +29 -0
- package/dist/components/quote/types.d.ts +12 -0
- package/dist/components/radio/radio.js +38 -39
- package/dist/components/rate/rate.js +4 -4
- package/dist/components/rate/star.js +18 -19
- package/dist/components/rich-text-editor/dropdown.d.ts +4 -0
- package/dist/components/rich-text-editor/dropdown.js +78 -0
- package/dist/components/rich-text-editor/index.d.ts +4 -0
- package/dist/components/rich-text-editor/index.js +12 -0
- package/dist/components/rich-text-editor/nodes/checkable-list-item.d.ts +12 -0
- package/dist/components/rich-text-editor/nodes/checkable-list-item.js +88 -0
- package/dist/components/rich-text-editor/plugins/check-list/index.d.ts +2 -0
- package/dist/components/rich-text-editor/plugins/check-list/index.js +47 -0
- package/dist/components/rich-text-editor/plugins/controlled-state/index.d.ts +6 -0
- package/dist/components/rich-text-editor/plugins/controlled-state/index.js +23 -0
- package/dist/components/rich-text-editor/plugins/floating-link-editor/index.d.ts +7 -0
- package/dist/components/rich-text-editor/plugins/floating-link-editor/index.js +121 -0
- package/dist/components/rich-text-editor/plugins/markdown-shortcut/index.d.ts +4 -0
- package/dist/components/rich-text-editor/plugins/markdown-shortcut/index.js +12 -0
- package/dist/components/rich-text-editor/plugins/toolbar/hooks.d.ts +50 -0
- package/dist/components/rich-text-editor/plugins/toolbar/hooks.js +262 -0
- package/dist/components/rich-text-editor/plugins/toolbar/index.d.ts +3 -0
- package/dist/components/rich-text-editor/plugins/toolbar/index.js +216 -0
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +4 -0
- package/dist/components/rich-text-editor/rich-text-editor.js +193 -0
- package/dist/components/rich-text-editor/types.d.ts +56 -0
- package/dist/components/rich-text-editor/utils/get-element-by-node.d.ts +2 -0
- package/dist/components/rich-text-editor/utils/get-element-by-node.js +8 -0
- package/dist/components/ripple/ripple.js +9 -9
- package/dist/components/select/select.js +3 -3
- package/dist/components/select/selections.js +4 -0
- package/dist/components/select/selector.js +1 -1
- package/dist/components/skeleton/skeleton.js +17 -17
- package/dist/components/space/space.js +8 -8
- package/dist/components/steps/item.js +43 -44
- package/dist/components/steps/steps.js +6 -6
- package/dist/components/switch/switch.js +67 -68
- package/dist/components/table/body.js +7 -7
- package/dist/components/table/header/cell.js +16 -16
- package/dist/components/table/header/header.js +18 -18
- package/dist/components/table/table.js +1 -1
- package/dist/components/tabs/navigation.js +27 -28
- package/dist/components/tabs/panels.js +3 -4
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/tag/tag.js +18 -18
- package/dist/components/theme/hooks.js +7 -7
- package/dist/components/theme/theme.js +60 -60
- package/dist/components/theme/tokens.stylex.d.ts +3 -2
- package/dist/components/theme/tokens.stylex.js +45 -36
- package/dist/components/time-picker/panel.js +11 -11
- package/dist/components/time-picker/time-picker.js +1 -2
- package/dist/components/timeline/item.js +38 -38
- package/dist/components/timeline/timeline.js +2 -2
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/components/tour/spotlight.js +2 -3
- package/dist/components/tour/tour.js +15 -15
- package/dist/components/tour/types.d.ts +1 -1
- package/dist/components/transfer/item.js +2 -2
- package/dist/components/transfer/list.js +15 -15
- package/dist/components/transfer/transfer.js +3 -3
- package/dist/components/tree/list.js +5 -6
- package/dist/components/tree/node.js +21 -22
- package/dist/components/upload/upload.js +1 -1
- package/dist/components/upload/uploadeds.js +2 -2
- package/dist/components/visually-hidden/visually-hidden.js +2 -2
- package/dist/components/waterfall/sequential.js +5 -5
- package/dist/components/waterfall/waterfall.js +15 -16
- package/dist/components/watermark/watermark.js +2 -2
- package/dist/hooks/use-class-names.d.ts +3 -0
- package/dist/hooks/use-closable.js +1 -1
- package/dist/hooks/use-container.d.ts +3 -2
- package/dist/hooks/use-container.js +11 -6
- package/dist/hooks/use-lazy-boolean.d.ts +2 -2
- package/dist/hooks/use-lazy-boolean.js +10 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/stylex.css +536 -512
- package/dist/utils/class-name.d.ts +9 -0
- package/dist/utils/class-name.js +6 -2
- package/dist/utils/component-token.d.ts +2 -1
- package/dist/utils/component-token.js +1 -0
- package/package.json +50 -6
- package/dist/node_modules/.pnpm/@aiszlab_relax@1.2.73_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@aiszlab/relax/dist/dom/contains.js +0 -20
- package/dist/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js +0 -20
|
@@ -7,16 +7,15 @@ import { useTheme } from '../theme/hooks.js';
|
|
|
7
7
|
import { ColorToken } from '../../utils/colors.js';
|
|
8
8
|
import { useClassNames } from '../../hooks/use-class-names.js';
|
|
9
9
|
import { AvatarClassToken } from '../../utils/class-name.js';
|
|
10
|
-
import clsx from 'clsx';
|
|
11
10
|
import { typography } from '../theme/theme.js';
|
|
12
|
-
import { useImageLoader } from '@aiszlab/relax';
|
|
11
|
+
import { useImageLoader, clsx } from '@aiszlab/relax';
|
|
13
12
|
import { ComponentToken } from '../../utils/component-token.js';
|
|
14
13
|
|
|
15
14
|
var _excluded = ["src", "alt", "shape", "size"];
|
|
16
15
|
var styles = {
|
|
17
16
|
avatar: function avatar(props) {
|
|
18
17
|
return [{
|
|
19
|
-
borderWidth: "
|
|
18
|
+
borderWidth: "musaex-bupo1m",
|
|
20
19
|
borderInlineWidth: null,
|
|
21
20
|
borderInlineStartWidth: null,
|
|
22
21
|
borderLeftWidth: null,
|
|
@@ -25,7 +24,7 @@ var styles = {
|
|
|
25
24
|
borderBlockWidth: null,
|
|
26
25
|
borderTopWidth: null,
|
|
27
26
|
borderBottomWidth: null,
|
|
28
|
-
borderStyle: "
|
|
27
|
+
borderStyle: "musaex-1y0btm7",
|
|
29
28
|
borderInlineStyle: null,
|
|
30
29
|
borderInlineStartStyle: null,
|
|
31
30
|
borderLeftStyle: null,
|
|
@@ -34,7 +33,7 @@ var styles = {
|
|
|
34
33
|
borderBlockStyle: null,
|
|
35
34
|
borderTopStyle: null,
|
|
36
35
|
borderBottomStyle: null,
|
|
37
|
-
borderColor: "
|
|
36
|
+
borderColor: "musaex-9r1u3d",
|
|
38
37
|
borderInlineColor: null,
|
|
39
38
|
borderInlineStartColor: null,
|
|
40
39
|
borderLeftColor: null,
|
|
@@ -43,13 +42,13 @@ var styles = {
|
|
|
43
42
|
borderBlockColor: null,
|
|
44
43
|
borderTopColor: null,
|
|
45
44
|
borderBottomColor: null,
|
|
46
|
-
boxSizing: "
|
|
47
|
-
display: "
|
|
48
|
-
backgroundColor: "
|
|
49
|
-
color: "
|
|
50
|
-
alignItems: "
|
|
51
|
-
justifyContent: "
|
|
52
|
-
userSelect: "
|
|
45
|
+
boxSizing: "musaex-9f619",
|
|
46
|
+
display: "musaex-3nfvp2",
|
|
47
|
+
backgroundColor: "musaex-q1mx2j",
|
|
48
|
+
color: "musaex-19dipnz",
|
|
49
|
+
alignItems: "musaex-6s0dn4",
|
|
50
|
+
justifyContent: "musaex-l56j7k",
|
|
51
|
+
userSelect: "musaex-87ps6o",
|
|
53
52
|
$$css: true
|
|
54
53
|
}, {
|
|
55
54
|
"--backgroundColor": props.backgroundColor != null ? props.backgroundColor : "initial",
|
|
@@ -57,10 +56,9 @@ var styles = {
|
|
|
57
56
|
}];
|
|
58
57
|
},
|
|
59
58
|
image: {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
borderRadius: "musae-1pjcqnp",
|
|
59
|
+
objectFit: "musaex-l1xv1r",
|
|
60
|
+
objectPosition: "musaex-1s8dy9j",
|
|
61
|
+
borderRadius: "musaex-1pjcqnp",
|
|
64
62
|
borderStartStartRadius: null,
|
|
65
63
|
borderStartEndRadius: null,
|
|
66
64
|
borderEndStartRadius: null,
|
|
@@ -73,10 +71,10 @@ var styles = {
|
|
|
73
71
|
},
|
|
74
72
|
overlapping: function overlapping(props) {
|
|
75
73
|
return [{
|
|
76
|
-
":not(:first-child)_marginInlineStart": "
|
|
74
|
+
":not(:first-child)_marginInlineStart": "musaex-3d5u6r",
|
|
77
75
|
":not(:first-child)_marginLeft": null,
|
|
78
76
|
":not(:first-child)_marginRight": null,
|
|
79
|
-
borderColor: "
|
|
77
|
+
borderColor: "musaex-eqt46j",
|
|
80
78
|
borderInlineColor: null,
|
|
81
79
|
borderInlineStartColor: null,
|
|
82
80
|
borderLeftColor: null,
|
|
@@ -91,7 +89,7 @@ var styles = {
|
|
|
91
89
|
}];
|
|
92
90
|
},
|
|
93
91
|
circular: {
|
|
94
|
-
borderRadius: "
|
|
92
|
+
borderRadius: "musaex-z7qqyb",
|
|
95
93
|
borderStartStartRadius: null,
|
|
96
94
|
borderStartEndRadius: null,
|
|
97
95
|
borderEndStartRadius: null,
|
|
@@ -103,7 +101,7 @@ var styles = {
|
|
|
103
101
|
$$css: true
|
|
104
102
|
},
|
|
105
103
|
squared: {
|
|
106
|
-
borderRadius: "
|
|
104
|
+
borderRadius: "musaex-ok3b7d",
|
|
107
105
|
borderStartStartRadius: null,
|
|
108
106
|
borderStartEndRadius: null,
|
|
109
107
|
borderEndStartRadius: null,
|
|
@@ -115,18 +113,18 @@ var styles = {
|
|
|
115
113
|
$$css: true
|
|
116
114
|
},
|
|
117
115
|
small: {
|
|
118
|
-
width: "
|
|
119
|
-
height: "
|
|
116
|
+
width: "musaex-6hukdw",
|
|
117
|
+
height: "musaex-q5eura",
|
|
120
118
|
$$css: true
|
|
121
119
|
},
|
|
122
120
|
medium: {
|
|
123
|
-
width: "
|
|
124
|
-
height: "
|
|
121
|
+
width: "musaex-zx3e9c",
|
|
122
|
+
height: "musaex-1dql3xx",
|
|
125
123
|
$$css: true
|
|
126
124
|
},
|
|
127
125
|
large: {
|
|
128
|
-
width: "
|
|
129
|
-
height: "
|
|
126
|
+
width: "musaex-1opwmbq",
|
|
127
|
+
height: "musaex-19ak84k",
|
|
130
128
|
$$css: true
|
|
131
129
|
}
|
|
132
130
|
};
|
|
@@ -159,9 +157,7 @@ var Avatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
159
157
|
}), styles[size], styles[shape], isInGroup && styles.overlapping({
|
|
160
158
|
outlineColor: theme.colors[ColorToken.OnPrimary]
|
|
161
159
|
})),
|
|
162
|
-
image:
|
|
163
|
-
className: "musae-wfgd1y musae-b27hse musae-l1xv1r musae-1pjcqnp"
|
|
164
|
-
}
|
|
160
|
+
image: props(styles.image, styles[size])
|
|
165
161
|
};
|
|
166
162
|
return /*#__PURE__*/React.createElement("span", _objectSpread(_objectSpread({}, props$1), {}, {
|
|
167
163
|
className: clsx(classNames[AvatarClassToken.Avatar], styled.avatar.className),
|
|
@@ -5,8 +5,8 @@ import { useClassNames } from '../../hooks/use-class-names.js';
|
|
|
5
5
|
import { AvatarClassToken } from '../../utils/class-name.js';
|
|
6
6
|
import Popover from '../popover/popover.js';
|
|
7
7
|
import Avatar from './avatar.js';
|
|
8
|
-
import clsx from 'clsx';
|
|
9
8
|
import { ComponentToken } from '../../utils/component-token.js';
|
|
9
|
+
import { clsx } from '@aiszlab/relax';
|
|
10
10
|
|
|
11
11
|
var _Group = function Group(_ref) {
|
|
12
12
|
var _children = _ref.children,
|
|
@@ -18,7 +18,7 @@ var _Group = function Group(_ref) {
|
|
|
18
18
|
max = _ref$max === void 0 ? 3 : _ref$max;
|
|
19
19
|
var classNames = useClassNames(ComponentToken.Avatar);
|
|
20
20
|
var styled = {
|
|
21
|
-
className: "
|
|
21
|
+
className: "musaex-3nfvp2 musaex-87ps6o"
|
|
22
22
|
};
|
|
23
23
|
var children = useMemo(function () {
|
|
24
24
|
var _Children$toArray$red = Children.toArray(_children).reduce(function (prev, child, index) {
|
|
@@ -3,27 +3,26 @@ import React from 'react';
|
|
|
3
3
|
import { useClassNames } from '../../hooks/use-class-names.js';
|
|
4
4
|
import { BadgeClassToken } from '../../utils/class-name.js';
|
|
5
5
|
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
|
|
6
|
-
import clsx from 'clsx';
|
|
7
6
|
import { typography } from '../theme/theme.js';
|
|
8
7
|
import { sizes } from '../theme/tokens.stylex.js';
|
|
9
8
|
import { useTheme } from '../theme/hooks.js';
|
|
10
9
|
import { ColorToken } from '../../utils/colors.js';
|
|
11
|
-
import { isVoid } from '@aiszlab/relax';
|
|
10
|
+
import { isVoid, clsx } from '@aiszlab/relax';
|
|
12
11
|
import { ComponentToken } from '../../utils/component-token.js';
|
|
13
12
|
|
|
14
13
|
var styles = {
|
|
15
14
|
badge: {
|
|
16
15
|
"default": {
|
|
17
|
-
position: "
|
|
18
|
-
display: "
|
|
16
|
+
position: "musaex-1n2onr6",
|
|
17
|
+
display: "musaex-3nfvp2",
|
|
19
18
|
$$css: true
|
|
20
19
|
}
|
|
21
20
|
},
|
|
22
21
|
tail: {
|
|
23
22
|
"default": function _default(props) {
|
|
24
23
|
return [{
|
|
25
|
-
position: "
|
|
26
|
-
borderRadius: "
|
|
24
|
+
position: "musaex-10l6tqk",
|
|
25
|
+
borderRadius: "musaex-z7qqyb",
|
|
27
26
|
borderStartStartRadius: null,
|
|
28
27
|
borderStartEndRadius: null,
|
|
29
28
|
borderEndStartRadius: null,
|
|
@@ -32,11 +31,11 @@ var styles = {
|
|
|
32
31
|
borderTopRightRadius: null,
|
|
33
32
|
borderBottomLeftRadius: null,
|
|
34
33
|
borderBottomRightRadius: null,
|
|
35
|
-
minWidth: "
|
|
36
|
-
textAlign: "
|
|
37
|
-
boxShadow: "
|
|
38
|
-
backgroundColor: "
|
|
39
|
-
color: "
|
|
34
|
+
minWidth: "musaex-wgl7p8",
|
|
35
|
+
textAlign: "musaex-2b8uid",
|
|
36
|
+
boxShadow: "musaex-igitpm",
|
|
37
|
+
backgroundColor: "musaex-q1mx2j",
|
|
38
|
+
color: "musaex-19dipnz",
|
|
40
39
|
$$css: true
|
|
41
40
|
}, {
|
|
42
41
|
"--boxShadow": "0 0 0 ".concat(sizes.smallest, " ").concat(props.color) != null ? "0 0 0 ".concat(sizes.smallest, " ").concat(props.color) : "initial",
|
|
@@ -46,44 +45,44 @@ var styles = {
|
|
|
46
45
|
},
|
|
47
46
|
dot: {
|
|
48
47
|
minWidth: null,
|
|
49
|
-
width: "
|
|
50
|
-
height: "
|
|
48
|
+
width: "musaex-1ankuk0",
|
|
49
|
+
height: "musaex-drj9st",
|
|
51
50
|
$$css: true
|
|
52
51
|
},
|
|
53
52
|
invisible: {
|
|
54
|
-
display: "
|
|
53
|
+
display: "musaex-1s85apg",
|
|
55
54
|
$$css: true
|
|
56
55
|
},
|
|
57
56
|
"top-right": {
|
|
58
|
-
top: "
|
|
59
|
-
right: "
|
|
57
|
+
top: "musaex-13vifvy",
|
|
58
|
+
right: "musaex-3m8u43",
|
|
60
59
|
insetInlineStart: null,
|
|
61
60
|
insetInlineEnd: null,
|
|
62
|
-
transform: "
|
|
61
|
+
transform: "musaex-rycbv3",
|
|
63
62
|
$$css: true
|
|
64
63
|
},
|
|
65
64
|
"top-left": {
|
|
66
|
-
top: "
|
|
67
|
-
left: "
|
|
65
|
+
top: "musaex-13vifvy",
|
|
66
|
+
left: "musaex-u96u03",
|
|
68
67
|
insetInlineStart: null,
|
|
69
68
|
insetInlineEnd: null,
|
|
70
|
-
transform: "
|
|
69
|
+
transform: "musaex-1i3z1r0",
|
|
71
70
|
$$css: true
|
|
72
71
|
},
|
|
73
72
|
"bottom-right": {
|
|
74
|
-
bottom: "
|
|
75
|
-
right: "
|
|
73
|
+
bottom: "musaex-1ey2m1c",
|
|
74
|
+
right: "musaex-3m8u43",
|
|
76
75
|
insetInlineStart: null,
|
|
77
76
|
insetInlineEnd: null,
|
|
78
|
-
transform: "
|
|
77
|
+
transform: "musaex-1vfo23u",
|
|
79
78
|
$$css: true
|
|
80
79
|
},
|
|
81
80
|
"bottom-left": {
|
|
82
|
-
bottom: "
|
|
83
|
-
left: "
|
|
81
|
+
bottom: "musaex-1ey2m1c",
|
|
82
|
+
left: "musaex-u96u03",
|
|
84
83
|
insetInlineStart: null,
|
|
85
84
|
insetInlineEnd: null,
|
|
86
|
-
transform: "
|
|
85
|
+
transform: "musaex-itovws",
|
|
87
86
|
$$css: true
|
|
88
87
|
}
|
|
89
88
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { BenchProps } from "./types";
|
|
3
|
-
declare const Bench: ({ children, title, logo, navigations, className, style, trailing, onNavigate, location, defaultExpandedKeys, classNames: { main: mainClassName }, }: BenchProps) => React.JSX.Element;
|
|
3
|
+
declare const Bench: ({ children, title, logo, navigations, className, style, trailing, onNavigate, location, defaultExpandedKeys, classNames: { main: mainClassName }, elevation, }: BenchProps) => React.JSX.Element;
|
|
4
4
|
export default Bench;
|
|
@@ -2,13 +2,14 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Layout } from '../layout/index.js';
|
|
4
4
|
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
|
|
5
|
+
import { elevations } from '../theme/tokens.stylex.js';
|
|
5
6
|
import Divider from '../divider/divider.js';
|
|
6
7
|
import { useLogo, useNavigations } from './hooks.js';
|
|
7
8
|
import Menu from '../menu/menu.js';
|
|
8
9
|
import { useTheme } from '../theme/hooks.js';
|
|
9
10
|
import { ColorToken } from '../../utils/colors.js';
|
|
10
11
|
import { typography } from '../theme/theme.js';
|
|
11
|
-
import clsx from '
|
|
12
|
+
import { clsx } from '@aiszlab/relax';
|
|
12
13
|
|
|
13
14
|
var Header = Layout.Header,
|
|
14
15
|
Main = Layout.Main,
|
|
@@ -20,24 +21,25 @@ var styles = {
|
|
|
20
21
|
},
|
|
21
22
|
sider: function sider(props) {
|
|
22
23
|
return [{
|
|
23
|
-
borderRightWidth: "
|
|
24
|
+
borderRightWidth: "musaex-1xs0jsv",
|
|
24
25
|
borderInlineStartWidth: null,
|
|
25
26
|
borderInlineEndWidth: null,
|
|
26
|
-
borderRightStyle: "
|
|
27
|
+
borderRightStyle: "musaex-32b0ac",
|
|
27
28
|
borderInlineStartStyle: null,
|
|
28
29
|
borderInlineEndStyle: null,
|
|
29
|
-
borderRightColor: "
|
|
30
|
+
borderRightColor: "musaex-104k1kx",
|
|
30
31
|
borderInlineStartColor: null,
|
|
31
32
|
borderInlineEndColor: null,
|
|
32
|
-
paddingInline: "
|
|
33
|
+
paddingInline: "musaex-1dhq86w",
|
|
33
34
|
paddingStart: null,
|
|
34
35
|
paddingLeft: null,
|
|
35
36
|
paddingEnd: null,
|
|
36
37
|
paddingRight: null,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
paddingBottom: "musaex-igxgg9",
|
|
39
|
+
position: "musaex-7wzq59",
|
|
40
|
+
height: "musaex-bmf846",
|
|
41
|
+
top: "musaex-98oeat",
|
|
42
|
+
overflowY: "musaex-10wlt62 musaex-r8ctv5",
|
|
41
43
|
$$css: true
|
|
42
44
|
}, {
|
|
43
45
|
"--borderRightColor": props.outlineColor != null ? props.outlineColor : "initial"
|
|
@@ -48,23 +50,27 @@ var styles = {
|
|
|
48
50
|
}
|
|
49
51
|
},
|
|
50
52
|
header: {
|
|
51
|
-
"default": {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
"default": function _default(props) {
|
|
54
|
+
return [{
|
|
55
|
+
gap: "musaex-1lsrmdg",
|
|
56
|
+
rowGap: null,
|
|
57
|
+
columnGap: null,
|
|
58
|
+
boxShadow: "musaex-igitpm",
|
|
59
|
+
$$css: true
|
|
60
|
+
}, {
|
|
61
|
+
"--boxShadow": elevations[props.elevation] != null ? elevations[props.elevation] : "initial"
|
|
62
|
+
}];
|
|
57
63
|
},
|
|
58
64
|
navigation: {
|
|
59
|
-
marginLeft: "
|
|
65
|
+
marginLeft: "musaex-9x39mp",
|
|
60
66
|
marginInlineStart: null,
|
|
61
67
|
marginInlineEnd: null,
|
|
62
|
-
marginRight: "
|
|
63
|
-
height: "
|
|
68
|
+
marginRight: "musaex-ack27t",
|
|
69
|
+
height: "musaex-1xj1dsn",
|
|
64
70
|
$$css: true
|
|
65
71
|
},
|
|
66
72
|
divider: {
|
|
67
|
-
height: "
|
|
73
|
+
height: "musaex-q5eura",
|
|
68
74
|
$$css: true
|
|
69
75
|
}
|
|
70
76
|
}
|
|
@@ -83,7 +89,9 @@ var Bench = function Bench(_ref) {
|
|
|
83
89
|
defaultExpandedKeys = _ref.defaultExpandedKeys,
|
|
84
90
|
_ref$classNames = _ref.classNames,
|
|
85
91
|
_ref$classNames2 = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
86
|
-
mainClassName = _ref$classNames2.main
|
|
92
|
+
mainClassName = _ref$classNames2.main,
|
|
93
|
+
_ref$elevation = _ref.elevation,
|
|
94
|
+
elevation = _ref$elevation === void 0 ? "xsmall" : _ref$elevation;
|
|
87
95
|
var theme = useTheme();
|
|
88
96
|
var _logo = useLogo(logo);
|
|
89
97
|
var _useNavigations = useNavigations({
|
|
@@ -97,7 +105,9 @@ var Bench = function Bench(_ref) {
|
|
|
97
105
|
selectedKeys = _useNavigations.selectedKeys;
|
|
98
106
|
var styled = {
|
|
99
107
|
bench: _stylex.props(styles.bench["default"]),
|
|
100
|
-
header: _stylex.props(styles.header["default"]
|
|
108
|
+
header: _stylex.props(styles.header["default"]({
|
|
109
|
+
elevation: elevation
|
|
110
|
+
})),
|
|
101
111
|
main: _stylex.props(styles.bench.main),
|
|
102
112
|
sider: _stylex.props(styles.bench.sider({
|
|
103
113
|
outlineColor: theme.colors[ColorToken.OutlineVariant]
|
|
@@ -119,7 +129,7 @@ var Bench = function Bench(_ref) {
|
|
|
119
129
|
className: styled.divider.className,
|
|
120
130
|
style: styled.divider.style
|
|
121
131
|
}, /*#__PURE__*/React.createElement(Divider, {
|
|
122
|
-
|
|
132
|
+
orientation: "vertical"
|
|
123
133
|
}))), /*#__PURE__*/React.createElement("span", {
|
|
124
134
|
className: styled.title.className,
|
|
125
135
|
style: styled.title.style
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Key, ReactNode } from "react";
|
|
2
|
-
import { ComponentProps } from "../../types/element";
|
|
1
|
+
import type { Key, ReactNode } from "react";
|
|
2
|
+
import type { ComponentProps } from "../../types/element";
|
|
3
|
+
import type { ElevationToken } from "../theme/tokens.stylex";
|
|
3
4
|
export type Logo = {
|
|
4
5
|
/**
|
|
5
6
|
* @description
|
|
@@ -75,4 +76,9 @@ export type BenchProps = ComponentProps & {
|
|
|
75
76
|
* class names
|
|
76
77
|
*/
|
|
77
78
|
classNames?: Partial<Record<"main", string>>;
|
|
79
|
+
/**
|
|
80
|
+
* @description
|
|
81
|
+
* elevation
|
|
82
|
+
*/
|
|
83
|
+
elevation?: ElevationToken;
|
|
78
84
|
};
|
|
@@ -6,14 +6,14 @@ import { useTheme } from '../theme/hooks.js';
|
|
|
6
6
|
import { ColorToken } from '../../utils/colors.js';
|
|
7
7
|
import { useClassNames } from '../../hooks/use-class-names.js';
|
|
8
8
|
import { BreadcrumbClassToken } from '../../utils/class-name.js';
|
|
9
|
-
import clsx from '
|
|
9
|
+
import { clsx } from '@aiszlab/relax';
|
|
10
10
|
import Item from './item.js';
|
|
11
11
|
import { ComponentToken } from '../../utils/component-token.js';
|
|
12
12
|
|
|
13
13
|
var styles = {
|
|
14
14
|
breadcrumb: function breadcrumb(props) {
|
|
15
15
|
return [{
|
|
16
|
-
color: "
|
|
16
|
+
color: "musaex-19dipnz",
|
|
17
17
|
$$css: true
|
|
18
18
|
}, {
|
|
19
19
|
"--color": props.color != null ? props.color : "initial"
|
|
@@ -38,7 +38,7 @@ var Breadcrumb = function Breadcrumb(_ref) {
|
|
|
38
38
|
color: theme.colors[ColorToken.OnSurfaceVariant]
|
|
39
39
|
})),
|
|
40
40
|
navigations: {
|
|
41
|
-
className: "
|
|
41
|
+
className: "musaex-e8uvvx musaex-78zum5 musaex-1a02dak"
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
return /*#__PURE__*/React.createElement("nav", {
|
|
@@ -4,14 +4,14 @@ import { useTheme } from '../theme/hooks.js';
|
|
|
4
4
|
import { ColorToken } from '../../utils/colors.js';
|
|
5
5
|
import { useClassNames } from '../../hooks/use-class-names.js';
|
|
6
6
|
import { BreadcrumbClassToken } from '../../utils/class-name.js';
|
|
7
|
-
import clsx from '
|
|
7
|
+
import { clsx } from '@aiszlab/relax';
|
|
8
8
|
import { ComponentToken } from '../../utils/component-token.js';
|
|
9
9
|
|
|
10
10
|
var styles = {
|
|
11
11
|
navigation: {
|
|
12
12
|
"default": function _default(props) {
|
|
13
13
|
return [{
|
|
14
|
-
":last-of-type_color": "
|
|
14
|
+
":last-of-type_color": "musaex-1befqep",
|
|
15
15
|
$$css: true
|
|
16
16
|
}, {
|
|
17
17
|
"--h3adkr": props.color != null ? props.color : "initial"
|
|
@@ -19,12 +19,12 @@ var styles = {
|
|
|
19
19
|
},
|
|
20
20
|
link: function link(props) {
|
|
21
21
|
return [{
|
|
22
|
-
paddingInline: "
|
|
22
|
+
paddingInline: "musaex-5pwv2j",
|
|
23
23
|
paddingStart: null,
|
|
24
24
|
paddingLeft: null,
|
|
25
25
|
paddingEnd: null,
|
|
26
26
|
paddingRight: null,
|
|
27
|
-
borderRadius: "
|
|
27
|
+
borderRadius: "musaex-ok3b7d",
|
|
28
28
|
borderStartStartRadius: null,
|
|
29
29
|
borderStartEndRadius: null,
|
|
30
30
|
borderEndStartRadius: null,
|
|
@@ -33,10 +33,10 @@ var styles = {
|
|
|
33
33
|
borderTopRightRadius: null,
|
|
34
34
|
borderBottomLeftRadius: null,
|
|
35
35
|
borderBottomRightRadius: null,
|
|
36
|
-
backgroundColor: "
|
|
37
|
-
color: "
|
|
38
|
-
transitionProperty: "
|
|
39
|
-
transitionDuration: "
|
|
36
|
+
backgroundColor: "musaex-rl4t6d",
|
|
37
|
+
color: "musaex-vm0q45",
|
|
38
|
+
transitionProperty: "musaex-fagghw",
|
|
39
|
+
transitionDuration: "musaex-13dflua",
|
|
40
40
|
$$css: true
|
|
41
41
|
}, {
|
|
42
42
|
"--1e2mv7m": props.hoveredBackgroundColor != null ? props.hoveredBackgroundColor : "initial",
|
|
@@ -46,7 +46,7 @@ var styles = {
|
|
|
46
46
|
},
|
|
47
47
|
separator: {
|
|
48
48
|
"default": {
|
|
49
|
-
marginInline: "
|
|
49
|
+
marginInline: "musaex-1sn0kb9",
|
|
50
50
|
marginInlineStart: null,
|
|
51
51
|
marginLeft: null,
|
|
52
52
|
marginInlineEnd: null,
|