@amsterdam/design-system-react 2.2.0 → 3.1.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/README.md +1 -1
- package/dist/Accordion/Accordion.js +1 -1
- 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/Column/Column.d.ts +1 -1
- package/dist/Grid/Grid.d.ts +1 -1
- package/dist/Grid/GridCell.d.ts +1 -1
- package/dist/ImageSlider/ImageSlider.d.ts +3 -22
- package/dist/ImageSlider/ImageSlider.js +31 -86
- package/dist/ImageSlider/ImageSliderControl.d.ts +2 -0
- package/dist/ImageSlider/ImageSliderControl.js +5 -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 +10 -5
- package/dist/Logo/Logo.js +17 -9
- package/dist/PageFooter/PageFooter.d.ts +4 -1
- package/dist/PageFooter/PageFooterMenu.d.ts +27 -2
- package/dist/PageFooter/PageFooterMenu.js +6 -2
- package/dist/PageHeader/PageHeader.d.ts +19 -5
- package/dist/PageHeader/PageHeader.js +3 -2
- package/dist/PageHeader/PageHeaderGridCellNarrowWindowOnly.js +2 -1
- package/dist/Paragraph/Paragraph.d.ts +2 -2
- package/dist/Paragraph/Paragraph.js +8 -1
- package/dist/ProgressList/ProgressList.d.ts +43 -0
- package/dist/ProgressList/ProgressList.js +19 -0
- package/dist/ProgressList/ProgressListContext.d.ts +10 -0
- package/dist/ProgressList/ProgressListContext.js +11 -0
- package/dist/ProgressList/ProgressListStep.d.ts +23 -0
- package/dist/ProgressList/ProgressListStep.js +12 -0
- package/dist/ProgressList/ProgressListSubstep.d.ts +16 -0
- package/dist/ProgressList/ProgressListSubstep.js +7 -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/ProgressList/index.js +5 -0
- package/dist/Radio/Radio.d.ts +5 -4
- package/dist/Row/Row.d.ts +1 -1
- package/dist/Spotlight/Spotlight.d.ts +1 -1
- package/dist/common/useIsAfterBreakpoint.d.ts +4 -4
- package/dist/common/useIsAfterBreakpoint.js +12 -13
- package/dist/index.cjs.js +734 -663
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +150 -77
- package/dist/index.esm.js +736 -666
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +13 -18
- 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/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,5 +1,5 @@
|
|
|
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
4
|
declare const headingSizes: readonly [1, 2, 3, 4];
|
|
5
5
|
type HeadingSize = (typeof headingSizes)[number];
|
|
@@ -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>>;
|
|
@@ -253,7 +290,7 @@ type GridProps = {
|
|
|
253
290
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-grid--docs Grid docs at Amsterdam Design System}
|
|
254
291
|
*/
|
|
255
292
|
declare const Grid: react.ForwardRefExoticComponent<GridProps & react.RefAttributes<any>> & {
|
|
256
|
-
Cell: react.ForwardRefExoticComponent<GridCellProps & react.RefAttributes<
|
|
293
|
+
Cell: react.ForwardRefExoticComponent<GridCellProps & react.RefAttributes<any>>;
|
|
257
294
|
};
|
|
258
295
|
|
|
259
296
|
declare const breakoutCellTags: readonly ["article", "div", "section"];
|
|
@@ -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"];
|
|
@@ -516,7 +520,7 @@ declare const Column: react.ForwardRefExoticComponent<{
|
|
|
516
520
|
gap?: ColumnGap;
|
|
517
521
|
} & HTMLAttributes<HTMLElement> & {
|
|
518
522
|
children?: react.ReactNode | undefined;
|
|
519
|
-
} & react.RefAttributes<
|
|
523
|
+
} & react.RefAttributes<any>>;
|
|
520
524
|
|
|
521
525
|
declare const dateInputTypes: readonly ["date", "datetime-local"];
|
|
522
526
|
type DateInputType = (typeof dateInputTypes)[number];
|
|
@@ -762,14 +766,13 @@ declare const Image: react.ForwardRefExoticComponent<{
|
|
|
762
766
|
alt: string;
|
|
763
767
|
} & AspectRatioProps & Omit<ImgHTMLAttributes<HTMLImageElement>, "children"> & react.RefAttributes<HTMLImageElement>>;
|
|
764
768
|
|
|
765
|
-
type ImageSliderImageProps = ImageProps;
|
|
766
769
|
type ImageSliderProps = {
|
|
767
770
|
/** Display buttons to navigate to the previous or next image. */
|
|
768
771
|
controls?: boolean;
|
|
769
772
|
/** Label for the image if you need to translate the alt text. */
|
|
770
773
|
imageLabel?: string;
|
|
771
774
|
/** The set of images to display. */
|
|
772
|
-
images:
|
|
775
|
+
images: ImageProps[];
|
|
773
776
|
/** The label for the ‘next’ button */
|
|
774
777
|
nextLabel?: string;
|
|
775
778
|
/** The label for the ‘previous’ button */
|
|
@@ -784,23 +787,12 @@ declare const ImageSlider: react.ForwardRefExoticComponent<{
|
|
|
784
787
|
/** Label for the image if you need to translate the alt text. */
|
|
785
788
|
imageLabel?: string;
|
|
786
789
|
/** The set of images to display. */
|
|
787
|
-
images:
|
|
790
|
+
images: ImageProps[];
|
|
788
791
|
/** The label for the ‘next’ button */
|
|
789
792
|
nextLabel?: string;
|
|
790
793
|
/** The label for the ‘previous’ button */
|
|
791
794
|
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>>;
|
|
795
|
+
} & HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
804
796
|
|
|
805
797
|
type ErrorLink = {
|
|
806
798
|
id: string;
|
|
@@ -935,20 +927,20 @@ type LinkListLinkProps = {
|
|
|
935
927
|
size?: LinkListLinkSize;
|
|
936
928
|
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
937
929
|
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
* Copyright Gemeente Amsterdam
|
|
941
|
-
*/
|
|
942
|
-
|
|
943
|
-
type LogoBrand = 'amsterdam' | 'ggd-amsterdam' | 'museum-weesp' | 'stadsarchief' | 'stadsbank-van-lening' | 'vga-verzekeringen';
|
|
930
|
+
declare const logoBrands: readonly ["amsterdam", "ggd-amsterdam", "museum-weesp", "stadsarchief", "stadsbank-van-lening", "vga-verzekeringen"];
|
|
931
|
+
type LogoBrand = (typeof logoBrands)[number];
|
|
944
932
|
type LogoProps = {
|
|
945
|
-
/** The name of the brand for which to display the logo. */
|
|
946
|
-
brand?: LogoBrand;
|
|
933
|
+
/** The name of the brand for which to display the logo, or configuration for a custom logo. */
|
|
934
|
+
brand?: LogoBrand | LogoBrandConfig;
|
|
947
935
|
} & SVGProps<SVGSVGElement>;
|
|
936
|
+
type LogoBrandConfig = {
|
|
937
|
+
label: string;
|
|
938
|
+
svg: ComponentType<SVGProps<SVGSVGElement>>;
|
|
939
|
+
};
|
|
948
940
|
/**
|
|
949
941
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-media-logo--docs Logo docs at Amsterdam Design System}
|
|
950
942
|
*/
|
|
951
|
-
declare const Logo: ForwardRefExoticComponent<Omit<LogoProps, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
943
|
+
declare const Logo: react.ForwardRefExoticComponent<Omit<LogoProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
952
944
|
|
|
953
945
|
type MarkProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
954
946
|
/**
|
|
@@ -1056,7 +1048,10 @@ type PageFooterProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
|
1056
1048
|
declare const PageFooter: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
1057
1049
|
children?: react.ReactNode | undefined;
|
|
1058
1050
|
} & react.RefAttributes<HTMLElement>> & {
|
|
1059
|
-
Menu: react.ForwardRefExoticComponent<
|
|
1051
|
+
Menu: react.ForwardRefExoticComponent<{
|
|
1052
|
+
heading?: string;
|
|
1053
|
+
headingLevel?: HeadingProps["level"];
|
|
1054
|
+
} & HTMLAttributes<HTMLUListElement> & {
|
|
1060
1055
|
children?: react.ReactNode | undefined;
|
|
1061
1056
|
} & react.RefAttributes<HTMLUListElement>>;
|
|
1062
1057
|
MenuLink: react.ForwardRefExoticComponent<react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
@@ -1067,7 +1062,19 @@ declare const PageFooter: react.ForwardRefExoticComponent<HTMLAttributes<HTMLEle
|
|
|
1067
1062
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1068
1063
|
};
|
|
1069
1064
|
|
|
1070
|
-
type PageFooterMenuProps =
|
|
1065
|
+
type PageFooterMenuProps = {
|
|
1066
|
+
/**
|
|
1067
|
+
* Describes the menu for users of assistive technology.
|
|
1068
|
+
* The heading gets visually hidden – sighted users can infer the meaning of the menu from its appearance.
|
|
1069
|
+
* @default Over deze website
|
|
1070
|
+
*/
|
|
1071
|
+
heading?: string;
|
|
1072
|
+
/**
|
|
1073
|
+
* The hierarchical level of the Footer Menu’s Heading within the document.
|
|
1074
|
+
* The default value is 2. This will almost always be correct – but verify this yourself.
|
|
1075
|
+
*/
|
|
1076
|
+
headingLevel?: HeadingProps['level'];
|
|
1077
|
+
} & PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
1071
1078
|
|
|
1072
1079
|
type PageFooterMenuLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1073
1080
|
|
|
@@ -1079,15 +1086,21 @@ type PageHeaderProps = {
|
|
|
1079
1086
|
/** The accessible name of the logo. */
|
|
1080
1087
|
logoAccessibleName?: string;
|
|
1081
1088
|
/** The name of the brand for which to display the logo. */
|
|
1082
|
-
logoBrand?: LogoBrand;
|
|
1089
|
+
logoBrand?: LogoBrand | LogoBrandConfig;
|
|
1083
1090
|
/** The url for the link on the logo. */
|
|
1084
1091
|
logoLink?: string;
|
|
1085
1092
|
/** The React component to use for the logo link. */
|
|
1086
1093
|
logoLinkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1087
1094
|
/** The accessible text for the link on the logo. */
|
|
1088
1095
|
logoLinkTitle?: string;
|
|
1089
|
-
/**
|
|
1096
|
+
/** An icon to display instead of the default icon. */
|
|
1097
|
+
menuButtonIcon?: IconProps['svg'];
|
|
1098
|
+
/** The visible text for the menu button. */
|
|
1090
1099
|
menuButtonText?: string;
|
|
1100
|
+
/** The text for screen readers when the button hides the menu. */
|
|
1101
|
+
menuButtonTextForHide?: string;
|
|
1102
|
+
/** The text for screen readers when the button shows the menu. */
|
|
1103
|
+
menuButtonTextForShow?: string;
|
|
1091
1104
|
/** A slot for the menu items. Use PageHeader.MenuLink here. */
|
|
1092
1105
|
menuItems?: ReactNode;
|
|
1093
1106
|
/** The accessible label for the navigation section. */
|
|
@@ -1104,15 +1117,21 @@ declare const PageHeader: react.ForwardRefExoticComponent<{
|
|
|
1104
1117
|
/** The accessible name of the logo. */
|
|
1105
1118
|
logoAccessibleName?: string;
|
|
1106
1119
|
/** The name of the brand for which to display the logo. */
|
|
1107
|
-
logoBrand?: LogoBrand;
|
|
1120
|
+
logoBrand?: LogoBrand | LogoBrandConfig;
|
|
1108
1121
|
/** The url for the link on the logo. */
|
|
1109
1122
|
logoLink?: string;
|
|
1110
1123
|
/** The React component to use for the logo link. */
|
|
1111
1124
|
logoLinkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1112
1125
|
/** The accessible text for the link on the logo. */
|
|
1113
1126
|
logoLinkTitle?: string;
|
|
1114
|
-
/**
|
|
1127
|
+
/** An icon to display instead of the default icon. */
|
|
1128
|
+
menuButtonIcon?: IconProps["svg"];
|
|
1129
|
+
/** The visible text for the menu button. */
|
|
1115
1130
|
menuButtonText?: string;
|
|
1131
|
+
/** The text for screen readers when the button hides the menu. */
|
|
1132
|
+
menuButtonTextForHide?: string;
|
|
1133
|
+
/** The text for screen readers when the button shows the menu. */
|
|
1134
|
+
menuButtonTextForShow?: string;
|
|
1116
1135
|
/** A slot for the menu items. Use PageHeader.MenuLink here. */
|
|
1117
1136
|
menuItems?: ReactNode;
|
|
1118
1137
|
/** The accessible label for the navigation section. */
|
|
@@ -1266,7 +1285,7 @@ declare const Paragraph: react.ForwardRefExoticComponent<{
|
|
|
1266
1285
|
/** The size of the text. */
|
|
1267
1286
|
size?: "small" | "large";
|
|
1268
1287
|
} & HTMLAttributes<HTMLParagraphElement> & {
|
|
1269
|
-
children?:
|
|
1288
|
+
children?: ReactNode | undefined;
|
|
1270
1289
|
} & react.RefAttributes<HTMLParagraphElement>>;
|
|
1271
1290
|
|
|
1272
1291
|
type PasswordInputProps = {
|
|
@@ -1281,12 +1300,66 @@ declare const PasswordInput: react.ForwardRefExoticComponent<{
|
|
|
1281
1300
|
invalid?: boolean;
|
|
1282
1301
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, "autoCapitalize" | "spellCheck" | "autoCorrect" | "aria-invalid" | "type"> & react.RefAttributes<HTMLInputElement>>;
|
|
1283
1302
|
|
|
1303
|
+
type ProgressListStepProps = {
|
|
1304
|
+
/** Whether the step contains a list of substeps. This is needed to draw the connecting lines correctly. */
|
|
1305
|
+
hasSubsteps?: boolean;
|
|
1306
|
+
/** The heading text for this step. */
|
|
1307
|
+
heading: string;
|
|
1308
|
+
/** The current progress state of the step. */
|
|
1309
|
+
status?: 'current' | 'completed';
|
|
1310
|
+
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
1311
|
+
|
|
1312
|
+
declare const progressListHeadingSizes: (2 | 3 | 4)[];
|
|
1313
|
+
type ProgressListHeadingSize = (typeof progressListHeadingSizes)[number];
|
|
1314
|
+
type ProgressListProps = {
|
|
1315
|
+
/**
|
|
1316
|
+
* The hierarchical level of this Progress List’s Headings within the document.
|
|
1317
|
+
* There is no default value; determine the correct level for this instance.
|
|
1318
|
+
*/
|
|
1319
|
+
headingLevel: ProgressListHeadingSize;
|
|
1320
|
+
} & PropsWithChildren<HTMLAttributes<HTMLOListElement>>;
|
|
1321
|
+
/**
|
|
1322
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-progress-list--docs Progress List docs at Amsterdam Design System}
|
|
1323
|
+
*/
|
|
1324
|
+
declare const ProgressList: react.ForwardRefExoticComponent<{
|
|
1325
|
+
/**
|
|
1326
|
+
* The hierarchical level of this Progress List’s Headings within the document.
|
|
1327
|
+
* There is no default value; determine the correct level for this instance.
|
|
1328
|
+
*/
|
|
1329
|
+
headingLevel: ProgressListHeadingSize;
|
|
1330
|
+
} & HTMLAttributes<HTMLOListElement> & {
|
|
1331
|
+
children?: react.ReactNode | undefined;
|
|
1332
|
+
} & react.RefAttributes<HTMLOListElement>> & {
|
|
1333
|
+
Step: react.ForwardRefExoticComponent<{
|
|
1334
|
+
hasSubsteps?: boolean;
|
|
1335
|
+
heading: string;
|
|
1336
|
+
status?: "current" | "completed";
|
|
1337
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
1338
|
+
children?: react.ReactNode | undefined;
|
|
1339
|
+
} & react.RefAttributes<HTMLLIElement>>;
|
|
1340
|
+
Substep: react.ForwardRefExoticComponent<{
|
|
1341
|
+
status?: ProgressListStepProps["status"];
|
|
1342
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
1343
|
+
children?: react.ReactNode | undefined;
|
|
1344
|
+
} & react.RefAttributes<HTMLLIElement>>;
|
|
1345
|
+
Substeps: react.ForwardRefExoticComponent<HTMLAttributes<HTMLOListElement> & {
|
|
1346
|
+
children?: react.ReactNode | undefined;
|
|
1347
|
+
} & react.RefAttributes<HTMLOListElement>>;
|
|
1348
|
+
};
|
|
1349
|
+
|
|
1350
|
+
type ProgressListSubstepProps = {
|
|
1351
|
+
/** The current progress state of the substep. */
|
|
1352
|
+
status?: ProgressListStepProps['status'];
|
|
1353
|
+
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
1354
|
+
|
|
1355
|
+
type ProgressListSubstepsProps = PropsWithChildren<HTMLAttributes<HTMLOListElement>>;
|
|
1356
|
+
|
|
1284
1357
|
type RadioProps = {
|
|
1285
1358
|
/**
|
|
1286
1359
|
* An icon to display instead of the default icon.
|
|
1287
1360
|
* @default RadioIcon
|
|
1288
1361
|
*/
|
|
1289
|
-
icon?:
|
|
1362
|
+
icon?: IconProps['svg'];
|
|
1290
1363
|
/** Whether the value fails a validation rule. */
|
|
1291
1364
|
invalid?: boolean;
|
|
1292
1365
|
} & PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>>;
|
|
@@ -1298,11 +1371,11 @@ declare const Radio: react.ForwardRefExoticComponent<{
|
|
|
1298
1371
|
* An icon to display instead of the default icon.
|
|
1299
1372
|
* @default RadioIcon
|
|
1300
1373
|
*/
|
|
1301
|
-
icon?:
|
|
1374
|
+
icon?: IconProps["svg"];
|
|
1302
1375
|
/** Whether the value fails a validation rule. */
|
|
1303
1376
|
invalid?: boolean;
|
|
1304
1377
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
|
|
1305
|
-
children?: ReactNode | undefined;
|
|
1378
|
+
children?: react.ReactNode | undefined;
|
|
1306
1379
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
1307
1380
|
|
|
1308
1381
|
declare const rowTags: readonly ["article", "div", "section"];
|
|
@@ -1367,7 +1440,7 @@ declare const Row: react.ForwardRefExoticComponent<{
|
|
|
1367
1440
|
wrap?: boolean;
|
|
1368
1441
|
} & HTMLAttributes<HTMLElement> & {
|
|
1369
1442
|
children?: react.ReactNode | undefined;
|
|
1370
|
-
} & react.RefAttributes<
|
|
1443
|
+
} & react.RefAttributes<any>>;
|
|
1371
1444
|
|
|
1372
1445
|
type SearchFieldProps = PropsWithChildren<HTMLAttributes<HTMLFormElement>>;
|
|
1373
1446
|
/**
|
|
@@ -1713,7 +1786,7 @@ declare const Spotlight: react.ForwardRefExoticComponent<{
|
|
|
1713
1786
|
color?: SpotlightColor;
|
|
1714
1787
|
} & HTMLAttributes<HTMLElement> & {
|
|
1715
1788
|
children?: react.ReactNode | undefined;
|
|
1716
|
-
} & react.RefAttributes<
|
|
1789
|
+
} & react.RefAttributes<any>>;
|
|
1717
1790
|
|
|
1718
1791
|
type StandaloneLinkProps = {
|
|
1719
1792
|
/** Changes the text colour for readability on a light or dark background. */
|
|
@@ -1935,5 +2008,5 @@ declare const UnorderedList: react.ForwardRefExoticComponent<{
|
|
|
1935
2008
|
|
|
1936
2009
|
type UnorderedListItemProps = PropsWithChildren<LiHTMLAttributes<HTMLLIElement>>;
|
|
1937
2010
|
|
|
1938
|
-
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 };
|
|
1939
|
-
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,
|
|
2011
|
+
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 };
|
|
2012
|
+
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 };
|