@amsterdam/design-system-react 3.1.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 +2 -2
- 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 +6 -2
- package/dist/ImageSlider/ImageSlider.js +2 -4
- package/dist/ImageSlider/ImageSliderSlide.d.ts +14 -0
- package/dist/ImageSlider/ImageSliderSlide.js +19 -0
- package/dist/ImageSlider/ImageSliderThumbnails.d.ts +1 -1
- package/dist/ImageSlider/ImageSliderThumbnails.js +2 -2
- 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 +10 -0
- 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 +24 -4
- package/dist/ProgressList/ProgressList.js +7 -3
- package/dist/ProgressList/ProgressListContext.d.ts +2 -0
- package/dist/ProgressList/ProgressListStep.js +2 -1
- package/dist/ProgressList/ProgressListSubstep.js +2 -1
- 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 +1993 -2299
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +45 -11
- package/dist/index.esm.js +1993 -2299
- package/dist/index.esm.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +15 -17
- package/dist/PageHeader/matchMedia.mock.d.ts +0 -4
- 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
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.
|
|
@@ -766,13 +766,17 @@ declare const Image: react.ForwardRefExoticComponent<{
|
|
|
766
766
|
alt: string;
|
|
767
767
|
} & AspectRatioProps & Omit<ImgHTMLAttributes<HTMLImageElement>, "children"> & react.RefAttributes<HTMLImageElement>>;
|
|
768
768
|
|
|
769
|
+
type ImageSliderImageProps = {
|
|
770
|
+
/** An optional caption displayed below the image. */
|
|
771
|
+
caption?: string;
|
|
772
|
+
} & ImageProps;
|
|
769
773
|
type ImageSliderProps = {
|
|
770
774
|
/** Display buttons to navigate to the previous or next image. */
|
|
771
775
|
controls?: boolean;
|
|
772
776
|
/** Label for the image if you need to translate the alt text. */
|
|
773
777
|
imageLabel?: string;
|
|
774
778
|
/** The set of images to display. */
|
|
775
|
-
images:
|
|
779
|
+
images: ImageSliderImageProps[];
|
|
776
780
|
/** The label for the ‘next’ button */
|
|
777
781
|
nextLabel?: string;
|
|
778
782
|
/** The label for the ‘previous’ button */
|
|
@@ -787,7 +791,7 @@ declare const ImageSlider: react.ForwardRefExoticComponent<{
|
|
|
787
791
|
/** Label for the image if you need to translate the alt text. */
|
|
788
792
|
imageLabel?: string;
|
|
789
793
|
/** The set of images to display. */
|
|
790
|
-
images:
|
|
794
|
+
images: ImageSliderImageProps[];
|
|
791
795
|
/** The label for the ‘next’ button */
|
|
792
796
|
nextLabel?: string;
|
|
793
797
|
/** The label for the ‘previous’ button */
|
|
@@ -927,7 +931,7 @@ type LinkListLinkProps = {
|
|
|
927
931
|
size?: LinkListLinkSize;
|
|
928
932
|
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
929
933
|
|
|
930
|
-
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"];
|
|
931
935
|
type LogoBrand = (typeof logoBrands)[number];
|
|
932
936
|
type LogoProps = {
|
|
933
937
|
/** The name of the brand for which to display the logo, or configuration for a custom logo. */
|
|
@@ -1083,6 +1087,11 @@ type PageFooterSpotlightProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>
|
|
|
1083
1087
|
type PageHeaderProps = {
|
|
1084
1088
|
/** The name of the application. */
|
|
1085
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;
|
|
1086
1095
|
/** The accessible name of the logo. */
|
|
1087
1096
|
logoAccessibleName?: string;
|
|
1088
1097
|
/** The name of the brand for which to display the logo. */
|
|
@@ -1114,6 +1123,11 @@ type PageHeaderProps = {
|
|
|
1114
1123
|
declare const PageHeader: react.ForwardRefExoticComponent<{
|
|
1115
1124
|
/** The name of the application. */
|
|
1116
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;
|
|
1117
1131
|
/** The accessible name of the logo. */
|
|
1118
1132
|
logoAccessibleName?: string;
|
|
1119
1133
|
/** The name of the brand for which to display the logo. */
|
|
@@ -1309,24 +1323,44 @@ type ProgressListStepProps = {
|
|
|
1309
1323
|
status?: 'current' | 'completed';
|
|
1310
1324
|
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
1311
1325
|
|
|
1312
|
-
declare const
|
|
1313
|
-
type
|
|
1326
|
+
declare const progressListHeadingLevels: (2 | 3 | 4)[];
|
|
1327
|
+
type ProgressListHeadingLevel = (typeof progressListHeadingLevels)[number];
|
|
1314
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;
|
|
1315
1339
|
/**
|
|
1316
1340
|
* The hierarchical level of this Progress List’s Headings within the document.
|
|
1317
1341
|
* There is no default value; determine the correct level for this instance.
|
|
1318
1342
|
*/
|
|
1319
|
-
headingLevel:
|
|
1343
|
+
headingLevel: ProgressListHeadingLevel;
|
|
1320
1344
|
} & PropsWithChildren<HTMLAttributes<HTMLOListElement>>;
|
|
1321
1345
|
/**
|
|
1322
1346
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-progress-list--docs Progress List docs at Amsterdam Design System}
|
|
1323
1347
|
*/
|
|
1324
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;
|
|
1325
1359
|
/**
|
|
1326
1360
|
* The hierarchical level of this Progress List’s Headings within the document.
|
|
1327
1361
|
* There is no default value; determine the correct level for this instance.
|
|
1328
1362
|
*/
|
|
1329
|
-
headingLevel:
|
|
1363
|
+
headingLevel: ProgressListHeadingLevel;
|
|
1330
1364
|
} & HTMLAttributes<HTMLOListElement> & {
|
|
1331
1365
|
children?: react.ReactNode | undefined;
|
|
1332
1366
|
} & react.RefAttributes<HTMLOListElement>> & {
|