@nextui-org/theme 0.0.0-dev-v2-20230619135319 → 0.0.0-dev-v2-20230620004617

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.
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-Y4YW5MKL.mjs";
13
13
  import {
14
14
  blue
15
- } from "./chunk-KZJBCC2H.mjs";
15
+ } from "./chunk-DYAPDM2A.mjs";
16
16
  import {
17
17
  cyan
18
18
  } from "./chunk-T3GWIVAM.mjs";
@@ -5,7 +5,7 @@ var blue = {
5
5
  200: "#99c7fb",
6
6
  300: "#66aaf9",
7
7
  400: "#338ef7",
8
- 500: "#0072f5",
8
+ 500: "#0069E0",
9
9
  600: "#005bc4",
10
10
  700: "#004493",
11
11
  800: "#002e62",
@@ -33,7 +33,7 @@ var pagination = tv({
33
33
  },
34
34
  flat: {},
35
35
  faded: {
36
- item: "border-2"
36
+ item: ["border-2", "border-default"]
37
37
  }
38
38
  },
39
39
  color: {
@@ -92,6 +92,11 @@ var pagination = tv({
92
92
  showShadow: {
93
93
  true: {}
94
94
  },
95
+ hideCursor: {
96
+ true: {
97
+ cursor: "hidden"
98
+ }
99
+ },
95
100
  disableAnimation: {
96
101
  true: {
97
102
  item: "transition-none",
@@ -101,11 +106,6 @@ var pagination = tv({
101
106
  item: "transition-background",
102
107
  cursor: ["transition-transform", "!duration-300"]
103
108
  }
104
- },
105
- disableCursor: {
106
- true: {
107
- cursor: "hidden"
108
- }
109
109
  }
110
110
  },
111
111
  defaultVariants: {
@@ -117,7 +117,7 @@ var pagination = tv({
117
117
  isDisabled: false,
118
118
  showShadow: false,
119
119
  disableAnimation: false,
120
- disableCursor: false
120
+ hideCursor: false
121
121
  },
122
122
  compoundVariants: [
123
123
  {
@@ -170,7 +170,7 @@ var pagination = tv({
170
170
  }
171
171
  },
172
172
  {
173
- disableCursor: true,
173
+ hideCursor: true,
174
174
  color: "default",
175
175
  class: {
176
176
  item: [
@@ -181,7 +181,7 @@ var pagination = tv({
181
181
  }
182
182
  },
183
183
  {
184
- disableCursor: true,
184
+ hideCursor: true,
185
185
  color: "primary",
186
186
  class: {
187
187
  item: [
@@ -192,7 +192,7 @@ var pagination = tv({
192
192
  }
193
193
  },
194
194
  {
195
- disableCursor: true,
195
+ hideCursor: true,
196
196
  color: "secondary",
197
197
  class: {
198
198
  item: [
@@ -203,7 +203,7 @@ var pagination = tv({
203
203
  }
204
204
  },
205
205
  {
206
- disableCursor: true,
206
+ hideCursor: true,
207
207
  color: "success",
208
208
  class: {
209
209
  item: [
@@ -214,7 +214,7 @@ var pagination = tv({
214
214
  }
215
215
  },
216
216
  {
217
- disableCursor: true,
217
+ hideCursor: true,
218
218
  color: "warning",
219
219
  class: {
220
220
  item: [
@@ -225,7 +225,7 @@ var pagination = tv({
225
225
  }
226
226
  },
227
227
  {
228
- disableCursor: true,
228
+ hideCursor: true,
229
229
  color: "danger",
230
230
  class: {
231
231
  item: [
@@ -236,7 +236,7 @@ var pagination = tv({
236
236
  }
237
237
  },
238
238
  {
239
- disableCursor: true,
239
+ hideCursor: true,
240
240
  showShadow: true,
241
241
  color: "default",
242
242
  class: {
@@ -244,7 +244,7 @@ var pagination = tv({
244
244
  }
245
245
  },
246
246
  {
247
- disableCursor: true,
247
+ hideCursor: true,
248
248
  showShadow: true,
249
249
  color: "primary",
250
250
  class: {
@@ -252,7 +252,7 @@ var pagination = tv({
252
252
  }
253
253
  },
254
254
  {
255
- disableCursor: true,
255
+ hideCursor: true,
256
256
  showShadow: true,
257
257
  color: "secondary",
258
258
  class: {
@@ -260,7 +260,7 @@ var pagination = tv({
260
260
  }
261
261
  },
262
262
  {
263
- disableCursor: true,
263
+ hideCursor: true,
264
264
  showShadow: true,
265
265
  color: "success",
266
266
  class: {
@@ -268,7 +268,7 @@ var pagination = tv({
268
268
  }
269
269
  },
270
270
  {
271
- disableCursor: true,
271
+ hideCursor: true,
272
272
  showShadow: true,
273
273
  color: "warning",
274
274
  class: {
@@ -276,7 +276,7 @@ var pagination = tv({
276
276
  }
277
277
  },
278
278
  {
279
- disableCursor: true,
279
+ hideCursor: true,
280
280
  showShadow: true,
281
281
  color: "danger",
282
282
  class: {
@@ -314,7 +314,7 @@ var pagination = tv({
314
314
  {
315
315
  slots: ["item", "prev", "next"],
316
316
  variant: "faded",
317
- class: ["bg-default-100", "data-[hover=true]:bg-default-200", "active:bg-default-300"]
317
+ class: ["bg-default-50", "data-[hover=true]:bg-default-100", "active:bg-default-200"]
318
318
  },
319
319
  {
320
320
  slots: ["item", "prev", "next"],
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  semanticColors
3
- } from "./chunk-GNI32UV5.mjs";
3
+ } from "./chunk-RB7R7Z3Y.mjs";
4
4
  import {
5
5
  commonColors
6
- } from "./chunk-CRCBVLUP.mjs";
6
+ } from "./chunk-5LKRUH3Q.mjs";
7
7
 
8
8
  // src/colors/index.ts
9
9
  var colors = {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-37PIXVP4.mjs";
4
4
  import {
5
5
  commonColors
6
- } from "./chunk-CRCBVLUP.mjs";
6
+ } from "./chunk-5LKRUH3Q.mjs";
7
7
 
8
8
  // src/colors/semantic.ts
9
9
  import twColors from "tailwindcss/colors.js";
@@ -73,22 +73,22 @@ var semanticColorsLight = {
73
73
  },
74
74
  primary: {
75
75
  ...commonColors.blue,
76
- foreground: commonColors.white,
76
+ foreground: readableColor(commonColors.blue[500]),
77
77
  DEFAULT: commonColors.blue[500]
78
78
  },
79
79
  secondary: {
80
80
  ...commonColors.purple,
81
- foreground: commonColors.white,
81
+ foreground: readableColor(commonColors.purple[500]),
82
82
  DEFAULT: commonColors.purple[500]
83
83
  },
84
84
  success: {
85
85
  ...commonColors.green,
86
- foreground: commonColors.white,
86
+ foreground: commonColors.green[800],
87
87
  DEFAULT: commonColors.green[500]
88
88
  },
89
89
  warning: {
90
90
  ...commonColors.yellow,
91
- foreground: commonColors.white,
91
+ foreground: commonColors.yellow[900],
92
92
  DEFAULT: commonColors.yellow[500]
93
93
  },
94
94
  danger: {
@@ -106,12 +106,12 @@ var semanticColorsDark = {
106
106
  },
107
107
  primary: {
108
108
  ...swapColorValues(commonColors.blue),
109
- DEFAULT: commonColors.blue[500],
110
- foreground: commonColors.white
109
+ foreground: readableColor(commonColors.blue[500]),
110
+ DEFAULT: commonColors.blue[500]
111
111
  },
112
112
  secondary: {
113
113
  ...swapColorValues(commonColors.purple),
114
- foreground: commonColors.white,
114
+ foreground: readableColor(commonColors.purple[400]),
115
115
  DEFAULT: commonColors.purple[400]
116
116
  },
117
117
  success: {
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-TSW7CNKY.mjs";
7
7
  import {
8
8
  semanticColors
9
- } from "./chunk-GNI32UV5.mjs";
9
+ } from "./chunk-RB7R7Z3Y.mjs";
10
10
  import {
11
11
  removeDefaultKeys
12
12
  } from "./chunk-37PIXVP4.mjs";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-DMASP6FA.mjs";
16
16
  import {
17
17
  commonColors
18
- } from "./chunk-CRCBVLUP.mjs";
18
+ } from "./chunk-5LKRUH3Q.mjs";
19
19
 
20
20
  // src/plugin.ts
21
21
  import Color from "color";
@@ -91,7 +91,7 @@ var resolveConfig = (config = {}, defaultTheme, prefix) => {
91
91
  });
92
92
  return resolved;
93
93
  };
94
- var corePlugin = (config = {}, defaultTheme, prefix) => {
94
+ var corePlugin = (config = {}, defaultTheme, prefix, omitCommonColors) => {
95
95
  const resolved = resolveConfig(config, defaultTheme, prefix);
96
96
  return plugin(
97
97
  ({ addBase, addUtilities, addVariant }) => {
@@ -109,7 +109,7 @@ var corePlugin = (config = {}, defaultTheme, prefix) => {
109
109
  theme: {
110
110
  extend: {
111
111
  colors: {
112
- ...commonColors,
112
+ ...omitCommonColors ? {} : commonColors,
113
113
  ...resolved.colors
114
114
  },
115
115
  fontSize: {
@@ -155,6 +155,7 @@ var nextui = (config = {}) => {
155
155
  const userDarkColors = get(themeObject, "dark", {});
156
156
  const defaultTheme = config.defaultTheme || "light";
157
157
  const defaultPrefix = config.prefix || DEFAULT_PREFIX;
158
+ const omitCommonColors = config.omitCommonColors || false;
158
159
  const otherThemes = omit(themeObject, ["light", "dark"]) || {};
159
160
  return corePlugin(
160
161
  {
@@ -163,7 +164,8 @@ var nextui = (config = {}) => {
163
164
  ...otherThemes
164
165
  },
165
166
  defaultTheme,
166
- defaultPrefix
167
+ defaultPrefix,
168
+ omitCommonColors
167
169
  );
168
170
  };
169
171
 
@@ -29,7 +29,7 @@ var blue = {
29
29
  200: "#99c7fb",
30
30
  300: "#66aaf9",
31
31
  400: "#338ef7",
32
- 500: "#0072f5",
32
+ 500: "#0069E0",
33
33
  600: "#005bc4",
34
34
  700: "#004493",
35
35
  800: "#002e62",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  blue
3
- } from "../chunk-KZJBCC2H.mjs";
3
+ } from "../chunk-DYAPDM2A.mjs";
4
4
  export {
5
5
  blue
6
6
  };
@@ -31,7 +31,7 @@ var blue = {
31
31
  200: "#99c7fb",
32
32
  300: "#66aaf9",
33
33
  400: "#338ef7",
34
- 500: "#0072f5",
34
+ 500: "#0069E0",
35
35
  600: "#005bc4",
36
36
  700: "#004493",
37
37
  800: "#002e62",
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  commonColors
3
- } from "../chunk-CRCBVLUP.mjs";
3
+ } from "../chunk-5LKRUH3Q.mjs";
4
4
  import "../chunk-DCEG5LGX.mjs";
5
5
  import "../chunk-L2OL7R23.mjs";
6
6
  import "../chunk-YZYGFPNK.mjs";
7
7
  import "../chunk-Y4YW5MKL.mjs";
8
- import "../chunk-KZJBCC2H.mjs";
8
+ import "../chunk-DYAPDM2A.mjs";
9
9
  import "../chunk-T3GWIVAM.mjs";
10
10
  import "../chunk-OR5PUD24.mjs";
11
11
  export {
@@ -39,7 +39,7 @@ var blue = {
39
39
  200: "#99c7fb",
40
40
  300: "#66aaf9",
41
41
  400: "#338ef7",
42
- 500: "#0072f5",
42
+ 500: "#0069E0",
43
43
  600: "#005bc4",
44
44
  700: "#004493",
45
45
  800: "#002e62",
@@ -231,22 +231,22 @@ var semanticColorsLight = {
231
231
  },
232
232
  primary: {
233
233
  ...commonColors.blue,
234
- foreground: commonColors.white,
234
+ foreground: (0, import_color2k.readableColor)(commonColors.blue[500]),
235
235
  DEFAULT: commonColors.blue[500]
236
236
  },
237
237
  secondary: {
238
238
  ...commonColors.purple,
239
- foreground: commonColors.white,
239
+ foreground: (0, import_color2k.readableColor)(commonColors.purple[500]),
240
240
  DEFAULT: commonColors.purple[500]
241
241
  },
242
242
  success: {
243
243
  ...commonColors.green,
244
- foreground: commonColors.white,
244
+ foreground: commonColors.green[800],
245
245
  DEFAULT: commonColors.green[500]
246
246
  },
247
247
  warning: {
248
248
  ...commonColors.yellow,
249
- foreground: commonColors.white,
249
+ foreground: commonColors.yellow[900],
250
250
  DEFAULT: commonColors.yellow[500]
251
251
  },
252
252
  danger: {
@@ -264,12 +264,12 @@ var semanticColorsDark = {
264
264
  },
265
265
  primary: {
266
266
  ...swapColorValues(commonColors.blue),
267
- DEFAULT: commonColors.blue[500],
268
- foreground: commonColors.white
267
+ foreground: (0, import_color2k.readableColor)(commonColors.blue[500]),
268
+ DEFAULT: commonColors.blue[500]
269
269
  },
270
270
  secondary: {
271
271
  ...swapColorValues(commonColors.purple),
272
- foreground: commonColors.white,
272
+ foreground: (0, import_color2k.readableColor)(commonColors.purple[400]),
273
273
  DEFAULT: commonColors.purple[400]
274
274
  },
275
275
  success: {
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  colors
3
- } from "../chunk-MPEOTJDC.mjs";
3
+ } from "../chunk-LBMDDCFV.mjs";
4
4
  import {
5
5
  semanticColors
6
- } from "../chunk-GNI32UV5.mjs";
6
+ } from "../chunk-RB7R7Z3Y.mjs";
7
7
  import "../chunk-37PIXVP4.mjs";
8
8
  import "../chunk-M63AFAHO.mjs";
9
9
  import {
10
10
  commonColors
11
- } from "../chunk-CRCBVLUP.mjs";
11
+ } from "../chunk-5LKRUH3Q.mjs";
12
12
  import "../chunk-DCEG5LGX.mjs";
13
13
  import "../chunk-L2OL7R23.mjs";
14
14
  import "../chunk-YZYGFPNK.mjs";
15
15
  import "../chunk-Y4YW5MKL.mjs";
16
- import "../chunk-KZJBCC2H.mjs";
16
+ import "../chunk-DYAPDM2A.mjs";
17
17
  import "../chunk-T3GWIVAM.mjs";
18
18
  import "../chunk-OR5PUD24.mjs";
19
19
  export {
@@ -59,7 +59,7 @@ var blue = {
59
59
  200: "#99c7fb",
60
60
  300: "#66aaf9",
61
61
  400: "#338ef7",
62
- 500: "#0072f5",
62
+ 500: "#0069E0",
63
63
  600: "#005bc4",
64
64
  700: "#004493",
65
65
  800: "#002e62",
@@ -229,22 +229,22 @@ var semanticColorsLight = {
229
229
  },
230
230
  primary: {
231
231
  ...commonColors.blue,
232
- foreground: commonColors.white,
232
+ foreground: (0, import_color2k.readableColor)(commonColors.blue[500]),
233
233
  DEFAULT: commonColors.blue[500]
234
234
  },
235
235
  secondary: {
236
236
  ...commonColors.purple,
237
- foreground: commonColors.white,
237
+ foreground: (0, import_color2k.readableColor)(commonColors.purple[500]),
238
238
  DEFAULT: commonColors.purple[500]
239
239
  },
240
240
  success: {
241
241
  ...commonColors.green,
242
- foreground: commonColors.white,
242
+ foreground: commonColors.green[800],
243
243
  DEFAULT: commonColors.green[500]
244
244
  },
245
245
  warning: {
246
246
  ...commonColors.yellow,
247
- foreground: commonColors.white,
247
+ foreground: commonColors.yellow[900],
248
248
  DEFAULT: commonColors.yellow[500]
249
249
  },
250
250
  danger: {
@@ -262,12 +262,12 @@ var semanticColorsDark = {
262
262
  },
263
263
  primary: {
264
264
  ...swapColorValues(commonColors.blue),
265
- DEFAULT: commonColors.blue[500],
266
- foreground: commonColors.white
265
+ foreground: (0, import_color2k.readableColor)(commonColors.blue[500]),
266
+ DEFAULT: commonColors.blue[500]
267
267
  },
268
268
  secondary: {
269
269
  ...swapColorValues(commonColors.purple),
270
- foreground: commonColors.white,
270
+ foreground: (0, import_color2k.readableColor)(commonColors.purple[400]),
271
271
  DEFAULT: commonColors.purple[400]
272
272
  },
273
273
  success: {
@@ -2,14 +2,14 @@ import {
2
2
  semanticColors,
3
3
  semanticColorsDark,
4
4
  semanticColorsLight
5
- } from "../chunk-GNI32UV5.mjs";
5
+ } from "../chunk-RB7R7Z3Y.mjs";
6
6
  import "../chunk-37PIXVP4.mjs";
7
- import "../chunk-CRCBVLUP.mjs";
7
+ import "../chunk-5LKRUH3Q.mjs";
8
8
  import "../chunk-DCEG5LGX.mjs";
9
9
  import "../chunk-L2OL7R23.mjs";
10
10
  import "../chunk-YZYGFPNK.mjs";
11
11
  import "../chunk-Y4YW5MKL.mjs";
12
- import "../chunk-KZJBCC2H.mjs";
12
+ import "../chunk-DYAPDM2A.mjs";
13
13
  import "../chunk-T3GWIVAM.mjs";
14
14
  import "../chunk-OR5PUD24.mjs";
15
15
  export {
package/dist/colors.js CHANGED
@@ -39,7 +39,7 @@ var blue = {
39
39
  200: "#99c7fb",
40
40
  300: "#66aaf9",
41
41
  400: "#338ef7",
42
- 500: "#0072f5",
42
+ 500: "#0069E0",
43
43
  600: "#005bc4",
44
44
  700: "#004493",
45
45
  800: "#002e62",
@@ -231,22 +231,22 @@ var semanticColorsLight = {
231
231
  },
232
232
  primary: {
233
233
  ...commonColors.blue,
234
- foreground: commonColors.white,
234
+ foreground: (0, import_color2k.readableColor)(commonColors.blue[500]),
235
235
  DEFAULT: commonColors.blue[500]
236
236
  },
237
237
  secondary: {
238
238
  ...commonColors.purple,
239
- foreground: commonColors.white,
239
+ foreground: (0, import_color2k.readableColor)(commonColors.purple[500]),
240
240
  DEFAULT: commonColors.purple[500]
241
241
  },
242
242
  success: {
243
243
  ...commonColors.green,
244
- foreground: commonColors.white,
244
+ foreground: commonColors.green[800],
245
245
  DEFAULT: commonColors.green[500]
246
246
  },
247
247
  warning: {
248
248
  ...commonColors.yellow,
249
- foreground: commonColors.white,
249
+ foreground: commonColors.yellow[900],
250
250
  DEFAULT: commonColors.yellow[500]
251
251
  },
252
252
  danger: {
@@ -264,12 +264,12 @@ var semanticColorsDark = {
264
264
  },
265
265
  primary: {
266
266
  ...swapColorValues(commonColors.blue),
267
- DEFAULT: commonColors.blue[500],
268
- foreground: commonColors.white
267
+ foreground: (0, import_color2k.readableColor)(commonColors.blue[500]),
268
+ DEFAULT: commonColors.blue[500]
269
269
  },
270
270
  secondary: {
271
271
  ...swapColorValues(commonColors.purple),
272
- foreground: commonColors.white,
272
+ foreground: (0, import_color2k.readableColor)(commonColors.purple[400]),
273
273
  DEFAULT: commonColors.purple[400]
274
274
  },
275
275
  success: {
package/dist/colors.mjs CHANGED
@@ -1,20 +1,20 @@
1
1
  import "./chunk-WQEDQHKX.mjs";
2
2
  import {
3
3
  colors
4
- } from "./chunk-MPEOTJDC.mjs";
4
+ } from "./chunk-LBMDDCFV.mjs";
5
5
  import {
6
6
  semanticColors
7
- } from "./chunk-GNI32UV5.mjs";
7
+ } from "./chunk-RB7R7Z3Y.mjs";
8
8
  import "./chunk-37PIXVP4.mjs";
9
9
  import "./chunk-M63AFAHO.mjs";
10
10
  import {
11
11
  commonColors
12
- } from "./chunk-CRCBVLUP.mjs";
12
+ } from "./chunk-5LKRUH3Q.mjs";
13
13
  import "./chunk-DCEG5LGX.mjs";
14
14
  import "./chunk-L2OL7R23.mjs";
15
15
  import "./chunk-YZYGFPNK.mjs";
16
16
  import "./chunk-Y4YW5MKL.mjs";
17
- import "./chunk-KZJBCC2H.mjs";
17
+ import "./chunk-DYAPDM2A.mjs";
18
18
  import "./chunk-T3GWIVAM.mjs";
19
19
  import "./chunk-OR5PUD24.mjs";
20
20
  export {