@itcase/ui 1.1.15 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Accordion-DyOfdiGd.js → Accordion-DF2lqrVA.js} +15 -9
- package/dist/{Cell-DftU408q.js → Cell-D9Wa7coO.js} +4 -1
- package/dist/{Checkbox-C-H_Z4S_.js → Checkbox-i0qZk0sb.js} +8 -7
- package/dist/{Chips-BR_EPV82.js → Chips-BdK4kVmq.js} +9 -3
- package/dist/{DadataHintField-QzDwYdF1.js → DadataHintField-CHJLsVjJ.js} +1 -1
- package/dist/{DatePicker-CUmrPZZ-.js → DatePicker-CAgJ_CIz.js} +1 -1
- package/dist/{Input-CYMKQ0qF.js → Input-CYDtAlO-.js} +14 -12
- package/dist/{Logo-D6UNcO5P.js → Logo-D4NFjeqd.js} +2 -2
- package/dist/{ModalLoader-8l8YtIvz.js → ModalLoader-D17lZhS7.js} +8 -1
- package/dist/{Response-DzfL5Sy8.js → Response-m-8zeYeD.js} +2 -2
- package/dist/cjs/{Accordion-UbOVpiO4.js → Accordion-rCFDAon3.js} +15 -9
- package/dist/cjs/{Cell-BhsGTfV-.js → Cell-DEBk3Rbp.js} +4 -1
- package/dist/cjs/{Checkbox-B-1dwjii.js → Checkbox-BIvndDsy.js} +8 -7
- package/dist/cjs/{Chips-BcJttN22.js → Chips-i7zrI9aU.js} +9 -3
- package/dist/cjs/{DadataHintField-DQHPRLs0.js → DadataHintField-z7Mw-xDn.js} +1 -1
- package/dist/cjs/{DatePicker-DOmOhaU3.js → DatePicker-e4-8mC1N.js} +1 -1
- package/dist/cjs/{Input-BqKlyvEt.js → Input-vwyG3XF0.js} +13 -11
- package/dist/cjs/{Logo-De74wmbt.js → Logo-CcEF4P2z.js} +2 -2
- package/dist/cjs/{ModalLoader-A2KkSC3x.js → ModalLoader-Cddzca-W.js} +8 -1
- package/dist/cjs/{Response-DOQQr9jP.js → Response-CwdUpO-8.js} +2 -2
- package/dist/cjs/components/Accordion/Accordion.d.ts +2 -2
- package/dist/cjs/components/Accordion/Accordion.interface.d.ts +52 -52
- package/dist/cjs/components/Accordion/AccordionItem.d.ts +2 -2
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar/Avatar.interface.d.ts +12 -12
- package/dist/cjs/components/Badge/Badge.interface.d.ts +13 -13
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.interface.d.ts +35 -35
- package/dist/cjs/components/Button/Button.interface.d.ts +26 -26
- package/dist/cjs/components/Caption/Caption.interface.d.ts +7 -7
- package/dist/cjs/components/Card/Card.interface.d.ts +13 -13
- package/dist/cjs/components/Cell/Cell.interface.d.ts +27 -27
- package/dist/cjs/components/Cell.js +1 -1
- package/dist/cjs/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/cjs/components/Checkbox/Checkbox.interface.d.ts +43 -44
- package/dist/cjs/components/Checkbox.js +1 -1
- package/dist/cjs/components/Chips/Chips.interface.d.ts +19 -16
- package/dist/cjs/components/Chips.js +1 -1
- package/dist/cjs/components/Choice/Choice.interface.d.ts +25 -25
- package/dist/cjs/components/Code/Code.interface.d.ts +16 -16
- package/dist/cjs/components/ContextMenu/ContextMenu.interface.d.ts +18 -18
- package/dist/cjs/components/CookiesWarning/CookiesWarning.interface.d.ts +9 -9
- package/dist/cjs/components/DadataHintField/DadataHintField.interface.d.ts +3 -3
- package/dist/cjs/components/DadataHintField.js +2 -2
- package/dist/cjs/components/DatePicker/DatePicker.interface.d.ts +46 -46
- package/dist/cjs/components/DatePicker.js +2 -2
- package/dist/cjs/components/Divider/Divider.interface.d.ts +23 -23
- package/dist/cjs/components/Dot/Dot.interface.d.ts +16 -16
- package/dist/cjs/components/Drawer/Drawer.interface.d.ts +2 -2
- package/dist/cjs/components/Dropdown/Dropdown.interface.d.ts +26 -26
- package/dist/cjs/components/Flex/Flex.interface.d.ts +30 -30
- package/dist/cjs/components/FormField/FormFiled.interface.d.ts +45 -45
- package/dist/cjs/components/Grid/Grid.interface.d.ts +31 -31
- package/dist/cjs/components/Group/Group.interface.d.ts +14 -14
- package/dist/cjs/components/Icon/Icon.interface.d.ts +29 -29
- package/dist/cjs/components/Image/Image.interface.d.ts +8 -8
- package/dist/cjs/components/Input/Input.d.ts +3 -3
- package/dist/cjs/components/Input/Input.interface.d.ts +36 -38
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputMask/Input.d.ts +3 -3
- package/dist/cjs/components/InputMask/Input.interface.d.ts +32 -32
- package/dist/cjs/components/InputPassword/InputPassword.interface.d.ts +30 -30
- package/dist/cjs/components/Label/Label.interface.d.ts +15 -15
- package/dist/cjs/components/Link/Link.interface.d.ts +21 -21
- package/dist/cjs/components/List/List.interface.d.ts +11 -11
- package/dist/cjs/components/Loader/Loader.interface.d.ts +11 -11
- package/dist/cjs/components/Logo/Logo.interface.d.ts +5 -5
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/Menu/Menu.interface.d.ts +5 -5
- package/dist/cjs/components/MenuItem/MenuItem.interface.d.ts +21 -21
- package/dist/cjs/components/Modal/Modal.interface.d.ts +4 -4
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Notification/Notification.interface.d.ts +16 -16
- package/dist/cjs/components/Overlay/Overlay.interface.d.ts +4 -4
- package/dist/cjs/components/Pagination/Pagination.interface.d.ts +20 -20
- package/dist/cjs/components/Panel/Panel.interface.d.ts +19 -19
- package/dist/cjs/components/Radio/Radio.interface.d.ts +25 -25
- package/dist/cjs/components/RangeSlider/RangeSlider.interface.d.ts +12 -12
- package/dist/cjs/components/Response/Response.interface.d.ts +30 -28
- package/dist/cjs/components/Response.js +1 -1
- package/dist/cjs/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +9 -9
- package/dist/cjs/components/Scrollbar/Scrollbar.interface.d.ts +2 -2
- package/dist/cjs/components/Search/Search.interface.d.ts +23 -23
- package/dist/cjs/components/Segmented/Segmented.interface.d.ts +14 -14
- package/dist/cjs/components/SiteMenu/SiteMenu.interface.d.ts +9 -9
- package/dist/cjs/components/Swiper/Swiper.interface.d.ts +7 -7
- package/dist/cjs/components/Switch/Switch.interface.d.ts +2 -2
- package/dist/cjs/components/Tab/Tab.interface.d.ts +29 -29
- package/dist/cjs/components/Text/Text.interface.d.ts +20 -20
- package/dist/cjs/components/Textarea/Textarea.interface.d.ts +17 -17
- package/dist/cjs/components/Tile/Tile.interface.d.ts +15 -15
- package/dist/cjs/components/Title/Title.interface.d.ts +9 -9
- package/dist/cjs/components/Tooltip/Tooltip.interface.d.ts +13 -13
- package/dist/cjs/components/Video/Video.interface.d.ts +2 -2
- package/dist/cjs/components/Wrapper/Wrapper.interface.d.ts +4 -4
- package/dist/cjs/components.js +10 -10
- package/dist/cjs/constants/componentProps/textColor.js +1 -1
- package/dist/cjs/constants/componentProps/textColorActive.js +1 -1
- package/dist/cjs/constants/componentProps/textColorHover.js +1 -1
- package/dist/cjs/hooks/styleAttributes.interface.d.ts +4 -4
- package/dist/cjs/types/componentProps/appearanceKeys.d.ts +1 -1
- package/dist/cjs/types/componentProps/borderColor.d.ts +1 -1
- package/dist/cjs/types/componentProps/borderWidth.d.ts +1 -1
- package/dist/cjs/types/componentProps/direction.d.ts +1 -1
- package/dist/cjs/types/componentProps/fill.d.ts +1 -1
- package/dist/cjs/types/componentProps/fillHover.d.ts +1 -1
- package/dist/cjs/types/componentProps/height.d.ts +1 -1
- package/dist/cjs/types/componentProps/itemColor.d.ts +1 -1
- package/dist/cjs/types/componentProps/shape.d.ts +1 -1
- package/dist/cjs/types/componentProps/size.d.ts +1 -1
- package/dist/cjs/types/componentProps/stateKeys.d.ts +1 -1
- package/dist/cjs/types/componentProps/textColor.d.ts +1 -1
- package/dist/cjs/types/componentProps/textSize.d.ts +1 -1
- package/dist/cjs/types/componentProps/textWeight.d.ts +1 -1
- package/dist/cjs/types/componentProps/width.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +13 -13
- package/dist/components/Accordion/Accordion.d.ts +2 -2
- package/dist/components/Accordion/Accordion.interface.d.ts +52 -52
- package/dist/components/Accordion/AccordionItem.d.ts +2 -2
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar/Avatar.interface.d.ts +12 -12
- package/dist/components/Badge/Badge.interface.d.ts +13 -13
- package/dist/components/Breadcrumbs/Breadcrumbs.interface.d.ts +35 -35
- package/dist/components/Button/Button.interface.d.ts +26 -26
- package/dist/components/Caption/Caption.interface.d.ts +7 -7
- package/dist/components/Card/Card.interface.d.ts +13 -13
- package/dist/components/Cell/Cell.interface.d.ts +27 -27
- package/dist/components/Cell.js +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/components/Checkbox/Checkbox.interface.d.ts +43 -44
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Chips/Chips.interface.d.ts +19 -16
- package/dist/components/Chips.js +1 -1
- package/dist/components/Choice/Choice.interface.d.ts +25 -25
- package/dist/components/Code/Code.interface.d.ts +16 -16
- package/dist/components/ContextMenu/ContextMenu.interface.d.ts +18 -18
- package/dist/components/CookiesWarning/CookiesWarning.interface.d.ts +9 -9
- package/dist/components/DadataHintField/DadataHintField.interface.d.ts +3 -3
- package/dist/components/DadataHintField.js +2 -2
- package/dist/components/DatePicker/DatePicker.interface.d.ts +46 -46
- package/dist/components/DatePicker.js +2 -2
- package/dist/components/Divider/Divider.interface.d.ts +23 -23
- package/dist/components/Dot/Dot.interface.d.ts +16 -16
- package/dist/components/Drawer/Drawer.interface.d.ts +2 -2
- package/dist/components/Dropdown/Dropdown.interface.d.ts +26 -26
- package/dist/components/Flex/Flex.interface.d.ts +30 -30
- package/dist/components/FormField/FormFiled.interface.d.ts +45 -45
- package/dist/components/Grid/Grid.interface.d.ts +31 -31
- package/dist/components/Group/Group.interface.d.ts +14 -14
- package/dist/components/Icon/Icon.interface.d.ts +29 -29
- package/dist/components/Image/Image.interface.d.ts +8 -8
- package/dist/components/Input/Input.d.ts +3 -3
- package/dist/components/Input/Input.interface.d.ts +36 -38
- package/dist/components/Input.js +1 -1
- package/dist/components/InputMask/Input.d.ts +3 -3
- package/dist/components/InputMask/Input.interface.d.ts +32 -32
- package/dist/components/InputPassword/InputPassword.interface.d.ts +30 -30
- package/dist/components/Label/Label.interface.d.ts +15 -15
- package/dist/components/Link/Link.interface.d.ts +21 -21
- package/dist/components/List/List.interface.d.ts +11 -11
- package/dist/components/Loader/Loader.interface.d.ts +11 -11
- package/dist/components/Logo/Logo.interface.d.ts +5 -5
- package/dist/components/Logo.js +1 -1
- package/dist/components/Menu/Menu.interface.d.ts +5 -5
- package/dist/components/MenuItem/MenuItem.interface.d.ts +21 -21
- package/dist/components/Modal/Modal.interface.d.ts +4 -4
- package/dist/components/Modal.js +1 -1
- package/dist/components/Notification/Notification.interface.d.ts +16 -16
- package/dist/components/Overlay/Overlay.interface.d.ts +4 -4
- package/dist/components/Pagination/Pagination.interface.d.ts +20 -20
- package/dist/components/Panel/Panel.interface.d.ts +19 -19
- package/dist/components/Radio/Radio.interface.d.ts +25 -25
- package/dist/components/RangeSlider/RangeSlider.interface.d.ts +12 -12
- package/dist/components/Response/Response.interface.d.ts +30 -28
- package/dist/components/Response.js +1 -1
- package/dist/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +9 -9
- package/dist/components/Scrollbar/Scrollbar.interface.d.ts +2 -2
- package/dist/components/Search/Search.interface.d.ts +23 -23
- package/dist/components/Segmented/Segmented.interface.d.ts +14 -14
- package/dist/components/SiteMenu/SiteMenu.interface.d.ts +9 -9
- package/dist/components/Swiper/Swiper.interface.d.ts +7 -7
- package/dist/components/Switch/Switch.interface.d.ts +2 -2
- package/dist/components/Tab/Tab.interface.d.ts +29 -29
- package/dist/components/Text/Text.interface.d.ts +20 -20
- package/dist/components/Textarea/Textarea.interface.d.ts +17 -17
- package/dist/components/Tile/Tile.interface.d.ts +15 -15
- package/dist/components/Title/Title.interface.d.ts +9 -9
- package/dist/components/Tooltip/Tooltip.interface.d.ts +13 -13
- package/dist/components/Video/Video.interface.d.ts +2 -2
- package/dist/components/Wrapper/Wrapper.interface.d.ts +4 -4
- package/dist/components.js +10 -10
- package/dist/constants/componentProps/textColor.js +1 -1
- package/dist/constants/componentProps/textColorActive.js +1 -1
- package/dist/constants/componentProps/textColorHover.js +1 -1
- package/dist/css/components/RangeSlider/RangeSlider.css +4 -1
- package/dist/hooks/styleAttributes.interface.d.ts +4 -4
- package/dist/types/componentProps/appearanceKeys.d.ts +1 -1
- package/dist/types/componentProps/borderColor.d.ts +1 -1
- package/dist/types/componentProps/borderWidth.d.ts +1 -1
- package/dist/types/componentProps/direction.d.ts +1 -1
- package/dist/types/componentProps/fill.d.ts +1 -1
- package/dist/types/componentProps/fillHover.d.ts +1 -1
- package/dist/types/componentProps/height.d.ts +1 -1
- package/dist/types/componentProps/itemColor.d.ts +1 -1
- package/dist/types/componentProps/shape.d.ts +1 -1
- package/dist/types/componentProps/size.d.ts +1 -1
- package/dist/types/componentProps/stateKeys.d.ts +1 -1
- package/dist/types/componentProps/textColor.d.ts +1 -1
- package/dist/types/componentProps/textSize.d.ts +1 -1
- package/dist/types/componentProps/textWeight.d.ts +1 -1
- package/dist/types/componentProps/width.d.ts +1 -1
- package/dist/types/index.d.ts +13 -13
- package/package.json +4 -4
|
@@ -11,7 +11,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
11
11
|
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
12
12
|
|
|
13
13
|
function Logo(props) {
|
|
14
|
-
var className = props.className, href = props.href, link = props.link, mode = props.mode, size = props.size, source = props.source, src = props.src;
|
|
14
|
+
var alt = props.alt, className = props.className, href = props.href, link = props.link, mode = props.mode, size = props.size, source = props.source, src = props.src;
|
|
15
15
|
var alignItemsClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
16
16
|
prefix: 'logo_align-items_',
|
|
17
17
|
propsKey: 'alignItems',
|
|
@@ -30,7 +30,7 @@ function Logo(props) {
|
|
|
30
30
|
});
|
|
31
31
|
// @ts-expect-error
|
|
32
32
|
var logo = useStyles.useStyles(props).styles;
|
|
33
|
-
return (jsxRuntime.jsxRuntimeExports.jsx("div", { className: clsx__default.default(className, 'logo',
|
|
33
|
+
return (jsxRuntime.jsxRuntimeExports.jsx("div", { className: clsx__default.default(className, 'logo', alignClass, alignDirectionClass, alignItemsClass, alt, mode && "logo_mode_".concat(mode), size && "logo_size_".concat(size), widthClass), style: logo, children: link || href ? (jsxRuntime.jsxRuntimeExports.jsxs(Link.LinkWrapper, { href: link || href, children: [' ', jsxRuntime.jsxRuntimeExports.jsx("img", { className: "logo__image", src: src || source })] })) : (jsxRuntime.jsxRuntimeExports.jsx("img", { className: "logo__image", src: src || source })) }));
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
exports.Logo = Logo;
|
|
@@ -71,6 +71,8 @@ var Modal = React__default.default.forwardRef(function Modal(props, ref) {
|
|
|
71
71
|
// Show modal with children content
|
|
72
72
|
var openModal = React.useCallback(function () {
|
|
73
73
|
setIsOpen(true);
|
|
74
|
+
console.warn('======== openModal ========');
|
|
75
|
+
console.log('onOpenModal ', onOpenModal);
|
|
74
76
|
// Callback
|
|
75
77
|
if (typeof onOpenModal === 'function') {
|
|
76
78
|
onOpenModal();
|
|
@@ -118,7 +120,12 @@ var Modal = React__default.default.forwardRef(function Modal(props, ref) {
|
|
|
118
120
|
}
|
|
119
121
|
}, []);
|
|
120
122
|
// Save ref things
|
|
121
|
-
React.useImperativeHandle(ref, function () { return ({ isOpen: isOpen,
|
|
123
|
+
React.useImperativeHandle(ref, function () { return ({ isOpen: isOpen, closeModal: closeModal, modalElement: modalElement, openModal: openModal }); }, [
|
|
124
|
+
isOpen,
|
|
125
|
+
openModal,
|
|
126
|
+
closeModal,
|
|
127
|
+
modalElement,
|
|
128
|
+
]);
|
|
122
129
|
var fillClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
123
130
|
prefix: 'fill_',
|
|
124
131
|
propsKey: 'fill',
|
|
@@ -23,7 +23,7 @@ var responseConfig = {
|
|
|
23
23
|
},
|
|
24
24
|
};
|
|
25
25
|
function Response(props) {
|
|
26
|
-
var after = props.after, before = props.before, appearance = props.appearance, imageSrc = props.imageSrc, className = props.className, title = props.title,
|
|
26
|
+
var after = props.after, before = props.before, appearance = props.appearance, imageSrc = props.imageSrc, className = props.className, title = props.title, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, message = props.message, messageTextColor = props.messageTextColor, messageTextSize = props.messageTextSize, messageTextWeight = props.messageTextWeight, primaryButton = props.primaryButton, primaryButtonAfter = props.primaryButtonAfter, primaryButtonAppearance = props.primaryButtonAppearance, primaryButtonBefore = props.primaryButtonBefore, primaryButtonFill = props.primaryButtonFill, primaryButtonFillHover = props.primaryButtonFillHover, primaryButtonLabel = props.primaryButtonLabel, primaryButtonLabelTextColor = props.primaryButtonLabelTextColor, primaryButtonLabelTextSize = props.primaryButtonLabelTextSize, primaryButtonShape = props.primaryButtonShape, primaryButtonSize = props.primaryButtonSize, primaryButtonWidth = props.primaryButtonWidth, secondaryButton = props.secondaryButton, secondaryButtonAfter = props.secondaryButtonAfter, secondaryButtonAppearance = props.secondaryButtonAppearance, secondaryButtonBefore = props.secondaryButtonBefore, secondaryButtonFill = props.secondaryButtonFill, secondaryButtonFillHover = props.secondaryButtonFillHover, secondaryButtonLabel = props.secondaryButtonLabel, secondaryButtonLabelTextColor = props.secondaryButtonLabelTextColor, secondaryButtonLabelTextSize = props.secondaryButtonLabelTextSize, secondaryButtonShape = props.secondaryButtonShape, secondaryButtonSize = props.secondaryButtonSize, secondaryButtonWidth = props.secondaryButtonWidth, set = props.set, onClickPrimaryButton = props.onClickPrimaryButton, onClickSecondaryButton = props.onClickSecondaryButton;
|
|
27
27
|
var ImageComponent = React.useMemo(function () {
|
|
28
28
|
if (imageSrc) {
|
|
29
29
|
// eslint-disable-next-line react/prop-types
|
|
@@ -71,7 +71,7 @@ function Response(props) {
|
|
|
71
71
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fillHover) &&
|
|
72
72
|
"fill_hover_".concat(appearanceConfig.fillHover).replace(/([A-Z])/g, '-$1').toLowerCase()), shapeClass ||
|
|
73
73
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.shape) &&
|
|
74
|
-
"fill_hover_".concat(appearanceConfig.shape).replace(/([A-Z])/g, '-$1').toLowerCase()), borderColorClass, borderColorHoverClass, borderWidthClass, borderTypeClass, set && "response_set_".concat(set)), style: responseStyles, children: [before, ImageComponent || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.imageSrc), jsxRuntime.jsxRuntimeExports.jsxs(Group.Group, { className: "response__desc", width: "fill", children: [title && (jsxRuntime.jsxRuntimeExports.jsx(Title.Title, { className: "response__title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextSize) || 'h2', textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor), textWeight: titleTextWeight || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextWeight) || '600', children: title })), message && (jsxRuntime.jsxRuntimeExports.jsx(Text.Text, { className: "response__message", size: messageTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.messageTextSize) || 'xxl', textColor: messageTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.messageTextColor), children: message }))] }), (primaryButtonLabel ||
|
|
74
|
+
"fill_hover_".concat(appearanceConfig.shape).replace(/([A-Z])/g, '-$1').toLowerCase()), borderColorClass, borderColorHoverClass, borderWidthClass, borderTypeClass, set && "response_set_".concat(set)), style: responseStyles, children: [before, ImageComponent || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.imageSrc), jsxRuntime.jsxRuntimeExports.jsxs(Group.Group, { className: "response__desc", width: "fill", children: [title && (jsxRuntime.jsxRuntimeExports.jsx(Title.Title, { className: "response__title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextSize) || 'h2', textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor), textWeight: titleTextWeight || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextWeight) || '600', children: title })), message && (jsxRuntime.jsxRuntimeExports.jsx(Text.Text, { className: "response__message", size: messageTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.messageTextSize) || 'xxl', textColor: messageTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.messageTextColor), textWeight: messageTextWeight, children: message }))] }), (primaryButtonLabel ||
|
|
75
75
|
primaryButton ||
|
|
76
76
|
secondaryButtonLabel ||
|
|
77
77
|
secondaryButton ||
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare function Accordion(props:
|
|
1
|
+
import type { iAccordionProps } from './Accordion.interface';
|
|
2
|
+
declare function Accordion(props: iAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace Accordion {
|
|
4
4
|
var defaultProps: {
|
|
5
5
|
initial: never[];
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import type { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
+
import type { tBorderColorProps, tDirectionProps, tFillHoverProps, tFillProps, tHeightProps, tItemColorProps, tShapeProps, tSizeProps, tTextColorProps, tTextWeightProps, tWidthProps } from '../../types';
|
|
4
|
+
interface iAccordionItemEventData {
|
|
5
|
+
id: number | string;
|
|
6
|
+
content?: ReactNode;
|
|
7
|
+
title: string;
|
|
8
|
+
isExpanded: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface iAccordionProps extends iStyleAttributes {
|
|
11
|
+
borderColor?: tBorderColorProps;
|
|
12
|
+
children?: Element | React.ReactNode;
|
|
6
13
|
className: string;
|
|
14
|
+
direction?: tDirectionProps;
|
|
15
|
+
fill?: tFillProps;
|
|
16
|
+
height?: tHeightProps;
|
|
7
17
|
initial: any;
|
|
8
|
-
isMultiple: boolean;
|
|
9
18
|
items?: {
|
|
10
|
-
content: ReactNode;
|
|
11
19
|
id: number | string;
|
|
20
|
+
content?: ReactNode;
|
|
12
21
|
title: string;
|
|
13
22
|
}[];
|
|
23
|
+
shape?: tShapeProps;
|
|
14
24
|
style?: CSSProperties;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
borderColor?: borderColorPropsType;
|
|
19
|
-
direction?: directionPropsType;
|
|
20
|
-
fill?: fillPropsType;
|
|
21
|
-
height?: heightPropsType;
|
|
22
|
-
shape?: shapePropsType;
|
|
23
|
-
width?: widthPropsType;
|
|
25
|
+
width?: tWidthProps;
|
|
26
|
+
isMultiple: boolean;
|
|
27
|
+
onClickItem?: (T: iAccordionItemEventData) => void;
|
|
24
28
|
}
|
|
25
|
-
|
|
29
|
+
interface iAccordionItemProps extends iStyleAttributes {
|
|
30
|
+
id: number | string;
|
|
26
31
|
afterContent?: ReactNode;
|
|
27
32
|
beforeContent?: ReactNode;
|
|
33
|
+
borderColor?: tBorderColorProps;
|
|
28
34
|
children?: ReactNode;
|
|
29
35
|
className?: string;
|
|
30
36
|
content?: ReactNode;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
37
|
+
contentBorderColor?: tBorderColorProps;
|
|
38
|
+
contentFill?: tFillProps;
|
|
39
|
+
contentTextColor?: tTextColorProps;
|
|
40
|
+
contentTextSize?: tSizeProps;
|
|
41
|
+
contentTextWeight?: tTextWeightProps;
|
|
42
|
+
fill?: tFillProps;
|
|
43
|
+
fillDesktop?: tFillProps;
|
|
44
|
+
fillHover?: tFillHoverProps;
|
|
45
|
+
fillMobile?: tFillProps;
|
|
46
|
+
fillTablet?: tFillProps;
|
|
47
|
+
height?: tHeightProps;
|
|
34
48
|
icon?: ReactNode;
|
|
35
|
-
|
|
36
|
-
|
|
49
|
+
iconFill?: tItemColorProps;
|
|
50
|
+
iconFillDesktop?: tItemColorProps;
|
|
51
|
+
iconFillMobile?: tItemColorProps;
|
|
52
|
+
iconFillTablet?: tItemColorProps;
|
|
53
|
+
shape?: tShapeProps;
|
|
54
|
+
shapeDesktop?: tShapeProps;
|
|
55
|
+
shapeMobile?: tShapeProps;
|
|
56
|
+
shapeTablet?: tShapeProps;
|
|
57
|
+
size?: tSizeProps;
|
|
37
58
|
style?: CSSProperties;
|
|
38
59
|
title?: string;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
60
|
+
titleBorderColor?: tBorderColorProps;
|
|
61
|
+
titleFill?: tFillProps;
|
|
62
|
+
titleFillHover?: tFillHoverProps;
|
|
63
|
+
titleTextColor?: tTextColorProps;
|
|
64
|
+
titleTextSize?: tSizeProps;
|
|
65
|
+
titleTextWeight?: tTextWeightProps;
|
|
66
|
+
width?: tWidthProps;
|
|
42
67
|
isExpanded?: boolean;
|
|
43
|
-
onClick?: (
|
|
44
|
-
id: number | string;
|
|
45
|
-
title?: string;
|
|
46
|
-
content?: ReactNode;
|
|
47
|
-
isExpanded?: boolean;
|
|
48
|
-
}) => void;
|
|
49
|
-
fillDesktop?: fillPropsType;
|
|
50
|
-
fillMobile?: fillPropsType;
|
|
51
|
-
fillTablet?: fillPropsType;
|
|
52
|
-
iconFill?: itemColorPropsType;
|
|
53
|
-
iconFillDesktop?: itemColorPropsType;
|
|
54
|
-
iconFillMobile?: itemColorPropsType;
|
|
55
|
-
iconFillTablet?: itemColorPropsType;
|
|
56
|
-
shapeDesktop?: shapePropsType;
|
|
57
|
-
shapeMobile?: shapePropsType;
|
|
58
|
-
shapeTablet?: shapePropsType;
|
|
59
|
-
borderColor?: borderColorPropsType;
|
|
60
|
-
contentBorderColor?: borderColorPropsType;
|
|
61
|
-
titleBorderColor?: borderColorPropsType;
|
|
62
|
-
fill?: fillPropsType;
|
|
63
|
-
fillHover?: fillHoverPropsType;
|
|
64
|
-
contentFill?: fillPropsType;
|
|
65
|
-
titleFill?: fillPropsType;
|
|
66
|
-
titleFillHover?: fillHoverPropsType;
|
|
67
|
-
shape?: shapePropsType;
|
|
68
|
-
width?: widthPropsType;
|
|
69
|
-
height?: heightPropsType;
|
|
68
|
+
onClick?: (T: iAccordionItemEventData) => void;
|
|
70
69
|
}
|
|
70
|
+
export type { iAccordionItemEventData, iAccordionProps, iAccordionItemProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare function AccordionItem(props:
|
|
1
|
+
import type { iAccordionItemProps } from './Accordion.interface';
|
|
2
|
+
declare function AccordionItem(props: iAccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace AccordionItem {
|
|
4
4
|
var defaultProps: {
|
|
5
5
|
iconFill: string;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { ElementType, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export interface IAvatarProps extends
|
|
2
|
+
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
+
import { tFillHoverProps, tFillProps, iconFillSizePropsType, iconSizePropsType, tItemColorProps, tShapeProps, sizePXPropsType, tTextColorProps, tTextSizeProps, tTextWeightProps } from '../../types';
|
|
4
|
+
export interface IAvatarProps extends iStyleAttributes {
|
|
5
5
|
Dot?: ReactNode;
|
|
6
6
|
after?: ReactNode;
|
|
7
7
|
before?: ReactNode;
|
|
8
8
|
className?: string;
|
|
9
|
-
fill?:
|
|
9
|
+
fill?: tFillProps;
|
|
10
10
|
firstName?: string;
|
|
11
11
|
icon?: ElementType;
|
|
12
|
-
iconFill?:
|
|
13
|
-
iconFillHover?:
|
|
12
|
+
iconFill?: tFillProps;
|
|
13
|
+
iconFillHover?: tFillHoverProps;
|
|
14
14
|
iconFillSize?: iconFillSizePropsType;
|
|
15
|
-
iconItemFill?:
|
|
16
|
-
iconShape?:
|
|
15
|
+
iconItemFill?: tItemColorProps;
|
|
16
|
+
iconShape?: tShapeProps;
|
|
17
17
|
iconSize?: iconSizePropsType;
|
|
18
18
|
iconSrc?: string;
|
|
19
19
|
mode?: string;
|
|
20
20
|
secondName?: string;
|
|
21
|
-
shape?:
|
|
21
|
+
shape?: tShapeProps;
|
|
22
22
|
size?: sizePXPropsType;
|
|
23
23
|
src?: string;
|
|
24
|
-
textColor?:
|
|
25
|
-
textSize?:
|
|
26
|
-
textWeight?:
|
|
24
|
+
textColor?: tTextColorProps;
|
|
25
|
+
textSize?: tTextSizeProps;
|
|
26
|
+
textWeight?: tTextWeightProps;
|
|
27
27
|
type?: 'image' | 'text';
|
|
28
28
|
onClick?: () => void;
|
|
29
29
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { borderColorHoverPropsType,
|
|
4
|
-
import {
|
|
2
|
+
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
+
import { borderColorHoverPropsType, tBorderColorProps, borderTypePropsType, tBorderWidthProps, tFillProps, tFillHoverProps, tShapeProps, tSizeProps, tTextColorProps, tTextSizeProps } from '../../types';
|
|
4
|
+
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
5
|
export interface IBadgeThemeColor {
|
|
6
|
-
borderColor?:
|
|
6
|
+
borderColor?: tBorderColorProps;
|
|
7
7
|
borderColorHover?: borderColorHoverPropsType;
|
|
8
8
|
borderType?: borderTypePropsType;
|
|
9
|
-
borderWidth?:
|
|
10
|
-
fill?:
|
|
11
|
-
fillHover?:
|
|
12
|
-
shape?:
|
|
13
|
-
size?:
|
|
14
|
-
textColor?:
|
|
15
|
-
textSize?:
|
|
9
|
+
borderWidth?: tBorderWidthProps;
|
|
10
|
+
fill?: tFillProps;
|
|
11
|
+
fillHover?: tFillHoverProps;
|
|
12
|
+
shape?: tShapeProps;
|
|
13
|
+
size?: tSizeProps;
|
|
14
|
+
textColor?: tTextColorProps;
|
|
15
|
+
textSize?: tTextSizeProps;
|
|
16
16
|
}
|
|
17
|
-
type appearanceKeysType =
|
|
17
|
+
type appearanceKeysType = tAppearanceKeysDefault & {};
|
|
18
18
|
export type badgeAppearanceType = {
|
|
19
19
|
[key in appearanceKeysType]?: IBadgeThemeColor;
|
|
20
20
|
};
|
|
@@ -22,7 +22,7 @@ export interface IBadgeConfig {
|
|
|
22
22
|
appearance: badgeAppearanceType | undefined;
|
|
23
23
|
setAppearance: (newComponent: badgeAppearanceType) => void;
|
|
24
24
|
}
|
|
25
|
-
export interface IBadgeProps extends IBadgeThemeColor,
|
|
25
|
+
export interface IBadgeProps extends IBadgeThemeColor, iStyleAttributes {
|
|
26
26
|
appearance?: appearanceKeysType;
|
|
27
27
|
children?: ReactNode;
|
|
28
28
|
className?: string;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ElementType, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export interface IBreadcrumbsItemProps extends
|
|
2
|
+
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
+
import { tDirectionProps, tFillProps, iconSizePropsType, positionPropsType, tShapeProps, textColorHoverPropsType, tTextColorProps, tTextSizeProps, underlinePropsType, tWidthProps } from '../../types';
|
|
4
|
+
export interface IBreadcrumbsItemProps extends iStyleAttributes {
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
className?: string;
|
|
7
7
|
cursor?: string;
|
|
8
|
-
fill?:
|
|
9
|
-
fillDesktop?:
|
|
10
|
-
fillMobile?:
|
|
11
|
-
fillTablet?:
|
|
8
|
+
fill?: tFillProps;
|
|
9
|
+
fillDesktop?: tFillProps;
|
|
10
|
+
fillMobile?: tFillProps;
|
|
11
|
+
fillTablet?: tFillProps;
|
|
12
12
|
href?: string;
|
|
13
13
|
iconAfter?: ElementType;
|
|
14
14
|
itemIconAfter?: ElementType;
|
|
15
|
-
iconAfterBgFill?:
|
|
16
|
-
iconAfterFill?:
|
|
15
|
+
iconAfterBgFill?: tFillProps;
|
|
16
|
+
iconAfterFill?: tFillProps;
|
|
17
17
|
iconAfterSize?: iconSizePropsType;
|
|
18
18
|
id?: string;
|
|
19
19
|
position?: positionPropsType;
|
|
@@ -21,19 +21,19 @@ export interface IBreadcrumbsItemProps extends TypeStyleAttributes {
|
|
|
21
21
|
positionMobile?: positionPropsType;
|
|
22
22
|
positionTablet?: positionPropsType;
|
|
23
23
|
set?: string;
|
|
24
|
-
shape?:
|
|
25
|
-
shapeDesktop?:
|
|
26
|
-
shapeMobile?:
|
|
27
|
-
shapeTablet?:
|
|
24
|
+
shape?: tShapeProps;
|
|
25
|
+
shapeDesktop?: tShapeProps;
|
|
26
|
+
shapeMobile?: tShapeProps;
|
|
27
|
+
shapeTablet?: tShapeProps;
|
|
28
28
|
tag?: string;
|
|
29
29
|
text?: string;
|
|
30
|
-
textColor?:
|
|
30
|
+
textColor?: tTextColorProps;
|
|
31
31
|
textColorHover?: textColorHoverPropsType;
|
|
32
|
-
textSize?:
|
|
32
|
+
textSize?: tTextSizeProps;
|
|
33
33
|
onClick?: () => void;
|
|
34
34
|
underline?: underlinePropsType;
|
|
35
35
|
}
|
|
36
|
-
export interface IBreadcrumbsProps extends
|
|
36
|
+
export interface IBreadcrumbsProps extends iStyleAttributes {
|
|
37
37
|
breadcrumbsList?: {
|
|
38
38
|
href?: string;
|
|
39
39
|
id?: string;
|
|
@@ -41,18 +41,18 @@ export interface IBreadcrumbsProps extends TypeStyleAttributes {
|
|
|
41
41
|
}[];
|
|
42
42
|
children?: ReactNode;
|
|
43
43
|
className?: string;
|
|
44
|
-
direction?:
|
|
45
|
-
directionDesktop?:
|
|
46
|
-
directionMobile?:
|
|
47
|
-
directionTablet?:
|
|
48
|
-
fill?:
|
|
49
|
-
fillDesktop?:
|
|
50
|
-
fillMobile?:
|
|
51
|
-
fillTablet?:
|
|
52
|
-
iconAfterBgFill?:
|
|
53
|
-
iconAfterFill?:
|
|
44
|
+
direction?: tDirectionProps;
|
|
45
|
+
directionDesktop?: tDirectionProps;
|
|
46
|
+
directionMobile?: tDirectionProps;
|
|
47
|
+
directionTablet?: tDirectionProps;
|
|
48
|
+
fill?: tFillProps;
|
|
49
|
+
fillDesktop?: tFillProps;
|
|
50
|
+
fillMobile?: tFillProps;
|
|
51
|
+
fillTablet?: tFillProps;
|
|
52
|
+
iconAfterBgFill?: tFillProps;
|
|
53
|
+
iconAfterFill?: tFillProps;
|
|
54
54
|
iconAfterSize?: iconSizePropsType;
|
|
55
|
-
itemTextColor?:
|
|
55
|
+
itemTextColor?: tTextColorProps;
|
|
56
56
|
itemTextColorHover?: textColorHoverPropsType;
|
|
57
57
|
itemUnderline?: underlinePropsType;
|
|
58
58
|
position?: positionPropsType;
|
|
@@ -60,12 +60,12 @@ export interface IBreadcrumbsProps extends TypeStyleAttributes {
|
|
|
60
60
|
positionMobile?: positionPropsType;
|
|
61
61
|
positionTablet?: positionPropsType;
|
|
62
62
|
set?: string;
|
|
63
|
-
shape?:
|
|
64
|
-
shapeDesktop?:
|
|
65
|
-
shapeMobile?:
|
|
66
|
-
shapeTablet?:
|
|
67
|
-
width?:
|
|
68
|
-
widthDesktop?:
|
|
69
|
-
widthMobile?:
|
|
70
|
-
widthTablet?:
|
|
63
|
+
shape?: tShapeProps;
|
|
64
|
+
shapeDesktop?: tShapeProps;
|
|
65
|
+
shapeMobile?: tShapeProps;
|
|
66
|
+
shapeTablet?: tShapeProps;
|
|
67
|
+
width?: tWidthProps;
|
|
68
|
+
widthDesktop?: tWidthProps;
|
|
69
|
+
widthMobile?: tWidthProps;
|
|
70
|
+
widthTablet?: tWidthProps;
|
|
71
71
|
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { CSSProperties, ElementType, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
+
import { tBorderColorProps, borderTypePropsType, tBorderWidthProps, elevationPropsType, tFillHoverProps, tFillProps, iconFillSizePropsType, iconSizePropsType, tItemColorProps, tShapeProps, tSizeProps, textColorHoverPropsType, tTextColorProps, tTextSizeProps, tTextWeightProps, textWrapPropsType, tWidthProps } from '../../types';
|
|
4
|
+
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
5
|
export interface IButtonThemeColor {
|
|
6
|
-
borderColor?:
|
|
6
|
+
borderColor?: tBorderColorProps;
|
|
7
7
|
borderType?: borderTypePropsType;
|
|
8
|
-
borderWidth?:
|
|
8
|
+
borderWidth?: tBorderWidthProps;
|
|
9
9
|
elevation?: elevationPropsType;
|
|
10
|
-
fill?:
|
|
11
|
-
fillHover?:
|
|
12
|
-
fillIcon?:
|
|
13
|
-
fillIconAfter?:
|
|
14
|
-
fillIconBefore?:
|
|
15
|
-
iconAfterFill?:
|
|
10
|
+
fill?: tFillProps;
|
|
11
|
+
fillHover?: tFillHoverProps;
|
|
12
|
+
fillIcon?: tFillProps;
|
|
13
|
+
fillIconAfter?: tFillProps;
|
|
14
|
+
fillIconBefore?: tFillProps;
|
|
15
|
+
iconAfterFill?: tItemColorProps;
|
|
16
16
|
iconAfterFillSize?: iconFillSizePropsType;
|
|
17
|
-
iconAfterShape?:
|
|
17
|
+
iconAfterShape?: tShapeProps;
|
|
18
18
|
iconAfterSize?: iconSizePropsType;
|
|
19
19
|
iconAfterSrc?: string;
|
|
20
|
-
iconBeforeFill?:
|
|
20
|
+
iconBeforeFill?: tItemColorProps;
|
|
21
21
|
iconBeforeFillSize?: iconFillSizePropsType;
|
|
22
|
-
iconBeforeShape?:
|
|
22
|
+
iconBeforeShape?: tShapeProps;
|
|
23
23
|
iconBeforeSize?: iconSizePropsType;
|
|
24
24
|
iconBeforeSrc?: string;
|
|
25
|
-
iconFill?:
|
|
25
|
+
iconFill?: tItemColorProps;
|
|
26
26
|
iconFillSize?: iconFillSizePropsType;
|
|
27
|
-
iconShape?:
|
|
27
|
+
iconShape?: tShapeProps;
|
|
28
28
|
iconSize?: iconSizePropsType;
|
|
29
29
|
label?: string;
|
|
30
|
-
labelTextColor?:
|
|
30
|
+
labelTextColor?: tTextColorProps;
|
|
31
31
|
labelTextColorHover?: textColorHoverPropsType;
|
|
32
|
-
labelTextSize?:
|
|
33
|
-
labelTextWeight?:
|
|
32
|
+
labelTextSize?: tTextSizeProps;
|
|
33
|
+
labelTextWeight?: tTextWeightProps;
|
|
34
34
|
labelTextWrap?: textWrapPropsType;
|
|
35
|
-
loaderFill?:
|
|
36
|
-
loaderItemFill?:
|
|
35
|
+
loaderFill?: tFillProps;
|
|
36
|
+
loaderItemFill?: tItemColorProps;
|
|
37
37
|
loaderSet?: string;
|
|
38
|
-
shape?:
|
|
39
|
-
size?:
|
|
40
|
-
width?:
|
|
38
|
+
shape?: tShapeProps;
|
|
39
|
+
size?: tSizeProps;
|
|
40
|
+
width?: tWidthProps;
|
|
41
41
|
}
|
|
42
|
-
type appearanceKeysType =
|
|
42
|
+
type appearanceKeysType = tAppearanceKeysDefault & {};
|
|
43
43
|
export type buttonAppearanceType = {
|
|
44
44
|
[key in appearanceKeysType]?: IButtonThemeColor;
|
|
45
45
|
};
|
|
@@ -47,7 +47,7 @@ export interface IButtonConfig {
|
|
|
47
47
|
appearance: buttonAppearanceType | undefined;
|
|
48
48
|
setAppearance: (newComponent: buttonAppearanceType) => void;
|
|
49
49
|
}
|
|
50
|
-
export interface IButtonProps extends IButtonThemeColor,
|
|
50
|
+
export interface IButtonProps extends IButtonThemeColor, iStyleAttributes {
|
|
51
51
|
Badge?: ReactNode;
|
|
52
52
|
after?: ReactNode;
|
|
53
53
|
appearance?: appearanceKeysType;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { captionPositionPropsType, fillGradientPropsType,
|
|
2
|
+
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
+
import { captionPositionPropsType, fillGradientPropsType, tFillProps } from '../../types';
|
|
4
4
|
export interface ICaptionThemeColor {
|
|
5
|
-
fill:
|
|
6
|
-
fillMobile:
|
|
7
|
-
fillTablet:
|
|
8
|
-
fillDesktop:
|
|
5
|
+
fill: tFillProps;
|
|
6
|
+
fillMobile: tFillProps;
|
|
7
|
+
fillTablet: tFillProps;
|
|
8
|
+
fillDesktop: tFillProps;
|
|
9
9
|
fillGradient: fillGradientPropsType;
|
|
10
10
|
fillGradientMobile: fillGradientPropsType;
|
|
11
11
|
fillGradientTablet: fillGradientPropsType;
|
|
@@ -15,7 +15,7 @@ export interface ICaptionThemeColor {
|
|
|
15
15
|
positionTablet: captionPositionPropsType;
|
|
16
16
|
positionDesktop: captionPositionPropsType;
|
|
17
17
|
}
|
|
18
|
-
export interface ICaptionProps extends ICaptionThemeColor, Omit<
|
|
18
|
+
export interface ICaptionProps extends ICaptionThemeColor, Omit<iStyleAttributes, 'position'> {
|
|
19
19
|
children?: ReactNode;
|
|
20
20
|
className?: string;
|
|
21
21
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { ElementType, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export interface ICardProps extends
|
|
2
|
+
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
+
import { tShapeProps, tSizeProps, tTextColorProps, tTextSizeProps } from '../../types';
|
|
4
|
+
export interface ICardProps extends iStyleAttributes {
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
className?: string;
|
|
7
|
-
size?:
|
|
7
|
+
size?: tSizeProps;
|
|
8
8
|
src?: string;
|
|
9
9
|
text?: string;
|
|
10
|
-
textSize?:
|
|
11
|
-
textColor?:
|
|
10
|
+
textSize?: tTextSizeProps;
|
|
11
|
+
textColor?: tTextColorProps;
|
|
12
12
|
textTag?: ElementType;
|
|
13
13
|
title?: string;
|
|
14
|
-
titleSize?:
|
|
14
|
+
titleSize?: tTextSizeProps;
|
|
15
15
|
titleTag?: ElementType;
|
|
16
|
-
titleColor?:
|
|
16
|
+
titleColor?: tTextColorProps;
|
|
17
17
|
image?: ReactNode;
|
|
18
|
-
imageShape?:
|
|
18
|
+
imageShape?: tShapeProps;
|
|
19
19
|
type?: string;
|
|
20
|
-
shape?:
|
|
21
|
-
shapeMobile?:
|
|
22
|
-
shapeTablet?:
|
|
23
|
-
shapeDesktop?:
|
|
20
|
+
shape?: tShapeProps;
|
|
21
|
+
shapeMobile?: tShapeProps;
|
|
22
|
+
shapeTablet?: tShapeProps;
|
|
23
|
+
shapeDesktop?: tShapeProps;
|
|
24
24
|
width?: string;
|
|
25
25
|
widthMobile?: string;
|
|
26
26
|
widthTablet?: string;
|