@helpwave/hightide 0.1.22 → 0.1.24
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/README.md +5 -0
- package/dist/components/branding/HelpwaveBadge.js +8 -5
- package/dist/components/branding/HelpwaveBadge.js.map +1 -1
- package/dist/components/branding/HelpwaveBadge.mjs +8 -5
- package/dist/components/branding/HelpwaveBadge.mjs.map +1 -1
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/DatePicker.mjs +10 -10
- package/dist/components/date/DatePicker.mjs.map +1 -1
- package/dist/components/date/DayPicker.js.map +1 -1
- package/dist/components/date/DayPicker.mjs +4 -4
- package/dist/components/date/DayPicker.mjs.map +1 -1
- package/dist/components/date/TimeDisplay.js.map +1 -1
- package/dist/components/date/TimeDisplay.mjs +2 -2
- package/dist/components/date/TimeDisplay.mjs.map +1 -1
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/date/YearMonthPicker.mjs +5 -5
- package/dist/components/date/YearMonthPicker.mjs.map +1 -1
- package/dist/components/dialogs/ConfirmDialog.js.map +1 -1
- package/dist/components/dialogs/ConfirmDialog.mjs +8 -8
- package/dist/components/dialogs/ConfirmDialog.mjs.map +1 -1
- package/dist/components/icons-and-geometry/Avatar.js +2912 -33
- package/dist/components/icons-and-geometry/Avatar.js.map +1 -1
- package/dist/components/icons-and-geometry/Avatar.mjs +2941 -33
- package/dist/components/icons-and-geometry/Avatar.mjs.map +1 -1
- package/dist/components/icons-and-geometry/Tag.js +2912 -1
- package/dist/components/icons-and-geometry/Tag.js.map +1 -1
- package/dist/components/icons-and-geometry/Tag.mjs +2931 -1
- package/dist/components/icons-and-geometry/Tag.mjs.map +1 -1
- package/dist/components/layout-and-navigation/BreadCrumb.d.mts +2 -1
- package/dist/components/layout-and-navigation/BreadCrumb.d.ts +2 -1
- package/dist/components/layout-and-navigation/BreadCrumb.js +15 -11
- package/dist/components/layout-and-navigation/BreadCrumb.js.map +1 -1
- package/dist/components/layout-and-navigation/BreadCrumb.mjs +15 -11
- package/dist/components/layout-and-navigation/BreadCrumb.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Chip.js +2 -2
- package/dist/components/layout-and-navigation/Chip.js.map +1 -1
- package/dist/components/layout-and-navigation/Chip.mjs +2 -2
- package/dist/components/layout-and-navigation/Chip.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Overlay.js.map +1 -1
- package/dist/components/layout-and-navigation/Overlay.mjs +6 -6
- package/dist/components/layout-and-navigation/Overlay.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
- package/dist/components/layout-and-navigation/Pagination.mjs +10 -10
- package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -1
- package/dist/components/layout-and-navigation/SearchableList.js.map +1 -1
- package/dist/components/layout-and-navigation/SearchableList.mjs +10 -10
- package/dist/components/layout-and-navigation/SearchableList.mjs.map +1 -1
- package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
- package/dist/components/layout-and-navigation/StepperBar.mjs +4 -4
- package/dist/components/layout-and-navigation/StepperBar.mjs.map +1 -1
- package/dist/components/layout-and-navigation/TextImage.js.map +1 -1
- package/dist/components/layout-and-navigation/TextImage.mjs +2 -2
- package/dist/components/layout-and-navigation/TextImage.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Tile.d.mts +9 -10
- package/dist/components/layout-and-navigation/Tile.d.ts +9 -10
- package/dist/components/layout-and-navigation/Tile.js +21 -4
- package/dist/components/layout-and-navigation/Tile.js.map +1 -1
- package/dist/components/layout-and-navigation/Tile.mjs +20 -4
- package/dist/components/layout-and-navigation/Tile.mjs.map +1 -1
- package/dist/components/loading-states/ErrorComponent.js.map +1 -1
- package/dist/components/loading-states/ErrorComponent.mjs +2 -2
- package/dist/components/loading-states/ErrorComponent.mjs.map +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.js +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.js.map +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.mjs +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.mjs.map +1 -1
- package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
- package/dist/components/loading-states/LoadingAnimation.mjs +2 -2
- package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -1
- package/dist/components/modals/ConfirmModal.js.map +1 -1
- package/dist/components/modals/ConfirmModal.mjs +8 -8
- package/dist/components/modals/ConfirmModal.mjs.map +1 -1
- package/dist/components/modals/DiscardChangesModal.js.map +1 -1
- package/dist/components/modals/DiscardChangesModal.mjs +8 -8
- package/dist/components/modals/DiscardChangesModal.mjs.map +1 -1
- package/dist/components/modals/InputModal.js.map +1 -1
- package/dist/components/modals/InputModal.mjs +8 -8
- package/dist/components/modals/InputModal.mjs.map +1 -1
- package/dist/components/modals/LanguageModal.js +21 -22
- package/dist/components/modals/LanguageModal.js.map +1 -1
- package/dist/components/modals/LanguageModal.mjs +45 -46
- package/dist/components/modals/LanguageModal.mjs.map +1 -1
- package/dist/components/modals/ThemeModal.js +21 -22
- package/dist/components/modals/ThemeModal.js.map +1 -1
- package/dist/components/modals/ThemeModal.mjs +46 -47
- package/dist/components/modals/ThemeModal.mjs.map +1 -1
- package/dist/components/properties/CheckboxProperty.js +1 -1
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/CheckboxProperty.mjs +3 -3
- package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
- package/dist/components/properties/DateProperty.js +1 -1
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/DateProperty.mjs +3 -3
- package/dist/components/properties/DateProperty.mjs.map +1 -1
- package/dist/components/properties/MultiSelectProperty.d.mts +0 -1
- package/dist/components/properties/MultiSelectProperty.d.ts +0 -1
- package/dist/components/properties/MultiSelectProperty.js +745 -740
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/MultiSelectProperty.mjs +762 -757
- package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
- package/dist/components/properties/NumberProperty.js +1 -1
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/NumberProperty.mjs +3 -3
- package/dist/components/properties/NumberProperty.mjs.map +1 -1
- package/dist/components/properties/PropertyBase.js +1 -1
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/PropertyBase.mjs +3 -3
- package/dist/components/properties/PropertyBase.mjs.map +1 -1
- package/dist/components/properties/SelectProperty.d.mts +0 -1
- package/dist/components/properties/SelectProperty.d.ts +0 -1
- package/dist/components/properties/SelectProperty.js +24 -25
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/SelectProperty.mjs +45 -46
- package/dist/components/properties/SelectProperty.mjs.map +1 -1
- package/dist/components/properties/TextProperty.js +1 -1
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/properties/TextProperty.mjs +7 -7
- package/dist/components/properties/TextProperty.mjs.map +1 -1
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/Table.mjs +26 -26
- package/dist/components/table/Table.mjs.map +1 -1
- package/dist/components/table/TableFilterButton.js.map +1 -1
- package/dist/components/table/TableFilterButton.mjs +4 -4
- package/dist/components/table/TableFilterButton.mjs.map +1 -1
- package/dist/components/user-action/CopyToClipboardWrapper.js.map +1 -1
- package/dist/components/user-action/CopyToClipboardWrapper.mjs +2 -2
- package/dist/components/user-action/CopyToClipboardWrapper.mjs.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.mjs +12 -12
- package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
- package/dist/components/user-action/MultiSelect.d.mts +0 -1
- package/dist/components/user-action/MultiSelect.d.ts +0 -1
- package/dist/components/user-action/MultiSelect.js +617 -612
- package/dist/components/user-action/MultiSelect.js.map +1 -1
- package/dist/components/user-action/MultiSelect.mjs +642 -637
- package/dist/components/user-action/MultiSelect.mjs.map +1 -1
- package/dist/components/user-action/ScrollPicker.js +1 -1
- package/dist/components/user-action/ScrollPicker.js.map +1 -1
- package/dist/components/user-action/ScrollPicker.mjs +1 -1
- package/dist/components/user-action/ScrollPicker.mjs.map +1 -1
- package/dist/components/user-action/SearchBar.js.map +1 -1
- package/dist/components/user-action/SearchBar.mjs +2 -2
- package/dist/components/user-action/SearchBar.mjs.map +1 -1
- package/dist/components/user-action/Select.d.mts +1 -4
- package/dist/components/user-action/Select.d.ts +1 -4
- package/dist/components/user-action/Select.js +21 -24
- package/dist/components/user-action/Select.js.map +1 -1
- package/dist/components/user-action/Select.mjs +27 -29
- package/dist/components/user-action/Select.mjs.map +1 -1
- package/dist/css/globals.css +175 -179
- package/dist/css/uncompiled/globals.css +3 -3
- package/dist/css/uncompiled/textstyles.css +5 -5
- package/dist/css/uncompiled/theme/colors-basic.css +13 -5
- package/dist/css/uncompiled/theme/colors-component.css +56 -41
- package/dist/css/uncompiled/theme/colors-semantic.css +76 -83
- package/dist/css/uncompiled/theme/index.css +1 -2
- package/dist/hooks/useLocalStorage.js +1 -3
- package/dist/hooks/useLocalStorage.js.map +1 -1
- package/dist/hooks/useLocalStorage.mjs +3 -4
- package/dist/hooks/useLocalStorage.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3161 -377
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3098 -314
- package/dist/index.mjs.map +1 -1
- package/dist/localization/LanguageProvider.js +0 -3
- package/dist/localization/LanguageProvider.js.map +1 -1
- package/dist/localization/LanguageProvider.mjs +5 -8
- package/dist/localization/LanguageProvider.mjs.map +1 -1
- package/dist/localization/useTranslation.js.map +1 -1
- package/dist/localization/useTranslation.mjs +2 -2
- package/dist/localization/useTranslation.mjs.map +1 -1
- package/dist/theming/useTheme.js +4 -7
- package/dist/theming/useTheme.js.map +1 -1
- package/dist/theming/useTheme.mjs +9 -12
- package/dist/theming/useTheme.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/css/uncompiled/theme/theme.css +0 -0
|
@@ -3,10 +3,10 @@ import { List, Plus } from "lucide-react";
|
|
|
3
3
|
import clsx10 from "clsx";
|
|
4
4
|
|
|
5
5
|
// src/localization/LanguageProvider.tsx
|
|
6
|
-
import { createContext, useContext, useEffect
|
|
6
|
+
import { createContext, useContext, useEffect, useState as useState2 } from "react";
|
|
7
7
|
|
|
8
8
|
// src/hooks/useLocalStorage.ts
|
|
9
|
-
import { useCallback,
|
|
9
|
+
import { useCallback, useState } from "react";
|
|
10
10
|
|
|
11
11
|
// src/localization/util.ts
|
|
12
12
|
var languages = ["en", "de"];
|
|
@@ -443,7 +443,7 @@ var PropertyBase = ({
|
|
|
443
443
|
className
|
|
444
444
|
),
|
|
445
445
|
children: [
|
|
446
|
-
/* @__PURE__ */ jsx3("div", { className: "max-w-6 min-w-6 text-text-
|
|
446
|
+
/* @__PURE__ */ jsx3("div", { className: "max-w-6 min-w-6 text-text-primary", children: icon }),
|
|
447
447
|
/* @__PURE__ */ jsx3("span", { className: "font-semibold", children: name })
|
|
448
448
|
]
|
|
449
449
|
}
|
|
@@ -480,7 +480,7 @@ var PropertyBase = ({
|
|
|
480
480
|
|
|
481
481
|
// src/components/user-action/Select.tsx
|
|
482
482
|
import { useCallback as useCallback5 } from "react";
|
|
483
|
-
import { useEffect as
|
|
483
|
+
import { useEffect as useEffect10, useState as useState9 } from "react";
|
|
484
484
|
import clsx9 from "clsx";
|
|
485
485
|
|
|
486
486
|
// src/components/user-action/Label.tsx
|
|
@@ -507,14 +507,16 @@ import { Check } from "lucide-react";
|
|
|
507
507
|
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
508
508
|
var Tile = ({
|
|
509
509
|
title,
|
|
510
|
+
titleClassName,
|
|
510
511
|
description,
|
|
512
|
+
descriptionClassName,
|
|
511
513
|
onClick,
|
|
512
514
|
isSelected = false,
|
|
513
515
|
disabled = false,
|
|
514
516
|
prefix,
|
|
515
517
|
suffix,
|
|
516
518
|
normalClassName = "hover:bg-primary/40 cursor-pointer",
|
|
517
|
-
selectedClassName = "
|
|
519
|
+
selectedClassName = "bg-primary/20",
|
|
518
520
|
disabledClassName = "text-disabled-text bg-disabled-background cursor-not-allowed",
|
|
519
521
|
className
|
|
520
522
|
}) => {
|
|
@@ -524,7 +526,7 @@ var Tile = ({
|
|
|
524
526
|
className: clsx4(
|
|
525
527
|
"flex-row-2 w-full items-center",
|
|
526
528
|
{
|
|
527
|
-
[normalClassName]:
|
|
529
|
+
[normalClassName]: onClick && !disabled,
|
|
528
530
|
[selectedClassName]: isSelected && !disabled,
|
|
529
531
|
[disabledClassName]: disabled
|
|
530
532
|
},
|
|
@@ -534,17 +536,30 @@ var Tile = ({
|
|
|
534
536
|
children: [
|
|
535
537
|
prefix,
|
|
536
538
|
/* @__PURE__ */ jsxs3("div", { className: "flex-col-0 w-full", children: [
|
|
537
|
-
/* @__PURE__ */ jsx5("
|
|
538
|
-
!!description && /* @__PURE__ */ jsx5("span", { className: clsx4(
|
|
539
|
+
/* @__PURE__ */ jsx5("span", { className: clsx4(titleClassName ?? "textstyle-title-normal"), children: title }),
|
|
540
|
+
!!description && /* @__PURE__ */ jsx5("span", { className: clsx4(descriptionClassName ?? "textstyle-description"), children: description })
|
|
539
541
|
] }),
|
|
540
542
|
suffix ?? (isSelected ? /* @__PURE__ */ jsx5(Check, { size: 24 }) : void 0)
|
|
541
543
|
]
|
|
542
544
|
}
|
|
543
545
|
);
|
|
544
546
|
};
|
|
547
|
+
var ListTile = ({
|
|
548
|
+
...props
|
|
549
|
+
}) => {
|
|
550
|
+
return /* @__PURE__ */ jsx5(
|
|
551
|
+
Tile,
|
|
552
|
+
{
|
|
553
|
+
...props,
|
|
554
|
+
titleClassName: props.titleClassName ?? "font-semibold",
|
|
555
|
+
className: clsx4("px-2 py-1 rounded-md", props.className),
|
|
556
|
+
disabledClassName: props.disabledClassName ?? "text-disabled-text cursor-not-allowed"
|
|
557
|
+
}
|
|
558
|
+
);
|
|
559
|
+
};
|
|
545
560
|
|
|
546
561
|
// src/components/layout-and-navigation/Expandable.tsx
|
|
547
|
-
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as
|
|
562
|
+
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as useEffect2, useState as useState3 } from "react";
|
|
548
563
|
import { ChevronDown } from "lucide-react";
|
|
549
564
|
import clsx5 from "clsx";
|
|
550
565
|
|
|
@@ -630,7 +645,7 @@ var ExpandableUncontrolled = forwardRef2(function ExpandableUncontrolled2({
|
|
|
630
645
|
...props
|
|
631
646
|
}, ref) {
|
|
632
647
|
const [usedIsExpanded, setUsedIsExpanded] = useState3(isExpanded);
|
|
633
|
-
|
|
648
|
+
useEffect2(() => {
|
|
634
649
|
setUsedIsExpanded(isExpanded);
|
|
635
650
|
}, [isExpanded]);
|
|
636
651
|
return /* @__PURE__ */ jsx6(
|
|
@@ -648,13 +663,13 @@ var ExpandableUncontrolled = forwardRef2(function ExpandableUncontrolled2({
|
|
|
648
663
|
});
|
|
649
664
|
|
|
650
665
|
// src/components/user-action/Menu.tsx
|
|
651
|
-
import { useEffect as
|
|
666
|
+
import { useEffect as useEffect5, useRef, useState as useState5 } from "react";
|
|
652
667
|
import clsx6 from "clsx";
|
|
653
668
|
|
|
654
669
|
// src/hooks/useOutsideClick.ts
|
|
655
|
-
import { useEffect as
|
|
670
|
+
import { useEffect as useEffect3 } from "react";
|
|
656
671
|
var useOutsideClick = (refs, handler) => {
|
|
657
|
-
|
|
672
|
+
useEffect3(() => {
|
|
658
673
|
const listener = (event) => {
|
|
659
674
|
if (event.target === null) return;
|
|
660
675
|
if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
|
|
@@ -672,7 +687,7 @@ var useOutsideClick = (refs, handler) => {
|
|
|
672
687
|
};
|
|
673
688
|
|
|
674
689
|
// src/hooks/useHoverState.ts
|
|
675
|
-
import { useEffect as
|
|
690
|
+
import { useEffect as useEffect4, useState as useState4 } from "react";
|
|
676
691
|
var defaultUseHoverStateProps = {
|
|
677
692
|
closingDelay: 200,
|
|
678
693
|
isDisabled: false
|
|
@@ -696,14 +711,14 @@ var useHoverState = (props = void 0) => {
|
|
|
696
711
|
setIsHovered(false);
|
|
697
712
|
}, closingDelay));
|
|
698
713
|
};
|
|
699
|
-
|
|
714
|
+
useEffect4(() => {
|
|
700
715
|
if (timer) {
|
|
701
716
|
return () => {
|
|
702
717
|
clearTimeout(timer);
|
|
703
718
|
};
|
|
704
719
|
}
|
|
705
720
|
});
|
|
706
|
-
|
|
721
|
+
useEffect4(() => {
|
|
707
722
|
if (timer) {
|
|
708
723
|
clearTimeout(timer);
|
|
709
724
|
}
|
|
@@ -816,7 +831,7 @@ var Menu = ({
|
|
|
816
831
|
triggerRef.current?.getBoundingClientRect(),
|
|
817
832
|
{ verticalAlignment: alignmentVertical, horizontalAlignment: alignmentHorizontal, disabled }
|
|
818
833
|
);
|
|
819
|
-
|
|
834
|
+
useEffect5(() => {
|
|
820
835
|
if (!isOpen) return;
|
|
821
836
|
const triggerEl = triggerRef.current;
|
|
822
837
|
if (!triggerEl) return;
|
|
@@ -833,7 +848,7 @@ var Menu = ({
|
|
|
833
848
|
window.removeEventListener("resize", close);
|
|
834
849
|
};
|
|
835
850
|
}, [isOpen, setIsOpen]);
|
|
836
|
-
|
|
851
|
+
useEffect5(() => {
|
|
837
852
|
if (isOpen) {
|
|
838
853
|
setIsHidden(false);
|
|
839
854
|
}
|
|
@@ -869,11 +884,11 @@ var Menu = ({
|
|
|
869
884
|
};
|
|
870
885
|
|
|
871
886
|
// src/components/user-action/Input.tsx
|
|
872
|
-
import { forwardRef as forwardRef3, useEffect as
|
|
887
|
+
import { forwardRef as forwardRef3, useEffect as useEffect8, useImperativeHandle, useRef as useRef2, useState as useState7 } from "react";
|
|
873
888
|
import clsx7 from "clsx";
|
|
874
889
|
|
|
875
890
|
// src/hooks/useDelay.ts
|
|
876
|
-
import { useEffect as
|
|
891
|
+
import { useEffect as useEffect6, useState as useState6 } from "react";
|
|
877
892
|
var defaultOptions = {
|
|
878
893
|
delay: 3e3,
|
|
879
894
|
disabled: false
|
|
@@ -898,12 +913,12 @@ function useDelay(options) {
|
|
|
898
913
|
setTimer(void 0);
|
|
899
914
|
}, delay));
|
|
900
915
|
};
|
|
901
|
-
|
|
916
|
+
useEffect6(() => {
|
|
902
917
|
return () => {
|
|
903
918
|
clearTimeout(timer);
|
|
904
919
|
};
|
|
905
920
|
}, [timer]);
|
|
906
|
-
|
|
921
|
+
useEffect6(() => {
|
|
907
922
|
if (disabled) {
|
|
908
923
|
clearTimeout(timer);
|
|
909
924
|
setTimer(void 0);
|
|
@@ -970,10 +985,10 @@ function useFocusManagement() {
|
|
|
970
985
|
}
|
|
971
986
|
|
|
972
987
|
// src/hooks/useFocusOnceVisible.ts
|
|
973
|
-
import React, { useEffect as
|
|
988
|
+
import React, { useEffect as useEffect7 } from "react";
|
|
974
989
|
var useFocusOnceVisible = (ref, disable = false) => {
|
|
975
990
|
const [hasUsedFocus, setHasUsedFocus] = React.useState(false);
|
|
976
|
-
|
|
991
|
+
useEffect7(() => {
|
|
977
992
|
if (disable || hasUsedFocus) {
|
|
978
993
|
return;
|
|
979
994
|
}
|
|
@@ -1144,7 +1159,7 @@ var SearchBar = ({
|
|
|
1144
1159
|
};
|
|
1145
1160
|
|
|
1146
1161
|
// src/hooks/useSearch.ts
|
|
1147
|
-
import { useCallback as useCallback4, useEffect as
|
|
1162
|
+
import { useCallback as useCallback4, useEffect as useEffect9, useMemo, useState as useState8 } from "react";
|
|
1148
1163
|
|
|
1149
1164
|
// src/util/simpleSearch.ts
|
|
1150
1165
|
var MultiSubjectSearchWithMapping = (search, objects, mapping) => {
|
|
@@ -1178,7 +1193,7 @@ var useSearch = ({
|
|
|
1178
1193
|
}
|
|
1179
1194
|
setResult(MultiSubjectSearchWithMapping([usedSearch, ...searchTags], list, searchMapping));
|
|
1180
1195
|
}, [searchTags, list, search, searchMapping]);
|
|
1181
|
-
|
|
1196
|
+
useEffect9(() => {
|
|
1182
1197
|
if (isSearchInstant) {
|
|
1183
1198
|
setResult(MultiSubjectSearchWithMapping([search, ...searchTags], list, searchMapping));
|
|
1184
1199
|
}
|
|
@@ -1213,22 +1228,6 @@ var useSearch = ({
|
|
|
1213
1228
|
|
|
1214
1229
|
// src/components/user-action/Select.tsx
|
|
1215
1230
|
import { Fragment as Fragment2, jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1216
|
-
var SelectTile = ({
|
|
1217
|
-
className,
|
|
1218
|
-
disabledClassName,
|
|
1219
|
-
title,
|
|
1220
|
-
...restProps
|
|
1221
|
-
}) => {
|
|
1222
|
-
return /* @__PURE__ */ jsx10(
|
|
1223
|
-
Tile,
|
|
1224
|
-
{
|
|
1225
|
-
...restProps,
|
|
1226
|
-
className: clsx9("px-2 py-1 rounded-md", className),
|
|
1227
|
-
disabledClassName: disabledClassName ?? "text-disabled-text cursor-not-allowed",
|
|
1228
|
-
title: { ...title, className: title.className ?? "font-semibold" }
|
|
1229
|
-
}
|
|
1230
|
-
);
|
|
1231
|
-
};
|
|
1232
1231
|
var Select = ({
|
|
1233
1232
|
value,
|
|
1234
1233
|
label,
|
|
@@ -1295,10 +1294,10 @@ var Select = ({
|
|
|
1295
1294
|
),
|
|
1296
1295
|
/* @__PURE__ */ jsxs8("div", { className: "flex-col-2 overflow-y-auto", children: [
|
|
1297
1296
|
result.map((option, index) => /* @__PURE__ */ jsx10(
|
|
1298
|
-
|
|
1297
|
+
ListTile,
|
|
1299
1298
|
{
|
|
1300
1299
|
isSelected: option === selectedOption,
|
|
1301
|
-
title:
|
|
1300
|
+
title: option.label,
|
|
1302
1301
|
onClick: () => {
|
|
1303
1302
|
onChange(option.value);
|
|
1304
1303
|
close();
|
|
@@ -1358,10 +1357,10 @@ var SingleSelectProperty = ({
|
|
|
1358
1357
|
return void 0;
|
|
1359
1358
|
}
|
|
1360
1359
|
return /* @__PURE__ */ jsx11(
|
|
1361
|
-
|
|
1360
|
+
ListTile,
|
|
1362
1361
|
{
|
|
1363
1362
|
prefix: /* @__PURE__ */ jsx11(Plus, {}),
|
|
1364
|
-
title:
|
|
1363
|
+
title: `${translation("add")} ${search.trim()}`,
|
|
1365
1364
|
onClick: () => {
|
|
1366
1365
|
onAddNew(search);
|
|
1367
1366
|
close();
|