@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.
Files changed (136) hide show
  1. package/dist/components/date/DatePicker.js +48 -53
  2. package/dist/components/date/DatePicker.js.map +1 -1
  3. package/dist/components/date/DatePicker.mjs +48 -53
  4. package/dist/components/date/DatePicker.mjs.map +1 -1
  5. package/dist/components/date/YearMonthPicker.js +26 -29
  6. package/dist/components/date/YearMonthPicker.js.map +1 -1
  7. package/dist/components/date/YearMonthPicker.mjs +26 -29
  8. package/dist/components/date/YearMonthPicker.mjs.map +1 -1
  9. package/dist/components/dialogs/ConfirmDialog.js +40 -43
  10. package/dist/components/dialogs/ConfirmDialog.js.map +1 -1
  11. package/dist/components/dialogs/ConfirmDialog.mjs +40 -43
  12. package/dist/components/dialogs/ConfirmDialog.mjs.map +1 -1
  13. package/dist/components/layout-and-navigation/Carousel.js +40 -43
  14. package/dist/components/layout-and-navigation/Carousel.js.map +1 -1
  15. package/dist/components/layout-and-navigation/Carousel.mjs +40 -43
  16. package/dist/components/layout-and-navigation/Carousel.mjs.map +1 -1
  17. package/dist/components/layout-and-navigation/Overlay.js +40 -43
  18. package/dist/components/layout-and-navigation/Overlay.js.map +1 -1
  19. package/dist/components/layout-and-navigation/Overlay.mjs +40 -43
  20. package/dist/components/layout-and-navigation/Overlay.mjs.map +1 -1
  21. package/dist/components/layout-and-navigation/Pagination.js +40 -43
  22. package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
  23. package/dist/components/layout-and-navigation/Pagination.mjs +40 -43
  24. package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -1
  25. package/dist/components/layout-and-navigation/SearchableList.js +40 -43
  26. package/dist/components/layout-and-navigation/SearchableList.js.map +1 -1
  27. package/dist/components/layout-and-navigation/SearchableList.mjs +40 -43
  28. package/dist/components/layout-and-navigation/SearchableList.mjs.map +1 -1
  29. package/dist/components/layout-and-navigation/StepperBar.js +26 -29
  30. package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
  31. package/dist/components/layout-and-navigation/StepperBar.mjs +26 -29
  32. package/dist/components/layout-and-navigation/StepperBar.mjs.map +1 -1
  33. package/dist/components/loading-states/LoadingButton.js +26 -29
  34. package/dist/components/loading-states/LoadingButton.js.map +1 -1
  35. package/dist/components/loading-states/LoadingButton.mjs +26 -29
  36. package/dist/components/loading-states/LoadingButton.mjs.map +1 -1
  37. package/dist/components/modals/ConfirmModal.js +40 -43
  38. package/dist/components/modals/ConfirmModal.js.map +1 -1
  39. package/dist/components/modals/ConfirmModal.mjs +40 -43
  40. package/dist/components/modals/ConfirmModal.mjs.map +1 -1
  41. package/dist/components/modals/DiscardChangesModal.js +40 -43
  42. package/dist/components/modals/DiscardChangesModal.js.map +1 -1
  43. package/dist/components/modals/DiscardChangesModal.mjs +40 -43
  44. package/dist/components/modals/DiscardChangesModal.mjs.map +1 -1
  45. package/dist/components/modals/InputModal.js +40 -43
  46. package/dist/components/modals/InputModal.js.map +1 -1
  47. package/dist/components/modals/InputModal.mjs +40 -43
  48. package/dist/components/modals/InputModal.mjs.map +1 -1
  49. package/dist/components/modals/LanguageModal.js +43 -49
  50. package/dist/components/modals/LanguageModal.js.map +1 -1
  51. package/dist/components/modals/LanguageModal.mjs +43 -49
  52. package/dist/components/modals/LanguageModal.mjs.map +1 -1
  53. package/dist/components/modals/ThemeModal.js +43 -49
  54. package/dist/components/modals/ThemeModal.js.map +1 -1
  55. package/dist/components/modals/ThemeModal.mjs +43 -49
  56. package/dist/components/modals/ThemeModal.mjs.map +1 -1
  57. package/dist/components/properties/CheckboxProperty.js +96 -75
  58. package/dist/components/properties/CheckboxProperty.js.map +1 -1
  59. package/dist/components/properties/CheckboxProperty.mjs +96 -75
  60. package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
  61. package/dist/components/properties/DateProperty.js +48 -53
  62. package/dist/components/properties/DateProperty.js.map +1 -1
  63. package/dist/components/properties/DateProperty.mjs +48 -53
  64. package/dist/components/properties/DateProperty.mjs.map +1 -1
  65. package/dist/components/properties/MultiSelectProperty.js +114 -93
  66. package/dist/components/properties/MultiSelectProperty.js.map +1 -1
  67. package/dist/components/properties/MultiSelectProperty.mjs +114 -93
  68. package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
  69. package/dist/components/properties/NumberProperty.js +48 -53
  70. package/dist/components/properties/NumberProperty.js.map +1 -1
  71. package/dist/components/properties/NumberProperty.mjs +48 -53
  72. package/dist/components/properties/NumberProperty.mjs.map +1 -1
  73. package/dist/components/properties/PropertyBase.js +48 -53
  74. package/dist/components/properties/PropertyBase.js.map +1 -1
  75. package/dist/components/properties/PropertyBase.mjs +48 -53
  76. package/dist/components/properties/PropertyBase.mjs.map +1 -1
  77. package/dist/components/properties/SelectProperty.js +65 -73
  78. package/dist/components/properties/SelectProperty.js.map +1 -1
  79. package/dist/components/properties/SelectProperty.mjs +65 -73
  80. package/dist/components/properties/SelectProperty.mjs.map +1 -1
  81. package/dist/components/properties/TextProperty.js +51 -56
  82. package/dist/components/properties/TextProperty.js.map +1 -1
  83. package/dist/components/properties/TextProperty.mjs +51 -56
  84. package/dist/components/properties/TextProperty.mjs.map +1 -1
  85. package/dist/components/table/Table.js +88 -65
  86. package/dist/components/table/Table.js.map +1 -1
  87. package/dist/components/table/Table.mjs +88 -65
  88. package/dist/components/table/Table.mjs.map +1 -1
  89. package/dist/components/table/TableFilterButton.js +40 -43
  90. package/dist/components/table/TableFilterButton.js.map +1 -1
  91. package/dist/components/table/TableFilterButton.mjs +40 -43
  92. package/dist/components/table/TableFilterButton.mjs.map +1 -1
  93. package/dist/components/table/TableSortButton.js +40 -43
  94. package/dist/components/table/TableSortButton.js.map +1 -1
  95. package/dist/components/table/TableSortButton.mjs +40 -43
  96. package/dist/components/table/TableSortButton.mjs.map +1 -1
  97. package/dist/components/user-action/Button.d.mts +3 -3
  98. package/dist/components/user-action/Button.d.ts +3 -3
  99. package/dist/components/user-action/Button.js +76 -84
  100. package/dist/components/user-action/Button.js.map +1 -1
  101. package/dist/components/user-action/Button.mjs +76 -84
  102. package/dist/components/user-action/Button.mjs.map +1 -1
  103. package/dist/components/user-action/Checkbox.js +48 -22
  104. package/dist/components/user-action/Checkbox.js.map +1 -1
  105. package/dist/components/user-action/Checkbox.mjs +48 -22
  106. package/dist/components/user-action/Checkbox.mjs.map +1 -1
  107. package/dist/components/user-action/DateAndTimePicker.js +48 -53
  108. package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
  109. package/dist/components/user-action/DateAndTimePicker.mjs +48 -53
  110. package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
  111. package/dist/components/user-action/MultiSelect.js +92 -69
  112. package/dist/components/user-action/MultiSelect.js.map +1 -1
  113. package/dist/components/user-action/MultiSelect.mjs +92 -69
  114. package/dist/components/user-action/MultiSelect.mjs.map +1 -1
  115. package/dist/components/user-action/SearchBar.js +40 -43
  116. package/dist/components/user-action/SearchBar.js.map +1 -1
  117. package/dist/components/user-action/SearchBar.mjs +40 -43
  118. package/dist/components/user-action/SearchBar.mjs.map +1 -1
  119. package/dist/components/user-action/Select.js +43 -49
  120. package/dist/components/user-action/Select.js.map +1 -1
  121. package/dist/components/user-action/Select.mjs +43 -49
  122. package/dist/components/user-action/Select.mjs.map +1 -1
  123. package/dist/components/user-action/Textarea.js +3 -3
  124. package/dist/components/user-action/Textarea.js.map +1 -1
  125. package/dist/components/user-action/Textarea.mjs +3 -3
  126. package/dist/components/user-action/Textarea.mjs.map +1 -1
  127. package/dist/css/globals.css +269 -136
  128. package/dist/index.js +139 -124
  129. package/dist/index.js.map +1 -1
  130. package/dist/index.mjs +139 -124
  131. package/dist/index.mjs.map +1 -1
  132. package/dist/theming/useTheme.js +1 -1
  133. package/dist/theming/useTheme.js.map +1 -1
  134. package/dist/theming/useTheme.mjs +1 -1
  135. package/dist/theming/useTheme.mjs.map +1 -1
  136. 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
- "text-disabled-text bg-disabled-background cursor-not-allowed": disabled,
557
- [clsx3(colorClasses, "hover:brightness-90")]: !disabled
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
- [iconColorClasses]: !disabled,
569
- [`text-disabled-icon`]: disabled
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
- [iconColorClasses]: !disabled,
580
- [`text-disabled-icon`]: disabled
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
- "text-disabled-text bg-disabled-background cursor-not-allowed": disabled && color !== "transparent",
614
- "text-disabled-text cursor-not-allowed opacity-70": disabled && color === "transparent",
615
- "hover:bg-button-text-hover-background": !disabled && color === "transparent",
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("div", { className: clsx5("group flex-row-2 items-center cursor-pointer", containerClassName), onClick: changeValue, children: [
783
- /* @__PURE__ */ jsx6(
784
- CheckboxPrimitive.Root,
785
- {
786
- onCheckedChange: propagateChange,
787
- checked,
788
- disabled,
789
- id,
790
- className: clsx5(usedSizeClass, `items-center border-2 rounded outline-none `, {
791
- "text-disabled-text border-disabled-outline bg-disabled-background cursor-not-allowed": disabled,
792
- "focus:border-primary group-hover:border-primary ": !disabled,
793
- "bg-input-background": !disabled && !checked,
794
- "bg-primary/30 border-primary text-primary": !disabled && checked === true || checked === "indeterminate"
795
- }, className),
796
- children: /* @__PURE__ */ jsxs4(CheckboxPrimitive.Indicator, { children: [
797
- checked === true && /* @__PURE__ */ jsx6(Check, { className: innerIconSize }),
798
- checked === "indeterminate" && /* @__PURE__ */ jsx6(Minus, { className: innerIconSize })
799
- ] })
800
- }
801
- ),
802
- label && /* @__PURE__ */ jsx6(Label, { ...label, className: clsx5(label.className), htmlFor: id })
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