musae 0.1.44 → 0.1.46

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 (174) hide show
  1. package/dist/components/avatar/avatar.js +6 -6
  2. package/dist/components/avatar/group.js +1 -1
  3. package/dist/components/breadcrumb/breadcrumb.js +1 -1
  4. package/dist/components/breadcrumb/item.js +2 -2
  5. package/dist/components/button/button.js +7 -7
  6. package/dist/components/button/types.d.ts +13 -1
  7. package/dist/components/button-toggle/button-toggle.d.ts +3 -0
  8. package/dist/components/button-toggle/context.d.ts +2 -0
  9. package/dist/components/button-toggle/index.d.ts +2 -0
  10. package/dist/components/button-toggle/types.d.ts +12 -0
  11. package/dist/components/calendar/calendar.js +12 -4
  12. package/dist/components/calendar/hooks.d.ts +1 -1
  13. package/dist/components/calendar/hooks.js +15 -9
  14. package/dist/components/cascader/cascader.js +1 -1
  15. package/dist/components/cascader/hooks.d.ts +9 -2
  16. package/dist/components/checkbox/checkbox.js +5 -5
  17. package/dist/components/clock/clock.js +1 -1
  18. package/dist/components/clock/column.js +3 -3
  19. package/dist/components/config/context.js +1 -1
  20. package/dist/components/config/hooks.d.ts +0 -177
  21. package/dist/components/config/hooks.js +1 -8
  22. package/dist/components/config/index.d.ts +2 -2
  23. package/dist/components/config/provider.js +4 -4
  24. package/dist/components/config/types.d.ts +4 -4
  25. package/dist/components/countable/countable.d.ts +4 -0
  26. package/dist/components/countable/countable.js +48 -0
  27. package/dist/components/countable/index.d.ts +2 -0
  28. package/dist/components/countable/types.d.ts +22 -0
  29. package/dist/components/date-picker/date-picker.js +8 -8
  30. package/dist/components/date-range-picker/date-range-picker.js +2 -2
  31. package/dist/components/dialog/hooks.d.ts +5 -1
  32. package/dist/components/dialog/popup.js +1 -1
  33. package/dist/components/divider/divider.d.ts +2 -2
  34. package/dist/components/divider/divider.js +98 -82
  35. package/dist/components/divider/hooks.d.ts +5 -2
  36. package/dist/components/divider/hooks.js +2 -2
  37. package/dist/components/divider/types.d.ts +2 -1
  38. package/dist/components/drawer/drawer.d.ts +1 -1
  39. package/dist/components/drawer/drawer.js +2 -2
  40. package/dist/components/drawer/hooks.d.ts +1 -1
  41. package/dist/components/drawer/hooks.js +4 -4
  42. package/dist/components/drawer/popup.d.ts +1 -1
  43. package/dist/components/drawer/popup.js +29 -18
  44. package/dist/components/drawer/types.d.ts +14 -0
  45. package/dist/components/empty/empty.js +1 -1
  46. package/dist/components/form/field/error.js +2 -2
  47. package/dist/components/form/field/field.js +2 -2
  48. package/dist/components/grid/col.js +1 -1
  49. package/dist/components/grid/row.js +2 -2
  50. package/dist/components/icon/icon.js +1 -1
  51. package/dist/components/image/image.js +2 -2
  52. package/dist/components/image/preview/group.js +2 -2
  53. package/dist/components/input/hooks.d.ts +1 -1
  54. package/dist/components/input/index.d.ts +2 -1
  55. package/dist/components/input/input.d.ts +5 -4
  56. package/dist/components/input/input.js +37 -22
  57. package/dist/components/input/types.d.ts +15 -2
  58. package/dist/components/layout/header.js +1 -1
  59. package/dist/components/layout/sider.js +1 -1
  60. package/dist/components/loading/loading.js +6 -6
  61. package/dist/components/menu/group.js +3 -3
  62. package/dist/components/menu/hooks.d.ts +1 -1
  63. package/dist/components/menu/item.js +4 -4
  64. package/dist/components/menu/menu.js +1 -1
  65. package/dist/components/menu/types.d.ts +2 -2
  66. package/dist/components/message/hooks.js +17 -45
  67. package/dist/components/message/index.d.ts +1 -4
  68. package/dist/components/message/types.d.ts +4 -94
  69. package/dist/components/{message → notification}/holder.d.ts +2 -2
  70. package/dist/components/notification/holder.js +137 -0
  71. package/dist/components/notification/hooks.d.ts +9 -0
  72. package/dist/components/notification/hooks.js +63 -0
  73. package/dist/components/notification/index.d.ts +5 -0
  74. package/dist/components/notification/notification.d.ts +3 -1
  75. package/dist/components/notification/notification.js +230 -0
  76. package/dist/components/notification/types.d.ts +121 -0
  77. package/dist/components/number-input/hooks.d.ts +10 -0
  78. package/dist/components/number-input/index.d.ts +2 -0
  79. package/dist/components/number-input/number-input.d.ts +4 -0
  80. package/dist/components/number-input/types.d.ts +21 -0
  81. package/dist/components/otp-input/hooks.d.ts +26 -0
  82. package/dist/components/otp-input/hooks.js +62 -0
  83. package/dist/components/otp-input/index.d.ts +2 -0
  84. package/dist/components/otp-input/otp-input.d.ts +4 -0
  85. package/dist/components/otp-input/otp-input.js +81 -0
  86. package/dist/components/otp-input/types.d.ts +23 -0
  87. package/dist/components/pagination/hooks.d.ts +7 -2
  88. package/dist/components/pagination/hooks.js +2 -2
  89. package/dist/components/pagination/pagination.d.ts +1 -1
  90. package/dist/components/pagination/pagination.js +12 -2
  91. package/dist/components/picker/context.js +1 -1
  92. package/dist/components/picker/picker.js +5 -5
  93. package/dist/components/picker/types.d.ts +3 -3
  94. package/dist/components/popover/popover.d.ts +3 -0
  95. package/dist/components/popper/dropdown.js +1 -1
  96. package/dist/components/progress/circular.d.ts +4 -0
  97. package/dist/components/progress/circular.js +72 -0
  98. package/dist/components/progress/index.d.ts +2 -0
  99. package/dist/components/progress/linear.d.ts +4 -0
  100. package/dist/components/progress/linear.js +118 -0
  101. package/dist/components/progress/progress.d.ts +4 -0
  102. package/dist/components/progress/progress.js +13 -0
  103. package/dist/components/progress/types.d.ts +30 -0
  104. package/dist/components/radio/radio.js +5 -5
  105. package/dist/components/rate/rate.js +1 -1
  106. package/dist/components/rate/star.js +1 -1
  107. package/dist/components/select/selections.js +2 -2
  108. package/dist/components/steps/item.js +1 -1
  109. package/dist/components/steps/steps.js +1 -1
  110. package/dist/components/switch/switch.js +18 -18
  111. package/dist/components/table/header.js +1 -1
  112. package/dist/components/tabs/item.js +2 -2
  113. package/dist/components/tabs/tabs.d.ts +1 -1
  114. package/dist/components/tabs/tabs.js +16 -12
  115. package/dist/components/tabs/types.d.ts +2 -2
  116. package/dist/components/tag/tag.js +1 -1
  117. package/dist/components/theme/hooks.js +1 -2
  118. package/dist/components/theme/tokens.stylex.d.ts +6 -1
  119. package/dist/components/theme/tokens.stylex.js +5 -0
  120. package/dist/components/time-picker/panel.js +2 -2
  121. package/dist/components/time-picker/time-picker.js +6 -6
  122. package/dist/components/timeline/item.js +3 -3
  123. package/dist/components/timeline/timeline.js +1 -1
  124. package/dist/components/tooltip/tooltip.js +3 -3
  125. package/dist/components/tour/spotlight.js +2 -2
  126. package/dist/components/tour/tour.js +2 -2
  127. package/dist/components/tree/list.js +1 -1
  128. package/dist/components/tree/node.js +1 -1
  129. package/dist/components/upload/index.d.ts +2 -0
  130. package/dist/components/upload/types.d.ts +41 -0
  131. package/dist/components/upload/upload.d.ts +4 -0
  132. package/dist/components/upload/upload.js +67 -0
  133. package/dist/components/waterfall/hooks.d.ts +3 -2
  134. package/dist/components/waterfall/hooks.js +6 -3
  135. package/dist/components/waterfall/sequential.d.ts +1 -1
  136. package/dist/components/waterfall/sequential.js +3 -1
  137. package/dist/components/waterfall/waterfall.d.ts +1 -1
  138. package/dist/components/waterfall/waterfall.js +9 -5
  139. package/dist/hooks/use-class-names.d.ts +189 -0
  140. package/dist/hooks/use-class-names.js +12 -0
  141. package/dist/hooks/use-gutters.d.ts +1 -1
  142. package/dist/hooks/use-gutters.js +1 -1
  143. package/dist/index.d.ts +5 -0
  144. package/dist/index.js +5 -0
  145. package/dist/node_modules/@aiszlab/relax/dist/dom/contains.js +16 -16
  146. package/dist/stylex.css +57 -49
  147. package/dist/utils/class-name.d.ts +51 -1
  148. package/dist/utils/class-name.js +29 -1
  149. package/dist/utils/keyboard.d.ts +9 -1
  150. package/dist/utils/keyboard.js +8 -0
  151. package/dist/utils/styles.js +5 -1
  152. package/package.json +4 -5
  153. package/dist/components/message/holder.js +0 -38
  154. package/dist/components/message/message.d.ts +0 -4
  155. package/dist/components/message/message.js +0 -107
  156. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +0 -103
  157. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +0 -168
  158. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +0 -144
  159. package/dist/node_modules/rxjs/dist/esm5/internal/config.js +0 -9
  160. package/dist/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js +0 -62
  161. package/dist/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js +0 -25
  162. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +0 -18
  163. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +0 -3
  164. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +0 -14
  165. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -8
  166. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +0 -12
  167. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +0 -7
  168. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -5
  169. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -5
  170. package/dist/node_modules/rxjs/dist/esm5/internal/util/lift.js +0 -22
  171. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -3
  172. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +0 -15
  173. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +0 -11
  174. package/dist/node_modules/tslib/tslib.es6.js +0 -76
@@ -3,7 +3,7 @@ import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
3
3
  import { Context } from './context.js';
4
4
  import { useTheme } from '../theme/hooks.js';
5
5
  import { ColorToken } from '../../utils/colors.js';
6
- import { useClassNames } from '../config/hooks.js';
6
+ import { useClassNames } from '../../hooks/use-class-names.js';
7
7
  import { ComponentToken, AvatarClassToken } from '../../utils/class-name.js';
8
8
  import clsx from 'clsx';
9
9
 
@@ -84,7 +84,7 @@ const styles = {
84
84
  $$css: true
85
85
  },
86
86
  squared: {
87
- borderRadius: "musae-1gg5qfe",
87
+ borderRadius: "musae-7bdoj",
88
88
  borderStartStartRadius: null,
89
89
  borderStartEndRadius: null,
90
90
  borderEndStartRadius: null,
@@ -96,8 +96,8 @@ const styles = {
96
96
  $$css: true
97
97
  },
98
98
  small: {
99
- width: "musae-1lxaayn",
100
- height: "musae-v8wr9m",
99
+ width: "musae-145rzd9",
100
+ height: "musae-lry4nc",
101
101
  $$css: true
102
102
  },
103
103
  medium: {
@@ -106,8 +106,8 @@ const styles = {
106
106
  $$css: true
107
107
  },
108
108
  large: {
109
- width: "musae-1fy0r53",
110
- height: "musae-12cinw4",
109
+ width: "musae-1sgo4cp",
110
+ height: "musae-7kkngq",
111
111
  $$css: true
112
112
  }
113
113
  };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Context } from './context.js';
3
- import { useClassNames } from '../config/hooks.js';
3
+ import { useClassNames } from '../../hooks/use-class-names.js';
4
4
  import { ComponentToken, AvatarClassToken } from '../../utils/class-name.js';
5
5
 
6
6
  const Group = ({
@@ -3,7 +3,7 @@ import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
3
3
  import { typography } from '../theme/theme.js';
4
4
  import { useTheme } from '../theme/hooks.js';
5
5
  import { ColorToken } from '../../utils/colors.js';
6
- import { useClassNames } from '../config/hooks.js';
6
+ import { useClassNames } from '../../hooks/use-class-names.js';
7
7
  import { ComponentToken, BreadcrumbClassToken } from '../../utils/class-name.js';
8
8
  import clsx from 'clsx';
9
9
  import Item from './item.js';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import _stylex from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
3
3
  import { useTheme } from '../theme/hooks.js';
4
4
  import { ColorToken } from '../../utils/colors.js';
5
- import { useClassNames } from '../config/hooks.js';
5
+ import { useClassNames } from '../../hooks/use-class-names.js';
6
6
  import { ComponentToken, BreadcrumbClassToken } from '../../utils/class-name.js';
7
7
  import clsx from 'clsx';
8
8
 
@@ -20,7 +20,7 @@ const styles = {
20
20
  paddingLeft: null,
21
21
  paddingEnd: null,
22
22
  paddingRight: null,
23
- borderRadius: "musae-1gg5qfe",
23
+ borderRadius: "musae-7bdoj",
24
24
  borderStartStartRadius: null,
25
25
  borderStartEndRadius: null,
26
26
  borderEndStartRadius: null,
@@ -1,5 +1,4 @@
1
1
  import React, { forwardRef } from 'react';
2
- import { useClassNames } from '../config/hooks.js';
3
2
  import { ComponentToken, ButtonClassToken } from '../../utils/class-name.js';
4
3
  import clsx from 'clsx';
5
4
  import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
@@ -9,6 +8,7 @@ import Ripple from '../ripple/ripple.js';
9
8
  import { typography } from '../theme/theme.js';
10
9
  import { ColorToken } from '../../utils/colors.js';
11
10
  import { layer } from '../../utils/layer.js';
11
+ import { useClassNames } from '../../hooks/use-class-names.js';
12
12
 
13
13
  const styles = {
14
14
  button: {
@@ -37,8 +37,8 @@ const styles = {
37
37
  paddingBlock: null,
38
38
  paddingTop: null,
39
39
  paddingBottom: null,
40
- minHeight: "musae-jbwyga",
41
- minWidth: "musae-dsbmi5",
40
+ minHeight: "musae-1sal0kv",
41
+ minWidth: "musae-trrjuf",
42
42
  $$css: true
43
43
  },
44
44
  medium: {
@@ -51,8 +51,8 @@ const styles = {
51
51
  paddingBlock: null,
52
52
  paddingTop: null,
53
53
  paddingBottom: null,
54
- minHeight: "musae-1oxjezn",
55
- minWidth: "musae-kw4qbi",
54
+ minHeight: "musae-1infgec",
55
+ minWidth: "musae-ba7gwn",
56
56
  $$css: true
57
57
  },
58
58
  large: {
@@ -65,8 +65,8 @@ const styles = {
65
65
  paddingBlock: null,
66
66
  paddingTop: null,
67
67
  paddingBottom: null,
68
- minHeight: "musae-1infgec",
69
- minWidth: "musae-ba7gwn",
68
+ minHeight: "musae-1ee7i9g",
69
+ minWidth: "musae-1049mhy",
70
70
  $$css: true
71
71
  },
72
72
  circular: {
@@ -14,17 +14,22 @@ export interface ButtonProps extends Partial<Pick<ButtonHTMLAttributes<HTMLButto
14
14
  /**
15
15
  * @description
16
16
  * variant
17
- * @example filled
17
+ *
18
+ * @default "filled"
18
19
  */
19
20
  variant?: Variant;
20
21
  /**
21
22
  * @description
22
23
  * color: only support preset colors
24
+ *
25
+ * @default "primary"
23
26
  */
24
27
  color?: Color;
25
28
  /**
26
29
  * @description
27
30
  * shape
31
+ *
32
+ * @default "rounded"
28
33
  */
29
34
  shape?: Shape;
30
35
  /**
@@ -40,16 +45,21 @@ export interface ButtonProps extends Partial<Pick<ButtonHTMLAttributes<HTMLButto
40
45
  /**
41
46
  * @description
42
47
  * size
48
+ *
49
+ * @default "medium"
43
50
  */
44
51
  size?: Size;
45
52
  /**
46
53
  * @description
47
54
  * disabled
55
+ *
56
+ * @default false
48
57
  */
49
58
  disabled?: boolean;
50
59
  /**
51
60
  * @description
52
61
  * prefix react node
62
+ *
53
63
  * @template
54
64
  * icon or prefix signal
55
65
  */
@@ -64,6 +74,8 @@ export interface ButtonProps extends Partial<Pick<ButtonHTMLAttributes<HTMLButto
64
74
  /**
65
75
  * @description
66
76
  * if false, without a ripple
77
+ *
78
+ * @default true
67
79
  */
68
80
  ripple?: boolean;
69
81
  }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const ButtonToggle: () => React.JSX.Element;
3
+ export default ButtonToggle;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const Context: import("react").Context<{}>;
@@ -0,0 +1,2 @@
1
+ import ButtonToggle from "./button-toggle";
2
+ export { ButtonToggle };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @description
3
+ * button toggle props
4
+ */
5
+ export type ButtonToggleProps = {};
6
+ /**
7
+ * @description
8
+ * context value
9
+ */
10
+ export type ContextValue = {
11
+ selected: unknown;
12
+ };
@@ -1,18 +1,20 @@
1
1
  import React from 'react';
2
2
  import { useValue, useFocusedAt, useDateCells, useHeadCells } from './hooks.js';
3
- import { useClassNames } from '../config/hooks.js';
3
+ import { useClassNames } from '../../hooks/use-class-names.js';
4
4
  import { ComponentToken, CalendarClassToken } from '../../utils/class-name.js';
5
5
  import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
6
6
  import { typography } from '../theme/theme.js';
7
7
  import clsx from 'clsx';
8
8
  import Button from '../button/button.js';
9
+ import { useTheme } from '../theme/hooks.js';
10
+ import { ColorToken } from '../../utils/colors.js';
9
11
  import KeyboardDoubleArrowLeft from '../icon/icons/hardware/keyboard-double-arrow-left.js';
10
12
  import KeyboardDoubleArrowRight from '../icon/icons/hardware/keyboard-double-arrow-right.js';
11
13
  import KeyboardArrowLeft from '../icon/icons/hardware/keyboard-arrow-left.js';
12
14
  import KeyboardArrowRight from '../icon/icons/hardware/keyboard-arrow-right.js';
13
15
 
14
16
  const styles = {
15
- header: {
17
+ header: props => [{
16
18
  display: "musae-78zum5",
17
19
  alignItems: "musae-6s0dn4",
18
20
  columnGap: "musae-18jba3g",
@@ -21,8 +23,11 @@ const styles = {
21
23
  paddingLeft: null,
22
24
  paddingEnd: null,
23
25
  paddingRight: null,
26
+ color: "musae-19dipnz",
24
27
  $$css: true
25
- }
28
+ }, {
29
+ "--color": props.color != null ? props.color : "initial"
30
+ }]
26
31
  };
27
32
  const Calendar = ({
28
33
  className,
@@ -43,8 +48,11 @@ const Calendar = ({
43
48
  const dateCells = useDateCells([timespan, focusedAt, onClick]);
44
49
  const headCells = useHeadCells();
45
50
  const classNames = useClassNames(ComponentToken.Calendar);
51
+ const theme = useTheme();
46
52
  const styled = {
47
- header: props(typography.label.large, styles.header),
53
+ header: props(typography.label.large, styles.header({
54
+ color: theme.colors[ColorToken.OnSurfaceVariant]
55
+ })),
48
56
  heading: {
49
57
  className: "musae-98rzlu musae-78zum5 musae-l56j7k"
50
58
  }
@@ -1,4 +1,4 @@
1
- import dayjs, { Dayjs } from "dayjs";
1
+ import dayjs, { type Dayjs } from "dayjs";
2
2
  import React from "react";
3
3
  import { Timespan } from "../../utils/timespan";
4
4
  import type { CalendarProps } from "./types";
@@ -1,6 +1,6 @@
1
1
  import dayjs from 'dayjs';
2
2
  import React, { useMemo, useCallback } from 'react';
3
- import { useClassNames } from '../config/hooks.js';
3
+ import { useClassNames } from '../../hooks/use-class-names.js';
4
4
  import { ComponentToken, CalendarClassToken } from '../../utils/class-name.js';
5
5
  import { isArray, useControlledState } from '@aiszlab/relax';
6
6
  import { Timespan } from '../../utils/timespan.js';
@@ -13,22 +13,25 @@ import Button from '../button/button.js';
13
13
 
14
14
  const styles = {
15
15
  cell: {
16
- height: "musae-7kkngq",
17
- width: "musae-1sgo4cp",
16
+ height: "musae-was1v5",
17
+ width: "musae-1wmt73o",
18
18
  padding: "musae-1jb30j6",
19
- $$css: true
20
- },
21
- header: {
22
19
  textAlign: "musae-2b8uid",
23
20
  $$css: true
24
21
  },
22
+ header: props => [{
23
+ color: "musae-19dipnz",
24
+ $$css: true
25
+ }, {
26
+ "--color": props.color != null ? props.color : "initial"
27
+ }],
25
28
  date: props => [{
26
29
  position: "musae-1n2onr6",
27
30
  "::before_content": "musae-1cpjm7i",
28
31
  "::before_position": "musae-1hmns74",
29
32
  "::before_backgroundColor": "musae-rr6jkh",
30
33
  "::before_zIndex": "musae-1ly6cpr",
31
- "::before_height": "musae-58076a",
34
+ "::before_height": "musae-2wrall",
32
35
  $$css: true
33
36
  }, {
34
37
  "--1lrm08k": props.backgroundColor != null ? props.backgroundColor : "initial"
@@ -65,14 +68,17 @@ const styles = {
65
68
  */
66
69
  const useHeadCells = () => {
67
70
  const classNames = useClassNames(ComponentToken.Calendar);
71
+ const theme = useTheme();
68
72
  return useMemo(() => {
69
- const styled = props(styles.cell, styles.header, typography.body.large);
73
+ const styled = props(styles.cell, styles.header({
74
+ color: theme.colors[ColorToken.OnSurfaceVariant]
75
+ }), typography.body.large);
70
76
  return dayjs.Ls[dayjs.locale()].weekdays?.map((weekday, index) => React.createElement("th", {
71
77
  key: index,
72
78
  className: clsx(classNames[CalendarClassToken.HeadCell], styled.className),
73
79
  style: styled.style
74
80
  }, weekday.charAt(0)));
75
- }, [classNames]);
81
+ }, [classNames, theme]);
76
82
  };
77
83
  /**
78
84
  * @description
@@ -3,7 +3,7 @@ import Picker from '../picker/picker.js';
3
3
  import Tag from '../tag/tag.js';
4
4
  import { useOptions, useValue } from './hooks.js';
5
5
  import Menu from '../menu/menu.js';
6
- import { useClassNames } from '../config/hooks.js';
6
+ import { useClassNames } from '../../hooks/use-class-names.js';
7
7
  import { ComponentToken, CascaderClassToken } from '../../utils/class-name.js';
8
8
  import clsx from 'clsx';
9
9
 
@@ -5,7 +5,14 @@ import type { CascaderProps, ReadableOptions, ReadablePaths } from "./types";
5
5
  * @description
6
6
  * cascader value
7
7
  */
8
- export declare const useValue: ([valueInProps, readableOptions, readablePaths, mode, close, setAdditionalMenusItems]: [import("./types").ValueOrValues | undefined, ReadableOptions, ReadablePaths, "multiple" | undefined, close: VoidFunction, Dispatch<SetStateAction<MenuItem[][]>>]) => {
8
+ export declare const useValue: ([valueInProps, readableOptions, readablePaths, mode, close, setAdditionalMenusItems]: [
9
+ CascaderProps["value"],
10
+ ReadableOptions,
11
+ ReadablePaths,
12
+ CascaderProps["mode"],
13
+ close: VoidFunction,
14
+ Dispatch<SetStateAction<MenuItem[][]>>
15
+ ]) => {
9
16
  values: Map<number, Required<Pick<import("../..").Option, "value" | "label">>[]>;
10
17
  onChange: (id: number) => void;
11
18
  };
@@ -13,7 +20,7 @@ export declare const useValue: ([valueInProps, readableOptions, readablePaths, m
13
20
  * @description
14
21
  * options
15
22
  */
16
- export declare const useOptions: ([options]: [options: import("../..").Option[] | undefined]) => {
23
+ export declare const useOptions: ([options]: [options: CascaderProps["options"]]) => {
17
24
  presetedMenuItems: MenuItem[];
18
25
  additionalMenusItems: MenuItem[][];
19
26
  readableOptions: ReadableOptions;
@@ -1,7 +1,7 @@
1
1
  import React, { useContext, useMemo, useCallback } from 'react';
2
2
  import { useControlledState } from '@aiszlab/relax';
3
3
  import Context from './context.js';
4
- import { useClassNames } from '../config/hooks.js';
4
+ import { useClassNames } from '../../hooks/use-class-names.js';
5
5
  import { ComponentToken, CheckboxClassToken } from '../../utils/class-name.js';
6
6
  import clsx from 'clsx';
7
7
  import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
@@ -28,8 +28,8 @@ const styles = {
28
28
  "::before_visibility": "musae-11srvyv",
29
29
  "::before_display": "musae-1fgarty",
30
30
  "::before_boxSizing": "musae-tql2tq",
31
- "::before_width": "musae-1am8x4t",
32
- "::before_height": "musae-1pb6zuh",
31
+ "::before_width": "musae-1el3b87",
32
+ "::before_height": "musae-1prtdg5",
33
33
  "::before_borderRadius": "musae-10eoie5",
34
34
  "::before_borderStartStartRadius": null,
35
35
  "::before_borderStartEndRadius": null,
@@ -92,8 +92,8 @@ const styles = {
92
92
  "::after_boxSizing": "musae-x38sju",
93
93
  "::after_position": "musae-1j6awrg",
94
94
  "::after_display": "musae-hkezso",
95
- "::after_width": "musae-15y61te",
96
- "::after_height": "musae-h6wov",
95
+ "::after_width": "musae-11yodxc",
96
+ "::after_height": "musae-ec44on",
97
97
  "::after_transform": "musae-1db1611",
98
98
  "::after_borderWidth": "musae-15z8w9c",
99
99
  "::after_borderInlineWidth": null,
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useClassNames } from '../config/hooks.js';
2
+ import { useClassNames } from '../../hooks/use-class-names.js';
3
3
  import { ComponentToken, ClockClassToken } from '../../utils/class-name.js';
4
4
  import { TimeUnit } from './types.js';
5
5
  import Column from './column.js';
@@ -1,7 +1,7 @@
1
1
  import React, { forwardRef, useRef, useCallback, useImperativeHandle, useEffect, useMemo } from 'react';
2
2
  import { useTimeUnit } from './hooks.js';
3
3
  import Menu from '../menu/menu.js';
4
- import { useClassNames } from '../config/hooks.js';
4
+ import { useClassNames } from '../../hooks/use-class-names.js';
5
5
  import { ComponentToken, ClockClassToken } from '../../utils/class-name.js';
6
6
  import { isVoid } from '@aiszlab/relax';
7
7
  import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
@@ -13,7 +13,7 @@ const styles = {
13
13
  menu: props => [{
14
14
  overflowX: "musae-6ikm8r",
15
15
  overflowY: "musae-10wlt62 musae-r8ctv5",
16
- width: "musae-1sgo4cp",
16
+ width: "musae-1wmt73o",
17
17
  marginBlock: "musae-dbe9a9",
18
18
  marginTop: null,
19
19
  marginBottom: null,
@@ -62,7 +62,7 @@ const Column = forwardRef(({
62
62
  outlineColor: theme.colors[ColorToken.OutlineVariant]
63
63
  })),
64
64
  item: {
65
- className: "musae-1sgo4cp musae-78zum5 musae-l56j7k"
65
+ className: "musae-1wmt73o musae-78zum5 musae-l56j7k"
66
66
  }
67
67
  };
68
68
  return React.createElement(Menu, {
@@ -2,7 +2,7 @@ import { createContext } from 'react';
2
2
  import { DEFAULT_CLASS_NAMES } from '../../utils/class-name.js';
3
3
 
4
4
  const Context = createContext({
5
- messager: null,
5
+ notifier: null,
6
6
  classNames: DEFAULT_CLASS_NAMES,
7
7
  });
8
8
 
@@ -1,180 +1,3 @@
1
- import { ComponentToken } from "../../utils/class-name";
2
- /**
3
- * @description
4
- * the component class names
5
- */
6
- export declare const useClassNames: <T extends ComponentToken>(token: T) => {
7
- 0: {
8
- 0: string;
9
- 1: string;
10
- 2: string;
11
- 3: string;
12
- };
13
- 1: {
14
- 0: string;
15
- 1: string;
16
- 2: string;
17
- 3: string;
18
- };
19
- 2: {
20
- 0: string;
21
- };
22
- 3: {
23
- 0: string;
24
- };
25
- 4: {
26
- 0: string;
27
- 1: string;
28
- 2: string;
29
- 3: string;
30
- };
31
- 5: {
32
- 0: string;
33
- 1: string;
34
- };
35
- 6: {
36
- 0: string;
37
- };
38
- 7: {
39
- 0: string;
40
- 1: string;
41
- };
42
- 8: {
43
- 0: string;
44
- 1: string;
45
- };
46
- 9: {
47
- 0: string;
48
- 1: string;
49
- 2: string;
50
- 3: string;
51
- 4: string;
52
- };
53
- 10: {
54
- 0: string;
55
- 1: string;
56
- };
57
- 11: {
58
- 0: string;
59
- };
60
- 12: {
61
- 0: string;
62
- 1: string;
63
- };
64
- 13: {
65
- 0: string;
66
- 1: string;
67
- 2: string;
68
- 3: string;
69
- 4: string;
70
- 5: string;
71
- };
72
- 14: {
73
- 0: string;
74
- 1: string;
75
- 2: string;
76
- 3: string;
77
- 4: string;
78
- 5: string;
79
- 6: string;
80
- 7: string;
81
- 8: string;
82
- };
83
- 15: {
84
- 0: string;
85
- };
86
- 16: {
87
- 0: string;
88
- 1: string;
89
- };
90
- 17: {
91
- 0: string;
92
- 1: string;
93
- 2: string;
94
- 3: string;
95
- };
96
- 18: {
97
- 0: string;
98
- 1: string;
99
- 2: string;
100
- };
101
- 19: {
102
- 0: string;
103
- 1: string;
104
- };
105
- 20: {
106
- 0: string;
107
- 1: string;
108
- 2: string;
109
- 3: string;
110
- 4: string;
111
- };
112
- 21: {
113
- 0: string;
114
- };
115
- 22: {
116
- 0: string;
117
- 1: string;
118
- 2: string;
119
- 3: string;
120
- 4: string;
121
- 5: string;
122
- 6: string;
123
- 7: string;
124
- };
125
- 23: {
126
- 0: string;
127
- 1: string;
128
- 2: string;
129
- };
130
- 24: {
131
- 0: string;
132
- };
133
- 25: {
134
- 0: string;
135
- 1: string;
136
- 2: string;
137
- 3: string;
138
- 4: string;
139
- };
140
- 26: {
141
- 0: string;
142
- 1: string;
143
- 2: string;
144
- 3: string;
145
- };
146
- 27: {
147
- 0: string;
148
- 1: string;
149
- 2: string;
150
- 3: string;
151
- 4: string;
152
- 5: string;
153
- };
154
- 28: {
155
- 0: string;
156
- 1: string;
157
- 5: string;
158
- 6: string;
159
- 7: string;
160
- 2: string;
161
- 3: string;
162
- 4: string;
163
- };
164
- 29: {
165
- 0: string;
166
- 1: string;
167
- };
168
- 30: {
169
- 0: string;
170
- 1: string;
171
- 2: string;
172
- };
173
- 31: {
174
- 0: string;
175
- 1: string;
176
- };
177
- }[T];
178
1
  /**
179
2
  * @description
180
3
  * configuration
@@ -1,13 +1,6 @@
1
1
  import { useContext } from 'react';
2
2
  import Context from './context.js';
3
3
 
4
- /**
5
- * @description
6
- * the component class names
7
- */
8
- const useClassNames = (token) => {
9
- return useContext(Context).classNames[token];
10
- };
11
4
  /**
12
5
  * @description
13
6
  * configuration
@@ -16,4 +9,4 @@ const useConfiguration = () => {
16
9
  return useContext(Context);
17
10
  };
18
11
 
19
- export { useClassNames, useConfiguration };
12
+ export { useConfiguration };
@@ -1,3 +1,3 @@
1
1
  import ConfigProvider from "./provider";
2
- import { useClassNames, useConfiguration } from "./hooks";
3
- export { ConfigProvider, useClassNames, useConfiguration };
2
+ import { useConfiguration } from "./hooks";
3
+ export { ConfigProvider, useConfiguration };
@@ -1,21 +1,21 @@
1
1
  import React, { useRef, useMemo } from 'react';
2
2
  import Context from './context.js';
3
- import Holder from '../message/holder.js';
3
+ import Holder from '../notification/holder.js';
4
4
  import { DEFAULT_CLASS_NAMES, addPrefix, CLASS_NAMES } from '../../utils/class-name.js';
5
5
 
6
6
  const ConfigProvider = (props) => {
7
- const messageRef = useRef(null);
7
+ const notifierRef = useRef(null);
8
8
  const classNames = useMemo(() => {
9
9
  if (!props.prefix)
10
10
  return DEFAULT_CLASS_NAMES;
11
11
  return addPrefix(CLASS_NAMES, props.prefix);
12
12
  }, [props.prefix]);
13
13
  return (React.createElement(Context.Provider, { value: {
14
- messager: messageRef,
14
+ notifier: notifierRef,
15
15
  classNames,
16
16
  } },
17
17
  props.children,
18
- React.createElement(Holder, { ref: messageRef })));
18
+ React.createElement(Holder, { ref: notifierRef })));
19
19
  };
20
20
  var ConfigProvider$1 = ConfigProvider;
21
21