ingeniuscliq-core 0.4.19 → 0.4.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/common/carousel/CustomCarousel.d.ts +1 -1
- package/dist/components/common/carousel/CustomCarousel.d.ts.map +1 -1
- package/dist/components/common/carousel/CustomCarouselSection.d.ts +1 -1
- package/dist/components/common/carousel/CustomCarouselSection.d.ts.map +1 -1
- package/dist/components/common/form/FormCheckbox.d.ts +1 -1
- package/dist/components/common/form/FormCheckbox.d.ts.map +1 -1
- package/dist/components/common/form/FormInput.d.ts +1 -1
- package/dist/components/common/form/FormInput.d.ts.map +1 -1
- package/dist/components/common/form/FormSelect.d.ts +1 -1
- package/dist/components/common/form/FormSelect.d.ts.map +1 -1
- package/dist/components/common/form/FormTextArea.d.ts +1 -1
- package/dist/components/common/form/FormTextArea.d.ts.map +1 -1
- package/dist/components/common/form/FormWrapper.d.ts +1 -1
- package/dist/components/common/form/FormWrapper.d.ts.map +1 -1
- package/dist/components/common/logo/Logo.d.ts +1 -1
- package/dist/components/common/logo/Logo.d.ts.map +1 -1
- package/dist/components/common/pagination/CustomPagination.d.ts +1 -1
- package/dist/components/common/pagination/CustomPagination.d.ts.map +1 -1
- package/dist/components/common/select/CustomSelect.d.ts +1 -1
- package/dist/components/common/select/CustomSelect.d.ts.map +1 -1
- package/dist/components/common/spinner/Spinner.d.ts +1 -1
- package/dist/components/common/spinner/Spinner.d.ts.map +1 -1
- package/dist/components/common/stepper/Stepper.d.ts +1 -1
- package/dist/components/common/stepper/Stepper.d.ts.map +1 -1
- package/dist/components/common/stepper/Stepper.tsx +1 -1
- package/dist/components/layouts/CoreBaseLayout.d.ts +1 -1
- package/dist/components/layouts/CoreBaseLayout.d.ts.map +1 -1
- package/dist/components/templates/CoreHomeLayout.d.ts +1 -1
- package/dist/components/templates/CoreHomeLayout.d.ts.map +1 -1
- package/dist/components/templates/CorePreviewLayout.d.ts +1 -1
- package/dist/components/templates/CorePreviewLayout.d.ts.map +1 -1
- package/dist/components/ui/accordion.tsx +9 -9
- package/dist/components/ui/alert-dialog.d.ts +2 -2
- package/dist/components/ui/alert-dialog.tsx +16 -16
- package/dist/components/ui/alert.d.ts +3 -3
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.tsx +1 -1
- package/dist/components/ui/avatar.tsx +7 -7
- package/dist/components/ui/badge.d.ts +4 -4
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/badge.tsx +1 -1
- package/dist/components/ui/breadcrumb.d.ts +2 -2
- package/dist/components/ui/breadcrumb.tsx +3 -4
- package/dist/components/ui/button.d.ts +4 -4
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.tsx +2 -2
- package/dist/components/ui/carousel.tsx +2 -3
- package/dist/components/ui/checkbox.tsx +5 -5
- package/dist/components/ui/dialog.d.ts +2 -2
- package/dist/components/ui/dialog.tsx +15 -15
- package/dist/components/ui/dropdown-menu.d.ts +1 -1
- package/dist/components/ui/dropdown-menu.tsx +27 -29
- package/dist/components/ui/form.d.ts +1 -1
- package/dist/components/ui/form.d.ts.map +1 -1
- package/dist/components/ui/form.tsx +2 -2
- package/dist/components/ui/label.d.ts +1 -1
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/label.tsx +4 -4
- package/dist/components/ui/pagination.d.ts +5 -5
- package/dist/components/ui/pagination.tsx +2 -4
- package/dist/components/ui/popover.tsx +7 -7
- package/dist/components/ui/radio-group.tsx +7 -7
- package/dist/components/ui/select.tsx +25 -27
- package/dist/components/ui/separator.tsx +3 -3
- package/dist/components/ui/sheet.d.ts +5 -5
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.tsx +16 -16
- package/dist/components/ui/skeleton.d.ts +1 -1
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/slider.tsx +6 -6
- package/dist/components/ui/stepper.tsx +4 -4
- package/dist/components/ui/switch.tsx +4 -4
- package/dist/components/ui/tabs.tsx +9 -9
- package/dist/components/ui/tooltip.tsx +6 -6
- package/dist/helpers/axiosGlobal.js +1 -2
- package/dist/hooks/useLanguage.js +2 -5
- package/dist/hooks/useNotification.js +1 -1
- package/dist/i18n/config.js +1 -5
- package/dist/lib/utils.js +1 -1
- package/dist/modules/CoreAuth/classes/CoreAuthBuilder.d.ts +2 -2
- package/dist/modules/CoreAuth/classes/CoreAuthBuilder.js +1 -1
- package/dist/modules/CoreAuth/context/AuthContext.d.ts +2 -2
- package/dist/modules/CoreAuth/context/AuthContext.d.ts.map +1 -1
- package/dist/modules/CoreAuth/hooks/useAuth.d.ts +3 -3
- package/dist/modules/CoreAuth/index.js +1 -0
- package/dist/modules/CoreAuth/stores/authStore.d.ts +2 -2
- package/dist/modules/CoreCustomization/classes/CoreCustomizationBuilder.d.ts +8 -8
- 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.d.ts +2 -2
- package/dist/modules/CorePayForm/classes/CorePayFormBuilder.js +1 -1
- package/dist/modules/CorePayForm/index.js +1 -0
- package/dist/modules/CoreProduct/classes/CoreProductBuilder.d.ts +8 -8
- package/dist/modules/CoreProduct/classes/CoreProductBuilder.js +1 -1
- package/dist/modules/CoreProduct/index.js +1 -0
- package/dist/modules/CoreShipment/classes/CoreShipmentBuilder.d.ts +6 -6
- package/dist/modules/CoreShipment/classes/CoreShipmentBuilder.js +1 -1
- package/dist/modules/CoreShipment/index.js +1 -0
- package/dist/modules/CoreShopCart/classes/CoreShopCartBuilder.d.ts +4 -4
- package/dist/modules/CoreShopCart/classes/CoreShopCartBuilder.js +1 -1
- package/package.json +21 -13
- package/src/commands/common/constants.js +10 -0
- package/src/commands/helpers/index.js +15 -0
- package/src/commands/helpers/strings.js +4 -0
- package/src/commands/templates/locale.js +14 -0
- package/src/commands/templates/service.js +12 -0
- package/src/commands/templates/type.js +10 -0
- package/README.md +0 -417
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index2.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/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-hook-form/dist/index.esm.js +0 -560
- package/dist/node_modules/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js +0 -210
- package/dist/node_modules/react-i18next/dist/es/context.js +0 -18
- package/dist/node_modules/react-i18next/dist/es/defaults.js +0 -22
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +0 -7
- package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +0 -12
- package/dist/node_modules/react-i18next/dist/es/unescape.js +0 -27
- package/dist/node_modules/react-i18next/dist/es/useTranslation.js +0 -157
- package/dist/node_modules/react-i18next/dist/es/utils.js +0 -63
- 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/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
- /package/src/{core/commands → commands}/create-core-module.js +0 -0
- /package/src/{core/commands → commands}/create-module.js +0 -0
- /package/src/{core/commands → commands}/create-template.js +0 -0
- /package/src/{core/commands → commands}/rollback-core-module.js +0 -0
- /package/src/{core/commands → commands}/rollback-module.js +0 -0
|
@@ -6,9 +6,9 @@ declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.Dialo
|
|
|
6
6
|
declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
7
|
declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
|
8
8
|
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
declare const sheetVariants: (props?:
|
|
10
|
-
side?: "top" | "right" | "bottom" | "left"
|
|
11
|
-
} & import('class-variance-authority/types').ClassProp)
|
|
9
|
+
declare const sheetVariants: (props?: {
|
|
10
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) => string;
|
|
12
12
|
interface SheetContentProps extends Omit<React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, 'className' | 'children'>, VariantProps<typeof sheetVariants> {
|
|
13
13
|
withoutCloseIcon?: boolean;
|
|
14
14
|
className?: string;
|
|
@@ -16,11 +16,11 @@ interface SheetContentProps extends Omit<React.ComponentPropsWithoutRef<typeof S
|
|
|
16
16
|
}
|
|
17
17
|
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
18
|
declare const SheetHeader: {
|
|
19
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
19
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
20
20
|
displayName: string;
|
|
21
21
|
};
|
|
22
22
|
declare const SheetFooter: {
|
|
23
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
23
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
24
24
|
displayName: string;
|
|
25
25
|
};
|
|
26
26
|
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAKjE,QAAA,MAAM,KAAK,sCAAsB,CAAA;AAEjC,QAAA,MAAM,YAAY,6GAAyB,CAAA;AAE3C,QAAA,MAAM,UAAU,2GAAuB,CAAA;AAEvC,QAAA,MAAM,WAAW,4CAAwB,CAAA;AAEzC,QAAA,MAAM,YAAY,6JAYhB,CAAA;AAGF,QAAA,MAAM,aAAa;;
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAKjE,QAAA,MAAM,KAAK,sCAAsB,CAAA;AAEjC,QAAA,MAAM,YAAY,6GAAyB,CAAA;AAE3C,QAAA,MAAM,UAAU,2GAAuB,CAAA;AAEvC,QAAA,MAAM,WAAW,4CAAwB,CAAA;AAEzC,QAAA,MAAM,YAAY,6JAYhB,CAAA;AAGF,QAAA,MAAM,aAAa;;iEAiBlB,CAAA;AAED,UAAU,iBACR,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,EACnG,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,YAAY,0FAoBhB,CAAA;AAGF,QAAA,MAAM,WAAW;8BAGd,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAA;AAGD,QAAA,MAAM,WAAW;8BAGd,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAA;AAGD,QAAA,MAAM,UAAU,mKASd,CAAA;AAGF,QAAA,MAAM,gBAAgB,6KASpB,CAAA;AAGF,OAAO,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
4
|
-
import { cva } from '
|
|
3
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
import { X } from 'lucide-react';
|
|
5
6
|
import { cn } from '../../lib/utils.js';
|
|
6
|
-
import X from '../../node_modules/lucide-react/dist/esm/icons/x.js';
|
|
7
7
|
|
|
8
|
-
const Sheet = Root;
|
|
9
|
-
const SheetTrigger = Trigger;
|
|
10
|
-
const SheetClose = Close;
|
|
11
|
-
const SheetPortal = Portal;
|
|
8
|
+
const Sheet = DialogPrimitive.Root;
|
|
9
|
+
const SheetTrigger = DialogPrimitive.Trigger;
|
|
10
|
+
const SheetClose = DialogPrimitive.Close;
|
|
11
|
+
const SheetPortal = DialogPrimitive.Portal;
|
|
12
12
|
const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
13
|
-
Overlay,
|
|
13
|
+
DialogPrimitive.Overlay,
|
|
14
14
|
{
|
|
15
15
|
className: cn(
|
|
16
16
|
"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",
|
|
@@ -20,7 +20,7 @@ const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
20
20
|
ref
|
|
21
21
|
}
|
|
22
22
|
));
|
|
23
|
-
SheetOverlay.displayName = Overlay.displayName;
|
|
23
|
+
SheetOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
24
24
|
const sheetVariants = cva(
|
|
25
25
|
"fixed z-50 gap-4 bg-background shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
26
26
|
{
|
|
@@ -40,14 +40,14 @@ const sheetVariants = cva(
|
|
|
40
40
|
const SheetContent = React.forwardRef(({ side = "right", className, children, withoutCloseIcon = false, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
41
41
|
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
42
42
|
/* @__PURE__ */ jsxs(
|
|
43
|
-
Content,
|
|
43
|
+
DialogPrimitive.Content,
|
|
44
44
|
{
|
|
45
45
|
ref,
|
|
46
46
|
className: cn(sheetVariants({ side }), className),
|
|
47
47
|
...props,
|
|
48
48
|
children: [
|
|
49
49
|
children,
|
|
50
|
-
!withoutCloseIcon && /* @__PURE__ */ jsxs(Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
50
|
+
!withoutCloseIcon && /* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
51
51
|
/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
|
|
52
52
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
53
53
|
] })
|
|
@@ -55,7 +55,7 @@ const SheetContent = React.forwardRef(({ side = "right", className, children, wi
|
|
|
55
55
|
}
|
|
56
56
|
)
|
|
57
57
|
] }));
|
|
58
|
-
SheetContent.displayName = Content.displayName;
|
|
58
|
+
SheetContent.displayName = DialogPrimitive.Content.displayName;
|
|
59
59
|
const SheetHeader = ({
|
|
60
60
|
className,
|
|
61
61
|
...props
|
|
@@ -85,22 +85,22 @@ const SheetFooter = ({
|
|
|
85
85
|
);
|
|
86
86
|
SheetFooter.displayName = "SheetFooter";
|
|
87
87
|
const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
88
|
-
Title,
|
|
88
|
+
DialogPrimitive.Title,
|
|
89
89
|
{
|
|
90
90
|
ref,
|
|
91
91
|
className: cn("text-lg font-semibold text-foreground", className),
|
|
92
92
|
...props
|
|
93
93
|
}
|
|
94
94
|
));
|
|
95
|
-
SheetTitle.displayName = Title.displayName;
|
|
95
|
+
SheetTitle.displayName = DialogPrimitive.Title.displayName;
|
|
96
96
|
const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
97
|
-
Description,
|
|
97
|
+
DialogPrimitive.Description,
|
|
98
98
|
{
|
|
99
99
|
ref,
|
|
100
100
|
className: cn("text-sm text-muted-foreground", className),
|
|
101
101
|
...props
|
|
102
102
|
}
|
|
103
103
|
));
|
|
104
|
-
SheetDescription.displayName = Description.displayName;
|
|
104
|
+
SheetDescription.displayName = DialogPrimitive.Description.displayName;
|
|
105
105
|
|
|
106
106
|
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
2
|
+
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
3
3
|
export { Skeleton };
|
|
4
4
|
//# sourceMappingURL=skeleton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ui/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ui/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,qBAOtC;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
4
4
|
import { cn } from '../../lib/utils.js';
|
|
5
5
|
|
|
6
6
|
const Slider = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
7
|
-
Root,
|
|
7
|
+
SliderPrimitive.Root,
|
|
8
8
|
{
|
|
9
9
|
ref,
|
|
10
10
|
"data-slot": "slider",
|
|
@@ -15,17 +15,17 @@ const Slider = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
15
15
|
...props,
|
|
16
16
|
children: [
|
|
17
17
|
/* @__PURE__ */ jsx(
|
|
18
|
-
Track,
|
|
18
|
+
SliderPrimitive.Track,
|
|
19
19
|
{
|
|
20
20
|
className: "relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5",
|
|
21
21
|
"data-slot": "slider-track",
|
|
22
|
-
children: /* @__PURE__ */ jsx(Range, { "data-slot": "slider-track", className: "absolute bg-primary data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full" })
|
|
22
|
+
children: /* @__PURE__ */ jsx(SliderPrimitive.Range, { "data-slot": "slider-track", className: "absolute bg-primary data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full" })
|
|
23
23
|
}
|
|
24
24
|
),
|
|
25
|
-
Array.from({ length: props.value?.length || props.defaultValue?.length || 1 }).map((_, i) => /* @__PURE__ */ jsx(Thumb, { className: "border-primary !bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50" }, i))
|
|
25
|
+
Array.from({ length: props.value?.length || props.defaultValue?.length || 1 }).map((_, i) => /* @__PURE__ */ jsx(SliderPrimitive.Thumb, { className: "border-primary !bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50" }, i))
|
|
26
26
|
]
|
|
27
27
|
}
|
|
28
28
|
));
|
|
29
|
-
Slider.displayName = Root.displayName;
|
|
29
|
+
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
30
30
|
|
|
31
31
|
export { Slider };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { cva } from '
|
|
2
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
3
|
+
import * as Stepperize from '@stepperize/react';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { cn } from '../../lib/utils.js';
|
|
7
7
|
import { Button } from './button.tsx';
|
|
@@ -15,7 +15,7 @@ const useStepperProvider = () => {
|
|
|
15
15
|
return context;
|
|
16
16
|
};
|
|
17
17
|
const defineStepper = (...steps) => {
|
|
18
|
-
const { Scoped, useStepper, ...rest } =
|
|
18
|
+
const { Scoped, useStepper, ...rest } = Stepperize.defineStepper(...steps);
|
|
19
19
|
const StepperContainer = ({
|
|
20
20
|
children,
|
|
21
21
|
className,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
4
4
|
import { cn } from '../../lib/utils.js';
|
|
5
5
|
|
|
6
6
|
const Switch = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
7
|
-
Root,
|
|
7
|
+
SwitchPrimitive.Root,
|
|
8
8
|
{
|
|
9
9
|
className: cn(
|
|
10
10
|
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
|
|
@@ -13,7 +13,7 @@ const Switch = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
13
13
|
...props,
|
|
14
14
|
ref,
|
|
15
15
|
children: /* @__PURE__ */ jsx(
|
|
16
|
-
Thumb,
|
|
16
|
+
SwitchPrimitive.Thumb,
|
|
17
17
|
{
|
|
18
18
|
className: cn(
|
|
19
19
|
"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
|
|
@@ -22,6 +22,6 @@ const Switch = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
22
22
|
)
|
|
23
23
|
}
|
|
24
24
|
));
|
|
25
|
-
Switch.displayName = Root.displayName;
|
|
25
|
+
Switch.displayName = SwitchPrimitive.Root.displayName;
|
|
26
26
|
|
|
27
27
|
export { Switch };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
4
4
|
import { cn } from '../../lib/utils.js';
|
|
5
5
|
|
|
6
|
-
const Tabs = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
7
|
-
Tabs.displayName =
|
|
6
|
+
const Tabs = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Root, { ref, className: cn(className), ...props }));
|
|
7
|
+
Tabs.displayName = TabsPrimitive.Root.displayName;
|
|
8
8
|
const TabsList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
9
|
-
List,
|
|
9
|
+
TabsPrimitive.List,
|
|
10
10
|
{
|
|
11
11
|
ref,
|
|
12
12
|
className: cn(
|
|
@@ -16,9 +16,9 @@ const TabsList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
16
16
|
...props
|
|
17
17
|
}
|
|
18
18
|
));
|
|
19
|
-
TabsList.displayName = List.displayName;
|
|
19
|
+
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
20
20
|
const TabsTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
21
|
-
Trigger,
|
|
21
|
+
TabsPrimitive.Trigger,
|
|
22
22
|
{
|
|
23
23
|
ref,
|
|
24
24
|
className: cn(
|
|
@@ -28,9 +28,9 @@ const TabsTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
28
28
|
...props
|
|
29
29
|
}
|
|
30
30
|
));
|
|
31
|
-
TabsTrigger.displayName = Trigger.displayName;
|
|
31
|
+
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
32
32
|
const TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
33
|
-
Content,
|
|
33
|
+
TabsPrimitive.Content,
|
|
34
34
|
{
|
|
35
35
|
ref,
|
|
36
36
|
className: cn(
|
|
@@ -40,6 +40,6 @@ const TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
40
40
|
...props
|
|
41
41
|
}
|
|
42
42
|
));
|
|
43
|
-
TabsContent.displayName = Content.displayName;
|
|
43
|
+
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
44
44
|
|
|
45
45
|
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
4
4
|
import { cn } from '../../lib/utils.js';
|
|
5
5
|
|
|
6
|
-
const TooltipProvider = Provider;
|
|
7
|
-
const Tooltip =
|
|
8
|
-
const TooltipTrigger = Trigger;
|
|
6
|
+
const TooltipProvider = TooltipPrimitive.Provider;
|
|
7
|
+
const Tooltip = TooltipPrimitive.Root;
|
|
8
|
+
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
9
9
|
const TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
10
|
-
|
|
10
|
+
TooltipPrimitive.Content,
|
|
11
11
|
{
|
|
12
12
|
ref,
|
|
13
13
|
sideOffset,
|
|
@@ -18,6 +18,6 @@ const TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
18
18
|
...props
|
|
19
19
|
}
|
|
20
20
|
));
|
|
21
|
-
TooltipContent.displayName =
|
|
21
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
22
22
|
|
|
23
23
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import i18n from 'i18next';
|
|
3
|
-
import '../node_modules/react-i18next/dist/es/context.js';
|
|
4
|
-
import '../node_modules/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js';
|
|
5
|
-
import { useTranslation } from '../node_modules/react-i18next/dist/es/useTranslation.js';
|
|
1
|
+
import { useTranslation } from 'react-i18next';
|
|
6
2
|
import '../i18n/config.js';
|
|
3
|
+
import i18n from 'i18next';
|
|
7
4
|
|
|
8
5
|
const languageOptions = ["es", "en"];
|
|
9
6
|
function useLanguage() {
|
package/dist/i18n/config.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import i18n from 'i18next';
|
|
2
2
|
export { default, default as i18n } from 'i18next';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '../node_modules/react-i18next/dist/es/context.js';
|
|
5
|
-
import '../node_modules/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js';
|
|
6
|
-
import '../_virtual/index.js';
|
|
7
|
-
import { initReactI18next } from '../node_modules/react-i18next/dist/es/initReactI18next.js';
|
|
3
|
+
import { initReactI18next } from 'react-i18next';
|
|
8
4
|
import enTranslation from './locales/en.json.js';
|
|
9
5
|
import esTranslation from './locales/es.json.js';
|
|
10
6
|
import enFields from './locales/fields/en.json.js';
|
package/dist/lib/utils.js
CHANGED
|
@@ -8,7 +8,7 @@ export declare class CoreAuthBuilder<T extends CoreUser> implements CoreBuilder
|
|
|
8
8
|
build(): import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<CoreAuthStore<T>>, "persist"> & {
|
|
9
9
|
persist: {
|
|
10
10
|
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<CoreAuthStore<T>, {
|
|
11
|
-
user: T
|
|
11
|
+
user: T;
|
|
12
12
|
isAuthenticated: boolean;
|
|
13
13
|
}>>) => void;
|
|
14
14
|
clearStorage: () => void;
|
|
@@ -17,7 +17,7 @@ export declare class CoreAuthBuilder<T extends CoreUser> implements CoreBuilder
|
|
|
17
17
|
onHydrate: (fn: (state: CoreAuthStore<T>) => void) => () => void;
|
|
18
18
|
onFinishHydration: (fn: (state: CoreAuthStore<T>) => void) => () => void;
|
|
19
19
|
getOptions: () => Partial<import('zustand/middleware').PersistOptions<CoreAuthStore<T>, {
|
|
20
|
-
user: T
|
|
20
|
+
user: T;
|
|
21
21
|
isAuthenticated: boolean;
|
|
22
22
|
}>>;
|
|
23
23
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { create } from 'zustand';
|
|
1
2
|
import { persist } from '../../../node_modules/zustand/esm/middleware.js';
|
|
2
3
|
import { CoreAuthBaseService } from '../services/base.js';
|
|
3
|
-
import { create } from '../../../node_modules/zustand/esm/react.js';
|
|
4
4
|
|
|
5
5
|
class CoreAuthBuilder {
|
|
6
6
|
authService;
|
|
@@ -2,11 +2,11 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { CoreAuthStore, CoreUser } from '../types/CoreAuth';
|
|
3
3
|
export interface AuthContextValue<T extends CoreUser> extends CoreAuthStore<T> {
|
|
4
4
|
}
|
|
5
|
-
export declare const AuthContext: React.Context<AuthContextValue<any
|
|
5
|
+
export declare const AuthContext: React.Context<AuthContextValue<any>>;
|
|
6
6
|
export interface AuthProviderProps<T extends CoreUser> extends React.PropsWithChildren {
|
|
7
7
|
readonly useAuthStore: () => CoreAuthStore<T>;
|
|
8
8
|
readonly autoFetch?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare function AuthProvider<T extends CoreUser>({ children, useAuthStore, autoFetch, }: AuthProviderProps<T>):
|
|
10
|
+
export declare function AuthProvider<T extends CoreUser>({ children, useAuthStore, autoFetch, }: AuthProviderProps<T>): React.JSX.Element;
|
|
11
11
|
export declare function useAuthContext<T extends CoreUser = CoreUser>(): AuthContextValue<T>;
|
|
12
12
|
//# sourceMappingURL=AuthContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthContext.d.ts","sourceRoot":"","sources":["../../../../src/modules/CoreAuth/context/AuthContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,QAAQ,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;CAAG;AAEjF,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"AuthContext.d.ts","sourceRoot":"","sources":["../../../../src/modules/CoreAuth/context/AuthContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,QAAQ,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;CAAG;AAEjF,eAAO,MAAM,WAAW,sCAA8D,CAAC;AAEvF,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,QAAQ,CAAE,SAAQ,KAAK,CAAC,iBAAiB;IACpF,QAAQ,CAAC,YAAY,EAAE,MAAM,aAAa,CAAC,CAAC,CAAC,CAAC;IAC9C,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,QAAQ,EAAE,EAC/C,QAAQ,EACR,YAAY,EACZ,SAAgB,GACjB,EAAE,iBAAiB,CAAC,CAAC,CAAC,qBAgBtB;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,KAAK,gBAAgB,CAAC,CAAC,CAAC,CAMnF"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export declare function useAuth(): {
|
|
2
|
-
user: import('..').CoreUser
|
|
2
|
+
user: import('..').CoreUser;
|
|
3
3
|
isAuthenticated: boolean;
|
|
4
4
|
loading: boolean;
|
|
5
|
-
error: string
|
|
5
|
+
error: string;
|
|
6
6
|
getUser: () => Promise<import('../../..').BaseApiResponse<import('..').CoreGetUserResponse<import('..').CoreUser>>>;
|
|
7
7
|
login: <K extends import('..').CoreLoginCredentials>(credentials: K, actions?: import('../../..').CoreActions) => Promise<import('../../..').BaseApiResponse<import('..').CoreAuthLoginResponse<import('..').CoreUser>>>;
|
|
8
8
|
register: <K extends import('..').CoreRegisterCredentials>(credentials: K, actions?: import('../../..').CoreActions) => Promise<import('../../..').BaseApiResponse<import('..').CoreAuthRegisterResponse<import('..').CoreUser>>>;
|
|
9
9
|
logout: (actions?: import('../../..').CoreActions) => Promise<void>;
|
|
10
10
|
updateUser: (userId: Pick<import('..').CoreUser, "id">, updateUserData: Partial<import('..').CoreUser>, actions?: import('../../..').CoreActions) => Promise<import('../../..').BaseApiResponse<import('..').CoreUser>>;
|
|
11
11
|
deleteUser: (userId: Pick<import('..').CoreUser, "id">, actions?: import('../../..').CoreActions) => Promise<import('../../..').BaseApiResponse<null>>;
|
|
12
|
-
setUser: (user: import('..').CoreUser
|
|
12
|
+
setUser: (user: import('..').CoreUser) => void;
|
|
13
13
|
setLoading: (loading: boolean) => void;
|
|
14
14
|
setError: (error: any) => void;
|
|
15
15
|
reset: () => void;
|
|
@@ -3,7 +3,7 @@ import { CoreAuthBaseService } from '../services/base';
|
|
|
3
3
|
export declare function createAuthStore<T extends CoreUser = CoreUser>(service?: CoreAuthBaseService<T>, initialState?: any): import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<CoreAuthStore<T>>, "persist"> & {
|
|
4
4
|
persist: {
|
|
5
5
|
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<CoreAuthStore<T>, {
|
|
6
|
-
user: T
|
|
6
|
+
user: T;
|
|
7
7
|
isAuthenticated: boolean;
|
|
8
8
|
}>>) => void;
|
|
9
9
|
clearStorage: () => void;
|
|
@@ -12,7 +12,7 @@ export declare function createAuthStore<T extends CoreUser = CoreUser>(service?:
|
|
|
12
12
|
onHydrate: (fn: (state: CoreAuthStore<T>) => void) => () => void;
|
|
13
13
|
onFinishHydration: (fn: (state: CoreAuthStore<T>) => void) => () => void;
|
|
14
14
|
getOptions: () => Partial<import('zustand/middleware').PersistOptions<CoreAuthStore<T>, {
|
|
15
|
-
user: T
|
|
15
|
+
user: T;
|
|
16
16
|
isAuthenticated: boolean;
|
|
17
17
|
}>>;
|
|
18
18
|
};
|
|
@@ -8,13 +8,13 @@ export declare class CoreCustomizationBuilder implements CoreBuilder {
|
|
|
8
8
|
build(): import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<CoreCustomizationStore>, "persist"> & {
|
|
9
9
|
persist: {
|
|
10
10
|
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<CoreCustomizationStore, {
|
|
11
|
-
template: string
|
|
11
|
+
template: string;
|
|
12
12
|
components: {
|
|
13
13
|
key: string;
|
|
14
14
|
component: string;
|
|
15
|
-
}[]
|
|
16
|
-
styles: import('../../../types/ui').CoreDesignTemplateStyles[]
|
|
17
|
-
settings: import('../../../types/ui').CoreDesignTemplateSettings
|
|
15
|
+
}[];
|
|
16
|
+
styles: import('../../../types/ui').CoreDesignTemplateStyles[];
|
|
17
|
+
settings: import('../../../types/ui').CoreDesignTemplateSettings;
|
|
18
18
|
}>>) => void;
|
|
19
19
|
clearStorage: () => void;
|
|
20
20
|
rehydrate: () => Promise<void> | void;
|
|
@@ -22,13 +22,13 @@ export declare class CoreCustomizationBuilder implements CoreBuilder {
|
|
|
22
22
|
onHydrate: (fn: (state: CoreCustomizationStore) => void) => () => void;
|
|
23
23
|
onFinishHydration: (fn: (state: CoreCustomizationStore) => void) => () => void;
|
|
24
24
|
getOptions: () => Partial<import('zustand/middleware').PersistOptions<CoreCustomizationStore, {
|
|
25
|
-
template: string
|
|
25
|
+
template: string;
|
|
26
26
|
components: {
|
|
27
27
|
key: string;
|
|
28
28
|
component: string;
|
|
29
|
-
}[]
|
|
30
|
-
styles: import('../../../types/ui').CoreDesignTemplateStyles[]
|
|
31
|
-
settings: import('../../../types/ui').CoreDesignTemplateSettings
|
|
29
|
+
}[];
|
|
30
|
+
styles: import('../../../types/ui').CoreDesignTemplateStyles[];
|
|
31
|
+
settings: import('../../../types/ui').CoreDesignTemplateSettings;
|
|
32
32
|
}>>;
|
|
33
33
|
};
|
|
34
34
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { create } from 'zustand';
|
|
1
2
|
import { persist } from '../../../node_modules/zustand/esm/middleware.js';
|
|
2
3
|
import { CoreCustomizationBaseService } from '../services/base.js';
|
|
3
|
-
import { create } from '../../../node_modules/zustand/esm/react.js';
|
|
4
4
|
|
|
5
5
|
class CoreCustomizationBuilder {
|
|
6
6
|
customizationService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { create } from 'zustand';
|
|
1
2
|
import { persist } from '../../../node_modules/zustand/esm/middleware.js';
|
|
2
3
|
import { CoreOrderBaseService } from '../services/base.js';
|
|
3
|
-
import { create } from '../../../node_modules/zustand/esm/react.js';
|
|
4
4
|
|
|
5
5
|
class CoreOrderBuilder {
|
|
6
6
|
orderService;
|
|
@@ -8,7 +8,7 @@ export declare class CorePayFormBuilder<T extends CorePayForm = CorePayForm> imp
|
|
|
8
8
|
build(): import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<CorePayFormStore<T>>, "persist"> & {
|
|
9
9
|
persist: {
|
|
10
10
|
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<CorePayFormStore<T>, {
|
|
11
|
-
payForms: T[]
|
|
11
|
+
payForms: T[];
|
|
12
12
|
}>>) => void;
|
|
13
13
|
clearStorage: () => void;
|
|
14
14
|
rehydrate: () => Promise<void> | void;
|
|
@@ -16,7 +16,7 @@ export declare class CorePayFormBuilder<T extends CorePayForm = CorePayForm> imp
|
|
|
16
16
|
onHydrate: (fn: (state: CorePayFormStore<T>) => void) => () => void;
|
|
17
17
|
onFinishHydration: (fn: (state: CorePayFormStore<T>) => void) => () => void;
|
|
18
18
|
getOptions: () => Partial<import('zustand/middleware').PersistOptions<CorePayFormStore<T>, {
|
|
19
|
-
payForms: T[]
|
|
19
|
+
payForms: T[];
|
|
20
20
|
}>>;
|
|
21
21
|
};
|
|
22
22
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { create } from 'zustand';
|
|
1
2
|
import { persist } from '../../../node_modules/zustand/esm/middleware.js';
|
|
2
3
|
import { CorePayFormBaseService } from '../services/base.js';
|
|
3
|
-
import { create } from '../../../node_modules/zustand/esm/react.js';
|
|
4
4
|
|
|
5
5
|
class CorePayFormBuilder {
|
|
6
6
|
payFormService;
|
|
@@ -9,10 +9,10 @@ export declare class CoreProductBuilder<T extends CoreProduct = CoreProduct, K e
|
|
|
9
9
|
build(): import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<CoreProductStore<T, K>>, "persist"> & {
|
|
10
10
|
persist: {
|
|
11
11
|
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<CoreProductStore<T, K>, {
|
|
12
|
-
productDetails: T
|
|
13
|
-
products: import('../../../types').BasePagination<T
|
|
14
|
-
categories: K[]
|
|
15
|
-
bestSellers: T[]
|
|
12
|
+
productDetails: T;
|
|
13
|
+
products: import('../../../types').BasePagination<T>;
|
|
14
|
+
categories: K[];
|
|
15
|
+
bestSellers: T[];
|
|
16
16
|
}>>) => void;
|
|
17
17
|
clearStorage: () => void;
|
|
18
18
|
rehydrate: () => Promise<void> | void;
|
|
@@ -20,10 +20,10 @@ export declare class CoreProductBuilder<T extends CoreProduct = CoreProduct, K e
|
|
|
20
20
|
onHydrate: (fn: (state: CoreProductStore<T, K>) => void) => () => void;
|
|
21
21
|
onFinishHydration: (fn: (state: CoreProductStore<T, K>) => void) => () => void;
|
|
22
22
|
getOptions: () => Partial<import('zustand/middleware').PersistOptions<CoreProductStore<T, K>, {
|
|
23
|
-
productDetails: T
|
|
24
|
-
products: import('../../../types').BasePagination<T
|
|
25
|
-
categories: K[]
|
|
26
|
-
bestSellers: T[]
|
|
23
|
+
productDetails: T;
|
|
24
|
+
products: import('../../../types').BasePagination<T>;
|
|
25
|
+
categories: K[];
|
|
26
|
+
bestSellers: T[];
|
|
27
27
|
}>>;
|
|
28
28
|
};
|
|
29
29
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { create } from 'zustand';
|
|
1
2
|
import { persist } from '../../../node_modules/zustand/esm/middleware.js';
|
|
2
3
|
import { CoreProductBaseService } from '../services/base.js';
|
|
3
|
-
import { create } from '../../../node_modules/zustand/esm/react.js';
|
|
4
4
|
|
|
5
5
|
class CoreProductBuilder {
|
|
6
6
|
productService;
|
|
@@ -8,9 +8,9 @@ export declare class CoreShipmentBuilder<T extends CoreShippingMethod<Z>, K exte
|
|
|
8
8
|
build(): import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<CoreShipmentStore<T, K, Z, Y>>, "persist"> & {
|
|
9
9
|
persist: {
|
|
10
10
|
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<CoreShipmentStore<T, K, Z, Y>, {
|
|
11
|
-
shippingMethods: T[]
|
|
12
|
-
shippingAddresses: import('../../..').BasePagination<K
|
|
13
|
-
beneficiaries: import('../../..').BasePagination<Y
|
|
11
|
+
shippingMethods: T[];
|
|
12
|
+
shippingAddresses: import('../../..').BasePagination<K>;
|
|
13
|
+
beneficiaries: import('../../..').BasePagination<Y>;
|
|
14
14
|
}>>) => void;
|
|
15
15
|
clearStorage: () => void;
|
|
16
16
|
rehydrate: () => Promise<void> | void;
|
|
@@ -18,9 +18,9 @@ export declare class CoreShipmentBuilder<T extends CoreShippingMethod<Z>, K exte
|
|
|
18
18
|
onHydrate: (fn: (state: CoreShipmentStore<T, K, Z, Y>) => void) => () => void;
|
|
19
19
|
onFinishHydration: (fn: (state: CoreShipmentStore<T, K, Z, Y>) => void) => () => void;
|
|
20
20
|
getOptions: () => Partial<import('zustand/middleware').PersistOptions<CoreShipmentStore<T, K, Z, Y>, {
|
|
21
|
-
shippingMethods: T[]
|
|
22
|
-
shippingAddresses: import('../../..').BasePagination<K
|
|
23
|
-
beneficiaries: import('../../..').BasePagination<Y
|
|
21
|
+
shippingMethods: T[];
|
|
22
|
+
shippingAddresses: import('../../..').BasePagination<K>;
|
|
23
|
+
beneficiaries: import('../../..').BasePagination<Y>;
|
|
24
24
|
}>>;
|
|
25
25
|
};
|
|
26
26
|
}>;
|