@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
|
@@ -242,10 +242,21 @@ var IconButton = (0, import_react.forwardRef)(function IconButton2({
|
|
|
242
242
|
);
|
|
243
243
|
});
|
|
244
244
|
|
|
245
|
+
// src/i18n/LocaleProvider.tsx
|
|
246
|
+
var import_react3 = require("react");
|
|
247
|
+
|
|
248
|
+
// src/hooks/useLocalStorage.ts
|
|
249
|
+
var import_react2 = require("react");
|
|
250
|
+
|
|
251
|
+
// src/utils/resolveSetState.ts
|
|
252
|
+
function resolveSetState(action, prev) {
|
|
253
|
+
return typeof action === "function" ? action(prev) : action;
|
|
254
|
+
}
|
|
255
|
+
|
|
245
256
|
// src/i18n/translations.ts
|
|
246
257
|
var import_internationalization = require("@helpwave/internationalization");
|
|
247
|
-
var
|
|
248
|
-
var
|
|
258
|
+
var hightideTranslationLocales = ["de-DE", "en-US"];
|
|
259
|
+
var hightideTranslation = {
|
|
249
260
|
"de-DE": {
|
|
250
261
|
"add": `Hinzuf\xFCgen`,
|
|
251
262
|
"age": `Alter`,
|
|
@@ -720,17 +731,6 @@ var generatedTranslations = {
|
|
|
720
731
|
}
|
|
721
732
|
};
|
|
722
733
|
|
|
723
|
-
// src/i18n/LocaleProvider.tsx
|
|
724
|
-
var import_react3 = require("react");
|
|
725
|
-
|
|
726
|
-
// src/hooks/useLocalStorage.ts
|
|
727
|
-
var import_react2 = require("react");
|
|
728
|
-
|
|
729
|
-
// src/utils/resolveSetState.ts
|
|
730
|
-
function resolveSetState(action, prev) {
|
|
731
|
-
return typeof action === "function" ? action(prev) : action;
|
|
732
|
-
}
|
|
733
|
-
|
|
734
734
|
// src/i18n/util.ts
|
|
735
735
|
var localsNames = {
|
|
736
736
|
"en-US": "English (US)",
|
|
@@ -741,7 +741,7 @@ function localeToLanguage(locale) {
|
|
|
741
741
|
return locale.split("-")[0];
|
|
742
742
|
}
|
|
743
743
|
var LocalizationUtil = {
|
|
744
|
-
locals:
|
|
744
|
+
locals: hightideTranslationLocales,
|
|
745
745
|
localToLanguage: localeToLanguage,
|
|
746
746
|
DEFAULT_LOCALE,
|
|
747
747
|
languagesLocalNames: localsNames
|
|
@@ -761,7 +761,7 @@ var useLocale = () => {
|
|
|
761
761
|
return context;
|
|
762
762
|
};
|
|
763
763
|
|
|
764
|
-
// src/i18n/
|
|
764
|
+
// src/i18n/useHightideTranslation.ts
|
|
765
765
|
var import_internationalization2 = require("@helpwave/internationalization");
|
|
766
766
|
|
|
767
767
|
// src/utils/array.ts
|
|
@@ -804,14 +804,14 @@ var ArrayUtil = {
|
|
|
804
804
|
resolveSingleOrArray
|
|
805
805
|
};
|
|
806
806
|
|
|
807
|
-
// src/i18n/
|
|
808
|
-
function
|
|
807
|
+
// src/i18n/useHightideTranslation.ts
|
|
808
|
+
function useHightideTranslation(extensions, overwrites) {
|
|
809
809
|
const { locale: inferredLocale } = useLocale();
|
|
810
810
|
const locale = overwrites?.locale ?? inferredLocale;
|
|
811
811
|
const translationExtensions = ArrayUtil.resolveSingleOrArray(extensions);
|
|
812
812
|
return (0, import_internationalization2.combineTranslation)([
|
|
813
813
|
...translationExtensions,
|
|
814
|
-
|
|
814
|
+
hightideTranslation
|
|
815
815
|
], locale);
|
|
816
816
|
}
|
|
817
817
|
|
|
@@ -1071,7 +1071,7 @@ var Dialog = ({
|
|
|
1071
1071
|
containerClassName,
|
|
1072
1072
|
...props
|
|
1073
1073
|
}) => {
|
|
1074
|
-
const translation =
|
|
1074
|
+
const translation = useHightideTranslation();
|
|
1075
1075
|
const [visible, setVisible] = (0, import_react8.useState)(isOpen);
|
|
1076
1076
|
const generatedId = (0, import_react7.useId)();
|
|
1077
1077
|
const id = props.id ?? generatedId;
|
|
@@ -1196,7 +1196,7 @@ var ConfirmDialog = ({
|
|
|
1196
1196
|
className,
|
|
1197
1197
|
...restProps
|
|
1198
1198
|
}) => {
|
|
1199
|
-
const translation =
|
|
1199
|
+
const translation = useHightideTranslation();
|
|
1200
1200
|
const mapping = {
|
|
1201
1201
|
neutral: "neutral",
|
|
1202
1202
|
negative: "negative",
|
|
@@ -1248,7 +1248,7 @@ var DiscardChangesDialog = ({
|
|
|
1248
1248
|
descriptionOverwrite,
|
|
1249
1249
|
...props
|
|
1250
1250
|
}) => {
|
|
1251
|
-
const translation =
|
|
1251
|
+
const translation = useHightideTranslation();
|
|
1252
1252
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1253
1253
|
ConfirmDialog,
|
|
1254
1254
|
{
|
|
@@ -2053,7 +2053,7 @@ var SelectOption = (0, import_react15.forwardRef)(
|
|
|
2053
2053
|
}
|
|
2054
2054
|
);
|
|
2055
2055
|
var SelectButton = (0, import_react15.forwardRef)(function SelectButton2({ placeholder, selectedDisplay, ...props }, ref) {
|
|
2056
|
-
const translation =
|
|
2056
|
+
const translation = useHightideTranslation();
|
|
2057
2057
|
const { state, trigger } = useSelectContext();
|
|
2058
2058
|
const { register, unregister, toggleOpen } = trigger;
|
|
2059
2059
|
const innerRef = (0, import_react15.useRef)(null);
|
|
@@ -2403,7 +2403,7 @@ var LanguageDialog = ({
|
|
|
2403
2403
|
...props
|
|
2404
2404
|
}) => {
|
|
2405
2405
|
const { locale, setLocale } = useLocale();
|
|
2406
|
-
const translation =
|
|
2406
|
+
const translation = useHightideTranslation();
|
|
2407
2407
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2408
2408
|
Dialog,
|
|
2409
2409
|
{
|
|
@@ -2468,7 +2468,7 @@ var ThemeDialog = ({
|
|
|
2468
2468
|
...props
|
|
2469
2469
|
}) => {
|
|
2470
2470
|
const { theme, setTheme } = useTheme();
|
|
2471
|
-
const translation =
|
|
2471
|
+
const translation = useHightideTranslation();
|
|
2472
2472
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2473
2473
|
Dialog,
|
|
2474
2474
|
{
|