@sikka/hawa 0.8.15-next → 0.8.16-next
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/index.css +19 -10
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/index.mjs +5 -5
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -431,18 +431,17 @@ video {
|
|
|
431
431
|
--muted-foreground: 240 5% 64.9%;
|
|
432
432
|
--accent: 240 3.7% 15.9%;
|
|
433
433
|
--accent-foreground: 0 0% 98%;
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
--success:
|
|
437
|
-
--
|
|
438
|
-
--info:
|
|
439
|
-
--
|
|
440
|
-
--warning:
|
|
441
|
-
|
|
442
|
-
|
|
434
|
+
|
|
435
|
+
--success: 106 70% 40%; /* A shade of green */
|
|
436
|
+
--success-foreground: 0 0% 100%; /* White */
|
|
437
|
+
--info: 200 100% 30%; /* A shade of blue */
|
|
438
|
+
--info-foreground: 0 0% 100%; /* White */
|
|
439
|
+
--warning: 45 100% 50%; /* A shade of yellow */
|
|
440
|
+
--warning-foreground: 0 0% 20%; /* Dark grey */
|
|
441
|
+
|
|
443
442
|
--destructive: 0 62.8% 30.6%;
|
|
444
443
|
--destructive-foreground: 0 85.7% 97.3%;
|
|
445
|
-
|
|
444
|
+
|
|
446
445
|
--border: 240 3.7% 15.9%;
|
|
447
446
|
--input: 240 3.7% 15.9%;
|
|
448
447
|
--ring: 240 4.9% 83.9%;
|
|
@@ -661,6 +660,16 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
661
660
|
height: 1rem;
|
|
662
661
|
width: 1rem;
|
|
663
662
|
}
|
|
663
|
+
.helper-text {
|
|
664
|
+
font-size: 0.75rem;
|
|
665
|
+
line-height: 1rem;
|
|
666
|
+
--tw-text-opacity: 1;
|
|
667
|
+
color: rgb(220 38 38 / var(--tw-text-opacity));
|
|
668
|
+
}
|
|
669
|
+
:is([data-mode="dark"] .helper-text) {
|
|
670
|
+
--tw-text-opacity: 1;
|
|
671
|
+
color: rgb(239 68 68 / var(--tw-text-opacity));
|
|
672
|
+
}
|
|
664
673
|
.ddm-w-parent {
|
|
665
674
|
width: var(--radix-dropdown-menu-trigger-width);
|
|
666
675
|
}
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1772,7 +1772,7 @@ var Checkbox = function(_param) {
|
|
|
1772
1772
|
className: cn("hawa-cursor-pointer hawa-select-none hawa-text-sm hawa-text-muted-foreground", checkboxProps.disabled && "hawa-cursor-not-allowed hawa-text-muted-foreground hawa-opacity-70")
|
|
1773
1773
|
}, sublabel), helperText && !checkboxProps.disabled && /* @__PURE__ */ React13.createElement("label", {
|
|
1774
1774
|
htmlFor: id,
|
|
1775
|
-
className: cn("hawa-select-none
|
|
1775
|
+
className: cn("hawa-select-none helper-text", checkboxProps.disabled && "hawa-cursor-not-allowed hawa-opacity-70")
|
|
1776
1776
|
}, helperText)));
|
|
1777
1777
|
};
|
|
1778
1778
|
var CheckboxElement = React13.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
@@ -2443,7 +2443,7 @@ var Textarea = React24.forwardRef(function(_param, ref) {
|
|
|
2443
2443
|
className: cn("hawa-flex hawa-min-h-[80px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50", className),
|
|
2444
2444
|
ref: ref
|
|
2445
2445
|
}, props)), props.helperText && /* @__PURE__ */ React24.createElement("p", {
|
|
2446
|
-
className: "
|
|
2446
|
+
className: "helper-text"
|
|
2447
2447
|
}, props.helperText));
|
|
2448
2448
|
});
|
|
2449
2449
|
Textarea.displayName = "Textarea";
|
|
@@ -4608,7 +4608,7 @@ var Select = function(props) {
|
|
|
4608
4608
|
return props.onInputChange(newValue, action);
|
|
4609
4609
|
}
|
|
4610
4610
|
}), props.helperText && /* @__PURE__ */ import_react18.default.createElement("p", {
|
|
4611
|
-
className: "
|
|
4611
|
+
className: "helper-text"
|
|
4612
4612
|
}, props.helperText));
|
|
4613
4613
|
};
|
|
4614
4614
|
// components/elements/PhoneInput.tsx
|
|
@@ -4910,7 +4910,7 @@ var Input = function(_param) {
|
|
|
4910
4910
|
})), props.iconInside && /* @__PURE__ */ import_react22.default.createElement("div", {
|
|
4911
4911
|
className: "hawa-absolute hawa-right-1 hawa-top-[41px] hawa--translate-y-1/2"
|
|
4912
4912
|
}, props.iconInside), props.helperText && /* @__PURE__ */ import_react22.default.createElement("p", {
|
|
4913
|
-
className: "hawa-mb-0 hawa-mt-0
|
|
4913
|
+
className: "hawa-mb-0 hawa-mt-0 helper-text"
|
|
4914
4914
|
}, props.helperText))));
|
|
4915
4915
|
};
|
|
4916
4916
|
// components/elements/DataTable.tsx
|
|
@@ -8133,13 +8133,13 @@ var FeedbackForm = function(props) {
|
|
|
8133
8133
|
control: control,
|
|
8134
8134
|
render: function(param) {
|
|
8135
8135
|
var field = param.field;
|
|
8136
|
-
var _formState_errors_requestType;
|
|
8136
|
+
var _formState_errors_requestType_message, _formState_errors_requestType;
|
|
8137
8137
|
return /* @__PURE__ */ import_react45.default.createElement(Select, _object_spread_props(_object_spread({}, field), {
|
|
8138
8138
|
onChange: function(option) {
|
|
8139
8139
|
return field.onChange(option.value);
|
|
8140
8140
|
},
|
|
8141
8141
|
options: props.requestTypes,
|
|
8142
|
-
helperText:
|
|
8142
|
+
helperText: (_formState_errors_requestType = formState.errors.requestType) === null || _formState_errors_requestType === void 0 ? void 0 : (_formState_errors_requestType_message = _formState_errors_requestType.message) === null || _formState_errors_requestType_message === void 0 ? void 0 : _formState_errors_requestType_message.toString()
|
|
8143
8143
|
}));
|
|
8144
8144
|
}
|
|
8145
8145
|
}), /* @__PURE__ */ import_react45.default.createElement(Label2, null, props.texts.description), /* @__PURE__ */ import_react45.default.createElement(import_react_hook_form7.Controller, {
|
package/dist/index.mjs
CHANGED
|
@@ -1207,7 +1207,7 @@ var Checkbox = ({
|
|
|
1207
1207
|
{
|
|
1208
1208
|
htmlFor: id,
|
|
1209
1209
|
className: cn(
|
|
1210
|
-
"hawa-select-none
|
|
1210
|
+
"hawa-select-none helper-text",
|
|
1211
1211
|
checkboxProps.disabled && "hawa-cursor-not-allowed hawa-opacity-70"
|
|
1212
1212
|
)
|
|
1213
1213
|
},
|
|
@@ -2012,7 +2012,7 @@ var Textarea = React24.forwardRef(
|
|
|
2012
2012
|
ref,
|
|
2013
2013
|
...props
|
|
2014
2014
|
}
|
|
2015
|
-
), props.helperText && /* @__PURE__ */ React24.createElement("p", { className: "
|
|
2015
|
+
), props.helperText && /* @__PURE__ */ React24.createElement("p", { className: "helper-text" }, props.helperText));
|
|
2016
2016
|
}
|
|
2017
2017
|
);
|
|
2018
2018
|
Textarea.displayName = "Textarea";
|
|
@@ -4236,7 +4236,7 @@ var Select = (props) => {
|
|
|
4236
4236
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
|
4237
4237
|
}
|
|
4238
4238
|
),
|
|
4239
|
-
props.helperText && /* @__PURE__ */ React29.createElement("p", { className: "
|
|
4239
|
+
props.helperText && /* @__PURE__ */ React29.createElement("p", { className: "helper-text" }, props.helperText)
|
|
4240
4240
|
);
|
|
4241
4241
|
};
|
|
4242
4242
|
|
|
@@ -4584,7 +4584,7 @@ var Input = ({
|
|
|
4584
4584
|
placeholder: props.placeholder,
|
|
4585
4585
|
disabled: preview
|
|
4586
4586
|
}
|
|
4587
|
-
)), props.iconInside && /* @__PURE__ */ React34.createElement("div", { className: "hawa-absolute hawa-right-1 hawa-top-[41px] hawa--translate-y-1/2" }, props.iconInside), props.helperText && /* @__PURE__ */ React34.createElement("p", { className: "hawa-mb-0 hawa-mt-0
|
|
4587
|
+
)), props.iconInside && /* @__PURE__ */ React34.createElement("div", { className: "hawa-absolute hawa-right-1 hawa-top-[41px] hawa--translate-y-1/2" }, props.iconInside), props.helperText && /* @__PURE__ */ React34.createElement("p", { className: "hawa-mb-0 hawa-mt-0 helper-text" }, props.helperText)))
|
|
4588
4588
|
);
|
|
4589
4589
|
};
|
|
4590
4590
|
|
|
@@ -8035,7 +8035,7 @@ var FeedbackForm = (props) => {
|
|
|
8035
8035
|
...field,
|
|
8036
8036
|
onChange: (option) => field.onChange(option.value),
|
|
8037
8037
|
options: props.requestTypes,
|
|
8038
|
-
helperText: formState.errors.requestType
|
|
8038
|
+
helperText: formState.errors.requestType?.message?.toString()
|
|
8039
8039
|
}
|
|
8040
8040
|
)
|
|
8041
8041
|
}
|