@helpwave/hightide 0.1.23 → 0.1.25
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/components/date/DatePicker.js +48 -53
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/DatePicker.mjs +58 -63
- 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 +26 -29
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/date/YearMonthPicker.mjs +31 -34
- package/dist/components/date/YearMonthPicker.mjs.map +1 -1
- package/dist/components/dialogs/ConfirmDialog.js +40 -43
- package/dist/components/dialogs/ConfirmDialog.js.map +1 -1
- package/dist/components/dialogs/ConfirmDialog.mjs +48 -51
- package/dist/components/dialogs/ConfirmDialog.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Carousel.js +40 -43
- package/dist/components/layout-and-navigation/Carousel.js.map +1 -1
- package/dist/components/layout-and-navigation/Carousel.mjs +40 -43
- package/dist/components/layout-and-navigation/Carousel.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Overlay.js +40 -43
- package/dist/components/layout-and-navigation/Overlay.js.map +1 -1
- package/dist/components/layout-and-navigation/Overlay.mjs +46 -49
- package/dist/components/layout-and-navigation/Overlay.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Pagination.js +40 -43
- package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
- package/dist/components/layout-and-navigation/Pagination.mjs +50 -53
- package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -1
- package/dist/components/layout-and-navigation/SearchableList.js +40 -43
- package/dist/components/layout-and-navigation/SearchableList.js.map +1 -1
- package/dist/components/layout-and-navigation/SearchableList.mjs +50 -53
- package/dist/components/layout-and-navigation/SearchableList.mjs.map +1 -1
- package/dist/components/layout-and-navigation/StepperBar.js +26 -29
- package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
- package/dist/components/layout-and-navigation/StepperBar.mjs +30 -33
- 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/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/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/loading-states/LoadingButton.js +26 -29
- package/dist/components/loading-states/LoadingButton.js.map +1 -1
- package/dist/components/loading-states/LoadingButton.mjs +26 -29
- package/dist/components/loading-states/LoadingButton.mjs.map +1 -1
- package/dist/components/modals/ConfirmModal.js +40 -43
- package/dist/components/modals/ConfirmModal.js.map +1 -1
- package/dist/components/modals/ConfirmModal.mjs +48 -51
- package/dist/components/modals/ConfirmModal.mjs.map +1 -1
- package/dist/components/modals/DiscardChangesModal.js +40 -43
- package/dist/components/modals/DiscardChangesModal.js.map +1 -1
- package/dist/components/modals/DiscardChangesModal.mjs +48 -51
- package/dist/components/modals/DiscardChangesModal.mjs.map +1 -1
- package/dist/components/modals/InputModal.js +40 -43
- package/dist/components/modals/InputModal.js.map +1 -1
- package/dist/components/modals/InputModal.mjs +48 -51
- package/dist/components/modals/InputModal.mjs.map +1 -1
- package/dist/components/modals/LanguageModal.js +43 -49
- package/dist/components/modals/LanguageModal.js.map +1 -1
- package/dist/components/modals/LanguageModal.mjs +67 -73
- package/dist/components/modals/LanguageModal.mjs.map +1 -1
- package/dist/components/modals/ThemeModal.js +43 -49
- package/dist/components/modals/ThemeModal.js.map +1 -1
- package/dist/components/modals/ThemeModal.mjs +68 -74
- package/dist/components/modals/ThemeModal.mjs.map +1 -1
- package/dist/components/properties/CheckboxProperty.js +96 -75
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/CheckboxProperty.mjs +98 -77
- package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
- package/dist/components/properties/DateProperty.js +48 -53
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/DateProperty.mjs +50 -55
- package/dist/components/properties/DateProperty.mjs.map +1 -1
- package/dist/components/properties/MultiSelectProperty.js +114 -93
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/MultiSelectProperty.mjs +135 -114
- package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
- package/dist/components/properties/NumberProperty.js +48 -53
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/NumberProperty.mjs +50 -55
- package/dist/components/properties/NumberProperty.mjs.map +1 -1
- package/dist/components/properties/PropertyBase.js +48 -53
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/PropertyBase.mjs +50 -55
- package/dist/components/properties/PropertyBase.mjs.map +1 -1
- package/dist/components/properties/SelectProperty.js +65 -73
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/SelectProperty.mjs +86 -94
- package/dist/components/properties/SelectProperty.mjs.map +1 -1
- package/dist/components/properties/TextProperty.js +51 -56
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/properties/TextProperty.mjs +57 -62
- package/dist/components/properties/TextProperty.mjs.map +1 -1
- package/dist/components/table/Table.js +88 -65
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/Table.mjs +114 -91
- package/dist/components/table/Table.mjs.map +1 -1
- package/dist/components/table/TableFilterButton.js +40 -43
- package/dist/components/table/TableFilterButton.js.map +1 -1
- package/dist/components/table/TableFilterButton.mjs +44 -47
- package/dist/components/table/TableFilterButton.mjs.map +1 -1
- package/dist/components/table/TableSortButton.js +40 -43
- package/dist/components/table/TableSortButton.js.map +1 -1
- package/dist/components/table/TableSortButton.mjs +40 -43
- package/dist/components/table/TableSortButton.mjs.map +1 -1
- package/dist/components/user-action/Button.d.mts +3 -3
- package/dist/components/user-action/Button.d.ts +3 -3
- package/dist/components/user-action/Button.js +76 -84
- package/dist/components/user-action/Button.js.map +1 -1
- package/dist/components/user-action/Button.mjs +76 -84
- package/dist/components/user-action/Button.mjs.map +1 -1
- package/dist/components/user-action/Checkbox.js +48 -22
- package/dist/components/user-action/Checkbox.js.map +1 -1
- package/dist/components/user-action/Checkbox.mjs +48 -22
- package/dist/components/user-action/Checkbox.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 +48 -53
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.mjs +60 -65
- package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
- package/dist/components/user-action/MultiSelect.js +92 -69
- package/dist/components/user-action/MultiSelect.js.map +1 -1
- package/dist/components/user-action/MultiSelect.mjs +114 -91
- package/dist/components/user-action/MultiSelect.mjs.map +1 -1
- package/dist/components/user-action/SearchBar.js +40 -43
- package/dist/components/user-action/SearchBar.js.map +1 -1
- package/dist/components/user-action/SearchBar.mjs +42 -45
- package/dist/components/user-action/SearchBar.mjs.map +1 -1
- package/dist/components/user-action/Select.js +43 -49
- package/dist/components/user-action/Select.js.map +1 -1
- package/dist/components/user-action/Select.mjs +49 -55
- package/dist/components/user-action/Select.mjs.map +1 -1
- package/dist/components/user-action/Textarea.js +3 -3
- package/dist/components/user-action/Textarea.js.map +1 -1
- package/dist/components/user-action/Textarea.mjs +3 -3
- package/dist/components/user-action/Textarea.mjs.map +1 -1
- package/dist/css/globals.css +269 -136
- 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.js +141 -129
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +216 -204
- 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 +3 -6
- package/dist/theming/useTheme.js.map +1 -1
- package/dist/theming/useTheme.mjs +8 -11
- package/dist/theming/useTheme.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/css/uncompiled/theme/theme.css +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/components/user-action/Select.tsx
|
|
2
2
|
import { useCallback as useCallback5 } from "react";
|
|
3
|
-
import { useEffect as
|
|
3
|
+
import { useEffect as useEffect10, useState as useState9 } from "react";
|
|
4
4
|
import clsx8 from "clsx";
|
|
5
5
|
|
|
6
6
|
// src/components/user-action/Label.tsx
|
|
@@ -655,10 +655,10 @@ var FormInput = forwardRef2(function FormInput2({
|
|
|
655
655
|
});
|
|
656
656
|
|
|
657
657
|
// src/localization/LanguageProvider.tsx
|
|
658
|
-
import { createContext, useContext, useEffect as
|
|
658
|
+
import { createContext, useContext, useEffect as useEffect8, useState as useState7 } from "react";
|
|
659
659
|
|
|
660
660
|
// src/hooks/useLocalStorage.ts
|
|
661
|
-
import { useCallback as useCallback3,
|
|
661
|
+
import { useCallback as useCallback3, useState as useState6 } from "react";
|
|
662
662
|
|
|
663
663
|
// src/localization/util.ts
|
|
664
664
|
var languages = ["en", "de"];
|
|
@@ -886,7 +886,6 @@ var ButtonUtil = {
|
|
|
886
886
|
};
|
|
887
887
|
var SolidButton = forwardRef3(function SolidButton2({
|
|
888
888
|
children,
|
|
889
|
-
disabled = false,
|
|
890
889
|
color = "primary",
|
|
891
890
|
size = "medium",
|
|
892
891
|
startIcon,
|
|
@@ -896,35 +895,33 @@ var SolidButton = forwardRef3(function SolidButton2({
|
|
|
896
895
|
...restProps
|
|
897
896
|
}, ref) {
|
|
898
897
|
const colorClasses = {
|
|
899
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
900
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
901
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
902
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
903
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
904
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
905
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
898
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
899
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
900
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
901
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
902
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
903
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
904
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
|
|
906
905
|
}[color];
|
|
907
906
|
const iconColorClasses = {
|
|
908
|
-
primary: "text-button-solid-primary-icon",
|
|
909
|
-
secondary: "text-button-solid-secondary-icon",
|
|
910
|
-
tertiary: "text-button-solid-tertiary-icon",
|
|
911
|
-
positive: "text-button-solid-positive-icon",
|
|
912
|
-
warning: "text-button-solid-warning-icon",
|
|
913
|
-
negative: "text-button-solid-negative-icon",
|
|
914
|
-
neutral: "text-button-solid-neutral-icon"
|
|
907
|
+
primary: "not-group-disabled:text-button-solid-primary-icon",
|
|
908
|
+
secondary: "not-group-disabled:text-button-solid-secondary-icon",
|
|
909
|
+
tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
|
|
910
|
+
positive: "not-group-disabled:text-button-solid-positive-icon",
|
|
911
|
+
warning: "not-group-disabled:text-button-solid-warning-icon",
|
|
912
|
+
negative: "not-group-disabled:text-button-solid-negative-icon",
|
|
913
|
+
neutral: "not-group-disabled:text-button-solid-neutral-icon"
|
|
915
914
|
}[color];
|
|
916
915
|
return /* @__PURE__ */ jsxs5(
|
|
917
916
|
"button",
|
|
918
917
|
{
|
|
919
918
|
ref,
|
|
920
919
|
onClick,
|
|
921
|
-
disabled,
|
|
922
920
|
className: clsx6(
|
|
923
|
-
"font-semibold",
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
},
|
|
921
|
+
"group font-semibold",
|
|
922
|
+
colorClasses,
|
|
923
|
+
"not-disabled:hover:brightness-90",
|
|
924
|
+
"disabled:text-disabled-text disabled:bg-disabled-background",
|
|
928
925
|
ButtonUtil.paddingMapping[size],
|
|
929
926
|
className
|
|
930
927
|
),
|
|
@@ -933,10 +930,10 @@ var SolidButton = forwardRef3(function SolidButton2({
|
|
|
933
930
|
startIcon && /* @__PURE__ */ jsx7(
|
|
934
931
|
"span",
|
|
935
932
|
{
|
|
936
|
-
className: clsx6(
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
933
|
+
className: clsx6(
|
|
934
|
+
iconColorClasses,
|
|
935
|
+
"group-disabled:text-disabled-icon"
|
|
936
|
+
),
|
|
940
937
|
children: startIcon
|
|
941
938
|
}
|
|
942
939
|
),
|
|
@@ -944,10 +941,10 @@ var SolidButton = forwardRef3(function SolidButton2({
|
|
|
944
941
|
endIcon && /* @__PURE__ */ jsx7(
|
|
945
942
|
"span",
|
|
946
943
|
{
|
|
947
|
-
className: clsx6(
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
944
|
+
className: clsx6(
|
|
945
|
+
iconColorClasses,
|
|
946
|
+
"group-disabled:text-disabled-icon"
|
|
947
|
+
),
|
|
951
948
|
children: endIcon
|
|
952
949
|
}
|
|
953
950
|
)
|
|
@@ -957,32 +954,32 @@ var SolidButton = forwardRef3(function SolidButton2({
|
|
|
957
954
|
});
|
|
958
955
|
var IconButton = ({
|
|
959
956
|
children,
|
|
960
|
-
disabled = false,
|
|
961
957
|
color = "primary",
|
|
962
958
|
size = "medium",
|
|
963
959
|
className,
|
|
964
960
|
...restProps
|
|
965
961
|
}) => {
|
|
966
962
|
const colorClasses = {
|
|
967
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
968
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
969
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
970
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
971
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
972
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
973
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text",
|
|
974
|
-
transparent: "bg-transparent"
|
|
963
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
964
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
965
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
966
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
967
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
968
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
969
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
|
|
970
|
+
transparent: "not-disabled:bg-transparent"
|
|
975
971
|
}[color];
|
|
976
972
|
return /* @__PURE__ */ jsx7(
|
|
977
973
|
"button",
|
|
978
974
|
{
|
|
979
|
-
disabled,
|
|
980
975
|
className: clsx6(
|
|
976
|
+
colorClasses,
|
|
977
|
+
"not-disabled:hover:brightness-90",
|
|
978
|
+
"disabled:text-disabled-text",
|
|
981
979
|
{
|
|
982
|
-
"
|
|
983
|
-
"
|
|
984
|
-
"hover:bg-button-text-hover-background":
|
|
985
|
-
[clsx6(colorClasses, "hover:brightness-90")]: !disabled
|
|
980
|
+
"disabled:bg-disabled-background": color !== "transparent",
|
|
981
|
+
"disabled:opacity-70": color === "transparent",
|
|
982
|
+
"not-disabled:hover:bg-button-text-hover-background": color === "transparent"
|
|
986
983
|
},
|
|
987
984
|
ButtonUtil.iconPaddingMapping[size],
|
|
988
985
|
className
|
|
@@ -1018,7 +1015,7 @@ var SearchBar = ({
|
|
|
1018
1015
|
};
|
|
1019
1016
|
|
|
1020
1017
|
// src/hooks/useSearch.ts
|
|
1021
|
-
import { useCallback as useCallback4, useEffect as
|
|
1018
|
+
import { useCallback as useCallback4, useEffect as useEffect9, useMemo, useState as useState8 } from "react";
|
|
1022
1019
|
|
|
1023
1020
|
// src/util/simpleSearch.ts
|
|
1024
1021
|
var MultiSubjectSearchWithMapping = (search, objects, mapping) => {
|
|
@@ -1052,7 +1049,7 @@ var useSearch = ({
|
|
|
1052
1049
|
}
|
|
1053
1050
|
setResult(MultiSubjectSearchWithMapping([usedSearch, ...searchTags], list, searchMapping));
|
|
1054
1051
|
}, [searchTags, list, search, searchMapping]);
|
|
1055
|
-
|
|
1052
|
+
useEffect9(() => {
|
|
1056
1053
|
if (isSearchInstant) {
|
|
1057
1054
|
setResult(MultiSubjectSearchWithMapping([search, ...searchTags], list, searchMapping));
|
|
1058
1055
|
}
|
|
@@ -1112,7 +1109,7 @@ var Select = ({
|
|
|
1112
1109
|
...searchOptions
|
|
1113
1110
|
});
|
|
1114
1111
|
return /* @__PURE__ */ jsxs7("div", { className: clsx8(className), children: [
|
|
1115
|
-
label && /* @__PURE__ */ jsx9(Label, { ...label, labelType: label.labelType ?? "
|
|
1112
|
+
label && /* @__PURE__ */ jsx9(Label, { ...label, labelType: label.labelType ?? "labelSmall", className: clsx8("mb-1", label.className) }),
|
|
1116
1113
|
/* @__PURE__ */ jsx9(
|
|
1117
1114
|
Menu,
|
|
1118
1115
|
{
|
|
@@ -1123,11 +1120,8 @@ var Select = ({
|
|
|
1123
1120
|
ref,
|
|
1124
1121
|
className: clsx8(
|
|
1125
1122
|
"btn-md justify-between w-full border-2",
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
"bg-input-background text-input-text hover:border-primary": !disabled,
|
|
1129
|
-
"bg-disabled-background text-disabled-text border-disabled-background cursor-not-allowed": disabled
|
|
1130
|
-
},
|
|
1123
|
+
"not-disabled:bg-input-background not-disabled:text-input-text not-disabled:hover:border-primary",
|
|
1124
|
+
"disabled:bg-disabled-background disabled:text-disabled-text disabled:border-disabled-border",
|
|
1131
1125
|
triggerClassName
|
|
1132
1126
|
),
|
|
1133
1127
|
onClick: toggleOpen,
|
|
@@ -1181,7 +1175,7 @@ var SelectUncontrolled = ({
|
|
|
1181
1175
|
...props
|
|
1182
1176
|
}) => {
|
|
1183
1177
|
const [selected, setSelected] = useState9(value);
|
|
1184
|
-
|
|
1178
|
+
useEffect10(() => {
|
|
1185
1179
|
if (options.find((options2) => options2.value === value)) {
|
|
1186
1180
|
setSelected(value);
|
|
1187
1181
|
}
|