commerce-toolkit 0.1.0 → 0.2.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.
Files changed (202) hide show
  1. package/dist/category-card-link-BqMAG9Op.js +211 -0
  2. package/dist/category-card-link-BqMAG9Op.js.map +1 -0
  3. package/dist/category-card-link-BwSFHFcd.cjs +2 -0
  4. package/dist/category-card-link-BwSFHFcd.cjs.map +1 -0
  5. package/dist/category-card.cjs +1 -1
  6. package/dist/category-card.cjs.map +1 -1
  7. package/dist/category-card.js +23 -218
  8. package/dist/category-card.js.map +1 -1
  9. package/dist/checkbox-indicator-GNoyS6OL.cjs +2 -0
  10. package/dist/checkbox-indicator-GNoyS6OL.cjs.map +1 -0
  11. package/dist/checkbox-indicator-os50dewx.js +18 -0
  12. package/dist/checkbox-indicator-os50dewx.js.map +1 -0
  13. package/dist/{checkbox-indicator-Cfw9uH_b.js → checkbox-root-B9W2Y8rY.js} +74 -85
  14. package/dist/checkbox-root-B9W2Y8rY.js.map +1 -0
  15. package/dist/checkbox-root-g9HcYZCP.cjs +2 -0
  16. package/dist/checkbox-root-g9HcYZCP.cjs.map +1 -0
  17. package/dist/checkbox.cjs +1 -1
  18. package/dist/checkbox.js +5 -4
  19. package/dist/checkbox.js.map +1 -1
  20. package/dist/compare-card-specs-empty-BMLUSqQL.js +281 -0
  21. package/dist/compare-card-specs-empty-BMLUSqQL.js.map +1 -0
  22. package/dist/compare-card-specs-empty-ar5CneZv.cjs +2 -0
  23. package/dist/compare-card-specs-empty-ar5CneZv.cjs.map +1 -0
  24. package/dist/compare-card.cjs +2 -0
  25. package/dist/compare-card.cjs.map +1 -0
  26. package/dist/compare-card.js +65 -0
  27. package/dist/compare-card.js.map +1 -0
  28. package/dist/components/accordion/index.d.ts.map +1 -1
  29. package/dist/components/alert/index.d.ts.map +1 -1
  30. package/dist/components/banner/index.d.ts.map +1 -1
  31. package/dist/components/blog-post-card/index.d.ts.map +1 -1
  32. package/dist/components/card/index.d.ts.map +1 -1
  33. package/dist/components/carousel/index.d.ts.map +1 -1
  34. package/dist/components/checkbox/index.d.ts.map +1 -1
  35. package/dist/components/chip/index.d.ts.map +1 -1
  36. package/dist/components/compare-card/compare-card.d.ts +45 -0
  37. package/dist/components/compare-card/compare-card.d.ts.map +1 -0
  38. package/dist/components/compare-card/index.d.ts +3 -0
  39. package/dist/components/compare-card/index.d.ts.map +1 -0
  40. package/dist/components/compare-card/primitives/compare-card-description-content.d.ts +4 -0
  41. package/dist/components/compare-card/primitives/compare-card-description-content.d.ts.map +1 -0
  42. package/dist/components/compare-card/primitives/compare-card-description-empty.d.ts +4 -0
  43. package/dist/components/compare-card/primitives/compare-card-description-empty.d.ts.map +1 -0
  44. package/dist/components/compare-card/primitives/compare-card-description-label.d.ts +4 -0
  45. package/dist/components/compare-card/primitives/compare-card-description-label.d.ts.map +1 -0
  46. package/dist/components/compare-card/primitives/compare-card-description.d.ts +4 -0
  47. package/dist/components/compare-card/primitives/compare-card-description.d.ts.map +1 -0
  48. package/dist/components/compare-card/primitives/compare-card-form-input.d.ts +4 -0
  49. package/dist/components/compare-card/primitives/compare-card-form-input.d.ts.map +1 -0
  50. package/dist/components/compare-card/primitives/compare-card-form.d.ts +4 -0
  51. package/dist/components/compare-card/primitives/compare-card-form.d.ts.map +1 -0
  52. package/dist/components/compare-card/primitives/compare-card-link.d.ts +5 -0
  53. package/dist/components/compare-card/primitives/compare-card-link.d.ts.map +1 -0
  54. package/dist/components/compare-card/primitives/compare-card-product.d.ts +4 -0
  55. package/dist/components/compare-card/primitives/compare-card-product.d.ts.map +1 -0
  56. package/dist/components/compare-card/primitives/compare-card-rating-empty.d.ts +4 -0
  57. package/dist/components/compare-card/primitives/compare-card-rating-empty.d.ts.map +1 -0
  58. package/dist/components/compare-card/primitives/compare-card-rating-label.d.ts +4 -0
  59. package/dist/components/compare-card/primitives/compare-card-rating-label.d.ts.map +1 -0
  60. package/dist/components/compare-card/primitives/compare-card-rating.d.ts +4 -0
  61. package/dist/components/compare-card/primitives/compare-card-rating.d.ts.map +1 -0
  62. package/dist/components/compare-card/primitives/compare-card-root.d.ts +4 -0
  63. package/dist/components/compare-card/primitives/compare-card-root.d.ts.map +1 -0
  64. package/dist/components/compare-card/primitives/compare-card-skeleton.d.ts +4 -0
  65. package/dist/components/compare-card/primitives/compare-card-skeleton.d.ts.map +1 -0
  66. package/dist/components/compare-card/primitives/compare-card-specs-definition.d.ts +4 -0
  67. package/dist/components/compare-card/primitives/compare-card-specs-definition.d.ts.map +1 -0
  68. package/dist/components/compare-card/primitives/compare-card-specs-empty.d.ts +4 -0
  69. package/dist/components/compare-card/primitives/compare-card-specs-empty.d.ts.map +1 -0
  70. package/dist/components/compare-card/primitives/compare-card-specs-label.d.ts +4 -0
  71. package/dist/components/compare-card/primitives/compare-card-specs-label.d.ts.map +1 -0
  72. package/dist/components/compare-card/primitives/compare-card-specs-list.d.ts +4 -0
  73. package/dist/components/compare-card/primitives/compare-card-specs-list.d.ts.map +1 -0
  74. package/dist/components/compare-card/primitives/compare-card-specs-term.d.ts +4 -0
  75. package/dist/components/compare-card/primitives/compare-card-specs-term.d.ts.map +1 -0
  76. package/dist/components/compare-card/primitives/compare-card-specs.d.ts +4 -0
  77. package/dist/components/compare-card/primitives/compare-card-specs.d.ts.map +1 -0
  78. package/dist/components/compare-card/primitives.d.ts +20 -0
  79. package/dist/components/compare-card/primitives.d.ts.map +1 -0
  80. package/dist/components/compare-drawer/index.d.ts.map +1 -1
  81. package/dist/components/cursor-pagination/index.d.ts +1 -1
  82. package/dist/components/cursor-pagination/index.d.ts.map +1 -1
  83. package/dist/components/dropdown-menu/index.d.ts.map +1 -1
  84. package/dist/components/favorite/index.d.ts.map +1 -1
  85. package/dist/components/icon/index.d.ts.map +1 -1
  86. package/dist/components/label/index.d.ts.map +1 -1
  87. package/dist/components/logo/index.d.ts.map +1 -1
  88. package/dist/components/modal/index.d.ts.map +1 -1
  89. package/dist/components/offset-pagination/index.d.ts +1 -1
  90. package/dist/components/offset-pagination/index.d.ts.map +1 -1
  91. package/dist/components/price/index.d.ts.map +1 -1
  92. package/dist/components/product-card/index.d.ts.map +1 -1
  93. package/dist/components/rating/index.d.ts.map +1 -1
  94. package/dist/components/reveal/index.d.ts.map +1 -1
  95. package/dist/components/scroll-area/index.d.ts.map +1 -1
  96. package/dist/components/side-panel/index.d.ts +3 -0
  97. package/dist/components/side-panel/index.d.ts.map +1 -0
  98. package/dist/components/side-panel/primitives/side-panel-body.d.ts +4 -0
  99. package/dist/components/side-panel/primitives/side-panel-body.d.ts.map +1 -0
  100. package/dist/components/side-panel/primitives/side-panel-close.d.ts +5 -0
  101. package/dist/components/side-panel/primitives/side-panel-close.d.ts.map +1 -0
  102. package/dist/components/side-panel/primitives/side-panel-content.d.ts +5 -0
  103. package/dist/components/side-panel/primitives/side-panel-content.d.ts.map +1 -0
  104. package/dist/components/side-panel/primitives/side-panel-header.d.ts +4 -0
  105. package/dist/components/side-panel/primitives/side-panel-header.d.ts.map +1 -0
  106. package/dist/components/side-panel/primitives/side-panel-overlay.d.ts +5 -0
  107. package/dist/components/side-panel/primitives/side-panel-overlay.d.ts.map +1 -0
  108. package/dist/components/side-panel/primitives/side-panel-portal.d.ts +5 -0
  109. package/dist/components/side-panel/primitives/side-panel-portal.d.ts.map +1 -0
  110. package/dist/components/side-panel/primitives/side-panel-root.d.ts +5 -0
  111. package/dist/components/side-panel/primitives/side-panel-root.d.ts.map +1 -0
  112. package/dist/components/side-panel/primitives/side-panel-title.d.ts +5 -0
  113. package/dist/components/side-panel/primitives/side-panel-title.d.ts.map +1 -0
  114. package/dist/components/side-panel/primitives/side-panel-trigger.d.ts +5 -0
  115. package/dist/components/side-panel/primitives/side-panel-trigger.d.ts.map +1 -0
  116. package/dist/components/side-panel/primitives.d.ts +10 -0
  117. package/dist/components/side-panel/primitives.d.ts.map +1 -0
  118. package/dist/components/side-panel/side-panel.d.ts +28 -0
  119. package/dist/components/side-panel/side-panel.d.ts.map +1 -0
  120. package/dist/components/skeleton/index.d.ts.map +1 -1
  121. package/dist/components/tabs/index.d.ts.map +1 -1
  122. package/dist/{dropdown-menu-node-C7Z-zRyr.js → dropdown-menu-node-4Pe3uXjC.js} +2 -2
  123. package/dist/{dropdown-menu-node-C7Z-zRyr.js.map → dropdown-menu-node-4Pe3uXjC.js.map} +1 -1
  124. package/dist/{dropdown-menu-node-BB7FJzMX.cjs → dropdown-menu-node-zOplWIzZ.cjs} +2 -2
  125. package/dist/{dropdown-menu-node-BB7FJzMX.cjs.map → dropdown-menu-node-zOplWIzZ.cjs.map} +1 -1
  126. package/dist/dropdown-menu.cjs +1 -1
  127. package/dist/dropdown-menu.js +1 -1
  128. package/dist/index-BppAzNV8.cjs +6 -0
  129. package/dist/index-BppAzNV8.cjs.map +1 -0
  130. package/dist/index-ChSlzMYI.js +242 -0
  131. package/dist/index-ChSlzMYI.js.map +1 -0
  132. package/dist/index.cjs +10 -5
  133. package/dist/index.cjs.map +1 -1
  134. package/dist/index.d.ts +26 -19
  135. package/dist/index.d.ts.map +1 -1
  136. package/dist/index.js +1275 -1133
  137. package/dist/index.js.map +1 -1
  138. package/dist/lib/index.d.ts.map +1 -1
  139. package/dist/modal-title-CuB6IpxH.cjs +2 -0
  140. package/dist/modal-title-CuB6IpxH.cjs.map +1 -0
  141. package/dist/modal-title-MIH3Xsp2.js +58 -0
  142. package/dist/modal-title-MIH3Xsp2.js.map +1 -0
  143. package/dist/modal.cjs +1 -1
  144. package/dist/modal.js +1 -1
  145. package/dist/offset-pagination-ellipsis-DWDhFCgW.js +79 -0
  146. package/dist/offset-pagination-ellipsis-DWDhFCgW.js.map +1 -0
  147. package/dist/offset-pagination-ellipsis-MCFHXB-5.cjs +2 -0
  148. package/dist/offset-pagination-ellipsis-MCFHXB-5.cjs.map +1 -0
  149. package/dist/offset-pagination.cjs +1 -1
  150. package/dist/offset-pagination.cjs.map +1 -1
  151. package/dist/offset-pagination.js +6 -76
  152. package/dist/offset-pagination.js.map +1 -1
  153. package/dist/product-card-label-CJmC9ICf.js +312 -0
  154. package/dist/product-card-label-CJmC9ICf.js.map +1 -0
  155. package/dist/product-card-label-D43AXtRL.cjs +2 -0
  156. package/dist/product-card-label-D43AXtRL.cjs.map +1 -0
  157. package/dist/product-card-root-4Xz4-pdL.js +43 -0
  158. package/dist/product-card-root-4Xz4-pdL.js.map +1 -0
  159. package/dist/product-card-root-BMTVhhFp.cjs +2 -0
  160. package/dist/product-card-root-BMTVhhFp.cjs.map +1 -0
  161. package/dist/product-card-skeleton-CCQkDMNl.cjs +2 -0
  162. package/dist/product-card-skeleton-CCQkDMNl.cjs.map +1 -0
  163. package/dist/product-card-skeleton-Dkqf-bfA.js +34 -0
  164. package/dist/product-card-skeleton-Dkqf-bfA.js.map +1 -0
  165. package/dist/product-card.cjs +1 -1
  166. package/dist/product-card.cjs.map +1 -1
  167. package/dist/product-card.js +25 -326
  168. package/dist/product-card.js.map +1 -1
  169. package/dist/{scroll-area-corner-DLTYMMl-.js → scroll-area-corner-Bq7PB1XK.js} +2 -2
  170. package/dist/{scroll-area-corner-DLTYMMl-.js.map → scroll-area-corner-Bq7PB1XK.js.map} +1 -1
  171. package/dist/{scroll-area-corner-CEc2oMZt.cjs → scroll-area-corner-DsyetkPH.cjs} +2 -2
  172. package/dist/{scroll-area-corner-CEc2oMZt.cjs.map → scroll-area-corner-DsyetkPH.cjs.map} +1 -1
  173. package/dist/scroll-area.cjs +1 -1
  174. package/dist/scroll-area.js +1 -1
  175. package/dist/side-panel-close-Bjcn4BEE.cjs +2 -0
  176. package/dist/side-panel-close-Bjcn4BEE.cjs.map +1 -0
  177. package/dist/side-panel-close-DVJwOxdM.js +86 -0
  178. package/dist/side-panel-close-DVJwOxdM.js.map +1 -0
  179. package/dist/side-panel.cjs +2 -0
  180. package/dist/side-panel.cjs.map +1 -0
  181. package/dist/side-panel.js +13 -0
  182. package/dist/side-panel.js.map +1 -0
  183. package/package.json +21 -1
  184. package/dist/arrow-up-right-Cfau6CiE.cjs +0 -7
  185. package/dist/arrow-up-right-Cfau6CiE.cjs.map +0 -1
  186. package/dist/arrow-up-right-D7smpXBs.js +0 -16
  187. package/dist/arrow-up-right-D7smpXBs.js.map +0 -1
  188. package/dist/checkbox-indicator-BgXRGvAh.cjs +0 -2
  189. package/dist/checkbox-indicator-BgXRGvAh.cjs.map +0 -1
  190. package/dist/checkbox-indicator-Cfw9uH_b.js.map +0 -1
  191. package/dist/modal-title-B2Yr1KDi.js +0 -288
  192. package/dist/modal-title-B2Yr1KDi.js.map +0 -1
  193. package/dist/modal-title-CpD_Fors.cjs +0 -6
  194. package/dist/modal-title-CpD_Fors.cjs.map +0 -1
  195. package/dist/price-BwaeTmkR.js +0 -53
  196. package/dist/price-BwaeTmkR.js.map +0 -1
  197. package/dist/price-CdK2ye4P.cjs +0 -2
  198. package/dist/price-CdK2ye4P.cjs.map +0 -1
  199. package/dist/primitives--2McVg9Z.js +0 -15
  200. package/dist/primitives--2McVg9Z.js.map +0 -1
  201. package/dist/primitives-DmqzDKi2.cjs +0 -2
  202. package/dist/primitives-DmqzDKi2.cjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";const a=require("react/jsx-runtime"),e=require("./index-BppAzNV8.cjs"),l=require("./utils-LBH114_M.cjs");function r({children:t,...o}){return a.jsx(e.Root,{"data-slot":"modal-root",...o,children:t})}function s({children:t,...o}){return a.jsx(e.Trigger,{"data-slot":"modal-trigger",...o,children:t})}function d({children:t,...o}){return a.jsx(e.Portal,{"data-slot":"modal-portal",...o,children:t})}function i({children:t,className:o,...n}){return a.jsx(e.Overlay,{className:l.cn("fixed inset-0 z-30 flex items-center justify-center bg-[var(--modal-overlay-background,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] @container",o),"data-slot":"modal-overlay",...n,children:t})}function u({children:t,className:o,...n}){return a.jsx(e.Content,{className:l.cn("mx-3 my-10 max-h-[90%] max-w-3xl overflow-y-auto rounded-xl bg-[var(--modal-background,hsl(var(--background)))] px-3 py-5 transition ease-out @sm:px-6 @sm:py-8 @5xl:px-20 @5xl:py-10","focus:outline-none","data-[state=open]:duration-200 data-[state=open]:animate-in data-[state=open]:slide-in-from-bottom-16","data-[state=closed]:duration-200 data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom-16",o),"data-slot":"modal-content",...n,children:t})}function c({children:t,className:o,...n}){return a.jsx(e.Title,{className:l.cn("sr-only",o),"data-slot":"modal-title",...n,children:t})}exports.ModalContent=u;exports.ModalOverlay=i;exports.ModalPortal=d;exports.ModalRoot=r;exports.ModalTitle=c;exports.ModalTrigger=s;
2
+ //# sourceMappingURL=modal-title-CuB6IpxH.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal-title-CuB6IpxH.cjs","sources":["../src/components/modal/primitives/modal-root.tsx","../src/components/modal/primitives/modal-trigger.tsx","../src/components/modal/primitives/modal-portal.tsx","../src/components/modal/primitives/modal-overlay.tsx","../src/components/modal/primitives/modal-content.tsx","../src/components/modal/primitives/modal-title.tsx"],"sourcesContent":["'use client';\n\nimport * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type ModalRootProps = ComponentProps<typeof Dialog.Root>;\n\nexport function ModalRoot({ children, ...props }: ModalRootProps) {\n return (\n <Dialog.Root data-slot=\"modal-root\" {...props}>\n {children}\n </Dialog.Root>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type ModalTriggerProps = ComponentProps<typeof Dialog.Trigger>;\n\nexport function ModalTrigger({ children, ...props }: ModalTriggerProps) {\n return (\n <Dialog.Trigger data-slot=\"modal-trigger\" {...props}>\n {children}\n </Dialog.Trigger>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type ModalPortalProps = ComponentProps<typeof Dialog.Portal>;\n\nexport function ModalPortal({ children, ...props }: ModalPortalProps) {\n return (\n <Dialog.Portal data-slot=\"modal-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 ModalOverlayProps = ComponentProps<typeof Dialog.Overlay>;\n\nexport function ModalOverlay({ children, className, ...props }: ModalOverlayProps) {\n return (\n <Dialog.Overlay\n className={cn(\n 'fixed inset-0 z-30 flex items-center justify-center bg-[var(--modal-overlay-background,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] @container',\n className,\n )}\n data-slot=\"modal-overlay\"\n {...props}\n >\n {children}\n </Dialog.Overlay>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type ModalContentProps = ComponentProps<typeof Dialog.Content>;\n\nexport function ModalContent({ children, className, ...props }: ModalContentProps) {\n return (\n <Dialog.Content\n className={cn(\n 'mx-3 my-10 max-h-[90%] max-w-3xl overflow-y-auto rounded-xl bg-[var(--modal-background,hsl(var(--background)))] px-3 py-5 transition ease-out @sm:px-6 @sm:py-8 @5xl:px-20 @5xl:py-10',\n // Focus styles\n 'focus:outline-none',\n // Open styles\n 'data-[state=open]:duration-200 data-[state=open]:animate-in data-[state=open]:slide-in-from-bottom-16',\n // Closed styles\n 'data-[state=closed]:duration-200 data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom-16',\n className,\n )}\n data-slot=\"modal-content\"\n {...props}\n >\n {children}\n </Dialog.Content>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type ModalTitleProps = ComponentProps<typeof Dialog.Title>;\n\nexport function ModalTitle({ children, className, ...props }: ModalTitleProps) {\n return (\n <Dialog.Title className={cn('sr-only', className)} data-slot=\"modal-title\" {...props}>\n {children}\n </Dialog.Title>\n );\n}\n"],"names":["ModalRoot","children","props","jsx","Dialog.Root","ModalTrigger","Dialog.Trigger","ModalPortal","Dialog.Portal","ModalOverlay","className","Dialog.Overlay","cn","ModalContent","Dialog.Content","ModalTitle","Dialog.Title"],"mappings":"sHAOO,SAASA,EAAU,CAAE,SAAAC,EAAU,GAAGC,GAAyB,CAChE,OACEC,EAAAA,IAACC,EAAAA,KAAA,CAAY,YAAU,aAAc,GAAGF,EACrC,SAAAD,EACH,CAEJ,CCRO,SAASI,EAAa,CAAE,SAAAJ,EAAU,GAAGC,GAA4B,CACtE,OACEC,EAAAA,IAACG,EAAAA,QAAA,CAAe,YAAU,gBAAiB,GAAGJ,EAC3C,SAAAD,EACH,CAEJ,CCNO,SAASM,EAAY,CAAE,SAAAN,EAAU,GAAGC,GAA2B,CACpE,OACEC,EAAAA,IAACK,EAAAA,OAAA,CAAc,YAAU,eAAgB,GAAGN,EACzC,SAAAD,EACH,CAEJ,CCJO,SAASQ,EAAa,CAAE,SAAAR,EAAU,UAAAS,EAAW,GAAGR,GAA4B,CACjF,OACEC,EAAAA,IAACQ,EAAAA,QAAA,CACC,UAAWC,EAAAA,GACT,iKACAF,CAAA,EAEF,YAAU,gBACT,GAAGR,EAEH,SAAAD,CAAA,CAAA,CAGP,CCbO,SAASY,EAAa,CAAE,SAAAZ,EAAU,UAAAS,EAAW,GAAGR,GAA4B,CACjF,OACEC,EAAAA,IAACW,EAAAA,QAAA,CACC,UAAWF,EAAAA,GACT,wLAEA,qBAEA,wGAEA,8GACAF,CAAA,EAEF,YAAU,gBACT,GAAGR,EAEH,SAAAD,CAAA,CAAA,CAGP,CCnBO,SAASc,EAAW,CAAE,SAAAd,EAAU,UAAAS,EAAW,GAAGR,GAA0B,CAC7E,OACEC,EAAAA,IAACa,EAAAA,MAAA,CAAa,UAAWJ,EAAAA,GAAG,UAAWF,CAAS,EAAG,YAAU,cAAe,GAAGR,EAC5E,SAAAD,CAAA,CACH,CAEJ"}
@@ -0,0 +1,58 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { R as n, T as l, P as s, O as d, C as i, a as m } from "./index-ChSlzMYI.js";
3
+ import { c as r } from "./utils-BOGlfttm.js";
4
+ function p({ children: a, ...t }) {
5
+ return /* @__PURE__ */ o(n, { "data-slot": "modal-root", ...t, children: a });
6
+ }
7
+ function x({ children: a, ...t }) {
8
+ return /* @__PURE__ */ o(l, { "data-slot": "modal-trigger", ...t, children: a });
9
+ }
10
+ function g({ children: a, ...t }) {
11
+ return /* @__PURE__ */ o(s, { "data-slot": "modal-portal", ...t, children: a });
12
+ }
13
+ function y({ children: a, className: t, ...e }) {
14
+ return /* @__PURE__ */ o(
15
+ d,
16
+ {
17
+ className: r(
18
+ "fixed inset-0 z-30 flex items-center justify-center bg-[var(--modal-overlay-background,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] @container",
19
+ t
20
+ ),
21
+ "data-slot": "modal-overlay",
22
+ ...e,
23
+ children: a
24
+ }
25
+ );
26
+ }
27
+ function b({ children: a, className: t, ...e }) {
28
+ return /* @__PURE__ */ o(
29
+ i,
30
+ {
31
+ className: r(
32
+ "mx-3 my-10 max-h-[90%] max-w-3xl overflow-y-auto rounded-xl bg-[var(--modal-background,hsl(var(--background)))] px-3 py-5 transition ease-out @sm:px-6 @sm:py-8 @5xl:px-20 @5xl:py-10",
33
+ // Focus styles
34
+ "focus:outline-none",
35
+ // Open styles
36
+ "data-[state=open]:duration-200 data-[state=open]:animate-in data-[state=open]:slide-in-from-bottom-16",
37
+ // Closed styles
38
+ "data-[state=closed]:duration-200 data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom-16",
39
+ t
40
+ ),
41
+ "data-slot": "modal-content",
42
+ ...e,
43
+ children: a
44
+ }
45
+ );
46
+ }
47
+ function v({ children: a, className: t, ...e }) {
48
+ return /* @__PURE__ */ o(m, { className: r("sr-only", t), "data-slot": "modal-title", ...e, children: a });
49
+ }
50
+ export {
51
+ p as M,
52
+ x as a,
53
+ g as b,
54
+ y as c,
55
+ b as d,
56
+ v as e
57
+ };
58
+ //# sourceMappingURL=modal-title-MIH3Xsp2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal-title-MIH3Xsp2.js","sources":["../src/components/modal/primitives/modal-root.tsx","../src/components/modal/primitives/modal-trigger.tsx","../src/components/modal/primitives/modal-portal.tsx","../src/components/modal/primitives/modal-overlay.tsx","../src/components/modal/primitives/modal-content.tsx","../src/components/modal/primitives/modal-title.tsx"],"sourcesContent":["'use client';\n\nimport * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type ModalRootProps = ComponentProps<typeof Dialog.Root>;\n\nexport function ModalRoot({ children, ...props }: ModalRootProps) {\n return (\n <Dialog.Root data-slot=\"modal-root\" {...props}>\n {children}\n </Dialog.Root>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type ModalTriggerProps = ComponentProps<typeof Dialog.Trigger>;\n\nexport function ModalTrigger({ children, ...props }: ModalTriggerProps) {\n return (\n <Dialog.Trigger data-slot=\"modal-trigger\" {...props}>\n {children}\n </Dialog.Trigger>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type ModalPortalProps = ComponentProps<typeof Dialog.Portal>;\n\nexport function ModalPortal({ children, ...props }: ModalPortalProps) {\n return (\n <Dialog.Portal data-slot=\"modal-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 ModalOverlayProps = ComponentProps<typeof Dialog.Overlay>;\n\nexport function ModalOverlay({ children, className, ...props }: ModalOverlayProps) {\n return (\n <Dialog.Overlay\n className={cn(\n 'fixed inset-0 z-30 flex items-center justify-center bg-[var(--modal-overlay-background,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] @container',\n className,\n )}\n data-slot=\"modal-overlay\"\n {...props}\n >\n {children}\n </Dialog.Overlay>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type ModalContentProps = ComponentProps<typeof Dialog.Content>;\n\nexport function ModalContent({ children, className, ...props }: ModalContentProps) {\n return (\n <Dialog.Content\n className={cn(\n 'mx-3 my-10 max-h-[90%] max-w-3xl overflow-y-auto rounded-xl bg-[var(--modal-background,hsl(var(--background)))] px-3 py-5 transition ease-out @sm:px-6 @sm:py-8 @5xl:px-20 @5xl:py-10',\n // Focus styles\n 'focus:outline-none',\n // Open styles\n 'data-[state=open]:duration-200 data-[state=open]:animate-in data-[state=open]:slide-in-from-bottom-16',\n // Closed styles\n 'data-[state=closed]:duration-200 data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom-16',\n className,\n )}\n data-slot=\"modal-content\"\n {...props}\n >\n {children}\n </Dialog.Content>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type ModalTitleProps = ComponentProps<typeof Dialog.Title>;\n\nexport function ModalTitle({ children, className, ...props }: ModalTitleProps) {\n return (\n <Dialog.Title className={cn('sr-only', className)} data-slot=\"modal-title\" {...props}>\n {children}\n </Dialog.Title>\n );\n}\n"],"names":["ModalRoot","children","props","jsx","Dialog.Root","ModalTrigger","Dialog.Trigger","ModalPortal","Dialog.Portal","ModalOverlay","className","Dialog.Overlay","cn","ModalContent","Dialog.Content","ModalTitle","Dialog.Title"],"mappings":";;;AAOO,SAASA,EAAU,EAAE,UAAAC,GAAU,GAAGC,KAAyB;AAChE,SACE,gBAAAC,EAACC,GAAA,EAAY,aAAU,cAAc,GAAGF,GACrC,UAAAD,GACH;AAEJ;ACRO,SAASI,EAAa,EAAE,UAAAJ,GAAU,GAAGC,KAA4B;AACtE,SACE,gBAAAC,EAACG,GAAA,EAAe,aAAU,iBAAiB,GAAGJ,GAC3C,UAAAD,GACH;AAEJ;ACNO,SAASM,EAAY,EAAE,UAAAN,GAAU,GAAGC,KAA2B;AACpE,SACE,gBAAAC,EAACK,GAAA,EAAc,aAAU,gBAAgB,GAAGN,GACzC,UAAAD,GACH;AAEJ;ACJO,SAASQ,EAAa,EAAE,UAAAR,GAAU,WAAAS,GAAW,GAAGR,KAA4B;AACjF,SACE,gBAAAC;AAAA,IAACQ;AAAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAF;AAAA,MAAA;AAAA,MAEF,aAAU;AAAA,MACT,GAAGR;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;ACbO,SAASY,EAAa,EAAE,UAAAZ,GAAU,WAAAS,GAAW,GAAGR,KAA4B;AACjF,SACE,gBAAAC;AAAA,IAACW;AAAAA,IAAA;AAAA,MACC,WAAWF;AAAA,QACT;AAAA;AAAA,QAEA;AAAA;AAAA,QAEA;AAAA;AAAA,QAEA;AAAA,QACAF;AAAA,MAAA;AAAA,MAEF,aAAU;AAAA,MACT,GAAGR;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;ACnBO,SAASc,EAAW,EAAE,UAAAd,GAAU,WAAAS,GAAW,GAAGR,KAA0B;AAC7E,SACE,gBAAAC,EAACa,GAAA,EAAa,WAAWJ,EAAG,WAAWF,CAAS,GAAG,aAAU,eAAe,GAAGR,GAC5E,UAAAD,EAAA,CACH;AAEJ;"}
package/dist/modal.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./modal-title-CpD_Fors.cjs");exports.Content=o.ModalContent;exports.Overlay=o.ModalOverlay;exports.Portal=o.ModalPortal;exports.Root=o.ModalRoot;exports.Title=o.ModalTitle;exports.Trigger=o.ModalTrigger;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./modal-title-CuB6IpxH.cjs");exports.Content=o.ModalContent;exports.Overlay=o.ModalOverlay;exports.Portal=o.ModalPortal;exports.Root=o.ModalRoot;exports.Title=o.ModalTitle;exports.Trigger=o.ModalTrigger;
2
2
  //# sourceMappingURL=modal.cjs.map
package/dist/modal.js CHANGED
@@ -1,4 +1,4 @@
1
- import { d as o, c as r, b as s, M as t, e as l, a as g } from "./modal-title-B2Yr1KDi.js";
1
+ import { d as o, c as r, b as s, M as t, e as l, a as g } from "./modal-title-MIH3Xsp2.js";
2
2
  export {
3
3
  o as Content,
4
4
  r as Overlay,
@@ -0,0 +1,79 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { c as o } from "./utils-BOGlfttm.js";
3
+ import { S as i } from "./index-DD8W7cMj.js";
4
+ function c({ className: a, children: t, ...n }) {
5
+ return /* @__PURE__ */ r(
6
+ "nav",
7
+ {
8
+ className: o(
9
+ "py-10 text-xs font-[var(--offset-pagination-font-family,var(--font-family-body))]",
10
+ a
11
+ ),
12
+ "data-slot": "offset-pagination-root",
13
+ ...n,
14
+ children: t
15
+ }
16
+ );
17
+ }
18
+ function u({ className: a, children: t, ...n }) {
19
+ return /* @__PURE__ */ r(
20
+ "ul",
21
+ {
22
+ className: o("flex items-center justify-center gap-2", a),
23
+ "data-slot": "offset-pagination-list",
24
+ ...n,
25
+ children: t
26
+ }
27
+ );
28
+ }
29
+ function p({ className: a, children: t, ...n }) {
30
+ return /* @__PURE__ */ r("li", { className: o(a), "data-slot": "offset-pagination-item", ...n, children: t });
31
+ }
32
+ function v({
33
+ className: a,
34
+ children: t,
35
+ asChild: n = !1,
36
+ ...e
37
+ }) {
38
+ return /* @__PURE__ */ r(
39
+ n ? i : "a",
40
+ {
41
+ className: o(
42
+ "flex h-12 w-12 items-center justify-center rounded-full border transition-colors duration-300 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--offset-pagination-focus,hsl(var(--primary)))]",
43
+ "border-[var(--offset-pagination-border,hsl(var(--contrast-100)))] text-[var(--offset-pagination-text,hsl(var(--foreground)))] hover:bg-[var(--offset-pagination-background-hover,hsl(var(--contrast-100)))]",
44
+ "aria-[current=page]:border-[var(--offset-pagination-current-page-border,hsl(var(--foreground)))] aria-[current=page]:bg-[var(--offset-pagination-current-page-background,hsl(var(--foreground)))] aria-[current=page]:text-[var(--offset-pagination-current-page-text,hsl(var(--background)))] aria-[current=page]:hover:bg-[var(--offset-pagination-current-page-background-hover,hsl(var(--contrast-500)))]",
45
+ a
46
+ ),
47
+ "data-slot": "offset-pagination-link",
48
+ ...e,
49
+ children: t
50
+ }
51
+ );
52
+ }
53
+ function d({
54
+ className: a,
55
+ children: t = "...",
56
+ ...n
57
+ }) {
58
+ return /* @__PURE__ */ r(
59
+ "span",
60
+ {
61
+ "aria-hidden": !0,
62
+ className: o(
63
+ "flex h-12 w-12 items-center justify-center text-[var(--offset-pagination-ellipsis,hsl(var(--foreground)))]",
64
+ a
65
+ ),
66
+ "data-slot": "offset-pagination-ellipsis",
67
+ ...n,
68
+ children: t
69
+ }
70
+ );
71
+ }
72
+ export {
73
+ c as O,
74
+ u as a,
75
+ p as b,
76
+ v as c,
77
+ d
78
+ };
79
+ //# sourceMappingURL=offset-pagination-ellipsis-DWDhFCgW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"offset-pagination-ellipsis-DWDhFCgW.js","sources":["../src/components/offset-pagination/primitives/offset-pagination-root.tsx","../src/components/offset-pagination/primitives/offset-pagination-list.tsx","../src/components/offset-pagination/primitives/offset-pagination-item.tsx","../src/components/offset-pagination/primitives/offset-pagination-link.tsx","../src/components/offset-pagination/primitives/offset-pagination-ellipsis.tsx"],"sourcesContent":["import { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type OffsetPaginationRootProps = ComponentProps<'nav'>;\n\nexport function OffsetPaginationRoot({ className, children, ...props }: OffsetPaginationRootProps) {\n return (\n <nav\n className={cn(\n 'py-10 text-xs font-[var(--offset-pagination-font-family,var(--font-family-body))]',\n className,\n )}\n data-slot=\"offset-pagination-root\"\n {...props}\n >\n {children}\n </nav>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type OffsetPaginationListProps = ComponentProps<'ul'>;\n\nexport function OffsetPaginationList({ className, children, ...props }: OffsetPaginationListProps) {\n return (\n <ul\n className={cn('flex items-center justify-center gap-2', className)}\n data-slot=\"offset-pagination-list\"\n {...props}\n >\n {children}\n </ul>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type OffsetPaginationItemProps = ComponentProps<'li'>;\n\nexport function OffsetPaginationItem({ className, children, ...props }: OffsetPaginationItemProps) {\n return (\n <li className={cn(className)} data-slot=\"offset-pagination-item\" {...props}>\n {children}\n </li>\n );\n}\n","import { Slot } from '@radix-ui/react-slot';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport interface OffsetPaginationLinkProps extends ComponentProps<'a'> {\n asChild?: boolean;\n}\n\nexport function OffsetPaginationLink({\n className,\n children,\n asChild = false,\n ...props\n}: OffsetPaginationLinkProps) {\n const Component = asChild ? Slot : 'a';\n\n return (\n <Component\n className={cn(\n 'flex h-12 w-12 items-center justify-center rounded-full border transition-colors duration-300 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--offset-pagination-focus,hsl(var(--primary)))]',\n 'border-[var(--offset-pagination-border,hsl(var(--contrast-100)))] text-[var(--offset-pagination-text,hsl(var(--foreground)))] hover:bg-[var(--offset-pagination-background-hover,hsl(var(--contrast-100)))]',\n 'aria-[current=page]:border-[var(--offset-pagination-current-page-border,hsl(var(--foreground)))] aria-[current=page]:bg-[var(--offset-pagination-current-page-background,hsl(var(--foreground)))] aria-[current=page]:text-[var(--offset-pagination-current-page-text,hsl(var(--background)))] aria-[current=page]:hover:bg-[var(--offset-pagination-current-page-background-hover,hsl(var(--contrast-500)))]',\n className,\n )}\n data-slot=\"offset-pagination-link\"\n {...props}\n >\n {children}\n </Component>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type OffsetPaginationEllipsisProps = ComponentProps<'span'>;\n\nexport function OffsetPaginationEllipsis({\n className,\n children = '...',\n ...props\n}: OffsetPaginationEllipsisProps) {\n return (\n <span\n aria-hidden\n className={cn(\n 'flex h-12 w-12 items-center justify-center text-[var(--offset-pagination-ellipsis,hsl(var(--foreground)))]',\n className,\n )}\n data-slot=\"offset-pagination-ellipsis\"\n {...props}\n >\n {children}\n </span>\n );\n}\n"],"names":["OffsetPaginationRoot","className","children","props","jsx","cn","OffsetPaginationList","OffsetPaginationItem","OffsetPaginationLink","asChild","Slot","OffsetPaginationEllipsis"],"mappings":";;;AAMO,SAASA,EAAqB,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAAoC;AACjG,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEF,aAAU;AAAA,MACT,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;ACbO,SAASI,EAAqB,EAAE,WAAAL,GAAW,UAAAC,GAAU,GAAGC,KAAoC;AACjG,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAG,0CAA0CJ,CAAS;AAAA,MACjE,aAAU;AAAA,MACT,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;ACVO,SAASK,EAAqB,EAAE,WAAAN,GAAW,UAAAC,GAAU,GAAGC,KAAoC;AACjG,SACE,gBAAAC,EAAC,MAAA,EAAG,WAAWC,EAAGJ,CAAS,GAAG,aAAU,0BAA0B,GAAGE,GAClE,UAAAD,EAAA,CACH;AAEJ;ACHO,SAASM,EAAqB;AAAA,EACnC,WAAAP;AAAA,EACA,UAAAC;AAAA,EACA,SAAAO,IAAU;AAAA,EACV,GAAGN;AACL,GAA8B;AAG5B,SACE,gBAAAC;AAAA,IAHgBK,IAAUC,IAAO;AAAA,IAGhC;AAAA,MACC,WAAWL;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEF,aAAU;AAAA,MACT,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;ACzBO,SAASS,EAAyB;AAAA,EACvC,WAAAV;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,GAAGC;AACL,GAAkC;AAChC,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAW;AAAA,MACX,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEF,aAAU;AAAA,MACT,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("react/jsx-runtime"),i=require("./utils-LBH114_M.cjs"),s=require("./index-DGaxX11V.cjs");function f({className:t,children:a,...n}){return e.jsx("nav",{className:i.cn("py-10 text-xs font-[var(--offset-pagination-font-family,var(--font-family-body))]",t),"data-slot":"offset-pagination-root",...n,children:a})}function g({className:t,children:a,...n}){return e.jsx("ul",{className:i.cn("flex items-center justify-center gap-2",t),"data-slot":"offset-pagination-list",...n,children:a})}function c({className:t,children:a,...n}){return e.jsx("li",{className:i.cn(t),"data-slot":"offset-pagination-item",...n,children:a})}function l({className:t,children:a,asChild:n=!1,...r}){const o=n?s.Slot:"a";return e.jsx(o,{className:i.cn("flex h-12 w-12 items-center justify-center rounded-full border transition-colors duration-300 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--offset-pagination-focus,hsl(var(--primary)))]","border-[var(--offset-pagination-border,hsl(var(--contrast-100)))] text-[var(--offset-pagination-text,hsl(var(--foreground)))] hover:bg-[var(--offset-pagination-background-hover,hsl(var(--contrast-100)))]","aria-[current=page]:border-[var(--offset-pagination-current-page-border,hsl(var(--foreground)))] aria-[current=page]:bg-[var(--offset-pagination-current-page-background,hsl(var(--foreground)))] aria-[current=page]:text-[var(--offset-pagination-current-page-text,hsl(var(--background)))] aria-[current=page]:hover:bg-[var(--offset-pagination-current-page-background-hover,hsl(var(--contrast-500)))]",t),"data-slot":"offset-pagination-link",...r,children:a})}function u({className:t,children:a="...",...n}){return e.jsx("span",{"aria-hidden":!0,className:i.cn("flex h-12 w-12 items-center justify-center text-[var(--offset-pagination-ellipsis,hsl(var(--foreground)))]",t),"data-slot":"offset-pagination-ellipsis",...n,children:a})}exports.OffsetPaginationEllipsis=u;exports.OffsetPaginationItem=c;exports.OffsetPaginationLink=l;exports.OffsetPaginationList=g;exports.OffsetPaginationRoot=f;
2
+ //# sourceMappingURL=offset-pagination-ellipsis-MCFHXB-5.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"offset-pagination-ellipsis-MCFHXB-5.cjs","sources":["../src/components/offset-pagination/primitives/offset-pagination-root.tsx","../src/components/offset-pagination/primitives/offset-pagination-list.tsx","../src/components/offset-pagination/primitives/offset-pagination-item.tsx","../src/components/offset-pagination/primitives/offset-pagination-link.tsx","../src/components/offset-pagination/primitives/offset-pagination-ellipsis.tsx"],"sourcesContent":["import { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type OffsetPaginationRootProps = ComponentProps<'nav'>;\n\nexport function OffsetPaginationRoot({ className, children, ...props }: OffsetPaginationRootProps) {\n return (\n <nav\n className={cn(\n 'py-10 text-xs font-[var(--offset-pagination-font-family,var(--font-family-body))]',\n className,\n )}\n data-slot=\"offset-pagination-root\"\n {...props}\n >\n {children}\n </nav>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type OffsetPaginationListProps = ComponentProps<'ul'>;\n\nexport function OffsetPaginationList({ className, children, ...props }: OffsetPaginationListProps) {\n return (\n <ul\n className={cn('flex items-center justify-center gap-2', className)}\n data-slot=\"offset-pagination-list\"\n {...props}\n >\n {children}\n </ul>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type OffsetPaginationItemProps = ComponentProps<'li'>;\n\nexport function OffsetPaginationItem({ className, children, ...props }: OffsetPaginationItemProps) {\n return (\n <li className={cn(className)} data-slot=\"offset-pagination-item\" {...props}>\n {children}\n </li>\n );\n}\n","import { Slot } from '@radix-ui/react-slot';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport interface OffsetPaginationLinkProps extends ComponentProps<'a'> {\n asChild?: boolean;\n}\n\nexport function OffsetPaginationLink({\n className,\n children,\n asChild = false,\n ...props\n}: OffsetPaginationLinkProps) {\n const Component = asChild ? Slot : 'a';\n\n return (\n <Component\n className={cn(\n 'flex h-12 w-12 items-center justify-center rounded-full border transition-colors duration-300 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--offset-pagination-focus,hsl(var(--primary)))]',\n 'border-[var(--offset-pagination-border,hsl(var(--contrast-100)))] text-[var(--offset-pagination-text,hsl(var(--foreground)))] hover:bg-[var(--offset-pagination-background-hover,hsl(var(--contrast-100)))]',\n 'aria-[current=page]:border-[var(--offset-pagination-current-page-border,hsl(var(--foreground)))] aria-[current=page]:bg-[var(--offset-pagination-current-page-background,hsl(var(--foreground)))] aria-[current=page]:text-[var(--offset-pagination-current-page-text,hsl(var(--background)))] aria-[current=page]:hover:bg-[var(--offset-pagination-current-page-background-hover,hsl(var(--contrast-500)))]',\n className,\n )}\n data-slot=\"offset-pagination-link\"\n {...props}\n >\n {children}\n </Component>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type OffsetPaginationEllipsisProps = ComponentProps<'span'>;\n\nexport function OffsetPaginationEllipsis({\n className,\n children = '...',\n ...props\n}: OffsetPaginationEllipsisProps) {\n return (\n <span\n aria-hidden\n className={cn(\n 'flex h-12 w-12 items-center justify-center text-[var(--offset-pagination-ellipsis,hsl(var(--foreground)))]',\n className,\n )}\n data-slot=\"offset-pagination-ellipsis\"\n {...props}\n >\n {children}\n </span>\n );\n}\n"],"names":["OffsetPaginationRoot","className","children","props","jsx","cn","OffsetPaginationList","OffsetPaginationItem","OffsetPaginationLink","asChild","Component","Slot","OffsetPaginationEllipsis"],"mappings":"sHAMO,SAASA,EAAqB,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,GAAoC,CACjG,OACEC,EAAAA,IAAC,MAAA,CACC,UAAWC,EAAAA,GACT,oFACAJ,CAAA,EAEF,YAAU,yBACT,GAAGE,EAEH,SAAAD,CAAA,CAAA,CAGP,CCbO,SAASI,EAAqB,CAAE,UAAAL,EAAW,SAAAC,EAAU,GAAGC,GAAoC,CACjG,OACEC,EAAAA,IAAC,KAAA,CACC,UAAWC,EAAAA,GAAG,yCAA0CJ,CAAS,EACjE,YAAU,yBACT,GAAGE,EAEH,SAAAD,CAAA,CAAA,CAGP,CCVO,SAASK,EAAqB,CAAE,UAAAN,EAAW,SAAAC,EAAU,GAAGC,GAAoC,CACjG,OACEC,MAAC,KAAA,CAAG,UAAWC,EAAAA,GAAGJ,CAAS,EAAG,YAAU,yBAA0B,GAAGE,EAClE,SAAAD,CAAA,CACH,CAEJ,CCHO,SAASM,EAAqB,CACnC,UAAAP,EACA,SAAAC,EACA,QAAAO,EAAU,GACV,GAAGN,CACL,EAA8B,CAC5B,MAAMO,EAAYD,EAAUE,EAAAA,KAAO,IAEnC,OACEP,EAAAA,IAACM,EAAA,CACC,UAAWL,EAAAA,GACT,gNACA,8MACA,gZACAJ,CAAA,EAEF,YAAU,yBACT,GAAGE,EAEH,SAAAD,CAAA,CAAA,CAGP,CCzBO,SAASU,EAAyB,CACvC,UAAAX,EACA,SAAAC,EAAW,MACX,GAAGC,CACL,EAAkC,CAChC,OACEC,EAAAA,IAAC,OAAA,CACC,cAAW,GACX,UAAWC,EAAAA,GACT,6GACAJ,CAAA,EAEF,YAAU,6BACT,GAAGE,EAEH,SAAAD,CAAA,CAAA,CAGP"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("./utils-LBH114_M.cjs"),s=require("./index-DGaxX11V.cjs");function f({className:t,children:a,...n}){return e.jsx("nav",{className:r.cn("py-10 text-xs font-[var(--offset-pagination-font-family,var(--font-family-body))]",t),"data-slot":"offset-pagination-root",...n,children:a})}function l({className:t,children:a,...n}){return e.jsx("ul",{className:r.cn("flex items-center justify-center gap-2",t),"data-slot":"offset-pagination-list",...n,children:a})}function c({className:t,children:a,...n}){return e.jsx("li",{className:r.cn(t),"data-slot":"offset-pagination-item",...n,children:a})}function u({className:t,children:a,asChild:n=!1,...o}){const i=n?s.Slot:"a";return e.jsx(i,{className:r.cn("flex h-12 w-12 items-center justify-center rounded-full border transition-colors duration-300 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--offset-pagination-focus,hsl(var(--primary)))]","border-[var(--offset-pagination-border,hsl(var(--contrast-100)))] text-[var(--offset-pagination-text,hsl(var(--foreground)))] hover:bg-[var(--offset-pagination-background-hover,hsl(var(--contrast-100)))]","aria-[current=page]:border-[var(--offset-pagination-current-page-border,hsl(var(--foreground)))] aria-[current=page]:bg-[var(--offset-pagination-current-page-background,hsl(var(--foreground)))] aria-[current=page]:text-[var(--offset-pagination-current-page-text,hsl(var(--background)))] aria-[current=page]:hover:bg-[var(--offset-pagination-current-page-background-hover,hsl(var(--contrast-500)))]",t),"data-slot":"offset-pagination-link",...o,children:a})}function g({className:t,children:a="...",...n}){return e.jsx("span",{"aria-hidden":!0,className:r.cn("flex h-12 w-12 items-center justify-center text-[var(--offset-pagination-ellipsis,hsl(var(--foreground)))]",t),"data-slot":"offset-pagination-ellipsis",...n,children:a})}exports.Ellipsis=g;exports.Item=c;exports.Link=u;exports.List=l;exports.Root=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./offset-pagination-ellipsis-MCFHXB-5.cjs");exports.Ellipsis=i.OffsetPaginationEllipsis;exports.Item=i.OffsetPaginationItem;exports.Link=i.OffsetPaginationLink;exports.List=i.OffsetPaginationList;exports.Root=i.OffsetPaginationRoot;
2
2
  //# sourceMappingURL=offset-pagination.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"offset-pagination.cjs","sources":["../src/components/offset-pagination/primitives/offset-pagination-root.tsx","../src/components/offset-pagination/primitives/offset-pagination-list.tsx","../src/components/offset-pagination/primitives/offset-pagination-item.tsx","../src/components/offset-pagination/primitives/offset-pagination-link.tsx","../src/components/offset-pagination/primitives/offset-pagination-ellipsis.tsx"],"sourcesContent":["import { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type OffsetPaginationRootProps = ComponentProps<'nav'>;\n\nexport function OffsetPaginationRoot({ className, children, ...props }: OffsetPaginationRootProps) {\n return (\n <nav\n className={cn(\n 'py-10 text-xs font-[var(--offset-pagination-font-family,var(--font-family-body))]',\n className,\n )}\n data-slot=\"offset-pagination-root\"\n {...props}\n >\n {children}\n </nav>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type OffsetPaginationListProps = ComponentProps<'ul'>;\n\nexport function OffsetPaginationList({ className, children, ...props }: OffsetPaginationListProps) {\n return (\n <ul\n className={cn('flex items-center justify-center gap-2', className)}\n data-slot=\"offset-pagination-list\"\n {...props}\n >\n {children}\n </ul>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type OffsetPaginationItemProps = ComponentProps<'li'>;\n\nexport function OffsetPaginationItem({ className, children, ...props }: OffsetPaginationItemProps) {\n return (\n <li className={cn(className)} data-slot=\"offset-pagination-item\" {...props}>\n {children}\n </li>\n );\n}\n","import { Slot } from '@radix-ui/react-slot';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport interface OffsetPaginationLinkProps extends ComponentProps<'a'> {\n asChild?: boolean;\n}\n\nexport function OffsetPaginationLink({\n className,\n children,\n asChild = false,\n ...props\n}: OffsetPaginationLinkProps) {\n const Component = asChild ? Slot : 'a';\n\n return (\n <Component\n className={cn(\n 'flex h-12 w-12 items-center justify-center rounded-full border transition-colors duration-300 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--offset-pagination-focus,hsl(var(--primary)))]',\n 'border-[var(--offset-pagination-border,hsl(var(--contrast-100)))] text-[var(--offset-pagination-text,hsl(var(--foreground)))] hover:bg-[var(--offset-pagination-background-hover,hsl(var(--contrast-100)))]',\n 'aria-[current=page]:border-[var(--offset-pagination-current-page-border,hsl(var(--foreground)))] aria-[current=page]:bg-[var(--offset-pagination-current-page-background,hsl(var(--foreground)))] aria-[current=page]:text-[var(--offset-pagination-current-page-text,hsl(var(--background)))] aria-[current=page]:hover:bg-[var(--offset-pagination-current-page-background-hover,hsl(var(--contrast-500)))]',\n className,\n )}\n data-slot=\"offset-pagination-link\"\n {...props}\n >\n {children}\n </Component>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type OffsetPaginationEllipsisProps = ComponentProps<'span'>;\n\nexport function OffsetPaginationEllipsis({\n className,\n children = '...',\n ...props\n}: OffsetPaginationEllipsisProps) {\n return (\n <span\n aria-hidden\n className={cn(\n 'flex h-12 w-12 items-center justify-center text-[var(--offset-pagination-ellipsis,hsl(var(--foreground)))]',\n className,\n )}\n data-slot=\"offset-pagination-ellipsis\"\n {...props}\n >\n {children}\n </span>\n );\n}\n"],"names":["OffsetPaginationRoot","className","children","props","jsx","cn","OffsetPaginationList","OffsetPaginationItem","OffsetPaginationLink","asChild","Component","Slot","OffsetPaginationEllipsis"],"mappings":"yLAMO,SAASA,EAAqB,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,GAAoC,CACjG,OACEC,EAAAA,IAAC,MAAA,CACC,UAAWC,EAAAA,GACT,oFACAJ,CAAA,EAEF,YAAU,yBACT,GAAGE,EAEH,SAAAD,CAAA,CAAA,CAGP,CCbO,SAASI,EAAqB,CAAE,UAAAL,EAAW,SAAAC,EAAU,GAAGC,GAAoC,CACjG,OACEC,EAAAA,IAAC,KAAA,CACC,UAAWC,EAAAA,GAAG,yCAA0CJ,CAAS,EACjE,YAAU,yBACT,GAAGE,EAEH,SAAAD,CAAA,CAAA,CAGP,CCVO,SAASK,EAAqB,CAAE,UAAAN,EAAW,SAAAC,EAAU,GAAGC,GAAoC,CACjG,OACEC,MAAC,KAAA,CAAG,UAAWC,EAAAA,GAAGJ,CAAS,EAAG,YAAU,yBAA0B,GAAGE,EAClE,SAAAD,CAAA,CACH,CAEJ,CCHO,SAASM,EAAqB,CACnC,UAAAP,EACA,SAAAC,EACA,QAAAO,EAAU,GACV,GAAGN,CACL,EAA8B,CAC5B,MAAMO,EAAYD,EAAUE,EAAAA,KAAO,IAEnC,OACEP,EAAAA,IAACM,EAAA,CACC,UAAWL,EAAAA,GACT,gNACA,8MACA,gZACAJ,CAAA,EAEF,YAAU,yBACT,GAAGE,EAEH,SAAAD,CAAA,CAAA,CAGP,CCzBO,SAASU,EAAyB,CACvC,UAAAX,EACA,SAAAC,EAAW,MACX,GAAGC,CACL,EAAkC,CAChC,OACEC,EAAAA,IAAC,OAAA,CACC,cAAW,GACX,UAAWC,EAAAA,GACT,6GACAJ,CAAA,EAEF,YAAU,6BACT,GAAGE,EAEH,SAAAD,CAAA,CAAA,CAGP"}
1
+ {"version":3,"file":"offset-pagination.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,79 +1,9 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { c as r } from "./utils-BOGlfttm.js";
3
- import { S as i } from "./index-DD8W7cMj.js";
4
- function c({ className: t, children: a, ...n }) {
5
- return /* @__PURE__ */ o(
6
- "nav",
7
- {
8
- className: r(
9
- "py-10 text-xs font-[var(--offset-pagination-font-family,var(--font-family-body))]",
10
- t
11
- ),
12
- "data-slot": "offset-pagination-root",
13
- ...n,
14
- children: a
15
- }
16
- );
17
- }
18
- function u({ className: t, children: a, ...n }) {
19
- return /* @__PURE__ */ o(
20
- "ul",
21
- {
22
- className: r("flex items-center justify-center gap-2", t),
23
- "data-slot": "offset-pagination-list",
24
- ...n,
25
- children: a
26
- }
27
- );
28
- }
29
- function p({ className: t, children: a, ...n }) {
30
- return /* @__PURE__ */ o("li", { className: r(t), "data-slot": "offset-pagination-item", ...n, children: a });
31
- }
32
- function v({
33
- className: t,
34
- children: a,
35
- asChild: n = !1,
36
- ...e
37
- }) {
38
- return /* @__PURE__ */ o(
39
- n ? i : "a",
40
- {
41
- className: r(
42
- "flex h-12 w-12 items-center justify-center rounded-full border transition-colors duration-300 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--offset-pagination-focus,hsl(var(--primary)))]",
43
- "border-[var(--offset-pagination-border,hsl(var(--contrast-100)))] text-[var(--offset-pagination-text,hsl(var(--foreground)))] hover:bg-[var(--offset-pagination-background-hover,hsl(var(--contrast-100)))]",
44
- "aria-[current=page]:border-[var(--offset-pagination-current-page-border,hsl(var(--foreground)))] aria-[current=page]:bg-[var(--offset-pagination-current-page-background,hsl(var(--foreground)))] aria-[current=page]:text-[var(--offset-pagination-current-page-text,hsl(var(--background)))] aria-[current=page]:hover:bg-[var(--offset-pagination-current-page-background-hover,hsl(var(--contrast-500)))]",
45
- t
46
- ),
47
- "data-slot": "offset-pagination-link",
48
- ...e,
49
- children: a
50
- }
51
- );
52
- }
53
- function d({
54
- className: t,
55
- children: a = "...",
56
- ...n
57
- }) {
58
- return /* @__PURE__ */ o(
59
- "span",
60
- {
61
- "aria-hidden": !0,
62
- className: r(
63
- "flex h-12 w-12 items-center justify-center text-[var(--offset-pagination-ellipsis,hsl(var(--foreground)))]",
64
- t
65
- ),
66
- "data-slot": "offset-pagination-ellipsis",
67
- ...n,
68
- children: a
69
- }
70
- );
71
- }
1
+ import { d as i, b as o, c as t, a as e, O as l } from "./offset-pagination-ellipsis-DWDhFCgW.js";
72
2
  export {
73
- d as Ellipsis,
74
- p as Item,
75
- v as Link,
76
- u as List,
77
- c as Root
3
+ i as Ellipsis,
4
+ o as Item,
5
+ t as Link,
6
+ e as List,
7
+ l as Root
78
8
  };
79
9
  //# sourceMappingURL=offset-pagination.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"offset-pagination.js","sources":["../src/components/offset-pagination/primitives/offset-pagination-root.tsx","../src/components/offset-pagination/primitives/offset-pagination-list.tsx","../src/components/offset-pagination/primitives/offset-pagination-item.tsx","../src/components/offset-pagination/primitives/offset-pagination-link.tsx","../src/components/offset-pagination/primitives/offset-pagination-ellipsis.tsx"],"sourcesContent":["import { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type OffsetPaginationRootProps = ComponentProps<'nav'>;\n\nexport function OffsetPaginationRoot({ className, children, ...props }: OffsetPaginationRootProps) {\n return (\n <nav\n className={cn(\n 'py-10 text-xs font-[var(--offset-pagination-font-family,var(--font-family-body))]',\n className,\n )}\n data-slot=\"offset-pagination-root\"\n {...props}\n >\n {children}\n </nav>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type OffsetPaginationListProps = ComponentProps<'ul'>;\n\nexport function OffsetPaginationList({ className, children, ...props }: OffsetPaginationListProps) {\n return (\n <ul\n className={cn('flex items-center justify-center gap-2', className)}\n data-slot=\"offset-pagination-list\"\n {...props}\n >\n {children}\n </ul>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type OffsetPaginationItemProps = ComponentProps<'li'>;\n\nexport function OffsetPaginationItem({ className, children, ...props }: OffsetPaginationItemProps) {\n return (\n <li className={cn(className)} data-slot=\"offset-pagination-item\" {...props}>\n {children}\n </li>\n );\n}\n","import { Slot } from '@radix-ui/react-slot';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport interface OffsetPaginationLinkProps extends ComponentProps<'a'> {\n asChild?: boolean;\n}\n\nexport function OffsetPaginationLink({\n className,\n children,\n asChild = false,\n ...props\n}: OffsetPaginationLinkProps) {\n const Component = asChild ? Slot : 'a';\n\n return (\n <Component\n className={cn(\n 'flex h-12 w-12 items-center justify-center rounded-full border transition-colors duration-300 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--offset-pagination-focus,hsl(var(--primary)))]',\n 'border-[var(--offset-pagination-border,hsl(var(--contrast-100)))] text-[var(--offset-pagination-text,hsl(var(--foreground)))] hover:bg-[var(--offset-pagination-background-hover,hsl(var(--contrast-100)))]',\n 'aria-[current=page]:border-[var(--offset-pagination-current-page-border,hsl(var(--foreground)))] aria-[current=page]:bg-[var(--offset-pagination-current-page-background,hsl(var(--foreground)))] aria-[current=page]:text-[var(--offset-pagination-current-page-text,hsl(var(--background)))] aria-[current=page]:hover:bg-[var(--offset-pagination-current-page-background-hover,hsl(var(--contrast-500)))]',\n className,\n )}\n data-slot=\"offset-pagination-link\"\n {...props}\n >\n {children}\n </Component>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type OffsetPaginationEllipsisProps = ComponentProps<'span'>;\n\nexport function OffsetPaginationEllipsis({\n className,\n children = '...',\n ...props\n}: OffsetPaginationEllipsisProps) {\n return (\n <span\n aria-hidden\n className={cn(\n 'flex h-12 w-12 items-center justify-center text-[var(--offset-pagination-ellipsis,hsl(var(--foreground)))]',\n className,\n )}\n data-slot=\"offset-pagination-ellipsis\"\n {...props}\n >\n {children}\n </span>\n );\n}\n"],"names":["OffsetPaginationRoot","className","children","props","jsx","cn","OffsetPaginationList","OffsetPaginationItem","OffsetPaginationLink","asChild","Slot","OffsetPaginationEllipsis"],"mappings":";;;AAMO,SAASA,EAAqB,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAAoC;AACjG,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEF,aAAU;AAAA,MACT,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;ACbO,SAASI,EAAqB,EAAE,WAAAL,GAAW,UAAAC,GAAU,GAAGC,KAAoC;AACjG,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAG,0CAA0CJ,CAAS;AAAA,MACjE,aAAU;AAAA,MACT,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;ACVO,SAASK,EAAqB,EAAE,WAAAN,GAAW,UAAAC,GAAU,GAAGC,KAAoC;AACjG,SACE,gBAAAC,EAAC,MAAA,EAAG,WAAWC,EAAGJ,CAAS,GAAG,aAAU,0BAA0B,GAAGE,GAClE,UAAAD,EAAA,CACH;AAEJ;ACHO,SAASM,EAAqB;AAAA,EACnC,WAAAP;AAAA,EACA,UAAAC;AAAA,EACA,SAAAO,IAAU;AAAA,EACV,GAAGN;AACL,GAA8B;AAG5B,SACE,gBAAAC;AAAA,IAHgBK,IAAUC,IAAO;AAAA,IAGhC;AAAA,MACC,WAAWL;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEF,aAAU;AAAA,MACT,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;ACzBO,SAASS,EAAyB;AAAA,EACvC,WAAAV;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,GAAGC;AACL,GAAkC;AAChC,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAW;AAAA,MACX,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEF,aAAU;AAAA,MACT,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;"}
1
+ {"version":3,"file":"offset-pagination.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}