@fuf-stack/pixels 0.4.0 → 0.5.0

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.
Files changed (51) hide show
  1. package/dist/Card/index.cjs +2 -2
  2. package/dist/Card/index.d.cts +2 -2
  3. package/dist/Card/index.d.ts +2 -2
  4. package/dist/Card/index.js +1 -1
  5. package/dist/{Card-Cl_I4L8G.d.cts → Card-C3mjLa6d.d.cts} +1 -1
  6. package/dist/{Card-Cl_I4L8G.d.ts → Card-C3mjLa6d.d.ts} +1 -1
  7. package/dist/Menu/index.cjs +2 -2
  8. package/dist/Menu/index.js +1 -1
  9. package/dist/Modal/index.cjs +2 -2
  10. package/dist/Modal/index.d.cts +4 -2
  11. package/dist/Modal/index.d.ts +4 -2
  12. package/dist/Modal/index.js +3 -3
  13. package/dist/Modal-Ck13vTaf.d.cts +183 -0
  14. package/dist/Modal-Ck13vTaf.d.ts +183 -0
  15. package/dist/Popover/index.cjs +2 -2
  16. package/dist/Popover/index.js +1 -1
  17. package/dist/chunk-2BPC6HYE.js +74 -0
  18. package/dist/chunk-2BPC6HYE.js.map +1 -0
  19. package/dist/{chunk-V2C3KFMP.js → chunk-6G5VTF6K.js} +1 -4
  20. package/dist/chunk-6G5VTF6K.js.map +1 -0
  21. package/dist/{chunk-YUOFNPJO.cjs → chunk-B35F4645.cjs} +1 -4
  22. package/dist/chunk-B35F4645.cjs.map +1 -0
  23. package/dist/{chunk-L5OZDDU7.cjs → chunk-HHTTNYDC.cjs} +1 -4
  24. package/dist/chunk-HHTTNYDC.cjs.map +1 -0
  25. package/dist/chunk-JUE6KCUN.js +82 -0
  26. package/dist/chunk-JUE6KCUN.js.map +1 -0
  27. package/dist/{chunk-VZW4TVTX.js → chunk-VOXYQARK.js} +1 -4
  28. package/dist/chunk-VOXYQARK.js.map +1 -0
  29. package/dist/chunk-WL6ENU44.cjs +74 -0
  30. package/dist/chunk-WL6ENU44.cjs.map +1 -0
  31. package/dist/chunk-XDXO225D.cjs +82 -0
  32. package/dist/chunk-XDXO225D.cjs.map +1 -0
  33. package/dist/index.cjs +5 -5
  34. package/dist/index.d.cts +2 -2
  35. package/dist/index.d.ts +2 -2
  36. package/dist/index.js +6 -6
  37. package/package.json +3 -4
  38. package/dist/Modal-DWZB1uTb.d.cts +0 -29
  39. package/dist/Modal-DWZB1uTb.d.ts +0 -29
  40. package/dist/chunk-BPJAPVB5.cjs +0 -62
  41. package/dist/chunk-BPJAPVB5.cjs.map +0 -1
  42. package/dist/chunk-CTP2PZYD.js +0 -62
  43. package/dist/chunk-CTP2PZYD.js.map +0 -1
  44. package/dist/chunk-L5OZDDU7.cjs.map +0 -1
  45. package/dist/chunk-V2C3KFMP.js.map +0 -1
  46. package/dist/chunk-VQ5Q33MY.js +0 -111
  47. package/dist/chunk-VQ5Q33MY.js.map +0 -1
  48. package/dist/chunk-VZW4TVTX.js.map +0 -1
  49. package/dist/chunk-WTKZJFQV.cjs +0 -111
  50. package/dist/chunk-WTKZJFQV.cjs.map +0 -1
  51. package/dist/chunk-YUOFNPJO.cjs.map +0 -1
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkWTKZJFQVcjs = require('../chunk-WTKZJFQV.cjs');
4
+ var _chunkWL6ENU44cjs = require('../chunk-WL6ENU44.cjs');
5
5
 
6
6
 
7
7
 
8
- exports.Card = _chunkWTKZJFQVcjs.Card_default; exports.default = _chunkWTKZJFQVcjs.Card_default2;
8
+ exports.Card = _chunkWL6ENU44cjs.Card_default; exports.default = _chunkWL6ENU44cjs.Card_default2;
9
9
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- import { C as Card } from '../Card-Cl_I4L8G.cjs';
2
- export { a as CardProps } from '../Card-Cl_I4L8G.cjs';
1
+ import { C as Card } from '../Card-C3mjLa6d.cjs';
2
+ export { a as CardProps } from '../Card-C3mjLa6d.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants/dist/config.js';
5
5
  import 'tailwind-variants';
@@ -1,5 +1,5 @@
1
- import { C as Card } from '../Card-Cl_I4L8G.js';
2
- export { a as CardProps } from '../Card-Cl_I4L8G.js';
1
+ import { C as Card } from '../Card-C3mjLa6d.js';
2
+ export { a as CardProps } from '../Card-C3mjLa6d.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants/dist/config.js';
5
5
  import 'tailwind-variants';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Card_default,
3
3
  Card_default2
4
- } from "../chunk-VQ5Q33MY.js";
4
+ } from "../chunk-2BPC6HYE.js";
5
5
  export {
6
6
  Card_default as Card,
7
7
  Card_default2 as default
@@ -76,7 +76,7 @@ declare const cardVariants: tailwind_variants.TVReturnType<{
76
76
  type CardVariantProps = VariantProps<typeof cardVariants>;
77
77
  type CardVariantSlots = Partial<Record<keyof ReturnType<typeof cardVariants>, string>>;
78
78
  interface CardProps extends CardVariantProps {
79
- /** child components */
79
+ /** card body content */
80
80
  children?: ReactNode;
81
81
  /** CSS class name */
82
82
  className?: string | CardVariantSlots;
@@ -76,7 +76,7 @@ declare const cardVariants: tailwind_variants.TVReturnType<{
76
76
  type CardVariantProps = VariantProps<typeof cardVariants>;
77
77
  type CardVariantSlots = Partial<Record<keyof ReturnType<typeof cardVariants>, string>>;
78
78
  interface CardProps extends CardVariantProps {
79
- /** child components */
79
+ /** card body content */
80
80
  children?: ReactNode;
81
81
  /** CSS class name */
82
82
  className?: string | CardVariantSlots;
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkL5OZDDU7cjs = require('../chunk-L5OZDDU7.cjs');
4
+ var _chunkHHTTNYDCcjs = require('../chunk-HHTTNYDC.cjs');
5
5
 
6
6
 
7
7
 
8
- exports.Menu = _chunkL5OZDDU7cjs.Menu_default; exports.default = _chunkL5OZDDU7cjs.Menu_default2;
8
+ exports.Menu = _chunkHHTTNYDCcjs.Menu_default; exports.default = _chunkHHTTNYDCcjs.Menu_default2;
9
9
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Menu_default,
3
3
  Menu_default2
4
- } from "../chunk-VZW4TVTX.js";
4
+ } from "../chunk-VOXYQARK.js";
5
5
  export {
6
6
  Menu_default as Menu,
7
7
  Menu_default2 as default
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkBPJAPVB5cjs = require('../chunk-BPJAPVB5.cjs');
5
+ var _chunkXDXO225Dcjs = require('../chunk-XDXO225D.cjs');
6
6
 
7
7
 
8
8
 
9
9
 
10
- exports.Modal = _chunkBPJAPVB5cjs.Modal_default; exports.default = _chunkBPJAPVB5cjs.Modal_default2; exports.modalSizeOptions = _chunkBPJAPVB5cjs.modalSizeOptions;
10
+ exports.Modal = _chunkXDXO225Dcjs.Modal_default; exports.default = _chunkXDXO225Dcjs.Modal_default2; exports.modalVariants = _chunkXDXO225Dcjs.modalVariants;
11
11
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,8 @@
1
- import { M as Modal } from '../Modal-DWZB1uTb.cjs';
2
- export { a as ModalProps, m as modalSizeOptions } from '../Modal-DWZB1uTb.cjs';
1
+ import { M as Modal } from '../Modal-Ck13vTaf.cjs';
2
+ export { a as ModalProps, m as modalVariants } from '../Modal-Ck13vTaf.cjs';
3
3
  import 'react/jsx-runtime';
4
+ import 'tailwind-variants';
5
+ import 'tailwind-variants/dist/config.js';
4
6
  import 'react';
5
7
 
6
8
 
@@ -1,6 +1,8 @@
1
- import { M as Modal } from '../Modal-DWZB1uTb.js';
2
- export { a as ModalProps, m as modalSizeOptions } from '../Modal-DWZB1uTb.js';
1
+ import { M as Modal } from '../Modal-Ck13vTaf.js';
2
+ export { a as ModalProps, m as modalVariants } from '../Modal-Ck13vTaf.js';
3
3
  import 'react/jsx-runtime';
4
+ import 'tailwind-variants';
5
+ import 'tailwind-variants/dist/config.js';
4
6
  import 'react';
5
7
 
6
8
 
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  Modal_default,
3
3
  Modal_default2,
4
- modalSizeOptions
5
- } from "../chunk-CTP2PZYD.js";
4
+ modalVariants
5
+ } from "../chunk-JUE6KCUN.js";
6
6
  export {
7
7
  Modal_default as Modal,
8
8
  Modal_default2 as default,
9
- modalSizeOptions
9
+ modalVariants
10
10
  };
11
11
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,183 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as tailwind_variants from 'tailwind-variants';
3
+ import { VariantProps } from 'tailwind-variants';
4
+ import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
5
+ import { ReactNode } from 'react';
6
+
7
+ declare const modalVariants: tailwind_variants.TVReturnType<{
8
+ size: {
9
+ sm: {
10
+ base: string;
11
+ };
12
+ md: {
13
+ base: string;
14
+ };
15
+ lg: {
16
+ base: string;
17
+ };
18
+ xl: {
19
+ base: string;
20
+ };
21
+ full: {
22
+ base: string;
23
+ };
24
+ };
25
+ }, {
26
+ backdrop: string;
27
+ base: string;
28
+ body: string;
29
+ closeButton: string;
30
+ footer: string;
31
+ header: string;
32
+ wrapper: string;
33
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<{
34
+ size: {
35
+ sm: {
36
+ base: string;
37
+ };
38
+ md: {
39
+ base: string;
40
+ };
41
+ lg: {
42
+ base: string;
43
+ };
44
+ xl: {
45
+ base: string;
46
+ };
47
+ full: {
48
+ base: string;
49
+ };
50
+ };
51
+ }, {
52
+ size: {
53
+ sm: {
54
+ base: string;
55
+ };
56
+ md: {
57
+ base: string;
58
+ };
59
+ lg: {
60
+ base: string;
61
+ };
62
+ xl: {
63
+ base: string;
64
+ };
65
+ full: {
66
+ base: string;
67
+ };
68
+ };
69
+ }>, {
70
+ size: {
71
+ sm: {
72
+ base: string;
73
+ };
74
+ md: {
75
+ base: string;
76
+ };
77
+ lg: {
78
+ base: string;
79
+ };
80
+ xl: {
81
+ base: string;
82
+ };
83
+ full: {
84
+ base: string;
85
+ };
86
+ };
87
+ }, {
88
+ backdrop: string;
89
+ base: string;
90
+ body: string;
91
+ closeButton: string;
92
+ footer: string;
93
+ header: string;
94
+ wrapper: string;
95
+ }, tailwind_variants.TVReturnType<{
96
+ size: {
97
+ sm: {
98
+ base: string;
99
+ };
100
+ md: {
101
+ base: string;
102
+ };
103
+ lg: {
104
+ base: string;
105
+ };
106
+ xl: {
107
+ base: string;
108
+ };
109
+ full: {
110
+ base: string;
111
+ };
112
+ };
113
+ }, {
114
+ backdrop: string;
115
+ base: string;
116
+ body: string;
117
+ closeButton: string;
118
+ footer: string;
119
+ header: string;
120
+ wrapper: string;
121
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<{
122
+ size: {
123
+ sm: {
124
+ base: string;
125
+ };
126
+ md: {
127
+ base: string;
128
+ };
129
+ lg: {
130
+ base: string;
131
+ };
132
+ xl: {
133
+ base: string;
134
+ };
135
+ full: {
136
+ base: string;
137
+ };
138
+ };
139
+ }, {
140
+ size: {
141
+ sm: {
142
+ base: string;
143
+ };
144
+ md: {
145
+ base: string;
146
+ };
147
+ lg: {
148
+ base: string;
149
+ };
150
+ xl: {
151
+ base: string;
152
+ };
153
+ full: {
154
+ base: string;
155
+ };
156
+ };
157
+ }>, unknown, unknown, undefined>>;
158
+ type ModalVariantProps = VariantProps<typeof modalVariants>;
159
+ type ModalVariantSlots = Partial<Record<keyof ReturnType<typeof modalVariants>, string>>;
160
+ interface ModalProps extends ModalVariantProps {
161
+ /** modal body content */
162
+ children?: ReactNode;
163
+ /** CSS class name */
164
+ className?: string | ModalVariantSlots;
165
+ /** modal footer */
166
+ footer?: ReactNode;
167
+ /** modal header */
168
+ header?: ReactNode;
169
+ /** open state (controlled) */
170
+ isOpen: boolean;
171
+ /** close event handler */
172
+ onClose: () => void;
173
+ /** modal size */
174
+ size?: ModalVariantProps['size'];
175
+ /** HTML data-testid attribute used in e2e tests */
176
+ testId?: string;
177
+ }
178
+ /**
179
+ * Modal component based on [NextUI Modal](https://nextui.org/docs/components/modal)
180
+ */
181
+ declare const Modal: ({ children, className, footer, header, isOpen, onClose, size, testId, }: ModalProps) => react_jsx_runtime.JSX.Element;
182
+
183
+ export { Modal as M, type ModalProps as a, modalVariants as m };
@@ -0,0 +1,183 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as tailwind_variants from 'tailwind-variants';
3
+ import { VariantProps } from 'tailwind-variants';
4
+ import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
5
+ import { ReactNode } from 'react';
6
+
7
+ declare const modalVariants: tailwind_variants.TVReturnType<{
8
+ size: {
9
+ sm: {
10
+ base: string;
11
+ };
12
+ md: {
13
+ base: string;
14
+ };
15
+ lg: {
16
+ base: string;
17
+ };
18
+ xl: {
19
+ base: string;
20
+ };
21
+ full: {
22
+ base: string;
23
+ };
24
+ };
25
+ }, {
26
+ backdrop: string;
27
+ base: string;
28
+ body: string;
29
+ closeButton: string;
30
+ footer: string;
31
+ header: string;
32
+ wrapper: string;
33
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<{
34
+ size: {
35
+ sm: {
36
+ base: string;
37
+ };
38
+ md: {
39
+ base: string;
40
+ };
41
+ lg: {
42
+ base: string;
43
+ };
44
+ xl: {
45
+ base: string;
46
+ };
47
+ full: {
48
+ base: string;
49
+ };
50
+ };
51
+ }, {
52
+ size: {
53
+ sm: {
54
+ base: string;
55
+ };
56
+ md: {
57
+ base: string;
58
+ };
59
+ lg: {
60
+ base: string;
61
+ };
62
+ xl: {
63
+ base: string;
64
+ };
65
+ full: {
66
+ base: string;
67
+ };
68
+ };
69
+ }>, {
70
+ size: {
71
+ sm: {
72
+ base: string;
73
+ };
74
+ md: {
75
+ base: string;
76
+ };
77
+ lg: {
78
+ base: string;
79
+ };
80
+ xl: {
81
+ base: string;
82
+ };
83
+ full: {
84
+ base: string;
85
+ };
86
+ };
87
+ }, {
88
+ backdrop: string;
89
+ base: string;
90
+ body: string;
91
+ closeButton: string;
92
+ footer: string;
93
+ header: string;
94
+ wrapper: string;
95
+ }, tailwind_variants.TVReturnType<{
96
+ size: {
97
+ sm: {
98
+ base: string;
99
+ };
100
+ md: {
101
+ base: string;
102
+ };
103
+ lg: {
104
+ base: string;
105
+ };
106
+ xl: {
107
+ base: string;
108
+ };
109
+ full: {
110
+ base: string;
111
+ };
112
+ };
113
+ }, {
114
+ backdrop: string;
115
+ base: string;
116
+ body: string;
117
+ closeButton: string;
118
+ footer: string;
119
+ header: string;
120
+ wrapper: string;
121
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<{
122
+ size: {
123
+ sm: {
124
+ base: string;
125
+ };
126
+ md: {
127
+ base: string;
128
+ };
129
+ lg: {
130
+ base: string;
131
+ };
132
+ xl: {
133
+ base: string;
134
+ };
135
+ full: {
136
+ base: string;
137
+ };
138
+ };
139
+ }, {
140
+ size: {
141
+ sm: {
142
+ base: string;
143
+ };
144
+ md: {
145
+ base: string;
146
+ };
147
+ lg: {
148
+ base: string;
149
+ };
150
+ xl: {
151
+ base: string;
152
+ };
153
+ full: {
154
+ base: string;
155
+ };
156
+ };
157
+ }>, unknown, unknown, undefined>>;
158
+ type ModalVariantProps = VariantProps<typeof modalVariants>;
159
+ type ModalVariantSlots = Partial<Record<keyof ReturnType<typeof modalVariants>, string>>;
160
+ interface ModalProps extends ModalVariantProps {
161
+ /** modal body content */
162
+ children?: ReactNode;
163
+ /** CSS class name */
164
+ className?: string | ModalVariantSlots;
165
+ /** modal footer */
166
+ footer?: ReactNode;
167
+ /** modal header */
168
+ header?: ReactNode;
169
+ /** open state (controlled) */
170
+ isOpen: boolean;
171
+ /** close event handler */
172
+ onClose: () => void;
173
+ /** modal size */
174
+ size?: ModalVariantProps['size'];
175
+ /** HTML data-testid attribute used in e2e tests */
176
+ testId?: string;
177
+ }
178
+ /**
179
+ * Modal component based on [NextUI Modal](https://nextui.org/docs/components/modal)
180
+ */
181
+ declare const Modal: ({ children, className, footer, header, isOpen, onClose, size, testId, }: ModalProps) => react_jsx_runtime.JSX.Element;
182
+
183
+ export { Modal as M, type ModalProps as a, modalVariants as m };
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkYUOFNPJOcjs = require('../chunk-YUOFNPJO.cjs');
4
+ var _chunkB35F4645cjs = require('../chunk-B35F4645.cjs');
5
5
 
6
6
 
7
7
 
8
- exports.Popover = _chunkYUOFNPJOcjs.Popover_default; exports.default = _chunkYUOFNPJOcjs.Popover_default2;
8
+ exports.Popover = _chunkB35F4645cjs.Popover_default; exports.default = _chunkB35F4645cjs.Popover_default2;
9
9
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Popover_default,
3
3
  Popover_default2
4
- } from "../chunk-V2C3KFMP.js";
4
+ } from "../chunk-6G5VTF6K.js";
5
5
  export {
6
6
  Popover_default as Popover,
7
7
  Popover_default2 as default
@@ -0,0 +1,74 @@
1
+ // src/Card/Card.tsx
2
+ import {
3
+ Card as NextCard,
4
+ CardBody as NextCardBody,
5
+ CardFooter as NextCardFooter,
6
+ CardHeader as NextCardHeader
7
+ } from "@nextui-org/card";
8
+ import { Divider as NextDivider } from "@nextui-org/divider";
9
+ import { tv } from "tailwind-variants";
10
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
+ var cardVariants = tv({
12
+ slots: {
13
+ base: "border border-divider",
14
+ body: "",
15
+ divider: "my-0 border-divider",
16
+ footer: "",
17
+ header: "text-base font-semibold"
18
+ }
19
+ });
20
+ var Card = ({
21
+ children = null,
22
+ className = void 0,
23
+ testId = void 0,
24
+ header = void 0,
25
+ footer = void 0
26
+ }) => {
27
+ const variants = cardVariants();
28
+ const classNameObj = typeof className === "object" && className || {};
29
+ const classNames = {
30
+ base: variants.base({
31
+ className: classNameObj.base || className
32
+ }),
33
+ header: variants.header({ className: classNameObj.header }),
34
+ body: variants.body({ className: classNameObj.body }),
35
+ footer: variants.footer({ className: classNameObj.footer })
36
+ };
37
+ const divider = /* @__PURE__ */ jsx(
38
+ NextDivider,
39
+ {
40
+ className: variants.divider({ className: classNameObj.divider })
41
+ }
42
+ );
43
+ return /* @__PURE__ */ jsxs(
44
+ NextCard,
45
+ {
46
+ classNames,
47
+ "data-testid": testId && `card_${testId}`,
48
+ fullWidth: true,
49
+ radius: "sm",
50
+ shadow: "none",
51
+ children: [
52
+ header && /* @__PURE__ */ jsxs(Fragment, { children: [
53
+ /* @__PURE__ */ jsx(NextCardHeader, { "data-testid": testId && `card_header_${testId}`, children: header }),
54
+ divider
55
+ ] }),
56
+ /* @__PURE__ */ jsx(NextCardBody, { "data-testid": testId && `card_body_${testId}`, children }),
57
+ footer && /* @__PURE__ */ jsxs(Fragment, { children: [
58
+ divider,
59
+ /* @__PURE__ */ jsx(NextCardFooter, { "data-testid": testId && `card_footer_${testId}`, children: footer })
60
+ ] })
61
+ ]
62
+ }
63
+ );
64
+ };
65
+ var Card_default = Card;
66
+
67
+ // src/Card/index.ts
68
+ var Card_default2 = Card_default;
69
+
70
+ export {
71
+ Card_default,
72
+ Card_default2
73
+ };
74
+ //# sourceMappingURL=chunk-2BPC6HYE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Card/Card.tsx","../src/Card/index.ts"],"sourcesContent":["import type { ReactNode } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport {\n Card as NextCard,\n CardBody as NextCardBody,\n CardFooter as NextCardFooter,\n CardHeader as NextCardHeader,\n} from '@nextui-org/card';\nimport { Divider as NextDivider } from '@nextui-org/divider';\nimport { tv } from 'tailwind-variants';\n\n// card styling variants\nexport const cardVariants = tv({\n slots: {\n base: 'border border-divider',\n body: '',\n divider: 'my-0 border-divider',\n footer: '',\n header: 'text-base font-semibold',\n },\n});\n\ntype CardVariantProps = VariantProps<typeof cardVariants>;\ntype CardVariantSlots = Partial<\n Record<keyof ReturnType<typeof cardVariants>, string>\n>;\n\nexport interface CardProps extends CardVariantProps {\n /** card body content */\n children?: ReactNode;\n /** CSS class name */\n className?: string | CardVariantSlots;\n /** footer content */\n footer?: ReactNode;\n /** header content */\n header?: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * Card component based on [NextUI Card](https://nextui.org/docs/components/card)\n */\nconst Card = ({\n children = null,\n className = undefined,\n testId = undefined,\n header = undefined,\n footer = undefined,\n}: CardProps) => {\n // classNames from slots\n const variants = cardVariants();\n const classNameObj = (typeof className === 'object' && className) || {};\n const classNames = {\n base: variants.base({\n className: classNameObj.base || (className as string),\n }),\n header: variants.header({ className: classNameObj.header }),\n body: variants.body({ className: classNameObj.body }),\n footer: variants.footer({ className: classNameObj.footer }),\n };\n\n const divider = (\n <NextDivider\n className={variants.divider({ className: classNameObj.divider })}\n />\n );\n\n return (\n <NextCard\n classNames={classNames}\n data-testid={testId && `card_${testId}`}\n fullWidth\n radius=\"sm\"\n shadow=\"none\"\n >\n {header && (\n <>\n <NextCardHeader data-testid={testId && `card_header_${testId}`}>\n {header}\n </NextCardHeader>\n {divider}\n </>\n )}\n <NextCardBody data-testid={testId && `card_body_${testId}`}>\n {children}\n </NextCardBody>\n {footer && (\n <>\n {divider}\n <NextCardFooter data-testid={testId && `card_footer_${testId}`}>\n {footer}\n </NextCardFooter>\n </>\n )}\n </NextCard>\n );\n};\n\nexport default Card;\n","import Card from './Card';\n\nexport type { CardProps } from './Card';\n\nexport { Card };\n\nexport default Card;\n"],"mappings":";AAGA;AAAA,EACE,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,cAAc;AAAA,OACT;AACP,SAAS,WAAW,mBAAmB;AACvC,SAAS,UAAU;AAsDf,SAcI,UAdJ,KAcI,YAdJ;AAnDG,IAAM,eAAe,GAAG;AAAA,EAC7B,OAAO;AAAA,IACL,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,QAAQ;AAAA,EACV;AACF,CAAC;AAuBD,IAAM,OAAO,CAAC;AAAA,EACZ,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AACX,MAAiB;AAEf,QAAM,WAAW,aAAa;AAC9B,QAAM,eAAgB,OAAO,cAAc,YAAY,aAAc,CAAC;AACtE,QAAM,aAAa;AAAA,IACjB,MAAM,SAAS,KAAK;AAAA,MAClB,WAAW,aAAa,QAAS;AAAA,IACnC,CAAC;AAAA,IACD,QAAQ,SAAS,OAAO,EAAE,WAAW,aAAa,OAAO,CAAC;AAAA,IAC1D,MAAM,SAAS,KAAK,EAAE,WAAW,aAAa,KAAK,CAAC;AAAA,IACpD,QAAQ,SAAS,OAAO,EAAE,WAAW,aAAa,OAAO,CAAC;AAAA,EAC5D;AAEA,QAAM,UACJ;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,SAAS,QAAQ,EAAE,WAAW,aAAa,QAAQ,CAAC;AAAA;AAAA,EACjE;AAGF,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,eAAa,UAAU,QAAQ,MAAM;AAAA,MACrC,WAAS;AAAA,MACT,QAAO;AAAA,MACP,QAAO;AAAA,MAEN;AAAA,kBACC,iCACE;AAAA,8BAAC,kBAAe,eAAa,UAAU,eAAe,MAAM,IACzD,kBACH;AAAA,UACC;AAAA,WACH;AAAA,QAEF,oBAAC,gBAAa,eAAa,UAAU,aAAa,MAAM,IACrD,UACH;AAAA,QACC,UACC,iCACG;AAAA;AAAA,UACD,oBAAC,kBAAe,eAAa,UAAU,eAAe,MAAM,IACzD,kBACH;AAAA,WACF;AAAA;AAAA;AAAA,EAEJ;AAEJ;AAEA,IAAO,eAAQ;;;AC9Ff,IAAOA,gBAAQ;","names":["Card_default"]}
@@ -1,9 +1,7 @@
1
1
  // src/Popover/Popover.tsx
2
2
  import { Popover, PopoverContent, PopoverTrigger } from "@nextui-org/popover";
3
3
  import cn from "classnames";
4
- import createDebug from "debug";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
6
- var debug = createDebug("component:Popover");
7
5
  var Popover_default = ({
8
6
  children = null,
9
7
  className = void 0,
@@ -14,7 +12,6 @@ var Popover_default = ({
14
12
  testId = void 0,
15
13
  title = void 0
16
14
  }) => {
17
- debug("Popover");
18
15
  return /* @__PURE__ */ jsxs(
19
16
  Popover,
20
17
  {
@@ -43,4 +40,4 @@ export {
43
40
  Popover_default,
44
41
  Popover_default2
45
42
  };
46
- //# sourceMappingURL=chunk-V2C3KFMP.js.map
43
+ //# sourceMappingURL=chunk-6G5VTF6K.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Popover/Popover.tsx","../src/Popover/index.ts"],"sourcesContent":["import type { PopoverProps as NextPopoverProps } from '@nextui-org/popover';\nimport type { ReactNode } from 'react';\n\nimport { Popover, PopoverContent, PopoverTrigger } from '@nextui-org/popover';\nimport cn from 'classnames';\n\nexport interface PopoverProps {\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string | string[];\n /** content of the popover */\n content: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n contentTestId?: string;\n /** placement of the popover relative to its trigger reference */\n placement?: NextPopoverProps['placement'];\n /** use as controlled component */\n openControlled?: { open: boolean; setOpen: (open: boolean) => void };\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** popover title */\n title?: ReactNode;\n}\n\n/**\n * Popover component based on [NextUI Card](https://nextui.org/docs/components/popover)\n */\nexport default ({\n children = null,\n className = undefined,\n content,\n contentTestId = undefined,\n placement = 'top',\n openControlled = undefined,\n testId = undefined,\n title = undefined,\n}: PopoverProps) => {\n return (\n <Popover\n placement={placement}\n radius=\"sm\"\n showArrow\n {...(openControlled\n ? { isOpen: openControlled.open, onOpenChange: openControlled.setOpen }\n : {})}\n >\n <PopoverTrigger className={cn(className)} data-testid={testId}>\n {/* NOTE: type and aria properties are injected by PopoverTrigger */}\n {/* eslint-disable-next-line react/button-has-type */}\n <button>{children}</button>\n </PopoverTrigger>\n <PopoverContent data-testid={contentTestId}>\n <div className=\"max-h-[80vh] overflow-y-auto\">\n {title && (\n <div>\n {title}\n <hr />\n </div>\n )}\n {content}\n </div>\n </PopoverContent>\n </Popover>\n );\n};\n","import Popover from './Popover';\n\nexport type { PopoverProps } from './Popover';\n\nexport { Popover };\n\nexport default Popover;\n"],"mappings":";AAGA,SAAS,SAAS,gBAAgB,sBAAsB;AACxD,OAAO,QAAQ;AA8CP,cAKI,YALJ;AAtBR,IAAO,kBAAQ,CAAC;AAAA,EACd,WAAW;AAAA,EACX,YAAY;AAAA,EACZ;AAAA,EACA,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,SAAS;AAAA,EACT,QAAQ;AACV,MAAoB;AAClB,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,QAAO;AAAA,MACP,WAAS;AAAA,MACR,GAAI,iBACD,EAAE,QAAQ,eAAe,MAAM,cAAc,eAAe,QAAQ,IACpE,CAAC;AAAA,MAEL;AAAA,4BAAC,kBAAe,WAAW,GAAG,SAAS,GAAG,eAAa,QAGrD,8BAAC,YAAQ,UAAS,GACpB;AAAA,QACA,oBAAC,kBAAe,eAAa,eAC3B,+BAAC,SAAI,WAAU,gCACZ;AAAA,mBACC,qBAAC,SACE;AAAA;AAAA,YACD,oBAAC,QAAG;AAAA,aACN;AAAA,UAED;AAAA,WACH,GACF;AAAA;AAAA;AAAA,EACF;AAEJ;;;AC3DA,IAAOA,mBAAQ;","names":["Popover_default"]}
@@ -1,9 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/Popover/Popover.tsx
2
2
  var _popover = require('@nextui-org/popover');
3
3
  var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);
4
- var _debug = require('debug'); var _debug2 = _interopRequireDefault(_debug);
5
4
  var _jsxruntime = require('react/jsx-runtime');
6
- var debug = _debug2.default.call(void 0, "component:Popover");
7
5
  var Popover_default = ({
8
6
  children = null,
9
7
  className = void 0,
@@ -14,7 +12,6 @@ var Popover_default = ({
14
12
  testId = void 0,
15
13
  title = void 0
16
14
  }) => {
17
- debug("Popover");
18
15
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
19
16
  _popover.Popover,
20
17
  {
@@ -43,4 +40,4 @@ var Popover_default2 = Popover_default;
43
40
 
44
41
 
45
42
  exports.Popover_default = Popover_default; exports.Popover_default2 = Popover_default2;
46
- //# sourceMappingURL=chunk-YUOFNPJO.cjs.map
43
+ //# sourceMappingURL=chunk-B35F4645.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Popover/Popover.tsx","../src/Popover/index.ts"],"names":["Popover_default"],"mappings":";AAGA,SAAS,SAAS,gBAAgB,sBAAsB;AACxD,OAAO,QAAQ;AA8CP,cAKI,YALJ;AAtBR,IAAO,kBAAQ,CAAC;AAAA,EACd,WAAW;AAAA,EACX,YAAY;AAAA,EACZ;AAAA,EACA,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,SAAS;AAAA,EACT,QAAQ;AACV,MAAoB;AAClB,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,QAAO;AAAA,MACP,WAAS;AAAA,MACR,GAAI,iBACD,EAAE,QAAQ,eAAe,MAAM,cAAc,eAAe,QAAQ,IACpE,CAAC;AAAA,MAEL;AAAA,4BAAC,kBAAe,WAAW,GAAG,SAAS,GAAG,eAAa,QAGrD,8BAAC,YAAQ,UAAS,GACpB;AAAA,QACA,oBAAC,kBAAe,eAAa,eAC3B,+BAAC,SAAI,WAAU,gCACZ;AAAA,mBACC,qBAAC,SACE;AAAA;AAAA,YACD,oBAAC,QAAG;AAAA,aACN;AAAA,UAED;AAAA,WACH,GACF;AAAA;AAAA;AAAA,EACF;AAEJ;;;AC3DA,IAAOA,mBAAQ","sourcesContent":["import type { PopoverProps as NextPopoverProps } from '@nextui-org/popover';\nimport type { ReactNode } from 'react';\n\nimport { Popover, PopoverContent, PopoverTrigger } from '@nextui-org/popover';\nimport cn from 'classnames';\n\nexport interface PopoverProps {\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string | string[];\n /** content of the popover */\n content: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n contentTestId?: string;\n /** placement of the popover relative to its trigger reference */\n placement?: NextPopoverProps['placement'];\n /** use as controlled component */\n openControlled?: { open: boolean; setOpen: (open: boolean) => void };\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** popover title */\n title?: ReactNode;\n}\n\n/**\n * Popover component based on [NextUI Card](https://nextui.org/docs/components/popover)\n */\nexport default ({\n children = null,\n className = undefined,\n content,\n contentTestId = undefined,\n placement = 'top',\n openControlled = undefined,\n testId = undefined,\n title = undefined,\n}: PopoverProps) => {\n return (\n <Popover\n placement={placement}\n radius=\"sm\"\n showArrow\n {...(openControlled\n ? { isOpen: openControlled.open, onOpenChange: openControlled.setOpen }\n : {})}\n >\n <PopoverTrigger className={cn(className)} data-testid={testId}>\n {/* NOTE: type and aria properties are injected by PopoverTrigger */}\n {/* eslint-disable-next-line react/button-has-type */}\n <button>{children}</button>\n </PopoverTrigger>\n <PopoverContent data-testid={contentTestId}>\n <div className=\"max-h-[80vh] overflow-y-auto\">\n {title && (\n <div>\n {title}\n <hr />\n </div>\n )}\n {content}\n </div>\n </PopoverContent>\n </Popover>\n );\n};\n","import Popover from './Popover';\n\nexport type { PopoverProps } from './Popover';\n\nexport { Popover };\n\nexport default Popover;\n"]}