@fuf-stack/pixels 0.31.1 → 0.31.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/Drawer/index.cjs +4 -80
- package/dist/Drawer/index.cjs.map +1 -1
- package/dist/Drawer/index.d.cts +10 -140
- package/dist/Drawer/index.d.ts +10 -140
- package/dist/Drawer/index.js +10 -86
- package/dist/Drawer/index.js.map +1 -1
- package/dist/Drawer-DvEDC3UK.d.cts +142 -0
- package/dist/Drawer-DvEDC3UK.d.ts +142 -0
- package/dist/Label/index.d.cts +2 -2
- package/dist/Label/index.d.ts +2 -2
- package/dist/chunk-7ZJ6LE2P.cjs +96 -0
- package/dist/chunk-7ZJ6LE2P.cjs.map +1 -0
- package/dist/chunk-OQIMB45E.js +96 -0
- package/dist/chunk-OQIMB45E.js.map +1 -0
- package/dist/index.cjs +18 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +17 -3
- package/package.json +4 -4
- package/dist/{Label-DSBpvzTK.d.cts → Label--qRYiJs-.d.cts} +5 -5
- package/dist/{Label-DSBpvzTK.d.ts → Label--qRYiJs-.d.ts} +5 -5
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
3
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
4
|
+
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
5
|
+
import { DrawerProps as DrawerProps$1 } from '@nextui-org/drawer';
|
|
6
|
+
import { ReactNode } from 'react';
|
|
7
|
+
|
|
8
|
+
declare const drawerVariants: tailwind_variants.TVReturnType<{
|
|
9
|
+
[key: string]: {
|
|
10
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
11
|
+
base?: tailwind_variants.ClassValue;
|
|
12
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
13
|
+
body?: tailwind_variants.ClassValue;
|
|
14
|
+
footer?: tailwind_variants.ClassValue;
|
|
15
|
+
header?: tailwind_variants.ClassValue;
|
|
16
|
+
backdrop?: tailwind_variants.ClassValue;
|
|
17
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
} | {
|
|
21
|
+
[x: string]: {
|
|
22
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
23
|
+
base?: tailwind_variants.ClassValue;
|
|
24
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
25
|
+
body?: tailwind_variants.ClassValue;
|
|
26
|
+
footer?: tailwind_variants.ClassValue;
|
|
27
|
+
header?: tailwind_variants.ClassValue;
|
|
28
|
+
backdrop?: tailwind_variants.ClassValue;
|
|
29
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
} | {}, {
|
|
33
|
+
wrapper: string;
|
|
34
|
+
base: string;
|
|
35
|
+
backdrop: string;
|
|
36
|
+
header: string;
|
|
37
|
+
body: string;
|
|
38
|
+
footer: string;
|
|
39
|
+
closeButton: string;
|
|
40
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
|
|
41
|
+
[key: string]: {
|
|
42
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
43
|
+
base?: tailwind_variants.ClassValue;
|
|
44
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
45
|
+
body?: tailwind_variants.ClassValue;
|
|
46
|
+
footer?: tailwind_variants.ClassValue;
|
|
47
|
+
header?: tailwind_variants.ClassValue;
|
|
48
|
+
backdrop?: tailwind_variants.ClassValue;
|
|
49
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
} | {}>, {
|
|
53
|
+
[key: string]: {
|
|
54
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
55
|
+
base?: tailwind_variants.ClassValue;
|
|
56
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
57
|
+
body?: tailwind_variants.ClassValue;
|
|
58
|
+
footer?: tailwind_variants.ClassValue;
|
|
59
|
+
header?: tailwind_variants.ClassValue;
|
|
60
|
+
backdrop?: tailwind_variants.ClassValue;
|
|
61
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
} | {}, {
|
|
65
|
+
wrapper: string;
|
|
66
|
+
base: string;
|
|
67
|
+
backdrop: string;
|
|
68
|
+
header: string;
|
|
69
|
+
body: string;
|
|
70
|
+
footer: string;
|
|
71
|
+
closeButton: string;
|
|
72
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
73
|
+
wrapper: string;
|
|
74
|
+
base: string;
|
|
75
|
+
backdrop: string;
|
|
76
|
+
header: string;
|
|
77
|
+
body: string;
|
|
78
|
+
footer: string;
|
|
79
|
+
closeButton: string;
|
|
80
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
|
|
81
|
+
[key: string]: {
|
|
82
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
83
|
+
base?: tailwind_variants.ClassValue;
|
|
84
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
85
|
+
body?: tailwind_variants.ClassValue;
|
|
86
|
+
footer?: tailwind_variants.ClassValue;
|
|
87
|
+
header?: tailwind_variants.ClassValue;
|
|
88
|
+
backdrop?: tailwind_variants.ClassValue;
|
|
89
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
93
|
+
declare const drawerSizes: readonly ["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "full"];
|
|
94
|
+
type DrawerSizes = (typeof drawerSizes)[number];
|
|
95
|
+
declare const drawerRadii: readonly ["none", "sm", "md", "lg"];
|
|
96
|
+
type DrawerRadius = (typeof drawerRadii)[number];
|
|
97
|
+
declare const drawerBackdrops: readonly ["opaque", "transparent", "blur"];
|
|
98
|
+
type DrawerBackdrop = (typeof drawerBackdrops)[number];
|
|
99
|
+
declare const drawerPlacements: readonly ["left", "right", "top", "bottom"];
|
|
100
|
+
type DrawerPlacement = (typeof drawerPlacements)[number];
|
|
101
|
+
type VariantProps = TVProps<typeof drawerVariants>;
|
|
102
|
+
type ClassName = TVClassName<typeof drawerVariants>;
|
|
103
|
+
interface DrawerProps extends VariantProps {
|
|
104
|
+
/** The backdrop style of the Drawer. */
|
|
105
|
+
backdrop?: DrawerBackdrop;
|
|
106
|
+
/** Drawer body content */
|
|
107
|
+
children?: ReactNode;
|
|
108
|
+
/** CSS class name */
|
|
109
|
+
className?: ClassName;
|
|
110
|
+
/** Custom close button to display on top right corner. */
|
|
111
|
+
closeButton?: ReactNode;
|
|
112
|
+
/** Footer of the Drawer. */
|
|
113
|
+
footer?: ReactNode;
|
|
114
|
+
/** Header of the Drawer. */
|
|
115
|
+
header?: ReactNode;
|
|
116
|
+
/** Whether to hide the drawer close button. */
|
|
117
|
+
hideCloseButton?: boolean;
|
|
118
|
+
/** Whether the drawer is open by default (controlled). */
|
|
119
|
+
isOpen?: boolean;
|
|
120
|
+
/** Whether the drawer can be closed by clicking on the overlay or pressing the Esc key. */
|
|
121
|
+
isDismissable?: boolean;
|
|
122
|
+
/** Handler that is called when the drawer is closed. */
|
|
123
|
+
onClose?: () => void;
|
|
124
|
+
/** Handler that is called when the drawer's open state changes. */
|
|
125
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
126
|
+
/** The drawer position. */
|
|
127
|
+
placement?: DrawerPlacement | undefined;
|
|
128
|
+
/** The container element in which the overlay portal will be placed */
|
|
129
|
+
portalContainer?: DrawerProps$1['portalContainer'];
|
|
130
|
+
/** The drawer border radius. */
|
|
131
|
+
radius?: DrawerRadius | undefined;
|
|
132
|
+
/** The drawer size. */
|
|
133
|
+
size?: DrawerSizes | undefined;
|
|
134
|
+
/** HTML data-testid attribute used in e2e tests */
|
|
135
|
+
testId?: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Drawer component based on [NextUI Drawer](https://nextui.org/docs/components/drawer)
|
|
139
|
+
*/
|
|
140
|
+
declare const Drawer: ({ backdrop, children, className, closeButton, footer, header, hideCloseButton, isOpen, isDismissable, onClose, onOpenChange, placement, portalContainer, radius, size, testId, }: DrawerProps) => react_jsx_runtime.JSX.Element;
|
|
141
|
+
|
|
142
|
+
export { Drawer as D, drawerPlacements as a, drawerRadii as b, drawerSizes as c, drawerBackdrops as d, drawerVariants as e, type DrawerProps as f };
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
3
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
4
|
+
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
5
|
+
import { DrawerProps as DrawerProps$1 } from '@nextui-org/drawer';
|
|
6
|
+
import { ReactNode } from 'react';
|
|
7
|
+
|
|
8
|
+
declare const drawerVariants: tailwind_variants.TVReturnType<{
|
|
9
|
+
[key: string]: {
|
|
10
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
11
|
+
base?: tailwind_variants.ClassValue;
|
|
12
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
13
|
+
body?: tailwind_variants.ClassValue;
|
|
14
|
+
footer?: tailwind_variants.ClassValue;
|
|
15
|
+
header?: tailwind_variants.ClassValue;
|
|
16
|
+
backdrop?: tailwind_variants.ClassValue;
|
|
17
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
} | {
|
|
21
|
+
[x: string]: {
|
|
22
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
23
|
+
base?: tailwind_variants.ClassValue;
|
|
24
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
25
|
+
body?: tailwind_variants.ClassValue;
|
|
26
|
+
footer?: tailwind_variants.ClassValue;
|
|
27
|
+
header?: tailwind_variants.ClassValue;
|
|
28
|
+
backdrop?: tailwind_variants.ClassValue;
|
|
29
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
} | {}, {
|
|
33
|
+
wrapper: string;
|
|
34
|
+
base: string;
|
|
35
|
+
backdrop: string;
|
|
36
|
+
header: string;
|
|
37
|
+
body: string;
|
|
38
|
+
footer: string;
|
|
39
|
+
closeButton: string;
|
|
40
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
|
|
41
|
+
[key: string]: {
|
|
42
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
43
|
+
base?: tailwind_variants.ClassValue;
|
|
44
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
45
|
+
body?: tailwind_variants.ClassValue;
|
|
46
|
+
footer?: tailwind_variants.ClassValue;
|
|
47
|
+
header?: tailwind_variants.ClassValue;
|
|
48
|
+
backdrop?: tailwind_variants.ClassValue;
|
|
49
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
} | {}>, {
|
|
53
|
+
[key: string]: {
|
|
54
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
55
|
+
base?: tailwind_variants.ClassValue;
|
|
56
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
57
|
+
body?: tailwind_variants.ClassValue;
|
|
58
|
+
footer?: tailwind_variants.ClassValue;
|
|
59
|
+
header?: tailwind_variants.ClassValue;
|
|
60
|
+
backdrop?: tailwind_variants.ClassValue;
|
|
61
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
} | {}, {
|
|
65
|
+
wrapper: string;
|
|
66
|
+
base: string;
|
|
67
|
+
backdrop: string;
|
|
68
|
+
header: string;
|
|
69
|
+
body: string;
|
|
70
|
+
footer: string;
|
|
71
|
+
closeButton: string;
|
|
72
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
73
|
+
wrapper: string;
|
|
74
|
+
base: string;
|
|
75
|
+
backdrop: string;
|
|
76
|
+
header: string;
|
|
77
|
+
body: string;
|
|
78
|
+
footer: string;
|
|
79
|
+
closeButton: string;
|
|
80
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
|
|
81
|
+
[key: string]: {
|
|
82
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
83
|
+
base?: tailwind_variants.ClassValue;
|
|
84
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
85
|
+
body?: tailwind_variants.ClassValue;
|
|
86
|
+
footer?: tailwind_variants.ClassValue;
|
|
87
|
+
header?: tailwind_variants.ClassValue;
|
|
88
|
+
backdrop?: tailwind_variants.ClassValue;
|
|
89
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
93
|
+
declare const drawerSizes: readonly ["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "full"];
|
|
94
|
+
type DrawerSizes = (typeof drawerSizes)[number];
|
|
95
|
+
declare const drawerRadii: readonly ["none", "sm", "md", "lg"];
|
|
96
|
+
type DrawerRadius = (typeof drawerRadii)[number];
|
|
97
|
+
declare const drawerBackdrops: readonly ["opaque", "transparent", "blur"];
|
|
98
|
+
type DrawerBackdrop = (typeof drawerBackdrops)[number];
|
|
99
|
+
declare const drawerPlacements: readonly ["left", "right", "top", "bottom"];
|
|
100
|
+
type DrawerPlacement = (typeof drawerPlacements)[number];
|
|
101
|
+
type VariantProps = TVProps<typeof drawerVariants>;
|
|
102
|
+
type ClassName = TVClassName<typeof drawerVariants>;
|
|
103
|
+
interface DrawerProps extends VariantProps {
|
|
104
|
+
/** The backdrop style of the Drawer. */
|
|
105
|
+
backdrop?: DrawerBackdrop;
|
|
106
|
+
/** Drawer body content */
|
|
107
|
+
children?: ReactNode;
|
|
108
|
+
/** CSS class name */
|
|
109
|
+
className?: ClassName;
|
|
110
|
+
/** Custom close button to display on top right corner. */
|
|
111
|
+
closeButton?: ReactNode;
|
|
112
|
+
/** Footer of the Drawer. */
|
|
113
|
+
footer?: ReactNode;
|
|
114
|
+
/** Header of the Drawer. */
|
|
115
|
+
header?: ReactNode;
|
|
116
|
+
/** Whether to hide the drawer close button. */
|
|
117
|
+
hideCloseButton?: boolean;
|
|
118
|
+
/** Whether the drawer is open by default (controlled). */
|
|
119
|
+
isOpen?: boolean;
|
|
120
|
+
/** Whether the drawer can be closed by clicking on the overlay or pressing the Esc key. */
|
|
121
|
+
isDismissable?: boolean;
|
|
122
|
+
/** Handler that is called when the drawer is closed. */
|
|
123
|
+
onClose?: () => void;
|
|
124
|
+
/** Handler that is called when the drawer's open state changes. */
|
|
125
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
126
|
+
/** The drawer position. */
|
|
127
|
+
placement?: DrawerPlacement | undefined;
|
|
128
|
+
/** The container element in which the overlay portal will be placed */
|
|
129
|
+
portalContainer?: DrawerProps$1['portalContainer'];
|
|
130
|
+
/** The drawer border radius. */
|
|
131
|
+
radius?: DrawerRadius | undefined;
|
|
132
|
+
/** The drawer size. */
|
|
133
|
+
size?: DrawerSizes | undefined;
|
|
134
|
+
/** HTML data-testid attribute used in e2e tests */
|
|
135
|
+
testId?: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Drawer component based on [NextUI Drawer](https://nextui.org/docs/components/drawer)
|
|
139
|
+
*/
|
|
140
|
+
declare const Drawer: ({ backdrop, children, className, closeButton, footer, header, hideCloseButton, isOpen, isDismissable, onClose, onOpenChange, placement, portalContainer, radius, size, testId, }: DrawerProps) => react_jsx_runtime.JSX.Element;
|
|
141
|
+
|
|
142
|
+
export { Drawer as D, drawerPlacements as a, drawerRadii as b, drawerSizes as c, drawerBackdrops as d, drawerVariants as e, type DrawerProps as f };
|
package/dist/Label/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as Label } from '../Label
|
|
2
|
-
export { a as LabelProps } from '../Label
|
|
1
|
+
import { L as Label } from '../Label--qRYiJs-.cjs';
|
|
2
|
+
export { a as LabelProps } from '../Label--qRYiJs-.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants/dist/config.js';
|
|
5
5
|
import 'tailwind-variants';
|
package/dist/Label/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as Label } from '../Label
|
|
2
|
-
export { a as LabelProps } from '../Label
|
|
1
|
+
import { L as Label } from '../Label--qRYiJs-.js';
|
|
2
|
+
export { a as LabelProps } from '../Label--qRYiJs-.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants/dist/config.js';
|
|
5
5
|
import 'tailwind-variants';
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/Drawer/Drawer.tsx
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _drawer = require('@nextui-org/drawer');
|
|
9
|
+
var _pixelutils = require('@fuf-stack/pixel-utils');
|
|
10
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
11
|
+
var drawerVariants = _pixelutils.tv.call(void 0, {
|
|
12
|
+
slots: {
|
|
13
|
+
wrapper: "",
|
|
14
|
+
base: "",
|
|
15
|
+
backdrop: "",
|
|
16
|
+
header: "",
|
|
17
|
+
body: "",
|
|
18
|
+
footer: "",
|
|
19
|
+
closeButton: ""
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
var drawerSizes = [
|
|
23
|
+
"xs",
|
|
24
|
+
"sm",
|
|
25
|
+
"md",
|
|
26
|
+
"lg",
|
|
27
|
+
"xl",
|
|
28
|
+
"2xl",
|
|
29
|
+
"3xl",
|
|
30
|
+
"4xl",
|
|
31
|
+
"5xl",
|
|
32
|
+
"full"
|
|
33
|
+
];
|
|
34
|
+
var drawerRadii = ["none", "sm", "md", "lg"];
|
|
35
|
+
var drawerBackdrops = ["opaque", "transparent", "blur"];
|
|
36
|
+
var drawerPlacements = ["left", "right", "top", "bottom"];
|
|
37
|
+
var Drawer = ({
|
|
38
|
+
backdrop = "opaque",
|
|
39
|
+
children = null,
|
|
40
|
+
className = void 0,
|
|
41
|
+
closeButton = void 0,
|
|
42
|
+
footer = void 0,
|
|
43
|
+
header = void 0,
|
|
44
|
+
hideCloseButton = false,
|
|
45
|
+
isOpen = void 0,
|
|
46
|
+
isDismissable = true,
|
|
47
|
+
onClose = void 0,
|
|
48
|
+
onOpenChange = void 0,
|
|
49
|
+
placement = "right",
|
|
50
|
+
portalContainer = void 0,
|
|
51
|
+
radius = "lg",
|
|
52
|
+
size = "md",
|
|
53
|
+
testId = void 0
|
|
54
|
+
}) => {
|
|
55
|
+
const variants = drawerVariants();
|
|
56
|
+
const classNames = _pixelutils.variantsToClassNames.call(void 0, variants, className, "base");
|
|
57
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
58
|
+
_drawer.Drawer,
|
|
59
|
+
{
|
|
60
|
+
backdrop,
|
|
61
|
+
classNames,
|
|
62
|
+
closeButton,
|
|
63
|
+
"data-testid": testId,
|
|
64
|
+
hideCloseButton,
|
|
65
|
+
isDismissable,
|
|
66
|
+
isOpen,
|
|
67
|
+
onClose,
|
|
68
|
+
onOpenChange,
|
|
69
|
+
placement,
|
|
70
|
+
portalContainer,
|
|
71
|
+
radius,
|
|
72
|
+
scrollBehavior: "inside",
|
|
73
|
+
size,
|
|
74
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _drawer.DrawerContent, { "data-testid": testId ? `drawer_${testId}` : "drawer", children: () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
75
|
+
header && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _drawer.DrawerHeader, { children: header }),
|
|
76
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _drawer.DrawerBody, { id: "drawer_body", children }),
|
|
77
|
+
footer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _drawer.DrawerFooter, { children: footer })
|
|
78
|
+
] }) })
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
};
|
|
82
|
+
var Drawer_default = Drawer;
|
|
83
|
+
|
|
84
|
+
// src/Drawer/index.ts
|
|
85
|
+
var Drawer_default2 = Drawer_default;
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
exports.drawerVariants = drawerVariants; exports.drawerSizes = drawerSizes; exports.drawerRadii = drawerRadii; exports.drawerBackdrops = drawerBackdrops; exports.drawerPlacements = drawerPlacements; exports.Drawer_default = Drawer_default; exports.Drawer_default2 = Drawer_default2;
|
|
96
|
+
//# sourceMappingURL=chunk-7ZJ6LE2P.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-7ZJ6LE2P.cjs","../src/Drawer/Drawer.tsx","../src/Drawer/index.ts"],"names":[],"mappings":"AAAA;ACIA;AACE;AACA;AACA;AACA;AACA;AAAgB,4CACX;AAEP,oDAAyC;AAwH/B,+CAAA;AArHH,IAAM,eAAA,EAAiB,4BAAA;AAAG,EAC/B,KAAA,EAAO;AAAA,IACL,OAAA,EAAS,EAAA;AAAA,IACT,IAAA,EAAM,EAAA;AAAA,IACN,QAAA,EAAU,EAAA;AAAA,IACV,MAAA,EAAQ,EAAA;AAAA,IACR,IAAA,EAAM,EAAA;AAAA,IACN,MAAA,EAAQ,EAAA;AAAA,IACR,WAAA,EAAa;AAAA,EACf;AACF,CAAC,CAAA;AAEM,IAAM,YAAA,EAAc;AAAA,EACzB,IAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAA;AAGO,IAAM,YAAA,EAAc,CAAC,MAAA,EAAQ,IAAA,EAAM,IAAA,EAAM,IAAI,CAAA;AAG7C,IAAM,gBAAA,EAAkB,CAAC,QAAA,EAAU,aAAA,EAAe,MAAM,CAAA;AAGxD,IAAM,iBAAA,EAAmB,CAAC,MAAA,EAAQ,OAAA,EAAS,KAAA,EAAO,QAAQ,CAAA;AA4CjE,IAAM,OAAA,EAAS,CAAC;AAAA,EACd,SAAA,EAAW,QAAA;AAAA,EACX,SAAA,EAAW,IAAA;AAAA,EACX,UAAA,EAAY,KAAA,CAAA;AAAA,EACZ,YAAA,EAAc,KAAA,CAAA;AAAA,EACd,OAAA,EAAS,KAAA,CAAA;AAAA,EACT,OAAA,EAAS,KAAA,CAAA;AAAA,EACT,gBAAA,EAAkB,KAAA;AAAA,EAClB,OAAA,EAAS,KAAA,CAAA;AAAA,EACT,cAAA,EAAgB,IAAA;AAAA,EAChB,QAAA,EAAU,KAAA,CAAA;AAAA,EACV,aAAA,EAAe,KAAA,CAAA;AAAA,EACf,UAAA,EAAY,OAAA;AAAA,EACZ,gBAAA,EAAkB,KAAA,CAAA;AAAA,EAClB,OAAA,EAAS,IAAA;AAAA,EACT,KAAA,EAAO,IAAA;AAAA,EACP,OAAA,EAAS,KAAA;AACX,CAAA,EAAA,GAAmB;AAEjB,EAAA,MAAM,SAAA,EAAW,cAAA,CAAe,CAAA;AAChC,EAAA,MAAM,WAAA,EAAa,8CAAA,QAAqB,EAAU,SAAA,EAAW,MAAM,CAAA;AAEnE,EAAA,uBACE,6BAAA;AAAA,IAAC,cAAA;AAAA,IAAA;AAAA,MACC,QAAA;AAAA,MACA,UAAA;AAAA,MACA,WAAA;AAAA,MACA,aAAA,EAAa,MAAA;AAAA,MACb,eAAA;AAAA,MACA,aAAA;AAAA,MACA,MAAA;AAAA,MACA,OAAA;AAAA,MACA,YAAA;AAAA,MACA,SAAA;AAAA,MACA,eAAA;AAAA,MACA,MAAA;AAAA,MACA,cAAA,EAAe,QAAA;AAAA,MACf,IAAA;AAAA,MAEA,QAAA,kBAAA,6BAAA,qBAAC,EAAA,EAAkB,aAAA,EAAa,OAAA,EAAS,CAAA,OAAA,EAAU,MAAM,CAAA,EAAA;AAGd,QAAA;AACM,wBAAA;AACN,QAAA;AAG3C,MAAA;AAAA,IAAA;AACF,EAAA;AAEJ;AAEe;AD7DmF;AACA;AEhEnF;AFkEmF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-7ZJ6LE2P.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { DrawerProps as NextDrawerProps } from '@nextui-org/drawer';\nimport type { ReactNode } from 'react';\n\nimport {\n Drawer as NextDrawer,\n DrawerBody as NextDrawerBody,\n DrawerContent as NextDrawerContent,\n DrawerFooter as NextDrawerFooter,\n DrawerHeader as NextDrawerHeader,\n} from '@nextui-org/drawer';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// drawer variants\nexport const drawerVariants = tv({\n slots: {\n wrapper: '',\n base: '',\n backdrop: '',\n header: '',\n body: '',\n footer: '',\n closeButton: '',\n },\n});\n\nexport const drawerSizes = [\n 'xs',\n 'sm',\n 'md',\n 'lg',\n 'xl',\n '2xl',\n '3xl',\n '4xl',\n '5xl',\n 'full',\n] as const;\nexport type DrawerSizes = (typeof drawerSizes)[number];\n\nexport const drawerRadii = ['none', 'sm', 'md', 'lg'] as const;\nexport type DrawerRadius = (typeof drawerRadii)[number];\n\nexport const drawerBackdrops = ['opaque', 'transparent', 'blur'] as const;\nexport type DrawerBackdrop = (typeof drawerBackdrops)[number];\n\nexport const drawerPlacements = ['left', 'right', 'top', 'bottom'] as const;\nexport type DrawerPlacement = (typeof drawerPlacements)[number];\n\ntype VariantProps = TVProps<typeof drawerVariants>;\ntype ClassName = TVClassName<typeof drawerVariants>;\n\nexport interface DrawerProps extends VariantProps {\n /** The backdrop style of the Drawer. */\n backdrop?: DrawerBackdrop;\n /** Drawer body content */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Custom close button to display on top right corner. */\n closeButton?: ReactNode;\n /** Footer of the Drawer. */\n footer?: ReactNode;\n /** Header of the Drawer. */\n header?: ReactNode;\n /** Whether to hide the drawer close button. */\n hideCloseButton?: boolean;\n /** Whether the drawer is open by default (controlled). */\n isOpen?: boolean;\n /** Whether the drawer can be closed by clicking on the overlay or pressing the Esc key. */\n isDismissable?: boolean;\n /** Handler that is called when the drawer is closed. */\n onClose?: () => void;\n /** Handler that is called when the drawer's open state changes. */\n onOpenChange?: (isOpen: boolean) => void;\n /** The drawer position. */\n placement?: DrawerPlacement | undefined;\n /** The container element in which the overlay portal will be placed */\n portalContainer?: NextDrawerProps['portalContainer'];\n /** The drawer border radius. */\n radius?: DrawerRadius | undefined;\n /** The drawer size. */\n size?: DrawerSizes | undefined;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * Drawer component based on [NextUI Drawer](https://nextui.org/docs/components/drawer)\n */\nconst Drawer = ({\n backdrop = 'opaque',\n children = null,\n className = undefined,\n closeButton = undefined,\n footer = undefined,\n header = undefined,\n hideCloseButton = false,\n isOpen = undefined,\n isDismissable = true,\n onClose = undefined,\n onOpenChange = undefined,\n placement = 'right',\n portalContainer = undefined,\n radius = 'lg',\n size = 'md',\n testId = undefined,\n}: DrawerProps) => {\n // classNames from slots\n const variants = drawerVariants();\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <NextDrawer\n backdrop={backdrop}\n classNames={classNames}\n closeButton={closeButton}\n data-testid={testId}\n hideCloseButton={hideCloseButton}\n isDismissable={isDismissable}\n isOpen={isOpen}\n onClose={onClose}\n onOpenChange={onOpenChange}\n placement={placement}\n portalContainer={portalContainer}\n radius={radius}\n scrollBehavior=\"inside\"\n size={size}\n >\n <NextDrawerContent data-testid={testId ? `drawer_${testId}` : 'drawer'}>\n {() => (\n <>\n {header && <NextDrawerHeader>{header}</NextDrawerHeader>}\n <NextDrawerBody id=\"drawer_body\">{children}</NextDrawerBody>\n {footer && <NextDrawerFooter>{footer}</NextDrawerFooter>}\n </>\n )}\n </NextDrawerContent>\n </NextDrawer>\n );\n};\n\nexport default Drawer;\n","import Drawer, {\n drawerBackdrops,\n drawerPlacements,\n drawerRadii,\n drawerSizes,\n drawerVariants,\n} from './Drawer';\n\nexport type { DrawerProps } from './Drawer';\n\nexport {\n Drawer,\n drawerBackdrops,\n drawerPlacements,\n drawerRadii,\n drawerSizes,\n drawerVariants,\n};\n\nexport default Drawer;\n"]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// src/Drawer/Drawer.tsx
|
|
2
|
+
import {
|
|
3
|
+
Drawer as NextDrawer,
|
|
4
|
+
DrawerBody as NextDrawerBody,
|
|
5
|
+
DrawerContent as NextDrawerContent,
|
|
6
|
+
DrawerFooter as NextDrawerFooter,
|
|
7
|
+
DrawerHeader as NextDrawerHeader
|
|
8
|
+
} from "@nextui-org/drawer";
|
|
9
|
+
import { tv, variantsToClassNames } from "@fuf-stack/pixel-utils";
|
|
10
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
var drawerVariants = tv({
|
|
12
|
+
slots: {
|
|
13
|
+
wrapper: "",
|
|
14
|
+
base: "",
|
|
15
|
+
backdrop: "",
|
|
16
|
+
header: "",
|
|
17
|
+
body: "",
|
|
18
|
+
footer: "",
|
|
19
|
+
closeButton: ""
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
var drawerSizes = [
|
|
23
|
+
"xs",
|
|
24
|
+
"sm",
|
|
25
|
+
"md",
|
|
26
|
+
"lg",
|
|
27
|
+
"xl",
|
|
28
|
+
"2xl",
|
|
29
|
+
"3xl",
|
|
30
|
+
"4xl",
|
|
31
|
+
"5xl",
|
|
32
|
+
"full"
|
|
33
|
+
];
|
|
34
|
+
var drawerRadii = ["none", "sm", "md", "lg"];
|
|
35
|
+
var drawerBackdrops = ["opaque", "transparent", "blur"];
|
|
36
|
+
var drawerPlacements = ["left", "right", "top", "bottom"];
|
|
37
|
+
var Drawer = ({
|
|
38
|
+
backdrop = "opaque",
|
|
39
|
+
children = null,
|
|
40
|
+
className = void 0,
|
|
41
|
+
closeButton = void 0,
|
|
42
|
+
footer = void 0,
|
|
43
|
+
header = void 0,
|
|
44
|
+
hideCloseButton = false,
|
|
45
|
+
isOpen = void 0,
|
|
46
|
+
isDismissable = true,
|
|
47
|
+
onClose = void 0,
|
|
48
|
+
onOpenChange = void 0,
|
|
49
|
+
placement = "right",
|
|
50
|
+
portalContainer = void 0,
|
|
51
|
+
radius = "lg",
|
|
52
|
+
size = "md",
|
|
53
|
+
testId = void 0
|
|
54
|
+
}) => {
|
|
55
|
+
const variants = drawerVariants();
|
|
56
|
+
const classNames = variantsToClassNames(variants, className, "base");
|
|
57
|
+
return /* @__PURE__ */ jsx(
|
|
58
|
+
NextDrawer,
|
|
59
|
+
{
|
|
60
|
+
backdrop,
|
|
61
|
+
classNames,
|
|
62
|
+
closeButton,
|
|
63
|
+
"data-testid": testId,
|
|
64
|
+
hideCloseButton,
|
|
65
|
+
isDismissable,
|
|
66
|
+
isOpen,
|
|
67
|
+
onClose,
|
|
68
|
+
onOpenChange,
|
|
69
|
+
placement,
|
|
70
|
+
portalContainer,
|
|
71
|
+
radius,
|
|
72
|
+
scrollBehavior: "inside",
|
|
73
|
+
size,
|
|
74
|
+
children: /* @__PURE__ */ jsx(NextDrawerContent, { "data-testid": testId ? `drawer_${testId}` : "drawer", children: () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
75
|
+
header && /* @__PURE__ */ jsx(NextDrawerHeader, { children: header }),
|
|
76
|
+
/* @__PURE__ */ jsx(NextDrawerBody, { id: "drawer_body", children }),
|
|
77
|
+
footer && /* @__PURE__ */ jsx(NextDrawerFooter, { children: footer })
|
|
78
|
+
] }) })
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
};
|
|
82
|
+
var Drawer_default = Drawer;
|
|
83
|
+
|
|
84
|
+
// src/Drawer/index.ts
|
|
85
|
+
var Drawer_default2 = Drawer_default;
|
|
86
|
+
|
|
87
|
+
export {
|
|
88
|
+
drawerVariants,
|
|
89
|
+
drawerSizes,
|
|
90
|
+
drawerRadii,
|
|
91
|
+
drawerBackdrops,
|
|
92
|
+
drawerPlacements,
|
|
93
|
+
Drawer_default,
|
|
94
|
+
Drawer_default2
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=chunk-OQIMB45E.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Drawer/Drawer.tsx","../src/Drawer/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { DrawerProps as NextDrawerProps } from '@nextui-org/drawer';\nimport type { ReactNode } from 'react';\n\nimport {\n Drawer as NextDrawer,\n DrawerBody as NextDrawerBody,\n DrawerContent as NextDrawerContent,\n DrawerFooter as NextDrawerFooter,\n DrawerHeader as NextDrawerHeader,\n} from '@nextui-org/drawer';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// drawer variants\nexport const drawerVariants = tv({\n slots: {\n wrapper: '',\n base: '',\n backdrop: '',\n header: '',\n body: '',\n footer: '',\n closeButton: '',\n },\n});\n\nexport const drawerSizes = [\n 'xs',\n 'sm',\n 'md',\n 'lg',\n 'xl',\n '2xl',\n '3xl',\n '4xl',\n '5xl',\n 'full',\n] as const;\nexport type DrawerSizes = (typeof drawerSizes)[number];\n\nexport const drawerRadii = ['none', 'sm', 'md', 'lg'] as const;\nexport type DrawerRadius = (typeof drawerRadii)[number];\n\nexport const drawerBackdrops = ['opaque', 'transparent', 'blur'] as const;\nexport type DrawerBackdrop = (typeof drawerBackdrops)[number];\n\nexport const drawerPlacements = ['left', 'right', 'top', 'bottom'] as const;\nexport type DrawerPlacement = (typeof drawerPlacements)[number];\n\ntype VariantProps = TVProps<typeof drawerVariants>;\ntype ClassName = TVClassName<typeof drawerVariants>;\n\nexport interface DrawerProps extends VariantProps {\n /** The backdrop style of the Drawer. */\n backdrop?: DrawerBackdrop;\n /** Drawer body content */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Custom close button to display on top right corner. */\n closeButton?: ReactNode;\n /** Footer of the Drawer. */\n footer?: ReactNode;\n /** Header of the Drawer. */\n header?: ReactNode;\n /** Whether to hide the drawer close button. */\n hideCloseButton?: boolean;\n /** Whether the drawer is open by default (controlled). */\n isOpen?: boolean;\n /** Whether the drawer can be closed by clicking on the overlay or pressing the Esc key. */\n isDismissable?: boolean;\n /** Handler that is called when the drawer is closed. */\n onClose?: () => void;\n /** Handler that is called when the drawer's open state changes. */\n onOpenChange?: (isOpen: boolean) => void;\n /** The drawer position. */\n placement?: DrawerPlacement | undefined;\n /** The container element in which the overlay portal will be placed */\n portalContainer?: NextDrawerProps['portalContainer'];\n /** The drawer border radius. */\n radius?: DrawerRadius | undefined;\n /** The drawer size. */\n size?: DrawerSizes | undefined;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * Drawer component based on [NextUI Drawer](https://nextui.org/docs/components/drawer)\n */\nconst Drawer = ({\n backdrop = 'opaque',\n children = null,\n className = undefined,\n closeButton = undefined,\n footer = undefined,\n header = undefined,\n hideCloseButton = false,\n isOpen = undefined,\n isDismissable = true,\n onClose = undefined,\n onOpenChange = undefined,\n placement = 'right',\n portalContainer = undefined,\n radius = 'lg',\n size = 'md',\n testId = undefined,\n}: DrawerProps) => {\n // classNames from slots\n const variants = drawerVariants();\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <NextDrawer\n backdrop={backdrop}\n classNames={classNames}\n closeButton={closeButton}\n data-testid={testId}\n hideCloseButton={hideCloseButton}\n isDismissable={isDismissable}\n isOpen={isOpen}\n onClose={onClose}\n onOpenChange={onOpenChange}\n placement={placement}\n portalContainer={portalContainer}\n radius={radius}\n scrollBehavior=\"inside\"\n size={size}\n >\n <NextDrawerContent data-testid={testId ? `drawer_${testId}` : 'drawer'}>\n {() => (\n <>\n {header && <NextDrawerHeader>{header}</NextDrawerHeader>}\n <NextDrawerBody id=\"drawer_body\">{children}</NextDrawerBody>\n {footer && <NextDrawerFooter>{footer}</NextDrawerFooter>}\n </>\n )}\n </NextDrawerContent>\n </NextDrawer>\n );\n};\n\nexport default Drawer;\n","import Drawer, {\n drawerBackdrops,\n drawerPlacements,\n drawerRadii,\n drawerSizes,\n drawerVariants,\n} from './Drawer';\n\nexport type { DrawerProps } from './Drawer';\n\nexport {\n Drawer,\n drawerBackdrops,\n drawerPlacements,\n drawerRadii,\n drawerSizes,\n drawerVariants,\n};\n\nexport default Drawer;\n"],"mappings":";AAIA;AAAA,EACE,UAAU;AAAA,EACV,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,OACX;AAEP,SAAS,IAAI,4BAA4B;AAwH/B,mBACa,KADb;AArHH,IAAM,iBAAiB,GAAG;AAAA,EAC/B,OAAO;AAAA,IACL,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,aAAa;AAAA,EACf;AACF,CAAC;AAEM,IAAM,cAAc;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,IAAM,cAAc,CAAC,QAAQ,MAAM,MAAM,IAAI;AAG7C,IAAM,kBAAkB,CAAC,UAAU,eAAe,MAAM;AAGxD,IAAM,mBAAmB,CAAC,QAAQ,SAAS,OAAO,QAAQ;AA4CjE,IAAM,SAAS,CAAC;AAAA,EACd,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,SAAS;AAAA,EACT,SAAS;AAAA,EACT,kBAAkB;AAAA,EAClB,SAAS;AAAA,EACT,gBAAgB;AAAA,EAChB,UAAU;AAAA,EACV,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,SAAS;AAAA,EACT,OAAO;AAAA,EACP,SAAS;AACX,MAAmB;AAEjB,QAAM,WAAW,eAAe;AAChC,QAAM,aAAa,qBAAqB,UAAU,WAAW,MAAM;AAEnE,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA,eAAa;AAAA,MACb;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,gBAAe;AAAA,MACf;AAAA,MAEA,8BAAC,qBAAkB,eAAa,SAAS,UAAU,MAAM,KAAK,UAC3D,gBACC,iCACG;AAAA,kBAAU,oBAAC,oBAAkB,kBAAO;AAAA,QACrC,oBAAC,kBAAe,IAAG,eAAe,UAAS;AAAA,QAC1C,UAAU,oBAAC,oBAAkB,kBAAO;AAAA,SACvC,GAEJ;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,iBAAQ;;;AC5Hf,IAAOA,kBAAQ;","names":["Drawer_default"]}
|
package/dist/index.cjs
CHANGED
|
@@ -12,6 +12,14 @@ var _chunkRMA57Q6Kcjs = require('./chunk-RMA57Q6K.cjs');
|
|
|
12
12
|
var _chunkMWNBYTRNcjs = require('./chunk-MWNBYTRN.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
var _chunk7ZJ6LE2Pcjs = require('./chunk-7ZJ6LE2P.cjs');
|
|
21
|
+
|
|
22
|
+
|
|
15
23
|
var _chunkOLKLIWBEcjs = require('./chunk-OLKLIWBE.cjs');
|
|
16
24
|
|
|
17
25
|
|
|
@@ -33,15 +41,15 @@ require('./chunk-BXPBP3PC.cjs');
|
|
|
33
41
|
var _chunkZXGEK67Fcjs = require('./chunk-ZXGEK67F.cjs');
|
|
34
42
|
|
|
35
43
|
|
|
36
|
-
var _chunkU2JEMXXJcjs = require('./chunk-U2JEMXXJ.cjs');
|
|
37
|
-
|
|
38
|
-
|
|
39
44
|
var _chunk7XJHVFT3cjs = require('./chunk-7XJHVFT3.cjs');
|
|
40
45
|
|
|
41
46
|
|
|
42
47
|
var _chunkHVLEV6BGcjs = require('./chunk-HVLEV6BG.cjs');
|
|
43
48
|
|
|
44
49
|
|
|
50
|
+
var _chunkU2JEMXXJcjs = require('./chunk-U2JEMXXJ.cjs');
|
|
51
|
+
|
|
52
|
+
|
|
45
53
|
|
|
46
54
|
var _chunkNVNT4PMScjs = require('./chunk-NVNT4PMS.cjs');
|
|
47
55
|
|
|
@@ -79,5 +87,11 @@ require('./chunk-D4TLDLEX.cjs');
|
|
|
79
87
|
|
|
80
88
|
|
|
81
89
|
|
|
82
|
-
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
exports.Accordion = _chunkZXGEK67Fcjs.Accordion_default; exports.Avatar = _chunkHVLEV6BGcjs.Avatar_default; exports.AvatarGroup = _chunk7XJHVFT3cjs.AvatarGroup_default; exports.Badge = _chunkU2JEMXXJcjs.Badge_default; exports.Breadcrumb = _chunkNVNT4PMScjs.Breadcrumb_default; exports.Button = _chunk7TIFKRWYcjs.Button_default; exports.ButtonGroup = _chunk7TIFKRWYcjs.ButtonGroup_default; exports.Card = _chunkAVYWDZ7Xcjs.Card_default; exports.Drawer = _chunk7ZJ6LE2Pcjs.Drawer_default; exports.Json = _chunkOLKLIWBEcjs.Json_default; exports.Label = _chunkYTQJ6FZKcjs.Label_default; exports.Menu = _chunkLY45VQ2Ecjs.Menu_default; exports.Modal = _chunkVG5A2YZEcjs.Modal_default; exports.Popover = _chunk2WDAJ6ERcjs.Popover_default; exports.Tabs = _chunkZ5OFNBWIcjs.Tabs_default; exports.Tooltip = _chunkRMA57Q6Kcjs.Tooltip_default; exports.accordionVariants = _chunkZXGEK67Fcjs.accordionVariants; exports.breadcrumbVariants = _chunkNVNT4PMScjs.breadcrumbVariants; exports.buttonVariants = _chunk7TIFKRWYcjs.buttonVariants; exports.cardVariants = _chunkAVYWDZ7Xcjs.cardVariants; exports.drawerBackdrops = _chunk7ZJ6LE2Pcjs.drawerBackdrops; exports.drawerPlacements = _chunk7ZJ6LE2Pcjs.drawerPlacements; exports.drawerRadii = _chunk7ZJ6LE2Pcjs.drawerRadii; exports.drawerSizes = _chunk7ZJ6LE2Pcjs.drawerSizes; exports.drawerVariants = _chunk7ZJ6LE2Pcjs.drawerVariants; exports.modalVariants = _chunkVG5A2YZEcjs.modalVariants; exports.tabsVariants = _chunkZ5OFNBWIcjs.tabsVariants; exports.tooltipPlacementOptions = _chunkRMA57Q6Kcjs.tooltipPlacementOptions; exports.useDebounce = _chunkMWNBYTRNcjs.useDebounce; exports.useLocalStorage = _chunkMWNBYTRNcjs.useLocalStorage;
|
|
83
97
|
//# 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;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;AACF,wDAA6B;AAC7B,gCAA6B;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;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,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;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;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACF,qoDAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/index.cjs"}
|
package/dist/index.d.cts
CHANGED
|
@@ -5,8 +5,9 @@ export { A as Badge, B as BadgeProps } from './Badge-yzXn5LtZ.cjs';
|
|
|
5
5
|
export { B as Breadcrumb, c as BreadcrumbItemProps, a as BreadcrumbProps, b as breadcrumbVariants } from './Breadcrumb-DHn8XeOY.cjs';
|
|
6
6
|
export { B as Button, a as ButtonGroup, c as ButtonProps, b as buttonVariants } from './ButtonGroup-DIL5WB0f.cjs';
|
|
7
7
|
export { C as Card, a as CardProps, c as cardVariants } from './Card-9RmJ_S7F.cjs';
|
|
8
|
+
export { D as Drawer, f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from './Drawer-DvEDC3UK.cjs';
|
|
8
9
|
export { J as Json, a as JsonProps } from './Json-DZue23GO.cjs';
|
|
9
|
-
export { L as Label, a as LabelProps } from './Label
|
|
10
|
+
export { L as Label, a as LabelProps } from './Label--qRYiJs-.cjs';
|
|
10
11
|
export { M as Menu, b as MenuItem, a as MenuProps, c as MenuSection } from './Menu-CG5mVVnv.cjs';
|
|
11
12
|
export { M as Modal, a as ModalProps, m as modalVariants } from './Modal-CSOPzGYj.cjs';
|
|
12
13
|
export { _ as Popover, P as PopoverProps } from './Popover-By7zSUnV.cjs';
|
|
@@ -22,6 +23,7 @@ import 'react';
|
|
|
22
23
|
import '@nextui-org/badge';
|
|
23
24
|
import '@nextui-org/button';
|
|
24
25
|
import '@nextui-org/system';
|
|
26
|
+
import '@nextui-org/drawer';
|
|
25
27
|
import '@nextui-org/chip';
|
|
26
28
|
import '@nextui-org/modal';
|
|
27
29
|
import '@nextui-org/popover';
|
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,9 @@ export { A as Badge, B as BadgeProps } from './Badge-yzXn5LtZ.js';
|
|
|
5
5
|
export { B as Breadcrumb, c as BreadcrumbItemProps, a as BreadcrumbProps, b as breadcrumbVariants } from './Breadcrumb-DHn8XeOY.js';
|
|
6
6
|
export { B as Button, a as ButtonGroup, c as ButtonProps, b as buttonVariants } from './ButtonGroup-DIL5WB0f.js';
|
|
7
7
|
export { C as Card, a as CardProps, c as cardVariants } from './Card-9RmJ_S7F.js';
|
|
8
|
+
export { D as Drawer, f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from './Drawer-DvEDC3UK.js';
|
|
8
9
|
export { J as Json, a as JsonProps } from './Json-DZue23GO.js';
|
|
9
|
-
export { L as Label, a as LabelProps } from './Label
|
|
10
|
+
export { L as Label, a as LabelProps } from './Label--qRYiJs-.js';
|
|
10
11
|
export { M as Menu, b as MenuItem, a as MenuProps, c as MenuSection } from './Menu-CG5mVVnv.js';
|
|
11
12
|
export { M as Modal, a as ModalProps, m as modalVariants } from './Modal-CSOPzGYj.js';
|
|
12
13
|
export { _ as Popover, P as PopoverProps } from './Popover-By7zSUnV.js';
|
|
@@ -22,6 +23,7 @@ import 'react';
|
|
|
22
23
|
import '@nextui-org/badge';
|
|
23
24
|
import '@nextui-org/button';
|
|
24
25
|
import '@nextui-org/system';
|
|
26
|
+
import '@nextui-org/drawer';
|
|
25
27
|
import '@nextui-org/chip';
|
|
26
28
|
import '@nextui-org/modal';
|
|
27
29
|
import '@nextui-org/popover';
|