@amsterdam/design-system-react 3.0.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/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/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/PageHeader/PageHeader.d.ts +6 -1
- package/dist/PageHeader/PageHeader.js +2 -2
- 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/index.cjs.js +671 -632
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +107 -57
- package/dist/index.esm.js +673 -635
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +9 -9
- 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>>;
|
|
@@ -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,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;
|
|
@@ -1101,6 +1093,8 @@ type PageHeaderProps = {
|
|
|
1101
1093
|
logoLinkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1102
1094
|
/** The accessible text for the link on the logo. */
|
|
1103
1095
|
logoLinkTitle?: string;
|
|
1096
|
+
/** An icon to display instead of the default icon. */
|
|
1097
|
+
menuButtonIcon?: IconProps['svg'];
|
|
1104
1098
|
/** The visible text for the menu button. */
|
|
1105
1099
|
menuButtonText?: string;
|
|
1106
1100
|
/** The text for screen readers when the button hides the menu. */
|
|
@@ -1130,6 +1124,8 @@ declare const PageHeader: react.ForwardRefExoticComponent<{
|
|
|
1130
1124
|
logoLinkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1131
1125
|
/** The accessible text for the link on the logo. */
|
|
1132
1126
|
logoLinkTitle?: string;
|
|
1127
|
+
/** An icon to display instead of the default icon. */
|
|
1128
|
+
menuButtonIcon?: IconProps["svg"];
|
|
1133
1129
|
/** The visible text for the menu button. */
|
|
1134
1130
|
menuButtonText?: string;
|
|
1135
1131
|
/** The text for screen readers when the button hides the menu. */
|
|
@@ -1304,12 +1300,66 @@ declare const PasswordInput: react.ForwardRefExoticComponent<{
|
|
|
1304
1300
|
invalid?: boolean;
|
|
1305
1301
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, "autoCapitalize" | "spellCheck" | "autoCorrect" | "aria-invalid" | "type"> & react.RefAttributes<HTMLInputElement>>;
|
|
1306
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
|
+
|
|
1307
1357
|
type RadioProps = {
|
|
1308
1358
|
/**
|
|
1309
1359
|
* An icon to display instead of the default icon.
|
|
1310
1360
|
* @default RadioIcon
|
|
1311
1361
|
*/
|
|
1312
|
-
icon?:
|
|
1362
|
+
icon?: IconProps['svg'];
|
|
1313
1363
|
/** Whether the value fails a validation rule. */
|
|
1314
1364
|
invalid?: boolean;
|
|
1315
1365
|
} & PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>>;
|
|
@@ -1321,11 +1371,11 @@ declare const Radio: react.ForwardRefExoticComponent<{
|
|
|
1321
1371
|
* An icon to display instead of the default icon.
|
|
1322
1372
|
* @default RadioIcon
|
|
1323
1373
|
*/
|
|
1324
|
-
icon?:
|
|
1374
|
+
icon?: IconProps["svg"];
|
|
1325
1375
|
/** Whether the value fails a validation rule. */
|
|
1326
1376
|
invalid?: boolean;
|
|
1327
1377
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
|
|
1328
|
-
children?: ReactNode | undefined;
|
|
1378
|
+
children?: react.ReactNode | undefined;
|
|
1329
1379
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
1330
1380
|
|
|
1331
1381
|
declare const rowTags: readonly ["article", "div", "section"];
|
|
@@ -1958,5 +2008,5 @@ declare const UnorderedList: react.ForwardRefExoticComponent<{
|
|
|
1958
2008
|
|
|
1959
2009
|
type UnorderedListItemProps = PropsWithChildren<LiHTMLAttributes<HTMLLIElement>>;
|
|
1960
2010
|
|
|
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,
|
|
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 };
|