@stihl-design-system/components 1.0.0-RC.6 → 1.0.0-RC.8
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/Notification-additional-information.jpeg +0 -0
- package/Notification-confirm-error.jpg +0 -0
- package/Notification-confirm-warn.jpeg +0 -0
- package/Notification-overview.jpeg +0 -0
- package/Notification-success.jpeg +0 -0
- package/{arialiveregions.BvZhV6hb.js → arialiveregions.BK4T7Vhk.js} +1 -1
- package/assets/Dialog.DdLMmOLt.css +1 -0
- package/assets/Drawer.BqBgbSuP.css +1 -0
- package/assets/Toast.ChT0hchk.css +1 -0
- package/assets/button.3UhhGy87.css +1 -0
- package/assets/buttonround.DXDlPKwD.css +1 -0
- package/assets/link.BJHmVrew.css +1 -0
- package/assets/logo.pETQEsvZ.css +1 -0
- package/button.DPrDynn_.js +135 -0
- package/buttonround.ix_-O4l1.js +118 -0
- package/{checkbox.DNHdo6_n.js → checkbox.hoVQ37RP.js} +31 -32
- package/{checkboxgroup.DqWlzAeR.js → checkboxgroup.C9VX3c5W.js} +1 -1
- package/chunks/AriaLiveRegions.utils.D2ni4Yrf.js +34 -0
- package/chunks/{CheckboxGroup.DsQ6lI5a.js → CheckboxGroup.kG1WWhe_.js} +1 -1
- package/chunks/{CustomReactSelect.5dHi6PEO.js → CustomReactSelect.BVv0Zcvc.js} +4 -6
- package/chunks/Dialog.o7bcfCBf.js +148 -0
- package/chunks/Drawer.VbG4cfgJ.js +154 -0
- package/chunks/{Input.utils.AKWCNkpA.js → Input.utils.BGUhXCNP.js} +14 -13
- package/chunks/{InputPassword.a7zHKrmM.js → InputPassword.TlusvIds.js} +1 -1
- package/chunks/{InputSearch.DITRiB92.js → InputSearch.BbCdCCax.js} +1 -1
- package/chunks/{InputStepper.BkncCNwJ.js → InputStepper.DR3NR_II.js} +2 -2
- package/chunks/{Notification.DVVuSOqG.js → Notification.B6a6FOlS.js} +4 -4
- package/chunks/Toast.BpyBIPFW.js +89 -0
- package/chunks/has-document.r9i9TxKV.js +5 -0
- package/{combobox.CRlhqmuO.js → combobox.Dgp3kvFR.js} +1 -1
- package/components/Button/Button.d.ts +1 -1
- package/components/Checkbox/Checkbox.d.ts +1 -1
- package/components/CustomReactSelect/CustomReactSelect.d.ts +2 -2
- package/components/Dialog/Dialog.d.ts +22 -3
- package/components/Dialog/Dialog.test.d.ts +1 -0
- package/components/Dialog/Dialog.utils.d.ts +12 -0
- package/components/Dialog/Dialog.utils.test.d.ts +1 -0
- package/components/Drawer/Drawer.d.ts +31 -0
- package/components/Drawer/Drawer.test.d.ts +1 -0
- package/components/Drawer/Drawer.utils.d.ts +14 -0
- package/components/Drawer/Drawer.utils.test.d.ts +1 -0
- package/components/Input/Input.d.ts +1 -1
- package/components/InputSearch/InputSearch.d.ts +1 -1
- package/components/LinkStandalone/LinkStandalone.d.ts +1 -1
- package/components/Notification/Notification.d.ts +3 -1
- package/components/Radio/Radio.d.ts +1 -1
- package/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/components/SkipToContent/SkipToContent.d.ts +1 -1
- package/components/Switch/Switch.d.ts +1 -1
- package/components/Toast/Toast.d.ts +3 -0
- package/components/Toast/ToastManager.d.ts +7 -3
- package/{customreactselect.CD58gwtp.js → customreactselect.BxkJi_UE.js} +1 -1
- package/dialog.CVFl9IVY.js +9 -0
- package/drawer.BheN3lap.js +9 -0
- package/drawer.d.ts +1 -0
- package/index.d.ts +5 -0
- package/index.es.js +96 -86
- package/{input.ChVISFEX.js → input.CfO9lL_o.js} +2 -2
- package/{inputpassword.Ba9SUUIK.js → inputpassword.CvnUeLTq.js} +2 -2
- package/{inputsearch.BK-0OTwA.js → inputsearch.ClX9PlYG.js} +2 -2
- package/{inputstepper.CTpTeXL9.js → inputstepper.Dd76qaQT.js} +3 -3
- package/link.CIY7SOpm.js +115 -0
- package/{logo.BR_CUXFl.js → logo.CqukakYv.js} +32 -36
- package/{notification.Csn5QCR2.js → notification.BGRev3jC.js} +2 -2
- package/package.json +3 -3
- package/{skiptocontent._YZRKxnc.js → skiptocontent.ALhHiH8t.js} +15 -13
- package/{toast.r_yhGYEe.js → toast.CtgjrtBC.js} +2 -2
- package/toastmanager.6mUZ8eCN.js +119 -0
- package/utils/render-in-iframe.d.ts +15 -0
- package/utils/vitest.setup.d.ts +2 -0
- package/assets/Toast.BzVaebc0.css +0 -1
- package/assets/button.BdxtFZKx.css +0 -1
- package/assets/buttonround.pR4StXA7.css +0 -1
- package/assets/dialog.CKwM2EBH.css +0 -1
- package/assets/link.D61tKkSK.css +0 -1
- package/assets/logo.C05WqGId.css +0 -1
- package/button.L1lgCuM9.js +0 -135
- package/buttonround.ddSqXjYf.js +0 -118
- package/chunks/AriaLiveRegions.utils.DzWI5KCU.js +0 -31
- package/chunks/Toast.RON4bFPY.js +0 -89
- package/dialog.0qPUVJha.js +0 -45
- package/link.SAcKvzJ3.js +0 -115
- package/toastmanager.D-uIi-TS.js +0 -96
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DrawerProps } from './Drawer';
|
|
2
|
+
|
|
3
|
+
export declare const DRAWER_POSITION: readonly ["start", "end"];
|
|
4
|
+
export type DrawerPosition = (typeof DRAWER_POSITION)[number];
|
|
5
|
+
type ValidationProps = Pick<DrawerProps, 'tabIndex'>;
|
|
6
|
+
/**
|
|
7
|
+
* Validates the given properties of the DSDrawer component for common configuration errors.
|
|
8
|
+
* This function is intended to be used in development mode to provide developers with
|
|
9
|
+
* warnings about potential misuse of the component.
|
|
10
|
+
*
|
|
11
|
+
* @param validationProps - The subset of DSDrawer properties to validate.
|
|
12
|
+
*/
|
|
13
|
+
export declare const validateDrawerProps: ({ tabIndex }: ValidationProps) => void;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -14,7 +14,7 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
14
14
|
actionButtonIconName?: IconName;
|
|
15
15
|
/** Custom source URL for the action button icon */
|
|
16
16
|
actionButtonIconSource?: IconProps['source'];
|
|
17
|
-
/** Callback function
|
|
17
|
+
/** Callback function called when the action button is clicked */
|
|
18
18
|
actionButtonOnClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
19
19
|
/** Disables the input, preventing user interaction */
|
|
20
20
|
disabled?: boolean;
|
|
@@ -31,7 +31,7 @@ export interface InputSearchProps extends Omit<InputHTMLAttributes<HTMLInputElem
|
|
|
31
31
|
size?: InputSize;
|
|
32
32
|
/** Value of the input */
|
|
33
33
|
value?: string;
|
|
34
|
-
/** Callback function
|
|
34
|
+
/** Callback function called when the submit button is clicked */
|
|
35
35
|
submitButtonOnClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
@@ -4,7 +4,7 @@ import { LinkStandaloneVariant } from './LinkStandalone.utils';
|
|
|
4
4
|
export interface LinkStandaloneProps extends CommonLinkProps {
|
|
5
5
|
/** Content within the link */
|
|
6
6
|
children: React.ReactNode;
|
|
7
|
-
/**
|
|
7
|
+
/** Sets an underline */
|
|
8
8
|
active?: boolean;
|
|
9
9
|
/** Visual style variant of the Link Standalone */
|
|
10
10
|
variant?: LinkStandaloneVariant;
|
|
@@ -14,7 +14,7 @@ export interface NotificationProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
14
14
|
hideIcon?: boolean;
|
|
15
15
|
/** Defines the variant */
|
|
16
16
|
variant?: NotificationVariant;
|
|
17
|
-
/** Callback function
|
|
17
|
+
/** Callback function called when the close button is clicked */
|
|
18
18
|
onClose?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
@@ -22,5 +22,7 @@ export interface NotificationProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
22
22
|
* or highlight important content.
|
|
23
23
|
*
|
|
24
24
|
* The background color and icon vary based on the value of the `variant` prop.
|
|
25
|
+
*
|
|
26
|
+
* <div className="ds-info">For more information on the different types of notifications and to determine which is best suited for your needs, please refer to our [Notification Guidelines](/docs/templates-notification-guidelines--documentation) and explore the decision trees provided.</div>
|
|
25
27
|
*/
|
|
26
28
|
export declare const DSNotification: ({ children, variant, customActionArea, className, closeButtonLabel, hideCloseButton, hideIcon, onClose, ...rest }: NotificationProps) => JSX.Element;
|
|
@@ -26,7 +26,7 @@ export interface RadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
26
26
|
invalid?: boolean;
|
|
27
27
|
/** Controls whether the hint is displayed when the radio button is not checked */
|
|
28
28
|
hideUncheckedHint?: boolean;
|
|
29
|
-
/** Callback function
|
|
29
|
+
/** Callback function called when the state of the radio changes */
|
|
30
30
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
@@ -49,7 +49,7 @@ export interface RadioGroupProps extends Omit<FieldsetHTMLAttributes<HTMLFieldSe
|
|
|
49
49
|
systemFeedback?: string;
|
|
50
50
|
/** Set the value of the selected option */
|
|
51
51
|
value?: string;
|
|
52
|
-
/** Callback function
|
|
52
|
+
/** Callback function called when the value of the radio group changes */
|
|
53
53
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
@@ -9,4 +9,4 @@ export type SkipToContentProps = {
|
|
|
9
9
|
*
|
|
10
10
|
* Focus the section below by using the tab key to see the "Skip To Content" component in action.
|
|
11
11
|
*/
|
|
12
|
-
export declare const DSSkipToContent: ({ children, className, targetElementId, theme, }: SkipToContentProps) => JSX.Element;
|
|
12
|
+
export declare const DSSkipToContent: ({ children, className, targetElementId, theme, ...rest }: SkipToContentProps) => JSX.Element;
|
|
@@ -21,7 +21,7 @@ export interface SwitchProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
21
21
|
loading?: boolean;
|
|
22
22
|
/** Stretches the Switch over the parent's width */
|
|
23
23
|
stretched?: boolean;
|
|
24
|
-
/** Callback function
|
|
24
|
+
/** Callback function called when the switch is clicked */
|
|
25
25
|
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
@@ -17,5 +17,8 @@ export interface ToastProps extends Omit<HTMLAttributes<HTMLElement>, 'onClick'
|
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Toasts are small, non-intrusive messages that appear temporarily to provide feedback or information.
|
|
20
|
+
*
|
|
21
|
+
* <div className="ds-info">For more information on the different types of notifications and to determine which is best suited for your needs, please refer to our [Notification Guidelines](/docs/templates-notification-guidelines--documentation) and explore the decision trees provided.</div>
|
|
22
|
+
*
|
|
20
23
|
* */
|
|
21
24
|
export declare const DSToast: import('react').ForwardRefExoticComponent<ToastProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ToastOptions } from './Toast.utils';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
queueToastMessage: (message: string, options?: ToastOptions) => void;
|
|
3
|
+
type ToastContextType = {
|
|
4
|
+
queueDSToastMessage: (message: string, options?: ToastOptions) => void;
|
|
6
5
|
};
|
|
6
|
+
export declare const useDSToast: () => ToastContextType;
|
|
7
|
+
export declare const DSToastProvider: ({ children, }: {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
3
|
import "./chunks/index.CvOaL64Y.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { c as l } from "./chunks/CustomReactSelect.
|
|
5
|
+
import { c as l } from "./chunks/CustomReactSelect.BVv0Zcvc.js";
|
|
6
6
|
import "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
7
7
|
import "./asterisk.Cjbk-xZi.js";
|
|
8
8
|
import "./chunks/Icon.n4XZrQ4N.js";
|
package/drawer.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/Drawer/Drawer'
|
package/index.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ export * from './components/CheckboxGroup/CheckboxGroup';
|
|
|
8
8
|
export * from './components/CheckboxGroup/CheckboxGroup.utils';
|
|
9
9
|
export * from './components/Combobox/Combobox';
|
|
10
10
|
export * from './components/Combobox/Combobox.utils';
|
|
11
|
+
export * from './components/Dialog/Dialog';
|
|
12
|
+
export * from './components/Dialog/Dialog.utils';
|
|
13
|
+
export * from './components/Drawer/Drawer';
|
|
14
|
+
export * from './components/Drawer/Drawer.utils';
|
|
11
15
|
export * from './components/Fieldset/Fieldset';
|
|
12
16
|
export * from './components/Fieldset/Fieldset.utils';
|
|
13
17
|
export * from './components/FloatingActionButton/FloatingActionButton';
|
|
@@ -46,3 +50,4 @@ export * from './components/Textarea/Textarea';
|
|
|
46
50
|
export * from './components/Textarea/Textarea.utils';
|
|
47
51
|
export * from './components/Title/Title';
|
|
48
52
|
export * from './components/Title/Title.utils';
|
|
53
|
+
export * from './components/Toast/ToastManager';
|
package/index.es.js
CHANGED
|
@@ -1,38 +1,41 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { DSAriaLiveRegions as x } from "./arialiveregions.
|
|
3
|
-
import { DSButton as N } from "./button.
|
|
4
|
-
import { DSButtonRound as
|
|
5
|
-
import { DSCheckbox as f } from "./checkbox.
|
|
6
|
-
import { D as
|
|
7
|
-
import { DSCombobox as
|
|
8
|
-
import { C as P, b as C, a as R, D as L, v as B } from "./chunks/CustomReactSelect.
|
|
9
|
-
import { D as X, v as b } from "./chunks/
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { D as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { D as
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
2
|
+
import { DSAriaLiveRegions as x } from "./arialiveregions.BK4T7Vhk.js";
|
|
3
|
+
import { DSButton as N } from "./button.DPrDynn_.js";
|
|
4
|
+
import { DSButtonRound as _ } from "./buttonround.ix_-O4l1.js";
|
|
5
|
+
import { DSCheckbox as f } from "./checkbox.hoVQ37RP.js";
|
|
6
|
+
import { D as h, v as A } from "./chunks/CheckboxGroup.kG1WWhe_.js";
|
|
7
|
+
import { DSCombobox as O } from "./combobox.Dgp3kvFR.js";
|
|
8
|
+
import { C as P, b as C, a as R, D as L, v as B } from "./chunks/CustomReactSelect.BVv0Zcvc.js";
|
|
9
|
+
import { D as X, v as b } from "./chunks/Dialog.o7bcfCBf.js";
|
|
10
|
+
import { a as Z, D as F, v as H } from "./chunks/Drawer.VbG4cfgJ.js";
|
|
11
|
+
import { D as w, v as M } from "./chunks/Fieldset.B1vsrHNv.js";
|
|
12
|
+
import { DSFloatingActionButton as K } from "./floatingactionbutton.D_e4vz2G.js";
|
|
13
|
+
import { DSHeading as y } from "./heading.BTNroD1E.js";
|
|
14
|
+
import { D as q, I as j, u as z } from "./chunks/Icon.n4XZrQ4N.js";
|
|
15
|
+
import { DSInput as Q } from "./input.CfO9lL_o.js";
|
|
16
|
+
import { I as oo, M as ao, a as eo, S as ro, U as to, h as so, i as po, c as io, s as So, v as lo, b as mo } from "./chunks/Input.utils.BGUhXCNP.js";
|
|
17
|
+
import { D as no, v as Io } from "./chunks/InputPassword.TlusvIds.js";
|
|
18
|
+
import { D as xo, i as No, v as uo } from "./chunks/InputSearch.BbCdCCax.js";
|
|
19
|
+
import { D as co, v as fo } from "./chunks/InputStepper.DR3NR_II.js";
|
|
20
|
+
import { DSLink as ho } from "./link.CIY7SOpm.js";
|
|
21
|
+
import { DSLinkStandalone as vo } from "./linkstandalone.DNe0Nydm.js";
|
|
22
|
+
import { DSLogo as go } from "./logo.CqukakYv.js";
|
|
23
|
+
import { D as Co, a as Ro, N as Lo } from "./chunks/Notification.B6a6FOlS.js";
|
|
24
|
+
import { D as Uo, a as Xo, o as bo, v as Go } from "./chunks/RadioGroup.BO4pbAJw.js";
|
|
25
|
+
import { D as Fo, S as Ho, g as ko, v as wo } from "./chunks/Select.COdS787F.js";
|
|
26
|
+
import { DSSkipToContent as Vo } from "./skiptocontent.ALhHiH8t.js";
|
|
27
|
+
import { DSSpinner as Wo } from "./spinner.DVa112nj.js";
|
|
28
|
+
import { DSSwitch as Yo } from "./switch.rd7PdLc9.js";
|
|
29
|
+
import { DSText as jo } from "./text.CrYUewrP.js";
|
|
30
|
+
import { D as Jo, T as Qo, v as $o } from "./chunks/Textarea.oqCrSopu.js";
|
|
31
|
+
import { DSTitle as aa } from "./title.Dvp8LKJt.js";
|
|
32
|
+
import { DSToastProvider as ra, useDSToast as ta } from "./toastmanager.6mUZ8eCN.js";
|
|
30
33
|
const o = ["medium", "small"], a = [
|
|
31
34
|
"filled",
|
|
32
35
|
"highlight",
|
|
33
36
|
"outline",
|
|
34
37
|
"ghost"
|
|
35
|
-
], e = ["filled", "highlight"],
|
|
38
|
+
], e = ["filled", "highlight"], r = [
|
|
36
39
|
"x-large",
|
|
37
40
|
"x-large-uppercase",
|
|
38
41
|
"large",
|
|
@@ -41,7 +44,7 @@ const o = ["medium", "small"], a = [
|
|
|
41
44
|
"medium-uppercase",
|
|
42
45
|
"small",
|
|
43
46
|
"small-uppercase"
|
|
44
|
-
],
|
|
47
|
+
], t = ["h1", "h2", "h3", "h4", "h5", "h6"], s = ["medium", "small"], p = [
|
|
45
48
|
"filled",
|
|
46
49
|
"highlight",
|
|
47
50
|
"outline",
|
|
@@ -68,79 +71,86 @@ const o = ["medium", "small"], a = [
|
|
|
68
71
|
"small",
|
|
69
72
|
"x-small",
|
|
70
73
|
"xx-small"
|
|
71
|
-
],
|
|
74
|
+
], D = ["bold", "normal"], n = ["x-large", "large"];
|
|
72
75
|
export {
|
|
73
76
|
e as BUTTON_ROUND_VARIANT,
|
|
74
77
|
o as BUTTON_SIZE,
|
|
75
78
|
a as BUTTON_VARIANT,
|
|
76
79
|
P as COMBOBOX_SIZE,
|
|
80
|
+
Z as DRAWER_POSITION,
|
|
77
81
|
x as DSAriaLiveRegions,
|
|
78
82
|
N as DSButton,
|
|
79
|
-
|
|
83
|
+
_ as DSButtonRound,
|
|
80
84
|
f as DSCheckbox,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
X as
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
y as
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
xo as
|
|
92
|
-
co as
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
go as
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
Fo as
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
85
|
+
h as DSCheckboxGroup,
|
|
86
|
+
O as DSCombobox,
|
|
87
|
+
X as DSDialog,
|
|
88
|
+
F as DSDrawer,
|
|
89
|
+
w as DSFieldset,
|
|
90
|
+
K as DSFloatingActionButton,
|
|
91
|
+
y as DSHeading,
|
|
92
|
+
q as DSIcon,
|
|
93
|
+
Q as DSInput,
|
|
94
|
+
no as DSInputPassword,
|
|
95
|
+
xo as DSInputSearch,
|
|
96
|
+
co as DSInputStepper,
|
|
97
|
+
ho as DSLink,
|
|
98
|
+
vo as DSLinkStandalone,
|
|
99
|
+
go as DSLogo,
|
|
100
|
+
Co as DSNotification,
|
|
101
|
+
Uo as DSRadioGroup,
|
|
102
|
+
Fo as DSSelect,
|
|
103
|
+
Vo as DSSkipToContent,
|
|
104
|
+
Wo as DSSpinner,
|
|
105
|
+
Yo as DSSwitch,
|
|
106
|
+
jo as DSText,
|
|
107
|
+
Jo as DSTextarea,
|
|
108
|
+
aa as DSTitle,
|
|
109
|
+
ra as DSToastProvider,
|
|
103
110
|
C as DS_COMBOBOX_TRANSLATIONS,
|
|
104
111
|
R as DS_COMBOBOX_TRANSLATIONS_DE,
|
|
105
112
|
L as DS_COMBOBOX_TRANSLATIONS_EN,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
113
|
+
r as HEADING_SIZE,
|
|
114
|
+
t as HEADING_TAG,
|
|
115
|
+
j as ICON_SIZE,
|
|
116
|
+
oo as INPUT_SIZE,
|
|
110
117
|
s as LINK_SIZE,
|
|
111
118
|
i as LINK_STANDALONE_VARIANT,
|
|
112
119
|
p as LINK_VARIANT,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
120
|
+
ao as MAX_PREFIX_LENGTH,
|
|
121
|
+
eo as MAX_SUFFIX_LENGTH,
|
|
122
|
+
Ro as NOTIFICATION_ICONS,
|
|
123
|
+
Lo as NOTIFICATION_VARIANT,
|
|
124
|
+
Ho as SELECT_SIZE,
|
|
118
125
|
S as SPINNER_SIZE,
|
|
119
|
-
|
|
120
|
-
|
|
126
|
+
ro as SUPPORTED_INPUT_TYPES,
|
|
127
|
+
Qo as TEXTAREA_SIZE,
|
|
121
128
|
m as TEXT_SIZE,
|
|
122
129
|
l as TEXT_TAG,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
D as TEXT_WEIGHT,
|
|
131
|
+
n as TITLE_SIZE,
|
|
132
|
+
to as UNSUPPORTED_INPUT_TYPES,
|
|
133
|
+
ko as getIsPlaceholderSelected,
|
|
134
|
+
so as hasShowPickerSupport,
|
|
135
|
+
po as isCalendarInput,
|
|
136
|
+
io as isTimeInput,
|
|
137
|
+
No as isWithinForm,
|
|
138
|
+
Xo as optionsHaveCustomArea,
|
|
139
|
+
bo as optionsHaveHint,
|
|
140
|
+
So as showCustomCalendarOrTimeIndicator,
|
|
141
|
+
ta as useDSToast,
|
|
142
|
+
z as useDynamicSvgImport,
|
|
135
143
|
A as validateCheckboxGroupProps,
|
|
136
144
|
B as validateComboboxProps,
|
|
137
|
-
b as
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
b as validateDialogProps,
|
|
146
|
+
H as validateDrawerProps,
|
|
147
|
+
M as validateFieldsetProps,
|
|
148
|
+
Io as validateInputPasswordProps,
|
|
149
|
+
lo as validateInputProps,
|
|
150
|
+
uo as validateInputSearchProps,
|
|
151
|
+
fo as validateInputStepperProps,
|
|
152
|
+
Go as validateRadioGroupProps,
|
|
153
|
+
wo as validateSelectProps,
|
|
154
|
+
$o as validateTextareaProps,
|
|
155
|
+
mo as validateType
|
|
146
156
|
};
|
|
@@ -4,10 +4,10 @@ import { c as l } from "./chunks/index.CvOaL64Y.js";
|
|
|
4
4
|
import { useState as x, useRef as k, useLayoutEffect as w, useEffect as ia } from "react";
|
|
5
5
|
import { u as sa } from "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
6
6
|
import { Asterisk as ea } from "./asterisk.Cjbk-xZi.js";
|
|
7
|
-
import { DSButton as E } from "./button.
|
|
7
|
+
import { DSButton as E } from "./button.DPrDynn_.js";
|
|
8
8
|
import { D as la } from "./chunks/Icon.n4XZrQ4N.js";
|
|
9
9
|
import { DSSystemFeedback as oa } from "./systemfeedback.CUWch42u.js";
|
|
10
|
-
import { v as da, b as ca, M as _a, a as ua, s as fa, c as ra, i as v } from "./chunks/Input.utils.
|
|
10
|
+
import { v as da, b as ca, M as _a, a as ua, s as fa, c as ra, i as v } from "./chunks/Input.utils.BGUhXCNP.js";
|
|
11
11
|
import './assets/input.71tOIrpp.css';const pa = "_input_1jdyx_226", xa = "_input--invalid_1jdyx_336", ma = "_input--small_1jdyx_343", ya = "_input--has-leading-icon_1jdyx_395", ja = "_input--has-action-button_1jdyx_398", ha = "_input--has-second-action-button_1jdyx_401", ba = "_input--has-affix_1jdyx_413", ga = "_input--is-ready_1jdyx_427", Ia = "_root_1jdyx_434", Sa = "_hint_1jdyx_442", Ha = "_label_1jdyx_442", ka = "_wrapper_1jdyx_446", va = "_affix_1jdyx_452", Ca = "_affix--small_1jdyx_472", Ra = "_affix--disabled_1jdyx_484", Da = "_prefix_1jdyx_487", La = "_affix--readonly_1jdyx_490", Aa = "_suffix_1jdyx_500", Na = "_leading-icon_1jdyx_507", Ba = "_leading-icon--small_1jdyx_519", wa = "_leading-icon--disabled_1jdyx_522", Ea = "_action-button_1jdyx_531", Ta = "_label--hidden_1jdyx_548", Fa = "_feedback_1jdyx_575", a = {
|
|
12
12
|
input: pa,
|
|
13
13
|
"input--invalid": "_input--invalid_1jdyx_336",
|
|
@@ -4,9 +4,9 @@ import "./chunks/index.CvOaL64Y.js";
|
|
|
4
4
|
import "react";
|
|
5
5
|
import "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
6
6
|
import "./asterisk.Cjbk-xZi.js";
|
|
7
|
-
import "./button.
|
|
7
|
+
import "./button.DPrDynn_.js";
|
|
8
8
|
import "./systemfeedback.CUWch42u.js";
|
|
9
|
-
import { D as n } from "./chunks/InputPassword.
|
|
9
|
+
import { D as n } from "./chunks/InputPassword.TlusvIds.js";
|
|
10
10
|
export {
|
|
11
11
|
n as DSInputPassword
|
|
12
12
|
};
|
|
@@ -5,9 +5,9 @@ import "react";
|
|
|
5
5
|
import "./chunks/helpers.B1JT5ShS.js";
|
|
6
6
|
import "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
7
7
|
import "./asterisk.Cjbk-xZi.js";
|
|
8
|
-
import "./button.
|
|
8
|
+
import "./button.DPrDynn_.js";
|
|
9
9
|
import "./systemfeedback.CUWch42u.js";
|
|
10
|
-
import { D as s } from "./chunks/InputSearch.
|
|
10
|
+
import { D as s } from "./chunks/InputSearch.BbCdCCax.js";
|
|
11
11
|
export {
|
|
12
12
|
s as DSInputSearch
|
|
13
13
|
};
|
|
@@ -4,10 +4,10 @@ import "./chunks/index.CvOaL64Y.js";
|
|
|
4
4
|
import "react";
|
|
5
5
|
import "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
6
6
|
import "./asterisk.Cjbk-xZi.js";
|
|
7
|
-
import "./button.
|
|
8
|
-
import "./chunks/Input.utils.
|
|
7
|
+
import "./button.DPrDynn_.js";
|
|
8
|
+
import "./chunks/Input.utils.BGUhXCNP.js";
|
|
9
9
|
import "./systemfeedback.CUWch42u.js";
|
|
10
|
-
import { D } from "./chunks/InputStepper.
|
|
10
|
+
import { D } from "./chunks/InputStepper.DR3NR_II.js";
|
|
11
11
|
export {
|
|
12
12
|
D as DSInputStepper
|
|
13
13
|
};
|
package/link.CIY7SOpm.js
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as _ } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c as g } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import { u as i } from "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
5
|
+
import { D as F } from "./chunks/Icon.n4XZrQ4N.js";
|
|
6
|
+
import './assets/link.BJHmVrew.css';const H = "_root_zrvhl_151", S = "_root--highlight_zrvhl_218", x = "_root--dark-highlight_zrvhl_218", b = "_root--filled_zrvhl_296", j = "_root--outline_zrvhl_324", L = "_root--ghost_zrvhl_351", C = "_root--ghost-flush_zrvhl_376", N = "_root--small_zrvhl_382", T = "_root--dark-filled_zrvhl_459", B = "_root--dark-outline_zrvhl_518", E = "_root--dark-ghost_zrvhl_576", R = "_root--dark-ghost-flush_zrvhl_632", V = "_root--icon-left_zrvhl_691", q = "_root--icon-only_zrvhl_707", w = "_root--icon-only-small_zrvhl_716", A = "_label--hidden_zrvhl_727", o = {
|
|
7
|
+
root: H,
|
|
8
|
+
"root--highlight": "_root--highlight_zrvhl_218",
|
|
9
|
+
rootHighlight: S,
|
|
10
|
+
"root--dark-highlight": "_root--dark-highlight_zrvhl_218",
|
|
11
|
+
rootDarkHighlight: x,
|
|
12
|
+
"root--filled": "_root--filled_zrvhl_296",
|
|
13
|
+
rootFilled: b,
|
|
14
|
+
"root--outline": "_root--outline_zrvhl_324",
|
|
15
|
+
rootOutline: j,
|
|
16
|
+
"root--ghost": "_root--ghost_zrvhl_351",
|
|
17
|
+
rootGhost: L,
|
|
18
|
+
"root--ghost-flush": "_root--ghost-flush_zrvhl_376",
|
|
19
|
+
rootGhostFlush: C,
|
|
20
|
+
"root--small": "_root--small_zrvhl_382",
|
|
21
|
+
rootSmall: N,
|
|
22
|
+
"root--dark-filled": "_root--dark-filled_zrvhl_459",
|
|
23
|
+
rootDarkFilled: T,
|
|
24
|
+
"root--dark-outline": "_root--dark-outline_zrvhl_518",
|
|
25
|
+
rootDarkOutline: B,
|
|
26
|
+
"root--dark-ghost": "_root--dark-ghost_zrvhl_576",
|
|
27
|
+
rootDarkGhost: E,
|
|
28
|
+
"root--dark-ghost-flush": "_root--dark-ghost-flush_zrvhl_632",
|
|
29
|
+
rootDarkGhostFlush: R,
|
|
30
|
+
"root--icon-left": "_root--icon-left_zrvhl_691",
|
|
31
|
+
rootIconLeft: V,
|
|
32
|
+
"root--icon-only": "_root--icon-only_zrvhl_707",
|
|
33
|
+
rootIconOnly: q,
|
|
34
|
+
"root--icon-only-small": "_root--icon-only-small_zrvhl_716",
|
|
35
|
+
rootIconOnlySmall: w,
|
|
36
|
+
"label--hidden": "_label--hidden_zrvhl_727",
|
|
37
|
+
labelHidden: A
|
|
38
|
+
}, Q = ({
|
|
39
|
+
children: c,
|
|
40
|
+
aria: k,
|
|
41
|
+
className: u,
|
|
42
|
+
dataTrackingid: f,
|
|
43
|
+
download: z,
|
|
44
|
+
hideLabel: h = !1,
|
|
45
|
+
href: n,
|
|
46
|
+
iconName: a,
|
|
47
|
+
iconPosition: m = "left",
|
|
48
|
+
iconSource: e,
|
|
49
|
+
isFlush: r = !1,
|
|
50
|
+
referrerPolicy: v,
|
|
51
|
+
rel: D,
|
|
52
|
+
size: s = "medium",
|
|
53
|
+
target: y = "_self",
|
|
54
|
+
theme: l = "light",
|
|
55
|
+
variant: t = "filled",
|
|
56
|
+
...G
|
|
57
|
+
}) => {
|
|
58
|
+
const O = g(o.root, u, {
|
|
59
|
+
// variant
|
|
60
|
+
[o.rootFilled]: t === "filled",
|
|
61
|
+
[o.rootHighlight]: t === "highlight",
|
|
62
|
+
[o.rootOutline]: t === "outline",
|
|
63
|
+
[o.rootGhost]: t === "ghost" && r !== !0,
|
|
64
|
+
// isFlush
|
|
65
|
+
[o.rootGhostFlush]: t === "ghost" && r === !0,
|
|
66
|
+
// dark theme
|
|
67
|
+
[o.rootDarkFilled]: l === "dark" && t === "filled",
|
|
68
|
+
[o.rootDarkHighlight]: l === "dark" && t === "highlight",
|
|
69
|
+
[o.rootDarkOutline]: l === "dark" && t === "outline",
|
|
70
|
+
[o.rootDarkGhost]: l === "dark" && t === "ghost" && r !== !0,
|
|
71
|
+
// dark isFlush
|
|
72
|
+
[o.rootDarkGhostFlush]: l === "dark" && t === "ghost" && r === !0,
|
|
73
|
+
// size
|
|
74
|
+
[o.rootSmall]: s === "small",
|
|
75
|
+
// icon position
|
|
76
|
+
[o.rootIconLeft]: m === "left",
|
|
77
|
+
// icon only
|
|
78
|
+
[o.rootIconOnly]: i(h) && s === "medium",
|
|
79
|
+
[o.rootIconOnlySmall]: i(h) && s === "small"
|
|
80
|
+
}), I = g({
|
|
81
|
+
// hide label only visually to keep them available for assistive technologies
|
|
82
|
+
[o.labelHidden]: i(h)
|
|
83
|
+
}), p = l === "light" && t === "filled" || l === "dark" && t === "outline" || l === "dark" && t === "ghost" ? "dark" : "light", d = n === void 0 ? "span" : "a";
|
|
84
|
+
return /* @__PURE__ */ _.jsxs(
|
|
85
|
+
d,
|
|
86
|
+
{
|
|
87
|
+
className: O,
|
|
88
|
+
"data-trackingid": f,
|
|
89
|
+
...d === "a" && {
|
|
90
|
+
href: n,
|
|
91
|
+
target: y,
|
|
92
|
+
rel: D,
|
|
93
|
+
referrerPolicy: v,
|
|
94
|
+
download: z
|
|
95
|
+
},
|
|
96
|
+
...k,
|
|
97
|
+
...G,
|
|
98
|
+
children: [
|
|
99
|
+
/* @__PURE__ */ _.jsx("span", { className: I, children: c }),
|
|
100
|
+
(a || e) && /* @__PURE__ */ _.jsx(
|
|
101
|
+
F,
|
|
102
|
+
{
|
|
103
|
+
name: a,
|
|
104
|
+
theme: p,
|
|
105
|
+
source: e,
|
|
106
|
+
"aria-hidden": "true"
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
};
|
|
113
|
+
export {
|
|
114
|
+
Q as DSLink
|
|
115
|
+
};
|