@stihl-design-system/components 1.0.0-RC.7 → 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/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/{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/{InputPassword.a7zHKrmM.js → InputPassword.TlusvIds.js} +1 -1
- package/chunks/{InputSearch.DITRiB92.js → InputSearch.BbCdCCax.js} +1 -1
- package/chunks/{InputStepper.Bf8NZ9pb.js → InputStepper.DR3NR_II.js} +1 -1
- package/chunks/{Notification.DVVuSOqG.js → Notification.B6a6FOlS.js} +4 -4
- package/chunks/Toast.BpyBIPFW.js +89 -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/{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 +4 -0
- package/index.es.js +99 -92
- package/{input.DqSOhSMX.js → input.CfO9lL_o.js} +1 -1
- package/{inputpassword.Ba9SUUIK.js → inputpassword.CvnUeLTq.js} +2 -2
- package/{inputsearch.BK-0OTwA.js → inputsearch.ClX9PlYG.js} +2 -2
- package/{inputstepper.DFQ4zC15.js → inputstepper.Dd76qaQT.js} +2 -2
- 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.BncH_rUP.js → toastmanager.6mUZ8eCN.js} +27 -25
- 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/Toast.RON4bFPY.js +0 -89
- package/dialog.0qPUVJha.js +0 -45
- package/link.SAcKvzJ3.js +0 -115
|
@@ -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>>;
|
|
@@ -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';
|
package/index.es.js
CHANGED
|
@@ -1,39 +1,41 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { DSAriaLiveRegions as x } from "./arialiveregions.BK4T7Vhk.js";
|
|
3
|
-
import { DSButton as
|
|
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 {
|
|
30
|
-
import {
|
|
31
|
-
|
|
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";
|
|
33
|
+
const o = ["medium", "small"], a = [
|
|
32
34
|
"filled",
|
|
33
35
|
"highlight",
|
|
34
36
|
"outline",
|
|
35
37
|
"ghost"
|
|
36
|
-
],
|
|
38
|
+
], e = ["filled", "highlight"], r = [
|
|
37
39
|
"x-large",
|
|
38
40
|
"x-large-uppercase",
|
|
39
41
|
"large",
|
|
@@ -42,7 +44,7 @@ const o = ["medium", "small"], e = [
|
|
|
42
44
|
"medium-uppercase",
|
|
43
45
|
"small",
|
|
44
46
|
"small-uppercase"
|
|
45
|
-
],
|
|
47
|
+
], t = ["h1", "h2", "h3", "h4", "h5", "h6"], s = ["medium", "small"], p = [
|
|
46
48
|
"filled",
|
|
47
49
|
"highlight",
|
|
48
50
|
"outline",
|
|
@@ -69,81 +71,86 @@ const o = ["medium", "small"], e = [
|
|
|
69
71
|
"small",
|
|
70
72
|
"x-small",
|
|
71
73
|
"xx-small"
|
|
72
|
-
],
|
|
74
|
+
], D = ["bold", "normal"], n = ["x-large", "large"];
|
|
73
75
|
export {
|
|
74
|
-
|
|
76
|
+
e as BUTTON_ROUND_VARIANT,
|
|
75
77
|
o as BUTTON_SIZE,
|
|
76
|
-
|
|
78
|
+
a as BUTTON_VARIANT,
|
|
77
79
|
P as COMBOBOX_SIZE,
|
|
80
|
+
Z as DRAWER_POSITION,
|
|
78
81
|
x as DSAriaLiveRegions,
|
|
79
|
-
|
|
80
|
-
|
|
82
|
+
N as DSButton,
|
|
83
|
+
_ as DSButtonRound,
|
|
81
84
|
f as DSCheckbox,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
X as
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
y as
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
xo as
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
go as
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
Fo as
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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,
|
|
105
110
|
C as DS_COMBOBOX_TRANSLATIONS,
|
|
106
111
|
R as DS_COMBOBOX_TRANSLATIONS_DE,
|
|
107
112
|
L as DS_COMBOBOX_TRANSLATIONS_EN,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
113
|
+
r as HEADING_SIZE,
|
|
114
|
+
t as HEADING_TAG,
|
|
115
|
+
j as ICON_SIZE,
|
|
116
|
+
oo as INPUT_SIZE,
|
|
112
117
|
s as LINK_SIZE,
|
|
113
118
|
i as LINK_STANDALONE_VARIANT,
|
|
114
119
|
p as LINK_VARIANT,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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,
|
|
120
125
|
S as SPINNER_SIZE,
|
|
121
|
-
|
|
122
|
-
|
|
126
|
+
ro as SUPPORTED_INPUT_TYPES,
|
|
127
|
+
Qo as TEXTAREA_SIZE,
|
|
123
128
|
m as TEXT_SIZE,
|
|
124
129
|
l as TEXT_TAG,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
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,
|
|
138
143
|
A as validateCheckboxGroupProps,
|
|
139
144
|
B as validateComboboxProps,
|
|
140
|
-
b as
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
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
|
|
149
156
|
};
|
|
@@ -4,7 +4,7 @@ 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
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";
|
|
@@ -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.
|
|
7
|
+
import "./button.DPrDynn_.js";
|
|
8
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
|
+
};
|
|
@@ -1,33 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as a } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import './assets/logo.
|
|
5
|
-
anchor:
|
|
6
|
-
svg:
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"svg-background": "_svg-
|
|
10
|
-
svgBackground: e,
|
|
11
|
-
"svg-background--dark": "_svg-background--dark_1z0x0_150",
|
|
3
|
+
import { c as o } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import './assets/logo.pETQEsvZ.css';const h = "_anchor_q0uqp_76", e = "_svg_q0uqp_77", k = "_svg-background_q0uqp_117", u = "_svg-background--dark_q0uqp_120", x = "_svg-text_q0uqp_123", q = "_svg-text--dark_q0uqp_126", s = {
|
|
5
|
+
anchor: h,
|
|
6
|
+
svg: e,
|
|
7
|
+
"svg-background": "_svg-background_q0uqp_117",
|
|
8
|
+
svgBackground: k,
|
|
9
|
+
"svg-background--dark": "_svg-background--dark_q0uqp_120",
|
|
12
10
|
svgBackgroundDark: u,
|
|
13
|
-
"svg-text": "_svg-
|
|
14
|
-
svgText:
|
|
15
|
-
"svg-text--dark": "_svg-text--
|
|
16
|
-
svgTextDark:
|
|
17
|
-
},
|
|
18
|
-
aria:
|
|
19
|
-
className:
|
|
20
|
-
href:
|
|
21
|
-
target:
|
|
22
|
-
theme:
|
|
23
|
-
variant:
|
|
24
|
-
...
|
|
11
|
+
"svg-text": "_svg-text_q0uqp_123",
|
|
12
|
+
svgText: x,
|
|
13
|
+
"svg-text--dark": "_svg-text--dark_q0uqp_126",
|
|
14
|
+
svgTextDark: q
|
|
15
|
+
}, m = ({
|
|
16
|
+
aria: n,
|
|
17
|
+
className: t,
|
|
18
|
+
href: g,
|
|
19
|
+
target: l = "_self",
|
|
20
|
+
theme: v,
|
|
21
|
+
variant: _ = "standard",
|
|
22
|
+
...d
|
|
25
23
|
}) => {
|
|
26
|
-
const
|
|
24
|
+
const r = _ === "background" || v === "dark", c = /* @__PURE__ */ a.jsxs(
|
|
27
25
|
"svg",
|
|
28
26
|
{
|
|
29
27
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
-
className:
|
|
28
|
+
className: o(s.svg, !g && t),
|
|
31
29
|
viewBox: "0 0 408 179",
|
|
32
30
|
width: "100%",
|
|
33
31
|
height: "100%",
|
|
@@ -36,34 +34,32 @@ import './assets/logo.C05WqGId.css';const d = "_anchor_1z0x0_76", l = "_svg_1z0x
|
|
|
36
34
|
/* @__PURE__ */ a.jsx(
|
|
37
35
|
"path",
|
|
38
36
|
{
|
|
39
|
-
className:
|
|
37
|
+
className: r ? s.svgBackgroundDark : s.svgBackground,
|
|
40
38
|
d: "M408 0H0v179h408V0Z"
|
|
41
39
|
}
|
|
42
40
|
),
|
|
43
41
|
/* @__PURE__ */ a.jsx(
|
|
44
42
|
"path",
|
|
45
43
|
{
|
|
46
|
-
className:
|
|
44
|
+
className: r ? s.svgTextDark : s.svgText,
|
|
47
45
|
d: "M195.459 56.314h-61.656l-4.936 16.193h20.668l-15.304 50.179h20.106l15.293-50.18h20.893l4.936-16.192ZM62.286 66.62l-5.353 17.558c-2.384 7.814 1.957 13.531 9.637 13.531h25.065a1.626 1.626 0 0 1 1.288.7 1.638 1.638 0 0 1 .207 1.454l-1.349 4.42a3.37 3.37 0 0 1-2.8 2.154H49.624l-4.993 16.249h50.816c5.622 0 10.39-2.605 12.842-10.645l5.094-16.677c2.406-7.894-2.081-13.532-9.086-13.532H79.108c-1.394 0-1.945-1.015-1.563-2.255l1.35-4.42a3.385 3.385 0 0 1 1.185-1.872 3.368 3.368 0 0 1 2.087-.733h36.253l4.937-16.193H75.251c-6.87-.045-11.155 4.364-12.965 10.261ZM320.571 106.493l15.304-50.18h-20.218l-20.23 66.373h63.017l4.936-16.193h-42.809ZM282.653 56.314l-7.771 25.484H250.83l7.77-25.484h-19.319l-20.23 66.372h19.308l7.736-25.372h24.053l-7.725 25.372h19.836l20.23-66.372h-19.836ZM205.917 56.314l-20.229 66.372h20.218l20.23-66.372h-20.219Z"
|
|
48
46
|
}
|
|
49
47
|
)
|
|
50
48
|
]
|
|
51
49
|
}
|
|
52
50
|
);
|
|
53
|
-
return
|
|
51
|
+
return g ? /* @__PURE__ */ a.jsx(
|
|
54
52
|
"a",
|
|
55
53
|
{
|
|
56
|
-
className:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
...x,
|
|
63
|
-
children: o
|
|
54
|
+
className: o(s.anchor, t),
|
|
55
|
+
href: g,
|
|
56
|
+
target: l,
|
|
57
|
+
...n,
|
|
58
|
+
...d,
|
|
59
|
+
children: c
|
|
64
60
|
}
|
|
65
|
-
) :
|
|
61
|
+
) : c;
|
|
66
62
|
};
|
|
67
63
|
export {
|
|
68
|
-
|
|
64
|
+
m as DSLogo
|
|
69
65
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
3
|
import "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import "./button.DPrDynn_.js";
|
|
4
5
|
import "./chunks/Icon.n4XZrQ4N.js";
|
|
5
|
-
import { D as e } from "./chunks/Notification.
|
|
6
|
-
import "./button.L1lgCuM9.js";
|
|
6
|
+
import { D as e } from "./chunks/Notification.B6a6FOlS.js";
|
|
7
7
|
export {
|
|
8
8
|
e as DSNotification
|
|
9
9
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stihl-design-system/components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.0-RC.
|
|
4
|
+
"version": "1.0.0-RC.8",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"homepage": "https://main--63440bbb95889041542a5ba3.chromatic.com",
|
|
7
7
|
"keywords": [
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"dev": "npm run storybook",
|
|
50
50
|
"prebuild": "npm run build:propsOverview",
|
|
51
51
|
"build": "npm run build:components && npm run build:storybook",
|
|
52
|
-
"build:components": "tsc && vite build && npm run build:copyUtilitiesBuild && npm run build:copyTypes && cp package.json ./dist",
|
|
52
|
+
"build:components": "tsc && vite build && npm run build:copyUtilitiesBuild && npm run build:copyTypes && cp package.json ./dist && npx vite-node scripts/replaceUseInsertionEffect.ts",
|
|
53
53
|
"build:copyComponents": "npm run build:components && ../../copyDistToExampleApps.sh '../../'",
|
|
54
54
|
"build:copyTypes": "TARGET=./dist/types && rm -rf $TARGET && mkdir -p $TARGET && cp -r ./src/types/* $TARGET/",
|
|
55
55
|
"build:copyUtilitiesBuild": "npm run build:copyUtilitiesBuild:scss && npm run build:copyUtilitiesBuild:fonts && npm run build:copyUtilitiesBuild:partials",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@babel/core": "^7.24.9",
|
|
78
78
|
"@juggle/resize-observer": "^3.4.0",
|
|
79
|
-
"@playwright/test": "^1.
|
|
79
|
+
"@playwright/test": "^1.46.0",
|
|
80
80
|
"@react-docgen/cli": "^2.0.3",
|
|
81
81
|
"@storybook/addon-a11y": "^8.2.4",
|
|
82
82
|
"@storybook/addon-actions": "^8.2.4",
|