@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
|
@@ -139,7 +139,6 @@ var ButtonUtil = {
|
|
|
139
139
|
};
|
|
140
140
|
var SolidButton = forwardRef(function SolidButton2({
|
|
141
141
|
children,
|
|
142
|
-
disabled = false,
|
|
143
142
|
color = "primary",
|
|
144
143
|
size = "medium",
|
|
145
144
|
startIcon,
|
|
@@ -149,35 +148,33 @@ var SolidButton = forwardRef(function SolidButton2({
|
|
|
149
148
|
...restProps
|
|
150
149
|
}, ref) {
|
|
151
150
|
const colorClasses = {
|
|
152
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
153
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
154
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
155
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
156
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
157
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
158
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
151
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
152
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
153
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
154
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
155
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
156
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
157
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
|
|
159
158
|
}[color];
|
|
160
159
|
const iconColorClasses = {
|
|
161
|
-
primary: "text-button-solid-primary-icon",
|
|
162
|
-
secondary: "text-button-solid-secondary-icon",
|
|
163
|
-
tertiary: "text-button-solid-tertiary-icon",
|
|
164
|
-
positive: "text-button-solid-positive-icon",
|
|
165
|
-
warning: "text-button-solid-warning-icon",
|
|
166
|
-
negative: "text-button-solid-negative-icon",
|
|
167
|
-
neutral: "text-button-solid-neutral-icon"
|
|
160
|
+
primary: "not-group-disabled:text-button-solid-primary-icon",
|
|
161
|
+
secondary: "not-group-disabled:text-button-solid-secondary-icon",
|
|
162
|
+
tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
|
|
163
|
+
positive: "not-group-disabled:text-button-solid-positive-icon",
|
|
164
|
+
warning: "not-group-disabled:text-button-solid-warning-icon",
|
|
165
|
+
negative: "not-group-disabled:text-button-solid-negative-icon",
|
|
166
|
+
neutral: "not-group-disabled:text-button-solid-neutral-icon"
|
|
168
167
|
}[color];
|
|
169
168
|
return /* @__PURE__ */ jsxs(
|
|
170
169
|
"button",
|
|
171
170
|
{
|
|
172
171
|
ref,
|
|
173
172
|
onClick,
|
|
174
|
-
disabled,
|
|
175
173
|
className: clsx2(
|
|
176
|
-
"font-semibold",
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
},
|
|
174
|
+
"group font-semibold",
|
|
175
|
+
colorClasses,
|
|
176
|
+
"not-disabled:hover:brightness-90",
|
|
177
|
+
"disabled:text-disabled-text disabled:bg-disabled-background",
|
|
181
178
|
ButtonUtil.paddingMapping[size],
|
|
182
179
|
className
|
|
183
180
|
),
|
|
@@ -186,10 +183,10 @@ var SolidButton = forwardRef(function SolidButton2({
|
|
|
186
183
|
startIcon && /* @__PURE__ */ jsx3(
|
|
187
184
|
"span",
|
|
188
185
|
{
|
|
189
|
-
className: clsx2(
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
186
|
+
className: clsx2(
|
|
187
|
+
iconColorClasses,
|
|
188
|
+
"group-disabled:text-disabled-icon"
|
|
189
|
+
),
|
|
193
190
|
children: startIcon
|
|
194
191
|
}
|
|
195
192
|
),
|
|
@@ -197,10 +194,10 @@ var SolidButton = forwardRef(function SolidButton2({
|
|
|
197
194
|
endIcon && /* @__PURE__ */ jsx3(
|
|
198
195
|
"span",
|
|
199
196
|
{
|
|
200
|
-
className: clsx2(
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
197
|
+
className: clsx2(
|
|
198
|
+
iconColorClasses,
|
|
199
|
+
"group-disabled:text-disabled-icon"
|
|
200
|
+
),
|
|
204
201
|
children: endIcon
|
|
205
202
|
}
|
|
206
203
|
)
|
|
@@ -210,32 +207,32 @@ var SolidButton = forwardRef(function SolidButton2({
|
|
|
210
207
|
});
|
|
211
208
|
var IconButton = ({
|
|
212
209
|
children,
|
|
213
|
-
disabled = false,
|
|
214
210
|
color = "primary",
|
|
215
211
|
size = "medium",
|
|
216
212
|
className,
|
|
217
213
|
...restProps
|
|
218
214
|
}) => {
|
|
219
215
|
const colorClasses = {
|
|
220
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
221
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
222
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
223
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
224
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
225
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
226
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text",
|
|
227
|
-
transparent: "bg-transparent"
|
|
216
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
217
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
218
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
219
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
220
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
221
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
222
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
|
|
223
|
+
transparent: "not-disabled:bg-transparent"
|
|
228
224
|
}[color];
|
|
229
225
|
return /* @__PURE__ */ jsx3(
|
|
230
226
|
"button",
|
|
231
227
|
{
|
|
232
|
-
disabled,
|
|
233
228
|
className: clsx2(
|
|
229
|
+
colorClasses,
|
|
230
|
+
"not-disabled:hover:brightness-90",
|
|
231
|
+
"disabled:text-disabled-text",
|
|
234
232
|
{
|
|
235
|
-
"
|
|
236
|
-
"
|
|
237
|
-
"hover:bg-button-text-hover-background":
|
|
238
|
-
[clsx2(colorClasses, "hover:brightness-90")]: !disabled
|
|
233
|
+
"disabled:bg-disabled-background": color !== "transparent",
|
|
234
|
+
"disabled:opacity-70": color === "transparent",
|
|
235
|
+
"not-disabled:hover:bg-button-text-hover-background": color === "transparent"
|
|
239
236
|
},
|
|
240
237
|
ButtonUtil.iconPaddingMapping[size],
|
|
241
238
|
className
|
|
@@ -1133,31 +1130,57 @@ var Checkbox = ({
|
|
|
1133
1130
|
}
|
|
1134
1131
|
};
|
|
1135
1132
|
const changeValue = () => {
|
|
1133
|
+
if (disabled) {
|
|
1134
|
+
return;
|
|
1135
|
+
}
|
|
1136
1136
|
const newValue = checked === "indeterminate" ? false : !checked;
|
|
1137
1137
|
propagateChange(newValue);
|
|
1138
1138
|
};
|
|
1139
|
-
return /* @__PURE__ */ jsxs7(
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
{
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1139
|
+
return /* @__PURE__ */ jsxs7(
|
|
1140
|
+
"div",
|
|
1141
|
+
{
|
|
1142
|
+
className: clsx8("group flex-row-2 items-center", {
|
|
1143
|
+
"cursor-pointer": !disabled,
|
|
1144
|
+
"cursor-not-allowed": disabled
|
|
1145
|
+
}, containerClassName),
|
|
1146
|
+
onClick: changeValue,
|
|
1147
|
+
children: [
|
|
1148
|
+
/* @__PURE__ */ jsx9(
|
|
1149
|
+
CheckboxPrimitive.Root,
|
|
1150
|
+
{
|
|
1151
|
+
onCheckedChange: propagateChange,
|
|
1152
|
+
checked,
|
|
1153
|
+
disabled,
|
|
1154
|
+
id,
|
|
1155
|
+
className: clsx8(usedSizeClass, `items-center border-2 rounded outline-none `, {
|
|
1156
|
+
"text-disabled-text border-disabled-outline bg-disabled-background cursor-not-allowed": disabled,
|
|
1157
|
+
"focus:border-primary group-hover:border-primary ": !disabled,
|
|
1158
|
+
"bg-input-background": !disabled && !checked,
|
|
1159
|
+
"bg-primary/30 border-primary text-primary": !disabled && checked === true || checked === "indeterminate"
|
|
1160
|
+
}, className),
|
|
1161
|
+
children: /* @__PURE__ */ jsxs7(CheckboxPrimitive.Indicator, { children: [
|
|
1162
|
+
checked === true && /* @__PURE__ */ jsx9(Check, { className: innerIconSize }),
|
|
1163
|
+
checked === "indeterminate" && /* @__PURE__ */ jsx9(Minus, { className: innerIconSize })
|
|
1164
|
+
] })
|
|
1165
|
+
}
|
|
1166
|
+
),
|
|
1167
|
+
label && /* @__PURE__ */ jsx9(
|
|
1168
|
+
Label,
|
|
1169
|
+
{
|
|
1170
|
+
...label,
|
|
1171
|
+
className: clsx8(
|
|
1172
|
+
label.className,
|
|
1173
|
+
{
|
|
1174
|
+
"cursor-pointer": !disabled,
|
|
1175
|
+
"cursor-not-allowed": disabled
|
|
1176
|
+
}
|
|
1177
|
+
),
|
|
1178
|
+
htmlFor: id
|
|
1179
|
+
}
|
|
1180
|
+
)
|
|
1181
|
+
]
|
|
1182
|
+
}
|
|
1183
|
+
);
|
|
1161
1184
|
};
|
|
1162
1185
|
|
|
1163
1186
|
// src/components/user-action/MultiSelect.tsx
|
|
@@ -1260,7 +1283,7 @@ var MultiSelect = ({
|
|
|
1260
1283
|
...label,
|
|
1261
1284
|
htmlFor: label.name,
|
|
1262
1285
|
className: clsx10(" mb-1", label.className),
|
|
1263
|
-
labelType: label.labelType ?? "
|
|
1286
|
+
labelType: label.labelType ?? "labelSmall"
|
|
1264
1287
|
}
|
|
1265
1288
|
),
|
|
1266
1289
|
/* @__PURE__ */ jsx11(
|
|
@@ -1273,10 +1296,10 @@ var MultiSelect = ({
|
|
|
1273
1296
|
ref,
|
|
1274
1297
|
className: clsx10(
|
|
1275
1298
|
"group btn-md justify-between w-full border-2 h-auto",
|
|
1299
|
+
"not-disabled:bg-input-background not-disabled:text-input-text not-disabled:hover:border-primary",
|
|
1300
|
+
"disabled:bg-disabled-background disabled:text-disabled-text disabled:border-disabled-border",
|
|
1276
1301
|
{
|
|
1277
|
-
"min-h-14": useChipDisplay
|
|
1278
|
-
"bg-input-background text-input-text hover:border-primary": !disabled,
|
|
1279
|
-
"bg-disabled-background text-disabled-text border-disabled-background cursor-not-allowed": disabled
|
|
1302
|
+
"min-h-14": useChipDisplay
|
|
1280
1303
|
},
|
|
1281
1304
|
triggerClassName
|
|
1282
1305
|
),
|