@fuf-stack/pixels 0.0.2
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/LICENSE +21 -0
- package/dist/Button/Button.cjs +111 -0
- package/dist/Button/Button.cjs.map +1 -0
- package/dist/Button/Button.d.cts +36 -0
- package/dist/Button/Button.d.ts +36 -0
- package/dist/Button/Button.js +8 -0
- package/dist/Button/Button.js.map +1 -0
- package/dist/Button/index.cjs +116 -0
- package/dist/Button/index.cjs.map +1 -0
- package/dist/Button/index.d.cts +9 -0
- package/dist/Button/index.d.ts +9 -0
- package/dist/Button/index.js +11 -0
- package/dist/Button/index.js.map +1 -0
- package/dist/Button/subcomponents/LoadingSpinner.cjs +57 -0
- package/dist/Button/subcomponents/LoadingSpinner.cjs.map +1 -0
- package/dist/Button/subcomponents/LoadingSpinner.d.cts +9 -0
- package/dist/Button/subcomponents/LoadingSpinner.d.ts +9 -0
- package/dist/Button/subcomponents/LoadingSpinner.js +7 -0
- package/dist/Button/subcomponents/LoadingSpinner.js.map +1 -0
- package/dist/Card/Card.cjs +137 -0
- package/dist/Card/Card.cjs.map +1 -0
- package/dist/Card/Card.d.cts +95 -0
- package/dist/Card/Card.d.ts +95 -0
- package/dist/Card/Card.js +9 -0
- package/dist/Card/Card.js.map +1 -0
- package/dist/Card/index.cjs +137 -0
- package/dist/Card/index.cjs.map +1 -0
- package/dist/Card/index.d.cts +9 -0
- package/dist/Card/index.d.ts +9 -0
- package/dist/Card/index.js +10 -0
- package/dist/Card/index.js.map +1 -0
- package/dist/chunk-XPTSDDXG.js +108 -0
- package/dist/chunk-XPTSDDXG.js.map +1 -0
- package/dist/chunk-ZFEVTQWW.js +37 -0
- package/dist/chunk-ZFEVTQWW.js.map +1 -0
- package/dist/chunk-ZXTDGCUF.js +50 -0
- package/dist/chunk-ZXTDGCUF.js.map +1 -0
- package/package.json +57 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Fröhlich und Frei GmbH
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,111 @@
|
|
|
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/Button/Button.tsx
|
|
31
|
+
var Button_exports = {};
|
|
32
|
+
__export(Button_exports, {
|
|
33
|
+
default: () => Button_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(Button_exports);
|
|
36
|
+
var import_button = require("@nextui-org/button");
|
|
37
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
38
|
+
|
|
39
|
+
// src/Button/subcomponents/LoadingSpinner.tsx
|
|
40
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
|
+
var LoadingSpinner_default = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
42
|
+
"svg",
|
|
43
|
+
{
|
|
44
|
+
className: "animate-spin h-5 w-5 text-current",
|
|
45
|
+
fill: "none",
|
|
46
|
+
viewBox: "0 0 24 24",
|
|
47
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
50
|
+
"circle",
|
|
51
|
+
{
|
|
52
|
+
className: "opacity-25",
|
|
53
|
+
cx: "12",
|
|
54
|
+
cy: "12",
|
|
55
|
+
r: "10",
|
|
56
|
+
stroke: "currentColor",
|
|
57
|
+
strokeWidth: "4"
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
61
|
+
"path",
|
|
62
|
+
{
|
|
63
|
+
className: "opacity-75",
|
|
64
|
+
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",
|
|
65
|
+
fill: "currentColor"
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
// src/Button/Button.tsx
|
|
73
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
74
|
+
var Button = ({
|
|
75
|
+
ariaLabel = void 0,
|
|
76
|
+
children = void 0,
|
|
77
|
+
className = void 0,
|
|
78
|
+
color = "default",
|
|
79
|
+
disabled = false,
|
|
80
|
+
icon = void 0,
|
|
81
|
+
loading = false,
|
|
82
|
+
onClick = void 0,
|
|
83
|
+
size = void 0,
|
|
84
|
+
testId = void 0,
|
|
85
|
+
type = void 0,
|
|
86
|
+
variant = "solid"
|
|
87
|
+
}) => {
|
|
88
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
89
|
+
import_button.Button,
|
|
90
|
+
{
|
|
91
|
+
"aria-label": ariaLabel,
|
|
92
|
+
className: (0, import_classnames.default)(className),
|
|
93
|
+
color,
|
|
94
|
+
"data-testid": testId,
|
|
95
|
+
isDisabled: disabled,
|
|
96
|
+
isIconOnly: !!(icon && !children),
|
|
97
|
+
isLoading: loading,
|
|
98
|
+
onPress: onClick,
|
|
99
|
+
size,
|
|
100
|
+
spinner: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(LoadingSpinner_default, {}),
|
|
101
|
+
type,
|
|
102
|
+
variant,
|
|
103
|
+
children: [
|
|
104
|
+
icon,
|
|
105
|
+
children
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
};
|
|
110
|
+
var Button_default = Button;
|
|
111
|
+
//# sourceMappingURL=Button.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Button/Button.tsx","../../src/Button/subcomponents/LoadingSpinner.tsx"],"sourcesContent":["import type { ButtonProps as NextButtonProps } from '@nextui-org/button';\nimport type { ReactNode } from 'react';\n\nimport { Button as NextButton } from '@nextui-org/button';\nimport cn from 'classnames';\n\nimport LoadingSpinner from './subcomponents/LoadingSpinner';\n\nexport interface ButtonProps {\n /** sets HTML aria-label attribute */\n ariaLabel?: string;\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string | string[];\n /** next ui button color */\n color?: NextButtonProps['color'];\n /** disables function of the button. */\n disabled?: boolean;\n /** If set loading animation is shown */\n loading?: boolean;\n /** optional icon */\n icon?: ReactNode;\n /** on click event */\n onClick?: NextButtonProps['onPress'];\n /** 3 size options */\n size?: NextButtonProps['size'];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** sets the button type. */\n type?: 'button' | 'submit' | 'reset' | undefined;\n /** next ui button variants */\n variant?: NextButtonProps['variant'];\n}\n\n/**\n * Button component based on [NextUI Button](https://nextui.org/docs/components/button)\n */\nconst Button = ({\n ariaLabel = undefined,\n children = undefined,\n className = undefined,\n color = 'default',\n disabled = false,\n icon = undefined,\n loading = false,\n onClick = undefined,\n size = undefined,\n testId = undefined,\n type = undefined,\n variant = 'solid',\n}: ButtonProps) => {\n return (\n <NextButton\n aria-label={ariaLabel}\n className={cn(className)}\n color={color}\n data-testid={testId}\n isDisabled={disabled}\n isIconOnly={!!(icon && !children)}\n isLoading={loading}\n onPress={onClick}\n size={size}\n spinner={<LoadingSpinner />}\n type={type}\n variant={variant}\n >\n {icon}\n {children}\n </NextButton>\n );\n};\n\nexport default Button;\n","/**\n * svg loading spinner for button\n * @see https://nextui.org/docs/components/button#loading\n * */\nexport default () => (\n <svg\n className=\"animate-spin h-5 w-5 text-current\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle\n className=\"opacity-25\"\n cx=\"12\"\n cy=\"12\"\n r=\"10\"\n stroke=\"currentColor\"\n strokeWidth=\"4\"\n />\n <path\n className=\"opacity-75\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAAqC;AACrC,wBAAe;;;ACCb;AADF,IAAO,yBAAQ,MACb;AAAA,EAAC;AAAA;AAAA,IACC,WAAU;AAAA,IACV,MAAK;AAAA,IACL,SAAQ;AAAA,IACR,OAAM;AAAA,IAEN;AAAA;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,IAAG;AAAA,UACH,IAAG;AAAA,UACH,GAAE;AAAA,UACF,QAAO;AAAA,UACP,aAAY;AAAA;AAAA,MACd;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,GAAE;AAAA,UACF,MAAK;AAAA;AAAA,MACP;AAAA;AAAA;AACF;;;AD6BE,IAAAA,sBAAA;AAfJ,IAAM,SAAS,CAAC;AAAA,EACd,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,OAAO;AAAA,EACP,UAAU;AAAA,EACV,UAAU;AAAA,EACV,OAAO;AAAA,EACP,SAAS;AAAA,EACT,OAAO;AAAA,EACP,UAAU;AACZ,MAAmB;AACjB,SACE;AAAA,IAAC,cAAAC;AAAA,IAAA;AAAA,MACC,cAAY;AAAA,MACZ,eAAW,kBAAAC,SAAG,SAAS;AAAA,MACvB;AAAA,MACA,eAAa;AAAA,MACb,YAAY;AAAA,MACZ,YAAY,CAAC,EAAE,QAAQ,CAAC;AAAA,MACxB,WAAW;AAAA,MACX,SAAS;AAAA,MACT;AAAA,MACA,SAAS,6CAAC,0BAAe;AAAA,MACzB;AAAA,MACA;AAAA,MAEC;AAAA;AAAA,QACA;AAAA;AAAA;AAAA,EACH;AAEJ;AAEA,IAAO,iBAAQ;","names":["import_jsx_runtime","NextButton","cn"]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ButtonProps as ButtonProps$1 } from '@nextui-org/button';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
interface ButtonProps {
|
|
6
|
+
/** sets HTML aria-label attribute */
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
/** child components */
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
/** CSS class name */
|
|
11
|
+
className?: string | string[];
|
|
12
|
+
/** next ui button color */
|
|
13
|
+
color?: ButtonProps$1['color'];
|
|
14
|
+
/** disables function of the button. */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** If set loading animation is shown */
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
/** optional icon */
|
|
19
|
+
icon?: ReactNode;
|
|
20
|
+
/** on click event */
|
|
21
|
+
onClick?: ButtonProps$1['onPress'];
|
|
22
|
+
/** 3 size options */
|
|
23
|
+
size?: ButtonProps$1['size'];
|
|
24
|
+
/** HTML data-testid attribute used in e2e tests */
|
|
25
|
+
testId?: string;
|
|
26
|
+
/** sets the button type. */
|
|
27
|
+
type?: 'button' | 'submit' | 'reset' | undefined;
|
|
28
|
+
/** next ui button variants */
|
|
29
|
+
variant?: ButtonProps$1['variant'];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Button component based on [NextUI Button](https://nextui.org/docs/components/button)
|
|
33
|
+
*/
|
|
34
|
+
declare const Button: ({ ariaLabel, children, className, color, disabled, icon, loading, onClick, size, testId, type, variant, }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
35
|
+
|
|
36
|
+
export { type ButtonProps, Button as default };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ButtonProps as ButtonProps$1 } from '@nextui-org/button';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
interface ButtonProps {
|
|
6
|
+
/** sets HTML aria-label attribute */
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
/** child components */
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
/** CSS class name */
|
|
11
|
+
className?: string | string[];
|
|
12
|
+
/** next ui button color */
|
|
13
|
+
color?: ButtonProps$1['color'];
|
|
14
|
+
/** disables function of the button. */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** If set loading animation is shown */
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
/** optional icon */
|
|
19
|
+
icon?: ReactNode;
|
|
20
|
+
/** on click event */
|
|
21
|
+
onClick?: ButtonProps$1['onPress'];
|
|
22
|
+
/** 3 size options */
|
|
23
|
+
size?: ButtonProps$1['size'];
|
|
24
|
+
/** HTML data-testid attribute used in e2e tests */
|
|
25
|
+
testId?: string;
|
|
26
|
+
/** sets the button type. */
|
|
27
|
+
type?: 'button' | 'submit' | 'reset' | undefined;
|
|
28
|
+
/** next ui button variants */
|
|
29
|
+
variant?: ButtonProps$1['variant'];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Button component based on [NextUI Button](https://nextui.org/docs/components/button)
|
|
33
|
+
*/
|
|
34
|
+
declare const Button: ({ ariaLabel, children, className, color, disabled, icon, loading, onClick, size, testId, type, variant, }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
35
|
+
|
|
36
|
+
export { type ButtonProps, Button as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,116 @@
|
|
|
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/Button/index.ts
|
|
31
|
+
var Button_exports = {};
|
|
32
|
+
__export(Button_exports, {
|
|
33
|
+
default: () => Button_default2
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(Button_exports);
|
|
36
|
+
|
|
37
|
+
// src/Button/Button.tsx
|
|
38
|
+
var import_button = require("@nextui-org/button");
|
|
39
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
40
|
+
|
|
41
|
+
// src/Button/subcomponents/LoadingSpinner.tsx
|
|
42
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
43
|
+
var LoadingSpinner_default = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
44
|
+
"svg",
|
|
45
|
+
{
|
|
46
|
+
className: "animate-spin h-5 w-5 text-current",
|
|
47
|
+
fill: "none",
|
|
48
|
+
viewBox: "0 0 24 24",
|
|
49
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
52
|
+
"circle",
|
|
53
|
+
{
|
|
54
|
+
className: "opacity-25",
|
|
55
|
+
cx: "12",
|
|
56
|
+
cy: "12",
|
|
57
|
+
r: "10",
|
|
58
|
+
stroke: "currentColor",
|
|
59
|
+
strokeWidth: "4"
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
63
|
+
"path",
|
|
64
|
+
{
|
|
65
|
+
className: "opacity-75",
|
|
66
|
+
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",
|
|
67
|
+
fill: "currentColor"
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
// src/Button/Button.tsx
|
|
75
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
76
|
+
var Button = ({
|
|
77
|
+
ariaLabel = void 0,
|
|
78
|
+
children = void 0,
|
|
79
|
+
className = void 0,
|
|
80
|
+
color = "default",
|
|
81
|
+
disabled = false,
|
|
82
|
+
icon = void 0,
|
|
83
|
+
loading = false,
|
|
84
|
+
onClick = void 0,
|
|
85
|
+
size = void 0,
|
|
86
|
+
testId = void 0,
|
|
87
|
+
type = void 0,
|
|
88
|
+
variant = "solid"
|
|
89
|
+
}) => {
|
|
90
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
91
|
+
import_button.Button,
|
|
92
|
+
{
|
|
93
|
+
"aria-label": ariaLabel,
|
|
94
|
+
className: (0, import_classnames.default)(className),
|
|
95
|
+
color,
|
|
96
|
+
"data-testid": testId,
|
|
97
|
+
isDisabled: disabled,
|
|
98
|
+
isIconOnly: !!(icon && !children),
|
|
99
|
+
isLoading: loading,
|
|
100
|
+
onPress: onClick,
|
|
101
|
+
size,
|
|
102
|
+
spinner: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(LoadingSpinner_default, {}),
|
|
103
|
+
type,
|
|
104
|
+
variant,
|
|
105
|
+
children: [
|
|
106
|
+
icon,
|
|
107
|
+
children
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
};
|
|
112
|
+
var Button_default = Button;
|
|
113
|
+
|
|
114
|
+
// src/Button/index.ts
|
|
115
|
+
var Button_default2 = Button_default;
|
|
116
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Button/index.ts","../../src/Button/Button.tsx","../../src/Button/subcomponents/LoadingSpinner.tsx"],"sourcesContent":["import type { ButtonProps } from './Button';\n\nimport Button from './Button';\n\nexport default Button;\n\nexport type { ButtonProps };\n","import type { ButtonProps as NextButtonProps } from '@nextui-org/button';\nimport type { ReactNode } from 'react';\n\nimport { Button as NextButton } from '@nextui-org/button';\nimport cn from 'classnames';\n\nimport LoadingSpinner from './subcomponents/LoadingSpinner';\n\nexport interface ButtonProps {\n /** sets HTML aria-label attribute */\n ariaLabel?: string;\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string | string[];\n /** next ui button color */\n color?: NextButtonProps['color'];\n /** disables function of the button. */\n disabled?: boolean;\n /** If set loading animation is shown */\n loading?: boolean;\n /** optional icon */\n icon?: ReactNode;\n /** on click event */\n onClick?: NextButtonProps['onPress'];\n /** 3 size options */\n size?: NextButtonProps['size'];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** sets the button type. */\n type?: 'button' | 'submit' | 'reset' | undefined;\n /** next ui button variants */\n variant?: NextButtonProps['variant'];\n}\n\n/**\n * Button component based on [NextUI Button](https://nextui.org/docs/components/button)\n */\nconst Button = ({\n ariaLabel = undefined,\n children = undefined,\n className = undefined,\n color = 'default',\n disabled = false,\n icon = undefined,\n loading = false,\n onClick = undefined,\n size = undefined,\n testId = undefined,\n type = undefined,\n variant = 'solid',\n}: ButtonProps) => {\n return (\n <NextButton\n aria-label={ariaLabel}\n className={cn(className)}\n color={color}\n data-testid={testId}\n isDisabled={disabled}\n isIconOnly={!!(icon && !children)}\n isLoading={loading}\n onPress={onClick}\n size={size}\n spinner={<LoadingSpinner />}\n type={type}\n variant={variant}\n >\n {icon}\n {children}\n </NextButton>\n );\n};\n\nexport default Button;\n","/**\n * svg loading spinner for button\n * @see https://nextui.org/docs/components/button#loading\n * */\nexport default () => (\n <svg\n className=\"animate-spin h-5 w-5 text-current\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle\n className=\"opacity-25\"\n cx=\"12\"\n cy=\"12\"\n r=\"10\"\n stroke=\"currentColor\"\n strokeWidth=\"4\"\n />\n <path\n className=\"opacity-75\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 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;;;ADrEf,IAAOC,kBAAQ;","names":["Button_default","import_jsx_runtime","NextButton","cn","Button_default"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Button/index.ts"],"sourcesContent":["import type { ButtonProps } from './Button';\n\nimport Button from './Button';\n\nexport default Button;\n\nexport type { ButtonProps };\n"],"mappings":";;;;;;AAIA,IAAOA,kBAAQ;","names":["Button_default"]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/Button/subcomponents/LoadingSpinner.tsx
|
|
21
|
+
var LoadingSpinner_exports = {};
|
|
22
|
+
__export(LoadingSpinner_exports, {
|
|
23
|
+
default: () => LoadingSpinner_default
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(LoadingSpinner_exports);
|
|
26
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
+
var LoadingSpinner_default = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
28
|
+
"svg",
|
|
29
|
+
{
|
|
30
|
+
className: "animate-spin h-5 w-5 text-current",
|
|
31
|
+
fill: "none",
|
|
32
|
+
viewBox: "0 0 24 24",
|
|
33
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
36
|
+
"circle",
|
|
37
|
+
{
|
|
38
|
+
className: "opacity-25",
|
|
39
|
+
cx: "12",
|
|
40
|
+
cy: "12",
|
|
41
|
+
r: "10",
|
|
42
|
+
stroke: "currentColor",
|
|
43
|
+
strokeWidth: "4"
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
47
|
+
"path",
|
|
48
|
+
{
|
|
49
|
+
className: "opacity-75",
|
|
50
|
+
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",
|
|
51
|
+
fill: "currentColor"
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
//# sourceMappingURL=LoadingSpinner.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/Button/subcomponents/LoadingSpinner.tsx"],"sourcesContent":["/**\n * svg loading spinner for button\n * @see https://nextui.org/docs/components/button#loading\n * */\nexport default () => (\n <svg\n className=\"animate-spin h-5 w-5 text-current\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle\n className=\"opacity-25\"\n cx=\"12\"\n cy=\"12\"\n r=\"10\"\n stroke=\"currentColor\"\n strokeWidth=\"4\"\n />\n <path\n className=\"opacity-75\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKE;AADF,IAAO,yBAAQ,MACb;AAAA,EAAC;AAAA;AAAA,IACC,WAAU;AAAA,IACV,MAAK;AAAA,IACL,SAAQ;AAAA,IACR,OAAM;AAAA,IAEN;AAAA;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,IAAG;AAAA,UACH,IAAG;AAAA,UACH,GAAE;AAAA,UACF,QAAO;AAAA,UACP,aAAY;AAAA;AAAA,MACd;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,GAAE;AAAA,UACF,MAAK;AAAA;AAAA,MACP;AAAA;AAAA;AACF;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,137 @@
|
|
|
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/Card/Card.tsx
|
|
31
|
+
var Card_exports = {};
|
|
32
|
+
__export(Card_exports, {
|
|
33
|
+
cardVariants: () => cardVariants,
|
|
34
|
+
default: () => Card_default
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(Card_exports);
|
|
37
|
+
var import_card = require("@nextui-org/card");
|
|
38
|
+
var import_divider = require("@nextui-org/divider");
|
|
39
|
+
var import_debug = __toESM(require("debug"), 1);
|
|
40
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
41
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
+
var debug = (0, import_debug.default)("component:Card");
|
|
43
|
+
var cardVariants = (0, import_tailwind_variants.tv)({
|
|
44
|
+
slots: {
|
|
45
|
+
base: "border border-slate-300",
|
|
46
|
+
body: "",
|
|
47
|
+
divider: "my-0 bg-slate-300",
|
|
48
|
+
footer: "",
|
|
49
|
+
header: "text-base font-semibold"
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
var Card = ({
|
|
53
|
+
children = null,
|
|
54
|
+
className = void 0,
|
|
55
|
+
testId = void 0,
|
|
56
|
+
header = void 0,
|
|
57
|
+
footer = void 0
|
|
58
|
+
}) => {
|
|
59
|
+
debug("Card", { className, testId });
|
|
60
|
+
const {
|
|
61
|
+
base: baseSlot,
|
|
62
|
+
body: bodySlot,
|
|
63
|
+
divider: dividerSlot,
|
|
64
|
+
footer: footerSlot,
|
|
65
|
+
header: headerSlot
|
|
66
|
+
} = cardVariants();
|
|
67
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
68
|
+
import_card.Card,
|
|
69
|
+
{
|
|
70
|
+
"data-testid": testId && `card_${testId}`,
|
|
71
|
+
className: baseSlot({
|
|
72
|
+
className: typeof className === "object" ? className.base : className
|
|
73
|
+
}),
|
|
74
|
+
fullWidth: true,
|
|
75
|
+
radius: "sm",
|
|
76
|
+
shadow: "none",
|
|
77
|
+
children: [
|
|
78
|
+
header && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
79
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
80
|
+
import_card.CardHeader,
|
|
81
|
+
{
|
|
82
|
+
"data-testid": testId && `card_header_${testId}`,
|
|
83
|
+
className: headerSlot({
|
|
84
|
+
className: typeof className === "object" && className.header
|
|
85
|
+
}),
|
|
86
|
+
children: header
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
90
|
+
import_divider.Divider,
|
|
91
|
+
{
|
|
92
|
+
className: dividerSlot({
|
|
93
|
+
className: typeof className === "object" && className.divider
|
|
94
|
+
})
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
] }),
|
|
98
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
99
|
+
import_card.CardBody,
|
|
100
|
+
{
|
|
101
|
+
"data-testid": testId && `card_body_${testId}`,
|
|
102
|
+
className: bodySlot({
|
|
103
|
+
className: typeof className === "object" && className.body
|
|
104
|
+
}),
|
|
105
|
+
children
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
109
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
110
|
+
import_divider.Divider,
|
|
111
|
+
{
|
|
112
|
+
className: dividerSlot({
|
|
113
|
+
className: typeof className === "object" && className.divider
|
|
114
|
+
})
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
118
|
+
import_card.CardFooter,
|
|
119
|
+
{
|
|
120
|
+
"data-testid": testId && `card_footer_${testId}`,
|
|
121
|
+
className: footerSlot({
|
|
122
|
+
className: typeof className === "object" && className.footer
|
|
123
|
+
}),
|
|
124
|
+
children: footer
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
] })
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
};
|
|
132
|
+
var Card_default = Card;
|
|
133
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
134
|
+
0 && (module.exports = {
|
|
135
|
+
cardVariants
|
|
136
|
+
});
|
|
137
|
+
//# sourceMappingURL=Card.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Card/Card.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport {\n Card as NextCard,\n CardBody as NextCardBody,\n CardFooter as NextCardFooter,\n CardHeader as NextCardHeader,\n} from '@nextui-org/card';\nimport { Divider as NextDivider } from '@nextui-org/divider';\nimport createDebug from 'debug';\nimport { tv } from 'tailwind-variants';\n\nconst debug = createDebug('component:Card');\n\n// card styling variants\nexport const cardVariants = tv({\n slots: {\n base: 'border border-slate-300',\n body: '',\n divider: 'my-0 bg-slate-300',\n footer: '',\n header: 'text-base font-semibold',\n },\n});\n\ntype CardVariantProps = VariantProps<typeof cardVariants>;\ntype CardVariantSlots = Partial<\n Record<keyof ReturnType<typeof cardVariants>, string>\n>;\n\nexport interface CardProps extends CardVariantProps {\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string | CardVariantSlots;\n /** footer content */\n footer?: ReactNode;\n /** header content */\n header?: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * Card component based on [NextUI Card](https://nextui.org/docs/components/card)\n */\nconst Card = ({\n children = null,\n className = undefined,\n testId = undefined,\n header = undefined,\n footer = undefined,\n}: CardProps) => {\n debug('Card', { className, testId });\n const {\n base: baseSlot,\n body: bodySlot,\n divider: dividerSlot,\n footer: footerSlot,\n header: headerSlot,\n } = cardVariants();\n\n return (\n <NextCard\n data-testid={testId && `card_${testId}`}\n className={baseSlot({\n className: typeof className === 'object' ? className.base : className,\n })}\n fullWidth\n radius=\"sm\"\n shadow=\"none\"\n >\n {header && (\n <>\n <NextCardHeader\n data-testid={testId && `card_header_${testId}`}\n className={headerSlot({\n className: typeof className === 'object' && className.header,\n })}\n >\n {header}\n </NextCardHeader>\n <NextDivider\n className={dividerSlot({\n className: typeof className === 'object' && className.divider,\n })}\n />\n </>\n )}\n <NextCardBody\n data-testid={testId && `card_body_${testId}`}\n className={bodySlot({\n className: typeof className === 'object' && className.body,\n })}\n >\n {children}\n </NextCardBody>\n {footer && (\n <>\n <NextDivider\n className={dividerSlot({\n className: typeof className === 'object' && className.divider,\n })}\n />\n <NextCardFooter\n data-testid={testId && `card_footer_${testId}`}\n className={footerSlot({\n className: typeof className === 'object' && className.footer,\n })}\n >\n {footer}\n </NextCardFooter>\n </>\n )}\n </NextCard>\n );\n};\n\nexport default Card;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAKO;AACP,qBAAuC;AACvC,mBAAwB;AACxB,+BAAmB;AA+DX;AA7DR,IAAM,YAAQ,aAAAA,SAAY,gBAAgB;AAGnC,IAAM,mBAAe,6BAAG;AAAA,EAC7B,OAAO;AAAA,IACL,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,IACT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