musae 0.2.3 → 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 (104) 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 +1 -1
  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.js +1 -1
  17. package/dist/components/collapse/context.d.ts +0 -1
  18. package/dist/components/collapse/item.js +1 -1
  19. package/dist/components/config/context.d.ts +0 -1
  20. package/dist/components/date-picker/date-picker.js +1 -1
  21. package/dist/components/date-picker/hooks.d.ts +1 -5
  22. package/dist/components/date-range-picker/hooks.d.ts +1 -5
  23. package/dist/components/dialog/hooks.d.ts +1 -5
  24. package/dist/components/dialog/popup.js +2 -2
  25. package/dist/components/divider/divider.js +1 -1
  26. package/dist/components/drawer/popup.js +2 -2
  27. package/dist/components/empty/empty.js +1 -1
  28. package/dist/components/form/context.d.ts +0 -1
  29. package/dist/components/form/field/field.d.ts +1 -1
  30. package/dist/components/form/field/field.js +8 -7
  31. package/dist/components/form/field/layout.js +1 -1
  32. package/dist/components/grid/col.js +1 -1
  33. package/dist/components/grid/index.d.ts +0 -1
  34. package/dist/components/grid/row.js +1 -1
  35. package/dist/components/icon/icon.js +1 -1
  36. package/dist/components/image/index.d.ts +0 -1
  37. package/dist/components/image/preview/context.d.ts +0 -1
  38. package/dist/components/image/preview/operations.js +1 -1
  39. package/dist/components/image/preview/preview.js +1 -1
  40. package/dist/components/input/input.d.ts +20 -20
  41. package/dist/components/input/input.js +3 -11
  42. package/dist/components/layout/header.js +1 -1
  43. package/dist/components/layout/layout.js +1 -1
  44. package/dist/components/layout/main.d.ts +0 -1
  45. package/dist/components/loading/loading.js +1 -1
  46. package/dist/components/menu/context.d.ts +0 -1
  47. package/dist/components/menu/group.d.ts +2 -2
  48. package/dist/components/menu/group.js +1 -1
  49. package/dist/components/menu/hooks.js +1 -1
  50. package/dist/components/menu/item.d.ts +1 -1
  51. package/dist/components/menu/item.js +1 -1
  52. package/dist/components/notification/holder.js +1 -1
  53. package/dist/components/notification/notification.js +1 -1
  54. package/dist/components/pagination/hooks.d.ts +2 -3
  55. package/dist/components/picker/context.d.ts +0 -1
  56. package/dist/components/picker/picker.js +1 -1
  57. package/dist/components/popover/popover.js +1 -1
  58. package/dist/components/popper/dropdown.js +1 -1
  59. package/dist/components/popper/hooks.d.ts +3 -3
  60. package/dist/components/progress/circular.js +1 -1
  61. package/dist/components/progress/hooks.d.ts +0 -1
  62. package/dist/components/progress/linear.js +1 -1
  63. package/dist/components/radio/context.d.ts +0 -1
  64. package/dist/components/radio/radio.js +22 -13
  65. package/dist/components/rate/rate.js +1 -1
  66. package/dist/components/rate/star.js +1 -1
  67. package/dist/components/ripple/ripple.js +1 -1
  68. package/dist/components/select/selector.js +1 -1
  69. package/dist/components/select/utils.d.ts +0 -1
  70. package/dist/components/space/space.js +1 -1
  71. package/dist/components/steps/context.d.ts +0 -1
  72. package/dist/components/steps/item.js +1 -1
  73. package/dist/components/steps/steps.js +1 -1
  74. package/dist/components/switch/switch.js +1 -1
  75. package/dist/components/table/body.js +1 -1
  76. package/dist/components/table/context.d.ts +0 -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/context.d.ts +0 -1
  80. package/dist/components/tabs/item.js +3 -1
  81. package/dist/components/tabs/tabs.js +1 -1
  82. package/dist/components/tag/tag.js +1 -1
  83. package/dist/components/theme/hooks.d.ts +1 -2
  84. package/dist/components/time-picker/panel.js +1 -1
  85. package/dist/components/time-picker/time-picker.js +1 -1
  86. package/dist/components/timeline/context.d.ts +0 -1
  87. package/dist/components/timeline/item.js +1 -1
  88. package/dist/components/tour/tour.js +1 -1
  89. package/dist/components/tree/context.d.ts +0 -1
  90. package/dist/components/tree/hooks.d.ts +0 -1
  91. package/dist/components/tree/list.js +1 -1
  92. package/dist/components/tree/node.js +1 -1
  93. package/dist/components/upload/types.d.ts +8 -6
  94. package/dist/components/upload/upload.d.ts +1 -1
  95. package/dist/components/upload/upload.js +11 -4
  96. package/dist/components/upload/uploadeds.js +8 -3
  97. package/dist/components/waterfall/hooks.d.ts +0 -1
  98. package/dist/components/waterfall/sequential.js +1 -1
  99. package/dist/components/waterfall/waterfall.js +1 -1
  100. package/dist/stylex.css +5 -4
  101. package/dist/utils/class-name.d.ts +1 -205
  102. package/package.json +12 -12
  103. /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
  104. /package/dist/node_modules/{@stylexjs → .pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs}/stylex/lib/es/stylex.js +0 -0
package/README.md CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  ```bash
15
15
  npm install musae
16
- ## yarn add musae
16
+ ## pnpm i musae
17
17
  ```
18
18
 
19
19
  ## 🔨 Usage
@@ -1,5 +1,5 @@
1
1
  import React, { forwardRef, useContext } 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
3
  import { Context } from './context.js';
4
4
  import { useTheme } from '../theme/hooks.js';
5
5
  import { ColorToken } from '../../utils/colors.js';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type ContextValue } from "./types";
3
2
  /**
4
3
  * @description
@@ -1,5 +1,5 @@
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
3
  import { typography } from '../theme/theme.js';
4
4
  import { useTheme } from '../theme/hooks.js';
5
5
  import { ColorToken } from '../../utils/colors.js';
@@ -1,5 +1,5 @@
1
1
  import React 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 { useTheme } from '../theme/hooks.js';
4
4
  import { ColorToken } from '../../utils/colors.js';
5
5
  import { useClassNames } from '../../hooks/use-class-names.js';
@@ -1,7 +1,7 @@
1
1
  import React, { forwardRef } from 'react';
2
2
  import { ComponentToken, ButtonClassToken } from '../../utils/class-name.js';
3
3
  import clsx from 'clsx';
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 { useTheme } from '../theme/hooks.js';
6
6
  import { useButton } from './hooks.js';
7
7
  import Ripple from '../ripple/ripple.js';
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const Context: import("react").Context<{}>;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { useValue, useFocusedAt, useDateCells, useHeadCells } from './hooks.js';
3
3
  import { useClassNames } from '../../hooks/use-class-names.js';
4
4
  import { ComponentToken, CalendarClassToken } 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 { typography } from '../theme/theme.js';
7
7
  import clsx from 'clsx';
8
8
  import Button from '../button/button.js';
@@ -5,7 +5,7 @@ import { ComponentToken, CalendarClassToken } from '../../utils/class-name.js';
5
5
  import { toArray, useControlledState } from '@aiszlab/relax';
6
6
  import { Timespan } from '../../utils/timespan.js';
7
7
  import clsx from 'clsx';
8
- import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
8
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.6.1/node_modules/@stylexjs/stylex/lib/es/stylex.js';
9
9
  import { typography } from '../theme/theme.js';
10
10
  import { useTheme } from '../theme/hooks.js';
11
11
  import { ColorToken } from '../../utils/colors.js';
@@ -6,14 +6,7 @@ import type { Option } from "../../types/option";
6
6
  * @description
7
7
  * cascader value
8
8
  */
9
- export declare const useValue: ([valueInProps, readableOptions, readablePaths, mode, close, setAdditionalMenusItems]: [
10
- CascaderProps["value"],
11
- ReadableOptions,
12
- ReadablePaths,
13
- CascaderProps["mode"],
14
- close: VoidFunction,
15
- Dispatch<SetStateAction<MenuItem[][]>>
16
- ]) => {
9
+ export declare const useValue: ([valueInProps, readableOptions, readablePaths, mode, close, setAdditionalMenusItems]: [CascaderProps["value"], ReadableOptions, ReadablePaths, CascaderProps["mode"], close: VoidFunction, Dispatch<SetStateAction<MenuItem[][]>>]) => {
17
10
  values: Map<number, Required<Pick<Option, "value" | "label">>[]>;
18
11
  onChange: (id: number) => void;
19
12
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { KeyOrOption, Optionable, ReadBy, ReadableOption, ReadableOptions, ReadablePaths, Value, ValueOrValues } from "./types";
3
2
  import type { MenuItem } from "../menu";
4
3
  /**
@@ -4,7 +4,7 @@ import Context from './context.js';
4
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
- 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 { typography } from '../theme/theme.js';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ContextValue } from "./types";
3
2
  declare const Context: import("react").Context<ContextValue | null>;
4
3
  export default Context;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const Checkbox: (({ value, className, style, children, ...props }: import("./types").CheckboxProps) => import("react").JSX.Element) & {
3
2
  Group: (props: import("./types").CheckboxGroupProps) => import("react").JSX.Element;
4
3
  };
@@ -4,7 +4,7 @@ import Menu from '../menu/menu.js';
4
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
- 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';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { useClassNames } from '../../hooks/use-class-names.js';
3
3
  import { ComponentToken, CollapseClassToken } from '../../utils/class-name.js';
4
4
  import CollapseItem from './item.js';
5
- import _stylex from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
5
+ import _stylex 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 { useActiveKeys } from './hooks.js';
8
8
  import { Context } from './context.js';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ContextValue } from "./types";
3
2
  /**
4
3
  * @description
@@ -1,7 +1,7 @@
1
1
  import React, { useContext } from 'react';
2
2
  import { useClassNames } from '../../hooks/use-class-names.js';
3
3
  import { ComponentToken, CollapseClassToken } from '../../utils/class-name.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 { useEvent } from '@aiszlab/relax';
6
6
  import { useAnimate } from 'framer-motion';
7
7
  import clsx from 'clsx';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ContextValue } from "./types";
3
2
  declare const Context: import("react").Context<ContextValue>;
4
3
  export default Context;
@@ -4,7 +4,7 @@ import Calendar from '../calendar/calendar.js';
4
4
  import { useValue } from './hooks.js';
5
5
  import { useClassNames } from '../../hooks/use-class-names.js';
6
6
  import { ComponentToken, DatePickerClassToken } from '../../utils/class-name.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 clsx from 'clsx';
9
9
  import { styles } from '../input/input.js';
10
10
 
@@ -5,11 +5,7 @@ import { PickerRef } from "../picker";
5
5
  * @description
6
6
  * value
7
7
  */
8
- export declare const useValue: ([_value, _change, _ref]: [
9
- DatePickerProps["value"],
10
- DatePickerProps["onChange"],
11
- RefObject<PickerRef>
12
- ]) => {
8
+ export declare const useValue: ([_value, _change, _ref]: [DatePickerProps["value"], DatePickerProps["onChange"], RefObject<PickerRef>]) => {
13
9
  value: import("dayjs").Dayjs | undefined;
14
10
  onChange: (value: import("dayjs").Dayjs) => void;
15
11
  };
@@ -7,11 +7,7 @@ import { PickerRef } from "../picker";
7
7
  * @description
8
8
  * value
9
9
  */
10
- export declare const useValue: ([_value, _change, ref]: [
11
- DateRangePickerProps["value"],
12
- DateRangePickerProps["onChange"],
13
- RefObject<PickerRef>
14
- ]) => {
10
+ export declare const useValue: ([_value, _change, ref]: [DateRangePickerProps["value"], DateRangePickerProps["onChange"], RefObject<PickerRef>]) => {
15
11
  value: [Partialable<Dayjs>, Partialable<Dayjs>];
16
12
  onChange: (_value: Dayjs) => void;
17
13
  };
@@ -4,8 +4,4 @@ import type { PopupProps } from "./types";
4
4
  * @description
5
5
  * footer
6
6
  */
7
- export declare const useFooter: ([footer, onConfirm, onClose]: [
8
- footer: PopupProps["footer"],
9
- onConfirm: PopupProps["onConfirm"],
10
- onClose: PopupProps["onClose"]
11
- ]) => string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element;
7
+ export declare const useFooter: ([footer, onConfirm, onClose]: [footer: PopupProps["footer"], onConfirm: PopupProps["onConfirm"], onClose: PopupProps["onClose"]]) => string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element;
@@ -3,13 +3,13 @@ import { useFooter } from './hooks.js';
3
3
  import { useAnimate } from 'framer-motion';
4
4
  import { ComponentToken, DialogClassToken } 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 { typography } from '../theme/theme.js';
10
10
  import clsx from 'clsx';
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
  header: {
@@ -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 = {
@@ -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,5 +1,5 @@
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
3
  import { useClassNames } from '../../hooks/use-class-names.js';
4
4
  import { ComponentToken, LoadingClassToken } from '../../utils/class-name.js';
5
5
  import clsx from 'clsx';
@@ -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';