commerce-toolkit 0.3.0 → 0.4.0
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/dist/Combination-BYVrsWzR.js +674 -0
- package/dist/Combination-BYVrsWzR.js.map +1 -0
- package/dist/Combination-CMyKl2HP.cjs +42 -0
- package/dist/Combination-CMyKl2HP.cjs.map +1 -0
- package/dist/{checkbox-indicator-os50dewx.js → checkbox-indicator-C9hf5wZD.js} +2 -2
- package/dist/{checkbox-indicator-os50dewx.js.map → checkbox-indicator-C9hf5wZD.js.map} +1 -1
- package/dist/{checkbox-indicator-GNoyS6OL.cjs → checkbox-indicator-D3X4eolv.cjs} +2 -2
- package/dist/{checkbox-indicator-GNoyS6OL.cjs.map → checkbox-indicator-D3X4eolv.cjs.map} +1 -1
- package/dist/{checkbox-root-B9W2Y8rY.js → checkbox-root-CFYnDr-v.js} +115 -118
- package/dist/checkbox-root-CFYnDr-v.js.map +1 -0
- package/dist/checkbox-root-oz6K_T-0.cjs +2 -0
- package/dist/checkbox-root-oz6K_T-0.cjs.map +1 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/compare-card.cjs +1 -1
- package/dist/compare-card.js +2 -2
- package/dist/components/form-status/form-status.d.ts +27 -0
- package/dist/components/form-status/form-status.d.ts.map +1 -0
- package/dist/components/form-status/index.d.ts +3 -0
- package/dist/components/form-status/index.d.ts.map +1 -0
- package/dist/components/form-status/primitives/form-status-root.d.ts +7 -0
- package/dist/components/form-status/primitives/form-status-root.d.ts.map +1 -0
- package/dist/components/form-status/primitives.d.ts +2 -0
- package/dist/components/form-status/primitives.d.ts.map +1 -0
- package/dist/components/logo/index.d.ts +0 -1
- package/dist/components/logo/index.d.ts.map +1 -1
- package/dist/components/logo/primitives/logo-text.d.ts +3 -1
- package/dist/components/logo/primitives/logo-text.d.ts.map +1 -1
- package/dist/components/navigation-menu/index.d.ts +3 -0
- package/dist/components/navigation-menu/index.d.ts.map +1 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +50 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-content.d.ts +5 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-content.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-grid-column.d.ts +4 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-grid-column.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-grid-label.d.ts +5 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-grid-label.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-grid-link.d.ts +5 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-grid-link.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-grid.d.ts +4 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-grid.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-item.d.ts +5 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-item.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-link.d.ts +5 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-link.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-list.d.ts +5 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-list.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-panel.d.ts +4 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-panel.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-root.d.ts +8 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-root.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-slot.d.ts +4 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-slot.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-trigger.d.ts +5 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-trigger.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-viewport.d.ts +5 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-viewport.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives.d.ts +13 -0
- package/dist/components/navigation-menu/primitives.d.ts.map +1 -0
- package/dist/{dropdown-menu-node-zOplWIzZ.cjs → dropdown-menu-node-C0Oe_nJV.cjs} +3 -3
- package/dist/{dropdown-menu-node-zOplWIzZ.cjs.map → dropdown-menu-node-C0Oe_nJV.cjs.map} +1 -1
- package/dist/{dropdown-menu-node-4Pe3uXjC.js → dropdown-menu-node-CrYNKRZ0.js} +20 -19
- package/dist/{dropdown-menu-node-4Pe3uXjC.js.map → dropdown-menu-node-CrYNKRZ0.js.map} +1 -1
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/form-status.cjs +2 -0
- package/dist/form-status.cjs.map +1 -0
- package/dist/form-status.js +33 -0
- package/dist/form-status.js.map +1 -0
- package/dist/index-BSyIT6yC.cjs +2 -0
- package/dist/index-BSyIT6yC.cjs.map +1 -0
- package/dist/index-BZPx6jYI.js +9 -0
- package/dist/index-BZPx6jYI.js.map +1 -0
- package/dist/index-CY_4_uMy.cjs +6 -0
- package/dist/{index-BppAzNV8.cjs.map → index-CY_4_uMy.cjs.map} +1 -1
- package/dist/index-DYxWvftI.cjs +2 -0
- package/dist/index-DYxWvftI.cjs.map +1 -0
- package/dist/index-DoAIVWjZ.js +135 -0
- package/dist/index-DoAIVWjZ.js.map +1 -0
- package/dist/{index-ChSlzMYI.js → index-DthUnpqb.js} +17 -16
- package/dist/{index-ChSlzMYI.js.map → index-DthUnpqb.js.map} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +678 -678
- package/dist/index.js.map +1 -1
- package/dist/logo-skeleton-CgTRdVwc.js +44 -0
- package/dist/logo-skeleton-CgTRdVwc.js.map +1 -0
- package/dist/logo-skeleton-CpbzziY-.cjs +2 -0
- package/dist/logo-skeleton-CpbzziY-.cjs.map +1 -0
- package/dist/logo.cjs +1 -1
- package/dist/logo.cjs.map +1 -1
- package/dist/logo.js +4 -10
- package/dist/logo.js.map +1 -1
- package/dist/{modal-title-CuB6IpxH.cjs → modal-title-BrR2NosO.cjs} +2 -2
- package/dist/{modal-title-CuB6IpxH.cjs.map → modal-title-BrR2NosO.cjs.map} +1 -1
- package/dist/{modal-title-MIH3Xsp2.js → modal-title-ji5CKbNn.js} +2 -2
- package/dist/{modal-title-MIH3Xsp2.js.map → modal-title-ji5CKbNn.js.map} +1 -1
- package/dist/modal.cjs +1 -1
- package/dist/modal.js +1 -1
- package/dist/navigation-menu.cjs +2 -0
- package/dist/navigation-menu.cjs.map +1 -0
- package/dist/navigation-menu.js +880 -0
- package/dist/navigation-menu.js.map +1 -0
- package/dist/{product-card-label-D43AXtRL.cjs → product-card-label-B1EwGQhM.cjs} +2 -2
- package/dist/{product-card-label-D43AXtRL.cjs.map → product-card-label-B1EwGQhM.cjs.map} +1 -1
- package/dist/{product-card-label-CJmC9ICf.js → product-card-label-Djn5qQC4.js} +3 -3
- package/dist/{product-card-label-CJmC9ICf.js.map → product-card-label-Djn5qQC4.js.map} +1 -1
- package/dist/{product-card-skeleton-CCQkDMNl.cjs → product-card-skeleton-B2lGkIgo.cjs} +2 -2
- package/dist/{product-card-skeleton-CCQkDMNl.cjs.map → product-card-skeleton-B2lGkIgo.cjs.map} +1 -1
- package/dist/{product-card-skeleton-Dkqf-bfA.js → product-card-skeleton-Rvy8Ocb0.js} +2 -2
- package/dist/{product-card-skeleton-Dkqf-bfA.js.map → product-card-skeleton-Rvy8Ocb0.js.map} +1 -1
- package/dist/product-card.cjs +1 -1
- package/dist/product-card.js +2 -2
- package/dist/{side-panel-close-DVJwOxdM.js → side-panel-close-BtypdE9q.js} +2 -2
- package/dist/{side-panel-close-DVJwOxdM.js.map → side-panel-close-BtypdE9q.js.map} +1 -1
- package/dist/{side-panel-close-Bjcn4BEE.cjs → side-panel-close-DIP8gLRZ.cjs} +2 -2
- package/dist/{side-panel-close-Bjcn4BEE.cjs.map → side-panel-close-DIP8gLRZ.cjs.map} +1 -1
- package/dist/side-panel.cjs +1 -1
- package/dist/side-panel.js +1 -1
- package/package.json +21 -1
- package/dist/Combination-49q9aXeT.js +0 -801
- package/dist/Combination-49q9aXeT.js.map +0 -1
- package/dist/Combination-DAFZFTdA.cjs +0 -42
- package/dist/Combination-DAFZFTdA.cjs.map +0 -1
- package/dist/checkbox-root-B9W2Y8rY.js.map +0 -1
- package/dist/checkbox-root-g9HcYZCP.cjs +0 -2
- package/dist/checkbox-root-g9HcYZCP.cjs.map +0 -1
- package/dist/components/logo/logo.d.ts +0 -32
- package/dist/components/logo/logo.d.ts.map +0 -1
- package/dist/index-BppAzNV8.cjs +0 -6
- package/dist/logo-text-CK4vcNPY.js +0 -39
- package/dist/logo-text-CK4vcNPY.js.map +0 -1
- package/dist/logo-text-Db3yd3b1.cjs +0 -2
- package/dist/logo-text-Db3yd3b1.cjs.map +0 -1
package/dist/product-card.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { P as m, u as d } from "./product-card-root-4Xz4-pdL.js";
|
|
2
2
|
import { jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import { c as o } from "./utils-BOGlfttm.js";
|
|
4
|
-
import { c as p, l as f, k as P, f as b, d as x, g as C, b as k, m as g, e as h, P as v, j, i as L, a as S, h as T } from "./product-card-label-
|
|
5
|
-
import { P as B } from "./product-card-skeleton-
|
|
4
|
+
import { c as p, l as f, k as P, f as b, d as x, g as C, b as k, m as g, e as h, P as v, j, i as L, a as S, h as T } from "./product-card-label-Djn5qQC4.js";
|
|
5
|
+
import { P as B } from "./product-card-skeleton-Rvy8Ocb0.js";
|
|
6
6
|
function i({ className: a, children: e, ...t }) {
|
|
7
7
|
return /* @__PURE__ */ s("div", { className: o("relative", a), "data-slot": "product-card-content", ...t, children: e });
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { R as o, T as l, P as r, O as s, C as d, a as f, b as c } from "./index-
|
|
2
|
+
import { R as o, T as l, P as r, O as s, C as d, a as f, b as c } from "./index-DthUnpqb.js";
|
|
3
3
|
import { c as i } from "./utils-BOGlfttm.js";
|
|
4
4
|
function g({ ...e }) {
|
|
5
5
|
return /* @__PURE__ */ n(o, { "data-slot": "side-panel-root", ...e });
|
|
@@ -83,4 +83,4 @@ export {
|
|
|
83
83
|
S as g,
|
|
84
84
|
N as h
|
|
85
85
|
};
|
|
86
|
-
//# sourceMappingURL=side-panel-close-
|
|
86
|
+
//# sourceMappingURL=side-panel-close-BtypdE9q.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-panel-close-
|
|
1
|
+
{"version":3,"file":"side-panel-close-BtypdE9q.js","sources":["../src/components/side-panel/primitives/side-panel-root.tsx","../src/components/side-panel/primitives/side-panel-trigger.tsx","../src/components/side-panel/primitives/side-panel-portal.tsx","../src/components/side-panel/primitives/side-panel-overlay.tsx","../src/components/side-panel/primitives/side-panel-content.tsx","../src/components/side-panel/primitives/side-panel-body.tsx","../src/components/side-panel/primitives/side-panel-header.tsx","../src/components/side-panel/primitives/side-panel-title.tsx","../src/components/side-panel/primitives/side-panel-close.tsx"],"sourcesContent":["import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type SidePanelRootProps = ComponentProps<typeof Dialog.Root>;\n\nexport function SidePanelRoot({ ...props }: SidePanelRootProps) {\n return <Dialog.Root data-slot=\"side-panel-root\" {...props} />;\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type SidePanelTriggerProps = ComponentProps<typeof Dialog.Trigger>;\n\nexport function SidePanelTrigger({ ...props }: SidePanelTriggerProps) {\n return <Dialog.Trigger data-slot=\"side-panel-trigger\" {...props} />;\n}\n","'use client';\n\nimport * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type SidePanelPortalProps = ComponentProps<typeof Dialog.Portal>;\n\nexport function SidePanelPortal({ children, ...props }: SidePanelPortalProps) {\n return (\n <Dialog.Portal data-slot=\"side-panel-portal\" {...props}>\n {children}\n </Dialog.Portal>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type SidePanelOverlayProps = ComponentProps<typeof Dialog.Overlay>;\n\nexport function SidePanelOverlay({ children, className, ...props }: SidePanelOverlayProps) {\n return (\n <Dialog.Overlay\n className={cn(\n 'fixed inset-0 z-30 overflow-hidden bg-[var(--side-panel-overlay-background,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] @container',\n className,\n )}\n data-slot=\"side-panel-overlay\"\n {...props}\n >\n {children}\n </Dialog.Overlay>\n );\n}\n","'use client';\n\nimport * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type SidePanelContentProps = ComponentProps<typeof Dialog.Content>;\n\nexport function SidePanelContent({ children, className, ...props }: SidePanelContentProps) {\n return (\n <Dialog.Content\n className={cn(\n 'fixed inset-y-0 right-0 flex w-96 max-w-full flex-col bg-[var(--side-panel-background,hsl(var(--background)))] font-[var(--side-panel-content-font-family,var(--font-family-body))] transition duration-500 [animation-timing-function:cubic-bezier(0.25,1,0,1)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right',\n className,\n )}\n data-slot=\"side-panel-content\"\n {...props}\n >\n {children}\n </Dialog.Content>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type SidePanelBodyProps = ComponentProps<'div'>;\n\nexport function SidePanelBody({ children, className, ...props }: SidePanelBodyProps) {\n return (\n <div className={cn('px-6 pb-6 @md:px-8 @md:pb-8', className)} {...props}>\n {children}\n </div>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type SidePanelHeaderProps = ComponentProps<'div'>;\n\nexport function SidePanelHeader({ children, className, ...props }: SidePanelHeaderProps) {\n return (\n <header\n className={cn(\n 'flex items-center justify-between gap-2 px-6 pb-4 pt-4 @md:px-8 @md:pt-7',\n className,\n )}\n data-slot=\"side-panel-header\"\n {...props}\n >\n {children}\n </header>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type SidePanelTitleProps = ComponentProps<typeof Dialog.Title>;\n\nexport function SidePanelTitle({ children, className, ...props }: SidePanelTitleProps) {\n return (\n <Dialog.Title\n className={cn(\n 'text-2xl font-medium text-[var(--side-panel-title-text,hsl(var(--foreground)))] [font-family:var(--side-panel-title-font-family,var(--font-family-heading))] @lg:text-3xl',\n className,\n )}\n data-slot=\"side-panel-title\"\n {...props}\n >\n {children}\n </Dialog.Title>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type SidePanelCloseProps = ComponentProps<typeof Dialog.Close>;\n\nexport function SidePanelClose({ children, className, ...props }: SidePanelCloseProps) {\n return (\n <Dialog.Close className={cn(className)} data-slot=\"side-panel-close\" {...props}>\n {children}\n </Dialog.Close>\n );\n}\n"],"names":["SidePanelRoot","props","Dialog.Root","SidePanelTrigger","Dialog.Trigger","SidePanelPortal","children","jsx","Dialog.Portal","SidePanelOverlay","className","Dialog.Overlay","cn","SidePanelContent","Dialog.Content","SidePanelBody","SidePanelHeader","SidePanelTitle","Dialog.Title","SidePanelClose","Dialog.Close"],"mappings":";;;AAKO,SAASA,EAAc,EAAE,GAAGC,KAA6B;AAC9D,2BAAQC,GAAA,EAAY,aAAU,mBAAmB,GAAGD,GAAO;AAC7D;ACFO,SA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IAACW;AAAAA,IAAA;AAAA,MACC,WAAWN;AAAA,QACT;AAAA,QACAF;AAAA,MAAA;AAAA,MAEF,aAAU;AAAA,MACT,GAAGT;AAAA,MAEH,UAAAK;AAAA,IAAA;AAAA,EAAA;AAGP;ACbO,SAASa,EAAe,EAAE,UAAAb,GAAU,WAAAI,GAAW,GAAGT,KAA8B;AACrF,SACE,gBAAAM,EAACa,GAAA,EAAa,WAAWR,EAAGF,CAAS,GAAG,aAAU,oBAAoB,GAAGT,GACtE,UAAAK,EAAA,CACH;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),i=require("./index-
|
|
2
|
-
//# sourceMappingURL=side-panel-close-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),i=require("./index-CY_4_uMy.cjs"),l=require("./utils-LBH114_M.cjs");function o({...e}){return n.jsx(i.Root,{"data-slot":"side-panel-root",...e})}function r({...e}){return n.jsx(i.Trigger,{"data-slot":"side-panel-trigger",...e})}function d({children:e,...t}){return n.jsx(i.Portal,{"data-slot":"side-panel-portal",...t,children:e})}function s({children:e,className:t,...a}){return n.jsx(i.Overlay,{className:l.cn("fixed inset-0 z-30 overflow-hidden bg-[var(--side-panel-overlay-background,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] @container",t),"data-slot":"side-panel-overlay",...a,children:e})}function c({children:e,className:t,...a}){return n.jsx(i.Content,{className:l.cn("fixed inset-y-0 right-0 flex w-96 max-w-full flex-col bg-[var(--side-panel-background,hsl(var(--background)))] font-[var(--side-panel-content-font-family,var(--font-family-body))] transition duration-500 [animation-timing-function:cubic-bezier(0.25,1,0,1)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",t),"data-slot":"side-panel-content",...a,children:e})}function u({children:e,className:t,...a}){return n.jsx("div",{className:l.cn("px-6 pb-6 @md:px-8 @md:pb-8",t),...a,children:e})}function f({children:e,className:t,...a}){return n.jsx("header",{className:l.cn("flex items-center justify-between gap-2 px-6 pb-4 pt-4 @md:px-8 @md:pt-7",t),"data-slot":"side-panel-header",...a,children:e})}function x({children:e,className:t,...a}){return n.jsx(i.Title,{className:l.cn("text-2xl font-medium text-[var(--side-panel-title-text,hsl(var(--foreground)))] [font-family:var(--side-panel-title-font-family,var(--font-family-heading))] @lg:text-3xl",t),"data-slot":"side-panel-title",...a,children:e})}function p({children:e,className:t,...a}){return n.jsx(i.Close,{className:l.cn(t),"data-slot":"side-panel-close",...a,children:e})}exports.SidePanelBody=u;exports.SidePanelClose=p;exports.SidePanelContent=c;exports.SidePanelHeader=f;exports.SidePanelOverlay=s;exports.SidePanelPortal=d;exports.SidePanelRoot=o;exports.SidePanelTitle=x;exports.SidePanelTrigger=r;
|
|
2
|
+
//# sourceMappingURL=side-panel-close-DIP8gLRZ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-panel-close-
|
|
1
|
+
{"version":3,"file":"side-panel-close-DIP8gLRZ.cjs","sources":["../src/components/side-panel/primitives/side-panel-root.tsx","../src/components/side-panel/primitives/side-panel-trigger.tsx","../src/components/side-panel/primitives/side-panel-portal.tsx","../src/components/side-panel/primitives/side-panel-overlay.tsx","../src/components/side-panel/primitives/side-panel-content.tsx","../src/components/side-panel/primitives/side-panel-body.tsx","../src/components/side-panel/primitives/side-panel-header.tsx","../src/components/side-panel/primitives/side-panel-title.tsx","../src/components/side-panel/primitives/side-panel-close.tsx"],"sourcesContent":["import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type SidePanelRootProps = ComponentProps<typeof Dialog.Root>;\n\nexport function SidePanelRoot({ ...props }: SidePanelRootProps) {\n return <Dialog.Root data-slot=\"side-panel-root\" {...props} />;\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type SidePanelTriggerProps = ComponentProps<typeof Dialog.Trigger>;\n\nexport function SidePanelTrigger({ ...props }: SidePanelTriggerProps) {\n return <Dialog.Trigger data-slot=\"side-panel-trigger\" {...props} />;\n}\n","'use client';\n\nimport * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type SidePanelPortalProps = ComponentProps<typeof Dialog.Portal>;\n\nexport function SidePanelPortal({ children, ...props }: SidePanelPortalProps) {\n return (\n <Dialog.Portal data-slot=\"side-panel-portal\" {...props}>\n {children}\n </Dialog.Portal>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type SidePanelOverlayProps = ComponentProps<typeof Dialog.Overlay>;\n\nexport function SidePanelOverlay({ children, className, ...props }: SidePanelOverlayProps) {\n return (\n <Dialog.Overlay\n className={cn(\n 'fixed inset-0 z-30 overflow-hidden bg-[var(--side-panel-overlay-background,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] @container',\n className,\n )}\n data-slot=\"side-panel-overlay\"\n {...props}\n >\n {children}\n </Dialog.Overlay>\n );\n}\n","'use client';\n\nimport * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type SidePanelContentProps = ComponentProps<typeof Dialog.Content>;\n\nexport function SidePanelContent({ children, className, ...props }: SidePanelContentProps) {\n return (\n <Dialog.Content\n className={cn(\n 'fixed inset-y-0 right-0 flex w-96 max-w-full flex-col bg-[var(--side-panel-background,hsl(var(--background)))] font-[var(--side-panel-content-font-family,var(--font-family-body))] transition duration-500 [animation-timing-function:cubic-bezier(0.25,1,0,1)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right',\n className,\n )}\n data-slot=\"side-panel-content\"\n {...props}\n >\n {children}\n </Dialog.Content>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type SidePanelBodyProps = ComponentProps<'div'>;\n\nexport function SidePanelBody({ children, className, ...props }: SidePanelBodyProps) {\n return (\n <div className={cn('px-6 pb-6 @md:px-8 @md:pb-8', className)} {...props}>\n {children}\n </div>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type SidePanelHeaderProps = ComponentProps<'div'>;\n\nexport function SidePanelHeader({ children, className, ...props }: SidePanelHeaderProps) {\n return (\n <header\n className={cn(\n 'flex items-center justify-between gap-2 px-6 pb-4 pt-4 @md:px-8 @md:pt-7',\n className,\n )}\n data-slot=\"side-panel-header\"\n {...props}\n >\n {children}\n </header>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type SidePanelTitleProps = ComponentProps<typeof Dialog.Title>;\n\nexport function SidePanelTitle({ children, className, ...props }: SidePanelTitleProps) {\n return (\n <Dialog.Title\n className={cn(\n 'text-2xl font-medium text-[var(--side-panel-title-text,hsl(var(--foreground)))] [font-family:var(--side-panel-title-font-family,var(--font-family-heading))] @lg:text-3xl',\n className,\n )}\n data-slot=\"side-panel-title\"\n {...props}\n >\n {children}\n </Dialog.Title>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type SidePanelCloseProps = ComponentProps<typeof Dialog.Close>;\n\nexport function SidePanelClose({ children, className, ...props }: SidePanelCloseProps) {\n return (\n <Dialog.Close className={cn(className)} data-slot=\"side-panel-close\" {...props}>\n {children}\n </Dialog.Close>\n );\n}\n"],"names":["SidePanelRoot","props","Dialog.Root","SidePanelTrigger","Dialog.Trigger","SidePanelPortal","children","jsx","Dialog.Portal","SidePanelOverlay","className","Dialog.Overlay","cn","SidePanelContent","Dialog.Content","SidePanelBody","SidePanelHeader","SidePanelTitle","Dialog.Title","SidePanelClose","Dialog.Close"],"mappings":"sHAKO,SAASA,EAAc,CAAE,GAAGC,GAA6B,CAC9D,aAAQC,EAAAA,KAAA,CAAY,YAAU,kBAAm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SAASa,EAAe,CAAE,SAAAb,EAAU,UAAAI,EAAW,GAAGT,GAA8B,CACrF,OACEM,MAACa,EAAAA,MAAA,CAAa,UAAWR,EAAAA,GAAGF,CAAS,EAAG,YAAU,mBAAoB,GAAGT,EACtE,SAAAK,CAAA,CACH,CAEJ"}
|
package/dist/side-panel.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./side-panel-close-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./side-panel-close-DIP8gLRZ.cjs");exports.Body=e.SidePanelBody;exports.Close=e.SidePanelClose;exports.Content=e.SidePanelContent;exports.Header=e.SidePanelHeader;exports.Overlay=e.SidePanelOverlay;exports.Portal=e.SidePanelPortal;exports.Root=e.SidePanelRoot;exports.Title=e.SidePanelTitle;exports.Trigger=e.SidePanelTrigger;
|
|
2
2
|
//# sourceMappingURL=side-panel.cjs.map
|
package/dist/side-panel.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "commerce-toolkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "A collection of modern, accessible commerce UI components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -167,6 +167,16 @@
|
|
|
167
167
|
"default": "./dist/favorite.cjs"
|
|
168
168
|
}
|
|
169
169
|
},
|
|
170
|
+
"./form-status": {
|
|
171
|
+
"import": {
|
|
172
|
+
"types": "./dist/components/form-status/primitives.d.ts",
|
|
173
|
+
"default": "./dist/form-status.js"
|
|
174
|
+
},
|
|
175
|
+
"require": {
|
|
176
|
+
"types": "./dist/components/form-status/primitives.d.ts",
|
|
177
|
+
"default": "./dist/form-status.cjs"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
170
180
|
"./icon": {
|
|
171
181
|
"import": {
|
|
172
182
|
"types": "./dist/components/icon/primitives.d.ts",
|
|
@@ -197,6 +207,16 @@
|
|
|
197
207
|
"default": "./dist/modal.cjs"
|
|
198
208
|
}
|
|
199
209
|
},
|
|
210
|
+
"./navigation-menu": {
|
|
211
|
+
"import": {
|
|
212
|
+
"types": "./dist/components/navigation-menu/primitives.d.ts",
|
|
213
|
+
"default": "./dist/navigation-menu.js"
|
|
214
|
+
},
|
|
215
|
+
"require": {
|
|
216
|
+
"types": "./dist/components/navigation-menu/primitives.d.ts",
|
|
217
|
+
"default": "./dist/navigation-menu.cjs"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
200
220
|
"./offset-pagination": {
|
|
201
221
|
"import": {
|
|
202
222
|
"types": "./dist/components/offset-pagination/primitives.d.ts",
|