@kubit-ui-web/react-components 2.0.0-beta.2 → 2.0.0-beta.20
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/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 +8 -10
- package/dist/esm/components/tooltip/tooltipUnControlled.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 -57
- package/dist/styles/kubit/css/kubit.min.css +1 -1
- package/dist/types/index.d.ts +1038 -292
- package/package.json +70 -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/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/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' | 'NAVBAR' | '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;
|
|
@@ -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;
|
|
@@ -1811,7 +1925,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1811
1925
|
};
|
|
1812
1926
|
SELECTOR_BOX_FILE: {
|
|
1813
1927
|
selector_box_file: string;
|
|
1814
|
-
actiondescriptioncontainer: string;
|
|
1815
1928
|
actionicon: string;
|
|
1816
1929
|
actioniconandactiontextcontainer: string;
|
|
1817
1930
|
animationcontainer: string;
|
|
@@ -1824,57 +1937,13 @@ declare type ComponentsTypesComponents = {
|
|
|
1824
1937
|
containerboxfilename: string;
|
|
1825
1938
|
containerboxicon: string;
|
|
1826
1939
|
containerboxtextscontainer: string;
|
|
1827
|
-
description: string;
|
|
1828
|
-
descriptioncontainer: string;
|
|
1829
|
-
errormessage: string;
|
|
1830
|
-
errormessagecontainer: string;
|
|
1831
|
-
errormessageicon: string;
|
|
1832
1940
|
header: string;
|
|
1833
1941
|
leftanimationcontainer: string;
|
|
1834
1942
|
rightanimationcontainer: string;
|
|
1835
|
-
subtitle: string;
|
|
1836
|
-
subtitletooltipcontainer: string;
|
|
1837
|
-
title: string;
|
|
1838
|
-
titlesubtitlecontainer: string;
|
|
1839
|
-
tooltipicon: string;
|
|
1840
|
-
tooltipiconcontainer: string;
|
|
1841
1943
|
topanimationcontainer: string;
|
|
1842
1944
|
$_default: {
|
|
1843
1945
|
selector_box_file: string;
|
|
1844
1946
|
};
|
|
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
1947
|
};
|
|
1879
1948
|
SKELETON: {
|
|
1880
1949
|
skeleton: string;
|
|
@@ -3074,6 +3143,21 @@ declare type DataAttributes = {
|
|
|
3074
3143
|
[key in `data-${string}`]?: string;
|
|
3075
3144
|
};
|
|
3076
3145
|
|
|
3146
|
+
/**
|
|
3147
|
+
* DataTable component for displaying structured data in a table format.
|
|
3148
|
+
*
|
|
3149
|
+
* This component provides advanced table functionality including sticky columns,
|
|
3150
|
+
* scrollable content, shadow effects, and divider management. It handles complex
|
|
3151
|
+
* table behaviors automatically through internal hooks.
|
|
3152
|
+
*
|
|
3153
|
+
* @example
|
|
3154
|
+
* ```tsx
|
|
3155
|
+
* <DataTable variant="striped">
|
|
3156
|
+
* <TableHead>...</TableHead>
|
|
3157
|
+
* <TableBody>...</TableBody>
|
|
3158
|
+
* </DataTable>
|
|
3159
|
+
* ```
|
|
3160
|
+
*/
|
|
3077
3161
|
export declare const DataTable: ForwardRefExoticComponent<DataTableProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3078
3162
|
|
|
3079
3163
|
export declare type DataTableCellProps = TableCellProps & {
|
|
@@ -3203,16 +3287,30 @@ export declare type DataTableVariantStyles<Variant extends string> = DataTableSt
|
|
|
3203
3287
|
[key in Variant]: DataTableStyleProps;
|
|
3204
3288
|
};
|
|
3205
3289
|
|
|
3290
|
+
/**
|
|
3291
|
+
* Options for formatting dates using Intl.DateTimeFormat.
|
|
3292
|
+
* Provides granular control over date/time display format.
|
|
3293
|
+
*/
|
|
3206
3294
|
declare interface DateFormatOptions {
|
|
3295
|
+
/** Representation of the weekday ('long', 'short', 'narrow') */
|
|
3207
3296
|
weekday?: Intl.DateTimeFormatOptions['weekday'];
|
|
3297
|
+
/** Representation of the year ('numeric', '2-digit') */
|
|
3208
3298
|
year?: Intl.DateTimeFormatOptions['year'];
|
|
3299
|
+
/** Representation of the month ('numeric', '2-digit', 'long', 'short', 'narrow') */
|
|
3209
3300
|
month?: Intl.DateTimeFormatOptions['month'];
|
|
3301
|
+
/** Representation of the day ('numeric', '2-digit') */
|
|
3210
3302
|
day?: Intl.DateTimeFormatOptions['day'];
|
|
3303
|
+
/** Representation of the hour ('numeric', '2-digit') */
|
|
3211
3304
|
hour?: Intl.DateTimeFormatOptions['hour'];
|
|
3305
|
+
/** Representation of the minute ('numeric', '2-digit') */
|
|
3212
3306
|
minute?: Intl.DateTimeFormatOptions['minute'];
|
|
3307
|
+
/** Representation of the second ('numeric', '2-digit') */
|
|
3213
3308
|
second?: Intl.DateTimeFormatOptions['second'];
|
|
3309
|
+
/** Representation of the time zone name ('long', 'short', etc.) */
|
|
3214
3310
|
timeZoneName?: Intl.DateTimeFormatOptions['timeZoneName'];
|
|
3311
|
+
/** Whether to use 12-hour time format (true) or 24-hour format (false) */
|
|
3215
3312
|
hour12?: Intl.DateTimeFormatOptions['hour12'];
|
|
3313
|
+
/** Hour cycle to use ('h11', 'h12', 'h23', 'h24') */
|
|
3216
3314
|
hourCycle?: Intl.DateTimeFormatOptions['hourCycle'];
|
|
3217
3315
|
}
|
|
3218
3316
|
|
|
@@ -3427,74 +3525,117 @@ declare interface ElementOrIconProps extends Omit<IconProps, 'icon'>, DataAttrib
|
|
|
3427
3525
|
|
|
3428
3526
|
declare type FormatDateType = 'd' | 'dd' | 'ddd' | 'dddd' | 'f' | 'ff' | 'fff' | 'F' | 'FF' | 'FFF' | 'ffff' | 'FFFF' | 't' | 'tt' | 'T' | 'TT' | 'ttt' | 'TTT' | 'tttt' | 'TTTT';
|
|
3429
3527
|
|
|
3528
|
+
/**
|
|
3529
|
+
* React Context for generic component implementations.
|
|
3530
|
+
* Provides access to custom Link and Image components throughout the application.
|
|
3531
|
+
*/
|
|
3430
3532
|
export declare const GenericComponentContext: Context<GenericComponentsType | null>;
|
|
3431
3533
|
|
|
3534
|
+
/**
|
|
3535
|
+
* Provider component for custom generic component implementations.
|
|
3536
|
+
* Allows applications to inject their own Link and Image components
|
|
3537
|
+
* (e.g., Next.js Link, React Router Link) to be used by all Kubit components.
|
|
3538
|
+
*
|
|
3539
|
+
* This is essential for integrating Kubit components with different routing libraries
|
|
3540
|
+
* or custom implementations while maintaining consistent behavior across the application.
|
|
3541
|
+
*
|
|
3542
|
+
* @param props - Provider props
|
|
3543
|
+
* @param props.children - React children to be wrapped by the provider
|
|
3544
|
+
* @param props.value - Custom generic components to be used throughout the application
|
|
3545
|
+
*
|
|
3546
|
+
* @returns The provider component wrapping all child components
|
|
3547
|
+
*
|
|
3548
|
+
* @example
|
|
3549
|
+
* ```tsx
|
|
3550
|
+
* import { Link } from 'react-router-dom';
|
|
3551
|
+
*
|
|
3552
|
+
* const customComponents = {
|
|
3553
|
+
* LINK: Link,
|
|
3554
|
+
* IMAGE: CustomImage,
|
|
3555
|
+
* };
|
|
3556
|
+
*
|
|
3557
|
+
* <GenericComponentsProvider value={customComponents}>
|
|
3558
|
+
* <App />
|
|
3559
|
+
* </GenericComponentsProvider>
|
|
3560
|
+
* ```
|
|
3561
|
+
*/
|
|
3432
3562
|
export declare const GenericComponentsProvider: ({ children, value, }: PropsWithChildren<GenericComponentsProviderProps>) => JSX.Element;
|
|
3433
3563
|
|
|
3434
3564
|
/**
|
|
3435
|
-
*
|
|
3436
|
-
*
|
|
3565
|
+
* Props for the GenericComponentsProvider.
|
|
3566
|
+
* Wraps the application with custom component implementations.
|
|
3437
3567
|
*/
|
|
3438
3568
|
declare interface GenericComponentsProviderProps {
|
|
3569
|
+
/** The custom generic components to be made available to child components */
|
|
3439
3570
|
value: GenericComponentsType;
|
|
3440
3571
|
}
|
|
3441
3572
|
|
|
3442
3573
|
/**
|
|
3443
|
-
*
|
|
3574
|
+
* Collection of generic component implementations.
|
|
3575
|
+
* Allows customization of primitive components used throughout the library.
|
|
3444
3576
|
*/
|
|
3445
3577
|
declare interface GenericComponentsType {
|
|
3578
|
+
/** Link component implementation (required) */
|
|
3446
3579
|
LINK: GenericLinkType;
|
|
3580
|
+
/** Image component implementation (optional) */
|
|
3447
3581
|
IMAGE?: GenericImageType;
|
|
3448
3582
|
}
|
|
3449
3583
|
|
|
3450
3584
|
/**
|
|
3451
|
-
*
|
|
3585
|
+
* Props for a generic image component.
|
|
3586
|
+
* Inherits all standard HTML image attributes.
|
|
3452
3587
|
*/
|
|
3453
3588
|
declare type GenericImageProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
3454
3589
|
|
|
3455
3590
|
/**
|
|
3456
|
-
*
|
|
3591
|
+
* Type definition for a generic image component.
|
|
3592
|
+
* Can be either a functional component or a forward ref component to support refs.
|
|
3457
3593
|
*/
|
|
3458
3594
|
declare type GenericImageType = ((props: GenericImageProps) => JSX.Element) | ForwardRefExoticComponent<GenericImageProps & RefAttributes<unknown>>;
|
|
3459
3595
|
|
|
3596
|
+
/**
|
|
3597
|
+
* Subset of ARIA attributes applicable to link elements.
|
|
3598
|
+
* Ensures proper accessibility for navigation components.
|
|
3599
|
+
*/
|
|
3460
3600
|
declare type GenericLinkAriaAttributes = Pick<AriaAttributes, 'aria-label' | 'aria-describedby' | 'aria-labelledby' | 'aria-disabled' | 'aria-current'>;
|
|
3461
3601
|
|
|
3462
3602
|
/**
|
|
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.
|
|
3603
|
+
* Props for a generic link component.
|
|
3604
|
+
* Provides a flexible interface for custom link implementations that can be used
|
|
3605
|
+
* throughout the component library (e.g., for React Router, Next.js Link, etc.).
|
|
3479
3606
|
*/
|
|
3480
3607
|
declare type GenericLinkProps = {
|
|
3608
|
+
/** The destination URL for the link */
|
|
3481
3609
|
url: string;
|
|
3610
|
+
/** Optional unique identifier for the link element */
|
|
3482
3611
|
id?: string;
|
|
3612
|
+
/** Content to be displayed inside the link */
|
|
3483
3613
|
children: string | JSX.Element;
|
|
3614
|
+
/** Optional CSS class name(s) for styling */
|
|
3484
3615
|
className?: string;
|
|
3616
|
+
/** Specifies where to open the linked document ('_blank', '_self', '_parent', '_top') */
|
|
3485
3617
|
target?: string;
|
|
3618
|
+
/** Callback function invoked when the link is clicked */
|
|
3486
3619
|
onClick?: () => void;
|
|
3620
|
+
/** Callback function invoked when the link receives focus */
|
|
3487
3621
|
onFocus?: () => void;
|
|
3622
|
+
/** Callback function invoked when the mouse pointer enters the link area */
|
|
3488
3623
|
onMouseEnter?: () => void;
|
|
3624
|
+
/** Callback function invoked when the mouse pointer leaves the link area */
|
|
3489
3625
|
onMouseLeave?: () => void;
|
|
3626
|
+
/** Relationship between the current document and the linked document */
|
|
3490
3627
|
rel?: string;
|
|
3628
|
+
/** ARIA role to override the default link role if needed */
|
|
3491
3629
|
role?: AriaRole;
|
|
3630
|
+
/** Test ID for automated testing purposes */
|
|
3492
3631
|
dataTestId?: string;
|
|
3632
|
+
/** Whether the element can be dragged */
|
|
3493
3633
|
draggable?: boolean;
|
|
3494
3634
|
} & GenericLinkAriaAttributes & DataAttributes;
|
|
3495
3635
|
|
|
3496
3636
|
/**
|
|
3497
|
-
*
|
|
3637
|
+
* Type definition for a generic link component.
|
|
3638
|
+
* Can be either a functional component or a forward ref component to support refs.
|
|
3498
3639
|
*/
|
|
3499
3640
|
declare type GenericLinkType = ((props: GenericLinkProps) => JSX.Element) | ForwardRefExoticComponent<GenericLinkProps & RefAttributes<unknown>>;
|
|
3500
3641
|
|
|
@@ -3714,6 +3855,23 @@ export declare interface ImageStyleProps {
|
|
|
3714
3855
|
width?: string;
|
|
3715
3856
|
}
|
|
3716
3857
|
|
|
3858
|
+
/**
|
|
3859
|
+
* Input component for text input fields.
|
|
3860
|
+
*
|
|
3861
|
+
* This component provides a styled text input with support for labels, helper text,
|
|
3862
|
+
* error messages, icons, and various states (disabled, error, success). It manages
|
|
3863
|
+
* focus state internally and applies appropriate styling.
|
|
3864
|
+
*
|
|
3865
|
+
* @example
|
|
3866
|
+
* ```tsx
|
|
3867
|
+
* <Input
|
|
3868
|
+
* label="Email"
|
|
3869
|
+
* type="email"
|
|
3870
|
+
* placeholder="Enter your email"
|
|
3871
|
+
* error="Invalid email"
|
|
3872
|
+
* />
|
|
3873
|
+
* ```
|
|
3874
|
+
*/
|
|
3717
3875
|
export declare const Input: ForwardRefExoticComponent<InputProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3718
3876
|
|
|
3719
3877
|
declare type InputActionsProps = Pick<DOMAttributes<HTMLInputElement>, 'onBlur' | 'onChange'>;
|
|
@@ -3722,6 +3880,23 @@ export declare type InputActionsType = Pick<DOMAttributes<HTMLInputElement>, 'on
|
|
|
3722
3880
|
|
|
3723
3881
|
declare type InputActionsType_2 = Pick<DOMAttributes<HTMLInputElement>, 'onBlur' | 'onChange'>;
|
|
3724
3882
|
|
|
3883
|
+
/**
|
|
3884
|
+
* InputBase component for basic text input functionality.
|
|
3885
|
+
*
|
|
3886
|
+
* This is a low-level input component that provides the foundation for more
|
|
3887
|
+
* complex input components. It manages states (focused, filled, error, disabled)
|
|
3888
|
+
* and applies appropriate styling and ARIA attributes.
|
|
3889
|
+
*
|
|
3890
|
+
* @example
|
|
3891
|
+
* ```tsx
|
|
3892
|
+
* <InputBase
|
|
3893
|
+
* placeholder="Enter text"
|
|
3894
|
+
* error={hasError}
|
|
3895
|
+
* filled={!!value}
|
|
3896
|
+
* focused={isFocused}
|
|
3897
|
+
* />
|
|
3898
|
+
* ```
|
|
3899
|
+
*/
|
|
3725
3900
|
export declare const InputBase: ForwardRefExoticComponent<InputBaseProps<string> & RefAttributes<HTMLInputElement>>;
|
|
3726
3901
|
|
|
3727
3902
|
export declare type InputBaseActionsType = Pick<DOMAttributes<HTMLInputElement>, 'onKeyDown' | 'onFocus' | 'onBlur' | 'onPaste' | 'onCopy'>;
|
|
@@ -3777,6 +3952,24 @@ export declare type InputBaseVariantStyles<Variant extends string> = CssLibProps
|
|
|
3777
3952
|
|
|
3778
3953
|
declare type InputCssClasses = ComponentSelected<ComponentsTypesComponents['INPUT']>;
|
|
3779
3954
|
|
|
3955
|
+
/**
|
|
3956
|
+
* InputDecoration component for wrapping and decorating input fields.
|
|
3957
|
+
*
|
|
3958
|
+
* This component provides a styled container for input elements with support
|
|
3959
|
+
* for labels, icons, helper text, and various visual states. It manages the
|
|
3960
|
+
* state representation (focused, filled, error, disabled) for consistent styling.
|
|
3961
|
+
*
|
|
3962
|
+
* @example
|
|
3963
|
+
* ```tsx
|
|
3964
|
+
* <InputDecoration
|
|
3965
|
+
* label="Email"
|
|
3966
|
+
* error={hasError}
|
|
3967
|
+
* helperText="Enter a valid email"
|
|
3968
|
+
* >
|
|
3969
|
+
* <input type="email" />
|
|
3970
|
+
* </InputDecoration>
|
|
3971
|
+
* ```
|
|
3972
|
+
*/
|
|
3780
3973
|
export declare const InputDecoration: ForwardRefExoticComponent<InputDecorationProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3781
3974
|
|
|
3782
3975
|
declare type InputDecorationCssClasses = ComponentSelected<ComponentsTypesComponents['INPUT_DECORATION']>;
|
|
@@ -3830,8 +4023,43 @@ export declare interface InputProps<Variant = undefined extends string ? unknown
|
|
|
3830
4023
|
additionalClasses?: Partial<InputCssClasses>;
|
|
3831
4024
|
}
|
|
3832
4025
|
|
|
4026
|
+
/**
|
|
4027
|
+
* InputSignatureUnControlled component with internal signature management.
|
|
4028
|
+
*
|
|
4029
|
+
* This component provides a canvas-based signature capture that manages its own
|
|
4030
|
+
* state internally. It handles drawing, clearing, and state updates automatically.
|
|
4031
|
+
* Exposes methods via ref for resetting the signature canvas.
|
|
4032
|
+
*
|
|
4033
|
+
* @example
|
|
4034
|
+
* ```tsx
|
|
4035
|
+
* const signatureRef = useRef();
|
|
4036
|
+
*
|
|
4037
|
+
* <InputSignatureUnControlled
|
|
4038
|
+
* ref={signatureRef}
|
|
4039
|
+
* onChange={(dataUrl) => console.log(dataUrl)}
|
|
4040
|
+
* />
|
|
4041
|
+
*
|
|
4042
|
+
* // Reset signature: signatureRef.current.reset()
|
|
4043
|
+
* ```
|
|
4044
|
+
*/
|
|
3833
4045
|
export declare const InputSignature: ForwardRefExoticComponent<InputSignatureUnControlledProps<string> & RefAttributes<InputSignatureCustomHandle | undefined>>;
|
|
3834
4046
|
|
|
4047
|
+
/**
|
|
4048
|
+
* InputSignatureControlled component for capturing handwritten signatures.
|
|
4049
|
+
*
|
|
4050
|
+
* This component provides a canvas-based signature capture interface where
|
|
4051
|
+
* signature style (color, line width) is controlled externally. It's useful
|
|
4052
|
+
* for forms requiring user signatures.
|
|
4053
|
+
*
|
|
4054
|
+
* @example
|
|
4055
|
+
* ```tsx
|
|
4056
|
+
* <InputSignatureControlled
|
|
4057
|
+
* signatureStyle={{ color: '#000000', lineWidth: 2 }}
|
|
4058
|
+
* setSignatureStyles={(style) => console.log(style)}
|
|
4059
|
+
* onSignatureChange={(dataUrl) => setSignature(dataUrl)}
|
|
4060
|
+
* />
|
|
4061
|
+
* ```
|
|
4062
|
+
*/
|
|
3835
4063
|
export declare const InputSignatureControlled: ForwardRefExoticComponent<InputSignatureControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3836
4064
|
|
|
3837
4065
|
/**
|
|
@@ -4043,23 +4271,83 @@ export declare interface ISnackbarV2 extends Omit<ISnackbarStandAlone, 'onMouseE
|
|
|
4043
4271
|
|
|
4044
4272
|
declare type keyMoveType = number | ((previous: number, e?: KeyboardEvent) => number) | null;
|
|
4045
4273
|
|
|
4274
|
+
/**
|
|
4275
|
+
* Main provider component for the Kubit component library.
|
|
4276
|
+
* Orchestrates all sub-providers (Utils, Styles, and GenericComponents) and provides
|
|
4277
|
+
* a single entry point for configuring the entire component library context.
|
|
4278
|
+
*
|
|
4279
|
+
* This provider wraps the application and supplies:
|
|
4280
|
+
* - Date manipulation and formatting utilities
|
|
4281
|
+
* - Theme and styling configuration
|
|
4282
|
+
* - Custom generic components (Link, Image)
|
|
4283
|
+
*
|
|
4284
|
+
* @param props - Configuration props for the provider
|
|
4285
|
+
* @param props.children - React children to be wrapped by the provider
|
|
4286
|
+
* @param props.genericComponentsProvider - Custom implementations of generic components (Link, Image).
|
|
4287
|
+
* Defaults to library's built-in components if not provided
|
|
4288
|
+
* @param props.utilsConfig - Optional configuration to override default utility functions
|
|
4289
|
+
* (date helpers, formatters, asset paths)
|
|
4290
|
+
*
|
|
4291
|
+
* @returns The provider component wrapping all child components
|
|
4292
|
+
*
|
|
4293
|
+
* @example
|
|
4294
|
+
* ```tsx
|
|
4295
|
+
* import { KubitProvider } from '@kubit/react-components';
|
|
4296
|
+
*
|
|
4297
|
+
* function App() {
|
|
4298
|
+
* return (
|
|
4299
|
+
* <KubitProvider
|
|
4300
|
+
* genericComponentsProvider={{
|
|
4301
|
+
* LINK: CustomLink,
|
|
4302
|
+
* IMAGE: CustomImage,
|
|
4303
|
+
* }}
|
|
4304
|
+
* >
|
|
4305
|
+
* <YourApp />
|
|
4306
|
+
* </KubitProvider>
|
|
4307
|
+
* );
|
|
4308
|
+
* }
|
|
4309
|
+
* ```
|
|
4310
|
+
*/
|
|
4046
4311
|
export declare const KubitProvider: ({ children, genericComponentsProvider, utilsConfig, }: KubitProviderProps) => JSX.Element;
|
|
4047
4312
|
|
|
4313
|
+
/**
|
|
4314
|
+
* Props for the KubitProvider component.
|
|
4315
|
+
* Provides configuration for the entire Kubit component library context.
|
|
4316
|
+
*/
|
|
4048
4317
|
declare interface KubitProviderProps {
|
|
4318
|
+
/**
|
|
4319
|
+
* The React children to be wrapped by the provider.
|
|
4320
|
+
*/
|
|
4049
4321
|
children?: React.ReactNode;
|
|
4322
|
+
/**
|
|
4323
|
+
* Custom generic components (like Link and Image) to be used throughout the application.
|
|
4324
|
+
* Defaults to the library's default generic components if not provided.
|
|
4325
|
+
*/
|
|
4050
4326
|
genericComponentsProvider?: GenericComponentsType;
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4327
|
+
/**
|
|
4328
|
+
* Configuration for utility functions like date helpers, formatting, and assets.
|
|
4329
|
+
* Allows overriding the default utility configurations.
|
|
4330
|
+
*/
|
|
4054
4331
|
utilsConfig?: UtilsContextType;
|
|
4055
4332
|
}
|
|
4056
4333
|
|
|
4057
|
-
export declare const Label: ForwardRefExoticComponent<LabelStandAloneProps & RefAttributes<HTMLParagraphElement>>;
|
|
4058
|
-
|
|
4059
4334
|
/**
|
|
4060
|
-
*
|
|
4061
|
-
*
|
|
4062
|
-
*
|
|
4335
|
+
* LabelStandAlone component renders an accessible label element with optional required indicator.
|
|
4336
|
+
*
|
|
4337
|
+
* @component
|
|
4338
|
+
* @example
|
|
4339
|
+
* ```tsx
|
|
4340
|
+
* <LabelStandAlone inputId="email" required requiredSymbol="*">
|
|
4341
|
+
* Email Address
|
|
4342
|
+
* </LabelStandAlone>
|
|
4343
|
+
* ```
|
|
4344
|
+
*/
|
|
4345
|
+
export declare const Label: ForwardRefExoticComponent<LabelStandAloneProps & RefAttributes<HTMLParagraphElement>>;
|
|
4346
|
+
|
|
4347
|
+
/**
|
|
4348
|
+
* @name ILabelStandAlone
|
|
4349
|
+
* @description
|
|
4350
|
+
* interface for the label standAlone
|
|
4063
4351
|
*/
|
|
4064
4352
|
export declare interface LabelStandAloneProps extends DataAttributes {
|
|
4065
4353
|
children?: ReactNode;
|
|
@@ -4185,6 +4473,21 @@ export declare type LinkVariantStyles<Variant extends string> = LinkStylesProps
|
|
|
4185
4473
|
[key in Variant]?: LinkStylesProps;
|
|
4186
4474
|
};
|
|
4187
4475
|
|
|
4476
|
+
/**
|
|
4477
|
+
* ListOptions component for displaying a list of selectable options.
|
|
4478
|
+
*
|
|
4479
|
+
* This component renders a list container for options/items, commonly used
|
|
4480
|
+
* in dropdowns, select menus, or autocomplete interfaces. It manages styling
|
|
4481
|
+
* and provides a consistent container for option elements.
|
|
4482
|
+
*
|
|
4483
|
+
* @example
|
|
4484
|
+
* ```tsx
|
|
4485
|
+
* <ListOptions variant="default">
|
|
4486
|
+
* <Option>Option 1</Option>
|
|
4487
|
+
* <Option>Option 2</Option>
|
|
4488
|
+
* </ListOptions>
|
|
4489
|
+
* ```
|
|
4490
|
+
*/
|
|
4188
4491
|
export declare const ListOptions: ForwardRefExoticComponent<ListOptionsProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4189
4492
|
|
|
4190
4493
|
/**
|
|
@@ -4252,129 +4555,21 @@ export declare type ListOptionsVariantStyles<Variant extends string> = ListOptio
|
|
|
4252
4555
|
[key in Variant]: ListOptionsStyleProps;
|
|
4253
4556
|
};
|
|
4254
4557
|
|
|
4558
|
+
/**
|
|
4559
|
+
* Media query strings for targeting specific screen size ranges.
|
|
4560
|
+
* Built from the provided breakpoints configuration.
|
|
4561
|
+
*/
|
|
4255
4562
|
declare interface MediaQueries {
|
|
4563
|
+
/** Media query for mobile devices only (below md breakpoint) */
|
|
4256
4564
|
onlyMobile: string;
|
|
4565
|
+
/** Media query for tablets only (between md and lg breakpoints) */
|
|
4257
4566
|
onlyTablet: string;
|
|
4567
|
+
/** Media query for desktops (below xl breakpoint) */
|
|
4258
4568
|
onlyDesktop: string;
|
|
4569
|
+
/** Media query for large desktops (xl breakpoint and above) */
|
|
4259
4570
|
onlyLargeDesktop: string;
|
|
4260
4571
|
}
|
|
4261
4572
|
|
|
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
4573
|
/**
|
|
4379
4574
|
* Options for middleware configuration in the popover
|
|
4380
4575
|
*/
|
|
@@ -4384,6 +4579,23 @@ declare interface MiddlewareOptions {
|
|
|
4384
4579
|
hideWhenDetached?: boolean;
|
|
4385
4580
|
}
|
|
4386
4581
|
|
|
4582
|
+
/**
|
|
4583
|
+
* ModalUnControlled component with internal state management.
|
|
4584
|
+
*
|
|
4585
|
+
* This component renders a modal that manages its own open/close state internally.
|
|
4586
|
+
* It automatically syncs with prop changes and handles keyboard interactions.
|
|
4587
|
+
* Useful when you don't need external control over the modal's visibility.
|
|
4588
|
+
*
|
|
4589
|
+
* @example
|
|
4590
|
+
* ```tsx
|
|
4591
|
+
* <ModalUnControlled
|
|
4592
|
+
* open={true}
|
|
4593
|
+
* onClose={() => console.log('closed')}
|
|
4594
|
+
* >
|
|
4595
|
+
* Modal content
|
|
4596
|
+
* </ModalUnControlled>
|
|
4597
|
+
* ```
|
|
4598
|
+
*/
|
|
4387
4599
|
export declare const Modal: ForwardRefExoticComponent<ModalUnControlledProps<string | undefined> & {
|
|
4388
4600
|
children?: ReactNode | undefined;
|
|
4389
4601
|
} & RefAttributes<HTMLDivElement>>;
|
|
@@ -4404,6 +4616,24 @@ export declare interface ModalContentContainerProps extends Pick<AriaAttributes,
|
|
|
4404
4616
|
role?: string;
|
|
4405
4617
|
}
|
|
4406
4618
|
|
|
4619
|
+
/**
|
|
4620
|
+
* ModalControlled component for displaying overlay dialogs.
|
|
4621
|
+
*
|
|
4622
|
+
* This component manages modal visibility externally through props. It provides
|
|
4623
|
+
* scroll detection, swipe-down gestures, focus management, and portal rendering.
|
|
4624
|
+
* Use this when you need full control over the modal's open/close state.
|
|
4625
|
+
*
|
|
4626
|
+
* @example
|
|
4627
|
+
* ```tsx
|
|
4628
|
+
* <ModalControlled
|
|
4629
|
+
* open={isOpen}
|
|
4630
|
+
* onClose={() => setIsOpen(false)}
|
|
4631
|
+
* variant="default"
|
|
4632
|
+
* >
|
|
4633
|
+
* Modal content here
|
|
4634
|
+
* </ModalControlled>
|
|
4635
|
+
* ```
|
|
4636
|
+
*/
|
|
4407
4637
|
export declare const ModalControlled: ForwardRefExoticComponent<ModalControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4408
4638
|
|
|
4409
4639
|
/**
|
|
@@ -4560,6 +4790,24 @@ declare type NonVariablesKeys_2<T> = {
|
|
|
4560
4790
|
[K in keyof T]: K extends `$${string}` ? never : K;
|
|
4561
4791
|
}[keyof T];
|
|
4562
4792
|
|
|
4793
|
+
/**
|
|
4794
|
+
* Option component for rendering selectable list items.
|
|
4795
|
+
*
|
|
4796
|
+
* This component represents a single option within a list, dropdown, or menu.
|
|
4797
|
+
* It manages focus states and supports custom variants for flexible styling.
|
|
4798
|
+
* Useful for building accessible select menus, autocomplete lists, or navigation options.
|
|
4799
|
+
*
|
|
4800
|
+
* Accepts a generic type parameter `<Variant extends string>` for custom variant values.
|
|
4801
|
+
*
|
|
4802
|
+
* @example
|
|
4803
|
+
* ```tsx
|
|
4804
|
+
* <Option value="option1" variant="default">Option 1</Option>
|
|
4805
|
+
*
|
|
4806
|
+
* // With custom variant:
|
|
4807
|
+
* type MyVariant = "primary" | "secondary";
|
|
4808
|
+
* <Option<MyVariant> variant="primary" value="item">Primary Option</Option>
|
|
4809
|
+
* ```
|
|
4810
|
+
*/
|
|
4563
4811
|
declare const Option_2: ForwardRefExoticComponent<OptionProps<string> & RefAttributes<HTMLElement>>;
|
|
4564
4812
|
export { Option_2 as Option }
|
|
4565
4813
|
|
|
@@ -4627,6 +4875,23 @@ export declare type OptionVariantStyles<Variant extends string> = OptionStylePro
|
|
|
4627
4875
|
[key in Variant]: OptionStyleProps;
|
|
4628
4876
|
};
|
|
4629
4877
|
|
|
4878
|
+
/**
|
|
4879
|
+
* PageControl component for pagination/slide navigation indicators.
|
|
4880
|
+
*
|
|
4881
|
+
* This component displays navigation dots or bullets with arrow controls for
|
|
4882
|
+
* paginated content like carousels. It handles position tracking, visibility
|
|
4883
|
+
* of dots, and direction-based navigation.
|
|
4884
|
+
*
|
|
4885
|
+
* @example
|
|
4886
|
+
* ```tsx
|
|
4887
|
+
* <PageControl
|
|
4888
|
+
* pages={10}
|
|
4889
|
+
* currentPosition={3}
|
|
4890
|
+
* onPageChange={(page) => console.log(page)}
|
|
4891
|
+
* isBullet
|
|
4892
|
+
* />
|
|
4893
|
+
* ```
|
|
4894
|
+
*/
|
|
4630
4895
|
export declare const PageControl: ForwardRefExoticComponent<PageControlProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4631
4896
|
|
|
4632
4897
|
/**
|
|
@@ -4694,6 +4959,26 @@ export declare type PageControlVariantStyles<Variant extends string> = PageContr
|
|
|
4694
4959
|
[key in Variant]: PageControlStyleProps;
|
|
4695
4960
|
};
|
|
4696
4961
|
|
|
4962
|
+
/**
|
|
4963
|
+
* Pagination component for navigating through multiple pages.
|
|
4964
|
+
*
|
|
4965
|
+
* This component renders a pagination control with page numbers and navigation buttons.
|
|
4966
|
+
* It automatically adjusts the visible page numbers based on screen size and configuration.
|
|
4967
|
+
* Useful for implementing page navigation in lists, tables, or content galleries.
|
|
4968
|
+
*
|
|
4969
|
+
* Accepts a generic type parameter `<Variant extends string>` for custom variant styling.
|
|
4970
|
+
*
|
|
4971
|
+
* @example
|
|
4972
|
+
* ```tsx
|
|
4973
|
+
* <Pagination
|
|
4974
|
+
* variant="default"
|
|
4975
|
+
* currentStep={5}
|
|
4976
|
+
* maxStepsNumber={100}
|
|
4977
|
+
* maxCountersNumber={7}
|
|
4978
|
+
* onStepChange={handlePageChange}
|
|
4979
|
+
* />
|
|
4980
|
+
* ```
|
|
4981
|
+
*/
|
|
4697
4982
|
export declare const Pagination: ForwardRefExoticComponent<PaginationProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4698
4983
|
|
|
4699
4984
|
/**
|
|
@@ -4792,6 +5077,24 @@ export declare interface PopoverStylePropsV2 extends CssLibPropsType {
|
|
|
4792
5077
|
|
|
4793
5078
|
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
5079
|
|
|
5080
|
+
/**
|
|
5081
|
+
* ProgressBar component for displaying progress indicators.
|
|
5082
|
+
*
|
|
5083
|
+
* This component visualizes completion progress with customizable variants and sizes.
|
|
5084
|
+
* It displays a filled bar representing the percentage of progress completed.
|
|
5085
|
+
* Useful for showing loading states, task completion, or any measurable progress.
|
|
5086
|
+
*
|
|
5087
|
+
* Accepts generic type parameters `<Variant, Size>` for custom styling values.
|
|
5088
|
+
*
|
|
5089
|
+
* @example
|
|
5090
|
+
* ```tsx
|
|
5091
|
+
* <ProgressBar variant="primary" size="md" percentProgressCompleted={60} />
|
|
5092
|
+
*
|
|
5093
|
+
* // With custom types:
|
|
5094
|
+
* type MyVariant = "success" | "warning";
|
|
5095
|
+
* <ProgressBar<MyVariant> variant="success" percentProgressCompleted={100} />
|
|
5096
|
+
* ```
|
|
5097
|
+
*/
|
|
4795
5098
|
export declare const ProgressBar: ForwardRefExoticComponent<ProgressBarProps<string | undefined, unknown> & RefAttributes<HTMLDivElement>>;
|
|
4796
5099
|
|
|
4797
5100
|
/**
|
|
@@ -4828,11 +5131,6 @@ export declare interface ProgressBarStandAloneProps extends DataAttributes {
|
|
|
4828
5131
|
cssSizeClasses?: ProgressBarCssClasses;
|
|
4829
5132
|
barAriaLabel?: string;
|
|
4830
5133
|
progressCompleted: number;
|
|
4831
|
-
onChange?: (value: number) => void;
|
|
4832
|
-
onDragStart?: () => void;
|
|
4833
|
-
onDragEnd?: () => void;
|
|
4834
|
-
tooltip?: SliderTooltipProps;
|
|
4835
|
-
useAsSlider?: boolean;
|
|
4836
5134
|
progressAnimation?: {
|
|
4837
5135
|
duration?: string;
|
|
4838
5136
|
timingFunction?: string;
|
|
@@ -4854,6 +5152,22 @@ export declare type ProgressBarVariantStyles<Variant extends string> = {
|
|
|
4854
5152
|
|
|
4855
5153
|
declare type propsToOmit = 'styles' | 'filled' | 'focused' | 'inputBaseId' | 'labelId';
|
|
4856
5154
|
|
|
5155
|
+
/**
|
|
5156
|
+
* RadioButton component for single selection from multiple options.
|
|
5157
|
+
*
|
|
5158
|
+
* This component renders a styled radio input for use in forms and option groups.
|
|
5159
|
+
* It manages checked, disabled, and error states with appropriate visual feedback.
|
|
5160
|
+
*
|
|
5161
|
+
* @example
|
|
5162
|
+
* ```tsx
|
|
5163
|
+
* <RadioButton
|
|
5164
|
+
* name="option"
|
|
5165
|
+
* value="1"
|
|
5166
|
+
* checked={selectedValue === "1"}
|
|
5167
|
+
* onChange={(e) => setSelectedValue(e.target.value)}
|
|
5168
|
+
* />
|
|
5169
|
+
* ```
|
|
5170
|
+
*/
|
|
4857
5171
|
export declare const RadioButton: ({ additionalClasses, checked, cssClasses: propsStyles, disabled, error, variant, ...props }: RadioButtonProps) => JSX.Element;
|
|
4858
5172
|
|
|
4859
5173
|
/**
|
|
@@ -4881,6 +5195,21 @@ export declare interface RadioButtonProps<Variant = undefined extends string ? u
|
|
|
4881
5195
|
additionalClasses?: Partial<RadioButtonCssClasses>;
|
|
4882
5196
|
}
|
|
4883
5197
|
|
|
5198
|
+
/**
|
|
5199
|
+
* Standalone radio button component for rendering selectable radio inputs.
|
|
5200
|
+
*
|
|
5201
|
+
* This component renders a radio button with label, optional legend, error message,
|
|
5202
|
+
* and custom icon states. It handles accessibility attributes and visual states.
|
|
5203
|
+
*
|
|
5204
|
+
* @example
|
|
5205
|
+
* ```tsx
|
|
5206
|
+
* <RadioButtonStandAlone
|
|
5207
|
+
* label={{ content: "Option A" }}
|
|
5208
|
+
* checked={true}
|
|
5209
|
+
* onChange={() => {}}
|
|
5210
|
+
* />
|
|
5211
|
+
* ```
|
|
5212
|
+
*/
|
|
4884
5213
|
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
5214
|
|
|
4886
5215
|
/**
|
|
@@ -4944,16 +5273,24 @@ declare interface ScreenReaderOnlyProps extends DataAttributes {
|
|
|
4944
5273
|
role?: React.AriaRole;
|
|
4945
5274
|
}
|
|
4946
5275
|
|
|
4947
|
-
export declare const SelectorBoxFile: ForwardRefExoticComponent<SelectorBoxFileProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4948
|
-
|
|
4949
5276
|
/**
|
|
4950
|
-
*
|
|
5277
|
+
* SelectorBoxFile component for file upload with drag-and-drop support.
|
|
5278
|
+
*
|
|
5279
|
+
* This component provides a file selection interface with validation for file type
|
|
5280
|
+
* and size, upload progress display, error handling, and visual feedback states
|
|
5281
|
+
* (loading, success, error). It manages internal state for file selection and focus.
|
|
5282
|
+
*
|
|
5283
|
+
* @example
|
|
5284
|
+
* ```tsx
|
|
5285
|
+
* <SelectorBoxFile
|
|
5286
|
+
* accept="image/*"
|
|
5287
|
+
* maxSize={5000000}
|
|
5288
|
+
* onChange={(files) => console.log(files)}
|
|
5289
|
+
* onSizeError={(file) => alert('File too large')}
|
|
5290
|
+
* />
|
|
5291
|
+
* ```
|
|
4951
5292
|
*/
|
|
4952
|
-
export declare
|
|
4953
|
-
content: string;
|
|
4954
|
-
variant?: string;
|
|
4955
|
-
size?: string;
|
|
4956
|
-
};
|
|
5293
|
+
export declare const SelectorBoxFile: ForwardRefExoticComponent<SelectorBoxFileProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4957
5294
|
|
|
4958
5295
|
/**
|
|
4959
5296
|
* Represents the mapping of states to content in the SelectorBoxFile component.
|
|
@@ -4981,6 +5318,8 @@ export declare interface SelectorBoxFileProps<Variant = undefined extends string
|
|
|
4981
5318
|
success?: boolean;
|
|
4982
5319
|
error?: boolean;
|
|
4983
5320
|
disabled?: boolean;
|
|
5321
|
+
errorMaxSizeMessage?: CommonTextProps;
|
|
5322
|
+
errorFileExtensionMessage?: CommonTextProps;
|
|
4984
5323
|
percentage?: number;
|
|
4985
5324
|
variant?: Variant;
|
|
4986
5325
|
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
@@ -4995,16 +5334,8 @@ export declare interface SelectorBoxFileProps<Variant = undefined extends string
|
|
|
4995
5334
|
*/
|
|
4996
5335
|
export declare interface SelectorBoxFileStandAloneProps extends DataAttributes {
|
|
4997
5336
|
state: SelectorBoxFileStateType;
|
|
4998
|
-
title?: CommonTextProps;
|
|
4999
|
-
subtitle?: CommonTextProps;
|
|
5000
|
-
tooltipIcon?: ElementOrIconProps;
|
|
5001
|
-
tooltip?: SelectorBoxFileTooltipProps;
|
|
5002
5337
|
containerBoxStateContent: SelectorBoxFileContainerBoxStateContentProps;
|
|
5003
5338
|
filename?: string;
|
|
5004
|
-
errorMessageIcon?: ElementOrIconProps;
|
|
5005
|
-
errorMessage?: CommonTextProps;
|
|
5006
|
-
errorMaxSizeMessage?: CommonTextProps;
|
|
5007
|
-
errorFileExtensionMessage?: CommonTextProps;
|
|
5008
5339
|
focus: boolean;
|
|
5009
5340
|
onFocus: React.FocusEventHandler<HTMLInputElement>;
|
|
5010
5341
|
onBlur: React.FocusEventHandler<HTMLInputElement>;
|
|
@@ -5015,8 +5346,6 @@ export declare interface SelectorBoxFileStandAloneProps extends DataAttributes {
|
|
|
5015
5346
|
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
5016
5347
|
onClick?: React.MouseEventHandler<HTMLInputElement>;
|
|
5017
5348
|
onAnimationCompleted?: () => void;
|
|
5018
|
-
description?: CommonTextProps;
|
|
5019
|
-
button?: SelectorBoxFileButtonProps;
|
|
5020
5349
|
maxSize?: number;
|
|
5021
5350
|
fileExtension?: string[];
|
|
5022
5351
|
loader?: React.ReactNode;
|
|
@@ -5027,19 +5356,7 @@ export declare interface SelectorBoxFileStandAloneProps extends DataAttributes {
|
|
|
5027
5356
|
declare type SelectorBoxFileStateType = Extract<StateType, 'default' | 'loading' | 'success' | 'error' | 'disabled'>;
|
|
5028
5357
|
|
|
5029
5358
|
export declare interface SelectorBoxFileStyleProps extends CssLibPropsType {
|
|
5030
|
-
_actionDescriptionContainer?: CssLibPropsType;
|
|
5031
5359
|
_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
5360
|
_animationContainer?: CssLibPropsType;
|
|
5044
5361
|
_topAnimationContainer?: CssLibPropsType;
|
|
5045
5362
|
_leftAnimationContainer?: CssLibPropsType;
|
|
@@ -5057,17 +5374,24 @@ export declare interface SelectorBoxFileStyleProps extends CssLibPropsType {
|
|
|
5057
5374
|
_containerActionContainer?: CssLibPropsType;
|
|
5058
5375
|
}
|
|
5059
5376
|
|
|
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
5377
|
export declare type SelectorBoxFileVariantStyles<Variant extends string> = SelectorBoxFileStyleProps & {
|
|
5068
5378
|
[key in Variant]?: SelectorBoxFileStyleProps;
|
|
5069
5379
|
};
|
|
5070
5380
|
|
|
5381
|
+
/**
|
|
5382
|
+
* Skeleton component for displaying loading placeholders.
|
|
5383
|
+
*
|
|
5384
|
+
* This component renders animated placeholder shapes while content is loading.
|
|
5385
|
+
* It supports different shapes (rectangle, circle, text) and variants for styling.
|
|
5386
|
+
* Useful for improving perceived performance by showing content structure during loading.
|
|
5387
|
+
*
|
|
5388
|
+
* @example
|
|
5389
|
+
* ```tsx
|
|
5390
|
+
* <Skeleton variant="rectangular" shapeVariant="image" />
|
|
5391
|
+
* <Skeleton variant="text" shapeVariant="heading" />
|
|
5392
|
+
* <Skeleton variant="circular" shapeVariant="avatar" />
|
|
5393
|
+
* ```
|
|
5394
|
+
*/
|
|
5071
5395
|
export declare const Skeleton: ForwardRefExoticComponent<SkeletonProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5072
5396
|
|
|
5073
5397
|
/**
|
|
@@ -5112,6 +5436,31 @@ export declare type SkeletonVariantStyles<Variant extends string> = CssLibPropsT
|
|
|
5112
5436
|
[key in Variant]?: CssLibPropsType;
|
|
5113
5437
|
};
|
|
5114
5438
|
|
|
5439
|
+
/**
|
|
5440
|
+
* Slider component for selecting values within a range.
|
|
5441
|
+
*
|
|
5442
|
+
* This component provides a draggable slider control for selecting single values
|
|
5443
|
+
* or value ranges. It supports keyboard navigation, custom min/max/step values,
|
|
5444
|
+
* tooltips, and range selection. Handles both mouse and touch interactions.
|
|
5445
|
+
*
|
|
5446
|
+
* @example
|
|
5447
|
+
* ```tsx
|
|
5448
|
+
* <Slider
|
|
5449
|
+
* min={0}
|
|
5450
|
+
* max={100}
|
|
5451
|
+
* value={50}
|
|
5452
|
+
* onChange={(value) => console.log(value)}
|
|
5453
|
+
* />
|
|
5454
|
+
*
|
|
5455
|
+
* // Range slider:
|
|
5456
|
+
* <Slider
|
|
5457
|
+
* min={0}
|
|
5458
|
+
* max={100}
|
|
5459
|
+
* rangeValue={[25, 75]}
|
|
5460
|
+
* onChange={(range) => console.log(range)}
|
|
5461
|
+
* />
|
|
5462
|
+
* ```
|
|
5463
|
+
*/
|
|
5115
5464
|
export declare const Slider: ForwardRefExoticComponent<SliderProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5116
5465
|
|
|
5117
5466
|
/**
|
|
@@ -5246,6 +5595,24 @@ export declare type SnackbarV2Popover = Omit<IPopover, 'children' | 'open'>;
|
|
|
5246
5595
|
|
|
5247
5596
|
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
5597
|
|
|
5598
|
+
/**
|
|
5599
|
+
* StepperNumber component for incrementing/decrementing numeric values.
|
|
5600
|
+
*
|
|
5601
|
+
* This component provides plus/minus buttons for adjusting numeric values with
|
|
5602
|
+
* configurable step intervals. Supports both horizontal and vertical orientations.
|
|
5603
|
+
*
|
|
5604
|
+
* @example
|
|
5605
|
+
* ```tsx
|
|
5606
|
+
* <StepperNumber
|
|
5607
|
+
* value={5}
|
|
5608
|
+
* min={0}
|
|
5609
|
+
* max={10}
|
|
5610
|
+
* step={1}
|
|
5611
|
+
* onChange={(newValue) => console.log(newValue)}
|
|
5612
|
+
* orientation="horizontal"
|
|
5613
|
+
* />
|
|
5614
|
+
* ```
|
|
5615
|
+
*/
|
|
5249
5616
|
export declare const StepperNumber: ForwardRefExoticComponent<StepperNumberProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5250
5617
|
|
|
5251
5618
|
declare type StepperNumberCssClasses = ComponentSelected<ComponentsTypesComponents['STEPPER_NUMBER']>;
|
|
@@ -5340,55 +5707,175 @@ export declare interface StepStateProps {
|
|
|
5340
5707
|
['aria-label']?: string;
|
|
5341
5708
|
}
|
|
5342
5709
|
|
|
5710
|
+
/**
|
|
5711
|
+
* React Context for styles and theming.
|
|
5712
|
+
* Provides access to styling utilities, theme management, and responsive breakpoints.
|
|
5713
|
+
*/
|
|
5343
5714
|
export declare const StylesContext: Context<StylesContextProps | undefined>;
|
|
5344
5715
|
|
|
5716
|
+
/**
|
|
5717
|
+
* Context value provided by StylesProvider.
|
|
5718
|
+
* Contains all styling-related data and utilities available to child components.
|
|
5719
|
+
*/
|
|
5345
5720
|
declare interface StylesContextProps {
|
|
5721
|
+
/** Current responsive breakpoints configuration */
|
|
5346
5722
|
breakpoints: Breakpoints;
|
|
5723
|
+
/** Array of CSS class names or null */
|
|
5347
5724
|
classes: string[] | null;
|
|
5725
|
+
/** Pre-built media query strings for responsive design */
|
|
5348
5726
|
mediaQueries: MediaQueries;
|
|
5727
|
+
/** Map of available icons */
|
|
5349
5728
|
icons: Record<string, string>;
|
|
5729
|
+
/** Map of available illustrations */
|
|
5350
5730
|
illustrations: Record<string, string>;
|
|
5731
|
+
/** Currently active theme name, or null if no theme is selected */
|
|
5351
5732
|
currentTheme: string | null;
|
|
5733
|
+
/** Function to retrieve styles for a specific component and variant */
|
|
5352
5734
|
getComponentStyles: RecoverComponentStyles;
|
|
5735
|
+
/** Function to change the active theme */
|
|
5353
5736
|
changeTheme: (themeName: string) => void;
|
|
5737
|
+
/** Array of CSS class names for the current theme */
|
|
5354
5738
|
themeClassNames: string[];
|
|
5739
|
+
/** Map of all available themes */
|
|
5355
5740
|
themes: Record<string, string>;
|
|
5741
|
+
/** Map of CSS custom properties (variables) for the current theme */
|
|
5356
5742
|
themeVariables: Record<string, string>;
|
|
5357
5743
|
}
|
|
5358
5744
|
|
|
5359
5745
|
/**
|
|
5360
|
-
* Provider component
|
|
5746
|
+
* Provider component for styles, theming, and responsive design utilities.
|
|
5747
|
+
* Manages theme selection, CSS class generation, and provides styling context to child components.
|
|
5748
|
+
*
|
|
5749
|
+
* Features:
|
|
5750
|
+
* - Theme management with dynamic theme switching
|
|
5751
|
+
* - Responsive breakpoints and media queries
|
|
5752
|
+
* - Icon and illustration asset management
|
|
5753
|
+
* - Component-specific style retrieval
|
|
5754
|
+
* - CSS-in-JS support via Bernova provider
|
|
5755
|
+
*
|
|
5756
|
+
* @param props - Configuration props for the styles provider
|
|
5757
|
+
* @param props.children - React children to be wrapped by the provider
|
|
5758
|
+
* @param props.breakpoints - Custom responsive breakpoints (defaults to standard breakpoints if not provided)
|
|
5759
|
+
* @param props.icons - Map of icon names to URLs or base64 strings
|
|
5760
|
+
* @param props.illustrations - Map of illustration names to URLs or base64 strings
|
|
5761
|
+
* @param props.themeSelected - Initial theme to apply
|
|
5762
|
+
* @param props.bernovaProvider - Custom Bernova provider instance for advanced styling control
|
|
5763
|
+
* @param props.linkId - ID for the style link element in the DOM (default: 'kb-styled-provider')
|
|
5764
|
+
* @param props.jsInCss - Whether to inject CSS directly into JavaScript (default: true)
|
|
5765
|
+
*
|
|
5766
|
+
* @returns The styled provider component wrapping all child components
|
|
5767
|
+
*
|
|
5768
|
+
* @example
|
|
5769
|
+
* ```tsx
|
|
5770
|
+
* <StylesProvider
|
|
5771
|
+
* themeSelected="dark"
|
|
5772
|
+
* breakpoints={{ sm: 576, md: 768, lg: 992, xl: 1200 }}
|
|
5773
|
+
* icons={{ home: '/icons/home.svg' }}
|
|
5774
|
+
* >
|
|
5775
|
+
* <App />
|
|
5776
|
+
* </StylesProvider>
|
|
5777
|
+
* ```
|
|
5361
5778
|
*/
|
|
5362
5779
|
export declare const StylesProvider: FC<StylesProviderProps>;
|
|
5363
5780
|
|
|
5781
|
+
/**
|
|
5782
|
+
* Props for the StylesProvider component.
|
|
5783
|
+
* Configures the styling system including themes, breakpoints, and assets.
|
|
5784
|
+
*/
|
|
5364
5785
|
declare interface StylesProviderProps {
|
|
5786
|
+
/** The React children to be wrapped by the provider */
|
|
5365
5787
|
children: React.ReactNode;
|
|
5788
|
+
/** Custom breakpoints for responsive design. If not provided, uses default breakpoints */
|
|
5366
5789
|
breakpoints?: Breakpoints;
|
|
5790
|
+
/** Map of icon names to their corresponding URLs or base64 strings */
|
|
5367
5791
|
icons?: Record<string, string>;
|
|
5792
|
+
/** Map of illustration names to their corresponding URLs or base64 strings */
|
|
5368
5793
|
illustrations?: Record<string, string>;
|
|
5794
|
+
/** The initial theme to be applied. If not provided, uses the provider's default theme */
|
|
5369
5795
|
themeSelected?: string;
|
|
5796
|
+
/** Custom Bernova provider instance for advanced styling control */
|
|
5370
5797
|
bernovaProvider?: typeof Provider;
|
|
5798
|
+
/** ID for the style link element in the DOM. Default: 'kb-styled-provider' */
|
|
5371
5799
|
linkId?: string;
|
|
5800
|
+
/** Whether to inject CSS directly into JavaScript. Default: true */
|
|
5372
5801
|
jsInCss?: boolean;
|
|
5373
5802
|
}
|
|
5374
5803
|
|
|
5804
|
+
/**
|
|
5805
|
+
* Table component with automatic sticky column calculations and scroll shadow effects.
|
|
5806
|
+
*
|
|
5807
|
+
* This component wraps TableStandAlone and adds automatic sticky positioning for left
|
|
5808
|
+
* and right columns, scroll shadow effects, and responsive behavior. It manages scroll
|
|
5809
|
+
* state and column positioning internally.
|
|
5810
|
+
*
|
|
5811
|
+
* @example
|
|
5812
|
+
* ```tsx
|
|
5813
|
+
* <Table
|
|
5814
|
+
* variant="primary"
|
|
5815
|
+
* autoLeftStickyCalc={true}
|
|
5816
|
+
* autoRightStickyCalc={true}
|
|
5817
|
+
* >
|
|
5818
|
+
* <thead>...</thead>
|
|
5819
|
+
* <tbody>...</tbody>
|
|
5820
|
+
* </Table>
|
|
5821
|
+
* ```
|
|
5822
|
+
*/
|
|
5375
5823
|
export declare const Table: ForwardRefExoticComponent<TableProps & {
|
|
5376
5824
|
children?: ReactNode | undefined;
|
|
5377
5825
|
} & RefAttributes<HTMLDivElement>>;
|
|
5378
5826
|
|
|
5827
|
+
/**
|
|
5828
|
+
* TableBody component for rendering table body sections.
|
|
5829
|
+
*
|
|
5830
|
+
* This component wraps the tbody element with consistent styling and variant support.
|
|
5831
|
+
* Use it as a container for TableRow components within a Table.
|
|
5832
|
+
*
|
|
5833
|
+
* @example
|
|
5834
|
+
* ```tsx
|
|
5835
|
+
* <Table>
|
|
5836
|
+
* <TableBody variant="default">
|
|
5837
|
+
* <TableRow>...</TableRow>
|
|
5838
|
+
* </TableBody>
|
|
5839
|
+
* </Table>
|
|
5840
|
+
* ```
|
|
5841
|
+
*/
|
|
5842
|
+
export declare const TableBody: ForwardRefExoticComponent<TableBodyProps & {
|
|
5843
|
+
children?: ReactNode | undefined;
|
|
5844
|
+
} & RefAttributes<HTMLTableSectionElement>>;
|
|
5845
|
+
|
|
5379
5846
|
declare type TableBodyCssClasses = ComponentSelected<ComponentsTypesComponents['TABLE_BODY']>;
|
|
5380
5847
|
|
|
5381
|
-
declare interface TableBodyProps extends TableBodyStandAloneProps {
|
|
5848
|
+
export declare interface TableBodyProps extends TableBodyStandAloneProps {
|
|
5382
5849
|
variant?: string;
|
|
5383
5850
|
additionalClasses?: Partial<TableBodyCssClasses>;
|
|
5384
5851
|
}
|
|
5385
5852
|
|
|
5386
|
-
declare interface TableBodyStandAloneProps extends DataAttributes {
|
|
5853
|
+
export declare interface TableBodyStandAloneProps extends DataAttributes {
|
|
5387
5854
|
cssClasses?: TableBodyCssClasses;
|
|
5388
5855
|
id?: string;
|
|
5389
5856
|
component?: string | React.ComponentType<any>;
|
|
5390
5857
|
}
|
|
5391
5858
|
|
|
5859
|
+
export declare type TableBodyVariantStyles<Variant extends string> = CssLibPropsType & {
|
|
5860
|
+
[key in Variant]: CssLibPropsType;
|
|
5861
|
+
};
|
|
5862
|
+
|
|
5863
|
+
/**
|
|
5864
|
+
* TableCaption component for providing titles or descriptions for tables.
|
|
5865
|
+
*
|
|
5866
|
+
* This component renders a caption element for tables, helping users understand
|
|
5867
|
+
* the table's purpose or contents. Important for accessibility and SEO.
|
|
5868
|
+
*
|
|
5869
|
+
* @example
|
|
5870
|
+
* ```tsx
|
|
5871
|
+
* <Table>
|
|
5872
|
+
* <TableCaption variant="default">
|
|
5873
|
+
* Sales Report for Q4 2024
|
|
5874
|
+
* </TableCaption>
|
|
5875
|
+
* <TableHead>...</TableHead>
|
|
5876
|
+
* </Table>
|
|
5877
|
+
* ```
|
|
5878
|
+
*/
|
|
5392
5879
|
export declare const TableCaption: ForwardRefExoticComponent<TableCaptionProps & {
|
|
5393
5880
|
children?: ReactNode | undefined;
|
|
5394
5881
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5411,6 +5898,20 @@ export declare type TableCaptionVariantStyles<Variant extends string> = CssLibPr
|
|
|
5411
5898
|
[key in Variant]: CssLibPropsType;
|
|
5412
5899
|
};
|
|
5413
5900
|
|
|
5901
|
+
/**
|
|
5902
|
+
* TableCell component for rendering individual table cells.
|
|
5903
|
+
*
|
|
5904
|
+
* This component wraps td or th elements with consistent styling and variant support.
|
|
5905
|
+
* Use it within TableRow components to display data or headers in a table.
|
|
5906
|
+
*
|
|
5907
|
+
* @example
|
|
5908
|
+
* ```tsx
|
|
5909
|
+
* <TableRow>
|
|
5910
|
+
* <TableCell variant="default">Cell content</TableCell>
|
|
5911
|
+
* <TableCell>Another cell</TableCell>
|
|
5912
|
+
* </TableRow>
|
|
5913
|
+
* ```
|
|
5914
|
+
*/
|
|
5414
5915
|
export declare const TableCell: ForwardRefExoticComponent<TableCellProps<string> & {
|
|
5415
5916
|
children?: ReactNode | undefined;
|
|
5416
5917
|
} & RefAttributes<HTMLTableCellElement>>;
|
|
@@ -5467,6 +5968,23 @@ export declare type TableCellVariantStyles<Variant extends string> = CssLibProps
|
|
|
5467
5968
|
|
|
5468
5969
|
declare type TableCssClasses = ComponentSelected<ComponentsTypesComponents['TABLE']>;
|
|
5469
5970
|
|
|
5971
|
+
/**
|
|
5972
|
+
* TableDivider component for rendering visual separators in tables.
|
|
5973
|
+
*
|
|
5974
|
+
* This component creates visual dividers or separators between table sections.
|
|
5975
|
+
* Useful for organizing complex tables with multiple logical groups of data.
|
|
5976
|
+
*
|
|
5977
|
+
* @example
|
|
5978
|
+
* ```tsx
|
|
5979
|
+
* <Table>
|
|
5980
|
+
* <TableBody>
|
|
5981
|
+
* <TableRow>...</TableRow>
|
|
5982
|
+
* <TableDivider variant="default" />
|
|
5983
|
+
* <TableRow>...</TableRow>
|
|
5984
|
+
* </TableBody>
|
|
5985
|
+
* </Table>
|
|
5986
|
+
* ```
|
|
5987
|
+
*/
|
|
5470
5988
|
export declare const TableDivider: ForwardRefExoticComponent<TableDividerProps & {
|
|
5471
5989
|
children?: ReactNode | undefined;
|
|
5472
5990
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5488,6 +6006,25 @@ export declare type TableDividerVariantStyles<Variant extends string> = CssLibPr
|
|
|
5488
6006
|
[key in Variant]: CssLibPropsType;
|
|
5489
6007
|
};
|
|
5490
6008
|
|
|
6009
|
+
/**
|
|
6010
|
+
* TableFoot component for rendering table footer sections.
|
|
6011
|
+
*
|
|
6012
|
+
* This component wraps the tfoot element with consistent styling and variant support.
|
|
6013
|
+
* Use it to display summary rows, totals, or footer information in a table.
|
|
6014
|
+
*
|
|
6015
|
+
* @example
|
|
6016
|
+
* ```tsx
|
|
6017
|
+
* <Table>
|
|
6018
|
+
* <TableBody>...</TableBody>
|
|
6019
|
+
* <TableFoot variant="default">
|
|
6020
|
+
* <TableRow>
|
|
6021
|
+
* <TableCell>Total</TableCell>
|
|
6022
|
+
* <TableCell>$1,234</TableCell>
|
|
6023
|
+
* </TableRow>
|
|
6024
|
+
* </TableFoot>
|
|
6025
|
+
* </Table>
|
|
6026
|
+
* ```
|
|
6027
|
+
*/
|
|
5491
6028
|
export declare const TableFoot: ForwardRefExoticComponent<TableFootProps & {
|
|
5492
6029
|
children?: ReactNode | undefined;
|
|
5493
6030
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5509,6 +6046,23 @@ export declare type TableFootVariantStyles<Variant extends string> = CssLibProps
|
|
|
5509
6046
|
[key in Variant]: CssLibPropsType;
|
|
5510
6047
|
};
|
|
5511
6048
|
|
|
6049
|
+
/**
|
|
6050
|
+
* TableHead component for rendering table header sections.
|
|
6051
|
+
*
|
|
6052
|
+
* This component wraps the thead element with consistent styling and variant support.
|
|
6053
|
+
* Use it as a container for TableRow components with header cells within a Table.
|
|
6054
|
+
*
|
|
6055
|
+
* @example
|
|
6056
|
+
* ```tsx
|
|
6057
|
+
* <Table>
|
|
6058
|
+
* <TableHead variant="default">
|
|
6059
|
+
* <TableRow>
|
|
6060
|
+
* <TableCell>Header 1</TableCell>
|
|
6061
|
+
* </TableRow>
|
|
6062
|
+
* </TableHead>
|
|
6063
|
+
* </Table>
|
|
6064
|
+
* ```
|
|
6065
|
+
*/
|
|
5512
6066
|
export declare const TableHead: ForwardRefExoticComponent<TableHeadProps & {
|
|
5513
6067
|
children?: ReactNode | undefined;
|
|
5514
6068
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5540,6 +6094,22 @@ export declare interface TableProps extends Omit<TableStandAloneProps, 'hasScrol
|
|
|
5540
6094
|
additionalClasses?: Partial<TableCssClasses>;
|
|
5541
6095
|
}
|
|
5542
6096
|
|
|
6097
|
+
/**
|
|
6098
|
+
* TableRow component for rendering table rows.
|
|
6099
|
+
*
|
|
6100
|
+
* This component wraps the tr element with consistent styling and variant support.
|
|
6101
|
+
* Use it as a container for TableCell components within TableHead or TableBody sections.
|
|
6102
|
+
*
|
|
6103
|
+
* @example
|
|
6104
|
+
* ```tsx
|
|
6105
|
+
* <TableBody>
|
|
6106
|
+
* <TableRow variant="default">
|
|
6107
|
+
* <TableCell>Data 1</TableCell>
|
|
6108
|
+
* <TableCell>Data 2</TableCell>
|
|
6109
|
+
* </TableRow>
|
|
6110
|
+
* </TableBody>
|
|
6111
|
+
* ```
|
|
6112
|
+
*/
|
|
5543
6113
|
export declare const TableRow: ForwardRefExoticComponent<TableRowProps & {
|
|
5544
6114
|
children?: ReactNode | undefined;
|
|
5545
6115
|
} & RefAttributes<HTMLTableRowElement>>;
|
|
@@ -5589,8 +6159,44 @@ export declare type TableVariantStyles<Variant extends string> = TableStyleProps
|
|
|
5589
6159
|
[key in Variant]: TableStyleProps;
|
|
5590
6160
|
};
|
|
5591
6161
|
|
|
6162
|
+
/**
|
|
6163
|
+
* TabsUnControlled component with internal tab selection state.
|
|
6164
|
+
*
|
|
6165
|
+
* This component renders a tab navigation that manages the selected tab internally.
|
|
6166
|
+
* It starts with a default selected tab and updates automatically on user interaction.
|
|
6167
|
+
* Useful when you don't need to control tab selection from a parent component.
|
|
6168
|
+
*
|
|
6169
|
+
* @example
|
|
6170
|
+
* ```tsx
|
|
6171
|
+
* <TabsUnControlled
|
|
6172
|
+
* defaultSelectedTab={0}
|
|
6173
|
+
* tabs={[
|
|
6174
|
+
* { id: 'tab1', label: 'Tab 1' },
|
|
6175
|
+
* { id: 'tab2', label: 'Tab 2' }
|
|
6176
|
+
* ]}
|
|
6177
|
+
* onSelectTab={(index) => console.log(index)}
|
|
6178
|
+
* />
|
|
6179
|
+
* ```
|
|
6180
|
+
*/
|
|
5592
6181
|
export declare const Tabs: ForwardRefExoticComponent<TabsUnControlledProps<string | undefined> & RefAttributes<HTMLDivElement>>;
|
|
5593
6182
|
|
|
6183
|
+
/**
|
|
6184
|
+
* TabsControlled component for tab navigation with external state management.
|
|
6185
|
+
*
|
|
6186
|
+
* This component displays a set of tabs where the selected tab is controlled
|
|
6187
|
+
* externally via props. It's device-aware and adjusts behavior based on screen size.
|
|
6188
|
+
*
|
|
6189
|
+
* @example
|
|
6190
|
+
* ```tsx
|
|
6191
|
+
* <TabsControlled
|
|
6192
|
+
* defaultSelectedTab="tab1"
|
|
6193
|
+
* tabs={[
|
|
6194
|
+
* { id: 'tab1', label: 'Tab 1' },
|
|
6195
|
+
* { id: 'tab2', label: 'Tab 2' }
|
|
6196
|
+
* ]}
|
|
6197
|
+
* />
|
|
6198
|
+
* ```
|
|
6199
|
+
*/
|
|
5594
6200
|
export declare const TabsControlled: ForwardRefExoticComponent<TabsUnControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5595
6201
|
|
|
5596
6202
|
declare type TabsCssClasses = ComponentSelected<ComponentsTypesComponents['TABS']>;
|
|
@@ -5745,6 +6351,23 @@ export declare type TagVariantStyles<Variant extends string> = TagStyleProps & {
|
|
|
5745
6351
|
declare const Text_2: ForwardRefExoticComponent<TextProps<string> & RefAttributes<HTMLParagraphElement>>;
|
|
5746
6352
|
export { Text_2 as Text }
|
|
5747
6353
|
|
|
6354
|
+
/**
|
|
6355
|
+
* TextArea component for multi-line text input.
|
|
6356
|
+
*
|
|
6357
|
+
* This component provides a styled textarea with support for labels, error states,
|
|
6358
|
+
* character counting, and focus management. It handles internal focus state and
|
|
6359
|
+
* applies appropriate styling based on filled and error states.
|
|
6360
|
+
*
|
|
6361
|
+
* @example
|
|
6362
|
+
* ```tsx
|
|
6363
|
+
* <TextArea
|
|
6364
|
+
* label="Comments"
|
|
6365
|
+
* placeholder="Enter your comments"
|
|
6366
|
+
* maxLength={500}
|
|
6367
|
+
* error="Required field"
|
|
6368
|
+
* />
|
|
6369
|
+
* ```
|
|
6370
|
+
*/
|
|
5748
6371
|
export declare const TextArea: ForwardRefExoticComponent<TextAreaProps<string | undefined> & RefAttributes<HTMLDivElement>>;
|
|
5749
6372
|
|
|
5750
6373
|
export declare type TextAreaCssClasses = ComponentSelected<ComponentsTypesComponents['TEXT_AREA']>;
|
|
@@ -6030,6 +6653,23 @@ export declare type ToggleVariantStyles<Variant extends string> = ToggleVariantS
|
|
|
6030
6653
|
[key in Variant]?: ToggleVariantStyleProps;
|
|
6031
6654
|
};
|
|
6032
6655
|
|
|
6656
|
+
/**
|
|
6657
|
+
* TooltipUnControlled component with internal visibility management.
|
|
6658
|
+
*
|
|
6659
|
+
* This component renders a tooltip that manages its own open/close state based
|
|
6660
|
+
* on user interactions (hover, focus). It handles modal behavior on mobile devices,
|
|
6661
|
+
* scroll detection, swipe gestures, and focus trapping automatically.
|
|
6662
|
+
*
|
|
6663
|
+
* @example
|
|
6664
|
+
* ```tsx
|
|
6665
|
+
* <TooltipUnControlled
|
|
6666
|
+
* title="Helpful information"
|
|
6667
|
+
* variant="default"
|
|
6668
|
+
* >
|
|
6669
|
+
* <button>Hover me</button>
|
|
6670
|
+
* </TooltipUnControlled>
|
|
6671
|
+
* ```
|
|
6672
|
+
*/
|
|
6033
6673
|
export declare const Tooltip: ForwardRefExoticComponent<TooltipUnControlledProps<string | undefined> & RefAttributes<HTMLDivElement>>;
|
|
6034
6674
|
|
|
6035
6675
|
declare type TooltipAlignType = Extract<PositionType, 'top' | 'right' | 'bottom' | 'left'>;
|
|
@@ -6041,6 +6681,25 @@ export declare type TooltipCloseIconProps = Omit<IconProps, 'icon'> & {
|
|
|
6041
6681
|
icon?: string;
|
|
6042
6682
|
};
|
|
6043
6683
|
|
|
6684
|
+
/**
|
|
6685
|
+
* TooltipControlled component for displaying contextual information.
|
|
6686
|
+
*
|
|
6687
|
+
* This component renders a tooltip that can be shown on hover or focus.
|
|
6688
|
+
* It supports modal behavior on mobile devices and adjusts positioning based
|
|
6689
|
+
* on scroll detection. State is managed externally via props.
|
|
6690
|
+
*
|
|
6691
|
+
* @example
|
|
6692
|
+
* ```tsx
|
|
6693
|
+
* <TooltipControlled
|
|
6694
|
+
* variant="default"
|
|
6695
|
+
* title="Help text"
|
|
6696
|
+
* open={isOpen}
|
|
6697
|
+
* onOpenChange={setIsOpen}
|
|
6698
|
+
* >
|
|
6699
|
+
* <button>Hover me</button>
|
|
6700
|
+
* </TooltipControlled>
|
|
6701
|
+
* ```
|
|
6702
|
+
*/
|
|
6044
6703
|
export declare const TooltipControlled: <Variant extends string>({ additionalClasses, tooltipAriaLabel, tooltipAsModal: propTooltipAsModal, tooltipAsModal: isModal, tooltipRef, variant, ...props }: TooltipControlledProps<Variant>) => JSX.Element;
|
|
6045
6704
|
|
|
6046
6705
|
/**
|
|
@@ -6141,6 +6800,24 @@ export declare type TooltipVariantStyles<Variant extends string> = TooltipStyleP
|
|
|
6141
6800
|
[key in Variant]?: TooltipStyleProps;
|
|
6142
6801
|
};
|
|
6143
6802
|
|
|
6803
|
+
/**
|
|
6804
|
+
* Custom hook to access the generic components context.
|
|
6805
|
+
* Provides access to the custom Link and Image components configured in the provider.
|
|
6806
|
+
*
|
|
6807
|
+
* @throws {Error} If used outside of a GenericComponentsProvider or with invalid value
|
|
6808
|
+
* @returns The generic components (LINK, IMAGE) from the context
|
|
6809
|
+
*
|
|
6810
|
+
* @example
|
|
6811
|
+
* ```tsx
|
|
6812
|
+
* const { LINK, IMAGE } = useGenericComponents();
|
|
6813
|
+
*
|
|
6814
|
+
* return (
|
|
6815
|
+
* <LINK url="/home">
|
|
6816
|
+
* <IMAGE src="/logo.png" alt="Logo" />
|
|
6817
|
+
* </LINK>
|
|
6818
|
+
* );
|
|
6819
|
+
* ```
|
|
6820
|
+
*/
|
|
6144
6821
|
export declare const useGenericComponents: () => GenericComponentsType;
|
|
6145
6822
|
|
|
6146
6823
|
declare interface UseRoveFocusProps {
|
|
@@ -6156,10 +6833,17 @@ declare interface UseRoveFocusProps {
|
|
|
6156
6833
|
}
|
|
6157
6834
|
|
|
6158
6835
|
/**
|
|
6159
|
-
* Custom hook to access the
|
|
6836
|
+
* Custom hook to access the StylesContext.
|
|
6837
|
+
* Provides styling utilities including theme management, breakpoints, and component styles.
|
|
6160
6838
|
*
|
|
6161
|
-
* @throws
|
|
6162
|
-
* @returns The current
|
|
6839
|
+
* @throws {Error} If used outside of a StylesProvider
|
|
6840
|
+
* @returns The current styles context value
|
|
6841
|
+
*
|
|
6842
|
+
* @example
|
|
6843
|
+
* ```tsx
|
|
6844
|
+
* const { currentTheme, changeTheme, getComponentStyles } = useStylesContext();
|
|
6845
|
+
* const styles = getComponentStyles({ component: 'button', variant: 'primary' });
|
|
6846
|
+
* ```
|
|
6163
6847
|
*/
|
|
6164
6848
|
export declare const useStylesContext: () => StylesContextProps;
|
|
6165
6849
|
|
|
@@ -6184,27 +6868,84 @@ export declare const useUtilsProvider: () => UtilsContextType;
|
|
|
6184
6868
|
*/
|
|
6185
6869
|
export declare const UtilsContext: Context<UtilsContextType | null>;
|
|
6186
6870
|
|
|
6871
|
+
/**
|
|
6872
|
+
* Context type for utility functions and configurations.
|
|
6873
|
+
* Provides date manipulation, formatting, and asset management utilities.
|
|
6874
|
+
*/
|
|
6187
6875
|
declare interface UtilsContextType {
|
|
6876
|
+
/**
|
|
6877
|
+
* Base URLs for different types of assets.
|
|
6878
|
+
* Used to construct full paths for icons, illustrations, images, and animations.
|
|
6879
|
+
*/
|
|
6188
6880
|
assets?: {
|
|
6881
|
+
/** Base URL for all assets */
|
|
6189
6882
|
baseHost: string;
|
|
6883
|
+
/** Specific base URL for icon assets */
|
|
6190
6884
|
iconsBaseHost?: string;
|
|
6885
|
+
/** Specific base URL for illustration assets */
|
|
6191
6886
|
illutrationsBaseHost?: string;
|
|
6887
|
+
/** Specific base URL for image assets */
|
|
6192
6888
|
imagesBaseHost?: string;
|
|
6889
|
+
/** Specific base URL for animation assets */
|
|
6193
6890
|
animationsBaseHost?: string;
|
|
6194
6891
|
};
|
|
6892
|
+
/**
|
|
6893
|
+
* Formats a Date object into a string representation.
|
|
6894
|
+
* @param date - The date to format
|
|
6895
|
+
* @param format - Format string or options object (e.g., 'dd/MM/yyyy', 'd', etc.)
|
|
6896
|
+
* @param locale - Optional locale string (e.g., 'en-US', 'es-ES')
|
|
6897
|
+
* @returns Formatted date string
|
|
6898
|
+
*/
|
|
6195
6899
|
formatDate: (date: Date, format: DateFormatOptions | FormatDateType | string, locale?: string) => string;
|
|
6900
|
+
/**
|
|
6901
|
+
* Transforms a string or number into a Date object.
|
|
6902
|
+
* @param date - The date value to transform (timestamp or date string)
|
|
6903
|
+
* @param format - Optional format string to parse the date
|
|
6904
|
+
* @returns Parsed Date object
|
|
6905
|
+
*/
|
|
6196
6906
|
transformDate: (date: string | number, format?: string) => Date;
|
|
6907
|
+
/**
|
|
6908
|
+
* Collection of date manipulation and comparison utilities.
|
|
6909
|
+
*/
|
|
6197
6910
|
dateHelpers: {
|
|
6911
|
+
/** Subtracts a specified number of days from a date */
|
|
6198
6912
|
getSubDays: (date: Date, amount: number) => Date;
|
|
6913
|
+
/** Subtracts a specified number of months from a date */
|
|
6199
6914
|
getSubMonths: (date: Date, amount: number) => Date;
|
|
6915
|
+
/** Subtracts a specified number of years from a date */
|
|
6200
6916
|
getSubYears: (date: Date, amount: number) => Date;
|
|
6917
|
+
/** Adds a specified number of months to a date */
|
|
6201
6918
|
getAddMonths: (date: Date, amount: number) => Date;
|
|
6919
|
+
/** Adds a specified number of days to a date */
|
|
6202
6920
|
getAddDays: (date: Date, amount: number) => Date;
|
|
6921
|
+
/** Adds a specified number of years to a date */
|
|
6203
6922
|
getAddYears: (date: Date, years: number) => Date;
|
|
6923
|
+
/**
|
|
6924
|
+
* Gets all month names in the specified format and locale.
|
|
6925
|
+
* @param monthFormat - Format for month names ('long', 'short', 'narrow')
|
|
6926
|
+
* @param locale - Optional locale string
|
|
6927
|
+
* @returns Array of month names
|
|
6928
|
+
*/
|
|
6204
6929
|
getAllMonthName: (monthFormat: Intl.DateTimeFormatOptions['month'], locale?: string) => Array<string>;
|
|
6930
|
+
/**
|
|
6931
|
+
* Gets all weekday names in the specified format and locale.
|
|
6932
|
+
* @param weekdayFormat - Format for weekday names ('long', 'short', 'narrow')
|
|
6933
|
+
* @param isSundayFirst - Whether Sunday should be the first day of the week
|
|
6934
|
+
* @param locale - Optional locale string
|
|
6935
|
+
* @returns Array of weekday names
|
|
6936
|
+
*/
|
|
6205
6937
|
getAllWeekdayName: (weekdayFormat: Intl.DateTimeFormatOptions['weekday'], isSundayFirst: boolean, locale?: string) => Array<string>;
|
|
6938
|
+
/** Checks if the first date is before the second date */
|
|
6206
6939
|
isBefore: (date1: Date, date2: Date) => boolean;
|
|
6940
|
+
/** Checks if the first date is after the second date */
|
|
6207
6941
|
isAfter: (date1: Date, date2: Date) => boolean;
|
|
6942
|
+
/**
|
|
6943
|
+
* Checks if two dates are equal.
|
|
6944
|
+
* @param firstDate - First date to compare
|
|
6945
|
+
* @param secondDate - Second date to compare
|
|
6946
|
+
* @param shouldCompareTime - Whether to include time in comparison
|
|
6947
|
+
* @returns True if dates are equal
|
|
6948
|
+
*/
|
|
6208
6949
|
isDatesEqual: (firstDate: Date | number | string, secondDate: Date | number | string, shouldCompareTime: boolean) => boolean;
|
|
6209
6950
|
};
|
|
6210
6951
|
}
|
|
@@ -6235,7 +6976,12 @@ declare interface UtilsContextType {
|
|
|
6235
6976
|
*/
|
|
6236
6977
|
export declare const UtilsProvider: (props: UtilsProviderProps) => JSX_2.Element;
|
|
6237
6978
|
|
|
6979
|
+
/**
|
|
6980
|
+
* Props for the UtilsProvider component.
|
|
6981
|
+
* Extends UtilsContextType with required children prop.
|
|
6982
|
+
*/
|
|
6238
6983
|
declare type UtilsProviderProps = UtilsContextType & {
|
|
6984
|
+
/** The React children to be wrapped by the provider */
|
|
6239
6985
|
children: ReactElement;
|
|
6240
6986
|
};
|
|
6241
6987
|
|