musae 0.2.2 → 0.2.4

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 (137) hide show
  1. package/README.md +1 -1
  2. package/dist/components/avatar/avatar.js +1 -1
  3. package/dist/components/avatar/context.d.ts +0 -1
  4. package/dist/components/breadcrumb/breadcrumb.js +1 -1
  5. package/dist/components/breadcrumb/item.js +1 -1
  6. package/dist/components/button/button.js +1 -1
  7. package/dist/components/button-toggle/context.d.ts +0 -1
  8. package/dist/components/calendar/calendar.js +1 -1
  9. package/dist/components/calendar/hooks.js +1 -1
  10. package/dist/components/cascader/hooks.d.ts +1 -8
  11. package/dist/components/cascader/utils.d.ts +0 -1
  12. package/dist/components/checkbox/checkbox.js +4 -3
  13. package/dist/components/checkbox/context.d.ts +0 -1
  14. package/dist/components/checkbox/index.d.ts +0 -1
  15. package/dist/components/clock/column.js +1 -1
  16. package/dist/components/collapse/collapse.d.ts +4 -0
  17. package/dist/components/collapse/collapse.js +97 -0
  18. package/dist/components/collapse/context.d.ts +6 -0
  19. package/dist/components/collapse/context.js +12 -0
  20. package/dist/components/collapse/hooks.d.ts +12 -0
  21. package/dist/components/collapse/hooks.js +43 -0
  22. package/dist/components/collapse/index.d.ts +2 -0
  23. package/dist/components/collapse/item.d.ts +4 -0
  24. package/dist/components/collapse/item.js +144 -0
  25. package/dist/components/collapse/types.d.ts +87 -0
  26. package/dist/components/config/context.d.ts +0 -1
  27. package/dist/components/date-picker/date-picker.js +1 -1
  28. package/dist/components/date-picker/hooks.d.ts +1 -5
  29. package/dist/components/date-range-picker/hooks.d.ts +1 -5
  30. package/dist/components/dialog/hooks.d.ts +1 -5
  31. package/dist/components/dialog/popup.js +2 -2
  32. package/dist/components/divider/divider.js +1 -1
  33. package/dist/components/drawer/popup.js +2 -2
  34. package/dist/components/empty/empty.js +1 -1
  35. package/dist/components/form/context.d.ts +0 -1
  36. package/dist/components/form/field/field.d.ts +1 -1
  37. package/dist/components/form/field/field.js +8 -7
  38. package/dist/components/form/field/layout.js +1 -1
  39. package/dist/components/grid/col.js +1 -1
  40. package/dist/components/grid/index.d.ts +0 -1
  41. package/dist/components/grid/row.js +1 -1
  42. package/dist/components/icon/icon.js +2 -2
  43. package/dist/components/icon/icons/index.js +1 -0
  44. package/dist/components/icon/icons/navigation/index.d.ts +2 -1
  45. package/dist/components/icon/icons/navigation/index.js +1 -0
  46. package/dist/components/icon/icons/navigation/unfold-more.d.ts +3 -0
  47. package/dist/components/icon/icons/navigation/unfold-more.js +10 -0
  48. package/dist/components/image/index.d.ts +0 -1
  49. package/dist/components/image/preview/context.d.ts +0 -1
  50. package/dist/components/image/preview/operations.js +1 -1
  51. package/dist/components/image/preview/preview.js +1 -1
  52. package/dist/components/input/input.d.ts +20 -20
  53. package/dist/components/input/input.js +3 -11
  54. package/dist/components/layout/header.js +1 -1
  55. package/dist/components/layout/layout.js +1 -1
  56. package/dist/components/layout/main.d.ts +0 -1
  57. package/dist/components/loading/loading.d.ts +1 -1
  58. package/dist/components/loading/loading.js +70 -5
  59. package/dist/components/loading/types.d.ts +13 -0
  60. package/dist/components/menu/context.d.ts +0 -1
  61. package/dist/components/menu/group.d.ts +2 -2
  62. package/dist/components/menu/group.js +1 -1
  63. package/dist/components/menu/hooks.js +1 -1
  64. package/dist/components/menu/item.d.ts +1 -1
  65. package/dist/components/menu/item.js +1 -1
  66. package/dist/components/notification/holder.js +1 -1
  67. package/dist/components/notification/notification.js +1 -1
  68. package/dist/components/pagination/hooks.d.ts +2 -3
  69. package/dist/components/picker/context.d.ts +0 -1
  70. package/dist/components/picker/picker.js +1 -1
  71. package/dist/components/popover/popover.js +1 -1
  72. package/dist/components/popper/dropdown.js +1 -1
  73. package/dist/components/popper/hooks.d.ts +3 -3
  74. package/dist/components/progress/circular.js +1 -1
  75. package/dist/components/progress/hooks.d.ts +0 -1
  76. package/dist/components/progress/linear.js +1 -1
  77. package/dist/components/radio/context.d.ts +0 -1
  78. package/dist/components/radio/radio.js +22 -13
  79. package/dist/components/rate/rate.js +1 -1
  80. package/dist/components/rate/star.js +12 -14
  81. package/dist/components/ripple/hooks.js +4 -1
  82. package/dist/components/ripple/ripple.js +1 -1
  83. package/dist/components/select/selector.js +1 -1
  84. package/dist/components/select/utils.d.ts +0 -1
  85. package/dist/components/space/space.js +1 -1
  86. package/dist/components/steps/context.d.ts +0 -1
  87. package/dist/components/steps/item.js +1 -1
  88. package/dist/components/steps/steps.js +1 -1
  89. package/dist/components/switch/switch.js +1 -1
  90. package/dist/components/table/body.js +36 -4
  91. package/dist/components/table/context.d.ts +6 -1
  92. package/dist/components/table/context.js +10 -2
  93. package/dist/components/table/header/cell.d.ts +3 -0
  94. package/dist/components/table/header/cell.js +129 -0
  95. package/dist/components/table/{header.d.ts → header/header.d.ts} +1 -1
  96. package/dist/components/table/{header.js → header/header.js} +37 -10
  97. package/dist/components/table/hooks.d.ts +8 -21
  98. package/dist/components/table/hooks.js +36 -58
  99. package/dist/components/table/table.d.ts +1 -1
  100. package/dist/components/table/table.js +12 -6
  101. package/dist/components/table/types.d.ts +72 -4
  102. package/dist/components/tabs/context.d.ts +0 -1
  103. package/dist/components/tabs/item.js +3 -1
  104. package/dist/components/tabs/tabs.js +1 -1
  105. package/dist/components/tag/tag.js +1 -1
  106. package/dist/components/theme/hooks.d.ts +1 -2
  107. package/dist/components/time-picker/panel.js +1 -1
  108. package/dist/components/time-picker/time-picker.js +1 -1
  109. package/dist/components/timeline/context.d.ts +0 -1
  110. package/dist/components/timeline/item.js +1 -1
  111. package/dist/components/tour/tour.js +1 -1
  112. package/dist/components/tree/context.d.ts +0 -1
  113. package/dist/components/tree/hooks.d.ts +0 -1
  114. package/dist/components/tree/list.js +1 -1
  115. package/dist/components/tree/node.js +1 -1
  116. package/dist/components/upload/types.d.ts +8 -6
  117. package/dist/components/upload/upload.d.ts +1 -1
  118. package/dist/components/upload/upload.js +11 -4
  119. package/dist/components/upload/uploadeds.js +8 -3
  120. package/dist/components/waterfall/hooks.d.ts +1 -3
  121. package/dist/components/waterfall/hooks.js +2 -8
  122. package/dist/components/waterfall/sequential.js +1 -1
  123. package/dist/components/waterfall/waterfall.js +10 -6
  124. package/dist/components/watermark/types.d.ts +1 -1
  125. package/dist/components/watermark/watermark.js +1 -1
  126. package/dist/hooks/use-class-names.d.ts +15 -0
  127. package/dist/hooks/use-expand-effect.d.ts +1 -1
  128. package/dist/hooks/use-expand-effect.js +12 -8
  129. package/dist/index.d.ts +1 -0
  130. package/dist/index.js +1 -0
  131. package/dist/stylex.css +22 -7
  132. package/dist/utils/class-name.d.ts +42 -184
  133. package/dist/utils/class-name.js +39 -5
  134. package/dist/utils/styles.d.ts +1 -1
  135. package/package.json +15 -15
  136. /package/dist/node_modules/{@aiszlab → .pnpm/@aiszlab_relax@1.2.55_react-dom@18.3.1_react@18.3.1/node_modules/@aiszlab}/relax/dist/dom/contains.js +0 -0
  137. /package/dist/node_modules/{@stylexjs → .pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs}/stylex/lib/es/stylex.js +0 -0
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { useOffset } from './hooks.js';
3
3
  import { useClassNames } from '../../hooks/use-class-names.js';
4
4
  import { ComponentToken, DividerClassToken } from '../../utils/class-name.js';
5
- import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/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
8
  import { typography } from '../theme/theme.js';
@@ -3,13 +3,13 @@ import { useAnimate } from 'framer-motion';
3
3
  import { PLACEMENTS } from './hooks.js';
4
4
  import { ComponentToken, DrawerClassToken } from '../../utils/class-name.js';
5
5
  import { useClassNames } from '../../hooks/use-class-names.js';
6
- import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
6
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/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
9
  import clsx from 'clsx';
10
10
  import { typography } from '../theme/theme.js';
11
11
  import { useDismissable } from '../../hooks/use-dismissable.js';
12
- import { contains } from '../../node_modules/@aiszlab/relax/dist/dom/contains.js';
12
+ import { contains } from '../../node_modules/.pnpm/@aiszlab_relax@1.2.55_react-dom@18.3.1_react@18.3.1/node_modules/@aiszlab/relax/dist/dom/contains.js';
13
13
 
14
14
  const styles = {
15
15
  popup: {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { useClassNames } from '../../hooks/use-class-names.js';
3
3
  import { ComponentToken, EmptyClassToken } from '../../utils/class-name.js';
4
- import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
4
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
5
  import clsx from 'clsx';
6
6
  import { typography } from '../theme/theme.js';
7
7
 
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ContextValue } from "./types";
3
2
  export declare const CONTEXT_VALUE: Readonly<ContextValue>;
4
3
  declare const Context: import("react").Context<ContextValue>;
@@ -6,5 +6,5 @@ import type { RequiredIn } from "@aiszlab/relax/types";
6
6
  * form item may not has name prop
7
7
  * if there is name prop, it will render
8
8
  */
9
- declare const Field: ({ required, ...props }: RequiredIn<FormItemProps, "name" | "required">) => React.JSX.Element;
9
+ declare const Field: ({ required, children: _children, ...props }: RequiredIn<FormItemProps, "name" | "required">) => React.JSX.Element;
10
10
  export default Field;
@@ -2,7 +2,7 @@ import React, { useMemo, isValidElement, cloneElement } from 'react';
2
2
  import { useController } from 'react-hook-form';
3
3
  import { chain, isRefable } from '@aiszlab/relax';
4
4
  import { ComponentToken, FormClassToken } from '../../../utils/class-name.js';
5
- import { props } from '../../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
+ import { props } from '../../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
6
6
  import clsx from 'clsx';
7
7
  import { useTheme } from '../../theme/hooks.js';
8
8
  import { ColorToken } from '../../../utils/colors.js';
@@ -35,6 +35,7 @@ const styles = {
35
35
  */
36
36
  const Field = ({
37
37
  required,
38
+ children: _children,
38
39
  ...props$1
39
40
  }) => {
40
41
  const classNames = useClassNames(ComponentToken.Form);
@@ -61,25 +62,25 @@ const Field = ({
61
62
  }
62
63
  });
63
64
  const children = useMemo(() => {
64
- const _isValidElement = isValidElement(props$1.children);
65
- if (!_isValidElement) return props$1.children;
66
- const _child = props$1.children;
65
+ const _isValidElement = isValidElement(_children);
66
+ if (!_isValidElement) return _children;
67
+ const _child = _children;
67
68
  /// rewrite change and blur handler
68
69
  const handlers = {
69
70
  onChange: chain(_child.props.onChange, onChange),
70
71
  onBlur: chain(_child.props.onBlur, onBlur)
71
72
  };
72
73
  /// registe react hook form
73
- return cloneElement(props$1.children, {
74
+ return cloneElement(_children, {
74
75
  name,
75
76
  value,
76
77
  ...handlers,
77
78
  invalid,
78
- ...(isRefable(props$1.children) && {
79
+ ...(isRefable(_children) && {
79
80
  ref
80
81
  })
81
82
  });
82
- }, [props$1.children, name, value, invalid, ref, onChange, onBlur]);
83
+ }, [_children, name, value, invalid, ref, onChange, onBlur]);
83
84
  const styled = {
84
85
  error: props(styles.error({
85
86
  color: theme.colors[ColorToken.Error]
@@ -1,7 +1,7 @@
1
1
  import React, { useContext } from 'react';
2
2
  import Context from '../context.js';
3
3
  import { Grid } from '../../grid/index.js';
4
- import { props } from '../../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
4
+ import { props } from '../../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
5
  import { typography } from '../../theme/theme.js';
6
6
  import { useTheme } from '../../theme/hooks.js';
7
7
  import { ColorToken } from '../../../utils/colors.js';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { useClassNames } from '../../hooks/use-class-names.js';
3
3
  import { ComponentToken, GridClassToken } from '../../utils/class-name.js';
4
4
  import clsx from 'clsx';
5
- import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
6
6
 
7
7
  const styles = {
8
8
  col: props => [{
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const Grid: {
3
2
  Row: ({ align, children, gutter, justify, className, as: As, style }: import("./types").RowProps) => import("react").JSX.Element;
4
3
  Col: ({ children, className, span, as: As, style }: import("./types").ColProps) => import("react").JSX.Element;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { useClassNames } from '../../hooks/use-class-names.js';
3
3
  import { ComponentToken, GridClassToken } from '../../utils/class-name.js';
4
4
  import clsx from 'clsx';
5
- import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
6
6
  import { useGutters } from '../../hooks/use-gutters.js';
7
7
 
8
8
  const styles = {
@@ -2,7 +2,7 @@ import React, { useMemo, createElement } from 'react';
2
2
  import { isFunction } from '@aiszlab/relax';
3
3
  import { ComponentToken, IconClassToken } from '../../utils/class-name.js';
4
4
  import clsx from 'clsx';
5
- import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
6
6
  import { useClassNames } from '../../hooks/use-class-names.js';
7
7
 
8
8
  const styles = {
@@ -31,7 +31,7 @@ const Icon = ({
31
31
  const classNames = useClassNames(ComponentToken.Icon);
32
32
  const asProps = useMemo(() => {
33
33
  return {
34
- size: size === "small" ? 12 : size === "large" ? 20 : size ?? 16
34
+ size: size === "small" ? 12 : size === "large" ? 20 : size === "medium" ? 16 : size ?? 16
35
35
  };
36
36
  }, [size]);
37
37
  const children = useMemo(() => {
@@ -36,6 +36,7 @@ export { default as Cancel } from './navigation/cancel.js';
36
36
  export { default as Close } from './navigation/close.js';
37
37
  export { default as MoreHoriz } from './navigation/more-horiz.js';
38
38
  export { default as Check } from './navigation/check.js';
39
+ export { default as UnfoldMore } from './navigation/unfold-more.js';
39
40
  export { default as Bedtime } from './image/bedtime.js';
40
41
  export { default as RotateLeft } from './image/rotate-left.js';
41
42
  export { default as RotateRight } from './image/rotate-right.js';
@@ -2,4 +2,5 @@ import Cancel from "./cancel";
2
2
  import MoreHoriz from "./more-horiz";
3
3
  import Close from "./close";
4
4
  import Check from "./check";
5
- export { Cancel, Close, MoreHoriz, Check };
5
+ import UnfoldMore from "./unfold-more";
6
+ export { Cancel, Close, MoreHoriz, Check, UnfoldMore };
@@ -2,3 +2,4 @@ export { default as Cancel } from './cancel.js';
2
2
  export { default as MoreHoriz } from './more-horiz.js';
3
3
  export { default as Close } from './close.js';
4
4
  export { default as Check } from './check.js';
5
+ export { default as UnfoldMore } from './unfold-more.js';
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const UnfoldMore: (props: Omit<import("../..").IconProps, "as">) => React.FunctionComponentElement<import("../..").IconProps>;
3
+ export default UnfoldMore;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { withIcon } from '../../hoc.js';
3
+
4
+ const UnfoldMore = withIcon(({ size }) => {
5
+ return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: "none" },
6
+ React.createElement("path", { d: "M12 5.83L15.17 9L16.58 7.59L12 3L7.41003 7.59L8.83003 9L12 5.83ZM12 18.17L8.83003 15L7.42003 16.41L12 21L16.59 16.41L15.17 15L12 18.17Z", fill: "currentColor" })));
7
+ });
8
+ var UnfoldMore$1 = UnfoldMore;
9
+
10
+ export { UnfoldMore$1 as default };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Image: (({ src, alt, width, height }: import("./types").ImageProps) => import("react").JSX.Element) & {
3
2
  Group: ({ children, items }: import("./types").PreviewGroupProps) => import("react").JSX.Element;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { PreviewGroupContextValue } from "../types";
3
2
  declare const PreviewGroupContext: import("react").Context<PreviewGroupContextValue | null>;
4
3
  export default PreviewGroupContext;
@@ -1,5 +1,5 @@
1
1
  import React, { useContext } from 'react';
2
- import _stylex from '../../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
2
+ import _stylex from '../../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
3
3
  import Portal from '../../portal/portal.js';
4
4
  import { useTheme } from '../../theme/hooks.js';
5
5
  import { ColorToken } from '../../../utils/colors.js';
@@ -1,7 +1,7 @@
1
1
  import React, { forwardRef, useState, useImperativeHandle } from 'react';
2
2
  import Dialog from '../../dialog/dialog.js';
3
3
  import Operations from './operations.js';
4
- import _stylex from '../../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
4
+ import _stylex from '../../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
5
 
6
6
  const styles = {
7
7
  image: props => [{
@@ -3,33 +3,33 @@ import type { InputProps, InputRef } from "./types";
3
3
  export declare const styles: Readonly<{
4
4
  readonly wrapper: (props: {
5
5
  outlineColor: CSSProperties["borderColor"];
6
- }) => readonly [Readonly<{
7
- display: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"display", "flex">;
8
- alignItems: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"alignItems", "center">;
9
- cursor: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"cursor", "text">;
10
- minHeight: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"minHeight", string>;
11
- minWidth: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"minWidth", string>;
12
- borderRadius: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"borderRadius", string>;
13
- boxShadow: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"boxShadow", string>;
14
- margin: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"margin", string>;
15
- paddingBlock: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"paddingBlock", string>;
16
- paddingInline: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"paddingInline", string>;
17
- transition: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"transition", string>;
18
- willChange: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"willChange", string>;
19
- }>, typeof import("@stylexjs/stylex/lib/StyleXTypes").StyleXInlineStylesTag];
6
+ }) => Readonly<[import("@stylexjs/stylex/lib/StyleXTypes").MapNamespace<{
7
+ display: "flex";
8
+ alignItems: "center";
9
+ cursor: "text";
10
+ minHeight: import("@stylexjs/stylex/lib/StyleXTypes").StyleXVar<string>;
11
+ minWidth: import("@stylexjs/stylex/lib/StyleXTypes").StyleXVar<string>;
12
+ borderRadius: import("@stylexjs/stylex/lib/StyleXTypes").StyleXVar<string>;
13
+ boxShadow: string;
14
+ margin: import("@stylexjs/stylex/lib/StyleXTypes").StyleXVar<string>;
15
+ paddingBlock: import("@stylexjs/stylex/lib/StyleXTypes").StyleXVar<string>;
16
+ paddingInline: import("@stylexjs/stylex/lib/StyleXTypes").StyleXVar<string>;
17
+ transition: string;
18
+ willChange: string;
19
+ }>, import("@stylexjs/stylex/lib/StyleXTypes").InlineStyles]>;
20
20
  readonly flexible: Readonly<{
21
21
  readonly minWidth: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"minWidth", null>;
22
22
  }>;
23
23
  readonly focused: (props: {
24
24
  outlineColor: CSSProperties["borderColor"];
25
- }) => readonly [Readonly<{
26
- boxShadow: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"boxShadow", string>;
27
- }>, typeof import("@stylexjs/stylex/lib/StyleXTypes").StyleXInlineStylesTag];
25
+ }) => Readonly<[import("@stylexjs/stylex/lib/StyleXTypes").MapNamespace<{
26
+ boxShadow: string;
27
+ }>, import("@stylexjs/stylex/lib/StyleXTypes").InlineStyles]>;
28
28
  readonly invalid: (props: {
29
29
  outlineColor: CSSProperties["borderColor"];
30
- }) => readonly [Readonly<{
31
- borderColor: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"borderColor", import("csstype").Property.BorderColor | undefined>;
32
- }>, typeof import("@stylexjs/stylex/lib/StyleXTypes").StyleXInlineStylesTag];
30
+ }) => Readonly<[import("@stylexjs/stylex/lib/StyleXTypes").MapNamespace<{
31
+ boxShadow: string;
32
+ }>, import("@stylexjs/stylex/lib/StyleXTypes").InlineStyles]>;
33
33
  readonly input: Readonly<{
34
34
  readonly backgroundColor: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"backgroundColor", "transparent">;
35
35
  readonly outline: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"outline", string>;
@@ -2,7 +2,7 @@ import React, { forwardRef, useRef, useImperativeHandle } from 'react';
2
2
  import { useInputEvents, useWrapperEvents } from './hooks.js';
3
3
  import { useControlledState, useFocus } from '@aiszlab/relax';
4
4
  import { ComponentToken, InputClassToken } from '../../utils/class-name.js';
5
- import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
6
6
  import { sizes } from '../theme/tokens.stylex.js';
7
7
  import { useTheme } from '../theme/hooks.js';
8
8
  import { ColorToken } from '../../utils/colors.js';
@@ -66,18 +66,10 @@ const styles = {
66
66
  "--boxShadow": `inset 0px 0px 0px ${sizes.xxxxxxsmall} ${props.outlineColor}` != null ? `inset 0px 0px 0px ${sizes.xxxxxxsmall} ${props.outlineColor}` : "initial"
67
67
  }],
68
68
  invalid: props => [{
69
- borderColor: "musae-eqt46j",
70
- borderInlineColor: null,
71
- borderInlineStartColor: null,
72
- borderLeftColor: null,
73
- borderInlineEndColor: null,
74
- borderRightColor: null,
75
- borderBlockColor: null,
76
- borderTopColor: null,
77
- borderBottomColor: null,
69
+ boxShadow: "musae-igitpm",
78
70
  $$css: true
79
71
  }, {
80
- "--borderColor": props.outlineColor != null ? props.outlineColor : "initial"
72
+ "--boxShadow": `inset 0px 0px 0px ${sizes.xxxxxxsmall} ${props.outlineColor}` != null ? `inset 0px 0px 0px ${sizes.xxxxxxsmall} ${props.outlineColor}` : "initial"
81
73
  }],
82
74
  input: {
83
75
  backgroundColor: "musae-jbqb8w",
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { useTheme } from '../theme/hooks.js';
3
- import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
3
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
4
4
  import { ColorToken } from '../../utils/colors.js';
5
5
  import clsx from 'clsx';
6
6
 
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Grid } from '../grid/index.js';
3
3
  import { useChildren, ChildToken } from './hooks.js';
4
- import _stylex from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
4
+ import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
5
  import { useTheme } from '../theme/hooks.js';
6
6
  import { ColorToken } from '../../utils/colors.js';
7
7
  import clsx from 'clsx';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MainProps } from "./types";
3
2
  declare const Main: ({ children }: MainProps) => import("react").ReactNode;
4
3
  export default Main;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import type { LoadingProps } from "./types";
3
- declare const Loading: ({ size }: LoadingProps) => React.JSX.Element;
3
+ declare const Loading: ({ size, overlay, children }: LoadingProps) => React.JSX.Element;
4
4
  export default Loading;
@@ -1,5 +1,10 @@
1
1
  import React from 'react';
2
- import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
2
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
3
+ import { useClassNames } from '../../hooks/use-class-names.js';
4
+ import { ComponentToken, LoadingClassToken } from '../../utils/class-name.js';
5
+ import clsx from 'clsx';
6
+ import { useTheme } from '../theme/hooks.js';
7
+ import { ColorToken } from '../../utils/colors.js';
3
8
 
4
9
  const styles = {
5
10
  circle: {
@@ -44,11 +49,55 @@ const styles = {
44
49
  width: "musae-1ha45ep",
45
50
  height: "musae-b4kbli",
46
51
  $$css: true
52
+ },
53
+ loading: {
54
+ position: "musae-1n2onr6",
55
+ minWidth: "musae-h2iun8",
56
+ minHeight: "musae-oexrxm",
57
+ $$css: true
58
+ },
59
+ content: props => [{
60
+ opacity: "musae-byyjgo",
61
+ userSelect: "musae-87ps6o",
62
+ pointerEvents: "musae-47corl",
63
+ transitionProperty: "musae-19991ni",
64
+ transitionDuration: "musae-1d8287x",
65
+ zIndex: "musae-1ja2u2z",
66
+ "::after_content": "musae-1s928wv",
67
+ "::after_display": "musae-hkezso",
68
+ "::after_position": "musae-1j6awrg",
69
+ "::after_inset": "musae-1799ia1",
70
+ "::after_insetInline": null,
71
+ "::after_insetInlineStart": null,
72
+ "::after_insetInlineEnd": null,
73
+ "::after_left": null,
74
+ "::after_right": null,
75
+ "::after_insetBlock": null,
76
+ "::after_top": null,
77
+ "::after_bottom": null,
78
+ "::after_backgroundColor": "musae-27d4w3",
79
+ $$css: true
80
+ }, {
81
+ "--15iyedw": props.backgroundColor != null ? props.backgroundColor : "initial"
82
+ }],
83
+ spin: {
84
+ position: "musae-10l6tqk",
85
+ top: "musae-wa60dl",
86
+ insetInlineStart: "musae-budbmw",
87
+ left: null,
88
+ right: null,
89
+ transform: "musae-11lhmoz",
90
+ zIndex: "musae-1vjfegm",
91
+ $$css: true
47
92
  }
48
93
  };
49
94
  const Loading = ({
50
- size = "medium"
95
+ size = "medium",
96
+ overlay = true,
97
+ children
51
98
  }) => {
99
+ const classNames = useClassNames(ComponentToken.Loading);
100
+ const theme = useTheme();
52
101
  const circles = {
53
102
  top: {
54
103
  ...{
@@ -83,15 +132,31 @@ const Loading = ({
83
132
  r: "70"
84
133
  }
85
134
  };
86
- return React.createElement("svg", {
135
+ const styled = {
136
+ loading: {
137
+ className: "musae-1n2onr6 musae-h2iun8 musae-oexrxm"
138
+ },
139
+ spin: props(styles.spin, styles[size]),
140
+ content: props(overlay && styles.content({
141
+ backgroundColor: theme.colors[ColorToken.SurfaceDim]
142
+ }))
143
+ };
144
+ return React.createElement("div", {
145
+ className: clsx(classNames[LoadingClassToken.Loading], styled.loading.className),
146
+ style: styled.loading.style
147
+ }, React.createElement("svg", {
87
148
  viewBox: "0 0 240 240",
88
- ...props(styles[size])
149
+ className: clsx(classNames[LoadingClassToken.Spin], styled.spin.className),
150
+ style: styled.spin.style
89
151
  }, Array.from(Object.entries(circles)).map(([key, props]) => {
90
152
  return React.createElement("circle", {
91
153
  ...props,
92
154
  key: key
93
155
  });
94
- }));
156
+ })), React.createElement("div", {
157
+ className: (classNames[LoadingClassToken.Content], styled.content.className),
158
+ style: styled.content.style
159
+ }, children));
95
160
  };
96
161
  var Loading$1 = Loading;
97
162
 
@@ -1,3 +1,4 @@
1
+ import { type ReactNode } from "react";
1
2
  type Size = "small" | "medium" | "large";
2
3
  /**
3
4
  * @author murukal
@@ -12,5 +13,17 @@ export interface LoadingProps {
12
13
  * @default "medium"
13
14
  */
14
15
  size?: Size;
16
+ /**
17
+ * @description
18
+ * overlay shown
19
+ * @default true
20
+ */
21
+ overlay?: boolean;
22
+ /**
23
+ * @description
24
+ * children
25
+ * @default void 0
26
+ */
27
+ children?: ReactNode;
15
28
  }
16
29
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type ContextValue } from "./types";
3
2
  /**
4
3
  * @author murukal
@@ -7,8 +7,8 @@ import React from "react";
7
7
  */
8
8
  declare const Group: React.ForwardRefExoticComponent<import("../../types/element").ComponentProps & {
9
9
  items: import("./types").MenuItem[];
10
- level?: number | undefined;
11
- expanded?: boolean | undefined;
10
+ level?: number;
11
+ expanded?: boolean;
12
12
  mode: import("./types").Mode;
13
13
  } & React.RefAttributes<HTMLUListElement>>;
14
14
  export default Group;
@@ -6,7 +6,7 @@ import clsx from 'clsx';
6
6
  import Item from './item.js';
7
7
  import { useMenuContext } from './hooks.js';
8
8
  import { useRefs } from '@aiszlab/relax';
9
- import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
9
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
10
10
  import { useExpandEffect } from '../../hooks/use-expand-effect.js';
11
11
  import { useTheme } from '../theme/hooks.js';
12
12
  import { ColorToken } from '../../utils/colors.js';
@@ -1,7 +1,7 @@
1
1
  import React, { useMemo, useCallback, useContext } from 'react';
2
2
  import Context from './context.js';
3
3
  import { useControlledState } from '@aiszlab/relax';
4
- import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
4
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
5
  import KeyboardArrowUp from '../icon/icons/hardware/keyboard-arrow-up.js';
6
6
 
7
7
  const styles = {
@@ -10,7 +10,7 @@ declare const Item: React.ForwardRefExoticComponent<Omit<import("./types").MenuI
10
10
  } & import("../../types/element").ComponentProps & {
11
11
  value: React.Key;
12
12
  suffix?: React.ReactNode;
13
- onClick?: ((key: React.Key) => void | Promise<void>) | undefined;
13
+ onClick?: import("./types").ContextValue["click"];
14
14
  children?: React.ReactNode;
15
15
  mode: import("./types").Mode;
16
16
  } & React.RefAttributes<HTMLLIElement>>;
@@ -2,7 +2,7 @@ import React, { forwardRef, useRef } from 'react';
2
2
  import { useMenuContext, useItemChildren } from './hooks.js';
3
3
  import { useClassNames } from '../../hooks/use-class-names.js';
4
4
  import { ComponentToken, MenuClassToken } from '../../utils/class-name.js';
5
- import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
6
6
  import { sizes, spacing } from '../theme/tokens.stylex.js';
7
7
  import { useTheme } from '../theme/hooks.js';
8
8
  import { ColorToken } from '../../utils/colors.js';
@@ -2,7 +2,7 @@ import React, { forwardRef, useState, useImperativeHandle } from 'react';
2
2
  import Portal from '../portal/portal.js';
3
3
  import { AnimatePresence } from 'framer-motion';
4
4
  import Notification from './notification.js';
5
- import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
6
6
  import { useEvent } from '@aiszlab/relax';
7
7
 
8
8
  const styles = {
@@ -1,4 +1,4 @@
1
- import _stylex from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
1
+ import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
2
2
  import React, { useEffect, createElement } from 'react';
3
3
  import { usePresence, useAnimate } from 'framer-motion';
4
4
  import { useTheme } from '../theme/hooks.js';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type PaginationItems } from "./types";
3
2
  /**
4
3
  * @author murukal
@@ -13,8 +12,8 @@ export declare const usePagiantion: ({ total, siblings, boundaries, ...props }:
13
12
  pageSize: number;
14
13
  }) => {
15
14
  paginationItems: PaginationItems;
16
- add: (step?: number | undefined) => void;
17
- subtract: (step?: number | undefined) => void;
15
+ add: (step?: number) => void;
16
+ subtract: (step?: number) => void;
18
17
  changePage: import("react").Dispatch<import("react").SetStateAction<number>>;
19
18
  page: number;
20
19
  hasPrev: boolean;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ContextValue } from "./types";
3
2
  export declare const Context: import("react").Context<ContextValue>;
@@ -4,7 +4,7 @@ import { useBoolean, chain, useFocus } from '@aiszlab/relax';
4
4
  import { useEvents } from './hooks.js';
5
5
  import { ComponentToken, PickerClassToken } from '../../utils/class-name.js';
6
6
  import { useClassNames } from '../../hooks/use-class-names.js';
7
- import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
7
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
8
8
  import { useTheme } from '../theme/hooks.js';
9
9
  import { ColorToken } from '../../utils/colors.js';
10
10
  import clsx from 'clsx';
@@ -1,7 +1,7 @@
1
1
  import { useBoolean, toArray, useRefs, useEvent, useHover, chain, useFocus } from '@aiszlab/relax';
2
2
  import React, { useRef, useMemo, cloneElement } from 'react';
3
3
  import Popper from '../popper/popper.js';
4
- import _stylex from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
4
+ import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
5
  import { typography } from '../theme/theme.js';
6
6
  import { useClassNames } from '../../hooks/use-class-names.js';
7
7
  import { ComponentToken, PopoverClassToken } from '../../utils/class-name.js';
@@ -1,7 +1,7 @@
1
1
  import React, { useRef, useMemo, useEffect } from 'react';
2
2
  import { ComponentToken, PopperClassToken } from '../../utils/class-name.js';
3
3
  import { useClassNames } from '../../hooks/use-class-names.js';
4
- import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
4
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
5
  import clsx from 'clsx';
6
6
  import { isFunction } from '@aiszlab/relax';
7
7
  import { autoUpdate, computePosition, flip, offset, arrow } from '@floating-ui/dom';
@@ -7,7 +7,7 @@ export declare const useOffsets: ({ offset, arrowable }: {
7
7
  offset: PopperProps["offset"];
8
8
  arrowable: boolean;
9
9
  }) => {
10
- mainAxis?: number | undefined;
11
- crossAxis?: number | undefined;
12
- alignmentAxis?: number | null | undefined;
10
+ mainAxis?: number;
11
+ crossAxis?: number;
12
+ alignmentAxis?: number | null;
13
13
  };