@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
@@ -122,7 +122,6 @@ var ButtonUtil = {
122
122
  };
123
123
  var SolidButton = forwardRef(function SolidButton2({
124
124
  children,
125
- disabled = false,
126
125
  color = "primary",
127
126
  size = "medium",
128
127
  startIcon,
@@ -132,35 +131,33 @@ var SolidButton = forwardRef(function SolidButton2({
132
131
  ...restProps
133
132
  }, ref) {
134
133
  const colorClasses = {
135
- primary: "bg-button-solid-primary-background text-button-solid-primary-text",
136
- secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
137
- tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
138
- positive: "bg-button-solid-positive-background text-button-solid-positive-text",
139
- warning: "bg-button-solid-warning-background text-button-solid-warning-text",
140
- negative: "bg-button-solid-negative-background text-button-solid-negative-text",
141
- neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
134
+ primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
135
+ secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
136
+ tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
137
+ positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
138
+ warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
139
+ negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
140
+ neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
142
141
  }[color];
143
142
  const iconColorClasses = {
144
- primary: "text-button-solid-primary-icon",
145
- secondary: "text-button-solid-secondary-icon",
146
- tertiary: "text-button-solid-tertiary-icon",
147
- positive: "text-button-solid-positive-icon",
148
- warning: "text-button-solid-warning-icon",
149
- negative: "text-button-solid-negative-icon",
150
- neutral: "text-button-solid-neutral-icon"
143
+ primary: "not-group-disabled:text-button-solid-primary-icon",
144
+ secondary: "not-group-disabled:text-button-solid-secondary-icon",
145
+ tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
146
+ positive: "not-group-disabled:text-button-solid-positive-icon",
147
+ warning: "not-group-disabled:text-button-solid-warning-icon",
148
+ negative: "not-group-disabled:text-button-solid-negative-icon",
149
+ neutral: "not-group-disabled:text-button-solid-neutral-icon"
151
150
  }[color];
152
151
  return /* @__PURE__ */ jsxs(
153
152
  "button",
154
153
  {
155
154
  ref,
156
155
  onClick,
157
- disabled,
158
156
  className: clsx(
159
- "font-semibold",
160
- {
161
- "text-disabled-text bg-disabled-background cursor-not-allowed": disabled,
162
- [clsx(colorClasses, "hover:brightness-90")]: !disabled
163
- },
157
+ "group font-semibold",
158
+ colorClasses,
159
+ "not-disabled:hover:brightness-90",
160
+ "disabled:text-disabled-text disabled:bg-disabled-background",
164
161
  ButtonUtil.paddingMapping[size],
165
162
  className
166
163
  ),
@@ -169,10 +166,10 @@ var SolidButton = forwardRef(function SolidButton2({
169
166
  startIcon && /* @__PURE__ */ jsx2(
170
167
  "span",
171
168
  {
172
- className: clsx({
173
- [iconColorClasses]: !disabled,
174
- [`text-disabled-icon`]: disabled
175
- }),
169
+ className: clsx(
170
+ iconColorClasses,
171
+ "group-disabled:text-disabled-icon"
172
+ ),
176
173
  children: startIcon
177
174
  }
178
175
  ),
@@ -180,10 +177,10 @@ var SolidButton = forwardRef(function SolidButton2({
180
177
  endIcon && /* @__PURE__ */ jsx2(
181
178
  "span",
182
179
  {
183
- className: clsx({
184
- [iconColorClasses]: !disabled,
185
- [`text-disabled-icon`]: disabled
186
- }),
180
+ className: clsx(
181
+ iconColorClasses,
182
+ "group-disabled:text-disabled-icon"
183
+ ),
187
184
  children: endIcon
188
185
  }
189
186
  )
@@ -193,7 +190,6 @@ var SolidButton = forwardRef(function SolidButton2({
193
190
  });
194
191
  var TextButton = ({
195
192
  children,
196
- disabled = false,
197
193
  color = "neutral",
198
194
  size = "medium",
199
195
  startIcon,
@@ -204,32 +200,31 @@ var TextButton = ({
204
200
  ...restProps
205
201
  }) => {
206
202
  const colorClasses = {
207
- primary: "bg-transparent text-button-text-primary-text",
208
- negative: "bg-transparent text-button-text-negative-text",
209
- neutral: "bg-transparent text-button-text-neutral-text"
203
+ primary: "not-disabled:bg-transparent not-disabled:text-button-text-primary-text",
204
+ negative: "not-disabled:bg-transparent not-disabled:text-button-text-negative-text",
205
+ neutral: "not-disabled:bg-transparent not-disabled:text-button-text-neutral-text"
210
206
  }[color];
211
207
  const backgroundColor = {
212
- primary: "hover:bg-button-text-primary-text/20",
213
- negative: "hover:bg-button-text-negative-text/20",
214
- neutral: "hover:bg-button-text-neutral-text/20"
208
+ primary: "not-disabled:hover:bg-button-text-primary-text/20",
209
+ negative: "not-disabled:hover:bg-button-text-negative-text/20",
210
+ neutral: "not-disabled:hover:bg-button-text-neutral-text/20"
215
211
  }[color];
216
212
  const iconColorClasses = {
217
- primary: "text-button-text-primary-icon",
218
- negative: "text-button-text-negative-icon",
219
- neutral: "text-button-text-neutral-icon"
213
+ primary: "not-group-disabled:text-button-text-primary-icon",
214
+ negative: "not-group-disabled:text-button-text-negative-icon",
215
+ neutral: "not-group-disabled:text-button-text-neutral-icon"
220
216
  }[color];
221
217
  return /* @__PURE__ */ jsxs(
222
218
  "button",
223
219
  {
224
220
  onClick,
225
- disabled,
226
221
  className: clsx(
227
- "font-semibold",
222
+ "group font-semibold",
223
+ "disabled:text-disabled-text",
224
+ colorClasses,
228
225
  {
229
- "text-disabled-text cursor-not-allowed": disabled,
230
- [colorClasses]: !disabled,
231
- [backgroundColor]: !disabled && coloredHoverBackground,
232
- "hover:bg-button-text-hover-background": !disabled && !coloredHoverBackground
226
+ [backgroundColor]: coloredHoverBackground,
227
+ "not-disabled:hover:bg-button-text-hover-background": !coloredHoverBackground
233
228
  },
234
229
  ButtonUtil.paddingMapping[size],
235
230
  className
@@ -239,10 +234,10 @@ var TextButton = ({
239
234
  startIcon && /* @__PURE__ */ jsx2(
240
235
  "span",
241
236
  {
242
- className: clsx({
243
- [iconColorClasses]: !disabled,
244
- [`text-disabled-icon`]: disabled
245
- }),
237
+ className: clsx(
238
+ iconColorClasses,
239
+ "group-disabled:text-disabled-icon"
240
+ ),
246
241
  children: startIcon
247
242
  }
248
243
  ),
@@ -250,10 +245,10 @@ var TextButton = ({
250
245
  endIcon && /* @__PURE__ */ jsx2(
251
246
  "span",
252
247
  {
253
- className: clsx({
254
- [iconColorClasses]: !disabled,
255
- [`text-disabled-icon`]: disabled
256
- }),
248
+ className: clsx(
249
+ iconColorClasses,
250
+ "group-disabled:text-disabled-icon"
251
+ ),
257
252
  children: endIcon
258
253
  }
259
254
  )
@@ -263,32 +258,32 @@ var TextButton = ({
263
258
  };
264
259
  var IconButton = ({
265
260
  children,
266
- disabled = false,
267
261
  color = "primary",
268
262
  size = "medium",
269
263
  className,
270
264
  ...restProps
271
265
  }) => {
272
266
  const colorClasses = {
273
- primary: "bg-button-solid-primary-background text-button-solid-primary-text",
274
- secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
275
- tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
276
- positive: "bg-button-solid-positive-background text-button-solid-positive-text",
277
- warning: "bg-button-solid-warning-background text-button-solid-warning-text",
278
- negative: "bg-button-solid-negative-background text-button-solid-negative-text",
279
- neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text",
280
- transparent: "bg-transparent"
267
+ primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
268
+ secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
269
+ tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
270
+ positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
271
+ warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
272
+ negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
273
+ neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
274
+ transparent: "not-disabled:bg-transparent"
281
275
  }[color];
282
276
  return /* @__PURE__ */ jsx2(
283
277
  "button",
284
278
  {
285
- disabled,
286
279
  className: clsx(
280
+ colorClasses,
281
+ "not-disabled:hover:brightness-90",
282
+ "disabled:text-disabled-text",
287
283
  {
288
- "text-disabled-text bg-disabled-background cursor-not-allowed": disabled && color !== "transparent",
289
- "text-disabled-text cursor-not-allowed opacity-70": disabled && color === "transparent",
290
- "hover:bg-button-text-hover-background": !disabled && color === "transparent",
291
- [clsx(colorClasses, "hover:brightness-90")]: !disabled
284
+ "disabled:bg-disabled-background": color !== "transparent",
285
+ "disabled:opacity-70": color === "transparent",
286
+ "not-disabled:hover:bg-button-text-hover-background": color === "transparent"
292
287
  },
293
288
  ButtonUtil.iconPaddingMapping[size],
294
289
  className
@@ -1253,7 +1248,7 @@ var Select = ({
1253
1248
  ...searchOptions
1254
1249
  });
1255
1250
  return /* @__PURE__ */ jsxs8("div", { className: clsx9(className), children: [
1256
- label && /* @__PURE__ */ jsx10(Label, { ...label, labelType: label.labelType ?? "labelBig", className: clsx9("mb-1", label.className) }),
1251
+ label && /* @__PURE__ */ jsx10(Label, { ...label, labelType: label.labelType ?? "labelSmall", className: clsx9("mb-1", label.className) }),
1257
1252
  /* @__PURE__ */ jsx10(
1258
1253
  Menu,
1259
1254
  {
@@ -1264,11 +1259,8 @@ var Select = ({
1264
1259
  ref,
1265
1260
  className: clsx9(
1266
1261
  "btn-md justify-between w-full border-2",
1267
- {
1268
- "rounded-b-lg": !open,
1269
- "bg-input-background text-input-text hover:border-primary": !disabled,
1270
- "bg-disabled-background text-disabled-text border-disabled-background cursor-not-allowed": disabled
1271
- },
1262
+ "not-disabled:bg-input-background not-disabled:text-input-text not-disabled:hover:border-primary",
1263
+ "disabled:bg-disabled-background disabled:text-disabled-text disabled:border-disabled-border",
1272
1264
  triggerClassName
1273
1265
  ),
1274
1266
  onClick: toggleOpen,