ingeniuscliq-core 0.4.25 → 0.4.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/common/carousel/CustomCarousel.js +26 -0
- package/dist/components/common/carousel/CustomCarouselSection.js +41 -0
- package/dist/components/common/form/CustomFormField.js +29 -0
- package/dist/components/common/form/{FormCheckbox.tsx → FormCheckbox.js} +7 -7
- package/dist/components/common/form/{FormInput.tsx → FormInput.js} +5 -5
- package/dist/components/common/form/{FormSelect.tsx → FormSelect.js} +7 -7
- package/dist/components/common/form/{FormTextArea.tsx → FormTextArea.js} +5 -5
- package/dist/components/common/form/{FormWrapper.tsx → FormWrapper.js} +2 -2
- package/dist/components/common/logo/{Logo.tsx → Logo.js} +3 -3
- package/dist/components/common/pagination/{CustomPagination.tsx → CustomPagination.js} +6 -6
- package/dist/components/common/select/CustomSelect.js +27 -0
- package/dist/components/common/spinner/Spinner.js +32 -0
- package/dist/components/common/stepper/{Stepper.tsx → Stepper.js} +9 -9
- package/dist/components/layouts/CoreBaseLayout.js +19 -0
- package/dist/components/templates/CoreHomeLayout.js +8 -0
- package/dist/components/templates/{CorePreviewLayout.tsx → CorePreviewLayout.js} +3 -3
- package/dist/components/ui/accordion.js +44 -0
- package/dist/components/ui/{alert-dialog.tsx → alert-dialog.js} +28 -28
- package/dist/components/ui/{alert.tsx → alert.js} +5 -5
- package/dist/components/ui/{avatar.tsx → avatar.js} +11 -11
- package/dist/components/ui/{badge.tsx → badge.js} +3 -3
- package/dist/components/ui/{breadcrumb.tsx → breadcrumb.js} +13 -14
- package/dist/components/ui/{button.tsx → button.js} +4 -4
- package/dist/components/ui/{card.tsx → card.js} +8 -8
- package/dist/components/ui/{carousel.tsx → carousel.js} +14 -15
- package/dist/components/ui/{checkbox.tsx → checkbox.js} +9 -9
- package/dist/components/ui/{dialog.tsx → dialog.js} +26 -26
- package/dist/components/ui/{dropdown-menu.tsx → dropdown-menu.js} +37 -39
- package/dist/components/ui/{form.tsx → form.js} +10 -10
- package/dist/components/ui/{input.tsx → input.js} +2 -2
- package/dist/components/ui/{label.tsx → label.js} +6 -6
- package/dist/components/ui/{pagination.tsx → pagination.js} +16 -18
- package/dist/components/ui/{popover.tsx → popover.js} +8 -8
- package/dist/components/ui/radio-group.js +34 -0
- package/dist/components/ui/{select.tsx → select.js} +38 -40
- package/dist/components/ui/{separator.tsx → separator.js} +5 -5
- package/dist/components/ui/{sheet.tsx → sheet.js} +27 -27
- package/dist/components/ui/{skeleton.tsx → skeleton.js} +2 -2
- package/dist/components/ui/{slider.tsx → slider.js} +9 -9
- package/dist/components/ui/{stepper.tsx → stepper.js} +35 -35
- package/dist/components/ui/{switch.tsx → switch.js} +7 -7
- package/dist/components/ui/{table.tsx → table.js} +9 -9
- package/dist/components/ui/{tabs.tsx → tabs.js} +13 -13
- package/dist/components/ui/{textarea.tsx → textarea.js} +2 -2
- package/dist/components/ui/{tooltip.tsx → tooltip.js} +8 -8
- package/dist/helpers/axiosGlobal.js +1 -2
- package/dist/hooks/useNotification.js +1 -1
- package/dist/index.js +45 -45
- package/dist/lib/utils.js +2 -2
- package/dist/modules/CoreAuth/classes/CoreAuthBuilder.js +1 -1
- package/dist/modules/CoreAuth/context/{AuthContext.tsx → AuthContext.js} +1 -1
- package/dist/modules/CoreAuth/index.js +2 -1
- package/dist/modules/CoreCustomization/classes/CoreCustomizationBuilder.js +1 -1
- package/dist/modules/CoreCustomization/index.js +1 -0
- package/dist/modules/CoreOrder/classes/CoreOrderBuilder.js +1 -1
- package/dist/modules/CoreOrder/index.js +1 -0
- package/dist/modules/CorePayForm/classes/CorePayFormBuilder.js +1 -1
- package/dist/modules/CorePayForm/index.js +1 -0
- package/dist/modules/CoreProduct/classes/CoreProductBuilder.js +1 -1
- package/dist/modules/CoreProduct/index.js +1 -0
- package/dist/modules/CoreShipment/classes/CoreShipmentBuilder.js +1 -1
- package/dist/modules/CoreShipment/index.js +1 -0
- package/dist/modules/CoreShopCart/classes/CoreShopCartBuilder.js +1 -1
- package/package.json +2 -7
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index2.js +0 -3
- package/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/_virtual/jsx-runtime2.js +0 -3
- package/dist/_virtual/react-jsx-runtime.development.js +0 -3
- package/dist/_virtual/react-jsx-runtime.production.js +0 -3
- package/dist/_virtual/use-sync-external-store-shim.development.js +0 -3
- package/dist/_virtual/use-sync-external-store-shim.production.js +0 -3
- package/dist/components/common/carousel/CustomCarousel.tsx +0 -26
- package/dist/components/common/carousel/CustomCarouselSection.tsx +0 -41
- package/dist/components/common/form/CustomFormField.tsx +0 -29
- package/dist/components/common/select/CustomSelect.tsx +0 -27
- package/dist/components/common/spinner/Spinner.tsx +0 -32
- package/dist/components/layouts/CoreBaseLayout.tsx +0 -19
- package/dist/components/templates/CoreHomeLayout.tsx +0 -8
- package/dist/components/ui/accordion.tsx +0 -44
- package/dist/components/ui/radio-group.tsx +0 -34
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -814
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -751
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -350
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -161
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -137
- package/dist/node_modules/@radix-ui/number/dist/index.js +0 -6
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -11
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +0 -305
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +0 -147
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -25
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +0 -118
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -270
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -145
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -70
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -39
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -79
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -321
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -11
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -211
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -267
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -29
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -207
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -15
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +0 -24
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +0 -834
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -299
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -283
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -17
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -130
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -43
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +0 -282
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -223
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +0 -1156
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +0 -30
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +0 -554
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -99
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +0 -152
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +0 -187
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -482
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -12
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -70
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -18
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +0 -16
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -7
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -15
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -40
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -35
- package/dist/node_modules/@stepperize/core/dist/index.js +0 -3
- package/dist/node_modules/@stepperize/react/dist/index.js +0 -6
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -137
- package/dist/node_modules/axios/index.js +0 -25
- package/dist/node_modules/axios/lib/adapters/adapters.js +0 -81
- package/dist/node_modules/axios/lib/adapters/fetch.js +0 -229
- package/dist/node_modules/axios/lib/adapters/xhr.js +0 -199
- package/dist/node_modules/axios/lib/axios.js +0 -86
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +0 -133
- package/dist/node_modules/axios/lib/cancel/CanceledError.js +0 -23
- package/dist/node_modules/axios/lib/cancel/isCancel.js +0 -5
- package/dist/node_modules/axios/lib/core/Axios.js +0 -238
- package/dist/node_modules/axios/lib/core/AxiosError.js +0 -101
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js +0 -312
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +0 -69
- package/dist/node_modules/axios/lib/core/buildFullPath.js +0 -22
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +0 -81
- package/dist/node_modules/axios/lib/core/mergeConfig.js +0 -106
- package/dist/node_modules/axios/lib/core/settle.js +0 -27
- package/dist/node_modules/axios/lib/core/transformData.js +0 -28
- package/dist/node_modules/axios/lib/defaults/index.js +0 -159
- package/dist/node_modules/axios/lib/defaults/transitional.js +0 -7
- package/dist/node_modules/axios/lib/env/data.js +0 -3
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -56
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -71
- package/dist/node_modules/axios/lib/helpers/bind.js +0 -7
- package/dist/node_modules/axios/lib/helpers/buildURL.js +0 -69
- package/dist/node_modules/axios/lib/helpers/combineURLs.js +0 -15
- package/dist/node_modules/axios/lib/helpers/composeSignals.js +0 -48
- package/dist/node_modules/axios/lib/helpers/cookies.js +0 -43
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +0 -93
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -15
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
- package/dist/node_modules/axios/lib/helpers/null.js +0 -4
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +0 -55
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +0 -46
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js +0 -58
- package/dist/node_modules/axios/lib/helpers/speedometer.js +0 -53
- package/dist/node_modules/axios/lib/helpers/spread.js +0 -28
- package/dist/node_modules/axios/lib/helpers/throttle.js +0 -44
- package/dist/node_modules/axios/lib/helpers/toFormData.js +0 -219
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
- package/dist/node_modules/axios/lib/helpers/trackStream.js +0 -88
- package/dist/node_modules/axios/lib/helpers/validator.js +0 -99
- package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
- package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
- package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
- package/dist/node_modules/axios/lib/platform/browser/index.js +0 -15
- package/dist/node_modules/axios/lib/platform/common/utils.js +0 -45
- package/dist/node_modules/axios/lib/platform/index.js +0 -9
- package/dist/node_modules/axios/lib/utils.js +0 -780
- package/dist/node_modules/class-variance-authority/dist/index.js +0 -44
- package/dist/node_modules/clsx/dist/clsx.js +0 -3
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +0 -1669
- package/dist/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +0 -37
- package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +0 -38
- package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -8
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -43
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -30
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -20
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-left.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.js +0 -18
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -28
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -363
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -44
- package/dist/node_modules/react/jsx-runtime.js +0 -19
- package/dist/node_modules/react-hook-form/dist/index.esm.js +0 -560
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -9
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -167
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -38
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -21
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -110
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -56
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -10
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -31
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -19
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -25
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -51
- package/dist/node_modules/sonner/dist/index.js +0 -299
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -3035
- package/dist/node_modules/tslib/tslib.es6.js +0 -56
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -24
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -48
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -42
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -21
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -77
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -106
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -77
- package/dist/node_modules/use-sync-external-store/shim/index.js +0 -19
- package/dist/node_modules/zustand/esm/react.js +0 -22
- package/dist/node_modules/zustand/esm/vanilla.js +0 -24
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
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
|
-
import { Label } from './label.
|
|
6
|
+
import { Label } from './label.js';
|
|
7
7
|
|
|
8
8
|
const Form = FormProvider;
|
|
9
9
|
const FormFieldContext = React.createContext(
|
|
@@ -12,7 +12,7 @@ const FormFieldContext = React.createContext(
|
|
|
12
12
|
const FormField = ({
|
|
13
13
|
...props
|
|
14
14
|
}) => {
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx(Controller, { ...props }) });
|
|
16
16
|
};
|
|
17
17
|
const useFormField = () => {
|
|
18
18
|
const fieldContext = React.useContext(FormFieldContext);
|
|
@@ -37,12 +37,12 @@ const FormItemContext = React.createContext(
|
|
|
37
37
|
);
|
|
38
38
|
const FormItem = React.forwardRef(({ className, ...props }, ref) => {
|
|
39
39
|
const id = React.useId();
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx("div", { ref, "data-slot": "form-item", className: cn("grid gap-2", className), ...props }) });
|
|
41
41
|
});
|
|
42
42
|
FormItem.displayName = "FormItem";
|
|
43
43
|
const FormLabel = React.forwardRef(({ className, ...props }, ref) => {
|
|
44
44
|
const { error, formItemId } = useFormField();
|
|
45
|
-
return /* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ jsx(
|
|
46
46
|
Label,
|
|
47
47
|
{
|
|
48
48
|
ref,
|
|
@@ -55,7 +55,7 @@ const FormLabel = React.forwardRef(({ className, ...props }, ref) => {
|
|
|
55
55
|
FormLabel.displayName = "FormLabel";
|
|
56
56
|
const FormControl = React.forwardRef(({ ...props }, ref) => {
|
|
57
57
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
58
|
-
return /* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ jsx(
|
|
59
59
|
Slot,
|
|
60
60
|
{
|
|
61
61
|
ref,
|
|
@@ -69,7 +69,7 @@ const FormControl = React.forwardRef(({ ...props }, ref) => {
|
|
|
69
69
|
FormControl.displayName = "FormControl";
|
|
70
70
|
const FormDescription = React.forwardRef(({ className, ...props }, ref) => {
|
|
71
71
|
const { formDescriptionId } = useFormField();
|
|
72
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ jsx(
|
|
73
73
|
"p",
|
|
74
74
|
{
|
|
75
75
|
ref,
|
|
@@ -86,7 +86,7 @@ const FormMessage = React.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
86
86
|
if (!body) {
|
|
87
87
|
return null;
|
|
88
88
|
}
|
|
89
|
-
return /* @__PURE__ */
|
|
89
|
+
return /* @__PURE__ */ jsx(
|
|
90
90
|
"p",
|
|
91
91
|
{
|
|
92
92
|
ref,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { cn } from '../../lib/utils.js';
|
|
4
4
|
|
|
5
5
|
const Input = React.forwardRef(
|
|
6
6
|
({ className, type, outlined, ...props }, ref) => {
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
8
|
"input",
|
|
9
9
|
{
|
|
10
10
|
type,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
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
|
-
const Label = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
11
|
-
Root,
|
|
10
|
+
const Label = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
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,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
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
|
-
import { buttonVariants } from './button.
|
|
5
|
+
import { buttonVariants } from './button.js';
|
|
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
|
-
const Pagination = ({ className, ...props }) => /* @__PURE__ */
|
|
8
|
+
const Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
11
9
|
"nav",
|
|
12
10
|
{
|
|
13
11
|
role: "navigation",
|
|
@@ -18,7 +16,7 @@ const Pagination = ({ className, ...props }) => /* @__PURE__ */ jsxRuntimeExport
|
|
|
18
16
|
}
|
|
19
17
|
);
|
|
20
18
|
Pagination.displayName = "Pagination";
|
|
21
|
-
const PaginationContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
19
|
+
const PaginationContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
22
20
|
"ul",
|
|
23
21
|
{
|
|
24
22
|
ref,
|
|
@@ -28,7 +26,7 @@ const PaginationContent = React.forwardRef(({ className, ...props }, ref) => /*
|
|
|
28
26
|
}
|
|
29
27
|
));
|
|
30
28
|
PaginationContent.displayName = "PaginationContent";
|
|
31
|
-
const PaginationItem = React.forwardRef(({ className, disabled, ...props }, ref) => /* @__PURE__ */
|
|
29
|
+
const PaginationItem = React.forwardRef(({ className, disabled, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
32
30
|
"li",
|
|
33
31
|
{
|
|
34
32
|
ref,
|
|
@@ -43,7 +41,7 @@ const PaginationLink = ({
|
|
|
43
41
|
isActive,
|
|
44
42
|
size = "icon",
|
|
45
43
|
...props
|
|
46
|
-
}) => /* @__PURE__ */
|
|
44
|
+
}) => /* @__PURE__ */ jsx(
|
|
47
45
|
"a",
|
|
48
46
|
{
|
|
49
47
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -64,7 +62,7 @@ const PaginationPrevious = ({
|
|
|
64
62
|
...props
|
|
65
63
|
}) => {
|
|
66
64
|
const { t } = useLanguage();
|
|
67
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ jsxs(
|
|
68
66
|
PaginationLink,
|
|
69
67
|
{
|
|
70
68
|
"aria-label": "Go to previous page",
|
|
@@ -72,8 +70,8 @@ const PaginationPrevious = ({
|
|
|
72
70
|
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
73
71
|
...props,
|
|
74
72
|
children: [
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ jsx(ChevronLeft, { "aria-hidden": "true" }),
|
|
74
|
+
/* @__PURE__ */ jsx("span", { className: "hidden sm:block", children: t("pagination.previous") })
|
|
77
75
|
]
|
|
78
76
|
}
|
|
79
77
|
);
|
|
@@ -84,7 +82,7 @@ const PaginationNext = ({
|
|
|
84
82
|
...props
|
|
85
83
|
}) => {
|
|
86
84
|
const { t } = useLanguage();
|
|
87
|
-
return /* @__PURE__ */
|
|
85
|
+
return /* @__PURE__ */ jsxs(
|
|
88
86
|
PaginationLink,
|
|
89
87
|
{
|
|
90
88
|
"aria-label": "Go to next page",
|
|
@@ -92,8 +90,8 @@ const PaginationNext = ({
|
|
|
92
90
|
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
93
91
|
...props,
|
|
94
92
|
children: [
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ jsx("span", { className: "hidden sm:block", children: t("pagination.next") }),
|
|
94
|
+
/* @__PURE__ */ jsx(ChevronRight, { "aria-hidden": "true" })
|
|
97
95
|
]
|
|
98
96
|
}
|
|
99
97
|
);
|
|
@@ -104,15 +102,15 @@ const PaginationEllipsis = ({
|
|
|
104
102
|
...props
|
|
105
103
|
}) => {
|
|
106
104
|
const { t } = useLanguage();
|
|
107
|
-
return /* @__PURE__ */
|
|
105
|
+
return /* @__PURE__ */ jsxs(
|
|
108
106
|
"span",
|
|
109
107
|
{
|
|
110
108
|
"aria-hidden": true,
|
|
111
109
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
112
110
|
...props,
|
|
113
111
|
children: [
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }),
|
|
113
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: t("pagination.more_pages") })
|
|
116
114
|
]
|
|
117
115
|
}
|
|
118
116
|
);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
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__ */
|
|
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 };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
4
|
+
import { Circle } from 'lucide-react';
|
|
5
|
+
import { cn } from '../../lib/utils.js';
|
|
6
|
+
|
|
7
|
+
const RadioGroup = React.forwardRef(({ className, ...props }, ref) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
|
+
RadioGroupPrimitive.Root,
|
|
10
|
+
{
|
|
11
|
+
className: cn("grid gap-2", className),
|
|
12
|
+
...props,
|
|
13
|
+
ref
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
});
|
|
17
|
+
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
18
|
+
const RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => {
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
RadioGroupPrimitive.Item,
|
|
21
|
+
{
|
|
22
|
+
ref,
|
|
23
|
+
className: cn(
|
|
24
|
+
"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
25
|
+
className
|
|
26
|
+
),
|
|
27
|
+
...props,
|
|
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
|
+
}
|
|
30
|
+
);
|
|
31
|
+
});
|
|
32
|
+
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
33
|
+
|
|
34
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
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;
|
|
11
|
-
const SelectValue = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
12
|
-
Value,
|
|
7
|
+
const Select = SelectPrimitive.Root;
|
|
8
|
+
const SelectGroup = SelectPrimitive.Group;
|
|
9
|
+
const SelectValue = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
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;
|
|
21
|
-
const SelectTrigger = React.forwardRef(({ className, children, size = "default", ...props }, ref) => /* @__PURE__ */
|
|
22
|
-
Trigger,
|
|
18
|
+
SelectValue.displayName = SelectPrimitive.Value.displayName;
|
|
19
|
+
const SelectTrigger = React.forwardRef(({ className, children, size = "default", ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
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__ */
|
|
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;
|
|
39
|
-
const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
40
|
-
ScrollUpButton,
|
|
36
|
+
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
37
|
+
const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
38
|
+
SelectPrimitive.ScrollUpButton,
|
|
41
39
|
{
|
|
42
40
|
ref,
|
|
43
41
|
className: cn(
|
|
@@ -45,12 +43,12 @@ const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) =>
|
|
|
45
43
|
className
|
|
46
44
|
),
|
|
47
45
|
...props,
|
|
48
|
-
children: /* @__PURE__ */
|
|
46
|
+
children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4" })
|
|
49
47
|
}
|
|
50
48
|
));
|
|
51
|
-
SelectScrollUpButton.displayName = ScrollUpButton.displayName;
|
|
52
|
-
const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
53
|
-
ScrollDownButton,
|
|
49
|
+
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
50
|
+
const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
51
|
+
SelectPrimitive.ScrollDownButton,
|
|
54
52
|
{
|
|
55
53
|
ref,
|
|
56
54
|
className: cn(
|
|
@@ -58,12 +56,12 @@ const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) =
|
|
|
58
56
|
className
|
|
59
57
|
),
|
|
60
58
|
...props,
|
|
61
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
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(
|
|
@@ -74,9 +72,9 @@ const SelectContent = React.forwardRef(({ className, children, position = "poppe
|
|
|
74
72
|
position,
|
|
75
73
|
...props,
|
|
76
74
|
children: [
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
Viewport,
|
|
75
|
+
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
76
|
+
/* @__PURE__ */ jsx(
|
|
77
|
+
SelectPrimitive.Viewport,
|
|
80
78
|
{
|
|
81
79
|
className: cn(
|
|
82
80
|
"p-1",
|
|
@@ -85,22 +83,22 @@ const SelectContent = React.forwardRef(({ className, children, position = "poppe
|
|
|
85
83
|
children
|
|
86
84
|
}
|
|
87
85
|
),
|
|
88
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ jsx(SelectScrollDownButton, {})
|
|
89
87
|
]
|
|
90
88
|
}
|
|
91
89
|
) }));
|
|
92
|
-
SelectContent.displayName =
|
|
93
|
-
const SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
94
|
-
Label,
|
|
90
|
+
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
91
|
+
const SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
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;
|
|
102
|
-
const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
103
|
-
Item,
|
|
99
|
+
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
100
|
+
const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
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__ */
|
|
113
|
-
/* @__PURE__ */
|
|
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;
|
|
118
|
-
const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
119
|
-
Separator,
|
|
115
|
+
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
116
|
+
const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
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
|
-
import {
|
|
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
|
-
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */
|
|
8
|
-
Root,
|
|
7
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
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 };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
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;
|
|
12
|
-
const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
13
|
-
Overlay,
|
|
8
|
+
const Sheet = DialogPrimitive.Root;
|
|
9
|
+
const SheetTrigger = DialogPrimitive.Trigger;
|
|
10
|
+
const SheetClose = DialogPrimitive.Close;
|
|
11
|
+
const SheetPortal = DialogPrimitive.Portal;
|
|
12
|
+
const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
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
|
{
|
|
@@ -37,29 +37,29 @@ const sheetVariants = cva(
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
|
-
const SheetContent = React.forwardRef(({ side = "right", className, children, withoutCloseIcon = false, ...props }, ref) => /* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
Content,
|
|
40
|
+
const SheetContent = React.forwardRef(({ side = "right", className, children, withoutCloseIcon = false, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
41
|
+
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
42
|
+
/* @__PURE__ */ jsxs(
|
|
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__ */
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
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
|
+
/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
|
|
52
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
53
53
|
] })
|
|
54
54
|
]
|
|
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
|
|
62
|
-
}) => /* @__PURE__ */
|
|
62
|
+
}) => /* @__PURE__ */ jsx(
|
|
63
63
|
"div",
|
|
64
64
|
{
|
|
65
65
|
className: cn(
|
|
@@ -73,7 +73,7 @@ SheetHeader.displayName = "SheetHeader";
|
|
|
73
73
|
const SheetFooter = ({
|
|
74
74
|
className,
|
|
75
75
|
...props
|
|
76
|
-
}) => /* @__PURE__ */
|
|
76
|
+
}) => /* @__PURE__ */ jsx(
|
|
77
77
|
"div",
|
|
78
78
|
{
|
|
79
79
|
className: cn(
|
|
@@ -84,23 +84,23 @@ const SheetFooter = ({
|
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
86
|
SheetFooter.displayName = "SheetFooter";
|
|
87
|
-
const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
88
|
-
Title,
|
|
87
|
+
const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
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;
|
|
96
|
-
const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
97
|
-
Description,
|
|
95
|
+
SheetTitle.displayName = DialogPrimitive.Title.displayName;
|
|
96
|
+
const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
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,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
3
|
|
|
4
4
|
function Skeleton({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
7
|
}) {
|
|
8
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
className: cn("animate-pulse rounded-md bg-muted", className),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
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
|
-
const Slider = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
7
|
-
Root,
|
|
6
|
+
const Slider = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
7
|
+
SliderPrimitive.Root,
|
|
8
8
|
{
|
|
9
9
|
ref,
|
|
10
10
|
"data-slot": "slider",
|
|
@@ -14,18 +14,18 @@ const Slider = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
14
14
|
),
|
|
15
15
|
...props,
|
|
16
16
|
children: [
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
Track,
|
|
17
|
+
/* @__PURE__ */ jsx(
|
|
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__ */
|
|
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__ */
|
|
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 };
|