@postenbring/hedwig-react 0.0.0-20240621132302 → 0.0.0-20240625153040
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/accordion/accordion.mjs +2 -2
- package/dist/accordion/index.mjs +4 -4
- package/dist/{chunk-ROQH67YP.mjs → chunk-DCTQJS3S.mjs} +2 -2
- package/dist/chunk-EDGA5VVN.mjs +35 -0
- package/dist/chunk-EDGA5VVN.mjs.map +1 -0
- package/dist/{chunk-CXX4SXJG.mjs → chunk-YF42B5W7.mjs} +4 -4
- package/dist/footer/footer.mjs +3 -3
- package/dist/footer/index.mjs +3 -3
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -12
- package/dist/spinner/index.js +9 -2
- package/dist/spinner/index.js.map +1 -1
- package/dist/spinner/index.mjs +1 -1
- package/dist/spinner/spinner.d.ts +11 -0
- package/dist/spinner/spinner.d.ts.map +1 -1
- package/dist/spinner/spinner.js +9 -2
- package/dist/spinner/spinner.js.map +1 -1
- package/dist/spinner/spinner.mjs +1 -1
- package/package.json +2 -2
- package/src/spinner/spinner.stories.tsx +1 -0
- package/src/spinner/spinner.tsx +24 -2
- package/dist/chunk-ON37GDSJ.mjs +0 -28
- package/dist/chunk-ON37GDSJ.mjs.map +0 -1
- /package/dist/{chunk-ROQH67YP.mjs.map → chunk-DCTQJS3S.mjs.map} +0 -0
- /package/dist/{chunk-CXX4SXJG.mjs.map → chunk-YF42B5W7.mjs.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Accordion
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-YF42B5W7.mjs";
|
|
4
|
+
import "../chunk-EZVEYJOX.mjs";
|
|
4
5
|
import "../chunk-JZXZYEPG.mjs";
|
|
5
6
|
import "../chunk-MYVC3HMO.mjs";
|
|
6
|
-
import "../chunk-EZVEYJOX.mjs";
|
|
7
7
|
import "../chunk-YQFL5UN4.mjs";
|
|
8
8
|
import "../chunk-YOSPWY5K.mjs";
|
|
9
9
|
export {
|
package/dist/accordion/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../chunk-ZKMFJZSH.mjs";
|
|
2
2
|
import {
|
|
3
3
|
Accordion
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-YF42B5W7.mjs";
|
|
5
|
+
import {
|
|
6
|
+
AccordionItem
|
|
7
|
+
} from "../chunk-EZVEYJOX.mjs";
|
|
5
8
|
import {
|
|
6
9
|
AccordionContent
|
|
7
10
|
} from "../chunk-JZXZYEPG.mjs";
|
|
8
11
|
import {
|
|
9
12
|
AccordionHeader
|
|
10
13
|
} from "../chunk-MYVC3HMO.mjs";
|
|
11
|
-
import {
|
|
12
|
-
AccordionItem
|
|
13
|
-
} from "../chunk-EZVEYJOX.mjs";
|
|
14
14
|
import "../chunk-YQFL5UN4.mjs";
|
|
15
15
|
import "../chunk-YOSPWY5K.mjs";
|
|
16
16
|
export {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-AYCHNAU7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Accordion
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YF42B5W7.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__objRest,
|
|
12
12
|
__spreadProps,
|
|
@@ -106,4 +106,4 @@ export {
|
|
|
106
106
|
FooterLinkSection,
|
|
107
107
|
Footer
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=chunk-
|
|
109
|
+
//# sourceMappingURL=chunk-DCTQJS3S.mjs.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "./chunk-YOSPWY5K.mjs";
|
|
5
|
+
|
|
6
|
+
// src/spinner/spinner.tsx
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
import { clsx } from "@postenbring/hedwig-css/typed-classname";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
var Spinner = forwardRef(
|
|
11
|
+
(_a, ref) => {
|
|
12
|
+
var _b = _a, { size = "medium", title = "", delay = false, className, style: _style } = _b, rest = __objRest(_b, ["size", "title", "delay", "className", "style"]);
|
|
13
|
+
const style = __spreadValues(__spreadValues({}, _style), typeof delay === "string" && { "--hds-spinner-delay": delay });
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
"div",
|
|
16
|
+
__spreadValues({
|
|
17
|
+
title,
|
|
18
|
+
style,
|
|
19
|
+
className: clsx(
|
|
20
|
+
"hds-spinner",
|
|
21
|
+
`hds-spinner--${size}`,
|
|
22
|
+
delay && "hds-spinner--delay",
|
|
23
|
+
className
|
|
24
|
+
),
|
|
25
|
+
ref
|
|
26
|
+
}, rest)
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
Spinner.displayName = "Spinner";
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
Spinner
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=chunk-EDGA5VVN.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/spinner/spinner.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\n\ninterface SpinnerPropsInner extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * The size of the Spinner\n *\n * @default \"medium\"\n */\n size?: \"small\" | \"medium\" | \"large\";\n\n /**\n * The tooltip title\n *\n * @default \"\"\n */\n title?: string;\n\n /**\n * Delay in miliseconds before the spinner fades in\n *\n * If set to `true`, a default delay of 800ms will be applied.\n *\n * @example\n * 0.8s\n *\n * @default false\n */\n delay?: `${string}ms` | `${string}s` | boolean;\n}\n\nexport type SpinnerProps = SpinnerPropsInner;\n\n/**\n * Use spinner loading states as placeholder for your content while waiting for data to load.\n */\nexport const Spinner = forwardRef<HTMLDivElement, SpinnerProps>(\n ({ size = \"medium\", title = \"\", delay = false, className, style: _style, ...rest }, ref) => {\n const style: React.CSSProperties & { \"--hds-spinner-delay\"?: string } = {\n ..._style,\n ...(typeof delay === \"string\" && { \"--hds-spinner-delay\": delay }),\n };\n return (\n <div\n title={title}\n style={style}\n className={clsx(\n \"hds-spinner\",\n `hds-spinner--${size}`,\n delay && \"hds-spinner--delay\",\n className as undefined,\n )}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nSpinner.displayName = \"Spinner\";\n"],"mappings":";;;;;;AAAA,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AA0Cf;AAPC,IAAM,UAAU;AAAA,EACrB,CAAC,IAAmF,QAAQ;AAA3F,iBAAE,SAAO,UAAU,QAAQ,IAAI,QAAQ,OAAO,WAAW,OAAO,OArCnE,IAqCG,IAA2E,iBAA3E,IAA2E,CAAzE,QAAiB,SAAY,SAAe,aAAW;AACxD,UAAM,QAAkE,kCACnE,SACC,OAAO,UAAU,YAAY,EAAE,uBAAuB,MAAM;AAElE,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA,WAAW;AAAA,UACT;AAAA,UACA,gBAAgB,IAAI;AAAA,UACpB,SAAS;AAAA,UACT;AAAA,QACF;AAAA,QACA;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,QAAQ,cAAc;","names":[]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AccordionItem
|
|
3
|
+
} from "./chunk-EZVEYJOX.mjs";
|
|
1
4
|
import {
|
|
2
5
|
AccordionContent
|
|
3
6
|
} from "./chunk-JZXZYEPG.mjs";
|
|
4
7
|
import {
|
|
5
8
|
AccordionHeader
|
|
6
9
|
} from "./chunk-MYVC3HMO.mjs";
|
|
7
|
-
import {
|
|
8
|
-
AccordionItem
|
|
9
|
-
} from "./chunk-EZVEYJOX.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__objRest,
|
|
12
12
|
__spreadProps,
|
|
@@ -42,4 +42,4 @@ Accordion.Content = AccordionContent;
|
|
|
42
42
|
export {
|
|
43
43
|
Accordion
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
45
|
+
//# sourceMappingURL=chunk-YF42B5W7.mjs.map
|
package/dist/footer/footer.mjs
CHANGED
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
FooterLinkSection,
|
|
5
5
|
FooterLinkSections,
|
|
6
6
|
FooterLogo
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-DCTQJS3S.mjs";
|
|
8
8
|
import "../chunk-Z2ZCM4BE.mjs";
|
|
9
9
|
import "../chunk-LGEGXOPU.mjs";
|
|
10
10
|
import "../chunk-HT2EIJAD.mjs";
|
|
11
11
|
import "../chunk-AYCHNAU7.mjs";
|
|
12
12
|
import "../chunk-ZKMFJZSH.mjs";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-YF42B5W7.mjs";
|
|
14
|
+
import "../chunk-EZVEYJOX.mjs";
|
|
14
15
|
import "../chunk-JZXZYEPG.mjs";
|
|
15
16
|
import "../chunk-MYVC3HMO.mjs";
|
|
16
|
-
import "../chunk-EZVEYJOX.mjs";
|
|
17
17
|
import "../chunk-YQFL5UN4.mjs";
|
|
18
18
|
import "../chunk-YOSPWY5K.mjs";
|
|
19
19
|
export {
|
package/dist/footer/index.mjs
CHANGED
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
FooterLinkSection,
|
|
6
6
|
FooterLinkSections,
|
|
7
7
|
FooterLogo
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-DCTQJS3S.mjs";
|
|
9
9
|
import "../chunk-Z2ZCM4BE.mjs";
|
|
10
10
|
import "../chunk-LGEGXOPU.mjs";
|
|
11
11
|
import "../chunk-HT2EIJAD.mjs";
|
|
12
12
|
import "../chunk-AYCHNAU7.mjs";
|
|
13
13
|
import "../chunk-ZKMFJZSH.mjs";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-YF42B5W7.mjs";
|
|
15
|
+
import "../chunk-EZVEYJOX.mjs";
|
|
15
16
|
import "../chunk-JZXZYEPG.mjs";
|
|
16
17
|
import "../chunk-MYVC3HMO.mjs";
|
|
17
|
-
import "../chunk-EZVEYJOX.mjs";
|
|
18
18
|
import "../chunk-YQFL5UN4.mjs";
|
|
19
19
|
import "../chunk-YOSPWY5K.mjs";
|
|
20
20
|
export {
|
package/dist/index.js
CHANGED
|
@@ -2068,12 +2068,19 @@ var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname"
|
|
|
2068
2068
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2069
2069
|
var Spinner = (0, import_react39.forwardRef)(
|
|
2070
2070
|
(_a, ref) => {
|
|
2071
|
-
var _b = _a, { size = "medium", title = "", className } = _b, rest = __objRest(_b, ["size", "title", "className"]);
|
|
2071
|
+
var _b = _a, { size = "medium", title = "", delay = false, className, style: _style } = _b, rest = __objRest(_b, ["size", "title", "delay", "className", "style"]);
|
|
2072
|
+
const style = __spreadValues(__spreadValues({}, _style), typeof delay === "string" && { "--hds-spinner-delay": delay });
|
|
2072
2073
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2073
2074
|
"div",
|
|
2074
2075
|
__spreadValues({
|
|
2075
2076
|
title,
|
|
2076
|
-
|
|
2077
|
+
style,
|
|
2078
|
+
className: (0, import_typed_classname36.clsx)(
|
|
2079
|
+
"hds-spinner",
|
|
2080
|
+
`hds-spinner--${size}`,
|
|
2081
|
+
delay && "hds-spinner--delay",
|
|
2082
|
+
className
|
|
2083
|
+
),
|
|
2077
2084
|
ref
|
|
2078
2085
|
}, rest)
|
|
2079
2086
|
);
|