@helpwave/hightide 0.1.26 → 0.1.28
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/coloring/index.d.mts +2 -0
- package/dist/coloring/index.d.ts +2 -0
- package/dist/coloring/index.js +85 -0
- package/dist/coloring/index.js.map +1 -0
- package/dist/coloring/index.mjs +48 -0
- package/dist/coloring/index.mjs.map +1 -0
- package/dist/components/branding/index.d.mts +3 -0
- package/dist/components/branding/index.d.ts +3 -0
- package/dist/components/branding/index.js +140 -0
- package/dist/components/branding/index.js.map +1 -0
- package/dist/components/branding/index.mjs +104 -0
- package/dist/components/branding/index.mjs.map +1 -0
- package/dist/components/date/DatePicker.js +1 -1
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/DatePicker.mjs +1 -1
- package/dist/components/date/DatePicker.mjs.map +1 -1
- package/dist/components/date/YearMonthPicker.js +1 -1
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/date/YearMonthPicker.mjs +1 -1
- package/dist/components/date/YearMonthPicker.mjs.map +1 -1
- package/dist/components/date/index.d.mts +10 -0
- package/dist/components/date/index.d.ts +10 -0
- package/dist/components/date/index.js +1168 -0
- package/dist/components/date/index.js.map +1 -0
- package/dist/components/date/index.mjs +1124 -0
- package/dist/components/date/index.mjs.map +1 -0
- package/dist/components/dialog/ConfirmDialog.d.mts +1 -1
- package/dist/components/dialog/ConfirmDialog.d.ts +1 -1
- package/dist/components/dialog/ConfirmDialog.js +2 -2
- package/dist/components/dialog/ConfirmDialog.js.map +1 -1
- package/dist/components/dialog/ConfirmDialog.mjs +2 -2
- package/dist/components/dialog/ConfirmDialog.mjs.map +1 -1
- package/dist/components/dialog/Dialog.d.mts +1 -1
- package/dist/components/dialog/Dialog.d.ts +1 -1
- package/dist/components/dialog/Dialog.js +2 -2
- package/dist/components/dialog/Dialog.js.map +1 -1
- package/dist/components/dialog/Dialog.mjs +2 -2
- package/dist/components/dialog/Dialog.mjs.map +1 -1
- package/dist/components/dialog/DiscardChangesDialog.d.mts +1 -1
- package/dist/components/dialog/DiscardChangesDialog.d.ts +1 -1
- package/dist/components/dialog/DiscardChangesDialog.js +2 -2
- package/dist/components/dialog/DiscardChangesDialog.js.map +1 -1
- package/dist/components/dialog/DiscardChangesDialog.mjs +2 -2
- package/dist/components/dialog/DiscardChangesDialog.mjs.map +1 -1
- package/dist/components/dialog/InputDialog.d.mts +1 -1
- package/dist/components/dialog/InputDialog.d.ts +1 -1
- package/dist/components/dialog/InputDialog.js +2 -2
- package/dist/components/dialog/InputDialog.js.map +1 -1
- package/dist/components/dialog/InputDialog.mjs +2 -2
- package/dist/components/dialog/InputDialog.mjs.map +1 -1
- package/dist/components/dialog/LanguageDialog.d.mts +1 -1
- package/dist/components/dialog/LanguageDialog.d.ts +1 -1
- package/dist/components/dialog/LanguageDialog.js +28 -15
- package/dist/components/dialog/LanguageDialog.js.map +1 -1
- package/dist/components/dialog/LanguageDialog.mjs +28 -15
- package/dist/components/dialog/LanguageDialog.mjs.map +1 -1
- package/dist/components/dialog/ThemeDialog.d.mts +1 -1
- package/dist/components/dialog/ThemeDialog.d.ts +1 -1
- package/dist/components/dialog/ThemeDialog.js +69 -33
- package/dist/components/dialog/ThemeDialog.js.map +1 -1
- package/dist/components/dialog/ThemeDialog.mjs +60 -24
- package/dist/components/dialog/ThemeDialog.mjs.map +1 -1
- package/dist/components/dialog/index.d.mts +1 -1
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dialog/index.js +61 -25
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/dialog/index.mjs +61 -25
- package/dist/components/dialog/index.mjs.map +1 -1
- package/dist/components/form/index.d.mts +5 -0
- package/dist/components/form/index.d.ts +5 -0
- package/dist/components/form/index.js +100 -0
- package/dist/components/form/index.js.map +1 -0
- package/dist/components/form/index.mjs +64 -0
- package/dist/components/form/index.mjs.map +1 -0
- package/dist/components/icons-and-geometry/index.d.mts +7 -0
- package/dist/components/icons-and-geometry/index.d.ts +7 -0
- package/dist/components/icons-and-geometry/index.js +3955 -0
- package/dist/components/icons-and-geometry/index.js.map +1 -0
- package/dist/components/icons-and-geometry/index.mjs +3939 -0
- package/dist/components/icons-and-geometry/index.mjs.map +1 -0
- package/dist/components/index.d.mts +83 -0
- package/dist/components/index.d.ts +83 -0
- package/dist/components/index.js +15471 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index.mjs +15377 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/components/layout/Carousel.d.mts +33 -0
- package/dist/components/layout/Carousel.d.ts +33 -0
- package/dist/components/layout/Carousel.js +684 -0
- package/dist/components/layout/Carousel.js.map +1 -0
- package/dist/components/layout/Carousel.mjs +659 -0
- package/dist/components/layout/Carousel.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/Chip.js +1 -1
- package/dist/components/layout/Chip.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/Chip.mjs +1 -1
- package/dist/components/layout/Chip.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/DividerInserter.js +1 -1
- package/dist/components/layout/DividerInserter.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/DividerInserter.mjs +1 -1
- package/dist/components/layout/DividerInserter.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/Expandable.js +2 -2
- package/dist/components/layout/Expandable.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/Expandable.mjs +2 -2
- package/dist/components/layout/Expandable.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/FAQSection.js +5 -5
- package/dist/components/layout/FAQSection.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/FAQSection.mjs +5 -5
- package/dist/components/layout/FAQSection.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/FloatingContainer.js +2 -2
- package/dist/components/layout/FloatingContainer.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/FloatingContainer.mjs +2 -2
- package/dist/components/layout/FloatingContainer.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/ListBox.js +2 -2
- package/dist/components/layout/ListBox.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/ListBox.mjs +2 -2
- package/dist/components/layout/ListBox.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/MarkdownInterpreter.js +1 -1
- package/dist/components/layout/MarkdownInterpreter.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/MarkdownInterpreter.mjs +1 -1
- package/dist/components/layout/MarkdownInterpreter.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/ScrollArea.js +2 -2
- package/dist/components/layout/ScrollArea.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/ScrollArea.mjs +1 -1
- package/dist/components/layout/ScrollArea.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/TextImage.js +3 -3
- package/dist/components/layout/TextImage.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/TextImage.mjs +2 -2
- package/dist/components/layout/TextImage.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/VerticalDivider.js +1 -1
- package/dist/components/layout/VerticalDivider.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/VerticalDivider.mjs +1 -1
- package/dist/components/layout/VerticalDivider.mjs.map +1 -0
- package/dist/components/layout/index.d.mts +18 -0
- package/dist/components/layout/index.d.ts +18 -0
- package/dist/components/layout/index.js +3111 -0
- package/dist/components/layout/index.js.map +1 -0
- package/dist/components/layout/index.mjs +3064 -0
- package/dist/components/layout/index.mjs.map +1 -0
- package/dist/components/loading-states/index.d.mts +12 -0
- package/dist/components/loading-states/index.d.ts +12 -0
- package/dist/components/loading-states/index.js +614 -0
- package/dist/components/loading-states/index.js.map +1 -0
- package/dist/components/loading-states/index.mjs +573 -0
- package/dist/components/loading-states/index.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → navigation}/BreadCrumb.js +1 -1
- package/dist/components/navigation/BreadCrumb.js.map +1 -0
- package/dist/components/{layout-and-navigation → navigation}/BreadCrumb.mjs +1 -1
- package/dist/components/navigation/BreadCrumb.mjs.map +1 -0
- package/dist/components/navigation/Navigation.d.mts +21 -0
- package/dist/components/navigation/Navigation.d.ts +21 -0
- package/dist/components/navigation/Navigation.js +4018 -0
- package/dist/components/navigation/Navigation.js.map +1 -0
- package/dist/components/navigation/Navigation.mjs +4012 -0
- package/dist/components/navigation/Navigation.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → navigation}/Pagination.js +3 -3
- package/dist/components/navigation/Pagination.js.map +1 -0
- package/dist/components/{layout-and-navigation → navigation}/Pagination.mjs +3 -3
- package/dist/components/navigation/Pagination.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → navigation}/StepperBar.js +3 -3
- package/dist/components/navigation/StepperBar.js.map +1 -0
- package/dist/components/{layout-and-navigation → navigation}/StepperBar.mjs +3 -3
- package/dist/components/navigation/StepperBar.mjs.map +1 -0
- package/dist/components/navigation/index.d.mts +9 -0
- package/dist/components/navigation/index.d.ts +9 -0
- package/dist/components/navigation/index.js +4660 -0
- package/dist/components/navigation/index.js.map +1 -0
- package/dist/components/navigation/index.mjs +4648 -0
- package/dist/components/navigation/index.mjs.map +1 -0
- package/dist/components/properties/MultiSelectProperty.js +27 -14
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/MultiSelectProperty.mjs +27 -14
- package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
- package/dist/components/properties/SelectProperty.js +27 -14
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/SelectProperty.mjs +27 -14
- package/dist/components/properties/SelectProperty.mjs.map +1 -1
- package/dist/components/properties/index.d.mts +12 -0
- package/dist/components/properties/index.d.ts +12 -0
- package/dist/components/properties/index.js +2983 -0
- package/dist/components/properties/index.js.map +1 -0
- package/dist/components/properties/index.mjs +2951 -0
- package/dist/components/properties/index.mjs.map +1 -0
- package/dist/components/table/Table.js +1 -1
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/Table.mjs +1 -1
- package/dist/components/table/Table.mjs.map +1 -1
- package/dist/components/table/index.d.mts +10 -0
- package/dist/components/table/index.d.ts +10 -0
- package/dist/components/table/index.js +2329 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/table/index.mjs +2293 -0
- package/dist/components/table/index.mjs.map +1 -0
- package/dist/components/user-action/DateAndTimePicker.js +1 -1
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.mjs +1 -1
- package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
- package/dist/components/user-action/index.d.mts +30 -0
- package/dist/components/user-action/index.d.ts +30 -0
- package/dist/components/user-action/index.js +4257 -0
- package/dist/components/user-action/index.js.map +1 -0
- package/dist/components/user-action/index.mjs +4195 -0
- package/dist/components/user-action/index.mjs.map +1 -0
- package/dist/components/user-action/input/index.d.mts +6 -0
- package/dist/components/user-action/input/index.d.ts +6 -0
- package/dist/components/user-action/input/index.js +398 -0
- package/dist/components/user-action/input/index.js.map +1 -0
- package/dist/components/user-action/input/index.mjs +357 -0
- package/dist/components/user-action/input/index.mjs.map +1 -0
- package/dist/components/user-action/select/Select.d.mts +5 -1
- package/dist/components/user-action/select/Select.d.ts +5 -1
- package/dist/components/user-action/select/Select.js +27 -14
- package/dist/components/user-action/select/Select.js.map +1 -1
- package/dist/components/user-action/select/Select.mjs +27 -14
- package/dist/components/user-action/select/Select.mjs.map +1 -1
- package/dist/components/user-action/select/index.d.mts +4 -0
- package/dist/components/user-action/select/index.d.ts +4 -0
- package/dist/components/user-action/select/index.js +1369 -0
- package/dist/components/user-action/select/index.js.map +1 -0
- package/dist/components/user-action/select/index.mjs +1333 -0
- package/dist/components/user-action/select/index.mjs.map +1 -0
- package/dist/components/utils/index.d.mts +4 -0
- package/dist/components/utils/index.d.ts +4 -0
- package/dist/components/utils/index.js +302 -0
- package/dist/components/utils/index.js.map +1 -0
- package/dist/components/utils/index.mjs +275 -0
- package/dist/components/utils/index.mjs.map +1 -0
- package/dist/hooks/focus/index.d.mts +6 -0
- package/dist/hooks/focus/index.d.ts +6 -0
- package/dist/hooks/focus/index.js +379 -0
- package/dist/hooks/focus/index.js.map +1 -0
- package/dist/hooks/focus/index.mjs +339 -0
- package/dist/hooks/focus/index.mjs.map +1 -0
- package/dist/hooks/index.d.mts +16 -0
- package/dist/hooks/index.d.ts +16 -0
- package/dist/hooks/index.js +844 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/index.mjs +794 -0
- package/dist/hooks/index.mjs.map +1 -0
- package/dist/index.d.mts +110 -0
- package/dist/index.d.ts +110 -0
- package/dist/index.js +16101 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +15941 -0
- package/dist/index.mjs.map +1 -0
- package/dist/localization/defaults/index.d.mts +4 -0
- package/dist/localization/defaults/index.d.ts +4 -0
- package/dist/localization/defaults/index.js +223 -0
- package/dist/localization/defaults/index.js.map +1 -0
- package/dist/localization/defaults/index.mjs +195 -0
- package/dist/localization/defaults/index.mjs.map +1 -0
- package/dist/localization/index.d.mts +7 -0
- package/dist/localization/index.d.ts +7 -0
- package/dist/localization/index.js +415 -0
- package/dist/localization/index.js.map +1 -0
- package/dist/localization/index.mjs +380 -0
- package/dist/localization/index.mjs.map +1 -0
- package/dist/style/globals.css +63 -10
- package/dist/style/uncompiled/globals.css +5 -4
- package/dist/style/uncompiled/utitlity/shadow.css +4 -0
- package/dist/theming/index.d.mts +5 -0
- package/dist/theming/index.d.ts +5 -0
- package/dist/theming/index.js +174 -0
- package/dist/theming/index.js.map +1 -0
- package/dist/theming/index.mjs +145 -0
- package/dist/theming/index.mjs.map +1 -0
- package/dist/theming/useTheme.d.mts +3 -1
- package/dist/theming/useTheme.d.ts +3 -1
- package/dist/theming/useTheme.js +40 -17
- package/dist/theming/useTheme.js.map +1 -1
- package/dist/theming/useTheme.mjs +38 -15
- package/dist/theming/useTheme.mjs.map +1 -1
- package/dist/utils/index.d.mts +15 -0
- package/dist/utils/index.d.ts +15 -0
- package/dist/utils/index.js +553 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.mjs +493 -0
- package/dist/utils/index.mjs.map +1 -0
- package/package.json +25 -24
- package/dist/components/layout-and-navigation/BreadCrumb.js.map +0 -1
- package/dist/components/layout-and-navigation/BreadCrumb.mjs.map +0 -1
- package/dist/components/layout-and-navigation/Carousel.d.mts +0 -25
- package/dist/components/layout-and-navigation/Carousel.d.ts +0 -25
- package/dist/components/layout-and-navigation/Carousel.js +0 -643
- package/dist/components/layout-and-navigation/Carousel.js.map +0 -1
- package/dist/components/layout-and-navigation/Carousel.mjs +0 -609
- package/dist/components/layout-and-navigation/Carousel.mjs.map +0 -1
- package/dist/components/layout-and-navigation/Chip.js.map +0 -1
- package/dist/components/layout-and-navigation/Chip.mjs.map +0 -1
- package/dist/components/layout-and-navigation/DividerInserter.js.map +0 -1
- package/dist/components/layout-and-navigation/DividerInserter.mjs.map +0 -1
- package/dist/components/layout-and-navigation/Expandable.js.map +0 -1
- package/dist/components/layout-and-navigation/Expandable.mjs.map +0 -1
- package/dist/components/layout-and-navigation/FAQSection.js.map +0 -1
- package/dist/components/layout-and-navigation/FAQSection.mjs.map +0 -1
- package/dist/components/layout-and-navigation/FloatingContainer.js.map +0 -1
- package/dist/components/layout-and-navigation/FloatingContainer.mjs.map +0 -1
- package/dist/components/layout-and-navigation/ListBox.js.map +0 -1
- package/dist/components/layout-and-navigation/ListBox.mjs.map +0 -1
- package/dist/components/layout-and-navigation/MarkdownInterpreter.js.map +0 -1
- package/dist/components/layout-and-navigation/MarkdownInterpreter.mjs.map +0 -1
- package/dist/components/layout-and-navigation/Pagination.js.map +0 -1
- package/dist/components/layout-and-navigation/Pagination.mjs.map +0 -1
- package/dist/components/layout-and-navigation/ScrollArea.js.map +0 -1
- package/dist/components/layout-and-navigation/ScrollArea.mjs.map +0 -1
- package/dist/components/layout-and-navigation/StepperBar.js.map +0 -1
- package/dist/components/layout-and-navigation/StepperBar.mjs.map +0 -1
- package/dist/components/layout-and-navigation/TextImage.js.map +0 -1
- package/dist/components/layout-and-navigation/TextImage.mjs.map +0 -1
- package/dist/components/layout-and-navigation/VerticalDivider.js.map +0 -1
- package/dist/components/layout-and-navigation/VerticalDivider.mjs.map +0 -1
- /package/dist/components/{layout-and-navigation → layout}/Chip.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/Chip.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/DividerInserter.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/DividerInserter.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/Expandable.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/Expandable.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/FAQSection.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/FAQSection.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/FloatingContainer.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/FloatingContainer.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/ListBox.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/ListBox.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/MarkdownInterpreter.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/MarkdownInterpreter.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/ScrollArea.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/ScrollArea.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/TextImage.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/TextImage.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/VerticalDivider.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/VerticalDivider.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → navigation}/BreadCrumb.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → navigation}/BreadCrumb.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → navigation}/Pagination.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → navigation}/Pagination.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → navigation}/StepperBar.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → navigation}/StepperBar.d.ts +0 -0
|
@@ -5,7 +5,7 @@ import { ThemeTypeTranslation } from '../../theming/useTheme.mjs';
|
|
|
5
5
|
import { FormTranslationType } from '../../localization/defaults/form.mjs';
|
|
6
6
|
import { DialogProps } from './Dialog.mjs';
|
|
7
7
|
import '../../localization/util.mjs';
|
|
8
|
-
import '../layout
|
|
8
|
+
import '../layout/FloatingContainer.mjs';
|
|
9
9
|
import '../../hooks/useFloatingElement.mjs';
|
|
10
10
|
|
|
11
11
|
type ThemeDialogTranslationAddon = {
|
|
@@ -5,7 +5,7 @@ import { ThemeTypeTranslation } from '../../theming/useTheme.js';
|
|
|
5
5
|
import { FormTranslationType } from '../../localization/defaults/form.js';
|
|
6
6
|
import { DialogProps } from './Dialog.js';
|
|
7
7
|
import '../../localization/util.js';
|
|
8
|
-
import '../layout
|
|
8
|
+
import '../layout/FloatingContainer.js';
|
|
9
9
|
import '../../hooks/useFloatingElement.js';
|
|
10
10
|
|
|
11
11
|
type ThemeDialogTranslationAddon = {
|
|
@@ -124,7 +124,7 @@ var useTranslation = (translations, overwriteTranslation = {}) => {
|
|
|
124
124
|
var import_react8 = require("react");
|
|
125
125
|
var import_clsx4 = __toESM(require("clsx"));
|
|
126
126
|
|
|
127
|
-
// src/components/layout
|
|
127
|
+
// src/components/layout/Expandable.tsx
|
|
128
128
|
var import_react3 = require("react");
|
|
129
129
|
var import_lucide_react = require("lucide-react");
|
|
130
130
|
var import_clsx = __toESM(require("clsx"));
|
|
@@ -132,7 +132,7 @@ var import_clsx = __toESM(require("clsx"));
|
|
|
132
132
|
// src/utils/noop.ts
|
|
133
133
|
var noop = () => void 0;
|
|
134
134
|
|
|
135
|
-
// src/components/layout
|
|
135
|
+
// src/components/layout/Expandable.tsx
|
|
136
136
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
137
137
|
var ExpansionIcon = ({ isExpanded, className }) => {
|
|
138
138
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
@@ -454,7 +454,7 @@ var match = (key, values) => {
|
|
|
454
454
|
// src/components/user-action/select/Select.tsx
|
|
455
455
|
var import_lucide_react2 = require("lucide-react");
|
|
456
456
|
|
|
457
|
-
// src/components/layout
|
|
457
|
+
// src/components/layout/Chip.tsx
|
|
458
458
|
var import_clsx2 = __toESM(require("clsx"));
|
|
459
459
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
460
460
|
var Chip = ({
|
|
@@ -794,7 +794,8 @@ var SelectRoot = ({
|
|
|
794
794
|
isOpen = false,
|
|
795
795
|
disabled = false,
|
|
796
796
|
invalid = false,
|
|
797
|
-
isMultiSelect = false
|
|
797
|
+
isMultiSelect = false,
|
|
798
|
+
iconAppearance = "left"
|
|
798
799
|
}) => {
|
|
799
800
|
const optionsRef = (0, import_react8.useRef)([]);
|
|
800
801
|
const triggerRef = (0, import_react8.useRef)(null);
|
|
@@ -808,8 +809,11 @@ var SelectRoot = ({
|
|
|
808
809
|
id: usedId,
|
|
809
810
|
disabled,
|
|
810
811
|
invalid,
|
|
811
|
-
value: isMultiSelect ? values ?? [] : [value].filter(Boolean)
|
|
812
|
-
|
|
812
|
+
value: isMultiSelect ? values ?? [] : [value].filter(Boolean)
|
|
813
|
+
};
|
|
814
|
+
const config = {
|
|
815
|
+
isMultiSelect,
|
|
816
|
+
iconAppearance
|
|
813
817
|
};
|
|
814
818
|
const registerItem = (0, import_react8.useCallback)((item) => {
|
|
815
819
|
optionsRef.current.push(item);
|
|
@@ -918,6 +922,7 @@ var SelectRoot = ({
|
|
|
918
922
|
}, [internalState.highlightedValue]);
|
|
919
923
|
const contextValue = {
|
|
920
924
|
state,
|
|
925
|
+
config,
|
|
921
926
|
item: {
|
|
922
927
|
register: registerItem,
|
|
923
928
|
unregister: unregisterItem,
|
|
@@ -935,10 +940,11 @@ var SelectRoot = ({
|
|
|
935
940
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectContext.Provider, { value: contextValue, children });
|
|
936
941
|
};
|
|
937
942
|
var SelectOption = (0, import_react8.forwardRef)(
|
|
938
|
-
function SelectOption2({ value, disabled = false,
|
|
939
|
-
const { state, item, trigger } = useSelectContext();
|
|
943
|
+
function SelectOption2({ children, value, disabled = false, iconAppearance, className, ...restProps }, ref) {
|
|
944
|
+
const { state, config, item, trigger } = useSelectContext();
|
|
940
945
|
const { register, unregister, toggleSelection, highlightItem } = item;
|
|
941
946
|
const itemRef = (0, import_react8.useRef)(null);
|
|
947
|
+
iconAppearance ??= config.iconAppearance;
|
|
942
948
|
(0, import_react8.useEffect)(() => {
|
|
943
949
|
register({
|
|
944
950
|
value,
|
|
@@ -975,7 +981,7 @@ var SelectOption = (0, import_react8.forwardRef)(
|
|
|
975
981
|
onClick: (event) => {
|
|
976
982
|
if (!disabled) {
|
|
977
983
|
toggleSelection(value);
|
|
978
|
-
if (!
|
|
984
|
+
if (!config.isMultiSelect) {
|
|
979
985
|
trigger.toggleOpen(false);
|
|
980
986
|
}
|
|
981
987
|
restProps.onClick?.(event);
|
|
@@ -988,14 +994,21 @@ var SelectOption = (0, import_react8.forwardRef)(
|
|
|
988
994
|
}
|
|
989
995
|
},
|
|
990
996
|
children: [
|
|
991
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
997
|
+
iconAppearance === "left" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
992
998
|
import_lucide_react2.CheckIcon,
|
|
993
999
|
{
|
|
994
1000
|
className: (0, import_clsx4.default)("w-4 h-4", { "opacity-0": !isSelected || disabled }),
|
|
995
1001
|
"aria-hidden": true
|
|
996
1002
|
}
|
|
997
1003
|
),
|
|
998
|
-
children ?? value
|
|
1004
|
+
children ?? value,
|
|
1005
|
+
iconAppearance === "right" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1006
|
+
import_lucide_react2.CheckIcon,
|
|
1007
|
+
{
|
|
1008
|
+
className: (0, import_clsx4.default)("w-4 h-4", { "opacity-0": !isSelected || disabled }),
|
|
1009
|
+
"aria-hidden": true
|
|
1010
|
+
}
|
|
1011
|
+
)
|
|
999
1012
|
]
|
|
1000
1013
|
}
|
|
1001
1014
|
);
|
|
@@ -1133,7 +1146,7 @@ var SelectContent = (0, import_react8.forwardRef)(
|
|
|
1133
1146
|
}, ref) {
|
|
1134
1147
|
const innerRef = (0, import_react8.useRef)(null);
|
|
1135
1148
|
(0, import_react8.useImperativeHandle)(ref, () => innerRef.current);
|
|
1136
|
-
const { trigger, state, item } = useSelectContext();
|
|
1149
|
+
const { trigger, state, config, item } = useSelectContext();
|
|
1137
1150
|
const position = useFloatingElement({
|
|
1138
1151
|
active: state.isOpen,
|
|
1139
1152
|
anchorRef: trigger.ref,
|
|
@@ -1193,7 +1206,7 @@ var SelectContent = (0, import_react8.forwardRef)(
|
|
|
1193
1206
|
case " ":
|
|
1194
1207
|
if (state.highlightedValue) {
|
|
1195
1208
|
item.toggleSelection(state.highlightedValue);
|
|
1196
|
-
if (!
|
|
1209
|
+
if (!config.isMultiSelect) {
|
|
1197
1210
|
trigger.toggleOpen(false);
|
|
1198
1211
|
}
|
|
1199
1212
|
event.preventDefault();
|
|
@@ -1208,7 +1221,7 @@ var SelectContent = (0, import_react8.forwardRef)(
|
|
|
1208
1221
|
...position
|
|
1209
1222
|
},
|
|
1210
1223
|
role: "listbox",
|
|
1211
|
-
"aria-multiselectable":
|
|
1224
|
+
"aria-multiselectable": config.isMultiSelect,
|
|
1212
1225
|
"aria-orientation": orientation,
|
|
1213
1226
|
tabIndex: position ? 0 : void 0,
|
|
1214
1227
|
children: props.children
|
|
@@ -1333,6 +1346,7 @@ var MultiSelectChipDisplayUncontrolled = (0, import_react8.forwardRef)(function
|
|
|
1333
1346
|
// src/theming/useTheme.tsx
|
|
1334
1347
|
var import_react9 = require("react");
|
|
1335
1348
|
var import_react10 = require("react");
|
|
1349
|
+
var import_react11 = require("react");
|
|
1336
1350
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
1337
1351
|
var themes = ["light", "dark", "system"];
|
|
1338
1352
|
var defaultThemeTypeTranslation = {
|
|
@@ -1359,11 +1373,14 @@ var ThemeUtil = {
|
|
|
1359
1373
|
themes,
|
|
1360
1374
|
translation: defaultThemeTypeTranslation
|
|
1361
1375
|
};
|
|
1362
|
-
var ThemeContext = (0,
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1376
|
+
var ThemeContext = (0, import_react11.createContext)(null);
|
|
1377
|
+
var useTheme = () => {
|
|
1378
|
+
const context = (0, import_react11.useContext)(ThemeContext);
|
|
1379
|
+
if (!context) {
|
|
1380
|
+
throw new Error("useTheme must be used within ThemeContext. Try adding a ThemeProvider around your app.");
|
|
1381
|
+
}
|
|
1382
|
+
return context;
|
|
1383
|
+
};
|
|
1367
1384
|
|
|
1368
1385
|
// src/localization/defaults/form.ts
|
|
1369
1386
|
var formTranslation = {
|
|
@@ -1484,16 +1501,16 @@ var formTranslation = {
|
|
|
1484
1501
|
};
|
|
1485
1502
|
|
|
1486
1503
|
// src/components/dialog/Dialog.tsx
|
|
1487
|
-
var
|
|
1504
|
+
var import_react14 = require("react");
|
|
1488
1505
|
var import_clsx6 = __toESM(require("clsx"));
|
|
1489
1506
|
var import_lucide_react3 = require("lucide-react");
|
|
1490
1507
|
|
|
1491
|
-
// src/components/layout
|
|
1492
|
-
var
|
|
1508
|
+
// src/components/layout/FloatingContainer.tsx
|
|
1509
|
+
var import_react12 = require("react");
|
|
1493
1510
|
var import_react_dom2 = require("react-dom");
|
|
1494
1511
|
var import_clsx5 = require("clsx");
|
|
1495
1512
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
1496
|
-
var FloatingContainer = (0,
|
|
1513
|
+
var FloatingContainer = (0, import_react12.forwardRef)(function FloatingContainer2({
|
|
1497
1514
|
children,
|
|
1498
1515
|
backgroundOverlay,
|
|
1499
1516
|
anchor,
|
|
@@ -1505,8 +1522,8 @@ var FloatingContainer = (0, import_react11.forwardRef)(function FloatingContaine
|
|
|
1505
1522
|
gap = 4,
|
|
1506
1523
|
...props
|
|
1507
1524
|
}, forwardRef5) {
|
|
1508
|
-
const innerRef = (0,
|
|
1509
|
-
(0,
|
|
1525
|
+
const innerRef = (0, import_react12.useRef)(null);
|
|
1526
|
+
(0, import_react12.useImperativeHandle)(forwardRef5, () => innerRef.current);
|
|
1510
1527
|
const position = useFloatingElement({
|
|
1511
1528
|
active: !props.hidden,
|
|
1512
1529
|
containerRef: innerRef,
|
|
@@ -1545,14 +1562,14 @@ var FloatingContainer = (0, import_react11.forwardRef)(function FloatingContaine
|
|
|
1545
1562
|
});
|
|
1546
1563
|
|
|
1547
1564
|
// src/hooks/useLogOnce.ts
|
|
1548
|
-
var
|
|
1565
|
+
var import_react13 = require("react");
|
|
1549
1566
|
var defaultOptions = {
|
|
1550
1567
|
type: "warning"
|
|
1551
1568
|
};
|
|
1552
1569
|
var useLogOnce = (message, condition, options) => {
|
|
1553
|
-
const [hasLogged, setHasLogged] = (0,
|
|
1570
|
+
const [hasLogged, setHasLogged] = (0, import_react13.useState)(false);
|
|
1554
1571
|
const { type } = { ...defaultOptions, ...options };
|
|
1555
|
-
(0,
|
|
1572
|
+
(0, import_react13.useEffect)(() => {
|
|
1556
1573
|
if (!hasLogged && condition) {
|
|
1557
1574
|
switch (type) {
|
|
1558
1575
|
case "info":
|
|
@@ -1585,7 +1602,7 @@ var Dialog = ({
|
|
|
1585
1602
|
backgroundClassName
|
|
1586
1603
|
}) => {
|
|
1587
1604
|
const translation = useTranslation([formTranslation]);
|
|
1588
|
-
const ref = (0,
|
|
1605
|
+
const ref = (0, import_react14.useRef)(null);
|
|
1589
1606
|
const onCloseWrapper = () => {
|
|
1590
1607
|
if (!isModal) return;
|
|
1591
1608
|
onClose?.();
|
|
@@ -1663,13 +1680,24 @@ var Dialog = ({
|
|
|
1663
1680
|
};
|
|
1664
1681
|
|
|
1665
1682
|
// src/components/dialog/ThemeDialog.tsx
|
|
1683
|
+
var import_lucide_react4 = require("lucide-react");
|
|
1684
|
+
var import_clsx7 = __toESM(require("clsx"));
|
|
1666
1685
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1686
|
+
var ThemeIcon = ({ theme, className }) => {
|
|
1687
|
+
if (theme === "dark") {
|
|
1688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react4.MoonIcon, { className: (0, import_clsx7.default)("w-4 h-4", className) });
|
|
1689
|
+
} else if (theme === "light") {
|
|
1690
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react4.SunIcon, { className: (0, import_clsx7.default)("w-4 h-4", className) });
|
|
1691
|
+
} else {
|
|
1692
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react4.MonitorCog, { className: (0, import_clsx7.default)("w-4 h-4", className) });
|
|
1693
|
+
}
|
|
1694
|
+
};
|
|
1667
1695
|
var defaultConfirmDialogTranslation = {
|
|
1668
1696
|
en: {
|
|
1669
|
-
chooseTheme: "Choose your preferred theme"
|
|
1697
|
+
chooseTheme: "Choose your preferred color theme."
|
|
1670
1698
|
},
|
|
1671
1699
|
de: {
|
|
1672
|
-
chooseTheme: "W\xE4hle dein bevorzugtes Farbschema"
|
|
1700
|
+
chooseTheme: "W\xE4hle dein bevorzugtes Farbschema."
|
|
1673
1701
|
}
|
|
1674
1702
|
};
|
|
1675
1703
|
var ThemeDialog = ({
|
|
@@ -1694,13 +1722,21 @@ var ThemeDialog = ({
|
|
|
1694
1722
|
{
|
|
1695
1723
|
value: theme,
|
|
1696
1724
|
onValueChanged: (theme2) => setTheme(theme2),
|
|
1725
|
+
iconAppearance: "right",
|
|
1697
1726
|
contentPanelProps: {
|
|
1698
1727
|
className: "z-100"
|
|
1699
1728
|
},
|
|
1700
1729
|
buttonProps: {
|
|
1701
|
-
selectedDisplay: (value) =>
|
|
1730
|
+
selectedDisplay: (value) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex-row-2 items-center", children: [
|
|
1731
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ThemeIcon, { theme }),
|
|
1732
|
+
translation(value)
|
|
1733
|
+
] }),
|
|
1734
|
+
className: "min-w-32"
|
|
1702
1735
|
},
|
|
1703
|
-
children: ThemeUtil.themes.map((theme2) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SelectOption, { value: theme2, children:
|
|
1736
|
+
children: ThemeUtil.themes.map((theme2) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SelectOption, { value: theme2, className: "gap-x-6 justify-between", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex-row-2 items-center", children: [
|
|
1737
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ThemeIcon, { theme: theme2 }),
|
|
1738
|
+
translation(theme2)
|
|
1739
|
+
] }) }, theme2))
|
|
1704
1740
|
}
|
|
1705
1741
|
),
|
|
1706
1742
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex-row-4 mt-3 justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation("done") }) })
|