@kubit-ui-web/react-components 2.0.0-beta.5 → 2.0.0-beta.51
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/CHANGELOG.md +45 -0
- package/README.md +413 -275
- package/dist/cjs/components/accordion/accordionControlled.js +1 -1
- package/dist/cjs/components/accordion/accordionStandAlone.js +1 -1
- package/dist/cjs/components/accordion/accordionUnControlled.js +1 -1
- package/dist/cjs/components/accordion/hooks/useAccordionContentOverflow.js +1 -1
- package/dist/cjs/components/accordion/hooks/useAccordionInertContent.js +1 -1
- package/dist/cjs/components/accordion/types/state.js +1 -1
- package/dist/cjs/components/alert/alertControlled.js +1 -0
- package/dist/cjs/components/alert/alertStandAlone.js +1 -0
- package/dist/cjs/components/alert/index.js +2 -0
- package/dist/cjs/components/avatar/avatar.js +1 -1
- package/dist/cjs/components/avatar/avatarStandAlone.js +1 -1
- package/dist/cjs/components/avatar/fragments/drawContent.js +1 -1
- package/dist/cjs/components/badge/badge.js +1 -1
- package/dist/cjs/components/badge/badgeStandAlone.js +1 -1
- package/dist/cjs/components/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/cjs/components/breadcrumbs/breadcrumbsStandAlone.js +1 -1
- package/dist/cjs/components/breadcrumbs/components/crumbStandAlone/crumbStandAlone.js +1 -1
- package/dist/cjs/components/breadcrumbs/hooks/useIsOverflow/useIsOverflow.js +1 -1
- package/dist/cjs/components/breadcrumbs/utils/crumbMaxCharName/crumbMaxCharName.js +1 -1
- package/dist/cjs/components/button/button.js +1 -1
- package/dist/cjs/components/button/buttonStandAlone.js +1 -1
- package/dist/cjs/components/calendar/calendar.js +1 -1
- package/dist/cjs/components/calendar/calendarStandAlone.js +1 -1
- package/dist/cjs/components/calendar/constants/constants.js +1 -1
- package/dist/cjs/components/calendar/header/header.js +1 -1
- package/dist/cjs/components/calendar/list/list.js +1 -1
- package/dist/cjs/components/calendar/selector/monthSelector/monthSelector.js +1 -1
- package/dist/cjs/components/calendar/selector/monthSelector/utils/monthSelector.utils.js +1 -1
- package/dist/cjs/components/calendar/selector/selector.js +1 -1
- package/dist/cjs/components/calendar/selector/yearSelector/utils/yearSelector.utils.js +1 -1
- package/dist/cjs/components/calendar/selector/yearSelector/yearSelector.js +1 -1
- package/dist/cjs/components/calendar/utils/getAllDaysInMonth.js +1 -1
- package/dist/cjs/components/calendar/utils/getFirstDayOfMonth.js +1 -1
- package/dist/cjs/components/calendar/utils/getState.js +1 -1
- package/dist/cjs/components/calendar/utils/getYearList.js +1 -1
- package/dist/cjs/components/calendar/utils/groupDaysByWeeks.js +1 -1
- package/dist/cjs/components/calendar/utils/handleKeysmoves.js +1 -1
- package/dist/cjs/components/calendar/utils/setMonth.js +1 -1
- package/dist/cjs/components/calendar/utils/setYear.js +1 -1
- package/dist/cjs/components/card/card.js +1 -0
- package/dist/cjs/components/card/cardStandAlone.js +1 -0
- package/dist/cjs/components/card/index.js +4 -0
- package/dist/cjs/components/carousel/carousel.js +1 -1
- package/dist/cjs/components/carousel/carouselStandAlone.js +1 -1
- package/dist/cjs/components/carousel/hooks/useCarousel.js +1 -1
- package/dist/cjs/components/carousel/hooks/useCarouselKeyNavigation.js +1 -1
- package/dist/cjs/components/carousel/hooks/useCarouselSwipe.js +1 -1
- package/dist/cjs/components/carousel/hooks/utils/calc.utils.js +1 -1
- package/dist/cjs/components/carousel/hooks/utils/constants.js +1 -1
- package/dist/cjs/components/carousel/hooks/utils/dom.utils.js +1 -1
- package/dist/cjs/components/carousel/types/carousel.js +1 -1
- package/dist/cjs/components/carousel/utils/carousel.utils.js +1 -1
- package/dist/cjs/components/checkbox/checkboxControlled.js +1 -1
- package/dist/cjs/components/checkbox/checkboxStandAlone.js +1 -1
- package/dist/cjs/components/checkbox/checkboxUnControlled.js +1 -1
- package/dist/cjs/components/checkbox/components/errorMessage.js +1 -1
- package/dist/cjs/components/checkbox/components/label.js +1 -1
- package/dist/cjs/components/checkbox/types/state.js +1 -1
- package/dist/cjs/components/checkbox/utils/aria.utils.js +1 -1
- package/dist/cjs/components/checkbox/utils/state.utils.js +1 -1
- package/dist/cjs/components/checkboxBase/checkboxBaseControlled.js +1 -1
- package/dist/cjs/components/checkboxBase/checkboxBaseStandAlone.js +1 -1
- package/dist/cjs/components/checkboxBase/checkboxBaseUncontrolled.js +1 -1
- package/dist/cjs/components/checkboxBase/hooks/useCheckbox.js +1 -1
- package/dist/cjs/components/chip/chip.js +1 -1
- package/dist/cjs/components/chip/chipStandAlone.js +1 -1
- package/dist/cjs/components/dataTable/components/dataTableHead.js +1 -1
- package/dist/cjs/components/dataTable/components/dataTableRows.js +1 -1
- package/dist/cjs/components/dataTable/components/hiddenDataTableHead.js +1 -1
- package/dist/cjs/components/dataTable/dataTable.js +1 -1
- package/dist/cjs/components/dataTable/dataTableStandAlone.js +1 -1
- package/dist/cjs/components/dataTable/hooks/useDataTableHasScroll.js +1 -1
- package/dist/cjs/components/dataTable/hooks/useDataTableShadow.js +1 -1
- package/dist/cjs/components/dataTable/hooks/useDataTableStickyDividers.js +1 -1
- package/dist/cjs/components/dataTable/hooks/useDataTableStickyLeftColumns.js +1 -1
- package/dist/cjs/components/dataTable/hooks/useDataTableStickyRightColumns.js +1 -1
- package/dist/cjs/components/dataTable/utils/cellConfig.js +1 -1
- package/dist/cjs/components/dataTable/utils/hoverable.js +1 -1
- package/dist/cjs/components/dataTable/utils/rowConfig.js +1 -1
- package/dist/cjs/components/dataTable/utils/tableConfig.js +1 -1
- package/dist/cjs/components/dot/dot.js +1 -1
- package/dist/cjs/components/dot/dotStandAlone.js +1 -1
- package/dist/cjs/components/icon/icon.js +1 -1
- package/dist/cjs/components/icon/iconHost.js +1 -1
- package/dist/cjs/components/icon/iconStandAlone.js +1 -1
- package/dist/cjs/components/image/components/pictureSourceStandAlone.js +1 -1
- package/dist/cjs/components/image/image2.js +1 -0
- package/dist/cjs/components/image/imageStandAlone.js +1 -1
- package/dist/cjs/components/image/utils/getFallbackRatio.js +1 -1
- package/dist/cjs/components/input/input.js +1 -1
- package/dist/cjs/components/input/inputStandAlone.js +1 -1
- package/dist/cjs/components/input/types/state.js +1 -1
- package/dist/cjs/components/input/utils/state.js +1 -1
- package/dist/cjs/components/inputBase/inputBase.js +1 -1
- package/dist/cjs/components/inputBase/inputBaseStandAlone.js +1 -1
- package/dist/cjs/components/inputBase/types/state.js +1 -1
- package/dist/cjs/components/inputBase/utils/state.js +1 -1
- package/dist/cjs/components/inputDecoration/inputDecoration.js +1 -1
- package/dist/cjs/components/inputDecoration/inputDecorationStandAlone.js +1 -1
- package/dist/cjs/components/inputDecoration/types/state.js +1 -1
- package/dist/cjs/components/inputDecoration/utils/state.js +1 -1
- package/dist/cjs/components/inputSignature/hook/useDraw.js +1 -1
- package/dist/cjs/components/inputSignature/inputSignatureControlled.js +1 -1
- package/dist/cjs/components/inputSignature/inputSignatureStandAlone.js +1 -1
- package/dist/cjs/components/inputSignature/inputSignatureUncontrolled.js +1 -1
- package/dist/cjs/components/inputSignature/utils/getInputSignatureState.js +1 -1
- package/dist/cjs/components/label/labelStandAlone.js +1 -1
- package/dist/cjs/components/link/helpers/disabled.js +1 -1
- package/dist/cjs/components/link/link.js +1 -1
- package/dist/cjs/components/link/linkAsButton/linkAsButton.js +1 -1
- package/dist/cjs/components/link/linkAsButton/linkAsButtonStandAlone.js +1 -1
- package/dist/cjs/components/link/linkStandAlone.js +1 -1
- package/dist/cjs/components/listOptions/listOptions.js +1 -1
- package/dist/cjs/components/listOptions/listOptionsStandAlone.js +1 -1
- package/dist/cjs/components/listOptions/utils/listOptions.utils.js +1 -1
- package/dist/cjs/components/modal/fragments/modalHeader.js +1 -1
- package/dist/cjs/components/modal/modalControlled.js +1 -1
- package/dist/cjs/components/modal/modalStandAlone.js +1 -1
- package/dist/cjs/components/modal/modalUnControlled.js +1 -1
- package/dist/cjs/components/modal/utils/onlyDesktopSize.js +1 -1
- package/dist/cjs/components/option/components.ts/optionLabelSlice.js +1 -1
- package/dist/cjs/components/option/option.js +1 -1
- package/dist/cjs/components/option/optionStandAlone.js +1 -1
- package/dist/cjs/components/option/utils/option.utils.js +1 -1
- package/dist/cjs/components/pageControl/components/arrowControlStandAlone.js +1 -1
- package/dist/cjs/components/pageControl/components/buttonControlStandAlone.js +1 -1
- package/dist/cjs/components/pageControl/components/controls.js +1 -1
- package/dist/cjs/components/pageControl/helper/controlType.js +1 -1
- package/dist/cjs/components/pageControl/helper/positions.js +1 -1
- package/dist/cjs/components/pageControl/pageControl.js +1 -1
- package/dist/cjs/components/pageControl/pageControlStandAlone.js +1 -1
- package/dist/cjs/components/pagination/fragments/paginationButtonControl.js +1 -1
- package/dist/cjs/components/pagination/helpers/adjustMaxCountersNumber.js +1 -1
- package/dist/cjs/components/pagination/helpers/getMaxCountersNumber.js +1 -1
- package/dist/cjs/components/pagination/pagination.js +1 -1
- package/dist/cjs/components/pagination/paginationStandAlone.js +1 -1
- package/dist/cjs/components/popover/animations/spring.animations.js +7 -0
- package/dist/cjs/components/popover/hooks/positioning/arrowPositionStyles.js +1 -1
- package/dist/cjs/components/popover/hooks/positioning/middlewareUtils.js +1 -1
- package/dist/cjs/components/popover/hooks/positioning/positionCalculation.js +1 -1
- package/dist/cjs/components/popover/hooks/positioning/positionStyles.js +1 -1
- package/dist/cjs/components/popover/hooks/positioning/types.js +1 -1
- package/dist/cjs/components/popover/hooks/usePopoverInteractions.js +1 -1
- package/dist/cjs/components/popover/hooks/usePopoverLifecycle.js +1 -1
- package/dist/cjs/components/popover/hooks/usePopoverPositioning.js +1 -1
- package/dist/cjs/components/popover/index.js +1 -0
- package/dist/cjs/components/popover/popover.js +1 -1
- package/dist/cjs/components/popover/popoverStandAlone.js +1 -1
- package/dist/cjs/components/popover/types/animation.js +1 -1
- package/dist/cjs/components/popover/utils/animation.utils.js +1 -0
- package/dist/cjs/components/popover/utils/placement.utils.js +1 -1
- package/dist/cjs/components/popover/utils/styling.utils.js +1 -1
- package/dist/cjs/components/portal/portal.js +1 -1
- package/dist/cjs/components/progressBar/progressBar.js +1 -1
- package/dist/cjs/components/progressBar/progressBarStandAlone.js +1 -1
- package/dist/cjs/components/radioButton/radioButton.js +1 -1
- package/dist/cjs/components/radioButton/radioButtonStandAlone.js +1 -1
- package/dist/cjs/components/radioButton/utils/aria.utils.js +1 -1
- package/dist/cjs/components/radioButton/utils/state.utils.js +1 -1
- package/dist/cjs/components/select/index.js +4 -0
- package/dist/cjs/components/select/selectControlled.js +1 -0
- package/dist/cjs/components/select/selectStandAlone.js +1 -0
- package/dist/cjs/components/select/selectUncontrolled.js +1 -0
- package/dist/cjs/components/selectorBoxFile/components/selectorBoxFileAnimation.js +1 -1
- package/dist/cjs/components/selectorBoxFile/components/selectorBoxFileContainerBox.js +1 -1
- package/dist/cjs/components/selectorBoxFile/hooks/useBorderAnimation.js +1 -1
- package/dist/cjs/components/selectorBoxFile/selectorBoxFile.js +1 -1
- package/dist/cjs/components/selectorBoxFile/selectorBoxFileStandAlone.js +1 -1
- package/dist/cjs/components/selectorBoxFile/utils/animation/animation.js +1 -1
- package/dist/cjs/components/selectorBoxFile/utils/state/state.js +1 -1
- package/dist/cjs/components/selectorBoxFile/utils/translateValue/translateValue.js +1 -1
- package/dist/cjs/components/skeleton/skeleton2.js +1 -0
- package/dist/cjs/components/skeleton/skeletonStandAlone.js +1 -1
- package/dist/cjs/components/slider/components/sliderButtonStandAlone.js +1 -1
- package/dist/cjs/components/slider/components/sliderHelperTextStandAlone.js +1 -1
- package/dist/cjs/components/slider/components/sliderScaleStandAlone.js +1 -1
- package/dist/cjs/components/slider/components/sliderThumbStandAlone.js +1 -1
- package/dist/cjs/components/slider/slider.js +1 -1
- package/dist/cjs/components/slider/sliderStandAlone.js +1 -1
- package/dist/cjs/components/slider/utils/accessibility.utils.js +1 -1
- package/dist/cjs/components/slider/utils/slider.utils.js +1 -1
- package/dist/cjs/components/slider/utils/state.utils.js +1 -1
- package/dist/cjs/components/slider/utils/ui.utils.js +1 -1
- package/dist/cjs/components/snackbar/hooks/useSnackbarAutoClose.js +1 -1
- package/dist/cjs/components/snackbar/snackbar.js +1 -1
- package/dist/cjs/components/snackbar/snackbarStandAlone.js +1 -1
- package/dist/cjs/components/stepperNumber/helpers/aria.js +1 -1
- package/dist/cjs/components/stepperNumber/helpers/screnReader.js +1 -1
- package/dist/cjs/components/stepperNumber/helpers/stepState.js +1 -1
- package/dist/cjs/components/stepperNumber/index.js +1 -0
- package/dist/cjs/components/stepperNumber/stepperNumber.js +1 -1
- package/dist/cjs/components/stepperNumber/stepperNumberStandAlone.js +1 -1
- package/dist/cjs/components/table/hooks/useTableHasScroll.js +1 -1
- package/dist/cjs/components/table/hooks/useTableShadow.js +1 -1
- package/dist/cjs/components/table/hooks/useTableStickyLeftColumns.js +1 -1
- package/dist/cjs/components/table/hooks/useTableStickyRightColumns.js +1 -1
- package/dist/cjs/components/table/table.js +1 -1
- package/dist/cjs/components/table/tableStandAlone.js +1 -1
- package/dist/cjs/components/tableBody/tableBody.js +1 -1
- package/dist/cjs/components/tableBody/tableBodyStandAlone.js +1 -1
- package/dist/cjs/components/tableCaption/tableCaption.js +1 -1
- package/dist/cjs/components/tableCaption/tableCaptionStandAlone.js +1 -1
- package/dist/cjs/components/tableCell/tableCell.js +1 -1
- package/dist/cjs/components/tableCell/tableCellStandAlone.js +1 -1
- package/dist/cjs/components/tableDivider/tableDivider.js +1 -1
- package/dist/cjs/components/tableDivider/tableDividerStandAlone.js +1 -1
- package/dist/cjs/components/tableFoot/tableFoot.js +1 -1
- package/dist/cjs/components/tableFoot/tableFootStandAlone.js +1 -1
- package/dist/cjs/components/tableHead/tableHead.js +1 -1
- package/dist/cjs/components/tableHead/tableHeadStandAlone.js +1 -1
- package/dist/cjs/components/tableRow/tableRow.js +1 -1
- package/dist/cjs/components/tableRow/tableRowStandAlone.js +1 -1
- package/dist/cjs/components/tabs/hooks/useTabs/useTabs.js +1 -1
- package/dist/cjs/components/tabs/tabsControlled.js +1 -1
- package/dist/cjs/components/tabs/tabsStandAlone.js +1 -1
- package/dist/cjs/components/tabs/tabsUnControlled.js +1 -1
- package/dist/cjs/components/tabs/utils/keyMove/keLeftMove.js +1 -1
- package/dist/cjs/components/tabs/utils/keyMove/keyRightMove.js +1 -1
- package/dist/cjs/components/tag/tag.js +1 -1
- package/dist/cjs/components/tag/tagStandAlone.js +1 -1
- package/dist/cjs/components/text/text2.js +1 -0
- package/dist/cjs/components/text/textStandAlone.js +1 -1
- package/dist/cjs/components/textArea/components/errorStandAlone.js +1 -1
- package/dist/cjs/components/textArea/components/helpMessageStandAlone.js +1 -1
- package/dist/cjs/components/textArea/components/textCount/textCount.js +1 -1
- package/dist/cjs/components/textArea/components/textCount/textCountStandAlone.js +1 -1
- package/dist/cjs/components/textArea/components/titleStandAlone.js +1 -1
- package/dist/cjs/components/textArea/textArea.js +1 -1
- package/dist/cjs/components/textArea/textAreaStandAlone.js +1 -1
- package/dist/cjs/components/textArea/utils/aria.utils.js +1 -1
- package/dist/cjs/components/textArea/utils/state.utils.js +1 -1
- package/dist/cjs/components/toggle/toggleControlled.js +1 -1
- package/dist/cjs/components/toggle/toggleStandAlone.js +1 -1
- package/dist/cjs/components/toggle/toggleUnControlled.js +1 -1
- package/dist/cjs/components/toggle/utils/buildComponentProps.js +1 -1
- package/dist/cjs/components/toggle/utils/thumbTransformCalculations.js +1 -1
- package/dist/cjs/components/tooltip/components/tooltipTrigger.js +1 -1
- package/dist/cjs/components/tooltip/hooks/useTooltip.js +1 -1
- package/dist/cjs/components/tooltip/hooks/useTooltipAsModal.js +1 -1
- package/dist/cjs/components/tooltip/hooks/useTooltipAsModalAriaLabel.js +1 -1
- package/dist/cjs/components/tooltip/positioning/computePosition.js +1 -1
- package/dist/cjs/components/tooltip/tooltipControlled.js +1 -1
- package/dist/cjs/components/tooltip/tooltipStandAlone.js +1 -1
- package/dist/cjs/components/tooltip/tooltipUnControlled.js +1 -1
- package/dist/cjs/components/tooltip/utils/tooltip.utils.js +1 -1
- package/dist/cjs/components/virtualKeyboard/components/digitButton.js +1 -1
- package/dist/cjs/components/virtualKeyboard/virtualKeyboard.js +1 -1
- package/dist/cjs/components/virtualKeyboard/virtualKeyboardStandAlone.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/lib/components/customComponent/customComponent.js +1 -1
- package/dist/cjs/lib/components/elementOrIcon/elementOrIcon.js +1 -1
- package/dist/cjs/lib/components/errorMessage/errorMessage.js +1 -1
- package/dist/cjs/lib/components/errorMessage/errorMessageStandAlone.js +1 -1
- package/dist/cjs/lib/components/itemRove/itemRove.js +1 -1
- package/dist/cjs/lib/components/overlay/overlay.js +1 -1
- package/dist/cjs/lib/components/overlay/overlayStandAlone.js +1 -1
- package/dist/cjs/lib/components/screen-reader-only/screenReaderOnly.js +1 -0
- package/dist/cjs/lib/components/screen-reader-only/screenReaderOnlyStandAlone.js +1 -0
- package/dist/cjs/lib/constants/keyboardKeys/keyboardKeys.js +1 -1
- package/dist/cjs/lib/hooks/useClassName/useClassName.js +1 -1
- package/dist/cjs/lib/hooks/useClickOutside/useClickOutside.js +1 -1
- package/dist/cjs/lib/hooks/useContentVisibility/useContentVisibility.js +1 -1
- package/dist/cjs/lib/hooks/useContentVisibility/utils/contentVisibility.js +1 -0
- package/dist/cjs/lib/hooks/useEscPressed/useEscPressed.js +1 -1
- package/dist/cjs/lib/hooks/useManageState/useManageState.js +1 -1
- package/dist/cjs/lib/hooks/useMediaDevice/useActiveBreakpoints.js +1 -1
- package/dist/cjs/lib/hooks/useMediaDevice/useMediaDevice.js +1 -1
- package/dist/cjs/lib/hooks/useRoveFocus/useRoveFocus.js +1 -1
- package/dist/cjs/lib/hooks/useScrollBlock/useScrollBlock.js +1 -1
- package/dist/cjs/lib/hooks/useScrollBlock/utils/useScrollBlock.utils.js +1 -1
- package/dist/cjs/lib/hooks/useScrollDetection/useScrollDetection.js +1 -0
- package/dist/cjs/lib/hooks/useScrollEffect/useScrollEffect.js +1 -1
- package/dist/cjs/lib/hooks/useScrollEffect/utils/scrollPercentage.js +1 -1
- package/dist/cjs/lib/hooks/useSwipeDown/useSwipeDown.js +1 -1
- package/dist/cjs/lib/hooks/useSwipeDown/utils/convertDurationToNumber.js +1 -1
- package/dist/cjs/lib/hooks/useTrapFocus/useTrapFocus.js +1 -1
- package/dist/cjs/lib/provider/genericComponentsProvider/defaultGenericComponents.js +1 -1
- package/dist/cjs/lib/provider/genericComponentsProvider/genericComponentsProvider.js +1 -1
- package/dist/cjs/lib/provider/stylesProvider/stylesProvider.js +1 -1
- package/dist/cjs/lib/provider/utilsProvider/utilsProvider.js +1 -1
- package/dist/cjs/lib/types/breakpoints/breakpoints.js +1 -1
- package/dist/cjs/lib/types/positions/positions.js +1 -1
- package/dist/cjs/lib/types/sizes/sizes.js +1 -0
- package/dist/cjs/lib/types/states/states.js +1 -1
- package/dist/cjs/lib/utils/classNames/classNames.js +1 -1
- package/dist/cjs/lib/utils/date/constants/common.constant.js +1 -1
- package/dist/cjs/lib/utils/date/constants/format.constant.js +1 -1
- package/dist/cjs/lib/utils/date/constants/parser.constant.js +1 -1
- package/dist/cjs/lib/utils/date/date.js +1 -1
- package/dist/cjs/lib/utils/date/formatDate.js +1 -1
- package/dist/cjs/lib/utils/date/locale.js +1 -1
- package/dist/cjs/lib/utils/date/transformDate.js +1 -1
- package/dist/cjs/lib/utils/date/types/format.types.js +1 -1
- package/dist/cjs/lib/utils/date/validateDate.js +1 -1
- package/dist/cjs/lib/utils/focusHandlers/focusHandlers.js +1 -1
- package/dist/cjs/lib/utils/is/isValidHttpUrl.js +1 -1
- package/dist/cjs/lib/utils/keyboard/keyboard.js +1 -1
- package/dist/cjs/lib/utils/pickCustomAttributes/pickCustomAttributes.js +1 -1
- package/dist/cjs/lib/utils/process/processCommonProp.js +1 -0
- package/dist/cjs/lib/utils/refs/syncRefs.js +1 -0
- package/dist/cjs/lib/utils/scroll/hasScroll.js +1 -1
- package/dist/esm/components/accordion/accordionControlled.js +27 -1
- package/dist/esm/components/accordion/accordionStandAlone.js +43 -4
- package/dist/esm/components/accordion/accordionUnControlled.js +16 -2
- package/dist/esm/components/accordion/hooks/useAccordionContentOverflow.js +24 -1
- package/dist/esm/components/accordion/hooks/useAccordionInertContent.js +8 -1
- package/dist/esm/components/accordion/types/state.js +5 -1
- package/dist/esm/components/alert/alertControlled.js +14 -0
- package/dist/esm/components/alert/alertStandAlone.js +26 -0
- package/dist/esm/components/alert/index.js +1 -0
- package/dist/esm/components/avatar/avatar.js +23 -2
- package/dist/esm/components/avatar/avatarStandAlone.js +51 -1
- package/dist/esm/components/avatar/fragments/drawContent.js +24 -1
- package/dist/esm/components/badge/badge.js +28 -2
- package/dist/esm/components/badge/badgeStandAlone.js +71 -7
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +17 -2
- package/dist/esm/components/breadcrumbs/breadcrumbsStandAlone.js +36 -3
- package/dist/esm/components/breadcrumbs/components/crumbStandAlone/crumbStandAlone.js +49 -3
- package/dist/esm/components/breadcrumbs/hooks/useIsOverflow/useIsOverflow.js +16 -1
- package/dist/esm/components/breadcrumbs/utils/crumbMaxCharName/crumbMaxCharName.js +7 -1
- package/dist/esm/components/button/button.js +35 -1
- package/dist/esm/components/button/buttonStandAlone.js +42 -3
- package/dist/esm/components/calendar/calendar.js +42 -1
- package/dist/esm/components/calendar/calendarStandAlone.js +102 -6
- package/dist/esm/components/calendar/constants/constants.js +2 -1
- package/dist/esm/components/calendar/header/header.js +23 -2
- package/dist/esm/components/calendar/list/list.js +116 -2
- package/dist/esm/components/calendar/selector/monthSelector/monthSelector.js +64 -3
- package/dist/esm/components/calendar/selector/monthSelector/utils/monthSelector.utils.js +3 -1
- package/dist/esm/components/calendar/selector/selector.js +89 -7
- package/dist/esm/components/calendar/selector/yearSelector/utils/yearSelector.utils.js +3 -1
- package/dist/esm/components/calendar/selector/yearSelector/yearSelector.js +61 -3
- package/dist/esm/components/calendar/utils/getAllDaysInMonth.js +2 -1
- package/dist/esm/components/calendar/utils/getFirstDayOfMonth.js +2 -1
- package/dist/esm/components/calendar/utils/getState.js +7 -1
- package/dist/esm/components/calendar/utils/getYearList.js +6 -1
- package/dist/esm/components/calendar/utils/groupDaysByWeeks.js +6 -1
- package/dist/esm/components/calendar/utils/handleKeysmoves.js +10 -1
- package/dist/esm/components/calendar/utils/setMonth.js +2 -1
- package/dist/esm/components/calendar/utils/setYear.js +2 -1
- package/dist/esm/components/card/card.js +17 -0
- package/dist/esm/components/card/cardStandAlone.js +43 -0
- package/dist/esm/components/card/index.js +2 -0
- package/dist/esm/components/carousel/carousel.js +54 -2
- package/dist/esm/components/carousel/carouselStandAlone.js +36 -3
- package/dist/esm/components/carousel/hooks/useCarousel.js +184 -1
- package/dist/esm/components/carousel/hooks/useCarouselKeyNavigation.js +23 -1
- package/dist/esm/components/carousel/hooks/useCarouselSwipe.js +58 -1
- package/dist/esm/components/carousel/hooks/utils/calc.utils.js +73 -1
- package/dist/esm/components/carousel/hooks/utils/constants.js +6 -1
- package/dist/esm/components/carousel/hooks/utils/dom.utils.js +71 -1
- package/dist/esm/components/carousel/types/carousel.js +2 -1
- package/dist/esm/components/carousel/utils/carousel.utils.js +15 -1
- package/dist/esm/components/checkbox/checkboxControlled.js +20 -2
- package/dist/esm/components/checkbox/checkboxStandAlone.js +56 -5
- package/dist/esm/components/checkbox/checkboxUnControlled.js +22 -2
- package/dist/esm/components/checkbox/components/errorMessage.js +17 -2
- package/dist/esm/components/checkbox/components/label.js +12 -1
- package/dist/esm/components/checkbox/types/state.js +9 -1
- package/dist/esm/components/checkbox/utils/aria.utils.js +9 -1
- package/dist/esm/components/checkbox/utils/state.utils.js +3 -1
- package/dist/esm/components/checkboxBase/checkboxBaseControlled.js +22 -2
- package/dist/esm/components/checkboxBase/checkboxBaseStandAlone.js +29 -4
- package/dist/esm/components/checkboxBase/checkboxBaseUncontrolled.js +20 -2
- package/dist/esm/components/checkboxBase/hooks/useCheckbox.js +11 -1
- package/dist/esm/components/chip/chip.js +19 -2
- package/dist/esm/components/chip/chipStandAlone.js +72 -8
- package/dist/esm/components/dataTable/components/dataTableHead.js +67 -4
- package/dist/esm/components/dataTable/components/dataTableRows.js +62 -6
- package/dist/esm/components/dataTable/components/hiddenDataTableHead.js +25 -2
- package/dist/esm/components/dataTable/dataTable.js +30 -1
- package/dist/esm/components/dataTable/dataTableStandAlone.js +123 -10
- package/dist/esm/components/dataTable/hooks/useDataTableHasScroll.js +20 -1
- package/dist/esm/components/dataTable/hooks/useDataTableShadow.js +21 -1
- package/dist/esm/components/dataTable/hooks/useDataTableStickyDividers.js +29 -1
- package/dist/esm/components/dataTable/hooks/useDataTableStickyLeftColumns.js +25 -1
- package/dist/esm/components/dataTable/hooks/useDataTableStickyRightColumns.js +31 -1
- package/dist/esm/components/dataTable/utils/cellConfig.js +2 -1
- package/dist/esm/components/dataTable/utils/hoverable.js +5 -1
- package/dist/esm/components/dataTable/utils/rowConfig.js +2 -1
- package/dist/esm/components/dataTable/utils/tableConfig.js +2 -1
- package/dist/esm/components/dot/dot.js +23 -2
- package/dist/esm/components/dot/dotStandAlone.js +19 -2
- package/dist/esm/components/icon/icon.js +52 -3
- package/dist/esm/components/icon/iconHost.js +32 -1
- package/dist/esm/components/icon/iconStandAlone.js +73 -2
- package/dist/esm/components/image/components/pictureSourceStandAlone.js +14 -2
- package/dist/esm/components/image/image2.js +13 -0
- package/dist/esm/components/image/imageStandAlone.js +40 -8
- package/dist/esm/components/image/utils/getFallbackRatio.js +2 -1
- package/dist/esm/components/input/input.js +35 -2
- package/dist/esm/components/input/inputStandAlone.js +45 -3
- package/dist/esm/components/input/types/state.js +10 -1
- package/dist/esm/components/input/utils/state.js +3 -1
- package/dist/esm/components/inputBase/inputBase.js +28 -2
- package/dist/esm/components/inputBase/inputBaseStandAlone.js +13 -2
- package/dist/esm/components/inputBase/types/state.js +10 -1
- package/dist/esm/components/inputBase/utils/state.js +3 -1
- package/dist/esm/components/inputDecoration/inputDecoration.js +25 -2
- package/dist/esm/components/inputDecoration/inputDecorationStandAlone.js +22 -2
- package/dist/esm/components/inputDecoration/types/state.js +10 -1
- package/dist/esm/components/inputDecoration/utils/state.js +3 -1
- package/dist/esm/components/inputSignature/hook/useDraw.js +50 -1
- package/dist/esm/components/inputSignature/inputSignatureControlled.js +20 -1
- package/dist/esm/components/inputSignature/inputSignatureStandAlone.js +36 -3
- package/dist/esm/components/inputSignature/inputSignatureUncontrolled.js +34 -2
- package/dist/esm/components/inputSignature/utils/getInputSignatureState.js +3 -1
- package/dist/esm/components/label/labelStandAlone.js +28 -2
- package/dist/esm/components/link/helpers/disabled.js +2 -1
- package/dist/esm/components/link/link.js +34 -2
- package/dist/esm/components/link/linkAsButton/linkAsButton.js +32 -2
- package/dist/esm/components/link/linkAsButton/linkAsButtonStandAlone.js +46 -2
- package/dist/esm/components/link/linkStandAlone.js +47 -3
- package/dist/esm/components/listOptions/listOptions.js +17 -2
- package/dist/esm/components/listOptions/listOptionsStandAlone.js +71 -2
- package/dist/esm/components/listOptions/utils/listOptions.utils.js +8 -1
- package/dist/esm/components/modal/fragments/modalHeader.js +56 -3
- package/dist/esm/components/modal/modalControlled.js +46 -1
- package/dist/esm/components/modal/modalStandAlone.js +65 -4
- package/dist/esm/components/modal/modalUnControlled.js +37 -2
- package/dist/esm/components/modal/utils/onlyDesktopSize.js +3 -1
- package/dist/esm/components/option/components.ts/optionLabelSlice.js +15 -2
- package/dist/esm/components/option/option.js +33 -2
- package/dist/esm/components/option/optionStandAlone.js +107 -9
- package/dist/esm/components/option/utils/option.utils.js +14 -1
- package/dist/esm/components/pageControl/components/arrowControlStandAlone.js +12 -2
- package/dist/esm/components/pageControl/components/buttonControlStandAlone.js +13 -2
- package/dist/esm/components/pageControl/components/controls.js +21 -2
- package/dist/esm/components/pageControl/helper/controlType.js +2 -1
- package/dist/esm/components/pageControl/helper/positions.js +8 -1
- package/dist/esm/components/pageControl/pageControl.js +38 -2
- package/dist/esm/components/pageControl/pageControlStandAlone.js +59 -6
- package/dist/esm/components/pagination/fragments/paginationButtonControl.js +19 -2
- package/dist/esm/components/pagination/helpers/adjustMaxCountersNumber.js +6 -1
- package/dist/esm/components/pagination/helpers/getMaxCountersNumber.js +20 -1
- package/dist/esm/components/pagination/pagination.js +26 -2
- package/dist/esm/components/pagination/paginationStandAlone.js +52 -6
- package/dist/esm/components/popover/animations/spring.animations.js +52 -0
- package/dist/esm/components/popover/hooks/positioning/arrowPositionStyles.js +18 -1
- package/dist/esm/components/popover/hooks/positioning/middlewareUtils.js +38 -1
- package/dist/esm/components/popover/hooks/positioning/positionCalculation.js +17 -1
- package/dist/esm/components/popover/hooks/positioning/positionStyles.js +198 -1
- package/dist/esm/components/popover/hooks/positioning/types.js +7 -1
- package/dist/esm/components/popover/hooks/usePopoverInteractions.js +31 -1
- package/dist/esm/components/popover/hooks/usePopoverLifecycle.js +61 -1
- package/dist/esm/components/popover/hooks/usePopoverPositioning.js +126 -1
- package/dist/esm/components/popover/index.js +1 -0
- package/dist/esm/components/popover/popover.js +61 -1
- package/dist/esm/components/popover/popoverStandAlone.js +40 -3
- package/dist/esm/components/popover/positioning/middlewares.js +2 -0
- package/dist/esm/components/popover/types/animation.js +2 -1
- package/dist/esm/components/popover/utils/animation.utils.js +16 -0
- package/dist/esm/components/popover/utils/placement.utils.js +3 -1
- package/dist/esm/components/popover/utils/styling.utils.js +34 -1
- package/dist/esm/components/portal/portal.js +10 -1
- package/dist/esm/components/progressBar/progressBar.js +23 -2
- package/dist/esm/components/progressBar/progressBarStandAlone.js +32 -4
- package/dist/esm/components/radioButton/radioButton.js +20 -2
- package/dist/esm/components/radioButton/radioButtonStandAlone.js +95 -4
- package/dist/esm/components/radioButton/utils/aria.utils.js +7 -1
- package/dist/esm/components/radioButton/utils/state.utils.js +6 -1
- package/dist/esm/components/select/index.js +2 -0
- package/dist/esm/components/select/selectControlled.js +33 -0
- package/dist/esm/components/select/selectStandAlone.js +95 -0
- package/dist/esm/components/select/selectUncontrolled.js +40 -0
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileAnimation.js +47 -3
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileContainerBox.js +77 -9
- package/dist/esm/components/selectorBoxFile/hooks/useBorderAnimation.js +45 -1
- package/dist/esm/components/selectorBoxFile/selectorBoxFile.js +40 -2
- package/dist/esm/components/selectorBoxFile/selectorBoxFileStandAlone.js +47 -7
- package/dist/esm/components/selectorBoxFile/utils/animation/animation.js +10 -1
- package/dist/esm/components/selectorBoxFile/utils/state/state.js +3 -1
- package/dist/esm/components/selectorBoxFile/utils/translateValue/translateValue.js +6 -1
- package/dist/esm/components/skeleton/skeleton2.js +21 -0
- package/dist/esm/components/skeleton/skeletonStandAlone.js +20 -2
- package/dist/esm/components/slider/components/sliderButtonStandAlone.js +12 -1
- package/dist/esm/components/slider/components/sliderHelperTextStandAlone.js +25 -1
- package/dist/esm/components/slider/components/sliderScaleStandAlone.js +21 -2
- package/dist/esm/components/slider/components/sliderThumbStandAlone.js +82 -1
- package/dist/esm/components/slider/slider.js +182 -2
- package/dist/esm/components/slider/sliderStandAlone.js +253 -17
- package/dist/esm/components/slider/utils/accessibility.utils.js +68 -1
- package/dist/esm/components/slider/utils/slider.utils.js +155 -1
- package/dist/esm/components/slider/utils/state.utils.js +3 -1
- package/dist/esm/components/slider/utils/ui.utils.js +3 -1
- package/dist/esm/components/snackbar/hooks/useSnackbarAutoClose.js +30 -1
- package/dist/esm/components/snackbar/snackbar.js +28 -2
- package/dist/esm/components/snackbar/snackbarStandAlone.js +20 -1
- package/dist/esm/components/stepperNumber/helpers/aria.js +2 -1
- package/dist/esm/components/stepperNumber/helpers/screnReader.js +8 -1
- package/dist/esm/components/stepperNumber/helpers/stepState.js +14 -1
- package/dist/esm/components/stepperNumber/index.js +1 -0
- package/dist/esm/components/stepperNumber/stepperNumber.js +24 -2
- package/dist/esm/components/stepperNumber/stepperNumberStandAlone.js +86 -10
- package/dist/esm/components/table/hooks/useTableHasScroll.js +20 -1
- package/dist/esm/components/table/hooks/useTableShadow.js +21 -1
- package/dist/esm/components/table/hooks/useTableStickyLeftColumns.js +23 -1
- package/dist/esm/components/table/hooks/useTableStickyRightColumns.js +29 -1
- package/dist/esm/components/table/table.js +39 -1
- package/dist/esm/components/table/tableStandAlone.js +42 -5
- package/dist/esm/components/tableBody/tableBody.js +14 -2
- package/dist/esm/components/tableBody/tableBodyStandAlone.js +17 -2
- package/dist/esm/components/tableCaption/tableCaption.js +14 -2
- package/dist/esm/components/tableCaption/tableCaptionStandAlone.js +17 -2
- package/dist/esm/components/tableCell/tableCell.js +14 -2
- package/dist/esm/components/tableCell/tableCellStandAlone.js +42 -2
- package/dist/esm/components/tableDivider/tableDivider.js +14 -2
- package/dist/esm/components/tableDivider/tableDividerStandAlone.js +18 -2
- package/dist/esm/components/tableFoot/tableFoot.js +14 -2
- package/dist/esm/components/tableFoot/tableFootStandAlone.js +17 -2
- package/dist/esm/components/tableHead/tableHead.js +14 -2
- package/dist/esm/components/tableHead/tableHeadStandAlone.js +20 -2
- package/dist/esm/components/tableRow/tableRow.js +14 -2
- package/dist/esm/components/tableRow/tableRowStandAlone.js +24 -2
- package/dist/esm/components/tabs/hooks/useTabs/useTabs.js +44 -1
- package/dist/esm/components/tabs/tabsControlled.js +20 -2
- package/dist/esm/components/tabs/tabsStandAlone.js +127 -5
- package/dist/esm/components/tabs/tabsUnControlled.js +15 -2
- package/dist/esm/components/tabs/utils/keyMove/keLeftMove.js +2 -1
- package/dist/esm/components/tabs/utils/keyMove/keyRightMove.js +2 -1
- package/dist/esm/components/tag/tag.js +17 -2
- package/dist/esm/components/tag/tagStandAlone.js +26 -4
- package/dist/esm/components/text/text2.js +18 -0
- package/dist/esm/components/text/textStandAlone.js +41 -2
- package/dist/esm/components/textArea/components/errorStandAlone.js +23 -3
- package/dist/esm/components/textArea/components/helpMessageStandAlone.js +11 -1
- package/dist/esm/components/textArea/components/textCount/textCount.js +18 -2
- package/dist/esm/components/textArea/components/textCount/textCountStandAlone.js +40 -5
- package/dist/esm/components/textArea/components/titleStandAlone.js +15 -1
- package/dist/esm/components/textArea/textArea.js +38 -2
- package/dist/esm/components/textArea/textAreaStandAlone.js +106 -11
- package/dist/esm/components/textArea/utils/aria.utils.js +6 -1
- package/dist/esm/components/textArea/utils/state.utils.js +6 -1
- package/dist/esm/components/toggle/toggleControlled.js +22 -2
- package/dist/esm/components/toggle/toggleStandAlone.js +73 -4
- package/dist/esm/components/toggle/toggleUnControlled.js +17 -2
- package/dist/esm/components/toggle/utils/buildComponentProps.js +28 -1
- package/dist/esm/components/toggle/utils/thumbTransformCalculations.js +29 -1
- package/dist/esm/components/tooltip/components/tooltipTrigger.js +32 -1
- package/dist/esm/components/tooltip/hooks/useTooltip.js +95 -1
- package/dist/esm/components/tooltip/hooks/useTooltipAsModal.js +3 -1
- package/dist/esm/components/tooltip/hooks/useTooltipAsModalAriaLabel.js +8 -1
- package/dist/esm/components/tooltip/positioning/computePosition.js +21 -1
- package/dist/esm/components/tooltip/tooltipControlled.js +32 -1
- package/dist/esm/components/tooltip/tooltipStandAlone.js +103 -8
- package/dist/esm/components/tooltip/tooltipUnControlled.js +96 -1
- package/dist/esm/components/tooltip/utils/tooltip.utils.js +5 -1
- package/dist/esm/components/virtualKeyboard/components/digitButton.js +21 -2
- package/dist/esm/components/virtualKeyboard/virtualKeyboard.js +25 -2
- package/dist/esm/components/virtualKeyboard/virtualKeyboardStandAlone.js +43 -4
- package/dist/esm/index.js +81 -1
- package/dist/esm/lib/components/customComponent/customComponent.js +19 -2
- package/dist/esm/lib/components/elementOrIcon/elementOrIcon.js +10 -1
- package/dist/esm/lib/components/errorMessage/errorMessage.js +15 -2
- package/dist/esm/lib/components/errorMessage/errorMessageStandAlone.js +21 -4
- package/dist/esm/lib/components/itemRove/itemRove.js +42 -2
- package/dist/esm/lib/components/overlay/overlay.js +17 -2
- package/dist/esm/lib/components/overlay/overlayStandAlone.js +15 -2
- package/dist/esm/lib/components/screen-reader-only/screenReaderOnly.js +9 -0
- package/dist/esm/lib/components/screen-reader-only/screenReaderOnlyStandAlone.js +17 -0
- package/dist/esm/lib/constants/keyboardKeys/keyboardKeys.js +52 -1
- package/dist/esm/lib/hooks/useClassName/useClassName.js +10 -1
- package/dist/esm/lib/hooks/useClickOutside/useClickOutside.js +16 -1
- package/dist/esm/lib/hooks/useContentVisibility/useContentVisibility.js +33 -1
- package/dist/esm/lib/hooks/useContentVisibility/utils/contentVisibility.js +3 -0
- package/dist/esm/lib/hooks/useEscPressed/useEscPressed.js +13 -1
- package/dist/esm/lib/hooks/useManageState/useManageState.js +37 -1
- package/dist/esm/lib/hooks/useMediaDevice/useActiveBreakpoints.js +15 -1
- package/dist/esm/lib/hooks/useMediaDevice/useMediaDevice.js +20 -1
- package/dist/esm/lib/hooks/useRoveFocus/useRoveFocus.js +65 -1
- package/dist/esm/lib/hooks/useScrollBlock/useScrollBlock.js +59 -1
- package/dist/esm/lib/hooks/useScrollBlock/utils/useScrollBlock.utils.js +5 -1
- package/dist/esm/lib/hooks/useScrollDetection/useScrollDetection.js +20 -0
- package/dist/esm/lib/hooks/useScrollEffect/useScrollEffect.js +65 -1
- package/dist/esm/lib/hooks/useScrollEffect/utils/scrollPercentage.js +9 -1
- package/dist/esm/lib/hooks/useSwipeDown/useSwipeDown.js +28 -1
- package/dist/esm/lib/hooks/useSwipeDown/utils/convertDurationToNumber.js +7 -1
- package/dist/esm/lib/hooks/useTrapFocus/useTrapFocus.js +34 -1
- package/dist/esm/lib/provider/genericComponentsProvider/defaultGenericComponents.js +39 -3
- package/dist/esm/lib/provider/genericComponentsProvider/genericComponentsProvider.js +11 -1
- package/dist/esm/lib/provider/stylesProvider/stylesProvider.js +88 -2
- package/dist/esm/lib/provider/utilsProvider/utilsProvider.js +19 -2
- package/dist/esm/lib/types/breakpoints/breakpoints.js +14 -1
- package/dist/esm/lib/types/positions/positions.js +31 -1
- package/dist/esm/lib/types/sizes/sizes.js +8 -0
- package/dist/esm/lib/types/states/states.js +47 -1
- package/dist/esm/lib/utils/classNames/classNames.js +2 -1
- package/dist/esm/lib/utils/date/constants/common.constant.js +2 -1
- package/dist/esm/lib/utils/date/constants/format.constant.js +139 -1
- package/dist/esm/lib/utils/date/constants/parser.constant.js +26 -1
- package/dist/esm/lib/utils/date/date.js +41 -1
- package/dist/esm/lib/utils/date/formatDate.js +39 -1
- package/dist/esm/lib/utils/date/locale.js +10 -1
- package/dist/esm/lib/utils/date/transformDate.js +26 -1
- package/dist/esm/lib/utils/date/types/format.types.js +23 -1
- package/dist/esm/lib/utils/date/validateDate.js +2 -1
- package/dist/esm/lib/utils/focusHandlers/focusHandlers.js +22 -1
- package/dist/esm/lib/utils/is/isValidHttpUrl.js +11 -1
- package/dist/esm/lib/utils/keyboard/keyboard.js +2 -1
- package/dist/esm/lib/utils/pickCustomAttributes/pickCustomAttributes.js +2 -1
- package/dist/esm/lib/utils/process/processCommonProp.js +31 -0
- package/dist/esm/lib/utils/refs/syncRefs.js +4 -0
- package/dist/esm/lib/utils/scroll/hasScroll.js +2 -1
- package/dist/types/index.d.ts +1989 -1069
- package/package.json +99 -67
- package/dist/cjs/_virtual/jsx-runtime.js +0 -1
- package/dist/cjs/_virtual/jsx-runtime2.js +0 -1
- package/dist/cjs/_virtual/react-jsx-runtime.production.min.js +0 -1
- package/dist/cjs/components/cardImage/cardImage.js +0 -1
- package/dist/cjs/components/cardImage/cardImageStandAlone.js +0 -1
- package/dist/cjs/components/container/container.js +0 -1
- package/dist/cjs/components/container/containerStandAlone.js +0 -1
- package/dist/cjs/components/container/index.js +0 -2
- package/dist/cjs/components/dropdownSelected/dropdownSelectedControlled.js +0 -1
- package/dist/cjs/components/dropdownSelected/dropdownSelectedStandAlone.js +0 -1
- package/dist/cjs/components/dropdownSelected/dropdownSelectedUncontrolled.js +0 -1
- package/dist/cjs/components/dropdownSelected/index.js +0 -4
- package/dist/cjs/components/image/image.css +0 -38
- package/dist/cjs/components/image/image.js +0 -1
- package/dist/cjs/components/message/index.js +0 -4
- package/dist/cjs/components/message/messageControlled.js +0 -1
- package/dist/cjs/components/message/messageStandAlone.js +0 -1
- package/dist/cjs/components/message/messageUnControlled.js +0 -1
- package/dist/cjs/components/navBar/index.js +0 -2
- package/dist/cjs/components/navBar/navBar.js +0 -1
- package/dist/cjs/components/navBar/navBarStandAlone.js +0 -1
- package/dist/cjs/components/popover/styles/index.css +0 -10
- package/dist/cjs/components/popover/styles/keyframes.css +0 -421
- package/dist/cjs/components/popover/styles/popover-arrow.css +0 -42
- package/dist/cjs/components/popover/styles/popover.css +0 -189
- package/dist/cjs/components/selectorBoxFile/components/selectorBoxFileErrorMessage.js +0 -1
- package/dist/cjs/components/selectorBoxFile/components/selectorBoxFileHeader.js +0 -1
- package/dist/cjs/components/selectorBoxFile/components/selectorBoxFileTooltip.js +0 -1
- package/dist/cjs/components/skeleton/skeleton.css +0 -20
- package/dist/cjs/components/skeleton/skeleton.js +0 -1
- package/dist/cjs/components/table/__stories__/css/table.css +0 -7
- package/dist/cjs/components/text/text.css +0 -14
- package/dist/cjs/components/text/text.js +0 -1
- package/dist/cjs/components/tooltip/tooltip.css +0 -69
- package/dist/cjs/lib/hooks/syncRefs/syncRefs.js +0 -1
- package/dist/cjs/lib/hooks/useContentVisibilityDetection/useContentVisibilityDetection.js +0 -1
- package/dist/cjs/lib/hooks/useContentVisibilityDetection/utils/contentVisibility.js +0 -1
- package/dist/cjs/lib/hooks/useId/useId.js +0 -1
- package/dist/cjs/lib/hooks/useInputFocus/useInputFocus.js +0 -1
- package/dist/cjs/lib/hooks/useScrollDetectionWithAutoFocus/useScrollDetectionWithAutoFocus.js +0 -1
- package/dist/cjs/lib/provider/cssProvider/provider.js +0 -1
- package/dist/cjs/lib/provider/cssProvider/stats/stats.js +0 -1641
- package/dist/cjs/lib/provider/kubitProvider/kubitProvider.js +0 -1
- package/dist/cjs/lib/utils/changeCssProperty/changeCssProperty.js +0 -1
- package/dist/cjs/lib/utils/is/isReactNode.js +0 -1
- package/dist/cjs/lib/utils/is/isString.js +0 -1
- package/dist/cjs/lib/utils/process/processIcon/processIcon.js +0 -1
- package/dist/cjs/lib/utils/process/processText/processText.js +0 -1
- package/dist/cjs/lib/utils/resizeObserver/resizeObserver.js +0 -1
- package/dist/cjs/react-components.css +0 -1
- package/dist/esm/_virtual/jsx-runtime.js +0 -1
- package/dist/esm/_virtual/jsx-runtime2.js +0 -1
- package/dist/esm/_virtual/react-jsx-runtime.production.min.js +0 -1
- package/dist/esm/components/cardImage/cardImage.js +0 -2
- package/dist/esm/components/cardImage/cardImageStandAlone.js +0 -7
- package/dist/esm/components/container/container.js +0 -2
- package/dist/esm/components/container/containerStandAlone.js +0 -4
- package/dist/esm/components/container/index.js +0 -1
- package/dist/esm/components/dropdownSelected/dropdownSelectedControlled.js +0 -1
- package/dist/esm/components/dropdownSelected/dropdownSelectedStandAlone.js +0 -5
- package/dist/esm/components/dropdownSelected/dropdownSelectedUncontrolled.js +0 -2
- package/dist/esm/components/dropdownSelected/index.js +0 -2
- package/dist/esm/components/image/image.css +0 -38
- package/dist/esm/components/image/image.js +0 -2
- package/dist/esm/components/message/index.js +0 -2
- package/dist/esm/components/message/messageControlled.js +0 -2
- package/dist/esm/components/message/messageStandAlone.js +0 -5
- package/dist/esm/components/message/messageUnControlled.js +0 -2
- package/dist/esm/components/navBar/index.js +0 -1
- package/dist/esm/components/navBar/navBar.js +0 -2
- package/dist/esm/components/navBar/navBarStandAlone.js +0 -2
- package/dist/esm/components/popover/styles/index.css +0 -10
- package/dist/esm/components/popover/styles/keyframes.css +0 -421
- package/dist/esm/components/popover/styles/popover-arrow.css +0 -42
- package/dist/esm/components/popover/styles/popover.css +0 -189
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileErrorMessage.js +0 -3
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileHeader.js +0 -5
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileTooltip.js +0 -1
- package/dist/esm/components/skeleton/skeleton.css +0 -20
- package/dist/esm/components/skeleton/skeleton.js +0 -2
- package/dist/esm/components/table/__stories__/css/table.css +0 -7
- package/dist/esm/components/text/text.css +0 -14
- package/dist/esm/components/text/text.js +0 -1
- package/dist/esm/components/tooltip/tooltip.css +0 -69
- package/dist/esm/lib/hooks/syncRefs/syncRefs.js +0 -1
- package/dist/esm/lib/hooks/useContentVisibilityDetection/useContentVisibilityDetection.js +0 -1
- package/dist/esm/lib/hooks/useContentVisibilityDetection/utils/contentVisibility.js +0 -1
- package/dist/esm/lib/hooks/useId/useId.js +0 -1
- package/dist/esm/lib/hooks/useInputFocus/useInputFocus.js +0 -1
- package/dist/esm/lib/hooks/useScrollDetectionWithAutoFocus/useScrollDetectionWithAutoFocus.js +0 -1
- package/dist/esm/lib/provider/cssProvider/provider.js +0 -1
- package/dist/esm/lib/provider/cssProvider/stats/stats.js +0 -1641
- package/dist/esm/lib/provider/kubitProvider/kubitProvider.js +0 -1
- package/dist/esm/lib/utils/changeCssProperty/changeCssProperty.js +0 -1
- package/dist/esm/lib/utils/is/isReactNode.js +0 -1
- package/dist/esm/lib/utils/is/isString.js +0 -1
- package/dist/esm/lib/utils/process/processIcon/processIcon.js +0 -1
- package/dist/esm/lib/utils/process/processText/processText.js +0 -1
- package/dist/esm/lib/utils/resizeObserver/resizeObserver.js +0 -1
- package/dist/esm/react-components.css +0 -1
- package/dist/styles/kubit/css/kubit.css +0 -1683
- package/dist/styles/kubit/css/kubit.min.css +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -25,7 +25,6 @@ import { offset as popoverMWOffset } from '@floating-ui/dom';
|
|
|
25
25
|
import { shift as popoverMWShift } from '@floating-ui/dom';
|
|
26
26
|
import { size as popoverMWSize } from '@floating-ui/dom';
|
|
27
27
|
import { PropsWithChildren } from 'react';
|
|
28
|
-
import { Provider } from '../../cssProvider/provider';
|
|
29
28
|
import { ReactElement } from 'react';
|
|
30
29
|
import { ReactNode } from 'react';
|
|
31
30
|
import { Ref } from 'react';
|
|
@@ -121,6 +120,58 @@ export declare type AccordionVariantStyles<Variant extends string> = AccordionSt
|
|
|
121
120
|
[key in Variant]: AccordionStyleProps;
|
|
122
121
|
};
|
|
123
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Alert component for displaying notification messages.
|
|
125
|
+
*
|
|
126
|
+
* This component renders styled alerts.
|
|
127
|
+
* Useful for notifications, success/error messages, and informational banners.
|
|
128
|
+
* Always visible - no open/close functionality.
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```tsx
|
|
132
|
+
* <Alert
|
|
133
|
+
* variant="success"
|
|
134
|
+
* content={{ content: "Your changes have been saved." }}
|
|
135
|
+
* />
|
|
136
|
+
* ```
|
|
137
|
+
*/
|
|
138
|
+
export declare const Alert: ForwardRefExoticComponent<AlertProps<string> & RefAttributes<HTMLDivElement>>;
|
|
139
|
+
|
|
140
|
+
declare type AlertCssClasses = ComponentSelected<ComponentsTypesComponents['ALERT']>;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Interface for the Alert component.
|
|
144
|
+
* Extends the AlertStandAloneProps interface and adds a variant and additional CSS classes.
|
|
145
|
+
*
|
|
146
|
+
* @template Variant - The type of the variant for the Alert.
|
|
147
|
+
*/
|
|
148
|
+
export declare interface AlertProps<Variant = undefined extends string ? unknown : string> extends AlertStandAloneProps {
|
|
149
|
+
variant?: Variant;
|
|
150
|
+
additionalClasses?: Partial<AlertCssClasses>;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Interface for the standalone Alert component.
|
|
155
|
+
* A simplified component that displays alert messages. Always visible.
|
|
156
|
+
*/
|
|
157
|
+
export declare interface AlertStandAloneProps extends DataAttributes {
|
|
158
|
+
content: CommonTextProps;
|
|
159
|
+
role?: React.AriaRole;
|
|
160
|
+
id?: string;
|
|
161
|
+
ariaLive?: AriaAttributes['aria-live'];
|
|
162
|
+
cssClasses?: AlertCssClasses;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export declare interface AlertStyleProps extends CssLibPropsType {
|
|
166
|
+
_container?: CssLibPropsType;
|
|
167
|
+
_contentContainer?: CssLibPropsType;
|
|
168
|
+
_description?: CssLibPropsType;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export declare type AlertVariantStyles<Variant extends string> = AlertStyleProps & {
|
|
172
|
+
[key in Variant]: AlertStyleProps;
|
|
173
|
+
};
|
|
174
|
+
|
|
124
175
|
export declare interface ArrowsControlStyleProps extends CssLibPropsType {
|
|
125
176
|
_leftArrowControlContainer?: CssLibPropsType;
|
|
126
177
|
_rightArrowControlContainer?: CssLibPropsType;
|
|
@@ -402,7 +453,7 @@ export declare interface BreadcrumbsStandAloneProps extends BreadcrumbAriaAttrib
|
|
|
402
453
|
id?: string;
|
|
403
454
|
crumbs: BreadcrumbProps[];
|
|
404
455
|
minCharLimit?: number;
|
|
405
|
-
dividerIcon?:
|
|
456
|
+
dividerIcon?: CommonIconProps;
|
|
406
457
|
lastOneCrumbComponent?: TextComponentType;
|
|
407
458
|
cssClasses?: BreadcrumbsCssClasses;
|
|
408
459
|
}
|
|
@@ -426,20 +477,36 @@ export declare interface BreadcrumbStandAloneProps extends DataAttributes {
|
|
|
426
477
|
crumb: BreadcrumbProps;
|
|
427
478
|
lastCrumb?: boolean;
|
|
428
479
|
lastOneCrumbComponent?: TextComponentType;
|
|
429
|
-
dividerIcon?:
|
|
480
|
+
dividerIcon?: CommonIconProps;
|
|
430
481
|
}
|
|
431
482
|
|
|
432
483
|
export declare type BreadcrumbsVariantStyles<Variant extends string> = BreadcrumbsStyleProps & {
|
|
433
484
|
[key in Variant]: BreadcrumbsStyleProps;
|
|
434
485
|
};
|
|
435
486
|
|
|
487
|
+
/**
|
|
488
|
+
* Defines responsive breakpoints in pixels for different screen sizes.
|
|
489
|
+
* Used for creating media queries and responsive layouts.
|
|
490
|
+
*/
|
|
436
491
|
declare interface Breakpoints {
|
|
492
|
+
/** Small screen breakpoint (typically mobile landscape) - default: 576px */
|
|
437
493
|
sm: number;
|
|
494
|
+
/** Medium screen breakpoint (typically tablets) - default: 768px */
|
|
438
495
|
md: number;
|
|
496
|
+
/** Large screen breakpoint (typically desktops) - default: 992px */
|
|
439
497
|
lg: number;
|
|
498
|
+
/** Extra large screen breakpoint (typically large desktops) - default: 1200px */
|
|
440
499
|
xl: number;
|
|
441
500
|
}
|
|
442
501
|
|
|
502
|
+
export declare interface BreakpointsType {
|
|
503
|
+
ZERO: number;
|
|
504
|
+
S: number;
|
|
505
|
+
M: number;
|
|
506
|
+
L: number;
|
|
507
|
+
XL?: number;
|
|
508
|
+
}
|
|
509
|
+
|
|
443
510
|
/**
|
|
444
511
|
* Generic button component for triggering actions or submitting forms.
|
|
445
512
|
*
|
|
@@ -496,7 +563,7 @@ export declare interface ButtonProps<Variant = undefined extends string | unknow
|
|
|
496
563
|
export declare interface ButtonStandAloneProps extends PropsWithChildren<ButtonStylesProps>, ButtonAriaProps, DataAttributes {
|
|
497
564
|
type?: HTMLButtonElement['type'];
|
|
498
565
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
499
|
-
icon?:
|
|
566
|
+
icon?: CommonIconProps;
|
|
500
567
|
form?: string;
|
|
501
568
|
role?: AriaRole;
|
|
502
569
|
title?: string;
|
|
@@ -534,6 +601,28 @@ export declare type ButtonVariantStyles<Variant extends string> = ButtonStylePro
|
|
|
534
601
|
[key in Variant]?: Partial<ButtonStyleProps>;
|
|
535
602
|
};
|
|
536
603
|
|
|
604
|
+
/**
|
|
605
|
+
* Calendar component for date selection.
|
|
606
|
+
*
|
|
607
|
+
* This component provides an interactive calendar interface for selecting single dates
|
|
608
|
+
* or date ranges. It supports month/year navigation, date restrictions, and customizable variants.
|
|
609
|
+
*
|
|
610
|
+
* @example
|
|
611
|
+
* ```tsx
|
|
612
|
+
* <Calendar
|
|
613
|
+
* selectedDate={new Date()}
|
|
614
|
+
* onSelectedDateChange={(date) => console.log(date)}
|
|
615
|
+
* />
|
|
616
|
+
*
|
|
617
|
+
* // Date range selection:
|
|
618
|
+
* <Calendar
|
|
619
|
+
* hasRange
|
|
620
|
+
* selectedDate={startDate}
|
|
621
|
+
* secondSelectedDate={endDate}
|
|
622
|
+
* onSelectedDateChange={(dates) => console.log(dates)}
|
|
623
|
+
* />
|
|
624
|
+
* ```
|
|
625
|
+
*/
|
|
537
626
|
export declare const Calendar: ForwardRefExoticComponent<CalendarProps<string> & RefAttributes<HTMLDivElement>>;
|
|
538
627
|
|
|
539
628
|
/**
|
|
@@ -554,8 +643,8 @@ export declare interface CalendarAccessibilityProps {
|
|
|
554
643
|
* Includes properties for navigation icons and button styles.
|
|
555
644
|
*/
|
|
556
645
|
export declare interface CalendarConfigProps {
|
|
557
|
-
leftArrowIcon:
|
|
558
|
-
rightArrowIcon:
|
|
646
|
+
leftArrowIcon: CommonIconProps;
|
|
647
|
+
rightArrowIcon: CommonIconProps;
|
|
559
648
|
variantSelectorButton?: string;
|
|
560
649
|
sizeSelectorButton?: string;
|
|
561
650
|
}
|
|
@@ -647,87 +736,121 @@ export declare type CalendarVariantStyles<Variant extends string> = CalendarStyl
|
|
|
647
736
|
};
|
|
648
737
|
|
|
649
738
|
/**
|
|
650
|
-
*
|
|
739
|
+
* Card component for displaying content in a structured container.
|
|
740
|
+
*
|
|
741
|
+
* This component wraps content in a styled card with optional header, content, and footer sections.
|
|
742
|
+
* It is useful for organizing information, displaying items in a list, or creating selectable cards.
|
|
743
|
+
* Supports interactive states (hover, selected) and custom theming via variants.
|
|
651
744
|
*
|
|
652
|
-
*
|
|
653
|
-
*
|
|
654
|
-
* types, enabling flexible theming and styling.
|
|
745
|
+
* All sections (header, content, footer) are optional and can accept either text or any React node.
|
|
746
|
+
* The card can respond to user interaction through onClick, onMouseEnter, and onMouseLeave handlers.
|
|
655
747
|
*
|
|
656
|
-
* Internally, it
|
|
748
|
+
* Internally, it computes CSS classes using a custom hook and delegates rendering to {@link CardStandAlone}.
|
|
657
749
|
*
|
|
658
|
-
*
|
|
659
|
-
*
|
|
750
|
+
* This component accepts a generic type parameter `<Variant extends string>` to allow for custom variant values,
|
|
751
|
+
* enabling flexible theming and styling.
|
|
660
752
|
*
|
|
661
753
|
* @example
|
|
662
754
|
* ```tsx
|
|
663
|
-
* <
|
|
755
|
+
* <Card
|
|
756
|
+
* header={{ content: "Card Title" }}
|
|
757
|
+
* content="This is the card content"
|
|
758
|
+
* footer={{ content: "Footer information" }}
|
|
759
|
+
* />
|
|
664
760
|
*
|
|
665
761
|
* // With a custom variant type:
|
|
666
|
-
* type MyVariant = "
|
|
667
|
-
* <
|
|
762
|
+
* type MyVariant = "primary" | "secondary";
|
|
763
|
+
* <Card<MyVariant>
|
|
764
|
+
* header="Primary Card"
|
|
765
|
+
* content={<div>Custom content</div>}
|
|
766
|
+
* variant="primary"
|
|
767
|
+
* state="selected"
|
|
768
|
+
* />
|
|
668
769
|
* ```
|
|
669
770
|
*/
|
|
670
|
-
export declare const
|
|
771
|
+
export declare const Card: ForwardRefExoticComponent<CardProps<string> & RefAttributes<HTMLDivElement>>;
|
|
671
772
|
|
|
672
|
-
declare type
|
|
673
|
-
|
|
674
|
-
/**
|
|
675
|
-
* Represents the type for a link within the CardImage component.
|
|
676
|
-
* Extends the LinkProps interface and includes content.
|
|
677
|
-
*/
|
|
678
|
-
export declare type CardImageLinkProps = Omit<LinkProps, 'children'> & {
|
|
679
|
-
content: string;
|
|
680
|
-
};
|
|
773
|
+
declare type CardCssClasses = ComponentSelected<ComponentsTypesComponents['CARD']>;
|
|
681
774
|
|
|
682
775
|
/**
|
|
683
|
-
* Interface for the
|
|
684
|
-
* Extends the
|
|
776
|
+
* Interface for the card component with a variant.
|
|
777
|
+
* Extends the ICardStandAlone interface and adds a variant and additional CSS classes.
|
|
685
778
|
*
|
|
686
|
-
* @template Variant - The type of the variant for the
|
|
779
|
+
* @template Variant - The type of the variant for the card.
|
|
687
780
|
*/
|
|
688
|
-
export declare interface
|
|
781
|
+
export declare interface CardProps<Variant extends string | unknown> extends Omit<CardStandAloneProps, 'cssClasses'> {
|
|
689
782
|
variant?: Variant;
|
|
690
|
-
additionalClasses?:
|
|
783
|
+
additionalClasses?: Partial<CardCssClasses>;
|
|
691
784
|
}
|
|
692
785
|
|
|
693
786
|
/**
|
|
694
|
-
*
|
|
787
|
+
* Standalone card component for rendering a section with optional header, content and footer areas.
|
|
788
|
+
*
|
|
789
|
+
* This component displays a styled card container with three optional sections:
|
|
790
|
+
* - header: Can be text or any React node
|
|
791
|
+
* - content: Can be text or any React node
|
|
792
|
+
* - footer: Can be text or any React node
|
|
793
|
+
*
|
|
794
|
+
* Supports interactive states like hover and selected, making it useful for
|
|
795
|
+
* selectable cards, clickable items, or informational panels.
|
|
796
|
+
*
|
|
797
|
+
* This component accepts a generic type parameter `<Variant extends string>` to allow for custom variant values,
|
|
798
|
+
* enabling flexible theming and styling of the card.
|
|
799
|
+
*
|
|
800
|
+
* @example
|
|
801
|
+
* ```tsx
|
|
802
|
+
* <CardStandAlone
|
|
803
|
+
* header={{ content: "Card Title" }}
|
|
804
|
+
* content="Card content goes here"
|
|
805
|
+
* footer={{ content: "Footer text" }}
|
|
806
|
+
* />
|
|
807
|
+
*
|
|
808
|
+
* // With a custom variant type:
|
|
809
|
+
* type MyVariant = "primary" | "secondary";
|
|
810
|
+
* <CardStandAlone<MyVariant>
|
|
811
|
+
* header="Primary Card"
|
|
812
|
+
* content={<div>Custom content</div>}
|
|
813
|
+
* variant="primary"
|
|
814
|
+
* state="selected"
|
|
815
|
+
* />
|
|
816
|
+
* ```
|
|
695
817
|
*/
|
|
696
|
-
declare
|
|
697
|
-
[DEVICE_BREAKPOINTS.DESKTOP]: string;
|
|
698
|
-
[DEVICE_BREAKPOINTS.MOBILE]: string;
|
|
699
|
-
[DEVICE_BREAKPOINTS.TABLET]: string;
|
|
700
|
-
}
|
|
818
|
+
export declare const CardStandAlone: ForwardRefExoticComponent<CardStandAloneProps & RefAttributes<HTMLDivElement>>;
|
|
701
819
|
|
|
702
820
|
/**
|
|
703
|
-
* Interface for the standalone
|
|
704
|
-
*
|
|
821
|
+
* Interface for the standalone card component.
|
|
822
|
+
* It includes optional custom CSS classes, header, content, footer sections and interactive states.
|
|
705
823
|
*/
|
|
706
|
-
export declare interface
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
cssClasses?: CardImageCssClasses;
|
|
824
|
+
export declare interface CardStandAloneProps extends DataAttributes {
|
|
825
|
+
cssClasses?: CardCssClasses;
|
|
826
|
+
header?: CommonTextProps | ReactNode;
|
|
827
|
+
content?: CommonTextProps | ReactNode;
|
|
828
|
+
footer?: CommonTextProps | ReactNode;
|
|
829
|
+
state?: StateType;
|
|
830
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
831
|
+
onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
|
|
832
|
+
onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
|
|
716
833
|
}
|
|
717
834
|
|
|
718
|
-
|
|
719
|
-
|
|
835
|
+
/**
|
|
836
|
+
* Interface representing the styles for the card component.
|
|
837
|
+
*/
|
|
838
|
+
export declare interface CardStyleProps extends CssLibPropsType {
|
|
839
|
+
_header?: CssLibPropsType;
|
|
720
840
|
_content?: CssLibPropsType;
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
_description?: CssLibPropsType;
|
|
726
|
-
_linkContainer?: CssLibPropsType;
|
|
841
|
+
_footer?: CssLibPropsType;
|
|
842
|
+
$pseudo?: {
|
|
843
|
+
hover?: CssLibPropsType;
|
|
844
|
+
};
|
|
727
845
|
}
|
|
728
846
|
|
|
729
|
-
|
|
730
|
-
|
|
847
|
+
/**
|
|
848
|
+
* Type representing the styles for different variants of the card component.
|
|
849
|
+
*
|
|
850
|
+
* @template Variant - The type of the variant keys.
|
|
851
|
+
*/
|
|
852
|
+
export declare type CardVariantStyles<Variant extends string> = CardStyleProps & {
|
|
853
|
+
[key in Variant]: CardStyleProps;
|
|
731
854
|
};
|
|
732
855
|
|
|
733
856
|
export declare const Carousel: ForwardRefExoticComponent<Omit<ICarousel, "ref"> & RefAttributes<CarouselRefType>>;
|
|
@@ -788,16 +911,63 @@ export declare type ChecboxVariantStyles<Variant extends string> = ChecboxStyleP
|
|
|
788
911
|
[key in Variant]?: ChecboxStyleProps;
|
|
789
912
|
};
|
|
790
913
|
|
|
914
|
+
/**
|
|
915
|
+
* CheckboxUnControlled component with internal state management.
|
|
916
|
+
*
|
|
917
|
+
* This component renders a checkbox that manages its own checked state internally.
|
|
918
|
+
* Useful when you don't need to control the checkbox state from a parent component.
|
|
919
|
+
* It automatically handles toggle behavior on user interaction.
|
|
920
|
+
*
|
|
921
|
+
* @example
|
|
922
|
+
* ```tsx
|
|
923
|
+
* <CheckboxUnControlled
|
|
924
|
+
* checked={false}
|
|
925
|
+
* onChange={(e) => console.log(e.target.checked)}
|
|
926
|
+
* label="Remember me"
|
|
927
|
+
* />
|
|
928
|
+
* ```
|
|
929
|
+
*/
|
|
791
930
|
export declare const Checkbox: ForwardRefExoticComponent<CheckboxUnControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
792
931
|
|
|
793
932
|
declare type CheckboxAriaAttributes = Pick<React.AriaAttributes, 'aria-label' | 'aria-labelledby' | 'aria-hidden' | 'aria-describedby'>;
|
|
794
933
|
|
|
934
|
+
/**
|
|
935
|
+
* CheckboxBaseUnControlled component with internal state management.
|
|
936
|
+
*
|
|
937
|
+
* This is a low-level uncontrolled checkbox that manages its own checked state.
|
|
938
|
+
* It automatically handles toggle behavior and notifies via onChange callback.
|
|
939
|
+
* Useful for checkboxes that don't require external state control.
|
|
940
|
+
*
|
|
941
|
+
* @example
|
|
942
|
+
* ```tsx
|
|
943
|
+
* <CheckboxBaseUnControlled
|
|
944
|
+
* checked={false}
|
|
945
|
+
* onChange={(e) => console.log(e.target.checked)}
|
|
946
|
+
* />
|
|
947
|
+
* ```
|
|
948
|
+
*/
|
|
795
949
|
export declare const CheckboxBase: ForwardRefExoticComponent<CheckboxBaseUnControlledProps<string> & {
|
|
796
950
|
children?: ReactNode | undefined;
|
|
797
951
|
} & RefAttributes<HTMLDivElement>>;
|
|
798
952
|
|
|
799
953
|
declare type CheckboxBaseAriaAttributesProps = Pick<React.AriaAttributes, 'aria-label' | 'aria-labelledby' | 'aria-hidden' | 'aria-describedby'>;
|
|
800
954
|
|
|
955
|
+
/**
|
|
956
|
+
* CheckboxBaseControlled component for managed checkbox state.
|
|
957
|
+
*
|
|
958
|
+
* This is a low-level checkbox component where the checked state is controlled
|
|
959
|
+
* externally. It handles error states, required validation, and applies appropriate
|
|
960
|
+
* styling based on the checkbox state (checked, unchecked, indeterminate, disabled).
|
|
961
|
+
*
|
|
962
|
+
* @example
|
|
963
|
+
* ```tsx
|
|
964
|
+
* <CheckboxBaseControlled
|
|
965
|
+
* checked={isChecked}
|
|
966
|
+
* onChange={(e) => setIsChecked(e.target.checked)}
|
|
967
|
+
* error={hasError}
|
|
968
|
+
* />
|
|
969
|
+
* ```
|
|
970
|
+
*/
|
|
801
971
|
export declare const CheckboxBaseControlled: ForwardRefExoticComponent<CheckboxBaseControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
802
972
|
|
|
803
973
|
/**
|
|
@@ -840,6 +1010,22 @@ export declare interface CheckboxBaseStandAloneProps extends InputActionsProps,
|
|
|
840
1010
|
*/
|
|
841
1011
|
export declare type CheckboxBaseUnControlledProps<Variant = undefined extends string ? unknown : string> = CheckboxBaseControlledProps<Variant>;
|
|
842
1012
|
|
|
1013
|
+
/**
|
|
1014
|
+
* CheckboxControlled component for managed checkbox state.
|
|
1015
|
+
*
|
|
1016
|
+
* This component renders a checkbox where the checked state is controlled
|
|
1017
|
+
* externally via props. It handles checked, indeterminate, disabled, and
|
|
1018
|
+
* error states with appropriate styling and ARIA attributes.
|
|
1019
|
+
*
|
|
1020
|
+
* @example
|
|
1021
|
+
* ```tsx
|
|
1022
|
+
* <CheckboxControlled
|
|
1023
|
+
* checked={isChecked}
|
|
1024
|
+
* onChange={(e) => setIsChecked(e.target.checked)}
|
|
1025
|
+
* label="Accept terms"
|
|
1026
|
+
* />
|
|
1027
|
+
* ```
|
|
1028
|
+
*/
|
|
843
1029
|
export declare const CheckboxControlled: ForwardRefExoticComponent<CheckboxControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
844
1030
|
|
|
845
1031
|
/**
|
|
@@ -855,10 +1041,6 @@ export declare interface CheckboxControlledProps<Variant = undefined extends str
|
|
|
855
1041
|
|
|
856
1042
|
export declare type CheckboxCssClasses = ComponentSelected<ComponentsTypesComponents['CHECKBOX']>;
|
|
857
1043
|
|
|
858
|
-
export declare type CheckboxLabelType = Omit<LabelStandAloneProps, 'children' | 'inputId'> & {
|
|
859
|
-
content?: string | JSX.Element;
|
|
860
|
-
};
|
|
861
|
-
|
|
862
1044
|
export declare interface CheckboxMessageType {
|
|
863
1045
|
message?: CommonTextProps;
|
|
864
1046
|
icon?: CommonIconProps;
|
|
@@ -880,7 +1062,9 @@ export declare interface CheckboxStandAloneProps extends InputActionsType_2, Dat
|
|
|
880
1062
|
* Reference for the CheckboxStyled component (input element)
|
|
881
1063
|
*/
|
|
882
1064
|
inputRef?: Ref<HTMLInputElement>;
|
|
883
|
-
label?:
|
|
1065
|
+
label?: CommonTextProps & {
|
|
1066
|
+
requiredSymbol?: string | JSX.Element;
|
|
1067
|
+
};
|
|
884
1068
|
errorMessage?: CheckboxMessageType;
|
|
885
1069
|
checkedIcon?: CommonIconProps;
|
|
886
1070
|
checkboxBase?: {
|
|
@@ -950,11 +1134,6 @@ export declare interface ChipStandAloneProps extends DataAttributes {
|
|
|
950
1134
|
rangeIcon?: ElementOrIconProps;
|
|
951
1135
|
errorMessage?: CommonTextProps;
|
|
952
1136
|
rangeSeparator?: CommonTextProps;
|
|
953
|
-
/**
|
|
954
|
-
* @deprecated
|
|
955
|
-
* Use closeIcon -> altText instead
|
|
956
|
-
*/
|
|
957
|
-
deleteText?: string;
|
|
958
1137
|
state: ChipStateType;
|
|
959
1138
|
cssClasses?: ChipCssClasses;
|
|
960
1139
|
}
|
|
@@ -988,7 +1167,7 @@ declare type ComponentSelected<T> = Pick<T, NonVariablesKeys<T>>;
|
|
|
988
1167
|
|
|
989
1168
|
declare type ComponentSelected_2<T> = Pick<T, NonVariablesKeys_2<T>>;
|
|
990
1169
|
|
|
991
|
-
declare type ComponentsTypesAvailableComponents = 'ACCORDION' | 'AVATAR' | 'BADGE' | 'BREADCRUMBS' | 'BUTTON' | 'CALENDAR' | '
|
|
1170
|
+
declare type ComponentsTypesAvailableComponents = 'ACCORDION' | 'ALERT' | 'AVATAR' | 'BADGE' | 'BREADCRUMBS' | 'BUTTON' | 'CALENDAR' | 'CARD' | 'CAROUSEL' | 'CHECKBOX' | 'CHECKBOX_BASE' | 'CHIP' | 'DATA_TABLE' | 'DOT' | 'ERROR_MESSAGE' | 'ICON' | 'INPUT' | 'INPUT_BASE' | 'INPUT_DECORATION' | 'INPUT_SIGNATURE' | 'ITEM_ROVE' | 'LINK' | 'LINK_AS_BUTTON' | 'LIST_OPTIONS' | 'MODAL' | 'OPTION' | 'OVERLAY' | 'PAGE_CONTROL' | 'PAGINATION' | 'POPOVER' | 'PROGRESS_BAR' | 'RADIO_BUTTON' | 'SELECT' | 'SELECTOR_BOX_FILE' | 'SKELETON' | 'SLIDER' | 'SNACKBAR' | 'STEPPER_NUMBER' | 'TABLE' | 'TABLE_BODY' | 'TABLE_CAPTION' | 'TABLE_CELL' | 'TABLE_DIVIDER' | 'TABLE_FOOT' | 'TABLE_HEAD' | 'TABLE_ROW' | 'TABS' | 'TAG' | 'TEXT' | 'TEXT_AREA' | 'TEXT_COUNT' | 'TOGGLE' | 'TOOLTIP' | 'VIRTUAL_KEYBOARD';
|
|
992
1171
|
|
|
993
1172
|
declare type ComponentsTypesComponents = {
|
|
994
1173
|
ACCORDION: {
|
|
@@ -1004,6 +1183,27 @@ declare type ComponentsTypesComponents = {
|
|
|
1004
1183
|
accordion: string;
|
|
1005
1184
|
};
|
|
1006
1185
|
};
|
|
1186
|
+
ALERT: {
|
|
1187
|
+
container: string;
|
|
1188
|
+
contentcontainer: string;
|
|
1189
|
+
description: string;
|
|
1190
|
+
$_error: {
|
|
1191
|
+
alert: string;
|
|
1192
|
+
container: string;
|
|
1193
|
+
};
|
|
1194
|
+
$_informative: {
|
|
1195
|
+
alert: string;
|
|
1196
|
+
container: string;
|
|
1197
|
+
};
|
|
1198
|
+
$_success: {
|
|
1199
|
+
alert: string;
|
|
1200
|
+
container: string;
|
|
1201
|
+
};
|
|
1202
|
+
$_warning: {
|
|
1203
|
+
alert: string;
|
|
1204
|
+
container: string;
|
|
1205
|
+
};
|
|
1206
|
+
};
|
|
1007
1207
|
AVATAR: {
|
|
1008
1208
|
avatar: string;
|
|
1009
1209
|
dot: string;
|
|
@@ -1079,21 +1279,20 @@ declare type ComponentsTypesComponents = {
|
|
|
1079
1279
|
button: string;
|
|
1080
1280
|
icon: string;
|
|
1081
1281
|
};
|
|
1082
|
-
$
|
|
1282
|
+
$_small: {
|
|
1083
1283
|
button: string;
|
|
1084
1284
|
icon: string;
|
|
1085
1285
|
};
|
|
1086
|
-
$
|
|
1286
|
+
$_alternative: {
|
|
1087
1287
|
button: string;
|
|
1088
|
-
icon: string;
|
|
1089
1288
|
};
|
|
1090
|
-
$
|
|
1289
|
+
$_ghost_alt: {
|
|
1091
1290
|
button: string;
|
|
1092
1291
|
};
|
|
1093
|
-
$
|
|
1292
|
+
$_ghost_primary: {
|
|
1094
1293
|
button: string;
|
|
1095
1294
|
};
|
|
1096
|
-
$
|
|
1295
|
+
$_ghost_secondary: {
|
|
1097
1296
|
button: string;
|
|
1098
1297
|
};
|
|
1099
1298
|
$_primary: {
|
|
@@ -1102,11 +1301,8 @@ declare type ComponentsTypesComponents = {
|
|
|
1102
1301
|
$_secondary: {
|
|
1103
1302
|
button: string;
|
|
1104
1303
|
};
|
|
1105
|
-
$_secondary_alt: {
|
|
1106
|
-
button: string;
|
|
1107
|
-
};
|
|
1108
1304
|
dynamic_values: (styles: {
|
|
1109
|
-
|
|
1305
|
+
$alignText: string;
|
|
1110
1306
|
}) => {
|
|
1111
1307
|
string: string;
|
|
1112
1308
|
object: object;
|
|
@@ -1149,22 +1345,16 @@ declare type ComponentsTypesComponents = {
|
|
|
1149
1345
|
loader: string;
|
|
1150
1346
|
};
|
|
1151
1347
|
};
|
|
1152
|
-
|
|
1153
|
-
|
|
1348
|
+
CARD: {
|
|
1349
|
+
card: string;
|
|
1154
1350
|
content: string;
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
imagecontainer: string;
|
|
1158
|
-
linkcontainer: string;
|
|
1159
|
-
textcontainer: string;
|
|
1160
|
-
title: string;
|
|
1161
|
-
titlecontainer: string;
|
|
1162
|
-
$_alternative: {
|
|
1163
|
-
card_image: string;
|
|
1164
|
-
};
|
|
1351
|
+
footer: string;
|
|
1352
|
+
header: string;
|
|
1165
1353
|
$_default: {
|
|
1166
|
-
|
|
1167
|
-
|
|
1354
|
+
card: string;
|
|
1355
|
+
content: string;
|
|
1356
|
+
footer: string;
|
|
1357
|
+
header: string;
|
|
1168
1358
|
};
|
|
1169
1359
|
};
|
|
1170
1360
|
CAROUSEL: {
|
|
@@ -1219,21 +1409,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1219
1409
|
rangeitemtext: string;
|
|
1220
1410
|
};
|
|
1221
1411
|
};
|
|
1222
|
-
CONTAINER: {
|
|
1223
|
-
container: string;
|
|
1224
|
-
content: string;
|
|
1225
|
-
header: string;
|
|
1226
|
-
title: string;
|
|
1227
|
-
$_alternative: {
|
|
1228
|
-
container: string;
|
|
1229
|
-
};
|
|
1230
|
-
$_default: {
|
|
1231
|
-
container: string;
|
|
1232
|
-
};
|
|
1233
|
-
$_secondary: {
|
|
1234
|
-
container: string;
|
|
1235
|
-
};
|
|
1236
|
-
};
|
|
1237
1412
|
DATA_TABLE: {
|
|
1238
1413
|
data_table: string;
|
|
1239
1414
|
headboxshadow: string;
|
|
@@ -1329,51 +1504,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1329
1504
|
dot: string;
|
|
1330
1505
|
};
|
|
1331
1506
|
};
|
|
1332
|
-
DROPDOWN_SELECTED: {
|
|
1333
|
-
dropdown_selected: string;
|
|
1334
|
-
buttonorlinkcontainer: string;
|
|
1335
|
-
iconclosed: string;
|
|
1336
|
-
iconopened: string;
|
|
1337
|
-
labelclosed: string;
|
|
1338
|
-
labelopened: string;
|
|
1339
|
-
listoptionscontainer: string;
|
|
1340
|
-
$_default: {
|
|
1341
|
-
dropdown_selected: string;
|
|
1342
|
-
buttonorlinkcontainer: string;
|
|
1343
|
-
iconclosed: string;
|
|
1344
|
-
iconopened: string;
|
|
1345
|
-
labelclosed: string;
|
|
1346
|
-
labelopened: string;
|
|
1347
|
-
listoptionscontainer: string;
|
|
1348
|
-
};
|
|
1349
|
-
$_side_menu: {
|
|
1350
|
-
dropdown_selected: string;
|
|
1351
|
-
buttonorlinkcontainer: string;
|
|
1352
|
-
iconclosed: string;
|
|
1353
|
-
iconopened: string;
|
|
1354
|
-
labelclosed: string;
|
|
1355
|
-
labelopened: string;
|
|
1356
|
-
listoptionscontainer: string;
|
|
1357
|
-
};
|
|
1358
|
-
$_topbar: {
|
|
1359
|
-
dropdown_selected: string;
|
|
1360
|
-
buttonorlinkcontainer: string;
|
|
1361
|
-
iconclosed: string;
|
|
1362
|
-
iconopened: string;
|
|
1363
|
-
labelclosed: string;
|
|
1364
|
-
labelopened: string;
|
|
1365
|
-
listoptionscontainer: string;
|
|
1366
|
-
};
|
|
1367
|
-
$_topbar_tab: {
|
|
1368
|
-
dropdown_selected: string;
|
|
1369
|
-
buttonorlinkcontainer: string;
|
|
1370
|
-
iconclosed: string;
|
|
1371
|
-
iconopened: string;
|
|
1372
|
-
labelclosed: string;
|
|
1373
|
-
labelopened: string;
|
|
1374
|
-
listoptionscontainer: string;
|
|
1375
|
-
};
|
|
1376
|
-
};
|
|
1377
1507
|
ERROR_MESSAGE: {
|
|
1378
1508
|
error_message: string;
|
|
1379
1509
|
icon: string;
|
|
@@ -1387,11 +1517,11 @@ declare type ComponentsTypesComponents = {
|
|
|
1387
1517
|
complex: string;
|
|
1388
1518
|
svg: string;
|
|
1389
1519
|
dynamic_values: (styles: {
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1520
|
+
$color: string;
|
|
1521
|
+
$moveAround: string;
|
|
1522
|
+
$transitionDuration: string;
|
|
1523
|
+
$height: string;
|
|
1524
|
+
$width: string;
|
|
1395
1525
|
}) => {
|
|
1396
1526
|
string: string;
|
|
1397
1527
|
object: object;
|
|
@@ -1490,76 +1620,11 @@ declare type ComponentsTypesComponents = {
|
|
|
1490
1620
|
optionscontainer: string;
|
|
1491
1621
|
title: string;
|
|
1492
1622
|
titlecontainer: string;
|
|
1493
|
-
$_code_viewer_subtheme: {
|
|
1494
|
-
list_options: string;
|
|
1495
|
-
};
|
|
1496
1623
|
$_default: {
|
|
1497
1624
|
list_options: string;
|
|
1498
1625
|
title: string;
|
|
1499
1626
|
titlecontainer: string;
|
|
1500
1627
|
};
|
|
1501
|
-
$_dropdown_selected_section: {
|
|
1502
|
-
list_options: string;
|
|
1503
|
-
optionscontainer: string;
|
|
1504
|
-
};
|
|
1505
|
-
$_input_dropdown_default: {
|
|
1506
|
-
list_options: string;
|
|
1507
|
-
};
|
|
1508
|
-
$_input_dropdown_section: {
|
|
1509
|
-
list_options: string;
|
|
1510
|
-
};
|
|
1511
|
-
$_input_search: {
|
|
1512
|
-
list_options: string;
|
|
1513
|
-
};
|
|
1514
|
-
$_side_menu_section: {
|
|
1515
|
-
list_options: string;
|
|
1516
|
-
optionscontainer: string;
|
|
1517
|
-
title: string;
|
|
1518
|
-
titlecontainer: string;
|
|
1519
|
-
};
|
|
1520
|
-
};
|
|
1521
|
-
MESSAGE: {
|
|
1522
|
-
message: string;
|
|
1523
|
-
actionbuttoncontainer: string;
|
|
1524
|
-
buttonsectioncontainer: string;
|
|
1525
|
-
closeicon: string;
|
|
1526
|
-
container: string;
|
|
1527
|
-
contentcontainer: string;
|
|
1528
|
-
contentcontainerlargemessage: string;
|
|
1529
|
-
description: string;
|
|
1530
|
-
extraactionbuttoncontainer: string;
|
|
1531
|
-
headercontainer: string;
|
|
1532
|
-
headercontainerlargemessage: string;
|
|
1533
|
-
infoicon: string;
|
|
1534
|
-
linkcontainer: string;
|
|
1535
|
-
linkscontainer: string;
|
|
1536
|
-
title: string;
|
|
1537
|
-
titlecontainer: string;
|
|
1538
|
-
$_error: {
|
|
1539
|
-
message: string;
|
|
1540
|
-
container: string;
|
|
1541
|
-
infoicon: string;
|
|
1542
|
-
};
|
|
1543
|
-
$_informative: {
|
|
1544
|
-
message: string;
|
|
1545
|
-
container: string;
|
|
1546
|
-
infoicon: string;
|
|
1547
|
-
};
|
|
1548
|
-
$_success: {
|
|
1549
|
-
message: string;
|
|
1550
|
-
container: string;
|
|
1551
|
-
infoicon: string;
|
|
1552
|
-
};
|
|
1553
|
-
$_warning: {
|
|
1554
|
-
message: string;
|
|
1555
|
-
container: string;
|
|
1556
|
-
infoicon: string;
|
|
1557
|
-
};
|
|
1558
|
-
action_button: {
|
|
1559
|
-
button: string;
|
|
1560
|
-
icon: string;
|
|
1561
|
-
loader: string;
|
|
1562
|
-
};
|
|
1563
1628
|
};
|
|
1564
1629
|
MODAL: {
|
|
1565
1630
|
modal: string;
|
|
@@ -1578,13 +1643,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1578
1643
|
modal: string;
|
|
1579
1644
|
};
|
|
1580
1645
|
};
|
|
1581
|
-
NAVBAR: {
|
|
1582
|
-
navbar: string;
|
|
1583
|
-
itemcontainer: string;
|
|
1584
|
-
$_default: {
|
|
1585
|
-
navbar: string;
|
|
1586
|
-
};
|
|
1587
|
-
};
|
|
1588
1646
|
OPTION: {
|
|
1589
1647
|
option: string;
|
|
1590
1648
|
checkedicon: string;
|
|
@@ -1595,55 +1653,12 @@ declare type ComponentsTypesComponents = {
|
|
|
1595
1653
|
labeliconcontainer: string;
|
|
1596
1654
|
sublabel: string;
|
|
1597
1655
|
sublabelcontainer: string;
|
|
1598
|
-
$
|
|
1656
|
+
$_default: {
|
|
1599
1657
|
option: string;
|
|
1600
|
-
|
|
1601
|
-
};
|
|
1602
|
-
$_input_dropdown: {
|
|
1603
|
-
option: string;
|
|
1604
|
-
icon: string;
|
|
1605
|
-
label: string;
|
|
1606
|
-
labeliconcontainer: string;
|
|
1607
|
-
};
|
|
1608
|
-
$_input_option: {
|
|
1609
|
-
option: string;
|
|
1610
|
-
icon: string;
|
|
1611
|
-
label: string;
|
|
1612
|
-
labelhighlighted: string;
|
|
1613
|
-
labeliconcontainer: string;
|
|
1614
|
-
sublabel: string;
|
|
1615
|
-
};
|
|
1616
|
-
$_input_option_hightlighted: {
|
|
1617
|
-
option: string;
|
|
1618
|
-
icon: string;
|
|
1619
|
-
label: string;
|
|
1620
|
-
labelhighlighted: string;
|
|
1621
|
-
labeliconcontainer: string;
|
|
1622
|
-
sublabel: string;
|
|
1623
|
-
};
|
|
1624
|
-
$_inverted: {
|
|
1625
|
-
option: string;
|
|
1626
|
-
label: string;
|
|
1627
|
-
};
|
|
1628
|
-
$_side_menu_level_1: {
|
|
1629
|
-
option: string;
|
|
1630
|
-
icon: string;
|
|
1658
|
+
icon: string;
|
|
1631
1659
|
label: string;
|
|
1632
1660
|
labeliconcontainer: string;
|
|
1633
1661
|
};
|
|
1634
|
-
$_side_menu_level_2: {
|
|
1635
|
-
option: string;
|
|
1636
|
-
label: string;
|
|
1637
|
-
};
|
|
1638
|
-
$_topbar: {
|
|
1639
|
-
option: string;
|
|
1640
|
-
label: string;
|
|
1641
|
-
labelhighlighted: string;
|
|
1642
|
-
};
|
|
1643
|
-
$_topbar_tab: {
|
|
1644
|
-
option: string;
|
|
1645
|
-
label: string;
|
|
1646
|
-
};
|
|
1647
1662
|
};
|
|
1648
1663
|
OVERLAY: {
|
|
1649
1664
|
overlay: string;
|
|
@@ -1709,63 +1724,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1709
1724
|
$_default: {
|
|
1710
1725
|
progress_bar: string;
|
|
1711
1726
|
};
|
|
1712
|
-
$_interactive: {
|
|
1713
|
-
progress_bar: string;
|
|
1714
|
-
barcontainer: string;
|
|
1715
|
-
};
|
|
1716
|
-
slider: {
|
|
1717
|
-
activetrack: string;
|
|
1718
|
-
inactivetrack: string;
|
|
1719
|
-
thumb: string;
|
|
1720
|
-
decrement_button_size: {
|
|
1721
|
-
icon: string;
|
|
1722
|
-
button: string;
|
|
1723
|
-
loader: string;
|
|
1724
|
-
};
|
|
1725
|
-
decrement_button_variant: {
|
|
1726
|
-
button: string;
|
|
1727
|
-
icon: string;
|
|
1728
|
-
loader: string;
|
|
1729
|
-
};
|
|
1730
|
-
tooltip: {
|
|
1731
|
-
arrowcontainer: string;
|
|
1732
|
-
arrowposition: string;
|
|
1733
|
-
arrowsize: string;
|
|
1734
|
-
closebuttoncontainer: string;
|
|
1735
|
-
closebuttonicon: string;
|
|
1736
|
-
headercontainer: string;
|
|
1737
|
-
paragraph: string;
|
|
1738
|
-
paragraphcontainer: string;
|
|
1739
|
-
title: string;
|
|
1740
|
-
tooltipexternalcontainer: string;
|
|
1741
|
-
tooltipinternalcontainer: string;
|
|
1742
|
-
popover: {
|
|
1743
|
-
arrow: string;
|
|
1744
|
-
popover: string;
|
|
1745
|
-
};
|
|
1746
|
-
arrow: string;
|
|
1747
|
-
divider: string;
|
|
1748
|
-
dragicon: string;
|
|
1749
|
-
dragiconcontainer: string;
|
|
1750
|
-
tooltipalignstyles: string;
|
|
1751
|
-
tooltipasmodal: string;
|
|
1752
|
-
};
|
|
1753
|
-
buttonstrackscontainer: string;
|
|
1754
|
-
helpertext: string;
|
|
1755
|
-
helpertextcontainer: string;
|
|
1756
|
-
helpertextleftcontainer: string;
|
|
1757
|
-
helpertextrightcontainer: string;
|
|
1758
|
-
innerthumbtooltip: string;
|
|
1759
|
-
label: string;
|
|
1760
|
-
labelcontainer: string;
|
|
1761
|
-
rightthumbicon: string;
|
|
1762
|
-
scalecontainer: string;
|
|
1763
|
-
scaleoption: string;
|
|
1764
|
-
thumbicon: string;
|
|
1765
|
-
tracksthumbscontainer: string;
|
|
1766
|
-
tracksthumbsinnercontainer: string;
|
|
1767
|
-
slider: string;
|
|
1768
|
-
};
|
|
1769
1727
|
};
|
|
1770
1728
|
RADIO_BUTTON: {
|
|
1771
1729
|
radio_button: string;
|
|
@@ -1789,12 +1747,8 @@ declare type ComponentsTypesComponents = {
|
|
|
1789
1747
|
arrowcontainer: string;
|
|
1790
1748
|
arrowposition: string;
|
|
1791
1749
|
arrowsize: string;
|
|
1792
|
-
closebuttoncontainer: string;
|
|
1793
|
-
closebuttonicon: string;
|
|
1794
|
-
headercontainer: string;
|
|
1795
1750
|
paragraph: string;
|
|
1796
1751
|
paragraphcontainer: string;
|
|
1797
|
-
title: string;
|
|
1798
1752
|
tooltipexternalcontainer: string;
|
|
1799
1753
|
tooltipinternalcontainer: string;
|
|
1800
1754
|
popover: {
|
|
@@ -1802,16 +1756,57 @@ declare type ComponentsTypesComponents = {
|
|
|
1802
1756
|
popover: string;
|
|
1803
1757
|
};
|
|
1804
1758
|
arrow: string;
|
|
1805
|
-
divider: string;
|
|
1806
|
-
dragicon: string;
|
|
1807
|
-
dragiconcontainer: string;
|
|
1808
1759
|
tooltipalignstyles: string;
|
|
1809
1760
|
tooltipasmodal: string;
|
|
1810
1761
|
};
|
|
1811
1762
|
};
|
|
1763
|
+
SELECT: {
|
|
1764
|
+
select: string;
|
|
1765
|
+
buttonorlinkcontainer: string;
|
|
1766
|
+
iconclosed: string;
|
|
1767
|
+
iconopened: string;
|
|
1768
|
+
labelclosed: string;
|
|
1769
|
+
labelopened: string;
|
|
1770
|
+
listoptionscontainer: string;
|
|
1771
|
+
$_default: {
|
|
1772
|
+
select: string;
|
|
1773
|
+
buttonorlinkcontainer: string;
|
|
1774
|
+
iconclosed: string;
|
|
1775
|
+
iconopened: string;
|
|
1776
|
+
labelclosed: string;
|
|
1777
|
+
labelopened: string;
|
|
1778
|
+
listoptionscontainer: string;
|
|
1779
|
+
};
|
|
1780
|
+
$_side_menu: {
|
|
1781
|
+
select: string;
|
|
1782
|
+
buttonorlinkcontainer: string;
|
|
1783
|
+
iconclosed: string;
|
|
1784
|
+
iconopened: string;
|
|
1785
|
+
labelclosed: string;
|
|
1786
|
+
labelopened: string;
|
|
1787
|
+
listoptionscontainer: string;
|
|
1788
|
+
};
|
|
1789
|
+
$_topbar: {
|
|
1790
|
+
select: string;
|
|
1791
|
+
buttonorlinkcontainer: string;
|
|
1792
|
+
iconclosed: string;
|
|
1793
|
+
iconopened: string;
|
|
1794
|
+
labelclosed: string;
|
|
1795
|
+
labelopened: string;
|
|
1796
|
+
listoptionscontainer: string;
|
|
1797
|
+
};
|
|
1798
|
+
$_topbar_tab: {
|
|
1799
|
+
select: string;
|
|
1800
|
+
buttonorlinkcontainer: string;
|
|
1801
|
+
iconclosed: string;
|
|
1802
|
+
iconopened: string;
|
|
1803
|
+
labelclosed: string;
|
|
1804
|
+
labelopened: string;
|
|
1805
|
+
listoptionscontainer: string;
|
|
1806
|
+
};
|
|
1807
|
+
};
|
|
1812
1808
|
SELECTOR_BOX_FILE: {
|
|
1813
1809
|
selector_box_file: string;
|
|
1814
|
-
actiondescriptioncontainer: string;
|
|
1815
1810
|
actionicon: string;
|
|
1816
1811
|
actioniconandactiontextcontainer: string;
|
|
1817
1812
|
animationcontainer: string;
|
|
@@ -1824,57 +1819,13 @@ declare type ComponentsTypesComponents = {
|
|
|
1824
1819
|
containerboxfilename: string;
|
|
1825
1820
|
containerboxicon: string;
|
|
1826
1821
|
containerboxtextscontainer: string;
|
|
1827
|
-
description: string;
|
|
1828
|
-
descriptioncontainer: string;
|
|
1829
|
-
errormessage: string;
|
|
1830
|
-
errormessagecontainer: string;
|
|
1831
|
-
errormessageicon: string;
|
|
1832
1822
|
header: string;
|
|
1833
1823
|
leftanimationcontainer: string;
|
|
1834
1824
|
rightanimationcontainer: string;
|
|
1835
|
-
subtitle: string;
|
|
1836
|
-
subtitletooltipcontainer: string;
|
|
1837
|
-
title: string;
|
|
1838
|
-
titlesubtitlecontainer: string;
|
|
1839
|
-
tooltipicon: string;
|
|
1840
|
-
tooltipiconcontainer: string;
|
|
1841
1825
|
topanimationcontainer: string;
|
|
1842
1826
|
$_default: {
|
|
1843
1827
|
selector_box_file: string;
|
|
1844
1828
|
};
|
|
1845
|
-
button_size: {
|
|
1846
|
-
icon: string;
|
|
1847
|
-
button: string;
|
|
1848
|
-
loader: string;
|
|
1849
|
-
};
|
|
1850
|
-
button_variant: {
|
|
1851
|
-
button: string;
|
|
1852
|
-
icon: string;
|
|
1853
|
-
loader: string;
|
|
1854
|
-
};
|
|
1855
|
-
tooltip: {
|
|
1856
|
-
arrowcontainer: string;
|
|
1857
|
-
arrowposition: string;
|
|
1858
|
-
arrowsize: string;
|
|
1859
|
-
closebuttoncontainer: string;
|
|
1860
|
-
closebuttonicon: string;
|
|
1861
|
-
headercontainer: string;
|
|
1862
|
-
paragraph: string;
|
|
1863
|
-
paragraphcontainer: string;
|
|
1864
|
-
title: string;
|
|
1865
|
-
tooltipexternalcontainer: string;
|
|
1866
|
-
tooltipinternalcontainer: string;
|
|
1867
|
-
popover: {
|
|
1868
|
-
arrow: string;
|
|
1869
|
-
popover: string;
|
|
1870
|
-
};
|
|
1871
|
-
arrow: string;
|
|
1872
|
-
divider: string;
|
|
1873
|
-
dragicon: string;
|
|
1874
|
-
dragiconcontainer: string;
|
|
1875
|
-
tooltipalignstyles: string;
|
|
1876
|
-
tooltipasmodal: string;
|
|
1877
|
-
};
|
|
1878
1829
|
};
|
|
1879
1830
|
SKELETON: {
|
|
1880
1831
|
skeleton: string;
|
|
@@ -1933,12 +1884,8 @@ declare type ComponentsTypesComponents = {
|
|
|
1933
1884
|
arrowcontainer: string;
|
|
1934
1885
|
arrowposition: string;
|
|
1935
1886
|
arrowsize: string;
|
|
1936
|
-
closebuttoncontainer: string;
|
|
1937
|
-
closebuttonicon: string;
|
|
1938
|
-
headercontainer: string;
|
|
1939
1887
|
paragraph: string;
|
|
1940
1888
|
paragraphcontainer: string;
|
|
1941
|
-
title: string;
|
|
1942
1889
|
tooltipexternalcontainer: string;
|
|
1943
1890
|
tooltipinternalcontainer: string;
|
|
1944
1891
|
popover: {
|
|
@@ -1946,9 +1893,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1946
1893
|
popover: string;
|
|
1947
1894
|
};
|
|
1948
1895
|
arrow: string;
|
|
1949
|
-
divider: string;
|
|
1950
|
-
dragicon: string;
|
|
1951
|
-
dragiconcontainer: string;
|
|
1952
1896
|
tooltipalignstyles: string;
|
|
1953
1897
|
tooltipasmodal: string;
|
|
1954
1898
|
};
|
|
@@ -2040,18 +1984,18 @@ declare type ComponentsTypesComponents = {
|
|
|
2040
1984
|
table_cell: string;
|
|
2041
1985
|
};
|
|
2042
1986
|
dynamic_values: (styles: {
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
1987
|
+
$tdWidth: string;
|
|
1988
|
+
$tdHeight: string;
|
|
1989
|
+
$tdMinWidth: string;
|
|
1990
|
+
$tdMaxWidth: string;
|
|
1991
|
+
$tdTextAlign: string;
|
|
1992
|
+
$tdVerticalAlign: string;
|
|
1993
|
+
$tdAlignItems: string;
|
|
1994
|
+
$tdJustifyContent: string;
|
|
1995
|
+
$tdTop: string;
|
|
1996
|
+
$tdLeft: string;
|
|
1997
|
+
$tdRight: string;
|
|
1998
|
+
$tdBottom: string;
|
|
2055
1999
|
}) => {
|
|
2056
2000
|
string: string;
|
|
2057
2001
|
object: object;
|
|
@@ -2253,15 +2197,8 @@ declare type ComponentsTypesComponents = {
|
|
|
2253
2197
|
arrowcontainer: string;
|
|
2254
2198
|
arrowposition: string;
|
|
2255
2199
|
arrowsize: string;
|
|
2256
|
-
closebuttoncontainer: string;
|
|
2257
|
-
closebuttonicon: string;
|
|
2258
|
-
divider: string;
|
|
2259
|
-
dragicon: string;
|
|
2260
|
-
dragiconcontainer: string;
|
|
2261
|
-
headercontainer: string;
|
|
2262
2200
|
paragraph: string;
|
|
2263
2201
|
paragraphcontainer: string;
|
|
2264
|
-
title: string;
|
|
2265
2202
|
tooltipalignstyles: string;
|
|
2266
2203
|
tooltipasmodal: string;
|
|
2267
2204
|
tooltipexternalcontainer: string;
|
|
@@ -2271,12 +2208,8 @@ declare type ComponentsTypesComponents = {
|
|
|
2271
2208
|
arrowcontainer: string;
|
|
2272
2209
|
arrowposition: string;
|
|
2273
2210
|
arrowsize: string;
|
|
2274
|
-
closebuttoncontainer: string;
|
|
2275
|
-
closebuttonicon: string;
|
|
2276
|
-
headercontainer: string;
|
|
2277
2211
|
paragraph: string;
|
|
2278
2212
|
paragraphcontainer: string;
|
|
2279
|
-
title: string;
|
|
2280
2213
|
tooltipexternalcontainer: string;
|
|
2281
2214
|
tooltipinternalcontainer: string;
|
|
2282
2215
|
};
|
|
@@ -2301,75 +2234,22 @@ declare type ComponentsTypesComponents = {
|
|
|
2301
2234
|
};
|
|
2302
2235
|
|
|
2303
2236
|
/**
|
|
2304
|
-
*
|
|
2305
|
-
*
|
|
2306
|
-
* This component wraps its children in a styled container, optionally displaying a header/title.
|
|
2307
|
-
* It is useful for organizing related content, settings, or sections in a visually consistent way.
|
|
2308
|
-
* Supports custom CSS classes and theming via variants.
|
|
2309
|
-
*
|
|
2310
|
-
* Internally, it computes CSS classes using a custom hook and delegates rendering to {@link ContainerStandAlone}.
|
|
2311
|
-
*
|
|
2312
|
-
* This component accepts a generic type parameter `<Variant extends string>` to allow for custom variant values,
|
|
2313
|
-
* enabling flexible theming and styling.
|
|
2314
|
-
*
|
|
2315
|
-
* @example
|
|
2316
|
-
* ```tsx
|
|
2317
|
-
* <Container title={{ content: "Section Title" }}>
|
|
2318
|
-
* Section content goes here.
|
|
2319
|
-
* </Container>
|
|
2320
|
-
*
|
|
2321
|
-
* // With a custom variant type:
|
|
2322
|
-
* type MyVariant = "primary" | "secondary";
|
|
2323
|
-
* <Container<MyVariant> title={{ content: "Primary Section" }} variant="primary">
|
|
2324
|
-
* Primary section content.
|
|
2325
|
-
* </Container>
|
|
2326
|
-
* ```
|
|
2327
|
-
*/
|
|
2328
|
-
export declare const Container: ForwardRefExoticComponent<ContainerProps<string> & {
|
|
2329
|
-
children?: ReactNode | undefined;
|
|
2330
|
-
} & RefAttributes<HTMLDivElement>>;
|
|
2331
|
-
|
|
2332
|
-
declare type ContainerCssClasses = ComponentSelected<ComponentsTypesComponents['CONTAINER']>;
|
|
2333
|
-
|
|
2334
|
-
/**
|
|
2335
|
-
* Interface for the container component with a variant.
|
|
2336
|
-
* Extends the IContainerStandAlone interface and adds a variant and additional CSS classes.
|
|
2337
|
-
*
|
|
2338
|
-
* @template Variant - The type of the variant for the container.
|
|
2339
|
-
*/
|
|
2340
|
-
export declare interface ContainerProps<Variant extends string | unknown> extends Omit<ContainerStandAloneProps, 'cssClasses'> {
|
|
2341
|
-
variant?: Variant;
|
|
2342
|
-
additionalClasses?: Partial<ContainerCssClasses>;
|
|
2343
|
-
}
|
|
2344
|
-
|
|
2345
|
-
/**
|
|
2346
|
-
* Interface for the standalone container component.
|
|
2347
|
-
* It includes optional custom CSS classes, a title, and a data-testid attribute.
|
|
2348
|
-
*/
|
|
2349
|
-
export declare interface ContainerStandAloneProps extends DataAttributes {
|
|
2350
|
-
cssClasses?: ContainerCssClasses;
|
|
2351
|
-
title?: CommonTextProps;
|
|
2352
|
-
}
|
|
2353
|
-
|
|
2354
|
-
/**
|
|
2355
|
-
* Interface representing the styles for the container component.
|
|
2356
|
-
*/
|
|
2357
|
-
export declare interface ContainerStyleProps extends CssLibPropsType {
|
|
2358
|
-
_header?: CssLibPropsType;
|
|
2359
|
-
_title?: CssLibPropsType;
|
|
2360
|
-
_content?: CssLibPropsType;
|
|
2361
|
-
}
|
|
2362
|
-
|
|
2363
|
-
/**
|
|
2364
|
-
* Type representing the styles for different variants of the container component.
|
|
2365
|
-
*
|
|
2366
|
-
* @template Variant - The type of the variant keys.
|
|
2237
|
+
* Create a spring animation configuration with physics-based keyframes as CSS string
|
|
2367
2238
|
*/
|
|
2368
|
-
export declare
|
|
2369
|
-
|
|
2239
|
+
export declare const createSpringAnimation: (direction: "up" | "down" | "left" | "right" | "fade", options?: {
|
|
2240
|
+
stiffness?: number;
|
|
2241
|
+
damping?: number;
|
|
2242
|
+
mass?: number;
|
|
2243
|
+
duration?: string;
|
|
2244
|
+
initialDisplacement?: number;
|
|
2245
|
+
keyframeCount?: number;
|
|
2246
|
+
placement?: string;
|
|
2247
|
+
}) => {
|
|
2248
|
+
duration: string;
|
|
2249
|
+
keyframesCSS: string;
|
|
2370
2250
|
};
|
|
2371
2251
|
|
|
2372
|
-
declare type CssAdvancedSelectorsType = {
|
|
2252
|
+
export declare type CssAdvancedSelectorsType = {
|
|
2373
2253
|
adjacent?: CssLibPropsType & {
|
|
2374
2254
|
$target?: string;
|
|
2375
2255
|
};
|
|
@@ -2395,15 +2275,15 @@ declare type CssAdvancedSelectorsType = {
|
|
|
2395
2275
|
};
|
|
2396
2276
|
};
|
|
2397
2277
|
|
|
2398
|
-
declare type CssDynamicValuesType = {
|
|
2278
|
+
export declare type CssDynamicValuesType = {
|
|
2399
2279
|
$dynamicValues?: string[];
|
|
2400
2280
|
};
|
|
2401
2281
|
|
|
2402
|
-
declare type CssForeignLibType = {
|
|
2282
|
+
export declare type CssForeignLibType = {
|
|
2403
2283
|
$foreign?: CssForeignType;
|
|
2404
2284
|
};
|
|
2405
2285
|
|
|
2406
|
-
declare type CssForeignType = {
|
|
2286
|
+
export declare type CssForeignType = {
|
|
2407
2287
|
[key: string]: {
|
|
2408
2288
|
component: object;
|
|
2409
2289
|
variant?: string | unknown;
|
|
@@ -2411,11 +2291,11 @@ declare type CssForeignType = {
|
|
|
2411
2291
|
};
|
|
2412
2292
|
};
|
|
2413
2293
|
|
|
2414
|
-
declare type CssLibAdvancedSelectorsType = {
|
|
2294
|
+
export declare type CssLibAdvancedSelectorsType = {
|
|
2415
2295
|
$advancedSelectors?: CssAdvancedSelectorsType[];
|
|
2416
2296
|
};
|
|
2417
2297
|
|
|
2418
|
-
declare type CssLibAttributesType = {
|
|
2298
|
+
export declare type CssLibAttributesType = {
|
|
2419
2299
|
$attributes?: {
|
|
2420
2300
|
[key: string]: CssLibPropsType;
|
|
2421
2301
|
} | {
|
|
@@ -2425,35 +2305,35 @@ declare type CssLibAttributesType = {
|
|
|
2425
2305
|
};
|
|
2426
2306
|
};
|
|
2427
2307
|
|
|
2428
|
-
declare type CssLibMediaQueriesType = {
|
|
2308
|
+
export declare type CssLibMediaQueriesType = {
|
|
2429
2309
|
$mediaQueries?: {
|
|
2430
2310
|
[key: string]: CssMediaQueriesType;
|
|
2431
2311
|
} | {
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2312
|
+
mobile?: CssLibPropsType;
|
|
2313
|
+
tablet?: CssLibPropsType;
|
|
2314
|
+
desktop?: CssLibPropsType;
|
|
2315
|
+
large_desktop?: CssLibPropsType;
|
|
2436
2316
|
};
|
|
2437
2317
|
};
|
|
2438
2318
|
|
|
2439
|
-
declare type CssLibPropsType = CssPropsType & CssLibPseudoClassesType & CssLibPseudoElementsType & CssLibAdvancedSelectorsType & CssDynamicValuesType & CssLibAttributesType & CssLibMediaQueriesType & CssForeignLibType;
|
|
2319
|
+
export declare type CssLibPropsType = CssPropsType & CssLibPseudoClassesType & CssLibPseudoElementsType & CssLibAdvancedSelectorsType & CssDynamicValuesType & CssLibAttributesType & CssLibMediaQueriesType & CssForeignLibType;
|
|
2440
2320
|
|
|
2441
|
-
declare type CssLibPseudoClassesType = {
|
|
2321
|
+
export declare type CssLibPseudoClassesType = {
|
|
2442
2322
|
$pseudoClasses?: CssPseudoClassesType;
|
|
2443
2323
|
};
|
|
2444
2324
|
|
|
2445
|
-
declare type CssLibPseudoElementsType = {
|
|
2325
|
+
export declare type CssLibPseudoElementsType = {
|
|
2446
2326
|
$pseudoElements?: CssPseudoElementsType;
|
|
2447
2327
|
};
|
|
2448
2328
|
|
|
2449
|
-
declare type CssMediaQueriesType = CssPropsType & {
|
|
2329
|
+
export declare type CssMediaQueriesType = CssPropsType & {
|
|
2450
2330
|
$type?: string;
|
|
2451
2331
|
$values?: {
|
|
2452
2332
|
[key: string]: string;
|
|
2453
2333
|
};
|
|
2454
2334
|
};
|
|
2455
2335
|
|
|
2456
|
-
declare type CssPropsType = {
|
|
2336
|
+
export declare type CssPropsType = {
|
|
2457
2337
|
scrollbar_width?: string;
|
|
2458
2338
|
scrollbar_color?: string;
|
|
2459
2339
|
scrollbar_gutter?: string;
|
|
@@ -2730,292 +2610,292 @@ declare type CssPropsType = {
|
|
|
2730
2610
|
$content?: string;
|
|
2731
2611
|
};
|
|
2732
2612
|
|
|
2733
|
-
declare type CssPseudoClassesType = {
|
|
2734
|
-
fullscreen?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2613
|
+
export declare type CssPseudoClassesType = {
|
|
2614
|
+
fullscreen?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2735
2615
|
$target?: string;
|
|
2736
|
-
};
|
|
2737
|
-
modal?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2616
|
+
});
|
|
2617
|
+
modal?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2738
2618
|
$target?: string;
|
|
2739
|
-
};
|
|
2740
|
-
picture_in_picture?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2619
|
+
});
|
|
2620
|
+
picture_in_picture?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2741
2621
|
$target?: string;
|
|
2742
|
-
};
|
|
2743
|
-
autofill?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2622
|
+
});
|
|
2623
|
+
autofill?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2744
2624
|
$target?: string;
|
|
2745
|
-
};
|
|
2746
|
-
enabled?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2625
|
+
});
|
|
2626
|
+
enabled?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2747
2627
|
$target?: string;
|
|
2748
|
-
};
|
|
2749
|
-
disabled?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2628
|
+
});
|
|
2629
|
+
disabled?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2750
2630
|
$target?: string;
|
|
2751
|
-
};
|
|
2752
|
-
read_only?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2631
|
+
});
|
|
2632
|
+
read_only?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2753
2633
|
$target?: string;
|
|
2754
|
-
};
|
|
2755
|
-
read_write?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2634
|
+
});
|
|
2635
|
+
read_write?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2756
2636
|
$target?: string;
|
|
2757
|
-
};
|
|
2758
|
-
placeholder_shown?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2637
|
+
});
|
|
2638
|
+
placeholder_shown?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2759
2639
|
$target?: string;
|
|
2760
|
-
};
|
|
2761
|
-
default?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2640
|
+
});
|
|
2641
|
+
default?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2762
2642
|
$target?: string;
|
|
2763
|
-
};
|
|
2764
|
-
checked?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2643
|
+
});
|
|
2644
|
+
checked?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2765
2645
|
$target?: string;
|
|
2766
|
-
};
|
|
2767
|
-
indeterminate?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2646
|
+
});
|
|
2647
|
+
indeterminate?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2768
2648
|
$target?: string;
|
|
2769
|
-
};
|
|
2770
|
-
blank?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2649
|
+
});
|
|
2650
|
+
blank?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2771
2651
|
$target?: string;
|
|
2772
|
-
};
|
|
2773
|
-
valid?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2652
|
+
});
|
|
2653
|
+
valid?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2774
2654
|
$target?: string;
|
|
2775
|
-
};
|
|
2776
|
-
invalid?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2655
|
+
});
|
|
2656
|
+
invalid?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2777
2657
|
$target?: string;
|
|
2778
|
-
};
|
|
2779
|
-
in_range?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2658
|
+
});
|
|
2659
|
+
in_range?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2780
2660
|
$target?: string;
|
|
2781
|
-
};
|
|
2782
|
-
out_of_range?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2661
|
+
});
|
|
2662
|
+
out_of_range?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2783
2663
|
$target?: string;
|
|
2784
|
-
};
|
|
2785
|
-
required?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2664
|
+
});
|
|
2665
|
+
required?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2786
2666
|
$target?: string;
|
|
2787
|
-
};
|
|
2788
|
-
optional?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2667
|
+
});
|
|
2668
|
+
optional?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2789
2669
|
$target?: string;
|
|
2790
|
-
};
|
|
2791
|
-
user_valid?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2670
|
+
});
|
|
2671
|
+
user_valid?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2792
2672
|
$target?: string;
|
|
2793
|
-
};
|
|
2794
|
-
user_invalid?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2673
|
+
});
|
|
2674
|
+
user_invalid?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2795
2675
|
$target?: string;
|
|
2796
|
-
};
|
|
2797
|
-
dir?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2676
|
+
});
|
|
2677
|
+
dir?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2798
2678
|
$target?: string;
|
|
2799
|
-
};
|
|
2800
|
-
lang?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2679
|
+
});
|
|
2680
|
+
lang?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2801
2681
|
$target?: string;
|
|
2802
|
-
};
|
|
2803
|
-
any_link?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2682
|
+
});
|
|
2683
|
+
any_link?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2804
2684
|
$target?: string;
|
|
2805
|
-
};
|
|
2806
|
-
link?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2685
|
+
});
|
|
2686
|
+
link?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2807
2687
|
$target?: string;
|
|
2808
|
-
};
|
|
2809
|
-
visited?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2688
|
+
});
|
|
2689
|
+
visited?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2810
2690
|
$target?: string;
|
|
2811
|
-
};
|
|
2812
|
-
local_link?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2691
|
+
});
|
|
2692
|
+
local_link?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2813
2693
|
$target?: string;
|
|
2814
|
-
};
|
|
2815
|
-
target?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2694
|
+
});
|
|
2695
|
+
target?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2816
2696
|
$target?: string;
|
|
2817
|
-
};
|
|
2818
|
-
target_within?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2697
|
+
});
|
|
2698
|
+
target_within?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2819
2699
|
$target?: string;
|
|
2820
|
-
};
|
|
2821
|
-
scope?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2700
|
+
});
|
|
2701
|
+
scope?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2822
2702
|
$target?: string;
|
|
2823
|
-
};
|
|
2824
|
-
playing?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2703
|
+
});
|
|
2704
|
+
playing?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2825
2705
|
$target?: string;
|
|
2826
|
-
};
|
|
2827
|
-
paused?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2706
|
+
});
|
|
2707
|
+
paused?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2828
2708
|
$target?: string;
|
|
2829
|
-
};
|
|
2830
|
-
current?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2709
|
+
});
|
|
2710
|
+
current?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2831
2711
|
$target?: string;
|
|
2832
|
-
};
|
|
2833
|
-
past?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2712
|
+
});
|
|
2713
|
+
past?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2834
2714
|
$target?: string;
|
|
2835
|
-
};
|
|
2836
|
-
future?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2715
|
+
});
|
|
2716
|
+
future?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2837
2717
|
$target?: string;
|
|
2838
|
-
};
|
|
2839
|
-
root?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2718
|
+
});
|
|
2719
|
+
root?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2840
2720
|
$target?: string;
|
|
2841
|
-
};
|
|
2842
|
-
empty?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2721
|
+
});
|
|
2722
|
+
empty?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2843
2723
|
$target?: string;
|
|
2844
|
-
};
|
|
2845
|
-
nth_child?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2724
|
+
});
|
|
2725
|
+
nth_child?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2846
2726
|
$target?: string;
|
|
2847
|
-
};
|
|
2848
|
-
nth_last_child?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2727
|
+
});
|
|
2728
|
+
nth_last_child?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2849
2729
|
$target?: string;
|
|
2850
|
-
};
|
|
2851
|
-
first_child?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2730
|
+
});
|
|
2731
|
+
first_child?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2852
2732
|
$target?: string;
|
|
2853
|
-
};
|
|
2854
|
-
last_child?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2733
|
+
});
|
|
2734
|
+
last_child?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2855
2735
|
$target?: string;
|
|
2856
|
-
};
|
|
2857
|
-
only_child?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2736
|
+
});
|
|
2737
|
+
only_child?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2858
2738
|
$target?: string;
|
|
2859
|
-
};
|
|
2860
|
-
nth_of_type?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2739
|
+
});
|
|
2740
|
+
nth_of_type?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2861
2741
|
$target?: string;
|
|
2862
|
-
};
|
|
2863
|
-
nth_last_of_type?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2742
|
+
});
|
|
2743
|
+
nth_last_of_type?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2864
2744
|
$target?: string;
|
|
2865
|
-
};
|
|
2866
|
-
first_of_type?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2745
|
+
});
|
|
2746
|
+
first_of_type?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2867
2747
|
$target?: string;
|
|
2868
|
-
};
|
|
2869
|
-
last_of_type?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2748
|
+
});
|
|
2749
|
+
last_of_type?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2870
2750
|
$target?: string;
|
|
2871
|
-
};
|
|
2872
|
-
only_of_type?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2751
|
+
});
|
|
2752
|
+
only_of_type?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2873
2753
|
$target?: string;
|
|
2874
|
-
};
|
|
2875
|
-
active?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2754
|
+
});
|
|
2755
|
+
active?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2876
2756
|
$target?: string;
|
|
2877
|
-
};
|
|
2878
|
-
focus?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2757
|
+
});
|
|
2758
|
+
focus?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2879
2759
|
$target?: string;
|
|
2880
|
-
};
|
|
2881
|
-
focus_visible?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2760
|
+
});
|
|
2761
|
+
focus_visible?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2882
2762
|
$target?: string;
|
|
2883
|
-
};
|
|
2884
|
-
focus_within?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2763
|
+
});
|
|
2764
|
+
focus_within?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2885
2765
|
$target?: string;
|
|
2886
|
-
};
|
|
2887
|
-
hover?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2766
|
+
});
|
|
2767
|
+
hover?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2888
2768
|
$target?: string;
|
|
2889
|
-
};
|
|
2890
|
-
is?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2769
|
+
});
|
|
2770
|
+
is?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2891
2771
|
$target?: string;
|
|
2892
|
-
};
|
|
2893
|
-
not?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2772
|
+
});
|
|
2773
|
+
not?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2894
2774
|
$target?: string;
|
|
2895
|
-
};
|
|
2896
|
-
where?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2775
|
+
});
|
|
2776
|
+
where?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2897
2777
|
$target?: string;
|
|
2898
|
-
};
|
|
2899
|
-
has?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2778
|
+
});
|
|
2779
|
+
has?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2900
2780
|
$target?: string;
|
|
2901
|
-
};
|
|
2902
|
-
nth_col?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2781
|
+
});
|
|
2782
|
+
nth_col?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2903
2783
|
$target?: string;
|
|
2904
|
-
};
|
|
2905
|
-
nth_last_col?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2784
|
+
});
|
|
2785
|
+
nth_last_col?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2906
2786
|
$target?: string;
|
|
2907
|
-
};
|
|
2908
|
-
host?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2787
|
+
});
|
|
2788
|
+
host?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2909
2789
|
$target?: string;
|
|
2910
|
-
};
|
|
2911
|
-
host_context?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2790
|
+
});
|
|
2791
|
+
host_context?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2912
2792
|
$target?: string;
|
|
2913
|
-
};
|
|
2914
|
-
defined?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2793
|
+
});
|
|
2794
|
+
defined?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2915
2795
|
$target?: string;
|
|
2916
|
-
};
|
|
2917
|
-
moz_any?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2796
|
+
});
|
|
2797
|
+
moz_any?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2918
2798
|
$target?: string;
|
|
2919
|
-
};
|
|
2920
|
-
moz_any_link?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2799
|
+
});
|
|
2800
|
+
moz_any_link?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2921
2801
|
$target?: string;
|
|
2922
|
-
};
|
|
2923
|
-
moz_focusring?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2802
|
+
});
|
|
2803
|
+
moz_focusring?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2924
2804
|
$target?: string;
|
|
2925
|
-
};
|
|
2926
|
-
moz_full_screen?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2805
|
+
});
|
|
2806
|
+
moz_full_screen?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2927
2807
|
$target?: string;
|
|
2928
|
-
};
|
|
2929
|
-
moz_full_screen_ancestor?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2808
|
+
});
|
|
2809
|
+
moz_full_screen_ancestor?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2930
2810
|
$target?: string;
|
|
2931
|
-
};
|
|
2932
|
-
moz_full_screen_document?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2811
|
+
});
|
|
2812
|
+
moz_full_screen_document?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2933
2813
|
$target?: string;
|
|
2934
|
-
};
|
|
2935
|
-
moz_full_screen_element?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2814
|
+
});
|
|
2815
|
+
moz_full_screen_element?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2936
2816
|
$target?: string;
|
|
2937
|
-
};
|
|
2938
|
-
moz_full_screen_root?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2817
|
+
});
|
|
2818
|
+
moz_full_screen_root?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2939
2819
|
$target?: string;
|
|
2940
|
-
};
|
|
2941
|
-
moz_placeholder?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2820
|
+
});
|
|
2821
|
+
moz_placeholder?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2942
2822
|
$target?: string;
|
|
2943
|
-
};
|
|
2944
|
-
moz_read_only?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2823
|
+
});
|
|
2824
|
+
moz_read_only?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2945
2825
|
$target?: string;
|
|
2946
|
-
};
|
|
2947
|
-
moz_read_write?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2826
|
+
});
|
|
2827
|
+
moz_read_write?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2948
2828
|
$target?: string;
|
|
2949
|
-
};
|
|
2950
|
-
moz_submit_invalid?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2829
|
+
});
|
|
2830
|
+
moz_submit_invalid?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2951
2831
|
$target?: string;
|
|
2952
|
-
};
|
|
2953
|
-
moz_ui_invalid?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2832
|
+
});
|
|
2833
|
+
moz_ui_invalid?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2954
2834
|
$target?: string;
|
|
2955
|
-
};
|
|
2956
|
-
moz_ui_valid?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2835
|
+
});
|
|
2836
|
+
moz_ui_valid?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2957
2837
|
$target?: string;
|
|
2958
|
-
};
|
|
2959
|
-
webkit_any?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2838
|
+
});
|
|
2839
|
+
webkit_any?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2960
2840
|
$target?: string;
|
|
2961
|
-
};
|
|
2962
|
-
webkit_any_link?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2841
|
+
});
|
|
2842
|
+
webkit_any_link?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2963
2843
|
$target?: string;
|
|
2964
|
-
};
|
|
2965
|
-
webkit_autofill?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2844
|
+
});
|
|
2845
|
+
webkit_autofill?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2966
2846
|
$target?: string;
|
|
2967
|
-
};
|
|
2968
|
-
webkit_current?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2847
|
+
});
|
|
2848
|
+
webkit_current?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2969
2849
|
$target?: string;
|
|
2970
|
-
};
|
|
2971
|
-
webkit_full_screen?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2850
|
+
});
|
|
2851
|
+
webkit_full_screen?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2972
2852
|
$target?: string;
|
|
2973
|
-
};
|
|
2974
|
-
webkit_full_screen_ancestor?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2853
|
+
});
|
|
2854
|
+
webkit_full_screen_ancestor?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2975
2855
|
$target?: string;
|
|
2976
|
-
};
|
|
2977
|
-
webkit_full_screen_document?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2856
|
+
});
|
|
2857
|
+
webkit_full_screen_document?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2978
2858
|
$target?: string;
|
|
2979
|
-
};
|
|
2980
|
-
webkit_full_screen_element?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2859
|
+
});
|
|
2860
|
+
webkit_full_screen_element?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2981
2861
|
$target?: string;
|
|
2982
|
-
};
|
|
2983
|
-
webkit_full_screen_root?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2862
|
+
});
|
|
2863
|
+
webkit_full_screen_root?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2984
2864
|
$target?: string;
|
|
2985
|
-
};
|
|
2986
|
-
webkit_input_placeholder?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2865
|
+
});
|
|
2866
|
+
webkit_input_placeholder?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2987
2867
|
$target?: string;
|
|
2988
|
-
};
|
|
2989
|
-
webkit_read_only?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2868
|
+
});
|
|
2869
|
+
webkit_read_only?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2990
2870
|
$target?: string;
|
|
2991
|
-
};
|
|
2992
|
-
webkit_read_write?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2871
|
+
});
|
|
2872
|
+
webkit_read_write?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2993
2873
|
$target?: string;
|
|
2994
|
-
};
|
|
2995
|
-
webkit_scrollbar?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2874
|
+
});
|
|
2875
|
+
webkit_scrollbar?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2996
2876
|
$target?: string;
|
|
2997
|
-
};
|
|
2998
|
-
webkit_scrollbar_button?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2877
|
+
});
|
|
2878
|
+
webkit_scrollbar_button?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
2999
2879
|
$target?: string;
|
|
3000
|
-
};
|
|
3001
|
-
webkit_scrollbar_thumb?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2880
|
+
});
|
|
2881
|
+
webkit_scrollbar_thumb?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
3002
2882
|
$target?: string;
|
|
3003
|
-
};
|
|
3004
|
-
webkit_scrollbar_track?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2883
|
+
});
|
|
2884
|
+
webkit_scrollbar_track?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
3005
2885
|
$target?: string;
|
|
3006
|
-
};
|
|
3007
|
-
webkit_scrollbar_track_piece?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2886
|
+
});
|
|
2887
|
+
webkit_scrollbar_track_piece?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
3008
2888
|
$target?: string;
|
|
3009
|
-
};
|
|
3010
|
-
webkit_search_cancel_button?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2889
|
+
});
|
|
2890
|
+
webkit_search_cancel_button?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
3011
2891
|
$target?: string;
|
|
3012
|
-
};
|
|
3013
|
-
webkit_search_results_button?: CssPseudoClassesType | CssPseudoElementsType | CssLibPropsType & {
|
|
2892
|
+
});
|
|
2893
|
+
webkit_search_results_button?: CssPseudoClassesType | CssPseudoElementsType | (CssLibPropsType & {
|
|
3014
2894
|
$target?: string;
|
|
3015
|
-
};
|
|
2895
|
+
});
|
|
3016
2896
|
};
|
|
3017
2897
|
|
|
3018
|
-
declare type CssPseudoElementsType = {
|
|
2898
|
+
export declare type CssPseudoElementsType = {
|
|
3019
2899
|
before?: CssPseudoElementsType | CssPseudoClassesType | CssLibPropsType;
|
|
3020
2900
|
after?: CssPseudoElementsType | CssPseudoClassesType | CssLibPropsType;
|
|
3021
2901
|
first_letter?: CssPseudoElementsType | CssPseudoClassesType | CssLibPropsType;
|
|
@@ -3070,10 +2950,25 @@ declare type CssPseudoElementsType = {
|
|
|
3070
2950
|
meter_sub_suboptimum?: CssPseudoElementsType | CssPseudoClassesType | CssLibPropsType;
|
|
3071
2951
|
};
|
|
3072
2952
|
|
|
3073
|
-
declare type DataAttributes = {
|
|
2953
|
+
export declare type DataAttributes = {
|
|
3074
2954
|
[key in `data-${string}`]?: string;
|
|
3075
2955
|
};
|
|
3076
2956
|
|
|
2957
|
+
/**
|
|
2958
|
+
* DataTable component for displaying structured data in a table format.
|
|
2959
|
+
*
|
|
2960
|
+
* This component provides advanced table functionality including sticky columns,
|
|
2961
|
+
* scrollable content, shadow effects, and divider management. It handles complex
|
|
2962
|
+
* table behaviors automatically through internal hooks.
|
|
2963
|
+
*
|
|
2964
|
+
* @example
|
|
2965
|
+
* ```tsx
|
|
2966
|
+
* <DataTable variant="striped">
|
|
2967
|
+
* <TableHead>...</TableHead>
|
|
2968
|
+
* <TableBody>...</TableBody>
|
|
2969
|
+
* </DataTable>
|
|
2970
|
+
* ```
|
|
2971
|
+
*/
|
|
3077
2972
|
export declare const DataTable: ForwardRefExoticComponent<DataTableProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3078
2973
|
|
|
3079
2974
|
export declare type DataTableCellProps = TableCellProps & {
|
|
@@ -3203,27 +3098,125 @@ export declare type DataTableVariantStyles<Variant extends string> = DataTableSt
|
|
|
3203
3098
|
[key in Variant]: DataTableStyleProps;
|
|
3204
3099
|
};
|
|
3205
3100
|
|
|
3101
|
+
/**
|
|
3102
|
+
* Options for formatting dates using Intl.DateTimeFormat.
|
|
3103
|
+
* Provides granular control over date/time display format.
|
|
3104
|
+
*/
|
|
3206
3105
|
declare interface DateFormatOptions {
|
|
3106
|
+
/** Representation of the weekday ('long', 'short', 'narrow') */
|
|
3207
3107
|
weekday?: Intl.DateTimeFormatOptions['weekday'];
|
|
3108
|
+
/** Representation of the year ('numeric', '2-digit') */
|
|
3208
3109
|
year?: Intl.DateTimeFormatOptions['year'];
|
|
3110
|
+
/** Representation of the month ('numeric', '2-digit', 'long', 'short', 'narrow') */
|
|
3209
3111
|
month?: Intl.DateTimeFormatOptions['month'];
|
|
3112
|
+
/** Representation of the day ('numeric', '2-digit') */
|
|
3210
3113
|
day?: Intl.DateTimeFormatOptions['day'];
|
|
3114
|
+
/** Representation of the hour ('numeric', '2-digit') */
|
|
3211
3115
|
hour?: Intl.DateTimeFormatOptions['hour'];
|
|
3116
|
+
/** Representation of the minute ('numeric', '2-digit') */
|
|
3212
3117
|
minute?: Intl.DateTimeFormatOptions['minute'];
|
|
3118
|
+
/** Representation of the second ('numeric', '2-digit') */
|
|
3213
3119
|
second?: Intl.DateTimeFormatOptions['second'];
|
|
3120
|
+
/** Representation of the time zone name ('long', 'short', etc.) */
|
|
3214
3121
|
timeZoneName?: Intl.DateTimeFormatOptions['timeZoneName'];
|
|
3122
|
+
/** Whether to use 12-hour time format (true) or 24-hour format (false) */
|
|
3215
3123
|
hour12?: Intl.DateTimeFormatOptions['hour12'];
|
|
3124
|
+
/** Hour cycle to use ('h11', 'h12', 'h23', 'h24') */
|
|
3216
3125
|
hourCycle?: Intl.DateTimeFormatOptions['hourCycle'];
|
|
3217
3126
|
}
|
|
3218
3127
|
|
|
3219
|
-
declare
|
|
3128
|
+
declare interface DateFormatOptions_2 {
|
|
3129
|
+
weekday?: Intl.DateTimeFormatOptions['weekday'];
|
|
3130
|
+
year?: Intl.DateTimeFormatOptions['year'];
|
|
3131
|
+
month?: Intl.DateTimeFormatOptions['month'];
|
|
3132
|
+
day?: Intl.DateTimeFormatOptions['day'];
|
|
3133
|
+
hour?: Intl.DateTimeFormatOptions['hour'];
|
|
3134
|
+
minute?: Intl.DateTimeFormatOptions['minute'];
|
|
3135
|
+
second?: Intl.DateTimeFormatOptions['second'];
|
|
3136
|
+
timeZoneName?: Intl.DateTimeFormatOptions['timeZoneName'];
|
|
3137
|
+
hour12?: Intl.DateTimeFormatOptions['hour12'];
|
|
3138
|
+
hourCycle?: Intl.DateTimeFormatOptions['hourCycle'];
|
|
3139
|
+
}
|
|
3140
|
+
|
|
3141
|
+
/**
|
|
3142
|
+
* Default implementations for generic components.
|
|
3143
|
+
* Provides standard HTML-based Link and Image components.
|
|
3144
|
+
* These are used when the application doesn't provide custom implementations.
|
|
3145
|
+
*
|
|
3146
|
+
* @example
|
|
3147
|
+
* ```tsx
|
|
3148
|
+
* import { defaultGenericComponents } from './defaultGenericComponents';
|
|
3149
|
+
*
|
|
3150
|
+
* <GenericComponentsProvider value={defaultGenericComponents}>
|
|
3151
|
+
* <App />
|
|
3152
|
+
* </GenericComponentsProvider>
|
|
3153
|
+
* ```
|
|
3154
|
+
*/
|
|
3155
|
+
export declare const defaultGenericComponents: {
|
|
3156
|
+
IMAGE: ForwardRefExoticComponent<GenericImageProps & RefAttributes<unknown>>;
|
|
3157
|
+
LINK: ForwardRefExoticComponent< {
|
|
3158
|
+
url: string;
|
|
3159
|
+
id?: string;
|
|
3160
|
+
children: string | JSX.Element;
|
|
3161
|
+
className?: string;
|
|
3162
|
+
target?: string;
|
|
3163
|
+
onClick?: () => void;
|
|
3164
|
+
onFocus?: () => void;
|
|
3165
|
+
onMouseEnter?: () => void;
|
|
3166
|
+
onMouseLeave?: () => void;
|
|
3167
|
+
rel?: string;
|
|
3168
|
+
role?: AriaRole;
|
|
3169
|
+
dataTestId?: string;
|
|
3170
|
+
draggable?: boolean;
|
|
3171
|
+
} & {
|
|
3172
|
+
"aria-label"?: string | undefined | undefined;
|
|
3173
|
+
"aria-describedby"?: string | undefined | undefined;
|
|
3174
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
3175
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
3176
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
3177
|
+
} & DataAttributes & RefAttributes<unknown>>;
|
|
3178
|
+
};
|
|
3179
|
+
|
|
3180
|
+
export declare const DEVICE_BREAKPOINTS: {
|
|
3220
3181
|
readonly DESKTOP: "desktop";
|
|
3221
3182
|
readonly LARGE_DESKTOP: "large_desktop";
|
|
3222
3183
|
readonly MOBILE: "mobile";
|
|
3223
3184
|
readonly TABLET: "tablet";
|
|
3224
3185
|
};
|
|
3225
3186
|
|
|
3226
|
-
declare type DeviceBreakpointsType = 'mobile' | 'tablet' | 'desktop' | 'large_desktop';
|
|
3187
|
+
export declare type DeviceBreakpointsType = 'mobile' | 'tablet' | 'desktop' | 'large_desktop';
|
|
3188
|
+
|
|
3189
|
+
/**
|
|
3190
|
+
* Utility functions for checking device breakpoint types.
|
|
3191
|
+
* These helpers allow you to easily determine if a given DeviceBreakpointsType
|
|
3192
|
+
* matches a specific device category (mobile, tablet, desktop, etc).
|
|
3193
|
+
*/
|
|
3194
|
+
export declare const DeviceBreakpointsTypeUtils: {
|
|
3195
|
+
/**
|
|
3196
|
+
* Returns true if the device is a desktop device.
|
|
3197
|
+
*/
|
|
3198
|
+
isDesktop: (device: DeviceBreakpointsType) => boolean;
|
|
3199
|
+
/**
|
|
3200
|
+
* Returns true if the device is either desktop or large desktop.
|
|
3201
|
+
*/
|
|
3202
|
+
isDesktopOrLargeDesktop: (device: DeviceBreakpointsType) => boolean;
|
|
3203
|
+
/**
|
|
3204
|
+
* Returns true if the device is a large desktop device.
|
|
3205
|
+
*/
|
|
3206
|
+
isLargeDesktop: (device: DeviceBreakpointsType) => boolean;
|
|
3207
|
+
/**
|
|
3208
|
+
* Returns true if the device is a mobile device.
|
|
3209
|
+
*/
|
|
3210
|
+
isMobile: (device: DeviceBreakpointsType) => boolean;
|
|
3211
|
+
/**
|
|
3212
|
+
* Returns true if the device is either mobile or tablet.
|
|
3213
|
+
*/
|
|
3214
|
+
isMobileOrTablet: (device: DeviceBreakpointsType) => boolean;
|
|
3215
|
+
/**
|
|
3216
|
+
* Returns true if the device is a tablet device.
|
|
3217
|
+
*/
|
|
3218
|
+
isTablet: (device: DeviceBreakpointsType) => boolean;
|
|
3219
|
+
};
|
|
3227
3220
|
|
|
3228
3221
|
/**
|
|
3229
3222
|
* Dot component for displaying a small badge or counter.
|
|
@@ -3296,208 +3289,354 @@ export declare type DotThemeStyles<variant extends string, size extends string>
|
|
|
3296
3289
|
};
|
|
3297
3290
|
|
|
3298
3291
|
/**
|
|
3299
|
-
*
|
|
3300
|
-
*
|
|
3301
|
-
*
|
|
3302
|
-
*
|
|
3303
|
-
*
|
|
3292
|
+
* @name ElementOrIconProps
|
|
3293
|
+
* @description
|
|
3294
|
+
* Interface for the ElementOrIcon component
|
|
3295
|
+
* @property { JSX.Element | HTMLElement | React.ReactNode} icon - Icon to be displayed
|
|
3296
|
+
* @property {boolean} basic - If true, the icon will be displayed as a basic icon
|
|
3297
|
+
*/
|
|
3298
|
+
declare interface ElementOrIconProps extends Omit<IconProps, 'icon'>, DataAttributes {
|
|
3299
|
+
icon?: JSX.Element | HTMLElement | React.ReactNode | string;
|
|
3300
|
+
basic?: boolean;
|
|
3301
|
+
}
|
|
3302
|
+
|
|
3303
|
+
/**
|
|
3304
|
+
* ErrorMessage component for displaying error messages.
|
|
3304
3305
|
*
|
|
3305
|
-
*
|
|
3306
|
+
* This component renders a styled error message with optional icons and
|
|
3307
|
+
* customizable variants. It uses the ErrorMessageStandAlone component
|
|
3308
|
+
* for rendering with CSS classes from the design system.
|
|
3306
3309
|
*
|
|
3307
3310
|
* @example
|
|
3308
3311
|
* ```tsx
|
|
3309
|
-
* <
|
|
3312
|
+
* <ErrorMessage variant="default">
|
|
3313
|
+
* Please enter a valid email address
|
|
3314
|
+
* </ErrorMessage>
|
|
3310
3315
|
* ```
|
|
3311
3316
|
*/
|
|
3312
|
-
export declare const
|
|
3317
|
+
export declare const ErrorMessage: ForwardRefExoticComponent<Omit<ErrorMessageStandAloneProps, "styles"> & {
|
|
3318
|
+
variant?: string | undefined;
|
|
3319
|
+
additionalClasses?: Partial<{
|
|
3320
|
+
icon: string;
|
|
3321
|
+
error_message: string;
|
|
3322
|
+
typography: string;
|
|
3323
|
+
}>;
|
|
3324
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
3325
|
+
|
|
3326
|
+
declare type ErrorMessageCssClasses = ComponentSelected<ComponentsTypesComponents['ERROR_MESSAGE']>;
|
|
3327
|
+
|
|
3328
|
+
export declare type ErrorMessageProps<Variant = undefined extends string ? unknown : string> = Omit<ErrorMessageStandAloneProps, 'styles'> & {
|
|
3329
|
+
variant?: Variant;
|
|
3330
|
+
additionalClasses?: Partial<ErrorMessageCssClasses>;
|
|
3331
|
+
};
|
|
3332
|
+
|
|
3333
|
+
export declare interface ErrorMessageStandAloneProps extends Pick<AriaAttributes, 'aria-live'> {
|
|
3334
|
+
cssClasses?: ErrorMessageCssClasses;
|
|
3335
|
+
show?: boolean;
|
|
3336
|
+
message?: CommonTextProps;
|
|
3337
|
+
id?: string;
|
|
3338
|
+
icon?: CommonIconProps;
|
|
3339
|
+
}
|
|
3340
|
+
|
|
3341
|
+
export declare interface ErrorMessageStyleProps extends CssLibPropsType {
|
|
3342
|
+
_icon?: CssLibPropsType;
|
|
3343
|
+
_typography?: CssLibPropsType;
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
export declare type ErrorMessageVariantStyles<Variant extends string> = ErrorMessageStyleProps & {
|
|
3347
|
+
[key in Variant]: ErrorMessageStyleProps;
|
|
3348
|
+
};
|
|
3313
3349
|
|
|
3314
3350
|
/**
|
|
3315
|
-
*
|
|
3351
|
+
* Formats a date according to the specified format and locale.
|
|
3316
3352
|
*
|
|
3317
|
-
*
|
|
3318
|
-
*
|
|
3353
|
+
* @param date - The date to format
|
|
3354
|
+
* @param format - The format to apply: can be a string pattern (e.g., 'dd/MM/yyyy'), a DateFormatOptions object, or a FormatDateType
|
|
3355
|
+
* @param locale - The locale to use for formatting (default: current locale)
|
|
3356
|
+
* @returns The formatted date string
|
|
3319
3357
|
*
|
|
3320
|
-
*
|
|
3321
|
-
*
|
|
3358
|
+
* @remarks
|
|
3359
|
+
* Supports various tokens: d, dd (day), M, MM, MMM, MMMM (month), yy, yyyy (year), H, HH (hour), m, mm (minute), s, ss (second), W, WW (weekday)
|
|
3322
3360
|
*
|
|
3323
3361
|
* @example
|
|
3324
|
-
* ```
|
|
3325
|
-
*
|
|
3326
|
-
*
|
|
3327
|
-
*
|
|
3328
|
-
* type MyVariant = "primary" | "secondary";
|
|
3329
|
-
* <DropdownSelectedControlled<MyVariant> variant="primary" open listOptions={options} />
|
|
3362
|
+
* ```typescript
|
|
3363
|
+
* const date = new Date('2024-01-15');
|
|
3364
|
+
* formatDate(date, 'dd/MM/yyyy'); // '15/01/2024'
|
|
3365
|
+
* formatDate(date, 'MMMM dd, yyyy', 'en-US'); // 'January 15, 2024'
|
|
3330
3366
|
* ```
|
|
3331
3367
|
*/
|
|
3332
|
-
export declare const
|
|
3368
|
+
export declare const formatDate: (date: Date, format: DateFormatOptions_2 | FormatDateType | string, locale?: string) => string;
|
|
3333
3369
|
|
|
3334
3370
|
/**
|
|
3335
|
-
*
|
|
3336
|
-
* Extends the DropdownSelectedStandAloneProps interface and adds a variant and additional CSS classes.
|
|
3371
|
+
* Converts a date to UTC format, adjusting for timezone differences.
|
|
3337
3372
|
*
|
|
3338
|
-
* @
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
/**
|
|
3348
|
-
* Represents the type for the list options in the DropdownSelected component.
|
|
3373
|
+
* @param date - The date to convert (Date object, string, or timestamp)
|
|
3374
|
+
* @returns A Date object in UTC timezone
|
|
3375
|
+
* @throws Error if the date is invalid
|
|
3376
|
+
*
|
|
3377
|
+
* @example
|
|
3378
|
+
* ```typescript
|
|
3379
|
+
* const localDate = new Date('2024-01-15T10:30:00');
|
|
3380
|
+
* const utcDate = formatDateToUTC(localDate);
|
|
3381
|
+
* ```
|
|
3349
3382
|
*/
|
|
3350
|
-
export declare
|
|
3383
|
+
export declare const formatDateToUTC: (date: Date | string | number) => Date;
|
|
3351
3384
|
|
|
3352
|
-
declare type
|
|
3385
|
+
declare type FormatDateType = 'd' | 'dd' | 'ddd' | 'dddd' | 'f' | 'ff' | 'fff' | 'F' | 'FF' | 'FFF' | 'ffff' | 'FFFF' | 't' | 'tt' | 'T' | 'TT' | 'ttt' | 'TTT' | 'tttt' | 'TTTT';
|
|
3353
3386
|
|
|
3354
3387
|
/**
|
|
3355
|
-
*
|
|
3388
|
+
* Generate spring keyframes with realistic physics calculations
|
|
3389
|
+
*
|
|
3390
|
+
* Simulates real spring behavior using mathematical formulas to calculate
|
|
3391
|
+
* natural bounce animations based on stiffness, damping, and mass properties.
|
|
3356
3392
|
*/
|
|
3357
|
-
export declare
|
|
3393
|
+
export declare const generateSpringKeyframes: (direction: "up" | "down" | "left" | "right" | "fade", stiffness?: number, // How "tight" the spring is - higher = snappier animation
|
|
3394
|
+
damping?: number, // How much the spring slows down - higher = less bouncy
|
|
3395
|
+
mass?: number, // How "heavy" the element feels - higher = slower to start/stop
|
|
3396
|
+
initialDisplacement?: number, // Starting distance in pixels
|
|
3397
|
+
keyframeCount?: number, // How many animation steps to create
|
|
3398
|
+
placement?: string) => string;
|
|
3358
3399
|
|
|
3359
3400
|
/**
|
|
3360
|
-
*
|
|
3361
|
-
* Includes properties for state, event handlers, and CSS classes.
|
|
3401
|
+
* Generate a complete CSS keyframes rule with a given name
|
|
3362
3402
|
*/
|
|
3363
|
-
export declare
|
|
3364
|
-
open: boolean;
|
|
3365
|
-
popover?: DropdownSelectedPopoverProps;
|
|
3366
|
-
onButtonClick: MouseEventHandler<HTMLButtonElement | HTMLLinkElement>;
|
|
3367
|
-
onButtonKeyDown: KeyboardEventHandler<HTMLButtonElement | HTMLLinkElement>;
|
|
3368
|
-
onClosePopover: () => void;
|
|
3369
|
-
label: CommonTextProps;
|
|
3370
|
-
icon: ElementOrIconProps;
|
|
3371
|
-
listOptions: DropdownSelectedListOptionsProps;
|
|
3372
|
-
optionSelected?: string;
|
|
3373
|
-
onOptionClick: (value: string) => void;
|
|
3374
|
-
listOptionsRef: RefObject<HTMLDivElement>;
|
|
3375
|
-
closePopoverOnScroll?: boolean;
|
|
3376
|
-
openAndCloseOnHover?: boolean;
|
|
3377
|
-
url?: string;
|
|
3378
|
-
urlTarget?: HTMLAttributeAnchorTarget;
|
|
3379
|
-
component: 'button' | GenericLinkType;
|
|
3380
|
-
buttonOrLinkRef?: RefObject<HTMLButtonElement>;
|
|
3381
|
-
onFocus?: FocusEventHandler<HTMLDivElement>;
|
|
3382
|
-
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
3383
|
-
onKeyDown?: KeyboardEventHandler<HTMLDivElement>;
|
|
3384
|
-
cssClasses?: DropdownSelectedCssClasses;
|
|
3385
|
-
}
|
|
3386
|
-
|
|
3387
|
-
export declare interface DropdownSelectedStyleProps extends CssLibPropsType {
|
|
3388
|
-
_buttonOrLinkContainer?: CssLibPropsType;
|
|
3389
|
-
_labelOpened?: CssLibPropsType;
|
|
3390
|
-
_labelClosed?: CssLibPropsType;
|
|
3391
|
-
_iconOpened?: CssLibPropsType;
|
|
3392
|
-
_iconClosed?: CssLibPropsType;
|
|
3393
|
-
_listOptionsContainer?: CssLibPropsType;
|
|
3394
|
-
}
|
|
3403
|
+
export declare const generateSpringKeyframesRule: (keyframeName: string, direction: "up" | "down" | "left" | "right" | "fade", stiffness?: number, damping?: number, mass?: number, initialDisplacement?: number, keyframeCount?: number, placement?: string) => string;
|
|
3395
3404
|
|
|
3396
3405
|
/**
|
|
3397
|
-
*
|
|
3398
|
-
*
|
|
3406
|
+
* React Context for generic component implementations.
|
|
3407
|
+
* Provides access to custom Link and Image components throughout the application.
|
|
3399
3408
|
*/
|
|
3400
|
-
export declare
|
|
3401
|
-
defaultOpen?: boolean;
|
|
3402
|
-
defaultOptionSelected?: string;
|
|
3403
|
-
onOptionClick?: (value: string) => void;
|
|
3404
|
-
onButtonClick?: (open: boolean) => void;
|
|
3405
|
-
onClosePopover?: (open: boolean) => void;
|
|
3406
|
-
onMouseEnter?: (open: boolean) => void;
|
|
3407
|
-
onMouseLeave?: (open: boolean) => void;
|
|
3408
|
-
onFocus?: (open: boolean) => void;
|
|
3409
|
-
onBlur?: (open: boolean) => void;
|
|
3410
|
-
}
|
|
3411
|
-
|
|
3412
|
-
export declare type DropdownSelectedVariantStyles<Variant extends string> = DropdownSelectedStyleProps & {
|
|
3413
|
-
[key in Variant]: DropdownSelectedStyleProps;
|
|
3414
|
-
};
|
|
3409
|
+
export declare const GenericComponentContext: Context<GenericComponentsType | null>;
|
|
3415
3410
|
|
|
3416
3411
|
/**
|
|
3417
|
-
*
|
|
3418
|
-
*
|
|
3419
|
-
*
|
|
3420
|
-
*
|
|
3421
|
-
*
|
|
3412
|
+
* Provider component for custom generic component implementations.
|
|
3413
|
+
* Allows applications to inject their own Link and Image components
|
|
3414
|
+
* (e.g., Next.js Link, React Router Link) to be used by all Kubit components.
|
|
3415
|
+
*
|
|
3416
|
+
* This is essential for integrating Kubit components with different routing libraries
|
|
3417
|
+
* or custom implementations while maintaining consistent behavior across the application.
|
|
3418
|
+
*
|
|
3419
|
+
* @param props - Provider props
|
|
3420
|
+
* @param props.children - React children to be wrapped by the provider
|
|
3421
|
+
* @param props.value - Custom generic components to be used throughout the application
|
|
3422
|
+
*
|
|
3423
|
+
* @returns The provider component wrapping all child components
|
|
3424
|
+
*
|
|
3425
|
+
* @example
|
|
3426
|
+
* ```tsx
|
|
3427
|
+
* import { Link } from 'react-router-dom';
|
|
3428
|
+
*
|
|
3429
|
+
* const customComponents = {
|
|
3430
|
+
* LINK: Link,
|
|
3431
|
+
* IMAGE: CustomImage,
|
|
3432
|
+
* };
|
|
3433
|
+
*
|
|
3434
|
+
* <GenericComponentsProvider value={customComponents}>
|
|
3435
|
+
* <App />
|
|
3436
|
+
* </GenericComponentsProvider>
|
|
3437
|
+
* ```
|
|
3422
3438
|
*/
|
|
3423
|
-
declare interface ElementOrIconProps extends Omit<IconProps, 'icon'>, DataAttributes {
|
|
3424
|
-
icon?: JSX.Element | HTMLElement | React.ReactNode | string;
|
|
3425
|
-
basic?: boolean;
|
|
3426
|
-
}
|
|
3427
|
-
|
|
3428
|
-
declare type FormatDateType = 'd' | 'dd' | 'ddd' | 'dddd' | 'f' | 'ff' | 'fff' | 'F' | 'FF' | 'FFF' | 'ffff' | 'FFFF' | 't' | 'tt' | 'T' | 'TT' | 'ttt' | 'TTT' | 'tttt' | 'TTTT';
|
|
3429
|
-
|
|
3430
|
-
export declare const GenericComponentContext: Context<GenericComponentsType | null>;
|
|
3431
|
-
|
|
3432
3439
|
export declare const GenericComponentsProvider: ({ children, value, }: PropsWithChildren<GenericComponentsProviderProps>) => JSX.Element;
|
|
3433
3440
|
|
|
3434
3441
|
/**
|
|
3435
|
-
*
|
|
3436
|
-
*
|
|
3442
|
+
* Props for the GenericComponentsProvider.
|
|
3443
|
+
* Wraps the application with custom component implementations.
|
|
3437
3444
|
*/
|
|
3438
3445
|
declare interface GenericComponentsProviderProps {
|
|
3446
|
+
/** The custom generic components to be made available to child components */
|
|
3439
3447
|
value: GenericComponentsType;
|
|
3440
3448
|
}
|
|
3441
3449
|
|
|
3442
3450
|
/**
|
|
3443
|
-
*
|
|
3451
|
+
* Collection of generic component implementations.
|
|
3452
|
+
* Allows customization of primitive components used throughout the library.
|
|
3444
3453
|
*/
|
|
3445
3454
|
declare interface GenericComponentsType {
|
|
3455
|
+
/** Link component implementation (required) */
|
|
3446
3456
|
LINK: GenericLinkType;
|
|
3457
|
+
/** Image component implementation (optional) */
|
|
3447
3458
|
IMAGE?: GenericImageType;
|
|
3448
3459
|
}
|
|
3449
3460
|
|
|
3450
3461
|
/**
|
|
3451
|
-
*
|
|
3462
|
+
* Props for a generic image component.
|
|
3463
|
+
* Inherits all standard HTML image attributes.
|
|
3452
3464
|
*/
|
|
3453
3465
|
declare type GenericImageProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
3454
3466
|
|
|
3455
3467
|
/**
|
|
3456
|
-
*
|
|
3468
|
+
* Type definition for a generic image component.
|
|
3469
|
+
* Can be either a functional component or a forward ref component to support refs.
|
|
3457
3470
|
*/
|
|
3458
3471
|
declare type GenericImageType = ((props: GenericImageProps) => JSX.Element) | ForwardRefExoticComponent<GenericImageProps & RefAttributes<unknown>>;
|
|
3459
3472
|
|
|
3473
|
+
/**
|
|
3474
|
+
* Subset of ARIA attributes applicable to link elements.
|
|
3475
|
+
* Ensures proper accessibility for navigation components.
|
|
3476
|
+
*/
|
|
3460
3477
|
declare type GenericLinkAriaAttributes = Pick<AriaAttributes, 'aria-label' | 'aria-describedby' | 'aria-labelledby' | 'aria-disabled' | 'aria-current'>;
|
|
3461
3478
|
|
|
3462
3479
|
/**
|
|
3463
|
-
*
|
|
3464
|
-
*
|
|
3465
|
-
*
|
|
3466
|
-
* @property {string} [className] - Optional CSS class for styling.
|
|
3467
|
-
* @property {string} [target] - Specifies where to open the linked document.
|
|
3468
|
-
* @property {boolean} [aria-disabled] - Indicates that the element is perceivable but disabled.
|
|
3469
|
-
* @property {string} [aria-label] - Defines a string value that labels the current element.
|
|
3470
|
-
* @property {string} [aria-describedby] - Defines a string value that labels the current element.
|
|
3471
|
-
* @property {string} [aria-current] - Defines value for the current element.
|
|
3472
|
-
* @property {() => void} [onClick] - Function to call when the link is clicked.
|
|
3473
|
-
* @property {() => void} [onFocus] - Function to call when the link is focused.
|
|
3474
|
-
* @property {() => void} [onMouseEnter] - Function to call when the mouse enters the link area.
|
|
3475
|
-
* @property {() => void} [onMouseLeave] - Function to call when the mouse leaves the link area.
|
|
3476
|
-
* @property {ROLES} [role] - ARIA role to describe the link's type.
|
|
3477
|
-
* @property {string} [dataTestId] - Test ID for testing purposes.
|
|
3478
|
-
* @property {boolean} [draggable] - Indicates whether the element can be dragged.
|
|
3480
|
+
* Props for a generic link component.
|
|
3481
|
+
* Provides a flexible interface for custom link implementations that can be used
|
|
3482
|
+
* throughout the component library (e.g., for React Router, Next.js Link, etc.).
|
|
3479
3483
|
*/
|
|
3480
3484
|
declare type GenericLinkProps = {
|
|
3485
|
+
/** The destination URL for the link */
|
|
3481
3486
|
url: string;
|
|
3487
|
+
/** Optional unique identifier for the link element */
|
|
3482
3488
|
id?: string;
|
|
3489
|
+
/** Content to be displayed inside the link */
|
|
3483
3490
|
children: string | JSX.Element;
|
|
3491
|
+
/** Optional CSS class name(s) for styling */
|
|
3484
3492
|
className?: string;
|
|
3493
|
+
/** Specifies where to open the linked document ('_blank', '_self', '_parent', '_top') */
|
|
3485
3494
|
target?: string;
|
|
3495
|
+
/** Callback function invoked when the link is clicked */
|
|
3486
3496
|
onClick?: () => void;
|
|
3497
|
+
/** Callback function invoked when the link receives focus */
|
|
3487
3498
|
onFocus?: () => void;
|
|
3499
|
+
/** Callback function invoked when the mouse pointer enters the link area */
|
|
3488
3500
|
onMouseEnter?: () => void;
|
|
3501
|
+
/** Callback function invoked when the mouse pointer leaves the link area */
|
|
3489
3502
|
onMouseLeave?: () => void;
|
|
3503
|
+
/** Relationship between the current document and the linked document */
|
|
3490
3504
|
rel?: string;
|
|
3505
|
+
/** ARIA role to override the default link role if needed */
|
|
3491
3506
|
role?: AriaRole;
|
|
3507
|
+
/** Test ID for automated testing purposes */
|
|
3492
3508
|
dataTestId?: string;
|
|
3509
|
+
/** Whether the element can be dragged */
|
|
3493
3510
|
draggable?: boolean;
|
|
3494
3511
|
} & GenericLinkAriaAttributes & DataAttributes;
|
|
3495
3512
|
|
|
3496
3513
|
/**
|
|
3497
|
-
*
|
|
3514
|
+
* Type definition for a generic link component.
|
|
3515
|
+
* Can be either a functional component or a forward ref component to support refs.
|
|
3498
3516
|
*/
|
|
3499
3517
|
declare type GenericLinkType = ((props: GenericLinkProps) => JSX.Element) | ForwardRefExoticComponent<GenericLinkProps & RefAttributes<unknown>>;
|
|
3500
3518
|
|
|
3519
|
+
/**
|
|
3520
|
+
* Adds a specified number of days to a date.
|
|
3521
|
+
*
|
|
3522
|
+
* @param date - The base date
|
|
3523
|
+
* @param days - Number of days to add
|
|
3524
|
+
* @returns A new Date with the specified days added
|
|
3525
|
+
*
|
|
3526
|
+
* @example
|
|
3527
|
+
* ```typescript
|
|
3528
|
+
* const today = new Date();
|
|
3529
|
+
* const nextWeek = getAddDays(today, 7);
|
|
3530
|
+
* ```
|
|
3531
|
+
*/
|
|
3532
|
+
export declare const getAddDays: (date: Date, days: number) => Date;
|
|
3533
|
+
|
|
3534
|
+
/**
|
|
3535
|
+
* Adds a specified number of months to a date.
|
|
3536
|
+
*
|
|
3537
|
+
* @param date - The base date
|
|
3538
|
+
* @param months - Number of months to add
|
|
3539
|
+
* @returns A new Date with the specified months added
|
|
3540
|
+
*
|
|
3541
|
+
* @example
|
|
3542
|
+
* ```typescript
|
|
3543
|
+
* const today = new Date();
|
|
3544
|
+
* const nextQuarter = getAddMonths(today, 3);
|
|
3545
|
+
* ```
|
|
3546
|
+
*/
|
|
3547
|
+
export declare const getAddMonths: (date: Date, months: number) => Date;
|
|
3548
|
+
|
|
3549
|
+
/**
|
|
3550
|
+
* Adds a specified number of years to a date.
|
|
3551
|
+
*
|
|
3552
|
+
* @param date - The base date
|
|
3553
|
+
* @param years - Number of years to add
|
|
3554
|
+
* @returns A new Date with the specified years added
|
|
3555
|
+
*
|
|
3556
|
+
* @example
|
|
3557
|
+
* ```typescript
|
|
3558
|
+
* const today = new Date();
|
|
3559
|
+
* const nextYear = getAddYears(today, 1);
|
|
3560
|
+
* ```
|
|
3561
|
+
*/
|
|
3562
|
+
export declare const getAddYears: (date: Date, years: number) => Date;
|
|
3563
|
+
|
|
3564
|
+
/**
|
|
3565
|
+
* Gets an array of all month names in the specified locale and format.
|
|
3566
|
+
*
|
|
3567
|
+
* @param type - The format type: 'long' (January), 'short' (Jan), or 'narrow' (J)
|
|
3568
|
+
* @param locale - The locale to use for month names (default: 'en-US')
|
|
3569
|
+
* @returns An array of 12 month names
|
|
3570
|
+
*
|
|
3571
|
+
* @example
|
|
3572
|
+
* ```typescript
|
|
3573
|
+
* getAllMonthNames('long', 'en-US'); // ['January', 'February', ...]
|
|
3574
|
+
* getAllMonthNames('short', 'es-ES'); // ['ene', 'feb', ...]
|
|
3575
|
+
* ```
|
|
3576
|
+
*/
|
|
3577
|
+
export declare const getAllMonthNames: (type?: "long" | "short" | "narrow", locale?: string) => string[];
|
|
3578
|
+
|
|
3579
|
+
/**
|
|
3580
|
+
* Gets an array of all weekday names in the specified locale and format.
|
|
3581
|
+
*
|
|
3582
|
+
* @param type - The format type: 'long' (Monday), 'short' (Mon), or 'narrow' (M)
|
|
3583
|
+
* @param isSundayFirst - If `true`, starts week with Sunday; if `false`, starts with Monday
|
|
3584
|
+
* @param locale - The locale to use for weekday names (default: 'en-US')
|
|
3585
|
+
* @returns An array of 7 weekday names
|
|
3586
|
+
*
|
|
3587
|
+
* @example
|
|
3588
|
+
* ```typescript
|
|
3589
|
+
* getAllWeekdayNames('long', false, 'en-US'); // ['Monday', 'Tuesday', ...]
|
|
3590
|
+
* getAllWeekdayNames('short', true, 'es-ES'); // ['dom', 'lun', ...]
|
|
3591
|
+
* ```
|
|
3592
|
+
*/
|
|
3593
|
+
export declare const getAllWeekdayNames: (type: string | undefined, isSundayFirst: boolean, locale?: string) => string[];
|
|
3594
|
+
|
|
3595
|
+
/**
|
|
3596
|
+
* Subtracts a specified number of days from a date.
|
|
3597
|
+
*
|
|
3598
|
+
* @param date - The base date
|
|
3599
|
+
* @param days - Number of days to subtract
|
|
3600
|
+
* @returns A new Date with the specified days subtracted
|
|
3601
|
+
*
|
|
3602
|
+
* @example
|
|
3603
|
+
* ```typescript
|
|
3604
|
+
* const today = new Date();
|
|
3605
|
+
* const lastWeek = getSubDays(today, 7);
|
|
3606
|
+
* ```
|
|
3607
|
+
*/
|
|
3608
|
+
export declare const getSubDays: (date: Date, days: number) => Date;
|
|
3609
|
+
|
|
3610
|
+
/**
|
|
3611
|
+
* Subtracts a specified number of months from a date.
|
|
3612
|
+
*
|
|
3613
|
+
* @param date - The base date
|
|
3614
|
+
* @param months - Number of months to subtract
|
|
3615
|
+
* @returns A new Date with the specified months subtracted
|
|
3616
|
+
*
|
|
3617
|
+
* @example
|
|
3618
|
+
* ```typescript
|
|
3619
|
+
* const today = new Date();
|
|
3620
|
+
* const lastQuarter = getSubMonths(today, 3);
|
|
3621
|
+
* ```
|
|
3622
|
+
*/
|
|
3623
|
+
export declare const getSubMonths: (date: Date, months: number) => Date;
|
|
3624
|
+
|
|
3625
|
+
/**
|
|
3626
|
+
* Subtracts a specified number of years from a date.
|
|
3627
|
+
*
|
|
3628
|
+
* @param date - The base date
|
|
3629
|
+
* @param years - Number of years to subtract
|
|
3630
|
+
* @returns A new Date with the specified years subtracted
|
|
3631
|
+
*
|
|
3632
|
+
* @example
|
|
3633
|
+
* ```typescript
|
|
3634
|
+
* const today = new Date();
|
|
3635
|
+
* const lastYear = getSubYears(today, 1);
|
|
3636
|
+
* ```
|
|
3637
|
+
*/
|
|
3638
|
+
export declare const getSubYears: (date: Date, years: number) => Date;
|
|
3639
|
+
|
|
3501
3640
|
/**
|
|
3502
3641
|
* Interface for controlled Accordion component
|
|
3503
3642
|
*/
|
|
@@ -3651,10 +3790,6 @@ export declare interface IconStyleProps extends CssLibPropsType {
|
|
|
3651
3790
|
|
|
3652
3791
|
export declare type IImage = ImageStandAloneProps;
|
|
3653
3792
|
|
|
3654
|
-
declare interface IInputLabelProps {
|
|
3655
|
-
variant?: string;
|
|
3656
|
-
}
|
|
3657
|
-
|
|
3658
3793
|
/**
|
|
3659
3794
|
* A flexible image component that supports generic customization.
|
|
3660
3795
|
*
|
|
@@ -3714,6 +3849,23 @@ export declare interface ImageStyleProps {
|
|
|
3714
3849
|
width?: string;
|
|
3715
3850
|
}
|
|
3716
3851
|
|
|
3852
|
+
/**
|
|
3853
|
+
* Input component for text input fields.
|
|
3854
|
+
*
|
|
3855
|
+
* This component provides a styled text input with support for labels, helper text,
|
|
3856
|
+
* error messages, icons, and various states (disabled, error, success). It manages
|
|
3857
|
+
* focus state internally and applies appropriate styling.
|
|
3858
|
+
*
|
|
3859
|
+
* @example
|
|
3860
|
+
* ```tsx
|
|
3861
|
+
* <Input
|
|
3862
|
+
* label="Email"
|
|
3863
|
+
* type="email"
|
|
3864
|
+
* placeholder="Enter your email"
|
|
3865
|
+
* error="Invalid email"
|
|
3866
|
+
* />
|
|
3867
|
+
* ```
|
|
3868
|
+
*/
|
|
3717
3869
|
export declare const Input: ForwardRefExoticComponent<InputProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3718
3870
|
|
|
3719
3871
|
declare type InputActionsProps = Pick<DOMAttributes<HTMLInputElement>, 'onBlur' | 'onChange'>;
|
|
@@ -3722,6 +3874,23 @@ export declare type InputActionsType = Pick<DOMAttributes<HTMLInputElement>, 'on
|
|
|
3722
3874
|
|
|
3723
3875
|
declare type InputActionsType_2 = Pick<DOMAttributes<HTMLInputElement>, 'onBlur' | 'onChange'>;
|
|
3724
3876
|
|
|
3877
|
+
/**
|
|
3878
|
+
* InputBase component for basic text input functionality.
|
|
3879
|
+
*
|
|
3880
|
+
* This is a low-level input component that provides the foundation for more
|
|
3881
|
+
* complex input components. It manages states (focused, filled, error, disabled)
|
|
3882
|
+
* and applies appropriate styling and ARIA attributes.
|
|
3883
|
+
*
|
|
3884
|
+
* @example
|
|
3885
|
+
* ```tsx
|
|
3886
|
+
* <InputBase
|
|
3887
|
+
* placeholder="Enter text"
|
|
3888
|
+
* error={hasError}
|
|
3889
|
+
* filled={!!value}
|
|
3890
|
+
* focused={isFocused}
|
|
3891
|
+
* />
|
|
3892
|
+
* ```
|
|
3893
|
+
*/
|
|
3725
3894
|
export declare const InputBase: ForwardRefExoticComponent<InputBaseProps<string> & RefAttributes<HTMLInputElement>>;
|
|
3726
3895
|
|
|
3727
3896
|
export declare type InputBaseActionsType = Pick<DOMAttributes<HTMLInputElement>, 'onKeyDown' | 'onFocus' | 'onBlur' | 'onPaste' | 'onCopy'>;
|
|
@@ -3777,6 +3946,24 @@ export declare type InputBaseVariantStyles<Variant extends string> = CssLibProps
|
|
|
3777
3946
|
|
|
3778
3947
|
declare type InputCssClasses = ComponentSelected<ComponentsTypesComponents['INPUT']>;
|
|
3779
3948
|
|
|
3949
|
+
/**
|
|
3950
|
+
* InputDecoration component for wrapping and decorating input fields.
|
|
3951
|
+
*
|
|
3952
|
+
* This component provides a styled container for input elements with support
|
|
3953
|
+
* for labels, icons, helper text, and various visual states. It manages the
|
|
3954
|
+
* state representation (focused, filled, error, disabled) for consistent styling.
|
|
3955
|
+
*
|
|
3956
|
+
* @example
|
|
3957
|
+
* ```tsx
|
|
3958
|
+
* <InputDecoration
|
|
3959
|
+
* label="Email"
|
|
3960
|
+
* error={hasError}
|
|
3961
|
+
* helperText="Enter a valid email"
|
|
3962
|
+
* >
|
|
3963
|
+
* <input type="email" />
|
|
3964
|
+
* </InputDecoration>
|
|
3965
|
+
* ```
|
|
3966
|
+
*/
|
|
3780
3967
|
export declare const InputDecoration: ForwardRefExoticComponent<InputDecorationProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3781
3968
|
|
|
3782
3969
|
declare type InputDecorationCssClasses = ComponentSelected<ComponentsTypesComponents['INPUT_DECORATION']>;
|
|
@@ -3804,7 +3991,7 @@ export declare interface InputDecorationProps<Variant = undefined extends string
|
|
|
3804
3991
|
*/
|
|
3805
3992
|
export declare interface InputDecorationStandAloneProps extends DataAttributes {
|
|
3806
3993
|
disabled?: boolean;
|
|
3807
|
-
decoration?:
|
|
3994
|
+
decoration?: CommonIconProps;
|
|
3808
3995
|
cssClasses?: InputDecorationCssClasses;
|
|
3809
3996
|
component?: React.ElementType;
|
|
3810
3997
|
}
|
|
@@ -3830,8 +4017,43 @@ export declare interface InputProps<Variant = undefined extends string ? unknown
|
|
|
3830
4017
|
additionalClasses?: Partial<InputCssClasses>;
|
|
3831
4018
|
}
|
|
3832
4019
|
|
|
4020
|
+
/**
|
|
4021
|
+
* InputSignatureUnControlled component with internal signature management.
|
|
4022
|
+
*
|
|
4023
|
+
* This component provides a canvas-based signature capture that manages its own
|
|
4024
|
+
* state internally. It handles drawing, clearing, and state updates automatically.
|
|
4025
|
+
* Exposes methods via ref for resetting the signature canvas.
|
|
4026
|
+
*
|
|
4027
|
+
* @example
|
|
4028
|
+
* ```tsx
|
|
4029
|
+
* const signatureRef = useRef();
|
|
4030
|
+
*
|
|
4031
|
+
* <InputSignatureUnControlled
|
|
4032
|
+
* ref={signatureRef}
|
|
4033
|
+
* onChange={(dataUrl) => console.log(dataUrl)}
|
|
4034
|
+
* />
|
|
4035
|
+
*
|
|
4036
|
+
* // Reset signature: signatureRef.current.reset()
|
|
4037
|
+
* ```
|
|
4038
|
+
*/
|
|
3833
4039
|
export declare const InputSignature: ForwardRefExoticComponent<InputSignatureUnControlledProps<string> & RefAttributes<InputSignatureCustomHandle | undefined>>;
|
|
3834
4040
|
|
|
4041
|
+
/**
|
|
4042
|
+
* InputSignatureControlled component for capturing handwritten signatures.
|
|
4043
|
+
*
|
|
4044
|
+
* This component provides a canvas-based signature capture interface where
|
|
4045
|
+
* signature style (color, line width) is controlled externally. It's useful
|
|
4046
|
+
* for forms requiring user signatures.
|
|
4047
|
+
*
|
|
4048
|
+
* @example
|
|
4049
|
+
* ```tsx
|
|
4050
|
+
* <InputSignatureControlled
|
|
4051
|
+
* signatureStyle={{ color: '#000000', lineWidth: 2 }}
|
|
4052
|
+
* setSignatureStyles={(style) => console.log(style)}
|
|
4053
|
+
* onSignatureChange={(dataUrl) => setSignature(dataUrl)}
|
|
4054
|
+
* />
|
|
4055
|
+
* ```
|
|
4056
|
+
*/
|
|
3835
4057
|
export declare const InputSignatureControlled: ForwardRefExoticComponent<InputSignatureControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3836
4058
|
|
|
3837
4059
|
/**
|
|
@@ -3908,7 +4130,6 @@ export declare interface InputStandAloneProps extends DataAttributes, Omit<Input
|
|
|
3908
4130
|
required?: boolean;
|
|
3909
4131
|
rightDecoration?: InputDecorationProps;
|
|
3910
4132
|
leftDecoration?: InputDecorationProps;
|
|
3911
|
-
label?: IInputLabelProps;
|
|
3912
4133
|
/** Value to perform truncation logic */
|
|
3913
4134
|
truncate?: boolean;
|
|
3914
4135
|
/** HTML Standard attribute to focus automatically
|
|
@@ -4024,6 +4245,55 @@ declare interface IPopoverStandAlone extends DataAttributes, PopoverAriaAttribut
|
|
|
4024
4245
|
popoverContainerRef?: React.ForwardedRef<HTMLElement>;
|
|
4025
4246
|
}
|
|
4026
4247
|
|
|
4248
|
+
/**
|
|
4249
|
+
* Checks if the first date is after the second date.
|
|
4250
|
+
*
|
|
4251
|
+
* @param date1 - The first date to compare
|
|
4252
|
+
* @param date2 - The second date to compare
|
|
4253
|
+
* @returns `true` if date1 is after date2, otherwise `false`
|
|
4254
|
+
*
|
|
4255
|
+
* @example
|
|
4256
|
+
* ```typescript
|
|
4257
|
+
* const today = new Date();
|
|
4258
|
+
* const tomorrow = new Date(today.getTime() + 86400000);
|
|
4259
|
+
* isAfter(tomorrow, today); // true
|
|
4260
|
+
* ```
|
|
4261
|
+
*/
|
|
4262
|
+
export declare const isAfter: (date1: Date, date2: Date) => boolean;
|
|
4263
|
+
|
|
4264
|
+
/**
|
|
4265
|
+
* Checks if the first date is before the second date.
|
|
4266
|
+
*
|
|
4267
|
+
* @param date1 - The first date to compare
|
|
4268
|
+
* @param date2 - The second date to compare
|
|
4269
|
+
* @returns `true` if date1 is before date2, otherwise `false`
|
|
4270
|
+
*
|
|
4271
|
+
* @example
|
|
4272
|
+
* ```typescript
|
|
4273
|
+
* const yesterday = new Date();
|
|
4274
|
+
* const today = new Date();
|
|
4275
|
+
* isBefore(yesterday, today); // true
|
|
4276
|
+
* ```
|
|
4277
|
+
*/
|
|
4278
|
+
export declare const isBefore: (date1: Date, date2: Date) => boolean;
|
|
4279
|
+
|
|
4280
|
+
/**
|
|
4281
|
+
* Checks if two dates are equal.
|
|
4282
|
+
*
|
|
4283
|
+
* @param firstDate - The first date to compare (Date, string, or timestamp)
|
|
4284
|
+
* @param secondDate - The second date to compare (Date, string, or timestamp)
|
|
4285
|
+
* @param shouldCompareTime - If `true`, compares exact time; if `false`, compares only date (default: `false`)
|
|
4286
|
+
* @returns `true` if dates are equal, otherwise `false`
|
|
4287
|
+
*
|
|
4288
|
+
* @example
|
|
4289
|
+
* ```typescript
|
|
4290
|
+
* const date1 = new Date('2024-01-15');
|
|
4291
|
+
* const date2 = new Date('2024-01-15');
|
|
4292
|
+
* isDatesEqual(date1, date2); // true
|
|
4293
|
+
* ```
|
|
4294
|
+
*/
|
|
4295
|
+
export declare const isDatesEqual: (firstDate: Date | string | number, secondDate: Date | string | number, shouldCompareTime?: boolean) => boolean;
|
|
4296
|
+
|
|
4027
4297
|
declare interface ISnackbarStandAlone extends DataAttributes, AriaAttributes {
|
|
4028
4298
|
cssClasses?: SnackbarV2CssClasses;
|
|
4029
4299
|
popover?: SnackbarV2Popover;
|
|
@@ -4043,17 +4313,17 @@ export declare interface ISnackbarV2 extends Omit<ISnackbarStandAlone, 'onMouseE
|
|
|
4043
4313
|
|
|
4044
4314
|
declare type keyMoveType = number | ((previous: number, e?: KeyboardEvent) => number) | null;
|
|
4045
4315
|
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4316
|
+
/**
|
|
4317
|
+
* LabelStandAlone component renders an accessible label element with optional required indicator.
|
|
4318
|
+
*
|
|
4319
|
+
* @component
|
|
4320
|
+
* @example
|
|
4321
|
+
* ```tsx
|
|
4322
|
+
* <LabelStandAlone inputId="email" required requiredSymbol="*">
|
|
4323
|
+
* Email Address
|
|
4324
|
+
* </LabelStandAlone>
|
|
4325
|
+
* ```
|
|
4326
|
+
*/
|
|
4057
4327
|
export declare const Label: ForwardRefExoticComponent<LabelStandAloneProps & RefAttributes<HTMLParagraphElement>>;
|
|
4058
4328
|
|
|
4059
4329
|
/**
|
|
@@ -4185,6 +4455,21 @@ export declare type LinkVariantStyles<Variant extends string> = LinkStylesProps
|
|
|
4185
4455
|
[key in Variant]?: LinkStylesProps;
|
|
4186
4456
|
};
|
|
4187
4457
|
|
|
4458
|
+
/**
|
|
4459
|
+
* ListOptions component for displaying a list of selectable options.
|
|
4460
|
+
*
|
|
4461
|
+
* This component renders a list container for options/items, commonly used
|
|
4462
|
+
* in dropdowns, select menus, or autocomplete interfaces. It manages styling
|
|
4463
|
+
* and provides a consistent container for option elements.
|
|
4464
|
+
*
|
|
4465
|
+
* @example
|
|
4466
|
+
* ```tsx
|
|
4467
|
+
* <ListOptions variant="default">
|
|
4468
|
+
* <Option>Option 1</Option>
|
|
4469
|
+
* <Option>Option 2</Option>
|
|
4470
|
+
* </ListOptions>
|
|
4471
|
+
* ```
|
|
4472
|
+
*/
|
|
4188
4473
|
export declare const ListOptions: ForwardRefExoticComponent<ListOptionsProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4189
4474
|
|
|
4190
4475
|
/**
|
|
@@ -4232,7 +4517,7 @@ export declare interface ListOptionsStandAloneProps extends DataAttributes {
|
|
|
4232
4517
|
content?: React.ReactNode;
|
|
4233
4518
|
onOptionClick?: (value: string, event: React.KeyboardEvent<HTMLDivElement> | React.MouseEvent<HTMLDivElement>) => void;
|
|
4234
4519
|
multiSelect?: boolean;
|
|
4235
|
-
checkedIcon?:
|
|
4520
|
+
checkedIcon?: CommonIconProps;
|
|
4236
4521
|
id?: string;
|
|
4237
4522
|
roveFocus?: UseRoveFocusProps;
|
|
4238
4523
|
index?: number;
|
|
@@ -4252,138 +4537,56 @@ export declare type ListOptionsVariantStyles<Variant extends string> = ListOptio
|
|
|
4252
4537
|
[key in Variant]: ListOptionsStyleProps;
|
|
4253
4538
|
};
|
|
4254
4539
|
|
|
4540
|
+
/**
|
|
4541
|
+
* Media query strings for targeting specific screen size ranges.
|
|
4542
|
+
* Built from the provided breakpoints configuration.
|
|
4543
|
+
*/
|
|
4255
4544
|
declare interface MediaQueries {
|
|
4545
|
+
/** Media query for mobile devices only (below md breakpoint) */
|
|
4256
4546
|
onlyMobile: string;
|
|
4547
|
+
/** Media query for tablets only (between md and lg breakpoints) */
|
|
4257
4548
|
onlyTablet: string;
|
|
4549
|
+
/** Media query for desktops (below xl breakpoint) */
|
|
4258
4550
|
onlyDesktop: string;
|
|
4551
|
+
/** Media query for large desktops (xl breakpoint and above) */
|
|
4259
4552
|
onlyLargeDesktop: string;
|
|
4260
4553
|
}
|
|
4261
4554
|
|
|
4262
|
-
export declare const Message: ForwardRefExoticComponent<MessageUnControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4263
|
-
|
|
4264
|
-
/**
|
|
4265
|
-
* Represents the type for the action button in the Message component.
|
|
4266
|
-
*/
|
|
4267
|
-
export declare type MessageActionButtonProps = Omit<ButtonProps, 'children' | 'size'> & {
|
|
4268
|
-
content?: React.ReactNode;
|
|
4269
|
-
size?: string;
|
|
4270
|
-
};
|
|
4271
|
-
|
|
4272
4555
|
/**
|
|
4273
|
-
*
|
|
4556
|
+
* Options for middleware configuration in the popover
|
|
4274
4557
|
*/
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4558
|
+
declare interface MiddlewareOptions {
|
|
4559
|
+
offsetDistance?: [number, number];
|
|
4560
|
+
edgePadding?: number;
|
|
4561
|
+
hideWhenDetached?: boolean;
|
|
4279
4562
|
}
|
|
4280
4563
|
|
|
4281
|
-
export declare const
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
export declare type MessageExtraActionButtonProps = Omit<ButtonProps, 'children'> & {
|
|
4289
|
-
content?: React.ReactNode;
|
|
4290
|
-
};
|
|
4291
|
-
|
|
4292
|
-
/**
|
|
4293
|
-
* Represents the type for the link in the Message component.
|
|
4294
|
-
*/
|
|
4295
|
-
export declare type MessageLinkProps = Omit<LinkProps, 'children'> & {
|
|
4296
|
-
content?: string;
|
|
4564
|
+
export declare const MIRROR_POSITIONS: {
|
|
4565
|
+
bottom: "top";
|
|
4566
|
+
"bottom-center": "top-center";
|
|
4567
|
+
left: "right";
|
|
4568
|
+
right: "left";
|
|
4569
|
+
top: "bottom";
|
|
4570
|
+
"top-center": "bottom-center";
|
|
4297
4571
|
};
|
|
4298
4572
|
|
|
4299
4573
|
/**
|
|
4300
|
-
*
|
|
4301
|
-
* Extends the MessageStandAloneProps interface and adds a variant and additional CSS classes.
|
|
4574
|
+
* ModalUnControlled component with internal state management.
|
|
4302
4575
|
*
|
|
4303
|
-
*
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
open: boolean;
|
|
4307
|
-
variant?: Variant;
|
|
4308
|
-
additionalClasses?: Partial<MessageCssClasses>;
|
|
4309
|
-
}
|
|
4310
|
-
|
|
4311
|
-
/**
|
|
4312
|
-
* Interface for the standalone Message component.
|
|
4313
|
-
* Includes properties for icons, buttons, links, tags, and CSS classes.
|
|
4314
|
-
*/
|
|
4315
|
-
export declare interface MessageStandAloneProps extends DataAttributes {
|
|
4316
|
-
linkComponent: GenericLinkType;
|
|
4317
|
-
messageContainerProps?: MessageContainerAsLinkProps;
|
|
4318
|
-
titleAndContentContainerProps?: MessageContainerAsLinkProps;
|
|
4319
|
-
titleAndContentRole?: AriaRole;
|
|
4320
|
-
infoIcon?: ElementOrIconProps;
|
|
4321
|
-
actionButton?: MessageActionButtonProps;
|
|
4322
|
-
extraActionButton?: MessageExtraActionButtonProps;
|
|
4323
|
-
content: CommonTextProps;
|
|
4324
|
-
inlineLink?: MessageLinkProps;
|
|
4325
|
-
title?: CommonTextProps;
|
|
4326
|
-
tag?: MessageTagProps;
|
|
4327
|
-
ariaMessageId?: string;
|
|
4328
|
-
closeIcon?: ElementOrIconProps;
|
|
4329
|
-
maxContentLength?: number;
|
|
4330
|
-
open: boolean;
|
|
4331
|
-
role?: React.AriaRole;
|
|
4332
|
-
id?: string;
|
|
4333
|
-
ariaLive?: AriaAttributes['aria-live'];
|
|
4334
|
-
links?: MessageLinkProps[];
|
|
4335
|
-
cssClasses?: MessageCssClasses;
|
|
4336
|
-
}
|
|
4337
|
-
|
|
4338
|
-
export declare interface MessageStyleProps extends CssLibPropsType {
|
|
4339
|
-
_container?: CssLibPropsType;
|
|
4340
|
-
_headerContainer?: CssLibPropsType;
|
|
4341
|
-
_headerContainerLargeMessage?: CssLibPropsType;
|
|
4342
|
-
_title?: CssLibPropsType;
|
|
4343
|
-
_titleContainer?: CssLibPropsType;
|
|
4344
|
-
_contentContainer?: CssLibPropsType;
|
|
4345
|
-
_contentContainerLargeMessage?: CssLibPropsType;
|
|
4346
|
-
_description?: CssLibPropsType;
|
|
4347
|
-
_infoIcon?: CssLibPropsType;
|
|
4348
|
-
_closeIcon?: CssLibPropsType;
|
|
4349
|
-
_buttonSectionContainer?: CssLibPropsType;
|
|
4350
|
-
_actionButtonContainer?: CssLibPropsType;
|
|
4351
|
-
_extraActionButtonContainer?: CssLibPropsType;
|
|
4352
|
-
_illustration?: CssLibPropsType;
|
|
4353
|
-
_linkContainer?: CssLibPropsType;
|
|
4354
|
-
_linksContainer?: CssLibPropsType;
|
|
4355
|
-
}
|
|
4356
|
-
|
|
4357
|
-
/**
|
|
4358
|
-
* Represents the type for the tag in the Message component.
|
|
4359
|
-
*/
|
|
4360
|
-
export declare type MessageTagProps = Omit<TagProps, 'children'> & {
|
|
4361
|
-
content: string;
|
|
4362
|
-
};
|
|
4363
|
-
|
|
4364
|
-
/**
|
|
4365
|
-
* Interface for the uncontrolled Message component.
|
|
4366
|
-
* Extends the MessageProps interface and omits specific properties.
|
|
4576
|
+
* This component renders a modal that manages its own open/close state internally.
|
|
4577
|
+
* It automatically syncs with prop changes and handles keyboard interactions.
|
|
4578
|
+
* Useful when you don't need external control over the modal's visibility.
|
|
4367
4579
|
*
|
|
4368
|
-
* @
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
}
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
/**
|
|
4379
|
-
* Options for middleware configuration in the popover
|
|
4580
|
+
* @example
|
|
4581
|
+
* ```tsx
|
|
4582
|
+
* <ModalUnControlled
|
|
4583
|
+
* open={true}
|
|
4584
|
+
* onClose={() => console.log('closed')}
|
|
4585
|
+
* >
|
|
4586
|
+
* Modal content
|
|
4587
|
+
* </ModalUnControlled>
|
|
4588
|
+
* ```
|
|
4380
4589
|
*/
|
|
4381
|
-
declare interface MiddlewareOptions {
|
|
4382
|
-
offsetDistance?: [number, number];
|
|
4383
|
-
edgePadding?: number;
|
|
4384
|
-
hideWhenDetached?: boolean;
|
|
4385
|
-
}
|
|
4386
|
-
|
|
4387
4590
|
export declare const Modal: ForwardRefExoticComponent<ModalUnControlledProps<string | undefined> & {
|
|
4388
4591
|
children?: ReactNode | undefined;
|
|
4389
4592
|
} & RefAttributes<HTMLDivElement>>;
|
|
@@ -4404,6 +4607,24 @@ export declare interface ModalContentContainerProps extends Pick<AriaAttributes,
|
|
|
4404
4607
|
role?: string;
|
|
4405
4608
|
}
|
|
4406
4609
|
|
|
4610
|
+
/**
|
|
4611
|
+
* ModalControlled component for displaying overlay dialogs.
|
|
4612
|
+
*
|
|
4613
|
+
* This component manages modal visibility externally through props. It provides
|
|
4614
|
+
* scroll detection, swipe-down gestures, focus management, and portal rendering.
|
|
4615
|
+
* Use this when you need full control over the modal's open/close state.
|
|
4616
|
+
*
|
|
4617
|
+
* @example
|
|
4618
|
+
* ```tsx
|
|
4619
|
+
* <ModalControlled
|
|
4620
|
+
* open={isOpen}
|
|
4621
|
+
* onClose={() => setIsOpen(false)}
|
|
4622
|
+
* variant="default"
|
|
4623
|
+
* >
|
|
4624
|
+
* Modal content here
|
|
4625
|
+
* </ModalControlled>
|
|
4626
|
+
* ```
|
|
4627
|
+
*/
|
|
4407
4628
|
export declare const ModalControlled: ForwardRefExoticComponent<ModalControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4408
4629
|
|
|
4409
4630
|
/**
|
|
@@ -4422,13 +4643,6 @@ export declare interface ModalControlledProps<Variant = undefined extends string
|
|
|
4422
4643
|
|
|
4423
4644
|
declare type ModalCssClasses = ComponentSelected<ComponentsTypesComponents['MODAL']>;
|
|
4424
4645
|
|
|
4425
|
-
/**
|
|
4426
|
-
* Represents the type for the footer in the Modal component.
|
|
4427
|
-
*/
|
|
4428
|
-
export declare type ModalFooterProps = Omit<NavBarProps, 'variant'> & {
|
|
4429
|
-
variant?: string;
|
|
4430
|
-
};
|
|
4431
|
-
|
|
4432
4646
|
declare type ModalOmittedProps = 'styles' | 'device' | 'contentHasScroll';
|
|
4433
4647
|
|
|
4434
4648
|
/**
|
|
@@ -4455,18 +4669,18 @@ export declare interface ModalStandAloneProps extends DataAttributes {
|
|
|
4455
4669
|
title?: CommonTextProps & {
|
|
4456
4670
|
visible?: boolean;
|
|
4457
4671
|
};
|
|
4458
|
-
closeIcon?:
|
|
4672
|
+
closeIcon?: CommonIconProps;
|
|
4459
4673
|
closeButton?: ModalButtonProps;
|
|
4460
4674
|
contentContainer?: ModalContentContainerProps;
|
|
4461
4675
|
content?: ReactNode;
|
|
4462
4676
|
contentScrollArias?: Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'>;
|
|
4463
4677
|
contentHasScroll: boolean;
|
|
4464
|
-
footer?:
|
|
4678
|
+
footer?: ReactNode;
|
|
4465
4679
|
device: DeviceBreakpointsType;
|
|
4466
4680
|
onKeyDown?: KeyboardEventHandler<HTMLDivElement>;
|
|
4467
4681
|
onPopoverCloseInternally?: () => void;
|
|
4468
4682
|
cssClasses?: ModalCssClasses;
|
|
4469
|
-
dragIcon?:
|
|
4683
|
+
dragIcon?: CommonIconProps;
|
|
4470
4684
|
}
|
|
4471
4685
|
|
|
4472
4686
|
/**
|
|
@@ -4507,51 +4721,6 @@ export declare type ModalVariantStyles<Variant extends string> = ModalStyleProps
|
|
|
4507
4721
|
[key in Variant]: ModalStyleProps;
|
|
4508
4722
|
};
|
|
4509
4723
|
|
|
4510
|
-
/**
|
|
4511
|
-
* A component that renders a navigation bar, which can be used as a header, footer, or standalone navigation.
|
|
4512
|
-
* It supports custom CSS classes and forwards a ref to the inner navigation container.
|
|
4513
|
-
*
|
|
4514
|
-
* @param {INavBarControlled} props - The props for the navigation bar component.
|
|
4515
|
-
* @param {ForwardedRef<HTMLDivElement>} ref - The forwarded ref for the inner navigation container.
|
|
4516
|
-
* @returns {JSX.Element} The rendered navigation bar component.
|
|
4517
|
-
*/
|
|
4518
|
-
export declare const NabVar: ForwardRefExoticComponent<NavBarProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4519
|
-
|
|
4520
|
-
declare type NavBarCssClasses = ComponentSelected<ComponentsTypesComponents['NAVBAR']>;
|
|
4521
|
-
|
|
4522
|
-
/**
|
|
4523
|
-
* Interface for the NavBar component with a variant.
|
|
4524
|
-
* Extends the NavBarStandAloneProps interface and adds a variant and additional CSS classes.
|
|
4525
|
-
*
|
|
4526
|
-
* @template Variant - The type of the variant for the NavBar.
|
|
4527
|
-
*/
|
|
4528
|
-
export declare interface NavBarProps<Variant = undefined extends string ? unknown : string> extends NavBarStandAloneProps {
|
|
4529
|
-
variant?: Variant;
|
|
4530
|
-
additionalClasses?: Partial<NavBarCssClasses>;
|
|
4531
|
-
}
|
|
4532
|
-
|
|
4533
|
-
/**
|
|
4534
|
-
* Interface for the standalone NavBar component.
|
|
4535
|
-
* Includes properties for items, layout direction, focus order, and CSS classes.
|
|
4536
|
-
*/
|
|
4537
|
-
export declare interface NavBarStandAloneProps extends DataAttributes {
|
|
4538
|
-
leftItems?: React.ReactNode[];
|
|
4539
|
-
centerItems?: React.ReactNode[];
|
|
4540
|
-
rightItems?: React.ReactNode[];
|
|
4541
|
-
component?: 'header' | 'footer' | 'nav';
|
|
4542
|
-
direction?: 'horizontal' | 'vertical';
|
|
4543
|
-
focusOrder?: ('left' | 'center' | 'right')[];
|
|
4544
|
-
cssClasses?: NavBarCssClasses;
|
|
4545
|
-
}
|
|
4546
|
-
|
|
4547
|
-
export declare interface NavBarStyleProps extends CssLibPropsType {
|
|
4548
|
-
_itemContainer?: CssLibPropsType;
|
|
4549
|
-
}
|
|
4550
|
-
|
|
4551
|
-
export declare type NavBarVariantStyles<Variant extends string> = NavBarStyleProps & {
|
|
4552
|
-
[key in Variant]: NavBarStyleProps;
|
|
4553
|
-
};
|
|
4554
|
-
|
|
4555
4724
|
declare type NonVariablesKeys<T> = {
|
|
4556
4725
|
[K in keyof T]: K extends `$${string}` ? never : K;
|
|
4557
4726
|
}[keyof T];
|
|
@@ -4560,6 +4729,24 @@ declare type NonVariablesKeys_2<T> = {
|
|
|
4560
4729
|
[K in keyof T]: K extends `$${string}` ? never : K;
|
|
4561
4730
|
}[keyof T];
|
|
4562
4731
|
|
|
4732
|
+
/**
|
|
4733
|
+
* Option component for rendering selectable list items.
|
|
4734
|
+
*
|
|
4735
|
+
* This component represents a single option within a list, dropdown, or menu.
|
|
4736
|
+
* It manages focus states and supports custom variants for flexible styling.
|
|
4737
|
+
* Useful for building accessible select menus, autocomplete lists, or navigation options.
|
|
4738
|
+
*
|
|
4739
|
+
* Accepts a generic type parameter `<Variant extends string>` for custom variant values.
|
|
4740
|
+
*
|
|
4741
|
+
* @example
|
|
4742
|
+
* ```tsx
|
|
4743
|
+
* <Option value="option1" variant="default">Option 1</Option>
|
|
4744
|
+
*
|
|
4745
|
+
* // With custom variant:
|
|
4746
|
+
* type MyVariant = "primary" | "secondary";
|
|
4747
|
+
* <Option<MyVariant> variant="primary" value="item">Primary Option</Option>
|
|
4748
|
+
* ```
|
|
4749
|
+
*/
|
|
4563
4750
|
declare const Option_2: ForwardRefExoticComponent<OptionProps<string> & RefAttributes<HTMLElement>>;
|
|
4564
4751
|
export { Option_2 as Option }
|
|
4565
4752
|
|
|
@@ -4586,11 +4773,11 @@ export declare interface OptionProps<Variant = undefined extends string ? unknow
|
|
|
4586
4773
|
* Includes ARIA attributes, labels, icons, event handlers, and CSS classes.
|
|
4587
4774
|
*/
|
|
4588
4775
|
export declare interface OptionStandAloneProps extends OptionAriaProps, DataAttributes {
|
|
4589
|
-
icon?:
|
|
4776
|
+
icon?: CommonIconProps;
|
|
4590
4777
|
sublabel?: CommonTextProps;
|
|
4591
4778
|
label: ReactNode;
|
|
4592
4779
|
labelCharsHighlighted?: string;
|
|
4593
|
-
checkedIcon?:
|
|
4780
|
+
checkedIcon?: CommonIconProps;
|
|
4594
4781
|
multiSelect?: boolean;
|
|
4595
4782
|
disabled?: boolean;
|
|
4596
4783
|
selected?: boolean;
|
|
@@ -4627,6 +4814,48 @@ export declare type OptionVariantStyles<Variant extends string> = OptionStylePro
|
|
|
4627
4814
|
[key in Variant]: OptionStyleProps;
|
|
4628
4815
|
};
|
|
4629
4816
|
|
|
4817
|
+
declare type OverlayCssClasses = ComponentSelected<ComponentsTypesComponents['OVERLAY']>;
|
|
4818
|
+
|
|
4819
|
+
/**
|
|
4820
|
+
* Interface for the Overlay component with a variant.
|
|
4821
|
+
* Extends the OverlayStandAloneProps interface and adds a variant and additional CSS classes.
|
|
4822
|
+
*
|
|
4823
|
+
* @template Variant - The type of the variant for the Overlay.
|
|
4824
|
+
*/
|
|
4825
|
+
export declare interface OverlayProps<Variant = undefined extends string ? unknown : string> extends Omit<OverlayStandAloneProps, 'cssClasses'> {
|
|
4826
|
+
variant?: Variant;
|
|
4827
|
+
additionalClasses?: Partial<OverlayCssClasses>;
|
|
4828
|
+
}
|
|
4829
|
+
|
|
4830
|
+
/**
|
|
4831
|
+
* Interface for the standalone Overlay component.
|
|
4832
|
+
* Includes optional CSS classes and data attributes.
|
|
4833
|
+
*/
|
|
4834
|
+
export declare interface OverlayStandAloneProps extends DataAttributes {
|
|
4835
|
+
cssClasses?: OverlayCssClasses;
|
|
4836
|
+
}
|
|
4837
|
+
|
|
4838
|
+
export declare type OverlayVariantStyles<Variant extends string> = CssLibPropsType & {
|
|
4839
|
+
[key in Variant]: CssLibPropsType;
|
|
4840
|
+
};
|
|
4841
|
+
|
|
4842
|
+
/**
|
|
4843
|
+
* PageControl component for pagination/slide navigation indicators.
|
|
4844
|
+
*
|
|
4845
|
+
* This component displays navigation dots or bullets with arrow controls for
|
|
4846
|
+
* paginated content like carousels. It handles position tracking, visibility
|
|
4847
|
+
* of dots, and direction-based navigation.
|
|
4848
|
+
*
|
|
4849
|
+
* @example
|
|
4850
|
+
* ```tsx
|
|
4851
|
+
* <PageControl
|
|
4852
|
+
* pages={10}
|
|
4853
|
+
* currentPosition={3}
|
|
4854
|
+
* onPageChange={(page) => console.log(page)}
|
|
4855
|
+
* isBullet
|
|
4856
|
+
* />
|
|
4857
|
+
* ```
|
|
4858
|
+
*/
|
|
4630
4859
|
export declare const PageControl: ForwardRefExoticComponent<PageControlProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4631
4860
|
|
|
4632
4861
|
/**
|
|
@@ -4694,6 +4923,26 @@ export declare type PageControlVariantStyles<Variant extends string> = PageContr
|
|
|
4694
4923
|
[key in Variant]: PageControlStyleProps;
|
|
4695
4924
|
};
|
|
4696
4925
|
|
|
4926
|
+
/**
|
|
4927
|
+
* Pagination component for navigating through multiple pages.
|
|
4928
|
+
*
|
|
4929
|
+
* This component renders a pagination control with page numbers and navigation buttons.
|
|
4930
|
+
* It automatically adjusts the visible page numbers based on screen size and configuration.
|
|
4931
|
+
* Useful for implementing page navigation in lists, tables, or content galleries.
|
|
4932
|
+
*
|
|
4933
|
+
* Accepts a generic type parameter `<Variant extends string>` for custom variant styling.
|
|
4934
|
+
*
|
|
4935
|
+
* @example
|
|
4936
|
+
* ```tsx
|
|
4937
|
+
* <Pagination
|
|
4938
|
+
* variant="default"
|
|
4939
|
+
* currentStep={5}
|
|
4940
|
+
* maxStepsNumber={100}
|
|
4941
|
+
* maxCountersNumber={7}
|
|
4942
|
+
* onStepChange={handlePageChange}
|
|
4943
|
+
* />
|
|
4944
|
+
* ```
|
|
4945
|
+
*/
|
|
4697
4946
|
export declare const Pagination: ForwardRefExoticComponent<PaginationProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4698
4947
|
|
|
4699
4948
|
/**
|
|
@@ -4786,12 +5035,54 @@ export { popoverMWShift }
|
|
|
4786
5035
|
|
|
4787
5036
|
export { popoverMWSize }
|
|
4788
5037
|
|
|
4789
|
-
export declare interface
|
|
5038
|
+
export declare interface PopoverStyleProps extends CssLibPropsType {
|
|
4790
5039
|
_arrow?: CssLibPropsType;
|
|
4791
5040
|
}
|
|
4792
5041
|
|
|
4793
|
-
declare
|
|
5042
|
+
export declare const POSITIONS: {
|
|
5043
|
+
readonly BOTTOM: "bottom";
|
|
5044
|
+
readonly BOTTOM_CENTER: "bottom-center";
|
|
5045
|
+
readonly BOTTOM_CENTER_FIXED: "bottom-center-fixed";
|
|
5046
|
+
readonly BOTTOM_FIXED: "bottom-fixed";
|
|
5047
|
+
readonly BOTTOM_GAP_RIGHT: "bottom-gap-right";
|
|
5048
|
+
readonly BOTTOM_LEFT: "bottom-left";
|
|
5049
|
+
readonly BOTTOM_LEFT_FIT_CONTENT: "bottom-left-fit-content";
|
|
5050
|
+
readonly BOTTOM_RIGHT: "bottom-right";
|
|
5051
|
+
readonly BOTTOM_RIGHT_FIT_CONTENT: "bottom-right-fit-content";
|
|
5052
|
+
readonly CENTER: "center";
|
|
5053
|
+
readonly LEFT: "left";
|
|
5054
|
+
readonly LEFT_BOTTOM_FIXED: "left-bottom-fixed";
|
|
5055
|
+
readonly LEFT_FIXED: "left-fixed";
|
|
5056
|
+
readonly RIGHT: "right";
|
|
5057
|
+
readonly RIGHT_FIXED: "right-fixed";
|
|
5058
|
+
readonly TOP: "top";
|
|
5059
|
+
readonly TOP_CENTER: "top-center";
|
|
5060
|
+
readonly TOP_CENTER_FIXED: "top-center-fixed";
|
|
5061
|
+
readonly TOP_LEFT: "top-left";
|
|
5062
|
+
readonly TOP_RIGHT: "top-right";
|
|
5063
|
+
readonly WITHOUT: "without";
|
|
5064
|
+
};
|
|
5065
|
+
|
|
5066
|
+
export declare type PositionType = 'bottom' | 'bottom-center' | 'bottom-center-fixed' | 'bottom-fixed' | 'bottom-gap-right' | 'bottom-left' | 'bottom-left-fit-content' | 'bottom-right' | 'bottom-right-fit-content' | 'center' | 'left' | 'left-bottom-fixed' | 'left-fixed' | 'right' | 'right-fixed' | 'top' | 'top-center' | 'top-center-fixed' | 'top-left' | 'top-right' | 'without';
|
|
4794
5067
|
|
|
5068
|
+
/**
|
|
5069
|
+
* ProgressBar component for displaying progress indicators.
|
|
5070
|
+
*
|
|
5071
|
+
* This component visualizes completion progress with customizable variants and sizes.
|
|
5072
|
+
* It displays a filled bar representing the percentage of progress completed.
|
|
5073
|
+
* Useful for showing loading states, task completion, or any measurable progress.
|
|
5074
|
+
*
|
|
5075
|
+
* Accepts generic type parameters `<Variant, Size>` for custom styling values.
|
|
5076
|
+
*
|
|
5077
|
+
* @example
|
|
5078
|
+
* ```tsx
|
|
5079
|
+
* <ProgressBar variant="primary" size="md" percentProgressCompleted={60} />
|
|
5080
|
+
*
|
|
5081
|
+
* // With custom types:
|
|
5082
|
+
* type MyVariant = "success" | "warning";
|
|
5083
|
+
* <ProgressBar<MyVariant> variant="success" percentProgressCompleted={100} />
|
|
5084
|
+
* ```
|
|
5085
|
+
*/
|
|
4795
5086
|
export declare const ProgressBar: ForwardRefExoticComponent<ProgressBarProps<string | undefined, unknown> & RefAttributes<HTMLDivElement>>;
|
|
4796
5087
|
|
|
4797
5088
|
/**
|
|
@@ -4828,11 +5119,6 @@ export declare interface ProgressBarStandAloneProps extends DataAttributes {
|
|
|
4828
5119
|
cssSizeClasses?: ProgressBarCssClasses;
|
|
4829
5120
|
barAriaLabel?: string;
|
|
4830
5121
|
progressCompleted: number;
|
|
4831
|
-
onChange?: (value: number) => void;
|
|
4832
|
-
onDragStart?: () => void;
|
|
4833
|
-
onDragEnd?: () => void;
|
|
4834
|
-
tooltip?: SliderTooltipProps;
|
|
4835
|
-
useAsSlider?: boolean;
|
|
4836
5122
|
progressAnimation?: {
|
|
4837
5123
|
duration?: string;
|
|
4838
5124
|
timingFunction?: string;
|
|
@@ -4854,6 +5140,22 @@ export declare type ProgressBarVariantStyles<Variant extends string> = {
|
|
|
4854
5140
|
|
|
4855
5141
|
declare type propsToOmit = 'styles' | 'filled' | 'focused' | 'inputBaseId' | 'labelId';
|
|
4856
5142
|
|
|
5143
|
+
/**
|
|
5144
|
+
* RadioButton component for single selection from multiple options.
|
|
5145
|
+
*
|
|
5146
|
+
* This component renders a styled radio input for use in forms and option groups.
|
|
5147
|
+
* It manages checked, disabled, and error states with appropriate visual feedback.
|
|
5148
|
+
*
|
|
5149
|
+
* @example
|
|
5150
|
+
* ```tsx
|
|
5151
|
+
* <RadioButton
|
|
5152
|
+
* name="option"
|
|
5153
|
+
* value="1"
|
|
5154
|
+
* checked={selectedValue === "1"}
|
|
5155
|
+
* onChange={(e) => setSelectedValue(e.target.value)}
|
|
5156
|
+
* />
|
|
5157
|
+
* ```
|
|
5158
|
+
*/
|
|
4857
5159
|
export declare const RadioButton: ({ additionalClasses, checked, cssClasses: propsStyles, disabled, error, variant, ...props }: RadioButtonProps) => JSX.Element;
|
|
4858
5160
|
|
|
4859
5161
|
/**
|
|
@@ -4881,6 +5183,21 @@ export declare interface RadioButtonProps<Variant = undefined extends string ? u
|
|
|
4881
5183
|
additionalClasses?: Partial<RadioButtonCssClasses>;
|
|
4882
5184
|
}
|
|
4883
5185
|
|
|
5186
|
+
/**
|
|
5187
|
+
* Standalone radio button component for rendering selectable radio inputs.
|
|
5188
|
+
*
|
|
5189
|
+
* This component renders a radio button with label, optional legend, error message,
|
|
5190
|
+
* and custom icon states. It handles accessibility attributes and visual states.
|
|
5191
|
+
*
|
|
5192
|
+
* @example
|
|
5193
|
+
* ```tsx
|
|
5194
|
+
* <RadioButtonStandAlone
|
|
5195
|
+
* label={{ content: "Option A" }}
|
|
5196
|
+
* checked={true}
|
|
5197
|
+
* onChange={() => {}}
|
|
5198
|
+
* />
|
|
5199
|
+
* ```
|
|
5200
|
+
*/
|
|
4884
5201
|
export declare const RadioButtonStandAlone: ({ altVariant, checked, cssClasses, disabled, error, errorAriaLiveType, errorIcon, errorMessage, id, label, lastChild, name, onBlur, onChange, screenReaderId, state, subTitle, tabIndex, value, ...props }: RadioButtonStandAloneProps) => JSX.Element;
|
|
4885
5202
|
|
|
4886
5203
|
/**
|
|
@@ -4893,7 +5210,7 @@ export declare interface RadioButtonStandAloneProps extends RadioButtonAriaProps
|
|
|
4893
5210
|
name?: string;
|
|
4894
5211
|
label?: RadioButtonLabelProps;
|
|
4895
5212
|
errorMessage?: string;
|
|
4896
|
-
errorIcon?:
|
|
5213
|
+
errorIcon?: CommonIconProps;
|
|
4897
5214
|
errorAriaLiveType?: AriaAttributes['aria-live'];
|
|
4898
5215
|
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
4899
5216
|
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
@@ -4936,34 +5253,101 @@ declare type RecoverComponentStyles = <T extends ComponentsTypesAvailableCompone
|
|
|
4936
5253
|
additionalClassNames?: Partial<ComponentSelected_2<ComponentsTypesComponents[T]>>;
|
|
4937
5254
|
}) => ComponentSelected_2<ComponentsTypesComponents[T]>;
|
|
4938
5255
|
|
|
4939
|
-
declare
|
|
5256
|
+
declare type ScreenReaderOnlyProps = ScreenReaderOnlyStandAloneProps;
|
|
5257
|
+
|
|
5258
|
+
declare interface ScreenReaderOnlyStandAloneProps extends DataAttributes {
|
|
5259
|
+
ariaAtomic?: AriaAttributes['aria-atomic'];
|
|
5260
|
+
ariaLive?: AriaAttributes['aria-live'];
|
|
4940
5261
|
children?: React.ReactNode;
|
|
5262
|
+
className?: string;
|
|
4941
5263
|
id?: string;
|
|
4942
|
-
show?: boolean;
|
|
4943
|
-
ariaLive?: AriaAttributes['aria-live'];
|
|
4944
5264
|
role?: React.AriaRole;
|
|
4945
5265
|
}
|
|
4946
5266
|
|
|
4947
|
-
|
|
5267
|
+
/**
|
|
5268
|
+
* Uncontrolled select component for displaying selectable options.
|
|
5269
|
+
*
|
|
5270
|
+
* This component manages its own open/close state and selected option internally, so you do not need
|
|
5271
|
+
* to control the select state from the parent. It is useful when you want a simple select that handles
|
|
5272
|
+
* its own toggle and selection logic. You can optionally receive state changes via callbacks.
|
|
5273
|
+
*
|
|
5274
|
+
* Internally, it wraps {@link SelectControlled} and passes the necessary props.
|
|
5275
|
+
*
|
|
5276
|
+
* @example
|
|
5277
|
+
* ```tsx
|
|
5278
|
+
* <SelectUnControlled defaultOpen />
|
|
5279
|
+
* ```
|
|
5280
|
+
*/
|
|
5281
|
+
export declare const Select: ForwardRefExoticComponent<SelectUnControlledProps & RefAttributes<HTMLDivElement>>;
|
|
5282
|
+
|
|
5283
|
+
/**
|
|
5284
|
+
* Controlled select component for displaying selectable options.
|
|
5285
|
+
*
|
|
5286
|
+
* This component renders a select that is fully controlled by its parent, allowing for custom open/close logic,
|
|
5287
|
+
* keyboard navigation, and flexible theming. It is useful when you need to manage the select state and behavior externally.
|
|
5288
|
+
*
|
|
5289
|
+
* Internally, it wraps {@link SelectStandAlone} and handles keyboard focus and scroll-based closing.
|
|
5290
|
+
* Accepts a generic type parameter `<Variant extends string>` to allow for custom variant values, enabling flexible styling.
|
|
5291
|
+
*
|
|
5292
|
+
* @example
|
|
5293
|
+
* ```tsx
|
|
5294
|
+
* <SelectControlled open listOptions={options} />
|
|
5295
|
+
*
|
|
5296
|
+
* // With a custom variant type:
|
|
5297
|
+
* type MyVariant = "primary" | "secondary";
|
|
5298
|
+
* <SelectControlled<MyVariant> variant="primary" open listOptions={options} />
|
|
5299
|
+
* ```
|
|
5300
|
+
*/
|
|
5301
|
+
export declare const SelectControlled: ForwardRefExoticComponent<SelectControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5302
|
+
|
|
5303
|
+
/**
|
|
5304
|
+
* Interface for the controlled Select component.
|
|
5305
|
+
* Extends the SelectStandAloneProps interface and adds a variant and additional CSS classes.
|
|
5306
|
+
*
|
|
5307
|
+
* @template Variant - The type of the variant for the Select.
|
|
5308
|
+
*/
|
|
5309
|
+
export declare interface SelectControlledProps<Variant = undefined extends string ? unknown : string> extends Omit<SelectStandAloneProps, 'listOptionsRef' | 'onButtonKeyDown' | 'component'> {
|
|
5310
|
+
variant?: Variant;
|
|
5311
|
+
additionalClasses?: Partial<SelectCssClasses>;
|
|
5312
|
+
}
|
|
5313
|
+
|
|
5314
|
+
declare type SelectCssClasses = ComponentSelected<ComponentsTypesComponents['SELECT']>;
|
|
5315
|
+
|
|
5316
|
+
/**
|
|
5317
|
+
* Represents the type for the list options in the Select component.
|
|
5318
|
+
*/
|
|
5319
|
+
export declare type SelectListOptionsProps = Omit<ListOptionsProps, 'selectedValue' | 'onOptionClick'>;
|
|
5320
|
+
|
|
5321
|
+
declare type SelectOmittedProps = 'buttonOrLinkRef' | 'open' | 'onButtonClick' | 'optionSelected' | 'onOptionClick' | 'onClosePopover' | 'onMouseEnter' | 'onMouseLeave' | 'onBlur' | 'onFocus' | 'onKeyDown';
|
|
4948
5322
|
|
|
4949
5323
|
/**
|
|
4950
|
-
*
|
|
5324
|
+
* SelectorBoxFile component for file upload with drag-and-drop support.
|
|
5325
|
+
*
|
|
5326
|
+
* This component provides a file selection interface with validation for file type
|
|
5327
|
+
* and size, upload progress display, error handling, and visual feedback states
|
|
5328
|
+
* (loading, success, error). It manages internal state for file selection and focus.
|
|
5329
|
+
*
|
|
5330
|
+
* @example
|
|
5331
|
+
* ```tsx
|
|
5332
|
+
* <SelectorBoxFile
|
|
5333
|
+
* accept="image/*"
|
|
5334
|
+
* maxSize={5000000}
|
|
5335
|
+
* onChange={(files) => console.log(files)}
|
|
5336
|
+
* onSizeError={(file) => alert('File too large')}
|
|
5337
|
+
* />
|
|
5338
|
+
* ```
|
|
4951
5339
|
*/
|
|
4952
|
-
export declare
|
|
4953
|
-
content: string;
|
|
4954
|
-
variant?: string;
|
|
4955
|
-
size?: string;
|
|
4956
|
-
};
|
|
5340
|
+
export declare const SelectorBoxFile: ForwardRefExoticComponent<SelectorBoxFileProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4957
5341
|
|
|
4958
5342
|
/**
|
|
4959
5343
|
* Represents the mapping of states to content in the SelectorBoxFile component.
|
|
4960
5344
|
*/
|
|
4961
5345
|
export declare type SelectorBoxFileContainerBoxStateContentProps = {
|
|
4962
5346
|
[key in SelectorBoxFileStateType]: {
|
|
4963
|
-
icon?:
|
|
4964
|
-
iconRight?:
|
|
5347
|
+
icon?: CommonIconProps;
|
|
5348
|
+
iconRight?: CommonIconProps;
|
|
4965
5349
|
actionText?: CommonTextProps;
|
|
4966
|
-
actionIcon?:
|
|
5350
|
+
actionIcon?: CommonIconProps;
|
|
4967
5351
|
description?: CommonTextProps;
|
|
4968
5352
|
};
|
|
4969
5353
|
};
|
|
@@ -4981,6 +5365,8 @@ export declare interface SelectorBoxFileProps<Variant = undefined extends string
|
|
|
4981
5365
|
success?: boolean;
|
|
4982
5366
|
error?: boolean;
|
|
4983
5367
|
disabled?: boolean;
|
|
5368
|
+
errorMaxSizeMessage?: CommonTextProps;
|
|
5369
|
+
errorFileExtensionMessage?: CommonTextProps;
|
|
4984
5370
|
percentage?: number;
|
|
4985
5371
|
variant?: Variant;
|
|
4986
5372
|
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
@@ -4995,16 +5381,8 @@ export declare interface SelectorBoxFileProps<Variant = undefined extends string
|
|
|
4995
5381
|
*/
|
|
4996
5382
|
export declare interface SelectorBoxFileStandAloneProps extends DataAttributes {
|
|
4997
5383
|
state: SelectorBoxFileStateType;
|
|
4998
|
-
title?: CommonTextProps;
|
|
4999
|
-
subtitle?: CommonTextProps;
|
|
5000
|
-
tooltipIcon?: ElementOrIconProps;
|
|
5001
|
-
tooltip?: SelectorBoxFileTooltipProps;
|
|
5002
5384
|
containerBoxStateContent: SelectorBoxFileContainerBoxStateContentProps;
|
|
5003
5385
|
filename?: string;
|
|
5004
|
-
errorMessageIcon?: ElementOrIconProps;
|
|
5005
|
-
errorMessage?: CommonTextProps;
|
|
5006
|
-
errorMaxSizeMessage?: CommonTextProps;
|
|
5007
|
-
errorFileExtensionMessage?: CommonTextProps;
|
|
5008
5386
|
focus: boolean;
|
|
5009
5387
|
onFocus: React.FocusEventHandler<HTMLInputElement>;
|
|
5010
5388
|
onBlur: React.FocusEventHandler<HTMLInputElement>;
|
|
@@ -5015,8 +5393,6 @@ export declare interface SelectorBoxFileStandAloneProps extends DataAttributes {
|
|
|
5015
5393
|
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
5016
5394
|
onClick?: React.MouseEventHandler<HTMLInputElement>;
|
|
5017
5395
|
onAnimationCompleted?: () => void;
|
|
5018
|
-
description?: CommonTextProps;
|
|
5019
|
-
button?: SelectorBoxFileButtonProps;
|
|
5020
5396
|
maxSize?: number;
|
|
5021
5397
|
fileExtension?: string[];
|
|
5022
5398
|
loader?: React.ReactNode;
|
|
@@ -5027,19 +5403,7 @@ export declare interface SelectorBoxFileStandAloneProps extends DataAttributes {
|
|
|
5027
5403
|
declare type SelectorBoxFileStateType = Extract<StateType, 'default' | 'loading' | 'success' | 'error' | 'disabled'>;
|
|
5028
5404
|
|
|
5029
5405
|
export declare interface SelectorBoxFileStyleProps extends CssLibPropsType {
|
|
5030
|
-
_actionDescriptionContainer?: CssLibPropsType;
|
|
5031
5406
|
_header?: CssLibPropsType;
|
|
5032
|
-
_titleSubtitleContainer?: CssLibPropsType;
|
|
5033
|
-
_title?: CssLibPropsType;
|
|
5034
|
-
_subtitle?: CssLibPropsType;
|
|
5035
|
-
_subtitleTooltipContainer?: CssLibPropsType;
|
|
5036
|
-
_descriptionContainer?: CssLibPropsType;
|
|
5037
|
-
_description?: CssLibPropsType;
|
|
5038
|
-
_tooltipIconContainer?: CssLibPropsType;
|
|
5039
|
-
_tooltipIcon?: CssLibPropsType;
|
|
5040
|
-
_errorMessageContainer?: CssLibPropsType;
|
|
5041
|
-
_errorMessageIcon?: CssLibPropsType;
|
|
5042
|
-
_errorMessage?: CssLibPropsType;
|
|
5043
5407
|
_animationContainer?: CssLibPropsType;
|
|
5044
5408
|
_topAnimationContainer?: CssLibPropsType;
|
|
5045
5409
|
_leftAnimationContainer?: CssLibPropsType;
|
|
@@ -5057,17 +5421,96 @@ export declare interface SelectorBoxFileStyleProps extends CssLibPropsType {
|
|
|
5057
5421
|
_containerActionContainer?: CssLibPropsType;
|
|
5058
5422
|
}
|
|
5059
5423
|
|
|
5424
|
+
export declare type SelectorBoxFileVariantStyles<Variant extends string> = SelectorBoxFileStyleProps & {
|
|
5425
|
+
[key in Variant]?: SelectorBoxFileStyleProps;
|
|
5426
|
+
};
|
|
5427
|
+
|
|
5060
5428
|
/**
|
|
5061
|
-
* Represents the type for the
|
|
5429
|
+
* Represents the type for the popover in the Select component.
|
|
5062
5430
|
*/
|
|
5063
|
-
export declare type
|
|
5064
|
-
|
|
5431
|
+
export declare type SelectPopoverProps = Omit<IPopover, 'children' | 'open'>;
|
|
5432
|
+
|
|
5433
|
+
/**
|
|
5434
|
+
* Interface for the standalone Select component.
|
|
5435
|
+
* Includes properties for state, event handlers, and CSS classes.
|
|
5436
|
+
*/
|
|
5437
|
+
export declare interface SelectStandAloneProps extends DataAttributes {
|
|
5438
|
+
open: boolean;
|
|
5439
|
+
popover?: SelectPopoverProps;
|
|
5440
|
+
onButtonClick: MouseEventHandler<HTMLButtonElement | HTMLLinkElement>;
|
|
5441
|
+
onButtonKeyDown: KeyboardEventHandler<HTMLButtonElement | HTMLLinkElement>;
|
|
5442
|
+
onClosePopover: () => void;
|
|
5443
|
+
label: CommonTextProps;
|
|
5444
|
+
icon: CommonIconProps;
|
|
5445
|
+
listOptions: SelectListOptionsProps;
|
|
5446
|
+
optionSelected?: string;
|
|
5447
|
+
onOptionClick: (value: string) => void;
|
|
5448
|
+
listOptionsRef: RefObject<HTMLDivElement>;
|
|
5449
|
+
closePopoverOnScroll?: boolean;
|
|
5450
|
+
openAndCloseOnHover?: boolean;
|
|
5451
|
+
url?: string;
|
|
5452
|
+
urlTarget?: HTMLAttributeAnchorTarget;
|
|
5453
|
+
component: 'button' | GenericLinkType;
|
|
5454
|
+
buttonOrLinkRef?: RefObject<HTMLButtonElement>;
|
|
5455
|
+
onFocus?: FocusEventHandler<HTMLDivElement>;
|
|
5456
|
+
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
5457
|
+
onKeyDown?: KeyboardEventHandler<HTMLDivElement>;
|
|
5458
|
+
cssClasses?: SelectCssClasses;
|
|
5459
|
+
}
|
|
5460
|
+
|
|
5461
|
+
export declare interface SelectStyleProps extends CssLibPropsType {
|
|
5462
|
+
_buttonOrLinkContainer?: CssLibPropsType;
|
|
5463
|
+
_labelOpened?: CssLibPropsType;
|
|
5464
|
+
_labelClosed?: CssLibPropsType;
|
|
5465
|
+
_iconOpened?: CssLibPropsType;
|
|
5466
|
+
_iconClosed?: CssLibPropsType;
|
|
5467
|
+
_listOptionsContainer?: CssLibPropsType;
|
|
5468
|
+
}
|
|
5469
|
+
|
|
5470
|
+
/**
|
|
5471
|
+
* Interface for the uncontrolled Select component.
|
|
5472
|
+
* Extends the SelectProps interface and adds default properties.
|
|
5473
|
+
*/
|
|
5474
|
+
export declare interface SelectUnControlledProps extends Omit<SelectControlledProps, SelectOmittedProps> {
|
|
5475
|
+
defaultOpen?: boolean;
|
|
5476
|
+
defaultOptionSelected?: string;
|
|
5477
|
+
onOptionClick?: (value: string) => void;
|
|
5478
|
+
onButtonClick?: (open: boolean) => void;
|
|
5479
|
+
onClosePopover?: (open: boolean) => void;
|
|
5480
|
+
onMouseEnter?: (open: boolean) => void;
|
|
5481
|
+
onMouseLeave?: (open: boolean) => void;
|
|
5482
|
+
onFocus?: (open: boolean) => void;
|
|
5483
|
+
onBlur?: (open: boolean) => void;
|
|
5484
|
+
}
|
|
5485
|
+
|
|
5486
|
+
export declare type SelectVariantStyles<Variant extends string> = SelectStyleProps & {
|
|
5487
|
+
[key in Variant]: SelectStyleProps;
|
|
5065
5488
|
};
|
|
5066
5489
|
|
|
5067
|
-
export declare
|
|
5068
|
-
|
|
5490
|
+
export declare const SIZES: {
|
|
5491
|
+
readonly EXTRA_LARGE: "extra_large";
|
|
5492
|
+
readonly EXTRA_SMALL: "extra_small";
|
|
5493
|
+
readonly LARGE: "large";
|
|
5494
|
+
readonly MEDIUM: "medium";
|
|
5495
|
+
readonly SMALL: "small";
|
|
5069
5496
|
};
|
|
5070
5497
|
|
|
5498
|
+
export declare type SizesType = 'extra_small' | 'small' | 'medium' | 'large' | 'extra_large';
|
|
5499
|
+
|
|
5500
|
+
/**
|
|
5501
|
+
* Skeleton component for displaying loading placeholders.
|
|
5502
|
+
*
|
|
5503
|
+
* This component renders animated placeholder shapes while content is loading.
|
|
5504
|
+
* It supports different shapes (rectangle, circle, text) and variants for styling.
|
|
5505
|
+
* Useful for improving perceived performance by showing content structure during loading.
|
|
5506
|
+
*
|
|
5507
|
+
* @example
|
|
5508
|
+
* ```tsx
|
|
5509
|
+
* <Skeleton variant="rectangular" shapeVariant="image" />
|
|
5510
|
+
* <Skeleton variant="text" shapeVariant="heading" />
|
|
5511
|
+
* <Skeleton variant="circular" shapeVariant="avatar" />
|
|
5512
|
+
* ```
|
|
5513
|
+
*/
|
|
5071
5514
|
export declare const Skeleton: ForwardRefExoticComponent<SkeletonProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5072
5515
|
|
|
5073
5516
|
/**
|
|
@@ -5112,6 +5555,31 @@ export declare type SkeletonVariantStyles<Variant extends string> = CssLibPropsT
|
|
|
5112
5555
|
[key in Variant]?: CssLibPropsType;
|
|
5113
5556
|
};
|
|
5114
5557
|
|
|
5558
|
+
/**
|
|
5559
|
+
* Slider component for selecting values within a range.
|
|
5560
|
+
*
|
|
5561
|
+
* This component provides a draggable slider control for selecting single values
|
|
5562
|
+
* or value ranges. It supports keyboard navigation, custom min/max/step values,
|
|
5563
|
+
* tooltips, and range selection. Handles both mouse and touch interactions.
|
|
5564
|
+
*
|
|
5565
|
+
* @example
|
|
5566
|
+
* ```tsx
|
|
5567
|
+
* <Slider
|
|
5568
|
+
* min={0}
|
|
5569
|
+
* max={100}
|
|
5570
|
+
* value={50}
|
|
5571
|
+
* onChange={(value) => console.log(value)}
|
|
5572
|
+
* />
|
|
5573
|
+
*
|
|
5574
|
+
* // Range slider:
|
|
5575
|
+
* <Slider
|
|
5576
|
+
* min={0}
|
|
5577
|
+
* max={100}
|
|
5578
|
+
* rangeValue={[25, 75]}
|
|
5579
|
+
* onChange={(range) => console.log(range)}
|
|
5580
|
+
* />
|
|
5581
|
+
* ```
|
|
5582
|
+
*/
|
|
5115
5583
|
export declare const Slider: ForwardRefExoticComponent<SliderProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5116
5584
|
|
|
5117
5585
|
/**
|
|
@@ -5244,8 +5712,73 @@ declare type SnackbarV2CssClasses = ComponentSelected<ComponentsTypesComponents[
|
|
|
5244
5712
|
|
|
5245
5713
|
export declare type SnackbarV2Popover = Omit<IPopover, 'children' | 'open'>;
|
|
5246
5714
|
|
|
5247
|
-
declare
|
|
5715
|
+
export declare const STATES: {
|
|
5716
|
+
readonly ACTIVE: "active";
|
|
5717
|
+
readonly ACTIVE_FILLED: "active_filled";
|
|
5718
|
+
readonly ACTIVE_FILLED_HIDE: "active_filled_hide";
|
|
5719
|
+
readonly BLOCKED_BY_SYSTEM: "blocked_by_system";
|
|
5720
|
+
readonly COMPLETED: "completed";
|
|
5721
|
+
readonly CURRENT: "current";
|
|
5722
|
+
readonly CURRENT_DAY: "current_day";
|
|
5723
|
+
readonly DEFAULT: "default";
|
|
5724
|
+
readonly DEFAULT_SELECTED: "default_selected";
|
|
5725
|
+
readonly DEFAULT_UNSELECTED: "default_unselected";
|
|
5726
|
+
readonly DISABLED: "disabled";
|
|
5727
|
+
readonly DISABLED_EMPTY: "disabled_empty";
|
|
5728
|
+
readonly DISABLED_FILLED: "disabled_filled";
|
|
5729
|
+
readonly DISABLED_FILLED_HIDE: "disabled_filled_hide";
|
|
5730
|
+
readonly DISABLED_SELECTED: "disabled_selected";
|
|
5731
|
+
readonly DISABLED_UNSELECTED: "disabled_unselected";
|
|
5732
|
+
readonly EMPTY: "empty";
|
|
5733
|
+
readonly END_DATE_RANGE: "end_date_range";
|
|
5734
|
+
readonly ERROR: "error";
|
|
5735
|
+
readonly ERROR_EMPTY: "error_empty";
|
|
5736
|
+
readonly ERROR_FILLED: "error_filled";
|
|
5737
|
+
readonly ERROR_FILLED_HIDE: "error_filled_hide";
|
|
5738
|
+
readonly ERROR_SELECTED: "error_selected";
|
|
5739
|
+
readonly ERROR_UNSELECTED: "error_unselected";
|
|
5740
|
+
readonly FILLED: "filled";
|
|
5741
|
+
readonly FILLED_HIDE: "filled_hide";
|
|
5742
|
+
readonly FILLING: "filling";
|
|
5743
|
+
readonly FOCUS: "focus";
|
|
5744
|
+
readonly HOVER: "hover";
|
|
5745
|
+
readonly INACTIVE: "inactive";
|
|
5746
|
+
readonly LOADING: "loading";
|
|
5747
|
+
readonly MIDLE_DATE_RANGE: "midle_date_range";
|
|
5748
|
+
readonly MULTIPLE_SELECTED: "multiple_selected";
|
|
5749
|
+
readonly MULTIPLE_SELECTED_HOVER: "multiple_selected_hover";
|
|
5750
|
+
readonly PENDING: "pending";
|
|
5751
|
+
readonly PREFILLED: "prefilled";
|
|
5752
|
+
readonly PRESSED: "pressed";
|
|
5753
|
+
readonly SELECTED: "selected";
|
|
5754
|
+
readonly SELECTED_HOVER: "selected_hover";
|
|
5755
|
+
readonly START_DATE_RANGE: "start_date_range";
|
|
5756
|
+
readonly SUCCESS: "success";
|
|
5757
|
+
readonly UNSELECTED: "unselected";
|
|
5758
|
+
readonly VISITED: "visited";
|
|
5759
|
+
readonly WARNING: "warning";
|
|
5760
|
+
};
|
|
5761
|
+
|
|
5762
|
+
export declare type StateType = 'active' | 'active_filled' | 'active_filled_hide' | 'completed' | 'default' | 'default_selected' | 'default_unselected' | 'disabled' | 'disabled_empty' | 'disabled_filled' | 'disabled_filled_hide' | 'disabled_selected' | 'disabled_unselected' | 'error' | 'error_empty' | 'error_filled' | 'error_filled_hide' | 'empty' | 'filled' | 'filled_hide' | 'focus' | 'hover' | 'loading' | 'multiple_selected' | 'multiple_selected_hover' | 'prefilled' | 'pressed' | 'selected' | 'selected_hover' | 'success' | 'warning' | 'visited' | 'inactive' | 'filling' | 'blocked_by_system' | 'error_unselected' | 'error_selected' | 'current' | 'current_day' | 'start_date_range' | 'end_date_range' | 'midle_date_range' | 'pending' | 'unselected';
|
|
5248
5763
|
|
|
5764
|
+
/**
|
|
5765
|
+
* StepperNumber component for incrementing/decrementing numeric values.
|
|
5766
|
+
*
|
|
5767
|
+
* This component provides plus/minus buttons for adjusting numeric values with
|
|
5768
|
+
* configurable step intervals. Supports both horizontal and vertical orientations.
|
|
5769
|
+
*
|
|
5770
|
+
* @example
|
|
5771
|
+
* ```tsx
|
|
5772
|
+
* <StepperNumber
|
|
5773
|
+
* value={5}
|
|
5774
|
+
* min={0}
|
|
5775
|
+
* max={10}
|
|
5776
|
+
* step={1}
|
|
5777
|
+
* onChange={(newValue) => console.log(newValue)}
|
|
5778
|
+
* orientation="horizontal"
|
|
5779
|
+
* />
|
|
5780
|
+
* ```
|
|
5781
|
+
*/
|
|
5249
5782
|
export declare const StepperNumber: ForwardRefExoticComponent<StepperNumberProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5250
5783
|
|
|
5251
5784
|
declare type StepperNumberCssClasses = ComponentSelected<ComponentsTypesComponents['STEPPER_NUMBER']>;
|
|
@@ -5254,7 +5787,7 @@ export declare type StepperNumberOrientationStyles<Orientation extends StepperNu
|
|
|
5254
5787
|
[key in Orientation]?: StepperNumberStyleProps;
|
|
5255
5788
|
};
|
|
5256
5789
|
|
|
5257
|
-
declare type StepperNumberOrientationType = 'horizontal' | 'vertical';
|
|
5790
|
+
export declare type StepperNumberOrientationType = 'horizontal' | 'vertical';
|
|
5258
5791
|
|
|
5259
5792
|
declare interface StepperNumberprefixSuffixProps {
|
|
5260
5793
|
prefix?: {
|
|
@@ -5340,42 +5873,138 @@ export declare interface StepStateProps {
|
|
|
5340
5873
|
['aria-label']?: string;
|
|
5341
5874
|
}
|
|
5342
5875
|
|
|
5876
|
+
/**
|
|
5877
|
+
* React Context for styles and theming.
|
|
5878
|
+
* Provides access to styling utilities, theme management, and responsive breakpoints.
|
|
5879
|
+
*/
|
|
5343
5880
|
export declare const StylesContext: Context<StylesContextProps | undefined>;
|
|
5344
5881
|
|
|
5882
|
+
/**
|
|
5883
|
+
* Context value provided by StylesProvider.
|
|
5884
|
+
* Contains all styling-related data and utilities available to child components.
|
|
5885
|
+
*/
|
|
5345
5886
|
declare interface StylesContextProps {
|
|
5887
|
+
/** Current responsive breakpoints configuration */
|
|
5346
5888
|
breakpoints: Breakpoints;
|
|
5889
|
+
/** Array of CSS class names or null */
|
|
5347
5890
|
classes: string[] | null;
|
|
5891
|
+
/** Pre-built media query strings for responsive design */
|
|
5348
5892
|
mediaQueries: MediaQueries;
|
|
5893
|
+
/** Map of available icons */
|
|
5349
5894
|
icons: Record<string, string>;
|
|
5895
|
+
/** Map of available illustrations */
|
|
5350
5896
|
illustrations: Record<string, string>;
|
|
5897
|
+
/** Currently active theme name, or null if no theme is selected */
|
|
5351
5898
|
currentTheme: string | null;
|
|
5899
|
+
/** Function to retrieve styles for a specific component and variant */
|
|
5352
5900
|
getComponentStyles: RecoverComponentStyles;
|
|
5901
|
+
/** Function to change the active theme */
|
|
5353
5902
|
changeTheme: (themeName: string) => void;
|
|
5903
|
+
/** Array of CSS class names for the current theme */
|
|
5354
5904
|
themeClassNames: string[];
|
|
5905
|
+
/** Map of all available themes */
|
|
5355
5906
|
themes: Record<string, string>;
|
|
5907
|
+
/** Map of CSS custom properties (variables) for the current theme */
|
|
5356
5908
|
themeVariables: Record<string, string>;
|
|
5357
5909
|
}
|
|
5358
5910
|
|
|
5359
5911
|
/**
|
|
5360
|
-
* Provider component
|
|
5912
|
+
* Provider component for styles, theming, and responsive design utilities.
|
|
5913
|
+
* Manages theme selection, CSS class generation, and provides styling context to child components.
|
|
5914
|
+
*
|
|
5915
|
+
* Features:
|
|
5916
|
+
* - Theme management with dynamic theme switching
|
|
5917
|
+
* - Responsive breakpoints and media queries
|
|
5918
|
+
* - Icon and illustration asset management
|
|
5919
|
+
* - Component-specific style retrieval
|
|
5920
|
+
* - CSS-in-JS support via Bernova provider
|
|
5921
|
+
*
|
|
5922
|
+
* @param props - Configuration props for the styles provider
|
|
5923
|
+
* @param props.children - React children to be wrapped by the provider
|
|
5924
|
+
* @param props.breakpoints - Custom responsive breakpoints (defaults to standard breakpoints if not provided)
|
|
5925
|
+
* @param props.icons - Map of icon names to URLs or base64 strings
|
|
5926
|
+
* @param props.illustrations - Map of illustration names to URLs or base64 strings
|
|
5927
|
+
* @param props.themeSelected - Initial theme to apply
|
|
5928
|
+
* @param props.bernovaProvider - Custom Bernova provider instance for advanced styling control
|
|
5929
|
+
* @param props.linkId - ID for the style link element in the DOM (default: 'kb-styled-provider')
|
|
5930
|
+
* @param props.jsInCss - Whether to inject CSS directly into JavaScript (default: true)
|
|
5931
|
+
*
|
|
5932
|
+
* @returns The styled provider component wrapping all child components
|
|
5933
|
+
*
|
|
5934
|
+
* @example
|
|
5935
|
+
* ```tsx
|
|
5936
|
+
* <StylesProvider
|
|
5937
|
+
* themeSelected="dark"
|
|
5938
|
+
* breakpoints={{ sm: 576, md: 768, lg: 992, xl: 1200 }}
|
|
5939
|
+
* icons={{ home: '/icons/home.svg' }}
|
|
5940
|
+
* >
|
|
5941
|
+
* <App />
|
|
5942
|
+
* </StylesProvider>
|
|
5943
|
+
* ```
|
|
5361
5944
|
*/
|
|
5362
5945
|
export declare const StylesProvider: FC<StylesProviderProps>;
|
|
5363
5946
|
|
|
5947
|
+
/**
|
|
5948
|
+
* Props for the StylesProvider component.
|
|
5949
|
+
* Configures the styling system including themes, breakpoints, and assets.
|
|
5950
|
+
*/
|
|
5364
5951
|
declare interface StylesProviderProps {
|
|
5952
|
+
/** The React children to be wrapped by the provider */
|
|
5365
5953
|
children: React.ReactNode;
|
|
5954
|
+
/** Custom breakpoints for responsive design. If not provided, uses default breakpoints */
|
|
5366
5955
|
breakpoints?: Breakpoints;
|
|
5956
|
+
/** Map of icon names to their corresponding URLs or base64 strings */
|
|
5367
5957
|
icons?: Record<string, string>;
|
|
5958
|
+
/** Map of illustration names to their corresponding URLs or base64 strings */
|
|
5368
5959
|
illustrations?: Record<string, string>;
|
|
5960
|
+
/** The initial theme to be applied. If not provided, uses the provider's default theme */
|
|
5369
5961
|
themeSelected?: string;
|
|
5370
|
-
|
|
5962
|
+
/** Custom Bernova provider instance for advanced styling control */
|
|
5963
|
+
bernovaProvider?: never;
|
|
5964
|
+
/** ID for the style link element in the DOM. Default: 'kb-styled-provider' */
|
|
5371
5965
|
linkId?: string;
|
|
5966
|
+
/** Whether to inject CSS directly into JavaScript. Default: true */
|
|
5372
5967
|
jsInCss?: boolean;
|
|
5373
5968
|
}
|
|
5374
5969
|
|
|
5970
|
+
/**
|
|
5971
|
+
* Table component with automatic sticky column calculations and scroll shadow effects.
|
|
5972
|
+
*
|
|
5973
|
+
* This component wraps TableStandAlone and adds automatic sticky positioning for left
|
|
5974
|
+
* and right columns, scroll shadow effects, and responsive behavior. It manages scroll
|
|
5975
|
+
* state and column positioning internally.
|
|
5976
|
+
*
|
|
5977
|
+
* @example
|
|
5978
|
+
* ```tsx
|
|
5979
|
+
* <Table
|
|
5980
|
+
* variant="primary"
|
|
5981
|
+
* autoLeftStickyCalc={true}
|
|
5982
|
+
* autoRightStickyCalc={true}
|
|
5983
|
+
* >
|
|
5984
|
+
* <thead>...</thead>
|
|
5985
|
+
* <tbody>...</tbody>
|
|
5986
|
+
* </Table>
|
|
5987
|
+
* ```
|
|
5988
|
+
*/
|
|
5375
5989
|
export declare const Table: ForwardRefExoticComponent<TableProps & {
|
|
5376
5990
|
children?: ReactNode | undefined;
|
|
5377
5991
|
} & RefAttributes<HTMLDivElement>>;
|
|
5378
5992
|
|
|
5993
|
+
/**
|
|
5994
|
+
* TableBody component for rendering table body sections.
|
|
5995
|
+
*
|
|
5996
|
+
* This component wraps the tbody element with consistent styling and variant support.
|
|
5997
|
+
* Use it as a container for TableRow components within a Table.
|
|
5998
|
+
*
|
|
5999
|
+
* @example
|
|
6000
|
+
* ```tsx
|
|
6001
|
+
* <Table>
|
|
6002
|
+
* <TableBody variant="default">
|
|
6003
|
+
* <TableRow>...</TableRow>
|
|
6004
|
+
* </TableBody>
|
|
6005
|
+
* </Table>
|
|
6006
|
+
* ```
|
|
6007
|
+
*/
|
|
5379
6008
|
export declare const TableBody: ForwardRefExoticComponent<TableBodyProps & {
|
|
5380
6009
|
children?: ReactNode | undefined;
|
|
5381
6010
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5397,6 +6026,22 @@ export declare type TableBodyVariantStyles<Variant extends string> = CssLibProps
|
|
|
5397
6026
|
[key in Variant]: CssLibPropsType;
|
|
5398
6027
|
};
|
|
5399
6028
|
|
|
6029
|
+
/**
|
|
6030
|
+
* TableCaption component for providing titles or descriptions for tables.
|
|
6031
|
+
*
|
|
6032
|
+
* This component renders a caption element for tables, helping users understand
|
|
6033
|
+
* the table's purpose or contents. Important for accessibility and SEO.
|
|
6034
|
+
*
|
|
6035
|
+
* @example
|
|
6036
|
+
* ```tsx
|
|
6037
|
+
* <Table>
|
|
6038
|
+
* <TableCaption variant="default">
|
|
6039
|
+
* Sales Report for Q4 2024
|
|
6040
|
+
* </TableCaption>
|
|
6041
|
+
* <TableHead>...</TableHead>
|
|
6042
|
+
* </Table>
|
|
6043
|
+
* ```
|
|
6044
|
+
*/
|
|
5400
6045
|
export declare const TableCaption: ForwardRefExoticComponent<TableCaptionProps & {
|
|
5401
6046
|
children?: ReactNode | undefined;
|
|
5402
6047
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5419,6 +6064,20 @@ export declare type TableCaptionVariantStyles<Variant extends string> = CssLibPr
|
|
|
5419
6064
|
[key in Variant]: CssLibPropsType;
|
|
5420
6065
|
};
|
|
5421
6066
|
|
|
6067
|
+
/**
|
|
6068
|
+
* TableCell component for rendering individual table cells.
|
|
6069
|
+
*
|
|
6070
|
+
* This component wraps td or th elements with consistent styling and variant support.
|
|
6071
|
+
* Use it within TableRow components to display data or headers in a table.
|
|
6072
|
+
*
|
|
6073
|
+
* @example
|
|
6074
|
+
* ```tsx
|
|
6075
|
+
* <TableRow>
|
|
6076
|
+
* <TableCell variant="default">Cell content</TableCell>
|
|
6077
|
+
* <TableCell>Another cell</TableCell>
|
|
6078
|
+
* </TableRow>
|
|
6079
|
+
* ```
|
|
6080
|
+
*/
|
|
5422
6081
|
export declare const TableCell: ForwardRefExoticComponent<TableCellProps<string> & {
|
|
5423
6082
|
children?: ReactNode | undefined;
|
|
5424
6083
|
} & RefAttributes<HTMLTableCellElement>>;
|
|
@@ -5475,6 +6134,23 @@ export declare type TableCellVariantStyles<Variant extends string> = CssLibProps
|
|
|
5475
6134
|
|
|
5476
6135
|
declare type TableCssClasses = ComponentSelected<ComponentsTypesComponents['TABLE']>;
|
|
5477
6136
|
|
|
6137
|
+
/**
|
|
6138
|
+
* TableDivider component for rendering visual separators in tables.
|
|
6139
|
+
*
|
|
6140
|
+
* This component creates visual dividers or separators between table sections.
|
|
6141
|
+
* Useful for organizing complex tables with multiple logical groups of data.
|
|
6142
|
+
*
|
|
6143
|
+
* @example
|
|
6144
|
+
* ```tsx
|
|
6145
|
+
* <Table>
|
|
6146
|
+
* <TableBody>
|
|
6147
|
+
* <TableRow>...</TableRow>
|
|
6148
|
+
* <TableDivider variant="default" />
|
|
6149
|
+
* <TableRow>...</TableRow>
|
|
6150
|
+
* </TableBody>
|
|
6151
|
+
* </Table>
|
|
6152
|
+
* ```
|
|
6153
|
+
*/
|
|
5478
6154
|
export declare const TableDivider: ForwardRefExoticComponent<TableDividerProps & {
|
|
5479
6155
|
children?: ReactNode | undefined;
|
|
5480
6156
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5496,6 +6172,25 @@ export declare type TableDividerVariantStyles<Variant extends string> = CssLibPr
|
|
|
5496
6172
|
[key in Variant]: CssLibPropsType;
|
|
5497
6173
|
};
|
|
5498
6174
|
|
|
6175
|
+
/**
|
|
6176
|
+
* TableFoot component for rendering table footer sections.
|
|
6177
|
+
*
|
|
6178
|
+
* This component wraps the tfoot element with consistent styling and variant support.
|
|
6179
|
+
* Use it to display summary rows, totals, or footer information in a table.
|
|
6180
|
+
*
|
|
6181
|
+
* @example
|
|
6182
|
+
* ```tsx
|
|
6183
|
+
* <Table>
|
|
6184
|
+
* <TableBody>...</TableBody>
|
|
6185
|
+
* <TableFoot variant="default">
|
|
6186
|
+
* <TableRow>
|
|
6187
|
+
* <TableCell>Total</TableCell>
|
|
6188
|
+
* <TableCell>$1,234</TableCell>
|
|
6189
|
+
* </TableRow>
|
|
6190
|
+
* </TableFoot>
|
|
6191
|
+
* </Table>
|
|
6192
|
+
* ```
|
|
6193
|
+
*/
|
|
5499
6194
|
export declare const TableFoot: ForwardRefExoticComponent<TableFootProps & {
|
|
5500
6195
|
children?: ReactNode | undefined;
|
|
5501
6196
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5517,6 +6212,23 @@ export declare type TableFootVariantStyles<Variant extends string> = CssLibProps
|
|
|
5517
6212
|
[key in Variant]: CssLibPropsType;
|
|
5518
6213
|
};
|
|
5519
6214
|
|
|
6215
|
+
/**
|
|
6216
|
+
* TableHead component for rendering table header sections.
|
|
6217
|
+
*
|
|
6218
|
+
* This component wraps the thead element with consistent styling and variant support.
|
|
6219
|
+
* Use it as a container for TableRow components with header cells within a Table.
|
|
6220
|
+
*
|
|
6221
|
+
* @example
|
|
6222
|
+
* ```tsx
|
|
6223
|
+
* <Table>
|
|
6224
|
+
* <TableHead variant="default">
|
|
6225
|
+
* <TableRow>
|
|
6226
|
+
* <TableCell>Header 1</TableCell>
|
|
6227
|
+
* </TableRow>
|
|
6228
|
+
* </TableHead>
|
|
6229
|
+
* </Table>
|
|
6230
|
+
* ```
|
|
6231
|
+
*/
|
|
5520
6232
|
export declare const TableHead: ForwardRefExoticComponent<TableHeadProps & {
|
|
5521
6233
|
children?: ReactNode | undefined;
|
|
5522
6234
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5548,6 +6260,22 @@ export declare interface TableProps extends Omit<TableStandAloneProps, 'hasScrol
|
|
|
5548
6260
|
additionalClasses?: Partial<TableCssClasses>;
|
|
5549
6261
|
}
|
|
5550
6262
|
|
|
6263
|
+
/**
|
|
6264
|
+
* TableRow component for rendering table rows.
|
|
6265
|
+
*
|
|
6266
|
+
* This component wraps the tr element with consistent styling and variant support.
|
|
6267
|
+
* Use it as a container for TableCell components within TableHead or TableBody sections.
|
|
6268
|
+
*
|
|
6269
|
+
* @example
|
|
6270
|
+
* ```tsx
|
|
6271
|
+
* <TableBody>
|
|
6272
|
+
* <TableRow variant="default">
|
|
6273
|
+
* <TableCell>Data 1</TableCell>
|
|
6274
|
+
* <TableCell>Data 2</TableCell>
|
|
6275
|
+
* </TableRow>
|
|
6276
|
+
* </TableBody>
|
|
6277
|
+
* ```
|
|
6278
|
+
*/
|
|
5551
6279
|
export declare const TableRow: ForwardRefExoticComponent<TableRowProps & {
|
|
5552
6280
|
children?: ReactNode | undefined;
|
|
5553
6281
|
} & RefAttributes<HTMLTableRowElement>>;
|
|
@@ -5597,8 +6325,44 @@ export declare type TableVariantStyles<Variant extends string> = TableStyleProps
|
|
|
5597
6325
|
[key in Variant]: TableStyleProps;
|
|
5598
6326
|
};
|
|
5599
6327
|
|
|
6328
|
+
/**
|
|
6329
|
+
* TabsUnControlled component with internal tab selection state.
|
|
6330
|
+
*
|
|
6331
|
+
* This component renders a tab navigation that manages the selected tab internally.
|
|
6332
|
+
* It starts with a default selected tab and updates automatically on user interaction.
|
|
6333
|
+
* Useful when you don't need to control tab selection from a parent component.
|
|
6334
|
+
*
|
|
6335
|
+
* @example
|
|
6336
|
+
* ```tsx
|
|
6337
|
+
* <TabsUnControlled
|
|
6338
|
+
* defaultSelectedTab={0}
|
|
6339
|
+
* tabs={[
|
|
6340
|
+
* { id: 'tab1', label: 'Tab 1' },
|
|
6341
|
+
* { id: 'tab2', label: 'Tab 2' }
|
|
6342
|
+
* ]}
|
|
6343
|
+
* onSelectTab={(index) => console.log(index)}
|
|
6344
|
+
* />
|
|
6345
|
+
* ```
|
|
6346
|
+
*/
|
|
5600
6347
|
export declare const Tabs: ForwardRefExoticComponent<TabsUnControlledProps<string | undefined> & RefAttributes<HTMLDivElement>>;
|
|
5601
6348
|
|
|
6349
|
+
/**
|
|
6350
|
+
* TabsControlled component for tab navigation with external state management.
|
|
6351
|
+
*
|
|
6352
|
+
* This component displays a set of tabs where the selected tab is controlled
|
|
6353
|
+
* externally via props. It's device-aware and adjusts behavior based on screen size.
|
|
6354
|
+
*
|
|
6355
|
+
* @example
|
|
6356
|
+
* ```tsx
|
|
6357
|
+
* <TabsControlled
|
|
6358
|
+
* defaultSelectedTab="tab1"
|
|
6359
|
+
* tabs={[
|
|
6360
|
+
* { id: 'tab1', label: 'Tab 1' },
|
|
6361
|
+
* { id: 'tab2', label: 'Tab 2' }
|
|
6362
|
+
* ]}
|
|
6363
|
+
* />
|
|
6364
|
+
* ```
|
|
6365
|
+
*/
|
|
5602
6366
|
export declare const TabsControlled: ForwardRefExoticComponent<TabsUnControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5603
6367
|
|
|
5604
6368
|
declare type TabsCssClasses = ComponentSelected<ComponentsTypesComponents['TABS']>;
|
|
@@ -5753,6 +6517,23 @@ export declare type TagVariantStyles<Variant extends string> = TagStyleProps & {
|
|
|
5753
6517
|
declare const Text_2: ForwardRefExoticComponent<TextProps<string> & RefAttributes<HTMLParagraphElement>>;
|
|
5754
6518
|
export { Text_2 as Text }
|
|
5755
6519
|
|
|
6520
|
+
/**
|
|
6521
|
+
* TextArea component for multi-line text input.
|
|
6522
|
+
*
|
|
6523
|
+
* This component provides a styled textarea with support for labels, error states,
|
|
6524
|
+
* character counting, and focus management. It handles internal focus state and
|
|
6525
|
+
* applies appropriate styling based on filled and error states.
|
|
6526
|
+
*
|
|
6527
|
+
* @example
|
|
6528
|
+
* ```tsx
|
|
6529
|
+
* <TextArea
|
|
6530
|
+
* label="Comments"
|
|
6531
|
+
* placeholder="Enter your comments"
|
|
6532
|
+
* maxLength={500}
|
|
6533
|
+
* error="Required field"
|
|
6534
|
+
* />
|
|
6535
|
+
* ```
|
|
6536
|
+
*/
|
|
5756
6537
|
export declare const TextArea: ForwardRefExoticComponent<TextAreaProps<string | undefined> & RefAttributes<HTMLDivElement>>;
|
|
5757
6538
|
|
|
5758
6539
|
export declare type TextAreaCssClasses = ComponentSelected<ComponentsTypesComponents['TEXT_AREA']>;
|
|
@@ -5840,6 +6621,15 @@ declare type TextAriaProps = Pick<React.AriaAttributes, 'aria-label' | 'aria-lab
|
|
|
5840
6621
|
|
|
5841
6622
|
declare type TextComponentType = 'b' | 'a' | 'strong' | 'i' | 'em' | 'mark' | 'small' | 'del' | 'ins' | 'sub' | 'sup' | 'p' | 'span' | 'label' | 'legend' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'dl' | 'dt' | 'dd' | 'div' | (string & {});
|
|
5842
6623
|
|
|
6624
|
+
export declare interface TextCountPropsStylesType extends CssLibPropsType {
|
|
6625
|
+
_letfText?: CssLibPropsType;
|
|
6626
|
+
_rightText?: CssLibPropsType;
|
|
6627
|
+
}
|
|
6628
|
+
|
|
6629
|
+
export declare type TextCountStylesType<P extends string> = TextCountPropsStylesType & {
|
|
6630
|
+
[variant in P]: TextCountPropsStylesType;
|
|
6631
|
+
};
|
|
6632
|
+
|
|
5843
6633
|
export declare type TextCssClasses = ComponentSelected<ComponentsTypesComponents['TEXT']>;
|
|
5844
6634
|
|
|
5845
6635
|
/**
|
|
@@ -6038,17 +6828,46 @@ export declare type ToggleVariantStyles<Variant extends string> = ToggleVariantS
|
|
|
6038
6828
|
[key in Variant]?: ToggleVariantStyleProps;
|
|
6039
6829
|
};
|
|
6040
6830
|
|
|
6831
|
+
/**
|
|
6832
|
+
* TooltipUnControlled component with internal visibility management.
|
|
6833
|
+
*
|
|
6834
|
+
* This component renders a tooltip that manages its own open/close state based
|
|
6835
|
+
* on user interactions (hover, focus). It handles modal behavior on mobile devices,
|
|
6836
|
+
* scroll detection, swipe gestures, and focus trapping automatically.
|
|
6837
|
+
*
|
|
6838
|
+
* @example
|
|
6839
|
+
* ```tsx
|
|
6840
|
+
* <TooltipUnControlled
|
|
6841
|
+
* title="Helpful information"
|
|
6842
|
+
* variant="default"
|
|
6843
|
+
* >
|
|
6844
|
+
* <button>Hover me</button>
|
|
6845
|
+
* </TooltipUnControlled>
|
|
6846
|
+
* ```
|
|
6847
|
+
*/
|
|
6041
6848
|
export declare const Tooltip: ForwardRefExoticComponent<TooltipUnControlledProps<string | undefined> & RefAttributes<HTMLDivElement>>;
|
|
6042
6849
|
|
|
6043
6850
|
declare type TooltipAlignType = Extract<PositionType, 'top' | 'right' | 'bottom' | 'left'>;
|
|
6044
6851
|
|
|
6045
6852
|
/**
|
|
6046
|
-
*
|
|
6853
|
+
* TooltipControlled component for displaying contextual information.
|
|
6854
|
+
*
|
|
6855
|
+
* This component renders a tooltip that can be shown on hover or focus.
|
|
6856
|
+
* It supports modal behavior on mobile devices and adjusts positioning based
|
|
6857
|
+
* on scroll detection. State is managed externally via props.
|
|
6858
|
+
*
|
|
6859
|
+
* @example
|
|
6860
|
+
* ```tsx
|
|
6861
|
+
* <TooltipControlled
|
|
6862
|
+
* variant="default"
|
|
6863
|
+
* title="Help text"
|
|
6864
|
+
* open={isOpen}
|
|
6865
|
+
* onOpenChange={setIsOpen}
|
|
6866
|
+
* >
|
|
6867
|
+
* <button>Hover me</button>
|
|
6868
|
+
* </TooltipControlled>
|
|
6869
|
+
* ```
|
|
6047
6870
|
*/
|
|
6048
|
-
export declare type TooltipCloseIconProps = Omit<IconProps, 'icon'> & {
|
|
6049
|
-
icon?: string;
|
|
6050
|
-
};
|
|
6051
|
-
|
|
6052
6871
|
export declare const TooltipControlled: <Variant extends string>({ additionalClasses, tooltipAriaLabel, tooltipAsModal: propTooltipAsModal, tooltipAsModal: isModal, tooltipRef, variant, ...props }: TooltipControlledProps<Variant>) => JSX.Element;
|
|
6053
6872
|
|
|
6054
6873
|
/**
|
|
@@ -6083,7 +6902,6 @@ export declare interface TooltipStandAloneProps extends DataAttributes {
|
|
|
6083
6902
|
disabled?: boolean;
|
|
6084
6903
|
mediaDevice: DeviceBreakpointsType;
|
|
6085
6904
|
align?: TooltipAlignType | string;
|
|
6086
|
-
title?: CommonTextProps;
|
|
6087
6905
|
contentHasScroll?: boolean;
|
|
6088
6906
|
content?: CommonTextProps;
|
|
6089
6907
|
contentRef?: ForwardedRef<HTMLDivElement> | undefined;
|
|
@@ -6095,11 +6913,9 @@ export declare interface TooltipStandAloneProps extends DataAttributes {
|
|
|
6095
6913
|
onTriggerClick?: MouseEventHandler<HTMLElement>;
|
|
6096
6914
|
onTriggerMouseDown?: MouseEventHandler<HTMLElement>;
|
|
6097
6915
|
onTriggerMouseUp?: MouseEventHandler<HTMLElement>;
|
|
6098
|
-
onCloseIconClick?: MouseEventHandler<HTMLElement>;
|
|
6099
6916
|
children: JSX.Element | string | ReactNode;
|
|
6100
6917
|
popoverOpen?: boolean;
|
|
6101
6918
|
cssClasses?: TooltipCssClasses;
|
|
6102
|
-
closeIcon?: IconProps;
|
|
6103
6919
|
childrenAsButton?: boolean;
|
|
6104
6920
|
triggerAsButton?: Pick<AriaAttributes, 'aria-label' | 'aria-labelledby' | 'aria-describedby' | 'aria-controls' | 'aria-expanded' | 'aria-pressed' | 'aria-disabled'>;
|
|
6105
6921
|
onPopoverCloseInternally?: () => void;
|
|
@@ -6110,8 +6926,6 @@ export declare interface TooltipStandAloneProps extends DataAttributes {
|
|
|
6110
6926
|
onTriggerKeyDown?: KeyboardEventHandler<HTMLDivElement>;
|
|
6111
6927
|
onTooltipKeyDown?: KeyboardEventHandler<HTMLElement>;
|
|
6112
6928
|
popover?: TooltipPopoverProps;
|
|
6113
|
-
dragIcon?: ElementOrIconProps;
|
|
6114
|
-
dragIconRef?: MutableRefObject<HTMLDivElement | null>;
|
|
6115
6929
|
tooltipAriaLabel?: string;
|
|
6116
6930
|
}
|
|
6117
6931
|
|
|
@@ -6149,6 +6963,43 @@ export declare type TooltipVariantStyles<Variant extends string> = TooltipStyleP
|
|
|
6149
6963
|
[key in Variant]?: TooltipStyleProps;
|
|
6150
6964
|
};
|
|
6151
6965
|
|
|
6966
|
+
/**
|
|
6967
|
+
* Transforms a date string or timestamp into a Date object using a specified format.
|
|
6968
|
+
*
|
|
6969
|
+
* @param date - The date as a string or timestamp number
|
|
6970
|
+
* @param format - The format pattern of the input date string (e.g., 'dd/MM/yyyy')
|
|
6971
|
+
* @returns A Date object parsed from the input
|
|
6972
|
+
*
|
|
6973
|
+
* @remarks
|
|
6974
|
+
* If no format is provided or date is a number, it will be converted directly to a Date.
|
|
6975
|
+
* Supports tokens like dd, MM, yyyy, HH, mm, ss for parsing.
|
|
6976
|
+
*
|
|
6977
|
+
* @example
|
|
6978
|
+
* ```typescript
|
|
6979
|
+
* transformDate('15/01/2024', 'dd/MM/yyyy'); // Date object for Jan 15, 2024
|
|
6980
|
+
* transformDate(1705334400000); // Date from timestamp
|
|
6981
|
+
* ```
|
|
6982
|
+
*/
|
|
6983
|
+
export declare const transformDate: (date: string | number, format?: string) => Date;
|
|
6984
|
+
|
|
6985
|
+
/**
|
|
6986
|
+
* Custom hook to access the generic components context.
|
|
6987
|
+
* Provides access to the custom Link and Image components configured in the provider.
|
|
6988
|
+
*
|
|
6989
|
+
* @throws {Error} If used outside of a GenericComponentsProvider or with invalid value
|
|
6990
|
+
* @returns The generic components (LINK, IMAGE) from the context
|
|
6991
|
+
*
|
|
6992
|
+
* @example
|
|
6993
|
+
* ```tsx
|
|
6994
|
+
* const { LINK, IMAGE } = useGenericComponents();
|
|
6995
|
+
*
|
|
6996
|
+
* return (
|
|
6997
|
+
* <LINK url="/home">
|
|
6998
|
+
* <IMAGE src="/logo.png" alt="Logo" />
|
|
6999
|
+
* </LINK>
|
|
7000
|
+
* );
|
|
7001
|
+
* ```
|
|
7002
|
+
*/
|
|
6152
7003
|
export declare const useGenericComponents: () => GenericComponentsType;
|
|
6153
7004
|
|
|
6154
7005
|
declare interface UseRoveFocusProps {
|
|
@@ -6164,10 +7015,17 @@ declare interface UseRoveFocusProps {
|
|
|
6164
7015
|
}
|
|
6165
7016
|
|
|
6166
7017
|
/**
|
|
6167
|
-
* Custom hook to access the
|
|
7018
|
+
* Custom hook to access the StylesContext.
|
|
7019
|
+
* Provides styling utilities including theme management, breakpoints, and component styles.
|
|
7020
|
+
*
|
|
7021
|
+
* @throws {Error} If used outside of a StylesProvider
|
|
7022
|
+
* @returns The current styles context value
|
|
6168
7023
|
*
|
|
6169
|
-
* @
|
|
6170
|
-
*
|
|
7024
|
+
* @example
|
|
7025
|
+
* ```tsx
|
|
7026
|
+
* const { currentTheme, changeTheme, getComponentStyles } = useStylesContext();
|
|
7027
|
+
* const styles = getComponentStyles({ component: 'button', variant: 'primary' });
|
|
7028
|
+
* ```
|
|
6171
7029
|
*/
|
|
6172
7030
|
export declare const useStylesContext: () => StylesContextProps;
|
|
6173
7031
|
|
|
@@ -6192,27 +7050,84 @@ export declare const useUtilsProvider: () => UtilsContextType;
|
|
|
6192
7050
|
*/
|
|
6193
7051
|
export declare const UtilsContext: Context<UtilsContextType | null>;
|
|
6194
7052
|
|
|
7053
|
+
/**
|
|
7054
|
+
* Context type for utility functions and configurations.
|
|
7055
|
+
* Provides date manipulation, formatting, and asset management utilities.
|
|
7056
|
+
*/
|
|
6195
7057
|
declare interface UtilsContextType {
|
|
7058
|
+
/**
|
|
7059
|
+
* Base URLs for different types of assets.
|
|
7060
|
+
* Used to construct full paths for icons, illustrations, images, and animations.
|
|
7061
|
+
*/
|
|
6196
7062
|
assets?: {
|
|
7063
|
+
/** Base URL for all assets */
|
|
6197
7064
|
baseHost: string;
|
|
7065
|
+
/** Specific base URL for icon assets */
|
|
6198
7066
|
iconsBaseHost?: string;
|
|
7067
|
+
/** Specific base URL for illustration assets */
|
|
6199
7068
|
illutrationsBaseHost?: string;
|
|
7069
|
+
/** Specific base URL for image assets */
|
|
6200
7070
|
imagesBaseHost?: string;
|
|
7071
|
+
/** Specific base URL for animation assets */
|
|
6201
7072
|
animationsBaseHost?: string;
|
|
6202
7073
|
};
|
|
7074
|
+
/**
|
|
7075
|
+
* Formats a Date object into a string representation.
|
|
7076
|
+
* @param date - The date to format
|
|
7077
|
+
* @param format - Format string or options object (e.g., 'dd/MM/yyyy', 'd', etc.)
|
|
7078
|
+
* @param locale - Optional locale string (e.g., 'en-US', 'es-ES')
|
|
7079
|
+
* @returns Formatted date string
|
|
7080
|
+
*/
|
|
6203
7081
|
formatDate: (date: Date, format: DateFormatOptions | FormatDateType | string, locale?: string) => string;
|
|
7082
|
+
/**
|
|
7083
|
+
* Transforms a string or number into a Date object.
|
|
7084
|
+
* @param date - The date value to transform (timestamp or date string)
|
|
7085
|
+
* @param format - Optional format string to parse the date
|
|
7086
|
+
* @returns Parsed Date object
|
|
7087
|
+
*/
|
|
6204
7088
|
transformDate: (date: string | number, format?: string) => Date;
|
|
7089
|
+
/**
|
|
7090
|
+
* Collection of date manipulation and comparison utilities.
|
|
7091
|
+
*/
|
|
6205
7092
|
dateHelpers: {
|
|
7093
|
+
/** Subtracts a specified number of days from a date */
|
|
6206
7094
|
getSubDays: (date: Date, amount: number) => Date;
|
|
7095
|
+
/** Subtracts a specified number of months from a date */
|
|
6207
7096
|
getSubMonths: (date: Date, amount: number) => Date;
|
|
7097
|
+
/** Subtracts a specified number of years from a date */
|
|
6208
7098
|
getSubYears: (date: Date, amount: number) => Date;
|
|
7099
|
+
/** Adds a specified number of months to a date */
|
|
6209
7100
|
getAddMonths: (date: Date, amount: number) => Date;
|
|
7101
|
+
/** Adds a specified number of days to a date */
|
|
6210
7102
|
getAddDays: (date: Date, amount: number) => Date;
|
|
7103
|
+
/** Adds a specified number of years to a date */
|
|
6211
7104
|
getAddYears: (date: Date, years: number) => Date;
|
|
7105
|
+
/**
|
|
7106
|
+
* Gets all month names in the specified format and locale.
|
|
7107
|
+
* @param monthFormat - Format for month names ('long', 'short', 'narrow')
|
|
7108
|
+
* @param locale - Optional locale string
|
|
7109
|
+
* @returns Array of month names
|
|
7110
|
+
*/
|
|
6212
7111
|
getAllMonthName: (monthFormat: Intl.DateTimeFormatOptions['month'], locale?: string) => Array<string>;
|
|
7112
|
+
/**
|
|
7113
|
+
* Gets all weekday names in the specified format and locale.
|
|
7114
|
+
* @param weekdayFormat - Format for weekday names ('long', 'short', 'narrow')
|
|
7115
|
+
* @param isSundayFirst - Whether Sunday should be the first day of the week
|
|
7116
|
+
* @param locale - Optional locale string
|
|
7117
|
+
* @returns Array of weekday names
|
|
7118
|
+
*/
|
|
6213
7119
|
getAllWeekdayName: (weekdayFormat: Intl.DateTimeFormatOptions['weekday'], isSundayFirst: boolean, locale?: string) => Array<string>;
|
|
7120
|
+
/** Checks if the first date is before the second date */
|
|
6214
7121
|
isBefore: (date1: Date, date2: Date) => boolean;
|
|
7122
|
+
/** Checks if the first date is after the second date */
|
|
6215
7123
|
isAfter: (date1: Date, date2: Date) => boolean;
|
|
7124
|
+
/**
|
|
7125
|
+
* Checks if two dates are equal.
|
|
7126
|
+
* @param firstDate - First date to compare
|
|
7127
|
+
* @param secondDate - Second date to compare
|
|
7128
|
+
* @param shouldCompareTime - Whether to include time in comparison
|
|
7129
|
+
* @returns True if dates are equal
|
|
7130
|
+
*/
|
|
6216
7131
|
isDatesEqual: (firstDate: Date | number | string, secondDate: Date | number | string, shouldCompareTime: boolean) => boolean;
|
|
6217
7132
|
};
|
|
6218
7133
|
}
|
|
@@ -6243,7 +7158,12 @@ declare interface UtilsContextType {
|
|
|
6243
7158
|
*/
|
|
6244
7159
|
export declare const UtilsProvider: (props: UtilsProviderProps) => JSX_2.Element;
|
|
6245
7160
|
|
|
7161
|
+
/**
|
|
7162
|
+
* Props for the UtilsProvider component.
|
|
7163
|
+
* Extends UtilsContextType with required children prop.
|
|
7164
|
+
*/
|
|
6246
7165
|
declare type UtilsProviderProps = UtilsContextType & {
|
|
7166
|
+
/** The React children to be wrapped by the provider */
|
|
6247
7167
|
children: ReactElement;
|
|
6248
7168
|
};
|
|
6249
7169
|
|
|
@@ -6296,7 +7216,7 @@ export declare interface VirtualKeyboardStandAloneProps extends DataAttributes {
|
|
|
6296
7216
|
onVirtualKeyboardBlur: React.FocusEventHandler<HTMLDivElement>;
|
|
6297
7217
|
onDigitButtonClick: (digit: string, event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
6298
7218
|
onRemoveButtonClick: React.MouseEventHandler<HTMLButtonElement>;
|
|
6299
|
-
icon:
|
|
7219
|
+
icon: CommonIconProps;
|
|
6300
7220
|
cssClasses?: VirtualKeyboardCssClasses;
|
|
6301
7221
|
}
|
|
6302
7222
|
|