@ogcio/design-system-react 1.31.1 → 1.33.0
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/dist/Heading.d.ts +5 -0
- package/dist/Heading.js +22 -0
- package/dist/accordion/accordion-item.js +62 -57
- package/dist/alert/alert.d.ts +3 -0
- package/dist/alert/alert.js +40 -57
- package/dist/alert/variants.d.ts +49 -52
- package/dist/alert/variants.js +17 -18
- package/dist/atoms/{DsButton.d.ts → Button.d.ts} +5 -5
- package/dist/atoms/{DsButton.js → Button.js} +22 -36
- package/dist/atoms/heading/H1.d.ts +3 -0
- package/dist/atoms/heading/H1.js +20 -0
- package/dist/atoms/heading/H2.d.ts +3 -0
- package/dist/atoms/heading/H2.js +20 -0
- package/dist/atoms/heading/H3.d.ts +3 -0
- package/dist/atoms/heading/H3.js +20 -0
- package/dist/atoms/heading/H4.d.ts +3 -0
- package/dist/atoms/heading/H4.js +20 -0
- package/dist/atoms/heading/H5.d.ts +3 -0
- package/dist/atoms/heading/H5.js +20 -0
- package/dist/atoms/heading/H6.d.ts +3 -0
- package/dist/atoms/heading/H6.js +20 -0
- package/dist/atoms/heading/index.d.ts +9 -0
- package/dist/atoms/heading/index.js +18 -0
- package/dist/atoms/heading/styles.d.ts +65 -0
- package/dist/atoms/heading/styles.js +17 -0
- package/dist/atoms/heading/types.d.ts +15 -0
- package/dist/atoms/heading/types.js +11 -0
- package/dist/atoms/heading/utils.d.ts +2 -0
- package/dist/atoms/heading/utils.js +5 -0
- package/dist/atoms/icons/ArrowLeft.d.ts +3 -0
- package/dist/atoms/icons/ArrowLeft.js +23 -0
- package/dist/atoms/icons/ArrowRight.d.ts +3 -0
- package/dist/atoms/icons/ArrowRight.js +23 -0
- package/dist/atoms/icons/CheckCircle.d.ts +3 -0
- package/dist/atoms/icons/CheckCircle.js +23 -0
- package/dist/atoms/icons/Error.d.ts +3 -0
- package/dist/atoms/icons/Error.js +23 -0
- package/dist/atoms/icons/FirstPage.d.ts +3 -0
- package/dist/atoms/icons/FirstPage.js +23 -0
- package/dist/atoms/icons/Info.d.ts +3 -0
- package/dist/atoms/icons/Info.js +23 -0
- package/dist/atoms/icons/KeyboardArrowLeft.d.ts +3 -0
- package/dist/atoms/icons/KeyboardArrowLeft.js +23 -0
- package/dist/atoms/icons/KeyboardArrowRight.d.ts +3 -0
- package/dist/atoms/icons/KeyboardArrowRight.js +23 -0
- package/dist/atoms/icons/LastPage.d.ts +3 -0
- package/dist/atoms/icons/LastPage.js +23 -0
- package/dist/atoms/icons/Warning.d.ts +3 -0
- package/dist/atoms/icons/Warning.js +23 -0
- package/dist/atoms/icons/index.d.ts +12 -2
- package/dist/atoms/icons/index.js +30 -10
- package/dist/atoms/index.d.ts +2 -1
- package/dist/atoms/index.js +48 -12
- package/dist/atoms/storybook/Heading.meta.d.ts +60 -0
- package/dist/atoms/storybook/Heading.meta.js +70 -0
- package/dist/atoms/storybook/Icons.meta.d.ts +51 -0
- package/dist/atoms/storybook/Icons.meta.js +130 -0
- package/dist/atoms/storybook/InsetText.meta.d.ts +52 -0
- package/dist/atoms/storybook/InsetText.meta.js +64 -0
- package/dist/atoms/storybook/Logos.meta.d.ts +35 -0
- package/dist/atoms/storybook/Logos.meta.js +54 -0
- package/dist/breadcrumbs/breadcrumbs.js +20 -19
- package/dist/button/button.d.ts +2 -9
- package/dist/button/button.js +65 -32
- package/dist/button/helpers.d.ts +2 -1
- package/dist/button/types.d.ts +25 -8
- package/dist/button-group/button-group.js +43 -45
- package/dist/button-group/types.d.ts +5 -5
- package/dist/card/card-legacy.js +1 -1
- package/dist/card/types.d.ts +1 -1
- package/dist/combo-box/dropdown-item.js +1 -1
- package/dist/cookie-banner/cookie-banner.d.ts +1 -1
- package/dist/data-table/data-table-header.js +1 -1
- package/dist/drawer/drawer.d.ts +1 -1
- package/dist/drawer/drawer.js +17 -17
- package/dist/error-text/error-text.js +28 -27
- package/dist/forms/form-field/form-field.js +24 -25
- package/dist/header/components/header-menu.js +21 -21
- package/dist/header/components/header-search.js +5 -5
- package/dist/hint-text/hint-text.js +26 -20
- package/dist/icon/icon.js +85 -63
- package/dist/icon/icons.d.ts +1 -1
- package/dist/icon-button/icon-button.d.ts +3 -5
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.js +19 -10
- package/dist/index-Bh2cTIps.js +33899 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/input-text/input-text.js +1 -1
- package/dist/input-text/type.d.ts +1 -1
- package/dist/label/label.d.ts +78 -30
- package/dist/label/label.js +29 -14
- package/dist/modal/modal.content.js +1 -1
- package/dist/modal/modal.d.ts +1 -1
- package/dist/modal/modal.js +39 -39
- package/dist/modal/types.d.ts +5 -4
- package/dist/pagination/pagination.js +137 -134
- package/dist/paragraph/paragraph.d.ts +1 -1
- package/dist/paragraph/paragraph.js +13 -11
- package/dist/score-select/type.d.ts +2 -2
- package/dist/select/select-next.js +87 -87
- package/dist/side-nav/side-nav.js +4 -4
- package/dist/side-nav/types.d.ts +1 -1
- package/dist/styles.css +1 -1
- package/dist/table/table-pagination.js +17 -13
- package/dist/tabs/tab-item.js +53 -71
- package/dist/tabs/variants.d.ts +269 -0
- package/dist/tabs/variants.js +87 -0
- package/dist/tooltip/tooltip.js +27 -35
- package/dist/tooltip/variants.d.ts +115 -0
- package/dist/tooltip/variants.js +59 -0
- package/package.json +7 -6
- package/dist/heading/heading.d.ts +0 -150
- package/dist/heading/heading.js +0 -50
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as s, jsxs as _ } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as B, useRef as T, useState as k, useImperativeHandle as ee, Children as
|
|
4
|
-
import { cn as
|
|
3
|
+
import { forwardRef as B, useRef as T, useState as k, useImperativeHandle as ee, Children as G, isValidElement as H, useEffect as O, useCallback as te } from "react";
|
|
4
|
+
import { cn as P } from "../cn.js";
|
|
5
5
|
import { useDomId as re } from "../hooks/use-dom-id.js";
|
|
6
6
|
import { useScrollHighlightedItem as ne } from "../hooks/use-scroll-highlighted-item.js";
|
|
7
|
-
import { translate as
|
|
7
|
+
import { translate as J } from "../i18n/utility.js";
|
|
8
8
|
import { InputText as oe } from "../input-text/input-text.js";
|
|
9
|
-
import { Popover as
|
|
10
|
-
import { cycleEnabledIndex as
|
|
11
|
-
import { SelectMenu as se, SelectMenuOption as
|
|
9
|
+
import { Popover as ae } from "../popover/popover.js";
|
|
10
|
+
import { cycleEnabledIndex as le } from "../utilities.js";
|
|
11
|
+
import { SelectMenu as se, SelectMenuOption as M, SelectMenuGroupItem as ce } from "./select-menu.js";
|
|
12
12
|
import { SelectSearch as ie } from "./select-search.js";
|
|
13
13
|
const pe = B(
|
|
14
14
|
({
|
|
15
15
|
children: x,
|
|
16
|
-
value:
|
|
16
|
+
value: p,
|
|
17
17
|
defaultValue: E = "",
|
|
18
18
|
onChange: I,
|
|
19
|
-
onMenuClose:
|
|
19
|
+
onMenuClose: u,
|
|
20
20
|
enableSearch: h,
|
|
21
|
-
disabled:
|
|
21
|
+
disabled: a,
|
|
22
22
|
name: i,
|
|
23
|
-
onBlur:
|
|
24
|
-
placeholder:
|
|
23
|
+
onBlur: f,
|
|
24
|
+
placeholder: $,
|
|
25
25
|
...N
|
|
26
|
-
},
|
|
27
|
-
const c = T(null), D = T(null), A = T(null),
|
|
28
|
-
E ||
|
|
29
|
-
), [
|
|
30
|
-
ee(
|
|
31
|
-
const d =
|
|
32
|
-
(e) =>
|
|
26
|
+
}, W) => {
|
|
27
|
+
const c = T(null), D = T(null), A = T(null), j = T(!1), [l, K] = k(
|
|
28
|
+
E || p
|
|
29
|
+
), [m, S] = k(!1), [X, V] = k(""), [g, L] = k(-1);
|
|
30
|
+
ee(W, () => c.current), ne(A, g);
|
|
31
|
+
const d = G.toArray(x).filter(
|
|
32
|
+
(e) => H(e)
|
|
33
33
|
);
|
|
34
34
|
O(() => {
|
|
35
35
|
var r, t;
|
|
@@ -38,19 +38,19 @@ const pe = B(
|
|
|
38
38
|
const o = (r = n.type) == null ? void 0 : r.componentType;
|
|
39
39
|
if (o === "SelectItemNext") {
|
|
40
40
|
const y = n;
|
|
41
|
-
if (y.props.value ===
|
|
41
|
+
if (y.props.value === l) {
|
|
42
42
|
e = y;
|
|
43
43
|
break;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
if (o === "SelectGroupItemNext") {
|
|
47
|
-
const y = n, b =
|
|
47
|
+
const y = n, b = G.toArray(y.props.children).find(
|
|
48
48
|
(v) => {
|
|
49
|
-
var
|
|
50
|
-
return ((
|
|
49
|
+
var F;
|
|
50
|
+
return ((F = v == null ? void 0 : v.type) == null ? void 0 : F.componentType) === "SelectItemNext" && v.props.value === l;
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
|
-
if (b &&
|
|
53
|
+
if (b && H(b)) {
|
|
54
54
|
e = b;
|
|
55
55
|
break;
|
|
56
56
|
}
|
|
@@ -58,138 +58,138 @@ const pe = B(
|
|
|
58
58
|
}
|
|
59
59
|
if (e) {
|
|
60
60
|
const n = ((t = e.props.children) == null ? void 0 : t.toString()) || "";
|
|
61
|
-
|
|
61
|
+
V(n);
|
|
62
62
|
} else
|
|
63
|
-
|
|
64
|
-
}, [
|
|
65
|
-
|
|
66
|
-
}, [
|
|
67
|
-
|
|
68
|
-
}, [
|
|
69
|
-
const
|
|
63
|
+
V(""), c.current && (c.current.value = "");
|
|
64
|
+
}, [l, d]), O(() => {
|
|
65
|
+
m || L(-1);
|
|
66
|
+
}, [m]), O(() => {
|
|
67
|
+
p !== void 0 && K(p);
|
|
68
|
+
}, [p]);
|
|
69
|
+
const C = () => {
|
|
70
70
|
var e;
|
|
71
|
-
|
|
72
|
-
}, X = (e) => {
|
|
73
|
-
p(e), e || f == null || f();
|
|
71
|
+
a || (U(!m), (e = c.current) == null || e.focus());
|
|
74
72
|
}, U = (e) => {
|
|
75
|
-
|
|
73
|
+
S(e), e || u == null || u();
|
|
74
|
+
}, q = (e) => {
|
|
75
|
+
if (S(!1), K(e), I && (I({
|
|
76
76
|
target: { name: i, value: e },
|
|
77
77
|
currentTarget: { name: i, value: e },
|
|
78
78
|
type: "change",
|
|
79
79
|
bubbles: !0
|
|
80
|
-
}),
|
|
80
|
+
}), f)) {
|
|
81
81
|
const t = {
|
|
82
82
|
target: { name: i, value: e },
|
|
83
83
|
currentTarget: { name: i, value: e },
|
|
84
84
|
type: "blur",
|
|
85
85
|
bubbles: !0
|
|
86
86
|
};
|
|
87
|
-
|
|
87
|
+
f == null || f(t);
|
|
88
88
|
}
|
|
89
89
|
}, Y = te(
|
|
90
90
|
(e) => {
|
|
91
91
|
var r;
|
|
92
|
-
if (!
|
|
92
|
+
if (!a)
|
|
93
93
|
switch (e.key) {
|
|
94
94
|
case "ArrowDown":
|
|
95
95
|
case "ArrowUp": {
|
|
96
96
|
e.preventDefault();
|
|
97
97
|
const t = e.key === "ArrowDown" ? 1 : -1;
|
|
98
|
-
|
|
98
|
+
L((n) => le(d, n === -1 ? t === -1 ? 0 : -1 : n, t)), S(!0);
|
|
99
99
|
break;
|
|
100
100
|
}
|
|
101
101
|
case "Enter":
|
|
102
102
|
case "NumpadEnter": {
|
|
103
|
-
if (e.preventDefault(),
|
|
103
|
+
if (e.preventDefault(), m && g != -1 && d[g]) {
|
|
104
104
|
const t = d[g];
|
|
105
|
-
(r = t.props) != null && r.disabled ||
|
|
106
|
-
}
|
|
107
|
-
|
|
105
|
+
(r = t.props) != null && r.disabled || q(t.props.value);
|
|
106
|
+
}
|
|
107
|
+
C();
|
|
108
108
|
break;
|
|
109
109
|
}
|
|
110
110
|
case "Tab": {
|
|
111
|
-
|
|
111
|
+
S(!1);
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
case "Escape": {
|
|
115
|
-
e.preventDefault(),
|
|
115
|
+
e.preventDefault(), S(!1);
|
|
116
116
|
break;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
-
[d,
|
|
120
|
+
[d, m, g]
|
|
121
121
|
), Z = (e) => {
|
|
122
122
|
var t, n;
|
|
123
123
|
const r = e.relatedTarget;
|
|
124
|
-
if (r && ((t = A.current) != null && t.contains(r) || (n = D.current) != null && n.contains(r)) ||
|
|
125
|
-
setTimeout(() =>
|
|
124
|
+
if (r && ((t = A.current) != null && t.contains(r) || (n = D.current) != null && n.contains(r)) || j.current) {
|
|
125
|
+
setTimeout(() => j.current = !1, 0);
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
|
-
if (
|
|
129
|
-
const o =
|
|
130
|
-
|
|
128
|
+
if (f) {
|
|
129
|
+
const o = p ?? l ?? "";
|
|
130
|
+
f({
|
|
131
131
|
target: { name: i, value: o },
|
|
132
132
|
currentTarget: { name: i, value: o },
|
|
133
133
|
type: "blur",
|
|
134
134
|
bubbles: !0
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
|
-
},
|
|
137
|
+
}, R = re(), z = N["aria-label"] ?? J("select.next.placeholder", { defaultValue: "Select" });
|
|
138
138
|
return O(() => {
|
|
139
|
-
c.current && c.current.setAttribute("aria-labelledby",
|
|
140
|
-
}, [
|
|
139
|
+
c.current && c.current.setAttribute("aria-labelledby", R);
|
|
140
|
+
}, [R, h]), h ? /* @__PURE__ */ s("div", { className: P("gi-relative gi-w-full", N.className), children: /* @__PURE__ */ s(
|
|
141
141
|
ie,
|
|
142
142
|
{
|
|
143
143
|
...N,
|
|
144
|
-
value:
|
|
144
|
+
value: l,
|
|
145
145
|
onChange: I,
|
|
146
|
-
disabled:
|
|
146
|
+
disabled: a,
|
|
147
147
|
ref: c,
|
|
148
|
-
onBlur:
|
|
148
|
+
onBlur: f,
|
|
149
149
|
name: i,
|
|
150
|
-
placeholder:
|
|
150
|
+
placeholder: $,
|
|
151
151
|
children: x
|
|
152
152
|
}
|
|
153
153
|
) }) : /* @__PURE__ */ _(
|
|
154
154
|
"div",
|
|
155
155
|
{
|
|
156
|
-
"aria-disabled":
|
|
157
|
-
className:
|
|
156
|
+
"aria-disabled": a,
|
|
157
|
+
className: P("gi-relative gi-w-full", N.className),
|
|
158
158
|
children: [
|
|
159
|
-
/* @__PURE__ */ s("span", { id:
|
|
159
|
+
/* @__PURE__ */ s("span", { id: R, className: "gi-sr-only", children: z }),
|
|
160
160
|
/* @__PURE__ */ s(
|
|
161
161
|
oe,
|
|
162
162
|
{
|
|
163
163
|
...N,
|
|
164
164
|
autoComplete: "off",
|
|
165
|
-
"aria-label":
|
|
166
|
-
"aria-disabled":
|
|
167
|
-
disabled:
|
|
168
|
-
placeholder:
|
|
165
|
+
"aria-label": z,
|
|
166
|
+
"aria-disabled": a,
|
|
167
|
+
disabled: a,
|
|
168
|
+
placeholder: $ ?? J("select.next.placeholder", { defaultValue: "Search" }),
|
|
169
169
|
readOnly: !0,
|
|
170
170
|
inputClassName: "gi-cursor-pointer",
|
|
171
|
-
iconEndClassName:
|
|
172
|
-
"gi-cursor-pointer": !
|
|
173
|
-
"gi-cursor-not-allowed gi-pointer-events-none":
|
|
171
|
+
iconEndClassName: P({
|
|
172
|
+
"gi-cursor-pointer": !a,
|
|
173
|
+
"gi-cursor-not-allowed gi-pointer-events-none": a
|
|
174
174
|
}),
|
|
175
|
-
iconEnd:
|
|
176
|
-
onIconEndClick:
|
|
175
|
+
iconEnd: m ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
176
|
+
onIconEndClick: C,
|
|
177
177
|
ref: c,
|
|
178
178
|
iconEndRef: D,
|
|
179
|
-
value:
|
|
180
|
-
onClick:
|
|
179
|
+
value: X,
|
|
180
|
+
onClick: C,
|
|
181
181
|
onKeyDown: Y,
|
|
182
182
|
onBlur: Z,
|
|
183
183
|
name: i
|
|
184
184
|
}
|
|
185
185
|
),
|
|
186
186
|
/* @__PURE__ */ s(
|
|
187
|
-
|
|
187
|
+
ae,
|
|
188
188
|
{
|
|
189
189
|
triggerRef: c,
|
|
190
190
|
extraRefs: [D],
|
|
191
|
-
onOpenChange:
|
|
192
|
-
open:
|
|
191
|
+
onOpenChange: U,
|
|
192
|
+
open: m,
|
|
193
193
|
maxHeight: 304,
|
|
194
194
|
options: {
|
|
195
195
|
placement: "bottom-start",
|
|
@@ -204,7 +204,7 @@ const pe = B(
|
|
|
204
204
|
{
|
|
205
205
|
ref: A,
|
|
206
206
|
onChange: (e) => {
|
|
207
|
-
|
|
207
|
+
S(!1), q(e);
|
|
208
208
|
},
|
|
209
209
|
enableSearch: h,
|
|
210
210
|
children: d.map((e, r) => {
|
|
@@ -213,24 +213,24 @@ const pe = B(
|
|
|
213
213
|
if (t === "SelectItemNext") {
|
|
214
214
|
const o = e;
|
|
215
215
|
return /* @__PURE__ */ s(
|
|
216
|
-
|
|
216
|
+
M,
|
|
217
217
|
{
|
|
218
218
|
...o.props,
|
|
219
219
|
isHighlighted: g === r,
|
|
220
|
-
selected: (
|
|
220
|
+
selected: (l == null ? void 0 : l.toString()) === o.props.value.toString(),
|
|
221
221
|
index: r
|
|
222
222
|
},
|
|
223
223
|
`SelectItemNext-${o.props.value.toString()}`
|
|
224
224
|
);
|
|
225
225
|
} else if (t === "SelectGroupItemNext") {
|
|
226
|
-
const o = e, y =
|
|
226
|
+
const o = e, y = G.toArray(o.props.children).filter((b) => H(b)).map((b, v) => {
|
|
227
227
|
const w = b.props;
|
|
228
228
|
return /* @__PURE__ */ s(
|
|
229
|
-
|
|
229
|
+
M,
|
|
230
230
|
{
|
|
231
231
|
...w,
|
|
232
232
|
isHighlighted: g === r,
|
|
233
|
-
selected: (
|
|
233
|
+
selected: (l == null ? void 0 : l.toString()) === w.value.toString(),
|
|
234
234
|
index: v
|
|
235
235
|
},
|
|
236
236
|
`SelectGroupItemNext-SelectItemNext-${w.value.toString()}`
|
|
@@ -255,8 +255,8 @@ const pe = B(
|
|
|
255
255
|
}
|
|
256
256
|
);
|
|
257
257
|
}
|
|
258
|
-
),
|
|
259
|
-
Object.defineProperty(
|
|
258
|
+
), Q = () => null;
|
|
259
|
+
Object.defineProperty(Q, "componentType", {
|
|
260
260
|
value: "SelectItemNext",
|
|
261
261
|
writable: !1,
|
|
262
262
|
enumerable: !1
|
|
@@ -268,7 +268,7 @@ Object.defineProperty(ue, "componentType", {
|
|
|
268
268
|
enumerable: !1
|
|
269
269
|
});
|
|
270
270
|
const Ne = (x) => {
|
|
271
|
-
const { options:
|
|
271
|
+
const { options: p, defaultValue: E, onChange: I, error: u } = x;
|
|
272
272
|
return /* @__PURE__ */ s(
|
|
273
273
|
pe,
|
|
274
274
|
{
|
|
@@ -276,14 +276,14 @@ const Ne = (x) => {
|
|
|
276
276
|
defaultValue: E,
|
|
277
277
|
onChange: I,
|
|
278
278
|
"data-table-cell": "true",
|
|
279
|
-
"data-table-cell-error-state":
|
|
280
|
-
children:
|
|
279
|
+
"data-table-cell-error-state": u == null ? void 0 : u.toString(),
|
|
280
|
+
children: p.map(({ value: h, label: a }) => /* @__PURE__ */ s(Q, { value: h, children: a }, `${h}-${a}`))
|
|
281
281
|
}
|
|
282
282
|
);
|
|
283
283
|
};
|
|
284
284
|
export {
|
|
285
285
|
ue as SelectGroupItemNext,
|
|
286
|
-
|
|
286
|
+
Q as SelectItemNext,
|
|
287
287
|
pe as SelectNext,
|
|
288
288
|
Ne as SelectNextTableCell
|
|
289
289
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as x, Fragment as R, jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import r, { memo as k, useEffect as V, useCallback as g, useState as $ } from "react";
|
|
4
|
-
import
|
|
4
|
+
import q from "../Heading.js";
|
|
5
|
+
import A from "../atoms/Button.js";
|
|
5
6
|
import { cn as m } from "../cn.js";
|
|
6
|
-
import { Heading as A } from "../heading/heading.js";
|
|
7
7
|
import { Icon as z } from "../icon/icon.js";
|
|
8
8
|
import { Link as G } from "../link/link.js";
|
|
9
9
|
import { Paragraph as J } from "../paragraph/paragraph.js";
|
|
@@ -105,7 +105,7 @@ const C = r.createContext(
|
|
|
105
105
|
)
|
|
106
106
|
}
|
|
107
107
|
) : /* @__PURE__ */ s(
|
|
108
|
-
|
|
108
|
+
A,
|
|
109
109
|
{
|
|
110
110
|
variant: "flat",
|
|
111
111
|
appearance: "dark",
|
|
@@ -168,7 +168,7 @@ const C = r.createContext(
|
|
|
168
168
|
if (!r.useContext(C))
|
|
169
169
|
throw new Error("SideNavHeading must be used within a SideNav");
|
|
170
170
|
return /* @__PURE__ */ s(
|
|
171
|
-
|
|
171
|
+
q,
|
|
172
172
|
{
|
|
173
173
|
...e,
|
|
174
174
|
as: "h5",
|
package/dist/side-nav/types.d.ts
CHANGED