@helpwave/hightide 0.1.24 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/date/DatePicker.js +48 -53
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/DatePicker.mjs +48 -53
- package/dist/components/date/DatePicker.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 +26 -29
- 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 +40 -43
- 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 +40 -43
- 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 +40 -43
- 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 +40 -43
- 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 +26 -29
- package/dist/components/layout-and-navigation/StepperBar.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 +40 -43
- 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 +40 -43
- 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 +40 -43
- 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 +43 -49
- 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 +43 -49
- 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 +96 -75
- 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 +48 -53
- 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 +114 -93
- 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 +48 -53
- 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 +48 -53
- 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 +65 -73
- 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 +51 -56
- 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 +88 -65
- 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 +40 -43
- 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/DateAndTimePicker.js +48 -53
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.mjs +48 -53
- 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 +92 -69
- 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 +40 -43
- 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 +43 -49
- 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/index.js +139 -124
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +139 -124
- package/dist/index.mjs.map +1 -1
- package/dist/theming/useTheme.js +1 -1
- package/dist/theming/useTheme.js.map +1 -1
- package/dist/theming/useTheme.mjs +1 -1
- package/dist/theming/useTheme.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -173,7 +173,6 @@ var ButtonUtil = {
|
|
|
173
173
|
};
|
|
174
174
|
var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
175
175
|
children,
|
|
176
|
-
disabled = false,
|
|
177
176
|
color = "primary",
|
|
178
177
|
size = "medium",
|
|
179
178
|
startIcon,
|
|
@@ -183,35 +182,33 @@ var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
|
183
182
|
...restProps
|
|
184
183
|
}, ref) {
|
|
185
184
|
const colorClasses = {
|
|
186
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
187
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
188
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
189
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
190
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
191
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
192
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
185
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
186
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
187
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
188
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
189
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
190
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
191
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
|
|
193
192
|
}[color];
|
|
194
193
|
const iconColorClasses = {
|
|
195
|
-
primary: "text-button-solid-primary-icon",
|
|
196
|
-
secondary: "text-button-solid-secondary-icon",
|
|
197
|
-
tertiary: "text-button-solid-tertiary-icon",
|
|
198
|
-
positive: "text-button-solid-positive-icon",
|
|
199
|
-
warning: "text-button-solid-warning-icon",
|
|
200
|
-
negative: "text-button-solid-negative-icon",
|
|
201
|
-
neutral: "text-button-solid-neutral-icon"
|
|
194
|
+
primary: "not-group-disabled:text-button-solid-primary-icon",
|
|
195
|
+
secondary: "not-group-disabled:text-button-solid-secondary-icon",
|
|
196
|
+
tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
|
|
197
|
+
positive: "not-group-disabled:text-button-solid-positive-icon",
|
|
198
|
+
warning: "not-group-disabled:text-button-solid-warning-icon",
|
|
199
|
+
negative: "not-group-disabled:text-button-solid-negative-icon",
|
|
200
|
+
neutral: "not-group-disabled:text-button-solid-neutral-icon"
|
|
202
201
|
}[color];
|
|
203
202
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
204
203
|
"button",
|
|
205
204
|
{
|
|
206
205
|
ref,
|
|
207
206
|
onClick,
|
|
208
|
-
disabled,
|
|
209
207
|
className: (0, import_clsx2.default)(
|
|
210
|
-
"font-semibold",
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
},
|
|
208
|
+
"group font-semibold",
|
|
209
|
+
colorClasses,
|
|
210
|
+
"not-disabled:hover:brightness-90",
|
|
211
|
+
"disabled:text-disabled-text disabled:bg-disabled-background",
|
|
215
212
|
ButtonUtil.paddingMapping[size],
|
|
216
213
|
className
|
|
217
214
|
),
|
|
@@ -220,10 +217,10 @@ var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
|
220
217
|
startIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
221
218
|
"span",
|
|
222
219
|
{
|
|
223
|
-
className: (0, import_clsx2.default)(
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
220
|
+
className: (0, import_clsx2.default)(
|
|
221
|
+
iconColorClasses,
|
|
222
|
+
"group-disabled:text-disabled-icon"
|
|
223
|
+
),
|
|
227
224
|
children: startIcon
|
|
228
225
|
}
|
|
229
226
|
),
|
|
@@ -231,10 +228,10 @@ var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
|
231
228
|
endIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
232
229
|
"span",
|
|
233
230
|
{
|
|
234
|
-
className: (0, import_clsx2.default)(
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
231
|
+
className: (0, import_clsx2.default)(
|
|
232
|
+
iconColorClasses,
|
|
233
|
+
"group-disabled:text-disabled-icon"
|
|
234
|
+
),
|
|
238
235
|
children: endIcon
|
|
239
236
|
}
|
|
240
237
|
)
|
|
@@ -244,32 +241,32 @@ var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
|
244
241
|
});
|
|
245
242
|
var IconButton = ({
|
|
246
243
|
children,
|
|
247
|
-
disabled = false,
|
|
248
244
|
color = "primary",
|
|
249
245
|
size = "medium",
|
|
250
246
|
className,
|
|
251
247
|
...restProps
|
|
252
248
|
}) => {
|
|
253
249
|
const colorClasses = {
|
|
254
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
255
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
256
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
257
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
258
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
259
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
260
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text",
|
|
261
|
-
transparent: "bg-transparent"
|
|
250
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
251
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
252
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
253
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
254
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
255
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
256
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
|
|
257
|
+
transparent: "not-disabled:bg-transparent"
|
|
262
258
|
}[color];
|
|
263
259
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
264
260
|
"button",
|
|
265
261
|
{
|
|
266
|
-
disabled,
|
|
267
262
|
className: (0, import_clsx2.default)(
|
|
263
|
+
colorClasses,
|
|
264
|
+
"not-disabled:hover:brightness-90",
|
|
265
|
+
"disabled:text-disabled-text",
|
|
268
266
|
{
|
|
269
|
-
"
|
|
270
|
-
"
|
|
271
|
-
"hover:bg-button-text-hover-background":
|
|
272
|
-
[(0, import_clsx2.default)(colorClasses, "hover:brightness-90")]: !disabled
|
|
267
|
+
"disabled:bg-disabled-background": color !== "transparent",
|
|
268
|
+
"disabled:opacity-70": color === "transparent",
|
|
269
|
+
"not-disabled:hover:bg-button-text-hover-background": color === "transparent"
|
|
273
270
|
},
|
|
274
271
|
ButtonUtil.iconPaddingMapping[size],
|
|
275
272
|
className
|
|
@@ -1167,31 +1164,57 @@ var Checkbox = ({
|
|
|
1167
1164
|
}
|
|
1168
1165
|
};
|
|
1169
1166
|
const changeValue = () => {
|
|
1167
|
+
if (disabled) {
|
|
1168
|
+
return;
|
|
1169
|
+
}
|
|
1170
1170
|
const newValue = checked === "indeterminate" ? false : !checked;
|
|
1171
1171
|
propagateChange(newValue);
|
|
1172
1172
|
};
|
|
1173
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
{
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1173
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1174
|
+
"div",
|
|
1175
|
+
{
|
|
1176
|
+
className: (0, import_clsx8.default)("group flex-row-2 items-center", {
|
|
1177
|
+
"cursor-pointer": !disabled,
|
|
1178
|
+
"cursor-not-allowed": disabled
|
|
1179
|
+
}, containerClassName),
|
|
1180
|
+
onClick: changeValue,
|
|
1181
|
+
children: [
|
|
1182
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1183
|
+
CheckboxPrimitive.Root,
|
|
1184
|
+
{
|
|
1185
|
+
onCheckedChange: propagateChange,
|
|
1186
|
+
checked,
|
|
1187
|
+
disabled,
|
|
1188
|
+
id,
|
|
1189
|
+
className: (0, import_clsx8.default)(usedSizeClass, `items-center border-2 rounded outline-none `, {
|
|
1190
|
+
"text-disabled-text border-disabled-outline bg-disabled-background cursor-not-allowed": disabled,
|
|
1191
|
+
"focus:border-primary group-hover:border-primary ": !disabled,
|
|
1192
|
+
"bg-input-background": !disabled && !checked,
|
|
1193
|
+
"bg-primary/30 border-primary text-primary": !disabled && checked === true || checked === "indeterminate"
|
|
1194
|
+
}, className),
|
|
1195
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(CheckboxPrimitive.Indicator, { children: [
|
|
1196
|
+
checked === true && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.Check, { className: innerIconSize }),
|
|
1197
|
+
checked === "indeterminate" && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.Minus, { className: innerIconSize })
|
|
1198
|
+
] })
|
|
1199
|
+
}
|
|
1200
|
+
),
|
|
1201
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1202
|
+
Label,
|
|
1203
|
+
{
|
|
1204
|
+
...label,
|
|
1205
|
+
className: (0, import_clsx8.default)(
|
|
1206
|
+
label.className,
|
|
1207
|
+
{
|
|
1208
|
+
"cursor-pointer": !disabled,
|
|
1209
|
+
"cursor-not-allowed": disabled
|
|
1210
|
+
}
|
|
1211
|
+
),
|
|
1212
|
+
htmlFor: id
|
|
1213
|
+
}
|
|
1214
|
+
)
|
|
1215
|
+
]
|
|
1216
|
+
}
|
|
1217
|
+
);
|
|
1195
1218
|
};
|
|
1196
1219
|
|
|
1197
1220
|
// src/components/user-action/MultiSelect.tsx
|
|
@@ -1294,7 +1317,7 @@ var MultiSelect = ({
|
|
|
1294
1317
|
...label,
|
|
1295
1318
|
htmlFor: label.name,
|
|
1296
1319
|
className: (0, import_clsx10.default)(" mb-1", label.className),
|
|
1297
|
-
labelType: label.labelType ?? "
|
|
1320
|
+
labelType: label.labelType ?? "labelSmall"
|
|
1298
1321
|
}
|
|
1299
1322
|
),
|
|
1300
1323
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
@@ -1307,10 +1330,10 @@ var MultiSelect = ({
|
|
|
1307
1330
|
ref,
|
|
1308
1331
|
className: (0, import_clsx10.default)(
|
|
1309
1332
|
"group btn-md justify-between w-full border-2 h-auto",
|
|
1333
|
+
"not-disabled:bg-input-background not-disabled:text-input-text not-disabled:hover:border-primary",
|
|
1334
|
+
"disabled:bg-disabled-background disabled:text-disabled-text disabled:border-disabled-border",
|
|
1310
1335
|
{
|
|
1311
|
-
"min-h-14": useChipDisplay
|
|
1312
|
-
"bg-input-background text-input-text hover:border-primary": !disabled,
|
|
1313
|
-
"bg-disabled-background text-disabled-text border-disabled-background cursor-not-allowed": disabled
|
|
1336
|
+
"min-h-14": useChipDisplay
|
|
1314
1337
|
},
|
|
1315
1338
|
triggerClassName
|
|
1316
1339
|
),
|