@nextui-org/theme 2.2.2 → 2.2.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-7TJINK3S.mjs → chunk-22SLLLIZ.mjs} +2 -3
- package/dist/{chunk-524WVPFR.mjs → chunk-2KK3SUMT.mjs} +3 -4
- package/dist/chunk-3XVMTUU7.mjs +15 -0
- package/dist/{chunk-CUUGEIPA.mjs → chunk-4YQYZDME.mjs} +1 -2
- package/dist/{chunk-NYSEAAK5.mjs → chunk-5AGRECY5.mjs} +3 -5
- package/dist/{chunk-MUWHEIW6.mjs → chunk-66462YHM.mjs} +8 -9
- package/dist/{chunk-UODOTC2G.mjs → chunk-A2DU46QS.mjs} +1 -1
- package/dist/{chunk-7ELFOVMX.mjs → chunk-A4VDWEXY.mjs} +5 -7
- package/dist/{chunk-PSEUPXFL.mjs → chunk-AXXUQWWC.mjs} +1 -1
- package/dist/{chunk-NAUU2OUH.mjs → chunk-BJ6IKX32.mjs} +1 -1
- package/dist/{chunk-V5ZTBGGO.mjs → chunk-BT3FGTF7.mjs} +1 -1
- package/dist/chunk-BYWORP66.mjs +20 -0
- package/dist/{chunk-JQTFOIV7.mjs → chunk-C3SML4G4.mjs} +2 -3
- package/dist/{chunk-6XJJCV76.mjs → chunk-C43Y2OOL.mjs} +2 -3
- package/dist/{chunk-FRI2VDCA.mjs → chunk-CKTE75OS.mjs} +2 -3
- package/dist/{chunk-AO2AAOEJ.mjs → chunk-DIYH6KBL.mjs} +4 -4
- package/dist/{chunk-RNAP5C4C.mjs → chunk-DXPS72CE.mjs} +1 -2
- package/dist/{chunk-CTY7IP65.mjs → chunk-DZGYN4XH.mjs} +1 -2
- package/dist/{chunk-ECP4S2VZ.mjs → chunk-EF6G67MF.mjs} +1 -1
- package/dist/{chunk-3FZU25GR.mjs → chunk-F4AOWB64.mjs} +1 -1
- package/dist/{chunk-SEKJ6A6T.mjs → chunk-GDIZAU4E.mjs} +3 -3
- package/dist/{chunk-AC6F4DT6.mjs → chunk-GFTQERGX.mjs} +1 -1
- package/dist/{chunk-4ZM6AI3H.mjs → chunk-GQDFLFNG.mjs} +2 -3
- package/dist/{chunk-VDRJHB4F.mjs → chunk-HZX5JB5L.mjs} +9 -2
- package/dist/{chunk-KA5SSSWD.mjs → chunk-IISEDJRF.mjs} +1 -2
- package/dist/{chunk-IP3D7KVB.mjs → chunk-INW3YHX5.mjs} +16 -10
- package/dist/{chunk-GMUSZ3YF.mjs → chunk-JBKBSMXM.mjs} +11 -11
- package/dist/{chunk-AT4OXKKK.mjs → chunk-KKN74BUG.mjs} +1 -2
- package/dist/{chunk-WAAJG22Y.mjs → chunk-KPVV2V7V.mjs} +2 -3
- package/dist/{chunk-GMMETTYU.mjs → chunk-N2KXC5ZE.mjs} +6 -8
- package/dist/{chunk-NPDZ7OMC.mjs → chunk-NPRQPDVP.mjs} +4 -5
- package/dist/{chunk-OQIS4MXV.mjs → chunk-QXCYVABV.mjs} +1 -1
- package/dist/{chunk-S573WUYY.mjs → chunk-SKQWKT6K.mjs} +1 -2
- package/dist/{chunk-I6ESTKKY.mjs → chunk-SPXRXN7C.mjs} +4 -4
- package/dist/{chunk-W6DVXJB3.mjs → chunk-T2VR4T5R.mjs} +1 -1
- package/dist/{chunk-LDBYFTHC.mjs → chunk-U6G6SZ26.mjs} +28 -24
- package/dist/{chunk-AGUZRGXC.mjs → chunk-V4SD44VK.mjs} +1 -1
- package/dist/{chunk-KCOC3H6R.mjs → chunk-VFGZ2KFC.mjs} +1 -2
- package/dist/{chunk-X7N3NQ6S.mjs → chunk-VLE2FQQR.mjs} +2 -4
- package/dist/{chunk-KVPPQD2E.mjs → chunk-WRLU2O3D.mjs} +2 -3
- package/dist/{chunk-7ODIBITJ.mjs → chunk-WUUKIKPR.mjs} +2 -3
- package/dist/{chunk-VJTX4YUQ.mjs → chunk-X7QC2HIM.mjs} +1 -1
- package/dist/components/accordion.js +19 -8
- package/dist/components/accordion.mjs +5 -4
- package/dist/components/autocomplete.js +19 -8
- package/dist/components/autocomplete.mjs +3 -2
- package/dist/components/avatar.d.ts +49 -0
- package/dist/components/avatar.js +27 -8
- package/dist/components/avatar.mjs +5 -4
- package/dist/components/badge.js +19 -8
- package/dist/components/badge.mjs +5 -4
- package/dist/components/breadcrumbs.js +19 -10
- package/dist/components/breadcrumbs.mjs +5 -4
- package/dist/components/button.d.ts +7 -7
- package/dist/components/button.js +22 -10
- package/dist/components/button.mjs +5 -4
- package/dist/components/calendar.js +21 -12
- package/dist/components/calendar.mjs +5 -4
- package/dist/components/card.js +20 -10
- package/dist/components/card.mjs +5 -4
- package/dist/components/checkbox.js +21 -11
- package/dist/components/checkbox.mjs +5 -4
- package/dist/components/chip.js +19 -7
- package/dist/components/chip.mjs +5 -4
- package/dist/components/circular-progress.js +20 -9
- package/dist/components/circular-progress.mjs +3 -2
- package/dist/components/code.js +19 -7
- package/dist/components/code.mjs +5 -4
- package/dist/components/date-input.js +20 -9
- package/dist/components/date-input.mjs +3 -2
- package/dist/components/date-picker.js +19 -7
- package/dist/components/date-picker.mjs +3 -2
- package/dist/components/divider.js +19 -7
- package/dist/components/divider.mjs +3 -2
- package/dist/components/drip.js +19 -7
- package/dist/components/drip.mjs +3 -2
- package/dist/components/dropdown.d.ts +5 -5
- package/dist/components/dropdown.js +20 -9
- package/dist/components/dropdown.mjs +5 -4
- package/dist/components/image.js +46 -30
- package/dist/components/image.mjs +3 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +114 -109
- package/dist/components/index.mjs +43 -42
- package/dist/components/input.js +26 -15
- package/dist/components/input.mjs +5 -4
- package/dist/components/kbd.js +19 -7
- package/dist/components/kbd.mjs +3 -2
- package/dist/components/link.js +20 -9
- package/dist/components/link.mjs +5 -4
- package/dist/components/listbox.js +19 -8
- package/dist/components/listbox.mjs +5 -4
- package/dist/components/menu.d.ts +5 -5
- package/dist/components/menu.js +19 -8
- package/dist/components/menu.mjs +5 -4
- package/dist/components/modal.d.ts +35 -0
- package/dist/components/modal.js +34 -16
- package/dist/components/modal.mjs +5 -4
- package/dist/components/navbar.js +19 -7
- package/dist/components/navbar.mjs +5 -4
- package/dist/components/pagination.js +19 -8
- package/dist/components/pagination.mjs +5 -4
- package/dist/components/popover.js +19 -8
- package/dist/components/popover.mjs +5 -4
- package/dist/components/progress.d.ts +2 -2
- package/dist/components/progress.js +21 -10
- package/dist/components/progress.mjs +3 -2
- package/dist/components/radio.js +23 -13
- package/dist/components/radio.mjs +5 -4
- package/dist/components/scroll-shadow.js +19 -7
- package/dist/components/scroll-shadow.mjs +3 -2
- package/dist/components/select.js +18 -9
- package/dist/components/select.mjs +5 -4
- package/dist/components/skeleton.js +22 -10
- package/dist/components/skeleton.mjs +3 -2
- package/dist/components/slider.d.ts +7 -0
- package/dist/components/slider.js +28 -18
- package/dist/components/slider.mjs +5 -4
- package/dist/components/snippet.js +20 -9
- package/dist/components/snippet.mjs +5 -4
- package/dist/components/spacer.js +19 -7
- package/dist/components/spacer.mjs +3 -2
- package/dist/components/spinner.js +19 -7
- package/dist/components/spinner.mjs +3 -2
- package/dist/components/table.js +20 -9
- package/dist/components/table.mjs +5 -4
- package/dist/components/tabs.js +21 -9
- package/dist/components/tabs.mjs +5 -4
- package/dist/components/toggle.js +20 -9
- package/dist/components/toggle.mjs +5 -4
- package/dist/components/user.d.ts +27 -26
- package/dist/components/user.js +19 -7
- package/dist/components/user.mjs +5 -4
- package/dist/index.d.ts +4 -0
- package/dist/index.js +128 -109
- package/dist/index.mjs +51 -42
- package/dist/utils/cn.d.ts +5 -0
- package/dist/utils/cn.js +59 -0
- package/dist/utils/cn.mjs +7 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +38 -2
- package/dist/utils/index.mjs +12 -3
- package/dist/utils/tv.js +19 -7
- package/dist/utils/tv.mjs +2 -1
- package/dist/utils/tw-merge-config.d.ts +6 -0
- package/dist/utils/tw-merge-config.js +45 -0
- package/dist/utils/tw-merge-config.mjs +8 -0
- package/dist/utils/types.mjs +0 -1
- package/package.json +4 -2
- package/dist/chunk-K7LK7NCE.mjs +0 -0
- /package/dist/{chunk-CMYR6AOY.mjs → chunk-IV3K5WDK.mjs} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
2
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
3
|
+
import * as tailwind_merge from 'tailwind-merge';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* User wrapper **Tailwind Variants** component
|
|
@@ -17,20 +18,20 @@ import * as tailwind_variants from 'tailwind-variants';
|
|
|
17
18
|
*/
|
|
18
19
|
declare const user: tailwind_variants.TVReturnType<{
|
|
19
20
|
[key: string]: {
|
|
20
|
-
[key: string]:
|
|
21
|
-
base?:
|
|
22
|
-
description?:
|
|
23
|
-
name?:
|
|
24
|
-
wrapper?:
|
|
21
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
22
|
+
base?: tailwind_merge.ClassNameValue;
|
|
23
|
+
description?: tailwind_merge.ClassNameValue;
|
|
24
|
+
name?: tailwind_merge.ClassNameValue;
|
|
25
|
+
wrapper?: tailwind_merge.ClassNameValue;
|
|
25
26
|
};
|
|
26
27
|
};
|
|
27
28
|
} | {
|
|
28
29
|
[x: string]: {
|
|
29
|
-
[x: string]:
|
|
30
|
-
base?:
|
|
31
|
-
description?:
|
|
32
|
-
name?:
|
|
33
|
-
wrapper?:
|
|
30
|
+
[x: string]: tailwind_merge.ClassNameValue | {
|
|
31
|
+
base?: tailwind_merge.ClassNameValue;
|
|
32
|
+
description?: tailwind_merge.ClassNameValue;
|
|
33
|
+
name?: tailwind_merge.ClassNameValue;
|
|
34
|
+
wrapper?: tailwind_merge.ClassNameValue;
|
|
34
35
|
};
|
|
35
36
|
};
|
|
36
37
|
} | {}, {
|
|
@@ -40,20 +41,20 @@ declare const user: tailwind_variants.TVReturnType<{
|
|
|
40
41
|
description: string;
|
|
41
42
|
}, undefined, tailwind_variants_dist_config.TVConfig<unknown, {
|
|
42
43
|
[key: string]: {
|
|
43
|
-
[key: string]:
|
|
44
|
-
base?:
|
|
45
|
-
description?:
|
|
46
|
-
name?:
|
|
47
|
-
wrapper?:
|
|
44
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
45
|
+
base?: tailwind_merge.ClassNameValue;
|
|
46
|
+
description?: tailwind_merge.ClassNameValue;
|
|
47
|
+
name?: tailwind_merge.ClassNameValue;
|
|
48
|
+
wrapper?: tailwind_merge.ClassNameValue;
|
|
48
49
|
};
|
|
49
50
|
};
|
|
50
51
|
} | {}>, {
|
|
51
52
|
[key: string]: {
|
|
52
|
-
[key: string]:
|
|
53
|
-
base?:
|
|
54
|
-
description?:
|
|
55
|
-
name?:
|
|
56
|
-
wrapper?:
|
|
53
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
54
|
+
base?: tailwind_merge.ClassNameValue;
|
|
55
|
+
description?: tailwind_merge.ClassNameValue;
|
|
56
|
+
name?: tailwind_merge.ClassNameValue;
|
|
57
|
+
wrapper?: tailwind_merge.ClassNameValue;
|
|
57
58
|
};
|
|
58
59
|
};
|
|
59
60
|
} | {}, {
|
|
@@ -68,11 +69,11 @@ declare const user: tailwind_variants.TVReturnType<{
|
|
|
68
69
|
description: string;
|
|
69
70
|
}, undefined, tailwind_variants_dist_config.TVConfig<unknown, {
|
|
70
71
|
[key: string]: {
|
|
71
|
-
[key: string]:
|
|
72
|
-
base?:
|
|
73
|
-
description?:
|
|
74
|
-
name?:
|
|
75
|
-
wrapper?:
|
|
72
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
73
|
+
base?: tailwind_merge.ClassNameValue;
|
|
74
|
+
description?: tailwind_merge.ClassNameValue;
|
|
75
|
+
name?: tailwind_merge.ClassNameValue;
|
|
76
|
+
wrapper?: tailwind_merge.ClassNameValue;
|
|
76
77
|
};
|
|
77
78
|
};
|
|
78
79
|
} | {}>, unknown, unknown, undefined>>;
|
package/dist/components/user.js
CHANGED
|
@@ -26,7 +26,24 @@ module.exports = __toCommonJS(user_exports);
|
|
|
26
26
|
|
|
27
27
|
// src/utils/tv.ts
|
|
28
28
|
var import_tailwind_variants = require("tailwind-variants");
|
|
29
|
+
|
|
30
|
+
// src/utils/tw-merge-config.ts
|
|
29
31
|
var COMMON_UNITS = ["small", "medium", "large"];
|
|
32
|
+
var twMergeConfig = {
|
|
33
|
+
theme: {
|
|
34
|
+
opacity: ["disabled"],
|
|
35
|
+
spacing: ["divider"],
|
|
36
|
+
borderWidth: COMMON_UNITS,
|
|
37
|
+
borderRadius: COMMON_UNITS
|
|
38
|
+
},
|
|
39
|
+
classGroups: {
|
|
40
|
+
shadow: [{ shadow: COMMON_UNITS }],
|
|
41
|
+
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
42
|
+
"bg-image": ["bg-stripe-gradient"]
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// src/utils/tv.ts
|
|
30
47
|
var tv = (options, config) => {
|
|
31
48
|
var _a, _b, _c;
|
|
32
49
|
return (0, import_tailwind_variants.tv)(options, {
|
|
@@ -36,16 +53,11 @@ var tv = (options, config) => {
|
|
|
36
53
|
...config == null ? void 0 : config.twMergeConfig,
|
|
37
54
|
theme: {
|
|
38
55
|
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
|
|
39
|
-
|
|
40
|
-
spacing: ["divider"],
|
|
41
|
-
borderWidth: COMMON_UNITS,
|
|
42
|
-
borderRadius: COMMON_UNITS
|
|
56
|
+
...twMergeConfig.theme
|
|
43
57
|
},
|
|
44
58
|
classGroups: {
|
|
45
59
|
...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
|
|
46
|
-
|
|
47
|
-
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
48
|
-
"bg-image": ["bg-stripe-gradient"]
|
|
60
|
+
...twMergeConfig.classGroups
|
|
49
61
|
}
|
|
50
62
|
}
|
|
51
63
|
});
|
package/dist/components/user.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
user
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-BJ6IKX32.mjs";
|
|
4
|
+
import "../chunk-IV3K5WDK.mjs";
|
|
5
|
+
import "../chunk-3XVMTUU7.mjs";
|
|
6
6
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-N2KXC5ZE.mjs";
|
|
8
|
+
import "../chunk-BYWORP66.mjs";
|
|
8
9
|
import "../chunk-XHQUSKIE.mjs";
|
|
9
10
|
export {
|
|
10
11
|
user
|
package/dist/index.d.ts
CHANGED
|
@@ -40,6 +40,8 @@ export { DatePickerReturnType, DatePickerSlots, DatePickerVariantProps, DateRang
|
|
|
40
40
|
export { absoluteFullClasses, baseStyles, collapseAdjacentVariantBorders, dataFocusVisibleClasses, focusVisibleClasses, groupDataFocusVisibleClasses, ringClasses, translateCenterClasses } from './utils/classes.js';
|
|
41
41
|
export { SlotsToClasses } from './utils/types.js';
|
|
42
42
|
export { colorVariants } from './utils/variants.js';
|
|
43
|
+
export { COMMON_UNITS, twMergeConfig } from './utils/tw-merge-config.js';
|
|
44
|
+
export { cn } from './utils/cn.js';
|
|
43
45
|
export { colors } from './colors/index.js';
|
|
44
46
|
export { nextui } from './plugin.js';
|
|
45
47
|
export { BaseThemeUnit, ConfigTheme, ConfigThemes, DefaultThemeType, FontThemeUnit, LayoutTheme, NextUIPluginConfig } from './types.js';
|
|
@@ -49,4 +51,6 @@ export { BaseColors, ColorScale, SemanticBaseColors, ThemeColors } from './color
|
|
|
49
51
|
export { commonColors } from './colors/common.js';
|
|
50
52
|
export { semanticColors } from './colors/semantic.js';
|
|
51
53
|
import 'tailwind-variants/dist/config';
|
|
54
|
+
import 'tailwind-merge';
|
|
55
|
+
import 'clsx';
|
|
52
56
|
import 'tailwindcss/plugin.js';
|