@nearform/quantum 1.7.2 → 1.8.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/{chunk-MJFCAXIN.mjs → chunk-GTI4HTES.mjs} +21 -1
- package/dist/chunk-GTI4HTES.mjs.map +1 -0
- package/dist/colors/index.js +20 -0
- package/dist/colors/index.js.map +1 -1
- package/dist/colors/index.mjs +1 -1
- package/dist/global.css +33 -3
- package/dist/global.css.map +1 -1
- package/dist/index.d.mts +21 -1
- package/dist/index.d.ts +21 -1
- package/dist/index.js +379 -223
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +368 -232
- package/dist/index.mjs.map +1 -1
- package/dist/tailwind-plugin.js +20 -0
- package/dist/tailwind-plugin.js.map +1 -1
- package/dist/tailwind-plugin.mjs +1 -1
- package/package.json +2 -1
- package/dist/chunk-MJFCAXIN.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colors_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GTI4HTES.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__export,
|
|
6
6
|
__objRest,
|
|
@@ -86,6 +86,7 @@ __export(index_exports, {
|
|
|
86
86
|
SelectTrigger: () => SelectTrigger,
|
|
87
87
|
SelectValue: () => SelectValue,
|
|
88
88
|
SelectableCard: () => SelectableCard,
|
|
89
|
+
Slider: () => Slider,
|
|
89
90
|
SortAndShow: () => SortAndShow,
|
|
90
91
|
SortAndShowControl: () => SortAndShowControl,
|
|
91
92
|
SplitButton: () => SplitButton,
|
|
@@ -1388,9 +1389,9 @@ var cardVariants = cva11(
|
|
|
1388
1389
|
variants: {
|
|
1389
1390
|
variant: {
|
|
1390
1391
|
outline: [
|
|
1391
|
-
"bg-background",
|
|
1392
|
+
"bg-background-surface",
|
|
1392
1393
|
"border-border",
|
|
1393
|
-
"dark:bg-
|
|
1394
|
+
"dark:bg-background-surface-dark",
|
|
1394
1395
|
"dark:border-grey-700"
|
|
1395
1396
|
],
|
|
1396
1397
|
filled: [
|
|
@@ -3042,7 +3043,7 @@ var ModalContent = React23.forwardRef((_a, ref) => {
|
|
|
3042
3043
|
__spreadProps(__spreadValues({
|
|
3043
3044
|
ref,
|
|
3044
3045
|
className: cn(
|
|
3045
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-6 shadow-lg bg-background dark:bg-
|
|
3046
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-6 shadow-lg bg-background-surface dark:bg-background-surface-dark duration-200 sm:rounded-lg",
|
|
3046
3047
|
className
|
|
3047
3048
|
)
|
|
3048
3049
|
}, props), {
|
|
@@ -3179,7 +3180,7 @@ var PageHeaderContext = React24.createContext("md");
|
|
|
3179
3180
|
var pageHeaderVariants = cva20(
|
|
3180
3181
|
[
|
|
3181
3182
|
"flex flex-wrap items-center justify-between gap-x-6 gap-y-2",
|
|
3182
|
-
"rounded-lg bg-background dark:bg-background-dark",
|
|
3183
|
+
"rounded-lg bg-background-surface dark:bg-background-surface-dark",
|
|
3183
3184
|
"text-foreground dark:text-foreground-dark"
|
|
3184
3185
|
],
|
|
3185
3186
|
{
|
|
@@ -3575,7 +3576,7 @@ var popoverVariants = cva23([
|
|
|
3575
3576
|
"z-50",
|
|
3576
3577
|
"border border-2 border-border-subtle dark:border-border-dark",
|
|
3577
3578
|
"rounded-lg",
|
|
3578
|
-
"bg-background dark:bg-background-dark",
|
|
3579
|
+
"bg-background-surface dark:bg-background-surface-dark",
|
|
3579
3580
|
"text-foreground text-sm font-normal dark:text-white",
|
|
3580
3581
|
"shadow",
|
|
3581
3582
|
"outline-hidden",
|
|
@@ -3910,7 +3911,7 @@ var contentVariants = cva25([
|
|
|
3910
3911
|
"relative",
|
|
3911
3912
|
"z-50",
|
|
3912
3913
|
"min-w-[8rem]",
|
|
3913
|
-
"bg-background",
|
|
3914
|
+
"bg-background-surface",
|
|
3914
3915
|
"rounded-lg",
|
|
3915
3916
|
"border border-[2px]",
|
|
3916
3917
|
"border-border-subtle",
|
|
@@ -3920,7 +3921,7 @@ var contentVariants = cva25([
|
|
|
3920
3921
|
"data-[side=left]:slide-in-from-right-2",
|
|
3921
3922
|
"data-[side=right]:slide-in-from-left-2",
|
|
3922
3923
|
"data-[side=top]:slide-in-from-bottom-2",
|
|
3923
|
-
"dark:bg-background-dark",
|
|
3924
|
+
"dark:bg-background-surface-dark",
|
|
3924
3925
|
"dark:border-border-subtle-dark",
|
|
3925
3926
|
"dark:text-foreground-dark"
|
|
3926
3927
|
]);
|
|
@@ -4028,29 +4029,160 @@ var SelectSeparator = React30.forwardRef((_a, ref) => {
|
|
|
4028
4029
|
});
|
|
4029
4030
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
4030
4031
|
|
|
4031
|
-
// src/components/
|
|
4032
|
+
// src/components/Slider/index.tsx
|
|
4032
4033
|
import * as React31 from "react";
|
|
4033
|
-
import * as
|
|
4034
|
+
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
4035
|
+
import { cva as cva26 } from "class-variance-authority";
|
|
4034
4036
|
import { jsx as jsx33, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4035
|
-
var
|
|
4037
|
+
var trackVariants = cva26([
|
|
4038
|
+
[
|
|
4039
|
+
"relative",
|
|
4040
|
+
"grow",
|
|
4041
|
+
"h-1.5",
|
|
4042
|
+
"w-full",
|
|
4043
|
+
"overflow-hidden",
|
|
4044
|
+
"rounded-full",
|
|
4045
|
+
"bg-grey-200"
|
|
4046
|
+
],
|
|
4047
|
+
["dark:bg-grey-600"]
|
|
4048
|
+
]);
|
|
4049
|
+
var rangeVariants = cva26([
|
|
4050
|
+
["absolute", "h-full", "rounded-full", "bg-accent"],
|
|
4051
|
+
["dark:bg-accent-dark"]
|
|
4052
|
+
]);
|
|
4053
|
+
var thumbVariants = cva26([
|
|
4054
|
+
[
|
|
4055
|
+
"block",
|
|
4056
|
+
"h-4",
|
|
4057
|
+
"w-4",
|
|
4058
|
+
"rounded-full",
|
|
4059
|
+
"bg-accent",
|
|
4060
|
+
"border-2",
|
|
4061
|
+
"border-white",
|
|
4062
|
+
"shadow-sm",
|
|
4063
|
+
"transition-colors",
|
|
4064
|
+
"focus-visible:outline-hidden",
|
|
4065
|
+
"focus-visible:shadow-brandGreen",
|
|
4066
|
+
"disabled:pointer-events-none",
|
|
4067
|
+
"disabled:bg-grey-300"
|
|
4068
|
+
],
|
|
4069
|
+
[
|
|
4070
|
+
"dark:bg-accent-dark",
|
|
4071
|
+
"dark:border-grey-900",
|
|
4072
|
+
"dark:focus-visible:shadow-brandGreen10",
|
|
4073
|
+
"dark:disabled:bg-grey-300"
|
|
4074
|
+
]
|
|
4075
|
+
]);
|
|
4076
|
+
var endLabelVariants = cva26([
|
|
4077
|
+
["text-sm", "text-foreground-muted", "tabular-nums"],
|
|
4078
|
+
["dark:text-foreground-muted-dark"]
|
|
4079
|
+
]);
|
|
4080
|
+
var labelVariants2 = cva26([
|
|
4081
|
+
["text-sm", "font-medium", "leading-normal", "text-foreground"],
|
|
4082
|
+
["dark:text-foreground-inverse"]
|
|
4083
|
+
]);
|
|
4084
|
+
var hintVariants = cva26([
|
|
4085
|
+
["text-xs", "font-semibold", "text-foreground-muted"],
|
|
4086
|
+
["dark:text-foreground-muted-dark"]
|
|
4087
|
+
]);
|
|
4088
|
+
var Slider = React31.forwardRef(
|
|
4089
|
+
(_a, ref) => {
|
|
4090
|
+
var _b = _a, {
|
|
4091
|
+
className,
|
|
4092
|
+
"aria-label": ariaLabel,
|
|
4093
|
+
"aria-labelledby": ariaLabelledBy,
|
|
4094
|
+
label,
|
|
4095
|
+
hintText,
|
|
4096
|
+
minLabel,
|
|
4097
|
+
maxLabel,
|
|
4098
|
+
endLabelPosition = "inline"
|
|
4099
|
+
} = _b, props = __objRest(_b, [
|
|
4100
|
+
"className",
|
|
4101
|
+
"aria-label",
|
|
4102
|
+
"aria-labelledby",
|
|
4103
|
+
"label",
|
|
4104
|
+
"hintText",
|
|
4105
|
+
"minLabel",
|
|
4106
|
+
"maxLabel",
|
|
4107
|
+
"endLabelPosition"
|
|
4108
|
+
]);
|
|
4109
|
+
var _a2, _b2;
|
|
4110
|
+
const generatedId = React31.useId();
|
|
4111
|
+
const labelId = label ? `${generatedId}-label` : void 0;
|
|
4112
|
+
const thumbLabelledBy = ariaLabelledBy != null ? ariaLabelledBy : labelId;
|
|
4113
|
+
const hasEndLabels = minLabel != null || maxLabel != null;
|
|
4114
|
+
const slider = /* @__PURE__ */ jsxs23(
|
|
4115
|
+
SliderPrimitive.Root,
|
|
4116
|
+
__spreadProps(__spreadValues({
|
|
4117
|
+
ref,
|
|
4118
|
+
className: cn(
|
|
4119
|
+
"relative flex w-full touch-none select-none items-center",
|
|
4120
|
+
"data-[disabled]:opacity-50"
|
|
4121
|
+
)
|
|
4122
|
+
}, props), {
|
|
4123
|
+
children: [
|
|
4124
|
+
/* @__PURE__ */ jsx33(SliderPrimitive.Track, { className: cn(trackVariants()), children: /* @__PURE__ */ jsx33(SliderPrimitive.Range, { className: cn(rangeVariants()) }) }),
|
|
4125
|
+
((_b2 = (_a2 = props.value) != null ? _a2 : props.defaultValue) != null ? _b2 : [0]).map((_, i, arr) => {
|
|
4126
|
+
const suffix = arr.length > 1 ? i === 0 ? " (minimum)" : " (maximum)" : "";
|
|
4127
|
+
return /* @__PURE__ */ jsx33(
|
|
4128
|
+
SliderPrimitive.Thumb,
|
|
4129
|
+
{
|
|
4130
|
+
className: cn(thumbVariants()),
|
|
4131
|
+
"aria-label": !thumbLabelledBy ? `${ariaLabel != null ? ariaLabel : ""}${suffix}` : void 0,
|
|
4132
|
+
"aria-labelledby": thumbLabelledBy
|
|
4133
|
+
},
|
|
4134
|
+
i
|
|
4135
|
+
);
|
|
4136
|
+
})
|
|
4137
|
+
]
|
|
4138
|
+
})
|
|
4139
|
+
);
|
|
4140
|
+
const track = hasEndLabels ? endLabelPosition === "below" ? /* @__PURE__ */ jsxs23("div", { className: "flex w-full flex-col gap-1", children: [
|
|
4141
|
+
slider,
|
|
4142
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex justify-between", children: [
|
|
4143
|
+
/* @__PURE__ */ jsx33("span", { className: cn(endLabelVariants()), children: minLabel != null ? minLabel : "" }),
|
|
4144
|
+
/* @__PURE__ */ jsx33("span", { className: cn(endLabelVariants()), children: maxLabel != null ? maxLabel : "" })
|
|
4145
|
+
] })
|
|
4146
|
+
] }) : /* @__PURE__ */ jsxs23("div", { className: "flex w-full items-center gap-3", children: [
|
|
4147
|
+
minLabel != null && /* @__PURE__ */ jsx33("span", { className: cn(endLabelVariants()), children: minLabel }),
|
|
4148
|
+
slider,
|
|
4149
|
+
maxLabel != null && /* @__PURE__ */ jsx33("span", { className: cn(endLabelVariants()), children: maxLabel })
|
|
4150
|
+
] }) : slider;
|
|
4151
|
+
if (!label) return /* @__PURE__ */ jsx33("div", { className: cn("w-full", className), children: track });
|
|
4152
|
+
return /* @__PURE__ */ jsxs23("div", { className: cn("flex w-full flex-col gap-2", className), children: [
|
|
4153
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex flex-col", children: [
|
|
4154
|
+
/* @__PURE__ */ jsx33("span", { id: labelId, className: cn(labelVariants2()), children: label }),
|
|
4155
|
+
hintText && /* @__PURE__ */ jsx33("span", { className: cn(hintVariants()), children: hintText })
|
|
4156
|
+
] }),
|
|
4157
|
+
track
|
|
4158
|
+
] });
|
|
4159
|
+
}
|
|
4160
|
+
);
|
|
4161
|
+
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
4162
|
+
|
|
4163
|
+
// src/components/SortAndShow/index.tsx
|
|
4164
|
+
import * as React32 from "react";
|
|
4165
|
+
import * as SelectPrimitive2 from "@radix-ui/react-select";
|
|
4166
|
+
import { jsx as jsx34, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
4167
|
+
var SortAndShow = React32.forwardRef((_a, ref) => {
|
|
4036
4168
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4037
|
-
return /* @__PURE__ */
|
|
4169
|
+
return /* @__PURE__ */ jsx34(
|
|
4038
4170
|
"div",
|
|
4039
4171
|
__spreadValues({
|
|
4040
4172
|
ref,
|
|
4041
4173
|
className: cn(
|
|
4042
4174
|
"flex flex-wrap items-center gap-x-6 gap-y-2 px-4 py-3",
|
|
4043
|
-
"rounded-lg bg-background dark:bg-background-dark",
|
|
4175
|
+
"rounded-lg bg-background-surface dark:bg-background-surface-dark",
|
|
4044
4176
|
className
|
|
4045
4177
|
)
|
|
4046
4178
|
}, props)
|
|
4047
4179
|
);
|
|
4048
4180
|
});
|
|
4049
4181
|
SortAndShow.displayName = "SortAndShow";
|
|
4050
|
-
var SortAndShowControl =
|
|
4182
|
+
var SortAndShowControl = React32.forwardRef((_a, ref) => {
|
|
4051
4183
|
var _b = _a, { label, options, className } = _b, props = __objRest(_b, ["label", "options", "className"]);
|
|
4052
|
-
const labelId =
|
|
4053
|
-
return /* @__PURE__ */
|
|
4184
|
+
const labelId = React32.useId();
|
|
4185
|
+
return /* @__PURE__ */ jsxs24(
|
|
4054
4186
|
"div",
|
|
4055
4187
|
{
|
|
4056
4188
|
className: cn(
|
|
@@ -4058,7 +4190,7 @@ var SortAndShowControl = React31.forwardRef((_a, ref) => {
|
|
|
4058
4190
|
className
|
|
4059
4191
|
),
|
|
4060
4192
|
children: [
|
|
4061
|
-
/* @__PURE__ */
|
|
4193
|
+
/* @__PURE__ */ jsx34(
|
|
4062
4194
|
"span",
|
|
4063
4195
|
{
|
|
4064
4196
|
id: labelId,
|
|
@@ -4066,8 +4198,8 @@ var SortAndShowControl = React31.forwardRef((_a, ref) => {
|
|
|
4066
4198
|
children: label
|
|
4067
4199
|
}
|
|
4068
4200
|
),
|
|
4069
|
-
/* @__PURE__ */
|
|
4070
|
-
/* @__PURE__ */
|
|
4201
|
+
/* @__PURE__ */ jsxs24(SelectPrimitive2.Root, __spreadProps(__spreadValues({}, props), { children: [
|
|
4202
|
+
/* @__PURE__ */ jsxs24(
|
|
4071
4203
|
SelectPrimitive2.Trigger,
|
|
4072
4204
|
{
|
|
4073
4205
|
ref,
|
|
@@ -4082,12 +4214,12 @@ var SortAndShowControl = React31.forwardRef((_a, ref) => {
|
|
|
4082
4214
|
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
4083
4215
|
),
|
|
4084
4216
|
children: [
|
|
4085
|
-
/* @__PURE__ */
|
|
4086
|
-
/* @__PURE__ */
|
|
4217
|
+
/* @__PURE__ */ jsx34(SelectPrimitive2.Value, {}),
|
|
4218
|
+
/* @__PURE__ */ jsx34(SelectPrimitive2.Icon, { asChild: true, children: /* @__PURE__ */ jsx34(assets_exports.BsChevronDown, { className: "h-2.5 w-2.5 shrink-0" }) })
|
|
4087
4219
|
]
|
|
4088
4220
|
}
|
|
4089
4221
|
),
|
|
4090
|
-
/* @__PURE__ */
|
|
4222
|
+
/* @__PURE__ */ jsx34(SelectContent, { align: "start", children: options.map((option) => /* @__PURE__ */ jsx34(
|
|
4091
4223
|
SelectItem,
|
|
4092
4224
|
{
|
|
4093
4225
|
value: option.value,
|
|
@@ -4105,11 +4237,11 @@ var SortAndShowControl = React31.forwardRef((_a, ref) => {
|
|
|
4105
4237
|
SortAndShowControl.displayName = "SortAndShowControl";
|
|
4106
4238
|
|
|
4107
4239
|
// src/components/SplitButton/index.tsx
|
|
4108
|
-
import * as
|
|
4240
|
+
import * as React33 from "react";
|
|
4109
4241
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
4110
|
-
import { cva as
|
|
4111
|
-
import { jsx as
|
|
4112
|
-
var splitButtonVariants =
|
|
4242
|
+
import { cva as cva27 } from "class-variance-authority";
|
|
4243
|
+
import { jsx as jsx35, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
4244
|
+
var splitButtonVariants = cva27(
|
|
4113
4245
|
[
|
|
4114
4246
|
"inline-flex",
|
|
4115
4247
|
"items-stretch",
|
|
@@ -4139,7 +4271,7 @@ var splitButtonVariants = cva26(
|
|
|
4139
4271
|
}
|
|
4140
4272
|
}
|
|
4141
4273
|
);
|
|
4142
|
-
var splitButtonSegmentVariants =
|
|
4274
|
+
var splitButtonSegmentVariants = cva27(
|
|
4143
4275
|
[
|
|
4144
4276
|
"relative",
|
|
4145
4277
|
"inline-flex",
|
|
@@ -4224,23 +4356,23 @@ var splitButtonSegmentVariants = cva26(
|
|
|
4224
4356
|
}
|
|
4225
4357
|
}
|
|
4226
4358
|
);
|
|
4227
|
-
var splitButtonMenuVariants =
|
|
4359
|
+
var splitButtonMenuVariants = cva27([
|
|
4228
4360
|
"z-50",
|
|
4229
4361
|
"min-w-40",
|
|
4230
4362
|
"p-1",
|
|
4231
4363
|
"rounded-lg",
|
|
4232
4364
|
"border-2",
|
|
4233
4365
|
"border-border-subtle",
|
|
4234
|
-
"bg-background",
|
|
4366
|
+
"bg-background-surface",
|
|
4235
4367
|
"text-sm",
|
|
4236
4368
|
"text-foreground",
|
|
4237
4369
|
"shadow",
|
|
4238
4370
|
"outline-hidden",
|
|
4239
4371
|
"dark:border-border-dark",
|
|
4240
|
-
"dark:bg-background-dark",
|
|
4372
|
+
"dark:bg-background-surface-dark",
|
|
4241
4373
|
"dark:text-foreground-dark"
|
|
4242
4374
|
]);
|
|
4243
|
-
var splitButtonItemVariants =
|
|
4375
|
+
var splitButtonItemVariants = cva27([
|
|
4244
4376
|
"flex",
|
|
4245
4377
|
"items-center",
|
|
4246
4378
|
"gap-2",
|
|
@@ -4256,7 +4388,7 @@ var splitButtonItemVariants = cva26([
|
|
|
4256
4388
|
"data-[disabled]:text-foreground-subtle",
|
|
4257
4389
|
"dark:data-[disabled]:text-foreground-subtle-dark"
|
|
4258
4390
|
]);
|
|
4259
|
-
var SplitButton =
|
|
4391
|
+
var SplitButton = React33.forwardRef(
|
|
4260
4392
|
(_a, ref) => {
|
|
4261
4393
|
var _b = _a, {
|
|
4262
4394
|
className,
|
|
@@ -4287,7 +4419,7 @@ var SplitButton = React32.forwardRef(
|
|
|
4287
4419
|
"disabled",
|
|
4288
4420
|
"type"
|
|
4289
4421
|
]);
|
|
4290
|
-
return /* @__PURE__ */
|
|
4422
|
+
return /* @__PURE__ */ jsxs25(
|
|
4291
4423
|
DropdownMenuPrimitive.Root,
|
|
4292
4424
|
{
|
|
4293
4425
|
open,
|
|
@@ -4295,8 +4427,8 @@ var SplitButton = React32.forwardRef(
|
|
|
4295
4427
|
onOpenChange,
|
|
4296
4428
|
modal: false,
|
|
4297
4429
|
children: [
|
|
4298
|
-
/* @__PURE__ */
|
|
4299
|
-
/* @__PURE__ */
|
|
4430
|
+
/* @__PURE__ */ jsxs25("div", { className: cn(splitButtonVariants({ variant }), className), children: [
|
|
4431
|
+
/* @__PURE__ */ jsx35(
|
|
4300
4432
|
"button",
|
|
4301
4433
|
__spreadProps(__spreadValues({
|
|
4302
4434
|
ref,
|
|
@@ -4311,7 +4443,7 @@ var SplitButton = React32.forwardRef(
|
|
|
4311
4443
|
children: label
|
|
4312
4444
|
})
|
|
4313
4445
|
),
|
|
4314
|
-
/* @__PURE__ */
|
|
4446
|
+
/* @__PURE__ */ jsx35(
|
|
4315
4447
|
DropdownMenuPrimitive.Trigger,
|
|
4316
4448
|
{
|
|
4317
4449
|
disabled,
|
|
@@ -4321,11 +4453,11 @@ var SplitButton = React32.forwardRef(
|
|
|
4321
4453
|
size,
|
|
4322
4454
|
segment: "trigger"
|
|
4323
4455
|
}),
|
|
4324
|
-
children: /* @__PURE__ */
|
|
4456
|
+
children: /* @__PURE__ */ jsx35(assets_exports.BsChevronDown, { "aria-hidden": "true", className: "h-3 w-3" })
|
|
4325
4457
|
}
|
|
4326
4458
|
)
|
|
4327
4459
|
] }),
|
|
4328
|
-
/* @__PURE__ */
|
|
4460
|
+
/* @__PURE__ */ jsx35(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx35(
|
|
4329
4461
|
DropdownMenuPrimitive.Content,
|
|
4330
4462
|
{
|
|
4331
4463
|
align,
|
|
@@ -4340,9 +4472,9 @@ var SplitButton = React32.forwardRef(
|
|
|
4340
4472
|
}
|
|
4341
4473
|
);
|
|
4342
4474
|
SplitButton.displayName = "SplitButton";
|
|
4343
|
-
var SplitButtonItem =
|
|
4475
|
+
var SplitButtonItem = React33.forwardRef((_a, ref) => {
|
|
4344
4476
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4345
|
-
return /* @__PURE__ */
|
|
4477
|
+
return /* @__PURE__ */ jsx35(
|
|
4346
4478
|
DropdownMenuPrimitive.Item,
|
|
4347
4479
|
__spreadValues({
|
|
4348
4480
|
ref,
|
|
@@ -4351,9 +4483,9 @@ var SplitButtonItem = React32.forwardRef((_a, ref) => {
|
|
|
4351
4483
|
);
|
|
4352
4484
|
});
|
|
4353
4485
|
SplitButtonItem.displayName = "SplitButtonItem";
|
|
4354
|
-
var SplitButtonSeparator =
|
|
4486
|
+
var SplitButtonSeparator = React33.forwardRef((_a, ref) => {
|
|
4355
4487
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4356
|
-
return /* @__PURE__ */
|
|
4488
|
+
return /* @__PURE__ */ jsx35(
|
|
4357
4489
|
DropdownMenuPrimitive.Separator,
|
|
4358
4490
|
__spreadValues({
|
|
4359
4491
|
ref,
|
|
@@ -4367,11 +4499,11 @@ var SplitButtonSeparator = React32.forwardRef((_a, ref) => {
|
|
|
4367
4499
|
SplitButtonSeparator.displayName = "SplitButtonSeparator";
|
|
4368
4500
|
|
|
4369
4501
|
// src/components/Stats/index.tsx
|
|
4370
|
-
import * as
|
|
4371
|
-
import { jsx as
|
|
4372
|
-
var Stats =
|
|
4502
|
+
import * as React34 from "react";
|
|
4503
|
+
import { jsx as jsx36, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
4504
|
+
var Stats = React34.forwardRef((_a, ref) => {
|
|
4373
4505
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4374
|
-
return /* @__PURE__ */
|
|
4506
|
+
return /* @__PURE__ */ jsx36(
|
|
4375
4507
|
"dl",
|
|
4376
4508
|
__spreadValues({
|
|
4377
4509
|
ref,
|
|
@@ -4380,10 +4512,10 @@ var Stats = React33.forwardRef((_a, ref) => {
|
|
|
4380
4512
|
);
|
|
4381
4513
|
});
|
|
4382
4514
|
Stats.displayName = "Stats";
|
|
4383
|
-
var Stat =
|
|
4515
|
+
var Stat = React34.forwardRef(
|
|
4384
4516
|
(_a, ref) => {
|
|
4385
4517
|
var _b = _a, { className, label, value, icon: Icon3 } = _b, props = __objRest(_b, ["className", "label", "value", "icon"]);
|
|
4386
|
-
return /* @__PURE__ */
|
|
4518
|
+
return /* @__PURE__ */ jsxs26(
|
|
4387
4519
|
"div",
|
|
4388
4520
|
__spreadProps(__spreadValues({
|
|
4389
4521
|
ref,
|
|
@@ -4394,11 +4526,11 @@ var Stat = React33.forwardRef(
|
|
|
4394
4526
|
)
|
|
4395
4527
|
}, props), {
|
|
4396
4528
|
children: [
|
|
4397
|
-
/* @__PURE__ */
|
|
4398
|
-
Icon3 ? /* @__PURE__ */
|
|
4529
|
+
/* @__PURE__ */ jsxs26("dt", { className: "inline-flex items-center gap-1 text-foreground-muted dark:text-foreground-muted-dark", children: [
|
|
4530
|
+
Icon3 ? /* @__PURE__ */ jsx36(Icon3, { className: "h-3 w-3 shrink-0", "aria-hidden": "true" }) : null,
|
|
4399
4531
|
label
|
|
4400
4532
|
] }),
|
|
4401
|
-
/* @__PURE__ */
|
|
4533
|
+
/* @__PURE__ */ jsx36("dd", { className: "font-semibold text-foreground dark:text-foreground-dark", children: value })
|
|
4402
4534
|
]
|
|
4403
4535
|
})
|
|
4404
4536
|
);
|
|
@@ -4407,13 +4539,13 @@ var Stat = React33.forwardRef(
|
|
|
4407
4539
|
Stat.displayName = "Stat";
|
|
4408
4540
|
|
|
4409
4541
|
// src/components/Stepper/index.tsx
|
|
4410
|
-
import * as
|
|
4411
|
-
import { cva as
|
|
4542
|
+
import * as React36 from "react";
|
|
4543
|
+
import { cva as cva30 } from "class-variance-authority";
|
|
4412
4544
|
|
|
4413
4545
|
// src/components/StepsIndicator/Step.tsx
|
|
4414
|
-
import { cva as
|
|
4415
|
-
import { jsx as
|
|
4416
|
-
var stepVariant =
|
|
4546
|
+
import { cva as cva28 } from "class-variance-authority";
|
|
4547
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
4548
|
+
var stepVariant = cva28([
|
|
4417
4549
|
"text-inherit",
|
|
4418
4550
|
"fill-current",
|
|
4419
4551
|
"text-accent-alt",
|
|
@@ -4426,7 +4558,7 @@ var stepVariant = cva27([
|
|
|
4426
4558
|
"dark:data-[selected=true]:text-accent-dark"
|
|
4427
4559
|
]);
|
|
4428
4560
|
var Step = ({ selected, className }) => {
|
|
4429
|
-
return /* @__PURE__ */
|
|
4561
|
+
return /* @__PURE__ */ jsx37(
|
|
4430
4562
|
assets_exports.BsCircleFill,
|
|
4431
4563
|
{
|
|
4432
4564
|
size: "8",
|
|
@@ -4438,16 +4570,16 @@ var Step = ({ selected, className }) => {
|
|
|
4438
4570
|
};
|
|
4439
4571
|
|
|
4440
4572
|
// src/components/StepsIndicator/StepsIndicator.tsx
|
|
4441
|
-
import * as
|
|
4442
|
-
import { cva as
|
|
4443
|
-
import { jsx as
|
|
4444
|
-
var stepsVariant =
|
|
4573
|
+
import * as React35 from "react";
|
|
4574
|
+
import { cva as cva29 } from "class-variance-authority";
|
|
4575
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
4576
|
+
var stepsVariant = cva29([
|
|
4445
4577
|
"flex",
|
|
4446
4578
|
"text-accent-alt",
|
|
4447
4579
|
"space-x-1 ",
|
|
4448
4580
|
"content-center items-center"
|
|
4449
4581
|
]);
|
|
4450
|
-
var stepButtonVariant =
|
|
4582
|
+
var stepButtonVariant = cva29([
|
|
4451
4583
|
"flex h-6 w-6 items-center justify-center m-0",
|
|
4452
4584
|
"rounded-full",
|
|
4453
4585
|
"outline-hidden",
|
|
@@ -4455,7 +4587,7 @@ var stepButtonVariant = cva28([
|
|
|
4455
4587
|
"focus-visible:outline-offset-1",
|
|
4456
4588
|
"focus-visible:outline-current"
|
|
4457
4589
|
]);
|
|
4458
|
-
var StepsIndicator =
|
|
4590
|
+
var StepsIndicator = React35.forwardRef(
|
|
4459
4591
|
({
|
|
4460
4592
|
name = "",
|
|
4461
4593
|
selectedIndex = 0,
|
|
@@ -4467,7 +4599,7 @@ var StepsIndicator = React34.forwardRef(
|
|
|
4467
4599
|
}, ref) => {
|
|
4468
4600
|
const Steps = Array(length).fill(null).map((_, i) => {
|
|
4469
4601
|
const selected = i === selectedIndex;
|
|
4470
|
-
return /* @__PURE__ */
|
|
4602
|
+
return /* @__PURE__ */ jsx38(
|
|
4471
4603
|
"button",
|
|
4472
4604
|
{
|
|
4473
4605
|
type: "button",
|
|
@@ -4475,12 +4607,12 @@ var StepsIndicator = React34.forwardRef(
|
|
|
4475
4607
|
"aria-current": selected ? "step" : void 0,
|
|
4476
4608
|
className: stepButtonVariant(),
|
|
4477
4609
|
onClick: () => onClick == null ? void 0 : onClick(i),
|
|
4478
|
-
children: /* @__PURE__ */
|
|
4610
|
+
children: /* @__PURE__ */ jsx38(Step, { selected: selected ? "true" : "false" })
|
|
4479
4611
|
},
|
|
4480
4612
|
`${i}-step-${name}`
|
|
4481
4613
|
);
|
|
4482
4614
|
});
|
|
4483
|
-
return /* @__PURE__ */
|
|
4615
|
+
return /* @__PURE__ */ jsx38(
|
|
4484
4616
|
"div",
|
|
4485
4617
|
__spreadProps(__spreadValues({
|
|
4486
4618
|
ref,
|
|
@@ -4496,14 +4628,14 @@ var StepsIndicator = React34.forwardRef(
|
|
|
4496
4628
|
StepsIndicator.displayName = "StepsIndicator";
|
|
4497
4629
|
|
|
4498
4630
|
// src/components/Stepper/index.tsx
|
|
4499
|
-
import { jsx as
|
|
4500
|
-
var StepperItemContext =
|
|
4631
|
+
import { jsx as jsx39, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
4632
|
+
var StepperItemContext = React36.createContext(
|
|
4501
4633
|
null
|
|
4502
4634
|
);
|
|
4503
|
-
var flattenSteps = (children, keyPrefix = "") =>
|
|
4504
|
-
if (!
|
|
4635
|
+
var flattenSteps = (children, keyPrefix = "") => React36.Children.toArray(children).flatMap((child) => {
|
|
4636
|
+
if (!React36.isValidElement(child)) return [];
|
|
4505
4637
|
const key = `${keyPrefix}${child.key}`;
|
|
4506
|
-
if (child.type ===
|
|
4638
|
+
if (child.type === React36.Fragment) {
|
|
4507
4639
|
return flattenSteps(
|
|
4508
4640
|
child.props.children,
|
|
4509
4641
|
key
|
|
@@ -4511,7 +4643,7 @@ var flattenSteps = (children, keyPrefix = "") => React35.Children.toArray(childr
|
|
|
4511
4643
|
}
|
|
4512
4644
|
return [{ key, element: child }];
|
|
4513
4645
|
});
|
|
4514
|
-
var Stepper =
|
|
4646
|
+
var Stepper = React36.forwardRef(
|
|
4515
4647
|
(_a, ref) => {
|
|
4516
4648
|
var _b = _a, { className, currentStep = 0, children } = _b, props = __objRest(_b, ["className", "currentStep", "children"]);
|
|
4517
4649
|
const items = flattenSteps(children);
|
|
@@ -4519,14 +4651,14 @@ var Stepper = React35.forwardRef(
|
|
|
4519
4651
|
Number.isFinite(currentStep) ? Math.max(0, Math.floor(currentStep)) : 0,
|
|
4520
4652
|
Math.max(0, items.length - 1)
|
|
4521
4653
|
);
|
|
4522
|
-
return /* @__PURE__ */
|
|
4654
|
+
return /* @__PURE__ */ jsx39(
|
|
4523
4655
|
"ol",
|
|
4524
4656
|
__spreadProps(__spreadValues({
|
|
4525
4657
|
ref,
|
|
4526
4658
|
role: "list",
|
|
4527
4659
|
className: cn("flex min-w-0 items-center gap-2", className)
|
|
4528
4660
|
}, props), {
|
|
4529
|
-
children: items.map(({ key, element }, index) => /* @__PURE__ */
|
|
4661
|
+
children: items.map(({ key, element }, index) => /* @__PURE__ */ jsx39(
|
|
4530
4662
|
StepperItemContext.Provider,
|
|
4531
4663
|
{
|
|
4532
4664
|
value: {
|
|
@@ -4543,7 +4675,7 @@ var Stepper = React35.forwardRef(
|
|
|
4543
4675
|
}
|
|
4544
4676
|
);
|
|
4545
4677
|
Stepper.displayName = "Stepper";
|
|
4546
|
-
var stepperNumberVariants =
|
|
4678
|
+
var stepperNumberVariants = cva30(
|
|
4547
4679
|
[
|
|
4548
4680
|
"flex h-6 w-6 shrink-0 items-center justify-center rounded-sm",
|
|
4549
4681
|
"text-[10px] font-semibold leading-none"
|
|
@@ -4567,7 +4699,7 @@ var stepperNumberVariants = cva29(
|
|
|
4567
4699
|
}
|
|
4568
4700
|
}
|
|
4569
4701
|
);
|
|
4570
|
-
var stepperTitleVariants =
|
|
4702
|
+
var stepperTitleVariants = cva30("text-xs leading-normal", {
|
|
4571
4703
|
variants: {
|
|
4572
4704
|
status: {
|
|
4573
4705
|
complete: "text-foreground dark:text-foreground-dark",
|
|
@@ -4576,15 +4708,15 @@ var stepperTitleVariants = cva29("text-xs leading-normal", {
|
|
|
4576
4708
|
}
|
|
4577
4709
|
}
|
|
4578
4710
|
});
|
|
4579
|
-
var StepperItem =
|
|
4711
|
+
var StepperItem = React36.forwardRef(
|
|
4580
4712
|
(_a, ref) => {
|
|
4581
4713
|
var _b = _a, { className, title, description } = _b, props = __objRest(_b, ["className", "title", "description"]);
|
|
4582
|
-
const context =
|
|
4714
|
+
const context = React36.useContext(StepperItemContext);
|
|
4583
4715
|
if (!context) {
|
|
4584
4716
|
throw new Error("StepperItem must be rendered inside a Stepper");
|
|
4585
4717
|
}
|
|
4586
4718
|
const { step, status, last } = context;
|
|
4587
|
-
return /* @__PURE__ */
|
|
4719
|
+
return /* @__PURE__ */ jsxs27(
|
|
4588
4720
|
"li",
|
|
4589
4721
|
__spreadProps(__spreadValues({
|
|
4590
4722
|
ref,
|
|
@@ -4597,12 +4729,12 @@ var StepperItem = React35.forwardRef(
|
|
|
4597
4729
|
)
|
|
4598
4730
|
}, props), {
|
|
4599
4731
|
children: [
|
|
4600
|
-
/* @__PURE__ */
|
|
4601
|
-
/* @__PURE__ */
|
|
4602
|
-
/* @__PURE__ */
|
|
4603
|
-
description != null && description !== false ? /* @__PURE__ */
|
|
4732
|
+
/* @__PURE__ */ jsx39("span", { "aria-hidden": "true", className: stepperNumberVariants({ status }), children: step }),
|
|
4733
|
+
/* @__PURE__ */ jsxs27("span", { className: "flex min-w-0 flex-col break-words", children: [
|
|
4734
|
+
/* @__PURE__ */ jsx39("span", { className: stepperTitleVariants({ status }), children: title }),
|
|
4735
|
+
description != null && description !== false ? /* @__PURE__ */ jsx39("span", { className: "text-[10px] leading-normal text-foreground-muted dark:text-foreground-muted-dark", children: description }) : null
|
|
4604
4736
|
] }),
|
|
4605
|
-
last ? null : /* @__PURE__ */
|
|
4737
|
+
last ? null : /* @__PURE__ */ jsx39(
|
|
4606
4738
|
"span",
|
|
4607
4739
|
{
|
|
4608
4740
|
"aria-hidden": "true",
|
|
@@ -4615,7 +4747,7 @@ var StepperItem = React35.forwardRef(
|
|
|
4615
4747
|
}
|
|
4616
4748
|
);
|
|
4617
4749
|
StepperItem.displayName = "StepperItem";
|
|
4618
|
-
var stepperNavButtonVariants =
|
|
4750
|
+
var stepperNavButtonVariants = cva30([
|
|
4619
4751
|
"inline-flex min-h-6 items-center gap-1.5 rounded-sm px-2 py-1",
|
|
4620
4752
|
"text-xs leading-normal",
|
|
4621
4753
|
"text-foreground dark:text-foreground-dark",
|
|
@@ -4626,7 +4758,7 @@ var stepperNavButtonVariants = cva29([
|
|
|
4626
4758
|
"disabled:cursor-not-allowed disabled:no-underline",
|
|
4627
4759
|
"disabled:text-foreground-subtle dark:disabled:text-foreground-subtle-dark"
|
|
4628
4760
|
]);
|
|
4629
|
-
var StepperNav =
|
|
4761
|
+
var StepperNav = React36.forwardRef(
|
|
4630
4762
|
(_a, ref) => {
|
|
4631
4763
|
var _b = _a, {
|
|
4632
4764
|
className,
|
|
@@ -4651,7 +4783,7 @@ var StepperNav = React35.forwardRef(
|
|
|
4651
4783
|
]);
|
|
4652
4784
|
const total = Number.isFinite(totalSteps) ? Math.max(0, Math.floor(totalSteps)) : 0;
|
|
4653
4785
|
const step = Math.min(Math.max(0, currentStep), Math.max(0, total - 1));
|
|
4654
|
-
return /* @__PURE__ */
|
|
4786
|
+
return /* @__PURE__ */ jsxs27(
|
|
4655
4787
|
"div",
|
|
4656
4788
|
__spreadProps(__spreadValues({
|
|
4657
4789
|
ref,
|
|
@@ -4660,7 +4792,7 @@ var StepperNav = React35.forwardRef(
|
|
|
4660
4792
|
className: cn("flex items-center gap-6", className)
|
|
4661
4793
|
}, props), {
|
|
4662
4794
|
children: [
|
|
4663
|
-
/* @__PURE__ */
|
|
4795
|
+
/* @__PURE__ */ jsxs27(
|
|
4664
4796
|
"button",
|
|
4665
4797
|
{
|
|
4666
4798
|
type: "button",
|
|
@@ -4668,12 +4800,12 @@ var StepperNav = React35.forwardRef(
|
|
|
4668
4800
|
disabled: total === 0 || step <= 0,
|
|
4669
4801
|
onClick: () => onStepChange == null ? void 0 : onStepChange(step - 1),
|
|
4670
4802
|
children: [
|
|
4671
|
-
/* @__PURE__ */
|
|
4803
|
+
/* @__PURE__ */ jsx39(assets_exports.BsChevronLeft, { className: "h-3 w-3 shrink-0", "aria-hidden": "true" }),
|
|
4672
4804
|
backLabel
|
|
4673
4805
|
]
|
|
4674
4806
|
}
|
|
4675
4807
|
),
|
|
4676
|
-
total === 0 ? null : indicator === "dots" ? /* @__PURE__ */
|
|
4808
|
+
total === 0 ? null : indicator === "dots" ? /* @__PURE__ */ jsx39(
|
|
4677
4809
|
StepsIndicator,
|
|
4678
4810
|
{
|
|
4679
4811
|
length: total,
|
|
@@ -4681,22 +4813,22 @@ var StepperNav = React35.forwardRef(
|
|
|
4681
4813
|
onClick: onStepChange,
|
|
4682
4814
|
stepLabel
|
|
4683
4815
|
}
|
|
4684
|
-
) : /* @__PURE__ */
|
|
4816
|
+
) : /* @__PURE__ */ jsxs27(
|
|
4685
4817
|
"span",
|
|
4686
4818
|
{
|
|
4687
4819
|
"aria-live": "polite",
|
|
4688
4820
|
className: "text-xs leading-normal text-foreground dark:text-foreground-dark",
|
|
4689
4821
|
children: [
|
|
4690
|
-
/* @__PURE__ */
|
|
4822
|
+
/* @__PURE__ */ jsxs27("span", { "aria-hidden": "true", children: [
|
|
4691
4823
|
step + 1,
|
|
4692
4824
|
"/",
|
|
4693
4825
|
total
|
|
4694
4826
|
] }),
|
|
4695
|
-
/* @__PURE__ */
|
|
4827
|
+
/* @__PURE__ */ jsx39("span", { className: "sr-only", children: stepLabel(step + 1, total) })
|
|
4696
4828
|
]
|
|
4697
4829
|
}
|
|
4698
4830
|
),
|
|
4699
|
-
/* @__PURE__ */
|
|
4831
|
+
/* @__PURE__ */ jsxs27(
|
|
4700
4832
|
"button",
|
|
4701
4833
|
{
|
|
4702
4834
|
type: "button",
|
|
@@ -4705,7 +4837,7 @@ var StepperNav = React35.forwardRef(
|
|
|
4705
4837
|
onClick: () => onStepChange == null ? void 0 : onStepChange(step + 1),
|
|
4706
4838
|
children: [
|
|
4707
4839
|
nextLabel,
|
|
4708
|
-
/* @__PURE__ */
|
|
4840
|
+
/* @__PURE__ */ jsx39(assets_exports.BsChevronRight, { className: "h-3 w-3 shrink-0", "aria-hidden": "true" })
|
|
4709
4841
|
]
|
|
4710
4842
|
}
|
|
4711
4843
|
)
|
|
@@ -4717,11 +4849,11 @@ var StepperNav = React35.forwardRef(
|
|
|
4717
4849
|
StepperNav.displayName = "StepperNav";
|
|
4718
4850
|
|
|
4719
4851
|
// src/components/Subnav/index.tsx
|
|
4720
|
-
import * as
|
|
4852
|
+
import * as React37 from "react";
|
|
4721
4853
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
4722
|
-
import { jsx as
|
|
4723
|
-
var SubnavContext =
|
|
4724
|
-
var Subnav =
|
|
4854
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
4855
|
+
var SubnavContext = React37.createContext(void 0);
|
|
4856
|
+
var Subnav = React37.forwardRef(
|
|
4725
4857
|
(_a, ref) => {
|
|
4726
4858
|
var _b = _a, {
|
|
4727
4859
|
className,
|
|
@@ -4732,8 +4864,8 @@ var Subnav = React36.forwardRef(
|
|
|
4732
4864
|
"aria-label",
|
|
4733
4865
|
"aria-labelledby"
|
|
4734
4866
|
]);
|
|
4735
|
-
const [headingId, setHeadingId] =
|
|
4736
|
-
return /* @__PURE__ */
|
|
4867
|
+
const [headingId, setHeadingId] = React37.useState();
|
|
4868
|
+
return /* @__PURE__ */ jsx40(SubnavContext.Provider, { value: setHeadingId, children: /* @__PURE__ */ jsx40(
|
|
4737
4869
|
"nav",
|
|
4738
4870
|
__spreadValues({
|
|
4739
4871
|
ref,
|
|
@@ -4741,7 +4873,7 @@ var Subnav = React36.forwardRef(
|
|
|
4741
4873
|
"aria-labelledby": ariaLabelledBy != null ? ariaLabelledBy : ariaLabel ? void 0 : headingId,
|
|
4742
4874
|
className: cn(
|
|
4743
4875
|
"flex flex-col gap-4",
|
|
4744
|
-
"bg-background dark:bg-background-dark",
|
|
4876
|
+
"bg-background-surface dark:bg-background-surface-dark",
|
|
4745
4877
|
"text-foreground dark:text-foreground-dark",
|
|
4746
4878
|
className
|
|
4747
4879
|
)
|
|
@@ -4750,20 +4882,20 @@ var Subnav = React36.forwardRef(
|
|
|
4750
4882
|
}
|
|
4751
4883
|
);
|
|
4752
4884
|
Subnav.displayName = "Subnav";
|
|
4753
|
-
var SubnavHeading =
|
|
4885
|
+
var SubnavHeading = React37.forwardRef(
|
|
4754
4886
|
(_a, ref) => {
|
|
4755
4887
|
var _b = _a, { className, asChild = false, id, children } = _b, props = __objRest(_b, ["className", "asChild", "id", "children"]);
|
|
4756
4888
|
var _a2;
|
|
4757
|
-
const generatedId =
|
|
4758
|
-
const childId = asChild &&
|
|
4889
|
+
const generatedId = React37.useId();
|
|
4890
|
+
const childId = asChild && React37.isValidElement(children) ? children.props.id : void 0;
|
|
4759
4891
|
const headingId = (_a2 = childId != null ? childId : id) != null ? _a2 : generatedId;
|
|
4760
|
-
const setHeadingId =
|
|
4761
|
-
|
|
4892
|
+
const setHeadingId = React37.useContext(SubnavContext);
|
|
4893
|
+
React37.useEffect(() => {
|
|
4762
4894
|
setHeadingId == null ? void 0 : setHeadingId(headingId);
|
|
4763
4895
|
return () => setHeadingId == null ? void 0 : setHeadingId(void 0);
|
|
4764
4896
|
}, [setHeadingId, headingId]);
|
|
4765
4897
|
const Comp = asChild ? Slot4 : "h2";
|
|
4766
|
-
return /* @__PURE__ */
|
|
4898
|
+
return /* @__PURE__ */ jsx40(
|
|
4767
4899
|
Comp,
|
|
4768
4900
|
__spreadProps(__spreadValues({
|
|
4769
4901
|
ref,
|
|
@@ -4776,9 +4908,9 @@ var SubnavHeading = React36.forwardRef(
|
|
|
4776
4908
|
}
|
|
4777
4909
|
);
|
|
4778
4910
|
SubnavHeading.displayName = "SubnavHeading";
|
|
4779
|
-
var SubnavList =
|
|
4911
|
+
var SubnavList = React37.forwardRef((_a, ref) => {
|
|
4780
4912
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4781
|
-
return /* @__PURE__ */
|
|
4913
|
+
return /* @__PURE__ */ jsx40(
|
|
4782
4914
|
"ul",
|
|
4783
4915
|
__spreadValues({
|
|
4784
4916
|
ref,
|
|
@@ -4787,9 +4919,9 @@ var SubnavList = React36.forwardRef((_a, ref) => {
|
|
|
4787
4919
|
);
|
|
4788
4920
|
});
|
|
4789
4921
|
SubnavList.displayName = "SubnavList";
|
|
4790
|
-
var SubnavItem =
|
|
4922
|
+
var SubnavItem = React37.forwardRef((props, ref) => /* @__PURE__ */ jsx40("li", __spreadValues({ ref }, props)));
|
|
4791
4923
|
SubnavItem.displayName = "SubnavItem";
|
|
4792
|
-
var SubnavLink =
|
|
4924
|
+
var SubnavLink = React37.forwardRef(
|
|
4793
4925
|
(_a, ref) => {
|
|
4794
4926
|
var _b = _a, {
|
|
4795
4927
|
className,
|
|
@@ -4803,7 +4935,7 @@ var SubnavLink = React36.forwardRef(
|
|
|
4803
4935
|
"aria-current"
|
|
4804
4936
|
]);
|
|
4805
4937
|
const Comp = asChild ? Slot4 : "a";
|
|
4806
|
-
return /* @__PURE__ */
|
|
4938
|
+
return /* @__PURE__ */ jsx40(
|
|
4807
4939
|
Comp,
|
|
4808
4940
|
__spreadValues({
|
|
4809
4941
|
ref,
|
|
@@ -4825,20 +4957,23 @@ var SubnavLink = React36.forwardRef(
|
|
|
4825
4957
|
SubnavLink.displayName = "SubnavLink";
|
|
4826
4958
|
|
|
4827
4959
|
// src/components/Table/index.tsx
|
|
4828
|
-
import * as
|
|
4829
|
-
import { cva as
|
|
4830
|
-
import { jsx as
|
|
4831
|
-
var tableBodyVariants =
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4960
|
+
import * as React38 from "react";
|
|
4961
|
+
import { cva as cva31 } from "class-variance-authority";
|
|
4962
|
+
import { jsx as jsx41, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
4963
|
+
var tableBodyVariants = cva31(
|
|
4964
|
+
"bg-background-surface dark:bg-background-surface-dark",
|
|
4965
|
+
{
|
|
4966
|
+
variants: {
|
|
4967
|
+
variant: {
|
|
4968
|
+
zebra: [
|
|
4969
|
+
"[:where(&>*:nth-child(even))]:bg-background-subtle",
|
|
4970
|
+
"dark:[:where(&>*:nth-child(even))]:bg-background-subtle-dark"
|
|
4971
|
+
]
|
|
4972
|
+
}
|
|
4838
4973
|
}
|
|
4839
4974
|
}
|
|
4840
|
-
|
|
4841
|
-
var alignVariants2 =
|
|
4975
|
+
);
|
|
4976
|
+
var alignVariants2 = cva31("", {
|
|
4842
4977
|
variants: {
|
|
4843
4978
|
align: {
|
|
4844
4979
|
left: "text-left",
|
|
@@ -4853,14 +4988,14 @@ var ariaSortFor = (direction) => {
|
|
|
4853
4988
|
return void 0;
|
|
4854
4989
|
};
|
|
4855
4990
|
var SortIcon = ({ direction }) => {
|
|
4856
|
-
if (direction === "asc") return /* @__PURE__ */
|
|
4857
|
-
if (direction === "desc") return /* @__PURE__ */
|
|
4858
|
-
return /* @__PURE__ */
|
|
4991
|
+
if (direction === "asc") return /* @__PURE__ */ jsx41(assets_exports.BsArrowUp, { "aria-hidden": "true" });
|
|
4992
|
+
if (direction === "desc") return /* @__PURE__ */ jsx41(assets_exports.BsArrowDown, { "aria-hidden": "true" });
|
|
4993
|
+
return /* @__PURE__ */ jsx41(assets_exports.BsArrowDownUp, { "aria-hidden": "true" });
|
|
4859
4994
|
};
|
|
4860
|
-
var Table =
|
|
4995
|
+
var Table = React38.forwardRef(
|
|
4861
4996
|
(_a, ref) => {
|
|
4862
4997
|
var _b = _a, { className, containerClassName } = _b, props = __objRest(_b, ["className", "containerClassName"]);
|
|
4863
|
-
return /* @__PURE__ */
|
|
4998
|
+
return /* @__PURE__ */ jsx41(
|
|
4864
4999
|
"div",
|
|
4865
5000
|
{
|
|
4866
5001
|
tabIndex: 0,
|
|
@@ -4869,7 +5004,7 @@ var Table = React37.forwardRef(
|
|
|
4869
5004
|
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-current",
|
|
4870
5005
|
containerClassName
|
|
4871
5006
|
),
|
|
4872
|
-
children: /* @__PURE__ */
|
|
5007
|
+
children: /* @__PURE__ */ jsx41(
|
|
4873
5008
|
"table",
|
|
4874
5009
|
__spreadValues({
|
|
4875
5010
|
ref,
|
|
@@ -4884,9 +5019,9 @@ var Table = React37.forwardRef(
|
|
|
4884
5019
|
}
|
|
4885
5020
|
);
|
|
4886
5021
|
Table.displayName = "Table";
|
|
4887
|
-
var TableHeader =
|
|
5022
|
+
var TableHeader = React38.forwardRef((_a, ref) => {
|
|
4888
5023
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4889
|
-
return /* @__PURE__ */
|
|
5024
|
+
return /* @__PURE__ */ jsx41(
|
|
4890
5025
|
"thead",
|
|
4891
5026
|
__spreadValues({
|
|
4892
5027
|
ref,
|
|
@@ -4898,10 +5033,10 @@ var TableHeader = React37.forwardRef((_a, ref) => {
|
|
|
4898
5033
|
);
|
|
4899
5034
|
});
|
|
4900
5035
|
TableHeader.displayName = "TableHeader";
|
|
4901
|
-
var TableHead =
|
|
5036
|
+
var TableHead = React38.forwardRef(
|
|
4902
5037
|
(_a, ref) => {
|
|
4903
5038
|
var _b = _a, { className, align, sortDirection, onSort, children } = _b, props = __objRest(_b, ["className", "align", "sortDirection", "onSort", "children"]);
|
|
4904
|
-
return /* @__PURE__ */
|
|
5039
|
+
return /* @__PURE__ */ jsx41(
|
|
4905
5040
|
"th",
|
|
4906
5041
|
__spreadProps(__spreadValues({
|
|
4907
5042
|
ref,
|
|
@@ -4912,7 +5047,7 @@ var TableHead = React37.forwardRef(
|
|
|
4912
5047
|
className
|
|
4913
5048
|
)
|
|
4914
5049
|
}, props), {
|
|
4915
|
-
children: onSort ? /* @__PURE__ */
|
|
5050
|
+
children: onSort ? /* @__PURE__ */ jsxs28(
|
|
4916
5051
|
"button",
|
|
4917
5052
|
{
|
|
4918
5053
|
type: "button",
|
|
@@ -4925,7 +5060,7 @@ var TableHead = React37.forwardRef(
|
|
|
4925
5060
|
),
|
|
4926
5061
|
children: [
|
|
4927
5062
|
children,
|
|
4928
|
-
/* @__PURE__ */
|
|
5063
|
+
/* @__PURE__ */ jsx41(SortIcon, { direction: sortDirection })
|
|
4929
5064
|
]
|
|
4930
5065
|
}
|
|
4931
5066
|
) : children
|
|
@@ -4934,10 +5069,10 @@ var TableHead = React37.forwardRef(
|
|
|
4934
5069
|
}
|
|
4935
5070
|
);
|
|
4936
5071
|
TableHead.displayName = "TableHead";
|
|
4937
|
-
var TableBody =
|
|
5072
|
+
var TableBody = React38.forwardRef(
|
|
4938
5073
|
(_a, ref) => {
|
|
4939
5074
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
4940
|
-
return /* @__PURE__ */
|
|
5075
|
+
return /* @__PURE__ */ jsx41(
|
|
4941
5076
|
"tbody",
|
|
4942
5077
|
__spreadValues({
|
|
4943
5078
|
ref,
|
|
@@ -4947,10 +5082,10 @@ var TableBody = React37.forwardRef(
|
|
|
4947
5082
|
}
|
|
4948
5083
|
);
|
|
4949
5084
|
TableBody.displayName = "TableBody";
|
|
4950
|
-
var TableRow =
|
|
5085
|
+
var TableRow = React38.forwardRef(
|
|
4951
5086
|
(_a, ref) => {
|
|
4952
5087
|
var _b = _a, { className, selected } = _b, props = __objRest(_b, ["className", "selected"]);
|
|
4953
|
-
return /* @__PURE__ */
|
|
5088
|
+
return /* @__PURE__ */ jsx41(
|
|
4954
5089
|
"tr",
|
|
4955
5090
|
__spreadValues({
|
|
4956
5091
|
ref,
|
|
@@ -4966,10 +5101,10 @@ var TableRow = React37.forwardRef(
|
|
|
4966
5101
|
}
|
|
4967
5102
|
);
|
|
4968
5103
|
TableRow.displayName = "TableRow";
|
|
4969
|
-
var TableCell =
|
|
5104
|
+
var TableCell = React38.forwardRef(
|
|
4970
5105
|
(_a, ref) => {
|
|
4971
5106
|
var _b = _a, { className, align } = _b, props = __objRest(_b, ["className", "align"]);
|
|
4972
|
-
return /* @__PURE__ */
|
|
5107
|
+
return /* @__PURE__ */ jsx41(
|
|
4973
5108
|
"td",
|
|
4974
5109
|
__spreadValues({
|
|
4975
5110
|
ref,
|
|
@@ -4979,10 +5114,10 @@ var TableCell = React37.forwardRef(
|
|
|
4979
5114
|
}
|
|
4980
5115
|
);
|
|
4981
5116
|
TableCell.displayName = "TableCell";
|
|
4982
|
-
var TableEmpty =
|
|
5117
|
+
var TableEmpty = React38.forwardRef(
|
|
4983
5118
|
(_a, ref) => {
|
|
4984
5119
|
var _b = _a, { className, children = "No results." } = _b, props = __objRest(_b, ["className", "children"]);
|
|
4985
|
-
return /* @__PURE__ */
|
|
5120
|
+
return /* @__PURE__ */ jsx41(TableRow, { children: /* @__PURE__ */ jsx41(
|
|
4986
5121
|
TableCell,
|
|
4987
5122
|
__spreadProps(__spreadValues({
|
|
4988
5123
|
ref,
|
|
@@ -4998,14 +5133,14 @@ var TableEmpty = React37.forwardRef(
|
|
|
4998
5133
|
}
|
|
4999
5134
|
);
|
|
5000
5135
|
TableEmpty.displayName = "TableEmpty";
|
|
5001
|
-
var TableCaption =
|
|
5136
|
+
var TableCaption = React38.forwardRef((_a, ref) => {
|
|
5002
5137
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5003
|
-
return /* @__PURE__ */
|
|
5138
|
+
return /* @__PURE__ */ jsx41("caption", __spreadValues({ ref, className: cn("mt-4", className) }, props));
|
|
5004
5139
|
});
|
|
5005
5140
|
TableCaption.displayName = "TableCaption";
|
|
5006
|
-
var TableFooter =
|
|
5141
|
+
var TableFooter = React38.forwardRef((_a, ref) => {
|
|
5007
5142
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5008
|
-
return /* @__PURE__ */
|
|
5143
|
+
return /* @__PURE__ */ jsx41(
|
|
5009
5144
|
"tfoot",
|
|
5010
5145
|
__spreadValues({
|
|
5011
5146
|
ref,
|
|
@@ -5019,18 +5154,18 @@ var TableFooter = React37.forwardRef((_a, ref) => {
|
|
|
5019
5154
|
TableFooter.displayName = "TableFooter";
|
|
5020
5155
|
|
|
5021
5156
|
// src/components/Tabs/index.tsx
|
|
5022
|
-
import * as
|
|
5157
|
+
import * as React39 from "react";
|
|
5023
5158
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
5024
5159
|
import { Slottable as Slottable3 } from "@radix-ui/react-slot";
|
|
5025
|
-
import { cva as
|
|
5026
|
-
import { jsx as
|
|
5027
|
-
var tabsVariants =
|
|
5160
|
+
import { cva as cva32 } from "class-variance-authority";
|
|
5161
|
+
import { jsx as jsx42, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
5162
|
+
var tabsVariants = cva32([
|
|
5028
5163
|
"flex",
|
|
5029
5164
|
"gap-4",
|
|
5030
5165
|
"data-[orientation=horizontal]:flex-col",
|
|
5031
5166
|
"data-[orientation=vertical]:flex-row"
|
|
5032
5167
|
]);
|
|
5033
|
-
var tabsListVariants =
|
|
5168
|
+
var tabsListVariants = cva32([
|
|
5034
5169
|
"inline-flex",
|
|
5035
5170
|
"gap-1",
|
|
5036
5171
|
"data-[orientation=horizontal]:flex-row",
|
|
@@ -5038,7 +5173,7 @@ var tabsListVariants = cva31([
|
|
|
5038
5173
|
"data-[orientation=vertical]:flex-col",
|
|
5039
5174
|
"data-[orientation=vertical]:items-stretch"
|
|
5040
5175
|
]);
|
|
5041
|
-
var tabsTriggerVariants =
|
|
5176
|
+
var tabsTriggerVariants = cva32(
|
|
5042
5177
|
[
|
|
5043
5178
|
"group",
|
|
5044
5179
|
"inline-flex",
|
|
@@ -5081,7 +5216,7 @@ var tabsTriggerVariants = cva31(
|
|
|
5081
5216
|
}
|
|
5082
5217
|
}
|
|
5083
5218
|
);
|
|
5084
|
-
var tabsCountVariants =
|
|
5219
|
+
var tabsCountVariants = cva32(
|
|
5085
5220
|
[
|
|
5086
5221
|
"inline-flex",
|
|
5087
5222
|
"items-center",
|
|
@@ -5109,16 +5244,16 @@ var tabsCountVariants = cva31(
|
|
|
5109
5244
|
}
|
|
5110
5245
|
}
|
|
5111
5246
|
);
|
|
5112
|
-
var tabsContentVariants =
|
|
5247
|
+
var tabsContentVariants = cva32([
|
|
5113
5248
|
"flex-1",
|
|
5114
5249
|
"rounded-lg",
|
|
5115
5250
|
"outline-hidden",
|
|
5116
5251
|
"focus-visible:shadow-brandGreen",
|
|
5117
5252
|
"dark:focus-visible:shadow-brandGreen10"
|
|
5118
5253
|
]);
|
|
5119
|
-
var Tabs =
|
|
5254
|
+
var Tabs = React39.forwardRef((_a, ref) => {
|
|
5120
5255
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5121
|
-
return /* @__PURE__ */
|
|
5256
|
+
return /* @__PURE__ */ jsx42(
|
|
5122
5257
|
TabsPrimitive.Root,
|
|
5123
5258
|
__spreadValues({
|
|
5124
5259
|
ref,
|
|
@@ -5127,9 +5262,9 @@ var Tabs = React38.forwardRef((_a, ref) => {
|
|
|
5127
5262
|
);
|
|
5128
5263
|
});
|
|
5129
5264
|
Tabs.displayName = "Tabs";
|
|
5130
|
-
var TabsList =
|
|
5265
|
+
var TabsList = React39.forwardRef((_a, ref) => {
|
|
5131
5266
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5132
|
-
return /* @__PURE__ */
|
|
5267
|
+
return /* @__PURE__ */ jsx42(
|
|
5133
5268
|
TabsPrimitive.List,
|
|
5134
5269
|
__spreadValues({
|
|
5135
5270
|
ref,
|
|
@@ -5138,25 +5273,25 @@ var TabsList = React38.forwardRef((_a, ref) => {
|
|
|
5138
5273
|
);
|
|
5139
5274
|
});
|
|
5140
5275
|
TabsList.displayName = "TabsList";
|
|
5141
|
-
var TabsTrigger =
|
|
5276
|
+
var TabsTrigger = React39.forwardRef((_a, ref) => {
|
|
5142
5277
|
var _b = _a, { className, size, count, children } = _b, props = __objRest(_b, ["className", "size", "count", "children"]);
|
|
5143
|
-
return /* @__PURE__ */
|
|
5278
|
+
return /* @__PURE__ */ jsxs29(
|
|
5144
5279
|
TabsPrimitive.Trigger,
|
|
5145
5280
|
__spreadProps(__spreadValues({
|
|
5146
5281
|
ref,
|
|
5147
5282
|
className: cn(tabsTriggerVariants({ size }), className)
|
|
5148
5283
|
}, props), {
|
|
5149
5284
|
children: [
|
|
5150
|
-
/* @__PURE__ */
|
|
5151
|
-
count != null && typeof count !== "boolean" && /* @__PURE__ */
|
|
5285
|
+
/* @__PURE__ */ jsx42(Slottable3, { children }),
|
|
5286
|
+
count != null && typeof count !== "boolean" && /* @__PURE__ */ jsx42("span", { className: tabsCountVariants({ size }), children: count })
|
|
5152
5287
|
]
|
|
5153
5288
|
})
|
|
5154
5289
|
);
|
|
5155
5290
|
});
|
|
5156
5291
|
TabsTrigger.displayName = "TabsTrigger";
|
|
5157
|
-
var TabsContent =
|
|
5292
|
+
var TabsContent = React39.forwardRef((_a, ref) => {
|
|
5158
5293
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5159
|
-
return /* @__PURE__ */
|
|
5294
|
+
return /* @__PURE__ */ jsx42(
|
|
5160
5295
|
TabsPrimitive.Content,
|
|
5161
5296
|
__spreadValues({
|
|
5162
5297
|
ref,
|
|
@@ -5167,10 +5302,10 @@ var TabsContent = React38.forwardRef((_a, ref) => {
|
|
|
5167
5302
|
TabsContent.displayName = "TabsContent";
|
|
5168
5303
|
|
|
5169
5304
|
// src/components/Textarea/index.tsx
|
|
5170
|
-
import
|
|
5171
|
-
import { cva as
|
|
5172
|
-
import { jsx as
|
|
5173
|
-
var textareaVariants =
|
|
5305
|
+
import React40 from "react";
|
|
5306
|
+
import { cva as cva33 } from "class-variance-authority";
|
|
5307
|
+
import { jsx as jsx43, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
5308
|
+
var textareaVariants = cva33(
|
|
5174
5309
|
[
|
|
5175
5310
|
"flex",
|
|
5176
5311
|
"flex-grow",
|
|
@@ -5234,7 +5369,7 @@ var textareaVariants = cva32(
|
|
|
5234
5369
|
}
|
|
5235
5370
|
}
|
|
5236
5371
|
);
|
|
5237
|
-
var Textarea =
|
|
5372
|
+
var Textarea = React40.forwardRef(
|
|
5238
5373
|
(_a, ref) => {
|
|
5239
5374
|
var _b = _a, {
|
|
5240
5375
|
className,
|
|
@@ -5251,12 +5386,12 @@ var Textarea = React39.forwardRef(
|
|
|
5251
5386
|
"id",
|
|
5252
5387
|
"aria-describedby"
|
|
5253
5388
|
]);
|
|
5254
|
-
const generatedId =
|
|
5389
|
+
const generatedId = React40.useId();
|
|
5255
5390
|
const textareaId = id != null ? id : generatedId;
|
|
5256
5391
|
const helpTextId = `${textareaId}-helptext`;
|
|
5257
5392
|
const describedBy = [ariaDescribedby, helpText ? helpTextId : void 0].filter(Boolean).join(" ") || void 0;
|
|
5258
|
-
return /* @__PURE__ */
|
|
5259
|
-
labelText && /* @__PURE__ */
|
|
5393
|
+
return /* @__PURE__ */ jsxs30("div", { className: "flex flex-col gap-3", children: [
|
|
5394
|
+
labelText && /* @__PURE__ */ jsx43(
|
|
5260
5395
|
"label",
|
|
5261
5396
|
{
|
|
5262
5397
|
id: `${textareaId}-label`,
|
|
@@ -5265,7 +5400,7 @@ var Textarea = React39.forwardRef(
|
|
|
5265
5400
|
children: labelText
|
|
5266
5401
|
}
|
|
5267
5402
|
),
|
|
5268
|
-
/* @__PURE__ */
|
|
5403
|
+
/* @__PURE__ */ jsx43(
|
|
5269
5404
|
"textarea",
|
|
5270
5405
|
__spreadValues({
|
|
5271
5406
|
id: textareaId,
|
|
@@ -5274,7 +5409,7 @@ var Textarea = React39.forwardRef(
|
|
|
5274
5409
|
"aria-describedby": describedBy
|
|
5275
5410
|
}, props)
|
|
5276
5411
|
),
|
|
5277
|
-
helpText && /* @__PURE__ */
|
|
5412
|
+
helpText && /* @__PURE__ */ jsx43(
|
|
5278
5413
|
"span",
|
|
5279
5414
|
{
|
|
5280
5415
|
id: helpTextId,
|
|
@@ -5288,19 +5423,19 @@ var Textarea = React39.forwardRef(
|
|
|
5288
5423
|
Textarea.displayName = "Textarea";
|
|
5289
5424
|
|
|
5290
5425
|
// src/components/Toast/index.tsx
|
|
5291
|
-
import * as
|
|
5426
|
+
import * as React41 from "react";
|
|
5292
5427
|
import * as ToastPrimitive from "@radix-ui/react-toast";
|
|
5293
|
-
import { cva as
|
|
5294
|
-
import { jsx as
|
|
5428
|
+
import { cva as cva34 } from "class-variance-authority";
|
|
5429
|
+
import { jsx as jsx44, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
5295
5430
|
var focusClasses = [
|
|
5296
5431
|
"outline-hidden",
|
|
5297
5432
|
"focus-visible:shadow-brandGreen",
|
|
5298
5433
|
"dark:focus-visible:shadow-brandGreen10"
|
|
5299
5434
|
];
|
|
5300
5435
|
var ToastProvider = ToastPrimitive.Provider;
|
|
5301
|
-
var ToastViewport =
|
|
5436
|
+
var ToastViewport = React41.forwardRef((_a, ref) => {
|
|
5302
5437
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5303
|
-
return /* @__PURE__ */
|
|
5438
|
+
return /* @__PURE__ */ jsx44(
|
|
5304
5439
|
ToastPrimitive.Viewport,
|
|
5305
5440
|
__spreadValues({
|
|
5306
5441
|
ref,
|
|
@@ -5325,7 +5460,7 @@ var ToastViewport = React40.forwardRef((_a, ref) => {
|
|
|
5325
5460
|
);
|
|
5326
5461
|
});
|
|
5327
5462
|
ToastViewport.displayName = ToastPrimitive.Viewport.displayName;
|
|
5328
|
-
var toastVariants =
|
|
5463
|
+
var toastVariants = cva34(
|
|
5329
5464
|
[
|
|
5330
5465
|
"pointer-events-auto",
|
|
5331
5466
|
"grid",
|
|
@@ -5399,11 +5534,11 @@ var toastIcons = {
|
|
|
5399
5534
|
className: "text-blue-600 dark:text-blue-400"
|
|
5400
5535
|
}
|
|
5401
5536
|
};
|
|
5402
|
-
var Toast =
|
|
5537
|
+
var Toast = React41.forwardRef((_a, ref) => {
|
|
5403
5538
|
var _b = _a, { className, variant, icon, type, children } = _b, props = __objRest(_b, ["className", "variant", "icon", "type", "children"]);
|
|
5404
5539
|
const resolved = variant != null ? variant : "info";
|
|
5405
5540
|
const { icon: Icon3, className: iconClassName } = toastIcons[resolved];
|
|
5406
|
-
return /* @__PURE__ */
|
|
5541
|
+
return /* @__PURE__ */ jsxs31(
|
|
5407
5542
|
ToastPrimitive.Root,
|
|
5408
5543
|
__spreadProps(__spreadValues({
|
|
5409
5544
|
ref,
|
|
@@ -5411,7 +5546,7 @@ var Toast = React40.forwardRef((_a, ref) => {
|
|
|
5411
5546
|
className: cn(toastVariants({ variant: resolved }), className)
|
|
5412
5547
|
}, props), {
|
|
5413
5548
|
children: [
|
|
5414
|
-
icon !== null && /* @__PURE__ */
|
|
5549
|
+
icon !== null && /* @__PURE__ */ jsx44(
|
|
5415
5550
|
"span",
|
|
5416
5551
|
{
|
|
5417
5552
|
"aria-hidden": "true",
|
|
@@ -5426,7 +5561,7 @@ var Toast = React40.forwardRef((_a, ref) => {
|
|
|
5426
5561
|
"[&>svg]:w-3",
|
|
5427
5562
|
iconClassName
|
|
5428
5563
|
),
|
|
5429
|
-
children: icon != null ? icon : /* @__PURE__ */
|
|
5564
|
+
children: icon != null ? icon : /* @__PURE__ */ jsx44(Icon3, {})
|
|
5430
5565
|
}
|
|
5431
5566
|
),
|
|
5432
5567
|
children
|
|
@@ -5435,9 +5570,9 @@ var Toast = React40.forwardRef((_a, ref) => {
|
|
|
5435
5570
|
);
|
|
5436
5571
|
});
|
|
5437
5572
|
Toast.displayName = ToastPrimitive.Root.displayName;
|
|
5438
|
-
var ToastTitle =
|
|
5573
|
+
var ToastTitle = React41.forwardRef((_a, ref) => {
|
|
5439
5574
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5440
|
-
return /* @__PURE__ */
|
|
5575
|
+
return /* @__PURE__ */ jsx44(
|
|
5441
5576
|
ToastPrimitive.Title,
|
|
5442
5577
|
__spreadValues({
|
|
5443
5578
|
ref,
|
|
@@ -5446,9 +5581,9 @@ var ToastTitle = React40.forwardRef((_a, ref) => {
|
|
|
5446
5581
|
);
|
|
5447
5582
|
});
|
|
5448
5583
|
ToastTitle.displayName = ToastPrimitive.Title.displayName;
|
|
5449
|
-
var ToastDescription =
|
|
5584
|
+
var ToastDescription = React41.forwardRef((_a, ref) => {
|
|
5450
5585
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5451
|
-
return /* @__PURE__ */
|
|
5586
|
+
return /* @__PURE__ */ jsx44(
|
|
5452
5587
|
ToastPrimitive.Description,
|
|
5453
5588
|
__spreadValues({
|
|
5454
5589
|
ref,
|
|
@@ -5463,9 +5598,9 @@ var ToastDescription = React40.forwardRef((_a, ref) => {
|
|
|
5463
5598
|
);
|
|
5464
5599
|
});
|
|
5465
5600
|
ToastDescription.displayName = ToastPrimitive.Description.displayName;
|
|
5466
|
-
var ToastAction =
|
|
5601
|
+
var ToastAction = React41.forwardRef((_a, ref) => {
|
|
5467
5602
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5468
|
-
return /* @__PURE__ */
|
|
5603
|
+
return /* @__PURE__ */ jsx44(
|
|
5469
5604
|
ToastPrimitive.Action,
|
|
5470
5605
|
__spreadValues({
|
|
5471
5606
|
ref,
|
|
@@ -5487,9 +5622,9 @@ var ToastAction = React40.forwardRef((_a, ref) => {
|
|
|
5487
5622
|
);
|
|
5488
5623
|
});
|
|
5489
5624
|
ToastAction.displayName = ToastPrimitive.Action.displayName;
|
|
5490
|
-
var ToastClose =
|
|
5625
|
+
var ToastClose = React41.forwardRef((_a, ref) => {
|
|
5491
5626
|
var _b = _a, { className, label = "Close", children } = _b, props = __objRest(_b, ["className", "label", "children"]);
|
|
5492
|
-
return /* @__PURE__ */
|
|
5627
|
+
return /* @__PURE__ */ jsx44(
|
|
5493
5628
|
ToastPrimitive.Close,
|
|
5494
5629
|
__spreadProps(__spreadValues({
|
|
5495
5630
|
ref,
|
|
@@ -5514,18 +5649,18 @@ var ToastClose = React40.forwardRef((_a, ref) => {
|
|
|
5514
5649
|
className
|
|
5515
5650
|
)
|
|
5516
5651
|
}, props), {
|
|
5517
|
-
children: children != null ? children : /* @__PURE__ */
|
|
5652
|
+
children: children != null ? children : /* @__PURE__ */ jsx44(assets_exports.BsXLg, { "aria-hidden": "true" })
|
|
5518
5653
|
})
|
|
5519
5654
|
);
|
|
5520
5655
|
});
|
|
5521
5656
|
ToastClose.displayName = ToastPrimitive.Close.displayName;
|
|
5522
5657
|
|
|
5523
5658
|
// src/components/ToggleList/index.tsx
|
|
5524
|
-
import * as
|
|
5525
|
-
import { jsx as
|
|
5526
|
-
var ToggleList =
|
|
5659
|
+
import * as React42 from "react";
|
|
5660
|
+
import { jsx as jsx45, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
5661
|
+
var ToggleList = React42.forwardRef((_a, ref) => {
|
|
5527
5662
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5528
|
-
return /* @__PURE__ */
|
|
5663
|
+
return /* @__PURE__ */ jsx45(
|
|
5529
5664
|
"ul",
|
|
5530
5665
|
__spreadValues({
|
|
5531
5666
|
ref,
|
|
@@ -5535,12 +5670,12 @@ var ToggleList = React41.forwardRef((_a, ref) => {
|
|
|
5535
5670
|
);
|
|
5536
5671
|
});
|
|
5537
5672
|
ToggleList.displayName = "ToggleList";
|
|
5538
|
-
var ToggleListItem =
|
|
5673
|
+
var ToggleListItem = React42.forwardRef(
|
|
5539
5674
|
(_a, ref) => {
|
|
5540
5675
|
var _b = _a, { className, label, onRemove, removeLabel, id, disabled } = _b, props = __objRest(_b, ["className", "label", "onRemove", "removeLabel", "id", "disabled"]);
|
|
5541
|
-
const generatedId =
|
|
5676
|
+
const generatedId = React42.useId();
|
|
5542
5677
|
const switchId = id != null ? id : generatedId;
|
|
5543
|
-
return /* @__PURE__ */
|
|
5678
|
+
return /* @__PURE__ */ jsxs32(
|
|
5544
5679
|
"li",
|
|
5545
5680
|
{
|
|
5546
5681
|
className: cn(
|
|
@@ -5551,8 +5686,8 @@ var ToggleListItem = React41.forwardRef(
|
|
|
5551
5686
|
className
|
|
5552
5687
|
),
|
|
5553
5688
|
children: [
|
|
5554
|
-
/* @__PURE__ */
|
|
5555
|
-
/* @__PURE__ */
|
|
5689
|
+
/* @__PURE__ */ jsx45(Switch, __spreadValues({ ref, id: switchId, disabled }, props)),
|
|
5690
|
+
/* @__PURE__ */ jsx45(
|
|
5556
5691
|
"label",
|
|
5557
5692
|
{
|
|
5558
5693
|
htmlFor: switchId,
|
|
@@ -5563,13 +5698,13 @@ var ToggleListItem = React41.forwardRef(
|
|
|
5563
5698
|
children: label
|
|
5564
5699
|
}
|
|
5565
5700
|
),
|
|
5566
|
-
onRemove && /* @__PURE__ */
|
|
5701
|
+
onRemove && /* @__PURE__ */ jsx45(
|
|
5567
5702
|
IconButton,
|
|
5568
5703
|
{
|
|
5569
5704
|
variant: "tertiary",
|
|
5570
5705
|
size: "xs",
|
|
5571
5706
|
label: removeLabel != null ? removeLabel : typeof label === "string" ? `Remove ${label}` : "Remove",
|
|
5572
|
-
icon: /* @__PURE__ */
|
|
5707
|
+
icon: /* @__PURE__ */ jsx45(assets_exports.BsTrash, {}),
|
|
5573
5708
|
disabled,
|
|
5574
5709
|
onClick: onRemove,
|
|
5575
5710
|
className: "h-7 w-7"
|
|
@@ -5583,11 +5718,11 @@ var ToggleListItem = React41.forwardRef(
|
|
|
5583
5718
|
ToggleListItem.displayName = "ToggleListItem";
|
|
5584
5719
|
|
|
5585
5720
|
// src/components/Tooltip/index.tsx
|
|
5586
|
-
import * as
|
|
5721
|
+
import * as React43 from "react";
|
|
5587
5722
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
5588
|
-
import { cva as
|
|
5589
|
-
import { jsx as
|
|
5590
|
-
var tooltipVariants =
|
|
5723
|
+
import { cva as cva35 } from "class-variance-authority";
|
|
5724
|
+
import { jsx as jsx46, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
5725
|
+
var tooltipVariants = cva35([
|
|
5591
5726
|
[
|
|
5592
5727
|
"fill-accent",
|
|
5593
5728
|
"bg-accent",
|
|
@@ -5606,10 +5741,10 @@ var tooltipVariants = cva34([
|
|
|
5606
5741
|
"dark:fill-accent-dark"
|
|
5607
5742
|
]
|
|
5608
5743
|
]);
|
|
5609
|
-
var Tooltip =
|
|
5610
|
-
return /* @__PURE__ */
|
|
5611
|
-
/* @__PURE__ */
|
|
5612
|
-
/* @__PURE__ */
|
|
5744
|
+
var Tooltip = React43.forwardRef(({ children, side, content, sideOffset }, ref) => {
|
|
5745
|
+
return /* @__PURE__ */ jsx46(TooltipPrimitive.Provider, { children: /* @__PURE__ */ jsxs33(TooltipPrimitive.Root, { delayDuration: 100, children: [
|
|
5746
|
+
/* @__PURE__ */ jsx46(TooltipPrimitive.Trigger, { asChild: React43.isValidElement(children), children }),
|
|
5747
|
+
/* @__PURE__ */ jsxs33(
|
|
5613
5748
|
TooltipPrimitive.Content,
|
|
5614
5749
|
{
|
|
5615
5750
|
side: side != null ? side : "top",
|
|
@@ -5618,7 +5753,7 @@ var Tooltip = React42.forwardRef(({ children, side, content, sideOffset }, ref)
|
|
|
5618
5753
|
ref,
|
|
5619
5754
|
children: [
|
|
5620
5755
|
content,
|
|
5621
|
-
/* @__PURE__ */
|
|
5756
|
+
/* @__PURE__ */ jsx46(TooltipPrimitive.Arrow, { className: "fill-inherit" })
|
|
5622
5757
|
]
|
|
5623
5758
|
}
|
|
5624
5759
|
)
|
|
@@ -5627,10 +5762,10 @@ var Tooltip = React42.forwardRef(({ children, side, content, sideOffset }, ref)
|
|
|
5627
5762
|
Tooltip.displayName = "Tooltip";
|
|
5628
5763
|
|
|
5629
5764
|
// src/components/WebsiteFooter/index.tsx
|
|
5630
|
-
import { cva as
|
|
5631
|
-
import
|
|
5632
|
-
import { jsx as
|
|
5633
|
-
var websiteFooterVariants =
|
|
5765
|
+
import { cva as cva36 } from "class-variance-authority";
|
|
5766
|
+
import React44 from "react";
|
|
5767
|
+
import { jsx as jsx47, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
5768
|
+
var websiteFooterVariants = cva36(
|
|
5634
5769
|
["flex", "flex-col", "w-full", "items-center", "px-16", "py-4"],
|
|
5635
5770
|
{
|
|
5636
5771
|
variants: {
|
|
@@ -5646,7 +5781,7 @@ var websiteFooterVariants = cva35(
|
|
|
5646
5781
|
defaultVariants: { size: "standard" }
|
|
5647
5782
|
}
|
|
5648
5783
|
);
|
|
5649
|
-
var footerStatementVariants =
|
|
5784
|
+
var footerStatementVariants = cva36(
|
|
5650
5785
|
[
|
|
5651
5786
|
"flex",
|
|
5652
5787
|
"flex-col",
|
|
@@ -5667,7 +5802,7 @@ var footerStatementVariants = cva35(
|
|
|
5667
5802
|
defaultVariants: { size: "standard" }
|
|
5668
5803
|
}
|
|
5669
5804
|
);
|
|
5670
|
-
var linkRowVariants =
|
|
5805
|
+
var linkRowVariants = cva36([
|
|
5671
5806
|
"flex",
|
|
5672
5807
|
"w-full",
|
|
5673
5808
|
"justify-between",
|
|
@@ -5675,7 +5810,7 @@ var linkRowVariants = cva35([
|
|
|
5675
5810
|
"[&>*]:font-normal",
|
|
5676
5811
|
"[&>*]:text-sm"
|
|
5677
5812
|
]);
|
|
5678
|
-
var linkColumnVariants =
|
|
5813
|
+
var linkColumnVariants = cva36(
|
|
5679
5814
|
[
|
|
5680
5815
|
"flex",
|
|
5681
5816
|
"flex-col",
|
|
@@ -5710,10 +5845,10 @@ var linkColumnVariants = cva35(
|
|
|
5710
5845
|
}
|
|
5711
5846
|
}
|
|
5712
5847
|
);
|
|
5713
|
-
var WebsiteFooter =
|
|
5848
|
+
var WebsiteFooter = React44.forwardRef(
|
|
5714
5849
|
(_a, ref) => {
|
|
5715
5850
|
var _b = _a, { className, size } = _b, props = __objRest(_b, ["className", "size"]);
|
|
5716
|
-
return /* @__PURE__ */
|
|
5851
|
+
return /* @__PURE__ */ jsx47(
|
|
5717
5852
|
"footer",
|
|
5718
5853
|
__spreadProps(__spreadValues({
|
|
5719
5854
|
className: cn(websiteFooterVariants({ size }), className)
|
|
@@ -5723,10 +5858,10 @@ var WebsiteFooter = React43.forwardRef(
|
|
|
5723
5858
|
);
|
|
5724
5859
|
}
|
|
5725
5860
|
);
|
|
5726
|
-
var FooterStatement =
|
|
5861
|
+
var FooterStatement = React44.forwardRef(
|
|
5727
5862
|
(_a, ref) => {
|
|
5728
5863
|
var _b = _a, { className, size } = _b, props = __objRest(_b, ["className", "size"]);
|
|
5729
|
-
return /* @__PURE__ */
|
|
5864
|
+
return /* @__PURE__ */ jsx47("div", { children: /* @__PURE__ */ jsx47(
|
|
5730
5865
|
"div",
|
|
5731
5866
|
__spreadProps(__spreadValues({
|
|
5732
5867
|
className: cn(footerStatementVariants({ size }), className)
|
|
@@ -5736,10 +5871,10 @@ var FooterStatement = React43.forwardRef(
|
|
|
5736
5871
|
) });
|
|
5737
5872
|
}
|
|
5738
5873
|
);
|
|
5739
|
-
var LinkRow =
|
|
5874
|
+
var LinkRow = React44.forwardRef(
|
|
5740
5875
|
(_a, ref) => {
|
|
5741
5876
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5742
|
-
return /* @__PURE__ */
|
|
5877
|
+
return /* @__PURE__ */ jsx47(
|
|
5743
5878
|
"div",
|
|
5744
5879
|
__spreadProps(__spreadValues({
|
|
5745
5880
|
className: cn(linkRowVariants(), className)
|
|
@@ -5749,17 +5884,17 @@ var LinkRow = React43.forwardRef(
|
|
|
5749
5884
|
);
|
|
5750
5885
|
}
|
|
5751
5886
|
);
|
|
5752
|
-
var LinkColumn =
|
|
5887
|
+
var LinkColumn = React44.forwardRef(
|
|
5753
5888
|
(_a, ref) => {
|
|
5754
5889
|
var _b = _a, { className, size, title, children } = _b, props = __objRest(_b, ["className", "size", "title", "children"]);
|
|
5755
|
-
return /* @__PURE__ */
|
|
5890
|
+
return /* @__PURE__ */ jsxs34(
|
|
5756
5891
|
"div",
|
|
5757
5892
|
__spreadProps(__spreadValues({
|
|
5758
5893
|
className: cn(linkColumnVariants({ size }), className)
|
|
5759
5894
|
}, props), {
|
|
5760
5895
|
ref,
|
|
5761
5896
|
children: [
|
|
5762
|
-
title && /* @__PURE__ */
|
|
5897
|
+
title && /* @__PURE__ */ jsx47("div", { children: title }),
|
|
5763
5898
|
children
|
|
5764
5899
|
]
|
|
5765
5900
|
})
|
|
@@ -5844,6 +5979,7 @@ export {
|
|
|
5844
5979
|
SelectTrigger,
|
|
5845
5980
|
SelectValue,
|
|
5846
5981
|
SelectableCard,
|
|
5982
|
+
Slider,
|
|
5847
5983
|
SortAndShow,
|
|
5848
5984
|
SortAndShowControl,
|
|
5849
5985
|
SplitButton,
|