@nextui-org/theme 2.4.2 → 2.4.4
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.
- package/dist/{chunk-444KJ2OU.mjs → chunk-3ZDIPBHM.mjs} +1 -1
- package/dist/{chunk-GA67JEKY.mjs → chunk-6B2RD5MH.mjs} +1 -1
- package/dist/{chunk-TK7HBD3N.mjs → chunk-A3NXEE2Q.mjs} +75 -10
- package/dist/{chunk-RABDZR7I.mjs → chunk-CRDAR2QA.mjs} +18 -8
- package/dist/{chunk-MO6TCUI5.mjs → chunk-TK7T75HE.mjs} +4 -4
- package/dist/components/alert.d.ts +7 -7
- package/dist/components/alert.js +4 -4
- package/dist/components/alert.mjs +1 -1
- package/dist/components/date-input.js +75 -10
- package/dist/components/date-input.mjs +1 -1
- package/dist/components/index.js +99 -24
- package/dist/components/index.mjs +5 -5
- package/dist/components/input.js +1 -1
- package/dist/components/input.mjs +1 -1
- package/dist/components/listbox.js +1 -1
- package/dist/components/listbox.mjs +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/menu.mjs +1 -1
- package/dist/components/select.d.ts +105 -35
- package/dist/components/select.js +18 -8
- package/dist/components/select.mjs +1 -1
- package/dist/index.js +99 -24
- package/dist/index.mjs +5 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4347,7 +4347,7 @@ var input = tv({
|
|
|
4347
4347
|
flat: {
|
|
4348
4348
|
inputWrapper: [
|
|
4349
4349
|
"bg-default-100",
|
|
4350
|
-
"data-[hover=true]:bg-default-
|
|
4350
|
+
"data-[hover=true]:bg-default-200",
|
|
4351
4351
|
"group-data-[focus=true]:bg-default-100"
|
|
4352
4352
|
]
|
|
4353
4353
|
},
|
|
@@ -6763,8 +6763,8 @@ var select = tv({
|
|
|
6763
6763
|
flat: {
|
|
6764
6764
|
trigger: [
|
|
6765
6765
|
"bg-default-100",
|
|
6766
|
-
"data-[hover=true]:bg-default-
|
|
6767
|
-
"group-data-[focus=true]:bg-default-
|
|
6766
|
+
"data-[hover=true]:bg-default-200",
|
|
6767
|
+
"group-data-[focus=true]:bg-default-200"
|
|
6768
6768
|
]
|
|
6769
6769
|
},
|
|
6770
6770
|
faded: {
|
|
@@ -6815,11 +6815,21 @@ var select = tv({
|
|
|
6815
6815
|
},
|
|
6816
6816
|
color: {
|
|
6817
6817
|
default: {},
|
|
6818
|
-
primary: {
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6818
|
+
primary: {
|
|
6819
|
+
selectorIcon: "text-primary"
|
|
6820
|
+
},
|
|
6821
|
+
secondary: {
|
|
6822
|
+
selectorIcon: "text-secondary"
|
|
6823
|
+
},
|
|
6824
|
+
success: {
|
|
6825
|
+
selectorIcon: "text-success"
|
|
6826
|
+
},
|
|
6827
|
+
warning: {
|
|
6828
|
+
selectorIcon: "text-warning"
|
|
6829
|
+
},
|
|
6830
|
+
danger: {
|
|
6831
|
+
selectorIcon: "text-danger"
|
|
6832
|
+
}
|
|
6823
6833
|
},
|
|
6824
6834
|
size: {
|
|
6825
6835
|
sm: {
|
|
@@ -6945,7 +6955,7 @@ var select = tv({
|
|
|
6945
6955
|
color: "default",
|
|
6946
6956
|
class: {
|
|
6947
6957
|
value: "group-data-[has-value=true]:text-default-foreground",
|
|
6948
|
-
trigger: ["bg-default-100", "data-[hover=true]:bg-default-
|
|
6958
|
+
trigger: ["bg-default-100", "data-[hover=true]:bg-default-200"]
|
|
6949
6959
|
}
|
|
6950
6960
|
},
|
|
6951
6961
|
{
|
|
@@ -7429,7 +7439,7 @@ var select = tv({
|
|
|
7429
7439
|
// src/components/menu.ts
|
|
7430
7440
|
var menu = tv({
|
|
7431
7441
|
slots: {
|
|
7432
|
-
base: "w-full relative flex flex-col gap-1 p-1 overflow-
|
|
7442
|
+
base: "w-full relative flex flex-col gap-1 p-1 overflow-clip",
|
|
7433
7443
|
list: "w-full flex flex-col gap-0.5 outline-none",
|
|
7434
7444
|
emptyContent: [
|
|
7435
7445
|
"h-10",
|
|
@@ -9191,7 +9201,7 @@ var dateInput = tv({
|
|
|
9191
9201
|
color: "primary",
|
|
9192
9202
|
class: {
|
|
9193
9203
|
innerWrapper: "text-primary",
|
|
9194
|
-
inputWrapper: ["bg-primary-
|
|
9204
|
+
inputWrapper: ["bg-primary-100", "hover:bg-primary-50", "focus-within:bg-primary-50"],
|
|
9195
9205
|
segment: "text-primary-300 data-[editable=true]:data-[placeholder=true]:text-primary-300 data-[editable=true]:text-primary",
|
|
9196
9206
|
label: "text-primary"
|
|
9197
9207
|
}
|
|
@@ -9201,7 +9211,7 @@ var dateInput = tv({
|
|
|
9201
9211
|
color: "secondary",
|
|
9202
9212
|
class: {
|
|
9203
9213
|
innerWrapper: "text-secondary",
|
|
9204
|
-
inputWrapper: ["bg-secondary-
|
|
9214
|
+
inputWrapper: ["bg-secondary-100", "hover:bg-secondary-50", "focus-within:bg-secondary-50"],
|
|
9205
9215
|
segment: "text-secondary-300 data-[editable=true]:data-[placeholder=true]:text-secondary-300 data-[editable=true]:text-secondary",
|
|
9206
9216
|
label: "text-secondary"
|
|
9207
9217
|
}
|
|
@@ -9211,7 +9221,7 @@ var dateInput = tv({
|
|
|
9211
9221
|
color: "success",
|
|
9212
9222
|
class: {
|
|
9213
9223
|
innerWrapper: "text-success-600 dark:text-success",
|
|
9214
|
-
inputWrapper: ["bg-success-
|
|
9224
|
+
inputWrapper: ["bg-success-100", "hover:bg-success-50", "focus-within:bg-success-50"],
|
|
9215
9225
|
segment: "text-success-400 data-[editable=true]:data-[placeholder=true]:text-success-400 data-[editable=true]:text-success-600 data-[editable=true]:focus:text-success-600",
|
|
9216
9226
|
label: "text-success-600 dark:text-success"
|
|
9217
9227
|
}
|
|
@@ -9221,7 +9231,7 @@ var dateInput = tv({
|
|
|
9221
9231
|
color: "warning",
|
|
9222
9232
|
class: {
|
|
9223
9233
|
innerWrapper: "text-warning-600 dark:text-warning",
|
|
9224
|
-
inputWrapper: ["bg-warning-
|
|
9234
|
+
inputWrapper: ["bg-warning-100", "hover:bg-warning-50", "focus-within:bg-warning-50"],
|
|
9225
9235
|
segment: "text-warning-400 data-[editable=true]:data-[placeholder=true]:text-warning-400 data-[editable=true]:text-warning-600 data-[editable=true]:focus:text-warning-600",
|
|
9226
9236
|
label: "text-warning-600 dark:text-warning"
|
|
9227
9237
|
}
|
|
@@ -9231,13 +9241,78 @@ var dateInput = tv({
|
|
|
9231
9241
|
color: "danger",
|
|
9232
9242
|
class: {
|
|
9233
9243
|
innerWrapper: "text-danger",
|
|
9234
|
-
inputWrapper: ["bg-danger-
|
|
9244
|
+
inputWrapper: ["bg-danger-100", "hover:bg-danger-50", "focus-within:bg-danger-50"],
|
|
9235
9245
|
segment: "text-danger-300 data-[editable=true]:data-[placeholder=true]:text-danger-300 data-[editable=true]:text-danger",
|
|
9236
9246
|
label: "text-danger"
|
|
9237
9247
|
}
|
|
9238
9248
|
},
|
|
9239
9249
|
{
|
|
9240
|
-
variant:
|
|
9250
|
+
variant: "faded",
|
|
9251
|
+
color: "primary",
|
|
9252
|
+
class: {
|
|
9253
|
+
innerWrapper: "text-primary",
|
|
9254
|
+
inputWrapper: [
|
|
9255
|
+
"hover:border-primary",
|
|
9256
|
+
"focus-within:border-primary",
|
|
9257
|
+
"focus-within:hover:border-primary"
|
|
9258
|
+
],
|
|
9259
|
+
label: "text-primary"
|
|
9260
|
+
}
|
|
9261
|
+
},
|
|
9262
|
+
{
|
|
9263
|
+
variant: "faded",
|
|
9264
|
+
color: "secondary",
|
|
9265
|
+
class: {
|
|
9266
|
+
innerWrapper: "text-secondary",
|
|
9267
|
+
inputWrapper: [
|
|
9268
|
+
"hover:border-secondary",
|
|
9269
|
+
"focus-within:border-secondary",
|
|
9270
|
+
"focus-within:hover:border-secondary"
|
|
9271
|
+
],
|
|
9272
|
+
label: "text-secondary"
|
|
9273
|
+
}
|
|
9274
|
+
},
|
|
9275
|
+
{
|
|
9276
|
+
variant: "faded",
|
|
9277
|
+
color: "success",
|
|
9278
|
+
class: {
|
|
9279
|
+
innerWrapper: "text-success",
|
|
9280
|
+
inputWrapper: [
|
|
9281
|
+
"hover:border-success",
|
|
9282
|
+
"focus-within:border-success",
|
|
9283
|
+
"focus-within:hover:border-success"
|
|
9284
|
+
],
|
|
9285
|
+
label: "text-success"
|
|
9286
|
+
}
|
|
9287
|
+
},
|
|
9288
|
+
{
|
|
9289
|
+
variant: "faded",
|
|
9290
|
+
color: "warning",
|
|
9291
|
+
class: {
|
|
9292
|
+
innerWrapper: "text-warning",
|
|
9293
|
+
inputWrapper: [
|
|
9294
|
+
"hover:border-warning",
|
|
9295
|
+
"focus-within:border-warning",
|
|
9296
|
+
"focus-within:hover:border-warning"
|
|
9297
|
+
],
|
|
9298
|
+
label: "text-warning"
|
|
9299
|
+
}
|
|
9300
|
+
},
|
|
9301
|
+
{
|
|
9302
|
+
variant: "faded",
|
|
9303
|
+
color: "danger",
|
|
9304
|
+
class: {
|
|
9305
|
+
innerWrapper: "text-danger",
|
|
9306
|
+
inputWrapper: [
|
|
9307
|
+
"hover:border-danger",
|
|
9308
|
+
"focus-within:border-danger",
|
|
9309
|
+
"focus-within:hover:border-danger"
|
|
9310
|
+
],
|
|
9311
|
+
label: "text-danger"
|
|
9312
|
+
}
|
|
9313
|
+
},
|
|
9314
|
+
{
|
|
9315
|
+
variant: "bordered",
|
|
9241
9316
|
color: "primary",
|
|
9242
9317
|
class: {
|
|
9243
9318
|
innerWrapper: "text-primary",
|
|
@@ -9246,7 +9321,7 @@ var dateInput = tv({
|
|
|
9246
9321
|
}
|
|
9247
9322
|
},
|
|
9248
9323
|
{
|
|
9249
|
-
variant:
|
|
9324
|
+
variant: "bordered",
|
|
9250
9325
|
color: "secondary",
|
|
9251
9326
|
class: {
|
|
9252
9327
|
innerWrapper: "text-secondary",
|
|
@@ -9255,7 +9330,7 @@ var dateInput = tv({
|
|
|
9255
9330
|
}
|
|
9256
9331
|
},
|
|
9257
9332
|
{
|
|
9258
|
-
variant:
|
|
9333
|
+
variant: "bordered",
|
|
9259
9334
|
color: "success",
|
|
9260
9335
|
class: {
|
|
9261
9336
|
innerWrapper: "text-success",
|
|
@@ -9264,7 +9339,7 @@ var dateInput = tv({
|
|
|
9264
9339
|
}
|
|
9265
9340
|
},
|
|
9266
9341
|
{
|
|
9267
|
-
variant:
|
|
9342
|
+
variant: "bordered",
|
|
9268
9343
|
color: "warning",
|
|
9269
9344
|
class: {
|
|
9270
9345
|
innerWrapper: "text-warning",
|
|
@@ -9273,7 +9348,7 @@ var dateInput = tv({
|
|
|
9273
9348
|
}
|
|
9274
9349
|
},
|
|
9275
9350
|
{
|
|
9276
|
-
variant:
|
|
9351
|
+
variant: "bordered",
|
|
9277
9352
|
color: "danger",
|
|
9278
9353
|
class: {
|
|
9279
9354
|
innerWrapper: "text-danger",
|
|
@@ -9396,7 +9471,7 @@ var alert = tv({
|
|
|
9396
9471
|
title: "text-small w-full font-medium block text-inherit leading-5",
|
|
9397
9472
|
description: "pl-[1px] text-small font-normal text-inherit",
|
|
9398
9473
|
closeButton: "relative text-inherit translate-x-1 -translate-y-1",
|
|
9399
|
-
iconWrapper: "flex-none relative w-9 h-9 rounded-full",
|
|
9474
|
+
iconWrapper: "flex-none relative w-9 h-9 rounded-full grid place-items-center",
|
|
9400
9475
|
alertIcon: "fill-current w-6 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"
|
|
9401
9476
|
},
|
|
9402
9477
|
variants: {
|
|
@@ -9443,13 +9518,13 @@ var alert = tv({
|
|
|
9443
9518
|
hideIconWrapper: {
|
|
9444
9519
|
true: {
|
|
9445
9520
|
base: "gap-x-0",
|
|
9446
|
-
iconWrapper: "!bg-transparent !shadow-none"
|
|
9521
|
+
iconWrapper: "!bg-transparent !shadow-none !border-none"
|
|
9447
9522
|
}
|
|
9448
9523
|
},
|
|
9449
|
-
|
|
9524
|
+
hasContent: {
|
|
9450
9525
|
false: {
|
|
9451
9526
|
base: "items-start",
|
|
9452
|
-
mainWrapper: "justify-center"
|
|
9527
|
+
mainWrapper: "justify-center items-center"
|
|
9453
9528
|
}
|
|
9454
9529
|
}
|
|
9455
9530
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "./chunk-AN5I7NTT.mjs";
|
|
34
34
|
import {
|
|
35
35
|
select
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-CRDAR2QA.mjs";
|
|
37
37
|
import {
|
|
38
38
|
skeleton
|
|
39
39
|
} from "./chunk-OAHW4NON.mjs";
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
} from "./chunk-SC2SILVU.mjs";
|
|
46
46
|
import {
|
|
47
47
|
input
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-3ZDIPBHM.mjs";
|
|
49
49
|
import {
|
|
50
50
|
kbd
|
|
51
51
|
} from "./chunk-VX7HAPUO.mjs";
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
menu,
|
|
59
59
|
menuItem,
|
|
60
60
|
menuSection
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-6B2RD5MH.mjs";
|
|
62
62
|
import {
|
|
63
63
|
modal
|
|
64
64
|
} from "./chunk-NVK4XVTT.mjs";
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
} from "./chunk-JE6SPRGQ.mjs";
|
|
115
115
|
import {
|
|
116
116
|
dateInput
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-A3NXEE2Q.mjs";
|
|
118
118
|
import {
|
|
119
119
|
datePicker,
|
|
120
120
|
dateRangePicker
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
} from "./chunk-UGMXQ6TV.mjs";
|
|
126
126
|
import {
|
|
127
127
|
alert
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-TK7T75HE.mjs";
|
|
129
129
|
import {
|
|
130
130
|
autocomplete
|
|
131
131
|
} from "./chunk-ZZ2VSLD6.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextui-org/theme",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.4",
|
|
4
4
|
"description": "The default theme for NextUI components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"theme",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"clsx": "^1.2.1",
|
|
45
45
|
"tailwind-variants": "^0.1.20",
|
|
46
46
|
"tailwind-merge": "^2.5.2",
|
|
47
|
-
"@nextui-org/shared-utils": "2.1.
|
|
47
|
+
"@nextui-org/shared-utils": "2.1.2"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"tailwindcss": ">=3.4.0"
|