@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
|
@@ -552,7 +552,6 @@ var ButtonUtil = {
|
|
|
552
552
|
};
|
|
553
553
|
var SolidButton = (0, import_react7.forwardRef)(function SolidButton2({
|
|
554
554
|
children,
|
|
555
|
-
disabled = false,
|
|
556
555
|
color = "primary",
|
|
557
556
|
size = "medium",
|
|
558
557
|
startIcon,
|
|
@@ -562,35 +561,33 @@ var SolidButton = (0, import_react7.forwardRef)(function SolidButton2({
|
|
|
562
561
|
...restProps
|
|
563
562
|
}, ref) {
|
|
564
563
|
const colorClasses = {
|
|
565
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
566
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
567
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
568
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
569
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
570
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
571
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
564
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
565
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
566
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
567
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
568
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
569
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
570
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
|
|
572
571
|
}[color];
|
|
573
572
|
const iconColorClasses = {
|
|
574
|
-
primary: "text-button-solid-primary-icon",
|
|
575
|
-
secondary: "text-button-solid-secondary-icon",
|
|
576
|
-
tertiary: "text-button-solid-tertiary-icon",
|
|
577
|
-
positive: "text-button-solid-positive-icon",
|
|
578
|
-
warning: "text-button-solid-warning-icon",
|
|
579
|
-
negative: "text-button-solid-negative-icon",
|
|
580
|
-
neutral: "text-button-solid-neutral-icon"
|
|
573
|
+
primary: "not-group-disabled:text-button-solid-primary-icon",
|
|
574
|
+
secondary: "not-group-disabled:text-button-solid-secondary-icon",
|
|
575
|
+
tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
|
|
576
|
+
positive: "not-group-disabled:text-button-solid-positive-icon",
|
|
577
|
+
warning: "not-group-disabled:text-button-solid-warning-icon",
|
|
578
|
+
negative: "not-group-disabled:text-button-solid-negative-icon",
|
|
579
|
+
neutral: "not-group-disabled:text-button-solid-neutral-icon"
|
|
581
580
|
}[color];
|
|
582
581
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
583
582
|
"button",
|
|
584
583
|
{
|
|
585
584
|
ref,
|
|
586
585
|
onClick,
|
|
587
|
-
disabled,
|
|
588
586
|
className: (0, import_clsx3.default)(
|
|
589
|
-
"font-semibold",
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
},
|
|
587
|
+
"group font-semibold",
|
|
588
|
+
colorClasses,
|
|
589
|
+
"not-disabled:hover:brightness-90",
|
|
590
|
+
"disabled:text-disabled-text disabled:bg-disabled-background",
|
|
594
591
|
ButtonUtil.paddingMapping[size],
|
|
595
592
|
className
|
|
596
593
|
),
|
|
@@ -599,10 +596,10 @@ var SolidButton = (0, import_react7.forwardRef)(function SolidButton2({
|
|
|
599
596
|
startIcon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
600
597
|
"span",
|
|
601
598
|
{
|
|
602
|
-
className: (0, import_clsx3.default)(
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
599
|
+
className: (0, import_clsx3.default)(
|
|
600
|
+
iconColorClasses,
|
|
601
|
+
"group-disabled:text-disabled-icon"
|
|
602
|
+
),
|
|
606
603
|
children: startIcon
|
|
607
604
|
}
|
|
608
605
|
),
|
|
@@ -610,10 +607,10 @@ var SolidButton = (0, import_react7.forwardRef)(function SolidButton2({
|
|
|
610
607
|
endIcon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
611
608
|
"span",
|
|
612
609
|
{
|
|
613
|
-
className: (0, import_clsx3.default)(
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
610
|
+
className: (0, import_clsx3.default)(
|
|
611
|
+
iconColorClasses,
|
|
612
|
+
"group-disabled:text-disabled-icon"
|
|
613
|
+
),
|
|
617
614
|
children: endIcon
|
|
618
615
|
}
|
|
619
616
|
)
|
|
@@ -623,32 +620,32 @@ var SolidButton = (0, import_react7.forwardRef)(function SolidButton2({
|
|
|
623
620
|
});
|
|
624
621
|
var IconButton = ({
|
|
625
622
|
children,
|
|
626
|
-
disabled = false,
|
|
627
623
|
color = "primary",
|
|
628
624
|
size = "medium",
|
|
629
625
|
className,
|
|
630
626
|
...restProps
|
|
631
627
|
}) => {
|
|
632
628
|
const colorClasses = {
|
|
633
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
634
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
635
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
636
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
637
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
638
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
639
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text",
|
|
640
|
-
transparent: "bg-transparent"
|
|
629
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
630
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
631
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
632
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
633
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
634
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
635
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
|
|
636
|
+
transparent: "not-disabled:bg-transparent"
|
|
641
637
|
}[color];
|
|
642
638
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
643
639
|
"button",
|
|
644
640
|
{
|
|
645
|
-
disabled,
|
|
646
641
|
className: (0, import_clsx3.default)(
|
|
642
|
+
colorClasses,
|
|
643
|
+
"not-disabled:hover:brightness-90",
|
|
644
|
+
"disabled:text-disabled-text",
|
|
647
645
|
{
|
|
648
|
-
"
|
|
649
|
-
"
|
|
650
|
-
"hover:bg-button-text-hover-background":
|
|
651
|
-
[(0, import_clsx3.default)(colorClasses, "hover:brightness-90")]: !disabled
|
|
646
|
+
"disabled:bg-disabled-background": color !== "transparent",
|
|
647
|
+
"disabled:opacity-70": color === "transparent",
|
|
648
|
+
"not-disabled:hover:bg-button-text-hover-background": color === "transparent"
|
|
652
649
|
},
|
|
653
650
|
ButtonUtil.iconPaddingMapping[size],
|
|
654
651
|
className
|
|
@@ -804,31 +801,57 @@ var Checkbox = ({
|
|
|
804
801
|
}
|
|
805
802
|
};
|
|
806
803
|
const changeValue = () => {
|
|
804
|
+
if (disabled) {
|
|
805
|
+
return;
|
|
806
|
+
}
|
|
807
807
|
const newValue = checked === "indeterminate" ? false : !checked;
|
|
808
808
|
propagateChange(newValue);
|
|
809
809
|
};
|
|
810
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
{
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
811
|
+
"div",
|
|
812
|
+
{
|
|
813
|
+
className: (0, import_clsx5.default)("group flex-row-2 items-center", {
|
|
814
|
+
"cursor-pointer": !disabled,
|
|
815
|
+
"cursor-not-allowed": disabled
|
|
816
|
+
}, containerClassName),
|
|
817
|
+
onClick: changeValue,
|
|
818
|
+
children: [
|
|
819
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
820
|
+
CheckboxPrimitive.Root,
|
|
821
|
+
{
|
|
822
|
+
onCheckedChange: propagateChange,
|
|
823
|
+
checked,
|
|
824
|
+
disabled,
|
|
825
|
+
id,
|
|
826
|
+
className: (0, import_clsx5.default)(usedSizeClass, `items-center border-2 rounded outline-none `, {
|
|
827
|
+
"text-disabled-text border-disabled-outline bg-disabled-background cursor-not-allowed": disabled,
|
|
828
|
+
"focus:border-primary group-hover:border-primary ": !disabled,
|
|
829
|
+
"bg-input-background": !disabled && !checked,
|
|
830
|
+
"bg-primary/30 border-primary text-primary": !disabled && checked === true || checked === "indeterminate"
|
|
831
|
+
}, className),
|
|
832
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(CheckboxPrimitive.Indicator, { children: [
|
|
833
|
+
checked === true && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.Check, { className: innerIconSize }),
|
|
834
|
+
checked === "indeterminate" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.Minus, { className: innerIconSize })
|
|
835
|
+
] })
|
|
836
|
+
}
|
|
837
|
+
),
|
|
838
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
839
|
+
Label,
|
|
840
|
+
{
|
|
841
|
+
...label,
|
|
842
|
+
className: (0, import_clsx5.default)(
|
|
843
|
+
label.className,
|
|
844
|
+
{
|
|
845
|
+
"cursor-pointer": !disabled,
|
|
846
|
+
"cursor-not-allowed": disabled
|
|
847
|
+
}
|
|
848
|
+
),
|
|
849
|
+
htmlFor: id
|
|
850
|
+
}
|
|
851
|
+
)
|
|
852
|
+
]
|
|
853
|
+
}
|
|
854
|
+
);
|
|
832
855
|
};
|
|
833
856
|
|
|
834
857
|
// src/components/table/TableFilterButton.tsx
|