commerce-toolkit 0.0.38 → 0.0.40
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/blog-post-card-author-BGqy41Da.cjs +2 -0
- package/dist/blog-post-card-author-BGqy41Da.cjs.map +1 -0
- package/dist/{blog-post-card-author-DBEBNUmi.js → blog-post-card-author-Cwm4afzF.js} +70 -52
- package/dist/blog-post-card-author-Cwm4afzF.js.map +1 -0
- package/dist/blog-post-card.cjs +1 -1
- package/dist/blog-post-card.js +7 -6
- package/dist/card-link-COguZcAK.js +41 -0
- package/dist/card-link-COguZcAK.js.map +1 -0
- package/dist/card-link-Dnn-M6g-.cjs +2 -0
- package/dist/card-link-Dnn-M6g-.cjs.map +1 -0
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/check-ChGAB_3v.js +13 -0
- package/dist/check-ChGAB_3v.js.map +1 -0
- package/dist/check-DJilMvC6.cjs +7 -0
- package/dist/check-DJilMvC6.cjs.map +1 -0
- package/dist/checkbox-indicator-BgXRGvAh.cjs +2 -0
- package/dist/checkbox-indicator-BgXRGvAh.cjs.map +1 -0
- package/dist/checkbox-indicator-Cfw9uH_b.js +313 -0
- package/dist/checkbox-indicator-Cfw9uH_b.js.map +1 -0
- package/dist/checkbox.cjs +2 -0
- package/dist/checkbox.cjs.map +1 -0
- package/dist/checkbox.js +7 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/{compare-drawer-remove-aLeR1WyI.js → compare-drawer-remove-BBcOUiSl.js} +73 -50
- package/dist/compare-drawer-remove-BBcOUiSl.js.map +1 -0
- package/dist/compare-drawer-remove-ozXLyKba.cjs +2 -0
- package/dist/compare-drawer-remove-ozXLyKba.cjs.map +1 -0
- package/dist/compare-drawer.cjs +1 -1
- package/dist/compare-drawer.js +4 -3
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordion.d.ts.map +1 -1
- package/dist/components/accordion/index.d.ts +2 -9
- package/dist/components/accordion/index.d.ts.map +1 -1
- package/dist/components/accordion/primitives.d.ts +8 -8
- package/dist/components/alert/index.d.ts +2 -8
- package/dist/components/alert/index.d.ts.map +1 -1
- package/dist/components/alert/primitives/alert-action.d.ts +1 -1
- package/dist/components/alert/primitives/alert-dismiss.d.ts +1 -1
- package/dist/components/alert/primitives.d.ts +7 -7
- package/dist/components/animated-underline/index.d.ts +1 -1
- package/dist/components/badge/index.d.ts +1 -1
- package/dist/components/banner/banner.d.ts +1 -1
- package/dist/components/banner/index.d.ts +2 -6
- package/dist/components/banner/index.d.ts.map +1 -1
- package/dist/components/banner/primitives.d.ts +5 -5
- package/dist/components/blog-post-card/blog-post-card.d.ts.map +1 -1
- package/dist/components/blog-post-card/index.d.ts +2 -11
- package/dist/components/blog-post-card/index.d.ts.map +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-image.d.ts +2 -2
- package/dist/components/blog-post-card/primitives/blog-post-card-image.d.ts.map +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-link.d.ts +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-link.d.ts.map +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-thumbnail.d.ts +4 -0
- package/dist/components/blog-post-card/primitives/blog-post-card-thumbnail.d.ts.map +1 -0
- package/dist/components/blog-post-card/primitives.d.ts +11 -10
- package/dist/components/blog-post-card/primitives.d.ts.map +1 -1
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button-link/index.d.ts +1 -1
- package/dist/components/calendar/index.d.ts +1 -1
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/index.d.ts +2 -4
- package/dist/components/card/index.d.ts.map +1 -1
- package/dist/components/card/primitives/card-link.d.ts.map +1 -1
- package/dist/components/card/primitives.d.ts +3 -3
- package/dist/components/carousel/carousel.d.ts +1 -1
- package/dist/components/carousel/index.d.ts +2 -10
- package/dist/components/carousel/index.d.ts.map +1 -1
- package/dist/components/carousel/primitives.d.ts +9 -9
- package/dist/components/checkbox/checkbox.d.ts +42 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/primitives/checkbox-indicator.d.ts +5 -0
- package/dist/components/checkbox/primitives/checkbox-indicator.d.ts.map +1 -0
- package/dist/components/checkbox/primitives/checkbox-root.d.ts +13 -0
- package/dist/components/checkbox/primitives/checkbox-root.d.ts.map +1 -0
- package/dist/components/checkbox/primitives.d.ts +3 -0
- package/dist/components/checkbox/primitives.d.ts.map +1 -0
- package/dist/components/chip/index.d.ts +2 -3
- package/dist/components/chip/index.d.ts.map +1 -1
- package/dist/components/chip/primitives.d.ts +2 -2
- package/dist/components/compare-drawer/index.d.ts +2 -11
- package/dist/components/compare-drawer/index.d.ts.map +1 -1
- package/dist/components/compare-drawer/primitives/compare-drawer-image.d.ts +1 -1
- package/dist/components/compare-drawer/primitives/compare-drawer-image.d.ts.map +1 -1
- package/dist/components/compare-drawer/primitives/compare-drawer-link.d.ts.map +1 -1
- package/dist/components/compare-drawer/primitives/compare-drawer-thumbnail.d.ts +4 -0
- package/dist/components/compare-drawer/primitives/compare-drawer-thumbnail.d.ts.map +1 -0
- package/dist/components/compare-drawer/primitives.d.ts +11 -10
- package/dist/components/compare-drawer/primitives.d.ts.map +1 -1
- package/dist/components/cursor-pagination/index.d.ts +2 -6
- package/dist/components/cursor-pagination/index.d.ts.map +1 -1
- package/dist/components/cursor-pagination/primitives/cursor-pagination-link.d.ts.map +1 -1
- package/dist/components/cursor-pagination/primitives.d.ts +5 -5
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/components/dropdown-menu/index.d.ts +2 -15
- package/dist/components/dropdown-menu/index.d.ts.map +1 -1
- package/dist/components/dropdown-menu/primitives/dropdown-menu-node.d.ts +1 -1
- package/dist/components/dropdown-menu/primitives/dropdown-menu-scroll-area.d.ts +1 -1
- package/dist/components/dropdown-menu/primitives.d.ts +14 -14
- package/dist/components/favorite/index.d.ts +2 -3
- package/dist/components/favorite/index.d.ts.map +1 -1
- package/dist/components/favorite/primitives.d.ts +2 -2
- package/dist/components/field-error/index.d.ts +1 -1
- package/dist/components/icon/index.d.ts +2 -2
- package/dist/components/icon/index.d.ts.map +1 -1
- package/dist/components/icon/primitives/icon-skeleton.d.ts +1 -1
- package/dist/components/icon/primitives.d.ts +1 -1
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/index.d.ts.map +1 -0
- package/dist/components/label/label.d.ts +7 -0
- package/dist/components/label/label.d.ts.map +1 -0
- package/dist/components/logo/index.d.ts +2 -5
- package/dist/components/logo/index.d.ts.map +1 -1
- package/dist/components/logo/primitives/logo-image.d.ts.map +1 -1
- package/dist/components/logo/primitives/logo-link.d.ts.map +1 -1
- package/dist/components/logo/primitives/logo-skeleton.d.ts +1 -1
- package/dist/components/logo/primitives.d.ts +4 -4
- package/dist/components/modal/index.d.ts +2 -7
- package/dist/components/modal/index.d.ts.map +1 -1
- package/dist/components/modal/primitives.d.ts +6 -6
- package/dist/components/price/index.d.ts +2 -4
- package/dist/components/price/index.d.ts.map +1 -1
- package/dist/components/price/price.d.ts +1 -1
- package/dist/components/price/price.d.ts.map +1 -1
- package/dist/components/price/primitives.d.ts +3 -3
- package/dist/components/product-card/index.d.ts +3 -0
- package/dist/components/product-card/index.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-badge.d.ts +5 -0
- package/dist/components/product-card/primitives/product-card-badge.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-checkbox.d.ts +5 -0
- package/dist/components/product-card/primitives/product-card-checkbox.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-compare.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-compare.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-content.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-content.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-details.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-details.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-fallback.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-fallback.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-header.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-header.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-image.d.ts +6 -0
- package/dist/components/product-card/primitives/product-card-image.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-label.d.ts +5 -0
- package/dist/components/product-card/primitives/product-card-label.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-link.d.ts +6 -0
- package/dist/components/product-card/primitives/product-card-link.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-preview.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-preview.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-price.d.ts +5 -0
- package/dist/components/product-card/primitives/product-card-price.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-root.d.ts +15 -0
- package/dist/components/product-card/primitives/product-card-root.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-skeleton.d.ts +5 -0
- package/dist/components/product-card/primitives/product-card-skeleton.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-subtitle.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-subtitle.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-thumbnail.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-thumbnail.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-title.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-title.d.ts.map +1 -0
- package/dist/components/product-card/primitives.d.ts +18 -0
- package/dist/components/product-card/primitives.d.ts.map +1 -0
- package/dist/components/product-card/product-card.d.ts +54 -0
- package/dist/components/product-card/product-card.d.ts.map +1 -0
- package/dist/components/rating/index.d.ts +2 -5
- package/dist/components/rating/index.d.ts.map +1 -1
- package/dist/components/rating/primitives.d.ts +4 -4
- package/dist/components/reveal/index.d.ts +2 -5
- package/dist/components/reveal/index.d.ts.map +1 -1
- package/dist/components/reveal/primitives.d.ts +4 -4
- package/dist/components/scroll-area/index.d.ts +2 -7
- package/dist/components/scroll-area/index.d.ts.map +1 -1
- package/dist/components/scroll-area/primitives.d.ts +6 -6
- package/dist/components/scroll-area/scroll-area.d.ts +1 -1
- package/dist/components/skeleton/index.d.ts +1 -4
- package/dist/components/skeleton/index.d.ts.map +1 -1
- package/dist/components/skeleton/primitives.d.ts +4 -4
- package/dist/components/spinner/index.d.ts +1 -1
- package/dist/components/tabs/index.d.ts +2 -5
- package/dist/components/tabs/index.d.ts.map +1 -1
- package/dist/components/tabs/primitives.d.ts +4 -4
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/toaster/index.d.ts +1 -1
- package/dist/cursor-pagination-link-CdxwX869.cjs +12 -0
- package/dist/{cursor-pagination-link-CGF7LkIQ.cjs.map → cursor-pagination-link-CdxwX869.cjs.map} +1 -1
- package/dist/cursor-pagination-link-DCIUoQmf.js +86 -0
- package/dist/{cursor-pagination-link-Cx4eqmLO.js.map → cursor-pagination-link-DCIUoQmf.js.map} +1 -1
- package/dist/cursor-pagination.cjs +1 -1
- package/dist/cursor-pagination.js +2 -2
- package/dist/dropdown-menu-node-BB7FJzMX.cjs +7 -0
- package/dist/dropdown-menu-node-BB7FJzMX.cjs.map +1 -0
- package/dist/{dropdown-menu-node-uYf2lhFv.js → dropdown-menu-node-C7Z-zRyr.js} +477 -510
- package/dist/dropdown-menu-node-C7Z-zRyr.js.map +1 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/index-6tKkLrHE.cjs +2 -0
- package/dist/index-6tKkLrHE.cjs.map +1 -0
- package/dist/index-B_420jYs.js +28 -0
- package/dist/index-B_420jYs.js.map +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +900 -944
- package/dist/index.js.map +1 -1
- package/dist/logo-text-BXz1J2dS.cjs +2 -0
- package/dist/logo-text-BXz1J2dS.cjs.map +1 -0
- package/dist/logo-text-Ck-jgjKv.js +38 -0
- package/dist/logo-text-Ck-jgjKv.js.map +1 -0
- package/dist/logo.cjs +1 -1
- package/dist/logo.js +1 -1
- package/dist/price-BwaeTmkR.js +53 -0
- package/dist/price-BwaeTmkR.js.map +1 -0
- package/dist/price-CdK2ye4P.cjs +2 -0
- package/dist/price-CdK2ye4P.cjs.map +1 -0
- package/dist/primitives--2McVg9Z.js +15 -0
- package/dist/primitives--2McVg9Z.js.map +1 -0
- package/dist/primitives-DmqzDKi2.cjs +2 -0
- package/dist/primitives-DmqzDKi2.cjs.map +1 -0
- package/dist/product-card.cjs +2 -0
- package/dist/product-card.cjs.map +1 -0
- package/dist/product-card.js +328 -0
- package/dist/product-card.js.map +1 -0
- package/dist/skeleton-root-DHW28LoV.js +28 -0
- package/dist/skeleton-root-DHW28LoV.js.map +1 -0
- package/dist/skeleton-root-uIgjea8b.cjs +2 -0
- package/dist/skeleton-root-uIgjea8b.cjs.map +1 -0
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.js +1 -1
- package/package.json +23 -4
- package/dist/blog-post-card-author-B7qzTW41.cjs +0 -2
- package/dist/blog-post-card-author-B7qzTW41.cjs.map +0 -1
- package/dist/blog-post-card-author-DBEBNUmi.js.map +0 -1
- package/dist/card-root-CUVBGwgw.js +0 -35
- package/dist/card-root-CUVBGwgw.js.map +0 -1
- package/dist/card-root-D2hbpo2Z.cjs +0 -2
- package/dist/card-root-D2hbpo2Z.cjs.map +0 -1
- package/dist/compare-drawer-remove-DeId0NAZ.cjs +0 -2
- package/dist/compare-drawer-remove-DeId0NAZ.cjs.map +0 -1
- package/dist/compare-drawer-remove-aLeR1WyI.js.map +0 -1
- package/dist/cursor-pagination-link-CGF7LkIQ.cjs +0 -12
- package/dist/cursor-pagination-link-Cx4eqmLO.js +0 -80
- package/dist/dropdown-menu-node-DoGsxQQh.cjs +0 -12
- package/dist/dropdown-menu-node-DoGsxQQh.cjs.map +0 -1
- package/dist/dropdown-menu-node-uYf2lhFv.js.map +0 -1
- package/dist/logo-text-BSZv7ll-.js +0 -33
- package/dist/logo-text-BSZv7ll-.js.map +0 -1
- package/dist/logo-text-BsFPzrQT.cjs +0 -2
- package/dist/logo-text-BsFPzrQT.cjs.map +0 -1
- package/dist/primitives-C8vPn9x8.js +0 -39
- package/dist/primitives-C8vPn9x8.js.map +0 -1
- package/dist/primitives-CgOSEe-J.cjs +0 -2
- package/dist/primitives-CgOSEe-J.cjs.map +0 -1
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { S as i } from "./index-DD8W7cMj.js";
|
|
3
|
-
import { c as n } from "./utils-BOGlfttm.js";
|
|
4
|
-
function c({ asChild: a = !1, className: e, children: o, ...l }) {
|
|
5
|
-
const t = n("object-contain object-left", e);
|
|
6
|
-
return a && o ? /* @__PURE__ */ s(i, { className: t, children: o }) : /* @__PURE__ */ s("img", { className: t, ...l });
|
|
7
|
-
}
|
|
8
|
-
function u({ asChild: a = !1, className: e, children: o, ...l }) {
|
|
9
|
-
const t = n(
|
|
10
|
-
"focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--logo-focus,hsl(var(--primary)))]",
|
|
11
|
-
e
|
|
12
|
-
);
|
|
13
|
-
return a ? /* @__PURE__ */ s(i, { className: t, ...l, children: o }) : /* @__PURE__ */ s("a", { className: t, ...l, children: o });
|
|
14
|
-
}
|
|
15
|
-
function g({ children: a, className: e, ...o }) {
|
|
16
|
-
return /* @__PURE__ */ s(
|
|
17
|
-
"span",
|
|
18
|
-
{
|
|
19
|
-
className: n(
|
|
20
|
-
"text-lg font-semibold leading-none text-[var(--logo-text,hsl(var(--foreground)))] [font-family:var(--logo-font-family,var(--font-family-heading))] @xl:text-2xl",
|
|
21
|
-
e
|
|
22
|
-
),
|
|
23
|
-
...o,
|
|
24
|
-
children: a
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
c as L,
|
|
30
|
-
u as a,
|
|
31
|
-
g as b
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=logo-text-BSZv7ll-.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logo-text-BSZv7ll-.js","sources":["../src/components/logo/primitives/logo-image.tsx","../src/components/logo/primitives/logo-link.tsx","../src/components/logo/primitives/logo-text.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport interface LogoImageProps extends ComponentProps<'img'> {\n asChild?: boolean;\n}\n\nexport function LogoImage({ asChild = false, className, children, ...props }: LogoImageProps) {\n const imageClassName = cn('object-contain object-left', className);\n\n if (asChild && Boolean(children)) {\n return <Slot className={imageClassName}>{children}</Slot>;\n }\n\n return <img className={imageClassName} {...props} />;\n}\n","import { Slot } from '@radix-ui/react-slot';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport interface LogoLinkProps extends ComponentProps<'a'> {\n asChild?: boolean;\n}\n\nexport function LogoLink({ asChild = false, className, children, ...props }: LogoLinkProps) {\n const linkClassName = cn(\n 'focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--logo-focus,hsl(var(--primary)))]',\n className,\n );\n\n if (asChild) {\n return (\n <Slot className={linkClassName} {...props}>\n {children}\n </Slot>\n );\n }\n\n return (\n <a className={linkClassName} {...props}>\n {children}\n </a>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type LogoTextProps = ComponentProps<'span'>;\n\nexport function LogoText({ children, className, ...props }: LogoTextProps) {\n return (\n <span\n className={cn(\n 'text-lg font-semibold leading-none text-[var(--logo-text,hsl(var(--foreground)))] [font-family:var(--logo-font-family,var(--font-family-heading))] @xl:text-2xl',\n className,\n )}\n {...props}\n >\n {children}\n </span>\n );\n}\n"],"names":["LogoImage","asChild","className","children","props","imageClassName","cn","jsx","Slot","LogoLink","linkClassName","LogoText"],"mappings":";;;AASO,SAASA,EAAU,EAAE,SAAAC,IAAU,IAAO,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAAyB;AAC5F,QAAMC,IAAiBC,EAAG,8BAA8BJ,CAAS;AAEjE,SAAID,KAAmBE,IACd,gBAAAI,EAACC,GAAA,EAAK,WAAWH,GAAiB,UAAAF,EAAA,CAAS,IAG7C,gBAAAI,EAAC,OAAA,EAAI,WAAWF,GAAiB,GAAGD,GAAO;AACpD;ACRO,SAASK,EAAS,EAAE,SAAAR,IAAU,IAAO,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAAwB;AAC1F,QAAMM,IAAgBJ;AAAA,IACpB;AAAA,IACAJ;AAAA,EAAA;AAGF,SAAID,sBAECO,GAAA,EAAK,WAAWE,GAAgB,GAAGN,GACjC,UAAAD,GACH,sBAKD,KAAA,EAAE,WAAWO,GAAgB,GAAGN,GAC9B,UAAAD,GACH;AAEJ;ACtBO,SAASQ,EAAS,EAAE,UAAAR,GAAU,WAAAD,GAAW,GAAGE,KAAwB;AACzE,SACE,gBAAAG;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWD;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),l=require("./index-DGaxX11V.cjs"),i=require("./utils-LBH114_M.cjs");function r({asChild:e=!1,className:s,children:o,...a}){const t=i.cn("object-contain object-left",s);return e&&o?n.jsx(l.Slot,{className:t,children:o}):n.jsx("img",{className:t,...a})}function c({asChild:e=!1,className:s,children:o,...a}){const t=i.cn("focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--logo-focus,hsl(var(--primary)))]",s);return e?n.jsx(l.Slot,{className:t,...a,children:o}):n.jsx("a",{className:t,...a,children:o})}function f({children:e,className:s,...o}){return n.jsx("span",{className:i.cn("text-lg font-semibold leading-none text-[var(--logo-text,hsl(var(--foreground)))] [font-family:var(--logo-font-family,var(--font-family-heading))] @xl:text-2xl",s),...o,children:e})}exports.LogoImage=r;exports.LogoLink=c;exports.LogoText=f;
|
|
2
|
-
//# sourceMappingURL=logo-text-BsFPzrQT.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logo-text-BsFPzrQT.cjs","sources":["../src/components/logo/primitives/logo-image.tsx","../src/components/logo/primitives/logo-link.tsx","../src/components/logo/primitives/logo-text.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport interface LogoImageProps extends ComponentProps<'img'> {\n asChild?: boolean;\n}\n\nexport function LogoImage({ asChild = false, className, children, ...props }: LogoImageProps) {\n const imageClassName = cn('object-contain object-left', className);\n\n if (asChild && Boolean(children)) {\n return <Slot className={imageClassName}>{children}</Slot>;\n }\n\n return <img className={imageClassName} {...props} />;\n}\n","import { Slot } from '@radix-ui/react-slot';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport interface LogoLinkProps extends ComponentProps<'a'> {\n asChild?: boolean;\n}\n\nexport function LogoLink({ asChild = false, className, children, ...props }: LogoLinkProps) {\n const linkClassName = cn(\n 'focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--logo-focus,hsl(var(--primary)))]',\n className,\n );\n\n if (asChild) {\n return (\n <Slot className={linkClassName} {...props}>\n {children}\n </Slot>\n );\n }\n\n return (\n <a className={linkClassName} {...props}>\n {children}\n </a>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type LogoTextProps = ComponentProps<'span'>;\n\nexport function LogoText({ children, className, ...props }: LogoTextProps) {\n return (\n <span\n className={cn(\n 'text-lg font-semibold leading-none text-[var(--logo-text,hsl(var(--foreground)))] [font-family:var(--logo-font-family,var(--font-family-heading))] @xl:text-2xl',\n className,\n )}\n {...props}\n >\n {children}\n </span>\n );\n}\n"],"names":["LogoImage","asChild","className","children","props","imageClassName","cn","jsx","Slot","LogoLink","linkClassName","LogoText"],"mappings":"sHASO,SAASA,EAAU,CAAE,QAAAC,EAAU,GAAO,UAAAC,EAAW,SAAAC,EAAU,GAAGC,GAAyB,CAC5F,MAAMC,EAAiBC,EAAAA,GAAG,6BAA8BJ,CAAS,EAEjE,OAAID,GAAmBE,EACdI,EAAAA,IAACC,EAAAA,KAAA,CAAK,UAAWH,EAAiB,SAAAF,CAAA,CAAS,EAG7CI,EAAAA,IAAC,MAAA,CAAI,UAAWF,EAAiB,GAAGD,EAAO,CACpD,CCRO,SAASK,EAAS,CAAE,QAAAR,EAAU,GAAO,UAAAC,EAAW,SAAAC,EAAU,GAAGC,GAAwB,CAC1F,MAAMM,EAAgBJ,EAAAA,GACpB,uHACAJ,CAAA,EAGF,OAAID,QAECO,EAAAA,KAAA,CAAK,UAAWE,EAAgB,GAAGN,EACjC,SAAAD,EACH,QAKD,IAAA,CAAE,UAAWO,EAAgB,GAAGN,EAC9B,SAAAD,EACH,CAEJ,CCtBO,SAASQ,EAAS,CAAE,SAAAR,EAAU,UAAAD,EAAW,GAAGE,GAAwB,CACzE,OACEG,EAAAA,IAAC,OAAA,CACC,UAAWD,EAAAA,GACT,kKACAJ,CAAA,EAED,GAAGE,EAEH,SAAAD,CAAA,CAAA,CAGP"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { c as l } from "./utils-BOGlfttm.js";
|
|
3
|
-
import { S as i } from "./skeleton-box-BSzQ5f9Y.js";
|
|
4
|
-
import { S as m } from "./skeleton-text-Dd4GbnEz.js";
|
|
5
|
-
import { S as c } from "./skeleton-icon-ThRjXhfU.js";
|
|
6
|
-
function d({
|
|
7
|
-
className: e,
|
|
8
|
-
children: t,
|
|
9
|
-
pending: o = !1,
|
|
10
|
-
hideOverflow: r = !1,
|
|
11
|
-
...s
|
|
12
|
-
}) {
|
|
13
|
-
return /* @__PURE__ */ a(
|
|
14
|
-
"div",
|
|
15
|
-
{
|
|
16
|
-
className: l("@container", r && "overflow-hidden", e),
|
|
17
|
-
"data-pending": o ? "" : void 0,
|
|
18
|
-
"data-slot": "skeleton-root",
|
|
19
|
-
role: o ? "status" : void 0,
|
|
20
|
-
...s,
|
|
21
|
-
children: [
|
|
22
|
-
t,
|
|
23
|
-
o && /* @__PURE__ */ n("span", { className: "sr-only", children: "Loading..." })
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
const v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
29
|
-
__proto__: null,
|
|
30
|
-
Box: i,
|
|
31
|
-
Icon: c,
|
|
32
|
-
Root: d,
|
|
33
|
-
Text: m
|
|
34
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
35
|
-
export {
|
|
36
|
-
d as S,
|
|
37
|
-
v as p
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=primitives-C8vPn9x8.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"primitives-C8vPn9x8.js","sources":["../src/components/skeleton/primitives/skeleton-root.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type SkeletonRootProps = ComponentProps<'div'> & {\n pending?: boolean;\n hideOverflow?: boolean;\n};\n\nexport function SkeletonRoot({\n className,\n children,\n pending = false,\n hideOverflow = false,\n ...props\n}: SkeletonRootProps) {\n return (\n <div\n className={cn('@container', hideOverflow && 'overflow-hidden', className)}\n data-pending={pending ? '' : undefined}\n data-slot=\"skeleton-root\"\n role={pending ? 'status' : undefined}\n {...props}\n >\n {children}\n {pending && <span className=\"sr-only\">Loading...</span>}\n </div>\n );\n}\n"],"names":["SkeletonRoot","className","children","pending","hideOverflow","props","jsxs","cn","jsx"],"mappings":";;;;;AASO,SAASA,EAAa;AAAA,EAC3B,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,cAAAC,IAAe;AAAA,EACf,GAAGC;AACL,GAAsB;AACpB,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAG,cAAcH,KAAgB,mBAAmBH,CAAS;AAAA,MACxE,gBAAcE,IAAU,KAAK;AAAA,MAC7B,aAAU;AAAA,MACV,MAAMA,IAAU,WAAW;AAAA,MAC1B,GAAGE;AAAA,MAEH,UAAA;AAAA,QAAAH;AAAA,QACAC,KAAW,gBAAAK,EAAC,QAAA,EAAK,WAAU,WAAU,UAAA,aAAA,CAAU;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGtD;;;;;;;;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),i=require("./utils-LBH114_M.cjs"),c=require("./skeleton-box-yQLivCqg.cjs"),a=require("./skeleton-text-CLzoDFvz.cjs"),u=require("./skeleton-icon-CCCgNtIy.cjs");function t({className:n,children:s,pending:e=!1,hideOverflow:r=!1,...l}){return o.jsxs("div",{className:i.cn("@container",r&&"overflow-hidden",n),"data-pending":e?"":void 0,"data-slot":"skeleton-root",role:e?"status":void 0,...l,children:[s,e&&o.jsx("span",{className:"sr-only",children:"Loading..."})]})}const d=Object.freeze(Object.defineProperty({__proto__:null,Box:c.SkeletonBox,Icon:u.SkeletonIcon,Root:t,Text:a.SkeletonText},Symbol.toStringTag,{value:"Module"}));exports.SkeletonRoot=t;exports.primitives=d;
|
|
2
|
-
//# sourceMappingURL=primitives-CgOSEe-J.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"primitives-CgOSEe-J.cjs","sources":["../src/components/skeleton/primitives/skeleton-root.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type SkeletonRootProps = ComponentProps<'div'> & {\n pending?: boolean;\n hideOverflow?: boolean;\n};\n\nexport function SkeletonRoot({\n className,\n children,\n pending = false,\n hideOverflow = false,\n ...props\n}: SkeletonRootProps) {\n return (\n <div\n className={cn('@container', hideOverflow && 'overflow-hidden', className)}\n data-pending={pending ? '' : undefined}\n data-slot=\"skeleton-root\"\n role={pending ? 'status' : undefined}\n {...props}\n >\n {children}\n {pending && <span className=\"sr-only\">Loading...</span>}\n </div>\n );\n}\n"],"names":["SkeletonRoot","className","children","pending","hideOverflow","props","jsxs","cn","jsx"],"mappings":"iNASO,SAASA,EAAa,CAC3B,UAAAC,EACA,SAAAC,EACA,QAAAC,EAAU,GACV,aAAAC,EAAe,GACf,GAAGC,CACL,EAAsB,CACpB,OACEC,EAAAA,KAAC,MAAA,CACC,UAAWC,EAAAA,GAAG,aAAcH,GAAgB,kBAAmBH,CAAS,EACxE,eAAcE,EAAU,GAAK,OAC7B,YAAU,gBACV,KAAMA,EAAU,SAAW,OAC1B,GAAGE,EAEH,SAAA,CAAAH,EACAC,GAAWK,EAAAA,IAAC,OAAA,CAAK,UAAU,UAAU,SAAA,YAAA,CAAU,CAAA,CAAA,CAAA,CAGtD"}
|