@tapizlabs/ui 0.2.5 → 0.2.7

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/CHANGELOG.md CHANGED
@@ -15,6 +15,11 @@ The format is based on Keep a Changelog and the package follows Semantic Version
15
15
  - shared `ConfirmDialog` supports both `description` and compatibility `message` props
16
16
  - consumer apps are now migrated to shared theme, fonts, and shared UI primitives
17
17
 
18
+ ## [0.2.6] - 2026-06-12
19
+
20
+ ### Fixed
21
+ - `PasswordInput` inner input no longer renders its own focus signal bar; the wrapper's `focus-within` signal stays at the field's left edge even when the wrapper has extra padding (e.g. `pl-10` for an inline icon)
22
+
18
23
  ## [0.2.5] - 2026-06-12
19
24
 
20
25
  ### Fixed
package/dist/index.js CHANGED
@@ -2360,17 +2360,17 @@ import { jsx as jsx61, jsxs as jsxs44 } from "react/jsx-runtime";
2360
2360
  function Drawer({ open, onClose, title, description, children, footer, side = "right", className = "" }) {
2361
2361
  if (!open) return null;
2362
2362
  return /* @__PURE__ */ jsxs44("div", { className: "fixed inset-0 z-50", children: [
2363
- /* @__PURE__ */ jsx61("button", { type: "button", "aria-label": "Close drawer", className: "absolute inset-0 bg-[var(--tapiz-bg-overlay)]", onClick: onClose }),
2364
- /* @__PURE__ */ jsxs44("section", { className: `absolute top-0 h-full w-full max-w-md border-[var(--tapiz-border-strong)] bg-[var(--tapiz-bg-surface)] shadow-[var(--tapiz-shadow-lg)] ${side === "right" ? "right-0 border-l" : "left-0 border-r"} ${className}`, children: [
2365
- /* @__PURE__ */ jsxs44("header", { className: "flex items-start justify-between gap-4 border-b border-[var(--tapiz-border-subtle)] p-5", children: [
2363
+ /* @__PURE__ */ jsx61("button", { type: "button", "aria-label": "Close drawer", className: "absolute inset-0 bg-(--tapiz-bg-overlay)", onClick: onClose }),
2364
+ /* @__PURE__ */ jsxs44("section", { className: `absolute top-0 h-full w-full max-w-md border-(--tapiz-border-strong) bg-(--tapiz-bg-surface) shadow-(--tapiz-shadow-lg) ${side === "right" ? "right-0 border-l" : "left-0 border-r"} ${className}`, children: [
2365
+ /* @__PURE__ */ jsxs44("header", { className: "flex items-start justify-between gap-4 border-b border-(--tapiz-border-subtle) p-5", children: [
2366
2366
  /* @__PURE__ */ jsxs44("div", { children: [
2367
- title ? /* @__PURE__ */ jsx61("h2", { className: "text-lg font-semibold text-[var(--tapiz-text-primary)]", children: title }) : null,
2368
- description ? /* @__PURE__ */ jsx61("p", { className: "mt-1 text-sm text-[var(--tapiz-text-muted)]", children: description }) : null
2367
+ title ? /* @__PURE__ */ jsx61("h2", { className: "text-lg font-semibold text-(--tapiz-text-primary)", children: title }) : null,
2368
+ description ? /* @__PURE__ */ jsx61("p", { className: "mt-1 text-sm text-(--tapiz-text-muted)", children: description }) : null
2369
2369
  ] }),
2370
- /* @__PURE__ */ jsx61("button", { type: "button", onClick: onClose, className: "border border-[var(--tapiz-border-subtle)] px-2 py-1 font-mono text-sm text-[var(--tapiz-text-muted)] hover:text-[var(--tapiz-text-primary)]", children: "\xD7" })
2370
+ /* @__PURE__ */ jsx61("button", { type: "button", onClick: onClose, className: "border border-(--tapiz-border-subtle) px-2 py-1 font-mono text-sm text-(--tapiz-text-muted) hover:text-(--tapiz-text-primary)", children: "\xD7" })
2371
2371
  ] }),
2372
2372
  /* @__PURE__ */ jsx61("div", { className: "max-h-[calc(100vh-9rem)] overflow-auto p-5", children }),
2373
- footer ? /* @__PURE__ */ jsx61("footer", { className: "border-t border-[var(--tapiz-border-subtle)] p-4", children: footer }) : null
2373
+ footer ? /* @__PURE__ */ jsx61("footer", { className: "border-t border-(--tapiz-border-subtle) p-4", children: footer }) : null
2374
2374
  ] })
2375
2375
  ] });
2376
2376
  }
@@ -3057,14 +3057,14 @@ function PasswordInput({
3057
3057
  return /* @__PURE__ */ jsxs74(
3058
3058
  "div",
3059
3059
  {
3060
- className: `flex border border-[var(--tapiz-border-strong)] bg-[var(--tapiz-bg-surface)] focus-within:border-[var(--tapiz-border-focus)] focus-within:shadow-[inset_3px_0_0_0_var(--tapiz-signal)] ${className}`,
3060
+ className: `flex border border-(--tapiz-border-strong) bg-(--tapiz-bg-surface) focus-within:border-(--tapiz-border-focus) focus-within:shadow-[inset_3px_0_0_0_var(--tapiz-signal)] ${className}`,
3061
3061
  children: [
3062
3062
  /* @__PURE__ */ jsx97(
3063
3063
  "input",
3064
3064
  {
3065
3065
  ...props,
3066
3066
  type: visible ? "text" : "password",
3067
- className: "min-w-0 flex-1 border-0 bg-transparent px-3 py-2 text-sm text-[var(--tapiz-text-primary)] outline-none"
3067
+ className: "min-w-0 flex-1 border-0 bg-transparent px-3 py-2 text-sm text-(--tapiz-text-primary) outline-none focus:shadow-none!"
3068
3068
  }
3069
3069
  ),
3070
3070
  /* @__PURE__ */ jsx97(
@@ -3075,7 +3075,7 @@ function PasswordInput({
3075
3075
  "aria-pressed": visible,
3076
3076
  onClick: () => setVisible((v) => !v),
3077
3077
  tabIndex: -1,
3078
- className: "grid place-items-center px-3 text-[var(--tapiz-text-muted)] transition-colors hover:text-[var(--tapiz-text-primary)]",
3078
+ className: "grid place-items-center px-3 text-(--tapiz-text-muted) transition-colors hover:text-(--tapiz-text-primary)",
3079
3079
  children: visible ? /* @__PURE__ */ jsx97(EyeOff, { size: 15 }) : /* @__PURE__ */ jsx97(Eye, { size: 15 })
3080
3080
  }
3081
3081
  )