@nextui-org/theme 0.0.0-dev-v2-20230623023752 → 0.0.0-dev-v2-20230623234227

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.
Files changed (94) hide show
  1. package/dist/{chunk-IYCTMZYP.mjs → chunk-6DB4E4EI.mjs} +6 -13
  2. package/dist/{chunk-YNGJCDQN.mjs → chunk-7ZE4XJWS.mjs} +9 -11
  3. package/dist/{chunk-U54UQOTS.mjs → chunk-ACERSXMK.mjs} +12 -16
  4. package/dist/{chunk-A4SRDPJZ.mjs → chunk-AOWZVYD6.mjs} +5 -6
  5. package/dist/{chunk-E7FRZBCH.mjs → chunk-B6FPCX5Q.mjs} +8 -9
  6. package/dist/{chunk-RB7R7Z3Y.mjs → chunk-BWO5RTQF.mjs} +23 -9
  7. package/dist/{chunk-UKSPZOXY.mjs → chunk-C3VRXEKA.mjs} +5 -6
  8. package/dist/{chunk-52QYM3YD.mjs → chunk-CM2DL3M6.mjs} +6 -6
  9. package/dist/chunk-FAR5DJOU.mjs +21 -0
  10. package/dist/chunk-G2ZSNGR5.mjs +55 -0
  11. package/dist/{chunk-YEHFHLHQ.mjs → chunk-KECBFVJC.mjs} +12 -17
  12. package/dist/{chunk-C6TGDK6D.mjs → chunk-LE5M6GGI.mjs} +7 -8
  13. package/dist/{chunk-GBPOVFEX.mjs → chunk-LJRWR5MA.mjs} +1 -1
  14. package/dist/{chunk-I2CDYXU5.mjs → chunk-NIPJ5ETA.mjs} +4 -7
  15. package/dist/{chunk-I36TDMJB.mjs → chunk-OJDLSLMW.mjs} +5 -6
  16. package/dist/{chunk-IN5LCODJ.mjs → chunk-P455YPME.mjs} +7 -9
  17. package/dist/{chunk-SEWAA5ZW.mjs → chunk-QJZSBDVH.mjs} +5 -7
  18. package/dist/{chunk-AUOEYXLQ.mjs → chunk-RB2RANUL.mjs} +8 -10
  19. package/dist/{chunk-ZSOCX2PK.mjs → chunk-S6AN5YW7.mjs} +1 -1
  20. package/dist/{chunk-LBMDDCFV.mjs → chunk-TFIDBELY.mjs} +1 -1
  21. package/dist/{chunk-7VYHIENL.mjs → chunk-WNUIORY5.mjs} +5 -8
  22. package/dist/{chunk-ZQF2KGKX.mjs → chunk-XAE5NCFD.mjs} +4 -8
  23. package/dist/{chunk-YIDZQ5FC.mjs → chunk-XEVQEVMG.mjs} +15 -15
  24. package/dist/colors/index.d.ts +4 -4
  25. package/dist/colors/index.js +21 -7
  26. package/dist/colors/index.mjs +2 -2
  27. package/dist/colors/semantic.d.ts +6 -6
  28. package/dist/colors/semantic.js +27 -13
  29. package/dist/colors/semantic.mjs +7 -7
  30. package/dist/colors/types.d.ts +4 -2
  31. package/dist/colors.d.ts +1 -1
  32. package/dist/colors.js +21 -7
  33. package/dist/colors.mjs +2 -2
  34. package/dist/components/accordion.d.ts +4 -4
  35. package/dist/components/accordion.js +18 -11
  36. package/dist/components/accordion.mjs +5 -1
  37. package/dist/components/avatar.js +11 -7
  38. package/dist/components/avatar.mjs +2 -2
  39. package/dist/components/badge.mjs +1 -1
  40. package/dist/components/button.js +13 -8
  41. package/dist/components/button.mjs +2 -2
  42. package/dist/components/card.js +16 -9
  43. package/dist/components/card.mjs +5 -1
  44. package/dist/components/checkbox.js +15 -8
  45. package/dist/components/checkbox.mjs +5 -1
  46. package/dist/components/chip.js +2 -3
  47. package/dist/components/chip.mjs +2 -2
  48. package/dist/components/code.mjs +1 -1
  49. package/dist/components/dropdown.d.ts +2 -0
  50. package/dist/components/dropdown.js +24 -15
  51. package/dist/components/dropdown.mjs +5 -1
  52. package/dist/components/index.js +80 -166
  53. package/dist/components/index.mjs +23 -23
  54. package/dist/components/input.js +28 -17
  55. package/dist/components/input.mjs +5 -1
  56. package/dist/components/kbd.js +1 -1
  57. package/dist/components/kbd.mjs +1 -1
  58. package/dist/components/link.js +14 -6
  59. package/dist/components/link.mjs +5 -1
  60. package/dist/components/modal.js +17 -10
  61. package/dist/components/modal.mjs +5 -1
  62. package/dist/components/navbar.js +14 -6
  63. package/dist/components/navbar.mjs +5 -1
  64. package/dist/components/pagination.js +12 -7
  65. package/dist/components/pagination.mjs +2 -2
  66. package/dist/components/popover.js +13 -7
  67. package/dist/components/popover.mjs +2 -2
  68. package/dist/components/radio.js +16 -9
  69. package/dist/components/radio.mjs +5 -1
  70. package/dist/components/snippet.mjs +1 -1
  71. package/dist/components/table.js +17 -12
  72. package/dist/components/table.mjs +5 -1
  73. package/dist/components/tabs.js +14 -13
  74. package/dist/components/tabs.mjs +2 -2
  75. package/dist/components/toggle.js +14 -6
  76. package/dist/components/toggle.mjs +5 -1
  77. package/dist/components/user.js +15 -7
  78. package/dist/components/user.mjs +5 -1
  79. package/dist/index.d.ts +2 -2
  80. package/dist/index.js +107 -176
  81. package/dist/index.mjs +33 -29
  82. package/dist/plugin.js +21 -7
  83. package/dist/plugin.mjs +7 -7
  84. package/dist/utilities/index.mjs +2 -2
  85. package/dist/utils/classes.d.ts +3 -1
  86. package/dist/utils/classes.js +25 -6
  87. package/dist/utils/classes.mjs +5 -1
  88. package/dist/utils/index.d.ts +1 -1
  89. package/dist/utils/index.js +25 -6
  90. package/dist/utils/index.mjs +5 -1
  91. package/package.json +1 -1
  92. package/dist/chunk-TSW7CNKY.mjs +0 -38
  93. package/dist/chunk-ZFYINWFR.mjs +0 -22
  94. package/dist/{chunk-OQGOVMIP.mjs → chunk-UNQJ7BRW.mjs} +3 -3
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  colorVariants
3
3
  } from "./chunk-CEW7YOHH.mjs";
4
+ import {
5
+ dataFocusVisibleClasses
6
+ } from "./chunk-G2ZSNGR5.mjs";
4
7
 
5
8
  // src/components/tabs.ts
6
9
  import { tv } from "tailwind-variants";
@@ -34,12 +37,7 @@ var tabs = tv({
34
37
  "data-[disabled=true]:cursor-not-allowed",
35
38
  "data-[disabled=true]:opacity-30",
36
39
  "data-[hover-unselected=true]:opacity-50",
37
- "data-[focus-visible=true]:outline-none",
38
- "data-[focus-visible=true]:ring-2",
39
- "data-[focus-visible=true]:ring-primary",
40
- "data-[focus-visible=true]:ring-offset-2",
41
- "data-[focus-visible=true]:ring-offset-background",
42
- "data-[focus-visible=true]:dark:ring-offset-background-dark"
40
+ ...dataFocusVisibleClasses
43
41
  ],
44
42
  tabContent: [
45
43
  "relative",
@@ -54,12 +52,7 @@ var tabs = tv({
54
52
  "py-3",
55
53
  "px-1",
56
54
  "outline-none",
57
- "data-[focus-visible=true]:outline-none",
58
- "data-[focus-visible=true]:ring-2",
59
- "data-[focus-visible=true]:ring-primary",
60
- "data-[focus-visible=true]:ring-offset-2",
61
- "data-[focus-visible=true]:ring-offset-background",
62
- "data-[focus-visible=true]:dark:ring-offset-background-dark"
55
+ ...dataFocusVisibleClasses
63
56
  ]
64
57
  },
65
58
  variants: {
@@ -198,7 +191,7 @@ var tabs = tv({
198
191
  variant: ["solid", "bordered", "light"],
199
192
  color: "default",
200
193
  class: {
201
- cursor: ["bg-background", "dark:bg-default", "border border-default-100 dark:border-none"],
194
+ cursor: ["bg-content1", "border border-boundary"],
202
195
  tabContent: "group-data-[selected=true]:text-default-foreground"
203
196
  }
204
197
  },
@@ -1,3 +1,7 @@
1
+ import {
2
+ dataFocusVisibleClasses
3
+ } from "./chunk-G2ZSNGR5.mjs";
4
+
1
5
  // src/components/accordion.ts
2
6
  import { tv } from "tailwind-variants";
3
7
  var accordion = tv({
@@ -5,7 +9,7 @@ var accordion = tv({
5
9
  variants: {
6
10
  variant: {
7
11
  light: "",
8
- shadow: "px-4 shadow-lg rounded-xl bg-background dark:bg-content1 border border-default-100",
12
+ shadow: "px-4 shadow-lg rounded-xl bg-content1 border border-boundary",
9
13
  bordered: "px-4 border border-divider rounded-lg",
10
14
  splitted: "group is-splitted flex flex-col gap-2"
11
15
  },
@@ -24,29 +28,23 @@ var accordionItem = tv({
24
28
  "border-divider",
25
29
  "[&:not(:last-of-type)]:border-b",
26
30
  "group-[.is-splitted]:px-4",
27
- "group-[.is-splitted]:bg-background",
28
- "dark:group-[.is-splitted]:bg-content1",
31
+ "group-[.is-splitted]:bg-content1",
29
32
  "group-[.is-splitted]:shadow-lg",
30
33
  "group-[.is-splitted]:rounded-lg",
31
34
  "group-[.is-splitted]:border",
32
- "group-[.is-splitted]:border-default-100"
35
+ "group-[.is-splitted]:border-boundary"
33
36
  ],
34
37
  heading: "",
35
38
  trigger: [
36
39
  "flex py-4 w-full h-full gap-3 outline-none items-center tap-highlight-transparent",
37
40
  "data-[pressed=true]:opacity-50",
38
- "data-[focus-visible=true]:outline-none",
39
- "data-[focus-visible=true]:ring-2",
40
- "data-[focus-visible=true]:ring-primary",
41
- "data-[focus-visible=true]:ring-offset-2",
42
- "data-[focus-visible=true]:ring-offset-background",
43
- "data-[focus-visible=true]:dark:ring-offset-background-dark"
41
+ ...dataFocusVisibleClasses
44
42
  ],
45
43
  startContent: "flex-shrink-0",
46
44
  indicator: "text-default-400",
47
45
  titleWrapper: "flex-1 flex flex-col text-left",
48
46
  title: "text-foreground text-lg",
49
- subtitle: "text-sm text-default-500 font-normal",
47
+ subtitle: "text-sm text-foreground-500 font-normal",
50
48
  content: "py-2"
51
49
  },
52
50
  variants: {
@@ -1,13 +1,9 @@
1
+ import {
2
+ dataFocusVisibleClasses
3
+ } from "./chunk-G2ZSNGR5.mjs";
4
+
1
5
  // src/components/table.ts
2
6
  import { tv } from "tailwind-variants";
3
- var focusRing = [
4
- "data-[focus-visible=true]:outline-none",
5
- "data-[focus-visible=true]:ring-2",
6
- "data-[focus-visible=true]:ring-primary",
7
- "data-[focus-visible=true]:ring-offset-2",
8
- "data-[focus-visible=true]:ring-offset-background",
9
- "data-[focus-visible=true]:dark:ring-offset-background-dark"
10
- ];
11
7
  var table = tv({
12
8
  slots: {
13
9
  base: [
@@ -18,13 +14,13 @@ var table = tv({
18
14
  "justify-between",
19
15
  "gap-4",
20
16
  "border",
21
- "border-default-100",
17
+ "border-boundary",
22
18
  "overflow-auto"
23
19
  ],
24
20
  table: "min-w-full h-auto",
25
21
  thead: "[&>tr]:first:rounded-lg",
26
22
  tbody: "",
27
- tr: ["group", "outline-none", ...focusRing],
23
+ tr: ["group", "outline-none", ...dataFocusVisibleClasses],
28
24
  th: [
29
25
  "group",
30
26
  "px-3",
@@ -32,7 +28,7 @@ var table = tv({
32
28
  "text-left",
33
29
  "align-middle",
34
30
  "bg-default-100",
35
- "text-default-500",
31
+ "text-foreground-500",
36
32
  "text-xs",
37
33
  "font-semibold",
38
34
  "first:rounded-l-lg",
@@ -40,8 +36,8 @@ var table = tv({
40
36
  "outline-none",
41
37
  "data-[sortable=true]:transition-colors",
42
38
  "data-[sortable=true]:cursor-pointer",
43
- "data-[hover=true]:text-default-400",
44
- ...focusRing
39
+ "data-[hover=true]:text-foreground-400",
40
+ ...dataFocusVisibleClasses
45
41
  ],
46
42
  td: [
47
43
  "py-2",
@@ -52,14 +48,14 @@ var table = tv({
52
48
  "text-sm",
53
49
  "font-normal",
54
50
  "outline-none",
55
- ...focusRing,
51
+ ...dataFocusVisibleClasses,
56
52
  "before:content-['']",
57
53
  "before:absolute",
58
54
  "before:-z-[1]",
59
55
  "before:inset-0",
60
56
  "before:opacity-0",
61
57
  "data-[selected=true]:before:opacity-100",
62
- "group-data-[disabled=true]:text-default-300"
58
+ "group-data-[disabled=true]:text-foreground-300"
63
59
  ],
64
60
  tfoot: "",
65
61
  sortIcon: [
@@ -73,7 +69,7 @@ var table = tv({
73
69
  "group-data-[hover=true]:opacity-100",
74
70
  "data-[direction=ascending]:rotate-180"
75
71
  ],
76
- emptyWrapper: "text-default-400 align-middle text-center h-40",
72
+ emptyWrapper: "text-foreground-400 align-middle text-center h-40",
77
73
  loadingWrapper: "absolute inset-0 flex items-center justify-center"
78
74
  },
79
75
  variants: {
@@ -1,3 +1,7 @@
1
+ import {
2
+ dataFocusVisibleClasses
3
+ } from "./chunk-G2ZSNGR5.mjs";
4
+
1
5
  // src/components/navbar.ts
2
6
  import { tv } from "tailwind-variants";
3
7
  var navbar = tv({
@@ -35,12 +39,7 @@ var navbar = tv({
35
39
  "outline-none",
36
40
  "rounded-sm",
37
41
  "tap-highlight-transparent",
38
- "data-[focus-visible=true]:outline-none",
39
- "data-[focus-visible=true]:ring-2",
40
- "data-[focus-visible=true]:ring-primary",
41
- "data-[focus-visible=true]:ring-offset-2",
42
- "data-[focus-visible=true]:ring-offset-background",
43
- "data-[focus-visible=true]:dark:ring-offset-background-dark"
42
+ ...dataFocusVisibleClasses
44
43
  ],
45
44
  srOnly: ["sr-only"],
46
45
  toggleIcon: [
@@ -1,3 +1,7 @@
1
+ import {
2
+ groupDataFocusVisibleClasses
3
+ } from "./chunk-G2ZSNGR5.mjs";
4
+
1
5
  // src/components/radio.ts
2
6
  import { tv } from "tailwind-variants";
3
7
  var radio = tv({
@@ -15,12 +19,7 @@ var radio = tv({
15
19
  "box-border",
16
20
  "border-default",
17
21
  "group-data-[hover-unselected=true]:bg-default-100",
18
- "group-data-[focus-visible=true]:outline-none",
19
- "group-data-[focus-visible=true]:ring-2",
20
- "group-data-[focus-visible=true]:!ring-primary",
21
- "group-data-[focus-visible=true]:ring-offset-2",
22
- "group-data-[focus-visible=true]:ring-offset-background",
23
- "group-data-[focus-visible=true]:dark:ring-offset-background-dark"
22
+ ...groupDataFocusVisibleClasses
24
23
  ],
25
24
  labelWrapper: "flex flex-col ml-1",
26
25
  control: [
@@ -34,7 +33,7 @@ var radio = tv({
34
33
  "group-data-[selected=true]:scale-100"
35
34
  ],
36
35
  label: "relative text-foreground select-none",
37
- description: "relative text-default-400"
36
+ description: "relative text-foreground-400"
38
37
  },
39
38
  variants: {
40
39
  color: {
@@ -163,9 +162,9 @@ var radio = tv({
163
162
  var radioGroup = tv({
164
163
  slots: {
165
164
  base: "relative flex flex-col gap-2",
166
- label: "relative text-default-500",
165
+ label: "relative text-foreground-500",
167
166
  wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",
168
- description: "text-xs text-default-400",
167
+ description: "text-xs text-foreground-400",
169
168
  errorMessage: "text-xs text-danger"
170
169
  }
171
170
  });
@@ -14,14 +14,21 @@ var base = {
14
14
  DEFAULT: "#ffffff"
15
15
  },
16
16
  foreground: {
17
+ ...twColors.zinc,
17
18
  DEFAULT: "#11181C"
18
19
  },
19
20
  divider: {
20
21
  DEFAULT: "rgba(17, 17, 17, 0.15)"
21
22
  },
23
+ boundary: {
24
+ DEFAULT: twColors.zinc[100]
25
+ },
26
+ focus: {
27
+ DEFAULT: commonColors.blue[500]
28
+ },
22
29
  content1: {
23
- DEFAULT: twColors.zinc[50],
24
- foreground: twColors.zinc[900]
30
+ DEFAULT: "#ffffff",
31
+ foreground: "#11181C"
25
32
  },
26
33
  content2: {
27
34
  DEFAULT: twColors.zinc[100],
@@ -41,11 +48,18 @@ var base = {
41
48
  DEFAULT: "#000000"
42
49
  },
43
50
  foreground: {
51
+ ...swapColorValues(twColors.zinc),
44
52
  DEFAULT: "#ECEDEE"
45
53
  },
54
+ focus: {
55
+ DEFAULT: commonColors.blue[500]
56
+ },
46
57
  divider: {
47
58
  DEFAULT: "rgba(255, 255, 255, 0.15)"
48
59
  },
60
+ boundary: {
61
+ DEFAULT: twColors.zinc[800]
62
+ },
49
63
  content1: {
50
64
  DEFAULT: twColors.zinc[900],
51
65
  foreground: twColors.zinc[50]
@@ -64,7 +78,7 @@ var base = {
64
78
  }
65
79
  }
66
80
  };
67
- var semanticColorsLight = {
81
+ var brandColorsLight = {
68
82
  ...base.light,
69
83
  default: {
70
84
  ...twColors.zinc,
@@ -83,7 +97,7 @@ var semanticColorsLight = {
83
97
  },
84
98
  success: {
85
99
  ...commonColors.green,
86
- foreground: commonColors.green[800],
100
+ foreground: commonColors.green[900],
87
101
  DEFAULT: commonColors.green[500]
88
102
  },
89
103
  warning: {
@@ -97,7 +111,7 @@ var semanticColorsLight = {
97
111
  DEFAULT: commonColors.red[500]
98
112
  }
99
113
  };
100
- var semanticColorsDark = {
114
+ var brandColorsDark = {
101
115
  ...base.dark,
102
116
  default: {
103
117
  ...swapColorValues(twColors.zinc),
@@ -131,12 +145,12 @@ var semanticColorsDark = {
131
145
  }
132
146
  };
133
147
  var semanticColors = {
134
- light: semanticColorsLight,
135
- dark: semanticColorsDark
148
+ light: brandColorsLight,
149
+ dark: brandColorsDark
136
150
  };
137
151
 
138
152
  export {
139
- semanticColorsLight,
140
- semanticColorsDark,
153
+ brandColorsLight,
154
+ brandColorsDark,
141
155
  semanticColors
142
156
  };
@@ -1,3 +1,7 @@
1
+ import {
2
+ dataFocusVisibleClasses
3
+ } from "./chunk-G2ZSNGR5.mjs";
4
+
1
5
  // src/components/toggle.ts
2
6
  import { tv } from "tailwind-variants";
3
7
  var toggle = tv({
@@ -13,12 +17,7 @@ var toggle = tv({
13
17
  "overflow-hidden",
14
18
  "bg-default-200",
15
19
  "rounded-full",
16
- "group-data-[focus-visible]:outline-none",
17
- "group-data-[focus-visible]:ring-2",
18
- "group-data-[focus-visible]:!ring-primary",
19
- "group-data-[focus-visible]:ring-offset-2",
20
- "group-data-[focus-visible]:ring-offset-background",
21
- "group-data-[focus-visible]:dark:ring-offset-background-dark"
20
+ ...dataFocusVisibleClasses
22
21
  ],
23
22
  thumb: [
24
23
  "z-10",
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  utilities
3
- } from "./chunk-OQGOVMIP.mjs";
3
+ } from "./chunk-UNQJ7BRW.mjs";
4
+ import {
5
+ animations
6
+ } from "./chunk-DMASP6FA.mjs";
4
7
  import {
5
8
  baseStyles
6
- } from "./chunk-TSW7CNKY.mjs";
9
+ } from "./chunk-G2ZSNGR5.mjs";
7
10
  import {
8
11
  semanticColors
9
- } from "./chunk-RB7R7Z3Y.mjs";
12
+ } from "./chunk-BWO5RTQF.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-5LKRUH3Q.mjs";
@@ -0,0 +1,21 @@
1
+ import {
2
+ dataFocusVisibleClasses
3
+ } from "./chunk-G2ZSNGR5.mjs";
4
+
5
+ // src/components/user.ts
6
+ import { tv } from "tailwind-variants";
7
+ var user = tv({
8
+ slots: {
9
+ base: [
10
+ "inline-flex items-center justify-center gap-2 rounded-sm outline-none",
11
+ ...dataFocusVisibleClasses
12
+ ],
13
+ wrapper: "inline-flex flex-col items-start",
14
+ name: "text-sm text-inherit",
15
+ description: "text-xs text-foreground-400"
16
+ }
17
+ });
18
+
19
+ export {
20
+ user
21
+ };
@@ -0,0 +1,55 @@
1
+ // src/utils/classes.ts
2
+ var baseStyles = (prefix) => ({
3
+ color: `hsl(var(--${prefix}-foreground))`,
4
+ backgroundColor: `hsl(var(--${prefix}-background))`
5
+ });
6
+ var focusVisibleClasses = [
7
+ "focus:outline-0",
8
+ "focus-visible:ring-2",
9
+ "focus-visible:ring-focus",
10
+ "focus-visible:ring-offset-2",
11
+ "focus-visible:transition-shadow",
12
+ "focus-visible:ring-offset-background"
13
+ ];
14
+ var dataFocusVisibleClasses = [
15
+ "outline-none",
16
+ "data-[focus-visible=true]:z-10",
17
+ "data-[focus-visible=true]:outline-none",
18
+ "data-[focus-visible=true]:ring-2",
19
+ "data-[focus-visible=true]:ring-focus",
20
+ "data-[focus-visible=true]:ring-offset-2",
21
+ "data-[focus-visible=true]:ring-offset-background"
22
+ ];
23
+ var groupDataFocusVisibleClasses = [
24
+ "outline-none",
25
+ "group-data-[focus-visible=true]:z-10",
26
+ "group-data-[focus-visible=true]:ring-2",
27
+ "group-data-[focus-visible=true]:ring-focus",
28
+ "group-data-[focus-visible=true]:ring-offset-2",
29
+ "group-data-[focus-visible=true]:ring-offset-background"
30
+ ];
31
+ var ringClasses = [
32
+ "outline-none",
33
+ "ring-2",
34
+ "ring-focus",
35
+ "ring-offset-2",
36
+ "ring-offset-background"
37
+ ];
38
+ var translateCenterClasses = [
39
+ "absolute",
40
+ "top-1/2",
41
+ "left-1/2",
42
+ "-translate-x-1/2",
43
+ "-translate-y-1/2"
44
+ ];
45
+ var absoluteFullClasses = ["absolute", "inset-0"];
46
+
47
+ export {
48
+ baseStyles,
49
+ focusVisibleClasses,
50
+ dataFocusVisibleClasses,
51
+ groupDataFocusVisibleClasses,
52
+ ringClasses,
53
+ translateCenterClasses,
54
+ absoluteFullClasses
55
+ };
@@ -1,12 +1,17 @@
1
+ import {
2
+ dataFocusVisibleClasses,
3
+ groupDataFocusVisibleClasses
4
+ } from "./chunk-G2ZSNGR5.mjs";
5
+
1
6
  // src/components/input.ts
2
7
  import { tv } from "tailwind-variants";
3
8
  var input = tv({
4
9
  slots: {
5
10
  base: "group flex flex-col data-[has-elements=true]:gap-2",
6
- label: "block text-sm font-medium text-default-600",
11
+ label: "block text-sm font-medium text-foreground-600",
7
12
  inputWrapper: "relative w-full inline-flex flex-row items-center shadow-sm px-3 gap-3",
8
13
  innerWrapper: "inline-flex h-full items-center w-full gap-1.5 box-border",
9
- input: "w-full h-full font-normal !bg-transparent outline-none placeholder:text-default-500",
14
+ input: "w-full h-full font-normal !bg-transparent outline-none placeholder:text-foreground-500",
10
15
  clearButton: [
11
16
  "z-10",
12
17
  "hidden",
@@ -20,14 +25,9 @@ var input = tv({
20
25
  "cursor-pointer",
21
26
  "active:!opacity-70",
22
27
  "rounded-full",
23
- "data-[focus-visible]:outline-none",
24
- "data-[focus-visible]:ring-2",
25
- "data-[focus-visible]:!ring-primary",
26
- "data-[focus-visible]:ring-offset-2",
27
- "data-[focus-visible]:ring-offset-background",
28
- "data-[focus-visible]:dark:ring-offset-background-dark"
28
+ ...dataFocusVisibleClasses
29
29
  ],
30
- description: "text-xs text-default-400",
30
+ description: "text-xs text-foreground-400",
31
31
  errorMessage: "text-xs text-danger"
32
32
  },
33
33
  variants: {
@@ -462,12 +462,7 @@ var input = tv({
462
462
  variant: ["flat", "faded"],
463
463
  class: {
464
464
  inputWrapper: [
465
- "group-data-[focus-visible]:outline-none",
466
- "group-data-[focus-visible]:ring-2",
467
- "group-data-[focus-visible]:!ring-primary",
468
- "group-data-[focus-visible]:ring-offset-2",
469
- "group-data-[focus-visible]:ring-offset-background",
470
- "group-data-[focus-visible]:dark:ring-offset-background-dark"
465
+ ...groupDataFocusVisibleClasses
471
466
  ]
472
467
  }
473
468
  },
@@ -540,7 +535,7 @@ var input = tv({
540
535
  class: {
541
536
  label: [
542
537
  "font-normal",
543
- "text-default-500",
538
+ "text-foreground-500",
544
539
  "group-focus-within:font-medium",
545
540
  "group-[.is-filled]:font-medium",
546
541
  "group-focus-within:pointer-events-auto",
@@ -553,7 +548,7 @@ var input = tv({
553
548
  labelPlacement: "inside",
554
549
  class: {
555
550
  inputWrapper: "group",
556
- label: ["group-focus-within:text-default-600", "group-[.is-filled]:text-default-600"]
551
+ label: ["group-focus-within:text-foreground-600", "group-[.is-filled]:text-foreground-600"]
557
552
  }
558
553
  },
559
554
  {
@@ -1,3 +1,7 @@
1
+ import {
2
+ groupDataFocusVisibleClasses
3
+ } from "./chunk-G2ZSNGR5.mjs";
4
+
1
5
  // src/components/checkbox.ts
2
6
  import { tv } from "tailwind-variants";
3
7
  var checkbox = tv({
@@ -27,12 +31,7 @@ var checkbox = tv({
27
31
  "group-data-[selected=true]:after:opacity-100",
28
32
  "group-data-[hover=true]:before:bg-default-100",
29
33
  "group-data-[hover=true]:before:bg-default-100",
30
- "group-data-[focus-visible=true]:outline-none",
31
- "group-data-[focus-visible=true]:ring-2",
32
- "group-data-[focus-visible=true]:!ring-primary",
33
- "group-data-[focus-visible=true]:ring-offset-2",
34
- "group-data-[focus-visible=true]:ring-offset-background",
35
- "group-data-[focus-visible=true]:dark:ring-offset-background-dark"
34
+ ...groupDataFocusVisibleClasses
36
35
  ],
37
36
  icon: "z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100",
38
37
  label: "relative text-foreground select-none"
@@ -159,9 +158,9 @@ var checkbox = tv({
159
158
  var checkboxGroup = tv({
160
159
  slots: {
161
160
  base: "relative flex flex-col gap-2",
162
- label: "relative text-default-500",
161
+ label: "relative text-foreground-500",
163
162
  wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",
164
- description: "text-xs text-default-400",
163
+ description: "text-xs text-foreground-400",
165
164
  errorMessage: "text-xs text-danger"
166
165
  }
167
166
  });
@@ -13,7 +13,7 @@ var kbd = tv({
13
13
  "border",
14
14
  "border-default",
15
15
  "bg-default-100",
16
- "text-default-600",
16
+ "text-foreground-600",
17
17
  "rounded-md"
18
18
  ],
19
19
  abbr: "no-underline",
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  colorVariants
3
3
  } from "./chunk-CEW7YOHH.mjs";
4
+ import {
5
+ dataFocusVisibleClasses
6
+ } from "./chunk-G2ZSNGR5.mjs";
4
7
 
5
8
  // src/components/pagination.ts
6
9
  import { tv } from "tailwind-variants";
@@ -311,13 +314,7 @@ var pagination = tv({
311
314
  "items-center",
312
315
  "justify-center",
313
316
  "text-default-foreground",
314
- "data-[focus-visible=true]:z-10",
315
- "data-[focus-visible=true]:outline-none",
316
- "data-[focus-visible=true]:ring-2",
317
- "data-[focus-visible=true]:ring-primary",
318
- "data-[focus-visible=true]:ring-offset-2",
319
- "data-[focus-visible=true]:ring-offset-background",
320
- "data-[focus-visible=true]:dark:ring-offset-background-dark",
317
+ ...dataFocusVisibleClasses,
321
318
  "data-[disabled=true]:text-default-300",
322
319
  "data-[disabled=true]:pointer-events-none"
323
320
  ]
@@ -1,14 +1,13 @@
1
+ import {
2
+ dataFocusVisibleClasses
3
+ } from "./chunk-G2ZSNGR5.mjs";
4
+
1
5
  // src/components/link.ts
2
6
  import { tv } from "tailwind-variants";
3
7
  var link = tv({
4
8
  base: [
5
9
  "relative inline-flex items-center outline-none tap-highlight-transparent",
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"
10
+ ...dataFocusVisibleClasses
12
11
  ],
13
12
  variants: {
14
13
  size: {
@@ -1,3 +1,7 @@
1
+ import {
2
+ dataFocusVisibleClasses
3
+ } from "./chunk-G2ZSNGR5.mjs";
4
+
1
5
  // src/components/card.ts
2
6
  import { tv } from "tailwind-variants";
3
7
  var card = tv({
@@ -11,15 +15,9 @@ var card = tv({
11
15
  "outline-none",
12
16
  "text-foreground",
13
17
  "box-border",
14
- "bg-background",
15
- "dark:bg-content1",
16
- "border border-default-100",
17
- "data-[focus-visible=true]:outline-none",
18
- "data-[focus-visible=true]:ring-2",
19
- "data-[focus-visible=true]:ring-primary",
20
- "data-[focus-visible=true]:ring-offset-2",
21
- "data-[focus-visible=true]:ring-offset-background",
22
- "data-[focus-visible=true]:dark:ring-offset-background-dark"
18
+ "bg-content1",
19
+ "border border-boundary",
20
+ ...dataFocusVisibleClasses
23
21
  ],
24
22
  header: [
25
23
  "flex",
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  colorVariants
3
3
  } from "./chunk-CEW7YOHH.mjs";
4
+ import {
5
+ dataFocusVisibleClasses
6
+ } from "./chunk-G2ZSNGR5.mjs";
4
7
 
5
8
  // src/components/popover.ts
6
9
  import { tv } from "tailwind-variants";
@@ -19,12 +22,7 @@ var popover = tv({
19
22
  "text-base",
20
23
  "outline-none",
21
24
  "box-border",
22
- "data-[focus-visible=true]:outline-none",
23
- "data-[focus-visible=true]:ring-2",
24
- "data-[focus-visible=true]:ring-primary",
25
- "data-[focus-visible=true]:ring-offset-2",
26
- "data-[focus-visible=true]:ring-offset-background",
27
- "data-[focus-visible=true]:dark:ring-offset-background-dark"
25
+ ...dataFocusVisibleClasses
28
26
  ],
29
27
  trigger: ["z-10"],
30
28
  backdrop: ["hidden"],
@@ -72,7 +70,7 @@ var popover = tv({
72
70
  },
73
71
  color: {
74
72
  default: {
75
- base: "bg-background dark:bg-content1 border border-default-100"
73
+ base: "bg-content1 border border-boundary"
76
74
  },
77
75
  foreground: {
78
76
  base: colorVariants.solid.foreground