@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
package/dist/client.js
ADDED
|
@@ -0,0 +1,921 @@
|
|
|
1
|
+
import { j as l, c as w } from "./cn-uh4jkx7b.js";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import y, { forwardRef as Ne } from "react";
|
|
4
|
+
import * as Ae from "react-dom";
|
|
5
|
+
function X(e) {
|
|
6
|
+
var t, o, n = "";
|
|
7
|
+
if (typeof e == "string" || typeof e == "number") n += e;
|
|
8
|
+
else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (o = X(e[t])) && (n && (n += " "), n += o);
|
|
9
|
+
else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
10
|
+
return n;
|
|
11
|
+
}
|
|
12
|
+
function Re() {
|
|
13
|
+
for (var e, t, o = 0, n = ""; o < arguments.length; ) (e = arguments[o++]) && (t = X(e)) && (n && (n += " "), n += t);
|
|
14
|
+
return n;
|
|
15
|
+
}
|
|
16
|
+
const J = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Q = Re, V = (e, t) => (o) => {
|
|
17
|
+
var n;
|
|
18
|
+
if ((t == null ? void 0 : t.variants) == null) return Q(e, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
|
|
19
|
+
const { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((c) => {
|
|
20
|
+
const p = o == null ? void 0 : o[c], f = i == null ? void 0 : i[c];
|
|
21
|
+
if (p === null) return null;
|
|
22
|
+
const v = J(p) || J(f);
|
|
23
|
+
return r[c][v];
|
|
24
|
+
}), d = o && Object.entries(o).reduce((c, p) => {
|
|
25
|
+
let [f, v] = p;
|
|
26
|
+
return v === void 0 || (c[f] = v), c;
|
|
27
|
+
}, {}), u = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((c, p) => {
|
|
28
|
+
let { class: f, className: v, ...h } = p;
|
|
29
|
+
return Object.entries(h).every((g) => {
|
|
30
|
+
let [b, x] = g;
|
|
31
|
+
return Array.isArray(x) ? x.includes({
|
|
32
|
+
...i,
|
|
33
|
+
...d
|
|
34
|
+
}[b]) : {
|
|
35
|
+
...i,
|
|
36
|
+
...d
|
|
37
|
+
}[b] === x;
|
|
38
|
+
}) ? [
|
|
39
|
+
...c,
|
|
40
|
+
f,
|
|
41
|
+
v
|
|
42
|
+
] : c;
|
|
43
|
+
}, []);
|
|
44
|
+
return Q(e, a, u, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
|
|
45
|
+
}, Pe = V("", {
|
|
46
|
+
variants: {
|
|
47
|
+
position: {
|
|
48
|
+
absolute: "absolute",
|
|
49
|
+
static: "static",
|
|
50
|
+
fixed: "fixed"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
defaultVariants: {
|
|
54
|
+
position: "static"
|
|
55
|
+
}
|
|
56
|
+
}), Ie = V("border-2 border-solid block animate-spin rounded-full", {
|
|
57
|
+
variants: {
|
|
58
|
+
intent: {
|
|
59
|
+
primary: "border-white border-b-transparent",
|
|
60
|
+
secondary: "border-primary-default border-b-transparent"
|
|
61
|
+
},
|
|
62
|
+
size: {
|
|
63
|
+
sm: "size-5 border-2",
|
|
64
|
+
md: "size-8 border-2",
|
|
65
|
+
lg: "size-12 border-4"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
defaultVariants: {
|
|
69
|
+
size: "md",
|
|
70
|
+
intent: "primary"
|
|
71
|
+
}
|
|
72
|
+
}), je = ({ size: e = "md", classes: t, intent: o = "secondary", position: n = "static", text: r, ...i }) => /* @__PURE__ */ l.jsxs("div", { className: w(Pe({ position: n }), { "flex flex-col items-center gap-2": r }, t == null ? void 0 : t.wrapper), children: [
|
|
73
|
+
/* @__PURE__ */ l.jsx("span", { "data-testid": "loader", className: w(Ie({ size: e, intent: o }), t == null ? void 0 : t.loader), ...i }),
|
|
74
|
+
r && /* @__PURE__ */ l.jsx("p", { className: w("desk-body-regular-l text-color-dark", t == null ? void 0 : t.text), children: r })
|
|
75
|
+
] }), Se = (e) => {
|
|
76
|
+
switch (e) {
|
|
77
|
+
case "ghost":
|
|
78
|
+
case "secondary":
|
|
79
|
+
return "secondary";
|
|
80
|
+
case "primary":
|
|
81
|
+
case "red":
|
|
82
|
+
return "primary";
|
|
83
|
+
default:
|
|
84
|
+
return e;
|
|
85
|
+
}
|
|
86
|
+
}, _e = V(
|
|
87
|
+
"relative flex items-center justify-center gap-4 cursor-pointer rounded-sm w-[216px] outline-offset-4 outline-transparent outline-2 desk-body-regular-l transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
|
|
88
|
+
{
|
|
89
|
+
variants: {
|
|
90
|
+
intent: {
|
|
91
|
+
primary: "bg-color-primary-default text-color-white outline-offset-[3px] hover:bg-color-primary-hover active:bg-color-primary-hover focus:bg-color-primary-default focus:outline-primary-focus disabled:bg-color-primary-disabled",
|
|
92
|
+
secondary: "bg-transparent text-color-primary-default border border-solid border-primary-default hover:bg-color-primary-tr-hover active:bg-color-primary-tr-pressed active:border-primary-hover focus:outline-primary-focus focus:bg-color-primary-tr-focus disabled:bg-color-blue-grey-200 disabled:text-color-primary-disabled disabled:border-transparent",
|
|
93
|
+
ghost: "bg-transparent text-color-primary-default hover:bg-color-primary-tr-hover hover:text-color-primary-hover focus:bg-color-primary-tr-focus focus:outline-primary-focus active:bg-color-primary-tr-pressed active:text-color-primary-hover disabled:text-color-primary-disabled disabled:bg-transparent",
|
|
94
|
+
red: "bg-color-secondary-default text-color-white outline-offset-[3px] hover:bg-color-secondary-hover disabled:bg-color-secondary-disabled active:bg-color-secondary-hover focus:bg-color-secondary-default focus:outline-primary-focus"
|
|
95
|
+
},
|
|
96
|
+
size: {
|
|
97
|
+
sm: "h-10",
|
|
98
|
+
md: "h-12",
|
|
99
|
+
lg: "h-14"
|
|
100
|
+
},
|
|
101
|
+
textFormat: {
|
|
102
|
+
capitalize: "capitalize",
|
|
103
|
+
uppercase: "uppercase",
|
|
104
|
+
lowercase: "lowercase",
|
|
105
|
+
initial: "initial"
|
|
106
|
+
},
|
|
107
|
+
isLoading: {
|
|
108
|
+
true: "",
|
|
109
|
+
false: ""
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
compoundVariants: [
|
|
113
|
+
{
|
|
114
|
+
intent: "primary",
|
|
115
|
+
isLoading: !0,
|
|
116
|
+
class: "!bg-color-primary-default"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
intent: "secondary",
|
|
120
|
+
isLoading: !0,
|
|
121
|
+
class: "!bg-color-transparent !border-primary-hover"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
intent: "ghost",
|
|
125
|
+
isLoading: !0,
|
|
126
|
+
class: "!bg-color-blue-grey-200"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
intent: "red",
|
|
130
|
+
isLoading: !0,
|
|
131
|
+
class: "!bg-color-secondary-default"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
defaultVariants: {
|
|
135
|
+
intent: "primary",
|
|
136
|
+
size: "md",
|
|
137
|
+
textFormat: "initial"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
), xt = Ne(
|
|
141
|
+
({
|
|
142
|
+
intent: e,
|
|
143
|
+
size: t,
|
|
144
|
+
className: o,
|
|
145
|
+
children: n,
|
|
146
|
+
type: r = "button",
|
|
147
|
+
iconLeft: i,
|
|
148
|
+
iconRight: a,
|
|
149
|
+
disabled: d = !1,
|
|
150
|
+
isLoading: u = !1,
|
|
151
|
+
textFormat: c,
|
|
152
|
+
...p
|
|
153
|
+
}, f) => /* @__PURE__ */ l.jsx(
|
|
154
|
+
"button",
|
|
155
|
+
{
|
|
156
|
+
ref: f,
|
|
157
|
+
type: r,
|
|
158
|
+
disabled: d || u,
|
|
159
|
+
className: w(_e({ intent: e, size: t, textFormat: c, isLoading: u }), o),
|
|
160
|
+
...p,
|
|
161
|
+
children: u ? /* @__PURE__ */ l.jsx(je, { size: "sm", intent: Se(e) }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
162
|
+
i && /* @__PURE__ */ l.jsx("span", { className: "size-5 flex items-center justify-center", children: i }),
|
|
163
|
+
n,
|
|
164
|
+
a && /* @__PURE__ */ l.jsx("span", { className: "size-5 flex items-center justify-center", children: a })
|
|
165
|
+
] })
|
|
166
|
+
}
|
|
167
|
+
)
|
|
168
|
+
);
|
|
169
|
+
function $(e, t = []) {
|
|
170
|
+
let o = [];
|
|
171
|
+
function n(i, a) {
|
|
172
|
+
const d = s.createContext(a), u = o.length;
|
|
173
|
+
o = [...o, a];
|
|
174
|
+
function c(f) {
|
|
175
|
+
const { scope: v, children: h, ...g } = f, b = (v == null ? void 0 : v[e][u]) || d, x = s.useMemo(() => g, Object.values(g));
|
|
176
|
+
return /* @__PURE__ */ l.jsx(b.Provider, { value: x, children: h });
|
|
177
|
+
}
|
|
178
|
+
function p(f, v) {
|
|
179
|
+
const h = (v == null ? void 0 : v[e][u]) || d, g = s.useContext(h);
|
|
180
|
+
if (g) return g;
|
|
181
|
+
if (a !== void 0) return a;
|
|
182
|
+
throw new Error(`\`${f}\` must be used within \`${i}\``);
|
|
183
|
+
}
|
|
184
|
+
return c.displayName = i + "Provider", [c, p];
|
|
185
|
+
}
|
|
186
|
+
const r = () => {
|
|
187
|
+
const i = o.map((a) => s.createContext(a));
|
|
188
|
+
return function(d) {
|
|
189
|
+
const u = (d == null ? void 0 : d[e]) || i;
|
|
190
|
+
return s.useMemo(
|
|
191
|
+
() => ({ [`__scope${e}`]: { ...d, [e]: u } }),
|
|
192
|
+
[d, u]
|
|
193
|
+
);
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
return r.scopeName = e, [n, Oe(r, ...t)];
|
|
197
|
+
}
|
|
198
|
+
function Oe(...e) {
|
|
199
|
+
const t = e[0];
|
|
200
|
+
if (e.length === 1) return t;
|
|
201
|
+
const o = () => {
|
|
202
|
+
const n = e.map((r) => ({
|
|
203
|
+
useScope: r(),
|
|
204
|
+
scopeName: r.scopeName
|
|
205
|
+
}));
|
|
206
|
+
return function(i) {
|
|
207
|
+
const a = n.reduce((d, { useScope: u, scopeName: c }) => {
|
|
208
|
+
const f = u(i)[`__scope${c}`];
|
|
209
|
+
return { ...d, ...f };
|
|
210
|
+
}, {});
|
|
211
|
+
return s.useMemo(() => ({ [`__scope${t.scopeName}`]: a }), [a]);
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
return o.scopeName = t.scopeName, o;
|
|
215
|
+
}
|
|
216
|
+
function Ee(e, t) {
|
|
217
|
+
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
218
|
+
}
|
|
219
|
+
function ee(...e) {
|
|
220
|
+
return (t) => e.forEach((o) => Ee(o, t));
|
|
221
|
+
}
|
|
222
|
+
function I(...e) {
|
|
223
|
+
return s.useCallback(ee(...e), e);
|
|
224
|
+
}
|
|
225
|
+
var _ = s.forwardRef((e, t) => {
|
|
226
|
+
const { children: o, ...n } = e, r = s.Children.toArray(o), i = r.find(Te);
|
|
227
|
+
if (i) {
|
|
228
|
+
const a = i.props.children, d = r.map((u) => u === i ? s.Children.count(a) > 1 ? s.Children.only(null) : s.isValidElement(a) ? a.props.children : null : u);
|
|
229
|
+
return /* @__PURE__ */ l.jsx(B, { ...n, ref: t, children: s.isValidElement(a) ? s.cloneElement(a, void 0, d) : null });
|
|
230
|
+
}
|
|
231
|
+
return /* @__PURE__ */ l.jsx(B, { ...n, ref: t, children: o });
|
|
232
|
+
});
|
|
233
|
+
_.displayName = "Slot";
|
|
234
|
+
var B = s.forwardRef((e, t) => {
|
|
235
|
+
const { children: o, ...n } = e;
|
|
236
|
+
if (s.isValidElement(o)) {
|
|
237
|
+
const r = De(o);
|
|
238
|
+
return s.cloneElement(o, {
|
|
239
|
+
...ke(n, o.props),
|
|
240
|
+
// @ts-ignore
|
|
241
|
+
ref: t ? ee(t, r) : r
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
return s.Children.count(o) > 1 ? s.Children.only(null) : null;
|
|
245
|
+
});
|
|
246
|
+
B.displayName = "SlotClone";
|
|
247
|
+
var Me = ({ children: e }) => /* @__PURE__ */ l.jsx(l.Fragment, { children: e });
|
|
248
|
+
function Te(e) {
|
|
249
|
+
return s.isValidElement(e) && e.type === Me;
|
|
250
|
+
}
|
|
251
|
+
function ke(e, t) {
|
|
252
|
+
const o = { ...t };
|
|
253
|
+
for (const n in t) {
|
|
254
|
+
const r = e[n], i = t[n];
|
|
255
|
+
/^on[A-Z]/.test(n) ? r && i ? o[n] = (...d) => {
|
|
256
|
+
i(...d), r(...d);
|
|
257
|
+
} : r && (o[n] = r) : n === "style" ? o[n] = { ...r, ...i } : n === "className" && (o[n] = [r, i].filter(Boolean).join(" "));
|
|
258
|
+
}
|
|
259
|
+
return { ...e, ...o };
|
|
260
|
+
}
|
|
261
|
+
function De(e) {
|
|
262
|
+
var n, r;
|
|
263
|
+
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
264
|
+
return o ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
265
|
+
}
|
|
266
|
+
function Be(e) {
|
|
267
|
+
const t = e + "CollectionProvider", [o, n] = $(t), [r, i] = o(
|
|
268
|
+
t,
|
|
269
|
+
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
270
|
+
), a = (h) => {
|
|
271
|
+
const { scope: g, children: b } = h, x = y.useRef(null), C = y.useRef(/* @__PURE__ */ new Map()).current;
|
|
272
|
+
return /* @__PURE__ */ l.jsx(r, { scope: g, itemMap: C, collectionRef: x, children: b });
|
|
273
|
+
};
|
|
274
|
+
a.displayName = t;
|
|
275
|
+
const d = e + "CollectionSlot", u = y.forwardRef(
|
|
276
|
+
(h, g) => {
|
|
277
|
+
const { scope: b, children: x } = h, C = i(d, b), m = I(g, C.collectionRef);
|
|
278
|
+
return /* @__PURE__ */ l.jsx(_, { ref: m, children: x });
|
|
279
|
+
}
|
|
280
|
+
);
|
|
281
|
+
u.displayName = d;
|
|
282
|
+
const c = e + "CollectionItemSlot", p = "data-radix-collection-item", f = y.forwardRef(
|
|
283
|
+
(h, g) => {
|
|
284
|
+
const { scope: b, children: x, ...C } = h, m = y.useRef(null), N = I(g, m), R = i(c, b);
|
|
285
|
+
return y.useEffect(() => (R.itemMap.set(m, { ref: m, ...C }), () => void R.itemMap.delete(m))), /* @__PURE__ */ l.jsx(_, { [p]: "", ref: N, children: x });
|
|
286
|
+
}
|
|
287
|
+
);
|
|
288
|
+
f.displayName = c;
|
|
289
|
+
function v(h) {
|
|
290
|
+
const g = i(e + "CollectionConsumer", h);
|
|
291
|
+
return y.useCallback(() => {
|
|
292
|
+
const x = g.collectionRef.current;
|
|
293
|
+
if (!x) return [];
|
|
294
|
+
const C = Array.from(x.querySelectorAll(`[${p}]`));
|
|
295
|
+
return Array.from(g.itemMap.values()).sort(
|
|
296
|
+
(R, P) => C.indexOf(R.ref.current) - C.indexOf(P.ref.current)
|
|
297
|
+
);
|
|
298
|
+
}, [g.collectionRef, g.itemMap]);
|
|
299
|
+
}
|
|
300
|
+
return [
|
|
301
|
+
{ Provider: a, Slot: u, ItemSlot: f },
|
|
302
|
+
v,
|
|
303
|
+
n
|
|
304
|
+
];
|
|
305
|
+
}
|
|
306
|
+
function te(e, t, { checkForDefaultPrevented: o = !0 } = {}) {
|
|
307
|
+
return function(r) {
|
|
308
|
+
if (e == null || e(r), o === !1 || !r.defaultPrevented)
|
|
309
|
+
return t == null ? void 0 : t(r);
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
function oe(e) {
|
|
313
|
+
const t = s.useRef(e);
|
|
314
|
+
return s.useEffect(() => {
|
|
315
|
+
t.current = e;
|
|
316
|
+
}), s.useMemo(() => (...o) => {
|
|
317
|
+
var n;
|
|
318
|
+
return (n = t.current) == null ? void 0 : n.call(t, ...o);
|
|
319
|
+
}, []);
|
|
320
|
+
}
|
|
321
|
+
function U({
|
|
322
|
+
prop: e,
|
|
323
|
+
defaultProp: t,
|
|
324
|
+
onChange: o = () => {
|
|
325
|
+
}
|
|
326
|
+
}) {
|
|
327
|
+
const [n, r] = Le({ defaultProp: t, onChange: o }), i = e !== void 0, a = i ? e : n, d = oe(o), u = s.useCallback(
|
|
328
|
+
(c) => {
|
|
329
|
+
if (i) {
|
|
330
|
+
const f = typeof c == "function" ? c(e) : c;
|
|
331
|
+
f !== e && d(f);
|
|
332
|
+
} else
|
|
333
|
+
r(c);
|
|
334
|
+
},
|
|
335
|
+
[i, e, r, d]
|
|
336
|
+
);
|
|
337
|
+
return [a, u];
|
|
338
|
+
}
|
|
339
|
+
function Le({
|
|
340
|
+
defaultProp: e,
|
|
341
|
+
onChange: t
|
|
342
|
+
}) {
|
|
343
|
+
const o = s.useState(e), [n] = o, r = s.useRef(n), i = oe(t);
|
|
344
|
+
return s.useEffect(() => {
|
|
345
|
+
r.current !== n && (i(n), r.current = n);
|
|
346
|
+
}, [n, r, i]), o;
|
|
347
|
+
}
|
|
348
|
+
var Ve = [
|
|
349
|
+
"a",
|
|
350
|
+
"button",
|
|
351
|
+
"div",
|
|
352
|
+
"form",
|
|
353
|
+
"h2",
|
|
354
|
+
"h3",
|
|
355
|
+
"img",
|
|
356
|
+
"input",
|
|
357
|
+
"label",
|
|
358
|
+
"li",
|
|
359
|
+
"nav",
|
|
360
|
+
"ol",
|
|
361
|
+
"p",
|
|
362
|
+
"span",
|
|
363
|
+
"svg",
|
|
364
|
+
"ul"
|
|
365
|
+
], j = Ve.reduce((e, t) => {
|
|
366
|
+
const o = s.forwardRef((n, r) => {
|
|
367
|
+
const { asChild: i, ...a } = n, d = i ? _ : t;
|
|
368
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l.jsx(d, { ...a, ref: r });
|
|
369
|
+
});
|
|
370
|
+
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
371
|
+
}, {}), O = globalThis != null && globalThis.document ? s.useLayoutEffect : () => {
|
|
372
|
+
};
|
|
373
|
+
function $e(e, t) {
|
|
374
|
+
return s.useReducer((o, n) => t[o][n] ?? o, e);
|
|
375
|
+
}
|
|
376
|
+
var ne = (e) => {
|
|
377
|
+
const { present: t, children: o } = e, n = Ue(t), r = typeof o == "function" ? o({ present: n.isPresent }) : s.Children.only(o), i = I(n.ref, ze(r));
|
|
378
|
+
return typeof o == "function" || n.isPresent ? s.cloneElement(r, { ref: i }) : null;
|
|
379
|
+
};
|
|
380
|
+
ne.displayName = "Presence";
|
|
381
|
+
function Ue(e) {
|
|
382
|
+
const [t, o] = s.useState(), n = s.useRef({}), r = s.useRef(e), i = s.useRef("none"), a = e ? "mounted" : "unmounted", [d, u] = $e(a, {
|
|
383
|
+
mounted: {
|
|
384
|
+
UNMOUNT: "unmounted",
|
|
385
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
386
|
+
},
|
|
387
|
+
unmountSuspended: {
|
|
388
|
+
MOUNT: "mounted",
|
|
389
|
+
ANIMATION_END: "unmounted"
|
|
390
|
+
},
|
|
391
|
+
unmounted: {
|
|
392
|
+
MOUNT: "mounted"
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
return s.useEffect(() => {
|
|
396
|
+
const c = S(n.current);
|
|
397
|
+
i.current = d === "mounted" ? c : "none";
|
|
398
|
+
}, [d]), O(() => {
|
|
399
|
+
const c = n.current, p = r.current;
|
|
400
|
+
if (p !== e) {
|
|
401
|
+
const v = i.current, h = S(c);
|
|
402
|
+
e ? u("MOUNT") : h === "none" || (c == null ? void 0 : c.display) === "none" ? u("UNMOUNT") : u(p && v !== h ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
|
|
403
|
+
}
|
|
404
|
+
}, [e, u]), O(() => {
|
|
405
|
+
if (t) {
|
|
406
|
+
const c = (f) => {
|
|
407
|
+
const h = S(n.current).includes(f.animationName);
|
|
408
|
+
f.target === t && h && Ae.flushSync(() => u("ANIMATION_END"));
|
|
409
|
+
}, p = (f) => {
|
|
410
|
+
f.target === t && (i.current = S(n.current));
|
|
411
|
+
};
|
|
412
|
+
return t.addEventListener("animationstart", p), t.addEventListener("animationcancel", c), t.addEventListener("animationend", c), () => {
|
|
413
|
+
t.removeEventListener("animationstart", p), t.removeEventListener("animationcancel", c), t.removeEventListener("animationend", c);
|
|
414
|
+
};
|
|
415
|
+
} else
|
|
416
|
+
u("ANIMATION_END");
|
|
417
|
+
}, [t, u]), {
|
|
418
|
+
isPresent: ["mounted", "unmountSuspended"].includes(d),
|
|
419
|
+
ref: s.useCallback((c) => {
|
|
420
|
+
c && (n.current = getComputedStyle(c)), o(c);
|
|
421
|
+
}, [])
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
function S(e) {
|
|
425
|
+
return (e == null ? void 0 : e.animationName) || "none";
|
|
426
|
+
}
|
|
427
|
+
function ze(e) {
|
|
428
|
+
var n, r;
|
|
429
|
+
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
430
|
+
return o ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
431
|
+
}
|
|
432
|
+
var We = s.useId || (() => {
|
|
433
|
+
}), Fe = 0;
|
|
434
|
+
function re(e) {
|
|
435
|
+
const [t, o] = s.useState(We());
|
|
436
|
+
return O(() => {
|
|
437
|
+
o((n) => n ?? String(Fe++));
|
|
438
|
+
}, [e]), t ? `radix-${t}` : "";
|
|
439
|
+
}
|
|
440
|
+
var z = "Collapsible", [Ge, ie] = $(z), [Ke, W] = Ge(z), ae = s.forwardRef(
|
|
441
|
+
(e, t) => {
|
|
442
|
+
const {
|
|
443
|
+
__scopeCollapsible: o,
|
|
444
|
+
open: n,
|
|
445
|
+
defaultOpen: r,
|
|
446
|
+
disabled: i,
|
|
447
|
+
onOpenChange: a,
|
|
448
|
+
...d
|
|
449
|
+
} = e, [u = !1, c] = U({
|
|
450
|
+
prop: n,
|
|
451
|
+
defaultProp: r,
|
|
452
|
+
onChange: a
|
|
453
|
+
});
|
|
454
|
+
return /* @__PURE__ */ l.jsx(
|
|
455
|
+
Ke,
|
|
456
|
+
{
|
|
457
|
+
scope: o,
|
|
458
|
+
disabled: i,
|
|
459
|
+
contentId: re(),
|
|
460
|
+
open: u,
|
|
461
|
+
onOpenToggle: s.useCallback(() => c((p) => !p), [c]),
|
|
462
|
+
children: /* @__PURE__ */ l.jsx(
|
|
463
|
+
j.div,
|
|
464
|
+
{
|
|
465
|
+
"data-state": G(u),
|
|
466
|
+
"data-disabled": i ? "" : void 0,
|
|
467
|
+
...d,
|
|
468
|
+
ref: t
|
|
469
|
+
}
|
|
470
|
+
)
|
|
471
|
+
}
|
|
472
|
+
);
|
|
473
|
+
}
|
|
474
|
+
);
|
|
475
|
+
ae.displayName = z;
|
|
476
|
+
var ce = "CollapsibleTrigger", se = s.forwardRef(
|
|
477
|
+
(e, t) => {
|
|
478
|
+
const { __scopeCollapsible: o, ...n } = e, r = W(ce, o);
|
|
479
|
+
return /* @__PURE__ */ l.jsx(
|
|
480
|
+
j.button,
|
|
481
|
+
{
|
|
482
|
+
type: "button",
|
|
483
|
+
"aria-controls": r.contentId,
|
|
484
|
+
"aria-expanded": r.open || !1,
|
|
485
|
+
"data-state": G(r.open),
|
|
486
|
+
"data-disabled": r.disabled ? "" : void 0,
|
|
487
|
+
disabled: r.disabled,
|
|
488
|
+
...n,
|
|
489
|
+
ref: t,
|
|
490
|
+
onClick: te(e.onClick, r.onOpenToggle)
|
|
491
|
+
}
|
|
492
|
+
);
|
|
493
|
+
}
|
|
494
|
+
);
|
|
495
|
+
se.displayName = ce;
|
|
496
|
+
var F = "CollapsibleContent", le = s.forwardRef(
|
|
497
|
+
(e, t) => {
|
|
498
|
+
const { forceMount: o, ...n } = e, r = W(F, e.__scopeCollapsible);
|
|
499
|
+
return /* @__PURE__ */ l.jsx(ne, { present: o || r.open, children: ({ present: i }) => /* @__PURE__ */ l.jsx(He, { ...n, ref: t, present: i }) });
|
|
500
|
+
}
|
|
501
|
+
);
|
|
502
|
+
le.displayName = F;
|
|
503
|
+
var He = s.forwardRef((e, t) => {
|
|
504
|
+
const { __scopeCollapsible: o, present: n, children: r, ...i } = e, a = W(F, o), [d, u] = s.useState(n), c = s.useRef(null), p = I(t, c), f = s.useRef(0), v = f.current, h = s.useRef(0), g = h.current, b = a.open || d, x = s.useRef(b), C = s.useRef();
|
|
505
|
+
return s.useEffect(() => {
|
|
506
|
+
const m = requestAnimationFrame(() => x.current = !1);
|
|
507
|
+
return () => cancelAnimationFrame(m);
|
|
508
|
+
}, []), O(() => {
|
|
509
|
+
const m = c.current;
|
|
510
|
+
if (m) {
|
|
511
|
+
C.current = C.current || {
|
|
512
|
+
transitionDuration: m.style.transitionDuration,
|
|
513
|
+
animationName: m.style.animationName
|
|
514
|
+
}, m.style.transitionDuration = "0s", m.style.animationName = "none";
|
|
515
|
+
const N = m.getBoundingClientRect();
|
|
516
|
+
f.current = N.height, h.current = N.width, x.current || (m.style.transitionDuration = C.current.transitionDuration, m.style.animationName = C.current.animationName), u(n);
|
|
517
|
+
}
|
|
518
|
+
}, [a.open, n]), /* @__PURE__ */ l.jsx(
|
|
519
|
+
j.div,
|
|
520
|
+
{
|
|
521
|
+
"data-state": G(a.open),
|
|
522
|
+
"data-disabled": a.disabled ? "" : void 0,
|
|
523
|
+
id: a.contentId,
|
|
524
|
+
hidden: !b,
|
|
525
|
+
...i,
|
|
526
|
+
ref: p,
|
|
527
|
+
style: {
|
|
528
|
+
"--radix-collapsible-content-height": v ? `${v}px` : void 0,
|
|
529
|
+
"--radix-collapsible-content-width": g ? `${g}px` : void 0,
|
|
530
|
+
...e.style
|
|
531
|
+
},
|
|
532
|
+
children: b && r
|
|
533
|
+
}
|
|
534
|
+
);
|
|
535
|
+
});
|
|
536
|
+
function G(e) {
|
|
537
|
+
return e ? "open" : "closed";
|
|
538
|
+
}
|
|
539
|
+
var qe = ae, Ye = se, Ze = le, Je = s.createContext(void 0);
|
|
540
|
+
function Qe(e) {
|
|
541
|
+
const t = s.useContext(Je);
|
|
542
|
+
return e || t || "ltr";
|
|
543
|
+
}
|
|
544
|
+
var A = "Accordion", Xe = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [K, et, tt] = Be(A), [M, bt] = $(A, [
|
|
545
|
+
tt,
|
|
546
|
+
ie
|
|
547
|
+
]), H = ie(), de = y.forwardRef(
|
|
548
|
+
(e, t) => {
|
|
549
|
+
const { type: o, ...n } = e, r = n, i = n;
|
|
550
|
+
return /* @__PURE__ */ l.jsx(K.Provider, { scope: e.__scopeAccordion, children: o === "multiple" ? /* @__PURE__ */ l.jsx(it, { ...i, ref: t }) : /* @__PURE__ */ l.jsx(rt, { ...r, ref: t }) });
|
|
551
|
+
}
|
|
552
|
+
);
|
|
553
|
+
de.displayName = A;
|
|
554
|
+
var [ue, ot] = M(A), [fe, nt] = M(
|
|
555
|
+
A,
|
|
556
|
+
{ collapsible: !1 }
|
|
557
|
+
), rt = y.forwardRef(
|
|
558
|
+
(e, t) => {
|
|
559
|
+
const {
|
|
560
|
+
value: o,
|
|
561
|
+
defaultValue: n,
|
|
562
|
+
onValueChange: r = () => {
|
|
563
|
+
},
|
|
564
|
+
collapsible: i = !1,
|
|
565
|
+
...a
|
|
566
|
+
} = e, [d, u] = U({
|
|
567
|
+
prop: o,
|
|
568
|
+
defaultProp: n,
|
|
569
|
+
onChange: r
|
|
570
|
+
});
|
|
571
|
+
return /* @__PURE__ */ l.jsx(
|
|
572
|
+
ue,
|
|
573
|
+
{
|
|
574
|
+
scope: e.__scopeAccordion,
|
|
575
|
+
value: d ? [d] : [],
|
|
576
|
+
onItemOpen: u,
|
|
577
|
+
onItemClose: y.useCallback(() => i && u(""), [i, u]),
|
|
578
|
+
children: /* @__PURE__ */ l.jsx(fe, { scope: e.__scopeAccordion, collapsible: i, children: /* @__PURE__ */ l.jsx(pe, { ...a, ref: t }) })
|
|
579
|
+
}
|
|
580
|
+
);
|
|
581
|
+
}
|
|
582
|
+
), it = y.forwardRef((e, t) => {
|
|
583
|
+
const {
|
|
584
|
+
value: o,
|
|
585
|
+
defaultValue: n,
|
|
586
|
+
onValueChange: r = () => {
|
|
587
|
+
},
|
|
588
|
+
...i
|
|
589
|
+
} = e, [a = [], d] = U({
|
|
590
|
+
prop: o,
|
|
591
|
+
defaultProp: n,
|
|
592
|
+
onChange: r
|
|
593
|
+
}), u = y.useCallback(
|
|
594
|
+
(p) => d((f = []) => [...f, p]),
|
|
595
|
+
[d]
|
|
596
|
+
), c = y.useCallback(
|
|
597
|
+
(p) => d((f = []) => f.filter((v) => v !== p)),
|
|
598
|
+
[d]
|
|
599
|
+
);
|
|
600
|
+
return /* @__PURE__ */ l.jsx(
|
|
601
|
+
ue,
|
|
602
|
+
{
|
|
603
|
+
scope: e.__scopeAccordion,
|
|
604
|
+
value: a,
|
|
605
|
+
onItemOpen: u,
|
|
606
|
+
onItemClose: c,
|
|
607
|
+
children: /* @__PURE__ */ l.jsx(fe, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ l.jsx(pe, { ...i, ref: t }) })
|
|
608
|
+
}
|
|
609
|
+
);
|
|
610
|
+
}), [at, T] = M(A), pe = y.forwardRef(
|
|
611
|
+
(e, t) => {
|
|
612
|
+
const { __scopeAccordion: o, disabled: n, dir: r, orientation: i = "vertical", ...a } = e, d = y.useRef(null), u = I(d, t), c = et(o), f = Qe(r) === "ltr", v = te(e.onKeyDown, (h) => {
|
|
613
|
+
var Y;
|
|
614
|
+
if (!Xe.includes(h.key)) return;
|
|
615
|
+
const g = h.target, b = c().filter((D) => {
|
|
616
|
+
var Z;
|
|
617
|
+
return !((Z = D.ref.current) != null && Z.disabled);
|
|
618
|
+
}), x = b.findIndex((D) => D.ref.current === g), C = b.length;
|
|
619
|
+
if (x === -1) return;
|
|
620
|
+
h.preventDefault();
|
|
621
|
+
let m = x;
|
|
622
|
+
const N = 0, R = C - 1, P = () => {
|
|
623
|
+
m = x + 1, m > R && (m = N);
|
|
624
|
+
}, k = () => {
|
|
625
|
+
m = x - 1, m < N && (m = R);
|
|
626
|
+
};
|
|
627
|
+
switch (h.key) {
|
|
628
|
+
case "Home":
|
|
629
|
+
m = N;
|
|
630
|
+
break;
|
|
631
|
+
case "End":
|
|
632
|
+
m = R;
|
|
633
|
+
break;
|
|
634
|
+
case "ArrowRight":
|
|
635
|
+
i === "horizontal" && (f ? P() : k());
|
|
636
|
+
break;
|
|
637
|
+
case "ArrowDown":
|
|
638
|
+
i === "vertical" && P();
|
|
639
|
+
break;
|
|
640
|
+
case "ArrowLeft":
|
|
641
|
+
i === "horizontal" && (f ? k() : P());
|
|
642
|
+
break;
|
|
643
|
+
case "ArrowUp":
|
|
644
|
+
i === "vertical" && k();
|
|
645
|
+
break;
|
|
646
|
+
}
|
|
647
|
+
const we = m % C;
|
|
648
|
+
(Y = b[we].ref.current) == null || Y.focus();
|
|
649
|
+
});
|
|
650
|
+
return /* @__PURE__ */ l.jsx(
|
|
651
|
+
at,
|
|
652
|
+
{
|
|
653
|
+
scope: o,
|
|
654
|
+
disabled: n,
|
|
655
|
+
direction: r,
|
|
656
|
+
orientation: i,
|
|
657
|
+
children: /* @__PURE__ */ l.jsx(K.Slot, { scope: o, children: /* @__PURE__ */ l.jsx(
|
|
658
|
+
j.div,
|
|
659
|
+
{
|
|
660
|
+
...a,
|
|
661
|
+
"data-orientation": i,
|
|
662
|
+
ref: u,
|
|
663
|
+
onKeyDown: n ? void 0 : v
|
|
664
|
+
}
|
|
665
|
+
) })
|
|
666
|
+
}
|
|
667
|
+
);
|
|
668
|
+
}
|
|
669
|
+
), E = "AccordionItem", [ct, q] = M(E), me = y.forwardRef(
|
|
670
|
+
(e, t) => {
|
|
671
|
+
const { __scopeAccordion: o, value: n, ...r } = e, i = T(E, o), a = ot(E, o), d = H(o), u = re(), c = n && a.value.includes(n) || !1, p = i.disabled || e.disabled;
|
|
672
|
+
return /* @__PURE__ */ l.jsx(
|
|
673
|
+
ct,
|
|
674
|
+
{
|
|
675
|
+
scope: o,
|
|
676
|
+
open: c,
|
|
677
|
+
disabled: p,
|
|
678
|
+
triggerId: u,
|
|
679
|
+
children: /* @__PURE__ */ l.jsx(
|
|
680
|
+
qe,
|
|
681
|
+
{
|
|
682
|
+
"data-orientation": i.orientation,
|
|
683
|
+
"data-state": ye(c),
|
|
684
|
+
...d,
|
|
685
|
+
...r,
|
|
686
|
+
ref: t,
|
|
687
|
+
disabled: p,
|
|
688
|
+
open: c,
|
|
689
|
+
onOpenChange: (f) => {
|
|
690
|
+
f ? a.onItemOpen(n) : a.onItemClose(n);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
)
|
|
694
|
+
}
|
|
695
|
+
);
|
|
696
|
+
}
|
|
697
|
+
);
|
|
698
|
+
me.displayName = E;
|
|
699
|
+
var ve = "AccordionHeader", he = y.forwardRef(
|
|
700
|
+
(e, t) => {
|
|
701
|
+
const { __scopeAccordion: o, ...n } = e, r = T(A, o), i = q(ve, o);
|
|
702
|
+
return /* @__PURE__ */ l.jsx(
|
|
703
|
+
j.h3,
|
|
704
|
+
{
|
|
705
|
+
"data-orientation": r.orientation,
|
|
706
|
+
"data-state": ye(i.open),
|
|
707
|
+
"data-disabled": i.disabled ? "" : void 0,
|
|
708
|
+
...n,
|
|
709
|
+
ref: t
|
|
710
|
+
}
|
|
711
|
+
);
|
|
712
|
+
}
|
|
713
|
+
);
|
|
714
|
+
he.displayName = ve;
|
|
715
|
+
var L = "AccordionTrigger", ge = y.forwardRef(
|
|
716
|
+
(e, t) => {
|
|
717
|
+
const { __scopeAccordion: o, ...n } = e, r = T(A, o), i = q(L, o), a = nt(L, o), d = H(o);
|
|
718
|
+
return /* @__PURE__ */ l.jsx(K.ItemSlot, { scope: o, children: /* @__PURE__ */ l.jsx(
|
|
719
|
+
Ye,
|
|
720
|
+
{
|
|
721
|
+
"aria-disabled": i.open && !a.collapsible || void 0,
|
|
722
|
+
"data-orientation": r.orientation,
|
|
723
|
+
id: i.triggerId,
|
|
724
|
+
...d,
|
|
725
|
+
...n,
|
|
726
|
+
ref: t
|
|
727
|
+
}
|
|
728
|
+
) });
|
|
729
|
+
}
|
|
730
|
+
);
|
|
731
|
+
ge.displayName = L;
|
|
732
|
+
var xe = "AccordionContent", be = y.forwardRef(
|
|
733
|
+
(e, t) => {
|
|
734
|
+
const { __scopeAccordion: o, ...n } = e, r = T(A, o), i = q(xe, o), a = H(o);
|
|
735
|
+
return /* @__PURE__ */ l.jsx(
|
|
736
|
+
Ze,
|
|
737
|
+
{
|
|
738
|
+
role: "region",
|
|
739
|
+
"aria-labelledby": i.triggerId,
|
|
740
|
+
"data-orientation": r.orientation,
|
|
741
|
+
...a,
|
|
742
|
+
...n,
|
|
743
|
+
ref: t,
|
|
744
|
+
style: {
|
|
745
|
+
"--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
|
|
746
|
+
"--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
|
|
747
|
+
...e.style
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
);
|
|
751
|
+
}
|
|
752
|
+
);
|
|
753
|
+
be.displayName = xe;
|
|
754
|
+
function ye(e) {
|
|
755
|
+
return e ? "open" : "closed";
|
|
756
|
+
}
|
|
757
|
+
var st = de, lt = me, dt = he, ut = ge, ft = be;
|
|
758
|
+
const pt = {
|
|
759
|
+
arrows: {
|
|
760
|
+
filePath: "arrows.svg",
|
|
761
|
+
items: {
|
|
762
|
+
arrowCircle: {
|
|
763
|
+
viewBox: "0 0 32 32",
|
|
764
|
+
width: 32,
|
|
765
|
+
height: 32
|
|
766
|
+
},
|
|
767
|
+
arrowLink: {
|
|
768
|
+
viewBox: "0 0 24 24",
|
|
769
|
+
width: 24,
|
|
770
|
+
height: 24
|
|
771
|
+
},
|
|
772
|
+
arrowRight: {
|
|
773
|
+
viewBox: "0 0 16 17",
|
|
774
|
+
width: 16,
|
|
775
|
+
height: 17
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
brandLogos: {
|
|
780
|
+
filePath: "brandLogos.svg",
|
|
781
|
+
items: {
|
|
782
|
+
logoBlack: {
|
|
783
|
+
viewBox: "0 0 194 32",
|
|
784
|
+
width: 194,
|
|
785
|
+
height: 32
|
|
786
|
+
},
|
|
787
|
+
logoBusiness: {
|
|
788
|
+
viewBox: "0 0 192 32",
|
|
789
|
+
width: 192,
|
|
790
|
+
height: 32
|
|
791
|
+
},
|
|
792
|
+
logoGray: {
|
|
793
|
+
viewBox: "0 0 194 32",
|
|
794
|
+
width: 194,
|
|
795
|
+
height: 32
|
|
796
|
+
},
|
|
797
|
+
logoInsurance: {
|
|
798
|
+
viewBox: "0 0 193 32",
|
|
799
|
+
width: 193,
|
|
800
|
+
height: 32
|
|
801
|
+
},
|
|
802
|
+
logoMain: {
|
|
803
|
+
viewBox: "0 0 192 32",
|
|
804
|
+
width: 192,
|
|
805
|
+
height: 32
|
|
806
|
+
},
|
|
807
|
+
logoWhite: {
|
|
808
|
+
viewBox: "0 0 194 32",
|
|
809
|
+
width: 194,
|
|
810
|
+
height: 32
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
files: {
|
|
815
|
+
filePath: "files.svg",
|
|
816
|
+
items: {
|
|
817
|
+
documentFilled: {
|
|
818
|
+
viewBox: "0 0 22 28",
|
|
819
|
+
width: 22,
|
|
820
|
+
height: 28
|
|
821
|
+
},
|
|
822
|
+
documentOutline: {
|
|
823
|
+
viewBox: "0 0 22 28",
|
|
824
|
+
width: 22,
|
|
825
|
+
height: 28
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
general: {
|
|
830
|
+
filePath: "general.svg",
|
|
831
|
+
items: {
|
|
832
|
+
calendar: {
|
|
833
|
+
viewBox: "0 0 19 20",
|
|
834
|
+
width: 19,
|
|
835
|
+
height: 20
|
|
836
|
+
},
|
|
837
|
+
check: {
|
|
838
|
+
viewBox: "0 0 24 24",
|
|
839
|
+
width: 800,
|
|
840
|
+
height: 800
|
|
841
|
+
},
|
|
842
|
+
close: {
|
|
843
|
+
viewBox: "0 0 24 24",
|
|
844
|
+
width: 24,
|
|
845
|
+
height: 24
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
info: {
|
|
850
|
+
filePath: "info.svg",
|
|
851
|
+
items: {
|
|
852
|
+
warningCircle: {
|
|
853
|
+
viewBox: "0 0 20 20",
|
|
854
|
+
width: 20,
|
|
855
|
+
height: 20
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
}, mt = (e) => {
|
|
860
|
+
const [t, o] = e.split("/"), {
|
|
861
|
+
filePath: n,
|
|
862
|
+
items: {
|
|
863
|
+
[o]: { viewBox: r, width: i, height: a }
|
|
864
|
+
}
|
|
865
|
+
} = pt[t], d = i === a ? "xy" : i > a ? "x" : "y";
|
|
866
|
+
return { filePath: n, iconName: o, viewBox: r, axis: d };
|
|
867
|
+
}, vt = ({ name: e, className: t, ...o }) => {
|
|
868
|
+
const { viewBox: n, filePath: r, iconName: i, axis: a } = mt(e);
|
|
869
|
+
return /* @__PURE__ */ l.jsx(
|
|
870
|
+
"svg",
|
|
871
|
+
{
|
|
872
|
+
className: w("select-none fill-current inline-block text-inherit size-6", t),
|
|
873
|
+
focusable: "false",
|
|
874
|
+
viewBox: n,
|
|
875
|
+
"aria-hidden": !0,
|
|
876
|
+
"data-axis": a,
|
|
877
|
+
...o,
|
|
878
|
+
children: /* @__PURE__ */ l.jsx("use", { href: `sprites/${r}#${i}` })
|
|
879
|
+
}
|
|
880
|
+
);
|
|
881
|
+
}, Ce = s.forwardRef(
|
|
882
|
+
({ children: e, classes: t, ...o }, n) => /* @__PURE__ */ l.jsx(dt, { className: w("rounded-sm bg-color-primary-light-default", t == null ? void 0 : t.header), children: /* @__PURE__ */ l.jsxs(
|
|
883
|
+
ut,
|
|
884
|
+
{
|
|
885
|
+
ref: n,
|
|
886
|
+
className: w(
|
|
887
|
+
"outline-0 bg-color-transparent flex items-center justify-between gap-5 w-full cursor-pointer py-5 px-6 border border-transparent border-solid rounded-sm focus:border-primary-default group",
|
|
888
|
+
t == null ? void 0 : t.trigger
|
|
889
|
+
),
|
|
890
|
+
...o,
|
|
891
|
+
children: [
|
|
892
|
+
/* @__PURE__ */ l.jsx("div", { className: w("desk-body-medium-l text-color-dark", t == null ? void 0 : t.inner), children: e }),
|
|
893
|
+
/* @__PURE__ */ l.jsx(
|
|
894
|
+
vt,
|
|
895
|
+
{
|
|
896
|
+
name: "arrows/arrowCircle",
|
|
897
|
+
className: w("group-data-[state=open]:rotate-180 transition-all text-icon-blue-grey-800 size-8", t == null ? void 0 : t.icon)
|
|
898
|
+
}
|
|
899
|
+
)
|
|
900
|
+
]
|
|
901
|
+
}
|
|
902
|
+
) })
|
|
903
|
+
);
|
|
904
|
+
Ce.displayName = "AccordionHeader";
|
|
905
|
+
const yt = ({ children: e, label: t, classes: o, defaultOpen: n }) => /* @__PURE__ */ l.jsx(st, { className: w("flex gap-5 flex-col", o == null ? void 0 : o.accordion), type: "multiple", defaultValue: n, children: /* @__PURE__ */ l.jsxs(lt, { className: w("w-full disabled:text-color-dark", o == null ? void 0 : o.item), value: t.toString(), children: [
|
|
906
|
+
/* @__PURE__ */ l.jsx(Ce, { classes: o, children: t }),
|
|
907
|
+
/* @__PURE__ */ l.jsx(
|
|
908
|
+
ft,
|
|
909
|
+
{
|
|
910
|
+
className: w(
|
|
911
|
+
"desk-body-regular-l text-color-dark overflow-hidden transition-all data-[state=closed]:animate-slideUp data-[state=open]:animate-slideDown bg-color-transparent",
|
|
912
|
+
o == null ? void 0 : o.content
|
|
913
|
+
),
|
|
914
|
+
children: /* @__PURE__ */ l.jsx("div", { className: w("p-6", o == null ? void 0 : o.contentInner), children: e })
|
|
915
|
+
}
|
|
916
|
+
)
|
|
917
|
+
] }) });
|
|
918
|
+
export {
|
|
919
|
+
yt as Accordion,
|
|
920
|
+
xt as Button
|
|
921
|
+
};
|