@stihl-design-system/components 1.0.0-RC.2 → 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/README.md +1 -1
- package/arialiveregions.49Zyf6mj.js +27 -0
- package/arialiveregions.d.ts +1 -0
- package/assets/CustomReactSelect.B0rJLjN0.css +1 -0
- package/assets/Fieldset.xazpUXJX.css +1 -0
- package/assets/InputPassword.C3Uyj7oA.css +1 -0
- package/assets/InputSearch.tL3e9-Ob.css +1 -0
- package/assets/InputStepper.paPJix5A.css +1 -0
- package/assets/Notification.CCCbfXEz.css +1 -0
- package/assets/RadioGroup.Ur8Ro-XL.css +1 -0
- package/assets/Select.D2qBxaHP.css +1 -0
- package/assets/Textarea.BKbocznb.css +1 -0
- package/assets/Toast.CAP_EwDX.css +1 -0
- package/assets/arialiveregions.VnhjP8Gr.css +1 -0
- package/assets/asterisk.C-o6rbGQ.css +1 -0
- package/assets/button.BuIpnG-S.css +1 -0
- package/assets/buttonround.C3ph5Yyu.css +1 -0
- package/assets/checkbox.BsFEWfQe.css +1 -0
- package/assets/dialog.BGK3mgk7.css +1 -0
- package/assets/heading.CGFucb-C.css +1 -0
- package/assets/input.BcP5kkZ2.css +1 -0
- package/assets/link.DQy_OhwC.css +1 -0
- package/assets/linkstandalone.Dh6bE5Fb.css +1 -0
- package/assets/radio.CSHQGdpr.css +1 -0
- package/assets/switch.sqve8ApJ.css +1 -0
- package/assets/title.CE0Dm7PI.css +1 -0
- package/asterisk.DU8THnoC.js +8 -0
- package/button.DX_nxoJC.js +135 -0
- package/buttonround.CXsBk9nL.js +118 -0
- package/{checkbox.Bx5D_GAe.js → checkbox.B43oeMeC.js} +30 -30
- package/checkboxgroup.C7aCjYds.js +9 -0
- package/chunks/AriaLiveRegions.utils.DzWI5KCU.js +31 -0
- package/{checkboxgroup.gQwSHy4i.js → chunks/CheckboxGroup.CS6Q_TeZ.js} +27 -20
- package/chunks/{CustomReactSelect.Pvkkof1f.js → CustomReactSelect.DtmbYZUf.js} +516 -510
- package/chunks/Fieldset.BokeZzG5.js +99 -0
- package/chunks/Icon.9gDIp6p4.js +217 -0
- package/chunks/{Input.utils.Bly6ZzLI.js → Input.utils.AKWCNkpA.js} +12 -8
- package/chunks/InputPassword.jpUCijp7.js +140 -0
- package/chunks/InputSearch.BmOtAZcR.js +190 -0
- package/chunks/InputStepper.DTKjUL4U.js +291 -0
- package/chunks/Notification.CUPOlHAX.js +93 -0
- package/{radiogroup.7ptQiohb.js → chunks/RadioGroup.DpwnVv7u.js} +37 -29
- package/chunks/RadioGroup.module.bi3leRes.js +11 -0
- package/chunks/Select.DkDZo0ky.js +193 -0
- package/chunks/Textarea.C938p79X.js +195 -0
- package/chunks/Toast.CLYrwQVO.js +89 -0
- package/chunks/{circle-info-colored.DLY6BTL4.js → circle-info-colored.D2pp54gf.js} +3 -3
- package/chunks/whatsapp.CPpu-7Nn.js +10 -0
- package/{combobox.BOJ7aq_B.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.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.d.ts +1 -1
- package/components/Fieldset/Fieldset.utils.d.ts +1 -1
- package/components/Heading/Heading.utils.d.ts +1 -1
- package/components/Logo/Logo.d.ts +4 -2
- package/components/Logo/Logo.utils.d.ts +1 -0
- 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.d.ts +1 -1
- 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.LTbjaBN2.js +13 -0
- package/dialog.BkXwcbUh.js +45 -0
- package/dialog.d.ts +1 -0
- package/fieldset.BXOWK-B-.js +11 -0
- package/{floatingactionbutton.BtQVIj6W.js → floatingactionbutton.-nDRRiXY.js} +9 -9
- package/heading.DqGbFfj2.js +50 -0
- package/icon.Cpp_9L1I.js +8 -0
- package/index.d.ts +24 -0
- package/index.es.js +138 -45
- package/input.BM6tyRUm.js +236 -0
- 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/{logo.DXWgPUY4.js → logo.C_oJ8isW.js} +25 -24
- package/notification.CxxAOdNV.js +9 -0
- package/notification.d.ts +1 -0
- package/{optioncheckbox.CYikfEsE.js → optioncheckbox.CUV1MQhh.js} +3 -3
- package/package.json +4 -4
- package/radio.Bhu9OUY-.js +79 -0
- package/radiogroup.CMJ1b38q.js +11 -0
- package/select.DFJK2mHF.js +12 -0
- package/{spinner.CSzQEBx2.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-extended.scss +2 -2
- package/styles/scss/lib/_grid-sidebar-sidebar.scss +4 -2
- package/styles/scss/lib/_grid-sidebar.scss +6 -6
- package/styles/scss/lib/_heading.scss +14 -1
- package/styles/scss/lib/_link.scss +10 -9
- package/styles/scss/lib/_shadow.scss +10 -0
- package/styles/scss/lib/_text.scss +4 -0
- package/styles/scss/lib/_theme.scss +7 -5
- package/switch.Bx2tDKx0.js +65 -0
- package/{systemfeedback.rBgdiL5T.js → systemfeedback.4Hkfigi-.js} +1 -1
- package/textarea.DPy3TJJf.js +12 -0
- package/title.icX0VDiO.js +36 -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/types/icon-types.d.ts +1 -1
- package/utils/vitest.setup.d.ts +2 -0
- package/assets/CustomReactSelect.bVnR5yBP.css +0 -1
- package/assets/RadioGroup.SF2fv4CL.css +0 -1
- package/assets/asterisk.Bz7RZnKb.css +0 -1
- package/assets/button.C6ZbQtZ-.css +0 -1
- package/assets/buttonround.CjJUeMND.css +0 -1
- package/assets/checkbox.Bbc6PYDK.css +0 -1
- package/assets/fieldset.DTFs_koU.css +0 -1
- package/assets/heading.5HpYs7wS.css +0 -1
- package/assets/input.GpXQJqEO.css +0 -1
- package/assets/inputpassword.B9J1hCcj.css +0 -1
- package/assets/inputsearch.BY0BGFPK.css +0 -1
- package/assets/inputstepper.B0oC1URa.css +0 -1
- package/assets/link.Di4qXro5.css +0 -1
- package/assets/linkstandalone.239FeO2E.css +0 -1
- package/assets/radio.pqc9u_wx.css +0 -1
- package/assets/select.DLOQ6wu0.css +0 -1
- package/assets/switch.DVlaePGM.css +0 -1
- package/assets/textarea.BNOpd7Nf.css +0 -1
- package/assets/title.1dq1eWy9.css +0 -1
- package/asterisk.BlYjsfkN.js +0 -8
- package/button.Di5XtChf.js +0 -135
- package/buttonround._w4KDbHE.js +0 -118
- package/chunks/RadioGroup.module.B35YQcsb.js +0 -11
- package/customreactselect.DPHXAssl.js +0 -13
- package/fieldset.yE6WV6Ls.js +0 -98
- package/heading.C6k7Gakb.js +0 -44
- package/icon.CmAhxgHK.js +0 -215
- package/input.vP5xcwzV.js +0 -236
- package/inputpassword.BiQ8ORmn.js +0 -139
- package/inputsearch.BA9N3RRc.js +0 -188
- package/inputstepper.Cyxeg2Cj.js +0 -290
- package/link.BoSdsZHj.js +0 -115
- package/linkstandalone.BoN7nARO.js +0 -79
- package/radio.DTO5-Yzf.js +0 -79
- package/select.Dx80W7cW.js +0 -190
- package/switch.BwGtQdnx.js +0 -65
- package/textarea.C8tp1ciU.js +0 -193
- package/title.BT-uIobN.js +0 -36
- /package/assets/{icon.CB-KQmw4.css → Icon.CB-KQmw4.css} +0 -0
|
@@ -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>;
|
|
@@ -8,7 +8,7 @@ export interface RadioGroupProps extends Omit<FieldsetHTMLAttributes<HTMLFieldSe
|
|
|
8
8
|
* When provided as a string, it represents the legend text directly.
|
|
9
9
|
* When provided as an object, it allows for more detailed configuration, including:
|
|
10
10
|
* - `headingText: string` The text content for the legend.
|
|
11
|
-
* - `headingSize?: 'x-large' | 'large' | 'medium' | 'medium-uppercase' | 'small' | 'small-uppercase'` Defines the size of the heading, using predefined size types, defaults to `'medium'`
|
|
11
|
+
* - `headingSize?: 'x-large' | 'x-large-uppercase' | 'large' | 'large-uppercase' | 'medium' | 'medium-uppercase' | 'small' | 'small-uppercase'` Defines the size of the heading, using predefined size types, defaults to `'medium'`
|
|
12
12
|
* - `headingTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'` Specifies the HTML tag to be used for the heading, such as 'h1', 'h2', etc., defaults to `'h2'`
|
|
13
13
|
*
|
|
14
14
|
* @prop {string | { headingText: string; headingSize?: HeadingSize; headingTag?: HeadingTag; }} legend
|
|
@@ -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 {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunks/jsx-runtime.C-kxDJ4g.js";
|
|
3
|
+
import "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { c as l } from "./chunks/CustomReactSelect.DtmbYZUf.js";
|
|
6
|
+
import "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
7
|
+
import "./asterisk.DU8THnoC.js";
|
|
8
|
+
import "./chunks/Icon.9gDIp6p4.js";
|
|
9
|
+
import "./systemfeedback.4Hkfigi-.js";
|
|
10
|
+
import "./optioncheckbox.CUV1MQhh.js";
|
|
11
|
+
export {
|
|
12
|
+
l as CustomReactSelect
|
|
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
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as l } from "./chunks/jsx-runtime.C-kxDJ4g.js";
|
|
3
|
+
import { c } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import './assets/heading.CGFucb-C.css';const d = "_root_d88h5_63", u = "_root--x-large_d88h5_66", g = "_root--x-large-uppercase_d88h5_80", h = "_root--large_d88h5_94", n = "_root--large-uppercase_d88h5_108", i = "_root--medium_d88h5_122", x = "_root--medium-uppercase_d88h5_130", L = "_root--small_d88h5_138", U = "_root--small-uppercase_d88h5_146", k = "_root--theme-dark_d88h5_154", o = {
|
|
5
|
+
root: d,
|
|
6
|
+
"root--x-large": "_root--x-large_d88h5_66",
|
|
7
|
+
rootXLarge: u,
|
|
8
|
+
"root--x-large-uppercase": "_root--x-large-uppercase_d88h5_80",
|
|
9
|
+
rootXLargeUppercase: g,
|
|
10
|
+
"root--large": "_root--large_d88h5_94",
|
|
11
|
+
rootLarge: h,
|
|
12
|
+
"root--large-uppercase": "_root--large-uppercase_d88h5_108",
|
|
13
|
+
rootLargeUppercase: n,
|
|
14
|
+
"root--medium": "_root--medium_d88h5_122",
|
|
15
|
+
rootMedium: i,
|
|
16
|
+
"root--medium-uppercase": "_root--medium-uppercase_d88h5_130",
|
|
17
|
+
rootMediumUppercase: x,
|
|
18
|
+
"root--small": "_root--small_d88h5_138",
|
|
19
|
+
rootSmall: L,
|
|
20
|
+
"root--small-uppercase": "_root--small-uppercase_d88h5_146",
|
|
21
|
+
rootSmallUppercase: U,
|
|
22
|
+
"root--theme-dark": "_root--theme-dark_d88h5_154",
|
|
23
|
+
rootThemeDark: k
|
|
24
|
+
}, X = ({
|
|
25
|
+
children: e,
|
|
26
|
+
className: a,
|
|
27
|
+
size: r = "medium",
|
|
28
|
+
tag: t = "h2",
|
|
29
|
+
// default tag because of SEO reasons (h1 should be used only once per page)
|
|
30
|
+
theme: p = "light",
|
|
31
|
+
...s
|
|
32
|
+
}) => {
|
|
33
|
+
const _ = t, m = c(o.root, a, {
|
|
34
|
+
// sizes
|
|
35
|
+
[o.rootXLarge]: r === "x-large",
|
|
36
|
+
[o.rootXLargeUppercase]: r === "x-large-uppercase",
|
|
37
|
+
[o.rootLarge]: r === "large",
|
|
38
|
+
[o.rootLargeUppercase]: r === "large-uppercase",
|
|
39
|
+
[o.rootMedium]: r == "medium",
|
|
40
|
+
[o.rootMediumUppercase]: r == "medium-uppercase",
|
|
41
|
+
[o.rootSmall]: r == "small",
|
|
42
|
+
[o.rootSmallUppercase]: r == "small-uppercase",
|
|
43
|
+
// dark theme
|
|
44
|
+
[o.rootThemeDark]: p === "dark"
|
|
45
|
+
});
|
|
46
|
+
return /* @__PURE__ */ l.jsx(_, { className: m, ...s, children: e });
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
X as DSHeading
|
|
50
|
+
};
|
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';
|
package/index.es.js
CHANGED
|
@@ -1,49 +1,142 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
2
|
+
import { DSAriaLiveRegions as x } from "./arialiveregions.49Zyf6mj.js";
|
|
3
|
+
import { DSButton as N } from "./button.DX_nxoJC.js";
|
|
4
|
+
import { DSButtonRound as _ } from "./buttonround.CXsBk9nL.js";
|
|
5
|
+
import { DSCheckbox as h } from "./checkbox.B43oeMeC.js";
|
|
6
|
+
import { D as f, v as A } from "./chunks/CheckboxGroup.CS6Q_TeZ.js";
|
|
7
|
+
import { DSCombobox as g } from "./combobox.BaSkiD6f.js";
|
|
8
|
+
import { C as v, b as C, a as R, D as L, v as B } from "./chunks/CustomReactSelect.DtmbYZUf.js";
|
|
9
|
+
import { D as X, v as b } from "./chunks/Fieldset.BokeZzG5.js";
|
|
10
|
+
import { DSFloatingActionButton as Z } from "./floatingactionbutton.-nDRRiXY.js";
|
|
11
|
+
import { DSHeading as k } from "./heading.DqGbFfj2.js";
|
|
12
|
+
import { D as H, I as w, u as V } from "./chunks/Icon.9gDIp6p4.js";
|
|
13
|
+
import { DSInput as y } from "./input.BM6tyRUm.js";
|
|
14
|
+
import { I as Y, M as q, a as j, S as z, U as J, h as Q, i as $, c as oo, s as eo, v as ao, b as to } from "./chunks/Input.utils.AKWCNkpA.js";
|
|
15
|
+
import { D as so, v as po } from "./chunks/InputPassword.jpUCijp7.js";
|
|
16
|
+
import { D as io, i as lo, v as mo } from "./chunks/InputSearch.BmOtAZcR.js";
|
|
17
|
+
import { D as no, v as To } from "./chunks/InputStepper.DTKjUL4U.js";
|
|
18
|
+
import { DSLink as xo } from "./link.B4XZoLDj.js";
|
|
19
|
+
import { DSLinkStandalone as co } from "./linkstandalone.BSfd95Pd.js";
|
|
20
|
+
import { DSLogo as uo } from "./logo.C_oJ8isW.js";
|
|
21
|
+
import { D as Eo, a as fo, N as Ao } from "./chunks/Notification.CUPOlHAX.js";
|
|
22
|
+
import { D as go, v as Po } from "./chunks/RadioGroup.DpwnVv7u.js";
|
|
23
|
+
import { D as Co, S as Ro, g as Lo, v as Bo } from "./chunks/Select.DkDZo0ky.js";
|
|
24
|
+
import { DSSpinner as Xo } from "./spinner.BskX4ovu.js";
|
|
25
|
+
import { DSSwitch as Go } from "./switch.Bx2tDKx0.js";
|
|
26
|
+
import { DSText as Fo } from "./text.CPU8IUqY.js";
|
|
27
|
+
import { D as Mo, T as Ho, v as wo } from "./chunks/Textarea.C938p79X.js";
|
|
28
|
+
import { DSTitle as Ko } from "./title.icX0VDiO.js";
|
|
29
|
+
const o = ["medium", "small"], e = [
|
|
30
|
+
"filled",
|
|
31
|
+
"highlight",
|
|
32
|
+
"outline",
|
|
33
|
+
"ghost"
|
|
34
|
+
], a = ["filled", "highlight"], t = [
|
|
35
|
+
"x-large",
|
|
36
|
+
"x-large-uppercase",
|
|
37
|
+
"large",
|
|
38
|
+
"large-uppercase",
|
|
39
|
+
"medium",
|
|
40
|
+
"medium-uppercase",
|
|
41
|
+
"small",
|
|
42
|
+
"small-uppercase"
|
|
43
|
+
], r = ["h1", "h2", "h3", "h4", "h5", "h6"], s = ["medium", "small"], p = [
|
|
44
|
+
"filled",
|
|
45
|
+
"highlight",
|
|
46
|
+
"outline",
|
|
47
|
+
"ghost"
|
|
48
|
+
], S = ["neutral", "highlight"], i = [
|
|
49
|
+
"small",
|
|
50
|
+
"medium",
|
|
51
|
+
"large",
|
|
52
|
+
"x-large",
|
|
53
|
+
"inherit"
|
|
54
|
+
], l = [
|
|
55
|
+
"address",
|
|
56
|
+
"blockquote",
|
|
57
|
+
"cite",
|
|
58
|
+
"div",
|
|
59
|
+
"figcaption",
|
|
60
|
+
"legend",
|
|
61
|
+
"p",
|
|
62
|
+
"span",
|
|
63
|
+
"time"
|
|
64
|
+
], m = [
|
|
65
|
+
"large",
|
|
66
|
+
"medium",
|
|
67
|
+
"small",
|
|
68
|
+
"x-small",
|
|
69
|
+
"xx-small"
|
|
70
|
+
], I = ["bold", "normal"], n = ["x-large", "large"];
|
|
25
71
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
72
|
+
a as BUTTON_ROUND_VARIANT,
|
|
73
|
+
o as BUTTON_SIZE,
|
|
74
|
+
e as BUTTON_VARIANT,
|
|
75
|
+
v as COMBOBOX_SIZE,
|
|
76
|
+
x as DSAriaLiveRegions,
|
|
77
|
+
N as DSButton,
|
|
78
|
+
_ as DSButtonRound,
|
|
79
|
+
h as DSCheckbox,
|
|
29
80
|
f as DSCheckboxGroup,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
81
|
+
g as DSCombobox,
|
|
82
|
+
X as DSFieldset,
|
|
83
|
+
Z as DSFloatingActionButton,
|
|
84
|
+
k as DSHeading,
|
|
85
|
+
H as DSIcon,
|
|
86
|
+
y as DSInput,
|
|
87
|
+
so as DSInputPassword,
|
|
88
|
+
io as DSInputSearch,
|
|
89
|
+
no as DSInputStepper,
|
|
90
|
+
xo as DSLink,
|
|
91
|
+
co as DSLinkStandalone,
|
|
92
|
+
uo as DSLogo,
|
|
93
|
+
Eo as DSNotification,
|
|
94
|
+
go as DSRadioGroup,
|
|
95
|
+
Co as DSSelect,
|
|
96
|
+
Xo as DSSpinner,
|
|
97
|
+
Go as DSSwitch,
|
|
98
|
+
Fo as DSText,
|
|
99
|
+
Mo as DSTextarea,
|
|
100
|
+
Ko as DSTitle,
|
|
101
|
+
C as DS_COMBOBOX_TRANSLATIONS,
|
|
102
|
+
R as DS_COMBOBOX_TRANSLATIONS_DE,
|
|
103
|
+
L as DS_COMBOBOX_TRANSLATIONS_EN,
|
|
104
|
+
t as HEADING_SIZE,
|
|
105
|
+
r as HEADING_TAG,
|
|
106
|
+
w as ICON_SIZE,
|
|
107
|
+
Y as INPUT_SIZE,
|
|
108
|
+
s as LINK_SIZE,
|
|
109
|
+
S as LINK_STANDALONE_VARIANT,
|
|
110
|
+
p as LINK_VARIANT,
|
|
111
|
+
q as MAX_PREFIX_LENGTH,
|
|
112
|
+
j as MAX_SUFFIX_LENGTH,
|
|
113
|
+
fo as NOTIFICATION_ICONS,
|
|
114
|
+
Ao as NOTIFICATION_VARIANT,
|
|
115
|
+
Ro as SELECT_SIZE,
|
|
116
|
+
i as SPINNER_SIZE,
|
|
117
|
+
z as SUPPORTED_INPUT_TYPES,
|
|
118
|
+
Ho as TEXTAREA_SIZE,
|
|
119
|
+
m as TEXT_SIZE,
|
|
120
|
+
l as TEXT_TAG,
|
|
121
|
+
I as TEXT_WEIGHT,
|
|
122
|
+
n as TITLE_SIZE,
|
|
123
|
+
J as UNSUPPORTED_INPUT_TYPES,
|
|
124
|
+
Lo as getIsPlaceholderSelected,
|
|
125
|
+
Q as hasShowPickerSupport,
|
|
126
|
+
$ as isCalendarInput,
|
|
127
|
+
oo as isTimeInput,
|
|
128
|
+
lo as isWithinForm,
|
|
129
|
+
eo as showCustomCalendarOrTimeIndicator,
|
|
130
|
+
V as useDynamicSvgImport,
|
|
131
|
+
A as validateCheckboxGroupProps,
|
|
132
|
+
B as validateComboboxProps,
|
|
133
|
+
b as validateFieldsetProps,
|
|
134
|
+
po as validateInputPasswordProps,
|
|
135
|
+
ao as validateInputProps,
|
|
136
|
+
mo as validateInputSearchProps,
|
|
137
|
+
To as validateInputStepperProps,
|
|
138
|
+
Po as validateRadioGroupProps,
|
|
139
|
+
Bo as validateSelectProps,
|
|
140
|
+
wo as validateTextareaProps,
|
|
141
|
+
to as validateType
|
|
49
142
|
};
|