@arbeidstilsynet/design-react 0.12.4 → 0.12.6
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/index.js +56 -86
- package/dist/index.js.map +1 -1
- package/dist/src/components/filepicker/filepicker.d.ts +1 -1
- package/dist/src/components/filepicker/filepickerContext.d.ts +1 -1
- package/dist/src/components/filepicker/filepickerDropzone.d.ts +1 -1
- package/dist/src/components/filepicker/filepickerErrors.d.ts +1 -1
- package/dist/src/components/filepicker/filepickerFiles.d.ts +3 -2
- package/dist/src/components/header/header.d.ts +1 -1
- package/dist/src/components/header/headerContext.d.ts +1 -1
- package/dist/src/components/header/headerIllustration.d.ts +1 -1
- package/dist/src/components/header/headerLogo.d.ts +1 -1
- package/dist/src/components/header/headerMenu.d.ts +1 -1
- package/dist/src/components/header/headerMenuRow.d.ts +3 -3
- package/dist/src/components/header/headerNavbar.d.ts +1 -1
- package/dist/src/components/header/headerTitle.d.ts +1 -1
- package/dist/src/components/header/stories-helpers/headerStoriesIllustration.d.ts +1 -1
- package/dist/src/components/header/stories-helpers/headerStoriesTitle.d.ts +1 -1
- package/dist/src/components/lightdarkimage/index.d.ts +1 -1
- package/dist/src/components/logo/logoblack.d.ts +1 -1
- package/dist/src/components/logo/logogreen.d.ts +1 -1
- package/dist/src/components/logo/logowhite.d.ts +1 -1
- package/dist/src/components/steps/steps.d.ts +1 -1
- package/dist/src/components/steps/stepsStep.d.ts +1 -1
- package/dist/src/components/steps/stepsStepDescription.d.ts +1 -1
- package/dist/src/components/steps/stepsStepDetails.d.ts +1 -1
- package/dist/src/components/steps/stepsStepMark.d.ts +1 -1
- package/dist/src/components/steps/stepsStepTitle.d.ts +1 -1
- package/dist/src/docs-components/CssAttributes.d.ts +7 -0
- package/dist/src/docs-components/CssVariables.d.ts +5 -1
- package/dist/src/docs-components/DoDont.d.ts +15 -0
- package/package.json +18 -18
package/dist/index.js
CHANGED
|
@@ -5,14 +5,13 @@ import { ChevronDownIcon, ChevronUpIcon, CloudUpIcon, MenuHamburgerIcon, TrashIc
|
|
|
5
5
|
import { useDropzone } from "react-dropzone";
|
|
6
6
|
import { Alert, Avatar, Badge, BadgePosition, Breadcrumbs, BreadcrumbsItem, BreadcrumbsLink, BreadcrumbsList, Button, Card, CardBlock, Checkbox, Chip, ChipButton, ChipCheckbox, ChipRadio, ChipRemovable, Combobox, ComboboxEmpty, ComboboxOption, Details, DetailsContent, DetailsSummary, Dialog, DialogBlock, DialogTrigger, DialogTriggerContext, Divider, Dropdown, DropdownButton, DropdownHeading, DropdownItem, DropdownList, DropdownTrigger, DropdownTriggerContext, EXPERIMENTAL_AvatarStack, EXPERIMENTAL_Suggestion, EXPERIMENTAL_SuggestionClear, EXPERIMENTAL_SuggestionEmpty, EXPERIMENTAL_SuggestionInput, EXPERIMENTAL_SuggestionList, EXPERIMENTAL_SuggestionOption, EXPERIMENTAL_SuggestionToggle, ErrorSummary, ErrorSummaryHeading, ErrorSummaryItem, ErrorSummaryLink, ErrorSummaryList, Field, FieldAffix, FieldAffixes, FieldCounter, FieldDescription, Fieldset, FieldsetDescription, FieldsetLegend, Heading, Input, Label, Link, List, ListItem, ListOrdered, ListUnordered, Pagination, PaginationButton, PaginationItem, PaginationList, Paragraph, Popover, PopoverTrigger, PopoverTriggerContext, Radio, RovingFocusItem, RovingFocusRoot, Search, SearchButton, SearchClear, SearchInput, Select, SelectOptgroup, SelectOption, Skeleton, SkipLink, Spinner, Switch, Table, TableBody, TableCell, TableFoot, TableHead, TableHeaderCell, TableRow, Tabs, TabsList, TabsPanel, TabsTab, Tag, Textarea, Textfield, ToggleGroup, ToggleGroupItem, Tooltip, ValidationMessage, omit, useCheckboxGroup, useDebounceCallback, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useRadioGroup, useSynchronizedAnimation } from "@digdir/designsystemet-react";
|
|
7
7
|
import { Slot } from "@radix-ui/react-slot";
|
|
8
|
-
import clsx$
|
|
9
|
-
|
|
10
|
-
function clsx
|
|
8
|
+
import clsx$2, { clsx as clsx$1 } from "clsx";
|
|
9
|
+
// ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/lite.mjs
|
|
10
|
+
function clsx() {
|
|
11
11
|
for (var t, r = 0, e = "", n = arguments.length; r < n; r++) (t = arguments[r]) && "string" == typeof t && (e += (e && " ") + t);
|
|
12
12
|
return e;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
//#region src/components/filepicker/filepickerContext.tsx
|
|
14
|
+
// src/components/filepicker/filepickerContext.tsx
|
|
16
15
|
var FilePickerContext = createContext({
|
|
17
16
|
files: [],
|
|
18
17
|
errors: null,
|
|
@@ -23,12 +22,11 @@ var FilePickerContext = createContext({
|
|
|
23
22
|
throw new TypeError("FilePickerContext is missing");
|
|
24
23
|
}
|
|
25
24
|
});
|
|
26
|
-
|
|
27
|
-
//#region src/components/filepicker/filepicker.tsx
|
|
25
|
+
// src/components/filepicker/filepicker.tsx
|
|
28
26
|
function FilePicker$1({ ref, className, children, disabled = false, isWaiting = false, files, errors, onAdd, onRemove, ...rest }) {
|
|
29
27
|
return /* @__PURE__ */ jsx("div", {
|
|
30
28
|
ref,
|
|
31
|
-
className: clsx
|
|
29
|
+
className: clsx("at-filepicker", className),
|
|
32
30
|
"data-disabled": disabled,
|
|
33
31
|
...rest,
|
|
34
32
|
children: /* @__PURE__ */ jsx(FilePickerContext, {
|
|
@@ -44,8 +42,7 @@ function FilePicker$1({ ref, className, children, disabled = false, isWaiting =
|
|
|
44
42
|
})
|
|
45
43
|
});
|
|
46
44
|
}
|
|
47
|
-
|
|
48
|
-
//#region src/components/filepicker/filepickerDropzone.tsx
|
|
45
|
+
// src/components/filepicker/filepickerDropzone.tsx
|
|
49
46
|
var defaultDropzoneLabelText = [
|
|
50
47
|
"Dra og slipp eller",
|
|
51
48
|
"Last opp fil",
|
|
@@ -95,7 +92,7 @@ function FilePickerDropzone({ className, label, defaultLabelText = defaultDropzo
|
|
|
95
92
|
...getRootProps({
|
|
96
93
|
role: "group",
|
|
97
94
|
"aria-disabled": isDisabled || void 0,
|
|
98
|
-
className: clsx
|
|
95
|
+
className: clsx("at-filepicker-dropzone-wrapper", className),
|
|
99
96
|
...rest
|
|
100
97
|
}),
|
|
101
98
|
children: [/* @__PURE__ */ jsx("input", {
|
|
@@ -108,7 +105,7 @@ function FilePickerDropzone({ className, label, defaultLabelText = defaultDropzo
|
|
|
108
105
|
"aria-label": "Processing files",
|
|
109
106
|
"data-size": "lg"
|
|
110
107
|
}),
|
|
111
|
-
className: clsx
|
|
108
|
+
className: clsx("at-filepicker-dropzone", isDragActive && "is-drag", errors && errors.length > 0 && "has-error"),
|
|
112
109
|
onClick: () => {
|
|
113
110
|
if (!isDisabled) open();
|
|
114
111
|
},
|
|
@@ -116,8 +113,7 @@ function FilePickerDropzone({ className, label, defaultLabelText = defaultDropzo
|
|
|
116
113
|
})]
|
|
117
114
|
});
|
|
118
115
|
}
|
|
119
|
-
|
|
120
|
-
//#region src/components/filepicker/filepickerErrors.tsx
|
|
116
|
+
// src/components/filepicker/filepickerErrors.tsx
|
|
121
117
|
/**
|
|
122
118
|
* Displays errors passed to the parent `FilePicker` component.
|
|
123
119
|
*/
|
|
@@ -125,13 +121,12 @@ function FilePickerErrors({ className, ...rest }) {
|
|
|
125
121
|
const { errors } = use(FilePickerContext);
|
|
126
122
|
if (!errors?.length) return null;
|
|
127
123
|
return /* @__PURE__ */ jsx("output", {
|
|
128
|
-
className: clsx
|
|
124
|
+
className: clsx("at-filepicker-errors", className),
|
|
129
125
|
...rest,
|
|
130
126
|
children: errors.map((error, index) => /* @__PURE__ */ jsx(ValidationMessage, { children: error }, index))
|
|
131
127
|
});
|
|
132
128
|
}
|
|
133
|
-
|
|
134
|
-
//#region src/components/filepicker/utils.ts
|
|
129
|
+
// src/components/filepicker/utils.ts
|
|
135
130
|
function formatFileSize(bytes) {
|
|
136
131
|
if (bytes === 0) return "0 Bytes";
|
|
137
132
|
const k = 1024;
|
|
@@ -144,8 +139,7 @@ function formatFileSize(bytes) {
|
|
|
144
139
|
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
145
140
|
return Number.parseFloat((bytes / Math.pow(k, i)).toFixed(1)) + " " + sizes[i];
|
|
146
141
|
}
|
|
147
|
-
|
|
148
|
-
//#region src/components/filepicker/filepickerFiles.tsx
|
|
142
|
+
// src/components/filepicker/filepickerFiles.tsx
|
|
149
143
|
var defaultColumnNames = [
|
|
150
144
|
"Navn",
|
|
151
145
|
"Størrelse",
|
|
@@ -158,7 +152,7 @@ function FilePickerFiles({ className, columnNames = defaultColumnNames, removeBu
|
|
|
158
152
|
const { files, onRemove, disabled } = use(FilePickerContext);
|
|
159
153
|
if (!files?.length) return null;
|
|
160
154
|
return /* @__PURE__ */ jsxs(Table, {
|
|
161
|
-
className: clsx
|
|
155
|
+
className: clsx("at-filepicker-files-table", className),
|
|
162
156
|
...rest,
|
|
163
157
|
children: [/* @__PURE__ */ jsx(Table.Head, { children: /* @__PURE__ */ jsxs(Table.Row, { children: [
|
|
164
158
|
/* @__PURE__ */ jsx(Table.HeaderCell, {
|
|
@@ -203,7 +197,7 @@ function FilePickerFiles({ className, columnNames = defaultColumnNames, removeBu
|
|
|
203
197
|
"data-color": "danger",
|
|
204
198
|
variant: "tertiary",
|
|
205
199
|
disabled,
|
|
206
|
-
"aria-label":
|
|
200
|
+
"aria-label": `${removeButtonLabel} ${file.name}`,
|
|
207
201
|
onClick: () => onRemove(id),
|
|
208
202
|
className: "at-filepicker-files-file__button",
|
|
209
203
|
children: [removeButtonLabel, /* @__PURE__ */ jsx(TrashIcon, { "aria-hidden": true })]
|
|
@@ -213,8 +207,7 @@ function FilePickerFiles({ className, columnNames = defaultColumnNames, removeBu
|
|
|
213
207
|
}) })]
|
|
214
208
|
});
|
|
215
209
|
}
|
|
216
|
-
|
|
217
|
-
//#region src/components/filepicker/index.tsx
|
|
210
|
+
// src/components/filepicker/index.tsx
|
|
218
211
|
/**
|
|
219
212
|
* Controlled component for managing file uploads or processing.
|
|
220
213
|
* You should perform validation in `onAdd`/`onRemove` callbacks and pass a list of errors in props.
|
|
@@ -240,14 +233,12 @@ var FilePicker = Object.assign(FilePicker$1, {
|
|
|
240
233
|
Files: FilePickerFiles,
|
|
241
234
|
Errors: FilePickerErrors
|
|
242
235
|
});
|
|
243
|
-
|
|
244
|
-
//#region src/components/header/headerContext.tsx
|
|
236
|
+
// src/components/header/headerContext.tsx
|
|
245
237
|
var HeaderContext = createContext({
|
|
246
238
|
links: [],
|
|
247
239
|
headerRef: { current: null }
|
|
248
240
|
});
|
|
249
|
-
|
|
250
|
-
//#region src/components/header/header.tsx
|
|
241
|
+
// src/components/header/header.tsx
|
|
251
242
|
var defaultLinks = [];
|
|
252
243
|
function Header$1({ ref, className, children, links = defaultLinks, ...rest }) {
|
|
253
244
|
const internalRef = useRef(null);
|
|
@@ -259,7 +250,7 @@ function Header$1({ ref, className, children, links = defaultLinks, ...rest }) {
|
|
|
259
250
|
},
|
|
260
251
|
children: /* @__PURE__ */ jsx("header", {
|
|
261
252
|
ref: headerRef,
|
|
262
|
-
className: clsx
|
|
253
|
+
className: clsx("at-header", className),
|
|
263
254
|
...rest,
|
|
264
255
|
children: /* @__PURE__ */ jsx("div", {
|
|
265
256
|
className: "at-header__container",
|
|
@@ -268,8 +259,7 @@ function Header$1({ ref, className, children, links = defaultLinks, ...rest }) {
|
|
|
268
259
|
})
|
|
269
260
|
});
|
|
270
261
|
}
|
|
271
|
-
|
|
272
|
-
//#region src/components/header/headerIllustration.tsx
|
|
262
|
+
// src/components/header/headerIllustration.tsx
|
|
273
263
|
/**
|
|
274
264
|
* Decorative illustration shown next to the logo in the header.
|
|
275
265
|
* **Hidden on mobile viewports** to save space.
|
|
@@ -286,13 +276,12 @@ function Header$1({ ref, className, children, links = defaultLinks, ...rest }) {
|
|
|
286
276
|
*/
|
|
287
277
|
function HeaderIllustration({ className, children, ...rest }) {
|
|
288
278
|
return /* @__PURE__ */ jsx("div", {
|
|
289
|
-
className: clsx
|
|
279
|
+
className: clsx("at-header__illustration", className),
|
|
290
280
|
...rest,
|
|
291
281
|
children
|
|
292
282
|
});
|
|
293
283
|
}
|
|
294
|
-
|
|
295
|
-
//#region src/components/header/headerLogo.tsx
|
|
284
|
+
// src/components/header/headerLogo.tsx
|
|
296
285
|
/**
|
|
297
286
|
* Main logo/app name in the header. Always visible on all viewport sizes.
|
|
298
287
|
*
|
|
@@ -310,16 +299,14 @@ function HeaderIllustration({ className, children, ...rest }) {
|
|
|
310
299
|
*/
|
|
311
300
|
function HeaderLogo({ className, children, ...rest }) {
|
|
312
301
|
return /* @__PURE__ */ jsx("div", {
|
|
313
|
-
className: clsx
|
|
302
|
+
className: clsx("at-header__logo", className),
|
|
314
303
|
...rest,
|
|
315
304
|
children
|
|
316
305
|
});
|
|
317
306
|
}
|
|
318
|
-
|
|
319
|
-
//#region src/components/hooks/useIsomorphicLayoutEffect.ts
|
|
307
|
+
// src/components/hooks/useIsomorphicLayoutEffect.ts
|
|
320
308
|
var useIsomorphicLayoutEffect$1 = typeof window !== "undefined" ? useLayoutEffect : useEffect;
|
|
321
|
-
|
|
322
|
-
//#region src/components/hooks/useMediaQuery.ts
|
|
309
|
+
// src/components/hooks/useMediaQuery.ts
|
|
323
310
|
var IS_SERVER = globalThis.window === void 0;
|
|
324
311
|
function useMediaQuery$1(query, { defaultValue = false, initializeWithValue = true } = {}) {
|
|
325
312
|
const getMatches = (q) => {
|
|
@@ -345,8 +332,7 @@ function useMediaQuery$1(query, { defaultValue = false, initializeWithValue = tr
|
|
|
345
332
|
}, [query]);
|
|
346
333
|
return matches;
|
|
347
334
|
}
|
|
348
|
-
|
|
349
|
-
//#region src/components/header/headerMenu.tsx
|
|
335
|
+
// src/components/header/headerMenu.tsx
|
|
350
336
|
/**
|
|
351
337
|
* Dropdown menu for the header with user controls and navigation (on mobile).
|
|
352
338
|
*
|
|
@@ -413,7 +399,7 @@ function HeaderMenu({ className, children, triggerContent, mobileMenuText = "Men
|
|
|
413
399
|
};
|
|
414
400
|
}, [open, headerRef]);
|
|
415
401
|
return /* @__PURE__ */ jsxs("div", {
|
|
416
|
-
className: clsx
|
|
402
|
+
className: clsx("at-header__right", className),
|
|
417
403
|
...rest,
|
|
418
404
|
children: [/* @__PURE__ */ jsxs(Dropdown.TriggerContext, { children: [/* @__PURE__ */ jsx(Dropdown.Trigger, {
|
|
419
405
|
variant: isMobile ? "primary" : "tertiary",
|
|
@@ -432,7 +418,7 @@ function HeaderMenu({ className, children, triggerContent, mobileMenuText = "Men
|
|
|
432
418
|
children: /* @__PURE__ */ jsx("div", {
|
|
433
419
|
className: "at-header__dropdown-controls",
|
|
434
420
|
children: isValidElement(link) ? /* @__PURE__ */ jsx(Slot, {
|
|
435
|
-
className: clsx
|
|
421
|
+
className: clsx("at-header__link", "ds-link"),
|
|
436
422
|
children: link
|
|
437
423
|
}) : link
|
|
438
424
|
})
|
|
@@ -468,32 +454,30 @@ function HeaderMenu({ className, children, triggerContent, mobileMenuText = "Men
|
|
|
468
454
|
}) : null]
|
|
469
455
|
});
|
|
470
456
|
}
|
|
471
|
-
|
|
472
|
-
//#region src/components/header/headerMenuRow.tsx
|
|
457
|
+
// src/components/header/headerMenuRow.tsx
|
|
473
458
|
/**
|
|
474
459
|
* Menu row that serves as a wrapper around a link in the header menu.
|
|
475
460
|
* Supports an icon, badge and custom styling.
|
|
476
461
|
*/
|
|
477
462
|
function HeaderMenuRow({ className, padded, ...rest }) {
|
|
478
463
|
return /* @__PURE__ */ jsx(Slot, {
|
|
479
|
-
className: clsx$
|
|
464
|
+
className: clsx$2("at-header__menu-row", padded && "padded", className),
|
|
480
465
|
...rest
|
|
481
466
|
});
|
|
482
467
|
}
|
|
483
468
|
function HeaderMenuIcon({ className, ...rest }) {
|
|
484
469
|
return /* @__PURE__ */ jsx("div", {
|
|
485
|
-
className: clsx$
|
|
470
|
+
className: clsx$2("at-header__menu-icon", className),
|
|
486
471
|
...rest
|
|
487
472
|
});
|
|
488
473
|
}
|
|
489
474
|
function HeaderMenuBadge({ className, color = "info", ...rest }) {
|
|
490
475
|
return /* @__PURE__ */ jsx("div", {
|
|
491
|
-
className: clsx$
|
|
476
|
+
className: clsx$2(`at-header__menu-badge-${color}`, className),
|
|
492
477
|
...rest
|
|
493
478
|
});
|
|
494
479
|
}
|
|
495
|
-
|
|
496
|
-
//#region src/components/header/headerNavbar.tsx
|
|
480
|
+
// src/components/header/headerNavbar.tsx
|
|
497
481
|
/**
|
|
498
482
|
* Navigation bar showing links in the header.
|
|
499
483
|
* **Hidden on mobile viewports** - links are moved to `Header.Menu` instead.
|
|
@@ -513,19 +497,18 @@ function HeaderMenuBadge({ className, color = "info", ...rest }) {
|
|
|
513
497
|
function HeaderNavbar({ className, ...rest }) {
|
|
514
498
|
const { links } = use(HeaderContext);
|
|
515
499
|
return /* @__PURE__ */ jsx("nav", {
|
|
516
|
-
className: clsx
|
|
500
|
+
className: clsx("at-header__center", className),
|
|
517
501
|
...rest,
|
|
518
502
|
children: links?.map((link, idx) => {
|
|
519
503
|
if (isValidElement(link)) return /* @__PURE__ */ jsx(Slot, {
|
|
520
|
-
className: clsx
|
|
504
|
+
className: clsx("at-header__link", "ds-link"),
|
|
521
505
|
children: link
|
|
522
506
|
}, link.key ?? idx);
|
|
523
507
|
return link;
|
|
524
508
|
})
|
|
525
509
|
});
|
|
526
510
|
}
|
|
527
|
-
|
|
528
|
-
//#region src/components/header/headerTitle.tsx
|
|
511
|
+
// src/components/header/headerTitle.tsx
|
|
529
512
|
/**
|
|
530
513
|
* Container for the header's branding area containing illustration and logo.
|
|
531
514
|
* Typically placed as the first child of `Header`.
|
|
@@ -543,13 +526,12 @@ function HeaderNavbar({ className, ...rest }) {
|
|
|
543
526
|
*/
|
|
544
527
|
function HeaderTitle({ className, children, ...rest }) {
|
|
545
528
|
return /* @__PURE__ */ jsx("div", {
|
|
546
|
-
className: clsx
|
|
529
|
+
className: clsx("at-header__left", className),
|
|
547
530
|
...rest,
|
|
548
531
|
children
|
|
549
532
|
});
|
|
550
533
|
}
|
|
551
|
-
|
|
552
|
-
//#region src/components/header/index.tsx
|
|
534
|
+
// src/components/header/index.tsx
|
|
553
535
|
/**
|
|
554
536
|
* Compound component for building responsive application headers.
|
|
555
537
|
*
|
|
@@ -636,8 +618,7 @@ var Header = Object.assign(Header$1, {
|
|
|
636
618
|
MenuIcon: HeaderMenuIcon,
|
|
637
619
|
MenuBadge: HeaderMenuBadge
|
|
638
620
|
});
|
|
639
|
-
|
|
640
|
-
//#region src/components/lightdarkimage/index.tsx
|
|
621
|
+
// src/components/lightdarkimage/index.tsx
|
|
641
622
|
/**
|
|
642
623
|
* Displays an image with automatic switching between
|
|
643
624
|
* light and dark variants based on the current color scheme.
|
|
@@ -649,7 +630,7 @@ var Header = Object.assign(Header$1, {
|
|
|
649
630
|
*/
|
|
650
631
|
function LightDarkImage({ className, light, dark, ...rest }) {
|
|
651
632
|
return /* @__PURE__ */ jsxs("span", {
|
|
652
|
-
className: clsx$
|
|
633
|
+
className: clsx$2("at-lightdarkimage", className),
|
|
653
634
|
...rest,
|
|
654
635
|
children: [/* @__PURE__ */ jsx("span", {
|
|
655
636
|
className: "at-lightdarkimage-light",
|
|
@@ -660,8 +641,7 @@ function LightDarkImage({ className, light, dark, ...rest }) {
|
|
|
660
641
|
})]
|
|
661
642
|
});
|
|
662
643
|
}
|
|
663
|
-
|
|
664
|
-
//#region src/components/logo/logoblack.tsx
|
|
644
|
+
// src/components/logo/logoblack.tsx
|
|
665
645
|
var LogoBlack = ({ width = "100%" }) => /* @__PURE__ */ jsxs("svg", {
|
|
666
646
|
width,
|
|
667
647
|
fill: "none",
|
|
@@ -742,8 +722,7 @@ var LogoBlack = ({ width = "100%" }) => /* @__PURE__ */ jsxs("svg", {
|
|
|
742
722
|
})
|
|
743
723
|
]
|
|
744
724
|
});
|
|
745
|
-
|
|
746
|
-
//#region src/components/logo/logogreen.tsx
|
|
725
|
+
// src/components/logo/logogreen.tsx
|
|
747
726
|
var LogoGreen = ({ width = "100%" }) => /* @__PURE__ */ jsxs("svg", {
|
|
748
727
|
width,
|
|
749
728
|
fill: "none",
|
|
@@ -828,8 +807,7 @@ var LogoGreen = ({ width = "100%" }) => /* @__PURE__ */ jsxs("svg", {
|
|
|
828
807
|
})
|
|
829
808
|
]
|
|
830
809
|
});
|
|
831
|
-
|
|
832
|
-
//#region src/components/logo/logowhite.tsx
|
|
810
|
+
// src/components/logo/logowhite.tsx
|
|
833
811
|
var LogoWhite = ({ width = "100%" }) => /* @__PURE__ */ jsxs("svg", {
|
|
834
812
|
width,
|
|
835
813
|
fill: "none",
|
|
@@ -910,40 +888,35 @@ var LogoWhite = ({ width = "100%" }) => /* @__PURE__ */ jsxs("svg", {
|
|
|
910
888
|
})
|
|
911
889
|
]
|
|
912
890
|
});
|
|
913
|
-
|
|
914
|
-
//#region src/components/steps/steps.tsx
|
|
891
|
+
// src/components/steps/steps.tsx
|
|
915
892
|
function Steps$1({ className, ...rest }) {
|
|
916
893
|
return /* @__PURE__ */ jsx("ol", {
|
|
917
|
-
className: clsx
|
|
894
|
+
className: clsx("at-steps", className),
|
|
918
895
|
...rest
|
|
919
896
|
});
|
|
920
897
|
}
|
|
921
|
-
|
|
922
|
-
//#region src/components/steps/stepsStep.tsx
|
|
898
|
+
// src/components/steps/stepsStep.tsx
|
|
923
899
|
function StepsStep({ className, ...rest }) {
|
|
924
900
|
return /* @__PURE__ */ jsx("li", {
|
|
925
|
-
className: clsx("at-steps__step", className),
|
|
901
|
+
className: clsx$1("at-steps__step", className),
|
|
926
902
|
...rest
|
|
927
903
|
});
|
|
928
904
|
}
|
|
929
|
-
|
|
930
|
-
//#region src/components/steps/stepsStepDescription.tsx
|
|
905
|
+
// src/components/steps/stepsStepDescription.tsx
|
|
931
906
|
function StepsStepDescription({ className, ...rest }) {
|
|
932
907
|
return /* @__PURE__ */ jsx("small", {
|
|
933
|
-
className: clsx("at-steps__description", className),
|
|
908
|
+
className: clsx$1("at-steps__description", className),
|
|
934
909
|
...rest
|
|
935
910
|
});
|
|
936
911
|
}
|
|
937
|
-
|
|
938
|
-
//#region src/components/steps/stepsStepDetails.tsx
|
|
912
|
+
// src/components/steps/stepsStepDetails.tsx
|
|
939
913
|
function StepsStepDetails({ className, ...rest }) {
|
|
940
914
|
return /* @__PURE__ */ jsx("small", {
|
|
941
|
-
className: clsx("at-steps__details", className),
|
|
915
|
+
className: clsx$1("at-steps__details", className),
|
|
942
916
|
...rest
|
|
943
917
|
});
|
|
944
918
|
}
|
|
945
|
-
|
|
946
|
-
//#region src/components/steps/stepsStepMark.tsx
|
|
919
|
+
// src/components/steps/stepsStepMark.tsx
|
|
947
920
|
/**
|
|
948
921
|
* Renders the visual indicator (dot) for a step.
|
|
949
922
|
*
|
|
@@ -958,20 +931,18 @@ function StepsStepDetails({ className, ...rest }) {
|
|
|
958
931
|
*/
|
|
959
932
|
function StepsStepMark({ className, ...rest }) {
|
|
960
933
|
return /* @__PURE__ */ jsx("mark", {
|
|
961
|
-
className: clsx$
|
|
934
|
+
className: clsx$2("at-steps__step-mark", className),
|
|
962
935
|
...rest
|
|
963
936
|
});
|
|
964
937
|
}
|
|
965
|
-
|
|
966
|
-
//#region src/components/steps/stepsStepTitle.tsx
|
|
938
|
+
// src/components/steps/stepsStepTitle.tsx
|
|
967
939
|
function StepsStepTitle({ className, ...rest }) {
|
|
968
940
|
return /* @__PURE__ */ jsx("strong", {
|
|
969
|
-
className: clsx("at-steps__title", className),
|
|
941
|
+
className: clsx$1("at-steps__title", className),
|
|
970
942
|
...rest
|
|
971
943
|
});
|
|
972
944
|
}
|
|
973
|
-
|
|
974
|
-
//#region src/components/steps/index.tsx
|
|
945
|
+
// src/components/steps/index.tsx
|
|
975
946
|
/**
|
|
976
947
|
* Compound component for displaying a step-by-step progress indicator.
|
|
977
948
|
*
|
|
@@ -1019,7 +990,6 @@ var Steps = Object.assign(Steps$1, {
|
|
|
1019
990
|
StepMark: StepsStepMark,
|
|
1020
991
|
StepTitle: StepsStepTitle
|
|
1021
992
|
});
|
|
1022
|
-
//#endregion
|
|
1023
993
|
export { Alert, Avatar, Badge, BadgePosition, Breadcrumbs, BreadcrumbsItem, BreadcrumbsLink, BreadcrumbsList, Button, Card, CardBlock, Checkbox, Chip, ChipButton, ChipCheckbox, ChipRadio, ChipRemovable, Combobox, ComboboxEmpty, ComboboxOption, Details, DetailsContent, DetailsSummary, Dialog, DialogBlock, DialogTrigger, DialogTriggerContext, Divider, Dropdown, DropdownButton, DropdownHeading, DropdownItem, DropdownList, DropdownTrigger, DropdownTriggerContext, EXPERIMENTAL_AvatarStack, EXPERIMENTAL_Suggestion, EXPERIMENTAL_SuggestionClear, EXPERIMENTAL_SuggestionEmpty, EXPERIMENTAL_SuggestionInput, EXPERIMENTAL_SuggestionList, EXPERIMENTAL_SuggestionOption, EXPERIMENTAL_SuggestionToggle, ErrorSummary, ErrorSummaryHeading, ErrorSummaryItem, ErrorSummaryLink, ErrorSummaryList, Field, FieldAffix, FieldAffixes, FieldCounter, FieldDescription, Fieldset, FieldsetDescription, FieldsetLegend, FilePicker, FilePickerContext, FilePickerDropzone, FilePickerErrors, FilePickerFiles, Header, HeaderContext, HeaderIllustration, HeaderLogo, HeaderMenu, HeaderMenuBadge, HeaderMenuIcon, HeaderMenuRow, HeaderNavbar, HeaderTitle, Heading, Input, Label, LightDarkImage, Link, List, ListItem, ListOrdered, ListUnordered, LogoBlack, LogoGreen, LogoWhite, Pagination, PaginationButton, PaginationItem, PaginationList, Paragraph, Popover, PopoverTrigger, PopoverTriggerContext, Radio, RovingFocusItem, RovingFocusRoot, Search, SearchButton, SearchClear, SearchInput, Select, SelectOptgroup, SelectOption, Skeleton, SkipLink, Spinner, Steps, StepsStep, StepsStepDescription, StepsStepDetails, StepsStepMark, StepsStepTitle, Switch, Table, TableBody, TableCell, TableFoot, TableHead, TableHeaderCell, TableRow, Tabs, TabsList, TabsPanel, TabsTab, Tag, Textarea, Textfield, ToggleGroup, ToggleGroupItem, Tooltip, ValidationMessage, omit, useCheckboxGroup, useDebounceCallback, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useRadioGroup, useSynchronizedAnimation };
|
|
1024
994
|
|
|
1025
995
|
//# sourceMappingURL=index.js.map
|