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
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.
|
|
1
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.4/node_modules/@stylexjs/stylex/lib/es/stylex.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useRepaint } from './hooks.js';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useGutters } from '../../hooks/use-gutters.js';
|
|
6
6
|
import { useUpdateEffect, useMounted } from '@aiszlab/relax';
|
|
7
7
|
import Sequential from './sequential.js';
|
|
8
|
+
import { useClassNames } from '../../hooks/use-class-names.js';
|
|
9
|
+
import { ComponentToken, WaterfallClassToken } from '../../utils/class-name.js';
|
|
8
10
|
|
|
9
11
|
const styles = {
|
|
10
12
|
waterfall: props => [{
|
|
@@ -62,6 +64,7 @@ const Waterfall = ({
|
|
|
62
64
|
columns,
|
|
63
65
|
rowGap
|
|
64
66
|
});
|
|
67
|
+
const classNames = useClassNames(ComponentToken.Waterfall);
|
|
65
68
|
const styled = props(styles.waterfall({
|
|
66
69
|
rowGap,
|
|
67
70
|
columnGap
|
|
@@ -96,7 +99,7 @@ const Waterfall = ({
|
|
|
96
99
|
columns: columns,
|
|
97
100
|
children: children,
|
|
98
101
|
rowGap: rowGap,
|
|
99
|
-
className: clsx(className, styled.className),
|
|
102
|
+
className: clsx(classNames[WaterfallClassToken.Sequential], className, styled.className),
|
|
100
103
|
style: {
|
|
101
104
|
...styled.style,
|
|
102
105
|
...style
|
|
@@ -104,7 +107,7 @@ const Waterfall = ({
|
|
|
104
107
|
});
|
|
105
108
|
}
|
|
106
109
|
return React.createElement("div", {
|
|
107
|
-
className: clsx(className, styled.className),
|
|
110
|
+
className: clsx(classNames[WaterfallClassToken.Waterfall], className, styled.className),
|
|
108
111
|
style: {
|
|
109
112
|
...styled.style,
|
|
110
113
|
...style
|
|
@@ -108,6 +108,7 @@ export declare const useClassNames: <T extends ComponentToken>(token: T) => {
|
|
|
108
108
|
2: string;
|
|
109
109
|
3: string;
|
|
110
110
|
4: string;
|
|
111
|
+
5: string;
|
|
111
112
|
};
|
|
112
113
|
21: {
|
|
113
114
|
0: string;
|
|
@@ -126,6 +127,11 @@ export declare const useClassNames: <T extends ComponentToken>(token: T) => {
|
|
|
126
127
|
0: string;
|
|
127
128
|
1: string;
|
|
128
129
|
2: string;
|
|
130
|
+
3: string;
|
|
131
|
+
4: string;
|
|
132
|
+
5: string;
|
|
133
|
+
6: string;
|
|
134
|
+
7: string;
|
|
129
135
|
};
|
|
130
136
|
24: {
|
|
131
137
|
0: string;
|
|
@@ -207,4 +213,8 @@ export declare const useClassNames: <T extends ComponentToken>(token: T) => {
|
|
|
207
213
|
5: string;
|
|
208
214
|
6: string;
|
|
209
215
|
};
|
|
216
|
+
38: {
|
|
217
|
+
0: string;
|
|
218
|
+
1: string;
|
|
219
|
+
};
|
|
210
220
|
}[T];
|
package/dist/stylex.css
CHANGED
|
@@ -18,14 +18,10 @@
|
|
|
18
18
|
.musae-xwd7sb:not(#\#){grid-area:label}
|
|
19
19
|
.musae-1kxrqrs:not(#\#){grid-area:leading}
|
|
20
20
|
.musae-nyuz70:not(#\#){grid-area:title}
|
|
21
|
-
.musae-p00dg7:not(#\#){grid:'description leading label'}
|
|
22
|
-
.musae-u00h3a:not(#\#){grid:'description leading'}
|
|
23
|
-
.musae-tbzffp:not(#\#){grid:'label leading description'}
|
|
24
21
|
.musae-1t1eshv:not(#\#){grid:'leading description closer'}
|
|
25
|
-
.musae-1pk7hnv:not(#\#){grid:'leading description'}
|
|
26
22
|
.musae-1js343y:not(#\#){grid:'leading title closer' 'leading description description'}
|
|
27
23
|
.musae-1l2suiq:not(#\#){grid:'leading title' '. description'}
|
|
28
|
-
.musae-
|
|
24
|
+
.musae-10a8y8t:not(#\#){inset:0}
|
|
29
25
|
.musae-1ug7cio:not(#\#){margin:var(--musae-15cw4i4)}
|
|
30
26
|
.musae-ieb5ut:not(#\#){margin:var(--musae-1wblvyz)}
|
|
31
27
|
.musae-1eddoca:not(#\#){margin:var(--musae-68a8pz)}
|
|
@@ -37,8 +33,6 @@
|
|
|
37
33
|
.musae-12ldsqu:not(#\#){padding:var(--musae-oohzsl)}
|
|
38
34
|
.musae-8kignx:not(#\#){padding:var(--musae-qk2ac7)}
|
|
39
35
|
.musae-wygk8u:not(#\#){padding:var(--musae-vk5id6) var(--musae-1tzp6vk)}
|
|
40
|
-
.musae-dv7uk4:nth-of-type(2n):not(#\#){grid:'description leading label'}
|
|
41
|
-
.musae-33een3:nth-of-type(2n):not(#\#){grid:'description leading'}
|
|
42
36
|
.musae-1eubc7e:hover:not(#\#){border:var(--1n3s2ii,revert)}
|
|
43
37
|
.musae-9r1u3d:not(#\#):not(#\#){border-color:transparent}
|
|
44
38
|
.musae-eqt46j:not(#\#):not(#\#){border-color:var(--borderColor,revert)}
|
|
@@ -61,7 +55,11 @@
|
|
|
61
55
|
.musae-1vkuzbb:not(#\#):not(#\#){gap:var(--musae-oohzsl)}
|
|
62
56
|
.musae-29tp26:not(#\#):not(#\#){gap:var(--musae-qk2ac7)}
|
|
63
57
|
.musae-vbka3v:not(#\#):not(#\#){gap:var(--musae-vk5id6)}
|
|
64
|
-
.musae-
|
|
58
|
+
.musae-hurxv4:not(#\#):not(#\#){grid-template-areas:'description leading label'}
|
|
59
|
+
.musae-196jfb2:not(#\#):not(#\#){grid-template-areas:'description leading'}
|
|
60
|
+
.musae-1y7mvjm:not(#\#):not(#\#){grid-template-areas:'label leading description'}
|
|
61
|
+
.musae-znaemz:not(#\#):not(#\#){grid-template-areas:'leading description'}
|
|
62
|
+
.musae-17y0mx6:not(#\#):not(#\#){inset-inline:0}
|
|
65
63
|
.musae-e8uvvx:not(#\#):not(#\#){list-style:none}
|
|
66
64
|
.musae-nweklb:not(#\#):not(#\#){margin-block:var(--musae-15cw4i4)}
|
|
67
65
|
.musae-dbe9a9:not(#\#):not(#\#){margin-block:var(--musae-qk2ac7)}
|
|
@@ -94,6 +92,7 @@
|
|
|
94
92
|
.musae-1cy8zhl:not(#\#):not(#\#):not(#\#){align-items:flex-start}
|
|
95
93
|
.musae-1bdtpbn:not(#\#):not(#\#):not(#\#){align-items:var(--alignItems,revert)}
|
|
96
94
|
.musae-amitd3:not(#\#):not(#\#):not(#\#){align-self:center}
|
|
95
|
+
.musae-qcrz7y:not(#\#):not(#\#):not(#\#){align-self:flex-start}
|
|
97
96
|
.musae-1c74tu6:not(#\#):not(#\#):not(#\#){animation-duration:2s}
|
|
98
97
|
.musae-a4qsjk:not(#\#):not(#\#):not(#\#){animation-iteration-count:infinite}
|
|
99
98
|
.musae-17fodkt:not(#\#):not(#\#):not(#\#){animation-name:musae-60a50w-B}
|
|
@@ -114,6 +113,8 @@
|
|
|
114
113
|
.musae-jdr3co:not(#\#):not(#\#):not(#\#){box-shadow:var(--musae-15zostt)}
|
|
115
114
|
.musae-ezd0au:not(#\#):not(#\#):not(#\#){box-shadow:var(--musae-1trg6py)}
|
|
116
115
|
.musae-9f619:not(#\#):not(#\#):not(#\#){box-sizing:border-box}
|
|
116
|
+
.musae-ntwwlm:not(#\#):not(#\#):not(#\#){color-scheme:dark}
|
|
117
|
+
.musae-19aimcq:not(#\#):not(#\#):not(#\#){color-scheme:light}
|
|
117
118
|
.musae-1heor9g:not(#\#):not(#\#):not(#\#){color:inherit}
|
|
118
119
|
.musae-19dipnz:not(#\#):not(#\#):not(#\#){color:var(--color,revert)}
|
|
119
120
|
.musae-4rvf3u:not(#\#):not(#\#):not(#\#){column-gap:var(--columnGap,revert)}
|
|
@@ -134,6 +135,7 @@
|
|
|
134
135
|
.musae-bh8q5q:not(#\#):not(#\#):not(#\#){fill:none}
|
|
135
136
|
.musae-dt5ytf:not(#\#):not(#\#):not(#\#){flex-direction:column}
|
|
136
137
|
.musae-1q0g3np:not(#\#):not(#\#):not(#\#){flex-direction:row}
|
|
138
|
+
.musae-2lah0s:not(#\#):not(#\#):not(#\#){flex-shrink:0}
|
|
137
139
|
.musae-1a02dak:not(#\#):not(#\#):not(#\#){flex-wrap:wrap}
|
|
138
140
|
.musae-1j6dyjg:not(#\#):not(#\#):not(#\#){font-size:11px}
|
|
139
141
|
.musae-fifm61:not(#\#):not(#\#):not(#\#){font-size:12px}
|
|
@@ -150,9 +152,12 @@
|
|
|
150
152
|
.musae-k50ysn:not(#\#):not(#\#):not(#\#){font-weight:500}
|
|
151
153
|
.musae-4qzwkw:not(#\#):not(#\#):not(#\#){grid-column-end:var(--gridColumnEnd,revert)}
|
|
152
154
|
.musae-8a1x49:not(#\#):not(#\#):not(#\#){grid-column-start:auto}
|
|
155
|
+
.musae-134kloy:not(#\#):not(#\#):not(#\#){grid-template-columns:1fr auto 1fr}
|
|
156
|
+
.musae-52fmzj:not(#\#):not(#\#):not(#\#){grid-template-columns:1fr auto}
|
|
157
|
+
.musae-1pmbctz:not(#\#):not(#\#):not(#\#){grid-template-columns:auto 1fr}
|
|
153
158
|
.musae-1aeqsfb:not(#\#):not(#\#):not(#\#){grid-template-columns:repeat(24,minmax(0,1fr))}
|
|
154
|
-
.musae-
|
|
155
|
-
.musae-
|
|
159
|
+
.musae-tijo5x:not(#\#):not(#\#):not(#\#){inset-inline-end:0}
|
|
160
|
+
.musae-1o0tod:not(#\#):not(#\#):not(#\#){inset-inline-start:0}
|
|
156
161
|
.musae-budbmw:not(#\#):not(#\#):not(#\#){inset-inline-start:50%}
|
|
157
162
|
.musae-ncxdh4:not(#\#):not(#\#):not(#\#){inset-inline-start:calc(100% - var(--musae-rlgvtq) - var(--musae-1h5s2h0))}
|
|
158
163
|
.musae-1auf0oo:not(#\#):not(#\#):not(#\#){inset-inline-start:var(--musae-1h5s2h0)}
|
|
@@ -162,6 +167,7 @@
|
|
|
162
167
|
.musae-1qughib:not(#\#):not(#\#):not(#\#){justify-content:space-between}
|
|
163
168
|
.musae-167rj3e:not(#\#):not(#\#):not(#\#){justify-items:var(--justifyItems,revert)}
|
|
164
169
|
.musae-15bdqvn:not(#\#):not(#\#):not(#\#){justify-self:flex-end}
|
|
170
|
+
.musae-wldb3t:not(#\#):not(#\#):not(#\#){justify-self:flex-start}
|
|
165
171
|
.musae-1i9hxzh:not(#\#):not(#\#):not(#\#){letter-spacing:var(--musae-1fsxyg9)}
|
|
166
172
|
.musae-1xv967o:not(#\#):not(#\#):not(#\#){letter-spacing:var(--musae-1odcd6w)}
|
|
167
173
|
.musae-1kag4p5:not(#\#):not(#\#):not(#\#){letter-spacing:var(--musae-1ry795)}
|
|
@@ -179,10 +185,10 @@
|
|
|
179
185
|
.musae-5agonf:not(#\#):not(#\#):not(#\#){line-height:52px}
|
|
180
186
|
.musae-1kke7aa:not(#\#):not(#\#):not(#\#){line-height:64px}
|
|
181
187
|
.musae-3ct3a4:not(#\#):not(#\#):not(#\#){list-style-type:none}
|
|
182
|
-
.musae-
|
|
188
|
+
.musae-14z9mp:not(#\#):not(#\#):not(#\#){margin-inline-end:0}
|
|
183
189
|
.musae-10qwhln:not(#\#):not(#\#):not(#\#){margin-inline-end:calc(-100% - var(--musae-rlgvtq) - var(--musae-jdzqnm) * 4 - var(--musae-jdzqnm))}
|
|
184
190
|
.musae-16ph6eo:not(#\#):not(#\#):not(#\#){margin-inline-end:calc(100% + var(--musae-rlgvtq) + var(--musae-jdzqnm) * 4 + var(--musae-jdzqnm))}
|
|
185
|
-
.musae-
|
|
191
|
+
.musae-1lziwak:not(#\#):not(#\#):not(#\#){margin-inline-start:0}
|
|
186
192
|
.musae-1fns2s7:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(-100% - var(--musae-rlgvtq) - var(--musae-jdzqnm) * 4 - var(--musae-jdzqnm))}
|
|
187
193
|
.musae-5bta6d:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(100% + var(--musae-rlgvtq) + var(--musae-jdzqnm) * 4 + var(--musae-jdzqnm))}
|
|
188
194
|
.musae-1tmxnmp:not(#\#):not(#\#):not(#\#){margin-inline-start:var(--musae-68a8pz)}
|
|
@@ -259,7 +265,7 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
|
|
|
259
265
|
.musae-x7gz8e:not(:last-of-type):not(#\#):not(#\#):not(#\#)::after{content:""}
|
|
260
266
|
.musae-13amitz:hover > span:last-child:not(#\#):not(#\#):not(#\#){display:inline-flex}
|
|
261
267
|
.musae-1pqvcko:hover > span:first-child:not(#\#):not(#\#):not(#\#){display:none}
|
|
262
|
-
.musae-
|
|
268
|
+
.musae-192i3sz:not(:last-of-type):not(#\#):not(#\#):not(#\#)::after{inset-inline-end:0}
|
|
263
269
|
.musae-1i5rff9:not(:first-child):not(#\#):not(#\#):not(#\#){margin-inline-start:calc(var(--musae-vk5id6) * -1)}
|
|
264
270
|
.musae-no41pc:not(:last-of-type):not(#\#):not(#\#):not(#\#)::after{position:absolute}
|
|
265
271
|
.musae-1kmnipp:not(:last-of-type):not(#\#):not(#\#):not(#\#)::after{transform:translateY(-50%)}
|
|
@@ -271,7 +277,7 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
|
|
|
271
277
|
.musae-43481e:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-color:var(--borderBottomColor,revert)}
|
|
272
278
|
.musae-1q0q8m5:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-style:solid}
|
|
273
279
|
.musae-lntmim:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-width:var(--musae-1ax7z96)}
|
|
274
|
-
.musae-
|
|
280
|
+
.musae-1ey2m1c:not(#\#):not(#\#):not(#\#):not(#\#){bottom:0}
|
|
275
281
|
.musae-1ii70tt:not(#\#):not(#\#):not(#\#):not(#\#){bottom:var(--musae-15cw4i4)}
|
|
276
282
|
.musae-8wmlod:not(#\#):not(#\#):not(#\#):not(#\#){bottom:var(--musae-1wblvyz)}
|
|
277
283
|
.musae-1dr59a3:not(#\#):not(#\#):not(#\#):not(#\#){height:100vh}
|
|
@@ -295,20 +301,20 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
|
|
|
295
301
|
.musae-1gfonl1:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musae-oohzsl)}
|
|
296
302
|
.musae-lry4nc:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musae-rlgvtq)}
|
|
297
303
|
.musae-b4kbli:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musae-xrqq76)}
|
|
298
|
-
.musae-
|
|
304
|
+
.musae-u96u03:not(#\#):not(#\#):not(#\#):not(#\#){left:0}
|
|
299
305
|
.musae-101gtxs:not(#\#):not(#\#):not(#\#):not(#\#){left:var(--left,revert)}
|
|
300
306
|
.musae-hq7bbv:not(#\#):not(#\#):not(#\#):not(#\#){margin-bottom:var(--musae-15cw4i4)}
|
|
301
307
|
.musae-a4cli4:not(#\#):not(#\#):not(#\#):not(#\#){margin-bottom:var(--musae-1tzp6vk)}
|
|
302
308
|
.musae-rsi211:not(#\#):not(#\#):not(#\#):not(#\#){margin-bottom:var(--musae-qk2ac7)}
|
|
303
309
|
.musae-1vc729f:not(#\#):not(#\#):not(#\#):not(#\#){margin-right:var(--musae-qk2ac7)}
|
|
304
|
-
.musae-
|
|
305
|
-
.musae-
|
|
310
|
+
.musae-dj266r:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:0}
|
|
311
|
+
.musae-lpx92y:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:calc(-1 * var(--musae-1qsoxbc))}
|
|
312
|
+
.musae-u5ntsc:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:var(--musae-1ncxh3n)}
|
|
306
313
|
.musae-3yben5:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:var(--musae-1wblvyz)}
|
|
307
314
|
.musae-1lpmo0s:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:var(--musae-vk5id6)}
|
|
308
315
|
.musae-edbcy2:not(#\#):not(#\#):not(#\#):not(#\#){max-height:calc(100% - var(--musae-15cw4i4) * 2)}
|
|
309
316
|
.musae-kfv0gj:not(#\#):not(#\#):not(#\#):not(#\#){max-width:var(--musae-1qj6wod)}
|
|
310
317
|
.musae-1v3fk47:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musae-16n5srz)}
|
|
311
|
-
.musae-jk1msx:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musae-1qj6wod)}
|
|
312
318
|
.musae-oexrxm:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musae-1spnrok)}
|
|
313
319
|
.musae-1infgec:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musae-cftog7)}
|
|
314
320
|
.musae-1ee7i9g:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--musae-laggmb)}
|
|
@@ -335,10 +341,10 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
|
|
|
335
341
|
.musae-522f2k:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--musae-oohzsl)}
|
|
336
342
|
.musae-1p848mt:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--musae-qk2ac7)}
|
|
337
343
|
.musae-utp9vd:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--musae-vk5id6)}
|
|
338
|
-
.musae-
|
|
344
|
+
.musae-3m8u43:not(#\#):not(#\#):not(#\#):not(#\#){right:0}
|
|
339
345
|
.musae-14l26ut:not(#\#):not(#\#):not(#\#):not(#\#){right:var(--musae-15cw4i4)}
|
|
340
346
|
.musae-6al1c1:not(#\#):not(#\#):not(#\#):not(#\#){right:var(--musae-oohzsl)}
|
|
341
|
-
.musae-
|
|
347
|
+
.musae-13vifvy:not(#\#):not(#\#):not(#\#):not(#\#){top:0}
|
|
342
348
|
.musae-wa60dl:not(#\#):not(#\#):not(#\#):not(#\#){top:50%}
|
|
343
349
|
.musae-kwake1:not(#\#):not(#\#):not(#\#):not(#\#){top:calc(var(--musae-xrqq76) + var(--musae-15cw4i4))}
|
|
344
350
|
.musae-1qtgrog:not(#\#):not(#\#):not(#\#):not(#\#){top:var(--musae-15cw4i4)}
|
|
@@ -364,11 +370,11 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
|
|
|
364
370
|
.musae-1o8gf8:not(:last-of-type):not(#\#):not(#\#):not(#\#):not(#\#)::after{top:50%}
|
|
365
371
|
.musae-vpkyr8:not(:last-of-type):not(#\#):not(#\#):not(#\#):not(#\#)::after{width:var(--musae-1ax7z96)}
|
|
366
372
|
.musae-cu8lob:first-child:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:var(--musae-qk2ac7)}
|
|
367
|
-
.musae-
|
|
373
|
+
.musae-xt7lk8:last-of-type:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-width:0}
|
|
368
374
|
.musae-r8ctv5:hover:not(#\#):not(#\#):not(#\#):not(#\#){overflow-y:auto}
|
|
369
375
|
.musae-ynce87:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::view-transition-old(root){animation:none}
|
|
370
376
|
.musae-goest1:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::view-transition-new(root){animation:none}
|
|
371
|
-
.musae-
|
|
377
|
+
.musae-arstr8:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{inset:0}
|
|
372
378
|
.musae-123gkgz:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{border-color:var(--1il6zln,revert)}
|
|
373
379
|
.musae-3yd8hb:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{border-color:var(--joftei,revert)}
|
|
374
380
|
.musae-11y6kk5:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-scrollbar-thumb{border-radius:4px}
|
|
@@ -381,12 +387,18 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
|
|
|
381
387
|
.musae-1lou4sy:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{border-width:var(--musae-1ax7z96)}
|
|
382
388
|
.musae-15z8w9c:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{border-width:var(--musae-1h5s2h0)}
|
|
383
389
|
.musae-ilzmfn:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{border-width:var(--musae-1hydgie)}
|
|
390
|
+
.musae-1nc033x:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-block:0}
|
|
391
|
+
.musae-d54j2p:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{inset-block:0}
|
|
384
392
|
.musae-t448kv:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{transition:all .2s}
|
|
385
393
|
.musae-1uowca5:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-scrollbar{background-color:transparent}
|
|
386
394
|
.musae-27d4w3:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{background-color:var(--15iyedw,revert)}
|
|
387
395
|
.musae-rr6jkh:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{background-color:var(--1lrm08k,revert)}
|
|
388
396
|
.musae-1cj4lvr:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-scrollbar-thumb{background-color:var(--b44ld2,revert)}
|
|
389
397
|
.musae-1dn9wut:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{border-top-width:var(--musae-1aj7t22)}
|
|
398
|
+
html:not([dir='rtl']) .musae-15cyge6:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{box-shadow:inset -10px 0 8px -8px rgba(0,0,0,.08)}
|
|
399
|
+
html[dir='rtl'] .musae-15cyge6:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{box-shadow:inset 10px 0 8px -8px rgba(0,0,0,.08)}
|
|
400
|
+
html:not([dir='rtl']) .musae-91zhsk:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{box-shadow:inset 10px 0 8px -8px rgba(0,0,0,.08)}
|
|
401
|
+
html[dir='rtl'] .musae-91zhsk:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{box-shadow:inset -10px 0 8px -8px rgba(0,0,0,.08)}
|
|
390
402
|
.musae-x38sju:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{box-sizing:border-box}
|
|
391
403
|
.musae-tql2tq:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{box-sizing:border-box}
|
|
392
404
|
.musae-16q0lx9:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::placeholder{color:var(--163tekb,revert)}
|
|
@@ -397,14 +409,17 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
|
|
|
397
409
|
.musae-hkezso:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{display:block}
|
|
398
410
|
.musae-1fgarty:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{display:block}
|
|
399
411
|
.musae-15ozc13:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{display:none}
|
|
400
|
-
.musae-
|
|
412
|
+
.musae-1unh1gc:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{inset-inline-end:0}
|
|
413
|
+
.musae-typ5od:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-end:0}
|
|
401
414
|
.musae-1gkks1t:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-end:50%}
|
|
402
|
-
.musae-
|
|
415
|
+
.musae-1682cnc:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-start:0}
|
|
403
416
|
.musae-fbisj7:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-start:50%}
|
|
404
417
|
.musae-xsadbs:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{inset-inline-start:calc((100% - var(--musae-1ax7z96)) / 2)}
|
|
405
418
|
.musae-2utku0:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{margin-inline-start:var(--musae-vk5id6)}
|
|
406
419
|
.musae-15342hd:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::view-transition-old(root){mix-blend-mode:normal}
|
|
407
420
|
.musae-1sgbmat:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::view-transition-new(root){mix-blend-mode:normal}
|
|
421
|
+
.musae-kk1bqk:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{pointer-events:none}
|
|
422
|
+
.musae-2q1x1w:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{pointer-events:none}
|
|
408
423
|
.musae-1j6awrg:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{position:absolute}
|
|
409
424
|
.musae-1hmns74:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{position:absolute}
|
|
410
425
|
.musae-q1m6zb:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{transform:translate(100%,-160%) rotate(45deg)}
|
|
@@ -430,12 +445,13 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
|
|
|
430
445
|
.musae-2wrall:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{height:var(--musae-cftog7)}
|
|
431
446
|
.musae-1e9cniy:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{height:var(--musae-fwu7zn)}
|
|
432
447
|
.musae-1tvttw7:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{margin-right:var(--musae-qk2ac7)}
|
|
433
|
-
.musae-dulvvp:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{margin-top:var(--musae-h30iw9)}
|
|
434
448
|
.musae-4ys0c4:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{margin-top:var(--musae-vk5id6)}
|
|
435
449
|
.musae-1srwf7z:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{top:100%}
|
|
436
450
|
.musae-5a73hh:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{top:calc((100% - var(--musae-1ax7z96)) / 2)}
|
|
437
451
|
.musae-11yodxc:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{width:calc(var(--musae-1l9c3uf) / 3)}
|
|
438
452
|
.musae-33jx72:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{width:var(--11aojeo,revert)}
|
|
453
|
+
.musae-bk3rzz:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{width:var(--musae-16n5srz)}
|
|
454
|
+
.musae-g1t9zo:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{width:var(--musae-16n5srz)}
|
|
439
455
|
.musae-9l6l1u:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{width:var(--musae-1ax7z96)}
|
|
440
456
|
.musae-etvar1:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{width:var(--musae-1ax7z96)}
|
|
441
457
|
.musae-1el3b87:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{width:var(--musae-1l9c3uf)}
|
|
@@ -46,7 +46,8 @@ export declare enum ComponentToken {
|
|
|
46
46
|
Tooltip = 34,
|
|
47
47
|
Popover = 35,
|
|
48
48
|
Loading = 36,
|
|
49
|
-
Collapse = 37
|
|
49
|
+
Collapse = 37,
|
|
50
|
+
Waterfall = 38
|
|
50
51
|
}
|
|
51
52
|
/**
|
|
52
53
|
* @description
|
|
@@ -152,10 +153,11 @@ export declare enum ClockClassToken {
|
|
|
152
153
|
}
|
|
153
154
|
export declare enum MenuClassToken {
|
|
154
155
|
Menu = 0,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
MenuHorizontal = 1,
|
|
157
|
+
Group = 2,
|
|
158
|
+
GroupHidden = 3,
|
|
159
|
+
Collapser = 4,
|
|
160
|
+
Item = 5
|
|
159
161
|
}
|
|
160
162
|
export declare enum CheckboxClassToken {
|
|
161
163
|
Checkbox = 0
|
|
@@ -172,8 +174,13 @@ export declare enum TreeClassToken {
|
|
|
172
174
|
}
|
|
173
175
|
export declare enum TabsClassToken {
|
|
174
176
|
Tabs = 0,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
+
TabsNavigation = 1,
|
|
178
|
+
TabsNavigator = 2,
|
|
179
|
+
TabList = 3,
|
|
180
|
+
Tab = 4,
|
|
181
|
+
Indicator = 5,
|
|
182
|
+
Panels = 6,
|
|
183
|
+
Panel = 7
|
|
177
184
|
}
|
|
178
185
|
export declare enum PaginationClassToken {
|
|
179
186
|
Pagination = 0
|
|
@@ -257,6 +264,10 @@ export declare enum CollapseClassToken {
|
|
|
257
264
|
Content = 6,
|
|
258
265
|
Collapser = 7
|
|
259
266
|
}
|
|
267
|
+
export declare enum WaterfallClassToken {
|
|
268
|
+
Waterfall = 0,
|
|
269
|
+
Sequential = 1
|
|
270
|
+
}
|
|
260
271
|
/**
|
|
261
272
|
* @description
|
|
262
273
|
* class name collection
|
|
@@ -369,6 +380,7 @@ export declare const CLASS_NAMES: {
|
|
|
369
380
|
2: string;
|
|
370
381
|
3: string;
|
|
371
382
|
4: string;
|
|
383
|
+
5: string;
|
|
372
384
|
};
|
|
373
385
|
21: {
|
|
374
386
|
0: string;
|
|
@@ -387,6 +399,11 @@ export declare const CLASS_NAMES: {
|
|
|
387
399
|
0: string;
|
|
388
400
|
1: string;
|
|
389
401
|
2: string;
|
|
402
|
+
3: string;
|
|
403
|
+
4: string;
|
|
404
|
+
5: string;
|
|
405
|
+
6: string;
|
|
406
|
+
7: string;
|
|
390
407
|
};
|
|
391
408
|
24: {
|
|
392
409
|
0: string;
|
|
@@ -468,6 +485,10 @@ export declare const CLASS_NAMES: {
|
|
|
468
485
|
5: string;
|
|
469
486
|
6: string;
|
|
470
487
|
};
|
|
488
|
+
38: {
|
|
489
|
+
0: string;
|
|
490
|
+
1: string;
|
|
491
|
+
};
|
|
471
492
|
};
|
|
472
493
|
/**
|
|
473
494
|
* @description
|
|
@@ -583,6 +604,7 @@ export declare const DEFAULT_CLASS_NAMES: {
|
|
|
583
604
|
2: string;
|
|
584
605
|
3: string;
|
|
585
606
|
4: string;
|
|
607
|
+
5: string;
|
|
586
608
|
};
|
|
587
609
|
21: {
|
|
588
610
|
0: string;
|
|
@@ -601,6 +623,11 @@ export declare const DEFAULT_CLASS_NAMES: {
|
|
|
601
623
|
0: string;
|
|
602
624
|
1: string;
|
|
603
625
|
2: string;
|
|
626
|
+
3: string;
|
|
627
|
+
4: string;
|
|
628
|
+
5: string;
|
|
629
|
+
6: string;
|
|
630
|
+
7: string;
|
|
604
631
|
};
|
|
605
632
|
24: {
|
|
606
633
|
0: string;
|
|
@@ -682,4 +709,8 @@ export declare const DEFAULT_CLASS_NAMES: {
|
|
|
682
709
|
5: string;
|
|
683
710
|
6: string;
|
|
684
711
|
};
|
|
712
|
+
38: {
|
|
713
|
+
0: string;
|
|
714
|
+
1: string;
|
|
715
|
+
};
|
|
685
716
|
};
|
package/dist/utils/class-name.js
CHANGED
|
@@ -56,6 +56,7 @@ var ComponentToken;
|
|
|
56
56
|
ComponentToken[ComponentToken["Popover"] = 35] = "Popover";
|
|
57
57
|
ComponentToken[ComponentToken["Loading"] = 36] = "Loading";
|
|
58
58
|
ComponentToken[ComponentToken["Collapse"] = 37] = "Collapse";
|
|
59
|
+
ComponentToken[ComponentToken["Waterfall"] = 38] = "Waterfall";
|
|
59
60
|
})(ComponentToken || (ComponentToken = {}));
|
|
60
61
|
/**
|
|
61
62
|
* @description
|
|
@@ -182,10 +183,11 @@ var ClockClassToken;
|
|
|
182
183
|
var MenuClassToken;
|
|
183
184
|
(function (MenuClassToken) {
|
|
184
185
|
MenuClassToken[MenuClassToken["Menu"] = 0] = "Menu";
|
|
185
|
-
MenuClassToken[MenuClassToken["
|
|
186
|
-
MenuClassToken[MenuClassToken["
|
|
187
|
-
MenuClassToken[MenuClassToken["
|
|
188
|
-
MenuClassToken[MenuClassToken["
|
|
186
|
+
MenuClassToken[MenuClassToken["MenuHorizontal"] = 1] = "MenuHorizontal";
|
|
187
|
+
MenuClassToken[MenuClassToken["Group"] = 2] = "Group";
|
|
188
|
+
MenuClassToken[MenuClassToken["GroupHidden"] = 3] = "GroupHidden";
|
|
189
|
+
MenuClassToken[MenuClassToken["Collapser"] = 4] = "Collapser";
|
|
190
|
+
MenuClassToken[MenuClassToken["Item"] = 5] = "Item";
|
|
189
191
|
})(MenuClassToken || (MenuClassToken = {}));
|
|
190
192
|
var CheckboxClassToken;
|
|
191
193
|
(function (CheckboxClassToken) {
|
|
@@ -205,8 +207,13 @@ var TreeClassToken;
|
|
|
205
207
|
var TabsClassToken;
|
|
206
208
|
(function (TabsClassToken) {
|
|
207
209
|
TabsClassToken[TabsClassToken["Tabs"] = 0] = "Tabs";
|
|
208
|
-
TabsClassToken[TabsClassToken["
|
|
209
|
-
TabsClassToken[TabsClassToken["
|
|
210
|
+
TabsClassToken[TabsClassToken["TabsNavigation"] = 1] = "TabsNavigation";
|
|
211
|
+
TabsClassToken[TabsClassToken["TabsNavigator"] = 2] = "TabsNavigator";
|
|
212
|
+
TabsClassToken[TabsClassToken["TabList"] = 3] = "TabList";
|
|
213
|
+
TabsClassToken[TabsClassToken["Tab"] = 4] = "Tab";
|
|
214
|
+
TabsClassToken[TabsClassToken["Indicator"] = 5] = "Indicator";
|
|
215
|
+
TabsClassToken[TabsClassToken["Panels"] = 6] = "Panels";
|
|
216
|
+
TabsClassToken[TabsClassToken["Panel"] = 7] = "Panel";
|
|
210
217
|
})(TabsClassToken || (TabsClassToken = {}));
|
|
211
218
|
var PaginationClassToken;
|
|
212
219
|
(function (PaginationClassToken) {
|
|
@@ -304,6 +311,11 @@ var CollapseClassToken;
|
|
|
304
311
|
CollapseClassToken[CollapseClassToken["Content"] = 6] = "Content";
|
|
305
312
|
CollapseClassToken[CollapseClassToken["Collapser"] = 7] = "Collapser";
|
|
306
313
|
})(CollapseClassToken || (CollapseClassToken = {}));
|
|
314
|
+
var WaterfallClassToken;
|
|
315
|
+
(function (WaterfallClassToken) {
|
|
316
|
+
WaterfallClassToken[WaterfallClassToken["Waterfall"] = 0] = "Waterfall";
|
|
317
|
+
WaterfallClassToken[WaterfallClassToken["Sequential"] = 1] = "Sequential";
|
|
318
|
+
})(WaterfallClassToken || (WaterfallClassToken = {}));
|
|
307
319
|
/**
|
|
308
320
|
* @description
|
|
309
321
|
* class name collection
|
|
@@ -412,6 +424,7 @@ const CLASS_NAMES = {
|
|
|
412
424
|
},
|
|
413
425
|
[ComponentToken.Menu]: {
|
|
414
426
|
[MenuClassToken.Menu]: "menu",
|
|
427
|
+
[MenuClassToken.MenuHorizontal]: "menu--horizontal",
|
|
415
428
|
[MenuClassToken.Group]: "menu__group",
|
|
416
429
|
[MenuClassToken.GroupHidden]: "menu__group--hidden",
|
|
417
430
|
[MenuClassToken.Collapser]: "menu__collapser",
|
|
@@ -432,8 +445,13 @@ const CLASS_NAMES = {
|
|
|
432
445
|
},
|
|
433
446
|
[ComponentToken.Tabs]: {
|
|
434
447
|
[TabsClassToken.Tabs]: "tabs",
|
|
435
|
-
[TabsClassToken.
|
|
448
|
+
[TabsClassToken.TabsNavigation]: "tabs__navigation",
|
|
449
|
+
[TabsClassToken.TabsNavigator]: "tabs__navigator",
|
|
450
|
+
[TabsClassToken.TabList]: "tabs__tab-list",
|
|
451
|
+
[TabsClassToken.Tab]: "tabs__item",
|
|
436
452
|
[TabsClassToken.Indicator]: "tabs__indicator",
|
|
453
|
+
[TabsClassToken.Panels]: "tabs__panels",
|
|
454
|
+
[TabsClassToken.Panel]: "tabs__panel",
|
|
437
455
|
},
|
|
438
456
|
[ComponentToken.Pagination]: {
|
|
439
457
|
[PaginationClassToken.Pagination]: "pagination",
|
|
@@ -515,6 +533,10 @@ const CLASS_NAMES = {
|
|
|
515
533
|
[CollapseClassToken.PanelActive]: "collapse__item-panel--active",
|
|
516
534
|
[CollapseClassToken.Content]: "collapse__item-content",
|
|
517
535
|
},
|
|
536
|
+
[ComponentToken.Waterfall]: {
|
|
537
|
+
[WaterfallClassToken.Waterfall]: "waterfall",
|
|
538
|
+
[WaterfallClassToken.Sequential]: "waterfall--sequential",
|
|
539
|
+
},
|
|
518
540
|
};
|
|
519
541
|
/**
|
|
520
542
|
* @description
|
|
@@ -533,4 +555,4 @@ const addPrefix = (classNames, prefix) => {
|
|
|
533
555
|
*/
|
|
534
556
|
const DEFAULT_CLASS_NAMES = addPrefix(CLASS_NAMES, Token.Prefix);
|
|
535
557
|
|
|
536
|
-
export { AvatarClassToken, BreadcrumbClassToken, ButtonClassToken, CLASS_NAMES, CalendarClassToken, CascaderClassToken, CheckboxClassToken, ClockClassToken, CollapseClassToken, ComponentToken, DEFAULT_CLASS_NAMES, DatePickerClassToken, DateRangePickerClassToken, DialogClassToken, DividerClassToken, DrawerClassToken, EmptyClassToken, FormClassToken, GridClassToken, IconClassToken, InputClassToken, LoadingClassToken, MenuClassToken, NotificationClassToken, PaginationClassToken, PickerClassToken, PopoverClassToken, PopperClassToken, ProgressClassToken, RadioClassToken, RateClassToken, SelectClassToken, StepsClassToken, SwitchClassToken, TabsClassToken, TagClassToken, TimePickerClassToken, TimelineClassToken, TooltipClassToken, TourClassToken, TreeClassToken, addPrefix, withPrefix };
|
|
558
|
+
export { AvatarClassToken, BreadcrumbClassToken, ButtonClassToken, CLASS_NAMES, CalendarClassToken, CascaderClassToken, CheckboxClassToken, ClockClassToken, CollapseClassToken, ComponentToken, DEFAULT_CLASS_NAMES, DatePickerClassToken, DateRangePickerClassToken, DialogClassToken, DividerClassToken, DrawerClassToken, EmptyClassToken, FormClassToken, GridClassToken, IconClassToken, InputClassToken, LoadingClassToken, MenuClassToken, NotificationClassToken, PaginationClassToken, PickerClassToken, PopoverClassToken, PopperClassToken, ProgressClassToken, RadioClassToken, RateClassToken, SelectClassToken, StepsClassToken, SwitchClassToken, TabsClassToken, TagClassToken, TimePickerClassToken, TimelineClassToken, TooltipClassToken, TourClassToken, TreeClassToken, WaterfallClassToken, addPrefix, withPrefix };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "musae",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "musae-ui",
|
|
5
5
|
"author": "tutu@fantufantu.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aiszlab/relax": "^1.2.
|
|
26
|
+
"@aiszlab/relax": "^1.2.56",
|
|
27
27
|
"@floating-ui/dom": "^1.6.5",
|
|
28
28
|
"@tanstack/react-table": "^8.16.0",
|
|
29
29
|
"clsx": "^2.1.1",
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@babel/core": "^7.24.5",
|
|
38
|
-
"@babel/preset-env": "^7.24.
|
|
39
|
-
"@babel/preset-react": "^7.
|
|
40
|
-
"@babel/preset-typescript": "^7.
|
|
38
|
+
"@babel/preset-env": "^7.24.7",
|
|
39
|
+
"@babel/preset-react": "^7.24.7",
|
|
40
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
41
41
|
"@changesets/cli": "^2.27.6",
|
|
42
42
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
43
43
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
44
44
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
45
|
-
"@stylexjs/babel-plugin": "^0.
|
|
46
|
-
"@stylexjs/rollup-plugin": "^0.
|
|
47
|
-
"@stylexjs/stylex": "^0.
|
|
45
|
+
"@stylexjs/babel-plugin": "^0.7.4",
|
|
46
|
+
"@stylexjs/rollup-plugin": "^0.7.4",
|
|
47
|
+
"@stylexjs/stylex": "^0.7.4",
|
|
48
48
|
"@testing-library/jest-dom": "^6.4.5",
|
|
49
49
|
"@testing-library/react": "^16.0.0",
|
|
50
50
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -52,6 +52,8 @@
|
|
|
52
52
|
"@types/jest": "^29.5.12",
|
|
53
53
|
"@types/react": "18",
|
|
54
54
|
"@types/react-dom": "18",
|
|
55
|
+
"babel-jest": "^29.7.0",
|
|
56
|
+
"babel-preset-react-app": "^10.0.1",
|
|
55
57
|
"eslint": "^8.56.0",
|
|
56
58
|
"eslint-config-react-app": "^7.0.1",
|
|
57
59
|
"jest": "^29.7.0",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React, { useContext, useCallback } from 'react';
|
|
2
|
-
import Button from '../button/button.js';
|
|
3
|
-
import Context from './context.js';
|
|
4
|
-
import { useClassNames } from '../../hooks/use-class-names.js';
|
|
5
|
-
import { ComponentToken, TabsClassToken } from '../../utils/class-name.js';
|
|
6
|
-
|
|
7
|
-
const Item = ({ value, onClick, ...props }) => {
|
|
8
|
-
const contextValue = useContext(Context);
|
|
9
|
-
const isActive = contextValue?.activeKey === value;
|
|
10
|
-
const classNames = useClassNames(ComponentToken.Tabs);
|
|
11
|
-
const setItem = useCallback((itemRef) => {
|
|
12
|
-
contextValue?.setItem(value, itemRef);
|
|
13
|
-
}, [contextValue, value]);
|
|
14
|
-
const click = useCallback(() => {
|
|
15
|
-
onClick(value);
|
|
16
|
-
}, [onClick, value]);
|
|
17
|
-
return (React.createElement(Button, { variant: "text", color: isActive ? "primary" : "secondary", ref: setItem, onClick: click, className: classNames[TabsClassToken.Item], ripple: false, style: {
|
|
18
|
-
borderRadius: "10% 10% 0 0",
|
|
19
|
-
} }, props.label));
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export { Item as default };
|
|
File without changes
|