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.
Files changed (225) hide show
  1. package/dist/components/avatar/avatar.js +25 -29
  2. package/dist/components/avatar/group.js +2 -2
  3. package/dist/components/badge/badge.js +25 -26
  4. package/dist/components/bench/bench.d.ts +1 -1
  5. package/dist/components/bench/bench.js +32 -22
  6. package/dist/components/bench/types.d.ts +8 -2
  7. package/dist/components/breadcrumb/breadcrumb.js +3 -3
  8. package/dist/components/breadcrumb/item.js +9 -9
  9. package/dist/components/button/button.js +42 -42
  10. package/dist/components/calendar/calendar.js +8 -8
  11. package/dist/components/calendar/hooks.js +20 -21
  12. package/dist/components/cascader/cascader.js +2 -2
  13. package/dist/components/checkbox/checkbox.d.ts +2 -0
  14. package/dist/components/checkbox/checkbox.js +17 -200
  15. package/dist/components/checkbox/index.d.ts +2 -0
  16. package/dist/components/checkbox/styles.d.ts +93 -0
  17. package/dist/components/checkbox/styles.js +183 -0
  18. package/dist/components/clock/clock.js +5 -5
  19. package/dist/components/clock/column.js +10 -11
  20. package/dist/components/collapse/collapse.js +5 -5
  21. package/dist/components/collapse/item.js +22 -23
  22. package/dist/components/date-picker/date-picker.js +2 -2
  23. package/dist/components/date-range-picker/date-range-picker.js +3 -3
  24. package/dist/components/dialog/dialog.js +1 -1
  25. package/dist/components/dialog/popup.d.ts +1 -1
  26. package/dist/components/dialog/popup.js +34 -33
  27. package/dist/components/dialog/types.d.ts +5 -4
  28. package/dist/components/divider/divider.d.ts +1 -1
  29. package/dist/components/divider/divider.js +38 -38
  30. package/dist/components/divider/types.d.ts +3 -3
  31. package/dist/components/drawer/drawer.js +1 -1
  32. package/dist/components/drawer/popup.d.ts +1 -1
  33. package/dist/components/drawer/popup.js +46 -45
  34. package/dist/components/drawer/types.d.ts +3 -2
  35. package/dist/components/empty/empty.js +3 -3
  36. package/dist/components/floating-action-button/floatable.js +7 -7
  37. package/dist/components/form/field/error.js +5 -5
  38. package/dist/components/form/field/field.js +3 -4
  39. package/dist/components/form/field/layout.js +5 -5
  40. package/dist/components/form/form.js +5 -1
  41. package/dist/components/form/types.d.ts +2 -1
  42. package/dist/components/grid/col.js +3 -3
  43. package/dist/components/grid/row.js +7 -7
  44. package/dist/components/highlight/highlight.js +2 -2
  45. package/dist/components/i18n-button/i18n-button.js +24 -6
  46. package/dist/components/icon/icon.js +6 -7
  47. package/dist/components/icon/icons/action/code.d.ts +3 -0
  48. package/dist/components/icon/icons/action/code.js +19 -0
  49. package/dist/components/icon/icons/action/index.d.ts +3 -1
  50. package/dist/components/icon/icons/action/index.js +2 -0
  51. package/dist/components/icon/icons/action/open-in-new.d.ts +3 -0
  52. package/dist/components/icon/icons/action/open-in-new.js +19 -0
  53. package/dist/components/icon/icons/content/clear.d.ts +2 -2
  54. package/dist/components/icon/icons/content/clear.js +4 -4
  55. package/dist/components/icon/icons/content/font-download.d.ts +3 -0
  56. package/dist/components/icon/icons/content/font-download.js +19 -0
  57. package/dist/components/icon/icons/content/index.d.ts +5 -1
  58. package/dist/components/icon/icons/content/index.js +4 -0
  59. package/dist/components/icon/icons/content/link-off.d.ts +3 -0
  60. package/dist/components/icon/icons/content/link-off.js +19 -0
  61. package/dist/components/icon/icons/content/redo.d.ts +3 -0
  62. package/dist/components/icon/icons/content/redo.js +19 -0
  63. package/dist/components/icon/icons/content/undo.d.ts +3 -0
  64. package/dist/components/icon/icons/content/undo.js +19 -0
  65. package/dist/components/icon/icons/editor/checklist.d.ts +3 -0
  66. package/dist/components/icon/icons/editor/checklist.js +19 -0
  67. package/dist/components/icon/icons/editor/format-bold.d.ts +3 -0
  68. package/dist/components/icon/icons/editor/format-bold.js +19 -0
  69. package/dist/components/icon/icons/editor/format-italic.d.ts +3 -0
  70. package/dist/components/icon/icons/editor/format-italic.js +19 -0
  71. package/dist/components/icon/icons/editor/format-strikethrough.d.ts +3 -0
  72. package/dist/components/icon/icons/editor/format-strikethrough.js +19 -0
  73. package/dist/components/icon/icons/editor/format-underlined.d.ts +3 -0
  74. package/dist/components/icon/icons/editor/format-underlined.js +19 -0
  75. package/dist/components/icon/icons/editor/index.d.ts +10 -0
  76. package/dist/components/icon/icons/editor/index.js +9 -0
  77. package/dist/components/icon/icons/editor/insert-link.d.ts +3 -0
  78. package/dist/components/icon/icons/editor/insert-link.js +19 -0
  79. package/dist/components/icon/icons/editor/notes.d.ts +3 -0
  80. package/dist/components/icon/icons/editor/notes.js +19 -0
  81. package/dist/components/icon/icons/editor/subscript.d.ts +3 -0
  82. package/dist/components/icon/icons/editor/subscript.js +19 -0
  83. package/dist/components/icon/icons/editor/superscript.d.ts +3 -0
  84. package/dist/components/icon/icons/editor/superscript.js +19 -0
  85. package/dist/components/icon/icons/image/edit.d.ts +3 -0
  86. package/dist/components/icon/icons/image/edit.js +19 -0
  87. package/dist/components/icon/icons/image/index.d.ts +8 -1
  88. package/dist/components/icon/icons/image/index.js +7 -0
  89. package/dist/components/icon/icons/image/looks-five.d.ts +3 -0
  90. package/dist/components/icon/icons/image/looks-five.js +19 -0
  91. package/dist/components/icon/icons/image/looks-four.d.ts +3 -0
  92. package/dist/components/icon/icons/image/looks-four.js +19 -0
  93. package/dist/components/icon/icons/image/looks-one.d.ts +3 -0
  94. package/dist/components/icon/icons/image/looks-one.js +19 -0
  95. package/dist/components/icon/icons/image/looks-six.d.ts +3 -0
  96. package/dist/components/icon/icons/image/looks-six.js +19 -0
  97. package/dist/components/icon/icons/image/looks-three.d.ts +3 -0
  98. package/dist/components/icon/icons/image/looks-three.js +19 -0
  99. package/dist/components/icon/icons/image/looks-two.d.ts +3 -0
  100. package/dist/components/icon/icons/image/looks-two.js +19 -0
  101. package/dist/components/icon/icons/index.d.ts +1 -8
  102. package/dist/components/icon/icons/index.js +22 -16
  103. package/dist/components/icon/icons/mock/loading.js +1 -1
  104. package/dist/components/image/preview/operations.js +19 -19
  105. package/dist/components/image/preview/preview.js +3 -3
  106. package/dist/components/input/input.js +25 -26
  107. package/dist/components/layout/header.js +10 -10
  108. package/dist/components/layout/layout.js +5 -5
  109. package/dist/components/loading/loading.js +44 -44
  110. package/dist/components/menu/group.js +16 -15
  111. package/dist/components/menu/hooks.js +7 -7
  112. package/dist/components/menu/item.js +42 -45
  113. package/dist/components/menu/menu.js +2 -3
  114. package/dist/components/notification/holder.js +21 -21
  115. package/dist/components/notification/notification.js +34 -35
  116. package/dist/components/notification/notifier.js +1 -1
  117. package/dist/components/otp-input/otp-input.js +2 -2
  118. package/dist/components/pagination/item.js +1 -1
  119. package/dist/components/pagination/pagination.js +3 -4
  120. package/dist/components/picker/picker.js +2 -3
  121. package/dist/components/popconfirm/popconfirm.js +9 -10
  122. package/dist/components/popover/hooks.d.ts +16 -0
  123. package/dist/components/popover/hooks.js +64 -0
  124. package/dist/components/popover/popover.d.ts +1 -0
  125. package/dist/components/popover/popover.js +25 -24
  126. package/dist/components/popover/types.d.ts +7 -1
  127. package/dist/components/popper/dropdown.d.ts +3 -2
  128. package/dist/components/popper/dropdown.js +53 -125
  129. package/dist/components/popper/hooks.d.ts +27 -2
  130. package/dist/components/popper/hooks.js +164 -2
  131. package/dist/components/popper/index.d.ts +2 -0
  132. package/dist/components/popper/popper.d.ts +2 -2
  133. package/dist/components/popper/popper.js +4 -2
  134. package/dist/components/popper/types.d.ts +32 -3
  135. package/dist/components/portal/portal.js +1 -1
  136. package/dist/components/progress/circular.js +8 -8
  137. package/dist/components/progress/linear.js +9 -9
  138. package/dist/components/quote/index.d.ts +2 -0
  139. package/dist/components/quote/quote.d.ts +4 -0
  140. package/dist/components/quote/quote.js +29 -0
  141. package/dist/components/quote/styles.d.ts +20 -0
  142. package/dist/components/quote/styles.js +29 -0
  143. package/dist/components/quote/types.d.ts +12 -0
  144. package/dist/components/radio/radio.js +38 -39
  145. package/dist/components/rate/rate.js +4 -4
  146. package/dist/components/rate/star.js +18 -19
  147. package/dist/components/rich-text-editor/dropdown.d.ts +4 -0
  148. package/dist/components/rich-text-editor/dropdown.js +78 -0
  149. package/dist/components/rich-text-editor/index.d.ts +4 -0
  150. package/dist/components/rich-text-editor/index.js +12 -0
  151. package/dist/components/rich-text-editor/nodes/checkable-list-item.d.ts +12 -0
  152. package/dist/components/rich-text-editor/nodes/checkable-list-item.js +88 -0
  153. package/dist/components/rich-text-editor/plugins/check-list/index.d.ts +2 -0
  154. package/dist/components/rich-text-editor/plugins/check-list/index.js +47 -0
  155. package/dist/components/rich-text-editor/plugins/controlled-state/index.d.ts +6 -0
  156. package/dist/components/rich-text-editor/plugins/controlled-state/index.js +23 -0
  157. package/dist/components/rich-text-editor/plugins/floating-link-editor/index.d.ts +7 -0
  158. package/dist/components/rich-text-editor/plugins/floating-link-editor/index.js +121 -0
  159. package/dist/components/rich-text-editor/plugins/markdown-shortcut/index.d.ts +4 -0
  160. package/dist/components/rich-text-editor/plugins/markdown-shortcut/index.js +12 -0
  161. package/dist/components/rich-text-editor/plugins/toolbar/hooks.d.ts +50 -0
  162. package/dist/components/rich-text-editor/plugins/toolbar/hooks.js +262 -0
  163. package/dist/components/rich-text-editor/plugins/toolbar/index.d.ts +3 -0
  164. package/dist/components/rich-text-editor/plugins/toolbar/index.js +216 -0
  165. package/dist/components/rich-text-editor/rich-text-editor.d.ts +4 -0
  166. package/dist/components/rich-text-editor/rich-text-editor.js +193 -0
  167. package/dist/components/rich-text-editor/types.d.ts +56 -0
  168. package/dist/components/rich-text-editor/utils/get-element-by-node.d.ts +2 -0
  169. package/dist/components/rich-text-editor/utils/get-element-by-node.js +8 -0
  170. package/dist/components/ripple/ripple.js +9 -9
  171. package/dist/components/select/select.js +3 -3
  172. package/dist/components/select/selections.js +4 -0
  173. package/dist/components/select/selector.js +1 -1
  174. package/dist/components/skeleton/skeleton.js +17 -17
  175. package/dist/components/space/space.js +8 -8
  176. package/dist/components/steps/item.js +43 -44
  177. package/dist/components/steps/steps.js +6 -6
  178. package/dist/components/switch/switch.js +67 -68
  179. package/dist/components/table/body.js +7 -7
  180. package/dist/components/table/header/cell.js +16 -16
  181. package/dist/components/table/header/header.js +18 -18
  182. package/dist/components/table/table.js +1 -1
  183. package/dist/components/tabs/navigation.js +27 -28
  184. package/dist/components/tabs/panels.js +3 -4
  185. package/dist/components/tabs/tabs.js +1 -1
  186. package/dist/components/tag/tag.js +18 -18
  187. package/dist/components/theme/hooks.js +7 -7
  188. package/dist/components/theme/theme.js +60 -60
  189. package/dist/components/theme/tokens.stylex.d.ts +3 -2
  190. package/dist/components/theme/tokens.stylex.js +45 -36
  191. package/dist/components/time-picker/panel.js +11 -11
  192. package/dist/components/time-picker/time-picker.js +1 -2
  193. package/dist/components/timeline/item.js +38 -38
  194. package/dist/components/timeline/timeline.js +2 -2
  195. package/dist/components/tooltip/tooltip.js +1 -1
  196. package/dist/components/tour/spotlight.js +2 -3
  197. package/dist/components/tour/tour.js +15 -15
  198. package/dist/components/tour/types.d.ts +1 -1
  199. package/dist/components/transfer/item.js +2 -2
  200. package/dist/components/transfer/list.js +15 -15
  201. package/dist/components/transfer/transfer.js +3 -3
  202. package/dist/components/tree/list.js +5 -6
  203. package/dist/components/tree/node.js +21 -22
  204. package/dist/components/upload/upload.js +1 -1
  205. package/dist/components/upload/uploadeds.js +2 -2
  206. package/dist/components/visually-hidden/visually-hidden.js +2 -2
  207. package/dist/components/waterfall/sequential.js +5 -5
  208. package/dist/components/waterfall/waterfall.js +15 -16
  209. package/dist/components/watermark/watermark.js +2 -2
  210. package/dist/hooks/use-class-names.d.ts +3 -0
  211. package/dist/hooks/use-closable.js +1 -1
  212. package/dist/hooks/use-container.d.ts +3 -2
  213. package/dist/hooks/use-container.js +11 -6
  214. package/dist/hooks/use-lazy-boolean.d.ts +2 -2
  215. package/dist/hooks/use-lazy-boolean.js +10 -0
  216. package/dist/index.d.ts +2 -0
  217. package/dist/index.js +2 -0
  218. package/dist/stylex.css +536 -512
  219. package/dist/utils/class-name.d.ts +9 -0
  220. package/dist/utils/class-name.js +6 -2
  221. package/dist/utils/component-token.d.ts +2 -1
  222. package/dist/utils/component-token.js +1 -0
  223. package/package.json +50 -6
  224. 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
  225. 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: "musae-1i8jmgv",
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: "musae-1y0btm7",
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: "musae-9r1u3d",
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: "musae-9f619",
47
- display: "musae-3nfvp2",
48
- backgroundColor: "musae-q1mx2j",
49
- color: "musae-19dipnz",
50
- alignItems: "musae-6s0dn4",
51
- justifyContent: "musae-l56j7k",
52
- userSelect: "musae-87ps6o",
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
- width: "musae-wfgd1y",
61
- height: "musae-b27hse",
62
- objectFit: "musae-l1xv1r",
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": "musae-1i5rff9",
74
+ ":not(:first-child)_marginInlineStart": "musaex-3d5u6r",
77
75
  ":not(:first-child)_marginLeft": null,
78
76
  ":not(:first-child)_marginRight": null,
79
- borderColor: "musae-eqt46j",
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: "musae-iipnba",
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: "musae-7bdoj",
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: "musae-145rzd9",
119
- height: "musae-lry4nc",
116
+ width: "musaex-6hukdw",
117
+ height: "musaex-q5eura",
120
118
  $$css: true
121
119
  },
122
120
  medium: {
123
- width: "musae-15xiyow",
124
- height: "musae-hfcj97",
121
+ width: "musaex-zx3e9c",
122
+ height: "musaex-1dql3xx",
125
123
  $$css: true
126
124
  },
127
125
  large: {
128
- width: "musae-1sgo4cp",
129
- height: "musae-7kkngq",
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: "musae-3nfvp2 musae-87ps6o"
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: "musae-1n2onr6",
18
- display: "musae-3nfvp2",
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: "musae-10l6tqk",
26
- borderRadius: "musae-iipnba",
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: "musae-70jws7",
36
- textAlign: "musae-2b8uid",
37
- boxShadow: "musae-igitpm",
38
- backgroundColor: "musae-q1mx2j",
39
- color: "musae-19dipnz",
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: "musae-2jq81",
50
- height: "musae-1v3ox18",
48
+ width: "musaex-1ankuk0",
49
+ height: "musaex-drj9st",
51
50
  $$css: true
52
51
  },
53
52
  invisible: {
54
- display: "musae-1s85apg",
53
+ display: "musaex-1s85apg",
55
54
  $$css: true
56
55
  },
57
56
  "top-right": {
58
- top: "musae-13vifvy",
59
- right: "musae-3m8u43",
57
+ top: "musaex-13vifvy",
58
+ right: "musaex-3m8u43",
60
59
  insetInlineStart: null,
61
60
  insetInlineEnd: null,
62
- transform: "musae-rycbv3",
61
+ transform: "musaex-rycbv3",
63
62
  $$css: true
64
63
  },
65
64
  "top-left": {
66
- top: "musae-13vifvy",
67
- left: "musae-u96u03",
65
+ top: "musaex-13vifvy",
66
+ left: "musaex-u96u03",
68
67
  insetInlineStart: null,
69
68
  insetInlineEnd: null,
70
- transform: "musae-1i3z1r0",
69
+ transform: "musaex-1i3z1r0",
71
70
  $$css: true
72
71
  },
73
72
  "bottom-right": {
74
- bottom: "musae-1ey2m1c",
75
- right: "musae-3m8u43",
73
+ bottom: "musaex-1ey2m1c",
74
+ right: "musaex-3m8u43",
76
75
  insetInlineStart: null,
77
76
  insetInlineEnd: null,
78
- transform: "musae-1vfo23u",
77
+ transform: "musaex-1vfo23u",
79
78
  $$css: true
80
79
  },
81
80
  "bottom-left": {
82
- bottom: "musae-1ey2m1c",
83
- left: "musae-u96u03",
81
+ bottom: "musaex-1ey2m1c",
82
+ left: "musaex-u96u03",
84
83
  insetInlineStart: null,
85
84
  insetInlineEnd: null,
86
- transform: "musae-itovws",
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 'clsx';
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: "musae-1xkobc8",
24
+ borderRightWidth: "musaex-1xs0jsv",
24
25
  borderInlineStartWidth: null,
25
26
  borderInlineEndWidth: null,
26
- borderRightStyle: "musae-32b0ac",
27
+ borderRightStyle: "musaex-32b0ac",
27
28
  borderInlineStartStyle: null,
28
29
  borderInlineEndStyle: null,
29
- borderRightColor: "musae-104k1kx",
30
+ borderRightColor: "musaex-104k1kx",
30
31
  borderInlineStartColor: null,
31
32
  borderInlineEndColor: null,
32
- paddingInline: "musae-gj1dgu",
33
+ paddingInline: "musaex-1dhq86w",
33
34
  paddingStart: null,
34
35
  paddingLeft: null,
35
36
  paddingEnd: null,
36
37
  paddingRight: null,
37
- position: "musae-7wzq59",
38
- height: "musae-1r05exa",
39
- top: "musae-kwake1",
40
- overflowY: "musae-10wlt62 musae-r8ctv5",
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
- gap: "musae-vbka3v",
53
- rowGap: null,
54
- columnGap: null,
55
- boxShadow: "musae-ezd0au",
56
- $$css: true
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: "musae-19i9eir",
65
+ marginLeft: "musaex-9x39mp",
60
66
  marginInlineStart: null,
61
67
  marginInlineEnd: null,
62
- marginRight: "musae-ack27t",
63
- height: "musae-b27hse",
68
+ marginRight: "musaex-ack27t",
69
+ height: "musaex-1xj1dsn",
64
70
  $$css: true
65
71
  },
66
72
  divider: {
67
- height: "musae-lry4nc",
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
- type: "vertical"
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 'clsx';
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: "musae-19dipnz",
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: "musae-e8uvvx musae-78zum5 musae-1a02dak"
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 'clsx';
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": "musae-1befqep",
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: "musae-381k9q",
22
+ paddingInline: "musaex-5pwv2j",
23
23
  paddingStart: null,
24
24
  paddingLeft: null,
25
25
  paddingEnd: null,
26
26
  paddingRight: null,
27
- borderRadius: "musae-7bdoj",
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: "musae-rl4t6d",
37
- color: "musae-vm0q45",
38
- transitionProperty: "musae-fagghw",
39
- transitionDuration: "musae-13dflua",
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: "musae-19s5fsp",
49
+ marginInline: "musaex-1sn0kb9",
50
50
  marginInlineStart: null,
51
51
  marginLeft: null,
52
52
  marginInlineEnd: null,