@scbt-ecom/ui 0.0.30 → 0.0.31
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/client.d.ts +2 -0
- package/dist/client.js +921 -0
- package/dist/cn-uh4jkx7b.js +2892 -0
- package/dist/configs/index.d.ts +1 -0
- package/dist/configs/tailwindConfigBase.d.ts +2 -0
- package/dist/server.d.ts +2 -0
- package/dist/server.js +15 -0
- package/dist/shared/constants/api.d.ts +2 -0
- package/dist/shared/constants/designSystem/colors.d.ts +120 -0
- package/dist/shared/constants/designSystem/index.d.ts +3 -0
- package/dist/shared/constants/designSystem/others.d.ts +16 -0
- package/dist/shared/constants/designSystem/typography.d.ts +75 -0
- package/dist/shared/constants/index.d.ts +2 -0
- package/dist/shared/hooks/index.d.ts +4 -0
- package/dist/shared/hooks/useBoolean.d.ts +3 -0
- package/dist/shared/hooks/useClickOutside.d.ts +2 -0
- package/dist/shared/hooks/useControlledForm.d.ts +7 -0
- package/dist/shared/hooks/useDebounce.d.ts +3 -0
- package/dist/shared/ui/Badge.d.ts +6 -0
- package/dist/shared/ui/Breadcrumbs.d.ts +15 -0
- package/dist/shared/ui/ButtonIcon.d.ts +17 -0
- package/dist/shared/ui/CustomLink.d.ts +15 -0
- package/dist/shared/ui/Document.d.ts +13 -0
- package/dist/shared/ui/Heading.d.ts +12 -0
- package/dist/shared/ui/Hint.d.ts +21 -0
- package/dist/shared/ui/Loader.d.ts +21 -0
- package/dist/shared/ui/PhoneView.d.ts +12 -0
- package/dist/shared/ui/Portal.d.ts +7 -0
- package/dist/shared/ui/ProgressBar.d.ts +18 -0
- package/dist/shared/ui/ResponsiveContainer.d.ts +6 -0
- package/dist/shared/ui/Section.d.ts +6 -0
- package/dist/shared/ui/Skeleton.d.ts +4 -0
- package/dist/shared/ui/TabsSwitcher.d.ts +33 -0
- package/dist/shared/ui/accordion/Accordion.d.ts +13 -0
- package/dist/shared/ui/accordion/index.d.ts +1 -0
- package/dist/shared/ui/accordion/model/types.d.ts +17 -0
- package/dist/shared/ui/accordion/ui/AccordionHeader.d.ts +8 -0
- package/dist/shared/ui/brandLogos.d.ts +5 -0
- package/dist/shared/ui/button/Button.d.ts +17 -0
- package/dist/shared/ui/button/index.d.ts +1 -0
- package/dist/shared/ui/button/model/helpers.d.ts +2 -0
- package/dist/shared/ui/calendar/Calendar.d.ts +20 -0
- package/dist/shared/ui/calendar/index.d.ts +1 -0
- package/dist/shared/ui/calendar/model/animation.d.ts +18 -0
- package/dist/shared/ui/calendar/model/classes.d.ts +24 -0
- package/dist/shared/ui/calendar/model/helpers.d.ts +9 -0
- package/dist/shared/ui/calendar/model/hooks/index.d.ts +2 -0
- package/dist/shared/ui/calendar/model/hooks/useCalendarDropdowns.d.ts +9 -0
- package/dist/shared/ui/calendar/model/hooks/useDatePicker.d.ts +19 -0
- package/dist/shared/ui/calendar/ui/CalendarHeader.d.ts +15 -0
- package/dist/shared/ui/calendar/ui/Dropdown.d.ts +10 -0
- package/dist/shared/ui/calendar/ui/NavigationArrows.d.ts +5 -0
- package/dist/shared/ui/calendar/ui/Weekdays.d.ts +1 -0
- package/dist/shared/ui/calendar/ui/index.d.ts +2 -0
- package/dist/shared/ui/formControlElements/CheckboxControl.d.ts +13 -0
- package/dist/shared/ui/formControlElements/FormControl.d.ts +3 -0
- package/dist/shared/ui/formControlElements/InputControl.d.ts +6 -0
- package/dist/shared/ui/formControlElements/InputControlMask.d.ts +10 -0
- package/dist/shared/ui/formControlElements/RadioControl.d.ts +26 -0
- package/dist/shared/ui/formControlElements/SelectControl.d.ts +27 -0
- package/dist/shared/ui/formControlElements/SwitchControl.d.ts +16 -0
- package/dist/shared/ui/formControlElements/TextareaControl.d.ts +11 -0
- package/dist/shared/ui/formControlElements/calendarControl/CalendarControl.d.ts +13 -0
- package/dist/shared/ui/formControlElements/calendarControl/hooks/index.d.ts +2 -0
- package/dist/shared/ui/formControlElements/calendarControl/hooks/useCalendar.d.ts +16 -0
- package/dist/shared/ui/formControlElements/calendarControl/hooks/useCalendarDropdowns.d.ts +9 -0
- package/{lib/shared/ui/formControlElements/calendarControl/index.ts → dist/shared/ui/formControlElements/calendarControl/index.d.ts} +1 -1
- package/dist/shared/ui/formControlElements/calendarControl/model/helpers.d.ts +24 -0
- package/dist/shared/ui/formControlElements/calendarControl/model/types.d.ts +33 -0
- package/dist/shared/ui/formControlElements/calendarControl/ui/DaysOfMonth.d.ts +10 -0
- package/dist/shared/ui/formControlElements/calendarControl/ui/DaysOfWeek.d.ts +6 -0
- package/dist/shared/ui/formControlElements/calendarControl/ui/Dropdown.d.ts +11 -0
- package/dist/shared/ui/formControlElements/calendarControl/ui/Header.d.ts +14 -0
- package/dist/shared/ui/formControlElements/calendarControl/ui/Navigation.d.ts +9 -0
- package/dist/shared/ui/formControlElements/calendarControl/ui/OptionsList.d.ts +5 -0
- package/dist/shared/ui/formControlElements/calendarControl/ui/index.d.ts +4 -0
- package/dist/shared/ui/formControlElements/dadata/DadataInputControl.d.ts +14 -0
- package/{lib/shared/ui/formControlElements/dadata/index.ts → dist/shared/ui/formControlElements/dadata/index.d.ts} +1 -1
- package/dist/shared/ui/formControlElements/dadata/model/api.d.ts +2 -0
- package/dist/shared/ui/formControlElements/dadata/model/helpers.d.ts +7 -0
- package/dist/shared/ui/formControlElements/dadata/model/types.d.ts +42 -0
- package/dist/shared/ui/formControlElements/dadata/model/useDadata.d.ts +7 -0
- package/{lib/shared/ui/formControlElements/index.ts → dist/shared/ui/formControlElements/index.d.ts} +10 -10
- package/dist/shared/ui/formControlElements/model/classes-types.d.ts +18 -0
- package/dist/shared/ui/formControlElements/model/index.d.ts +2 -0
- package/dist/shared/ui/formControlElements/model/props-types.d.ts +20 -0
- package/dist/shared/ui/formControlElements/ui/FieldAttachment.d.ts +13 -0
- package/dist/shared/ui/formControlElements/ui/FieldContainer.d.ts +14 -0
- package/dist/shared/ui/formControlElements/ui/FieldWrapper.d.ts +14 -0
- package/dist/shared/ui/formControlElements/ui/MessageView.d.ts +13 -0
- package/dist/shared/ui/formControlElements/ui/index.d.ts +4 -0
- package/dist/shared/ui/icon/Icon.d.ts +10 -0
- package/{lib/shared/ui/icon/index.ts → dist/shared/ui/icon/index.d.ts} +2 -2
- package/dist/shared/ui/icon/sprite.gen.d.ts +17 -0
- package/dist/shared/ui/index.d.ts +21 -0
- package/dist/shared/ui/popover/Popover.d.ts +23 -0
- package/dist/shared/ui/popover/index.d.ts +1 -0
- package/dist/shared/ui/table/Table.d.ts +17 -0
- package/dist/shared/ui/table/index.d.ts +1 -0
- package/dist/shared/ui/table/type.d.ts +21 -0
- package/dist/shared/utils/capitalize.d.ts +1 -0
- package/dist/shared/utils/cn.d.ts +2 -0
- package/dist/shared/utils/deepCompare.d.ts +1 -0
- package/dist/shared/utils/formatToDate.d.ts +1 -0
- package/dist/shared/utils/index.d.ts +5 -0
- package/dist/shared/utils/isClient.d.ts +1 -0
- package/dist/shared/validation/index.d.ts +3 -0
- package/dist/shared/validation/messages.d.ts +12 -0
- package/dist/shared/validation/regExp.d.ts +3 -0
- package/dist/shared/validation/zodValidation/calendar.d.ts +2 -0
- package/dist/shared/validation/zodValidation/dadataFio.d.ts +6 -0
- package/dist/shared/validation/zodValidation/index.d.ts +2 -0
- package/dist/widgets/Advantages.d.ts +17 -0
- package/dist/widgets/banner/Banner.d.ts +28 -0
- package/dist/widgets/banner/index.d.ts +1 -0
- package/dist/widgets/banner/model/helpers.d.ts +4 -0
- package/dist/widgets/banner/ui/BannerButtonsGroup.d.ts +12 -0
- package/{lib/widgets/index.ts → dist/widgets/index.d.ts} +3 -3
- package/dist/widgets/pageHeader/PageHeader.d.ts +16 -0
- package/{lib/widgets/pageHeader/index.ts → dist/widgets/pageHeader/index.d.ts} +1 -1
- package/package.json +4 -1
- package/.env +0 -2
- package/.eslintrc.cjs +0 -134
- package/.github/workflows/npm-publish.yml +0 -22
- package/.github/workflows/publish.yml +0 -49
- package/.github/workflows/setup-node/action.yml +0 -22
- package/.husky/pre-commit +0 -1
- package/.prettierrc +0 -19
- package/.storybook/main.ts +0 -44
- package/.storybook/preview.tsx +0 -37
- package/chromatic.config.json +0 -5
- package/index.html +0 -13
- package/lib/client.ts +0 -80
- package/lib/configs/index.ts +0 -1
- package/lib/configs/tailwindConfigBase.ts +0 -110
- package/lib/server.ts +0 -2
- package/lib/shared/constants/api.ts +0 -2
- package/lib/shared/constants/designSystem/colors.ts +0 -117
- package/lib/shared/constants/designSystem/index.ts +0 -3
- package/lib/shared/constants/designSystem/others.ts +0 -18
- package/lib/shared/constants/designSystem/typography.ts +0 -88
- package/lib/shared/constants/index.ts +0 -2
- package/lib/shared/hooks/index.ts +0 -4
- package/lib/shared/hooks/useBoolean.ts +0 -12
- package/lib/shared/hooks/useClickOutside.ts +0 -19
- package/lib/shared/hooks/useControlledForm.ts +0 -16
- package/lib/shared/hooks/useDebounce.ts +0 -38
- package/lib/shared/style.css +0 -74
- package/lib/shared/ui/Badge.tsx +0 -20
- package/lib/shared/ui/Breadcrumbs.tsx +0 -57
- package/lib/shared/ui/ButtonIcon.tsx +0 -52
- package/lib/shared/ui/CustomLink.tsx +0 -70
- package/lib/shared/ui/Document.tsx +0 -51
- package/lib/shared/ui/Heading.tsx +0 -33
- package/lib/shared/ui/Hint.tsx +0 -62
- package/lib/shared/ui/Loader.tsx +0 -58
- package/lib/shared/ui/PhoneView.tsx +0 -23
- package/lib/shared/ui/Portal.tsx +0 -9
- package/lib/shared/ui/ProgressBar.tsx +0 -43
- package/lib/shared/ui/ResponsiveContainer.tsx +0 -11
- package/lib/shared/ui/Section.tsx +0 -15
- package/lib/shared/ui/Skeleton.tsx +0 -9
- package/lib/shared/ui/TabsSwitcher.tsx +0 -80
- package/lib/shared/ui/accordion/Accordion.tsx +0 -36
- package/lib/shared/ui/accordion/index.ts +0 -1
- package/lib/shared/ui/accordion/model/types.ts +0 -20
- package/lib/shared/ui/accordion/ui/AccordionHeader.tsx +0 -35
- package/lib/shared/ui/brandLogos.tsx +0 -14
- package/lib/shared/ui/button/Button.tsx +0 -111
- package/lib/shared/ui/button/index.ts +0 -1
- package/lib/shared/ui/button/model/helpers.ts +0 -16
- package/lib/shared/ui/calendar/Calendar.tsx +0 -228
- package/lib/shared/ui/calendar/index.ts +0 -231
- package/lib/shared/ui/calendar/model/animation.ts +0 -112
- package/lib/shared/ui/calendar/model/classes.ts +0 -34
- package/lib/shared/ui/calendar/model/helpers.ts +0 -51
- package/lib/shared/ui/calendar/model/hooks/index.ts +0 -2
- package/lib/shared/ui/calendar/model/hooks/useCalendarDropdowns.ts +0 -38
- package/lib/shared/ui/calendar/model/hooks/useDatePicker.ts +0 -103
- package/lib/shared/ui/calendar/ui/CalendarHeader.tsx +0 -54
- package/lib/shared/ui/calendar/ui/Dropdown.tsx +0 -75
- package/lib/shared/ui/calendar/ui/NavigationArrows.tsx +0 -23
- package/lib/shared/ui/calendar/ui/Weekdays.tsx +0 -16
- package/lib/shared/ui/calendar/ui/index.ts +0 -2
- package/lib/shared/ui/formControlElements/CheckboxControl.tsx +0 -92
- package/lib/shared/ui/formControlElements/FormControl.tsx +0 -5
- package/lib/shared/ui/formControlElements/InputControl.tsx +0 -68
- package/lib/shared/ui/formControlElements/InputControlMask.tsx +0 -80
- package/lib/shared/ui/formControlElements/RadioControl.tsx +0 -130
- package/lib/shared/ui/formControlElements/SelectControl.tsx +0 -185
- package/lib/shared/ui/formControlElements/SwitchControl.tsx +0 -79
- package/lib/shared/ui/formControlElements/TextareaControl.tsx +0 -92
- package/lib/shared/ui/formControlElements/calendarControl/CalendarControl.tsx +0 -175
- package/lib/shared/ui/formControlElements/calendarControl/hooks/index.ts +0 -2
- package/lib/shared/ui/formControlElements/calendarControl/hooks/useCalendar.tsx +0 -86
- package/lib/shared/ui/formControlElements/calendarControl/hooks/useCalendarDropdowns.ts +0 -38
- package/lib/shared/ui/formControlElements/calendarControl/model/helpers.ts +0 -60
- package/lib/shared/ui/formControlElements/calendarControl/model/types.ts +0 -44
- package/lib/shared/ui/formControlElements/calendarControl/ui/DaysOfMonth.tsx +0 -53
- package/lib/shared/ui/formControlElements/calendarControl/ui/DaysOfWeek.tsx +0 -28
- package/lib/shared/ui/formControlElements/calendarControl/ui/Dropdown.tsx +0 -62
- package/lib/shared/ui/formControlElements/calendarControl/ui/Header.tsx +0 -51
- package/lib/shared/ui/formControlElements/calendarControl/ui/Navigation.tsx +0 -32
- package/lib/shared/ui/formControlElements/calendarControl/ui/OptionsList.tsx +0 -44
- package/lib/shared/ui/formControlElements/calendarControl/ui/index.ts +0 -4
- package/lib/shared/ui/formControlElements/dadata/DadataInputControl.tsx +0 -132
- package/lib/shared/ui/formControlElements/dadata/model/api.ts +0 -25
- package/lib/shared/ui/formControlElements/dadata/model/helpers.ts +0 -76
- package/lib/shared/ui/formControlElements/dadata/model/types.ts +0 -52
- package/lib/shared/ui/formControlElements/dadata/model/useDadata.ts +0 -25
- package/lib/shared/ui/formControlElements/model/classes-types.ts +0 -22
- package/lib/shared/ui/formControlElements/model/index.ts +0 -2
- package/lib/shared/ui/formControlElements/model/props-types.ts +0 -26
- package/lib/shared/ui/formControlElements/ui/FieldAttachment.tsx +0 -66
- package/lib/shared/ui/formControlElements/ui/FieldContainer.tsx +0 -36
- package/lib/shared/ui/formControlElements/ui/FieldWrapper.tsx +0 -55
- package/lib/shared/ui/formControlElements/ui/MessageView.tsx +0 -37
- package/lib/shared/ui/formControlElements/ui/index.ts +0 -4
- package/lib/shared/ui/icon/Icon.tsx +0 -43
- package/lib/shared/ui/icon/sprite.gen.ts +0 -121
- package/lib/shared/ui/index.ts +0 -56
- package/lib/shared/ui/popover/Popover.tsx +0 -77
- package/lib/shared/ui/popover/index.ts +0 -1
- package/lib/shared/ui/table/Table.tsx +0 -143
- package/lib/shared/ui/table/index.ts +0 -1
- package/lib/shared/ui/table/type.ts +0 -30
- package/lib/shared/utils/capitalize.ts +0 -6
- package/lib/shared/utils/cn.ts +0 -6
- package/lib/shared/utils/deepCompare.ts +0 -1
- package/lib/shared/utils/formatToDate.ts +0 -5
- package/lib/shared/utils/index.ts +0 -5
- package/lib/shared/utils/isClient.ts +0 -1
- package/lib/shared/validation/index.ts +0 -3
- package/lib/shared/validation/messages.ts +0 -12
- package/lib/shared/validation/regExp.ts +0 -5
- package/lib/shared/validation/zodValidation/calendar.ts +0 -32
- package/lib/shared/validation/zodValidation/dadataFio.ts +0 -67
- package/lib/shared/validation/zodValidation/index.ts +0 -2
- package/lib/vite-env.d.ts +0 -2
- package/lib/widgets/Advantages.tsx +0 -45
- package/lib/widgets/banner/Banner.tsx +0 -62
- package/lib/widgets/banner/index.ts +0 -1
- package/lib/widgets/banner/model/helpers.ts +0 -44
- package/lib/widgets/banner/money.png +0 -0
- package/lib/widgets/banner/ui/BannerButtonsGroup.tsx +0 -30
- package/lib/widgets/pageHeader/PageHeader.tsx +0 -54
- package/postcss.config.mjs +0 -8
- package/src/App.tsx +0 -9
- package/src/app/providers/RootProvider.tsx +0 -11
- package/src/app/providers/index.ts +0 -1
- package/src/app/providers/model/types.ts +0 -5
- package/src/app/providers/ui/ToasterProvider.tsx +0 -23
- package/src/app/providers/ui/index.ts +0 -1
- package/src/configs/setup.ts +0 -9
- package/src/configs/storybook.config.ts +0 -23
- package/src/main.tsx +0 -10
- package/src/stories/primitives/Accordion.stories.tsx +0 -66
- package/src/stories/primitives/Badge.stories.tsx +0 -28
- package/src/stories/primitives/Breadcrumbs.stories.tsx +0 -29
- package/src/stories/primitives/Button/Button.stories.tsx +0 -149
- package/src/stories/primitives/Button/Button.test.tsx +0 -150
- package/src/stories/primitives/ButtonIcon.stories.tsx +0 -75
- package/src/stories/primitives/CustomLink.stories.tsx +0 -64
- package/src/stories/primitives/Document.stories.tsx +0 -36
- package/src/stories/primitives/Heading.stories.tsx +0 -29
- package/src/stories/primitives/Hint.stories.tsx +0 -82
- package/src/stories/primitives/Icon.stories.tsx +0 -36
- package/src/stories/primitives/Loader.stories.tsx +0 -39
- package/src/stories/primitives/PhoneView.stories.tsx +0 -22
- package/src/stories/primitives/Popover.stories.tsx +0 -41
- package/src/stories/primitives/ProgressBar.stories.tsx +0 -68
- package/src/stories/primitives/Skeleton.stories.tsx +0 -21
- package/src/stories/primitives/Table.stories.tsx +0 -44
- package/src/stories/primitives/TabsSwitcher.stories.tsx +0 -34
- package/src/stories/primitives/formControl/Calendar.stories.tsx +0 -61
- package/src/stories/primitives/formControl/CalendarControl.stories.tsx +0 -39
- package/src/stories/primitives/formControl/CheckboxControl.stories.tsx +0 -64
- package/src/stories/primitives/formControl/DadataInputControl.stories.tsx +0 -83
- package/src/stories/primitives/formControl/FormControlAllFields.stories.tsx +0 -25
- package/src/stories/primitives/formControl/InputControl.stories.tsx +0 -77
- package/src/stories/primitives/formControl/RadioContol.stories.tsx +0 -63
- package/src/stories/primitives/formControl/SelectControl.stories.tsx +0 -117
- package/src/stories/primitives/formControl/SwitchControl.stories.tsx +0 -51
- package/src/stories/primitives/formControl/TextareaControl.stories.tsx +0 -55
- package/src/stories/primitives/formControl/inputControlMask.stories.tsx +0 -69
- package/src/stories/widgets/Advantages.stories.tsx +0 -42
- package/src/stories/widgets/Banner.stories.tsx +0 -40
- package/src/stories/widgets/PageHeader.stories.tsx +0 -33
- package/src/storybookHelpers/actions.tsx +0 -5
- package/src/storybookHelpers/index.ts +0 -2
- package/src/storybookHelpers/reactHookForm/index.ts +0 -3
- package/src/storybookHelpers/reactHookForm/model/mockData.ts +0 -21
- package/src/storybookHelpers/reactHookForm/model/mocks.tsx +0 -71
- package/src/storybookHelpers/reactHookForm/model/types.ts +0 -62
- package/src/storybookHelpers/reactHookForm/ui/StorybookFieldsMapper.tsx +0 -76
- package/src/storybookHelpers/reactHookForm/ui/StorybookFormProvider.tsx +0 -43
- package/src/storybookHelpers/reactHookForm/ui/index.ts +0 -2
- package/src/storybookHelpers/table/utils/defaultValue.ts +0 -51
- package/static/arrows/arrowCircle.svg +0 -18
- package/static/arrows/arrowLink.svg +0 -3
- package/static/arrows/arrowRight.svg +0 -3
- package/static/brandLogos/logoBlack.svg +0 -14
- package/static/brandLogos/logoBusiness.svg +0 -80
- package/static/brandLogos/logoGray.svg +0 -56
- package/static/brandLogos/logoInsurance.svg +0 -124
- package/static/brandLogos/logoMain.svg +0 -14
- package/static/brandLogos/logoWhite.svg +0 -56
- package/static/files/documentFilled.svg +0 -4
- package/static/files/documentOutline.svg +0 -4
- package/static/general/calendar.svg +0 -3
- package/static/general/check.svg +0 -6
- package/static/general/close.svg +0 -12
- package/static/info/warningCircle.svg +0 -5
- package/tailwind.config.ts +0 -9
- package/tsconfig.json +0 -33
- package/tsconfig.node.json +0 -11
- package/vite.config.ts +0 -63
- package/vitest.config.mjs +0 -12
- /package/{public → dist}/sprites/arrows.svg +0 -0
- /package/{public → dist}/sprites/brandLogos.svg +0 -0
- /package/{public → dist}/sprites/common.svg +0 -0
- /package/{public → dist}/sprites/files.svg +0 -0
- /package/{public → dist}/sprites/general.svg +0 -0
- /package/{public → dist}/sprites/info.svg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { tailwindConfigBase } from './tailwindConfigBase';
|
package/dist/server.d.ts
ADDED
package/dist/server.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { j as s, c as r } from "./cn-uh4jkx7b.js";
|
|
2
|
+
const n = ({ children: e, className: t }) => /* @__PURE__ */ s.jsx(
|
|
3
|
+
"span",
|
|
4
|
+
{
|
|
5
|
+
className: r(
|
|
6
|
+
"min-h-6 min-w-6 px-2 py-1 flex items-center justify-center rounded-full desk-body-regular-s bg-color-primary-default text-color-white text-nowrap",
|
|
7
|
+
t
|
|
8
|
+
),
|
|
9
|
+
children: e
|
|
10
|
+
}
|
|
11
|
+
), a = ({ children: e, className: t }) => /* @__PURE__ */ s.jsx("div", { className: r("w-full px-4 m-auto desktop:max-w-[1188px]", t), children: e });
|
|
12
|
+
export {
|
|
13
|
+
n as Badge,
|
|
14
|
+
a as ResponsiveContainer
|
|
15
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
declare const allowedBackgroundColors: {
|
|
2
|
+
readonly transparent: string;
|
|
3
|
+
readonly current: string;
|
|
4
|
+
readonly inherit: string;
|
|
5
|
+
readonly initial: string;
|
|
6
|
+
readonly 'blue-grey-100': "#f3f4f7";
|
|
7
|
+
readonly 'blue-grey-200': "#eaedf1";
|
|
8
|
+
readonly 'blue-grey-300': "#d4dbe2";
|
|
9
|
+
readonly 'blue-grey-500': "#a9b6c5";
|
|
10
|
+
readonly footer: "#40465a";
|
|
11
|
+
readonly negative: "#f42500";
|
|
12
|
+
readonly 'negative-light': "#ffd2ca";
|
|
13
|
+
readonly positive: "#76bc21";
|
|
14
|
+
readonly 'positive-light': "#e4f6ce";
|
|
15
|
+
readonly 'primary-default': "#003790";
|
|
16
|
+
readonly 'primary-focus': "#2477ff";
|
|
17
|
+
readonly 'primary-hover': "#042e73";
|
|
18
|
+
readonly 'primary-light-default': "#f0f4f9";
|
|
19
|
+
readonly 'primary-tr-focus': "#0037901f";
|
|
20
|
+
readonly 'primary-tr-hover': "#00379014";
|
|
21
|
+
readonly 'primary-tr-pressed': "#00379033";
|
|
22
|
+
readonly 'secondary-default': "#fc5055";
|
|
23
|
+
readonly 'secondary-hover': "#f12f34";
|
|
24
|
+
readonly warning: "#f49f00";
|
|
25
|
+
readonly 'warning-light': "#ffeecc";
|
|
26
|
+
readonly white: "#ffffff";
|
|
27
|
+
readonly 'primary-disabled': "#809bc7";
|
|
28
|
+
readonly 'secondary-disabled': "#FFB7BF";
|
|
29
|
+
};
|
|
30
|
+
declare const allowedTextColors: {
|
|
31
|
+
readonly transparent: string;
|
|
32
|
+
readonly current: string;
|
|
33
|
+
readonly inherit: string;
|
|
34
|
+
readonly initial: string;
|
|
35
|
+
readonly dark: "#292929";
|
|
36
|
+
readonly disabled: "#a9b6c5";
|
|
37
|
+
readonly footer: "#c3c3c3";
|
|
38
|
+
readonly negative: "#f42500";
|
|
39
|
+
readonly positive: "#76bc21";
|
|
40
|
+
readonly 'primary-default': "#003790";
|
|
41
|
+
readonly 'primary-hover': "#042e73";
|
|
42
|
+
readonly secondary: "#40465a";
|
|
43
|
+
readonly tetriary: "#5a6e85";
|
|
44
|
+
readonly warning: "#f49f00";
|
|
45
|
+
readonly white: "#ffffff";
|
|
46
|
+
readonly 'primary-disabled': "#809bc7";
|
|
47
|
+
readonly 'blue-grey-600': "#94a4b7";
|
|
48
|
+
};
|
|
49
|
+
declare const allowedBannersBackgroundColors: {
|
|
50
|
+
readonly transparent: string;
|
|
51
|
+
readonly current: string;
|
|
52
|
+
readonly inherit: string;
|
|
53
|
+
readonly initial: string;
|
|
54
|
+
readonly 'barvcray-200': "#ebeef4";
|
|
55
|
+
readonly 'barvcray-300': "#dde1e8";
|
|
56
|
+
readonly 'greymint-200': "#deecee";
|
|
57
|
+
readonly 'lavender-100': "#f7f7ff";
|
|
58
|
+
readonly 'lavender-200': "#ecedfa";
|
|
59
|
+
readonly 'lavender-300': "#d0d3f1";
|
|
60
|
+
readonly 'lightblue-300': "#bed3ec";
|
|
61
|
+
readonly 'mint-200': "#e4f5ed";
|
|
62
|
+
readonly 'salmon-200': "#faecec";
|
|
63
|
+
readonly 'skyblue-100': "#f4f8fe";
|
|
64
|
+
readonly 'skyblue-200': "#e7f3ff";
|
|
65
|
+
readonly 'skyblue-300': "#d9edff";
|
|
66
|
+
};
|
|
67
|
+
declare const allowedIconsColors: {
|
|
68
|
+
readonly transparent: string;
|
|
69
|
+
readonly current: string;
|
|
70
|
+
readonly inherit: string;
|
|
71
|
+
readonly initial: string;
|
|
72
|
+
readonly 'accent-default': "#2477ff";
|
|
73
|
+
readonly 'accent-hover': "#0053da";
|
|
74
|
+
readonly 'blue-grey-100': "#f3f4f7";
|
|
75
|
+
readonly 'blue-grey-600': "#94a4b7";
|
|
76
|
+
readonly 'blue-grey-700': "#69809a";
|
|
77
|
+
readonly 'blue-grey-800': "#5a6e85";
|
|
78
|
+
readonly 'dark-default': "#292929";
|
|
79
|
+
readonly 'dark-hover': "#535353";
|
|
80
|
+
readonly disabled: "#a9b6c5";
|
|
81
|
+
readonly 'negative-default': "#f42500";
|
|
82
|
+
readonly 'negative-hover': "#c31e00";
|
|
83
|
+
readonly 'positive-default': "#76bc21";
|
|
84
|
+
readonly 'positive-hover': "#598d19";
|
|
85
|
+
readonly 'primary-default': "#003790";
|
|
86
|
+
readonly 'primary-hover': "#042e73";
|
|
87
|
+
readonly 'secondary-dark-default': "#f12f34";
|
|
88
|
+
readonly 'secondary-dark-hover': "#c40309";
|
|
89
|
+
readonly 'secondary-default': "#fc5055";
|
|
90
|
+
readonly 'secondary-hover': "#f12f34";
|
|
91
|
+
readonly 'warning-default': "#f49f00";
|
|
92
|
+
readonly 'warning-hover': "#d68b00";
|
|
93
|
+
readonly white: "#ffffff";
|
|
94
|
+
readonly 'primary-disabled': "#809bc7";
|
|
95
|
+
readonly footer: "#C3C3C3";
|
|
96
|
+
};
|
|
97
|
+
declare const allowedStrokeColors: {
|
|
98
|
+
readonly transparent: string;
|
|
99
|
+
readonly current: string;
|
|
100
|
+
readonly inherit: string;
|
|
101
|
+
readonly initial: string;
|
|
102
|
+
readonly 'blue-grey-500': "#a9b6c5";
|
|
103
|
+
readonly 'blue-grey-700': "#69809a";
|
|
104
|
+
readonly 'blue-grey-800': "#5a6e85";
|
|
105
|
+
readonly dark: "#292929";
|
|
106
|
+
readonly negative: "#f42500";
|
|
107
|
+
readonly positive: "#76bc21";
|
|
108
|
+
readonly 'primary-default': "#003790";
|
|
109
|
+
readonly 'primary-focus': "#2477ff";
|
|
110
|
+
readonly 'primary-hover': "#042e73";
|
|
111
|
+
readonly 'primary-light': "#f0f4f9";
|
|
112
|
+
readonly 'secondary-default': "#fc5055";
|
|
113
|
+
readonly 'secondary-hover': "#f12f34";
|
|
114
|
+
readonly 'warm-grey-200': "#e4e4e4";
|
|
115
|
+
readonly 'warm-grey-300': "#c3c3c3";
|
|
116
|
+
readonly warning: "#f49f00";
|
|
117
|
+
readonly white: "#ffffff";
|
|
118
|
+
readonly 'primary-disabled': "#809bc7";
|
|
119
|
+
};
|
|
120
|
+
export { allowedStrokeColors, allowedBannersBackgroundColors, allowedIconsColors, allowedTextColors, allowedBackgroundColors };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const allowedBorderRadius: {
|
|
2
|
+
none: string;
|
|
3
|
+
sm: string;
|
|
4
|
+
md: string;
|
|
5
|
+
lg: string;
|
|
6
|
+
full: string;
|
|
7
|
+
};
|
|
8
|
+
declare const allowedBackgroundDeg: {
|
|
9
|
+
30: string;
|
|
10
|
+
45: string;
|
|
11
|
+
80: string;
|
|
12
|
+
90: string;
|
|
13
|
+
110: string;
|
|
14
|
+
180: string;
|
|
15
|
+
};
|
|
16
|
+
export { allowedBorderRadius, allowedBackgroundDeg };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
declare const allowedFontSize: {
|
|
2
|
+
12: string;
|
|
3
|
+
14: string;
|
|
4
|
+
16: string;
|
|
5
|
+
18: string;
|
|
6
|
+
20: string;
|
|
7
|
+
24: string;
|
|
8
|
+
28: string;
|
|
9
|
+
32: string;
|
|
10
|
+
40: string;
|
|
11
|
+
};
|
|
12
|
+
declare const allowedLineHeight: {
|
|
13
|
+
16: string;
|
|
14
|
+
20: string;
|
|
15
|
+
22: string;
|
|
16
|
+
24: string;
|
|
17
|
+
30: string;
|
|
18
|
+
32: string;
|
|
19
|
+
40: string;
|
|
20
|
+
48: string;
|
|
21
|
+
};
|
|
22
|
+
declare const allowedTextStyles: {
|
|
23
|
+
'.mob-headline-bold-m': {
|
|
24
|
+
'@apply font-bold text-28 leading-32': string;
|
|
25
|
+
};
|
|
26
|
+
'.mob-headline-bold-s': {
|
|
27
|
+
'@apply font-bold text-24 leading-30': string;
|
|
28
|
+
};
|
|
29
|
+
'.mob-title-bold-l': {
|
|
30
|
+
'@apply font-bold text-20 leading-24': string;
|
|
31
|
+
};
|
|
32
|
+
'.mob-title-bold-m': {
|
|
33
|
+
'@apply font-bold text-18 leading-22': string;
|
|
34
|
+
};
|
|
35
|
+
'.mob-body-medium-l': {
|
|
36
|
+
'@apply font-medium text-16 leading-22': string;
|
|
37
|
+
};
|
|
38
|
+
'.mob-body-regular-l': {
|
|
39
|
+
'@apply font-normal text-16 leading-22': string;
|
|
40
|
+
};
|
|
41
|
+
'.mob-body-medium-m': {
|
|
42
|
+
'@apply font-medium text-14 leading-20': string;
|
|
43
|
+
};
|
|
44
|
+
'.mob-body-regular-m': {
|
|
45
|
+
'@apply font-normal text-14 leading-20': string;
|
|
46
|
+
};
|
|
47
|
+
'.mob-body-regular-s': {
|
|
48
|
+
'@apply font-normal text-12 leading-20': string;
|
|
49
|
+
};
|
|
50
|
+
'.desk-headline-bold-l': {
|
|
51
|
+
'@apply font-bold text-40 leading-48': string;
|
|
52
|
+
};
|
|
53
|
+
'.desk-headline-bold-m': {
|
|
54
|
+
'@apply font-bold text-32 leading-40': string;
|
|
55
|
+
};
|
|
56
|
+
'.desk-title-bold-l': {
|
|
57
|
+
'@apply font-bold text-24 leading-30': string;
|
|
58
|
+
};
|
|
59
|
+
'.desk-title-bold-s': {
|
|
60
|
+
'@apply font-bold text-18 leading-22': string;
|
|
61
|
+
};
|
|
62
|
+
'.desk-body-medium-l': {
|
|
63
|
+
'@apply font-medium text-16 leading-22': string;
|
|
64
|
+
};
|
|
65
|
+
'.desk-body-regular-l': {
|
|
66
|
+
'@apply font-normal text-16 leading-22': string;
|
|
67
|
+
};
|
|
68
|
+
'.desk-body-regular-m': {
|
|
69
|
+
'@apply font-normal text-14 leading-20': string;
|
|
70
|
+
};
|
|
71
|
+
'.desk-body-regular-s': {
|
|
72
|
+
'@apply font-normal text-12 leading-16': string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
export { allowedLineHeight, allowedFontSize, allowedTextStyles };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UseFormProps } from 'react-hook-form';
|
|
2
|
+
import { TypeOf, ZodTypeAny } from 'zod';
|
|
3
|
+
interface UseControlledForm<T extends ZodTypeAny> extends UseFormProps<TypeOf<T>> {
|
|
4
|
+
schema: T;
|
|
5
|
+
}
|
|
6
|
+
export declare const useControlledForm: <T extends ZodTypeAny>({ schema, ...formConfig }: UseControlledForm<T>) => import('react-hook-form').UseFormReturn<TypeOf<T>, any, undefined>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const debounce: <Params extends unknown[]>(callback: (...args: Params) => void, delay: number) => ((...args: Params) => void);
|
|
2
|
+
export declare const useDebounceCallback: <Params extends unknown[], Return>(callback: (...args: Params) => Return, delay: number) => (...args: Params) => void;
|
|
3
|
+
export declare const useDebounceValue: <Value>(value: Value, delay: number) => Value;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface IBreadcrumbLink {
|
|
2
|
+
label: string;
|
|
3
|
+
path: string;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface IBreadcrumbLinkWithoutPath {
|
|
7
|
+
label: string;
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export type TLinksList = [...IBreadcrumbLink[], IBreadcrumbLinkWithoutPath];
|
|
11
|
+
export interface IBreadcrumbsProps {
|
|
12
|
+
linksList: TLinksList;
|
|
13
|
+
}
|
|
14
|
+
export declare const Breadcrumbs: ({ linksList }: IBreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentProps, ReactElement } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
type TButtonClasses = {
|
|
4
|
+
button: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
};
|
|
7
|
+
declare const buttonConfig: (props?: ({
|
|
8
|
+
intent?: "primary" | "secondary" | "ghost" | null | undefined;
|
|
9
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
10
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
|
+
type TButtonProps = VariantProps<typeof buttonConfig>;
|
|
12
|
+
export interface IButtonIconProps extends ComponentProps<'button'>, TButtonProps {
|
|
13
|
+
children: ReactElement;
|
|
14
|
+
classes?: Partial<TButtonClasses>;
|
|
15
|
+
}
|
|
16
|
+
export declare const ButtonIcon: import('react').ForwardRefExoticComponent<Omit<IButtonIconProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { TAllowedIcons } from './icon/Icon';
|
|
4
|
+
declare const customLinkConfig: (props?: ({
|
|
5
|
+
intent?: "white" | "blue" | null | undefined;
|
|
6
|
+
withIcon?: boolean | null | undefined;
|
|
7
|
+
disabled?: boolean | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
type TCustomLinkConfig = VariantProps<typeof customLinkConfig>;
|
|
10
|
+
export interface ICustomLinkProps extends TCustomLinkConfig, ComponentProps<'a'> {
|
|
11
|
+
Component: 'a';
|
|
12
|
+
icon?: TAllowedIcons;
|
|
13
|
+
}
|
|
14
|
+
export declare const CustomLink: ({ Component, intent, children, withIcon, disabled, icon, ...props }: ICustomLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const iconConfig: (props?: ({
|
|
3
|
+
intent?: "outline" | "filled" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
type TIconConfig = VariantProps<typeof iconConfig>;
|
|
6
|
+
export interface IDocumentProps extends TIconConfig {
|
|
7
|
+
text: string;
|
|
8
|
+
size: number;
|
|
9
|
+
sizeType: 'КБ' | 'МБ';
|
|
10
|
+
href: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const Document: ({ text, size, sizeType, href, intent }: IDocumentProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const headingConfig: (props?: ({
|
|
4
|
+
as?: "h1" | "h2" | "h3" | "h4" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface IHeadingProps extends VariantProps<typeof headingConfig> {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4';
|
|
10
|
+
}
|
|
11
|
+
export declare const Heading: ({ as, children, className, ...props }: IHeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TooltipContentProps } from '@radix-ui/react-tooltip';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
type TAdditionalClasses = {
|
|
4
|
+
content: string;
|
|
5
|
+
arrow: string;
|
|
6
|
+
trigger: string;
|
|
7
|
+
};
|
|
8
|
+
export interface IHintContentProps extends TooltipContentProps {
|
|
9
|
+
delayDuration?: number;
|
|
10
|
+
sideOffset?: number;
|
|
11
|
+
align?: 'end' | 'center' | 'start';
|
|
12
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
13
|
+
defaultOpen?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface IHintProps extends IHintContentProps {
|
|
16
|
+
triggerElement: React.ReactElement;
|
|
17
|
+
children: React.ReactElement | string;
|
|
18
|
+
classes?: Partial<TAdditionalClasses>;
|
|
19
|
+
}
|
|
20
|
+
export declare const Hint: ({ triggerElement, children, delayDuration, sideOffset, align, side, defaultOpen, classes, ...contentProps }: IHintProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactElement } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const wrapperConfig: (props?: ({
|
|
4
|
+
position?: "fixed" | "absolute" | "static" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
declare const loaderConfig: (props?: ({
|
|
7
|
+
intent?: "primary" | "secondary" | null | undefined;
|
|
8
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
+
type ILoaderClasses = {
|
|
11
|
+
wrapper: string;
|
|
12
|
+
loader: string;
|
|
13
|
+
text: string;
|
|
14
|
+
};
|
|
15
|
+
export interface ILoaderProps extends VariantProps<typeof loaderConfig>, VariantProps<typeof wrapperConfig>, HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
intent?: 'primary' | 'secondary';
|
|
17
|
+
text?: ReactElement | string;
|
|
18
|
+
classes?: Partial<ILoaderClasses>;
|
|
19
|
+
}
|
|
20
|
+
export declare const Loader: ({ size, classes, intent, position, text, ...props }: ILoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface IPhoneViewClasses {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
link: string;
|
|
4
|
+
text: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IPhoneViewProps {
|
|
7
|
+
phone: string;
|
|
8
|
+
text: string;
|
|
9
|
+
classes?: Partial<IPhoneViewClasses>;
|
|
10
|
+
}
|
|
11
|
+
export declare const PhoneView: ({ phone, text, classes }: IPhoneViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
type IProgressBarClasses = {
|
|
3
|
+
wrapper: string;
|
|
4
|
+
topContent: string;
|
|
5
|
+
bottomContent: string;
|
|
6
|
+
progressBar: string;
|
|
7
|
+
progress: string;
|
|
8
|
+
loader: string;
|
|
9
|
+
};
|
|
10
|
+
export interface IProgressBarProps {
|
|
11
|
+
topContent?: ReactElement;
|
|
12
|
+
bottomContent?: ReactElement;
|
|
13
|
+
progress: number;
|
|
14
|
+
maxPercent?: number;
|
|
15
|
+
classes?: Partial<IProgressBarClasses>;
|
|
16
|
+
}
|
|
17
|
+
export declare const ProgressBar: ({ topContent, bottomContent, progress, maxPercent, classes }: IProgressBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface IResponsiveContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const ResponsiveContainer: ({ children, className }: IResponsiveContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface ISectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Section: ({ children, className, ...props }: ISectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @param {string} id - для триггера и для контента должен совпадать
|
|
4
|
+
*/
|
|
5
|
+
interface ITabsClasses {
|
|
6
|
+
root: string;
|
|
7
|
+
list: string;
|
|
8
|
+
trigger: string;
|
|
9
|
+
content: string;
|
|
10
|
+
contentsWrapper: string;
|
|
11
|
+
}
|
|
12
|
+
interface ITabContent {
|
|
13
|
+
id: string;
|
|
14
|
+
body: React.ReactElement | string;
|
|
15
|
+
accordion?: {
|
|
16
|
+
title: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
interface ITabTrigger {
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ITabRenderContent {
|
|
24
|
+
triggers: ITabTrigger[];
|
|
25
|
+
contents: ITabContent[];
|
|
26
|
+
}
|
|
27
|
+
export interface ITabsSwitcherProps {
|
|
28
|
+
renderContent: ITabRenderContent;
|
|
29
|
+
defaultActiveTabId?: string;
|
|
30
|
+
classes?: Partial<ITabsClasses>;
|
|
31
|
+
}
|
|
32
|
+
export declare const TabsSwitcher: ({ renderContent, defaultActiveTabId, classes }: ITabsSwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TAccordionHeaderClasses, TAccordionRootClasses } from './model/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* @param {string[]} defaultOpen - По умолчанию открытые аккордеоны необходимо указать тот же label явно руками.
|
|
5
|
+
* Пример defaultValue={['Заголовок аккордеона 1', 'Заголовок аккордеона 2']}
|
|
6
|
+
*/
|
|
7
|
+
export interface IAccordionProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
label: string | React.ReactElement;
|
|
10
|
+
classes?: Partial<TAccordionHeaderClasses> & Partial<TAccordionRootClasses>;
|
|
11
|
+
defaultOpen?: string[];
|
|
12
|
+
}
|
|
13
|
+
export declare const Accordion: ({ children, label, classes, defaultOpen }: IAccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Accordion, type IAccordionProps } from './Accordion';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export type TAccordionHeaderClasses = {
|
|
3
|
+
trigger: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
header: string;
|
|
6
|
+
inner: string;
|
|
7
|
+
};
|
|
8
|
+
export type TAccordionRootClasses = {
|
|
9
|
+
item: string;
|
|
10
|
+
content: string;
|
|
11
|
+
contentInner: string;
|
|
12
|
+
accordion: string;
|
|
13
|
+
};
|
|
14
|
+
export interface IAccordionItem {
|
|
15
|
+
label: string;
|
|
16
|
+
content: React.ReactNode;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TAccordionHeaderClasses } from '../model/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
interface IAccordionHeaderProps {
|
|
4
|
+
children?: React.ReactElement | string;
|
|
5
|
+
classes?: Partial<TAccordionHeaderClasses>;
|
|
6
|
+
}
|
|
7
|
+
export declare const AccordionHeader: React.ForwardRefExoticComponent<IAccordionHeaderProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
export type TBrandLogoVariant = 'main' | 'white' | 'gray' | 'black' | 'business' | 'insurance';
|
|
3
|
+
type TBrandLogosVariants = Record<TBrandLogoVariant, ReactElement>;
|
|
4
|
+
export declare const brandLogos: TBrandLogosVariants;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentProps, ReactElement } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const buttonConfig: (props?: ({
|
|
4
|
+
intent?: "primary" | "secondary" | "ghost" | "red" | null | undefined;
|
|
5
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
6
|
+
textFormat?: "capitalize" | "uppercase" | "lowercase" | "initial" | null | undefined;
|
|
7
|
+
isLoading?: boolean | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
type TButtonConfig = VariantProps<typeof buttonConfig>;
|
|
10
|
+
export type TButtonIntents = 'primary' | 'secondary' | 'ghost' | 'red';
|
|
11
|
+
export interface IButtonProps extends ComponentProps<'button'>, TButtonConfig {
|
|
12
|
+
iconLeft?: ReactElement;
|
|
13
|
+
iconRight?: ReactElement;
|
|
14
|
+
isLoading?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const Button: import('react').ForwardRefExoticComponent<Omit<IButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Button, type IButtonProps } from './Button';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DayPickerProps, PropsRange, PropsSingle } from 'react-day-picker';
|
|
2
|
+
import { FieldValues } from 'react-hook-form';
|
|
3
|
+
import { TAdditionalInputClassesWithAttachment, TControlledInputProps } from '../formControlElements/model';
|
|
4
|
+
type TCalendarClasses = Partial<TAdditionalInputClassesWithAttachment> & {
|
|
5
|
+
root: string;
|
|
6
|
+
wrapper: string;
|
|
7
|
+
calendar: string;
|
|
8
|
+
};
|
|
9
|
+
export type TCalendarMode = 'range' | 'single';
|
|
10
|
+
type TCalendarCommonProps = PropsSingle | PropsRange;
|
|
11
|
+
export type ICalendarProps<T extends FieldValues> = TControlledInputProps<T> & TCalendarCommonProps & DayPickerProps & {
|
|
12
|
+
maskFormat?: string;
|
|
13
|
+
mask?: string | string[];
|
|
14
|
+
allowEmptyFormatting?: boolean;
|
|
15
|
+
classes?: Partial<TCalendarClasses>;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
onClickIcon?: (...args: unknown[]) => unknown;
|
|
18
|
+
};
|
|
19
|
+
export declare const Calendar: <T extends FieldValues>(props: ICalendarProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Calendar, type ICalendarProps } from './Calendar';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const calendarAnimation: {
|
|
2
|
+
initial: {
|
|
3
|
+
opacity: number;
|
|
4
|
+
y: number;
|
|
5
|
+
};
|
|
6
|
+
animate: {
|
|
7
|
+
opacity: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
10
|
+
exit: {
|
|
11
|
+
opacity: number;
|
|
12
|
+
y: number;
|
|
13
|
+
};
|
|
14
|
+
transition: {
|
|
15
|
+
duration: number;
|
|
16
|
+
ease: string;
|
|
17
|
+
};
|
|
18
|
+
};
|