wimui 0.32.0 → 0.32.1

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,2 +1,2 @@
1
1
  "use client";
2
- const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("./divider.module.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("classnames");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a=({orientation:e=`horizontal`,thickness:n=1,className:a,style:o,...s})=>{let c={...o,"--wim-divider-thickness":`${n}px`};return(0,i.jsx)(`div`,{role:`separator`,"aria-orientation":e,className:(0,r.default)(`wim-divider`,t.default.root,t.default[e],a),style:c,...s})};exports.Divider=a;
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("./divider.module.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("classnames");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a=({orientation:e=`horizontal`,thickness:n,className:a,style:o,...s})=>{let c={...o,...n===void 0?null:{"--wim-divider-thickness":`${n}px`}};return(0,i.jsx)(`div`,{role:`separator`,"aria-orientation":e,className:(0,r.default)(`wim-divider`,t.default.root,t.default[e],a),style:c,...s})};exports.Divider=a;
@@ -2,7 +2,11 @@ import { default as React } from 'react';
2
2
  export type DividerProps = React.ComponentPropsWithoutRef<"div"> & {
3
3
  /** Orientation of the divider */
4
4
  orientation?: "horizontal" | "vertical";
5
- /** Thickness of the line (px) */
5
+ /**
6
+ * Thickness of the line, in pixels. Left out, the line is as thick as every
7
+ * other hairline in the theme, so a theme that thickens its borders thickens
8
+ * this too.
9
+ */
6
10
  thickness?: number;
7
11
  };
8
12
  /**
@@ -4,10 +4,10 @@ import "react";
4
4
  import t from "classnames";
5
5
  import { jsx as n } from "react/jsx-runtime";
6
6
  //#region src/components/layout/Divider/Divider.tsx
7
- var r = ({ orientation: r = "horizontal", thickness: i = 1, className: a, style: o, ...s }) => {
7
+ var r = ({ orientation: r = "horizontal", thickness: i, className: a, style: o, ...s }) => {
8
8
  let c = {
9
9
  ...o,
10
- "--wim-divider-thickness": `${i}px`
10
+ ...i === void 0 ? null : { "--wim-divider-thickness": `${i}px` }
11
11
  };
12
12
  return /* @__PURE__ */ n("div", {
13
13
  role: "separator",
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- var e=`_root_ymvu1_2`,t=`_horizontal_ymvu1_9`,n=`_vertical_ymvu1_14`,r={root:e,horizontal:t,vertical:n};exports.default=r,exports.horizontal=t,exports.root=e,exports.vertical=n;
2
+ var e=`_root_lmnz4_2`,t=`_horizontal_lmnz4_9`,n=`_vertical_lmnz4_14`,r={root:e,horizontal:t,vertical:n};exports.default=r,exports.horizontal=t,exports.root=e,exports.vertical=n;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  //#region src/components/layout/Divider/divider.module.scss
3
- var e = "_root_ymvu1_2", t = "_horizontal_ymvu1_9", n = "_vertical_ymvu1_14", r = {
3
+ var e = "_root_lmnz4_2", t = "_horizontal_lmnz4_9", n = "_vertical_lmnz4_14", r = {
4
4
  root: e,
5
5
  horizontal: t,
6
6
  vertical: n
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## What this is
6
6
 
7
- **wimui** v0.32.0 — a React 19 component library: 225 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
7
+ **wimui** v0.32.1 — a React 19 component library: 225 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
8
8
 
9
9
  ## Install & required setup
10
10
 
@@ -733,7 +733,9 @@ under an `h1` needs `2`, one under an `h2` section keeps `3`.
733
733
  - `label: string` — Dashboard heading label.
734
734
  - **Divider** — Content separator (aka Separator, Horizontal Rule)
735
735
  - `orientation: "horizontal" | "vertical"` = "horizontal" — Orientation of the divider
736
- - `thickness: number` = 1 — Thickness of the line (px)
736
+ - `thickness: number` — Thickness of the line, in pixels. Left out, the line is as thick as every
737
+ other hairline in the theme, so a theme that thickens its borders thickens
738
+ this too.
737
739
  - **Flex** — Flexible layout
738
740
  - `asChild: boolean` = false — If true, the flex will be rendered as its child, merging its props onto that child.
739
741
  - `direction: "row" | "row-reverse" | "column" | "column-reverse"` = "row" — Flex direction
package/dist/llms.txt CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## What this is
6
6
 
7
- **wimui** v0.32.0 — a React 19 component library: 225 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
7
+ **wimui** v0.32.1 — a React 19 component library: 225 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
8
8
 
9
9
  ## Install & required setup
10
10