@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
package/dist/index.js
CHANGED
|
@@ -6039,9 +6039,6 @@ var useLocalStorage = (key, initValue) => {
|
|
|
6039
6039
|
storageService.set(key, newValue);
|
|
6040
6040
|
setStoredValue(newValue);
|
|
6041
6041
|
}, [storedValue, setStoredValue, key]);
|
|
6042
|
-
(0, import_react.useEffect)(() => {
|
|
6043
|
-
setStoredValue(get());
|
|
6044
|
-
}, []);
|
|
6045
6042
|
return [storedValue, setValue];
|
|
6046
6043
|
};
|
|
6047
6044
|
|
|
@@ -6438,7 +6435,6 @@ var ButtonUtil = {
|
|
|
6438
6435
|
};
|
|
6439
6436
|
var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
6440
6437
|
children,
|
|
6441
|
-
disabled = false,
|
|
6442
6438
|
color = "primary",
|
|
6443
6439
|
size = "medium",
|
|
6444
6440
|
startIcon,
|
|
@@ -6448,35 +6444,33 @@ var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
|
6448
6444
|
...restProps
|
|
6449
6445
|
}, ref) {
|
|
6450
6446
|
const colorClasses = {
|
|
6451
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
6452
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
6453
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
6454
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
6455
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
6456
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
6457
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
6447
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
6448
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
6449
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
6450
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
6451
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
6452
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
6453
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
|
|
6458
6454
|
}[color];
|
|
6459
6455
|
const iconColorClasses = {
|
|
6460
|
-
primary: "text-button-solid-primary-icon",
|
|
6461
|
-
secondary: "text-button-solid-secondary-icon",
|
|
6462
|
-
tertiary: "text-button-solid-tertiary-icon",
|
|
6463
|
-
positive: "text-button-solid-positive-icon",
|
|
6464
|
-
warning: "text-button-solid-warning-icon",
|
|
6465
|
-
negative: "text-button-solid-negative-icon",
|
|
6466
|
-
neutral: "text-button-solid-neutral-icon"
|
|
6456
|
+
primary: "not-group-disabled:text-button-solid-primary-icon",
|
|
6457
|
+
secondary: "not-group-disabled:text-button-solid-secondary-icon",
|
|
6458
|
+
tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
|
|
6459
|
+
positive: "not-group-disabled:text-button-solid-positive-icon",
|
|
6460
|
+
warning: "not-group-disabled:text-button-solid-warning-icon",
|
|
6461
|
+
negative: "not-group-disabled:text-button-solid-negative-icon",
|
|
6462
|
+
neutral: "not-group-disabled:text-button-solid-neutral-icon"
|
|
6467
6463
|
}[color];
|
|
6468
6464
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
6469
6465
|
"button",
|
|
6470
6466
|
{
|
|
6471
6467
|
ref,
|
|
6472
6468
|
onClick,
|
|
6473
|
-
disabled,
|
|
6474
6469
|
className: (0, import_clsx4.default)(
|
|
6475
|
-
"font-semibold",
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
},
|
|
6470
|
+
"group font-semibold",
|
|
6471
|
+
colorClasses,
|
|
6472
|
+
"not-disabled:hover:brightness-90",
|
|
6473
|
+
"disabled:text-disabled-text disabled:bg-disabled-background",
|
|
6480
6474
|
ButtonUtil.paddingMapping[size],
|
|
6481
6475
|
className
|
|
6482
6476
|
),
|
|
@@ -6485,10 +6479,10 @@ var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
|
6485
6479
|
startIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
6486
6480
|
"span",
|
|
6487
6481
|
{
|
|
6488
|
-
className: (0, import_clsx4.default)(
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6482
|
+
className: (0, import_clsx4.default)(
|
|
6483
|
+
iconColorClasses,
|
|
6484
|
+
"group-disabled:text-disabled-icon"
|
|
6485
|
+
),
|
|
6492
6486
|
children: startIcon
|
|
6493
6487
|
}
|
|
6494
6488
|
),
|
|
@@ -6496,10 +6490,10 @@ var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
|
6496
6490
|
endIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
6497
6491
|
"span",
|
|
6498
6492
|
{
|
|
6499
|
-
className: (0, import_clsx4.default)(
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6493
|
+
className: (0, import_clsx4.default)(
|
|
6494
|
+
iconColorClasses,
|
|
6495
|
+
"group-disabled:text-disabled-icon"
|
|
6496
|
+
),
|
|
6503
6497
|
children: endIcon
|
|
6504
6498
|
}
|
|
6505
6499
|
)
|
|
@@ -6509,7 +6503,6 @@ var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
|
6509
6503
|
});
|
|
6510
6504
|
var OutlineButton = ({
|
|
6511
6505
|
children,
|
|
6512
|
-
disabled = false,
|
|
6513
6506
|
color = "primary",
|
|
6514
6507
|
size = "medium",
|
|
6515
6508
|
startIcon,
|
|
@@ -6519,22 +6512,20 @@ var OutlineButton = ({
|
|
|
6519
6512
|
...restProps
|
|
6520
6513
|
}) => {
|
|
6521
6514
|
const colorClasses = {
|
|
6522
|
-
primary: "
|
|
6515
|
+
primary: "not-disabled:border-button-outline-primary-text not-disabled:text-button-outline-primary-text"
|
|
6523
6516
|
}[color];
|
|
6524
6517
|
const iconColorClasses = {
|
|
6525
|
-
primary: "text-button-outline-primary-icon"
|
|
6518
|
+
primary: "not-group-disabled:text-button-outline-primary-icon"
|
|
6526
6519
|
}[color];
|
|
6527
6520
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
6528
6521
|
"button",
|
|
6529
6522
|
{
|
|
6530
6523
|
onClick,
|
|
6531
|
-
disabled,
|
|
6532
6524
|
className: (0, import_clsx4.default)(
|
|
6533
|
-
"font-semibold",
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
},
|
|
6525
|
+
"group font-semibold bg-transparent border-2 ",
|
|
6526
|
+
"not-disabled:hover:brightness-80",
|
|
6527
|
+
colorClasses,
|
|
6528
|
+
"disabled:text-disabled-text disabled:border-disabled-outline",
|
|
6538
6529
|
ButtonUtil.paddingMapping[size],
|
|
6539
6530
|
className
|
|
6540
6531
|
),
|
|
@@ -6543,10 +6534,10 @@ var OutlineButton = ({
|
|
|
6543
6534
|
startIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
6544
6535
|
"span",
|
|
6545
6536
|
{
|
|
6546
|
-
className: (0, import_clsx4.default)(
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6537
|
+
className: (0, import_clsx4.default)(
|
|
6538
|
+
iconColorClasses,
|
|
6539
|
+
"group-disabled:text-disabled-icon"
|
|
6540
|
+
),
|
|
6550
6541
|
children: startIcon
|
|
6551
6542
|
}
|
|
6552
6543
|
),
|
|
@@ -6554,10 +6545,10 @@ var OutlineButton = ({
|
|
|
6554
6545
|
endIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
6555
6546
|
"span",
|
|
6556
6547
|
{
|
|
6557
|
-
className: (0, import_clsx4.default)(
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6548
|
+
className: (0, import_clsx4.default)(
|
|
6549
|
+
iconColorClasses,
|
|
6550
|
+
"group-disabled:text-disabled-icon"
|
|
6551
|
+
),
|
|
6561
6552
|
children: endIcon
|
|
6562
6553
|
}
|
|
6563
6554
|
)
|
|
@@ -6567,7 +6558,6 @@ var OutlineButton = ({
|
|
|
6567
6558
|
};
|
|
6568
6559
|
var TextButton = ({
|
|
6569
6560
|
children,
|
|
6570
|
-
disabled = false,
|
|
6571
6561
|
color = "neutral",
|
|
6572
6562
|
size = "medium",
|
|
6573
6563
|
startIcon,
|
|
@@ -6578,32 +6568,31 @@ var TextButton = ({
|
|
|
6578
6568
|
...restProps
|
|
6579
6569
|
}) => {
|
|
6580
6570
|
const colorClasses = {
|
|
6581
|
-
primary: "bg-transparent text-button-text-primary-text",
|
|
6582
|
-
negative: "bg-transparent text-button-text-negative-text",
|
|
6583
|
-
neutral: "bg-transparent text-button-text-neutral-text"
|
|
6571
|
+
primary: "not-disabled:bg-transparent not-disabled:text-button-text-primary-text",
|
|
6572
|
+
negative: "not-disabled:bg-transparent not-disabled:text-button-text-negative-text",
|
|
6573
|
+
neutral: "not-disabled:bg-transparent not-disabled:text-button-text-neutral-text"
|
|
6584
6574
|
}[color];
|
|
6585
6575
|
const backgroundColor = {
|
|
6586
|
-
primary: "hover:bg-button-text-primary-text/20",
|
|
6587
|
-
negative: "hover:bg-button-text-negative-text/20",
|
|
6588
|
-
neutral: "hover:bg-button-text-neutral-text/20"
|
|
6576
|
+
primary: "not-disabled:hover:bg-button-text-primary-text/20",
|
|
6577
|
+
negative: "not-disabled:hover:bg-button-text-negative-text/20",
|
|
6578
|
+
neutral: "not-disabled:hover:bg-button-text-neutral-text/20"
|
|
6589
6579
|
}[color];
|
|
6590
6580
|
const iconColorClasses = {
|
|
6591
|
-
primary: "text-button-text-primary-icon",
|
|
6592
|
-
negative: "text-button-text-negative-icon",
|
|
6593
|
-
neutral: "text-button-text-neutral-icon"
|
|
6581
|
+
primary: "not-group-disabled:text-button-text-primary-icon",
|
|
6582
|
+
negative: "not-group-disabled:text-button-text-negative-icon",
|
|
6583
|
+
neutral: "not-group-disabled:text-button-text-neutral-icon"
|
|
6594
6584
|
}[color];
|
|
6595
6585
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
6596
6586
|
"button",
|
|
6597
6587
|
{
|
|
6598
6588
|
onClick,
|
|
6599
|
-
disabled,
|
|
6600
6589
|
className: (0, import_clsx4.default)(
|
|
6601
|
-
"font-semibold",
|
|
6590
|
+
"group font-semibold",
|
|
6591
|
+
"disabled:text-disabled-text",
|
|
6592
|
+
colorClasses,
|
|
6602
6593
|
{
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
[backgroundColor]: !disabled && coloredHoverBackground,
|
|
6606
|
-
"hover:bg-button-text-hover-background": !disabled && !coloredHoverBackground
|
|
6594
|
+
[backgroundColor]: coloredHoverBackground,
|
|
6595
|
+
"not-disabled:hover:bg-button-text-hover-background": !coloredHoverBackground
|
|
6607
6596
|
},
|
|
6608
6597
|
ButtonUtil.paddingMapping[size],
|
|
6609
6598
|
className
|
|
@@ -6613,10 +6602,10 @@ var TextButton = ({
|
|
|
6613
6602
|
startIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
6614
6603
|
"span",
|
|
6615
6604
|
{
|
|
6616
|
-
className: (0, import_clsx4.default)(
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6605
|
+
className: (0, import_clsx4.default)(
|
|
6606
|
+
iconColorClasses,
|
|
6607
|
+
"group-disabled:text-disabled-icon"
|
|
6608
|
+
),
|
|
6620
6609
|
children: startIcon
|
|
6621
6610
|
}
|
|
6622
6611
|
),
|
|
@@ -6624,10 +6613,10 @@ var TextButton = ({
|
|
|
6624
6613
|
endIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
6625
6614
|
"span",
|
|
6626
6615
|
{
|
|
6627
|
-
className: (0, import_clsx4.default)(
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6616
|
+
className: (0, import_clsx4.default)(
|
|
6617
|
+
iconColorClasses,
|
|
6618
|
+
"group-disabled:text-disabled-icon"
|
|
6619
|
+
),
|
|
6631
6620
|
children: endIcon
|
|
6632
6621
|
}
|
|
6633
6622
|
)
|
|
@@ -6637,32 +6626,32 @@ var TextButton = ({
|
|
|
6637
6626
|
};
|
|
6638
6627
|
var IconButton = ({
|
|
6639
6628
|
children,
|
|
6640
|
-
disabled = false,
|
|
6641
6629
|
color = "primary",
|
|
6642
6630
|
size = "medium",
|
|
6643
6631
|
className,
|
|
6644
6632
|
...restProps
|
|
6645
6633
|
}) => {
|
|
6646
6634
|
const colorClasses = {
|
|
6647
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
6648
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
6649
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
6650
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
6651
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
6652
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
6653
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text",
|
|
6654
|
-
transparent: "bg-transparent"
|
|
6635
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
6636
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
6637
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
6638
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
6639
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
6640
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
6641
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
|
|
6642
|
+
transparent: "not-disabled:bg-transparent"
|
|
6655
6643
|
}[color];
|
|
6656
6644
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
6657
6645
|
"button",
|
|
6658
6646
|
{
|
|
6659
|
-
disabled,
|
|
6660
6647
|
className: (0, import_clsx4.default)(
|
|
6648
|
+
colorClasses,
|
|
6649
|
+
"not-disabled:hover:brightness-90",
|
|
6650
|
+
"disabled:text-disabled-text",
|
|
6661
6651
|
{
|
|
6662
|
-
"
|
|
6663
|
-
"
|
|
6664
|
-
"hover:bg-button-text-hover-background":
|
|
6665
|
-
[(0, import_clsx4.default)(colorClasses, "hover:brightness-90")]: !disabled
|
|
6652
|
+
"disabled:bg-disabled-background": color !== "transparent",
|
|
6653
|
+
"disabled:opacity-70": color === "transparent",
|
|
6654
|
+
"not-disabled:hover:bg-button-text-hover-background": color === "transparent"
|
|
6666
6655
|
},
|
|
6667
6656
|
ButtonUtil.iconPaddingMapping[size],
|
|
6668
6657
|
className
|
|
@@ -8873,7 +8862,7 @@ var inserterIdentifierMapping = [
|
|
|
8873
8862
|
{ id: "helpwave", name: "helpwave" },
|
|
8874
8863
|
{ id: "newline", name: "newline" }
|
|
8875
8864
|
];
|
|
8876
|
-
var parseMarkdown = (text, commandStart = "\\",
|
|
8865
|
+
var parseMarkdown = (text, commandStart = "\\", open = "{", close = "}") => {
|
|
8877
8866
|
let start = text.indexOf(commandStart);
|
|
8878
8867
|
const children = [];
|
|
8879
8868
|
while (text !== "") {
|
|
@@ -8894,7 +8883,7 @@ var parseMarkdown = (text, commandStart = "\\", open2 = "{", close = "}") => {
|
|
|
8894
8883
|
text = "";
|
|
8895
8884
|
continue;
|
|
8896
8885
|
}
|
|
8897
|
-
const simpleReplace = [commandStart,
|
|
8886
|
+
const simpleReplace = [commandStart, open, close];
|
|
8898
8887
|
if (simpleReplace.some((value) => text[1] === value)) {
|
|
8899
8888
|
children.push({
|
|
8900
8889
|
type: "text",
|
|
@@ -8915,7 +8904,7 @@ var parseMarkdown = (text, commandStart = "\\", open2 = "{", close = "}") => {
|
|
|
8915
8904
|
}
|
|
8916
8905
|
const modifier = modifierIdentifierMapping.find((value) => text.substring(1).startsWith(value.id));
|
|
8917
8906
|
if (modifier) {
|
|
8918
|
-
if (text[modifier.id.length + 1] !==
|
|
8907
|
+
if (text[modifier.id.length + 1] !== open) {
|
|
8919
8908
|
children.push({
|
|
8920
8909
|
type: "text",
|
|
8921
8910
|
text: text.substring(0, modifier.id.length + 1)
|
|
@@ -8929,7 +8918,7 @@ var parseMarkdown = (text, commandStart = "\\", open2 = "{", close = "}") => {
|
|
|
8929
8918
|
let counter = 1;
|
|
8930
8919
|
let escaping = false;
|
|
8931
8920
|
while (index < text.length) {
|
|
8932
|
-
if (text[index] ===
|
|
8921
|
+
if (text[index] === open && !escaping) {
|
|
8933
8922
|
counter++;
|
|
8934
8923
|
}
|
|
8935
8924
|
if (text[index] === close && !escaping) {
|
|
@@ -10239,7 +10228,7 @@ var Select = ({
|
|
|
10239
10228
|
...searchOptions
|
|
10240
10229
|
});
|
|
10241
10230
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: (0, import_clsx35.default)(className), children: [
|
|
10242
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Label, { ...label, labelType: label.labelType ?? "
|
|
10231
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Label, { ...label, labelType: label.labelType ?? "labelSmall", className: (0, import_clsx35.default)("mb-1", label.className) }),
|
|
10243
10232
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
10244
10233
|
Menu,
|
|
10245
10234
|
{
|
|
@@ -10250,11 +10239,8 @@ var Select = ({
|
|
|
10250
10239
|
ref,
|
|
10251
10240
|
className: (0, import_clsx35.default)(
|
|
10252
10241
|
"btn-md justify-between w-full border-2",
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
"bg-input-background text-input-text hover:border-primary": !disabled,
|
|
10256
|
-
"bg-disabled-background text-disabled-text border-disabled-background cursor-not-allowed": disabled
|
|
10257
|
-
},
|
|
10242
|
+
"not-disabled:bg-input-background not-disabled:text-input-text not-disabled:hover:border-primary",
|
|
10243
|
+
"disabled:bg-disabled-background disabled:text-disabled-text disabled:border-disabled-border",
|
|
10258
10244
|
triggerClassName
|
|
10259
10245
|
),
|
|
10260
10246
|
onClick: toggleOpen,
|
|
@@ -10412,11 +10398,11 @@ var ThemeContext = (0, import_react29.createContext)({
|
|
|
10412
10398
|
theme: "light",
|
|
10413
10399
|
setTheme: noop
|
|
10414
10400
|
});
|
|
10415
|
-
var ThemeProvider = ({ children, initialTheme
|
|
10416
|
-
const [storedTheme, setStoredTheme] = useLocalStorage("theme", initialTheme);
|
|
10401
|
+
var ThemeProvider = ({ children, initialTheme }) => {
|
|
10402
|
+
const [storedTheme, setStoredTheme] = useLocalStorage("theme", initialTheme ?? "system");
|
|
10417
10403
|
const [userTheme, setUserTheme] = (0, import_react29.useState)();
|
|
10418
10404
|
(0, import_react29.useEffect)(() => {
|
|
10419
|
-
if (storedTheme !== initialTheme) {
|
|
10405
|
+
if (!!initialTheme && storedTheme !== initialTheme) {
|
|
10420
10406
|
console.warn("ThemeProvider initial state changed: Prefer using useTheme's setTheme instead");
|
|
10421
10407
|
setStoredTheme(initialTheme);
|
|
10422
10408
|
}
|
|
@@ -10519,31 +10505,57 @@ var Checkbox = ({
|
|
|
10519
10505
|
}
|
|
10520
10506
|
};
|
|
10521
10507
|
const changeValue = () => {
|
|
10508
|
+
if (disabled) {
|
|
10509
|
+
return;
|
|
10510
|
+
}
|
|
10522
10511
|
const newValue = checked === "indeterminate" ? false : !checked;
|
|
10523
10512
|
propagateChange(newValue);
|
|
10524
10513
|
};
|
|
10525
|
-
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
{
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10514
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
10515
|
+
"div",
|
|
10516
|
+
{
|
|
10517
|
+
className: (0, import_clsx36.default)("group flex-row-2 items-center", {
|
|
10518
|
+
"cursor-pointer": !disabled,
|
|
10519
|
+
"cursor-not-allowed": disabled
|
|
10520
|
+
}, containerClassName),
|
|
10521
|
+
onClick: changeValue,
|
|
10522
|
+
children: [
|
|
10523
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
10524
|
+
CheckboxPrimitive.Root,
|
|
10525
|
+
{
|
|
10526
|
+
onCheckedChange: propagateChange,
|
|
10527
|
+
checked,
|
|
10528
|
+
disabled,
|
|
10529
|
+
id,
|
|
10530
|
+
className: (0, import_clsx36.default)(usedSizeClass, `items-center border-2 rounded outline-none `, {
|
|
10531
|
+
"text-disabled-text border-disabled-outline bg-disabled-background cursor-not-allowed": disabled,
|
|
10532
|
+
"focus:border-primary group-hover:border-primary ": !disabled,
|
|
10533
|
+
"bg-input-background": !disabled && !checked,
|
|
10534
|
+
"bg-primary/30 border-primary text-primary": !disabled && checked === true || checked === "indeterminate"
|
|
10535
|
+
}, className),
|
|
10536
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(CheckboxPrimitive.Indicator, { children: [
|
|
10537
|
+
checked === true && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react12.Check, { className: innerIconSize }),
|
|
10538
|
+
checked === "indeterminate" && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react12.Minus, { className: innerIconSize })
|
|
10539
|
+
] })
|
|
10540
|
+
}
|
|
10541
|
+
),
|
|
10542
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
10543
|
+
Label,
|
|
10544
|
+
{
|
|
10545
|
+
...label,
|
|
10546
|
+
className: (0, import_clsx36.default)(
|
|
10547
|
+
label.className,
|
|
10548
|
+
{
|
|
10549
|
+
"cursor-pointer": !disabled,
|
|
10550
|
+
"cursor-not-allowed": disabled
|
|
10551
|
+
}
|
|
10552
|
+
),
|
|
10553
|
+
htmlFor: id
|
|
10554
|
+
}
|
|
10555
|
+
)
|
|
10556
|
+
]
|
|
10557
|
+
}
|
|
10558
|
+
);
|
|
10547
10559
|
};
|
|
10548
10560
|
var CheckboxUncontrolled = ({
|
|
10549
10561
|
onChange,
|
|
@@ -10758,7 +10770,7 @@ var MultiSelect = ({
|
|
|
10758
10770
|
...label,
|
|
10759
10771
|
htmlFor: label.name,
|
|
10760
10772
|
className: (0, import_clsx39.default)(" mb-1", label.className),
|
|
10761
|
-
labelType: label.labelType ?? "
|
|
10773
|
+
labelType: label.labelType ?? "labelSmall"
|
|
10762
10774
|
}
|
|
10763
10775
|
),
|
|
10764
10776
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
@@ -10771,10 +10783,10 @@ var MultiSelect = ({
|
|
|
10771
10783
|
ref,
|
|
10772
10784
|
className: (0, import_clsx39.default)(
|
|
10773
10785
|
"group btn-md justify-between w-full border-2 h-auto",
|
|
10786
|
+
"not-disabled:bg-input-background not-disabled:text-input-text not-disabled:hover:border-primary",
|
|
10787
|
+
"disabled:bg-disabled-background disabled:text-disabled-text disabled:border-disabled-border",
|
|
10774
10788
|
{
|
|
10775
|
-
"min-h-14": useChipDisplay
|
|
10776
|
-
"bg-input-background text-input-text hover:border-primary": !disabled,
|
|
10777
|
-
"bg-disabled-background text-disabled-text border-disabled-background cursor-not-allowed": disabled
|
|
10789
|
+
"min-h-14": useChipDisplay
|
|
10778
10790
|
},
|
|
10779
10791
|
triggerClassName
|
|
10780
10792
|
),
|
|
@@ -11153,11 +11165,11 @@ var Textarea = ({
|
|
|
11153
11165
|
"div",
|
|
11154
11166
|
{
|
|
11155
11167
|
className: (0, import_clsx43.default)(
|
|
11156
|
-
"
|
|
11168
|
+
"relative",
|
|
11157
11169
|
{
|
|
11158
11170
|
"border-2 rounded-lg": defaultStyle,
|
|
11159
|
-
"hover:border-primary focus-within:border-primary": defaultStyle && !disabled,
|
|
11160
|
-
"border-disabled-border cursor-not-allowed": defaultStyle && disabled
|
|
11171
|
+
"bg-input-background text-input-text hover:border-primary focus-within:border-primary": defaultStyle && !disabled,
|
|
11172
|
+
"border-disabled-border bg-disabled-background cursor-not-allowed": defaultStyle && disabled
|
|
11161
11173
|
}
|
|
11162
11174
|
),
|
|
11163
11175
|
children: [
|