@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
|
@@ -300,7 +300,6 @@ var ButtonUtil = {
|
|
|
300
300
|
};
|
|
301
301
|
var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
302
302
|
children,
|
|
303
|
-
disabled = false,
|
|
304
303
|
color = "primary",
|
|
305
304
|
size = "medium",
|
|
306
305
|
startIcon,
|
|
@@ -310,35 +309,33 @@ var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
|
310
309
|
...restProps
|
|
311
310
|
}, ref) {
|
|
312
311
|
const colorClasses = {
|
|
313
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
314
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
315
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
316
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
317
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
318
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
319
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
312
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
313
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
314
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
315
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
316
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
317
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
318
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
|
|
320
319
|
}[color];
|
|
321
320
|
const iconColorClasses = {
|
|
322
|
-
primary: "text-button-solid-primary-icon",
|
|
323
|
-
secondary: "text-button-solid-secondary-icon",
|
|
324
|
-
tertiary: "text-button-solid-tertiary-icon",
|
|
325
|
-
positive: "text-button-solid-positive-icon",
|
|
326
|
-
warning: "text-button-solid-warning-icon",
|
|
327
|
-
negative: "text-button-solid-negative-icon",
|
|
328
|
-
neutral: "text-button-solid-neutral-icon"
|
|
321
|
+
primary: "not-group-disabled:text-button-solid-primary-icon",
|
|
322
|
+
secondary: "not-group-disabled:text-button-solid-secondary-icon",
|
|
323
|
+
tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
|
|
324
|
+
positive: "not-group-disabled:text-button-solid-positive-icon",
|
|
325
|
+
warning: "not-group-disabled:text-button-solid-warning-icon",
|
|
326
|
+
negative: "not-group-disabled:text-button-solid-negative-icon",
|
|
327
|
+
neutral: "not-group-disabled:text-button-solid-neutral-icon"
|
|
329
328
|
}[color];
|
|
330
329
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
331
330
|
"button",
|
|
332
331
|
{
|
|
333
332
|
ref,
|
|
334
333
|
onClick,
|
|
335
|
-
disabled,
|
|
336
334
|
className: (0, import_clsx.default)(
|
|
337
|
-
"font-semibold",
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
},
|
|
335
|
+
"group font-semibold",
|
|
336
|
+
colorClasses,
|
|
337
|
+
"not-disabled:hover:brightness-90",
|
|
338
|
+
"disabled:text-disabled-text disabled:bg-disabled-background",
|
|
342
339
|
ButtonUtil.paddingMapping[size],
|
|
343
340
|
className
|
|
344
341
|
),
|
|
@@ -347,10 +344,10 @@ var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
|
347
344
|
startIcon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
348
345
|
"span",
|
|
349
346
|
{
|
|
350
|
-
className: (0, import_clsx.default)(
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
347
|
+
className: (0, import_clsx.default)(
|
|
348
|
+
iconColorClasses,
|
|
349
|
+
"group-disabled:text-disabled-icon"
|
|
350
|
+
),
|
|
354
351
|
children: startIcon
|
|
355
352
|
}
|
|
356
353
|
),
|
|
@@ -358,10 +355,10 @@ var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
|
358
355
|
endIcon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
359
356
|
"span",
|
|
360
357
|
{
|
|
361
|
-
className: (0, import_clsx.default)(
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
358
|
+
className: (0, import_clsx.default)(
|
|
359
|
+
iconColorClasses,
|
|
360
|
+
"group-disabled:text-disabled-icon"
|
|
361
|
+
),
|
|
365
362
|
children: endIcon
|
|
366
363
|
}
|
|
367
364
|
)
|
|
@@ -371,7 +368,6 @@ var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
|
371
368
|
});
|
|
372
369
|
var TextButton = ({
|
|
373
370
|
children,
|
|
374
|
-
disabled = false,
|
|
375
371
|
color = "neutral",
|
|
376
372
|
size = "medium",
|
|
377
373
|
startIcon,
|
|
@@ -382,32 +378,31 @@ var TextButton = ({
|
|
|
382
378
|
...restProps
|
|
383
379
|
}) => {
|
|
384
380
|
const colorClasses = {
|
|
385
|
-
primary: "bg-transparent text-button-text-primary-text",
|
|
386
|
-
negative: "bg-transparent text-button-text-negative-text",
|
|
387
|
-
neutral: "bg-transparent text-button-text-neutral-text"
|
|
381
|
+
primary: "not-disabled:bg-transparent not-disabled:text-button-text-primary-text",
|
|
382
|
+
negative: "not-disabled:bg-transparent not-disabled:text-button-text-negative-text",
|
|
383
|
+
neutral: "not-disabled:bg-transparent not-disabled:text-button-text-neutral-text"
|
|
388
384
|
}[color];
|
|
389
385
|
const backgroundColor = {
|
|
390
|
-
primary: "hover:bg-button-text-primary-text/20",
|
|
391
|
-
negative: "hover:bg-button-text-negative-text/20",
|
|
392
|
-
neutral: "hover:bg-button-text-neutral-text/20"
|
|
386
|
+
primary: "not-disabled:hover:bg-button-text-primary-text/20",
|
|
387
|
+
negative: "not-disabled:hover:bg-button-text-negative-text/20",
|
|
388
|
+
neutral: "not-disabled:hover:bg-button-text-neutral-text/20"
|
|
393
389
|
}[color];
|
|
394
390
|
const iconColorClasses = {
|
|
395
|
-
primary: "text-button-text-primary-icon",
|
|
396
|
-
negative: "text-button-text-negative-icon",
|
|
397
|
-
neutral: "text-button-text-neutral-icon"
|
|
391
|
+
primary: "not-group-disabled:text-button-text-primary-icon",
|
|
392
|
+
negative: "not-group-disabled:text-button-text-negative-icon",
|
|
393
|
+
neutral: "not-group-disabled:text-button-text-neutral-icon"
|
|
398
394
|
}[color];
|
|
399
395
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
400
396
|
"button",
|
|
401
397
|
{
|
|
402
398
|
onClick,
|
|
403
|
-
disabled,
|
|
404
399
|
className: (0, import_clsx.default)(
|
|
405
|
-
"font-semibold",
|
|
400
|
+
"group font-semibold",
|
|
401
|
+
"disabled:text-disabled-text",
|
|
402
|
+
colorClasses,
|
|
406
403
|
{
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
[backgroundColor]: !disabled && coloredHoverBackground,
|
|
410
|
-
"hover:bg-button-text-hover-background": !disabled && !coloredHoverBackground
|
|
404
|
+
[backgroundColor]: coloredHoverBackground,
|
|
405
|
+
"not-disabled:hover:bg-button-text-hover-background": !coloredHoverBackground
|
|
411
406
|
},
|
|
412
407
|
ButtonUtil.paddingMapping[size],
|
|
413
408
|
className
|
|
@@ -417,10 +412,10 @@ var TextButton = ({
|
|
|
417
412
|
startIcon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
418
413
|
"span",
|
|
419
414
|
{
|
|
420
|
-
className: (0, import_clsx.default)(
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
415
|
+
className: (0, import_clsx.default)(
|
|
416
|
+
iconColorClasses,
|
|
417
|
+
"group-disabled:text-disabled-icon"
|
|
418
|
+
),
|
|
424
419
|
children: startIcon
|
|
425
420
|
}
|
|
426
421
|
),
|
|
@@ -428,10 +423,10 @@ var TextButton = ({
|
|
|
428
423
|
endIcon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
429
424
|
"span",
|
|
430
425
|
{
|
|
431
|
-
className: (0, import_clsx.default)(
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
426
|
+
className: (0, import_clsx.default)(
|
|
427
|
+
iconColorClasses,
|
|
428
|
+
"group-disabled:text-disabled-icon"
|
|
429
|
+
),
|
|
435
430
|
children: endIcon
|
|
436
431
|
}
|
|
437
432
|
)
|