@fuf-stack/pixels 0.29.2 → 0.29.3
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/Modal/index.cjs +2 -2
- package/dist/Modal/index.d.cts +3 -2
- package/dist/Modal/index.d.ts +3 -2
- package/dist/Modal/index.js +1 -1
- package/dist/{Modal-DZHeIvQc.d.cts → Modal-CSOPzGYj.d.cts} +6 -1
- package/dist/{Modal-DZHeIvQc.d.ts → Modal-CSOPzGYj.d.ts} +6 -1
- package/dist/Popover/index.cjs +3 -3
- package/dist/Popover/index.js +2 -2
- package/dist/ScrollShadow/index.cjs +3 -3
- package/dist/ScrollShadow/index.js +1 -1
- package/dist/{chunk-Y3SLMQYA.cjs → chunk-37C63OKM.cjs} +3 -3
- package/dist/{chunk-Y3SLMQYA.cjs.map → chunk-37C63OKM.cjs.map} +1 -1
- package/dist/{chunk-BAPBIOOG.js → chunk-BUWMLU3E.js} +2 -2
- package/dist/{chunk-BAPBIOOG.js.map → chunk-BUWMLU3E.js.map} +1 -1
- package/dist/{chunk-D5HC5WLB.cjs → chunk-BXPBP3PC.cjs} +2 -2
- package/dist/{chunk-D5HC5WLB.cjs.map → chunk-BXPBP3PC.cjs.map} +1 -1
- package/dist/{chunk-F2SRHLNC.js → chunk-CQW46JPO.js} +5 -1
- package/dist/chunk-CQW46JPO.js.map +1 -0
- package/dist/{chunk-VU64Z744.js → chunk-JDLU5AUA.js} +2 -2
- package/dist/{chunk-VAJODF7Z.cjs → chunk-VG5A2YZE.cjs} +5 -1
- package/dist/chunk-VG5A2YZE.cjs.map +1 -0
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -7
- package/package.json +11 -11
- package/dist/chunk-F2SRHLNC.js.map +0 -1
- package/dist/chunk-VAJODF7Z.cjs.map +0 -1
- /package/dist/{chunk-VU64Z744.js.map → chunk-JDLU5AUA.js.map} +0 -0
package/dist/Modal/index.cjs
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkVG5A2YZEcjs = require('../chunk-VG5A2YZE.cjs');
|
|
6
6
|
require('../chunk-DZUJEN5N.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.Modal =
|
|
11
|
+
exports.Modal = _chunkVG5A2YZEcjs.Modal_default; exports.default = _chunkVG5A2YZEcjs.Modal_default2; exports.modalVariants = _chunkVG5A2YZEcjs.modalVariants;
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Modal/index.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { M as Modal } from '../Modal-
|
|
2
|
-
export { a as ModalProps, m as modalVariants } from '../Modal-
|
|
1
|
+
import { M as Modal } from '../Modal-CSOPzGYj.cjs';
|
|
2
|
+
export { a as ModalProps, m as modalVariants } from '../Modal-CSOPzGYj.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants';
|
|
5
5
|
import 'tailwind-variants/dist/config.js';
|
|
6
6
|
import '@fuf-stack/pixel-utils';
|
|
7
|
+
import '@nextui-org/modal';
|
|
7
8
|
import 'react';
|
|
8
9
|
|
|
9
10
|
|
package/dist/Modal/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { M as Modal } from '../Modal-
|
|
2
|
-
export { a as ModalProps, m as modalVariants } from '../Modal-
|
|
1
|
+
import { M as Modal } from '../Modal-CSOPzGYj.js';
|
|
2
|
+
export { a as ModalProps, m as modalVariants } from '../Modal-CSOPzGYj.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants';
|
|
5
5
|
import 'tailwind-variants/dist/config.js';
|
|
6
6
|
import '@fuf-stack/pixel-utils';
|
|
7
|
+
import '@nextui-org/modal';
|
|
7
8
|
import 'react';
|
|
8
9
|
|
|
9
10
|
|
package/dist/Modal/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as tailwind_variants from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
4
4
|
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
5
|
+
import { ModalProps as ModalProps$1 } from '@nextui-org/modal';
|
|
5
6
|
import { ReactNode } from 'react';
|
|
6
7
|
|
|
7
8
|
declare const modalVariants: tailwind_variants.TVReturnType<{
|
|
@@ -162,6 +163,8 @@ interface ModalProps extends VariantProps {
|
|
|
162
163
|
children?: ReactNode;
|
|
163
164
|
/** CSS class name */
|
|
164
165
|
className?: ClassName;
|
|
166
|
+
/** Disable animations completely */
|
|
167
|
+
disableAnimation?: boolean;
|
|
165
168
|
/** modal footer */
|
|
166
169
|
footer?: ReactNode;
|
|
167
170
|
/** modal header */
|
|
@@ -170,6 +173,8 @@ interface ModalProps extends VariantProps {
|
|
|
170
173
|
isOpen: boolean;
|
|
171
174
|
/** close event handler */
|
|
172
175
|
onClose: () => void;
|
|
176
|
+
/** The container element in which the overlay portal will be placed */
|
|
177
|
+
portalContainer?: ModalProps$1['portalContainer'];
|
|
173
178
|
/** modal size */
|
|
174
179
|
size?: VariantProps['size'];
|
|
175
180
|
/** HTML data-testid attribute used in e2e tests */
|
|
@@ -178,6 +183,6 @@ interface ModalProps extends VariantProps {
|
|
|
178
183
|
/**
|
|
179
184
|
* Modal component based on [NextUI Modal](https://nextui.org/docs/components/modal)
|
|
180
185
|
*/
|
|
181
|
-
declare const Modal: ({ children, className, footer, header, isOpen, onClose, size, testId, }: ModalProps) => react_jsx_runtime.JSX.Element;
|
|
186
|
+
declare const Modal: ({ children, className, disableAnimation, footer, header, isOpen, onClose, portalContainer, size, testId, }: ModalProps) => react_jsx_runtime.JSX.Element;
|
|
182
187
|
|
|
183
188
|
export { Modal as M, type ModalProps as a, modalVariants as m };
|
|
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as tailwind_variants from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
4
4
|
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
5
|
+
import { ModalProps as ModalProps$1 } from '@nextui-org/modal';
|
|
5
6
|
import { ReactNode } from 'react';
|
|
6
7
|
|
|
7
8
|
declare const modalVariants: tailwind_variants.TVReturnType<{
|
|
@@ -162,6 +163,8 @@ interface ModalProps extends VariantProps {
|
|
|
162
163
|
children?: ReactNode;
|
|
163
164
|
/** CSS class name */
|
|
164
165
|
className?: ClassName;
|
|
166
|
+
/** Disable animations completely */
|
|
167
|
+
disableAnimation?: boolean;
|
|
165
168
|
/** modal footer */
|
|
166
169
|
footer?: ReactNode;
|
|
167
170
|
/** modal header */
|
|
@@ -170,6 +173,8 @@ interface ModalProps extends VariantProps {
|
|
|
170
173
|
isOpen: boolean;
|
|
171
174
|
/** close event handler */
|
|
172
175
|
onClose: () => void;
|
|
176
|
+
/** The container element in which the overlay portal will be placed */
|
|
177
|
+
portalContainer?: ModalProps$1['portalContainer'];
|
|
173
178
|
/** modal size */
|
|
174
179
|
size?: VariantProps['size'];
|
|
175
180
|
/** HTML data-testid attribute used in e2e tests */
|
|
@@ -178,6 +183,6 @@ interface ModalProps extends VariantProps {
|
|
|
178
183
|
/**
|
|
179
184
|
* Modal component based on [NextUI Modal](https://nextui.org/docs/components/modal)
|
|
180
185
|
*/
|
|
181
|
-
declare const Modal: ({ children, className, footer, header, isOpen, onClose, size, testId, }: ModalProps) => react_jsx_runtime.JSX.Element;
|
|
186
|
+
declare const Modal: ({ children, className, disableAnimation, footer, header, isOpen, onClose, portalContainer, size, testId, }: ModalProps) => react_jsx_runtime.JSX.Element;
|
|
182
187
|
|
|
183
188
|
export { Modal as M, type ModalProps as a, modalVariants as m };
|
package/dist/Popover/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
4
|
+
var _chunk37C63OKMcjs = require('../chunk-37C63OKM.cjs');
|
|
5
|
+
require('../chunk-BXPBP3PC.cjs');
|
|
6
6
|
require('../chunk-DZUJEN5N.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.Popover =
|
|
10
|
+
exports.Popover = _chunk37C63OKMcjs.Popover_default; exports.default = _chunk37C63OKMcjs.Popover_default2;
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Popover/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBXPBP3PCcjs = require('../chunk-BXPBP3PC.cjs');
|
|
4
4
|
require('../chunk-DZUJEN5N.cjs');
|
|
5
5
|
|
|
6
6
|
// src/ScrollShadow/index.ts
|
|
7
|
-
var ScrollShadow_default2 =
|
|
7
|
+
var ScrollShadow_default2 = _chunkBXPBP3PCcjs.ScrollShadow_default;
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.ScrollShadow =
|
|
11
|
+
exports.ScrollShadow = _chunkBXPBP3PCcjs.ScrollShadow_default; exports.default = ScrollShadow_default2;
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBXPBP3PCcjs = require('./chunk-BXPBP3PC.cjs');
|
|
4
4
|
|
|
5
5
|
// src/Popover/Popover.tsx
|
|
6
6
|
var _popover = require('@nextui-org/popover');
|
|
@@ -47,7 +47,7 @@ var Popover_default = ({
|
|
|
47
47
|
title,
|
|
48
48
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "hr", {})
|
|
49
49
|
] }),
|
|
50
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
50
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBXPBP3PCcjs.ScrollShadow_default, { className: className.body, children: content }),
|
|
51
51
|
footer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: className.footer, children: [
|
|
52
52
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "hr", {}),
|
|
53
53
|
footer
|
|
@@ -65,4 +65,4 @@ var Popover_default2 = Popover_default;
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
exports.Popover_default = Popover_default; exports.Popover_default2 = Popover_default2;
|
|
68
|
-
//# sourceMappingURL=chunk-
|
|
68
|
+
//# sourceMappingURL=chunk-37C63OKM.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-37C63OKM.cjs","../src/Popover/Popover.tsx","../src/Popover/index.ts"],"names":["Popover_default"],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACAA,8CAAwD;AAExD,oDAAyC;AA+EjC,+CAAA;AA1ED,IAAM,gBAAA,EAAkB,4BAAA;AAAG,EAChC,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,oBAAA;AAAA,IACN,OAAA,EAAS,gCAAA;AAAA,IACT,MAAA,EAAQ,oBAAA;AAAA,IACR,MAAA,EAAQ,oBAAA;AAAA,IACR,OAAA,EAAS;AAAA,EACX;AACF,CAAC,CAAA;AAiCD,IAAO,gBAAA,EAAQ,CAAC;AAAA,EACd,SAAA,EAAW,IAAA;AAAA,EACX,SAAA,EAAW,WAAA,EAAa,KAAA,CAAA;AAAA,EACxB,OAAA;AAAA,EACA,cAAA,EAAgB,KAAA,CAAA;AAAA,EAChB,OAAA,EAAS,KAAA,CAAA;AAAA,EACT,eAAA,EAAiB,KAAA,CAAA;AAAA,EACjB,UAAA,EAAY,KAAA;AAAA,EACZ,gBAAA,EAAkB,KAAA,CAAA;AAAA,EAClB,kBAAA,EAAoB,KAAA,CAAA;AAAA,EACpB,OAAA,EAAS,KAAA,CAAA;AAAA,EACT,MAAA,EAAQ,KAAA;AACV,CAAA,EAAA,GAAoB;AAElB,EAAA,MAAM,SAAA,EAAW,eAAA,CAAgB,CAAA;AACjC,EAAA,MAAM,UAAA,EAAY,8CAAA,QAAqB,EAAU,UAAA,EAAY,SAAS,CAAA;AAEtE,EAAA,uBACE,8BAAA;AAAA,IAAC,gBAAA;AAAA,IAAA;AAAA,MACC,UAAA,EAAY,SAAA;AAAA,MACZ,SAAA;AAAA,MACA,eAAA;AAAA,MACA,MAAA,EAAO,IAAA;AAAA,MACP,iBAAA;AAAA,MACA,SAAA,EAAS,IAAA;AAAA,MAER,GAAI,eAAA,EACD,EAAE,MAAA,EAAQ,cAAA,CAAe,IAAA,EAAM,YAAA,EAAc,cAAA,CAAe,QAAQ,EAAA,EACpE,CAAC,CAAA;AAAA,MAEL,QAAA,EAAA;AAAA,wBAAA,6BAAA,uBAAC,EAAA,EAAe,aAAA,EAAa,MAAA,EAG3B,QAAA,kBAAA,6BAAA,QAAC,EAAA,EAAQ,SAAA,CAAS,EAAA,CACpB,CAAA;AAAA,wBACA,8BAAA,uBAAC,EAAA,EAAe,aAAA,EAAa,aAAA,EAC1B,QAAA,EAAA;AAAA,UAAA,MAAA,mBACC,8BAAA,KAAC,EAAA,EAAI,SAAA,EAAW,SAAA,CAAU,MAAA,EACvB,QAAA,EAAA;AAAA,YAAA,KAAA;AAAA,4BACD,6BAAA,IAAC,EAAA,CAAA,CAAG;AAAA,UAAA,EAAA,CACN,CAAA;AAAA,0BAEF,6BAAA,sCAAC,EAAA,EAAa,SAAA,EAAW,SAAA,CAAU,IAAA,EAAO,QAAA,EAAA,QAAA,CAAQ,CAAA;AAAA,UACjD,OAAA,mBACC,8BAAA,KAAC,EAAA,EAAI,SAAA,EAAW,SAAA,CAAU,MAAA,EACxB,QAAA,EAAA;AAAA,4BAAA,6BAAA,IAAC,EAAA,CAAA,CAAG,CAAA;AAAA,YACH;AAAA,UAAA,EAAA,CACH;AAAA,QAAA,EAAA,CAEJ;AAAA,MAAA;AAAA,IAAA;AAAA,EACF,CAAA;AAEJ,CAAA;AD7CA;AACA;AEtDA,IAAOA,iBAAAA,EAAQ,eAAA;AFwDf;AACA;AACE;AACA;AACF,uFAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-37C63OKM.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { PopoverProps as NextPopoverProps } from '@nextui-org/popover';\nimport type { ReactNode } from 'react';\n\nimport { Popover, PopoverContent, PopoverTrigger } from '@nextui-org/popover';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport ScrollShadow from '../ScrollShadow/ScrollShadow';\n\n// popover styling variants\nexport const popoverVariants = tv({\n slots: {\n body: 'w-full px-2.5 py-1',\n content: 'flex max-h-[80vh] flex-col p-0',\n footer: 'w-full px-2.5 py-1',\n header: 'w-full px-2.5 py-1',\n trigger: '',\n },\n});\n\ntype VariantProps = TVProps<typeof popoverVariants>;\ntype ClassName = TVClassName<typeof popoverVariants>;\n\nexport interface PopoverProps extends VariantProps {\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** content of the popover */\n content: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n contentTestId?: string;\n /** popover footer */\n footer?: ReactNode;\n /** use as controlled component */\n openControlled?: { open: boolean; setOpen: (open: boolean) => void };\n /** placement of the popover relative to its trigger reference */\n placement?: NextPopoverProps['placement'];\n /** The container element in which the overlay portal will be placed. */\n portalContainer?: NextPopoverProps['portalContainer'];\n /** Whether to block scrolling outside the popover */\n shouldBlockScroll?: boolean;\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: _className = undefined,\n content,\n contentTestId = undefined,\n footer = undefined,\n openControlled = undefined,\n placement = 'top',\n portalContainer = undefined,\n shouldBlockScroll = undefined,\n testId = undefined,\n title = undefined,\n}: PopoverProps) => {\n // className from slots\n const variants = popoverVariants();\n const className = variantsToClassNames(variants, _className, 'trigger');\n\n return (\n <Popover\n classNames={className}\n placement={placement}\n portalContainer={portalContainer}\n radius=\"sm\"\n shouldBlockScroll={shouldBlockScroll}\n showArrow\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...(openControlled\n ? { isOpen: openControlled.open, onOpenChange: openControlled.setOpen }\n : {})}\n >\n <PopoverTrigger 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 {title && (\n <div className={className.header}>\n {title}\n <hr />\n </div>\n )}\n <ScrollShadow className={className.body}>{content}</ScrollShadow>\n {footer && (\n <div className={className.footer}>\n <hr />\n {footer}\n </div>\n )}\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"]}
|
|
@@ -6,9 +6,9 @@ var ScrollShadow_default = ({
|
|
|
6
6
|
children = null,
|
|
7
7
|
className = void 0,
|
|
8
8
|
testId = void 0
|
|
9
|
-
}) => /* @__PURE__ */ jsx(ScrollShadow, { className: cn(className), "data-
|
|
9
|
+
}) => /* @__PURE__ */ jsx(ScrollShadow, { className: cn(className), "data-testid": testId, children });
|
|
10
10
|
|
|
11
11
|
export {
|
|
12
12
|
ScrollShadow_default
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=chunk-
|
|
14
|
+
//# sourceMappingURL=chunk-BUWMLU3E.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ScrollShadow/ScrollShadow.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { ScrollShadow } from '@nextui-org/scroll-shadow';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nexport interface ScrollShadowProps {\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string | string[];\n /** content of the scroll box */\n testId?: string;\n}\n\n/**\n * Scroll Shadow component based on [NextUI Scroll Shadow](https://nextui.org/docs/components/scroll-shadow)\n */\nexport default ({\n children = null,\n className = undefined,\n testId = undefined,\n}: ScrollShadowProps) => (\n <ScrollShadow className={cn(className)} data-
|
|
1
|
+
{"version":3,"sources":["../src/ScrollShadow/ScrollShadow.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { ScrollShadow } from '@nextui-org/scroll-shadow';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nexport interface ScrollShadowProps {\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string | string[];\n /** content of the scroll box */\n testId?: string;\n}\n\n/**\n * Scroll Shadow component based on [NextUI Scroll Shadow](https://nextui.org/docs/components/scroll-shadow)\n */\nexport default ({\n children = null,\n className = undefined,\n testId = undefined,\n}: ScrollShadowProps) => (\n <ScrollShadow className={cn(className)} data-testid={testId}>\n {children}\n </ScrollShadow>\n);\n"],"mappings":";AAEA,SAAS,oBAAoB;AAE7B,SAAS,UAAU;AAmBjB;AALF,IAAO,uBAAQ,CAAC;AAAA,EACd,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,SAAS;AACX,MACE,oBAAC,gBAAa,WAAW,GAAG,SAAS,GAAG,eAAa,QAClD,UACH;","names":[]}
|
|
@@ -6,9 +6,9 @@ var ScrollShadow_default = ({
|
|
|
6
6
|
children = null,
|
|
7
7
|
className = void 0,
|
|
8
8
|
testId = void 0
|
|
9
|
-
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _scrollshadow.ScrollShadow, { className: _pixelutils.cn.call(void 0, className), "data-
|
|
9
|
+
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _scrollshadow.ScrollShadow, { className: _pixelutils.cn.call(void 0, className), "data-testid": testId, children });
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
exports.ScrollShadow_default = ScrollShadow_default;
|
|
14
|
-
//# sourceMappingURL=chunk-
|
|
14
|
+
//# sourceMappingURL=chunk-BXPBP3PC.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-BXPBP3PC.cjs","../src/ScrollShadow/ScrollShadow.tsx"],"names":[],"mappings":"AAAA;ACEA,yDAA6B;AAE7B,oDAAmB;AAmBjB,+CAAA;AALF,IAAO,qBAAA,EAAQ,CAAC;AAAA,EACd,SAAA,EAAW,IAAA;AAAA,EACX,UAAA,EAAY,KAAA,CAAA;AAAA,EACZ,OAAA,EAAS,KAAA;AACX,CAAA,EAAA,mBACE,6BAAA,0BAAC,EAAA,EAAa,SAAA,EAAW,4BAAA,SAAY,CAAA,EAAG,aAAA,EAAa,MAAA,EAClD,SAAA,CACH,CAAA;ADhBF;AACA;AACE;AACF,oDAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-BXPBP3PC.cjs","sourcesContent":[null,"import type { ReactNode } from 'react';\n\nimport { ScrollShadow } from '@nextui-org/scroll-shadow';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nexport interface ScrollShadowProps {\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string | string[];\n /** content of the scroll box */\n testId?: string;\n}\n\n/**\n * Scroll Shadow component based on [NextUI Scroll Shadow](https://nextui.org/docs/components/scroll-shadow)\n */\nexport default ({\n children = null,\n className = undefined,\n testId = undefined,\n}: ScrollShadowProps) => (\n <ScrollShadow className={cn(className)} data-testid={testId}>\n {children}\n </ScrollShadow>\n);\n"]}
|
|
@@ -31,10 +31,12 @@ var modalVariants = tv({
|
|
|
31
31
|
var Modal = ({
|
|
32
32
|
children = null,
|
|
33
33
|
className = void 0,
|
|
34
|
+
disableAnimation = false,
|
|
34
35
|
footer = void 0,
|
|
35
36
|
header = void 0,
|
|
36
37
|
isOpen,
|
|
37
38
|
onClose,
|
|
39
|
+
portalContainer = void 0,
|
|
38
40
|
size = "md",
|
|
39
41
|
testId = void 0
|
|
40
42
|
}) => {
|
|
@@ -46,9 +48,11 @@ var Modal = ({
|
|
|
46
48
|
backdrop: "opaque",
|
|
47
49
|
classNames,
|
|
48
50
|
"data-testid": testId,
|
|
51
|
+
disableAnimation,
|
|
49
52
|
isOpen,
|
|
50
53
|
onClose,
|
|
51
54
|
placement: "center",
|
|
55
|
+
portalContainer,
|
|
52
56
|
scrollBehavior: "inside",
|
|
53
57
|
children: /* @__PURE__ */ jsx(NextModalContent, { "data-testid": testId ? `modal_${testId}` : "modal", children: () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
54
58
|
header && /* @__PURE__ */ jsx(NextModalHeader, { children: header }),
|
|
@@ -68,4 +72,4 @@ export {
|
|
|
68
72
|
Modal_default,
|
|
69
73
|
Modal_default2
|
|
70
74
|
};
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
75
|
+
//# sourceMappingURL=chunk-CQW46JPO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Modal/Modal.tsx","../src/Modal/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ModalProps as NextModalProps } from '@nextui-org/modal';\nimport type { ReactNode } from 'react';\n\nimport {\n Modal as NextModal,\n ModalBody as NextModalBody,\n ModalContent as NextModalContent,\n ModalFooter as NextModalFooter,\n ModalHeader as NextModalHeader,\n} from '@nextui-org/modal';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// modal variants\nexport const modalVariants = tv({\n slots: {\n backdrop: '',\n base: '',\n body: '',\n closeButton: '',\n footer: '',\n header: '',\n wrapper: '',\n },\n variants: {\n size: {\n sm: { base: 'max-w-sm' },\n md: { base: 'max-w-md' },\n lg: { base: 'max-w-lg' },\n xl: { base: 'max-w-5xl' },\n full: { base: 'h-[80dvh] max-w-full' },\n },\n },\n});\n\ntype VariantProps = TVProps<typeof modalVariants>;\ntype ClassName = TVClassName<typeof modalVariants>;\n\nexport interface ModalProps extends VariantProps {\n /** modal body content */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Disable animations completely */\n disableAnimation?: boolean;\n /** modal footer */\n footer?: ReactNode;\n /** modal header */\n header?: ReactNode;\n /** open state (controlled) */\n isOpen: boolean;\n /** close event handler */\n onClose: () => void;\n /** The container element in which the overlay portal will be placed */\n portalContainer?: NextModalProps['portalContainer'];\n /** modal size */\n size?: VariantProps['size'];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * Modal component based on [NextUI Modal](https://nextui.org/docs/components/modal)\n */\nconst Modal = ({\n children = null,\n className = undefined,\n disableAnimation = false,\n footer = undefined,\n header = undefined,\n isOpen,\n onClose,\n portalContainer = undefined,\n size = 'md',\n testId = undefined,\n}: ModalProps) => {\n // classNames from slots\n const variants = modalVariants({ size });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <NextModal\n backdrop=\"opaque\"\n classNames={classNames}\n data-testid={testId}\n disableAnimation={disableAnimation}\n isOpen={isOpen}\n onClose={onClose}\n placement=\"center\"\n portalContainer={portalContainer}\n scrollBehavior=\"inside\"\n >\n <NextModalContent data-testid={testId ? `modal_${testId}` : 'modal'}>\n {() => (\n <>\n {header && <NextModalHeader>{header}</NextModalHeader>}\n <NextModalBody id=\"modal_body\">{children}</NextModalBody>\n {footer && <NextModalFooter>{footer}</NextModalFooter>}\n </>\n )}\n </NextModalContent>\n </NextModal>\n );\n};\n\nexport default Modal;\n","import Modal, { modalVariants } from './Modal';\n\nexport type { ModalProps } from './Modal';\n\nexport { Modal, modalVariants };\n\nexport default Modal;\n"],"mappings":";AAIA;AAAA,EACE,SAAS;AAAA,EACT,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,eAAe;AAAA,OACV;AAEP,SAAS,IAAI,4BAA4B;AAmF/B,mBACa,KADb;AAhFH,IAAM,gBAAgB,GAAG;AAAA,EAC9B,OAAO;AAAA,IACL,UAAU;AAAA,IACV,MAAM;AAAA,IACN,MAAM;AAAA,IACN,aAAa;AAAA,IACb,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI,EAAE,MAAM,WAAW;AAAA,MACvB,IAAI,EAAE,MAAM,WAAW;AAAA,MACvB,IAAI,EAAE,MAAM,WAAW;AAAA,MACvB,IAAI,EAAE,MAAM,YAAY;AAAA,MACxB,MAAM,EAAE,MAAM,uBAAuB;AAAA,IACvC;AAAA,EACF;AACF,CAAC;AA+BD,IAAM,QAAQ,CAAC;AAAA,EACb,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,mBAAmB;AAAA,EACnB,SAAS;AAAA,EACT,SAAS;AAAA,EACT;AAAA,EACA;AAAA,EACA,kBAAkB;AAAA,EAClB,OAAO;AAAA,EACP,SAAS;AACX,MAAkB;AAEhB,QAAM,WAAW,cAAc,EAAE,KAAK,CAAC;AACvC,QAAM,aAAa,qBAAqB,UAAU,WAAW,MAAM;AAEnE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAS;AAAA,MACT;AAAA,MACA,eAAa;AAAA,MACb;AAAA,MACA;AAAA,MACA;AAAA,MACA,WAAU;AAAA,MACV;AAAA,MACA,gBAAe;AAAA,MAEf,8BAAC,oBAAiB,eAAa,SAAS,SAAS,MAAM,KAAK,SACzD,gBACC,iCACG;AAAA,kBAAU,oBAAC,mBAAiB,kBAAO;AAAA,QACpC,oBAAC,iBAAc,IAAG,cAAc,UAAS;AAAA,QACxC,UAAU,oBAAC,mBAAiB,kBAAO;AAAA,SACtC,GAEJ;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,gBAAQ;;;ACpGf,IAAOA,iBAAQ;","names":["Modal_default"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ScrollShadow_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BUWMLU3E.js";
|
|
4
4
|
|
|
5
5
|
// src/Popover/Popover.tsx
|
|
6
6
|
import { Popover, PopoverContent, PopoverTrigger } from "@nextui-org/popover";
|
|
@@ -65,4 +65,4 @@ export {
|
|
|
65
65
|
Popover_default,
|
|
66
66
|
Popover_default2
|
|
67
67
|
};
|
|
68
|
-
//# sourceMappingURL=chunk-
|
|
68
|
+
//# sourceMappingURL=chunk-JDLU5AUA.js.map
|
|
@@ -31,10 +31,12 @@ var modalVariants = _pixelutils.tv.call(void 0, {
|
|
|
31
31
|
var Modal = ({
|
|
32
32
|
children = null,
|
|
33
33
|
className = void 0,
|
|
34
|
+
disableAnimation = false,
|
|
34
35
|
footer = void 0,
|
|
35
36
|
header = void 0,
|
|
36
37
|
isOpen,
|
|
37
38
|
onClose,
|
|
39
|
+
portalContainer = void 0,
|
|
38
40
|
size = "md",
|
|
39
41
|
testId = void 0
|
|
40
42
|
}) => {
|
|
@@ -46,9 +48,11 @@ var Modal = ({
|
|
|
46
48
|
backdrop: "opaque",
|
|
47
49
|
classNames,
|
|
48
50
|
"data-testid": testId,
|
|
51
|
+
disableAnimation,
|
|
49
52
|
isOpen,
|
|
50
53
|
onClose,
|
|
51
54
|
placement: "center",
|
|
55
|
+
portalContainer,
|
|
52
56
|
scrollBehavior: "inside",
|
|
53
57
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _modal.ModalContent, { "data-testid": testId ? `modal_${testId}` : "modal", children: () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
54
58
|
header && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _modal.ModalHeader, { children: header }),
|
|
@@ -68,4 +72,4 @@ var Modal_default2 = Modal_default;
|
|
|
68
72
|
|
|
69
73
|
|
|
70
74
|
exports.modalVariants = modalVariants; exports.Modal_default = Modal_default; exports.Modal_default2 = Modal_default2;
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
75
|
+
//# sourceMappingURL=chunk-VG5A2YZE.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-VG5A2YZE.cjs","../src/Modal/Modal.tsx","../src/Modal/index.ts"],"names":[],"mappings":"AAAA;ACIA;AACE;AACA;AACA;AACA;AACA;AAAe,0CACV;AAEP,oDAAyC;AAmF/B,+CAAA;AAhFH,IAAM,cAAA,EAAgB,4BAAA;AAAG,EAC9B,KAAA,EAAO;AAAA,IACL,QAAA,EAAU,EAAA;AAAA,IACV,IAAA,EAAM,EAAA;AAAA,IACN,IAAA,EAAM,EAAA;AAAA,IACN,WAAA,EAAa,EAAA;AAAA,IACb,MAAA,EAAQ,EAAA;AAAA,IACR,MAAA,EAAQ,EAAA;AAAA,IACR,OAAA,EAAS;AAAA,EACX,CAAA;AAAA,EACA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,MACJ,EAAA,EAAI,EAAE,IAAA,EAAM,WAAW,CAAA;AAAA,MACvB,EAAA,EAAI,EAAE,IAAA,EAAM,WAAW,CAAA;AAAA,MACvB,EAAA,EAAI,EAAE,IAAA,EAAM,WAAW,CAAA;AAAA,MACvB,EAAA,EAAI,EAAE,IAAA,EAAM,YAAY,CAAA;AAAA,MACxB,IAAA,EAAM,EAAE,IAAA,EAAM,uBAAuB;AAAA,IACvC;AAAA,EACF;AACF,CAAC,CAAA;AA+BD,IAAM,MAAA,EAAQ,CAAC;AAAA,EACb,SAAA,EAAW,IAAA;AAAA,EACX,UAAA,EAAY,KAAA,CAAA;AAAA,EACZ,iBAAA,EAAmB,KAAA;AAAA,EACnB,OAAA,EAAS,KAAA,CAAA;AAAA,EACT,OAAA,EAAS,KAAA,CAAA;AAAA,EACT,MAAA;AAAA,EACA,OAAA;AAAA,EACA,gBAAA,EAAkB,KAAA,CAAA;AAAA,EAClB,KAAA,EAAO,IAAA;AAAA,EACP,OAAA,EAAS,KAAA;AACX,CAAA,EAAA,GAAkB;AAEhB,EAAA,MAAM,SAAA,EAAW,aAAA,CAAc,EAAE,KAAK,CAAC,CAAA;AACvC,EAAA,MAAM,WAAA,EAAa,8CAAA,QAAqB,EAAU,SAAA,EAAW,MAAM,CAAA;AAEnE,EAAA,uBACE,6BAAA;AAAA,IAAC,YAAA;AAAA,IAAA;AAAA,MACC,QAAA,EAAS,QAAA;AAAA,MACT,UAAA;AAAA,MACA,aAAA,EAAa,MAAA;AAAA,MACb,gBAAA;AAAA,MACA,MAAA;AAAA,MACA,OAAA;AAAA,MACA,SAAA,EAAU,QAAA;AAAA,MACV,eAAA;AAAA,MACA,cAAA,EAAe,QAAA;AAAA,MAEf,QAAA,kBAAA,6BAAA,mBAAC,EAAA,EAAiB,aAAA,EAAa,OAAA,EAAS,CAAA,MAAA,EAAS,MAAM,CAAA,EAAA;AAGb,QAAA;AACK,wBAAA;AACL,QAAA;AAG1C,MAAA;AAAA,IAAA;AACF,EAAA;AAEJ;AAEe;ADzCiF;AACA;AE5DjF;AF8DiF;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-VG5A2YZE.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ModalProps as NextModalProps } from '@nextui-org/modal';\nimport type { ReactNode } from 'react';\n\nimport {\n Modal as NextModal,\n ModalBody as NextModalBody,\n ModalContent as NextModalContent,\n ModalFooter as NextModalFooter,\n ModalHeader as NextModalHeader,\n} from '@nextui-org/modal';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// modal variants\nexport const modalVariants = tv({\n slots: {\n backdrop: '',\n base: '',\n body: '',\n closeButton: '',\n footer: '',\n header: '',\n wrapper: '',\n },\n variants: {\n size: {\n sm: { base: 'max-w-sm' },\n md: { base: 'max-w-md' },\n lg: { base: 'max-w-lg' },\n xl: { base: 'max-w-5xl' },\n full: { base: 'h-[80dvh] max-w-full' },\n },\n },\n});\n\ntype VariantProps = TVProps<typeof modalVariants>;\ntype ClassName = TVClassName<typeof modalVariants>;\n\nexport interface ModalProps extends VariantProps {\n /** modal body content */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Disable animations completely */\n disableAnimation?: boolean;\n /** modal footer */\n footer?: ReactNode;\n /** modal header */\n header?: ReactNode;\n /** open state (controlled) */\n isOpen: boolean;\n /** close event handler */\n onClose: () => void;\n /** The container element in which the overlay portal will be placed */\n portalContainer?: NextModalProps['portalContainer'];\n /** modal size */\n size?: VariantProps['size'];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * Modal component based on [NextUI Modal](https://nextui.org/docs/components/modal)\n */\nconst Modal = ({\n children = null,\n className = undefined,\n disableAnimation = false,\n footer = undefined,\n header = undefined,\n isOpen,\n onClose,\n portalContainer = undefined,\n size = 'md',\n testId = undefined,\n}: ModalProps) => {\n // classNames from slots\n const variants = modalVariants({ size });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <NextModal\n backdrop=\"opaque\"\n classNames={classNames}\n data-testid={testId}\n disableAnimation={disableAnimation}\n isOpen={isOpen}\n onClose={onClose}\n placement=\"center\"\n portalContainer={portalContainer}\n scrollBehavior=\"inside\"\n >\n <NextModalContent data-testid={testId ? `modal_${testId}` : 'modal'}>\n {() => (\n <>\n {header && <NextModalHeader>{header}</NextModalHeader>}\n <NextModalBody id=\"modal_body\">{children}</NextModalBody>\n {footer && <NextModalFooter>{footer}</NextModalFooter>}\n </>\n )}\n </NextModalContent>\n </NextModal>\n );\n};\n\nexport default Modal;\n","import Modal, { modalVariants } from './Modal';\n\nexport type { ModalProps } from './Modal';\n\nexport { Modal, modalVariants };\n\nexport default Modal;\n"]}
|
package/dist/index.cjs
CHANGED
|
@@ -14,11 +14,11 @@ var _chunk5HEZFVFGcjs = require('./chunk-5HEZFVFG.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkVG5A2YZEcjs = require('./chunk-VG5A2YZE.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
require('./chunk-
|
|
20
|
+
var _chunk37C63OKMcjs = require('./chunk-37C63OKM.cjs');
|
|
21
|
+
require('./chunk-BXPBP3PC.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -43,12 +43,12 @@ var _chunkU2JEMXXJcjs = require('./chunk-U2JEMXXJ.cjs');
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var _chunkRJAVAHBKcjs = require('./chunk-RJAVAHBK.cjs');
|
|
47
46
|
|
|
47
|
+
var _chunk7TIFKRWYcjs = require('./chunk-7TIFKRWY.cjs');
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
var
|
|
51
|
+
var _chunkRJAVAHBKcjs = require('./chunk-RJAVAHBK.cjs');
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
@@ -79,5 +79,5 @@ require('./chunk-DZUJEN5N.cjs');
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
exports.Accordion = _chunkVHEIRVBBcjs.Accordion_default; exports.Avatar = _chunkHVLEV6BGcjs.Avatar_default; exports.AvatarGroup = _chunkOP6ST4KBcjs.AvatarGroup_default; exports.Badge = _chunkU2JEMXXJcjs.Badge_default; exports.Breadcrumb = _chunkRJAVAHBKcjs.Breadcrumb_default; exports.Button = _chunk7TIFKRWYcjs.Button_default; exports.ButtonGroup = _chunk7TIFKRWYcjs.ButtonGroup_default; exports.Card = _chunkJPALSO5Ecjs.Card_default; exports.Json = _chunkXFUHF75Zcjs.Json_default; exports.Label = _chunkYTQJ6FZKcjs.Label_default; exports.Menu = _chunk5HEZFVFGcjs.Menu_default; exports.Modal =
|
|
82
|
+
exports.Accordion = _chunkVHEIRVBBcjs.Accordion_default; exports.Avatar = _chunkHVLEV6BGcjs.Avatar_default; exports.AvatarGroup = _chunkOP6ST4KBcjs.AvatarGroup_default; exports.Badge = _chunkU2JEMXXJcjs.Badge_default; exports.Breadcrumb = _chunkRJAVAHBKcjs.Breadcrumb_default; exports.Button = _chunk7TIFKRWYcjs.Button_default; exports.ButtonGroup = _chunk7TIFKRWYcjs.ButtonGroup_default; exports.Card = _chunkJPALSO5Ecjs.Card_default; exports.Json = _chunkXFUHF75Zcjs.Json_default; exports.Label = _chunkYTQJ6FZKcjs.Label_default; exports.Menu = _chunk5HEZFVFGcjs.Menu_default; exports.Modal = _chunkVG5A2YZEcjs.Modal_default; exports.Popover = _chunk37C63OKMcjs.Popover_default; exports.Tabs = _chunkZ5OFNBWIcjs.Tabs_default; exports.Tooltip = _chunkRMA57Q6Kcjs.Tooltip_default; exports.accordionVariants = _chunkVHEIRVBBcjs.accordionVariants; exports.breadcrumbVariants = _chunkRJAVAHBKcjs.breadcrumbVariants; exports.buttonVariants = _chunk7TIFKRWYcjs.buttonVariants; exports.cardVariants = _chunkJPALSO5Ecjs.cardVariants; exports.modalVariants = _chunkVG5A2YZEcjs.modalVariants; exports.tabsVariants = _chunkZ5OFNBWIcjs.tabsVariants; exports.tooltipPlacementOptions = _chunkRMA57Q6Kcjs.tooltipPlacementOptions; exports.useDebounce = _chunkMWNBYTRNcjs.useDebounce; exports.useLocalStorage = _chunkMWNBYTRNcjs.useLocalStorage;
|
|
83
83
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,izCAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/index.cjs"}
|
package/dist/index.d.cts
CHANGED
|
@@ -8,7 +8,7 @@ export { C as Card, a as CardProps, c as cardVariants } from './Card-9RmJ_S7F.cj
|
|
|
8
8
|
export { J as Json, a as JsonProps } from './Json-BbMeuEvE.cjs';
|
|
9
9
|
export { L as Label, a as LabelProps } from './Label-DSBpvzTK.cjs';
|
|
10
10
|
export { M as Menu, b as MenuItem, a as MenuProps, c as MenuSection } from './Menu-CG5mVVnv.cjs';
|
|
11
|
-
export { M as Modal, a as ModalProps, m as modalVariants } from './Modal-
|
|
11
|
+
export { M as Modal, a as ModalProps, m as modalVariants } from './Modal-CSOPzGYj.cjs';
|
|
12
12
|
export { _ as Popover, P as PopoverProps } from './Popover-By7zSUnV.cjs';
|
|
13
13
|
export { b as TabProps, T as Tabs, a as TabsProps, t as tabsVariants } from './Tabs-CfFvBC99.cjs';
|
|
14
14
|
export { T as Tooltip, a as TooltipProps, t as tooltipPlacementOptions } from './Tooltip-DS3pM5Cq.cjs';
|
|
@@ -23,4 +23,5 @@ import '@nextui-org/badge';
|
|
|
23
23
|
import '@nextui-org/button';
|
|
24
24
|
import '@nextui-org/system';
|
|
25
25
|
import '@nextui-org/chip';
|
|
26
|
+
import '@nextui-org/modal';
|
|
26
27
|
import '@nextui-org/popover';
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { C as Card, a as CardProps, c as cardVariants } from './Card-9RmJ_S7F.js
|
|
|
8
8
|
export { J as Json, a as JsonProps } from './Json-BbMeuEvE.js';
|
|
9
9
|
export { L as Label, a as LabelProps } from './Label-DSBpvzTK.js';
|
|
10
10
|
export { M as Menu, b as MenuItem, a as MenuProps, c as MenuSection } from './Menu-CG5mVVnv.js';
|
|
11
|
-
export { M as Modal, a as ModalProps, m as modalVariants } from './Modal-
|
|
11
|
+
export { M as Modal, a as ModalProps, m as modalVariants } from './Modal-CSOPzGYj.js';
|
|
12
12
|
export { _ as Popover, P as PopoverProps } from './Popover-By7zSUnV.js';
|
|
13
13
|
export { b as TabProps, T as Tabs, a as TabsProps, t as tabsVariants } from './Tabs-CfFvBC99.js';
|
|
14
14
|
export { T as Tooltip, a as TooltipProps, t as tooltipPlacementOptions } from './Tooltip-DS3pM5Cq.js';
|
|
@@ -23,4 +23,5 @@ import '@nextui-org/badge';
|
|
|
23
23
|
import '@nextui-org/button';
|
|
24
24
|
import '@nextui-org/system';
|
|
25
25
|
import '@nextui-org/chip';
|
|
26
|
+
import '@nextui-org/modal';
|
|
26
27
|
import '@nextui-org/popover';
|
package/dist/index.js
CHANGED
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
Modal_default,
|
|
16
16
|
modalVariants
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CQW46JPO.js";
|
|
18
18
|
import {
|
|
19
19
|
Popover_default
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-JDLU5AUA.js";
|
|
21
|
+
import "./chunk-BUWMLU3E.js";
|
|
22
22
|
import {
|
|
23
23
|
Tabs_default,
|
|
24
24
|
tabsVariants
|
|
@@ -40,15 +40,15 @@ import {
|
|
|
40
40
|
import {
|
|
41
41
|
Badge_default
|
|
42
42
|
} from "./chunk-QTXKWCDV.js";
|
|
43
|
-
import {
|
|
44
|
-
Breadcrumb_default,
|
|
45
|
-
breadcrumbVariants
|
|
46
|
-
} from "./chunk-RMLPCTDU.js";
|
|
47
43
|
import {
|
|
48
44
|
ButtonGroup_default,
|
|
49
45
|
Button_default,
|
|
50
46
|
buttonVariants
|
|
51
47
|
} from "./chunk-ODLZQXBE.js";
|
|
48
|
+
import {
|
|
49
|
+
Breadcrumb_default,
|
|
50
|
+
breadcrumbVariants
|
|
51
|
+
} from "./chunk-RMLPCTDU.js";
|
|
52
52
|
import {
|
|
53
53
|
Card_default,
|
|
54
54
|
cardVariants
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fuf-stack/pixels",
|
|
3
3
|
"description": "fuf core react component library",
|
|
4
4
|
"author": "Hannes Tiede",
|
|
5
|
-
"version": "0.29.
|
|
5
|
+
"version": "0.29.3",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.cjs",
|
|
8
8
|
"module": "./dist/index.js",
|
|
@@ -121,22 +121,22 @@
|
|
|
121
121
|
},
|
|
122
122
|
"dependencies": {
|
|
123
123
|
"@nextui-org/avatar": "2.2.4",
|
|
124
|
-
"@nextui-org/accordion": "2.2.
|
|
124
|
+
"@nextui-org/accordion": "2.2.5",
|
|
125
125
|
"@nextui-org/badge": "2.2.3",
|
|
126
126
|
"@nextui-org/breadcrumbs": "2.2.4",
|
|
127
|
-
"@nextui-org/button": "2.2.
|
|
128
|
-
"@nextui-org/card": "2.2.
|
|
127
|
+
"@nextui-org/button": "2.2.7",
|
|
128
|
+
"@nextui-org/card": "2.2.7",
|
|
129
129
|
"@nextui-org/chip": "2.2.4",
|
|
130
130
|
"@nextui-org/divider": "2.2.4",
|
|
131
|
-
"@nextui-org/dropdown": "2.3.
|
|
132
|
-
"@nextui-org/modal": "2.2.
|
|
133
|
-
"@nextui-org/popover": "2.3.
|
|
131
|
+
"@nextui-org/dropdown": "2.3.7",
|
|
132
|
+
"@nextui-org/modal": "2.2.5",
|
|
133
|
+
"@nextui-org/popover": "2.3.7",
|
|
134
134
|
"@nextui-org/scroll-shadow": "2.3.3",
|
|
135
135
|
"@nextui-org/system": "2.4.4",
|
|
136
136
|
"@nextui-org/theme": "2.4.3",
|
|
137
|
-
"@nextui-org/tabs": "2.2.
|
|
138
|
-
"@nextui-org/tooltip": "2.2.
|
|
139
|
-
"framer-motion": "11.
|
|
137
|
+
"@nextui-org/tabs": "2.2.5",
|
|
138
|
+
"@nextui-org/tooltip": "2.2.5",
|
|
139
|
+
"framer-motion": "11.14.4",
|
|
140
140
|
"next-themes": "0.4.4",
|
|
141
141
|
"react-icons": "5.4.0",
|
|
142
142
|
"@fuf-stack/pixel-utils": "0.4.2"
|
|
@@ -149,8 +149,8 @@
|
|
|
149
149
|
"react": "19.0.0",
|
|
150
150
|
"react-dom": "19.0.0",
|
|
151
151
|
"@repo/storybook-config": "0.0.1",
|
|
152
|
-
"@repo/tsup-config": "0.0.1",
|
|
153
152
|
"@repo/tailwind-config": "0.0.1",
|
|
153
|
+
"@repo/tsup-config": "0.0.1",
|
|
154
154
|
"@repo/vite-config": "0.0.1"
|
|
155
155
|
},
|
|
156
156
|
"scripts": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Modal/Modal.tsx","../src/Modal/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport {\n Modal as NextModal,\n ModalBody as NextModalBody,\n ModalContent as NextModalContent,\n ModalFooter as NextModalFooter,\n ModalHeader as NextModalHeader,\n} from '@nextui-org/modal';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// modal variants\nexport const modalVariants = tv({\n slots: {\n backdrop: '',\n base: '',\n body: '',\n closeButton: '',\n footer: '',\n header: '',\n wrapper: '',\n },\n variants: {\n size: {\n sm: { base: 'max-w-sm' },\n md: { base: 'max-w-md' },\n lg: { base: 'max-w-lg' },\n xl: { base: 'max-w-5xl' },\n full: { base: 'h-[80dvh] max-w-full' },\n },\n },\n});\n\ntype VariantProps = TVProps<typeof modalVariants>;\ntype ClassName = TVClassName<typeof modalVariants>;\n\nexport interface ModalProps extends VariantProps {\n /** modal body content */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** modal footer */\n footer?: ReactNode;\n /** modal header */\n header?: ReactNode;\n /** open state (controlled) */\n isOpen: boolean;\n /** close event handler */\n onClose: () => void;\n /** modal size */\n size?: VariantProps['size'];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * Modal component based on [NextUI Modal](https://nextui.org/docs/components/modal)\n */\nconst Modal = ({\n children = null,\n className = undefined,\n footer = undefined,\n header = undefined,\n isOpen,\n onClose,\n size = 'md',\n testId = undefined,\n}: ModalProps) => {\n // classNames from slots\n const variants = modalVariants({ size });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <NextModal\n backdrop=\"opaque\"\n classNames={classNames}\n data-testid={testId}\n isOpen={isOpen}\n onClose={onClose}\n placement=\"center\"\n scrollBehavior=\"inside\"\n >\n <NextModalContent data-testid={testId ? `modal_${testId}` : 'modal'}>\n {() => (\n <>\n {header && <NextModalHeader>{header}</NextModalHeader>}\n <NextModalBody id=\"modal_body\">{children}</NextModalBody>\n {footer && <NextModalFooter>{footer}</NextModalFooter>}\n </>\n )}\n </NextModalContent>\n </NextModal>\n );\n};\n\nexport default Modal;\n","import Modal, { modalVariants } from './Modal';\n\nexport type { ModalProps } from './Modal';\n\nexport { Modal, modalVariants };\n\nexport default Modal;\n"],"mappings":";AAGA;AAAA,EACE,SAAS;AAAA,EACT,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,eAAe;AAAA,OACV;AAEP,SAAS,IAAI,4BAA4B;AA2E/B,mBACa,KADb;AAxEH,IAAM,gBAAgB,GAAG;AAAA,EAC9B,OAAO;AAAA,IACL,UAAU;AAAA,IACV,MAAM;AAAA,IACN,MAAM;AAAA,IACN,aAAa;AAAA,IACb,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI,EAAE,MAAM,WAAW;AAAA,MACvB,IAAI,EAAE,MAAM,WAAW;AAAA,MACvB,IAAI,EAAE,MAAM,WAAW;AAAA,MACvB,IAAI,EAAE,MAAM,YAAY;AAAA,MACxB,MAAM,EAAE,MAAM,uBAAuB;AAAA,IACvC;AAAA,EACF;AACF,CAAC;AA2BD,IAAM,QAAQ,CAAC;AAAA,EACb,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,SAAS;AAAA,EACT;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP,SAAS;AACX,MAAkB;AAEhB,QAAM,WAAW,cAAc,EAAE,KAAK,CAAC;AACvC,QAAM,aAAa,qBAAqB,UAAU,WAAW,MAAM;AAEnE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAS;AAAA,MACT;AAAA,MACA,eAAa;AAAA,MACb;AAAA,MACA;AAAA,MACA,WAAU;AAAA,MACV,gBAAe;AAAA,MAEf,8BAAC,oBAAiB,eAAa,SAAS,SAAS,MAAM,KAAK,SACzD,gBACC,iCACG;AAAA,kBAAU,oBAAC,mBAAiB,kBAAO;AAAA,QACpC,oBAAC,iBAAc,IAAG,cAAc,UAAS;AAAA,QACxC,UAAU,oBAAC,mBAAiB,kBAAO;AAAA,SACtC,GAEJ;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,gBAAQ;;;AC3Ff,IAAOA,iBAAQ;","names":["Modal_default"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-VAJODF7Z.cjs","../src/Modal/Modal.tsx","../src/Modal/index.ts"],"names":[],"mappings":"AAAA;ACGA;AACE;AACA;AACA;AACA;AACA;AAAe,0CACV;AAEP,oDAAyC;AA2E/B,+CAAA;AAxEH,IAAM,cAAA,EAAgB,4BAAA;AAAG,EAC9B,KAAA,EAAO;AAAA,IACL,QAAA,EAAU,EAAA;AAAA,IACV,IAAA,EAAM,EAAA;AAAA,IACN,IAAA,EAAM,EAAA;AAAA,IACN,WAAA,EAAa,EAAA;AAAA,IACb,MAAA,EAAQ,EAAA;AAAA,IACR,MAAA,EAAQ,EAAA;AAAA,IACR,OAAA,EAAS;AAAA,EACX,CAAA;AAAA,EACA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,MACJ,EAAA,EAAI,EAAE,IAAA,EAAM,WAAW,CAAA;AAAA,MACvB,EAAA,EAAI,EAAE,IAAA,EAAM,WAAW,CAAA;AAAA,MACvB,EAAA,EAAI,EAAE,IAAA,EAAM,WAAW,CAAA;AAAA,MACvB,EAAA,EAAI,EAAE,IAAA,EAAM,YAAY,CAAA;AAAA,MACxB,IAAA,EAAM,EAAE,IAAA,EAAM,uBAAuB;AAAA,IACvC;AAAA,EACF;AACF,CAAC,CAAA;AA2BD,IAAM,MAAA,EAAQ,CAAC;AAAA,EACb,SAAA,EAAW,IAAA;AAAA,EACX,UAAA,EAAY,KAAA,CAAA;AAAA,EACZ,OAAA,EAAS,KAAA,CAAA;AAAA,EACT,OAAA,EAAS,KAAA,CAAA;AAAA,EACT,MAAA;AAAA,EACA,OAAA;AAAA,EACA,KAAA,EAAO,IAAA;AAAA,EACP,OAAA,EAAS,KAAA;AACX,CAAA,EAAA,GAAkB;AAEhB,EAAA,MAAM,SAAA,EAAW,aAAA,CAAc,EAAE,KAAK,CAAC,CAAA;AACvC,EAAA,MAAM,WAAA,EAAa,8CAAA,QAAqB,EAAU,SAAA,EAAW,MAAM,CAAA;AAEnE,EAAA,uBACE,6BAAA;AAAA,IAAC,YAAA;AAAA,IAAA;AAAA,MACC,QAAA,EAAS,QAAA;AAAA,MACT,UAAA;AAAA,MACA,aAAA,EAAa,MAAA;AAAA,MACb,MAAA;AAAA,MACA,OAAA;AAAA,MACA,SAAA,EAAU,QAAA;AAAA,MACV,cAAA,EAAe,QAAA;AAAA,MAEf,QAAA,kBAAA,6BAAA,mBAAC,EAAA,EAAiB,aAAA,EAAa,OAAA,EAAS,CAAA,MAAA,EAAS,MAAM,CAAA,EAAA;AAGb,QAAA;AACK,wBAAA;AACL,QAAA;AAG1C,MAAA;AAAA,IAAA;AACF,EAAA;AAEJ;AAEe;ADpCiF;AACA;AExDjF;AF0DiF;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-VAJODF7Z.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport {\n Modal as NextModal,\n ModalBody as NextModalBody,\n ModalContent as NextModalContent,\n ModalFooter as NextModalFooter,\n ModalHeader as NextModalHeader,\n} from '@nextui-org/modal';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// modal variants\nexport const modalVariants = tv({\n slots: {\n backdrop: '',\n base: '',\n body: '',\n closeButton: '',\n footer: '',\n header: '',\n wrapper: '',\n },\n variants: {\n size: {\n sm: { base: 'max-w-sm' },\n md: { base: 'max-w-md' },\n lg: { base: 'max-w-lg' },\n xl: { base: 'max-w-5xl' },\n full: { base: 'h-[80dvh] max-w-full' },\n },\n },\n});\n\ntype VariantProps = TVProps<typeof modalVariants>;\ntype ClassName = TVClassName<typeof modalVariants>;\n\nexport interface ModalProps extends VariantProps {\n /** modal body content */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** modal footer */\n footer?: ReactNode;\n /** modal header */\n header?: ReactNode;\n /** open state (controlled) */\n isOpen: boolean;\n /** close event handler */\n onClose: () => void;\n /** modal size */\n size?: VariantProps['size'];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * Modal component based on [NextUI Modal](https://nextui.org/docs/components/modal)\n */\nconst Modal = ({\n children = null,\n className = undefined,\n footer = undefined,\n header = undefined,\n isOpen,\n onClose,\n size = 'md',\n testId = undefined,\n}: ModalProps) => {\n // classNames from slots\n const variants = modalVariants({ size });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <NextModal\n backdrop=\"opaque\"\n classNames={classNames}\n data-testid={testId}\n isOpen={isOpen}\n onClose={onClose}\n placement=\"center\"\n scrollBehavior=\"inside\"\n >\n <NextModalContent data-testid={testId ? `modal_${testId}` : 'modal'}>\n {() => (\n <>\n {header && <NextModalHeader>{header}</NextModalHeader>}\n <NextModalBody id=\"modal_body\">{children}</NextModalBody>\n {footer && <NextModalFooter>{footer}</NextModalFooter>}\n </>\n )}\n </NextModalContent>\n </NextModal>\n );\n};\n\nexport default Modal;\n","import Modal, { modalVariants } from './Modal';\n\nexport type { ModalProps } from './Modal';\n\nexport { Modal, modalVariants };\n\nexport default Modal;\n"]}
|
|
File without changes
|