@amsterdam/design-system-react 3.0.0 → 3.2.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/Accordion/Accordion.js +3 -3
- package/dist/Accordion/AccordionContext.d.ts +1 -2
- package/dist/Accordion/AccordionContext.js +3 -4
- package/dist/Accordion/AccordionSection.js +1 -1
- package/dist/Badge/Badge.d.ts +5 -0
- package/dist/Badge/Badge.js +3 -2
- package/dist/Checkbox/Checkbox.d.ts +5 -4
- package/dist/ErrorMessage/ErrorMessage.js +1 -1
- package/dist/Heading/Heading.d.ts +4 -4
- package/dist/Heading/Heading.js +1 -1
- package/dist/ImageSlider/ImageSlider.d.ts +5 -20
- package/dist/ImageSlider/ImageSlider.js +30 -87
- package/dist/ImageSlider/ImageSliderControl.d.ts +2 -0
- package/dist/ImageSlider/ImageSliderControl.js +5 -0
- package/dist/ImageSlider/ImageSliderSlide.d.ts +14 -0
- package/dist/ImageSlider/ImageSliderSlide.js +19 -0
- package/dist/ImageSlider/ImageSliderThumbnails.d.ts +5 -6
- package/dist/ImageSlider/ImageSliderThumbnails.js +7 -12
- package/dist/ImageSlider/index.d.ts +0 -1
- package/dist/ImageSlider/utils/debounce.d.ts +1 -0
- package/dist/ImageSlider/utils/debounce.js +8 -0
- package/dist/ImageSlider/utils/index.d.ts +4 -0
- package/dist/ImageSlider/utils/index.js +4 -0
- package/dist/ImageSlider/utils/scrollToCurrentSlideOnResize.d.ts +7 -0
- package/dist/ImageSlider/utils/scrollToCurrentSlideOnResize.js +11 -0
- package/dist/ImageSlider/utils/scrollToSlide.d.ts +2 -0
- package/dist/ImageSlider/utils/scrollToSlide.js +9 -0
- package/dist/ImageSlider/utils/setCurrentSlideIdToVisibleSlide.d.ts +8 -0
- package/dist/ImageSlider/utils/setCurrentSlideIdToVisibleSlide.js +10 -0
- package/dist/Logo/Logo.d.ts +1 -1
- package/dist/Logo/Logo.js +6 -1
- package/dist/Logo/brand/LogoAmsterdamEnglish.d.ts +7 -0
- package/dist/Logo/brand/LogoAmsterdamEnglish.js +6 -0
- package/dist/Logo/brand/index.d.ts +1 -0
- package/dist/Logo/brand/index.js +1 -0
- package/dist/Menu/Menu.js +3 -2
- package/dist/PageHeader/LogoLinkContent.d.ts +13 -0
- package/dist/PageHeader/LogoLinkContent.js +8 -0
- package/dist/PageHeader/PageHeader.d.ts +16 -1
- package/dist/PageHeader/PageHeader.js +16 -12
- package/dist/ProgressList/AccessibleStatusText.d.ts +10 -0
- package/dist/ProgressList/AccessibleStatusText.js +13 -0
- package/dist/ProgressList/ProgressList.d.ts +63 -0
- package/dist/ProgressList/ProgressList.js +23 -0
- package/dist/ProgressList/ProgressListContext.d.ts +12 -0
- package/dist/ProgressList/ProgressListContext.js +11 -0
- package/dist/ProgressList/ProgressListStep.d.ts +23 -0
- package/dist/ProgressList/ProgressListStep.js +13 -0
- package/dist/ProgressList/ProgressListSubstep.d.ts +16 -0
- package/dist/ProgressList/ProgressListSubstep.js +8 -0
- package/dist/ProgressList/ProgressListSubsteps.d.ts +9 -0
- package/dist/ProgressList/ProgressListSubsteps.js +5 -0
- package/dist/ProgressList/index.d.ts +9 -0
- package/dist/{PageHeader/matchMedia.mock.d.ts → ProgressList/index.js} +1 -0
- package/dist/Radio/Radio.d.ts +5 -4
- package/dist/SearchField/SearchFieldInput.js +3 -3
- package/dist/common/useViewportHasMinWidth.d.ts +22 -0
- package/dist/common/{useIsAfterBreakpoint.js → useViewportHasMinWidth.js} +13 -2
- package/dist/index.cjs.js +2122 -2389
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +144 -60
- package/dist/index.esm.js +2124 -2392
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +17 -19
- package/dist/ImageSlider/ImageSliderContext.d.ts +0 -13
- package/dist/ImageSlider/ImageSliderContext.js +0 -14
- package/dist/ImageSlider/ImageSliderControls.d.ts +0 -17
- package/dist/ImageSlider/ImageSliderControls.js +0 -13
- package/dist/ImageSlider/ImageSliderItem.d.ts +0 -15
- package/dist/ImageSlider/ImageSliderItem.js +0 -11
- package/dist/ImageSlider/ImageSliderScroller.d.ts +0 -9
- package/dist/ImageSlider/ImageSliderScroller.js +0 -5
- package/dist/PageHeader/matchMedia.mock.js +0 -19
- package/dist/common/useIsAfterBreakpoint.d.ts +0 -11
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { PropsWithChildren, HTMLAttributes, BlockquoteHTMLAttributes, AnchorHTMLAttributes,
|
|
2
|
+
import { PropsWithChildren, HTMLAttributes, ReactNode, BlockquoteHTMLAttributes, AnchorHTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes, DialogHTMLAttributes, MouseEvent, ImgHTMLAttributes, LabelHTMLAttributes, ComponentType, SVGProps, OlHTMLAttributes, LiHTMLAttributes, SelectHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, TableHTMLAttributes, TextareaHTMLAttributes } from 'react';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
5
|
-
type
|
|
4
|
+
declare const headingLevels: readonly [1, 2, 3, 4];
|
|
5
|
+
type HeadingLevel = (typeof headingLevels)[number];
|
|
6
6
|
type HeadingProps = {
|
|
7
7
|
/** Changes the text colour for readability on a dark background. */
|
|
8
8
|
color?: 'inverse';
|
|
9
9
|
/** The hierarchical level within the document. */
|
|
10
|
-
level:
|
|
10
|
+
level: HeadingLevel;
|
|
11
11
|
/**
|
|
12
12
|
* Uses larger or smaller text without changing its position in the heading hierarchy.
|
|
13
13
|
* The value ‘level-6’ is deprecated. Use level 5 instead.
|
|
@@ -21,7 +21,7 @@ declare const Heading: react.ForwardRefExoticComponent<{
|
|
|
21
21
|
/** Changes the text colour for readability on a dark background. */
|
|
22
22
|
color?: "inverse";
|
|
23
23
|
/** The hierarchical level within the document. */
|
|
24
|
-
level:
|
|
24
|
+
level: HeadingLevel;
|
|
25
25
|
/**
|
|
26
26
|
* Uses larger or smaller text without changing its position in the heading hierarchy.
|
|
27
27
|
* The value ‘level-6’ is deprecated. Use level 5 instead.
|
|
@@ -156,11 +156,46 @@ declare const Avatar: react.ForwardRefExoticComponent<{
|
|
|
156
156
|
label: string;
|
|
157
157
|
} & HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLSpanElement>>;
|
|
158
158
|
|
|
159
|
+
declare const iconSizes: readonly ["small", "large", "heading-0", "heading-1", "heading-2", "heading-3", "heading-4", "heading-5", "heading-6"];
|
|
160
|
+
type IconSize = (typeof iconSizes)[number];
|
|
161
|
+
type IconProps = {
|
|
162
|
+
/** Changes the icon colour for readability on a dark background. */
|
|
163
|
+
color?: 'inverse';
|
|
164
|
+
/**
|
|
165
|
+
* The size of the icon. Choose the size of the corresponding body text or heading.
|
|
166
|
+
* The values ‘heading-0’ and ‘heading-6’ are deprecated.
|
|
167
|
+
*/
|
|
168
|
+
size?: IconSize;
|
|
169
|
+
/** Whether the icon container should be made square. */
|
|
170
|
+
square?: boolean;
|
|
171
|
+
/** The component rendering the icon’s markup. */
|
|
172
|
+
svg: Function | ReactNode;
|
|
173
|
+
} & HTMLAttributes<HTMLSpanElement>;
|
|
174
|
+
/**
|
|
175
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-media-icon--docs Icon docs at Amsterdam Design System}
|
|
176
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/brand-assets-icons--docs Icons overview at Amsterdam Design System}
|
|
177
|
+
*/
|
|
178
|
+
declare const Icon: react.ForwardRefExoticComponent<{
|
|
179
|
+
/** Changes the icon colour for readability on a dark background. */
|
|
180
|
+
color?: "inverse";
|
|
181
|
+
/**
|
|
182
|
+
* The size of the icon. Choose the size of the corresponding body text or heading.
|
|
183
|
+
* The values ‘heading-0’ and ‘heading-6’ are deprecated.
|
|
184
|
+
*/
|
|
185
|
+
size?: IconSize;
|
|
186
|
+
/** Whether the icon container should be made square. */
|
|
187
|
+
square?: boolean;
|
|
188
|
+
/** The component rendering the icon’s markup. */
|
|
189
|
+
svg: Function | ReactNode;
|
|
190
|
+
} & HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLElement>>;
|
|
191
|
+
|
|
159
192
|
declare const badgeColors: readonly ["azure", "lime", "magenta", "orange", "purple", "red", "yellow"];
|
|
160
193
|
type BadgeColor = (typeof badgeColors)[number];
|
|
161
194
|
type BadgeProps = {
|
|
162
195
|
/** The background colour. */
|
|
163
196
|
color?: BadgeColor;
|
|
197
|
+
/** The icon to show before the badge text. */
|
|
198
|
+
icon?: IconProps['svg'];
|
|
164
199
|
/** The text content. */
|
|
165
200
|
label: string | number;
|
|
166
201
|
} & HTMLAttributes<HTMLElement>;
|
|
@@ -170,6 +205,8 @@ type BadgeProps = {
|
|
|
170
205
|
declare const Badge: react.ForwardRefExoticComponent<{
|
|
171
206
|
/** The background colour. */
|
|
172
207
|
color?: BadgeColor;
|
|
208
|
+
/** The icon to show before the badge text. */
|
|
209
|
+
icon?: IconProps["svg"];
|
|
173
210
|
/** The text content. */
|
|
174
211
|
label: string | number;
|
|
175
212
|
} & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>>;
|
|
@@ -299,39 +336,6 @@ declare const Breakout: react.ForwardRefExoticComponent<GridProps & react.RefAtt
|
|
|
299
336
|
Cell: react.ForwardRefExoticComponent<BreakoutCellProps & react.RefAttributes<any>>;
|
|
300
337
|
};
|
|
301
338
|
|
|
302
|
-
declare const iconSizes: readonly ["small", "large", "heading-0", "heading-1", "heading-2", "heading-3", "heading-4", "heading-5", "heading-6"];
|
|
303
|
-
type IconSize = (typeof iconSizes)[number];
|
|
304
|
-
type IconProps = {
|
|
305
|
-
/** Changes the icon colour for readability on a dark background. */
|
|
306
|
-
color?: 'inverse';
|
|
307
|
-
/**
|
|
308
|
-
* The size of the icon. Choose the size of the corresponding body text or heading.
|
|
309
|
-
* The values ‘heading-0’ and ‘heading-6’ are deprecated.
|
|
310
|
-
*/
|
|
311
|
-
size?: IconSize;
|
|
312
|
-
/** Whether the icon container should be made square. */
|
|
313
|
-
square?: boolean;
|
|
314
|
-
/** The component rendering the icon’s markup. */
|
|
315
|
-
svg: Function | ReactNode;
|
|
316
|
-
} & HTMLAttributes<HTMLSpanElement>;
|
|
317
|
-
/**
|
|
318
|
-
* @see {@link https://designsystem.amsterdam/?path=/docs/components-media-icon--docs Icon docs at Amsterdam Design System}
|
|
319
|
-
* @see {@link https://designsystem.amsterdam/?path=/docs/brand-assets-icons--docs Icons overview at Amsterdam Design System}
|
|
320
|
-
*/
|
|
321
|
-
declare const Icon: react.ForwardRefExoticComponent<{
|
|
322
|
-
/** Changes the icon colour for readability on a dark background. */
|
|
323
|
-
color?: "inverse";
|
|
324
|
-
/**
|
|
325
|
-
* The size of the icon. Choose the size of the corresponding body text or heading.
|
|
326
|
-
* The values ‘heading-0’ and ‘heading-6’ are deprecated.
|
|
327
|
-
*/
|
|
328
|
-
size?: IconSize;
|
|
329
|
-
/** Whether the icon container should be made square. */
|
|
330
|
-
square?: boolean;
|
|
331
|
-
/** The component rendering the icon’s markup. */
|
|
332
|
-
svg: Function | ReactNode;
|
|
333
|
-
} & HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLElement>>;
|
|
334
|
-
|
|
335
339
|
type IconBeforeProp = {
|
|
336
340
|
/** Shows the icon before the label. Requires a value for `icon`. Cannot be used together with `iconOnly`. */
|
|
337
341
|
iconBefore?: boolean;
|
|
@@ -441,7 +445,7 @@ type CheckboxProps = {
|
|
|
441
445
|
* An icon to display instead of the default icon.
|
|
442
446
|
* @default CheckboxIcon
|
|
443
447
|
*/
|
|
444
|
-
icon?:
|
|
448
|
+
icon?: IconProps['svg'];
|
|
445
449
|
/** Allows being neither checked nor unchecked. */
|
|
446
450
|
indeterminate?: boolean;
|
|
447
451
|
/** Whether the value fails a validation rule. */
|
|
@@ -455,13 +459,13 @@ declare const Checkbox: react.ForwardRefExoticComponent<{
|
|
|
455
459
|
* An icon to display instead of the default icon.
|
|
456
460
|
* @default CheckboxIcon
|
|
457
461
|
*/
|
|
458
|
-
icon?:
|
|
462
|
+
icon?: IconProps["svg"];
|
|
459
463
|
/** Allows being neither checked nor unchecked. */
|
|
460
464
|
indeterminate?: boolean;
|
|
461
465
|
/** Whether the value fails a validation rule. */
|
|
462
466
|
invalid?: boolean;
|
|
463
467
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
|
|
464
|
-
children?: ReactNode | undefined;
|
|
468
|
+
children?: react.ReactNode | undefined;
|
|
465
469
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
466
470
|
|
|
467
471
|
declare const columnTags: readonly ["article", "div", "section"];
|
|
@@ -762,7 +766,10 @@ declare const Image: react.ForwardRefExoticComponent<{
|
|
|
762
766
|
alt: string;
|
|
763
767
|
} & AspectRatioProps & Omit<ImgHTMLAttributes<HTMLImageElement>, "children"> & react.RefAttributes<HTMLImageElement>>;
|
|
764
768
|
|
|
765
|
-
type ImageSliderImageProps =
|
|
769
|
+
type ImageSliderImageProps = {
|
|
770
|
+
/** An optional caption displayed below the image. */
|
|
771
|
+
caption?: string;
|
|
772
|
+
} & ImageProps;
|
|
766
773
|
type ImageSliderProps = {
|
|
767
774
|
/** Display buttons to navigate to the previous or next image. */
|
|
768
775
|
controls?: boolean;
|
|
@@ -789,18 +796,7 @@ declare const ImageSlider: react.ForwardRefExoticComponent<{
|
|
|
789
796
|
nextLabel?: string;
|
|
790
797
|
/** The label for the ‘previous’ button */
|
|
791
798
|
previousLabel?: string;
|
|
792
|
-
} & HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement
|
|
793
|
-
Item: react.ForwardRefExoticComponent<{
|
|
794
|
-
slideId: number;
|
|
795
|
-
} & HTMLAttributes<HTMLDivElement> & {
|
|
796
|
-
children?: react.ReactNode | undefined;
|
|
797
|
-
} & react.RefAttributes<HTMLDivElement>>;
|
|
798
|
-
};
|
|
799
|
-
|
|
800
|
-
type ImageSliderItemProps = {
|
|
801
|
-
/** The identifier of the item. Must match the key or order of the slides (starting at 0). */
|
|
802
|
-
slideId: number;
|
|
803
|
-
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
799
|
+
} & HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
804
800
|
|
|
805
801
|
type ErrorLink = {
|
|
806
802
|
id: string;
|
|
@@ -935,7 +931,7 @@ type LinkListLinkProps = {
|
|
|
935
931
|
size?: LinkListLinkSize;
|
|
936
932
|
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
937
933
|
|
|
938
|
-
declare const logoBrands: readonly ["amsterdam", "ggd-amsterdam", "museum-weesp", "stadsarchief", "stadsbank-van-lening", "vga-verzekeringen"];
|
|
934
|
+
declare const logoBrands: readonly ["amsterdam", "amsterdam-english", "ggd-amsterdam", "museum-weesp", "stadsarchief", "stadsbank-van-lening", "vga-verzekeringen"];
|
|
939
935
|
type LogoBrand = (typeof logoBrands)[number];
|
|
940
936
|
type LogoProps = {
|
|
941
937
|
/** The name of the brand for which to display the logo, or configuration for a custom logo. */
|
|
@@ -1091,6 +1087,11 @@ type PageFooterSpotlightProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>
|
|
|
1091
1087
|
type PageHeaderProps = {
|
|
1092
1088
|
/** The name of the application. */
|
|
1093
1089
|
brandName?: string;
|
|
1090
|
+
/**
|
|
1091
|
+
* A shorter form of the name of the application.
|
|
1092
|
+
* Provide this only together with a `brandName`.
|
|
1093
|
+
*/
|
|
1094
|
+
brandNameShort?: string;
|
|
1094
1095
|
/** The accessible name of the logo. */
|
|
1095
1096
|
logoAccessibleName?: string;
|
|
1096
1097
|
/** The name of the brand for which to display the logo. */
|
|
@@ -1101,6 +1102,8 @@ type PageHeaderProps = {
|
|
|
1101
1102
|
logoLinkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1102
1103
|
/** The accessible text for the link on the logo. */
|
|
1103
1104
|
logoLinkTitle?: string;
|
|
1105
|
+
/** An icon to display instead of the default icon. */
|
|
1106
|
+
menuButtonIcon?: IconProps['svg'];
|
|
1104
1107
|
/** The visible text for the menu button. */
|
|
1105
1108
|
menuButtonText?: string;
|
|
1106
1109
|
/** The text for screen readers when the button hides the menu. */
|
|
@@ -1120,6 +1123,11 @@ type PageHeaderProps = {
|
|
|
1120
1123
|
declare const PageHeader: react.ForwardRefExoticComponent<{
|
|
1121
1124
|
/** The name of the application. */
|
|
1122
1125
|
brandName?: string;
|
|
1126
|
+
/**
|
|
1127
|
+
* A shorter form of the name of the application.
|
|
1128
|
+
* Provide this only together with a `brandName`.
|
|
1129
|
+
*/
|
|
1130
|
+
brandNameShort?: string;
|
|
1123
1131
|
/** The accessible name of the logo. */
|
|
1124
1132
|
logoAccessibleName?: string;
|
|
1125
1133
|
/** The name of the brand for which to display the logo. */
|
|
@@ -1130,6 +1138,8 @@ declare const PageHeader: react.ForwardRefExoticComponent<{
|
|
|
1130
1138
|
logoLinkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1131
1139
|
/** The accessible text for the link on the logo. */
|
|
1132
1140
|
logoLinkTitle?: string;
|
|
1141
|
+
/** An icon to display instead of the default icon. */
|
|
1142
|
+
menuButtonIcon?: IconProps["svg"];
|
|
1133
1143
|
/** The visible text for the menu button. */
|
|
1134
1144
|
menuButtonText?: string;
|
|
1135
1145
|
/** The text for screen readers when the button hides the menu. */
|
|
@@ -1304,12 +1314,86 @@ declare const PasswordInput: react.ForwardRefExoticComponent<{
|
|
|
1304
1314
|
invalid?: boolean;
|
|
1305
1315
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, "autoCapitalize" | "spellCheck" | "autoCorrect" | "aria-invalid" | "type"> & react.RefAttributes<HTMLInputElement>>;
|
|
1306
1316
|
|
|
1317
|
+
type ProgressListStepProps = {
|
|
1318
|
+
/** Whether the step contains a list of substeps. This is needed to draw the connecting lines correctly. */
|
|
1319
|
+
hasSubsteps?: boolean;
|
|
1320
|
+
/** The heading text for this step. */
|
|
1321
|
+
heading: string;
|
|
1322
|
+
/** The current progress state of the step. */
|
|
1323
|
+
status?: 'current' | 'completed';
|
|
1324
|
+
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
1325
|
+
|
|
1326
|
+
declare const progressListHeadingLevels: (2 | 3 | 4)[];
|
|
1327
|
+
type ProgressListHeadingLevel = (typeof progressListHeadingLevels)[number];
|
|
1328
|
+
type ProgressListProps = {
|
|
1329
|
+
/**
|
|
1330
|
+
* An accessible phrase that screen readers announce before a completed step heading.
|
|
1331
|
+
* @default Klaar
|
|
1332
|
+
*/
|
|
1333
|
+
completedAccessibleText?: string;
|
|
1334
|
+
/**
|
|
1335
|
+
* An accessible phrase that screen readers announce before a current step heading.
|
|
1336
|
+
* @default Bezig
|
|
1337
|
+
*/
|
|
1338
|
+
currentAccessibleText?: string;
|
|
1339
|
+
/**
|
|
1340
|
+
* The hierarchical level of this Progress List’s Headings within the document.
|
|
1341
|
+
* There is no default value; determine the correct level for this instance.
|
|
1342
|
+
*/
|
|
1343
|
+
headingLevel: ProgressListHeadingLevel;
|
|
1344
|
+
} & PropsWithChildren<HTMLAttributes<HTMLOListElement>>;
|
|
1345
|
+
/**
|
|
1346
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-progress-list--docs Progress List docs at Amsterdam Design System}
|
|
1347
|
+
*/
|
|
1348
|
+
declare const ProgressList: react.ForwardRefExoticComponent<{
|
|
1349
|
+
/**
|
|
1350
|
+
* An accessible phrase that screen readers announce before a completed step heading.
|
|
1351
|
+
* @default Klaar
|
|
1352
|
+
*/
|
|
1353
|
+
completedAccessibleText?: string;
|
|
1354
|
+
/**
|
|
1355
|
+
* An accessible phrase that screen readers announce before a current step heading.
|
|
1356
|
+
* @default Bezig
|
|
1357
|
+
*/
|
|
1358
|
+
currentAccessibleText?: string;
|
|
1359
|
+
/**
|
|
1360
|
+
* The hierarchical level of this Progress List’s Headings within the document.
|
|
1361
|
+
* There is no default value; determine the correct level for this instance.
|
|
1362
|
+
*/
|
|
1363
|
+
headingLevel: ProgressListHeadingLevel;
|
|
1364
|
+
} & HTMLAttributes<HTMLOListElement> & {
|
|
1365
|
+
children?: react.ReactNode | undefined;
|
|
1366
|
+
} & react.RefAttributes<HTMLOListElement>> & {
|
|
1367
|
+
Step: react.ForwardRefExoticComponent<{
|
|
1368
|
+
hasSubsteps?: boolean;
|
|
1369
|
+
heading: string;
|
|
1370
|
+
status?: "current" | "completed";
|
|
1371
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
1372
|
+
children?: react.ReactNode | undefined;
|
|
1373
|
+
} & react.RefAttributes<HTMLLIElement>>;
|
|
1374
|
+
Substep: react.ForwardRefExoticComponent<{
|
|
1375
|
+
status?: ProgressListStepProps["status"];
|
|
1376
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
1377
|
+
children?: react.ReactNode | undefined;
|
|
1378
|
+
} & react.RefAttributes<HTMLLIElement>>;
|
|
1379
|
+
Substeps: react.ForwardRefExoticComponent<HTMLAttributes<HTMLOListElement> & {
|
|
1380
|
+
children?: react.ReactNode | undefined;
|
|
1381
|
+
} & react.RefAttributes<HTMLOListElement>>;
|
|
1382
|
+
};
|
|
1383
|
+
|
|
1384
|
+
type ProgressListSubstepProps = {
|
|
1385
|
+
/** The current progress state of the substep. */
|
|
1386
|
+
status?: ProgressListStepProps['status'];
|
|
1387
|
+
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
1388
|
+
|
|
1389
|
+
type ProgressListSubstepsProps = PropsWithChildren<HTMLAttributes<HTMLOListElement>>;
|
|
1390
|
+
|
|
1307
1391
|
type RadioProps = {
|
|
1308
1392
|
/**
|
|
1309
1393
|
* An icon to display instead of the default icon.
|
|
1310
1394
|
* @default RadioIcon
|
|
1311
1395
|
*/
|
|
1312
|
-
icon?:
|
|
1396
|
+
icon?: IconProps['svg'];
|
|
1313
1397
|
/** Whether the value fails a validation rule. */
|
|
1314
1398
|
invalid?: boolean;
|
|
1315
1399
|
} & PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>>;
|
|
@@ -1321,11 +1405,11 @@ declare const Radio: react.ForwardRefExoticComponent<{
|
|
|
1321
1405
|
* An icon to display instead of the default icon.
|
|
1322
1406
|
* @default RadioIcon
|
|
1323
1407
|
*/
|
|
1324
|
-
icon?:
|
|
1408
|
+
icon?: IconProps["svg"];
|
|
1325
1409
|
/** Whether the value fails a validation rule. */
|
|
1326
1410
|
invalid?: boolean;
|
|
1327
1411
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
|
|
1328
|
-
children?: ReactNode | undefined;
|
|
1412
|
+
children?: react.ReactNode | undefined;
|
|
1329
1413
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
1330
1414
|
|
|
1331
1415
|
declare const rowTags: readonly ["article", "div", "section"];
|
|
@@ -1958,5 +2042,5 @@ declare const UnorderedList: react.ForwardRefExoticComponent<{
|
|
|
1958
2042
|
|
|
1959
2043
|
type UnorderedListItemProps = PropsWithChildren<LiHTMLAttributes<HTMLLIElement>>;
|
|
1960
2044
|
|
|
1961
|
-
export { Accordion, ActionGroup, Alert, Avatar, Badge, Blockquote, Breadcrumb, Breakout, Button, CallToActionLink, Card, CharacterCount, Checkbox, Column, DateInput, DescriptionList, Dialog, ErrorMessage, Field, FieldSet, Figure, FileInput, FileList, Grid, Heading, Hint, Icon, IconButton, Image, ImageSlider, InvalidFormAlert, Label, Link, LinkList, Logo, Mark, Menu, OrderedList, Overlap, Page, PageFooter, PageHeader, PageHeading, Pagination, Paragraph, PasswordInput, Radio, Row, SearchField, Select, SkipLink, Spotlight, StandaloneLink, Switch, Table, TableOfContents, Tabs, TextArea, TextInput, TimeInput, UnorderedList, generateAspectRatioClass };
|
|
1962
|
-
export type { AccordionProps, AccordionSectionProps, ActionGroupProps, AlertProps, AvatarProps, BadgeProps, BlockquoteProps, BreadcrumbLinkProps, BreadcrumbProps, BreakoutCellProps, BreakoutProps, ButtonProps, CallToActionLinkProps, CardHeadingGroupProps, CardLinkProps, CardProps, CharacterCountProps, CheckboxProps, ColumnProps, DateInputProps, DescriptionListDescriptionProps, DescriptionListProps, DescriptionListTermProps, DialogProps, ErrorLink, ErrorMessageProps, FieldProps, FieldSetProps, FigureProps, FileInputProps, FileListProps, GridCellProps, GridColumnNumber, GridColumnNumbers, GridProps, HeadingProps, HintProps, IconButtonProps, IconProps, ImageProps,
|
|
2045
|
+
export { Accordion, ActionGroup, Alert, Avatar, Badge, Blockquote, Breadcrumb, Breakout, Button, CallToActionLink, Card, CharacterCount, Checkbox, Column, DateInput, DescriptionList, Dialog, ErrorMessage, Field, FieldSet, Figure, FileInput, FileList, Grid, Heading, Hint, Icon, IconButton, Image, ImageSlider, InvalidFormAlert, Label, Link, LinkList, Logo, Mark, Menu, OrderedList, Overlap, Page, PageFooter, PageHeader, PageHeading, Pagination, Paragraph, PasswordInput, ProgressList, Radio, Row, SearchField, Select, SkipLink, Spotlight, StandaloneLink, Switch, Table, TableOfContents, Tabs, TextArea, TextInput, TimeInput, UnorderedList, generateAspectRatioClass };
|
|
2046
|
+
export type { AccordionProps, AccordionSectionProps, ActionGroupProps, AlertProps, AvatarProps, BadgeProps, BlockquoteProps, BreadcrumbLinkProps, BreadcrumbProps, BreakoutCellProps, BreakoutProps, ButtonProps, CallToActionLinkProps, CardHeadingGroupProps, CardLinkProps, CardProps, CharacterCountProps, CheckboxProps, ColumnProps, DateInputProps, DescriptionListDescriptionProps, DescriptionListProps, DescriptionListTermProps, DialogProps, ErrorLink, ErrorMessageProps, FieldProps, FieldSetProps, FigureProps, FileInputProps, FileListProps, GridCellProps, GridColumnNumber, GridColumnNumbers, GridProps, HeadingProps, HintProps, IconButtonProps, IconProps, ImageProps, ImageSliderProps, InvalidFormAlertProps, LinkListLinkProps, LinkListProps, LinkProps, LogoBrand, LogoProps, MarkProps, MenuLinkProps, MenuProps, OrderedListItemProps, OrderedListProps, OverlapProps, PageFooterMenuLinkProps, PageFooterMenuProps, PageFooterProps, PageFooterSpotlightProps, PageHeaderMenuLinkProps, PageHeaderProps, PageHeadingProps, PageProps, PaginationProps, ParagraphProps, PasswordInputProps, ProgressListProps, ProgressListStepProps, ProgressListSubstepProps, ProgressListSubstepsProps, RadioProps, RowProps, SearchFieldProps, SelectOptionProps, SelectProps, SkipLinkProps, SpotlightProps, StandaloneLinkProps, SwitchProps, TableOfContentsLinkProps, TableOfContentsListProps, TableOfContentsProps, TableProps, TabsButtonProps, TabsListProps, TabsPanelProps, TabsProps, TextAreaProps, TextInputProps, TimeInputProps, UnorderedListItemProps, UnorderedListProps };
|