@nextui-org/theme 0.0.0-dev-v2-20230409144630 → 0.0.0-dev-v2-20230412004701

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.
@@ -8,6 +8,11 @@ declare const animations: {
8
8
  "indeterminate-bar": string;
9
9
  };
10
10
  keyframes: {
11
+ shimmer: {
12
+ "100%": {
13
+ transform: string;
14
+ };
15
+ };
11
16
  "spinner-spin": {
12
17
  "0%": {
13
18
  transform: string;
@@ -33,6 +33,11 @@ var animations = {
33
33
  "indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
34
34
  },
35
35
  keyframes: {
36
+ shimmer: {
37
+ "100%": {
38
+ transform: "translateX(100%)"
39
+ }
40
+ },
36
41
  "spinner-spin": {
37
42
  "0%": {
38
43
  transform: "rotate(0deg)"
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  animations
3
- } from "../chunk-7QLHM6OE.mjs";
3
+ } from "../chunk-DMASP6FA.mjs";
4
4
  export {
5
5
  animations
6
6
  };
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-37PIXVP4.mjs";
13
13
  import {
14
14
  animations
15
- } from "./chunk-7QLHM6OE.mjs";
15
+ } from "./chunk-DMASP6FA.mjs";
16
16
  import {
17
17
  commonColors
18
18
  } from "./chunk-CRCBVLUP.mjs";
@@ -9,6 +9,11 @@ var animations = {
9
9
  "indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
10
10
  },
11
11
  keyframes: {
12
+ shimmer: {
13
+ "100%": {
14
+ transform: "translateX(100%)"
15
+ }
16
+ },
12
17
  "spinner-spin": {
13
18
  "0%": {
14
19
  transform: "rotate(0deg)"
@@ -74,7 +74,7 @@ var button = tv({
74
74
  isInGroup: {
75
75
  true: "[&:not(:first-child):not(:last-child)]:rounded-none"
76
76
  },
77
- isIconButton: {
77
+ isIconOnly: {
78
78
  true: "p-0 gap-0"
79
79
  },
80
80
  disableAnimation: {
@@ -320,31 +320,31 @@ var button = tv({
320
320
  },
321
321
  {
322
322
  isInGroup: true,
323
- variant: "bordered",
323
+ variant: ["bordered", "ghost"],
324
324
  class: "[&:not(:first-child)]:border-l-0"
325
325
  },
326
326
  {
327
- isIconButton: true,
327
+ isIconOnly: true,
328
328
  size: "xs",
329
329
  class: "w-6 h-6"
330
330
  },
331
331
  {
332
- isIconButton: true,
332
+ isIconOnly: true,
333
333
  size: "sm",
334
334
  class: "w-8 h-8"
335
335
  },
336
336
  {
337
- isIconButton: true,
337
+ isIconOnly: true,
338
338
  size: "md",
339
339
  class: "w-10 h-10"
340
340
  },
341
341
  {
342
- isIconButton: true,
342
+ isIconOnly: true,
343
343
  size: "lg",
344
344
  class: "w-12 h-12"
345
345
  },
346
346
  {
347
- isIconButton: true,
347
+ isIconOnly: true,
348
348
  size: "xl",
349
349
  class: "w-14 h-14"
350
350
  }
@@ -0,0 +1,167 @@
1
+ // src/components/image.ts
2
+ import { tv } from "tailwind-variants";
3
+ var image = tv({
4
+ slots: {
5
+ base: "relative shadow-black/25",
6
+ zoomedWrapper: "relative overflow-hidden rounded-inherit",
7
+ img: "opacity-0 shadow-black/25 data-[loaded=true]:opacity-100",
8
+ blurredImg: [
9
+ "absolute",
10
+ "-z-10",
11
+ "inset-0",
12
+ "w-full",
13
+ "h-full",
14
+ "object-cover",
15
+ "filter",
16
+ "blur-lg",
17
+ "scale-105",
18
+ "opacity-40",
19
+ "translate-y-1"
20
+ ]
21
+ },
22
+ variants: {
23
+ radius: {
24
+ none: {},
25
+ base: {},
26
+ sm: {},
27
+ md: {},
28
+ lg: {},
29
+ xl: {},
30
+ "2xl": {},
31
+ "3xl": {},
32
+ full: {}
33
+ },
34
+ shadow: {
35
+ none: {
36
+ base: "shadow-none",
37
+ img: "shadow-none"
38
+ },
39
+ sm: {
40
+ base: "shadow-sm",
41
+ img: "shadow-sm"
42
+ },
43
+ base: {
44
+ base: "shadow",
45
+ img: "shadow"
46
+ },
47
+ md: {
48
+ base: "shadow-md",
49
+ img: "shadow-md"
50
+ },
51
+ lg: {
52
+ base: "shadow-lg",
53
+ img: "shadow-lg"
54
+ },
55
+ xl: {
56
+ base: "shadow-xl",
57
+ img: "shadow-xl"
58
+ },
59
+ "2xl": {
60
+ base: "shadow-2xl",
61
+ img: "shadow-2xl"
62
+ },
63
+ inner: {
64
+ base: "shadow-inner",
65
+ img: "shadow-inner"
66
+ }
67
+ },
68
+ isZoomed: {
69
+ true: {
70
+ img: ["object-cover", "transform", "hover:scale-125"]
71
+ }
72
+ },
73
+ showSkeleton: {
74
+ true: {
75
+ base: [
76
+ "space-y-5",
77
+ "overflow-hidden",
78
+ "bg-white/5",
79
+ "before:absolute",
80
+ "before:inset-0",
81
+ "before:-translate-x-full",
82
+ "before:animate-[shimmer_2s_infinite]",
83
+ "before:border-t",
84
+ "before:border-content4/70",
85
+ "before:bg-gradient-to-r",
86
+ "before:from-transparent",
87
+ "before:via-content4",
88
+ "dark:before:via-neutral-700/10",
89
+ "before:to-transparent",
90
+ "after:absolute",
91
+ "after:inset-0",
92
+ "after:-z-10",
93
+ "after:bg-content3",
94
+ "dark:after:bg-content2"
95
+ ],
96
+ img: "opacity-0"
97
+ }
98
+ },
99
+ disableAnimation: {
100
+ true: {
101
+ img: "transition-none"
102
+ },
103
+ false: {
104
+ img: "transition-transform-opacity motion-reduce:transition-none !duration-300"
105
+ }
106
+ }
107
+ },
108
+ defaultVariants: {
109
+ radius: "xl",
110
+ shadow: "none",
111
+ isZoomed: false,
112
+ isBlurred: false,
113
+ showSkeleton: false,
114
+ disableAnimation: false
115
+ },
116
+ compoundSlots: [
117
+ {
118
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
119
+ radius: "none",
120
+ class: "rounded-none"
121
+ },
122
+ {
123
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
124
+ radius: "full",
125
+ class: "rounded-full"
126
+ },
127
+ {
128
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
129
+ radius: "base",
130
+ class: "rounded"
131
+ },
132
+ {
133
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
134
+ radius: "sm",
135
+ class: "rounded-sm"
136
+ },
137
+ {
138
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
139
+ radius: "md",
140
+ class: "rounded-md"
141
+ },
142
+ {
143
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
144
+ radius: "lg",
145
+ class: "rounded-lg"
146
+ },
147
+ {
148
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
149
+ radius: "xl",
150
+ class: "rounded-xl"
151
+ },
152
+ {
153
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
154
+ radius: "2xl",
155
+ class: "rounded-2xl"
156
+ },
157
+ {
158
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
159
+ radius: "3xl",
160
+ class: "rounded-3xl"
161
+ }
162
+ ]
163
+ });
164
+
165
+ export {
166
+ image
167
+ };
@@ -60,7 +60,7 @@ declare const button: tailwind_variants.TVReturnType<{
60
60
  isInGroup: {
61
61
  true: string;
62
62
  };
63
- isIconButton: {
63
+ isIconOnly: {
64
64
  true: string;
65
65
  };
66
66
  disableAnimation: {
@@ -115,7 +115,7 @@ declare const button: tailwind_variants.TVReturnType<{
115
115
  isInGroup: {
116
116
  true: string;
117
117
  };
118
- isIconButton: {
118
+ isIconOnly: {
119
119
  true: string;
120
120
  };
121
121
  disableAnimation: {
@@ -177,7 +177,7 @@ var button = (0, import_tailwind_variants.tv)({
177
177
  isInGroup: {
178
178
  true: "[&:not(:first-child):not(:last-child)]:rounded-none"
179
179
  },
180
- isIconButton: {
180
+ isIconOnly: {
181
181
  true: "p-0 gap-0"
182
182
  },
183
183
  disableAnimation: {
@@ -423,31 +423,31 @@ var button = (0, import_tailwind_variants.tv)({
423
423
  },
424
424
  {
425
425
  isInGroup: true,
426
- variant: "bordered",
426
+ variant: ["bordered", "ghost"],
427
427
  class: "[&:not(:first-child)]:border-l-0"
428
428
  },
429
429
  {
430
- isIconButton: true,
430
+ isIconOnly: true,
431
431
  size: "xs",
432
432
  class: "w-6 h-6"
433
433
  },
434
434
  {
435
- isIconButton: true,
435
+ isIconOnly: true,
436
436
  size: "sm",
437
437
  class: "w-8 h-8"
438
438
  },
439
439
  {
440
- isIconButton: true,
440
+ isIconOnly: true,
441
441
  size: "md",
442
442
  class: "w-10 h-10"
443
443
  },
444
444
  {
445
- isIconButton: true,
445
+ isIconOnly: true,
446
446
  size: "lg",
447
447
  class: "w-12 h-12"
448
448
  },
449
449
  {
450
- isIconButton: true,
450
+ isIconOnly: true,
451
451
  size: "xl",
452
452
  class: "w-14 h-14"
453
453
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  button
3
- } from "../chunk-BD2KW4ZD.mjs";
3
+ } from "../chunk-IRJ5MMDL.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
6
  import "../chunk-LGGZKBOO.mjs";
@@ -0,0 +1,160 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
4
+
5
+ /**
6
+ * Image wrapper **Tailwind Variants** component
7
+ *
8
+ * const {base, img, blurredImg, zoomedWrapper} = image({...})
9
+ *
10
+ * @example
11
+ * <div className={base()}>
12
+ * <img alt="image" className={img())} src="https://..." />
13
+ * // wrap the image if you want to zoom it
14
+ * <div className={zoomedWrapper()}>
15
+ * <img alt="image" className={img())} src="https://..." />
16
+ * </div>
17
+ * // duplicate it for the blur effect
18
+ * <img alt="image" className={blurredImg())} src="https://..." />
19
+ * </div>
20
+ */
21
+ declare const image: tailwind_variants.TVReturnType<{
22
+ radius: {
23
+ none: {};
24
+ base: {};
25
+ sm: {};
26
+ md: {};
27
+ lg: {};
28
+ xl: {};
29
+ "2xl": {};
30
+ "3xl": {};
31
+ full: {};
32
+ };
33
+ shadow: {
34
+ none: {
35
+ base: string;
36
+ img: string;
37
+ };
38
+ sm: {
39
+ base: string;
40
+ img: string;
41
+ };
42
+ base: {
43
+ base: string;
44
+ img: string;
45
+ };
46
+ md: {
47
+ base: string;
48
+ img: string;
49
+ };
50
+ lg: {
51
+ base: string;
52
+ img: string;
53
+ };
54
+ xl: {
55
+ base: string;
56
+ img: string;
57
+ };
58
+ "2xl": {
59
+ base: string;
60
+ img: string;
61
+ };
62
+ inner: {
63
+ base: string;
64
+ img: string;
65
+ };
66
+ };
67
+ isZoomed: {
68
+ true: {
69
+ img: string[];
70
+ };
71
+ };
72
+ showSkeleton: {
73
+ true: {
74
+ base: string[];
75
+ img: string;
76
+ };
77
+ };
78
+ disableAnimation: {
79
+ true: {
80
+ img: string;
81
+ };
82
+ false: {
83
+ img: string;
84
+ };
85
+ };
86
+ }, unknown, {
87
+ base: string;
88
+ zoomedWrapper: string;
89
+ img: string;
90
+ blurredImg: string[];
91
+ }, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
92
+ radius: {
93
+ none: {};
94
+ base: {};
95
+ sm: {};
96
+ md: {};
97
+ lg: {};
98
+ xl: {};
99
+ "2xl": {};
100
+ "3xl": {};
101
+ full: {};
102
+ };
103
+ shadow: {
104
+ none: {
105
+ base: string;
106
+ img: string;
107
+ };
108
+ sm: {
109
+ base: string;
110
+ img: string;
111
+ };
112
+ base: {
113
+ base: string;
114
+ img: string;
115
+ };
116
+ md: {
117
+ base: string;
118
+ img: string;
119
+ };
120
+ lg: {
121
+ base: string;
122
+ img: string;
123
+ };
124
+ xl: {
125
+ base: string;
126
+ img: string;
127
+ };
128
+ "2xl": {
129
+ base: string;
130
+ img: string;
131
+ };
132
+ inner: {
133
+ base: string;
134
+ img: string;
135
+ };
136
+ };
137
+ isZoomed: {
138
+ true: {
139
+ img: string[];
140
+ };
141
+ };
142
+ showSkeleton: {
143
+ true: {
144
+ base: string[];
145
+ img: string;
146
+ };
147
+ };
148
+ disableAnimation: {
149
+ true: {
150
+ img: string;
151
+ };
152
+ false: {
153
+ img: string;
154
+ };
155
+ };
156
+ }, unknown>>;
157
+ type ImageVariantProps = VariantProps<typeof image>;
158
+ type ImageSlots = keyof ReturnType<typeof image>;
159
+
160
+ export { ImageSlots, ImageVariantProps, image };
@@ -0,0 +1,191 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/image.ts
21
+ var image_exports = {};
22
+ __export(image_exports, {
23
+ image: () => image
24
+ });
25
+ module.exports = __toCommonJS(image_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var image = (0, import_tailwind_variants.tv)({
28
+ slots: {
29
+ base: "relative shadow-black/25",
30
+ zoomedWrapper: "relative overflow-hidden rounded-inherit",
31
+ img: "opacity-0 shadow-black/25 data-[loaded=true]:opacity-100",
32
+ blurredImg: [
33
+ "absolute",
34
+ "-z-10",
35
+ "inset-0",
36
+ "w-full",
37
+ "h-full",
38
+ "object-cover",
39
+ "filter",
40
+ "blur-lg",
41
+ "scale-105",
42
+ "opacity-40",
43
+ "translate-y-1"
44
+ ]
45
+ },
46
+ variants: {
47
+ radius: {
48
+ none: {},
49
+ base: {},
50
+ sm: {},
51
+ md: {},
52
+ lg: {},
53
+ xl: {},
54
+ "2xl": {},
55
+ "3xl": {},
56
+ full: {}
57
+ },
58
+ shadow: {
59
+ none: {
60
+ base: "shadow-none",
61
+ img: "shadow-none"
62
+ },
63
+ sm: {
64
+ base: "shadow-sm",
65
+ img: "shadow-sm"
66
+ },
67
+ base: {
68
+ base: "shadow",
69
+ img: "shadow"
70
+ },
71
+ md: {
72
+ base: "shadow-md",
73
+ img: "shadow-md"
74
+ },
75
+ lg: {
76
+ base: "shadow-lg",
77
+ img: "shadow-lg"
78
+ },
79
+ xl: {
80
+ base: "shadow-xl",
81
+ img: "shadow-xl"
82
+ },
83
+ "2xl": {
84
+ base: "shadow-2xl",
85
+ img: "shadow-2xl"
86
+ },
87
+ inner: {
88
+ base: "shadow-inner",
89
+ img: "shadow-inner"
90
+ }
91
+ },
92
+ isZoomed: {
93
+ true: {
94
+ img: ["object-cover", "transform", "hover:scale-125"]
95
+ }
96
+ },
97
+ showSkeleton: {
98
+ true: {
99
+ base: [
100
+ "space-y-5",
101
+ "overflow-hidden",
102
+ "bg-white/5",
103
+ "before:absolute",
104
+ "before:inset-0",
105
+ "before:-translate-x-full",
106
+ "before:animate-[shimmer_2s_infinite]",
107
+ "before:border-t",
108
+ "before:border-content4/70",
109
+ "before:bg-gradient-to-r",
110
+ "before:from-transparent",
111
+ "before:via-content4",
112
+ "dark:before:via-neutral-700/10",
113
+ "before:to-transparent",
114
+ "after:absolute",
115
+ "after:inset-0",
116
+ "after:-z-10",
117
+ "after:bg-content3",
118
+ "dark:after:bg-content2"
119
+ ],
120
+ img: "opacity-0"
121
+ }
122
+ },
123
+ disableAnimation: {
124
+ true: {
125
+ img: "transition-none"
126
+ },
127
+ false: {
128
+ img: "transition-transform-opacity motion-reduce:transition-none !duration-300"
129
+ }
130
+ }
131
+ },
132
+ defaultVariants: {
133
+ radius: "xl",
134
+ shadow: "none",
135
+ isZoomed: false,
136
+ isBlurred: false,
137
+ showSkeleton: false,
138
+ disableAnimation: false
139
+ },
140
+ compoundSlots: [
141
+ {
142
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
143
+ radius: "none",
144
+ class: "rounded-none"
145
+ },
146
+ {
147
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
148
+ radius: "full",
149
+ class: "rounded-full"
150
+ },
151
+ {
152
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
153
+ radius: "base",
154
+ class: "rounded"
155
+ },
156
+ {
157
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
158
+ radius: "sm",
159
+ class: "rounded-sm"
160
+ },
161
+ {
162
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
163
+ radius: "md",
164
+ class: "rounded-md"
165
+ },
166
+ {
167
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
168
+ radius: "lg",
169
+ class: "rounded-lg"
170
+ },
171
+ {
172
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
173
+ radius: "xl",
174
+ class: "rounded-xl"
175
+ },
176
+ {
177
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
178
+ radius: "2xl",
179
+ class: "rounded-2xl"
180
+ },
181
+ {
182
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
183
+ radius: "3xl",
184
+ class: "rounded-3xl"
185
+ }
186
+ ]
187
+ });
188
+ // Annotate the CommonJS export names for ESM import in node:
189
+ 0 && (module.exports = {
190
+ image
191
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ image
3
+ } from "../chunk-U7TTGVVC.mjs";
4
+ export {
5
+ image
6
+ };
@@ -27,5 +27,6 @@ export { dropdown } from './dropdown.js';
27
27
  export { DropdownItemSlots, DropdownItemVariantProps, dropdownItem } from './dropdown-item.js';
28
28
  export { DropdownSectionSlots, DropdownSectionVariantProps, dropdownSection } from './dropdown-section.js';
29
29
  export { dropdownMenu } from './dropdown-menu.js';
30
+ export { ImageSlots, ImageVariantProps, image } from './image.js';
30
31
  import 'tailwind-variants';
31
32
  import 'tailwind-variants/dist/config';
@@ -38,6 +38,7 @@ __export(components_exports, {
38
38
  dropdownItem: () => dropdownItem,
39
39
  dropdownMenu: () => dropdownMenu,
40
40
  dropdownSection: () => dropdownSection,
41
+ image: () => image,
41
42
  input: () => input,
42
43
  link: () => link,
43
44
  pagination: () => pagination,
@@ -703,7 +704,7 @@ var button = (0, import_tailwind_variants6.tv)({
703
704
  isInGroup: {
704
705
  true: "[&:not(:first-child):not(:last-child)]:rounded-none"
705
706
  },
706
- isIconButton: {
707
+ isIconOnly: {
707
708
  true: "p-0 gap-0"
708
709
  },
709
710
  disableAnimation: {
@@ -949,31 +950,31 @@ var button = (0, import_tailwind_variants6.tv)({
949
950
  },
950
951
  {
951
952
  isInGroup: true,
952
- variant: "bordered",
953
+ variant: ["bordered", "ghost"],
953
954
  class: "[&:not(:first-child)]:border-l-0"
954
955
  },
955
956
  {
956
- isIconButton: true,
957
+ isIconOnly: true,
957
958
  size: "xs",
958
959
  class: "w-6 h-6"
959
960
  },
960
961
  {
961
- isIconButton: true,
962
+ isIconOnly: true,
962
963
  size: "sm",
963
964
  class: "w-8 h-8"
964
965
  },
965
966
  {
966
- isIconButton: true,
967
+ isIconOnly: true,
967
968
  size: "md",
968
969
  class: "w-10 h-10"
969
970
  },
970
971
  {
971
- isIconButton: true,
972
+ isIconOnly: true,
972
973
  size: "lg",
973
974
  class: "w-12 h-12"
974
975
  },
975
976
  {
976
- isIconButton: true,
977
+ isIconOnly: true,
977
978
  size: "xl",
978
979
  class: "w-14 h-14"
979
980
  }
@@ -4897,6 +4898,170 @@ var import_tailwind_variants29 = require("tailwind-variants");
4897
4898
  var dropdownMenu = (0, import_tailwind_variants29.tv)({
4898
4899
  base: "w-full flex flex-col p-1"
4899
4900
  });
4901
+
4902
+ // src/components/image.ts
4903
+ var import_tailwind_variants30 = require("tailwind-variants");
4904
+ var image = (0, import_tailwind_variants30.tv)({
4905
+ slots: {
4906
+ base: "relative shadow-black/25",
4907
+ zoomedWrapper: "relative overflow-hidden rounded-inherit",
4908
+ img: "opacity-0 shadow-black/25 data-[loaded=true]:opacity-100",
4909
+ blurredImg: [
4910
+ "absolute",
4911
+ "-z-10",
4912
+ "inset-0",
4913
+ "w-full",
4914
+ "h-full",
4915
+ "object-cover",
4916
+ "filter",
4917
+ "blur-lg",
4918
+ "scale-105",
4919
+ "opacity-40",
4920
+ "translate-y-1"
4921
+ ]
4922
+ },
4923
+ variants: {
4924
+ radius: {
4925
+ none: {},
4926
+ base: {},
4927
+ sm: {},
4928
+ md: {},
4929
+ lg: {},
4930
+ xl: {},
4931
+ "2xl": {},
4932
+ "3xl": {},
4933
+ full: {}
4934
+ },
4935
+ shadow: {
4936
+ none: {
4937
+ base: "shadow-none",
4938
+ img: "shadow-none"
4939
+ },
4940
+ sm: {
4941
+ base: "shadow-sm",
4942
+ img: "shadow-sm"
4943
+ },
4944
+ base: {
4945
+ base: "shadow",
4946
+ img: "shadow"
4947
+ },
4948
+ md: {
4949
+ base: "shadow-md",
4950
+ img: "shadow-md"
4951
+ },
4952
+ lg: {
4953
+ base: "shadow-lg",
4954
+ img: "shadow-lg"
4955
+ },
4956
+ xl: {
4957
+ base: "shadow-xl",
4958
+ img: "shadow-xl"
4959
+ },
4960
+ "2xl": {
4961
+ base: "shadow-2xl",
4962
+ img: "shadow-2xl"
4963
+ },
4964
+ inner: {
4965
+ base: "shadow-inner",
4966
+ img: "shadow-inner"
4967
+ }
4968
+ },
4969
+ isZoomed: {
4970
+ true: {
4971
+ img: ["object-cover", "transform", "hover:scale-125"]
4972
+ }
4973
+ },
4974
+ showSkeleton: {
4975
+ true: {
4976
+ base: [
4977
+ "space-y-5",
4978
+ "overflow-hidden",
4979
+ "bg-white/5",
4980
+ "before:absolute",
4981
+ "before:inset-0",
4982
+ "before:-translate-x-full",
4983
+ "before:animate-[shimmer_2s_infinite]",
4984
+ "before:border-t",
4985
+ "before:border-content4/70",
4986
+ "before:bg-gradient-to-r",
4987
+ "before:from-transparent",
4988
+ "before:via-content4",
4989
+ "dark:before:via-neutral-700/10",
4990
+ "before:to-transparent",
4991
+ "after:absolute",
4992
+ "after:inset-0",
4993
+ "after:-z-10",
4994
+ "after:bg-content3",
4995
+ "dark:after:bg-content2"
4996
+ ],
4997
+ img: "opacity-0"
4998
+ }
4999
+ },
5000
+ disableAnimation: {
5001
+ true: {
5002
+ img: "transition-none"
5003
+ },
5004
+ false: {
5005
+ img: "transition-transform-opacity motion-reduce:transition-none !duration-300"
5006
+ }
5007
+ }
5008
+ },
5009
+ defaultVariants: {
5010
+ radius: "xl",
5011
+ shadow: "none",
5012
+ isZoomed: false,
5013
+ isBlurred: false,
5014
+ showSkeleton: false,
5015
+ disableAnimation: false
5016
+ },
5017
+ compoundSlots: [
5018
+ {
5019
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5020
+ radius: "none",
5021
+ class: "rounded-none"
5022
+ },
5023
+ {
5024
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5025
+ radius: "full",
5026
+ class: "rounded-full"
5027
+ },
5028
+ {
5029
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5030
+ radius: "base",
5031
+ class: "rounded"
5032
+ },
5033
+ {
5034
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5035
+ radius: "sm",
5036
+ class: "rounded-sm"
5037
+ },
5038
+ {
5039
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5040
+ radius: "md",
5041
+ class: "rounded-md"
5042
+ },
5043
+ {
5044
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5045
+ radius: "lg",
5046
+ class: "rounded-lg"
5047
+ },
5048
+ {
5049
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5050
+ radius: "xl",
5051
+ class: "rounded-xl"
5052
+ },
5053
+ {
5054
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5055
+ radius: "2xl",
5056
+ class: "rounded-2xl"
5057
+ },
5058
+ {
5059
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5060
+ radius: "3xl",
5061
+ class: "rounded-3xl"
5062
+ }
5063
+ ]
5064
+ });
4900
5065
  // Annotate the CommonJS export names for ESM import in node:
4901
5066
  0 && (module.exports = {
4902
5067
  accordion,
@@ -4917,6 +5082,7 @@ var dropdownMenu = (0, import_tailwind_variants29.tv)({
4917
5082
  dropdownItem,
4918
5083
  dropdownMenu,
4919
5084
  dropdownSection,
5085
+ image,
4920
5086
  input,
4921
5087
  link,
4922
5088
  pagination,
@@ -1,4 +1,7 @@
1
- import "../chunk-EERASTP4.mjs";
1
+ import "../chunk-PRWEADY4.mjs";
2
+ import {
3
+ snippet
4
+ } from "../chunk-QMP2FDFR.mjs";
2
5
  import {
3
6
  spinner
4
7
  } from "../chunk-CO6ANWRA.mjs";
@@ -29,9 +32,6 @@ import {
29
32
  import {
30
33
  radio
31
34
  } from "../chunk-Y37XC5QN.mjs";
32
- import {
33
- snippet
34
- } from "../chunk-QMP2FDFR.mjs";
35
35
  import {
36
36
  circularProgress
37
37
  } from "../chunk-FK5GDC67.mjs";
@@ -53,6 +53,9 @@ import {
53
53
  import {
54
54
  dropdown
55
55
  } from "../chunk-UNMHV7HH.mjs";
56
+ import {
57
+ image
58
+ } from "../chunk-U7TTGVVC.mjs";
56
59
  import {
57
60
  avatar
58
61
  } from "../chunk-D4TJV7NY.mjs";
@@ -64,7 +67,7 @@ import {
64
67
  } from "../chunk-VKFQ7EZN.mjs";
65
68
  import {
66
69
  button
67
- } from "../chunk-BD2KW4ZD.mjs";
70
+ } from "../chunk-IRJ5MMDL.mjs";
68
71
  import {
69
72
  card
70
73
  } from "../chunk-HESJI33K.mjs";
@@ -109,6 +112,7 @@ export {
109
112
  dropdownItem,
110
113
  dropdownMenu,
111
114
  dropdownSection,
115
+ image,
112
116
  input,
113
117
  link,
114
118
  pagination,
package/dist/index.d.ts CHANGED
@@ -27,6 +27,7 @@ export { dropdown } from './components/dropdown.js';
27
27
  export { DropdownItemSlots, DropdownItemVariantProps, dropdownItem } from './components/dropdown-item.js';
28
28
  export { DropdownSectionSlots, DropdownSectionVariantProps, dropdownSection } from './components/dropdown-section.js';
29
29
  export { dropdownMenu } from './components/dropdown-menu.js';
30
+ export { ImageSlots, ImageVariantProps, image } from './components/image.js';
30
31
  export { absoluteFullClasses, baseStyles, focusVisibleClasses, ringClasses, translateCenterClasses } from './utils/styles.js';
31
32
  export { SlotsToClasses } from './utils/types.js';
32
33
  export { colorVariants } from './utils/variants.js';
package/dist/index.js CHANGED
@@ -51,6 +51,7 @@ __export(src_exports, {
51
51
  dropdownMenu: () => dropdownMenu,
52
52
  dropdownSection: () => dropdownSection,
53
53
  focusVisibleClasses: () => focusVisibleClasses,
54
+ image: () => image,
54
55
  input: () => input,
55
56
  link: () => link,
56
57
  nextui: () => nextui,
@@ -65,7 +66,7 @@ __export(src_exports, {
65
66
  spinner: () => spinner,
66
67
  toggle: () => toggle,
67
68
  translateCenterClasses: () => translateCenterClasses,
68
- tv: () => import_tailwind_variants31.tv,
69
+ tv: () => import_tailwind_variants32.tv,
69
70
  user: () => user
70
71
  });
71
72
  module.exports = __toCommonJS(src_exports);
@@ -726,7 +727,7 @@ var button = (0, import_tailwind_variants6.tv)({
726
727
  isInGroup: {
727
728
  true: "[&:not(:first-child):not(:last-child)]:rounded-none"
728
729
  },
729
- isIconButton: {
730
+ isIconOnly: {
730
731
  true: "p-0 gap-0"
731
732
  },
732
733
  disableAnimation: {
@@ -972,31 +973,31 @@ var button = (0, import_tailwind_variants6.tv)({
972
973
  },
973
974
  {
974
975
  isInGroup: true,
975
- variant: "bordered",
976
+ variant: ["bordered", "ghost"],
976
977
  class: "[&:not(:first-child)]:border-l-0"
977
978
  },
978
979
  {
979
- isIconButton: true,
980
+ isIconOnly: true,
980
981
  size: "xs",
981
982
  class: "w-6 h-6"
982
983
  },
983
984
  {
984
- isIconButton: true,
985
+ isIconOnly: true,
985
986
  size: "sm",
986
987
  class: "w-8 h-8"
987
988
  },
988
989
  {
989
- isIconButton: true,
990
+ isIconOnly: true,
990
991
  size: "md",
991
992
  class: "w-10 h-10"
992
993
  },
993
994
  {
994
- isIconButton: true,
995
+ isIconOnly: true,
995
996
  size: "lg",
996
997
  class: "w-12 h-12"
997
998
  },
998
999
  {
999
- isIconButton: true,
1000
+ isIconOnly: true,
1000
1001
  size: "xl",
1001
1002
  class: "w-14 h-14"
1002
1003
  }
@@ -4921,6 +4922,170 @@ var dropdownMenu = (0, import_tailwind_variants29.tv)({
4921
4922
  base: "w-full flex flex-col p-1"
4922
4923
  });
4923
4924
 
4925
+ // src/components/image.ts
4926
+ var import_tailwind_variants30 = require("tailwind-variants");
4927
+ var image = (0, import_tailwind_variants30.tv)({
4928
+ slots: {
4929
+ base: "relative shadow-black/25",
4930
+ zoomedWrapper: "relative overflow-hidden rounded-inherit",
4931
+ img: "opacity-0 shadow-black/25 data-[loaded=true]:opacity-100",
4932
+ blurredImg: [
4933
+ "absolute",
4934
+ "-z-10",
4935
+ "inset-0",
4936
+ "w-full",
4937
+ "h-full",
4938
+ "object-cover",
4939
+ "filter",
4940
+ "blur-lg",
4941
+ "scale-105",
4942
+ "opacity-40",
4943
+ "translate-y-1"
4944
+ ]
4945
+ },
4946
+ variants: {
4947
+ radius: {
4948
+ none: {},
4949
+ base: {},
4950
+ sm: {},
4951
+ md: {},
4952
+ lg: {},
4953
+ xl: {},
4954
+ "2xl": {},
4955
+ "3xl": {},
4956
+ full: {}
4957
+ },
4958
+ shadow: {
4959
+ none: {
4960
+ base: "shadow-none",
4961
+ img: "shadow-none"
4962
+ },
4963
+ sm: {
4964
+ base: "shadow-sm",
4965
+ img: "shadow-sm"
4966
+ },
4967
+ base: {
4968
+ base: "shadow",
4969
+ img: "shadow"
4970
+ },
4971
+ md: {
4972
+ base: "shadow-md",
4973
+ img: "shadow-md"
4974
+ },
4975
+ lg: {
4976
+ base: "shadow-lg",
4977
+ img: "shadow-lg"
4978
+ },
4979
+ xl: {
4980
+ base: "shadow-xl",
4981
+ img: "shadow-xl"
4982
+ },
4983
+ "2xl": {
4984
+ base: "shadow-2xl",
4985
+ img: "shadow-2xl"
4986
+ },
4987
+ inner: {
4988
+ base: "shadow-inner",
4989
+ img: "shadow-inner"
4990
+ }
4991
+ },
4992
+ isZoomed: {
4993
+ true: {
4994
+ img: ["object-cover", "transform", "hover:scale-125"]
4995
+ }
4996
+ },
4997
+ showSkeleton: {
4998
+ true: {
4999
+ base: [
5000
+ "space-y-5",
5001
+ "overflow-hidden",
5002
+ "bg-white/5",
5003
+ "before:absolute",
5004
+ "before:inset-0",
5005
+ "before:-translate-x-full",
5006
+ "before:animate-[shimmer_2s_infinite]",
5007
+ "before:border-t",
5008
+ "before:border-content4/70",
5009
+ "before:bg-gradient-to-r",
5010
+ "before:from-transparent",
5011
+ "before:via-content4",
5012
+ "dark:before:via-neutral-700/10",
5013
+ "before:to-transparent",
5014
+ "after:absolute",
5015
+ "after:inset-0",
5016
+ "after:-z-10",
5017
+ "after:bg-content3",
5018
+ "dark:after:bg-content2"
5019
+ ],
5020
+ img: "opacity-0"
5021
+ }
5022
+ },
5023
+ disableAnimation: {
5024
+ true: {
5025
+ img: "transition-none"
5026
+ },
5027
+ false: {
5028
+ img: "transition-transform-opacity motion-reduce:transition-none !duration-300"
5029
+ }
5030
+ }
5031
+ },
5032
+ defaultVariants: {
5033
+ radius: "xl",
5034
+ shadow: "none",
5035
+ isZoomed: false,
5036
+ isBlurred: false,
5037
+ showSkeleton: false,
5038
+ disableAnimation: false
5039
+ },
5040
+ compoundSlots: [
5041
+ {
5042
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5043
+ radius: "none",
5044
+ class: "rounded-none"
5045
+ },
5046
+ {
5047
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5048
+ radius: "full",
5049
+ class: "rounded-full"
5050
+ },
5051
+ {
5052
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5053
+ radius: "base",
5054
+ class: "rounded"
5055
+ },
5056
+ {
5057
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5058
+ radius: "sm",
5059
+ class: "rounded-sm"
5060
+ },
5061
+ {
5062
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5063
+ radius: "md",
5064
+ class: "rounded-md"
5065
+ },
5066
+ {
5067
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5068
+ radius: "lg",
5069
+ class: "rounded-lg"
5070
+ },
5071
+ {
5072
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5073
+ radius: "xl",
5074
+ class: "rounded-xl"
5075
+ },
5076
+ {
5077
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5078
+ radius: "2xl",
5079
+ class: "rounded-2xl"
5080
+ },
5081
+ {
5082
+ slots: ["base", "img", "blurredImg", "zoomedWrapper"],
5083
+ radius: "3xl",
5084
+ class: "rounded-3xl"
5085
+ }
5086
+ ]
5087
+ });
5088
+
4924
5089
  // src/colors/blue.ts
4925
5090
  var blue = {
4926
5091
  50: "#e6f1fe",
@@ -5218,6 +5383,11 @@ var animations = {
5218
5383
  "indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
5219
5384
  },
5220
5385
  keyframes: {
5386
+ shimmer: {
5387
+ "100%": {
5388
+ transform: "translateX(100%)"
5389
+ }
5390
+ },
5221
5391
  "spinner-spin": {
5222
5392
  "0%": {
5223
5393
  transform: "rotate(0deg)"
@@ -5472,9 +5642,9 @@ var nextui = (config = {}) => {
5472
5642
  };
5473
5643
 
5474
5644
  // src/index.ts
5475
- var import_tailwind_variants30 = require("tailwind-variants");
5476
5645
  var import_tailwind_variants31 = require("tailwind-variants");
5477
- var cn = (...classes) => (0, import_tailwind_variants30.cn)(classes)();
5646
+ var import_tailwind_variants32 = require("tailwind-variants");
5647
+ var cn = (...classes) => (0, import_tailwind_variants31.cn)(classes)();
5478
5648
  // Annotate the CommonJS export names for ESM import in node:
5479
5649
  0 && (module.exports = {
5480
5650
  absoluteFullClasses,
@@ -5502,6 +5672,7 @@ var cn = (...classes) => (0, import_tailwind_variants30.cn)(classes)();
5502
5672
  dropdownMenu,
5503
5673
  dropdownSection,
5504
5674
  focusVisibleClasses,
5675
+ image,
5505
5676
  input,
5506
5677
  link,
5507
5678
  nextui,
package/dist/index.mjs CHANGED
@@ -1,4 +1,7 @@
1
- import "./chunk-EERASTP4.mjs";
1
+ import "./chunk-PRWEADY4.mjs";
2
+ import {
3
+ snippet
4
+ } from "./chunk-QMP2FDFR.mjs";
2
5
  import {
3
6
  spinner
4
7
  } from "./chunk-CO6ANWRA.mjs";
@@ -29,9 +32,6 @@ import {
29
32
  import {
30
33
  radio
31
34
  } from "./chunk-Y37XC5QN.mjs";
32
- import {
33
- snippet
34
- } from "./chunk-QMP2FDFR.mjs";
35
35
  import {
36
36
  circularProgress
37
37
  } from "./chunk-FK5GDC67.mjs";
@@ -53,6 +53,9 @@ import {
53
53
  import {
54
54
  dropdown
55
55
  } from "./chunk-UNMHV7HH.mjs";
56
+ import {
57
+ image
58
+ } from "./chunk-U7TTGVVC.mjs";
56
59
  import {
57
60
  avatar
58
61
  } from "./chunk-D4TJV7NY.mjs";
@@ -64,7 +67,7 @@ import {
64
67
  } from "./chunk-VKFQ7EZN.mjs";
65
68
  import {
66
69
  button
67
- } from "./chunk-BD2KW4ZD.mjs";
70
+ } from "./chunk-IRJ5MMDL.mjs";
68
71
  import {
69
72
  card
70
73
  } from "./chunk-HESJI33K.mjs";
@@ -93,7 +96,7 @@ import {
93
96
  } from "./chunk-MLH3XSY7.mjs";
94
97
  import {
95
98
  nextui
96
- } from "./chunk-56MY6KYG.mjs";
99
+ } from "./chunk-BFEDFLJV.mjs";
97
100
  import {
98
101
  absoluteFullClasses,
99
102
  baseStyles,
@@ -111,7 +114,7 @@ import {
111
114
  } from "./chunk-Y52EXP4A.mjs";
112
115
  import "./chunk-37PIXVP4.mjs";
113
116
  import "./chunk-M63AFAHO.mjs";
114
- import "./chunk-7QLHM6OE.mjs";
117
+ import "./chunk-DMASP6FA.mjs";
115
118
  import {
116
119
  commonColors
117
120
  } from "./chunk-CRCBVLUP.mjs";
@@ -153,6 +156,7 @@ export {
153
156
  dropdownMenu,
154
157
  dropdownSection,
155
158
  focusVisibleClasses,
159
+ image,
156
160
  input,
157
161
  link,
158
162
  nextui,
package/dist/plugin.js CHANGED
@@ -325,6 +325,11 @@ var animations = {
325
325
  "indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
326
326
  },
327
327
  keyframes: {
328
+ shimmer: {
329
+ "100%": {
330
+ transform: "translateX(100%)"
331
+ }
332
+ },
328
333
  "spinner-spin": {
329
334
  "0%": {
330
335
  transform: "rotate(0deg)"
package/dist/plugin.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  nextui
3
- } from "./chunk-56MY6KYG.mjs";
3
+ } from "./chunk-BFEDFLJV.mjs";
4
4
  import "./chunk-IJCHUO4J.mjs";
5
5
  import "./chunk-XLATS5QU.mjs";
6
6
  import "./chunk-WQEDQHKX.mjs";
@@ -8,7 +8,7 @@ import "./chunk-7MQD7UA2.mjs";
8
8
  import "./chunk-Y52EXP4A.mjs";
9
9
  import "./chunk-37PIXVP4.mjs";
10
10
  import "./chunk-M63AFAHO.mjs";
11
- import "./chunk-7QLHM6OE.mjs";
11
+ import "./chunk-DMASP6FA.mjs";
12
12
  import "./chunk-CRCBVLUP.mjs";
13
13
  import "./chunk-DCEG5LGX.mjs";
14
14
  import "./chunk-L2OL7R23.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextui-org/theme",
3
- "version": "0.0.0-dev-v2-20230409144630",
3
+ "version": "0.0.0-dev-v2-20230412004701",
4
4
  "description": "The default theme for NextUI components",
5
5
  "keywords": [
6
6
  "theme",
File without changes