@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
@@ -139,7 +139,6 @@ var ButtonUtil = {
139
139
  };
140
140
  var SolidButton = forwardRef(function SolidButton2({
141
141
  children,
142
- disabled = false,
143
142
  color = "primary",
144
143
  size = "medium",
145
144
  startIcon,
@@ -149,35 +148,33 @@ var SolidButton = forwardRef(function SolidButton2({
149
148
  ...restProps
150
149
  }, ref) {
151
150
  const colorClasses = {
152
- primary: "bg-button-solid-primary-background text-button-solid-primary-text",
153
- secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
154
- tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
155
- positive: "bg-button-solid-positive-background text-button-solid-positive-text",
156
- warning: "bg-button-solid-warning-background text-button-solid-warning-text",
157
- negative: "bg-button-solid-negative-background text-button-solid-negative-text",
158
- neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
151
+ primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
152
+ secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
153
+ tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
154
+ positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
155
+ warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
156
+ negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
157
+ neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
159
158
  }[color];
160
159
  const iconColorClasses = {
161
- primary: "text-button-solid-primary-icon",
162
- secondary: "text-button-solid-secondary-icon",
163
- tertiary: "text-button-solid-tertiary-icon",
164
- positive: "text-button-solid-positive-icon",
165
- warning: "text-button-solid-warning-icon",
166
- negative: "text-button-solid-negative-icon",
167
- neutral: "text-button-solid-neutral-icon"
160
+ primary: "not-group-disabled:text-button-solid-primary-icon",
161
+ secondary: "not-group-disabled:text-button-solid-secondary-icon",
162
+ tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
163
+ positive: "not-group-disabled:text-button-solid-positive-icon",
164
+ warning: "not-group-disabled:text-button-solid-warning-icon",
165
+ negative: "not-group-disabled:text-button-solid-negative-icon",
166
+ neutral: "not-group-disabled:text-button-solid-neutral-icon"
168
167
  }[color];
169
168
  return /* @__PURE__ */ jsxs(
170
169
  "button",
171
170
  {
172
171
  ref,
173
172
  onClick,
174
- disabled,
175
173
  className: clsx2(
176
- "font-semibold",
177
- {
178
- "text-disabled-text bg-disabled-background cursor-not-allowed": disabled,
179
- [clsx2(colorClasses, "hover:brightness-90")]: !disabled
180
- },
174
+ "group font-semibold",
175
+ colorClasses,
176
+ "not-disabled:hover:brightness-90",
177
+ "disabled:text-disabled-text disabled:bg-disabled-background",
181
178
  ButtonUtil.paddingMapping[size],
182
179
  className
183
180
  ),
@@ -186,10 +183,10 @@ var SolidButton = forwardRef(function SolidButton2({
186
183
  startIcon && /* @__PURE__ */ jsx3(
187
184
  "span",
188
185
  {
189
- className: clsx2({
190
- [iconColorClasses]: !disabled,
191
- [`text-disabled-icon`]: disabled
192
- }),
186
+ className: clsx2(
187
+ iconColorClasses,
188
+ "group-disabled:text-disabled-icon"
189
+ ),
193
190
  children: startIcon
194
191
  }
195
192
  ),
@@ -197,10 +194,10 @@ var SolidButton = forwardRef(function SolidButton2({
197
194
  endIcon && /* @__PURE__ */ jsx3(
198
195
  "span",
199
196
  {
200
- className: clsx2({
201
- [iconColorClasses]: !disabled,
202
- [`text-disabled-icon`]: disabled
203
- }),
197
+ className: clsx2(
198
+ iconColorClasses,
199
+ "group-disabled:text-disabled-icon"
200
+ ),
204
201
  children: endIcon
205
202
  }
206
203
  )
@@ -210,32 +207,32 @@ var SolidButton = forwardRef(function SolidButton2({
210
207
  });
211
208
  var IconButton = ({
212
209
  children,
213
- disabled = false,
214
210
  color = "primary",
215
211
  size = "medium",
216
212
  className,
217
213
  ...restProps
218
214
  }) => {
219
215
  const colorClasses = {
220
- primary: "bg-button-solid-primary-background text-button-solid-primary-text",
221
- secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
222
- tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
223
- positive: "bg-button-solid-positive-background text-button-solid-positive-text",
224
- warning: "bg-button-solid-warning-background text-button-solid-warning-text",
225
- negative: "bg-button-solid-negative-background text-button-solid-negative-text",
226
- neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text",
227
- transparent: "bg-transparent"
216
+ primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
217
+ secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
218
+ tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
219
+ positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
220
+ warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
221
+ negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
222
+ neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
223
+ transparent: "not-disabled:bg-transparent"
228
224
  }[color];
229
225
  return /* @__PURE__ */ jsx3(
230
226
  "button",
231
227
  {
232
- disabled,
233
228
  className: clsx2(
229
+ colorClasses,
230
+ "not-disabled:hover:brightness-90",
231
+ "disabled:text-disabled-text",
234
232
  {
235
- "text-disabled-text bg-disabled-background cursor-not-allowed": disabled && color !== "transparent",
236
- "text-disabled-text cursor-not-allowed opacity-70": disabled && color === "transparent",
237
- "hover:bg-button-text-hover-background": !disabled && color === "transparent",
238
- [clsx2(colorClasses, "hover:brightness-90")]: !disabled
233
+ "disabled:bg-disabled-background": color !== "transparent",
234
+ "disabled:opacity-70": color === "transparent",
235
+ "not-disabled:hover:bg-button-text-hover-background": color === "transparent"
239
236
  },
240
237
  ButtonUtil.iconPaddingMapping[size],
241
238
  className
@@ -1133,31 +1130,57 @@ var Checkbox = ({
1133
1130
  }
1134
1131
  };
1135
1132
  const changeValue = () => {
1133
+ if (disabled) {
1134
+ return;
1135
+ }
1136
1136
  const newValue = checked === "indeterminate" ? false : !checked;
1137
1137
  propagateChange(newValue);
1138
1138
  };
1139
- return /* @__PURE__ */ jsxs7("div", { className: clsx8("group flex-row-2 items-center cursor-pointer", containerClassName), onClick: changeValue, children: [
1140
- /* @__PURE__ */ jsx9(
1141
- CheckboxPrimitive.Root,
1142
- {
1143
- onCheckedChange: propagateChange,
1144
- checked,
1145
- disabled,
1146
- id,
1147
- className: clsx8(usedSizeClass, `items-center border-2 rounded outline-none `, {
1148
- "text-disabled-text border-disabled-outline bg-disabled-background cursor-not-allowed": disabled,
1149
- "focus:border-primary group-hover:border-primary ": !disabled,
1150
- "bg-input-background": !disabled && !checked,
1151
- "bg-primary/30 border-primary text-primary": !disabled && checked === true || checked === "indeterminate"
1152
- }, className),
1153
- children: /* @__PURE__ */ jsxs7(CheckboxPrimitive.Indicator, { children: [
1154
- checked === true && /* @__PURE__ */ jsx9(Check, { className: innerIconSize }),
1155
- checked === "indeterminate" && /* @__PURE__ */ jsx9(Minus, { className: innerIconSize })
1156
- ] })
1157
- }
1158
- ),
1159
- label && /* @__PURE__ */ jsx9(Label, { ...label, className: clsx8(label.className), htmlFor: id })
1160
- ] });
1139
+ return /* @__PURE__ */ jsxs7(
1140
+ "div",
1141
+ {
1142
+ className: clsx8("group flex-row-2 items-center", {
1143
+ "cursor-pointer": !disabled,
1144
+ "cursor-not-allowed": disabled
1145
+ }, containerClassName),
1146
+ onClick: changeValue,
1147
+ children: [
1148
+ /* @__PURE__ */ jsx9(
1149
+ CheckboxPrimitive.Root,
1150
+ {
1151
+ onCheckedChange: propagateChange,
1152
+ checked,
1153
+ disabled,
1154
+ id,
1155
+ className: clsx8(usedSizeClass, `items-center border-2 rounded outline-none `, {
1156
+ "text-disabled-text border-disabled-outline bg-disabled-background cursor-not-allowed": disabled,
1157
+ "focus:border-primary group-hover:border-primary ": !disabled,
1158
+ "bg-input-background": !disabled && !checked,
1159
+ "bg-primary/30 border-primary text-primary": !disabled && checked === true || checked === "indeterminate"
1160
+ }, className),
1161
+ children: /* @__PURE__ */ jsxs7(CheckboxPrimitive.Indicator, { children: [
1162
+ checked === true && /* @__PURE__ */ jsx9(Check, { className: innerIconSize }),
1163
+ checked === "indeterminate" && /* @__PURE__ */ jsx9(Minus, { className: innerIconSize })
1164
+ ] })
1165
+ }
1166
+ ),
1167
+ label && /* @__PURE__ */ jsx9(
1168
+ Label,
1169
+ {
1170
+ ...label,
1171
+ className: clsx8(
1172
+ label.className,
1173
+ {
1174
+ "cursor-pointer": !disabled,
1175
+ "cursor-not-allowed": disabled
1176
+ }
1177
+ ),
1178
+ htmlFor: id
1179
+ }
1180
+ )
1181
+ ]
1182
+ }
1183
+ );
1161
1184
  };
1162
1185
 
1163
1186
  // src/components/user-action/MultiSelect.tsx
@@ -1260,7 +1283,7 @@ var MultiSelect = ({
1260
1283
  ...label,
1261
1284
  htmlFor: label.name,
1262
1285
  className: clsx10(" mb-1", label.className),
1263
- labelType: label.labelType ?? "labelBig"
1286
+ labelType: label.labelType ?? "labelSmall"
1264
1287
  }
1265
1288
  ),
1266
1289
  /* @__PURE__ */ jsx11(
@@ -1273,10 +1296,10 @@ var MultiSelect = ({
1273
1296
  ref,
1274
1297
  className: clsx10(
1275
1298
  "group btn-md justify-between w-full border-2 h-auto",
1299
+ "not-disabled:bg-input-background not-disabled:text-input-text not-disabled:hover:border-primary",
1300
+ "disabled:bg-disabled-background disabled:text-disabled-text disabled:border-disabled-border",
1276
1301
  {
1277
- "min-h-14": useChipDisplay,
1278
- "bg-input-background text-input-text hover:border-primary": !disabled,
1279
- "bg-disabled-background text-disabled-text border-disabled-background cursor-not-allowed": disabled
1302
+ "min-h-14": useChipDisplay
1280
1303
  },
1281
1304
  triggerClassName
1282
1305
  ),