@snapcall/design-system 1.21.3 → 1.22.0-beta.1
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/{chunk-RN2FGOFK.mjs → chunk-CBQRH67Z.mjs} +8 -8
- package/dist/{chunk-XI3KELZM.mjs → chunk-R6W6SKNR.mjs} +3 -3
- package/dist/{chunk-ZMQWNJ3B.mjs → chunk-TU6HU32A.mjs} +1 -1
- package/dist/components/Accordion/index.d.mts +2 -7
- package/dist/components/Accordion/index.d.ts +2 -7
- package/dist/components/Accordion/index.js +2 -2
- package/dist/components/Accordion/index.mjs +2 -2
- package/dist/components/AlertDialog/index.js +5 -5
- package/dist/components/AlertDialog/index.mjs +3 -3
- package/dist/components/Avatar/index.d.mts +10 -10
- package/dist/components/Avatar/index.d.ts +10 -10
- package/dist/components/Badge/index.d.mts +4 -4
- package/dist/components/Badge/index.d.ts +4 -4
- package/dist/components/Banner/index.d.mts +70 -0
- package/dist/components/Banner/index.d.ts +70 -0
- package/dist/components/Banner/index.js +152 -0
- package/dist/components/Banner/index.mjs +84 -0
- package/dist/components/Button/index.d.mts +12 -12
- package/dist/components/Button/index.d.ts +12 -12
- package/dist/components/Button/index.js +3 -3
- package/dist/components/Button/index.mjs +1 -1
- package/dist/components/Calendar/index.js +5 -5
- package/dist/components/Calendar/index.mjs +3 -3
- package/dist/components/Carousel/index.js +3 -3
- package/dist/components/Carousel/index.mjs +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Checkbox/index.mjs +1 -1
- package/dist/components/Command/index.d.mts +1 -1
- package/dist/components/Command/index.d.ts +1 -1
- package/dist/components/Command/index.js +8 -8
- package/dist/components/Command/index.mjs +4 -4
- package/dist/components/CreatableSelect/index.d.mts +1 -1
- package/dist/components/CreatableSelect/index.d.ts +1 -1
- package/dist/components/CreatableSelect/index.js +14 -12
- package/dist/components/CreatableSelect/index.mjs +10 -8
- package/dist/components/Dialog/index.d.mts +2 -2
- package/dist/components/Dialog/index.d.ts +2 -2
- package/dist/components/Dialog/index.js +7 -7
- package/dist/components/Dialog/index.mjs +5 -5
- package/dist/components/DropdownMenu/index.d.mts +2 -2
- package/dist/components/DropdownMenu/index.d.ts +2 -2
- package/dist/components/DropdownMenu/index.js +9 -9
- package/dist/components/DropdownMenu/index.mjs +12 -12
- package/dist/components/FilterButton/index.js +3 -3
- package/dist/components/FilterButton/index.mjs +1 -1
- package/dist/components/Form/index.d.mts +2 -1
- package/dist/components/Form/index.d.ts +2 -1
- package/dist/components/Input/index.d.mts +3 -3
- package/dist/components/Input/index.d.ts +3 -3
- package/dist/components/Input/index.js +2 -2
- package/dist/components/Input/index.mjs +2 -2
- package/dist/components/MediaCard/index.d.mts +3 -3
- package/dist/components/MediaCard/index.d.ts +3 -3
- package/dist/components/MediaCard/index.js +2 -2
- package/dist/components/MediaCard/index.mjs +2 -2
- package/dist/components/Pagination/index.js +3 -3
- package/dist/components/Pagination/index.mjs +1 -1
- package/dist/components/Popover/index.js +1 -1
- package/dist/components/Popover/index.mjs +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/RadioGroup/index.mjs +1 -1
- package/dist/components/Select/index.js +3 -3
- package/dist/components/Select/index.mjs +3 -3
- package/dist/components/Sheet/index.d.mts +6 -5
- package/dist/components/Sheet/index.d.ts +6 -5
- package/dist/components/Sheet/index.js +4 -4
- package/dist/components/Sheet/index.mjs +2 -2
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Switch/index.mjs +1 -1
- package/dist/components/Table/index.d.mts +4 -4
- package/dist/components/Table/index.d.ts +4 -4
- package/dist/components/Table/index.js +2 -2
- package/dist/components/Table/index.mjs +2 -2
- package/dist/components/Tabs/index.js +3 -3
- package/dist/components/Tabs/index.mjs +3 -3
- package/dist/components/Textarea/index.js +1 -1
- package/dist/components/Textarea/index.mjs +1 -1
- package/dist/components/Toaster/index.d.mts +12 -11
- package/dist/components/Toaster/index.d.ts +12 -11
- package/dist/components/Toaster/index.js +7 -7
- package/dist/components/Toaster/index.mjs +5 -5
- package/dist/components/ToggleGroup/index.d.mts +1 -1
- package/dist/components/ToggleGroup/index.d.ts +1 -1
- package/dist/components/ToggleGroup/index.js +4 -4
- package/dist/components/ToggleGroup/index.mjs +4 -4
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Tooltip/index.mjs +1 -1
- package/dist/components/{index-Btj0VOSP.d.ts → index-CMWfBd0H.d.mts} +39 -39
- package/dist/components/{index-Btj0VOSP.d.mts → index-CMWfBd0H.d.ts} +39 -39
- package/dist/components/types-DBpSTFQy.d.mts +9 -0
- package/dist/components/types-DBpSTFQy.d.ts +9 -0
- package/dist/index.d.mts +165 -100
- package/dist/index.d.ts +165 -100
- package/dist/index.js +33 -31
- package/dist/index.mjs +1 -0
- package/dist/style.css +1 -1
- package/dist/tailwind.css +2 -3
- package/package.json +60 -59
- package/dist/tailwind.config.js +0 -449
|
@@ -372,15 +372,15 @@ var import_react_slot = require("@radix-ui/react-slot");
|
|
|
372
372
|
var import_cva2 = require("cva");
|
|
373
373
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
374
374
|
var buttonVariants = (0, import_cva2.cva)({
|
|
375
|
-
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-
|
|
375
|
+
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-hidden focus-visible:ring-2 disabled:select-none disabled:pointer-events-none disabled:opacity-40",
|
|
376
376
|
variants: {
|
|
377
377
|
variant: {
|
|
378
|
-
primary: "bg-blue-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
378
|
+
primary: "bg-blue-700 text-white [&>svg]:text-white dark:text-black dark:[&>svg]:text-black hover:bg-blue-800 active:bg-blue-900 focus-visible:ring-blue-1000",
|
|
379
379
|
secondary: "bg-gray-50 text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-500 focus-visible:ring-black",
|
|
380
380
|
tertiary: "bg-gray-50 text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
381
381
|
outline: "bg-white text-black [&>svg]:text-black ring-1 ring-offset-0 ring-gray-200 hover:bg-gray-50 active:bg-gray-200 focus-visible:ring-black",
|
|
382
382
|
outlineBlue: "bg-transparent text-blue-700 [&>svg]:text-blue-700 ring-1 ring-inset ring-offset-0 ring-blue-700 hover:bg-blue-50 active:bg-blue-200 focus-visible:ring-blue-700 ",
|
|
383
|
-
destructive: "bg-red-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
383
|
+
destructive: "bg-red-700 text-white [&>svg]:text-white dark:text-black dark:[&>svg]:text-black hover:bg-red-800 active:bg-red-900 focus-visible:ring-red-1000",
|
|
384
384
|
ghostBlue: "bg-transparent text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
385
385
|
ghostRed: "bg-transparent text-red-700 [&>svg]:text-red-700 hover:bg-red-100 active:bg-red-200 focus-visible:ring-red-700",
|
|
386
386
|
ghostGray: "bg-transparent text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-200 focus-visible:ring-black",
|
|
@@ -519,7 +519,7 @@ var Checkbox = React3.forwardRef((_a, ref) => {
|
|
|
519
519
|
CheckboxPrimitive.Root,
|
|
520
520
|
__spreadProps(__spreadValues({
|
|
521
521
|
className: cn(
|
|
522
|
-
"flex h-4 w-4 appearance-none items-center justify-center rounded bg-gray-50 border-gray-200 border outline-
|
|
522
|
+
"flex h-4 w-4 appearance-none items-center justify-center rounded-sm bg-gray-50 border-gray-200 border outline-hidden data-[state=checked]:bg-blue-700 data-[state=checked]:border-blue-700 data-disabled:opacity-40 data-disabled:cursor-not-allowed",
|
|
523
523
|
className
|
|
524
524
|
)
|
|
525
525
|
}, props), {
|
|
@@ -551,7 +551,7 @@ var CommandInput = React4.forwardRef((_a, ref) => {
|
|
|
551
551
|
const [val, setVal] = (0, import_react6.useState)(value);
|
|
552
552
|
const clearInput = () => {
|
|
553
553
|
setVal("");
|
|
554
|
-
onValueChange
|
|
554
|
+
onValueChange == null ? void 0 : onValueChange("");
|
|
555
555
|
};
|
|
556
556
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
557
557
|
"div",
|
|
@@ -566,12 +566,12 @@ var CommandInput = React4.forwardRef((_a, ref) => {
|
|
|
566
566
|
ref,
|
|
567
567
|
value: val,
|
|
568
568
|
className: cn(
|
|
569
|
-
"flex w-full py-2 rounded-md bg-transparent text-sm font-normal text-black outline-
|
|
569
|
+
"flex w-full py-2 rounded-md bg-transparent text-sm font-normal text-black outline-hidden placeholder:text-gray-900 disabled:cursor-not-allowed disabled:opacity-50",
|
|
570
570
|
className
|
|
571
571
|
),
|
|
572
572
|
onValueChange: (val2) => {
|
|
573
573
|
setVal(val2);
|
|
574
|
-
onValueChange
|
|
574
|
+
onValueChange == null ? void 0 : onValueChange(val2);
|
|
575
575
|
}
|
|
576
576
|
}, props)
|
|
577
577
|
),
|
|
@@ -670,7 +670,7 @@ var CommandItem = React4.forwardRef(
|
|
|
670
670
|
checkbox && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Checkbox, { checked }),
|
|
671
671
|
icon && React4.cloneElement(icon, {
|
|
672
672
|
size: 16,
|
|
673
|
-
className: cn("
|
|
673
|
+
className: cn("shrink-0", icon.props.className)
|
|
674
674
|
}),
|
|
675
675
|
children
|
|
676
676
|
] }),
|
|
@@ -769,7 +769,7 @@ function CreatableSelect(_a) {
|
|
|
769
769
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
770
770
|
"button",
|
|
771
771
|
{
|
|
772
|
-
className: "ml-1 rounded-full outline-
|
|
772
|
+
className: "ml-1 rounded-full outline-hidden ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
773
773
|
onKeyDown: (e) => e.key === "Enter" && handleUnselect(it),
|
|
774
774
|
onMouseDown: (e) => {
|
|
775
775
|
e.preventDefault();
|
|
@@ -791,7 +791,9 @@ function CreatableSelect(_a) {
|
|
|
791
791
|
setOpen(true);
|
|
792
792
|
}
|
|
793
793
|
setInputValue(v);
|
|
794
|
-
!multiple
|
|
794
|
+
if (!multiple) {
|
|
795
|
+
onValueChanged([]);
|
|
796
|
+
}
|
|
795
797
|
},
|
|
796
798
|
onBlur: () => {
|
|
797
799
|
setOpen(false);
|
|
@@ -805,14 +807,14 @@ function CreatableSelect(_a) {
|
|
|
805
807
|
}
|
|
806
808
|
},
|
|
807
809
|
placeholder: multiple || value.length === 0 ? placeholder : "",
|
|
808
|
-
className: "
|
|
810
|
+
className: "grow text-sm bg-transparent outline-hidden text-black placeholder:text-gray-700"
|
|
809
811
|
}
|
|
810
812
|
),
|
|
811
813
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(CommandList, {})
|
|
812
814
|
] })
|
|
813
815
|
}
|
|
814
816
|
),
|
|
815
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "relative", children: open && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "absolute z-50 w-full bg-white border rounded-md shadow-md outline-
|
|
817
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "relative", children: open && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "absolute z-50 w-full bg-white border border-gray-200 rounded-md shadow-md outline-hidden top-2 text-black animate-in", children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(CommandLoading, {}) : selectables && selectables.length < 1 ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "flex flex-col gap-4 p-4 text-center text-gray-700", children: nothingFoundLabel }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(CommandList, { className: "h-full max-h-[180px] overflow-auto", children: [
|
|
816
818
|
items && (selectables == null ? void 0 : selectables.map((it) => {
|
|
817
819
|
const itemProps = getItemProps(it);
|
|
818
820
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
CommandItem,
|
|
4
4
|
CommandList,
|
|
5
5
|
CommandLoading
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-CBQRH67Z.mjs";
|
|
7
7
|
import {
|
|
8
8
|
XCloseIcon
|
|
9
9
|
} from "../../chunk-FMJFBQTF.mjs";
|
|
10
|
+
import "../../chunk-TU6HU32A.mjs";
|
|
11
|
+
import "../../chunk-AFJWE6PJ.mjs";
|
|
10
12
|
import {
|
|
11
13
|
Badge
|
|
12
14
|
} from "../../chunk-YC4ZDBIC.mjs";
|
|
13
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-R6W6SKNR.mjs";
|
|
14
16
|
import "../../chunk-N65I4EXR.mjs";
|
|
15
|
-
import "../../chunk-ZMQWNJ3B.mjs";
|
|
16
|
-
import "../../chunk-AFJWE6PJ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
__objRest,
|
|
19
19
|
__spreadValues,
|
|
@@ -109,7 +109,7 @@ function CreatableSelect(_a) {
|
|
|
109
109
|
/* @__PURE__ */ jsx(
|
|
110
110
|
"button",
|
|
111
111
|
{
|
|
112
|
-
className: "ml-1 rounded-full outline-
|
|
112
|
+
className: "ml-1 rounded-full outline-hidden ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
113
113
|
onKeyDown: (e) => e.key === "Enter" && handleUnselect(it),
|
|
114
114
|
onMouseDown: (e) => {
|
|
115
115
|
e.preventDefault();
|
|
@@ -131,7 +131,9 @@ function CreatableSelect(_a) {
|
|
|
131
131
|
setOpen(true);
|
|
132
132
|
}
|
|
133
133
|
setInputValue(v);
|
|
134
|
-
!multiple
|
|
134
|
+
if (!multiple) {
|
|
135
|
+
onValueChanged([]);
|
|
136
|
+
}
|
|
135
137
|
},
|
|
136
138
|
onBlur: () => {
|
|
137
139
|
setOpen(false);
|
|
@@ -145,14 +147,14 @@ function CreatableSelect(_a) {
|
|
|
145
147
|
}
|
|
146
148
|
},
|
|
147
149
|
placeholder: multiple || value.length === 0 ? placeholder : "",
|
|
148
|
-
className: "
|
|
150
|
+
className: "grow text-sm bg-transparent outline-hidden text-black placeholder:text-gray-700"
|
|
149
151
|
}
|
|
150
152
|
),
|
|
151
153
|
/* @__PURE__ */ jsx(CommandList, {})
|
|
152
154
|
] })
|
|
153
155
|
}
|
|
154
156
|
),
|
|
155
|
-
/* @__PURE__ */ jsx("div", { className: "relative", children: open && /* @__PURE__ */ jsx("div", { className: "absolute z-50 w-full bg-white border rounded-md shadow-md outline-
|
|
157
|
+
/* @__PURE__ */ jsx("div", { className: "relative", children: open && /* @__PURE__ */ jsx("div", { className: "absolute z-50 w-full bg-white border border-gray-200 rounded-md shadow-md outline-hidden top-2 text-black animate-in", children: isLoading ? /* @__PURE__ */ jsx(CommandLoading, {}) : selectables && selectables.length < 1 ? /* @__PURE__ */ jsx("span", { className: "flex flex-col gap-4 p-4 text-center text-gray-700", children: nothingFoundLabel }) : /* @__PURE__ */ jsxs(CommandList, { className: "h-full max-h-[180px] overflow-auto", children: [
|
|
156
158
|
items && (selectables == null ? void 0 : selectables.map((it) => {
|
|
157
159
|
const itemProps = getItemProps(it);
|
|
158
160
|
return /* @__PURE__ */ jsx(
|
|
@@ -5,8 +5,8 @@ import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
|
5
5
|
declare const Dialog: React.FC<SheetPrimitive.DialogProps>;
|
|
6
6
|
declare const DialogTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
7
|
declare const DialogContent: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
|
-
bottomSheet?: boolean
|
|
9
|
-
showClose?: boolean
|
|
8
|
+
bottomSheet?: boolean;
|
|
9
|
+
showClose?: boolean;
|
|
10
10
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
declare const DialogHeader: {
|
|
12
12
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
@@ -5,8 +5,8 @@ import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
|
5
5
|
declare const Dialog: React.FC<SheetPrimitive.DialogProps>;
|
|
6
6
|
declare const DialogTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
7
|
declare const DialogContent: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
|
-
bottomSheet?: boolean
|
|
9
|
-
showClose?: boolean
|
|
8
|
+
bottomSheet?: boolean;
|
|
9
|
+
showClose?: boolean;
|
|
10
10
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
declare const DialogHeader: {
|
|
12
12
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
@@ -159,15 +159,15 @@ var SpinnerIcon = (0, import_react2.forwardRef)(
|
|
|
159
159
|
// src/components/Button/Button.tsx
|
|
160
160
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
161
161
|
var buttonVariants = (0, import_cva.cva)({
|
|
162
|
-
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-
|
|
162
|
+
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-hidden focus-visible:ring-2 disabled:select-none disabled:pointer-events-none disabled:opacity-40",
|
|
163
163
|
variants: {
|
|
164
164
|
variant: {
|
|
165
|
-
primary: "bg-blue-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
165
|
+
primary: "bg-blue-700 text-white [&>svg]:text-white dark:text-black dark:[&>svg]:text-black hover:bg-blue-800 active:bg-blue-900 focus-visible:ring-blue-1000",
|
|
166
166
|
secondary: "bg-gray-50 text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-500 focus-visible:ring-black",
|
|
167
167
|
tertiary: "bg-gray-50 text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
168
168
|
outline: "bg-white text-black [&>svg]:text-black ring-1 ring-offset-0 ring-gray-200 hover:bg-gray-50 active:bg-gray-200 focus-visible:ring-black",
|
|
169
169
|
outlineBlue: "bg-transparent text-blue-700 [&>svg]:text-blue-700 ring-1 ring-inset ring-offset-0 ring-blue-700 hover:bg-blue-50 active:bg-blue-200 focus-visible:ring-blue-700 ",
|
|
170
|
-
destructive: "bg-red-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
170
|
+
destructive: "bg-red-700 text-white [&>svg]:text-white dark:text-black dark:[&>svg]:text-black hover:bg-red-800 active:bg-red-900 focus-visible:ring-red-1000",
|
|
171
171
|
ghostBlue: "bg-transparent text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
172
172
|
ghostRed: "bg-transparent text-red-700 [&>svg]:text-red-700 hover:bg-red-100 active:bg-red-200 focus-visible:ring-red-700",
|
|
173
173
|
ghostGray: "bg-transparent text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-200 focus-visible:ring-black",
|
|
@@ -273,7 +273,7 @@ var DialogOverlay = React2.forwardRef((_a, ref) => {
|
|
|
273
273
|
__spreadValues({
|
|
274
274
|
ref,
|
|
275
275
|
className: cn(
|
|
276
|
-
"fixed inset-0 z-50 bg-black/25 backdrop-blur-
|
|
276
|
+
"fixed inset-0 z-50 bg-black/25 backdrop-blur-xs data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
277
277
|
className
|
|
278
278
|
)
|
|
279
279
|
}, props)
|
|
@@ -290,12 +290,12 @@ var DialogContent = React2.forwardRef(
|
|
|
290
290
|
__spreadProps(__spreadValues({
|
|
291
291
|
ref,
|
|
292
292
|
className: cn(
|
|
293
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-[400px] max-h-[90vh] overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-6 border bg-white p-6 shadow-lg md:w-full",
|
|
293
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-[400px] max-h-[90vh] overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-6 border border-gray-200 bg-white p-6 shadow-lg md:w-full",
|
|
294
294
|
{
|
|
295
|
-
"top-auto bottom-0 translate-y-0 ease-[cubic-bezier(0.075,0.82,0.165,1)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:slide-in-from-bottom-[100%] data-[state=closed]:slide-out-to-bottom-[100%]
|
|
295
|
+
"top-auto bottom-0 translate-y-0 ease-[cubic-bezier(0.075,0.82,0.165,1)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:slide-in-from-bottom-[100%] data-[state=closed]:slide-out-to-bottom-[100%] rounded-t-3xl": bottomSheet
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
|
-
"duration-200 rounded-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95
|
|
298
|
+
"duration-200 rounded-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95": !bottomSheet
|
|
299
299
|
},
|
|
300
300
|
className
|
|
301
301
|
)
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
buttonVariants,
|
|
6
6
|
iconButtonSizes
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-R6W6SKNR.mjs";
|
|
8
8
|
import "../../chunk-N65I4EXR.mjs";
|
|
9
9
|
import {
|
|
10
10
|
__objRest,
|
|
@@ -26,7 +26,7 @@ var DialogOverlay = React.forwardRef((_a, ref) => {
|
|
|
26
26
|
__spreadValues({
|
|
27
27
|
ref,
|
|
28
28
|
className: cn(
|
|
29
|
-
"fixed inset-0 z-50 bg-black/25 backdrop-blur-
|
|
29
|
+
"fixed inset-0 z-50 bg-black/25 backdrop-blur-xs data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
30
30
|
className
|
|
31
31
|
)
|
|
32
32
|
}, props)
|
|
@@ -43,12 +43,12 @@ var DialogContent = React.forwardRef(
|
|
|
43
43
|
__spreadProps(__spreadValues({
|
|
44
44
|
ref,
|
|
45
45
|
className: cn(
|
|
46
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-[400px] max-h-[90vh] overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-6 border bg-white p-6 shadow-lg md:w-full",
|
|
46
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-[400px] max-h-[90vh] overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-6 border border-gray-200 bg-white p-6 shadow-lg md:w-full",
|
|
47
47
|
{
|
|
48
|
-
"top-auto bottom-0 translate-y-0 ease-[cubic-bezier(0.075,0.82,0.165,1)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:slide-in-from-bottom-[100%] data-[state=closed]:slide-out-to-bottom-[100%]
|
|
48
|
+
"top-auto bottom-0 translate-y-0 ease-[cubic-bezier(0.075,0.82,0.165,1)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:slide-in-from-bottom-[100%] data-[state=closed]:slide-out-to-bottom-[100%] rounded-t-3xl": bottomSheet
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
"duration-200 rounded-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95
|
|
51
|
+
"duration-200 rounded-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95": !bottomSheet
|
|
52
52
|
},
|
|
53
53
|
className
|
|
54
54
|
)
|
|
@@ -3,8 +3,8 @@ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
|
3
3
|
|
|
4
4
|
declare const DropdownMenu: React__default.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
5
5
|
interface DropdownMenuItemExtension {
|
|
6
|
-
icon?: JSX.Element;
|
|
7
|
-
description?: JSX.Element;
|
|
6
|
+
icon?: React__default.JSX.Element;
|
|
7
|
+
description?: React__default.JSX.Element;
|
|
8
8
|
destructive?: boolean;
|
|
9
9
|
}
|
|
10
10
|
declare const DropdownMenuCheckboxItem: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & DropdownMenuItemExtension & React__default.RefAttributes<HTMLDivElement & DropdownMenuItemExtension>>;
|
|
@@ -3,8 +3,8 @@ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
|
3
3
|
|
|
4
4
|
declare const DropdownMenu: React__default.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
5
5
|
interface DropdownMenuItemExtension {
|
|
6
|
-
icon?: JSX.Element;
|
|
7
|
-
description?: JSX.Element;
|
|
6
|
+
icon?: React__default.JSX.Element;
|
|
7
|
+
description?: React__default.JSX.Element;
|
|
8
8
|
destructive?: boolean;
|
|
9
9
|
}
|
|
10
10
|
declare const DropdownMenuCheckboxItem: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & DropdownMenuItemExtension & React__default.RefAttributes<HTMLDivElement & DropdownMenuItemExtension>>;
|
|
@@ -163,7 +163,7 @@ var Checkbox = React.forwardRef((_a, ref) => {
|
|
|
163
163
|
CheckboxPrimitive.Root,
|
|
164
164
|
__spreadProps(__spreadValues({
|
|
165
165
|
className: cn(
|
|
166
|
-
"flex h-4 w-4 appearance-none items-center justify-center rounded bg-gray-50 border-gray-200 border outline-
|
|
166
|
+
"flex h-4 w-4 appearance-none items-center justify-center rounded-sm bg-gray-50 border-gray-200 border outline-hidden data-[state=checked]:bg-blue-700 data-[state=checked]:border-blue-700 data-disabled:opacity-40 data-disabled:cursor-not-allowed",
|
|
167
167
|
className
|
|
168
168
|
)
|
|
169
169
|
}, props), {
|
|
@@ -191,7 +191,7 @@ var DropdownMenuItemBase = ({
|
|
|
191
191
|
"div",
|
|
192
192
|
{
|
|
193
193
|
className: cn(
|
|
194
|
-
"mx-1 px-2 py-1.5 text-sm flex flex-col gap-1 text-black rounded-md cursor-pointer group-focus-within:bg-gray-100 group-data-
|
|
194
|
+
"mx-1 px-2 py-1.5 text-sm flex flex-col gap-1 text-black rounded-md cursor-pointer group-focus-within:bg-gray-100 group-data-disabled:cursor-not-allowed group-data-disabled:opacity-50 group-hover:bg-gray-50 group-active:bg-gray-100 group-data-[state=checked]:bg-gray-50",
|
|
195
195
|
{ "text-red-700 font-medium": destructive },
|
|
196
196
|
className
|
|
197
197
|
),
|
|
@@ -201,7 +201,7 @@ var DropdownMenuItemBase = ({
|
|
|
201
201
|
icon && import_react3.default.cloneElement(icon, {
|
|
202
202
|
size: 16,
|
|
203
203
|
className: cn(
|
|
204
|
-
"
|
|
204
|
+
"shrink-0",
|
|
205
205
|
{ "text-red-700": destructive },
|
|
206
206
|
icon.props.className
|
|
207
207
|
)
|
|
@@ -230,7 +230,7 @@ var DropdownMenuCheckboxItem = import_react3.default.forwardRef(
|
|
|
230
230
|
checked
|
|
231
231
|
}, props), {
|
|
232
232
|
ref: forwardedRef,
|
|
233
|
-
className: "outline-
|
|
233
|
+
className: "outline-hidden select-none group",
|
|
234
234
|
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(DropdownMenuItemBase, __spreadProps(__spreadValues({ checkbox: true }, extraProps), { children }))
|
|
235
235
|
})
|
|
236
236
|
);
|
|
@@ -256,7 +256,7 @@ var DropdownMenuContent = import_react3.default.forwardRef(
|
|
|
256
256
|
DropdownMenuPrimitive.Content,
|
|
257
257
|
__spreadProps(__spreadValues({
|
|
258
258
|
className: cn(
|
|
259
|
-
"min-w-[144px] bg-white rounded-md py-1 shadow-dropdown-sm border border-gray-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95
|
|
259
|
+
"min-w-[144px] bg-white rounded-md py-1 shadow-dropdown-sm border border-gray-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
260
260
|
className
|
|
261
261
|
),
|
|
262
262
|
side,
|
|
@@ -284,7 +284,7 @@ var DropdownMenuItem = import_react3.default.forwardRef(
|
|
|
284
284
|
DropdownMenuPrimitive.Item,
|
|
285
285
|
__spreadProps(__spreadValues({}, props), {
|
|
286
286
|
ref: forwardedRef,
|
|
287
|
-
className: "outline-
|
|
287
|
+
className: "outline-hidden select-none group",
|
|
288
288
|
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(DropdownMenuItemBase, __spreadProps(__spreadValues({}, extraProps), { children }))
|
|
289
289
|
})
|
|
290
290
|
);
|
|
@@ -318,7 +318,7 @@ var DropdownMenuRadioItem = import_react3.default.forwardRef(
|
|
|
318
318
|
DropdownMenuPrimitive.RadioItem,
|
|
319
319
|
__spreadProps(__spreadValues({}, props), {
|
|
320
320
|
ref: forwardedRef,
|
|
321
|
-
className: "outline-
|
|
321
|
+
className: "outline-hidden select-none group",
|
|
322
322
|
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(DropdownMenuItemBase, __spreadProps(__spreadValues({}, extraProps), { children }))
|
|
323
323
|
})
|
|
324
324
|
);
|
|
@@ -344,7 +344,7 @@ var DropdownMenuSubContent = import_react3.default.forwardRef((_a, forwardedRef)
|
|
|
344
344
|
DropdownMenuPrimitive.SubContent,
|
|
345
345
|
__spreadProps(__spreadValues({
|
|
346
346
|
className: cn(
|
|
347
|
-
"min-w-[144px] bg-white rounded-md py-1 shadow-dropdown-sm border border-gray-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95
|
|
347
|
+
"min-w-[144px] bg-white rounded-md py-1 shadow-dropdown-sm border border-gray-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
348
348
|
className
|
|
349
349
|
),
|
|
350
350
|
sideOffset
|
|
@@ -368,7 +368,7 @@ var DropdownMenuSubTrigger = import_react3.default.forwardRef(
|
|
|
368
368
|
DropdownMenuPrimitive.SubTrigger,
|
|
369
369
|
__spreadProps(__spreadValues({}, props), {
|
|
370
370
|
ref: forwardedRef,
|
|
371
|
-
className: "outline-
|
|
371
|
+
className: "outline-hidden select-none group",
|
|
372
372
|
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(DropdownMenuItemBase, __spreadProps(__spreadValues({ hasSubNav: true }, extraProps), { children }))
|
|
373
373
|
})
|
|
374
374
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChevronRightIcon
|
|
3
|
-
} from "../../chunk-M7XGO7VL.mjs";
|
|
4
1
|
import {
|
|
5
2
|
Checkbox
|
|
6
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-TU6HU32A.mjs";
|
|
7
4
|
import "../../chunk-AFJWE6PJ.mjs";
|
|
5
|
+
import {
|
|
6
|
+
ChevronRightIcon
|
|
7
|
+
} from "../../chunk-M7XGO7VL.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__objRest,
|
|
10
10
|
__spreadProps,
|
|
@@ -31,7 +31,7 @@ var DropdownMenuItemBase = ({
|
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
33
33
|
className: cn(
|
|
34
|
-
"mx-1 px-2 py-1.5 text-sm flex flex-col gap-1 text-black rounded-md cursor-pointer group-focus-within:bg-gray-100 group-data-
|
|
34
|
+
"mx-1 px-2 py-1.5 text-sm flex flex-col gap-1 text-black rounded-md cursor-pointer group-focus-within:bg-gray-100 group-data-disabled:cursor-not-allowed group-data-disabled:opacity-50 group-hover:bg-gray-50 group-active:bg-gray-100 group-data-[state=checked]:bg-gray-50",
|
|
35
35
|
{ "text-red-700 font-medium": destructive },
|
|
36
36
|
className
|
|
37
37
|
),
|
|
@@ -41,7 +41,7 @@ var DropdownMenuItemBase = ({
|
|
|
41
41
|
icon && React.cloneElement(icon, {
|
|
42
42
|
size: 16,
|
|
43
43
|
className: cn(
|
|
44
|
-
"
|
|
44
|
+
"shrink-0",
|
|
45
45
|
{ "text-red-700": destructive },
|
|
46
46
|
icon.props.className
|
|
47
47
|
)
|
|
@@ -70,7 +70,7 @@ var DropdownMenuCheckboxItem = React.forwardRef(
|
|
|
70
70
|
checked
|
|
71
71
|
}, props), {
|
|
72
72
|
ref: forwardedRef,
|
|
73
|
-
className: "outline-
|
|
73
|
+
className: "outline-hidden select-none group",
|
|
74
74
|
children: /* @__PURE__ */ jsx(DropdownMenuItemBase, __spreadProps(__spreadValues({ checkbox: true }, extraProps), { children }))
|
|
75
75
|
})
|
|
76
76
|
);
|
|
@@ -96,7 +96,7 @@ var DropdownMenuContent = React.forwardRef(
|
|
|
96
96
|
DropdownMenuPrimitive.Content,
|
|
97
97
|
__spreadProps(__spreadValues({
|
|
98
98
|
className: cn(
|
|
99
|
-
"min-w-[144px] bg-white rounded-md py-1 shadow-dropdown-sm border border-gray-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95
|
|
99
|
+
"min-w-[144px] bg-white rounded-md py-1 shadow-dropdown-sm border border-gray-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
100
100
|
className
|
|
101
101
|
),
|
|
102
102
|
side,
|
|
@@ -124,7 +124,7 @@ var DropdownMenuItem = React.forwardRef(
|
|
|
124
124
|
DropdownMenuPrimitive.Item,
|
|
125
125
|
__spreadProps(__spreadValues({}, props), {
|
|
126
126
|
ref: forwardedRef,
|
|
127
|
-
className: "outline-
|
|
127
|
+
className: "outline-hidden select-none group",
|
|
128
128
|
children: /* @__PURE__ */ jsx(DropdownMenuItemBase, __spreadProps(__spreadValues({}, extraProps), { children }))
|
|
129
129
|
})
|
|
130
130
|
);
|
|
@@ -158,7 +158,7 @@ var DropdownMenuRadioItem = React.forwardRef(
|
|
|
158
158
|
DropdownMenuPrimitive.RadioItem,
|
|
159
159
|
__spreadProps(__spreadValues({}, props), {
|
|
160
160
|
ref: forwardedRef,
|
|
161
|
-
className: "outline-
|
|
161
|
+
className: "outline-hidden select-none group",
|
|
162
162
|
children: /* @__PURE__ */ jsx(DropdownMenuItemBase, __spreadProps(__spreadValues({}, extraProps), { children }))
|
|
163
163
|
})
|
|
164
164
|
);
|
|
@@ -184,7 +184,7 @@ var DropdownMenuSubContent = React.forwardRef((_a, forwardedRef) => {
|
|
|
184
184
|
DropdownMenuPrimitive.SubContent,
|
|
185
185
|
__spreadProps(__spreadValues({
|
|
186
186
|
className: cn(
|
|
187
|
-
"min-w-[144px] bg-white rounded-md py-1 shadow-dropdown-sm border border-gray-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95
|
|
187
|
+
"min-w-[144px] bg-white rounded-md py-1 shadow-dropdown-sm border border-gray-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
188
188
|
className
|
|
189
189
|
),
|
|
190
190
|
sideOffset
|
|
@@ -208,7 +208,7 @@ var DropdownMenuSubTrigger = React.forwardRef(
|
|
|
208
208
|
DropdownMenuPrimitive.SubTrigger,
|
|
209
209
|
__spreadProps(__spreadValues({}, props), {
|
|
210
210
|
ref: forwardedRef,
|
|
211
|
-
className: "outline-
|
|
211
|
+
className: "outline-hidden select-none group",
|
|
212
212
|
children: /* @__PURE__ */ jsx(DropdownMenuItemBase, __spreadProps(__spreadValues({ hasSubNav: true }, extraProps), { children }))
|
|
213
213
|
})
|
|
214
214
|
);
|
|
@@ -294,15 +294,15 @@ var SpinnerIcon = (0, import_react2.forwardRef)(
|
|
|
294
294
|
// src/components/Button/Button.tsx
|
|
295
295
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
296
296
|
var buttonVariants = (0, import_cva2.cva)({
|
|
297
|
-
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-
|
|
297
|
+
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-hidden focus-visible:ring-2 disabled:select-none disabled:pointer-events-none disabled:opacity-40",
|
|
298
298
|
variants: {
|
|
299
299
|
variant: {
|
|
300
|
-
primary: "bg-blue-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
300
|
+
primary: "bg-blue-700 text-white [&>svg]:text-white dark:text-black dark:[&>svg]:text-black hover:bg-blue-800 active:bg-blue-900 focus-visible:ring-blue-1000",
|
|
301
301
|
secondary: "bg-gray-50 text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-500 focus-visible:ring-black",
|
|
302
302
|
tertiary: "bg-gray-50 text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
303
303
|
outline: "bg-white text-black [&>svg]:text-black ring-1 ring-offset-0 ring-gray-200 hover:bg-gray-50 active:bg-gray-200 focus-visible:ring-black",
|
|
304
304
|
outlineBlue: "bg-transparent text-blue-700 [&>svg]:text-blue-700 ring-1 ring-inset ring-offset-0 ring-blue-700 hover:bg-blue-50 active:bg-blue-200 focus-visible:ring-blue-700 ",
|
|
305
|
-
destructive: "bg-red-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
305
|
+
destructive: "bg-red-700 text-white [&>svg]:text-white dark:text-black dark:[&>svg]:text-black hover:bg-red-800 active:bg-red-900 focus-visible:ring-red-1000",
|
|
306
306
|
ghostBlue: "bg-transparent text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
307
307
|
ghostRed: "bg-transparent text-red-700 [&>svg]:text-red-700 hover:bg-red-100 active:bg-red-200 focus-visible:ring-red-700",
|
|
308
308
|
ghostGray: "bg-transparent text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-200 focus-visible:ring-black",
|
|
@@ -13,7 +13,8 @@ declare const useFormField: () => {
|
|
|
13
13
|
invalid: boolean;
|
|
14
14
|
isDirty: boolean;
|
|
15
15
|
isTouched: boolean;
|
|
16
|
-
|
|
16
|
+
isValidating: boolean;
|
|
17
|
+
error?: react_hook_form.FieldError;
|
|
17
18
|
id: string;
|
|
18
19
|
name: string;
|
|
19
20
|
isDisabled: boolean | undefined;
|
|
@@ -13,7 +13,8 @@ declare const useFormField: () => {
|
|
|
13
13
|
invalid: boolean;
|
|
14
14
|
isDirty: boolean;
|
|
15
15
|
isTouched: boolean;
|
|
16
|
-
|
|
16
|
+
isValidating: boolean;
|
|
17
|
+
error?: react_hook_form.FieldError;
|
|
17
18
|
id: string;
|
|
18
19
|
name: string;
|
|
19
20
|
isDisabled: boolean | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
3
|
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
-
button?: JSX.Element;
|
|
5
|
-
prefixEnchancer?: JSX.Element | string;
|
|
6
|
-
suffixEnchancer?: JSX.Element | string;
|
|
4
|
+
button?: React.JSX.Element;
|
|
5
|
+
prefixEnchancer?: React.JSX.Element | string;
|
|
6
|
+
suffixEnchancer?: React.JSX.Element | string;
|
|
7
7
|
'data-has-error'?: string;
|
|
8
8
|
'data-is-disabled'?: string;
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
3
|
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
-
button?: JSX.Element;
|
|
5
|
-
prefixEnchancer?: JSX.Element | string;
|
|
6
|
-
suffixEnchancer?: JSX.Element | string;
|
|
4
|
+
button?: React.JSX.Element;
|
|
5
|
+
prefixEnchancer?: React.JSX.Element | string;
|
|
6
|
+
suffixEnchancer?: React.JSX.Element | string;
|
|
7
7
|
'data-has-error'?: string;
|
|
8
8
|
'data-is-disabled'?: string;
|
|
9
9
|
}
|
|
@@ -122,7 +122,7 @@ var Input = React.forwardRef(
|
|
|
122
122
|
"input",
|
|
123
123
|
__spreadProps(__spreadValues({}, props), {
|
|
124
124
|
disabled: isDisabled,
|
|
125
|
-
className: "w-full px-3 py-2 text-sm bg-transparent outline-
|
|
125
|
+
className: "w-full px-3 py-2 text-sm bg-transparent outline-hidden text-black placeholder:text-gray-700 disabled:cursor-not-allowed",
|
|
126
126
|
type,
|
|
127
127
|
ref
|
|
128
128
|
})
|
|
@@ -143,7 +143,7 @@ var Input = React.forwardRef(
|
|
|
143
143
|
button && React.cloneElement(button, {
|
|
144
144
|
size: "sm",
|
|
145
145
|
disabled: (_a2 = button.props.disabled) != null ? _a2 : isDisabled,
|
|
146
|
-
className: cn("
|
|
146
|
+
className: cn("shrink-0", button.props.className)
|
|
147
147
|
})
|
|
148
148
|
] });
|
|
149
149
|
}
|
|
@@ -55,7 +55,7 @@ var Input = React.forwardRef(
|
|
|
55
55
|
"input",
|
|
56
56
|
__spreadProps(__spreadValues({}, props), {
|
|
57
57
|
disabled: isDisabled,
|
|
58
|
-
className: "w-full px-3 py-2 text-sm bg-transparent outline-
|
|
58
|
+
className: "w-full px-3 py-2 text-sm bg-transparent outline-hidden text-black placeholder:text-gray-700 disabled:cursor-not-allowed",
|
|
59
59
|
type,
|
|
60
60
|
ref
|
|
61
61
|
})
|
|
@@ -76,7 +76,7 @@ var Input = React.forwardRef(
|
|
|
76
76
|
button && React.cloneElement(button, {
|
|
77
77
|
size: "sm",
|
|
78
78
|
disabled: (_a2 = button.props.disabled) != null ? _a2 : isDisabled,
|
|
79
|
-
className: cn("
|
|
79
|
+
className: cn("shrink-0", button.props.className)
|
|
80
80
|
})
|
|
81
81
|
] });
|
|
82
82
|
}
|
|
@@ -6,15 +6,15 @@ type MediaCardProps = {
|
|
|
6
6
|
description?: string;
|
|
7
7
|
duration?: number;
|
|
8
8
|
type: 'audio' | 'video' | 'image';
|
|
9
|
-
image?: string | JSX.Element;
|
|
10
|
-
action?: JSX.Element;
|
|
9
|
+
image?: string | React.JSX.Element;
|
|
10
|
+
action?: React.JSX.Element;
|
|
11
11
|
actionBehavior?: 'default' | 'hover';
|
|
12
12
|
moderationStatus?: 'processing' | 'flagged' | 'safe' | null;
|
|
13
13
|
isLoading?: boolean;
|
|
14
14
|
size: 'small' | 'medium' | 'large';
|
|
15
15
|
author?: {
|
|
16
16
|
name: string;
|
|
17
|
-
image?: JSX.Element;
|
|
17
|
+
image?: React.JSX.Element;
|
|
18
18
|
};
|
|
19
19
|
} & HTMLAttributes<HTMLDivElement>;
|
|
20
20
|
declare const MediaCard: {
|
|
@@ -6,15 +6,15 @@ type MediaCardProps = {
|
|
|
6
6
|
description?: string;
|
|
7
7
|
duration?: number;
|
|
8
8
|
type: 'audio' | 'video' | 'image';
|
|
9
|
-
image?: string | JSX.Element;
|
|
10
|
-
action?: JSX.Element;
|
|
9
|
+
image?: string | React.JSX.Element;
|
|
10
|
+
action?: React.JSX.Element;
|
|
11
11
|
actionBehavior?: 'default' | 'hover';
|
|
12
12
|
moderationStatus?: 'processing' | 'flagged' | 'safe' | null;
|
|
13
13
|
isLoading?: boolean;
|
|
14
14
|
size: 'small' | 'medium' | 'large';
|
|
15
15
|
author?: {
|
|
16
16
|
name: string;
|
|
17
|
-
image?: JSX.Element;
|
|
17
|
+
image?: React.JSX.Element;
|
|
18
18
|
};
|
|
19
19
|
} & HTMLAttributes<HTMLDivElement>;
|
|
20
20
|
declare const MediaCard: {
|