@spark-ui/divider 9.1.3 → 9.1.5

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
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [9.1.5](https://github.com/adevinta/spark/compare/v9.1.4...v9.1.5) (2025-02-19)
7
+
8
+ **Note:** Version bump only for package @spark-ui/divider
9
+
10
+ ## [9.1.4](https://github.com/adevinta/spark/compare/v9.1.3...v9.1.4) (2025-02-19)
11
+
12
+ **Note:** Version bump only for package @spark-ui/divider
13
+
6
14
  ## [9.1.3](https://github.com/adevinta/spark/compare/v9.1.2...v9.1.3) (2025-02-19)
7
15
 
8
16
  **Note:** Version bump only for package @spark-ui/divider
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),u=require("@radix-ui/react-separator"),a=require("class-variance-authority"),e=require("@spark-ui/internal-utils"),y=[{intent:"current",isEmpty:!0,class:e.tw(["border-current"])},{intent:"current",isEmpty:!1,class:e.tw(["before:border-current after:border-current"])},{intent:"outline",isEmpty:!0,class:e.tw(["border-outline"])},{intent:"outline",isEmpty:!1,class:e.tw(["before:border-outline after:border-outline"])}],h=a.cva(["overflow-hidden group"],{variants:{isEmpty:{true:["border-solid"],false:["inline-flex items-center","after:border-solid before:border-solid"]},orientation:{vertical:["w-fit inline-flex"],horizontal:["w-full"]},writingMode:{"horizontal-tb":[],"vertical-lr":[]},alignment:{start:[],end:[],center:[]},intent:{current:[],outline:[]}},defaultVariants:{orientation:"horizontal",writingMode:"horizontal-tb",alignment:"center",intent:"outline"},compoundVariants:[{isEmpty:!0,orientation:"horizontal",class:e.tw(["my-lg border-t-sm"])},{isEmpty:!0,orientation:"vertical",class:e.tw(["mx-lg min-h-sz-24 border-l-sm"])},{isEmpty:!1,orientation:"horizontal",writingMode:"horizontal-tb",class:e.tw(["flex-row my-sm grow-0","before:border-t-sm","after:border-t-sm","*:px-lg"])},{isEmpty:!1,orientation:"vertical",writingMode:"horizontal-tb",class:e.tw(["flex-col mx-sm","before:border-l-sm","after:border-l-sm","*:py-lg"])},{isEmpty:!1,orientation:"vertical",writingMode:"vertical-lr",class:e.tw(["flex-col mx-sm","before:border-l-sm","after:border-l-sm","*:px-lg"])},{isEmpty:!1,orientation:"horizontal",alignment:"end",class:e.tw(["after:w-sz-40 before:grow after:grow-0"])},{isEmpty:!1,orientation:"horizontal",alignment:"start",class:e.tw(["before:w-sz-40 before:grow-0 after:grow"])},{isEmpty:!1,orientation:"horizontal",alignment:"center",class:e.tw(["justify-center before:grow after:grow"])},{isEmpty:!1,orientation:"vertical",alignment:"end",class:e.tw(["after:h-sz-40 before:grow after:grow-0 before:min-h-sz-40"])},{isEmpty:!1,orientation:"vertical",alignment:"start",class:e.tw(["before:h-sz-40 before:grow-0 after:grow after:min-h-sz-40"])},{isEmpty:!1,orientation:"vertical",alignment:"center",class:e.tw(["justify-center before:grow after:grow before:min-h-sz-40 after:min-h-sz-40"])},...y]}),c=({asChild:t,className:i,isDecorative:n=!1,children:r,orientation:l="horizontal",writingMode:s="horizontal-tb",alignment:f="center",intent:g="outline",ref:w,...b})=>{const p=t?!r?.props?.children:!r;return m.createElement(u.Root,{"data-spark-component":"divider",asChild:t,className:a.cx(h({isEmpty:p,orientation:l,alignment:f,intent:g,writingMode:s}),i),orientation:l,ref:w,decorative:n,...b,"data-writing-mode":s},r)};c.displayName="Divider";const d=({children:t,ref:i,className:n,...r})=>t?m.createElement("span",{ref:i,...r,className:a.cx("group-data-[writing-mode=vertical-lr]:[writing-mode:vertical-lr]",n)},t):null;d.displayName="Divider.Content";const o=Object.assign(c,{Content:d});o.displayName="Divider",o.Content.displayName="Divider.Content",exports.Divider=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),a=require("class-variance-authority"),u=require("radix-ui"),e=require("@spark-ui/internal-utils"),y=[{intent:"current",isEmpty:!0,class:e.tw(["border-current"])},{intent:"current",isEmpty:!1,class:e.tw(["before:border-current after:border-current"])},{intent:"outline",isEmpty:!0,class:e.tw(["border-outline"])},{intent:"outline",isEmpty:!1,class:e.tw(["before:border-outline after:border-outline"])}],h=a.cva(["overflow-hidden group"],{variants:{isEmpty:{true:["border-solid"],false:["inline-flex items-center","after:border-solid before:border-solid"]},orientation:{vertical:["w-fit inline-flex"],horizontal:["w-full"]},writingMode:{"horizontal-tb":[],"vertical-lr":[]},alignment:{start:[],end:[],center:[]},intent:{current:[],outline:[]}},defaultVariants:{orientation:"horizontal",writingMode:"horizontal-tb",alignment:"center",intent:"outline"},compoundVariants:[{isEmpty:!0,orientation:"horizontal",class:e.tw(["my-lg border-t-sm"])},{isEmpty:!0,orientation:"vertical",class:e.tw(["mx-lg min-h-sz-24 border-l-sm"])},{isEmpty:!1,orientation:"horizontal",writingMode:"horizontal-tb",class:e.tw(["flex-row my-sm grow-0","before:border-t-sm","after:border-t-sm","*:px-lg"])},{isEmpty:!1,orientation:"vertical",writingMode:"horizontal-tb",class:e.tw(["flex-col mx-sm","before:border-l-sm","after:border-l-sm","*:py-lg"])},{isEmpty:!1,orientation:"vertical",writingMode:"vertical-lr",class:e.tw(["flex-col mx-sm","before:border-l-sm","after:border-l-sm","*:px-lg"])},{isEmpty:!1,orientation:"horizontal",alignment:"end",class:e.tw(["after:w-sz-40 before:grow after:grow-0"])},{isEmpty:!1,orientation:"horizontal",alignment:"start",class:e.tw(["before:w-sz-40 before:grow-0 after:grow"])},{isEmpty:!1,orientation:"horizontal",alignment:"center",class:e.tw(["justify-center before:grow after:grow"])},{isEmpty:!1,orientation:"vertical",alignment:"end",class:e.tw(["after:h-sz-40 before:grow after:grow-0 before:min-h-sz-40"])},{isEmpty:!1,orientation:"vertical",alignment:"start",class:e.tw(["before:h-sz-40 before:grow-0 after:grow after:min-h-sz-40"])},{isEmpty:!1,orientation:"vertical",alignment:"center",class:e.tw(["justify-center before:grow after:grow before:min-h-sz-40 after:min-h-sz-40"])},...y]}),c=({asChild:t,className:i,isDecorative:n=!1,children:r,orientation:l="horizontal",writingMode:s="horizontal-tb",alignment:f="center",intent:g="outline",ref:w,...b})=>{const p=t?!r?.props?.children:!r;return m.createElement(u.Separator.Root,{"data-spark-component":"divider",asChild:t,className:a.cx(h({isEmpty:p,orientation:l,alignment:f,intent:g,writingMode:s}),i),orientation:l,ref:w,decorative:n,...b,"data-writing-mode":s},r)};c.displayName="Divider";const d=({children:t,ref:i,className:n,...r})=>t?m.createElement("span",{ref:i,...r,className:a.cx("group-data-[writing-mode=vertical-lr]:[writing-mode:vertical-lr]",n)},t):null;d.displayName="Divider.Content";const o=Object.assign(c,{Content:d});o.displayName="Divider",o.Content.displayName="Divider.Content",exports.Divider=o;
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import l from "react";
2
- import { Root as h } from "@radix-ui/react-separator";
3
- import { cva as y, cx as m } from "class-variance-authority";
2
+ import { cva as h, cx as m } from "class-variance-authority";
3
+ import { Separator as y } from "radix-ui";
4
4
  import { tw as e } from "@spark-ui/internal-utils";
5
- const u = [{ intent: "current", isEmpty: !0, class: e(["border-current"]) }, { intent: "current", isEmpty: !1, class: e(["before:border-current after:border-current"]) }, { intent: "outline", isEmpty: !0, class: e(["border-outline"]) }, { intent: "outline", isEmpty: !1, class: e(["before:border-outline after:border-outline"]) }], v = y(["overflow-hidden group"], { variants: { isEmpty: { true: ["border-solid"], false: ["inline-flex items-center", "after:border-solid before:border-solid"] }, orientation: { vertical: ["w-fit inline-flex"], horizontal: ["w-full"] }, writingMode: { "horizontal-tb": [], "vertical-lr": [] }, alignment: { start: [], end: [], center: [] }, intent: { current: [], outline: [] } }, defaultVariants: { orientation: "horizontal", writingMode: "horizontal-tb", alignment: "center", intent: "outline" }, compoundVariants: [{ isEmpty: !0, orientation: "horizontal", class: e(["my-lg border-t-sm"]) }, { isEmpty: !0, orientation: "vertical", class: e(["mx-lg min-h-sz-24 border-l-sm"]) }, { isEmpty: !1, orientation: "horizontal", writingMode: "horizontal-tb", class: e(["flex-row my-sm grow-0", "before:border-t-sm", "after:border-t-sm", "*:px-lg"]) }, { isEmpty: !1, orientation: "vertical", writingMode: "horizontal-tb", class: e(["flex-col mx-sm", "before:border-l-sm", "after:border-l-sm", "*:py-lg"]) }, { isEmpty: !1, orientation: "vertical", writingMode: "vertical-lr", class: e(["flex-col mx-sm", "before:border-l-sm", "after:border-l-sm", "*:px-lg"]) }, { isEmpty: !1, orientation: "horizontal", alignment: "end", class: e(["after:w-sz-40 before:grow after:grow-0"]) }, { isEmpty: !1, orientation: "horizontal", alignment: "start", class: e(["before:w-sz-40 before:grow-0 after:grow"]) }, { isEmpty: !1, orientation: "horizontal", alignment: "center", class: e(["justify-center before:grow after:grow"]) }, { isEmpty: !1, orientation: "vertical", alignment: "end", class: e(["after:h-sz-40 before:grow after:grow-0 before:min-h-sz-40"]) }, { isEmpty: !1, orientation: "vertical", alignment: "start", class: e(["before:h-sz-40 before:grow-0 after:grow after:min-h-sz-40"]) }, { isEmpty: !1, orientation: "vertical", alignment: "center", class: e(["justify-center before:grow after:grow before:min-h-sz-40 after:min-h-sz-40"]) }, ...u] }), c = ({ asChild: t, className: i, isDecorative: o = !1, children: r, orientation: n = "horizontal", writingMode: a = "horizontal-tb", alignment: f = "center", intent: g = "outline", ref: b, ...p }) => {
5
+ const u = [{ intent: "current", isEmpty: !0, class: e(["border-current"]) }, { intent: "current", isEmpty: !1, class: e(["before:border-current after:border-current"]) }, { intent: "outline", isEmpty: !0, class: e(["border-outline"]) }, { intent: "outline", isEmpty: !1, class: e(["before:border-outline after:border-outline"]) }], v = h(["overflow-hidden group"], { variants: { isEmpty: { true: ["border-solid"], false: ["inline-flex items-center", "after:border-solid before:border-solid"] }, orientation: { vertical: ["w-fit inline-flex"], horizontal: ["w-full"] }, writingMode: { "horizontal-tb": [], "vertical-lr": [] }, alignment: { start: [], end: [], center: [] }, intent: { current: [], outline: [] } }, defaultVariants: { orientation: "horizontal", writingMode: "horizontal-tb", alignment: "center", intent: "outline" }, compoundVariants: [{ isEmpty: !0, orientation: "horizontal", class: e(["my-lg border-t-sm"]) }, { isEmpty: !0, orientation: "vertical", class: e(["mx-lg min-h-sz-24 border-l-sm"]) }, { isEmpty: !1, orientation: "horizontal", writingMode: "horizontal-tb", class: e(["flex-row my-sm grow-0", "before:border-t-sm", "after:border-t-sm", "*:px-lg"]) }, { isEmpty: !1, orientation: "vertical", writingMode: "horizontal-tb", class: e(["flex-col mx-sm", "before:border-l-sm", "after:border-l-sm", "*:py-lg"]) }, { isEmpty: !1, orientation: "vertical", writingMode: "vertical-lr", class: e(["flex-col mx-sm", "before:border-l-sm", "after:border-l-sm", "*:px-lg"]) }, { isEmpty: !1, orientation: "horizontal", alignment: "end", class: e(["after:w-sz-40 before:grow after:grow-0"]) }, { isEmpty: !1, orientation: "horizontal", alignment: "start", class: e(["before:w-sz-40 before:grow-0 after:grow"]) }, { isEmpty: !1, orientation: "horizontal", alignment: "center", class: e(["justify-center before:grow after:grow"]) }, { isEmpty: !1, orientation: "vertical", alignment: "end", class: e(["after:h-sz-40 before:grow after:grow-0 before:min-h-sz-40"]) }, { isEmpty: !1, orientation: "vertical", alignment: "start", class: e(["before:h-sz-40 before:grow-0 after:grow after:min-h-sz-40"]) }, { isEmpty: !1, orientation: "vertical", alignment: "center", class: e(["justify-center before:grow after:grow before:min-h-sz-40 after:min-h-sz-40"]) }, ...u] }), c = ({ asChild: t, className: i, isDecorative: o = !1, children: r, orientation: n = "horizontal", writingMode: a = "horizontal-tb", alignment: f = "center", intent: g = "outline", ref: b, ...p }) => {
6
6
  const w = t ? !r?.props?.children : !r;
7
- return l.createElement(h, { "data-spark-component": "divider", asChild: t, className: m(v({ isEmpty: w, orientation: n, alignment: f, intent: g, writingMode: a }), i), orientation: n, ref: b, decorative: o, ...p, "data-writing-mode": a }, r);
7
+ return l.createElement(y.Root, { "data-spark-component": "divider", asChild: t, className: m(v({ isEmpty: w, orientation: n, alignment: f, intent: g, writingMode: a }), i), orientation: n, ref: b, decorative: o, ...p, "data-writing-mode": a }, r);
8
8
  };
9
9
  c.displayName = "Divider";
10
10
  const d = ({ children: t, ref: i, className: o, ...r }) => t ? l.createElement("span", { ref: i, ...r, className: m("group-data-[writing-mode=vertical-lr]:[writing-mode:vertical-lr]", o) }, t) : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-ui/divider",
3
- "version": "9.1.3",
3
+ "version": "9.1.5",
4
4
  "description": "A separator between two elements, usually consisting of a horizontal line.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -23,8 +23,8 @@
23
23
  "build": "vite build"
24
24
  },
25
25
  "dependencies": {
26
- "@radix-ui/react-separator": "1.1.1",
27
- "@spark-ui/internal-utils": "^9.1.3"
26
+ "@spark-ui/internal-utils": "^9.1.5",
27
+ "radix-ui": "1.1.3"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "react": "^19.0",
@@ -45,5 +45,5 @@
45
45
  },
46
46
  "homepage": "https://sparkui.vercel.app",
47
47
  "license": "MIT",
48
- "gitHead": "ad661a89667c2af4dd86045456ff623cb0cae9cf"
48
+ "gitHead": "40f516e5bc7cb13131a2ded3b1240638897302bf"
49
49
  }