@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
|
@@ -174,7 +174,6 @@ var ButtonUtil = {
|
|
|
174
174
|
};
|
|
175
175
|
var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
176
176
|
children,
|
|
177
|
-
disabled = false,
|
|
178
177
|
color = "primary",
|
|
179
178
|
size = "medium",
|
|
180
179
|
startIcon,
|
|
@@ -184,35 +183,33 @@ var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
|
184
183
|
...restProps
|
|
185
184
|
}, ref) {
|
|
186
185
|
const colorClasses = {
|
|
187
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
188
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
189
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
190
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
191
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
192
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
193
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
186
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
187
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
188
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
189
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
190
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
191
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
192
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
|
|
194
193
|
}[color];
|
|
195
194
|
const iconColorClasses = {
|
|
196
|
-
primary: "text-button-solid-primary-icon",
|
|
197
|
-
secondary: "text-button-solid-secondary-icon",
|
|
198
|
-
tertiary: "text-button-solid-tertiary-icon",
|
|
199
|
-
positive: "text-button-solid-positive-icon",
|
|
200
|
-
warning: "text-button-solid-warning-icon",
|
|
201
|
-
negative: "text-button-solid-negative-icon",
|
|
202
|
-
neutral: "text-button-solid-neutral-icon"
|
|
195
|
+
primary: "not-group-disabled:text-button-solid-primary-icon",
|
|
196
|
+
secondary: "not-group-disabled:text-button-solid-secondary-icon",
|
|
197
|
+
tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
|
|
198
|
+
positive: "not-group-disabled:text-button-solid-positive-icon",
|
|
199
|
+
warning: "not-group-disabled:text-button-solid-warning-icon",
|
|
200
|
+
negative: "not-group-disabled:text-button-solid-negative-icon",
|
|
201
|
+
neutral: "not-group-disabled:text-button-solid-neutral-icon"
|
|
203
202
|
}[color];
|
|
204
203
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
205
204
|
"button",
|
|
206
205
|
{
|
|
207
206
|
ref,
|
|
208
207
|
onClick,
|
|
209
|
-
disabled,
|
|
210
208
|
className: (0, import_clsx2.default)(
|
|
211
|
-
"font-semibold",
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
},
|
|
209
|
+
"group font-semibold",
|
|
210
|
+
colorClasses,
|
|
211
|
+
"not-disabled:hover:brightness-90",
|
|
212
|
+
"disabled:text-disabled-text disabled:bg-disabled-background",
|
|
216
213
|
ButtonUtil.paddingMapping[size],
|
|
217
214
|
className
|
|
218
215
|
),
|
|
@@ -221,10 +218,10 @@ var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
|
221
218
|
startIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
222
219
|
"span",
|
|
223
220
|
{
|
|
224
|
-
className: (0, import_clsx2.default)(
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
221
|
+
className: (0, import_clsx2.default)(
|
|
222
|
+
iconColorClasses,
|
|
223
|
+
"group-disabled:text-disabled-icon"
|
|
224
|
+
),
|
|
228
225
|
children: startIcon
|
|
229
226
|
}
|
|
230
227
|
),
|
|
@@ -232,10 +229,10 @@ var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
|
232
229
|
endIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
233
230
|
"span",
|
|
234
231
|
{
|
|
235
|
-
className: (0, import_clsx2.default)(
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
232
|
+
className: (0, import_clsx2.default)(
|
|
233
|
+
iconColorClasses,
|
|
234
|
+
"group-disabled:text-disabled-icon"
|
|
235
|
+
),
|
|
239
236
|
children: endIcon
|
|
240
237
|
}
|
|
241
238
|
)
|
|
@@ -245,7 +242,6 @@ var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
|
245
242
|
});
|
|
246
243
|
var TextButton = ({
|
|
247
244
|
children,
|
|
248
|
-
disabled = false,
|
|
249
245
|
color = "neutral",
|
|
250
246
|
size = "medium",
|
|
251
247
|
startIcon,
|
|
@@ -256,32 +252,31 @@ var TextButton = ({
|
|
|
256
252
|
...restProps
|
|
257
253
|
}) => {
|
|
258
254
|
const colorClasses = {
|
|
259
|
-
primary: "bg-transparent text-button-text-primary-text",
|
|
260
|
-
negative: "bg-transparent text-button-text-negative-text",
|
|
261
|
-
neutral: "bg-transparent text-button-text-neutral-text"
|
|
255
|
+
primary: "not-disabled:bg-transparent not-disabled:text-button-text-primary-text",
|
|
256
|
+
negative: "not-disabled:bg-transparent not-disabled:text-button-text-negative-text",
|
|
257
|
+
neutral: "not-disabled:bg-transparent not-disabled:text-button-text-neutral-text"
|
|
262
258
|
}[color];
|
|
263
259
|
const backgroundColor = {
|
|
264
|
-
primary: "hover:bg-button-text-primary-text/20",
|
|
265
|
-
negative: "hover:bg-button-text-negative-text/20",
|
|
266
|
-
neutral: "hover:bg-button-text-neutral-text/20"
|
|
260
|
+
primary: "not-disabled:hover:bg-button-text-primary-text/20",
|
|
261
|
+
negative: "not-disabled:hover:bg-button-text-negative-text/20",
|
|
262
|
+
neutral: "not-disabled:hover:bg-button-text-neutral-text/20"
|
|
267
263
|
}[color];
|
|
268
264
|
const iconColorClasses = {
|
|
269
|
-
primary: "text-button-text-primary-icon",
|
|
270
|
-
negative: "text-button-text-negative-icon",
|
|
271
|
-
neutral: "text-button-text-neutral-icon"
|
|
265
|
+
primary: "not-group-disabled:text-button-text-primary-icon",
|
|
266
|
+
negative: "not-group-disabled:text-button-text-negative-icon",
|
|
267
|
+
neutral: "not-group-disabled:text-button-text-neutral-icon"
|
|
272
268
|
}[color];
|
|
273
269
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
274
270
|
"button",
|
|
275
271
|
{
|
|
276
272
|
onClick,
|
|
277
|
-
disabled,
|
|
278
273
|
className: (0, import_clsx2.default)(
|
|
279
|
-
"font-semibold",
|
|
274
|
+
"group font-semibold",
|
|
275
|
+
"disabled:text-disabled-text",
|
|
276
|
+
colorClasses,
|
|
280
277
|
{
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
[backgroundColor]: !disabled && coloredHoverBackground,
|
|
284
|
-
"hover:bg-button-text-hover-background": !disabled && !coloredHoverBackground
|
|
278
|
+
[backgroundColor]: coloredHoverBackground,
|
|
279
|
+
"not-disabled:hover:bg-button-text-hover-background": !coloredHoverBackground
|
|
285
280
|
},
|
|
286
281
|
ButtonUtil.paddingMapping[size],
|
|
287
282
|
className
|
|
@@ -291,10 +286,10 @@ var TextButton = ({
|
|
|
291
286
|
startIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
292
287
|
"span",
|
|
293
288
|
{
|
|
294
|
-
className: (0, import_clsx2.default)(
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
289
|
+
className: (0, import_clsx2.default)(
|
|
290
|
+
iconColorClasses,
|
|
291
|
+
"group-disabled:text-disabled-icon"
|
|
292
|
+
),
|
|
298
293
|
children: startIcon
|
|
299
294
|
}
|
|
300
295
|
),
|
|
@@ -302,10 +297,10 @@ var TextButton = ({
|
|
|
302
297
|
endIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
303
298
|
"span",
|
|
304
299
|
{
|
|
305
|
-
className: (0, import_clsx2.default)(
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
300
|
+
className: (0, import_clsx2.default)(
|
|
301
|
+
iconColorClasses,
|
|
302
|
+
"group-disabled:text-disabled-icon"
|
|
303
|
+
),
|
|
309
304
|
children: endIcon
|
|
310
305
|
}
|
|
311
306
|
)
|
|
@@ -315,32 +310,32 @@ var TextButton = ({
|
|
|
315
310
|
};
|
|
316
311
|
var IconButton = ({
|
|
317
312
|
children,
|
|
318
|
-
disabled = false,
|
|
319
313
|
color = "primary",
|
|
320
314
|
size = "medium",
|
|
321
315
|
className,
|
|
322
316
|
...restProps
|
|
323
317
|
}) => {
|
|
324
318
|
const colorClasses = {
|
|
325
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
326
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
327
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
328
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
329
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
330
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
331
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text",
|
|
332
|
-
transparent: "bg-transparent"
|
|
319
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
320
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
321
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
322
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
323
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
324
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
325
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
|
|
326
|
+
transparent: "not-disabled:bg-transparent"
|
|
333
327
|
}[color];
|
|
334
328
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
335
329
|
"button",
|
|
336
330
|
{
|
|
337
|
-
disabled,
|
|
338
331
|
className: (0, import_clsx2.default)(
|
|
332
|
+
colorClasses,
|
|
333
|
+
"not-disabled:hover:brightness-90",
|
|
334
|
+
"disabled:text-disabled-text",
|
|
339
335
|
{
|
|
340
|
-
"
|
|
341
|
-
"
|
|
342
|
-
"hover:bg-button-text-hover-background":
|
|
343
|
-
[(0, import_clsx2.default)(colorClasses, "hover:brightness-90")]: !disabled
|
|
336
|
+
"disabled:bg-disabled-background": color !== "transparent",
|
|
337
|
+
"disabled:opacity-70": color === "transparent",
|
|
338
|
+
"not-disabled:hover:bg-button-text-hover-background": color === "transparent"
|
|
344
339
|
},
|
|
345
340
|
ButtonUtil.iconPaddingMapping[size],
|
|
346
341
|
className
|
|
@@ -1238,31 +1233,57 @@ var Checkbox = ({
|
|
|
1238
1233
|
}
|
|
1239
1234
|
};
|
|
1240
1235
|
const changeValue = () => {
|
|
1236
|
+
if (disabled) {
|
|
1237
|
+
return;
|
|
1238
|
+
}
|
|
1241
1239
|
const newValue = checked === "indeterminate" ? false : !checked;
|
|
1242
1240
|
propagateChange(newValue);
|
|
1243
1241
|
};
|
|
1244
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
{
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1243
|
+
"div",
|
|
1244
|
+
{
|
|
1245
|
+
className: (0, import_clsx8.default)("group flex-row-2 items-center", {
|
|
1246
|
+
"cursor-pointer": !disabled,
|
|
1247
|
+
"cursor-not-allowed": disabled
|
|
1248
|
+
}, containerClassName),
|
|
1249
|
+
onClick: changeValue,
|
|
1250
|
+
children: [
|
|
1251
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1252
|
+
CheckboxPrimitive.Root,
|
|
1253
|
+
{
|
|
1254
|
+
onCheckedChange: propagateChange,
|
|
1255
|
+
checked,
|
|
1256
|
+
disabled,
|
|
1257
|
+
id,
|
|
1258
|
+
className: (0, import_clsx8.default)(usedSizeClass, `items-center border-2 rounded outline-none `, {
|
|
1259
|
+
"text-disabled-text border-disabled-outline bg-disabled-background cursor-not-allowed": disabled,
|
|
1260
|
+
"focus:border-primary group-hover:border-primary ": !disabled,
|
|
1261
|
+
"bg-input-background": !disabled && !checked,
|
|
1262
|
+
"bg-primary/30 border-primary text-primary": !disabled && checked === true || checked === "indeterminate"
|
|
1263
|
+
}, className),
|
|
1264
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(CheckboxPrimitive.Indicator, { children: [
|
|
1265
|
+
checked === true && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.Check, { className: innerIconSize }),
|
|
1266
|
+
checked === "indeterminate" && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.Minus, { className: innerIconSize })
|
|
1267
|
+
] })
|
|
1268
|
+
}
|
|
1269
|
+
),
|
|
1270
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1271
|
+
Label,
|
|
1272
|
+
{
|
|
1273
|
+
...label,
|
|
1274
|
+
className: (0, import_clsx8.default)(
|
|
1275
|
+
label.className,
|
|
1276
|
+
{
|
|
1277
|
+
"cursor-pointer": !disabled,
|
|
1278
|
+
"cursor-not-allowed": disabled
|
|
1279
|
+
}
|
|
1280
|
+
),
|
|
1281
|
+
htmlFor: id
|
|
1282
|
+
}
|
|
1283
|
+
)
|
|
1284
|
+
]
|
|
1285
|
+
}
|
|
1286
|
+
);
|
|
1266
1287
|
};
|
|
1267
1288
|
|
|
1268
1289
|
// src/components/user-action/MultiSelect.tsx
|
|
@@ -1365,7 +1386,7 @@ var MultiSelect = ({
|
|
|
1365
1386
|
...label,
|
|
1366
1387
|
htmlFor: label.name,
|
|
1367
1388
|
className: (0, import_clsx10.default)(" mb-1", label.className),
|
|
1368
|
-
labelType: label.labelType ?? "
|
|
1389
|
+
labelType: label.labelType ?? "labelSmall"
|
|
1369
1390
|
}
|
|
1370
1391
|
),
|
|
1371
1392
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
@@ -1378,10 +1399,10 @@ var MultiSelect = ({
|
|
|
1378
1399
|
ref,
|
|
1379
1400
|
className: (0, import_clsx10.default)(
|
|
1380
1401
|
"group btn-md justify-between w-full border-2 h-auto",
|
|
1402
|
+
"not-disabled:bg-input-background not-disabled:text-input-text not-disabled:hover:border-primary",
|
|
1403
|
+
"disabled:bg-disabled-background disabled:text-disabled-text disabled:border-disabled-border",
|
|
1381
1404
|
{
|
|
1382
|
-
"min-h-14": useChipDisplay
|
|
1383
|
-
"bg-input-background text-input-text hover:border-primary": !disabled,
|
|
1384
|
-
"bg-disabled-background text-disabled-text border-disabled-background cursor-not-allowed": disabled
|
|
1405
|
+
"min-h-14": useChipDisplay
|
|
1385
1406
|
},
|
|
1386
1407
|
triggerClassName
|
|
1387
1408
|
),
|