@nextui-org/theme 0.0.0-dev-v2-20230407131834 → 0.0.0-dev-v2-20230407185204

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.
@@ -22,7 +22,8 @@ var popover = tv({
22
22
  "text-base",
23
23
  "!outline-none"
24
24
  ],
25
- trigger: [],
25
+ trigger: ["z-10"],
26
+ backdrop: ["hidden"],
26
27
  arrow: [
27
28
  "-z-10",
28
29
  "absolute",
@@ -65,9 +66,9 @@ var popover = tv({
65
66
  arrow: "border-2 border-inherit !bg-background"
66
67
  },
67
68
  light: { base: "!bg-transparent", arrow: "hidden" },
68
- faded: { base: "border-1.5", arrow: "border-1.5 border-inherit" },
69
+ faded: { base: "border", arrow: "border border-inherit" },
69
70
  flat: { base: "" },
70
- shadow: { base: "" }
71
+ shadow: { base: "border border-neutral-100", arrow: "border border-neutral-100" }
71
72
  },
72
73
  color: {
73
74
  neutral: { base: colorVariants.solid.neutral },
@@ -87,27 +88,39 @@ var popover = tv({
87
88
  xl: { base: "rounded-xl" },
88
89
  full: { base: "rounded-full" }
89
90
  },
91
+ backdropVariant: {
92
+ transparent: {},
93
+ opaque: {
94
+ backdrop: "bg-black/30 backdrop-opacity-50"
95
+ },
96
+ blur: {
97
+ backdrop: "backdrop-blur-sm backdrop-saturate-150 bg-black/20"
98
+ }
99
+ },
90
100
  isFocusVisible: {
91
101
  true: {
92
102
  base: [...ringClasses]
93
103
  }
94
104
  },
95
- disableAnimation: {
96
- true: { base: "animate-none" }
97
- },
98
- isTriggerForeground: {
99
- true: {},
100
- false: {
105
+ triggerScaleOnOpen: {
106
+ true: {
101
107
  trigger: ["aria-expanded:scale-95", "aria-expanded:opacity-70", "subpixel-antialiased"]
108
+ },
109
+ false: {}
110
+ },
111
+ disableAnimation: {
112
+ true: {
113
+ base: "animate-none"
102
114
  }
103
115
  }
104
116
  },
105
117
  defaultVariants: {
106
118
  variant: "solid",
107
119
  color: "neutral",
108
- radius: "lg",
120
+ radius: "xl",
121
+ backdropVariant: "transparent",
109
122
  disableAnimation: false,
110
- isTriggerForeground: false
123
+ triggerScaleOnOpen: true
111
124
  },
112
125
  compoundVariants: [
113
126
  {
@@ -286,6 +299,12 @@ var popover = tv({
286
299
  variant: "light",
287
300
  color: "danger",
288
301
  class: { base: colorVariants.light.danger }
302
+ },
303
+ {
304
+ backdropVariant: ["opaque", "blur"],
305
+ class: {
306
+ backdrop: "block w-full h-full fixed inset-0 -z-30"
307
+ }
289
308
  }
290
309
  ]
291
310
  });
@@ -1172,7 +1172,8 @@ var popover = (0, import_tailwind_variants11.tv)({
1172
1172
  "text-base",
1173
1173
  "!outline-none"
1174
1174
  ],
1175
- trigger: [],
1175
+ trigger: ["z-10"],
1176
+ backdrop: ["hidden"],
1176
1177
  arrow: [
1177
1178
  "-z-10",
1178
1179
  "absolute",
@@ -1215,9 +1216,9 @@ var popover = (0, import_tailwind_variants11.tv)({
1215
1216
  arrow: "border-2 border-inherit !bg-background"
1216
1217
  },
1217
1218
  light: { base: "!bg-transparent", arrow: "hidden" },
1218
- faded: { base: "border-1.5", arrow: "border-1.5 border-inherit" },
1219
+ faded: { base: "border", arrow: "border border-inherit" },
1219
1220
  flat: { base: "" },
1220
- shadow: { base: "" }
1221
+ shadow: { base: "border border-neutral-100", arrow: "border border-neutral-100" }
1221
1222
  },
1222
1223
  color: {
1223
1224
  neutral: { base: colorVariants.solid.neutral },
@@ -1237,27 +1238,39 @@ var popover = (0, import_tailwind_variants11.tv)({
1237
1238
  xl: { base: "rounded-xl" },
1238
1239
  full: { base: "rounded-full" }
1239
1240
  },
1241
+ backdropVariant: {
1242
+ transparent: {},
1243
+ opaque: {
1244
+ backdrop: "bg-black/30 backdrop-opacity-50"
1245
+ },
1246
+ blur: {
1247
+ backdrop: "backdrop-blur-sm backdrop-saturate-150 bg-black/20"
1248
+ }
1249
+ },
1240
1250
  isFocusVisible: {
1241
1251
  true: {
1242
1252
  base: [...ringClasses]
1243
1253
  }
1244
1254
  },
1245
- disableAnimation: {
1246
- true: { base: "animate-none" }
1247
- },
1248
- isTriggerForeground: {
1249
- true: {},
1250
- false: {
1255
+ triggerScaleOnOpen: {
1256
+ true: {
1251
1257
  trigger: ["aria-expanded:scale-95", "aria-expanded:opacity-70", "subpixel-antialiased"]
1258
+ },
1259
+ false: {}
1260
+ },
1261
+ disableAnimation: {
1262
+ true: {
1263
+ base: "animate-none"
1252
1264
  }
1253
1265
  }
1254
1266
  },
1255
1267
  defaultVariants: {
1256
1268
  variant: "solid",
1257
1269
  color: "neutral",
1258
- radius: "lg",
1270
+ radius: "xl",
1271
+ backdropVariant: "transparent",
1259
1272
  disableAnimation: false,
1260
- isTriggerForeground: false
1273
+ triggerScaleOnOpen: true
1261
1274
  },
1262
1275
  compoundVariants: [
1263
1276
  {
@@ -1436,6 +1449,12 @@ var popover = (0, import_tailwind_variants11.tv)({
1436
1449
  variant: "light",
1437
1450
  color: "danger",
1438
1451
  class: { base: colorVariants.light.danger }
1452
+ },
1453
+ {
1454
+ backdropVariant: ["opaque", "blur"],
1455
+ class: {
1456
+ backdrop: "block w-full h-full fixed inset-0 -z-30"
1457
+ }
1439
1458
  }
1440
1459
  ]
1441
1460
  });
@@ -7,7 +7,7 @@ import {
7
7
  } from "../chunk-7BYRB2YS.mjs";
8
8
  import {
9
9
  popover
10
- } from "../chunk-O6WKKOLY.mjs";
10
+ } from "../chunk-NOS5D5X5.mjs";
11
11
  import {
12
12
  progress
13
13
  } from "../chunk-I7DM7NL7.mjs";
@@ -38,6 +38,7 @@ declare const popover: tailwind_variants.TVReturnType<{
38
38
  };
39
39
  shadow: {
40
40
  base: string;
41
+ arrow: string;
41
42
  };
42
43
  };
43
44
  color: {
@@ -86,25 +87,35 @@ declare const popover: tailwind_variants.TVReturnType<{
86
87
  base: string;
87
88
  };
88
89
  };
90
+ backdropVariant: {
91
+ transparent: {};
92
+ opaque: {
93
+ backdrop: string;
94
+ };
95
+ blur: {
96
+ backdrop: string;
97
+ };
98
+ };
89
99
  isFocusVisible: {
90
100
  true: {
91
101
  base: string[];
92
102
  };
93
103
  };
94
- disableAnimation: {
104
+ triggerScaleOnOpen: {
95
105
  true: {
96
- base: string;
106
+ trigger: string[];
97
107
  };
108
+ false: {};
98
109
  };
99
- isTriggerForeground: {
100
- true: {};
101
- false: {
102
- trigger: string[];
110
+ disableAnimation: {
111
+ true: {
112
+ base: string;
103
113
  };
104
114
  };
105
115
  }, unknown, {
106
116
  base: string[];
107
- trigger: never[];
117
+ trigger: string[];
118
+ backdrop: string[];
108
119
  arrow: string[];
109
120
  }, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
110
121
  variant: {
@@ -128,6 +139,7 @@ declare const popover: tailwind_variants.TVReturnType<{
128
139
  };
129
140
  shadow: {
130
141
  base: string;
142
+ arrow: string;
131
143
  };
132
144
  };
133
145
  color: {
@@ -176,20 +188,29 @@ declare const popover: tailwind_variants.TVReturnType<{
176
188
  base: string;
177
189
  };
178
190
  };
191
+ backdropVariant: {
192
+ transparent: {};
193
+ opaque: {
194
+ backdrop: string;
195
+ };
196
+ blur: {
197
+ backdrop: string;
198
+ };
199
+ };
179
200
  isFocusVisible: {
180
201
  true: {
181
202
  base: string[];
182
203
  };
183
204
  };
184
- disableAnimation: {
205
+ triggerScaleOnOpen: {
185
206
  true: {
186
- base: string;
207
+ trigger: string[];
187
208
  };
209
+ false: {};
188
210
  };
189
- isTriggerForeground: {
190
- true: {};
191
- false: {
192
- trigger: string[];
211
+ disableAnimation: {
212
+ true: {
213
+ base: string;
193
214
  };
194
215
  };
195
216
  }, unknown>>;
@@ -125,7 +125,8 @@ var popover = (0, import_tailwind_variants.tv)({
125
125
  "text-base",
126
126
  "!outline-none"
127
127
  ],
128
- trigger: [],
128
+ trigger: ["z-10"],
129
+ backdrop: ["hidden"],
129
130
  arrow: [
130
131
  "-z-10",
131
132
  "absolute",
@@ -168,9 +169,9 @@ var popover = (0, import_tailwind_variants.tv)({
168
169
  arrow: "border-2 border-inherit !bg-background"
169
170
  },
170
171
  light: { base: "!bg-transparent", arrow: "hidden" },
171
- faded: { base: "border-1.5", arrow: "border-1.5 border-inherit" },
172
+ faded: { base: "border", arrow: "border border-inherit" },
172
173
  flat: { base: "" },
173
- shadow: { base: "" }
174
+ shadow: { base: "border border-neutral-100", arrow: "border border-neutral-100" }
174
175
  },
175
176
  color: {
176
177
  neutral: { base: colorVariants.solid.neutral },
@@ -190,27 +191,39 @@ var popover = (0, import_tailwind_variants.tv)({
190
191
  xl: { base: "rounded-xl" },
191
192
  full: { base: "rounded-full" }
192
193
  },
194
+ backdropVariant: {
195
+ transparent: {},
196
+ opaque: {
197
+ backdrop: "bg-black/30 backdrop-opacity-50"
198
+ },
199
+ blur: {
200
+ backdrop: "backdrop-blur-sm backdrop-saturate-150 bg-black/20"
201
+ }
202
+ },
193
203
  isFocusVisible: {
194
204
  true: {
195
205
  base: [...ringClasses]
196
206
  }
197
207
  },
198
- disableAnimation: {
199
- true: { base: "animate-none" }
200
- },
201
- isTriggerForeground: {
202
- true: {},
203
- false: {
208
+ triggerScaleOnOpen: {
209
+ true: {
204
210
  trigger: ["aria-expanded:scale-95", "aria-expanded:opacity-70", "subpixel-antialiased"]
211
+ },
212
+ false: {}
213
+ },
214
+ disableAnimation: {
215
+ true: {
216
+ base: "animate-none"
205
217
  }
206
218
  }
207
219
  },
208
220
  defaultVariants: {
209
221
  variant: "solid",
210
222
  color: "neutral",
211
- radius: "lg",
223
+ radius: "xl",
224
+ backdropVariant: "transparent",
212
225
  disableAnimation: false,
213
- isTriggerForeground: false
226
+ triggerScaleOnOpen: true
214
227
  },
215
228
  compoundVariants: [
216
229
  {
@@ -389,6 +402,12 @@ var popover = (0, import_tailwind_variants.tv)({
389
402
  variant: "light",
390
403
  color: "danger",
391
404
  class: { base: colorVariants.light.danger }
405
+ },
406
+ {
407
+ backdropVariant: ["opaque", "blur"],
408
+ class: {
409
+ backdrop: "block w-full h-full fixed inset-0 -z-30"
410
+ }
392
411
  }
393
412
  ]
394
413
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  popover
3
- } from "../chunk-O6WKKOLY.mjs";
3
+ } from "../chunk-NOS5D5X5.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
6
  import "../chunk-LGGZKBOO.mjs";
package/dist/index.js CHANGED
@@ -1195,7 +1195,8 @@ var popover = (0, import_tailwind_variants11.tv)({
1195
1195
  "text-base",
1196
1196
  "!outline-none"
1197
1197
  ],
1198
- trigger: [],
1198
+ trigger: ["z-10"],
1199
+ backdrop: ["hidden"],
1199
1200
  arrow: [
1200
1201
  "-z-10",
1201
1202
  "absolute",
@@ -1238,9 +1239,9 @@ var popover = (0, import_tailwind_variants11.tv)({
1238
1239
  arrow: "border-2 border-inherit !bg-background"
1239
1240
  },
1240
1241
  light: { base: "!bg-transparent", arrow: "hidden" },
1241
- faded: { base: "border-1.5", arrow: "border-1.5 border-inherit" },
1242
+ faded: { base: "border", arrow: "border border-inherit" },
1242
1243
  flat: { base: "" },
1243
- shadow: { base: "" }
1244
+ shadow: { base: "border border-neutral-100", arrow: "border border-neutral-100" }
1244
1245
  },
1245
1246
  color: {
1246
1247
  neutral: { base: colorVariants.solid.neutral },
@@ -1260,27 +1261,39 @@ var popover = (0, import_tailwind_variants11.tv)({
1260
1261
  xl: { base: "rounded-xl" },
1261
1262
  full: { base: "rounded-full" }
1262
1263
  },
1264
+ backdropVariant: {
1265
+ transparent: {},
1266
+ opaque: {
1267
+ backdrop: "bg-black/30 backdrop-opacity-50"
1268
+ },
1269
+ blur: {
1270
+ backdrop: "backdrop-blur-sm backdrop-saturate-150 bg-black/20"
1271
+ }
1272
+ },
1263
1273
  isFocusVisible: {
1264
1274
  true: {
1265
1275
  base: [...ringClasses]
1266
1276
  }
1267
1277
  },
1268
- disableAnimation: {
1269
- true: { base: "animate-none" }
1270
- },
1271
- isTriggerForeground: {
1272
- true: {},
1273
- false: {
1278
+ triggerScaleOnOpen: {
1279
+ true: {
1274
1280
  trigger: ["aria-expanded:scale-95", "aria-expanded:opacity-70", "subpixel-antialiased"]
1281
+ },
1282
+ false: {}
1283
+ },
1284
+ disableAnimation: {
1285
+ true: {
1286
+ base: "animate-none"
1275
1287
  }
1276
1288
  }
1277
1289
  },
1278
1290
  defaultVariants: {
1279
1291
  variant: "solid",
1280
1292
  color: "neutral",
1281
- radius: "lg",
1293
+ radius: "xl",
1294
+ backdropVariant: "transparent",
1282
1295
  disableAnimation: false,
1283
- isTriggerForeground: false
1296
+ triggerScaleOnOpen: true
1284
1297
  },
1285
1298
  compoundVariants: [
1286
1299
  {
@@ -1459,6 +1472,12 @@ var popover = (0, import_tailwind_variants11.tv)({
1459
1472
  variant: "light",
1460
1473
  color: "danger",
1461
1474
  class: { base: colorVariants.light.danger }
1475
+ },
1476
+ {
1477
+ backdropVariant: ["opaque", "blur"],
1478
+ class: {
1479
+ backdrop: "block w-full h-full fixed inset-0 -z-30"
1480
+ }
1462
1481
  }
1463
1482
  ]
1464
1483
  });
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-7BYRB2YS.mjs";
8
8
  import {
9
9
  popover
10
- } from "./chunk-O6WKKOLY.mjs";
10
+ } from "./chunk-NOS5D5X5.mjs";
11
11
  import {
12
12
  progress
13
13
  } from "./chunk-I7DM7NL7.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextui-org/theme",
3
- "version": "0.0.0-dev-v2-20230407131834",
3
+ "version": "0.0.0-dev-v2-20230407185204",
4
4
  "description": "The default theme for NextUI components",
5
5
  "keywords": [
6
6
  "theme",