@cerberus-design/react 0.9.2-next-dd3210f → 0.9.2-next-72b73ca
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/build/legacy/_tsup-dts-rollup.d.cts +10 -0
- package/build/legacy/components/Spinner.cjs +104 -0
- package/build/legacy/components/Spinner.cjs.map +1 -0
- package/build/legacy/index.cjs +166 -88
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +10 -0
- package/build/modern/chunk-RN6HSKIG.js +80 -0
- package/build/modern/chunk-RN6HSKIG.js.map +1 -0
- package/build/modern/components/Spinner.js +7 -0
- package/build/modern/components/Spinner.js.map +1 -0
- package/build/modern/index.js +12 -8
- package/build/modern/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Spinner.tsx +60 -0
- package/src/index.ts +1 -0
|
@@ -1303,6 +1303,16 @@ declare type ShowResult = ((value: boolean | PromiseLike<boolean>) => void) | nu
|
|
|
1303
1303
|
export { ShowResult }
|
|
1304
1304
|
export { ShowResult as ShowResult_alias_1 }
|
|
1305
1305
|
|
|
1306
|
+
declare function Spinner(props: SpinnerProps): JSX_2.Element;
|
|
1307
|
+
export { Spinner }
|
|
1308
|
+
export { Spinner as Spinner_alias_1 }
|
|
1309
|
+
|
|
1310
|
+
declare type SpinnerProps = SVGProps<SVGSVGElement> & {
|
|
1311
|
+
size?: number | string;
|
|
1312
|
+
};
|
|
1313
|
+
export { SpinnerProps }
|
|
1314
|
+
export { SpinnerProps as SpinnerProps_alias_1 }
|
|
1315
|
+
|
|
1306
1316
|
/**
|
|
1307
1317
|
* This module contains the tag component.
|
|
1308
1318
|
* @module
|
|
@@ -0,0 +1,104 @@
|
|
|
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/components/Spinner.tsx
|
|
21
|
+
var Spinner_exports = {};
|
|
22
|
+
__export(Spinner_exports, {
|
|
23
|
+
Spinner: () => Spinner
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(Spinner_exports);
|
|
26
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
+
function Spinner(props) {
|
|
28
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
29
|
+
"svg",
|
|
30
|
+
{
|
|
31
|
+
"aria-busy": "true",
|
|
32
|
+
role: "status",
|
|
33
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
34
|
+
height: props.size,
|
|
35
|
+
width: props.size,
|
|
36
|
+
viewBox: "0 0 24 24",
|
|
37
|
+
...props,
|
|
38
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
39
|
+
"g",
|
|
40
|
+
{
|
|
41
|
+
fill: "none",
|
|
42
|
+
stroke: "currentColor",
|
|
43
|
+
strokeLinecap: "round",
|
|
44
|
+
strokeLinejoin: "round",
|
|
45
|
+
strokeWidth: 2,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
48
|
+
"path",
|
|
49
|
+
{
|
|
50
|
+
strokeDasharray: 16,
|
|
51
|
+
strokeDashoffset: 16,
|
|
52
|
+
d: "M12 3c4.97 0 9 4.03 9 9",
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
55
|
+
"animate",
|
|
56
|
+
{
|
|
57
|
+
fill: "freeze",
|
|
58
|
+
attributeName: "stroke-dashoffset",
|
|
59
|
+
dur: "0.15s",
|
|
60
|
+
values: "16;0"
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
64
|
+
"animateTransform",
|
|
65
|
+
{
|
|
66
|
+
attributeName: "transform",
|
|
67
|
+
dur: "0.75s",
|
|
68
|
+
repeatCount: "indefinite",
|
|
69
|
+
type: "rotate",
|
|
70
|
+
values: "0 12 12;360 12 12"
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
77
|
+
"path",
|
|
78
|
+
{
|
|
79
|
+
strokeDasharray: 64,
|
|
80
|
+
strokeDashoffset: 64,
|
|
81
|
+
strokeOpacity: 0.3,
|
|
82
|
+
d: "M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9Z",
|
|
83
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
84
|
+
"animate",
|
|
85
|
+
{
|
|
86
|
+
fill: "freeze",
|
|
87
|
+
attributeName: "stroke-dashoffset",
|
|
88
|
+
dur: "0.6s",
|
|
89
|
+
values: "64;0"
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
101
|
+
0 && (module.exports = {
|
|
102
|
+
Spinner
|
|
103
|
+
});
|
|
104
|
+
//# sourceMappingURL=Spinner.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Spinner.tsx"],"sourcesContent":["import type { SVGProps } from 'react'\n\nexport type SpinnerProps = SVGProps<SVGSVGElement> & {\n size?: number | string\n}\n\nexport function Spinner(props: SpinnerProps) {\n return (\n <svg\n aria-busy=\"true\"\n role=\"status\"\n xmlns=\"http://www.w3.org/2000/svg\"\n height={props.size}\n width={props.size}\n viewBox=\"0 0 24 24\"\n {...props}\n >\n <g\n fill=\"none\"\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth={2}\n >\n <path\n strokeDasharray={16}\n strokeDashoffset={16}\n d=\"M12 3c4.97 0 9 4.03 9 9\"\n >\n <animate\n fill=\"freeze\"\n attributeName=\"stroke-dashoffset\"\n dur=\"0.15s\"\n values=\"16;0\"\n ></animate>\n <animateTransform\n attributeName=\"transform\"\n dur=\"0.75s\"\n repeatCount=\"indefinite\"\n type=\"rotate\"\n values=\"0 12 12;360 12 12\"\n ></animateTransform>\n </path>\n <path\n strokeDasharray={64}\n strokeDashoffset={64}\n strokeOpacity={0.3}\n d=\"M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9Z\"\n >\n <animate\n fill=\"freeze\"\n attributeName=\"stroke-dashoffset\"\n dur=\"0.6s\"\n values=\"64;0\"\n ></animate>\n </path>\n </g>\n </svg>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBQ;AAlBD,SAAS,QAAQ,OAAqB;AAC3C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,MAAK;AAAA,MACL,OAAM;AAAA,MACN,QAAQ,MAAM;AAAA,MACd,OAAO,MAAM;AAAA,MACb,SAAQ;AAAA,MACP,GAAG;AAAA,MAEJ;AAAA,QAAC;AAAA;AAAA,UACC,MAAK;AAAA,UACL,QAAO;AAAA,UACP,eAAc;AAAA,UACd,gBAAe;AAAA,UACf,aAAa;AAAA,UAEb;AAAA;AAAA,cAAC;AAAA;AAAA,gBACC,iBAAiB;AAAA,gBACjB,kBAAkB;AAAA,gBAClB,GAAE;AAAA,gBAEF;AAAA;AAAA,oBAAC;AAAA;AAAA,sBACC,MAAK;AAAA,sBACL,eAAc;AAAA,sBACd,KAAI;AAAA,sBACJ,QAAO;AAAA;AAAA,kBACR;AAAA,kBACD;AAAA,oBAAC;AAAA;AAAA,sBACC,eAAc;AAAA,sBACd,KAAI;AAAA,sBACJ,aAAY;AAAA,sBACZ,MAAK;AAAA,sBACL,QAAO;AAAA;AAAA,kBACR;AAAA;AAAA;AAAA,YACH;AAAA,YACA;AAAA,cAAC;AAAA;AAAA,gBACC,iBAAiB;AAAA,gBACjB,kBAAkB;AAAA,gBAClB,eAAe;AAAA,gBACf,GAAE;AAAA,gBAEF;AAAA,kBAAC;AAAA;AAAA,oBACC,MAAK;AAAA,oBACL,eAAc;AAAA,oBACd,KAAI;AAAA,oBACJ,QAAO;AAAA;AAAA,gBACR;AAAA;AAAA,YACH;AAAA;AAAA;AAAA,MACF;AAAA;AAAA,EACF;AAEJ;","names":[]}
|