musae 0.2.20 → 0.2.22

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 (109) hide show
  1. package/dist/components/avatar/avatar.js +2 -3
  2. package/dist/components/avatar/group.js +2 -2
  3. package/dist/components/badge/badge.js +1 -2
  4. package/dist/components/bench/bench.d.ts +1 -1
  5. package/dist/components/bench/bench.js +20 -11
  6. package/dist/components/bench/types.d.ts +8 -2
  7. package/dist/components/breadcrumb/breadcrumb.js +1 -1
  8. package/dist/components/breadcrumb/item.js +2 -2
  9. package/dist/components/button/button.js +1 -1
  10. package/dist/components/calendar/calendar.js +1 -1
  11. package/dist/components/calendar/hooks.js +2 -3
  12. package/dist/components/cascader/cascader.js +1 -1
  13. package/dist/components/checkbox/checkbox.js +8 -9
  14. package/dist/components/checkbox/styles.d.ts +2 -2
  15. package/dist/components/checkbox/styles.js +2 -2
  16. package/dist/components/clock/clock.js +2 -2
  17. package/dist/components/clock/column.js +1 -2
  18. package/dist/components/collapse/collapse.js +1 -1
  19. package/dist/components/collapse/item.js +2 -3
  20. package/dist/components/date-picker/date-picker.js +1 -1
  21. package/dist/components/date-range-picker/date-range-picker.js +1 -1
  22. package/dist/components/dialog/hooks.js +1 -1
  23. package/dist/components/dialog/popup.js +4 -4
  24. package/dist/components/divider/divider.d.ts +1 -1
  25. package/dist/components/divider/divider.js +42 -10
  26. package/dist/components/divider/types.d.ts +7 -1
  27. package/dist/components/drawer/popup.js +2 -2
  28. package/dist/components/empty/empty.js +1 -1
  29. package/dist/components/form/field/error.js +1 -1
  30. package/dist/components/form/field/field.js +1 -2
  31. package/dist/components/form/field/layout.js +2 -2
  32. package/dist/components/grid/col.js +1 -1
  33. package/dist/components/grid/row.js +1 -1
  34. package/dist/components/highlight/highlight.js +2 -2
  35. package/dist/components/i18n-button/hooks.js +1 -1
  36. package/dist/components/i18n-button/i18n-button.js +2 -2
  37. package/dist/components/icon/icon.js +1 -2
  38. package/dist/components/image/preview/operations.js +1 -1
  39. package/dist/components/input/input.js +1 -2
  40. package/dist/components/layout/header.js +1 -1
  41. package/dist/components/layout/layout.js +3 -3
  42. package/dist/components/loading/loading.js +1 -1
  43. package/dist/components/menu/group.js +3 -4
  44. package/dist/components/menu/hooks.js +3 -3
  45. package/dist/components/menu/item.js +2 -3
  46. package/dist/components/menu/menu.js +1 -2
  47. package/dist/components/notification/hooks.js +2 -2
  48. package/dist/components/notification/notification.js +5 -6
  49. package/dist/components/notification/notifier.js +2 -2
  50. package/dist/components/pagination/pagination.js +1 -2
  51. package/dist/components/picker/picker.js +1 -2
  52. package/dist/components/popconfirm/popconfirm.js +1 -2
  53. package/dist/components/popover/hooks.js +2 -2
  54. package/dist/components/popover/popover.js +2 -3
  55. package/dist/components/popper/dropdown.js +2 -3
  56. package/dist/components/popper/hooks.js +2 -2
  57. package/dist/components/progress/linear.js +1 -1
  58. package/dist/components/quote/index.d.ts +2 -0
  59. package/dist/components/quote/quote.d.ts +4 -0
  60. package/dist/components/quote/quote.js +29 -0
  61. package/dist/components/quote/styles.d.ts +20 -0
  62. package/dist/components/quote/styles.js +29 -0
  63. package/dist/components/quote/types.d.ts +12 -0
  64. package/dist/components/radio/radio.js +2 -3
  65. package/dist/components/rate/rate.js +1 -1
  66. package/dist/components/rate/star.js +1 -2
  67. package/dist/components/rich-text-editor/dropdown.js +2 -2
  68. package/dist/components/rich-text-editor/plugins/floating-link-editor/index.js +3 -3
  69. package/dist/components/rich-text-editor/rich-text-editor.js +3 -3
  70. package/dist/components/select/select.js +1 -1
  71. package/dist/components/skeleton/skeleton.js +1 -1
  72. package/dist/components/space/space.js +1 -1
  73. package/dist/components/steps/item.js +1 -2
  74. package/dist/components/steps/steps.js +1 -1
  75. package/dist/components/switch/switch.js +1 -2
  76. package/dist/components/table/body.js +1 -1
  77. package/dist/components/table/header/cell.js +1 -1
  78. package/dist/components/table/header/header.js +1 -1
  79. package/dist/components/tabs/navigation.js +1 -2
  80. package/dist/components/tabs/panels.js +1 -2
  81. package/dist/components/tabs/tabs.js +1 -1
  82. package/dist/components/tag/tag.js +1 -1
  83. package/dist/components/theme/tokens.stylex.d.ts +3 -2
  84. package/dist/components/theme/tokens.stylex.js +10 -1
  85. package/dist/components/time-picker/panel.js +1 -1
  86. package/dist/components/time-picker/time-picker.js +2 -3
  87. package/dist/components/timeline/item.js +3 -3
  88. package/dist/components/timeline/timeline.js +1 -1
  89. package/dist/components/tooltip/tooltip.js +1 -1
  90. package/dist/components/tour/spotlight.js +1 -2
  91. package/dist/components/tour/tour.js +4 -4
  92. package/dist/components/transfer/item.js +1 -1
  93. package/dist/components/transfer/list.js +1 -1
  94. package/dist/components/transfer/transfer.js +1 -1
  95. package/dist/components/tree/list.js +3 -4
  96. package/dist/components/tree/node.js +1 -2
  97. package/dist/components/upload/uploadeds.js +1 -1
  98. package/dist/components/visually-hidden/visually-hidden.js +1 -1
  99. package/dist/components/waterfall/waterfall.js +1 -2
  100. package/dist/hooks/use-class-names.d.ts +3 -0
  101. package/dist/hooks/use-expandable.js +4 -4
  102. package/dist/index.d.ts +1 -0
  103. package/dist/index.js +2 -1
  104. package/dist/{stylex.css → styles.css} +7 -0
  105. package/dist/utils/class-name.d.ts +9 -0
  106. package/dist/utils/class-name.js +6 -2
  107. package/dist/utils/component-token.d.ts +2 -1
  108. package/dist/utils/component-token.js +1 -0
  109. package/package.json +25 -25
@@ -6,7 +6,7 @@ import { props } from '../../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_m
6
6
  import { typography } from '../../theme/theme.js';
7
7
  import { useTheme } from '../../theme/hooks.js';
8
8
  import { ColorToken } from '../../../utils/colors.js';
9
- import clsx from 'clsx';
9
+ import { clsx } from '@aiszlab/relax';
10
10
 
11
11
  var _excluded = ["required", "space"];
12
12
  var Row = Grid.Row,
@@ -52,7 +52,7 @@ var Layout = function Layout(_ref) {
52
52
  gutter: [0, 8],
53
53
  className: styled.item.className,
54
54
  style: styled.item.style
55
- }, !!labelCol && props$1.label && ( /*#__PURE__*/React.createElement(Col, {
55
+ }, !!labelCol && props$1.label && (/*#__PURE__*/React.createElement(Col, {
56
56
  span: labelCol
57
57
  }, /*#__PURE__*/React.createElement("span", {
58
58
  className: clsx(styled.label.className),
@@ -2,7 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import React from 'react';
3
3
  import { useClassNames } from '../../hooks/use-class-names.js';
4
4
  import { GridClassToken } from '../../utils/class-name.js';
5
- import clsx from 'clsx';
5
+ import { clsx } from '@aiszlab/relax';
6
6
  import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
7
7
  import { ComponentToken } from '../../utils/component-token.js';
8
8
 
@@ -3,7 +3,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
3
  import React from 'react';
4
4
  import { useClassNames } from '../../hooks/use-class-names.js';
5
5
  import { GridClassToken } from '../../utils/class-name.js';
6
- import clsx from 'clsx';
6
+ import { clsx } from '@aiszlab/relax';
7
7
  import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
8
8
  import { useGutters } from '../../hooks/use-gutters.js';
9
9
  import { ComponentToken } from '../../utils/component-token.js';
@@ -5,7 +5,7 @@ import { HighlightClassToken } 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
6
  import { useTheme } from '../theme/hooks.js';
7
7
  import { ColorToken } from '../../utils/colors.js';
8
- import clsx from 'clsx';
8
+ import { clsx } from '@aiszlab/relax';
9
9
  import { ComponentToken } from '../../utils/component-token.js';
10
10
 
11
11
  var styles = {
@@ -32,7 +32,7 @@ var Highlight = function Highlight(_ref) {
32
32
  // 2. replace with custom node
33
33
  var _Array$from$reduce = Array.from(children.matchAll(new RegExp(capture, "g"))).reduce(function (prev, item) {
34
34
  prev[0].push(children.slice(prev[1], item.index));
35
- prev[0].push( /*#__PURE__*/React.createElement("span", {
35
+ prev[0].push(/*#__PURE__*/React.createElement("span", {
36
36
  className: clsx(classNames[HighlightClassToken.Capture], styled.className),
37
37
  style: styled.style,
38
38
  key: item.index
@@ -19,7 +19,7 @@ var useLocales = function useLocales() {
19
19
  _useState2 = _slicedToArray(_useState, 2),
20
20
  locales = _useState2[0],
21
21
  setLocales = _useState2[1];
22
- useMounted( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
22
+ useMounted(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
23
23
  var _yield$import$catch;
24
24
  return _regeneratorRuntime().wrap(function _callee$(_context) {
25
25
  while (1) switch (_context.prev = _context.next) {
@@ -16,8 +16,8 @@ var I18nButton = function I18nButton(_ref) {
16
16
  locales = _useLocales.locales,
17
17
  localeCode = _useLocales.localeCode;
18
18
  var popoverRef = useRef(null);
19
- var change = useEvent( /*#__PURE__*/function () {
20
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(value) {
19
+ var change = useEvent(/*#__PURE__*/function () {
20
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(value) {
21
21
  var _popoverRef$current;
22
22
  return _regeneratorRuntime().wrap(function _callee$(_context) {
23
23
  while (1) switch (_context.prev = _context.next) {
@@ -1,9 +1,8 @@
1
1
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import React, { useMemo, createElement } from 'react';
4
- import { isFunction } from '@aiszlab/relax';
4
+ import { isFunction, clsx } from '@aiszlab/relax';
5
5
  import { IconClassToken } from '../../utils/class-name.js';
6
- import clsx from 'clsx';
7
6
  import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
8
7
  import { useClassNames } from '../../hooks/use-class-names.js';
9
8
  import { ComponentToken } from '../../utils/component-token.js';
@@ -117,7 +117,7 @@ var Operations = function Operations(_ref) {
117
117
  shape: "circular"
118
118
  }, /*#__PURE__*/React.createElement(Close, {
119
119
  size: 32
120
- })), isMultiple && ( /*#__PURE__*/React.createElement("div", {
120
+ })), isMultiple && (/*#__PURE__*/React.createElement("div", {
121
121
  className: styled.navigations.className,
122
122
  style: styled.navigations.style
123
123
  }, /*#__PURE__*/React.createElement(Button, {
@@ -4,13 +4,12 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
4
4
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
5
5
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
6
6
  import { useInputEvents, useWrapperEvents } from './hooks.js';
7
- import { useControlledState, useFocus } from '@aiszlab/relax';
7
+ import { useControlledState, useFocus, clsx } from '@aiszlab/relax';
8
8
  import { InputClassToken } from '../../utils/class-name.js';
9
9
  import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
10
10
  import { sizes } from '../theme/tokens.stylex.js';
11
11
  import { useTheme } from '../theme/hooks.js';
12
12
  import { ColorToken } from '../../utils/colors.js';
13
- import clsx from 'clsx';
14
13
  import { useClassNames } from '../../hooks/use-class-names.js';
15
14
  import { typography } from '../theme/theme.js';
16
15
  import { ComponentToken } from '../../utils/component-token.js';
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { useTheme } from '../theme/hooks.js';
4
4
  import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
5
  import { ColorToken } from '../../utils/colors.js';
6
- import clsx from 'clsx';
6
+ import { clsx } from '@aiszlab/relax';
7
7
 
8
8
  var styles = {
9
9
  header: function header(props) {
@@ -6,7 +6,7 @@ import { useChildren, ChildToken } from './hooks.js';
6
6
  import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
7
7
  import { useTheme } from '../theme/hooks.js';
8
8
  import { ColorToken } from '../../utils/colors.js';
9
- import clsx from 'clsx';
9
+ import { clsx } from '@aiszlab/relax';
10
10
 
11
11
  var _excluded = ["className", "style"];
12
12
  var styles = {
@@ -40,11 +40,11 @@ var Layout = function Layout(_ref) {
40
40
  return /*#__PURE__*/React.createElement("div", {
41
41
  className: clsx(className, styled.className),
42
42
  style: _objectSpread(_objectSpread({}, styled.style), style)
43
- }, children.get(ChildToken.Header), hasSider ? ( /*#__PURE__*/React.createElement(Grid.Row, {
43
+ }, children.get(ChildToken.Header), hasSider ? (/*#__PURE__*/React.createElement(Grid.Row, {
44
44
  as: "main"
45
45
  }, sider, /*#__PURE__*/React.createElement(Grid.Col, _objectSpread(_objectSpread({}, mainProps), {}, {
46
46
  span: 19
47
- }), children.get(ChildToken.Main), children.get(ChildToken.Footer)))) : ( /*#__PURE__*/React.createElement("main", _objectSpread({}, mainProps), children.get(ChildToken.Main), children.get(ChildToken.Footer))));
47
+ }), children.get(ChildToken.Main), children.get(ChildToken.Footer)))) : (/*#__PURE__*/React.createElement("main", _objectSpread({}, mainProps), children.get(ChildToken.Main), children.get(ChildToken.Footer))));
48
48
  };
49
49
 
50
50
  export { Layout as default };
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
5
  import { useClassNames } from '../../hooks/use-class-names.js';
6
6
  import { LoadingClassToken } from '../../utils/class-name.js';
7
- import clsx from 'clsx';
7
+ import { clsx } from '@aiszlab/relax';
8
8
  import { useTheme } from '../theme/hooks.js';
9
9
  import { ColorToken } from '../../utils/colors.js';
10
10
  import { ComponentToken } from '../../utils/component-token.js';
@@ -8,10 +8,9 @@ import React, { forwardRef } from 'react';
8
8
  import { useAnimate } from 'framer-motion';
9
9
  import { useClassNames } from '../../hooks/use-class-names.js';
10
10
  import { MenuClassToken } from '../../utils/class-name.js';
11
- import clsx from 'clsx';
12
11
  import Item from './item.js';
13
12
  import { useMenuContext } from './hooks.js';
14
- import { useRefs, useUpdateEffect } from '@aiszlab/relax';
13
+ import { useRefs, useUpdateEffect, clsx } from '@aiszlab/relax';
15
14
  import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
16
15
  import { useExpandable } from '../../hooks/use-expandable.js';
17
16
  import { useTheme } from '../theme/hooks.js';
@@ -127,7 +126,7 @@ var Group = /*#__PURE__*/forwardRef(function (_ref2, ref) {
127
126
  var _useExpandable = useExpandable(),
128
127
  expand = _useExpandable.expand,
129
128
  collapse = _useExpandable.collapse;
130
- useUpdateEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
129
+ useUpdateEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
131
130
  return _regeneratorRuntime().wrap(function _callee$(_context) {
132
131
  while (1) switch (_context.prev = _context.next) {
133
132
  case 0:
@@ -175,7 +174,7 @@ var Group = /*#__PURE__*/forwardRef(function (_ref2, ref) {
175
174
  if (!_ref) return;
176
175
  collect(item.key, _ref);
177
176
  }
178
- }, children.length > 0 && ( /*#__PURE__*/React.createElement(Group, {
177
+ }, children.length > 0 && (/*#__PURE__*/React.createElement(Group, {
179
178
  items: children,
180
179
  expanded: !isInline || expandedKeys.has(item.key),
181
180
  level: !isInline ? 0 : level + 1,
@@ -65,7 +65,7 @@ var useItemChildren = function useItemChildren(_ref) {
65
65
  }));
66
66
  return /*#__PURE__*/React.createElement("span", _objectSpread({}, {
67
67
  className: "musaex-igfled"
68
- }), suffix, hasChildren && isInline && ( /*#__PURE__*/React.createElement("span", _objectSpread({}, styled), /*#__PURE__*/React.createElement(KeyboardArrowUp, {
68
+ }), suffix, hasChildren && isInline && (/*#__PURE__*/React.createElement("span", _objectSpread({}, styled), /*#__PURE__*/React.createElement(KeyboardArrowUp, {
69
69
  size: 16
70
70
  }))));
71
71
  }, [hasChildren, isExpanded, suffix, isInline]);
@@ -104,8 +104,8 @@ var useContextValue = function useContextValue(_ref2) {
104
104
  return new Set(_expandedKeys);
105
105
  }, [_expandedKeys]);
106
106
  /// click handler
107
- var click = useCallback( /*#__PURE__*/function () {
108
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(key) {
107
+ var click = useCallback(/*#__PURE__*/function () {
108
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(key) {
109
109
  return _regeneratorRuntime().wrap(function _callee$(_context) {
110
110
  while (1) switch (_context.prev = _context.next) {
111
111
  case 0:
@@ -9,9 +9,8 @@ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modu
9
9
  import { spacing } from '../theme/tokens.stylex.js';
10
10
  import { useTheme } from '../theme/hooks.js';
11
11
  import { ColorToken } from '../../utils/colors.js';
12
- import clsx from 'clsx';
13
12
  import { typography } from '../theme/theme.js';
14
- import { useHover, useEvent } from '@aiszlab/relax';
13
+ import { useHover, useEvent, clsx } from '@aiszlab/relax';
15
14
  import Popper from '../popper/popper.js';
16
15
  import { useLazyBoolean } from '../../hooks/use-lazy-boolean.js';
17
16
  import { ComponentToken } from '../../utils/component-token.js';
@@ -280,7 +279,7 @@ var Item = /*#__PURE__*/forwardRef(function (_ref, ref) {
280
279
  className: clsx(classNames[MenuClassToken.Item], className, styled.item.className),
281
280
  style: styled.item.style,
282
281
  onClick: click
283
- }, hoverProps), _children.prefix, _children.label, _children.suffix), isInline && props$1.children, !isInline && !!props$1.children && ( /*#__PURE__*/React.createElement(Popper, _objectSpread({
282
+ }, hoverProps), _children.prefix, _children.label, _children.suffix), isInline && props$1.children, !isInline && !!props$1.children && (/*#__PURE__*/React.createElement(Popper, _objectSpread({
284
283
  trigger: itemRef.current,
285
284
  open: isOpen,
286
285
  placement: mode === "vertical" ? "top-start" : "bottom-start"
@@ -2,12 +2,11 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
3
3
  import React, { forwardRef, useImperativeHandle } from 'react';
4
4
  import Context from './context.js';
5
- import { useScrollable } from '@aiszlab/relax';
5
+ import { useScrollable, clsx } from '@aiszlab/relax';
6
6
  import { useScrollOrientation, useContextValue } from './hooks.js';
7
7
  import Group from './group.js';
8
8
  import { useClassNames } from '../../hooks/use-class-names.js';
9
9
  import { MenuClassToken } from '../../utils/class-name.js';
10
- import clsx from 'clsx';
11
10
  import { ComponentToken } from '../../utils/component-token.js';
12
11
 
13
12
  /**
@@ -25,8 +25,8 @@ var useNotification = function useNotification() {
25
25
  ref: ref
26
26
  });
27
27
  }, [notifier]);
28
- var open = useEvent( /*#__PURE__*/function () {
29
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(config) {
28
+ var open = useEvent(/*#__PURE__*/function () {
29
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(config) {
30
30
  var _notifier$current, _config$key, _config$placement;
31
31
  var _notifier, key;
32
32
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -6,10 +6,9 @@ import React, { forwardRef, useEffect, createElement } from 'react';
6
6
  import { usePresence, useAnimate } from 'framer-motion';
7
7
  import { useTheme } from '../theme/hooks.js';
8
8
  import { ColorToken } from '../../utils/colors.js';
9
- import { useRefs, useTimeout } from '@aiszlab/relax';
9
+ import { useRefs, useTimeout, clsx } from '@aiszlab/relax';
10
10
  import { useClassNames } from '../../hooks/use-class-names.js';
11
11
  import { NotificationClassToken } from '../../utils/class-name.js';
12
- import clsx from 'clsx';
13
12
  import Button from '../button/button.js';
14
13
  import { typography } from '../theme/theme.js';
15
14
  import { ComponentToken } from '../../utils/component-token.js';
@@ -195,7 +194,7 @@ var Notification = /*#__PURE__*/forwardRef(function (_ref, ref) {
195
194
  var classNames = useClassNames(ComponentToken.Notification);
196
195
  var notificationRef = useRefs(scope, ref);
197
196
  // after duration, `Notification` will auto destroy
198
- useTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
197
+ useTimeout(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
199
198
  return _regeneratorRuntime().wrap(function _callee$(_context) {
200
199
  while (1) switch (_context.prev = _context.next) {
201
200
  case 0:
@@ -255,16 +254,16 @@ var Notification = /*#__PURE__*/forwardRef(function (_ref, ref) {
255
254
  className: clsx(classNames[NotificationClassToken.Notification], styled.notification.className),
256
255
  style: styled.notification.style,
257
256
  ref: notificationRef
258
- }, LEADINGS.has(type) && ( /*#__PURE__*/React.createElement("div", {
257
+ }, LEADINGS.has(type) && (/*#__PURE__*/React.createElement("div", {
259
258
  className: styled.leading.className,
260
259
  style: styled.leading.style
261
- }, /*#__PURE__*/createElement(LEADINGS.get(type)))), !!title && ( /*#__PURE__*/React.createElement("div", {
260
+ }, /*#__PURE__*/createElement(LEADINGS.get(type)))), !!title && (/*#__PURE__*/React.createElement("div", {
262
261
  className: clsx(classNames[NotificationClassToken.Title], styled.title.className),
263
262
  style: styled.title.style
264
263
  }, title)), /*#__PURE__*/React.createElement("div", {
265
264
  className: clsx(classNames[NotificationClassToken.Description], styled.description.className),
266
265
  style: styled.description.style
267
- }, description), closable && ( /*#__PURE__*/React.createElement(Button, {
266
+ }, description), closable && (/*#__PURE__*/React.createElement(Button, {
268
267
  className: clsx(classNames[NotificationClassToken.Closer], styled.closer.className),
269
268
  shape: "circular",
270
269
  variant: "text",
@@ -26,7 +26,7 @@ var Notifier = /*#__PURE__*/function () {
26
26
  value: function open(notification) {
27
27
  var _this = this;
28
28
  if (!_classPrivateFieldGet(_holder, this)) {
29
- createRoot(document.createDocumentFragment()).render( /*#__PURE__*/React.createElement(Holder, {
29
+ createRoot(document.createDocumentFragment()).render(/*#__PURE__*/React.createElement(Holder, {
30
30
  ref: function ref(holder) {
31
31
  _classPrivateFieldSet(_holder, _this, holder);
32
32
  },
@@ -48,7 +48,7 @@ var Notification = Object.assign.apply(Object, [{
48
48
  }
49
49
  }].concat(_toConsumableArray(METHODS.map(function (type) {
50
50
  return _defineProperty({}, type, function () {
51
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(notification) {
51
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(notification) {
52
52
  return _regeneratorRuntime().wrap(function _callee$(_context) {
53
53
  while (1) switch (_context.prev = _context.next) {
54
54
  case 0:
@@ -5,10 +5,9 @@ import Item from './item.js';
5
5
  import Select from '../select/select.js';
6
6
  import { useClassNames } from '../../hooks/use-class-names.js';
7
7
  import { PaginationClassToken } from '../../utils/class-name.js';
8
- import clsx from 'clsx';
9
8
  import { ComponentToken } from '../../utils/component-token.js';
10
9
  import { useLocale } from '../../locale/use-locale.js';
11
- import { toFunction } from '@aiszlab/relax';
10
+ import { toFunction, clsx } from '@aiszlab/relax';
12
11
 
13
12
  var Pagination = function Pagination(_ref) {
14
13
  var _ref$total = _ref.total,
@@ -3,13 +3,12 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
3
3
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
4
4
  import React, { forwardRef, useRef, useCallback, useImperativeHandle } from 'react';
5
5
  import Popper from '../popper/popper.js';
6
- import { useBoolean, useEvent, useFocus } from '@aiszlab/relax';
6
+ import { useBoolean, useEvent, useFocus, clsx } from '@aiszlab/relax';
7
7
  import { PickerClassToken } from '../../utils/class-name.js';
8
8
  import { useClassNames } from '../../hooks/use-class-names.js';
9
9
  import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
10
10
  import { useTheme } from '../theme/hooks.js';
11
11
  import { ColorToken } from '../../utils/colors.js';
12
- import clsx from 'clsx';
13
12
  import { typography } from '../theme/theme.js';
14
13
  import { styles as styles$1 } from '../input/input.js';
15
14
  import { Context } from './context.js';
@@ -4,10 +4,9 @@ import React, { useRef, cloneElement } from 'react';
4
4
  import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
5
  import { useClassNames } from '../../hooks/use-class-names.js';
6
6
  import { PopconfirmClassToken } from '../../utils/class-name.js';
7
- import clsx from 'clsx';
8
7
  import Space from '../space/space.js';
9
8
  import Button from '../button/button.js';
10
- import { useBoolean, useRefs, useEvent, useClickAway } from '@aiszlab/relax';
9
+ import { useBoolean, useRefs, useEvent, useClickAway, clsx } from '@aiszlab/relax';
11
10
  import Popper from '../popper/popper.js';
12
11
  import { typography } from '../theme/theme.js';
13
12
  import { useTheme } from '../theme/hooks.js';
@@ -17,7 +17,7 @@ var useIsOpen = function useIsOpen(popperRef) {
17
17
  turnOn = _useLazyBoolean2$.turnOn,
18
18
  _turnOff = _useLazyBoolean2$.turnOff,
19
19
  _disappear = _useLazyBoolean2$.disappear;
20
- var turnOff = useEvent( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
20
+ var turnOff = useEvent(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
21
21
  var _popperRef$current;
22
22
  return _regeneratorRuntime().wrap(function _callee$(_context) {
23
23
  while (1) switch (_context.prev = _context.next) {
@@ -38,7 +38,7 @@ var useIsOpen = function useIsOpen(popperRef) {
38
38
  }
39
39
  turnOn();
40
40
  }, [isOpen, turnOff, turnOn]);
41
- var disappear = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
41
+ var disappear = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
42
42
  var _popperRef$current2;
43
43
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
44
44
  while (1) switch (_context2.prev = _context2.next) {
@@ -1,6 +1,6 @@
1
1
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
- import { toArray, useRefs, useEvent, useHover, chain, useFocus, useClickAway } from '@aiszlab/relax';
3
+ import { toArray, useRefs, useEvent, useHover, chain, useFocus, useClickAway, clsx } from '@aiszlab/relax';
4
4
  import React, { forwardRef, useRef, useMemo, cloneElement, useCallback, useImperativeHandle } from 'react';
5
5
  import Popper from '../popper/popper.js';
6
6
  import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
@@ -8,7 +8,6 @@ import { spacing } from '../theme/tokens.stylex.js';
8
8
  import { typography } from '../theme/theme.js';
9
9
  import { useClassNames } from '../../hooks/use-class-names.js';
10
10
  import { PopoverClassToken } from '../../utils/class-name.js';
11
- import clsx from 'clsx';
12
11
  import { ComponentToken } from '../../utils/component-token.js';
13
12
  import { useIsOpen } from './hooks.js';
14
13
 
@@ -141,7 +140,7 @@ var Popover = /*#__PURE__*/forwardRef(function (_ref2, ref) {
141
140
  }), /*#__PURE__*/React.createElement("div", {
142
141
  className: clsx(classNames[PopoverClassToken.Popover], className, styled.popover.className),
143
142
  style: _objectSpread(_objectSpread({}, styled.popover.style), style)
144
- }, !!title && ( /*#__PURE__*/React.createElement("div", {
143
+ }, !!title && (/*#__PURE__*/React.createElement("div", {
145
144
  className: clsx(classNames[PopoverClassToken.Title], styled.title.className),
146
145
  style: styled.title.style
147
146
  }, title)), /*#__PURE__*/React.createElement("div", {
@@ -4,8 +4,7 @@ import React, { forwardRef, useImperativeHandle } from 'react';
4
4
  import { PopperClassToken } from '../../utils/class-name.js';
5
5
  import { useClassNames } from '../../hooks/use-class-names.js';
6
6
  import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
7
- import clsx from 'clsx';
8
- import { useRefs } from '@aiszlab/relax';
7
+ import { useRefs, clsx } from '@aiszlab/relax';
9
8
  import { useFloating, useAnimation } from './hooks.js';
10
9
  import { useTheme } from '../theme/hooks.js';
11
10
  import { ColorToken } from '../../utils/colors.js';
@@ -124,7 +123,7 @@ var Dropdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
124
123
  }, props$1), {}, {
125
124
  className: clsx(classNames[PopperClassToken.Dropdown], className, styled.dropdown.className),
126
125
  style: _objectSpread(_objectSpread({}, styled.dropdown.style), style)
127
- }), children, arrowable && ( /*#__PURE__*/React.createElement("div", {
126
+ }), children, arrowable && (/*#__PURE__*/React.createElement("div", {
128
127
  ref: arrowRef,
129
128
  className: styled.arrow.className,
130
129
  style: styled.arrow.style
@@ -40,7 +40,7 @@ var useAnimation = function useAnimation(_ref2) {
40
40
  _useAnimate2 = _slicedToArray(_useAnimate, 2),
41
41
  animatableRef = _useAnimate2[0],
42
42
  animate = _useAnimate2[1];
43
- var appear = useEvent( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
43
+ var appear = useEvent(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
44
44
  return _regeneratorRuntime().wrap(function _callee$(_context) {
45
45
  while (1) switch (_context.prev = _context.next) {
46
46
  case 0:
@@ -61,7 +61,7 @@ var useAnimation = function useAnimation(_ref2) {
61
61
  }
62
62
  }, _callee);
63
63
  })));
64
- var disappear = useEvent( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
64
+ var disappear = useEvent(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
65
65
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
66
66
  while (1) switch (_context2.prev = _context2.next) {
67
67
  case 0:
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
4
4
  import { useClassNames } from '../../hooks/use-class-names.js';
5
5
  import { ProgressClassToken } from '../../utils/class-name.js';
6
- import clsx from 'clsx';
6
+ import { clsx } from '@aiszlab/relax';
7
7
  import { useTheme } from '../theme/hooks.js';
8
8
  import { ColorToken } from '../../utils/colors.js';
9
9
  import { useValue } from './hooks.js';
@@ -0,0 +1,2 @@
1
+ import Quote from "./quote";
2
+ export { Quote };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { QuoteProps } from "./types";
3
+ declare const Quote: ({ className, children, style }: QuoteProps) => React.JSX.Element;
4
+ export default Quote;
@@ -0,0 +1,29 @@
1
+ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
+ import React from 'react';
3
+ import { useClassNames } from '../../hooks/use-class-names.js';
4
+ import { ComponentToken } from '../../utils/component-token.js';
5
+ import { clsx } from '@aiszlab/relax';
6
+ import { QuoteClassToken } from '../../utils/class-name.js';
7
+ import styles from './styles.js';
8
+ import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
9
+ import { useTheme } from '../theme/hooks.js';
10
+ import { ColorToken } from '../../utils/colors.js';
11
+ import { typography } from '../theme/theme.js';
12
+
13
+ var Quote = function Quote(_ref) {
14
+ var className = _ref.className,
15
+ children = _ref.children,
16
+ style = _ref.style;
17
+ var classNames = useClassNames(ComponentToken.Quote);
18
+ var theme = useTheme();
19
+ var styled = _stylex.props(styles.variables({
20
+ outlineColor: theme.colors[ColorToken.Outline]
21
+ }), styles.quote, typography.body.small);
22
+ return /*#__PURE__*/React.createElement("blockquote", {
23
+ className: clsx(classNames[QuoteClassToken.Quote], className, styled.className),
24
+ style: _objectSpread(_objectSpread({}, styled.style), style)
25
+ }, /*#__PURE__*/React.createElement("span", null, children));
26
+ };
27
+ var Quote$1 = Quote;
28
+
29
+ export { Quote$1 as default };
@@ -0,0 +1,20 @@
1
+ declare const styles: Readonly<{
2
+ readonly variables: (props: {
3
+ outlineColor: string;
4
+ }) => readonly [Readonly<{
5
+ "--outline-color": import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"--outline-color", string>;
6
+ }>, typeof import("@stylexjs/stylex/lib/StyleXTypes").StyleXInlineStylesTag];
7
+ readonly quote: Readonly<{
8
+ readonly position: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"position", "relative">;
9
+ readonly paddingInlineStart: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"paddingInlineStart", string>;
10
+ readonly "::before": import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"::before", {
11
+ readonly content: "\"\"";
12
+ readonly position: "absolute";
13
+ readonly insetBlock: 0;
14
+ readonly insetInlineStart: 0;
15
+ readonly width: import("@stylexjs/stylex/lib/StyleXTypes").StyleXVar<string>;
16
+ readonly backgroundColor: "var(--outline-color)";
17
+ }>;
18
+ }>;
19
+ }>;
20
+ export default styles;
@@ -0,0 +1,29 @@
1
+ var styles = {
2
+ variables: function variables(props) {
3
+ return [{
4
+ "--outline-color": "musaex-1x71zss",
5
+ $$css: true
6
+ }, {
7
+ "----outline-color": props.outlineColor != null ? props.outlineColor : "initial"
8
+ }];
9
+ },
10
+ quote: {
11
+ position: "musaex-1n2onr6",
12
+ paddingInlineStart: "musaex-7t49h1",
13
+ paddingLeft: null,
14
+ paddingRight: null,
15
+ "::before_content": "musaex-1cpjm7i",
16
+ "::before_position": "musaex-1hmns74",
17
+ "::before_insetBlock": "musaex-1nc033x",
18
+ "::before_top": null,
19
+ "::before_bottom": null,
20
+ "::before_insetInlineStart": "musaex-1682cnc",
21
+ "::before_left": null,
22
+ "::before_right": null,
23
+ "::before_width": "musaex-bv6p2w",
24
+ "::before_backgroundColor": "musaex-1xmraew",
25
+ $$css: true
26
+ }
27
+ };
28
+
29
+ export { styles as default };
@@ -0,0 +1,12 @@
1
+ import { ComponentProps } from "../../types/element";
2
+ /**
3
+ * @description
4
+ * quote props
5
+ */
6
+ export type QuoteProps = ComponentProps & {
7
+ /**
8
+ * @description
9
+ * children
10
+ */
11
+ children?: string;
12
+ };
@@ -2,14 +2,13 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import React, { useContext, useMemo, useCallback } from 'react';
4
4
  import Context from './context.js';
5
- import { useControlledState } from '@aiszlab/relax';
5
+ import { useControlledState, clsx } from '@aiszlab/relax';
6
6
  import { useClassNames } from '../../hooks/use-class-names.js';
7
7
  import { RadioClassToken } from '../../utils/class-name.js';
8
8
  import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
9
9
  import { useTheme } from '../theme/hooks.js';
10
10
  import { ColorToken } from '../../utils/colors.js';
11
11
  import { typography } from '../theme/theme.js';
12
- import clsx from 'clsx';
13
12
  import { ComponentToken } from '../../utils/component-token.js';
14
13
 
15
14
  var _excluded = ["children", "value", "checked", "disabled"];
@@ -231,7 +230,7 @@ var Radio = function Radio(_ref) {
231
230
  disabled: isDisabled,
232
231
  className: styled.trigger.className,
233
232
  style: styled.trigger.style
234
- }), children && ( /*#__PURE__*/React.createElement("span", {
233
+ }), children && (/*#__PURE__*/React.createElement("span", {
235
234
  className: styled.label.className,
236
235
  style: styled.label.style
237
236
  }, children)));
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
5
  import { useClassNames } from '../../hooks/use-class-names.js';
6
6
  import { RateClassToken } from '../../utils/class-name.js';
7
- import clsx from 'clsx';
7
+ import { clsx } from '@aiszlab/relax';
8
8
  import { useValue, useHover } from './hooks.js';
9
9
  import Star from './star.js';
10
10
  import { ComponentToken } from '../../utils/component-token.js';
@@ -1,9 +1,8 @@
1
1
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
3
  import React, { createElement } from 'react';
4
- import { useEvent, useHover } from '@aiszlab/relax';
4
+ import { useEvent, useHover, clsx } from '@aiszlab/relax';
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 { useClassNames } from '../../hooks/use-class-names.js';
8
7
  import { RateClassToken } from '../../utils/class-name.js';
9
8
  import { useTheme } from '../theme/hooks.js';