@helpwave/hightide 0.3.0 → 0.4.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 +10 -13
- package/dist/index.d.ts +10 -13
- package/dist/index.js +251 -282
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +251 -282
- package/dist/index.mjs.map +1 -1
- package/dist/style/globals.css +430 -459
- package/dist/style/uncompiled/theme/breakpoints.css +0 -1
- package/dist/style/uncompiled/theme/{colors-component.css → colors/component.css} +1 -2
- package/dist/style/uncompiled/theme/colors/index.css +5 -0
- package/dist/style/uncompiled/theme/{colors-semantic.css → colors/semantic.css} +1 -2
- package/dist/style/uncompiled/theme/colors/utilities.css +65 -0
- package/dist/style/uncompiled/theme/components.css +97 -18
- package/dist/style/uncompiled/theme/index.css +3 -5
- package/dist/style/uncompiled/theme/shadow.css +7 -0
- package/dist/style/uncompiled/utitlity/coloring.css +0 -68
- package/dist/style/uncompiled/utitlity/shadow.css +0 -10
- package/package.json +1 -1
- /package/dist/style/uncompiled/theme/{colors-basic.css → colors/basic.css} +0 -0
- /package/dist/style/uncompiled/theme/{variants.css → colors/variants.css} +0 -0
package/dist/index.js
CHANGED
|
@@ -7491,7 +7491,7 @@ var ButtonUtil = {
|
|
|
7491
7491
|
warning: "warning",
|
|
7492
7492
|
negative: "negative",
|
|
7493
7493
|
neutral: "neutral",
|
|
7494
|
-
none: ""
|
|
7494
|
+
none: "reset-coloring-variables"
|
|
7495
7495
|
}
|
|
7496
7496
|
};
|
|
7497
7497
|
var Button = (0, import_react4.forwardRef)(function SolidButton({
|
|
@@ -8633,7 +8633,6 @@ var DiscardChangesDialog = ({
|
|
|
8633
8633
|
|
|
8634
8634
|
// src/components/user-action/input/Input.tsx
|
|
8635
8635
|
var import_react18 = require("react");
|
|
8636
|
-
var import_clsx11 = __toESM(require("clsx"));
|
|
8637
8636
|
|
|
8638
8637
|
// src/hooks/useDelay.ts
|
|
8639
8638
|
var import_react16 = require("react");
|
|
@@ -8748,8 +8747,6 @@ var Input = (0, import_react18.forwardRef)(function Input2({
|
|
|
8748
8747
|
editCompleteOptions,
|
|
8749
8748
|
disabled = false,
|
|
8750
8749
|
invalid = false,
|
|
8751
|
-
defaultStyle = true,
|
|
8752
|
-
className,
|
|
8753
8750
|
...props
|
|
8754
8751
|
}, forwardedRef) {
|
|
8755
8752
|
const {
|
|
@@ -8772,15 +8769,6 @@ var Input = (0, import_react18.forwardRef)(function Input2({
|
|
|
8772
8769
|
ref: innerRef,
|
|
8773
8770
|
value,
|
|
8774
8771
|
disabled,
|
|
8775
|
-
className: defaultStyle ? (0, import_clsx11.default)(
|
|
8776
|
-
"px-3 py-2 rounded-md text-sm h-10 border-2 border-transparent focus-style-none",
|
|
8777
|
-
{
|
|
8778
|
-
"bg-input-background text-input-text hover:border-primary focus:border-primary": !disabled && !invalid,
|
|
8779
|
-
"bg-negative/20 text-negative hover:border-negative focus-visible:border-negative": !disabled && invalid,
|
|
8780
|
-
"bg-disabled-background text-disabled border-disabled-border": disabled
|
|
8781
|
-
},
|
|
8782
|
-
className
|
|
8783
|
-
) : className,
|
|
8784
8772
|
onKeyDown: (event) => {
|
|
8785
8773
|
props.onKeyDown?.(event);
|
|
8786
8774
|
if (!allowEnterComplete) {
|
|
@@ -8809,6 +8797,10 @@ var Input = (0, import_react18.forwardRef)(function Input2({
|
|
|
8809
8797
|
});
|
|
8810
8798
|
onChangeText?.(value2);
|
|
8811
8799
|
},
|
|
8800
|
+
"data-name": props["data-name"] ?? "input",
|
|
8801
|
+
"data-value": value ? "" : void 0,
|
|
8802
|
+
"data-disabled": disabled ? "" : void 0,
|
|
8803
|
+
"data-invalid": invalid ? "" : void 0,
|
|
8812
8804
|
"aria-invalid": props["aria-invalid"] ?? invalid,
|
|
8813
8805
|
"aria-disabled": props["aria-disabled"] ?? disabled
|
|
8814
8806
|
}
|
|
@@ -8849,7 +8841,7 @@ var InputDialog = ({
|
|
|
8849
8841
|
|
|
8850
8842
|
// src/components/user-action/Select.tsx
|
|
8851
8843
|
var import_react20 = require("react");
|
|
8852
|
-
var
|
|
8844
|
+
var import_clsx12 = __toESM(require("clsx"));
|
|
8853
8845
|
|
|
8854
8846
|
// src/utils/match.ts
|
|
8855
8847
|
var match = (key, values) => {
|
|
@@ -8860,7 +8852,7 @@ var match = (key, values) => {
|
|
|
8860
8852
|
var import_lucide_react4 = require("lucide-react");
|
|
8861
8853
|
|
|
8862
8854
|
// src/components/layout/Chip.tsx
|
|
8863
|
-
var
|
|
8855
|
+
var import_clsx11 = __toESM(require("clsx"));
|
|
8864
8856
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
8865
8857
|
var chipColors = ButtonUtil.colors;
|
|
8866
8858
|
var ChipUtil = {
|
|
@@ -8880,7 +8872,7 @@ var Chip = ({
|
|
|
8880
8872
|
"div",
|
|
8881
8873
|
{
|
|
8882
8874
|
...restProps,
|
|
8883
|
-
className: (0,
|
|
8875
|
+
className: (0, import_clsx11.default)(
|
|
8884
8876
|
`flex-row-0 w-fit font-semibold coloring-solid`,
|
|
8885
8877
|
colorMapping,
|
|
8886
8878
|
{
|
|
@@ -8905,7 +8897,7 @@ var ChipList = ({
|
|
|
8905
8897
|
list,
|
|
8906
8898
|
className = ""
|
|
8907
8899
|
}) => {
|
|
8908
|
-
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: (0,
|
|
8900
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: (0, import_clsx11.default)("flex flex-wrap gap-x-2 gap-y-2", className), children: list.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
8909
8901
|
Chip,
|
|
8910
8902
|
{
|
|
8911
8903
|
...value,
|
|
@@ -9265,7 +9257,7 @@ var SelectOption = (0, import_react20.forwardRef)(
|
|
|
9265
9257
|
"data-highlighted": isHighlighted ? "" : void 0,
|
|
9266
9258
|
"data-selected": isSelected ? "" : void 0,
|
|
9267
9259
|
"data-disabled": disabled ? "" : void 0,
|
|
9268
|
-
className: (0,
|
|
9260
|
+
className: (0, import_clsx12.default)(
|
|
9269
9261
|
"flex-row-1 items-center px-2 py-1 rounded-md",
|
|
9270
9262
|
"data-highlighted:bg-primary/20",
|
|
9271
9263
|
"data-disabled:text-disabled data-disabled:cursor-not-allowed",
|
|
@@ -9291,7 +9283,7 @@ var SelectOption = (0, import_react20.forwardRef)(
|
|
|
9291
9283
|
iconAppearance === "left" && (state.value.length > 0 || config.isMultiSelect) && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
9292
9284
|
import_lucide_react4.CheckIcon,
|
|
9293
9285
|
{
|
|
9294
|
-
className: (0,
|
|
9286
|
+
className: (0, import_clsx12.default)("w-4 h-4", { "opacity-0": !isSelected || disabled }),
|
|
9295
9287
|
"aria-hidden": true
|
|
9296
9288
|
}
|
|
9297
9289
|
),
|
|
@@ -9299,7 +9291,7 @@ var SelectOption = (0, import_react20.forwardRef)(
|
|
|
9299
9291
|
iconAppearance === "right" && (state.value.length > 0 || config.isMultiSelect) && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
9300
9292
|
import_lucide_react4.CheckIcon,
|
|
9301
9293
|
{
|
|
9302
|
-
className: (0,
|
|
9294
|
+
className: (0, import_clsx12.default)("w-4 h-4", { "opacity-0": !isSelected || disabled }),
|
|
9303
9295
|
"aria-hidden": true
|
|
9304
9296
|
}
|
|
9305
9297
|
)
|
|
@@ -9347,19 +9339,8 @@ var SelectButton = (0, import_react20.forwardRef)(function SelectButton2({ place
|
|
|
9347
9339
|
break;
|
|
9348
9340
|
}
|
|
9349
9341
|
},
|
|
9350
|
-
|
|
9351
|
-
|
|
9352
|
-
{
|
|
9353
|
-
"bg-input-background text-placeholder": !hasValue && !disabled && !invalid,
|
|
9354
|
-
"bg-input-background text-input-text": hasValue && !disabled && !invalid,
|
|
9355
|
-
"bg-negative/20": !disabled && invalid,
|
|
9356
|
-
"text-placeholder": !hasValue && !disabled,
|
|
9357
|
-
"text-negative": hasValue && !disabled && invalid,
|
|
9358
|
-
"bg-disabled-background text-disabled": disabled
|
|
9359
|
-
},
|
|
9360
|
-
props.className
|
|
9361
|
-
),
|
|
9362
|
-
"data-placeholder": !hasValue ? "" : void 0,
|
|
9342
|
+
"data-name": props["data-name"] ?? "select-button",
|
|
9343
|
+
"data-value": hasValue ? "" : void 0,
|
|
9363
9344
|
"data-disabled": disabled ? "" : void 0,
|
|
9364
9345
|
"data-invalid": invalid ? "" : void 0,
|
|
9365
9346
|
"aria-invalid": invalid,
|
|
@@ -9368,21 +9349,11 @@ var SelectButton = (0, import_react20.forwardRef)(function SelectButton2({ place
|
|
|
9368
9349
|
"aria-expanded": state.isOpen,
|
|
9369
9350
|
"aria-controls": state.isOpen ? `${state.id}-listbox` : void 0,
|
|
9370
9351
|
children: [
|
|
9371
|
-
hasValue ? selectedDisplay?.(state.value) ?? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: (0,
|
|
9352
|
+
hasValue ? selectedDisplay?.(state.value) ?? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: (0, import_clsx12.default)("flex flex-wrap gap-x-1 gap-y-2"), children: state.selectedOptions.map(({ value, label }, index) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", { className: "flex-row-0", children: [
|
|
9372
9353
|
label,
|
|
9373
9354
|
index < state.value.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: "," })
|
|
9374
9355
|
] }, value)) }) : placeholder ?? translation("clickToSelect"),
|
|
9375
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
9376
|
-
ExpansionIcon,
|
|
9377
|
-
{
|
|
9378
|
-
isExpanded: state.isOpen,
|
|
9379
|
-
className: (0, import_clsx13.default)({
|
|
9380
|
-
"text-input-text": !disabled && !invalid,
|
|
9381
|
-
"text-negative": !disabled && invalid,
|
|
9382
|
-
"text-disabled": disabled
|
|
9383
|
-
})
|
|
9384
|
-
}
|
|
9385
|
-
)
|
|
9356
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ExpansionIcon, { isExpanded: state.isOpen })
|
|
9386
9357
|
]
|
|
9387
9358
|
}
|
|
9388
9359
|
);
|
|
@@ -9403,10 +9374,12 @@ var SelectChipDisplay = (0, import_react20.forwardRef)(function SelectChipDispla
|
|
|
9403
9374
|
{
|
|
9404
9375
|
...props,
|
|
9405
9376
|
ref: innerRef,
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
props.
|
|
9409
|
-
|
|
9377
|
+
onClick: (event) => {
|
|
9378
|
+
toggleOpen();
|
|
9379
|
+
props.onClick?.(event);
|
|
9380
|
+
},
|
|
9381
|
+
"data-name": props["data-name"] ?? "select-button-chips",
|
|
9382
|
+
"data-value": state.value.length > 0 ? "" : void 0,
|
|
9410
9383
|
"data-disabled": disabled ? "" : void 0,
|
|
9411
9384
|
"data-invalid": invalid ? "" : void 0,
|
|
9412
9385
|
"aria-invalid": invalid,
|
|
@@ -9420,11 +9393,11 @@ var SelectChipDisplay = (0, import_react20.forwardRef)(function SelectChipDispla
|
|
|
9420
9393
|
onClick: () => {
|
|
9421
9394
|
item.toggleSelection(value, false);
|
|
9422
9395
|
},
|
|
9423
|
-
size: "
|
|
9396
|
+
size: "tiny",
|
|
9424
9397
|
color: "negative",
|
|
9425
9398
|
coloringStyle: "text",
|
|
9426
|
-
className: "flex-row-0 items-center
|
|
9427
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react4.XIcon, { className: "
|
|
9399
|
+
className: "flex-row-0 items-center",
|
|
9400
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react4.XIcon, { className: "size-5" })
|
|
9428
9401
|
}
|
|
9429
9402
|
)
|
|
9430
9403
|
] }, value)),
|
|
@@ -9432,7 +9405,10 @@ var SelectChipDisplay = (0, import_react20.forwardRef)(function SelectChipDispla
|
|
|
9432
9405
|
Button,
|
|
9433
9406
|
{
|
|
9434
9407
|
id: state.id,
|
|
9435
|
-
onClick: () =>
|
|
9408
|
+
onClick: (event) => {
|
|
9409
|
+
event.stopPropagation();
|
|
9410
|
+
toggleOpen();
|
|
9411
|
+
},
|
|
9436
9412
|
onKeyDown: (event) => {
|
|
9437
9413
|
switch (event.key) {
|
|
9438
9414
|
case "ArrowDown":
|
|
@@ -9450,6 +9426,7 @@ var SelectChipDisplay = (0, import_react20.forwardRef)(function SelectChipDispla
|
|
|
9450
9426
|
"aria-haspopup": "listbox",
|
|
9451
9427
|
"aria-expanded": state.isOpen,
|
|
9452
9428
|
"aria-controls": state.isOpen ? `${state.id}-listbox` : void 0,
|
|
9429
|
+
className: "size-9",
|
|
9453
9430
|
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react4.Plus, {})
|
|
9454
9431
|
}
|
|
9455
9432
|
)
|
|
@@ -9483,7 +9460,7 @@ var SelectContent = (0, import_react20.forwardRef)(
|
|
|
9483
9460
|
"div",
|
|
9484
9461
|
{
|
|
9485
9462
|
id: `select-container-${state.id}`,
|
|
9486
|
-
className: (0,
|
|
9463
|
+
className: (0, import_clsx12.default)("fixed inset-0 w-screen h-screen", containerClassName),
|
|
9487
9464
|
style: { zIndex },
|
|
9488
9465
|
hidden: !state.isOpen,
|
|
9489
9466
|
children: [
|
|
@@ -9492,7 +9469,7 @@ var SelectContent = (0, import_react20.forwardRef)(
|
|
|
9492
9469
|
{
|
|
9493
9470
|
id: `select-background-${state.id}`,
|
|
9494
9471
|
onClick: () => trigger.toggleOpen(false),
|
|
9495
|
-
className: (0,
|
|
9472
|
+
className: (0, import_clsx12.default)("fixed inset-0 w-screen h-screen")
|
|
9496
9473
|
}
|
|
9497
9474
|
),
|
|
9498
9475
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
@@ -9541,7 +9518,7 @@ var SelectContent = (0, import_react20.forwardRef)(
|
|
|
9541
9518
|
break;
|
|
9542
9519
|
}
|
|
9543
9520
|
},
|
|
9544
|
-
className: (0,
|
|
9521
|
+
className: (0, import_clsx12.default)("flex-col-0 p-2 bg-menu-background text-menu-text rounded-md shadow-hw-bottom focus-outline-within overflow-auto", props.className),
|
|
9545
9522
|
style: {
|
|
9546
9523
|
opacity: position ? void 0 : 0,
|
|
9547
9524
|
position: "fixed",
|
|
@@ -9691,7 +9668,7 @@ var LanguageDialog = ({
|
|
|
9691
9668
|
|
|
9692
9669
|
// src/components/dialog/ThemeDialog.tsx
|
|
9693
9670
|
var import_lucide_react5 = require("lucide-react");
|
|
9694
|
-
var
|
|
9671
|
+
var import_clsx13 = __toESM(require("clsx"));
|
|
9695
9672
|
|
|
9696
9673
|
// src/theming/useTheme.tsx
|
|
9697
9674
|
var import_react21 = require("react");
|
|
@@ -9781,11 +9758,11 @@ var useTheme = () => {
|
|
|
9781
9758
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
9782
9759
|
var ThemeIcon = ({ theme, className }) => {
|
|
9783
9760
|
if (theme === "dark") {
|
|
9784
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react5.MoonIcon, { className: (0,
|
|
9761
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react5.MoonIcon, { className: (0, import_clsx13.default)("w-4 h-4", className) });
|
|
9785
9762
|
} else if (theme === "light") {
|
|
9786
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react5.SunIcon, { className: (0,
|
|
9763
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react5.SunIcon, { className: (0, import_clsx13.default)("w-4 h-4", className) });
|
|
9787
9764
|
} else {
|
|
9788
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react5.MonitorCog, { className: (0,
|
|
9765
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react5.MonitorCog, { className: (0, import_clsx13.default)("w-4 h-4", className) });
|
|
9789
9766
|
}
|
|
9790
9767
|
};
|
|
9791
9768
|
var ThemeDialog = ({
|
|
@@ -9831,10 +9808,10 @@ var ThemeDialog = ({
|
|
|
9831
9808
|
|
|
9832
9809
|
// src/components/form/FormElementWrapper.tsx
|
|
9833
9810
|
var import_react22 = require("react");
|
|
9834
|
-
var
|
|
9811
|
+
var import_clsx15 = require("clsx");
|
|
9835
9812
|
|
|
9836
9813
|
// src/components/user-action/Label.tsx
|
|
9837
|
-
var
|
|
9814
|
+
var import_clsx14 = __toESM(require("clsx"));
|
|
9838
9815
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
9839
9816
|
var styleMapping = {
|
|
9840
9817
|
md: "typography-label-md color-label-text",
|
|
@@ -9846,7 +9823,7 @@ var Label = ({
|
|
|
9846
9823
|
className,
|
|
9847
9824
|
...props
|
|
9848
9825
|
}) => {
|
|
9849
|
-
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("label", { ...props, className: (0,
|
|
9826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("label", { ...props, className: (0, import_clsx14.default)(styleMapping[size], className), children });
|
|
9850
9827
|
};
|
|
9851
9828
|
|
|
9852
9829
|
// src/components/form/FormElementWrapper.tsx
|
|
@@ -9897,7 +9874,7 @@ var FormElementWrapper = ({
|
|
|
9897
9874
|
"aria-invalid": !!error,
|
|
9898
9875
|
"aria-errormessage": error ? errorId : void 0
|
|
9899
9876
|
};
|
|
9900
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: (0,
|
|
9877
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: (0, import_clsx15.clsx)("relative flex flex-col gap-y-1", containerClassName), children: [
|
|
9901
9878
|
label && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
9902
9879
|
Label,
|
|
9903
9880
|
{
|
|
@@ -9905,7 +9882,7 @@ var FormElementWrapper = ({
|
|
|
9905
9882
|
id: labelId,
|
|
9906
9883
|
htmlFor: usedId,
|
|
9907
9884
|
size: "lg",
|
|
9908
|
-
className: (0,
|
|
9885
|
+
className: (0, import_clsx15.clsx)("flex-row-1 items-start", labelProps?.className),
|
|
9909
9886
|
children: [
|
|
9910
9887
|
label,
|
|
9911
9888
|
required && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { role: "none", className: "bg-primary w-2 h-2 rounded-full" })
|
|
@@ -9917,7 +9894,7 @@ var FormElementWrapper = ({
|
|
|
9917
9894
|
{
|
|
9918
9895
|
...descriptionProps,
|
|
9919
9896
|
id: descriptionId,
|
|
9920
|
-
className: (0,
|
|
9897
|
+
className: (0, import_clsx15.clsx)("text-description text-sm", descriptionProps?.className),
|
|
9921
9898
|
children: description
|
|
9922
9899
|
}
|
|
9923
9900
|
),
|
|
@@ -9927,7 +9904,7 @@ var FormElementWrapper = ({
|
|
|
9927
9904
|
{
|
|
9928
9905
|
...errorProps,
|
|
9929
9906
|
id: errorId,
|
|
9930
|
-
className: (0,
|
|
9907
|
+
className: (0, import_clsx15.clsx)("absolute top-[calc(100%_+_0.25rem)] left-0 text-negative text-sm font-medium", errorProps?.className),
|
|
9931
9908
|
role: "alert",
|
|
9932
9909
|
"aria-hidden": !error,
|
|
9933
9910
|
"aria-live": "polite",
|
|
@@ -9938,7 +9915,7 @@ var FormElementWrapper = ({
|
|
|
9938
9915
|
};
|
|
9939
9916
|
|
|
9940
9917
|
// src/components/icons-and-geometry/Avatar.tsx
|
|
9941
|
-
var
|
|
9918
|
+
var import_clsx16 = __toESM(require("clsx"));
|
|
9942
9919
|
var import_react23 = require("react");
|
|
9943
9920
|
var import_lucide_react6 = require("lucide-react");
|
|
9944
9921
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
@@ -9988,7 +9965,7 @@ var Avatar = ({
|
|
|
9988
9965
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
9989
9966
|
"div",
|
|
9990
9967
|
{
|
|
9991
|
-
className: (0,
|
|
9968
|
+
className: (0, import_clsx16.default)(
|
|
9992
9969
|
`relative flex-row-0 items-center justify-center bg-primary text-on-primary`,
|
|
9993
9970
|
rounding,
|
|
9994
9971
|
className
|
|
@@ -10000,7 +9977,7 @@ var Avatar = ({
|
|
|
10000
9977
|
{
|
|
10001
9978
|
src: image?.avatarUrl,
|
|
10002
9979
|
alt: image?.alt,
|
|
10003
|
-
className: (0,
|
|
9980
|
+
className: (0, import_clsx16.default)(rounding, { "absolute left-0 top-0 -translate-1/2 opacity-0 z-1 ": !isLoaded || hasError }),
|
|
10004
9981
|
onLoad: () => setIsLoaded(true),
|
|
10005
9982
|
onError: () => setHasError(true)
|
|
10006
9983
|
}
|
|
@@ -10034,7 +10011,7 @@ var AvatarGroup = ({
|
|
|
10034
10011
|
...avatar,
|
|
10035
10012
|
size,
|
|
10036
10013
|
fullyRounded,
|
|
10037
|
-
className: (0,
|
|
10014
|
+
className: (0, import_clsx16.default)("shadow-side shadow-r-4 shadow-hard", avatar.className)
|
|
10038
10015
|
}
|
|
10039
10016
|
)
|
|
10040
10017
|
},
|
|
@@ -10043,7 +10020,7 @@ var AvatarGroup = ({
|
|
|
10043
10020
|
showTotalNumber && notDisplayedProfiles > 0 && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
10044
10021
|
"div",
|
|
10045
10022
|
{
|
|
10046
|
-
className: (0,
|
|
10023
|
+
className: (0, import_clsx16.default)(textClassNameMapping[size], "flex-row-2 truncate items-center"),
|
|
10047
10024
|
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("span", { children: [
|
|
10048
10025
|
"+ ",
|
|
10049
10026
|
notDisplayedProfiles
|
|
@@ -10054,7 +10031,7 @@ var AvatarGroup = ({
|
|
|
10054
10031
|
};
|
|
10055
10032
|
|
|
10056
10033
|
// src/components/icons-and-geometry/Circle.tsx
|
|
10057
|
-
var
|
|
10034
|
+
var import_clsx17 = __toESM(require("clsx"));
|
|
10058
10035
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
10059
10036
|
var Circle = ({
|
|
10060
10037
|
radius = 20,
|
|
@@ -10066,7 +10043,7 @@ var Circle = ({
|
|
|
10066
10043
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
10067
10044
|
"div",
|
|
10068
10045
|
{
|
|
10069
|
-
className: (0,
|
|
10046
|
+
className: (0, import_clsx17.default)(`rounded-full`, className),
|
|
10070
10047
|
style: {
|
|
10071
10048
|
width: `${size}px`,
|
|
10072
10049
|
height: `${size}px`,
|
|
@@ -10079,7 +10056,7 @@ var Circle = ({
|
|
|
10079
10056
|
|
|
10080
10057
|
// src/components/icons-and-geometry/Ring.tsx
|
|
10081
10058
|
var import_react24 = require("react");
|
|
10082
|
-
var
|
|
10059
|
+
var import_clsx18 = __toESM(require("clsx"));
|
|
10083
10060
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
10084
10061
|
var Ring = ({
|
|
10085
10062
|
innerSize = 20,
|
|
@@ -10089,7 +10066,7 @@ var Ring = ({
|
|
|
10089
10066
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
10090
10067
|
"div",
|
|
10091
10068
|
{
|
|
10092
|
-
className: (0,
|
|
10069
|
+
className: (0, import_clsx18.default)(`bg-transparent rounded-full outline`, className),
|
|
10093
10070
|
style: {
|
|
10094
10071
|
width: `${innerSize}px`,
|
|
10095
10072
|
height: `${innerSize}px`,
|
|
@@ -10228,7 +10205,7 @@ var RadialRings = ({
|
|
|
10228
10205
|
Circle,
|
|
10229
10206
|
{
|
|
10230
10207
|
radius: sizeCircle1 / 2,
|
|
10231
|
-
className: (0,
|
|
10208
|
+
className: (0, import_clsx18.default)(circle1ClassName, `absolute z-[10] -translate-y-1/2 -translate-x-1/2`),
|
|
10232
10209
|
style: {
|
|
10233
10210
|
left: `${size / 2}px`,
|
|
10234
10211
|
top: `${size / 2}px`
|
|
@@ -10242,7 +10219,7 @@ var RadialRings = ({
|
|
|
10242
10219
|
width: (sizeCircle2 - sizeCircle1) / 2,
|
|
10243
10220
|
onAnimationFinished: () => currentRing === 0 ? setCurrentRing(1) : null,
|
|
10244
10221
|
repeating: true,
|
|
10245
|
-
className: (0,
|
|
10222
|
+
className: (0, import_clsx18.default)(
|
|
10246
10223
|
circle2ClassName,
|
|
10247
10224
|
{ "opacity-5": currentRing !== 0 }
|
|
10248
10225
|
),
|
|
@@ -10262,7 +10239,7 @@ var RadialRings = ({
|
|
|
10262
10239
|
endInnerSize: sizeCircle2,
|
|
10263
10240
|
width: waveWidth,
|
|
10264
10241
|
repeating: true,
|
|
10265
|
-
className: (0,
|
|
10242
|
+
className: (0, import_clsx18.default)(waveBaseColor, `opacity-5`),
|
|
10266
10243
|
style: {
|
|
10267
10244
|
left: `${size / 2}px`,
|
|
10268
10245
|
top: `${size / 2}px`,
|
|
@@ -10276,7 +10253,7 @@ var RadialRings = ({
|
|
|
10276
10253
|
Circle,
|
|
10277
10254
|
{
|
|
10278
10255
|
radius: sizeCircle2 / 2,
|
|
10279
|
-
className: (0,
|
|
10256
|
+
className: (0, import_clsx18.default)(
|
|
10280
10257
|
circle2ClassName,
|
|
10281
10258
|
{ "opacity-20": currentRing < 1 },
|
|
10282
10259
|
`absolute z-[8] -translate-y-1/2 -translate-x-1/2`
|
|
@@ -10294,7 +10271,7 @@ var RadialRings = ({
|
|
|
10294
10271
|
width: (sizeCircle3 - sizeCircle2) / 2,
|
|
10295
10272
|
onAnimationFinished: () => currentRing === 1 ? setCurrentRing(2) : null,
|
|
10296
10273
|
repeating: true,
|
|
10297
|
-
className: (0,
|
|
10274
|
+
className: (0, import_clsx18.default)(circle3ClassName),
|
|
10298
10275
|
style: {
|
|
10299
10276
|
left: `${size / 2}px`,
|
|
10300
10277
|
top: `${size / 2}px`,
|
|
@@ -10311,7 +10288,7 @@ var RadialRings = ({
|
|
|
10311
10288
|
endInnerSize: sizeCircle3 - waveWidth,
|
|
10312
10289
|
width: waveWidth,
|
|
10313
10290
|
repeating: true,
|
|
10314
|
-
className: (0,
|
|
10291
|
+
className: (0, import_clsx18.default)(waveBaseColor, `opacity-5`),
|
|
10315
10292
|
style: {
|
|
10316
10293
|
left: `${size / 2}px`,
|
|
10317
10294
|
top: `${size / 2}px`,
|
|
@@ -10325,7 +10302,7 @@ var RadialRings = ({
|
|
|
10325
10302
|
Circle,
|
|
10326
10303
|
{
|
|
10327
10304
|
radius: sizeCircle3 / 2,
|
|
10328
|
-
className: (0,
|
|
10305
|
+
className: (0, import_clsx18.default)(
|
|
10329
10306
|
circle3ClassName,
|
|
10330
10307
|
{ "opacity-20": currentRing < 2 },
|
|
10331
10308
|
`absolute z-[6] -translate-y-1/2 -translate-x-1/2`
|
|
@@ -10363,7 +10340,7 @@ var TagIcon = ({
|
|
|
10363
10340
|
|
|
10364
10341
|
// src/components/layout/Carousel.tsx
|
|
10365
10342
|
var import_react25 = require("react");
|
|
10366
|
-
var
|
|
10343
|
+
var import_clsx19 = __toESM(require("clsx"));
|
|
10367
10344
|
var import_lucide_react7 = require("lucide-react");
|
|
10368
10345
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
10369
10346
|
var CarouselContext = (0, import_react25.createContext)(null);
|
|
@@ -10409,7 +10386,7 @@ function CarouselTabs({
|
|
|
10409
10386
|
ref: (el) => tabRefs.current[index] = el,
|
|
10410
10387
|
onClick: () => onChange(index),
|
|
10411
10388
|
onKeyDown: (e) => handleKeyDown(e, index),
|
|
10412
|
-
className: (0,
|
|
10389
|
+
className: (0, import_clsx19.default)(
|
|
10413
10390
|
"w-8 min-w-8 h-3 min-h-3 first:rounded-l-md last:rounded-r-md",
|
|
10414
10391
|
{
|
|
10415
10392
|
"bg-carousel-dot-disabled hover:bg-carousel-dot-active": currentIndex !== index,
|
|
@@ -10443,7 +10420,7 @@ var CarouselSlide = (0, import_react25.forwardRef)(
|
|
|
10443
10420
|
...props,
|
|
10444
10421
|
ref,
|
|
10445
10422
|
id: `${id}-slide-${index}`,
|
|
10446
|
-
className: (0,
|
|
10423
|
+
className: (0, import_clsx19.default)("focus-style-none group/slide", props.className),
|
|
10447
10424
|
tabIndex: isSelected ? 0 : void 0,
|
|
10448
10425
|
role: "group",
|
|
10449
10426
|
"aria-roledescription": translation("slide"),
|
|
@@ -10592,7 +10569,7 @@ var Carousel = ({
|
|
|
10592
10569
|
{
|
|
10593
10570
|
ref: carouselContainerRef,
|
|
10594
10571
|
...props,
|
|
10595
|
-
className: (0,
|
|
10572
|
+
className: (0, import_clsx19.default)("flex-col-2 items-center w-full", props.className),
|
|
10596
10573
|
id,
|
|
10597
10574
|
role: "region",
|
|
10598
10575
|
"aria-roledescription": translation("slide"),
|
|
@@ -10601,7 +10578,7 @@ var Carousel = ({
|
|
|
10601
10578
|
"div",
|
|
10602
10579
|
{
|
|
10603
10580
|
...slideContainerProps,
|
|
10604
|
-
className: (0,
|
|
10581
|
+
className: (0, import_clsx19.default)(`relative w-full overflow-hidden`, heightClassName, slideContainerProps?.className),
|
|
10605
10582
|
children: [
|
|
10606
10583
|
hintNext ? /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
10607
10584
|
"div",
|
|
@@ -10610,7 +10587,7 @@ var Carousel = ({
|
|
|
10610
10587
|
onPointerMove: handlePointerMove,
|
|
10611
10588
|
onPointerUp: handlePointerUp,
|
|
10612
10589
|
onPointerLeave: handlePointerUp,
|
|
10613
|
-
className: (0,
|
|
10590
|
+
className: (0, import_clsx19.default)(`flex-row-2 relative h-full`, heightClassName),
|
|
10614
10591
|
children: [
|
|
10615
10592
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "flex-row-2 relative h-full w-full px-2 overflow-hidden", children: items.map(({
|
|
10616
10593
|
item,
|
|
@@ -10623,7 +10600,7 @@ var Carousel = ({
|
|
|
10623
10600
|
ref: isInItems ? slideRefs[index] : void 0,
|
|
10624
10601
|
index,
|
|
10625
10602
|
isSelected: isInItems && currentIndex === index,
|
|
10626
|
-
className: (0,
|
|
10603
|
+
className: (0, import_clsx19.default)(
|
|
10627
10604
|
`absolute left-[50%] h-full overflow-hidden transition-transform ease-in-out`,
|
|
10628
10605
|
slideClassName
|
|
10629
10606
|
),
|
|
@@ -10640,13 +10617,13 @@ var Carousel = ({
|
|
|
10640
10617
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
10641
10618
|
"div",
|
|
10642
10619
|
{
|
|
10643
|
-
className: (0,
|
|
10620
|
+
className: (0, import_clsx19.default)(`hidden desktop:block pointer-events-none absolute left-0 h-full w-[20%] bg-gradient-to-r to-transparent`, blurColor)
|
|
10644
10621
|
}
|
|
10645
10622
|
),
|
|
10646
10623
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
10647
10624
|
"div",
|
|
10648
10625
|
{
|
|
10649
|
-
className: (0,
|
|
10626
|
+
className: (0, import_clsx19.default)(`hidden desktop:block pointer-events-none absolute right-0 h-full w-[20%] bg-gradient-to-l to-transparent`, blurColor)
|
|
10650
10627
|
}
|
|
10651
10628
|
)
|
|
10652
10629
|
]
|
|
@@ -10655,7 +10632,7 @@ var Carousel = ({
|
|
|
10655
10632
|
"div",
|
|
10656
10633
|
{
|
|
10657
10634
|
ref: slideRefs[currentIndex],
|
|
10658
|
-
className: (0,
|
|
10635
|
+
className: (0, import_clsx19.default)("px-16 h-full"),
|
|
10659
10636
|
tabIndex: 0,
|
|
10660
10637
|
role: "group",
|
|
10661
10638
|
"aria-roledescription": translation("slide"),
|
|
@@ -10672,7 +10649,7 @@ var Carousel = ({
|
|
|
10672
10649
|
{
|
|
10673
10650
|
layout: "icon",
|
|
10674
10651
|
color: "neutral",
|
|
10675
|
-
className: (0,
|
|
10652
|
+
className: (0, import_clsx19.default)("absolute z-10 left-2 top-1/2 -translate-y-1/2 shadow-md", { hidden: !canGoLeft() }),
|
|
10676
10653
|
disabled: !canGoLeft(),
|
|
10677
10654
|
onClick: () => left(),
|
|
10678
10655
|
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react7.ChevronLeft, { size: 24 })
|
|
@@ -10683,7 +10660,7 @@ var Carousel = ({
|
|
|
10683
10660
|
{
|
|
10684
10661
|
layout: "icon",
|
|
10685
10662
|
color: "neutral",
|
|
10686
|
-
className: (0,
|
|
10663
|
+
className: (0, import_clsx19.default)("absolute z-10 right-2 top-1/2 -translate-y-1/2 shadow-md", { hidden: !canGoRight() }),
|
|
10687
10664
|
disabled: !canGoRight(),
|
|
10688
10665
|
onClick: () => right(),
|
|
10689
10666
|
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react7.ChevronRight, { size: 24 })
|
|
@@ -10700,7 +10677,7 @@ var Carousel = ({
|
|
|
10700
10677
|
};
|
|
10701
10678
|
|
|
10702
10679
|
// src/components/layout/DividerInserter.tsx
|
|
10703
|
-
var
|
|
10680
|
+
var import_clsx20 = __toESM(require("clsx"));
|
|
10704
10681
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
10705
10682
|
var DividerInserter = ({
|
|
10706
10683
|
children,
|
|
@@ -10718,11 +10695,11 @@ var DividerInserter = ({
|
|
|
10718
10695
|
}
|
|
10719
10696
|
}
|
|
10720
10697
|
}
|
|
10721
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: (0,
|
|
10698
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: (0, import_clsx20.default)(className), ...restProps, children: nodes });
|
|
10722
10699
|
};
|
|
10723
10700
|
|
|
10724
10701
|
// src/components/layout/FAQSection.tsx
|
|
10725
|
-
var
|
|
10702
|
+
var import_clsx21 = __toESM(require("clsx"));
|
|
10726
10703
|
|
|
10727
10704
|
// src/components/layout/MarkdownInterpreter.tsx
|
|
10728
10705
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
@@ -10968,7 +10945,7 @@ var FAQSection = ({
|
|
|
10968
10945
|
label: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { id, className: "typography-title-md", children: title }),
|
|
10969
10946
|
clickOnlyOnHeader: false,
|
|
10970
10947
|
icon: (expanded) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ExpansionIcon, { isExpanded: expanded, className: "text-primary" }),
|
|
10971
|
-
className: (0,
|
|
10948
|
+
className: (0, import_clsx21.default)("rounded-xl", expandableClassName),
|
|
10972
10949
|
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "mt-2", children: content.type === "markdown" ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(MarkdownInterpreter, { text: content.value }) : content.value })
|
|
10973
10950
|
},
|
|
10974
10951
|
id
|
|
@@ -10978,7 +10955,7 @@ var FAQSection = ({
|
|
|
10978
10955
|
// src/components/layout/FloatingContainer.tsx
|
|
10979
10956
|
var import_react26 = require("react");
|
|
10980
10957
|
var import_react_dom3 = require("react-dom");
|
|
10981
|
-
var
|
|
10958
|
+
var import_clsx22 = require("clsx");
|
|
10982
10959
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
10983
10960
|
var FloatingContainer = (0, import_react26.forwardRef)(function FloatingContainer2({
|
|
10984
10961
|
children,
|
|
@@ -11023,7 +11000,7 @@ var FloatingContainer = (0, import_react26.forwardRef)(function FloatingContaine
|
|
|
11023
11000
|
...position,
|
|
11024
11001
|
...props.style
|
|
11025
11002
|
},
|
|
11026
|
-
className: (0,
|
|
11003
|
+
className: (0, import_clsx22.clsx)("motion-safe:duration-100 motion-reduce:duration-0", props.className),
|
|
11027
11004
|
children
|
|
11028
11005
|
}
|
|
11029
11006
|
)
|
|
@@ -11034,7 +11011,7 @@ var FloatingContainer = (0, import_react26.forwardRef)(function FloatingContaine
|
|
|
11034
11011
|
|
|
11035
11012
|
// src/components/layout/ListBox.tsx
|
|
11036
11013
|
var import_react27 = __toESM(require("react"));
|
|
11037
|
-
var
|
|
11014
|
+
var import_clsx23 = require("clsx");
|
|
11038
11015
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
11039
11016
|
var ListBoxContext = (0, import_react27.createContext)(null);
|
|
11040
11017
|
function useListBoxContext() {
|
|
@@ -11077,7 +11054,7 @@ var ListBoxItem = (0, import_react27.forwardRef)(
|
|
|
11077
11054
|
"data-highlighted": isHighlighted ? "" : void 0,
|
|
11078
11055
|
"data-selected": selected ? "" : void 0,
|
|
11079
11056
|
"data-disabled": disabled ? "" : void 0,
|
|
11080
|
-
className: (0,
|
|
11057
|
+
className: (0, import_clsx23.clsx)(
|
|
11081
11058
|
"flex-row-1 items-center px-2 py-1 rounded-md",
|
|
11082
11059
|
"data-highlighted:bg-primary/20",
|
|
11083
11060
|
"data-disabled:text-disabled data-disabled:cursor-not-allowed",
|
|
@@ -11298,7 +11275,7 @@ var ListBoxUncontrolled = ({
|
|
|
11298
11275
|
// src/components/layout/TabView.tsx
|
|
11299
11276
|
var import_react28 = require("react");
|
|
11300
11277
|
var import_react29 = require("react");
|
|
11301
|
-
var
|
|
11278
|
+
var import_clsx24 = __toESM(require("clsx"));
|
|
11302
11279
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
11303
11280
|
var TabContext = (0, import_react29.createContext)(null);
|
|
11304
11281
|
function useTabContext() {
|
|
@@ -11343,8 +11320,8 @@ function TabView({ children, outerDivProps, onTabChanged, initialTabIndex = 0, .
|
|
|
11343
11320
|
buttonRefs.current[nextId]?.focus();
|
|
11344
11321
|
};
|
|
11345
11322
|
const value = { active, setActive, register, unregister, tabs };
|
|
11346
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TabContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { ...outerDivProps, className: (0,
|
|
11347
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { role: "tablist", ...props, className: (0,
|
|
11323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TabContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { ...outerDivProps, className: (0, import_clsx24.default)("w-full", props.className), children: [
|
|
11324
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { role: "tablist", ...props, className: (0, import_clsx24.default)("flex-row-0"), children: tabs.map((t) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
11348
11325
|
"button",
|
|
11349
11326
|
{
|
|
11350
11327
|
role: "tab",
|
|
@@ -11355,7 +11332,7 @@ function TabView({ children, outerDivProps, onTabChanged, initialTabIndex = 0, .
|
|
|
11355
11332
|
ref: (el) => buttonRefs.current[t.id] = el,
|
|
11356
11333
|
onClick: () => setActive(t.id),
|
|
11357
11334
|
onKeyDown: (e) => onKeyDown(e, t.id),
|
|
11358
|
-
className: (0,
|
|
11335
|
+
className: (0, import_clsx24.default)(
|
|
11359
11336
|
"flex-row-0 grow justify-center px-3 pb-2.25 typography-label-md font-bold border-b-2",
|
|
11360
11337
|
active === t.id ? "border-primary" : "text-description hover:text-on-background"
|
|
11361
11338
|
),
|
|
@@ -11389,7 +11366,7 @@ function Tab({ id: customId, label, children, ...props }) {
|
|
|
11389
11366
|
}
|
|
11390
11367
|
|
|
11391
11368
|
// src/components/layout/TextImage.tsx
|
|
11392
|
-
var
|
|
11369
|
+
var import_clsx25 = __toESM(require("clsx"));
|
|
11393
11370
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
11394
11371
|
var TextImage = ({
|
|
11395
11372
|
title,
|
|
@@ -11415,7 +11392,7 @@ var TextImage = ({
|
|
|
11415
11392
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
11416
11393
|
"div",
|
|
11417
11394
|
{
|
|
11418
|
-
className: (0,
|
|
11395
|
+
className: (0, import_clsx25.default)("rounded-2xl w-full", className),
|
|
11419
11396
|
style: {
|
|
11420
11397
|
backgroundImage: `url(${imageUrl})`,
|
|
11421
11398
|
backgroundSize: "cover"
|
|
@@ -11423,9 +11400,9 @@ var TextImage = ({
|
|
|
11423
11400
|
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
11424
11401
|
"div",
|
|
11425
11402
|
{
|
|
11426
|
-
className: (0,
|
|
11403
|
+
className: (0, import_clsx25.default)(`flex-col-2 px-6 py-12 rounded-2xl h-full`, colorMapping[color], contentClassName),
|
|
11427
11404
|
children: [
|
|
11428
|
-
badge && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: (0,
|
|
11405
|
+
badge && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: (0, import_clsx25.default)(`chip-full mb-2 py-2 px-4 w-fit`, chipColorMapping[color]), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-lg font-bold", children: badge }) }),
|
|
11429
11406
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex-col-1 overflow-hidden", children: [
|
|
11430
11407
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "typography-title-lg", children: title }),
|
|
11431
11408
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-ellipsis overflow-hidden", children: description })
|
|
@@ -11493,14 +11470,14 @@ var VerticalDivider = ({
|
|
|
11493
11470
|
|
|
11494
11471
|
// src/components/loading-states/ErrorComponent.tsx
|
|
11495
11472
|
var import_lucide_react8 = require("lucide-react");
|
|
11496
|
-
var
|
|
11473
|
+
var import_clsx26 = __toESM(require("clsx"));
|
|
11497
11474
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
11498
11475
|
var ErrorComponent = ({
|
|
11499
11476
|
errorText,
|
|
11500
11477
|
classname
|
|
11501
11478
|
}) => {
|
|
11502
11479
|
const translation = useHightideTranslation();
|
|
11503
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: (0,
|
|
11480
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: (0, import_clsx26.default)("flex-col-4 items-center justify-center w-full h-24", classname), children: [
|
|
11504
11481
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react8.AlertOctagon, { size: 64, className: "text-warning" }),
|
|
11505
11482
|
errorText ?? `${translation("errorOccurred")} :(`
|
|
11506
11483
|
] });
|
|
@@ -11510,14 +11487,14 @@ var ErrorComponent = ({
|
|
|
11510
11487
|
var import_react30 = require("react");
|
|
11511
11488
|
|
|
11512
11489
|
// src/components/loading-states/LoadingContainer.tsx
|
|
11513
|
-
var
|
|
11490
|
+
var import_clsx27 = require("clsx");
|
|
11514
11491
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
11515
11492
|
var LoadingContainer = ({ className }) => {
|
|
11516
|
-
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: (0,
|
|
11493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: (0, import_clsx27.clsx)("relative overflow-hidden shimmer bg-disabled/30 rounded-md", className) });
|
|
11517
11494
|
};
|
|
11518
11495
|
|
|
11519
11496
|
// src/components/loading-states/LoadingAndErrorComponent.tsx
|
|
11520
|
-
var
|
|
11497
|
+
var import_clsx28 = require("clsx");
|
|
11521
11498
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
11522
11499
|
var LoadingAndErrorComponent = ({
|
|
11523
11500
|
children,
|
|
@@ -11538,34 +11515,34 @@ var LoadingAndErrorComponent = ({
|
|
|
11538
11515
|
}, minimumLoadingDuration);
|
|
11539
11516
|
}
|
|
11540
11517
|
if (isLoading || minimumLoadingDuration && isInMinimumLoading) {
|
|
11541
|
-
return loadingComponent ?? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(LoadingContainer, { className: (0,
|
|
11518
|
+
return loadingComponent ?? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(LoadingContainer, { className: (0, import_clsx28.clsx)(className) });
|
|
11542
11519
|
}
|
|
11543
11520
|
if (hasError) {
|
|
11544
|
-
return errorComponent ?? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(LoadingContainer, { className: (0,
|
|
11521
|
+
return errorComponent ?? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(LoadingContainer, { className: (0, import_clsx28.clsx)("bg-negative", className) });
|
|
11545
11522
|
}
|
|
11546
11523
|
return children;
|
|
11547
11524
|
};
|
|
11548
11525
|
|
|
11549
11526
|
// src/components/loading-states/LoadingAnimation.tsx
|
|
11550
|
-
var
|
|
11527
|
+
var import_clsx29 = __toESM(require("clsx"));
|
|
11551
11528
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
11552
11529
|
var LoadingAnimation = ({
|
|
11553
11530
|
loadingText,
|
|
11554
11531
|
classname
|
|
11555
11532
|
}) => {
|
|
11556
11533
|
const translation = useHightideTranslation();
|
|
11557
|
-
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: (0,
|
|
11534
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: (0, import_clsx29.default)("flex-col-2 items-center justify-center w-full h-24", classname), children: [
|
|
11558
11535
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(HelpwaveLogo, { animate: "loading" }),
|
|
11559
11536
|
loadingText ?? `${translation("loading")}...`
|
|
11560
11537
|
] });
|
|
11561
11538
|
};
|
|
11562
11539
|
|
|
11563
11540
|
// src/components/loading-states/LoadingButton.tsx
|
|
11564
|
-
var
|
|
11541
|
+
var import_clsx30 = __toESM(require("clsx"));
|
|
11565
11542
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
11566
11543
|
var LoadingButton = ({ isLoading = false, size = "medium", onClick, ...rest }) => {
|
|
11567
11544
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "inline-block relative", children: [
|
|
11568
|
-
isLoading && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: (0,
|
|
11545
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: (0, import_clsx30.default)("flex-row-2 absolute inset-0 items-center justify-center bg-white/40"), children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(HelpwaveLogo, { animate: "loading", className: "text-white" }) }),
|
|
11569
11546
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Button, { ...rest, size, disabled: rest.disabled, onClick })
|
|
11570
11547
|
] });
|
|
11571
11548
|
};
|
|
@@ -11628,18 +11605,18 @@ var ProgressIndicator = ({
|
|
|
11628
11605
|
|
|
11629
11606
|
// src/components/navigation/BreadCrumb.tsx
|
|
11630
11607
|
var import_link = __toESM(require_link2());
|
|
11631
|
-
var
|
|
11608
|
+
var import_clsx31 = __toESM(require("clsx"));
|
|
11632
11609
|
var import_react31 = require("react");
|
|
11633
11610
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
11634
11611
|
var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
|
|
11635
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: (0,
|
|
11612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: (0, import_clsx31.default)("flex-row-0.5 items-center", containerClassName), children: crumbs.map((crumb, index) => {
|
|
11636
11613
|
const isLast = index === crumbs.length - 1;
|
|
11637
11614
|
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_react31.Fragment, { children: [
|
|
11638
11615
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
11639
11616
|
import_link.default,
|
|
11640
11617
|
{
|
|
11641
11618
|
href: crumb.link,
|
|
11642
|
-
className: (0,
|
|
11619
|
+
className: (0, import_clsx31.default)(
|
|
11643
11620
|
"btn-sm coloring-text-hover",
|
|
11644
11621
|
{
|
|
11645
11622
|
description: !isLast,
|
|
@@ -11650,7 +11627,7 @@ var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
|
|
|
11650
11627
|
children: crumb.display
|
|
11651
11628
|
}
|
|
11652
11629
|
),
|
|
11653
|
-
!isLast && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: (0,
|
|
11630
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: (0, import_clsx31.default)(`px-1`, "text-description"), children: "/" })
|
|
11654
11631
|
] }, index);
|
|
11655
11632
|
}) });
|
|
11656
11633
|
};
|
|
@@ -11660,7 +11637,7 @@ var import_lucide_react9 = require("lucide-react");
|
|
|
11660
11637
|
var import_react32 = require("react");
|
|
11661
11638
|
var import_react33 = require("react");
|
|
11662
11639
|
var import_link2 = __toESM(require_link2());
|
|
11663
|
-
var
|
|
11640
|
+
var import_clsx32 = __toESM(require("clsx"));
|
|
11664
11641
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
11665
11642
|
function isSubItem(item) {
|
|
11666
11643
|
return "items" in item && Array.isArray(item.items);
|
|
@@ -11723,7 +11700,7 @@ var NavigationItemWithSubItem = ({
|
|
|
11723
11700
|
},
|
|
11724
11701
|
onBlur,
|
|
11725
11702
|
hidden: !isOpen,
|
|
11726
|
-
className: (0,
|
|
11703
|
+
className: (0, import_clsx32.default)(
|
|
11727
11704
|
"fixed flex-col-4 p-4 bg-surface text-on-surface shadow-side shadow-hw-bottom rounded-md",
|
|
11728
11705
|
{ "opacity-0": !style }
|
|
11729
11706
|
),
|
|
@@ -11742,7 +11719,7 @@ var NavigationItemWithSubItem = ({
|
|
|
11742
11719
|
] });
|
|
11743
11720
|
};
|
|
11744
11721
|
var NavigationItemList = ({ items, ...restProps }) => {
|
|
11745
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("ul", { ...restProps, className: (0,
|
|
11722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("ul", { ...restProps, className: (0, import_clsx32.default)("flex-row-6 items-center", restProps.className), children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("li", { children: isSubItem(item) ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(NavigationItemWithSubItem, { ...item }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_link2.default, { href: item.link, target: item.external ? "_blank" : void 0, className: "link", children: item.label }) }, index)) });
|
|
11746
11723
|
};
|
|
11747
11724
|
var Navigation = ({ ...props }) => {
|
|
11748
11725
|
const [isMobileOpen, setIsMobileOpen] = (0, import_react33.useState)(false);
|
|
@@ -11757,7 +11734,7 @@ var Navigation = ({ ...props }) => {
|
|
|
11757
11734
|
NavigationItemList,
|
|
11758
11735
|
{
|
|
11759
11736
|
...props,
|
|
11760
|
-
className: (0,
|
|
11737
|
+
className: (0, import_clsx32.default)("hidden", { "desktop:flex": !isMobileOpen }, props.className)
|
|
11761
11738
|
}
|
|
11762
11739
|
),
|
|
11763
11740
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
@@ -11787,7 +11764,7 @@ var Navigation = ({ ...props }) => {
|
|
|
11787
11764
|
event.stopPropagation();
|
|
11788
11765
|
}
|
|
11789
11766
|
},
|
|
11790
|
-
className: (0,
|
|
11767
|
+
className: (0, import_clsx32.default)(
|
|
11791
11768
|
"flex-col-8 items-center justify-center fixed inset-0 p-8 w-screen h-screen bg-surface text-on-surface",
|
|
11792
11769
|
{
|
|
11793
11770
|
"desktop:hidden": isMobileOpen
|
|
@@ -11806,7 +11783,7 @@ var Navigation = ({ ...props }) => {
|
|
|
11806
11783
|
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react9.XIcon, {})
|
|
11807
11784
|
}
|
|
11808
11785
|
),
|
|
11809
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(NavigationItemList, { ...props, className: (0,
|
|
11786
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(NavigationItemList, { ...props, className: (0, import_clsx32.default)("flex-col-8", props.className) })
|
|
11810
11787
|
]
|
|
11811
11788
|
}
|
|
11812
11789
|
)
|
|
@@ -11815,7 +11792,7 @@ var Navigation = ({ ...props }) => {
|
|
|
11815
11792
|
|
|
11816
11793
|
// src/components/navigation/Pagination.tsx
|
|
11817
11794
|
var import_lucide_react10 = require("lucide-react");
|
|
11818
|
-
var
|
|
11795
|
+
var import_clsx33 = __toESM(require("clsx"));
|
|
11819
11796
|
var import_react34 = require("react");
|
|
11820
11797
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
11821
11798
|
var Pagination = ({
|
|
@@ -11840,7 +11817,7 @@ var Pagination = ({
|
|
|
11840
11817
|
const changePage = (page) => {
|
|
11841
11818
|
onPageChanged(page);
|
|
11842
11819
|
};
|
|
11843
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: (0,
|
|
11820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: (0, import_clsx33.default)("flex-row-1", className), style, children: [
|
|
11844
11821
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
11845
11822
|
Button,
|
|
11846
11823
|
{
|
|
@@ -11868,7 +11845,7 @@ var Pagination = ({
|
|
|
11868
11845
|
Input,
|
|
11869
11846
|
{
|
|
11870
11847
|
value,
|
|
11871
|
-
className: (0,
|
|
11848
|
+
className: (0, import_clsx33.default)(
|
|
11872
11849
|
"w-24 text-center font-bold input-indicator-hidden h-10"
|
|
11873
11850
|
),
|
|
11874
11851
|
type: "number",
|
|
@@ -11924,7 +11901,7 @@ var Pagination = ({
|
|
|
11924
11901
|
|
|
11925
11902
|
// src/components/navigation/StepperBar.tsx
|
|
11926
11903
|
var import_lucide_react11 = require("lucide-react");
|
|
11927
|
-
var
|
|
11904
|
+
var import_clsx34 = __toESM(require("clsx"));
|
|
11928
11905
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
11929
11906
|
var defaultState = {
|
|
11930
11907
|
currentStep: 0,
|
|
@@ -11950,7 +11927,7 @@ var StepperBar = ({
|
|
|
11950
11927
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
11951
11928
|
"div",
|
|
11952
11929
|
{
|
|
11953
|
-
className: (0,
|
|
11930
|
+
className: (0, import_clsx34.default)("flex-row-2 justify-between", className),
|
|
11954
11931
|
children: [
|
|
11955
11932
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex-row-2 flex-[2] justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
11956
11933
|
Button,
|
|
@@ -11972,7 +11949,7 @@ var StepperBar = ({
|
|
|
11972
11949
|
"div",
|
|
11973
11950
|
{
|
|
11974
11951
|
onClick: () => seen && update(index),
|
|
11975
|
-
className: (0,
|
|
11952
|
+
className: (0, import_clsx34.default)(
|
|
11976
11953
|
"rounded-full w-4 h-4",
|
|
11977
11954
|
{
|
|
11978
11955
|
"bg-stepperbar-dot-active hover:brightness-75": index === currentStep && seen && !disabledSteps.has(currentStep),
|
|
@@ -12033,24 +12010,25 @@ var import_lucide_react14 = require("lucide-react");
|
|
|
12033
12010
|
|
|
12034
12011
|
// src/components/user-action/Checkbox.tsx
|
|
12035
12012
|
var import_lucide_react12 = require("lucide-react");
|
|
12036
|
-
var
|
|
12013
|
+
var import_clsx35 = __toESM(require("clsx"));
|
|
12037
12014
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
12038
12015
|
var checkboxSizeMapping = {
|
|
12039
|
-
|
|
12040
|
-
|
|
12041
|
-
|
|
12016
|
+
small: "size-5 border-2",
|
|
12017
|
+
medium: "size-6 border-2",
|
|
12018
|
+
large: "size-8 border-2"
|
|
12042
12019
|
};
|
|
12043
12020
|
var checkboxIconSizeMapping = {
|
|
12044
|
-
|
|
12045
|
-
|
|
12046
|
-
|
|
12021
|
+
small: "size-3.5 stroke-3",
|
|
12022
|
+
medium: "size-4.5 stroke-3",
|
|
12023
|
+
large: "size-6 stroke-3"
|
|
12047
12024
|
};
|
|
12048
12025
|
var Checkbox = ({
|
|
12049
12026
|
disabled,
|
|
12050
12027
|
checked = false,
|
|
12051
12028
|
indeterminate = false,
|
|
12029
|
+
invalid = false,
|
|
12052
12030
|
onCheckedChange,
|
|
12053
|
-
size = "
|
|
12031
|
+
size = "medium",
|
|
12054
12032
|
className = "",
|
|
12055
12033
|
...props
|
|
12056
12034
|
}) => {
|
|
@@ -12074,25 +12052,21 @@ var Checkbox = ({
|
|
|
12074
12052
|
props.onKeyDown?.(event);
|
|
12075
12053
|
}
|
|
12076
12054
|
},
|
|
12077
|
-
className: (0,
|
|
12055
|
+
className: (0, import_clsx35.default)(
|
|
12078
12056
|
usedSizeClass,
|
|
12079
|
-
`flex-col-0 items-center justify-center rounded`,
|
|
12080
|
-
{
|
|
12081
|
-
"text-disabled border-disabled-outline bg-disabled-background cursor-not-allowed": disabled,
|
|
12082
|
-
"hover:border-primary": !disabled,
|
|
12083
|
-
"bg-input-background": !disabled && !checked,
|
|
12084
|
-
"bg-primary/30 border-primary text-primary": !disabled && (checked || indeterminate)
|
|
12085
|
-
},
|
|
12086
12057
|
className
|
|
12087
12058
|
),
|
|
12059
|
+
"data-name": props["data-name"] ?? "checkbox",
|
|
12060
|
+
"data-value": !indeterminate ? checked : "indeterminate",
|
|
12061
|
+
"data-disabled": disabled ? "" : void 0,
|
|
12062
|
+
"data-invalid": invalid ? "" : void 0,
|
|
12088
12063
|
role: "checkbox",
|
|
12089
12064
|
"aria-checked": indeterminate ? "mixed" : checked,
|
|
12090
12065
|
"aria-disabled": disabled,
|
|
12091
12066
|
tabIndex: disabled ? -1 : 0,
|
|
12092
12067
|
children: [
|
|
12093
|
-
!
|
|
12094
|
-
|
|
12095
|
-
indeterminate && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react12.Minus, { className: innerIconSize })
|
|
12068
|
+
!indeterminate && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react12.Check, { className: innerIconSize, "aria-hidden": true }),
|
|
12069
|
+
indeterminate && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react12.Minus, { className: innerIconSize, "aria-hidden": true })
|
|
12096
12070
|
]
|
|
12097
12071
|
}
|
|
12098
12072
|
);
|
|
@@ -12115,7 +12089,7 @@ var CheckboxUncontrolled = ({
|
|
|
12115
12089
|
|
|
12116
12090
|
// src/components/properties/PropertyBase.tsx
|
|
12117
12091
|
var import_lucide_react13 = require("lucide-react");
|
|
12118
|
-
var
|
|
12092
|
+
var import_clsx36 = __toESM(require("clsx"));
|
|
12119
12093
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
12120
12094
|
var PropertyBase = ({
|
|
12121
12095
|
name,
|
|
@@ -12129,14 +12103,14 @@ var PropertyBase = ({
|
|
|
12129
12103
|
}) => {
|
|
12130
12104
|
const translation = useHightideTranslation();
|
|
12131
12105
|
const requiredAndNoValue = softRequired && !hasValue;
|
|
12132
|
-
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: (0,
|
|
12106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: (0, import_clsx36.default)("flex-row-0 group", className), children: [
|
|
12133
12107
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
12134
12108
|
"div",
|
|
12135
12109
|
{
|
|
12136
|
-
className: (0,
|
|
12110
|
+
className: (0, import_clsx36.default)(
|
|
12137
12111
|
"flex-row-2 max-w-48 min-w-48 px-3 py-2 items-center rounded-l-xl border-2 border-r-0",
|
|
12138
12112
|
{
|
|
12139
|
-
"bg-property-title-background text-property-title-text group-hover:border-primary": !requiredAndNoValue,
|
|
12113
|
+
"bg-property-title-background text-property-title-text group-hover:border-primary group-focus-within:border-primary": !requiredAndNoValue,
|
|
12140
12114
|
"bg-warning text-surface-warning group-hover:border-warning border-warning/90": requiredAndNoValue
|
|
12141
12115
|
},
|
|
12142
12116
|
className
|
|
@@ -12150,10 +12124,10 @@ var PropertyBase = ({
|
|
|
12150
12124
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
12151
12125
|
"div",
|
|
12152
12126
|
{
|
|
12153
|
-
className: (0,
|
|
12127
|
+
className: (0, import_clsx36.default)(
|
|
12154
12128
|
"flex-row-2 grow px-3 py-2 justify-between items-center rounded-r-xl border-2 border-l-0 min-h-15",
|
|
12155
12129
|
{
|
|
12156
|
-
"bg-input-background text-input-text group-hover:border-primary": !requiredAndNoValue,
|
|
12130
|
+
"bg-input-background text-input-text group-hover:border-primary group-focus-within:border-primary": !requiredAndNoValue,
|
|
12157
12131
|
"bg-surface-warning group-hover:border-warning border-warning/90": requiredAndNoValue
|
|
12158
12132
|
},
|
|
12159
12133
|
className
|
|
@@ -12167,7 +12141,7 @@ var PropertyBase = ({
|
|
|
12167
12141
|
onClick: onRemove,
|
|
12168
12142
|
color: "negative",
|
|
12169
12143
|
coloringStyle: "text",
|
|
12170
|
-
className: (0,
|
|
12144
|
+
className: (0, import_clsx36.default)("items-center"),
|
|
12171
12145
|
disabled: !hasValue,
|
|
12172
12146
|
children: translation("remove")
|
|
12173
12147
|
}
|
|
@@ -12215,7 +12189,7 @@ var CheckboxProperty = ({
|
|
|
12215
12189
|
|
|
12216
12190
|
// src/components/properties/DateProperty.tsx
|
|
12217
12191
|
var import_lucide_react15 = require("lucide-react");
|
|
12218
|
-
var
|
|
12192
|
+
var import_clsx37 = __toESM(require("clsx"));
|
|
12219
12193
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
12220
12194
|
var DateProperty = ({
|
|
12221
12195
|
value,
|
|
@@ -12236,7 +12210,7 @@ var DateProperty = ({
|
|
|
12236
12210
|
input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
12237
12211
|
Input,
|
|
12238
12212
|
{
|
|
12239
|
-
className: (0,
|
|
12213
|
+
className: (0, import_clsx37.default)("default-style-none focus-style-none", { "bg-surface-warning": softRequired && !hasValue }),
|
|
12240
12214
|
value: dateText,
|
|
12241
12215
|
type: type === "dateTime" ? "datetime-local" : "date",
|
|
12242
12216
|
readOnly,
|
|
@@ -12258,7 +12232,7 @@ var DateProperty = ({
|
|
|
12258
12232
|
|
|
12259
12233
|
// src/components/properties/MultiSelectProperty.tsx
|
|
12260
12234
|
var import_lucide_react16 = require("lucide-react");
|
|
12261
|
-
var
|
|
12235
|
+
var import_clsx38 = __toESM(require("clsx"));
|
|
12262
12236
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
12263
12237
|
var MultiSelectProperty = ({
|
|
12264
12238
|
children,
|
|
@@ -12280,14 +12254,15 @@ var MultiSelectProperty = ({
|
|
|
12280
12254
|
onValuesChanged,
|
|
12281
12255
|
disabled: props.readOnly,
|
|
12282
12256
|
contentPanelProps: {
|
|
12283
|
-
className: (0,
|
|
12257
|
+
className: (0, import_clsx38.default)(
|
|
12284
12258
|
"!border-none !min-h-10"
|
|
12285
12259
|
)
|
|
12286
12260
|
},
|
|
12287
12261
|
chipDisplayProps: {
|
|
12288
|
-
className: (0,
|
|
12289
|
-
"
|
|
12290
|
-
|
|
12262
|
+
className: (0, import_clsx38.default)(
|
|
12263
|
+
"default-style-none flex flex-wrap gap-x-2 gap-y-2 items-center hover:cursor-pointer",
|
|
12264
|
+
{ "!bg-warning text-surface-warning": softRequired && !hasValue }
|
|
12265
|
+
)
|
|
12291
12266
|
},
|
|
12292
12267
|
children
|
|
12293
12268
|
}
|
|
@@ -12298,7 +12273,7 @@ var MultiSelectProperty = ({
|
|
|
12298
12273
|
|
|
12299
12274
|
// src/components/properties/NumberProperty.tsx
|
|
12300
12275
|
var import_lucide_react17 = require("lucide-react");
|
|
12301
|
-
var
|
|
12276
|
+
var import_clsx39 = __toESM(require("clsx"));
|
|
12302
12277
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
12303
12278
|
var NumberProperty = ({
|
|
12304
12279
|
value,
|
|
@@ -12323,12 +12298,12 @@ var NumberProperty = ({
|
|
|
12323
12298
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
12324
12299
|
"div",
|
|
12325
12300
|
{
|
|
12326
|
-
className: (0,
|
|
12301
|
+
className: (0, import_clsx39.default)("relative flex-row-2 max-w-56", { "text-warning": softRequired && !hasValue }),
|
|
12327
12302
|
children: [
|
|
12328
12303
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
12329
12304
|
Input,
|
|
12330
12305
|
{
|
|
12331
|
-
className: (0,
|
|
12306
|
+
className: (0, import_clsx39.default)("default-style-none focus-style-none w-full pr-8", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
|
|
12332
12307
|
value: value?.toString() ?? "",
|
|
12333
12308
|
type: "number",
|
|
12334
12309
|
readOnly,
|
|
@@ -12354,7 +12329,7 @@ var NumberProperty = ({
|
|
|
12354
12329
|
suffix && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
12355
12330
|
"span",
|
|
12356
12331
|
{
|
|
12357
|
-
className: (0,
|
|
12332
|
+
className: (0, import_clsx39.default)(
|
|
12358
12333
|
"absolute top-1/2 -translate-y-1/2 right-2",
|
|
12359
12334
|
{ "bg-surface-warning": softRequired && !hasValue }
|
|
12360
12335
|
),
|
|
@@ -12371,7 +12346,7 @@ var NumberProperty = ({
|
|
|
12371
12346
|
|
|
12372
12347
|
// src/components/properties/SelectProperty.tsx
|
|
12373
12348
|
var import_lucide_react18 = require("lucide-react");
|
|
12374
|
-
var
|
|
12349
|
+
var import_clsx40 = __toESM(require("clsx"));
|
|
12375
12350
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
12376
12351
|
var SingleSelectProperty = ({
|
|
12377
12352
|
children,
|
|
@@ -12394,8 +12369,8 @@ var SingleSelectProperty = ({
|
|
|
12394
12369
|
onValueChanged,
|
|
12395
12370
|
disabled: props.readOnly,
|
|
12396
12371
|
buttonProps: {
|
|
12397
|
-
className: (0,
|
|
12398
|
-
"
|
|
12372
|
+
className: (0, import_clsx40.default)(
|
|
12373
|
+
"default-style-none focus-style-none flex-row-2 w-full items-center",
|
|
12399
12374
|
{
|
|
12400
12375
|
"!bg-warning !text-surface-warning": softRequired && !hasValue
|
|
12401
12376
|
}
|
|
@@ -12411,11 +12386,11 @@ var SingleSelectProperty = ({
|
|
|
12411
12386
|
|
|
12412
12387
|
// src/components/properties/TextProperty.tsx
|
|
12413
12388
|
var import_lucide_react19 = require("lucide-react");
|
|
12414
|
-
var
|
|
12389
|
+
var import_clsx42 = __toESM(require("clsx"));
|
|
12415
12390
|
|
|
12416
12391
|
// src/components/user-action/Textarea.tsx
|
|
12417
12392
|
var import_react36 = require("react");
|
|
12418
|
-
var
|
|
12393
|
+
var import_clsx41 = __toESM(require("clsx"));
|
|
12419
12394
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
12420
12395
|
var Textarea = (0, import_react36.forwardRef)(function Textarea2({
|
|
12421
12396
|
id,
|
|
@@ -12424,10 +12399,8 @@ var Textarea = (0, import_react36.forwardRef)(function Textarea2({
|
|
|
12424
12399
|
onBlur,
|
|
12425
12400
|
onEditCompleted,
|
|
12426
12401
|
saveDelayOptions,
|
|
12427
|
-
defaultStyle = true,
|
|
12428
12402
|
invalid = false,
|
|
12429
12403
|
disabled = false,
|
|
12430
|
-
className,
|
|
12431
12404
|
...props
|
|
12432
12405
|
}, ref) {
|
|
12433
12406
|
const { restartTimer, clearTimer } = useDelay(saveDelayOptions);
|
|
@@ -12438,18 +12411,10 @@ var Textarea = (0, import_react36.forwardRef)(function Textarea2({
|
|
|
12438
12411
|
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
12439
12412
|
"textarea",
|
|
12440
12413
|
{
|
|
12414
|
+
...props,
|
|
12441
12415
|
ref,
|
|
12442
12416
|
id,
|
|
12443
|
-
|
|
12444
|
-
"resize-none w-full h-32 overflow-y-scroll",
|
|
12445
|
-
"py-2 px-3 rounded-md border-2 border-transparent focus-style-none",
|
|
12446
|
-
{
|
|
12447
|
-
"bg-input-background text-input-text hover:border-primary focus:border-primary": !disabled && !invalid,
|
|
12448
|
-
"bg-negative/20 text-negative hover:border-negative focus-visible:border-negative": invalid && !disabled && defaultStyle,
|
|
12449
|
-
"text-disabled bg-disabled-background border-disabled-border": disabled && defaultStyle
|
|
12450
|
-
},
|
|
12451
|
-
className
|
|
12452
|
-
),
|
|
12417
|
+
disabled,
|
|
12453
12418
|
onChange: (event) => {
|
|
12454
12419
|
const value = event.target.value;
|
|
12455
12420
|
restartTimer(() => {
|
|
@@ -12462,8 +12427,10 @@ var Textarea = (0, import_react36.forwardRef)(function Textarea2({
|
|
|
12462
12427
|
onBlur?.(event);
|
|
12463
12428
|
onEditCompletedWrapper(event.target.value);
|
|
12464
12429
|
},
|
|
12465
|
-
|
|
12466
|
-
|
|
12430
|
+
"data-name": props["data-name"] ?? "textarea",
|
|
12431
|
+
"data-value": props.value ? "" : void 0,
|
|
12432
|
+
"data-disabled": disabled ? "" : void 0,
|
|
12433
|
+
"data-invalid": invalid ? "" : void 0
|
|
12467
12434
|
}
|
|
12468
12435
|
);
|
|
12469
12436
|
});
|
|
@@ -12496,7 +12463,7 @@ var TextareaWithHeadline = ({
|
|
|
12496
12463
|
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
12497
12464
|
"div",
|
|
12498
12465
|
{
|
|
12499
|
-
className: (0,
|
|
12466
|
+
className: (0, import_clsx41.default)(
|
|
12500
12467
|
"group flex-col-3 border-2 rounded-lg",
|
|
12501
12468
|
{
|
|
12502
12469
|
"bg-input-background text-input-text hover:border-primary focus-within:border-primary": !disabled,
|
|
@@ -12511,11 +12478,10 @@ var TextareaWithHeadline = ({
|
|
|
12511
12478
|
{
|
|
12512
12479
|
...props,
|
|
12513
12480
|
id: usedId,
|
|
12514
|
-
className: (0,
|
|
12481
|
+
className: (0, import_clsx41.default)(
|
|
12515
12482
|
"border-transparent focus:ring-0 focus-visible:ring-0 resize-none h-32",
|
|
12516
12483
|
className
|
|
12517
|
-
)
|
|
12518
|
-
defaultStyle: false
|
|
12484
|
+
)
|
|
12519
12485
|
}
|
|
12520
12486
|
)
|
|
12521
12487
|
]
|
|
@@ -12545,11 +12511,11 @@ var TextProperty = ({
|
|
|
12545
12511
|
input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
12546
12512
|
Textarea,
|
|
12547
12513
|
{
|
|
12548
|
-
className: (0,
|
|
12549
|
-
"
|
|
12550
|
-
|
|
12514
|
+
className: (0, import_clsx42.default)(
|
|
12515
|
+
"default-style-none focus-style-none w-full",
|
|
12516
|
+
{ "bg-surface-warning placeholder-warning": softRequired && !hasValue }
|
|
12517
|
+
),
|
|
12551
12518
|
rows: 5,
|
|
12552
|
-
defaultStyle: false,
|
|
12553
12519
|
value: value ?? "",
|
|
12554
12520
|
readOnly,
|
|
12555
12521
|
placeholder: `${translation("text")}...`,
|
|
@@ -12574,12 +12540,12 @@ var TextProperty = ({
|
|
|
12574
12540
|
};
|
|
12575
12541
|
|
|
12576
12542
|
// src/components/table/FillerRowElement.tsx
|
|
12577
|
-
var
|
|
12543
|
+
var import_clsx43 = require("clsx");
|
|
12578
12544
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
12579
12545
|
var FillerRowElement = ({
|
|
12580
12546
|
className
|
|
12581
12547
|
}) => {
|
|
12582
|
-
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: (0,
|
|
12548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: (0, import_clsx43.clsx)("flex flex-row items-center w-1/2 h-4 text-disabled font-bold", className), children: "-" });
|
|
12583
12549
|
};
|
|
12584
12550
|
|
|
12585
12551
|
// src/components/table/Filter.ts
|
|
@@ -12598,17 +12564,17 @@ var TableFilters = {
|
|
|
12598
12564
|
|
|
12599
12565
|
// src/components/table/Table.tsx
|
|
12600
12566
|
var import_react42 = require("react");
|
|
12601
|
-
var
|
|
12567
|
+
var import_clsx47 = __toESM(require("clsx"));
|
|
12602
12568
|
var import_react_table = require("@tanstack/react-table");
|
|
12603
12569
|
|
|
12604
12570
|
// src/components/table/TableCell.tsx
|
|
12605
|
-
var
|
|
12571
|
+
var import_clsx44 = require("clsx");
|
|
12606
12572
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
12607
12573
|
var TableCell = ({
|
|
12608
12574
|
children,
|
|
12609
12575
|
className
|
|
12610
12576
|
}) => {
|
|
12611
|
-
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: (0,
|
|
12577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: (0, import_clsx44.clsx)("block max-w-full overflow-ellipsis truncate", className), children });
|
|
12612
12578
|
};
|
|
12613
12579
|
|
|
12614
12580
|
// src/hooks/useResizeCallbackWrapper.ts
|
|
@@ -12624,7 +12590,7 @@ var useResizeCallbackWrapper = (callback) => {
|
|
|
12624
12590
|
|
|
12625
12591
|
// src/components/table/TableSortButton.tsx
|
|
12626
12592
|
var import_lucide_react20 = require("lucide-react");
|
|
12627
|
-
var
|
|
12593
|
+
var import_clsx45 = __toESM(require("clsx"));
|
|
12628
12594
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
12629
12595
|
var TableSortButton = ({
|
|
12630
12596
|
sortDirection,
|
|
@@ -12648,7 +12614,7 @@ var TableSortButton = ({
|
|
|
12648
12614
|
layout: "icon",
|
|
12649
12615
|
color,
|
|
12650
12616
|
size,
|
|
12651
|
-
className: (0,
|
|
12617
|
+
className: (0, import_clsx45.default)(className),
|
|
12652
12618
|
...buttonProps,
|
|
12653
12619
|
children: icon
|
|
12654
12620
|
}
|
|
@@ -12660,7 +12626,7 @@ var import_lucide_react21 = require("lucide-react");
|
|
|
12660
12626
|
|
|
12661
12627
|
// src/components/user-action/Menu.tsx
|
|
12662
12628
|
var import_react40 = require("react");
|
|
12663
|
-
var
|
|
12629
|
+
var import_clsx46 = __toESM(require("clsx"));
|
|
12664
12630
|
|
|
12665
12631
|
// src/utils/bagFunctions.ts
|
|
12666
12632
|
var resolve = (children, bag) => {
|
|
@@ -12805,7 +12771,7 @@ var MenuItem = ({
|
|
|
12805
12771
|
}) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
12806
12772
|
"div",
|
|
12807
12773
|
{
|
|
12808
|
-
className: (0,
|
|
12774
|
+
className: (0, import_clsx46.default)("block px-3 py-1.5 first:rounded-t-md last:rounded-b-md text-sm font-semibold text-nowrap", {
|
|
12809
12775
|
"text-right": alignment === "right",
|
|
12810
12776
|
"text-left": alignment === "left",
|
|
12811
12777
|
"text-disabled cursor-not-allowed": isDisabled,
|
|
@@ -12879,7 +12845,7 @@ var Menu = ({
|
|
|
12879
12845
|
{
|
|
12880
12846
|
ref: menuRef,
|
|
12881
12847
|
onClick: (e) => e.stopPropagation(),
|
|
12882
|
-
className: (0,
|
|
12848
|
+
className: (0, import_clsx46.default)(
|
|
12883
12849
|
"absolute rounded-md bg-menu-background text-menu-text shadow-around-lg shadow-strong z-[300]",
|
|
12884
12850
|
{
|
|
12885
12851
|
"animate-pop-in": isOpen,
|
|
@@ -13229,12 +13195,12 @@ var Table = ({
|
|
|
13229
13195
|
}
|
|
13230
13196
|
return colSizes;
|
|
13231
13197
|
}, [table.getState().columnSizingInfo, table.getState().columnSizing]);
|
|
13232
|
-
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { ref, className: (0,
|
|
13233
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: (0,
|
|
13198
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { ref, className: (0, import_clsx47.default)("flex-col-4", className), children: [
|
|
13199
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: (0, import_clsx47.default)("flex-col-0 w-full overflow-auto", tableContainerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
13234
13200
|
"table",
|
|
13235
13201
|
{
|
|
13236
13202
|
ref: tableRef,
|
|
13237
|
-
className: (0,
|
|
13203
|
+
className: (0, import_clsx47.default)(tableClassName),
|
|
13238
13204
|
style: {
|
|
13239
13205
|
...columnSizeVars,
|
|
13240
13206
|
width: Math.floor(Math.max(table.getTotalSize() - columns.length, ref.current?.offsetWidth ?? table.getTotalSize()))
|
|
@@ -13256,7 +13222,7 @@ var Table = ({
|
|
|
13256
13222
|
"th",
|
|
13257
13223
|
{
|
|
13258
13224
|
colSpan: header.colSpan,
|
|
13259
|
-
className: (0,
|
|
13225
|
+
className: (0, import_clsx47.default)("relative group", header.column.columnDef.meta?.className),
|
|
13260
13226
|
children: [
|
|
13261
13227
|
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "flex-row-2 w-full", children: header.isPlaceholder ? null : /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex-row-1 items-center", children: [
|
|
13262
13228
|
header.column.getCanSort() && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
@@ -13427,7 +13393,7 @@ var TableWithSelection = ({
|
|
|
13427
13393
|
},
|
|
13428
13394
|
meta: {
|
|
13429
13395
|
...meta,
|
|
13430
|
-
bodyRowClassName: (0,
|
|
13396
|
+
bodyRowClassName: (0, import_clsx47.default)(
|
|
13431
13397
|
{ "cursor-pointer": !disableClickRowClickSelection },
|
|
13432
13398
|
meta?.bodyRowClassName
|
|
13433
13399
|
)
|
|
@@ -13439,7 +13405,7 @@ var TableWithSelection = ({
|
|
|
13439
13405
|
|
|
13440
13406
|
// src/components/user-action/CopyToClipboardWrapper.tsx
|
|
13441
13407
|
var import_react43 = require("react");
|
|
13442
|
-
var
|
|
13408
|
+
var import_clsx48 = require("clsx");
|
|
13443
13409
|
|
|
13444
13410
|
// src/utils/writeToClipboard.ts
|
|
13445
13411
|
var writeToClipboard = (text) => {
|
|
@@ -13482,7 +13448,7 @@ var CopyToClipboardWrapper = ({
|
|
|
13482
13448
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
13483
13449
|
"div",
|
|
13484
13450
|
{
|
|
13485
|
-
className: (0,
|
|
13451
|
+
className: (0, import_clsx48.clsx)("relative inline-block cursor-copy", containerClassName),
|
|
13486
13452
|
onMouseEnter: () => {
|
|
13487
13453
|
setIsShowingIndication(true);
|
|
13488
13454
|
},
|
|
@@ -13500,7 +13466,7 @@ var CopyToClipboardWrapper = ({
|
|
|
13500
13466
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
13501
13467
|
"div",
|
|
13502
13468
|
{
|
|
13503
|
-
className: (0,
|
|
13469
|
+
className: (0, import_clsx48.clsx)(
|
|
13504
13470
|
`absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
|
|
13505
13471
|
shadow-around-md bg-tooltip-background cursor-default pointer-events-none`,
|
|
13506
13472
|
"transition-opacity duration-200",
|
|
@@ -13523,7 +13489,7 @@ var CopyToClipboardWrapper = ({
|
|
|
13523
13489
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
13524
13490
|
"div",
|
|
13525
13491
|
{
|
|
13526
|
-
className: (0,
|
|
13492
|
+
className: (0, import_clsx48.clsx)(`absolute w-0 h-0`, triangleClasses[position]),
|
|
13527
13493
|
style: { ...triangleStyle[position], zIndex: zIndex + 1 }
|
|
13528
13494
|
}
|
|
13529
13495
|
)
|
|
@@ -13536,7 +13502,7 @@ var CopyToClipboardWrapper = ({
|
|
|
13536
13502
|
};
|
|
13537
13503
|
|
|
13538
13504
|
// src/components/user-action/DateAndTimePicker.tsx
|
|
13539
|
-
var
|
|
13505
|
+
var import_clsx49 = __toESM(require("clsx"));
|
|
13540
13506
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
13541
13507
|
var DateTimePicker = ({
|
|
13542
13508
|
value = /* @__PURE__ */ new Date(),
|
|
@@ -13573,7 +13539,7 @@ var DateTimePicker = ({
|
|
|
13573
13539
|
TimePicker,
|
|
13574
13540
|
{
|
|
13575
13541
|
...timePickerProps,
|
|
13576
|
-
className: (0,
|
|
13542
|
+
className: (0, import_clsx49.default)("min-h-71 max-h-71", { "justify-between w-full": mode === "time" }),
|
|
13577
13543
|
time: value,
|
|
13578
13544
|
onChange
|
|
13579
13545
|
}
|
|
@@ -13600,7 +13566,7 @@ var DateTimePicker = ({
|
|
|
13600
13566
|
|
|
13601
13567
|
// src/components/user-action/ScrollPicker.tsx
|
|
13602
13568
|
var import_react44 = require("react");
|
|
13603
|
-
var
|
|
13569
|
+
var import_clsx50 = __toESM(require("clsx"));
|
|
13604
13570
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
13605
13571
|
var up = 1;
|
|
13606
13572
|
var down = -1;
|
|
@@ -13770,7 +13736,7 @@ var ScrollPicker = ({
|
|
|
13770
13736
|
children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
13771
13737
|
"div",
|
|
13772
13738
|
{
|
|
13773
|
-
className: (0,
|
|
13739
|
+
className: (0, import_clsx50.default)(
|
|
13774
13740
|
`flex-col-2 items-center justify-center rounded-md`,
|
|
13775
13741
|
{
|
|
13776
13742
|
"text-primary font-bold": currentIndex === index,
|
|
@@ -13796,42 +13762,9 @@ var ScrollPicker = ({
|
|
|
13796
13762
|
);
|
|
13797
13763
|
};
|
|
13798
13764
|
|
|
13799
|
-
// src/components/user-action/SearchBar.tsx
|
|
13800
|
-
var import_lucide_react23 = require("lucide-react");
|
|
13801
|
-
var import_clsx52 = require("clsx");
|
|
13802
|
-
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
13803
|
-
var SearchBar = ({
|
|
13804
|
-
placeholder,
|
|
13805
|
-
onSearch,
|
|
13806
|
-
disableOnSearch,
|
|
13807
|
-
containerClassName,
|
|
13808
|
-
...inputProps
|
|
13809
|
-
}) => {
|
|
13810
|
-
const translation = useHightideTranslation();
|
|
13811
|
-
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: (0, import_clsx52.clsx)("flex-row-2 justify-between items-center", containerClassName), children: [
|
|
13812
|
-
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
13813
|
-
Input,
|
|
13814
|
-
{
|
|
13815
|
-
...inputProps,
|
|
13816
|
-
placeholder: placeholder ?? translation("search")
|
|
13817
|
-
}
|
|
13818
|
-
),
|
|
13819
|
-
onSearch && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
13820
|
-
Button,
|
|
13821
|
-
{
|
|
13822
|
-
layout: "icon",
|
|
13823
|
-
color: "neutral",
|
|
13824
|
-
disabled: disableOnSearch,
|
|
13825
|
-
onClick: onSearch,
|
|
13826
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_lucide_react23.Search, { className: "w-full h-full" })
|
|
13827
|
-
}
|
|
13828
|
-
)
|
|
13829
|
-
] });
|
|
13830
|
-
};
|
|
13831
|
-
|
|
13832
13765
|
// src/components/user-action/Tooltip.tsx
|
|
13833
|
-
var
|
|
13834
|
-
var
|
|
13766
|
+
var import_clsx51 = require("clsx");
|
|
13767
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
13835
13768
|
var Tooltip = ({
|
|
13836
13769
|
tooltip,
|
|
13837
13770
|
children,
|
|
@@ -13861,17 +13794,17 @@ var Tooltip = ({
|
|
|
13861
13794
|
right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
|
|
13862
13795
|
};
|
|
13863
13796
|
const zIndex = useZIndexRegister(isHovered);
|
|
13864
|
-
return /* @__PURE__ */ (0,
|
|
13797
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
13865
13798
|
"div",
|
|
13866
13799
|
{
|
|
13867
|
-
className: (0,
|
|
13800
|
+
className: (0, import_clsx51.clsx)("relative inline-block", containerClassName),
|
|
13868
13801
|
...handlers,
|
|
13869
13802
|
children: [
|
|
13870
13803
|
children,
|
|
13871
|
-
isHovered && /* @__PURE__ */ (0,
|
|
13804
|
+
isHovered && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
13872
13805
|
"div",
|
|
13873
13806
|
{
|
|
13874
|
-
className: (0,
|
|
13807
|
+
className: (0, import_clsx51.clsx)(
|
|
13875
13808
|
`opacity-0 absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
|
|
13876
13809
|
animate-tooltip-fade-in shadow-around-md bg-tooltip-background`,
|
|
13877
13810
|
positionClasses[position],
|
|
@@ -13880,10 +13813,10 @@ var Tooltip = ({
|
|
|
13880
13813
|
style: { zIndex, animationDelay: animationDelay + "ms" },
|
|
13881
13814
|
children: [
|
|
13882
13815
|
tooltip,
|
|
13883
|
-
/* @__PURE__ */ (0,
|
|
13816
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
13884
13817
|
"div",
|
|
13885
13818
|
{
|
|
13886
|
-
className: (0,
|
|
13819
|
+
className: (0, import_clsx51.clsx)(`absolute w-0 h-0`, triangleClasses[position]),
|
|
13887
13820
|
style: { ...triangleStyle[position], zIndex: zIndex + 1 }
|
|
13888
13821
|
}
|
|
13889
13822
|
)
|
|
@@ -13898,8 +13831,8 @@ var Tooltip = ({
|
|
|
13898
13831
|
// src/components/user-action/input/InsideLabelInput.tsx
|
|
13899
13832
|
var import_react45 = require("react");
|
|
13900
13833
|
var import_react46 = require("react");
|
|
13901
|
-
var
|
|
13902
|
-
var
|
|
13834
|
+
var import_clsx52 = __toESM(require("clsx"));
|
|
13835
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
13903
13836
|
var InsideLabelInput = (0, import_react46.forwardRef)(function InsideLabelInput2({
|
|
13904
13837
|
id: customId,
|
|
13905
13838
|
label,
|
|
@@ -13909,13 +13842,13 @@ var InsideLabelInput = (0, import_react46.forwardRef)(function InsideLabelInput2
|
|
|
13909
13842
|
const [isFocused, setIsFocused] = (0, import_react46.useState)(false);
|
|
13910
13843
|
const generatedId = (0, import_react45.useId)();
|
|
13911
13844
|
const id = customId ?? generatedId;
|
|
13912
|
-
return /* @__PURE__ */ (0,
|
|
13913
|
-
/* @__PURE__ */ (0,
|
|
13845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: (0, import_clsx52.default)("relative"), children: [
|
|
13846
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
13914
13847
|
Input,
|
|
13915
13848
|
{
|
|
13916
13849
|
...props,
|
|
13917
13850
|
id,
|
|
13918
|
-
className: (0,
|
|
13851
|
+
className: (0, import_clsx52.default)("h-14 px-4 pb-2 py-6.5", props.className),
|
|
13919
13852
|
ref: forwardedRef,
|
|
13920
13853
|
"aria-labelledby": id + "-label",
|
|
13921
13854
|
onFocus: (event) => {
|
|
@@ -13928,13 +13861,13 @@ var InsideLabelInput = (0, import_react46.forwardRef)(function InsideLabelInput2
|
|
|
13928
13861
|
}
|
|
13929
13862
|
}
|
|
13930
13863
|
),
|
|
13931
|
-
/* @__PURE__ */ (0,
|
|
13864
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
13932
13865
|
"label",
|
|
13933
13866
|
{
|
|
13934
13867
|
id: id + "-label",
|
|
13935
13868
|
"aria-hidden": true,
|
|
13936
13869
|
"data-display": isFocused || !!value ? "small" : "full",
|
|
13937
|
-
className: (0,
|
|
13870
|
+
className: (0, import_clsx52.default)(
|
|
13938
13871
|
// margin left to account for the border which is ignored for absolute positions
|
|
13939
13872
|
"absolute left-4 ml-0.5 top-2 transition-all delay-25 pointer-events-none touch-none",
|
|
13940
13873
|
"data-[display=small]:top-2 data-[display=small]:h-force-4.5 data-[display=small]:typography-caption-sm data-[display=small]:overflow-y-hidden",
|
|
@@ -13950,7 +13883,7 @@ var InsideLabelInputUncontrolled = ({
|
|
|
13950
13883
|
...props
|
|
13951
13884
|
}) => {
|
|
13952
13885
|
const [value, setValue] = useOverwritableState(initialValue, props.onChangeText);
|
|
13953
|
-
return /* @__PURE__ */ (0,
|
|
13886
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
13954
13887
|
InsideLabelInput,
|
|
13955
13888
|
{
|
|
13956
13889
|
...props,
|
|
@@ -13960,10 +13893,46 @@ var InsideLabelInputUncontrolled = ({
|
|
|
13960
13893
|
);
|
|
13961
13894
|
};
|
|
13962
13895
|
|
|
13896
|
+
// src/components/user-action/input/SearchBar.tsx
|
|
13897
|
+
var import_lucide_react23 = require("lucide-react");
|
|
13898
|
+
var import_clsx53 = require("clsx");
|
|
13899
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
13900
|
+
var SearchBar = ({
|
|
13901
|
+
onSearch,
|
|
13902
|
+
searchButtonProps,
|
|
13903
|
+
containerProps,
|
|
13904
|
+
...inputProps
|
|
13905
|
+
}) => {
|
|
13906
|
+
const translation = useHightideTranslation();
|
|
13907
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { ...containerProps, className: (0, import_clsx53.clsx)("relative", containerProps?.className), children: [
|
|
13908
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
13909
|
+
InputUncontrolled,
|
|
13910
|
+
{
|
|
13911
|
+
...inputProps,
|
|
13912
|
+
placeholder: inputProps.placeholder ?? translation("search"),
|
|
13913
|
+
className: (0, import_clsx53.clsx)("pr-10 w-full", inputProps.className)
|
|
13914
|
+
}
|
|
13915
|
+
),
|
|
13916
|
+
onSearch && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
13917
|
+
Button,
|
|
13918
|
+
{
|
|
13919
|
+
...searchButtonProps,
|
|
13920
|
+
size: "small",
|
|
13921
|
+
layout: "icon",
|
|
13922
|
+
color: "neutral",
|
|
13923
|
+
coloringStyle: "text",
|
|
13924
|
+
onClick: (event) => onSearch(event),
|
|
13925
|
+
className: (0, import_clsx53.clsx)("absolute right-1 top-1/2 -translate-y-1/2", searchButtonProps?.className),
|
|
13926
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_lucide_react23.Search, { className: "w-full h-full" })
|
|
13927
|
+
}
|
|
13928
|
+
)
|
|
13929
|
+
] });
|
|
13930
|
+
};
|
|
13931
|
+
|
|
13963
13932
|
// src/components/user-action/input/ToggleableInput.tsx
|
|
13964
13933
|
var import_react47 = require("react");
|
|
13965
13934
|
var import_lucide_react24 = require("lucide-react");
|
|
13966
|
-
var
|
|
13935
|
+
var import_clsx54 = __toESM(require("clsx"));
|
|
13967
13936
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
13968
13937
|
var ToggleableInput = (0, import_react47.forwardRef)(function ToggleableInput2({
|
|
13969
13938
|
value,
|
|
@@ -13979,7 +13948,7 @@ var ToggleableInput = (0, import_react47.forwardRef)(function ToggleableInput2({
|
|
|
13979
13948
|
innerRef.current?.focus();
|
|
13980
13949
|
}
|
|
13981
13950
|
}, [isEditing]);
|
|
13982
|
-
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: (0,
|
|
13951
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: (0, import_clsx54.default)("relative flex-row-2", { "flex-1": isEditing }), children: [
|
|
13983
13952
|
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
13984
13953
|
Input,
|
|
13985
13954
|
{
|
|
@@ -13999,16 +13968,16 @@ var ToggleableInput = (0, import_react47.forwardRef)(function ToggleableInput2({
|
|
|
13999
13968
|
...editCompleteOptions,
|
|
14000
13969
|
allowEnterComplete: true
|
|
14001
13970
|
},
|
|
14002
|
-
|
|
14003
|
-
|
|
13971
|
+
"data-name": props["data-name"] ?? "togglable-input",
|
|
13972
|
+
"data-isEditing": isEditing ? "" : void 0,
|
|
13973
|
+
className: (0, import_clsx54.default)(`w-full rounded-md`, {
|
|
14004
13974
|
"text-transparent": !isEditing
|
|
14005
|
-
})
|
|
14006
|
-
defaultStyle: false
|
|
13975
|
+
})
|
|
14007
13976
|
}
|
|
14008
13977
|
),
|
|
14009
13978
|
!isEditing && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "absolute left-0 flex-row-2 items-center pointer-events-none touch-none w-full overflow-hidden", children: [
|
|
14010
|
-
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: (0,
|
|
14011
|
-
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react24.Pencil, { className: (0,
|
|
13979
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: (0, import_clsx54.default)(" truncate"), children: value }),
|
|
13980
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react24.Pencil, { className: (0, import_clsx54.default)(`size-force-4`, { "text-transparent": isEditing }) })
|
|
14012
13981
|
] })
|
|
14013
13982
|
] });
|
|
14014
13983
|
});
|