@helpwave/hightide 0.1.43 → 0.1.44
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.cjs +7 -7
- package/dist/components/date/DatePicker.cjs.map +1 -1
- package/dist/components/date/DatePicker.js +7 -7
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/DayPicker.cjs +2 -2
- package/dist/components/date/DayPicker.cjs.map +1 -1
- package/dist/components/date/DayPicker.js +2 -2
- package/dist/components/date/DayPicker.js.map +1 -1
- package/dist/components/date/TimeDisplay.cjs +14 -14
- package/dist/components/date/TimeDisplay.cjs.map +1 -1
- package/dist/components/date/TimeDisplay.js +14 -14
- package/dist/components/date/TimeDisplay.js.map +1 -1
- package/dist/components/date/YearMonthPicker.cjs +2 -2
- package/dist/components/date/YearMonthPicker.cjs.map +1 -1
- package/dist/components/date/YearMonthPicker.js +2 -2
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/date/index.cjs +8 -8
- package/dist/components/date/index.cjs.map +1 -1
- package/dist/components/date/index.js +8 -8
- package/dist/components/date/index.js.map +1 -1
- package/dist/components/dialog/ConfirmDialog.cjs +15 -15
- package/dist/components/dialog/ConfirmDialog.cjs.map +1 -1
- package/dist/components/dialog/ConfirmDialog.js +15 -15
- package/dist/components/dialog/ConfirmDialog.js.map +1 -1
- package/dist/components/dialog/Dialog.cjs +14 -14
- package/dist/components/dialog/Dialog.cjs.map +1 -1
- package/dist/components/dialog/Dialog.js +14 -14
- package/dist/components/dialog/Dialog.js.map +1 -1
- package/dist/components/dialog/DiscardChangesDialog.cjs +16 -16
- package/dist/components/dialog/DiscardChangesDialog.cjs.map +1 -1
- package/dist/components/dialog/DiscardChangesDialog.js +16 -16
- package/dist/components/dialog/DiscardChangesDialog.js.map +1 -1
- package/dist/components/dialog/InputDialog.cjs +15 -15
- package/dist/components/dialog/InputDialog.cjs.map +1 -1
- package/dist/components/dialog/InputDialog.js +15 -15
- package/dist/components/dialog/InputDialog.js.map +1 -1
- package/dist/components/dialog/LanguageDialog.cjs +21 -21
- package/dist/components/dialog/LanguageDialog.cjs.map +1 -1
- package/dist/components/dialog/LanguageDialog.js +21 -21
- package/dist/components/dialog/LanguageDialog.js.map +1 -1
- package/dist/components/dialog/ThemeDialog.cjs +21 -21
- package/dist/components/dialog/ThemeDialog.cjs.map +1 -1
- package/dist/components/dialog/ThemeDialog.js +21 -21
- package/dist/components/dialog/ThemeDialog.js.map +1 -1
- package/dist/components/dialog/index.cjs +24 -24
- package/dist/components/dialog/index.cjs.map +1 -1
- package/dist/components/dialog/index.js +24 -24
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/index.cjs +30 -30
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +30 -30
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/Carousel.cjs +15 -15
- package/dist/components/layout/Carousel.cjs.map +1 -1
- package/dist/components/layout/Carousel.js +15 -15
- package/dist/components/layout/Carousel.js.map +1 -1
- package/dist/components/layout/TextImage.cjs +14 -14
- package/dist/components/layout/TextImage.cjs.map +1 -1
- package/dist/components/layout/TextImage.js +14 -14
- package/dist/components/layout/TextImage.js.map +1 -1
- package/dist/components/layout/index.cjs +21 -21
- package/dist/components/layout/index.cjs.map +1 -1
- package/dist/components/layout/index.js +21 -21
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/loading-states/ErrorComponent.cjs +14 -14
- package/dist/components/loading-states/ErrorComponent.cjs.map +1 -1
- package/dist/components/loading-states/ErrorComponent.js +14 -14
- package/dist/components/loading-states/ErrorComponent.js.map +1 -1
- package/dist/components/loading-states/LoadingAnimation.cjs +14 -14
- package/dist/components/loading-states/LoadingAnimation.cjs.map +1 -1
- package/dist/components/loading-states/LoadingAnimation.js +14 -14
- package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
- package/dist/components/loading-states/index.cjs +15 -15
- package/dist/components/loading-states/index.cjs.map +1 -1
- package/dist/components/loading-states/index.js +15 -15
- package/dist/components/loading-states/index.js.map +1 -1
- package/dist/components/navigation/Pagination.cjs +14 -14
- package/dist/components/navigation/Pagination.cjs.map +1 -1
- package/dist/components/navigation/Pagination.js +14 -14
- package/dist/components/navigation/Pagination.js.map +1 -1
- package/dist/components/navigation/StepperBar.cjs +19 -19
- package/dist/components/navigation/StepperBar.cjs.map +1 -1
- package/dist/components/navigation/StepperBar.js +19 -19
- package/dist/components/navigation/StepperBar.js.map +1 -1
- package/dist/components/navigation/index.cjs +15 -15
- package/dist/components/navigation/index.cjs.map +1 -1
- package/dist/components/navigation/index.js +15 -15
- package/dist/components/navigation/index.js.map +1 -1
- package/dist/components/properties/CheckboxProperty.cjs +15 -15
- package/dist/components/properties/CheckboxProperty.cjs.map +1 -1
- package/dist/components/properties/CheckboxProperty.js +15 -15
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/DateProperty.cjs +13 -13
- package/dist/components/properties/DateProperty.cjs.map +1 -1
- package/dist/components/properties/DateProperty.js +13 -13
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/MultiSelectProperty.cjs +20 -20
- package/dist/components/properties/MultiSelectProperty.cjs.map +1 -1
- package/dist/components/properties/MultiSelectProperty.js +20 -20
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/NumberProperty.cjs +15 -15
- package/dist/components/properties/NumberProperty.cjs.map +1 -1
- package/dist/components/properties/NumberProperty.js +15 -15
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/PropertyBase.cjs +14 -14
- package/dist/components/properties/PropertyBase.cjs.map +1 -1
- package/dist/components/properties/PropertyBase.js +14 -14
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/SelectProperty.cjs +20 -20
- package/dist/components/properties/SelectProperty.cjs.map +1 -1
- package/dist/components/properties/SelectProperty.js +20 -20
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/TextProperty.cjs +15 -15
- package/dist/components/properties/TextProperty.cjs.map +1 -1
- package/dist/components/properties/TextProperty.js +15 -15
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/properties/index.cjs +18 -18
- package/dist/components/properties/index.cjs.map +1 -1
- package/dist/components/properties/index.js +18 -18
- package/dist/components/properties/index.js.map +1 -1
- package/dist/components/table/Table.cjs +14 -14
- package/dist/components/table/Table.cjs.map +1 -1
- package/dist/components/table/Table.js +14 -14
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/TableFilterButton.cjs +14 -14
- package/dist/components/table/TableFilterButton.cjs.map +1 -1
- package/dist/components/table/TableFilterButton.js +14 -14
- package/dist/components/table/TableFilterButton.js.map +1 -1
- package/dist/components/table/index.cjs +14 -14
- package/dist/components/table/index.cjs.map +1 -1
- package/dist/components/table/index.js +14 -14
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/user-action/CopyToClipboardWrapper.cjs +14 -14
- package/dist/components/user-action/CopyToClipboardWrapper.cjs.map +1 -1
- package/dist/components/user-action/CopyToClipboardWrapper.js +14 -14
- package/dist/components/user-action/CopyToClipboardWrapper.js.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.cjs +8 -8
- package/dist/components/user-action/DateAndTimePicker.cjs.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.js +8 -8
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/SearchBar.cjs +14 -14
- package/dist/components/user-action/SearchBar.cjs.map +1 -1
- package/dist/components/user-action/SearchBar.js +14 -14
- package/dist/components/user-action/SearchBar.js.map +1 -1
- package/dist/components/user-action/index.cjs +18 -18
- package/dist/components/user-action/index.cjs.map +1 -1
- package/dist/components/user-action/index.js +18 -18
- package/dist/components/user-action/index.js.map +1 -1
- package/dist/components/user-action/select/Select.cjs +19 -19
- package/dist/components/user-action/select/Select.cjs.map +1 -1
- package/dist/components/user-action/select/Select.js +19 -19
- package/dist/components/user-action/select/Select.js.map +1 -1
- package/dist/components/user-action/select/index.cjs +19 -19
- package/dist/components/user-action/select/index.cjs.map +1 -1
- package/dist/components/user-action/select/index.js +19 -19
- package/dist/components/user-action/select/index.js.map +1 -1
- package/dist/hooks/index.cjs +11 -11
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.js +11 -11
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useValidators.cjs +14 -14
- package/dist/hooks/useValidators.cjs.map +1 -1
- package/dist/hooks/useValidators.js +14 -14
- package/dist/hooks/useValidators.js.map +1 -1
- package/dist/i18n/LocaleProvider.cjs +2 -2
- package/dist/i18n/LocaleProvider.cjs.map +1 -1
- package/dist/i18n/LocaleProvider.d.cts +5 -5
- package/dist/i18n/LocaleProvider.d.ts +5 -5
- package/dist/i18n/LocaleProvider.js +2 -2
- package/dist/i18n/LocaleProvider.js.map +1 -1
- package/dist/i18n/index.cjs +15 -15
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +2 -2
- package/dist/i18n/index.d.ts +2 -2
- package/dist/i18n/index.js +11 -11
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n/translations.cjs +6 -6
- package/dist/i18n/translations.cjs.map +1 -1
- package/dist/i18n/translations.d.cts +5 -5
- package/dist/i18n/translations.d.ts +5 -5
- package/dist/i18n/translations.js +4 -4
- package/dist/i18n/translations.js.map +1 -1
- package/dist/i18n/{useTranslation.cjs → useHightideTranslation.cjs} +22 -22
- package/dist/i18n/useHightideTranslation.cjs.map +1 -0
- package/dist/i18n/useHightideTranslation.d.cts +21 -0
- package/dist/i18n/useHightideTranslation.d.ts +21 -0
- package/dist/i18n/{useTranslation.js → useHightideTranslation.js} +16 -16
- package/dist/i18n/useHightideTranslation.js.map +1 -0
- package/dist/i18n/util.cjs +2 -2
- package/dist/i18n/util.cjs.map +1 -1
- package/dist/i18n/util.d.cts +2 -2
- package/dist/i18n/util.d.ts +2 -2
- package/dist/i18n/util.js +2 -2
- package/dist/i18n/util.js.map +1 -1
- package/dist/index.cjs +37 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +34 -34
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/i18n/useTranslation.cjs.map +0 -1
- package/dist/i18n/useTranslation.d.cts +0 -22
- package/dist/i18n/useTranslation.d.ts +0 -22
- package/dist/i18n/useTranslation.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -86,8 +86,8 @@ export { useResizeCallbackWrapper } from './hooks/useResizeCallbackWrapper.cjs';
|
|
|
86
86
|
export { UseSearchProps, useSearch } from './hooks/useSearch.cjs';
|
|
87
87
|
export { UseValidators, ValidatorError, ValidatorResult, useTranslatedValidators } from './hooks/useValidators.cjs';
|
|
88
88
|
export { LocaleContext, LocaleContextValue, LocaleProvider, useLanguage, useLocale } from './i18n/LocaleProvider.cjs';
|
|
89
|
-
export {
|
|
90
|
-
export {
|
|
89
|
+
export { HightideTranslationEntries, HightideTranslationLocales, hightideTranslation, hightideTranslationLocales } from './i18n/translations.cjs';
|
|
90
|
+
export { useHightideTranslation, useICUTranslation } from './i18n/useHightideTranslation.cjs';
|
|
91
91
|
export { LocalizationUtil } from './i18n/util.cjs';
|
|
92
92
|
export { ResolvedTheme, ThemeContext, ThemeProvider, ThemeType, ThemeUtil, useTheme } from './theming/useTheme.cjs';
|
|
93
93
|
export { ArrayUtil, RangeOptions, closestMatch, createLoopingList, createLoopingListWithIndex, equalSizeGroups, getNeighbours, range } from './utils/array.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -86,8 +86,8 @@ export { useResizeCallbackWrapper } from './hooks/useResizeCallbackWrapper.js';
|
|
|
86
86
|
export { UseSearchProps, useSearch } from './hooks/useSearch.js';
|
|
87
87
|
export { UseValidators, ValidatorError, ValidatorResult, useTranslatedValidators } from './hooks/useValidators.js';
|
|
88
88
|
export { LocaleContext, LocaleContextValue, LocaleProvider, useLanguage, useLocale } from './i18n/LocaleProvider.js';
|
|
89
|
-
export {
|
|
90
|
-
export {
|
|
89
|
+
export { HightideTranslationEntries, HightideTranslationLocales, hightideTranslation, hightideTranslationLocales } from './i18n/translations.js';
|
|
90
|
+
export { useHightideTranslation, useICUTranslation } from './i18n/useHightideTranslation.js';
|
|
91
91
|
export { LocalizationUtil } from './i18n/util.js';
|
|
92
92
|
export { ResolvedTheme, ThemeContext, ThemeProvider, ThemeType, ThemeUtil, useTheme } from './theming/useTheme.js';
|
|
93
93
|
export { ArrayUtil, RangeOptions, closestMatch, createLoopingList, createLoopingListWithIndex, equalSizeGroups, getNeighbours, range } from './utils/array.js';
|
package/dist/index.js
CHANGED
|
@@ -6878,8 +6878,8 @@ var useLocalStorage = (key, backupValue) => {
|
|
|
6878
6878
|
|
|
6879
6879
|
// src/i18n/translations.ts
|
|
6880
6880
|
import { TranslationGen } from "@helpwave/internationalization";
|
|
6881
|
-
var
|
|
6882
|
-
var
|
|
6881
|
+
var hightideTranslationLocales = ["de-DE", "en-US"];
|
|
6882
|
+
var hightideTranslation = {
|
|
6883
6883
|
"de-DE": {
|
|
6884
6884
|
"add": `Hinzuf\xFCgen`,
|
|
6885
6885
|
"age": `Alter`,
|
|
@@ -7364,7 +7364,7 @@ function localeToLanguage(locale) {
|
|
|
7364
7364
|
return locale.split("-")[0];
|
|
7365
7365
|
}
|
|
7366
7366
|
var LocalizationUtil = {
|
|
7367
|
-
locals:
|
|
7367
|
+
locals: hightideTranslationLocales,
|
|
7368
7368
|
localToLanguage: localeToLanguage,
|
|
7369
7369
|
DEFAULT_LOCALE,
|
|
7370
7370
|
languagesLocalNames: localsNames
|
|
@@ -7974,7 +7974,7 @@ var YearMonthPickerUncontrolled = ({
|
|
|
7974
7974
|
);
|
|
7975
7975
|
};
|
|
7976
7976
|
|
|
7977
|
-
// src/i18n/
|
|
7977
|
+
// src/i18n/useHightideTranslation.ts
|
|
7978
7978
|
import { combineTranslation, ICUUtil } from "@helpwave/internationalization";
|
|
7979
7979
|
function useICUTranslation(translations, locale) {
|
|
7980
7980
|
translations = Array.isArray(translations) ? translations : [translations];
|
|
@@ -7995,13 +7995,13 @@ function useICUTranslation(translations, locale) {
|
|
|
7995
7995
|
return `{{${String(locale)}:${String(key)}}}`;
|
|
7996
7996
|
};
|
|
7997
7997
|
}
|
|
7998
|
-
function
|
|
7998
|
+
function useHightideTranslation(extensions, overwrites) {
|
|
7999
7999
|
const { locale: inferredLocale } = useLocale();
|
|
8000
8000
|
const locale = overwrites?.locale ?? inferredLocale;
|
|
8001
8001
|
const translationExtensions = ArrayUtil.resolveSingleOrArray(extensions);
|
|
8002
8002
|
return combineTranslation([
|
|
8003
8003
|
...translationExtensions,
|
|
8004
|
-
|
|
8004
|
+
hightideTranslation
|
|
8005
8005
|
], locale);
|
|
8006
8006
|
}
|
|
8007
8007
|
|
|
@@ -8018,7 +8018,7 @@ var DatePicker = ({
|
|
|
8018
8018
|
className = ""
|
|
8019
8019
|
}) => {
|
|
8020
8020
|
const { locale } = useLocale();
|
|
8021
|
-
const translation =
|
|
8021
|
+
const translation = useHightideTranslation();
|
|
8022
8022
|
const [displayedMonth, setDisplayedMonth] = useState5(value);
|
|
8023
8023
|
const [displayMode, setDisplayMode] = useState5(initialDisplay);
|
|
8024
8024
|
useEffect5(() => {
|
|
@@ -8129,7 +8129,7 @@ var TimeDisplay = ({
|
|
|
8129
8129
|
date,
|
|
8130
8130
|
mode = "daysFromToday"
|
|
8131
8131
|
}) => {
|
|
8132
|
-
const translation =
|
|
8132
|
+
const translation = useHightideTranslation();
|
|
8133
8133
|
const difference = (/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0).valueOf() - new Date(date).setHours(0, 0, 0, 0).valueOf();
|
|
8134
8134
|
const isBefore = difference > 0;
|
|
8135
8135
|
const differenceInDays = Math.floor(Math.abs(difference) / (1e3 * 3600 * 24));
|
|
@@ -8555,7 +8555,7 @@ var Dialog = ({
|
|
|
8555
8555
|
containerClassName,
|
|
8556
8556
|
...props
|
|
8557
8557
|
}) => {
|
|
8558
|
-
const translation =
|
|
8558
|
+
const translation = useHightideTranslation();
|
|
8559
8559
|
const [visible, setVisible] = useState9(isOpen);
|
|
8560
8560
|
const generatedId = useId3();
|
|
8561
8561
|
const id = props.id ?? generatedId;
|
|
@@ -8680,7 +8680,7 @@ var ConfirmDialog = ({
|
|
|
8680
8680
|
className,
|
|
8681
8681
|
...restProps
|
|
8682
8682
|
}) => {
|
|
8683
|
-
const translation =
|
|
8683
|
+
const translation = useHightideTranslation();
|
|
8684
8684
|
const mapping = {
|
|
8685
8685
|
neutral: "neutral",
|
|
8686
8686
|
negative: "negative",
|
|
@@ -8732,7 +8732,7 @@ var DiscardChangesDialog = ({
|
|
|
8732
8732
|
descriptionOverwrite,
|
|
8733
8733
|
...props
|
|
8734
8734
|
}) => {
|
|
8735
|
-
const translation =
|
|
8735
|
+
const translation = useHightideTranslation();
|
|
8736
8736
|
return /* @__PURE__ */ jsx13(
|
|
8737
8737
|
ConfirmDialog,
|
|
8738
8738
|
{
|
|
@@ -9461,7 +9461,7 @@ var SelectOption = forwardRef4(
|
|
|
9461
9461
|
}
|
|
9462
9462
|
);
|
|
9463
9463
|
var SelectButton = forwardRef4(function SelectButton2({ placeholder, selectedDisplay, ...props }, ref) {
|
|
9464
|
-
const translation =
|
|
9464
|
+
const translation = useHightideTranslation();
|
|
9465
9465
|
const { state, trigger } = useSelectContext();
|
|
9466
9466
|
const { register, unregister, toggleOpen } = trigger;
|
|
9467
9467
|
const innerRef = useRef6(null);
|
|
@@ -9811,7 +9811,7 @@ var LanguageDialog = ({
|
|
|
9811
9811
|
...props
|
|
9812
9812
|
}) => {
|
|
9813
9813
|
const { locale, setLocale } = useLocale();
|
|
9814
|
-
const translation =
|
|
9814
|
+
const translation = useHightideTranslation();
|
|
9815
9815
|
return /* @__PURE__ */ jsx18(
|
|
9816
9816
|
Dialog,
|
|
9817
9817
|
{
|
|
@@ -9944,7 +9944,7 @@ var ThemeDialog = ({
|
|
|
9944
9944
|
...props
|
|
9945
9945
|
}) => {
|
|
9946
9946
|
const { theme, setTheme } = useTheme();
|
|
9947
|
-
const translation =
|
|
9947
|
+
const translation = useHightideTranslation();
|
|
9948
9948
|
return /* @__PURE__ */ jsx20(
|
|
9949
9949
|
Dialog,
|
|
9950
9950
|
{
|
|
@@ -10899,7 +10899,7 @@ var useCarouselContext = () => {
|
|
|
10899
10899
|
function CarouselTabs({
|
|
10900
10900
|
onChange
|
|
10901
10901
|
}) {
|
|
10902
|
-
const translation =
|
|
10902
|
+
const translation = useHightideTranslation();
|
|
10903
10903
|
const { id, slideCount, currentIndex, isLooping } = useCarouselContext();
|
|
10904
10904
|
const tabRefs = useRef9([]);
|
|
10905
10905
|
const handleKeyDown = (event, index) => {
|
|
@@ -10957,7 +10957,7 @@ var CarouselSlide = forwardRef8(
|
|
|
10957
10957
|
isSelected,
|
|
10958
10958
|
...props
|
|
10959
10959
|
}, ref) {
|
|
10960
|
-
const translation =
|
|
10960
|
+
const translation = useHightideTranslation();
|
|
10961
10961
|
const { id, slideCount } = useCarouselContext();
|
|
10962
10962
|
return /* @__PURE__ */ jsx31(
|
|
10963
10963
|
"div",
|
|
@@ -10995,7 +10995,7 @@ var Carousel = ({
|
|
|
10995
10995
|
onSlideChanged,
|
|
10996
10996
|
...props
|
|
10997
10997
|
}) => {
|
|
10998
|
-
const translation =
|
|
10998
|
+
const translation = useHightideTranslation();
|
|
10999
10999
|
const slideRefs = useRef9([]);
|
|
11000
11000
|
const [currentIndex, setCurrentIndex] = useState16(0);
|
|
11001
11001
|
const [hasFocus, setHasFocus] = useState16(false);
|
|
@@ -12799,7 +12799,7 @@ var TextImage = ({
|
|
|
12799
12799
|
contentClassName = "",
|
|
12800
12800
|
className = ""
|
|
12801
12801
|
}) => {
|
|
12802
|
-
const translation =
|
|
12802
|
+
const translation = useHightideTranslation();
|
|
12803
12803
|
const chipColorMapping = {
|
|
12804
12804
|
primary: "text-text-image-primary-background bg-text-image-primary-text",
|
|
12805
12805
|
secondary: "text-text-image-secondary-background bg-text-image-secondary-text",
|
|
@@ -12897,7 +12897,7 @@ var ErrorComponent = ({
|
|
|
12897
12897
|
errorText,
|
|
12898
12898
|
classname
|
|
12899
12899
|
}) => {
|
|
12900
|
-
const translation =
|
|
12900
|
+
const translation = useHightideTranslation();
|
|
12901
12901
|
return /* @__PURE__ */ jsxs23("div", { className: clsx27("flex-col-4 items-center justify-center w-full h-24", classname), children: [
|
|
12902
12902
|
/* @__PURE__ */ jsx42(AlertOctagon, { size: 64, className: "text-warning" }),
|
|
12903
12903
|
errorText ?? `${translation("errorOccurred")} :(`
|
|
@@ -12951,7 +12951,7 @@ var LoadingAnimation = ({
|
|
|
12951
12951
|
loadingText,
|
|
12952
12952
|
classname
|
|
12953
12953
|
}) => {
|
|
12954
|
-
const translation =
|
|
12954
|
+
const translation = useHightideTranslation();
|
|
12955
12955
|
return /* @__PURE__ */ jsxs24("div", { className: clsx30("flex-col-2 items-center justify-center w-full h-24", classname), children: [
|
|
12956
12956
|
/* @__PURE__ */ jsx45(HelpwaveLogo, { animate: "loading" }),
|
|
12957
12957
|
loadingText ?? `${translation("loading")}...`
|
|
@@ -13204,7 +13204,7 @@ var Pagination = ({
|
|
|
13204
13204
|
className,
|
|
13205
13205
|
style
|
|
13206
13206
|
}) => {
|
|
13207
|
-
const translation =
|
|
13207
|
+
const translation = useHightideTranslation();
|
|
13208
13208
|
const [value, setValue] = useState22((pageIndex + 1).toString());
|
|
13209
13209
|
const noPages = pageCount === 0;
|
|
13210
13210
|
const onFirstPage = pageIndex === 0 && !noPages;
|
|
@@ -13279,7 +13279,7 @@ var StepperBar = ({
|
|
|
13279
13279
|
showDots = true,
|
|
13280
13280
|
className = ""
|
|
13281
13281
|
}) => {
|
|
13282
|
-
const translation =
|
|
13282
|
+
const translation = useHightideTranslation();
|
|
13283
13283
|
const dots = range(numberOfSteps + 1);
|
|
13284
13284
|
const { currentStep, seenSteps } = state ?? defaultState;
|
|
13285
13285
|
const update = (newStep) => {
|
|
@@ -13835,7 +13835,7 @@ var PropertyBase = ({
|
|
|
13835
13835
|
onRemove,
|
|
13836
13836
|
className = ""
|
|
13837
13837
|
}) => {
|
|
13838
|
-
const translation =
|
|
13838
|
+
const translation = useHightideTranslation();
|
|
13839
13839
|
const requiredAndNoValue = softRequired && !hasValue;
|
|
13840
13840
|
return /* @__PURE__ */ jsxs33("div", { className: clsx37("flex-row-0 group", className), children: [
|
|
13841
13841
|
/* @__PURE__ */ jsxs33(
|
|
@@ -13894,7 +13894,7 @@ var CheckboxProperty = ({
|
|
|
13894
13894
|
readOnly,
|
|
13895
13895
|
...baseProps
|
|
13896
13896
|
}) => {
|
|
13897
|
-
const translation =
|
|
13897
|
+
const translation = useHightideTranslation();
|
|
13898
13898
|
const id = useId8();
|
|
13899
13899
|
return /* @__PURE__ */ jsx55(
|
|
13900
13900
|
PropertyBase,
|
|
@@ -14016,7 +14016,7 @@ var NumberProperty = ({
|
|
|
14016
14016
|
suffix,
|
|
14017
14017
|
...baseProps
|
|
14018
14018
|
}) => {
|
|
14019
|
-
const translation =
|
|
14019
|
+
const translation = useHightideTranslation();
|
|
14020
14020
|
const hasValue = value !== void 0;
|
|
14021
14021
|
return /* @__PURE__ */ jsx58(
|
|
14022
14022
|
PropertyBase,
|
|
@@ -14228,7 +14228,7 @@ var TextProperty = ({
|
|
|
14228
14228
|
onEditComplete,
|
|
14229
14229
|
...baseProps
|
|
14230
14230
|
}) => {
|
|
14231
|
-
const translation =
|
|
14231
|
+
const translation = useHightideTranslation();
|
|
14232
14232
|
const hasValue = value !== void 0;
|
|
14233
14233
|
return /* @__PURE__ */ jsx61(
|
|
14234
14234
|
PropertyBase,
|
|
@@ -14609,7 +14609,7 @@ var TableFilterButton = ({
|
|
|
14609
14609
|
filterType,
|
|
14610
14610
|
column
|
|
14611
14611
|
}) => {
|
|
14612
|
-
const translation =
|
|
14612
|
+
const translation = useHightideTranslation();
|
|
14613
14613
|
const columnFilterValue = column.getFilterValue();
|
|
14614
14614
|
const [filterValue, setFilterValue] = useState28(columnFilterValue);
|
|
14615
14615
|
const hasFilter = !!filterValue;
|
|
@@ -15131,7 +15131,7 @@ var CopyToClipboardWrapper = ({
|
|
|
15131
15131
|
position = "bottom",
|
|
15132
15132
|
zIndex = 10
|
|
15133
15133
|
}) => {
|
|
15134
|
-
const translation =
|
|
15134
|
+
const translation = useHightideTranslation();
|
|
15135
15135
|
const [isShowingIndication, setIsShowingIndication] = useState30(false);
|
|
15136
15136
|
const [isShowingConfirmation, setIsShowingConfirmation] = useState30(false);
|
|
15137
15137
|
const positionClasses = {
|
|
@@ -15223,7 +15223,7 @@ var DateTimePicker = ({
|
|
|
15223
15223
|
timePickerProps,
|
|
15224
15224
|
datePickerProps
|
|
15225
15225
|
}) => {
|
|
15226
|
-
const translation =
|
|
15226
|
+
const translation = useHightideTranslation();
|
|
15227
15227
|
const useDate = mode === "dateTime" || mode === "date";
|
|
15228
15228
|
const useTime = mode === "dateTime" || mode === "time";
|
|
15229
15229
|
let dateDisplay;
|
|
@@ -15482,7 +15482,7 @@ var SearchBar = ({
|
|
|
15482
15482
|
containerClassName,
|
|
15483
15483
|
...inputProps
|
|
15484
15484
|
}) => {
|
|
15485
|
-
const translation =
|
|
15485
|
+
const translation = useHightideTranslation();
|
|
15486
15486
|
return /* @__PURE__ */ jsxs43("div", { className: clsx52("flex-row-2 justify-between items-center", containerClassName), children: [
|
|
15487
15487
|
/* @__PURE__ */ jsx71(
|
|
15488
15488
|
Input,
|
|
@@ -15958,7 +15958,7 @@ var UseValidators = {
|
|
|
15958
15958
|
selection: selectionValidator
|
|
15959
15959
|
};
|
|
15960
15960
|
var useTranslatedValidators = () => {
|
|
15961
|
-
const translation =
|
|
15961
|
+
const translation = useHightideTranslation();
|
|
15962
15962
|
return {
|
|
15963
15963
|
notEmpty: (value) => {
|
|
15964
15964
|
const result = notEmpty(value);
|
|
@@ -16242,11 +16242,12 @@ export {
|
|
|
16242
16242
|
formatDate,
|
|
16243
16243
|
formatDateTime,
|
|
16244
16244
|
generateShadingColors,
|
|
16245
|
-
generatedTranslations,
|
|
16246
16245
|
getBetweenDuration,
|
|
16247
16246
|
getDaysInMonth,
|
|
16248
16247
|
getNeighbours,
|
|
16249
16248
|
getWeeksForCalenderMonth,
|
|
16249
|
+
hightideTranslation,
|
|
16250
|
+
hightideTranslationLocales,
|
|
16250
16251
|
isInTimeSpan,
|
|
16251
16252
|
match,
|
|
16252
16253
|
monthsList,
|
|
@@ -16255,13 +16256,13 @@ export {
|
|
|
16255
16256
|
resolveSetState,
|
|
16256
16257
|
shadingColorValues,
|
|
16257
16258
|
subtractDuration,
|
|
16258
|
-
supportedLocales,
|
|
16259
16259
|
useDelay,
|
|
16260
16260
|
useFloatingElement,
|
|
16261
16261
|
useFocusGuards,
|
|
16262
16262
|
useFocusManagement,
|
|
16263
16263
|
useFocusOnceVisible,
|
|
16264
16264
|
useFocusTrap,
|
|
16265
|
+
useHightideTranslation,
|
|
16265
16266
|
useHoverState,
|
|
16266
16267
|
useICUTranslation,
|
|
16267
16268
|
useIsMounted,
|
|
@@ -16277,7 +16278,6 @@ export {
|
|
|
16277
16278
|
useSearch,
|
|
16278
16279
|
useTheme,
|
|
16279
16280
|
useTranslatedValidators,
|
|
16280
|
-
useTranslation,
|
|
16281
16281
|
validateEmail,
|
|
16282
16282
|
weekDayList,
|
|
16283
16283
|
writeToClipboard
|