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

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,6 +22,7 @@ var popover = tv({
22
22
  "text-base",
23
23
  "!outline-none"
24
24
  ],
25
+ trigger: [],
25
26
  arrow: [
26
27
  "-z-10",
27
28
  "absolute",
@@ -93,12 +94,20 @@ var popover = tv({
93
94
  },
94
95
  disableAnimation: {
95
96
  true: { base: "animate-none" }
97
+ },
98
+ isTriggerForeground: {
99
+ true: {},
100
+ false: {
101
+ trigger: ["aria-expanded:scale-95", "aria-expanded:opacity-70", "subpixel-antialiased"]
102
+ }
96
103
  }
97
104
  },
98
105
  defaultVariants: {
99
106
  variant: "solid",
100
107
  color: "neutral",
101
- radius: "lg"
108
+ radius: "lg",
109
+ disableAnimation: false,
110
+ isTriggerForeground: false
102
111
  },
103
112
  compoundVariants: [
104
113
  {
@@ -1172,6 +1172,7 @@ var popover = (0, import_tailwind_variants11.tv)({
1172
1172
  "text-base",
1173
1173
  "!outline-none"
1174
1174
  ],
1175
+ trigger: [],
1175
1176
  arrow: [
1176
1177
  "-z-10",
1177
1178
  "absolute",
@@ -1243,12 +1244,20 @@ var popover = (0, import_tailwind_variants11.tv)({
1243
1244
  },
1244
1245
  disableAnimation: {
1245
1246
  true: { base: "animate-none" }
1247
+ },
1248
+ isTriggerForeground: {
1249
+ true: {},
1250
+ false: {
1251
+ trigger: ["aria-expanded:scale-95", "aria-expanded:opacity-70", "subpixel-antialiased"]
1252
+ }
1246
1253
  }
1247
1254
  },
1248
1255
  defaultVariants: {
1249
1256
  variant: "solid",
1250
1257
  color: "neutral",
1251
- radius: "lg"
1258
+ radius: "lg",
1259
+ disableAnimation: false,
1260
+ isTriggerForeground: false
1252
1261
  },
1253
1262
  compoundVariants: [
1254
1263
  {
@@ -1,19 +1,13 @@
1
1
  import "../chunk-O2BO77DA.mjs";
2
- import {
3
- toggle
4
- } from "../chunk-GJCSKHK6.mjs";
5
2
  import {
6
3
  user
7
4
  } from "../chunk-FS36US4S.mjs";
8
- import {
9
- link
10
- } from "../chunk-5OE5CWK6.mjs";
11
5
  import {
12
6
  pagination
13
7
  } from "../chunk-7BYRB2YS.mjs";
14
8
  import {
15
9
  popover
16
- } from "../chunk-BM7LX6FA.mjs";
10
+ } from "../chunk-O6WKKOLY.mjs";
17
11
  import {
18
12
  progress
19
13
  } from "../chunk-I7DM7NL7.mjs";
@@ -30,8 +24,8 @@ import {
30
24
  spinner
31
25
  } from "../chunk-CO6ANWRA.mjs";
32
26
  import {
33
- checkboxGroup
34
- } from "../chunk-U77YMEWM.mjs";
27
+ toggle
28
+ } from "../chunk-GJCSKHK6.mjs";
35
29
  import {
36
30
  checkbox
37
31
  } from "../chunk-NJQP2VWT.mjs";
@@ -51,8 +45,8 @@ import {
51
45
  input
52
46
  } from "../chunk-6YCEBN5V.mjs";
53
47
  import {
54
- accordionItem
55
- } from "../chunk-RD42SVXB.mjs";
48
+ link
49
+ } from "../chunk-5OE5CWK6.mjs";
56
50
  import {
57
51
  accordion
58
52
  } from "../chunk-YYBLBQIV.mjs";
@@ -74,6 +68,12 @@ import {
74
68
  import {
75
69
  card
76
70
  } from "../chunk-HESJI33K.mjs";
71
+ import {
72
+ checkboxGroup
73
+ } from "../chunk-U77YMEWM.mjs";
74
+ import {
75
+ accordionItem
76
+ } from "../chunk-RD42SVXB.mjs";
77
77
  import "../chunk-CMYR6AOY.mjs";
78
78
  import "../chunk-K7LK7NCE.mjs";
79
79
  import "../chunk-LGGZKBOO.mjs";
@@ -5,11 +5,11 @@ import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
5
5
  /**
6
6
  * Popover wrapper **Tailwind Variants** component
7
7
  *
8
- * const { base, arrow } = popover({...})
8
+ * const { base, trigger, arrow } = popover({...})
9
9
  *
10
10
  * @example
11
11
  * <div>
12
- * <button>your trigger</button>
12
+ * <button className={trigger()} aria-expanded="true/false">your trigger</button>
13
13
  * <div className={base()}>
14
14
  * // popover content
15
15
  * <span className={arrow()} data-placement="top/bottom/left/right..." /> // arrow
@@ -96,8 +96,15 @@ declare const popover: tailwind_variants.TVReturnType<{
96
96
  base: string;
97
97
  };
98
98
  };
99
+ isTriggerForeground: {
100
+ true: {};
101
+ false: {
102
+ trigger: string[];
103
+ };
104
+ };
99
105
  }, unknown, {
100
106
  base: string[];
107
+ trigger: never[];
101
108
  arrow: string[];
102
109
  }, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
103
110
  variant: {
@@ -179,6 +186,12 @@ declare const popover: tailwind_variants.TVReturnType<{
179
186
  base: string;
180
187
  };
181
188
  };
189
+ isTriggerForeground: {
190
+ true: {};
191
+ false: {
192
+ trigger: string[];
193
+ };
194
+ };
182
195
  }, unknown>>;
183
196
  type PopoverVariantProps = VariantProps<typeof popover>;
184
197
  type PopoverSlots = keyof ReturnType<typeof popover>;
@@ -125,6 +125,7 @@ var popover = (0, import_tailwind_variants.tv)({
125
125
  "text-base",
126
126
  "!outline-none"
127
127
  ],
128
+ trigger: [],
128
129
  arrow: [
129
130
  "-z-10",
130
131
  "absolute",
@@ -196,12 +197,20 @@ var popover = (0, import_tailwind_variants.tv)({
196
197
  },
197
198
  disableAnimation: {
198
199
  true: { base: "animate-none" }
200
+ },
201
+ isTriggerForeground: {
202
+ true: {},
203
+ false: {
204
+ trigger: ["aria-expanded:scale-95", "aria-expanded:opacity-70", "subpixel-antialiased"]
205
+ }
199
206
  }
200
207
  },
201
208
  defaultVariants: {
202
209
  variant: "solid",
203
210
  color: "neutral",
204
- radius: "lg"
211
+ radius: "lg",
212
+ disableAnimation: false,
213
+ isTriggerForeground: false
205
214
  },
206
215
  compoundVariants: [
207
216
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  popover
3
- } from "../chunk-BM7LX6FA.mjs";
3
+ } from "../chunk-O6WKKOLY.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,6 +1195,7 @@ var popover = (0, import_tailwind_variants11.tv)({
1195
1195
  "text-base",
1196
1196
  "!outline-none"
1197
1197
  ],
1198
+ trigger: [],
1198
1199
  arrow: [
1199
1200
  "-z-10",
1200
1201
  "absolute",
@@ -1266,12 +1267,20 @@ var popover = (0, import_tailwind_variants11.tv)({
1266
1267
  },
1267
1268
  disableAnimation: {
1268
1269
  true: { base: "animate-none" }
1270
+ },
1271
+ isTriggerForeground: {
1272
+ true: {},
1273
+ false: {
1274
+ trigger: ["aria-expanded:scale-95", "aria-expanded:opacity-70", "subpixel-antialiased"]
1275
+ }
1269
1276
  }
1270
1277
  },
1271
1278
  defaultVariants: {
1272
1279
  variant: "solid",
1273
1280
  color: "neutral",
1274
- radius: "lg"
1281
+ radius: "lg",
1282
+ disableAnimation: false,
1283
+ isTriggerForeground: false
1275
1284
  },
1276
1285
  compoundVariants: [
1277
1286
  {
package/dist/index.mjs CHANGED
@@ -1,19 +1,13 @@
1
1
  import "./chunk-O2BO77DA.mjs";
2
- import {
3
- toggle
4
- } from "./chunk-GJCSKHK6.mjs";
5
2
  import {
6
3
  user
7
4
  } from "./chunk-FS36US4S.mjs";
8
- import {
9
- link
10
- } from "./chunk-5OE5CWK6.mjs";
11
5
  import {
12
6
  pagination
13
7
  } from "./chunk-7BYRB2YS.mjs";
14
8
  import {
15
9
  popover
16
- } from "./chunk-BM7LX6FA.mjs";
10
+ } from "./chunk-O6WKKOLY.mjs";
17
11
  import {
18
12
  progress
19
13
  } from "./chunk-I7DM7NL7.mjs";
@@ -30,8 +24,8 @@ import {
30
24
  spinner
31
25
  } from "./chunk-CO6ANWRA.mjs";
32
26
  import {
33
- checkboxGroup
34
- } from "./chunk-U77YMEWM.mjs";
27
+ toggle
28
+ } from "./chunk-GJCSKHK6.mjs";
35
29
  import {
36
30
  checkbox
37
31
  } from "./chunk-NJQP2VWT.mjs";
@@ -51,8 +45,8 @@ import {
51
45
  input
52
46
  } from "./chunk-6YCEBN5V.mjs";
53
47
  import {
54
- accordionItem
55
- } from "./chunk-RD42SVXB.mjs";
48
+ link
49
+ } from "./chunk-5OE5CWK6.mjs";
56
50
  import {
57
51
  accordion
58
52
  } from "./chunk-YYBLBQIV.mjs";
@@ -74,6 +68,12 @@ import {
74
68
  import {
75
69
  card
76
70
  } from "./chunk-HESJI33K.mjs";
71
+ import {
72
+ checkboxGroup
73
+ } from "./chunk-U77YMEWM.mjs";
74
+ import {
75
+ accordionItem
76
+ } from "./chunk-RD42SVXB.mjs";
77
77
  import "./chunk-CMYR6AOY.mjs";
78
78
  import "./chunk-K7LK7NCE.mjs";
79
79
  import {
@@ -81,7 +81,8 @@ import {
81
81
  } from "./chunk-LGGZKBOO.mjs";
82
82
  import {
83
83
  nextui
84
- } from "./chunk-56MY6KYG.mjs";
84
+ } from "./chunk-BMY6CGCY.mjs";
85
+ import "./chunk-XLATS5QU.mjs";
85
86
  import {
86
87
  absoluteFullClasses,
87
88
  baseStyles,
@@ -89,7 +90,6 @@ import {
89
90
  ringClasses,
90
91
  translateCenterClasses
91
92
  } from "./chunk-IJCHUO4J.mjs";
92
- import "./chunk-XLATS5QU.mjs";
93
93
  import "./chunk-WQEDQHKX.mjs";
94
94
  import {
95
95
  colors
package/dist/plugin.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  nextui
3
- } from "./chunk-56MY6KYG.mjs";
4
- import "./chunk-IJCHUO4J.mjs";
3
+ } from "./chunk-BMY6CGCY.mjs";
5
4
  import "./chunk-XLATS5QU.mjs";
5
+ import "./chunk-IJCHUO4J.mjs";
6
6
  import "./chunk-WQEDQHKX.mjs";
7
7
  import "./chunk-7MQD7UA2.mjs";
8
8
  import "./chunk-Y52EXP4A.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextui-org/theme",
3
- "version": "0.0.0-dev-v2-20230407125356",
3
+ "version": "0.0.0-dev-v2-20230407131834",
4
4
  "description": "The default theme for NextUI components",
5
5
  "keywords": [
6
6
  "theme",
@@ -1,9 +1,9 @@
1
- import {
2
- baseStyles
3
- } from "./chunk-IJCHUO4J.mjs";
4
1
  import {
5
2
  utilities
6
3
  } from "./chunk-XLATS5QU.mjs";
4
+ import {
5
+ baseStyles
6
+ } from "./chunk-IJCHUO4J.mjs";
7
7
  import {
8
8
  semanticColors
9
9
  } from "./chunk-Y52EXP4A.mjs";