@nextui-org/theme 2.2.8 → 2.2.10

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 (101) hide show
  1. package/dist/{chunk-726LN7M3.mjs → chunk-3LD7T42T.mjs} +1 -1
  2. package/dist/{chunk-GDIZAU4E.mjs → chunk-42JWJWWX.mjs} +1 -1
  3. package/dist/{chunk-A4VDWEXY.mjs → chunk-4MIBATA4.mjs} +12 -12
  4. package/dist/{chunk-DXPS72CE.mjs → chunk-63NMFZTF.mjs} +12 -7
  5. package/dist/{chunk-4YQYZDME.mjs → chunk-7YPXCOW5.mjs} +1 -1
  6. package/dist/{chunk-KKN74BUG.mjs → chunk-BOVVTMHS.mjs} +7 -3
  7. package/dist/{chunk-2PIR7DFM.mjs → chunk-BZCSOIUI.mjs} +12 -12
  8. package/dist/{chunk-DZGYN4XH.mjs → chunk-FE2UYWMQ.mjs} +57 -64
  9. package/dist/{chunk-ARFD2V3F.mjs → chunk-I33PMOA3.mjs} +52 -55
  10. package/dist/{chunk-YSA7EQBH.mjs → chunk-JFWA3DGK.mjs} +2 -2
  11. package/dist/{chunk-NPRQPDVP.mjs → chunk-KPI62GDB.mjs} +4 -4
  12. package/dist/{chunk-XT44N6I6.mjs → chunk-LSQXJEPE.mjs} +9 -27
  13. package/dist/{chunk-GFTQERGX.mjs → chunk-MP2JYSMR.mjs} +1 -1
  14. package/dist/{chunk-5AGRECY5.mjs → chunk-OUNBTYJ7.mjs} +8 -8
  15. package/dist/{chunk-N4MWCCMM.mjs → chunk-P73E5YV7.mjs} +3 -2
  16. package/dist/{chunk-BT3FGTF7.mjs → chunk-PWJWH4MD.mjs} +1 -1
  17. package/dist/{chunk-SKQWKT6K.mjs → chunk-QV3ALCMB.mjs} +1 -1
  18. package/dist/{chunk-HZX5JB5L.mjs → chunk-R27WO3A6.mjs} +1 -1
  19. package/dist/{chunk-WGH4WKVU.mjs → chunk-TSTU52NB.mjs} +3 -3
  20. package/dist/{chunk-D7H5R3VL.mjs → chunk-UDSOWFZE.mjs} +2 -2
  21. package/dist/{chunk-WUUKIKPR.mjs → chunk-WJIRIXV4.mjs} +31 -22
  22. package/dist/{chunk-HPFX3B3F.mjs → chunk-WN6AL2BX.mjs} +2 -2
  23. package/dist/{chunk-CKTE75OS.mjs → chunk-XAYP4CR3.mjs} +1 -1
  24. package/dist/{chunk-22SLLLIZ.mjs → chunk-XEPPBQPJ.mjs} +16 -16
  25. package/dist/{chunk-IISEDJRF.mjs → chunk-XL6AWNU3.mjs} +1 -1
  26. package/dist/{chunk-MERQJVXF.mjs → chunk-XXQSA25O.mjs} +19 -7
  27. package/dist/components/accordion.mjs +1 -1
  28. package/dist/components/autocomplete.js +7 -3
  29. package/dist/components/autocomplete.mjs +1 -1
  30. package/dist/components/avatar.js +12 -12
  31. package/dist/components/avatar.mjs +2 -2
  32. package/dist/components/badge.js +12 -12
  33. package/dist/components/badge.mjs +2 -2
  34. package/dist/components/breadcrumbs.mjs +1 -1
  35. package/dist/components/button.js +30 -18
  36. package/dist/components/button.mjs +2 -2
  37. package/dist/components/calendar.d.ts +6 -6
  38. package/dist/components/calendar.js +4 -4
  39. package/dist/components/calendar.mjs +2 -2
  40. package/dist/components/card.mjs +1 -1
  41. package/dist/components/checkbox.js +8 -8
  42. package/dist/components/checkbox.mjs +2 -2
  43. package/dist/components/chip.js +12 -12
  44. package/dist/components/chip.mjs +2 -2
  45. package/dist/components/code.js +12 -12
  46. package/dist/components/code.mjs +2 -2
  47. package/dist/components/date-input.js +16 -16
  48. package/dist/components/date-input.mjs +1 -1
  49. package/dist/components/date-picker.js +3 -3
  50. package/dist/components/date-picker.mjs +1 -1
  51. package/dist/components/dropdown.mjs +1 -1
  52. package/dist/components/index.js +246 -243
  53. package/dist/components/index.mjs +23 -23
  54. package/dist/components/input.js +52 -55
  55. package/dist/components/input.mjs +2 -2
  56. package/dist/components/link.mjs +1 -1
  57. package/dist/components/listbox.js +1 -1
  58. package/dist/components/listbox.mjs +2 -2
  59. package/dist/components/menu.js +1 -1
  60. package/dist/components/menu.mjs +2 -2
  61. package/dist/components/modal.js +3 -2
  62. package/dist/components/modal.mjs +2 -2
  63. package/dist/components/navbar.mjs +1 -1
  64. package/dist/components/pagination.d.ts +3 -3
  65. package/dist/components/pagination.js +23 -18
  66. package/dist/components/pagination.mjs +2 -2
  67. package/dist/components/popover.js +12 -12
  68. package/dist/components/popover.mjs +2 -2
  69. package/dist/components/radio.js +12 -12
  70. package/dist/components/radio.mjs +2 -2
  71. package/dist/components/select.d.ts +14 -7
  72. package/dist/components/select.js +57 -64
  73. package/dist/components/select.mjs +2 -2
  74. package/dist/components/skeleton.js +2 -2
  75. package/dist/components/skeleton.mjs +1 -1
  76. package/dist/components/slider.mjs +1 -1
  77. package/dist/components/snippet.js +12 -12
  78. package/dist/components/snippet.mjs +2 -2
  79. package/dist/components/table.js +9 -27
  80. package/dist/components/table.mjs +2 -2
  81. package/dist/components/tabs.js +12 -12
  82. package/dist/components/tabs.mjs +2 -2
  83. package/dist/components/toggle.js +31 -22
  84. package/dist/components/toggle.mjs +2 -2
  85. package/dist/components/user.mjs +1 -1
  86. package/dist/index.d.ts +1 -0
  87. package/dist/index.js +254 -245
  88. package/dist/index.mjs +34 -27
  89. package/dist/plugin.js +2 -2
  90. package/dist/plugin.mjs +3 -3
  91. package/dist/utilities/index.d.ts +2 -2
  92. package/dist/utilities/index.js +2 -2
  93. package/dist/utilities/index.mjs +2 -2
  94. package/dist/utilities/transition.d.ts +2 -2
  95. package/dist/utilities/transition.js +2 -2
  96. package/dist/utilities/transition.mjs +1 -1
  97. package/dist/utils/index.js +12 -12
  98. package/dist/utils/index.mjs +1 -1
  99. package/dist/utils/variants.js +12 -12
  100. package/dist/utils/variants.mjs +1 -1
  101. package/package.json +1 -1
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-VLE2FQQR.mjs";
4
4
  import "../chunk-IV3K5WDK.mjs";
5
5
  import "../chunk-3XVMTUU7.mjs";
6
- import "../chunk-2PIR7DFM.mjs";
6
+ import "../chunk-BZCSOIUI.mjs";
7
7
  import "../chunk-N2KXC5ZE.mjs";
8
8
  import "../chunk-BYWORP66.mjs";
9
9
  import "../chunk-XHQUSKIE.mjs";
@@ -77,7 +77,7 @@ var groupDataFocusVisibleClasses = [
77
77
  // src/components/checkbox.ts
78
78
  var checkbox = tv({
79
79
  slots: {
80
- base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",
80
+ base: "group/checkbox relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",
81
81
  wrapper: [
82
82
  "relative",
83
83
  "inline-flex",
@@ -98,12 +98,12 @@ var checkbox = tv({
98
98
  "after:scale-50",
99
99
  "after:opacity-0",
100
100
  "after:origin-center",
101
- "group-data-[selected=true]:after:scale-100",
102
- "group-data-[selected=true]:after:opacity-100",
103
- "group-data-[hover=true]:before:bg-default-100",
101
+ "group-data-[selected=true]/checkbox:after:scale-100",
102
+ "group-data-[selected=true]/checkbox:after:opacity-100",
103
+ "group-data-[hover=true]/checkbox:before:bg-default-100",
104
104
  ...groupDataFocusVisibleClasses
105
105
  ],
106
- icon: "z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100",
106
+ icon: "z-10 w-4 h-3 opacity-0 group-data-[selected=true]/checkbox:opacity-100",
107
107
  label: "relative text-foreground select-none"
108
108
  },
109
109
  variants: {
@@ -199,8 +199,8 @@ var checkbox = tv({
199
199
  "before:bg-foreground",
200
200
  "before:w-0",
201
201
  "before:h-0.5",
202
- "group-data-[selected=true]:opacity-60",
203
- "group-data-[selected=true]:before:w-full"
202
+ "group-data-[selected=true]/checkbox:opacity-60",
203
+ "group-data-[selected=true]/checkbox:before:w-full"
204
204
  ]
205
205
  }
206
206
  },
@@ -224,7 +224,7 @@ var checkbox = tv({
224
224
  false: {
225
225
  wrapper: [
226
226
  "before:transition-colors",
227
- "group-data-[pressed=true]:scale-95",
227
+ "group-data-[pressed=true]/checkbox:scale-95",
228
228
  "transition-transform",
229
229
  "after:transition-transform-opacity",
230
230
  "after:!ease-linear",
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  checkbox,
3
3
  checkboxGroup
4
- } from "../chunk-5AGRECY5.mjs";
4
+ } from "../chunk-OUNBTYJ7.mjs";
5
5
  import "../chunk-IV3K5WDK.mjs";
6
6
  import "../chunk-3XVMTUU7.mjs";
7
- import "../chunk-2PIR7DFM.mjs";
7
+ import "../chunk-BZCSOIUI.mjs";
8
8
  import "../chunk-N2KXC5ZE.mjs";
9
9
  import "../chunk-BYWORP66.mjs";
10
10
  import "../chunk-XHQUSKIE.mjs";
@@ -101,12 +101,12 @@ var bordered = {
101
101
  foreground: "bg-transparent border-foreground text-foreground"
102
102
  };
103
103
  var flat = {
104
- default: "bg-default/40 text-default-foreground",
105
- primary: "bg-primary/20 text-primary",
106
- secondary: "bg-secondary/20 text-secondary",
107
- success: "bg-success/20 text-success-600 dark:text-success",
108
- warning: "bg-warning/20 text-warning-600 dark:text-warning",
109
- danger: "bg-danger/20 text-danger dark:text-danger-500",
104
+ default: "bg-default/40 text-default-700",
105
+ primary: "bg-primary/20 text-primary-700",
106
+ secondary: "bg-secondary/20 text-secondary-700",
107
+ success: "bg-success/20 text-success-800 dark:text-success",
108
+ warning: "bg-warning/20 text-warning-800 dark:text-warning",
109
+ danger: "bg-danger/20 text-danger-800 dark:text-danger-500",
110
110
  foreground: "bg-foreground/10 text-foreground"
111
111
  };
112
112
  var faded = {
@@ -128,12 +128,12 @@ var light = {
128
128
  foreground: "bg-transparent text-foreground"
129
129
  };
130
130
  var ghost = {
131
- default: "border-default text-default-foreground hover:!bg-default",
132
- primary: "border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",
133
- secondary: "border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",
134
- success: "border-success text-success hover:!text-success-foreground hover:!bg-success",
135
- warning: "border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",
136
- danger: "border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",
131
+ default: "border-default text-default-foreground",
132
+ primary: "border-primary text-primary",
133
+ secondary: "border-secondary text-secondary",
134
+ success: "border-success text-success",
135
+ warning: "border-warning text-warning",
136
+ danger: "border-danger text-danger",
137
137
  foreground: "border-foreground text-foreground hover:!bg-foreground"
138
138
  };
139
139
  var colorVariants = {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  chip
3
- } from "../chunk-GFTQERGX.mjs";
3
+ } from "../chunk-MP2JYSMR.mjs";
4
4
  import "../chunk-IV3K5WDK.mjs";
5
5
  import "../chunk-3XVMTUU7.mjs";
6
- import "../chunk-2PIR7DFM.mjs";
6
+ import "../chunk-BZCSOIUI.mjs";
7
7
  import "../chunk-N2KXC5ZE.mjs";
8
8
  import "../chunk-BYWORP66.mjs";
9
9
  import "../chunk-XHQUSKIE.mjs";
@@ -92,12 +92,12 @@ var bordered = {
92
92
  foreground: "bg-transparent border-foreground text-foreground"
93
93
  };
94
94
  var flat = {
95
- default: "bg-default/40 text-default-foreground",
96
- primary: "bg-primary/20 text-primary",
97
- secondary: "bg-secondary/20 text-secondary",
98
- success: "bg-success/20 text-success-600 dark:text-success",
99
- warning: "bg-warning/20 text-warning-600 dark:text-warning",
100
- danger: "bg-danger/20 text-danger dark:text-danger-500",
95
+ default: "bg-default/40 text-default-700",
96
+ primary: "bg-primary/20 text-primary-700",
97
+ secondary: "bg-secondary/20 text-secondary-700",
98
+ success: "bg-success/20 text-success-800 dark:text-success",
99
+ warning: "bg-warning/20 text-warning-800 dark:text-warning",
100
+ danger: "bg-danger/20 text-danger-800 dark:text-danger-500",
101
101
  foreground: "bg-foreground/10 text-foreground"
102
102
  };
103
103
  var faded = {
@@ -119,12 +119,12 @@ var light = {
119
119
  foreground: "bg-transparent text-foreground"
120
120
  };
121
121
  var ghost = {
122
- default: "border-default text-default-foreground hover:!bg-default",
123
- primary: "border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",
124
- secondary: "border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",
125
- success: "border-success text-success hover:!text-success-foreground hover:!bg-success",
126
- warning: "border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",
127
- danger: "border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",
122
+ default: "border-default text-default-foreground",
123
+ primary: "border-primary text-primary",
124
+ secondary: "border-secondary text-secondary",
125
+ success: "border-success text-success",
126
+ warning: "border-warning text-warning",
127
+ danger: "border-danger text-danger",
128
128
  foreground: "border-foreground text-foreground hover:!bg-foreground"
129
129
  };
130
130
  var colorVariants = {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  code
3
- } from "../chunk-BT3FGTF7.mjs";
3
+ } from "../chunk-PWJWH4MD.mjs";
4
4
  import "../chunk-IV3K5WDK.mjs";
5
5
  import "../chunk-3XVMTUU7.mjs";
6
- import "../chunk-2PIR7DFM.mjs";
6
+ import "../chunk-BZCSOIUI.mjs";
7
7
  import "../chunk-N2KXC5ZE.mjs";
8
8
  import "../chunk-BYWORP66.mjs";
9
9
  import "../chunk-XHQUSKIE.mjs";
@@ -66,11 +66,11 @@ var tv = (options, config) => {
66
66
  // src/components/date-input.ts
67
67
  var dateInput = tv({
68
68
  slots: {
69
- base: "group flex flex-col",
69
+ base: "group/dateinput flex flex-col",
70
70
  label: [
71
71
  "block subpixel-antialiased text-small text-default-600",
72
- "group-data-[required=true]:after:content-['*'] group-data-[required=true]:after:text-danger group-data-[required=true]:after:ml-0.5",
73
- "group-data-[invalid=true]:text-danger"
72
+ "group-data-[required=true]/dateinput:after:content-['*'] group-data-[required=true]/dateinput:after:text-danger group-data-[required=true]/dateinput:after:ml-0.5",
73
+ "group-data-[invalid=true]/dateinput:text-danger"
74
74
  ],
75
75
  inputWrapper: [
76
76
  "relative px-3 gap-3 w-full inline-flex flex-row items-center",
@@ -79,10 +79,10 @@ var dateInput = tv({
79
79
  input: "flex h-full gap-x-0.5 w-full font-normal",
80
80
  innerWrapper: [
81
81
  "flex items-center text-default-400 w-full gap-x-2 h-6",
82
- "group-data-[invalid=true]:text-danger"
82
+ "group-data-[invalid=true]/dateinput:text-danger"
83
83
  ],
84
84
  segment: [
85
- "group first:-ml-0.5 [&:not(:first-child)]:-ml-1 px-0.5 my-auto box-content tabular-nums text-start",
85
+ "group/dateinput first:-ml-0.5 [&:not(:first-child)]:-ml-1 px-0.5 my-auto box-content tabular-nums text-start",
86
86
  "inline-block outline-none focus:shadow-sm rounded-md",
87
87
  "text-foreground-500 data-[editable=true]:text-foreground",
88
88
  "data-[editable=true]:data-[placeholder=true]:text-foreground-500",
@@ -90,7 +90,7 @@ var dateInput = tv({
90
90
  "data-[invalid=true]:focus:bg-danger-400/50 dark:data-[invalid=true]:focus:bg-danger-400/20",
91
91
  "data-[invalid=true]:data-[editable=true]:focus:text-danger"
92
92
  ],
93
- helperWrapper: "hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",
93
+ helperWrapper: "hidden group-data-[has-helper=true]/dateinput:flex p-1 relative flex-col gap-1.5",
94
94
  description: "text-tiny text-foreground-400",
95
95
  errorMessage: "text-tiny text-danger"
96
96
  },
@@ -101,9 +101,9 @@ var dateInput = tv({
101
101
  "bg-default-100",
102
102
  "hover:bg-default-200",
103
103
  "focus-within:hover:bg-default-100",
104
- "group-data-[invalid=true]:bg-danger-50",
105
- "group-data-[invalid=true]:hover:bg-danger-100",
106
- "group-data-[invalid=true]:focus-within:hover:bg-danger-50"
104
+ "group-data-[invalid=true]/dateinput:bg-danger-50",
105
+ "group-data-[invalid=true]/dateinput:hover:bg-danger-100",
106
+ "group-data-[invalid=true]/dateinput:focus-within:hover:bg-danger-50"
107
107
  ]
108
108
  },
109
109
  faded: {
@@ -112,9 +112,9 @@ var dateInput = tv({
112
112
  "border-medium",
113
113
  "border-default-200",
114
114
  "hover:border-default-400",
115
- "group-data-[invalid=true]:bg-danger-50",
116
- "group-data-[invalid=true]:hover:bg-danger-100",
117
- "group-data-[invalid=true]:focus-within:hover:bg-danger-50"
115
+ "group-data-[invalid=true]/dateinput:bg-danger-50",
116
+ "group-data-[invalid=true]/dateinput:hover:bg-danger-100",
117
+ "group-data-[invalid=true]/dateinput:focus-within:hover:bg-danger-50"
118
118
  ]
119
119
  },
120
120
  bordered: {
@@ -124,9 +124,9 @@ var dateInput = tv({
124
124
  "hover:border-default-400",
125
125
  "focus-within:border-default-foreground",
126
126
  "focus-within:hover:border-default-foreground",
127
- "group-data-[invalid=true]:border-danger",
128
- "group-data-[invalid=true]:hover:border-danger",
129
- "group-data-[invalid=true]:focus-within:hover:border-danger"
127
+ "group-data-[invalid=true]/dateinput:border-danger",
128
+ "group-data-[invalid=true]/dateinput:hover:border-danger",
129
+ "group-data-[invalid=true]/dateinput:focus-within:hover:border-danger"
130
130
  ]
131
131
  },
132
132
  underlined: {
@@ -151,7 +151,7 @@ var dateInput = tv({
151
151
  "after:-bottom-[2px]",
152
152
  "after:h-[2px]",
153
153
  "focus-within:after:w-full",
154
- "group-data-[invalid=true]:after:bg-danger"
154
+ "group-data-[invalid=true]/dateinput:after:bg-danger"
155
155
  ]
156
156
  }
157
157
  },
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  dateInput
3
- } from "../chunk-22SLLLIZ.mjs";
3
+ } from "../chunk-XEPPBQPJ.mjs";
4
4
  import "../chunk-N2KXC5ZE.mjs";
5
5
  import "../chunk-BYWORP66.mjs";
6
6
  export {
@@ -67,7 +67,7 @@ var tv = (options, config) => {
67
67
  // src/components/date-picker.ts
68
68
  var datePicker = tv({
69
69
  slots: {
70
- base: "group w-full",
70
+ base: "group/datepicker w-full",
71
71
  selectorButton: "-mr-2 text-inherit",
72
72
  selectorIcon: "text-lg text-inherit pointer-events-none flex-shrink-0",
73
73
  popoverContent: "p-0 w-full",
@@ -80,9 +80,9 @@ var datePicker = tv({
80
80
  var dateRangePicker = tv({
81
81
  extend: datePicker,
82
82
  slots: {
83
- calendar: "group",
83
+ calendar: "group/daterangepicker",
84
84
  bottomContent: "flex flex-col gap-y-2",
85
- timeInputWrapper: "flex flex-col group-data-[has-multiple-months=true]:flex-row",
85
+ timeInputWrapper: "flex flex-col group-data-[has-multiple-months=true]/daterangepicker:flex-row",
86
86
  separator: "-mx-1 text-inherit"
87
87
  }
88
88
  });
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  datePicker,
3
3
  dateRangePicker
4
- } from "../chunk-WGH4WKVU.mjs";
4
+ } from "../chunk-TSTU52NB.mjs";
5
5
  import "../chunk-N2KXC5ZE.mjs";
6
6
  import "../chunk-BYWORP66.mjs";
7
7
  export {
@@ -6,7 +6,7 @@ import {
6
6
  } from "../chunk-GQDFLFNG.mjs";
7
7
  import "../chunk-IV3K5WDK.mjs";
8
8
  import "../chunk-3XVMTUU7.mjs";
9
- import "../chunk-2PIR7DFM.mjs";
9
+ import "../chunk-BZCSOIUI.mjs";
10
10
  import "../chunk-N2KXC5ZE.mjs";
11
11
  import "../chunk-BYWORP66.mjs";
12
12
  import "../chunk-XHQUSKIE.mjs";