@kubit-ui-web/react-components 2.0.0-beta.23 → 2.0.0-beta.25
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/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/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/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/selector.js +1 -1
- package/dist/cjs/components/calendar/selector/yearSelector/yearSelector.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/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/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/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/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/image.js +1 -1
- package/dist/cjs/components/image/imageStandAlone.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/inputBase/inputBase.js +1 -1
- package/dist/cjs/components/inputBase/inputBaseStandAlone.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/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/label/labelStandAlone.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/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/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/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/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/pagination.js +1 -1
- package/dist/cjs/components/pagination/paginationStandAlone.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/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/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/selectorBoxFile.js +1 -1
- package/dist/cjs/components/selectorBoxFile/selectorBoxFileStandAlone.js +1 -1
- package/dist/cjs/components/skeleton/skeleton.js +1 -1
- 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/snackbar/snackbar.js +1 -1
- package/dist/cjs/components/snackbar/snackbarStandAlone.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/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/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/tag/tag.js +1 -1
- package/dist/cjs/components/tag/tagStandAlone.js +1 -1
- package/dist/cjs/components/text/text.js +1 -1
- 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/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/tooltip/components/tooltipTrigger.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/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/designSystem/kubit/css/kubit.css +1 -1
- package/dist/cjs/lib/designSystem/kubit/css/kubit.min.css +1 -1
- package/dist/cjs/lib/provider/cssProvider/stats/stats.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/esm/components/accordion/accordionControlled.js +1 -1
- package/dist/esm/components/accordion/accordionStandAlone.js +4 -4
- package/dist/esm/components/accordion/accordionUnControlled.js +2 -2
- package/dist/esm/components/alert/alertControlled.js +2 -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 -1
- 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 +7 -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 +3 -3
- package/dist/esm/components/button/button.js +1 -1
- package/dist/esm/components/button/buttonStandAlone.js +3 -3
- package/dist/esm/components/calendar/calendar.js +1 -1
- package/dist/esm/components/calendar/calendarStandAlone.js +6 -6
- 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/selector.js +7 -7
- package/dist/esm/components/calendar/selector/yearSelector/yearSelector.js +3 -3
- 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 +3 -3
- package/dist/esm/components/checkbox/checkboxControlled.js +2 -2
- package/dist/esm/components/checkbox/checkboxStandAlone.js +5 -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/checkboxBase/checkboxBaseControlled.js +2 -2
- package/dist/esm/components/checkboxBase/checkboxBaseStandAlone.js +4 -4
- package/dist/esm/components/checkboxBase/checkboxBaseUncontrolled.js +2 -2
- package/dist/esm/components/chip/chip.js +2 -2
- package/dist/esm/components/chip/chipStandAlone.js +8 -8
- package/dist/esm/components/dataTable/components/dataTableHead.js +4 -4
- package/dist/esm/components/dataTable/components/dataTableRows.js +5 -5
- 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 +10 -10
- 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 +3 -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/image.js +2 -2
- package/dist/esm/components/image/imageStandAlone.js +8 -8
- package/dist/esm/components/input/input.js +2 -2
- package/dist/esm/components/input/inputStandAlone.js +3 -3
- package/dist/esm/components/inputBase/inputBase.js +2 -2
- package/dist/esm/components/inputBase/inputBaseStandAlone.js +2 -2
- package/dist/esm/components/inputDecoration/inputDecoration.js +2 -2
- package/dist/esm/components/inputDecoration/inputDecorationStandAlone.js +2 -2
- package/dist/esm/components/inputSignature/inputSignatureControlled.js +1 -1
- package/dist/esm/components/inputSignature/inputSignatureStandAlone.js +3 -3
- package/dist/esm/components/inputSignature/inputSignatureUncontrolled.js +2 -2
- package/dist/esm/components/label/labelStandAlone.js +2 -2
- 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 +3 -3
- package/dist/esm/components/listOptions/listOptions.js +2 -2
- package/dist/esm/components/listOptions/listOptionsStandAlone.js +2 -2
- package/dist/esm/components/modal/fragments/modalHeader.js +3 -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/option/components.ts/optionLabelSlice.js +2 -2
- package/dist/esm/components/option/option.js +2 -2
- package/dist/esm/components/option/optionStandAlone.js +9 -9
- 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/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/pagination.js +2 -2
- package/dist/esm/components/pagination/paginationStandAlone.js +6 -6
- package/dist/esm/components/popover/popover.js +1 -1
- package/dist/esm/components/popover/popoverStandAlone.js +3 -3
- package/dist/esm/components/progressBar/progressBar.js +2 -2
- package/dist/esm/components/progressBar/progressBarStandAlone.js +4 -4
- package/dist/esm/components/radioButton/radioButton.js +2 -2
- package/dist/esm/components/radioButton/radioButtonStandAlone.js +4 -4
- package/dist/esm/components/select/selectControlled.js +1 -1
- package/dist/esm/components/select/selectStandAlone.js +5 -5
- package/dist/esm/components/select/selectUncontrolled.js +2 -2
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileAnimation.js +3 -3
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileContainerBox.js +8 -8
- package/dist/esm/components/selectorBoxFile/selectorBoxFile.js +2 -2
- package/dist/esm/components/selectorBoxFile/selectorBoxFileStandAlone.js +4 -4
- package/dist/esm/components/skeleton/skeleton.js +2 -2
- 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 +2 -2
- package/dist/esm/components/slider/sliderStandAlone.js +17 -17
- package/dist/esm/components/snackbar/snackbar.js +2 -2
- package/dist/esm/components/snackbar/snackbarStandAlone.js +1 -1
- package/dist/esm/components/stepperNumber/stepperNumber.js +2 -2
- package/dist/esm/components/stepperNumber/stepperNumberStandAlone.js +10 -10
- 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 +2 -2
- package/dist/esm/components/tableBody/tableBodyStandAlone.js +2 -2
- package/dist/esm/components/tableCaption/tableCaption.js +2 -2
- package/dist/esm/components/tableCaption/tableCaptionStandAlone.js +2 -2
- package/dist/esm/components/tableCell/tableCell.js +2 -2
- package/dist/esm/components/tableCell/tableCellStandAlone.js +2 -2
- package/dist/esm/components/tableDivider/tableDivider.js +2 -2
- package/dist/esm/components/tableDivider/tableDividerStandAlone.js +2 -2
- package/dist/esm/components/tableFoot/tableFoot.js +2 -2
- package/dist/esm/components/tableFoot/tableFootStandAlone.js +2 -2
- package/dist/esm/components/tableHead/tableHead.js +2 -2
- package/dist/esm/components/tableHead/tableHeadStandAlone.js +2 -2
- package/dist/esm/components/tableRow/tableRow.js +2 -2
- package/dist/esm/components/tableRow/tableRowStandAlone.js +2 -2
- package/dist/esm/components/tabs/tabsControlled.js +2 -2
- package/dist/esm/components/tabs/tabsStandAlone.js +5 -5
- package/dist/esm/components/tabs/tabsUnControlled.js +2 -2
- package/dist/esm/components/tag/tag.js +2 -2
- package/dist/esm/components/tag/tagStandAlone.js +4 -4
- package/dist/esm/components/text/text.js +1 -1
- package/dist/esm/components/text/textStandAlone.js +2 -2
- package/dist/esm/components/textArea/components/errorStandAlone.js +3 -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 +11 -11
- package/dist/esm/components/toggle/toggleControlled.js +2 -2
- package/dist/esm/components/toggle/toggleStandAlone.js +4 -4
- package/dist/esm/components/toggle/toggleUnControlled.js +2 -2
- package/dist/esm/components/tooltip/components/tooltipTrigger.js +1 -1
- package/dist/esm/components/tooltip/tooltipControlled.js +1 -1
- package/dist/esm/components/tooltip/tooltipStandAlone.js +6 -6
- package/dist/esm/components/tooltip/tooltipUnControlled.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 +4 -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 +2 -2
- package/dist/esm/lib/components/errorMessage/errorMessageStandAlone.js +4 -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/designSystem/kubit/css/kubit.css +1 -1
- package/dist/esm/lib/designSystem/kubit/css/kubit.min.css +1 -1
- package/dist/esm/lib/provider/cssProvider/stats/stats.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 +2 -2
- package/dist/esm/lib/provider/utilsProvider/utilsProvider.js +2 -2
- package/dist/styles/kubit/css/kubit.css +0 -15
- package/dist/styles/kubit/css/kubit.min.css +1 -1
- package/dist/types/index.d.ts +4 -117
- package/package.json +4 -2
- 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/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/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/container/container.js +0 -2
- package/dist/esm/components/container/containerStandAlone.js +0 -4
- package/dist/esm/components/container/index.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return t
|
|
3
|
-
/* @__PURE__ */
|
|
1
|
+
import{jsxs as t,jsx as s}from"react/jsx-runtime";import{forwardRef as e}from"react";import{Text as r}from"../text/text.js";import{STATES as a}from"../../lib/types/states/states.js";import{pickCustomAttributes as o}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{processTextProp as i}from"../../lib/utils/process/processCommonProp.js";const n=e(({canvasRef:e,cssClasses:n,errorText:c,onBlurContainer:l,onClickContainer:m,placeholder:p,state:d,...u},f)=>{const C=d===a.DEFAULT||d===a.ERROR||d===a.DISABLED,b=d===a.ERROR&&c?c:p,x={"data-state":d},R=u["data-testid"]||"input-signature",v=o(u),h=o(x);/* @__PURE__ */
|
|
2
|
+
return t("div",{ref:f,className:n?.input_signature,"data-testid":R,role:"button",tabIndex:-1,onBlur:l,onClick:m,onKeyDown:m,...h,...v,children:[
|
|
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,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return t
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as r,useRef as e,useState as n,useImperativeHandle as o}from"react";import{useDraw as a}from"./hook/useDraw.js";import{InputSignatureControlled as i}from"./inputSignatureControlled.js";import{getInputSignatureState as s}from"./utils/getInputSignatureState.js";const u=r(({disabled:r,error:u,onChange:l,...g},p)=>{const c=e(null),{canvasRef:f,filled:m,resetCanvas:S,setSignatureStyles:d}=a(l),[C,j]=n(!1),v=s({active:C,disabled:r,error:u,filled:m});o(p,()=>({get InputSignature(){return c.current},get reset(){return S}}));/* @__PURE__ */
|
|
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,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return t
|
|
1
|
+
import{jsxs as t,jsx as e}from"react/jsx-runtime";import{forwardRef as r,useId as s}from"react";import{Text as i}from"../text/text.js";const o=r(({asteriskColor:r,asteriskCssClasses:o,asteriskWeight:a,children:l,color:d,cursor:c,customAttributes:n,id:m,inputId:u,required:h,requiredSymbol:p,textCssClasses:b,weight:x,...C},g)=>{const f=`label-${s().replace(/:/g,"")}`,k=m??f,q=C["data-testid"]||"label";/* @__PURE__ */
|
|
2
|
+
return t(i,{ref:g,additionalClasses:{text:b},color:d,component:"label",cursor:c,customAttributes:n,"data-testid":q,htmlFor:u,id:k,weight:x,children:[l,h&&/* @__PURE__ */e(i,{additionalClasses:{text:o},"aria-hidden":!0,color:r,component:"span","data-testid":`${q}Required`,weight:a,children:p})]})});export{o as Label,o as LabelStandAlone};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return o
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{forwardRef as e}from"react";import{useClassName as i}from"../../lib/hooks/useClassName/useClassName.js";import{useGenericComponents as a}from"../../lib/provider/genericComponentsProvider/genericComponentsProvider.js";import{disabledLink as n}from"./helpers/disabled.js";import{LinkStandAlone as r}from"./linkStandAlone.js";const s=e(({action:e="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}=a(),{role:j}=n(c,C),x=c||void 0,h=i({additionalClassNames:s,component:"LINK",variant:`${e}_${f}`}),T=i({additionalClassNames:t,component:"TEXT",variant:v});/* @__PURE__ */
|
|
2
|
+
return o(r,{...b,ref:u,action:e,alignCenter:l,"aria-disabled":x,color:d,component:N,cssClasses:h,cssTextClasses:T,decoration:"inline"===e?"underline":m,disabled:c,icon:p,role:j,weight:g})});export{s as Link};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return s
|
|
1
|
+
import{jsx as s}from"react/jsx-runtime";import{forwardRef as e}from"react";import{useClassName as a}from"../../../lib/hooks/useClassName/useClassName.js";import{useManageState as t}from"../../../lib/hooks/useManageState/useManageState.js";import{useGenericComponents as o}from"../../../lib/provider/genericComponentsProvider/genericComponentsProvider.js";import{STATES as i}from"../../../lib/types/states/states.js";import{LinkAsButtonStandAlone as n}from"./linkAsButtonStandAlone.js";const r=e(({additionalSizeClasses:e,additionalVariantClasses:r,disabled:m,size:l,variant:d,...p},c)=>{const C=a({component:"LINK_AS_BUTTON"}),f=a({additionalClassNames:r,component:"BUTTON",variant:d}),u=a({additionalClassNames:e,component:"BUTTON",variant:l}),{LINK:N}=o(),{setRef:b}=t({disabled:m,ref:c,states:Object.values(i)});/* @__PURE__ */
|
|
2
|
+
return s(n,{...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 t
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as s}from"react";import{ButtonStandAlone as i}from"../../button/buttonStandAlone.js";import{CustomComponent as e}from"../../../lib/components/customComponent/customComponent.js";import{POSITIONS as o}from"../../../lib/types/positions/positions.js";import{STATES as a}from"../../../lib/types/states/states.js";import{classNames as l}from"../../../lib/utils/classNames/classNames.js";import{pickCustomAttributes as r}from"../../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";const n=s(({"aria-label":s,"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=r(D);/* @__PURE__ */
|
|
2
|
+
return t("div",{className:d?.link_as_button,"data-kbt-full-width":f,"data-testid":N,...S,children:/* @__PURE__ */t(e,{ref:L,"aria-label":s,"aria-labelledby":n,component:b,"data-testid":"link",decoration:"none",isDisabled:A===a.DISABLED,rel:j,role:y,target:w,url:x,onClick:C,children:/* @__PURE__ */t("span",{"aria-label":m,...D,className:l(u?.button,p?.button),style:{flexDirection:h===o.LEFT?"row":"row-reverse",minWidth:k,width:f?"100%":"auto"},children:/* @__PURE__ */t(i,{...D,children:c})})})})});export{n as LinkAsButtonStandAlone};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return t
|
|
3
|
-
/* @__PURE__ */t
|
|
1
|
+
import{jsx as t,jsxs as o}from"react/jsx-runtime";import{forwardRef as e}from"react";import{Text as r}from"../text/text.js";import{ElementOrIcon as s}from"../../lib/components/elementOrIcon/elementOrIcon.js";import{classNames as i}from"../../lib/utils/classNames/classNames.js";import{pickCustomAttributes as n}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{CustomComponent as l}from"../../lib/components/customComponent/customComponent.js";const c=e(({children:e,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=i(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=n(w);/* @__PURE__ */
|
|
2
|
+
return t(l,{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__ */o("span",{className:m?.labelandiconcontainer,style:O,children:[
|
|
3
|
+
/* @__PURE__ */t(s,{className:m?.icon,...b},"icon"),e]}):/* @__PURE__ */t("span",{style:O,children:e})})});export{c as LinkStandAlone};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return s
|
|
1
|
+
import{jsx as s}from"react/jsx-runtime";import{forwardRef as a}from"react";import{useClassName as o}from"../../lib/hooks/useClassName/useClassName.js";import{ListOptionsStandAlone as t}from"./listOptionsStandAlone.js";const r=a(({additionalClasses:a,variant:r,...e},i)=>{const m=o({additionalClassNames:a,component:"LIST_OPTIONS",variant:r});/* @__PURE__ */
|
|
2
|
+
return s(t,{...e,ref:i,cssClasses:m})});export{r as ListOptions};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return t
|
|
1
|
+
import{jsxs as t,jsx as o}from"react/jsx-runtime";import{forwardRef as e,useMemo as i,useId as n,useImperativeHandle as s}from"react";import{Text as l}from"../text/text.js";import{useRoveFocus as r}from"../../lib/hooks/useRoveFocus/useRoveFocus.js";import{pickCustomAttributes as c}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{processTextProp as a}from"../../lib/utils/process/processCommonProp.js";import{CustomComponent as p}from"../../lib/components/customComponent/customComponent.js";import{Option as m}from"../option/option.js";import{keyUpMove as d,keyDownMove as u,isSelected as h,getOptionVariant as v}from"./utils/listOptions.utils.js";const g=e(({caseSensitive:e,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=c(R),w=i(()=>({currentFocusSelected:-1,keyDownMove:u(F),keyLeftMove:0,keyRightMove:0,keyTabMove:null,keyUpMove:d,size:F.length}),[F]),[z,D,P]=r(O??w),T=n();s(V,()=>P.current,[P]);const U=$??T,_="selection"===N,q="navigation"===N,B=F&&F.length>0;/* @__PURE__ */
|
|
2
|
+
return t("div",{className:C?.list_options,"data-testid":H,...L,children:[!!I&&F.length>0&&/* @__PURE__ */o("div",{className:C?.titlecontainer,children:/* @__PURE__ */o(l,{additionalClasses:{text:C?.title},...a(I)})}),k,B&&/* @__PURE__ */o(p,{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,i)=>{const n=h(t,A,y,e),s=/* @__PURE__ */o(m,{"aria-current":q?n:void 0,"aria-selected":_?n:void 0,checkedIcon:b,component:_||q?"div":"li","data-testid":`${H}-section-${j}-option-${i}`,focus:z===i,labelCharsHighlighted:g,multiSelect:y,role:_?"option":void 0,selected:n,tabIndex:q?0:-1,variant:v(t.highlighted,f,R?.optionVariant),...t,onClick:o=>{D(i),S?.(t.value,o),t.onClick?.(o)},onFocus:o=>{i!==z&&D(i),t.onFocus?.(o)}},`${U}Option-${j.toString()}-${i.toString()}`);return"selection"===N?/* @__PURE__ */o("li",{children:s},`${U}LiOption-${j.toString()}-${i.toString()}`):s})})]})});export{g as ListOptionsStandAlone};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return e
|
|
3
|
-
/* @__PURE__ */e
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{Text as i}from"../../text/text.js";import{ElementOrIcon as n}from"../../../lib/components/elementOrIcon/elementOrIcon.js";import{useActiveBreakpoints as o}from"../../../lib/hooks/useMediaDevice/useActiveBreakpoints.js";import{processIconProp as a,processTextProp as s}from"../../../lib/utils/process/processCommonProp.js";import{Button as c}from"../../button/button.js";const r=({blocked:r,closeButton:l,closeIcon:d,cssClasses:m,dragIcon:b,title:h,titleIdFinal:p})=>{const{isMobileOrTablet:v}=o();/* @__PURE__ */
|
|
2
|
+
return e("div",{className:m?.headercontainer,"data-modal-header":!0,children:[v&&!r&&!!b&&/* @__PURE__ */t("div",{className:m?.dragiconcontainer,"data-modal-draggable-icon":!0,children:/* @__PURE__ */t(n,{className:m?.dragicon,...a(b)})}),
|
|
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 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{forwardRef as e,useRef as r,useCallback as t}from"react";import{useClassName as s}from"../../lib/hooks/useClassName/useClassName.js";import{useContentVisibility as l}from"../../lib/hooks/useContentVisibility/useContentVisibility.js";import{useMediaDevice as n}from"../../lib/hooks/useMediaDevice/useMediaDevice.js";import{useScrollDetection as i}from"../../lib/hooks/useScrollDetection/useScrollDetection.js";import{useScrollEffect as a}from"../../lib/hooks/useScrollEffect/useScrollEffect.js";import{useSwipeDown as c}from"../../lib/hooks/useSwipeDown/useSwipeDown.js";import{syncInnerAndForwardedRef as m}from"../../lib/utils/refs/syncRefs.js";import{Portal as d}from"../portal/portal.js";import{ModalStandAlone as u}from"./modalStandAlone.js";const p=e(({additionalClasses:e,disableFocusableContent:p=!1,onClose:f,popover:b,portalId:S,variant:h,...C},j)=>{const y=s({additionalClassNames:e,component:"MODAL",variant:h}),D=n(),v=r(null),{scrollableRef:w,shadowRef:k}=a({shadowStyles:"none"}),{handleContentVisibility:R}=l({}),{setDragIconRef:I}=c({onClose:f}),{handleScrollDetection:g,hasScroll:q}=i({autoFocus:!p}),M=t(o=>{v.current=o,m({forwardedRef:j,innerRef:v});const e=v.current?.querySelector("[data-modal-header]"),r=v.current?.querySelector("[data-modal-content]"),t=v.current?.querySelector("[data-modal-draggable-icon]");k(e),R({container:v.current,content:r}),w(r),g(r),t&&I(t)},[]),N=/* @__PURE__ */o(u,{...C,ref:M,contentHasScroll:q,cssClasses:y,device:D,popover:{...b},onPopoverCloseInternally:()=>{f?.()}});return S?/* @__PURE__ */o(d,{wrapperId:S,children:N}):N});export{p as ModalControlled};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return e
|
|
3
|
-
/* @__PURE__ */e
|
|
4
|
-
/* @__PURE__ */e
|
|
1
|
+
import{jsx as e,jsxs as o}from"react/jsx-runtime";import{forwardRef as t,useId as l}from"react";import{Overlay as i}from"../../lib/components/overlay/overlay.js";import{processTextProp as a}from"../../lib/utils/process/processCommonProp.js";import{Popover as r}from"../popover/popover.js";import{ModalHeader as s}from"./fragments/modalHeader.js";import{onlyDesktopSize as n}from"./utils/onlyDesktopSize.js";const d=t(({blocked:t,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-${l().replace(/:/g,"")}`,w=H??P,z=`modal-title-${l().replace(/:/g,"")}`,E=a($).id??z,K=B["data-testid"]||"modal";/* @__PURE__ */
|
|
2
|
+
return e(r,{"aria-labelledby":E,"aria-modal":N,component:"div",disableClickOverlayClose:t,disableEscapeClose:t,disableTrapFocus:!1,id:w,open:N,overlay:/* @__PURE__ */e(i,{}),role:"dialog",strategy:"fixed",onClose:A,...S,children:/* @__PURE__ */o("div",{ref:F,className:h?.modal,"data-testid":K,style:{maxHeight:x,maxWidth:I,minHeight:g?W:n(f,W),minWidth:y?k:n(f,k)},children:[
|
|
3
|
+
/* @__PURE__ */e(s,{blocked:t,closeButton:d,closeIcon:c,cssClasses:h,device:f,dragIcon:C,title:$,titleIdFinal:E}),
|
|
4
|
+
/* @__PURE__ */e("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__ */e("div",{className:h?.footer,children:u})]})})});export{d as ModalStandAlone};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return o
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{forwardRef as r,useState as e,useEffect as n}from"react";import{processIconProp as t}from"../../lib/utils/process/processCommonProp.js";import{ESCAPE as s}from"../../lib/constants/keyboardKeys/keyboardKeys.js";import{isKeyPressed as l}from"../../lib/utils/keyboard/keyboard.js";import{ModalControlled as c}from"./modalControlled.js";const i=r(({closeButton:r,closeIcon:i,onClose:p,open:a,popover:m,variant:k,...y},b)=>{const[d,C]=e(a);n(()=>{C(a)},[a]);const f=()=>{C(!1),p?.()};/* @__PURE__ */
|
|
2
|
+
return o(c,{...y,ref:b,closeButton:r&&{...r,onClick:o=>{f(),r?.onClick?.(o)}},closeIcon:{...t(i),onClick:o=>{f(),t(i)?.onClick?.(o)}},open:d,popover:{...m},variant:k,onClose:p,onKeyDown:o=>y?.blocked&&l(o.key,...s.key)?o.stopPropagation():null})});export{i as Modal,i as ModalUnControlled};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return t
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{Text as s}from"../../text/text.js";import{pickCustomAttributes as r}from"../../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";const e=({children:e,component:o,cssClasses:i,customAttributes:m,...n})=>{if(!e)return null;const u=r(n);/* @__PURE__ */
|
|
2
|
+
return t(s,{additionalClasses:{text:i},component:o,customAttributes:m,...u,children:e})};export{e as OptionLabelSlice};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return o
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{forwardRef as r,useRef as e,useState as s,useImperativeHandle as n,useEffect as t}from"react";import{useClassName as i}from"../../lib/hooks/useClassName/useClassName.js";import{useGenericComponents as a}from"../../lib/provider/genericComponentsProvider/genericComponentsProvider.js";import{OptionStandAlone as m}from"./optionStandAlone.js";const c=r(({additionalClasses:r,focus:c,onBlur:u,onFocus:l,variant:p,...f},d)=>{const v=i({additionalClassNames:r,component:"OPTION",variant:p}),{LINK:C}=a(),N=e(),[j,L]=s(!1),[P,b]=s(!1);n(d,()=>N.current,[]),t(()=>{c&&N.current?.focus()},[c]);/* @__PURE__ */
|
|
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,9 +1,9 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return t
|
|
3
|
-
/* @__PURE__ */t
|
|
4
|
-
/* @__PURE__ */t
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
1
|
+
import{jsxs as t,jsx as e,Fragment as s}from"react/jsx-runtime";import{forwardRef as o}from"react";import{Text as i}from"../text/text.js";import{ElementOrIcon as n}from"../../lib/components/elementOrIcon/elementOrIcon.js";import{SPACE as l,ENTER as r}from"../../lib/constants/keyboardKeys/keyboardKeys.js";import{STATES as a}from"../../lib/types/states/states.js";import{pickCustomAttributes as c}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{processIconProp as m,processTextProp as d}from"../../lib/utils/process/processCommonProp.js";import{CustomComponent as b}from"../../lib/components/customComponent/customComponent.js";import{isKeyPressed as u}from"../../lib/utils/keyboard/keyboard.js";import{OptionLabelSlice as p}from"./components.ts/optionLabelSlice.js";import{getState as h,getHighlightedIndexes as g}from"./utils/option.utils.js";const f=o(({checkedIcon:o,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:K,url:O,...P},_)=>{const w=h(k,L,H,$,j,!!I&&I?.length>0),F={"data-state":w},U=w===a.DISABLED,R=c({...P,customAttributes:F}),V=c(F),q=R["data-testid"]||"option",z=[a.MULTIPLE_SELECTED,a.MULTIPLE_SELECTED_HOVER,a.SELECTED].includes(w);let G,J,Q;if("string"==typeof x){const{firstHighlightedIndex:t,lastHighlightedIndex:e}=g(x,I);G=x.substring(0,t),J=x.substring(t,e),Q=x.substring(e)}/* @__PURE__ */
|
|
2
|
+
return t(b,{ref:_,"aria-disabled":U,className:E?.option,...R,component:O?C:f??"div","data-testid":q,role:T,tabIndex:K,url:O,onBlur:v,onClick:t=>{U||D?.(t)},onFocus:M,onKeyDown:t=>{!U&&u(t.key,r.key,l.key)&&D?.(t)},onMouseEnter:N,onMouseLeave:S,...V,children:[
|
|
3
|
+
/* @__PURE__ */t("div",{className:E?.firstrowcontainer,children:[
|
|
4
|
+
/* @__PURE__ */t("div",{className:E?.labeliconcontainer,...V,children:[
|
|
5
|
+
/* @__PURE__ */e(n,{className:E?.icon,customAttributes:F,...m(A)}),!!d(B).children&&/* @__PURE__ */e("div",{className:E?.sublabelcontainer,...V,children:/* @__PURE__ */e(i,{additionalClasses:{text:E?.sublabel},component:"span",customAttributes:F,...d(B)})}),
|
|
6
|
+
/* @__PURE__ */e("p",{children:"string"==typeof x?/* @__PURE__ */t(s,{children:[" ",
|
|
7
|
+
/* @__PURE__ */e(p,{component:"span",cssClasses:E?.label,customAttributes:F,"data-testid":`${q}-first-no-hightlighted-label`,children:G}),
|
|
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,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return t
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{ElementOrIcon as e}from"../../../lib/components/elementOrIcon/elementOrIcon.js";const s=({cssArrowControlClasses:s,disabled:o=!1,...r})=>{const n={"data-state":o?"inactive":"active"};/* @__PURE__ */
|
|
2
|
+
return t(e,{className:s?.icon,customAttributes:n,disabled:o,...r})};export{s as ArrowControlStandAlone};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return t
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{pickCustomAttributes as s}from"../../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";const o=({cssPageControlClasses:o,disabled:i=!1,position:e,...r})=>{const u=s(r);/* @__PURE__ */
|
|
2
|
+
return t("button",{className:o,disabled:i,type:"button",...r,...u})};export{o as ButtonControlStandAlone};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return o
|
|
1
|
+
import{jsxs as o,Fragment as t,jsx as r}from"react/jsx-runtime";import{pickCustomAttributes as s}from"../../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{isElementOrIconProps as n}from"../helper/controlType.js";import{ArrowControlStandAlone as l}from"./arrowControlStandAlone.js";import{ButtonControlStandAlone as e}from"./buttonControlStandAlone.js";const i=({control:i,cssArrowControlClasses:c,cssPageControlClasses:a,position:m,...p})=>{const C=s(p),u="left"===m?c?.leftbuttoncontrol:c?.rightbuttoncontrol,f="left"===m?c?.leftarrowcontrolcontainer:c?.rightarrowcontrolcontainer;/* @__PURE__ */
|
|
2
|
+
return o(t,{children:[i&&!n(i)&&/* @__PURE__ */r(e,{...i,cssPageControlClasses:u,position:m,...C}),n(i)&&/* @__PURE__ */r("div",{className:f,children:/* @__PURE__ */r(l,{cssArrowControlClasses:c,...i})})]})};export{i as Controls};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return s
|
|
1
|
+
import{jsx as s}from"react/jsx-runtime";import{forwardRef as o,useRef as t,useMemo as i}from"react";import{useClassName as r}from"../../lib/hooks/useClassName/useClassName.js";import{calcFirstLastVisiblePosition as a,getPositionWithIn as e}from"./helper/positions.js";import{PageControlStandAlone as n}from"./pageControlStandAlone.js";const l=o(({additionalArrowControlClasses:o,additionalPageControlClasses:l,arrowsControlVariant:m,currentPosition:C,isBullet:c=!1,maxDots:p=5,pages:u,variant:d,...P},f)=>{const b=r({additionalClassNames:o,component:"PAGE_CONTROL",variant:m}),g=r({additionalClassNames:l,component:"PAGE_CONTROL",variant:d}),N=t(0),A=i(()=>{let s="forth";return C<N.current&&(s="back"),N.current=C,s},[C]),V=u>p?p:u,j=e(C,u),{firstVisiblePosition:O,lastVisiblePosition:h}=a({currentPosition:j,direction:A,dots:V,isBullet:c,pages:u});/* @__PURE__ */
|
|
2
|
+
return s(n,{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__ */s
|
|
5
|
-
return
|
|
6
|
-
/* @__PURE__ */
|
|
1
|
+
import{jsx as t,jsxs as s,Fragment as o}from"react/jsx-runtime";import{forwardRef as i}from"react";import{pickCustomAttributes as r}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{Controls as e}from"./components/controls.js";const a=i(({cssArrowControlClasses:i,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 t("div",{ref:f,className:a?.page_control,"data-testid":P,children:n>0&&/* @__PURE__ */s(o,{children:[
|
|
3
|
+
/* @__PURE__ */t(e,{control:p,cssArrowControlClasses:i,cssPageControlClasses:a,currentPosition:l,"data-testid":`${P}-left-control`,dots:n,firstVisiblePosition:c,lastVisiblePosition:m,pages:C,position:"left"}),
|
|
4
|
+
/* @__PURE__ */s("div",{className:a?.dotscontainer,children:[d&&c>0&&/* @__PURE__ */t("div",{...r({"data-state":"last"}),className:a?.pagedot}),[...Array(n)].map((s,o)=>{const i=o+c;/* @__PURE__ */
|
|
5
|
+
return t("div",{...r({"data-state":i===l?"current":"default"}),className:a?.pagedot},`Dot-middle--${i}`)}),d&&(m??0)<(C??0)-1&&/* @__PURE__ */t("div",{...r({"data-state":"last"}),className:a?.pagedot})]}),
|
|
6
|
+
/* @__PURE__ */t(e,{control:g,cssArrowControlClasses:i,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 a
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import{ElementOrIcon as t}from"../../../lib/components/elementOrIcon/elementOrIcon.js";import{classNames as o}from"../../../lib/utils/classNames/classNames.js";const i=({cssClasses:i,disabled:s,paginationButtonControl:r,position:e="left"})=>{const n={"data-state":s?"disabled":""};/* @__PURE__ */
|
|
2
|
+
return a(t,{altText:r?.ariaLabel,"aria-controls":r?.ariaControls,"aria-label":r?.ariaLabel,className:o({[`${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,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{forwardRef as s}from"react";import{useClassName as r}from"../../lib/hooks/useClassName/useClassName.js";import{adjustMaxCountersNumber as t}from"./helpers/adjustMaxCountersNumber.js";import{buildstepsNumber as a}from"./helpers/getMaxCountersNumber.js";import{PaginationStandAlone as m}from"./paginationStandAlone.js";const o=s(({additionalClasses:s,currentStep:o,maxCountersNumber:i,maxStepsNumber:n,variant:p,...u},l)=>{const N=r({additionalClassNames:s,component:"PAGINATION",variant:p}),b=Math.max(0,Math.min(o,n-1)),x=t({maxStepsNumber:n,propMaxCountersNumber:i}),d=a(b,n,x),f=d.indexOf(b+1);/* @__PURE__ */
|
|
2
|
+
return e(m,{ref:l,cssClasses:N,leftDisabled:0===b,rightDisabled:b===n-1,stepActive:f,stepsNumber:d,...u})});export{o as Pagination};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return t
|
|
3
|
-
/* @__PURE__ */
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
return
|
|
6
|
-
/* @__PURE__ */
|
|
1
|
+
import{jsxs as t,jsx as o}from"react/jsx-runtime";import{forwardRef as s}from"react";import{Text as n}from"../text/text.js";import{STATES as i}from"../../lib/types/states/states.js";import{pickCustomAttributes as e}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{CustomComponent as a}from"../../lib/components/customComponent/customComponent.js";import{PaginationButtonControl as r}from"./fragments/paginationButtonControl.js";const p=s(({cssClasses:s,leftDisabled:p,onStepClick:m,paginationLeftButtonControl:c,paginationRightButtonControl:l,rightDisabled:d,stepActive:u,stepsNumber:C,...g},b)=>{const f=g["data-testid"]||"pagination";/* @__PURE__ */
|
|
2
|
+
return t("div",{ref:b,className:s?.pagination,"data-testid":f,children:[
|
|
3
|
+
/* @__PURE__ */o(r,{cssClasses:s,disabled:p,paginationButtonControl:c}),
|
|
4
|
+
/* @__PURE__ */o("div",{className:s?.pagescontainer,"data-testid":`${f}-steps-content`,children:C.map((t,r)=>{const p="number"==typeof t,c={"data-clickable":p,"data-state":u===r?i.SELECTED:i.DEFAULT},l=e(g);/* @__PURE__ */
|
|
5
|
+
return o(a,{className:s?.pagecontainer,component:p?"button":void 0,type:p?"button":void 0,onClick:p?m?.(t-1):void 0,...l,children:/* @__PURE__ */o(n,{additionalClasses:{text:s?.page},component:"span",customAttributes:c,children:t})},`PaginationContent-${t}-${r.toString()}`)})}),
|
|
6
|
+
/* @__PURE__ */o(r,{cssClasses:s,disabled:d,paginationButtonControl:l,position:"right"})]})});export{p as PaginationStandAlone};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{forwardRef as s}from"react";import{useClassName as o}from"../../lib/hooks/useClassName/useClassName.js";import{useTrapFocus as i}from"../../lib/hooks/useTrapFocus/useTrapFocus.js";import{usePopoverInteractions as r}from"./hooks/usePopoverInteractions.js";import{usePopoverLifecycle as l}from"./hooks/usePopoverLifecycle.js";import{usePopoverPositioning as t}from"./hooks/usePopoverPositioning.js";import{PopoverStandAlone as a}from"./popoverStandAlone.js";const n=s(({additionalClasses:s,anchorElement:n,animationExitDuration:c=200,disableAnimations:p=!1,disableAutoFocusFirstDescendant:d=!1,disableAutoFocusFirstDescendantAfterClose:m=!0,disableClickOverlayClose:u=!1,disableEscapeClose:C=!1,disableRestoreFocusAfterClose:b=!1,disableScrollBackground:f=!1,disableTrapFocus:F=!1,middlewareOptions:v,middlewares:A,onClose:k,open:O=!1,popoverContainerRef:E,preventCloseOnClickElements:h=[],preventScrollOnCloseFocus:R=!1,strategy:g="absolute",...y},j)=>{const w=p||!!n,S=o({additionalClassNames:s,component:"POPOVER"}),{handleInnerRef:D,isClosing:P,isVisible:V,popoverRef:x}=l({animationExitDuration:c,disableAnimations:w,disableAutoFocusFirstDescendant:d,disableAutoFocusFirstDescendantAfterClose:m,disableRestoreFocusAfterClose:b,disableScrollBackground:f,open:O,popoverContainerRef:E,preventScrollOnCloseFocus:R});return i({ref:x,trapFocus:!F&&V}),r({disableClickOverlayClose:u,disableEscapeClose:C,isVisible:V,onClose:k,popoverRef:x,preventCloseOnClickElements:h}),t({anchorElement:n,arrowStyles:y.arrowStyles,isVisible:V,middlewareOptions:v,middlewares:A,placement:y.placement,ref:x,strategy:g}),/* @__PURE__ */e(a,{ref:j,...y,anchorElement:!!n,cssClasses:S,disableAnimations:w,isClosing:P,isVisible:V,middlewareOptions:v,popoverContainerRef:D,strategy:g})});export{n as Popover};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return t
|
|
3
|
-
/* @__PURE__ */
|
|
1
|
+
import{jsx as t,jsxs as e,Fragment as o}from"react/jsx-runtime";/* empty css */import{forwardRef as s}from"react";import{CustomComponent as a}from"../../lib/components/customComponent/customComponent.js";import{classNames as r}from"../../lib/utils/classNames/classNames.js";import{pickCustomAttributes as i}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{getArrowBorderStyles as n}from"./utils/styling.utils.js";const m=s(({anchorElement:s,arrowStyles:m,children:l,component:d="div",cssClasses:p,disableAnimations:c,id:b,isClosing:u,isVisible:k,overlay:f,placement:v,popoverContainerRef:h,zIndex:y="auto",...C},j)=>{const x=i(C,!0),{"data-testid":w="popover",...N}=x;/* @__PURE__ */
|
|
2
|
+
return t("div",{ref:j,"data-testid":w,id:b,children:k&&/* @__PURE__ */e(o,{children:[f,
|
|
3
|
+
/* @__PURE__ */e(a,{ref:h,...N,...C,className:r(p?.popover),component:d,"data-kbt-anchor-element":s,"data-kbt-closing":u,"data-kbt-disable-animations":c,"data-kbt-has-arrow":!!m,"data-kbt-id":"popover","data-kbt-placement":v,style:{zIndex:y||"auto"},children:[!!m&&/* @__PURE__ */t("div",{className:r(p?.arrow),"data-kbt-arrow-border":!!m,"data-kbt-id":"popover-arrow","data-kbt-placement":v,style:{...v?n(v,m):{},zIndex:"number"==typeof y?y+1:y}}),l]})]})})});export{m as PopoverStandAlone};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return s
|
|
1
|
+
import{jsx as s}from"react/jsx-runtime";import{forwardRef as a}from"react";import{useClassName as e}from"../../lib/hooks/useClassName/useClassName.js";import{ProgressBarStandalone as r}from"./progressBarStandAlone.js";const t=a(({additionalSizeClasses:a,additionalVariantClasses:t,percentProgressCompleted:o,size:i,variant:n,...m},l)=>{const p=e({additionalClassNames:t,component:"PROGRESS_BAR",variant:n}),d=e({additionalClassNames:a,component:"PROGRESS_BAR",variant:i}),C=o?Math.min(Math.max(o,0),100):0;/* @__PURE__ */
|
|
2
|
+
return s(r,{...m,ref:l,cssSizeClasses:d,cssVariantClasses:p,progressCompleted:C})});export{t as ProgressBar};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return r
|
|
3
|
-
/* @__PURE__ */r
|
|
4
|
-
/* @__PURE__ */r
|
|
1
|
+
import{jsx as r,jsxs as a}from"react/jsx-runtime";import{forwardRef as s}from"react";import{classNames as e}from"../../lib/utils/classNames/classNames.js";const i=s(({barAriaLabel:s,color:i,cssSizeClasses:o,cssVariantClasses:t,progressAnimation:l,progressCompleted:n,...c},d)=>{const m=c["data-testid"]||"progress-bar",b={backgroundColor:i?.bar},p={backgroundColor:i?.progressBar,transition:`width ${l?.duration} ${l?.timingFunction}`,width:`${n}%`};/* @__PURE__ */
|
|
2
|
+
return r("div",{ref:d,className:t?.progress_bar,"data-testid":`${m}-progressbar`,children:/* @__PURE__ */a("div",{className:t?.barcontainer,children:[
|
|
3
|
+
/* @__PURE__ */r("div",{"aria-label":s,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":n,className:e(o?.bar,t?.bar),"data-testid":m,role:"progressbar",style:b}),
|
|
4
|
+
/* @__PURE__ */r("div",{className:e(o?.progressbar,t?.progressbar),style:p})]})})});export{i as ProgressBarStandalone};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return s
|
|
1
|
+
import{jsx as s}from"react/jsx-runtime";import{useClassName as a}from"../../lib/hooks/useClassName/useClassName.js";import{RadioButtonStandAlone as e}from"./radioButtonStandAlone.js";import{getState as t}from"./utils/state.utils.js";const o=({additionalClasses:o,checked:r=!1,cssClasses:i,disabled:l=!1,error:m=!1,variant:n,...d})=>{const c=a({additionalClassNames:o,component:"RADIO_BUTTON",variant:n}),u=t(r,l,m);/* @__PURE__ */
|
|
2
|
+
return s(e,{cssClasses:i??c,state:u,...d,checked:r,disabled:l,error:m})};export{o as RadioButton};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return e
|
|
3
|
-
/* @__PURE__ */
|
|
4
|
-
/* @__PURE__ */e
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useId as a}from"react";import{LabelStandAlone as t}from"../label/labelStandAlone.js";import{Text as i}from"../text/text.js";import{ElementOrIcon as s}from"../../lib/components/elementOrIcon/elementOrIcon.js";import{classNames as o}from"../../lib/utils/classNames/classNames.js";import{pickCustomAttributes as l}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{processTextProp as n,processIconProp as d}from"../../lib/utils/process/processCommonProp.js";import{buildAriaLabelledBy as c}from"./utils/aria.utils.js";const m=({altVariant:m=!1,checked:b,cssClasses:u,disabled:p,error:h,errorAriaLiveType:g,errorIcon:f,errorMessage:v,id:C,label:I,lastChild:N,name:x,onBlur:j,onChange:y,screenReaderId:A,state:k,subTitle:$,tabIndex:_,value:B,...M})=>{let O=`radiobutton-${a().replace(/:/g,"")}`;O=C??O;const R=n($).id&&`${O}__description`,T=v&&`${O}__error`,w={"data-state":k},L=l(w),P=M["data-testid"]??"radio-button";/* @__PURE__ */
|
|
2
|
+
return e("div",{className:u?.rowcontainer,"data-testid":P,...L,style:{display:I?"grid":"block",marginBottom:N?0:void 0},children:[
|
|
3
|
+
/* @__PURE__ */r("div",{...L,className:u?.radiobuttoncontainer,children:/* @__PURE__ */r("input",{"aria-describedby":c({descriptionId:R,error:h,errorMessage:v,errorMessageId:T,screenReaderId:A}),"aria-hidden":M["aria-hidden"],"aria-label":M["aria-label"],"aria-labelledby":M["aria-labelledby"],checked:b,className:o(u?.radio_button,{"global-focus-visible":!!m}),"data-testid":`${P}-input`,disabled:p,id:O,name:x,tabIndex:_,type:"radio",value:B,onBlur:j,onChange:y,...L})}),
|
|
4
|
+
/* @__PURE__ */e("div",{className:u?.infocontainer,children:[!!I?.content&&/* @__PURE__ */r("div",{className:u?.labelcontainer,children:/* @__PURE__ */r(t,{cursor:p?"default":"pointer",customAttributes:w,inputId:O,textCssClasses:o(u?.label,{[`${u?.speciallabel}`]:!!$}),...I,children:I?.content})}),!!n($).children&&("string"==typeof n($)?/* @__PURE__ */r(i,{additionalClasses:{text:u?.sublabel},...n($),id:R}):/* @__PURE__ */r("div",{id:R,children:n($).children})),!(!h||!v)&&/* @__PURE__ */r("div",{"aria-live":g,className:u?.errormessagecontainer,id:T,...L,children:/* @__PURE__ */e(i,{additionalClasses:{text:u?.errormessage},customAttributes:w,children:[!!f&&/* @__PURE__ */r("span",{...L,className:u?.errormessageiconcontainer,children:/* @__PURE__ */r(s,{className:u?.errormessageicon,customAttributes:w,...d(f)})}),v]})})]})]})};export{m as RadioButtonStandAlone};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{forwardRef as o,useRef as r,useEffect as s}from"react";import{TAB as t}from"../../lib/constants/keyboardKeys/keyboardKeys.js";import{useClassName as n}from"../../lib/hooks/useClassName/useClassName.js";import{useGenericComponents as i}from"../../lib/provider/genericComponentsProvider/genericComponentsProvider.js";import{isKeyPressed as l}from"../../lib/utils/keyboard/keyboard.js";import{focusFirstDescendant as a}from"../../lib/utils/focusHandlers/focusHandlers.js";import{SelectStandAlone as m}from"./selectStandAlone.js";const p=o(({additionalClasses:o,closePopoverOnScroll:p,listOptions:c,onClosePopover:d,open:u,url:f,variant:v,...y},C)=>{const{LINK:b}=i(),j=n({additionalClassNames:o,component:"SELECT",variant:v}),k=r(null);return s(()=>{if(p)return window.addEventListener("scroll",d),()=>{window.removeEventListener("scroll",d)}},[p,d]),/* @__PURE__ */e(m,{ref:C,component:f?b:"button",cssClasses:j,listOptions:c,listOptionsRef:k,open:u,onButtonKeyDown:e=>{u&&l(e.key,t.key)&&!e.shiftKey&&k.current&&("selection"===c.type?k.current.firstElementChild?.focus():a({element:k.current}),e.preventDefault())},onClosePopover:d,...y})});export{p as SelectControlled};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return o
|
|
3
|
-
/* @__PURE__ */o
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
/* @__PURE__ */
|
|
1
|
+
import{jsxs as o,jsx as e}from"react/jsx-runtime";import{forwardRef as t,useId as n,useMemo as s}from"react";import{Text as i}from"../text/text.js";import{ElementOrIcon as r}from"../../lib/components/elementOrIcon/elementOrIcon.js";import{pickCustomAttributes as l}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{processTextProp as a,processIconProp as c}from"../../lib/utils/process/processCommonProp.js";import{CustomComponent as p}from"../../lib/components/customComponent/customComponent.js";import{ListOptions as m}from"../listOptions/listOptions.js";import{keyUpMove as u,keyDownMove as d}from"../listOptions/utils/listOptions.utils.js";import{Popover as b}from"../popover/popover.js";const v=t(({buttonOrLinkRef:t,component:v,cssClasses:f,icon:C,label:h,listOptions:k,listOptionsRef:y,onBlur:x,onButtonClick:O,onButtonKeyDown:g,onClosePopover:D,onFocus:j,onKeyDown:F,onOptionClick:M,open:w,optionSelected:A,popover:K,url:B,urlTarget:N,...E},I)=>{const R=`select-${n().replace(/:/g,"")}`,T=w?`${R}-list`:void 0,$=E["data-testid"]||"select",L=l(E),P=s(()=>{return{currentFocusSelected:-1,keyDownMove:d(k.options),keyLeftMove:0,keyRightMove:0,keyTabMove:(o=k.options,(e,t)=>{if(t?.shiftKey){const o=Math.max(e,0)-1;return o>=0&&t?.preventDefault(),Math.max(o,0)}const n=Math.max(e,0)+1;return n<=o.length-1&&t?.preventDefault(),Math.min(n,o.length-1)}),keyUpMove:u,size:k.options.length};var o},[k.options]);/* @__PURE__ */
|
|
2
|
+
return o("div",{ref:I,className:f?.select,"data-testid":$,role:"combobox",onBlur:x,onFocus:j,onKeyDown:F,...L,"aria-controls":"select-list","aria-expanded":w,tabIndex:0,children:[
|
|
3
|
+
/* @__PURE__ */o(p,{ref:t,"aria-controls":T,"aria-expanded":w,"aria-haspopup":"listbox",className:f?.buttonorlinkcontainer,component:v,target:B?N:void 0,type:B?void 0:"button",url:B,onClick:O,onKeyDown:g,children:[
|
|
4
|
+
/* @__PURE__ */e(i,{additionalClasses:{text:w?f?.labelopened:f?.labelclosed},component:"span",...a(h)}),
|
|
5
|
+
/* @__PURE__ */e(r,{className:w?f?.iconopened:f?.iconclosed,rotate:w?"180deg":"0deg",transitionDuration:"0.2s",...c(C)})]}),!!K&&/* @__PURE__ */e(b,{anchorElement:t?.current,component:"div",disableAutoFocusFirstDescendant:!0,disableAutoFocusFirstDescendantAfterClose:!0,disableClickOverlayClose:!1,disableEscapeClose:!1,disableTrapFocus:!0,id:T,open:w,placement:"bottom",preventCloseOnClickElements:[t?.current],strategy:"absolute",...K,onClose:()=>{D(),K?.onClose?.()},children:/* @__PURE__ */e("div",{className:f?.listoptionscontainer,"data-testid":`${$}-list`,children:!!k.variant&&!!k.optionVariant&&/* @__PURE__ */e(m,{ref:y,roveFocus:"selection"===k.type?P:void 0,selectedValue:A,...k,onOptionClick:o=>{M(o),D()}})})})]})});export{v as SelectStandAlone};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return e
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{forwardRef as o,useState as n,useRef as t,useEffect as r}from"react";import{ESCAPE as i}from"../../lib/constants/keyboardKeys/keyboardKeys.js";import{SelectControlled as c}from"./selectControlled.js";const l=o(({defaultOpen:o=!1,defaultOptionSelected:l,onBlur:s,onButtonClick:u,onClosePopover:d,onFocus:a,onOptionClick:p,openAndCloseOnHover:m=!1,...f},k)=>{const[y,v]=n(o),[C,b]=n(l),O=t(null);r(()=>{const e=()=>{document.hidden&&v(!1)};return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[]);/* @__PURE__ */
|
|
2
|
+
return e(c,{...f,ref:k,buttonOrLinkRef:O,open:y,optionSelected:C,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||(v(!1),s?.(!1)),m&&(v(!1),s?.(!1))},onButtonClick:()=>{u?.(!y),v(!y)},onClosePopover:()=>{v(!1),d?.(!1)},onFocus:()=>{m&&(v(!0),a?.(!0))},onKeyDown:e=>{i.key.includes(e.key)&&y&&(O.current?.focus(),v(!1))},onOptionClick:e=>{b(e),p?.(e)}})});export{l as Select,l as SelectUnControlled};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
2
|
-
/* @__PURE__ */
|
|
3
|
-
/* @__PURE__ */
|
|
1
|
+
import{jsxs as t,jsx as a,Fragment as e}from"react/jsx-runtime";import{Children as i,isValidElement as o,cloneElement as n}from"react";import{pickCustomAttributes as r}from"../../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{useBorderAnimation as s}from"../hooks/useBorderAnimation.js";const m=({children:m,cssClasses:c,focus:d,onAnimationCompleted:f,percentage:l,state:p,...u})=>{const{bottomRef:h,leftRef:b,rightRef:v,topRef:N}=s({onAnimationCompleted:f,percentage:l}),A=r({...{"data-focus":d,"data-state":p}}),C=c?.animationcontainer,g=c?.topanimationcontainer,R=c?.rightanimationcontainer,j=c?.bottomanimationcontainer,k=c?.leftanimationcontainer,x=i.map(m,t=>o(t)?n(t,{focus:d}):t);return C?/* @__PURE__ */t("div",{className:C,"data-focus":d,"data-testid":`${u["data-testid"]}-animations`,...A,children:[!!g&&/* @__PURE__ */a("div",{...A,ref:N,className:g}),!!R&&/* @__PURE__ */a("div",{...A,ref:v,className:R}),!!j&&/* @__PURE__ */a("div",{...A,ref:h,className:j}),!!k&&/* @__PURE__ */a("div",{...A,ref:b,className:k}),
|
|
2
|
+
/* @__PURE__ */a("div",{...A,className:c.borderanimationcontainer,children:m})]}):
|
|
3
|
+
/* @__PURE__ */a(e,{children:x})};export{m as SelectorBoxFileAnimation};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return t
|
|
3
|
-
/* @__PURE__ */t
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */t
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
1
|
+
import{jsxs as t,jsx as o}from"react/jsx-runtime";import{Text as n}from"../../text/text.js";import{ElementOrIcon as e}from"../../../lib/components/elementOrIcon/elementOrIcon.js";import{STATES as s}from"../../../lib/types/states/states.js";import{pickCustomAttributes as i}from"../../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{processIconProp as c,processTextProp as a}from"../../../lib/utils/process/processCommonProp.js";const r=({containerBoxStateContent:r,cssClasses:l,filename:m,focus:p,htmlFor:d,loader:u,state:b})=>{const x={"data-focus":p,"data-state":b};/* @__PURE__ */
|
|
2
|
+
return t("label",{className:l?.containerboxcontainer,"data-focus":p,htmlFor:d,...i(x),children:[
|
|
3
|
+
/* @__PURE__ */t("span",{children:[u,
|
|
4
|
+
/* @__PURE__ */o(e,{className:l?.containerboxicon,customAttributes:x,...c(r[b]?.icon)}),
|
|
5
|
+
/* @__PURE__ */o(e,{className:l?.containerboxicon,customAttributes:x,...c(r[b]?.icon)})]}),
|
|
6
|
+
/* @__PURE__ */t("span",{className:l?.containerboxtextscontainer,...i(x),children:[!!m&&[s.LOADING,s.SUCCESS,s.ERROR].includes(b)&&/* @__PURE__ */o(n,{additionalClasses:{text:l?.containerboxfilename},component:"span",customAttributes:x,children:m}),!!a(r[b]?.actionText).children&&/* @__PURE__ */t("span",{className:l?.actioniconandactiontextcontainer,...i(x),children:[
|
|
7
|
+
/* @__PURE__ */o(e,{className:l?.actionicon,customAttributes:x,...c(r[b]?.actionIcon)}),
|
|
8
|
+
/* @__PURE__ */o(n,{additionalClasses:{text:l?.containerboxactiontext},component:"span",customAttributes:x,...a(r[b]?.actionText),children:a(r[b]?.actionText).children})]}),!!r[b]?.description&&/* @__PURE__ */o(n,{additionalClasses:{text:l?.containerboxdescription},component:"span",customAttributes:x,...a(r[b]?.description),children:a(r[b]?.description).children})]}),!!r[b]?.iconRight&&/* @__PURE__ */o("span",{children:/* @__PURE__ */o(e,{className:l?.containerboxicon,customAttributes:x,...c(r[b]?.iconRight)})})]})};export{r as SelectorBoxFileContainerBox};
|