@7shifts/sous-chef 3.30.0 → 3.30.1
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/actions/Button/Button.d.ts +30 -31
- package/dist/actions/Button/constants.d.ts +28 -28
- package/dist/actions/Button/index.d.ts +1 -1
- package/dist/actions/Button/types.d.ts +4 -4
- package/dist/actions/Link/Link.d.ts +12 -12
- package/dist/actions/Link/constants.d.ts +8 -8
- package/dist/actions/Link/index.d.ts +1 -1
- package/dist/actions/Link/types.d.ts +2 -2
- package/dist/actions/PaginationControls/PaginationControls.d.ts +15 -15
- package/dist/actions/PaginationControls/constants.d.ts +4 -4
- package/dist/actions/PaginationControls/index.d.ts +1 -1
- package/dist/actions/Toggle/Toggle.d.ts +19 -19
- package/dist/actions/Toggle/index.d.ts +1 -1
- package/dist/actions/index.d.ts +5 -5
- package/dist/controls/DateFilter/DateFilter.d.ts +12 -12
- package/dist/controls/DateFilter/DateFilterDisplay/DateFilterDisplay.d.ts +11 -11
- package/dist/controls/DateFilter/DateFilterDisplay/DateFilterText/DateFilterText.d.ts +10 -10
- package/dist/controls/DateFilter/DateFilterDisplay/DateFilterText/domain.d.ts +2 -2
- package/dist/controls/DateFilter/DateFilterDisplay/index.d.ts +1 -1
- package/dist/controls/DateFilter/DateFilterStepper/DateFilterStepper.d.ts +11 -11
- package/dist/controls/DateFilter/DateFilterStepper/domain.d.ts +2 -2
- package/dist/controls/DateFilter/DateFilterStepper/index.d.ts +1 -1
- package/dist/controls/DateFilter/constants.d.ts +9 -9
- package/dist/controls/DateFilter/index.d.ts +1 -1
- package/dist/controls/DateFilter/types.d.ts +3 -3
- package/dist/controls/SegmentedControl/SegmentedControl.d.ts +9 -9
- package/dist/controls/SegmentedControl/index.d.ts +1 -1
- package/dist/controls/ToolbarSelect/ToolbarSelect.d.ts +6 -6
- package/dist/controls/ToolbarSelect/ToolbarSelect.styles.d.ts +5 -5
- package/dist/controls/ToolbarSelect/index.d.ts +1 -1
- package/dist/controls/index.d.ts +6 -6
- package/dist/core/Portal/Portal.d.ts +6 -6
- package/dist/core/Portal/index.d.ts +1 -1
- package/dist/core/SousChefProvider/SousChefProvider.d.ts +6 -6
- package/dist/core/SousChefProvider/index.d.ts +1 -1
- package/dist/core/index.d.ts +2 -2
- package/dist/empty_states/EmptyState/EmptyState.d.ts +5 -5
- package/dist/empty_states/EmptyState/index.d.ts +1 -1
- package/dist/empty_states/EmptyStateContainer/EmptyStateContainer.d.ts +4 -4
- package/dist/empty_states/EmptyStateContainer/EmptyStateContainerCTA/EmptyStateContainerCTA.d.ts +11 -11
- package/dist/empty_states/EmptyStateContainer/EmptyStateContainerCTA/index.d.ts +1 -1
- package/dist/empty_states/EmptyStateContainer/EmptyStateContainerInline/EmptyStateContainerInline.d.ts +4 -4
- package/dist/empty_states/EmptyStateContainer/EmptyStateContainerInline/index.d.ts +1 -1
- package/dist/empty_states/EmptyStateContainer/EmptyStateContainerStack/EmptyStateContainerStack.d.ts +4 -4
- package/dist/empty_states/EmptyStateContainer/EmptyStateContainerStack/index.d.ts +1 -1
- package/dist/empty_states/EmptyStateContainer/constants.d.ts +5 -5
- package/dist/empty_states/EmptyStateContainer/index.d.ts +1 -1
- package/dist/empty_states/EmptyStateContainer/types.d.ts +24 -24
- package/dist/empty_states/Paywall/Paywall.d.ts +4 -4
- package/dist/empty_states/Paywall/index.d.ts +1 -1
- package/dist/empty_states/index.d.ts +3 -3
- package/dist/feedback/CircularProgress/CircularProgress.d.ts +9 -9
- package/dist/feedback/CircularProgress/index.d.ts +1 -1
- package/dist/feedback/InlineBanner/ButtonCTA/ButtonCTA.d.ts +10 -10
- package/dist/feedback/InlineBanner/ButtonCTA/index.d.ts +1 -1
- package/dist/feedback/InlineBanner/InlineBanner.d.ts +15 -15
- package/dist/feedback/InlineBanner/InlineBannerCTA/InlineBannerCTA.d.ts +11 -11
- package/dist/feedback/InlineBanner/InlineBannerCTA/index.d.ts +1 -1
- package/dist/feedback/InlineBanner/InlineBannerIcon/InlineBannerIcon.d.ts +7 -7
- package/dist/feedback/InlineBanner/InlineBannerIcon/index.d.ts +1 -1
- package/dist/feedback/InlineBanner/constants.d.ts +11 -11
- package/dist/feedback/InlineBanner/index.d.ts +1 -1
- package/dist/feedback/InlineBanner/types.d.ts +1 -1
- package/dist/feedback/PersistentBanner/PersistentBanner.d.ts +13 -13
- package/dist/feedback/PersistentBanner/constants.d.ts +5 -5
- package/dist/feedback/PersistentBanner/index.d.ts +1 -1
- package/dist/feedback/PersistentBanner/types.d.ts +1 -1
- package/dist/feedback/Progress/domain.d.ts +11 -11
- package/dist/feedback/Progress/useProgress.d.ts +18 -18
- package/dist/feedback/ProgressBar/ProgressBar.d.ts +9 -9
- package/dist/feedback/ProgressBar/index.d.ts +1 -1
- package/dist/feedback/Skeleton/Skeleton.d.ts +14 -14
- package/dist/feedback/Skeleton/constants.d.ts +9 -9
- package/dist/feedback/Skeleton/index.d.ts +1 -1
- package/dist/feedback/Skeleton/types.d.ts +1 -1
- package/dist/feedback/Spinner/Spinner.d.ts +9 -9
- package/dist/feedback/Spinner/constants.d.ts +6 -6
- package/dist/feedback/Spinner/index.d.ts +1 -1
- package/dist/feedback/Toast/Toast.d.ts +10 -10
- package/dist/feedback/Toast/constants.d.ts +5 -5
- package/dist/feedback/Toast/index.d.ts +1 -1
- package/dist/feedback/Toast/types.d.ts +1 -1
- package/dist/feedback/index.d.ts +8 -8
- package/dist/forms/AffixContainer/AffixContainer.d.ts +9 -9
- package/dist/forms/AffixContainer/index.d.ts +1 -1
- package/dist/forms/AsyncSelectField/AsyncSelectField.d.ts +15 -15
- package/dist/forms/AsyncSelectField/CustomList/CustomList.d.ts +8 -8
- package/dist/forms/AsyncSelectField/CustomList/index.d.ts +1 -1
- package/dist/forms/AsyncSelectField/index.d.ts +1 -1
- package/dist/forms/AsyncSelectField/types.d.ts +5 -5
- package/dist/forms/Caption/Caption.d.ts +7 -7
- package/dist/forms/Caption/index.d.ts +1 -1
- package/dist/forms/CheckboxField/CheckboxField.d.ts +18 -18
- package/dist/forms/CheckboxField/index.d.ts +1 -1
- package/dist/forms/CurrencyField/CurrencyField.d.ts +12 -12
- package/dist/forms/CurrencyField/index.d.ts +1 -1
- package/dist/forms/DateField/DateField.d.ts +27 -27
- package/dist/forms/DateField/index.d.ts +1 -1
- package/dist/forms/DateRangeField/DateRangeCalendar/DateRangeCalendar.d.ts +22 -22
- package/dist/forms/DateRangeField/DateRangeCalendar/index.d.ts +1 -1
- package/dist/forms/DateRangeField/DateRangeField.d.ts +26 -26
- package/dist/forms/DateRangeField/FromDate/FromDate.d.ts +20 -20
- package/dist/forms/DateRangeField/FromDate/index.d.ts +1 -1
- package/dist/forms/DateRangeField/ToDate/ToDate.d.ts +19 -19
- package/dist/forms/DateRangeField/ToDate/index.d.ts +1 -1
- package/dist/forms/DateRangeField/index.d.ts +1 -1
- package/dist/forms/ErrorMessage/ErrorMessage.d.ts +8 -8
- package/dist/forms/ErrorMessage/index.d.ts +1 -1
- package/dist/forms/Field/Field.d.ts +11 -11
- package/dist/forms/Field/index.d.ts +1 -1
- package/dist/forms/Form/Form.d.ts +14 -14
- package/dist/forms/Form/FormContext.d.ts +8 -8
- package/dist/forms/Form/index.d.ts +1 -1
- package/dist/forms/Form/types.d.ts +3 -3
- package/dist/forms/FormFeedback/FormFeedback.d.ts +8 -8
- package/dist/forms/FormFeedback/index.d.ts +1 -1
- package/dist/forms/FormFooter/FormFooter.d.ts +12 -12
- package/dist/forms/FormFooter/FormFooterActions/FormFooterActions.d.ts +10 -10
- package/dist/forms/FormFooter/domain.d.ts +2 -2
- package/dist/forms/FormFooter/index.d.ts +1 -1
- package/dist/forms/FormRow/FormRow.d.ts +21 -21
- package/dist/forms/FormRow/index.d.ts +1 -1
- package/dist/forms/FormSection/FormSection.d.ts +10 -10
- package/dist/forms/FormSection/index.d.ts +1 -1
- package/dist/forms/Label/Label.d.ts +8 -8
- package/dist/forms/Label/domain.d.ts +1 -1
- package/dist/forms/Label/index.d.ts +1 -1
- package/dist/forms/Label/useLabelTooltip.d.ts +7 -7
- package/dist/forms/MultiSelectField/MultiSelectField.d.ts +34 -34
- package/dist/forms/MultiSelectField/index.d.ts +1 -1
- package/dist/forms/PasswordCriteria/PasswordCriteria.d.ts +7 -7
- package/dist/forms/PasswordCriteria/index.d.ts +1 -1
- package/dist/forms/PasswordField/PasswordField.d.ts +20 -20
- package/dist/forms/PasswordField/index.d.ts +1 -1
- package/dist/forms/PasswordField/types.d.ts +5 -5
- package/dist/forms/PercentageField/PercentageField.d.ts +13 -13
- package/dist/forms/PercentageField/index.d.ts +1 -1
- package/dist/forms/PhoneField/CountrySelector/CountrySelector.d.ts +10 -10
- package/dist/forms/PhoneField/CountrySelector/index.d.ts +1 -1
- package/dist/forms/PhoneField/PhoneField.d.ts +21 -21
- package/dist/forms/PhoneField/constants.d.ts +738 -738
- package/dist/forms/PhoneField/index.d.ts +1 -1
- package/dist/forms/PhoneField/types.d.ts +7 -7
- package/dist/forms/PhoneField/usePhoneField.d.ts +35 -35
- package/dist/forms/PillSelectField/PillSelectField.d.ts +19 -19
- package/dist/forms/PillSelectField/index.d.ts +1 -1
- package/dist/forms/RadioGroupBoxOption/RadioGroupBoxOption.d.ts +12 -12
- package/dist/forms/RadioGroupBoxOption/index.d.ts +1 -1
- package/dist/forms/RadioGroupField/BoxOptions/BoxOptions.d.ts +8 -8
- package/dist/forms/RadioGroupField/BoxOptions/index.d.ts +1 -1
- package/dist/forms/RadioGroupField/RadioGroupField.d.ts +25 -25
- package/dist/forms/RadioGroupField/RadioGroupFieldContext.d.ts +10 -10
- package/dist/forms/RadioGroupField/RadioOptions/RadioOptions.d.ts +9 -9
- package/dist/forms/RadioGroupField/RadioOptions/index.d.ts +1 -1
- package/dist/forms/RadioGroupField/domain.d.ts +6 -6
- package/dist/forms/RadioGroupField/index.d.ts +1 -1
- package/dist/forms/RadioGroupOption/RadioGroupOption.d.ts +12 -12
- package/dist/forms/RadioGroupOption/index.d.ts +1 -1
- package/dist/forms/SelectField/CustomContainer/CustomContainer.d.ts +2 -2
- package/dist/forms/SelectField/CustomContainer/index.d.ts +1 -1
- package/dist/forms/SelectField/CustomControl/CustomControl.d.ts +5 -5
- package/dist/forms/SelectField/CustomControl/index.d.ts +1 -1
- package/dist/forms/SelectField/CustomMenu/CustomMenu.d.ts +5 -5
- package/dist/forms/SelectField/CustomMenu/index.d.ts +1 -1
- package/dist/forms/SelectField/CustomOption/CustomOption.d.ts +2 -2
- package/dist/forms/SelectField/CustomOption/index.d.ts +1 -1
- package/dist/forms/SelectField/SelectField.d.ts +41 -41
- package/dist/forms/SelectField/SelectField.styles.d.ts +7 -7
- package/dist/forms/SelectField/domain.d.ts +5 -5
- package/dist/forms/SelectField/index.d.ts +1 -1
- package/dist/forms/SelectField/types.d.ts +21 -21
- package/dist/forms/SelectField/useSelectField.d.ts +15 -12
- package/dist/forms/TextAreaField/TextAreaField.d.ts +28 -28
- package/dist/forms/TextAreaField/index.d.ts +1 -1
- package/dist/forms/TextField/TextField.d.ts +28 -28
- package/dist/forms/TextField/index.d.ts +1 -1
- package/dist/forms/TextField/useTextField.d.ts +38 -38
- package/dist/forms/TimeField/TimeField.d.ts +26 -26
- package/dist/forms/TimeField/TimeFieldDropdown/TimeFieldDropdown.d.ts +13 -13
- package/dist/forms/TimeField/TimeFieldDropdown/index.d.ts +1 -1
- package/dist/forms/TimeField/TimeFieldDropdownTrigger/TimeFieldDropdownTrigger.d.ts +10 -10
- package/dist/forms/TimeField/TimeFieldDropdownTrigger/index.d.ts +1 -1
- package/dist/forms/TimeField/TimeFieldInput/TimeFieldInput.d.ts +10 -10
- package/dist/forms/TimeField/TimeFieldInput/index.d.ts +1 -1
- package/dist/forms/TimeField/domain.d.ts +4 -4
- package/dist/forms/TimeField/index.d.ts +1 -1
- package/dist/forms/TimeRangeField/TimeRangeEnd/TimeRangeEnd.d.ts +6 -6
- package/dist/forms/TimeRangeField/TimeRangeEnd/index.d.ts +1 -1
- package/dist/forms/TimeRangeField/TimeRangeField.d.ts +20 -20
- package/dist/forms/TimeRangeField/TimeRangeStart/TimeRangeStart.d.ts +6 -6
- package/dist/forms/TimeRangeField/TimeRangeStart/index.d.ts +1 -1
- package/dist/forms/TimeRangeField/index.d.ts +1 -1
- package/dist/forms/TimeRangeField/types.d.ts +10 -10
- package/dist/forms/WeekField/WeekField.d.ts +26 -26
- package/dist/forms/WeekField/index.d.ts +1 -1
- package/dist/forms/hooks/useCheckBoxFieldControllers.d.ts +18 -18
- package/dist/forms/hooks/useDateFieldControllers.d.ts +18 -18
- package/dist/forms/hooks/useFieldControllers.d.ts +24 -24
- package/dist/forms/hooks/useFieldId.d.ts +6 -6
- package/dist/forms/hooks/useGrowTextAreaRef.d.ts +10 -10
- package/dist/forms/hooks/useMultiSelectFieldControllers.d.ts +19 -19
- package/dist/forms/hooks/usePasswordCriteria.d.ts +3 -3
- package/dist/forms/hooks/usePhoneFieldControllers.d.ts +20 -20
- package/dist/forms/hooks/useRadioGroupFieldControllers.d.ts +15 -15
- package/dist/forms/hooks/useRangeFieldControllers.d.ts +18 -18
- package/dist/forms/hooks/useSelectFieldControllers.d.ts +20 -20
- package/dist/forms/hooks/useShouldScrollMenuIntoView.d.ts +1 -1
- package/dist/forms/index.d.ts +30 -30
- package/dist/foundation/constants.d.ts +1 -1
- package/dist/foundation/domain.d.ts +4 -2
- package/dist/foundation/tokens/color/color-codes.d.ts +46 -46
- package/dist/foundation/tokens/color/color-constants.d.ts +46 -46
- package/dist/foundation/tokens/color/color-types.d.ts +1 -1
- package/dist/foundation/tokens/zindex/z-index-constants.d.ts +8 -8
- package/dist/foundation/tokens/zindex/z-index-types.d.ts +1 -1
- package/dist/foundation/tokens/zindex/z-index-values.d.ts +8 -8
- package/dist/foundation/types.d.ts +25 -0
- package/dist/hooks/useIsMounted.d.ts +1 -1
- package/dist/hooks/useLocalStorage.d.ts +2 -2
- package/dist/hooks/usePortalContainer.d.ts +4 -4
- package/dist/hooks/usePositionStyles.d.ts +5 -5
- package/dist/icons/components/IconAnalytics.d.ts +9 -9
- package/dist/icons/components/IconArrowDown.d.ts +9 -9
- package/dist/icons/components/IconArrowDownWideShort.d.ts +9 -9
- package/dist/icons/components/IconArrowLeft.d.ts +9 -9
- package/dist/icons/components/IconArrowRight.d.ts +9 -9
- package/dist/icons/components/IconArrowToTop.d.ts +9 -9
- package/dist/icons/components/IconArrowTurnDownRight.d.ts +9 -9
- package/dist/icons/components/IconArrowUp.d.ts +9 -9
- package/dist/icons/components/IconAward.d.ts +9 -9
- package/dist/icons/components/IconAwful.d.ts +9 -9
- package/dist/icons/components/IconAwfulMonochromatic.d.ts +9 -9
- package/dist/icons/components/IconBad.d.ts +9 -9
- package/dist/icons/components/IconBadMonochromatic.d.ts +9 -9
- package/dist/icons/components/IconBalanceScale.d.ts +9 -9
- package/dist/icons/components/IconBalanceScaleLeft.d.ts +9 -9
- package/dist/icons/components/IconBan.d.ts +9 -9
- package/dist/icons/components/IconBarsH.d.ts +9 -9
- package/dist/icons/components/IconBarsV.d.ts +9 -9
- package/dist/icons/components/IconBell.d.ts +9 -9
- package/dist/icons/components/IconBirthdayCake.d.ts +9 -9
- package/dist/icons/components/IconBold.d.ts +9 -9
- package/dist/icons/components/IconBolt.d.ts +9 -9
- package/dist/icons/components/IconBook.d.ts +9 -9
- package/dist/icons/components/IconBriefcase.d.ts +9 -9
- package/dist/icons/components/IconBullseyeArrow.d.ts +9 -9
- package/dist/icons/components/IconCalculator.d.ts +9 -9
- package/dist/icons/components/IconCalendar.d.ts +9 -9
- package/dist/icons/components/IconCalendarAlt.d.ts +9 -9
- package/dist/icons/components/IconCalendarCheck.d.ts +9 -9
- package/dist/icons/components/IconCalendarDay.d.ts +9 -9
- package/dist/icons/components/IconCalendarExclamation.d.ts +9 -9
- package/dist/icons/components/IconCalendarStar.d.ts +9 -9
- package/dist/icons/components/IconCalendarTomorrow.d.ts +9 -9
- package/dist/icons/components/IconCamera.d.ts +9 -9
- package/dist/icons/components/IconCameraSlash.d.ts +9 -9
- package/dist/icons/components/IconCashRegister.d.ts +9 -9
- package/dist/icons/components/IconChartBar.d.ts +9 -9
- package/dist/icons/components/IconCheck.d.ts +9 -9
- package/dist/icons/components/IconCheckCircleIncomplete.d.ts +9 -9
- package/dist/icons/components/IconChevronDown.d.ts +9 -9
- package/dist/icons/components/IconChevronLeft.d.ts +9 -9
- package/dist/icons/components/IconChevronRight.d.ts +9 -9
- package/dist/icons/components/IconChevronUp.d.ts +9 -9
- package/dist/icons/components/IconClipboardList.d.ts +9 -9
- package/dist/icons/components/IconClock.d.ts +9 -9
- package/dist/icons/components/IconCog.d.ts +9 -9
- package/dist/icons/components/IconComment.d.ts +9 -9
- package/dist/icons/components/IconCommentLines.d.ts +9 -9
- package/dist/icons/components/IconCopy.d.ts +9 -9
- package/dist/icons/components/IconCreditCard.d.ts +9 -9
- package/dist/icons/components/IconCreditCardPlus.d.ts +9 -9
- package/dist/icons/components/IconDecent.d.ts +9 -9
- package/dist/icons/components/IconDecentMonochromatic.d.ts +9 -9
- package/dist/icons/components/IconDownload.d.ts +9 -9
- package/dist/icons/components/IconEdit.d.ts +9 -9
- package/dist/icons/components/IconEllipsisV.d.ts +9 -9
- package/dist/icons/components/IconEnvelope.d.ts +9 -9
- package/dist/icons/components/IconEnvelopeOpenDollar.d.ts +9 -9
- package/dist/icons/components/IconExclaimation.d.ts +9 -9
- package/dist/icons/components/IconExclaimationTriangle.d.ts +9 -9
- package/dist/icons/components/IconExpand.d.ts +9 -9
- package/dist/icons/components/IconExternalLink.d.ts +9 -9
- package/dist/icons/components/IconEye.d.ts +9 -9
- package/dist/icons/components/IconEyeSlash.d.ts +9 -9
- package/dist/icons/components/IconFile.d.ts +9 -9
- package/dist/icons/components/IconFilePdf.d.ts +9 -9
- package/dist/icons/components/IconFlag.d.ts +9 -9
- package/dist/icons/components/IconFourDotsCircle.d.ts +9 -9
- package/dist/icons/components/IconFourSquares.d.ts +9 -9
- package/dist/icons/components/IconGavel.d.ts +9 -9
- package/dist/icons/components/IconGif.d.ts +9 -9
- package/dist/icons/components/IconGift.d.ts +9 -9
- package/dist/icons/components/IconGood.d.ts +9 -9
- package/dist/icons/components/IconGoodMonochromatic.d.ts +9 -9
- package/dist/icons/components/IconGreat.d.ts +9 -9
- package/dist/icons/components/IconGreatMonochromatic.d.ts +9 -9
- package/dist/icons/components/IconGrinBeam.d.ts +9 -9
- package/dist/icons/components/IconGripVertical.d.ts +9 -9
- package/dist/icons/components/IconHandshake.d.ts +9 -9
- package/dist/icons/components/IconImage.d.ts +9 -9
- package/dist/icons/components/IconInfoCircle.d.ts +9 -9
- package/dist/icons/components/IconIslandTropical.d.ts +9 -9
- package/dist/icons/components/IconItalic.d.ts +9 -9
- package/dist/icons/components/IconLaptopSearch.d.ts +9 -9
- package/dist/icons/components/IconLink.d.ts +9 -9
- package/dist/icons/components/IconList.d.ts +9 -9
- package/dist/icons/components/IconListOI.d.ts +9 -9
- package/dist/icons/components/IconLock.d.ts +9 -9
- package/dist/icons/components/IconMagicSolid.d.ts +9 -9
- package/dist/icons/components/IconMapMarker.d.ts +9 -9
- package/dist/icons/components/IconMegaphone.d.ts +9 -9
- package/dist/icons/components/IconMessages.d.ts +9 -9
- package/dist/icons/components/IconMinus.d.ts +9 -9
- package/dist/icons/components/IconMinusCircle.d.ts +9 -9
- package/dist/icons/components/IconMoneyBill.d.ts +9 -9
- package/dist/icons/components/IconMugSaucerSolid.d.ts +9 -9
- package/dist/icons/components/IconNotesMedical.d.ts +9 -9
- package/dist/icons/components/IconOvertime.d.ts +9 -9
- package/dist/icons/components/IconPaperPlane.d.ts +9 -9
- package/dist/icons/components/IconPaperPlaneClock.d.ts +9 -9
- package/dist/icons/components/IconPaperclip.d.ts +9 -9
- package/dist/icons/components/IconPencil.d.ts +9 -9
- package/dist/icons/components/IconPercentage.d.ts +9 -9
- package/dist/icons/components/IconPhone.d.ts +9 -9
- package/dist/icons/components/IconPlug.d.ts +9 -9
- package/dist/icons/components/IconPlus.d.ts +9 -9
- package/dist/icons/components/IconPrint.d.ts +9 -9
- package/dist/icons/components/IconQuestionCircle.d.ts +9 -9
- package/dist/icons/components/IconRepeat.d.ts +9 -9
- package/dist/icons/components/IconReply.d.ts +9 -9
- package/dist/icons/components/IconRocket.d.ts +9 -9
- package/dist/icons/components/IconSearch.d.ts +9 -9
- package/dist/icons/components/IconSignOut.d.ts +9 -9
- package/dist/icons/components/IconSitemap.d.ts +9 -9
- package/dist/icons/components/IconSlidersH.d.ts +9 -9
- package/dist/icons/components/IconSort.d.ts +9 -9
- package/dist/icons/components/IconStar.d.ts +9 -9
- package/dist/icons/components/IconStarSolid.d.ts +9 -9
- package/dist/icons/components/IconStickyNoteLines.d.ts +9 -9
- package/dist/icons/components/IconStopwatch.d.ts +9 -9
- package/dist/icons/components/IconStrikethrough.d.ts +9 -9
- package/dist/icons/components/IconSync.d.ts +9 -9
- package/dist/icons/components/IconSyncExclaimation.d.ts +9 -9
- package/dist/icons/components/IconTable.d.ts +9 -9
- package/dist/icons/components/IconTachometer.d.ts +9 -9
- package/dist/icons/components/IconTimes.d.ts +9 -9
- package/dist/icons/components/IconTimesOctagon.d.ts +9 -9
- package/dist/icons/components/IconTrash.d.ts +9 -9
- package/dist/icons/components/IconUnderline.d.ts +9 -9
- package/dist/icons/components/IconUndo.d.ts +9 -9
- package/dist/icons/components/IconUniversity.d.ts +9 -9
- package/dist/icons/components/IconUnlock.d.ts +9 -9
- package/dist/icons/components/IconUserComputer.d.ts +9 -9
- package/dist/icons/components/IconUserFriends.d.ts +9 -9
- package/dist/icons/components/IconUserLight.d.ts +9 -9
- package/dist/icons/components/IconUserPlus.d.ts +9 -9
- package/dist/icons/components/IconUserSearch.d.ts +9 -9
- package/dist/icons/components/IconUserSlash.d.ts +9 -9
- package/dist/icons/components/IconUserSolid.d.ts +9 -9
- package/dist/icons/components/IconUserTag.d.ts +9 -9
- package/dist/icons/components/IconUserTie.d.ts +9 -9
- package/dist/icons/components/IconUsers.d.ts +9 -9
- package/dist/icons/components/IconVideo.d.ts +9 -9
- package/dist/icons/components/IconVolume.d.ts +9 -9
- package/dist/icons/components/IconVolumeMute.d.ts +9 -9
- package/dist/icons/components/IconWrench.d.ts +9 -9
- package/dist/icons/components/index.d.ts +146 -146
- package/dist/icons/constants.d.ts +6 -6
- package/dist/icons/icon-typescript-template.d.ts +9 -9
- package/dist/icons/iconUtils.d.ts +8 -8
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/types.d.ts +1 -1
- package/dist/index.d.ts +17 -17
- package/dist/index.js +194 -194
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +194 -194
- package/dist/index.modern.js.map +1 -1
- package/dist/layout/CalloutCard/CalloutCard.d.ts +15 -15
- package/dist/layout/CalloutCard/index.d.ts +1 -1
- package/dist/layout/Card/Card.d.ts +13 -13
- package/dist/layout/Card/index.d.ts +1 -1
- package/dist/layout/Flex/Flex.d.ts +23 -23
- package/dist/layout/Flex/index.d.ts +1 -1
- package/dist/layout/Flex/types.d.ts +8 -8
- package/dist/layout/Inline/Inline.d.ts +23 -23
- package/dist/layout/Inline/index.d.ts +1 -1
- package/dist/layout/Page/Page.d.ts +22 -22
- package/dist/layout/Page/PageBreadcrumbs/PageBreadcrumbs.d.ts +7 -7
- package/dist/layout/Page/PageBreadcrumbs/index.d.ts +1 -1
- package/dist/layout/Page/constants.d.ts +4 -4
- package/dist/layout/Page/index.d.ts +1 -1
- package/dist/layout/Page/types.d.ts +6 -6
- package/dist/layout/Stack/Stack.d.ts +22 -22
- package/dist/layout/Stack/index.d.ts +1 -1
- package/dist/layout/index.d.ts +7 -7
- package/dist/lists/DataTable/DataTable.d.ts +35 -35
- package/dist/lists/DataTable/DataTableContext.d.ts +12 -12
- package/dist/lists/DataTable/DataTableCoverShadow/DataTableCoverShadow.d.ts +8 -8
- package/dist/lists/DataTable/DataTableCoverShadow/index.d.ts +1 -1
- package/dist/lists/DataTable/DataTableDefaultItemComponent/DataTableDefaultItemComponent.d.ts +4 -4
- package/dist/lists/DataTable/DataTableDefaultItemComponent/index.d.ts +1 -1
- package/dist/lists/DataTable/DataTableHeader/ColumnSizes/ColumnSizes.d.ts +8 -8
- package/dist/lists/DataTable/DataTableHeader/ColumnSizes/index.d.ts +1 -1
- package/dist/lists/DataTable/DataTableHeader/DataTableHeader.d.ts +9 -9
- package/dist/lists/DataTable/DataTableHeader/HeaderSortIcon/HeaderSortIcon.d.ts +7 -7
- package/dist/lists/DataTable/DataTableHeader/HeaderSortIcon/index.d.ts +1 -1
- package/dist/lists/DataTable/DataTableHeader/constants.d.ts +2 -2
- package/dist/lists/DataTable/DataTableHeader/domain.d.ts +2 -2
- package/dist/lists/DataTable/DataTableHeader/types.d.ts +4 -4
- package/dist/lists/DataTable/DataTableLoadingBlock/DataTableLoadingBlock.d.ts +7 -7
- package/dist/lists/DataTable/DataTableLoadingBlock/index.d.ts +1 -1
- package/dist/lists/DataTable/DataTableScrollFakeBorder/DataTableScrollFakeBorder.d.ts +12 -12
- package/dist/lists/DataTable/DataTableScrollFakeBorder/index.d.ts +1 -1
- package/dist/lists/DataTable/DataTableStickyColumnsContainer/DataTableStickyColumnsContainer.d.ts +10 -10
- package/dist/lists/DataTable/DataTableStickyColumnsContainer/index.d.ts +1 -1
- package/dist/lists/DataTable/constants.d.ts +12 -12
- package/dist/lists/DataTable/domain.d.ts +7 -7
- package/dist/lists/DataTable/index.d.ts +1 -1
- package/dist/lists/DataTable/types.d.ts +39 -39
- package/dist/lists/DataTableCell/DataTableCell.d.ts +11 -11
- package/dist/lists/DataTableCell/index.d.ts +1 -1
- package/dist/lists/DataTableEditableCell/DataTableEditableCell.d.ts +22 -22
- package/dist/lists/DataTableEditableCell/index.d.ts +1 -1
- package/dist/lists/DataTableRow/DataTableRow.d.ts +16 -16
- package/dist/lists/DataTableRow/DataTableRowActions/DataTableRowActions.d.ts +8 -8
- package/dist/lists/DataTableRow/DataTableRowActions/index.d.ts +1 -1
- package/dist/lists/DataTableRow/index.d.ts +1 -1
- package/dist/lists/hooks/useDataTableScrollState.d.ts +13 -13
- package/dist/lists/index.d.ts +7 -7
- package/dist/media/Avatar/Avatar.d.ts +12 -12
- package/dist/media/Avatar/AvatarImage/AvatarImage.d.ts +9 -9
- package/dist/media/Avatar/AvatarImage/index.d.ts +1 -1
- package/dist/media/Avatar/constants.d.ts +4 -4
- package/dist/media/Avatar/index.d.ts +1 -1
- package/dist/media/Badge/Badge.d.ts +10 -10
- package/dist/media/Badge/index.d.ts +1 -1
- package/dist/media/Chip/Chip.d.ts +11 -11
- package/dist/media/Chip/constants.d.ts +8 -8
- package/dist/media/Chip/index.d.ts +1 -1
- package/dist/media/Chip/types.d.ts +1 -1
- package/dist/media/Pill/Pill.d.ts +10 -10
- package/dist/media/Pill/constants.d.ts +7 -7
- package/dist/media/Pill/index.d.ts +1 -1
- package/dist/media/Pill/types.d.ts +1 -1
- package/dist/media/index.d.ts +5 -5
- package/dist/navigation/BreadcrumbItem/BreadcrumbItem.d.ts +10 -10
- package/dist/navigation/BreadcrumbItem/index.d.ts +1 -1
- package/dist/navigation/Breadcrumbs/Breadcrumbs.d.ts +6 -6
- package/dist/navigation/Breadcrumbs/index.d.ts +1 -1
- package/dist/navigation/index.d.ts +3 -3
- package/dist/overlay/Calendar/Calendar.d.ts +24 -24
- package/dist/overlay/Calendar/constants.d.ts +8 -8
- package/dist/overlay/Calendar/domain.d.ts +7 -7
- package/dist/overlay/Calendar/index.d.ts +1 -1
- package/dist/overlay/Calendar/types.d.ts +2 -2
- package/dist/overlay/Dropdown/Dropdown.d.ts +17 -17
- package/dist/overlay/Dropdown/DropdownContext.d.ts +10 -10
- package/dist/overlay/Dropdown/constants.d.ts +8 -8
- package/dist/overlay/Dropdown/domain.d.ts +2 -2
- package/dist/overlay/Dropdown/index.d.ts +1 -1
- package/dist/overlay/Dropdown/types.d.ts +2 -2
- package/dist/overlay/DropdownList/DropdownList.d.ts +10 -10
- package/dist/overlay/DropdownList/domain.d.ts +2 -2
- package/dist/overlay/DropdownList/index.d.ts +1 -1
- package/dist/overlay/DropdownListDivider/DropdownListDivider.d.ts +6 -6
- package/dist/overlay/DropdownListDivider/index.d.ts +1 -1
- package/dist/overlay/DropdownListItem/DropdownListItem.d.ts +20 -20
- package/dist/overlay/DropdownListItem/index.d.ts +1 -1
- package/dist/overlay/DropdownPane/DropdownPane.d.ts +15 -15
- package/dist/overlay/DropdownPane/domain.d.ts +5 -5
- package/dist/overlay/DropdownPane/index.d.ts +1 -1
- package/dist/overlay/HintModal/HintModal.d.ts +13 -13
- package/dist/overlay/HintModal/index.d.ts +1 -1
- package/dist/overlay/KebabMenu/KebabMenu.d.ts +7 -7
- package/dist/overlay/KebabMenu/index.d.ts +1 -1
- package/dist/overlay/KebabMenu/types.d.ts +7 -7
- package/dist/overlay/Modal/Modal.d.ts +24 -24
- package/dist/overlay/Modal/ModalBody/ModalBody.d.ts +7 -7
- package/dist/overlay/Modal/ModalBody/index.d.ts +1 -1
- package/dist/overlay/Modal/ModalBody/useScrollShadow.d.ts +7 -7
- package/dist/overlay/Modal/ModalContext.d.ts +7 -7
- package/dist/overlay/Modal/ModalFooter/ModalFooter.d.ts +13 -13
- package/dist/overlay/Modal/ModalFooter/index.d.ts +1 -1
- package/dist/overlay/Modal/ModalHeader/ModalHeader.d.ts +9 -9
- package/dist/overlay/Modal/ModalHeader/index.d.ts +1 -1
- package/dist/overlay/Modal/index.d.ts +1 -1
- package/dist/overlay/Tooltip/Tooltip.d.ts +22 -22
- package/dist/overlay/Tooltip/TooltipOverlay/TooltipOverlay.d.ts +16 -16
- package/dist/overlay/Tooltip/TooltipOverlay/domain.d.ts +20 -20
- package/dist/overlay/Tooltip/TooltipOverlay/index.d.ts +1 -1
- package/dist/overlay/Tooltip/constants.d.ts +15 -15
- package/dist/overlay/Tooltip/index.d.ts +1 -1
- package/dist/overlay/Tooltip/types.d.ts +6 -6
- package/dist/overlay/hooks/useListKeyboardNavigation/domain.d.ts +3 -3
- package/dist/overlay/hooks/useListKeyboardNavigation/index.d.ts +2 -2
- package/dist/overlay/hooks/useListKeyboardNavigation/types.d.ts +6 -6
- package/dist/overlay/hooks/useListKeyboardNavigation/useKeyPress.d.ts +1 -1
- package/dist/overlay/hooks/useListKeyboardNavigation/useListKeyboardNavigation.d.ts +11 -11
- package/dist/overlay/hooks/useOnClickOutside.d.ts +4 -4
- package/dist/overlay/index.d.ts +11 -11
- package/dist/typography/KeyboardKey/KeyboardKey.d.ts +7 -7
- package/dist/typography/KeyboardKey/index.d.ts +1 -1
- package/dist/typography/Text/Bold/Bold.d.ts +6 -6
- package/dist/typography/Text/Bold/index.d.ts +1 -1
- package/dist/typography/Text/Italic/Italic.d.ts +6 -6
- package/dist/typography/Text/Italic/index.d.ts +1 -1
- package/dist/typography/Text/Text.d.ts +25 -25
- package/dist/typography/Text/Underline/Underline.d.ts +6 -6
- package/dist/typography/Text/Underline/index.d.ts +1 -1
- package/dist/typography/Text/constants.d.ts +22 -22
- package/dist/typography/Text/index.d.ts +1 -1
- package/dist/typography/Text/types.d.ts +3 -3
- package/dist/typography/index.d.ts +5 -5
- package/dist/utils/actions.d.ts +2 -2
- package/dist/utils/browser.d.ts +1 -1
- package/dist/utils/date.d.ts +32 -32
- package/dist/utils/dom.d.ts +1 -1
- package/dist/utils/formik.d.ts +6 -6
- package/dist/utils/i18n.d.ts +1 -1
- package/dist/utils/math.d.ts +5 -5
- package/dist/utils/props.d.ts +27 -27
- package/dist/utils/storybookArgTypes.d.ts +89 -89
- package/dist/utils/string.d.ts +2 -2
- package/dist/utils/types.d.ts +2 -2
- package/package.json +5 -2
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import React, { MutableRefObject } from 'react';
|
|
2
|
-
import { BlockedDays, WeekStart } from '../../utils/date';
|
|
3
|
-
import { CalendarMode, CalendarPlacement } from './types';
|
|
4
|
-
|
|
5
|
-
mode?: CalendarMode;
|
|
6
|
-
/** Note that if the calendar is not able to fit in the selected position,
|
|
7
|
-
* it will override this selection and select the one that fits in the window. */
|
|
8
|
-
position?: CalendarPlacement;
|
|
9
|
-
weekStart?: WeekStart;
|
|
10
|
-
selected?: Date;
|
|
11
|
-
initialMonth?: Date;
|
|
12
|
-
onSelect: (selected: Date) => void;
|
|
13
|
-
onClickOutside: () => void;
|
|
14
|
-
/** It disable some dates so the user can't click on them. Refer to this
|
|
15
|
-
* [doc](https://react-day-picker-v7.netlify.app/api/DayPicker#disabledDays) to see what
|
|
16
|
-
* values you can use. */
|
|
17
|
-
disabledDays?: BlockedDays;
|
|
18
|
-
anchorRef: MutableRefObject<HTMLElement | null>;
|
|
19
|
-
testId?: string;
|
|
20
|
-
onMonthChange?: (month: Date) => void;
|
|
21
|
-
};
|
|
22
|
-
/**Calendar overlay component*/
|
|
23
|
-
declare const Calendar: React.FC<Props>;
|
|
24
|
-
export default Calendar;
|
|
1
|
+
import React, { MutableRefObject } from 'react';
|
|
2
|
+
import { BlockedDays, WeekStart } from '../../utils/date';
|
|
3
|
+
import { CalendarMode, CalendarPlacement } from './types';
|
|
4
|
+
type Props = {
|
|
5
|
+
mode?: CalendarMode;
|
|
6
|
+
/** Note that if the calendar is not able to fit in the selected position,
|
|
7
|
+
* it will override this selection and select the one that fits in the window. */
|
|
8
|
+
position?: CalendarPlacement;
|
|
9
|
+
weekStart?: WeekStart;
|
|
10
|
+
selected?: Date;
|
|
11
|
+
initialMonth?: Date;
|
|
12
|
+
onSelect: (selected: Date) => void;
|
|
13
|
+
onClickOutside: () => void;
|
|
14
|
+
/** It disable some dates so the user can't click on them. Refer to this
|
|
15
|
+
* [doc](https://react-day-picker-v7.netlify.app/api/DayPicker#disabledDays) to see what
|
|
16
|
+
* values you can use. */
|
|
17
|
+
disabledDays?: BlockedDays;
|
|
18
|
+
anchorRef: MutableRefObject<HTMLElement | null>;
|
|
19
|
+
testId?: string;
|
|
20
|
+
onMonthChange?: (month: Date) => void;
|
|
21
|
+
};
|
|
22
|
+
/**Calendar overlay component*/
|
|
23
|
+
declare const Calendar: React.FC<Props>;
|
|
24
|
+
export default Calendar;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const CALENDAR_MODE: {
|
|
2
|
-
DAY: "day";
|
|
3
|
-
WEEK: "week";
|
|
4
|
-
};
|
|
5
|
-
export declare const CALENDAR_PLACEMENT: {
|
|
6
|
-
BOTTOM: "bottom";
|
|
7
|
-
TOP: "top";
|
|
8
|
-
};
|
|
1
|
+
export declare const CALENDAR_MODE: {
|
|
2
|
+
DAY: "day";
|
|
3
|
+
WEEK: "week";
|
|
4
|
+
};
|
|
5
|
+
export declare const CALENDAR_PLACEMENT: {
|
|
6
|
+
BOTTOM: "bottom";
|
|
7
|
+
TOP: "top";
|
|
8
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CalendarPlacement } from './types';
|
|
2
|
-
|
|
3
|
-
left: number;
|
|
4
|
-
top: number;
|
|
5
|
-
};
|
|
6
|
-
export declare const calculateCalendarPosition: (placement: CalendarPlacement, anchorPosition: DOMRect, calendarDimensions?: DOMRect
|
|
7
|
-
export {};
|
|
1
|
+
import { CalendarPlacement } from './types';
|
|
2
|
+
type Position = {
|
|
3
|
+
left: number;
|
|
4
|
+
top: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const calculateCalendarPosition: (placement: CalendarPlacement, anchorPosition: DOMRect, calendarDimensions?: DOMRect) => Position;
|
|
7
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Calendar';
|
|
1
|
+
export { default } from './Calendar';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type CalendarPlacement = 'top' | 'bottom';
|
|
2
|
+
export type CalendarMode = 'day' | 'week';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import React, { RefAttributes } from 'react';
|
|
2
|
-
import { DropdownAlignment, DropdownTrigger } from './types';
|
|
3
|
-
import { ZIndex } from '../../foundation/tokens/zindex/z-index-types';
|
|
4
|
-
|
|
5
|
-
trigger: React.ReactElement & RefAttributes<unknown>;
|
|
6
|
-
width?: number;
|
|
7
|
-
maxHeight?: number;
|
|
8
|
-
triggersOn?: DropdownTrigger;
|
|
9
|
-
alignment?: DropdownAlignment;
|
|
10
|
-
testId?: string;
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
triggerWidth?: 'full' | 'restricted';
|
|
13
|
-
/** Sets the z-index of the dropdown menu pane */
|
|
14
|
-
zIndex?: number | ZIndex;
|
|
15
|
-
};
|
|
16
|
-
declare const Dropdown: ({ trigger, triggersOn, alignment, width, maxHeight, testId, children, triggerWidth, zIndex }: Props) => React.JSX.Element;
|
|
17
|
-
export default Dropdown;
|
|
1
|
+
import React, { RefAttributes } from 'react';
|
|
2
|
+
import { DropdownAlignment, DropdownTrigger } from './types';
|
|
3
|
+
import { ZIndex } from '../../foundation/tokens/zindex/z-index-types';
|
|
4
|
+
type Props = {
|
|
5
|
+
trigger: React.ReactElement & RefAttributes<unknown>;
|
|
6
|
+
width?: number;
|
|
7
|
+
maxHeight?: number;
|
|
8
|
+
triggersOn?: DropdownTrigger;
|
|
9
|
+
alignment?: DropdownAlignment;
|
|
10
|
+
testId?: string;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
triggerWidth?: 'full' | 'restricted';
|
|
13
|
+
/** Sets the z-index of the dropdown menu pane */
|
|
14
|
+
zIndex?: number | ZIndex;
|
|
15
|
+
};
|
|
16
|
+
declare const Dropdown: ({ trigger, triggersOn, alignment, width, maxHeight, testId, children, triggerWidth, zIndex }: Props) => React.JSX.Element;
|
|
17
|
+
export default Dropdown;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export
|
|
3
|
-
onToggleDropdown: () => void;
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
triggerRef: React.Ref<HTMLElement>;
|
|
6
|
-
paneRef: React.RefObject<HTMLElement>;
|
|
7
|
-
};
|
|
8
|
-
declare const DropdownContext: React.Context<DropdownContextType>;
|
|
9
|
-
export declare const useDropdownContext: () => DropdownContextType;
|
|
10
|
-
export default DropdownContext;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type DropdownContextType = {
|
|
3
|
+
onToggleDropdown: () => void;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
triggerRef: React.Ref<HTMLElement>;
|
|
6
|
+
paneRef: React.RefObject<HTMLElement>;
|
|
7
|
+
};
|
|
8
|
+
declare const DropdownContext: React.Context<DropdownContextType>;
|
|
9
|
+
export declare const useDropdownContext: () => DropdownContextType;
|
|
10
|
+
export default DropdownContext;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const DROPDOWN_ALIGNEMNT: {
|
|
2
|
-
LEFT: "left";
|
|
3
|
-
RIGHT: "right";
|
|
4
|
-
};
|
|
5
|
-
export declare const DROPDOWN_TRIGGER: {
|
|
6
|
-
HOVER: "hover";
|
|
7
|
-
CLICK: "click";
|
|
8
|
-
};
|
|
1
|
+
export declare const DROPDOWN_ALIGNEMNT: {
|
|
2
|
+
LEFT: "left";
|
|
3
|
+
RIGHT: "right";
|
|
4
|
+
};
|
|
5
|
+
export declare const DROPDOWN_TRIGGER: {
|
|
6
|
+
HOVER: "hover";
|
|
7
|
+
CLICK: "click";
|
|
8
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const isGoingTowardsPane: (panePosition: DOMRect, mouseYAxisPosition: number) => boolean;
|
|
2
|
-
export declare const getKeyboardFocusableElements: (element: HTMLElement) => HTMLElement[];
|
|
1
|
+
export declare const isGoingTowardsPane: (panePosition: DOMRect, mouseYAxisPosition: number) => boolean;
|
|
2
|
+
export declare const getKeyboardFocusableElements: (element: HTMLElement) => HTMLElement[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Dropdown';
|
|
1
|
+
export { default } from './Dropdown';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type DropdownAlignment = 'left' | 'right';
|
|
2
|
+
export type DropdownTrigger = 'click' | 'hover';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
testId?: string;
|
|
4
|
-
/** `DropdownListItem` and `DropdownDivider` are the only valid children of DropdownList. */
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
/** `highlightItemIndex` can be used to manage the DropdownListItem to highlight when using searching the dropdown. */
|
|
7
|
-
highlightItemIndex?: number;
|
|
8
|
-
};
|
|
9
|
-
declare const DropdownList: React.FC<Props>;
|
|
10
|
-
export default DropdownList;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
testId?: string;
|
|
4
|
+
/** `DropdownListItem` and `DropdownDivider` are the only valid children of DropdownList. */
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
/** `highlightItemIndex` can be used to manage the DropdownListItem to highlight when using searching the dropdown. */
|
|
7
|
+
highlightItemIndex?: number;
|
|
8
|
+
};
|
|
9
|
+
declare const DropdownList: React.FC<Props>;
|
|
10
|
+
export default DropdownList;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const canInteractWithItem: (child: React.ReactElement) => boolean;
|
|
2
|
-
export declare const calculateScrollYPosition: (newFocusItem: number, lastFocusItem: number, paneScrollTop: number, maxPaneHeight: number, elementYPosition: number) => number | null;
|
|
1
|
+
export declare const canInteractWithItem: (child: React.ReactElement) => boolean;
|
|
2
|
+
export declare const calculateScrollYPosition: (newFocusItem: number, lastFocusItem: number, paneScrollTop: number, maxPaneHeight: number, elementYPosition: number) => number | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './DropdownList';
|
|
1
|
+
export { default } from './DropdownList';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
testId?: string;
|
|
4
|
-
};
|
|
5
|
-
declare const DropdownListDivider: ({ testId }: Props) => React.JSX.Element;
|
|
6
|
-
export default DropdownListDivider;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
testId?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const DropdownListDivider: ({ testId }: Props) => React.JSX.Element;
|
|
6
|
+
export default DropdownListDivider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './DropdownListDivider';
|
|
1
|
+
export { default } from './DropdownListDivider';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Target } from '../../actions/Link/types';
|
|
3
|
-
|
|
4
|
-
onClick?: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
5
|
-
prefix?: React.ReactNode;
|
|
6
|
-
suffix?: React.ReactNode;
|
|
7
|
-
caption?: React.ReactNode;
|
|
8
|
-
selected?: boolean;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
testId?: string;
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
/** Setting an `href` on `DropdownListItem` will configure it to behave as a link. */
|
|
13
|
-
href?: string;
|
|
14
|
-
/** If an `href` is passed `target` will control whether the link opens in a new tab or the current one. */
|
|
15
|
-
target?: Target;
|
|
16
|
-
/** If an `href` is passed `reloadDocument` will control whether the link reloads the page or not. */
|
|
17
|
-
reloadDocument?: boolean;
|
|
18
|
-
};
|
|
19
|
-
declare const DropdownListItem: ({ onClick, prefix, suffix, caption, selected, disabled, testId, children, href, target, reloadDocument }: Props) => React.JSX.Element;
|
|
20
|
-
export default DropdownListItem;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Target } from '../../actions/Link/types';
|
|
3
|
+
type Props = {
|
|
4
|
+
onClick?: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
5
|
+
prefix?: React.ReactNode;
|
|
6
|
+
suffix?: React.ReactNode;
|
|
7
|
+
caption?: React.ReactNode;
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
testId?: string;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
/** Setting an `href` on `DropdownListItem` will configure it to behave as a link. */
|
|
13
|
+
href?: string;
|
|
14
|
+
/** If an `href` is passed `target` will control whether the link opens in a new tab or the current one. */
|
|
15
|
+
target?: Target;
|
|
16
|
+
/** If an `href` is passed `reloadDocument` will control whether the link reloads the page or not. */
|
|
17
|
+
reloadDocument?: boolean;
|
|
18
|
+
};
|
|
19
|
+
declare const DropdownListItem: ({ onClick, prefix, suffix, caption, selected, disabled, testId, children, href, target, reloadDocument }: Props) => React.JSX.Element;
|
|
20
|
+
export default DropdownListItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './DropdownListItem';
|
|
1
|
+
export { default } from './DropdownListItem';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DropdownAlignment } from '../Dropdown/types';
|
|
3
|
-
import { ZIndex } from '../../foundation/tokens/zindex/z-index-types';
|
|
4
|
-
|
|
5
|
-
width?: number;
|
|
6
|
-
maxHeight?: number;
|
|
7
|
-
onMouseEnter?: () => void;
|
|
8
|
-
onMouseLeave?: () => void;
|
|
9
|
-
testId?: string;
|
|
10
|
-
alignment: DropdownAlignment;
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
zIndex?: number | ZIndex;
|
|
13
|
-
};
|
|
14
|
-
declare const DropdownPane: (props: Props) => React.JSX.Element | null;
|
|
15
|
-
export default DropdownPane;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DropdownAlignment } from '../Dropdown/types';
|
|
3
|
+
import { ZIndex } from '../../foundation/tokens/zindex/z-index-types';
|
|
4
|
+
type Props = {
|
|
5
|
+
width?: number;
|
|
6
|
+
maxHeight?: number;
|
|
7
|
+
onMouseEnter?: () => void;
|
|
8
|
+
onMouseLeave?: () => void;
|
|
9
|
+
testId?: string;
|
|
10
|
+
alignment: DropdownAlignment;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
zIndex?: number | ZIndex;
|
|
13
|
+
};
|
|
14
|
+
declare const DropdownPane: (props: Props) => React.JSX.Element | null;
|
|
15
|
+
export default DropdownPane;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DropdownAlignment } from '../Dropdown/types';
|
|
2
|
-
export declare const calculateOverlayPosition: (triggerPosition: DOMRect, triggerOffsetHeight: number, panePosition: DOMRect, alignment: DropdownAlignment) => {
|
|
3
|
-
top: number;
|
|
4
|
-
left: number;
|
|
5
|
-
};
|
|
1
|
+
import { DropdownAlignment } from '../Dropdown/types';
|
|
2
|
+
export declare const calculateOverlayPosition: (triggerPosition: DOMRect, triggerOffsetHeight: number, panePosition: DOMRect, alignment: DropdownAlignment) => {
|
|
3
|
+
top: number;
|
|
4
|
+
left: number;
|
|
5
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './DropdownPane';
|
|
1
|
+
export { default } from './DropdownPane';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { PositionStyles } from '../../foundation/types';
|
|
3
|
-
export
|
|
4
|
-
header: ReactNode;
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
mediaUrl?: string;
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
modalId: string;
|
|
9
|
-
primaryButton: React.ReactElement;
|
|
10
|
-
testId?: string;
|
|
11
|
-
} & PositionStyles;
|
|
12
|
-
declare const HintModal: ({ header, children, mediaUrl, onClose, modalId, primaryButton, testId, ...positionProps }: Props) => React.JSX.Element;
|
|
13
|
-
export default HintModal;
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { PositionStyles } from '../../foundation/types';
|
|
3
|
+
export type Props = {
|
|
4
|
+
header: ReactNode;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
mediaUrl?: string;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
modalId: string;
|
|
9
|
+
primaryButton: React.ReactElement;
|
|
10
|
+
testId?: string;
|
|
11
|
+
} & PositionStyles;
|
|
12
|
+
declare const HintModal: ({ header, children, mediaUrl, onClose, modalId, primaryButton, testId, ...positionProps }: Props) => React.JSX.Element;
|
|
13
|
+
export default HintModal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './HintModal';
|
|
1
|
+
export { default } from './HintModal';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MenuAction } from './types';
|
|
3
|
-
|
|
4
|
-
actions: MenuAction[];
|
|
5
|
-
};
|
|
6
|
-
declare const KebabMenu: ({ actions }: Props) => React.JSX.Element;
|
|
7
|
-
export default KebabMenu;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MenuAction } from './types';
|
|
3
|
+
type Props = {
|
|
4
|
+
actions: MenuAction[];
|
|
5
|
+
};
|
|
6
|
+
declare const KebabMenu: ({ actions }: Props) => React.JSX.Element;
|
|
7
|
+
export default KebabMenu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './KebabMenu';
|
|
1
|
+
export { default } from './KebabMenu';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export
|
|
3
|
-
action: string;
|
|
4
|
-
label: React.ReactNode;
|
|
5
|
-
onAction: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
6
|
-
hidden?: boolean;
|
|
7
|
-
};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type MenuAction = {
|
|
3
|
+
action: string;
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
onAction: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
6
|
+
hidden?: boolean;
|
|
7
|
+
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ZIndex } from '../../foundation/tokens/zindex/z-index-types';
|
|
3
|
-
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
header?: React.ReactNode;
|
|
6
|
-
subHeader?: React.ReactNode;
|
|
7
|
-
/** Called when the user closes the modal, can be undefined to create a non-closable loading modal */
|
|
8
|
-
onClose?: () => void;
|
|
9
|
-
/** Sets the loading state of the modal and disables the close button when true. */
|
|
10
|
-
loading?: boolean;
|
|
11
|
-
zIndex?: number | ZIndex;
|
|
12
|
-
/** This is the ID for the root element so when the modal is open it only allows iteracting with the modal when pressing tab. Can also use `Modal.setAppElement('#root')` in te main app once. */
|
|
13
|
-
rootElementId?: string;
|
|
14
|
-
width?: number;
|
|
15
|
-
height?: number;
|
|
16
|
-
maxWidth?: number;
|
|
17
|
-
shouldReturnFocusAfterClose?: boolean;
|
|
18
|
-
testId?: string;
|
|
19
|
-
};
|
|
20
|
-
declare const Modal: {
|
|
21
|
-
({ children, header, subHeader, onClose, loading, zIndex, rootElementId, width, height, maxWidth, shouldReturnFocusAfterClose, testId }: Props): React.JSX.Element;
|
|
22
|
-
setAppElement(rootElement: string | HTMLElement): void;
|
|
23
|
-
};
|
|
24
|
-
export default Modal;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ZIndex } from '../../foundation/tokens/zindex/z-index-types';
|
|
3
|
+
type Props = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
header?: React.ReactNode;
|
|
6
|
+
subHeader?: React.ReactNode;
|
|
7
|
+
/** Called when the user closes the modal, can be undefined to create a non-closable loading modal */
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
/** Sets the loading state of the modal and disables the close button when true. */
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
zIndex?: number | ZIndex;
|
|
12
|
+
/** This is the ID for the root element so when the modal is open it only allows iteracting with the modal when pressing tab. Can also use `Modal.setAppElement('#root')` in te main app once. */
|
|
13
|
+
rootElementId?: string;
|
|
14
|
+
width?: number;
|
|
15
|
+
height?: number;
|
|
16
|
+
maxWidth?: number;
|
|
17
|
+
shouldReturnFocusAfterClose?: boolean;
|
|
18
|
+
testId?: string;
|
|
19
|
+
};
|
|
20
|
+
declare const Modal: {
|
|
21
|
+
({ children, header, subHeader, onClose, loading, zIndex, rootElementId, width, height, maxWidth, shouldReturnFocusAfterClose, testId }: Props): React.JSX.Element;
|
|
22
|
+
setAppElement(rootElement: string | HTMLElement): void;
|
|
23
|
+
};
|
|
24
|
+
export default Modal;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
testId?: string;
|
|
5
|
-
};
|
|
6
|
-
declare const ModalBody: ({ children, testId }: Props) => React.JSX.Element;
|
|
7
|
-
export default ModalBody;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
testId?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const ModalBody: ({ children, testId }: Props) => React.JSX.Element;
|
|
7
|
+
export default ModalBody;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './ModalBody';
|
|
1
|
+
export { default } from './ModalBody';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RefType } from '../../../utils/types';
|
|
2
|
-
|
|
3
|
-
ref: RefType<HTMLDivElement>;
|
|
4
|
-
showScrollShadow: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare const useScrollShadow: () => UseScrollShadow;
|
|
7
|
-
export {};
|
|
1
|
+
import { RefType } from '../../../utils/types';
|
|
2
|
+
type UseScrollShadow = {
|
|
3
|
+
ref: RefType<HTMLDivElement>;
|
|
4
|
+
showScrollShadow: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const useScrollShadow: () => UseScrollShadow;
|
|
7
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export
|
|
3
|
-
isModalMounted: boolean;
|
|
4
|
-
};
|
|
5
|
-
declare const ModalContext: React.Context<ModalContextType>;
|
|
6
|
-
export declare const useModalContext: () => ModalContextType;
|
|
7
|
-
export default ModalContext;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ModalContextType = {
|
|
3
|
+
isModalMounted: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const ModalContext: React.Context<ModalContextType>;
|
|
6
|
+
export declare const useModalContext: () => ModalContextType;
|
|
7
|
+
export default ModalContext;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
/** This will streamline the button creation and all the design pattern applied on buttons with a modal footer. If you want more flexibility to build the footer you can pass a `children` instead of using the `actions` prop. */
|
|
5
|
-
actions?: {
|
|
6
|
-
primary?: React.ReactElement;
|
|
7
|
-
secondary?: React.ReactElement;
|
|
8
|
-
tertiary?: React.ReactElement;
|
|
9
|
-
};
|
|
10
|
-
testId?: string;
|
|
11
|
-
};
|
|
12
|
-
declare const ModalFooter: ({ children, actions, testId }: Props) => React.JSX.Element;
|
|
13
|
-
export default ModalFooter;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
/** This will streamline the button creation and all the design pattern applied on buttons with a modal footer. If you want more flexibility to build the footer you can pass a `children` instead of using the `actions` prop. */
|
|
5
|
+
actions?: {
|
|
6
|
+
primary?: React.ReactElement;
|
|
7
|
+
secondary?: React.ReactElement;
|
|
8
|
+
tertiary?: React.ReactElement;
|
|
9
|
+
};
|
|
10
|
+
testId?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const ModalFooter: ({ children, actions, testId }: Props) => React.JSX.Element;
|
|
13
|
+
export default ModalFooter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './ModalFooter';
|
|
1
|
+
export { default } from './ModalFooter';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
header?: React.ReactNode;
|
|
4
|
-
subHeader?: React.ReactNode;
|
|
5
|
-
onClose?: () => void;
|
|
6
|
-
loading?: boolean;
|
|
7
|
-
};
|
|
8
|
-
declare const ModalHeader: ({ header, subHeader, onClose, loading }: Props) => React.JSX.Element | null;
|
|
9
|
-
export default ModalHeader;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
header?: React.ReactNode;
|
|
4
|
+
subHeader?: React.ReactNode;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const ModalHeader: ({ header, subHeader, onClose, loading }: Props) => React.JSX.Element | null;
|
|
9
|
+
export default ModalHeader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './ModalHeader';
|
|
1
|
+
export { default } from './ModalHeader';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Modal';
|
|
1
|
+
export { default } from './Modal';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Placement, TooltipTheme } from './types';
|
|
3
|
-
|
|
4
|
-
theme?: TooltipTheme;
|
|
5
|
-
/** It defines the overlay position on the screen. The component might not use the value defined in here as it will place the tooltip on the best place based on the anchor position on the screen. */
|
|
6
|
-
placement?: Placement;
|
|
7
|
-
/** It can be text or a JSX. */
|
|
8
|
-
overlay?: React.ReactNode;
|
|
9
|
-
/** Used on the `white` theme when there is a need of adding a header to the tooltip. */
|
|
10
|
-
header?: React.ReactNode;
|
|
11
|
-
/** If `true` it allow the overlay to keep open if the user hover it so, user can iteract with it (click on a link or copy the text). */
|
|
12
|
-
delayOnClose?: boolean;
|
|
13
|
-
/** If `true` it will add a delay on opening the overlay, if the user is not hovering the anchor it will not open the overlay. */
|
|
14
|
-
delayOnOpen?: boolean;
|
|
15
|
-
extraClass?: string;
|
|
16
|
-
onClose?: () => void;
|
|
17
|
-
onVisibleChange?: (isVisible: boolean) => void;
|
|
18
|
-
children: React.ReactElement;
|
|
19
|
-
testId?: string;
|
|
20
|
-
};
|
|
21
|
-
declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
-
export default _default;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Placement, TooltipTheme } from './types';
|
|
3
|
+
type Props = {
|
|
4
|
+
theme?: TooltipTheme;
|
|
5
|
+
/** It defines the overlay position on the screen. The component might not use the value defined in here as it will place the tooltip on the best place based on the anchor position on the screen. */
|
|
6
|
+
placement?: Placement;
|
|
7
|
+
/** It can be text or a JSX. */
|
|
8
|
+
overlay?: React.ReactNode;
|
|
9
|
+
/** Used on the `white` theme when there is a need of adding a header to the tooltip. */
|
|
10
|
+
header?: React.ReactNode;
|
|
11
|
+
/** If `true` it allow the overlay to keep open if the user hover it so, user can iteract with it (click on a link or copy the text). */
|
|
12
|
+
delayOnClose?: boolean;
|
|
13
|
+
/** If `true` it will add a delay on opening the overlay, if the user is not hovering the anchor it will not open the overlay. */
|
|
14
|
+
delayOnOpen?: boolean;
|
|
15
|
+
extraClass?: string;
|
|
16
|
+
onClose?: () => void;
|
|
17
|
+
onVisibleChange?: (isVisible: boolean) => void;
|
|
18
|
+
children: React.ReactElement;
|
|
19
|
+
testId?: string;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
export default _default;
|