@arthurzakharov/ui-kit 2.6.0 → 2.8.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/assets/accordion-D1OVgv7W.css +1 -0
- package/dist/assets/price-line-B6G5Nune.css +1 -0
- package/dist/components/accordion/accordion.component.d.ts +12 -0
- package/dist/components/accordion/accordion.component.js +61 -0
- package/dist/components/accordion/index.d.ts +1 -0
- package/dist/components/accordion/index.js +4 -0
- package/dist/components/price-line/index.d.ts +1 -0
- package/dist/components/price-line/index.js +4 -0
- package/dist/components/price-line/price-line.component.d.ts +9 -0
- package/dist/components/price-line/price-line.component.js +15 -0
- package/dist/main.d.ts +3 -1
- package/dist/main.js +73 -68
- package/dist/utils/functions/functions.util.d.ts +7 -0
- package/dist/utils/functions/functions.util.js +33 -27
- package/dist/utils/functions/index.js +8 -7
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._Accordion_1k5zy_1{display:block;width:100%;background-color:var(--rm-ui-color-background-primary, #fff);border:1px solid var(--rm-ui-grey-100);border-radius:var(--rm-ui-border-radius-md, 8px);overflow:hidden}._Header_1k5zy_10{display:flex;align-items:center;gap:var(--rm-ui-padding-sm);width:100%;padding:var(--rm-ui-padding-md) var(--rm-ui-padding-md);background:transparent;border:0;cursor:pointer;text-align:left;color:var(--rm-ui-color-text-primary);font-family:inherit;font-size:var(--rm-ui-font-size-body-large);line-height:var(--rm-ui-line-height-body-large);font-weight:var(--rm-ui-font-weight-medium)}._Header_1k5zy_10:focus-visible{outline:2px solid var(--rm-ui-color-focus);outline-offset:-2px}._HeaderOpen_1k5zy_32{color:var(--rm-ui-color-theme-primary)}._Index_1k5zy_36{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:28px;height:28px;padding:0 var(--rm-ui-padding-xxs);border-radius:50%;background-color:var(--rm-ui-color-theme-primary);color:var(--rm-ui-color-text-on-theme, #fff);font-size:var(--rm-ui-font-size-body-small);font-weight:var(--rm-ui-font-weight-medium);line-height:1}._Title_1k5zy_52{flex:1 1 auto;min-width:0}._Chevron_1k5zy_57{flex:0 0 auto;display:inline-flex;color:var(--rm-ui-color-text-secondary)}._Body_1k5zy_63{position:relative;padding:0 var(--rm-ui-padding-md) var(--rm-ui-padding-md)}._Subtitle_1k5zy_68{margin:0 0 var(--rm-ui-padding-sm);color:var(--rm-ui-color-text-secondary);font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._Content_1k5zy_75{display:block}._LoaderOverlay_1k5zy_79{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background-color:#ffffffbf;z-index:1}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._PriceLine_qio4u_1{display:flex;flex-direction:row;align-items:center;justify-content:space-between}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Base } from '../../utils/types';
|
|
3
|
+
export interface AccordionProps extends Base {
|
|
4
|
+
title: string;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onTitleClick: () => void;
|
|
7
|
+
index?: number | string;
|
|
8
|
+
subtitle?: ReactNode;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const Accordion: ({ title, isOpen, onTitleClick, index, subtitle, loading, children, ...base }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronDown as h } from "lucide-react";
|
|
3
|
+
import { baseProps as i, clsx as s } from "../../utils/functions/functions.util.js";
|
|
4
|
+
import { FadeGrow as v } from "../../animations/fade-grow/fade-grow.component.js";
|
|
5
|
+
import { Rotate as p } from "../../animations/rotate/rotate.component.js";
|
|
6
|
+
import { Loader as z } from "../loader/loader.component.js";
|
|
7
|
+
import '../../assets/accordion-D1OVgv7W.css';const k = "_Accordion_1k5zy_1", C = "_Header_1k5zy_10", N = "_HeaderOpen_1k5zy_32", x = "_Index_1k5zy_36", b = "_Title_1k5zy_52", f = "_Chevron_1k5zy_57", H = "_Body_1k5zy_63", $ = "_Subtitle_1k5zy_68", u = "_Content_1k5zy_75", A = "_LoaderOverlay_1k5zy_79", o = {
|
|
8
|
+
Accordion: k,
|
|
9
|
+
Header: C,
|
|
10
|
+
HeaderOpen: N,
|
|
11
|
+
Index: x,
|
|
12
|
+
Title: b,
|
|
13
|
+
Chevron: f,
|
|
14
|
+
Body: H,
|
|
15
|
+
Subtitle: $,
|
|
16
|
+
Content: u,
|
|
17
|
+
LoaderOverlay: A
|
|
18
|
+
}, j = ({
|
|
19
|
+
title: l,
|
|
20
|
+
isOpen: d,
|
|
21
|
+
onTitleClick: _,
|
|
22
|
+
index: r,
|
|
23
|
+
subtitle: a,
|
|
24
|
+
loading: m = !1,
|
|
25
|
+
children: y,
|
|
26
|
+
...c
|
|
27
|
+
}) => {
|
|
28
|
+
const t = i(c, "data-testid", "accordion");
|
|
29
|
+
return /* @__PURE__ */ n(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
"data-testid": t,
|
|
33
|
+
className: s(o.Accordion, i(c, "className")),
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ n(
|
|
36
|
+
"button",
|
|
37
|
+
{
|
|
38
|
+
type: "button",
|
|
39
|
+
"data-testid": `${t}-header`,
|
|
40
|
+
className: s(o.Header, { [o.HeaderOpen]: d }),
|
|
41
|
+
onClick: _,
|
|
42
|
+
"aria-expanded": d,
|
|
43
|
+
children: [
|
|
44
|
+
r !== void 0 && /* @__PURE__ */ e("span", { "data-testid": `${t}-index`, className: o.Index, children: r }),
|
|
45
|
+
/* @__PURE__ */ e("span", { className: o.Title, children: l }),
|
|
46
|
+
/* @__PURE__ */ e("span", { className: o.Chevron, children: /* @__PURE__ */ e(p, { name: `${t}-chevron`, condition: d, from: "top", to: "bottom", children: /* @__PURE__ */ e(h, { size: 20 }) }) })
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ e(v, { name: `${t}-body`, condition: d, children: /* @__PURE__ */ n("div", { "data-testid": `${t}-body`, className: o.Body, children: [
|
|
51
|
+
m && /* @__PURE__ */ e("div", { "data-testid": `${t}-loader`, className: o.LoaderOverlay, children: /* @__PURE__ */ e(z, { color: "accent-primary", size: "md" }) }),
|
|
52
|
+
a != null && /* @__PURE__ */ e("div", { "data-testid": `${t}-subtitle`, className: o.Subtitle, children: a }),
|
|
53
|
+
/* @__PURE__ */ e("div", { className: o.Content, children: y })
|
|
54
|
+
] }) })
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
j as Accordion
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Accordion, type AccordionProps } from './accordion.component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PriceLine, type PriceLineProps } from './price-line.component';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface PriceLineProps {
|
|
2
|
+
text?: string;
|
|
3
|
+
price: number;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Two-column row that renders a label on the left and a German-formatted
|
|
7
|
+
* Euro amount on the right. Default label is "Pauschale Vergütung inkl. Steuern".
|
|
8
|
+
*/
|
|
9
|
+
export declare const PriceLine: (props: PriceLineProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Text as r } from "../text/text.component.js";
|
|
3
|
+
import { convertToEuro as c } from "../../utils/functions/functions.util.js";
|
|
4
|
+
import '../../assets/price-line-B6G5Nune.css';const s = "_PriceLine_qio4u_1", a = {
|
|
5
|
+
PriceLine: s
|
|
6
|
+
}, g = (i) => {
|
|
7
|
+
const { text: o = "Pauschale Vergütung inkl. Steuern", price: t } = i;
|
|
8
|
+
return /* @__PURE__ */ n("div", { className: a.PriceLine, children: [
|
|
9
|
+
/* @__PURE__ */ e(r, { tag: "span", weight: "regular", size: "body-small", color: "theme-primary", children: o }),
|
|
10
|
+
/* @__PURE__ */ e(r, { tag: "span", weight: "regular", size: "body-small", color: "theme-primary", children: c(t) })
|
|
11
|
+
] });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
g as PriceLine
|
|
15
|
+
};
|
package/dist/main.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { HiddenInput, type HiddenInputProps } from './controls/primitives/hidden
|
|
|
23
23
|
export { Label, type LabelProps } from './controls/primitives/label';
|
|
24
24
|
export { RadioLabel, type RadioLabelProps } from './controls/primitives/radio-label';
|
|
25
25
|
export { Status, type StatusProps } from './controls/primitives/status';
|
|
26
|
+
export { Accordion, type AccordionProps } from './components/accordion';
|
|
26
27
|
export { AccordionTable, type AccordionTableProps } from './components/accordion-table/accordion-table.component';
|
|
27
28
|
export { BottomBar } from './components/bottom-bar';
|
|
28
29
|
export { Certifications, type CertificationsProps } from './components/certifications';
|
|
@@ -43,10 +44,11 @@ export { Message, type MessageProps } from './components/message';
|
|
|
43
44
|
export { MessageBlock, type MessageBlockProps } from './components/message-block';
|
|
44
45
|
export { NotFound, type NotFoundProps } from './components/not-found';
|
|
45
46
|
export { Payment, type PaymentBlockProps, type PaymentGlassProps, type PaymentInfoProps, type PaymentSidebarProps, type PaymentTextBlocksProps, type PaymentTextBlockItem, } from './components/payment/payment.component';
|
|
47
|
+
export { PriceLine, type PriceLineProps } from './components/price-line';
|
|
46
48
|
export { Sidebar, type SidebarProps } from './components/sidebar';
|
|
47
49
|
export { Signature } from './components/signature';
|
|
48
50
|
export { Svg, type SvgProps } from './utils/svg/svg.component';
|
|
49
51
|
export { Text, type TextProps } from './components/text';
|
|
50
52
|
export { UserPanel } from './components/user-panel';
|
|
51
53
|
export { Warranty, type WarrantyProps } from './components/warranty';
|
|
52
|
-
export { clsx } from './utils/functions';
|
|
54
|
+
export { clsx, convertToEuro } from './utils/functions';
|
package/dist/main.js
CHANGED
|
@@ -4,18 +4,18 @@ import { FadeSlide as f } from "./animations/fade-slide/fade-slide.component.js"
|
|
|
4
4
|
import { Rotate as n } from "./animations/rotate/rotate.component.js";
|
|
5
5
|
import "usehooks-ts";
|
|
6
6
|
import { Button as d } from "./controls/buttons/button/button.component.js";
|
|
7
|
-
import { ButtonCard as
|
|
7
|
+
import { ButtonCard as l } from "./controls/buttons/button-card/button-card.component.js";
|
|
8
8
|
import { ButtonRadio as u } from "./controls/buttons/button-radio/button-radio.component.js";
|
|
9
9
|
import { ButtonText as B } from "./controls/buttons/button-text/button-text.component.js";
|
|
10
10
|
import { CardImage as F } from "./controls/interactives/card-image/card-image.component.js";
|
|
11
|
-
import { CardText as
|
|
12
|
-
import { Checkbox as
|
|
13
|
-
import { Dropdown as
|
|
14
|
-
import { Input as
|
|
15
|
-
import { Radio as
|
|
11
|
+
import { CardText as T } from "./controls/interactives/card-text/card-text.component.js";
|
|
12
|
+
import { Checkbox as S } from "./controls/interactives/checkbox/checkbox.component.js";
|
|
13
|
+
import { Dropdown as I } from "./controls/interactives/dropdown/dropdown.component.js";
|
|
14
|
+
import { Input as R } from "./controls/interactives/input/input.component.js";
|
|
15
|
+
import { Radio as M } from "./controls/interactives/radio/radio.component.js";
|
|
16
16
|
import { TextArea as w } from "./controls/interactives/text-area/text-area.component.js";
|
|
17
|
-
import { TextField as
|
|
18
|
-
import { Box as
|
|
17
|
+
import { TextField as E } from "./controls/interactives/text-field/text-field.component.js";
|
|
18
|
+
import { Box as v } from "./controls/primitives/box/box.component.js";
|
|
19
19
|
import { Caption as G } from "./controls/primitives/caption/caption.component.js";
|
|
20
20
|
import { Choice as U } from "./controls/primitives/choice/choice.component.js";
|
|
21
21
|
import { ErrorMessage as j } from "./controls/primitives/error-message/error-message.component.js";
|
|
@@ -23,83 +23,88 @@ import { HiddenInput as z } from "./controls/primitives/hidden-input/hidden-inpu
|
|
|
23
23
|
import { Label as K } from "./controls/primitives/label/label.component.js";
|
|
24
24
|
import { RadioLabel as Q } from "./controls/primitives/radio-label/radio-label.component.js";
|
|
25
25
|
import { Status as X } from "./controls/primitives/status/status.component.js";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
26
|
+
import { Accordion as Z } from "./components/accordion/accordion.component.js";
|
|
27
|
+
import { AccordionTable as $ } from "./components/accordion-table/accordion-table.component.js";
|
|
28
|
+
import { BottomBar as ro } from "./components/bottom-bar/bottom-bar.component.js";
|
|
29
|
+
import { Certifications as to } from "./components/certifications/certifications.component.js";
|
|
30
|
+
import { DataProtectedLabel as mo } from "./components/data-protected-label/data-protected-label.component.js";
|
|
31
|
+
import { Dialog as fo } from "./components/dialog/dialog.component.js";
|
|
32
|
+
import { DialogArticle as no } from "./components/dialog-article/dialog-article.component.js";
|
|
33
|
+
import { Expenses as co } from "./components/expenses/expenses.component.js";
|
|
34
|
+
import { Footer as so } from "./components/footer/footer.component.js";
|
|
35
|
+
import { FormRow as go } from "./components/form-row/form-row.component.js";
|
|
36
|
+
import { Header as Co } from "./components/header/header.component.js";
|
|
37
|
+
import { InfoPanel as Lo } from "./components/info-panel/info-panel.component.js";
|
|
37
38
|
import { Information as bo } from "./components/information/information.component.js";
|
|
38
|
-
import { Layout as
|
|
39
|
-
import { Line as
|
|
40
|
-
import { Loader as
|
|
41
|
-
import { MainAttachment as
|
|
42
|
-
import { Message as
|
|
43
|
-
import { MessageBlock as
|
|
44
|
-
import { NotFound as
|
|
45
|
-
import { Payment as
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
39
|
+
import { Layout as Ao } from "./components/layout/layout.component.js";
|
|
40
|
+
import { Line as Po } from "./components/line/line.component.js";
|
|
41
|
+
import { Loader as Do } from "./components/loader/loader.component.js";
|
|
42
|
+
import { MainAttachment as ho } from "./components/main-attachment/main-attachment.component.js";
|
|
43
|
+
import { Message as yo } from "./components/message/message.component.js";
|
|
44
|
+
import { MessageBlock as ko } from "./components/message-block/message-block.component.js";
|
|
45
|
+
import { NotFound as Ho } from "./components/not-found/not-found.component.js";
|
|
46
|
+
import { Payment as No } from "./components/payment/payment.component.js";
|
|
47
|
+
import { PriceLine as Wo } from "./components/price-line/price-line.component.js";
|
|
48
|
+
import { Sidebar as qo } from "./components/sidebar/sidebar.component.js";
|
|
49
|
+
import { Signature as Jo } from "./components/signature/signature.component.js";
|
|
50
|
+
import { Svg as Oo } from "./utils/svg/svg.component.js";
|
|
51
|
+
import { Text as Vo } from "./components/text/text.component.js";
|
|
52
|
+
import { UserPanel as Yo } from "./components/user-panel/user-panel.component.js";
|
|
53
|
+
import { Warranty as _o } from "./components/warranty/warranty.component.js";
|
|
54
|
+
import { clsx as or, convertToEuro as rr } from "./utils/functions/functions.util.js";
|
|
53
55
|
import './assets/main-DZmlIs7j.css';export {
|
|
54
|
-
Z as
|
|
55
|
-
$ as
|
|
56
|
-
|
|
56
|
+
Z as Accordion,
|
|
57
|
+
$ as AccordionTable,
|
|
58
|
+
ro as BottomBar,
|
|
59
|
+
v as Box,
|
|
57
60
|
d as Button,
|
|
58
|
-
|
|
61
|
+
l as ButtonCard,
|
|
59
62
|
u as ButtonRadio,
|
|
60
63
|
B as ButtonText,
|
|
61
64
|
G as Caption,
|
|
62
65
|
F as CardImage,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
T as CardText,
|
|
67
|
+
to as Certifications,
|
|
68
|
+
S as Checkbox,
|
|
66
69
|
U as Choice,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
mo as DataProtectedLabel,
|
|
71
|
+
fo as Dialog,
|
|
72
|
+
no as DialogArticle,
|
|
73
|
+
I as Dropdown,
|
|
71
74
|
j as ErrorMessage,
|
|
72
|
-
|
|
75
|
+
co as Expenses,
|
|
73
76
|
t as FadeGrow,
|
|
74
77
|
m as FadeScale,
|
|
75
78
|
f as FadeSlide,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
so as Footer,
|
|
80
|
+
go as FormRow,
|
|
81
|
+
Co as Header,
|
|
79
82
|
z as HiddenInput,
|
|
80
|
-
|
|
83
|
+
Lo as InfoPanel,
|
|
81
84
|
bo as Information,
|
|
82
|
-
|
|
85
|
+
R as Input,
|
|
83
86
|
K as Label,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
Ao as Layout,
|
|
88
|
+
Po as Line,
|
|
89
|
+
Do as Loader,
|
|
90
|
+
ho as MainAttachment,
|
|
91
|
+
yo as Message,
|
|
92
|
+
ko as MessageBlock,
|
|
93
|
+
Ho as NotFound,
|
|
94
|
+
No as Payment,
|
|
95
|
+
Wo as PriceLine,
|
|
96
|
+
M as Radio,
|
|
93
97
|
Q as RadioLabel,
|
|
94
98
|
n as Rotate,
|
|
95
|
-
|
|
96
|
-
|
|
99
|
+
qo as Sidebar,
|
|
100
|
+
Jo as Signature,
|
|
97
101
|
X as Status,
|
|
98
|
-
|
|
99
|
-
|
|
102
|
+
Oo as Svg,
|
|
103
|
+
Vo as Text,
|
|
100
104
|
w as TextArea,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
+
E as TextField,
|
|
106
|
+
Yo as UserPanel,
|
|
107
|
+
_o as Warranty,
|
|
108
|
+
or as clsx,
|
|
109
|
+
rr as convertToEuro
|
|
105
110
|
};
|
|
@@ -31,6 +31,13 @@ export declare function baseProps(base: Base, key: keyof Base, or?: Base[keyof B
|
|
|
31
31
|
type ClsxClassDictionary = Record<string, unknown>;
|
|
32
32
|
type ClsxClassArray = ClsxClassValue[];
|
|
33
33
|
type ClsxClassValue = ClsxClassArray | ClsxClassDictionary | string | number | bigint | null | boolean | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Formats a number as a German Euro currency string (e.g. 9.99 → "9,99 €").
|
|
36
|
+
* When `skipZeroCents` is true and the value has no fractional part, drops the cents (e.g. 9 → "9 €").
|
|
37
|
+
*/
|
|
38
|
+
export declare const convertToEuro: (num: number, options?: {
|
|
39
|
+
skipZeroCents?: boolean;
|
|
40
|
+
}) => string;
|
|
34
41
|
/**
|
|
35
42
|
* Conditional class-name joiner. Drop-in replacement for the `clsx` npm package.
|
|
36
43
|
* Accepts strings, numbers, bigints, arrays (recursively), and dictionaries (truthy values' keys are included).
|
|
@@ -1,43 +1,49 @@
|
|
|
1
|
-
function o(
|
|
2
|
-
return typeof
|
|
1
|
+
function o(t) {
|
|
2
|
+
return typeof t == "string";
|
|
3
3
|
}
|
|
4
|
-
function e(
|
|
5
|
-
const
|
|
6
|
-
return
|
|
4
|
+
function e(t) {
|
|
5
|
+
const r = /<\/?[a-z][\s\S]*>/i, n = /&(?:[a-z][a-z0-9]+|#\d+|#x[\da-f]+);/i;
|
|
6
|
+
return r.test(t) || n.test(t);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
return o(
|
|
8
|
+
function u(t) {
|
|
9
|
+
return o(t) && e(t);
|
|
10
10
|
}
|
|
11
|
-
const
|
|
12
|
-
|
|
11
|
+
const c = (t, r) => (n) => {
|
|
12
|
+
r?.prevent && n.preventDefault(), r?.stop && n.stopPropagation(), r?.blur && n.currentTarget.blur(), r?.withEvent ? t(n) : t();
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
return
|
|
14
|
+
function f(t, r, n) {
|
|
15
|
+
return t[r] ? t[r] : n;
|
|
16
16
|
}
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
const p = (t, r) => new Intl.NumberFormat("de-DE", {
|
|
18
|
+
style: "currency",
|
|
19
|
+
currency: "EUR",
|
|
20
|
+
minimumFractionDigits: r?.skipZeroCents && t % 1 === 0 ? 0 : 2,
|
|
21
|
+
maximumFractionDigits: r?.skipZeroCents && t % 1 === 0 ? 0 : 2
|
|
22
|
+
}).format(t), s = (...t) => {
|
|
23
|
+
const r = [];
|
|
24
|
+
for (const n of t)
|
|
25
|
+
if (n) {
|
|
26
|
+
if (typeof n == "string" || typeof n == "number" || typeof n == "bigint") {
|
|
27
|
+
r.push(String(n));
|
|
23
28
|
continue;
|
|
24
29
|
}
|
|
25
|
-
if (Array.isArray(
|
|
26
|
-
const
|
|
27
|
-
|
|
30
|
+
if (Array.isArray(n)) {
|
|
31
|
+
const i = s(...n);
|
|
32
|
+
i && r.push(i);
|
|
28
33
|
continue;
|
|
29
34
|
}
|
|
30
|
-
if (typeof
|
|
31
|
-
for (const
|
|
32
|
-
|
|
35
|
+
if (typeof n == "object")
|
|
36
|
+
for (const i in n)
|
|
37
|
+
n[i] && r.push(i);
|
|
33
38
|
}
|
|
34
|
-
return
|
|
39
|
+
return r.join(" ");
|
|
35
40
|
};
|
|
36
41
|
export {
|
|
37
|
-
|
|
42
|
+
f as baseProps,
|
|
38
43
|
s as clsx,
|
|
39
44
|
e as containsHtml,
|
|
40
|
-
|
|
45
|
+
p as convertToEuro,
|
|
46
|
+
u as isHtmlString,
|
|
41
47
|
o as isString,
|
|
42
|
-
|
|
48
|
+
c as withControl
|
|
43
49
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { baseProps as
|
|
1
|
+
import { baseProps as r, clsx as i, containsHtml as n, convertToEuro as s, isHtmlString as l, isString as c, withControl as e } from "./functions.util.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
l as
|
|
8
|
-
|
|
3
|
+
r as baseProps,
|
|
4
|
+
i as clsx,
|
|
5
|
+
n as containsHtml,
|
|
6
|
+
s as convertToEuro,
|
|
7
|
+
l as isHtmlString,
|
|
8
|
+
c as isString,
|
|
9
|
+
e as withControl
|
|
9
10
|
};
|