@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.mjs
CHANGED
|
@@ -7306,7 +7306,7 @@ var ButtonUtil = {
|
|
|
7306
7306
|
warning: "warning",
|
|
7307
7307
|
negative: "negative",
|
|
7308
7308
|
neutral: "neutral",
|
|
7309
|
-
none: ""
|
|
7309
|
+
none: "reset-coloring-variables"
|
|
7310
7310
|
}
|
|
7311
7311
|
};
|
|
7312
7312
|
var Button = forwardRef(function SolidButton({
|
|
@@ -8448,7 +8448,6 @@ var DiscardChangesDialog = ({
|
|
|
8448
8448
|
|
|
8449
8449
|
// src/components/user-action/input/Input.tsx
|
|
8450
8450
|
import { forwardRef as forwardRef3, useImperativeHandle, useRef as useRef5 } from "react";
|
|
8451
|
-
import clsx11 from "clsx";
|
|
8452
8451
|
|
|
8453
8452
|
// src/hooks/useDelay.ts
|
|
8454
8453
|
import { useEffect as useEffect12, useState as useState11 } from "react";
|
|
@@ -8563,8 +8562,6 @@ var Input = forwardRef3(function Input2({
|
|
|
8563
8562
|
editCompleteOptions,
|
|
8564
8563
|
disabled = false,
|
|
8565
8564
|
invalid = false,
|
|
8566
|
-
defaultStyle = true,
|
|
8567
|
-
className,
|
|
8568
8565
|
...props
|
|
8569
8566
|
}, forwardedRef) {
|
|
8570
8567
|
const {
|
|
@@ -8587,15 +8584,6 @@ var Input = forwardRef3(function Input2({
|
|
|
8587
8584
|
ref: innerRef,
|
|
8588
8585
|
value,
|
|
8589
8586
|
disabled,
|
|
8590
|
-
className: defaultStyle ? clsx11(
|
|
8591
|
-
"px-3 py-2 rounded-md text-sm h-10 border-2 border-transparent focus-style-none",
|
|
8592
|
-
{
|
|
8593
|
-
"bg-input-background text-input-text hover:border-primary focus:border-primary": !disabled && !invalid,
|
|
8594
|
-
"bg-negative/20 text-negative hover:border-negative focus-visible:border-negative": !disabled && invalid,
|
|
8595
|
-
"bg-disabled-background text-disabled border-disabled-border": disabled
|
|
8596
|
-
},
|
|
8597
|
-
className
|
|
8598
|
-
) : className,
|
|
8599
8587
|
onKeyDown: (event) => {
|
|
8600
8588
|
props.onKeyDown?.(event);
|
|
8601
8589
|
if (!allowEnterComplete) {
|
|
@@ -8624,6 +8612,10 @@ var Input = forwardRef3(function Input2({
|
|
|
8624
8612
|
});
|
|
8625
8613
|
onChangeText?.(value2);
|
|
8626
8614
|
},
|
|
8615
|
+
"data-name": props["data-name"] ?? "input",
|
|
8616
|
+
"data-value": value ? "" : void 0,
|
|
8617
|
+
"data-disabled": disabled ? "" : void 0,
|
|
8618
|
+
"data-invalid": invalid ? "" : void 0,
|
|
8627
8619
|
"aria-invalid": props["aria-invalid"] ?? invalid,
|
|
8628
8620
|
"aria-disabled": props["aria-disabled"] ?? disabled
|
|
8629
8621
|
}
|
|
@@ -8675,7 +8667,7 @@ import {
|
|
|
8675
8667
|
useRef as useRef6,
|
|
8676
8668
|
useState as useState13
|
|
8677
8669
|
} from "react";
|
|
8678
|
-
import
|
|
8670
|
+
import clsx12 from "clsx";
|
|
8679
8671
|
|
|
8680
8672
|
// src/utils/match.ts
|
|
8681
8673
|
var match = (key, values) => {
|
|
@@ -8686,7 +8678,7 @@ var match = (key, values) => {
|
|
|
8686
8678
|
import { CheckIcon, Plus, XIcon } from "lucide-react";
|
|
8687
8679
|
|
|
8688
8680
|
// src/components/layout/Chip.tsx
|
|
8689
|
-
import
|
|
8681
|
+
import clsx11 from "clsx";
|
|
8690
8682
|
import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
8691
8683
|
var chipColors = ButtonUtil.colors;
|
|
8692
8684
|
var ChipUtil = {
|
|
@@ -8706,7 +8698,7 @@ var Chip = ({
|
|
|
8706
8698
|
"div",
|
|
8707
8699
|
{
|
|
8708
8700
|
...restProps,
|
|
8709
|
-
className:
|
|
8701
|
+
className: clsx11(
|
|
8710
8702
|
`flex-row-0 w-fit font-semibold coloring-solid`,
|
|
8711
8703
|
colorMapping,
|
|
8712
8704
|
{
|
|
@@ -8731,7 +8723,7 @@ var ChipList = ({
|
|
|
8731
8723
|
list,
|
|
8732
8724
|
className = ""
|
|
8733
8725
|
}) => {
|
|
8734
|
-
return /* @__PURE__ */ jsx15("div", { className:
|
|
8726
|
+
return /* @__PURE__ */ jsx15("div", { className: clsx11("flex flex-wrap gap-x-2 gap-y-2", className), children: list.map((value, index) => /* @__PURE__ */ jsx15(
|
|
8735
8727
|
Chip,
|
|
8736
8728
|
{
|
|
8737
8729
|
...value,
|
|
@@ -9091,7 +9083,7 @@ var SelectOption = forwardRef4(
|
|
|
9091
9083
|
"data-highlighted": isHighlighted ? "" : void 0,
|
|
9092
9084
|
"data-selected": isSelected ? "" : void 0,
|
|
9093
9085
|
"data-disabled": disabled ? "" : void 0,
|
|
9094
|
-
className:
|
|
9086
|
+
className: clsx12(
|
|
9095
9087
|
"flex-row-1 items-center px-2 py-1 rounded-md",
|
|
9096
9088
|
"data-highlighted:bg-primary/20",
|
|
9097
9089
|
"data-disabled:text-disabled data-disabled:cursor-not-allowed",
|
|
@@ -9117,7 +9109,7 @@ var SelectOption = forwardRef4(
|
|
|
9117
9109
|
iconAppearance === "left" && (state.value.length > 0 || config.isMultiSelect) && /* @__PURE__ */ jsx16(
|
|
9118
9110
|
CheckIcon,
|
|
9119
9111
|
{
|
|
9120
|
-
className:
|
|
9112
|
+
className: clsx12("w-4 h-4", { "opacity-0": !isSelected || disabled }),
|
|
9121
9113
|
"aria-hidden": true
|
|
9122
9114
|
}
|
|
9123
9115
|
),
|
|
@@ -9125,7 +9117,7 @@ var SelectOption = forwardRef4(
|
|
|
9125
9117
|
iconAppearance === "right" && (state.value.length > 0 || config.isMultiSelect) && /* @__PURE__ */ jsx16(
|
|
9126
9118
|
CheckIcon,
|
|
9127
9119
|
{
|
|
9128
|
-
className:
|
|
9120
|
+
className: clsx12("w-4 h-4", { "opacity-0": !isSelected || disabled }),
|
|
9129
9121
|
"aria-hidden": true
|
|
9130
9122
|
}
|
|
9131
9123
|
)
|
|
@@ -9173,19 +9165,8 @@ var SelectButton = forwardRef4(function SelectButton2({ placeholder, selectedDis
|
|
|
9173
9165
|
break;
|
|
9174
9166
|
}
|
|
9175
9167
|
},
|
|
9176
|
-
|
|
9177
|
-
|
|
9178
|
-
{
|
|
9179
|
-
"bg-input-background text-placeholder": !hasValue && !disabled && !invalid,
|
|
9180
|
-
"bg-input-background text-input-text": hasValue && !disabled && !invalid,
|
|
9181
|
-
"bg-negative/20": !disabled && invalid,
|
|
9182
|
-
"text-placeholder": !hasValue && !disabled,
|
|
9183
|
-
"text-negative": hasValue && !disabled && invalid,
|
|
9184
|
-
"bg-disabled-background text-disabled": disabled
|
|
9185
|
-
},
|
|
9186
|
-
props.className
|
|
9187
|
-
),
|
|
9188
|
-
"data-placeholder": !hasValue ? "" : void 0,
|
|
9168
|
+
"data-name": props["data-name"] ?? "select-button",
|
|
9169
|
+
"data-value": hasValue ? "" : void 0,
|
|
9189
9170
|
"data-disabled": disabled ? "" : void 0,
|
|
9190
9171
|
"data-invalid": invalid ? "" : void 0,
|
|
9191
9172
|
"aria-invalid": invalid,
|
|
@@ -9194,21 +9175,11 @@ var SelectButton = forwardRef4(function SelectButton2({ placeholder, selectedDis
|
|
|
9194
9175
|
"aria-expanded": state.isOpen,
|
|
9195
9176
|
"aria-controls": state.isOpen ? `${state.id}-listbox` : void 0,
|
|
9196
9177
|
children: [
|
|
9197
|
-
hasValue ? selectedDisplay?.(state.value) ?? /* @__PURE__ */ jsx16("div", { className:
|
|
9178
|
+
hasValue ? selectedDisplay?.(state.value) ?? /* @__PURE__ */ jsx16("div", { className: clsx12("flex flex-wrap gap-x-1 gap-y-2"), children: state.selectedOptions.map(({ value, label }, index) => /* @__PURE__ */ jsxs11("span", { className: "flex-row-0", children: [
|
|
9198
9179
|
label,
|
|
9199
9180
|
index < state.value.length - 1 && /* @__PURE__ */ jsx16("span", { children: "," })
|
|
9200
9181
|
] }, value)) }) : placeholder ?? translation("clickToSelect"),
|
|
9201
|
-
/* @__PURE__ */ jsx16(
|
|
9202
|
-
ExpansionIcon,
|
|
9203
|
-
{
|
|
9204
|
-
isExpanded: state.isOpen,
|
|
9205
|
-
className: clsx13({
|
|
9206
|
-
"text-input-text": !disabled && !invalid,
|
|
9207
|
-
"text-negative": !disabled && invalid,
|
|
9208
|
-
"text-disabled": disabled
|
|
9209
|
-
})
|
|
9210
|
-
}
|
|
9211
|
-
)
|
|
9182
|
+
/* @__PURE__ */ jsx16(ExpansionIcon, { isExpanded: state.isOpen })
|
|
9212
9183
|
]
|
|
9213
9184
|
}
|
|
9214
9185
|
);
|
|
@@ -9229,10 +9200,12 @@ var SelectChipDisplay = forwardRef4(function SelectChipDisplay2({ ...props }, re
|
|
|
9229
9200
|
{
|
|
9230
9201
|
...props,
|
|
9231
9202
|
ref: innerRef,
|
|
9232
|
-
|
|
9233
|
-
|
|
9234
|
-
props.
|
|
9235
|
-
|
|
9203
|
+
onClick: (event) => {
|
|
9204
|
+
toggleOpen();
|
|
9205
|
+
props.onClick?.(event);
|
|
9206
|
+
},
|
|
9207
|
+
"data-name": props["data-name"] ?? "select-button-chips",
|
|
9208
|
+
"data-value": state.value.length > 0 ? "" : void 0,
|
|
9236
9209
|
"data-disabled": disabled ? "" : void 0,
|
|
9237
9210
|
"data-invalid": invalid ? "" : void 0,
|
|
9238
9211
|
"aria-invalid": invalid,
|
|
@@ -9246,11 +9219,11 @@ var SelectChipDisplay = forwardRef4(function SelectChipDisplay2({ ...props }, re
|
|
|
9246
9219
|
onClick: () => {
|
|
9247
9220
|
item.toggleSelection(value, false);
|
|
9248
9221
|
},
|
|
9249
|
-
size: "
|
|
9222
|
+
size: "tiny",
|
|
9250
9223
|
color: "negative",
|
|
9251
9224
|
coloringStyle: "text",
|
|
9252
|
-
className: "flex-row-0 items-center
|
|
9253
|
-
children: /* @__PURE__ */ jsx16(XIcon, { className: "
|
|
9225
|
+
className: "flex-row-0 items-center",
|
|
9226
|
+
children: /* @__PURE__ */ jsx16(XIcon, { className: "size-5" })
|
|
9254
9227
|
}
|
|
9255
9228
|
)
|
|
9256
9229
|
] }, value)),
|
|
@@ -9258,7 +9231,10 @@ var SelectChipDisplay = forwardRef4(function SelectChipDisplay2({ ...props }, re
|
|
|
9258
9231
|
Button,
|
|
9259
9232
|
{
|
|
9260
9233
|
id: state.id,
|
|
9261
|
-
onClick: () =>
|
|
9234
|
+
onClick: (event) => {
|
|
9235
|
+
event.stopPropagation();
|
|
9236
|
+
toggleOpen();
|
|
9237
|
+
},
|
|
9262
9238
|
onKeyDown: (event) => {
|
|
9263
9239
|
switch (event.key) {
|
|
9264
9240
|
case "ArrowDown":
|
|
@@ -9276,6 +9252,7 @@ var SelectChipDisplay = forwardRef4(function SelectChipDisplay2({ ...props }, re
|
|
|
9276
9252
|
"aria-haspopup": "listbox",
|
|
9277
9253
|
"aria-expanded": state.isOpen,
|
|
9278
9254
|
"aria-controls": state.isOpen ? `${state.id}-listbox` : void 0,
|
|
9255
|
+
className: "size-9",
|
|
9279
9256
|
children: /* @__PURE__ */ jsx16(Plus, {})
|
|
9280
9257
|
}
|
|
9281
9258
|
)
|
|
@@ -9309,7 +9286,7 @@ var SelectContent = forwardRef4(
|
|
|
9309
9286
|
"div",
|
|
9310
9287
|
{
|
|
9311
9288
|
id: `select-container-${state.id}`,
|
|
9312
|
-
className:
|
|
9289
|
+
className: clsx12("fixed inset-0 w-screen h-screen", containerClassName),
|
|
9313
9290
|
style: { zIndex },
|
|
9314
9291
|
hidden: !state.isOpen,
|
|
9315
9292
|
children: [
|
|
@@ -9318,7 +9295,7 @@ var SelectContent = forwardRef4(
|
|
|
9318
9295
|
{
|
|
9319
9296
|
id: `select-background-${state.id}`,
|
|
9320
9297
|
onClick: () => trigger.toggleOpen(false),
|
|
9321
|
-
className:
|
|
9298
|
+
className: clsx12("fixed inset-0 w-screen h-screen")
|
|
9322
9299
|
}
|
|
9323
9300
|
),
|
|
9324
9301
|
/* @__PURE__ */ jsx16(
|
|
@@ -9367,7 +9344,7 @@ var SelectContent = forwardRef4(
|
|
|
9367
9344
|
break;
|
|
9368
9345
|
}
|
|
9369
9346
|
},
|
|
9370
|
-
className:
|
|
9347
|
+
className: clsx12("flex-col-0 p-2 bg-menu-background text-menu-text rounded-md shadow-hw-bottom focus-outline-within overflow-auto", props.className),
|
|
9371
9348
|
style: {
|
|
9372
9349
|
opacity: position ? void 0 : 0,
|
|
9373
9350
|
position: "fixed",
|
|
@@ -9517,7 +9494,7 @@ var LanguageDialog = ({
|
|
|
9517
9494
|
|
|
9518
9495
|
// src/components/dialog/ThemeDialog.tsx
|
|
9519
9496
|
import { MonitorCog, MoonIcon, SunIcon } from "lucide-react";
|
|
9520
|
-
import
|
|
9497
|
+
import clsx13 from "clsx";
|
|
9521
9498
|
|
|
9522
9499
|
// src/theming/useTheme.tsx
|
|
9523
9500
|
import { createContext as createContext3, useCallback as useCallback7, useContext as useContext3, useEffect as useEffect15, useMemo as useMemo4, useState as useState14 } from "react";
|
|
@@ -9607,11 +9584,11 @@ var useTheme = () => {
|
|
|
9607
9584
|
import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
9608
9585
|
var ThemeIcon = ({ theme, className }) => {
|
|
9609
9586
|
if (theme === "dark") {
|
|
9610
|
-
return /* @__PURE__ */ jsx19(MoonIcon, { className:
|
|
9587
|
+
return /* @__PURE__ */ jsx19(MoonIcon, { className: clsx13("w-4 h-4", className) });
|
|
9611
9588
|
} else if (theme === "light") {
|
|
9612
|
-
return /* @__PURE__ */ jsx19(SunIcon, { className:
|
|
9589
|
+
return /* @__PURE__ */ jsx19(SunIcon, { className: clsx13("w-4 h-4", className) });
|
|
9613
9590
|
} else {
|
|
9614
|
-
return /* @__PURE__ */ jsx19(MonitorCog, { className:
|
|
9591
|
+
return /* @__PURE__ */ jsx19(MonitorCog, { className: clsx13("w-4 h-4", className) });
|
|
9615
9592
|
}
|
|
9616
9593
|
};
|
|
9617
9594
|
var ThemeDialog = ({
|
|
@@ -9657,10 +9634,10 @@ var ThemeDialog = ({
|
|
|
9657
9634
|
|
|
9658
9635
|
// src/components/form/FormElementWrapper.tsx
|
|
9659
9636
|
import { useId as useId5 } from "react";
|
|
9660
|
-
import { clsx as
|
|
9637
|
+
import { clsx as clsx15 } from "clsx";
|
|
9661
9638
|
|
|
9662
9639
|
// src/components/user-action/Label.tsx
|
|
9663
|
-
import
|
|
9640
|
+
import clsx14 from "clsx";
|
|
9664
9641
|
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
9665
9642
|
var styleMapping = {
|
|
9666
9643
|
md: "typography-label-md color-label-text",
|
|
@@ -9672,7 +9649,7 @@ var Label = ({
|
|
|
9672
9649
|
className,
|
|
9673
9650
|
...props
|
|
9674
9651
|
}) => {
|
|
9675
|
-
return /* @__PURE__ */ jsx20("label", { ...props, className:
|
|
9652
|
+
return /* @__PURE__ */ jsx20("label", { ...props, className: clsx14(styleMapping[size], className), children });
|
|
9676
9653
|
};
|
|
9677
9654
|
|
|
9678
9655
|
// src/components/form/FormElementWrapper.tsx
|
|
@@ -9723,7 +9700,7 @@ var FormElementWrapper = ({
|
|
|
9723
9700
|
"aria-invalid": !!error,
|
|
9724
9701
|
"aria-errormessage": error ? errorId : void 0
|
|
9725
9702
|
};
|
|
9726
|
-
return /* @__PURE__ */ jsxs14("div", { className:
|
|
9703
|
+
return /* @__PURE__ */ jsxs14("div", { className: clsx15("relative flex flex-col gap-y-1", containerClassName), children: [
|
|
9727
9704
|
label && /* @__PURE__ */ jsxs14(
|
|
9728
9705
|
Label,
|
|
9729
9706
|
{
|
|
@@ -9731,7 +9708,7 @@ var FormElementWrapper = ({
|
|
|
9731
9708
|
id: labelId,
|
|
9732
9709
|
htmlFor: usedId,
|
|
9733
9710
|
size: "lg",
|
|
9734
|
-
className:
|
|
9711
|
+
className: clsx15("flex-row-1 items-start", labelProps?.className),
|
|
9735
9712
|
children: [
|
|
9736
9713
|
label,
|
|
9737
9714
|
required && /* @__PURE__ */ jsx21("div", { role: "none", className: "bg-primary w-2 h-2 rounded-full" })
|
|
@@ -9743,7 +9720,7 @@ var FormElementWrapper = ({
|
|
|
9743
9720
|
{
|
|
9744
9721
|
...descriptionProps,
|
|
9745
9722
|
id: descriptionId,
|
|
9746
|
-
className:
|
|
9723
|
+
className: clsx15("text-description text-sm", descriptionProps?.className),
|
|
9747
9724
|
children: description
|
|
9748
9725
|
}
|
|
9749
9726
|
),
|
|
@@ -9753,7 +9730,7 @@ var FormElementWrapper = ({
|
|
|
9753
9730
|
{
|
|
9754
9731
|
...errorProps,
|
|
9755
9732
|
id: errorId,
|
|
9756
|
-
className:
|
|
9733
|
+
className: clsx15("absolute top-[calc(100%_+_0.25rem)] left-0 text-negative text-sm font-medium", errorProps?.className),
|
|
9757
9734
|
role: "alert",
|
|
9758
9735
|
"aria-hidden": !error,
|
|
9759
9736
|
"aria-live": "polite",
|
|
@@ -9764,7 +9741,7 @@ var FormElementWrapper = ({
|
|
|
9764
9741
|
};
|
|
9765
9742
|
|
|
9766
9743
|
// src/components/icons-and-geometry/Avatar.tsx
|
|
9767
|
-
import
|
|
9744
|
+
import clsx16 from "clsx";
|
|
9768
9745
|
import { useMemo as useMemo5, useState as useState15 } from "react";
|
|
9769
9746
|
import { UserIcon } from "lucide-react";
|
|
9770
9747
|
import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
@@ -9814,7 +9791,7 @@ var Avatar = ({
|
|
|
9814
9791
|
return /* @__PURE__ */ jsxs15(
|
|
9815
9792
|
"div",
|
|
9816
9793
|
{
|
|
9817
|
-
className:
|
|
9794
|
+
className: clsx16(
|
|
9818
9795
|
`relative flex-row-0 items-center justify-center bg-primary text-on-primary`,
|
|
9819
9796
|
rounding,
|
|
9820
9797
|
className
|
|
@@ -9826,7 +9803,7 @@ var Avatar = ({
|
|
|
9826
9803
|
{
|
|
9827
9804
|
src: image?.avatarUrl,
|
|
9828
9805
|
alt: image?.alt,
|
|
9829
|
-
className:
|
|
9806
|
+
className: clsx16(rounding, { "absolute left-0 top-0 -translate-1/2 opacity-0 z-1 ": !isLoaded || hasError }),
|
|
9830
9807
|
onLoad: () => setIsLoaded(true),
|
|
9831
9808
|
onError: () => setHasError(true)
|
|
9832
9809
|
}
|
|
@@ -9860,7 +9837,7 @@ var AvatarGroup = ({
|
|
|
9860
9837
|
...avatar,
|
|
9861
9838
|
size,
|
|
9862
9839
|
fullyRounded,
|
|
9863
|
-
className:
|
|
9840
|
+
className: clsx16("shadow-side shadow-r-4 shadow-hard", avatar.className)
|
|
9864
9841
|
}
|
|
9865
9842
|
)
|
|
9866
9843
|
},
|
|
@@ -9869,7 +9846,7 @@ var AvatarGroup = ({
|
|
|
9869
9846
|
showTotalNumber && notDisplayedProfiles > 0 && /* @__PURE__ */ jsx22(
|
|
9870
9847
|
"div",
|
|
9871
9848
|
{
|
|
9872
|
-
className:
|
|
9849
|
+
className: clsx16(textClassNameMapping[size], "flex-row-2 truncate items-center"),
|
|
9873
9850
|
children: /* @__PURE__ */ jsxs15("span", { children: [
|
|
9874
9851
|
"+ ",
|
|
9875
9852
|
notDisplayedProfiles
|
|
@@ -9880,7 +9857,7 @@ var AvatarGroup = ({
|
|
|
9880
9857
|
};
|
|
9881
9858
|
|
|
9882
9859
|
// src/components/icons-and-geometry/Circle.tsx
|
|
9883
|
-
import
|
|
9860
|
+
import clsx17 from "clsx";
|
|
9884
9861
|
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
9885
9862
|
var Circle = ({
|
|
9886
9863
|
radius = 20,
|
|
@@ -9892,7 +9869,7 @@ var Circle = ({
|
|
|
9892
9869
|
return /* @__PURE__ */ jsx23(
|
|
9893
9870
|
"div",
|
|
9894
9871
|
{
|
|
9895
|
-
className:
|
|
9872
|
+
className: clsx17(`rounded-full`, className),
|
|
9896
9873
|
style: {
|
|
9897
9874
|
width: `${size}px`,
|
|
9898
9875
|
height: `${size}px`,
|
|
@@ -9905,7 +9882,7 @@ var Circle = ({
|
|
|
9905
9882
|
|
|
9906
9883
|
// src/components/icons-and-geometry/Ring.tsx
|
|
9907
9884
|
import { useCallback as useCallback8, useEffect as useEffect16, useState as useState16 } from "react";
|
|
9908
|
-
import
|
|
9885
|
+
import clsx18 from "clsx";
|
|
9909
9886
|
import { jsx as jsx24, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
9910
9887
|
var Ring = ({
|
|
9911
9888
|
innerSize = 20,
|
|
@@ -9915,7 +9892,7 @@ var Ring = ({
|
|
|
9915
9892
|
return /* @__PURE__ */ jsx24(
|
|
9916
9893
|
"div",
|
|
9917
9894
|
{
|
|
9918
|
-
className:
|
|
9895
|
+
className: clsx18(`bg-transparent rounded-full outline`, className),
|
|
9919
9896
|
style: {
|
|
9920
9897
|
width: `${innerSize}px`,
|
|
9921
9898
|
height: `${innerSize}px`,
|
|
@@ -10054,7 +10031,7 @@ var RadialRings = ({
|
|
|
10054
10031
|
Circle,
|
|
10055
10032
|
{
|
|
10056
10033
|
radius: sizeCircle1 / 2,
|
|
10057
|
-
className:
|
|
10034
|
+
className: clsx18(circle1ClassName, `absolute z-[10] -translate-y-1/2 -translate-x-1/2`),
|
|
10058
10035
|
style: {
|
|
10059
10036
|
left: `${size / 2}px`,
|
|
10060
10037
|
top: `${size / 2}px`
|
|
@@ -10068,7 +10045,7 @@ var RadialRings = ({
|
|
|
10068
10045
|
width: (sizeCircle2 - sizeCircle1) / 2,
|
|
10069
10046
|
onAnimationFinished: () => currentRing === 0 ? setCurrentRing(1) : null,
|
|
10070
10047
|
repeating: true,
|
|
10071
|
-
className:
|
|
10048
|
+
className: clsx18(
|
|
10072
10049
|
circle2ClassName,
|
|
10073
10050
|
{ "opacity-5": currentRing !== 0 }
|
|
10074
10051
|
),
|
|
@@ -10088,7 +10065,7 @@ var RadialRings = ({
|
|
|
10088
10065
|
endInnerSize: sizeCircle2,
|
|
10089
10066
|
width: waveWidth,
|
|
10090
10067
|
repeating: true,
|
|
10091
|
-
className:
|
|
10068
|
+
className: clsx18(waveBaseColor, `opacity-5`),
|
|
10092
10069
|
style: {
|
|
10093
10070
|
left: `${size / 2}px`,
|
|
10094
10071
|
top: `${size / 2}px`,
|
|
@@ -10102,7 +10079,7 @@ var RadialRings = ({
|
|
|
10102
10079
|
Circle,
|
|
10103
10080
|
{
|
|
10104
10081
|
radius: sizeCircle2 / 2,
|
|
10105
|
-
className:
|
|
10082
|
+
className: clsx18(
|
|
10106
10083
|
circle2ClassName,
|
|
10107
10084
|
{ "opacity-20": currentRing < 1 },
|
|
10108
10085
|
`absolute z-[8] -translate-y-1/2 -translate-x-1/2`
|
|
@@ -10120,7 +10097,7 @@ var RadialRings = ({
|
|
|
10120
10097
|
width: (sizeCircle3 - sizeCircle2) / 2,
|
|
10121
10098
|
onAnimationFinished: () => currentRing === 1 ? setCurrentRing(2) : null,
|
|
10122
10099
|
repeating: true,
|
|
10123
|
-
className:
|
|
10100
|
+
className: clsx18(circle3ClassName),
|
|
10124
10101
|
style: {
|
|
10125
10102
|
left: `${size / 2}px`,
|
|
10126
10103
|
top: `${size / 2}px`,
|
|
@@ -10137,7 +10114,7 @@ var RadialRings = ({
|
|
|
10137
10114
|
endInnerSize: sizeCircle3 - waveWidth,
|
|
10138
10115
|
width: waveWidth,
|
|
10139
10116
|
repeating: true,
|
|
10140
|
-
className:
|
|
10117
|
+
className: clsx18(waveBaseColor, `opacity-5`),
|
|
10141
10118
|
style: {
|
|
10142
10119
|
left: `${size / 2}px`,
|
|
10143
10120
|
top: `${size / 2}px`,
|
|
@@ -10151,7 +10128,7 @@ var RadialRings = ({
|
|
|
10151
10128
|
Circle,
|
|
10152
10129
|
{
|
|
10153
10130
|
radius: sizeCircle3 / 2,
|
|
10154
|
-
className:
|
|
10131
|
+
className: clsx18(
|
|
10155
10132
|
circle3ClassName,
|
|
10156
10133
|
{ "opacity-20": currentRing < 2 },
|
|
10157
10134
|
`absolute z-[6] -translate-y-1/2 -translate-x-1/2`
|
|
@@ -10199,7 +10176,7 @@ import {
|
|
|
10199
10176
|
useRef as useRef7,
|
|
10200
10177
|
useState as useState17
|
|
10201
10178
|
} from "react";
|
|
10202
|
-
import
|
|
10179
|
+
import clsx19 from "clsx";
|
|
10203
10180
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
10204
10181
|
import { Fragment, jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
10205
10182
|
var CarouselContext = createContext4(null);
|
|
@@ -10245,7 +10222,7 @@ function CarouselTabs({
|
|
|
10245
10222
|
ref: (el) => tabRefs.current[index] = el,
|
|
10246
10223
|
onClick: () => onChange(index),
|
|
10247
10224
|
onKeyDown: (e) => handleKeyDown(e, index),
|
|
10248
|
-
className:
|
|
10225
|
+
className: clsx19(
|
|
10249
10226
|
"w-8 min-w-8 h-3 min-h-3 first:rounded-l-md last:rounded-r-md",
|
|
10250
10227
|
{
|
|
10251
10228
|
"bg-carousel-dot-disabled hover:bg-carousel-dot-active": currentIndex !== index,
|
|
@@ -10279,7 +10256,7 @@ var CarouselSlide = forwardRef5(
|
|
|
10279
10256
|
...props,
|
|
10280
10257
|
ref,
|
|
10281
10258
|
id: `${id}-slide-${index}`,
|
|
10282
|
-
className:
|
|
10259
|
+
className: clsx19("focus-style-none group/slide", props.className),
|
|
10283
10260
|
tabIndex: isSelected ? 0 : void 0,
|
|
10284
10261
|
role: "group",
|
|
10285
10262
|
"aria-roledescription": translation("slide"),
|
|
@@ -10428,7 +10405,7 @@ var Carousel = ({
|
|
|
10428
10405
|
{
|
|
10429
10406
|
ref: carouselContainerRef,
|
|
10430
10407
|
...props,
|
|
10431
|
-
className:
|
|
10408
|
+
className: clsx19("flex-col-2 items-center w-full", props.className),
|
|
10432
10409
|
id,
|
|
10433
10410
|
role: "region",
|
|
10434
10411
|
"aria-roledescription": translation("slide"),
|
|
@@ -10437,7 +10414,7 @@ var Carousel = ({
|
|
|
10437
10414
|
"div",
|
|
10438
10415
|
{
|
|
10439
10416
|
...slideContainerProps,
|
|
10440
|
-
className:
|
|
10417
|
+
className: clsx19(`relative w-full overflow-hidden`, heightClassName, slideContainerProps?.className),
|
|
10441
10418
|
children: [
|
|
10442
10419
|
hintNext ? /* @__PURE__ */ jsxs17(
|
|
10443
10420
|
"div",
|
|
@@ -10446,7 +10423,7 @@ var Carousel = ({
|
|
|
10446
10423
|
onPointerMove: handlePointerMove,
|
|
10447
10424
|
onPointerUp: handlePointerUp,
|
|
10448
10425
|
onPointerLeave: handlePointerUp,
|
|
10449
|
-
className:
|
|
10426
|
+
className: clsx19(`flex-row-2 relative h-full`, heightClassName),
|
|
10450
10427
|
children: [
|
|
10451
10428
|
/* @__PURE__ */ jsx26("div", { className: "flex-row-2 relative h-full w-full px-2 overflow-hidden", children: items.map(({
|
|
10452
10429
|
item,
|
|
@@ -10459,7 +10436,7 @@ var Carousel = ({
|
|
|
10459
10436
|
ref: isInItems ? slideRefs[index] : void 0,
|
|
10460
10437
|
index,
|
|
10461
10438
|
isSelected: isInItems && currentIndex === index,
|
|
10462
|
-
className:
|
|
10439
|
+
className: clsx19(
|
|
10463
10440
|
`absolute left-[50%] h-full overflow-hidden transition-transform ease-in-out`,
|
|
10464
10441
|
slideClassName
|
|
10465
10442
|
),
|
|
@@ -10476,13 +10453,13 @@ var Carousel = ({
|
|
|
10476
10453
|
/* @__PURE__ */ jsx26(
|
|
10477
10454
|
"div",
|
|
10478
10455
|
{
|
|
10479
|
-
className:
|
|
10456
|
+
className: clsx19(`hidden desktop:block pointer-events-none absolute left-0 h-full w-[20%] bg-gradient-to-r to-transparent`, blurColor)
|
|
10480
10457
|
}
|
|
10481
10458
|
),
|
|
10482
10459
|
/* @__PURE__ */ jsx26(
|
|
10483
10460
|
"div",
|
|
10484
10461
|
{
|
|
10485
|
-
className:
|
|
10462
|
+
className: clsx19(`hidden desktop:block pointer-events-none absolute right-0 h-full w-[20%] bg-gradient-to-l to-transparent`, blurColor)
|
|
10486
10463
|
}
|
|
10487
10464
|
)
|
|
10488
10465
|
]
|
|
@@ -10491,7 +10468,7 @@ var Carousel = ({
|
|
|
10491
10468
|
"div",
|
|
10492
10469
|
{
|
|
10493
10470
|
ref: slideRefs[currentIndex],
|
|
10494
|
-
className:
|
|
10471
|
+
className: clsx19("px-16 h-full"),
|
|
10495
10472
|
tabIndex: 0,
|
|
10496
10473
|
role: "group",
|
|
10497
10474
|
"aria-roledescription": translation("slide"),
|
|
@@ -10508,7 +10485,7 @@ var Carousel = ({
|
|
|
10508
10485
|
{
|
|
10509
10486
|
layout: "icon",
|
|
10510
10487
|
color: "neutral",
|
|
10511
|
-
className:
|
|
10488
|
+
className: clsx19("absolute z-10 left-2 top-1/2 -translate-y-1/2 shadow-md", { hidden: !canGoLeft() }),
|
|
10512
10489
|
disabled: !canGoLeft(),
|
|
10513
10490
|
onClick: () => left(),
|
|
10514
10491
|
children: /* @__PURE__ */ jsx26(ChevronLeft, { size: 24 })
|
|
@@ -10519,7 +10496,7 @@ var Carousel = ({
|
|
|
10519
10496
|
{
|
|
10520
10497
|
layout: "icon",
|
|
10521
10498
|
color: "neutral",
|
|
10522
|
-
className:
|
|
10499
|
+
className: clsx19("absolute z-10 right-2 top-1/2 -translate-y-1/2 shadow-md", { hidden: !canGoRight() }),
|
|
10523
10500
|
disabled: !canGoRight(),
|
|
10524
10501
|
onClick: () => right(),
|
|
10525
10502
|
children: /* @__PURE__ */ jsx26(ChevronRight, { size: 24 })
|
|
@@ -10536,7 +10513,7 @@ var Carousel = ({
|
|
|
10536
10513
|
};
|
|
10537
10514
|
|
|
10538
10515
|
// src/components/layout/DividerInserter.tsx
|
|
10539
|
-
import
|
|
10516
|
+
import clsx20 from "clsx";
|
|
10540
10517
|
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
10541
10518
|
var DividerInserter = ({
|
|
10542
10519
|
children,
|
|
@@ -10554,11 +10531,11 @@ var DividerInserter = ({
|
|
|
10554
10531
|
}
|
|
10555
10532
|
}
|
|
10556
10533
|
}
|
|
10557
|
-
return /* @__PURE__ */ jsx27("div", { className:
|
|
10534
|
+
return /* @__PURE__ */ jsx27("div", { className: clsx20(className), ...restProps, children: nodes });
|
|
10558
10535
|
};
|
|
10559
10536
|
|
|
10560
10537
|
// src/components/layout/FAQSection.tsx
|
|
10561
|
-
import
|
|
10538
|
+
import clsx21 from "clsx";
|
|
10562
10539
|
|
|
10563
10540
|
// src/components/layout/MarkdownInterpreter.tsx
|
|
10564
10541
|
import { Fragment as Fragment2, jsx as jsx28 } from "react/jsx-runtime";
|
|
@@ -10804,7 +10781,7 @@ var FAQSection = ({
|
|
|
10804
10781
|
label: /* @__PURE__ */ jsx29("span", { id, className: "typography-title-md", children: title }),
|
|
10805
10782
|
clickOnlyOnHeader: false,
|
|
10806
10783
|
icon: (expanded) => /* @__PURE__ */ jsx29(ExpansionIcon, { isExpanded: expanded, className: "text-primary" }),
|
|
10807
|
-
className:
|
|
10784
|
+
className: clsx21("rounded-xl", expandableClassName),
|
|
10808
10785
|
children: /* @__PURE__ */ jsx29("div", { className: "mt-2", children: content.type === "markdown" ? /* @__PURE__ */ jsx29(MarkdownInterpreter, { text: content.value }) : content.value })
|
|
10809
10786
|
},
|
|
10810
10787
|
id
|
|
@@ -10814,7 +10791,7 @@ var FAQSection = ({
|
|
|
10814
10791
|
// src/components/layout/FloatingContainer.tsx
|
|
10815
10792
|
import { forwardRef as forwardRef6, useImperativeHandle as useImperativeHandle3, useRef as useRef8 } from "react";
|
|
10816
10793
|
import { createPortal as createPortal3 } from "react-dom";
|
|
10817
|
-
import { clsx as
|
|
10794
|
+
import { clsx as clsx22 } from "clsx";
|
|
10818
10795
|
import { Fragment as Fragment3, jsx as jsx30, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
10819
10796
|
var FloatingContainer = forwardRef6(function FloatingContainer2({
|
|
10820
10797
|
children,
|
|
@@ -10859,7 +10836,7 @@ var FloatingContainer = forwardRef6(function FloatingContainer2({
|
|
|
10859
10836
|
...position,
|
|
10860
10837
|
...props.style
|
|
10861
10838
|
},
|
|
10862
|
-
className:
|
|
10839
|
+
className: clsx22("motion-safe:duration-100 motion-reduce:duration-0", props.className),
|
|
10863
10840
|
children
|
|
10864
10841
|
}
|
|
10865
10842
|
)
|
|
@@ -10870,7 +10847,7 @@ var FloatingContainer = forwardRef6(function FloatingContainer2({
|
|
|
10870
10847
|
|
|
10871
10848
|
// src/components/layout/ListBox.tsx
|
|
10872
10849
|
import React4, { createContext as createContext5, forwardRef as forwardRef7, useCallback as useCallback10, useContext as useContext5, useEffect as useEffect18, useRef as useRef9, useState as useState18 } from "react";
|
|
10873
|
-
import { clsx as
|
|
10850
|
+
import { clsx as clsx23 } from "clsx";
|
|
10874
10851
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
10875
10852
|
var ListBoxContext = createContext5(null);
|
|
10876
10853
|
function useListBoxContext() {
|
|
@@ -10913,7 +10890,7 @@ var ListBoxItem = forwardRef7(
|
|
|
10913
10890
|
"data-highlighted": isHighlighted ? "" : void 0,
|
|
10914
10891
|
"data-selected": selected ? "" : void 0,
|
|
10915
10892
|
"data-disabled": disabled ? "" : void 0,
|
|
10916
|
-
className:
|
|
10893
|
+
className: clsx23(
|
|
10917
10894
|
"flex-row-1 items-center px-2 py-1 rounded-md",
|
|
10918
10895
|
"data-highlighted:bg-primary/20",
|
|
10919
10896
|
"data-disabled:text-disabled data-disabled:cursor-not-allowed",
|
|
@@ -11134,7 +11111,7 @@ var ListBoxUncontrolled = ({
|
|
|
11134
11111
|
// src/components/layout/TabView.tsx
|
|
11135
11112
|
import { useId as useId7 } from "react";
|
|
11136
11113
|
import { createContext as createContext6, useContext as useContext6, useState as useState19, useEffect as useEffect19, useRef as useRef10 } from "react";
|
|
11137
|
-
import
|
|
11114
|
+
import clsx24 from "clsx";
|
|
11138
11115
|
import { jsx as jsx32, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
11139
11116
|
var TabContext = createContext6(null);
|
|
11140
11117
|
function useTabContext() {
|
|
@@ -11179,8 +11156,8 @@ function TabView({ children, outerDivProps, onTabChanged, initialTabIndex = 0, .
|
|
|
11179
11156
|
buttonRefs.current[nextId]?.focus();
|
|
11180
11157
|
};
|
|
11181
11158
|
const value = { active, setActive, register, unregister, tabs };
|
|
11182
|
-
return /* @__PURE__ */ jsx32(TabContext.Provider, { value, children: /* @__PURE__ */ jsxs19("div", { ...outerDivProps, className:
|
|
11183
|
-
/* @__PURE__ */ jsx32("div", { role: "tablist", ...props, className:
|
|
11159
|
+
return /* @__PURE__ */ jsx32(TabContext.Provider, { value, children: /* @__PURE__ */ jsxs19("div", { ...outerDivProps, className: clsx24("w-full", props.className), children: [
|
|
11160
|
+
/* @__PURE__ */ jsx32("div", { role: "tablist", ...props, className: clsx24("flex-row-0"), children: tabs.map((t) => /* @__PURE__ */ jsx32(
|
|
11184
11161
|
"button",
|
|
11185
11162
|
{
|
|
11186
11163
|
role: "tab",
|
|
@@ -11191,7 +11168,7 @@ function TabView({ children, outerDivProps, onTabChanged, initialTabIndex = 0, .
|
|
|
11191
11168
|
ref: (el) => buttonRefs.current[t.id] = el,
|
|
11192
11169
|
onClick: () => setActive(t.id),
|
|
11193
11170
|
onKeyDown: (e) => onKeyDown(e, t.id),
|
|
11194
|
-
className:
|
|
11171
|
+
className: clsx24(
|
|
11195
11172
|
"flex-row-0 grow justify-center px-3 pb-2.25 typography-label-md font-bold border-b-2",
|
|
11196
11173
|
active === t.id ? "border-primary" : "text-description hover:text-on-background"
|
|
11197
11174
|
),
|
|
@@ -11225,7 +11202,7 @@ function Tab({ id: customId, label, children, ...props }) {
|
|
|
11225
11202
|
}
|
|
11226
11203
|
|
|
11227
11204
|
// src/components/layout/TextImage.tsx
|
|
11228
|
-
import
|
|
11205
|
+
import clsx25 from "clsx";
|
|
11229
11206
|
import { jsx as jsx33, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
11230
11207
|
var TextImage = ({
|
|
11231
11208
|
title,
|
|
@@ -11251,7 +11228,7 @@ var TextImage = ({
|
|
|
11251
11228
|
return /* @__PURE__ */ jsx33(
|
|
11252
11229
|
"div",
|
|
11253
11230
|
{
|
|
11254
|
-
className:
|
|
11231
|
+
className: clsx25("rounded-2xl w-full", className),
|
|
11255
11232
|
style: {
|
|
11256
11233
|
backgroundImage: `url(${imageUrl})`,
|
|
11257
11234
|
backgroundSize: "cover"
|
|
@@ -11259,9 +11236,9 @@ var TextImage = ({
|
|
|
11259
11236
|
children: /* @__PURE__ */ jsxs20(
|
|
11260
11237
|
"div",
|
|
11261
11238
|
{
|
|
11262
|
-
className:
|
|
11239
|
+
className: clsx25(`flex-col-2 px-6 py-12 rounded-2xl h-full`, colorMapping[color], contentClassName),
|
|
11263
11240
|
children: [
|
|
11264
|
-
badge && /* @__PURE__ */ jsx33("div", { className:
|
|
11241
|
+
badge && /* @__PURE__ */ jsx33("div", { className: clsx25(`chip-full mb-2 py-2 px-4 w-fit`, chipColorMapping[color]), children: /* @__PURE__ */ jsx33("span", { className: "text-lg font-bold", children: badge }) }),
|
|
11265
11242
|
/* @__PURE__ */ jsxs20("div", { className: "flex-col-1 overflow-hidden", children: [
|
|
11266
11243
|
/* @__PURE__ */ jsx33("span", { className: "typography-title-lg", children: title }),
|
|
11267
11244
|
/* @__PURE__ */ jsx33("span", { className: "text-ellipsis overflow-hidden", children: description })
|
|
@@ -11329,14 +11306,14 @@ var VerticalDivider = ({
|
|
|
11329
11306
|
|
|
11330
11307
|
// src/components/loading-states/ErrorComponent.tsx
|
|
11331
11308
|
import { AlertOctagon } from "lucide-react";
|
|
11332
|
-
import
|
|
11309
|
+
import clsx26 from "clsx";
|
|
11333
11310
|
import { jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
11334
11311
|
var ErrorComponent = ({
|
|
11335
11312
|
errorText,
|
|
11336
11313
|
classname
|
|
11337
11314
|
}) => {
|
|
11338
11315
|
const translation = useHightideTranslation();
|
|
11339
|
-
return /* @__PURE__ */ jsxs22("div", { className:
|
|
11316
|
+
return /* @__PURE__ */ jsxs22("div", { className: clsx26("flex-col-4 items-center justify-center w-full h-24", classname), children: [
|
|
11340
11317
|
/* @__PURE__ */ jsx35(AlertOctagon, { size: 64, className: "text-warning" }),
|
|
11341
11318
|
errorText ?? `${translation("errorOccurred")} :(`
|
|
11342
11319
|
] });
|
|
@@ -11346,14 +11323,14 @@ var ErrorComponent = ({
|
|
|
11346
11323
|
import { useState as useState20 } from "react";
|
|
11347
11324
|
|
|
11348
11325
|
// src/components/loading-states/LoadingContainer.tsx
|
|
11349
|
-
import { clsx as
|
|
11326
|
+
import { clsx as clsx27 } from "clsx";
|
|
11350
11327
|
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
11351
11328
|
var LoadingContainer = ({ className }) => {
|
|
11352
|
-
return /* @__PURE__ */ jsx36("div", { className:
|
|
11329
|
+
return /* @__PURE__ */ jsx36("div", { className: clsx27("relative overflow-hidden shimmer bg-disabled/30 rounded-md", className) });
|
|
11353
11330
|
};
|
|
11354
11331
|
|
|
11355
11332
|
// src/components/loading-states/LoadingAndErrorComponent.tsx
|
|
11356
|
-
import { clsx as
|
|
11333
|
+
import { clsx as clsx28 } from "clsx";
|
|
11357
11334
|
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
11358
11335
|
var LoadingAndErrorComponent = ({
|
|
11359
11336
|
children,
|
|
@@ -11374,34 +11351,34 @@ var LoadingAndErrorComponent = ({
|
|
|
11374
11351
|
}, minimumLoadingDuration);
|
|
11375
11352
|
}
|
|
11376
11353
|
if (isLoading || minimumLoadingDuration && isInMinimumLoading) {
|
|
11377
|
-
return loadingComponent ?? /* @__PURE__ */ jsx37(LoadingContainer, { className:
|
|
11354
|
+
return loadingComponent ?? /* @__PURE__ */ jsx37(LoadingContainer, { className: clsx28(className) });
|
|
11378
11355
|
}
|
|
11379
11356
|
if (hasError) {
|
|
11380
|
-
return errorComponent ?? /* @__PURE__ */ jsx37(LoadingContainer, { className:
|
|
11357
|
+
return errorComponent ?? /* @__PURE__ */ jsx37(LoadingContainer, { className: clsx28("bg-negative", className) });
|
|
11381
11358
|
}
|
|
11382
11359
|
return children;
|
|
11383
11360
|
};
|
|
11384
11361
|
|
|
11385
11362
|
// src/components/loading-states/LoadingAnimation.tsx
|
|
11386
|
-
import
|
|
11363
|
+
import clsx29 from "clsx";
|
|
11387
11364
|
import { jsx as jsx38, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
11388
11365
|
var LoadingAnimation = ({
|
|
11389
11366
|
loadingText,
|
|
11390
11367
|
classname
|
|
11391
11368
|
}) => {
|
|
11392
11369
|
const translation = useHightideTranslation();
|
|
11393
|
-
return /* @__PURE__ */ jsxs23("div", { className:
|
|
11370
|
+
return /* @__PURE__ */ jsxs23("div", { className: clsx29("flex-col-2 items-center justify-center w-full h-24", classname), children: [
|
|
11394
11371
|
/* @__PURE__ */ jsx38(HelpwaveLogo, { animate: "loading" }),
|
|
11395
11372
|
loadingText ?? `${translation("loading")}...`
|
|
11396
11373
|
] });
|
|
11397
11374
|
};
|
|
11398
11375
|
|
|
11399
11376
|
// src/components/loading-states/LoadingButton.tsx
|
|
11400
|
-
import
|
|
11377
|
+
import clsx30 from "clsx";
|
|
11401
11378
|
import { jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
11402
11379
|
var LoadingButton = ({ isLoading = false, size = "medium", onClick, ...rest }) => {
|
|
11403
11380
|
return /* @__PURE__ */ jsxs24("div", { className: "inline-block relative", children: [
|
|
11404
|
-
isLoading && /* @__PURE__ */ jsx39("div", { className:
|
|
11381
|
+
isLoading && /* @__PURE__ */ jsx39("div", { className: clsx30("flex-row-2 absolute inset-0 items-center justify-center bg-white/40"), children: /* @__PURE__ */ jsx39(HelpwaveLogo, { animate: "loading", className: "text-white" }) }),
|
|
11405
11382
|
/* @__PURE__ */ jsx39(Button, { ...rest, size, disabled: rest.disabled, onClick })
|
|
11406
11383
|
] });
|
|
11407
11384
|
};
|
|
@@ -11464,18 +11441,18 @@ var ProgressIndicator = ({
|
|
|
11464
11441
|
|
|
11465
11442
|
// src/components/navigation/BreadCrumb.tsx
|
|
11466
11443
|
var import_link = __toESM(require_link2());
|
|
11467
|
-
import
|
|
11444
|
+
import clsx31 from "clsx";
|
|
11468
11445
|
import { Fragment as Fragment4 } from "react";
|
|
11469
11446
|
import { jsx as jsx41, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
11470
11447
|
var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
|
|
11471
|
-
return /* @__PURE__ */ jsx41("div", { className:
|
|
11448
|
+
return /* @__PURE__ */ jsx41("div", { className: clsx31("flex-row-0.5 items-center", containerClassName), children: crumbs.map((crumb, index) => {
|
|
11472
11449
|
const isLast = index === crumbs.length - 1;
|
|
11473
11450
|
return /* @__PURE__ */ jsxs26(Fragment4, { children: [
|
|
11474
11451
|
/* @__PURE__ */ jsx41(
|
|
11475
11452
|
import_link.default,
|
|
11476
11453
|
{
|
|
11477
11454
|
href: crumb.link,
|
|
11478
|
-
className:
|
|
11455
|
+
className: clsx31(
|
|
11479
11456
|
"btn-sm coloring-text-hover",
|
|
11480
11457
|
{
|
|
11481
11458
|
description: !isLast,
|
|
@@ -11486,7 +11463,7 @@ var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
|
|
|
11486
11463
|
children: crumb.display
|
|
11487
11464
|
}
|
|
11488
11465
|
),
|
|
11489
|
-
!isLast && /* @__PURE__ */ jsx41("span", { className:
|
|
11466
|
+
!isLast && /* @__PURE__ */ jsx41("span", { className: clsx31(`px-1`, "text-description"), children: "/" })
|
|
11490
11467
|
] }, index);
|
|
11491
11468
|
}) });
|
|
11492
11469
|
};
|
|
@@ -11496,7 +11473,7 @@ var import_link2 = __toESM(require_link2());
|
|
|
11496
11473
|
import { Menu as MenuIcon, XIcon as XIcon2 } from "lucide-react";
|
|
11497
11474
|
import { useEffect as useEffect20 } from "react";
|
|
11498
11475
|
import { useCallback as useCallback11, useId as useId8, useRef as useRef11, useState as useState21 } from "react";
|
|
11499
|
-
import
|
|
11476
|
+
import clsx32 from "clsx";
|
|
11500
11477
|
import { Fragment as Fragment5, jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
11501
11478
|
function isSubItem(item) {
|
|
11502
11479
|
return "items" in item && Array.isArray(item.items);
|
|
@@ -11559,7 +11536,7 @@ var NavigationItemWithSubItem = ({
|
|
|
11559
11536
|
},
|
|
11560
11537
|
onBlur,
|
|
11561
11538
|
hidden: !isOpen,
|
|
11562
|
-
className:
|
|
11539
|
+
className: clsx32(
|
|
11563
11540
|
"fixed flex-col-4 p-4 bg-surface text-on-surface shadow-side shadow-hw-bottom rounded-md",
|
|
11564
11541
|
{ "opacity-0": !style }
|
|
11565
11542
|
),
|
|
@@ -11578,7 +11555,7 @@ var NavigationItemWithSubItem = ({
|
|
|
11578
11555
|
] });
|
|
11579
11556
|
};
|
|
11580
11557
|
var NavigationItemList = ({ items, ...restProps }) => {
|
|
11581
|
-
return /* @__PURE__ */ jsx42("ul", { ...restProps, className:
|
|
11558
|
+
return /* @__PURE__ */ jsx42("ul", { ...restProps, className: clsx32("flex-row-6 items-center", restProps.className), children: items.map((item, index) => /* @__PURE__ */ jsx42("li", { children: isSubItem(item) ? /* @__PURE__ */ jsx42(NavigationItemWithSubItem, { ...item }) : /* @__PURE__ */ jsx42(import_link2.default, { href: item.link, target: item.external ? "_blank" : void 0, className: "link", children: item.label }) }, index)) });
|
|
11582
11559
|
};
|
|
11583
11560
|
var Navigation = ({ ...props }) => {
|
|
11584
11561
|
const [isMobileOpen, setIsMobileOpen] = useState21(false);
|
|
@@ -11593,7 +11570,7 @@ var Navigation = ({ ...props }) => {
|
|
|
11593
11570
|
NavigationItemList,
|
|
11594
11571
|
{
|
|
11595
11572
|
...props,
|
|
11596
|
-
className:
|
|
11573
|
+
className: clsx32("hidden", { "desktop:flex": !isMobileOpen }, props.className)
|
|
11597
11574
|
}
|
|
11598
11575
|
),
|
|
11599
11576
|
/* @__PURE__ */ jsx42(
|
|
@@ -11623,7 +11600,7 @@ var Navigation = ({ ...props }) => {
|
|
|
11623
11600
|
event.stopPropagation();
|
|
11624
11601
|
}
|
|
11625
11602
|
},
|
|
11626
|
-
className:
|
|
11603
|
+
className: clsx32(
|
|
11627
11604
|
"flex-col-8 items-center justify-center fixed inset-0 p-8 w-screen h-screen bg-surface text-on-surface",
|
|
11628
11605
|
{
|
|
11629
11606
|
"desktop:hidden": isMobileOpen
|
|
@@ -11642,7 +11619,7 @@ var Navigation = ({ ...props }) => {
|
|
|
11642
11619
|
children: /* @__PURE__ */ jsx42(XIcon2, {})
|
|
11643
11620
|
}
|
|
11644
11621
|
),
|
|
11645
|
-
/* @__PURE__ */ jsx42(NavigationItemList, { ...props, className:
|
|
11622
|
+
/* @__PURE__ */ jsx42(NavigationItemList, { ...props, className: clsx32("flex-col-8", props.className) })
|
|
11646
11623
|
]
|
|
11647
11624
|
}
|
|
11648
11625
|
)
|
|
@@ -11651,7 +11628,7 @@ var Navigation = ({ ...props }) => {
|
|
|
11651
11628
|
|
|
11652
11629
|
// src/components/navigation/Pagination.tsx
|
|
11653
11630
|
import { ChevronFirst, ChevronLast, ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight2 } from "lucide-react";
|
|
11654
|
-
import
|
|
11631
|
+
import clsx33 from "clsx";
|
|
11655
11632
|
import { useEffect as useEffect21, useState as useState22 } from "react";
|
|
11656
11633
|
import { jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
11657
11634
|
var Pagination = ({
|
|
@@ -11676,7 +11653,7 @@ var Pagination = ({
|
|
|
11676
11653
|
const changePage = (page) => {
|
|
11677
11654
|
onPageChanged(page);
|
|
11678
11655
|
};
|
|
11679
|
-
return /* @__PURE__ */ jsxs28("div", { className:
|
|
11656
|
+
return /* @__PURE__ */ jsxs28("div", { className: clsx33("flex-row-1", className), style, children: [
|
|
11680
11657
|
/* @__PURE__ */ jsx43(
|
|
11681
11658
|
Button,
|
|
11682
11659
|
{
|
|
@@ -11704,7 +11681,7 @@ var Pagination = ({
|
|
|
11704
11681
|
Input,
|
|
11705
11682
|
{
|
|
11706
11683
|
value,
|
|
11707
|
-
className:
|
|
11684
|
+
className: clsx33(
|
|
11708
11685
|
"w-24 text-center font-bold input-indicator-hidden h-10"
|
|
11709
11686
|
),
|
|
11710
11687
|
type: "number",
|
|
@@ -11760,7 +11737,7 @@ var Pagination = ({
|
|
|
11760
11737
|
|
|
11761
11738
|
// src/components/navigation/StepperBar.tsx
|
|
11762
11739
|
import { Check, ChevronLeft as ChevronLeft3, ChevronRight as ChevronRight3 } from "lucide-react";
|
|
11763
|
-
import
|
|
11740
|
+
import clsx34 from "clsx";
|
|
11764
11741
|
import { jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
11765
11742
|
var defaultState = {
|
|
11766
11743
|
currentStep: 0,
|
|
@@ -11786,7 +11763,7 @@ var StepperBar = ({
|
|
|
11786
11763
|
return /* @__PURE__ */ jsxs29(
|
|
11787
11764
|
"div",
|
|
11788
11765
|
{
|
|
11789
|
-
className:
|
|
11766
|
+
className: clsx34("flex-row-2 justify-between", className),
|
|
11790
11767
|
children: [
|
|
11791
11768
|
/* @__PURE__ */ jsx44("div", { className: "flex-row-2 flex-[2] justify-start", children: /* @__PURE__ */ jsxs29(
|
|
11792
11769
|
Button,
|
|
@@ -11808,7 +11785,7 @@ var StepperBar = ({
|
|
|
11808
11785
|
"div",
|
|
11809
11786
|
{
|
|
11810
11787
|
onClick: () => seen && update(index),
|
|
11811
|
-
className:
|
|
11788
|
+
className: clsx34(
|
|
11812
11789
|
"rounded-full w-4 h-4",
|
|
11813
11790
|
{
|
|
11814
11791
|
"bg-stepperbar-dot-active hover:brightness-75": index === currentStep && seen && !disabledSteps.has(currentStep),
|
|
@@ -11869,24 +11846,25 @@ import { Check as Check3 } from "lucide-react";
|
|
|
11869
11846
|
|
|
11870
11847
|
// src/components/user-action/Checkbox.tsx
|
|
11871
11848
|
import { Check as Check2, Minus } from "lucide-react";
|
|
11872
|
-
import
|
|
11849
|
+
import clsx35 from "clsx";
|
|
11873
11850
|
import { jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
11874
11851
|
var checkboxSizeMapping = {
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
|
|
11852
|
+
small: "size-5 border-2",
|
|
11853
|
+
medium: "size-6 border-2",
|
|
11854
|
+
large: "size-8 border-2"
|
|
11878
11855
|
};
|
|
11879
11856
|
var checkboxIconSizeMapping = {
|
|
11880
|
-
|
|
11881
|
-
|
|
11882
|
-
|
|
11857
|
+
small: "size-3.5 stroke-3",
|
|
11858
|
+
medium: "size-4.5 stroke-3",
|
|
11859
|
+
large: "size-6 stroke-3"
|
|
11883
11860
|
};
|
|
11884
11861
|
var Checkbox = ({
|
|
11885
11862
|
disabled,
|
|
11886
11863
|
checked = false,
|
|
11887
11864
|
indeterminate = false,
|
|
11865
|
+
invalid = false,
|
|
11888
11866
|
onCheckedChange,
|
|
11889
|
-
size = "
|
|
11867
|
+
size = "medium",
|
|
11890
11868
|
className = "",
|
|
11891
11869
|
...props
|
|
11892
11870
|
}) => {
|
|
@@ -11910,25 +11888,21 @@ var Checkbox = ({
|
|
|
11910
11888
|
props.onKeyDown?.(event);
|
|
11911
11889
|
}
|
|
11912
11890
|
},
|
|
11913
|
-
className:
|
|
11891
|
+
className: clsx35(
|
|
11914
11892
|
usedSizeClass,
|
|
11915
|
-
`flex-col-0 items-center justify-center rounded`,
|
|
11916
|
-
{
|
|
11917
|
-
"text-disabled border-disabled-outline bg-disabled-background cursor-not-allowed": disabled,
|
|
11918
|
-
"hover:border-primary": !disabled,
|
|
11919
|
-
"bg-input-background": !disabled && !checked,
|
|
11920
|
-
"bg-primary/30 border-primary text-primary": !disabled && (checked || indeterminate)
|
|
11921
|
-
},
|
|
11922
11893
|
className
|
|
11923
11894
|
),
|
|
11895
|
+
"data-name": props["data-name"] ?? "checkbox",
|
|
11896
|
+
"data-value": !indeterminate ? checked : "indeterminate",
|
|
11897
|
+
"data-disabled": disabled ? "" : void 0,
|
|
11898
|
+
"data-invalid": invalid ? "" : void 0,
|
|
11924
11899
|
role: "checkbox",
|
|
11925
11900
|
"aria-checked": indeterminate ? "mixed" : checked,
|
|
11926
11901
|
"aria-disabled": disabled,
|
|
11927
11902
|
tabIndex: disabled ? -1 : 0,
|
|
11928
11903
|
children: [
|
|
11929
|
-
!
|
|
11930
|
-
|
|
11931
|
-
indeterminate && /* @__PURE__ */ jsx45(Minus, { className: innerIconSize })
|
|
11904
|
+
!indeterminate && /* @__PURE__ */ jsx45(Check2, { className: innerIconSize, "aria-hidden": true }),
|
|
11905
|
+
indeterminate && /* @__PURE__ */ jsx45(Minus, { className: innerIconSize, "aria-hidden": true })
|
|
11932
11906
|
]
|
|
11933
11907
|
}
|
|
11934
11908
|
);
|
|
@@ -11951,7 +11925,7 @@ var CheckboxUncontrolled = ({
|
|
|
11951
11925
|
|
|
11952
11926
|
// src/components/properties/PropertyBase.tsx
|
|
11953
11927
|
import { AlertTriangle } from "lucide-react";
|
|
11954
|
-
import
|
|
11928
|
+
import clsx36 from "clsx";
|
|
11955
11929
|
import { jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
11956
11930
|
var PropertyBase = ({
|
|
11957
11931
|
name,
|
|
@@ -11965,14 +11939,14 @@ var PropertyBase = ({
|
|
|
11965
11939
|
}) => {
|
|
11966
11940
|
const translation = useHightideTranslation();
|
|
11967
11941
|
const requiredAndNoValue = softRequired && !hasValue;
|
|
11968
|
-
return /* @__PURE__ */ jsxs31("div", { className:
|
|
11942
|
+
return /* @__PURE__ */ jsxs31("div", { className: clsx36("flex-row-0 group", className), children: [
|
|
11969
11943
|
/* @__PURE__ */ jsxs31(
|
|
11970
11944
|
"div",
|
|
11971
11945
|
{
|
|
11972
|
-
className:
|
|
11946
|
+
className: clsx36(
|
|
11973
11947
|
"flex-row-2 max-w-48 min-w-48 px-3 py-2 items-center rounded-l-xl border-2 border-r-0",
|
|
11974
11948
|
{
|
|
11975
|
-
"bg-property-title-background text-property-title-text group-hover:border-primary": !requiredAndNoValue,
|
|
11949
|
+
"bg-property-title-background text-property-title-text group-hover:border-primary group-focus-within:border-primary": !requiredAndNoValue,
|
|
11976
11950
|
"bg-warning text-surface-warning group-hover:border-warning border-warning/90": requiredAndNoValue
|
|
11977
11951
|
},
|
|
11978
11952
|
className
|
|
@@ -11986,10 +11960,10 @@ var PropertyBase = ({
|
|
|
11986
11960
|
/* @__PURE__ */ jsxs31(
|
|
11987
11961
|
"div",
|
|
11988
11962
|
{
|
|
11989
|
-
className:
|
|
11963
|
+
className: clsx36(
|
|
11990
11964
|
"flex-row-2 grow px-3 py-2 justify-between items-center rounded-r-xl border-2 border-l-0 min-h-15",
|
|
11991
11965
|
{
|
|
11992
|
-
"bg-input-background text-input-text group-hover:border-primary": !requiredAndNoValue,
|
|
11966
|
+
"bg-input-background text-input-text group-hover:border-primary group-focus-within:border-primary": !requiredAndNoValue,
|
|
11993
11967
|
"bg-surface-warning group-hover:border-warning border-warning/90": requiredAndNoValue
|
|
11994
11968
|
},
|
|
11995
11969
|
className
|
|
@@ -12003,7 +11977,7 @@ var PropertyBase = ({
|
|
|
12003
11977
|
onClick: onRemove,
|
|
12004
11978
|
color: "negative",
|
|
12005
11979
|
coloringStyle: "text",
|
|
12006
|
-
className:
|
|
11980
|
+
className: clsx36("items-center"),
|
|
12007
11981
|
disabled: !hasValue,
|
|
12008
11982
|
children: translation("remove")
|
|
12009
11983
|
}
|
|
@@ -12051,7 +12025,7 @@ var CheckboxProperty = ({
|
|
|
12051
12025
|
|
|
12052
12026
|
// src/components/properties/DateProperty.tsx
|
|
12053
12027
|
import { CalendarDays } from "lucide-react";
|
|
12054
|
-
import
|
|
12028
|
+
import clsx37 from "clsx";
|
|
12055
12029
|
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
12056
12030
|
var DateProperty = ({
|
|
12057
12031
|
value,
|
|
@@ -12072,7 +12046,7 @@ var DateProperty = ({
|
|
|
12072
12046
|
input: ({ softRequired }) => /* @__PURE__ */ jsx48(
|
|
12073
12047
|
Input,
|
|
12074
12048
|
{
|
|
12075
|
-
className:
|
|
12049
|
+
className: clsx37("default-style-none focus-style-none", { "bg-surface-warning": softRequired && !hasValue }),
|
|
12076
12050
|
value: dateText,
|
|
12077
12051
|
type: type === "dateTime" ? "datetime-local" : "date",
|
|
12078
12052
|
readOnly,
|
|
@@ -12094,7 +12068,7 @@ var DateProperty = ({
|
|
|
12094
12068
|
|
|
12095
12069
|
// src/components/properties/MultiSelectProperty.tsx
|
|
12096
12070
|
import { List } from "lucide-react";
|
|
12097
|
-
import
|
|
12071
|
+
import clsx38 from "clsx";
|
|
12098
12072
|
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
12099
12073
|
var MultiSelectProperty = ({
|
|
12100
12074
|
children,
|
|
@@ -12116,14 +12090,15 @@ var MultiSelectProperty = ({
|
|
|
12116
12090
|
onValuesChanged,
|
|
12117
12091
|
disabled: props.readOnly,
|
|
12118
12092
|
contentPanelProps: {
|
|
12119
|
-
className:
|
|
12093
|
+
className: clsx38(
|
|
12120
12094
|
"!border-none !min-h-10"
|
|
12121
12095
|
)
|
|
12122
12096
|
},
|
|
12123
12097
|
chipDisplayProps: {
|
|
12124
|
-
className:
|
|
12125
|
-
"
|
|
12126
|
-
|
|
12098
|
+
className: clsx38(
|
|
12099
|
+
"default-style-none flex flex-wrap gap-x-2 gap-y-2 items-center hover:cursor-pointer",
|
|
12100
|
+
{ "!bg-warning text-surface-warning": softRequired && !hasValue }
|
|
12101
|
+
)
|
|
12127
12102
|
},
|
|
12128
12103
|
children
|
|
12129
12104
|
}
|
|
@@ -12134,7 +12109,7 @@ var MultiSelectProperty = ({
|
|
|
12134
12109
|
|
|
12135
12110
|
// src/components/properties/NumberProperty.tsx
|
|
12136
12111
|
import { Binary } from "lucide-react";
|
|
12137
|
-
import
|
|
12112
|
+
import clsx39 from "clsx";
|
|
12138
12113
|
import { jsx as jsx50, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
12139
12114
|
var NumberProperty = ({
|
|
12140
12115
|
value,
|
|
@@ -12159,12 +12134,12 @@ var NumberProperty = ({
|
|
|
12159
12134
|
/* @__PURE__ */ jsxs33(
|
|
12160
12135
|
"div",
|
|
12161
12136
|
{
|
|
12162
|
-
className:
|
|
12137
|
+
className: clsx39("relative flex-row-2 max-w-56", { "text-warning": softRequired && !hasValue }),
|
|
12163
12138
|
children: [
|
|
12164
12139
|
/* @__PURE__ */ jsx50(
|
|
12165
12140
|
Input,
|
|
12166
12141
|
{
|
|
12167
|
-
className:
|
|
12142
|
+
className: clsx39("default-style-none focus-style-none w-full pr-8", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
|
|
12168
12143
|
value: value?.toString() ?? "",
|
|
12169
12144
|
type: "number",
|
|
12170
12145
|
readOnly,
|
|
@@ -12190,7 +12165,7 @@ var NumberProperty = ({
|
|
|
12190
12165
|
suffix && /* @__PURE__ */ jsx50(
|
|
12191
12166
|
"span",
|
|
12192
12167
|
{
|
|
12193
|
-
className:
|
|
12168
|
+
className: clsx39(
|
|
12194
12169
|
"absolute top-1/2 -translate-y-1/2 right-2",
|
|
12195
12170
|
{ "bg-surface-warning": softRequired && !hasValue }
|
|
12196
12171
|
),
|
|
@@ -12207,7 +12182,7 @@ var NumberProperty = ({
|
|
|
12207
12182
|
|
|
12208
12183
|
// src/components/properties/SelectProperty.tsx
|
|
12209
12184
|
import { List as List2 } from "lucide-react";
|
|
12210
|
-
import
|
|
12185
|
+
import clsx40 from "clsx";
|
|
12211
12186
|
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
12212
12187
|
var SingleSelectProperty = ({
|
|
12213
12188
|
children,
|
|
@@ -12230,8 +12205,8 @@ var SingleSelectProperty = ({
|
|
|
12230
12205
|
onValueChanged,
|
|
12231
12206
|
disabled: props.readOnly,
|
|
12232
12207
|
buttonProps: {
|
|
12233
|
-
className:
|
|
12234
|
-
"
|
|
12208
|
+
className: clsx40(
|
|
12209
|
+
"default-style-none focus-style-none flex-row-2 w-full items-center",
|
|
12235
12210
|
{
|
|
12236
12211
|
"!bg-warning !text-surface-warning": softRequired && !hasValue
|
|
12237
12212
|
}
|
|
@@ -12247,11 +12222,11 @@ var SingleSelectProperty = ({
|
|
|
12247
12222
|
|
|
12248
12223
|
// src/components/properties/TextProperty.tsx
|
|
12249
12224
|
import { Text } from "lucide-react";
|
|
12250
|
-
import
|
|
12225
|
+
import clsx42 from "clsx";
|
|
12251
12226
|
|
|
12252
12227
|
// src/components/user-action/Textarea.tsx
|
|
12253
12228
|
import { forwardRef as forwardRef8, useId as useId10 } from "react";
|
|
12254
|
-
import
|
|
12229
|
+
import clsx41 from "clsx";
|
|
12255
12230
|
import { jsx as jsx52, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
12256
12231
|
var Textarea = forwardRef8(function Textarea2({
|
|
12257
12232
|
id,
|
|
@@ -12260,10 +12235,8 @@ var Textarea = forwardRef8(function Textarea2({
|
|
|
12260
12235
|
onBlur,
|
|
12261
12236
|
onEditCompleted,
|
|
12262
12237
|
saveDelayOptions,
|
|
12263
|
-
defaultStyle = true,
|
|
12264
12238
|
invalid = false,
|
|
12265
12239
|
disabled = false,
|
|
12266
|
-
className,
|
|
12267
12240
|
...props
|
|
12268
12241
|
}, ref) {
|
|
12269
12242
|
const { restartTimer, clearTimer } = useDelay(saveDelayOptions);
|
|
@@ -12274,18 +12247,10 @@ var Textarea = forwardRef8(function Textarea2({
|
|
|
12274
12247
|
return /* @__PURE__ */ jsx52(
|
|
12275
12248
|
"textarea",
|
|
12276
12249
|
{
|
|
12250
|
+
...props,
|
|
12277
12251
|
ref,
|
|
12278
12252
|
id,
|
|
12279
|
-
|
|
12280
|
-
"resize-none w-full h-32 overflow-y-scroll",
|
|
12281
|
-
"py-2 px-3 rounded-md border-2 border-transparent focus-style-none",
|
|
12282
|
-
{
|
|
12283
|
-
"bg-input-background text-input-text hover:border-primary focus:border-primary": !disabled && !invalid,
|
|
12284
|
-
"bg-negative/20 text-negative hover:border-negative focus-visible:border-negative": invalid && !disabled && defaultStyle,
|
|
12285
|
-
"text-disabled bg-disabled-background border-disabled-border": disabled && defaultStyle
|
|
12286
|
-
},
|
|
12287
|
-
className
|
|
12288
|
-
),
|
|
12253
|
+
disabled,
|
|
12289
12254
|
onChange: (event) => {
|
|
12290
12255
|
const value = event.target.value;
|
|
12291
12256
|
restartTimer(() => {
|
|
@@ -12298,8 +12263,10 @@ var Textarea = forwardRef8(function Textarea2({
|
|
|
12298
12263
|
onBlur?.(event);
|
|
12299
12264
|
onEditCompletedWrapper(event.target.value);
|
|
12300
12265
|
},
|
|
12301
|
-
|
|
12302
|
-
|
|
12266
|
+
"data-name": props["data-name"] ?? "textarea",
|
|
12267
|
+
"data-value": props.value ? "" : void 0,
|
|
12268
|
+
"data-disabled": disabled ? "" : void 0,
|
|
12269
|
+
"data-invalid": invalid ? "" : void 0
|
|
12303
12270
|
}
|
|
12304
12271
|
);
|
|
12305
12272
|
});
|
|
@@ -12332,7 +12299,7 @@ var TextareaWithHeadline = ({
|
|
|
12332
12299
|
return /* @__PURE__ */ jsxs34(
|
|
12333
12300
|
"div",
|
|
12334
12301
|
{
|
|
12335
|
-
className:
|
|
12302
|
+
className: clsx41(
|
|
12336
12303
|
"group flex-col-3 border-2 rounded-lg",
|
|
12337
12304
|
{
|
|
12338
12305
|
"bg-input-background text-input-text hover:border-primary focus-within:border-primary": !disabled,
|
|
@@ -12347,11 +12314,10 @@ var TextareaWithHeadline = ({
|
|
|
12347
12314
|
{
|
|
12348
12315
|
...props,
|
|
12349
12316
|
id: usedId,
|
|
12350
|
-
className:
|
|
12317
|
+
className: clsx41(
|
|
12351
12318
|
"border-transparent focus:ring-0 focus-visible:ring-0 resize-none h-32",
|
|
12352
12319
|
className
|
|
12353
|
-
)
|
|
12354
|
-
defaultStyle: false
|
|
12320
|
+
)
|
|
12355
12321
|
}
|
|
12356
12322
|
)
|
|
12357
12323
|
]
|
|
@@ -12381,11 +12347,11 @@ var TextProperty = ({
|
|
|
12381
12347
|
input: ({ softRequired }) => /* @__PURE__ */ jsx53(
|
|
12382
12348
|
Textarea,
|
|
12383
12349
|
{
|
|
12384
|
-
className:
|
|
12385
|
-
"
|
|
12386
|
-
|
|
12350
|
+
className: clsx42(
|
|
12351
|
+
"default-style-none focus-style-none w-full",
|
|
12352
|
+
{ "bg-surface-warning placeholder-warning": softRequired && !hasValue }
|
|
12353
|
+
),
|
|
12387
12354
|
rows: 5,
|
|
12388
|
-
defaultStyle: false,
|
|
12389
12355
|
value: value ?? "",
|
|
12390
12356
|
readOnly,
|
|
12391
12357
|
placeholder: `${translation("text")}...`,
|
|
@@ -12410,12 +12376,12 @@ var TextProperty = ({
|
|
|
12410
12376
|
};
|
|
12411
12377
|
|
|
12412
12378
|
// src/components/table/FillerRowElement.tsx
|
|
12413
|
-
import { clsx as
|
|
12379
|
+
import { clsx as clsx43 } from "clsx";
|
|
12414
12380
|
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
12415
12381
|
var FillerRowElement = ({
|
|
12416
12382
|
className
|
|
12417
12383
|
}) => {
|
|
12418
|
-
return /* @__PURE__ */ jsx54("div", { className:
|
|
12384
|
+
return /* @__PURE__ */ jsx54("div", { className: clsx43("flex flex-row items-center w-1/2 h-4 text-disabled font-bold", className), children: "-" });
|
|
12419
12385
|
};
|
|
12420
12386
|
|
|
12421
12387
|
// src/components/table/Filter.ts
|
|
@@ -12434,7 +12400,7 @@ var TableFilters = {
|
|
|
12434
12400
|
|
|
12435
12401
|
// src/components/table/Table.tsx
|
|
12436
12402
|
import { useCallback as useCallback12, useEffect as useEffect27, useMemo as useMemo7, useRef as useRef13, useState as useState26 } from "react";
|
|
12437
|
-
import
|
|
12403
|
+
import clsx47 from "clsx";
|
|
12438
12404
|
import {
|
|
12439
12405
|
flexRender,
|
|
12440
12406
|
getCoreRowModel,
|
|
@@ -12445,13 +12411,13 @@ import {
|
|
|
12445
12411
|
} from "@tanstack/react-table";
|
|
12446
12412
|
|
|
12447
12413
|
// src/components/table/TableCell.tsx
|
|
12448
|
-
import { clsx as
|
|
12414
|
+
import { clsx as clsx44 } from "clsx";
|
|
12449
12415
|
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
12450
12416
|
var TableCell = ({
|
|
12451
12417
|
children,
|
|
12452
12418
|
className
|
|
12453
12419
|
}) => {
|
|
12454
|
-
return /* @__PURE__ */ jsx55("span", { className:
|
|
12420
|
+
return /* @__PURE__ */ jsx55("span", { className: clsx44("block max-w-full overflow-ellipsis truncate", className), children });
|
|
12455
12421
|
};
|
|
12456
12422
|
|
|
12457
12423
|
// src/hooks/useResizeCallbackWrapper.ts
|
|
@@ -12467,7 +12433,7 @@ var useResizeCallbackWrapper = (callback) => {
|
|
|
12467
12433
|
|
|
12468
12434
|
// src/components/table/TableSortButton.tsx
|
|
12469
12435
|
import { ChevronDown as ChevronDown3, ChevronsUpDown, ChevronUp } from "lucide-react";
|
|
12470
|
-
import
|
|
12436
|
+
import clsx45 from "clsx";
|
|
12471
12437
|
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
12472
12438
|
var TableSortButton = ({
|
|
12473
12439
|
sortDirection,
|
|
@@ -12491,7 +12457,7 @@ var TableSortButton = ({
|
|
|
12491
12457
|
layout: "icon",
|
|
12492
12458
|
color,
|
|
12493
12459
|
size,
|
|
12494
|
-
className:
|
|
12460
|
+
className: clsx45(className),
|
|
12495
12461
|
...buttonProps,
|
|
12496
12462
|
children: icon
|
|
12497
12463
|
}
|
|
@@ -12503,7 +12469,7 @@ import { FilterIcon } from "lucide-react";
|
|
|
12503
12469
|
|
|
12504
12470
|
// src/components/user-action/Menu.tsx
|
|
12505
12471
|
import { useEffect as useEffect25, useRef as useRef12, useState as useState24 } from "react";
|
|
12506
|
-
import
|
|
12472
|
+
import clsx46 from "clsx";
|
|
12507
12473
|
|
|
12508
12474
|
// src/utils/bagFunctions.ts
|
|
12509
12475
|
var resolve = (children, bag) => {
|
|
@@ -12648,7 +12614,7 @@ var MenuItem = ({
|
|
|
12648
12614
|
}) => /* @__PURE__ */ jsx57(
|
|
12649
12615
|
"div",
|
|
12650
12616
|
{
|
|
12651
|
-
className:
|
|
12617
|
+
className: clsx46("block px-3 py-1.5 first:rounded-t-md last:rounded-b-md text-sm font-semibold text-nowrap", {
|
|
12652
12618
|
"text-right": alignment === "right",
|
|
12653
12619
|
"text-left": alignment === "left",
|
|
12654
12620
|
"text-disabled cursor-not-allowed": isDisabled,
|
|
@@ -12722,7 +12688,7 @@ var Menu = ({
|
|
|
12722
12688
|
{
|
|
12723
12689
|
ref: menuRef,
|
|
12724
12690
|
onClick: (e) => e.stopPropagation(),
|
|
12725
|
-
className:
|
|
12691
|
+
className: clsx46(
|
|
12726
12692
|
"absolute rounded-md bg-menu-background text-menu-text shadow-around-lg shadow-strong z-[300]",
|
|
12727
12693
|
{
|
|
12728
12694
|
"animate-pop-in": isOpen,
|
|
@@ -13072,12 +13038,12 @@ var Table = ({
|
|
|
13072
13038
|
}
|
|
13073
13039
|
return colSizes;
|
|
13074
13040
|
}, [table.getState().columnSizingInfo, table.getState().columnSizing]);
|
|
13075
|
-
return /* @__PURE__ */ jsxs37("div", { ref, className:
|
|
13076
|
-
/* @__PURE__ */ jsx59("div", { className:
|
|
13041
|
+
return /* @__PURE__ */ jsxs37("div", { ref, className: clsx47("flex-col-4", className), children: [
|
|
13042
|
+
/* @__PURE__ */ jsx59("div", { className: clsx47("flex-col-0 w-full overflow-auto", tableContainerClassName), children: /* @__PURE__ */ jsxs37(
|
|
13077
13043
|
"table",
|
|
13078
13044
|
{
|
|
13079
13045
|
ref: tableRef,
|
|
13080
|
-
className:
|
|
13046
|
+
className: clsx47(tableClassName),
|
|
13081
13047
|
style: {
|
|
13082
13048
|
...columnSizeVars,
|
|
13083
13049
|
width: Math.floor(Math.max(table.getTotalSize() - columns.length, ref.current?.offsetWidth ?? table.getTotalSize()))
|
|
@@ -13099,7 +13065,7 @@ var Table = ({
|
|
|
13099
13065
|
"th",
|
|
13100
13066
|
{
|
|
13101
13067
|
colSpan: header.colSpan,
|
|
13102
|
-
className:
|
|
13068
|
+
className: clsx47("relative group", header.column.columnDef.meta?.className),
|
|
13103
13069
|
children: [
|
|
13104
13070
|
/* @__PURE__ */ jsx59("div", { className: "flex-row-2 w-full", children: header.isPlaceholder ? null : /* @__PURE__ */ jsxs37("div", { className: "flex-row-1 items-center", children: [
|
|
13105
13071
|
header.column.getCanSort() && /* @__PURE__ */ jsx59(
|
|
@@ -13270,7 +13236,7 @@ var TableWithSelection = ({
|
|
|
13270
13236
|
},
|
|
13271
13237
|
meta: {
|
|
13272
13238
|
...meta,
|
|
13273
|
-
bodyRowClassName:
|
|
13239
|
+
bodyRowClassName: clsx47(
|
|
13274
13240
|
{ "cursor-pointer": !disableClickRowClickSelection },
|
|
13275
13241
|
meta?.bodyRowClassName
|
|
13276
13242
|
)
|
|
@@ -13282,7 +13248,7 @@ var TableWithSelection = ({
|
|
|
13282
13248
|
|
|
13283
13249
|
// src/components/user-action/CopyToClipboardWrapper.tsx
|
|
13284
13250
|
import { useState as useState27 } from "react";
|
|
13285
|
-
import { clsx as
|
|
13251
|
+
import { clsx as clsx48 } from "clsx";
|
|
13286
13252
|
|
|
13287
13253
|
// src/utils/writeToClipboard.ts
|
|
13288
13254
|
var writeToClipboard = (text) => {
|
|
@@ -13325,7 +13291,7 @@ var CopyToClipboardWrapper = ({
|
|
|
13325
13291
|
return /* @__PURE__ */ jsxs38(
|
|
13326
13292
|
"div",
|
|
13327
13293
|
{
|
|
13328
|
-
className:
|
|
13294
|
+
className: clsx48("relative inline-block cursor-copy", containerClassName),
|
|
13329
13295
|
onMouseEnter: () => {
|
|
13330
13296
|
setIsShowingIndication(true);
|
|
13331
13297
|
},
|
|
@@ -13343,7 +13309,7 @@ var CopyToClipboardWrapper = ({
|
|
|
13343
13309
|
/* @__PURE__ */ jsxs38(
|
|
13344
13310
|
"div",
|
|
13345
13311
|
{
|
|
13346
|
-
className:
|
|
13312
|
+
className: clsx48(
|
|
13347
13313
|
`absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
|
|
13348
13314
|
shadow-around-md bg-tooltip-background cursor-default pointer-events-none`,
|
|
13349
13315
|
"transition-opacity duration-200",
|
|
@@ -13366,7 +13332,7 @@ var CopyToClipboardWrapper = ({
|
|
|
13366
13332
|
/* @__PURE__ */ jsx60(
|
|
13367
13333
|
"div",
|
|
13368
13334
|
{
|
|
13369
|
-
className:
|
|
13335
|
+
className: clsx48(`absolute w-0 h-0`, triangleClasses[position]),
|
|
13370
13336
|
style: { ...triangleStyle[position], zIndex: zIndex + 1 }
|
|
13371
13337
|
}
|
|
13372
13338
|
)
|
|
@@ -13379,7 +13345,7 @@ var CopyToClipboardWrapper = ({
|
|
|
13379
13345
|
};
|
|
13380
13346
|
|
|
13381
13347
|
// src/components/user-action/DateAndTimePicker.tsx
|
|
13382
|
-
import
|
|
13348
|
+
import clsx49 from "clsx";
|
|
13383
13349
|
import { jsx as jsx61, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
13384
13350
|
var DateTimePicker = ({
|
|
13385
13351
|
value = /* @__PURE__ */ new Date(),
|
|
@@ -13416,7 +13382,7 @@ var DateTimePicker = ({
|
|
|
13416
13382
|
TimePicker,
|
|
13417
13383
|
{
|
|
13418
13384
|
...timePickerProps,
|
|
13419
|
-
className:
|
|
13385
|
+
className: clsx49("min-h-71 max-h-71", { "justify-between w-full": mode === "time" }),
|
|
13420
13386
|
time: value,
|
|
13421
13387
|
onChange
|
|
13422
13388
|
}
|
|
@@ -13443,7 +13409,7 @@ var DateTimePicker = ({
|
|
|
13443
13409
|
|
|
13444
13410
|
// src/components/user-action/ScrollPicker.tsx
|
|
13445
13411
|
import { useCallback as useCallback13, useEffect as useEffect28, useState as useState28 } from "react";
|
|
13446
|
-
import
|
|
13412
|
+
import clsx50 from "clsx";
|
|
13447
13413
|
import { jsx as jsx62, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
13448
13414
|
var up = 1;
|
|
13449
13415
|
var down = -1;
|
|
@@ -13613,7 +13579,7 @@ var ScrollPicker = ({
|
|
|
13613
13579
|
children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ jsx62(
|
|
13614
13580
|
"div",
|
|
13615
13581
|
{
|
|
13616
|
-
className:
|
|
13582
|
+
className: clsx50(
|
|
13617
13583
|
`flex-col-2 items-center justify-center rounded-md`,
|
|
13618
13584
|
{
|
|
13619
13585
|
"text-primary font-bold": currentIndex === index,
|
|
@@ -13639,42 +13605,9 @@ var ScrollPicker = ({
|
|
|
13639
13605
|
);
|
|
13640
13606
|
};
|
|
13641
13607
|
|
|
13642
|
-
// src/components/user-action/SearchBar.tsx
|
|
13643
|
-
import { Search } from "lucide-react";
|
|
13644
|
-
import { clsx as clsx52 } from "clsx";
|
|
13645
|
-
import { jsx as jsx63, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
13646
|
-
var SearchBar = ({
|
|
13647
|
-
placeholder,
|
|
13648
|
-
onSearch,
|
|
13649
|
-
disableOnSearch,
|
|
13650
|
-
containerClassName,
|
|
13651
|
-
...inputProps
|
|
13652
|
-
}) => {
|
|
13653
|
-
const translation = useHightideTranslation();
|
|
13654
|
-
return /* @__PURE__ */ jsxs41("div", { className: clsx52("flex-row-2 justify-between items-center", containerClassName), children: [
|
|
13655
|
-
/* @__PURE__ */ jsx63(
|
|
13656
|
-
Input,
|
|
13657
|
-
{
|
|
13658
|
-
...inputProps,
|
|
13659
|
-
placeholder: placeholder ?? translation("search")
|
|
13660
|
-
}
|
|
13661
|
-
),
|
|
13662
|
-
onSearch && /* @__PURE__ */ jsx63(
|
|
13663
|
-
Button,
|
|
13664
|
-
{
|
|
13665
|
-
layout: "icon",
|
|
13666
|
-
color: "neutral",
|
|
13667
|
-
disabled: disableOnSearch,
|
|
13668
|
-
onClick: onSearch,
|
|
13669
|
-
children: /* @__PURE__ */ jsx63(Search, { className: "w-full h-full" })
|
|
13670
|
-
}
|
|
13671
|
-
)
|
|
13672
|
-
] });
|
|
13673
|
-
};
|
|
13674
|
-
|
|
13675
13608
|
// src/components/user-action/Tooltip.tsx
|
|
13676
|
-
import { clsx as
|
|
13677
|
-
import { jsx as
|
|
13609
|
+
import { clsx as clsx51 } from "clsx";
|
|
13610
|
+
import { jsx as jsx63, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
13678
13611
|
var Tooltip = ({
|
|
13679
13612
|
tooltip,
|
|
13680
13613
|
children,
|
|
@@ -13704,17 +13637,17 @@ var Tooltip = ({
|
|
|
13704
13637
|
right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
|
|
13705
13638
|
};
|
|
13706
13639
|
const zIndex = useZIndexRegister(isHovered);
|
|
13707
|
-
return /* @__PURE__ */
|
|
13640
|
+
return /* @__PURE__ */ jsxs41(
|
|
13708
13641
|
"div",
|
|
13709
13642
|
{
|
|
13710
|
-
className:
|
|
13643
|
+
className: clsx51("relative inline-block", containerClassName),
|
|
13711
13644
|
...handlers,
|
|
13712
13645
|
children: [
|
|
13713
13646
|
children,
|
|
13714
|
-
isHovered && /* @__PURE__ */
|
|
13647
|
+
isHovered && /* @__PURE__ */ jsxs41(
|
|
13715
13648
|
"div",
|
|
13716
13649
|
{
|
|
13717
|
-
className:
|
|
13650
|
+
className: clsx51(
|
|
13718
13651
|
`opacity-0 absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
|
|
13719
13652
|
animate-tooltip-fade-in shadow-around-md bg-tooltip-background`,
|
|
13720
13653
|
positionClasses[position],
|
|
@@ -13723,10 +13656,10 @@ var Tooltip = ({
|
|
|
13723
13656
|
style: { zIndex, animationDelay: animationDelay + "ms" },
|
|
13724
13657
|
children: [
|
|
13725
13658
|
tooltip,
|
|
13726
|
-
/* @__PURE__ */
|
|
13659
|
+
/* @__PURE__ */ jsx63(
|
|
13727
13660
|
"div",
|
|
13728
13661
|
{
|
|
13729
|
-
className:
|
|
13662
|
+
className: clsx51(`absolute w-0 h-0`, triangleClasses[position]),
|
|
13730
13663
|
style: { ...triangleStyle[position], zIndex: zIndex + 1 }
|
|
13731
13664
|
}
|
|
13732
13665
|
)
|
|
@@ -13741,8 +13674,8 @@ var Tooltip = ({
|
|
|
13741
13674
|
// src/components/user-action/input/InsideLabelInput.tsx
|
|
13742
13675
|
import { useId as useId11 } from "react";
|
|
13743
13676
|
import { forwardRef as forwardRef9, useState as useState29 } from "react";
|
|
13744
|
-
import
|
|
13745
|
-
import { jsx as
|
|
13677
|
+
import clsx52 from "clsx";
|
|
13678
|
+
import { jsx as jsx64, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
13746
13679
|
var InsideLabelInput = forwardRef9(function InsideLabelInput2({
|
|
13747
13680
|
id: customId,
|
|
13748
13681
|
label,
|
|
@@ -13752,13 +13685,13 @@ var InsideLabelInput = forwardRef9(function InsideLabelInput2({
|
|
|
13752
13685
|
const [isFocused, setIsFocused] = useState29(false);
|
|
13753
13686
|
const generatedId = useId11();
|
|
13754
13687
|
const id = customId ?? generatedId;
|
|
13755
|
-
return /* @__PURE__ */
|
|
13756
|
-
/* @__PURE__ */
|
|
13688
|
+
return /* @__PURE__ */ jsxs42("div", { className: clsx52("relative"), children: [
|
|
13689
|
+
/* @__PURE__ */ jsx64(
|
|
13757
13690
|
Input,
|
|
13758
13691
|
{
|
|
13759
13692
|
...props,
|
|
13760
13693
|
id,
|
|
13761
|
-
className:
|
|
13694
|
+
className: clsx52("h-14 px-4 pb-2 py-6.5", props.className),
|
|
13762
13695
|
ref: forwardedRef,
|
|
13763
13696
|
"aria-labelledby": id + "-label",
|
|
13764
13697
|
onFocus: (event) => {
|
|
@@ -13771,13 +13704,13 @@ var InsideLabelInput = forwardRef9(function InsideLabelInput2({
|
|
|
13771
13704
|
}
|
|
13772
13705
|
}
|
|
13773
13706
|
),
|
|
13774
|
-
/* @__PURE__ */
|
|
13707
|
+
/* @__PURE__ */ jsx64(
|
|
13775
13708
|
"label",
|
|
13776
13709
|
{
|
|
13777
13710
|
id: id + "-label",
|
|
13778
13711
|
"aria-hidden": true,
|
|
13779
13712
|
"data-display": isFocused || !!value ? "small" : "full",
|
|
13780
|
-
className:
|
|
13713
|
+
className: clsx52(
|
|
13781
13714
|
// margin left to account for the border which is ignored for absolute positions
|
|
13782
13715
|
"absolute left-4 ml-0.5 top-2 transition-all delay-25 pointer-events-none touch-none",
|
|
13783
13716
|
"data-[display=small]:top-2 data-[display=small]:h-force-4.5 data-[display=small]:typography-caption-sm data-[display=small]:overflow-y-hidden",
|
|
@@ -13793,7 +13726,7 @@ var InsideLabelInputUncontrolled = ({
|
|
|
13793
13726
|
...props
|
|
13794
13727
|
}) => {
|
|
13795
13728
|
const [value, setValue] = useOverwritableState(initialValue, props.onChangeText);
|
|
13796
|
-
return /* @__PURE__ */
|
|
13729
|
+
return /* @__PURE__ */ jsx64(
|
|
13797
13730
|
InsideLabelInput,
|
|
13798
13731
|
{
|
|
13799
13732
|
...props,
|
|
@@ -13803,10 +13736,46 @@ var InsideLabelInputUncontrolled = ({
|
|
|
13803
13736
|
);
|
|
13804
13737
|
};
|
|
13805
13738
|
|
|
13739
|
+
// src/components/user-action/input/SearchBar.tsx
|
|
13740
|
+
import { Search } from "lucide-react";
|
|
13741
|
+
import { clsx as clsx53 } from "clsx";
|
|
13742
|
+
import { jsx as jsx65, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
13743
|
+
var SearchBar = ({
|
|
13744
|
+
onSearch,
|
|
13745
|
+
searchButtonProps,
|
|
13746
|
+
containerProps,
|
|
13747
|
+
...inputProps
|
|
13748
|
+
}) => {
|
|
13749
|
+
const translation = useHightideTranslation();
|
|
13750
|
+
return /* @__PURE__ */ jsxs43("div", { ...containerProps, className: clsx53("relative", containerProps?.className), children: [
|
|
13751
|
+
/* @__PURE__ */ jsx65(
|
|
13752
|
+
InputUncontrolled,
|
|
13753
|
+
{
|
|
13754
|
+
...inputProps,
|
|
13755
|
+
placeholder: inputProps.placeholder ?? translation("search"),
|
|
13756
|
+
className: clsx53("pr-10 w-full", inputProps.className)
|
|
13757
|
+
}
|
|
13758
|
+
),
|
|
13759
|
+
onSearch && /* @__PURE__ */ jsx65(
|
|
13760
|
+
Button,
|
|
13761
|
+
{
|
|
13762
|
+
...searchButtonProps,
|
|
13763
|
+
size: "small",
|
|
13764
|
+
layout: "icon",
|
|
13765
|
+
color: "neutral",
|
|
13766
|
+
coloringStyle: "text",
|
|
13767
|
+
onClick: (event) => onSearch(event),
|
|
13768
|
+
className: clsx53("absolute right-1 top-1/2 -translate-y-1/2", searchButtonProps?.className),
|
|
13769
|
+
children: /* @__PURE__ */ jsx65(Search, { className: "w-full h-full" })
|
|
13770
|
+
}
|
|
13771
|
+
)
|
|
13772
|
+
] });
|
|
13773
|
+
};
|
|
13774
|
+
|
|
13806
13775
|
// src/components/user-action/input/ToggleableInput.tsx
|
|
13807
13776
|
import { forwardRef as forwardRef10, useEffect as useEffect29, useImperativeHandle as useImperativeHandle4, useRef as useRef14, useState as useState30 } from "react";
|
|
13808
13777
|
import { Pencil } from "lucide-react";
|
|
13809
|
-
import
|
|
13778
|
+
import clsx54 from "clsx";
|
|
13810
13779
|
import { jsx as jsx66, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
13811
13780
|
var ToggleableInput = forwardRef10(function ToggleableInput2({
|
|
13812
13781
|
value,
|
|
@@ -13822,7 +13791,7 @@ var ToggleableInput = forwardRef10(function ToggleableInput2({
|
|
|
13822
13791
|
innerRef.current?.focus();
|
|
13823
13792
|
}
|
|
13824
13793
|
}, [isEditing]);
|
|
13825
|
-
return /* @__PURE__ */ jsxs44("div", { className:
|
|
13794
|
+
return /* @__PURE__ */ jsxs44("div", { className: clsx54("relative flex-row-2", { "flex-1": isEditing }), children: [
|
|
13826
13795
|
/* @__PURE__ */ jsx66(
|
|
13827
13796
|
Input,
|
|
13828
13797
|
{
|
|
@@ -13842,16 +13811,16 @@ var ToggleableInput = forwardRef10(function ToggleableInput2({
|
|
|
13842
13811
|
...editCompleteOptions,
|
|
13843
13812
|
allowEnterComplete: true
|
|
13844
13813
|
},
|
|
13845
|
-
|
|
13846
|
-
|
|
13814
|
+
"data-name": props["data-name"] ?? "togglable-input",
|
|
13815
|
+
"data-isEditing": isEditing ? "" : void 0,
|
|
13816
|
+
className: clsx54(`w-full rounded-md`, {
|
|
13847
13817
|
"text-transparent": !isEditing
|
|
13848
|
-
})
|
|
13849
|
-
defaultStyle: false
|
|
13818
|
+
})
|
|
13850
13819
|
}
|
|
13851
13820
|
),
|
|
13852
13821
|
!isEditing && /* @__PURE__ */ jsxs44("div", { className: "absolute left-0 flex-row-2 items-center pointer-events-none touch-none w-full overflow-hidden", children: [
|
|
13853
|
-
/* @__PURE__ */ jsx66("span", { className:
|
|
13854
|
-
/* @__PURE__ */ jsx66(Pencil, { className:
|
|
13822
|
+
/* @__PURE__ */ jsx66("span", { className: clsx54(" truncate"), children: value }),
|
|
13823
|
+
/* @__PURE__ */ jsx66(Pencil, { className: clsx54(`size-force-4`, { "text-transparent": isEditing }) })
|
|
13855
13824
|
] })
|
|
13856
13825
|
] });
|
|
13857
13826
|
});
|