@kaizen/components 1.67.11 → 1.67.13
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/codemods/migrateBrandMomentMoodToVariant/index.ts +1 -2
- package/codemods/migrateBrandMomentMoodToVariant/transformBrandMomentMoodToVariant.spec.ts +7 -3
- package/codemods/migrateCardVariantToColor/index.ts +1 -2
- package/codemods/migrateCardVariantToColor/transformCardVariantToColor.spec.ts +9 -3
- package/codemods/migrateConfirmationModalMoodsToVariant/index.ts +1 -2
- package/codemods/migrateConfirmationModalMoodsToVariant/transformConfirmationModalMoodsToVariant.spec.ts +8 -8
- package/codemods/migrateEmptyStateIllustrationTypeToVariant/index.ts +1 -2
- package/codemods/migrateEmptyStateIllustrationTypeToVariant/transformEmptyStateIllustrationTypeToVariant.spec.ts +7 -3
- package/codemods/migrateGlobalNotificationTypeToVariant/index.ts +2 -3
- package/codemods/migrateInformationTileMoodToVariant/index.ts +1 -2
- package/codemods/migrateInformationTileMoodToVariant/transformInformationTileMoodToVariant.spec.ts +7 -3
- package/codemods/migrateInlineNotificationTypeToVariant/index.ts +2 -3
- package/codemods/migrateMultiActionTileMoodToVariant/index.ts +0 -1
- package/codemods/migrateMultiActionTileMoodToVariant/transformMultiActionTileMoodToVariant.spec.ts +7 -3
- package/codemods/migrateNotificationTypeToVariant/migrateNotificationTypeToVariant.spec.ts +8 -8
- package/codemods/migrateProgressBarMoodToColor/index.ts +0 -1
- package/codemods/migrateProgressBarMoodToColor/transformProgressBarMoodToColor.spec.ts +7 -3
- package/codemods/migrateToastNotificationTypeToVariant/index.ts +1 -2
- package/codemods/migrateWellVariantToColor/index.ts +1 -2
- package/codemods/migrateWellVariantToColor/transformWellVariantToColor.spec.ts +12 -12
- package/codemods/migrateWellVariantToColor/transformWellVariantToColor.ts +2 -3
- package/codemods/removeInputEditModalMood/index.ts +1 -2
- package/codemods/removeInputEditModalMood/removeInputEditModalMood.spec.ts +4 -4
- package/codemods/removePopoverVariant/index.ts +1 -2
- package/codemods/removePopoverVariant/removePopoverVariant.spec.ts +5 -5
- package/codemods/upgradeIconV1/index.ts +5 -5
- package/codemods/upgradeIconV1/upgradeIconV1.spec.ts +5 -6
- package/codemods/upgradeIconV1/upgradeIconV1.ts +7 -5
- package/codemods/utils/__fixtures__/KaioComponent.tsx +2 -3
- package/codemods/utils/__snapshots__/emptyLineEncoder.spec.ts.snap +19 -0
- package/codemods/utils/__snapshots__/transformSource.spec.ts.snap +14 -4
- package/codemods/utils/createEncodedSourceFile.ts +15 -0
- package/codemods/utils/createProp.spec.ts +6 -8
- package/codemods/utils/emptyLineEncoder.spec.ts +25 -0
- package/codemods/utils/emptyLineEncoder.ts +18 -0
- package/codemods/utils/migrateStringProp.spec.ts +7 -3
- package/codemods/utils/migrateStringProp.ts +2 -3
- package/codemods/utils/printAst.ts +1 -0
- package/codemods/utils/removeProps.spec.ts +5 -5
- package/codemods/utils/removeProps.ts +2 -2
- package/codemods/utils/transformComponentsInDir.ts +14 -15
- package/codemods/utils/transformSource.spec.ts +63 -34
- package/codemods/utils/transformSource.ts +32 -19
- package/codemods/utils/updateKaioImports.ts +6 -3
- package/dist/cjs/Pagination/Pagination.cjs +4 -4
- package/dist/cjs/Pagination/Pagination.module.scss.cjs +1 -2
- package/dist/cjs/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.cjs +1 -1
- package/dist/cjs/Pagination/subcomponents/TruncateIndicator/{TruncateIndicator.module.scss.cjs → TruncateIndicator.module.css.cjs} +1 -1
- package/dist/esm/Pagination/Pagination.mjs +4 -4
- package/dist/esm/Pagination/Pagination.module.scss.mjs +1 -2
- package/dist/esm/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.mjs +1 -1
- package/dist/esm/Pagination/subcomponents/TruncateIndicator/{TruncateIndicator.module.scss.mjs → TruncateIndicator.module.css.mjs} +1 -1
- package/dist/styles.css +38 -49
- package/dist/types/Avatar/Avatar.d.ts +1 -1
- package/dist/types/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/dist/types/Badge/Badge.d.ts +1 -1
- package/dist/types/Brand/Brand.d.ts +1 -1
- package/dist/types/BrandMoment/BrandMoment.d.ts +3 -3
- package/dist/types/ButtonGroup/ButtonGroup.d.ts +3 -3
- package/dist/types/Calendar/CalendarPopover/CalendarPopover.d.ts +1 -1
- package/dist/types/Calendar/CalendarRange/CalendarRange.d.ts +1 -1
- package/dist/types/Calendar/CalendarSingle/CalendarSingle.d.ts +1 -1
- package/dist/types/Card/Card.d.ts +1 -1
- package/dist/types/Checkbox/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/types/ClearButton/ClearButton.d.ts +1 -1
- package/dist/types/Collapsible/Collapsible/Collapsible.d.ts +1 -1
- package/dist/types/Collapsible/CollapsibleGroup/CollapsibleGroup.d.ts +3 -3
- package/dist/types/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.d.ts +1 -1
- package/dist/types/Content/Content.d.ts +1 -1
- package/dist/types/DateInput/DateInput/DateInput.d.ts +1 -1
- package/dist/types/DatePicker/DatePicker.d.ts +1 -1
- package/dist/types/DatePicker/subcomponents/DateInputField/DateInputField.d.ts +3 -3
- package/dist/types/DatePicker/types.d.ts +1 -1
- package/dist/types/DatePicker/utils/validateDate.d.ts +1 -1
- package/dist/types/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/dist/types/DateRangePicker/utils/formatDateRangeValue.d.ts +1 -1
- package/dist/types/Divider/Divider.d.ts +1 -1
- package/dist/types/EmptyState/EmptyState.d.ts +3 -3
- package/dist/types/ErrorPage/ErrorPage.d.ts +1 -1
- package/dist/types/FieldGroup/FieldGroup.d.ts +1 -1
- package/dist/types/FieldMessage/FieldMessage.d.ts +1 -1
- package/dist/types/Filter/Filter/Filter.d.ts +1 -1
- package/dist/types/Filter/Filter/subcomponents/FilterContents/FilterContents.d.ts +1 -1
- package/dist/types/Filter/Filter/subcomponents/FilterPopover/FilterPopover.d.ts +1 -1
- package/dist/types/Filter/FilterBar/FilterBar.d.ts +1 -1
- package/dist/types/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.d.ts +2 -2
- package/dist/types/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.d.ts +1 -1
- package/dist/types/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.d.ts +1 -1
- package/dist/types/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.d.ts +1 -1
- package/dist/types/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.d.ts +1 -1
- package/dist/types/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.d.ts +3 -3
- package/dist/types/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.d.ts +1 -1
- package/dist/types/Filter/FilterDatePicker/hooks/useDateInputHandlers.d.ts +2 -2
- package/dist/types/Filter/FilterDatePicker/hooks/useDateValidation.d.ts +1 -1
- package/dist/types/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.d.ts +1 -1
- package/dist/types/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.d.ts +6 -6
- package/dist/types/Filter/FilterDatePicker/types.d.ts +1 -1
- package/dist/types/Filter/FilterDatePicker/utils/transformDateToInputValue.d.ts +1 -1
- package/dist/types/Filter/FilterDatePicker/utils/validateDate.d.ts +1 -1
- package/dist/types/Filter/FilterDateRangePicker/FilterDateRangePicker.d.ts +1 -1
- package/dist/types/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.d.ts +2 -2
- package/dist/types/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.d.ts +5 -5
- package/dist/types/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/hooks/useEndDateValidation.d.ts +1 -1
- package/dist/types/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/hooks/useStartDateValidation.d.ts +1 -1
- package/dist/types/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/types.d.ts +1 -1
- package/dist/types/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/validateEndDateBeforeStartDate.d.ts +1 -1
- package/dist/types/Filter/FilterDateRangePicker/utils/isCompleteDateRange.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.d.ts +1 -1
- package/dist/types/Filter/FilterSelect/FilterSelect.d.ts +6 -6
- package/dist/types/Filter/FilterSelect/types.d.ts +1 -1
- package/dist/types/GuidanceBlock/GuidanceBlock.d.ts +4 -4
- package/dist/types/Heading/Heading.d.ts +1 -1
- package/dist/types/Icon/AcademyIcon.d.ts +1 -1
- package/dist/types/Icon/ActionOffIcon.d.ts +1 -1
- package/dist/types/Icon/ActionOffWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/ActionOnIcon.d.ts +1 -1
- package/dist/types/Icon/AddIcon.d.ts +1 -1
- package/dist/types/Icon/AddLinkIcon.d.ts +1 -1
- package/dist/types/Icon/AddWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/AiIcon.d.ts +1 -1
- package/dist/types/Icon/ArchivedIcon.d.ts +1 -1
- package/dist/types/Icon/ArchivedWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/ArrowBackwardIcon.d.ts +1 -1
- package/dist/types/Icon/ArrowDownIcon.d.ts +1 -1
- package/dist/types/Icon/ArrowForwardIcon.d.ts +1 -1
- package/dist/types/Icon/ArrowLeftIcon.d.ts +1 -1
- package/dist/types/Icon/ArrowRightIcon.d.ts +1 -1
- package/dist/types/Icon/ArrowUpIcon.d.ts +1 -1
- package/dist/types/Icon/AssignmentIcon.d.ts +1 -1
- package/dist/types/Icon/BlankIcon.d.ts +1 -1
- package/dist/types/Icon/BoldIcon.d.ts +1 -1
- package/dist/types/Icon/BookmarkOffIcon.d.ts +1 -1
- package/dist/types/Icon/BookmarkOnIcon.d.ts +1 -1
- package/dist/types/Icon/BranchingIcon.d.ts +1 -1
- package/dist/types/Icon/BullettedListIcon.d.ts +1 -1
- package/dist/types/Icon/CaMonogramIcon.d.ts +1 -1
- package/dist/types/Icon/CameraIcon.d.ts +1 -1
- package/dist/types/Icon/CautionIcon.d.ts +1 -1
- package/dist/types/Icon/CautionWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/CheckIcon.d.ts +1 -1
- package/dist/types/Icon/ChevronDownIcon.d.ts +1 -1
- package/dist/types/Icon/ChevronLeftIcon.d.ts +1 -1
- package/dist/types/Icon/ChevronRightIcon.d.ts +1 -1
- package/dist/types/Icon/ChevronUpIcon.d.ts +1 -1
- package/dist/types/Icon/ClearIcon.d.ts +1 -1
- package/dist/types/Icon/ClearWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/CloseIcon.d.ts +1 -1
- package/dist/types/Icon/ClosedIcon.d.ts +1 -1
- package/dist/types/Icon/ClosedWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/CommentAddIcon.d.ts +1 -1
- package/dist/types/Icon/CommentAddWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/CommentBankIcon.d.ts +1 -1
- package/dist/types/Icon/CommentDisabledIcon.d.ts +1 -1
- package/dist/types/Icon/CommentDisabledWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/CommentIcon.d.ts +1 -1
- package/dist/types/Icon/CommentWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/CommunicationsIcon.d.ts +1 -1
- package/dist/types/Icon/CompetencyLibraryIcon.d.ts +1 -1
- package/dist/types/Icon/ConfigureIcon.d.ts +1 -1
- package/dist/types/Icon/ConnectIcon.d.ts +1 -1
- package/dist/types/Icon/ConnectLineIcon.d.ts +1 -1
- package/dist/types/Icon/CustomIcon.d.ts +1 -1
- package/dist/types/Icon/DashboardIcon.d.ts +1 -1
- package/dist/types/Icon/DateEndIcon.d.ts +1 -1
- package/dist/types/Icon/DateEndWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/DateRangeIcon.d.ts +1 -1
- package/dist/types/Icon/DateRangeWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/DateStartIcon.d.ts +1 -1
- package/dist/types/Icon/DateStartWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/DecreaseIndentIcon.d.ts +1 -1
- package/dist/types/Icon/DeltaBareIcon.d.ts +1 -1
- package/dist/types/Icon/DeltaBareWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/DeltaFlatIcon.d.ts +1 -1
- package/dist/types/Icon/DeltaIcon.d.ts +1 -1
- package/dist/types/Icon/DeltaNegativeIcon.d.ts +1 -1
- package/dist/types/Icon/DeltaPositiveIcon.d.ts +1 -1
- package/dist/types/Icon/DeltaWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/DemographicsIcon.d.ts +1 -1
- package/dist/types/Icon/DepartmentIcon.d.ts +1 -1
- package/dist/types/Icon/DraftIcon.d.ts +1 -1
- package/dist/types/Icon/DraftWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/DragIcon.d.ts +1 -1
- package/dist/types/Icon/DuplicateIcon.d.ts +1 -1
- package/dist/types/Icon/EditIcon.d.ts +1 -1
- package/dist/types/Icon/EffectivenessIcon.d.ts +1 -1
- package/dist/types/Icon/EllipsisIcon.d.ts +1 -1
- package/dist/types/Icon/EmailIcon.d.ts +1 -1
- package/dist/types/Icon/EmptyIcon.d.ts +1 -1
- package/dist/types/Icon/EmptyWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/EndIcon.d.ts +1 -1
- package/dist/types/Icon/EngagementIcon.d.ts +1 -1
- package/dist/types/Icon/EngagementWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/EqualIcon.d.ts +1 -1
- package/dist/types/Icon/EqualWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/ExclamationIcon.d.ts +1 -1
- package/dist/types/Icon/ExclamationOctagonIcon.d.ts +1 -1
- package/dist/types/Icon/ExclamationOctagonWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/ExclamationWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/ExperienceIcon.d.ts +1 -1
- package/dist/types/Icon/ExportIcon.d.ts +1 -1
- package/dist/types/Icon/ExportWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/ExternalLinkIcon.d.ts +1 -1
- package/dist/types/Icon/FaceDissatisfiedIcon.d.ts +1 -1
- package/dist/types/Icon/FaceDissatisfiedWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/FaceNeutralIcon.d.ts +1 -1
- package/dist/types/Icon/FaceNeutralWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/FaceSatisfiedIcon.d.ts +1 -1
- package/dist/types/Icon/FaceSatisfiedWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/FaceVeryDissatisfiedIcon.d.ts +1 -1
- package/dist/types/Icon/FaceVeryDissatisfiedWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/FaceVerySatisfiedIcon.d.ts +1 -1
- package/dist/types/Icon/FaceVerySatisfiedWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/FactorsIcon.d.ts +1 -1
- package/dist/types/Icon/FavoriteOffIcon.d.ts +1 -1
- package/dist/types/Icon/FavoriteOnIcon.d.ts +1 -1
- package/dist/types/Icon/FeedbackClassifyIcon.d.ts +1 -1
- package/dist/types/Icon/FeedbackClassifyWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/FeedbackCompletedIcon.d.ts +1 -1
- package/dist/types/Icon/FeedbackCompletedWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/FeedbackReportIcon.d.ts +1 -1
- package/dist/types/Icon/FeedbackReportWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/FeedbackReviewIcon.d.ts +1 -1
- package/dist/types/Icon/FeedbackReviewWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/FeedbackShareIcon.d.ts +1 -1
- package/dist/types/Icon/FeedbackShareWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/FileIcon.d.ts +1 -1
- package/dist/types/Icon/FileWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/FilterIcon.d.ts +1 -1
- package/dist/types/Icon/FlagOffIcon.d.ts +1 -1
- package/dist/types/Icon/FlagOffWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/FlagOnIcon.d.ts +1 -1
- package/dist/types/Icon/FullIcon.d.ts +1 -1
- package/dist/types/Icon/GridViewIcon.d.ts +1 -1
- package/dist/types/Icon/GuidanceIcon.d.ts +1 -1
- package/dist/types/Icon/HamburgerIcon.d.ts +1 -1
- package/dist/types/Icon/HeatmapIcon.d.ts +1 -1
- package/dist/types/Icon/HeatmapWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/HierarchyIcon.d.ts +1 -1
- package/dist/types/Icon/HomeIcon.d.ts +1 -1
- package/dist/types/Icon/ImportIcon.d.ts +1 -1
- package/dist/types/Icon/ImportWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/IncreaseIndentIcon.d.ts +1 -1
- package/dist/types/Icon/IndicatorActiveIcon.d.ts +1 -1
- package/dist/types/Icon/IndicatorInactiveIcon.d.ts +1 -1
- package/dist/types/Icon/InformationIcon.d.ts +1 -1
- package/dist/types/Icon/InformationWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/InsightIcon.d.ts +1 -1
- package/dist/types/Icon/InsightsIcon.d.ts +1 -1
- package/dist/types/Icon/InvisibleIcon.d.ts +1 -1
- package/dist/types/Icon/ItalicsIcon.d.ts +1 -1
- package/dist/types/Icon/KebabIcon.d.ts +1 -1
- package/dist/types/Icon/KioskIcon.d.ts +1 -1
- package/dist/types/Icon/KioskWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/LaunchIcon.d.ts +1 -1
- package/dist/types/Icon/LaunchWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/LeaderboardIcon.d.ts +1 -1
- package/dist/types/Icon/ListViewIcon.d.ts +1 -1
- package/dist/types/Icon/LiveIcon.d.ts +1 -1
- package/dist/types/Icon/LockIcon.d.ts +1 -1
- package/dist/types/Icon/LockWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/LogOutIcon.d.ts +1 -1
- package/dist/types/Icon/MaximizeIcon.d.ts +1 -1
- package/dist/types/Icon/MeatballsIcon.d.ts +1 -1
- package/dist/types/Icon/MinimizeIcon.d.ts +1 -1
- package/dist/types/Icon/MinusIcon.d.ts +1 -1
- package/dist/types/Icon/NavigatorIcon.d.ts +1 -1
- package/dist/types/Icon/NotificationIcon.d.ts +1 -1
- package/dist/types/Icon/NumberedListIcon.d.ts +1 -1
- package/dist/types/Icon/NumberedListRtlIcon.d.ts +1 -1
- package/dist/types/Icon/OpenIcon.d.ts +1 -1
- package/dist/types/Icon/OpenWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/OrganizationIcon.d.ts +1 -1
- package/dist/types/Icon/ParticipationIcon.d.ts +1 -1
- package/dist/types/Icon/ParticipationWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/PauseIcon.d.ts +1 -1
- package/dist/types/Icon/PauseWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/PercentageIcon.d.ts +1 -1
- package/dist/types/Icon/PermissionsIcon.d.ts +1 -1
- package/dist/types/Icon/PersonIcon.d.ts +1 -1
- package/dist/types/Icon/PhotoUploadIcon.d.ts +1 -1
- package/dist/types/Icon/PowerIcon.d.ts +1 -1
- package/dist/types/Icon/PrintIcon.d.ts +1 -1
- package/dist/types/Icon/PrintWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/ProcessManagerIcon.d.ts +1 -1
- package/dist/types/Icon/PromotionIcon.d.ts +1 -1
- package/dist/types/Icon/PromotionWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/QuestionIcon.d.ts +1 -1
- package/dist/types/Icon/QuestionWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/QuestionsIcon.d.ts +1 -1
- package/dist/types/Icon/RedoIcon.d.ts +1 -1
- package/dist/types/Icon/RefreshIcon.d.ts +1 -1
- package/dist/types/Icon/RemoveLinkIcon.d.ts +1 -1
- package/dist/types/Icon/RepeatsIcon.d.ts +1 -1
- package/dist/types/Icon/ReportIcon.d.ts +1 -1
- package/dist/types/Icon/ReportSharingIcon.d.ts +1 -1
- package/dist/types/Icon/RestoreIcon.d.ts +1 -1
- package/dist/types/Icon/SaveIcon.d.ts +1 -1
- package/dist/types/Icon/SearchIcon.d.ts +1 -1
- package/dist/types/Icon/SearchWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/SecurityTipIcon.d.ts +1 -1
- package/dist/types/Icon/SendIcon.d.ts +1 -1
- package/dist/types/Icon/SendRtlIcon.d.ts +1 -1
- package/dist/types/Icon/SettingsIcon.d.ts +1 -1
- package/dist/types/Icon/SettingsWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/ShareIcon.d.ts +1 -1
- package/dist/types/Icon/SkipIcon.d.ts +1 -1
- package/dist/types/Icon/SkipWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/SortAscendingIcon.d.ts +1 -1
- package/dist/types/Icon/SortDescendingIcon.d.ts +1 -1
- package/dist/types/Icon/SpinnerIcon.d.ts +1 -1
- package/dist/types/Icon/StarOffIcon.d.ts +1 -1
- package/dist/types/Icon/StarOnIcon.d.ts +1 -1
- package/dist/types/Icon/StartIcon.d.ts +1 -1
- package/dist/types/Icon/SubtractIcon.d.ts +1 -1
- package/dist/types/Icon/SubtractWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/SuccessIcon.d.ts +1 -1
- package/dist/types/Icon/SuccessWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/SupportIcon.d.ts +1 -1
- package/dist/types/Icon/SurveysIcon.d.ts +1 -1
- package/dist/types/Icon/SurveysWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/SyncIcon.d.ts +1 -1
- package/dist/types/Icon/TagIcon.d.ts +1 -1
- package/dist/types/Icon/TasksIcon.d.ts +1 -1
- package/dist/types/Icon/TasksWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/TemplateIcon.d.ts +1 -1
- package/dist/types/Icon/TemplateWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/TextAnalyticsIcon.d.ts +1 -1
- package/dist/types/Icon/TextAnalyticsWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/ThumbsDownIcon.d.ts +1 -1
- package/dist/types/Icon/ThumbsDownOffIcon.d.ts +1 -1
- package/dist/types/Icon/ThumbsDownOnIcon.d.ts +1 -1
- package/dist/types/Icon/ThumbsUpIcon.d.ts +1 -1
- package/dist/types/Icon/ThumbsUpOffIcon.d.ts +1 -1
- package/dist/types/Icon/ThumbsUpOnIcon.d.ts +1 -1
- package/dist/types/Icon/TimeIcon.d.ts +1 -1
- package/dist/types/Icon/TimeWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/TranslationIcon.d.ts +1 -1
- package/dist/types/Icon/TrashIcon.d.ts +1 -1
- package/dist/types/Icon/UnattributedIcon.d.ts +1 -1
- package/dist/types/Icon/UnattributedWhiteIcon.d.ts +1 -1
- package/dist/types/Icon/UnderlineIcon.d.ts +1 -1
- package/dist/types/Icon/UndoIcon.d.ts +1 -1
- package/dist/types/Icon/UserAddIcon.d.ts +1 -1
- package/dist/types/Icon/UserDeleteIcon.d.ts +1 -1
- package/dist/types/Icon/UserExitIcon.d.ts +1 -1
- package/dist/types/Icon/UserIcon.d.ts +1 -1
- package/dist/types/Icon/UserSelectIcon.d.ts +1 -1
- package/dist/types/Icon/UserSettingsIcon.d.ts +1 -1
- package/dist/types/Icon/UserUpdateIcon.d.ts +1 -1
- package/dist/types/Icon/UsersIcon.d.ts +1 -1
- package/dist/types/Icon/VisibleIcon.d.ts +1 -1
- package/dist/types/Icon/WritingIcon.d.ts +1 -1
- package/dist/types/Icon/ZoomInIcon.d.ts +1 -1
- package/dist/types/Icon/ZoomOutIcon.d.ts +1 -1
- package/dist/types/Icon/bin/Template.d.ts +1 -1
- package/dist/types/Icon/subcomponents/SVG/SVG.d.ts +1 -1
- package/dist/types/Illustration/Scene/BrandMomentCaptureIntro/BrandMomentCaptureIntro.d.ts +1 -1
- package/dist/types/Illustration/subcomponents/Base/Base.d.ts +1 -1
- package/dist/types/Input/Input/Input.d.ts +1 -1
- package/dist/types/Input/InputRange/InputRange.d.ts +1 -1
- package/dist/types/Input/InputSearch/InputSearch.d.ts +1 -1
- package/dist/types/Label/Label.d.ts +1 -1
- package/dist/types/LabelledMessage/LabelledMessage.d.ts +1 -1
- package/dist/types/Loading/LoadingGraphic/LoadingGraphic.d.ts +1 -1
- package/dist/types/Loading/LoadingHeading/LoadingHeading.d.ts +2 -2
- package/dist/types/Loading/LoadingInput/LoadingInput.d.ts +1 -1
- package/dist/types/Loading/LoadingParagraph/LoadingParagraph.d.ts +1 -1
- package/dist/types/Loading/LoadingSpinner/LoadingSpinner.d.ts +1 -1
- package/dist/types/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.d.ts +1 -1
- package/dist/types/MultiSelect/MultiSelect.d.ts +2 -2
- package/dist/types/MultiSelect/subcomponents/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.d.ts +1 -1
- package/dist/types/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.d.ts +1 -1
- package/dist/types/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.d.ts +2 -2
- package/dist/types/MultiSelect/subcomponents/Popover/Popover.d.ts +1 -1
- package/dist/types/MultiSelect/types.d.ts +1 -1
- package/dist/types/Notification/GlobalNotification/GlobalNotification.d.ts +1 -1
- package/dist/types/Notification/InlineNotification/InlineNotification.d.ts +2 -2
- package/dist/types/Notification/ToastNotification/ToastNotification/ToastNotification.d.ts +1 -1
- package/dist/types/Notification/ToastNotification/ToastNotificationsList/subcomponents/ToastNotificationsMap/ToastNotificationsMap.d.ts +1 -1
- package/dist/types/Notification/ToastNotification/context/ToastNotificationContext.d.ts +1 -1
- package/dist/types/Notification/ToastNotification/types.d.ts +1 -1
- package/dist/types/Notification/subcomponents/GenericNotification/GenericNotification.d.ts +3 -3
- package/dist/types/Notification/subcomponents/NotificationHeading/NotificationHeading.d.ts +1 -1
- package/dist/types/Notification/subcomponents/NotificationIcon/NotificationIcon.d.ts +1 -1
- package/dist/types/Pagination/Pagination.d.ts +1 -1
- package/dist/types/Pagination/subcomponents/DirectionalLink/DirectionalLink.d.ts +1 -1
- package/dist/types/Pagination/subcomponents/PaginationLink/PaginationLink.d.ts +1 -1
- package/dist/types/Popover/Popover.d.ts +1 -1
- package/dist/types/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/types/Radio/Radio/Radio.d.ts +1 -1
- package/dist/types/Radio/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/types/RichTextEditor/EditableRichTextContent/EditableRichTextContent.d.ts +1 -1
- package/dist/types/RichTextEditor/RichTextContent/RichTextContent.d.ts +1 -1
- package/dist/types/RichTextEditor/RichTextEditor/RichTextEditor.d.ts +1 -1
- package/dist/types/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.d.ts +1 -1
- package/dist/types/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.d.ts +1 -1
- package/dist/types/SearchField/SearchField.d.ts +1 -1
- package/dist/types/Skirt/Skirt.d.ts +1 -1
- package/dist/types/Skirt/subcomponents/SkirtCard/SkirtCard.d.ts +1 -1
- package/dist/types/Slider/Slider.d.ts +1 -1
- package/dist/types/SplitButton/SplitButton.d.ts +2 -2
- package/dist/types/SplitButton/subcomponents/BaseButton/BaseButton.d.ts +1 -1
- package/dist/types/Table/Table.d.ts +2 -2
- package/dist/types/Tabs/subcomponents/Tab.d.ts +1 -1
- package/dist/types/Tabs/subcomponents/TabList.d.ts +1 -1
- package/dist/types/Tabs/subcomponents/TabPanel.d.ts +1 -1
- package/dist/types/Tabs/subcomponents/TabPanels.d.ts +1 -1
- package/dist/types/Tag/Tag.d.ts +1 -1
- package/dist/types/Text/Text.d.ts +1 -1
- package/dist/types/TextArea/TextArea.d.ts +1 -1
- package/dist/types/TextAreaField/TextAreaField.d.ts +1 -1
- package/dist/types/TextField/TextField.d.ts +1 -1
- package/dist/types/Tile/TileGrid/TileGrid.d.ts +1 -1
- package/dist/types/Tile/subcomponents/GenericTile/GenericTile.d.ts +3 -3
- package/dist/types/TimeField/TimeField.d.ts +1 -1
- package/dist/types/TitleBlockZen/subcomponents/MobileActions.d.ts +1 -1
- package/dist/types/TitleBlockZen/subcomponents/Toolbar.d.ts +1 -1
- package/dist/types/TitleBlockZen/types.d.ts +3 -3
- package/dist/types/ToggleSwitch/ToggleSwitch/ToggleSwitch.d.ts +1 -1
- package/dist/types/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/types/Well/Well.d.ts +1 -1
- package/dist/types/Workflow/Workflow.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Footer/Footer.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Footer/components/Root/Root.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Header/components/Actions/Actions.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Header/components/Branding/Branding.d.ts +2 -2
- package/dist/types/Workflow/subcomponents/Header/components/Root/Root.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Header/components/Titles/Titles.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Main/Main.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Wrapper/Wrapper.d.ts +1 -1
- package/dist/types/__actions__/Menu/v1/Menu.d.ts +1 -1
- package/dist/types/__actions__/Menu/v1/subcomponents/MenuHeading/MenuHeading.d.ts +1 -1
- package/dist/types/__actions__/Menu/v1/subcomponents/MenuList/MenuList.d.ts +1 -1
- package/dist/types/__future__/Icon/Icon.d.ts +1 -1
- package/dist/types/__future__/Select/Select.d.ts +1 -1
- package/dist/types/__future__/Select/subcomponents/ListBox/ListBox.d.ts +1 -1
- package/dist/types/__future__/Select/subcomponents/Option/Option.d.ts +1 -1
- package/dist/types/__future__/Select/subcomponents/Overlay/Overlay.d.ts +1 -1
- package/dist/types/__future__/Select/subcomponents/SelectToggle/SelectToggle.d.ts +1 -1
- package/dist/types/__future__/Tag/RemovableTag/subcomponents/RemoveButton.d.ts +1 -1
- package/dist/types/__future__/Tag/Tag/Tag.d.ts +1 -1
- package/package.json +3 -3
- package/src/Pagination/Pagination.module.scss +0 -12
- package/src/Pagination/Pagination.spec.tsx +5 -0
- package/src/Pagination/Pagination.tsx +10 -5
- package/src/Pagination/subcomponents/PaginationLink/PaginationLink.module.scss +1 -1
- package/src/Pagination/subcomponents/TruncateIndicator/{TruncateIndicator.module.scss → TruncateIndicator.module.css} +2 -4
- package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.tsx +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../types/OverrideClassName";
|
|
3
3
|
import { Placement, PopoverSize, PopoverVariant } from "./types";
|
|
4
4
|
export type PopoverProps = {
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../types/OverrideClassName";
|
|
3
3
|
export type RadioProps = OverrideClassName<Omit<InputHTMLAttributes<HTMLInputElement>, "id" | "name" | "value" | "checked" | "type">> & {
|
|
4
4
|
/** Required to ensure the Radio always gets an ID to match a label when composed. */
|
|
5
5
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../types/OverrideClassName";
|
|
3
3
|
export type RadioGroupProps = OverrideClassName<HTMLAttributes<HTMLDivElement>> & {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
labelText: string | React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MouseEvent, HTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../types/OverrideClassName";
|
|
3
3
|
import { RichTextContentProps } from "../RichTextContent";
|
|
4
4
|
import { EditorContentArray } from "../types";
|
|
5
5
|
export type EditableRichTextContentProps = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../types/OverrideClassName";
|
|
3
3
|
import { EditorContentArray } from "../types";
|
|
4
4
|
export type RichTextContentProps = {
|
|
5
5
|
content: EditorContentArray;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../types/OverrideClassName";
|
|
3
3
|
import { ToolbarItems, EditorContentArray, EditorRows } from "../types";
|
|
4
4
|
import { ProseMirrorState } from "../utils/prosemirror";
|
|
5
5
|
type BaseRichTextEditorProps = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../../../types/OverrideClassName";
|
|
3
3
|
import { ToggleIconButtonMoods } from "./types";
|
|
4
4
|
export type ToggleIconButtonProps = {
|
|
5
5
|
icon: JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react";
|
|
2
|
-
import { DataAttributes } from "
|
|
3
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { DataAttributes } from "../types/DataAttributes";
|
|
3
|
+
import { OverrideClassName } from "../types/OverrideClassName";
|
|
4
4
|
import { ActionButtonProps } from "./subcomponents/ActionButton";
|
|
5
5
|
import { DropdownButtonProps } from "./subcomponents/DropdownButton";
|
|
6
6
|
export type SplitButtonProps = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { AnchorHTMLAttributes, ButtonHTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../../types/OverrideClassName";
|
|
3
3
|
type AnchorAttributes = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
4
4
|
type ButtonAttributes = ButtonHTMLAttributes<HTMLButtonElement>;
|
|
5
5
|
type AnchorButtonAttributes = AnchorAttributes & ButtonAttributes;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes, ReactElement } from "react";
|
|
2
|
-
import { CheckedStatus } from "
|
|
3
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { CheckedStatus } from "../Checkbox";
|
|
3
|
+
import { OverrideClassName } from "../types/OverrideClassName";
|
|
4
4
|
export type TableContainerProps = {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
/** @default "compact" */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode, SyntheticEvent } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../types/OverrideClassName";
|
|
3
3
|
export type TabProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Gets injected by TabList, no need to specify yourself
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../types/OverrideClassName";
|
|
3
3
|
export type TabListProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Accessible name for the set of tabs
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../types/OverrideClassName";
|
|
3
3
|
export type TabPanelProps = {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
} & OverrideClassName<HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../types/OverrideClassName";
|
|
3
3
|
export type TabPanelsProps = {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
} & OverrideClassName<HTMLAttributes<HTMLDivElement>>;
|
package/dist/types/Tag/Tag.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../types/OverrideClassName";
|
|
3
3
|
export type TextVariants = "intro-lede" | "body" | "small" | "extra-small";
|
|
4
4
|
export type AllowedTextTags = "pre" | "p" | "div" | "span" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "label";
|
|
5
5
|
export type AllowedTextColors = "dark" | "dark-reduced-opacity" | "white" | "white-reduced-opacity" | "positive" | "negative";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { TextareaHTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../types/OverrideClassName";
|
|
3
3
|
export type TextAreaProps = {
|
|
4
4
|
textAreaRef?: React.RefObject<HTMLTextAreaElement>;
|
|
5
5
|
status?: "default" | "error" | "caution";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactElement } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../types/OverrideClassName";
|
|
3
3
|
import { InformationTileProps } from "../InformationTile";
|
|
4
4
|
import { MultiActionTileProps } from "../MultiActionTile";
|
|
5
5
|
type TileProps = InformationTileProps | MultiActionTileProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react";
|
|
2
|
-
import { AllowedHeadingTags } from "
|
|
3
|
-
import { GenericButtonProps } from "
|
|
4
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { AllowedHeadingTags } from "../../../Heading";
|
|
3
|
+
import { GenericButtonProps } from "../../../__actions__/Button/v1/GenericButton";
|
|
4
|
+
import { OverrideClassName } from "../../../types/OverrideClassName";
|
|
5
5
|
export type TileAction = GenericButtonProps;
|
|
6
6
|
export type TileInformation = {
|
|
7
7
|
text: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TimeFieldStateOptions } from "@react-stately/datepicker";
|
|
3
|
-
import { OverrideClassName } from "
|
|
3
|
+
import { OverrideClassName } from "../types/OverrideClassName";
|
|
4
4
|
import { StatusType, ValueType } from "./types";
|
|
5
5
|
type OmittedTimeFieldProps = "errorMessage" | "validationState" | "value" | "onChange" | "label" | "hideTimeZone";
|
|
6
6
|
export type TimeFieldProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonProps } from "
|
|
1
|
+
import { ButtonProps } from "../../__actions__/v2";
|
|
2
2
|
import { DefaultActionProps, PrimaryActionProps, SecondaryActionsProps, TitleBlockMenuItemProps } from "../types";
|
|
3
3
|
export type MobileActionsProps = {
|
|
4
4
|
primaryAction?: PrimaryActionProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CompanyAvatarProps, GenericAvatarProps } from "
|
|
2
|
-
import { Select } from "
|
|
3
|
-
import { ButtonProps, CustomButtonProps, MenuItemProps } from "
|
|
1
|
+
import { CompanyAvatarProps, GenericAvatarProps } from "../Avatar";
|
|
2
|
+
import { Select } from "../Select";
|
|
3
|
+
import { ButtonProps, CustomButtonProps, MenuItemProps } from "../__actions__/v2";
|
|
4
4
|
import { NavigationTabProps } from "./subcomponents/NavigationTabs";
|
|
5
5
|
/**
|
|
6
6
|
* @param TitleBlockProps ### Accessing internal types of TitleBlockProps
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { InputHTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../types/OverrideClassName";
|
|
3
3
|
export type ToggledStatus = "on" | "off";
|
|
4
4
|
export type ToggleSwitchProps = {
|
|
5
5
|
toggledStatus?: ToggledStatus;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, HTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../types/OverrideClassName";
|
|
3
3
|
export type VisuallyHiddenProps = {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
} & OverrideClassName<HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../types/OverrideClassName";
|
|
3
3
|
import { WellBorderStyleType, WellVariantType, WellColors } from "./types";
|
|
4
4
|
export type WellProps = {
|
|
5
5
|
children?: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../types/OverrideClassName";
|
|
3
3
|
import { FooterProps, HeaderProps } from "./subcomponents";
|
|
4
4
|
export type WorkflowProps = OverrideClassName<HTMLAttributes<HTMLDivElement>> & FooterProps & Pick<HeaderProps, "workflowName" | "statusTag" | "headerActions">;
|
|
5
5
|
export declare const Workflow: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OverrideClassName } from "
|
|
1
|
+
import { OverrideClassName } from "../../../types/OverrideClassName";
|
|
2
2
|
import { ProgressStepperProps, FooterRootProps } from "./components";
|
|
3
3
|
export type FooterProps = {
|
|
4
4
|
/** An action to return to a previous step */
|
package/dist/types/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../../../../types/OverrideClassName";
|
|
3
3
|
export type FooterActionsProps = {
|
|
4
4
|
actionType?: "Previous" | "Next";
|
|
5
5
|
action?: JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../../../../types/OverrideClassName";
|
|
3
3
|
export type FooterRootProps = OverrideClassName<HTMLAttributes<HTMLHeadingElement>>;
|
|
4
4
|
export declare const FooterRoot: {
|
|
5
5
|
({ children, classNameOverride, ...restProps }: FooterRootProps): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../../../../types/OverrideClassName";
|
|
3
3
|
export type WorkflowActionsProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Header actions will render in order of the array.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
import { BrandProps } from "
|
|
3
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { BrandProps } from "../../../../../Brand";
|
|
3
|
+
import { OverrideClassName } from "../../../../../types/OverrideClassName";
|
|
4
4
|
export type WorflowBrandingProps = {
|
|
5
5
|
variant?: BrandProps["variant"];
|
|
6
6
|
alt: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../../../../types/OverrideClassName";
|
|
3
3
|
export type HeaderRootProps = OverrideClassName<HTMLAttributes<HTMLHeadingElement>>;
|
|
4
4
|
export declare const HeaderRoot: {
|
|
5
5
|
({ children, classNameOverride, ...restProps }: HeaderRootProps): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../../../../types/OverrideClassName";
|
|
3
3
|
export type WorkflowTitlesProps = {
|
|
4
4
|
workflowName: string;
|
|
5
5
|
stepName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../../types/OverrideClassName";
|
|
3
3
|
export type WorkflowMainProps = OverrideClassName<HTMLAttributes<HTMLDivElement>> & {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../../types/OverrideClassName";
|
|
3
3
|
export type WorkflowWrapperProps = OverrideClassName<HTMLAttributes<HTMLDivElement>> & {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ButtonProps } from "
|
|
2
|
+
import { ButtonProps } from "../../v2";
|
|
3
3
|
import { StatelessMenuProps } from "./subcomponents/StatelessMenu";
|
|
4
4
|
type ButtonPropsWithOptionalAria = ButtonProps & {
|
|
5
5
|
"aria-haspopup"?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../../../../types/OverrideClassName";
|
|
3
3
|
export type MenuListProps = {
|
|
4
4
|
heading?: JSX.Element;
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
import { StringSuggestions } from "
|
|
2
|
+
import { StringSuggestions } from "../../types/StringSuggestions";
|
|
3
3
|
import { IconNames } from "./types";
|
|
4
4
|
type PresentationalIcon = {
|
|
5
5
|
isPresentational: true;
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { UseFloatingReturn } from "@floating-ui/react-dom";
|
|
3
3
|
import { SelectProps as AriaSelectProps } from "@react-stately/select";
|
|
4
4
|
import { Key } from "@react-types/shared";
|
|
5
|
-
import { OverrideClassName } from "
|
|
5
|
+
import { OverrideClassName } from "../../types/OverrideClassName";
|
|
6
6
|
import { SelectPopoverContentsProps, SelectToggleProps } from "./subcomponents";
|
|
7
7
|
import { SelectItem, SelectOption } from "./types";
|
|
8
8
|
type OmittedAriaSelectProps = "children" | "items";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
2
|
import { AriaListBoxOptions } from "@react-aria/listbox";
|
|
3
|
-
import { OverrideClassName } from "
|
|
3
|
+
import { OverrideClassName } from "../../../../types/OverrideClassName";
|
|
4
4
|
import { SelectOption, SelectItem } from "../../types";
|
|
5
5
|
export type SingleListBoxProps<Option extends SelectOption> = OverrideClassName<HTMLAttributes<HTMLUListElement>> & {
|
|
6
6
|
children: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../../../types/OverrideClassName";
|
|
3
3
|
import { SelectOption, SelectOptionNode } from "../../types";
|
|
4
4
|
export type OptionProps<Option extends SelectOption = SelectOption> = {
|
|
5
5
|
item: SelectOptionNode<Option>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../../../types/OverrideClassName";
|
|
3
3
|
import { SelectOption } from "../../types";
|
|
4
4
|
export type OverlayProps = OverrideClassName<HTMLAttributes<HTMLDivElement>> & {
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react";
|
|
2
2
|
import { DOMAttributes, FocusableElement } from "@react-types/shared";
|
|
3
|
-
import { OverrideClassName } from "
|
|
3
|
+
import { OverrideClassName } from "../../../../types/OverrideClassName";
|
|
4
4
|
export type SelectToggleProps = {
|
|
5
5
|
label: React.ReactNode;
|
|
6
6
|
labelProps: DOMAttributes<FocusableElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../../../types/OverrideClassName";
|
|
3
3
|
export type RemoveButtonBaseProps = {
|
|
4
4
|
ariaLabel: string;
|
|
5
5
|
onClick: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode, HTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../../types/OverrideClassName";
|
|
3
3
|
import { TagColors } from "./types";
|
|
4
4
|
export type TagProps = {
|
|
5
5
|
children: ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "1.67.
|
|
3
|
+
"version": "1.67.13",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -118,8 +118,8 @@
|
|
|
118
118
|
"svgo": "^3.3.2",
|
|
119
119
|
"tslib": "^2.8.0",
|
|
120
120
|
"tsx": "^4.19.2",
|
|
121
|
-
"@kaizen/design-tokens": "10.8.
|
|
122
|
-
"@kaizen/package-bundler": "1.1.
|
|
121
|
+
"@kaizen/design-tokens": "10.8.2",
|
|
122
|
+
"@kaizen/package-bundler": "1.1.11"
|
|
123
123
|
},
|
|
124
124
|
"devDependenciesComments": {
|
|
125
125
|
"sass": "Prevent deprecation warnings introduced in 1.80 as we plan to move away from sass",
|
|
@@ -51,15 +51,3 @@
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
// Truncate indicator
|
|
56
|
-
.truncateIndicatorWrapper {
|
|
57
|
-
display: flex;
|
|
58
|
-
align-items: center;
|
|
59
|
-
justify-content: center;
|
|
60
|
-
height: 36px;
|
|
61
|
-
width: 36px;
|
|
62
|
-
background-color: transparent;
|
|
63
|
-
color: rgba($color-purple-800-rgb, 0.7);
|
|
64
|
-
margin: 0 5px;
|
|
65
|
-
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { render, screen, waitFor } from "@testing-library/react"
|
|
3
3
|
import userEvent from "@testing-library/user-event"
|
|
4
|
+
import { mockMatchMedia } from "~components/utils/useMediaQueries.spec"
|
|
4
5
|
import { Pagination } from "./Pagination"
|
|
5
6
|
|
|
6
7
|
const user = userEvent.setup()
|
|
@@ -15,6 +16,10 @@ const defaultProps = {
|
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
describe("<Pagination />", () => {
|
|
19
|
+
beforeEach(() => {
|
|
20
|
+
mockMatchMedia()
|
|
21
|
+
})
|
|
22
|
+
|
|
18
23
|
it("calls onPageChange when clicking page number", async () => {
|
|
19
24
|
const onPageChange = vi.fn()
|
|
20
25
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
|
+
import { useMediaQueries } from "~components/utils"
|
|
4
5
|
import { DirectionalLink } from "./subcomponents/DirectionalLink"
|
|
5
6
|
import { PaginationLink } from "./subcomponents/PaginationLink"
|
|
6
7
|
import { TruncateIndicator } from "./subcomponents/TruncateIndicator"
|
|
@@ -32,6 +33,8 @@ export const Pagination = ({
|
|
|
32
33
|
classNameOverride,
|
|
33
34
|
...restProps
|
|
34
35
|
}: PaginationProps): JSX.Element => {
|
|
36
|
+
const { queries } = useMediaQueries()
|
|
37
|
+
|
|
35
38
|
// Click event for all pagination buttons (next, prev, and the actual numbers)
|
|
36
39
|
const handleButtonClick = (newPage: number | PageAction): void => {
|
|
37
40
|
if (newPage === "prev") {
|
|
@@ -55,12 +58,12 @@ export const Pagination = ({
|
|
|
55
58
|
/>
|
|
56
59
|
)
|
|
57
60
|
|
|
58
|
-
const pagination = (
|
|
61
|
+
const pagination = (
|
|
62
|
+
boundaryPagesRange: number,
|
|
63
|
+
siblingPagesRange: number
|
|
64
|
+
): JSX.Element[] => {
|
|
59
65
|
const items: JSX.Element[] = []
|
|
60
66
|
|
|
61
|
-
const boundaryPagesRange = 1
|
|
62
|
-
const siblingPagesRange = 1
|
|
63
|
-
|
|
64
67
|
// truncateSize is 1 now but could be 0 if we add the ability to hide it.
|
|
65
68
|
const truncateSize = 1
|
|
66
69
|
|
|
@@ -150,7 +153,9 @@ export const Pagination = ({
|
|
|
150
153
|
onClick={(): void => handleButtonClick("prev")}
|
|
151
154
|
/>
|
|
152
155
|
|
|
153
|
-
<div className={styles.pagesIndicatorWrapper}>
|
|
156
|
+
<div className={styles.pagesIndicatorWrapper}>
|
|
157
|
+
{pagination(1, queries.isSmall ? 0 : 1)}
|
|
158
|
+
</div>
|
|
154
159
|
|
|
155
160
|
<DirectionalLink
|
|
156
161
|
label={ariaLabelNextPage}
|