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

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.
@@ -1,10 +1,13 @@
1
1
  import {
2
2
  colorVariants
3
3
  } from "./chunk-LGGZKBOO.mjs";
4
+ import {
5
+ ringClasses
6
+ } from "./chunk-IJCHUO4J.mjs";
4
7
 
5
- // src/components/tooltip.ts
8
+ // src/components/popover.ts
6
9
  import { tv } from "tailwind-variants";
7
- var tooltip = tv({
10
+ var popover = tv({
8
11
  slots: {
9
12
  base: [
10
13
  "z-10",
@@ -16,7 +19,8 @@ var tooltip = tv({
16
19
  "subpixel-antialiased",
17
20
  "px-4",
18
21
  "py-1",
19
- "text-base"
22
+ "text-base",
23
+ "!outline-none"
20
24
  ],
21
25
  arrow: [
22
26
  "-z-10",
@@ -82,6 +86,11 @@ var tooltip = tv({
82
86
  xl: { base: "rounded-xl" },
83
87
  full: { base: "rounded-full" }
84
88
  },
89
+ isFocusVisible: {
90
+ true: {
91
+ base: [...ringClasses]
92
+ }
93
+ },
85
94
  disableAnimation: {
86
95
  true: { base: "animate-none" }
87
96
  }
@@ -273,5 +282,5 @@ var tooltip = tv({
273
282
  });
274
283
 
275
284
  export {
276
- tooltip
285
+ popover
277
286
  };
@@ -8,7 +8,7 @@ export { ButtonGroupVariantProps, buttonGroup } from './button-group.js';
8
8
  export { drip } from './drip.js';
9
9
  export { SpinnerSlots, SpinnerVariantProps, spinner } from './spinner.js';
10
10
  export { CodeVariantProps, code } from './code.js';
11
- export { TooltipSlots, TooltipVariantProps, tooltip } from './tooltip.js';
11
+ export { PopoverSlots, PopoverVariantProps, popover } from './popover.js';
12
12
  export { SnippetSlots, SnippetVariantProps, snippet } from './snippet.js';
13
13
  export { ChipSlots, ChipVariantProps, chip } from './chip.js';
14
14
  export { BadgeSlots, BadgeVariantProps, badge } from './badge.js';
@@ -37,13 +37,13 @@ __export(components_exports, {
37
37
  input: () => input,
38
38
  link: () => link,
39
39
  pagination: () => pagination,
40
+ popover: () => popover,
40
41
  progress: () => progress,
41
42
  radio: () => radio,
42
43
  radioGroup: () => radioGroup,
43
44
  snippet: () => snippet,
44
45
  spinner: () => spinner,
45
46
  toggle: () => toggle,
46
- tooltip: () => tooltip,
47
47
  user: () => user
48
48
  });
49
49
  module.exports = __toCommonJS(components_exports);
@@ -1155,9 +1155,9 @@ var code = (0, import_tailwind_variants10.tv)({
1155
1155
  }
1156
1156
  });
1157
1157
 
1158
- // src/components/tooltip.ts
1158
+ // src/components/popover.ts
1159
1159
  var import_tailwind_variants11 = require("tailwind-variants");
1160
- var tooltip = (0, import_tailwind_variants11.tv)({
1160
+ var popover = (0, import_tailwind_variants11.tv)({
1161
1161
  slots: {
1162
1162
  base: [
1163
1163
  "z-10",
@@ -1169,7 +1169,8 @@ var tooltip = (0, import_tailwind_variants11.tv)({
1169
1169
  "subpixel-antialiased",
1170
1170
  "px-4",
1171
1171
  "py-1",
1172
- "text-base"
1172
+ "text-base",
1173
+ "!outline-none"
1173
1174
  ],
1174
1175
  arrow: [
1175
1176
  "-z-10",
@@ -1235,6 +1236,11 @@ var tooltip = (0, import_tailwind_variants11.tv)({
1235
1236
  xl: { base: "rounded-xl" },
1236
1237
  full: { base: "rounded-full" }
1237
1238
  },
1239
+ isFocusVisible: {
1240
+ true: {
1241
+ base: [...ringClasses]
1242
+ }
1243
+ },
1238
1244
  disableAnimation: {
1239
1245
  true: { base: "animate-none" }
1240
1246
  }
@@ -4475,12 +4481,12 @@ var input = (0, import_tailwind_variants25.tv)({
4475
4481
  input,
4476
4482
  link,
4477
4483
  pagination,
4484
+ popover,
4478
4485
  progress,
4479
4486
  radio,
4480
4487
  radioGroup,
4481
4488
  snippet,
4482
4489
  spinner,
4483
4490
  toggle,
4484
- tooltip,
4485
4491
  user
4486
4492
  });
@@ -1,10 +1,19 @@
1
1
  import "../chunk-O2BO77DA.mjs";
2
+ import {
3
+ toggle
4
+ } from "../chunk-GJCSKHK6.mjs";
2
5
  import {
3
6
  user
4
7
  } from "../chunk-FS36US4S.mjs";
8
+ import {
9
+ link
10
+ } from "../chunk-5OE5CWK6.mjs";
5
11
  import {
6
12
  pagination
7
13
  } from "../chunk-7BYRB2YS.mjs";
14
+ import {
15
+ popover
16
+ } from "../chunk-BM7LX6FA.mjs";
8
17
  import {
9
18
  progress
10
19
  } from "../chunk-I7DM7NL7.mjs";
@@ -21,11 +30,8 @@ import {
21
30
  spinner
22
31
  } from "../chunk-CO6ANWRA.mjs";
23
32
  import {
24
- toggle
25
- } from "../chunk-GJCSKHK6.mjs";
26
- import {
27
- tooltip
28
- } from "../chunk-QIC7EALL.mjs";
33
+ checkboxGroup
34
+ } from "../chunk-U77YMEWM.mjs";
29
35
  import {
30
36
  checkbox
31
37
  } from "../chunk-NJQP2VWT.mjs";
@@ -45,8 +51,8 @@ import {
45
51
  input
46
52
  } from "../chunk-6YCEBN5V.mjs";
47
53
  import {
48
- link
49
- } from "../chunk-5OE5CWK6.mjs";
54
+ accordionItem
55
+ } from "../chunk-RD42SVXB.mjs";
50
56
  import {
51
57
  accordion
52
58
  } from "../chunk-YYBLBQIV.mjs";
@@ -68,12 +74,6 @@ import {
68
74
  import {
69
75
  card
70
76
  } 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";
@@ -96,12 +96,12 @@ export {
96
96
  input,
97
97
  link,
98
98
  pagination,
99
+ popover,
99
100
  progress,
100
101
  radio,
101
102
  radioGroup,
102
103
  snippet,
103
104
  spinner,
104
105
  toggle,
105
- tooltip,
106
106
  user
107
107
  };
@@ -3,20 +3,20 @@ import { VariantProps } from 'tailwind-variants';
3
3
  import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
4
4
 
5
5
  /**
6
- * Tooltip wrapper **Tailwind Variants** component
6
+ * Popover wrapper **Tailwind Variants** component
7
7
  *
8
- * const { base, arrow } = tooltip({...})
8
+ * const { base, arrow } = popover({...})
9
9
  *
10
10
  * @example
11
11
  * <div>
12
12
  * <button>your trigger</button>
13
- * <div role="tooltip" className={base()}>
14
- * // tooltip content
13
+ * <div className={base()}>
14
+ * // popover content
15
15
  * <span className={arrow()} data-placement="top/bottom/left/right..." /> // arrow
16
16
  * </div>
17
17
  * </div>
18
18
  */
19
- declare const tooltip: tailwind_variants.TVReturnType<{
19
+ declare const popover: tailwind_variants.TVReturnType<{
20
20
  variant: {
21
21
  solid: {
22
22
  base: string;
@@ -86,6 +86,11 @@ declare const tooltip: tailwind_variants.TVReturnType<{
86
86
  base: string;
87
87
  };
88
88
  };
89
+ isFocusVisible: {
90
+ true: {
91
+ base: string[];
92
+ };
93
+ };
89
94
  disableAnimation: {
90
95
  true: {
91
96
  base: string;
@@ -164,13 +169,18 @@ declare const tooltip: tailwind_variants.TVReturnType<{
164
169
  base: string;
165
170
  };
166
171
  };
172
+ isFocusVisible: {
173
+ true: {
174
+ base: string[];
175
+ };
176
+ };
167
177
  disableAnimation: {
168
178
  true: {
169
179
  base: string;
170
180
  };
171
181
  };
172
182
  }, unknown>>;
173
- type TooltipVariantProps = VariantProps<typeof tooltip>;
174
- type TooltipSlots = keyof ReturnType<typeof tooltip>;
183
+ type PopoverVariantProps = VariantProps<typeof popover>;
184
+ type PopoverSlots = keyof ReturnType<typeof popover>;
175
185
 
176
- export { TooltipSlots, TooltipVariantProps, tooltip };
186
+ export { PopoverSlots, PopoverVariantProps, popover };
@@ -17,14 +17,24 @@ var __copyProps = (to, from, except, desc) => {
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
- // src/components/tooltip.ts
21
- var tooltip_exports = {};
22
- __export(tooltip_exports, {
23
- tooltip: () => tooltip
20
+ // src/components/popover.ts
21
+ var popover_exports = {};
22
+ __export(popover_exports, {
23
+ popover: () => popover
24
24
  });
25
- module.exports = __toCommonJS(tooltip_exports);
25
+ module.exports = __toCommonJS(popover_exports);
26
26
  var import_tailwind_variants = require("tailwind-variants");
27
27
 
28
+ // src/utils/styles.ts
29
+ var ringClasses = [
30
+ "outline-none",
31
+ "ring-2",
32
+ "!ring-primary",
33
+ "ring-offset-2",
34
+ "ring-offset-background",
35
+ "dark:ring-offset-background-dark"
36
+ ];
37
+
28
38
  // src/utils/variants.ts
29
39
  var solid = {
30
40
  neutral: "bg-neutral text-neutral-contrastText",
@@ -99,8 +109,8 @@ var colorVariants = {
99
109
  ghost
100
110
  };
101
111
 
102
- // src/components/tooltip.ts
103
- var tooltip = (0, import_tailwind_variants.tv)({
112
+ // src/components/popover.ts
113
+ var popover = (0, import_tailwind_variants.tv)({
104
114
  slots: {
105
115
  base: [
106
116
  "z-10",
@@ -112,7 +122,8 @@ var tooltip = (0, import_tailwind_variants.tv)({
112
122
  "subpixel-antialiased",
113
123
  "px-4",
114
124
  "py-1",
115
- "text-base"
125
+ "text-base",
126
+ "!outline-none"
116
127
  ],
117
128
  arrow: [
118
129
  "-z-10",
@@ -178,6 +189,11 @@ var tooltip = (0, import_tailwind_variants.tv)({
178
189
  xl: { base: "rounded-xl" },
179
190
  full: { base: "rounded-full" }
180
191
  },
192
+ isFocusVisible: {
193
+ true: {
194
+ base: [...ringClasses]
195
+ }
196
+ },
181
197
  disableAnimation: {
182
198
  true: { base: "animate-none" }
183
199
  }
@@ -369,5 +385,5 @@ var tooltip = (0, import_tailwind_variants.tv)({
369
385
  });
370
386
  // Annotate the CommonJS export names for ESM import in node:
371
387
  0 && (module.exports = {
372
- tooltip
388
+ popover
373
389
  });
@@ -1,10 +1,10 @@
1
1
  import {
2
- tooltip
3
- } from "../chunk-QIC7EALL.mjs";
2
+ popover
3
+ } from "../chunk-BM7LX6FA.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
6
  import "../chunk-LGGZKBOO.mjs";
7
7
  import "../chunk-IJCHUO4J.mjs";
8
8
  export {
9
- tooltip
9
+ popover
10
10
  };
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export { ButtonGroupVariantProps, buttonGroup } from './components/button-group.
8
8
  export { drip } from './components/drip.js';
9
9
  export { SpinnerSlots, SpinnerVariantProps, spinner } from './components/spinner.js';
10
10
  export { CodeVariantProps, code } from './components/code.js';
11
- export { TooltipSlots, TooltipVariantProps, tooltip } from './components/tooltip.js';
11
+ export { PopoverSlots, PopoverVariantProps, popover } from './components/popover.js';
12
12
  export { SnippetSlots, SnippetVariantProps, snippet } from './components/snippet.js';
13
13
  export { ChipSlots, ChipVariantProps, chip } from './components/chip.js';
14
14
  export { BadgeSlots, BadgeVariantProps, badge } from './components/badge.js';
package/dist/index.js CHANGED
@@ -51,6 +51,7 @@ __export(src_exports, {
51
51
  link: () => link,
52
52
  nextui: () => nextui,
53
53
  pagination: () => pagination,
54
+ popover: () => popover,
54
55
  progress: () => progress,
55
56
  radio: () => radio,
56
57
  radioGroup: () => radioGroup,
@@ -59,7 +60,6 @@ __export(src_exports, {
59
60
  snippet: () => snippet,
60
61
  spinner: () => spinner,
61
62
  toggle: () => toggle,
62
- tooltip: () => tooltip,
63
63
  translateCenterClasses: () => translateCenterClasses,
64
64
  tv: () => import_tailwind_variants27.tv,
65
65
  user: () => user
@@ -1178,9 +1178,9 @@ var code = (0, import_tailwind_variants10.tv)({
1178
1178
  }
1179
1179
  });
1180
1180
 
1181
- // src/components/tooltip.ts
1181
+ // src/components/popover.ts
1182
1182
  var import_tailwind_variants11 = require("tailwind-variants");
1183
- var tooltip = (0, import_tailwind_variants11.tv)({
1183
+ var popover = (0, import_tailwind_variants11.tv)({
1184
1184
  slots: {
1185
1185
  base: [
1186
1186
  "z-10",
@@ -1192,7 +1192,8 @@ var tooltip = (0, import_tailwind_variants11.tv)({
1192
1192
  "subpixel-antialiased",
1193
1193
  "px-4",
1194
1194
  "py-1",
1195
- "text-base"
1195
+ "text-base",
1196
+ "!outline-none"
1196
1197
  ],
1197
1198
  arrow: [
1198
1199
  "-z-10",
@@ -1258,6 +1259,11 @@ var tooltip = (0, import_tailwind_variants11.tv)({
1258
1259
  xl: { base: "rounded-xl" },
1259
1260
  full: { base: "rounded-full" }
1260
1261
  },
1262
+ isFocusVisible: {
1263
+ true: {
1264
+ base: [...ringClasses]
1265
+ }
1266
+ },
1261
1267
  disableAnimation: {
1262
1268
  true: { base: "animate-none" }
1263
1269
  }
@@ -5061,6 +5067,7 @@ var cn = (...classes) => (0, import_tailwind_variants26.cn)(classes)();
5061
5067
  link,
5062
5068
  nextui,
5063
5069
  pagination,
5070
+ popover,
5064
5071
  progress,
5065
5072
  radio,
5066
5073
  radioGroup,
@@ -5069,7 +5076,6 @@ var cn = (...classes) => (0, import_tailwind_variants26.cn)(classes)();
5069
5076
  snippet,
5070
5077
  spinner,
5071
5078
  toggle,
5072
- tooltip,
5073
5079
  translateCenterClasses,
5074
5080
  tv,
5075
5081
  user
package/dist/index.mjs CHANGED
@@ -1,10 +1,19 @@
1
1
  import "./chunk-O2BO77DA.mjs";
2
+ import {
3
+ toggle
4
+ } from "./chunk-GJCSKHK6.mjs";
2
5
  import {
3
6
  user
4
7
  } from "./chunk-FS36US4S.mjs";
8
+ import {
9
+ link
10
+ } from "./chunk-5OE5CWK6.mjs";
5
11
  import {
6
12
  pagination
7
13
  } from "./chunk-7BYRB2YS.mjs";
14
+ import {
15
+ popover
16
+ } from "./chunk-BM7LX6FA.mjs";
8
17
  import {
9
18
  progress
10
19
  } from "./chunk-I7DM7NL7.mjs";
@@ -21,11 +30,8 @@ import {
21
30
  spinner
22
31
  } from "./chunk-CO6ANWRA.mjs";
23
32
  import {
24
- toggle
25
- } from "./chunk-GJCSKHK6.mjs";
26
- import {
27
- tooltip
28
- } from "./chunk-QIC7EALL.mjs";
33
+ checkboxGroup
34
+ } from "./chunk-U77YMEWM.mjs";
29
35
  import {
30
36
  checkbox
31
37
  } from "./chunk-NJQP2VWT.mjs";
@@ -45,8 +51,8 @@ import {
45
51
  input
46
52
  } from "./chunk-6YCEBN5V.mjs";
47
53
  import {
48
- link
49
- } from "./chunk-5OE5CWK6.mjs";
54
+ accordionItem
55
+ } from "./chunk-RD42SVXB.mjs";
50
56
  import {
51
57
  accordion
52
58
  } from "./chunk-YYBLBQIV.mjs";
@@ -68,12 +74,6 @@ import {
68
74
  import {
69
75
  card
70
76
  } 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,8 +81,7 @@ import {
81
81
  } from "./chunk-LGGZKBOO.mjs";
82
82
  import {
83
83
  nextui
84
- } from "./chunk-BMY6CGCY.mjs";
85
- import "./chunk-XLATS5QU.mjs";
84
+ } from "./chunk-56MY6KYG.mjs";
86
85
  import {
87
86
  absoluteFullClasses,
88
87
  baseStyles,
@@ -90,6 +89,7 @@ import {
90
89
  ringClasses,
91
90
  translateCenterClasses
92
91
  } from "./chunk-IJCHUO4J.mjs";
92
+ import "./chunk-XLATS5QU.mjs";
93
93
  import "./chunk-WQEDQHKX.mjs";
94
94
  import {
95
95
  colors
@@ -141,6 +141,7 @@ export {
141
141
  link,
142
142
  nextui,
143
143
  pagination,
144
+ popover,
144
145
  progress,
145
146
  radio,
146
147
  radioGroup,
@@ -149,7 +150,6 @@ export {
149
150
  snippet,
150
151
  spinner,
151
152
  toggle,
152
- tooltip,
153
153
  translateCenterClasses,
154
154
  tv,
155
155
  user
package/dist/plugin.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  nextui
3
- } from "./chunk-BMY6CGCY.mjs";
4
- import "./chunk-XLATS5QU.mjs";
3
+ } from "./chunk-56MY6KYG.mjs";
5
4
  import "./chunk-IJCHUO4J.mjs";
5
+ import "./chunk-XLATS5QU.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-20230405200614",
3
+ "version": "0.0.0-dev-v2-20230407125356",
4
4
  "description": "The default theme for NextUI components",
5
5
  "keywords": [
6
6
  "theme",
@@ -1,9 +1,9 @@
1
- import {
2
- utilities
3
- } from "./chunk-XLATS5QU.mjs";
4
1
  import {
5
2
  baseStyles
6
3
  } from "./chunk-IJCHUO4J.mjs";
4
+ import {
5
+ utilities
6
+ } from "./chunk-XLATS5QU.mjs";
7
7
  import {
8
8
  semanticColors
9
9
  } from "./chunk-Y52EXP4A.mjs";