@nextui-org/theme 0.0.0-dev-v2-20230604191549 → 0.0.0-dev-v2-20230604204500
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/dist/{chunk-UVH5HICF.mjs → chunk-42RVICJN.mjs} +40 -40
- package/dist/components/index.js +40 -40
- package/dist/components/index.mjs +1 -1
- package/dist/components/toggle.d.ts +30 -30
- package/dist/components/toggle.js +40 -40
- package/dist/components/toggle.mjs +1 -1
- package/dist/index.js +40 -40
- package/dist/index.mjs +3 -3
- package/dist/plugin.mjs +2 -2
- package/package.json +1 -1
- package/dist/{chunk-QGXXHT3T.mjs → chunk-3YIFM2I2.mjs} +3 -3
|
@@ -30,8 +30,8 @@ var toggle = tv({
|
|
|
30
30
|
"rounded-full",
|
|
31
31
|
"origin-right"
|
|
32
32
|
],
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
startContent: "z-0 absolute left-1.5 text-current",
|
|
34
|
+
endContent: "z-0 absolute right-1.5 text-default-600",
|
|
35
35
|
thumbIcon: "text-black",
|
|
36
36
|
label: "relative text-foreground select-none"
|
|
37
37
|
},
|
|
@@ -39,38 +39,38 @@ var toggle = tv({
|
|
|
39
39
|
color: {
|
|
40
40
|
default: {
|
|
41
41
|
wrapper: [
|
|
42
|
-
"group-data-[
|
|
43
|
-
"group-data-[
|
|
42
|
+
"group-data-[selected=true]:bg-default-400",
|
|
43
|
+
"group-data-[selected=true]:text-default-foreground"
|
|
44
44
|
]
|
|
45
45
|
},
|
|
46
46
|
primary: {
|
|
47
47
|
wrapper: [
|
|
48
|
-
"group-data-[
|
|
49
|
-
"group-data-[
|
|
48
|
+
"group-data-[selected=true]:bg-primary",
|
|
49
|
+
"group-data-[selected=true]:text-primary-foreground"
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
52
|
secondary: {
|
|
53
53
|
wrapper: [
|
|
54
|
-
"group-data-[
|
|
55
|
-
"group-data-[
|
|
54
|
+
"group-data-[selected=true]:bg-secondary",
|
|
55
|
+
"group-data-[selected=true]:text-secondary-foreground"
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
58
|
success: {
|
|
59
59
|
wrapper: [
|
|
60
|
-
"group-data-[
|
|
61
|
-
"group-data-[
|
|
60
|
+
"group-data-[selected=true]:bg-success",
|
|
61
|
+
"group-data-[selected=true]:text-success-foreground"
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
64
|
warning: {
|
|
65
65
|
wrapper: [
|
|
66
|
-
"group-data-[
|
|
67
|
-
"group-data-[
|
|
66
|
+
"group-data-[selected=true]:bg-warning",
|
|
67
|
+
"group-data-[selected=true]:text-warning-foreground"
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
70
|
danger: {
|
|
71
71
|
wrapper: [
|
|
72
|
-
"group-data-[
|
|
73
|
-
"data-[
|
|
72
|
+
"group-data-[selected=true]:bg-danger",
|
|
73
|
+
"data-[selected=true]:text-danger-foreground"
|
|
74
74
|
]
|
|
75
75
|
}
|
|
76
76
|
},
|
|
@@ -79,60 +79,60 @@ var toggle = tv({
|
|
|
79
79
|
wrapper: "w-8 h-5 mr-1",
|
|
80
80
|
thumb: [
|
|
81
81
|
"w-3 h-3 text-[0.6rem]",
|
|
82
|
-
"group-data-[
|
|
82
|
+
"group-data-[selected=true]:ml-3",
|
|
83
83
|
"group-data-[pressed=true]:w-4",
|
|
84
|
-
"group-data-[
|
|
84
|
+
"group-data-[selected]:group-data-[pressed]:ml-2"
|
|
85
85
|
],
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
startContent: "text-[0.6rem] left-1",
|
|
87
|
+
endContent: "text-[0.6rem] right-1",
|
|
88
88
|
label: "text-xs"
|
|
89
89
|
},
|
|
90
90
|
sm: {
|
|
91
91
|
wrapper: "w-10 h-6 mr-2",
|
|
92
92
|
thumb: [
|
|
93
93
|
"w-4 h-4 text-xs",
|
|
94
|
-
"group-data-[
|
|
94
|
+
"group-data-[selected=true]:ml-4",
|
|
95
95
|
"group-data-[pressed=true]:w-5",
|
|
96
|
-
"group-data-[
|
|
96
|
+
"group-data-[selected]:group-data-[pressed]:ml-4"
|
|
97
97
|
],
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
endContent: "text-xs",
|
|
99
|
+
startContent: "text-xs",
|
|
100
100
|
label: "text-sm"
|
|
101
101
|
},
|
|
102
102
|
md: {
|
|
103
103
|
wrapper: "w-12 h-7 mr-2",
|
|
104
104
|
thumb: [
|
|
105
105
|
"w-5 h-5 text-sm",
|
|
106
|
-
"group-data-[
|
|
106
|
+
"group-data-[selected=true]:ml-5",
|
|
107
107
|
"group-data-[pressed=true]:w-6",
|
|
108
|
-
"group-data-[
|
|
108
|
+
"group-data-[selected]:group-data-[pressed]:ml-4"
|
|
109
109
|
],
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
endContent: "text-sm",
|
|
111
|
+
startContent: "text-sm",
|
|
112
112
|
label: "text-base"
|
|
113
113
|
},
|
|
114
114
|
lg: {
|
|
115
115
|
wrapper: "w-14 h-8 mr-2",
|
|
116
116
|
thumb: [
|
|
117
117
|
"w-6 h-6 text-base",
|
|
118
|
-
"group-data-[
|
|
118
|
+
"group-data-[selected=true]:ml-6",
|
|
119
119
|
"group-data-[pressed=true]:w-7",
|
|
120
|
-
"group-data-[
|
|
120
|
+
"group-data-[selected]:group-data-[pressed]:ml-5"
|
|
121
121
|
],
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
endContent: "text-base",
|
|
123
|
+
startContent: "text-base",
|
|
124
124
|
label: "text-lg"
|
|
125
125
|
},
|
|
126
126
|
xl: {
|
|
127
127
|
wrapper: "w-16 h-9 mr-2",
|
|
128
128
|
thumb: [
|
|
129
129
|
"w-7 h-7 text-lg",
|
|
130
|
-
"group-data-[
|
|
130
|
+
"group-data-[selected=true]:ml-7",
|
|
131
131
|
"group-data-[pressed=true]:w-8",
|
|
132
|
-
"group-data-[
|
|
132
|
+
"group-data-[selected]:group-data-[pressed]:ml-6"
|
|
133
133
|
],
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
endContent: "text-base",
|
|
135
|
+
startContent: "text-base",
|
|
136
136
|
label: "text-lg"
|
|
137
137
|
}
|
|
138
138
|
},
|
|
@@ -149,18 +149,18 @@ var toggle = tv({
|
|
|
149
149
|
false: {
|
|
150
150
|
wrapper: "transition-background",
|
|
151
151
|
thumb: "transition-all",
|
|
152
|
-
|
|
152
|
+
startContent: [
|
|
153
153
|
"opacity-0",
|
|
154
154
|
"scale-50",
|
|
155
155
|
"transition-transform-opacity",
|
|
156
|
-
"group-data-[
|
|
157
|
-
"group-data-[
|
|
156
|
+
"group-data-[selected=true]:scale-100",
|
|
157
|
+
"group-data-[selected=true]:opacity-100"
|
|
158
158
|
],
|
|
159
|
-
|
|
159
|
+
endContent: [
|
|
160
160
|
"opacity-100",
|
|
161
161
|
"transition-transform-opacity",
|
|
162
|
-
"group-data-[
|
|
163
|
-
"group-data-[
|
|
162
|
+
"group-data-[selected=true]:translate-x-3",
|
|
163
|
+
"group-data-[selected=true]:opacity-0"
|
|
164
164
|
]
|
|
165
165
|
}
|
|
166
166
|
}
|
package/dist/components/index.js
CHANGED
|
@@ -3375,8 +3375,8 @@ var toggle = (0, import_tailwind_variants16.tv)({
|
|
|
3375
3375
|
"rounded-full",
|
|
3376
3376
|
"origin-right"
|
|
3377
3377
|
],
|
|
3378
|
-
|
|
3379
|
-
|
|
3378
|
+
startContent: "z-0 absolute left-1.5 text-current",
|
|
3379
|
+
endContent: "z-0 absolute right-1.5 text-default-600",
|
|
3380
3380
|
thumbIcon: "text-black",
|
|
3381
3381
|
label: "relative text-foreground select-none"
|
|
3382
3382
|
},
|
|
@@ -3384,38 +3384,38 @@ var toggle = (0, import_tailwind_variants16.tv)({
|
|
|
3384
3384
|
color: {
|
|
3385
3385
|
default: {
|
|
3386
3386
|
wrapper: [
|
|
3387
|
-
"group-data-[
|
|
3388
|
-
"group-data-[
|
|
3387
|
+
"group-data-[selected=true]:bg-default-400",
|
|
3388
|
+
"group-data-[selected=true]:text-default-foreground"
|
|
3389
3389
|
]
|
|
3390
3390
|
},
|
|
3391
3391
|
primary: {
|
|
3392
3392
|
wrapper: [
|
|
3393
|
-
"group-data-[
|
|
3394
|
-
"group-data-[
|
|
3393
|
+
"group-data-[selected=true]:bg-primary",
|
|
3394
|
+
"group-data-[selected=true]:text-primary-foreground"
|
|
3395
3395
|
]
|
|
3396
3396
|
},
|
|
3397
3397
|
secondary: {
|
|
3398
3398
|
wrapper: [
|
|
3399
|
-
"group-data-[
|
|
3400
|
-
"group-data-[
|
|
3399
|
+
"group-data-[selected=true]:bg-secondary",
|
|
3400
|
+
"group-data-[selected=true]:text-secondary-foreground"
|
|
3401
3401
|
]
|
|
3402
3402
|
},
|
|
3403
3403
|
success: {
|
|
3404
3404
|
wrapper: [
|
|
3405
|
-
"group-data-[
|
|
3406
|
-
"group-data-[
|
|
3405
|
+
"group-data-[selected=true]:bg-success",
|
|
3406
|
+
"group-data-[selected=true]:text-success-foreground"
|
|
3407
3407
|
]
|
|
3408
3408
|
},
|
|
3409
3409
|
warning: {
|
|
3410
3410
|
wrapper: [
|
|
3411
|
-
"group-data-[
|
|
3412
|
-
"group-data-[
|
|
3411
|
+
"group-data-[selected=true]:bg-warning",
|
|
3412
|
+
"group-data-[selected=true]:text-warning-foreground"
|
|
3413
3413
|
]
|
|
3414
3414
|
},
|
|
3415
3415
|
danger: {
|
|
3416
3416
|
wrapper: [
|
|
3417
|
-
"group-data-[
|
|
3418
|
-
"data-[
|
|
3417
|
+
"group-data-[selected=true]:bg-danger",
|
|
3418
|
+
"data-[selected=true]:text-danger-foreground"
|
|
3419
3419
|
]
|
|
3420
3420
|
}
|
|
3421
3421
|
},
|
|
@@ -3424,60 +3424,60 @@ var toggle = (0, import_tailwind_variants16.tv)({
|
|
|
3424
3424
|
wrapper: "w-8 h-5 mr-1",
|
|
3425
3425
|
thumb: [
|
|
3426
3426
|
"w-3 h-3 text-[0.6rem]",
|
|
3427
|
-
"group-data-[
|
|
3427
|
+
"group-data-[selected=true]:ml-3",
|
|
3428
3428
|
"group-data-[pressed=true]:w-4",
|
|
3429
|
-
"group-data-[
|
|
3429
|
+
"group-data-[selected]:group-data-[pressed]:ml-2"
|
|
3430
3430
|
],
|
|
3431
|
-
|
|
3432
|
-
|
|
3431
|
+
startContent: "text-[0.6rem] left-1",
|
|
3432
|
+
endContent: "text-[0.6rem] right-1",
|
|
3433
3433
|
label: "text-xs"
|
|
3434
3434
|
},
|
|
3435
3435
|
sm: {
|
|
3436
3436
|
wrapper: "w-10 h-6 mr-2",
|
|
3437
3437
|
thumb: [
|
|
3438
3438
|
"w-4 h-4 text-xs",
|
|
3439
|
-
"group-data-[
|
|
3439
|
+
"group-data-[selected=true]:ml-4",
|
|
3440
3440
|
"group-data-[pressed=true]:w-5",
|
|
3441
|
-
"group-data-[
|
|
3441
|
+
"group-data-[selected]:group-data-[pressed]:ml-4"
|
|
3442
3442
|
],
|
|
3443
|
-
|
|
3444
|
-
|
|
3443
|
+
endContent: "text-xs",
|
|
3444
|
+
startContent: "text-xs",
|
|
3445
3445
|
label: "text-sm"
|
|
3446
3446
|
},
|
|
3447
3447
|
md: {
|
|
3448
3448
|
wrapper: "w-12 h-7 mr-2",
|
|
3449
3449
|
thumb: [
|
|
3450
3450
|
"w-5 h-5 text-sm",
|
|
3451
|
-
"group-data-[
|
|
3451
|
+
"group-data-[selected=true]:ml-5",
|
|
3452
3452
|
"group-data-[pressed=true]:w-6",
|
|
3453
|
-
"group-data-[
|
|
3453
|
+
"group-data-[selected]:group-data-[pressed]:ml-4"
|
|
3454
3454
|
],
|
|
3455
|
-
|
|
3456
|
-
|
|
3455
|
+
endContent: "text-sm",
|
|
3456
|
+
startContent: "text-sm",
|
|
3457
3457
|
label: "text-base"
|
|
3458
3458
|
},
|
|
3459
3459
|
lg: {
|
|
3460
3460
|
wrapper: "w-14 h-8 mr-2",
|
|
3461
3461
|
thumb: [
|
|
3462
3462
|
"w-6 h-6 text-base",
|
|
3463
|
-
"group-data-[
|
|
3463
|
+
"group-data-[selected=true]:ml-6",
|
|
3464
3464
|
"group-data-[pressed=true]:w-7",
|
|
3465
|
-
"group-data-[
|
|
3465
|
+
"group-data-[selected]:group-data-[pressed]:ml-5"
|
|
3466
3466
|
],
|
|
3467
|
-
|
|
3468
|
-
|
|
3467
|
+
endContent: "text-base",
|
|
3468
|
+
startContent: "text-base",
|
|
3469
3469
|
label: "text-lg"
|
|
3470
3470
|
},
|
|
3471
3471
|
xl: {
|
|
3472
3472
|
wrapper: "w-16 h-9 mr-2",
|
|
3473
3473
|
thumb: [
|
|
3474
3474
|
"w-7 h-7 text-lg",
|
|
3475
|
-
"group-data-[
|
|
3475
|
+
"group-data-[selected=true]:ml-7",
|
|
3476
3476
|
"group-data-[pressed=true]:w-8",
|
|
3477
|
-
"group-data-[
|
|
3477
|
+
"group-data-[selected]:group-data-[pressed]:ml-6"
|
|
3478
3478
|
],
|
|
3479
|
-
|
|
3480
|
-
|
|
3479
|
+
endContent: "text-base",
|
|
3480
|
+
startContent: "text-base",
|
|
3481
3481
|
label: "text-lg"
|
|
3482
3482
|
}
|
|
3483
3483
|
},
|
|
@@ -3494,18 +3494,18 @@ var toggle = (0, import_tailwind_variants16.tv)({
|
|
|
3494
3494
|
false: {
|
|
3495
3495
|
wrapper: "transition-background",
|
|
3496
3496
|
thumb: "transition-all",
|
|
3497
|
-
|
|
3497
|
+
startContent: [
|
|
3498
3498
|
"opacity-0",
|
|
3499
3499
|
"scale-50",
|
|
3500
3500
|
"transition-transform-opacity",
|
|
3501
|
-
"group-data-[
|
|
3502
|
-
"group-data-[
|
|
3501
|
+
"group-data-[selected=true]:scale-100",
|
|
3502
|
+
"group-data-[selected=true]:opacity-100"
|
|
3503
3503
|
],
|
|
3504
|
-
|
|
3504
|
+
endContent: [
|
|
3505
3505
|
"opacity-100",
|
|
3506
3506
|
"transition-transform-opacity",
|
|
3507
|
-
"group-data-[
|
|
3508
|
-
"group-data-[
|
|
3507
|
+
"group-data-[selected=true]:translate-x-3",
|
|
3508
|
+
"group-data-[selected=true]:opacity-0"
|
|
3509
3509
|
]
|
|
3510
3510
|
}
|
|
3511
3511
|
}
|
|
@@ -5,12 +5,12 @@ import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
|
5
5
|
/**
|
|
6
6
|
* Toggle (Switch) wrapper **Tailwind Variants** component
|
|
7
7
|
*
|
|
8
|
-
* const {base, wrapper, thumb, thumbIcon, label,
|
|
8
|
+
* const {base, wrapper, thumb, thumbIcon, label, startContent, endContent} = toggle({...})
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* <label
|
|
12
12
|
* className={base())}
|
|
13
|
-
* data-
|
|
13
|
+
* data-selected={true/false}
|
|
14
14
|
* data-pressed={true/false}
|
|
15
15
|
* data-focus={true/false}
|
|
16
16
|
* data-hover={true/false}
|
|
@@ -18,11 +18,11 @@ import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
|
18
18
|
* >
|
|
19
19
|
* <input/> // hidden input
|
|
20
20
|
* <span className={wrapper()} aria-hidden="true">
|
|
21
|
-
* <svg className={
|
|
21
|
+
* <svg className={startContent()}>...</svg>
|
|
22
22
|
* <span className={thumb()}>
|
|
23
23
|
* <svg className={thumbIcon()}>...</svg>
|
|
24
24
|
* </span>
|
|
25
|
-
* <svg className={
|
|
25
|
+
* <svg className={endContent()}>...</svg>
|
|
26
26
|
* </span>
|
|
27
27
|
* <span className={label()}>Label</span>
|
|
28
28
|
* </label>
|
|
@@ -52,36 +52,36 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
52
52
|
xs: {
|
|
53
53
|
wrapper: string;
|
|
54
54
|
thumb: string[];
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
startContent: string;
|
|
56
|
+
endContent: string;
|
|
57
57
|
label: string;
|
|
58
58
|
};
|
|
59
59
|
sm: {
|
|
60
60
|
wrapper: string;
|
|
61
61
|
thumb: string[];
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
endContent: string;
|
|
63
|
+
startContent: string;
|
|
64
64
|
label: string;
|
|
65
65
|
};
|
|
66
66
|
md: {
|
|
67
67
|
wrapper: string;
|
|
68
68
|
thumb: string[];
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
endContent: string;
|
|
70
|
+
startContent: string;
|
|
71
71
|
label: string;
|
|
72
72
|
};
|
|
73
73
|
lg: {
|
|
74
74
|
wrapper: string;
|
|
75
75
|
thumb: string[];
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
endContent: string;
|
|
77
|
+
startContent: string;
|
|
78
78
|
label: string;
|
|
79
79
|
};
|
|
80
80
|
xl: {
|
|
81
81
|
wrapper: string;
|
|
82
82
|
thumb: string[];
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
endContent: string;
|
|
84
|
+
startContent: string;
|
|
85
85
|
label: string;
|
|
86
86
|
};
|
|
87
87
|
};
|
|
@@ -98,16 +98,16 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
98
98
|
false: {
|
|
99
99
|
wrapper: string;
|
|
100
100
|
thumb: string;
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
startContent: string[];
|
|
102
|
+
endContent: string[];
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
105
|
}, unknown, {
|
|
106
106
|
base: string;
|
|
107
107
|
wrapper: string[];
|
|
108
108
|
thumb: string[];
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
startContent: string;
|
|
110
|
+
endContent: string;
|
|
111
111
|
thumbIcon: string;
|
|
112
112
|
label: string;
|
|
113
113
|
}, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
@@ -135,36 +135,36 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
135
135
|
xs: {
|
|
136
136
|
wrapper: string;
|
|
137
137
|
thumb: string[];
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
startContent: string;
|
|
139
|
+
endContent: string;
|
|
140
140
|
label: string;
|
|
141
141
|
};
|
|
142
142
|
sm: {
|
|
143
143
|
wrapper: string;
|
|
144
144
|
thumb: string[];
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
endContent: string;
|
|
146
|
+
startContent: string;
|
|
147
147
|
label: string;
|
|
148
148
|
};
|
|
149
149
|
md: {
|
|
150
150
|
wrapper: string;
|
|
151
151
|
thumb: string[];
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
endContent: string;
|
|
153
|
+
startContent: string;
|
|
154
154
|
label: string;
|
|
155
155
|
};
|
|
156
156
|
lg: {
|
|
157
157
|
wrapper: string;
|
|
158
158
|
thumb: string[];
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
endContent: string;
|
|
160
|
+
startContent: string;
|
|
161
161
|
label: string;
|
|
162
162
|
};
|
|
163
163
|
xl: {
|
|
164
164
|
wrapper: string;
|
|
165
165
|
thumb: string[];
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
endContent: string;
|
|
167
|
+
startContent: string;
|
|
168
168
|
label: string;
|
|
169
169
|
};
|
|
170
170
|
};
|
|
@@ -181,8 +181,8 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
181
181
|
false: {
|
|
182
182
|
wrapper: string;
|
|
183
183
|
thumb: string;
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
startContent: string[];
|
|
185
|
+
endContent: string[];
|
|
186
186
|
};
|
|
187
187
|
};
|
|
188
188
|
}, unknown>>;
|
|
@@ -54,8 +54,8 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
54
54
|
"rounded-full",
|
|
55
55
|
"origin-right"
|
|
56
56
|
],
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
startContent: "z-0 absolute left-1.5 text-current",
|
|
58
|
+
endContent: "z-0 absolute right-1.5 text-default-600",
|
|
59
59
|
thumbIcon: "text-black",
|
|
60
60
|
label: "relative text-foreground select-none"
|
|
61
61
|
},
|
|
@@ -63,38 +63,38 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
63
63
|
color: {
|
|
64
64
|
default: {
|
|
65
65
|
wrapper: [
|
|
66
|
-
"group-data-[
|
|
67
|
-
"group-data-[
|
|
66
|
+
"group-data-[selected=true]:bg-default-400",
|
|
67
|
+
"group-data-[selected=true]:text-default-foreground"
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
70
|
primary: {
|
|
71
71
|
wrapper: [
|
|
72
|
-
"group-data-[
|
|
73
|
-
"group-data-[
|
|
72
|
+
"group-data-[selected=true]:bg-primary",
|
|
73
|
+
"group-data-[selected=true]:text-primary-foreground"
|
|
74
74
|
]
|
|
75
75
|
},
|
|
76
76
|
secondary: {
|
|
77
77
|
wrapper: [
|
|
78
|
-
"group-data-[
|
|
79
|
-
"group-data-[
|
|
78
|
+
"group-data-[selected=true]:bg-secondary",
|
|
79
|
+
"group-data-[selected=true]:text-secondary-foreground"
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
82
|
success: {
|
|
83
83
|
wrapper: [
|
|
84
|
-
"group-data-[
|
|
85
|
-
"group-data-[
|
|
84
|
+
"group-data-[selected=true]:bg-success",
|
|
85
|
+
"group-data-[selected=true]:text-success-foreground"
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
warning: {
|
|
89
89
|
wrapper: [
|
|
90
|
-
"group-data-[
|
|
91
|
-
"group-data-[
|
|
90
|
+
"group-data-[selected=true]:bg-warning",
|
|
91
|
+
"group-data-[selected=true]:text-warning-foreground"
|
|
92
92
|
]
|
|
93
93
|
},
|
|
94
94
|
danger: {
|
|
95
95
|
wrapper: [
|
|
96
|
-
"group-data-[
|
|
97
|
-
"data-[
|
|
96
|
+
"group-data-[selected=true]:bg-danger",
|
|
97
|
+
"data-[selected=true]:text-danger-foreground"
|
|
98
98
|
]
|
|
99
99
|
}
|
|
100
100
|
},
|
|
@@ -103,60 +103,60 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
103
103
|
wrapper: "w-8 h-5 mr-1",
|
|
104
104
|
thumb: [
|
|
105
105
|
"w-3 h-3 text-[0.6rem]",
|
|
106
|
-
"group-data-[
|
|
106
|
+
"group-data-[selected=true]:ml-3",
|
|
107
107
|
"group-data-[pressed=true]:w-4",
|
|
108
|
-
"group-data-[
|
|
108
|
+
"group-data-[selected]:group-data-[pressed]:ml-2"
|
|
109
109
|
],
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
startContent: "text-[0.6rem] left-1",
|
|
111
|
+
endContent: "text-[0.6rem] right-1",
|
|
112
112
|
label: "text-xs"
|
|
113
113
|
},
|
|
114
114
|
sm: {
|
|
115
115
|
wrapper: "w-10 h-6 mr-2",
|
|
116
116
|
thumb: [
|
|
117
117
|
"w-4 h-4 text-xs",
|
|
118
|
-
"group-data-[
|
|
118
|
+
"group-data-[selected=true]:ml-4",
|
|
119
119
|
"group-data-[pressed=true]:w-5",
|
|
120
|
-
"group-data-[
|
|
120
|
+
"group-data-[selected]:group-data-[pressed]:ml-4"
|
|
121
121
|
],
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
endContent: "text-xs",
|
|
123
|
+
startContent: "text-xs",
|
|
124
124
|
label: "text-sm"
|
|
125
125
|
},
|
|
126
126
|
md: {
|
|
127
127
|
wrapper: "w-12 h-7 mr-2",
|
|
128
128
|
thumb: [
|
|
129
129
|
"w-5 h-5 text-sm",
|
|
130
|
-
"group-data-[
|
|
130
|
+
"group-data-[selected=true]:ml-5",
|
|
131
131
|
"group-data-[pressed=true]:w-6",
|
|
132
|
-
"group-data-[
|
|
132
|
+
"group-data-[selected]:group-data-[pressed]:ml-4"
|
|
133
133
|
],
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
endContent: "text-sm",
|
|
135
|
+
startContent: "text-sm",
|
|
136
136
|
label: "text-base"
|
|
137
137
|
},
|
|
138
138
|
lg: {
|
|
139
139
|
wrapper: "w-14 h-8 mr-2",
|
|
140
140
|
thumb: [
|
|
141
141
|
"w-6 h-6 text-base",
|
|
142
|
-
"group-data-[
|
|
142
|
+
"group-data-[selected=true]:ml-6",
|
|
143
143
|
"group-data-[pressed=true]:w-7",
|
|
144
|
-
"group-data-[
|
|
144
|
+
"group-data-[selected]:group-data-[pressed]:ml-5"
|
|
145
145
|
],
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
endContent: "text-base",
|
|
147
|
+
startContent: "text-base",
|
|
148
148
|
label: "text-lg"
|
|
149
149
|
},
|
|
150
150
|
xl: {
|
|
151
151
|
wrapper: "w-16 h-9 mr-2",
|
|
152
152
|
thumb: [
|
|
153
153
|
"w-7 h-7 text-lg",
|
|
154
|
-
"group-data-[
|
|
154
|
+
"group-data-[selected=true]:ml-7",
|
|
155
155
|
"group-data-[pressed=true]:w-8",
|
|
156
|
-
"group-data-[
|
|
156
|
+
"group-data-[selected]:group-data-[pressed]:ml-6"
|
|
157
157
|
],
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
endContent: "text-base",
|
|
159
|
+
startContent: "text-base",
|
|
160
160
|
label: "text-lg"
|
|
161
161
|
}
|
|
162
162
|
},
|
|
@@ -173,18 +173,18 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
173
173
|
false: {
|
|
174
174
|
wrapper: "transition-background",
|
|
175
175
|
thumb: "transition-all",
|
|
176
|
-
|
|
176
|
+
startContent: [
|
|
177
177
|
"opacity-0",
|
|
178
178
|
"scale-50",
|
|
179
179
|
"transition-transform-opacity",
|
|
180
|
-
"group-data-[
|
|
181
|
-
"group-data-[
|
|
180
|
+
"group-data-[selected=true]:scale-100",
|
|
181
|
+
"group-data-[selected=true]:opacity-100"
|
|
182
182
|
],
|
|
183
|
-
|
|
183
|
+
endContent: [
|
|
184
184
|
"opacity-100",
|
|
185
185
|
"transition-transform-opacity",
|
|
186
|
-
"group-data-[
|
|
187
|
-
"group-data-[
|
|
186
|
+
"group-data-[selected=true]:translate-x-3",
|
|
187
|
+
"group-data-[selected=true]:opacity-0"
|
|
188
188
|
]
|
|
189
189
|
}
|
|
190
190
|
}
|
package/dist/index.js
CHANGED
|
@@ -3407,8 +3407,8 @@ var toggle = (0, import_tailwind_variants16.tv)({
|
|
|
3407
3407
|
"rounded-full",
|
|
3408
3408
|
"origin-right"
|
|
3409
3409
|
],
|
|
3410
|
-
|
|
3411
|
-
|
|
3410
|
+
startContent: "z-0 absolute left-1.5 text-current",
|
|
3411
|
+
endContent: "z-0 absolute right-1.5 text-default-600",
|
|
3412
3412
|
thumbIcon: "text-black",
|
|
3413
3413
|
label: "relative text-foreground select-none"
|
|
3414
3414
|
},
|
|
@@ -3416,38 +3416,38 @@ var toggle = (0, import_tailwind_variants16.tv)({
|
|
|
3416
3416
|
color: {
|
|
3417
3417
|
default: {
|
|
3418
3418
|
wrapper: [
|
|
3419
|
-
"group-data-[
|
|
3420
|
-
"group-data-[
|
|
3419
|
+
"group-data-[selected=true]:bg-default-400",
|
|
3420
|
+
"group-data-[selected=true]:text-default-foreground"
|
|
3421
3421
|
]
|
|
3422
3422
|
},
|
|
3423
3423
|
primary: {
|
|
3424
3424
|
wrapper: [
|
|
3425
|
-
"group-data-[
|
|
3426
|
-
"group-data-[
|
|
3425
|
+
"group-data-[selected=true]:bg-primary",
|
|
3426
|
+
"group-data-[selected=true]:text-primary-foreground"
|
|
3427
3427
|
]
|
|
3428
3428
|
},
|
|
3429
3429
|
secondary: {
|
|
3430
3430
|
wrapper: [
|
|
3431
|
-
"group-data-[
|
|
3432
|
-
"group-data-[
|
|
3431
|
+
"group-data-[selected=true]:bg-secondary",
|
|
3432
|
+
"group-data-[selected=true]:text-secondary-foreground"
|
|
3433
3433
|
]
|
|
3434
3434
|
},
|
|
3435
3435
|
success: {
|
|
3436
3436
|
wrapper: [
|
|
3437
|
-
"group-data-[
|
|
3438
|
-
"group-data-[
|
|
3437
|
+
"group-data-[selected=true]:bg-success",
|
|
3438
|
+
"group-data-[selected=true]:text-success-foreground"
|
|
3439
3439
|
]
|
|
3440
3440
|
},
|
|
3441
3441
|
warning: {
|
|
3442
3442
|
wrapper: [
|
|
3443
|
-
"group-data-[
|
|
3444
|
-
"group-data-[
|
|
3443
|
+
"group-data-[selected=true]:bg-warning",
|
|
3444
|
+
"group-data-[selected=true]:text-warning-foreground"
|
|
3445
3445
|
]
|
|
3446
3446
|
},
|
|
3447
3447
|
danger: {
|
|
3448
3448
|
wrapper: [
|
|
3449
|
-
"group-data-[
|
|
3450
|
-
"data-[
|
|
3449
|
+
"group-data-[selected=true]:bg-danger",
|
|
3450
|
+
"data-[selected=true]:text-danger-foreground"
|
|
3451
3451
|
]
|
|
3452
3452
|
}
|
|
3453
3453
|
},
|
|
@@ -3456,60 +3456,60 @@ var toggle = (0, import_tailwind_variants16.tv)({
|
|
|
3456
3456
|
wrapper: "w-8 h-5 mr-1",
|
|
3457
3457
|
thumb: [
|
|
3458
3458
|
"w-3 h-3 text-[0.6rem]",
|
|
3459
|
-
"group-data-[
|
|
3459
|
+
"group-data-[selected=true]:ml-3",
|
|
3460
3460
|
"group-data-[pressed=true]:w-4",
|
|
3461
|
-
"group-data-[
|
|
3461
|
+
"group-data-[selected]:group-data-[pressed]:ml-2"
|
|
3462
3462
|
],
|
|
3463
|
-
|
|
3464
|
-
|
|
3463
|
+
startContent: "text-[0.6rem] left-1",
|
|
3464
|
+
endContent: "text-[0.6rem] right-1",
|
|
3465
3465
|
label: "text-xs"
|
|
3466
3466
|
},
|
|
3467
3467
|
sm: {
|
|
3468
3468
|
wrapper: "w-10 h-6 mr-2",
|
|
3469
3469
|
thumb: [
|
|
3470
3470
|
"w-4 h-4 text-xs",
|
|
3471
|
-
"group-data-[
|
|
3471
|
+
"group-data-[selected=true]:ml-4",
|
|
3472
3472
|
"group-data-[pressed=true]:w-5",
|
|
3473
|
-
"group-data-[
|
|
3473
|
+
"group-data-[selected]:group-data-[pressed]:ml-4"
|
|
3474
3474
|
],
|
|
3475
|
-
|
|
3476
|
-
|
|
3475
|
+
endContent: "text-xs",
|
|
3476
|
+
startContent: "text-xs",
|
|
3477
3477
|
label: "text-sm"
|
|
3478
3478
|
},
|
|
3479
3479
|
md: {
|
|
3480
3480
|
wrapper: "w-12 h-7 mr-2",
|
|
3481
3481
|
thumb: [
|
|
3482
3482
|
"w-5 h-5 text-sm",
|
|
3483
|
-
"group-data-[
|
|
3483
|
+
"group-data-[selected=true]:ml-5",
|
|
3484
3484
|
"group-data-[pressed=true]:w-6",
|
|
3485
|
-
"group-data-[
|
|
3485
|
+
"group-data-[selected]:group-data-[pressed]:ml-4"
|
|
3486
3486
|
],
|
|
3487
|
-
|
|
3488
|
-
|
|
3487
|
+
endContent: "text-sm",
|
|
3488
|
+
startContent: "text-sm",
|
|
3489
3489
|
label: "text-base"
|
|
3490
3490
|
},
|
|
3491
3491
|
lg: {
|
|
3492
3492
|
wrapper: "w-14 h-8 mr-2",
|
|
3493
3493
|
thumb: [
|
|
3494
3494
|
"w-6 h-6 text-base",
|
|
3495
|
-
"group-data-[
|
|
3495
|
+
"group-data-[selected=true]:ml-6",
|
|
3496
3496
|
"group-data-[pressed=true]:w-7",
|
|
3497
|
-
"group-data-[
|
|
3497
|
+
"group-data-[selected]:group-data-[pressed]:ml-5"
|
|
3498
3498
|
],
|
|
3499
|
-
|
|
3500
|
-
|
|
3499
|
+
endContent: "text-base",
|
|
3500
|
+
startContent: "text-base",
|
|
3501
3501
|
label: "text-lg"
|
|
3502
3502
|
},
|
|
3503
3503
|
xl: {
|
|
3504
3504
|
wrapper: "w-16 h-9 mr-2",
|
|
3505
3505
|
thumb: [
|
|
3506
3506
|
"w-7 h-7 text-lg",
|
|
3507
|
-
"group-data-[
|
|
3507
|
+
"group-data-[selected=true]:ml-7",
|
|
3508
3508
|
"group-data-[pressed=true]:w-8",
|
|
3509
|
-
"group-data-[
|
|
3509
|
+
"group-data-[selected]:group-data-[pressed]:ml-6"
|
|
3510
3510
|
],
|
|
3511
|
-
|
|
3512
|
-
|
|
3511
|
+
endContent: "text-base",
|
|
3512
|
+
startContent: "text-base",
|
|
3513
3513
|
label: "text-lg"
|
|
3514
3514
|
}
|
|
3515
3515
|
},
|
|
@@ -3526,18 +3526,18 @@ var toggle = (0, import_tailwind_variants16.tv)({
|
|
|
3526
3526
|
false: {
|
|
3527
3527
|
wrapper: "transition-background",
|
|
3528
3528
|
thumb: "transition-all",
|
|
3529
|
-
|
|
3529
|
+
startContent: [
|
|
3530
3530
|
"opacity-0",
|
|
3531
3531
|
"scale-50",
|
|
3532
3532
|
"transition-transform-opacity",
|
|
3533
|
-
"group-data-[
|
|
3534
|
-
"group-data-[
|
|
3533
|
+
"group-data-[selected=true]:scale-100",
|
|
3534
|
+
"group-data-[selected=true]:opacity-100"
|
|
3535
3535
|
],
|
|
3536
|
-
|
|
3536
|
+
endContent: [
|
|
3537
3537
|
"opacity-100",
|
|
3538
3538
|
"transition-transform-opacity",
|
|
3539
|
-
"group-data-[
|
|
3540
|
-
"group-data-[
|
|
3539
|
+
"group-data-[selected=true]:translate-x-3",
|
|
3540
|
+
"group-data-[selected=true]:opacity-0"
|
|
3541
3541
|
]
|
|
3542
3542
|
}
|
|
3543
3543
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-5DRF22QY.mjs";
|
|
14
14
|
import {
|
|
15
15
|
toggle
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-42RVICJN.mjs";
|
|
17
17
|
import {
|
|
18
18
|
user
|
|
19
19
|
} from "./chunk-ZFYINWFR.mjs";
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
} from "./chunk-76WBK7WN.mjs";
|
|
106
106
|
import {
|
|
107
107
|
nextui
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-3YIFM2I2.mjs";
|
|
109
109
|
import "./chunk-XLATS5QU.mjs";
|
|
110
110
|
import {
|
|
111
111
|
absoluteFullClasses,
|
|
@@ -114,6 +114,7 @@ import {
|
|
|
114
114
|
ringClasses,
|
|
115
115
|
translateCenterClasses
|
|
116
116
|
} from "./chunk-INZK6TTL.mjs";
|
|
117
|
+
import "./chunk-DMASP6FA.mjs";
|
|
117
118
|
import "./chunk-WQEDQHKX.mjs";
|
|
118
119
|
import {
|
|
119
120
|
colors
|
|
@@ -123,7 +124,6 @@ import {
|
|
|
123
124
|
} from "./chunk-6QXUR7SY.mjs";
|
|
124
125
|
import "./chunk-37PIXVP4.mjs";
|
|
125
126
|
import "./chunk-M63AFAHO.mjs";
|
|
126
|
-
import "./chunk-DMASP6FA.mjs";
|
|
127
127
|
import {
|
|
128
128
|
commonColors
|
|
129
129
|
} from "./chunk-CRCBVLUP.mjs";
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nextui
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3YIFM2I2.mjs";
|
|
4
4
|
import "./chunk-XLATS5QU.mjs";
|
|
5
5
|
import "./chunk-INZK6TTL.mjs";
|
|
6
|
+
import "./chunk-DMASP6FA.mjs";
|
|
6
7
|
import "./chunk-WQEDQHKX.mjs";
|
|
7
8
|
import "./chunk-7PRU5S35.mjs";
|
|
8
9
|
import "./chunk-6QXUR7SY.mjs";
|
|
9
10
|
import "./chunk-37PIXVP4.mjs";
|
|
10
11
|
import "./chunk-M63AFAHO.mjs";
|
|
11
|
-
import "./chunk-DMASP6FA.mjs";
|
|
12
12
|
import "./chunk-CRCBVLUP.mjs";
|
|
13
13
|
import "./chunk-DCEG5LGX.mjs";
|
|
14
14
|
import "./chunk-L2OL7R23.mjs";
|
package/package.json
CHANGED
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
baseStyles
|
|
6
6
|
} from "./chunk-INZK6TTL.mjs";
|
|
7
|
+
import {
|
|
8
|
+
animations
|
|
9
|
+
} from "./chunk-DMASP6FA.mjs";
|
|
7
10
|
import {
|
|
8
11
|
semanticColors
|
|
9
12
|
} from "./chunk-6QXUR7SY.mjs";
|
|
10
13
|
import {
|
|
11
14
|
removeDefaultKeys
|
|
12
15
|
} from "./chunk-37PIXVP4.mjs";
|
|
13
|
-
import {
|
|
14
|
-
animations
|
|
15
|
-
} from "./chunk-DMASP6FA.mjs";
|
|
16
16
|
import {
|
|
17
17
|
commonColors
|
|
18
18
|
} from "./chunk-CRCBVLUP.mjs";
|