musae 0.2.5 → 0.2.6
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.
- package/README.md +4 -2
- package/dist/components/avatar/avatar.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/components/breadcrumb/item.js +1 -1
- package/dist/components/button/button.js +2 -1
- package/dist/components/calendar/calendar.js +1 -1
- package/dist/components/calendar/hooks.js +5 -5
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/checkbox.js +6 -4
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/types.d.ts +9 -3
- package/dist/components/clock/column.js +1 -1
- package/dist/components/collapse/collapse.js +1 -1
- package/dist/components/collapse/item.js +2 -2
- package/dist/components/date-picker/date-picker.js +1 -1
- package/dist/components/dialog/popup.js +5 -5
- package/dist/components/divider/divider.js +1 -1
- package/dist/components/drawer/popup.js +17 -17
- package/dist/components/empty/empty.js +1 -1
- package/dist/components/form/field/field.js +1 -1
- package/dist/components/form/field/layout.js +1 -1
- package/dist/components/grid/col.js +1 -1
- package/dist/components/grid/row.js +1 -1
- package/dist/components/icon/icon.js +1 -1
- package/dist/components/image/image.js +3 -2
- package/dist/components/image/preview/operations.js +4 -4
- package/dist/components/image/preview/preview.js +1 -1
- package/dist/components/input/input.js +1 -1
- package/dist/components/layout/header.js +2 -2
- package/dist/components/layout/layout.js +1 -1
- package/dist/components/loading/loading.js +2 -2
- package/dist/components/menu/group.js +16 -2
- package/dist/components/menu/hooks.js +1 -1
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/menu.js +3 -1
- package/dist/components/notification/holder.js +13 -13
- package/dist/components/notification/notification.js +3 -3
- package/dist/components/picker/picker.js +1 -1
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/popper/dropdown.js +3 -3
- package/dist/components/progress/circular.js +1 -1
- package/dist/components/progress/linear.js +1 -1
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/rate/rate.js +1 -1
- package/dist/components/rate/star.js +3 -3
- package/dist/components/ripple/ripple.js +1 -1
- package/dist/components/select/selector.js +1 -1
- package/dist/components/space/space.js +1 -1
- package/dist/components/steps/item.js +48 -2
- package/dist/components/steps/steps.js +1 -1
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/switch/switch.js +22 -22
- package/dist/components/table/body.js +1 -1
- package/dist/components/table/header/cell.js +3 -3
- package/dist/components/table/header/header.js +2 -2
- package/dist/components/tabs/hooks.d.ts +40 -0
- package/dist/components/tabs/hooks.js +98 -0
- package/dist/components/tabs/navigation.d.ts +4 -0
- package/dist/components/tabs/navigation.js +159 -0
- package/dist/components/tabs/panels.d.ts +4 -0
- package/dist/components/tabs/panels.js +78 -0
- package/dist/components/tabs/tab.d.ts +4 -0
- package/dist/components/tabs/tab.js +19 -0
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.js +24 -94
- package/dist/components/tabs/types.d.ts +50 -9
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/theme/hooks.js +3 -3
- package/dist/components/time-picker/panel.js +1 -1
- package/dist/components/time-picker/time-picker.js +1 -1
- package/dist/components/timeline/item.d.ts +1 -1
- package/dist/components/timeline/item.js +87 -115
- package/dist/components/timeline/timeline.js +5 -3
- package/dist/components/timeline/types.d.ts +6 -0
- package/dist/components/tour/tour.js +2 -2
- package/dist/components/tree/context.js +2 -0
- package/dist/components/tree/hooks.d.ts +13 -2
- package/dist/components/tree/hooks.js +19 -2
- package/dist/components/tree/list.js +3 -3
- package/dist/components/tree/node.d.ts +1 -1
- package/dist/components/tree/node.js +24 -14
- package/dist/components/tree/tree.d.ts +1 -1
- package/dist/components/tree/tree.js +13 -9
- package/dist/components/tree/types.d.ts +18 -23
- package/dist/components/waterfall/sequential.js +4 -1
- package/dist/components/waterfall/waterfall.js +6 -3
- package/dist/hooks/use-class-names.d.ts +10 -0
- package/dist/stylex.css +41 -25
- package/dist/utils/class-name.d.ts +38 -7
- package/dist/utils/class-name.js +30 -8
- package/package.json +10 -8
- package/dist/components/tabs/item.d.ts +0 -4
- package/dist/components/tabs/item.js +0 -22
- /package/dist/node_modules/.pnpm/{@aiszlab_relax@1.2.55_react-dom@18.3.1_react@18.3.1 → @aiszlab_relax@1.2.56_react-dom@18.3.1_react@18.3.1}/node_modules/@aiszlab/relax/dist/dom/contains.js +0 -0
- /package/dist/node_modules/.pnpm/{@stylexjs_stylex@0.6.1 → @stylexjs_stylex@0.7.4}/node_modules/@stylexjs/stylex/lib/es/stylex.js +0 -0
package/README.md
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
- 📦 A set of high-quality React components out of the box.
|
|
7
7
|
- 🛡 Written in TypeScript with predictable static types.
|
|
8
8
|
- ⚙️ Whole package of design resources and development tools.
|
|
9
|
-
- 🌍 Internationalization support for dozens of languages.
|
|
10
9
|
- 🎨 Powerful theme customization based on CSS-in-JS.
|
|
11
10
|
|
|
12
11
|
## 📦 Install
|
|
13
12
|
|
|
14
13
|
```bash
|
|
15
14
|
npm install musae
|
|
16
|
-
## pnpm
|
|
15
|
+
## pnpm add musae
|
|
16
|
+
## yarn add musae
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## 🔨 Usage
|
|
@@ -23,4 +23,6 @@ import React from "react";
|
|
|
23
23
|
import { Button } from "musae";
|
|
24
24
|
|
|
25
25
|
const App = () => <Button>PRESS ME</Button>;
|
|
26
|
+
|
|
27
|
+
export default App;
|
|
26
28
|
```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { forwardRef, useContext } from 'react';
|
|
2
|
-
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
2
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
2
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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/.pnpm/@stylexjs_stylex@0.
|
|
2
|
+
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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/.pnpm/@stylexjs_stylex@0.
|
|
4
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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';
|
|
@@ -25,6 +25,7 @@ const styles = {
|
|
|
25
25
|
transitionProperty: "musae-fagghw",
|
|
26
26
|
transitionDuration: "musae-1d8287x",
|
|
27
27
|
willChange: "musae-19v51jg",
|
|
28
|
+
flexShrink: "musae-2lah0s",
|
|
28
29
|
$$css: true
|
|
29
30
|
},
|
|
30
31
|
small: {
|
|
@@ -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/.pnpm/@stylexjs_stylex@0.
|
|
5
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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/.pnpm/@stylexjs_stylex@0.
|
|
8
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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';
|
|
@@ -41,21 +41,21 @@ const styles = {
|
|
|
41
41
|
$$css: true
|
|
42
42
|
},
|
|
43
43
|
range: {
|
|
44
|
-
"::before_insetInlineStart": "musae-
|
|
44
|
+
"::before_insetInlineStart": "musae-1682cnc",
|
|
45
45
|
"::before_left": null,
|
|
46
46
|
"::before_right": null,
|
|
47
|
-
"::before_insetInlineEnd": "musae-
|
|
47
|
+
"::before_insetInlineEnd": "musae-typ5od",
|
|
48
48
|
$$css: true
|
|
49
49
|
},
|
|
50
50
|
from: {
|
|
51
51
|
"::before_insetInlineStart": "musae-fbisj7",
|
|
52
52
|
"::before_left": null,
|
|
53
53
|
"::before_right": null,
|
|
54
|
-
"::before_insetInlineEnd": "musae-
|
|
54
|
+
"::before_insetInlineEnd": "musae-typ5od",
|
|
55
55
|
$$css: true
|
|
56
56
|
},
|
|
57
57
|
to: {
|
|
58
|
-
"::before_insetInlineStart": "musae-
|
|
58
|
+
"::before_insetInlineStart": "musae-1682cnc",
|
|
59
59
|
"::before_left": null,
|
|
60
60
|
"::before_right": null,
|
|
61
61
|
"::before_insetInlineEnd": "musae-1gkks1t",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { CheckboxProps } from "./types";
|
|
3
|
-
declare const Checkbox: ({ value, className, style, children, ...props }: CheckboxProps) => React.JSX.Element;
|
|
3
|
+
declare const Checkbox: ({ value, className, style, children, onChange, ...props }: CheckboxProps) => React.JSX.Element;
|
|
4
4
|
export default Checkbox;
|
|
@@ -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/.pnpm/@stylexjs_stylex@0.
|
|
7
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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';
|
|
@@ -143,6 +143,7 @@ const Checkbox = ({
|
|
|
143
143
|
className,
|
|
144
144
|
style,
|
|
145
145
|
children,
|
|
146
|
+
onChange,
|
|
146
147
|
...props$1
|
|
147
148
|
}) => {
|
|
148
149
|
const contextValue = useContext(Context);
|
|
@@ -154,14 +155,15 @@ const Checkbox = ({
|
|
|
154
155
|
/// check current checkbox is checked
|
|
155
156
|
/// if there is context value, use context value
|
|
156
157
|
/// else use controlled state
|
|
157
|
-
const isChecked = useMemo(() => contextValue ? contextValue.value.has(value) : _isChecked, [_isChecked, contextValue, value]);
|
|
158
|
+
const isChecked = useMemo(() => contextValue && !!value ? contextValue.value.has(value) : _isChecked, [_isChecked, contextValue, value]);
|
|
158
159
|
/// change handler
|
|
159
160
|
/// if there is context value, just notify context
|
|
160
161
|
/// else change the controlled state
|
|
161
162
|
const change = useCallback(event => {
|
|
162
|
-
contextValue?.change(value);
|
|
163
|
+
!!value && contextValue?.change(value);
|
|
163
164
|
_setIsChecked(event.target.checked);
|
|
164
|
-
|
|
165
|
+
onChange?.(event);
|
|
166
|
+
}, [_setIsChecked, contextValue, value, onChange]);
|
|
165
167
|
const styled = {
|
|
166
168
|
checkbox: {
|
|
167
169
|
className: "musae-3nfvp2 musae-6s0dn4 musae-1ypdohk"
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const Checkbox: (({ value, className, style, children, ...props }: import("./types").CheckboxProps) => import("react").JSX.Element) & {
|
|
1
|
+
export declare const Checkbox: (({ value, className, style, children, onChange, ...props }: import("./types").CheckboxProps) => import("react").JSX.Element) & {
|
|
2
2
|
Group: (props: import("./types").CheckboxGroupProps) => import("react").JSX.Element;
|
|
3
3
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Key, ReactNode } from "react";
|
|
1
|
+
import type { ChangeEvent, Key, ReactNode } from "react";
|
|
2
2
|
import type { ComponentProps } from "../../types/element";
|
|
3
3
|
/**
|
|
4
4
|
* @author murukal
|
|
@@ -58,15 +58,21 @@ export interface CheckboxProps extends ComponentProps {
|
|
|
58
58
|
/**
|
|
59
59
|
* @description
|
|
60
60
|
* value
|
|
61
|
-
* @
|
|
61
|
+
* @default void 0
|
|
62
62
|
*/
|
|
63
|
-
value
|
|
63
|
+
value?: Key;
|
|
64
64
|
/**
|
|
65
65
|
* @description
|
|
66
66
|
* children
|
|
67
67
|
* @default void 0
|
|
68
68
|
*/
|
|
69
69
|
children?: ReactNode;
|
|
70
|
+
/**
|
|
71
|
+
* @description
|
|
72
|
+
* change handler
|
|
73
|
+
* @default void 0
|
|
74
|
+
*/
|
|
75
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
70
76
|
}
|
|
71
77
|
/**
|
|
72
78
|
* @author murukal
|
|
@@ -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/.pnpm/@stylexjs_stylex@0.
|
|
7
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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/.pnpm/@stylexjs_stylex@0.
|
|
5
|
+
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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,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/.pnpm/@stylexjs_stylex@0.
|
|
4
|
+
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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';
|
|
@@ -17,7 +17,7 @@ const styles = {
|
|
|
17
17
|
borderBottomWidth: "musae-lntmim",
|
|
18
18
|
borderBottomStyle: "musae-1q0q8m5",
|
|
19
19
|
borderBottomColor: "musae-43481e",
|
|
20
|
-
":last-of-type_borderBottomWidth": "musae-
|
|
20
|
+
":last-of-type_borderBottomWidth": "musae-xt7lk8",
|
|
21
21
|
$$css: true
|
|
22
22
|
}, {
|
|
23
23
|
"--borderBottomColor": props.outlineColor != null ? props.outlineColor : "initial"
|
|
@@ -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/.pnpm/@stylexjs_stylex@0.
|
|
7
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/node_modules/@stylexjs/stylex/lib/es/stylex.js';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import { styles } from '../input/input.js';
|
|
10
10
|
|
|
@@ -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/.pnpm/@stylexjs_stylex@0.
|
|
6
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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/.pnpm/@aiszlab_relax@1.2.
|
|
12
|
+
import { contains } from '../../node_modules/.pnpm/@aiszlab_relax@1.2.56_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: {
|
|
@@ -19,8 +19,8 @@ const styles = {
|
|
|
19
19
|
},
|
|
20
20
|
overlay: props => [{
|
|
21
21
|
position: "musae-10l6tqk",
|
|
22
|
-
top: "musae-
|
|
23
|
-
left: "musae-
|
|
22
|
+
top: "musae-13vifvy",
|
|
23
|
+
left: "musae-u96u03",
|
|
24
24
|
insetInlineStart: null,
|
|
25
25
|
insetInlineEnd: null,
|
|
26
26
|
width: "musae-n9wirt",
|
|
@@ -137,7 +137,7 @@ const Popup = ({
|
|
|
137
137
|
}, [open]);
|
|
138
138
|
const styled = {
|
|
139
139
|
popup: {
|
|
140
|
-
className: "musae-ixxii4 musae-
|
|
140
|
+
className: "musae-ixxii4 musae-13vifvy musae-u96u03 musae-n9wirt musae-1dr59a3 musae-47corl musae-1tv1kli musae-78zum5 musae-l56j7k musae-6s0dn4"
|
|
141
141
|
},
|
|
142
142
|
overlay: props(styles.overlay({
|
|
143
143
|
backgroundColor: theme.colors[ColorToken.SurfaceDim]
|
|
@@ -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/.pnpm/@stylexjs_stylex@0.
|
|
5
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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,18 +3,18 @@ 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/.pnpm/@stylexjs_stylex@0.
|
|
6
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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/.pnpm/@aiszlab_relax@1.2.
|
|
12
|
+
import { contains } from '../../node_modules/.pnpm/@aiszlab_relax@1.2.56_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: {
|
|
16
16
|
position: "musae-ixxii4",
|
|
17
|
-
inset: "musae-
|
|
17
|
+
inset: "musae-10a8y8t",
|
|
18
18
|
insetInline: null,
|
|
19
19
|
insetInlineStart: null,
|
|
20
20
|
insetInlineEnd: null,
|
|
@@ -29,7 +29,7 @@ const styles = {
|
|
|
29
29
|
},
|
|
30
30
|
overlay: props => [{
|
|
31
31
|
position: "musae-10l6tqk",
|
|
32
|
-
inset: "musae-
|
|
32
|
+
inset: "musae-10a8y8t",
|
|
33
33
|
insetInline: null,
|
|
34
34
|
insetInlineStart: null,
|
|
35
35
|
insetInlineEnd: null,
|
|
@@ -61,44 +61,44 @@ const styles = {
|
|
|
61
61
|
"--transform": props.transform != null ? props.transform : "initial"
|
|
62
62
|
}],
|
|
63
63
|
right: props => [{
|
|
64
|
-
right: "musae-
|
|
64
|
+
right: "musae-3m8u43",
|
|
65
65
|
insetInlineStart: null,
|
|
66
66
|
insetInlineEnd: null,
|
|
67
|
-
top: "musae-
|
|
68
|
-
bottom: "musae-
|
|
67
|
+
top: "musae-13vifvy",
|
|
68
|
+
bottom: "musae-1ey2m1c",
|
|
69
69
|
width: "musae-17fnjtu",
|
|
70
70
|
$$css: true
|
|
71
71
|
}, {
|
|
72
72
|
"--width": (val => typeof val === "number" ? val + "px" : val != null ? val : "initial")(props.size)
|
|
73
73
|
}],
|
|
74
74
|
left: props => [{
|
|
75
|
-
left: "musae-
|
|
75
|
+
left: "musae-u96u03",
|
|
76
76
|
insetInlineStart: null,
|
|
77
77
|
insetInlineEnd: null,
|
|
78
|
-
top: "musae-
|
|
79
|
-
bottom: "musae-
|
|
78
|
+
top: "musae-13vifvy",
|
|
79
|
+
bottom: "musae-1ey2m1c",
|
|
80
80
|
width: "musae-17fnjtu",
|
|
81
81
|
$$css: true
|
|
82
82
|
}, {
|
|
83
83
|
"--width": (val => typeof val === "number" ? val + "px" : val != null ? val : "initial")(props.size)
|
|
84
84
|
}],
|
|
85
85
|
bottom: props => [{
|
|
86
|
-
bottom: "musae-
|
|
87
|
-
left: "musae-
|
|
86
|
+
bottom: "musae-1ey2m1c",
|
|
87
|
+
left: "musae-u96u03",
|
|
88
88
|
insetInlineStart: null,
|
|
89
89
|
insetInlineEnd: null,
|
|
90
|
-
right: "musae-
|
|
90
|
+
right: "musae-3m8u43",
|
|
91
91
|
height: "musae-1jwls1v",
|
|
92
92
|
$$css: true
|
|
93
93
|
}, {
|
|
94
94
|
"--height": (val => typeof val === "number" ? val + "px" : val != null ? val : "initial")(props.size)
|
|
95
95
|
}],
|
|
96
96
|
top: props => [{
|
|
97
|
-
top: "musae-
|
|
98
|
-
left: "musae-
|
|
97
|
+
top: "musae-13vifvy",
|
|
98
|
+
left: "musae-u96u03",
|
|
99
99
|
insetInlineStart: null,
|
|
100
100
|
insetInlineEnd: null,
|
|
101
|
-
right: "musae-
|
|
101
|
+
right: "musae-3m8u43",
|
|
102
102
|
height: "musae-1jwls1v",
|
|
103
103
|
$$css: true
|
|
104
104
|
}, {
|
|
@@ -187,7 +187,7 @@ const Popup = ({
|
|
|
187
187
|
}, [open]);
|
|
188
188
|
const styled = {
|
|
189
189
|
popup: {
|
|
190
|
-
className: "musae-ixxii4 musae-
|
|
190
|
+
className: "musae-ixxii4 musae-10a8y8t musae-47corl musae-mn8nw1"
|
|
191
191
|
},
|
|
192
192
|
overlay: props(styles.overlay({
|
|
193
193
|
backgroundColor: theme.colors[ColorToken.SurfaceDim]
|
|
@@ -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/.pnpm/@stylexjs_stylex@0.
|
|
4
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/node_modules/@stylexjs/stylex/lib/es/stylex.js';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { typography } from '../theme/theme.js';
|
|
7
7
|
|
|
@@ -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/.pnpm/@stylexjs_stylex@0.
|
|
5
|
+
import { props } from '../../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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';
|
|
@@ -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/.pnpm/@stylexjs_stylex@0.
|
|
4
|
+
import { props } from '../../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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/.pnpm/@stylexjs_stylex@0.
|
|
5
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/node_modules/@stylexjs/stylex/lib/es/stylex.js';
|
|
6
6
|
|
|
7
7
|
const styles = {
|
|
8
8
|
col: props => [{
|
|
@@ -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/.pnpm/@stylexjs_stylex@0.
|
|
5
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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/.pnpm/@stylexjs_stylex@0.
|
|
5
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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,11 +1,12 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import Preview from './preview/preview.js';
|
|
3
3
|
import PreviewGroupContext from './preview/context.js';
|
|
4
|
-
import { useBoolean, useEvent } from '@aiszlab/relax';
|
|
4
|
+
import { useBoolean, useImageLoader, useEvent } from '@aiszlab/relax';
|
|
5
5
|
|
|
6
6
|
const Image = ({ src, alt, width, height }) => {
|
|
7
7
|
const [isOpen, { turnOn, turnOff }] = useBoolean(false);
|
|
8
8
|
const contextValue = useContext(PreviewGroupContext);
|
|
9
|
+
const status = useImageLoader({ src });
|
|
9
10
|
const click = useEvent(() => {
|
|
10
11
|
// if current image is in preview group
|
|
11
12
|
// just use preview group to preview image
|
|
@@ -17,7 +18,7 @@ const Image = ({ src, alt, width, height }) => {
|
|
|
17
18
|
turnOn();
|
|
18
19
|
});
|
|
19
20
|
return (React.createElement(React.Fragment, null,
|
|
20
|
-
React.createElement("img", { src: src, alt: alt, onClick: click, width: width, height: height }),
|
|
21
|
+
status === "loaded" && React.createElement("img", { src: src, alt: alt, onClick: click, width: width, height: height }),
|
|
21
22
|
isOpen && !contextValue && React.createElement(Preview, { src: src, onClose: turnOff, alt: alt })));
|
|
22
23
|
};
|
|
23
24
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import _stylex from '../../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
2
|
+
import _stylex from '../../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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';
|
|
@@ -13,10 +13,10 @@ import KeyboardArrowRight from '../../icon/icons/hardware/keyboard-arrow-right.j
|
|
|
13
13
|
const styles = {
|
|
14
14
|
footer: props => [{
|
|
15
15
|
position: "musae-ixxii4",
|
|
16
|
-
left: "musae-
|
|
16
|
+
left: "musae-u96u03",
|
|
17
17
|
insetInlineStart: null,
|
|
18
18
|
insetInlineEnd: null,
|
|
19
|
-
right: "musae-
|
|
19
|
+
right: "musae-3m8u43",
|
|
20
20
|
bottom: "musae-1ii70tt",
|
|
21
21
|
display: "musae-78zum5",
|
|
22
22
|
flexDirection: "musae-dt5ytf",
|
|
@@ -74,7 +74,7 @@ const Operations = ({
|
|
|
74
74
|
className: "musae-1qtgrog musae-14l26ut"
|
|
75
75
|
},
|
|
76
76
|
navigations: {
|
|
77
|
-
className: "musae-ixxii4 musae-
|
|
77
|
+
className: "musae-ixxii4 musae-u96u03 musae-3m8u43 musae-wa60dl musae-gj1dgu musae-78zum5 musae-1q0g3np musae-1qughib musae-6s0dn4"
|
|
78
78
|
},
|
|
79
79
|
footer: _stylex.props(styles.footer({
|
|
80
80
|
color: theme.colors[ColorToken.OnSurface]
|
|
@@ -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/.pnpm/@stylexjs_stylex@0.
|
|
4
|
+
import _stylex from '../../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/node_modules/@stylexjs/stylex/lib/es/stylex.js';
|
|
5
5
|
|
|
6
6
|
const styles = {
|
|
7
7
|
image: props => [{
|
|
@@ -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/.pnpm/@stylexjs_stylex@0.
|
|
5
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useTheme } from '../theme/hooks.js';
|
|
3
|
-
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
3
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/node_modules/@stylexjs/stylex/lib/es/stylex.js';
|
|
4
4
|
import { ColorToken } from '../../utils/colors.js';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ const styles = {
|
|
|
14
14
|
paddingRight: null,
|
|
15
15
|
marginBottom: "musae-hq7bbv",
|
|
16
16
|
position: "musae-7wzq59",
|
|
17
|
-
top: "musae-
|
|
17
|
+
top: "musae-13vifvy",
|
|
18
18
|
zIndex: "musae-1ac462h",
|
|
19
19
|
display: "musae-78zum5",
|
|
20
20
|
alignItems: "musae-6s0dn4",
|
|
@@ -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/.pnpm/@stylexjs_stylex@0.
|
|
4
|
+
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
2
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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';
|
|
@@ -66,7 +66,7 @@ const styles = {
|
|
|
66
66
|
"::after_content": "musae-1s928wv",
|
|
67
67
|
"::after_display": "musae-hkezso",
|
|
68
68
|
"::after_position": "musae-1j6awrg",
|
|
69
|
-
"::after_inset": "musae-
|
|
69
|
+
"::after_inset": "musae-arstr8",
|
|
70
70
|
"::after_insetInline": null,
|
|
71
71
|
"::after_insetInlineStart": null,
|
|
72
72
|
"::after_insetInlineEnd": null,
|
|
@@ -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/.pnpm/@stylexjs_stylex@0.
|
|
9
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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';
|
|
@@ -44,6 +44,20 @@ const styles = {
|
|
|
44
44
|
}, {
|
|
45
45
|
"--color": props.color != null ? props.color : "initial"
|
|
46
46
|
}],
|
|
47
|
+
horizontal: {
|
|
48
|
+
display: "musae-78zum5",
|
|
49
|
+
flexDirection: "musae-1q0g3np",
|
|
50
|
+
gap: "musae-vbka3v",
|
|
51
|
+
rowGap: null,
|
|
52
|
+
columnGap: null,
|
|
53
|
+
$$css: true
|
|
54
|
+
},
|
|
55
|
+
vertical: {
|
|
56
|
+
$$css: true
|
|
57
|
+
},
|
|
58
|
+
inline: {
|
|
59
|
+
$$css: true
|
|
60
|
+
},
|
|
47
61
|
hidden: {
|
|
48
62
|
display: "musae-1s85apg",
|
|
49
63
|
$$css: true
|
|
@@ -104,7 +118,7 @@ const Group = forwardRef(({
|
|
|
104
118
|
const styled = {
|
|
105
119
|
group: props(styles.group.default({
|
|
106
120
|
color: theme.colors[ColorToken.OnSurface]
|
|
107
|
-
}), !expanded && styles.group.hidden),
|
|
121
|
+
}), styles.group[mode], !expanded && styles.group.hidden),
|
|
108
122
|
submenu: props(styles.submenu[mode])
|
|
109
123
|
};
|
|
110
124
|
return React.createElement("ul", {
|
|
@@ -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/.pnpm/@stylexjs_stylex@0.
|
|
4
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/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 = {
|