@nextui-org/theme 0.0.0-dev-v2-20230424221531 → 0.0.0-dev-v2-20230425031000

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.
@@ -19,7 +19,7 @@ var button = tv({
19
19
  "subpixel-antialiased",
20
20
  "data-[pressed=true]:scale-95",
21
21
  "overflow-hidden",
22
- "gap-3",
22
+ "gap-1.5",
23
23
  "[&>svg]:max-w-[2em]",
24
24
  "data-[focus-visible=true]:outline-none",
25
25
  "data-[focus-visible=true]:ring-2",
@@ -2,7 +2,7 @@
2
2
  import { tv } from "tailwind-variants";
3
3
  var input = tv({
4
4
  slots: {
5
- base: "group flex flex-col gap-2",
5
+ base: "group flex flex-col data-[has-elements=true]:gap-2",
6
6
  label: "block text-sm font-medium text-neutral-600",
7
7
  inputWrapper: "relative w-full inline-flex flex-row items-center shadow-sm px-3 gap-3",
8
8
  innerWrapper: "inline-flex h-full items-center w-full gap-1.5 box-border",
@@ -225,7 +225,7 @@ var input = tv({
225
225
  variant: "flat",
226
226
  color: "neutral",
227
227
  size: "md",
228
- radius: "xl",
228
+ radius: "lg",
229
229
  fullWidth: true,
230
230
  labelPosition: "inside",
231
231
  isDisabled: false,
@@ -0,0 +1,29 @@
1
+ // src/components/kbd.ts
2
+ import { tv } from "tailwind-variants";
3
+ var kbd = tv({
4
+ slots: {
5
+ base: [
6
+ "px-2",
7
+ "py-1",
8
+ "inline-block",
9
+ "space-x-0.5",
10
+ "font-sans",
11
+ "font-medium",
12
+ "text-center",
13
+ "text-sm",
14
+ "border",
15
+ "border-neutral",
16
+ "bg-neutral-100",
17
+ "text-neutral-600",
18
+ "rounded-md"
19
+ ],
20
+ abbr: "no-underline",
21
+ content: ""
22
+ },
23
+ variants: {},
24
+ defaultVariants: {}
25
+ });
26
+
27
+ export {
28
+ kbd
29
+ };
@@ -1,11 +1,15 @@
1
- import {
2
- focusVisibleClasses
3
- } from "./chunk-INZK6TTL.mjs";
4
-
5
1
  // src/components/link.ts
6
2
  import { tv } from "tailwind-variants";
7
3
  var link = tv({
8
- base: [...focusVisibleClasses, "relative inline-flex items-center [&_svg]:ml-1"],
4
+ base: [
5
+ "relative inline-flex items-center outline-none",
6
+ "data-[focus-visible=true]:outline-none",
7
+ "data-[focus-visible=true]:ring-2",
8
+ "data-[focus-visible=true]:ring-primary",
9
+ "data-[focus-visible=true]:ring-offset-2",
10
+ "data-[focus-visible=true]:ring-offset-background",
11
+ "data-[focus-visible=true]:dark:ring-offset-background-dark"
12
+ ],
9
13
  variants: {
10
14
  size: {
11
15
  xs: "text-xs",
@@ -22,12 +26,27 @@ var link = tv({
22
26
  warning: "text-warning",
23
27
  danger: "text-danger"
24
28
  },
25
- isUnderline: {
26
- true: "hover:underline active:underline focus:underline underline-offset-4",
27
- false: "no-underline"
29
+ underline: {
30
+ none: "no-underline",
31
+ hover: "hover:underline",
32
+ always: "underline",
33
+ active: "active:underline",
34
+ focus: "focus:underline"
28
35
  },
29
36
  isBlock: {
30
- true: "px-2 py-1 hover:after:opacity-100 after:content-[' '] after:inset-0 after:opacity-0 after:w-full after:h-full after:rounded-xl after:transition-background after:absolute",
37
+ true: [
38
+ "px-2",
39
+ "py-1",
40
+ "hover:after:opacity-100",
41
+ "after:content-['']",
42
+ "after:inset-0",
43
+ "after:opacity-0",
44
+ "after:w-full",
45
+ "after:h-full",
46
+ "after:rounded-xl",
47
+ "after:transition-background",
48
+ "after:absolute"
49
+ ],
31
50
  false: "hover:opacity-80 transition-opacity"
32
51
  },
33
52
  isDisabled: {
@@ -67,13 +86,17 @@ var link = tv({
67
86
  isBlock: true,
68
87
  color: "danger",
69
88
  class: "hover:after:bg-danger/20"
89
+ },
90
+ {
91
+ underline: ["hover", "always", "active", "focus"],
92
+ class: "underline-offset-4"
70
93
  }
71
94
  ],
72
95
  defaultVariants: {
73
96
  color: "primary",
74
97
  size: "md",
75
98
  isBlock: false,
76
- isUnderline: false,
99
+ underline: "none",
77
100
  isDisabled: false,
78
101
  disableAnimation: false
79
102
  }
@@ -2,8 +2,8 @@ import {
2
2
  avatar
3
3
  } from "../chunk-VZVHC65R.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
- import "../chunk-RO3WUCFF.mjs";
6
5
  import "../chunk-K7LK7NCE.mjs";
6
+ import "../chunk-RO3WUCFF.mjs";
7
7
  import "../chunk-INZK6TTL.mjs";
8
8
  export {
9
9
  avatar
@@ -2,8 +2,8 @@ import {
2
2
  badge
3
3
  } from "../chunk-LCSLO6UV.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
- import "../chunk-RO3WUCFF.mjs";
6
5
  import "../chunk-K7LK7NCE.mjs";
6
+ import "../chunk-RO3WUCFF.mjs";
7
7
  import "../chunk-INZK6TTL.mjs";
8
8
  export {
9
9
  badge
@@ -115,7 +115,7 @@ var button = (0, import_tailwind_variants.tv)({
115
115
  "subpixel-antialiased",
116
116
  "data-[pressed=true]:scale-95",
117
117
  "overflow-hidden",
118
- "gap-3",
118
+ "gap-1.5",
119
119
  "[&>svg]:max-w-[2em]",
120
120
  "data-[focus-visible=true]:outline-none",
121
121
  "data-[focus-visible=true]:ring-2",
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  button
3
- } from "../chunk-W2RCO7SN.mjs";
3
+ } from "../chunk-5EODOBGH.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
- import "../chunk-RO3WUCFF.mjs";
6
5
  import "../chunk-K7LK7NCE.mjs";
6
+ import "../chunk-RO3WUCFF.mjs";
7
7
  import "../chunk-INZK6TTL.mjs";
8
8
  export {
9
9
  button
@@ -2,8 +2,8 @@ import {
2
2
  chip
3
3
  } from "../chunk-NQJBJXX3.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
- import "../chunk-RO3WUCFF.mjs";
6
5
  import "../chunk-K7LK7NCE.mjs";
6
+ import "../chunk-RO3WUCFF.mjs";
7
7
  import "../chunk-INZK6TTL.mjs";
8
8
  export {
9
9
  chip
@@ -2,8 +2,8 @@ import {
2
2
  code
3
3
  } from "../chunk-WFCALVUC.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
- import "../chunk-RO3WUCFF.mjs";
6
5
  import "../chunk-K7LK7NCE.mjs";
6
+ import "../chunk-RO3WUCFF.mjs";
7
7
  import "../chunk-INZK6TTL.mjs";
8
8
  export {
9
9
  code
@@ -33,5 +33,6 @@ export { NavbarSlots, NavbarVariantProps, navbar } from './navbar.js';
33
33
  export { TableReturnType, TableSlots, TableVariantProps, table } from './table.js';
34
34
  export { SpacerVariantProps, spacer } from './spacer.js';
35
35
  export { DividerVariantProps, divider } from './divider.js';
36
+ export { KbdSlots, KbdVariantProps, kbd } from './kbd.js';
36
37
  import 'tailwind-variants';
37
38
  import 'tailwind-variants/dist/config';
@@ -41,6 +41,7 @@ __export(components_exports, {
41
41
  dropdownSection: () => dropdownSection,
42
42
  image: () => image,
43
43
  input: () => input,
44
+ kbd: () => kbd,
44
45
  link: () => link,
45
46
  modal: () => modal,
46
47
  navbar: () => navbar,
@@ -62,15 +63,6 @@ module.exports = __toCommonJS(components_exports);
62
63
  var import_tailwind_variants = require("tailwind-variants");
63
64
 
64
65
  // src/utils/classes.ts
65
- var focusVisibleClasses = [
66
- "focus:outline-0",
67
- "focus-visible:ring-2",
68
- "focus-visible:ring-primary",
69
- "focus-visible:ring-offset-2",
70
- "focus-visible:transition-shadow",
71
- "focus-visible:ring-offset-background",
72
- "dark:focus-visible:ring-offset-background-dark"
73
- ];
74
66
  var ringClasses = [
75
67
  "outline-none",
76
68
  "ring-2",
@@ -545,7 +537,15 @@ var card = (0, import_tailwind_variants3.tv)({
545
537
  // src/components/link.ts
546
538
  var import_tailwind_variants4 = require("tailwind-variants");
547
539
  var link = (0, import_tailwind_variants4.tv)({
548
- base: [...focusVisibleClasses, "relative inline-flex items-center [&_svg]:ml-1"],
540
+ base: [
541
+ "relative inline-flex items-center outline-none",
542
+ "data-[focus-visible=true]:outline-none",
543
+ "data-[focus-visible=true]:ring-2",
544
+ "data-[focus-visible=true]:ring-primary",
545
+ "data-[focus-visible=true]:ring-offset-2",
546
+ "data-[focus-visible=true]:ring-offset-background",
547
+ "data-[focus-visible=true]:dark:ring-offset-background-dark"
548
+ ],
549
549
  variants: {
550
550
  size: {
551
551
  xs: "text-xs",
@@ -562,12 +562,27 @@ var link = (0, import_tailwind_variants4.tv)({
562
562
  warning: "text-warning",
563
563
  danger: "text-danger"
564
564
  },
565
- isUnderline: {
566
- true: "hover:underline active:underline focus:underline underline-offset-4",
567
- false: "no-underline"
565
+ underline: {
566
+ none: "no-underline",
567
+ hover: "hover:underline",
568
+ always: "underline",
569
+ active: "active:underline",
570
+ focus: "focus:underline"
568
571
  },
569
572
  isBlock: {
570
- true: "px-2 py-1 hover:after:opacity-100 after:content-[' '] after:inset-0 after:opacity-0 after:w-full after:h-full after:rounded-xl after:transition-background after:absolute",
573
+ true: [
574
+ "px-2",
575
+ "py-1",
576
+ "hover:after:opacity-100",
577
+ "after:content-['']",
578
+ "after:inset-0",
579
+ "after:opacity-0",
580
+ "after:w-full",
581
+ "after:h-full",
582
+ "after:rounded-xl",
583
+ "after:transition-background",
584
+ "after:absolute"
585
+ ],
571
586
  false: "hover:opacity-80 transition-opacity"
572
587
  },
573
588
  isDisabled: {
@@ -607,13 +622,17 @@ var link = (0, import_tailwind_variants4.tv)({
607
622
  isBlock: true,
608
623
  color: "danger",
609
624
  class: "hover:after:bg-danger/20"
625
+ },
626
+ {
627
+ underline: ["hover", "always", "active", "focus"],
628
+ class: "underline-offset-4"
610
629
  }
611
630
  ],
612
631
  defaultVariants: {
613
632
  color: "primary",
614
633
  size: "md",
615
634
  isBlock: false,
616
- isUnderline: false,
635
+ underline: "none",
617
636
  isDisabled: false,
618
637
  disableAnimation: false
619
638
  }
@@ -655,7 +674,7 @@ var button = (0, import_tailwind_variants6.tv)({
655
674
  "subpixel-antialiased",
656
675
  "data-[pressed=true]:scale-95",
657
676
  "overflow-hidden",
658
- "gap-3",
677
+ "gap-1.5",
659
678
  "[&>svg]:max-w-[2em]",
660
679
  "data-[focus-visible=true]:outline-none",
661
680
  "data-[focus-visible=true]:ring-2",
@@ -3756,7 +3775,7 @@ var circularProgress = (0, import_tailwind_variants24.tv)({
3756
3775
  var import_tailwind_variants25 = require("tailwind-variants");
3757
3776
  var input = (0, import_tailwind_variants25.tv)({
3758
3777
  slots: {
3759
- base: "group flex flex-col gap-2",
3778
+ base: "group flex flex-col data-[has-elements=true]:gap-2",
3760
3779
  label: "block text-sm font-medium text-neutral-600",
3761
3780
  inputWrapper: "relative w-full inline-flex flex-row items-center shadow-sm px-3 gap-3",
3762
3781
  innerWrapper: "inline-flex h-full items-center w-full gap-1.5 box-border",
@@ -3979,7 +3998,7 @@ var input = (0, import_tailwind_variants25.tv)({
3979
3998
  variant: "flat",
3980
3999
  color: "neutral",
3981
4000
  size: "md",
3982
- radius: "xl",
4001
+ radius: "lg",
3983
4002
  fullWidth: true,
3984
4003
  labelPosition: "inside",
3985
4004
  isDisabled: false,
@@ -5718,6 +5737,32 @@ var divider = (0, import_tailwind_variants35.tv)({
5718
5737
  orientation: "horizontal"
5719
5738
  }
5720
5739
  });
5740
+
5741
+ // src/components/kbd.ts
5742
+ var import_tailwind_variants36 = require("tailwind-variants");
5743
+ var kbd = (0, import_tailwind_variants36.tv)({
5744
+ slots: {
5745
+ base: [
5746
+ "px-2",
5747
+ "py-1",
5748
+ "inline-block",
5749
+ "space-x-0.5",
5750
+ "font-sans",
5751
+ "font-medium",
5752
+ "text-center",
5753
+ "text-sm",
5754
+ "border",
5755
+ "border-neutral",
5756
+ "bg-neutral-100",
5757
+ "text-neutral-600",
5758
+ "rounded-md"
5759
+ ],
5760
+ abbr: "no-underline",
5761
+ content: ""
5762
+ },
5763
+ variants: {},
5764
+ defaultVariants: {}
5765
+ });
5721
5766
  // Annotate the CommonJS export names for ESM import in node:
5722
5767
  0 && (module.exports = {
5723
5768
  accordion,
@@ -5741,6 +5786,7 @@ var divider = (0, import_tailwind_variants35.tv)({
5741
5786
  dropdownSection,
5742
5787
  image,
5743
5788
  input,
5789
+ kbd,
5744
5790
  link,
5745
5791
  modal,
5746
5792
  navbar,
@@ -1,4 +1,7 @@
1
- import "../chunk-FD464FGG.mjs";
1
+ import "../chunk-N7T6GTBO.mjs";
2
+ import {
3
+ spinner
4
+ } from "../chunk-XUL76UJD.mjs";
2
5
  import {
3
6
  table
4
7
  } from "../chunk-KWWWVBJL.mjs";
@@ -8,6 +11,9 @@ import {
8
11
  import {
9
12
  user
10
13
  } from "../chunk-MW7UVOSP.mjs";
14
+ import {
15
+ navbar
16
+ } from "../chunk-ACYWLBDN.mjs";
11
17
  import {
12
18
  pagination
13
19
  } from "../chunk-TYA6TT57.mjs";
@@ -29,9 +35,6 @@ import {
29
35
  import {
30
36
  spacer
31
37
  } from "../chunk-3B4SYPW2.mjs";
32
- import {
33
- spinner
34
- } from "../chunk-XUL76UJD.mjs";
35
38
  import {
36
39
  dropdownSection
37
40
  } from "../chunk-AVGEHFT4.mjs";
@@ -43,16 +46,16 @@ import {
43
46
  } from "../chunk-6GGRJ6I7.mjs";
44
47
  import {
45
48
  input
46
- } from "../chunk-DBYBIR6S.mjs";
49
+ } from "../chunk-DO44X4Z2.mjs";
50
+ import {
51
+ kbd
52
+ } from "../chunk-KUQBSI5S.mjs";
47
53
  import {
48
54
  link
49
- } from "../chunk-4FNCWRTA.mjs";
55
+ } from "../chunk-XICTHLAR.mjs";
50
56
  import {
51
57
  modal
52
58
  } from "../chunk-YMIOHWCD.mjs";
53
- import {
54
- navbar
55
- } from "../chunk-ACYWLBDN.mjs";
56
59
  import {
57
60
  checkbox
58
61
  } from "../chunk-7EKGN7JP.mjs";
@@ -94,10 +97,10 @@ import {
94
97
  } from "../chunk-VKFQ7EZN.mjs";
95
98
  import {
96
99
  button
97
- } from "../chunk-W2RCO7SN.mjs";
100
+ } from "../chunk-5EODOBGH.mjs";
98
101
  import "../chunk-CMYR6AOY.mjs";
99
- import "../chunk-RO3WUCFF.mjs";
100
102
  import "../chunk-K7LK7NCE.mjs";
103
+ import "../chunk-RO3WUCFF.mjs";
101
104
  import {
102
105
  card
103
106
  } from "../chunk-TDD767J7.mjs";
@@ -130,6 +133,7 @@ export {
130
133
  dropdownSection,
131
134
  image,
132
135
  input,
136
+ kbd,
133
137
  link,
134
138
  modal,
135
139
  navbar,
@@ -26,7 +26,7 @@ module.exports = __toCommonJS(input_exports);
26
26
  var import_tailwind_variants = require("tailwind-variants");
27
27
  var input = (0, import_tailwind_variants.tv)({
28
28
  slots: {
29
- base: "group flex flex-col gap-2",
29
+ base: "group flex flex-col data-[has-elements=true]:gap-2",
30
30
  label: "block text-sm font-medium text-neutral-600",
31
31
  inputWrapper: "relative w-full inline-flex flex-row items-center shadow-sm px-3 gap-3",
32
32
  innerWrapper: "inline-flex h-full items-center w-full gap-1.5 box-border",
@@ -249,7 +249,7 @@ var input = (0, import_tailwind_variants.tv)({
249
249
  variant: "flat",
250
250
  color: "neutral",
251
251
  size: "md",
252
- radius: "xl",
252
+ radius: "lg",
253
253
  fullWidth: true,
254
254
  labelPosition: "inside",
255
255
  isDisabled: false,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  input
3
- } from "../chunk-DBYBIR6S.mjs";
3
+ } from "../chunk-DO44X4Z2.mjs";
4
4
  export {
5
5
  input
6
6
  };
@@ -0,0 +1,43 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
4
+
5
+ /**
6
+ * Keyboard Key wrapper **Tailwind Variants** component
7
+ *
8
+ * @example
9
+ *
10
+ * const { base, abbr, content } = kbd()
11
+ *
12
+ * <kbd className={base()} >
13
+ * <abbr title="Command" className={abbr()}>⌘</abbr>
14
+ * <abbr title="Shift" className={abbr()}>⇧</abbr>
15
+ * <abbr title="Control" className={abbr()}>⌃</abbr>
16
+ * <abbr title="Option" className={abbr()}>⌥</abbr>
17
+ * <abbr title="Enter" className={abbr()}>↵</abbr>
18
+ * <abbr title="Delete" className={abbr()}>⌫</abbr>
19
+ * <abbr title="Escape" className={abbr()}>⎋</abbr>
20
+ * <abbr title="Tab" className={abbr()}>⇥</abbr>
21
+ * <abbr title="Caps Lock" className={abbr()}>⇪</abbr>
22
+ * <abbr title="Up" className={abbr()}>↑</abbr>
23
+ * <abbr title="Right" className={abbr()}>→</abbr>
24
+ * <abbr title="Down" className={abbr()}>↓</abbr>
25
+ * <abbr title="Left" className={abbr()}>←</abbr>
26
+ * <abbr title="Page Up" className={abbr()}>⇞</abbr>
27
+ * <abbr title="Page Down" className={abbr()}>⇟</abbr>
28
+ * <abbr title="Home" className={abbr()}>↖</abbr>
29
+ * <abbr title="End" className={abbr()}>↘</abbr>
30
+ * <abbr title="Help" className={abbr()}>?</abbr>
31
+ * <abbr title="Space" className={abbr()}>␣</abbr>
32
+ * <span className={content()}>A</span>
33
+ * </kbd>
34
+ */
35
+ declare const kbd: tailwind_variants.TVReturnType<{}, unknown, {
36
+ base: string[];
37
+ abbr: string;
38
+ content: string;
39
+ }, undefined, undefined, tailwind_variants_dist_config.TVConfig<{}, unknown>>;
40
+ type KbdVariantProps = VariantProps<typeof kbd>;
41
+ type KbdSlots = keyof ReturnType<typeof kbd>;
42
+
43
+ export { KbdSlots, KbdVariantProps, kbd };
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/kbd.ts
21
+ var kbd_exports = {};
22
+ __export(kbd_exports, {
23
+ kbd: () => kbd
24
+ });
25
+ module.exports = __toCommonJS(kbd_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var kbd = (0, import_tailwind_variants.tv)({
28
+ slots: {
29
+ base: [
30
+ "px-2",
31
+ "py-1",
32
+ "inline-block",
33
+ "space-x-0.5",
34
+ "font-sans",
35
+ "font-medium",
36
+ "text-center",
37
+ "text-sm",
38
+ "border",
39
+ "border-neutral",
40
+ "bg-neutral-100",
41
+ "text-neutral-600",
42
+ "rounded-md"
43
+ ],
44
+ abbr: "no-underline",
45
+ content: ""
46
+ },
47
+ variants: {},
48
+ defaultVariants: {}
49
+ });
50
+ // Annotate the CommonJS export names for ESM import in node:
51
+ 0 && (module.exports = {
52
+ kbd
53
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ kbd
3
+ } from "../chunk-KUQBSI5S.mjs";
4
+ export {
5
+ kbd
6
+ };
@@ -24,12 +24,15 @@ declare const link: tailwind_variants.TVReturnType<{
24
24
  warning: string;
25
25
  danger: string;
26
26
  };
27
- isUnderline: {
28
- true: string;
29
- false: string;
27
+ underline: {
28
+ none: string;
29
+ hover: string;
30
+ always: string;
31
+ active: string;
32
+ focus: string;
30
33
  };
31
34
  isBlock: {
32
- true: string;
35
+ true: string[];
33
36
  false: string;
34
37
  };
35
38
  isDisabled: {
@@ -54,12 +57,15 @@ declare const link: tailwind_variants.TVReturnType<{
54
57
  warning: string;
55
58
  danger: string;
56
59
  };
57
- isUnderline: {
58
- true: string;
59
- false: string;
60
+ underline: {
61
+ none: string;
62
+ hover: string;
63
+ always: string;
64
+ active: string;
65
+ focus: string;
60
66
  };
61
67
  isBlock: {
62
- true: string;
68
+ true: string[];
63
69
  false: string;
64
70
  };
65
71
  isDisabled: {
@@ -24,21 +24,16 @@ __export(link_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(link_exports);
26
26
  var import_tailwind_variants = require("tailwind-variants");
27
-
28
- // src/utils/classes.ts
29
- var focusVisibleClasses = [
30
- "focus:outline-0",
31
- "focus-visible:ring-2",
32
- "focus-visible:ring-primary",
33
- "focus-visible:ring-offset-2",
34
- "focus-visible:transition-shadow",
35
- "focus-visible:ring-offset-background",
36
- "dark:focus-visible:ring-offset-background-dark"
37
- ];
38
-
39
- // src/components/link.ts
40
27
  var link = (0, import_tailwind_variants.tv)({
41
- base: [...focusVisibleClasses, "relative inline-flex items-center [&_svg]:ml-1"],
28
+ base: [
29
+ "relative inline-flex items-center outline-none",
30
+ "data-[focus-visible=true]:outline-none",
31
+ "data-[focus-visible=true]:ring-2",
32
+ "data-[focus-visible=true]:ring-primary",
33
+ "data-[focus-visible=true]:ring-offset-2",
34
+ "data-[focus-visible=true]:ring-offset-background",
35
+ "data-[focus-visible=true]:dark:ring-offset-background-dark"
36
+ ],
42
37
  variants: {
43
38
  size: {
44
39
  xs: "text-xs",
@@ -55,12 +50,27 @@ var link = (0, import_tailwind_variants.tv)({
55
50
  warning: "text-warning",
56
51
  danger: "text-danger"
57
52
  },
58
- isUnderline: {
59
- true: "hover:underline active:underline focus:underline underline-offset-4",
60
- false: "no-underline"
53
+ underline: {
54
+ none: "no-underline",
55
+ hover: "hover:underline",
56
+ always: "underline",
57
+ active: "active:underline",
58
+ focus: "focus:underline"
61
59
  },
62
60
  isBlock: {
63
- true: "px-2 py-1 hover:after:opacity-100 after:content-[' '] after:inset-0 after:opacity-0 after:w-full after:h-full after:rounded-xl after:transition-background after:absolute",
61
+ true: [
62
+ "px-2",
63
+ "py-1",
64
+ "hover:after:opacity-100",
65
+ "after:content-['']",
66
+ "after:inset-0",
67
+ "after:opacity-0",
68
+ "after:w-full",
69
+ "after:h-full",
70
+ "after:rounded-xl",
71
+ "after:transition-background",
72
+ "after:absolute"
73
+ ],
64
74
  false: "hover:opacity-80 transition-opacity"
65
75
  },
66
76
  isDisabled: {
@@ -100,13 +110,17 @@ var link = (0, import_tailwind_variants.tv)({
100
110
  isBlock: true,
101
111
  color: "danger",
102
112
  class: "hover:after:bg-danger/20"
113
+ },
114
+ {
115
+ underline: ["hover", "always", "active", "focus"],
116
+ class: "underline-offset-4"
103
117
  }
104
118
  ],
105
119
  defaultVariants: {
106
120
  color: "primary",
107
121
  size: "md",
108
122
  isBlock: false,
109
- isUnderline: false,
123
+ underline: "none",
110
124
  isDisabled: false,
111
125
  disableAnimation: false
112
126
  }
@@ -1,10 +1,6 @@
1
1
  import {
2
2
  link
3
- } from "../chunk-4FNCWRTA.mjs";
4
- import "../chunk-CMYR6AOY.mjs";
5
- import "../chunk-RO3WUCFF.mjs";
6
- import "../chunk-K7LK7NCE.mjs";
7
- import "../chunk-INZK6TTL.mjs";
3
+ } from "../chunk-XICTHLAR.mjs";
8
4
  export {
9
5
  link
10
6
  };
@@ -2,8 +2,8 @@ import {
2
2
  pagination
3
3
  } from "../chunk-TYA6TT57.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
- import "../chunk-RO3WUCFF.mjs";
6
5
  import "../chunk-K7LK7NCE.mjs";
6
+ import "../chunk-RO3WUCFF.mjs";
7
7
  import "../chunk-INZK6TTL.mjs";
8
8
  export {
9
9
  pagination
@@ -2,8 +2,8 @@ import {
2
2
  popover
3
3
  } from "../chunk-JWVJZEAT.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
- import "../chunk-RO3WUCFF.mjs";
6
5
  import "../chunk-K7LK7NCE.mjs";
6
+ import "../chunk-RO3WUCFF.mjs";
7
7
  import "../chunk-INZK6TTL.mjs";
8
8
  export {
9
9
  popover
@@ -2,8 +2,8 @@ import {
2
2
  snippet
3
3
  } from "../chunk-4XSCIGTZ.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
- import "../chunk-RO3WUCFF.mjs";
6
5
  import "../chunk-K7LK7NCE.mjs";
6
+ import "../chunk-RO3WUCFF.mjs";
7
7
  import "../chunk-INZK6TTL.mjs";
8
8
  export {
9
9
  snippet
package/dist/index.d.ts CHANGED
@@ -35,6 +35,7 @@ export { NavbarSlots, NavbarVariantProps, navbar } from './components/navbar.js'
35
35
  export { TableReturnType, TableSlots, TableVariantProps, table } from './components/table.js';
36
36
  export { SpacerVariantProps, spacer } from './components/spacer.js';
37
37
  export { DividerVariantProps, divider } from './components/divider.js';
38
+ export { KbdSlots, KbdVariantProps, kbd } from './components/kbd.js';
38
39
  export { absoluteFullClasses, baseStyles, focusVisibleClasses, ringClasses, translateCenterClasses } from './utils/classes.js';
39
40
  export { SlotsToClasses } from './utils/types.js';
40
41
  export { colorVariants } from './utils/variants.js';
package/dist/index.js CHANGED
@@ -54,6 +54,7 @@ __export(src_exports, {
54
54
  focusVisibleClasses: () => focusVisibleClasses,
55
55
  image: () => image,
56
56
  input: () => input,
57
+ kbd: () => kbd,
57
58
  link: () => link,
58
59
  modal: () => modal,
59
60
  navbar: () => navbar,
@@ -71,7 +72,7 @@ __export(src_exports, {
71
72
  table: () => table,
72
73
  toggle: () => toggle,
73
74
  translateCenterClasses: () => translateCenterClasses,
74
- tv: () => import_tailwind_variants37.tv,
75
+ tv: () => import_tailwind_variants38.tv,
75
76
  user: () => user
76
77
  });
77
78
  module.exports = __toCommonJS(src_exports);
@@ -568,7 +569,15 @@ var card = (0, import_tailwind_variants3.tv)({
568
569
  // src/components/link.ts
569
570
  var import_tailwind_variants4 = require("tailwind-variants");
570
571
  var link = (0, import_tailwind_variants4.tv)({
571
- base: [...focusVisibleClasses, "relative inline-flex items-center [&_svg]:ml-1"],
572
+ base: [
573
+ "relative inline-flex items-center outline-none",
574
+ "data-[focus-visible=true]:outline-none",
575
+ "data-[focus-visible=true]:ring-2",
576
+ "data-[focus-visible=true]:ring-primary",
577
+ "data-[focus-visible=true]:ring-offset-2",
578
+ "data-[focus-visible=true]:ring-offset-background",
579
+ "data-[focus-visible=true]:dark:ring-offset-background-dark"
580
+ ],
572
581
  variants: {
573
582
  size: {
574
583
  xs: "text-xs",
@@ -585,12 +594,27 @@ var link = (0, import_tailwind_variants4.tv)({
585
594
  warning: "text-warning",
586
595
  danger: "text-danger"
587
596
  },
588
- isUnderline: {
589
- true: "hover:underline active:underline focus:underline underline-offset-4",
590
- false: "no-underline"
597
+ underline: {
598
+ none: "no-underline",
599
+ hover: "hover:underline",
600
+ always: "underline",
601
+ active: "active:underline",
602
+ focus: "focus:underline"
591
603
  },
592
604
  isBlock: {
593
- true: "px-2 py-1 hover:after:opacity-100 after:content-[' '] after:inset-0 after:opacity-0 after:w-full after:h-full after:rounded-xl after:transition-background after:absolute",
605
+ true: [
606
+ "px-2",
607
+ "py-1",
608
+ "hover:after:opacity-100",
609
+ "after:content-['']",
610
+ "after:inset-0",
611
+ "after:opacity-0",
612
+ "after:w-full",
613
+ "after:h-full",
614
+ "after:rounded-xl",
615
+ "after:transition-background",
616
+ "after:absolute"
617
+ ],
594
618
  false: "hover:opacity-80 transition-opacity"
595
619
  },
596
620
  isDisabled: {
@@ -630,13 +654,17 @@ var link = (0, import_tailwind_variants4.tv)({
630
654
  isBlock: true,
631
655
  color: "danger",
632
656
  class: "hover:after:bg-danger/20"
657
+ },
658
+ {
659
+ underline: ["hover", "always", "active", "focus"],
660
+ class: "underline-offset-4"
633
661
  }
634
662
  ],
635
663
  defaultVariants: {
636
664
  color: "primary",
637
665
  size: "md",
638
666
  isBlock: false,
639
- isUnderline: false,
667
+ underline: "none",
640
668
  isDisabled: false,
641
669
  disableAnimation: false
642
670
  }
@@ -678,7 +706,7 @@ var button = (0, import_tailwind_variants6.tv)({
678
706
  "subpixel-antialiased",
679
707
  "data-[pressed=true]:scale-95",
680
708
  "overflow-hidden",
681
- "gap-3",
709
+ "gap-1.5",
682
710
  "[&>svg]:max-w-[2em]",
683
711
  "data-[focus-visible=true]:outline-none",
684
712
  "data-[focus-visible=true]:ring-2",
@@ -3779,7 +3807,7 @@ var circularProgress = (0, import_tailwind_variants24.tv)({
3779
3807
  var import_tailwind_variants25 = require("tailwind-variants");
3780
3808
  var input = (0, import_tailwind_variants25.tv)({
3781
3809
  slots: {
3782
- base: "group flex flex-col gap-2",
3810
+ base: "group flex flex-col data-[has-elements=true]:gap-2",
3783
3811
  label: "block text-sm font-medium text-neutral-600",
3784
3812
  inputWrapper: "relative w-full inline-flex flex-row items-center shadow-sm px-3 gap-3",
3785
3813
  innerWrapper: "inline-flex h-full items-center w-full gap-1.5 box-border",
@@ -4002,7 +4030,7 @@ var input = (0, import_tailwind_variants25.tv)({
4002
4030
  variant: "flat",
4003
4031
  color: "neutral",
4004
4032
  size: "md",
4005
- radius: "xl",
4033
+ radius: "lg",
4006
4034
  fullWidth: true,
4007
4035
  labelPosition: "inside",
4008
4036
  isDisabled: false,
@@ -5742,6 +5770,32 @@ var divider = (0, import_tailwind_variants35.tv)({
5742
5770
  }
5743
5771
  });
5744
5772
 
5773
+ // src/components/kbd.ts
5774
+ var import_tailwind_variants36 = require("tailwind-variants");
5775
+ var kbd = (0, import_tailwind_variants36.tv)({
5776
+ slots: {
5777
+ base: [
5778
+ "px-2",
5779
+ "py-1",
5780
+ "inline-block",
5781
+ "space-x-0.5",
5782
+ "font-sans",
5783
+ "font-medium",
5784
+ "text-center",
5785
+ "text-sm",
5786
+ "border",
5787
+ "border-neutral",
5788
+ "bg-neutral-100",
5789
+ "text-neutral-600",
5790
+ "rounded-md"
5791
+ ],
5792
+ abbr: "no-underline",
5793
+ content: ""
5794
+ },
5795
+ variants: {},
5796
+ defaultVariants: {}
5797
+ });
5798
+
5745
5799
  // src/colors/blue.ts
5746
5800
  var blue = {
5747
5801
  50: "#e6f1fe",
@@ -6299,9 +6353,9 @@ var nextui = (config = {}) => {
6299
6353
  };
6300
6354
 
6301
6355
  // src/index.ts
6302
- var import_tailwind_variants36 = require("tailwind-variants");
6303
6356
  var import_tailwind_variants37 = require("tailwind-variants");
6304
- var cn = (...classes) => (0, import_tailwind_variants36.cn)(classes)();
6357
+ var import_tailwind_variants38 = require("tailwind-variants");
6358
+ var cn = (...classes) => (0, import_tailwind_variants37.cn)(classes)();
6305
6359
  // Annotate the CommonJS export names for ESM import in node:
6306
6360
  0 && (module.exports = {
6307
6361
  absoluteFullClasses,
@@ -6332,6 +6386,7 @@ var cn = (...classes) => (0, import_tailwind_variants36.cn)(classes)();
6332
6386
  focusVisibleClasses,
6333
6387
  image,
6334
6388
  input,
6389
+ kbd,
6335
6390
  link,
6336
6391
  modal,
6337
6392
  navbar,
package/dist/index.mjs CHANGED
@@ -1,4 +1,7 @@
1
- import "./chunk-FD464FGG.mjs";
1
+ import "./chunk-N7T6GTBO.mjs";
2
+ import {
3
+ spinner
4
+ } from "./chunk-XUL76UJD.mjs";
2
5
  import {
3
6
  table
4
7
  } from "./chunk-KWWWVBJL.mjs";
@@ -8,6 +11,9 @@ import {
8
11
  import {
9
12
  user
10
13
  } from "./chunk-MW7UVOSP.mjs";
14
+ import {
15
+ navbar
16
+ } from "./chunk-ACYWLBDN.mjs";
11
17
  import {
12
18
  pagination
13
19
  } from "./chunk-TYA6TT57.mjs";
@@ -29,9 +35,6 @@ import {
29
35
  import {
30
36
  spacer
31
37
  } from "./chunk-3B4SYPW2.mjs";
32
- import {
33
- spinner
34
- } from "./chunk-XUL76UJD.mjs";
35
38
  import {
36
39
  dropdownSection
37
40
  } from "./chunk-AVGEHFT4.mjs";
@@ -43,16 +46,16 @@ import {
43
46
  } from "./chunk-6GGRJ6I7.mjs";
44
47
  import {
45
48
  input
46
- } from "./chunk-DBYBIR6S.mjs";
49
+ } from "./chunk-DO44X4Z2.mjs";
50
+ import {
51
+ kbd
52
+ } from "./chunk-KUQBSI5S.mjs";
47
53
  import {
48
54
  link
49
- } from "./chunk-4FNCWRTA.mjs";
55
+ } from "./chunk-XICTHLAR.mjs";
50
56
  import {
51
57
  modal
52
58
  } from "./chunk-YMIOHWCD.mjs";
53
- import {
54
- navbar
55
- } from "./chunk-ACYWLBDN.mjs";
56
59
  import {
57
60
  checkbox
58
61
  } from "./chunk-7EKGN7JP.mjs";
@@ -94,12 +97,12 @@ import {
94
97
  } from "./chunk-VKFQ7EZN.mjs";
95
98
  import {
96
99
  button
97
- } from "./chunk-W2RCO7SN.mjs";
100
+ } from "./chunk-5EODOBGH.mjs";
98
101
  import "./chunk-CMYR6AOY.mjs";
102
+ import "./chunk-K7LK7NCE.mjs";
99
103
  import {
100
104
  colorVariants
101
105
  } from "./chunk-RO3WUCFF.mjs";
102
- import "./chunk-K7LK7NCE.mjs";
103
106
  import {
104
107
  card
105
108
  } from "./chunk-TDD767J7.mjs";
@@ -174,6 +177,7 @@ export {
174
177
  focusVisibleClasses,
175
178
  image,
176
179
  input,
180
+ kbd,
177
181
  link,
178
182
  modal,
179
183
  navbar,
@@ -1,8 +1,8 @@
1
1
  import "../chunk-CMYR6AOY.mjs";
2
+ import "../chunk-K7LK7NCE.mjs";
2
3
  import {
3
4
  colorVariants
4
5
  } from "../chunk-RO3WUCFF.mjs";
5
- import "../chunk-K7LK7NCE.mjs";
6
6
  import {
7
7
  absoluteFullClasses,
8
8
  baseStyles,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextui-org/theme",
3
- "version": "0.0.0-dev-v2-20230424221531",
3
+ "version": "0.0.0-dev-v2-20230425031000",
4
4
  "description": "The default theme for NextUI components",
5
5
  "keywords": [
6
6
  "theme",
File without changes