ingeniuscliq-core 0.4.18 → 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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
4
|
+
import { Check } from 'lucide-react';
|
|
4
5
|
import { cn } from '../../lib/utils.js';
|
|
5
|
-
import Check from '../../node_modules/lucide-react/dist/esm/icons/check.js';
|
|
6
6
|
|
|
7
7
|
const Checkbox = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8
|
-
|
|
8
|
+
CheckboxPrimitive.Root,
|
|
9
9
|
{
|
|
10
10
|
ref,
|
|
11
11
|
"data-slot": "checkbox",
|
|
@@ -15,7 +15,7 @@ const Checkbox = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
15
15
|
),
|
|
16
16
|
...props,
|
|
17
17
|
children: /* @__PURE__ */ jsx(
|
|
18
|
-
|
|
18
|
+
CheckboxPrimitive.Indicator,
|
|
19
19
|
{
|
|
20
20
|
className: cn("flex items-center justify-center text-current"),
|
|
21
21
|
children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" })
|
|
@@ -23,6 +23,6 @@ const Checkbox = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
23
23
|
)
|
|
24
24
|
}
|
|
25
25
|
));
|
|
26
|
-
Checkbox.displayName =
|
|
26
|
+
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
27
27
|
|
|
28
28
|
export { Checkbox };
|
|
@@ -9,11 +9,11 @@ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitiv
|
|
|
9
9
|
showCloseButton?: boolean;
|
|
10
10
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
declare const DialogHeader: {
|
|
12
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
12
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
13
13
|
displayName: string;
|
|
14
14
|
};
|
|
15
15
|
declare const DialogFooter: {
|
|
16
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
16
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
};
|
|
19
19
|
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
|
+
import { X } from 'lucide-react';
|
|
4
5
|
import { cn } from '../../lib/utils.js';
|
|
5
|
-
import X from '../../node_modules/lucide-react/dist/esm/icons/x.js';
|
|
6
6
|
|
|
7
|
-
const Dialog = Root;
|
|
8
|
-
const DialogTrigger = Trigger;
|
|
9
|
-
const DialogPortal = Portal;
|
|
10
|
-
const DialogClose = Close;
|
|
7
|
+
const Dialog = DialogPrimitive.Root;
|
|
8
|
+
const DialogTrigger = DialogPrimitive.Trigger;
|
|
9
|
+
const DialogPortal = DialogPrimitive.Portal;
|
|
10
|
+
const DialogClose = DialogPrimitive.Close;
|
|
11
11
|
const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12
|
-
Overlay,
|
|
12
|
+
DialogPrimitive.Overlay,
|
|
13
13
|
{
|
|
14
14
|
ref,
|
|
15
15
|
className: cn(
|
|
@@ -19,11 +19,11 @@ const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
19
19
|
...props
|
|
20
20
|
}
|
|
21
21
|
));
|
|
22
|
-
DialogOverlay.displayName = Overlay.displayName;
|
|
22
|
+
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
23
23
|
const DialogContent = React.forwardRef(({ className, children, showCloseButton = true, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
24
24
|
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
25
25
|
/* @__PURE__ */ jsxs(
|
|
26
|
-
Content,
|
|
26
|
+
DialogPrimitive.Content,
|
|
27
27
|
{
|
|
28
28
|
ref,
|
|
29
29
|
className: cn(
|
|
@@ -33,7 +33,7 @@ const DialogContent = React.forwardRef(({ className, children, showCloseButton =
|
|
|
33
33
|
...props,
|
|
34
34
|
children: [
|
|
35
35
|
children,
|
|
36
|
-
showCloseButton && /* @__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-accent data-[state=open]:text-muted-foreground", children: [
|
|
36
|
+
showCloseButton && /* @__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-accent data-[state=open]:text-muted-foreground", children: [
|
|
37
37
|
/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
|
|
38
38
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
39
39
|
] })
|
|
@@ -41,7 +41,7 @@ const DialogContent = React.forwardRef(({ className, children, showCloseButton =
|
|
|
41
41
|
}
|
|
42
42
|
)
|
|
43
43
|
] }));
|
|
44
|
-
DialogContent.displayName = Content.displayName;
|
|
44
|
+
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
45
45
|
const DialogHeader = ({
|
|
46
46
|
className,
|
|
47
47
|
...props
|
|
@@ -71,7 +71,7 @@ const DialogFooter = ({
|
|
|
71
71
|
);
|
|
72
72
|
DialogFooter.displayName = "DialogFooter";
|
|
73
73
|
const DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
74
|
-
Title,
|
|
74
|
+
DialogPrimitive.Title,
|
|
75
75
|
{
|
|
76
76
|
ref,
|
|
77
77
|
className: cn(
|
|
@@ -81,15 +81,15 @@ const DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
81
81
|
...props
|
|
82
82
|
}
|
|
83
83
|
));
|
|
84
|
-
DialogTitle.displayName = Title.displayName;
|
|
84
|
+
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
85
85
|
const DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
86
|
-
Description,
|
|
86
|
+
DialogPrimitive.Description,
|
|
87
87
|
{
|
|
88
88
|
ref,
|
|
89
89
|
className: cn("text-sm text-muted-foreground", className),
|
|
90
90
|
...props
|
|
91
91
|
}
|
|
92
92
|
));
|
|
93
|
-
DialogDescription.displayName = Description.displayName;
|
|
93
|
+
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
94
94
|
|
|
95
95
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
@@ -22,7 +22,7 @@ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMe
|
|
|
22
22
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
23
23
|
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
24
|
declare const DropdownMenuShortcut: {
|
|
25
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>):
|
|
25
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
26
26
|
displayName: string;
|
|
27
27
|
};
|
|
28
28
|
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
|
+
import { ChevronRight, Check, Circle } from 'lucide-react';
|
|
4
5
|
import { cn } from '../../lib/utils.js';
|
|
5
|
-
import ChevronRight from '../../node_modules/lucide-react/dist/esm/icons/chevron-right.js';
|
|
6
|
-
import Check from '../../node_modules/lucide-react/dist/esm/icons/check.js';
|
|
7
|
-
import Circle from '../../node_modules/lucide-react/dist/esm/icons/circle.js';
|
|
8
6
|
|
|
9
|
-
const DropdownMenu =
|
|
10
|
-
const DropdownMenuTrigger = Trigger;
|
|
11
|
-
const DropdownMenuGroup =
|
|
12
|
-
const DropdownMenuPortal =
|
|
13
|
-
const DropdownMenuSub =
|
|
14
|
-
const DropdownMenuRadioGroup =
|
|
7
|
+
const DropdownMenu = DropdownMenuPrimitive.Root;
|
|
8
|
+
const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
9
|
+
const DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
10
|
+
const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
11
|
+
const DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
12
|
+
const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
15
13
|
const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
16
|
-
|
|
14
|
+
DropdownMenuPrimitive.SubTrigger,
|
|
17
15
|
{
|
|
18
16
|
ref,
|
|
19
17
|
className: cn(
|
|
@@ -28,9 +26,9 @@ const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, .
|
|
|
28
26
|
]
|
|
29
27
|
}
|
|
30
28
|
));
|
|
31
|
-
DropdownMenuSubTrigger.displayName =
|
|
29
|
+
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
32
30
|
const DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
33
|
-
|
|
31
|
+
DropdownMenuPrimitive.SubContent,
|
|
34
32
|
{
|
|
35
33
|
ref,
|
|
36
34
|
className: cn(
|
|
@@ -40,9 +38,9 @@ const DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) =
|
|
|
40
38
|
...props
|
|
41
39
|
}
|
|
42
40
|
));
|
|
43
|
-
DropdownMenuSubContent.displayName =
|
|
44
|
-
const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
45
|
-
|
|
41
|
+
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
42
|
+
const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
43
|
+
DropdownMenuPrimitive.Content,
|
|
46
44
|
{
|
|
47
45
|
ref,
|
|
48
46
|
sideOffset,
|
|
@@ -53,9 +51,9 @@ const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
53
51
|
...props
|
|
54
52
|
}
|
|
55
53
|
) }));
|
|
56
|
-
DropdownMenuContent.displayName =
|
|
54
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
57
55
|
const DropdownMenuItem = React.forwardRef(({ className, inset, variant = "default", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
58
|
-
|
|
56
|
+
DropdownMenuPrimitive.Item,
|
|
59
57
|
{
|
|
60
58
|
ref,
|
|
61
59
|
className: cn(
|
|
@@ -67,9 +65,9 @@ const DropdownMenuItem = React.forwardRef(({ className, inset, variant = "defaul
|
|
|
67
65
|
...props
|
|
68
66
|
}
|
|
69
67
|
));
|
|
70
|
-
DropdownMenuItem.displayName =
|
|
68
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
71
69
|
const DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
72
|
-
|
|
70
|
+
DropdownMenuPrimitive.CheckboxItem,
|
|
73
71
|
{
|
|
74
72
|
ref,
|
|
75
73
|
className: cn(
|
|
@@ -79,14 +77,14 @@ const DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checke
|
|
|
79
77
|
checked,
|
|
80
78
|
...props,
|
|
81
79
|
children: [
|
|
82
|
-
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
80
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
|
|
83
81
|
children
|
|
84
82
|
]
|
|
85
83
|
}
|
|
86
84
|
));
|
|
87
|
-
DropdownMenuCheckboxItem.displayName =
|
|
85
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
88
86
|
const DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
89
|
-
|
|
87
|
+
DropdownMenuPrimitive.RadioItem,
|
|
90
88
|
{
|
|
91
89
|
ref,
|
|
92
90
|
className: cn(
|
|
@@ -95,14 +93,14 @@ const DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props
|
|
|
95
93
|
),
|
|
96
94
|
...props,
|
|
97
95
|
children: [
|
|
98
|
-
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
96
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
99
97
|
children
|
|
100
98
|
]
|
|
101
99
|
}
|
|
102
100
|
));
|
|
103
|
-
DropdownMenuRadioItem.displayName =
|
|
101
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
104
102
|
const DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
105
|
-
|
|
103
|
+
DropdownMenuPrimitive.Label,
|
|
106
104
|
{
|
|
107
105
|
ref,
|
|
108
106
|
className: cn(
|
|
@@ -113,16 +111,16 @@ const DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref)
|
|
|
113
111
|
...props
|
|
114
112
|
}
|
|
115
113
|
));
|
|
116
|
-
DropdownMenuLabel.displayName =
|
|
114
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
117
115
|
const DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
118
|
-
|
|
116
|
+
DropdownMenuPrimitive.Separator,
|
|
119
117
|
{
|
|
120
118
|
ref,
|
|
121
119
|
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
122
120
|
...props
|
|
123
121
|
}
|
|
124
122
|
));
|
|
125
|
-
DropdownMenuSeparator.displayName =
|
|
123
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
126
124
|
const DropdownMenuShortcut = ({
|
|
127
125
|
className,
|
|
128
126
|
...props
|
|
@@ -2,7 +2,7 @@ import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
4
4
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import('react-hook-form').FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
5
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) =>
|
|
5
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React.JSX.Element;
|
|
6
6
|
declare const useFormField: () => {
|
|
7
7
|
invalid: boolean;
|
|
8
8
|
isDirty: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/ui/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAA;AAEvD,OAAO,EAEL,eAAe,EACf,SAAS,EACT,WAAW,EAGZ,MAAM,iBAAiB,CAAA;AAKxB,QAAA,MAAM,IAAI,4MAAe,CAAA;AAazB,QAAA,MAAM,SAAS,GACb,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC/D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/ui/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAA;AAEvD,OAAO,EAEL,eAAe,EACf,SAAS,EACT,WAAW,EAGZ,MAAM,iBAAiB,CAAA;AAKxB,QAAA,MAAM,IAAI,4MAAe,CAAA;AAazB,QAAA,MAAM,SAAS,GACb,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC/D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,sBAMtC,CAAA;AAED,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAA;AAUD,QAAA,MAAM,QAAQ,6GAWZ,CAAA;AAGF,QAAA,MAAM,SAAS,yJAcb,CAAA;AAGF,QAAA,MAAM,WAAW,8JAmBf,CAAA;AAGF,QAAA,MAAM,eAAe,yHAcnB,CAAA;AAGF,QAAA,MAAM,WAAW,yHAqBf,CAAA;AAGF,OAAO,EACL,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,eAAe,EACf,WAAW,EACX,SAAS,GACV,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { useFormContext, FormProvider, Controller } from '
|
|
3
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
4
|
+
import { useFormContext, FormProvider, Controller } from 'react-hook-form';
|
|
5
5
|
import { cn } from '../../lib/utils.js';
|
|
6
6
|
import { Label } from './label.tsx';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
4
|
-
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import('class-variance-authority/types').ClassProp
|
|
4
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import('class-variance-authority/types').ClassProp) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
5
5
|
export { Label };
|
|
6
6
|
//# sourceMappingURL=label.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/ui/label.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAQjE,QAAA,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/ui/label.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAQjE,QAAA,MAAM,KAAK,gPAUT,CAAA;AAGF,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
4
|
-
import { cva } from '
|
|
3
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
5
|
import { cn } from '../../lib/utils.js';
|
|
6
6
|
|
|
7
7
|
const labelVariants = cva(
|
|
8
8
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
9
9
|
);
|
|
10
10
|
const Label = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11
|
-
Root,
|
|
11
|
+
LabelPrimitive.Root,
|
|
12
12
|
{
|
|
13
13
|
ref,
|
|
14
14
|
className: cn(labelVariants(), className),
|
|
15
15
|
...props
|
|
16
16
|
}
|
|
17
17
|
));
|
|
18
|
-
Label.displayName = Root.displayName;
|
|
18
|
+
Label.displayName = LabelPrimitive.Root.displayName;
|
|
19
19
|
|
|
20
20
|
export { Label };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonProps } from './button';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const Pagination: {
|
|
4
|
-
({ className, ...props }: React.ComponentProps<"nav">):
|
|
4
|
+
({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
@@ -12,19 +12,19 @@ type PaginationLinkProps = {
|
|
|
12
12
|
isActive?: boolean;
|
|
13
13
|
} & Pick<ButtonProps, "size"> & React.ComponentProps<"a">;
|
|
14
14
|
declare const PaginationLink: {
|
|
15
|
-
({ className, isActive, size, ...props }: PaginationLinkProps):
|
|
15
|
+
({ className, isActive, size, ...props }: PaginationLinkProps): React.JSX.Element;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
18
18
|
declare const PaginationPrevious: {
|
|
19
|
-
({ className, ...props }: React.ComponentProps<typeof PaginationLink>):
|
|
19
|
+
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
|
|
20
20
|
displayName: string;
|
|
21
21
|
};
|
|
22
22
|
declare const PaginationNext: {
|
|
23
|
-
({ className, ...props }: React.ComponentProps<typeof PaginationLink>):
|
|
23
|
+
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
|
|
24
24
|
displayName: string;
|
|
25
25
|
};
|
|
26
26
|
declare const PaginationEllipsis: {
|
|
27
|
-
({ className, ...props }: React.ComponentProps<"span">):
|
|
27
|
+
({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
28
28
|
displayName: string;
|
|
29
29
|
};
|
|
30
30
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { MoreHorizontal, ChevronRight, ChevronLeft } from 'lucide-react';
|
|
3
4
|
import { cn } from '../../lib/utils.js';
|
|
4
5
|
import { buttonVariants } from './button.tsx';
|
|
5
6
|
import { useLanguage } from '../../hooks/useLanguage.js';
|
|
6
|
-
import Ellipsis from '../../node_modules/lucide-react/dist/esm/icons/ellipsis.js';
|
|
7
|
-
import ChevronRight from '../../node_modules/lucide-react/dist/esm/icons/chevron-right.js';
|
|
8
|
-
import ChevronLeft from '../../node_modules/lucide-react/dist/esm/icons/chevron-left.js';
|
|
9
7
|
|
|
10
8
|
const Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
11
9
|
"nav",
|
|
@@ -111,7 +109,7 @@ const PaginationEllipsis = ({
|
|
|
111
109
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
112
110
|
...props,
|
|
113
111
|
children: [
|
|
114
|
-
/* @__PURE__ */ jsx(
|
|
112
|
+
/* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }),
|
|
115
113
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: t("pagination.more_pages") })
|
|
116
114
|
]
|
|
117
115
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
4
4
|
import { cn } from '../../lib/utils.js';
|
|
5
5
|
|
|
6
|
-
const Popover =
|
|
7
|
-
const PopoverTrigger = Trigger;
|
|
8
|
-
const PopoverAnchor =
|
|
9
|
-
const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(
|
|
10
|
-
|
|
6
|
+
const Popover = PopoverPrimitive.Root;
|
|
7
|
+
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
8
|
+
const PopoverAnchor = PopoverPrimitive.Anchor;
|
|
9
|
+
const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
10
|
+
PopoverPrimitive.Content,
|
|
11
11
|
{
|
|
12
12
|
ref,
|
|
13
13
|
align,
|
|
@@ -19,6 +19,6 @@ const PopoverContent = React.forwardRef(({ className, align = "center", sideOffs
|
|
|
19
19
|
...props
|
|
20
20
|
}
|
|
21
21
|
) }));
|
|
22
|
-
PopoverContent.displayName =
|
|
22
|
+
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
23
23
|
|
|
24
24
|
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
4
|
+
import { Circle } from 'lucide-react';
|
|
4
5
|
import { cn } from '../../lib/utils.js';
|
|
5
|
-
import Circle from '../../node_modules/lucide-react/dist/esm/icons/circle.js';
|
|
6
6
|
|
|
7
7
|
const RadioGroup = React.forwardRef(({ className, ...props }, ref) => {
|
|
8
8
|
return /* @__PURE__ */ jsx(
|
|
9
|
-
|
|
9
|
+
RadioGroupPrimitive.Root,
|
|
10
10
|
{
|
|
11
11
|
className: cn("grid gap-2", className),
|
|
12
12
|
...props,
|
|
@@ -14,10 +14,10 @@ const RadioGroup = React.forwardRef(({ className, ...props }, ref) => {
|
|
|
14
14
|
}
|
|
15
15
|
);
|
|
16
16
|
});
|
|
17
|
-
RadioGroup.displayName =
|
|
17
|
+
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
18
18
|
const RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => {
|
|
19
19
|
return /* @__PURE__ */ jsx(
|
|
20
|
-
|
|
20
|
+
RadioGroupPrimitive.Item,
|
|
21
21
|
{
|
|
22
22
|
ref,
|
|
23
23
|
className: cn(
|
|
@@ -25,10 +25,10 @@ const RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => {
|
|
|
25
25
|
className
|
|
26
26
|
),
|
|
27
27
|
...props,
|
|
28
|
-
children: /* @__PURE__ */ jsx(Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
28
|
+
children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
31
|
});
|
|
32
|
-
RadioGroupItem.displayName =
|
|
32
|
+
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
33
33
|
|
|
34
34
|
export { RadioGroup, RadioGroupItem };
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
4
|
+
import { ChevronDown, ChevronUp, Check } from 'lucide-react';
|
|
4
5
|
import { cn } from '../../lib/utils.js';
|
|
5
|
-
import ChevronDown from '../../node_modules/lucide-react/dist/esm/icons/chevron-down.js';
|
|
6
|
-
import ChevronUp from '../../node_modules/lucide-react/dist/esm/icons/chevron-up.js';
|
|
7
|
-
import Check from '../../node_modules/lucide-react/dist/esm/icons/check.js';
|
|
8
6
|
|
|
9
|
-
const Select =
|
|
10
|
-
const SelectGroup = Group;
|
|
7
|
+
const Select = SelectPrimitive.Root;
|
|
8
|
+
const SelectGroup = SelectPrimitive.Group;
|
|
11
9
|
const SelectValue = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12
|
-
Value,
|
|
10
|
+
SelectPrimitive.Value,
|
|
13
11
|
{
|
|
14
12
|
ref,
|
|
15
13
|
"data-slot": "select-value",
|
|
@@ -17,9 +15,9 @@ const SelectValue = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
17
15
|
...props
|
|
18
16
|
}
|
|
19
17
|
));
|
|
20
|
-
SelectValue.displayName = Value.displayName;
|
|
18
|
+
SelectValue.displayName = SelectPrimitive.Value.displayName;
|
|
21
19
|
const SelectTrigger = React.forwardRef(({ className, children, size = "default", ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
22
|
-
Trigger,
|
|
20
|
+
SelectPrimitive.Trigger,
|
|
23
21
|
{
|
|
24
22
|
ref,
|
|
25
23
|
"data-slot": "select-trigger",
|
|
@@ -31,13 +29,13 @@ const SelectTrigger = React.forwardRef(({ className, children, size = "default",
|
|
|
31
29
|
...props,
|
|
32
30
|
children: [
|
|
33
31
|
children,
|
|
34
|
-
/* @__PURE__ */ jsx(Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown, { className: "size-4 opacity-50" }) })
|
|
32
|
+
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown, { className: "size-4 opacity-50" }) })
|
|
35
33
|
]
|
|
36
34
|
}
|
|
37
35
|
));
|
|
38
|
-
SelectTrigger.displayName = Trigger.displayName;
|
|
36
|
+
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
39
37
|
const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
40
|
-
ScrollUpButton,
|
|
38
|
+
SelectPrimitive.ScrollUpButton,
|
|
41
39
|
{
|
|
42
40
|
ref,
|
|
43
41
|
className: cn(
|
|
@@ -48,9 +46,9 @@ const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) =>
|
|
|
48
46
|
children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4" })
|
|
49
47
|
}
|
|
50
48
|
));
|
|
51
|
-
SelectScrollUpButton.displayName = ScrollUpButton.displayName;
|
|
49
|
+
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
52
50
|
const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
53
|
-
ScrollDownButton,
|
|
51
|
+
SelectPrimitive.ScrollDownButton,
|
|
54
52
|
{
|
|
55
53
|
ref,
|
|
56
54
|
className: cn(
|
|
@@ -61,9 +59,9 @@ const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) =
|
|
|
61
59
|
children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" })
|
|
62
60
|
}
|
|
63
61
|
));
|
|
64
|
-
SelectScrollDownButton.displayName = ScrollDownButton.displayName;
|
|
65
|
-
const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsxs(
|
|
66
|
-
|
|
62
|
+
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
63
|
+
const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
64
|
+
SelectPrimitive.Content,
|
|
67
65
|
{
|
|
68
66
|
ref,
|
|
69
67
|
className: cn(
|
|
@@ -76,7 +74,7 @@ const SelectContent = React.forwardRef(({ className, children, position = "poppe
|
|
|
76
74
|
children: [
|
|
77
75
|
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
78
76
|
/* @__PURE__ */ jsx(
|
|
79
|
-
Viewport,
|
|
77
|
+
SelectPrimitive.Viewport,
|
|
80
78
|
{
|
|
81
79
|
className: cn(
|
|
82
80
|
"p-1",
|
|
@@ -89,18 +87,18 @@ const SelectContent = React.forwardRef(({ className, children, position = "poppe
|
|
|
89
87
|
]
|
|
90
88
|
}
|
|
91
89
|
) }));
|
|
92
|
-
SelectContent.displayName =
|
|
90
|
+
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
93
91
|
const SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
94
|
-
Label,
|
|
92
|
+
SelectPrimitive.Label,
|
|
95
93
|
{
|
|
96
94
|
ref,
|
|
97
95
|
className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
|
|
98
96
|
...props
|
|
99
97
|
}
|
|
100
98
|
));
|
|
101
|
-
SelectLabel.displayName = Label.displayName;
|
|
99
|
+
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
102
100
|
const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
103
|
-
Item,
|
|
101
|
+
SelectPrimitive.Item,
|
|
104
102
|
{
|
|
105
103
|
ref,
|
|
106
104
|
className: cn(
|
|
@@ -109,20 +107,20 @@ const SelectItem = React.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
109
107
|
),
|
|
110
108
|
...props,
|
|
111
109
|
children: [
|
|
112
|
-
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
|
|
113
|
-
/* @__PURE__ */ jsx(ItemText, { children })
|
|
110
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
|
|
111
|
+
/* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
|
|
114
112
|
]
|
|
115
113
|
}
|
|
116
114
|
));
|
|
117
|
-
SelectItem.displayName = Item.displayName;
|
|
115
|
+
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
118
116
|
const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
119
|
-
Separator,
|
|
117
|
+
SelectPrimitive.Separator,
|
|
120
118
|
{
|
|
121
119
|
ref,
|
|
122
120
|
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
123
121
|
...props
|
|
124
122
|
}
|
|
125
123
|
));
|
|
126
|
-
SelectSeparator.displayName = Separator.displayName;
|
|
124
|
+
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
127
125
|
|
|
128
126
|
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
4
4
|
import { cn } from '../../lib/utils.js';
|
|
5
5
|
|
|
6
6
|
const Separator = React.forwardRef(
|
|
7
7
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8
|
-
Root,
|
|
8
|
+
SeparatorPrimitive.Root,
|
|
9
9
|
{
|
|
10
10
|
ref,
|
|
11
11
|
decorative,
|
|
@@ -19,6 +19,6 @@ const Separator = React.forwardRef(
|
|
|
19
19
|
}
|
|
20
20
|
)
|
|
21
21
|
);
|
|
22
|
-
Separator.displayName = Root.displayName;
|
|
22
|
+
Separator.displayName = SeparatorPrimitive.Root.displayName;
|
|
23
23
|
|
|
24
24
|
export { Separator };
|