@raketa-builder/next-form 0.3.0 → 0.4.0

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.js CHANGED
@@ -394,18 +394,8 @@ var require_dist = __commonJS({
394
394
  var import_react13 = __toESM2(require("react"));
395
395
  var import_jsx_runtime13 = require("react/jsx-runtime");
396
396
  var Stack2 = (_a) => {
397
- var _b = _a, { h, v, g, className } = _b, props = __objRest2(_b, ["h", "v", "g", "className"]);
398
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
399
- "div",
400
- __spreadValues2({
401
- style: {
402
- justifyContent: h || "flex-start",
403
- alignItems: v || "flex-start",
404
- gap: g || "1em"
405
- },
406
- className: cn3("r-stack", className)
407
- }, props)
408
- );
397
+ var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
398
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", __spreadValues2({ className: cn3("r-stack", className) }, props));
409
399
  };
410
400
  var Stack_default = Stack2;
411
401
  var import_react14 = __toESM2(require("react"));
@@ -901,7 +891,7 @@ var Checkbox = (_a) => {
901
891
  var _b = _a, { name, label, hint = "" } = _b, rest = __objRest(_b, ["name", "label", "hint"]);
902
892
  const { defaultValues, errors } = import_react3.default.useContext(Context_default);
903
893
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_ui.FormGroup, { children: [
904
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ui.Label, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_ui.Stack, { v: "center", children: [
894
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ui.Label, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_ui.Stack, { className: "r-stack-align-center", children: [
905
895
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
906
896
  "input",
907
897
  __spreadValues({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-builder/next-form",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",
package/src/Fields.js CHANGED
@@ -80,7 +80,7 @@ const Checkbox = ({ name, label, hint = "", ...rest }) => {
80
80
  return (
81
81
  <FormGroup>
82
82
  <Label>
83
- <Stack v="center">
83
+ <Stack className="r-stack-align-center">
84
84
  <input
85
85
  type="checkbox"
86
86
  name={name}