@wrdagency/blockout 0.1.1 → 0.1.3

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.
@@ -1,30 +1,33 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { cn as u } from "../../../utils/css.js";
3
- import { useRef as f, useEffect as m } from "react";
4
- import { useForm as a } from "../types/form.js";
5
- const h = ({
6
- className: o,
7
- index: t,
8
- children: c,
9
- ...n
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import { cn as f } from "../../../utils/css.js";
3
+ import { useRef as m, useEffect as p } from "react";
4
+ import { useForm as l } from "../types/form.js";
5
+ const x = ({
6
+ className: c,
7
+ index: r,
8
+ children: n,
9
+ ...s
10
10
  }) => {
11
- const { step: r } = a(), e = f(null);
12
- return m(() => {
13
- r.current === t && e.current && e.current.querySelectorAll(
14
- 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
15
- )[0].focus();
16
- }, [r.current, t]), /* @__PURE__ */ s(
11
+ const { step: t } = l(), e = m(null);
12
+ return p(() => {
13
+ if (t.current === r && e.current) {
14
+ const o = e.current.querySelectorAll(
15
+ 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
16
+ )[0];
17
+ o == null || o.focus();
18
+ }
19
+ }, [t.current, r]), /* @__PURE__ */ u(
17
20
  "div",
18
21
  {
19
- className: u("component-form-step", o),
20
- hidden: r.current !== t,
21
- inert: r.current !== t,
22
+ className: f("component-form-step", c),
23
+ hidden: t.current !== r,
24
+ inert: t.current !== r,
22
25
  ref: e,
23
- ...n,
24
- children: c
26
+ ...s,
27
+ children: n
25
28
  }
26
29
  );
27
30
  };
28
31
  export {
29
- h as FormStep
32
+ x as FormStep
30
33
  };
@@ -6,7 +6,7 @@ import { u as I } from "../../MTZPJQMC-DyCWBG18.js";
6
6
  import { a as P } from "../../YV4JVR4I-kvospPUa.js";
7
7
  import { a as _, _ as x, i as O, s as j, m as L, o as f, n as T, v as U, b as B, a1 as D, r as q, f as y, q as k } from "../../LMDWO4NN--KEvZePp.js";
8
8
  import { useMemo as w, useState as Z } from "react";
9
- import '../../assets/index16.css';var g = "M23 27.8C24.1 29 26.4 30 28 30H30H0H2C3.7 30 5.9 29 7 27.8L14 20.6C14.7 19.8 15.3 19.8 16 20.6L23 27.8Z", F = "div", h = 30, s = h / 2, G = {
9
+ import '../../assets/index17.css';var g = "M23 27.8C24.1 29 26.4 30 28 30H30H0H2C3.7 30 5.9 29 7 27.8L14 20.6C14.7 19.8 15.3 19.8 16 20.6L23 27.8Z", F = "div", h = 30, s = h / 2, G = {
10
10
  top: `rotate(180 ${s} ${s})`,
11
11
  right: `rotate(-90 ${s} ${s})`,
12
12
  bottom: `rotate(0 ${s} ${s})`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrdagency/blockout",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "A React component library created by WRD.agency",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",