@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
|
@@ -3,10 +3,10 @@ import { List, Plus } from "lucide-react";
|
|
|
3
3
|
import clsx10 from "clsx";
|
|
4
4
|
|
|
5
5
|
// src/localization/LanguageProvider.tsx
|
|
6
|
-
import { createContext, useContext, useEffect
|
|
6
|
+
import { createContext, useContext, useEffect, useState as useState2 } from "react";
|
|
7
7
|
|
|
8
8
|
// src/hooks/useLocalStorage.ts
|
|
9
|
-
import { useCallback,
|
|
9
|
+
import { useCallback, useState } from "react";
|
|
10
10
|
|
|
11
11
|
// src/localization/util.ts
|
|
12
12
|
var languages = ["en", "de"];
|
|
@@ -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
|
-
|
|
162
|
-
|
|
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
|
-
|
|
174
|
-
|
|
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
|
-
|
|
185
|
-
|
|
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
|
-
|
|
230
|
-
|
|
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
|
-
|
|
244
|
-
|
|
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
|
-
|
|
255
|
-
|
|
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
|
-
"
|
|
289
|
-
"
|
|
290
|
-
"hover:bg-button-text-hover-background":
|
|
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
|
|
@@ -480,7 +475,7 @@ var PropertyBase = ({
|
|
|
480
475
|
|
|
481
476
|
// src/components/user-action/Select.tsx
|
|
482
477
|
import { useCallback as useCallback5 } from "react";
|
|
483
|
-
import { useEffect as
|
|
478
|
+
import { useEffect as useEffect10, useState as useState9 } from "react";
|
|
484
479
|
import clsx9 from "clsx";
|
|
485
480
|
|
|
486
481
|
// src/components/user-action/Label.tsx
|
|
@@ -559,7 +554,7 @@ var ListTile = ({
|
|
|
559
554
|
};
|
|
560
555
|
|
|
561
556
|
// src/components/layout-and-navigation/Expandable.tsx
|
|
562
|
-
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as
|
|
557
|
+
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as useEffect2, useState as useState3 } from "react";
|
|
563
558
|
import { ChevronDown } from "lucide-react";
|
|
564
559
|
import clsx5 from "clsx";
|
|
565
560
|
|
|
@@ -645,7 +640,7 @@ var ExpandableUncontrolled = forwardRef2(function ExpandableUncontrolled2({
|
|
|
645
640
|
...props
|
|
646
641
|
}, ref) {
|
|
647
642
|
const [usedIsExpanded, setUsedIsExpanded] = useState3(isExpanded);
|
|
648
|
-
|
|
643
|
+
useEffect2(() => {
|
|
649
644
|
setUsedIsExpanded(isExpanded);
|
|
650
645
|
}, [isExpanded]);
|
|
651
646
|
return /* @__PURE__ */ jsx6(
|
|
@@ -663,13 +658,13 @@ var ExpandableUncontrolled = forwardRef2(function ExpandableUncontrolled2({
|
|
|
663
658
|
});
|
|
664
659
|
|
|
665
660
|
// src/components/user-action/Menu.tsx
|
|
666
|
-
import { useEffect as
|
|
661
|
+
import { useEffect as useEffect5, useRef, useState as useState5 } from "react";
|
|
667
662
|
import clsx6 from "clsx";
|
|
668
663
|
|
|
669
664
|
// src/hooks/useOutsideClick.ts
|
|
670
|
-
import { useEffect as
|
|
665
|
+
import { useEffect as useEffect3 } from "react";
|
|
671
666
|
var useOutsideClick = (refs, handler) => {
|
|
672
|
-
|
|
667
|
+
useEffect3(() => {
|
|
673
668
|
const listener = (event) => {
|
|
674
669
|
if (event.target === null) return;
|
|
675
670
|
if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
|
|
@@ -687,7 +682,7 @@ var useOutsideClick = (refs, handler) => {
|
|
|
687
682
|
};
|
|
688
683
|
|
|
689
684
|
// src/hooks/useHoverState.ts
|
|
690
|
-
import { useEffect as
|
|
685
|
+
import { useEffect as useEffect4, useState as useState4 } from "react";
|
|
691
686
|
var defaultUseHoverStateProps = {
|
|
692
687
|
closingDelay: 200,
|
|
693
688
|
isDisabled: false
|
|
@@ -711,14 +706,14 @@ var useHoverState = (props = void 0) => {
|
|
|
711
706
|
setIsHovered(false);
|
|
712
707
|
}, closingDelay));
|
|
713
708
|
};
|
|
714
|
-
|
|
709
|
+
useEffect4(() => {
|
|
715
710
|
if (timer) {
|
|
716
711
|
return () => {
|
|
717
712
|
clearTimeout(timer);
|
|
718
713
|
};
|
|
719
714
|
}
|
|
720
715
|
});
|
|
721
|
-
|
|
716
|
+
useEffect4(() => {
|
|
722
717
|
if (timer) {
|
|
723
718
|
clearTimeout(timer);
|
|
724
719
|
}
|
|
@@ -831,7 +826,7 @@ var Menu = ({
|
|
|
831
826
|
triggerRef.current?.getBoundingClientRect(),
|
|
832
827
|
{ verticalAlignment: alignmentVertical, horizontalAlignment: alignmentHorizontal, disabled }
|
|
833
828
|
);
|
|
834
|
-
|
|
829
|
+
useEffect5(() => {
|
|
835
830
|
if (!isOpen) return;
|
|
836
831
|
const triggerEl = triggerRef.current;
|
|
837
832
|
if (!triggerEl) return;
|
|
@@ -848,7 +843,7 @@ var Menu = ({
|
|
|
848
843
|
window.removeEventListener("resize", close);
|
|
849
844
|
};
|
|
850
845
|
}, [isOpen, setIsOpen]);
|
|
851
|
-
|
|
846
|
+
useEffect5(() => {
|
|
852
847
|
if (isOpen) {
|
|
853
848
|
setIsHidden(false);
|
|
854
849
|
}
|
|
@@ -884,11 +879,11 @@ var Menu = ({
|
|
|
884
879
|
};
|
|
885
880
|
|
|
886
881
|
// src/components/user-action/Input.tsx
|
|
887
|
-
import { forwardRef as forwardRef3, useEffect as
|
|
882
|
+
import { forwardRef as forwardRef3, useEffect as useEffect8, useImperativeHandle, useRef as useRef2, useState as useState7 } from "react";
|
|
888
883
|
import clsx7 from "clsx";
|
|
889
884
|
|
|
890
885
|
// src/hooks/useDelay.ts
|
|
891
|
-
import { useEffect as
|
|
886
|
+
import { useEffect as useEffect6, useState as useState6 } from "react";
|
|
892
887
|
var defaultOptions = {
|
|
893
888
|
delay: 3e3,
|
|
894
889
|
disabled: false
|
|
@@ -913,12 +908,12 @@ function useDelay(options) {
|
|
|
913
908
|
setTimer(void 0);
|
|
914
909
|
}, delay));
|
|
915
910
|
};
|
|
916
|
-
|
|
911
|
+
useEffect6(() => {
|
|
917
912
|
return () => {
|
|
918
913
|
clearTimeout(timer);
|
|
919
914
|
};
|
|
920
915
|
}, [timer]);
|
|
921
|
-
|
|
916
|
+
useEffect6(() => {
|
|
922
917
|
if (disabled) {
|
|
923
918
|
clearTimeout(timer);
|
|
924
919
|
setTimer(void 0);
|
|
@@ -985,10 +980,10 @@ function useFocusManagement() {
|
|
|
985
980
|
}
|
|
986
981
|
|
|
987
982
|
// src/hooks/useFocusOnceVisible.ts
|
|
988
|
-
import React, { useEffect as
|
|
983
|
+
import React, { useEffect as useEffect7 } from "react";
|
|
989
984
|
var useFocusOnceVisible = (ref, disable = false) => {
|
|
990
985
|
const [hasUsedFocus, setHasUsedFocus] = React.useState(false);
|
|
991
|
-
|
|
986
|
+
useEffect7(() => {
|
|
992
987
|
if (disable || hasUsedFocus) {
|
|
993
988
|
return;
|
|
994
989
|
}
|
|
@@ -1159,7 +1154,7 @@ var SearchBar = ({
|
|
|
1159
1154
|
};
|
|
1160
1155
|
|
|
1161
1156
|
// src/hooks/useSearch.ts
|
|
1162
|
-
import { useCallback as useCallback4, useEffect as
|
|
1157
|
+
import { useCallback as useCallback4, useEffect as useEffect9, useMemo, useState as useState8 } from "react";
|
|
1163
1158
|
|
|
1164
1159
|
// src/util/simpleSearch.ts
|
|
1165
1160
|
var MultiSubjectSearchWithMapping = (search, objects, mapping) => {
|
|
@@ -1193,7 +1188,7 @@ var useSearch = ({
|
|
|
1193
1188
|
}
|
|
1194
1189
|
setResult(MultiSubjectSearchWithMapping([usedSearch, ...searchTags], list, searchMapping));
|
|
1195
1190
|
}, [searchTags, list, search, searchMapping]);
|
|
1196
|
-
|
|
1191
|
+
useEffect9(() => {
|
|
1197
1192
|
if (isSearchInstant) {
|
|
1198
1193
|
setResult(MultiSubjectSearchWithMapping([search, ...searchTags], list, searchMapping));
|
|
1199
1194
|
}
|
|
@@ -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 ?? "
|
|
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
|
-
|
|
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,
|