@helpwave/hightide 0.1.24 → 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 +48 -53
- package/dist/components/date/DatePicker.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 +26 -29
- 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 +40 -43
- 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 +40 -43
- 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 +40 -43
- 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 +40 -43
- 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 +26 -29
- package/dist/components/layout-and-navigation/StepperBar.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 +40 -43
- 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 +40 -43
- 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 +40 -43
- 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 +43 -49
- 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 +43 -49
- 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 +96 -75
- 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 +48 -53
- 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 +114 -93
- 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 +48 -53
- 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 +48 -53
- 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 +65 -73
- 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 +51 -56
- 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 +88 -65
- 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 +40 -43
- 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/DateAndTimePicker.js +48 -53
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.mjs +48 -53
- 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 +92 -69
- 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 +40 -43
- 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 +43 -49
- 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/index.js +139 -124
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +139 -124
- package/dist/index.mjs.map +1 -1
- package/dist/theming/useTheme.js +1 -1
- package/dist/theming/useTheme.js.map +1 -1
- package/dist/theming/useTheme.mjs +1 -1
- package/dist/theming/useTheme.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -517,7 +517,6 @@ var ButtonUtil = {
|
|
|
517
517
|
};
|
|
518
518
|
var SolidButton = forwardRef2(function SolidButton2({
|
|
519
519
|
children,
|
|
520
|
-
disabled = false,
|
|
521
520
|
color = "primary",
|
|
522
521
|
size = "medium",
|
|
523
522
|
startIcon,
|
|
@@ -527,35 +526,33 @@ var SolidButton = forwardRef2(function SolidButton2({
|
|
|
527
526
|
...restProps
|
|
528
527
|
}, ref) {
|
|
529
528
|
const colorClasses = {
|
|
530
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
531
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
532
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
533
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
534
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
535
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
536
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
529
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
530
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
531
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
532
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
533
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
534
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
535
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
|
|
537
536
|
}[color];
|
|
538
537
|
const iconColorClasses = {
|
|
539
|
-
primary: "text-button-solid-primary-icon",
|
|
540
|
-
secondary: "text-button-solid-secondary-icon",
|
|
541
|
-
tertiary: "text-button-solid-tertiary-icon",
|
|
542
|
-
positive: "text-button-solid-positive-icon",
|
|
543
|
-
warning: "text-button-solid-warning-icon",
|
|
544
|
-
negative: "text-button-solid-negative-icon",
|
|
545
|
-
neutral: "text-button-solid-neutral-icon"
|
|
538
|
+
primary: "not-group-disabled:text-button-solid-primary-icon",
|
|
539
|
+
secondary: "not-group-disabled:text-button-solid-secondary-icon",
|
|
540
|
+
tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
|
|
541
|
+
positive: "not-group-disabled:text-button-solid-positive-icon",
|
|
542
|
+
warning: "not-group-disabled:text-button-solid-warning-icon",
|
|
543
|
+
negative: "not-group-disabled:text-button-solid-negative-icon",
|
|
544
|
+
neutral: "not-group-disabled:text-button-solid-neutral-icon"
|
|
546
545
|
}[color];
|
|
547
546
|
return /* @__PURE__ */ jsxs2(
|
|
548
547
|
"button",
|
|
549
548
|
{
|
|
550
549
|
ref,
|
|
551
550
|
onClick,
|
|
552
|
-
disabled,
|
|
553
551
|
className: clsx3(
|
|
554
|
-
"font-semibold",
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
},
|
|
552
|
+
"group font-semibold",
|
|
553
|
+
colorClasses,
|
|
554
|
+
"not-disabled:hover:brightness-90",
|
|
555
|
+
"disabled:text-disabled-text disabled:bg-disabled-background",
|
|
559
556
|
ButtonUtil.paddingMapping[size],
|
|
560
557
|
className
|
|
561
558
|
),
|
|
@@ -564,10 +561,10 @@ var SolidButton = forwardRef2(function SolidButton2({
|
|
|
564
561
|
startIcon && /* @__PURE__ */ jsx4(
|
|
565
562
|
"span",
|
|
566
563
|
{
|
|
567
|
-
className: clsx3(
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
564
|
+
className: clsx3(
|
|
565
|
+
iconColorClasses,
|
|
566
|
+
"group-disabled:text-disabled-icon"
|
|
567
|
+
),
|
|
571
568
|
children: startIcon
|
|
572
569
|
}
|
|
573
570
|
),
|
|
@@ -575,10 +572,10 @@ var SolidButton = forwardRef2(function SolidButton2({
|
|
|
575
572
|
endIcon && /* @__PURE__ */ jsx4(
|
|
576
573
|
"span",
|
|
577
574
|
{
|
|
578
|
-
className: clsx3(
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
575
|
+
className: clsx3(
|
|
576
|
+
iconColorClasses,
|
|
577
|
+
"group-disabled:text-disabled-icon"
|
|
578
|
+
),
|
|
582
579
|
children: endIcon
|
|
583
580
|
}
|
|
584
581
|
)
|
|
@@ -588,32 +585,32 @@ var SolidButton = forwardRef2(function SolidButton2({
|
|
|
588
585
|
});
|
|
589
586
|
var IconButton = ({
|
|
590
587
|
children,
|
|
591
|
-
disabled = false,
|
|
592
588
|
color = "primary",
|
|
593
589
|
size = "medium",
|
|
594
590
|
className,
|
|
595
591
|
...restProps
|
|
596
592
|
}) => {
|
|
597
593
|
const colorClasses = {
|
|
598
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
599
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
600
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
601
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
602
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
603
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
604
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text",
|
|
605
|
-
transparent: "bg-transparent"
|
|
594
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
595
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
596
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
597
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
598
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
599
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
600
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
|
|
601
|
+
transparent: "not-disabled:bg-transparent"
|
|
606
602
|
}[color];
|
|
607
603
|
return /* @__PURE__ */ jsx4(
|
|
608
604
|
"button",
|
|
609
605
|
{
|
|
610
|
-
disabled,
|
|
611
606
|
className: clsx3(
|
|
607
|
+
colorClasses,
|
|
608
|
+
"not-disabled:hover:brightness-90",
|
|
609
|
+
"disabled:text-disabled-text",
|
|
612
610
|
{
|
|
613
|
-
"
|
|
614
|
-
"
|
|
615
|
-
"hover:bg-button-text-hover-background":
|
|
616
|
-
[clsx3(colorClasses, "hover:brightness-90")]: !disabled
|
|
611
|
+
"disabled:bg-disabled-background": color !== "transparent",
|
|
612
|
+
"disabled:opacity-70": color === "transparent",
|
|
613
|
+
"not-disabled:hover:bg-button-text-hover-background": color === "transparent"
|
|
617
614
|
},
|
|
618
615
|
ButtonUtil.iconPaddingMapping[size],
|
|
619
616
|
className
|
|
@@ -776,31 +773,57 @@ var Checkbox = ({
|
|
|
776
773
|
}
|
|
777
774
|
};
|
|
778
775
|
const changeValue = () => {
|
|
776
|
+
if (disabled) {
|
|
777
|
+
return;
|
|
778
|
+
}
|
|
779
779
|
const newValue = checked === "indeterminate" ? false : !checked;
|
|
780
780
|
propagateChange(newValue);
|
|
781
781
|
};
|
|
782
|
-
return /* @__PURE__ */ jsxs4(
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
{
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
782
|
+
return /* @__PURE__ */ jsxs4(
|
|
783
|
+
"div",
|
|
784
|
+
{
|
|
785
|
+
className: clsx5("group flex-row-2 items-center", {
|
|
786
|
+
"cursor-pointer": !disabled,
|
|
787
|
+
"cursor-not-allowed": disabled
|
|
788
|
+
}, containerClassName),
|
|
789
|
+
onClick: changeValue,
|
|
790
|
+
children: [
|
|
791
|
+
/* @__PURE__ */ jsx6(
|
|
792
|
+
CheckboxPrimitive.Root,
|
|
793
|
+
{
|
|
794
|
+
onCheckedChange: propagateChange,
|
|
795
|
+
checked,
|
|
796
|
+
disabled,
|
|
797
|
+
id,
|
|
798
|
+
className: clsx5(usedSizeClass, `items-center border-2 rounded outline-none `, {
|
|
799
|
+
"text-disabled-text border-disabled-outline bg-disabled-background cursor-not-allowed": disabled,
|
|
800
|
+
"focus:border-primary group-hover:border-primary ": !disabled,
|
|
801
|
+
"bg-input-background": !disabled && !checked,
|
|
802
|
+
"bg-primary/30 border-primary text-primary": !disabled && checked === true || checked === "indeterminate"
|
|
803
|
+
}, className),
|
|
804
|
+
children: /* @__PURE__ */ jsxs4(CheckboxPrimitive.Indicator, { children: [
|
|
805
|
+
checked === true && /* @__PURE__ */ jsx6(Check, { className: innerIconSize }),
|
|
806
|
+
checked === "indeterminate" && /* @__PURE__ */ jsx6(Minus, { className: innerIconSize })
|
|
807
|
+
] })
|
|
808
|
+
}
|
|
809
|
+
),
|
|
810
|
+
label && /* @__PURE__ */ jsx6(
|
|
811
|
+
Label,
|
|
812
|
+
{
|
|
813
|
+
...label,
|
|
814
|
+
className: clsx5(
|
|
815
|
+
label.className,
|
|
816
|
+
{
|
|
817
|
+
"cursor-pointer": !disabled,
|
|
818
|
+
"cursor-not-allowed": disabled
|
|
819
|
+
}
|
|
820
|
+
),
|
|
821
|
+
htmlFor: id
|
|
822
|
+
}
|
|
823
|
+
)
|
|
824
|
+
]
|
|
825
|
+
}
|
|
826
|
+
);
|
|
804
827
|
};
|
|
805
828
|
|
|
806
829
|
// src/components/table/TableFilterButton.tsx
|