@caseparts-org/caseblocks 0.0.208 → 0.0.210

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 +1 @@
1
- ._input-container_1rs9z_1{display:flex;flex-direction:column;align-items:flex-start;width:100%;box-sizing:border-box}._input-container_1rs9z_1>label{font-family:var(--font-family-label);font-size:var(--font-size-xs)}._input_1rs9z_1{height:32px;border-radius:var(--radius-radius-minimal, 2px);border:1px solid var(--border-border-primary, #dfdfdf);background:var(--surface-surface-secondary, #f6f6f6);padding:0px var(--spacing-spacing-1xs, 12px);outline:none;font-size:var(--font-size-sm);width:100%}@media (max-width:768px){._input_1rs9z_1{font-size:var(--font-size-md)}}._input_1rs9z_1:focus{border:1px solid var(--border-border-primary-btn, #1380b1);box-shadow:0 0 2px 1px var(--border-border-primary-btn)}
1
+ ._input-container_8oisf_1{display:flex;flex-direction:column;align-items:flex-start;width:100%;box-sizing:border-box}._input-container_8oisf_1>label{font-family:var(--font-family-label);font-size:var(--font-size-xs)}._input_8oisf_1{height:32px;border-radius:var(--radius-radius-minimal, 2px);border:1px solid var(--border-border-primary, #dfdfdf);background:var(--surface-surface-primary);padding:0px var(--spacing-spacing-1xs, 12px);outline:none;font-size:var(--font-size-sm);width:100%}@media (max-width:768px){._input_8oisf_1{font-size:var(--font-size-md)}}._input_8oisf_1:focus{border:1px solid var(--border-border-primary-btn, #1380b1);box-shadow:0 0 2px 1px var(--border-border-primary-btn)}
@@ -1,8 +1,8 @@
1
- import { jsxs as R, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as $, jsx as o } from "react/jsx-runtime";
2
2
  import * as i from "react";
3
3
  import { c as s } from "../../clsx-OuTLNxxd.js";
4
- import { getHideAtStyles as $ } from "../HideAt.js";
5
- import { Icon as k } from "../Icon/Icon.js";
4
+ import { getHideAtStyles as k } from "../HideAt.js";
5
+ import { Icon as w } from "../Icon/Icon.js";
6
6
  import { Popover as W } from "../Popover/Popover.js";
7
7
  import { buttonClassNames as S } from "../Button/buttonClassName.js";
8
8
  import { Text as j } from "../Text/Text.js";
@@ -44,23 +44,23 @@ function U({
44
44
  type: N = "button",
45
45
  ...x
46
46
  }) {
47
- const C = u.length > 0, a = _ || !C, I = e === "sm" ? "xs" : e === "md" ? "sm" : "md", l = i.useRef(null), [w, L] = i.useState();
47
+ const C = u.length > 0, a = _ || !C, I = e === "sm" ? "xs" : e === "md" ? "sm" : "md", l = i.useRef(null), [L, R] = i.useState();
48
48
  return i.useLayoutEffect(() => {
49
49
  const g = l.current;
50
50
  if (!g) return;
51
51
  const m = () => {
52
- L(g.getBoundingClientRect().width + 2);
52
+ R(g.getBoundingClientRect().width + 2);
53
53
  };
54
54
  m();
55
55
  const r = new ResizeObserver(m);
56
56
  return r.observe(g), () => {
57
57
  r.disconnect();
58
58
  };
59
- }, []), /* @__PURE__ */ R(
59
+ }, []), /* @__PURE__ */ $(
60
60
  "div",
61
61
  {
62
62
  ref: l,
63
- className: s(n.root, $(f), h, t == null ? void 0 : t.root),
63
+ className: s(n.root, k(f), h, t == null ? void 0 : t.root),
64
64
  role: "group",
65
65
  children: [
66
66
  /* @__PURE__ */ o(
@@ -85,7 +85,7 @@ function U({
85
85
  disabled: a,
86
86
  position: "bottom right",
87
87
  contentClassName: s(n.menu, n[`menu-${c}`], t == null ? void 0 : t.menu),
88
- contentStyle: { width: w },
88
+ contentStyle: { minWidth: L },
89
89
  closeOnOutsideClick: !0,
90
90
  trigger: /* @__PURE__ */ o(
91
91
  "button",
@@ -105,7 +105,7 @@ function U({
105
105
  ),
106
106
  "aria-label": d,
107
107
  disabled: a,
108
- children: /* @__PURE__ */ o(k, { iconKey: "fa-solid fa-chevron-down", size: "3xs" })
108
+ children: /* @__PURE__ */ o(w, { iconKey: "fa-solid fa-chevron-down", size: "3xs" })
109
109
  }
110
110
  ),
111
111
  children: ({ close: g }) => /* @__PURE__ */ o("div", { className: n.menuList, role: "menu", "aria-label": b, children: u.map((m) => /* @__PURE__ */ o(
@@ -1,20 +1,20 @@
1
1
  import { jsxs as p, jsx as i } from "react/jsx-runtime";
2
- import m from "react";
3
- import { c } from "../../clsx-OuTLNxxd.js";
4
- import { getHideAtStyles as o } from "../HideAt.js";
5
- import '../../assets/Input.css';const u = "_input_1rs9z_1", e = {
6
- "input-container": "_input-container_1rs9z_1",
2
+ import r from "react";
3
+ import { c as m } from "../../clsx-OuTLNxxd.js";
4
+ import { getHideAtStyles as c } from "../HideAt.js";
5
+ import '../../assets/Input.css';const u = "_input_8oisf_1", e = {
6
+ "input-container": "_input-container_8oisf_1",
7
7
  input: u
8
- }, l = m.forwardRef(
9
- ({ label: n, hideAt: r, className: s, ...t }, a) => /* @__PURE__ */ p("div", { className: e["input-container"], children: [
8
+ }, l = r.forwardRef(
9
+ ({ label: n, hideAt: s, className: a, ...t }, o) => /* @__PURE__ */ p("div", { className: e["input-container"], children: [
10
10
  n && /* @__PURE__ */ i("label", { htmlFor: t.name, children: n }),
11
11
  /* @__PURE__ */ i(
12
12
  "input",
13
13
  {
14
- ref: a,
14
+ ref: o,
15
15
  id: t.name,
16
16
  type: "text",
17
- className: c(e.input, o(r), s),
17
+ className: m(e.input, c(s), a),
18
18
  ...t
19
19
  }
20
20
  )
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.208",
4
+ "version": "0.0.210",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",