@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.
Files changed (76) hide show
  1. package/Notification-additional-information.jpeg +0 -0
  2. package/Notification-confirm-error.jpg +0 -0
  3. package/Notification-confirm-warn.jpeg +0 -0
  4. package/Notification-overview.jpeg +0 -0
  5. package/Notification-success.jpeg +0 -0
  6. package/assets/Dialog.DdLMmOLt.css +1 -0
  7. package/assets/Drawer.BqBgbSuP.css +1 -0
  8. package/assets/Toast.ChT0hchk.css +1 -0
  9. package/assets/button.3UhhGy87.css +1 -0
  10. package/assets/buttonround.DXDlPKwD.css +1 -0
  11. package/assets/link.BJHmVrew.css +1 -0
  12. package/assets/logo.pETQEsvZ.css +1 -0
  13. package/button.DPrDynn_.js +135 -0
  14. package/buttonround.ix_-O4l1.js +118 -0
  15. package/{checkbox.DNHdo6_n.js → checkbox.hoVQ37RP.js} +31 -32
  16. package/{checkboxgroup.DqWlzAeR.js → checkboxgroup.C9VX3c5W.js} +1 -1
  17. package/chunks/{CheckboxGroup.DsQ6lI5a.js → CheckboxGroup.kG1WWhe_.js} +1 -1
  18. package/chunks/{CustomReactSelect.5dHi6PEO.js → CustomReactSelect.BVv0Zcvc.js} +4 -6
  19. package/chunks/Dialog.o7bcfCBf.js +148 -0
  20. package/chunks/Drawer.VbG4cfgJ.js +154 -0
  21. package/chunks/{InputPassword.a7zHKrmM.js → InputPassword.TlusvIds.js} +1 -1
  22. package/chunks/{InputSearch.DITRiB92.js → InputSearch.BbCdCCax.js} +1 -1
  23. package/chunks/{InputStepper.Bf8NZ9pb.js → InputStepper.DR3NR_II.js} +1 -1
  24. package/chunks/{Notification.DVVuSOqG.js → Notification.B6a6FOlS.js} +4 -4
  25. package/chunks/Toast.BpyBIPFW.js +89 -0
  26. package/{combobox.CRlhqmuO.js → combobox.Dgp3kvFR.js} +1 -1
  27. package/components/Button/Button.d.ts +1 -1
  28. package/components/Checkbox/Checkbox.d.ts +1 -1
  29. package/components/CustomReactSelect/CustomReactSelect.d.ts +2 -2
  30. package/components/Dialog/Dialog.d.ts +22 -3
  31. package/components/Dialog/Dialog.test.d.ts +1 -0
  32. package/components/Dialog/Dialog.utils.d.ts +12 -0
  33. package/components/Dialog/Dialog.utils.test.d.ts +1 -0
  34. package/components/Drawer/Drawer.d.ts +31 -0
  35. package/components/Drawer/Drawer.test.d.ts +1 -0
  36. package/components/Drawer/Drawer.utils.d.ts +14 -0
  37. package/components/Drawer/Drawer.utils.test.d.ts +1 -0
  38. package/components/Input/Input.d.ts +1 -1
  39. package/components/InputSearch/InputSearch.d.ts +1 -1
  40. package/components/LinkStandalone/LinkStandalone.d.ts +1 -1
  41. package/components/Notification/Notification.d.ts +3 -1
  42. package/components/Radio/Radio.d.ts +1 -1
  43. package/components/RadioGroup/RadioGroup.d.ts +1 -1
  44. package/components/SkipToContent/SkipToContent.d.ts +1 -1
  45. package/components/Switch/Switch.d.ts +1 -1
  46. package/components/Toast/Toast.d.ts +3 -0
  47. package/{customreactselect.CD58gwtp.js → customreactselect.BxkJi_UE.js} +1 -1
  48. package/dialog.CVFl9IVY.js +9 -0
  49. package/drawer.BheN3lap.js +9 -0
  50. package/drawer.d.ts +1 -0
  51. package/index.d.ts +4 -0
  52. package/index.es.js +99 -92
  53. package/{input.DqSOhSMX.js → input.CfO9lL_o.js} +1 -1
  54. package/{inputpassword.Ba9SUUIK.js → inputpassword.CvnUeLTq.js} +2 -2
  55. package/{inputsearch.BK-0OTwA.js → inputsearch.ClX9PlYG.js} +2 -2
  56. package/{inputstepper.DFQ4zC15.js → inputstepper.Dd76qaQT.js} +2 -2
  57. package/link.CIY7SOpm.js +115 -0
  58. package/{logo.BR_CUXFl.js → logo.CqukakYv.js} +32 -36
  59. package/{notification.Csn5QCR2.js → notification.BGRev3jC.js} +2 -2
  60. package/package.json +3 -3
  61. package/{skiptocontent._YZRKxnc.js → skiptocontent.ALhHiH8t.js} +15 -13
  62. package/{toast.r_yhGYEe.js → toast.CtgjrtBC.js} +2 -2
  63. package/{toastmanager.BncH_rUP.js → toastmanager.6mUZ8eCN.js} +27 -25
  64. package/utils/render-in-iframe.d.ts +15 -0
  65. package/utils/vitest.setup.d.ts +2 -0
  66. package/assets/Toast.BzVaebc0.css +0 -1
  67. package/assets/button.BdxtFZKx.css +0 -1
  68. package/assets/buttonround.pR4StXA7.css +0 -1
  69. package/assets/dialog.CKwM2EBH.css +0 -1
  70. package/assets/link.D61tKkSK.css +0 -1
  71. package/assets/logo.C05WqGId.css +0 -1
  72. package/button.L1lgCuM9.js +0 -135
  73. package/buttonround.ddSqXjYf.js +0 -118
  74. package/chunks/Toast.RON4bFPY.js +0 -89
  75. package/dialog.0qPUVJha.js +0 -45
  76. package/link.SAcKvzJ3.js +0 -115
@@ -1,45 +0,0 @@
1
- "use client";
2
- import { j as e } from "./chunks/jsx-runtime.C115EyI4.js";
3
- import { c as u } from "./chunks/index.CvOaL64Y.js";
4
- import { useRef as f, useEffect as l } from "react";
5
- import { DSButton as m } from "./button.L1lgCuM9.js";
6
- import './assets/dialog.CKwM2EBH.css';const _ = "_root_4piiz_76", p = "_success_4piiz_80", d = "_info_4piiz_84", g = "_warning_4piiz_88", h = {
7
- root: _,
8
- success: p,
9
- info: d,
10
- warning: g
11
- }, z = ({
12
- children: r,
13
- className: c,
14
- footer: n,
15
- header: a,
16
- isOpen: t,
17
- onClose: s
18
- }) => {
19
- const i = f(null);
20
- return l(() => {
21
- const o = i.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__ */ e.jsxs("dialog", { ref: i, className: u(h.root, c), children: [
26
- /* @__PURE__ */ e.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
- r,
40
- n
41
- ] });
42
- };
43
- export {
44
- z as DSDialog
45
- };
package/link.SAcKvzJ3.js DELETED
@@ -1,115 +0,0 @@
1
- "use client";
2
- import { j as d } from "./chunks/jsx-runtime.C115EyI4.js";
3
- import { c as g } from "./chunks/index.CvOaL64Y.js";
4
- import { u as h } from "./chunks/useBreakpoint.5xBNDiCf.js";
5
- import { D as H } from "./chunks/Icon.n4XZrQ4N.js";
6
- import './assets/link.D61tKkSK.css';const S = "_root_rd44x_151", b = "_root--highlight_rd44x_219", j = "_root--dark-highlight_rd44x_219", L = "_root--filled_rd44x_297", C = "_root--outline_rd44x_325", N = "_root--ghost_rd44x_352", T = "_root--ghost-flush_rd44x_377", B = "_root--small_rd44x_383", E = "_root--dark-filled_rd44x_460", R = "_root--dark-outline_rd44x_519", V = "_root--dark-ghost_rd44x_577", q = "_root--dark-ghost-flush_rd44x_633", w = "_root--icon-left_rd44x_692", A = "_root--icon-only_rd44x_708", J = "_root--icon-only-small_rd44x_717", K = "_label--hidden_rd44x_728", o = {
7
- root: S,
8
- "root--highlight": "_root--highlight_rd44x_219",
9
- rootHighlight: b,
10
- "root--dark-highlight": "_root--dark-highlight_rd44x_219",
11
- rootDarkHighlight: j,
12
- "root--filled": "_root--filled_rd44x_297",
13
- rootFilled: L,
14
- "root--outline": "_root--outline_rd44x_325",
15
- rootOutline: C,
16
- "root--ghost": "_root--ghost_rd44x_352",
17
- rootGhost: N,
18
- "root--ghost-flush": "_root--ghost-flush_rd44x_377",
19
- rootGhostFlush: T,
20
- "root--small": "_root--small_rd44x_383",
21
- rootSmall: B,
22
- "root--dark-filled": "_root--dark-filled_rd44x_460",
23
- rootDarkFilled: E,
24
- "root--dark-outline": "_root--dark-outline_rd44x_519",
25
- rootDarkOutline: R,
26
- "root--dark-ghost": "_root--dark-ghost_rd44x_577",
27
- rootDarkGhost: V,
28
- "root--dark-ghost-flush": "_root--dark-ghost-flush_rd44x_633",
29
- rootDarkGhostFlush: q,
30
- "root--icon-left": "_root--icon-left_rd44x_692",
31
- rootIconLeft: w,
32
- "root--icon-only": "_root--icon-only_rd44x_708",
33
- rootIconOnly: A,
34
- "root--icon-only-small": "_root--icon-only-small_rd44x_717",
35
- rootIconOnlySmall: J,
36
- "label--hidden": "_label--hidden_rd44x_728",
37
- labelHidden: K
38
- }, W = ({
39
- children: c,
40
- aria: k,
41
- className: u,
42
- dataTrackingid: x,
43
- download: f,
44
- hideLabel: s = !1,
45
- href: i,
46
- iconName: n,
47
- iconPosition: m = "left",
48
- iconSource: a,
49
- isFlush: l = !1,
50
- referrerPolicy: D,
51
- rel: y,
52
- size: _ = "medium",
53
- target: G = "_self",
54
- theme: r = "light",
55
- variant: t = "filled",
56
- ...O
57
- }) => {
58
- const I = 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" && l !== !0,
64
- // isFlush
65
- [o.rootGhostFlush]: t === "ghost" && l === !0,
66
- // dark theme
67
- [o.rootDarkFilled]: r === "dark" && t === "filled",
68
- [o.rootDarkHighlight]: r === "dark" && t === "highlight",
69
- [o.rootDarkOutline]: r === "dark" && t === "outline",
70
- [o.rootDarkGhost]: r === "dark" && t === "ghost" && l !== !0,
71
- // dark isFlush
72
- [o.rootDarkGhostFlush]: r === "dark" && t === "ghost" && l === !0,
73
- // size
74
- [o.rootSmall]: _ === "small",
75
- // icon position
76
- [o.rootIconLeft]: m === "left",
77
- // icon only
78
- [o.rootIconOnly]: h(s) && _ === "medium",
79
- [o.rootIconOnlySmall]: h(s) && _ === "small"
80
- }), p = g({
81
- // hide label only visually to keep them available for assistive technologies
82
- [o.labelHidden]: h(s)
83
- }), F = r === "light" && t === "filled" || r === "dark" && t === "outline" || r === "dark" && t === "ghost" ? "dark" : "light", e = i === void 0 ? "span" : "a";
84
- return /* @__PURE__ */ d.jsxs(
85
- e,
86
- {
87
- className: I,
88
- "data-trackingid": x,
89
- ...e === "a" && {
90
- href: i,
91
- target: G,
92
- rel: y,
93
- referrerPolicy: D,
94
- download: f
95
- },
96
- ...k,
97
- ...O,
98
- children: [
99
- /* @__PURE__ */ d.jsx("span", { className: p, children: c }),
100
- (n || a) && /* @__PURE__ */ d.jsx(
101
- H,
102
- {
103
- name: n,
104
- theme: F,
105
- source: a,
106
- "aria-hidden": "true"
107
- }
108
- )
109
- ]
110
- }
111
- );
112
- };
113
- export {
114
- W as DSLink
115
- };