@kubit-ui-web/react-components 2.0.0-beta.4 → 2.0.0-beta.41
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/README.md +20 -28
- 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/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/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/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/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/cssProvider/provider.d.ts +60 -0
- package/dist/cjs/lib/provider/cssProvider/provider.js +1 -1
- package/dist/cjs/lib/provider/cssProvider/stats/stats.d.ts +1398 -0
- package/dist/cjs/lib/provider/cssProvider/stats/stats.js +1 -1641
- 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/kubitProvider/kubitProvider.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/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 +1 -1
- package/dist/esm/components/accordion/accordionStandAlone.js +2 -4
- package/dist/esm/components/accordion/accordionUnControlled.js +2 -2
- package/dist/esm/components/accordion/hooks/useAccordionContentOverflow.js +1 -1
- package/dist/esm/components/accordion/hooks/useAccordionInertContent.js +1 -1
- package/dist/esm/components/accordion/types/state.js +1 -1
- package/dist/esm/components/alert/alertControlled.js +1 -0
- package/dist/esm/components/alert/alertStandAlone.js +2 -0
- package/dist/esm/components/alert/index.js +1 -0
- package/dist/esm/components/avatar/avatar.js +2 -2
- package/dist/esm/components/avatar/avatarStandAlone.js +2 -1
- package/dist/esm/components/avatar/fragments/drawContent.js +1 -4
- package/dist/esm/components/badge/badge.js +2 -2
- package/dist/esm/components/badge/badgeStandAlone.js +4 -7
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +2 -2
- package/dist/esm/components/breadcrumbs/breadcrumbsStandAlone.js +3 -3
- package/dist/esm/components/breadcrumbs/components/crumbStandAlone/crumbStandAlone.js +2 -6
- package/dist/esm/components/breadcrumbs/hooks/useIsOverflow/useIsOverflow.js +1 -1
- package/dist/esm/components/breadcrumbs/utils/crumbMaxCharName/crumbMaxCharName.js +1 -1
- package/dist/esm/components/button/button.js +1 -1
- package/dist/esm/components/button/buttonStandAlone.js +2 -3
- package/dist/esm/components/calendar/calendar.js +1 -1
- package/dist/esm/components/calendar/calendarStandAlone.js +2 -6
- package/dist/esm/components/calendar/constants/constants.js +1 -1
- package/dist/esm/components/calendar/header/header.js +2 -2
- package/dist/esm/components/calendar/list/list.js +3 -2
- package/dist/esm/components/calendar/selector/monthSelector/monthSelector.js +3 -3
- package/dist/esm/components/calendar/selector/monthSelector/utils/monthSelector.utils.js +1 -1
- package/dist/esm/components/calendar/selector/selector.js +6 -9
- package/dist/esm/components/calendar/selector/yearSelector/utils/yearSelector.utils.js +1 -1
- package/dist/esm/components/calendar/selector/yearSelector/yearSelector.js +3 -3
- package/dist/esm/components/calendar/utils/getAllDaysInMonth.js +1 -1
- package/dist/esm/components/calendar/utils/getFirstDayOfMonth.js +1 -1
- package/dist/esm/components/calendar/utils/getState.js +1 -1
- package/dist/esm/components/calendar/utils/getYearList.js +1 -1
- package/dist/esm/components/calendar/utils/groupDaysByWeeks.js +1 -1
- package/dist/esm/components/calendar/utils/handleKeysmoves.js +1 -1
- package/dist/esm/components/calendar/utils/setMonth.js +1 -1
- package/dist/esm/components/calendar/utils/setYear.js +1 -1
- package/dist/esm/components/card/card.js +2 -0
- package/dist/esm/components/card/cardStandAlone.js +2 -0
- package/dist/esm/components/card/index.js +2 -0
- package/dist/esm/components/carousel/carousel.js +2 -2
- package/dist/esm/components/carousel/carouselStandAlone.js +2 -3
- package/dist/esm/components/carousel/hooks/useCarousel.js +1 -1
- package/dist/esm/components/carousel/hooks/useCarouselKeyNavigation.js +1 -1
- package/dist/esm/components/carousel/hooks/useCarouselSwipe.js +1 -1
- package/dist/esm/components/carousel/hooks/utils/calc.utils.js +1 -1
- package/dist/esm/components/carousel/hooks/utils/constants.js +1 -1
- package/dist/esm/components/carousel/hooks/utils/dom.utils.js +1 -1
- package/dist/esm/components/carousel/types/carousel.js +1 -1
- package/dist/esm/components/carousel/utils/carousel.utils.js +1 -1
- package/dist/esm/components/checkbox/checkboxControlled.js +2 -2
- package/dist/esm/components/checkbox/checkboxStandAlone.js +4 -7
- package/dist/esm/components/checkbox/checkboxUnControlled.js +2 -2
- package/dist/esm/components/checkbox/components/errorMessage.js +2 -2
- package/dist/esm/components/checkbox/components/label.js +1 -1
- package/dist/esm/components/checkbox/types/state.js +1 -1
- package/dist/esm/components/checkbox/utils/aria.utils.js +1 -1
- package/dist/esm/components/checkbox/utils/state.utils.js +1 -1
- package/dist/esm/components/checkboxBase/checkboxBaseControlled.js +2 -2
- package/dist/esm/components/checkboxBase/checkboxBaseStandAlone.js +2 -4
- package/dist/esm/components/checkboxBase/checkboxBaseUncontrolled.js +2 -2
- package/dist/esm/components/checkboxBase/hooks/useCheckbox.js +1 -1
- package/dist/esm/components/chip/chip.js +2 -2
- package/dist/esm/components/chip/chipStandAlone.js +4 -9
- package/dist/esm/components/dataTable/components/dataTableHead.js +4 -4
- package/dist/esm/components/dataTable/components/dataTableRows.js +5 -6
- package/dist/esm/components/dataTable/components/hiddenDataTableHead.js +2 -2
- package/dist/esm/components/dataTable/dataTable.js +1 -1
- package/dist/esm/components/dataTable/dataTableStandAlone.js +8 -14
- package/dist/esm/components/dataTable/hooks/useDataTableHasScroll.js +1 -1
- package/dist/esm/components/dataTable/hooks/useDataTableShadow.js +1 -1
- package/dist/esm/components/dataTable/hooks/useDataTableStickyDividers.js +1 -1
- package/dist/esm/components/dataTable/hooks/useDataTableStickyLeftColumns.js +1 -1
- package/dist/esm/components/dataTable/hooks/useDataTableStickyRightColumns.js +1 -1
- package/dist/esm/components/dataTable/utils/cellConfig.js +1 -1
- package/dist/esm/components/dataTable/utils/hoverable.js +1 -1
- package/dist/esm/components/dataTable/utils/rowConfig.js +1 -1
- package/dist/esm/components/dataTable/utils/tableConfig.js +1 -1
- package/dist/esm/components/dot/dot.js +2 -2
- package/dist/esm/components/dot/dotStandAlone.js +2 -2
- package/dist/esm/components/icon/icon.js +1 -3
- package/dist/esm/components/icon/iconHost.js +1 -1
- package/dist/esm/components/icon/iconStandAlone.js +2 -2
- package/dist/esm/components/image/components/pictureSourceStandAlone.js +2 -2
- package/dist/esm/components/image/image2.js +2 -0
- package/dist/esm/components/image/imageStandAlone.js +7 -8
- package/dist/esm/components/image/utils/getFallbackRatio.js +1 -1
- package/dist/esm/components/input/input.js +2 -2
- package/dist/esm/components/input/inputStandAlone.js +3 -5
- package/dist/esm/components/input/types/state.js +1 -1
- package/dist/esm/components/input/utils/state.js +1 -1
- package/dist/esm/components/inputBase/inputBase.js +2 -2
- package/dist/esm/components/inputBase/inputBaseStandAlone.js +2 -2
- package/dist/esm/components/inputBase/types/state.js +1 -1
- package/dist/esm/components/inputBase/utils/state.js +1 -1
- package/dist/esm/components/inputDecoration/inputDecoration.js +2 -2
- package/dist/esm/components/inputDecoration/inputDecorationStandAlone.js +2 -2
- package/dist/esm/components/inputDecoration/types/state.js +1 -1
- package/dist/esm/components/inputDecoration/utils/state.js +1 -1
- package/dist/esm/components/inputSignature/hook/useDraw.js +1 -1
- package/dist/esm/components/inputSignature/inputSignatureControlled.js +1 -1
- package/dist/esm/components/inputSignature/inputSignatureStandAlone.js +2 -4
- package/dist/esm/components/inputSignature/inputSignatureUncontrolled.js +1 -2
- package/dist/esm/components/inputSignature/utils/getInputSignatureState.js +1 -1
- package/dist/esm/components/label/labelStandAlone.js +2 -3
- package/dist/esm/components/link/helpers/disabled.js +1 -1
- package/dist/esm/components/link/link.js +2 -2
- package/dist/esm/components/link/linkAsButton/linkAsButton.js +2 -2
- package/dist/esm/components/link/linkAsButton/linkAsButtonStandAlone.js +2 -2
- package/dist/esm/components/link/linkStandAlone.js +2 -3
- package/dist/esm/components/listOptions/listOptions.js +2 -2
- package/dist/esm/components/listOptions/listOptionsStandAlone.js +2 -4
- package/dist/esm/components/listOptions/utils/listOptions.utils.js +1 -1
- package/dist/esm/components/modal/fragments/modalHeader.js +2 -9
- package/dist/esm/components/modal/modalControlled.js +1 -1
- package/dist/esm/components/modal/modalStandAlone.js +4 -5
- package/dist/esm/components/modal/modalUnControlled.js +2 -2
- package/dist/esm/components/modal/utils/onlyDesktopSize.js +1 -1
- package/dist/esm/components/option/components.ts/optionLabelSlice.js +2 -2
- package/dist/esm/components/option/option.js +1 -2
- package/dist/esm/components/option/optionStandAlone.js +7 -12
- package/dist/esm/components/option/utils/option.utils.js +1 -1
- package/dist/esm/components/pageControl/components/arrowControlStandAlone.js +2 -2
- package/dist/esm/components/pageControl/components/buttonControlStandAlone.js +2 -2
- package/dist/esm/components/pageControl/components/controls.js +2 -4
- package/dist/esm/components/pageControl/helper/controlType.js +1 -1
- package/dist/esm/components/pageControl/helper/positions.js +1 -1
- package/dist/esm/components/pageControl/pageControl.js +2 -2
- package/dist/esm/components/pageControl/pageControlStandAlone.js +6 -8
- package/dist/esm/components/pagination/fragments/paginationButtonControl.js +2 -2
- package/dist/esm/components/pagination/helpers/adjustMaxCountersNumber.js +1 -1
- package/dist/esm/components/pagination/helpers/getMaxCountersNumber.js +1 -1
- package/dist/esm/components/pagination/pagination.js +2 -2
- package/dist/esm/components/pagination/paginationStandAlone.js +6 -6
- package/dist/esm/components/popover/hooks/positioning/arrowPositionStyles.js +1 -1
- package/dist/esm/components/popover/hooks/positioning/middlewareUtils.js +1 -1
- package/dist/esm/components/popover/hooks/positioning/positionCalculation.js +1 -1
- package/dist/esm/components/popover/hooks/positioning/positionStyles.js +1 -1
- package/dist/esm/components/popover/hooks/positioning/types.js +1 -1
- package/dist/esm/components/popover/hooks/usePopoverInteractions.js +1 -1
- package/dist/esm/components/popover/hooks/usePopoverLifecycle.js +1 -1
- package/dist/esm/components/popover/hooks/usePopoverPositioning.js +1 -1
- package/dist/esm/components/popover/popover.js +1 -1
- package/dist/esm/components/popover/popoverStandAlone.js +2 -3
- package/dist/esm/components/popover/positioning/middlewares.js +1 -0
- package/dist/esm/components/popover/types/animation.js +1 -1
- package/dist/esm/components/popover/utils/placement.utils.js +1 -1
- package/dist/esm/components/popover/utils/styling.utils.js +1 -1
- package/dist/esm/components/portal/portal.js +1 -1
- package/dist/esm/components/progressBar/progressBar.js +2 -2
- package/dist/esm/components/progressBar/progressBarStandAlone.js +2 -4
- package/dist/esm/components/radioButton/radioButton.js +2 -2
- package/dist/esm/components/radioButton/radioButtonStandAlone.js +2 -8
- package/dist/esm/components/radioButton/utils/aria.utils.js +1 -1
- package/dist/esm/components/radioButton/utils/state.utils.js +1 -1
- package/dist/esm/components/select/index.js +2 -0
- package/dist/esm/components/select/selectControlled.js +1 -0
- package/dist/esm/components/select/selectStandAlone.js +2 -0
- package/dist/esm/components/select/selectUncontrolled.js +1 -0
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileAnimation.js +2 -7
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileContainerBox.js +6 -13
- package/dist/esm/components/selectorBoxFile/hooks/useBorderAnimation.js +1 -1
- package/dist/esm/components/selectorBoxFile/selectorBoxFile.js +2 -2
- package/dist/esm/components/selectorBoxFile/selectorBoxFileStandAlone.js +2 -8
- package/dist/esm/components/selectorBoxFile/utils/animation/animation.js +1 -1
- package/dist/esm/components/selectorBoxFile/utils/state/state.js +1 -1
- package/dist/esm/components/selectorBoxFile/utils/translateValue/translateValue.js +1 -1
- package/dist/esm/components/skeleton/skeleton2.js +2 -0
- package/dist/esm/components/skeleton/skeletonStandAlone.js +2 -2
- package/dist/esm/components/slider/components/sliderButtonStandAlone.js +1 -1
- package/dist/esm/components/slider/components/sliderHelperTextStandAlone.js +1 -3
- package/dist/esm/components/slider/components/sliderScaleStandAlone.js +2 -2
- package/dist/esm/components/slider/components/sliderThumbStandAlone.js +1 -1
- package/dist/esm/components/slider/slider.js +1 -2
- package/dist/esm/components/slider/sliderStandAlone.js +17 -19
- package/dist/esm/components/slider/utils/accessibility.utils.js +1 -1
- package/dist/esm/components/slider/utils/slider.utils.js +1 -1
- package/dist/esm/components/slider/utils/state.utils.js +1 -1
- package/dist/esm/components/slider/utils/ui.utils.js +1 -1
- package/dist/esm/components/snackbar/hooks/useSnackbarAutoClose.js +1 -1
- package/dist/esm/components/snackbar/snackbar.js +2 -2
- package/dist/esm/components/snackbar/snackbarStandAlone.js +1 -1
- package/dist/esm/components/stepperNumber/helpers/aria.js +1 -1
- package/dist/esm/components/stepperNumber/helpers/screnReader.js +1 -1
- package/dist/esm/components/stepperNumber/helpers/stepState.js +1 -1
- package/dist/esm/components/stepperNumber/stepperNumber.js +2 -2
- package/dist/esm/components/stepperNumber/stepperNumberStandAlone.js +3 -10
- package/dist/esm/components/table/hooks/useTableHasScroll.js +1 -1
- package/dist/esm/components/table/hooks/useTableShadow.js +1 -1
- package/dist/esm/components/table/hooks/useTableStickyLeftColumns.js +1 -1
- package/dist/esm/components/table/hooks/useTableStickyRightColumns.js +1 -1
- package/dist/esm/components/table/table.js +1 -1
- package/dist/esm/components/table/tableStandAlone.js +5 -5
- package/dist/esm/components/tableBody/tableBody.js +1 -2
- package/dist/esm/components/tableBody/tableBodyStandAlone.js +2 -2
- package/dist/esm/components/tableCaption/tableCaption.js +1 -2
- package/dist/esm/components/tableCaption/tableCaptionStandAlone.js +2 -2
- package/dist/esm/components/tableCell/tableCell.js +1 -2
- package/dist/esm/components/tableCell/tableCellStandAlone.js +2 -2
- package/dist/esm/components/tableDivider/tableDivider.js +1 -2
- package/dist/esm/components/tableDivider/tableDividerStandAlone.js +2 -2
- package/dist/esm/components/tableFoot/tableFoot.js +1 -2
- package/dist/esm/components/tableFoot/tableFootStandAlone.js +2 -2
- package/dist/esm/components/tableHead/tableHead.js +1 -2
- package/dist/esm/components/tableHead/tableHeadStandAlone.js +2 -2
- package/dist/esm/components/tableRow/tableRow.js +1 -2
- package/dist/esm/components/tableRow/tableRowStandAlone.js +2 -2
- package/dist/esm/components/tabs/hooks/useTabs/useTabs.js +1 -1
- package/dist/esm/components/tabs/tabsControlled.js +2 -2
- package/dist/esm/components/tabs/tabsStandAlone.js +4 -6
- package/dist/esm/components/tabs/tabsUnControlled.js +2 -2
- package/dist/esm/components/tabs/utils/keyMove/keLeftMove.js +1 -1
- package/dist/esm/components/tabs/utils/keyMove/keyRightMove.js +1 -1
- package/dist/esm/components/tag/tag.js +2 -2
- package/dist/esm/components/tag/tagStandAlone.js +2 -4
- package/dist/esm/components/text/text2.js +1 -0
- package/dist/esm/components/text/textStandAlone.js +2 -2
- package/dist/esm/components/textArea/components/errorStandAlone.js +1 -3
- package/dist/esm/components/textArea/components/helpMessageStandAlone.js +1 -1
- package/dist/esm/components/textArea/components/textCount/textCount.js +2 -2
- package/dist/esm/components/textArea/components/textCount/textCountStandAlone.js +5 -5
- package/dist/esm/components/textArea/components/titleStandAlone.js +1 -1
- package/dist/esm/components/textArea/textArea.js +2 -2
- package/dist/esm/components/textArea/textAreaStandAlone.js +5 -12
- package/dist/esm/components/textArea/utils/aria.utils.js +1 -1
- package/dist/esm/components/textArea/utils/state.utils.js +1 -1
- package/dist/esm/components/toggle/toggleControlled.js +2 -2
- package/dist/esm/components/toggle/toggleStandAlone.js +2 -4
- package/dist/esm/components/toggle/toggleUnControlled.js +2 -2
- package/dist/esm/components/toggle/utils/buildComponentProps.js +1 -1
- package/dist/esm/components/toggle/utils/thumbTransformCalculations.js +1 -1
- package/dist/esm/components/tooltip/components/tooltipTrigger.js +1 -1
- package/dist/esm/components/tooltip/hooks/useTooltip.js +1 -1
- package/dist/esm/components/tooltip/hooks/useTooltipAsModal.js +1 -1
- package/dist/esm/components/tooltip/hooks/useTooltipAsModalAriaLabel.js +1 -1
- package/dist/esm/components/tooltip/positioning/computePosition.js +1 -1
- package/dist/esm/components/tooltip/tooltipControlled.js +1 -1
- package/dist/esm/components/tooltip/tooltipStandAlone.js +2 -10
- package/dist/esm/components/tooltip/tooltipUnControlled.js +1 -1
- package/dist/esm/components/tooltip/utils/tooltip.utils.js +1 -1
- package/dist/esm/components/virtualKeyboard/components/digitButton.js +2 -2
- package/dist/esm/components/virtualKeyboard/virtualKeyboard.js +2 -2
- package/dist/esm/components/virtualKeyboard/virtualKeyboardStandAlone.js +2 -4
- package/dist/esm/index.js +1 -1
- package/dist/esm/lib/components/customComponent/customComponent.js +2 -2
- package/dist/esm/lib/components/elementOrIcon/elementOrIcon.js +1 -1
- package/dist/esm/lib/components/errorMessage/errorMessage.js +1 -2
- package/dist/esm/lib/components/errorMessage/errorMessageStandAlone.js +1 -4
- package/dist/esm/lib/components/itemRove/itemRove.js +2 -2
- package/dist/esm/lib/components/overlay/overlay.js +2 -2
- package/dist/esm/lib/components/overlay/overlayStandAlone.js +2 -2
- package/dist/esm/lib/components/screen-reader-only/screenReaderOnly.js +1 -0
- package/dist/esm/lib/components/screen-reader-only/screenReaderOnlyStandAlone.js +1 -0
- package/dist/esm/lib/constants/keyboardKeys/keyboardKeys.js +1 -1
- package/dist/esm/lib/hooks/useClassName/useClassName.js +1 -1
- package/dist/esm/lib/hooks/useClickOutside/useClickOutside.js +1 -1
- package/dist/esm/lib/hooks/useContentVisibility/useContentVisibility.js +1 -1
- package/dist/esm/lib/hooks/useContentVisibility/utils/contentVisibility.js +1 -0
- package/dist/esm/lib/hooks/useEscPressed/useEscPressed.js +1 -1
- package/dist/esm/lib/hooks/useManageState/useManageState.js +1 -1
- package/dist/esm/lib/hooks/useMediaDevice/useActiveBreakpoints.js +1 -1
- package/dist/esm/lib/hooks/useMediaDevice/useMediaDevice.js +1 -1
- package/dist/esm/lib/hooks/useRoveFocus/useRoveFocus.js +1 -1
- package/dist/esm/lib/hooks/useScrollBlock/useScrollBlock.js +1 -1
- package/dist/esm/lib/hooks/useScrollBlock/utils/useScrollBlock.utils.js +1 -1
- package/dist/esm/lib/hooks/useScrollDetection/useScrollDetection.js +1 -0
- package/dist/esm/lib/hooks/useScrollEffect/useScrollEffect.js +1 -1
- package/dist/esm/lib/hooks/useScrollEffect/utils/scrollPercentage.js +1 -1
- package/dist/esm/lib/hooks/useSwipeDown/useSwipeDown.js +1 -1
- package/dist/esm/lib/hooks/useSwipeDown/utils/convertDurationToNumber.js +1 -1
- package/dist/esm/lib/hooks/useTrapFocus/useTrapFocus.js +1 -1
- package/dist/esm/lib/provider/cssProvider/provider.d.ts +60 -0
- package/dist/esm/lib/provider/cssProvider/provider.js +1 -1
- package/dist/esm/lib/provider/cssProvider/stats/stats.d.ts +1398 -0
- package/dist/esm/lib/provider/cssProvider/stats/stats.js +1 -1641
- package/dist/esm/lib/provider/genericComponentsProvider/defaultGenericComponents.js +3 -3
- package/dist/esm/lib/provider/genericComponentsProvider/genericComponentsProvider.js +1 -1
- package/dist/esm/lib/provider/kubitProvider/kubitProvider.js +1 -1
- package/dist/esm/lib/provider/stylesProvider/stylesProvider.js +2 -2
- package/dist/esm/lib/provider/utilsProvider/utilsProvider.js +2 -2
- package/dist/esm/lib/types/breakpoints/breakpoints.js +1 -1
- package/dist/esm/lib/types/positions/positions.js +1 -1
- package/dist/esm/lib/types/states/states.js +1 -1
- package/dist/esm/lib/utils/classNames/classNames.js +1 -1
- package/dist/esm/lib/utils/date/constants/common.constant.js +1 -1
- package/dist/esm/lib/utils/date/constants/format.constant.js +1 -1
- package/dist/esm/lib/utils/date/constants/parser.constant.js +1 -1
- package/dist/esm/lib/utils/date/date.js +1 -1
- package/dist/esm/lib/utils/date/formatDate.js +1 -1
- package/dist/esm/lib/utils/date/locale.js +1 -1
- package/dist/esm/lib/utils/date/transformDate.js +1 -1
- package/dist/esm/lib/utils/date/types/format.types.js +1 -1
- package/dist/esm/lib/utils/date/validateDate.js +1 -1
- package/dist/esm/lib/utils/focusHandlers/focusHandlers.js +1 -1
- package/dist/esm/lib/utils/is/isValidHttpUrl.js +1 -1
- package/dist/esm/lib/utils/keyboard/keyboard.js +1 -1
- package/dist/esm/lib/utils/pickCustomAttributes/pickCustomAttributes.js +1 -1
- package/dist/esm/lib/utils/process/processCommonProp.js +1 -0
- package/dist/esm/lib/{hooks/syncRefs → utils/refs}/syncRefs.js +1 -1
- package/dist/esm/lib/utils/scroll/hasScroll.js +1 -1
- package/dist/styles/{kubit/css/kubit.css → kubit.css} +118 -309
- package/dist/types/index.d.ts +1334 -874
- package/package.json +133 -56
- 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/components/renderIf/renderIf.js +0 -1
- 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/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 -6
- 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 -10
- 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 -9
- 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/components/renderIf/renderIf.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/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.min.css +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -121,6 +121,58 @@ export declare type AccordionVariantStyles<Variant extends string> = AccordionSt
|
|
|
121
121
|
[key in Variant]: AccordionStyleProps;
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Alert component for displaying notification messages.
|
|
126
|
+
*
|
|
127
|
+
* This component renders styled alerts.
|
|
128
|
+
* Useful for notifications, success/error messages, and informational banners.
|
|
129
|
+
* Always visible - no open/close functionality.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```tsx
|
|
133
|
+
* <Alert
|
|
134
|
+
* variant="success"
|
|
135
|
+
* content={{ content: "Your changes have been saved." }}
|
|
136
|
+
* />
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
export declare const Alert: ForwardRefExoticComponent<AlertProps<string> & RefAttributes<HTMLDivElement>>;
|
|
140
|
+
|
|
141
|
+
declare type AlertCssClasses = ComponentSelected<ComponentsTypesComponents['ALERT']>;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Interface for the Alert component.
|
|
145
|
+
* Extends the AlertStandAloneProps interface and adds a variant and additional CSS classes.
|
|
146
|
+
*
|
|
147
|
+
* @template Variant - The type of the variant for the Alert.
|
|
148
|
+
*/
|
|
149
|
+
export declare interface AlertProps<Variant = undefined extends string ? unknown : string> extends AlertStandAloneProps {
|
|
150
|
+
variant?: Variant;
|
|
151
|
+
additionalClasses?: Partial<AlertCssClasses>;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Interface for the standalone Alert component.
|
|
156
|
+
* A simplified component that displays alert messages. Always visible.
|
|
157
|
+
*/
|
|
158
|
+
export declare interface AlertStandAloneProps extends DataAttributes {
|
|
159
|
+
content: CommonTextProps;
|
|
160
|
+
role?: React.AriaRole;
|
|
161
|
+
id?: string;
|
|
162
|
+
ariaLive?: AriaAttributes['aria-live'];
|
|
163
|
+
cssClasses?: AlertCssClasses;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export declare interface AlertStyleProps extends CssLibPropsType {
|
|
167
|
+
_container?: CssLibPropsType;
|
|
168
|
+
_contentContainer?: CssLibPropsType;
|
|
169
|
+
_description?: CssLibPropsType;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export declare type AlertVariantStyles<Variant extends string> = AlertStyleProps & {
|
|
173
|
+
[key in Variant]: AlertStyleProps;
|
|
174
|
+
};
|
|
175
|
+
|
|
124
176
|
export declare interface ArrowsControlStyleProps extends CssLibPropsType {
|
|
125
177
|
_leftArrowControlContainer?: CssLibPropsType;
|
|
126
178
|
_rightArrowControlContainer?: CssLibPropsType;
|
|
@@ -402,7 +454,7 @@ export declare interface BreadcrumbsStandAloneProps extends BreadcrumbAriaAttrib
|
|
|
402
454
|
id?: string;
|
|
403
455
|
crumbs: BreadcrumbProps[];
|
|
404
456
|
minCharLimit?: number;
|
|
405
|
-
dividerIcon?:
|
|
457
|
+
dividerIcon?: CommonIconProps;
|
|
406
458
|
lastOneCrumbComponent?: TextComponentType;
|
|
407
459
|
cssClasses?: BreadcrumbsCssClasses;
|
|
408
460
|
}
|
|
@@ -426,17 +478,25 @@ export declare interface BreadcrumbStandAloneProps extends DataAttributes {
|
|
|
426
478
|
crumb: BreadcrumbProps;
|
|
427
479
|
lastCrumb?: boolean;
|
|
428
480
|
lastOneCrumbComponent?: TextComponentType;
|
|
429
|
-
dividerIcon?:
|
|
481
|
+
dividerIcon?: CommonIconProps;
|
|
430
482
|
}
|
|
431
483
|
|
|
432
484
|
export declare type BreadcrumbsVariantStyles<Variant extends string> = BreadcrumbsStyleProps & {
|
|
433
485
|
[key in Variant]: BreadcrumbsStyleProps;
|
|
434
486
|
};
|
|
435
487
|
|
|
488
|
+
/**
|
|
489
|
+
* Defines responsive breakpoints in pixels for different screen sizes.
|
|
490
|
+
* Used for creating media queries and responsive layouts.
|
|
491
|
+
*/
|
|
436
492
|
declare interface Breakpoints {
|
|
493
|
+
/** Small screen breakpoint (typically mobile landscape) - default: 576px */
|
|
437
494
|
sm: number;
|
|
495
|
+
/** Medium screen breakpoint (typically tablets) - default: 768px */
|
|
438
496
|
md: number;
|
|
497
|
+
/** Large screen breakpoint (typically desktops) - default: 992px */
|
|
439
498
|
lg: number;
|
|
499
|
+
/** Extra large screen breakpoint (typically large desktops) - default: 1200px */
|
|
440
500
|
xl: number;
|
|
441
501
|
}
|
|
442
502
|
|
|
@@ -496,7 +556,7 @@ export declare interface ButtonProps<Variant = undefined extends string | unknow
|
|
|
496
556
|
export declare interface ButtonStandAloneProps extends PropsWithChildren<ButtonStylesProps>, ButtonAriaProps, DataAttributes {
|
|
497
557
|
type?: HTMLButtonElement['type'];
|
|
498
558
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
499
|
-
icon?:
|
|
559
|
+
icon?: CommonIconProps;
|
|
500
560
|
form?: string;
|
|
501
561
|
role?: AriaRole;
|
|
502
562
|
title?: string;
|
|
@@ -534,6 +594,28 @@ export declare type ButtonVariantStyles<Variant extends string> = ButtonStylePro
|
|
|
534
594
|
[key in Variant]?: Partial<ButtonStyleProps>;
|
|
535
595
|
};
|
|
536
596
|
|
|
597
|
+
/**
|
|
598
|
+
* Calendar component for date selection.
|
|
599
|
+
*
|
|
600
|
+
* This component provides an interactive calendar interface for selecting single dates
|
|
601
|
+
* or date ranges. It supports month/year navigation, date restrictions, and customizable variants.
|
|
602
|
+
*
|
|
603
|
+
* @example
|
|
604
|
+
* ```tsx
|
|
605
|
+
* <Calendar
|
|
606
|
+
* selectedDate={new Date()}
|
|
607
|
+
* onSelectedDateChange={(date) => console.log(date)}
|
|
608
|
+
* />
|
|
609
|
+
*
|
|
610
|
+
* // Date range selection:
|
|
611
|
+
* <Calendar
|
|
612
|
+
* hasRange
|
|
613
|
+
* selectedDate={startDate}
|
|
614
|
+
* secondSelectedDate={endDate}
|
|
615
|
+
* onSelectedDateChange={(dates) => console.log(dates)}
|
|
616
|
+
* />
|
|
617
|
+
* ```
|
|
618
|
+
*/
|
|
537
619
|
export declare const Calendar: ForwardRefExoticComponent<CalendarProps<string> & RefAttributes<HTMLDivElement>>;
|
|
538
620
|
|
|
539
621
|
/**
|
|
@@ -647,87 +729,121 @@ export declare type CalendarVariantStyles<Variant extends string> = CalendarStyl
|
|
|
647
729
|
};
|
|
648
730
|
|
|
649
731
|
/**
|
|
650
|
-
*
|
|
732
|
+
* Card component for displaying content in a structured container.
|
|
733
|
+
*
|
|
734
|
+
* This component wraps content in a styled card with optional header, content, and footer sections.
|
|
735
|
+
* It is useful for organizing information, displaying items in a list, or creating selectable cards.
|
|
736
|
+
* Supports interactive states (hover, selected) and custom theming via variants.
|
|
651
737
|
*
|
|
652
|
-
*
|
|
653
|
-
*
|
|
654
|
-
* types, enabling flexible theming and styling.
|
|
738
|
+
* All sections (header, content, footer) are optional and can accept either text or any React node.
|
|
739
|
+
* The card can respond to user interaction through onClick, onMouseEnter, and onMouseLeave handlers.
|
|
655
740
|
*
|
|
656
|
-
* Internally, it
|
|
741
|
+
* Internally, it computes CSS classes using a custom hook and delegates rendering to {@link CardStandAlone}.
|
|
657
742
|
*
|
|
658
|
-
*
|
|
659
|
-
*
|
|
743
|
+
* This component accepts a generic type parameter `<Variant extends string>` to allow for custom variant values,
|
|
744
|
+
* enabling flexible theming and styling.
|
|
660
745
|
*
|
|
661
746
|
* @example
|
|
662
747
|
* ```tsx
|
|
663
|
-
* <
|
|
748
|
+
* <Card
|
|
749
|
+
* header={{ content: "Card Title" }}
|
|
750
|
+
* content="This is the card content"
|
|
751
|
+
* footer={{ content: "Footer information" }}
|
|
752
|
+
* />
|
|
664
753
|
*
|
|
665
754
|
* // With a custom variant type:
|
|
666
|
-
* type MyVariant = "
|
|
667
|
-
* <
|
|
755
|
+
* type MyVariant = "primary" | "secondary";
|
|
756
|
+
* <Card<MyVariant>
|
|
757
|
+
* header="Primary Card"
|
|
758
|
+
* content={<div>Custom content</div>}
|
|
759
|
+
* variant="primary"
|
|
760
|
+
* state="selected"
|
|
761
|
+
* />
|
|
668
762
|
* ```
|
|
669
763
|
*/
|
|
670
|
-
export declare const
|
|
764
|
+
export declare const Card: ForwardRefExoticComponent<CardProps<string> & RefAttributes<HTMLDivElement>>;
|
|
671
765
|
|
|
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
|
-
};
|
|
766
|
+
declare type CardCssClasses = ComponentSelected<ComponentsTypesComponents['CARD']>;
|
|
681
767
|
|
|
682
768
|
/**
|
|
683
|
-
* Interface for the
|
|
684
|
-
* Extends the
|
|
769
|
+
* Interface for the card component with a variant.
|
|
770
|
+
* Extends the ICardStandAlone interface and adds a variant and additional CSS classes.
|
|
685
771
|
*
|
|
686
|
-
* @template Variant - The type of the variant for the
|
|
772
|
+
* @template Variant - The type of the variant for the card.
|
|
687
773
|
*/
|
|
688
|
-
export declare interface
|
|
774
|
+
export declare interface CardProps<Variant extends string | unknown> extends Omit<CardStandAloneProps, 'cssClasses'> {
|
|
689
775
|
variant?: Variant;
|
|
690
|
-
additionalClasses?:
|
|
776
|
+
additionalClasses?: Partial<CardCssClasses>;
|
|
691
777
|
}
|
|
692
778
|
|
|
693
779
|
/**
|
|
694
|
-
*
|
|
780
|
+
* Standalone card component for rendering a section with optional header, content and footer areas.
|
|
781
|
+
*
|
|
782
|
+
* This component displays a styled card container with three optional sections:
|
|
783
|
+
* - header: Can be text or any React node
|
|
784
|
+
* - content: Can be text or any React node
|
|
785
|
+
* - footer: Can be text or any React node
|
|
786
|
+
*
|
|
787
|
+
* Supports interactive states like hover and selected, making it useful for
|
|
788
|
+
* selectable cards, clickable items, or informational panels.
|
|
789
|
+
*
|
|
790
|
+
* This component accepts a generic type parameter `<Variant extends string>` to allow for custom variant values,
|
|
791
|
+
* enabling flexible theming and styling of the card.
|
|
792
|
+
*
|
|
793
|
+
* @example
|
|
794
|
+
* ```tsx
|
|
795
|
+
* <CardStandAlone
|
|
796
|
+
* header={{ content: "Card Title" }}
|
|
797
|
+
* content="Card content goes here"
|
|
798
|
+
* footer={{ content: "Footer text" }}
|
|
799
|
+
* />
|
|
800
|
+
*
|
|
801
|
+
* // With a custom variant type:
|
|
802
|
+
* type MyVariant = "primary" | "secondary";
|
|
803
|
+
* <CardStandAlone<MyVariant>
|
|
804
|
+
* header="Primary Card"
|
|
805
|
+
* content={<div>Custom content</div>}
|
|
806
|
+
* variant="primary"
|
|
807
|
+
* state="selected"
|
|
808
|
+
* />
|
|
809
|
+
* ```
|
|
695
810
|
*/
|
|
696
|
-
declare
|
|
697
|
-
[DEVICE_BREAKPOINTS.DESKTOP]: string;
|
|
698
|
-
[DEVICE_BREAKPOINTS.MOBILE]: string;
|
|
699
|
-
[DEVICE_BREAKPOINTS.TABLET]: string;
|
|
700
|
-
}
|
|
811
|
+
export declare const CardStandAlone: ForwardRefExoticComponent<CardStandAloneProps & RefAttributes<HTMLDivElement>>;
|
|
701
812
|
|
|
702
813
|
/**
|
|
703
|
-
* Interface for the standalone
|
|
704
|
-
*
|
|
814
|
+
* Interface for the standalone card component.
|
|
815
|
+
* It includes optional custom CSS classes, header, content, footer sections and interactive states.
|
|
705
816
|
*/
|
|
706
|
-
export declare interface
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
cssClasses?: CardImageCssClasses;
|
|
817
|
+
export declare interface CardStandAloneProps extends DataAttributes {
|
|
818
|
+
cssClasses?: CardCssClasses;
|
|
819
|
+
header?: CommonTextProps | ReactNode;
|
|
820
|
+
content?: CommonTextProps | ReactNode;
|
|
821
|
+
footer?: CommonTextProps | ReactNode;
|
|
822
|
+
state?: StateType;
|
|
823
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
824
|
+
onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
|
|
825
|
+
onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
|
|
716
826
|
}
|
|
717
827
|
|
|
718
|
-
|
|
719
|
-
|
|
828
|
+
/**
|
|
829
|
+
* Interface representing the styles for the card component.
|
|
830
|
+
*/
|
|
831
|
+
export declare interface CardStyleProps extends CssLibPropsType {
|
|
832
|
+
_header?: CssLibPropsType;
|
|
720
833
|
_content?: CssLibPropsType;
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
_description?: CssLibPropsType;
|
|
726
|
-
_linkContainer?: CssLibPropsType;
|
|
834
|
+
_footer?: CssLibPropsType;
|
|
835
|
+
$pseudo?: {
|
|
836
|
+
hover?: CssLibPropsType;
|
|
837
|
+
};
|
|
727
838
|
}
|
|
728
839
|
|
|
729
|
-
|
|
730
|
-
|
|
840
|
+
/**
|
|
841
|
+
* Type representing the styles for different variants of the card component.
|
|
842
|
+
*
|
|
843
|
+
* @template Variant - The type of the variant keys.
|
|
844
|
+
*/
|
|
845
|
+
export declare type CardVariantStyles<Variant extends string> = CardStyleProps & {
|
|
846
|
+
[key in Variant]: CardStyleProps;
|
|
731
847
|
};
|
|
732
848
|
|
|
733
849
|
export declare const Carousel: ForwardRefExoticComponent<Omit<ICarousel, "ref"> & RefAttributes<CarouselRefType>>;
|
|
@@ -788,16 +904,63 @@ export declare type ChecboxVariantStyles<Variant extends string> = ChecboxStyleP
|
|
|
788
904
|
[key in Variant]?: ChecboxStyleProps;
|
|
789
905
|
};
|
|
790
906
|
|
|
907
|
+
/**
|
|
908
|
+
* CheckboxUnControlled component with internal state management.
|
|
909
|
+
*
|
|
910
|
+
* This component renders a checkbox that manages its own checked state internally.
|
|
911
|
+
* Useful when you don't need to control the checkbox state from a parent component.
|
|
912
|
+
* It automatically handles toggle behavior on user interaction.
|
|
913
|
+
*
|
|
914
|
+
* @example
|
|
915
|
+
* ```tsx
|
|
916
|
+
* <CheckboxUnControlled
|
|
917
|
+
* checked={false}
|
|
918
|
+
* onChange={(e) => console.log(e.target.checked)}
|
|
919
|
+
* label="Remember me"
|
|
920
|
+
* />
|
|
921
|
+
* ```
|
|
922
|
+
*/
|
|
791
923
|
export declare const Checkbox: ForwardRefExoticComponent<CheckboxUnControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
792
924
|
|
|
793
925
|
declare type CheckboxAriaAttributes = Pick<React.AriaAttributes, 'aria-label' | 'aria-labelledby' | 'aria-hidden' | 'aria-describedby'>;
|
|
794
926
|
|
|
927
|
+
/**
|
|
928
|
+
* CheckboxBaseUnControlled component with internal state management.
|
|
929
|
+
*
|
|
930
|
+
* This is a low-level uncontrolled checkbox that manages its own checked state.
|
|
931
|
+
* It automatically handles toggle behavior and notifies via onChange callback.
|
|
932
|
+
* Useful for checkboxes that don't require external state control.
|
|
933
|
+
*
|
|
934
|
+
* @example
|
|
935
|
+
* ```tsx
|
|
936
|
+
* <CheckboxBaseUnControlled
|
|
937
|
+
* checked={false}
|
|
938
|
+
* onChange={(e) => console.log(e.target.checked)}
|
|
939
|
+
* />
|
|
940
|
+
* ```
|
|
941
|
+
*/
|
|
795
942
|
export declare const CheckboxBase: ForwardRefExoticComponent<CheckboxBaseUnControlledProps<string> & {
|
|
796
943
|
children?: ReactNode | undefined;
|
|
797
944
|
} & RefAttributes<HTMLDivElement>>;
|
|
798
945
|
|
|
799
946
|
declare type CheckboxBaseAriaAttributesProps = Pick<React.AriaAttributes, 'aria-label' | 'aria-labelledby' | 'aria-hidden' | 'aria-describedby'>;
|
|
800
947
|
|
|
948
|
+
/**
|
|
949
|
+
* CheckboxBaseControlled component for managed checkbox state.
|
|
950
|
+
*
|
|
951
|
+
* This is a low-level checkbox component where the checked state is controlled
|
|
952
|
+
* externally. It handles error states, required validation, and applies appropriate
|
|
953
|
+
* styling based on the checkbox state (checked, unchecked, indeterminate, disabled).
|
|
954
|
+
*
|
|
955
|
+
* @example
|
|
956
|
+
* ```tsx
|
|
957
|
+
* <CheckboxBaseControlled
|
|
958
|
+
* checked={isChecked}
|
|
959
|
+
* onChange={(e) => setIsChecked(e.target.checked)}
|
|
960
|
+
* error={hasError}
|
|
961
|
+
* />
|
|
962
|
+
* ```
|
|
963
|
+
*/
|
|
801
964
|
export declare const CheckboxBaseControlled: ForwardRefExoticComponent<CheckboxBaseControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
802
965
|
|
|
803
966
|
/**
|
|
@@ -840,6 +1003,22 @@ export declare interface CheckboxBaseStandAloneProps extends InputActionsProps,
|
|
|
840
1003
|
*/
|
|
841
1004
|
export declare type CheckboxBaseUnControlledProps<Variant = undefined extends string ? unknown : string> = CheckboxBaseControlledProps<Variant>;
|
|
842
1005
|
|
|
1006
|
+
/**
|
|
1007
|
+
* CheckboxControlled component for managed checkbox state.
|
|
1008
|
+
*
|
|
1009
|
+
* This component renders a checkbox where the checked state is controlled
|
|
1010
|
+
* externally via props. It handles checked, indeterminate, disabled, and
|
|
1011
|
+
* error states with appropriate styling and ARIA attributes.
|
|
1012
|
+
*
|
|
1013
|
+
* @example
|
|
1014
|
+
* ```tsx
|
|
1015
|
+
* <CheckboxControlled
|
|
1016
|
+
* checked={isChecked}
|
|
1017
|
+
* onChange={(e) => setIsChecked(e.target.checked)}
|
|
1018
|
+
* label="Accept terms"
|
|
1019
|
+
* />
|
|
1020
|
+
* ```
|
|
1021
|
+
*/
|
|
843
1022
|
export declare const CheckboxControlled: ForwardRefExoticComponent<CheckboxControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
844
1023
|
|
|
845
1024
|
/**
|
|
@@ -855,10 +1034,6 @@ export declare interface CheckboxControlledProps<Variant = undefined extends str
|
|
|
855
1034
|
|
|
856
1035
|
export declare type CheckboxCssClasses = ComponentSelected<ComponentsTypesComponents['CHECKBOX']>;
|
|
857
1036
|
|
|
858
|
-
export declare type CheckboxLabelType = Omit<LabelStandAloneProps, 'children' | 'inputId'> & {
|
|
859
|
-
content?: string | JSX.Element;
|
|
860
|
-
};
|
|
861
|
-
|
|
862
1037
|
export declare interface CheckboxMessageType {
|
|
863
1038
|
message?: CommonTextProps;
|
|
864
1039
|
icon?: CommonIconProps;
|
|
@@ -880,7 +1055,9 @@ export declare interface CheckboxStandAloneProps extends InputActionsType_2, Dat
|
|
|
880
1055
|
* Reference for the CheckboxStyled component (input element)
|
|
881
1056
|
*/
|
|
882
1057
|
inputRef?: Ref<HTMLInputElement>;
|
|
883
|
-
label?:
|
|
1058
|
+
label?: CommonTextProps & {
|
|
1059
|
+
requiredSymbol?: string | JSX.Element;
|
|
1060
|
+
};
|
|
884
1061
|
errorMessage?: CheckboxMessageType;
|
|
885
1062
|
checkedIcon?: CommonIconProps;
|
|
886
1063
|
checkboxBase?: {
|
|
@@ -950,11 +1127,6 @@ export declare interface ChipStandAloneProps extends DataAttributes {
|
|
|
950
1127
|
rangeIcon?: ElementOrIconProps;
|
|
951
1128
|
errorMessage?: CommonTextProps;
|
|
952
1129
|
rangeSeparator?: CommonTextProps;
|
|
953
|
-
/**
|
|
954
|
-
* @deprecated
|
|
955
|
-
* Use closeIcon -> altText instead
|
|
956
|
-
*/
|
|
957
|
-
deleteText?: string;
|
|
958
1130
|
state: ChipStateType;
|
|
959
1131
|
cssClasses?: ChipCssClasses;
|
|
960
1132
|
}
|
|
@@ -988,7 +1160,7 @@ declare type ComponentSelected<T> = Pick<T, NonVariablesKeys<T>>;
|
|
|
988
1160
|
|
|
989
1161
|
declare type ComponentSelected_2<T> = Pick<T, NonVariablesKeys_2<T>>;
|
|
990
1162
|
|
|
991
|
-
declare type ComponentsTypesAvailableComponents = 'ACCORDION' | 'AVATAR' | 'BADGE' | 'BREADCRUMBS' | 'BUTTON' | 'CALENDAR' | '
|
|
1163
|
+
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
1164
|
|
|
993
1165
|
declare type ComponentsTypesComponents = {
|
|
994
1166
|
ACCORDION: {
|
|
@@ -1004,6 +1176,27 @@ declare type ComponentsTypesComponents = {
|
|
|
1004
1176
|
accordion: string;
|
|
1005
1177
|
};
|
|
1006
1178
|
};
|
|
1179
|
+
ALERT: {
|
|
1180
|
+
container: string;
|
|
1181
|
+
contentcontainer: string;
|
|
1182
|
+
description: string;
|
|
1183
|
+
$_error: {
|
|
1184
|
+
alert: string;
|
|
1185
|
+
container: string;
|
|
1186
|
+
};
|
|
1187
|
+
$_informative: {
|
|
1188
|
+
alert: string;
|
|
1189
|
+
container: string;
|
|
1190
|
+
};
|
|
1191
|
+
$_success: {
|
|
1192
|
+
alert: string;
|
|
1193
|
+
container: string;
|
|
1194
|
+
};
|
|
1195
|
+
$_warning: {
|
|
1196
|
+
alert: string;
|
|
1197
|
+
container: string;
|
|
1198
|
+
};
|
|
1199
|
+
};
|
|
1007
1200
|
AVATAR: {
|
|
1008
1201
|
avatar: string;
|
|
1009
1202
|
dot: string;
|
|
@@ -1079,21 +1272,20 @@ declare type ComponentsTypesComponents = {
|
|
|
1079
1272
|
button: string;
|
|
1080
1273
|
icon: string;
|
|
1081
1274
|
};
|
|
1082
|
-
$
|
|
1275
|
+
$_small: {
|
|
1083
1276
|
button: string;
|
|
1084
1277
|
icon: string;
|
|
1085
1278
|
};
|
|
1086
|
-
$
|
|
1279
|
+
$_alternative: {
|
|
1087
1280
|
button: string;
|
|
1088
|
-
icon: string;
|
|
1089
1281
|
};
|
|
1090
|
-
$
|
|
1282
|
+
$_ghost_alt: {
|
|
1091
1283
|
button: string;
|
|
1092
1284
|
};
|
|
1093
|
-
$
|
|
1285
|
+
$_ghost_primary: {
|
|
1094
1286
|
button: string;
|
|
1095
1287
|
};
|
|
1096
|
-
$
|
|
1288
|
+
$_ghost_secondary: {
|
|
1097
1289
|
button: string;
|
|
1098
1290
|
};
|
|
1099
1291
|
$_primary: {
|
|
@@ -1102,9 +1294,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1102
1294
|
$_secondary: {
|
|
1103
1295
|
button: string;
|
|
1104
1296
|
};
|
|
1105
|
-
$_secondary_alt: {
|
|
1106
|
-
button: string;
|
|
1107
|
-
};
|
|
1108
1297
|
dynamic_values: (styles: {
|
|
1109
1298
|
'$alignText': string;
|
|
1110
1299
|
}) => {
|
|
@@ -1149,22 +1338,16 @@ declare type ComponentsTypesComponents = {
|
|
|
1149
1338
|
loader: string;
|
|
1150
1339
|
};
|
|
1151
1340
|
};
|
|
1152
|
-
|
|
1153
|
-
|
|
1341
|
+
CARD: {
|
|
1342
|
+
card: string;
|
|
1154
1343
|
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
|
-
};
|
|
1344
|
+
footer: string;
|
|
1345
|
+
header: string;
|
|
1165
1346
|
$_default: {
|
|
1166
|
-
|
|
1167
|
-
|
|
1347
|
+
card: string;
|
|
1348
|
+
content: string;
|
|
1349
|
+
footer: string;
|
|
1350
|
+
header: string;
|
|
1168
1351
|
};
|
|
1169
1352
|
};
|
|
1170
1353
|
CAROUSEL: {
|
|
@@ -1219,21 +1402,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1219
1402
|
rangeitemtext: string;
|
|
1220
1403
|
};
|
|
1221
1404
|
};
|
|
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
1405
|
DATA_TABLE: {
|
|
1238
1406
|
data_table: string;
|
|
1239
1407
|
headboxshadow: string;
|
|
@@ -1329,51 +1497,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1329
1497
|
dot: string;
|
|
1330
1498
|
};
|
|
1331
1499
|
};
|
|
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
1500
|
ERROR_MESSAGE: {
|
|
1378
1501
|
error_message: string;
|
|
1379
1502
|
icon: string;
|
|
@@ -1490,76 +1613,11 @@ declare type ComponentsTypesComponents = {
|
|
|
1490
1613
|
optionscontainer: string;
|
|
1491
1614
|
title: string;
|
|
1492
1615
|
titlecontainer: string;
|
|
1493
|
-
$_code_viewer_subtheme: {
|
|
1494
|
-
list_options: string;
|
|
1495
|
-
};
|
|
1496
1616
|
$_default: {
|
|
1497
1617
|
list_options: string;
|
|
1498
1618
|
title: string;
|
|
1499
1619
|
titlecontainer: string;
|
|
1500
1620
|
};
|
|
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
1621
|
};
|
|
1564
1622
|
MODAL: {
|
|
1565
1623
|
modal: string;
|
|
@@ -1578,13 +1636,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1578
1636
|
modal: string;
|
|
1579
1637
|
};
|
|
1580
1638
|
};
|
|
1581
|
-
NAVBAR: {
|
|
1582
|
-
navbar: string;
|
|
1583
|
-
itemcontainer: string;
|
|
1584
|
-
$_default: {
|
|
1585
|
-
navbar: string;
|
|
1586
|
-
};
|
|
1587
|
-
};
|
|
1588
1639
|
OPTION: {
|
|
1589
1640
|
option: string;
|
|
1590
1641
|
checkedicon: string;
|
|
@@ -1595,55 +1646,12 @@ declare type ComponentsTypesComponents = {
|
|
|
1595
1646
|
labeliconcontainer: string;
|
|
1596
1647
|
sublabel: string;
|
|
1597
1648
|
sublabelcontainer: string;
|
|
1598
|
-
$
|
|
1599
|
-
option: string;
|
|
1600
|
-
label: string;
|
|
1601
|
-
};
|
|
1602
|
-
$_input_dropdown: {
|
|
1649
|
+
$_default: {
|
|
1603
1650
|
option: string;
|
|
1604
1651
|
icon: string;
|
|
1605
1652
|
label: string;
|
|
1606
1653
|
labeliconcontainer: string;
|
|
1607
1654
|
};
|
|
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;
|
|
1631
|
-
label: string;
|
|
1632
|
-
labeliconcontainer: string;
|
|
1633
|
-
};
|
|
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
1655
|
};
|
|
1648
1656
|
OVERLAY: {
|
|
1649
1657
|
overlay: string;
|
|
@@ -1709,63 +1717,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1709
1717
|
$_default: {
|
|
1710
1718
|
progress_bar: string;
|
|
1711
1719
|
};
|
|
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
1720
|
};
|
|
1770
1721
|
RADIO_BUTTON: {
|
|
1771
1722
|
radio_button: string;
|
|
@@ -1789,12 +1740,8 @@ declare type ComponentsTypesComponents = {
|
|
|
1789
1740
|
arrowcontainer: string;
|
|
1790
1741
|
arrowposition: string;
|
|
1791
1742
|
arrowsize: string;
|
|
1792
|
-
closebuttoncontainer: string;
|
|
1793
|
-
closebuttonicon: string;
|
|
1794
|
-
headercontainer: string;
|
|
1795
1743
|
paragraph: string;
|
|
1796
1744
|
paragraphcontainer: string;
|
|
1797
|
-
title: string;
|
|
1798
1745
|
tooltipexternalcontainer: string;
|
|
1799
1746
|
tooltipinternalcontainer: string;
|
|
1800
1747
|
popover: {
|
|
@@ -1802,16 +1749,57 @@ declare type ComponentsTypesComponents = {
|
|
|
1802
1749
|
popover: string;
|
|
1803
1750
|
};
|
|
1804
1751
|
arrow: string;
|
|
1805
|
-
divider: string;
|
|
1806
|
-
dragicon: string;
|
|
1807
|
-
dragiconcontainer: string;
|
|
1808
1752
|
tooltipalignstyles: string;
|
|
1809
1753
|
tooltipasmodal: string;
|
|
1810
1754
|
};
|
|
1811
1755
|
};
|
|
1756
|
+
SELECT: {
|
|
1757
|
+
select: string;
|
|
1758
|
+
buttonorlinkcontainer: string;
|
|
1759
|
+
iconclosed: string;
|
|
1760
|
+
iconopened: string;
|
|
1761
|
+
labelclosed: string;
|
|
1762
|
+
labelopened: string;
|
|
1763
|
+
listoptionscontainer: string;
|
|
1764
|
+
$_default: {
|
|
1765
|
+
select: string;
|
|
1766
|
+
buttonorlinkcontainer: string;
|
|
1767
|
+
iconclosed: string;
|
|
1768
|
+
iconopened: string;
|
|
1769
|
+
labelclosed: string;
|
|
1770
|
+
labelopened: string;
|
|
1771
|
+
listoptionscontainer: string;
|
|
1772
|
+
};
|
|
1773
|
+
$_side_menu: {
|
|
1774
|
+
select: string;
|
|
1775
|
+
buttonorlinkcontainer: string;
|
|
1776
|
+
iconclosed: string;
|
|
1777
|
+
iconopened: string;
|
|
1778
|
+
labelclosed: string;
|
|
1779
|
+
labelopened: string;
|
|
1780
|
+
listoptionscontainer: string;
|
|
1781
|
+
};
|
|
1782
|
+
$_topbar: {
|
|
1783
|
+
select: string;
|
|
1784
|
+
buttonorlinkcontainer: string;
|
|
1785
|
+
iconclosed: string;
|
|
1786
|
+
iconopened: string;
|
|
1787
|
+
labelclosed: string;
|
|
1788
|
+
labelopened: string;
|
|
1789
|
+
listoptionscontainer: string;
|
|
1790
|
+
};
|
|
1791
|
+
$_topbar_tab: {
|
|
1792
|
+
select: string;
|
|
1793
|
+
buttonorlinkcontainer: string;
|
|
1794
|
+
iconclosed: string;
|
|
1795
|
+
iconopened: string;
|
|
1796
|
+
labelclosed: string;
|
|
1797
|
+
labelopened: string;
|
|
1798
|
+
listoptionscontainer: string;
|
|
1799
|
+
};
|
|
1800
|
+
};
|
|
1812
1801
|
SELECTOR_BOX_FILE: {
|
|
1813
1802
|
selector_box_file: string;
|
|
1814
|
-
actiondescriptioncontainer: string;
|
|
1815
1803
|
actionicon: string;
|
|
1816
1804
|
actioniconandactiontextcontainer: string;
|
|
1817
1805
|
animationcontainer: string;
|
|
@@ -1824,57 +1812,13 @@ declare type ComponentsTypesComponents = {
|
|
|
1824
1812
|
containerboxfilename: string;
|
|
1825
1813
|
containerboxicon: string;
|
|
1826
1814
|
containerboxtextscontainer: string;
|
|
1827
|
-
description: string;
|
|
1828
|
-
descriptioncontainer: string;
|
|
1829
|
-
errormessage: string;
|
|
1830
|
-
errormessagecontainer: string;
|
|
1831
|
-
errormessageicon: string;
|
|
1832
1815
|
header: string;
|
|
1833
1816
|
leftanimationcontainer: string;
|
|
1834
1817
|
rightanimationcontainer: string;
|
|
1835
|
-
subtitle: string;
|
|
1836
|
-
subtitletooltipcontainer: string;
|
|
1837
|
-
title: string;
|
|
1838
|
-
titlesubtitlecontainer: string;
|
|
1839
|
-
tooltipicon: string;
|
|
1840
|
-
tooltipiconcontainer: string;
|
|
1841
1818
|
topanimationcontainer: string;
|
|
1842
1819
|
$_default: {
|
|
1843
1820
|
selector_box_file: string;
|
|
1844
1821
|
};
|
|
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
1822
|
};
|
|
1879
1823
|
SKELETON: {
|
|
1880
1824
|
skeleton: string;
|
|
@@ -1933,12 +1877,8 @@ declare type ComponentsTypesComponents = {
|
|
|
1933
1877
|
arrowcontainer: string;
|
|
1934
1878
|
arrowposition: string;
|
|
1935
1879
|
arrowsize: string;
|
|
1936
|
-
closebuttoncontainer: string;
|
|
1937
|
-
closebuttonicon: string;
|
|
1938
|
-
headercontainer: string;
|
|
1939
1880
|
paragraph: string;
|
|
1940
1881
|
paragraphcontainer: string;
|
|
1941
|
-
title: string;
|
|
1942
1882
|
tooltipexternalcontainer: string;
|
|
1943
1883
|
tooltipinternalcontainer: string;
|
|
1944
1884
|
popover: {
|
|
@@ -1946,9 +1886,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1946
1886
|
popover: string;
|
|
1947
1887
|
};
|
|
1948
1888
|
arrow: string;
|
|
1949
|
-
divider: string;
|
|
1950
|
-
dragicon: string;
|
|
1951
|
-
dragiconcontainer: string;
|
|
1952
1889
|
tooltipalignstyles: string;
|
|
1953
1890
|
tooltipasmodal: string;
|
|
1954
1891
|
};
|
|
@@ -2253,15 +2190,8 @@ declare type ComponentsTypesComponents = {
|
|
|
2253
2190
|
arrowcontainer: string;
|
|
2254
2191
|
arrowposition: string;
|
|
2255
2192
|
arrowsize: string;
|
|
2256
|
-
closebuttoncontainer: string;
|
|
2257
|
-
closebuttonicon: string;
|
|
2258
|
-
divider: string;
|
|
2259
|
-
dragicon: string;
|
|
2260
|
-
dragiconcontainer: string;
|
|
2261
|
-
headercontainer: string;
|
|
2262
2193
|
paragraph: string;
|
|
2263
2194
|
paragraphcontainer: string;
|
|
2264
|
-
title: string;
|
|
2265
2195
|
tooltipalignstyles: string;
|
|
2266
2196
|
tooltipasmodal: string;
|
|
2267
2197
|
tooltipexternalcontainer: string;
|
|
@@ -2271,12 +2201,8 @@ declare type ComponentsTypesComponents = {
|
|
|
2271
2201
|
arrowcontainer: string;
|
|
2272
2202
|
arrowposition: string;
|
|
2273
2203
|
arrowsize: string;
|
|
2274
|
-
closebuttoncontainer: string;
|
|
2275
|
-
closebuttonicon: string;
|
|
2276
|
-
headercontainer: string;
|
|
2277
2204
|
paragraph: string;
|
|
2278
2205
|
paragraphcontainer: string;
|
|
2279
|
-
title: string;
|
|
2280
2206
|
tooltipexternalcontainer: string;
|
|
2281
2207
|
tooltipinternalcontainer: string;
|
|
2282
2208
|
};
|
|
@@ -2300,75 +2226,6 @@ declare type ComponentsTypesComponents = {
|
|
|
2300
2226
|
};
|
|
2301
2227
|
};
|
|
2302
2228
|
|
|
2303
|
-
/**
|
|
2304
|
-
* Container component for grouping content with consistent styling and structure.
|
|
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.
|
|
2367
|
-
*/
|
|
2368
|
-
export declare type ContainerVariantStyles<Variant extends string> = ContainerStyleProps & {
|
|
2369
|
-
[key in Variant]: ContainerStyleProps;
|
|
2370
|
-
};
|
|
2371
|
-
|
|
2372
2229
|
declare type CssAdvancedSelectorsType = {
|
|
2373
2230
|
adjacent?: CssLibPropsType & {
|
|
2374
2231
|
$target?: string;
|
|
@@ -3074,6 +2931,21 @@ declare type DataAttributes = {
|
|
|
3074
2931
|
[key in `data-${string}`]?: string;
|
|
3075
2932
|
};
|
|
3076
2933
|
|
|
2934
|
+
/**
|
|
2935
|
+
* DataTable component for displaying structured data in a table format.
|
|
2936
|
+
*
|
|
2937
|
+
* This component provides advanced table functionality including sticky columns,
|
|
2938
|
+
* scrollable content, shadow effects, and divider management. It handles complex
|
|
2939
|
+
* table behaviors automatically through internal hooks.
|
|
2940
|
+
*
|
|
2941
|
+
* @example
|
|
2942
|
+
* ```tsx
|
|
2943
|
+
* <DataTable variant="striped">
|
|
2944
|
+
* <TableHead>...</TableHead>
|
|
2945
|
+
* <TableBody>...</TableBody>
|
|
2946
|
+
* </DataTable>
|
|
2947
|
+
* ```
|
|
2948
|
+
*/
|
|
3077
2949
|
export declare const DataTable: ForwardRefExoticComponent<DataTableProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3078
2950
|
|
|
3079
2951
|
export declare type DataTableCellProps = TableCellProps & {
|
|
@@ -3203,16 +3075,30 @@ export declare type DataTableVariantStyles<Variant extends string> = DataTableSt
|
|
|
3203
3075
|
[key in Variant]: DataTableStyleProps;
|
|
3204
3076
|
};
|
|
3205
3077
|
|
|
3078
|
+
/**
|
|
3079
|
+
* Options for formatting dates using Intl.DateTimeFormat.
|
|
3080
|
+
* Provides granular control over date/time display format.
|
|
3081
|
+
*/
|
|
3206
3082
|
declare interface DateFormatOptions {
|
|
3083
|
+
/** Representation of the weekday ('long', 'short', 'narrow') */
|
|
3207
3084
|
weekday?: Intl.DateTimeFormatOptions['weekday'];
|
|
3085
|
+
/** Representation of the year ('numeric', '2-digit') */
|
|
3208
3086
|
year?: Intl.DateTimeFormatOptions['year'];
|
|
3087
|
+
/** Representation of the month ('numeric', '2-digit', 'long', 'short', 'narrow') */
|
|
3209
3088
|
month?: Intl.DateTimeFormatOptions['month'];
|
|
3089
|
+
/** Representation of the day ('numeric', '2-digit') */
|
|
3210
3090
|
day?: Intl.DateTimeFormatOptions['day'];
|
|
3091
|
+
/** Representation of the hour ('numeric', '2-digit') */
|
|
3211
3092
|
hour?: Intl.DateTimeFormatOptions['hour'];
|
|
3093
|
+
/** Representation of the minute ('numeric', '2-digit') */
|
|
3212
3094
|
minute?: Intl.DateTimeFormatOptions['minute'];
|
|
3095
|
+
/** Representation of the second ('numeric', '2-digit') */
|
|
3213
3096
|
second?: Intl.DateTimeFormatOptions['second'];
|
|
3097
|
+
/** Representation of the time zone name ('long', 'short', etc.) */
|
|
3214
3098
|
timeZoneName?: Intl.DateTimeFormatOptions['timeZoneName'];
|
|
3099
|
+
/** Whether to use 12-hour time format (true) or 24-hour format (false) */
|
|
3215
3100
|
hour12?: Intl.DateTimeFormatOptions['hour12'];
|
|
3101
|
+
/** Hour cycle to use ('h11', 'h12', 'h23', 'h24') */
|
|
3216
3102
|
hourCycle?: Intl.DateTimeFormatOptions['hourCycle'];
|
|
3217
3103
|
}
|
|
3218
3104
|
|
|
@@ -3296,205 +3182,130 @@ export declare type DotThemeStyles<variant extends string, size extends string>
|
|
|
3296
3182
|
};
|
|
3297
3183
|
|
|
3298
3184
|
/**
|
|
3299
|
-
*
|
|
3300
|
-
*
|
|
3301
|
-
*
|
|
3302
|
-
*
|
|
3303
|
-
*
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3185
|
+
* @name ElementOrIconProps
|
|
3186
|
+
* @description
|
|
3187
|
+
* Interface for the ElementOrIcon component
|
|
3188
|
+
* @property { JSX.Element | HTMLElement | React.ReactNode} icon - Icon to be displayed
|
|
3189
|
+
* @property {boolean} basic - If true, the icon will be displayed as a basic icon
|
|
3190
|
+
*/
|
|
3191
|
+
declare interface ElementOrIconProps extends Omit<IconProps, 'icon'>, DataAttributes {
|
|
3192
|
+
icon?: JSX.Element | HTMLElement | React.ReactNode | string;
|
|
3193
|
+
basic?: boolean;
|
|
3194
|
+
}
|
|
3195
|
+
|
|
3196
|
+
declare type FormatDateType = 'd' | 'dd' | 'ddd' | 'dddd' | 'f' | 'ff' | 'fff' | 'F' | 'FF' | 'FFF' | 'ffff' | 'FFFF' | 't' | 'tt' | 'T' | 'TT' | 'ttt' | 'TTT' | 'tttt' | 'TTTT';
|
|
3197
|
+
|
|
3198
|
+
/**
|
|
3199
|
+
* React Context for generic component implementations.
|
|
3200
|
+
* Provides access to custom Link and Image components throughout the application.
|
|
3311
3201
|
*/
|
|
3312
|
-
export declare const
|
|
3202
|
+
export declare const GenericComponentContext: Context<GenericComponentsType | null>;
|
|
3313
3203
|
|
|
3314
3204
|
/**
|
|
3315
|
-
*
|
|
3205
|
+
* Provider component for custom generic component implementations.
|
|
3206
|
+
* Allows applications to inject their own Link and Image components
|
|
3207
|
+
* (e.g., Next.js Link, React Router Link) to be used by all Kubit components.
|
|
3316
3208
|
*
|
|
3317
|
-
* This
|
|
3318
|
-
*
|
|
3209
|
+
* This is essential for integrating Kubit components with different routing libraries
|
|
3210
|
+
* or custom implementations while maintaining consistent behavior across the application.
|
|
3319
3211
|
*
|
|
3320
|
-
*
|
|
3321
|
-
*
|
|
3212
|
+
* @param props - Provider props
|
|
3213
|
+
* @param props.children - React children to be wrapped by the provider
|
|
3214
|
+
* @param props.value - Custom generic components to be used throughout the application
|
|
3215
|
+
*
|
|
3216
|
+
* @returns The provider component wrapping all child components
|
|
3322
3217
|
*
|
|
3323
3218
|
* @example
|
|
3324
3219
|
* ```tsx
|
|
3325
|
-
*
|
|
3220
|
+
* import { Link } from 'react-router-dom';
|
|
3326
3221
|
*
|
|
3327
|
-
*
|
|
3328
|
-
*
|
|
3329
|
-
*
|
|
3222
|
+
* const customComponents = {
|
|
3223
|
+
* LINK: Link,
|
|
3224
|
+
* IMAGE: CustomImage,
|
|
3225
|
+
* };
|
|
3226
|
+
*
|
|
3227
|
+
* <GenericComponentsProvider value={customComponents}>
|
|
3228
|
+
* <App />
|
|
3229
|
+
* </GenericComponentsProvider>
|
|
3330
3230
|
* ```
|
|
3331
3231
|
*/
|
|
3332
|
-
export declare const
|
|
3232
|
+
export declare const GenericComponentsProvider: ({ children, value, }: PropsWithChildren<GenericComponentsProviderProps>) => JSX.Element;
|
|
3333
3233
|
|
|
3334
3234
|
/**
|
|
3335
|
-
*
|
|
3336
|
-
*
|
|
3337
|
-
*
|
|
3338
|
-
* @template Variant - The type of the variant for the DropdownSelected.
|
|
3235
|
+
* Props for the GenericComponentsProvider.
|
|
3236
|
+
* Wraps the application with custom component implementations.
|
|
3339
3237
|
*/
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3238
|
+
declare interface GenericComponentsProviderProps {
|
|
3239
|
+
/** The custom generic components to be made available to child components */
|
|
3240
|
+
value: GenericComponentsType;
|
|
3343
3241
|
}
|
|
3344
3242
|
|
|
3345
|
-
declare type DropdownSelectedCssClasses = ComponentSelected<ComponentsTypesComponents['DROPDOWN_SELECTED']>;
|
|
3346
|
-
|
|
3347
3243
|
/**
|
|
3348
|
-
*
|
|
3244
|
+
* Collection of generic component implementations.
|
|
3245
|
+
* Allows customization of primitive components used throughout the library.
|
|
3349
3246
|
*/
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3247
|
+
declare interface GenericComponentsType {
|
|
3248
|
+
/** Link component implementation (required) */
|
|
3249
|
+
LINK: GenericLinkType;
|
|
3250
|
+
/** Image component implementation (optional) */
|
|
3251
|
+
IMAGE?: GenericImageType;
|
|
3252
|
+
}
|
|
3353
3253
|
|
|
3354
3254
|
/**
|
|
3355
|
-
*
|
|
3255
|
+
* Props for a generic image component.
|
|
3256
|
+
* Inherits all standard HTML image attributes.
|
|
3356
3257
|
*/
|
|
3357
|
-
|
|
3258
|
+
declare type GenericImageProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
3358
3259
|
|
|
3359
3260
|
/**
|
|
3360
|
-
*
|
|
3361
|
-
*
|
|
3261
|
+
* Type definition for a generic image component.
|
|
3262
|
+
* Can be either a functional component or a forward ref component to support refs.
|
|
3362
3263
|
*/
|
|
3363
|
-
|
|
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
|
-
}
|
|
3264
|
+
declare type GenericImageType = ((props: GenericImageProps) => JSX.Element) | ForwardRefExoticComponent<GenericImageProps & RefAttributes<unknown>>;
|
|
3386
3265
|
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
_iconClosed?: CssLibPropsType;
|
|
3393
|
-
_listOptionsContainer?: CssLibPropsType;
|
|
3394
|
-
}
|
|
3266
|
+
/**
|
|
3267
|
+
* Subset of ARIA attributes applicable to link elements.
|
|
3268
|
+
* Ensures proper accessibility for navigation components.
|
|
3269
|
+
*/
|
|
3270
|
+
declare type GenericLinkAriaAttributes = Pick<AriaAttributes, 'aria-label' | 'aria-describedby' | 'aria-labelledby' | 'aria-disabled' | 'aria-current'>;
|
|
3395
3271
|
|
|
3396
3272
|
/**
|
|
3397
|
-
*
|
|
3398
|
-
*
|
|
3399
|
-
|
|
3400
|
-
export declare interface DropdownSelectedUnControlledProps extends Omit<DropdownSelectedControlledProps, DropdownSelectedOmittedProps> {
|
|
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
|
-
};
|
|
3415
|
-
|
|
3416
|
-
/**
|
|
3417
|
-
* @name ElementOrIconProps
|
|
3418
|
-
* @description
|
|
3419
|
-
* Interface for the ElementOrIcon component
|
|
3420
|
-
* @property { JSX.Element | HTMLElement | React.ReactNode} icon - Icon to be displayed
|
|
3421
|
-
* @property {boolean} basic - If true, the icon will be displayed as a basic icon
|
|
3422
|
-
*/
|
|
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
|
-
export declare const GenericComponentsProvider: ({ children, value, }: PropsWithChildren<GenericComponentsProviderProps>) => JSX.Element;
|
|
3433
|
-
|
|
3434
|
-
/**
|
|
3435
|
-
* Provides the interface for the generic components provider.
|
|
3436
|
-
* @property {GenericComponentsType} value - The actual components to be provided.
|
|
3437
|
-
*/
|
|
3438
|
-
declare interface GenericComponentsProviderProps {
|
|
3439
|
-
value: GenericComponentsType;
|
|
3440
|
-
}
|
|
3441
|
-
|
|
3442
|
-
/**
|
|
3443
|
-
* Defines the types for generic components, including links and images.
|
|
3444
|
-
*/
|
|
3445
|
-
declare interface GenericComponentsType {
|
|
3446
|
-
LINK: GenericLinkType;
|
|
3447
|
-
IMAGE?: GenericImageType;
|
|
3448
|
-
}
|
|
3449
|
-
|
|
3450
|
-
/**
|
|
3451
|
-
* Defines the properties for a generic image component.
|
|
3452
|
-
*/
|
|
3453
|
-
declare type GenericImageProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
3454
|
-
|
|
3455
|
-
/**
|
|
3456
|
-
* Defines the type for a generic image component, which can be either a functional component or a forward ref component.
|
|
3457
|
-
*/
|
|
3458
|
-
declare type GenericImageType = ((props: GenericImageProps) => JSX.Element) | ForwardRefExoticComponent<GenericImageProps & RefAttributes<unknown>>;
|
|
3459
|
-
|
|
3460
|
-
declare type GenericLinkAriaAttributes = Pick<AriaAttributes, 'aria-label' | 'aria-describedby' | 'aria-labelledby' | 'aria-disabled' | 'aria-current'>;
|
|
3461
|
-
|
|
3462
|
-
/**
|
|
3463
|
-
* Defines the properties for a generic link component.
|
|
3464
|
-
* @property {string} url - The URL the link points to.
|
|
3465
|
-
* @property {string | JSX.Element} children - The content inside the link.
|
|
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.
|
|
3273
|
+
* Props for a generic link component.
|
|
3274
|
+
* Provides a flexible interface for custom link implementations that can be used
|
|
3275
|
+
* throughout the component library (e.g., for React Router, Next.js Link, etc.).
|
|
3479
3276
|
*/
|
|
3480
3277
|
declare type GenericLinkProps = {
|
|
3278
|
+
/** The destination URL for the link */
|
|
3481
3279
|
url: string;
|
|
3280
|
+
/** Optional unique identifier for the link element */
|
|
3482
3281
|
id?: string;
|
|
3282
|
+
/** Content to be displayed inside the link */
|
|
3483
3283
|
children: string | JSX.Element;
|
|
3284
|
+
/** Optional CSS class name(s) for styling */
|
|
3484
3285
|
className?: string;
|
|
3286
|
+
/** Specifies where to open the linked document ('_blank', '_self', '_parent', '_top') */
|
|
3485
3287
|
target?: string;
|
|
3288
|
+
/** Callback function invoked when the link is clicked */
|
|
3486
3289
|
onClick?: () => void;
|
|
3290
|
+
/** Callback function invoked when the link receives focus */
|
|
3487
3291
|
onFocus?: () => void;
|
|
3292
|
+
/** Callback function invoked when the mouse pointer enters the link area */
|
|
3488
3293
|
onMouseEnter?: () => void;
|
|
3294
|
+
/** Callback function invoked when the mouse pointer leaves the link area */
|
|
3489
3295
|
onMouseLeave?: () => void;
|
|
3296
|
+
/** Relationship between the current document and the linked document */
|
|
3490
3297
|
rel?: string;
|
|
3298
|
+
/** ARIA role to override the default link role if needed */
|
|
3491
3299
|
role?: AriaRole;
|
|
3300
|
+
/** Test ID for automated testing purposes */
|
|
3492
3301
|
dataTestId?: string;
|
|
3302
|
+
/** Whether the element can be dragged */
|
|
3493
3303
|
draggable?: boolean;
|
|
3494
3304
|
} & GenericLinkAriaAttributes & DataAttributes;
|
|
3495
3305
|
|
|
3496
3306
|
/**
|
|
3497
|
-
*
|
|
3307
|
+
* Type definition for a generic link component.
|
|
3308
|
+
* Can be either a functional component or a forward ref component to support refs.
|
|
3498
3309
|
*/
|
|
3499
3310
|
declare type GenericLinkType = ((props: GenericLinkProps) => JSX.Element) | ForwardRefExoticComponent<GenericLinkProps & RefAttributes<unknown>>;
|
|
3500
3311
|
|
|
@@ -3651,10 +3462,6 @@ export declare interface IconStyleProps extends CssLibPropsType {
|
|
|
3651
3462
|
|
|
3652
3463
|
export declare type IImage = ImageStandAloneProps;
|
|
3653
3464
|
|
|
3654
|
-
declare interface IInputLabelProps {
|
|
3655
|
-
variant?: string;
|
|
3656
|
-
}
|
|
3657
|
-
|
|
3658
3465
|
/**
|
|
3659
3466
|
* A flexible image component that supports generic customization.
|
|
3660
3467
|
*
|
|
@@ -3714,6 +3521,23 @@ export declare interface ImageStyleProps {
|
|
|
3714
3521
|
width?: string;
|
|
3715
3522
|
}
|
|
3716
3523
|
|
|
3524
|
+
/**
|
|
3525
|
+
* Input component for text input fields.
|
|
3526
|
+
*
|
|
3527
|
+
* This component provides a styled text input with support for labels, helper text,
|
|
3528
|
+
* error messages, icons, and various states (disabled, error, success). It manages
|
|
3529
|
+
* focus state internally and applies appropriate styling.
|
|
3530
|
+
*
|
|
3531
|
+
* @example
|
|
3532
|
+
* ```tsx
|
|
3533
|
+
* <Input
|
|
3534
|
+
* label="Email"
|
|
3535
|
+
* type="email"
|
|
3536
|
+
* placeholder="Enter your email"
|
|
3537
|
+
* error="Invalid email"
|
|
3538
|
+
* />
|
|
3539
|
+
* ```
|
|
3540
|
+
*/
|
|
3717
3541
|
export declare const Input: ForwardRefExoticComponent<InputProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3718
3542
|
|
|
3719
3543
|
declare type InputActionsProps = Pick<DOMAttributes<HTMLInputElement>, 'onBlur' | 'onChange'>;
|
|
@@ -3722,6 +3546,23 @@ export declare type InputActionsType = Pick<DOMAttributes<HTMLInputElement>, 'on
|
|
|
3722
3546
|
|
|
3723
3547
|
declare type InputActionsType_2 = Pick<DOMAttributes<HTMLInputElement>, 'onBlur' | 'onChange'>;
|
|
3724
3548
|
|
|
3549
|
+
/**
|
|
3550
|
+
* InputBase component for basic text input functionality.
|
|
3551
|
+
*
|
|
3552
|
+
* This is a low-level input component that provides the foundation for more
|
|
3553
|
+
* complex input components. It manages states (focused, filled, error, disabled)
|
|
3554
|
+
* and applies appropriate styling and ARIA attributes.
|
|
3555
|
+
*
|
|
3556
|
+
* @example
|
|
3557
|
+
* ```tsx
|
|
3558
|
+
* <InputBase
|
|
3559
|
+
* placeholder="Enter text"
|
|
3560
|
+
* error={hasError}
|
|
3561
|
+
* filled={!!value}
|
|
3562
|
+
* focused={isFocused}
|
|
3563
|
+
* />
|
|
3564
|
+
* ```
|
|
3565
|
+
*/
|
|
3725
3566
|
export declare const InputBase: ForwardRefExoticComponent<InputBaseProps<string> & RefAttributes<HTMLInputElement>>;
|
|
3726
3567
|
|
|
3727
3568
|
export declare type InputBaseActionsType = Pick<DOMAttributes<HTMLInputElement>, 'onKeyDown' | 'onFocus' | 'onBlur' | 'onPaste' | 'onCopy'>;
|
|
@@ -3777,6 +3618,24 @@ export declare type InputBaseVariantStyles<Variant extends string> = CssLibProps
|
|
|
3777
3618
|
|
|
3778
3619
|
declare type InputCssClasses = ComponentSelected<ComponentsTypesComponents['INPUT']>;
|
|
3779
3620
|
|
|
3621
|
+
/**
|
|
3622
|
+
* InputDecoration component for wrapping and decorating input fields.
|
|
3623
|
+
*
|
|
3624
|
+
* This component provides a styled container for input elements with support
|
|
3625
|
+
* for labels, icons, helper text, and various visual states. It manages the
|
|
3626
|
+
* state representation (focused, filled, error, disabled) for consistent styling.
|
|
3627
|
+
*
|
|
3628
|
+
* @example
|
|
3629
|
+
* ```tsx
|
|
3630
|
+
* <InputDecoration
|
|
3631
|
+
* label="Email"
|
|
3632
|
+
* error={hasError}
|
|
3633
|
+
* helperText="Enter a valid email"
|
|
3634
|
+
* >
|
|
3635
|
+
* <input type="email" />
|
|
3636
|
+
* </InputDecoration>
|
|
3637
|
+
* ```
|
|
3638
|
+
*/
|
|
3780
3639
|
export declare const InputDecoration: ForwardRefExoticComponent<InputDecorationProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3781
3640
|
|
|
3782
3641
|
declare type InputDecorationCssClasses = ComponentSelected<ComponentsTypesComponents['INPUT_DECORATION']>;
|
|
@@ -3804,7 +3663,7 @@ export declare interface InputDecorationProps<Variant = undefined extends string
|
|
|
3804
3663
|
*/
|
|
3805
3664
|
export declare interface InputDecorationStandAloneProps extends DataAttributes {
|
|
3806
3665
|
disabled?: boolean;
|
|
3807
|
-
decoration?:
|
|
3666
|
+
decoration?: CommonIconProps;
|
|
3808
3667
|
cssClasses?: InputDecorationCssClasses;
|
|
3809
3668
|
component?: React.ElementType;
|
|
3810
3669
|
}
|
|
@@ -3830,8 +3689,43 @@ export declare interface InputProps<Variant = undefined extends string ? unknown
|
|
|
3830
3689
|
additionalClasses?: Partial<InputCssClasses>;
|
|
3831
3690
|
}
|
|
3832
3691
|
|
|
3692
|
+
/**
|
|
3693
|
+
* InputSignatureUnControlled component with internal signature management.
|
|
3694
|
+
*
|
|
3695
|
+
* This component provides a canvas-based signature capture that manages its own
|
|
3696
|
+
* state internally. It handles drawing, clearing, and state updates automatically.
|
|
3697
|
+
* Exposes methods via ref for resetting the signature canvas.
|
|
3698
|
+
*
|
|
3699
|
+
* @example
|
|
3700
|
+
* ```tsx
|
|
3701
|
+
* const signatureRef = useRef();
|
|
3702
|
+
*
|
|
3703
|
+
* <InputSignatureUnControlled
|
|
3704
|
+
* ref={signatureRef}
|
|
3705
|
+
* onChange={(dataUrl) => console.log(dataUrl)}
|
|
3706
|
+
* />
|
|
3707
|
+
*
|
|
3708
|
+
* // Reset signature: signatureRef.current.reset()
|
|
3709
|
+
* ```
|
|
3710
|
+
*/
|
|
3833
3711
|
export declare const InputSignature: ForwardRefExoticComponent<InputSignatureUnControlledProps<string> & RefAttributes<InputSignatureCustomHandle | undefined>>;
|
|
3834
3712
|
|
|
3713
|
+
/**
|
|
3714
|
+
* InputSignatureControlled component for capturing handwritten signatures.
|
|
3715
|
+
*
|
|
3716
|
+
* This component provides a canvas-based signature capture interface where
|
|
3717
|
+
* signature style (color, line width) is controlled externally. It's useful
|
|
3718
|
+
* for forms requiring user signatures.
|
|
3719
|
+
*
|
|
3720
|
+
* @example
|
|
3721
|
+
* ```tsx
|
|
3722
|
+
* <InputSignatureControlled
|
|
3723
|
+
* signatureStyle={{ color: '#000000', lineWidth: 2 }}
|
|
3724
|
+
* setSignatureStyles={(style) => console.log(style)}
|
|
3725
|
+
* onSignatureChange={(dataUrl) => setSignature(dataUrl)}
|
|
3726
|
+
* />
|
|
3727
|
+
* ```
|
|
3728
|
+
*/
|
|
3835
3729
|
export declare const InputSignatureControlled: ForwardRefExoticComponent<InputSignatureControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3836
3730
|
|
|
3837
3731
|
/**
|
|
@@ -3908,7 +3802,6 @@ export declare interface InputStandAloneProps extends DataAttributes, Omit<Input
|
|
|
3908
3802
|
required?: boolean;
|
|
3909
3803
|
rightDecoration?: InputDecorationProps;
|
|
3910
3804
|
leftDecoration?: InputDecorationProps;
|
|
3911
|
-
label?: IInputLabelProps;
|
|
3912
3805
|
/** Value to perform truncation logic */
|
|
3913
3806
|
truncate?: boolean;
|
|
3914
3807
|
/** HTML Standard attribute to focus automatically
|
|
@@ -4043,17 +3936,77 @@ export declare interface ISnackbarV2 extends Omit<ISnackbarStandAlone, 'onMouseE
|
|
|
4043
3936
|
|
|
4044
3937
|
declare type keyMoveType = number | ((previous: number, e?: KeyboardEvent) => number) | null;
|
|
4045
3938
|
|
|
3939
|
+
/**
|
|
3940
|
+
* Main provider component for the Kubit component library.
|
|
3941
|
+
* Orchestrates all sub-providers (Utils, Styles, and GenericComponents) and provides
|
|
3942
|
+
* a single entry point for configuring the entire component library context.
|
|
3943
|
+
*
|
|
3944
|
+
* This provider wraps the application and supplies:
|
|
3945
|
+
* - Date manipulation and formatting utilities
|
|
3946
|
+
* - Theme and styling configuration
|
|
3947
|
+
* - Custom generic components (Link, Image)
|
|
3948
|
+
*
|
|
3949
|
+
* @param props - Configuration props for the provider
|
|
3950
|
+
* @param props.children - React children to be wrapped by the provider
|
|
3951
|
+
* @param props.genericComponentsProvider - Custom implementations of generic components (Link, Image).
|
|
3952
|
+
* Defaults to library's built-in components if not provided
|
|
3953
|
+
* @param props.utilsConfig - Optional configuration to override default utility functions
|
|
3954
|
+
* (date helpers, formatters, asset paths)
|
|
3955
|
+
*
|
|
3956
|
+
* @returns The provider component wrapping all child components
|
|
3957
|
+
*
|
|
3958
|
+
* @example
|
|
3959
|
+
* ```tsx
|
|
3960
|
+
* import { KubitProvider } from '@kubit/react-components';
|
|
3961
|
+
*
|
|
3962
|
+
* function App() {
|
|
3963
|
+
* return (
|
|
3964
|
+
* <KubitProvider
|
|
3965
|
+
* genericComponentsProvider={{
|
|
3966
|
+
* LINK: CustomLink,
|
|
3967
|
+
* IMAGE: CustomImage,
|
|
3968
|
+
* }}
|
|
3969
|
+
* >
|
|
3970
|
+
* <YourApp />
|
|
3971
|
+
* </KubitProvider>
|
|
3972
|
+
* );
|
|
3973
|
+
* }
|
|
3974
|
+
* ```
|
|
3975
|
+
*/
|
|
4046
3976
|
export declare const KubitProvider: ({ children, genericComponentsProvider, utilsConfig, }: KubitProviderProps) => JSX.Element;
|
|
4047
3977
|
|
|
3978
|
+
/**
|
|
3979
|
+
* Props for the KubitProvider component.
|
|
3980
|
+
* Provides configuration for the entire Kubit component library context.
|
|
3981
|
+
*/
|
|
4048
3982
|
declare interface KubitProviderProps {
|
|
3983
|
+
/**
|
|
3984
|
+
* The React children to be wrapped by the provider.
|
|
3985
|
+
*/
|
|
4049
3986
|
children?: React.ReactNode;
|
|
3987
|
+
/**
|
|
3988
|
+
* Custom generic components (like Link and Image) to be used throughout the application.
|
|
3989
|
+
* Defaults to the library's default generic components if not provided.
|
|
3990
|
+
*/
|
|
4050
3991
|
genericComponentsProvider?: GenericComponentsType;
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
3992
|
+
/**
|
|
3993
|
+
* Configuration for utility functions like date helpers, formatting, and assets.
|
|
3994
|
+
* Allows overriding the default utility configurations.
|
|
3995
|
+
*/
|
|
4054
3996
|
utilsConfig?: UtilsContextType;
|
|
4055
3997
|
}
|
|
4056
3998
|
|
|
3999
|
+
/**
|
|
4000
|
+
* LabelStandAlone component renders an accessible label element with optional required indicator.
|
|
4001
|
+
*
|
|
4002
|
+
* @component
|
|
4003
|
+
* @example
|
|
4004
|
+
* ```tsx
|
|
4005
|
+
* <LabelStandAlone inputId="email" required requiredSymbol="*">
|
|
4006
|
+
* Email Address
|
|
4007
|
+
* </LabelStandAlone>
|
|
4008
|
+
* ```
|
|
4009
|
+
*/
|
|
4057
4010
|
export declare const Label: ForwardRefExoticComponent<LabelStandAloneProps & RefAttributes<HTMLParagraphElement>>;
|
|
4058
4011
|
|
|
4059
4012
|
/**
|
|
@@ -4185,6 +4138,21 @@ export declare type LinkVariantStyles<Variant extends string> = LinkStylesProps
|
|
|
4185
4138
|
[key in Variant]?: LinkStylesProps;
|
|
4186
4139
|
};
|
|
4187
4140
|
|
|
4141
|
+
/**
|
|
4142
|
+
* ListOptions component for displaying a list of selectable options.
|
|
4143
|
+
*
|
|
4144
|
+
* This component renders a list container for options/items, commonly used
|
|
4145
|
+
* in dropdowns, select menus, or autocomplete interfaces. It manages styling
|
|
4146
|
+
* and provides a consistent container for option elements.
|
|
4147
|
+
*
|
|
4148
|
+
* @example
|
|
4149
|
+
* ```tsx
|
|
4150
|
+
* <ListOptions variant="default">
|
|
4151
|
+
* <Option>Option 1</Option>
|
|
4152
|
+
* <Option>Option 2</Option>
|
|
4153
|
+
* </ListOptions>
|
|
4154
|
+
* ```
|
|
4155
|
+
*/
|
|
4188
4156
|
export declare const ListOptions: ForwardRefExoticComponent<ListOptionsProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4189
4157
|
|
|
4190
4158
|
/**
|
|
@@ -4232,7 +4200,7 @@ export declare interface ListOptionsStandAloneProps extends DataAttributes {
|
|
|
4232
4200
|
content?: React.ReactNode;
|
|
4233
4201
|
onOptionClick?: (value: string, event: React.KeyboardEvent<HTMLDivElement> | React.MouseEvent<HTMLDivElement>) => void;
|
|
4234
4202
|
multiSelect?: boolean;
|
|
4235
|
-
checkedIcon?:
|
|
4203
|
+
checkedIcon?: CommonIconProps;
|
|
4236
4204
|
id?: string;
|
|
4237
4205
|
roveFocus?: UseRoveFocusProps;
|
|
4238
4206
|
index?: number;
|
|
@@ -4252,129 +4220,21 @@ export declare type ListOptionsVariantStyles<Variant extends string> = ListOptio
|
|
|
4252
4220
|
[key in Variant]: ListOptionsStyleProps;
|
|
4253
4221
|
};
|
|
4254
4222
|
|
|
4223
|
+
/**
|
|
4224
|
+
* Media query strings for targeting specific screen size ranges.
|
|
4225
|
+
* Built from the provided breakpoints configuration.
|
|
4226
|
+
*/
|
|
4255
4227
|
declare interface MediaQueries {
|
|
4228
|
+
/** Media query for mobile devices only (below md breakpoint) */
|
|
4256
4229
|
onlyMobile: string;
|
|
4230
|
+
/** Media query for tablets only (between md and lg breakpoints) */
|
|
4257
4231
|
onlyTablet: string;
|
|
4232
|
+
/** Media query for desktops (below xl breakpoint) */
|
|
4258
4233
|
onlyDesktop: string;
|
|
4234
|
+
/** Media query for large desktops (xl breakpoint and above) */
|
|
4259
4235
|
onlyLargeDesktop: string;
|
|
4260
4236
|
}
|
|
4261
4237
|
|
|
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
|
-
/**
|
|
4273
|
-
* Represents the type for the container as a link in the Message component.
|
|
4274
|
-
*/
|
|
4275
|
-
export declare interface MessageContainerAsLinkProps {
|
|
4276
|
-
onClick?: () => void;
|
|
4277
|
-
url?: string;
|
|
4278
|
-
target?: React.HTMLAttributeAnchorTarget;
|
|
4279
|
-
}
|
|
4280
|
-
|
|
4281
|
-
export declare const MessageControlled: ForwardRefExoticComponent<MessageProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4282
|
-
|
|
4283
|
-
declare type MessageCssClasses = ComponentSelected<ComponentsTypesComponents['MESSAGE']>;
|
|
4284
|
-
|
|
4285
|
-
/**
|
|
4286
|
-
* Represents the type for the extra action button in the Message component.
|
|
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;
|
|
4297
|
-
};
|
|
4298
|
-
|
|
4299
|
-
/**
|
|
4300
|
-
* Interface for the controlled Message component.
|
|
4301
|
-
* Extends the MessageStandAloneProps interface and adds a variant and additional CSS classes.
|
|
4302
|
-
*
|
|
4303
|
-
* @template Variant - The type of the variant for the Message.
|
|
4304
|
-
*/
|
|
4305
|
-
export declare interface MessageProps<Variant = undefined extends string ? unknown : string> extends Omit<MessageStandAloneProps, 'linkComponent'> {
|
|
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.
|
|
4367
|
-
*
|
|
4368
|
-
* @template Variant - The type of the variant for the Message.
|
|
4369
|
-
*/
|
|
4370
|
-
export declare interface MessageUnControlledProps<Variant = undefined extends string ? unknown : string> extends Omit<MessageProps<Variant>, 'open'> {
|
|
4371
|
-
defaultOpen?: boolean;
|
|
4372
|
-
}
|
|
4373
|
-
|
|
4374
|
-
export declare type MessageVariantStyles<Variant extends string> = MessageStyleProps & {
|
|
4375
|
-
[key in Variant]: MessageStyleProps;
|
|
4376
|
-
};
|
|
4377
|
-
|
|
4378
4238
|
/**
|
|
4379
4239
|
* Options for middleware configuration in the popover
|
|
4380
4240
|
*/
|
|
@@ -4384,6 +4244,23 @@ declare interface MiddlewareOptions {
|
|
|
4384
4244
|
hideWhenDetached?: boolean;
|
|
4385
4245
|
}
|
|
4386
4246
|
|
|
4247
|
+
/**
|
|
4248
|
+
* ModalUnControlled component with internal state management.
|
|
4249
|
+
*
|
|
4250
|
+
* This component renders a modal that manages its own open/close state internally.
|
|
4251
|
+
* It automatically syncs with prop changes and handles keyboard interactions.
|
|
4252
|
+
* Useful when you don't need external control over the modal's visibility.
|
|
4253
|
+
*
|
|
4254
|
+
* @example
|
|
4255
|
+
* ```tsx
|
|
4256
|
+
* <ModalUnControlled
|
|
4257
|
+
* open={true}
|
|
4258
|
+
* onClose={() => console.log('closed')}
|
|
4259
|
+
* >
|
|
4260
|
+
* Modal content
|
|
4261
|
+
* </ModalUnControlled>
|
|
4262
|
+
* ```
|
|
4263
|
+
*/
|
|
4387
4264
|
export declare const Modal: ForwardRefExoticComponent<ModalUnControlledProps<string | undefined> & {
|
|
4388
4265
|
children?: ReactNode | undefined;
|
|
4389
4266
|
} & RefAttributes<HTMLDivElement>>;
|
|
@@ -4404,6 +4281,24 @@ export declare interface ModalContentContainerProps extends Pick<AriaAttributes,
|
|
|
4404
4281
|
role?: string;
|
|
4405
4282
|
}
|
|
4406
4283
|
|
|
4284
|
+
/**
|
|
4285
|
+
* ModalControlled component for displaying overlay dialogs.
|
|
4286
|
+
*
|
|
4287
|
+
* This component manages modal visibility externally through props. It provides
|
|
4288
|
+
* scroll detection, swipe-down gestures, focus management, and portal rendering.
|
|
4289
|
+
* Use this when you need full control over the modal's open/close state.
|
|
4290
|
+
*
|
|
4291
|
+
* @example
|
|
4292
|
+
* ```tsx
|
|
4293
|
+
* <ModalControlled
|
|
4294
|
+
* open={isOpen}
|
|
4295
|
+
* onClose={() => setIsOpen(false)}
|
|
4296
|
+
* variant="default"
|
|
4297
|
+
* >
|
|
4298
|
+
* Modal content here
|
|
4299
|
+
* </ModalControlled>
|
|
4300
|
+
* ```
|
|
4301
|
+
*/
|
|
4407
4302
|
export declare const ModalControlled: ForwardRefExoticComponent<ModalControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4408
4303
|
|
|
4409
4304
|
/**
|
|
@@ -4422,13 +4317,6 @@ export declare interface ModalControlledProps<Variant = undefined extends string
|
|
|
4422
4317
|
|
|
4423
4318
|
declare type ModalCssClasses = ComponentSelected<ComponentsTypesComponents['MODAL']>;
|
|
4424
4319
|
|
|
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
4320
|
declare type ModalOmittedProps = 'styles' | 'device' | 'contentHasScroll';
|
|
4433
4321
|
|
|
4434
4322
|
/**
|
|
@@ -4455,18 +4343,18 @@ export declare interface ModalStandAloneProps extends DataAttributes {
|
|
|
4455
4343
|
title?: CommonTextProps & {
|
|
4456
4344
|
visible?: boolean;
|
|
4457
4345
|
};
|
|
4458
|
-
closeIcon?:
|
|
4346
|
+
closeIcon?: CommonIconProps;
|
|
4459
4347
|
closeButton?: ModalButtonProps;
|
|
4460
4348
|
contentContainer?: ModalContentContainerProps;
|
|
4461
4349
|
content?: ReactNode;
|
|
4462
4350
|
contentScrollArias?: Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'>;
|
|
4463
4351
|
contentHasScroll: boolean;
|
|
4464
|
-
footer?:
|
|
4352
|
+
footer?: ReactNode;
|
|
4465
4353
|
device: DeviceBreakpointsType;
|
|
4466
4354
|
onKeyDown?: KeyboardEventHandler<HTMLDivElement>;
|
|
4467
4355
|
onPopoverCloseInternally?: () => void;
|
|
4468
4356
|
cssClasses?: ModalCssClasses;
|
|
4469
|
-
dragIcon?:
|
|
4357
|
+
dragIcon?: CommonIconProps;
|
|
4470
4358
|
}
|
|
4471
4359
|
|
|
4472
4360
|
/**
|
|
@@ -4507,51 +4395,6 @@ export declare type ModalVariantStyles<Variant extends string> = ModalStyleProps
|
|
|
4507
4395
|
[key in Variant]: ModalStyleProps;
|
|
4508
4396
|
};
|
|
4509
4397
|
|
|
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
4398
|
declare type NonVariablesKeys<T> = {
|
|
4556
4399
|
[K in keyof T]: K extends `$${string}` ? never : K;
|
|
4557
4400
|
}[keyof T];
|
|
@@ -4560,6 +4403,24 @@ declare type NonVariablesKeys_2<T> = {
|
|
|
4560
4403
|
[K in keyof T]: K extends `$${string}` ? never : K;
|
|
4561
4404
|
}[keyof T];
|
|
4562
4405
|
|
|
4406
|
+
/**
|
|
4407
|
+
* Option component for rendering selectable list items.
|
|
4408
|
+
*
|
|
4409
|
+
* This component represents a single option within a list, dropdown, or menu.
|
|
4410
|
+
* It manages focus states and supports custom variants for flexible styling.
|
|
4411
|
+
* Useful for building accessible select menus, autocomplete lists, or navigation options.
|
|
4412
|
+
*
|
|
4413
|
+
* Accepts a generic type parameter `<Variant extends string>` for custom variant values.
|
|
4414
|
+
*
|
|
4415
|
+
* @example
|
|
4416
|
+
* ```tsx
|
|
4417
|
+
* <Option value="option1" variant="default">Option 1</Option>
|
|
4418
|
+
*
|
|
4419
|
+
* // With custom variant:
|
|
4420
|
+
* type MyVariant = "primary" | "secondary";
|
|
4421
|
+
* <Option<MyVariant> variant="primary" value="item">Primary Option</Option>
|
|
4422
|
+
* ```
|
|
4423
|
+
*/
|
|
4563
4424
|
declare const Option_2: ForwardRefExoticComponent<OptionProps<string> & RefAttributes<HTMLElement>>;
|
|
4564
4425
|
export { Option_2 as Option }
|
|
4565
4426
|
|
|
@@ -4586,11 +4447,11 @@ export declare interface OptionProps<Variant = undefined extends string ? unknow
|
|
|
4586
4447
|
* Includes ARIA attributes, labels, icons, event handlers, and CSS classes.
|
|
4587
4448
|
*/
|
|
4588
4449
|
export declare interface OptionStandAloneProps extends OptionAriaProps, DataAttributes {
|
|
4589
|
-
icon?:
|
|
4450
|
+
icon?: CommonIconProps;
|
|
4590
4451
|
sublabel?: CommonTextProps;
|
|
4591
4452
|
label: ReactNode;
|
|
4592
4453
|
labelCharsHighlighted?: string;
|
|
4593
|
-
checkedIcon?:
|
|
4454
|
+
checkedIcon?: CommonIconProps;
|
|
4594
4455
|
multiSelect?: boolean;
|
|
4595
4456
|
disabled?: boolean;
|
|
4596
4457
|
selected?: boolean;
|
|
@@ -4627,6 +4488,23 @@ export declare type OptionVariantStyles<Variant extends string> = OptionStylePro
|
|
|
4627
4488
|
[key in Variant]: OptionStyleProps;
|
|
4628
4489
|
};
|
|
4629
4490
|
|
|
4491
|
+
/**
|
|
4492
|
+
* PageControl component for pagination/slide navigation indicators.
|
|
4493
|
+
*
|
|
4494
|
+
* This component displays navigation dots or bullets with arrow controls for
|
|
4495
|
+
* paginated content like carousels. It handles position tracking, visibility
|
|
4496
|
+
* of dots, and direction-based navigation.
|
|
4497
|
+
*
|
|
4498
|
+
* @example
|
|
4499
|
+
* ```tsx
|
|
4500
|
+
* <PageControl
|
|
4501
|
+
* pages={10}
|
|
4502
|
+
* currentPosition={3}
|
|
4503
|
+
* onPageChange={(page) => console.log(page)}
|
|
4504
|
+
* isBullet
|
|
4505
|
+
* />
|
|
4506
|
+
* ```
|
|
4507
|
+
*/
|
|
4630
4508
|
export declare const PageControl: ForwardRefExoticComponent<PageControlProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4631
4509
|
|
|
4632
4510
|
/**
|
|
@@ -4694,6 +4572,26 @@ export declare type PageControlVariantStyles<Variant extends string> = PageContr
|
|
|
4694
4572
|
[key in Variant]: PageControlStyleProps;
|
|
4695
4573
|
};
|
|
4696
4574
|
|
|
4575
|
+
/**
|
|
4576
|
+
* Pagination component for navigating through multiple pages.
|
|
4577
|
+
*
|
|
4578
|
+
* This component renders a pagination control with page numbers and navigation buttons.
|
|
4579
|
+
* It automatically adjusts the visible page numbers based on screen size and configuration.
|
|
4580
|
+
* Useful for implementing page navigation in lists, tables, or content galleries.
|
|
4581
|
+
*
|
|
4582
|
+
* Accepts a generic type parameter `<Variant extends string>` for custom variant styling.
|
|
4583
|
+
*
|
|
4584
|
+
* @example
|
|
4585
|
+
* ```tsx
|
|
4586
|
+
* <Pagination
|
|
4587
|
+
* variant="default"
|
|
4588
|
+
* currentStep={5}
|
|
4589
|
+
* maxStepsNumber={100}
|
|
4590
|
+
* maxCountersNumber={7}
|
|
4591
|
+
* onStepChange={handlePageChange}
|
|
4592
|
+
* />
|
|
4593
|
+
* ```
|
|
4594
|
+
*/
|
|
4697
4595
|
export declare const Pagination: ForwardRefExoticComponent<PaginationProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4698
4596
|
|
|
4699
4597
|
/**
|
|
@@ -4792,6 +4690,24 @@ export declare interface PopoverStylePropsV2 extends CssLibPropsType {
|
|
|
4792
4690
|
|
|
4793
4691
|
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
4692
|
|
|
4693
|
+
/**
|
|
4694
|
+
* ProgressBar component for displaying progress indicators.
|
|
4695
|
+
*
|
|
4696
|
+
* This component visualizes completion progress with customizable variants and sizes.
|
|
4697
|
+
* It displays a filled bar representing the percentage of progress completed.
|
|
4698
|
+
* Useful for showing loading states, task completion, or any measurable progress.
|
|
4699
|
+
*
|
|
4700
|
+
* Accepts generic type parameters `<Variant, Size>` for custom styling values.
|
|
4701
|
+
*
|
|
4702
|
+
* @example
|
|
4703
|
+
* ```tsx
|
|
4704
|
+
* <ProgressBar variant="primary" size="md" percentProgressCompleted={60} />
|
|
4705
|
+
*
|
|
4706
|
+
* // With custom types:
|
|
4707
|
+
* type MyVariant = "success" | "warning";
|
|
4708
|
+
* <ProgressBar<MyVariant> variant="success" percentProgressCompleted={100} />
|
|
4709
|
+
* ```
|
|
4710
|
+
*/
|
|
4795
4711
|
export declare const ProgressBar: ForwardRefExoticComponent<ProgressBarProps<string | undefined, unknown> & RefAttributes<HTMLDivElement>>;
|
|
4796
4712
|
|
|
4797
4713
|
/**
|
|
@@ -4828,11 +4744,6 @@ export declare interface ProgressBarStandAloneProps extends DataAttributes {
|
|
|
4828
4744
|
cssSizeClasses?: ProgressBarCssClasses;
|
|
4829
4745
|
barAriaLabel?: string;
|
|
4830
4746
|
progressCompleted: number;
|
|
4831
|
-
onChange?: (value: number) => void;
|
|
4832
|
-
onDragStart?: () => void;
|
|
4833
|
-
onDragEnd?: () => void;
|
|
4834
|
-
tooltip?: SliderTooltipProps;
|
|
4835
|
-
useAsSlider?: boolean;
|
|
4836
4747
|
progressAnimation?: {
|
|
4837
4748
|
duration?: string;
|
|
4838
4749
|
timingFunction?: string;
|
|
@@ -4854,6 +4765,22 @@ export declare type ProgressBarVariantStyles<Variant extends string> = {
|
|
|
4854
4765
|
|
|
4855
4766
|
declare type propsToOmit = 'styles' | 'filled' | 'focused' | 'inputBaseId' | 'labelId';
|
|
4856
4767
|
|
|
4768
|
+
/**
|
|
4769
|
+
* RadioButton component for single selection from multiple options.
|
|
4770
|
+
*
|
|
4771
|
+
* This component renders a styled radio input for use in forms and option groups.
|
|
4772
|
+
* It manages checked, disabled, and error states with appropriate visual feedback.
|
|
4773
|
+
*
|
|
4774
|
+
* @example
|
|
4775
|
+
* ```tsx
|
|
4776
|
+
* <RadioButton
|
|
4777
|
+
* name="option"
|
|
4778
|
+
* value="1"
|
|
4779
|
+
* checked={selectedValue === "1"}
|
|
4780
|
+
* onChange={(e) => setSelectedValue(e.target.value)}
|
|
4781
|
+
* />
|
|
4782
|
+
* ```
|
|
4783
|
+
*/
|
|
4857
4784
|
export declare const RadioButton: ({ additionalClasses, checked, cssClasses: propsStyles, disabled, error, variant, ...props }: RadioButtonProps) => JSX.Element;
|
|
4858
4785
|
|
|
4859
4786
|
/**
|
|
@@ -4881,6 +4808,21 @@ export declare interface RadioButtonProps<Variant = undefined extends string ? u
|
|
|
4881
4808
|
additionalClasses?: Partial<RadioButtonCssClasses>;
|
|
4882
4809
|
}
|
|
4883
4810
|
|
|
4811
|
+
/**
|
|
4812
|
+
* Standalone radio button component for rendering selectable radio inputs.
|
|
4813
|
+
*
|
|
4814
|
+
* This component renders a radio button with label, optional legend, error message,
|
|
4815
|
+
* and custom icon states. It handles accessibility attributes and visual states.
|
|
4816
|
+
*
|
|
4817
|
+
* @example
|
|
4818
|
+
* ```tsx
|
|
4819
|
+
* <RadioButtonStandAlone
|
|
4820
|
+
* label={{ content: "Option A" }}
|
|
4821
|
+
* checked={true}
|
|
4822
|
+
* onChange={() => {}}
|
|
4823
|
+
* />
|
|
4824
|
+
* ```
|
|
4825
|
+
*/
|
|
4884
4826
|
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
4827
|
|
|
4886
4828
|
/**
|
|
@@ -4893,7 +4835,7 @@ export declare interface RadioButtonStandAloneProps extends RadioButtonAriaProps
|
|
|
4893
4835
|
name?: string;
|
|
4894
4836
|
label?: RadioButtonLabelProps;
|
|
4895
4837
|
errorMessage?: string;
|
|
4896
|
-
errorIcon?:
|
|
4838
|
+
errorIcon?: CommonIconProps;
|
|
4897
4839
|
errorAriaLiveType?: AriaAttributes['aria-live'];
|
|
4898
4840
|
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
4899
4841
|
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
@@ -4926,44 +4868,111 @@ export declare interface RadioButtonStyleProps extends CssLibPropsType {
|
|
|
4926
4868
|
_infoContainer?: CssLibPropsType;
|
|
4927
4869
|
}
|
|
4928
4870
|
|
|
4929
|
-
export declare type RadioButtonVariantStyles<Variant extends string> = RadioButtonStyleProps & {
|
|
4930
|
-
[key in Variant]: RadioButtonStyleProps;
|
|
4931
|
-
};
|
|
4932
|
-
|
|
4933
|
-
declare type RecoverComponentStyles = <T extends ComponentsTypesAvailableComponents>(params: {
|
|
4934
|
-
component: T;
|
|
4935
|
-
variant?: string;
|
|
4936
|
-
additionalClassNames?: Partial<ComponentSelected_2<ComponentsTypesComponents[T]>>;
|
|
4937
|
-
}) => ComponentSelected_2<ComponentsTypesComponents[T]>;
|
|
4871
|
+
export declare type RadioButtonVariantStyles<Variant extends string> = RadioButtonStyleProps & {
|
|
4872
|
+
[key in Variant]: RadioButtonStyleProps;
|
|
4873
|
+
};
|
|
4874
|
+
|
|
4875
|
+
declare type RecoverComponentStyles = <T extends ComponentsTypesAvailableComponents>(params: {
|
|
4876
|
+
component: T;
|
|
4877
|
+
variant?: string;
|
|
4878
|
+
additionalClassNames?: Partial<ComponentSelected_2<ComponentsTypesComponents[T]>>;
|
|
4879
|
+
}) => ComponentSelected_2<ComponentsTypesComponents[T]>;
|
|
4880
|
+
|
|
4881
|
+
declare type ScreenReaderOnlyProps = ScreenReaderOnlyStandAloneProps;
|
|
4882
|
+
|
|
4883
|
+
declare interface ScreenReaderOnlyStandAloneProps extends DataAttributes {
|
|
4884
|
+
ariaAtomic?: AriaAttributes['aria-atomic'];
|
|
4885
|
+
ariaLive?: AriaAttributes['aria-live'];
|
|
4886
|
+
children?: React.ReactNode;
|
|
4887
|
+
className?: string;
|
|
4888
|
+
id?: string;
|
|
4889
|
+
role?: React.AriaRole;
|
|
4890
|
+
}
|
|
4891
|
+
|
|
4892
|
+
/**
|
|
4893
|
+
* Uncontrolled select component for displaying selectable options.
|
|
4894
|
+
*
|
|
4895
|
+
* This component manages its own open/close state and selected option internally, so you do not need
|
|
4896
|
+
* to control the select state from the parent. It is useful when you want a simple select that handles
|
|
4897
|
+
* its own toggle and selection logic. You can optionally receive state changes via callbacks.
|
|
4898
|
+
*
|
|
4899
|
+
* Internally, it wraps {@link SelectControlled} and passes the necessary props.
|
|
4900
|
+
*
|
|
4901
|
+
* @example
|
|
4902
|
+
* ```tsx
|
|
4903
|
+
* <SelectUnControlled defaultOpen />
|
|
4904
|
+
* ```
|
|
4905
|
+
*/
|
|
4906
|
+
export declare const Select: ForwardRefExoticComponent<SelectUnControlledProps & RefAttributes<HTMLDivElement>>;
|
|
4907
|
+
|
|
4908
|
+
/**
|
|
4909
|
+
* Controlled select component for displaying selectable options.
|
|
4910
|
+
*
|
|
4911
|
+
* This component renders a select that is fully controlled by its parent, allowing for custom open/close logic,
|
|
4912
|
+
* keyboard navigation, and flexible theming. It is useful when you need to manage the select state and behavior externally.
|
|
4913
|
+
*
|
|
4914
|
+
* Internally, it wraps {@link SelectStandAlone} and handles keyboard focus and scroll-based closing.
|
|
4915
|
+
* Accepts a generic type parameter `<Variant extends string>` to allow for custom variant values, enabling flexible styling.
|
|
4916
|
+
*
|
|
4917
|
+
* @example
|
|
4918
|
+
* ```tsx
|
|
4919
|
+
* <SelectControlled open listOptions={options} />
|
|
4920
|
+
*
|
|
4921
|
+
* // With a custom variant type:
|
|
4922
|
+
* type MyVariant = "primary" | "secondary";
|
|
4923
|
+
* <SelectControlled<MyVariant> variant="primary" open listOptions={options} />
|
|
4924
|
+
* ```
|
|
4925
|
+
*/
|
|
4926
|
+
export declare const SelectControlled: ForwardRefExoticComponent<SelectControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4927
|
+
|
|
4928
|
+
/**
|
|
4929
|
+
* Interface for the controlled Select component.
|
|
4930
|
+
* Extends the SelectStandAloneProps interface and adds a variant and additional CSS classes.
|
|
4931
|
+
*
|
|
4932
|
+
* @template Variant - The type of the variant for the Select.
|
|
4933
|
+
*/
|
|
4934
|
+
export declare interface SelectControlledProps<Variant = undefined extends string ? unknown : string> extends Omit<SelectStandAloneProps, 'listOptionsRef' | 'onButtonKeyDown' | 'component'> {
|
|
4935
|
+
variant?: Variant;
|
|
4936
|
+
additionalClasses?: Partial<SelectCssClasses>;
|
|
4937
|
+
}
|
|
4938
|
+
|
|
4939
|
+
declare type SelectCssClasses = ComponentSelected<ComponentsTypesComponents['SELECT']>;
|
|
4938
4940
|
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
ariaLive?: AriaAttributes['aria-live'];
|
|
4944
|
-
role?: React.AriaRole;
|
|
4945
|
-
}
|
|
4941
|
+
/**
|
|
4942
|
+
* Represents the type for the list options in the Select component.
|
|
4943
|
+
*/
|
|
4944
|
+
export declare type SelectListOptionsProps = Omit<ListOptionsProps, 'selectedValue' | 'onOptionClick'>;
|
|
4946
4945
|
|
|
4947
|
-
|
|
4946
|
+
declare type SelectOmittedProps = 'buttonOrLinkRef' | 'open' | 'onButtonClick' | 'optionSelected' | 'onOptionClick' | 'onClosePopover' | 'onMouseEnter' | 'onMouseLeave' | 'onBlur' | 'onFocus' | 'onKeyDown';
|
|
4948
4947
|
|
|
4949
4948
|
/**
|
|
4950
|
-
*
|
|
4949
|
+
* SelectorBoxFile component for file upload with drag-and-drop support.
|
|
4950
|
+
*
|
|
4951
|
+
* This component provides a file selection interface with validation for file type
|
|
4952
|
+
* and size, upload progress display, error handling, and visual feedback states
|
|
4953
|
+
* (loading, success, error). It manages internal state for file selection and focus.
|
|
4954
|
+
*
|
|
4955
|
+
* @example
|
|
4956
|
+
* ```tsx
|
|
4957
|
+
* <SelectorBoxFile
|
|
4958
|
+
* accept="image/*"
|
|
4959
|
+
* maxSize={5000000}
|
|
4960
|
+
* onChange={(files) => console.log(files)}
|
|
4961
|
+
* onSizeError={(file) => alert('File too large')}
|
|
4962
|
+
* />
|
|
4963
|
+
* ```
|
|
4951
4964
|
*/
|
|
4952
|
-
export declare
|
|
4953
|
-
content: string;
|
|
4954
|
-
variant?: string;
|
|
4955
|
-
size?: string;
|
|
4956
|
-
};
|
|
4965
|
+
export declare const SelectorBoxFile: ForwardRefExoticComponent<SelectorBoxFileProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4957
4966
|
|
|
4958
4967
|
/**
|
|
4959
4968
|
* Represents the mapping of states to content in the SelectorBoxFile component.
|
|
4960
4969
|
*/
|
|
4961
4970
|
export declare type SelectorBoxFileContainerBoxStateContentProps = {
|
|
4962
4971
|
[key in SelectorBoxFileStateType]: {
|
|
4963
|
-
icon?:
|
|
4964
|
-
iconRight?:
|
|
4972
|
+
icon?: CommonIconProps;
|
|
4973
|
+
iconRight?: CommonIconProps;
|
|
4965
4974
|
actionText?: CommonTextProps;
|
|
4966
|
-
actionIcon?:
|
|
4975
|
+
actionIcon?: CommonIconProps;
|
|
4967
4976
|
description?: CommonTextProps;
|
|
4968
4977
|
};
|
|
4969
4978
|
};
|
|
@@ -4981,6 +4990,8 @@ export declare interface SelectorBoxFileProps<Variant = undefined extends string
|
|
|
4981
4990
|
success?: boolean;
|
|
4982
4991
|
error?: boolean;
|
|
4983
4992
|
disabled?: boolean;
|
|
4993
|
+
errorMaxSizeMessage?: CommonTextProps;
|
|
4994
|
+
errorFileExtensionMessage?: CommonTextProps;
|
|
4984
4995
|
percentage?: number;
|
|
4985
4996
|
variant?: Variant;
|
|
4986
4997
|
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
@@ -4995,16 +5006,8 @@ export declare interface SelectorBoxFileProps<Variant = undefined extends string
|
|
|
4995
5006
|
*/
|
|
4996
5007
|
export declare interface SelectorBoxFileStandAloneProps extends DataAttributes {
|
|
4997
5008
|
state: SelectorBoxFileStateType;
|
|
4998
|
-
title?: CommonTextProps;
|
|
4999
|
-
subtitle?: CommonTextProps;
|
|
5000
|
-
tooltipIcon?: ElementOrIconProps;
|
|
5001
|
-
tooltip?: SelectorBoxFileTooltipProps;
|
|
5002
5009
|
containerBoxStateContent: SelectorBoxFileContainerBoxStateContentProps;
|
|
5003
5010
|
filename?: string;
|
|
5004
|
-
errorMessageIcon?: ElementOrIconProps;
|
|
5005
|
-
errorMessage?: CommonTextProps;
|
|
5006
|
-
errorMaxSizeMessage?: CommonTextProps;
|
|
5007
|
-
errorFileExtensionMessage?: CommonTextProps;
|
|
5008
5011
|
focus: boolean;
|
|
5009
5012
|
onFocus: React.FocusEventHandler<HTMLInputElement>;
|
|
5010
5013
|
onBlur: React.FocusEventHandler<HTMLInputElement>;
|
|
@@ -5015,8 +5018,6 @@ export declare interface SelectorBoxFileStandAloneProps extends DataAttributes {
|
|
|
5015
5018
|
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
5016
5019
|
onClick?: React.MouseEventHandler<HTMLInputElement>;
|
|
5017
5020
|
onAnimationCompleted?: () => void;
|
|
5018
|
-
description?: CommonTextProps;
|
|
5019
|
-
button?: SelectorBoxFileButtonProps;
|
|
5020
5021
|
maxSize?: number;
|
|
5021
5022
|
fileExtension?: string[];
|
|
5022
5023
|
loader?: React.ReactNode;
|
|
@@ -5027,19 +5028,7 @@ export declare interface SelectorBoxFileStandAloneProps extends DataAttributes {
|
|
|
5027
5028
|
declare type SelectorBoxFileStateType = Extract<StateType, 'default' | 'loading' | 'success' | 'error' | 'disabled'>;
|
|
5028
5029
|
|
|
5029
5030
|
export declare interface SelectorBoxFileStyleProps extends CssLibPropsType {
|
|
5030
|
-
_actionDescriptionContainer?: CssLibPropsType;
|
|
5031
5031
|
_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
5032
|
_animationContainer?: CssLibPropsType;
|
|
5044
5033
|
_topAnimationContainer?: CssLibPropsType;
|
|
5045
5034
|
_leftAnimationContainer?: CssLibPropsType;
|
|
@@ -5057,17 +5046,86 @@ export declare interface SelectorBoxFileStyleProps extends CssLibPropsType {
|
|
|
5057
5046
|
_containerActionContainer?: CssLibPropsType;
|
|
5058
5047
|
}
|
|
5059
5048
|
|
|
5049
|
+
export declare type SelectorBoxFileVariantStyles<Variant extends string> = SelectorBoxFileStyleProps & {
|
|
5050
|
+
[key in Variant]?: SelectorBoxFileStyleProps;
|
|
5051
|
+
};
|
|
5052
|
+
|
|
5060
5053
|
/**
|
|
5061
|
-
* Represents the type for the
|
|
5054
|
+
* Represents the type for the popover in the Select component.
|
|
5062
5055
|
*/
|
|
5063
|
-
export declare type
|
|
5064
|
-
variant?: string;
|
|
5065
|
-
};
|
|
5056
|
+
export declare type SelectPopoverProps = Omit<IPopover, 'children' | 'open'>;
|
|
5066
5057
|
|
|
5067
|
-
|
|
5068
|
-
|
|
5058
|
+
/**
|
|
5059
|
+
* Interface for the standalone Select component.
|
|
5060
|
+
* Includes properties for state, event handlers, and CSS classes.
|
|
5061
|
+
*/
|
|
5062
|
+
export declare interface SelectStandAloneProps extends DataAttributes {
|
|
5063
|
+
open: boolean;
|
|
5064
|
+
popover?: SelectPopoverProps;
|
|
5065
|
+
onButtonClick: MouseEventHandler<HTMLButtonElement | HTMLLinkElement>;
|
|
5066
|
+
onButtonKeyDown: KeyboardEventHandler<HTMLButtonElement | HTMLLinkElement>;
|
|
5067
|
+
onClosePopover: () => void;
|
|
5068
|
+
label: CommonTextProps;
|
|
5069
|
+
icon: CommonIconProps;
|
|
5070
|
+
listOptions: SelectListOptionsProps;
|
|
5071
|
+
optionSelected?: string;
|
|
5072
|
+
onOptionClick: (value: string) => void;
|
|
5073
|
+
listOptionsRef: RefObject<HTMLDivElement>;
|
|
5074
|
+
closePopoverOnScroll?: boolean;
|
|
5075
|
+
openAndCloseOnHover?: boolean;
|
|
5076
|
+
url?: string;
|
|
5077
|
+
urlTarget?: HTMLAttributeAnchorTarget;
|
|
5078
|
+
component: 'button' | GenericLinkType;
|
|
5079
|
+
buttonOrLinkRef?: RefObject<HTMLButtonElement>;
|
|
5080
|
+
onFocus?: FocusEventHandler<HTMLDivElement>;
|
|
5081
|
+
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
5082
|
+
onKeyDown?: KeyboardEventHandler<HTMLDivElement>;
|
|
5083
|
+
cssClasses?: SelectCssClasses;
|
|
5084
|
+
}
|
|
5085
|
+
|
|
5086
|
+
export declare interface SelectStyleProps extends CssLibPropsType {
|
|
5087
|
+
_buttonOrLinkContainer?: CssLibPropsType;
|
|
5088
|
+
_labelOpened?: CssLibPropsType;
|
|
5089
|
+
_labelClosed?: CssLibPropsType;
|
|
5090
|
+
_iconOpened?: CssLibPropsType;
|
|
5091
|
+
_iconClosed?: CssLibPropsType;
|
|
5092
|
+
_listOptionsContainer?: CssLibPropsType;
|
|
5093
|
+
}
|
|
5094
|
+
|
|
5095
|
+
/**
|
|
5096
|
+
* Interface for the uncontrolled Select component.
|
|
5097
|
+
* Extends the SelectProps interface and adds default properties.
|
|
5098
|
+
*/
|
|
5099
|
+
export declare interface SelectUnControlledProps extends Omit<SelectControlledProps, SelectOmittedProps> {
|
|
5100
|
+
defaultOpen?: boolean;
|
|
5101
|
+
defaultOptionSelected?: string;
|
|
5102
|
+
onOptionClick?: (value: string) => void;
|
|
5103
|
+
onButtonClick?: (open: boolean) => void;
|
|
5104
|
+
onClosePopover?: (open: boolean) => void;
|
|
5105
|
+
onMouseEnter?: (open: boolean) => void;
|
|
5106
|
+
onMouseLeave?: (open: boolean) => void;
|
|
5107
|
+
onFocus?: (open: boolean) => void;
|
|
5108
|
+
onBlur?: (open: boolean) => void;
|
|
5109
|
+
}
|
|
5110
|
+
|
|
5111
|
+
export declare type SelectVariantStyles<Variant extends string> = SelectStyleProps & {
|
|
5112
|
+
[key in Variant]: SelectStyleProps;
|
|
5069
5113
|
};
|
|
5070
5114
|
|
|
5115
|
+
/**
|
|
5116
|
+
* Skeleton component for displaying loading placeholders.
|
|
5117
|
+
*
|
|
5118
|
+
* This component renders animated placeholder shapes while content is loading.
|
|
5119
|
+
* It supports different shapes (rectangle, circle, text) and variants for styling.
|
|
5120
|
+
* Useful for improving perceived performance by showing content structure during loading.
|
|
5121
|
+
*
|
|
5122
|
+
* @example
|
|
5123
|
+
* ```tsx
|
|
5124
|
+
* <Skeleton variant="rectangular" shapeVariant="image" />
|
|
5125
|
+
* <Skeleton variant="text" shapeVariant="heading" />
|
|
5126
|
+
* <Skeleton variant="circular" shapeVariant="avatar" />
|
|
5127
|
+
* ```
|
|
5128
|
+
*/
|
|
5071
5129
|
export declare const Skeleton: ForwardRefExoticComponent<SkeletonProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5072
5130
|
|
|
5073
5131
|
/**
|
|
@@ -5112,6 +5170,31 @@ export declare type SkeletonVariantStyles<Variant extends string> = CssLibPropsT
|
|
|
5112
5170
|
[key in Variant]?: CssLibPropsType;
|
|
5113
5171
|
};
|
|
5114
5172
|
|
|
5173
|
+
/**
|
|
5174
|
+
* Slider component for selecting values within a range.
|
|
5175
|
+
*
|
|
5176
|
+
* This component provides a draggable slider control for selecting single values
|
|
5177
|
+
* or value ranges. It supports keyboard navigation, custom min/max/step values,
|
|
5178
|
+
* tooltips, and range selection. Handles both mouse and touch interactions.
|
|
5179
|
+
*
|
|
5180
|
+
* @example
|
|
5181
|
+
* ```tsx
|
|
5182
|
+
* <Slider
|
|
5183
|
+
* min={0}
|
|
5184
|
+
* max={100}
|
|
5185
|
+
* value={50}
|
|
5186
|
+
* onChange={(value) => console.log(value)}
|
|
5187
|
+
* />
|
|
5188
|
+
*
|
|
5189
|
+
* // Range slider:
|
|
5190
|
+
* <Slider
|
|
5191
|
+
* min={0}
|
|
5192
|
+
* max={100}
|
|
5193
|
+
* rangeValue={[25, 75]}
|
|
5194
|
+
* onChange={(range) => console.log(range)}
|
|
5195
|
+
* />
|
|
5196
|
+
* ```
|
|
5197
|
+
*/
|
|
5115
5198
|
export declare const Slider: ForwardRefExoticComponent<SliderProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5116
5199
|
|
|
5117
5200
|
/**
|
|
@@ -5246,6 +5329,24 @@ export declare type SnackbarV2Popover = Omit<IPopover, 'children' | 'open'>;
|
|
|
5246
5329
|
|
|
5247
5330
|
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
5331
|
|
|
5332
|
+
/**
|
|
5333
|
+
* StepperNumber component for incrementing/decrementing numeric values.
|
|
5334
|
+
*
|
|
5335
|
+
* This component provides plus/minus buttons for adjusting numeric values with
|
|
5336
|
+
* configurable step intervals. Supports both horizontal and vertical orientations.
|
|
5337
|
+
*
|
|
5338
|
+
* @example
|
|
5339
|
+
* ```tsx
|
|
5340
|
+
* <StepperNumber
|
|
5341
|
+
* value={5}
|
|
5342
|
+
* min={0}
|
|
5343
|
+
* max={10}
|
|
5344
|
+
* step={1}
|
|
5345
|
+
* onChange={(newValue) => console.log(newValue)}
|
|
5346
|
+
* orientation="horizontal"
|
|
5347
|
+
* />
|
|
5348
|
+
* ```
|
|
5349
|
+
*/
|
|
5249
5350
|
export declare const StepperNumber: ForwardRefExoticComponent<StepperNumberProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5250
5351
|
|
|
5251
5352
|
declare type StepperNumberCssClasses = ComponentSelected<ComponentsTypesComponents['STEPPER_NUMBER']>;
|
|
@@ -5340,42 +5441,138 @@ export declare interface StepStateProps {
|
|
|
5340
5441
|
['aria-label']?: string;
|
|
5341
5442
|
}
|
|
5342
5443
|
|
|
5444
|
+
/**
|
|
5445
|
+
* React Context for styles and theming.
|
|
5446
|
+
* Provides access to styling utilities, theme management, and responsive breakpoints.
|
|
5447
|
+
*/
|
|
5343
5448
|
export declare const StylesContext: Context<StylesContextProps | undefined>;
|
|
5344
5449
|
|
|
5450
|
+
/**
|
|
5451
|
+
* Context value provided by StylesProvider.
|
|
5452
|
+
* Contains all styling-related data and utilities available to child components.
|
|
5453
|
+
*/
|
|
5345
5454
|
declare interface StylesContextProps {
|
|
5455
|
+
/** Current responsive breakpoints configuration */
|
|
5346
5456
|
breakpoints: Breakpoints;
|
|
5457
|
+
/** Array of CSS class names or null */
|
|
5347
5458
|
classes: string[] | null;
|
|
5459
|
+
/** Pre-built media query strings for responsive design */
|
|
5348
5460
|
mediaQueries: MediaQueries;
|
|
5461
|
+
/** Map of available icons */
|
|
5349
5462
|
icons: Record<string, string>;
|
|
5463
|
+
/** Map of available illustrations */
|
|
5350
5464
|
illustrations: Record<string, string>;
|
|
5465
|
+
/** Currently active theme name, or null if no theme is selected */
|
|
5351
5466
|
currentTheme: string | null;
|
|
5467
|
+
/** Function to retrieve styles for a specific component and variant */
|
|
5352
5468
|
getComponentStyles: RecoverComponentStyles;
|
|
5469
|
+
/** Function to change the active theme */
|
|
5353
5470
|
changeTheme: (themeName: string) => void;
|
|
5471
|
+
/** Array of CSS class names for the current theme */
|
|
5354
5472
|
themeClassNames: string[];
|
|
5473
|
+
/** Map of all available themes */
|
|
5355
5474
|
themes: Record<string, string>;
|
|
5475
|
+
/** Map of CSS custom properties (variables) for the current theme */
|
|
5356
5476
|
themeVariables: Record<string, string>;
|
|
5357
5477
|
}
|
|
5358
5478
|
|
|
5359
5479
|
/**
|
|
5360
|
-
* Provider component
|
|
5480
|
+
* Provider component for styles, theming, and responsive design utilities.
|
|
5481
|
+
* Manages theme selection, CSS class generation, and provides styling context to child components.
|
|
5482
|
+
*
|
|
5483
|
+
* Features:
|
|
5484
|
+
* - Theme management with dynamic theme switching
|
|
5485
|
+
* - Responsive breakpoints and media queries
|
|
5486
|
+
* - Icon and illustration asset management
|
|
5487
|
+
* - Component-specific style retrieval
|
|
5488
|
+
* - CSS-in-JS support via Bernova provider
|
|
5489
|
+
*
|
|
5490
|
+
* @param props - Configuration props for the styles provider
|
|
5491
|
+
* @param props.children - React children to be wrapped by the provider
|
|
5492
|
+
* @param props.breakpoints - Custom responsive breakpoints (defaults to standard breakpoints if not provided)
|
|
5493
|
+
* @param props.icons - Map of icon names to URLs or base64 strings
|
|
5494
|
+
* @param props.illustrations - Map of illustration names to URLs or base64 strings
|
|
5495
|
+
* @param props.themeSelected - Initial theme to apply
|
|
5496
|
+
* @param props.bernovaProvider - Custom Bernova provider instance for advanced styling control
|
|
5497
|
+
* @param props.linkId - ID for the style link element in the DOM (default: 'kb-styled-provider')
|
|
5498
|
+
* @param props.jsInCss - Whether to inject CSS directly into JavaScript (default: true)
|
|
5499
|
+
*
|
|
5500
|
+
* @returns The styled provider component wrapping all child components
|
|
5501
|
+
*
|
|
5502
|
+
* @example
|
|
5503
|
+
* ```tsx
|
|
5504
|
+
* <StylesProvider
|
|
5505
|
+
* themeSelected="dark"
|
|
5506
|
+
* breakpoints={{ sm: 576, md: 768, lg: 992, xl: 1200 }}
|
|
5507
|
+
* icons={{ home: '/icons/home.svg' }}
|
|
5508
|
+
* >
|
|
5509
|
+
* <App />
|
|
5510
|
+
* </StylesProvider>
|
|
5511
|
+
* ```
|
|
5361
5512
|
*/
|
|
5362
5513
|
export declare const StylesProvider: FC<StylesProviderProps>;
|
|
5363
5514
|
|
|
5515
|
+
/**
|
|
5516
|
+
* Props for the StylesProvider component.
|
|
5517
|
+
* Configures the styling system including themes, breakpoints, and assets.
|
|
5518
|
+
*/
|
|
5364
5519
|
declare interface StylesProviderProps {
|
|
5520
|
+
/** The React children to be wrapped by the provider */
|
|
5365
5521
|
children: React.ReactNode;
|
|
5522
|
+
/** Custom breakpoints for responsive design. If not provided, uses default breakpoints */
|
|
5366
5523
|
breakpoints?: Breakpoints;
|
|
5524
|
+
/** Map of icon names to their corresponding URLs or base64 strings */
|
|
5367
5525
|
icons?: Record<string, string>;
|
|
5526
|
+
/** Map of illustration names to their corresponding URLs or base64 strings */
|
|
5368
5527
|
illustrations?: Record<string, string>;
|
|
5528
|
+
/** The initial theme to be applied. If not provided, uses the provider's default theme */
|
|
5369
5529
|
themeSelected?: string;
|
|
5530
|
+
/** Custom Bernova provider instance for advanced styling control */
|
|
5370
5531
|
bernovaProvider?: typeof Provider;
|
|
5532
|
+
/** ID for the style link element in the DOM. Default: 'kb-styled-provider' */
|
|
5371
5533
|
linkId?: string;
|
|
5534
|
+
/** Whether to inject CSS directly into JavaScript. Default: true */
|
|
5372
5535
|
jsInCss?: boolean;
|
|
5373
5536
|
}
|
|
5374
5537
|
|
|
5538
|
+
/**
|
|
5539
|
+
* Table component with automatic sticky column calculations and scroll shadow effects.
|
|
5540
|
+
*
|
|
5541
|
+
* This component wraps TableStandAlone and adds automatic sticky positioning for left
|
|
5542
|
+
* and right columns, scroll shadow effects, and responsive behavior. It manages scroll
|
|
5543
|
+
* state and column positioning internally.
|
|
5544
|
+
*
|
|
5545
|
+
* @example
|
|
5546
|
+
* ```tsx
|
|
5547
|
+
* <Table
|
|
5548
|
+
* variant="primary"
|
|
5549
|
+
* autoLeftStickyCalc={true}
|
|
5550
|
+
* autoRightStickyCalc={true}
|
|
5551
|
+
* >
|
|
5552
|
+
* <thead>...</thead>
|
|
5553
|
+
* <tbody>...</tbody>
|
|
5554
|
+
* </Table>
|
|
5555
|
+
* ```
|
|
5556
|
+
*/
|
|
5375
5557
|
export declare const Table: ForwardRefExoticComponent<TableProps & {
|
|
5376
5558
|
children?: ReactNode | undefined;
|
|
5377
5559
|
} & RefAttributes<HTMLDivElement>>;
|
|
5378
5560
|
|
|
5561
|
+
/**
|
|
5562
|
+
* TableBody component for rendering table body sections.
|
|
5563
|
+
*
|
|
5564
|
+
* This component wraps the tbody element with consistent styling and variant support.
|
|
5565
|
+
* Use it as a container for TableRow components within a Table.
|
|
5566
|
+
*
|
|
5567
|
+
* @example
|
|
5568
|
+
* ```tsx
|
|
5569
|
+
* <Table>
|
|
5570
|
+
* <TableBody variant="default">
|
|
5571
|
+
* <TableRow>...</TableRow>
|
|
5572
|
+
* </TableBody>
|
|
5573
|
+
* </Table>
|
|
5574
|
+
* ```
|
|
5575
|
+
*/
|
|
5379
5576
|
export declare const TableBody: ForwardRefExoticComponent<TableBodyProps & {
|
|
5380
5577
|
children?: ReactNode | undefined;
|
|
5381
5578
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5397,6 +5594,22 @@ export declare type TableBodyVariantStyles<Variant extends string> = CssLibProps
|
|
|
5397
5594
|
[key in Variant]: CssLibPropsType;
|
|
5398
5595
|
};
|
|
5399
5596
|
|
|
5597
|
+
/**
|
|
5598
|
+
* TableCaption component for providing titles or descriptions for tables.
|
|
5599
|
+
*
|
|
5600
|
+
* This component renders a caption element for tables, helping users understand
|
|
5601
|
+
* the table's purpose or contents. Important for accessibility and SEO.
|
|
5602
|
+
*
|
|
5603
|
+
* @example
|
|
5604
|
+
* ```tsx
|
|
5605
|
+
* <Table>
|
|
5606
|
+
* <TableCaption variant="default">
|
|
5607
|
+
* Sales Report for Q4 2024
|
|
5608
|
+
* </TableCaption>
|
|
5609
|
+
* <TableHead>...</TableHead>
|
|
5610
|
+
* </Table>
|
|
5611
|
+
* ```
|
|
5612
|
+
*/
|
|
5400
5613
|
export declare const TableCaption: ForwardRefExoticComponent<TableCaptionProps & {
|
|
5401
5614
|
children?: ReactNode | undefined;
|
|
5402
5615
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5419,6 +5632,20 @@ export declare type TableCaptionVariantStyles<Variant extends string> = CssLibPr
|
|
|
5419
5632
|
[key in Variant]: CssLibPropsType;
|
|
5420
5633
|
};
|
|
5421
5634
|
|
|
5635
|
+
/**
|
|
5636
|
+
* TableCell component for rendering individual table cells.
|
|
5637
|
+
*
|
|
5638
|
+
* This component wraps td or th elements with consistent styling and variant support.
|
|
5639
|
+
* Use it within TableRow components to display data or headers in a table.
|
|
5640
|
+
*
|
|
5641
|
+
* @example
|
|
5642
|
+
* ```tsx
|
|
5643
|
+
* <TableRow>
|
|
5644
|
+
* <TableCell variant="default">Cell content</TableCell>
|
|
5645
|
+
* <TableCell>Another cell</TableCell>
|
|
5646
|
+
* </TableRow>
|
|
5647
|
+
* ```
|
|
5648
|
+
*/
|
|
5422
5649
|
export declare const TableCell: ForwardRefExoticComponent<TableCellProps<string> & {
|
|
5423
5650
|
children?: ReactNode | undefined;
|
|
5424
5651
|
} & RefAttributes<HTMLTableCellElement>>;
|
|
@@ -5475,6 +5702,23 @@ export declare type TableCellVariantStyles<Variant extends string> = CssLibProps
|
|
|
5475
5702
|
|
|
5476
5703
|
declare type TableCssClasses = ComponentSelected<ComponentsTypesComponents['TABLE']>;
|
|
5477
5704
|
|
|
5705
|
+
/**
|
|
5706
|
+
* TableDivider component for rendering visual separators in tables.
|
|
5707
|
+
*
|
|
5708
|
+
* This component creates visual dividers or separators between table sections.
|
|
5709
|
+
* Useful for organizing complex tables with multiple logical groups of data.
|
|
5710
|
+
*
|
|
5711
|
+
* @example
|
|
5712
|
+
* ```tsx
|
|
5713
|
+
* <Table>
|
|
5714
|
+
* <TableBody>
|
|
5715
|
+
* <TableRow>...</TableRow>
|
|
5716
|
+
* <TableDivider variant="default" />
|
|
5717
|
+
* <TableRow>...</TableRow>
|
|
5718
|
+
* </TableBody>
|
|
5719
|
+
* </Table>
|
|
5720
|
+
* ```
|
|
5721
|
+
*/
|
|
5478
5722
|
export declare const TableDivider: ForwardRefExoticComponent<TableDividerProps & {
|
|
5479
5723
|
children?: ReactNode | undefined;
|
|
5480
5724
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5496,6 +5740,25 @@ export declare type TableDividerVariantStyles<Variant extends string> = CssLibPr
|
|
|
5496
5740
|
[key in Variant]: CssLibPropsType;
|
|
5497
5741
|
};
|
|
5498
5742
|
|
|
5743
|
+
/**
|
|
5744
|
+
* TableFoot component for rendering table footer sections.
|
|
5745
|
+
*
|
|
5746
|
+
* This component wraps the tfoot element with consistent styling and variant support.
|
|
5747
|
+
* Use it to display summary rows, totals, or footer information in a table.
|
|
5748
|
+
*
|
|
5749
|
+
* @example
|
|
5750
|
+
* ```tsx
|
|
5751
|
+
* <Table>
|
|
5752
|
+
* <TableBody>...</TableBody>
|
|
5753
|
+
* <TableFoot variant="default">
|
|
5754
|
+
* <TableRow>
|
|
5755
|
+
* <TableCell>Total</TableCell>
|
|
5756
|
+
* <TableCell>$1,234</TableCell>
|
|
5757
|
+
* </TableRow>
|
|
5758
|
+
* </TableFoot>
|
|
5759
|
+
* </Table>
|
|
5760
|
+
* ```
|
|
5761
|
+
*/
|
|
5499
5762
|
export declare const TableFoot: ForwardRefExoticComponent<TableFootProps & {
|
|
5500
5763
|
children?: ReactNode | undefined;
|
|
5501
5764
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5517,6 +5780,23 @@ export declare type TableFootVariantStyles<Variant extends string> = CssLibProps
|
|
|
5517
5780
|
[key in Variant]: CssLibPropsType;
|
|
5518
5781
|
};
|
|
5519
5782
|
|
|
5783
|
+
/**
|
|
5784
|
+
* TableHead component for rendering table header sections.
|
|
5785
|
+
*
|
|
5786
|
+
* This component wraps the thead element with consistent styling and variant support.
|
|
5787
|
+
* Use it as a container for TableRow components with header cells within a Table.
|
|
5788
|
+
*
|
|
5789
|
+
* @example
|
|
5790
|
+
* ```tsx
|
|
5791
|
+
* <Table>
|
|
5792
|
+
* <TableHead variant="default">
|
|
5793
|
+
* <TableRow>
|
|
5794
|
+
* <TableCell>Header 1</TableCell>
|
|
5795
|
+
* </TableRow>
|
|
5796
|
+
* </TableHead>
|
|
5797
|
+
* </Table>
|
|
5798
|
+
* ```
|
|
5799
|
+
*/
|
|
5520
5800
|
export declare const TableHead: ForwardRefExoticComponent<TableHeadProps & {
|
|
5521
5801
|
children?: ReactNode | undefined;
|
|
5522
5802
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5548,6 +5828,22 @@ export declare interface TableProps extends Omit<TableStandAloneProps, 'hasScrol
|
|
|
5548
5828
|
additionalClasses?: Partial<TableCssClasses>;
|
|
5549
5829
|
}
|
|
5550
5830
|
|
|
5831
|
+
/**
|
|
5832
|
+
* TableRow component for rendering table rows.
|
|
5833
|
+
*
|
|
5834
|
+
* This component wraps the tr element with consistent styling and variant support.
|
|
5835
|
+
* Use it as a container for TableCell components within TableHead or TableBody sections.
|
|
5836
|
+
*
|
|
5837
|
+
* @example
|
|
5838
|
+
* ```tsx
|
|
5839
|
+
* <TableBody>
|
|
5840
|
+
* <TableRow variant="default">
|
|
5841
|
+
* <TableCell>Data 1</TableCell>
|
|
5842
|
+
* <TableCell>Data 2</TableCell>
|
|
5843
|
+
* </TableRow>
|
|
5844
|
+
* </TableBody>
|
|
5845
|
+
* ```
|
|
5846
|
+
*/
|
|
5551
5847
|
export declare const TableRow: ForwardRefExoticComponent<TableRowProps & {
|
|
5552
5848
|
children?: ReactNode | undefined;
|
|
5553
5849
|
} & RefAttributes<HTMLTableRowElement>>;
|
|
@@ -5597,8 +5893,44 @@ export declare type TableVariantStyles<Variant extends string> = TableStyleProps
|
|
|
5597
5893
|
[key in Variant]: TableStyleProps;
|
|
5598
5894
|
};
|
|
5599
5895
|
|
|
5896
|
+
/**
|
|
5897
|
+
* TabsUnControlled component with internal tab selection state.
|
|
5898
|
+
*
|
|
5899
|
+
* This component renders a tab navigation that manages the selected tab internally.
|
|
5900
|
+
* It starts with a default selected tab and updates automatically on user interaction.
|
|
5901
|
+
* Useful when you don't need to control tab selection from a parent component.
|
|
5902
|
+
*
|
|
5903
|
+
* @example
|
|
5904
|
+
* ```tsx
|
|
5905
|
+
* <TabsUnControlled
|
|
5906
|
+
* defaultSelectedTab={0}
|
|
5907
|
+
* tabs={[
|
|
5908
|
+
* { id: 'tab1', label: 'Tab 1' },
|
|
5909
|
+
* { id: 'tab2', label: 'Tab 2' }
|
|
5910
|
+
* ]}
|
|
5911
|
+
* onSelectTab={(index) => console.log(index)}
|
|
5912
|
+
* />
|
|
5913
|
+
* ```
|
|
5914
|
+
*/
|
|
5600
5915
|
export declare const Tabs: ForwardRefExoticComponent<TabsUnControlledProps<string | undefined> & RefAttributes<HTMLDivElement>>;
|
|
5601
5916
|
|
|
5917
|
+
/**
|
|
5918
|
+
* TabsControlled component for tab navigation with external state management.
|
|
5919
|
+
*
|
|
5920
|
+
* This component displays a set of tabs where the selected tab is controlled
|
|
5921
|
+
* externally via props. It's device-aware and adjusts behavior based on screen size.
|
|
5922
|
+
*
|
|
5923
|
+
* @example
|
|
5924
|
+
* ```tsx
|
|
5925
|
+
* <TabsControlled
|
|
5926
|
+
* defaultSelectedTab="tab1"
|
|
5927
|
+
* tabs={[
|
|
5928
|
+
* { id: 'tab1', label: 'Tab 1' },
|
|
5929
|
+
* { id: 'tab2', label: 'Tab 2' }
|
|
5930
|
+
* ]}
|
|
5931
|
+
* />
|
|
5932
|
+
* ```
|
|
5933
|
+
*/
|
|
5602
5934
|
export declare const TabsControlled: ForwardRefExoticComponent<TabsUnControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5603
5935
|
|
|
5604
5936
|
declare type TabsCssClasses = ComponentSelected<ComponentsTypesComponents['TABS']>;
|
|
@@ -5753,6 +6085,23 @@ export declare type TagVariantStyles<Variant extends string> = TagStyleProps & {
|
|
|
5753
6085
|
declare const Text_2: ForwardRefExoticComponent<TextProps<string> & RefAttributes<HTMLParagraphElement>>;
|
|
5754
6086
|
export { Text_2 as Text }
|
|
5755
6087
|
|
|
6088
|
+
/**
|
|
6089
|
+
* TextArea component for multi-line text input.
|
|
6090
|
+
*
|
|
6091
|
+
* This component provides a styled textarea with support for labels, error states,
|
|
6092
|
+
* character counting, and focus management. It handles internal focus state and
|
|
6093
|
+
* applies appropriate styling based on filled and error states.
|
|
6094
|
+
*
|
|
6095
|
+
* @example
|
|
6096
|
+
* ```tsx
|
|
6097
|
+
* <TextArea
|
|
6098
|
+
* label="Comments"
|
|
6099
|
+
* placeholder="Enter your comments"
|
|
6100
|
+
* maxLength={500}
|
|
6101
|
+
* error="Required field"
|
|
6102
|
+
* />
|
|
6103
|
+
* ```
|
|
6104
|
+
*/
|
|
5756
6105
|
export declare const TextArea: ForwardRefExoticComponent<TextAreaProps<string | undefined> & RefAttributes<HTMLDivElement>>;
|
|
5757
6106
|
|
|
5758
6107
|
export declare type TextAreaCssClasses = ComponentSelected<ComponentsTypesComponents['TEXT_AREA']>;
|
|
@@ -6038,17 +6387,46 @@ export declare type ToggleVariantStyles<Variant extends string> = ToggleVariantS
|
|
|
6038
6387
|
[key in Variant]?: ToggleVariantStyleProps;
|
|
6039
6388
|
};
|
|
6040
6389
|
|
|
6390
|
+
/**
|
|
6391
|
+
* TooltipUnControlled component with internal visibility management.
|
|
6392
|
+
*
|
|
6393
|
+
* This component renders a tooltip that manages its own open/close state based
|
|
6394
|
+
* on user interactions (hover, focus). It handles modal behavior on mobile devices,
|
|
6395
|
+
* scroll detection, swipe gestures, and focus trapping automatically.
|
|
6396
|
+
*
|
|
6397
|
+
* @example
|
|
6398
|
+
* ```tsx
|
|
6399
|
+
* <TooltipUnControlled
|
|
6400
|
+
* title="Helpful information"
|
|
6401
|
+
* variant="default"
|
|
6402
|
+
* >
|
|
6403
|
+
* <button>Hover me</button>
|
|
6404
|
+
* </TooltipUnControlled>
|
|
6405
|
+
* ```
|
|
6406
|
+
*/
|
|
6041
6407
|
export declare const Tooltip: ForwardRefExoticComponent<TooltipUnControlledProps<string | undefined> & RefAttributes<HTMLDivElement>>;
|
|
6042
6408
|
|
|
6043
6409
|
declare type TooltipAlignType = Extract<PositionType, 'top' | 'right' | 'bottom' | 'left'>;
|
|
6044
6410
|
|
|
6045
6411
|
/**
|
|
6046
|
-
*
|
|
6412
|
+
* TooltipControlled component for displaying contextual information.
|
|
6413
|
+
*
|
|
6414
|
+
* This component renders a tooltip that can be shown on hover or focus.
|
|
6415
|
+
* It supports modal behavior on mobile devices and adjusts positioning based
|
|
6416
|
+
* on scroll detection. State is managed externally via props.
|
|
6417
|
+
*
|
|
6418
|
+
* @example
|
|
6419
|
+
* ```tsx
|
|
6420
|
+
* <TooltipControlled
|
|
6421
|
+
* variant="default"
|
|
6422
|
+
* title="Help text"
|
|
6423
|
+
* open={isOpen}
|
|
6424
|
+
* onOpenChange={setIsOpen}
|
|
6425
|
+
* >
|
|
6426
|
+
* <button>Hover me</button>
|
|
6427
|
+
* </TooltipControlled>
|
|
6428
|
+
* ```
|
|
6047
6429
|
*/
|
|
6048
|
-
export declare type TooltipCloseIconProps = Omit<IconProps, 'icon'> & {
|
|
6049
|
-
icon?: string;
|
|
6050
|
-
};
|
|
6051
|
-
|
|
6052
6430
|
export declare const TooltipControlled: <Variant extends string>({ additionalClasses, tooltipAriaLabel, tooltipAsModal: propTooltipAsModal, tooltipAsModal: isModal, tooltipRef, variant, ...props }: TooltipControlledProps<Variant>) => JSX.Element;
|
|
6053
6431
|
|
|
6054
6432
|
/**
|
|
@@ -6083,7 +6461,6 @@ export declare interface TooltipStandAloneProps extends DataAttributes {
|
|
|
6083
6461
|
disabled?: boolean;
|
|
6084
6462
|
mediaDevice: DeviceBreakpointsType;
|
|
6085
6463
|
align?: TooltipAlignType | string;
|
|
6086
|
-
title?: CommonTextProps;
|
|
6087
6464
|
contentHasScroll?: boolean;
|
|
6088
6465
|
content?: CommonTextProps;
|
|
6089
6466
|
contentRef?: ForwardedRef<HTMLDivElement> | undefined;
|
|
@@ -6095,11 +6472,9 @@ export declare interface TooltipStandAloneProps extends DataAttributes {
|
|
|
6095
6472
|
onTriggerClick?: MouseEventHandler<HTMLElement>;
|
|
6096
6473
|
onTriggerMouseDown?: MouseEventHandler<HTMLElement>;
|
|
6097
6474
|
onTriggerMouseUp?: MouseEventHandler<HTMLElement>;
|
|
6098
|
-
onCloseIconClick?: MouseEventHandler<HTMLElement>;
|
|
6099
6475
|
children: JSX.Element | string | ReactNode;
|
|
6100
6476
|
popoverOpen?: boolean;
|
|
6101
6477
|
cssClasses?: TooltipCssClasses;
|
|
6102
|
-
closeIcon?: IconProps;
|
|
6103
6478
|
childrenAsButton?: boolean;
|
|
6104
6479
|
triggerAsButton?: Pick<AriaAttributes, 'aria-label' | 'aria-labelledby' | 'aria-describedby' | 'aria-controls' | 'aria-expanded' | 'aria-pressed' | 'aria-disabled'>;
|
|
6105
6480
|
onPopoverCloseInternally?: () => void;
|
|
@@ -6110,8 +6485,6 @@ export declare interface TooltipStandAloneProps extends DataAttributes {
|
|
|
6110
6485
|
onTriggerKeyDown?: KeyboardEventHandler<HTMLDivElement>;
|
|
6111
6486
|
onTooltipKeyDown?: KeyboardEventHandler<HTMLElement>;
|
|
6112
6487
|
popover?: TooltipPopoverProps;
|
|
6113
|
-
dragIcon?: ElementOrIconProps;
|
|
6114
|
-
dragIconRef?: MutableRefObject<HTMLDivElement | null>;
|
|
6115
6488
|
tooltipAriaLabel?: string;
|
|
6116
6489
|
}
|
|
6117
6490
|
|
|
@@ -6149,6 +6522,24 @@ export declare type TooltipVariantStyles<Variant extends string> = TooltipStyleP
|
|
|
6149
6522
|
[key in Variant]?: TooltipStyleProps;
|
|
6150
6523
|
};
|
|
6151
6524
|
|
|
6525
|
+
/**
|
|
6526
|
+
* Custom hook to access the generic components context.
|
|
6527
|
+
* Provides access to the custom Link and Image components configured in the provider.
|
|
6528
|
+
*
|
|
6529
|
+
* @throws {Error} If used outside of a GenericComponentsProvider or with invalid value
|
|
6530
|
+
* @returns The generic components (LINK, IMAGE) from the context
|
|
6531
|
+
*
|
|
6532
|
+
* @example
|
|
6533
|
+
* ```tsx
|
|
6534
|
+
* const { LINK, IMAGE } = useGenericComponents();
|
|
6535
|
+
*
|
|
6536
|
+
* return (
|
|
6537
|
+
* <LINK url="/home">
|
|
6538
|
+
* <IMAGE src="/logo.png" alt="Logo" />
|
|
6539
|
+
* </LINK>
|
|
6540
|
+
* );
|
|
6541
|
+
* ```
|
|
6542
|
+
*/
|
|
6152
6543
|
export declare const useGenericComponents: () => GenericComponentsType;
|
|
6153
6544
|
|
|
6154
6545
|
declare interface UseRoveFocusProps {
|
|
@@ -6164,10 +6555,17 @@ declare interface UseRoveFocusProps {
|
|
|
6164
6555
|
}
|
|
6165
6556
|
|
|
6166
6557
|
/**
|
|
6167
|
-
* Custom hook to access the
|
|
6558
|
+
* Custom hook to access the StylesContext.
|
|
6559
|
+
* Provides styling utilities including theme management, breakpoints, and component styles.
|
|
6560
|
+
*
|
|
6561
|
+
* @throws {Error} If used outside of a StylesProvider
|
|
6562
|
+
* @returns The current styles context value
|
|
6168
6563
|
*
|
|
6169
|
-
* @
|
|
6170
|
-
*
|
|
6564
|
+
* @example
|
|
6565
|
+
* ```tsx
|
|
6566
|
+
* const { currentTheme, changeTheme, getComponentStyles } = useStylesContext();
|
|
6567
|
+
* const styles = getComponentStyles({ component: 'button', variant: 'primary' });
|
|
6568
|
+
* ```
|
|
6171
6569
|
*/
|
|
6172
6570
|
export declare const useStylesContext: () => StylesContextProps;
|
|
6173
6571
|
|
|
@@ -6192,27 +6590,84 @@ export declare const useUtilsProvider: () => UtilsContextType;
|
|
|
6192
6590
|
*/
|
|
6193
6591
|
export declare const UtilsContext: Context<UtilsContextType | null>;
|
|
6194
6592
|
|
|
6593
|
+
/**
|
|
6594
|
+
* Context type for utility functions and configurations.
|
|
6595
|
+
* Provides date manipulation, formatting, and asset management utilities.
|
|
6596
|
+
*/
|
|
6195
6597
|
declare interface UtilsContextType {
|
|
6598
|
+
/**
|
|
6599
|
+
* Base URLs for different types of assets.
|
|
6600
|
+
* Used to construct full paths for icons, illustrations, images, and animations.
|
|
6601
|
+
*/
|
|
6196
6602
|
assets?: {
|
|
6603
|
+
/** Base URL for all assets */
|
|
6197
6604
|
baseHost: string;
|
|
6605
|
+
/** Specific base URL for icon assets */
|
|
6198
6606
|
iconsBaseHost?: string;
|
|
6607
|
+
/** Specific base URL for illustration assets */
|
|
6199
6608
|
illutrationsBaseHost?: string;
|
|
6609
|
+
/** Specific base URL for image assets */
|
|
6200
6610
|
imagesBaseHost?: string;
|
|
6611
|
+
/** Specific base URL for animation assets */
|
|
6201
6612
|
animationsBaseHost?: string;
|
|
6202
6613
|
};
|
|
6614
|
+
/**
|
|
6615
|
+
* Formats a Date object into a string representation.
|
|
6616
|
+
* @param date - The date to format
|
|
6617
|
+
* @param format - Format string or options object (e.g., 'dd/MM/yyyy', 'd', etc.)
|
|
6618
|
+
* @param locale - Optional locale string (e.g., 'en-US', 'es-ES')
|
|
6619
|
+
* @returns Formatted date string
|
|
6620
|
+
*/
|
|
6203
6621
|
formatDate: (date: Date, format: DateFormatOptions | FormatDateType | string, locale?: string) => string;
|
|
6622
|
+
/**
|
|
6623
|
+
* Transforms a string or number into a Date object.
|
|
6624
|
+
* @param date - The date value to transform (timestamp or date string)
|
|
6625
|
+
* @param format - Optional format string to parse the date
|
|
6626
|
+
* @returns Parsed Date object
|
|
6627
|
+
*/
|
|
6204
6628
|
transformDate: (date: string | number, format?: string) => Date;
|
|
6629
|
+
/**
|
|
6630
|
+
* Collection of date manipulation and comparison utilities.
|
|
6631
|
+
*/
|
|
6205
6632
|
dateHelpers: {
|
|
6633
|
+
/** Subtracts a specified number of days from a date */
|
|
6206
6634
|
getSubDays: (date: Date, amount: number) => Date;
|
|
6635
|
+
/** Subtracts a specified number of months from a date */
|
|
6207
6636
|
getSubMonths: (date: Date, amount: number) => Date;
|
|
6637
|
+
/** Subtracts a specified number of years from a date */
|
|
6208
6638
|
getSubYears: (date: Date, amount: number) => Date;
|
|
6639
|
+
/** Adds a specified number of months to a date */
|
|
6209
6640
|
getAddMonths: (date: Date, amount: number) => Date;
|
|
6641
|
+
/** Adds a specified number of days to a date */
|
|
6210
6642
|
getAddDays: (date: Date, amount: number) => Date;
|
|
6643
|
+
/** Adds a specified number of years to a date */
|
|
6211
6644
|
getAddYears: (date: Date, years: number) => Date;
|
|
6645
|
+
/**
|
|
6646
|
+
* Gets all month names in the specified format and locale.
|
|
6647
|
+
* @param monthFormat - Format for month names ('long', 'short', 'narrow')
|
|
6648
|
+
* @param locale - Optional locale string
|
|
6649
|
+
* @returns Array of month names
|
|
6650
|
+
*/
|
|
6212
6651
|
getAllMonthName: (monthFormat: Intl.DateTimeFormatOptions['month'], locale?: string) => Array<string>;
|
|
6652
|
+
/**
|
|
6653
|
+
* Gets all weekday names in the specified format and locale.
|
|
6654
|
+
* @param weekdayFormat - Format for weekday names ('long', 'short', 'narrow')
|
|
6655
|
+
* @param isSundayFirst - Whether Sunday should be the first day of the week
|
|
6656
|
+
* @param locale - Optional locale string
|
|
6657
|
+
* @returns Array of weekday names
|
|
6658
|
+
*/
|
|
6213
6659
|
getAllWeekdayName: (weekdayFormat: Intl.DateTimeFormatOptions['weekday'], isSundayFirst: boolean, locale?: string) => Array<string>;
|
|
6660
|
+
/** Checks if the first date is before the second date */
|
|
6214
6661
|
isBefore: (date1: Date, date2: Date) => boolean;
|
|
6662
|
+
/** Checks if the first date is after the second date */
|
|
6215
6663
|
isAfter: (date1: Date, date2: Date) => boolean;
|
|
6664
|
+
/**
|
|
6665
|
+
* Checks if two dates are equal.
|
|
6666
|
+
* @param firstDate - First date to compare
|
|
6667
|
+
* @param secondDate - Second date to compare
|
|
6668
|
+
* @param shouldCompareTime - Whether to include time in comparison
|
|
6669
|
+
* @returns True if dates are equal
|
|
6670
|
+
*/
|
|
6216
6671
|
isDatesEqual: (firstDate: Date | number | string, secondDate: Date | number | string, shouldCompareTime: boolean) => boolean;
|
|
6217
6672
|
};
|
|
6218
6673
|
}
|
|
@@ -6243,7 +6698,12 @@ declare interface UtilsContextType {
|
|
|
6243
6698
|
*/
|
|
6244
6699
|
export declare const UtilsProvider: (props: UtilsProviderProps) => JSX_2.Element;
|
|
6245
6700
|
|
|
6701
|
+
/**
|
|
6702
|
+
* Props for the UtilsProvider component.
|
|
6703
|
+
* Extends UtilsContextType with required children prop.
|
|
6704
|
+
*/
|
|
6246
6705
|
declare type UtilsProviderProps = UtilsContextType & {
|
|
6706
|
+
/** The React children to be wrapped by the provider */
|
|
6247
6707
|
children: ReactElement;
|
|
6248
6708
|
};
|
|
6249
6709
|
|
|
@@ -6296,7 +6756,7 @@ export declare interface VirtualKeyboardStandAloneProps extends DataAttributes {
|
|
|
6296
6756
|
onVirtualKeyboardBlur: React.FocusEventHandler<HTMLDivElement>;
|
|
6297
6757
|
onDigitButtonClick: (digit: string, event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
6298
6758
|
onRemoveButtonClick: React.MouseEventHandler<HTMLButtonElement>;
|
|
6299
|
-
icon:
|
|
6759
|
+
icon: CommonIconProps;
|
|
6300
6760
|
cssClasses?: VirtualKeyboardCssClasses;
|
|
6301
6761
|
}
|
|
6302
6762
|
|