@kubit-ui-web/react-components 2.0.0-beta.27 → 2.0.0-beta.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 -1
- package/dist/cjs/components/alert/alertStandAlone.js +1 -1
- 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 -1
- package/dist/cjs/components/card/cardStandAlone.js +1 -1
- 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/selectControlled.js +1 -1
- package/dist/cjs/components/select/selectStandAlone.js +1 -1
- package/dist/cjs/components/select/selectUncontrolled.js +1 -1
- 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/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 -1
- 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 -1
- package/dist/cjs/lib/hooks/useScrollEffect/useScrollEffect.js +1 -1
- package/dist/cjs/lib/hooks/useScrollEffect/utils/scrollPercentage.js +1 -1
- package/dist/cjs/lib/hooks/useSwipeDown/useSwipeDown.js +1 -1
- package/dist/cjs/lib/hooks/useSwipeDown/utils/convertDurationToNumber.js +1 -1
- package/dist/cjs/lib/hooks/useTrapFocus/useTrapFocus.js +1 -1
- package/dist/cjs/lib/provider/genericComponentsProvider/defaultGenericComponents.js +1 -1
- package/dist/cjs/lib/provider/genericComponentsProvider/genericComponentsProvider.js +1 -1
- package/dist/cjs/lib/provider/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 -1
- package/dist/cjs/lib/utils/refs/syncRefs.js +1 -1
- 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 -2
- package/dist/esm/components/alert/alertStandAlone.js +2 -2
- package/dist/esm/components/avatar/avatar.js +2 -2
- package/dist/esm/components/avatar/avatarStandAlone.js +2 -2
- package/dist/esm/components/avatar/fragments/drawContent.js +1 -1
- 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 -3
- 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 -3
- 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 -7
- 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 -2
- package/dist/esm/components/card/cardStandAlone.js +2 -2
- 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 -5
- 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 -8
- 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 -10
- 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 -3
- 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 -3
- 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 -2
- 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 -2
- package/dist/esm/components/listOptions/utils/listOptions.utils.js +1 -1
- package/dist/esm/components/modal/fragments/modalHeader.js +2 -3
- package/dist/esm/components/modal/modalControlled.js +1 -1
- package/dist/esm/components/modal/modalStandAlone.js +4 -4
- 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 -9
- 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 -2
- 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 -6
- 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 -4
- 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/selectControlled.js +1 -1
- package/dist/esm/components/select/selectStandAlone.js +2 -5
- package/dist/esm/components/select/selectUncontrolled.js +1 -2
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileAnimation.js +2 -3
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileContainerBox.js +6 -8
- 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 -4
- 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 -1
- 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 -17
- 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 -5
- 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 -11
- 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 -6
- 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/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 -1
- 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 -1
- 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/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 +1 -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 -1
- package/dist/esm/lib/utils/refs/syncRefs.js +1 -1
- package/dist/esm/lib/utils/scroll/hasScroll.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/.storybook/bundle-sizes.json +0 -13
- package/dist/cjs/assets/banner_kubit_readme.png +0 -0
- package/dist/cjs/assets/react-components.css +0 -1
- package/dist/cjs/components/image/image.js +0 -1
- package/dist/cjs/components/skeleton/skeleton.js +0 -1
- package/dist/cjs/components/text/text.js +0 -1
- package/dist/cjs/lib/storybook/components/divider/divider.css +0 -1
- package/dist/cjs/lib/storybook/components/note/styles.css +0 -1
- package/dist/cjs/scripts/generate-bundle-sizes.mjs +0 -236
- package/dist/cjs/scripts/new-component-web-ui.js +0 -2092
- package/dist/esm/.storybook/bundle-sizes.json +0 -13
- package/dist/esm/assets/banner_kubit_readme.png +0 -0
- package/dist/esm/assets/react-components.css +0 -1
- package/dist/esm/components/image/image.js +0 -2
- package/dist/esm/components/skeleton/skeleton.js +0 -2
- package/dist/esm/components/text/text.js +0 -1
- package/dist/esm/lib/storybook/components/divider/divider.css +0 -1
- package/dist/esm/lib/storybook/components/note/styles.css +0 -1
- package/dist/esm/scripts/generate-bundle-sizes.mjs +0 -236
- package/dist/esm/scripts/new-component-web-ui.js +0 -2092
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{StylesContext as r}from"../../lib/provider/stylesProvider/stylesProvider.js";import{IconBasic as o}from"./icon.js";import{UtilsContext as i}from"../../lib/provider/utilsProvider/utilsProvider.js";import{isValidHttpUrl as s}from"../../lib/utils/is/isValidHttpUrl.js";import{forwardRef as t,useContext as e,useEffect as c,useState as n}from"react";import{jsx as a}from"react/jsx-runtime";const l=t(({fallbackIcon:t,icon:l,...m},f)=>{const p=e(i),d=e(r),b=s(l)?l:`${p?.assets?.baseHost}${d?.icons?.[l]}`,[v,j]=n(b);return c(()=>{if(t){const r=s(t)?t:`${p?.assets?.baseHost}${d?.icons?.[t]}`;(async()=>{try{if(!(await fetch(b,{cache:"no-store"})).ok)throw new Error("Error loading icon");j(b)}catch{j(r)}})()}else j(b)},[b,t,p,d]),/* @__PURE__ */a(o,{...m,ref:f,icon:v})});export{l as IconHost};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{pickCustomAttributes as t}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{classNames as a}from"../../lib/utils/classNames/classNames.js";import{forwardRef as i,useState as s}from"react";import{jsx as e}from"react/jsx-runtime";var o=i(({altText:i,className:o,color:r,cssClasses:n,customAttributes:l,emptyAltText:m,height:c,id:u,rotate:d,transitionDuration:h,width:g,...p},b)=>{const[f]=s(""),x=t({...p,...l}),A=n?.dynamic_values({$color:r||"",$height:c||"",$moveAround:d||"",$transitionDuration:h||"",$width:g||""}).object;/* @__PURE__ */
|
|
2
|
+
return e("span",{dangerouslySetInnerHTML:{__html:f},ref:b,"aria-hidden":m,"aria-label":i,className:a(n?.complex,o),"data-testid":"icon",id:u,role:m?"none":"img",style:A,...x})});const r=i(({altText:i,className:s,color:r,complex:n=!1,cssClasses:l,customAttributes:m,height:c,icon:u,id:d,loading:h="lazy",rotate:g,transitionDuration:p,twistAnimationTransformValue:b,width:f,...x},A)=>{const $=!i,w=t({...x,...m});return n?/* @__PURE__ */e(o,{ref:A,altText:i,className:s,color:r,cssClasses:l,customAttributes:m,"data-testid":"icon",emptyAltText:$,height:c,icon:u,id:d,rotate:g,transitionDuration:p,width:f,...x}):/* @__PURE__ */e("span",{ref:A,"aria-hidden":$,"aria-label":i,className:a(l?.svg,s),"data-testid":"icon","data-twist-animation-transform-value":!!b,id:d,role:$?"svg":"img",style:{backgroundColor:r,height:c,maskImage:`url("${u}")`,minHeight:c,minWidth:f,transform:b||`rotate(${g})`,transitionDuration:p,WebkitMaskImage:`url("${u}")`,width:f},...w})});export{r as IconStandAlone};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{pickCustomAttributes as t}from"../../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{jsx as i}from"react/jsx-runtime";const r=({mediaSource:r,...e})=>{if(!r)return null;const s=t(e);/* @__PURE__ */
|
|
2
|
+
return i("source",{height:r.height,media:r.media,srcSet:r.src,width:r.width,...s})};export{r as PictureSourceStandAlone};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{useGenericComponents as r}from"../../lib/provider/genericComponentsProvider/genericComponentsProvider.js";import{ImageStandAlone as o}from"./imageStandAlone.js";import{forwardRef as e}from"react";import{jsx as t}from"react/jsx-runtime";const n=e((e,n)=>{const{IMAGE:m}=r();/* @__PURE__ */
|
|
2
|
+
return t(o,{...e,ref:n,component:m})});export{n as Image};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
3
|
-
/* @__PURE__ */
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */i("img",{alt:r,height:l,loading:n,src:d.DEFAULT.src,title:f,width:g,onLoad:u})]}),m&&/* @__PURE__ */i("figcaption",{children:m})]})});export{c as ImageStandAlone};
|
|
1
|
+
import{pickCustomAttributes as t}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";/* empty css */import{DEVICE_BREAKPOINTS as i}from"../../lib/types/breakpoints/breakpoints.js";import{PictureSourceStandAlone as r}from"./components/pictureSourceStandAlone.js";import{getFallbackRatio as e}from"./utils/getFallbackRatio.js";import{forwardRef as o}from"react";import{jsx as a,jsxs as c}from"react/jsx-runtime";const s=o(({alt:o,borderRadius:s,caption:m,height:l,images:d,loading:n="lazy",objectFit:p,onLoad:u,ratio:b,title:f,width:g,...h},j)=>{const S={"--border-radius":s,"--fallback-ratio":b&&e(b)+"%","--object-fit":p,"--ratio":b},k=t(h);/* @__PURE__ */
|
|
2
|
+
return c("figure",{ref:j,"data-testid":"image",...k,children:[/* @__PURE__ */c("picture",{className:"kbt-picture",style:S,children:[
|
|
3
|
+
/* @__PURE__ */a(r,{mediaSource:d[i.LARGE_DESKTOP]}),
|
|
4
|
+
/* @__PURE__ */a(r,{mediaSource:d[i.DESKTOP]}),
|
|
5
|
+
/* @__PURE__ */a(r,{mediaSource:d[i.TABLET]}),
|
|
6
|
+
/* @__PURE__ */a(r,{mediaSource:d[i.MOBILE]}),
|
|
7
|
+
/* @__PURE__ */a("img",{alt:o,height:l,loading:n,src:d.DEFAULT.src,title:f,width:g,onLoad:u})]}),m&&/* @__PURE__ */a("figcaption",{children:m})]})});export{s as ImageStandAlone};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o=o=>100*o;export{o as getFallbackRatio};
|
|
1
|
+
const o=o=>100*o;export{o as getFallbackRatio};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{useClassName as e}from"../../lib/hooks/useClassName/useClassName.js";import{InputStandAlone as t}from"./inputStandAlone.js";import{getState as a}from"./utils/state.js";import{forwardRef as r,useCallback as s,useId as o,useImperativeHandle as l,useRef as n,useState as i}from"react";import{jsx as u}from"react/jsx-runtime";const d=r(({additionalClasses:r,id:d,variant:c,...m},p)=>{const f=e({additionalClassNames:r,component:"INPUT",variant:c}),b=`input-${o().replace(/:/g,"")}`,C=d||b,j=`${C}-label`,N=n(null),v=n(null),B=s(e=>{e&&(v.current=e.querySelector("input")),N.current=e},[]);l(p,()=>N.current,[]);const[I,x]=i(!1),S=s(()=>x(!0),[]),$=s(()=>x(!1),[]),g=Boolean(m.defaultValue??m.value),h=a({disabled:m.disabled,error:m.error,filled:g,focused:I});/* @__PURE__ */
|
|
2
|
+
return u(t,{ref:B,cssClasses:f,"data-state":h,"data-testid":"input-container",filled:g,focused:I,inputBaseId:C,labelId:j,onBlur:$,onFocus:S,...m})});export{d as Input};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
3
|
-
/* @__PURE__ */
|
|
1
|
+
import{pickCustomAttributes as i}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{InputBase as r}from"../inputBase/inputBase.js";import{InputDecoration as t}from"../inputDecoration/inputDecoration.js";import{forwardRef as a}from"react";import{jsx as e,jsxs as o}from"react/jsx-runtime";const s=a(({cssClasses:a,disabled:s,error:n,filled:d,focused:l,inputBaseId:c,labelId:u,leftDecoration:p,required:f,rightDecoration:m,...v},b)=>{const C=i(v);/* @__PURE__ */
|
|
2
|
+
return o("div",{ref:b,className:a?.input,...C,children:[!(!p||!p?.variant&&!a?.left_decoration)&&/* @__PURE__ */e(t,{disabled:s,error:n,...p,additionalClasses:p?.variant?void 0:a?.left_decoration,variant:p?.variant}),
|
|
3
|
+
/* @__PURE__ */e("div",{...C,className:a?.inputandlabelcontainer,children:!!a?.input&&/* @__PURE__ */e(r,{disabled:s,error:n,filled:d,focused:l,required:f,...v,additionalClasses:a?.input_base})}),!(!m||!m?.variant&&!a?.right_decoration)&&/* @__PURE__ */e(t,{disabled:s,error:n,filled:d,focused:l,...m,additionalClasses:m?.variant?void 0:a?.right_decoration,variant:m?.variant})]})});export{s as InputStandAlone};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const E={DISABLED_EMPTY:"DISABLED_EMPTY",DISABLED_FILLED:"DISABLED_FILLED",EMPTY:"EMPTY",ERROR_EMPTY:"ERROR_EMPTY",ERROR_FILLED:"ERROR_FILLED",FILLED:"FILLED",FOCUS:"FOCUS"};export{E as InputState};
|
|
1
|
+
const E={DISABLED_EMPTY:"DISABLED_EMPTY",DISABLED_FILLED:"DISABLED_FILLED",EMPTY:"EMPTY",ERROR_EMPTY:"ERROR_EMPTY",ERROR_FILLED:"ERROR_FILLED",FILLED:"FILLED",FOCUS:"FOCUS"};export{E as InputState};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{InputState as E}from"../types/state.js";const L=({disabled:L,error:e,filled:D,focused:o})=>L&&D?E.DISABLED_FILLED:L?E.DISABLED_EMPTY:e&&D?E.ERROR_FILLED:e?E.ERROR_EMPTY:o?E.FOCUS:D?E.FILLED:E.EMPTY;export{L as getState};
|
|
1
|
+
import{InputState as E}from"../types/state.js";const L=({disabled:L,error:e,filled:D,focused:o})=>L&&D?E.DISABLED_FILLED:L?E.DISABLED_EMPTY:e&&D?E.ERROR_FILLED:e?E.ERROR_EMPTY:o?E.FOCUS:D?E.FILLED:E.EMPTY;export{L as getState};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{useClassName as a}from"../../lib/hooks/useClassName/useClassName.js";import{InputBaseStandAlone as s}from"./inputBaseStandAlone.js";import{getState as t}from"./utils/state.js";import{forwardRef as e,useId as r}from"react";import{jsx as i}from"react/jsx-runtime";const o=e(({additionalClasses:e,error:o,filled:d,focused:l,id:n,variant:m,...u},c)=>{const p=a({additionalClassNames:e,component:"INPUT_BASE",variant:m}),f=`inputbase-${r().replace(/:/g,"")}`,b=n??f,C=t({disabled:u.disabled,error:o,filled:d,focused:l});/* @__PURE__ */
|
|
2
|
+
return i(s,{ref:c,...u,"aria-invalid":o,cssClasses:p,"data-state":C,"data-testid":"input-base","data-truncate":u.truncate,id:b})});export{o as InputBase};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{pickCustomAttributes as t}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{forwardRef as s}from"react";import{jsx as r}from"react/jsx-runtime";const e=s(({cssClasses:s,truncate:e,...i},o)=>{const m=t(i);/* @__PURE__ */
|
|
2
|
+
return r("input",{ref:o,className:s?.input_base,...i,...m})});export{e as InputBaseStandAlone};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const E={DISABLED_EMPTY:"DISABLED_EMPTY",DISABLED_FILLED:"DISABLED_FILLED",EMPTY:"EMPTY",ERROR_EMPTY:"ERROR_EMPTY",ERROR_FILLED:"ERROR_FILLED",FILLED:"FILLED",FOCUS:"FOCUS"};export{E as InputBaseState};
|
|
1
|
+
const E={DISABLED_EMPTY:"DISABLED_EMPTY",DISABLED_FILLED:"DISABLED_FILLED",EMPTY:"EMPTY",ERROR_EMPTY:"ERROR_EMPTY",ERROR_FILLED:"ERROR_FILLED",FILLED:"FILLED",FOCUS:"FOCUS"};export{E as InputBaseState};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{InputBaseState as E}from"../types/state.js";const L=({disabled:L,error:e,filled:D,focused:o})=>L&&D?E.DISABLED_FILLED:L?E.DISABLED_EMPTY:e&&D?E.ERROR_FILLED:e?E.ERROR_EMPTY:o?E.FOCUS:D?E.FILLED:E.EMPTY;export{L as getState};
|
|
1
|
+
import{InputBaseState as E}from"../types/state.js";const L=({disabled:L,error:e,filled:D,focused:o})=>L&&D?E.DISABLED_FILLED:L?E.DISABLED_EMPTY:e&&D?E.ERROR_FILLED:e?E.ERROR_EMPTY:o?E.FOCUS:D?E.FILLED:E.EMPTY;export{L as getState};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{useClassName as s}from"../../lib/hooks/useClassName/useClassName.js";import{InputDecorationStandAlone as t}from"./inputDecorationStandAlone.js";import{getState as a}from"./utils/state.js";import{forwardRef as e}from"react";import{jsx as o}from"react/jsx-runtime";const r=e(({additionalClasses:e,variant:r,...i},d)=>{const l=s({additionalClassNames:e,component:"INPUT_DECORATION",variant:r}),n=a({disabled:i.disabled,error:i.error,filled:i.filled,focused:i.focused});/* @__PURE__ */
|
|
2
|
+
return o(t,{ref:d,cssClasses:l,"data-state":n,"data-testid":"input-decoration",...i})});export{r as InputDecoration};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{pickCustomAttributes as o}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{processIconProp as t}from"../../lib/utils/process/processCommonProp.js";import{ElementOrIcon as r}from"../../lib/components/elementOrIcon/elementOrIcon.js";import{forwardRef as e}from"react";import{jsx as s}from"react/jsx-runtime";const i=e(({cssClasses:e,decoration:i,disabled:n,...c},m)=>{const l=t(i);if(!l?.icon)return null;const p=o(c);/* @__PURE__ */
|
|
2
|
+
return s("div",{ref:m,className:e?.input_decoration,style:{pointerEvents:l.onClick?"auto":"none"},...p,children:/* @__PURE__ */s(r,{className:e?.decoration,...l,onClick:l.onClick})})});export{i as InputDecorationStandAlone};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const E={DISABLED_EMPTY:"DISABLED_EMPTY",DISABLED_FILLED:"DISABLED_FILLED",EMPTY:"EMPTY",ERROR_EMPTY:"ERROR_EMPTY",ERROR_FILLED:"ERROR_FILLED",FILLED:"FILLED",FOCUS:"FOCUS"};export{E as InputDecorationState};
|
|
1
|
+
const E={DISABLED_EMPTY:"DISABLED_EMPTY",DISABLED_FILLED:"DISABLED_FILLED",EMPTY:"EMPTY",ERROR_EMPTY:"ERROR_EMPTY",ERROR_FILLED:"ERROR_FILLED",FILLED:"FILLED",FOCUS:"FOCUS"};export{E as InputDecorationState};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{InputDecorationState as E}from"../types/state.js";const L=({disabled:L,error:e,filled:D,focused:o})=>L&&D?E.DISABLED_FILLED:L?E.DISABLED_EMPTY:e&&D?E.ERROR_FILLED:e?E.ERROR_EMPTY:o?E.FOCUS:D?E.FILLED:E.EMPTY;export{L as getState};
|
|
1
|
+
import{InputDecorationState as E}from"../types/state.js";const L=({disabled:L,error:e,filled:D,focused:o})=>L&&D?E.DISABLED_FILLED:L?E.DISABLED_EMPTY:e&&D?E.ERROR_FILLED:e?E.ERROR_EMPTY:o?E.FOCUS:D?E.FILLED:E.EMPTY;export{L as getState};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useEffect as e,useRef as t}from"react";const r=r=>{const n=t(null),u=t(),c=t(!1),o=t(!1),i=t({color:"black",lineWidth:2}),s=t(null),l=e=>{let t,r;if("touchstart"===e.type&&n.current){const{touches:u}=e,{clientX:c,clientY:o}=u[0],{left:i,top:s}=n.current.getBoundingClientRect();t=c-i,r=o-s}else t=e.offsetX,r=e.offsetY;s.current=u.current.getImageData(0,0,n.current?.width,n.current?.height),u.current.beginPath(),u.current.moveTo(t,r),c.current=!0},a=e=>{if(!c.current)return;let t,r;if(e.preventDefault(),"touchmove"===e.type&&n.current){const{touches:u}=e,{clientX:c,clientY:o}=u[0],{left:i,top:s}=n.current.getBoundingClientRect();t=c-i,r=o-s}else t=e.offsetX,r=e.offsetY;u.current.lineTo(t,r),u.current.stroke()},d=()=>{const e=u.current.getImageData(0,0,n.current?.width,n.current?.height);if(u.current.closePath(),c.current=!1,s.current&&!function(e,t){if(e.width!==t.width||e.height!==t.height)return!1;for(let r=0;r<e.data.length;r++)if(e.data[r]!==t.data[r])return!1;return!0}(e,s.current)){const e=n.current?.toDataURL();r?.(e),o.current=!0}};return e(()=>{if(null===n.current)return;const e=n.current;return u.current=e?.getContext("2d",{willReadFrequently:!0}),u.current?(u.current.strokeStyle=i.current.color,u.current.lineWidth=i.current.lineWidth,u.current.lineCap="round",u.current.lineJoin="round",e?.addEventListener("mousedown",l),e?.addEventListener("mousemove",a),e?.addEventListener("mouseup",d),e?.addEventListener("mouseleave",d),e?.addEventListener("touchstart",l),e?.addEventListener("touchmove",a,{passive:!1}),e?.addEventListener("touchend",d),()=>{e?.removeEventListener("mousedown",l),e?.removeEventListener("mousemove",a),e?.removeEventListener("mouseup",d),e?.removeEventListener("mouseleave",d),e?.removeEventListener("touchstart",l),e?.removeEventListener("touchmove",a),e?.removeEventListener("touchend",d)}):void 0},[]),{canvasRef:n,filled:o.current,resetCanvas:()=>{n.current&&(o.current=!1,u.current.clearRect(0,0,n.current.width,n.current.height))},setSignatureStyles:e=>{e&&(i.current.color=e.color,i.current.lineWidth=e.lineWidth)}}};export{r as useDraw};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useClassName as s}from"../../lib/hooks/useClassName/useClassName.js";import{InputSignatureStandAlone as t}from"./inputSignatureStandAlone.js";import{forwardRef as a}from"react";import{jsx as e}from"react/jsx-runtime";const r=a(({additionalClasses:a,setSignatureStyles:r,signatureStyle:o={color:"#000000",lineWidth:2},variant:i,...n},l)=>{const m=s({additionalClassNames:a,component:"INPUT_SIGNATURE",variant:i});return r?.(o),/* @__PURE__ */e(t,{ref:l,cssClasses:m,...n})});export{r as InputSignatureControlled};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
3
|
-
/* @__PURE__ */s("canvas",{ref:e,className:n?.canvas,"data-testid":`${R}-canvas`,...h}),C&&/* @__PURE__ */s("div",{className:n?.placeholdercontainer,...h,children:/* @__PURE__ */s(r,{additionalClasses:{text:n?.placeholdertext},customAttributes:x,...i(b)})})]})});export{n as InputSignatureStandAlone};
|
|
1
|
+
import{pickCustomAttributes as t}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{Text as s}from"../text/text2.js";import{processTextProp as e}from"../../lib/utils/process/processCommonProp.js";import{STATES as r}from"../../lib/types/states/states.js";import{forwardRef as a}from"react";import{jsx as o,jsxs as i}from"react/jsx-runtime";const n=a(({canvasRef:a,cssClasses:n,errorText:c,onBlurContainer:l,onClickContainer:m,placeholder:p,state:d,...u},f)=>{const C=d===r.DEFAULT||d===r.ERROR||d===r.DISABLED,b=d===r.ERROR&&c?c:p,x={"data-state":d},R=u["data-testid"]||"input-signature",v=t(u),h=t(x);/* @__PURE__ */
|
|
2
|
+
return i("div",{ref:f,className:n?.input_signature,"data-testid":R,role:"button",tabIndex:-1,onBlur:l,onClick:m,onKeyDown:m,...h,...v,children:[/* @__PURE__ */o("canvas",{ref:a,className:n?.canvas,"data-testid":`${R}-canvas`,...h}),C&&/* @__PURE__ */o("div",{className:n?.placeholdercontainer,...h,children:/* @__PURE__ */o(s,{additionalClasses:{text:n?.placeholdertext},customAttributes:x,...e(b)})})]})});export{n as InputSignatureStandAlone};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return t(i,{ref:c,canvasRef:f,setSignatureStyles:d,onBlurContainer:()=>{j(!1)},onClickContainer:t=>{r||(t.stopPropagation(),j(!0),t.currentTarget.focus())},...g,state:v})});export{u as InputSignature,u as InputSignatureUnControlled};
|
|
1
|
+
import{InputSignatureControlled as r}from"./inputSignatureControlled.js";import{useDraw as t}from"./hook/useDraw.js";import{getInputSignatureState as e}from"./utils/getInputSignatureState.js";import{forwardRef as n,useImperativeHandle as o,useRef as a,useState as i}from"react";import{jsx as s}from"react/jsx-runtime";const u=n(({disabled:n,error:u,onChange:l,...c},f)=>{const g=a(null),{canvasRef:m,filled:p,resetCanvas:S,setSignatureStyles:d}=t(l),[C,j]=i(!1),v=e({active:C,disabled:n,error:u,filled:p});return o(f,()=>({get InputSignature(){return g.current},get reset(){return S}})),/* @__PURE__ */s(r,{ref:g,canvasRef:m,setSignatureStyles:d,onBlurContainer:()=>{j(!1)},onClickContainer:r=>{n||(r.stopPropagation(),j(!0),r.currentTarget.focus())},...c,state:v})});export{u as InputSignatureUnControlled};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{STATES as t}from"../../../lib/types/states/states.js";const e=({active:e,disabled:s,error:r,filled:i})=>s?t.DISABLED:r?t.ERROR:e?t.ACTIVE:i?t.FILLED:t.DEFAULT;export{e as getInputSignatureState};
|
|
1
|
+
import{STATES as t}from"../../../lib/types/states/states.js";const e=({active:e,disabled:s,error:r,filled:i})=>s?t.DISABLED:r?t.ERROR:e?t.ACTIVE:i?t.FILLED:t.DEFAULT;export{e as getInputSignatureState};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return t
|
|
1
|
+
import{Text as t}from"../text/text2.js";import{forwardRef as e,useId as r}from"react";import{jsx as s,jsxs as i}from"react/jsx-runtime";const o=e(({asteriskColor:e,asteriskCssClasses:o,asteriskWeight:a,children:l,color:d,cursor:c,customAttributes:n,id:m,inputId:u,required:h,requiredSymbol:p,textCssClasses:x,weight:C,...b},g)=>{const f=`label-${r().replace(/:/g,"")}`,k=m??f,q=b["data-testid"]||"label";/* @__PURE__ */
|
|
2
|
+
return i(t,{ref:g,additionalClasses:{text:x},color:d,component:"label",cursor:c,customAttributes:n,"data-testid":q,htmlFor:u,id:k,weight:C,children:[l,h&&/* @__PURE__ */s(t,{additionalClasses:{text:o},"aria-hidden":!0,color:e,component:"span","data-testid":`${q}Required`,weight:a,children:p})]})});export{o as LabelStandAlone};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o=(o,e)=>({role:o&&!e?"link":e});export{o as disabledLink};
|
|
1
|
+
const o=(o,e)=>({role:o&&!e?"link":e});export{o as disabledLink};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{useClassName as o}from"../../lib/hooks/useClassName/useClassName.js";import{useGenericComponents as e}from"../../lib/provider/genericComponentsProvider/genericComponentsProvider.js";import{disabledLink as i}from"./helpers/disabled.js";import{LinkStandAlone as a}from"./linkStandAlone.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";const s=n(({action:n="navigation",additionalClasses:s,additionalTextClasses:t,alignCenter:l=!1,color:d,decoration:m="auto",disabled:c=!1,icon:p,role:C,textVariant:v,variant:f,weight:g,...b},u)=>{const{LINK:N}=e(),{role:j}=i(c,C),x=c||void 0,h=o({additionalClassNames:s,component:"LINK",variant:`${n}_${f}`}),T=o({additionalClassNames:t,component:"TEXT",variant:v});/* @__PURE__ */
|
|
2
|
+
return r(a,{...b,ref:u,action:n,alignCenter:l,"aria-disabled":x,color:d,component:N,cssClasses:h,cssTextClasses:T,decoration:"inline"===n?"underline":m,disabled:c,icon:p,role:j,weight:g})});export{s as Link};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{useClassName as s}from"../../../lib/hooks/useClassName/useClassName.js";import{useGenericComponents as e}from"../../../lib/provider/genericComponentsProvider/genericComponentsProvider.js";import{STATES as a}from"../../../lib/types/states/states.js";import{useManageState as t}from"../../../lib/hooks/useManageState/useManageState.js";import{LinkAsButtonStandAlone as o}from"./linkAsButtonStandAlone.js";import{forwardRef as i}from"react";import{jsx as n}from"react/jsx-runtime";const r=i(({additionalSizeClasses:i,additionalVariantClasses:r,disabled:m,size:l,variant:d,...p},c)=>{const C=s({component:"LINK_AS_BUTTON"}),f=s({additionalClassNames:r,component:"BUTTON",variant:d}),u=s({additionalClassNames:i,component:"BUTTON",variant:l}),{LINK:N}=e(),{setRef:b}=t({disabled:m,ref:c,states:Object.values(a)});/* @__PURE__ */
|
|
2
|
+
return n(o,{...p,ref:b,component:N,cssLinkAsButtonClasses:C,cssSizeClasses:u,cssVariantClasses:f,disabled:m})});export{r as LinkAsButton};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{CustomComponent as t}from"../../../lib/components/customComponent/customComponent.js";import{pickCustomAttributes as s}from"../../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{classNames as i}from"../../../lib/utils/classNames/classNames.js";import{STATES as e}from"../../../lib/types/states/states.js";import{POSITIONS as o}from"../../../lib/types/positions/positions.js";import{ButtonStandAlone as a}from"../../button/buttonStandAlone.js";import{forwardRef as l}from"react";import{jsx as r}from"react/jsx-runtime";const n=l(({"aria-label":l,"aria-labelledby":n,ariaLabelText:m,children:c,component:b,cssLinkAsButtonClasses:d,cssSizeClasses:u,cssVariantClasses:p,fullWidth:f,iconPosition:h,minWidth:k,onClick:C,rel:j,role:y,state:A,target:w,url:x,...D},L)=>{const N=D["data-testid"]||"link-as-button",S=s(D);/* @__PURE__ */
|
|
2
|
+
return r("div",{className:d?.link_as_button,"data-kbt-full-width":f,"data-testid":N,...S,children:/* @__PURE__ */r(t,{ref:L,"aria-label":l,"aria-labelledby":n,component:b,"data-testid":"link",decoration:"none",isDisabled:A===e.DISABLED,rel:j,role:y,target:w,url:x,onClick:C,children:/* @__PURE__ */r("span",{"aria-label":m,...D,className:i(u?.button,p?.button),style:{flexDirection:h===o.LEFT?"row":"row-reverse",minWidth:k,width:f?"100%":"auto"},children:/* @__PURE__ */r(a,{...D,children:c})})})})});export{n as LinkAsButtonStandAlone};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return t
|
|
3
|
-
/* @__PURE__ */t(s,{className:m?.icon,...b},"icon"),e]}):/* @__PURE__ */t("span",{style:O,children:e})})});export{c as LinkStandAlone};
|
|
1
|
+
import{CustomComponent as t}from"../../lib/components/customComponent/customComponent.js";import{pickCustomAttributes as o}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{classNames as e}from"../../lib/utils/classNames/classNames.js";import{Text as r}from"../text/text2.js";import{ElementOrIcon as s}from"../../lib/components/elementOrIcon/elementOrIcon.js";import{forwardRef as i}from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";const c=i(({children:i,color:c,component:a=r,cssClasses:m,cssTextClasses:d,decoration:p,disabled:f,draggable:u,icon:b,iconPosition:g,id:x,onClick:C,rel:h,role:j,target:k,url:N,weight:v,...w},y)=>{const D=f?void 0:C,A=f?void 0:N,I=e(m?.link,d?.text),O={color:c,flexDirection:"left"===g?"row":"row-reverse",fontWeight:v,textDecoration:p},W={color:c,fontWeight:v,textDecoration:p},P=o(w);/* @__PURE__ */
|
|
2
|
+
return n(t,{ref:y,className:I,component:a,"data-testid":"link",disabled:f,draggable:u,id:x,rel:h,role:j,style:W,target:k,url:A,onClick:D,...P,children:b?/* @__PURE__ */l("span",{className:m?.labelandiconcontainer,style:O,children:[/* @__PURE__ */n(s,{className:m?.icon,...b},"icon"),i]}):/* @__PURE__ */n("span",{style:O,children:i})})});export{c as LinkStandAlone};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{useClassName as s}from"../../lib/hooks/useClassName/useClassName.js";import{ListOptionsStandAlone as a}from"./listOptionsStandAlone.js";import{forwardRef as o}from"react";import{jsx as t}from"react/jsx-runtime";const r=o(({additionalClasses:o,variant:r,...e},i)=>{const m=s({additionalClassNames:o,component:"LIST_OPTIONS",variant:r});/* @__PURE__ */
|
|
2
|
+
return t(a,{...e,ref:i,cssClasses:m})});export{r as ListOptions};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{CustomComponent as t}from"../../lib/components/customComponent/customComponent.js";import{pickCustomAttributes as o}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{Text as e}from"../text/text2.js";import{processTextProp as i}from"../../lib/utils/process/processCommonProp.js";import{useRoveFocus as n}from"../../lib/hooks/useRoveFocus/useRoveFocus.js";import{Option as s}from"../option/option.js";import{getOptionVariant as l,isSelected as r,keyDownMove as c,keyUpMove as a}from"./utils/listOptions.utils.js";import{forwardRef as p,useId as m,useImperativeHandle as d,useMemo as u}from"react";import{jsx as h,jsxs as v}from"react/jsx-runtime";const g=p(({caseSensitive:p,charsHighlighted:g,checkedIcon:b,content:k,cssClasses:C,highlightedOptionVariant:f,id:$,index:j=0,listComponent:x,multiSelect:y,onOptionClick:S,options:F,optionsContainerArias:M,roveFocus:O,selectedValue:A,title:I,type:N="selection",...R},V)=>{const H=R["data-testid"]??"list-options",L=o(R),w=u(()=>({currentFocusSelected:-1,keyDownMove:c(F),keyLeftMove:0,keyRightMove:0,keyTabMove:null,keyUpMove:a,size:F.length}),[F]),[z,D,P]=n(O??w),T=m();d(V,()=>P.current,[P]);const U=$??T,_="selection"===N,q="navigation"===N,B=F&&F.length>0;/* @__PURE__ */
|
|
2
|
+
return v("div",{className:C?.list_options,"data-testid":H,...L,children:[!!I&&F.length>0&&/* @__PURE__ */h("div",{className:C?.titlecontainer,children:/* @__PURE__ */h(e,{additionalClasses:{text:C?.title},...i(I)})}),k,B&&/* @__PURE__ */h(t,{ref:P,"aria-label":M?.["aria-label"],"aria-labelledby":M?.["aria-labelledby"],className:C?.optionscontainer,component:x??"ul",id:U,role:_?"listbox":void 0,children:F.map((t,o)=>{const e=r(t,A,y,p),i=/* @__PURE__ */h(s,{"aria-current":q?e:void 0,"aria-selected":_?e:void 0,checkedIcon:b,component:_||q?"div":"li","data-testid":`${H}-section-${j}-option-${o}`,focus:z===o,labelCharsHighlighted:g,multiSelect:y,role:_?"option":void 0,selected:e,tabIndex:q?0:-1,variant:l(t.highlighted,f,R?.optionVariant),...t,onClick:e=>{D(o),S?.(t.value,e),t.onClick?.(e)},onFocus:e=>{o!==z&&D(o),t.onFocus?.(e)}},`${U}Option-${j.toString()}-${o.toString()}`);return"selection"===N?/* @__PURE__ */h("li",{children:i},`${U}LiOption-${j.toString()}-${o.toString()}`):i})})]})});export{g as ListOptionsStandAlone};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=(e,a,o,l)=>null!=a&&void 0!==e.value&&(o?Boolean(Array.isArray(a)&&a.includes(e.value)):l?Boolean(a===e.value):Boolean(a.toLocaleString().toLocaleLowerCase()===e.value.toLocaleString().toLocaleLowerCase())),a=(e,a,o)=>e&&a?a:o||"",o=e=>{let a=Math.max(e,0);return e>0&&(a-=1),a},l=e=>a=>{let o=Math.max(a,0);return a+1<=e.length-1&&(o+=1),o};export{a as getOptionVariant,e as isSelected,l as keyDownMove,o as keyUpMove};
|
|
1
|
+
const e=(e,a,o,l)=>null!=a&&void 0!==e.value&&(o?Boolean(Array.isArray(a)&&a.includes(e.value)):l?Boolean(a===e.value):Boolean(a.toLocaleString().toLocaleLowerCase()===e.value.toLocaleString().toLocaleLowerCase())),a=(e,a,o)=>e&&a?a:o||"",o=e=>{let a=Math.max(e,0);return e>0&&(a-=1),a},l=e=>a=>{let o=Math.max(a,0);return a+1<=e.length-1&&(o+=1),o};export{a as getOptionVariant,e as isSelected,l as keyDownMove,o as keyUpMove};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
3
|
-
/* @__PURE__ */e("div",{className:m?.headercontentcontainer,children:[!r&&!!d&&/* @__PURE__ */t("div",{className:m?.closebuttoncontainer,children:/* @__PURE__ */t(n,{className:m?.closebuttonicon,...a(d)})}),!r&&!!l?.content&&!!l?.variant&&/* @__PURE__ */t(c,{...l,variant:l?.variant,children:l?.content}),(void 0===h?.visible||h.visible)&&/* @__PURE__ */t("div",{className:m?.titlecontainer,children:/* @__PURE__ */t(i,{additionalClasses:{text:m?.title},component:"h1",id:p,...s(h)})}),!1===h?.visible&&/* @__PURE__ */t("span",{className:m?.titlehiddencontainer,id:p,children:s(h).children}),!r&&!!d&&/* @__PURE__ */t("div",{className:m?.closebuttoncontainer,children:/* @__PURE__ */t("span",{className:m?.closebuttonicon})})]})]})};export{r as ModalHeader};
|
|
1
|
+
import{Text as e}from"../../text/text2.js";import{processIconProp as t,processTextProp as i}from"../../../lib/utils/process/processCommonProp.js";import{ElementOrIcon as n}from"../../../lib/components/elementOrIcon/elementOrIcon.js";import{Button as o}from"../../button/button.js";import{useActiveBreakpoints as a}from"../../../lib/hooks/useMediaDevice/useActiveBreakpoints.js";import{jsx as s,jsxs as c}from"react/jsx-runtime";const r=({blocked:r,closeButton:l,closeIcon:d,cssClasses:m,dragIcon:b,title:h,titleIdFinal:p})=>{const{isMobileOrTablet:v}=a();/* @__PURE__ */
|
|
2
|
+
return c("div",{className:m?.headercontainer,"data-modal-header":!0,children:[v&&!r&&!!b&&/* @__PURE__ */s("div",{className:m?.dragiconcontainer,"data-modal-draggable-icon":!0,children:/* @__PURE__ */s(n,{className:m?.dragicon,...t(b)})}),/* @__PURE__ */c("div",{className:m?.headercontentcontainer,children:[!r&&!!d&&/* @__PURE__ */s("div",{className:m?.closebuttoncontainer,children:/* @__PURE__ */s(n,{className:m?.closebuttonicon,...t(d)})}),!r&&!!l?.content&&!!l?.variant&&/* @__PURE__ */s(o,{...l,variant:l?.variant,children:l?.content}),(void 0===h?.visible||h.visible)&&/* @__PURE__ */s("div",{className:m?.titlecontainer,children:/* @__PURE__ */s(e,{additionalClasses:{text:m?.title},component:"h1",id:p,...i(h)})}),!1===h?.visible&&/* @__PURE__ */s("span",{className:m?.titlehiddencontainer,id:p,children:i(h).children}),!r&&!!d&&/* @__PURE__ */s("div",{className:m?.closebuttoncontainer,children:/* @__PURE__ */s("span",{className:m?.closebuttonicon})})]})]})};export{r as ModalHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useClassName as e}from"../../lib/hooks/useClassName/useClassName.js";import{useContentVisibility as o}from"../../lib/hooks/useContentVisibility/useContentVisibility.js";import{useMediaDevice as r}from"../../lib/hooks/useMediaDevice/useMediaDevice.js";import{useScrollDetection as t}from"../../lib/hooks/useScrollDetection/useScrollDetection.js";import{useScrollEffect as s}from"../../lib/hooks/useScrollEffect/useScrollEffect.js";import{useSwipeDown as l}from"../../lib/hooks/useSwipeDown/useSwipeDown.js";import{syncInnerAndForwardedRef as n}from"../../lib/utils/refs/syncRefs.js";import{Portal as a}from"../portal/portal.js";import{ModalStandAlone as i}from"./modalStandAlone.js";import{forwardRef as c,useCallback as m,useRef as d}from"react";import{jsx as p}from"react/jsx-runtime";const u=c(({additionalClasses:c,disableFocusableContent:u=!1,onClose:f,popover:b,portalId:h,variant:S,...C},j)=>{const v=e({additionalClassNames:c,component:"MODAL",variant:S}),y=r(),D=d(null),{scrollableRef:w,shadowRef:R}=s({shadowStyles:"none"}),{handleContentVisibility:k}=o({}),{setDragIconRef:I,setPopoverRef:g}=l({handleClose:f}),{handleScrollDetection:q,hasScroll:M}=t({autoFocus:!u}),N=m(e=>{D.current=e,n({forwardedRef:j,innerRef:D});const o=D.current?.querySelector("[data-modal-header]"),r=D.current?.querySelector("[data-modal-content]"),t=D.current?.querySelector("[data-modal-draggable-icon]");R(o),k({container:D.current,content:r}),w(r),q(r),t&&I(t)},[]),V=/* @__PURE__ */p(i,{...C,ref:N,contentHasScroll:M,cssClasses:v,device:y,popover:{...b,popoverContainerRef:g},onPopoverCloseInternally:()=>{f?.()}});return h?/* @__PURE__ */p(a,{wrapperId:h,children:V}):V});export{u as ModalControlled};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
3
|
-
/* @__PURE__ */
|
|
4
|
-
/* @__PURE__ */
|
|
1
|
+
import{processTextProp as e}from"../../lib/utils/process/processCommonProp.js";import{Overlay as o}from"../../lib/components/overlay/overlay.js";import{Popover as t}from"../popover/popover.js";import{ModalHeader as l}from"./fragments/modalHeader.js";import{onlyDesktopSize as i}from"./utils/onlyDesktopSize.js";import{forwardRef as a,useId as r}from"react";import{jsx as s,jsxs as n}from"react/jsx-runtime";const d=a(({blocked:a,closeButton:d,closeIcon:c,content:m,contentContainer:p,contentHasScroll:v,contentScrollArias:b,cssClasses:h,customHeightAllDevices:g=!1,customWidthAllDevices:y=!1,device:f,dragIcon:C,footer:u,id:H,maxHeight:x,maxWidth:I,minContentHeight:j,minHeight:W,minWidth:k,onKeyDown:D,onPopoverCloseInternally:A,open:N,popover:S,title:$,...B},F)=>{const P=`modal-${r().replace(/:/g,"")}`,w=H??P,z=`modal-title-${r().replace(/:/g,"")}`,E=e($).id??z,K=B["data-testid"]||"modal";/* @__PURE__ */
|
|
2
|
+
return s(t,{"aria-labelledby":E,"aria-modal":N,component:"div",disableClickOverlayClose:a,disableEscapeClose:a,disableTrapFocus:!1,id:w,open:N,overlay:/* @__PURE__ */s(o,{}),role:"dialog",strategy:"fixed",onClose:A,...S,children:/* @__PURE__ */n("div",{ref:F,className:h?.modal,"data-testid":K,style:{maxHeight:x,maxWidth:I,minHeight:g?W:i(f,W),minWidth:y?k:i(f,k)},children:[
|
|
3
|
+
/* @__PURE__ */s(l,{blocked:a,closeButton:d,closeIcon:c,cssClasses:h,device:f,dragIcon:C,title:$,titleIdFinal:E}),
|
|
4
|
+
/* @__PURE__ */s("div",{"aria-label":v?b?.["aria-label"]:void 0,"aria-labelledby":v?b?.["aria-labelledby"]:void 0,className:h?.content,"data-modal-content":!0,"data-testid":`${K}-content`,role:v?"region":void 0,style:{minHeight:j},...v?{tabIndex:0}:{},...p,children:m}),!!u&&/* @__PURE__ */s("div",{className:h?.footer,children:u})]})})});export{d as ModalStandAlone};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{processIconProp as o}from"../../lib/utils/process/processCommonProp.js";import{ESCAPE as r}from"../../lib/constants/keyboardKeys/keyboardKeys.js";import{isKeyPressed as e}from"../../lib/utils/keyboard/keyboard.js";import{ModalControlled as n}from"./modalControlled.js";import{forwardRef as t,useEffect as s,useState as l}from"react";import{jsx as c}from"react/jsx-runtime";const i=t(({closeButton:t,closeIcon:i,onClose:p,open:m,popover:a,variant:k,...y},b)=>{const[C,d]=l(m);s(()=>{d(m)},[m]);const f=()=>{d(!1),p?.()};/* @__PURE__ */
|
|
2
|
+
return c(n,{...y,ref:b,closeButton:t&&{...t,onClick:o=>{f(),t?.onClick?.(o)}},closeIcon:{...o(i),onClick:r=>{f(),o(i)?.onClick?.(r)}},open:C,popover:{...a},variant:k,onClose:p,onKeyDown:o=>y?.blocked&&e(o.key,...r.key)?o.stopPropagation():null})});export{i as ModalUnControlled};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DeviceBreakpointsTypeUtils as o}from"../../../lib/types/breakpoints/breakpoints.js";const s=(s,t)=>o.isDesktopOrLargeDesktop(s)?t:void 0;export{s as onlyDesktopSize};
|
|
1
|
+
import{DeviceBreakpointsTypeUtils as o}from"../../../lib/types/breakpoints/breakpoints.js";const s=(s,t)=>o.isDesktopOrLargeDesktop(s)?t:void 0;export{s as onlyDesktopSize};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{pickCustomAttributes as t}from"../../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{Text as s}from"../../text/text2.js";import{jsx as r}from"react/jsx-runtime";const e=({children:e,component:o,cssClasses:i,customAttributes:m,...n})=>{if(!e)return null;const u=t(n);/* @__PURE__ */
|
|
2
|
+
return r(s,{additionalClasses:{text:i},component:o,customAttributes:m,...u,children:e})};export{e as OptionLabelSlice};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return o(m,{...f,ref:N,componentLink:C,cssClasses:v,focus:P,hover:j,onBlur:o=>{u?.(o),b(!1)},onFocus:o=>{l?.(o),b(!0)},onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1)})});export{c as Option};
|
|
1
|
+
import{useClassName as o}from"../../lib/hooks/useClassName/useClassName.js";import{useGenericComponents as r}from"../../lib/provider/genericComponentsProvider/genericComponentsProvider.js";import{OptionStandAlone as e}from"./optionStandAlone.js";import{forwardRef as s,useEffect as n,useImperativeHandle as t,useRef as i,useState as a}from"react";import{jsx as m}from"react/jsx-runtime";const c=s(({additionalClasses:s,focus:c,onBlur:u,onFocus:l,variant:p,...f},d)=>{const v=o({additionalClassNames:s,component:"OPTION",variant:p}),{LINK:C}=r(),N=i(),[j,L]=a(!1),[P,b]=a(!1);return t(d,()=>N.current,[]),n(()=>{c&&N.current?.focus()},[c]),/* @__PURE__ */m(e,{...f,ref:N,componentLink:C,cssClasses:v,focus:P,hover:j,onBlur:o=>{u?.(o),b(!1)},onFocus:o=>{l?.(o),b(!0)},onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1)})});export{c as Option};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return t
|
|
3
|
-
/* @__PURE__ */
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */e(p,{component:"span",cssClasses:`${E?.label} ${E?.labelhighlighted}`,customAttributes:F,"data-testid":`${q}-highlighted-label`,children:J}),
|
|
9
|
-
/* @__PURE__ */e(p,{component:"span",cssClasses:`${E?.label} ${E?.labelhighlighted}`,customAttributes:F,"data-testid":`${q}-last-no-hightlighted-label`,children:Q})]}):/* @__PURE__ */e(p,{component:"span",cssClasses:E?.label,customAttributes:F,"data-testid":`${q}-label`,children:x})})]}),z&&/* @__PURE__ */e(n,{className:E?.checkedicon,customAttributes:F,...m(o)})]}),!!y&&y]})});export{f as OptionStandAlone};
|
|
1
|
+
import{CustomComponent as t}from"../../lib/components/customComponent/customComponent.js";import{pickCustomAttributes as e}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{Text as s}from"../text/text2.js";import{processIconProp as o,processTextProp as i}from"../../lib/utils/process/processCommonProp.js";import{ElementOrIcon as n}from"../../lib/components/elementOrIcon/elementOrIcon.js";import{STATES as l}from"../../lib/types/states/states.js";import{ENTER as r,SPACE as a}from"../../lib/constants/keyboardKeys/keyboardKeys.js";import{isKeyPressed as c}from"../../lib/utils/keyboard/keyboard.js";import{OptionLabelSlice as m}from"./components.ts/optionLabelSlice.js";import{getHighlightedIndexes as d,getState as b}from"./utils/option.utils.js";import{forwardRef as u}from"react";import{Fragment as p,jsx as h,jsxs as g}from"react/jsx-runtime";const f=u(({checkedIcon:u,component:f,componentLink:C,cssClasses:E,disabled:k,extraContent:y,focus:L,hover:j,icon:A,label:x,labelCharsHighlighted:I,multiSelect:$,onBlur:v,onClick:D,onFocus:M,onMouseEnter:N,onMouseLeave:S,role:T,selected:H,sublabel:B,tabIndex:F,url:K,...O},P)=>{const _=b(k,L,H,$,j,!!I&&I?.length>0),w={"data-state":_},U=_===l.DISABLED,R=e({...O,customAttributes:w}),V=e(w),q=R["data-testid"]||"option",z=[l.MULTIPLE_SELECTED,l.MULTIPLE_SELECTED_HOVER,l.SELECTED].includes(_);let G,J,Q;if("string"==typeof x){const{firstHighlightedIndex:t,lastHighlightedIndex:e}=d(x,I);G=x.substring(0,t),J=x.substring(t,e),Q=x.substring(e)}/* @__PURE__ */
|
|
2
|
+
return g(t,{ref:P,"aria-disabled":U,className:E?.option,...R,component:K?C:f??"div","data-testid":q,role:T,tabIndex:F,url:K,onBlur:v,onClick:t=>{U||D?.(t)},onFocus:M,onKeyDown:t=>{!U&&c(t.key,r.key,a.key)&&D?.(t)},onMouseEnter:N,onMouseLeave:S,...V,children:[/* @__PURE__ */g("div",{className:E?.firstrowcontainer,children:[/* @__PURE__ */g("div",{className:E?.labeliconcontainer,...V,children:[
|
|
3
|
+
/* @__PURE__ */h(n,{className:E?.icon,customAttributes:w,...o(A)}),!!i(B).children&&/* @__PURE__ */h("div",{className:E?.sublabelcontainer,...V,children:/* @__PURE__ */h(s,{additionalClasses:{text:E?.sublabel},component:"span",customAttributes:w,...i(B)})}),
|
|
4
|
+
/* @__PURE__ */h("p",{children:"string"==typeof x?/* @__PURE__ */g(p,{children:[" ",
|
|
5
|
+
/* @__PURE__ */h(m,{component:"span",cssClasses:E?.label,customAttributes:w,"data-testid":`${q}-first-no-hightlighted-label`,children:G}),
|
|
6
|
+
/* @__PURE__ */h(m,{component:"span",cssClasses:`${E?.label} ${E?.labelhighlighted}`,customAttributes:w,"data-testid":`${q}-highlighted-label`,children:J}),
|
|
7
|
+
/* @__PURE__ */h(m,{component:"span",cssClasses:`${E?.label} ${E?.labelhighlighted}`,customAttributes:w,"data-testid":`${q}-last-no-hightlighted-label`,children:Q})]}):/* @__PURE__ */h(m,{component:"span",cssClasses:E?.label,customAttributes:w,"data-testid":`${q}-label`,children:x})})]}),z&&/* @__PURE__ */h(n,{className:E?.checkedicon,customAttributes:w,...o(u)})]}),!!y&&y]})});export{f as OptionStandAlone};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{STATES as e}from"../../../lib/types/states/states.js";
|
|
1
|
+
import{STATES as e}from"../../../lib/types/states/states.js";var E=(E,t,L,s,o,i)=>E?e.DISABLED:t?e.FOCUS:L?s?o?e.MULTIPLE_SELECTED_HOVER:e.MULTIPLE_SELECTED:o?e.SELECTED_HOVER:e.SELECTED:o?e.HOVER:i?e.FILLING:e.DEFAULT;const t=(e,E)=>{let t=0,L=0;if(E){const s=e.toLocaleLowerCase(),o=E.toLocaleLowerCase();s.includes(o)&&(t=s.indexOf(o),L=t+E.length)}return{firstHighlightedIndex:t,lastHighlightedIndex:L}};export{t as getHighlightedIndexes,E as getState};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return t
|
|
1
|
+
import{ElementOrIcon as t}from"../../../lib/components/elementOrIcon/elementOrIcon.js";import{jsx as e}from"react/jsx-runtime";const s=({cssArrowControlClasses:s,disabled:o=!1,...r})=>{const n=o?"inactive":"active";/* @__PURE__ */
|
|
2
|
+
return e(t,{className:s?.icon,customAttributes:{"data-state":n},disabled:o,...r})};export{s as ArrowControlStandAlone};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{pickCustomAttributes as t}from"../../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{jsx as s}from"react/jsx-runtime";const o=({cssPageControlClasses:o,disabled:i=!1,position:e,...r})=>{const u=t(r);/* @__PURE__ */
|
|
2
|
+
return s("button",{className:o,disabled:i,type:"button",...r,...u})};export{o as ButtonControlStandAlone};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{pickCustomAttributes as o}from"../../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{isElementOrIconProps as t}from"../helper/controlType.js";import{ArrowControlStandAlone as r}from"./arrowControlStandAlone.js";import{ButtonControlStandAlone as s}from"./buttonControlStandAlone.js";import{Fragment as n,jsx as l,jsxs as e}from"react/jsx-runtime";const i=({control:i,cssArrowControlClasses:c,cssPageControlClasses:a,position:m,...p})=>{const C=o(p),u="left"===m?c?.leftbuttoncontrol:c?.rightbuttoncontrol,f="left"===m?c?.leftarrowcontrolcontainer:c?.rightarrowcontrolcontainer;/* @__PURE__ */
|
|
2
|
+
return e(n,{children:[i&&!t(i)&&/* @__PURE__ */l(s,{...i,cssPageControlClasses:u,position:m,...C}),t(i)&&/* @__PURE__ */l("div",{className:f,children:/* @__PURE__ */l(r,{cssArrowControlClasses:c,...i})})]})};export{i as Controls};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o=o=>void 0!==o?.icon;export{o as isElementOrIconProps};
|
|
1
|
+
const o=o=>void 0!==o?.icon;export{o as isElementOrIconProps};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=(t,i)=>Math.max(0,Math.min(t,i-1)),i=({currentPosition:t,direction:i,dots:o,isBullet:s,pages:e})=>{let n=0,r=n+o-1;return s&&"forth"!==i?e-o<=t?(r=e-1,n=r-(o-1)):(n=t,r=n+o-1):t-o<0?(n=0,r=n+o-1):(r=t,n=r-(o-1)),{firstVisiblePosition:n,lastVisiblePosition:r}};export{i as calcFirstLastVisiblePosition,t as getPositionWithIn};
|
|
1
|
+
const t=(t,i)=>Math.max(0,Math.min(t,i-1)),i=({currentPosition:t,direction:i,dots:o,isBullet:s,pages:e})=>{let n=0,r=n+o-1;return s&&"forth"!==i?e-o<=t?(r=e-1,n=r-(o-1)):(n=t,r=n+o-1):t-o<0?(n=0,r=n+o-1):(r=t,n=r-(o-1)),{firstVisiblePosition:n,lastVisiblePosition:r}};export{i as calcFirstLastVisiblePosition,t as getPositionWithIn};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{useClassName as s}from"../../lib/hooks/useClassName/useClassName.js";import{calcFirstLastVisiblePosition as o,getPositionWithIn as t}from"./helper/positions.js";import{PageControlStandAlone as i}from"./pageControlStandAlone.js";import{forwardRef as r,useMemo as a,useRef as e}from"react";import{jsx as n}from"react/jsx-runtime";const l=r(({additionalArrowControlClasses:r,additionalPageControlClasses:l,arrowsControlVariant:m,currentPosition:C,isBullet:c=!1,maxDots:p=5,pages:u,variant:d,...P},f)=>{const b=s({additionalClassNames:r,component:"PAGE_CONTROL",variant:m}),g=s({additionalClassNames:l,component:"PAGE_CONTROL",variant:d}),N=e(0),A=a(()=>{let s="forth";return C<N.current&&(s="back"),N.current=C,s},[C]),V=u>p?p:u,j=t(C,u),{firstVisiblePosition:O,lastVisiblePosition:h}=o({currentPosition:j,direction:A,dots:V,isBullet:c,pages:u});/* @__PURE__ */
|
|
2
|
+
return n(i,{ref:f,cssArrowControlClasses:b,cssPageControlClasses:g,currentPosition:j,dots:V,firstVisiblePosition:O,isBullet:c,lastVisiblePosition:h,pages:0,...P})});export{l as PageControl};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
3
|
-
/* @__PURE__ */
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
return
|
|
6
|
-
/* @__PURE__ */
|
|
1
|
+
import{pickCustomAttributes as t}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{Controls as s}from"./components/controls.js";import{forwardRef as o}from"react";import{Fragment as i,jsx as r,jsxs as e}from"react/jsx-runtime";const a=o(({cssArrowControlClasses:o,cssPageControlClasses:a,currentPosition:l,dots:n,firstVisiblePosition:c,isBullet:d,lastVisiblePosition:m,leftControl:p,pages:C,rightControl:g,...u},f)=>{const P=u["data-testid"]||"page-control";/* @__PURE__ */
|
|
2
|
+
return r("div",{ref:f,className:a?.page_control,"data-testid":P,children:n>0&&/* @__PURE__ */e(i,{children:[
|
|
3
|
+
/* @__PURE__ */r(s,{control:p,cssArrowControlClasses:o,cssPageControlClasses:a,currentPosition:l,"data-testid":`${P}-left-control`,dots:n,firstVisiblePosition:c,lastVisiblePosition:m,pages:C,position:"left"}),
|
|
4
|
+
/* @__PURE__ */e("div",{className:a?.dotscontainer,children:[d&&c>0&&/* @__PURE__ */r("div",{...t({"data-state":"last"}),className:a?.pagedot}),[...Array(n)].map((s,o)=>{const i=o+c;/* @__PURE__ */
|
|
5
|
+
return r("div",{...t({"data-state":i===l?"current":"default"}),className:a?.pagedot},`Dot-middle--${i}`)}),d&&(m??0)<(C??0)-1&&/* @__PURE__ */r("div",{...t({"data-state":"last"}),className:a?.pagedot})]}),
|
|
6
|
+
/* @__PURE__ */r(s,{control:g,cssArrowControlClasses:o,cssPageControlClasses:a,currentPosition:l,"data-testid":`${P}-right-control`,dots:n,firstVisiblePosition:c,lastVisiblePosition:m,pages:C,position:"right"})]})})});export{a as PageControlStandAlone};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{classNames as a}from"../../../lib/utils/classNames/classNames.js";import{ElementOrIcon as t}from"../../../lib/components/elementOrIcon/elementOrIcon.js";import{jsx as o}from"react/jsx-runtime";const i=({cssClasses:i,disabled:s,paginationButtonControl:r,position:e="left"})=>{const n={"data-state":s?"disabled":""};/* @__PURE__ */
|
|
2
|
+
return o(t,{altText:r?.ariaLabel,"aria-controls":r?.ariaControls,"aria-label":r?.ariaLabel,className:a({[`${i?.paginationleftarrowicon}`]:"left"===e},{[`${i?.paginationrightarrowicon}`]:"right"===e}),customAttributes:n,disabled:s,icon:r?.icon,onClick:a=>{s||r?.onClick?.(a)}})};export{i as PaginationButtonControl};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=({maxStepsNumber:e,propMaxCountersNumber:r})=>{let t;return e<=3?(t=e,t):(t=r||5,e>3&&t<=2&&(t=3),t=Math.min(e,t),t)};export{e as adjustMaxCountersNumber};
|
|
1
|
+
const e=({maxStepsNumber:e,propMaxCountersNumber:r})=>{let t;return e<=3?(t=e,t):(t=r||5,e>3&&t<=2&&(t=3),t=Math.min(e,t),t)};export{e as adjustMaxCountersNumber};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a=(a,r)=>[...Array(a)].map((a,t)=>r+1+t);const r=(r,t,e)=>{let o=e,s=[],l=[],c=[],n=[],f=r+1;f>=e&&t!==e&&(s=[1,"..."],o--),(t+1-f>=e||f<e&&t-e>=1)&&t!==e&&(l=["...",t],o--);const h=f<=o,i=Math.abs(t-f)<o;if(h)f=1,n=a(o-1,f);else if(i)f=t-o+1,n=a(o-1,f);else{const r=(o-1)/2,t=Math.floor(r),e=Math.ceil(r);c=((a,r)=>[...Array(a)].map((t,e)=>r-(a-e)))(t,f),n=a(e,f)}return[...s,...c,f,...n,...l]};export{r as buildstepsNumber};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{useClassName as e}from"../../lib/hooks/useClassName/useClassName.js";import{adjustMaxCountersNumber as s}from"./helpers/adjustMaxCountersNumber.js";import{buildstepsNumber as r}from"./helpers/getMaxCountersNumber.js";import{PaginationStandAlone as t}from"./paginationStandAlone.js";import{forwardRef as a}from"react";import{jsx as m}from"react/jsx-runtime";const o=a(({additionalClasses:a,currentStep:o,maxCountersNumber:i,maxStepsNumber:n,variant:p,...u},l)=>{const N=e({additionalClassNames:a,component:"PAGINATION",variant:p}),b=Math.max(0,Math.min(o,n-1)),x=r(b,n,s({maxStepsNumber:n,propMaxCountersNumber:i})),d=x.indexOf(b+1);/* @__PURE__ */
|
|
2
|
+
return m(t,{ref:l,cssClasses:N,leftDisabled:0===b,rightDisabled:b===n-1,stepActive:d,stepsNumber:x,...u})});export{o as Pagination};
|