@arc-ui/components 11.14.0 → 11.16.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/Breadcrumbs/Breadcrumbs.cjs.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +1 -1
- package/dist/Checkbox/Checkbox.cjs.js +2 -2
- package/dist/Checkbox/Checkbox.esm.js +2 -2
- package/dist/FormControl/FormControl.cjs.js +1 -1
- package/dist/FormControl/FormControl.esm.js +1 -1
- package/dist/InformationCard/InformationCard.cjs.js +25 -43
- package/dist/InformationCard/InformationCard.esm.js +24 -42
- package/dist/Modal/Modal.cjs.js +16 -40
- package/dist/Modal/Modal.esm.js +6 -30
- package/dist/PaginationSimple/PaginationSimple.cjs.js +19 -16
- package/dist/PaginationSimple/PaginationSimple.esm.js +19 -16
- package/dist/RadioGroup/RadioGroup.cjs.js +2 -2
- package/dist/RadioGroup/RadioGroup.esm.js +2 -2
- package/dist/Select/Select.cjs.js +2736 -619
- package/dist/Select/Select.esm.js +2535 -418
- package/dist/Switch/Switch.cjs.js +335 -11
- package/dist/Switch/Switch.esm.js +328 -4
- package/dist/Tabs/Tabs.cjs.js +7 -4
- package/dist/Tabs/Tabs.esm.js +7 -4
- package/dist/TextArea/TextArea.cjs.js +17 -12
- package/dist/TextArea/TextArea.esm.js +17 -12
- package/dist/TextInput/TextInput.cjs.js +2 -2
- package/dist/TextInput/TextInput.esm.js +2 -2
- package/dist/Toast/Toast.cjs.js +7 -4
- package/dist/Toast/Toast.esm.js +7 -4
- package/dist/TypographyCard/TypographyCard.cjs.js +93 -0
- package/dist/TypographyCard/TypographyCard.esm.js +85 -0
- package/dist/TypographyCard/package.json +7 -0
- package/dist/UniversalHeader/UniversalHeader.cjs.js +1 -1
- package/dist/UniversalHeader/UniversalHeader.esm.js +1 -1
- package/dist/_shared/cjs/{Breadcrumbs-ed70e75a.js → Breadcrumbs-ef659d2b.js} +5 -5
- package/dist/_shared/cjs/BtIconArrowRight.esm-8e8ac316.js +30 -0
- package/dist/_shared/cjs/BtIconArrowRightFill.esm-435cf4bd.js +26 -0
- package/dist/_shared/cjs/{Checkbox-b126194e.js → Checkbox-904ad028.js} +1 -1
- package/dist/_shared/cjs/{FormControl-7daf8110.js → FormControl-166e0957.js} +5 -1
- package/dist/_shared/cjs/{RadioGroup-56e3b0e5.js → RadioGroup-1eddf86f.js} +1 -1
- package/dist/_shared/cjs/{Tabs-2d2a517d.js → Tabs-cc77dabb.js} +17 -37
- package/dist/_shared/cjs/{TextInput-bf1fe052.js → TextInput-fd9c756f.js} +10 -4
- package/dist/_shared/cjs/{Toast-69108261.js → Toast-91e96744.js} +36 -54
- package/dist/_shared/cjs/{UniversalHeader-5e43d320.js → UniversalHeader-b8389447.js} +4 -2
- package/dist/_shared/cjs/index-1641d0b4.js +27 -0
- package/dist/_shared/cjs/{index-43458549.js → index-3d69ea00.js} +28 -1
- package/dist/_shared/cjs/index-49c72a87.js +131 -0
- package/dist/_shared/cjs/{index-6b2a9ac3.js → index-4ecad2dd.js} +6 -22
- package/dist/_shared/cjs/{index.module-dd1d7d0b.js → index-56a040f4.js} +87 -104
- package/dist/_shared/cjs/index-6542b467.js +23 -0
- package/dist/_shared/cjs/{index-adbb63da.js → index-84e6a68f.js} +1 -1
- package/dist/_shared/cjs/{index-b2fd6338.js → index-d31f2b65.js} +1 -1
- package/dist/_shared/cjs/index-dcfdd5da.js +11 -0
- package/dist/_shared/esm/{Breadcrumbs-87e2bd46.js → Breadcrumbs-36edfb3d.js} +5 -5
- package/dist/_shared/esm/BtIconArrowRight.esm-267916a4.js +24 -0
- package/dist/_shared/esm/BtIconArrowRightFill.esm-99019d1a.js +20 -0
- package/dist/_shared/esm/{Checkbox-d6ec5024.js → Checkbox-8a5bb9a1.js} +1 -1
- package/dist/_shared/esm/{FormControl-351e5f1b.js → FormControl-9d4ddfec.js} +5 -1
- package/dist/_shared/esm/{RadioGroup-c838764c.js → RadioGroup-238db88d.js} +1 -1
- package/dist/_shared/esm/{Tabs-f903187a.js → Tabs-8719d952.js} +7 -27
- package/dist/_shared/esm/{TextInput-991804b6.js → TextInput-c1e2a1dd.js} +10 -4
- package/dist/_shared/esm/{Toast-37549e68.js → Toast-7cb1e544.js} +6 -24
- package/dist/_shared/esm/{UniversalHeader-b4c1577c.js → UniversalHeader-80c7313f.js} +4 -2
- package/dist/_shared/esm/{index.module-44714d3f.js → index-12f3a407.js} +89 -105
- package/dist/_shared/esm/index-246b4f18.js +21 -0
- package/dist/_shared/esm/{index-a1d2d9b3.js → index-39019a9b.js} +1 -1
- package/dist/_shared/esm/{index-41d7af2b.js → index-3e2bc99d.js} +29 -3
- package/dist/_shared/esm/index-6b7b075c.js +25 -0
- package/dist/_shared/esm/{index-efd9ef1c.js → index-936b5179.js} +1 -1
- package/dist/_shared/esm/index-a624de47.js +9 -0
- package/dist/_shared/esm/{index-3797d77e.js → index-d0307140.js} +5 -21
- package/dist/_shared/esm/index-db47e95a.js +129 -0
- package/dist/index.es.js +3062 -865
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3062 -864
- package/dist/index.js.map +1 -1
- package/dist/styles.css +5 -5
- package/dist/types/components/MediaCard/MediaCard.d.ts +24 -30
- package/dist/types/components/Select/Select.d.ts +49 -0
- package/dist/types/components/TextInput/TextInput.d.ts +12 -1
- package/dist/types/components/TypographyCard/TypographyCard.d.ts +48 -0
- package/dist/types/components/TypographyCard/index.d.ts +1 -0
- package/dist/types/components/UniversalHeader/UniversalHeader.d.ts +4 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/internal-components/ConditionalWrapper/ConditionalWrapper.d.ts +6 -0
- package/dist/types/internal-components/ConditionalWrapper/index.d.ts +1 -0
- package/dist/types/internal-components/index.d.ts +1 -0
- package/dist/types/styles.d.ts +2 -1
- package/package.json +2 -2
- package/dist/_shared/cjs/index-c575a255.js +0 -490
- package/dist/_shared/esm/index-13d575cc.js +0 -479
- package/dist/types/components/MediaCard/MediaCard.stories-wip.d.ts +0 -15
|
@@ -11,6 +11,29 @@ function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEven
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Set a given ref to a given value
|
|
16
|
+
* This utility takes care of different types of refs: callback refs and RefObject(s)
|
|
17
|
+
*/ function $6ed0406888f73fc4$var$setRef(ref, value) {
|
|
18
|
+
if (typeof ref === 'function') ref(value);
|
|
19
|
+
else if (ref !== null && ref !== undefined) ref.current = value;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A utility to compose multiple refs together
|
|
23
|
+
* Accepts callback refs and RefObject(s)
|
|
24
|
+
*/ function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
|
|
25
|
+
return (node)=>refs.forEach((ref)=>$6ed0406888f73fc4$var$setRef(ref, node)
|
|
26
|
+
)
|
|
27
|
+
;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* A custom hook that composes multiple refs
|
|
31
|
+
* Accepts callback refs and RefObject(s)
|
|
32
|
+
*/ function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {
|
|
33
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
34
|
+
return React.useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);
|
|
35
|
+
}
|
|
36
|
+
|
|
14
37
|
/* -------------------------------------------------------------------------------------------------
|
|
15
38
|
* createContextScope
|
|
16
39
|
* -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeDeps = []) {
|
|
@@ -109,26 +132,69 @@ function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEven
|
|
|
109
132
|
}
|
|
110
133
|
|
|
111
134
|
/**
|
|
112
|
-
*
|
|
113
|
-
* This
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
135
|
+
* On the server, React emits a warning when calling `useLayoutEffect`.
|
|
136
|
+
* This is because neither `useLayoutEffect` nor `useEffect` run on the server.
|
|
137
|
+
* We use this safe version which suppresses the warning by replacing it with a noop on the server.
|
|
138
|
+
*
|
|
139
|
+
* See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
|
|
140
|
+
*/ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? React.useLayoutEffect : ()=>{};
|
|
141
|
+
|
|
118
142
|
/**
|
|
119
|
-
* A
|
|
120
|
-
*
|
|
121
|
-
*/ function $
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
143
|
+
* A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
|
|
144
|
+
* prop or avoid re-executing effects when passed as a dependency
|
|
145
|
+
*/ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
|
|
146
|
+
const callbackRef = React.useRef(callback);
|
|
147
|
+
React.useEffect(()=>{
|
|
148
|
+
callbackRef.current = callback;
|
|
149
|
+
}); // https://github.com/facebook/react/issues/19240
|
|
150
|
+
return React.useMemo(()=>(...args)=>{
|
|
151
|
+
var _callbackRef$current;
|
|
152
|
+
return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
|
|
153
|
+
}
|
|
154
|
+
, []);
|
|
125
155
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
156
|
+
|
|
157
|
+
function $71cd76cc60e0454e$export$6f32135080cb4c3({ prop: prop , defaultProp: defaultProp , onChange: onChange = ()=>{} }) {
|
|
158
|
+
const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState({
|
|
159
|
+
defaultProp: defaultProp,
|
|
160
|
+
onChange: onChange
|
|
161
|
+
});
|
|
162
|
+
const isControlled = prop !== undefined;
|
|
163
|
+
const value1 = isControlled ? prop : uncontrolledProp;
|
|
164
|
+
const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onChange);
|
|
165
|
+
const setValue = React.useCallback((nextValue)=>{
|
|
166
|
+
if (isControlled) {
|
|
167
|
+
const setter = nextValue;
|
|
168
|
+
const value = typeof nextValue === 'function' ? setter(prop) : nextValue;
|
|
169
|
+
if (value !== prop) handleChange(value);
|
|
170
|
+
} else setUncontrolledProp(nextValue);
|
|
171
|
+
}, [
|
|
172
|
+
isControlled,
|
|
173
|
+
prop,
|
|
174
|
+
setUncontrolledProp,
|
|
175
|
+
handleChange
|
|
176
|
+
]);
|
|
177
|
+
return [
|
|
178
|
+
value1,
|
|
179
|
+
setValue
|
|
180
|
+
];
|
|
181
|
+
}
|
|
182
|
+
function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp: defaultProp , onChange: onChange }) {
|
|
183
|
+
const uncontrolledState = React.useState(defaultProp);
|
|
184
|
+
const [value] = uncontrolledState;
|
|
185
|
+
const prevValueRef = React.useRef(value);
|
|
186
|
+
const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onChange);
|
|
187
|
+
React.useEffect(()=>{
|
|
188
|
+
if (prevValueRef.current !== value) {
|
|
189
|
+
handleChange(value);
|
|
190
|
+
prevValueRef.current = value;
|
|
191
|
+
}
|
|
192
|
+
}, [
|
|
193
|
+
value,
|
|
194
|
+
prevValueRef,
|
|
195
|
+
handleChange
|
|
196
|
+
]);
|
|
197
|
+
return uncontrolledState;
|
|
132
198
|
}
|
|
133
199
|
|
|
134
200
|
/* -------------------------------------------------------------------------------------------------
|
|
@@ -163,7 +229,7 @@ $5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';
|
|
|
163
229
|
const { children: children , ...slotProps } = props;
|
|
164
230
|
if (/*#__PURE__*/ React.isValidElement(children)) return /*#__PURE__*/ React.cloneElement(children, {
|
|
165
231
|
...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
|
|
166
|
-
ref: $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref)
|
|
232
|
+
ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
|
|
167
233
|
});
|
|
168
234
|
return React.Children.count(children) > 1 ? React.Children.only(null) : null;
|
|
169
235
|
});
|
|
@@ -211,9 +277,11 @@ const $8927f6f2acc4f386$var$NODES = [
|
|
|
211
277
|
'a',
|
|
212
278
|
'button',
|
|
213
279
|
'div',
|
|
280
|
+
'form',
|
|
214
281
|
'h2',
|
|
215
282
|
'h3',
|
|
216
283
|
'img',
|
|
284
|
+
'input',
|
|
217
285
|
'label',
|
|
218
286
|
'li',
|
|
219
287
|
'nav',
|
|
@@ -286,91 +354,6 @@ const $8927f6f2acc4f386$var$NODES = [
|
|
|
286
354
|
);
|
|
287
355
|
}
|
|
288
356
|
|
|
289
|
-
/**
|
|
290
|
-
* A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
|
|
291
|
-
* prop or avoid re-executing effects when passed as a dependency
|
|
292
|
-
*/ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
|
|
293
|
-
const callbackRef = React.useRef(callback);
|
|
294
|
-
React.useEffect(()=>{
|
|
295
|
-
callbackRef.current = callback;
|
|
296
|
-
}); // https://github.com/facebook/react/issues/19240
|
|
297
|
-
return React.useMemo(()=>(...args)=>{
|
|
298
|
-
var _callbackRef$current;
|
|
299
|
-
return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
|
|
300
|
-
}
|
|
301
|
-
, []);
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* On the server, React emits a warning when calling `useLayoutEffect`.
|
|
306
|
-
* This is because neither `useLayoutEffect` nor `useEffect` run on the server.
|
|
307
|
-
* We use this safe version which suppresses the warning by replacing it with a noop on the server.
|
|
308
|
-
*
|
|
309
|
-
* See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
|
|
310
|
-
*/ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? React.useLayoutEffect : ()=>{};
|
|
311
|
-
|
|
312
|
-
function $71cd76cc60e0454e$export$6f32135080cb4c3({ prop: prop , defaultProp: defaultProp , onChange: onChange = ()=>{} }) {
|
|
313
|
-
const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState({
|
|
314
|
-
defaultProp: defaultProp,
|
|
315
|
-
onChange: onChange
|
|
316
|
-
});
|
|
317
|
-
const isControlled = prop !== undefined;
|
|
318
|
-
const value1 = isControlled ? prop : uncontrolledProp;
|
|
319
|
-
const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onChange);
|
|
320
|
-
const setValue = React.useCallback((nextValue)=>{
|
|
321
|
-
if (isControlled) {
|
|
322
|
-
const setter = nextValue;
|
|
323
|
-
const value = typeof nextValue === 'function' ? setter(prop) : nextValue;
|
|
324
|
-
if (value !== prop) handleChange(value);
|
|
325
|
-
} else setUncontrolledProp(nextValue);
|
|
326
|
-
}, [
|
|
327
|
-
isControlled,
|
|
328
|
-
prop,
|
|
329
|
-
setUncontrolledProp,
|
|
330
|
-
handleChange
|
|
331
|
-
]);
|
|
332
|
-
return [
|
|
333
|
-
value1,
|
|
334
|
-
setValue
|
|
335
|
-
];
|
|
336
|
-
}
|
|
337
|
-
function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp: defaultProp , onChange: onChange }) {
|
|
338
|
-
const uncontrolledState = React.useState(defaultProp);
|
|
339
|
-
const [value] = uncontrolledState;
|
|
340
|
-
const prevValueRef = React.useRef(value);
|
|
341
|
-
const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onChange);
|
|
342
|
-
React.useEffect(()=>{
|
|
343
|
-
if (prevValueRef.current !== value) {
|
|
344
|
-
handleChange(value);
|
|
345
|
-
prevValueRef.current = value;
|
|
346
|
-
}
|
|
347
|
-
}, [
|
|
348
|
-
value,
|
|
349
|
-
prevValueRef,
|
|
350
|
-
handleChange
|
|
351
|
-
]);
|
|
352
|
-
return uncontrolledState;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
function $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {
|
|
356
|
-
const ref = React.useRef({
|
|
357
|
-
value: value,
|
|
358
|
-
previous: value
|
|
359
|
-
}); // We compare values before making an update to ensure that
|
|
360
|
-
// a change has been made. This ensures the previous value is
|
|
361
|
-
// persisted correctly between renders.
|
|
362
|
-
return React.useMemo(()=>{
|
|
363
|
-
if (ref.current.value !== value) {
|
|
364
|
-
ref.current.previous = ref.current.value;
|
|
365
|
-
ref.current.value = value;
|
|
366
|
-
}
|
|
367
|
-
return ref.current.previous;
|
|
368
|
-
}, [
|
|
369
|
-
value
|
|
370
|
-
]);
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
exports.$010c2913dbd2fe3d$export$5cae361ad82dce8b = $010c2913dbd2fe3d$export$5cae361ad82dce8b;
|
|
374
357
|
exports.$5e63c961fc1ce211$export$8c6ed5c666ac1360 = $5e63c961fc1ce211$export$8c6ed5c666ac1360;
|
|
375
358
|
exports.$6ed0406888f73fc4$export$c7b2cbe3552a0d05 = $6ed0406888f73fc4$export$c7b2cbe3552a0d05;
|
|
376
359
|
exports.$71cd76cc60e0454e$export$6f32135080cb4c3 = $71cd76cc60e0454e$export$6f32135080cb4c3;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var index = require('./index-56a040f4.js');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Listens for when the escape key is down
|
|
8
|
+
*/ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
|
|
9
|
+
const onEscapeKeyDown = index.$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onEscapeKeyDownProp);
|
|
10
|
+
React.useEffect(()=>{
|
|
11
|
+
const handleKeyDown = (event)=>{
|
|
12
|
+
if (event.key === 'Escape') onEscapeKeyDown(event);
|
|
13
|
+
};
|
|
14
|
+
ownerDocument.addEventListener('keydown', handleKeyDown);
|
|
15
|
+
return ()=>ownerDocument.removeEventListener('keydown', handleKeyDown)
|
|
16
|
+
;
|
|
17
|
+
}, [
|
|
18
|
+
onEscapeKeyDown,
|
|
19
|
+
ownerDocument
|
|
20
|
+
]);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
exports.$addc16e1bbe58fd0$export$3a72a57244d6e765 = $addc16e1bbe58fd0$export$3a72a57244d6e765;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
|
|
5
|
+
const $f631663db3294ace$var$DirectionContext = /*#__PURE__*/ React.createContext(undefined);
|
|
6
|
+
/* -----------------------------------------------------------------------------------------------*/ function $f631663db3294ace$export$b39126d51d94e6f3(localDir) {
|
|
7
|
+
const globalDir = React.useContext($f631663db3294ace$var$DirectionContext);
|
|
8
|
+
return localDir || globalDir || 'ltr';
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
exports.$f631663db3294ace$export$b39126d51d94e6f3 = $f631663db3294ace$export$b39126d51d94e6f3;
|
|
@@ -9,16 +9,16 @@ import { h as handleLinkClick } from './handle-link-click-f64f55a2.js';
|
|
|
9
9
|
var BreadcrumbsItem = function (_a) {
|
|
10
10
|
var spacerIconAfter = _a.spacerIconAfter, spacerIconBefore = _a.spacerIconBefore, children = _a.children, props = __rest(_a, ["spacerIconAfter", "spacerIconBefore", "children"]);
|
|
11
11
|
return (React__default.createElement("li", __assign({ className: "arc-Breadcrumbs-item" }, filterDataAttrs(props)),
|
|
12
|
-
spacerIconBefore && (React__default.createElement("div", { className: "arc-Breadcrumbs-spacerIcon", "data-testid": "arc-chevron-left-2px" },
|
|
12
|
+
spacerIconBefore && (React__default.createElement("div", { className: "arc-Breadcrumbs-spacerIcon", "data-testid": "arc-chevron-left-2px", "aria-hidden": "true" },
|
|
13
13
|
React__default.createElement(Icon, { icon: BtIconChevronLeft2Px }))),
|
|
14
14
|
children,
|
|
15
|
-
spacerIconAfter && (React__default.createElement("div", { className: "arc-Breadcrumbs-spacerIcon" },
|
|
15
|
+
spacerIconAfter && (React__default.createElement("div", { className: "arc-Breadcrumbs-spacerIcon", "aria-hidden": "true" },
|
|
16
16
|
React__default.createElement(Icon, { icon: BtIconChevronRight2Px })))));
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
var BreadcrumbsLink = React__default.forwardRef(function (_a, ref) {
|
|
20
20
|
var onClick = _a.onClick, href = _a.href, isActive = _a.isActive, children = _a.children, props = __rest(_a, ["onClick", "href", "isActive", "children"]);
|
|
21
|
-
return (React__default.createElement(React__default.Fragment, null, isActive || href === undefined ? (React__default.createElement("span", __assign({
|
|
21
|
+
return (React__default.createElement(React__default.Fragment, null, isActive || href === undefined ? (React__default.createElement("span", __assign({ onClick: onClick, className: classNames({
|
|
22
22
|
"arc-Breadcrumbs-text": true,
|
|
23
23
|
"arc-Breadcrumbs-text--active": isActive
|
|
24
24
|
}) }, filterDataAttrs(props)), children)) : (React__default.createElement("a", __assign({}, (onClick && ref
|
|
@@ -67,11 +67,11 @@ var Breadcrumbs = function (_a) {
|
|
|
67
67
|
// eslint-disable-next-line
|
|
68
68
|
}, []);
|
|
69
69
|
var items = React__default.Children.toArray(children);
|
|
70
|
-
return (React__default.createElement("nav", __assign({ "aria-label": "Breadcrumbs",
|
|
70
|
+
return (React__default.createElement("nav", __assign({ "aria-label": "Breadcrumbs", className: classNames({
|
|
71
71
|
"arc-Breadcrumbs": true,
|
|
72
72
|
"arc-Breadcrumbs--light": isLight
|
|
73
73
|
}) }, filterDataAttrs(props)),
|
|
74
|
-
React__default.createElement("
|
|
74
|
+
React__default.createElement("ol", { className: "arc-Breadcrumbs-list", ref: breadcrumbsList }, showBackTrail ? (React__default.createElement(React__default.Fragment, null, items.length < 3 ? (React__default.createElement(Breadcrumbs.Item, { spacerIconBefore: true }, items[0].props.children)) : (React__default.createElement(Breadcrumbs.Item, { spacerIconBefore: true }, items[items.length - 2].props.children)))) : (React__default.createElement(React__default.Fragment, null, isCompressed ? (React__default.createElement(React__default.Fragment, null,
|
|
75
75
|
React__default.createElement(Breadcrumbs.Item, { spacerIconAfter: true }, items[0].props.children),
|
|
76
76
|
React__default.createElement(Breadcrumbs.Item, { spacerIconAfter: true },
|
|
77
77
|
React__default.createElement("button", { className: "arc-Breadcrumbs-expand arc-Breadcrumbs-text", onClick: function () { return setIsCompressed(false); }, "aria-label": "Expand Breadcrumbs", type: "button", "data-testid": "expand-ellipsis" }, "...")),
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
const BtIconArrowRight = (props) =>
|
|
4
|
+
/*#__PURE__*/ React__default.createElement(
|
|
5
|
+
"svg",
|
|
6
|
+
Object.assign(
|
|
7
|
+
{
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
viewBox: "0 0 32 32",
|
|
10
|
+
},
|
|
11
|
+
props,
|
|
12
|
+
),
|
|
13
|
+
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
14
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
15
|
+
d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,27A13,13,0,1,1,29,16,13.01474,13.01474,0,0,1,16,29Z",
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
}),
|
|
18
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
19
|
+
d: "M18.14648,11.64648a.49983.49983,0,0,0,0,.707L21.293,15.5H9.5a.5.5,0,0,0,0,1H21.293l-3.14649,3.14648a.5.5,0,1,0,.707.707L23.207,16l-4.35351-4.35352A.49983.49983,0,0,0,18.14648,11.64648Z",
|
|
20
|
+
fill: "currentColor",
|
|
21
|
+
}),
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
export { BtIconArrowRight as B };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
const BtIconArrowRightFill = (props) =>
|
|
4
|
+
/*#__PURE__*/ React__default.createElement(
|
|
5
|
+
"svg",
|
|
6
|
+
Object.assign(
|
|
7
|
+
{
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
viewBox: "0 0 32 32",
|
|
10
|
+
},
|
|
11
|
+
props,
|
|
12
|
+
),
|
|
13
|
+
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
14
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
15
|
+
d: "M2,16A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm16.85352-4.35352L23.207,16l-4.35351,4.35352a.5.5,0,0,1-.707-.707L21.293,16.5H9.5a.5.5,0,0,1,0-1H21.293l-3.14649-3.14648a.5.5,0,0,1,.707-.707Z",
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
}),
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
export { BtIconArrowRightFill as B };
|
|
@@ -3,7 +3,7 @@ import React__default, { forwardRef, useContext } from 'react';
|
|
|
3
3
|
import { B as BtIconTickAlt2Px } from './BtIconTickAlt2Px.esm-0bc2ded0.js';
|
|
4
4
|
import { B as BtIconAlert } from './BtIconAlert.esm-a4608d47.js';
|
|
5
5
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
6
|
-
import { C as Context, u as useAriaDescribedby } from './FormControl-
|
|
6
|
+
import { C as Context, u as useAriaDescribedby } from './FormControl-9d4ddfec.js';
|
|
7
7
|
import { C as Context$1 } from './Surface-0ca6817d.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -64,6 +64,8 @@ var FormControl = function (_a) {
|
|
|
64
64
|
else {
|
|
65
65
|
elementProps["aria-describedby"] = ariaDescribedby;
|
|
66
66
|
}
|
|
67
|
+
var hasInfo = !helperUnderLabel &&
|
|
68
|
+
Boolean(errorMessage || disclosureTitle || helper || supplementaryInfo);
|
|
67
69
|
return (React__default.createElement(Provider, { value: { requirementStatus: requirementStatus } },
|
|
68
70
|
React__default.createElement(ElementType, __assign({ className: classNames({
|
|
69
71
|
"arc-FormControl": true,
|
|
@@ -76,7 +78,9 @@ var FormControl = function (_a) {
|
|
|
76
78
|
requirementStatus === "optional" && (React__default.createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)"))),
|
|
77
79
|
helperUnderLabel && (React__default.createElement(React__default.Fragment, null, helper && (React__default.createElement("div", { className: "arc-FormControl-helper arc-FormControl-helper--underLabel", id: idHelper }, helper)))),
|
|
78
80
|
children,
|
|
79
|
-
React__default.createElement("div", { className: "arc-FormControl-info"
|
|
81
|
+
React__default.createElement("div", { className: classNames("arc-FormControl-info", {
|
|
82
|
+
"arc-FormControl-info--hasContent": hasInfo
|
|
83
|
+
}) },
|
|
80
84
|
!helperUnderLabel && (React__default.createElement("div", { className: "arc-FormControl-helperContainer" }, errorMessage ? (React__default.createElement("div", { className: "arc-FormControl-error", id: idError },
|
|
81
85
|
React__default.createElement("span", { className: "arc-FormControl-error--icon" },
|
|
82
86
|
React__default.createElement(BtIconAlert, null)),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-ea8f4ed4.js';
|
|
2
2
|
import React__default, { createContext, useContext, forwardRef, useEffect } from 'react';
|
|
3
|
-
import { F as FormControl } from './FormControl-
|
|
3
|
+
import { F as FormControl } from './FormControl-9d4ddfec.js';
|
|
4
4
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
5
5
|
import { C as Context } from './Surface-0ca6817d.js';
|
|
6
6
|
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-ea8f4ed4.js';
|
|
2
|
-
import React__default, {
|
|
2
|
+
import React__default, { forwardRef, createElement, useRef, useState, useEffect, useCallback, useContext } from 'react';
|
|
3
3
|
import { _ as _extends } from './extends-8cc61aad.js';
|
|
4
|
-
import { c as $c512c27ab02ef895$export$50c7b4e9d9f19c1, a as $6ed0406888f73fc4$export$c7b2cbe3552a0d05, d as $71cd76cc60e0454e$export$6f32135080cb4c3, $ as $b1b2314f5f9a1d84$export$25bec8c6f54ee79a, b as $8927f6f2acc4f386$export$250ffa63cdc0d034,
|
|
5
|
-
import { $ as $e02a7d9cb1dc128c$export$c74125a8e3af6bb2 } from './index-
|
|
6
|
-
import { $ as $1746a345f3d73bb7$export$f680877a34711e37 } from './index-
|
|
4
|
+
import { c as $c512c27ab02ef895$export$50c7b4e9d9f19c1, a as $6ed0406888f73fc4$export$c7b2cbe3552a0d05, d as $71cd76cc60e0454e$export$6f32135080cb4c3, $ as $b1b2314f5f9a1d84$export$25bec8c6f54ee79a, b as $8927f6f2acc4f386$export$250ffa63cdc0d034, f as $e42e1063c40fb3ef$export$b9ecd428b558ff10 } from './index-12f3a407.js';
|
|
5
|
+
import { $ as $e02a7d9cb1dc128c$export$c74125a8e3af6bb2 } from './index-39019a9b.js';
|
|
6
|
+
import { $ as $1746a345f3d73bb7$export$f680877a34711e37 } from './index-936b5179.js';
|
|
7
|
+
import { $ as $f631663db3294ace$export$b39126d51d94e6f3 } from './index-a624de47.js';
|
|
8
|
+
import { $ as $921a889cee6df7e8$export$99c2b779aa4e8b8b } from './index-db47e95a.js';
|
|
7
9
|
import { I as Icon } from './Icon-abd0d990.js';
|
|
8
10
|
import { C as Context } from './Surface-0ca6817d.js';
|
|
9
11
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
10
|
-
|
|
11
|
-
const $f631663db3294ace$var$DirectionContext = /*#__PURE__*/ createContext(undefined);
|
|
12
|
-
/* -----------------------------------------------------------------------------------------------*/ function $f631663db3294ace$export$b39126d51d94e6f3(localDir) {
|
|
13
|
-
const globalDir = useContext($f631663db3294ace$var$DirectionContext);
|
|
14
|
-
return localDir || globalDir || 'ltr';
|
|
15
|
-
}
|
|
12
|
+
import { B as BtIconArrowRightFill } from './BtIconArrowRightFill.esm-99019d1a.js';
|
|
16
13
|
|
|
17
14
|
const $d7bdfb9eb0fdf311$var$ENTRY_FOCUS = 'rovingFocusGroup.onEntryFocus';
|
|
18
15
|
const $d7bdfb9eb0fdf311$var$EVENT_OPTIONS = {
|
|
@@ -400,23 +397,6 @@ var TabContent = function (_a) {
|
|
|
400
397
|
return (React__default.createElement($69cb30bb0017df05$export$7c6e2c02157bb7d2, { className: "arc-Tab-content", value: value }, children));
|
|
401
398
|
};
|
|
402
399
|
|
|
403
|
-
const BtIconArrowRightFill = (props) =>
|
|
404
|
-
/*#__PURE__*/ React__default.createElement(
|
|
405
|
-
"svg",
|
|
406
|
-
Object.assign(
|
|
407
|
-
{
|
|
408
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
409
|
-
viewBox: "0 0 32 32",
|
|
410
|
-
},
|
|
411
|
-
props,
|
|
412
|
-
),
|
|
413
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
414
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
415
|
-
d: "M2,16A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm16.85352-4.35352L23.207,16l-4.35351,4.35352a.5.5,0,0,1-.707-.707L21.293,16.5H9.5a.5.5,0,0,1,0-1H21.293l-3.14649-3.14648a.5.5,0,0,1,.707-.707Z",
|
|
416
|
-
fill: "currentColor",
|
|
417
|
-
}),
|
|
418
|
-
);
|
|
419
|
-
|
|
420
400
|
const BtIconArrowLeftFill = (props) =>
|
|
421
401
|
/*#__PURE__*/ React__default.createElement(
|
|
422
402
|
"svg",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-ea8f4ed4.js';
|
|
2
2
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
3
3
|
import React__default, { forwardRef, useContext, useState } from 'react';
|
|
4
|
-
import { u as useAriaDescribedby, F as FormControl } from './FormControl-
|
|
4
|
+
import { u as useAriaDescribedby, F as FormControl } from './FormControl-9d4ddfec.js';
|
|
5
5
|
import { C as Context } from './Surface-0ca6817d.js';
|
|
6
6
|
import { V as VisuallyHidden } from './VisuallyHidden-b9eebf71.js';
|
|
7
7
|
|
|
@@ -37,9 +37,9 @@ var useNumericInput = function (props) {
|
|
|
37
37
|
*/
|
|
38
38
|
var TextInput = forwardRef(function (_a, ref) {
|
|
39
39
|
var _b;
|
|
40
|
-
var _c = _a.defaultValue, defaultValue = _c === void 0 ? "" : _c, errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, inputMode = _a.inputMode, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isReadOnly, isReadOnly = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, label = _a.label, _g = _a.labelSize, labelSize = _g === void 0 ? "l" : _g, maxLength = _a.maxLength, minLength = _a.minLength, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onClickDisclosure = _a.onClickDisclosure, pattern = _a.pattern, _h = _a.type, type = _h === void 0 ? "text" : _h, _j = _a.showPassword, showPassword = _j === void 0 ? false : _j, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, _k = _a.inputSize, inputSize = _k === void 0 ? "m" : _k, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "id", "inputMode", "isDisabled", "isReadOnly", "isRequired", "label", "labelSize", "maxLength", "minLength", "name", "onBlur", "onChange", "onClickDisclosure", "pattern", "type", "showPassword", "value", "disclosureTitle", "disclosureText", "inputSize"]);
|
|
40
|
+
var _c = _a.defaultValue, defaultValue = _c === void 0 ? "" : _c, errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, inputMode = _a.inputMode, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isReadOnly, isReadOnly = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, label = _a.label, _g = _a.labelSize, labelSize = _g === void 0 ? "l" : _g, maxLength = _a.maxLength, minLength = _a.minLength, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onClickDisclosure = _a.onClickDisclosure, pattern = _a.pattern, _h = _a.type, type = _h === void 0 ? "text" : _h, _j = _a.showPassword, showPassword = _j === void 0 ? false : _j, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, _k = _a.inputSize, inputSize = _k === void 0 ? "m" : _k, prefix = _a.prefix, suffix = _a.suffix, _l = _a.inputAlignment, inputAlignment = _l === void 0 ? "left" : _l, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "id", "inputMode", "isDisabled", "isReadOnly", "isRequired", "label", "labelSize", "maxLength", "minLength", "name", "onBlur", "onChange", "onClickDisclosure", "pattern", "type", "showPassword", "value", "disclosureTitle", "disclosureText", "inputSize", "prefix", "suffix", "inputAlignment"]);
|
|
41
41
|
var surface = useContext(Context).surface;
|
|
42
|
-
var
|
|
42
|
+
var _m = useState(false), showPasswordToggle = _m[0], setShowPasswordToggle = _m[1];
|
|
43
43
|
var inferredInputProps = useNumericInput({
|
|
44
44
|
inputMode: inputMode,
|
|
45
45
|
pattern: pattern,
|
|
@@ -54,15 +54,21 @@ var TextInput = forwardRef(function (_a, ref) {
|
|
|
54
54
|
}).ariaDescribedby;
|
|
55
55
|
return (React__default.createElement("div", __assign({ className: classNames((_b = {
|
|
56
56
|
"arc-TextInput": true,
|
|
57
|
+
"arc-TextInput--alignRight": inputAlignment === "right",
|
|
57
58
|
"arc-TextInput--withPasswordToggle": showPassword,
|
|
59
|
+
"arc-TextInput--isDisabled": isDisabled,
|
|
58
60
|
"arc-TextInput--invalid": errorMessage,
|
|
59
|
-
"arc-TextInput--onDarkSurface": surface === "dark"
|
|
61
|
+
"arc-TextInput--onDarkSurface": surface === "dark",
|
|
62
|
+
"arc-TextInput--withPrefix": prefix,
|
|
63
|
+
"arc-TextInput--withSuffix": suffix
|
|
60
64
|
},
|
|
61
65
|
_b["arc-TextInput--size".concat(inputSize && inputSize.toUpperCase())] = inputSize && inputSize !== "m",
|
|
62
66
|
_b)) }, filterDataAttrs(props)),
|
|
63
67
|
React__default.createElement(FormControl, { errorMessage: errorMessage, helper: helper, htmlFor: id, isDisabled: isDisabled, label: label, labelSize: labelSize, requirementStatus: isRequired ? "required" : "optional", disclosureTitle: disclosureTitle, disclosureText: disclosureText, onClickDisclosure: onClickDisclosure },
|
|
64
68
|
React__default.createElement("div", { className: "arc-TextInput-inputWrapper" },
|
|
69
|
+
prefix && (React__default.createElement("span", { className: "arc-TextInput-prefix", "aria-hidden": true }, prefix)),
|
|
65
70
|
React__default.createElement("input", __assign({ "aria-describedby": ariaDescribedby, "aria-invalid": errorMessage ? "true" : "false", className: "arc-TextInput-input", defaultValue: typeof value !== "undefined" ? undefined : defaultValue, disabled: isDisabled, id: id, maxLength: maxLength, minLength: minLength, name: name, onChange: onChange, onBlur: onBlur, readOnly: isReadOnly, ref: ref, required: isRequired, value: typeof value !== "undefined" ? value : undefined }, inferredInputProps)),
|
|
71
|
+
suffix && !showPassword ? (React__default.createElement("span", { className: "arc-TextInput-suffix", "aria-hidden": true }, suffix)) : null,
|
|
66
72
|
showPassword && (React__default.createElement(React__default.Fragment, null,
|
|
67
73
|
React__default.createElement("button", { className: "arc-TextInput-passwordToggle", onClick: function () { return setShowPasswordToggle(function (p) { return !p; }); }, type: "button" }, showPasswordToggle ? "Hide" : "Show"),
|
|
68
74
|
React__default.createElement(VisuallyHidden, null,
|
|
@@ -1,36 +1,18 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-ea8f4ed4.js';
|
|
2
|
-
import React__default, {
|
|
2
|
+
import React__default, { useState, useRef, createElement, useCallback, forwardRef, useEffect, useMemo, Fragment } from 'react';
|
|
3
3
|
import { _ as _extends } from './extends-8cc61aad.js';
|
|
4
4
|
import { createPortal } from 'react-dom';
|
|
5
|
-
import {
|
|
6
|
-
import { $ as $e02a7d9cb1dc128c$export$c74125a8e3af6bb2 } from './index-
|
|
7
|
-
import { b as $5cb92bef7577960e$export$aecb2ddcb55c95be, c as $5cb92bef7577960e$export$be92b6f5f03c0fe9, $ as $f1701beae083dbae$export$602eac185826482c } from './index-
|
|
5
|
+
import { c as $c512c27ab02ef895$export$50c7b4e9d9f19c1, a as $6ed0406888f73fc4$export$c7b2cbe3552a0d05, b as $8927f6f2acc4f386$export$250ffa63cdc0d034, $ as $b1b2314f5f9a1d84$export$25bec8c6f54ee79a, f as $e42e1063c40fb3ef$export$b9ecd428b558ff10, g as $9f79659886946c16$export$e5c5a5f917a5871c, d as $71cd76cc60e0454e$export$6f32135080cb4c3, h as $8927f6f2acc4f386$export$6d1a0317bde7de7f } from './index-12f3a407.js';
|
|
6
|
+
import { $ as $e02a7d9cb1dc128c$export$c74125a8e3af6bb2 } from './index-39019a9b.js';
|
|
7
|
+
import { b as $5cb92bef7577960e$export$aecb2ddcb55c95be, c as $5cb92bef7577960e$export$be92b6f5f03c0fe9, $ as $f1701beae083dbae$export$602eac185826482c } from './index-d0307140.js';
|
|
8
|
+
import { $ as $921a889cee6df7e8$export$99c2b779aa4e8b8b } from './index-db47e95a.js';
|
|
9
|
+
import { $ as $ea1ef594cf570d83$export$439d29a4e110a164 } from './index-6b7b075c.js';
|
|
8
10
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
9
11
|
import { B as BtIconCrossAlt2Px } from './BtIconCrossAlt2Px.esm-7165ab1a.js';
|
|
10
12
|
import { B as BtIconNotification, a as BtIconAlertTriangle, b as BtIconTick } from './BtIconTick.esm-e265098f.js';
|
|
11
13
|
import { B as BtIconAlert } from './BtIconAlert.esm-a4608d47.js';
|
|
12
14
|
import { I as Icon } from './Icon-abd0d990.js';
|
|
13
15
|
|
|
14
|
-
const $ea1ef594cf570d83$export$439d29a4e110a164 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
15
|
-
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({}, props, {
|
|
16
|
-
ref: forwardedRef,
|
|
17
|
-
style: {
|
|
18
|
-
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
19
|
-
position: 'absolute',
|
|
20
|
-
border: 0,
|
|
21
|
-
width: 1,
|
|
22
|
-
height: 1,
|
|
23
|
-
padding: 0,
|
|
24
|
-
margin: -1,
|
|
25
|
-
overflow: 'hidden',
|
|
26
|
-
clip: 'rect(0, 0, 0, 0)',
|
|
27
|
-
whiteSpace: 'nowrap',
|
|
28
|
-
wordWrap: 'normal',
|
|
29
|
-
...props.style
|
|
30
|
-
}
|
|
31
|
-
}));
|
|
32
|
-
});
|
|
33
|
-
|
|
34
16
|
/* -------------------------------------------------------------------------------------------------
|
|
35
17
|
* ToastProvider
|
|
36
18
|
* -----------------------------------------------------------------------------------------------*/ const $054eb8030ebde76e$var$PROVIDER_NAME = 'ToastProvider';
|
|
@@ -6,7 +6,7 @@ import { S as Surface } from './Surface-0ca6817d.js';
|
|
|
6
6
|
* Use `UniversalHeader` to display a group-level page header.
|
|
7
7
|
*/
|
|
8
8
|
var UniversalHeader = function (_a) {
|
|
9
|
-
var children = _a.children, props = __rest(_a, ["children"]);
|
|
9
|
+
var children = _a.children, ContentSlot = _a.ContentSlot, props = __rest(_a, ["children", "ContentSlot"]);
|
|
10
10
|
useEffect(function () {
|
|
11
11
|
React__default.Children.map(children, function (item) {
|
|
12
12
|
if (item && item.type !== UniversalHeaderItem) {
|
|
@@ -16,7 +16,9 @@ var UniversalHeader = function (_a) {
|
|
|
16
16
|
}, [children]);
|
|
17
17
|
return (React__default.createElement("nav", __assign({ className: "arc-UniversalHeader" }, filterDataAttrs(props)),
|
|
18
18
|
React__default.createElement(Surface, { background: "light" },
|
|
19
|
-
React__default.createElement("ul", { className: "arc-UniversalHeader-items" },
|
|
19
|
+
React__default.createElement("ul", { className: "arc-UniversalHeader-items" },
|
|
20
|
+
children,
|
|
21
|
+
ContentSlot && (React__default.createElement("li", { className: "arc-UniversalHeader-contentSlot" }, ContentSlot))))));
|
|
20
22
|
};
|
|
21
23
|
var UniversalHeaderItem = function (_a) {
|
|
22
24
|
var children = _a.children, href = _a.href, props = __rest(_a, ["children", "href"]);
|