@luscii-healthtech/web-ui 58.19.2 → 59.0.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/esm/components/Accordion/AccordionItem.js +2 -2
- package/dist/esm/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/esm/components/Avatar/Avatar.js +9 -29
- package/dist/esm/components/Avatar/Avatar.js.map +1 -1
- package/dist/esm/components/Avatar/AvatarGroup.js +2 -8
- package/dist/esm/components/Avatar/AvatarGroup.js.map +1 -1
- package/dist/esm/components/Badge/Badge.js +1 -3
- package/dist/esm/components/Badge/Badge.js.map +1 -1
- package/dist/esm/components/ButtonV2/ButtonV2.js +11 -10
- package/dist/esm/components/ButtonV2/ButtonV2.js.map +1 -1
- package/dist/esm/components/ButtonV2/PrimaryButton.js +1 -1
- package/dist/esm/components/ButtonV2/PrimaryButton.js.map +1 -1
- package/dist/esm/components/ButtonV2/SecondaryButton.js +1 -1
- package/dist/esm/components/ButtonV2/TertiaryButton.js +1 -1
- package/dist/esm/components/Card/Card.js +4 -4
- package/dist/esm/components/Card/Card.js.map +1 -1
- package/dist/esm/components/CenteredHero/CenteredHero.js +2 -2
- package/dist/esm/components/CenteredHero/CenteredHero.js.map +1 -1
- package/dist/esm/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/esm/components/ConfirmationDialog/ConfirmationDialog.js +1 -1
- package/dist/esm/components/ConfirmationDialog/ConfirmationDialog.js.map +1 -1
- package/dist/esm/components/ConfirmationDialog/ConfirmationDialogChoices.js +5 -13
- package/dist/esm/components/ConfirmationDialog/ConfirmationDialogChoices.js.map +1 -1
- package/dist/esm/components/ConfirmationDialog/ConfirmationDialogMessage.js +1 -1
- package/dist/esm/components/ConfirmationDialog/ConfirmationDialogMessage.js.map +1 -1
- package/dist/esm/components/ConfirmationDialog/ConfirmationDialogTitle.js +2 -2
- package/dist/esm/components/ConfirmationDialog/ConfirmationDialogTitle.js.map +1 -1
- package/dist/esm/components/DatePicker/DatePicker.js +2 -3
- package/dist/esm/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/esm/components/EmptyListMessage/EmptyListMessage.js +1 -1
- package/dist/esm/components/EmptyListMessage/EmptyListMessage.js.map +1 -1
- package/dist/esm/components/FlyOutMenu/FlyOutMenu.js +3 -4
- package/dist/esm/components/FlyOutMenu/FlyOutMenu.js.map +1 -1
- package/dist/esm/components/InfoField/InfoField.js +1 -1
- package/dist/esm/components/InfoField/InfoField.js.map +1 -1
- package/dist/esm/components/Input/SearchInput.js.map +1 -1
- package/dist/esm/components/MediaPicker/ImageCategory.js +1 -1
- package/dist/esm/components/MediaPicker/ImageCategory.js.map +1 -1
- package/dist/esm/components/MediaPicker/MediaPicker.js +1 -1
- package/dist/esm/components/MediaPicker/MediaPicker.js.map +1 -1
- package/dist/esm/components/Modal/FullPageModal.js +2 -2
- package/dist/esm/components/Modal/FullPageModal.js.map +1 -1
- package/dist/esm/components/Modal/FullPageModalHeader.js +2 -3
- package/dist/esm/components/Modal/FullPageModalHeader.js.map +1 -1
- package/dist/esm/components/Modal/ModalBase.js +1 -1
- package/dist/esm/components/Modal/ModalBase.js.map +1 -1
- package/dist/esm/components/Modal/ModalFooter.js +3 -5
- package/dist/esm/components/Modal/ModalFooter.js.map +1 -1
- package/dist/esm/components/Modal/ModalHeader.js +2 -2
- package/dist/esm/components/Modal/ModalHeader.js.map +1 -1
- package/dist/esm/components/Page/CRUDPage.js +3 -7
- package/dist/esm/components/Page/CRUDPage.js.map +1 -1
- package/dist/esm/components/Page/Page.js +2 -2
- package/dist/esm/components/Page/Page.js.map +1 -1
- package/dist/esm/components/PaginationMenu/PaginationMenu.js +1 -1
- package/dist/esm/components/PaginationMenu/PaginationMenu.js.map +1 -1
- package/dist/esm/components/RangeCoverage/RangeCoverage.js +2 -2
- package/dist/esm/components/RangeCoverage/RangeCoverage.js.map +1 -1
- package/dist/esm/components/Section/Section.js.map +1 -1
- package/dist/esm/components/Section/SectionItemWithContent.js +1 -1
- package/dist/esm/components/Section/SectionItemWithContent.js.map +1 -1
- package/dist/esm/components/Section/subcomponents/SectionHeader.js +2 -2
- package/dist/esm/components/Section/subcomponents/SectionHeader.js.map +1 -1
- package/dist/esm/components/SettingsMenuButton/SettingsMenuButton.js +3 -3
- package/dist/esm/components/SettingsMenuButton/SettingsMenuButton.js.map +1 -1
- package/dist/esm/components/Switcher/SwitcherItem.js +1 -1
- package/dist/esm/components/Switcher/SwitcherItem.js.map +1 -1
- package/dist/esm/components/Table/TableBodyRowDataCell.js +2 -1
- package/dist/esm/components/Table/TableBodyRowDataCell.js.map +1 -1
- package/dist/esm/components/Tag/TagGroup.js +2 -3
- package/dist/esm/components/Tag/TagGroup.js.map +1 -1
- package/dist/esm/components/Text/Text.js +7 -15
- package/dist/esm/components/Text/Text.js.map +1 -1
- package/dist/esm/components/TextEditor/LinkTooltip.js +1 -1
- package/dist/esm/components/TextEditor/LinkTooltip.js.map +1 -1
- package/dist/esm/components/Timeline/TimelineHeader.js +2 -2
- package/dist/esm/components/Timeline/TimelineHeader.js.map +1 -1
- package/dist/esm/components/Timeline/TimelineStep.js +1 -1
- package/dist/esm/components/Timeline/TimelineStep.js.map +1 -1
- package/dist/esm/components/TimelineCard/TimelineCard.js +6 -8
- package/dist/esm/components/TimelineCard/TimelineCard.js.map +1 -1
- package/dist/esm/components/Title/PageTitle.js +1 -0
- package/dist/esm/components/Title/PageTitle.js.map +1 -1
- package/dist/esm/index.js +2 -20
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/system/Sizes.js.map +1 -1
- package/dist/index.development.js +668 -1139
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/ActionController/ActionController.d.ts +1 -1
- package/dist/src/components/Avatar/Avatar.d.ts +9 -42
- package/dist/src/components/Badge/Badge.d.ts +0 -4
- package/dist/src/components/Box/Box.d.ts +3 -3
- package/dist/src/components/ButtonV2/ButtonProps.type.d.ts +0 -13
- package/dist/src/components/Card/Card.d.ts +3 -3
- package/dist/src/components/Checkbox/Checkbox.d.ts +2 -11
- package/dist/src/components/ConfirmationDialog/ConfirmationDialogChoices.d.ts +1 -1
- package/dist/src/components/ConfirmationDialog/types/ConfirmationDialog.types.d.ts +2 -2
- package/dist/src/components/DatePicker/DatePicker.d.ts +0 -10
- package/dist/src/components/DropdownTrigger/DropdownTrigger.d.ts +1 -1
- package/dist/src/components/EmptyListMessage/EmptyListMessage.d.ts +1 -5
- package/dist/src/components/FlyOutMenu/FlyOutMenu.d.ts +0 -4
- package/dist/src/components/Icons/types/IconProps.type.d.ts +1 -1
- package/dist/src/components/Input/Input.d.ts +1 -1
- package/dist/src/components/Input/SearchInput.d.ts +0 -11
- package/dist/src/components/Input/StyledInput.d.ts +2 -2
- package/dist/src/components/InputSelect/InputSelect.d.ts +1 -1
- package/dist/src/components/InputSelect/InputSelect.utils.d.ts +1 -1
- package/dist/src/components/LoadingIndicator/LoadingIndicator.d.ts +1 -1
- package/dist/src/components/Modal/FullPageModal.d.ts +0 -10
- package/dist/src/components/Modal/FullPageModalHeader.d.ts +0 -7
- package/dist/src/components/Modal/ModalFooter.d.ts +0 -17
- package/dist/src/components/NaturalLanguageForm/NaturalLanguageForm.d.ts +1 -5
- package/dist/src/components/NaturalLanguageForm/NaturalLanguageFormContext.d.ts +1 -1
- package/dist/src/components/Page/CRUDPage.types.d.ts +0 -25
- package/dist/src/components/PaginationMenu/PaginationMenu.types.d.ts +5 -16
- package/dist/src/components/Section/Section.d.ts +0 -4
- package/dist/src/components/Select/StyledSelect.d.ts +2 -2
- package/dist/src/components/Stack/Stack.d.ts +1 -1
- package/dist/src/components/Table/Table.types.d.ts +6 -3
- package/dist/src/components/Tag/TagGroup.d.ts +1 -17
- package/dist/src/components/Text/Text.d.ts +0 -33
- package/dist/src/components/Timeline/TimelineHeader.d.ts +3 -3
- package/dist/src/components/TimelineCard/TimelineCard.d.ts +2 -21
- package/dist/src/components/Title/PageTitle.d.ts +1 -0
- package/dist/src/components/UnorderedList/UnorderedList.d.ts +1 -1
- package/dist/src/components/forms/shared/LabelText.d.ts +1 -1
- package/dist/src/generated/components/ActionController/ActionController.d.ts +1 -1
- package/dist/src/generated/components/Avatar/Avatar.d.ts +9 -42
- package/dist/src/generated/components/Badge/Badge.d.ts +0 -4
- package/dist/src/generated/components/Box/Box.d.ts +3 -3
- package/dist/src/generated/components/ButtonV2/ButtonProps.type.d.ts +0 -13
- package/dist/src/generated/components/Card/Card.d.ts +3 -3
- package/dist/src/generated/components/Checkbox/Checkbox.d.ts +2 -11
- package/dist/src/generated/components/ConfirmationDialog/ConfirmationDialogChoices.d.ts +1 -1
- package/dist/src/generated/components/ConfirmationDialog/types/ConfirmationDialog.types.d.ts +2 -2
- package/dist/src/generated/components/DatePicker/DatePicker.d.ts +0 -10
- package/dist/src/generated/components/DropdownTrigger/DropdownTrigger.d.ts +1 -1
- package/dist/src/generated/components/EmptyListMessage/EmptyListMessage.d.ts +1 -5
- package/dist/src/generated/components/FlyOutMenu/FlyOutMenu.d.ts +0 -4
- package/dist/src/generated/components/Icons/types/IconProps.type.d.ts +1 -1
- package/dist/src/generated/components/Input/Input.d.ts +1 -1
- package/dist/src/generated/components/Input/SearchInput.d.ts +0 -11
- package/dist/src/generated/components/Input/StyledInput.d.ts +2 -2
- package/dist/src/generated/components/InputSelect/InputSelect.d.ts +1 -1
- package/dist/src/generated/components/InputSelect/InputSelect.utils.d.ts +1 -1
- package/dist/src/generated/components/LoadingIndicator/LoadingIndicator.d.ts +1 -1
- package/dist/src/generated/components/Modal/FullPageModal.d.ts +0 -10
- package/dist/src/generated/components/Modal/FullPageModalHeader.d.ts +0 -7
- package/dist/src/generated/components/Modal/ModalFooter.d.ts +0 -17
- package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageForm.d.ts +1 -5
- package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormContext.d.ts +1 -1
- package/dist/src/generated/components/Page/CRUDPage.types.d.ts +0 -25
- package/dist/src/generated/components/PaginationMenu/PaginationMenu.types.d.ts +5 -16
- package/dist/src/generated/components/Section/Section.d.ts +0 -4
- package/dist/src/generated/components/Select/StyledSelect.d.ts +2 -2
- package/dist/src/generated/components/Stack/Stack.d.ts +1 -1
- package/dist/src/generated/components/Table/Table.types.d.ts +6 -3
- package/dist/src/generated/components/Tag/TagGroup.d.ts +1 -17
- package/dist/src/generated/components/Text/Text.d.ts +0 -33
- package/dist/src/generated/components/Timeline/TimelineHeader.d.ts +3 -3
- package/dist/src/generated/components/TimelineCard/TimelineCard.d.ts +2 -21
- package/dist/src/generated/components/Title/PageTitle.d.ts +1 -0
- package/dist/src/generated/components/UnorderedList/UnorderedList.d.ts +1 -1
- package/dist/src/generated/components/forms/shared/LabelText.d.ts +1 -1
- package/dist/src/generated/index.d.ts +2 -11
- package/dist/src/generated/system/Sizes.d.ts +2 -5
- package/dist/src/generated/types/general.types.d.ts +1 -1
- package/dist/src/index.d.ts +2 -11
- package/dist/src/system/Sizes.d.ts +2 -5
- package/dist/src/types/general.types.d.ts +1 -1
- package/dist/stories/AccordionListRecipe.stories.d.ts +1 -2
- package/dist/stories/ActionController.stories.d.ts +6 -6
- package/dist/stories/AsideLayout.stories.d.ts +6 -6
- package/dist/stories/Avatar.stories.d.ts +4 -9
- package/dist/stories/Badge.stories.d.ts +0 -1
- package/dist/stories/Box.stories.d.ts +6 -6
- package/dist/stories/DatePicker.stories.d.ts +0 -1
- package/dist/stories/DetailsDisclosure.stories.d.ts +1669 -1669
- package/dist/stories/Divider.stories.d.ts +12 -12
- package/dist/stories/FullPageModal.stories.d.ts +0 -11
- package/dist/stories/HoverIndicatorControl.stories.d.ts +6 -6
- package/dist/stories/LabeledDatePicker.stories.d.ts +0 -1
- package/dist/stories/ListRecipe.stories.d.ts +1 -2
- package/dist/stories/ModalDialog.stories.d.ts +3553 -3553
- package/dist/stories/NaturalLanguageForm.stories.d.ts +0 -4
- package/dist/stories/PageWithCenteredContentLayout.stories.d.ts +18 -18
- package/dist/stories/PrimaryTabBar.stories.d.ts +44 -44
- package/dist/stories/RangeCoverage.stories.d.ts +1 -1
- package/dist/stories/Section.stories.d.ts +6 -6
- package/dist/stories/SplitViewLayout.stories.d.ts +6 -6
- package/dist/stories/Stack.stories.d.ts +1 -1
- package/dist/stories/StyledOrderedList.stories.d.ts +44 -44
- package/dist/stories/StyledUnorderedList.stories.d.ts +44 -44
- package/dist/stories/Tabs.stories.d.ts +6 -6
- package/dist/stories/Text.stories.d.ts +0 -20
- package/dist/stories/TextColors.stories.d.ts +0 -1
- package/dist/stories/TextLegacy.stories.d.ts +0 -3
- package/dist/stories/TimelineCard.stories.d.ts +0 -8
- package/dist/stories/TimelineCardLayout.stories.d.ts +6 -6
- package/dist/stories/VerticalMenu.stories.d.ts +6 -6
- package/dist/web-ui-tailwind.css +0 -127
- package/package.json +18 -24
- package/dist/esm/components/AccordionList/AccordionList.js +0 -74
- package/dist/esm/components/AccordionList/AccordionList.js.map +0 -1
- package/dist/esm/components/AccordionList/subcomponents/AccordionListActions.js +0 -8
- package/dist/esm/components/AccordionList/subcomponents/AccordionListActions.js.map +0 -1
- package/dist/esm/components/BaseList/BaseList.js +0 -28
- package/dist/esm/components/BaseList/BaseList.js.map +0 -1
- package/dist/esm/components/BaseList/BaseListEmptyState.js +0 -14
- package/dist/esm/components/BaseList/BaseListEmptyState.js.map +0 -1
- package/dist/esm/components/BaseList/BaseListHeader.js +0 -24
- package/dist/esm/components/BaseList/BaseListHeader.js.map +0 -1
- package/dist/esm/components/BaseList/BaseListIcon.js +0 -19
- package/dist/esm/components/BaseList/BaseListIcon.js.map +0 -1
- package/dist/esm/components/BaseList/BaseListItem.js +0 -40
- package/dist/esm/components/BaseList/BaseListItem.js.map +0 -1
- package/dist/esm/components/BaseList/DraggableBaseList/DraggableBaseList.js +0 -12
- package/dist/esm/components/BaseList/DraggableBaseList/DraggableBaseList.js.map +0 -1
- package/dist/esm/components/BaseList/DraggableBaseList/DraggableBaseListItem.js +0 -22
- package/dist/esm/components/BaseList/DraggableBaseList/DraggableBaseListItem.js.map +0 -1
- package/dist/esm/components/BaseList/ListSkeleton/ListItemSkeleton.js +0 -8
- package/dist/esm/components/BaseList/ListSkeleton/ListItemSkeleton.js.map +0 -1
- package/dist/esm/components/BaseList/ListSkeleton/ListSkeleton.js +0 -13
- package/dist/esm/components/BaseList/ListSkeleton/ListSkeleton.js.map +0 -1
- package/dist/esm/components/BaseList/ListSkeleton/ListSkeleton.scss.js +0 -5
- package/dist/esm/components/BaseList/ListSkeleton/ListSkeleton.scss.js.map +0 -1
- package/dist/esm/components/BaseList/SortableBaseList/SortableBaseList.js +0 -13
- package/dist/esm/components/BaseList/SortableBaseList/SortableBaseList.js.map +0 -1
- package/dist/esm/components/BaseList/SortableBaseList/SortableBaseListItem.js +0 -28
- package/dist/esm/components/BaseList/SortableBaseList/SortableBaseListItem.js.map +0 -1
- package/dist/esm/components/BaseList/utils.js +0 -29
- package/dist/esm/components/BaseList/utils.js.map +0 -1
- package/dist/esm/components/List/List.js +0 -125
- package/dist/esm/components/List/List.js.map +0 -1
- package/dist/esm/components/List/ListItem.js +0 -16
- package/dist/esm/components/List/ListItem.js.map +0 -1
- package/dist/esm/components/Radio/RadioV2.js +0 -19
- package/dist/esm/components/Radio/RadioV2.js.map +0 -1
- package/dist/esm/components/RadioGroup/RadioGroupV2.js +0 -22
- package/dist/esm/components/RadioGroup/RadioGroupV2.js.map +0 -1
- package/dist/esm/components/TextLink/TextLink.js +0 -19
- package/dist/esm/components/TextLink/TextLink.js.map +0 -1
- package/dist/esm/components/Title/Title.js +0 -51
- package/dist/esm/components/Title/Title.js.map +0 -1
- package/dist/src/components/AccordionList/AccordionList.d.ts +0 -54
- package/dist/src/components/AccordionList/subcomponents/AccordionListActions.d.ts +0 -18
- package/dist/src/components/BaseList/BaseList.d.ts +0 -7
- package/dist/src/components/BaseList/BaseList.types.d.ts +0 -88
- package/dist/src/components/BaseList/BaseListEmptyState.d.ts +0 -7
- package/dist/src/components/BaseList/BaseListHeader.d.ts +0 -4
- package/dist/src/components/BaseList/BaseListIcon.d.ts +0 -5
- package/dist/src/components/BaseList/BaseListItem.d.ts +0 -4
- package/dist/src/components/BaseList/DraggableBaseList/DraggableBaseList.d.ts +0 -4
- package/dist/src/components/BaseList/DraggableBaseList/DraggableBaseListItem.d.ts +0 -3
- package/dist/src/components/BaseList/DraggableBaseList/index.d.ts +0 -2
- package/dist/src/components/BaseList/ListSkeleton/ListItemSkeleton.d.ts +0 -2
- package/dist/src/components/BaseList/ListSkeleton/ListSkeleton.d.ts +0 -13
- package/dist/src/components/BaseList/SortableBaseList/SortableBaseList.d.ts +0 -4
- package/dist/src/components/BaseList/SortableBaseList/SortableBaseListItem.d.ts +0 -3
- package/dist/src/components/BaseList/SortableBaseList/index.d.ts +0 -2
- package/dist/src/components/BaseList/index.d.ts +0 -6
- package/dist/src/components/BaseList/utils.d.ts +0 -10
- package/dist/src/components/List/List.d.ts +0 -8
- package/dist/src/components/List/List.types.d.ts +0 -30
- package/dist/src/components/List/ListItem.d.ts +0 -4
- package/dist/src/components/List/index.d.ts +0 -5
- package/dist/src/components/Radio/RadioV2.d.ts +0 -23
- package/dist/src/components/RadioGroup/RadioGroupV2.d.ts +0 -23
- package/dist/src/components/TextLink/TextLink.d.ts +0 -14
- package/dist/src/components/Title/Title.d.ts +0 -44
- package/dist/src/generated/components/AccordionList/AccordionList.d.ts +0 -54
- package/dist/src/generated/components/AccordionList/subcomponents/AccordionListActions.d.ts +0 -18
- package/dist/src/generated/components/BaseList/BaseList.d.ts +0 -7
- package/dist/src/generated/components/BaseList/BaseList.types.d.ts +0 -88
- package/dist/src/generated/components/BaseList/BaseListEmptyState.d.ts +0 -7
- package/dist/src/generated/components/BaseList/BaseListHeader.d.ts +0 -4
- package/dist/src/generated/components/BaseList/BaseListIcon.d.ts +0 -5
- package/dist/src/generated/components/BaseList/BaseListItem.d.ts +0 -4
- package/dist/src/generated/components/BaseList/DraggableBaseList/DraggableBaseList.d.ts +0 -4
- package/dist/src/generated/components/BaseList/DraggableBaseList/DraggableBaseListItem.d.ts +0 -3
- package/dist/src/generated/components/BaseList/DraggableBaseList/index.d.ts +0 -2
- package/dist/src/generated/components/BaseList/ListSkeleton/ListItemSkeleton.d.ts +0 -2
- package/dist/src/generated/components/BaseList/ListSkeleton/ListSkeleton.d.ts +0 -13
- package/dist/src/generated/components/BaseList/SortableBaseList/SortableBaseList.d.ts +0 -4
- package/dist/src/generated/components/BaseList/SortableBaseList/SortableBaseListItem.d.ts +0 -3
- package/dist/src/generated/components/BaseList/SortableBaseList/index.d.ts +0 -2
- package/dist/src/generated/components/BaseList/index.d.ts +0 -6
- package/dist/src/generated/components/BaseList/utils.d.ts +0 -10
- package/dist/src/generated/components/List/List.d.ts +0 -8
- package/dist/src/generated/components/List/List.types.d.ts +0 -30
- package/dist/src/generated/components/List/ListItem.d.ts +0 -4
- package/dist/src/generated/components/List/index.d.ts +0 -5
- package/dist/src/generated/components/Radio/RadioV2.d.ts +0 -23
- package/dist/src/generated/components/RadioGroup/RadioGroupV2.d.ts +0 -23
- package/dist/src/generated/components/TextLink/TextLink.d.ts +0 -14
- package/dist/src/generated/components/Title/Title.d.ts +0 -44
- package/dist/stories/AccordionList.stories.d.ts +0 -120
- package/dist/stories/BaseList.stories.d.ts +0 -16
- package/dist/stories/Checkbox.stories.d.ts +0 -61
- package/dist/stories/DraggableAccordionList.stories.d.ts +0 -11
- package/dist/stories/DraggableList.stories.d.ts +0 -9
- package/dist/stories/EmptyListMessage.stories.d.ts +0 -32
- package/dist/stories/List.stories.d.ts +0 -248
- package/dist/stories/RadioGroupV2.stories.d.ts +0 -37
- package/dist/stories/RadioV2.stories.d.ts +0 -42
- package/dist/stories/SortableList.stories.d.ts +0 -9
- package/dist/stories/TextLink.stories.d.ts +0 -10
- package/dist/stories/Title.stories.d.ts +0 -16
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
import { type FC, type ReactNode } from "react";
|
|
2
|
-
import { type IconKey } from "../Icons/types/IconProps.type";
|
|
3
2
|
type Props = {
|
|
4
3
|
title: ReactNode;
|
|
5
4
|
subtitle?: ReactNode;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated use leadingIcon instead.
|
|
8
|
-
*/
|
|
9
|
-
icon?: {
|
|
10
|
-
url: string;
|
|
11
|
-
iconKey?: never;
|
|
12
|
-
} | {
|
|
13
|
-
iconKey: IconKey;
|
|
14
|
-
url?: never;
|
|
15
|
-
};
|
|
16
5
|
/**
|
|
17
6
|
* The icon to render on the leading side of the card
|
|
18
7
|
*/
|
|
@@ -25,18 +14,10 @@ type Props = {
|
|
|
25
14
|
* Copy to display the status of the card
|
|
26
15
|
*/
|
|
27
16
|
statusText?: string;
|
|
28
|
-
/**
|
|
29
|
-
* The state of the card, options are:
|
|
30
|
-
* - default
|
|
31
|
-
* - highlighted
|
|
32
|
-
* - bold
|
|
33
|
-
* @default "default"
|
|
34
|
-
*
|
|
35
|
-
* @deprecated use variant instead
|
|
36
|
-
*/
|
|
37
|
-
state?: "default" | "highlighted" | "bold";
|
|
38
17
|
/**
|
|
39
18
|
* The variant to present
|
|
19
|
+
*
|
|
20
|
+
* @default "default"
|
|
40
21
|
*/
|
|
41
22
|
variant?: "default" | "highlighted" | "bold";
|
|
42
23
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentProps } from "react";
|
|
2
|
-
import { Text } from "../../Text/Text.
|
|
2
|
+
import { Text } from "../../Text/Text.js";
|
|
3
3
|
type Props = ComponentProps<typeof Text>;
|
|
4
4
|
export declare const LabelText: (props: Props) => import("react").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FC, type ComponentProps, type ElementType, type ReactNode } from "react";
|
|
2
|
-
import { type SemanticBackgroundColor } from "../../../types/general.types.
|
|
2
|
+
import { type SemanticBackgroundColor } from "../../../types/general.types.js";
|
|
3
3
|
import { Box } from "../Box/Box";
|
|
4
4
|
type Props = {
|
|
5
5
|
/**
|
|
@@ -1,46 +1,10 @@
|
|
|
1
1
|
import type { ReactNode, FC } from "react";
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated Use `isSelf` instead: `primary` -> `isSelf`, `slate` ->
|
|
4
|
-
* `isSelf={false}`. The design system models this as who the avatar
|
|
5
|
-
* belongs to, not as a color, and these names no longer describe the
|
|
6
|
-
* colors that are actually rendered.
|
|
7
|
-
*/
|
|
8
|
-
type AvatarColor = "primary" | "slate";
|
|
9
2
|
/**
|
|
10
3
|
* The sizes defined by the design system. Their actual dimensions come
|
|
11
4
|
* from the semantic size tokens in `avatarSizeTokens`, so they follow
|
|
12
5
|
* the design whenever the tokens are re-exported.
|
|
13
6
|
*/
|
|
14
7
|
type AvatarSize = "xs" | "s" | "m";
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated Use the design system sizes instead: `xsmall` -> `xs`,
|
|
17
|
-
* `small` -> `s`, `medium` -> `m`. `large` has no equivalent in the
|
|
18
|
-
* design system and will be removed in a future major release.
|
|
19
|
-
*/
|
|
20
|
-
type LegacyAvatarSize = "large" | "medium" | "small" | "xsmall";
|
|
21
|
-
type AvatarSizeProp = AvatarSize | LegacyAvatarSize;
|
|
22
|
-
/**
|
|
23
|
-
* Union to prevent both "isSelf" and the deprecated "color" from being
|
|
24
|
-
* used at the same time, which would otherwise silently let one of them
|
|
25
|
-
* win. Passing both is a type error.
|
|
26
|
-
*/
|
|
27
|
-
type ColorProps = {
|
|
28
|
-
/**
|
|
29
|
-
* Whether the avatar belongs to the current user. Self avatars are
|
|
30
|
-
* rendered in the brand color, everyone else in neutral.
|
|
31
|
-
*
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
isSelf?: boolean;
|
|
35
|
-
color?: never;
|
|
36
|
-
} | {
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated Use `isSelf` instead: `primary` -> `isSelf`,
|
|
39
|
-
* `slate` -> `isSelf={false}`.
|
|
40
|
-
*/
|
|
41
|
-
color: AvatarColor;
|
|
42
|
-
isSelf?: never;
|
|
43
|
-
};
|
|
44
8
|
/**
|
|
45
9
|
* Union to prevent both "initials" and "children" to be used at the same time.
|
|
46
10
|
*/
|
|
@@ -62,13 +26,16 @@ type Props = {
|
|
|
62
26
|
*/
|
|
63
27
|
alt?: string;
|
|
64
28
|
/**
|
|
65
|
-
* Size of the avatar. Prefer the current sizes `xs`, `s` and `m`. The
|
|
66
|
-
* `xsmall` / `small` / `medium` spellings are deprecated aliases of
|
|
67
|
-
* those, and `large` is deprecated without a replacement.
|
|
68
|
-
*
|
|
69
29
|
* @default "m"
|
|
70
30
|
*/
|
|
71
|
-
size?:
|
|
31
|
+
size?: AvatarSize;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the avatar belongs to the current user. Self avatars are
|
|
34
|
+
* rendered in the brand color, everyone else in neutral.
|
|
35
|
+
*
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
isSelf?: boolean;
|
|
72
39
|
/**
|
|
73
40
|
* URL to an image to be used as the default image.
|
|
74
41
|
* If this is set, the image provided via `src` will never render.
|
|
@@ -80,7 +47,7 @@ type Props = {
|
|
|
80
47
|
* makes it so that the avatars overlap each other a bit, as designed.
|
|
81
48
|
*/
|
|
82
49
|
applyGroupOffset?: boolean;
|
|
83
|
-
} & BaseProps
|
|
50
|
+
} & BaseProps;
|
|
84
51
|
/**
|
|
85
52
|
* Displays a badge-style avatar. Keep in mind that
|
|
86
53
|
* you can only use `initials` or `children`, not both.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType, ReactElement } from "react";
|
|
2
|
-
import { type SpacingKey, type SIZES } from "../../../system/Sizes.
|
|
3
|
-
import { type ELEVATION } from "../../../system/Elevation.
|
|
4
|
-
import { type BackgroundColor, type CursorOption } from "../../../types/general.types.
|
|
2
|
+
import { type SpacingKey, type SIZES } from "../../../system/Sizes.js";
|
|
3
|
+
import { type ELEVATION } from "../../../system/Elevation.js";
|
|
4
|
+
import { type BackgroundColor, type CursorOption } from "../../../types/general.types.js";
|
|
5
5
|
declare const underscoredSpacingPropNames: readonly ["_p", "_pt", "_pr", "_pb", "_pl", "_px", "_py", "_m", "_mt", "_mr", "_mb", "_ml", "_mx", "_my"];
|
|
6
6
|
type UnderscoredSpacingProps = Partial<Record<(typeof underscoredSpacingPropNames)[number], SpacingKey>>;
|
|
7
7
|
type ElevationProp = keyof typeof ELEVATION;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Attributes, ComponentPropsWithRef, FC, ReactNode } from "react";
|
|
2
|
-
import type { IconKey, IconProps } from "../Icons/types/IconProps.type";
|
|
3
2
|
import { type TextColor, type TextHoverColor } from "../Text/Text";
|
|
4
3
|
/**
|
|
5
4
|
* Properties that are present in all variants of the button
|
|
@@ -8,14 +7,6 @@ import { type TextColor, type TextHoverColor } from "../Text/Text";
|
|
|
8
7
|
export interface BaseButtonProps extends ComponentPropsWithRef<"button"> {
|
|
9
8
|
size?: "medium" | "large";
|
|
10
9
|
children?: ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated Use `children` instead.
|
|
13
|
-
*/
|
|
14
|
-
text?: string;
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated Use `leadingIcon` instead.
|
|
17
|
-
*/
|
|
18
|
-
icon?: FC<IconProps> | IconKey;
|
|
19
10
|
/**
|
|
20
11
|
* Icon that will be rendered before the text. You need to
|
|
21
12
|
* pass in the rendered icon component, not the key.
|
|
@@ -36,10 +27,6 @@ export interface BaseButtonProps extends ComponentPropsWithRef<"button"> {
|
|
|
36
27
|
* ````
|
|
37
28
|
*/
|
|
38
29
|
trailingIcon?: ReactNode;
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated use `disabled` instead.
|
|
41
|
-
*/
|
|
42
|
-
isDisabled?: boolean;
|
|
43
30
|
className?: string;
|
|
44
31
|
dataTestId?: string;
|
|
45
32
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentProps, ElementType, ReactNode } from "react";
|
|
2
|
-
import type { ELEVATION } from "../../../system/Elevation.
|
|
2
|
+
import type { ELEVATION } from "../../../system/Elevation.js";
|
|
3
3
|
import { Box } from "../Box/Box";
|
|
4
|
-
import {
|
|
4
|
+
import { Heading } from "../Heading/Heading";
|
|
5
5
|
type TitleAndMaybeActions = {
|
|
6
6
|
title: string;
|
|
7
7
|
/**
|
|
@@ -72,7 +72,7 @@ export type Props<C extends ElementType = "div"> = ComponentProps<typeof Box<C>>
|
|
|
72
72
|
} & TitleAndMaybeActions;
|
|
73
73
|
export declare function Card<C extends ElementType = "div">(props: Props<C>): import("react").JSX.Element;
|
|
74
74
|
export declare namespace Card {
|
|
75
|
-
var Title: (props:
|
|
75
|
+
var Title: (props: ComponentProps<typeof Heading>) => import("react").JSX.Element;
|
|
76
76
|
var TopBar: import("react").FC<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
77
77
|
children?: ReactNode;
|
|
78
78
|
}> & {
|
|
@@ -66,16 +66,7 @@ export interface CheckboxProps {
|
|
|
66
66
|
renderLabel?: (props: CheckboxProps) => JSX.Element | null;
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* E.g. with React Hook Form:
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* ```tsx
|
|
75
|
-
* <LabeledCheckboxGroup>
|
|
76
|
-
* <LabeledCheckbox {...register("orderedMeals")} label="Anchovies pasta" value="anchovies-pasta" />
|
|
77
|
-
* <LabeledCheckbox {...register("orderedMeals")} label="Banana dessert" value="banana-dessert" />
|
|
78
|
-
* </LabeledCheckboxGroup>
|
|
79
|
-
* ```
|
|
69
|
+
* Internal: used by `Table` and `SettingsMenuButton`. Not exported; consumers use
|
|
70
|
+
* `LabeledCheckbox` in a `LabeledCheckboxGroup`.
|
|
80
71
|
*/
|
|
81
72
|
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type FC } from "react";
|
|
2
2
|
import { type ConfirmationDialogChoice, type ConfirmationDialogProps } from "./types/ConfirmationDialog.types";
|
|
3
3
|
export declare const ConfirmationDialogChoices: FC<{
|
|
4
4
|
choices: ConfirmationDialogProps["choices"];
|
package/dist/src/generated/components/ConfirmationDialog/types/ConfirmationDialog.types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IconKey, IconProps } from "../../../../components/Icons/types/IconProps.type.
|
|
2
|
-
import type { NotificationBannerColor } from "../../../../components/NotificationBanner/NotificationBanner.
|
|
1
|
+
import type { IconKey, IconProps } from "../../../../components/Icons/types/IconProps.type.js";
|
|
2
|
+
import type { NotificationBannerColor } from "../../../../components/NotificationBanner/NotificationBanner.js";
|
|
3
3
|
interface ConfirmationDialogTexts {
|
|
4
4
|
/**
|
|
5
5
|
* You can also use the `children` prop for this.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LOCALE_MAP } from "../../../system/Locale.d.ts";
|
|
2
1
|
import "react-datepicker/dist/react-datepicker.min.css";
|
|
3
2
|
import "./DatePicker.scss";
|
|
4
3
|
/**
|
|
@@ -24,15 +23,6 @@ type ReactDatePickerProps = {
|
|
|
24
23
|
popperZIndex?: 10 | 20 | 30 | 40 | 50;
|
|
25
24
|
};
|
|
26
25
|
export type DatePickerProps = {
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated please use the LocaleContext instead
|
|
29
|
-
*
|
|
30
|
-
* The locale determines the language and formatting of the dates
|
|
31
|
-
* shown in this component. E.g. for "nl-NL" the date will be
|
|
32
|
-
* shown as "dd-mm-yyyy", while for "en-GB" it shows as "dd/mm/yyyy".
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
|
-
locale?: keyof typeof LOCALE_MAP;
|
|
36
26
|
className?: string;
|
|
37
27
|
selected?: Date;
|
|
38
28
|
hasCloseButton?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { type SizeNames } from "../../../system/Sizes.
|
|
2
|
+
import { type SizeNames } from "../../../system/Sizes.js";
|
|
3
3
|
import { type Props as BoxProps } from "../Box/Box";
|
|
4
4
|
export type DropdownTriggerProps = Omit<React.ComponentPropsWithRef<"button">, "children" | "width"> & {
|
|
5
5
|
/**
|
|
@@ -11,11 +11,7 @@ type EmptyListMessageProps = {
|
|
|
11
11
|
className?: string;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
15
|
-
* (pass the image URL; the three bundled illustrations are not exported, so import
|
|
16
|
-
* your app's copy), `dataTestId` -> `dataTestId`. Pass `background="white"` to keep
|
|
17
|
-
* the white background. `className` has no equivalent: wrap `CenteredHero` in an
|
|
18
|
-
* element to add margin. See the EmptyListMessage story for the full migration.
|
|
14
|
+
* Internal: `Table`'s empty state. Not exported; consumers use `CenteredHero`.
|
|
19
15
|
*/
|
|
20
16
|
export declare const EmptyListMessage: ({ text, imageName, dataTestId, className, }: EmptyListMessageProps) => JSX.Element;
|
|
21
17
|
export {};
|
|
@@ -27,10 +27,6 @@ declare const FlyOutMenuSeparator: React.ForwardRefExoticComponent<Omit<FlyOutMe
|
|
|
27
27
|
color?: "divider" | "interactive";
|
|
28
28
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
29
29
|
type ButtonItemProps = React.ComponentPropsWithoutRef<typeof FlyOutMenuItem> & {
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated use leadingIcon instead
|
|
32
|
-
*/
|
|
33
|
-
icon?: React.ReactNode;
|
|
34
30
|
children?: React.ReactNode;
|
|
35
31
|
leadingIcon?: React.ReactNode;
|
|
36
32
|
trailingIcon?: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
-
import { type TextColor } from "../../../../components/Text/Text.
|
|
2
|
+
import { type TextColor } from "../../../../components/Text/Text.js";
|
|
3
3
|
import type * as Icons from "../index";
|
|
4
4
|
export type IconProps = {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { FormHeightNames } from "../../../system/Sizes.
|
|
2
|
+
import type { FormHeightNames } from "../../../system/Sizes.js";
|
|
3
3
|
import type { IconKey, IconProps } from "../Icons/types/IconProps.type";
|
|
4
4
|
type FormFieldWidth = "sm" | "md" | "lg" | "xl" | "full";
|
|
5
5
|
/**
|
|
@@ -8,17 +8,6 @@ export type SearchInputProps = Omit<InputProps, "icon" | "type" | "width" | "cle
|
|
|
8
8
|
* at a later stage.
|
|
9
9
|
*/
|
|
10
10
|
width?: InputProps["width"];
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated
|
|
13
|
-
* A search input should never be used in a form with multiple fields.
|
|
14
|
-
*/
|
|
15
|
-
asFormField?: InputProps["asFormField"];
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated
|
|
18
|
-
* A search input should never be in error state, because the
|
|
19
|
-
* user cannot do anything wrong when typing in this field.
|
|
20
|
-
*/
|
|
21
|
-
isError?: InputProps["isError"];
|
|
22
11
|
};
|
|
23
12
|
export declare const SearchInput: React.ForwardRefExoticComponent<Omit<SearchInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
24
13
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { type FormFieldSize } from "../../../types/general.types.
|
|
3
|
-
import { type FormHeightNames } from "../../../system/Sizes.
|
|
2
|
+
import { type FormFieldSize } from "../../../types/general.types.js";
|
|
3
|
+
import { type FormHeightNames } from "../../../system/Sizes.js";
|
|
4
4
|
import type { IconKey, IconProps } from "../Icons/types/IconProps.type";
|
|
5
5
|
export declare const StyledInput: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "width"> & {
|
|
6
6
|
suffix?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { FormHeightNames } from "../../../system/Sizes.
|
|
2
|
+
import type { FormHeightNames } from "../../../system/Sizes.js";
|
|
3
3
|
/**
|
|
4
4
|
* The subset of props `InputSelect` reads off its children when it restyles
|
|
5
5
|
* them. React 19 types `ReactElement` props as `unknown` by default, so the
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSX } from "react";
|
|
2
|
-
import { type RestPropped } from "../../../types/general.types.
|
|
2
|
+
import { type RestPropped } from "../../../types/general.types.js";
|
|
3
3
|
import "./LoadingIndicator.scss";
|
|
4
4
|
export interface LoadingIndicatorProps extends RestPropped {
|
|
5
5
|
asModal?: boolean;
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
import type { FC, ReactNode, MouseEvent, KeyboardEvent } from "react";
|
|
2
2
|
import ReactModal from "react-modal";
|
|
3
|
-
import { type PrimaryButtonProps } from "../ButtonV2/ButtonProps.type";
|
|
4
3
|
import { FullPageModalActions } from "./subcomponents/FullPageModalActions";
|
|
5
4
|
export type FullPageModalProps = {
|
|
6
5
|
children: ReactNode;
|
|
7
6
|
isOpen?: boolean;
|
|
8
7
|
title: string;
|
|
9
8
|
dataTestId?: string;
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated
|
|
12
|
-
* Use the `actions` prop to render any button(s)
|
|
13
|
-
* or other component(s) automatically in the correct area.
|
|
14
|
-
*
|
|
15
|
-
* This prop will only render a button when the actions prop is omitted.
|
|
16
|
-
* The actions prop takes precedence over this prop if they're both passed.
|
|
17
|
-
*/
|
|
18
|
-
primaryButtonProps?: PrimaryButtonProps;
|
|
19
9
|
/**
|
|
20
10
|
* Render buttons or other action components in the area meant for actions.
|
|
21
11
|
* To correctly space out the actions wrap them in a FullPageModal.Actions component.
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import type { FC, ReactNode } from "react";
|
|
2
|
-
import { type PrimaryButtonProps } from "../ButtonV2/ButtonProps.type";
|
|
3
2
|
export type FullPageModalHeaderProps = {
|
|
4
3
|
title: string;
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated
|
|
7
|
-
* Use the `actions` prop to render any button(s)
|
|
8
|
-
* or other component(s) automatically in the correct area.
|
|
9
|
-
*/
|
|
10
|
-
primaryButtonProps?: PrimaryButtonProps;
|
|
11
4
|
actions?: ReactNode;
|
|
12
5
|
};
|
|
13
6
|
export declare const FullPageModalHeader: FC<FullPageModalHeaderProps>;
|
|
@@ -1,26 +1,9 @@
|
|
|
1
1
|
import type { FC, ReactNode } from "react";
|
|
2
|
-
import { type ButtonWithPendingStateProps, type NonPrimaryButtonProps, type PrimaryButtonProps } from "../ButtonV2/ButtonProps.type";
|
|
3
2
|
export interface ModalFooterTrailingComponents {
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated props accepting props from other components should accept components instead.
|
|
6
|
-
* Use primaryButton instead
|
|
7
|
-
*/
|
|
8
|
-
primaryButtonProps?: PrimaryButtonProps;
|
|
9
3
|
primaryButton: ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated props accepting props from other components should accept components instead.
|
|
12
|
-
* Use secondaryButton instead
|
|
13
|
-
*/
|
|
14
|
-
secondaryButtonProps?: NonPrimaryButtonProps;
|
|
15
4
|
secondaryButton?: ReactNode;
|
|
16
5
|
}
|
|
17
|
-
export type ModalFooterLeadingComponent = string | ButtonWithPendingStateProps;
|
|
18
6
|
export type ModalFooterProps = {
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated props accepting props from other components should accept components instead.
|
|
21
|
-
* Use footerLeadingAccessory instead
|
|
22
|
-
*/
|
|
23
|
-
footerLeadingComponent?: ModalFooterLeadingComponent;
|
|
24
7
|
footerLeadingAccessory?: string | ReactNode;
|
|
25
8
|
footerTrailingComponents: ModalFooterTrailingComponents;
|
|
26
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { FormHeightNames } from "../../../system/Sizes.
|
|
2
|
+
import type { FormHeightNames } from "../../../system/Sizes.js";
|
|
3
3
|
type Props = {
|
|
4
4
|
/**
|
|
5
5
|
* Additional CSS classes to apply to the container.
|
|
@@ -37,13 +37,9 @@ declare const NaturalLanguageFormWithSubComponents: React.ForwardRefExoticCompon
|
|
|
37
37
|
Text: {
|
|
38
38
|
(props: Omit<any, "ref"> & {
|
|
39
39
|
as?: React.ElementType | undefined;
|
|
40
|
-
text?: string;
|
|
41
|
-
type?: import("../Text/Text").TextStyle;
|
|
42
40
|
variant?: import("../Text/Text").TextStyle;
|
|
43
|
-
inline?: boolean;
|
|
44
41
|
color?: import("../Text/Text").TextColor;
|
|
45
42
|
hoverColor?: import("../Text/Text").TextHoverColor;
|
|
46
|
-
hoverInGroup?: boolean;
|
|
47
43
|
className?: string;
|
|
48
44
|
containsDangerousHtml?: boolean;
|
|
49
45
|
truncate?: boolean;
|
|
@@ -1,34 +1,12 @@
|
|
|
1
|
-
import type { BaseButtonProps } from "../ButtonV2/ButtonProps.type";
|
|
2
1
|
import type { PageHeaderProps } from "../PageHeader";
|
|
3
|
-
type CRUDPageButtonProps = Pick<BaseButtonProps, "onClick" | "text" | "isDisabled" | "form" | "type">;
|
|
4
2
|
type CRUDPageTitle = {
|
|
5
3
|
text: string;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated
|
|
8
|
-
* We don't want to show icons in the page title anymore.
|
|
9
|
-
*/
|
|
10
|
-
icon?: string;
|
|
11
4
|
};
|
|
12
5
|
type CRUDPageHeader = Omit<PageHeaderProps, "navigation" | "isPolling" | "accessories">;
|
|
13
6
|
type CRUDPagePropsWithoutHeaderOrTitle = {
|
|
14
7
|
dataTestId?: string;
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated use accessory instead
|
|
17
|
-
*/
|
|
18
|
-
submitButtonProps?: CRUDPageButtonProps;
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated use accessory instead
|
|
21
|
-
*/
|
|
22
|
-
cancelButtonProps?: CRUDPageButtonProps;
|
|
23
8
|
className?: string;
|
|
24
9
|
isLoading?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated Instead, show the loading indicator in the submit button directly
|
|
27
|
-
* if you want to show a loading state in the submit button.
|
|
28
|
-
*
|
|
29
|
-
* @example submitButton={<PrimaryButton isPending={true}>Submit</PrimaryButton>}
|
|
30
|
-
*/
|
|
31
|
-
isSubmitting?: boolean;
|
|
32
10
|
children?: React.ReactNode;
|
|
33
11
|
steps?: {
|
|
34
12
|
titles: Array<string>;
|
|
@@ -59,9 +37,6 @@ type CRUDPagePropsWithoutHeaderOrTitle = {
|
|
|
59
37
|
/**
|
|
60
38
|
* Rendered directly below the children of this component.
|
|
61
39
|
* Used for e.g. submit and cancel buttons.
|
|
62
|
-
*
|
|
63
|
-
* Will override the deprecated submitButtonProps and cancelButtonProps if provided, so
|
|
64
|
-
* please make sure to include them.
|
|
65
40
|
*/
|
|
66
41
|
accessory?: React.ReactNode;
|
|
67
42
|
};
|
|
@@ -2,27 +2,16 @@ export type PaginationMenuProps = {
|
|
|
2
2
|
className?: string;
|
|
3
3
|
/** Defaults to "large" if not supplied */
|
|
4
4
|
type?: "small" | "large" | "cursor";
|
|
5
|
-
/** @deprecated use type instead */
|
|
6
|
-
small?: boolean;
|
|
7
5
|
pageSize?: PageSize;
|
|
8
6
|
} & (PaginationMenuPropsSmall | PaginationMenuPropsLarge | PaginationMenuPropsCursor);
|
|
9
|
-
type PaginationMenuPropsSmall =
|
|
7
|
+
type PaginationMenuPropsSmall = {
|
|
10
8
|
type: "small";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}) & PaginationMenuSmallProps;
|
|
16
|
-
type PaginationMenuPropsLarge = ({
|
|
17
|
-
type: "large";
|
|
18
|
-
small?: never;
|
|
19
|
-
} | {
|
|
20
|
-
small?: false | undefined;
|
|
21
|
-
type?: never;
|
|
22
|
-
}) & PaginationMenuLargeProps;
|
|
9
|
+
} & PaginationMenuSmallProps;
|
|
10
|
+
type PaginationMenuPropsLarge = {
|
|
11
|
+
type?: "large";
|
|
12
|
+
} & PaginationMenuLargeProps;
|
|
23
13
|
type PaginationMenuPropsCursor = {
|
|
24
14
|
type: "cursor";
|
|
25
|
-
small?: never;
|
|
26
15
|
} & PaginationMenuCursorProps;
|
|
27
16
|
export interface PaginationMenuSmallProps {
|
|
28
17
|
/**
|
|
@@ -21,9 +21,5 @@ type Props = BoxProps<"section"> & {
|
|
|
21
21
|
*/
|
|
22
22
|
headerTitle?: ReactNode;
|
|
23
23
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated use `React.ComponentProps<typeof Section>` instead
|
|
26
|
-
*/
|
|
27
|
-
export type SectionProps = Props;
|
|
28
24
|
export declare const Section: FC<Props>;
|
|
29
25
|
export default Section;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { type FormFieldSize } from "../../../types/general.types.
|
|
3
|
-
import type { FormHeightNames } from "../../../system/Sizes.
|
|
2
|
+
import { type FormFieldSize } from "../../../types/general.types.js";
|
|
3
|
+
import type { FormHeightNames } from "../../../system/Sizes.js";
|
|
4
4
|
import "./StyledSelect.scss";
|
|
5
5
|
export declare const StyledSelect: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref">, "width"> & {
|
|
6
6
|
children?: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type ComponentProps, type ComponentPropsWithRef, type ElementType, type ReactElement } from "react";
|
|
2
|
-
import { type SpacingKey } from "../../../system/Sizes.
|
|
2
|
+
import { type SpacingKey } from "../../../system/Sizes.js";
|
|
3
3
|
import { Box } from "../Box/Box";
|
|
4
4
|
export { Props as StackProps };
|
|
5
5
|
type PolymorphicRef<C extends ElementType> = ComponentPropsWithRef<C>["ref"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { JSX } from "react";
|
|
2
|
-
import {
|
|
1
|
+
import type { FC, JSX } from "react";
|
|
2
|
+
import type { IconKey, IconProps } from "../Icons/types/IconProps.type";
|
|
3
3
|
type TableFieldConfigBase = {
|
|
4
4
|
key: string;
|
|
5
5
|
headerText?: string;
|
|
@@ -31,7 +31,10 @@ export interface TableFieldText {
|
|
|
31
31
|
color: "red" | "amber" | "green" | "gray" | "blue";
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
export type TableFieldAction<Item> =
|
|
34
|
+
export type TableFieldAction<Item> = {
|
|
35
|
+
isDisabled?: boolean;
|
|
36
|
+
title?: string;
|
|
37
|
+
icon?: FC<IconProps> | IconKey;
|
|
35
38
|
key: string;
|
|
36
39
|
/**
|
|
37
40
|
* @param item - the data in the row when this clicked
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
import type { FC, ReactNode } from "react";
|
|
2
|
-
|
|
3
|
-
interface PropsWithTags {
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated Use `children` instead
|
|
6
|
-
*/
|
|
7
|
-
tags?: TagProps[];
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated Size of each tag rendered as a child is dictated by this child itself.
|
|
10
|
-
*/
|
|
11
|
-
tagSize?: TagProps["_size"];
|
|
12
|
-
children?: never;
|
|
13
|
-
}
|
|
14
|
-
interface PropsWithChildren {
|
|
15
|
-
tags?: never;
|
|
16
|
-
tagSize?: never;
|
|
2
|
+
type Props = {
|
|
17
3
|
children?: ReactNode;
|
|
18
|
-
}
|
|
19
|
-
type Props = (PropsWithTags | PropsWithChildren) & {
|
|
20
4
|
className?: string;
|
|
21
5
|
};
|
|
22
6
|
export declare const TagGroup: FC<Props>;
|