@kubit-ui-web/react-components 2.0.0-beta.2 → 2.0.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -28
- package/dist/cjs/_virtual/jsx-runtime.js +1 -1
- package/dist/cjs/components/accordion/accordionStandAlone.js +1 -1
- package/dist/cjs/components/alert/alertControlled.js +1 -0
- package/dist/cjs/components/alert/alertStandAlone.js +1 -0
- package/dist/cjs/components/alert/index.js +2 -0
- package/dist/cjs/components/avatar/fragments/drawContent.js +1 -1
- package/dist/cjs/components/badge/badgeStandAlone.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/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/cardImage/cardImageStandAlone.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/dom.utils.js +1 -1
- package/dist/cjs/components/checkbox/checkboxStandAlone.js +1 -1
- package/dist/cjs/components/checkboxBase/checkboxBaseStandAlone.js +1 -1
- package/dist/cjs/components/chip/chipStandAlone.js +1 -1
- package/dist/cjs/components/container/containerStandAlone.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/dropdownSelected/dropdownSelectedControlled.js +1 -1
- package/dist/cjs/components/dropdownSelected/dropdownSelectedStandAlone.js +1 -1
- package/dist/cjs/components/image/image.css +1 -38
- 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/inputDecoration/inputDecorationStandAlone.js +1 -1
- package/dist/cjs/components/inputSignature/inputSignatureStandAlone.js +1 -1
- package/dist/cjs/components/label/labelStandAlone.js +1 -1
- package/dist/cjs/components/link/linkStandAlone.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/optionStandAlone.js +1 -1
- package/dist/cjs/components/pageControl/components/arrowControlStandAlone.js +1 -1
- package/dist/cjs/components/pageControl/components/controls.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/popover/hooks/positioning/middlewareUtils.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/styles/index.css +1 -10
- package/dist/cjs/components/popover/styles/keyframes.css +1 -421
- package/dist/cjs/components/popover/styles/popover-arrow.css +1 -42
- package/dist/cjs/components/popover/styles/popover.css +1 -189
- package/dist/cjs/components/progressBar/progressBarStandAlone.js +1 -1
- package/dist/cjs/components/radioButton/radioButtonStandAlone.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.css +1 -20
- 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/sliderStandAlone.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/tabs/tabsStandAlone.js +1 -1
- package/dist/cjs/components/tag/tagStandAlone.js +1 -1
- package/dist/cjs/components/text/text.css +1 -14
- 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/titleStandAlone.js +1 -1
- package/dist/cjs/components/textArea/textAreaStandAlone.js +1 -1
- package/dist/cjs/components/toggle/toggleStandAlone.js +1 -1
- package/dist/cjs/components/tooltip/hooks/useTooltip.js +1 -1
- package/dist/cjs/components/tooltip/tooltip.css +1 -69
- 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/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 -0
- package/dist/cjs/lib/components/errorMessage/errorMessageStandAlone.js +1 -1
- package/dist/cjs/lib/components/itemRove/itemRove.js +1 -0
- package/dist/cjs/lib/components/overlay/overlay.js +1 -0
- package/dist/cjs/lib/components/overlay/overlayStandAlone.js +1 -0
- package/dist/cjs/lib/designSystem/kubit/css/kubit.css +1 -0
- package/dist/cjs/lib/designSystem/kubit/css/kubit.min.css +1 -0
- 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/useManageState/useManageState.js +1 -1
- package/dist/cjs/lib/hooks/useScrollDetection/useScrollDetection.js +1 -0
- package/dist/cjs/lib/hooks/useScrollEffect/useScrollEffect.js +1 -1
- package/dist/cjs/lib/hooks/useSwipeDown/useSwipeDown.js +1 -1
- package/dist/cjs/lib/provider/cssProvider/provider.js +1 -1
- package/dist/cjs/lib/provider/cssProvider/stats/stats.js +1 -1641
- package/dist/cjs/lib/provider/stylesProvider/stylesProvider.js +1 -1
- package/dist/cjs/lib/storybook/components/divider/divider.css +1 -0
- package/dist/cjs/lib/storybook/components/note/styles.css +1 -0
- package/dist/cjs/lib/utils/keyboard/keyboard.js +1 -1
- package/dist/cjs/lib/utils/process/processCommonProp.js +1 -0
- package/dist/cjs/react-components.css +1 -1
- package/dist/esm/_virtual/jsx-runtime.js +1 -1
- package/dist/esm/components/accordion/accordionStandAlone.js +4 -4
- package/dist/esm/components/alert/alertControlled.js +2 -0
- package/dist/esm/components/alert/alertStandAlone.js +2 -0
- package/dist/esm/components/alert/index.js +1 -0
- package/dist/esm/components/avatar/fragments/drawContent.js +1 -4
- package/dist/esm/components/badge/badgeStandAlone.js +7 -9
- package/dist/esm/components/breadcrumbs/components/crumbStandAlone/crumbStandAlone.js +3 -6
- package/dist/esm/components/button/button.js +1 -1
- package/dist/esm/components/button/buttonStandAlone.js +3 -5
- package/dist/esm/components/calendar/list/list.js +1 -1
- package/dist/esm/components/calendar/selector/monthSelector/monthSelector.js +1 -1
- package/dist/esm/components/calendar/selector/selector.js +7 -9
- package/dist/esm/components/cardImage/cardImageStandAlone.js +7 -7
- 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/dom.utils.js +1 -1
- package/dist/esm/components/checkbox/checkboxStandAlone.js +5 -7
- package/dist/esm/components/checkboxBase/checkboxBaseStandAlone.js +4 -4
- package/dist/esm/components/chip/chipStandAlone.js +8 -9
- package/dist/esm/components/container/containerStandAlone.js +4 -4
- package/dist/esm/components/dataTable/dataTableStandAlone.js +10 -14
- package/dist/esm/components/dataTable/hooks/useDataTableHasScroll.js +1 -1
- package/dist/esm/components/dataTable/hooks/useDataTableShadow.js +1 -1
- package/dist/esm/components/dataTable/hooks/useDataTableStickyDividers.js +1 -1
- package/dist/esm/components/dataTable/hooks/useDataTableStickyLeftColumns.js +1 -1
- package/dist/esm/components/dataTable/hooks/useDataTableStickyRightColumns.js +1 -1
- package/dist/esm/components/dropdownSelected/dropdownSelectedControlled.js +1 -1
- package/dist/esm/components/dropdownSelected/dropdownSelectedStandAlone.js +5 -6
- package/dist/esm/components/image/image.css +1 -38
- package/dist/esm/components/input/input.js +2 -2
- package/dist/esm/components/input/inputStandAlone.js +3 -5
- package/dist/esm/components/inputBase/inputBase.js +2 -2
- package/dist/esm/components/inputDecoration/inputDecorationStandAlone.js +2 -2
- package/dist/esm/components/inputSignature/inputSignatureStandAlone.js +3 -4
- package/dist/esm/components/label/labelStandAlone.js +2 -3
- package/dist/esm/components/link/linkStandAlone.js +3 -3
- package/dist/esm/components/listOptions/listOptionsStandAlone.js +2 -4
- package/dist/esm/components/modal/fragments/modalHeader.js +3 -9
- package/dist/esm/components/modal/modalControlled.js +1 -1
- package/dist/esm/components/modal/modalStandAlone.js +4 -5
- package/dist/esm/components/modal/modalUnControlled.js +2 -2
- package/dist/esm/components/option/optionStandAlone.js +8 -11
- package/dist/esm/components/pageControl/components/arrowControlStandAlone.js +2 -2
- package/dist/esm/components/pageControl/components/controls.js +2 -4
- package/dist/esm/components/pageControl/pageControlStandAlone.js +6 -8
- package/dist/esm/components/pagination/fragments/paginationButtonControl.js +2 -2
- package/dist/esm/components/popover/hooks/positioning/middlewareUtils.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/styles/index.css +1 -10
- package/dist/esm/components/popover/styles/keyframes.css +1 -421
- package/dist/esm/components/popover/styles/popover-arrow.css +1 -42
- package/dist/esm/components/popover/styles/popover.css +1 -189
- package/dist/esm/components/progressBar/progressBarStandAlone.js +4 -4
- package/dist/esm/components/radioButton/radioButtonStandAlone.js +4 -8
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileAnimation.js +3 -7
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileContainerBox.js +8 -13
- package/dist/esm/components/selectorBoxFile/selectorBoxFile.js +2 -2
- package/dist/esm/components/selectorBoxFile/selectorBoxFileStandAlone.js +4 -8
- package/dist/esm/components/skeleton/skeleton.css +1 -20
- package/dist/esm/components/slider/components/sliderHelperTextStandAlone.js +1 -3
- package/dist/esm/components/slider/components/sliderScaleStandAlone.js +2 -2
- package/dist/esm/components/slider/components/sliderThumbStandAlone.js +1 -1
- package/dist/esm/components/slider/sliderStandAlone.js +17 -19
- package/dist/esm/components/stepperNumber/stepperNumberStandAlone.js +8 -8
- 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/tabs/tabsStandAlone.js +5 -6
- package/dist/esm/components/tag/tagStandAlone.js +4 -4
- package/dist/esm/components/text/text.css +1 -14
- package/dist/esm/components/text/textStandAlone.js +1 -1
- 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/titleStandAlone.js +1 -1
- package/dist/esm/components/textArea/textAreaStandAlone.js +10 -11
- package/dist/esm/components/toggle/toggleStandAlone.js +4 -4
- package/dist/esm/components/tooltip/hooks/useTooltip.js +1 -1
- package/dist/esm/components/tooltip/tooltip.css +1 -69
- package/dist/esm/components/tooltip/tooltipControlled.js +1 -1
- package/dist/esm/components/tooltip/tooltipStandAlone.js +6 -10
- package/dist/esm/components/tooltip/tooltipUnControlled.js +1 -1
- package/dist/esm/components/tooltip/utils/tooltip.utils.js +1 -1
- package/dist/esm/components/virtualKeyboard/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 -0
- package/dist/esm/lib/components/errorMessage/errorMessageStandAlone.js +4 -4
- package/dist/esm/lib/components/itemRove/itemRove.js +2 -0
- package/dist/esm/lib/components/overlay/overlay.js +2 -0
- package/dist/esm/lib/components/overlay/overlayStandAlone.js +2 -0
- package/dist/esm/lib/designSystem/kubit/css/kubit.css +1 -0
- package/dist/esm/lib/designSystem/kubit/css/kubit.min.css +1 -0
- 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/useManageState/useManageState.js +1 -1
- package/dist/esm/lib/hooks/useScrollDetection/useScrollDetection.js +1 -0
- package/dist/esm/lib/hooks/useScrollEffect/useScrollEffect.js +1 -1
- package/dist/esm/lib/hooks/useSwipeDown/useSwipeDown.js +1 -1
- package/dist/esm/lib/provider/cssProvider/provider.js +1 -1
- package/dist/esm/lib/provider/cssProvider/stats/stats.js +1 -1641
- package/dist/esm/lib/provider/stylesProvider/stylesProvider.js +2 -2
- package/dist/esm/lib/storybook/components/divider/divider.css +1 -0
- package/dist/esm/lib/storybook/components/note/styles.css +1 -0
- package/dist/esm/lib/utils/keyboard/keyboard.js +1 -1
- package/dist/esm/lib/utils/process/processCommonProp.js +1 -0
- package/dist/esm/react-components.css +1 -1
- package/dist/styles/kubit/css/kubit.css +10 -76
- package/dist/styles/kubit/css/kubit.min.css +1 -1
- package/dist/types/index.d.ts +1058 -465
- package/package.json +69 -46
- package/dist/cjs/components/elementOrIcon/elementOrIcon.js +0 -1
- package/dist/cjs/components/elementOrIcon/index.js +0 -2
- package/dist/cjs/components/itemRove/index.js +0 -2
- package/dist/cjs/components/itemRove/itemRove.js +0 -1
- package/dist/cjs/components/message/index.js +0 -4
- package/dist/cjs/components/message/messageControlled.js +0 -1
- package/dist/cjs/components/message/messageStandAlone.js +0 -1
- package/dist/cjs/components/message/messageUnControlled.js +0 -1
- package/dist/cjs/components/navBar/index.js +0 -2
- package/dist/cjs/components/navBar/navBar.js +0 -1
- package/dist/cjs/components/navBar/navBarStandAlone.js +0 -1
- package/dist/cjs/components/overlay/index.js +0 -1
- package/dist/cjs/components/overlay/overlay.js +0 -1
- package/dist/cjs/components/overlay/overlayStandAlone.js +0 -1
- package/dist/cjs/components/renderIf/renderIf.js +0 -1
- package/dist/cjs/components/selectorBoxFile/components/selectorBoxFileErrorMessage.js +0 -1
- package/dist/cjs/components/selectorBoxFile/components/selectorBoxFileHeader.js +0 -1
- package/dist/cjs/components/selectorBoxFile/components/selectorBoxFileTooltip.js +0 -1
- package/dist/cjs/components/table/__stories__/css/table.css +0 -7
- package/dist/cjs/lib/hooks/useContentVisibilityDetection/useContentVisibilityDetection.js +0 -1
- package/dist/cjs/lib/hooks/useId/useId.js +0 -1
- package/dist/cjs/lib/hooks/useInputFocus/useInputFocus.js +0 -1
- package/dist/cjs/lib/hooks/useScrollDetectionWithAutoFocus/useScrollDetectionWithAutoFocus.js +0 -1
- package/dist/cjs/lib/utils/changeCssProperty/changeCssProperty.js +0 -1
- package/dist/cjs/lib/utils/is/isReactNode.js +0 -1
- package/dist/cjs/lib/utils/is/isString.js +0 -1
- package/dist/cjs/lib/utils/process/processIcon/processIcon.js +0 -1
- package/dist/cjs/lib/utils/process/processText/processText.js +0 -1
- package/dist/cjs/lib/utils/resizeObserver/resizeObserver.js +0 -1
- package/dist/esm/components/elementOrIcon/elementOrIcon.js +0 -1
- package/dist/esm/components/elementOrIcon/index.js +0 -1
- package/dist/esm/components/itemRove/index.js +0 -1
- package/dist/esm/components/itemRove/itemRove.js +0 -2
- package/dist/esm/components/message/index.js +0 -2
- package/dist/esm/components/message/messageControlled.js +0 -2
- package/dist/esm/components/message/messageStandAlone.js +0 -10
- package/dist/esm/components/message/messageUnControlled.js +0 -2
- package/dist/esm/components/navBar/index.js +0 -1
- package/dist/esm/components/navBar/navBar.js +0 -2
- package/dist/esm/components/navBar/navBarStandAlone.js +0 -2
- package/dist/esm/components/overlay/index.js +0 -1
- package/dist/esm/components/overlay/overlay.js +0 -2
- package/dist/esm/components/overlay/overlayStandAlone.js +0 -2
- package/dist/esm/components/renderIf/renderIf.js +0 -1
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileErrorMessage.js +0 -3
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileHeader.js +0 -9
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileTooltip.js +0 -1
- package/dist/esm/components/table/__stories__/css/table.css +0 -7
- package/dist/esm/lib/hooks/useContentVisibilityDetection/useContentVisibilityDetection.js +0 -1
- package/dist/esm/lib/hooks/useId/useId.js +0 -1
- package/dist/esm/lib/hooks/useInputFocus/useInputFocus.js +0 -1
- package/dist/esm/lib/hooks/useScrollDetectionWithAutoFocus/useScrollDetectionWithAutoFocus.js +0 -1
- package/dist/esm/lib/utils/changeCssProperty/changeCssProperty.js +0 -1
- package/dist/esm/lib/utils/is/isReactNode.js +0 -1
- package/dist/esm/lib/utils/is/isString.js +0 -1
- package/dist/esm/lib/utils/process/processIcon/processIcon.js +0 -1
- package/dist/esm/lib/utils/process/processText/processText.js +0 -1
- package/dist/esm/lib/utils/resizeObserver/resizeObserver.js +0 -1
- /package/dist/cjs/lib/hooks/{useContentVisibilityDetection → useContentVisibility}/utils/contentVisibility.js +0 -0
- /package/dist/cjs/lib/{hooks/syncRefs → utils/refs}/syncRefs.js +0 -0
- /package/dist/esm/lib/hooks/{useContentVisibilityDetection → useContentVisibility}/utils/contentVisibility.js +0 -0
- /package/dist/esm/lib/{hooks/syncRefs → utils/refs}/syncRefs.js +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -121,6 +121,58 @@ export declare type AccordionVariantStyles<Variant extends string> = AccordionSt
|
|
|
121
121
|
[key in Variant]: AccordionStyleProps;
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Alert component for displaying notification messages.
|
|
126
|
+
*
|
|
127
|
+
* This component renders styled alerts.
|
|
128
|
+
* Useful for notifications, success/error messages, and informational banners.
|
|
129
|
+
* Always visible - no open/close functionality.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```tsx
|
|
133
|
+
* <Alert
|
|
134
|
+
* variant="success"
|
|
135
|
+
* content={{ content: "Your changes have been saved." }}
|
|
136
|
+
* />
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
export declare const Alert: ForwardRefExoticComponent<AlertProps<string> & RefAttributes<HTMLDivElement>>;
|
|
140
|
+
|
|
141
|
+
declare type AlertCssClasses = ComponentSelected<ComponentsTypesComponents['ALERT']>;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Interface for the Alert component.
|
|
145
|
+
* Extends the AlertStandAloneProps interface and adds a variant and additional CSS classes.
|
|
146
|
+
*
|
|
147
|
+
* @template Variant - The type of the variant for the Alert.
|
|
148
|
+
*/
|
|
149
|
+
export declare interface AlertProps<Variant = undefined extends string ? unknown : string> extends AlertStandAloneProps {
|
|
150
|
+
variant?: Variant;
|
|
151
|
+
additionalClasses?: Partial<AlertCssClasses>;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Interface for the standalone Alert component.
|
|
156
|
+
* A simplified component that displays alert messages. Always visible.
|
|
157
|
+
*/
|
|
158
|
+
export declare interface AlertStandAloneProps extends DataAttributes {
|
|
159
|
+
content: CommonTextProps;
|
|
160
|
+
role?: React.AriaRole;
|
|
161
|
+
id?: string;
|
|
162
|
+
ariaLive?: AriaAttributes['aria-live'];
|
|
163
|
+
cssClasses?: AlertCssClasses;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export declare interface AlertStyleProps extends CssLibPropsType {
|
|
167
|
+
_container?: CssLibPropsType;
|
|
168
|
+
_contentContainer?: CssLibPropsType;
|
|
169
|
+
_description?: CssLibPropsType;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export declare type AlertVariantStyles<Variant extends string> = AlertStyleProps & {
|
|
173
|
+
[key in Variant]: AlertStyleProps;
|
|
174
|
+
};
|
|
175
|
+
|
|
124
176
|
export declare interface ArrowsControlStyleProps extends CssLibPropsType {
|
|
125
177
|
_leftArrowControlContainer?: CssLibPropsType;
|
|
126
178
|
_rightArrowControlContainer?: CssLibPropsType;
|
|
@@ -433,10 +485,18 @@ export declare type BreadcrumbsVariantStyles<Variant extends string> = Breadcrum
|
|
|
433
485
|
[key in Variant]: BreadcrumbsStyleProps;
|
|
434
486
|
};
|
|
435
487
|
|
|
488
|
+
/**
|
|
489
|
+
* Defines responsive breakpoints in pixels for different screen sizes.
|
|
490
|
+
* Used for creating media queries and responsive layouts.
|
|
491
|
+
*/
|
|
436
492
|
declare interface Breakpoints {
|
|
493
|
+
/** Small screen breakpoint (typically mobile landscape) - default: 576px */
|
|
437
494
|
sm: number;
|
|
495
|
+
/** Medium screen breakpoint (typically tablets) - default: 768px */
|
|
438
496
|
md: number;
|
|
497
|
+
/** Large screen breakpoint (typically desktops) - default: 992px */
|
|
439
498
|
lg: number;
|
|
499
|
+
/** Extra large screen breakpoint (typically large desktops) - default: 1200px */
|
|
440
500
|
xl: number;
|
|
441
501
|
}
|
|
442
502
|
|
|
@@ -534,6 +594,28 @@ export declare type ButtonVariantStyles<Variant extends string> = ButtonStylePro
|
|
|
534
594
|
[key in Variant]?: Partial<ButtonStyleProps>;
|
|
535
595
|
};
|
|
536
596
|
|
|
597
|
+
/**
|
|
598
|
+
* Calendar component for date selection.
|
|
599
|
+
*
|
|
600
|
+
* This component provides an interactive calendar interface for selecting single dates
|
|
601
|
+
* or date ranges. It supports month/year navigation, date restrictions, and customizable variants.
|
|
602
|
+
*
|
|
603
|
+
* @example
|
|
604
|
+
* ```tsx
|
|
605
|
+
* <Calendar
|
|
606
|
+
* selectedDate={new Date()}
|
|
607
|
+
* onSelectedDateChange={(date) => console.log(date)}
|
|
608
|
+
* />
|
|
609
|
+
*
|
|
610
|
+
* // Date range selection:
|
|
611
|
+
* <Calendar
|
|
612
|
+
* hasRange
|
|
613
|
+
* selectedDate={startDate}
|
|
614
|
+
* secondSelectedDate={endDate}
|
|
615
|
+
* onSelectedDateChange={(dates) => console.log(dates)}
|
|
616
|
+
* />
|
|
617
|
+
* ```
|
|
618
|
+
*/
|
|
537
619
|
export declare const Calendar: ForwardRefExoticComponent<CalendarProps<string> & RefAttributes<HTMLDivElement>>;
|
|
538
620
|
|
|
539
621
|
/**
|
|
@@ -788,16 +870,63 @@ export declare type ChecboxVariantStyles<Variant extends string> = ChecboxStyleP
|
|
|
788
870
|
[key in Variant]?: ChecboxStyleProps;
|
|
789
871
|
};
|
|
790
872
|
|
|
873
|
+
/**
|
|
874
|
+
* CheckboxUnControlled component with internal state management.
|
|
875
|
+
*
|
|
876
|
+
* This component renders a checkbox that manages its own checked state internally.
|
|
877
|
+
* Useful when you don't need to control the checkbox state from a parent component.
|
|
878
|
+
* It automatically handles toggle behavior on user interaction.
|
|
879
|
+
*
|
|
880
|
+
* @example
|
|
881
|
+
* ```tsx
|
|
882
|
+
* <CheckboxUnControlled
|
|
883
|
+
* checked={false}
|
|
884
|
+
* onChange={(e) => console.log(e.target.checked)}
|
|
885
|
+
* label="Remember me"
|
|
886
|
+
* />
|
|
887
|
+
* ```
|
|
888
|
+
*/
|
|
791
889
|
export declare const Checkbox: ForwardRefExoticComponent<CheckboxUnControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
792
890
|
|
|
793
891
|
declare type CheckboxAriaAttributes = Pick<React.AriaAttributes, 'aria-label' | 'aria-labelledby' | 'aria-hidden' | 'aria-describedby'>;
|
|
794
892
|
|
|
893
|
+
/**
|
|
894
|
+
* CheckboxBaseUnControlled component with internal state management.
|
|
895
|
+
*
|
|
896
|
+
* This is a low-level uncontrolled checkbox that manages its own checked state.
|
|
897
|
+
* It automatically handles toggle behavior and notifies via onChange callback.
|
|
898
|
+
* Useful for checkboxes that don't require external state control.
|
|
899
|
+
*
|
|
900
|
+
* @example
|
|
901
|
+
* ```tsx
|
|
902
|
+
* <CheckboxBaseUnControlled
|
|
903
|
+
* checked={false}
|
|
904
|
+
* onChange={(e) => console.log(e.target.checked)}
|
|
905
|
+
* />
|
|
906
|
+
* ```
|
|
907
|
+
*/
|
|
795
908
|
export declare const CheckboxBase: ForwardRefExoticComponent<CheckboxBaseUnControlledProps<string> & {
|
|
796
909
|
children?: ReactNode | undefined;
|
|
797
910
|
} & RefAttributes<HTMLDivElement>>;
|
|
798
911
|
|
|
799
912
|
declare type CheckboxBaseAriaAttributesProps = Pick<React.AriaAttributes, 'aria-label' | 'aria-labelledby' | 'aria-hidden' | 'aria-describedby'>;
|
|
800
913
|
|
|
914
|
+
/**
|
|
915
|
+
* CheckboxBaseControlled component for managed checkbox state.
|
|
916
|
+
*
|
|
917
|
+
* This is a low-level checkbox component where the checked state is controlled
|
|
918
|
+
* externally. It handles error states, required validation, and applies appropriate
|
|
919
|
+
* styling based on the checkbox state (checked, unchecked, indeterminate, disabled).
|
|
920
|
+
*
|
|
921
|
+
* @example
|
|
922
|
+
* ```tsx
|
|
923
|
+
* <CheckboxBaseControlled
|
|
924
|
+
* checked={isChecked}
|
|
925
|
+
* onChange={(e) => setIsChecked(e.target.checked)}
|
|
926
|
+
* error={hasError}
|
|
927
|
+
* />
|
|
928
|
+
* ```
|
|
929
|
+
*/
|
|
801
930
|
export declare const CheckboxBaseControlled: ForwardRefExoticComponent<CheckboxBaseControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
802
931
|
|
|
803
932
|
/**
|
|
@@ -840,6 +969,22 @@ export declare interface CheckboxBaseStandAloneProps extends InputActionsProps,
|
|
|
840
969
|
*/
|
|
841
970
|
export declare type CheckboxBaseUnControlledProps<Variant = undefined extends string ? unknown : string> = CheckboxBaseControlledProps<Variant>;
|
|
842
971
|
|
|
972
|
+
/**
|
|
973
|
+
* CheckboxControlled component for managed checkbox state.
|
|
974
|
+
*
|
|
975
|
+
* This component renders a checkbox where the checked state is controlled
|
|
976
|
+
* externally via props. It handles checked, indeterminate, disabled, and
|
|
977
|
+
* error states with appropriate styling and ARIA attributes.
|
|
978
|
+
*
|
|
979
|
+
* @example
|
|
980
|
+
* ```tsx
|
|
981
|
+
* <CheckboxControlled
|
|
982
|
+
* checked={isChecked}
|
|
983
|
+
* onChange={(e) => setIsChecked(e.target.checked)}
|
|
984
|
+
* label="Accept terms"
|
|
985
|
+
* />
|
|
986
|
+
* ```
|
|
987
|
+
*/
|
|
843
988
|
export declare const CheckboxControlled: ForwardRefExoticComponent<CheckboxControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
844
989
|
|
|
845
990
|
/**
|
|
@@ -950,11 +1095,6 @@ export declare interface ChipStandAloneProps extends DataAttributes {
|
|
|
950
1095
|
rangeIcon?: ElementOrIconProps;
|
|
951
1096
|
errorMessage?: CommonTextProps;
|
|
952
1097
|
rangeSeparator?: CommonTextProps;
|
|
953
|
-
/**
|
|
954
|
-
* @deprecated
|
|
955
|
-
* Use closeIcon -> altText instead
|
|
956
|
-
*/
|
|
957
|
-
deleteText?: string;
|
|
958
1098
|
state: ChipStateType;
|
|
959
1099
|
cssClasses?: ChipCssClasses;
|
|
960
1100
|
}
|
|
@@ -988,7 +1128,7 @@ declare type ComponentSelected<T> = Pick<T, NonVariablesKeys<T>>;
|
|
|
988
1128
|
|
|
989
1129
|
declare type ComponentSelected_2<T> = Pick<T, NonVariablesKeys_2<T>>;
|
|
990
1130
|
|
|
991
|
-
declare type ComponentsTypesAvailableComponents = 'ACCORDION' | 'AVATAR' | 'BADGE' | 'BREADCRUMBS' | 'BUTTON' | 'CALENDAR' | 'CARD_IMAGE' | 'CAROUSEL' | 'CHECKBOX' | 'CHECKBOX_BASE' | 'CHIP' | 'CONTAINER' | 'DATA_TABLE' | 'DOT' | 'DROPDOWN_SELECTED' | 'ERROR_MESSAGE' | 'ICON' | 'INPUT' | 'INPUT_BASE' | 'INPUT_DECORATION' | 'INPUT_SIGNATURE' | 'ITEM_ROVE' | 'LINK' | 'LINK_AS_BUTTON' | 'LIST_OPTIONS' | '
|
|
1131
|
+
declare type ComponentsTypesAvailableComponents = 'ACCORDION' | 'ALERT' | 'AVATAR' | 'BADGE' | 'BREADCRUMBS' | 'BUTTON' | 'CALENDAR' | 'CARD_IMAGE' | 'CAROUSEL' | 'CHECKBOX' | 'CHECKBOX_BASE' | 'CHIP' | 'CONTAINER' | 'DATA_TABLE' | 'DOT' | 'DROPDOWN_SELECTED' | 'ERROR_MESSAGE' | 'ICON' | 'INPUT' | 'INPUT_BASE' | 'INPUT_DECORATION' | 'INPUT_SIGNATURE' | 'ITEM_ROVE' | 'LINK' | 'LINK_AS_BUTTON' | 'LIST_OPTIONS' | 'MODAL' | 'OPTION' | 'OVERLAY' | 'PAGE_CONTROL' | 'PAGINATION' | 'POPOVER' | 'PROGRESS_BAR' | 'RADIO_BUTTON' | 'SELECTOR_BOX_FILE' | 'SKELETON' | 'SLIDER' | 'SNACKBAR' | 'STEPPER_NUMBER' | 'TABLE' | 'TABLE_BODY' | 'TABLE_CAPTION' | 'TABLE_CELL' | 'TABLE_DIVIDER' | 'TABLE_FOOT' | 'TABLE_HEAD' | 'TABLE_ROW' | 'TABS' | 'TAG' | 'TEXT' | 'TEXT_AREA' | 'TEXT_COUNT' | 'TOGGLE' | 'TOOLTIP' | 'VIRTUAL_KEYBOARD';
|
|
992
1132
|
|
|
993
1133
|
declare type ComponentsTypesComponents = {
|
|
994
1134
|
ACCORDION: {
|
|
@@ -1004,6 +1144,27 @@ declare type ComponentsTypesComponents = {
|
|
|
1004
1144
|
accordion: string;
|
|
1005
1145
|
};
|
|
1006
1146
|
};
|
|
1147
|
+
ALERT: {
|
|
1148
|
+
container: string;
|
|
1149
|
+
contentcontainer: string;
|
|
1150
|
+
description: string;
|
|
1151
|
+
$_error: {
|
|
1152
|
+
alert: string;
|
|
1153
|
+
container: string;
|
|
1154
|
+
};
|
|
1155
|
+
$_informative: {
|
|
1156
|
+
alert: string;
|
|
1157
|
+
container: string;
|
|
1158
|
+
};
|
|
1159
|
+
$_success: {
|
|
1160
|
+
alert: string;
|
|
1161
|
+
container: string;
|
|
1162
|
+
};
|
|
1163
|
+
$_warning: {
|
|
1164
|
+
alert: string;
|
|
1165
|
+
container: string;
|
|
1166
|
+
};
|
|
1167
|
+
};
|
|
1007
1168
|
AVATAR: {
|
|
1008
1169
|
avatar: string;
|
|
1009
1170
|
dot: string;
|
|
@@ -1079,10 +1240,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1079
1240
|
button: string;
|
|
1080
1241
|
icon: string;
|
|
1081
1242
|
};
|
|
1082
|
-
$_medium: {
|
|
1083
|
-
button: string;
|
|
1084
|
-
icon: string;
|
|
1085
|
-
};
|
|
1086
1243
|
$_small: {
|
|
1087
1244
|
button: string;
|
|
1088
1245
|
icon: string;
|
|
@@ -1106,7 +1263,7 @@ declare type ComponentsTypesComponents = {
|
|
|
1106
1263
|
button: string;
|
|
1107
1264
|
};
|
|
1108
1265
|
dynamic_values: (styles: {
|
|
1109
|
-
|
|
1266
|
+
$alignText: string;
|
|
1110
1267
|
}) => {
|
|
1111
1268
|
string: string;
|
|
1112
1269
|
object: object;
|
|
@@ -1387,11 +1544,11 @@ declare type ComponentsTypesComponents = {
|
|
|
1387
1544
|
complex: string;
|
|
1388
1545
|
svg: string;
|
|
1389
1546
|
dynamic_values: (styles: {
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1547
|
+
$color: string;
|
|
1548
|
+
$moveAround: string;
|
|
1549
|
+
$transitionDuration: string;
|
|
1550
|
+
$height: string;
|
|
1551
|
+
$width: string;
|
|
1395
1552
|
}) => {
|
|
1396
1553
|
string: string;
|
|
1397
1554
|
object: object;
|
|
@@ -1518,49 +1675,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1518
1675
|
titlecontainer: string;
|
|
1519
1676
|
};
|
|
1520
1677
|
};
|
|
1521
|
-
MESSAGE: {
|
|
1522
|
-
message: string;
|
|
1523
|
-
actionbuttoncontainer: string;
|
|
1524
|
-
buttonsectioncontainer: string;
|
|
1525
|
-
closeicon: string;
|
|
1526
|
-
container: string;
|
|
1527
|
-
contentcontainer: string;
|
|
1528
|
-
contentcontainerlargemessage: string;
|
|
1529
|
-
description: string;
|
|
1530
|
-
extraactionbuttoncontainer: string;
|
|
1531
|
-
headercontainer: string;
|
|
1532
|
-
headercontainerlargemessage: string;
|
|
1533
|
-
infoicon: string;
|
|
1534
|
-
linkcontainer: string;
|
|
1535
|
-
linkscontainer: string;
|
|
1536
|
-
title: string;
|
|
1537
|
-
titlecontainer: string;
|
|
1538
|
-
$_error: {
|
|
1539
|
-
message: string;
|
|
1540
|
-
container: string;
|
|
1541
|
-
infoicon: string;
|
|
1542
|
-
};
|
|
1543
|
-
$_informative: {
|
|
1544
|
-
message: string;
|
|
1545
|
-
container: string;
|
|
1546
|
-
infoicon: string;
|
|
1547
|
-
};
|
|
1548
|
-
$_success: {
|
|
1549
|
-
message: string;
|
|
1550
|
-
container: string;
|
|
1551
|
-
infoicon: string;
|
|
1552
|
-
};
|
|
1553
|
-
$_warning: {
|
|
1554
|
-
message: string;
|
|
1555
|
-
container: string;
|
|
1556
|
-
infoicon: string;
|
|
1557
|
-
};
|
|
1558
|
-
action_button: {
|
|
1559
|
-
button: string;
|
|
1560
|
-
icon: string;
|
|
1561
|
-
loader: string;
|
|
1562
|
-
};
|
|
1563
|
-
};
|
|
1564
1678
|
MODAL: {
|
|
1565
1679
|
modal: string;
|
|
1566
1680
|
closebuttoncontainer: string;
|
|
@@ -1578,13 +1692,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1578
1692
|
modal: string;
|
|
1579
1693
|
};
|
|
1580
1694
|
};
|
|
1581
|
-
NAVBAR: {
|
|
1582
|
-
navbar: string;
|
|
1583
|
-
itemcontainer: string;
|
|
1584
|
-
$_default: {
|
|
1585
|
-
navbar: string;
|
|
1586
|
-
};
|
|
1587
|
-
};
|
|
1588
1695
|
OPTION: {
|
|
1589
1696
|
option: string;
|
|
1590
1697
|
checkedicon: string;
|
|
@@ -1709,63 +1816,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1709
1816
|
$_default: {
|
|
1710
1817
|
progress_bar: string;
|
|
1711
1818
|
};
|
|
1712
|
-
$_interactive: {
|
|
1713
|
-
progress_bar: string;
|
|
1714
|
-
barcontainer: string;
|
|
1715
|
-
};
|
|
1716
|
-
slider: {
|
|
1717
|
-
activetrack: string;
|
|
1718
|
-
inactivetrack: string;
|
|
1719
|
-
thumb: string;
|
|
1720
|
-
decrement_button_size: {
|
|
1721
|
-
icon: string;
|
|
1722
|
-
button: string;
|
|
1723
|
-
loader: string;
|
|
1724
|
-
};
|
|
1725
|
-
decrement_button_variant: {
|
|
1726
|
-
button: string;
|
|
1727
|
-
icon: string;
|
|
1728
|
-
loader: string;
|
|
1729
|
-
};
|
|
1730
|
-
tooltip: {
|
|
1731
|
-
arrowcontainer: string;
|
|
1732
|
-
arrowposition: string;
|
|
1733
|
-
arrowsize: string;
|
|
1734
|
-
closebuttoncontainer: string;
|
|
1735
|
-
closebuttonicon: string;
|
|
1736
|
-
headercontainer: string;
|
|
1737
|
-
paragraph: string;
|
|
1738
|
-
paragraphcontainer: string;
|
|
1739
|
-
title: string;
|
|
1740
|
-
tooltipexternalcontainer: string;
|
|
1741
|
-
tooltipinternalcontainer: string;
|
|
1742
|
-
popover: {
|
|
1743
|
-
arrow: string;
|
|
1744
|
-
popover: string;
|
|
1745
|
-
};
|
|
1746
|
-
arrow: string;
|
|
1747
|
-
divider: string;
|
|
1748
|
-
dragicon: string;
|
|
1749
|
-
dragiconcontainer: string;
|
|
1750
|
-
tooltipalignstyles: string;
|
|
1751
|
-
tooltipasmodal: string;
|
|
1752
|
-
};
|
|
1753
|
-
buttonstrackscontainer: string;
|
|
1754
|
-
helpertext: string;
|
|
1755
|
-
helpertextcontainer: string;
|
|
1756
|
-
helpertextleftcontainer: string;
|
|
1757
|
-
helpertextrightcontainer: string;
|
|
1758
|
-
innerthumbtooltip: string;
|
|
1759
|
-
label: string;
|
|
1760
|
-
labelcontainer: string;
|
|
1761
|
-
rightthumbicon: string;
|
|
1762
|
-
scalecontainer: string;
|
|
1763
|
-
scaleoption: string;
|
|
1764
|
-
thumbicon: string;
|
|
1765
|
-
tracksthumbscontainer: string;
|
|
1766
|
-
tracksthumbsinnercontainer: string;
|
|
1767
|
-
slider: string;
|
|
1768
|
-
};
|
|
1769
1819
|
};
|
|
1770
1820
|
RADIO_BUTTON: {
|
|
1771
1821
|
radio_button: string;
|
|
@@ -1789,12 +1839,8 @@ declare type ComponentsTypesComponents = {
|
|
|
1789
1839
|
arrowcontainer: string;
|
|
1790
1840
|
arrowposition: string;
|
|
1791
1841
|
arrowsize: string;
|
|
1792
|
-
closebuttoncontainer: string;
|
|
1793
|
-
closebuttonicon: string;
|
|
1794
|
-
headercontainer: string;
|
|
1795
1842
|
paragraph: string;
|
|
1796
1843
|
paragraphcontainer: string;
|
|
1797
|
-
title: string;
|
|
1798
1844
|
tooltipexternalcontainer: string;
|
|
1799
1845
|
tooltipinternalcontainer: string;
|
|
1800
1846
|
popover: {
|
|
@@ -1802,16 +1848,12 @@ declare type ComponentsTypesComponents = {
|
|
|
1802
1848
|
popover: string;
|
|
1803
1849
|
};
|
|
1804
1850
|
arrow: string;
|
|
1805
|
-
divider: string;
|
|
1806
|
-
dragicon: string;
|
|
1807
|
-
dragiconcontainer: string;
|
|
1808
1851
|
tooltipalignstyles: string;
|
|
1809
1852
|
tooltipasmodal: string;
|
|
1810
1853
|
};
|
|
1811
1854
|
};
|
|
1812
1855
|
SELECTOR_BOX_FILE: {
|
|
1813
1856
|
selector_box_file: string;
|
|
1814
|
-
actiondescriptioncontainer: string;
|
|
1815
1857
|
actionicon: string;
|
|
1816
1858
|
actioniconandactiontextcontainer: string;
|
|
1817
1859
|
animationcontainer: string;
|
|
@@ -1824,57 +1866,13 @@ declare type ComponentsTypesComponents = {
|
|
|
1824
1866
|
containerboxfilename: string;
|
|
1825
1867
|
containerboxicon: string;
|
|
1826
1868
|
containerboxtextscontainer: string;
|
|
1827
|
-
description: string;
|
|
1828
|
-
descriptioncontainer: string;
|
|
1829
|
-
errormessage: string;
|
|
1830
|
-
errormessagecontainer: string;
|
|
1831
|
-
errormessageicon: string;
|
|
1832
1869
|
header: string;
|
|
1833
1870
|
leftanimationcontainer: string;
|
|
1834
1871
|
rightanimationcontainer: string;
|
|
1835
|
-
subtitle: string;
|
|
1836
|
-
subtitletooltipcontainer: string;
|
|
1837
|
-
title: string;
|
|
1838
|
-
titlesubtitlecontainer: string;
|
|
1839
|
-
tooltipicon: string;
|
|
1840
|
-
tooltipiconcontainer: string;
|
|
1841
1872
|
topanimationcontainer: string;
|
|
1842
1873
|
$_default: {
|
|
1843
1874
|
selector_box_file: string;
|
|
1844
1875
|
};
|
|
1845
|
-
button_size: {
|
|
1846
|
-
icon: string;
|
|
1847
|
-
button: string;
|
|
1848
|
-
loader: string;
|
|
1849
|
-
};
|
|
1850
|
-
button_variant: {
|
|
1851
|
-
button: string;
|
|
1852
|
-
icon: string;
|
|
1853
|
-
loader: string;
|
|
1854
|
-
};
|
|
1855
|
-
tooltip: {
|
|
1856
|
-
arrowcontainer: string;
|
|
1857
|
-
arrowposition: string;
|
|
1858
|
-
arrowsize: string;
|
|
1859
|
-
closebuttoncontainer: string;
|
|
1860
|
-
closebuttonicon: string;
|
|
1861
|
-
headercontainer: string;
|
|
1862
|
-
paragraph: string;
|
|
1863
|
-
paragraphcontainer: string;
|
|
1864
|
-
title: string;
|
|
1865
|
-
tooltipexternalcontainer: string;
|
|
1866
|
-
tooltipinternalcontainer: string;
|
|
1867
|
-
popover: {
|
|
1868
|
-
arrow: string;
|
|
1869
|
-
popover: string;
|
|
1870
|
-
};
|
|
1871
|
-
arrow: string;
|
|
1872
|
-
divider: string;
|
|
1873
|
-
dragicon: string;
|
|
1874
|
-
dragiconcontainer: string;
|
|
1875
|
-
tooltipalignstyles: string;
|
|
1876
|
-
tooltipasmodal: string;
|
|
1877
|
-
};
|
|
1878
1876
|
};
|
|
1879
1877
|
SKELETON: {
|
|
1880
1878
|
skeleton: string;
|
|
@@ -1933,12 +1931,8 @@ declare type ComponentsTypesComponents = {
|
|
|
1933
1931
|
arrowcontainer: string;
|
|
1934
1932
|
arrowposition: string;
|
|
1935
1933
|
arrowsize: string;
|
|
1936
|
-
closebuttoncontainer: string;
|
|
1937
|
-
closebuttonicon: string;
|
|
1938
|
-
headercontainer: string;
|
|
1939
1934
|
paragraph: string;
|
|
1940
1935
|
paragraphcontainer: string;
|
|
1941
|
-
title: string;
|
|
1942
1936
|
tooltipexternalcontainer: string;
|
|
1943
1937
|
tooltipinternalcontainer: string;
|
|
1944
1938
|
popover: {
|
|
@@ -1946,9 +1940,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1946
1940
|
popover: string;
|
|
1947
1941
|
};
|
|
1948
1942
|
arrow: string;
|
|
1949
|
-
divider: string;
|
|
1950
|
-
dragicon: string;
|
|
1951
|
-
dragiconcontainer: string;
|
|
1952
1943
|
tooltipalignstyles: string;
|
|
1953
1944
|
tooltipasmodal: string;
|
|
1954
1945
|
};
|
|
@@ -2040,18 +2031,18 @@ declare type ComponentsTypesComponents = {
|
|
|
2040
2031
|
table_cell: string;
|
|
2041
2032
|
};
|
|
2042
2033
|
dynamic_values: (styles: {
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2034
|
+
$tdWidth: string;
|
|
2035
|
+
$tdHeight: string;
|
|
2036
|
+
$tdMinWidth: string;
|
|
2037
|
+
$tdMaxWidth: string;
|
|
2038
|
+
$tdTextAlign: string;
|
|
2039
|
+
$tdVerticalAlign: string;
|
|
2040
|
+
$tdAlignItems: string;
|
|
2041
|
+
$tdJustifyContent: string;
|
|
2042
|
+
$tdTop: string;
|
|
2043
|
+
$tdLeft: string;
|
|
2044
|
+
$tdRight: string;
|
|
2045
|
+
$tdBottom: string;
|
|
2055
2046
|
}) => {
|
|
2056
2047
|
string: string;
|
|
2057
2048
|
object: object;
|
|
@@ -2253,15 +2244,8 @@ declare type ComponentsTypesComponents = {
|
|
|
2253
2244
|
arrowcontainer: string;
|
|
2254
2245
|
arrowposition: string;
|
|
2255
2246
|
arrowsize: string;
|
|
2256
|
-
closebuttoncontainer: string;
|
|
2257
|
-
closebuttonicon: string;
|
|
2258
|
-
divider: string;
|
|
2259
|
-
dragicon: string;
|
|
2260
|
-
dragiconcontainer: string;
|
|
2261
|
-
headercontainer: string;
|
|
2262
2247
|
paragraph: string;
|
|
2263
2248
|
paragraphcontainer: string;
|
|
2264
|
-
title: string;
|
|
2265
2249
|
tooltipalignstyles: string;
|
|
2266
2250
|
tooltipasmodal: string;
|
|
2267
2251
|
tooltipexternalcontainer: string;
|
|
@@ -2271,12 +2255,8 @@ declare type ComponentsTypesComponents = {
|
|
|
2271
2255
|
arrowcontainer: string;
|
|
2272
2256
|
arrowposition: string;
|
|
2273
2257
|
arrowsize: string;
|
|
2274
|
-
closebuttoncontainer: string;
|
|
2275
|
-
closebuttonicon: string;
|
|
2276
|
-
headercontainer: string;
|
|
2277
2258
|
paragraph: string;
|
|
2278
2259
|
paragraphcontainer: string;
|
|
2279
|
-
title: string;
|
|
2280
2260
|
tooltipexternalcontainer: string;
|
|
2281
2261
|
tooltipinternalcontainer: string;
|
|
2282
2262
|
};
|
|
@@ -3074,6 +3054,21 @@ declare type DataAttributes = {
|
|
|
3074
3054
|
[key in `data-${string}`]?: string;
|
|
3075
3055
|
};
|
|
3076
3056
|
|
|
3057
|
+
/**
|
|
3058
|
+
* DataTable component for displaying structured data in a table format.
|
|
3059
|
+
*
|
|
3060
|
+
* This component provides advanced table functionality including sticky columns,
|
|
3061
|
+
* scrollable content, shadow effects, and divider management. It handles complex
|
|
3062
|
+
* table behaviors automatically through internal hooks.
|
|
3063
|
+
*
|
|
3064
|
+
* @example
|
|
3065
|
+
* ```tsx
|
|
3066
|
+
* <DataTable variant="striped">
|
|
3067
|
+
* <TableHead>...</TableHead>
|
|
3068
|
+
* <TableBody>...</TableBody>
|
|
3069
|
+
* </DataTable>
|
|
3070
|
+
* ```
|
|
3071
|
+
*/
|
|
3077
3072
|
export declare const DataTable: ForwardRefExoticComponent<DataTableProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3078
3073
|
|
|
3079
3074
|
export declare type DataTableCellProps = TableCellProps & {
|
|
@@ -3203,16 +3198,30 @@ export declare type DataTableVariantStyles<Variant extends string> = DataTableSt
|
|
|
3203
3198
|
[key in Variant]: DataTableStyleProps;
|
|
3204
3199
|
};
|
|
3205
3200
|
|
|
3201
|
+
/**
|
|
3202
|
+
* Options for formatting dates using Intl.DateTimeFormat.
|
|
3203
|
+
* Provides granular control over date/time display format.
|
|
3204
|
+
*/
|
|
3206
3205
|
declare interface DateFormatOptions {
|
|
3206
|
+
/** Representation of the weekday ('long', 'short', 'narrow') */
|
|
3207
3207
|
weekday?: Intl.DateTimeFormatOptions['weekday'];
|
|
3208
|
+
/** Representation of the year ('numeric', '2-digit') */
|
|
3208
3209
|
year?: Intl.DateTimeFormatOptions['year'];
|
|
3210
|
+
/** Representation of the month ('numeric', '2-digit', 'long', 'short', 'narrow') */
|
|
3209
3211
|
month?: Intl.DateTimeFormatOptions['month'];
|
|
3212
|
+
/** Representation of the day ('numeric', '2-digit') */
|
|
3210
3213
|
day?: Intl.DateTimeFormatOptions['day'];
|
|
3214
|
+
/** Representation of the hour ('numeric', '2-digit') */
|
|
3211
3215
|
hour?: Intl.DateTimeFormatOptions['hour'];
|
|
3216
|
+
/** Representation of the minute ('numeric', '2-digit') */
|
|
3212
3217
|
minute?: Intl.DateTimeFormatOptions['minute'];
|
|
3218
|
+
/** Representation of the second ('numeric', '2-digit') */
|
|
3213
3219
|
second?: Intl.DateTimeFormatOptions['second'];
|
|
3220
|
+
/** Representation of the time zone name ('long', 'short', etc.) */
|
|
3214
3221
|
timeZoneName?: Intl.DateTimeFormatOptions['timeZoneName'];
|
|
3222
|
+
/** Whether to use 12-hour time format (true) or 24-hour format (false) */
|
|
3215
3223
|
hour12?: Intl.DateTimeFormatOptions['hour12'];
|
|
3224
|
+
/** Hour cycle to use ('h11', 'h12', 'h23', 'h24') */
|
|
3216
3225
|
hourCycle?: Intl.DateTimeFormatOptions['hourCycle'];
|
|
3217
3226
|
}
|
|
3218
3227
|
|
|
@@ -3427,74 +3436,117 @@ declare interface ElementOrIconProps extends Omit<IconProps, 'icon'>, DataAttrib
|
|
|
3427
3436
|
|
|
3428
3437
|
declare type FormatDateType = 'd' | 'dd' | 'ddd' | 'dddd' | 'f' | 'ff' | 'fff' | 'F' | 'FF' | 'FFF' | 'ffff' | 'FFFF' | 't' | 'tt' | 'T' | 'TT' | 'ttt' | 'TTT' | 'tttt' | 'TTTT';
|
|
3429
3438
|
|
|
3439
|
+
/**
|
|
3440
|
+
* React Context for generic component implementations.
|
|
3441
|
+
* Provides access to custom Link and Image components throughout the application.
|
|
3442
|
+
*/
|
|
3430
3443
|
export declare const GenericComponentContext: Context<GenericComponentsType | null>;
|
|
3431
3444
|
|
|
3445
|
+
/**
|
|
3446
|
+
* Provider component for custom generic component implementations.
|
|
3447
|
+
* Allows applications to inject their own Link and Image components
|
|
3448
|
+
* (e.g., Next.js Link, React Router Link) to be used by all Kubit components.
|
|
3449
|
+
*
|
|
3450
|
+
* This is essential for integrating Kubit components with different routing libraries
|
|
3451
|
+
* or custom implementations while maintaining consistent behavior across the application.
|
|
3452
|
+
*
|
|
3453
|
+
* @param props - Provider props
|
|
3454
|
+
* @param props.children - React children to be wrapped by the provider
|
|
3455
|
+
* @param props.value - Custom generic components to be used throughout the application
|
|
3456
|
+
*
|
|
3457
|
+
* @returns The provider component wrapping all child components
|
|
3458
|
+
*
|
|
3459
|
+
* @example
|
|
3460
|
+
* ```tsx
|
|
3461
|
+
* import { Link } from 'react-router-dom';
|
|
3462
|
+
*
|
|
3463
|
+
* const customComponents = {
|
|
3464
|
+
* LINK: Link,
|
|
3465
|
+
* IMAGE: CustomImage,
|
|
3466
|
+
* };
|
|
3467
|
+
*
|
|
3468
|
+
* <GenericComponentsProvider value={customComponents}>
|
|
3469
|
+
* <App />
|
|
3470
|
+
* </GenericComponentsProvider>
|
|
3471
|
+
* ```
|
|
3472
|
+
*/
|
|
3432
3473
|
export declare const GenericComponentsProvider: ({ children, value, }: PropsWithChildren<GenericComponentsProviderProps>) => JSX.Element;
|
|
3433
3474
|
|
|
3434
3475
|
/**
|
|
3435
|
-
*
|
|
3436
|
-
*
|
|
3476
|
+
* Props for the GenericComponentsProvider.
|
|
3477
|
+
* Wraps the application with custom component implementations.
|
|
3437
3478
|
*/
|
|
3438
3479
|
declare interface GenericComponentsProviderProps {
|
|
3480
|
+
/** The custom generic components to be made available to child components */
|
|
3439
3481
|
value: GenericComponentsType;
|
|
3440
3482
|
}
|
|
3441
3483
|
|
|
3442
3484
|
/**
|
|
3443
|
-
*
|
|
3485
|
+
* Collection of generic component implementations.
|
|
3486
|
+
* Allows customization of primitive components used throughout the library.
|
|
3444
3487
|
*/
|
|
3445
3488
|
declare interface GenericComponentsType {
|
|
3489
|
+
/** Link component implementation (required) */
|
|
3446
3490
|
LINK: GenericLinkType;
|
|
3491
|
+
/** Image component implementation (optional) */
|
|
3447
3492
|
IMAGE?: GenericImageType;
|
|
3448
3493
|
}
|
|
3449
3494
|
|
|
3450
3495
|
/**
|
|
3451
|
-
*
|
|
3496
|
+
* Props for a generic image component.
|
|
3497
|
+
* Inherits all standard HTML image attributes.
|
|
3452
3498
|
*/
|
|
3453
3499
|
declare type GenericImageProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
3454
3500
|
|
|
3455
3501
|
/**
|
|
3456
|
-
*
|
|
3502
|
+
* Type definition for a generic image component.
|
|
3503
|
+
* Can be either a functional component or a forward ref component to support refs.
|
|
3457
3504
|
*/
|
|
3458
3505
|
declare type GenericImageType = ((props: GenericImageProps) => JSX.Element) | ForwardRefExoticComponent<GenericImageProps & RefAttributes<unknown>>;
|
|
3459
3506
|
|
|
3507
|
+
/**
|
|
3508
|
+
* Subset of ARIA attributes applicable to link elements.
|
|
3509
|
+
* Ensures proper accessibility for navigation components.
|
|
3510
|
+
*/
|
|
3460
3511
|
declare type GenericLinkAriaAttributes = Pick<AriaAttributes, 'aria-label' | 'aria-describedby' | 'aria-labelledby' | 'aria-disabled' | 'aria-current'>;
|
|
3461
3512
|
|
|
3462
3513
|
/**
|
|
3463
|
-
*
|
|
3464
|
-
*
|
|
3465
|
-
*
|
|
3466
|
-
* @property {string} [className] - Optional CSS class for styling.
|
|
3467
|
-
* @property {string} [target] - Specifies where to open the linked document.
|
|
3468
|
-
* @property {boolean} [aria-disabled] - Indicates that the element is perceivable but disabled.
|
|
3469
|
-
* @property {string} [aria-label] - Defines a string value that labels the current element.
|
|
3470
|
-
* @property {string} [aria-describedby] - Defines a string value that labels the current element.
|
|
3471
|
-
* @property {string} [aria-current] - Defines value for the current element.
|
|
3472
|
-
* @property {() => void} [onClick] - Function to call when the link is clicked.
|
|
3473
|
-
* @property {() => void} [onFocus] - Function to call when the link is focused.
|
|
3474
|
-
* @property {() => void} [onMouseEnter] - Function to call when the mouse enters the link area.
|
|
3475
|
-
* @property {() => void} [onMouseLeave] - Function to call when the mouse leaves the link area.
|
|
3476
|
-
* @property {ROLES} [role] - ARIA role to describe the link's type.
|
|
3477
|
-
* @property {string} [dataTestId] - Test ID for testing purposes.
|
|
3478
|
-
* @property {boolean} [draggable] - Indicates whether the element can be dragged.
|
|
3514
|
+
* Props for a generic link component.
|
|
3515
|
+
* Provides a flexible interface for custom link implementations that can be used
|
|
3516
|
+
* throughout the component library (e.g., for React Router, Next.js Link, etc.).
|
|
3479
3517
|
*/
|
|
3480
3518
|
declare type GenericLinkProps = {
|
|
3519
|
+
/** The destination URL for the link */
|
|
3481
3520
|
url: string;
|
|
3521
|
+
/** Optional unique identifier for the link element */
|
|
3482
3522
|
id?: string;
|
|
3523
|
+
/** Content to be displayed inside the link */
|
|
3483
3524
|
children: string | JSX.Element;
|
|
3525
|
+
/** Optional CSS class name(s) for styling */
|
|
3484
3526
|
className?: string;
|
|
3527
|
+
/** Specifies where to open the linked document ('_blank', '_self', '_parent', '_top') */
|
|
3485
3528
|
target?: string;
|
|
3529
|
+
/** Callback function invoked when the link is clicked */
|
|
3486
3530
|
onClick?: () => void;
|
|
3531
|
+
/** Callback function invoked when the link receives focus */
|
|
3487
3532
|
onFocus?: () => void;
|
|
3533
|
+
/** Callback function invoked when the mouse pointer enters the link area */
|
|
3488
3534
|
onMouseEnter?: () => void;
|
|
3535
|
+
/** Callback function invoked when the mouse pointer leaves the link area */
|
|
3489
3536
|
onMouseLeave?: () => void;
|
|
3537
|
+
/** Relationship between the current document and the linked document */
|
|
3490
3538
|
rel?: string;
|
|
3539
|
+
/** ARIA role to override the default link role if needed */
|
|
3491
3540
|
role?: AriaRole;
|
|
3541
|
+
/** Test ID for automated testing purposes */
|
|
3492
3542
|
dataTestId?: string;
|
|
3543
|
+
/** Whether the element can be dragged */
|
|
3493
3544
|
draggable?: boolean;
|
|
3494
3545
|
} & GenericLinkAriaAttributes & DataAttributes;
|
|
3495
3546
|
|
|
3496
3547
|
/**
|
|
3497
|
-
*
|
|
3548
|
+
* Type definition for a generic link component.
|
|
3549
|
+
* Can be either a functional component or a forward ref component to support refs.
|
|
3498
3550
|
*/
|
|
3499
3551
|
declare type GenericLinkType = ((props: GenericLinkProps) => JSX.Element) | ForwardRefExoticComponent<GenericLinkProps & RefAttributes<unknown>>;
|
|
3500
3552
|
|
|
@@ -3714,6 +3766,23 @@ export declare interface ImageStyleProps {
|
|
|
3714
3766
|
width?: string;
|
|
3715
3767
|
}
|
|
3716
3768
|
|
|
3769
|
+
/**
|
|
3770
|
+
* Input component for text input fields.
|
|
3771
|
+
*
|
|
3772
|
+
* This component provides a styled text input with support for labels, helper text,
|
|
3773
|
+
* error messages, icons, and various states (disabled, error, success). It manages
|
|
3774
|
+
* focus state internally and applies appropriate styling.
|
|
3775
|
+
*
|
|
3776
|
+
* @example
|
|
3777
|
+
* ```tsx
|
|
3778
|
+
* <Input
|
|
3779
|
+
* label="Email"
|
|
3780
|
+
* type="email"
|
|
3781
|
+
* placeholder="Enter your email"
|
|
3782
|
+
* error="Invalid email"
|
|
3783
|
+
* />
|
|
3784
|
+
* ```
|
|
3785
|
+
*/
|
|
3717
3786
|
export declare const Input: ForwardRefExoticComponent<InputProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3718
3787
|
|
|
3719
3788
|
declare type InputActionsProps = Pick<DOMAttributes<HTMLInputElement>, 'onBlur' | 'onChange'>;
|
|
@@ -3722,6 +3791,23 @@ export declare type InputActionsType = Pick<DOMAttributes<HTMLInputElement>, 'on
|
|
|
3722
3791
|
|
|
3723
3792
|
declare type InputActionsType_2 = Pick<DOMAttributes<HTMLInputElement>, 'onBlur' | 'onChange'>;
|
|
3724
3793
|
|
|
3794
|
+
/**
|
|
3795
|
+
* InputBase component for basic text input functionality.
|
|
3796
|
+
*
|
|
3797
|
+
* This is a low-level input component that provides the foundation for more
|
|
3798
|
+
* complex input components. It manages states (focused, filled, error, disabled)
|
|
3799
|
+
* and applies appropriate styling and ARIA attributes.
|
|
3800
|
+
*
|
|
3801
|
+
* @example
|
|
3802
|
+
* ```tsx
|
|
3803
|
+
* <InputBase
|
|
3804
|
+
* placeholder="Enter text"
|
|
3805
|
+
* error={hasError}
|
|
3806
|
+
* filled={!!value}
|
|
3807
|
+
* focused={isFocused}
|
|
3808
|
+
* />
|
|
3809
|
+
* ```
|
|
3810
|
+
*/
|
|
3725
3811
|
export declare const InputBase: ForwardRefExoticComponent<InputBaseProps<string> & RefAttributes<HTMLInputElement>>;
|
|
3726
3812
|
|
|
3727
3813
|
export declare type InputBaseActionsType = Pick<DOMAttributes<HTMLInputElement>, 'onKeyDown' | 'onFocus' | 'onBlur' | 'onPaste' | 'onCopy'>;
|
|
@@ -3777,6 +3863,24 @@ export declare type InputBaseVariantStyles<Variant extends string> = CssLibProps
|
|
|
3777
3863
|
|
|
3778
3864
|
declare type InputCssClasses = ComponentSelected<ComponentsTypesComponents['INPUT']>;
|
|
3779
3865
|
|
|
3866
|
+
/**
|
|
3867
|
+
* InputDecoration component for wrapping and decorating input fields.
|
|
3868
|
+
*
|
|
3869
|
+
* This component provides a styled container for input elements with support
|
|
3870
|
+
* for labels, icons, helper text, and various visual states. It manages the
|
|
3871
|
+
* state representation (focused, filled, error, disabled) for consistent styling.
|
|
3872
|
+
*
|
|
3873
|
+
* @example
|
|
3874
|
+
* ```tsx
|
|
3875
|
+
* <InputDecoration
|
|
3876
|
+
* label="Email"
|
|
3877
|
+
* error={hasError}
|
|
3878
|
+
* helperText="Enter a valid email"
|
|
3879
|
+
* >
|
|
3880
|
+
* <input type="email" />
|
|
3881
|
+
* </InputDecoration>
|
|
3882
|
+
* ```
|
|
3883
|
+
*/
|
|
3780
3884
|
export declare const InputDecoration: ForwardRefExoticComponent<InputDecorationProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3781
3885
|
|
|
3782
3886
|
declare type InputDecorationCssClasses = ComponentSelected<ComponentsTypesComponents['INPUT_DECORATION']>;
|
|
@@ -3830,8 +3934,43 @@ export declare interface InputProps<Variant = undefined extends string ? unknown
|
|
|
3830
3934
|
additionalClasses?: Partial<InputCssClasses>;
|
|
3831
3935
|
}
|
|
3832
3936
|
|
|
3937
|
+
/**
|
|
3938
|
+
* InputSignatureUnControlled component with internal signature management.
|
|
3939
|
+
*
|
|
3940
|
+
* This component provides a canvas-based signature capture that manages its own
|
|
3941
|
+
* state internally. It handles drawing, clearing, and state updates automatically.
|
|
3942
|
+
* Exposes methods via ref for resetting the signature canvas.
|
|
3943
|
+
*
|
|
3944
|
+
* @example
|
|
3945
|
+
* ```tsx
|
|
3946
|
+
* const signatureRef = useRef();
|
|
3947
|
+
*
|
|
3948
|
+
* <InputSignatureUnControlled
|
|
3949
|
+
* ref={signatureRef}
|
|
3950
|
+
* onChange={(dataUrl) => console.log(dataUrl)}
|
|
3951
|
+
* />
|
|
3952
|
+
*
|
|
3953
|
+
* // Reset signature: signatureRef.current.reset()
|
|
3954
|
+
* ```
|
|
3955
|
+
*/
|
|
3833
3956
|
export declare const InputSignature: ForwardRefExoticComponent<InputSignatureUnControlledProps<string> & RefAttributes<InputSignatureCustomHandle | undefined>>;
|
|
3834
3957
|
|
|
3958
|
+
/**
|
|
3959
|
+
* InputSignatureControlled component for capturing handwritten signatures.
|
|
3960
|
+
*
|
|
3961
|
+
* This component provides a canvas-based signature capture interface where
|
|
3962
|
+
* signature style (color, line width) is controlled externally. It's useful
|
|
3963
|
+
* for forms requiring user signatures.
|
|
3964
|
+
*
|
|
3965
|
+
* @example
|
|
3966
|
+
* ```tsx
|
|
3967
|
+
* <InputSignatureControlled
|
|
3968
|
+
* signatureStyle={{ color: '#000000', lineWidth: 2 }}
|
|
3969
|
+
* setSignatureStyles={(style) => console.log(style)}
|
|
3970
|
+
* onSignatureChange={(dataUrl) => setSignature(dataUrl)}
|
|
3971
|
+
* />
|
|
3972
|
+
* ```
|
|
3973
|
+
*/
|
|
3835
3974
|
export declare const InputSignatureControlled: ForwardRefExoticComponent<InputSignatureControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3836
3975
|
|
|
3837
3976
|
/**
|
|
@@ -4043,17 +4182,77 @@ export declare interface ISnackbarV2 extends Omit<ISnackbarStandAlone, 'onMouseE
|
|
|
4043
4182
|
|
|
4044
4183
|
declare type keyMoveType = number | ((previous: number, e?: KeyboardEvent) => number) | null;
|
|
4045
4184
|
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4185
|
+
/**
|
|
4186
|
+
* Main provider component for the Kubit component library.
|
|
4187
|
+
* Orchestrates all sub-providers (Utils, Styles, and GenericComponents) and provides
|
|
4188
|
+
* a single entry point for configuring the entire component library context.
|
|
4189
|
+
*
|
|
4190
|
+
* This provider wraps the application and supplies:
|
|
4191
|
+
* - Date manipulation and formatting utilities
|
|
4192
|
+
* - Theme and styling configuration
|
|
4193
|
+
* - Custom generic components (Link, Image)
|
|
4194
|
+
*
|
|
4195
|
+
* @param props - Configuration props for the provider
|
|
4196
|
+
* @param props.children - React children to be wrapped by the provider
|
|
4197
|
+
* @param props.genericComponentsProvider - Custom implementations of generic components (Link, Image).
|
|
4198
|
+
* Defaults to library's built-in components if not provided
|
|
4199
|
+
* @param props.utilsConfig - Optional configuration to override default utility functions
|
|
4200
|
+
* (date helpers, formatters, asset paths)
|
|
4201
|
+
*
|
|
4202
|
+
* @returns The provider component wrapping all child components
|
|
4203
|
+
*
|
|
4204
|
+
* @example
|
|
4205
|
+
* ```tsx
|
|
4206
|
+
* import { KubitProvider } from '@kubit/react-components';
|
|
4207
|
+
*
|
|
4208
|
+
* function App() {
|
|
4209
|
+
* return (
|
|
4210
|
+
* <KubitProvider
|
|
4211
|
+
* genericComponentsProvider={{
|
|
4212
|
+
* LINK: CustomLink,
|
|
4213
|
+
* IMAGE: CustomImage,
|
|
4214
|
+
* }}
|
|
4215
|
+
* >
|
|
4216
|
+
* <YourApp />
|
|
4217
|
+
* </KubitProvider>
|
|
4218
|
+
* );
|
|
4219
|
+
* }
|
|
4220
|
+
* ```
|
|
4221
|
+
*/
|
|
4222
|
+
export declare const KubitProvider: ({ children, genericComponentsProvider, utilsConfig, }: KubitProviderProps) => JSX.Element;
|
|
4223
|
+
|
|
4224
|
+
/**
|
|
4225
|
+
* Props for the KubitProvider component.
|
|
4226
|
+
* Provides configuration for the entire Kubit component library context.
|
|
4227
|
+
*/
|
|
4228
|
+
declare interface KubitProviderProps {
|
|
4229
|
+
/**
|
|
4230
|
+
* The React children to be wrapped by the provider.
|
|
4231
|
+
*/
|
|
4232
|
+
children?: React.ReactNode;
|
|
4233
|
+
/**
|
|
4234
|
+
* Custom generic components (like Link and Image) to be used throughout the application.
|
|
4235
|
+
* Defaults to the library's default generic components if not provided.
|
|
4236
|
+
*/
|
|
4237
|
+
genericComponentsProvider?: GenericComponentsType;
|
|
4238
|
+
/**
|
|
4239
|
+
* Configuration for utility functions like date helpers, formatting, and assets.
|
|
4240
|
+
* Allows overriding the default utility configurations.
|
|
4241
|
+
*/
|
|
4242
|
+
utilsConfig?: UtilsContextType;
|
|
4243
|
+
}
|
|
4244
|
+
|
|
4245
|
+
/**
|
|
4246
|
+
* LabelStandAlone component renders an accessible label element with optional required indicator.
|
|
4247
|
+
*
|
|
4248
|
+
* @component
|
|
4249
|
+
* @example
|
|
4250
|
+
* ```tsx
|
|
4251
|
+
* <LabelStandAlone inputId="email" required requiredSymbol="*">
|
|
4252
|
+
* Email Address
|
|
4253
|
+
* </LabelStandAlone>
|
|
4254
|
+
* ```
|
|
4255
|
+
*/
|
|
4057
4256
|
export declare const Label: ForwardRefExoticComponent<LabelStandAloneProps & RefAttributes<HTMLParagraphElement>>;
|
|
4058
4257
|
|
|
4059
4258
|
/**
|
|
@@ -4185,6 +4384,21 @@ export declare type LinkVariantStyles<Variant extends string> = LinkStylesProps
|
|
|
4185
4384
|
[key in Variant]?: LinkStylesProps;
|
|
4186
4385
|
};
|
|
4187
4386
|
|
|
4387
|
+
/**
|
|
4388
|
+
* ListOptions component for displaying a list of selectable options.
|
|
4389
|
+
*
|
|
4390
|
+
* This component renders a list container for options/items, commonly used
|
|
4391
|
+
* in dropdowns, select menus, or autocomplete interfaces. It manages styling
|
|
4392
|
+
* and provides a consistent container for option elements.
|
|
4393
|
+
*
|
|
4394
|
+
* @example
|
|
4395
|
+
* ```tsx
|
|
4396
|
+
* <ListOptions variant="default">
|
|
4397
|
+
* <Option>Option 1</Option>
|
|
4398
|
+
* <Option>Option 2</Option>
|
|
4399
|
+
* </ListOptions>
|
|
4400
|
+
* ```
|
|
4401
|
+
*/
|
|
4188
4402
|
export declare const ListOptions: ForwardRefExoticComponent<ListOptionsProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4189
4403
|
|
|
4190
4404
|
/**
|
|
@@ -4252,129 +4466,21 @@ export declare type ListOptionsVariantStyles<Variant extends string> = ListOptio
|
|
|
4252
4466
|
[key in Variant]: ListOptionsStyleProps;
|
|
4253
4467
|
};
|
|
4254
4468
|
|
|
4469
|
+
/**
|
|
4470
|
+
* Media query strings for targeting specific screen size ranges.
|
|
4471
|
+
* Built from the provided breakpoints configuration.
|
|
4472
|
+
*/
|
|
4255
4473
|
declare interface MediaQueries {
|
|
4474
|
+
/** Media query for mobile devices only (below md breakpoint) */
|
|
4256
4475
|
onlyMobile: string;
|
|
4476
|
+
/** Media query for tablets only (between md and lg breakpoints) */
|
|
4257
4477
|
onlyTablet: string;
|
|
4478
|
+
/** Media query for desktops (below xl breakpoint) */
|
|
4258
4479
|
onlyDesktop: string;
|
|
4480
|
+
/** Media query for large desktops (xl breakpoint and above) */
|
|
4259
4481
|
onlyLargeDesktop: string;
|
|
4260
4482
|
}
|
|
4261
4483
|
|
|
4262
|
-
export declare const Message: ForwardRefExoticComponent<MessageUnControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4263
|
-
|
|
4264
|
-
/**
|
|
4265
|
-
* Represents the type for the action button in the Message component.
|
|
4266
|
-
*/
|
|
4267
|
-
export declare type MessageActionButtonProps = Omit<ButtonProps, 'children' | 'size'> & {
|
|
4268
|
-
content?: React.ReactNode;
|
|
4269
|
-
size?: string;
|
|
4270
|
-
};
|
|
4271
|
-
|
|
4272
|
-
/**
|
|
4273
|
-
* Represents the type for the container as a link in the Message component.
|
|
4274
|
-
*/
|
|
4275
|
-
export declare interface MessageContainerAsLinkProps {
|
|
4276
|
-
onClick?: () => void;
|
|
4277
|
-
url?: string;
|
|
4278
|
-
target?: React.HTMLAttributeAnchorTarget;
|
|
4279
|
-
}
|
|
4280
|
-
|
|
4281
|
-
export declare const MessageControlled: ForwardRefExoticComponent<MessageProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4282
|
-
|
|
4283
|
-
declare type MessageCssClasses = ComponentSelected<ComponentsTypesComponents['MESSAGE']>;
|
|
4284
|
-
|
|
4285
|
-
/**
|
|
4286
|
-
* Represents the type for the extra action button in the Message component.
|
|
4287
|
-
*/
|
|
4288
|
-
export declare type MessageExtraActionButtonProps = Omit<ButtonProps, 'children'> & {
|
|
4289
|
-
content?: React.ReactNode;
|
|
4290
|
-
};
|
|
4291
|
-
|
|
4292
|
-
/**
|
|
4293
|
-
* Represents the type for the link in the Message component.
|
|
4294
|
-
*/
|
|
4295
|
-
export declare type MessageLinkProps = Omit<LinkProps, 'children'> & {
|
|
4296
|
-
content?: string;
|
|
4297
|
-
};
|
|
4298
|
-
|
|
4299
|
-
/**
|
|
4300
|
-
* Interface for the controlled Message component.
|
|
4301
|
-
* Extends the MessageStandAloneProps interface and adds a variant and additional CSS classes.
|
|
4302
|
-
*
|
|
4303
|
-
* @template Variant - The type of the variant for the Message.
|
|
4304
|
-
*/
|
|
4305
|
-
export declare interface MessageProps<Variant = undefined extends string ? unknown : string> extends Omit<MessageStandAloneProps, 'linkComponent'> {
|
|
4306
|
-
open: boolean;
|
|
4307
|
-
variant?: Variant;
|
|
4308
|
-
additionalClasses?: Partial<MessageCssClasses>;
|
|
4309
|
-
}
|
|
4310
|
-
|
|
4311
|
-
/**
|
|
4312
|
-
* Interface for the standalone Message component.
|
|
4313
|
-
* Includes properties for icons, buttons, links, tags, and CSS classes.
|
|
4314
|
-
*/
|
|
4315
|
-
export declare interface MessageStandAloneProps extends DataAttributes {
|
|
4316
|
-
linkComponent: GenericLinkType;
|
|
4317
|
-
messageContainerProps?: MessageContainerAsLinkProps;
|
|
4318
|
-
titleAndContentContainerProps?: MessageContainerAsLinkProps;
|
|
4319
|
-
titleAndContentRole?: AriaRole;
|
|
4320
|
-
infoIcon?: ElementOrIconProps;
|
|
4321
|
-
actionButton?: MessageActionButtonProps;
|
|
4322
|
-
extraActionButton?: MessageExtraActionButtonProps;
|
|
4323
|
-
content: CommonTextProps;
|
|
4324
|
-
inlineLink?: MessageLinkProps;
|
|
4325
|
-
title?: CommonTextProps;
|
|
4326
|
-
tag?: MessageTagProps;
|
|
4327
|
-
ariaMessageId?: string;
|
|
4328
|
-
closeIcon?: ElementOrIconProps;
|
|
4329
|
-
maxContentLength?: number;
|
|
4330
|
-
open: boolean;
|
|
4331
|
-
role?: React.AriaRole;
|
|
4332
|
-
id?: string;
|
|
4333
|
-
ariaLive?: AriaAttributes['aria-live'];
|
|
4334
|
-
links?: MessageLinkProps[];
|
|
4335
|
-
cssClasses?: MessageCssClasses;
|
|
4336
|
-
}
|
|
4337
|
-
|
|
4338
|
-
export declare interface MessageStyleProps extends CssLibPropsType {
|
|
4339
|
-
_container?: CssLibPropsType;
|
|
4340
|
-
_headerContainer?: CssLibPropsType;
|
|
4341
|
-
_headerContainerLargeMessage?: CssLibPropsType;
|
|
4342
|
-
_title?: CssLibPropsType;
|
|
4343
|
-
_titleContainer?: CssLibPropsType;
|
|
4344
|
-
_contentContainer?: CssLibPropsType;
|
|
4345
|
-
_contentContainerLargeMessage?: CssLibPropsType;
|
|
4346
|
-
_description?: CssLibPropsType;
|
|
4347
|
-
_infoIcon?: CssLibPropsType;
|
|
4348
|
-
_closeIcon?: CssLibPropsType;
|
|
4349
|
-
_buttonSectionContainer?: CssLibPropsType;
|
|
4350
|
-
_actionButtonContainer?: CssLibPropsType;
|
|
4351
|
-
_extraActionButtonContainer?: CssLibPropsType;
|
|
4352
|
-
_illustration?: CssLibPropsType;
|
|
4353
|
-
_linkContainer?: CssLibPropsType;
|
|
4354
|
-
_linksContainer?: CssLibPropsType;
|
|
4355
|
-
}
|
|
4356
|
-
|
|
4357
|
-
/**
|
|
4358
|
-
* Represents the type for the tag in the Message component.
|
|
4359
|
-
*/
|
|
4360
|
-
export declare type MessageTagProps = Omit<TagProps, 'children'> & {
|
|
4361
|
-
content: string;
|
|
4362
|
-
};
|
|
4363
|
-
|
|
4364
|
-
/**
|
|
4365
|
-
* Interface for the uncontrolled Message component.
|
|
4366
|
-
* Extends the MessageProps interface and omits specific properties.
|
|
4367
|
-
*
|
|
4368
|
-
* @template Variant - The type of the variant for the Message.
|
|
4369
|
-
*/
|
|
4370
|
-
export declare interface MessageUnControlledProps<Variant = undefined extends string ? unknown : string> extends Omit<MessageProps<Variant>, 'open'> {
|
|
4371
|
-
defaultOpen?: boolean;
|
|
4372
|
-
}
|
|
4373
|
-
|
|
4374
|
-
export declare type MessageVariantStyles<Variant extends string> = MessageStyleProps & {
|
|
4375
|
-
[key in Variant]: MessageStyleProps;
|
|
4376
|
-
};
|
|
4377
|
-
|
|
4378
4484
|
/**
|
|
4379
4485
|
* Options for middleware configuration in the popover
|
|
4380
4486
|
*/
|
|
@@ -4384,6 +4490,23 @@ declare interface MiddlewareOptions {
|
|
|
4384
4490
|
hideWhenDetached?: boolean;
|
|
4385
4491
|
}
|
|
4386
4492
|
|
|
4493
|
+
/**
|
|
4494
|
+
* ModalUnControlled component with internal state management.
|
|
4495
|
+
*
|
|
4496
|
+
* This component renders a modal that manages its own open/close state internally.
|
|
4497
|
+
* It automatically syncs with prop changes and handles keyboard interactions.
|
|
4498
|
+
* Useful when you don't need external control over the modal's visibility.
|
|
4499
|
+
*
|
|
4500
|
+
* @example
|
|
4501
|
+
* ```tsx
|
|
4502
|
+
* <ModalUnControlled
|
|
4503
|
+
* open={true}
|
|
4504
|
+
* onClose={() => console.log('closed')}
|
|
4505
|
+
* >
|
|
4506
|
+
* Modal content
|
|
4507
|
+
* </ModalUnControlled>
|
|
4508
|
+
* ```
|
|
4509
|
+
*/
|
|
4387
4510
|
export declare const Modal: ForwardRefExoticComponent<ModalUnControlledProps<string | undefined> & {
|
|
4388
4511
|
children?: ReactNode | undefined;
|
|
4389
4512
|
} & RefAttributes<HTMLDivElement>>;
|
|
@@ -4404,6 +4527,24 @@ export declare interface ModalContentContainerProps extends Pick<AriaAttributes,
|
|
|
4404
4527
|
role?: string;
|
|
4405
4528
|
}
|
|
4406
4529
|
|
|
4530
|
+
/**
|
|
4531
|
+
* ModalControlled component for displaying overlay dialogs.
|
|
4532
|
+
*
|
|
4533
|
+
* This component manages modal visibility externally through props. It provides
|
|
4534
|
+
* scroll detection, swipe-down gestures, focus management, and portal rendering.
|
|
4535
|
+
* Use this when you need full control over the modal's open/close state.
|
|
4536
|
+
*
|
|
4537
|
+
* @example
|
|
4538
|
+
* ```tsx
|
|
4539
|
+
* <ModalControlled
|
|
4540
|
+
* open={isOpen}
|
|
4541
|
+
* onClose={() => setIsOpen(false)}
|
|
4542
|
+
* variant="default"
|
|
4543
|
+
* >
|
|
4544
|
+
* Modal content here
|
|
4545
|
+
* </ModalControlled>
|
|
4546
|
+
* ```
|
|
4547
|
+
*/
|
|
4407
4548
|
export declare const ModalControlled: ForwardRefExoticComponent<ModalControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4408
4549
|
|
|
4409
4550
|
/**
|
|
@@ -4422,13 +4563,6 @@ export declare interface ModalControlledProps<Variant = undefined extends string
|
|
|
4422
4563
|
|
|
4423
4564
|
declare type ModalCssClasses = ComponentSelected<ComponentsTypesComponents['MODAL']>;
|
|
4424
4565
|
|
|
4425
|
-
/**
|
|
4426
|
-
* Represents the type for the footer in the Modal component.
|
|
4427
|
-
*/
|
|
4428
|
-
export declare type ModalFooterProps = Omit<NavBarProps, 'variant'> & {
|
|
4429
|
-
variant?: string;
|
|
4430
|
-
};
|
|
4431
|
-
|
|
4432
4566
|
declare type ModalOmittedProps = 'styles' | 'device' | 'contentHasScroll';
|
|
4433
4567
|
|
|
4434
4568
|
/**
|
|
@@ -4461,7 +4595,7 @@ export declare interface ModalStandAloneProps extends DataAttributes {
|
|
|
4461
4595
|
content?: ReactNode;
|
|
4462
4596
|
contentScrollArias?: Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'>;
|
|
4463
4597
|
contentHasScroll: boolean;
|
|
4464
|
-
footer?:
|
|
4598
|
+
footer?: ReactNode;
|
|
4465
4599
|
device: DeviceBreakpointsType;
|
|
4466
4600
|
onKeyDown?: KeyboardEventHandler<HTMLDivElement>;
|
|
4467
4601
|
onPopoverCloseInternally?: () => void;
|
|
@@ -4507,51 +4641,6 @@ export declare type ModalVariantStyles<Variant extends string> = ModalStyleProps
|
|
|
4507
4641
|
[key in Variant]: ModalStyleProps;
|
|
4508
4642
|
};
|
|
4509
4643
|
|
|
4510
|
-
/**
|
|
4511
|
-
* A component that renders a navigation bar, which can be used as a header, footer, or standalone navigation.
|
|
4512
|
-
* It supports custom CSS classes and forwards a ref to the inner navigation container.
|
|
4513
|
-
*
|
|
4514
|
-
* @param {INavBarControlled} props - The props for the navigation bar component.
|
|
4515
|
-
* @param {ForwardedRef<HTMLDivElement>} ref - The forwarded ref for the inner navigation container.
|
|
4516
|
-
* @returns {JSX.Element} The rendered navigation bar component.
|
|
4517
|
-
*/
|
|
4518
|
-
export declare const NabVar: ForwardRefExoticComponent<NavBarProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4519
|
-
|
|
4520
|
-
declare type NavBarCssClasses = ComponentSelected<ComponentsTypesComponents['NAVBAR']>;
|
|
4521
|
-
|
|
4522
|
-
/**
|
|
4523
|
-
* Interface for the NavBar component with a variant.
|
|
4524
|
-
* Extends the NavBarStandAloneProps interface and adds a variant and additional CSS classes.
|
|
4525
|
-
*
|
|
4526
|
-
* @template Variant - The type of the variant for the NavBar.
|
|
4527
|
-
*/
|
|
4528
|
-
export declare interface NavBarProps<Variant = undefined extends string ? unknown : string> extends NavBarStandAloneProps {
|
|
4529
|
-
variant?: Variant;
|
|
4530
|
-
additionalClasses?: Partial<NavBarCssClasses>;
|
|
4531
|
-
}
|
|
4532
|
-
|
|
4533
|
-
/**
|
|
4534
|
-
* Interface for the standalone NavBar component.
|
|
4535
|
-
* Includes properties for items, layout direction, focus order, and CSS classes.
|
|
4536
|
-
*/
|
|
4537
|
-
export declare interface NavBarStandAloneProps extends DataAttributes {
|
|
4538
|
-
leftItems?: React.ReactNode[];
|
|
4539
|
-
centerItems?: React.ReactNode[];
|
|
4540
|
-
rightItems?: React.ReactNode[];
|
|
4541
|
-
component?: 'header' | 'footer' | 'nav';
|
|
4542
|
-
direction?: 'horizontal' | 'vertical';
|
|
4543
|
-
focusOrder?: ('left' | 'center' | 'right')[];
|
|
4544
|
-
cssClasses?: NavBarCssClasses;
|
|
4545
|
-
}
|
|
4546
|
-
|
|
4547
|
-
export declare interface NavBarStyleProps extends CssLibPropsType {
|
|
4548
|
-
_itemContainer?: CssLibPropsType;
|
|
4549
|
-
}
|
|
4550
|
-
|
|
4551
|
-
export declare type NavBarVariantStyles<Variant extends string> = NavBarStyleProps & {
|
|
4552
|
-
[key in Variant]: NavBarStyleProps;
|
|
4553
|
-
};
|
|
4554
|
-
|
|
4555
4644
|
declare type NonVariablesKeys<T> = {
|
|
4556
4645
|
[K in keyof T]: K extends `$${string}` ? never : K;
|
|
4557
4646
|
}[keyof T];
|
|
@@ -4560,6 +4649,24 @@ declare type NonVariablesKeys_2<T> = {
|
|
|
4560
4649
|
[K in keyof T]: K extends `$${string}` ? never : K;
|
|
4561
4650
|
}[keyof T];
|
|
4562
4651
|
|
|
4652
|
+
/**
|
|
4653
|
+
* Option component for rendering selectable list items.
|
|
4654
|
+
*
|
|
4655
|
+
* This component represents a single option within a list, dropdown, or menu.
|
|
4656
|
+
* It manages focus states and supports custom variants for flexible styling.
|
|
4657
|
+
* Useful for building accessible select menus, autocomplete lists, or navigation options.
|
|
4658
|
+
*
|
|
4659
|
+
* Accepts a generic type parameter `<Variant extends string>` for custom variant values.
|
|
4660
|
+
*
|
|
4661
|
+
* @example
|
|
4662
|
+
* ```tsx
|
|
4663
|
+
* <Option value="option1" variant="default">Option 1</Option>
|
|
4664
|
+
*
|
|
4665
|
+
* // With custom variant:
|
|
4666
|
+
* type MyVariant = "primary" | "secondary";
|
|
4667
|
+
* <Option<MyVariant> variant="primary" value="item">Primary Option</Option>
|
|
4668
|
+
* ```
|
|
4669
|
+
*/
|
|
4563
4670
|
declare const Option_2: ForwardRefExoticComponent<OptionProps<string> & RefAttributes<HTMLElement>>;
|
|
4564
4671
|
export { Option_2 as Option }
|
|
4565
4672
|
|
|
@@ -4627,6 +4734,23 @@ export declare type OptionVariantStyles<Variant extends string> = OptionStylePro
|
|
|
4627
4734
|
[key in Variant]: OptionStyleProps;
|
|
4628
4735
|
};
|
|
4629
4736
|
|
|
4737
|
+
/**
|
|
4738
|
+
* PageControl component for pagination/slide navigation indicators.
|
|
4739
|
+
*
|
|
4740
|
+
* This component displays navigation dots or bullets with arrow controls for
|
|
4741
|
+
* paginated content like carousels. It handles position tracking, visibility
|
|
4742
|
+
* of dots, and direction-based navigation.
|
|
4743
|
+
*
|
|
4744
|
+
* @example
|
|
4745
|
+
* ```tsx
|
|
4746
|
+
* <PageControl
|
|
4747
|
+
* pages={10}
|
|
4748
|
+
* currentPosition={3}
|
|
4749
|
+
* onPageChange={(page) => console.log(page)}
|
|
4750
|
+
* isBullet
|
|
4751
|
+
* />
|
|
4752
|
+
* ```
|
|
4753
|
+
*/
|
|
4630
4754
|
export declare const PageControl: ForwardRefExoticComponent<PageControlProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4631
4755
|
|
|
4632
4756
|
/**
|
|
@@ -4694,6 +4818,26 @@ export declare type PageControlVariantStyles<Variant extends string> = PageContr
|
|
|
4694
4818
|
[key in Variant]: PageControlStyleProps;
|
|
4695
4819
|
};
|
|
4696
4820
|
|
|
4821
|
+
/**
|
|
4822
|
+
* Pagination component for navigating through multiple pages.
|
|
4823
|
+
*
|
|
4824
|
+
* This component renders a pagination control with page numbers and navigation buttons.
|
|
4825
|
+
* It automatically adjusts the visible page numbers based on screen size and configuration.
|
|
4826
|
+
* Useful for implementing page navigation in lists, tables, or content galleries.
|
|
4827
|
+
*
|
|
4828
|
+
* Accepts a generic type parameter `<Variant extends string>` for custom variant styling.
|
|
4829
|
+
*
|
|
4830
|
+
* @example
|
|
4831
|
+
* ```tsx
|
|
4832
|
+
* <Pagination
|
|
4833
|
+
* variant="default"
|
|
4834
|
+
* currentStep={5}
|
|
4835
|
+
* maxStepsNumber={100}
|
|
4836
|
+
* maxCountersNumber={7}
|
|
4837
|
+
* onStepChange={handlePageChange}
|
|
4838
|
+
* />
|
|
4839
|
+
* ```
|
|
4840
|
+
*/
|
|
4697
4841
|
export declare const Pagination: ForwardRefExoticComponent<PaginationProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4698
4842
|
|
|
4699
4843
|
/**
|
|
@@ -4792,6 +4936,24 @@ export declare interface PopoverStylePropsV2 extends CssLibPropsType {
|
|
|
4792
4936
|
|
|
4793
4937
|
declare type PositionType = 'bottom' | 'bottom-center' | 'bottom-center-fixed' | 'bottom-fixed' | 'bottom-gap-right' | 'bottom-left' | 'bottom-left-fit-content' | 'bottom-right' | 'bottom-right-fit-content' | 'center' | 'left' | 'left-bottom-fixed' | 'left-fixed' | 'right' | 'right-fixed' | 'top' | 'top-center' | 'top-center-fixed' | 'top-left' | 'top-right' | 'without';
|
|
4794
4938
|
|
|
4939
|
+
/**
|
|
4940
|
+
* ProgressBar component for displaying progress indicators.
|
|
4941
|
+
*
|
|
4942
|
+
* This component visualizes completion progress with customizable variants and sizes.
|
|
4943
|
+
* It displays a filled bar representing the percentage of progress completed.
|
|
4944
|
+
* Useful for showing loading states, task completion, or any measurable progress.
|
|
4945
|
+
*
|
|
4946
|
+
* Accepts generic type parameters `<Variant, Size>` for custom styling values.
|
|
4947
|
+
*
|
|
4948
|
+
* @example
|
|
4949
|
+
* ```tsx
|
|
4950
|
+
* <ProgressBar variant="primary" size="md" percentProgressCompleted={60} />
|
|
4951
|
+
*
|
|
4952
|
+
* // With custom types:
|
|
4953
|
+
* type MyVariant = "success" | "warning";
|
|
4954
|
+
* <ProgressBar<MyVariant> variant="success" percentProgressCompleted={100} />
|
|
4955
|
+
* ```
|
|
4956
|
+
*/
|
|
4795
4957
|
export declare const ProgressBar: ForwardRefExoticComponent<ProgressBarProps<string | undefined, unknown> & RefAttributes<HTMLDivElement>>;
|
|
4796
4958
|
|
|
4797
4959
|
/**
|
|
@@ -4828,11 +4990,6 @@ export declare interface ProgressBarStandAloneProps extends DataAttributes {
|
|
|
4828
4990
|
cssSizeClasses?: ProgressBarCssClasses;
|
|
4829
4991
|
barAriaLabel?: string;
|
|
4830
4992
|
progressCompleted: number;
|
|
4831
|
-
onChange?: (value: number) => void;
|
|
4832
|
-
onDragStart?: () => void;
|
|
4833
|
-
onDragEnd?: () => void;
|
|
4834
|
-
tooltip?: SliderTooltipProps;
|
|
4835
|
-
useAsSlider?: boolean;
|
|
4836
4993
|
progressAnimation?: {
|
|
4837
4994
|
duration?: string;
|
|
4838
4995
|
timingFunction?: string;
|
|
@@ -4854,6 +5011,22 @@ export declare type ProgressBarVariantStyles<Variant extends string> = {
|
|
|
4854
5011
|
|
|
4855
5012
|
declare type propsToOmit = 'styles' | 'filled' | 'focused' | 'inputBaseId' | 'labelId';
|
|
4856
5013
|
|
|
5014
|
+
/**
|
|
5015
|
+
* RadioButton component for single selection from multiple options.
|
|
5016
|
+
*
|
|
5017
|
+
* This component renders a styled radio input for use in forms and option groups.
|
|
5018
|
+
* It manages checked, disabled, and error states with appropriate visual feedback.
|
|
5019
|
+
*
|
|
5020
|
+
* @example
|
|
5021
|
+
* ```tsx
|
|
5022
|
+
* <RadioButton
|
|
5023
|
+
* name="option"
|
|
5024
|
+
* value="1"
|
|
5025
|
+
* checked={selectedValue === "1"}
|
|
5026
|
+
* onChange={(e) => setSelectedValue(e.target.value)}
|
|
5027
|
+
* />
|
|
5028
|
+
* ```
|
|
5029
|
+
*/
|
|
4857
5030
|
export declare const RadioButton: ({ additionalClasses, checked, cssClasses: propsStyles, disabled, error, variant, ...props }: RadioButtonProps) => JSX.Element;
|
|
4858
5031
|
|
|
4859
5032
|
/**
|
|
@@ -4881,6 +5054,21 @@ export declare interface RadioButtonProps<Variant = undefined extends string ? u
|
|
|
4881
5054
|
additionalClasses?: Partial<RadioButtonCssClasses>;
|
|
4882
5055
|
}
|
|
4883
5056
|
|
|
5057
|
+
/**
|
|
5058
|
+
* Standalone radio button component for rendering selectable radio inputs.
|
|
5059
|
+
*
|
|
5060
|
+
* This component renders a radio button with label, optional legend, error message,
|
|
5061
|
+
* and custom icon states. It handles accessibility attributes and visual states.
|
|
5062
|
+
*
|
|
5063
|
+
* @example
|
|
5064
|
+
* ```tsx
|
|
5065
|
+
* <RadioButtonStandAlone
|
|
5066
|
+
* label={{ content: "Option A" }}
|
|
5067
|
+
* checked={true}
|
|
5068
|
+
* onChange={() => {}}
|
|
5069
|
+
* />
|
|
5070
|
+
* ```
|
|
5071
|
+
*/
|
|
4884
5072
|
export declare const RadioButtonStandAlone: ({ altVariant, checked, cssClasses, disabled, error, errorAriaLiveType, errorIcon, errorMessage, id, label, lastChild, name, onBlur, onChange, screenReaderId, state, subTitle, tabIndex, value, ...props }: RadioButtonStandAloneProps) => JSX.Element;
|
|
4885
5073
|
|
|
4886
5074
|
/**
|
|
@@ -4944,16 +5132,24 @@ declare interface ScreenReaderOnlyProps extends DataAttributes {
|
|
|
4944
5132
|
role?: React.AriaRole;
|
|
4945
5133
|
}
|
|
4946
5134
|
|
|
4947
|
-
export declare const SelectorBoxFile: ForwardRefExoticComponent<SelectorBoxFileProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4948
|
-
|
|
4949
5135
|
/**
|
|
4950
|
-
*
|
|
5136
|
+
* SelectorBoxFile component for file upload with drag-and-drop support.
|
|
5137
|
+
*
|
|
5138
|
+
* This component provides a file selection interface with validation for file type
|
|
5139
|
+
* and size, upload progress display, error handling, and visual feedback states
|
|
5140
|
+
* (loading, success, error). It manages internal state for file selection and focus.
|
|
5141
|
+
*
|
|
5142
|
+
* @example
|
|
5143
|
+
* ```tsx
|
|
5144
|
+
* <SelectorBoxFile
|
|
5145
|
+
* accept="image/*"
|
|
5146
|
+
* maxSize={5000000}
|
|
5147
|
+
* onChange={(files) => console.log(files)}
|
|
5148
|
+
* onSizeError={(file) => alert('File too large')}
|
|
5149
|
+
* />
|
|
5150
|
+
* ```
|
|
4951
5151
|
*/
|
|
4952
|
-
export declare
|
|
4953
|
-
content: string;
|
|
4954
|
-
variant?: string;
|
|
4955
|
-
size?: string;
|
|
4956
|
-
};
|
|
5152
|
+
export declare const SelectorBoxFile: ForwardRefExoticComponent<SelectorBoxFileProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4957
5153
|
|
|
4958
5154
|
/**
|
|
4959
5155
|
* Represents the mapping of states to content in the SelectorBoxFile component.
|
|
@@ -4981,6 +5177,8 @@ export declare interface SelectorBoxFileProps<Variant = undefined extends string
|
|
|
4981
5177
|
success?: boolean;
|
|
4982
5178
|
error?: boolean;
|
|
4983
5179
|
disabled?: boolean;
|
|
5180
|
+
errorMaxSizeMessage?: CommonTextProps;
|
|
5181
|
+
errorFileExtensionMessage?: CommonTextProps;
|
|
4984
5182
|
percentage?: number;
|
|
4985
5183
|
variant?: Variant;
|
|
4986
5184
|
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
@@ -4995,16 +5193,8 @@ export declare interface SelectorBoxFileProps<Variant = undefined extends string
|
|
|
4995
5193
|
*/
|
|
4996
5194
|
export declare interface SelectorBoxFileStandAloneProps extends DataAttributes {
|
|
4997
5195
|
state: SelectorBoxFileStateType;
|
|
4998
|
-
title?: CommonTextProps;
|
|
4999
|
-
subtitle?: CommonTextProps;
|
|
5000
|
-
tooltipIcon?: ElementOrIconProps;
|
|
5001
|
-
tooltip?: SelectorBoxFileTooltipProps;
|
|
5002
5196
|
containerBoxStateContent: SelectorBoxFileContainerBoxStateContentProps;
|
|
5003
5197
|
filename?: string;
|
|
5004
|
-
errorMessageIcon?: ElementOrIconProps;
|
|
5005
|
-
errorMessage?: CommonTextProps;
|
|
5006
|
-
errorMaxSizeMessage?: CommonTextProps;
|
|
5007
|
-
errorFileExtensionMessage?: CommonTextProps;
|
|
5008
5198
|
focus: boolean;
|
|
5009
5199
|
onFocus: React.FocusEventHandler<HTMLInputElement>;
|
|
5010
5200
|
onBlur: React.FocusEventHandler<HTMLInputElement>;
|
|
@@ -5015,8 +5205,6 @@ export declare interface SelectorBoxFileStandAloneProps extends DataAttributes {
|
|
|
5015
5205
|
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
5016
5206
|
onClick?: React.MouseEventHandler<HTMLInputElement>;
|
|
5017
5207
|
onAnimationCompleted?: () => void;
|
|
5018
|
-
description?: CommonTextProps;
|
|
5019
|
-
button?: SelectorBoxFileButtonProps;
|
|
5020
5208
|
maxSize?: number;
|
|
5021
5209
|
fileExtension?: string[];
|
|
5022
5210
|
loader?: React.ReactNode;
|
|
@@ -5027,19 +5215,7 @@ export declare interface SelectorBoxFileStandAloneProps extends DataAttributes {
|
|
|
5027
5215
|
declare type SelectorBoxFileStateType = Extract<StateType, 'default' | 'loading' | 'success' | 'error' | 'disabled'>;
|
|
5028
5216
|
|
|
5029
5217
|
export declare interface SelectorBoxFileStyleProps extends CssLibPropsType {
|
|
5030
|
-
_actionDescriptionContainer?: CssLibPropsType;
|
|
5031
5218
|
_header?: CssLibPropsType;
|
|
5032
|
-
_titleSubtitleContainer?: CssLibPropsType;
|
|
5033
|
-
_title?: CssLibPropsType;
|
|
5034
|
-
_subtitle?: CssLibPropsType;
|
|
5035
|
-
_subtitleTooltipContainer?: CssLibPropsType;
|
|
5036
|
-
_descriptionContainer?: CssLibPropsType;
|
|
5037
|
-
_description?: CssLibPropsType;
|
|
5038
|
-
_tooltipIconContainer?: CssLibPropsType;
|
|
5039
|
-
_tooltipIcon?: CssLibPropsType;
|
|
5040
|
-
_errorMessageContainer?: CssLibPropsType;
|
|
5041
|
-
_errorMessageIcon?: CssLibPropsType;
|
|
5042
|
-
_errorMessage?: CssLibPropsType;
|
|
5043
5219
|
_animationContainer?: CssLibPropsType;
|
|
5044
5220
|
_topAnimationContainer?: CssLibPropsType;
|
|
5045
5221
|
_leftAnimationContainer?: CssLibPropsType;
|
|
@@ -5057,17 +5233,24 @@ export declare interface SelectorBoxFileStyleProps extends CssLibPropsType {
|
|
|
5057
5233
|
_containerActionContainer?: CssLibPropsType;
|
|
5058
5234
|
}
|
|
5059
5235
|
|
|
5060
|
-
/**
|
|
5061
|
-
* Represents the type for the tooltip in the SelectorBoxFile component.
|
|
5062
|
-
*/
|
|
5063
|
-
export declare type SelectorBoxFileTooltipProps = Omit<TooltipUnControlledProps, 'children' | 'variant'> & {
|
|
5064
|
-
variant?: string;
|
|
5065
|
-
};
|
|
5066
|
-
|
|
5067
5236
|
export declare type SelectorBoxFileVariantStyles<Variant extends string> = SelectorBoxFileStyleProps & {
|
|
5068
5237
|
[key in Variant]?: SelectorBoxFileStyleProps;
|
|
5069
5238
|
};
|
|
5070
5239
|
|
|
5240
|
+
/**
|
|
5241
|
+
* Skeleton component for displaying loading placeholders.
|
|
5242
|
+
*
|
|
5243
|
+
* This component renders animated placeholder shapes while content is loading.
|
|
5244
|
+
* It supports different shapes (rectangle, circle, text) and variants for styling.
|
|
5245
|
+
* Useful for improving perceived performance by showing content structure during loading.
|
|
5246
|
+
*
|
|
5247
|
+
* @example
|
|
5248
|
+
* ```tsx
|
|
5249
|
+
* <Skeleton variant="rectangular" shapeVariant="image" />
|
|
5250
|
+
* <Skeleton variant="text" shapeVariant="heading" />
|
|
5251
|
+
* <Skeleton variant="circular" shapeVariant="avatar" />
|
|
5252
|
+
* ```
|
|
5253
|
+
*/
|
|
5071
5254
|
export declare const Skeleton: ForwardRefExoticComponent<SkeletonProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5072
5255
|
|
|
5073
5256
|
/**
|
|
@@ -5112,6 +5295,31 @@ export declare type SkeletonVariantStyles<Variant extends string> = CssLibPropsT
|
|
|
5112
5295
|
[key in Variant]?: CssLibPropsType;
|
|
5113
5296
|
};
|
|
5114
5297
|
|
|
5298
|
+
/**
|
|
5299
|
+
* Slider component for selecting values within a range.
|
|
5300
|
+
*
|
|
5301
|
+
* This component provides a draggable slider control for selecting single values
|
|
5302
|
+
* or value ranges. It supports keyboard navigation, custom min/max/step values,
|
|
5303
|
+
* tooltips, and range selection. Handles both mouse and touch interactions.
|
|
5304
|
+
*
|
|
5305
|
+
* @example
|
|
5306
|
+
* ```tsx
|
|
5307
|
+
* <Slider
|
|
5308
|
+
* min={0}
|
|
5309
|
+
* max={100}
|
|
5310
|
+
* value={50}
|
|
5311
|
+
* onChange={(value) => console.log(value)}
|
|
5312
|
+
* />
|
|
5313
|
+
*
|
|
5314
|
+
* // Range slider:
|
|
5315
|
+
* <Slider
|
|
5316
|
+
* min={0}
|
|
5317
|
+
* max={100}
|
|
5318
|
+
* rangeValue={[25, 75]}
|
|
5319
|
+
* onChange={(range) => console.log(range)}
|
|
5320
|
+
* />
|
|
5321
|
+
* ```
|
|
5322
|
+
*/
|
|
5115
5323
|
export declare const Slider: ForwardRefExoticComponent<SliderProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5116
5324
|
|
|
5117
5325
|
/**
|
|
@@ -5246,6 +5454,24 @@ export declare type SnackbarV2Popover = Omit<IPopover, 'children' | 'open'>;
|
|
|
5246
5454
|
|
|
5247
5455
|
declare type StateType = 'active' | 'active_filled' | 'active_filled_hide' | 'completed' | 'default' | 'default_selected' | 'default_unselected' | 'disabled' | 'disabled_empty' | 'disabled_filled' | 'disabled_filled_hide' | 'disabled_selected' | 'disabled_unselected' | 'error' | 'error_empty' | 'error_filled' | 'error_filled_hide' | 'empty' | 'filled' | 'filled_hide' | 'focus' | 'hover' | 'loading' | 'multiple_selected' | 'multiple_selected_hover' | 'prefilled' | 'pressed' | 'selected' | 'selected_hover' | 'success' | 'warning' | 'visited' | 'inactive' | 'filling' | 'blocked_by_system' | 'error_unselected' | 'error_selected' | 'current' | 'current_day' | 'start_date_range' | 'end_date_range' | 'midle_date_range' | 'pending' | 'unselected';
|
|
5248
5456
|
|
|
5457
|
+
/**
|
|
5458
|
+
* StepperNumber component for incrementing/decrementing numeric values.
|
|
5459
|
+
*
|
|
5460
|
+
* This component provides plus/minus buttons for adjusting numeric values with
|
|
5461
|
+
* configurable step intervals. Supports both horizontal and vertical orientations.
|
|
5462
|
+
*
|
|
5463
|
+
* @example
|
|
5464
|
+
* ```tsx
|
|
5465
|
+
* <StepperNumber
|
|
5466
|
+
* value={5}
|
|
5467
|
+
* min={0}
|
|
5468
|
+
* max={10}
|
|
5469
|
+
* step={1}
|
|
5470
|
+
* onChange={(newValue) => console.log(newValue)}
|
|
5471
|
+
* orientation="horizontal"
|
|
5472
|
+
* />
|
|
5473
|
+
* ```
|
|
5474
|
+
*/
|
|
5249
5475
|
export declare const StepperNumber: ForwardRefExoticComponent<StepperNumberProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5250
5476
|
|
|
5251
5477
|
declare type StepperNumberCssClasses = ComponentSelected<ComponentsTypesComponents['STEPPER_NUMBER']>;
|
|
@@ -5340,55 +5566,175 @@ export declare interface StepStateProps {
|
|
|
5340
5566
|
['aria-label']?: string;
|
|
5341
5567
|
}
|
|
5342
5568
|
|
|
5569
|
+
/**
|
|
5570
|
+
* React Context for styles and theming.
|
|
5571
|
+
* Provides access to styling utilities, theme management, and responsive breakpoints.
|
|
5572
|
+
*/
|
|
5343
5573
|
export declare const StylesContext: Context<StylesContextProps | undefined>;
|
|
5344
5574
|
|
|
5575
|
+
/**
|
|
5576
|
+
* Context value provided by StylesProvider.
|
|
5577
|
+
* Contains all styling-related data and utilities available to child components.
|
|
5578
|
+
*/
|
|
5345
5579
|
declare interface StylesContextProps {
|
|
5580
|
+
/** Current responsive breakpoints configuration */
|
|
5346
5581
|
breakpoints: Breakpoints;
|
|
5582
|
+
/** Array of CSS class names or null */
|
|
5347
5583
|
classes: string[] | null;
|
|
5584
|
+
/** Pre-built media query strings for responsive design */
|
|
5348
5585
|
mediaQueries: MediaQueries;
|
|
5586
|
+
/** Map of available icons */
|
|
5349
5587
|
icons: Record<string, string>;
|
|
5588
|
+
/** Map of available illustrations */
|
|
5350
5589
|
illustrations: Record<string, string>;
|
|
5590
|
+
/** Currently active theme name, or null if no theme is selected */
|
|
5351
5591
|
currentTheme: string | null;
|
|
5592
|
+
/** Function to retrieve styles for a specific component and variant */
|
|
5352
5593
|
getComponentStyles: RecoverComponentStyles;
|
|
5594
|
+
/** Function to change the active theme */
|
|
5353
5595
|
changeTheme: (themeName: string) => void;
|
|
5596
|
+
/** Array of CSS class names for the current theme */
|
|
5354
5597
|
themeClassNames: string[];
|
|
5598
|
+
/** Map of all available themes */
|
|
5355
5599
|
themes: Record<string, string>;
|
|
5600
|
+
/** Map of CSS custom properties (variables) for the current theme */
|
|
5356
5601
|
themeVariables: Record<string, string>;
|
|
5357
5602
|
}
|
|
5358
5603
|
|
|
5359
5604
|
/**
|
|
5360
|
-
* Provider component
|
|
5605
|
+
* Provider component for styles, theming, and responsive design utilities.
|
|
5606
|
+
* Manages theme selection, CSS class generation, and provides styling context to child components.
|
|
5607
|
+
*
|
|
5608
|
+
* Features:
|
|
5609
|
+
* - Theme management with dynamic theme switching
|
|
5610
|
+
* - Responsive breakpoints and media queries
|
|
5611
|
+
* - Icon and illustration asset management
|
|
5612
|
+
* - Component-specific style retrieval
|
|
5613
|
+
* - CSS-in-JS support via Bernova provider
|
|
5614
|
+
*
|
|
5615
|
+
* @param props - Configuration props for the styles provider
|
|
5616
|
+
* @param props.children - React children to be wrapped by the provider
|
|
5617
|
+
* @param props.breakpoints - Custom responsive breakpoints (defaults to standard breakpoints if not provided)
|
|
5618
|
+
* @param props.icons - Map of icon names to URLs or base64 strings
|
|
5619
|
+
* @param props.illustrations - Map of illustration names to URLs or base64 strings
|
|
5620
|
+
* @param props.themeSelected - Initial theme to apply
|
|
5621
|
+
* @param props.bernovaProvider - Custom Bernova provider instance for advanced styling control
|
|
5622
|
+
* @param props.linkId - ID for the style link element in the DOM (default: 'kb-styled-provider')
|
|
5623
|
+
* @param props.jsInCss - Whether to inject CSS directly into JavaScript (default: true)
|
|
5624
|
+
*
|
|
5625
|
+
* @returns The styled provider component wrapping all child components
|
|
5626
|
+
*
|
|
5627
|
+
* @example
|
|
5628
|
+
* ```tsx
|
|
5629
|
+
* <StylesProvider
|
|
5630
|
+
* themeSelected="dark"
|
|
5631
|
+
* breakpoints={{ sm: 576, md: 768, lg: 992, xl: 1200 }}
|
|
5632
|
+
* icons={{ home: '/icons/home.svg' }}
|
|
5633
|
+
* >
|
|
5634
|
+
* <App />
|
|
5635
|
+
* </StylesProvider>
|
|
5636
|
+
* ```
|
|
5361
5637
|
*/
|
|
5362
5638
|
export declare const StylesProvider: FC<StylesProviderProps>;
|
|
5363
5639
|
|
|
5640
|
+
/**
|
|
5641
|
+
* Props for the StylesProvider component.
|
|
5642
|
+
* Configures the styling system including themes, breakpoints, and assets.
|
|
5643
|
+
*/
|
|
5364
5644
|
declare interface StylesProviderProps {
|
|
5645
|
+
/** The React children to be wrapped by the provider */
|
|
5365
5646
|
children: React.ReactNode;
|
|
5647
|
+
/** Custom breakpoints for responsive design. If not provided, uses default breakpoints */
|
|
5366
5648
|
breakpoints?: Breakpoints;
|
|
5649
|
+
/** Map of icon names to their corresponding URLs or base64 strings */
|
|
5367
5650
|
icons?: Record<string, string>;
|
|
5651
|
+
/** Map of illustration names to their corresponding URLs or base64 strings */
|
|
5368
5652
|
illustrations?: Record<string, string>;
|
|
5653
|
+
/** The initial theme to be applied. If not provided, uses the provider's default theme */
|
|
5369
5654
|
themeSelected?: string;
|
|
5655
|
+
/** Custom Bernova provider instance for advanced styling control */
|
|
5370
5656
|
bernovaProvider?: typeof Provider;
|
|
5657
|
+
/** ID for the style link element in the DOM. Default: 'kb-styled-provider' */
|
|
5371
5658
|
linkId?: string;
|
|
5659
|
+
/** Whether to inject CSS directly into JavaScript. Default: true */
|
|
5372
5660
|
jsInCss?: boolean;
|
|
5373
5661
|
}
|
|
5374
5662
|
|
|
5663
|
+
/**
|
|
5664
|
+
* Table component with automatic sticky column calculations and scroll shadow effects.
|
|
5665
|
+
*
|
|
5666
|
+
* This component wraps TableStandAlone and adds automatic sticky positioning for left
|
|
5667
|
+
* and right columns, scroll shadow effects, and responsive behavior. It manages scroll
|
|
5668
|
+
* state and column positioning internally.
|
|
5669
|
+
*
|
|
5670
|
+
* @example
|
|
5671
|
+
* ```tsx
|
|
5672
|
+
* <Table
|
|
5673
|
+
* variant="primary"
|
|
5674
|
+
* autoLeftStickyCalc={true}
|
|
5675
|
+
* autoRightStickyCalc={true}
|
|
5676
|
+
* >
|
|
5677
|
+
* <thead>...</thead>
|
|
5678
|
+
* <tbody>...</tbody>
|
|
5679
|
+
* </Table>
|
|
5680
|
+
* ```
|
|
5681
|
+
*/
|
|
5375
5682
|
export declare const Table: ForwardRefExoticComponent<TableProps & {
|
|
5376
5683
|
children?: ReactNode | undefined;
|
|
5377
5684
|
} & RefAttributes<HTMLDivElement>>;
|
|
5378
5685
|
|
|
5686
|
+
/**
|
|
5687
|
+
* TableBody component for rendering table body sections.
|
|
5688
|
+
*
|
|
5689
|
+
* This component wraps the tbody element with consistent styling and variant support.
|
|
5690
|
+
* Use it as a container for TableRow components within a Table.
|
|
5691
|
+
*
|
|
5692
|
+
* @example
|
|
5693
|
+
* ```tsx
|
|
5694
|
+
* <Table>
|
|
5695
|
+
* <TableBody variant="default">
|
|
5696
|
+
* <TableRow>...</TableRow>
|
|
5697
|
+
* </TableBody>
|
|
5698
|
+
* </Table>
|
|
5699
|
+
* ```
|
|
5700
|
+
*/
|
|
5701
|
+
export declare const TableBody: ForwardRefExoticComponent<TableBodyProps & {
|
|
5702
|
+
children?: ReactNode | undefined;
|
|
5703
|
+
} & RefAttributes<HTMLTableSectionElement>>;
|
|
5704
|
+
|
|
5379
5705
|
declare type TableBodyCssClasses = ComponentSelected<ComponentsTypesComponents['TABLE_BODY']>;
|
|
5380
5706
|
|
|
5381
|
-
declare interface TableBodyProps extends TableBodyStandAloneProps {
|
|
5707
|
+
export declare interface TableBodyProps extends TableBodyStandAloneProps {
|
|
5382
5708
|
variant?: string;
|
|
5383
5709
|
additionalClasses?: Partial<TableBodyCssClasses>;
|
|
5384
5710
|
}
|
|
5385
5711
|
|
|
5386
|
-
declare interface TableBodyStandAloneProps extends DataAttributes {
|
|
5712
|
+
export declare interface TableBodyStandAloneProps extends DataAttributes {
|
|
5387
5713
|
cssClasses?: TableBodyCssClasses;
|
|
5388
5714
|
id?: string;
|
|
5389
5715
|
component?: string | React.ComponentType<any>;
|
|
5390
5716
|
}
|
|
5391
5717
|
|
|
5718
|
+
export declare type TableBodyVariantStyles<Variant extends string> = CssLibPropsType & {
|
|
5719
|
+
[key in Variant]: CssLibPropsType;
|
|
5720
|
+
};
|
|
5721
|
+
|
|
5722
|
+
/**
|
|
5723
|
+
* TableCaption component for providing titles or descriptions for tables.
|
|
5724
|
+
*
|
|
5725
|
+
* This component renders a caption element for tables, helping users understand
|
|
5726
|
+
* the table's purpose or contents. Important for accessibility and SEO.
|
|
5727
|
+
*
|
|
5728
|
+
* @example
|
|
5729
|
+
* ```tsx
|
|
5730
|
+
* <Table>
|
|
5731
|
+
* <TableCaption variant="default">
|
|
5732
|
+
* Sales Report for Q4 2024
|
|
5733
|
+
* </TableCaption>
|
|
5734
|
+
* <TableHead>...</TableHead>
|
|
5735
|
+
* </Table>
|
|
5736
|
+
* ```
|
|
5737
|
+
*/
|
|
5392
5738
|
export declare const TableCaption: ForwardRefExoticComponent<TableCaptionProps & {
|
|
5393
5739
|
children?: ReactNode | undefined;
|
|
5394
5740
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5411,6 +5757,20 @@ export declare type TableCaptionVariantStyles<Variant extends string> = CssLibPr
|
|
|
5411
5757
|
[key in Variant]: CssLibPropsType;
|
|
5412
5758
|
};
|
|
5413
5759
|
|
|
5760
|
+
/**
|
|
5761
|
+
* TableCell component for rendering individual table cells.
|
|
5762
|
+
*
|
|
5763
|
+
* This component wraps td or th elements with consistent styling and variant support.
|
|
5764
|
+
* Use it within TableRow components to display data or headers in a table.
|
|
5765
|
+
*
|
|
5766
|
+
* @example
|
|
5767
|
+
* ```tsx
|
|
5768
|
+
* <TableRow>
|
|
5769
|
+
* <TableCell variant="default">Cell content</TableCell>
|
|
5770
|
+
* <TableCell>Another cell</TableCell>
|
|
5771
|
+
* </TableRow>
|
|
5772
|
+
* ```
|
|
5773
|
+
*/
|
|
5414
5774
|
export declare const TableCell: ForwardRefExoticComponent<TableCellProps<string> & {
|
|
5415
5775
|
children?: ReactNode | undefined;
|
|
5416
5776
|
} & RefAttributes<HTMLTableCellElement>>;
|
|
@@ -5467,6 +5827,23 @@ export declare type TableCellVariantStyles<Variant extends string> = CssLibProps
|
|
|
5467
5827
|
|
|
5468
5828
|
declare type TableCssClasses = ComponentSelected<ComponentsTypesComponents['TABLE']>;
|
|
5469
5829
|
|
|
5830
|
+
/**
|
|
5831
|
+
* TableDivider component for rendering visual separators in tables.
|
|
5832
|
+
*
|
|
5833
|
+
* This component creates visual dividers or separators between table sections.
|
|
5834
|
+
* Useful for organizing complex tables with multiple logical groups of data.
|
|
5835
|
+
*
|
|
5836
|
+
* @example
|
|
5837
|
+
* ```tsx
|
|
5838
|
+
* <Table>
|
|
5839
|
+
* <TableBody>
|
|
5840
|
+
* <TableRow>...</TableRow>
|
|
5841
|
+
* <TableDivider variant="default" />
|
|
5842
|
+
* <TableRow>...</TableRow>
|
|
5843
|
+
* </TableBody>
|
|
5844
|
+
* </Table>
|
|
5845
|
+
* ```
|
|
5846
|
+
*/
|
|
5470
5847
|
export declare const TableDivider: ForwardRefExoticComponent<TableDividerProps & {
|
|
5471
5848
|
children?: ReactNode | undefined;
|
|
5472
5849
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5488,6 +5865,25 @@ export declare type TableDividerVariantStyles<Variant extends string> = CssLibPr
|
|
|
5488
5865
|
[key in Variant]: CssLibPropsType;
|
|
5489
5866
|
};
|
|
5490
5867
|
|
|
5868
|
+
/**
|
|
5869
|
+
* TableFoot component for rendering table footer sections.
|
|
5870
|
+
*
|
|
5871
|
+
* This component wraps the tfoot element with consistent styling and variant support.
|
|
5872
|
+
* Use it to display summary rows, totals, or footer information in a table.
|
|
5873
|
+
*
|
|
5874
|
+
* @example
|
|
5875
|
+
* ```tsx
|
|
5876
|
+
* <Table>
|
|
5877
|
+
* <TableBody>...</TableBody>
|
|
5878
|
+
* <TableFoot variant="default">
|
|
5879
|
+
* <TableRow>
|
|
5880
|
+
* <TableCell>Total</TableCell>
|
|
5881
|
+
* <TableCell>$1,234</TableCell>
|
|
5882
|
+
* </TableRow>
|
|
5883
|
+
* </TableFoot>
|
|
5884
|
+
* </Table>
|
|
5885
|
+
* ```
|
|
5886
|
+
*/
|
|
5491
5887
|
export declare const TableFoot: ForwardRefExoticComponent<TableFootProps & {
|
|
5492
5888
|
children?: ReactNode | undefined;
|
|
5493
5889
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5509,6 +5905,23 @@ export declare type TableFootVariantStyles<Variant extends string> = CssLibProps
|
|
|
5509
5905
|
[key in Variant]: CssLibPropsType;
|
|
5510
5906
|
};
|
|
5511
5907
|
|
|
5908
|
+
/**
|
|
5909
|
+
* TableHead component for rendering table header sections.
|
|
5910
|
+
*
|
|
5911
|
+
* This component wraps the thead element with consistent styling and variant support.
|
|
5912
|
+
* Use it as a container for TableRow components with header cells within a Table.
|
|
5913
|
+
*
|
|
5914
|
+
* @example
|
|
5915
|
+
* ```tsx
|
|
5916
|
+
* <Table>
|
|
5917
|
+
* <TableHead variant="default">
|
|
5918
|
+
* <TableRow>
|
|
5919
|
+
* <TableCell>Header 1</TableCell>
|
|
5920
|
+
* </TableRow>
|
|
5921
|
+
* </TableHead>
|
|
5922
|
+
* </Table>
|
|
5923
|
+
* ```
|
|
5924
|
+
*/
|
|
5512
5925
|
export declare const TableHead: ForwardRefExoticComponent<TableHeadProps & {
|
|
5513
5926
|
children?: ReactNode | undefined;
|
|
5514
5927
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5540,6 +5953,22 @@ export declare interface TableProps extends Omit<TableStandAloneProps, 'hasScrol
|
|
|
5540
5953
|
additionalClasses?: Partial<TableCssClasses>;
|
|
5541
5954
|
}
|
|
5542
5955
|
|
|
5956
|
+
/**
|
|
5957
|
+
* TableRow component for rendering table rows.
|
|
5958
|
+
*
|
|
5959
|
+
* This component wraps the tr element with consistent styling and variant support.
|
|
5960
|
+
* Use it as a container for TableCell components within TableHead or TableBody sections.
|
|
5961
|
+
*
|
|
5962
|
+
* @example
|
|
5963
|
+
* ```tsx
|
|
5964
|
+
* <TableBody>
|
|
5965
|
+
* <TableRow variant="default">
|
|
5966
|
+
* <TableCell>Data 1</TableCell>
|
|
5967
|
+
* <TableCell>Data 2</TableCell>
|
|
5968
|
+
* </TableRow>
|
|
5969
|
+
* </TableBody>
|
|
5970
|
+
* ```
|
|
5971
|
+
*/
|
|
5543
5972
|
export declare const TableRow: ForwardRefExoticComponent<TableRowProps & {
|
|
5544
5973
|
children?: ReactNode | undefined;
|
|
5545
5974
|
} & RefAttributes<HTMLTableRowElement>>;
|
|
@@ -5589,8 +6018,44 @@ export declare type TableVariantStyles<Variant extends string> = TableStyleProps
|
|
|
5589
6018
|
[key in Variant]: TableStyleProps;
|
|
5590
6019
|
};
|
|
5591
6020
|
|
|
6021
|
+
/**
|
|
6022
|
+
* TabsUnControlled component with internal tab selection state.
|
|
6023
|
+
*
|
|
6024
|
+
* This component renders a tab navigation that manages the selected tab internally.
|
|
6025
|
+
* It starts with a default selected tab and updates automatically on user interaction.
|
|
6026
|
+
* Useful when you don't need to control tab selection from a parent component.
|
|
6027
|
+
*
|
|
6028
|
+
* @example
|
|
6029
|
+
* ```tsx
|
|
6030
|
+
* <TabsUnControlled
|
|
6031
|
+
* defaultSelectedTab={0}
|
|
6032
|
+
* tabs={[
|
|
6033
|
+
* { id: 'tab1', label: 'Tab 1' },
|
|
6034
|
+
* { id: 'tab2', label: 'Tab 2' }
|
|
6035
|
+
* ]}
|
|
6036
|
+
* onSelectTab={(index) => console.log(index)}
|
|
6037
|
+
* />
|
|
6038
|
+
* ```
|
|
6039
|
+
*/
|
|
5592
6040
|
export declare const Tabs: ForwardRefExoticComponent<TabsUnControlledProps<string | undefined> & RefAttributes<HTMLDivElement>>;
|
|
5593
6041
|
|
|
6042
|
+
/**
|
|
6043
|
+
* TabsControlled component for tab navigation with external state management.
|
|
6044
|
+
*
|
|
6045
|
+
* This component displays a set of tabs where the selected tab is controlled
|
|
6046
|
+
* externally via props. It's device-aware and adjusts behavior based on screen size.
|
|
6047
|
+
*
|
|
6048
|
+
* @example
|
|
6049
|
+
* ```tsx
|
|
6050
|
+
* <TabsControlled
|
|
6051
|
+
* defaultSelectedTab="tab1"
|
|
6052
|
+
* tabs={[
|
|
6053
|
+
* { id: 'tab1', label: 'Tab 1' },
|
|
6054
|
+
* { id: 'tab2', label: 'Tab 2' }
|
|
6055
|
+
* ]}
|
|
6056
|
+
* />
|
|
6057
|
+
* ```
|
|
6058
|
+
*/
|
|
5594
6059
|
export declare const TabsControlled: ForwardRefExoticComponent<TabsUnControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5595
6060
|
|
|
5596
6061
|
declare type TabsCssClasses = ComponentSelected<ComponentsTypesComponents['TABS']>;
|
|
@@ -5745,6 +6210,23 @@ export declare type TagVariantStyles<Variant extends string> = TagStyleProps & {
|
|
|
5745
6210
|
declare const Text_2: ForwardRefExoticComponent<TextProps<string> & RefAttributes<HTMLParagraphElement>>;
|
|
5746
6211
|
export { Text_2 as Text }
|
|
5747
6212
|
|
|
6213
|
+
/**
|
|
6214
|
+
* TextArea component for multi-line text input.
|
|
6215
|
+
*
|
|
6216
|
+
* This component provides a styled textarea with support for labels, error states,
|
|
6217
|
+
* character counting, and focus management. It handles internal focus state and
|
|
6218
|
+
* applies appropriate styling based on filled and error states.
|
|
6219
|
+
*
|
|
6220
|
+
* @example
|
|
6221
|
+
* ```tsx
|
|
6222
|
+
* <TextArea
|
|
6223
|
+
* label="Comments"
|
|
6224
|
+
* placeholder="Enter your comments"
|
|
6225
|
+
* maxLength={500}
|
|
6226
|
+
* error="Required field"
|
|
6227
|
+
* />
|
|
6228
|
+
* ```
|
|
6229
|
+
*/
|
|
5748
6230
|
export declare const TextArea: ForwardRefExoticComponent<TextAreaProps<string | undefined> & RefAttributes<HTMLDivElement>>;
|
|
5749
6231
|
|
|
5750
6232
|
export declare type TextAreaCssClasses = ComponentSelected<ComponentsTypesComponents['TEXT_AREA']>;
|
|
@@ -6030,17 +6512,46 @@ export declare type ToggleVariantStyles<Variant extends string> = ToggleVariantS
|
|
|
6030
6512
|
[key in Variant]?: ToggleVariantStyleProps;
|
|
6031
6513
|
};
|
|
6032
6514
|
|
|
6515
|
+
/**
|
|
6516
|
+
* TooltipUnControlled component with internal visibility management.
|
|
6517
|
+
*
|
|
6518
|
+
* This component renders a tooltip that manages its own open/close state based
|
|
6519
|
+
* on user interactions (hover, focus). It handles modal behavior on mobile devices,
|
|
6520
|
+
* scroll detection, swipe gestures, and focus trapping automatically.
|
|
6521
|
+
*
|
|
6522
|
+
* @example
|
|
6523
|
+
* ```tsx
|
|
6524
|
+
* <TooltipUnControlled
|
|
6525
|
+
* title="Helpful information"
|
|
6526
|
+
* variant="default"
|
|
6527
|
+
* >
|
|
6528
|
+
* <button>Hover me</button>
|
|
6529
|
+
* </TooltipUnControlled>
|
|
6530
|
+
* ```
|
|
6531
|
+
*/
|
|
6033
6532
|
export declare const Tooltip: ForwardRefExoticComponent<TooltipUnControlledProps<string | undefined> & RefAttributes<HTMLDivElement>>;
|
|
6034
6533
|
|
|
6035
6534
|
declare type TooltipAlignType = Extract<PositionType, 'top' | 'right' | 'bottom' | 'left'>;
|
|
6036
6535
|
|
|
6037
6536
|
/**
|
|
6038
|
-
*
|
|
6537
|
+
* TooltipControlled component for displaying contextual information.
|
|
6538
|
+
*
|
|
6539
|
+
* This component renders a tooltip that can be shown on hover or focus.
|
|
6540
|
+
* It supports modal behavior on mobile devices and adjusts positioning based
|
|
6541
|
+
* on scroll detection. State is managed externally via props.
|
|
6542
|
+
*
|
|
6543
|
+
* @example
|
|
6544
|
+
* ```tsx
|
|
6545
|
+
* <TooltipControlled
|
|
6546
|
+
* variant="default"
|
|
6547
|
+
* title="Help text"
|
|
6548
|
+
* open={isOpen}
|
|
6549
|
+
* onOpenChange={setIsOpen}
|
|
6550
|
+
* >
|
|
6551
|
+
* <button>Hover me</button>
|
|
6552
|
+
* </TooltipControlled>
|
|
6553
|
+
* ```
|
|
6039
6554
|
*/
|
|
6040
|
-
export declare type TooltipCloseIconProps = Omit<IconProps, 'icon'> & {
|
|
6041
|
-
icon?: string;
|
|
6042
|
-
};
|
|
6043
|
-
|
|
6044
6555
|
export declare const TooltipControlled: <Variant extends string>({ additionalClasses, tooltipAriaLabel, tooltipAsModal: propTooltipAsModal, tooltipAsModal: isModal, tooltipRef, variant, ...props }: TooltipControlledProps<Variant>) => JSX.Element;
|
|
6045
6556
|
|
|
6046
6557
|
/**
|
|
@@ -6075,7 +6586,6 @@ export declare interface TooltipStandAloneProps extends DataAttributes {
|
|
|
6075
6586
|
disabled?: boolean;
|
|
6076
6587
|
mediaDevice: DeviceBreakpointsType;
|
|
6077
6588
|
align?: TooltipAlignType | string;
|
|
6078
|
-
title?: CommonTextProps;
|
|
6079
6589
|
contentHasScroll?: boolean;
|
|
6080
6590
|
content?: CommonTextProps;
|
|
6081
6591
|
contentRef?: ForwardedRef<HTMLDivElement> | undefined;
|
|
@@ -6087,11 +6597,9 @@ export declare interface TooltipStandAloneProps extends DataAttributes {
|
|
|
6087
6597
|
onTriggerClick?: MouseEventHandler<HTMLElement>;
|
|
6088
6598
|
onTriggerMouseDown?: MouseEventHandler<HTMLElement>;
|
|
6089
6599
|
onTriggerMouseUp?: MouseEventHandler<HTMLElement>;
|
|
6090
|
-
onCloseIconClick?: MouseEventHandler<HTMLElement>;
|
|
6091
6600
|
children: JSX.Element | string | ReactNode;
|
|
6092
6601
|
popoverOpen?: boolean;
|
|
6093
6602
|
cssClasses?: TooltipCssClasses;
|
|
6094
|
-
closeIcon?: IconProps;
|
|
6095
6603
|
childrenAsButton?: boolean;
|
|
6096
6604
|
triggerAsButton?: Pick<AriaAttributes, 'aria-label' | 'aria-labelledby' | 'aria-describedby' | 'aria-controls' | 'aria-expanded' | 'aria-pressed' | 'aria-disabled'>;
|
|
6097
6605
|
onPopoverCloseInternally?: () => void;
|
|
@@ -6102,8 +6610,6 @@ export declare interface TooltipStandAloneProps extends DataAttributes {
|
|
|
6102
6610
|
onTriggerKeyDown?: KeyboardEventHandler<HTMLDivElement>;
|
|
6103
6611
|
onTooltipKeyDown?: KeyboardEventHandler<HTMLElement>;
|
|
6104
6612
|
popover?: TooltipPopoverProps;
|
|
6105
|
-
dragIcon?: ElementOrIconProps;
|
|
6106
|
-
dragIconRef?: MutableRefObject<HTMLDivElement | null>;
|
|
6107
6613
|
tooltipAriaLabel?: string;
|
|
6108
6614
|
}
|
|
6109
6615
|
|
|
@@ -6141,6 +6647,24 @@ export declare type TooltipVariantStyles<Variant extends string> = TooltipStyleP
|
|
|
6141
6647
|
[key in Variant]?: TooltipStyleProps;
|
|
6142
6648
|
};
|
|
6143
6649
|
|
|
6650
|
+
/**
|
|
6651
|
+
* Custom hook to access the generic components context.
|
|
6652
|
+
* Provides access to the custom Link and Image components configured in the provider.
|
|
6653
|
+
*
|
|
6654
|
+
* @throws {Error} If used outside of a GenericComponentsProvider or with invalid value
|
|
6655
|
+
* @returns The generic components (LINK, IMAGE) from the context
|
|
6656
|
+
*
|
|
6657
|
+
* @example
|
|
6658
|
+
* ```tsx
|
|
6659
|
+
* const { LINK, IMAGE } = useGenericComponents();
|
|
6660
|
+
*
|
|
6661
|
+
* return (
|
|
6662
|
+
* <LINK url="/home">
|
|
6663
|
+
* <IMAGE src="/logo.png" alt="Logo" />
|
|
6664
|
+
* </LINK>
|
|
6665
|
+
* );
|
|
6666
|
+
* ```
|
|
6667
|
+
*/
|
|
6144
6668
|
export declare const useGenericComponents: () => GenericComponentsType;
|
|
6145
6669
|
|
|
6146
6670
|
declare interface UseRoveFocusProps {
|
|
@@ -6156,10 +6680,17 @@ declare interface UseRoveFocusProps {
|
|
|
6156
6680
|
}
|
|
6157
6681
|
|
|
6158
6682
|
/**
|
|
6159
|
-
* Custom hook to access the
|
|
6683
|
+
* Custom hook to access the StylesContext.
|
|
6684
|
+
* Provides styling utilities including theme management, breakpoints, and component styles.
|
|
6685
|
+
*
|
|
6686
|
+
* @throws {Error} If used outside of a StylesProvider
|
|
6687
|
+
* @returns The current styles context value
|
|
6160
6688
|
*
|
|
6161
|
-
* @
|
|
6162
|
-
*
|
|
6689
|
+
* @example
|
|
6690
|
+
* ```tsx
|
|
6691
|
+
* const { currentTheme, changeTheme, getComponentStyles } = useStylesContext();
|
|
6692
|
+
* const styles = getComponentStyles({ component: 'button', variant: 'primary' });
|
|
6693
|
+
* ```
|
|
6163
6694
|
*/
|
|
6164
6695
|
export declare const useStylesContext: () => StylesContextProps;
|
|
6165
6696
|
|
|
@@ -6184,27 +6715,84 @@ export declare const useUtilsProvider: () => UtilsContextType;
|
|
|
6184
6715
|
*/
|
|
6185
6716
|
export declare const UtilsContext: Context<UtilsContextType | null>;
|
|
6186
6717
|
|
|
6718
|
+
/**
|
|
6719
|
+
* Context type for utility functions and configurations.
|
|
6720
|
+
* Provides date manipulation, formatting, and asset management utilities.
|
|
6721
|
+
*/
|
|
6187
6722
|
declare interface UtilsContextType {
|
|
6723
|
+
/**
|
|
6724
|
+
* Base URLs for different types of assets.
|
|
6725
|
+
* Used to construct full paths for icons, illustrations, images, and animations.
|
|
6726
|
+
*/
|
|
6188
6727
|
assets?: {
|
|
6728
|
+
/** Base URL for all assets */
|
|
6189
6729
|
baseHost: string;
|
|
6730
|
+
/** Specific base URL for icon assets */
|
|
6190
6731
|
iconsBaseHost?: string;
|
|
6732
|
+
/** Specific base URL for illustration assets */
|
|
6191
6733
|
illutrationsBaseHost?: string;
|
|
6734
|
+
/** Specific base URL for image assets */
|
|
6192
6735
|
imagesBaseHost?: string;
|
|
6736
|
+
/** Specific base URL for animation assets */
|
|
6193
6737
|
animationsBaseHost?: string;
|
|
6194
6738
|
};
|
|
6739
|
+
/**
|
|
6740
|
+
* Formats a Date object into a string representation.
|
|
6741
|
+
* @param date - The date to format
|
|
6742
|
+
* @param format - Format string or options object (e.g., 'dd/MM/yyyy', 'd', etc.)
|
|
6743
|
+
* @param locale - Optional locale string (e.g., 'en-US', 'es-ES')
|
|
6744
|
+
* @returns Formatted date string
|
|
6745
|
+
*/
|
|
6195
6746
|
formatDate: (date: Date, format: DateFormatOptions | FormatDateType | string, locale?: string) => string;
|
|
6747
|
+
/**
|
|
6748
|
+
* Transforms a string or number into a Date object.
|
|
6749
|
+
* @param date - The date value to transform (timestamp or date string)
|
|
6750
|
+
* @param format - Optional format string to parse the date
|
|
6751
|
+
* @returns Parsed Date object
|
|
6752
|
+
*/
|
|
6196
6753
|
transformDate: (date: string | number, format?: string) => Date;
|
|
6754
|
+
/**
|
|
6755
|
+
* Collection of date manipulation and comparison utilities.
|
|
6756
|
+
*/
|
|
6197
6757
|
dateHelpers: {
|
|
6758
|
+
/** Subtracts a specified number of days from a date */
|
|
6198
6759
|
getSubDays: (date: Date, amount: number) => Date;
|
|
6760
|
+
/** Subtracts a specified number of months from a date */
|
|
6199
6761
|
getSubMonths: (date: Date, amount: number) => Date;
|
|
6762
|
+
/** Subtracts a specified number of years from a date */
|
|
6200
6763
|
getSubYears: (date: Date, amount: number) => Date;
|
|
6764
|
+
/** Adds a specified number of months to a date */
|
|
6201
6765
|
getAddMonths: (date: Date, amount: number) => Date;
|
|
6766
|
+
/** Adds a specified number of days to a date */
|
|
6202
6767
|
getAddDays: (date: Date, amount: number) => Date;
|
|
6768
|
+
/** Adds a specified number of years to a date */
|
|
6203
6769
|
getAddYears: (date: Date, years: number) => Date;
|
|
6770
|
+
/**
|
|
6771
|
+
* Gets all month names in the specified format and locale.
|
|
6772
|
+
* @param monthFormat - Format for month names ('long', 'short', 'narrow')
|
|
6773
|
+
* @param locale - Optional locale string
|
|
6774
|
+
* @returns Array of month names
|
|
6775
|
+
*/
|
|
6204
6776
|
getAllMonthName: (monthFormat: Intl.DateTimeFormatOptions['month'], locale?: string) => Array<string>;
|
|
6777
|
+
/**
|
|
6778
|
+
* Gets all weekday names in the specified format and locale.
|
|
6779
|
+
* @param weekdayFormat - Format for weekday names ('long', 'short', 'narrow')
|
|
6780
|
+
* @param isSundayFirst - Whether Sunday should be the first day of the week
|
|
6781
|
+
* @param locale - Optional locale string
|
|
6782
|
+
* @returns Array of weekday names
|
|
6783
|
+
*/
|
|
6205
6784
|
getAllWeekdayName: (weekdayFormat: Intl.DateTimeFormatOptions['weekday'], isSundayFirst: boolean, locale?: string) => Array<string>;
|
|
6785
|
+
/** Checks if the first date is before the second date */
|
|
6206
6786
|
isBefore: (date1: Date, date2: Date) => boolean;
|
|
6787
|
+
/** Checks if the first date is after the second date */
|
|
6207
6788
|
isAfter: (date1: Date, date2: Date) => boolean;
|
|
6789
|
+
/**
|
|
6790
|
+
* Checks if two dates are equal.
|
|
6791
|
+
* @param firstDate - First date to compare
|
|
6792
|
+
* @param secondDate - Second date to compare
|
|
6793
|
+
* @param shouldCompareTime - Whether to include time in comparison
|
|
6794
|
+
* @returns True if dates are equal
|
|
6795
|
+
*/
|
|
6208
6796
|
isDatesEqual: (firstDate: Date | number | string, secondDate: Date | number | string, shouldCompareTime: boolean) => boolean;
|
|
6209
6797
|
};
|
|
6210
6798
|
}
|
|
@@ -6235,7 +6823,12 @@ declare interface UtilsContextType {
|
|
|
6235
6823
|
*/
|
|
6236
6824
|
export declare const UtilsProvider: (props: UtilsProviderProps) => JSX_2.Element;
|
|
6237
6825
|
|
|
6826
|
+
/**
|
|
6827
|
+
* Props for the UtilsProvider component.
|
|
6828
|
+
* Extends UtilsContextType with required children prop.
|
|
6829
|
+
*/
|
|
6238
6830
|
declare type UtilsProviderProps = UtilsContextType & {
|
|
6831
|
+
/** The React children to be wrapped by the provider */
|
|
6239
6832
|
children: ReactElement;
|
|
6240
6833
|
};
|
|
6241
6834
|
|