@snapcall/design-system 1.17.1 → 1.18.0
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/index.d.mts +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +248 -105
- package/dist/index.mjs +238 -99
- package/dist/tailwind.css +1 -1
- package/package.json +3 -1
package/dist/index.mjs
CHANGED
|
@@ -52984,14 +52984,47 @@ var PopoverContent = React15.forwardRef((_a, ref) => {
|
|
|
52984
52984
|
});
|
|
52985
52985
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
52986
52986
|
|
|
52987
|
-
// src/components/
|
|
52987
|
+
// src/components/RadioGroup/RadioGroup.tsx
|
|
52988
52988
|
import * as React16 from "react";
|
|
52989
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
52990
|
+
import { jsx as jsx1242 } from "react/jsx-runtime";
|
|
52991
|
+
var RadioGroup2 = React16.forwardRef((_a, ref) => {
|
|
52992
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52993
|
+
return /* @__PURE__ */ jsx1242(
|
|
52994
|
+
RadioGroupPrimitive.Root,
|
|
52995
|
+
__spreadProps(__spreadValues({
|
|
52996
|
+
className: cn("grid gap-2", className)
|
|
52997
|
+
}, props), {
|
|
52998
|
+
ref
|
|
52999
|
+
})
|
|
53000
|
+
);
|
|
53001
|
+
});
|
|
53002
|
+
RadioGroup2.displayName = RadioGroupPrimitive.Root.displayName;
|
|
53003
|
+
var RadioGroupItem = React16.forwardRef((_a, ref) => {
|
|
53004
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53005
|
+
return /* @__PURE__ */ jsx1242(
|
|
53006
|
+
RadioGroupPrimitive.Item,
|
|
53007
|
+
__spreadProps(__spreadValues({
|
|
53008
|
+
ref,
|
|
53009
|
+
className: cn(
|
|
53010
|
+
"aspect-square h-4 w-4 bg-gray-50 rounded-full border border-gray-200 data-[state=checked]:border-blue-700 ring-blue-300 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-300 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
53011
|
+
className
|
|
53012
|
+
)
|
|
53013
|
+
}, props), {
|
|
53014
|
+
children: /* @__PURE__ */ jsx1242(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx1242("span", { className: "h-2 w-2 rounded-full bg-blue-700" }) })
|
|
53015
|
+
})
|
|
53016
|
+
);
|
|
53017
|
+
});
|
|
53018
|
+
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
53019
|
+
|
|
53020
|
+
// src/components/Select/Select.tsx
|
|
53021
|
+
import * as React17 from "react";
|
|
52989
53022
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
52990
|
-
import { jsx as
|
|
53023
|
+
import { jsx as jsx1243, jsxs as jsxs1018 } from "react/jsx-runtime";
|
|
52991
53024
|
var Select = SelectPrimitive.Root;
|
|
52992
53025
|
var SelectGroup = SelectPrimitive.Group;
|
|
52993
53026
|
var SelectValue = SelectPrimitive.Value;
|
|
52994
|
-
var SelectTrigger =
|
|
53027
|
+
var SelectTrigger = React17.forwardRef((_a, ref) => {
|
|
52995
53028
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
52996
53029
|
const isDisabled = props["data-is-disabled"];
|
|
52997
53030
|
return /* @__PURE__ */ jsxs1018(
|
|
@@ -53011,15 +53044,15 @@ var SelectTrigger = React16.forwardRef((_a, ref) => {
|
|
|
53011
53044
|
}, props), {
|
|
53012
53045
|
children: [
|
|
53013
53046
|
children,
|
|
53014
|
-
/* @__PURE__ */
|
|
53047
|
+
/* @__PURE__ */ jsx1243(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx1243(ChevronSelectorVerticalIcon, { size: "16", className: "w-4 h-4 opacity-50" }) })
|
|
53015
53048
|
]
|
|
53016
53049
|
})
|
|
53017
53050
|
);
|
|
53018
53051
|
});
|
|
53019
53052
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
53020
|
-
var SelectContent =
|
|
53053
|
+
var SelectContent = React17.forwardRef((_a, ref) => {
|
|
53021
53054
|
var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
|
|
53022
|
-
return /* @__PURE__ */
|
|
53055
|
+
return /* @__PURE__ */ jsx1243(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx1243(
|
|
53023
53056
|
SelectPrimitive.Content,
|
|
53024
53057
|
__spreadProps(__spreadValues({
|
|
53025
53058
|
ref,
|
|
@@ -53030,7 +53063,7 @@ var SelectContent = React16.forwardRef((_a, ref) => {
|
|
|
53030
53063
|
),
|
|
53031
53064
|
position
|
|
53032
53065
|
}, props), {
|
|
53033
|
-
children: /* @__PURE__ */
|
|
53066
|
+
children: /* @__PURE__ */ jsx1243(
|
|
53034
53067
|
SelectPrimitive.Viewport,
|
|
53035
53068
|
{
|
|
53036
53069
|
className: cn(
|
|
@@ -53044,9 +53077,9 @@ var SelectContent = React16.forwardRef((_a, ref) => {
|
|
|
53044
53077
|
) });
|
|
53045
53078
|
});
|
|
53046
53079
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
53047
|
-
var SelectLabel =
|
|
53080
|
+
var SelectLabel = React17.forwardRef((_a, ref) => {
|
|
53048
53081
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53049
|
-
return /* @__PURE__ */
|
|
53082
|
+
return /* @__PURE__ */ jsx1243(
|
|
53050
53083
|
SelectPrimitive.Label,
|
|
53051
53084
|
__spreadValues({
|
|
53052
53085
|
ref,
|
|
@@ -53055,9 +53088,9 @@ var SelectLabel = React16.forwardRef((_a, ref) => {
|
|
|
53055
53088
|
);
|
|
53056
53089
|
});
|
|
53057
53090
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
53058
|
-
var SelectItem =
|
|
53091
|
+
var SelectItem = React17.forwardRef((_a, ref) => {
|
|
53059
53092
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
53060
|
-
return /* @__PURE__ */
|
|
53093
|
+
return /* @__PURE__ */ jsx1243(
|
|
53061
53094
|
SelectPrimitive.Item,
|
|
53062
53095
|
__spreadProps(__spreadValues({
|
|
53063
53096
|
ref,
|
|
@@ -53066,14 +53099,14 @@ var SelectItem = React16.forwardRef((_a, ref) => {
|
|
|
53066
53099
|
className
|
|
53067
53100
|
)
|
|
53068
53101
|
}, props), {
|
|
53069
|
-
children: /* @__PURE__ */
|
|
53102
|
+
children: /* @__PURE__ */ jsx1243(SelectPrimitive.ItemText, { children })
|
|
53070
53103
|
})
|
|
53071
53104
|
);
|
|
53072
53105
|
});
|
|
53073
53106
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
53074
|
-
var SelectSeparator =
|
|
53107
|
+
var SelectSeparator = React17.forwardRef((_a, ref) => {
|
|
53075
53108
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53076
|
-
return /* @__PURE__ */
|
|
53109
|
+
return /* @__PURE__ */ jsx1243(
|
|
53077
53110
|
SelectPrimitive.Separator,
|
|
53078
53111
|
__spreadValues({
|
|
53079
53112
|
ref,
|
|
@@ -53084,30 +53117,30 @@ var SelectSeparator = React16.forwardRef((_a, ref) => {
|
|
|
53084
53117
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
53085
53118
|
|
|
53086
53119
|
// src/components/Sheet/Sheet.tsx
|
|
53087
|
-
import * as
|
|
53120
|
+
import * as React18 from "react";
|
|
53088
53121
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
53089
53122
|
import { cva as cva4 } from "class-variance-authority";
|
|
53090
|
-
import { jsx as
|
|
53123
|
+
import { jsx as jsx1244, jsxs as jsxs1019 } from "react/jsx-runtime";
|
|
53091
53124
|
var Sheet = SheetPrimitive.Root;
|
|
53092
53125
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
53093
|
-
var SheetClose =
|
|
53126
|
+
var SheetClose = React18.forwardRef((_a, ref) => {
|
|
53094
53127
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53095
|
-
return /* @__PURE__ */
|
|
53128
|
+
return /* @__PURE__ */ jsx1244(
|
|
53096
53129
|
SheetPrimitive.Close,
|
|
53097
53130
|
__spreadProps(__spreadValues({
|
|
53098
53131
|
className: cn("absolute right-0 top-0", className)
|
|
53099
53132
|
}, props), {
|
|
53100
53133
|
ref,
|
|
53101
53134
|
asChild: true,
|
|
53102
|
-
children: /* @__PURE__ */
|
|
53135
|
+
children: /* @__PURE__ */ jsx1244(Button, { size: "sm", variant: "secondary", icon: true, children: /* @__PURE__ */ jsx1244(XCloseIcon, { size: 16 }) })
|
|
53103
53136
|
})
|
|
53104
53137
|
);
|
|
53105
53138
|
});
|
|
53106
53139
|
SheetClose.displayName = SheetPrimitive.Close.displayName;
|
|
53107
53140
|
var SheetPortal = SheetPrimitive.Portal;
|
|
53108
|
-
var SheetOverlay =
|
|
53141
|
+
var SheetOverlay = React18.forwardRef((_a, ref) => {
|
|
53109
53142
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53110
|
-
return /* @__PURE__ */
|
|
53143
|
+
return /* @__PURE__ */ jsx1244(
|
|
53111
53144
|
SheetPrimitive.Overlay,
|
|
53112
53145
|
__spreadProps(__spreadValues({
|
|
53113
53146
|
className: cn(
|
|
@@ -53136,7 +53169,7 @@ var sheetVariants = cva4(
|
|
|
53136
53169
|
}
|
|
53137
53170
|
}
|
|
53138
53171
|
);
|
|
53139
|
-
var SheetContent =
|
|
53172
|
+
var SheetContent = React18.forwardRef(
|
|
53140
53173
|
(_a, ref) => {
|
|
53141
53174
|
var _b = _a, {
|
|
53142
53175
|
side = "right",
|
|
@@ -53152,8 +53185,8 @@ var SheetContent = React17.forwardRef(
|
|
|
53152
53185
|
"overlay"
|
|
53153
53186
|
]);
|
|
53154
53187
|
return /* @__PURE__ */ jsxs1019(SheetPortal, { container, children: [
|
|
53155
|
-
overlay && /* @__PURE__ */
|
|
53156
|
-
/* @__PURE__ */
|
|
53188
|
+
overlay && /* @__PURE__ */ jsx1244(SheetOverlay, { className: cn({ absolute: Boolean(container) }) }),
|
|
53189
|
+
/* @__PURE__ */ jsx1244(
|
|
53157
53190
|
SheetPrimitive.Content,
|
|
53158
53191
|
__spreadProps(__spreadValues({
|
|
53159
53192
|
ref,
|
|
@@ -53182,7 +53215,7 @@ var SheetHeader = (_a) => {
|
|
|
53182
53215
|
} = _b, props = __objRest(_b, [
|
|
53183
53216
|
"className"
|
|
53184
53217
|
]);
|
|
53185
|
-
return /* @__PURE__ */
|
|
53218
|
+
return /* @__PURE__ */ jsx1244(
|
|
53186
53219
|
"div",
|
|
53187
53220
|
__spreadValues({
|
|
53188
53221
|
className: cn("flex justify-between relative flex-col gap-2", className)
|
|
@@ -53190,14 +53223,14 @@ var SheetHeader = (_a) => {
|
|
|
53190
53223
|
);
|
|
53191
53224
|
};
|
|
53192
53225
|
SheetHeader.displayName = "SheetHeader";
|
|
53193
|
-
var SheetTitle =
|
|
53226
|
+
var SheetTitle = React18.forwardRef((_a, ref) => {
|
|
53194
53227
|
var _b = _a, { className, icon } = _b, props = __objRest(_b, ["className", "icon"]);
|
|
53195
53228
|
return /* @__PURE__ */ jsxs1019("div", { className: "flex gap-3 items-center py-2 pr-2 overflow-hidden mr-9", children: [
|
|
53196
|
-
icon &&
|
|
53229
|
+
icon && React18.cloneElement(icon, {
|
|
53197
53230
|
size: 18,
|
|
53198
53231
|
className: cn("shrink-0", icon.props.className)
|
|
53199
53232
|
}),
|
|
53200
|
-
/* @__PURE__ */
|
|
53233
|
+
/* @__PURE__ */ jsx1244(
|
|
53201
53234
|
SheetPrimitive.Title,
|
|
53202
53235
|
__spreadValues({
|
|
53203
53236
|
ref,
|
|
@@ -53207,9 +53240,9 @@ var SheetTitle = React17.forwardRef((_a, ref) => {
|
|
|
53207
53240
|
] });
|
|
53208
53241
|
});
|
|
53209
53242
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
53210
|
-
var SheetDescription =
|
|
53243
|
+
var SheetDescription = React18.forwardRef((_a, ref) => {
|
|
53211
53244
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53212
|
-
return /* @__PURE__ */
|
|
53245
|
+
return /* @__PURE__ */ jsx1244(
|
|
53213
53246
|
SheetPrimitive.Description,
|
|
53214
53247
|
__spreadValues({
|
|
53215
53248
|
ref,
|
|
@@ -53220,14 +53253,14 @@ var SheetDescription = React17.forwardRef((_a, ref) => {
|
|
|
53220
53253
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
53221
53254
|
|
|
53222
53255
|
// src/components/Skeleton/Skeleton.tsx
|
|
53223
|
-
import { jsx as
|
|
53256
|
+
import { jsx as jsx1245 } from "react/jsx-runtime";
|
|
53224
53257
|
function Skeleton(_a) {
|
|
53225
53258
|
var _b = _a, {
|
|
53226
53259
|
className
|
|
53227
53260
|
} = _b, props = __objRest(_b, [
|
|
53228
53261
|
"className"
|
|
53229
53262
|
]);
|
|
53230
|
-
return /* @__PURE__ */
|
|
53263
|
+
return /* @__PURE__ */ jsx1245(
|
|
53231
53264
|
"div",
|
|
53232
53265
|
__spreadValues({
|
|
53233
53266
|
className: cn("animate-pulse rounded-full bg-gray-100", className)
|
|
@@ -53236,12 +53269,12 @@ function Skeleton(_a) {
|
|
|
53236
53269
|
}
|
|
53237
53270
|
|
|
53238
53271
|
// src/components/Switch/Switch.tsx
|
|
53239
|
-
import * as
|
|
53272
|
+
import * as React19 from "react";
|
|
53240
53273
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
53241
|
-
import { jsx as
|
|
53242
|
-
var Switch =
|
|
53274
|
+
import { jsx as jsx1246 } from "react/jsx-runtime";
|
|
53275
|
+
var Switch = React19.forwardRef((_a, ref) => {
|
|
53243
53276
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53244
|
-
return /* @__PURE__ */
|
|
53277
|
+
return /* @__PURE__ */ jsx1246(
|
|
53245
53278
|
SwitchPrimitive.Root,
|
|
53246
53279
|
__spreadProps(__spreadValues({
|
|
53247
53280
|
className: cn(
|
|
@@ -53250,18 +53283,18 @@ var Switch = React18.forwardRef((_a, ref) => {
|
|
|
53250
53283
|
)
|
|
53251
53284
|
}, props), {
|
|
53252
53285
|
ref,
|
|
53253
|
-
children: /* @__PURE__ */
|
|
53286
|
+
children: /* @__PURE__ */ jsx1246(SwitchPrimitive.Thumb, { className: "inline-block w-4 h-4 bg-gray-600 rounded-full translate-x-0.5 data-[state=checked]:translate-x-5 data-[state=checked]:bg-white transition-transform ease-linear will-change-transform" })
|
|
53254
53287
|
})
|
|
53255
53288
|
);
|
|
53256
53289
|
});
|
|
53257
53290
|
Switch.displayName = SwitchPrimitive.Root.displayName;
|
|
53258
53291
|
|
|
53259
53292
|
// src/components/Table/Table.tsx
|
|
53260
|
-
import * as
|
|
53261
|
-
import { jsx as
|
|
53262
|
-
var Table =
|
|
53293
|
+
import * as React20 from "react";
|
|
53294
|
+
import { jsx as jsx1247, jsxs as jsxs1020 } from "react/jsx-runtime";
|
|
53295
|
+
var Table = React20.forwardRef((_a, ref) => {
|
|
53263
53296
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53264
|
-
return /* @__PURE__ */
|
|
53297
|
+
return /* @__PURE__ */ jsx1247("div", { className: "w-full overflow-auto border rounded-lg", children: /* @__PURE__ */ jsx1247(
|
|
53265
53298
|
"table",
|
|
53266
53299
|
__spreadValues({
|
|
53267
53300
|
ref,
|
|
@@ -53270,9 +53303,9 @@ var Table = React19.forwardRef((_a, ref) => {
|
|
|
53270
53303
|
) });
|
|
53271
53304
|
});
|
|
53272
53305
|
Table.displayName = "Table";
|
|
53273
|
-
var TableHeader =
|
|
53306
|
+
var TableHeader = React20.forwardRef((_a, ref) => {
|
|
53274
53307
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53275
|
-
return /* @__PURE__ */
|
|
53308
|
+
return /* @__PURE__ */ jsx1247(
|
|
53276
53309
|
"thead",
|
|
53277
53310
|
__spreadValues({
|
|
53278
53311
|
ref,
|
|
@@ -53281,9 +53314,9 @@ var TableHeader = React19.forwardRef((_a, ref) => {
|
|
|
53281
53314
|
);
|
|
53282
53315
|
});
|
|
53283
53316
|
TableHeader.displayName = "TableHeader";
|
|
53284
|
-
var TableBody =
|
|
53317
|
+
var TableBody = React20.forwardRef((_a, ref) => {
|
|
53285
53318
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53286
|
-
return /* @__PURE__ */
|
|
53319
|
+
return /* @__PURE__ */ jsx1247(
|
|
53287
53320
|
"tbody",
|
|
53288
53321
|
__spreadValues({
|
|
53289
53322
|
ref,
|
|
@@ -53295,9 +53328,9 @@ var TableBody = React19.forwardRef((_a, ref) => {
|
|
|
53295
53328
|
);
|
|
53296
53329
|
});
|
|
53297
53330
|
TableBody.displayName = "TableBody";
|
|
53298
|
-
var TableRow =
|
|
53331
|
+
var TableRow = React20.forwardRef((_a, ref) => {
|
|
53299
53332
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53300
|
-
return /* @__PURE__ */
|
|
53333
|
+
return /* @__PURE__ */ jsx1247(
|
|
53301
53334
|
"tr",
|
|
53302
53335
|
__spreadValues({
|
|
53303
53336
|
ref,
|
|
@@ -53309,9 +53342,9 @@ var TableRow = React19.forwardRef((_a, ref) => {
|
|
|
53309
53342
|
);
|
|
53310
53343
|
});
|
|
53311
53344
|
TableRow.displayName = "TableRow";
|
|
53312
|
-
var TableHead =
|
|
53345
|
+
var TableHead = React20.forwardRef((_a, ref) => {
|
|
53313
53346
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53314
|
-
return /* @__PURE__ */
|
|
53347
|
+
return /* @__PURE__ */ jsx1247(
|
|
53315
53348
|
"th",
|
|
53316
53349
|
__spreadValues({
|
|
53317
53350
|
ref,
|
|
@@ -53323,9 +53356,9 @@ var TableHead = React19.forwardRef((_a, ref) => {
|
|
|
53323
53356
|
);
|
|
53324
53357
|
});
|
|
53325
53358
|
TableHead.displayName = "TableHead";
|
|
53326
|
-
var TableCell =
|
|
53359
|
+
var TableCell = React20.forwardRef((_a, ref) => {
|
|
53327
53360
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53328
|
-
return /* @__PURE__ */
|
|
53361
|
+
return /* @__PURE__ */ jsx1247(
|
|
53329
53362
|
"td",
|
|
53330
53363
|
__spreadValues({
|
|
53331
53364
|
ref,
|
|
@@ -53337,7 +53370,7 @@ var TableCell = React19.forwardRef((_a, ref) => {
|
|
|
53337
53370
|
);
|
|
53338
53371
|
});
|
|
53339
53372
|
TableCell.displayName = "TableCell";
|
|
53340
|
-
var TableEmpty =
|
|
53373
|
+
var TableEmpty = React20.forwardRef((_a, ref) => {
|
|
53341
53374
|
var _b = _a, { className, title, description, children } = _b, props = __objRest(_b, ["className", "title", "description", "children"]);
|
|
53342
53375
|
return /* @__PURE__ */ jsxs1020(
|
|
53343
53376
|
"div",
|
|
@@ -53346,9 +53379,9 @@ var TableEmpty = React19.forwardRef((_a, ref) => {
|
|
|
53346
53379
|
className: cn("flex flex-col gap-6 items-center py-12", className)
|
|
53347
53380
|
}, props), {
|
|
53348
53381
|
children: [
|
|
53349
|
-
title && /* @__PURE__ */
|
|
53350
|
-
description && /* @__PURE__ */
|
|
53351
|
-
/* @__PURE__ */
|
|
53382
|
+
title && /* @__PURE__ */ jsx1247("span", { className: "text-lg font-semibold text-gray-1000", children: title }),
|
|
53383
|
+
description && /* @__PURE__ */ jsx1247("span", { className: "text-sm font-normal text-gray-900", children: description }),
|
|
53384
|
+
/* @__PURE__ */ jsx1247("div", { children })
|
|
53352
53385
|
]
|
|
53353
53386
|
})
|
|
53354
53387
|
);
|
|
@@ -53356,13 +53389,13 @@ var TableEmpty = React19.forwardRef((_a, ref) => {
|
|
|
53356
53389
|
TableEmpty.displayName = "TableEmpty";
|
|
53357
53390
|
|
|
53358
53391
|
// src/components/Tabs/Tabs.tsx
|
|
53359
|
-
import * as
|
|
53392
|
+
import * as React21 from "react";
|
|
53360
53393
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
53361
|
-
import { jsx as
|
|
53394
|
+
import { jsx as jsx1248 } from "react/jsx-runtime";
|
|
53362
53395
|
var Tabs = TabsPrimitive.Root;
|
|
53363
|
-
var TabsList =
|
|
53396
|
+
var TabsList = React21.forwardRef((_a, ref) => {
|
|
53364
53397
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53365
|
-
return /* @__PURE__ */
|
|
53398
|
+
return /* @__PURE__ */ jsx1248(
|
|
53366
53399
|
TabsPrimitive.List,
|
|
53367
53400
|
__spreadValues({
|
|
53368
53401
|
ref,
|
|
@@ -53374,9 +53407,9 @@ var TabsList = React20.forwardRef((_a, ref) => {
|
|
|
53374
53407
|
);
|
|
53375
53408
|
});
|
|
53376
53409
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
53377
|
-
var TabsTrigger =
|
|
53410
|
+
var TabsTrigger = React21.forwardRef((_a, ref) => {
|
|
53378
53411
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53379
|
-
return /* @__PURE__ */
|
|
53412
|
+
return /* @__PURE__ */ jsx1248(
|
|
53380
53413
|
TabsPrimitive.Trigger,
|
|
53381
53414
|
__spreadValues({
|
|
53382
53415
|
ref,
|
|
@@ -53391,9 +53424,9 @@ var TabsTrigger = React20.forwardRef((_a, ref) => {
|
|
|
53391
53424
|
);
|
|
53392
53425
|
});
|
|
53393
53426
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
53394
|
-
var TabsContent =
|
|
53427
|
+
var TabsContent = React21.forwardRef((_a, ref) => {
|
|
53395
53428
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53396
|
-
return /* @__PURE__ */
|
|
53429
|
+
return /* @__PURE__ */ jsx1248(
|
|
53397
53430
|
TabsPrimitive.Content,
|
|
53398
53431
|
__spreadValues({
|
|
53399
53432
|
ref,
|
|
@@ -53407,13 +53440,13 @@ var TabsContent = React20.forwardRef((_a, ref) => {
|
|
|
53407
53440
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
53408
53441
|
|
|
53409
53442
|
// src/components/Textarea/Textarea.tsx
|
|
53410
|
-
import * as
|
|
53411
|
-
import { jsx as
|
|
53412
|
-
var Textarea =
|
|
53443
|
+
import * as React22 from "react";
|
|
53444
|
+
import { jsx as jsx1249 } from "react/jsx-runtime";
|
|
53445
|
+
var Textarea = React22.forwardRef(
|
|
53413
53446
|
(_a, ref) => {
|
|
53414
53447
|
var _b = _a, { className, disabled } = _b, props = __objRest(_b, ["className", "disabled"]);
|
|
53415
53448
|
const isDisabled = !!props["data-is-disabled"] || disabled;
|
|
53416
|
-
return /* @__PURE__ */
|
|
53449
|
+
return /* @__PURE__ */ jsx1249("div", { className: "flex gap-2", children: /* @__PURE__ */ jsx1249(
|
|
53417
53450
|
"div",
|
|
53418
53451
|
{
|
|
53419
53452
|
className: cn(
|
|
@@ -53424,7 +53457,7 @@ var Textarea = React21.forwardRef(
|
|
|
53424
53457
|
},
|
|
53425
53458
|
className
|
|
53426
53459
|
),
|
|
53427
|
-
children: /* @__PURE__ */
|
|
53460
|
+
children: /* @__PURE__ */ jsx1249(
|
|
53428
53461
|
"textarea",
|
|
53429
53462
|
__spreadProps(__spreadValues({}, props), {
|
|
53430
53463
|
disabled: isDisabled,
|
|
@@ -53439,14 +53472,14 @@ var Textarea = React21.forwardRef(
|
|
|
53439
53472
|
Textarea.displayName = "Textarea";
|
|
53440
53473
|
|
|
53441
53474
|
// src/components/Toaster/Toast.tsx
|
|
53442
|
-
import * as
|
|
53475
|
+
import * as React23 from "react";
|
|
53443
53476
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
53444
53477
|
import { cva as cva5 } from "class-variance-authority";
|
|
53445
|
-
import { jsx as
|
|
53478
|
+
import { jsx as jsx1250 } from "react/jsx-runtime";
|
|
53446
53479
|
var ToastProvider = ToastPrimitives.Provider;
|
|
53447
|
-
var ToastViewport =
|
|
53480
|
+
var ToastViewport = React23.forwardRef((_a, ref) => {
|
|
53448
53481
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53449
|
-
return /* @__PURE__ */
|
|
53482
|
+
return /* @__PURE__ */ jsx1250(
|
|
53450
53483
|
ToastPrimitives.Viewport,
|
|
53451
53484
|
__spreadValues({
|
|
53452
53485
|
ref,
|
|
@@ -53472,9 +53505,9 @@ var toastVariants = cva5(
|
|
|
53472
53505
|
}
|
|
53473
53506
|
}
|
|
53474
53507
|
);
|
|
53475
|
-
var Toast =
|
|
53508
|
+
var Toast = React23.forwardRef((_a, ref) => {
|
|
53476
53509
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
53477
|
-
return /* @__PURE__ */
|
|
53510
|
+
return /* @__PURE__ */ jsx1250(
|
|
53478
53511
|
ToastPrimitives.Root,
|
|
53479
53512
|
__spreadValues({
|
|
53480
53513
|
ref,
|
|
@@ -53483,28 +53516,28 @@ var Toast = React22.forwardRef((_a, ref) => {
|
|
|
53483
53516
|
);
|
|
53484
53517
|
});
|
|
53485
53518
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
53486
|
-
var ToastAction =
|
|
53519
|
+
var ToastAction = React23.forwardRef((_a, ref) => {
|
|
53487
53520
|
var _b = _a, { className, altText } = _b, props = __objRest(_b, ["className", "altText"]);
|
|
53488
|
-
return /* @__PURE__ */
|
|
53521
|
+
return /* @__PURE__ */ jsx1250(ToastPrimitives.Action, { altText, ref, asChild: true, children: /* @__PURE__ */ jsx1250(Button, __spreadValues({ size: "xs" }, props)) });
|
|
53489
53522
|
});
|
|
53490
53523
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
53491
|
-
var ToastClose =
|
|
53524
|
+
var ToastClose = React23.forwardRef((_a, ref) => {
|
|
53492
53525
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53493
|
-
return /* @__PURE__ */
|
|
53526
|
+
return /* @__PURE__ */ jsx1250(
|
|
53494
53527
|
ToastPrimitives.Close,
|
|
53495
53528
|
__spreadProps(__spreadValues({
|
|
53496
53529
|
ref,
|
|
53497
53530
|
className: cn("focus:outline-none focus:ring-1", className),
|
|
53498
53531
|
"toast-close": ""
|
|
53499
53532
|
}, props), {
|
|
53500
|
-
children: /* @__PURE__ */
|
|
53533
|
+
children: /* @__PURE__ */ jsx1250(XCloseIcon, { className: "text-white", size: 16 })
|
|
53501
53534
|
})
|
|
53502
53535
|
);
|
|
53503
53536
|
});
|
|
53504
53537
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
53505
|
-
var ToastTitle =
|
|
53538
|
+
var ToastTitle = React23.forwardRef((_a, ref) => {
|
|
53506
53539
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53507
|
-
return /* @__PURE__ */
|
|
53540
|
+
return /* @__PURE__ */ jsx1250(
|
|
53508
53541
|
ToastPrimitives.Title,
|
|
53509
53542
|
__spreadValues({
|
|
53510
53543
|
ref,
|
|
@@ -53513,9 +53546,9 @@ var ToastTitle = React22.forwardRef((_a, ref) => {
|
|
|
53513
53546
|
);
|
|
53514
53547
|
});
|
|
53515
53548
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
53516
|
-
var ToastDescription =
|
|
53549
|
+
var ToastDescription = React23.forwardRef((_a, ref) => {
|
|
53517
53550
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53518
|
-
return /* @__PURE__ */
|
|
53551
|
+
return /* @__PURE__ */ jsx1250(
|
|
53519
53552
|
ToastPrimitives.Description,
|
|
53520
53553
|
__spreadValues({
|
|
53521
53554
|
ref,
|
|
@@ -53526,10 +53559,10 @@ var ToastDescription = React22.forwardRef((_a, ref) => {
|
|
|
53526
53559
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
53527
53560
|
|
|
53528
53561
|
// src/components/Toaster/Toaster.tsx
|
|
53529
|
-
import
|
|
53562
|
+
import React25 from "react";
|
|
53530
53563
|
|
|
53531
53564
|
// src/components/Toaster/useToast.tsx
|
|
53532
|
-
import * as
|
|
53565
|
+
import * as React24 from "react";
|
|
53533
53566
|
var TOAST_LIMIT = 3;
|
|
53534
53567
|
var TOAST_REMOVE_DELAY = 1e6;
|
|
53535
53568
|
var count = 0;
|
|
@@ -53638,8 +53671,8 @@ var toast = (parentId) => (_a) => {
|
|
|
53638
53671
|
};
|
|
53639
53672
|
};
|
|
53640
53673
|
function useToast({ toasterId = "default" } = {}) {
|
|
53641
|
-
const [state, setState] =
|
|
53642
|
-
|
|
53674
|
+
const [state, setState] = React24.useState(memoryState);
|
|
53675
|
+
React24.useEffect(() => {
|
|
53643
53676
|
listeners.push(setState);
|
|
53644
53677
|
return () => {
|
|
53645
53678
|
const index = listeners.indexOf(setState);
|
|
@@ -53655,7 +53688,7 @@ function useToast({ toasterId = "default" } = {}) {
|
|
|
53655
53688
|
}
|
|
53656
53689
|
|
|
53657
53690
|
// src/components/Toaster/Toaster.tsx
|
|
53658
|
-
import { jsx as
|
|
53691
|
+
import { jsx as jsx1251, jsxs as jsxs1021 } from "react/jsx-runtime";
|
|
53659
53692
|
var ToastContent = ({
|
|
53660
53693
|
title,
|
|
53661
53694
|
description,
|
|
@@ -53666,16 +53699,16 @@ var ToastContent = ({
|
|
|
53666
53699
|
return /* @__PURE__ */ jsxs1021("div", { className: "flex flex-col gap-2 overflow-hidden", children: [
|
|
53667
53700
|
/* @__PURE__ */ jsxs1021("div", { className: "flex items-center gap-4", children: [
|
|
53668
53701
|
/* @__PURE__ */ jsxs1021("div", { className: "flex items-center flex-grow gap-2 overflow-hidden", children: [
|
|
53669
|
-
icon &&
|
|
53702
|
+
icon && React25.cloneElement(icon, {
|
|
53670
53703
|
size: 16,
|
|
53671
53704
|
className: cn("shrink-0", icon.props.className)
|
|
53672
53705
|
}),
|
|
53673
|
-
title && /* @__PURE__ */
|
|
53706
|
+
title && /* @__PURE__ */ jsx1251(ToastTitle, { children: title })
|
|
53674
53707
|
] }),
|
|
53675
53708
|
actions,
|
|
53676
|
-
!hideClose && /* @__PURE__ */
|
|
53709
|
+
!hideClose && /* @__PURE__ */ jsx1251(ToastClose, {})
|
|
53677
53710
|
] }),
|
|
53678
|
-
description && /* @__PURE__ */
|
|
53711
|
+
description && /* @__PURE__ */ jsx1251(ToastDescription, { children: description })
|
|
53679
53712
|
] });
|
|
53680
53713
|
};
|
|
53681
53714
|
function Toaster(_a) {
|
|
@@ -53707,7 +53740,7 @@ function Toaster(_a) {
|
|
|
53707
53740
|
"icon",
|
|
53708
53741
|
"hideClose"
|
|
53709
53742
|
]);
|
|
53710
|
-
return /* @__PURE__ */
|
|
53743
|
+
return /* @__PURE__ */ jsx1251(Toast, __spreadProps(__spreadValues({}, props2), { children: /* @__PURE__ */ jsx1251(
|
|
53711
53744
|
ToastContent,
|
|
53712
53745
|
{
|
|
53713
53746
|
title,
|
|
@@ -53719,27 +53752,129 @@ function Toaster(_a) {
|
|
|
53719
53752
|
) }), id);
|
|
53720
53753
|
}
|
|
53721
53754
|
),
|
|
53722
|
-
/* @__PURE__ */
|
|
53755
|
+
/* @__PURE__ */ jsx1251(ToastViewport, { className })
|
|
53723
53756
|
] }));
|
|
53724
53757
|
}
|
|
53725
53758
|
|
|
53759
|
+
// src/components/ToggleGroup/ToggleGroup.tsx
|
|
53760
|
+
import * as React26 from "react";
|
|
53761
|
+
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
53762
|
+
import { jsx as jsx1252, jsxs as jsxs1022 } from "react/jsx-runtime";
|
|
53763
|
+
var ToggleGroupContext = React26.createContext({
|
|
53764
|
+
direction: "row",
|
|
53765
|
+
type: "single"
|
|
53766
|
+
});
|
|
53767
|
+
var ToggleGroup = React26.forwardRef((_a, ref) => {
|
|
53768
|
+
var _b = _a, { className, direction = "row", children } = _b, props = __objRest(_b, ["className", "direction", "children"]);
|
|
53769
|
+
const { type = "single" } = props;
|
|
53770
|
+
return /* @__PURE__ */ jsx1252(
|
|
53771
|
+
ToggleGroupPrimitive.Root,
|
|
53772
|
+
__spreadProps(__spreadValues({
|
|
53773
|
+
ref,
|
|
53774
|
+
className: cn(
|
|
53775
|
+
"flex gap-2",
|
|
53776
|
+
direction === "row" ? "flex-row" : "flex-col",
|
|
53777
|
+
className
|
|
53778
|
+
)
|
|
53779
|
+
}, props), {
|
|
53780
|
+
children: /* @__PURE__ */ jsx1252(ToggleGroupContext.Provider, { value: { direction, type }, children })
|
|
53781
|
+
})
|
|
53782
|
+
);
|
|
53783
|
+
});
|
|
53784
|
+
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
53785
|
+
var ToggleGroupItem = React26.forwardRef((_a, ref) => {
|
|
53786
|
+
var _b = _a, { title, description, icon, image, className, children } = _b, props = __objRest(_b, ["title", "description", "icon", "image", "className", "children"]);
|
|
53787
|
+
const { direction, type } = React26.useContext(ToggleGroupContext);
|
|
53788
|
+
const isRow = direction === "row";
|
|
53789
|
+
return /* @__PURE__ */ jsxs1022(
|
|
53790
|
+
ToggleGroupPrimitive.Item,
|
|
53791
|
+
__spreadProps(__spreadValues({
|
|
53792
|
+
ref,
|
|
53793
|
+
className: cn(
|
|
53794
|
+
"flex border-2 border-gray-200 data-[state=on]:border-blue-700 p-2 rounded-lg group",
|
|
53795
|
+
"focus-visible:outline-none focus-visible:ring-blue-300 focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
53796
|
+
isRow ? "gap-2" : "gap-2.5",
|
|
53797
|
+
className
|
|
53798
|
+
)
|
|
53799
|
+
}, props), {
|
|
53800
|
+
children: [
|
|
53801
|
+
isRow && /* @__PURE__ */ jsx1252("span", { className: "w-4" }),
|
|
53802
|
+
/* @__PURE__ */ jsx1252("div", { className: "flex flex-col flex-1 self-center min-w-0", children: /* @__PURE__ */ jsxs1022(
|
|
53803
|
+
"div",
|
|
53804
|
+
{
|
|
53805
|
+
className: cn(
|
|
53806
|
+
"flex items-center",
|
|
53807
|
+
isRow ? "flex-col gap-2" : "flex-row gap-2.5"
|
|
53808
|
+
),
|
|
53809
|
+
children: [
|
|
53810
|
+
(icon || image) && /* @__PURE__ */ jsxs1022(
|
|
53811
|
+
"div",
|
|
53812
|
+
{
|
|
53813
|
+
className: cn(
|
|
53814
|
+
"flex justify-center items-center w-8 h-8 border-gray-200 rounded shrink-0",
|
|
53815
|
+
{ border: !isRow }
|
|
53816
|
+
),
|
|
53817
|
+
children: [
|
|
53818
|
+
icon && React26.cloneElement(icon, { size: isRow ? 24 : 16 }),
|
|
53819
|
+
image && /* @__PURE__ */ jsx1252("div", { className: "w-full h-full border border-gray-200 rounded min-w-0 overflow-hidden", children: image })
|
|
53820
|
+
]
|
|
53821
|
+
}
|
|
53822
|
+
),
|
|
53823
|
+
/* @__PURE__ */ jsxs1022(
|
|
53824
|
+
"div",
|
|
53825
|
+
{
|
|
53826
|
+
className: cn(
|
|
53827
|
+
"flex flex-col w-full min-w-0",
|
|
53828
|
+
isRow ? "text-center" : "text-left"
|
|
53829
|
+
),
|
|
53830
|
+
children: [
|
|
53831
|
+
/* @__PURE__ */ jsx1252("h4", { className: "text-sm font-medium truncate", children: title }),
|
|
53832
|
+
/* @__PURE__ */ jsx1252("span", { className: "text-xs text-gray-900 truncate", children: description })
|
|
53833
|
+
]
|
|
53834
|
+
}
|
|
53835
|
+
)
|
|
53836
|
+
]
|
|
53837
|
+
}
|
|
53838
|
+
) }),
|
|
53839
|
+
/* @__PURE__ */ jsx1252(
|
|
53840
|
+
"div",
|
|
53841
|
+
{
|
|
53842
|
+
className: cn(
|
|
53843
|
+
"flex items-center justify-center w-4 h-4 bg-gray-50 border border-gray-200 group-data-[state=on]:border-blue-700",
|
|
53844
|
+
type === "single" ? "rounded-full" : "rounded"
|
|
53845
|
+
),
|
|
53846
|
+
children: type === "single" ? /* @__PURE__ */ jsx1252("span", { className: "h-2 w-2 rounded-full bg-blue-700 group-data-[state=off]:bg-transparent" }) : /* @__PURE__ */ jsx1252("div", { className: "flex justify-center items-center w-full h-full bg-blue-700 group-data-[state=off]:bg-transparent", children: /* @__PURE__ */ jsx1252(
|
|
53847
|
+
CheckIcon,
|
|
53848
|
+
{
|
|
53849
|
+
size: 10,
|
|
53850
|
+
className: "text-white group-data-[state=off]:text-transparent"
|
|
53851
|
+
}
|
|
53852
|
+
) })
|
|
53853
|
+
}
|
|
53854
|
+
)
|
|
53855
|
+
]
|
|
53856
|
+
})
|
|
53857
|
+
);
|
|
53858
|
+
});
|
|
53859
|
+
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
53860
|
+
|
|
53726
53861
|
// src/components/Tooltip/Tooltip.tsx
|
|
53727
|
-
import * as
|
|
53862
|
+
import * as React27 from "react";
|
|
53728
53863
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
53729
|
-
import { jsx as
|
|
53864
|
+
import { jsx as jsx1253 } from "react/jsx-runtime";
|
|
53730
53865
|
var TooltipProvider = (_a) => {
|
|
53731
53866
|
var _b = _a, {
|
|
53732
53867
|
delayDuration = 0
|
|
53733
53868
|
} = _b, props = __objRest(_b, [
|
|
53734
53869
|
"delayDuration"
|
|
53735
53870
|
]);
|
|
53736
|
-
return /* @__PURE__ */
|
|
53871
|
+
return /* @__PURE__ */ jsx1253(TooltipPrimitive.Provider, __spreadValues({ delayDuration }, props));
|
|
53737
53872
|
};
|
|
53738
53873
|
var Tooltip = TooltipPrimitive.Root;
|
|
53739
53874
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
53740
|
-
var TooltipContent =
|
|
53875
|
+
var TooltipContent = React27.forwardRef((_a, ref) => {
|
|
53741
53876
|
var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
|
|
53742
|
-
return /* @__PURE__ */
|
|
53877
|
+
return /* @__PURE__ */ jsx1253(
|
|
53743
53878
|
TooltipPrimitive.Content,
|
|
53744
53879
|
__spreadValues({
|
|
53745
53880
|
ref,
|
|
@@ -54729,6 +54864,8 @@ export {
|
|
|
54729
54864
|
QrCode1Icon,
|
|
54730
54865
|
QrCode2Icon,
|
|
54731
54866
|
QrCodeIcon,
|
|
54867
|
+
RadioGroup2 as RadioGroup,
|
|
54868
|
+
RadioGroupItem,
|
|
54732
54869
|
ReceiptCheckIcon,
|
|
54733
54870
|
ReceiptIcon,
|
|
54734
54871
|
Recording1Icon,
|
|
@@ -54962,6 +55099,8 @@ export {
|
|
|
54962
55099
|
Toggle2RightIcon,
|
|
54963
55100
|
Toggle3LeftIcon,
|
|
54964
55101
|
Toggle3RightIcon,
|
|
55102
|
+
ToggleGroup,
|
|
55103
|
+
ToggleGroupItem,
|
|
54965
55104
|
Tool1Icon,
|
|
54966
55105
|
Tool2Icon,
|
|
54967
55106
|
Tooltip,
|