@nextui-org/theme 0.0.0-dev-v2-20230619185541 → 0.0.0-dev-v2-20230620142942
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-KZJBCC2H.mjs → chunk-DYAPDM2A.mjs} +1 -1
- package/dist/{chunk-CI2QPWUR.mjs → chunk-M7M7HWPI.mjs} +15 -9
- package/dist/{chunk-MPEOTJDC.mjs → chunk-N5YBIJN7.mjs} +2 -2
- package/dist/{chunk-T6BORZ45.mjs → chunk-OPENJYHK.mjs} +24 -24
- package/dist/{chunk-GNI32UV5.mjs → chunk-UNAW63FS.mjs} +8 -8
- package/dist/{chunk-CRCBVLUP.mjs → chunk-YGFZPBLQ.mjs} +4 -4
- package/dist/colors/blue.js +1 -1
- package/dist/colors/blue.mjs +1 -1
- package/dist/colors/common.js +1 -1
- package/dist/colors/common.mjs +3 -3
- package/dist/colors/index.js +8 -8
- package/dist/colors/index.mjs +5 -5
- package/dist/colors/semantic.js +8 -8
- package/dist/colors/semantic.mjs +4 -4
- package/dist/colors.js +8 -8
- package/dist/colors.mjs +5 -5
- package/dist/components/index.js +24 -24
- package/dist/components/index.mjs +25 -25
- package/dist/components/pagination.d.ts +20 -20
- package/dist/components/pagination.js +24 -24
- package/dist/components/pagination.mjs +1 -1
- package/dist/index.js +42 -36
- package/dist/index.mjs +33 -33
- package/dist/plugin.d.ts +4 -0
- package/dist/plugin.js +18 -12
- package/dist/plugin.mjs +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2902,7 +2902,7 @@ var radioGroup = (0, import_tailwind_variants14.tv)({
|
|
|
2902
2902
|
var import_tailwind_variants15 = require("tailwind-variants");
|
|
2903
2903
|
var pagination = (0, import_tailwind_variants15.tv)({
|
|
2904
2904
|
slots: {
|
|
2905
|
-
base: "flex flex-
|
|
2905
|
+
base: "flex flex-nowrap relative overflow-x-auto overflow-y-visible items-center gap-1 max-w-fit h-fit",
|
|
2906
2906
|
item: [],
|
|
2907
2907
|
prev: "",
|
|
2908
2908
|
next: "",
|
|
@@ -2988,6 +2988,11 @@ var pagination = (0, import_tailwind_variants15.tv)({
|
|
|
2988
2988
|
showShadow: {
|
|
2989
2989
|
true: {}
|
|
2990
2990
|
},
|
|
2991
|
+
hideCursor: {
|
|
2992
|
+
true: {
|
|
2993
|
+
cursor: "hidden"
|
|
2994
|
+
}
|
|
2995
|
+
},
|
|
2991
2996
|
disableAnimation: {
|
|
2992
2997
|
true: {
|
|
2993
2998
|
item: "transition-none",
|
|
@@ -2997,11 +3002,6 @@ var pagination = (0, import_tailwind_variants15.tv)({
|
|
|
2997
3002
|
item: "transition-background",
|
|
2998
3003
|
cursor: ["transition-transform", "!duration-300"]
|
|
2999
3004
|
}
|
|
3000
|
-
},
|
|
3001
|
-
disableCursor: {
|
|
3002
|
-
true: {
|
|
3003
|
-
cursor: "hidden"
|
|
3004
|
-
}
|
|
3005
3005
|
}
|
|
3006
3006
|
},
|
|
3007
3007
|
defaultVariants: {
|
|
@@ -3013,7 +3013,7 @@ var pagination = (0, import_tailwind_variants15.tv)({
|
|
|
3013
3013
|
isDisabled: false,
|
|
3014
3014
|
showShadow: false,
|
|
3015
3015
|
disableAnimation: false,
|
|
3016
|
-
|
|
3016
|
+
hideCursor: false
|
|
3017
3017
|
},
|
|
3018
3018
|
compoundVariants: [
|
|
3019
3019
|
{
|
|
@@ -3066,7 +3066,7 @@ var pagination = (0, import_tailwind_variants15.tv)({
|
|
|
3066
3066
|
}
|
|
3067
3067
|
},
|
|
3068
3068
|
{
|
|
3069
|
-
|
|
3069
|
+
hideCursor: true,
|
|
3070
3070
|
color: "default",
|
|
3071
3071
|
class: {
|
|
3072
3072
|
item: [
|
|
@@ -3077,7 +3077,7 @@ var pagination = (0, import_tailwind_variants15.tv)({
|
|
|
3077
3077
|
}
|
|
3078
3078
|
},
|
|
3079
3079
|
{
|
|
3080
|
-
|
|
3080
|
+
hideCursor: true,
|
|
3081
3081
|
color: "primary",
|
|
3082
3082
|
class: {
|
|
3083
3083
|
item: [
|
|
@@ -3088,7 +3088,7 @@ var pagination = (0, import_tailwind_variants15.tv)({
|
|
|
3088
3088
|
}
|
|
3089
3089
|
},
|
|
3090
3090
|
{
|
|
3091
|
-
|
|
3091
|
+
hideCursor: true,
|
|
3092
3092
|
color: "secondary",
|
|
3093
3093
|
class: {
|
|
3094
3094
|
item: [
|
|
@@ -3099,7 +3099,7 @@ var pagination = (0, import_tailwind_variants15.tv)({
|
|
|
3099
3099
|
}
|
|
3100
3100
|
},
|
|
3101
3101
|
{
|
|
3102
|
-
|
|
3102
|
+
hideCursor: true,
|
|
3103
3103
|
color: "success",
|
|
3104
3104
|
class: {
|
|
3105
3105
|
item: [
|
|
@@ -3110,7 +3110,7 @@ var pagination = (0, import_tailwind_variants15.tv)({
|
|
|
3110
3110
|
}
|
|
3111
3111
|
},
|
|
3112
3112
|
{
|
|
3113
|
-
|
|
3113
|
+
hideCursor: true,
|
|
3114
3114
|
color: "warning",
|
|
3115
3115
|
class: {
|
|
3116
3116
|
item: [
|
|
@@ -3121,7 +3121,7 @@ var pagination = (0, import_tailwind_variants15.tv)({
|
|
|
3121
3121
|
}
|
|
3122
3122
|
},
|
|
3123
3123
|
{
|
|
3124
|
-
|
|
3124
|
+
hideCursor: true,
|
|
3125
3125
|
color: "danger",
|
|
3126
3126
|
class: {
|
|
3127
3127
|
item: [
|
|
@@ -3132,7 +3132,7 @@ var pagination = (0, import_tailwind_variants15.tv)({
|
|
|
3132
3132
|
}
|
|
3133
3133
|
},
|
|
3134
3134
|
{
|
|
3135
|
-
|
|
3135
|
+
hideCursor: true,
|
|
3136
3136
|
showShadow: true,
|
|
3137
3137
|
color: "default",
|
|
3138
3138
|
class: {
|
|
@@ -3140,7 +3140,7 @@ var pagination = (0, import_tailwind_variants15.tv)({
|
|
|
3140
3140
|
}
|
|
3141
3141
|
},
|
|
3142
3142
|
{
|
|
3143
|
-
|
|
3143
|
+
hideCursor: true,
|
|
3144
3144
|
showShadow: true,
|
|
3145
3145
|
color: "primary",
|
|
3146
3146
|
class: {
|
|
@@ -3148,7 +3148,7 @@ var pagination = (0, import_tailwind_variants15.tv)({
|
|
|
3148
3148
|
}
|
|
3149
3149
|
},
|
|
3150
3150
|
{
|
|
3151
|
-
|
|
3151
|
+
hideCursor: true,
|
|
3152
3152
|
showShadow: true,
|
|
3153
3153
|
color: "secondary",
|
|
3154
3154
|
class: {
|
|
@@ -3156,7 +3156,7 @@ var pagination = (0, import_tailwind_variants15.tv)({
|
|
|
3156
3156
|
}
|
|
3157
3157
|
},
|
|
3158
3158
|
{
|
|
3159
|
-
|
|
3159
|
+
hideCursor: true,
|
|
3160
3160
|
showShadow: true,
|
|
3161
3161
|
color: "success",
|
|
3162
3162
|
class: {
|
|
@@ -3164,7 +3164,7 @@ var pagination = (0, import_tailwind_variants15.tv)({
|
|
|
3164
3164
|
}
|
|
3165
3165
|
},
|
|
3166
3166
|
{
|
|
3167
|
-
|
|
3167
|
+
hideCursor: true,
|
|
3168
3168
|
showShadow: true,
|
|
3169
3169
|
color: "warning",
|
|
3170
3170
|
class: {
|
|
@@ -3172,7 +3172,7 @@ var pagination = (0, import_tailwind_variants15.tv)({
|
|
|
3172
3172
|
}
|
|
3173
3173
|
},
|
|
3174
3174
|
{
|
|
3175
|
-
|
|
3175
|
+
hideCursor: true,
|
|
3176
3176
|
showShadow: true,
|
|
3177
3177
|
color: "danger",
|
|
3178
3178
|
class: {
|
|
@@ -3220,27 +3220,27 @@ var pagination = (0, import_tailwind_variants15.tv)({
|
|
|
3220
3220
|
{
|
|
3221
3221
|
slots: ["item", "cursor", "prev", "next"],
|
|
3222
3222
|
size: "xs",
|
|
3223
|
-
class: "w-7 h-7 text-xs"
|
|
3223
|
+
class: "min-w-7 w-7 h-7 text-xs"
|
|
3224
3224
|
},
|
|
3225
3225
|
{
|
|
3226
3226
|
slots: ["item", "cursor", "prev", "next"],
|
|
3227
3227
|
size: "sm",
|
|
3228
|
-
class: "w-8 h-8 text-sm"
|
|
3228
|
+
class: "min-w-8 w-8 h-8 text-sm"
|
|
3229
3229
|
},
|
|
3230
3230
|
{
|
|
3231
3231
|
slots: ["item", "cursor", "prev", "next"],
|
|
3232
3232
|
size: "md",
|
|
3233
|
-
class: "w-9 h-9 text-sm"
|
|
3233
|
+
class: "min-w-9 w-9 h-9 text-sm"
|
|
3234
3234
|
},
|
|
3235
3235
|
{
|
|
3236
3236
|
slots: ["item", "cursor", "prev", "next"],
|
|
3237
3237
|
size: "lg",
|
|
3238
|
-
class: "w-10 h-10 text-base"
|
|
3238
|
+
class: "min-w-10 w-10 h-10 text-base"
|
|
3239
3239
|
},
|
|
3240
3240
|
{
|
|
3241
3241
|
slots: ["item", "cursor", "prev", "next"],
|
|
3242
3242
|
size: "xl",
|
|
3243
|
-
class: "w-11 h-11 text-base"
|
|
3243
|
+
class: "min-w-11 w-11 h-11 text-base"
|
|
3244
3244
|
},
|
|
3245
3245
|
{
|
|
3246
3246
|
slots: ["item", "cursor", "prev", "next"],
|
|
@@ -6222,7 +6222,7 @@ var blue = {
|
|
|
6222
6222
|
200: "#99c7fb",
|
|
6223
6223
|
300: "#66aaf9",
|
|
6224
6224
|
400: "#338ef7",
|
|
6225
|
-
500: "#
|
|
6225
|
+
500: "#0069E0",
|
|
6226
6226
|
600: "#005bc4",
|
|
6227
6227
|
700: "#004493",
|
|
6228
6228
|
800: "#002e62",
|
|
@@ -6425,22 +6425,22 @@ var semanticColorsLight = {
|
|
|
6425
6425
|
},
|
|
6426
6426
|
primary: {
|
|
6427
6427
|
...commonColors.blue,
|
|
6428
|
-
foreground: commonColors.
|
|
6428
|
+
foreground: (0, import_color2k.readableColor)(commonColors.blue[500]),
|
|
6429
6429
|
DEFAULT: commonColors.blue[500]
|
|
6430
6430
|
},
|
|
6431
6431
|
secondary: {
|
|
6432
6432
|
...commonColors.purple,
|
|
6433
|
-
foreground: commonColors.
|
|
6433
|
+
foreground: (0, import_color2k.readableColor)(commonColors.purple[500]),
|
|
6434
6434
|
DEFAULT: commonColors.purple[500]
|
|
6435
6435
|
},
|
|
6436
6436
|
success: {
|
|
6437
6437
|
...commonColors.green,
|
|
6438
|
-
foreground: commonColors.
|
|
6438
|
+
foreground: commonColors.green[800],
|
|
6439
6439
|
DEFAULT: commonColors.green[500]
|
|
6440
6440
|
},
|
|
6441
6441
|
warning: {
|
|
6442
6442
|
...commonColors.yellow,
|
|
6443
|
-
foreground: commonColors.
|
|
6443
|
+
foreground: commonColors.yellow[900],
|
|
6444
6444
|
DEFAULT: commonColors.yellow[500]
|
|
6445
6445
|
},
|
|
6446
6446
|
danger: {
|
|
@@ -6458,12 +6458,12 @@ var semanticColorsDark = {
|
|
|
6458
6458
|
},
|
|
6459
6459
|
primary: {
|
|
6460
6460
|
...swapColorValues(commonColors.blue),
|
|
6461
|
-
|
|
6462
|
-
|
|
6461
|
+
foreground: (0, import_color2k.readableColor)(commonColors.blue[500]),
|
|
6462
|
+
DEFAULT: commonColors.blue[500]
|
|
6463
6463
|
},
|
|
6464
6464
|
secondary: {
|
|
6465
6465
|
...swapColorValues(commonColors.purple),
|
|
6466
|
-
foreground: commonColors.
|
|
6466
|
+
foreground: (0, import_color2k.readableColor)(commonColors.purple[400]),
|
|
6467
6467
|
DEFAULT: commonColors.purple[400]
|
|
6468
6468
|
},
|
|
6469
6469
|
success: {
|
|
@@ -6722,7 +6722,7 @@ var resolveConfig = (config = {}, defaultTheme, prefix) => {
|
|
|
6722
6722
|
});
|
|
6723
6723
|
return resolved;
|
|
6724
6724
|
};
|
|
6725
|
-
var corePlugin = (config = {}, defaultTheme, prefix) => {
|
|
6725
|
+
var corePlugin = (config = {}, defaultTheme, prefix, omitCommonColors) => {
|
|
6726
6726
|
const resolved = resolveConfig(config, defaultTheme, prefix);
|
|
6727
6727
|
return (0, import_plugin.default)(
|
|
6728
6728
|
({ addBase, addUtilities, addVariant }) => {
|
|
@@ -6740,7 +6740,7 @@ var corePlugin = (config = {}, defaultTheme, prefix) => {
|
|
|
6740
6740
|
theme: {
|
|
6741
6741
|
extend: {
|
|
6742
6742
|
colors: {
|
|
6743
|
-
...commonColors,
|
|
6743
|
+
...omitCommonColors ? {} : commonColors,
|
|
6744
6744
|
...resolved.colors
|
|
6745
6745
|
},
|
|
6746
6746
|
fontSize: {
|
|
@@ -6761,7 +6761,11 @@ var corePlugin = (config = {}, defaultTheme, prefix) => {
|
|
|
6761
6761
|
5: "1.25rem",
|
|
6762
6762
|
6: "1.5rem",
|
|
6763
6763
|
7: "1.75rem",
|
|
6764
|
-
8: "2rem"
|
|
6764
|
+
8: "2rem",
|
|
6765
|
+
9: "2.25rem",
|
|
6766
|
+
10: "2.5rem",
|
|
6767
|
+
11: "2.75rem",
|
|
6768
|
+
12: "3rem"
|
|
6765
6769
|
},
|
|
6766
6770
|
backgroundImage: {
|
|
6767
6771
|
"stripe-gradient": "linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent)"
|
|
@@ -6786,6 +6790,7 @@ var nextui = (config = {}) => {
|
|
|
6786
6790
|
const userDarkColors = (0, import_lodash2.default)(themeObject, "dark", {});
|
|
6787
6791
|
const defaultTheme = config.defaultTheme || "light";
|
|
6788
6792
|
const defaultPrefix = config.prefix || DEFAULT_PREFIX;
|
|
6793
|
+
const omitCommonColors = config.omitCommonColors || false;
|
|
6789
6794
|
const otherThemes = (0, import_lodash3.default)(themeObject, ["light", "dark"]) || {};
|
|
6790
6795
|
return corePlugin(
|
|
6791
6796
|
{
|
|
@@ -6794,7 +6799,8 @@ var nextui = (config = {}) => {
|
|
|
6794
6799
|
...otherThemes
|
|
6795
6800
|
},
|
|
6796
6801
|
defaultTheme,
|
|
6797
|
-
defaultPrefix
|
|
6802
|
+
defaultPrefix,
|
|
6803
|
+
omitCommonColors
|
|
6798
6804
|
);
|
|
6799
6805
|
};
|
|
6800
6806
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import "./chunk-PRWEADY4.mjs";
|
|
2
|
-
import {
|
|
3
|
-
spacer
|
|
4
|
-
} from "./chunk-3B4SYPW2.mjs";
|
|
5
|
-
import {
|
|
6
|
-
spinner
|
|
7
|
-
} from "./chunk-HOQUCE4N.mjs";
|
|
8
2
|
import {
|
|
9
3
|
table
|
|
10
4
|
} from "./chunk-U54UQOTS.mjs";
|
|
@@ -17,15 +11,9 @@ import {
|
|
|
17
11
|
import {
|
|
18
12
|
user
|
|
19
13
|
} from "./chunk-ZFYINWFR.mjs";
|
|
20
|
-
import {
|
|
21
|
-
modal
|
|
22
|
-
} from "./chunk-UHOIXUPW.mjs";
|
|
23
|
-
import {
|
|
24
|
-
navbar
|
|
25
|
-
} from "./chunk-LWJT5D6G.mjs";
|
|
26
14
|
import {
|
|
27
15
|
pagination
|
|
28
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OPENJYHK.mjs";
|
|
29
17
|
import {
|
|
30
18
|
popover
|
|
31
19
|
} from "./chunk-O32L4YWJ.mjs";
|
|
@@ -43,11 +31,11 @@ import {
|
|
|
43
31
|
snippet
|
|
44
32
|
} from "./chunk-DWC7GT4K.mjs";
|
|
45
33
|
import {
|
|
46
|
-
|
|
47
|
-
} from "./chunk-
|
|
34
|
+
spacer
|
|
35
|
+
} from "./chunk-3B4SYPW2.mjs";
|
|
48
36
|
import {
|
|
49
|
-
|
|
50
|
-
} from "./chunk-
|
|
37
|
+
spinner
|
|
38
|
+
} from "./chunk-HOQUCE4N.mjs";
|
|
51
39
|
import {
|
|
52
40
|
dropdown,
|
|
53
41
|
dropdownItem,
|
|
@@ -68,12 +56,11 @@ import {
|
|
|
68
56
|
linkAnchorClasses
|
|
69
57
|
} from "./chunk-YQXYRWJP.mjs";
|
|
70
58
|
import {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
} from "./chunk-D4S5JGOT.mjs";
|
|
59
|
+
modal
|
|
60
|
+
} from "./chunk-UHOIXUPW.mjs";
|
|
74
61
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
62
|
+
navbar
|
|
63
|
+
} from "./chunk-LWJT5D6G.mjs";
|
|
77
64
|
import {
|
|
78
65
|
button,
|
|
79
66
|
buttonGroup
|
|
@@ -94,19 +81,31 @@ import {
|
|
|
94
81
|
import {
|
|
95
82
|
code
|
|
96
83
|
} from "./chunk-BH4BMASL.mjs";
|
|
97
|
-
import "./chunk-CMYR6AOY.mjs";
|
|
98
|
-
import "./chunk-K7LK7NCE.mjs";
|
|
99
84
|
import {
|
|
100
|
-
|
|
101
|
-
} from "./chunk-
|
|
85
|
+
divider
|
|
86
|
+
} from "./chunk-2ENRZMQI.mjs";
|
|
87
|
+
import {
|
|
88
|
+
drip
|
|
89
|
+
} from "./chunk-OIVGIOVG.mjs";
|
|
102
90
|
import {
|
|
103
91
|
accordion,
|
|
104
92
|
accordionItem
|
|
105
93
|
} from "./chunk-HNRHIJNK.mjs";
|
|
94
|
+
import {
|
|
95
|
+
avatar,
|
|
96
|
+
avatarGroup
|
|
97
|
+
} from "./chunk-D4S5JGOT.mjs";
|
|
98
|
+
import {
|
|
99
|
+
badge
|
|
100
|
+
} from "./chunk-4G25OMVV.mjs";
|
|
101
|
+
import "./chunk-CMYR6AOY.mjs";
|
|
102
|
+
import "./chunk-K7LK7NCE.mjs";
|
|
103
|
+
import {
|
|
104
|
+
colorVariants
|
|
105
|
+
} from "./chunk-FPFQCKUP.mjs";
|
|
106
106
|
import {
|
|
107
107
|
nextui
|
|
108
|
-
} from "./chunk-
|
|
109
|
-
import "./chunk-JH2TR6BI.mjs";
|
|
108
|
+
} from "./chunk-M7M7HWPI.mjs";
|
|
110
109
|
import {
|
|
111
110
|
absoluteFullClasses,
|
|
112
111
|
baseStyles,
|
|
@@ -117,23 +116,24 @@ import {
|
|
|
117
116
|
import "./chunk-WQEDQHKX.mjs";
|
|
118
117
|
import {
|
|
119
118
|
colors
|
|
120
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-N5YBIJN7.mjs";
|
|
121
120
|
import {
|
|
122
121
|
semanticColors
|
|
123
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-UNAW63FS.mjs";
|
|
124
123
|
import "./chunk-37PIXVP4.mjs";
|
|
125
124
|
import "./chunk-M63AFAHO.mjs";
|
|
126
125
|
import "./chunk-DMASP6FA.mjs";
|
|
126
|
+
import "./chunk-JH2TR6BI.mjs";
|
|
127
127
|
import {
|
|
128
128
|
commonColors
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-YGFZPBLQ.mjs";
|
|
130
|
+
import "./chunk-OR5PUD24.mjs";
|
|
130
131
|
import "./chunk-DCEG5LGX.mjs";
|
|
131
132
|
import "./chunk-L2OL7R23.mjs";
|
|
132
133
|
import "./chunk-YZYGFPNK.mjs";
|
|
133
134
|
import "./chunk-Y4YW5MKL.mjs";
|
|
134
|
-
import "./chunk-
|
|
135
|
+
import "./chunk-DYAPDM2A.mjs";
|
|
135
136
|
import "./chunk-T3GWIVAM.mjs";
|
|
136
|
-
import "./chunk-OR5PUD24.mjs";
|
|
137
137
|
|
|
138
138
|
// src/index.ts
|
|
139
139
|
import { cn as cnBase } from "tailwind-variants";
|
package/dist/plugin.d.ts
CHANGED
|
@@ -26,6 +26,10 @@ type NextUIConfig = {
|
|
|
26
26
|
* @default "nextui"
|
|
27
27
|
*/
|
|
28
28
|
prefix?: string;
|
|
29
|
+
/**
|
|
30
|
+
* If true, the common nextui colors (e.g. "blue", "green", "purple") will not be extended on the theme.
|
|
31
|
+
*/
|
|
32
|
+
omitCommonColors?: boolean;
|
|
29
33
|
/**
|
|
30
34
|
* The theme definitions.
|
|
31
35
|
*/
|
package/dist/plugin.js
CHANGED
|
@@ -44,7 +44,7 @@ var blue = {
|
|
|
44
44
|
200: "#99c7fb",
|
|
45
45
|
300: "#66aaf9",
|
|
46
46
|
400: "#338ef7",
|
|
47
|
-
500: "#
|
|
47
|
+
500: "#0069E0",
|
|
48
48
|
600: "#005bc4",
|
|
49
49
|
700: "#004493",
|
|
50
50
|
800: "#002e62",
|
|
@@ -247,22 +247,22 @@ var semanticColorsLight = {
|
|
|
247
247
|
},
|
|
248
248
|
primary: {
|
|
249
249
|
...commonColors.blue,
|
|
250
|
-
foreground: commonColors.
|
|
250
|
+
foreground: (0, import_color2k.readableColor)(commonColors.blue[500]),
|
|
251
251
|
DEFAULT: commonColors.blue[500]
|
|
252
252
|
},
|
|
253
253
|
secondary: {
|
|
254
254
|
...commonColors.purple,
|
|
255
|
-
foreground: commonColors.
|
|
255
|
+
foreground: (0, import_color2k.readableColor)(commonColors.purple[500]),
|
|
256
256
|
DEFAULT: commonColors.purple[500]
|
|
257
257
|
},
|
|
258
258
|
success: {
|
|
259
259
|
...commonColors.green,
|
|
260
|
-
foreground: commonColors.
|
|
260
|
+
foreground: commonColors.green[800],
|
|
261
261
|
DEFAULT: commonColors.green[500]
|
|
262
262
|
},
|
|
263
263
|
warning: {
|
|
264
264
|
...commonColors.yellow,
|
|
265
|
-
foreground: commonColors.
|
|
265
|
+
foreground: commonColors.yellow[900],
|
|
266
266
|
DEFAULT: commonColors.yellow[500]
|
|
267
267
|
},
|
|
268
268
|
danger: {
|
|
@@ -280,12 +280,12 @@ var semanticColorsDark = {
|
|
|
280
280
|
},
|
|
281
281
|
primary: {
|
|
282
282
|
...swapColorValues(commonColors.blue),
|
|
283
|
-
|
|
284
|
-
|
|
283
|
+
foreground: (0, import_color2k.readableColor)(commonColors.blue[500]),
|
|
284
|
+
DEFAULT: commonColors.blue[500]
|
|
285
285
|
},
|
|
286
286
|
secondary: {
|
|
287
287
|
...swapColorValues(commonColors.purple),
|
|
288
|
-
foreground: commonColors.
|
|
288
|
+
foreground: (0, import_color2k.readableColor)(commonColors.purple[400]),
|
|
289
289
|
DEFAULT: commonColors.purple[400]
|
|
290
290
|
},
|
|
291
291
|
success: {
|
|
@@ -541,7 +541,7 @@ var resolveConfig = (config = {}, defaultTheme, prefix) => {
|
|
|
541
541
|
});
|
|
542
542
|
return resolved;
|
|
543
543
|
};
|
|
544
|
-
var corePlugin = (config = {}, defaultTheme, prefix) => {
|
|
544
|
+
var corePlugin = (config = {}, defaultTheme, prefix, omitCommonColors) => {
|
|
545
545
|
const resolved = resolveConfig(config, defaultTheme, prefix);
|
|
546
546
|
return (0, import_plugin.default)(
|
|
547
547
|
({ addBase, addUtilities, addVariant }) => {
|
|
@@ -559,7 +559,7 @@ var corePlugin = (config = {}, defaultTheme, prefix) => {
|
|
|
559
559
|
theme: {
|
|
560
560
|
extend: {
|
|
561
561
|
colors: {
|
|
562
|
-
...commonColors,
|
|
562
|
+
...omitCommonColors ? {} : commonColors,
|
|
563
563
|
...resolved.colors
|
|
564
564
|
},
|
|
565
565
|
fontSize: {
|
|
@@ -580,7 +580,11 @@ var corePlugin = (config = {}, defaultTheme, prefix) => {
|
|
|
580
580
|
5: "1.25rem",
|
|
581
581
|
6: "1.5rem",
|
|
582
582
|
7: "1.75rem",
|
|
583
|
-
8: "2rem"
|
|
583
|
+
8: "2rem",
|
|
584
|
+
9: "2.25rem",
|
|
585
|
+
10: "2.5rem",
|
|
586
|
+
11: "2.75rem",
|
|
587
|
+
12: "3rem"
|
|
584
588
|
},
|
|
585
589
|
backgroundImage: {
|
|
586
590
|
"stripe-gradient": "linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent)"
|
|
@@ -605,6 +609,7 @@ var nextui = (config = {}) => {
|
|
|
605
609
|
const userDarkColors = (0, import_lodash2.default)(themeObject, "dark", {});
|
|
606
610
|
const defaultTheme = config.defaultTheme || "light";
|
|
607
611
|
const defaultPrefix = config.prefix || DEFAULT_PREFIX;
|
|
612
|
+
const omitCommonColors = config.omitCommonColors || false;
|
|
608
613
|
const otherThemes = (0, import_lodash3.default)(themeObject, ["light", "dark"]) || {};
|
|
609
614
|
return corePlugin(
|
|
610
615
|
{
|
|
@@ -613,7 +618,8 @@ var nextui = (config = {}) => {
|
|
|
613
618
|
...otherThemes
|
|
614
619
|
},
|
|
615
620
|
defaultTheme,
|
|
616
|
-
defaultPrefix
|
|
621
|
+
defaultPrefix,
|
|
622
|
+
omitCommonColors
|
|
617
623
|
);
|
|
618
624
|
};
|
|
619
625
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nextui
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-JH2TR6BI.mjs";
|
|
3
|
+
} from "./chunk-M7M7HWPI.mjs";
|
|
5
4
|
import "./chunk-TSW7CNKY.mjs";
|
|
6
5
|
import "./chunk-WQEDQHKX.mjs";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-N5YBIJN7.mjs";
|
|
7
|
+
import "./chunk-UNAW63FS.mjs";
|
|
9
8
|
import "./chunk-37PIXVP4.mjs";
|
|
10
9
|
import "./chunk-M63AFAHO.mjs";
|
|
11
10
|
import "./chunk-DMASP6FA.mjs";
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-JH2TR6BI.mjs";
|
|
12
|
+
import "./chunk-YGFZPBLQ.mjs";
|
|
13
|
+
import "./chunk-OR5PUD24.mjs";
|
|
13
14
|
import "./chunk-DCEG5LGX.mjs";
|
|
14
15
|
import "./chunk-L2OL7R23.mjs";
|
|
15
16
|
import "./chunk-YZYGFPNK.mjs";
|
|
16
17
|
import "./chunk-Y4YW5MKL.mjs";
|
|
17
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-DYAPDM2A.mjs";
|
|
18
19
|
import "./chunk-T3GWIVAM.mjs";
|
|
19
|
-
import "./chunk-OR5PUD24.mjs";
|
|
20
20
|
export {
|
|
21
21
|
nextui
|
|
22
22
|
};
|