musae 0.2.1 → 0.2.2

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.
@@ -3,8 +3,6 @@ import type { AvatarProps } from "./types";
3
3
  /**
4
4
  * @description
5
5
  * `Avatar`
6
- *
7
- * component
8
6
  */
9
7
  declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
10
8
  export default Avatar;
@@ -7,6 +7,7 @@ import { useClassNames } from '../../hooks/use-class-names.js';
7
7
  import { ComponentToken, AvatarClassToken } from '../../utils/class-name.js';
8
8
  import clsx from 'clsx';
9
9
  import { typography } from '../theme/theme.js';
10
+ import { useImage } from '../../hooks/use-image.js';
10
11
 
11
12
  const styles = {
12
13
  avatar: props => [{
@@ -124,15 +125,12 @@ const styles = {
124
125
  /**
125
126
  * @description
126
127
  * `Avatar`
127
- *
128
- * component
129
128
  */
130
129
  const Avatar = forwardRef(({
131
130
  src,
132
131
  alt,
133
132
  shape: _shape = "circular",
134
133
  size: _size = "medium",
135
- fallback,
136
134
  ...props$1
137
135
  }, ref) => {
138
136
  const theme = useTheme();
@@ -141,6 +139,9 @@ const Avatar = forwardRef(({
141
139
  const size = group?.size ?? _size;
142
140
  const shape = group?.shape ?? _shape;
143
141
  const classNames = useClassNames(ComponentToken.Avatar);
142
+ const isLoaded = useImage({
143
+ src
144
+ });
144
145
  const styled = {
145
146
  avatar: props(typography.label[size], styles.avatar({
146
147
  backgroundColor: theme.colors[ColorToken.PrimaryContainer],
@@ -157,13 +158,13 @@ const Avatar = forwardRef(({
157
158
  className: clsx(classNames[AvatarClassToken.Avatar], styled.avatar.className),
158
159
  style: styled.avatar.style,
159
160
  ref: ref
160
- }, !!src ? React.createElement("img", {
161
+ }, isLoaded === "loaded" ? React.createElement("img", {
161
162
  draggable: false,
162
163
  src: src,
163
164
  alt: alt,
164
165
  className: styled.image.className,
165
166
  style: styled.image.style
166
- }) : fallback);
167
+ }) : alt?.slice(0, 2).toUpperCase());
167
168
  });
168
169
 
169
170
  export { Avatar as default };
@@ -37,7 +37,7 @@ const Group = ({
37
37
  key: "avatars-hidden",
38
38
  placement: "top"
39
39
  }, React.createElement(Avatar, {
40
- fallback: `+${hidden.length}`
40
+ alt: `+${hidden.length}`
41
41
  })));
42
42
  }
43
43
  return visible;
@@ -14,7 +14,9 @@ export type AvatarProps = {
14
14
  src?: string;
15
15
  /**
16
16
  * @description
17
- * alt
17
+ * alt, (fallback usage)
18
+ * if user do not provide `src`, or `src` is invalid
19
+ * show `alt`
18
20
  * @default void 0
19
21
  */
20
22
  alt?: string;
@@ -30,14 +32,6 @@ export type AvatarProps = {
30
32
  * @default "circular"
31
33
  */
32
34
  shape?: Shape;
33
- /**
34
- * @description
35
- * fallback node
36
- * if user do not provide `src`, or `src` is invalid
37
- * show `fallback`
38
- * @default void 0
39
- */
40
- fallback?: ReactNode;
41
35
  };
42
36
  /**
43
37
  * @description
@@ -41,21 +41,21 @@ const styles = {
41
41
  $$css: true
42
42
  },
43
43
  range: {
44
- "::before_insetInlineStart": "musae-1682cnc",
44
+ "::before_insetInlineStart": "musae-1kfboi8",
45
45
  "::before_left": null,
46
46
  "::before_right": null,
47
- "::before_insetInlineEnd": "musae-typ5od",
47
+ "::before_insetInlineEnd": "musae-1x8jx26",
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-typ5od",
54
+ "::before_insetInlineEnd": "musae-1x8jx26",
55
55
  $$css: true
56
56
  },
57
57
  to: {
58
- "::before_insetInlineStart": "musae-1682cnc",
58
+ "::before_insetInlineStart": "musae-1kfboi8",
59
59
  "::before_left": null,
60
60
  "::before_right": null,
61
61
  "::before_insetInlineEnd": "musae-1gkks1t",
@@ -19,8 +19,8 @@ const styles = {
19
19
  },
20
20
  overlay: props => [{
21
21
  position: "musae-10l6tqk",
22
- top: "musae-13vifvy",
23
- left: "musae-u96u03",
22
+ top: "musae-9oc6z4",
23
+ left: "musae-1tjciyl",
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-13vifvy musae-u96u03 musae-n9wirt musae-1dr59a3 musae-47corl musae-1tv1kli musae-78zum5 musae-l56j7k musae-6s0dn4"
140
+ className: "musae-ixxii4 musae-9oc6z4 musae-1tjciyl 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]
@@ -14,7 +14,7 @@ import { contains } from '../../node_modules/@aiszlab/relax/dist/dom/contains.js
14
14
  const styles = {
15
15
  popup: {
16
16
  position: "musae-ixxii4",
17
- inset: "musae-10a8y8t",
17
+ inset: "musae-ezip7x",
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-10a8y8t",
32
+ inset: "musae-ezip7x",
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-3m8u43",
64
+ right: "musae-15gpytn",
65
65
  insetInlineStart: null,
66
66
  insetInlineEnd: null,
67
- top: "musae-13vifvy",
68
- bottom: "musae-1ey2m1c",
67
+ top: "musae-9oc6z4",
68
+ bottom: "musae-1sh2tzk",
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-u96u03",
75
+ left: "musae-1tjciyl",
76
76
  insetInlineStart: null,
77
77
  insetInlineEnd: null,
78
- top: "musae-13vifvy",
79
- bottom: "musae-1ey2m1c",
78
+ top: "musae-9oc6z4",
79
+ bottom: "musae-1sh2tzk",
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-1ey2m1c",
87
- left: "musae-u96u03",
86
+ bottom: "musae-1sh2tzk",
87
+ left: "musae-1tjciyl",
88
88
  insetInlineStart: null,
89
89
  insetInlineEnd: null,
90
- right: "musae-3m8u43",
90
+ right: "musae-15gpytn",
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-13vifvy",
98
- left: "musae-u96u03",
97
+ top: "musae-9oc6z4",
98
+ left: "musae-1tjciyl",
99
99
  insetInlineStart: null,
100
100
  insetInlineEnd: null,
101
- right: "musae-3m8u43",
101
+ right: "musae-15gpytn",
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-10a8y8t musae-47corl musae-mn8nw1"
190
+ className: "musae-ixxii4 musae-ezip7x musae-47corl musae-mn8nw1"
191
191
  },
192
192
  overlay: props(styles.overlay({
193
193
  backgroundColor: theme.colors[ColorToken.SurfaceDim]
@@ -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-u96u03",
16
+ left: "musae-1tjciyl",
17
17
  insetInlineStart: null,
18
18
  insetInlineEnd: null,
19
- right: "musae-3m8u43",
19
+ right: "musae-15gpytn",
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-u96u03 musae-3m8u43 musae-wa60dl musae-gj1dgu musae-78zum5 musae-1q0g3np musae-1qughib musae-6s0dn4"
77
+ className: "musae-ixxii4 musae-1tjciyl musae-15gpytn 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]
@@ -14,7 +14,7 @@ const styles = {
14
14
  paddingRight: null,
15
15
  marginBottom: "musae-hq7bbv",
16
16
  position: "musae-7wzq59",
17
- top: "musae-13vifvy",
17
+ top: "musae-9oc6z4",
18
18
  zIndex: "musae-1ac462h",
19
19
  display: "musae-78zum5",
20
20
  alignItems: "musae-6s0dn4",
@@ -25,8 +25,8 @@ const styles = {
25
25
  $$css: true
26
26
  },
27
27
  top: {
28
- top: "musae-13vifvy",
29
- insetInline: "musae-17y0mx6",
28
+ top: "musae-9oc6z4",
29
+ insetInline: "musae-l33w4x",
30
30
  insetInlineStart: null,
31
31
  insetInlineEnd: null,
32
32
  left: null,
@@ -35,22 +35,22 @@ const styles = {
35
35
  $$css: true
36
36
  },
37
37
  topRight: {
38
- top: "musae-13vifvy",
39
- insetInlineEnd: "musae-tijo5x",
38
+ top: "musae-9oc6z4",
39
+ insetInlineEnd: "musae-hw0b42",
40
40
  left: null,
41
41
  right: null,
42
42
  $$css: true
43
43
  },
44
44
  topLeft: {
45
- top: "musae-13vifvy",
46
- insetInlineStart: "musae-1o0tod",
45
+ top: "musae-9oc6z4",
46
+ insetInlineStart: "musae-1at4hj2",
47
47
  left: null,
48
48
  right: null,
49
49
  $$css: true
50
50
  },
51
51
  bottom: {
52
- bottom: "musae-1ey2m1c",
53
- insetInline: "musae-17y0mx6",
52
+ bottom: "musae-1sh2tzk",
53
+ insetInline: "musae-l33w4x",
54
54
  insetInlineStart: null,
55
55
  insetInlineEnd: null,
56
56
  left: null,
@@ -59,15 +59,15 @@ const styles = {
59
59
  $$css: true
60
60
  },
61
61
  bottomLeft: {
62
- bottom: "musae-1ey2m1c",
63
- insetInlineStart: "musae-1o0tod",
62
+ bottom: "musae-1sh2tzk",
63
+ insetInlineStart: "musae-1at4hj2",
64
64
  left: null,
65
65
  right: null,
66
66
  $$css: true
67
67
  },
68
68
  bottomRight: {
69
- bottom: "musae-1ey2m1c",
70
- insetInlineEnd: "musae-tijo5x",
69
+ bottom: "musae-1sh2tzk",
70
+ insetInlineEnd: "musae-hw0b42",
71
71
  left: null,
72
72
  right: null,
73
73
  $$css: true
@@ -52,7 +52,7 @@ const styles = {
52
52
  transitionDuration: "musae-13dflua",
53
53
  transform: "musae-1v0jg1i",
54
54
  opacity: "musae-g01cxk",
55
- marginTop: "musae-dj266r",
55
+ marginTop: "musae-1q12cbh",
56
56
  display: "musae-rvj5dj",
57
57
  gap: "musae-vbka3v",
58
58
  rowGap: null,
@@ -16,8 +16,8 @@ const styles = {
16
16
  zIndex: "musae-1axsr4t",
17
17
  position: "musae-10l6tqk",
18
18
  backgroundColor: "musae-q1mx2j",
19
- top: "musae-13vifvy",
20
- insetInlineStart: "musae-1o0tod",
19
+ top: "musae-9oc6z4",
20
+ insetInlineStart: "musae-1at4hj2",
21
21
  left: null,
22
22
  right: null,
23
23
  boxShadow: "musae-ezd0au",
@@ -36,10 +36,10 @@ const styles = {
36
36
  position: "musae-10l6tqk",
37
37
  width: "musae-1gn8jaj",
38
38
  height: "musae-b27hse",
39
- insetInlineStart: "musae-1o0tod",
39
+ insetInlineStart: "musae-1at4hj2",
40
40
  left: null,
41
41
  right: null,
42
- top: "musae-13vifvy",
42
+ top: "musae-9oc6z4",
43
43
  opacity: "musae-g01cxk",
44
44
  userSelect: "musae-87ps6o",
45
45
  overflow: "musae-b3r6kr",
@@ -192,20 +192,20 @@ const styles = {
192
192
  $$css: true
193
193
  },
194
194
  checked: {
195
- marginInlineStart: "musae-1lziwak",
195
+ marginInlineStart: "musae-1tt3wx9",
196
196
  marginLeft: null,
197
197
  marginRight: null,
198
- marginInlineEnd: "musae-14z9mp",
198
+ marginInlineEnd: "musae-fbia9g",
199
199
  $$css: true
200
200
  }
201
201
  },
202
202
  trailing: {
203
203
  default: {
204
204
  marginTop: "musae-ncydc0",
205
- marginInlineEnd: "musae-14z9mp",
205
+ marginInlineEnd: "musae-fbia9g",
206
206
  marginLeft: null,
207
207
  marginRight: null,
208
- marginInlineStart: "musae-1lziwak",
208
+ marginInlineStart: "musae-1tt3wx9",
209
209
  $$css: true
210
210
  },
211
211
  checked: {
@@ -24,7 +24,7 @@ const styles = {
24
24
  ":not(:last-of-type)::after_height": "musae-1su0kt9",
25
25
  ":not(:last-of-type)::after_backgroundColor": "musae-9cqmhv",
26
26
  ":not(:last-of-type)::after_transform": "musae-1kmnipp",
27
- ":not(:last-of-type)::after_insetInlineEnd": "musae-192i3sz",
27
+ ":not(:last-of-type)::after_insetInlineEnd": "musae-1sd0t5p",
28
28
  ":not(:last-of-type)::after_left": null,
29
29
  ":not(:last-of-type)::after_right": null,
30
30
  $$css: true
@@ -17,7 +17,7 @@ import { useGutters } from '../../hooks/use-gutters.js';
17
17
  const styles = {
18
18
  overlay: props => [{
19
19
  position: "musae-10l6tqk",
20
- inset: "musae-10a8y8t",
20
+ inset: "musae-ezip7x",
21
21
  insetInline: null,
22
22
  insetInlineStart: null,
23
23
  insetInlineEnd: null,
@@ -0,0 +1,11 @@
1
+ import { HTMLAttributeReferrerPolicy } from "react";
2
+ /**
3
+ * @description
4
+ * prefetch image
5
+ * if image load failed, get fail status
6
+ */
7
+ export declare const useImage: ({ src, crossOrigin, referrerPolicy, }: {
8
+ src?: string;
9
+ crossOrigin?: string;
10
+ referrerPolicy?: HTMLAttributeReferrerPolicy;
11
+ }) => false | "error" | "loaded";
@@ -0,0 +1,34 @@
1
+ import { useState, useEffect } from 'react';
2
+
3
+ /**
4
+ * @description
5
+ * prefetch image
6
+ * if image load failed, get fail status
7
+ */
8
+ const useImage = ({ src, crossOrigin, referrerPolicy = "no-referrer", }) => {
9
+ const [isLoaded, setIsLoaded] = useState(false);
10
+ useEffect(() => {
11
+ if (!src) {
12
+ return;
13
+ }
14
+ setIsLoaded(false);
15
+ const image = new Image();
16
+ image.onload = () => {
17
+ setIsLoaded("loaded");
18
+ };
19
+ image.onerror = () => {
20
+ setIsLoaded("error");
21
+ };
22
+ image.crossOrigin = crossOrigin ?? null;
23
+ image.referrerPolicy = referrerPolicy;
24
+ image.src = src;
25
+ return () => {
26
+ image.onload = null;
27
+ image.onerror = null;
28
+ image.remove();
29
+ };
30
+ }, [src, crossOrigin, referrerPolicy]);
31
+ return isLoaded;
32
+ };
33
+
34
+ export { useImage };
package/dist/stylex.css CHANGED
@@ -25,7 +25,7 @@
25
25
  .musae-1pk7hnv:not(#\#){grid:'leading description'}
26
26
  .musae-1js343y:not(#\#){grid:'leading title closer' 'leading description description'}
27
27
  .musae-1l2suiq:not(#\#){grid:'leading title' '. description'}
28
- .musae-10a8y8t:not(#\#){inset:0}
28
+ .musae-ezip7x:not(#\#){inset:0px}
29
29
  .musae-1ug7cio:not(#\#){margin:var(--musae-15cw4i4)}
30
30
  .musae-ieb5ut:not(#\#){margin:var(--musae-1wblvyz)}
31
31
  .musae-1eddoca:not(#\#){margin:var(--musae-68a8pz)}
@@ -60,7 +60,7 @@
60
60
  .musae-1vkuzbb:not(#\#):not(#\#){gap:var(--musae-oohzsl)}
61
61
  .musae-29tp26:not(#\#):not(#\#){gap:var(--musae-qk2ac7)}
62
62
  .musae-vbka3v:not(#\#):not(#\#){gap:var(--musae-vk5id6)}
63
- .musae-17y0mx6:not(#\#):not(#\#){inset-inline:0}
63
+ .musae-l33w4x:not(#\#):not(#\#){inset-inline:0px}
64
64
  .musae-e8uvvx:not(#\#):not(#\#){list-style:none}
65
65
  .musae-nweklb:not(#\#):not(#\#){margin-block:var(--musae-15cw4i4)}
66
66
  .musae-dbe9a9:not(#\#):not(#\#){margin-block:var(--musae-qk2ac7)}
@@ -150,8 +150,8 @@
150
150
  .musae-4qzwkw:not(#\#):not(#\#):not(#\#){grid-column-end:var(--gridColumnEnd,revert)}
151
151
  .musae-8a1x49:not(#\#):not(#\#):not(#\#){grid-column-start:auto}
152
152
  .musae-1aeqsfb:not(#\#):not(#\#):not(#\#){grid-template-columns:repeat(24,minmax(0,1fr))}
153
- .musae-tijo5x:not(#\#):not(#\#):not(#\#){inset-inline-end:0}
154
- .musae-1o0tod:not(#\#):not(#\#):not(#\#){inset-inline-start:0}
153
+ .musae-hw0b42:not(#\#):not(#\#):not(#\#){inset-inline-end:0px}
154
+ .musae-1at4hj2:not(#\#):not(#\#):not(#\#){inset-inline-start:0px}
155
155
  .musae-ncxdh4:not(#\#):not(#\#):not(#\#){inset-inline-start:calc(100% - var(--musae-rlgvtq) - var(--musae-1h5s2h0))}
156
156
  .musae-1auf0oo:not(#\#):not(#\#):not(#\#){inset-inline-start:var(--musae-1h5s2h0)}
157
157
  .musae-hf0782:not(#\#):not(#\#):not(#\#){inset-inline-start:var(--musae-h30iw9)}
@@ -177,10 +177,10 @@
177
177
  .musae-5agonf:not(#\#):not(#\#):not(#\#){line-height:52px}
178
178
  .musae-1kke7aa:not(#\#):not(#\#):not(#\#){line-height:64px}
179
179
  .musae-3ct3a4:not(#\#):not(#\#):not(#\#){list-style-type:none}
180
- .musae-14z9mp:not(#\#):not(#\#):not(#\#){margin-inline-end:0}
180
+ .musae-fbia9g:not(#\#):not(#\#):not(#\#){margin-inline-end:0px}
181
181
  .musae-10qwhln:not(#\#):not(#\#):not(#\#){margin-inline-end:calc(-100% - var(--musae-rlgvtq) - var(--musae-jdzqnm) * 4 - var(--musae-jdzqnm))}
182
182
  .musae-16ph6eo:not(#\#):not(#\#):not(#\#){margin-inline-end:calc(100% + var(--musae-rlgvtq) + var(--musae-jdzqnm) * 4 + var(--musae-jdzqnm))}
183
- .musae-1lziwak:not(#\#):not(#\#):not(#\#){margin-inline-start:0}
183
+ .musae-1tt3wx9:not(#\#):not(#\#):not(#\#){margin-inline-start:0px}
184
184
  .musae-1fns2s7:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(-100% - var(--musae-rlgvtq) - var(--musae-jdzqnm) * 4 - var(--musae-jdzqnm))}
185
185
  .musae-5bta6d:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(100% + var(--musae-rlgvtq) + var(--musae-jdzqnm) * 4 + var(--musae-jdzqnm))}
186
186
  .musae-1tmxnmp:not(#\#):not(#\#):not(#\#){margin-inline-start:var(--musae-68a8pz)}
@@ -251,7 +251,7 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
251
251
  .musae-x7gz8e:not(:last-of-type):not(#\#):not(#\#):not(#\#)::after{content:""}
252
252
  .musae-13amitz:hover > span:last-child:not(#\#):not(#\#):not(#\#){display:inline-flex}
253
253
  .musae-1pqvcko:hover > span:first-child:not(#\#):not(#\#):not(#\#){display:none}
254
- .musae-192i3sz:not(:last-of-type):not(#\#):not(#\#):not(#\#)::after{inset-inline-end:0}
254
+ .musae-1sd0t5p:not(:last-of-type):not(#\#):not(#\#):not(#\#)::after{inset-inline-end:0px}
255
255
  .musae-1i5rff9:not(:first-child):not(#\#):not(#\#):not(#\#){margin-inline-start:calc(var(--musae-vk5id6) * -1)}
256
256
  .musae-no41pc:not(:last-of-type):not(#\#):not(#\#):not(#\#)::after{position:absolute}
257
257
  .musae-1kmnipp:not(:last-of-type):not(#\#):not(#\#):not(#\#)::after{transform:translateY(-50%)}
@@ -263,7 +263,7 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
263
263
  .musae-43481e:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-color:var(--borderBottomColor,revert)}
264
264
  .musae-1q0q8m5:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-style:solid}
265
265
  .musae-lntmim:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-width:var(--musae-1ax7z96)}
266
- .musae-1ey2m1c:not(#\#):not(#\#):not(#\#):not(#\#){bottom:0}
266
+ .musae-1sh2tzk:not(#\#):not(#\#):not(#\#):not(#\#){bottom:0px}
267
267
  .musae-1ii70tt:not(#\#):not(#\#):not(#\#):not(#\#){bottom:var(--musae-15cw4i4)}
268
268
  .musae-8wmlod:not(#\#):not(#\#):not(#\#):not(#\#){bottom:var(--musae-1wblvyz)}
269
269
  .musae-1dr59a3:not(#\#):not(#\#):not(#\#):not(#\#){height:100vh}
@@ -285,14 +285,14 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
285
285
  .musae-1gfonl1:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musae-oohzsl)}
286
286
  .musae-lry4nc:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musae-rlgvtq)}
287
287
  .musae-b4kbli:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musae-xrqq76)}
288
- .musae-u96u03:not(#\#):not(#\#):not(#\#):not(#\#){left:0}
288
+ .musae-1tjciyl:not(#\#):not(#\#):not(#\#):not(#\#){left:0px}
289
289
  .musae-101gtxs:not(#\#):not(#\#):not(#\#):not(#\#){left:var(--left,revert)}
290
290
  .musae-hq7bbv:not(#\#):not(#\#):not(#\#):not(#\#){margin-bottom:var(--musae-15cw4i4)}
291
291
  .musae-a4cli4:not(#\#):not(#\#):not(#\#):not(#\#){margin-bottom:var(--musae-1tzp6vk)}
292
292
  .musae-rsi211:not(#\#):not(#\#):not(#\#):not(#\#){margin-bottom:var(--musae-qk2ac7)}
293
293
  .musae-1vc729f:not(#\#):not(#\#):not(#\#):not(#\#){margin-right:var(--musae-qk2ac7)}
294
294
  .musae-ncydc0:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:-100%}
295
- .musae-dj266r:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:0}
295
+ .musae-1q12cbh:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:0px}
296
296
  .musae-3yben5:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:var(--musae-1wblvyz)}
297
297
  .musae-1lpmo0s:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:var(--musae-vk5id6)}
298
298
  .musae-edbcy2:not(#\#):not(#\#):not(#\#):not(#\#){max-height:calc(100% - var(--musae-15cw4i4) * 2)}
@@ -323,10 +323,10 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
323
323
  .musae-522f2k:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--musae-oohzsl)}
324
324
  .musae-1p848mt:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--musae-qk2ac7)}
325
325
  .musae-utp9vd:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--musae-vk5id6)}
326
- .musae-3m8u43:not(#\#):not(#\#):not(#\#):not(#\#){right:0}
326
+ .musae-15gpytn:not(#\#):not(#\#):not(#\#):not(#\#){right:0px}
327
327
  .musae-14l26ut:not(#\#):not(#\#):not(#\#):not(#\#){right:var(--musae-15cw4i4)}
328
328
  .musae-6al1c1:not(#\#):not(#\#):not(#\#):not(#\#){right:var(--musae-oohzsl)}
329
- .musae-13vifvy:not(#\#):not(#\#):not(#\#):not(#\#){top:0}
329
+ .musae-9oc6z4:not(#\#):not(#\#):not(#\#):not(#\#){top:0px}
330
330
  .musae-wa60dl:not(#\#):not(#\#):not(#\#):not(#\#){top:50%}
331
331
  .musae-kwake1:not(#\#):not(#\#):not(#\#):not(#\#){top:calc(var(--musae-xrqq76) + var(--musae-15cw4i4))}
332
332
  .musae-1qtgrog:not(#\#):not(#\#):not(#\#):not(#\#){top:var(--musae-15cw4i4)}
@@ -382,9 +382,9 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
382
382
  .musae-ilz4u6:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{content:"*"}
383
383
  .musae-hkezso:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{display:block}
384
384
  .musae-1fgarty:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{display:block}
385
- .musae-typ5od:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-end:0}
385
+ .musae-1x8jx26:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-end:0px}
386
386
  .musae-1gkks1t:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-end:50%}
387
- .musae-1682cnc:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-start:0}
387
+ .musae-1kfboi8:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-start:0px}
388
388
  .musae-fbisj7:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-start:50%}
389
389
  .musae-xsadbs:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{inset-inline-start:calc((100% - var(--musae-1ax7z96)) / 2)}
390
390
  .musae-2utku0:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{margin-inline-start:var(--musae-vk5id6)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musae",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "musae-ui",
5
5
  "author": "tutu@fantufantu.com",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "@floating-ui/dom": "^1.6.5",
28
28
  "@tanstack/react-table": "^8.16.0",
29
29
  "clsx": "^2.1.1",
30
- "dayjs": "^1.11.10",
30
+ "dayjs": "^1.11.11",
31
31
  "deepmerge": "^4.3.1",
32
32
  "framer-motion": "^11.2.10",
33
33
  "react-hook-form": "^7.47.0",
@@ -42,7 +42,7 @@
42
42
  "@rollup/plugin-node-resolve": "^15.2.3",
43
43
  "@rollup/plugin-typescript": "^11.1.6",
44
44
  "@stylexjs/babel-plugin": "^0.6.1",
45
- "@stylexjs/rollup-plugin": "^0.5.1",
45
+ "@stylexjs/rollup-plugin": "^0.6.1",
46
46
  "@stylexjs/stylex": "^0.5.1",
47
47
  "@testing-library/jest-dom": "^6.4.5",
48
48
  "@testing-library/react": "^15.0.7",