@stihl-design-system/components 1.0.0-RC.26 → 1.0.0-RC.27
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/assets/CustomReactSelect.B9f_KYFg.css +1 -0
- package/assets/InputPassword.BuVQ9dRy.css +1 -0
- package/assets/InputSearch.Dwtb3Mhw.css +1 -0
- package/assets/InputStepper.CBt99L83.css +1 -0
- package/assets/Select.CghDnBUQ.css +1 -0
- package/assets/Textarea.BgtH-TTe.css +1 -0
- package/assets/banner.D9EiZqqR.css +1 -0
- package/assets/input.DFwunFjw.css +1 -0
- package/assets/radio.BCB51D_y.css +1 -0
- package/assets/scroller.Hszs1Yq4.css +1 -0
- package/banner.CgQdUb_c.js +55 -0
- package/banner.d.ts +2 -0
- package/chipgroup.BWpqUzXF.js +209 -0
- package/chunks/{CustomReactSelect.DWdh3k_q.js → CustomReactSelect.BPnzhvw1.js} +52 -49
- package/chunks/Header.Djs1adPW.js +361 -0
- package/chunks/InputPassword.D42uUEGy.js +136 -0
- package/chunks/InputSearch.aIbUXVQU.js +174 -0
- package/chunks/InputStepper.DFEdUWm7.js +263 -0
- package/chunks/{NavigationTabs.CuOXq0b7.js → NavigationTabs.BofhX8bD.js} +1 -1
- package/chunks/{RadioGroup.okEm_-NA.js → RadioGroup.c7YYJdUe.js} +1 -1
- package/chunks/{Select.D3IUIdPJ.js → Select.B_EHpk22.js} +22 -22
- package/chunks/{Slider.CPG4Btbq.js → Slider.DMSwmGwD.js} +1 -1
- package/chunks/{Tabs.C4qGWCcD.js → Tabs.Bl4K3Kjn.js} +1 -1
- package/chunks/{Textarea.D4vXRg_U.js → Textarea.Ce26v6ht.js} +53 -53
- package/chunks/is-animation-disabled.CUl4N3LI.js +20 -0
- package/{combobox.DIB07SNA.js → combobox.AaK6QjRl.js} +1 -1
- package/components/Banner/Banner.d.ts +32 -0
- package/components/Banner/Banner.utils.d.ts +2 -0
- package/components/Scroller/Scroller.d.ts +20 -0
- package/components/Scroller/Scroller.utils.d.ts +3 -0
- package/components/Tabs/TabList/TabList.d.ts +1 -1
- package/components/Tabs/TabList/TabList.utils.d.ts +0 -4
- package/{customreactselect.BvuvCDyE.js → customreactselect.Bu1i8wkh.js} +1 -1
- package/{header.DLrTpc-W.js → header.WhQHSuB1.js} +1 -1
- package/index.d.ts +4 -0
- package/index.es.js +202 -195
- package/{input.D4OiEI8g.js → input.DhxUW3zc.js} +35 -35
- package/{inputpassword.CYfGcUE-.js → inputpassword.CaJBCMA0.js} +1 -1
- package/{inputsearch.CecX8gHD.js → inputsearch.B06DhYzo.js} +1 -1
- package/{inputstepper.CFgfHjM_.js → inputstepper.DNY7nzP8.js} +1 -1
- package/{navigationtabs.B86G8ODY.js → navigationtabs.DQ1kE-h4.js} +2 -2
- package/package.json +2 -2
- package/partials/index.js +104 -82
- package/partials/lib/partials.d.ts +1 -1
- package/radio.Be4pFOLf.js +134 -0
- package/{radiogroup.C2PkTHnF.js → radiogroup.BRjwP01C.js} +2 -2
- package/scroller.CCA6kFR6.js +123 -0
- package/scroller.d.ts +2 -0
- package/{select.CmGQdpsV.js → select.3zE96eWc.js} +1 -1
- package/{slider.DGmVtnxs.js → slider.CTCf7Xdm.js} +2 -2
- package/tablist.Dzwe0_J4.js +256 -0
- package/{tabs.Dby_2Hyz.js → tabs.yudjJk9d.js} +2 -2
- package/{textarea.yOTo23Pd.js → textarea.B_3fPtmd.js} +1 -1
- package/{topbar.qNB9efbF.js → topbar.2b8fjmA4.js} +1 -1
- package/utils/get-rect.d.ts +4 -0
- package/utils/get-rect.test.d.ts +1 -0
- package/utils/index.d.ts +2 -1
- package/utils/is-animation-disabled.d.ts +14 -0
- package/utils/is-animation-disabled.test.d.ts +1 -0
- package/assets/CustomReactSelect.B8l6al4B.css +0 -1
- package/assets/InputPassword.CkHF5zCh.css +0 -1
- package/assets/InputSearch.BV8Q2EUL.css +0 -1
- package/assets/InputStepper.DzzrAdma.css +0 -1
- package/assets/Select.e1fTfWmm.css +0 -1
- package/assets/Textarea.BGV7Z0Z9.css +0 -1
- package/assets/input.Cj4tF_F7.css +0 -1
- package/assets/radio.CqaNn1Gz.css +0 -1
- package/chipgroup.Bp_v9IQu.js +0 -186
- package/chunks/Header.CsrzyVil.js +0 -356
- package/chunks/InputPassword.BQU09DJh.js +0 -136
- package/chunks/InputSearch.CXL9ThpX.js +0 -174
- package/chunks/InputStepper.BhLQVAlo.js +0 -263
- package/radio.Dm9bDBzM.js +0 -134
- package/tablist.CcCURua8.js +0 -266
- package/utils/isAnimationDisabled.d.ts +0 -1
- /package/components/{Tabs/TabList/TabList.utils.test.d.ts → Banner/Banner.test.d.ts} +0 -0
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _, jsxs as me, Fragment as ve } from "react/jsx-runtime";
|
|
3
|
-
import { d as P } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { c as w } from "./index.CEyLAtio.js";
|
|
5
|
-
import { useState as E, useEffect as ae, useContext as re, createContext as Be, useRef as te } from "react";
|
|
6
|
-
import { g as Y, c as T, p as ce } from "./helpers.BbWkXTr3.js";
|
|
7
|
-
import { u as De } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
8
|
-
import { DSLogo as He } from "../logo.C96KaG1P.js";
|
|
9
|
-
import '../assets/Header.DO34x-dO.css';const Pe = (d) => {
|
|
10
|
-
const e = P.c(3), t = 0, [r, n] = E("down");
|
|
11
|
-
let a, s;
|
|
12
|
-
return e[0] !== t ? (a = () => {
|
|
13
|
-
let l;
|
|
14
|
-
l = window.scrollY;
|
|
15
|
-
const c = () => {
|
|
16
|
-
const o = window.scrollY, m = o > l ? "down" : "up";
|
|
17
|
-
Math.abs(o - l) > t && (n(m), l = o);
|
|
18
|
-
};
|
|
19
|
-
return window.addEventListener("scroll", c, {
|
|
20
|
-
passive: !0
|
|
21
|
-
}), () => window.removeEventListener("scroll", c);
|
|
22
|
-
}, s = [t], e[0] = t, e[1] = a, e[2] = s) : (a = e[1], s = e[2]), ae(a, s), r;
|
|
23
|
-
}, ht = ["full", "main"], xe = ({
|
|
24
|
-
hasBrandArea: d,
|
|
25
|
-
hasPrimaryArea: e,
|
|
26
|
-
hasSecondaryArea: t
|
|
27
|
-
}) => {
|
|
28
|
-
if (d)
|
|
29
|
-
throw new Error(Y("DSHeader", "A <DSTopBar.BrandArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
|
|
30
|
-
if (e)
|
|
31
|
-
throw new Error(Y("DSHeader", "A <DSTopBar.PrimaryArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
|
|
32
|
-
if (t)
|
|
33
|
-
throw new Error(Y("DSHeader", "A <DSTopBar.SecondaryArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
|
|
34
|
-
}, Ee = "ds-top-bar_root_ryiho_1", Te = "ds-top-bar_root--sticky_ryiho_47", Ce = "ds-top-bar_root--fixed_ryiho_51", Fe = "ds-top-bar_content_ryiho_59", Oe = "ds-top-bar_content--variant-full_ryiho_78", Ve = "ds-top-bar_content--has-primary-area-and-secondary-area_ryiho_82", Re = "ds-top-bar_primary_ryiho_87", ke = "ds-top-bar_content--has-brand-add-on-with-primary-area-and-secondary-area_ryiho_102", Me = "ds-top-bar_brand_ryiho_107", $e = "ds-top-bar_content--has-primary-area_ryiho_82", We = "ds-top-bar_content--has-primary-area--with-brand-add-on_ryiho_146", Le = "ds-top-bar_brand-add-on_ryiho_210", Ie = "ds-top-bar_brand-add-on--double_ryiho_231", Ye = "ds-top-bar_sub-title_ryiho_245", ze = "ds-top-bar_secondary_ryiho_271", qe = "ds-top-bar_logo_ryiho_280", Ue = "ds-top-bar_logo--reduced_ryiho_290", v = {
|
|
35
|
-
root: Ee,
|
|
36
|
-
rootSticky: Te,
|
|
37
|
-
rootFixed: Ce,
|
|
38
|
-
content: Fe,
|
|
39
|
-
contentVariantFull: Oe,
|
|
40
|
-
contentHasPrimaryAreaAndSecondaryArea: Ve,
|
|
41
|
-
primary: Re,
|
|
42
|
-
contentHasBrandAddOnWithPrimaryAreaAndSecondaryArea: ke,
|
|
43
|
-
brand: Me,
|
|
44
|
-
contentHasPrimaryArea: $e,
|
|
45
|
-
contentHasPrimaryAreaWithBrandAddOn: We,
|
|
46
|
-
brandAddOn: Le,
|
|
47
|
-
brandAddOnDouble: Ie,
|
|
48
|
-
subTitle: Ye,
|
|
49
|
-
secondary: ze,
|
|
50
|
-
logo: qe,
|
|
51
|
-
logoReduced: Ue
|
|
52
|
-
}, je = ({
|
|
53
|
-
hasBrandArea: d,
|
|
54
|
-
hasPrimaryArea: e,
|
|
55
|
-
hasSecondaryArea: t
|
|
56
|
-
}) => {
|
|
57
|
-
if (!d)
|
|
58
|
-
throw new Error(Y("DSTopBar", "A <DSTopBar.BrandArea> component is required. Please include it as a child of DSTopBar."));
|
|
59
|
-
if (!e && t)
|
|
60
|
-
throw new Error(Y("DSTopBar", "A <DSTopBar.PrimaryArea> is required when using <DSTopBar.SecondaryArea>. Please include <DSTopBar.PrimaryArea> as a child of DSTopBar, or move the content from <DSTopBar.SecondaryArea> into <DSTopBar.PrimaryArea>."));
|
|
61
|
-
}, pe = (d) => d == null || typeof d == "object" && !Array.isArray(d) && d !== null && Object.keys(d).length === 0, ft = ["double", "single"], $ = (d) => {
|
|
62
|
-
const e = P.c(28);
|
|
63
|
-
let t, r, n, a;
|
|
64
|
-
e[0] !== d ? ({
|
|
65
|
-
children: t,
|
|
66
|
-
className: r,
|
|
67
|
-
rootClassName: a,
|
|
68
|
-
...n
|
|
69
|
-
} = d, e[0] = d, e[1] = t, e[2] = r, e[3] = n, e[4] = a) : (t = e[1], r = e[2], n = e[3], a = e[4]);
|
|
70
|
-
const {
|
|
71
|
-
variant: s,
|
|
72
|
-
isHeaderSticky: l,
|
|
73
|
-
isMobile: c,
|
|
74
|
-
topBarAreaRef: o,
|
|
75
|
-
isStickyMainNavigationVisible: m,
|
|
76
|
-
hasBrandAddOn: h
|
|
77
|
-
} = re(z);
|
|
78
|
-
let A, y;
|
|
79
|
-
if (e[5] !== t || e[6] !== r || e[7] !== h || e[8] !== l || e[9] !== c || e[10] !== m || e[11] !== a || e[12] !== s) {
|
|
80
|
-
const x = T(t, he), p = T(t, fe), i = T(t, Ae);
|
|
81
|
-
process.env.NODE_ENV !== "production" && je({
|
|
82
|
-
hasBrandArea: x,
|
|
83
|
-
hasPrimaryArea: p,
|
|
84
|
-
hasSecondaryArea: i
|
|
85
|
-
});
|
|
86
|
-
let b;
|
|
87
|
-
e[15] !== l || e[16] !== c || e[17] !== m || e[18] !== a ? (b = w(v.root, a, l ? {
|
|
88
|
-
[v.rootSticky]: !c && m,
|
|
89
|
-
[v.rootFixed]: !c && !m
|
|
90
|
-
} : {}), e[15] = l, e[16] = c, e[17] = m, e[18] = a, e[19] = b) : b = e[19], A = b, y = w(v.content, r, {
|
|
91
|
-
[v.contentHasPrimaryArea]: p && !h && !i,
|
|
92
|
-
[v.contentHasPrimaryAreaWithBrandAddOn]: p && h && !i,
|
|
93
|
-
[v.contentHasBrandAddOnWithPrimaryAreaAndSecondaryArea]: h && p && i,
|
|
94
|
-
[v.contentHasPrimaryAreaAndSecondaryArea]: p && i && !h,
|
|
95
|
-
[v.contentVariantFull]: s === "full"
|
|
96
|
-
}), e[5] = t, e[6] = r, e[7] = h, e[8] = l, e[9] = c, e[10] = m, e[11] = a, e[12] = s, e[13] = A, e[14] = y;
|
|
97
|
-
} else
|
|
98
|
-
A = e[13], y = e[14];
|
|
99
|
-
const u = y;
|
|
100
|
-
let f;
|
|
101
|
-
e[20] !== t || e[21] !== u || e[22] !== n ? (f = /* @__PURE__ */ _("section", { className: u, ...n, children: t }), e[20] = t, e[21] = u, e[22] = n, e[23] = f) : f = e[23];
|
|
102
|
-
let g;
|
|
103
|
-
return e[24] !== A || e[25] !== f || e[26] !== o ? (g = /* @__PURE__ */ _("div", { className: A, ref: o, children: f }), e[24] = A, e[25] = f, e[26] = o, e[27] = g) : g = e[27], g;
|
|
104
|
-
}, he = (d) => {
|
|
105
|
-
const e = P.c(26), {
|
|
106
|
-
children: t,
|
|
107
|
-
className: r
|
|
108
|
-
} = d, {
|
|
109
|
-
logoProps: n,
|
|
110
|
-
brandAddOnProps: a,
|
|
111
|
-
setHasBrandAddOn: s
|
|
112
|
-
} = re(z);
|
|
113
|
-
let l;
|
|
114
|
-
e[0] !== n ? (l = n || {}, e[0] = n, e[1] = l) : l = e[1];
|
|
115
|
-
const {
|
|
116
|
-
aria: c,
|
|
117
|
-
logo: o,
|
|
118
|
-
href: m,
|
|
119
|
-
target: h
|
|
120
|
-
} = l, A = o === void 0 ? "main" : o, y = m === void 0 ? "/" : m, u = h === void 0 ? "_self" : h;
|
|
121
|
-
let f;
|
|
122
|
-
e[2] !== a || e[3] !== t || e[4] !== s ? (f = () => {
|
|
123
|
-
t || !pe(a) ? s == null || s(!0) : s == null || s(!1);
|
|
124
|
-
}, e[2] = a, e[3] = t, e[4] = s, e[5] = f) : f = e[5];
|
|
125
|
-
let g;
|
|
126
|
-
e[6] !== a || e[7] !== t ? (g = [t, a], e[6] = a, e[7] = t, e[8] = g) : g = e[8], ae(f, g);
|
|
127
|
-
let x;
|
|
128
|
-
e[9] !== A ? (x = w(v.logo, {
|
|
129
|
-
[v.logoReduced]: A.includes("reduced")
|
|
130
|
-
}), e[9] = A, e[10] = x) : x = e[10];
|
|
131
|
-
const p = x;
|
|
132
|
-
let i;
|
|
133
|
-
e[11] !== r ? (i = w(v.brand, r), e[11] = r, e[12] = i) : i = e[12];
|
|
134
|
-
let b;
|
|
135
|
-
e[13] !== c || e[14] !== y || e[15] !== A || e[16] !== p || e[17] !== u ? (b = /* @__PURE__ */ _(He, { className: p, aria: c, logo: A, href: y, target: u }), e[13] = c, e[14] = y, e[15] = A, e[16] = p, e[17] = u, e[18] = b) : b = e[18];
|
|
136
|
-
let B;
|
|
137
|
-
e[19] !== a ? (B = pe(a) ? void 0 : /* @__PURE__ */ _(ge, { ...a }), e[19] = a, e[20] = B) : B = e[20];
|
|
138
|
-
let D;
|
|
139
|
-
return e[21] !== t || e[22] !== B || e[23] !== i || e[24] !== b ? (D = /* @__PURE__ */ me("div", { className: i, children: [
|
|
140
|
-
b,
|
|
141
|
-
B,
|
|
142
|
-
t
|
|
143
|
-
] }), e[21] = t, e[22] = B, e[23] = i, e[24] = b, e[25] = D) : D = e[25], D;
|
|
144
|
-
};
|
|
145
|
-
he.displayName = "DSTopBar.BrandArea";
|
|
146
|
-
const ge = (d) => {
|
|
147
|
-
const e = P.c(10), {
|
|
148
|
-
children: t,
|
|
149
|
-
className: r,
|
|
150
|
-
subTitle: n,
|
|
151
|
-
variant: a
|
|
152
|
-
} = d, s = a === void 0 ? "single" : a, l = s === "double";
|
|
153
|
-
let c;
|
|
154
|
-
e[0] !== r || e[1] !== l ? (c = w(v.brandAddOn, r, {
|
|
155
|
-
[v.brandAddOnDouble]: l
|
|
156
|
-
}), e[0] = r, e[1] = l, e[2] = c) : c = e[2];
|
|
157
|
-
const o = c;
|
|
158
|
-
let m;
|
|
159
|
-
e[3] !== t || e[4] !== n || e[5] !== s ? (m = s === "single" ? t : /* @__PURE__ */ me(ve, { children: [
|
|
160
|
-
/* @__PURE__ */ _("span", { children: t }),
|
|
161
|
-
n && /* @__PURE__ */ _("span", { className: v.subTitle, children: n })
|
|
162
|
-
] }), e[3] = t, e[4] = n, e[5] = s, e[6] = m) : m = e[6];
|
|
163
|
-
let h;
|
|
164
|
-
return e[7] !== o || e[8] !== m ? (h = /* @__PURE__ */ _("span", { className: o, children: m }), e[7] = o, e[8] = m, e[9] = h) : h = e[9], h;
|
|
165
|
-
};
|
|
166
|
-
ge.displayName = "DSTopBar.BrandAddOn";
|
|
167
|
-
const fe = (d) => {
|
|
168
|
-
const e = P.c(5), {
|
|
169
|
-
children: t,
|
|
170
|
-
className: r
|
|
171
|
-
} = d;
|
|
172
|
-
let n;
|
|
173
|
-
e[0] !== r ? (n = w(v.primary, r), e[0] = r, e[1] = n) : n = e[1];
|
|
174
|
-
let a;
|
|
175
|
-
return e[2] !== t || e[3] !== n ? (a = /* @__PURE__ */ _("div", { className: n, children: t }), e[2] = t, e[3] = n, e[4] = a) : a = e[4], a;
|
|
176
|
-
};
|
|
177
|
-
fe.displayName = "DSTopBar.PrimaryArea";
|
|
178
|
-
const Ae = (d) => {
|
|
179
|
-
const e = P.c(5), {
|
|
180
|
-
children: t,
|
|
181
|
-
className: r
|
|
182
|
-
} = d;
|
|
183
|
-
let n;
|
|
184
|
-
e[0] !== r ? (n = w(v.secondary, r), e[0] = r, e[1] = n) : n = e[1];
|
|
185
|
-
let a;
|
|
186
|
-
return e[2] !== t || e[3] !== n ? (a = /* @__PURE__ */ _("div", { className: n, children: t }), e[2] = t, e[3] = n, e[4] = a) : a = e[4], a;
|
|
187
|
-
};
|
|
188
|
-
Ae.displayName = "DSTopBar.SecondaryArea";
|
|
189
|
-
$.BrandArea = he;
|
|
190
|
-
$.PrimaryArea = fe;
|
|
191
|
-
$.SecondaryArea = Ae;
|
|
192
|
-
const Ge = "ds-header_root_g2mvw_1", Je = "ds-header_root--sticky_g2mvw_4", Ke = "ds-header_root--hidden_g2mvw_9", Qe = "ds-header_root--fixed_g2mvw_20", Xe = "ds-header_main-navigation-area_g2mvw_36", Ze = "ds-header_main-navigation-area--fixed_g2mvw_88", et = "ds-header_main-navigation-area--fixed--visible_g2mvw_103", tt = "ds-header_main-navigation-content_g2mvw_108", at = "ds-header_main-navigation-content--variant-full_g2mvw_112", rt = "ds-header_header-placeholder_g2mvw_117", nt = "ds-header_header-placeholder--with-banner_g2mvw_120", S = {
|
|
193
|
-
root: Ge,
|
|
194
|
-
rootSticky: Je,
|
|
195
|
-
rootHidden: Ke,
|
|
196
|
-
rootFixed: Qe,
|
|
197
|
-
mainNavigationArea: Xe,
|
|
198
|
-
mainNavigationAreaFixed: Ze,
|
|
199
|
-
mainNavigationAreaFixedVisible: et,
|
|
200
|
-
mainNavigationContent: tt,
|
|
201
|
-
mainNavigationContentVariantFull: at,
|
|
202
|
-
headerPlaceholder: rt,
|
|
203
|
-
headerPlaceholderWithBanner: nt
|
|
204
|
-
}, z = Be({
|
|
205
|
-
variant: "main"
|
|
206
|
-
}), ne = (d) => {
|
|
207
|
-
const e = P.c(58);
|
|
208
|
-
let t, r, n, a, s, l, c;
|
|
209
|
-
e[0] !== d ? ({
|
|
210
|
-
children: r,
|
|
211
|
-
brandAddOnProps: t,
|
|
212
|
-
className: n,
|
|
213
|
-
isHeaderSticky: l,
|
|
214
|
-
variant: c,
|
|
215
|
-
logoProps: a,
|
|
216
|
-
...s
|
|
217
|
-
} = d, e[0] = d, e[1] = t, e[2] = r, e[3] = n, e[4] = a, e[5] = s, e[6] = l, e[7] = c) : (t = e[1], r = e[2], n = e[3], a = e[4], s = e[5], l = e[6], c = e[7]);
|
|
218
|
-
const o = l === void 0 ? !1 : l, m = c === void 0 ? "main" : c, [h, A] = E(!1);
|
|
219
|
-
let y;
|
|
220
|
-
e[8] !== r ? (y = T(r, ne.BannerArea, !0), e[8] = r, e[9] = y) : y = e[9];
|
|
221
|
-
const u = y, f = T(r, $.BrandArea), g = T(r, $.PrimaryArea), x = T(r, $.SecondaryArea);
|
|
222
|
-
process.env.NODE_ENV !== "production" && xe({
|
|
223
|
-
hasBrandArea: f,
|
|
224
|
-
hasPrimaryArea: g,
|
|
225
|
-
hasSecondaryArea: x
|
|
226
|
-
});
|
|
227
|
-
const p = Pe(), [i, b] = E(!1), B = te(null), D = te(null), oe = te(null), ye = te(null), [ie, be] = E(!1), [C, Se] = E(!1), [H, Ne] = E(!0), [se, we] = E(!1);
|
|
228
|
-
let q, U;
|
|
229
|
-
e[10] !== o ? (q = () => {
|
|
230
|
-
if (o) {
|
|
231
|
-
const N = () => {
|
|
232
|
-
b(window.innerWidth < 1024);
|
|
233
|
-
};
|
|
234
|
-
return N(), window.addEventListener("resize", N), () => window.removeEventListener("resize", N);
|
|
235
|
-
}
|
|
236
|
-
}, U = [o], e[10] = o, e[11] = q, e[12] = U) : (q = e[11], U = e[12]), ae(q, U);
|
|
237
|
-
let j, G;
|
|
238
|
-
e[13] !== o ? (j = () => {
|
|
239
|
-
if (o) {
|
|
240
|
-
const N = () => {
|
|
241
|
-
var L, I, ee;
|
|
242
|
-
const Z = ((L = B.current) == null ? void 0 : L.offsetHeight) ?? 0, le = ((I = D.current) == null ? void 0 : I.offsetHeight) ?? 0, M = ((ee = oe.current) == null ? void 0 : ee.offsetHeight) ?? 0, W = document.documentElement;
|
|
243
|
-
W.style.setProperty("--ds-banner-height", `${ce(Z)}rem`), W.style.setProperty("--ds-header-height", `${ce(le)}rem`), W.style.setProperty("--ds-top-bar-height", `${ce(M)}rem`);
|
|
244
|
-
};
|
|
245
|
-
return N(), window.addEventListener("resize", N), () => window.removeEventListener("resize", N);
|
|
246
|
-
}
|
|
247
|
-
}, G = [o], e[13] = o, e[14] = j, e[15] = G) : (j = e[14], G = e[15]), De(j, G);
|
|
248
|
-
let J;
|
|
249
|
-
e[16] !== o || e[17] !== i || e[18] !== H || e[19] !== p ? (J = () => {
|
|
250
|
-
if (o) {
|
|
251
|
-
const N = () => {
|
|
252
|
-
const M = D.current, W = !!M && window.scrollY <= M.offsetHeight;
|
|
253
|
-
be(W);
|
|
254
|
-
const L = ye.current, I = oe.current, ee = !!I && !!L && L.getBoundingClientRect().bottom > I.getBoundingClientRect().bottom;
|
|
255
|
-
Ne(ee && !!M && window.scrollY <= M.offsetHeight);
|
|
256
|
-
};
|
|
257
|
-
window.addEventListener("scroll", N, {
|
|
258
|
-
passive: !0
|
|
259
|
-
}), N();
|
|
260
|
-
const Z = D.current, le = !!Z && Z.getBoundingClientRect().bottom > 0;
|
|
261
|
-
return i && Se(p === "up" && !le), i || we(p === "up" && !H), () => {
|
|
262
|
-
window.removeEventListener("scroll", N);
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
}, e[16] = o, e[17] = i, e[18] = H, e[19] = p, e[20] = J) : J = e[20];
|
|
266
|
-
let K;
|
|
267
|
-
e[21] !== o || e[22] !== i || e[23] !== p ? (K = [o, i, p], e[21] = o, e[22] = i, e[23] = p, e[24] = K) : K = e[24], ae(J, K);
|
|
268
|
-
let Q;
|
|
269
|
-
e[25] !== n || e[26] !== C || e[27] !== o || e[28] !== ie || e[29] !== i ? (Q = w(S.root, n, o ? {
|
|
270
|
-
[S.rootSticky]: i,
|
|
271
|
-
[S.rootHidden]: i && !ie,
|
|
272
|
-
[S.rootFixed]: i && C
|
|
273
|
-
} : {}), e[25] = n, e[26] = C, e[27] = o, e[28] = ie, e[29] = i, e[30] = Q) : Q = e[30];
|
|
274
|
-
const de = Q;
|
|
275
|
-
let F;
|
|
276
|
-
e[31] !== t || e[32] !== h || e[33] !== se || e[34] !== o || e[35] !== i || e[36] !== H || e[37] !== a || e[38] !== m ? (F = {
|
|
277
|
-
variant: m,
|
|
278
|
-
bannerAreaRef: B,
|
|
279
|
-
brandAddOnProps: t,
|
|
280
|
-
hasBrandAddOn: h,
|
|
281
|
-
setHasBrandAddOn: A,
|
|
282
|
-
isFixedMainNavigation: se,
|
|
283
|
-
isHeaderSticky: o,
|
|
284
|
-
isMobile: i,
|
|
285
|
-
isStickyMainNavigationVisible: H,
|
|
286
|
-
mainNavigationAreaRef: ye,
|
|
287
|
-
topBarAreaRef: oe,
|
|
288
|
-
logoProps: a
|
|
289
|
-
}, e[31] = t, e[32] = h, e[33] = se, e[34] = o, e[35] = i, e[36] = H, e[37] = a, e[38] = m, e[39] = F) : F = e[39];
|
|
290
|
-
let O;
|
|
291
|
-
e[40] !== r || e[41] !== F ? (O = /* @__PURE__ */ _(z.Provider, { value: F, children: r }), e[40] = r, e[41] = F, e[42] = O) : O = e[42];
|
|
292
|
-
let V;
|
|
293
|
-
e[43] !== s || e[44] !== de || e[45] !== O ? (V = /* @__PURE__ */ _("header", { className: de, ...s, ref: D, children: O }), e[43] = s, e[44] = de, e[45] = O, e[46] = V) : V = e[46];
|
|
294
|
-
let R;
|
|
295
|
-
e[47] !== C || e[48] !== i ? (R = i && C && /* @__PURE__ */ _("div", { className: S.headerPlaceholder }), e[47] = C, e[48] = i, e[49] = R) : R = e[49];
|
|
296
|
-
let k;
|
|
297
|
-
e[50] !== u || e[51] !== i || e[52] !== H ? (k = !i && !H && /* @__PURE__ */ _("div", { className: u ? S.headerPlaceholderWithBanner : S.headerPlaceholder }), e[50] = u, e[51] = i, e[52] = H, e[53] = k) : k = e[53];
|
|
298
|
-
let X;
|
|
299
|
-
return e[54] !== V || e[55] !== R || e[56] !== k ? (X = /* @__PURE__ */ me(ve, { children: [
|
|
300
|
-
V,
|
|
301
|
-
R,
|
|
302
|
-
k
|
|
303
|
-
] }), e[54] = V, e[55] = R, e[56] = k, e[57] = X) : X = e[57], X;
|
|
304
|
-
}, _e = (d) => {
|
|
305
|
-
const e = P.c(4), {
|
|
306
|
-
children: t,
|
|
307
|
-
className: r
|
|
308
|
-
} = d, {
|
|
309
|
-
bannerAreaRef: n
|
|
310
|
-
} = re(z);
|
|
311
|
-
let a;
|
|
312
|
-
return e[0] !== n || e[1] !== t || e[2] !== r ? (a = /* @__PURE__ */ _("div", { ref: n, className: r, children: t }), e[0] = n, e[1] = t, e[2] = r, e[3] = a) : a = e[3], a;
|
|
313
|
-
};
|
|
314
|
-
_e.displayName = "DSHeader.BannerArea";
|
|
315
|
-
const ue = (d) => {
|
|
316
|
-
const e = P.c(15), {
|
|
317
|
-
children: t,
|
|
318
|
-
className: r
|
|
319
|
-
} = d, {
|
|
320
|
-
variant: n,
|
|
321
|
-
isFixedMainNavigation: a,
|
|
322
|
-
isHeaderSticky: s,
|
|
323
|
-
isMobile: l,
|
|
324
|
-
isStickyMainNavigationVisible: c,
|
|
325
|
-
mainNavigationAreaRef: o
|
|
326
|
-
} = re(z);
|
|
327
|
-
let m;
|
|
328
|
-
e[0] !== r || e[1] !== a || e[2] !== s || e[3] !== l || e[4] !== c ? (m = w(S.mainNavigationArea, r, s ? {
|
|
329
|
-
[S.mainNavigationAreaFixed]: !l && !c,
|
|
330
|
-
[S.mainNavigationAreaFixedVisible]: !l && a
|
|
331
|
-
} : {}), e[0] = r, e[1] = a, e[2] = s, e[3] = l, e[4] = c, e[5] = m) : m = e[5];
|
|
332
|
-
const h = m, A = n === "full";
|
|
333
|
-
let y;
|
|
334
|
-
e[6] !== A ? (y = w(S.mainNavigationContent, {
|
|
335
|
-
[S.mainNavigationContentVariantFull]: A
|
|
336
|
-
}), e[6] = A, e[7] = y) : y = e[7];
|
|
337
|
-
const u = y;
|
|
338
|
-
let f;
|
|
339
|
-
e[8] !== t || e[9] !== u ? (f = /* @__PURE__ */ _("div", { className: u, children: t }), e[8] = t, e[9] = u, e[10] = f) : f = e[10];
|
|
340
|
-
let g;
|
|
341
|
-
return e[11] !== o || e[12] !== h || e[13] !== f ? (g = /* @__PURE__ */ _("div", { className: h, ref: o, children: f }), e[11] = o, e[12] = h, e[13] = f, e[14] = g) : g = e[14], g;
|
|
342
|
-
};
|
|
343
|
-
ue.displayName = "DSHeader.MainNavigationArea";
|
|
344
|
-
ne.BannerArea = _e;
|
|
345
|
-
ne.MainNavigationArea = ue;
|
|
346
|
-
ne.displayName = "DSHeader";
|
|
347
|
-
export {
|
|
348
|
-
ft as B,
|
|
349
|
-
z as D,
|
|
350
|
-
ht as H,
|
|
351
|
-
ne as a,
|
|
352
|
-
$ as b,
|
|
353
|
-
je as c,
|
|
354
|
-
pe as i,
|
|
355
|
-
xe as v
|
|
356
|
-
};
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as q, jsxs as rt } from "react/jsx-runtime";
|
|
3
|
-
import { d as vt } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { c as J } from "./index.CEyLAtio.js";
|
|
5
|
-
import { forwardRef as ht, useState as yt, useRef as Pt } from "react";
|
|
6
|
-
import { u as St } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
|
-
import { Asterisk as Dt } from "../asterisk.CR60hx8S.js";
|
|
8
|
-
import { D as Bt } from "./Button.CC0qEsuR.js";
|
|
9
|
-
import { DSSystemFeedback as It } from "../systemfeedback.CLQCbTF6.js";
|
|
10
|
-
import { g as pt } from "./helpers.BbWkXTr3.js";
|
|
11
|
-
import '../assets/InputPassword.CkHF5zCh.css';const gt = "ds-input-password_input_5dv6d_1", kt = "ds-input-password_input--invalid_5dv6d_113", Nt = "ds-input-password_input--small_5dv6d_120", xt = "ds-input-password_input--has-action-button_5dv6d_176", Ct = "ds-input-password_root_5dv6d_212", Ht = "ds-input-password_hint_5dv6d_221", Lt = "ds-input-password_label_5dv6d_221", $t = "ds-input-password_wrapper_5dv6d_225", qt = "ds-input-password_action-button_5dv6d_231", At = "ds-input-password_label--hidden_5dv6d_249", Tt = "ds-input-password_label--disabled_5dv6d_262", Et = "ds-input-password_feedback_5dv6d_282", s = {
|
|
12
|
-
input: gt,
|
|
13
|
-
inputInvalid: kt,
|
|
14
|
-
inputSmall: Nt,
|
|
15
|
-
inputHasActionButton: xt,
|
|
16
|
-
root: Ct,
|
|
17
|
-
hint: Ht,
|
|
18
|
-
label: Lt,
|
|
19
|
-
wrapper: $t,
|
|
20
|
-
actionButton: qt,
|
|
21
|
-
labelHidden: At,
|
|
22
|
-
labelDisabled: Tt,
|
|
23
|
-
feedback: Et
|
|
24
|
-
}, Vt = ({
|
|
25
|
-
id: d,
|
|
26
|
-
label: l
|
|
27
|
-
}) => {
|
|
28
|
-
if (!d)
|
|
29
|
-
throw new Error(pt("DSInputPassword", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputPassword component.'));
|
|
30
|
-
if (!l)
|
|
31
|
-
throw new Error(pt("DSInputPassword", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputPassword component. If you don't want to display a label, set hideLabel={true}.`));
|
|
32
|
-
}, Ft = ht((d, l) => {
|
|
33
|
-
const t = vt.c(82);
|
|
34
|
-
let p, n, e, r, c, a, B, I, g, k, N, x, C, u;
|
|
35
|
-
t[0] !== d ? ({
|
|
36
|
-
id: e,
|
|
37
|
-
label: r,
|
|
38
|
-
autoComplete: B,
|
|
39
|
-
className: p,
|
|
40
|
-
disabled: I,
|
|
41
|
-
hint: n,
|
|
42
|
-
hideLabel: g,
|
|
43
|
-
invalid: k,
|
|
44
|
-
readonly: N,
|
|
45
|
-
required: x,
|
|
46
|
-
togglePasswordVisibilityButtonProps: u,
|
|
47
|
-
size: C,
|
|
48
|
-
systemFeedback: a,
|
|
49
|
-
...c
|
|
50
|
-
} = d, t[0] = d, t[1] = p, t[2] = n, t[3] = e, t[4] = r, t[5] = c, t[6] = a, t[7] = B, t[8] = I, t[9] = g, t[10] = k, t[11] = N, t[12] = x, t[13] = C, t[14] = u) : (p = t[1], n = t[2], e = t[3], r = t[4], c = t[5], a = t[6], B = t[7], I = t[8], g = t[9], k = t[10], N = t[11], x = t[12], C = t[13], u = t[14]);
|
|
51
|
-
const K = B === void 0 ? "new-password" : B, i = I === void 0 ? !1 : I, ct = g === void 0 ? !1 : g, o = k === void 0 ? !1 : k, A = N === void 0 ? !1 : N, b = x === void 0 ? !1 : x, H = C === void 0 ? "medium" : C;
|
|
52
|
-
process.env.NODE_ENV !== "production" && Vt({
|
|
53
|
-
id: e,
|
|
54
|
-
label: r
|
|
55
|
-
});
|
|
56
|
-
let f;
|
|
57
|
-
t[15] !== u ? (f = u || {}, t[15] = u, t[16] = f) : f = t[16];
|
|
58
|
-
let m, L, $;
|
|
59
|
-
t[17] !== f ? ({
|
|
60
|
-
hidePasswordText: $,
|
|
61
|
-
showPasswordText: L,
|
|
62
|
-
...m
|
|
63
|
-
} = f, t[17] = f, t[18] = m, t[19] = L, t[20] = $) : (m = t[18], L = t[19], $ = t[20]);
|
|
64
|
-
const ut = $ === void 0 ? "Hide password" : $, bt = L === void 0 ? "Show password" : L, [Q, ft] = yt(!1), T = `${e}-label`, w = `${e}-feedback`, E = `${e}-hint`, mt = n ? ` ${E}` : "";
|
|
65
|
-
let V;
|
|
66
|
-
t[21] !== o || t[22] !== a || t[23] !== w ? (V = [o && a && w].filter(Boolean).join(" ") || void 0, t[21] = o, t[22] = a, t[23] = w, t[24] = V) : V = t[24];
|
|
67
|
-
const U = V, W = St(ct);
|
|
68
|
-
let F;
|
|
69
|
-
t[25] !== p ? (F = J(s.root, p), t[25] = p, t[26] = F) : F = t[26];
|
|
70
|
-
const X = F, Y = H === "small";
|
|
71
|
-
let R;
|
|
72
|
-
t[27] !== o || t[28] !== Y ? (R = J(s.input, {
|
|
73
|
-
[s.inputSmall]: Y,
|
|
74
|
-
[s.inputInvalid]: o,
|
|
75
|
-
[s.inputHasActionButton]: !0
|
|
76
|
-
}), t[27] = o, t[28] = Y, t[29] = R) : R = t[29];
|
|
77
|
-
const Z = R;
|
|
78
|
-
let j;
|
|
79
|
-
t[30] !== i || t[31] !== W ? (j = J(s.label, {
|
|
80
|
-
[s.labelHidden]: W,
|
|
81
|
-
[s.labelDisabled]: i
|
|
82
|
-
}), t[30] = i, t[31] = W, t[32] = j) : j = t[32];
|
|
83
|
-
const tt = j, et = H === "small";
|
|
84
|
-
let z;
|
|
85
|
-
t[33] !== et ? (z = J(s.actionButton, {
|
|
86
|
-
[s.actionButtonSmall]: et
|
|
87
|
-
}), t[33] = et, t[34] = z) : z = t[34];
|
|
88
|
-
const st = z, wt = Pt(null);
|
|
89
|
-
let O;
|
|
90
|
-
t[35] !== l ? (O = (dt) => {
|
|
91
|
-
wt.current = dt, typeof l == "function" ? l(dt) : l && (l.current = dt);
|
|
92
|
-
}, t[35] = l, t[36] = O) : O = t[36];
|
|
93
|
-
const ot = O;
|
|
94
|
-
let M;
|
|
95
|
-
t[37] === Symbol.for("react.memo_cache_sentinel") ? (M = () => {
|
|
96
|
-
ft(Rt);
|
|
97
|
-
}, t[37] = M) : M = t[37];
|
|
98
|
-
const _t = M;
|
|
99
|
-
let _;
|
|
100
|
-
t[38] !== b ? (_ = b && /* @__PURE__ */ q(Dt, {}), t[38] = b, t[39] = _) : _ = t[39];
|
|
101
|
-
let v;
|
|
102
|
-
t[40] !== e || t[41] !== T || t[42] !== r || t[43] !== tt || t[44] !== _ ? (v = /* @__PURE__ */ rt("label", { className: tt, id: T, htmlFor: e, children: [
|
|
103
|
-
r,
|
|
104
|
-
_
|
|
105
|
-
] }), t[40] = e, t[41] = T, t[42] = r, t[43] = tt, t[44] = _, t[45] = v) : v = t[45];
|
|
106
|
-
let h;
|
|
107
|
-
t[46] !== n || t[47] !== E ? (h = n && /* @__PURE__ */ q("div", { className: s.hint, id: E, children: n }), t[46] = n, t[47] = E, t[48] = h) : h = t[48];
|
|
108
|
-
let y;
|
|
109
|
-
t[49] !== o || t[50] !== a || t[51] !== w ? (y = o && a && /* @__PURE__ */ q(It, { className: s.feedback, message: a, type: "invalid", id: w }), t[49] = o, t[50] = a, t[51] = w, t[52] = y) : y = t[52];
|
|
110
|
-
const at = `${T}${mt}`, it = Q ? "text" : "password";
|
|
111
|
-
let P;
|
|
112
|
-
t[53] !== U || t[54] !== K || t[55] !== i || t[56] !== ot || t[57] !== e || t[58] !== Z || t[59] !== o || t[60] !== A || t[61] !== b || t[62] !== c || t[63] !== at || t[64] !== it ? (P = /* @__PURE__ */ q("input", { className: Z, id: e, ...c, ref: ot, "aria-labelledby": at, "aria-describedby": U, "aria-invalid": o, "aria-disabled": A, readOnly: A, required: b, disabled: i, autoComplete: K, type: it }), t[53] = U, t[54] = K, t[55] = i, t[56] = ot, t[57] = e, t[58] = Z, t[59] = o, t[60] = A, t[61] = b, t[62] = c, t[63] = at, t[64] = it, t[65] = P) : P = t[65];
|
|
113
|
-
const lt = Q ? "eye-closed" : "eye", nt = Q ? ut : bt;
|
|
114
|
-
let S;
|
|
115
|
-
t[66] !== st || t[67] !== i || t[68] !== m || t[69] !== H || t[70] !== lt || t[71] !== nt ? (S = /* @__PURE__ */ q(Bt, { ...m, hideLabel: !0, theme: "light", iconName: lt, variant: "ghost", className: st, size: H, onClick: _t, type: "button", disabled: i, children: nt }), t[66] = st, t[67] = i, t[68] = m, t[69] = H, t[70] = lt, t[71] = nt, t[72] = S) : S = t[72];
|
|
116
|
-
let D;
|
|
117
|
-
t[73] !== P || t[74] !== S ? (D = /* @__PURE__ */ rt("div", { className: s.wrapper, children: [
|
|
118
|
-
P,
|
|
119
|
-
S
|
|
120
|
-
] }), t[73] = P, t[74] = S, t[75] = D) : D = t[75];
|
|
121
|
-
let G;
|
|
122
|
-
return t[76] !== X || t[77] !== v || t[78] !== h || t[79] !== y || t[80] !== D ? (G = /* @__PURE__ */ rt("div", { className: X, children: [
|
|
123
|
-
v,
|
|
124
|
-
h,
|
|
125
|
-
y,
|
|
126
|
-
D
|
|
127
|
-
] }), t[76] = X, t[77] = v, t[78] = h, t[79] = y, t[80] = D, t[81] = G) : G = t[81], G;
|
|
128
|
-
});
|
|
129
|
-
Ft.displayName = "DSInputPassword";
|
|
130
|
-
function Rt(d) {
|
|
131
|
-
return !d;
|
|
132
|
-
}
|
|
133
|
-
export {
|
|
134
|
-
Ft as D,
|
|
135
|
-
Vt as v
|
|
136
|
-
};
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as C, jsxs as It } from "react/jsx-runtime";
|
|
3
|
-
import { d as Pt } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { c as F } from "./index.CEyLAtio.js";
|
|
5
|
-
import { forwardRef as Vt, useState as Ot, useRef as wt, useEffect as zt } from "react";
|
|
6
|
-
import { g as gt, a as $t } from "./helpers.BbWkXTr3.js";
|
|
7
|
-
import { u as qt } from "./useBreakpoint.CMOR9ZOB.js";
|
|
8
|
-
import { Asterisk as xt } from "../asterisk.CR60hx8S.js";
|
|
9
|
-
import { D as Et } from "./Button.CC0qEsuR.js";
|
|
10
|
-
import { DSSystemFeedback as Ft } from "../systemfeedback.CLQCbTF6.js";
|
|
11
|
-
import '../assets/InputSearch.BV8Q2EUL.css';const Rt = "ds-input-search_root_1kzjb_1", Tt = "ds-input-search_input_1kzjb_5", Mt = "ds-input-search_input--invalid_1kzjb_117", Wt = "ds-input-search_input--small_1kzjb_124", Gt = "ds-input-search_input--has-action-button_1kzjb_180", Jt = "ds-input-search_input--has-second-action-button_1kzjb_183", Kt = "ds-input-search_hint_1kzjb_225", Qt = "ds-input-search_label_1kzjb_225", Ut = "ds-input-search_wrapper_1kzjb_229", Xt = "ds-input-search_action-button_1kzjb_235", Yt = "ds-input-search_second-action-button_1kzjb_239", Zt = "ds-input-search_label--hidden_1kzjb_257", te = "ds-input-search_label--disabled_1kzjb_270", ee = "ds-input-search_feedback_1kzjb_290", s = {
|
|
12
|
-
root: Rt,
|
|
13
|
-
input: Tt,
|
|
14
|
-
inputInvalid: Mt,
|
|
15
|
-
inputSmall: Wt,
|
|
16
|
-
inputHasActionButton: Gt,
|
|
17
|
-
inputHasSecondActionButton: Jt,
|
|
18
|
-
hint: Kt,
|
|
19
|
-
label: Qt,
|
|
20
|
-
wrapper: Ut,
|
|
21
|
-
actionButton: Xt,
|
|
22
|
-
secondActionButton: Yt,
|
|
23
|
-
labelHidden: Zt,
|
|
24
|
-
labelDisabled: te,
|
|
25
|
-
feedback: ee
|
|
26
|
-
}, se = ({
|
|
27
|
-
id: a,
|
|
28
|
-
label: i
|
|
29
|
-
}) => {
|
|
30
|
-
if (!a)
|
|
31
|
-
throw new Error(gt("DSInputSearch", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputSearch component.'));
|
|
32
|
-
if (!i)
|
|
33
|
-
throw new Error(gt("DSInputSearch", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputSearch component. If you don't want to display a label, set hideLabel={true}.`));
|
|
34
|
-
}, ne = (a) => !!$t(a, "form"), ae = Vt((a, i) => {
|
|
35
|
-
const t = Pt.c(103);
|
|
36
|
-
let l, d, e, h, f, m, _, c, L, H, P, V, O, $, q, p;
|
|
37
|
-
t[0] !== a ? ({
|
|
38
|
-
id: e,
|
|
39
|
-
label: h,
|
|
40
|
-
className: l,
|
|
41
|
-
clearButtonLabel: L,
|
|
42
|
-
disabled: H,
|
|
43
|
-
hint: d,
|
|
44
|
-
hideLabel: P,
|
|
45
|
-
invalid: V,
|
|
46
|
-
readonly: O,
|
|
47
|
-
required: $,
|
|
48
|
-
size: q,
|
|
49
|
-
systemFeedback: c,
|
|
50
|
-
value: p,
|
|
51
|
-
submitButtonProps: _,
|
|
52
|
-
onChange: f,
|
|
53
|
-
...m
|
|
54
|
-
} = a, t[0] = a, t[1] = l, t[2] = d, t[3] = e, t[4] = h, t[5] = f, t[6] = m, t[7] = _, t[8] = c, t[9] = L, t[10] = H, t[11] = P, t[12] = V, t[13] = O, t[14] = $, t[15] = q, t[16] = p) : (l = t[1], d = t[2], e = t[3], h = t[4], f = t[5], m = t[6], _ = t[7], c = t[8], L = t[9], H = t[10], P = t[11], V = t[12], O = t[13], $ = t[14], q = t[15], p = t[16]);
|
|
55
|
-
const lt = L === void 0 ? "Clear search field" : L, o = H === void 0 ? !1 : H, At = P === void 0 ? !1 : P, n = V === void 0 ? !1 : V, r = O === void 0 ? !1 : O, v = $ === void 0 ? !1 : $, u = q === void 0 ? "medium" : q;
|
|
56
|
-
process.env.NODE_ENV !== "production" && se({
|
|
57
|
-
id: e,
|
|
58
|
-
label: h
|
|
59
|
-
});
|
|
60
|
-
let S;
|
|
61
|
-
t[17] !== _ ? (S = _ || {}, t[17] = _, t[18] = S) : S = t[18];
|
|
62
|
-
let y, k, x;
|
|
63
|
-
t[19] !== S ? ({
|
|
64
|
-
label: x,
|
|
65
|
-
onClick: y,
|
|
66
|
-
...k
|
|
67
|
-
} = S, t[19] = S, t[20] = y, t[21] = k, t[22] = x) : (y = t[20], k = t[21], x = t[22]);
|
|
68
|
-
const ot = x === void 0 ? "Search" : x, [B, Nt] = Ot(p), ct = wt(null), R = wt(null);
|
|
69
|
-
let T;
|
|
70
|
-
t[23] !== i ? (T = (b) => {
|
|
71
|
-
R.current = b, typeof i == "function" ? i(b) : i && (i.current = b);
|
|
72
|
-
}, t[23] = i, t[24] = T) : T = t[24];
|
|
73
|
-
const rt = T, ut = qt(At);
|
|
74
|
-
let M, W;
|
|
75
|
-
t[25] !== p ? (M = () => {
|
|
76
|
-
Nt(p);
|
|
77
|
-
}, W = [p], t[25] = p, t[26] = M, t[27] = W) : (M = t[26], W = t[27]), zt(M, W);
|
|
78
|
-
let G;
|
|
79
|
-
t[28] !== e ? (G = () => {
|
|
80
|
-
ct.current && !ne(ct.current) && process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && console.warn(gt("DSInputSearch", `The DSInputSearch component with the id "${e}" is not within a form element. This may cause issues with form submission. Please ensure the DSInputSearch component is within a form element.`));
|
|
81
|
-
}, t[28] = e, t[29] = G) : G = t[29];
|
|
82
|
-
let J;
|
|
83
|
-
t[30] === Symbol.for("react.memo_cache_sentinel") ? (J = [], t[30] = J) : J = t[30], zt(G, J);
|
|
84
|
-
const K = `${e}-label`, D = `${e}-feedback`, Q = `${e}-hint`, Ct = d ? ` ${Q}` : "";
|
|
85
|
-
let U;
|
|
86
|
-
t[31] !== n || t[32] !== c || t[33] !== D ? (U = [n && c && D].filter(Boolean).join(" ") || void 0, t[31] = n, t[32] = c, t[33] = D, t[34] = U) : U = t[34];
|
|
87
|
-
const dt = U, X = B !== "" && B !== void 0 && B !== null;
|
|
88
|
-
let Y;
|
|
89
|
-
t[35] !== l ? (Y = F(s.root, l), t[35] = l, t[36] = Y) : Y = t[36];
|
|
90
|
-
const pt = Y, bt = u === "small", ht = X && !r && !o;
|
|
91
|
-
let Z;
|
|
92
|
-
t[37] !== n || t[38] !== bt || t[39] !== ht ? (Z = F(s.input, {
|
|
93
|
-
[s.inputSmall]: bt,
|
|
94
|
-
[s.inputInvalid]: n,
|
|
95
|
-
[s.inputHasActionButton]: !0,
|
|
96
|
-
[s.inputHasSecondActionButton]: ht
|
|
97
|
-
}), t[37] = n, t[38] = bt, t[39] = ht, t[40] = Z) : Z = t[40];
|
|
98
|
-
const ft = Z;
|
|
99
|
-
let tt;
|
|
100
|
-
t[41] !== o || t[42] !== ut ? (tt = F(s.label, {
|
|
101
|
-
[s.labelHidden]: ut,
|
|
102
|
-
[s.labelDisabled]: o
|
|
103
|
-
}), t[41] = o, t[42] = ut, t[43] = tt) : tt = t[43];
|
|
104
|
-
const mt = tt, _t = u === "small";
|
|
105
|
-
let et;
|
|
106
|
-
t[44] !== _t ? (et = F(s.actionButton, {
|
|
107
|
-
[s.actionButtonSmall]: _t
|
|
108
|
-
}), t[44] = _t, t[45] = et) : et = t[45];
|
|
109
|
-
const vt = et, St = u === "small";
|
|
110
|
-
let st;
|
|
111
|
-
t[46] !== St ? (st = F(s.secondActionButton, {
|
|
112
|
-
[s.secondActionButtonSmall]: St
|
|
113
|
-
}), t[46] = St, t[47] = st) : st = t[47];
|
|
114
|
-
const yt = st, Lt = ie;
|
|
115
|
-
let nt;
|
|
116
|
-
t[48] === Symbol.for("react.memo_cache_sentinel") ? (nt = () => {
|
|
117
|
-
var jt;
|
|
118
|
-
if (!R.current)
|
|
119
|
-
return;
|
|
120
|
-
Lt(R.current, "");
|
|
121
|
-
const b = new Event("change", {
|
|
122
|
-
bubbles: !0
|
|
123
|
-
});
|
|
124
|
-
(jt = R.current) == null || jt.dispatchEvent(b);
|
|
125
|
-
}, t[48] = nt) : nt = t[48];
|
|
126
|
-
const Ht = nt;
|
|
127
|
-
let at;
|
|
128
|
-
t[49] !== f ? (at = (b) => {
|
|
129
|
-
Nt(b.target.value), f && f(b);
|
|
130
|
-
}, t[49] = f, t[50] = at) : at = t[50];
|
|
131
|
-
const kt = at;
|
|
132
|
-
let I;
|
|
133
|
-
t[51] !== v ? (I = v && /* @__PURE__ */ C(xt, {}), t[51] = v, t[52] = I) : I = t[52];
|
|
134
|
-
let g;
|
|
135
|
-
t[53] !== e || t[54] !== K || t[55] !== h || t[56] !== mt || t[57] !== I ? (g = /* @__PURE__ */ It("label", { className: mt, id: K, htmlFor: e, children: [
|
|
136
|
-
h,
|
|
137
|
-
I
|
|
138
|
-
] }), t[53] = e, t[54] = K, t[55] = h, t[56] = mt, t[57] = I, t[58] = g) : g = t[58];
|
|
139
|
-
let N;
|
|
140
|
-
t[59] !== d || t[60] !== Q ? (N = d && /* @__PURE__ */ C("div", { className: s.hint, id: Q, children: d }), t[59] = d, t[60] = Q, t[61] = N) : N = t[61];
|
|
141
|
-
let j;
|
|
142
|
-
t[62] !== n || t[63] !== c || t[64] !== D ? (j = n && c && /* @__PURE__ */ C(Ft, { className: s.feedback, message: c, type: "invalid", id: D }), t[62] = n, t[63] = c, t[64] = D, t[65] = j) : j = t[65];
|
|
143
|
-
const Bt = `${K}${Ct}`;
|
|
144
|
-
let w;
|
|
145
|
-
t[66] !== dt || t[67] !== o || t[68] !== rt || t[69] !== kt || t[70] !== e || t[71] !== ft || t[72] !== B || t[73] !== n || t[74] !== r || t[75] !== v || t[76] !== m || t[77] !== Bt ? (w = /* @__PURE__ */ C("input", { className: ft, id: e, ...m, ref: rt, "aria-labelledby": Bt, "aria-describedby": dt, "aria-invalid": n, "aria-disabled": r, readOnly: r, required: v, disabled: o, type: "search", value: B, onChange: kt }), t[66] = dt, t[67] = o, t[68] = rt, t[69] = kt, t[70] = e, t[71] = ft, t[72] = B, t[73] = n, t[74] = r, t[75] = v, t[76] = m, t[77] = Bt, t[78] = w) : w = t[78];
|
|
146
|
-
let z;
|
|
147
|
-
t[79] !== yt || t[80] !== lt || t[81] !== o || t[82] !== X || t[83] !== r || t[84] !== u ? (z = X && !r && !o && /* @__PURE__ */ C(Et, { hideLabel: !0, theme: "light", iconName: "cross", className: yt, variant: "ghost", size: u, onClick: Ht, type: "button", tabIndex: -1, children: lt }), t[79] = yt, t[80] = lt, t[81] = o, t[82] = X, t[83] = r, t[84] = u, t[85] = z) : z = t[85];
|
|
148
|
-
const Dt = o || r;
|
|
149
|
-
let E;
|
|
150
|
-
t[86] !== y || t[87] !== k || t[88] !== u || t[89] !== vt || t[90] !== ot || t[91] !== Dt ? (E = /* @__PURE__ */ C(Et, { ...k, hideLabel: !0, theme: "light", iconName: "magnifying-glass", className: vt, variant: "ghost", size: u, onClick: y, type: "submit", disabled: Dt, children: ot }), t[86] = y, t[87] = k, t[88] = u, t[89] = vt, t[90] = ot, t[91] = Dt, t[92] = E) : E = t[92];
|
|
151
|
-
let A;
|
|
152
|
-
t[93] !== w || t[94] !== z || t[95] !== E ? (A = /* @__PURE__ */ It("div", { className: s.wrapper, children: [
|
|
153
|
-
w,
|
|
154
|
-
z,
|
|
155
|
-
E
|
|
156
|
-
] }), t[93] = w, t[94] = z, t[95] = E, t[96] = A) : A = t[96];
|
|
157
|
-
let it;
|
|
158
|
-
return t[97] !== pt || t[98] !== g || t[99] !== N || t[100] !== j || t[101] !== A ? (it = /* @__PURE__ */ It("div", { className: pt, ref: ct, children: [
|
|
159
|
-
g,
|
|
160
|
-
N,
|
|
161
|
-
j,
|
|
162
|
-
A
|
|
163
|
-
] }), t[97] = pt, t[98] = g, t[99] = N, t[100] = j, t[101] = A, t[102] = it) : it = t[102], it;
|
|
164
|
-
});
|
|
165
|
-
ae.displayName = "DSInputSearch";
|
|
166
|
-
function ie(a, i) {
|
|
167
|
-
const t = Object.getPrototypeOf(a), l = Object.getOwnPropertyDescriptor(t, "value");
|
|
168
|
-
l != null && l.set ? l.set.call(a, i) : a.value = i;
|
|
169
|
-
}
|
|
170
|
-
export {
|
|
171
|
-
ae as D,
|
|
172
|
-
ne as i,
|
|
173
|
-
se as v
|
|
174
|
-
};
|