ingeniuscliq-core 0.4.25 → 0.4.26
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/components/common/carousel/CustomCarousel.js +26 -0
- package/dist/components/common/carousel/CustomCarouselSection.js +41 -0
- package/dist/components/common/form/CustomFormField.js +29 -0
- package/dist/components/common/form/{FormCheckbox.tsx → FormCheckbox.js} +7 -7
- package/dist/components/common/form/{FormInput.tsx → FormInput.js} +5 -5
- package/dist/components/common/form/{FormSelect.tsx → FormSelect.js} +7 -7
- package/dist/components/common/form/{FormTextArea.tsx → FormTextArea.js} +5 -5
- package/dist/components/common/form/{FormWrapper.tsx → FormWrapper.js} +2 -2
- package/dist/components/common/logo/{Logo.tsx → Logo.js} +3 -3
- package/dist/components/common/pagination/{CustomPagination.tsx → CustomPagination.js} +6 -6
- package/dist/components/common/select/CustomSelect.js +27 -0
- package/dist/components/common/spinner/Spinner.js +32 -0
- package/dist/components/common/stepper/{Stepper.tsx → Stepper.js} +9 -9
- package/dist/components/layouts/CoreBaseLayout.js +19 -0
- package/dist/components/templates/CoreHomeLayout.js +8 -0
- package/dist/components/templates/{CorePreviewLayout.tsx → CorePreviewLayout.js} +3 -3
- package/dist/components/ui/accordion.js +44 -0
- package/dist/components/ui/{alert-dialog.tsx → alert-dialog.js} +28 -28
- package/dist/components/ui/{alert.tsx → alert.js} +5 -5
- package/dist/components/ui/{avatar.tsx → avatar.js} +11 -11
- package/dist/components/ui/{badge.tsx → badge.js} +3 -3
- package/dist/components/ui/{breadcrumb.tsx → breadcrumb.js} +13 -14
- package/dist/components/ui/{button.tsx → button.js} +4 -4
- package/dist/components/ui/{card.tsx → card.js} +8 -8
- package/dist/components/ui/{carousel.tsx → carousel.js} +14 -15
- package/dist/components/ui/{checkbox.tsx → checkbox.js} +9 -9
- package/dist/components/ui/{dialog.tsx → dialog.js} +26 -26
- package/dist/components/ui/{dropdown-menu.tsx → dropdown-menu.js} +37 -39
- package/dist/components/ui/{form.tsx → form.js} +10 -10
- package/dist/components/ui/{input.tsx → input.js} +2 -2
- package/dist/components/ui/{label.tsx → label.js} +6 -6
- package/dist/components/ui/{pagination.tsx → pagination.js} +16 -18
- package/dist/components/ui/{popover.tsx → popover.js} +8 -8
- package/dist/components/ui/radio-group.js +34 -0
- package/dist/components/ui/{select.tsx → select.js} +38 -40
- package/dist/components/ui/{separator.tsx → separator.js} +5 -5
- package/dist/components/ui/{sheet.tsx → sheet.js} +27 -27
- package/dist/components/ui/{skeleton.tsx → skeleton.js} +2 -2
- package/dist/components/ui/{slider.tsx → slider.js} +9 -9
- package/dist/components/ui/{stepper.tsx → stepper.js} +35 -35
- package/dist/components/ui/{switch.tsx → switch.js} +7 -7
- package/dist/components/ui/{table.tsx → table.js} +9 -9
- package/dist/components/ui/{tabs.tsx → tabs.js} +13 -13
- package/dist/components/ui/{textarea.tsx → textarea.js} +2 -2
- package/dist/components/ui/{tooltip.tsx → tooltip.js} +8 -8
- package/dist/helpers/axiosGlobal.js +1 -2
- package/dist/hooks/useNotification.js +1 -1
- package/dist/index.js +45 -45
- package/dist/lib/utils.js +2 -2
- package/dist/modules/CoreAuth/classes/CoreAuthBuilder.js +1 -1
- package/dist/modules/CoreAuth/context/{AuthContext.tsx → AuthContext.js} +1 -1
- package/dist/modules/CoreAuth/index.js +2 -1
- package/dist/modules/CoreCustomization/classes/CoreCustomizationBuilder.js +1 -1
- package/dist/modules/CoreCustomization/index.js +1 -0
- package/dist/modules/CoreOrder/classes/CoreOrderBuilder.js +1 -1
- package/dist/modules/CoreOrder/index.js +1 -0
- package/dist/modules/CorePayForm/classes/CorePayFormBuilder.js +1 -1
- package/dist/modules/CorePayForm/index.js +1 -0
- package/dist/modules/CoreProduct/classes/CoreProductBuilder.js +1 -1
- package/dist/modules/CoreProduct/index.js +1 -0
- package/dist/modules/CoreShipment/classes/CoreShipmentBuilder.js +1 -1
- package/dist/modules/CoreShipment/index.js +1 -0
- package/dist/modules/CoreShopCart/classes/CoreShopCartBuilder.js +1 -1
- package/package.json +3 -7
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index2.js +0 -3
- package/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/_virtual/jsx-runtime2.js +0 -3
- package/dist/_virtual/react-jsx-runtime.development.js +0 -3
- package/dist/_virtual/react-jsx-runtime.production.js +0 -3
- package/dist/_virtual/use-sync-external-store-shim.development.js +0 -3
- package/dist/_virtual/use-sync-external-store-shim.production.js +0 -3
- package/dist/components/common/carousel/CustomCarousel.tsx +0 -26
- package/dist/components/common/carousel/CustomCarouselSection.tsx +0 -41
- package/dist/components/common/form/CustomFormField.tsx +0 -29
- package/dist/components/common/select/CustomSelect.tsx +0 -27
- package/dist/components/common/spinner/Spinner.tsx +0 -32
- package/dist/components/layouts/CoreBaseLayout.tsx +0 -19
- package/dist/components/templates/CoreHomeLayout.tsx +0 -8
- package/dist/components/ui/accordion.tsx +0 -44
- package/dist/components/ui/radio-group.tsx +0 -34
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -814
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -751
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -350
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -161
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -137
- package/dist/node_modules/@radix-ui/number/dist/index.js +0 -6
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -11
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +0 -305
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +0 -147
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -25
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +0 -118
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -270
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -145
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -70
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -39
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -79
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -321
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -11
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -211
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -267
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -29
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -207
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -15
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +0 -24
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +0 -834
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -299
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -283
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -17
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -130
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -43
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +0 -282
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -223
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +0 -1156
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +0 -30
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +0 -554
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -99
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +0 -152
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +0 -187
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -482
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -12
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -70
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -18
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +0 -16
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -7
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -15
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -40
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -35
- package/dist/node_modules/@stepperize/core/dist/index.js +0 -3
- package/dist/node_modules/@stepperize/react/dist/index.js +0 -6
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -137
- package/dist/node_modules/axios/index.js +0 -25
- package/dist/node_modules/axios/lib/adapters/adapters.js +0 -81
- package/dist/node_modules/axios/lib/adapters/fetch.js +0 -229
- package/dist/node_modules/axios/lib/adapters/xhr.js +0 -199
- package/dist/node_modules/axios/lib/axios.js +0 -86
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +0 -133
- package/dist/node_modules/axios/lib/cancel/CanceledError.js +0 -23
- package/dist/node_modules/axios/lib/cancel/isCancel.js +0 -5
- package/dist/node_modules/axios/lib/core/Axios.js +0 -238
- package/dist/node_modules/axios/lib/core/AxiosError.js +0 -101
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js +0 -312
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +0 -69
- package/dist/node_modules/axios/lib/core/buildFullPath.js +0 -22
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +0 -81
- package/dist/node_modules/axios/lib/core/mergeConfig.js +0 -106
- package/dist/node_modules/axios/lib/core/settle.js +0 -27
- package/dist/node_modules/axios/lib/core/transformData.js +0 -28
- package/dist/node_modules/axios/lib/defaults/index.js +0 -159
- package/dist/node_modules/axios/lib/defaults/transitional.js +0 -7
- package/dist/node_modules/axios/lib/env/data.js +0 -3
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -56
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -71
- package/dist/node_modules/axios/lib/helpers/bind.js +0 -7
- package/dist/node_modules/axios/lib/helpers/buildURL.js +0 -69
- package/dist/node_modules/axios/lib/helpers/combineURLs.js +0 -15
- package/dist/node_modules/axios/lib/helpers/composeSignals.js +0 -48
- package/dist/node_modules/axios/lib/helpers/cookies.js +0 -43
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +0 -93
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -15
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
- package/dist/node_modules/axios/lib/helpers/null.js +0 -4
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +0 -55
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +0 -46
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js +0 -58
- package/dist/node_modules/axios/lib/helpers/speedometer.js +0 -53
- package/dist/node_modules/axios/lib/helpers/spread.js +0 -28
- package/dist/node_modules/axios/lib/helpers/throttle.js +0 -44
- package/dist/node_modules/axios/lib/helpers/toFormData.js +0 -219
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
- package/dist/node_modules/axios/lib/helpers/trackStream.js +0 -88
- package/dist/node_modules/axios/lib/helpers/validator.js +0 -99
- package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
- package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
- package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
- package/dist/node_modules/axios/lib/platform/browser/index.js +0 -15
- package/dist/node_modules/axios/lib/platform/common/utils.js +0 -45
- package/dist/node_modules/axios/lib/platform/index.js +0 -9
- package/dist/node_modules/axios/lib/utils.js +0 -780
- package/dist/node_modules/class-variance-authority/dist/index.js +0 -44
- package/dist/node_modules/clsx/dist/clsx.js +0 -3
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +0 -1669
- package/dist/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +0 -37
- package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +0 -38
- package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -8
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -43
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -30
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -20
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-left.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.js +0 -18
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -28
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -363
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -44
- package/dist/node_modules/react/jsx-runtime.js +0 -19
- package/dist/node_modules/react-hook-form/dist/index.esm.js +0 -560
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -9
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -167
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -38
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -21
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -110
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -56
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -10
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -31
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -19
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -25
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -51
- package/dist/node_modules/sonner/dist/index.js +0 -299
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -3035
- package/dist/node_modules/tslib/tslib.es6.js +0 -56
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -24
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -48
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -42
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -21
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -77
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -106
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -77
- package/dist/node_modules/use-sync-external-store/shim/index.js +0 -19
- package/dist/node_modules/zustand/esm/react.js +0 -22
- package/dist/node_modules/zustand/esm/vanilla.js +0 -24
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { cn } from '../../../lib/utils.js';
|
|
3
|
+
import { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext } from '../../ui/carousel.js';
|
|
4
|
+
|
|
5
|
+
function CustomCarousel({
|
|
6
|
+
items,
|
|
7
|
+
withoutControls = false,
|
|
8
|
+
className
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ jsxs(Carousel, { className: cn("w-full", className), children: [
|
|
11
|
+
/* @__PURE__ */ jsx(CarouselContent, { children: items.map((item) => /* @__PURE__ */ jsx(CarouselItem, { children: /* @__PURE__ */ jsx("div", { className: "relative aspect-video w-full overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx(
|
|
12
|
+
"img",
|
|
13
|
+
{
|
|
14
|
+
src: item.origin,
|
|
15
|
+
alt: `Image ${item.id}`,
|
|
16
|
+
className: "h-full w-full object-cover"
|
|
17
|
+
}
|
|
18
|
+
) }) }, item.id)) }),
|
|
19
|
+
!withoutControls && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20
|
+
/* @__PURE__ */ jsx(CarouselPrevious, {}),
|
|
21
|
+
/* @__PURE__ */ jsx(CarouselNext, {})
|
|
22
|
+
] })
|
|
23
|
+
] });
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { CustomCarousel };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { cn } from '../../../lib/utils.js';
|
|
3
|
+
import { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext } from '../../ui/carousel.js';
|
|
4
|
+
|
|
5
|
+
function CustomCarouselSection({
|
|
6
|
+
className,
|
|
7
|
+
subtitle,
|
|
8
|
+
title,
|
|
9
|
+
renderActions,
|
|
10
|
+
itemComponent: ItemComponent,
|
|
11
|
+
items,
|
|
12
|
+
withoutControls = false
|
|
13
|
+
}) {
|
|
14
|
+
return /* @__PURE__ */ jsxs("section", { className: cn("space-y-4", className), children: [
|
|
15
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
16
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
17
|
+
/* @__PURE__ */ jsx("h2", { className: "text-2xl font-semibold tracking-tight", children: title }),
|
|
18
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: subtitle })
|
|
19
|
+
] }),
|
|
20
|
+
renderActions && /* @__PURE__ */ jsx("div", { className: "flex items-center", children: renderActions })
|
|
21
|
+
] }),
|
|
22
|
+
/* @__PURE__ */ jsxs(
|
|
23
|
+
Carousel,
|
|
24
|
+
{
|
|
25
|
+
opts: {
|
|
26
|
+
align: "start"
|
|
27
|
+
},
|
|
28
|
+
className: "w-full",
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ jsx(CarouselContent, { children: items.map((item) => /* @__PURE__ */ jsx(CarouselItem, { className: "md:basis-1/2 lg:basis-1/3", children: /* @__PURE__ */ jsx(ItemComponent, { ...item }) }, item.id)) }),
|
|
31
|
+
!withoutControls && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
32
|
+
/* @__PURE__ */ jsx(CarouselPrevious, {}),
|
|
33
|
+
/* @__PURE__ */ jsx(CarouselNext, {})
|
|
34
|
+
] })
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
] });
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { CustomCarouselSection };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { FormField, FormItem, FormLabel, FormControl, FormMessage } from '../../ui/form.js';
|
|
3
|
+
|
|
4
|
+
function CustomFormField({
|
|
5
|
+
control,
|
|
6
|
+
name,
|
|
7
|
+
label,
|
|
8
|
+
render,
|
|
9
|
+
className = "",
|
|
10
|
+
withinLabel = false,
|
|
11
|
+
customLabel,
|
|
12
|
+
withinMessage = false,
|
|
13
|
+
withinControl = false
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
FormField,
|
|
17
|
+
{
|
|
18
|
+
control,
|
|
19
|
+
name,
|
|
20
|
+
render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { className, children: [
|
|
21
|
+
!withinLabel && (customLabel || label && /* @__PURE__ */ jsx(FormLabel, { children: label })),
|
|
22
|
+
withinControl ? /* @__PURE__ */ jsx(FormControl, { children: render(field) }) : render(field),
|
|
23
|
+
!withinMessage && /* @__PURE__ */ jsx(FormMessage, {})
|
|
24
|
+
] })
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { CustomFormField };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CustomFormField } from './CustomFormField.
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { CustomFormField } from './CustomFormField.js';
|
|
3
3
|
import { useLanguage } from '../../../hooks/useLanguage.js';
|
|
4
|
-
import { Checkbox } from '../../ui/checkbox.
|
|
4
|
+
import { Checkbox } from '../../ui/checkbox.js';
|
|
5
5
|
import { useCallback } from 'react';
|
|
6
6
|
|
|
7
7
|
function FormCheckbox({
|
|
@@ -29,7 +29,7 @@ function FormCheckbox({
|
|
|
29
29
|
const placeholderText = getPlaceholder();
|
|
30
30
|
return required ? `${placeholderText} *` : placeholderText;
|
|
31
31
|
}, [label, required, name, getPlaceholder]);
|
|
32
|
-
return /* @__PURE__ */
|
|
32
|
+
return /* @__PURE__ */ jsx(
|
|
33
33
|
CustomFormField,
|
|
34
34
|
{
|
|
35
35
|
control,
|
|
@@ -38,8 +38,8 @@ function FormCheckbox({
|
|
|
38
38
|
label: getLabel(),
|
|
39
39
|
withinMessage,
|
|
40
40
|
withinControl,
|
|
41
|
-
render: (field) => /* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
41
|
+
render: (field) => /* @__PURE__ */ jsxs("label", { className: "flex items-center gap-2", children: [
|
|
42
|
+
/* @__PURE__ */ jsx(
|
|
43
43
|
Checkbox,
|
|
44
44
|
{
|
|
45
45
|
checked: field.value,
|
|
@@ -48,7 +48,7 @@ function FormCheckbox({
|
|
|
48
48
|
...checkboxProps
|
|
49
49
|
}
|
|
50
50
|
),
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ jsx("span", { className: "cursor-pointer", children: getPlaceholder() })
|
|
52
52
|
] })
|
|
53
53
|
}
|
|
54
54
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CustomFormField } from './CustomFormField.
|
|
3
|
-
import { Input } from '../../ui/input.
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { CustomFormField } from './CustomFormField.js';
|
|
3
|
+
import { Input } from '../../ui/input.js';
|
|
4
4
|
import { useLanguage } from '../../../hooks/useLanguage.js';
|
|
5
5
|
import { useCallback } from 'react';
|
|
6
6
|
|
|
@@ -32,7 +32,7 @@ function FormInput({
|
|
|
32
32
|
if (name) return t(`fields.${name}`);
|
|
33
33
|
return "";
|
|
34
34
|
}, [label, withinLabel, required, name, t]);
|
|
35
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ jsx(
|
|
36
36
|
CustomFormField,
|
|
37
37
|
{
|
|
38
38
|
control,
|
|
@@ -43,7 +43,7 @@ function FormInput({
|
|
|
43
43
|
withinLabel,
|
|
44
44
|
withinMessage,
|
|
45
45
|
withinControl,
|
|
46
|
-
render: (field) => /* @__PURE__ */
|
|
46
|
+
render: (field) => /* @__PURE__ */ jsx(
|
|
47
47
|
Input,
|
|
48
48
|
{
|
|
49
49
|
placeholder: getPlaceholder(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CustomFormField } from './CustomFormField.
|
|
3
|
-
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from '../../ui/select.
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { CustomFormField } from './CustomFormField.js';
|
|
3
|
+
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from '../../ui/select.js';
|
|
4
4
|
import { useLanguage } from '../../../hooks/useLanguage.js';
|
|
5
5
|
import { cn } from '../../../lib/utils.js';
|
|
6
6
|
import { useCallback } from 'react';
|
|
@@ -36,7 +36,7 @@ function FormSelect({
|
|
|
36
36
|
const placeholderText = getPlaceholder();
|
|
37
37
|
return required ? `${placeholderText} *` : placeholderText;
|
|
38
38
|
}, [label, withinLabel, required, getPlaceholder]);
|
|
39
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ jsx(
|
|
40
40
|
CustomFormField,
|
|
41
41
|
{
|
|
42
42
|
control,
|
|
@@ -47,7 +47,7 @@ function FormSelect({
|
|
|
47
47
|
withinLabel,
|
|
48
48
|
withinMessage,
|
|
49
49
|
withinControl,
|
|
50
|
-
render: (field) => /* @__PURE__ */
|
|
50
|
+
render: (field) => /* @__PURE__ */ jsxs(
|
|
51
51
|
Select,
|
|
52
52
|
{
|
|
53
53
|
onValueChange: (value) => {
|
|
@@ -58,8 +58,8 @@ function FormSelect({
|
|
|
58
58
|
value: field.value,
|
|
59
59
|
...selectProps,
|
|
60
60
|
children: [
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ jsx(SelectTrigger, { className: cn(selectClassName), children: /* @__PURE__ */ jsx(SelectValue, { placeholder: getPlaceholder() }) }),
|
|
62
|
+
/* @__PURE__ */ jsx(SelectContent, { children: options.map((option) => /* @__PURE__ */ jsx(
|
|
63
63
|
SelectItem,
|
|
64
64
|
{
|
|
65
65
|
value: option.value,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CustomFormField } from './CustomFormField.
|
|
3
|
-
import { Textarea } from '../../ui/textarea.
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { CustomFormField } from './CustomFormField.js';
|
|
3
|
+
import { Textarea } from '../../ui/textarea.js';
|
|
4
4
|
import { useLanguage } from '../../../hooks/useLanguage.js';
|
|
5
5
|
import { useCallback } from 'react';
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ function FormTextArea({
|
|
|
31
31
|
if (name) return t(`fields.${name}`);
|
|
32
32
|
return "";
|
|
33
33
|
}, [label, withinLabel, required, name, t]);
|
|
34
|
-
return /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ jsx(
|
|
35
35
|
CustomFormField,
|
|
36
36
|
{
|
|
37
37
|
control,
|
|
@@ -42,7 +42,7 @@ function FormTextArea({
|
|
|
42
42
|
withinLabel,
|
|
43
43
|
withinMessage,
|
|
44
44
|
withinControl,
|
|
45
|
-
render: (field) => /* @__PURE__ */
|
|
45
|
+
render: (field) => /* @__PURE__ */ jsx(
|
|
46
46
|
Textarea,
|
|
47
47
|
{
|
|
48
48
|
placeholder: getPlaceholder(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { cn } from '../../../lib/utils.js';
|
|
3
3
|
|
|
4
4
|
function FormWrapper({
|
|
@@ -7,7 +7,7 @@ function FormWrapper({
|
|
|
7
7
|
noValidate = false,
|
|
8
8
|
onSubmit
|
|
9
9
|
}) {
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
11
|
"form",
|
|
12
12
|
{
|
|
13
13
|
className: cn("space-y-4", className),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Link } from '@tanstack/react-router';
|
|
3
3
|
import { cn } from '../../../lib/utils.js';
|
|
4
4
|
import { useState, useCallback } from 'react';
|
|
@@ -19,12 +19,12 @@ function Logo({
|
|
|
19
19
|
currentTarget.src = fallback;
|
|
20
20
|
}
|
|
21
21
|
}, [fallback, hasError]);
|
|
22
|
-
return /* @__PURE__ */
|
|
22
|
+
return /* @__PURE__ */ jsx(
|
|
23
23
|
Link,
|
|
24
24
|
{
|
|
25
25
|
to,
|
|
26
26
|
className: cn("flex items-center gap-2", containerClassName),
|
|
27
|
-
children: /* @__PURE__ */
|
|
27
|
+
children: /* @__PURE__ */ jsx(
|
|
28
28
|
"img",
|
|
29
29
|
{
|
|
30
30
|
src: icon,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Pagination, PaginationContent, PaginationItem, PaginationPrevious, PaginationEllipsis, PaginationLink, PaginationNext } from '../../ui/pagination.
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { Pagination, PaginationContent, PaginationItem, PaginationPrevious, PaginationEllipsis, PaginationLink, PaginationNext } from '../../ui/pagination.js';
|
|
3
3
|
|
|
4
4
|
function CustomPagination({
|
|
5
5
|
currentPage,
|
|
@@ -30,8 +30,8 @@ function CustomPagination({
|
|
|
30
30
|
}
|
|
31
31
|
return pages;
|
|
32
32
|
};
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ jsx(Pagination, { children: /* @__PURE__ */ jsxs(PaginationContent, { children: [
|
|
34
|
+
/* @__PURE__ */ jsx(PaginationItem, { disabled: currentPage === 1, children: /* @__PURE__ */ jsx(
|
|
35
35
|
PaginationPrevious,
|
|
36
36
|
{
|
|
37
37
|
onClick: () => currentPage > 1 && onPageChange(currentPage - 1),
|
|
@@ -40,7 +40,7 @@ function CustomPagination({
|
|
|
40
40
|
}
|
|
41
41
|
) }),
|
|
42
42
|
getPageNumbers().map(
|
|
43
|
-
(page, index) => page === "ellipsis" ? /* @__PURE__ */
|
|
43
|
+
(page, index) => page === "ellipsis" ? /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationEllipsis, {}) }, `ellipsis-${index}`) : /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(
|
|
44
44
|
PaginationLink,
|
|
45
45
|
{
|
|
46
46
|
onClick: () => onPageChange(page),
|
|
@@ -50,7 +50,7 @@ function CustomPagination({
|
|
|
50
50
|
}
|
|
51
51
|
) }, page)
|
|
52
52
|
),
|
|
53
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ jsx(PaginationItem, { disabled: currentPage === totalPages, children: /* @__PURE__ */ jsx(
|
|
54
54
|
PaginationNext,
|
|
55
55
|
{
|
|
56
56
|
onClick: () => currentPage < totalPages && onPageChange(currentPage + 1),
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { cn } from '../../../lib/utils.js';
|
|
3
|
+
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from '../../ui/select.js';
|
|
4
|
+
|
|
5
|
+
function CustomSelect({
|
|
6
|
+
options,
|
|
7
|
+
placeholder,
|
|
8
|
+
defaultValue,
|
|
9
|
+
value,
|
|
10
|
+
onValueChange,
|
|
11
|
+
className
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ jsxs(
|
|
14
|
+
Select,
|
|
15
|
+
{
|
|
16
|
+
defaultValue,
|
|
17
|
+
value,
|
|
18
|
+
onValueChange,
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ jsx(SelectTrigger, { className: cn(className), children: /* @__PURE__ */ jsx(SelectValue, { placeholder }) }),
|
|
21
|
+
/* @__PURE__ */ jsx(SelectContent, { children: options.map((option) => /* @__PURE__ */ jsx(SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { CustomSelect };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { cn } from '../../../lib/utils.js';
|
|
3
|
+
/* empty css */
|
|
4
|
+
|
|
5
|
+
function Spinner({ color = "var(--color-templatePrimaryColor)", className, size = 24 }) {
|
|
6
|
+
return /* @__PURE__ */ jsxs(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
className: cn("spinner", className),
|
|
10
|
+
style: {
|
|
11
|
+
"--spinner-color": color,
|
|
12
|
+
"--spinner-size": `${size}px`
|
|
13
|
+
},
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ jsx("div", { className: "bar1" }),
|
|
16
|
+
/* @__PURE__ */ jsx("div", { className: "bar2" }),
|
|
17
|
+
/* @__PURE__ */ jsx("div", { className: "bar3" }),
|
|
18
|
+
/* @__PURE__ */ jsx("div", { className: "bar4" }),
|
|
19
|
+
/* @__PURE__ */ jsx("div", { className: "bar5" }),
|
|
20
|
+
/* @__PURE__ */ jsx("div", { className: "bar6" }),
|
|
21
|
+
/* @__PURE__ */ jsx("div", { className: "bar7" }),
|
|
22
|
+
/* @__PURE__ */ jsx("div", { className: "bar8" }),
|
|
23
|
+
/* @__PURE__ */ jsx("div", { className: "bar9" }),
|
|
24
|
+
/* @__PURE__ */ jsx("div", { className: "bar10" }),
|
|
25
|
+
/* @__PURE__ */ jsx("div", { className: "bar11" }),
|
|
26
|
+
/* @__PURE__ */ jsx("div", { className: "bar12" })
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { Spinner };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { cn } from '../../../lib/utils.js';
|
|
3
|
-
import Check from '
|
|
3
|
+
import { Check } from 'lucide-react';
|
|
4
4
|
|
|
5
5
|
const Stepper = ({
|
|
6
6
|
steps,
|
|
@@ -13,7 +13,7 @@ const Stepper = ({
|
|
|
13
13
|
classLabelInactiveSteps = "text-muted-foreground",
|
|
14
14
|
classDivider = "bg-border"
|
|
15
15
|
}) => {
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-3xl mx-auto", children: /* @__PURE__ */ jsx("div", { className: "flex flex-row justify-between items-center gap-4 mb-8", children: steps.map((step, index) => {
|
|
17
17
|
const isCompleted = index < currentStep;
|
|
18
18
|
const isActive = index === currentStep;
|
|
19
19
|
const isInactive = index > currentStep;
|
|
@@ -29,9 +29,9 @@ const Stepper = ({
|
|
|
29
29
|
isActive && classLabelActiveSteps,
|
|
30
30
|
isInactive && classLabelInactiveSteps
|
|
31
31
|
);
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
index > 0 && /* @__PURE__ */
|
|
32
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col justify-center w-full items-center gap-2 relative", children: [
|
|
33
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
34
|
+
index > 0 && /* @__PURE__ */ jsx(
|
|
35
35
|
"div",
|
|
36
36
|
{
|
|
37
37
|
className: cn(
|
|
@@ -40,8 +40,8 @@ const Stepper = ({
|
|
|
40
40
|
)
|
|
41
41
|
}
|
|
42
42
|
),
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
index < steps.length - 1 && /* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ jsx("div", { className: "relative flex items-center justify-center z-10 bg-white", children: /* @__PURE__ */ jsx("div", { className: stepClass, children: isCompleted ? /* @__PURE__ */ jsx(Check, { className: "w-5 h-5" }) : step.icon || /* @__PURE__ */ jsx("span", { children: index + 1 }) }) }),
|
|
44
|
+
index < steps.length - 1 && /* @__PURE__ */ jsx(
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
47
47
|
className: cn(
|
|
@@ -51,7 +51,7 @@ const Stepper = ({
|
|
|
51
51
|
}
|
|
52
52
|
)
|
|
53
53
|
] }),
|
|
54
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ jsx("div", { className: labelClass, children: step.title })
|
|
55
55
|
] }, index);
|
|
56
56
|
}) }) });
|
|
57
57
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
function CoreBaseLayout({
|
|
4
|
+
headerChildren,
|
|
5
|
+
footerChildren,
|
|
6
|
+
headerClassName = "",
|
|
7
|
+
mainClassName = "",
|
|
8
|
+
footerClassName = "",
|
|
9
|
+
children,
|
|
10
|
+
styles = {}
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ jsxs("div", { style: styles, children: [
|
|
13
|
+
headerChildren && /* @__PURE__ */ jsx("header", { className: headerClassName, children: headerChildren }),
|
|
14
|
+
/* @__PURE__ */ jsx("main", { className: mainClassName, children }),
|
|
15
|
+
footerChildren && /* @__PURE__ */ jsx("footer", { className: footerClassName, children: footerChildren })
|
|
16
|
+
] });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { CoreBaseLayout };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CoreBaseLayout } from '../layouts/CoreBaseLayout.
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { CoreBaseLayout } from '../layouts/CoreBaseLayout.js';
|
|
3
3
|
|
|
4
4
|
function CorePreviewLayout({
|
|
5
5
|
headerChildren,
|
|
@@ -10,7 +10,7 @@ function CorePreviewLayout({
|
|
|
10
10
|
children,
|
|
11
11
|
styles
|
|
12
12
|
}) {
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
14
14
|
CoreBaseLayout,
|
|
15
15
|
{
|
|
16
16
|
headerChildren,
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
4
|
+
import { ChevronDown } from 'lucide-react';
|
|
5
|
+
import { cn } from '../../lib/utils.js';
|
|
6
|
+
|
|
7
|
+
const Accordion = AccordionPrimitive.Root;
|
|
8
|
+
const AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
9
|
+
AccordionPrimitive.Item,
|
|
10
|
+
{
|
|
11
|
+
ref,
|
|
12
|
+
className: cn("border-b", className),
|
|
13
|
+
...props
|
|
14
|
+
}
|
|
15
|
+
));
|
|
16
|
+
AccordionItem.displayName = "AccordionItem";
|
|
17
|
+
const AccordionTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
|
|
18
|
+
AccordionPrimitive.Trigger,
|
|
19
|
+
{
|
|
20
|
+
ref,
|
|
21
|
+
className: cn(
|
|
22
|
+
"flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
|
|
23
|
+
className
|
|
24
|
+
),
|
|
25
|
+
...props,
|
|
26
|
+
children: [
|
|
27
|
+
children,
|
|
28
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
) }));
|
|
32
|
+
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
33
|
+
const AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
34
|
+
AccordionPrimitive.Content,
|
|
35
|
+
{
|
|
36
|
+
ref,
|
|
37
|
+
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
38
|
+
...props,
|
|
39
|
+
children: /* @__PURE__ */ jsx("div", { className: cn("pb-4 pt-0", className), children })
|
|
40
|
+
}
|
|
41
|
+
));
|
|
42
|
+
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
43
|
+
|
|
44
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
4
4
|
import { cn } from '../../lib/utils.js';
|
|
5
|
-
import { buttonVariants } from './button.
|
|
5
|
+
import { buttonVariants } from './button.js';
|
|
6
6
|
|
|
7
|
-
const AlertDialog =
|
|
8
|
-
const AlertDialogTrigger =
|
|
9
|
-
const AlertDialogPortal =
|
|
10
|
-
const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
11
|
-
|
|
7
|
+
const AlertDialog = AlertDialogPrimitive.Root;
|
|
8
|
+
const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
9
|
+
const AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
10
|
+
const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11
|
+
AlertDialogPrimitive.Overlay,
|
|
12
12
|
{
|
|
13
13
|
className: cn(
|
|
14
14
|
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
@@ -18,11 +18,11 @@ const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => /*
|
|
|
18
18
|
ref
|
|
19
19
|
}
|
|
20
20
|
));
|
|
21
|
-
AlertDialogOverlay.displayName =
|
|
22
|
-
const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
|
|
21
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
22
|
+
const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
|
|
23
|
+
/* @__PURE__ */ jsx(AlertDialogOverlay, {}),
|
|
24
|
+
/* @__PURE__ */ jsx(
|
|
25
|
+
AlertDialogPrimitive.Content,
|
|
26
26
|
{
|
|
27
27
|
ref,
|
|
28
28
|
className: cn(
|
|
@@ -33,11 +33,11 @@ const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => /*
|
|
|
33
33
|
}
|
|
34
34
|
)
|
|
35
35
|
] }));
|
|
36
|
-
AlertDialogContent.displayName =
|
|
36
|
+
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
37
37
|
const AlertDialogHeader = ({
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
|
-
}) => /* @__PURE__ */
|
|
40
|
+
}) => /* @__PURE__ */ jsx(
|
|
41
41
|
"div",
|
|
42
42
|
{
|
|
43
43
|
className: cn(
|
|
@@ -51,7 +51,7 @@ AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
|
51
51
|
const AlertDialogFooter = ({
|
|
52
52
|
className,
|
|
53
53
|
...props
|
|
54
|
-
}) => /* @__PURE__ */
|
|
54
|
+
}) => /* @__PURE__ */ jsx(
|
|
55
55
|
"div",
|
|
56
56
|
{
|
|
57
57
|
className: cn(
|
|
@@ -62,35 +62,35 @@ const AlertDialogFooter = ({
|
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
64
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
65
|
-
const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
66
|
-
|
|
65
|
+
const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
66
|
+
AlertDialogPrimitive.Title,
|
|
67
67
|
{
|
|
68
68
|
ref,
|
|
69
69
|
className: cn("text-lg font-semibold", className),
|
|
70
70
|
...props
|
|
71
71
|
}
|
|
72
72
|
));
|
|
73
|
-
AlertDialogTitle.displayName =
|
|
74
|
-
const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
75
|
-
|
|
73
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
74
|
+
const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
75
|
+
AlertDialogPrimitive.Description,
|
|
76
76
|
{
|
|
77
77
|
ref,
|
|
78
78
|
className: cn("text-sm text-muted-foreground", className),
|
|
79
79
|
...props
|
|
80
80
|
}
|
|
81
81
|
));
|
|
82
|
-
AlertDialogDescription.displayName =
|
|
83
|
-
const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
84
|
-
Action,
|
|
82
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
83
|
+
const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
84
|
+
AlertDialogPrimitive.Action,
|
|
85
85
|
{
|
|
86
86
|
ref,
|
|
87
87
|
className: cn(buttonVariants(), className),
|
|
88
88
|
...props
|
|
89
89
|
}
|
|
90
90
|
));
|
|
91
|
-
AlertDialogAction.displayName = Action.displayName;
|
|
92
|
-
const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
93
|
-
Cancel,
|
|
91
|
+
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
92
|
+
const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
93
|
+
AlertDialogPrimitive.Cancel,
|
|
94
94
|
{
|
|
95
95
|
ref,
|
|
96
96
|
className: cn(
|
|
@@ -101,6 +101,6 @@ const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => /*
|
|
|
101
101
|
...props
|
|
102
102
|
}
|
|
103
103
|
));
|
|
104
|
-
AlertDialogCancel.displayName = Cancel.displayName;
|
|
104
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
105
105
|
|
|
106
106
|
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|