@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.
@@ -30,8 +30,8 @@ var toggle = tv({
30
30
  "rounded-full",
31
31
  "origin-right"
32
32
  ],
33
- startIcon: "z-0 absolute left-1.5 text-current",
34
- endIcon: "z-0 absolute right-1.5 text-default-600",
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-[checked=true]:bg-default-400",
43
- "group-data-[checked=true]:text-default-foreground"
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-[checked=true]:bg-primary",
49
- "group-data-[checked=true]:text-primary-foreground"
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-[checked=true]:bg-secondary",
55
- "group-data-[checked=true]:text-secondary-foreground"
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-[checked=true]:bg-success",
61
- "group-data-[checked=true]:text-success-foreground"
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-[checked=true]:bg-warning",
67
- "group-data-[checked=true]:text-warning-foreground"
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-[checked=true]:bg-danger",
73
- "data-[checked=true]:text-danger-foreground"
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-[checked=true]:ml-3",
82
+ "group-data-[selected=true]:ml-3",
83
83
  "group-data-[pressed=true]:w-4",
84
- "group-data-[checked]:group-data-[pressed]:ml-2"
84
+ "group-data-[selected]:group-data-[pressed]:ml-2"
85
85
  ],
86
- startIcon: "text-[0.6rem] left-1",
87
- endIcon: "text-[0.6rem] right-1",
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-[checked=true]:ml-4",
94
+ "group-data-[selected=true]:ml-4",
95
95
  "group-data-[pressed=true]:w-5",
96
- "group-data-[checked]:group-data-[pressed]:ml-4"
96
+ "group-data-[selected]:group-data-[pressed]:ml-4"
97
97
  ],
98
- endIcon: "text-xs",
99
- startIcon: "text-xs",
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-[checked=true]:ml-5",
106
+ "group-data-[selected=true]:ml-5",
107
107
  "group-data-[pressed=true]:w-6",
108
- "group-data-[checked]:group-data-[pressed]:ml-4"
108
+ "group-data-[selected]:group-data-[pressed]:ml-4"
109
109
  ],
110
- endIcon: "text-sm",
111
- startIcon: "text-sm",
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-[checked=true]:ml-6",
118
+ "group-data-[selected=true]:ml-6",
119
119
  "group-data-[pressed=true]:w-7",
120
- "group-data-[checked]:group-data-[pressed]:ml-5"
120
+ "group-data-[selected]:group-data-[pressed]:ml-5"
121
121
  ],
122
- endIcon: "text-base",
123
- startIcon: "text-base",
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-[checked=true]:ml-7",
130
+ "group-data-[selected=true]:ml-7",
131
131
  "group-data-[pressed=true]:w-8",
132
- "group-data-[checked]:group-data-[pressed]:ml-6"
132
+ "group-data-[selected]:group-data-[pressed]:ml-6"
133
133
  ],
134
- endIcon: "text-base",
135
- startIcon: "text-base",
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
- startIcon: [
152
+ startContent: [
153
153
  "opacity-0",
154
154
  "scale-50",
155
155
  "transition-transform-opacity",
156
- "group-data-[checked=true]:scale-100",
157
- "group-data-[checked=true]:opacity-100"
156
+ "group-data-[selected=true]:scale-100",
157
+ "group-data-[selected=true]:opacity-100"
158
158
  ],
159
- endIcon: [
159
+ endContent: [
160
160
  "opacity-100",
161
161
  "transition-transform-opacity",
162
- "group-data-[checked=true]:translate-x-3",
163
- "group-data-[checked=true]:opacity-0"
162
+ "group-data-[selected=true]:translate-x-3",
163
+ "group-data-[selected=true]:opacity-0"
164
164
  ]
165
165
  }
166
166
  }
@@ -3375,8 +3375,8 @@ var toggle = (0, import_tailwind_variants16.tv)({
3375
3375
  "rounded-full",
3376
3376
  "origin-right"
3377
3377
  ],
3378
- startIcon: "z-0 absolute left-1.5 text-current",
3379
- endIcon: "z-0 absolute right-1.5 text-default-600",
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-[checked=true]:bg-default-400",
3388
- "group-data-[checked=true]:text-default-foreground"
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-[checked=true]:bg-primary",
3394
- "group-data-[checked=true]:text-primary-foreground"
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-[checked=true]:bg-secondary",
3400
- "group-data-[checked=true]:text-secondary-foreground"
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-[checked=true]:bg-success",
3406
- "group-data-[checked=true]:text-success-foreground"
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-[checked=true]:bg-warning",
3412
- "group-data-[checked=true]:text-warning-foreground"
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-[checked=true]:bg-danger",
3418
- "data-[checked=true]:text-danger-foreground"
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-[checked=true]:ml-3",
3427
+ "group-data-[selected=true]:ml-3",
3428
3428
  "group-data-[pressed=true]:w-4",
3429
- "group-data-[checked]:group-data-[pressed]:ml-2"
3429
+ "group-data-[selected]:group-data-[pressed]:ml-2"
3430
3430
  ],
3431
- startIcon: "text-[0.6rem] left-1",
3432
- endIcon: "text-[0.6rem] right-1",
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-[checked=true]:ml-4",
3439
+ "group-data-[selected=true]:ml-4",
3440
3440
  "group-data-[pressed=true]:w-5",
3441
- "group-data-[checked]:group-data-[pressed]:ml-4"
3441
+ "group-data-[selected]:group-data-[pressed]:ml-4"
3442
3442
  ],
3443
- endIcon: "text-xs",
3444
- startIcon: "text-xs",
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-[checked=true]:ml-5",
3451
+ "group-data-[selected=true]:ml-5",
3452
3452
  "group-data-[pressed=true]:w-6",
3453
- "group-data-[checked]:group-data-[pressed]:ml-4"
3453
+ "group-data-[selected]:group-data-[pressed]:ml-4"
3454
3454
  ],
3455
- endIcon: "text-sm",
3456
- startIcon: "text-sm",
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-[checked=true]:ml-6",
3463
+ "group-data-[selected=true]:ml-6",
3464
3464
  "group-data-[pressed=true]:w-7",
3465
- "group-data-[checked]:group-data-[pressed]:ml-5"
3465
+ "group-data-[selected]:group-data-[pressed]:ml-5"
3466
3466
  ],
3467
- endIcon: "text-base",
3468
- startIcon: "text-base",
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-[checked=true]:ml-7",
3475
+ "group-data-[selected=true]:ml-7",
3476
3476
  "group-data-[pressed=true]:w-8",
3477
- "group-data-[checked]:group-data-[pressed]:ml-6"
3477
+ "group-data-[selected]:group-data-[pressed]:ml-6"
3478
3478
  ],
3479
- endIcon: "text-base",
3480
- startIcon: "text-base",
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
- startIcon: [
3497
+ startContent: [
3498
3498
  "opacity-0",
3499
3499
  "scale-50",
3500
3500
  "transition-transform-opacity",
3501
- "group-data-[checked=true]:scale-100",
3502
- "group-data-[checked=true]:opacity-100"
3501
+ "group-data-[selected=true]:scale-100",
3502
+ "group-data-[selected=true]:opacity-100"
3503
3503
  ],
3504
- endIcon: [
3504
+ endContent: [
3505
3505
  "opacity-100",
3506
3506
  "transition-transform-opacity",
3507
- "group-data-[checked=true]:translate-x-3",
3508
- "group-data-[checked=true]:opacity-0"
3507
+ "group-data-[selected=true]:translate-x-3",
3508
+ "group-data-[selected=true]:opacity-0"
3509
3509
  ]
3510
3510
  }
3511
3511
  }
@@ -13,7 +13,7 @@ import {
13
13
  } from "../chunk-5DRF22QY.mjs";
14
14
  import {
15
15
  toggle
16
- } from "../chunk-UVH5HICF.mjs";
16
+ } from "../chunk-42RVICJN.mjs";
17
17
  import {
18
18
  user
19
19
  } from "../chunk-ZFYINWFR.mjs";
@@ -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, startIcon, endIcon} = toggle({...})
8
+ * const {base, wrapper, thumb, thumbIcon, label, startContent, endContent} = toggle({...})
9
9
  *
10
10
  * @example
11
11
  * <label
12
12
  * className={base())}
13
- * data-checked={true/false}
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={startIcon()}>...</svg>
21
+ * <svg className={startContent()}>...</svg>
22
22
  * <span className={thumb()}>
23
23
  * <svg className={thumbIcon()}>...</svg>
24
24
  * </span>
25
- * <svg className={endIcon()}>...</svg>
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
- startIcon: string;
56
- endIcon: string;
55
+ startContent: string;
56
+ endContent: string;
57
57
  label: string;
58
58
  };
59
59
  sm: {
60
60
  wrapper: string;
61
61
  thumb: string[];
62
- endIcon: string;
63
- startIcon: string;
62
+ endContent: string;
63
+ startContent: string;
64
64
  label: string;
65
65
  };
66
66
  md: {
67
67
  wrapper: string;
68
68
  thumb: string[];
69
- endIcon: string;
70
- startIcon: string;
69
+ endContent: string;
70
+ startContent: string;
71
71
  label: string;
72
72
  };
73
73
  lg: {
74
74
  wrapper: string;
75
75
  thumb: string[];
76
- endIcon: string;
77
- startIcon: string;
76
+ endContent: string;
77
+ startContent: string;
78
78
  label: string;
79
79
  };
80
80
  xl: {
81
81
  wrapper: string;
82
82
  thumb: string[];
83
- endIcon: string;
84
- startIcon: string;
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
- startIcon: string[];
102
- endIcon: string[];
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
- startIcon: string;
110
- endIcon: string;
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
- startIcon: string;
139
- endIcon: string;
138
+ startContent: string;
139
+ endContent: string;
140
140
  label: string;
141
141
  };
142
142
  sm: {
143
143
  wrapper: string;
144
144
  thumb: string[];
145
- endIcon: string;
146
- startIcon: string;
145
+ endContent: string;
146
+ startContent: string;
147
147
  label: string;
148
148
  };
149
149
  md: {
150
150
  wrapper: string;
151
151
  thumb: string[];
152
- endIcon: string;
153
- startIcon: string;
152
+ endContent: string;
153
+ startContent: string;
154
154
  label: string;
155
155
  };
156
156
  lg: {
157
157
  wrapper: string;
158
158
  thumb: string[];
159
- endIcon: string;
160
- startIcon: string;
159
+ endContent: string;
160
+ startContent: string;
161
161
  label: string;
162
162
  };
163
163
  xl: {
164
164
  wrapper: string;
165
165
  thumb: string[];
166
- endIcon: string;
167
- startIcon: string;
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
- startIcon: string[];
185
- endIcon: string[];
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
- startIcon: "z-0 absolute left-1.5 text-current",
58
- endIcon: "z-0 absolute right-1.5 text-default-600",
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-[checked=true]:bg-default-400",
67
- "group-data-[checked=true]:text-default-foreground"
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-[checked=true]:bg-primary",
73
- "group-data-[checked=true]:text-primary-foreground"
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-[checked=true]:bg-secondary",
79
- "group-data-[checked=true]:text-secondary-foreground"
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-[checked=true]:bg-success",
85
- "group-data-[checked=true]:text-success-foreground"
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-[checked=true]:bg-warning",
91
- "group-data-[checked=true]:text-warning-foreground"
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-[checked=true]:bg-danger",
97
- "data-[checked=true]:text-danger-foreground"
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-[checked=true]:ml-3",
106
+ "group-data-[selected=true]:ml-3",
107
107
  "group-data-[pressed=true]:w-4",
108
- "group-data-[checked]:group-data-[pressed]:ml-2"
108
+ "group-data-[selected]:group-data-[pressed]:ml-2"
109
109
  ],
110
- startIcon: "text-[0.6rem] left-1",
111
- endIcon: "text-[0.6rem] right-1",
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-[checked=true]:ml-4",
118
+ "group-data-[selected=true]:ml-4",
119
119
  "group-data-[pressed=true]:w-5",
120
- "group-data-[checked]:group-data-[pressed]:ml-4"
120
+ "group-data-[selected]:group-data-[pressed]:ml-4"
121
121
  ],
122
- endIcon: "text-xs",
123
- startIcon: "text-xs",
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-[checked=true]:ml-5",
130
+ "group-data-[selected=true]:ml-5",
131
131
  "group-data-[pressed=true]:w-6",
132
- "group-data-[checked]:group-data-[pressed]:ml-4"
132
+ "group-data-[selected]:group-data-[pressed]:ml-4"
133
133
  ],
134
- endIcon: "text-sm",
135
- startIcon: "text-sm",
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-[checked=true]:ml-6",
142
+ "group-data-[selected=true]:ml-6",
143
143
  "group-data-[pressed=true]:w-7",
144
- "group-data-[checked]:group-data-[pressed]:ml-5"
144
+ "group-data-[selected]:group-data-[pressed]:ml-5"
145
145
  ],
146
- endIcon: "text-base",
147
- startIcon: "text-base",
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-[checked=true]:ml-7",
154
+ "group-data-[selected=true]:ml-7",
155
155
  "group-data-[pressed=true]:w-8",
156
- "group-data-[checked]:group-data-[pressed]:ml-6"
156
+ "group-data-[selected]:group-data-[pressed]:ml-6"
157
157
  ],
158
- endIcon: "text-base",
159
- startIcon: "text-base",
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
- startIcon: [
176
+ startContent: [
177
177
  "opacity-0",
178
178
  "scale-50",
179
179
  "transition-transform-opacity",
180
- "group-data-[checked=true]:scale-100",
181
- "group-data-[checked=true]:opacity-100"
180
+ "group-data-[selected=true]:scale-100",
181
+ "group-data-[selected=true]:opacity-100"
182
182
  ],
183
- endIcon: [
183
+ endContent: [
184
184
  "opacity-100",
185
185
  "transition-transform-opacity",
186
- "group-data-[checked=true]:translate-x-3",
187
- "group-data-[checked=true]:opacity-0"
186
+ "group-data-[selected=true]:translate-x-3",
187
+ "group-data-[selected=true]:opacity-0"
188
188
  ]
189
189
  }
190
190
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  toggle
3
- } from "../chunk-UVH5HICF.mjs";
3
+ } from "../chunk-42RVICJN.mjs";
4
4
  export {
5
5
  toggle
6
6
  };
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
- startIcon: "z-0 absolute left-1.5 text-current",
3411
- endIcon: "z-0 absolute right-1.5 text-default-600",
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-[checked=true]:bg-default-400",
3420
- "group-data-[checked=true]:text-default-foreground"
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-[checked=true]:bg-primary",
3426
- "group-data-[checked=true]:text-primary-foreground"
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-[checked=true]:bg-secondary",
3432
- "group-data-[checked=true]:text-secondary-foreground"
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-[checked=true]:bg-success",
3438
- "group-data-[checked=true]:text-success-foreground"
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-[checked=true]:bg-warning",
3444
- "group-data-[checked=true]:text-warning-foreground"
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-[checked=true]:bg-danger",
3450
- "data-[checked=true]:text-danger-foreground"
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-[checked=true]:ml-3",
3459
+ "group-data-[selected=true]:ml-3",
3460
3460
  "group-data-[pressed=true]:w-4",
3461
- "group-data-[checked]:group-data-[pressed]:ml-2"
3461
+ "group-data-[selected]:group-data-[pressed]:ml-2"
3462
3462
  ],
3463
- startIcon: "text-[0.6rem] left-1",
3464
- endIcon: "text-[0.6rem] right-1",
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-[checked=true]:ml-4",
3471
+ "group-data-[selected=true]:ml-4",
3472
3472
  "group-data-[pressed=true]:w-5",
3473
- "group-data-[checked]:group-data-[pressed]:ml-4"
3473
+ "group-data-[selected]:group-data-[pressed]:ml-4"
3474
3474
  ],
3475
- endIcon: "text-xs",
3476
- startIcon: "text-xs",
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-[checked=true]:ml-5",
3483
+ "group-data-[selected=true]:ml-5",
3484
3484
  "group-data-[pressed=true]:w-6",
3485
- "group-data-[checked]:group-data-[pressed]:ml-4"
3485
+ "group-data-[selected]:group-data-[pressed]:ml-4"
3486
3486
  ],
3487
- endIcon: "text-sm",
3488
- startIcon: "text-sm",
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-[checked=true]:ml-6",
3495
+ "group-data-[selected=true]:ml-6",
3496
3496
  "group-data-[pressed=true]:w-7",
3497
- "group-data-[checked]:group-data-[pressed]:ml-5"
3497
+ "group-data-[selected]:group-data-[pressed]:ml-5"
3498
3498
  ],
3499
- endIcon: "text-base",
3500
- startIcon: "text-base",
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-[checked=true]:ml-7",
3507
+ "group-data-[selected=true]:ml-7",
3508
3508
  "group-data-[pressed=true]:w-8",
3509
- "group-data-[checked]:group-data-[pressed]:ml-6"
3509
+ "group-data-[selected]:group-data-[pressed]:ml-6"
3510
3510
  ],
3511
- endIcon: "text-base",
3512
- startIcon: "text-base",
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
- startIcon: [
3529
+ startContent: [
3530
3530
  "opacity-0",
3531
3531
  "scale-50",
3532
3532
  "transition-transform-opacity",
3533
- "group-data-[checked=true]:scale-100",
3534
- "group-data-[checked=true]:opacity-100"
3533
+ "group-data-[selected=true]:scale-100",
3534
+ "group-data-[selected=true]:opacity-100"
3535
3535
  ],
3536
- endIcon: [
3536
+ endContent: [
3537
3537
  "opacity-100",
3538
3538
  "transition-transform-opacity",
3539
- "group-data-[checked=true]:translate-x-3",
3540
- "group-data-[checked=true]:opacity-0"
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-UVH5HICF.mjs";
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-QGXXHT3T.mjs";
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-QGXXHT3T.mjs";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextui-org/theme",
3
- "version": "0.0.0-dev-v2-20230604191549",
3
+ "version": "0.0.0-dev-v2-20230604204500",
4
4
  "description": "The default theme for NextUI components",
5
5
  "keywords": [
6
6
  "theme",
@@ -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";