@amsterdam/design-system-react 3.2.0 → 3.3.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/Breadcrumb/Breadcrumb.d.ts +18 -2
- package/dist/Breadcrumb/Breadcrumb.js +7 -3
- package/dist/Logo/Logo.d.ts +1 -1
- package/dist/Logo/Logo.js +13 -8
- package/dist/Logo/{brand/LogoVgaVerzekeringen.d.ts → brands/AmsterdamEnglishLogo.d.ts} +2 -2
- package/dist/Logo/brands/AmsterdamEnglishLogo.js +5 -0
- package/dist/Logo/{brand/LogoAmsterdam.d.ts → brands/AmsterdamLogo.d.ts} +2 -2
- package/dist/Logo/brands/AmsterdamLogo.js +5 -0
- package/dist/Logo/brands/GgdAmsterdamInspectieLogo.d.ts +7 -0
- package/dist/Logo/brands/GgdAmsterdamInspectieLogo.js +5 -0
- package/dist/Logo/{brand/LogoGgdAmsterdam.d.ts → brands/GgdAmsterdamLogo.d.ts} +2 -2
- package/dist/Logo/brands/GgdAmsterdamLogo.js +5 -0
- package/dist/Logo/{brand/LogoMuseumWeesp.d.ts → brands/MuseumWeespLogo.d.ts} +2 -2
- package/dist/Logo/brands/MuseumWeespLogo.js +5 -0
- package/dist/Logo/{brand/LogoStadsarchief.d.ts → brands/StadsarchiefLogo.d.ts} +2 -2
- package/dist/Logo/brands/StadsarchiefLogo.js +5 -0
- package/dist/Logo/{brand/LogoStadsbankVanLening.d.ts → brands/StadsbankVanLeningLogo.d.ts} +2 -2
- package/dist/Logo/brands/StadsbankVanLeningLogo.js +5 -0
- package/dist/Logo/{brand/LogoAmsterdamEnglish.d.ts → brands/VgaVerzekeringenLogo.d.ts} +2 -2
- package/dist/Logo/brands/VgaVerzekeringenLogo.js +5 -0
- package/dist/Logo/brands/index.d.ts +12 -0
- package/dist/Logo/brands/index.js +12 -0
- package/dist/Menu/Menu.d.ts +3 -3
- package/dist/Menu/Menu.js +1 -1
- package/dist/PageHeader/PageHeader.d.ts +8 -2
- package/dist/PageHeader/PageHeader.js +1 -1
- package/dist/Pagination/LinkItem.js +1 -1
- package/dist/Pagination/Pagination.js +1 -1
- package/dist/ProgressList/ProgressList.d.ts +2 -0
- package/dist/ProgressList/ProgressList.js +15 -6
- package/dist/ProgressList/ProgressListStep.d.ts +14 -0
- package/dist/ProgressList/ProgressListStep.js +11 -4
- package/dist/index.cjs.js +169 -108
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +38 -7
- package/dist/index.esm.js +169 -108
- package/dist/index.esm.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +11 -9
- package/dist/Logo/brand/LogoAmsterdam.js +0 -6
- package/dist/Logo/brand/LogoAmsterdamEnglish.js +0 -6
- package/dist/Logo/brand/LogoGgdAmsterdam.js +0 -6
- package/dist/Logo/brand/LogoMuseumWeesp.js +0 -6
- package/dist/Logo/brand/LogoStadsarchief.js +0 -6
- package/dist/Logo/brand/LogoStadsbankVanLening.js +0 -6
- package/dist/Logo/brand/LogoVgaVerzekeringen.js +0 -6
- package/dist/Logo/brand/index.d.ts +0 -11
- package/dist/Logo/brand/index.js +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
|
@@ -227,11 +227,27 @@ declare const Blockquote: react.ForwardRefExoticComponent<{
|
|
|
227
227
|
|
|
228
228
|
type BreadcrumbLinkProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
229
229
|
|
|
230
|
-
type BreadcrumbProps =
|
|
230
|
+
type BreadcrumbProps = {
|
|
231
|
+
/** The accessible name for the component. */
|
|
232
|
+
accessibleName?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Connects the component with an internal element that defines its accessible name.
|
|
235
|
+
* Note: must be unique for the page.
|
|
236
|
+
*/
|
|
237
|
+
accessibleNameId?: string;
|
|
238
|
+
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
231
239
|
/**
|
|
232
240
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-breadcrumb--docs Breadcrumb docs at Amsterdam Design System}
|
|
233
241
|
*/
|
|
234
|
-
declare const Breadcrumb: react.ForwardRefExoticComponent<
|
|
242
|
+
declare const Breadcrumb: react.ForwardRefExoticComponent<{
|
|
243
|
+
/** The accessible name for the component. */
|
|
244
|
+
accessibleName?: string;
|
|
245
|
+
/**
|
|
246
|
+
* Connects the component with an internal element that defines its accessible name.
|
|
247
|
+
* Note: must be unique for the page.
|
|
248
|
+
*/
|
|
249
|
+
accessibleNameId?: string;
|
|
250
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
235
251
|
children?: react.ReactNode | undefined;
|
|
236
252
|
} & react.RefAttributes<HTMLElement>> & {
|
|
237
253
|
Link: react.ForwardRefExoticComponent<BreadcrumbLinkProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -931,7 +947,7 @@ type LinkListLinkProps = {
|
|
|
931
947
|
size?: LinkListLinkSize;
|
|
932
948
|
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
933
949
|
|
|
934
|
-
declare const logoBrands: readonly ["amsterdam", "amsterdam-english", "ggd-amsterdam", "museum-weesp", "stadsarchief", "stadsbank-van-lening", "vga-verzekeringen"];
|
|
950
|
+
declare const logoBrands: readonly ["amsterdam", "amsterdam-english", "ggd-amsterdam", "ggd-amsterdam-inspectie", "museum-weesp", "stadsarchief", "stadsbank-van-lening", "vga-verzekeringen"];
|
|
935
951
|
type LogoBrand = (typeof logoBrands)[number];
|
|
936
952
|
type LogoProps = {
|
|
937
953
|
/** The name of the brand for which to display the logo, or configuration for a custom logo. */
|
|
@@ -958,7 +974,7 @@ type MenuProps = {
|
|
|
958
974
|
/**
|
|
959
975
|
* A name for this menu, which screen readers will announce.
|
|
960
976
|
* Only applies to the `inWideWindow` appearance: otherwise, the menu is in the Page Header, which ensures accessibility itself.
|
|
961
|
-
* @default
|
|
977
|
+
* @default Hoofdmenu
|
|
962
978
|
*/
|
|
963
979
|
accessibleName?: string;
|
|
964
980
|
/** Hides the component on narrow windows. */
|
|
@@ -971,7 +987,7 @@ declare const Menu: react.ForwardRefExoticComponent<{
|
|
|
971
987
|
/**
|
|
972
988
|
* A name for this menu, which screen readers will announce.
|
|
973
989
|
* Only applies to the `inWideWindow` appearance: otherwise, the menu is in the Page Header, which ensures accessibility itself.
|
|
974
|
-
* @default
|
|
990
|
+
* @default Hoofdmenu
|
|
975
991
|
*/
|
|
976
992
|
accessibleName?: string;
|
|
977
993
|
/** Hides the component on narrow windows. */
|
|
@@ -1112,7 +1128,10 @@ type PageHeaderProps = {
|
|
|
1112
1128
|
menuButtonTextForShow?: string;
|
|
1113
1129
|
/** A slot for the menu items. Use PageHeader.MenuLink here. */
|
|
1114
1130
|
menuItems?: ReactNode;
|
|
1115
|
-
/**
|
|
1131
|
+
/**
|
|
1132
|
+
* The accessible label for the navigation section.
|
|
1133
|
+
* @default Hoofdmenu
|
|
1134
|
+
*/
|
|
1116
1135
|
navigationLabel?: string;
|
|
1117
1136
|
/** Whether the menu button is visible on wide screens. */
|
|
1118
1137
|
noMenuButtonOnWideWindow?: boolean;
|
|
@@ -1148,7 +1167,10 @@ declare const PageHeader: react.ForwardRefExoticComponent<{
|
|
|
1148
1167
|
menuButtonTextForShow?: string;
|
|
1149
1168
|
/** A slot for the menu items. Use PageHeader.MenuLink here. */
|
|
1150
1169
|
menuItems?: ReactNode;
|
|
1151
|
-
/**
|
|
1170
|
+
/**
|
|
1171
|
+
* The accessible label for the navigation section.
|
|
1172
|
+
* @default Hoofdmenu
|
|
1173
|
+
*/
|
|
1152
1174
|
navigationLabel?: string;
|
|
1153
1175
|
/** Whether the menu button is visible on wide screens. */
|
|
1154
1176
|
noMenuButtonOnWideWindow?: boolean;
|
|
@@ -1315,10 +1337,17 @@ declare const PasswordInput: react.ForwardRefExoticComponent<{
|
|
|
1315
1337
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, "autoCapitalize" | "spellCheck" | "autoCorrect" | "aria-invalid" | "type"> & react.RefAttributes<HTMLInputElement>>;
|
|
1316
1338
|
|
|
1317
1339
|
type ProgressListStepProps = {
|
|
1340
|
+
/**
|
|
1341
|
+
* Whether the content is initially collapsed.
|
|
1342
|
+
* Defaults to `true` when `status` is `'completed'`, and `false` otherwise.
|
|
1343
|
+
*/
|
|
1344
|
+
defaultCollapsed?: boolean;
|
|
1318
1345
|
/** Whether the step contains a list of substeps. This is needed to draw the connecting lines correctly. */
|
|
1319
1346
|
hasSubsteps?: boolean;
|
|
1320
1347
|
/** The heading text for this step. */
|
|
1321
1348
|
heading: string;
|
|
1349
|
+
/** Callback fired when the step is expanded or collapsed. Receives the new expanded state. */
|
|
1350
|
+
onToggle?: (expanded: boolean) => void;
|
|
1322
1351
|
/** The current progress state of the step. */
|
|
1323
1352
|
status?: 'current' | 'completed';
|
|
1324
1353
|
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
@@ -1365,8 +1394,10 @@ declare const ProgressList: react.ForwardRefExoticComponent<{
|
|
|
1365
1394
|
children?: react.ReactNode | undefined;
|
|
1366
1395
|
} & react.RefAttributes<HTMLOListElement>> & {
|
|
1367
1396
|
Step: react.ForwardRefExoticComponent<{
|
|
1397
|
+
defaultCollapsed?: boolean;
|
|
1368
1398
|
hasSubsteps?: boolean;
|
|
1369
1399
|
heading: string;
|
|
1400
|
+
onToggle?: (expanded: boolean) => void;
|
|
1370
1401
|
status?: "current" | "completed";
|
|
1371
1402
|
} & HTMLAttributes<HTMLElement> & {
|
|
1372
1403
|
children?: react.ReactNode | undefined;
|