@stihl-design-system/components 1.0.0-RC.3 → 1.0.0-RC.4
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/arialiveregions.49Zyf6mj.js +27 -0
- package/arialiveregions.d.ts +1 -0
- package/assets/CustomReactSelect.B0rJLjN0.css +1 -0
- package/assets/Notification.CCCbfXEz.css +1 -0
- package/assets/Toast.CAP_EwDX.css +1 -0
- package/assets/arialiveregions.VnhjP8Gr.css +1 -0
- package/assets/button.BuIpnG-S.css +1 -0
- package/assets/buttonround.C3ph5Yyu.css +1 -0
- package/assets/dialog.BGK3mgk7.css +1 -0
- package/assets/link.DQy_OhwC.css +1 -0
- package/assets/linkstandalone.Dh6bE5Fb.css +1 -0
- package/button.DX_nxoJC.js +135 -0
- package/buttonround.CXsBk9nL.js +118 -0
- package/{checkbox.C2Ga9yTK.js → checkbox.B43oeMeC.js} +6 -6
- package/checkboxgroup.C7aCjYds.js +9 -0
- package/chunks/AriaLiveRegions.utils.DzWI5KCU.js +31 -0
- package/{checkboxgroup.Cfxz9bk6.js → chunks/CheckboxGroup.CS6Q_TeZ.js} +27 -20
- package/chunks/{CustomReactSelect.uzWNynay.js → CustomReactSelect.DtmbYZUf.js} +455 -449
- package/{fieldset.DGcIKzDI.js → chunks/Fieldset.BokeZzG5.js} +20 -19
- package/chunks/Icon.9gDIp6p4.js +217 -0
- package/chunks/{Input.utils.Bly6ZzLI.js → Input.utils.AKWCNkpA.js} +12 -8
- package/{inputpassword.-MXq8baU.js → chunks/InputPassword.jpUCijp7.js} +15 -14
- package/{inputsearch.CoYTSjox.js → chunks/InputSearch.BmOtAZcR.js} +16 -14
- package/{inputstepper.BBMQr6kM.js → chunks/InputStepper.DTKjUL4U.js} +20 -19
- package/chunks/Notification.CUPOlHAX.js +93 -0
- package/{radiogroup.oILRMrX-.js → chunks/RadioGroup.DpwnVv7u.js} +37 -29
- package/{select.OGcreXnT.js → chunks/Select.DkDZo0ky.js} +49 -46
- package/{textarea.kc_Sfbgr.js → chunks/Textarea.C938p79X.js} +63 -61
- package/chunks/Toast.CLYrwQVO.js +89 -0
- package/chunks/{circle-info-colored.DLY6BTL4.js → circle-info-colored.D2pp54gf.js} +3 -3
- package/{combobox.BXHAo4Wx.js → combobox.BaSkiD6f.js} +7 -7
- package/components/AriaLiveRegions/AriaLiveRegions.d.ts +4 -0
- package/components/AriaLiveRegions/AriaLiveRegions.utils.d.ts +5 -0
- package/components/AriaLiveRegions/AriaLiveRegions.utils.test.d.ts +1 -0
- package/components/Checkbox/Checkbox.d.ts +1 -1
- package/components/CheckboxGroup/CheckboxGroup.utils.d.ts +1 -1
- package/components/Dialog/Dialog.d.ts +11 -0
- package/components/Dialog/Dialog.utils.d.ts +0 -0
- package/components/Fieldset/Fieldset.utils.d.ts +1 -1
- package/components/Notification/Notification.d.ts +26 -0
- package/components/Notification/Notification.test.d.ts +1 -0
- package/components/Notification/Notification.utils.d.ts +5 -0
- package/components/RadioGroup/RadioGroup.utils.d.ts +1 -1
- package/components/Toast/Toast.d.ts +21 -0
- package/components/Toast/Toast.utils.d.ts +9 -0
- package/components/Toast/ToastManager.d.ts +6 -0
- package/components/Toast/ToastManager.test.d.ts +1 -0
- package/components/Toast/ToastManager.utils.d.ts +2 -0
- package/components/Toast/ToastManager.utils.test.d.ts +1 -0
- package/{customreactselect.CipgVXTR.js → customreactselect.LTbjaBN2.js} +4 -4
- package/dialog.BkXwcbUh.js +45 -0
- package/dialog.d.ts +1 -0
- package/fieldset.BXOWK-B-.js +11 -0
- package/{floatingactionbutton.DzHD39NY.js → floatingactionbutton.-nDRRiXY.js} +9 -9
- package/icon.Cpp_9L1I.js +8 -0
- package/index.d.ts +24 -0
- package/index.es.js +138 -45
- package/{input.o8OT6rxJ.js → input.BM6tyRUm.js} +34 -34
- package/inputpassword.DUxH1K_k.js +12 -0
- package/inputsearch.B-vePHle.js +13 -0
- package/inputstepper.C2ypADPI.js +13 -0
- package/link.B4XZoLDj.js +115 -0
- package/linkstandalone.BSfd95Pd.js +79 -0
- package/notification.CxxAOdNV.js +9 -0
- package/notification.d.ts +1 -0
- package/{optioncheckbox.-DRnW_ch.js → optioncheckbox.CUV1MQhh.js} +3 -3
- package/package.json +3 -3
- package/radiogroup.CMJ1b38q.js +11 -0
- package/select.DFJK2mHF.js +12 -0
- package/{spinner.Diy_EeFY.js → spinner.BskX4ovu.js} +1 -1
- package/styles/scss/_index.scss +1 -0
- package/styles/scss/lib/_animation.scss +18 -4
- package/styles/scss/lib/_grid-sidebar-sidebar.scss +2 -0
- package/styles/scss/lib/_link.scss +1 -0
- package/styles/scss/lib/_shadow.scss +10 -0
- package/styles/scss/lib/_theme.scss +7 -5
- package/{switch.BjoFKMQC.js → switch.Bx2tDKx0.js} +2 -2
- package/{systemfeedback.C7iXO5A1.js → systemfeedback.4Hkfigi-.js} +1 -1
- package/textarea.DPy3TJJf.js +12 -0
- package/toast.C-Yg5EoE.js +10 -0
- package/toast.d.ts +1 -0
- package/toastmanager.DQ_-eTrx.js +96 -0
- package/toastmanager.d.ts +1 -0
- package/utils/vitest.setup.d.ts +2 -0
- package/assets/CustomReactSelect.BdwXfLLO.css +0 -1
- package/assets/button.DJvR-58w.css +0 -1
- package/assets/buttonround.BlfQkmMV.css +0 -1
- package/assets/link.V7pJOW1p.css +0 -1
- package/assets/linkstandalone.D3RbBp23.css +0 -1
- package/button.BUUGRxIp.js +0 -135
- package/buttonround.CKc-a-hd.js +0 -118
- package/icon.PX9_1kNB.js +0 -215
- package/link.BN6AZfhG.js +0 -115
- package/linkstandalone.4-fyRd08.js +0 -79
- /package/assets/{fieldset.xazpUXJX.css → Fieldset.xazpUXJX.css} +0 -0
- /package/assets/{icon.CB-KQmw4.css → Icon.CB-KQmw4.css} +0 -0
- /package/assets/{inputpassword.C3Uyj7oA.css → InputPassword.C3Uyj7oA.css} +0 -0
- /package/assets/{inputsearch.tL3e9-Ob.css → InputSearch.tL3e9-Ob.css} +0 -0
- /package/assets/{inputstepper.paPJix5A.css → InputStepper.paPJix5A.css} +0 -0
- /package/assets/{select.D2qBxaHP.css → Select.D2qBxaHP.css} +0 -0
- /package/assets/{textarea.BKbocznb.css → Textarea.BKbocznb.css} +0 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as n } from "./jsx-runtime.C-kxDJ4g.js";
|
|
3
|
+
import { c as e } from "./index.CvOaL64Y.js";
|
|
4
|
+
import { forwardRef as f } from "react";
|
|
5
|
+
import { DSButton as u } from "../button.DX_nxoJC.js";
|
|
6
|
+
import { D as k } from "./Icon.9gDIp6p4.js";
|
|
7
|
+
import '../assets/Toast.CAP_EwDX.css';const y = "_root_pyklq_67", g = "_root--closing_pyklq_76", q = "_fade-out_pyklq_1", h = "_move-in_pyklq_1", x = "_root--success_pyklq_111", I = "_root--info_pyklq_115", S = "_root--warning_pyklq_119", N = "_content_pyklq_124", j = "_content--hide-icon_pyklq_131", v = "_icon_pyklq_135", w = "_message_pyklq_139", o = {
|
|
8
|
+
root: y,
|
|
9
|
+
"root--closing": "_root--closing_pyklq_76",
|
|
10
|
+
rootClosing: g,
|
|
11
|
+
"fade-out": "_fade-out_pyklq_1",
|
|
12
|
+
fadeOut: q,
|
|
13
|
+
"move-in": "_move-in_pyklq_1",
|
|
14
|
+
moveIn: h,
|
|
15
|
+
"root--success": "_root--success_pyklq_111",
|
|
16
|
+
rootSuccess: x,
|
|
17
|
+
"root--info": "_root--info_pyklq_115",
|
|
18
|
+
rootInfo: I,
|
|
19
|
+
"root--warning": "_root--warning_pyklq_119",
|
|
20
|
+
rootWarning: S,
|
|
21
|
+
content: N,
|
|
22
|
+
"content--hide-icon": "_content--hide-icon_pyklq_131",
|
|
23
|
+
contentHideIcon: j,
|
|
24
|
+
icon: v,
|
|
25
|
+
message: w
|
|
26
|
+
}, C = {
|
|
27
|
+
success: "circle-check-colored",
|
|
28
|
+
warning: "triangle-exclamationmark-colored",
|
|
29
|
+
info: "circle-info-colored"
|
|
30
|
+
}, D = f(
|
|
31
|
+
({
|
|
32
|
+
message: s,
|
|
33
|
+
className: r,
|
|
34
|
+
hideIcon: c = !1,
|
|
35
|
+
variant: t = "info",
|
|
36
|
+
onClick: i,
|
|
37
|
+
onMouseEnter: a,
|
|
38
|
+
onMouseLeave: _,
|
|
39
|
+
...l
|
|
40
|
+
}, m) => {
|
|
41
|
+
const p = e(o.root, r, {
|
|
42
|
+
[o.rootSuccess]: t === "success",
|
|
43
|
+
[o.rootWarning]: t === "warning",
|
|
44
|
+
[o.rootInfo]: t === "info"
|
|
45
|
+
}), d = e(o.content, {
|
|
46
|
+
[o.contentHideIcon]: c
|
|
47
|
+
});
|
|
48
|
+
return /* @__PURE__ */ n.jsx(
|
|
49
|
+
"aside",
|
|
50
|
+
{
|
|
51
|
+
className: p,
|
|
52
|
+
ref: m,
|
|
53
|
+
popover: "manual",
|
|
54
|
+
"data-ds-toast": !0,
|
|
55
|
+
onMouseEnter: a,
|
|
56
|
+
onMouseLeave: _,
|
|
57
|
+
"aria-label": s,
|
|
58
|
+
...l,
|
|
59
|
+
children: /* @__PURE__ */ n.jsxs("div", { className: d, children: [
|
|
60
|
+
!c && /* @__PURE__ */ n.jsx(
|
|
61
|
+
k,
|
|
62
|
+
{
|
|
63
|
+
name: C[t],
|
|
64
|
+
className: o.icon,
|
|
65
|
+
"aria-hidden": "true"
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
/* @__PURE__ */ n.jsx("div", { className: o.message, children: s }),
|
|
69
|
+
/* @__PURE__ */ n.jsx(
|
|
70
|
+
u,
|
|
71
|
+
{
|
|
72
|
+
hideLabel: !0,
|
|
73
|
+
iconName: "cross",
|
|
74
|
+
size: "small",
|
|
75
|
+
variant: "ghost",
|
|
76
|
+
onClick: i,
|
|
77
|
+
children: "Close toast"
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
] })
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
D.displayName = "DSToast";
|
|
86
|
+
export {
|
|
87
|
+
D,
|
|
88
|
+
o as s
|
|
89
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
const
|
|
3
|
+
const n = ({
|
|
4
4
|
title: l,
|
|
5
5
|
titleId: t,
|
|
6
6
|
...a
|
|
7
|
-
}) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", focusable: "false", width: "100%", height: "100%", "aria-labelledby": t, ...a }, l ? /* @__PURE__ */ e.createElement("title", { id: t }, l) : null, /* @__PURE__ */ e.createElement("path", { fill: "#666", fillRule: "evenodd", d: "M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0
|
|
7
|
+
}) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", focusable: "false", width: "100%", height: "100%", "aria-labelledby": t, ...a }, l ? /* @__PURE__ */ e.createElement("title", { id: t }, l) : null, /* @__PURE__ */ e.createElement("path", { fill: "#666", fillRule: "evenodd", d: "M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16", clipRule: "evenodd" }), /* @__PURE__ */ e.createElement("path", { fill: "#fff", d: "M6.575 3.35C6.575 2.6 7.175 2 8 2s1.425.6 1.425 1.35c0 .825-.6 1.425-1.425 1.425A1.424 1.424 0 0 1 6.575 3.35M9.05 6.775H6.875v6.75H9.05z" }));
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
n as default
|
|
10
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as u } from "./chunks/jsx-runtime.C-kxDJ4g.js";
|
|
3
|
-
import { v as x, C } from "./chunks/CustomReactSelect.
|
|
3
|
+
import { v as x, c as C } from "./chunks/CustomReactSelect.DtmbYZUf.js";
|
|
4
4
|
const v = ({
|
|
5
5
|
id: s,
|
|
6
6
|
label: o,
|
|
@@ -8,9 +8,9 @@ const v = ({
|
|
|
8
8
|
disabled: a = !1,
|
|
9
9
|
dropdownOnFocus: e = !1,
|
|
10
10
|
hideLabel: l = !1,
|
|
11
|
-
invalid:
|
|
12
|
-
lang:
|
|
13
|
-
required:
|
|
11
|
+
invalid: c = !1,
|
|
12
|
+
lang: m = "en",
|
|
13
|
+
required: r = !1,
|
|
14
14
|
variant: f = "single",
|
|
15
15
|
...t
|
|
16
16
|
}) => {
|
|
@@ -32,12 +32,12 @@ const v = ({
|
|
|
32
32
|
disabled: a,
|
|
33
33
|
hideLabel: l,
|
|
34
34
|
isMulti: i,
|
|
35
|
-
invalid:
|
|
36
|
-
lang:
|
|
35
|
+
invalid: c,
|
|
36
|
+
lang: m,
|
|
37
37
|
openMenuOnClick: e,
|
|
38
38
|
openMenuOnFocus: e,
|
|
39
39
|
isClearable: !e || i,
|
|
40
|
-
required:
|
|
40
|
+
required: r,
|
|
41
41
|
...t
|
|
42
42
|
}
|
|
43
43
|
);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const ARIA_LIVE_REGION_ALERT_ID = "ds-alert-live-region";
|
|
2
|
+
export declare const ARIA_LIVE_REGION_STATUS_ID = "ds-status-live-region";
|
|
3
|
+
export declare const getAriaAlertLiveRegionElement: () => HTMLElement | null;
|
|
4
|
+
export declare const getAriaStatusLiveRegionElement: () => HTMLElement | null;
|
|
5
|
+
export declare const validateMultipleDSAriaLiveRegionsOnPage: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -8,7 +8,7 @@ export interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
8
8
|
checked?: boolean;
|
|
9
9
|
/** Disables the checkbox, preventing user interaction */
|
|
10
10
|
disabled?: boolean;
|
|
11
|
-
/**
|
|
11
|
+
/** Hides the checkbox label, can be responsive
|
|
12
12
|
* `boolean | { base: boolean; s?: boolean; m?: boolean; l?: boolean; xl?: boolean; }`
|
|
13
13
|
* */
|
|
14
14
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CheckboxGroupProps } from './CheckboxGroup';
|
|
2
2
|
|
|
3
3
|
type ValidationProps = Pick<CheckboxGroupProps, 'children' | 'description' | 'id' | 'legend' | 'systemFeedback'>;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const validateCheckboxGroupProps: ({ children, description, id, legend, systemFeedback, }: ValidationProps) => void;
|
|
5
5
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
type DialogProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
footer?: React.ReactNode;
|
|
6
|
+
header?: React.ReactNode;
|
|
7
|
+
isOpen?: boolean;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
} & HTMLAttributes<HTMLDialogElement>;
|
|
10
|
+
export declare const DSDialog: ({ children, className, footer, header, isOpen, onClose, }: DialogProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
File without changes
|
|
@@ -7,5 +7,5 @@ export type Legend = string | {
|
|
|
7
7
|
headingTag?: HeadingTag;
|
|
8
8
|
};
|
|
9
9
|
type ValidationProps = Pick<FieldsetProps, 'description' | 'id' | 'legend' | 'systemFeedback'>;
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const validateFieldsetProps: ({ description, id, legend, systemFeedback, }: ValidationProps) => void;
|
|
11
11
|
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { NotificationVariant } from './Notification.utils';
|
|
3
|
+
|
|
4
|
+
export interface NotificationProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/** Content within the Notification */
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/** Content within the Notification's action bar. For example a CTA button. */
|
|
8
|
+
customActionArea?: React.ReactNode;
|
|
9
|
+
/** Label for the close button */
|
|
10
|
+
closeButtonLabel?: string;
|
|
11
|
+
/** Hides the close button */
|
|
12
|
+
hideCloseButton?: boolean;
|
|
13
|
+
/** Hides the icon */
|
|
14
|
+
hideIcon?: boolean;
|
|
15
|
+
/** Defines the variant */
|
|
16
|
+
variant?: NotificationVariant;
|
|
17
|
+
/** Callback function triggered when the close button is clicked */
|
|
18
|
+
onClose?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* An inline notification component that can be used to provide system feedback messages
|
|
22
|
+
* or highlight important content.
|
|
23
|
+
*
|
|
24
|
+
* The background color and icon vary based on the value of the `variant` prop.
|
|
25
|
+
*/
|
|
26
|
+
export declare const DSNotification: ({ children, variant, customActionArea, className, closeButtonLabel, hideCloseButton, hideIcon, onClose, ...rest }: NotificationProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IconName } from '../../types';
|
|
2
|
+
|
|
3
|
+
export declare const NOTIFICATION_VARIANT: readonly ["success", "error", "warning", "info"];
|
|
4
|
+
export type NotificationVariant = (typeof NOTIFICATION_VARIANT)[number];
|
|
5
|
+
export declare const NOTIFICATION_ICONS: Record<NotificationVariant, IconName>;
|
|
@@ -3,5 +3,5 @@ import { RadioGroupProps } from './RadioGroup';
|
|
|
3
3
|
|
|
4
4
|
export type RadioGroupOption = Pick<RadioProps, 'label' | 'value'>;
|
|
5
5
|
type ValidationProps = Pick<RadioGroupProps, 'description' | 'id' | 'legend' | 'name' | 'options' | 'systemFeedback'>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const validateRadioGroupProps: ({ description, id, legend, name, options, systemFeedback, }: ValidationProps) => void;
|
|
7
7
|
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { ToastVariant } from './Toast.utils';
|
|
3
|
+
|
|
4
|
+
export interface ToastProps extends Omit<HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave'> {
|
|
5
|
+
/** Message displayed in the Toast */
|
|
6
|
+
message: string;
|
|
7
|
+
/** Hides the icon of the Toast */
|
|
8
|
+
hideIcon?: boolean;
|
|
9
|
+
/** Visual style variant of the Toast */
|
|
10
|
+
variant?: ToastVariant;
|
|
11
|
+
/** Used by the ToastManager to clear the timeout of the toast removal */
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
/** Used by the ToastManager to clear the timeout of the toast removal */
|
|
14
|
+
onMouseEnter: () => void;
|
|
15
|
+
/** Used by the ToastManager to start timeout of the toast removal again */
|
|
16
|
+
onMouseLeave: () => void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Toasts are small, non-intrusive messages that appear temporarily to provide feedback or information.
|
|
20
|
+
* */
|
|
21
|
+
export declare const DSToast: import('react').ForwardRefExoticComponent<ToastProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IconName } from '../../types';
|
|
2
|
+
|
|
3
|
+
export declare const TOAST_VARIANT: readonly ["info", "success", "warning"];
|
|
4
|
+
export type ToastVariant = (typeof TOAST_VARIANT)[number];
|
|
5
|
+
export declare const TOAST_ICONS: Record<ToastVariant, IconName>;
|
|
6
|
+
export type ToastOptions = {
|
|
7
|
+
variant?: ToastVariant;
|
|
8
|
+
hideIcon?: boolean;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import "./chunks/jsx-runtime.C-kxDJ4g.js";
|
|
3
3
|
import "./chunks/index.CvOaL64Y.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import {
|
|
5
|
+
import { c as l } from "./chunks/CustomReactSelect.DtmbYZUf.js";
|
|
6
6
|
import "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
7
7
|
import "./asterisk.DU8THnoC.js";
|
|
8
|
-
import "./
|
|
9
|
-
import "./systemfeedback.
|
|
10
|
-
import "./optioncheckbox
|
|
8
|
+
import "./chunks/Icon.9gDIp6p4.js";
|
|
9
|
+
import "./systemfeedback.4Hkfigi-.js";
|
|
10
|
+
import "./optioncheckbox.CUV1MQhh.js";
|
|
11
11
|
export {
|
|
12
12
|
l as CustomReactSelect
|
|
13
13
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as r } from "./chunks/jsx-runtime.C-kxDJ4g.js";
|
|
3
|
+
import { c as f } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import { useRef as u, useEffect as l } from "react";
|
|
5
|
+
import { DSButton as m } from "./button.DX_nxoJC.js";
|
|
6
|
+
import './assets/dialog.BGK3mgk7.css';const _ = "_root_5faj1_63", d = "_success_5faj1_67", g = "_info_5faj1_71", j = "_warning_5faj1_75", p = {
|
|
7
|
+
root: _,
|
|
8
|
+
success: d,
|
|
9
|
+
info: g,
|
|
10
|
+
warning: j
|
|
11
|
+
}, D = ({
|
|
12
|
+
children: c,
|
|
13
|
+
className: i,
|
|
14
|
+
footer: n,
|
|
15
|
+
header: a,
|
|
16
|
+
isOpen: t,
|
|
17
|
+
onClose: s
|
|
18
|
+
}) => {
|
|
19
|
+
const e = u(null);
|
|
20
|
+
return l(() => {
|
|
21
|
+
const o = e.current;
|
|
22
|
+
return o && (t ? o.showModal() : o.close(), s && o.addEventListener("close", s)), () => {
|
|
23
|
+
o && s && o.removeEventListener("close", s);
|
|
24
|
+
};
|
|
25
|
+
}, [t, s]), /* @__PURE__ */ r.jsxs("dialog", { ref: e, className: f(p.root, i), children: [
|
|
26
|
+
/* @__PURE__ */ r.jsx(
|
|
27
|
+
m,
|
|
28
|
+
{
|
|
29
|
+
type: "button",
|
|
30
|
+
iconName: "cross",
|
|
31
|
+
variant: "ghost",
|
|
32
|
+
hideLabel: !0,
|
|
33
|
+
onClick: s,
|
|
34
|
+
autoFocus: !0,
|
|
35
|
+
children: "Close Dialog"
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
a,
|
|
39
|
+
c,
|
|
40
|
+
n
|
|
41
|
+
] });
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
D as DSDialog
|
|
45
|
+
};
|
package/dialog.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/Dialog/Dialog'
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunks/jsx-runtime.C-kxDJ4g.js";
|
|
3
|
+
import "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./asterisk.DU8THnoC.js";
|
|
6
|
+
import "./heading.DqGbFfj2.js";
|
|
7
|
+
import "./systemfeedback.4Hkfigi-.js";
|
|
8
|
+
import { D as l } from "./chunks/Fieldset.BokeZzG5.js";
|
|
9
|
+
export {
|
|
10
|
+
l as DSFieldset
|
|
11
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as a } from "./chunks/jsx-runtime.C-kxDJ4g.js";
|
|
3
3
|
import { c as t } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
-
import {
|
|
5
|
-
import { DSSpinner as
|
|
4
|
+
import { D } from "./chunks/Icon.9gDIp6p4.js";
|
|
5
|
+
import { DSSpinner as x } from "./spinner.BskX4ovu.js";
|
|
6
6
|
import './assets/floatingactionbutton.D7ywURL3.css';const S = "_root_1milf_63", j = "_root--dark_1milf_120", H = "_root--small_1milf_160", y = "_loader_1milf_179", N = "_icon--hidden_1milf_191", C = "_label--hidden_1milf_195", o = {
|
|
7
7
|
root: S,
|
|
8
8
|
"root--dark": "_root--dark_1milf_120",
|
|
@@ -20,8 +20,8 @@ import './assets/floatingactionbutton.D7ywURL3.css';const S = "_root_1milf_63",
|
|
|
20
20
|
className: _,
|
|
21
21
|
dataTrackingid: f,
|
|
22
22
|
disabled: r = !1,
|
|
23
|
-
iconName:
|
|
24
|
-
iconSource:
|
|
23
|
+
iconName: s = "placeholder",
|
|
24
|
+
iconSource: i,
|
|
25
25
|
loading: l = !1,
|
|
26
26
|
size: b = "medium",
|
|
27
27
|
theme: e = "light",
|
|
@@ -61,19 +61,19 @@ import './assets/floatingactionbutton.D7ywURL3.css';const S = "_root_1milf_63",
|
|
|
61
61
|
"aria-busy": l,
|
|
62
62
|
children: [
|
|
63
63
|
l && /* @__PURE__ */ a.jsx(
|
|
64
|
-
|
|
64
|
+
x,
|
|
65
65
|
{
|
|
66
66
|
className: o.loader,
|
|
67
67
|
aria: { "aria-label": "Loading state" }
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
70
|
/* @__PURE__ */ a.jsx("span", { className: t(o.label, o.labelHidden), children: c }),
|
|
71
|
-
(
|
|
72
|
-
|
|
71
|
+
(s || i) && /* @__PURE__ */ a.jsx(
|
|
72
|
+
D,
|
|
73
73
|
{
|
|
74
|
-
name:
|
|
74
|
+
name: s,
|
|
75
75
|
theme: e,
|
|
76
|
-
source:
|
|
76
|
+
source: i,
|
|
77
77
|
className: h,
|
|
78
78
|
"aria-hidden": "true"
|
|
79
79
|
}
|
package/icon.Cpp_9L1I.js
ADDED
package/index.d.ts
CHANGED
|
@@ -1,23 +1,47 @@
|
|
|
1
|
+
export * from './components/AriaLiveRegions/AriaLiveRegions';
|
|
1
2
|
export * from './components/Button/Button';
|
|
3
|
+
export * from './components/Button/Button.utils';
|
|
2
4
|
export * from './components/ButtonRound/ButtonRound';
|
|
5
|
+
export * from './components/ButtonRound/ButtonRound.utils';
|
|
3
6
|
export * from './components/Checkbox/Checkbox';
|
|
4
7
|
export * from './components/CheckboxGroup/CheckboxGroup';
|
|
8
|
+
export * from './components/CheckboxGroup/CheckboxGroup.utils';
|
|
5
9
|
export * from './components/Combobox/Combobox';
|
|
10
|
+
export * from './components/Combobox/Combobox.utils';
|
|
6
11
|
export * from './components/Fieldset/Fieldset';
|
|
12
|
+
export * from './components/Fieldset/Fieldset.utils';
|
|
7
13
|
export * from './components/FloatingActionButton/FloatingActionButton';
|
|
8
14
|
export * from './components/Heading/Heading';
|
|
15
|
+
export * from './components/Heading/Heading.utils';
|
|
9
16
|
export * from './components/Icon/Icon';
|
|
17
|
+
export * from './components/Icon/Icon.utils';
|
|
10
18
|
export * from './components/Input/Input';
|
|
19
|
+
export * from './components/Input/Input.utils';
|
|
11
20
|
export * from './components/InputPassword/InputPassword';
|
|
21
|
+
export * from './components/InputPassword/InputPassword.utils';
|
|
12
22
|
export * from './components/InputSearch/InputSearch';
|
|
23
|
+
export * from './components/InputSearch/InputSearch.utils';
|
|
13
24
|
export * from './components/InputStepper/InputStepper';
|
|
25
|
+
export * from './components/InputStepper/InputStepper.utils';
|
|
14
26
|
export * from './components/Link/Link';
|
|
27
|
+
export * from './components/Link/Link.utils';
|
|
15
28
|
export * from './components/LinkStandalone/LinkStandalone';
|
|
29
|
+
export * from './components/LinkStandalone/LinkStandalone.utils';
|
|
16
30
|
export * from './components/Logo/Logo';
|
|
31
|
+
export * from './components/Logo/Logo.utils';
|
|
32
|
+
export * from './components/Notification/Notification';
|
|
33
|
+
export * from './components/Notification/Notification.utils';
|
|
17
34
|
export * from './components/RadioGroup/RadioGroup';
|
|
35
|
+
export * from './components/RadioGroup/RadioGroup.utils';
|
|
18
36
|
export * from './components/Select/Select';
|
|
37
|
+
export * from './components/Select/Select.utils';
|
|
19
38
|
export * from './components/Spinner/Spinner';
|
|
39
|
+
export * from './components/Spinner/Spinner.utils';
|
|
20
40
|
export * from './components/Switch/Switch';
|
|
41
|
+
export * from './components/Switch/Switch.utils';
|
|
21
42
|
export * from './components/Text/Text';
|
|
43
|
+
export * from './components/Text/Text.utils';
|
|
22
44
|
export * from './components/Textarea/Textarea';
|
|
45
|
+
export * from './components/Textarea/Textarea.utils';
|
|
23
46
|
export * from './components/Title/Title';
|
|
47
|
+
export * from './components/Title/Title.utils';
|