@fuf-stack/pixels 0.0.8 → 0.1.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.
- package/dist/Label/Label.cjs +58 -0
- package/dist/Label/Label.cjs.map +1 -0
- package/dist/Label/Label.d.cts +24 -0
- package/dist/Label/Label.d.ts +24 -0
- package/dist/Label/Label.js +7 -0
- package/dist/Label/Label.js.map +1 -0
- package/dist/Label/index.cjs +63 -0
- package/dist/Label/index.cjs.map +1 -0
- package/dist/Label/index.d.cts +8 -0
- package/dist/Label/index.d.ts +8 -0
- package/dist/Label/index.js +10 -0
- package/dist/Label/index.js.map +1 -0
- package/dist/Menu/Menu.cjs +97 -0
- package/dist/Menu/Menu.cjs.map +1 -0
- package/dist/Menu/Menu.d.cts +55 -0
- package/dist/Menu/Menu.d.ts +55 -0
- package/dist/Menu/Menu.js +7 -0
- package/dist/Menu/Menu.js.map +1 -0
- package/dist/Menu/index.cjs +102 -0
- package/dist/Menu/index.cjs.map +1 -0
- package/dist/Menu/index.d.cts +7 -0
- package/dist/Menu/index.d.ts +7 -0
- package/dist/Menu/index.js +10 -0
- package/dist/Menu/index.js.map +1 -0
- package/dist/Modal/Modal.cjs +86 -0
- package/dist/Modal/Modal.cjs.map +1 -0
- package/dist/Modal/Modal.d.cts +29 -0
- package/dist/Modal/Modal.d.ts +29 -0
- package/dist/Modal/Modal.js +9 -0
- package/dist/Modal/Modal.js.map +1 -0
- package/dist/Modal/index.cjs +85 -0
- package/dist/Modal/index.cjs.map +1 -0
- package/dist/Modal/index.d.cts +7 -0
- package/dist/Modal/index.d.ts +7 -0
- package/dist/Modal/index.js +10 -0
- package/dist/Modal/index.js.map +1 -0
- package/dist/Popover/Popover.cjs +72 -0
- package/dist/Popover/Popover.cjs.map +1 -0
- package/dist/Popover/Popover.d.cts +31 -0
- package/dist/Popover/Popover.d.ts +31 -0
- package/dist/Popover/Popover.js +7 -0
- package/dist/Popover/Popover.js.map +1 -0
- package/dist/Popover/index.cjs +77 -0
- package/dist/Popover/index.cjs.map +1 -0
- package/dist/Popover/index.d.cts +8 -0
- package/dist/Popover/index.d.ts +8 -0
- package/dist/Popover/index.js +10 -0
- package/dist/Popover/index.js.map +1 -0
- package/dist/Tooltip/Tooltip.cjs +68 -0
- package/dist/Tooltip/Tooltip.cjs.map +1 -0
- package/dist/Tooltip/Tooltip.d.cts +27 -0
- package/dist/Tooltip/Tooltip.d.ts +27 -0
- package/dist/Tooltip/Tooltip.js +9 -0
- package/dist/Tooltip/Tooltip.js.map +1 -0
- package/dist/Tooltip/index.cjs +67 -0
- package/dist/Tooltip/index.cjs.map +1 -0
- package/dist/Tooltip/index.d.cts +7 -0
- package/dist/Tooltip/index.d.ts +7 -0
- package/dist/Tooltip/index.js +10 -0
- package/dist/Tooltip/index.js.map +1 -0
- package/dist/chunk-6ZUWYBMG.js +73 -0
- package/dist/chunk-6ZUWYBMG.js.map +1 -0
- package/dist/chunk-CEUL4NWH.js +28 -0
- package/dist/chunk-CEUL4NWH.js.map +1 -0
- package/dist/chunk-EYUTNORZ.js +58 -0
- package/dist/chunk-EYUTNORZ.js.map +1 -0
- package/dist/chunk-ONXXZTZY.js +34 -0
- package/dist/chunk-ONXXZTZY.js.map +1 -0
- package/dist/chunk-SGAWYTO7.js +42 -0
- package/dist/chunk-SGAWYTO7.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/Label/Label.tsx
|
|
31
|
+
var Label_exports = {};
|
|
32
|
+
__export(Label_exports, {
|
|
33
|
+
default: () => Label_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(Label_exports);
|
|
36
|
+
var import_chip = require("@nextui-org/chip");
|
|
37
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
38
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
|
+
var Label = ({
|
|
40
|
+
children,
|
|
41
|
+
className = void 0,
|
|
42
|
+
color = "default",
|
|
43
|
+
endContent = void 0,
|
|
44
|
+
size = "md",
|
|
45
|
+
startContent = void 0
|
|
46
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
47
|
+
import_chip.Chip,
|
|
48
|
+
{
|
|
49
|
+
className: (0, import_classnames.default)(className),
|
|
50
|
+
color,
|
|
51
|
+
endContent,
|
|
52
|
+
size,
|
|
53
|
+
startContent,
|
|
54
|
+
children
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
var Label_default = Label;
|
|
58
|
+
//# sourceMappingURL=Label.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Label/Label.tsx"],"sourcesContent":["import type { ChipProps } from '@nextui-org/chip';\nimport type { ReactNode } from 'react';\n\nimport { Chip as NextLabel } from '@nextui-org/chip';\nimport cn from 'classnames';\n\nexport interface LabelProps {\n /** content of the label */\n children: ReactNode;\n /** CSS class name */\n className?: string;\n /** color of the label */\n color?: ChipProps['color'];\n /** element to be rendered in the right side of the label */\n endContent?: ChipProps['endContent'];\n /** size of the label */\n size?: ChipProps['size'];\n /** element to be rendered in the left side of the label */\n startContent?: ChipProps['startContent'];\n}\n\n/**\n * Label component based on [NextUI Chip](https://nextui.org/docs/components/chip)\n */\nconst Label = ({\n children,\n className = undefined,\n color = 'default',\n endContent = undefined,\n size = 'md',\n startContent = undefined,\n}: LabelProps) => (\n <NextLabel\n className={cn(className)}\n color={color}\n endContent={endContent}\n size={size}\n startContent={startContent}\n >\n {children}\n </NextLabel>\n);\n\nexport default Label;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAkC;AAClC,wBAAe;AA4Bb;AARF,IAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,OAAO;AAAA,EACP,eAAe;AACjB,MACE;AAAA,EAAC,YAAAA;AAAA,EAAA;AAAA,IACC,eAAW,kBAAAC,SAAG,SAAS;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IAEC;AAAA;AACH;AAGF,IAAO,gBAAQ;","names":["NextLabel","cn"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ChipProps } from '@nextui-org/chip';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
interface LabelProps {
|
|
6
|
+
/** content of the label */
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/** CSS class name */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** color of the label */
|
|
11
|
+
color?: ChipProps['color'];
|
|
12
|
+
/** element to be rendered in the right side of the label */
|
|
13
|
+
endContent?: ChipProps['endContent'];
|
|
14
|
+
/** size of the label */
|
|
15
|
+
size?: ChipProps['size'];
|
|
16
|
+
/** element to be rendered in the left side of the label */
|
|
17
|
+
startContent?: ChipProps['startContent'];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Label component based on [NextUI Chip](https://nextui.org/docs/components/chip)
|
|
21
|
+
*/
|
|
22
|
+
declare const Label: ({ children, className, color, endContent, size, startContent, }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
export { type LabelProps, Label as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ChipProps } from '@nextui-org/chip';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
interface LabelProps {
|
|
6
|
+
/** content of the label */
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/** CSS class name */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** color of the label */
|
|
11
|
+
color?: ChipProps['color'];
|
|
12
|
+
/** element to be rendered in the right side of the label */
|
|
13
|
+
endContent?: ChipProps['endContent'];
|
|
14
|
+
/** size of the label */
|
|
15
|
+
size?: ChipProps['size'];
|
|
16
|
+
/** element to be rendered in the left side of the label */
|
|
17
|
+
startContent?: ChipProps['startContent'];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Label component based on [NextUI Chip](https://nextui.org/docs/components/chip)
|
|
21
|
+
*/
|
|
22
|
+
declare const Label: ({ children, className, color, endContent, size, startContent, }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
export { type LabelProps, Label as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/Label/index.ts
|
|
31
|
+
var Label_exports = {};
|
|
32
|
+
__export(Label_exports, {
|
|
33
|
+
default: () => Label_default2
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(Label_exports);
|
|
36
|
+
|
|
37
|
+
// src/Label/Label.tsx
|
|
38
|
+
var import_chip = require("@nextui-org/chip");
|
|
39
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
40
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
|
+
var Label = ({
|
|
42
|
+
children,
|
|
43
|
+
className = void 0,
|
|
44
|
+
color = "default",
|
|
45
|
+
endContent = void 0,
|
|
46
|
+
size = "md",
|
|
47
|
+
startContent = void 0
|
|
48
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
49
|
+
import_chip.Chip,
|
|
50
|
+
{
|
|
51
|
+
className: (0, import_classnames.default)(className),
|
|
52
|
+
color,
|
|
53
|
+
endContent,
|
|
54
|
+
size,
|
|
55
|
+
startContent,
|
|
56
|
+
children
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
var Label_default = Label;
|
|
60
|
+
|
|
61
|
+
// src/Label/index.ts
|
|
62
|
+
var Label_default2 = Label_default;
|
|
63
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Label/index.ts","../../src/Label/Label.tsx"],"sourcesContent":["import Label from './Label';\n\nexport default Label;\n","import type { ChipProps } from '@nextui-org/chip';\nimport type { ReactNode } from 'react';\n\nimport { Chip as NextLabel } from '@nextui-org/chip';\nimport cn from 'classnames';\n\nexport interface LabelProps {\n /** content of the label */\n children: ReactNode;\n /** CSS class name */\n className?: string;\n /** color of the label */\n color?: ChipProps['color'];\n /** element to be rendered in the right side of the label */\n endContent?: ChipProps['endContent'];\n /** size of the label */\n size?: ChipProps['size'];\n /** element to be rendered in the left side of the label */\n startContent?: ChipProps['startContent'];\n}\n\n/**\n * Label component based on [NextUI Chip](https://nextui.org/docs/components/chip)\n */\nconst Label = ({\n children,\n className = undefined,\n color = 'default',\n endContent = undefined,\n size = 'md',\n startContent = undefined,\n}: LabelProps) => (\n <NextLabel\n className={cn(className)}\n color={color}\n endContent={endContent}\n size={size}\n startContent={startContent}\n >\n {children}\n </NextLabel>\n);\n\nexport default Label;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iBAAAA;AAAA;AAAA;;;ACGA,kBAAkC;AAClC,wBAAe;AA4Bb;AARF,IAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,OAAO;AAAA,EACP,eAAe;AACjB,MACE;AAAA,EAAC,YAAAC;AAAA,EAAA;AAAA,IACC,eAAW,kBAAAC,SAAG,SAAS;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IAEC;AAAA;AACH;AAGF,IAAO,gBAAQ;;;ADzCf,IAAOC,iBAAQ;","names":["Label_default","NextLabel","cn","Label_default"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Label/index.ts"],"sourcesContent":["import Label from './Label';\n\nexport default Label;\n"],"mappings":";;;;;AAEA,IAAOA,iBAAQ;","names":["Label_default"]}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/Menu/Menu.tsx
|
|
31
|
+
var Menu_exports = {};
|
|
32
|
+
__export(Menu_exports, {
|
|
33
|
+
default: () => Menu_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(Menu_exports);
|
|
36
|
+
var import_fa6 = require("react-icons/fa6");
|
|
37
|
+
var import_dropdown = require("@nextui-org/dropdown");
|
|
38
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
39
|
+
var import_debug = __toESM(require("debug"), 1);
|
|
40
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
|
+
var debug = (0, import_debug.default)("component:Menu");
|
|
42
|
+
var getDisabledKeys = (items) => {
|
|
43
|
+
return items.map((item) => typeof item?.items === "undefined" ? item : item.items).flat().filter((item) => {
|
|
44
|
+
return Object.hasOwn(item, "disabled") && item.disabled === true;
|
|
45
|
+
}).map((item) => item.key);
|
|
46
|
+
};
|
|
47
|
+
var renderMenuItem = (item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
48
|
+
import_dropdown.DropdownItem,
|
|
49
|
+
{
|
|
50
|
+
className: item.className,
|
|
51
|
+
"data-testid": item.testId || item.key,
|
|
52
|
+
description: item.description,
|
|
53
|
+
onClick: item.onClick,
|
|
54
|
+
startContent: item.icon,
|
|
55
|
+
children: item.label
|
|
56
|
+
},
|
|
57
|
+
item.key
|
|
58
|
+
);
|
|
59
|
+
var Menu = ({
|
|
60
|
+
children = null,
|
|
61
|
+
className = void 0,
|
|
62
|
+
onAction = void 0,
|
|
63
|
+
testId = void 0,
|
|
64
|
+
isDisabled = false,
|
|
65
|
+
items
|
|
66
|
+
}) => {
|
|
67
|
+
debug("Menu", { items });
|
|
68
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dropdown.Dropdown, { isDisabled, children: [
|
|
69
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown.DropdownTrigger, { className: (0, import_classnames.default)(className), "data-testid": testId, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { children: children || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_fa6.FaEllipsisVertical, { className: "px-2" }) }) }),
|
|
70
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
71
|
+
import_dropdown.DropdownMenu,
|
|
72
|
+
{
|
|
73
|
+
items,
|
|
74
|
+
disabledKeys: getDisabledKeys(items),
|
|
75
|
+
onAction,
|
|
76
|
+
children: (item) => {
|
|
77
|
+
if ("items" in item) {
|
|
78
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
79
|
+
import_dropdown.DropdownSection,
|
|
80
|
+
{
|
|
81
|
+
items: item.items,
|
|
82
|
+
title: item.label,
|
|
83
|
+
children: (sectionItem) => {
|
|
84
|
+
return renderMenuItem(sectionItem);
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
item.key
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
return renderMenuItem(item);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
] });
|
|
95
|
+
};
|
|
96
|
+
var Menu_default = Menu;
|
|
97
|
+
//# sourceMappingURL=Menu.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Menu/Menu.tsx"],"sourcesContent":["import type { DropdownSectionProps } from '@nextui-org/dropdown';\nimport type { Key, MouseEventHandler, ReactNode } from 'react';\n\nimport { FaEllipsisVertical } from 'react-icons/fa6';\n\nimport {\n Dropdown as NextDropdown,\n DropdownItem as NextDropdownItem,\n DropdownMenu as NextDropdownMenu,\n DropdownSection as NextDropdownSection,\n DropdownTrigger as NextDropdownTrigger,\n} from '@nextui-org/dropdown';\nimport cn from 'classnames';\nimport createDebug from 'debug';\n\nconst debug = createDebug('component:Menu');\n\n/**\n * Menu item type\n */\nexport interface MenuItem {\n /** unique identifier */\n key: string;\n /** CSS class name */\n className?: string;\n /** additional description shown under the label */\n description?: string;\n /** disables the menu item */\n disabled?: boolean;\n /** menu item icon */\n icon?: ReactNode;\n /** menu item name */\n label: ReactNode;\n /** click event handler */\n onClick?: MouseEventHandler<HTMLLIElement>;\n /** e2e test identifier */\n testId?: string;\n}\n\n/**\n * Menu section type\n */\nexport interface MenuSection {\n /** unique identifier */\n key: string;\n /** section label */\n label: ReactNode;\n /** section items (array of MenuItem) */\n items: MenuItem[];\n}\n\nexport interface MenuProps {\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string | string[];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** menu item structure */\n items: (MenuSection | MenuItem)[];\n /** disable menu trigger */\n isDisabled?: boolean;\n /** called if item is selected */\n onAction?: (key: Key) => void;\n}\n\n/** returns String[] of disabled items/keys */\nconst getDisabledKeys = (items: (MenuSection | MenuItem)[]) => {\n return (\n items\n // @ts-expect-error typing issue with MenuSection | MenuItem\n .map((item) => (typeof item?.items === 'undefined' ? item : item.items))\n .flat<MenuItem[]>()\n .filter((item) => {\n return Object.hasOwn(item, 'disabled') && item.disabled === true;\n })\n .map((item) => item.key)\n );\n};\n\nconst renderMenuItem = (item: MenuItem) => (\n <NextDropdownItem\n className={item.className}\n data-testid={item.testId || item.key}\n description={item.description}\n key={item.key}\n onClick={item.onClick}\n startContent={item.icon}\n >\n {item.label}\n </NextDropdownItem>\n);\n\n/**\n * Dropdown menu component based on [NextUI Dropdown](https://nextui.org/docs/components/dropdown)\n */\nconst Menu = ({\n children = null,\n className = undefined,\n onAction = undefined,\n testId = undefined,\n isDisabled = false,\n items,\n}: MenuProps) => {\n debug('Menu', { items });\n\n return (\n <NextDropdown isDisabled={isDisabled}>\n <NextDropdownTrigger className={cn(className)} data-testid={testId}>\n {/* eslint-disable-next-line react/button-has-type */}\n <button>{children || <FaEllipsisVertical className=\"px-2\" />}</button>\n </NextDropdownTrigger>\n <NextDropdownMenu\n // aria-label=\"Dynamic Actions\"\n items={items}\n disabledKeys={getDisabledKeys(items)}\n onAction={onAction}\n >\n {(item) => {\n if ('items' in item) {\n return (\n <NextDropdownSection\n items={item.items as MenuSection['items']}\n title={item.label as DropdownSectionProps['title']}\n key={item.key}\n >\n {/* @ts-expect-error ts problem here with render fn */}\n {(sectionItem) => {\n return renderMenuItem(sectionItem);\n }}\n </NextDropdownSection>\n );\n }\n return renderMenuItem(item);\n }}\n </NextDropdownMenu>\n </NextDropdown>\n );\n};\n\nexport default Menu;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,iBAAmC;AAEnC,sBAMO;AACP,wBAAe;AACf,mBAAwB;AAoEtB;AAlEF,IAAM,YAAQ,aAAAA,SAAY,gBAAgB;AAoD1C,IAAM,kBAAkB,CAAC,UAAsC;AAC7D,SACE,MAEG,IAAI,CAAC,SAAU,OAAO,MAAM,UAAU,cAAc,OAAO,KAAK,KAAM,EACtE,KAAiB,EACjB,OAAO,CAAC,SAAS;AAChB,WAAO,OAAO,OAAO,MAAM,UAAU,KAAK,KAAK,aAAa;AAAA,EAC9D,CAAC,EACA,IAAI,CAAC,SAAS,KAAK,GAAG;AAE7B;AAEA,IAAM,iBAAiB,CAAC,SACtB;AAAA,EAAC,gBAAAC;AAAA,EAAA;AAAA,IACC,WAAW,KAAK;AAAA,IAChB,eAAa,KAAK,UAAU,KAAK;AAAA,IACjC,aAAa,KAAK;AAAA,IAElB,SAAS,KAAK;AAAA,IACd,cAAc,KAAK;AAAA,IAElB,eAAK;AAAA;AAAA,EAJD,KAAK;AAKZ;AAMF,IAAM,OAAO,CAAC;AAAA,EACZ,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,SAAS;AAAA,EACT,aAAa;AAAA,EACb;AACF,MAAiB;AACf,QAAM,QAAQ,EAAE,MAAM,CAAC;AAEvB,SACE,6CAAC,gBAAAC,UAAA,EAAa,YACZ;AAAA,gDAAC,gBAAAC,iBAAA,EAAoB,eAAW,kBAAAC,SAAG,SAAS,GAAG,eAAa,QAE1D,sDAAC,YAAQ,sBAAY,4CAAC,iCAAmB,WAAU,QAAO,GAAG,GAC/D;AAAA,IACA;AAAA,MAAC,gBAAAC;AAAA,MAAA;AAAA,QAEC;AAAA,QACA,cAAc,gBAAgB,KAAK;AAAA,QACnC;AAAA,QAEC,WAAC,SAAS;AACT,cAAI,WAAW,MAAM;AACnB,mBACE;AAAA,cAAC,gBAAAC;AAAA,cAAA;AAAA,gBACC,OAAO,KAAK;AAAA,gBACZ,OAAO,KAAK;AAAA,gBAIX,WAAC,gBAAgB;AAChB,yBAAO,eAAe,WAAW;AAAA,gBACnC;AAAA;AAAA,cALK,KAAK;AAAA,YAMZ;AAAA,UAEJ;AACA,iBAAO,eAAe,IAAI;AAAA,QAC5B;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;AAEA,IAAO,eAAQ;","names":["createDebug","NextDropdownItem","NextDropdown","NextDropdownTrigger","cn","NextDropdownMenu","NextDropdownSection"]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode, MouseEventHandler, Key } from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Menu item type
|
|
6
|
+
*/
|
|
7
|
+
interface MenuItem {
|
|
8
|
+
/** unique identifier */
|
|
9
|
+
key: string;
|
|
10
|
+
/** CSS class name */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** additional description shown under the label */
|
|
13
|
+
description?: string;
|
|
14
|
+
/** disables the menu item */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** menu item icon */
|
|
17
|
+
icon?: ReactNode;
|
|
18
|
+
/** menu item name */
|
|
19
|
+
label: ReactNode;
|
|
20
|
+
/** click event handler */
|
|
21
|
+
onClick?: MouseEventHandler<HTMLLIElement>;
|
|
22
|
+
/** e2e test identifier */
|
|
23
|
+
testId?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Menu section type
|
|
27
|
+
*/
|
|
28
|
+
interface MenuSection {
|
|
29
|
+
/** unique identifier */
|
|
30
|
+
key: string;
|
|
31
|
+
/** section label */
|
|
32
|
+
label: ReactNode;
|
|
33
|
+
/** section items (array of MenuItem) */
|
|
34
|
+
items: MenuItem[];
|
|
35
|
+
}
|
|
36
|
+
interface MenuProps {
|
|
37
|
+
/** child components */
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
/** CSS class name */
|
|
40
|
+
className?: string | string[];
|
|
41
|
+
/** HTML data-testid attribute used in e2e tests */
|
|
42
|
+
testId?: string;
|
|
43
|
+
/** menu item structure */
|
|
44
|
+
items: (MenuSection | MenuItem)[];
|
|
45
|
+
/** disable menu trigger */
|
|
46
|
+
isDisabled?: boolean;
|
|
47
|
+
/** called if item is selected */
|
|
48
|
+
onAction?: (key: Key) => void;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Dropdown menu component based on [NextUI Dropdown](https://nextui.org/docs/components/dropdown)
|
|
52
|
+
*/
|
|
53
|
+
declare const Menu: ({ children, className, onAction, testId, isDisabled, items, }: MenuProps) => react_jsx_runtime.JSX.Element;
|
|
54
|
+
|
|
55
|
+
export { type MenuItem, type MenuProps, type MenuSection, Menu as default };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode, MouseEventHandler, Key } from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Menu item type
|
|
6
|
+
*/
|
|
7
|
+
interface MenuItem {
|
|
8
|
+
/** unique identifier */
|
|
9
|
+
key: string;
|
|
10
|
+
/** CSS class name */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** additional description shown under the label */
|
|
13
|
+
description?: string;
|
|
14
|
+
/** disables the menu item */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** menu item icon */
|
|
17
|
+
icon?: ReactNode;
|
|
18
|
+
/** menu item name */
|
|
19
|
+
label: ReactNode;
|
|
20
|
+
/** click event handler */
|
|
21
|
+
onClick?: MouseEventHandler<HTMLLIElement>;
|
|
22
|
+
/** e2e test identifier */
|
|
23
|
+
testId?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Menu section type
|
|
27
|
+
*/
|
|
28
|
+
interface MenuSection {
|
|
29
|
+
/** unique identifier */
|
|
30
|
+
key: string;
|
|
31
|
+
/** section label */
|
|
32
|
+
label: ReactNode;
|
|
33
|
+
/** section items (array of MenuItem) */
|
|
34
|
+
items: MenuItem[];
|
|
35
|
+
}
|
|
36
|
+
interface MenuProps {
|
|
37
|
+
/** child components */
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
/** CSS class name */
|
|
40
|
+
className?: string | string[];
|
|
41
|
+
/** HTML data-testid attribute used in e2e tests */
|
|
42
|
+
testId?: string;
|
|
43
|
+
/** menu item structure */
|
|
44
|
+
items: (MenuSection | MenuItem)[];
|
|
45
|
+
/** disable menu trigger */
|
|
46
|
+
isDisabled?: boolean;
|
|
47
|
+
/** called if item is selected */
|
|
48
|
+
onAction?: (key: Key) => void;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Dropdown menu component based on [NextUI Dropdown](https://nextui.org/docs/components/dropdown)
|
|
52
|
+
*/
|
|
53
|
+
declare const Menu: ({ children, className, onAction, testId, isDisabled, items, }: MenuProps) => react_jsx_runtime.JSX.Element;
|
|
54
|
+
|
|
55
|
+
export { type MenuItem, type MenuProps, type MenuSection, Menu as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/Menu/index.ts
|
|
31
|
+
var Menu_exports = {};
|
|
32
|
+
__export(Menu_exports, {
|
|
33
|
+
default: () => Menu_default2
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(Menu_exports);
|
|
36
|
+
|
|
37
|
+
// src/Menu/Menu.tsx
|
|
38
|
+
var import_fa6 = require("react-icons/fa6");
|
|
39
|
+
var import_dropdown = require("@nextui-org/dropdown");
|
|
40
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
41
|
+
var import_debug = __toESM(require("debug"), 1);
|
|
42
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
43
|
+
var debug = (0, import_debug.default)("component:Menu");
|
|
44
|
+
var getDisabledKeys = (items) => {
|
|
45
|
+
return items.map((item) => typeof item?.items === "undefined" ? item : item.items).flat().filter((item) => {
|
|
46
|
+
return Object.hasOwn(item, "disabled") && item.disabled === true;
|
|
47
|
+
}).map((item) => item.key);
|
|
48
|
+
};
|
|
49
|
+
var renderMenuItem = (item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
50
|
+
import_dropdown.DropdownItem,
|
|
51
|
+
{
|
|
52
|
+
className: item.className,
|
|
53
|
+
"data-testid": item.testId || item.key,
|
|
54
|
+
description: item.description,
|
|
55
|
+
onClick: item.onClick,
|
|
56
|
+
startContent: item.icon,
|
|
57
|
+
children: item.label
|
|
58
|
+
},
|
|
59
|
+
item.key
|
|
60
|
+
);
|
|
61
|
+
var Menu = ({
|
|
62
|
+
children = null,
|
|
63
|
+
className = void 0,
|
|
64
|
+
onAction = void 0,
|
|
65
|
+
testId = void 0,
|
|
66
|
+
isDisabled = false,
|
|
67
|
+
items
|
|
68
|
+
}) => {
|
|
69
|
+
debug("Menu", { items });
|
|
70
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dropdown.Dropdown, { isDisabled, children: [
|
|
71
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown.DropdownTrigger, { className: (0, import_classnames.default)(className), "data-testid": testId, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { children: children || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_fa6.FaEllipsisVertical, { className: "px-2" }) }) }),
|
|
72
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
73
|
+
import_dropdown.DropdownMenu,
|
|
74
|
+
{
|
|
75
|
+
items,
|
|
76
|
+
disabledKeys: getDisabledKeys(items),
|
|
77
|
+
onAction,
|
|
78
|
+
children: (item) => {
|
|
79
|
+
if ("items" in item) {
|
|
80
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
81
|
+
import_dropdown.DropdownSection,
|
|
82
|
+
{
|
|
83
|
+
items: item.items,
|
|
84
|
+
title: item.label,
|
|
85
|
+
children: (sectionItem) => {
|
|
86
|
+
return renderMenuItem(sectionItem);
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
item.key
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
return renderMenuItem(item);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
)
|
|
96
|
+
] });
|
|
97
|
+
};
|
|
98
|
+
var Menu_default = Menu;
|
|
99
|
+
|
|
100
|
+
// src/Menu/index.ts
|
|
101
|
+
var Menu_default2 = Menu_default;
|
|
102
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Menu/index.ts","../../src/Menu/Menu.tsx"],"sourcesContent":["import Menu from './Menu';\n\nexport default Menu;\n","import type { DropdownSectionProps } from '@nextui-org/dropdown';\nimport type { Key, MouseEventHandler, ReactNode } from 'react';\n\nimport { FaEllipsisVertical } from 'react-icons/fa6';\n\nimport {\n Dropdown as NextDropdown,\n DropdownItem as NextDropdownItem,\n DropdownMenu as NextDropdownMenu,\n DropdownSection as NextDropdownSection,\n DropdownTrigger as NextDropdownTrigger,\n} from '@nextui-org/dropdown';\nimport cn from 'classnames';\nimport createDebug from 'debug';\n\nconst debug = createDebug('component:Menu');\n\n/**\n * Menu item type\n */\nexport interface MenuItem {\n /** unique identifier */\n key: string;\n /** CSS class name */\n className?: string;\n /** additional description shown under the label */\n description?: string;\n /** disables the menu item */\n disabled?: boolean;\n /** menu item icon */\n icon?: ReactNode;\n /** menu item name */\n label: ReactNode;\n /** click event handler */\n onClick?: MouseEventHandler<HTMLLIElement>;\n /** e2e test identifier */\n testId?: string;\n}\n\n/**\n * Menu section type\n */\nexport interface MenuSection {\n /** unique identifier */\n key: string;\n /** section label */\n label: ReactNode;\n /** section items (array of MenuItem) */\n items: MenuItem[];\n}\n\nexport interface MenuProps {\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string | string[];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** menu item structure */\n items: (MenuSection | MenuItem)[];\n /** disable menu trigger */\n isDisabled?: boolean;\n /** called if item is selected */\n onAction?: (key: Key) => void;\n}\n\n/** returns String[] of disabled items/keys */\nconst getDisabledKeys = (items: (MenuSection | MenuItem)[]) => {\n return (\n items\n // @ts-expect-error typing issue with MenuSection | MenuItem\n .map((item) => (typeof item?.items === 'undefined' ? item : item.items))\n .flat<MenuItem[]>()\n .filter((item) => {\n return Object.hasOwn(item, 'disabled') && item.disabled === true;\n })\n .map((item) => item.key)\n );\n};\n\nconst renderMenuItem = (item: MenuItem) => (\n <NextDropdownItem\n className={item.className}\n data-testid={item.testId || item.key}\n description={item.description}\n key={item.key}\n onClick={item.onClick}\n startContent={item.icon}\n >\n {item.label}\n </NextDropdownItem>\n);\n\n/**\n * Dropdown menu component based on [NextUI Dropdown](https://nextui.org/docs/components/dropdown)\n */\nconst Menu = ({\n children = null,\n className = undefined,\n onAction = undefined,\n testId = undefined,\n isDisabled = false,\n items,\n}: MenuProps) => {\n debug('Menu', { items });\n\n return (\n <NextDropdown isDisabled={isDisabled}>\n <NextDropdownTrigger className={cn(className)} data-testid={testId}>\n {/* eslint-disable-next-line react/button-has-type */}\n <button>{children || <FaEllipsisVertical className=\"px-2\" />}</button>\n </NextDropdownTrigger>\n <NextDropdownMenu\n // aria-label=\"Dynamic Actions\"\n items={items}\n disabledKeys={getDisabledKeys(items)}\n onAction={onAction}\n >\n {(item) => {\n if ('items' in item) {\n return (\n <NextDropdownSection\n items={item.items as MenuSection['items']}\n title={item.label as DropdownSectionProps['title']}\n key={item.key}\n >\n {/* @ts-expect-error ts problem here with render fn */}\n {(sectionItem) => {\n return renderMenuItem(sectionItem);\n }}\n </NextDropdownSection>\n );\n }\n return renderMenuItem(item);\n }}\n </NextDropdownMenu>\n </NextDropdown>\n );\n};\n\nexport default Menu;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iBAAAA;AAAA;AAAA;;;ACGA,iBAAmC;AAEnC,sBAMO;AACP,wBAAe;AACf,mBAAwB;AAoEtB;AAlEF,IAAM,YAAQ,aAAAC,SAAY,gBAAgB;AAoD1C,IAAM,kBAAkB,CAAC,UAAsC;AAC7D,SACE,MAEG,IAAI,CAAC,SAAU,OAAO,MAAM,UAAU,cAAc,OAAO,KAAK,KAAM,EACtE,KAAiB,EACjB,OAAO,CAAC,SAAS;AAChB,WAAO,OAAO,OAAO,MAAM,UAAU,KAAK,KAAK,aAAa;AAAA,EAC9D,CAAC,EACA,IAAI,CAAC,SAAS,KAAK,GAAG;AAE7B;AAEA,IAAM,iBAAiB,CAAC,SACtB;AAAA,EAAC,gBAAAC;AAAA,EAAA;AAAA,IACC,WAAW,KAAK;AAAA,IAChB,eAAa,KAAK,UAAU,KAAK;AAAA,IACjC,aAAa,KAAK;AAAA,IAElB,SAAS,KAAK;AAAA,IACd,cAAc,KAAK;AAAA,IAElB,eAAK;AAAA;AAAA,EAJD,KAAK;AAKZ;AAMF,IAAM,OAAO,CAAC;AAAA,EACZ,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,SAAS;AAAA,EACT,aAAa;AAAA,EACb;AACF,MAAiB;AACf,QAAM,QAAQ,EAAE,MAAM,CAAC;AAEvB,SACE,6CAAC,gBAAAC,UAAA,EAAa,YACZ;AAAA,gDAAC,gBAAAC,iBAAA,EAAoB,eAAW,kBAAAC,SAAG,SAAS,GAAG,eAAa,QAE1D,sDAAC,YAAQ,sBAAY,4CAAC,iCAAmB,WAAU,QAAO,GAAG,GAC/D;AAAA,IACA;AAAA,MAAC,gBAAAC;AAAA,MAAA;AAAA,QAEC;AAAA,QACA,cAAc,gBAAgB,KAAK;AAAA,QACnC;AAAA,QAEC,WAAC,SAAS;AACT,cAAI,WAAW,MAAM;AACnB,mBACE;AAAA,cAAC,gBAAAC;AAAA,cAAA;AAAA,gBACC,OAAO,KAAK;AAAA,gBACZ,OAAO,KAAK;AAAA,gBAIX,WAAC,gBAAgB;AAChB,yBAAO,eAAe,WAAW;AAAA,gBACnC;AAAA;AAAA,cALK,KAAK;AAAA,YAMZ;AAAA,UAEJ;AACA,iBAAO,eAAe,IAAI;AAAA,QAC5B;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;AAEA,IAAO,eAAQ;;;AD1If,IAAOC,gBAAQ;","names":["Menu_default","createDebug","NextDropdownItem","NextDropdown","NextDropdownTrigger","cn","NextDropdownMenu","NextDropdownSection","Menu_default"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Menu/index.ts"],"sourcesContent":["import Menu from './Menu';\n\nexport default Menu;\n"],"mappings":";;;;;AAEA,IAAOA,gBAAQ;","names":["Menu_default"]}
|