@codefast/ui 0.1.13 → 0.1.15

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 (118) hide show
  1. package/dist/chunk-AH3OBTDO.cjs +2 -0
  2. package/dist/chunk-AH3OBTDO.cjs.map +1 -0
  3. package/dist/chunk-CIMAEJ26.js +2 -0
  4. package/dist/chunk-CIMAEJ26.js.map +1 -0
  5. package/dist/chunk-EWFBUJ5V.cjs +2 -0
  6. package/dist/chunk-EWFBUJ5V.cjs.map +1 -0
  7. package/dist/chunk-FPCACNPX.cjs +2 -0
  8. package/dist/chunk-FPCACNPX.cjs.map +1 -0
  9. package/dist/chunk-O5EAJQGO.js +2 -0
  10. package/dist/chunk-O5EAJQGO.js.map +1 -0
  11. package/dist/chunk-SP6TA64U.js +2 -0
  12. package/dist/chunk-SP6TA64U.js.map +1 -0
  13. package/dist/components/accordion.cjs +1 -1
  14. package/dist/components/accordion.cjs.map +1 -1
  15. package/dist/components/accordion.js +1 -1
  16. package/dist/components/accordion.js.map +1 -1
  17. package/dist/components/alert-dialog.cjs +1 -1
  18. package/dist/components/alert-dialog.cjs.map +1 -1
  19. package/dist/components/alert-dialog.js +1 -1
  20. package/dist/components/alert-dialog.js.map +1 -1
  21. package/dist/components/carousel.cjs +1 -1
  22. package/dist/components/carousel.cjs.map +1 -1
  23. package/dist/components/carousel.d.cts +6 -1
  24. package/dist/components/carousel.d.ts +6 -1
  25. package/dist/components/carousel.js +1 -1
  26. package/dist/components/carousel.js.map +1 -1
  27. package/dist/components/checkbox-cards.cjs +1 -1
  28. package/dist/components/checkbox-cards.cjs.map +1 -1
  29. package/dist/components/checkbox-cards.d.cts +1 -1
  30. package/dist/components/checkbox-cards.d.ts +1 -1
  31. package/dist/components/checkbox-cards.js +1 -1
  32. package/dist/components/checkbox-cards.js.map +1 -1
  33. package/dist/components/checkbox-group.cjs +1 -1
  34. package/dist/components/checkbox-group.cjs.map +1 -1
  35. package/dist/components/checkbox-group.d.cts +1 -1
  36. package/dist/components/checkbox-group.d.ts +1 -1
  37. package/dist/components/checkbox-group.js +1 -1
  38. package/dist/components/checkbox-group.js.map +1 -1
  39. package/dist/components/collapsible.cjs +1 -1
  40. package/dist/components/collapsible.cjs.map +1 -1
  41. package/dist/components/collapsible.js +1 -1
  42. package/dist/components/collapsible.js.map +1 -1
  43. package/dist/components/command.cjs +1 -1
  44. package/dist/components/command.cjs.map +1 -1
  45. package/dist/components/command.js +1 -1
  46. package/dist/components/command.js.map +1 -1
  47. package/dist/components/context-menu.cjs +1 -1
  48. package/dist/components/context-menu.cjs.map +1 -1
  49. package/dist/components/context-menu.js +1 -1
  50. package/dist/components/context-menu.js.map +1 -1
  51. package/dist/components/data-table.cjs +1 -1
  52. package/dist/components/data-table.cjs.map +1 -1
  53. package/dist/components/data-table.js +1 -1
  54. package/dist/components/data-table.js.map +1 -1
  55. package/dist/components/dialog.cjs +1 -1
  56. package/dist/components/dialog.js +1 -1
  57. package/dist/components/dropdown-menu.cjs +1 -1
  58. package/dist/components/dropdown-menu.cjs.map +1 -1
  59. package/dist/components/dropdown-menu.d.cts +3 -1
  60. package/dist/components/dropdown-menu.d.ts +3 -1
  61. package/dist/components/dropdown-menu.js +1 -1
  62. package/dist/components/hover-card.cjs +1 -1
  63. package/dist/components/hover-card.cjs.map +1 -1
  64. package/dist/components/hover-card.js +1 -1
  65. package/dist/components/hover-card.js.map +1 -1
  66. package/dist/components/menubar.cjs +1 -1
  67. package/dist/components/menubar.cjs.map +1 -1
  68. package/dist/components/menubar.d.cts +3 -1
  69. package/dist/components/menubar.d.ts +3 -1
  70. package/dist/components/menubar.js +1 -1
  71. package/dist/components/menubar.js.map +1 -1
  72. package/dist/components/navigation-menu.cjs +1 -1
  73. package/dist/components/navigation-menu.cjs.map +1 -1
  74. package/dist/components/navigation-menu.js +1 -1
  75. package/dist/components/navigation-menu.js.map +1 -1
  76. package/dist/components/number-input.cjs +1 -1
  77. package/dist/components/number-input.cjs.map +1 -1
  78. package/dist/components/number-input.d.cts +1 -1
  79. package/dist/components/number-input.d.ts +1 -1
  80. package/dist/components/number-input.js +1 -1
  81. package/dist/components/number-input.js.map +1 -1
  82. package/dist/components/popover.cjs +1 -1
  83. package/dist/components/popover.cjs.map +1 -1
  84. package/dist/components/popover.js +1 -1
  85. package/dist/components/popover.js.map +1 -1
  86. package/dist/components/select.cjs +1 -1
  87. package/dist/components/select.js +1 -1
  88. package/dist/components/sheet.cjs +1 -1
  89. package/dist/components/sheet.cjs.map +1 -1
  90. package/dist/components/sheet.d.cts +30 -30
  91. package/dist/components/sheet.d.ts +30 -30
  92. package/dist/components/sheet.js +1 -1
  93. package/dist/components/sheet.js.map +1 -1
  94. package/dist/components/table.cjs +1 -1
  95. package/dist/components/table.cjs.map +1 -1
  96. package/dist/components/table.js +1 -1
  97. package/dist/components/table.js.map +1 -1
  98. package/dist/components/text-input.cjs +1 -1
  99. package/dist/components/text-input.cjs.map +1 -1
  100. package/dist/components/text-input.d.cts +1 -1
  101. package/dist/components/text-input.d.ts +1 -1
  102. package/dist/components/text-input.js +1 -1
  103. package/dist/components/text-input.js.map +1 -1
  104. package/dist/styles.css +1 -1
  105. package/dist/styles.css.map +1 -1
  106. package/package.json +13 -11
  107. package/dist/chunk-CF44244M.js +0 -2
  108. package/dist/chunk-CF44244M.js.map +0 -1
  109. package/dist/chunk-EXOTUGK5.cjs +0 -2
  110. package/dist/chunk-EXOTUGK5.cjs.map +0 -1
  111. package/dist/chunk-KH4PSDPI.js +0 -2
  112. package/dist/chunk-KH4PSDPI.js.map +0 -1
  113. package/dist/chunk-TY2YG7LH.cjs +0 -2
  114. package/dist/chunk-TY2YG7LH.cjs.map +0 -1
  115. package/dist/chunk-XOSPBKAU.cjs +0 -2
  116. package/dist/chunk-XOSPBKAU.cjs.map +0 -1
  117. package/dist/chunk-ZBAEU4QU.js +0 -2
  118. package/dist/chunk-ZBAEU4QU.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/number-input.cjs","../../src/components/number-input.tsx"],"names":["root","input","inputVariants","NumberInput","ariaDecrementLabel","ariaIncrementLabel","className","inputSize","defaultValue","disabled","formatOptions","id","max","min","readOnly","step","value","onChange","props","forwardedRef","jsxs","jsx","buttonVariants","ChevronUpIcon","ChevronDownIcon"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,yDAA0C,uECEzE,8GACe,mDACS,+CAoDzC,GAhDA,CAAE,IAAA,CAAAA,CAAAA,CAAM,KAAA,CAAAC,CAAM,CAAA,CAAIC,iCAAAA,CAAc,CAYhCC,CAAAA,uBAAoB,CAAA,CAAA,UAAA,CACxB,CACE,CACE,kBAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,CAAAA,CACA,EAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EAEAC,8BAAAA,CAAsB,CAAA,IAAA,CAArB,CACC,kBAAA,CAAoBhB,CAAAA,CACpB,kBAAA,CAAoBC,CAAAA,CACpB,SAAA,CAAWL,CAAAA,CAAK,CAAE,SAAA,CAAAO,CAAAA,CAAW,SAAA,CAAW,CAAC,MAAA,CAAQD,CAAS,CAAE,CAAC,CAAA,CAC7D,YAAA,CAAcE,CAAAA,CACd,QAAA,CAAUC,CAAAA,CACV,aAAA,CAAeC,CAAAA,CACf,EAAA,CAAIC,CAAAA,CACJ,GAAA,CAAKC,CAAAA,CACL,GAAA,CAAKC,CAAAA,CACL,QAAA,CAAUC,CAAAA,CACV,IAAA,CAAMC,CAAAA,CACN,KAAA,CAAOC,CAAAA,CACP,QAAA,CAAUC,CAAAA,CAEV,QAAA,CAAA,CAAAI,6BAAAA,CAAsB,CAAA,IAAA,CAArB,CACC,GAAA,CAAKF,CAAAA,CACL,cAAA,CAAe,KAAA,CACf,YAAA,CAAa,KAAA,CACb,WAAA,CAAY,KAAA,CACZ,SAAA,CAAWlB,CAAAA,CAAM,CAAE,SAAA,CAAAM,CAAU,CAAC,CAAA,CAC9B,SAAA,CAAU,SAAA,CACV,UAAA,CAAW,OAAA,CACV,GAAGW,CAAAA,CACN,CAAA,CACAE,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAU,oDAAA,CACb,QAAA,CAAA,CAAAC,6BAAAA,CAAsB,CAAA,eAAA,CAArB,CACC,SAAA,CAAWC,iCAAAA,CACT,SAAA,CAAW,mCAAA,CACX,IAAA,CAAM,CAAA,CAAA,CACN,OAAA,CAAS,OACX,CAAC,CAAA,CAED,QAAA,CAAAD,6BAAAA,yBAACE,CAAA,CAAA,CAAc,CAAA,CACjB,CAAA,CACAF,6BAAAA,CAAsB,CAAA,eAAA,CAArB,CACC,SAAA,CAAWC,iCAAAA,CACT,SAAA,CAAW,mCAAA,CACX,IAAA,CAAM,CAAA,CAAA,CACN,OAAA,CAAS,OACX,CAAC,CAAA,CAED,QAAA,CAAAD,6BAAAA,2BAACG,CAAA,CAAA,CAAgB,CAAA,CACnB,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAEJ,CAAA,CAEArB,CAAAA,CAAY,WAAA,CAAc,aAAA,CAAA,wBAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/number-input.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as NumberInputPrimitive from '@codefast/primitive/number-input';\nimport { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport { buttonVariants } from '@/styles/button-variants';\nimport { inputVariants, type InputVariantsProps } from '@/styles/input-variants';\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: NumberInput\n * -------------------------------------------------------------------------- */\n\ntype NumberInputElement = React.ElementRef<typeof NumberInputPrimitive.Item>;\ninterface NumberInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof NumberInputPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NumberInputPrimitive.Item> {}\n\nconst NumberInput = React.forwardRef<NumberInputElement, NumberInputProps>(\n (\n {\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n inputSize,\n defaultValue,\n disabled,\n formatOptions,\n id,\n max,\n min,\n readOnly,\n step,\n value,\n onChange,\n ...props\n },\n forwardedRef,\n ) => (\n <NumberInputPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ inputSize, className: ['pr-0', className] })}\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n max={max}\n min={min}\n readOnly={readOnly}\n step={step}\n value={value}\n onChange={onChange}\n >\n <NumberInputPrimitive.Item\n ref={forwardedRef}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input({ inputSize })}\n inputMode=\"numeric\"\n spellCheck=\"false\"\n {...props}\n />\n <div className=\"ml-auto grid h-full divide-y rounded-r-md border-l\">\n <NumberInputPrimitive.IncrementButton\n className={buttonVariants({\n className: 'h-full rounded-none rounded-tr-md',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronUpIcon />\n </NumberInputPrimitive.IncrementButton>\n <NumberInputPrimitive.DecrementButton\n className={buttonVariants({\n className: 'rounded-tb-md h-full rounded-none',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronDownIcon />\n </NumberInputPrimitive.DecrementButton>\n </div>\n </NumberInputPrimitive.Root>\n ),\n);\n\nNumberInput.displayName = 'NumberInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NumberInput, type NumberInputProps };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/number-input.cjs","../../src/components/number-input.tsx"],"names":["root","input","inputVariants","NumberInput","ariaDecrementLabel","ariaIncrementLabel","className","inputSize","defaultValue","disabled","formatOptions","id","max","min","readOnly","step","value","onChange","props","forwardedRef","jsxs","jsx","buttonVariants","ChevronUpIcon","ChevronDownIcon"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,yDAA0C,uECEzE,uGACe,mDACS,+CAoDzC,GAhDA,CAAE,IAAA,CAAAA,CAAAA,CAAM,KAAA,CAAAC,CAAM,CAAA,CAAIC,iCAAAA,CAAc,CAYhCC,CAAAA,uBAAoB,CAAA,CAAA,UAAA,CACxB,CACE,CACE,kBAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,CAAAA,CACA,EAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EAEAC,8BAAAA,CAAsB,CAAA,IAAA,CAArB,CACC,kBAAA,CAAoBhB,CAAAA,CACpB,kBAAA,CAAoBC,CAAAA,CACpB,SAAA,CAAWL,CAAAA,CAAK,CAAE,SAAA,CAAAO,CAAAA,CAAW,SAAA,CAAW,CAAC,MAAA,CAAQD,CAAS,CAAE,CAAC,CAAA,CAC7D,YAAA,CAAcE,CAAAA,CACd,QAAA,CAAUC,CAAAA,CACV,aAAA,CAAeC,CAAAA,CACf,EAAA,CAAIC,CAAAA,CACJ,GAAA,CAAKC,CAAAA,CACL,GAAA,CAAKC,CAAAA,CACL,QAAA,CAAUC,CAAAA,CACV,IAAA,CAAMC,CAAAA,CACN,KAAA,CAAOC,CAAAA,CACP,QAAA,CAAUC,CAAAA,CAEV,QAAA,CAAA,CAAAI,6BAAAA,CAAsB,CAAA,IAAA,CAArB,CACC,GAAA,CAAKF,CAAAA,CACL,cAAA,CAAe,KAAA,CACf,YAAA,CAAa,KAAA,CACb,WAAA,CAAY,KAAA,CACZ,SAAA,CAAWlB,CAAAA,CAAM,CAAE,SAAA,CAAAM,CAAU,CAAC,CAAA,CAC9B,SAAA,CAAU,SAAA,CACV,UAAA,CAAW,OAAA,CACV,GAAGW,CAAAA,CACN,CAAA,CACAE,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAU,oDAAA,CACb,QAAA,CAAA,CAAAC,6BAAAA,CAAsB,CAAA,eAAA,CAArB,CACC,SAAA,CAAWC,iCAAAA,CACT,SAAA,CAAW,mCAAA,CACX,IAAA,CAAM,CAAA,CAAA,CACN,OAAA,CAAS,OACX,CAAC,CAAA,CAED,QAAA,CAAAD,6BAAAA,yBAACE,CAAA,CAAA,CAAc,CAAA,CACjB,CAAA,CACAF,6BAAAA,CAAsB,CAAA,eAAA,CAArB,CACC,SAAA,CAAWC,iCAAAA,CACT,SAAA,CAAW,mCAAA,CACX,IAAA,CAAM,CAAA,CAAA,CACN,OAAA,CAAS,OACX,CAAC,CAAA,CAED,QAAA,CAAAD,6BAAAA,2BAACG,CAAA,CAAA,CAAgB,CAAA,CACnB,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAEJ,CAAA,CAEArB,CAAAA,CAAY,WAAA,CAAc,aAAA,CAAA,wBAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/number-input.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as NumberInputPrimitive from '@codefast-ui/number-input';\nimport { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport { buttonVariants } from '@/styles/button-variants';\nimport { inputVariants, type InputVariantsProps } from '@/styles/input-variants';\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: NumberInput\n * -------------------------------------------------------------------------- */\n\ntype NumberInputElement = React.ElementRef<typeof NumberInputPrimitive.Item>;\ninterface NumberInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof NumberInputPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NumberInputPrimitive.Item> {}\n\nconst NumberInput = React.forwardRef<NumberInputElement, NumberInputProps>(\n (\n {\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n inputSize,\n defaultValue,\n disabled,\n formatOptions,\n id,\n max,\n min,\n readOnly,\n step,\n value,\n onChange,\n ...props\n },\n forwardedRef,\n ) => (\n <NumberInputPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ inputSize, className: ['pr-0', className] })}\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n max={max}\n min={min}\n readOnly={readOnly}\n step={step}\n value={value}\n onChange={onChange}\n >\n <NumberInputPrimitive.Item\n ref={forwardedRef}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input({ inputSize })}\n inputMode=\"numeric\"\n spellCheck=\"false\"\n {...props}\n />\n <div className=\"ml-auto grid h-full divide-y rounded-r-md border-l\">\n <NumberInputPrimitive.IncrementButton\n className={buttonVariants({\n className: 'h-full rounded-none rounded-tr-md',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronUpIcon />\n </NumberInputPrimitive.IncrementButton>\n <NumberInputPrimitive.DecrementButton\n className={buttonVariants({\n className: 'rounded-tb-md h-full rounded-none',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronDownIcon />\n </NumberInputPrimitive.DecrementButton>\n </div>\n </NumberInputPrimitive.Root>\n ),\n);\n\nNumberInput.displayName = 'NumberInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NumberInput, type NumberInputProps };\n"]}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import * as NumberInputPrimitive from '@codefast/primitive/number-input';
2
+ import * as NumberInputPrimitive from '@codefast-ui/number-input';
3
3
  import { InputVariantsProps } from '../styles/input-variants.cjs';
4
4
  import 'tailwind-variants';
5
5
  import 'tailwind-variants/dist/config.js';
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import * as NumberInputPrimitive from '@codefast/primitive/number-input';
2
+ import * as NumberInputPrimitive from '@codefast-ui/number-input';
3
3
  import { InputVariantsProps } from '../styles/input-variants.js';
4
4
  import 'tailwind-variants';
5
5
  import 'tailwind-variants/dist/config.js';
@@ -1,2 +1,2 @@
1
- "use client";import{a as o}from"../chunk-FIU6XBX4.js";import{a as r}from"../chunk-YGPIWXWP.js";import*as i from"react";import*as e from"@codefast/primitive/number-input";import{ChevronDownIcon as y,ChevronUpIcon as C}from"@radix-ui/react-icons";import{jsx as t,jsxs as m}from"react/jsx-runtime";var{root:V,input:g}=o(),B=i.forwardRef(({ariaDecrementLabel:u,ariaIncrementLabel:a,className:p,inputSize:n,defaultValue:s,disabled:l,formatOptions:c,id:d,max:I,min:N,readOnly:f,step:b,value:v,onChange:P,...R},h)=>m(e.Root,{ariaDecrementLabel:u,ariaIncrementLabel:a,className:V({inputSize:n,className:["pr-0",p]}),defaultValue:s,disabled:l,formatOptions:c,id:d,max:I,min:N,readOnly:f,step:b,value:v,onChange:P,children:[t(e.Item,{ref:h,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",className:g({inputSize:n}),inputMode:"numeric",spellCheck:"false",...R}),m("div",{className:"ml-auto grid h-full divide-y rounded-r-md border-l",children:[t(e.IncrementButton,{className:r({className:"h-full rounded-none rounded-tr-md",icon:!0,variant:"ghost"}),children:t(C,{})}),t(e.DecrementButton,{className:r({className:"rounded-tb-md h-full rounded-none",icon:!0,variant:"ghost"}),children:t(y,{})})]})]}));B.displayName="NumberInput";export{B as NumberInput};
1
+ "use client";import{a as o}from"../chunk-FIU6XBX4.js";import{a as r}from"../chunk-YGPIWXWP.js";import*as i from"react";import*as e from"@codefast-ui/number-input";import{ChevronDownIcon as y,ChevronUpIcon as C}from"@radix-ui/react-icons";import{jsx as t,jsxs as m}from"react/jsx-runtime";var{root:V,input:g}=o(),B=i.forwardRef(({ariaDecrementLabel:u,ariaIncrementLabel:a,className:p,inputSize:n,defaultValue:s,disabled:l,formatOptions:c,id:d,max:I,min:N,readOnly:f,step:b,value:v,onChange:P,...R},h)=>m(e.Root,{ariaDecrementLabel:u,ariaIncrementLabel:a,className:V({inputSize:n,className:["pr-0",p]}),defaultValue:s,disabled:l,formatOptions:c,id:d,max:I,min:N,readOnly:f,step:b,value:v,onChange:P,children:[t(e.Item,{ref:h,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",className:g({inputSize:n}),inputMode:"numeric",spellCheck:"false",...R}),m("div",{className:"ml-auto grid h-full divide-y rounded-r-md border-l",children:[t(e.IncrementButton,{className:r({className:"h-full rounded-none rounded-tr-md",icon:!0,variant:"ghost"}),children:t(C,{})}),t(e.DecrementButton,{className:r({className:"rounded-tb-md h-full rounded-none",icon:!0,variant:"ghost"}),children:t(y,{})})]})]}));B.displayName="NumberInput";export{B as NumberInput};
2
2
  //# sourceMappingURL=number-input.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/number-input.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as NumberInputPrimitive from '@codefast/primitive/number-input';\nimport { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport { buttonVariants } from '@/styles/button-variants';\nimport { inputVariants, type InputVariantsProps } from '@/styles/input-variants';\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: NumberInput\n * -------------------------------------------------------------------------- */\n\ntype NumberInputElement = React.ElementRef<typeof NumberInputPrimitive.Item>;\ninterface NumberInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof NumberInputPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NumberInputPrimitive.Item> {}\n\nconst NumberInput = React.forwardRef<NumberInputElement, NumberInputProps>(\n (\n {\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n inputSize,\n defaultValue,\n disabled,\n formatOptions,\n id,\n max,\n min,\n readOnly,\n step,\n value,\n onChange,\n ...props\n },\n forwardedRef,\n ) => (\n <NumberInputPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ inputSize, className: ['pr-0', className] })}\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n max={max}\n min={min}\n readOnly={readOnly}\n step={step}\n value={value}\n onChange={onChange}\n >\n <NumberInputPrimitive.Item\n ref={forwardedRef}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input({ inputSize })}\n inputMode=\"numeric\"\n spellCheck=\"false\"\n {...props}\n />\n <div className=\"ml-auto grid h-full divide-y rounded-r-md border-l\">\n <NumberInputPrimitive.IncrementButton\n className={buttonVariants({\n className: 'h-full rounded-none rounded-tr-md',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronUpIcon />\n </NumberInputPrimitive.IncrementButton>\n <NumberInputPrimitive.DecrementButton\n className={buttonVariants({\n className: 'rounded-tb-md h-full rounded-none',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronDownIcon />\n </NumberInputPrimitive.DecrementButton>\n </div>\n </NumberInputPrimitive.Root>\n ),\n);\n\nNumberInput.displayName = 'NumberInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NumberInput, type NumberInputProps };\n"],"mappings":"+FAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,mCACtC,OAAS,mBAAAC,EAAiB,iBAAAC,MAAqB,wBAoDzC,cAAAC,EAUA,QAAAC,MAVA,oBAhDN,GAAM,CAAE,KAAAC,EAAM,MAAAC,CAAM,EAAIC,EAAc,EAYhCC,EAAoB,aACxB,CACE,CACE,mBAAAC,EACA,mBAAAC,EACA,UAAAC,EACA,UAAAC,EACA,aAAAC,EACA,SAAAC,EACA,cAAAC,EACA,GAAAC,EACA,IAAAC,EACA,IAAAC,EACA,SAAAC,EACA,KAAAC,EACA,MAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EACAC,IAEApB,EAAsB,OAArB,CACC,mBAAoBK,EACpB,mBAAoBC,EACpB,UAAWL,EAAK,CAAE,UAAAO,EAAW,UAAW,CAAC,OAAQD,CAAS,CAAE,CAAC,EAC7D,aAAcE,EACd,SAAUC,EACV,cAAeC,EACf,GAAIC,EACJ,IAAKC,EACL,IAAKC,EACL,SAAUC,EACV,KAAMC,EACN,MAAOC,EACP,SAAUC,EAEV,UAAAnB,EAAsB,OAArB,CACC,IAAKqB,EACL,eAAe,MACf,aAAa,MACb,YAAY,MACZ,UAAWlB,EAAM,CAAE,UAAAM,CAAU,CAAC,EAC9B,UAAU,UACV,WAAW,QACV,GAAGW,EACN,EACAnB,EAAC,OAAI,UAAU,qDACb,UAAAD,EAAsB,kBAArB,CACC,UAAWsB,EAAe,CACxB,UAAW,oCACX,KAAM,GACN,QAAS,OACX,CAAC,EAED,SAAAtB,EAACuB,EAAA,EAAc,EACjB,EACAvB,EAAsB,kBAArB,CACC,UAAWsB,EAAe,CACxB,UAAW,oCACX,KAAM,GACN,QAAS,OACX,CAAC,EAED,SAAAtB,EAACwB,EAAA,EAAgB,EACnB,GACF,GACF,CAEJ,EAEAnB,EAAY,YAAc","names":["React","NumberInputPrimitive","ChevronDownIcon","ChevronUpIcon","jsx","jsxs","root","input","inputVariants","NumberInput","ariaDecrementLabel","ariaIncrementLabel","className","inputSize","defaultValue","disabled","formatOptions","id","max","min","readOnly","step","value","onChange","props","forwardedRef","buttonVariants","ChevronUpIcon","ChevronDownIcon"]}
1
+ {"version":3,"sources":["../../src/components/number-input.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as NumberInputPrimitive from '@codefast-ui/number-input';\nimport { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport { buttonVariants } from '@/styles/button-variants';\nimport { inputVariants, type InputVariantsProps } from '@/styles/input-variants';\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: NumberInput\n * -------------------------------------------------------------------------- */\n\ntype NumberInputElement = React.ElementRef<typeof NumberInputPrimitive.Item>;\ninterface NumberInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof NumberInputPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NumberInputPrimitive.Item> {}\n\nconst NumberInput = React.forwardRef<NumberInputElement, NumberInputProps>(\n (\n {\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n inputSize,\n defaultValue,\n disabled,\n formatOptions,\n id,\n max,\n min,\n readOnly,\n step,\n value,\n onChange,\n ...props\n },\n forwardedRef,\n ) => (\n <NumberInputPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ inputSize, className: ['pr-0', className] })}\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n max={max}\n min={min}\n readOnly={readOnly}\n step={step}\n value={value}\n onChange={onChange}\n >\n <NumberInputPrimitive.Item\n ref={forwardedRef}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input({ inputSize })}\n inputMode=\"numeric\"\n spellCheck=\"false\"\n {...props}\n />\n <div className=\"ml-auto grid h-full divide-y rounded-r-md border-l\">\n <NumberInputPrimitive.IncrementButton\n className={buttonVariants({\n className: 'h-full rounded-none rounded-tr-md',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronUpIcon />\n </NumberInputPrimitive.IncrementButton>\n <NumberInputPrimitive.DecrementButton\n className={buttonVariants({\n className: 'rounded-tb-md h-full rounded-none',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronDownIcon />\n </NumberInputPrimitive.DecrementButton>\n </div>\n </NumberInputPrimitive.Root>\n ),\n);\n\nNumberInput.displayName = 'NumberInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NumberInput, type NumberInputProps };\n"],"mappings":"+FAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,4BACtC,OAAS,mBAAAC,EAAiB,iBAAAC,MAAqB,wBAoDzC,cAAAC,EAUA,QAAAC,MAVA,oBAhDN,GAAM,CAAE,KAAAC,EAAM,MAAAC,CAAM,EAAIC,EAAc,EAYhCC,EAAoB,aACxB,CACE,CACE,mBAAAC,EACA,mBAAAC,EACA,UAAAC,EACA,UAAAC,EACA,aAAAC,EACA,SAAAC,EACA,cAAAC,EACA,GAAAC,EACA,IAAAC,EACA,IAAAC,EACA,SAAAC,EACA,KAAAC,EACA,MAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EACAC,IAEApB,EAAsB,OAArB,CACC,mBAAoBK,EACpB,mBAAoBC,EACpB,UAAWL,EAAK,CAAE,UAAAO,EAAW,UAAW,CAAC,OAAQD,CAAS,CAAE,CAAC,EAC7D,aAAcE,EACd,SAAUC,EACV,cAAeC,EACf,GAAIC,EACJ,IAAKC,EACL,IAAKC,EACL,SAAUC,EACV,KAAMC,EACN,MAAOC,EACP,SAAUC,EAEV,UAAAnB,EAAsB,OAArB,CACC,IAAKqB,EACL,eAAe,MACf,aAAa,MACb,YAAY,MACZ,UAAWlB,EAAM,CAAE,UAAAM,CAAU,CAAC,EAC9B,UAAU,UACV,WAAW,QACV,GAAGW,EACN,EACAnB,EAAC,OAAI,UAAU,qDACb,UAAAD,EAAsB,kBAArB,CACC,UAAWsB,EAAe,CACxB,UAAW,oCACX,KAAM,GACN,QAAS,OACX,CAAC,EAED,SAAAtB,EAACuB,EAAA,EAAc,EACjB,EACAvB,EAAsB,kBAArB,CACC,UAAWsB,EAAe,CACxB,UAAW,oCACX,KAAM,GACN,QAAS,OACX,CAAC,EAED,SAAAtB,EAACwB,EAAA,EAAgB,EACnB,GACF,GACF,CAEJ,EAEAnB,EAAY,YAAc","names":["React","NumberInputPrimitive","ChevronDownIcon","ChevronUpIcon","jsx","jsxs","root","input","inputVariants","NumberInput","ariaDecrementLabel","ariaIncrementLabel","className","inputSize","defaultValue","disabled","formatOptions","id","max","min","readOnly","step","value","onChange","props","forwardedRef","buttonVariants","ChevronUpIcon","ChevronDownIcon"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var a = _interopRequireWildcard(_react);var _reactpopover = require('@radix-ui/react-popover'); var o = _interopRequireWildcard(_reactpopover);var _jsxruntime = require('react/jsx-runtime');var m=o.Root,l= exports.PopoverTrigger =o.Trigger,f= exports.PopoverAnchor =o.Anchor,n= exports.PopoverContent =a.forwardRef(({className:e,align:t="center",sideOffset:r=6,...P},s)=>_jsxruntime.jsx.call(void 0, o.Portal,{children:_jsxruntime.jsx.call(void 0, o.Content,{ref:s,align:t,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 z-50 min-w-32 rounded-md border p-4 shadow-md",e),sideOffset:r,...P})}));n.displayName=o.Content.displayName;var d=a.forwardRef(({className:e,...t},r)=>_jsxruntime.jsx.call(void 0, o.Arrow,{ref:r,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "fill-popover",e),...t}));d.displayName=o.Arrow.displayName;exports.Popover = m; exports.PopoverAnchor = f; exports.PopoverArrow = d; exports.PopoverContent = n; exports.PopoverTrigger = l;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var a = _interopRequireWildcard(_react);var _reactpopover = require('@radix-ui/react-popover'); var o = _interopRequireWildcard(_reactpopover);var _jsxruntime = require('react/jsx-runtime');var m=o.Root,l= exports.PopoverTrigger =o.Trigger,f= exports.PopoverAnchor =o.Anchor,n= exports.PopoverContent =a.forwardRef(({className:e,align:t="center",sideOffset:r=6,...P},s)=>_jsxruntime.jsx.call(void 0, o.Portal,{children:_jsxruntime.jsx.call(void 0, o.Content,{ref:s,align:t,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-4 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=closed]:data-[side=top]:slide-out-to-bottom-2","data-[state=closed]:data-[side=left]:slide-out-to-right-2","data-[state=closed]:data-[side=bottom]:slide-out-to-top-2","data-[state=closed]:data-[side=right]:slide-out-to-left-2",e),sideOffset:r,...P})}));n.displayName=o.Content.displayName;var d=a.forwardRef(({className:e,...t},r)=>_jsxruntime.jsx.call(void 0, o.Arrow,{ref:r,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "fill-popover",e),...t}));d.displayName=o.Arrow.displayName;exports.Popover = m; exports.PopoverAnchor = f; exports.PopoverArrow = d; exports.PopoverContent = n; exports.PopoverTrigger = l;
2
2
  //# sourceMappingURL=popover.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/popover.cjs","../../src/components/popover.tsx"],"names":["Popover","PopoverTrigger","PopoverAnchor","PopoverContent","className","align","sideOffset","props","forwardedRef","jsx","cn","PopoverArrow"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,uECE/B,uGACW,+CAkC5B,IA1BAA,CAAAA,CAA2B,CAAA,CAAA,IAAA,CAO3BC,CAAAA,0BAAkC,CAAA,CAAA,OAAA,CAOlCC,CAAAA,yBAAiC,CAAA,CAAA,MAAA,CASjCC,CAAAA,0BAAuB,CAAA,CAAA,UAAA,CAC3B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,KAAA,CAAAC,CAAAA,CAAQ,QAAA,CAAU,UAAA,CAAAC,CAAAA,CAAa,CAAA,CAAG,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC1DC,6BAAAA,CAAkB,CAAA,MAAA,CAAjB,CACC,QAAA,CAAAA,6BAAAA,CAAkB,CAAA,OAAA,CAAjB,CACC,GAAA,CAAKD,CAAAA,CACL,KAAA,CAAOH,CAAAA,CACP,SAAA,CAAWK,iCAAAA,+sBACT,CACAN,CACF,CAAA,CACA,UAAA,CAAYE,CAAAA,CACX,GAAGC,CAAAA,CACN,CAAA,CACF,CAEJ,CAAA,CAEAJ,CAAAA,CAAe,WAAA,CAA+B,CAAA,CAAA,OAAA,CAAQ,WAAA,CAStD,IAAMQ,CAAAA,CAAqB,CAAA,CAAA,UAAA,CACzB,CAAC,CAAE,SAAA,CAAAP,CAAAA,CAAW,GAAGG,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAkB,CAAA,KAAA,CAAjB,CAAuB,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,cAAG,CAAgBN,CAAS,CAAA,CAAI,GAAGG,CAAAA,CAAO,CAEpG,CAAA,CAEAI,CAAAA,CAAa,WAAA,CAA+B,CAAA,CAAA,KAAA,CAAM,WAAA,CAAA,iIAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/popover.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Popover\n * -------------------------------------------------------------------------- */\n\ntype PopoverProps = React.ComponentProps<typeof PopoverPrimitive.Root>;\nconst Popover = PopoverPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: PopoverTrigger\n * -------------------------------------------------------------------------- */\n\ntype PopoverTriggerProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger>;\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: PopoverAnchor\n * -------------------------------------------------------------------------- */\n\ntype PopoverAnchorProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;\nconst PopoverAnchor = PopoverPrimitive.Anchor;\n\n/* -----------------------------------------------------------------------------\n * Component: PopoverContent\n * -------------------------------------------------------------------------- */\n\ntype PopoverContentElement = React.ElementRef<typeof PopoverPrimitive.Content>;\ntype PopoverContentProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>;\n\nconst PopoverContent = React.forwardRef<PopoverContentElement, PopoverContentProps>(\n ({ className, align = 'center', sideOffset = 6, ...props }, forwardedRef) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={forwardedRef}\n align={align}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 z-50 min-w-32 rounded-md border p-4 shadow-md',\n className,\n )}\n sideOffset={sideOffset}\n {...props}\n />\n </PopoverPrimitive.Portal>\n ),\n);\n\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: PopoverArrow\n * -------------------------------------------------------------------------- */\n\ntype PopoverArrowElement = React.ElementRef<typeof PopoverPrimitive.Arrow>;\ntype PopoverArrowProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Arrow>;\n\nconst PopoverArrow = React.forwardRef<PopoverArrowElement, PopoverArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <PopoverPrimitive.Arrow ref={forwardedRef} className={cn('fill-popover', className)} {...props} />\n ),\n);\n\nPopoverArrow.displayName = PopoverPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Popover,\n PopoverTrigger,\n PopoverContent,\n PopoverAnchor,\n PopoverArrow,\n type PopoverProps,\n type PopoverTriggerProps,\n type PopoverContentProps,\n type PopoverAnchorProps,\n type PopoverArrowProps,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/popover.cjs","../../src/components/popover.tsx"],"names":["Popover","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,WAAA,CAA+B,CAAA,CAAA,KAAA,CAAM,WAAA,CAAA,iIAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/popover.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Popover\n * -------------------------------------------------------------------------- */\n\ntype PopoverProps = React.ComponentProps<typeof PopoverPrimitive.Root>;\nconst Popover = PopoverPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: PopoverTrigger\n * -------------------------------------------------------------------------- */\n\ntype PopoverTriggerProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger>;\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: PopoverAnchor\n * -------------------------------------------------------------------------- */\n\ntype PopoverAnchorProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;\nconst PopoverAnchor = PopoverPrimitive.Anchor;\n\n/* -----------------------------------------------------------------------------\n * Component: PopoverContent\n * -------------------------------------------------------------------------- */\n\ntype PopoverContentElement = React.ElementRef<typeof PopoverPrimitive.Content>;\ntype PopoverContentProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>;\n\nconst PopoverContent = React.forwardRef<PopoverContentElement, PopoverContentProps>(\n ({ className, align = 'center', sideOffset = 6, ...props }, forwardedRef) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={forwardedRef}\n align={align}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-4 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n className,\n )}\n sideOffset={sideOffset}\n {...props}\n />\n </PopoverPrimitive.Portal>\n ),\n);\n\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: PopoverArrow\n * -------------------------------------------------------------------------- */\n\ntype PopoverArrowElement = React.ElementRef<typeof PopoverPrimitive.Arrow>;\ntype PopoverArrowProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Arrow>;\n\nconst PopoverArrow = React.forwardRef<PopoverArrowElement, PopoverArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <PopoverPrimitive.Arrow ref={forwardedRef} className={cn('fill-popover', className)} {...props} />\n ),\n);\n\nPopoverArrow.displayName = PopoverPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Popover,\n PopoverTrigger,\n PopoverContent,\n PopoverAnchor,\n PopoverArrow,\n type PopoverProps,\n type PopoverTriggerProps,\n type PopoverContentProps,\n type PopoverAnchorProps,\n type PopoverArrowProps,\n};\n"]}
@@ -1,2 +1,2 @@
1
- "use client";import{a as p}from"../chunk-VRBUDJBH.js";import*as a from"react";import*as o from"@radix-ui/react-popover";import{jsx as i}from"react/jsx-runtime";var m=o.Root,l=o.Trigger,f=o.Anchor,n=a.forwardRef(({className:e,align:t="center",sideOffset:r=6,...P},s)=>i(o.Portal,{children:i(o.Content,{ref:s,align:t,className:p("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 z-50 min-w-32 rounded-md border p-4 shadow-md",e),sideOffset:r,...P})}));n.displayName=o.Content.displayName;var d=a.forwardRef(({className:e,...t},r)=>i(o.Arrow,{ref:r,className:p("fill-popover",e),...t}));d.displayName=o.Arrow.displayName;export{m as Popover,f as PopoverAnchor,d as PopoverArrow,n as PopoverContent,l as PopoverTrigger};
1
+ "use client";import{a as p}from"../chunk-VRBUDJBH.js";import*as a from"react";import*as o from"@radix-ui/react-popover";import{jsx as i}from"react/jsx-runtime";var m=o.Root,l=o.Trigger,f=o.Anchor,n=a.forwardRef(({className:e,align:t="center",sideOffset:r=6,...P},s)=>i(o.Portal,{children:i(o.Content,{ref:s,align:t,className:p("bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-4 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=closed]:data-[side=top]:slide-out-to-bottom-2","data-[state=closed]:data-[side=left]:slide-out-to-right-2","data-[state=closed]:data-[side=bottom]:slide-out-to-top-2","data-[state=closed]:data-[side=right]:slide-out-to-left-2",e),sideOffset:r,...P})}));n.displayName=o.Content.displayName;var d=a.forwardRef(({className:e,...t},r)=>i(o.Arrow,{ref:r,className:p("fill-popover",e),...t}));d.displayName=o.Arrow.displayName;export{m as Popover,f as PopoverAnchor,d as PopoverArrow,n as PopoverContent,l as PopoverTrigger};
2
2
  //# sourceMappingURL=popover.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/popover.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Popover\n * -------------------------------------------------------------------------- */\n\ntype PopoverProps = React.ComponentProps<typeof PopoverPrimitive.Root>;\nconst Popover = PopoverPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: PopoverTrigger\n * -------------------------------------------------------------------------- */\n\ntype PopoverTriggerProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger>;\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: PopoverAnchor\n * -------------------------------------------------------------------------- */\n\ntype PopoverAnchorProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;\nconst PopoverAnchor = PopoverPrimitive.Anchor;\n\n/* -----------------------------------------------------------------------------\n * Component: PopoverContent\n * -------------------------------------------------------------------------- */\n\ntype PopoverContentElement = React.ElementRef<typeof PopoverPrimitive.Content>;\ntype PopoverContentProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>;\n\nconst PopoverContent = React.forwardRef<PopoverContentElement, PopoverContentProps>(\n ({ className, align = 'center', sideOffset = 6, ...props }, forwardedRef) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={forwardedRef}\n align={align}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 z-50 min-w-32 rounded-md border p-4 shadow-md',\n className,\n )}\n sideOffset={sideOffset}\n {...props}\n />\n </PopoverPrimitive.Portal>\n ),\n);\n\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: PopoverArrow\n * -------------------------------------------------------------------------- */\n\ntype PopoverArrowElement = React.ElementRef<typeof PopoverPrimitive.Arrow>;\ntype PopoverArrowProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Arrow>;\n\nconst PopoverArrow = React.forwardRef<PopoverArrowElement, PopoverArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <PopoverPrimitive.Arrow ref={forwardedRef} className={cn('fill-popover', className)} {...props} />\n ),\n);\n\nPopoverArrow.displayName = PopoverPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Popover,\n PopoverTrigger,\n PopoverContent,\n PopoverAnchor,\n PopoverArrow,\n type PopoverProps,\n type PopoverTriggerProps,\n type PopoverContentProps,\n type PopoverAnchorProps,\n type PopoverArrowProps,\n};\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAsB,0BAkC5B,cAAAC,MAAA,oBA1BN,IAAMC,EAA2B,OAO3BC,EAAkC,UAOlCC,EAAiC,SASjCC,EAAuB,aAC3B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,CAAM,EAAGC,IAC1DT,EAAkB,SAAjB,CACC,SAAAA,EAAkB,UAAjB,CACC,IAAKS,EACL,MAAOH,EACP,UAAWI,EACT,gtBACAL,CACF,EACA,WAAYE,EACX,GAAGC,EACN,EACF,CAEJ,EAEAJ,EAAe,YAA+B,UAAQ,YAStD,IAAMO,EAAqB,aACzB,CAAC,CAAE,UAAAN,EAAW,GAAGG,CAAM,EAAGC,IACxBT,EAAkB,QAAjB,CAAuB,IAAKS,EAAc,UAAWC,EAAG,eAAgBL,CAAS,EAAI,GAAGG,EAAO,CAEpG,EAEAG,EAAa,YAA+B,QAAM","names":["React","PopoverPrimitive","jsx","Popover","PopoverTrigger","PopoverAnchor","PopoverContent","className","align","sideOffset","props","forwardedRef","cn","PopoverArrow"]}
1
+ {"version":3,"sources":["../../src/components/popover.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Popover\n * -------------------------------------------------------------------------- */\n\ntype PopoverProps = React.ComponentProps<typeof PopoverPrimitive.Root>;\nconst Popover = PopoverPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: PopoverTrigger\n * -------------------------------------------------------------------------- */\n\ntype PopoverTriggerProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger>;\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: PopoverAnchor\n * -------------------------------------------------------------------------- */\n\ntype PopoverAnchorProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;\nconst PopoverAnchor = PopoverPrimitive.Anchor;\n\n/* -----------------------------------------------------------------------------\n * Component: PopoverContent\n * -------------------------------------------------------------------------- */\n\ntype PopoverContentElement = React.ElementRef<typeof PopoverPrimitive.Content>;\ntype PopoverContentProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>;\n\nconst PopoverContent = React.forwardRef<PopoverContentElement, PopoverContentProps>(\n ({ className, align = 'center', sideOffset = 6, ...props }, forwardedRef) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={forwardedRef}\n align={align}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-4 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n className,\n )}\n sideOffset={sideOffset}\n {...props}\n />\n </PopoverPrimitive.Portal>\n ),\n);\n\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: PopoverArrow\n * -------------------------------------------------------------------------- */\n\ntype PopoverArrowElement = React.ElementRef<typeof PopoverPrimitive.Arrow>;\ntype PopoverArrowProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Arrow>;\n\nconst PopoverArrow = React.forwardRef<PopoverArrowElement, PopoverArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <PopoverPrimitive.Arrow ref={forwardedRef} className={cn('fill-popover', className)} {...props} />\n ),\n);\n\nPopoverArrow.displayName = PopoverPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Popover,\n PopoverTrigger,\n PopoverContent,\n PopoverAnchor,\n PopoverArrow,\n type PopoverProps,\n type PopoverTriggerProps,\n type PopoverContentProps,\n type PopoverAnchorProps,\n type PopoverArrowProps,\n};\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAsB,0BAkC5B,cAAAC,MAAA,oBA1BN,IAAMC,EAA2B,OAO3BC,EAAkC,UAOlCC,EAAiC,SASjCC,EAAuB,aAC3B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,CAAM,EAAGC,IAC1DT,EAAkB,SAAjB,CACC,SAAAA,EAAkB,UAAjB,CACC,IAAKS,EACL,MAAOH,EACP,UAAWI,EACT,mFACA,sFACA,2DACA,2DACA,2DACA,2DACA,+FACA,4DACA,4DACA,4DACA,4DACAL,CACF,EACA,WAAYE,EACX,GAAGC,EACN,EACF,CAEJ,EAEAJ,EAAe,YAA+B,UAAQ,YAStD,IAAMO,EAAqB,aACzB,CAAC,CAAE,UAAAN,EAAW,GAAGG,CAAM,EAAGC,IACxBT,EAAkB,QAAjB,CAAuB,IAAKS,EAAc,UAAWC,EAAG,eAAgBL,CAAS,EAAI,GAAGG,EAAO,CAEpG,EAEAG,EAAa,YAA+B,QAAM","names":["React","PopoverPrimitive","jsx","Popover","PopoverTrigger","PopoverAnchor","PopoverContent","className","align","sideOffset","props","forwardedRef","cn","PopoverArrow"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkEXOTUGK5cjs = require('../chunk-EXOTUGK5.cjs');require('../chunk-LSBI35ZE.cjs');require('../chunk-4XRBMJ5Q.cjs');exports.Select = _chunkEXOTUGK5cjs.a; exports.SelectContent = _chunkEXOTUGK5cjs.g; exports.SelectGroup = _chunkEXOTUGK5cjs.b; exports.SelectItem = _chunkEXOTUGK5cjs.i; exports.SelectLabel = _chunkEXOTUGK5cjs.h; exports.SelectScrollDownButton = _chunkEXOTUGK5cjs.f; exports.SelectScrollUpButton = _chunkEXOTUGK5cjs.e; exports.SelectSeparator = _chunkEXOTUGK5cjs.j; exports.SelectTrigger = _chunkEXOTUGK5cjs.d; exports.SelectValue = _chunkEXOTUGK5cjs.c;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkEWFBUJ5Vcjs = require('../chunk-EWFBUJ5V.cjs');require('../chunk-LSBI35ZE.cjs');require('../chunk-4XRBMJ5Q.cjs');exports.Select = _chunkEWFBUJ5Vcjs.a; exports.SelectContent = _chunkEWFBUJ5Vcjs.g; exports.SelectGroup = _chunkEWFBUJ5Vcjs.b; exports.SelectItem = _chunkEWFBUJ5Vcjs.i; exports.SelectLabel = _chunkEWFBUJ5Vcjs.h; exports.SelectScrollDownButton = _chunkEWFBUJ5Vcjs.f; exports.SelectScrollUpButton = _chunkEWFBUJ5Vcjs.e; exports.SelectSeparator = _chunkEWFBUJ5Vcjs.j; exports.SelectTrigger = _chunkEWFBUJ5Vcjs.d; exports.SelectValue = _chunkEWFBUJ5Vcjs.c;
2
2
  //# sourceMappingURL=select.cjs.map
@@ -1,2 +1,2 @@
1
- "use client";import{a,b,c,d,e,f,g,h,i,j}from"../chunk-CF44244M.js";import"../chunk-YGPIWXWP.js";import"../chunk-VRBUDJBH.js";export{a as Select,g as SelectContent,b as SelectGroup,i as SelectItem,h as SelectLabel,f as SelectScrollDownButton,e as SelectScrollUpButton,j as SelectSeparator,d as SelectTrigger,c as SelectValue};
1
+ "use client";import{a,b,c,d,e,f,g,h,i,j}from"../chunk-O5EAJQGO.js";import"../chunk-YGPIWXWP.js";import"../chunk-VRBUDJBH.js";export{a as Select,g as SelectContent,b as SelectGroup,i as SelectItem,h as SelectLabel,f as SelectScrollDownButton,e as SelectScrollUpButton,j as SelectSeparator,d as SelectTrigger,c as SelectValue};
2
2
  //# sourceMappingURL=select.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunkLSBI35ZEcjs = require('../chunk-LSBI35ZE.cjs');var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var s = _interopRequireWildcard(_react);var _reactdialog = require('@radix-ui/react-dialog'); var e = _interopRequireWildcard(_reactdialog);var _reacticons = require('@radix-ui/react-icons');var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var S=_tailwindvariants.tv.call(void 0, {base:"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg",variants:{side:{top:"data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 max-h-screen border-b",bottom:"data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 max-h-screen border-t",left:"data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"}},defaultVariants:{side:"right"}}),x= exports.Sheet =e.Root,b= exports.SheetTrigger =e.Trigger,c= exports.SheetContent =s.forwardRef(({children:t,side:o="right",className:a,...n},p)=>_jsxruntime.jsxs.call(void 0, e.Portal,{children:[_jsxruntime.jsx.call(void 0, e.Overlay,{className:"data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 bg-black/80"}),_jsxruntime.jsxs.call(void 0, e.Content,{ref:p,className:S({side:o,className:a}),...n,children:[t,_jsxruntime.jsxs.call(void 0, e.Close,{className:_chunkLSBI35ZEcjs.a.call(void 0, {className:"absolute right-4 top-4",icon:!0,size:"xxs",variant:"ghost"}),children:[_jsxruntime.jsx.call(void 0, _reacticons.Cross2Icon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Close"})]})]})]}));c.displayName=e.Content.displayName;function N({className:t,...o}){return _jsxruntime.jsx.call(void 0, "header",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...o})}function T({className:t,...o}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "px-6 py-2",t),...o})}function f({className:t,...o}){return _jsxruntime.jsx.call(void 0, "footer",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...o})}f.displayName="SheetFooter";var P=s.forwardRef(({className:t,...o},a)=>_jsxruntime.jsx.call(void 0, e.Title,{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-foreground text-lg font-semibold",t),...o}));P.displayName=e.Title.displayName;var y=s.forwardRef(({className:t,...o},a)=>_jsxruntime.jsx.call(void 0, e.Description,{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-muted-foreground text-sm",t),...o}));y.displayName=e.Description.displayName;var u=s.forwardRef(({className:t,size:o,variant:a="outline",...n},p)=>_jsxruntime.jsx.call(void 0, e.Close,{ref:p,className:_chunkLSBI35ZEcjs.a.call(void 0, {variant:a,size:o,className:t}),...n}));u.displayName=e.Close.displayName;exports.Sheet = x; exports.SheetBody = T; exports.SheetClose = u; exports.SheetContent = c; exports.SheetDescription = y; exports.SheetFooter = f; exports.SheetHeader = N; exports.SheetTitle = P; exports.SheetTrigger = b;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunkLSBI35ZEcjs = require('../chunk-LSBI35ZE.cjs');var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var s = _interopRequireWildcard(_react);var _reactdialog = require('@radix-ui/react-dialog'); var e = _interopRequireWildcard(_reactdialog);var _reacticons = require('@radix-ui/react-icons');var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var S=_tailwindvariants.tv.call(void 0, {base:["bg-background animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg","data-[state=open]:animate-in","data-[state=closed]:animate-out","data-[state=closed]:animate-duration-300","data-[state=open]:animate-duration-500"],variants:{side:{top:["inset-x-0 top-0 max-h-screen border-b","data-[state=open]:slide-in-from-top","data-[state=closed]:slide-out-to-top"],bottom:["inset-x-0 bottom-0 max-h-screen border-t","data-[state=open]:slide-in-from-bottom","data-[state=closed]:slide-out-to-bottom"],left:["inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","data-[state=open]:slide-in-from-left","data-[state=closed]:slide-out-to-left"],right:["inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","data-[state=open]:slide-in-from-right","data-[state=closed]:slide-out-to-right"]}},defaultVariants:{side:"right"}}),x= exports.Sheet =e.Root,b= exports.SheetTrigger =e.Trigger,c= exports.SheetContent =s.forwardRef(({children:t,side:o="right",className:a,...n},p)=>_jsxruntime.jsxs.call(void 0, e.Portal,{children:[_jsxruntime.jsx.call(void 0, e.Overlay,{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "fixed inset-0 z-50 bg-black/80","data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in","data-[state=closed]:animate-duration-300 data-[state=closed]:animate-fade-out")}),_jsxruntime.jsxs.call(void 0, e.Content,{ref:p,className:S({side:o,className:a}),...n,children:[t,_jsxruntime.jsxs.call(void 0, e.Close,{className:_chunkLSBI35ZEcjs.a.call(void 0, {className:"absolute right-4 top-4",icon:!0,size:"xxs",variant:"ghost"}),children:[_jsxruntime.jsx.call(void 0, _reacticons.Cross2Icon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Close"})]})]})]}));c.displayName=e.Content.displayName;function N({className:t,...o}){return _jsxruntime.jsx.call(void 0, "header",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...o})}function T({className:t,...o}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "px-6 py-2",t),...o})}function f({className:t,...o}){return _jsxruntime.jsx.call(void 0, "footer",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...o})}f.displayName="SheetFooter";var P=s.forwardRef(({className:t,...o},a)=>_jsxruntime.jsx.call(void 0, e.Title,{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-foreground text-lg font-semibold",t),...o}));P.displayName=e.Title.displayName;var y=s.forwardRef(({className:t,...o},a)=>_jsxruntime.jsx.call(void 0, e.Description,{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-muted-foreground text-sm",t),...o}));y.displayName=e.Description.displayName;var u=s.forwardRef(({className:t,size:o,variant:a="outline",...n},p)=>_jsxruntime.jsx.call(void 0, e.Close,{ref:p,className:_chunkLSBI35ZEcjs.a.call(void 0, {variant:a,size:o,className:t}),...n}));u.displayName=e.Close.displayName;exports.Sheet = x; exports.SheetBody = T; exports.SheetClose = u; exports.SheetContent = c; exports.SheetDescription = y; exports.SheetFooter = f; exports.SheetHeader = N; exports.SheetTitle = P; exports.SheetTrigger = b;
2
2
  //# sourceMappingURL=sheet.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/sheet.cjs","../../src/components/sheet.tsx"],"names":["sheetContentVariants","tv","Sheet","SheetTrigger","SheetContent","children","side","className","props","forwardedRef","jsxs","jsx","buttonVariants","Cross2Icon","SheetHeader","cn","SheetBody","SheetFooter","SheetTitle","SheetDescription","SheetClose","size","variant"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,yDAA0C,uECEzE,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,CAAAZ,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBE,6BAAAA,CAAgB,CAAA,WAAA,CAAf,CACC,GAAA,CAAKF,CAAAA,CACL,SAAA,CAAWM,iCAAAA,+BAAG,CAAiCR,CAAS,CAAA,CACvD,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAW,CAAAA,CAAiB,WAAA,CAA6B,CAAA,CAAA,WAAA,CAAY,WAAA,CAa1D,IAAMC,CAAAA,CAAmB,CAAA,CAAA,UAAA,CACvB,CAAC,CAAE,SAAA,CAAAb,CAAAA,CAAW,IAAA,CAAAc,CAAAA,CAAM,OAAA,CAAAC,CAAAA,CAAU,SAAA,CAAW,GAAGd,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACnDE,6BAAAA,CAAgB,CAAA,KAAA,CAAf,CAAqB,GAAA,CAAKF,CAAAA,CAAc,SAAA,CAAWG,iCAAAA,CAAiB,OAAA,CAAAU,CAAAA,CAAS,IAAA,CAAAD,CAAAA,CAAM,SAAA,CAAAd,CAAU,CAAC,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAEjH,CAAA,CAEAY,CAAAA,CAAW,WAAA,CAA6B,CAAA,CAAA,KAAA,CAAM,WAAA,CAAA,6NAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/sheet.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } from '@radix-ui/react-icons';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: SheetContent\n * -------------------------------------------------------------------------- */\n\nconst sheetContentVariants = tv({\n base: 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg',\n variants: {\n side: {\n top: 'data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 max-h-screen border-b',\n bottom:\n 'data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 max-h-screen border-t',\n left: 'data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n right:\n 'data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n },\n },\n defaultVariants: {\n side: 'right',\n },\n});\n\ntype SheetContentVariantsProps = VariantProps<typeof sheetContentVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Sheet\n * -------------------------------------------------------------------------- */\n\ntype SheetProps = React.ComponentProps<typeof SheetPrimitive.Root>;\nconst Sheet = SheetPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTrigger\n * -------------------------------------------------------------------------- */\n\ntype SheetTriggerProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Trigger>;\nconst SheetTrigger = SheetPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetContent\n * -------------------------------------------------------------------------- */\n\ntype SheetContentElement = React.ElementRef<typeof SheetPrimitive.Content>;\ntype SheetContentProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content> & SheetContentVariantsProps;\n\nconst SheetContent = React.forwardRef<SheetContentElement, SheetContentProps>(\n ({ children, side = 'right', className, ...props }, forwardedRef) => (\n <SheetPrimitive.Portal>\n <SheetPrimitive.Overlay className=\"data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 bg-black/80\" />\n <SheetPrimitive.Content ref={forwardedRef} className={sheetContentVariants({ side, className })} {...props}>\n {children}\n <SheetPrimitive.Close\n className={buttonVariants({\n className: 'absolute right-4 top-4',\n icon: true,\n size: 'xxs',\n variant: 'ghost',\n })}\n >\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPrimitive.Portal>\n ),\n);\n\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetHeader\n * -------------------------------------------------------------------------- */\n\ntype SheetHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetHeader({ className, ...props }: SheetHeaderProps): React.JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetBody\n * -------------------------------------------------------------------------- */\n\ntype SheetBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetBody({ className, ...props }: SheetHeaderProps): React.JSX.Element {\n return <main className={cn('px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetFooter\n * -------------------------------------------------------------------------- */\n\ntype SheetFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetFooter({ className, ...props }: SheetFooterProps): React.JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\nSheetFooter.displayName = 'SheetFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTitle\n * -------------------------------------------------------------------------- */\n\ntype SheetTitleElement = React.ElementRef<typeof SheetPrimitive.Title>;\ntype SheetTitleProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>;\n\nconst SheetTitle = React.forwardRef<SheetTitleElement, SheetTitleProps>(({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Title\n ref={forwardedRef}\n className={cn('text-foreground text-lg font-semibold', className)}\n {...props}\n />\n));\n\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetDescription\n * -------------------------------------------------------------------------- */\n\ntype SheetDescriptionElement = React.ElementRef<typeof SheetPrimitive.Description>;\ntype SheetDescriptionProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>;\n\nconst SheetDescription = React.forwardRef<SheetDescriptionElement, SheetDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetClose\n * -------------------------------------------------------------------------- */\n\ntype SheetCloseElement = React.ElementRef<typeof SheetPrimitive.Close>;\n\ninterface SheetCloseProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Close> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst SheetClose = React.forwardRef<SheetCloseElement, SheetCloseProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <SheetPrimitive.Close ref={forwardedRef} className={buttonVariants({ variant, size, className })} {...props} />\n ),\n);\n\nSheetClose.displayName = SheetPrimitive.Close.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetBody,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n type SheetProps,\n type SheetTriggerProps,\n type SheetCloseProps,\n type SheetContentProps,\n type SheetHeaderProps,\n type SheetBodyProps,\n type SheetFooterProps,\n type SheetTitleProps,\n type SheetDescriptionProps,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/sheet.cjs","../../src/components/sheet.tsx"],"names":["sheetContentVariants","tv","Sheet","SheetTrigger","SheetContent","children","side","className","props","forwardedRef","jsxs","jsx","cn","buttonVariants","Cross2Icon","SheetHeader","SheetBody","SheetFooter","SheetTitle","SheetDescription","SheetClose","size","variant"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,yDAA0C,uECEzE,oGACS,mDACL,qDACW,+CAuEhC,IA/DAA,CAAAA,CAAuBC,kCAAAA,CAC3B,IAAA,CAAM,CACJ,oFAAA,CACA,8BAAA,CACA,iCAAA,CACA,0CAAA,CACA,wCACF,CAAA,CACA,QAAA,CAAU,CACR,IAAA,CAAM,CACJ,GAAA,CAAK,CACH,uCAAA,CACA,qCAAA,CACA,sCACF,CAAA,CACA,MAAA,CAAQ,CACN,0CAAA,CACA,wCAAA,CACA,yCACF,CAAA,CACA,IAAA,CAAM,CACJ,oDAAA,CACA,sCAAA,CACA,uCACF,CAAA,CACA,KAAA,CAAO,CACL,qDAAA,CACA,uCAAA,CACA,wCACF,CACF,CACF,CAAA,CACA,eAAA,CAAiB,CACf,IAAA,CAAM,OACR,CACF,CAAC,CAAA,CASKC,CAAAA,iBAAuB,CAAA,CAAA,IAAA,CAOvBC,CAAAA,wBAA8B,CAAA,CAAA,OAAA,CAS9BC,CAAAA,wBAAqB,CAAA,CAAA,UAAA,CACzB,CAAC,CAAE,QAAA,CAAAC,CAAAA,CAAU,IAAA,CAAAC,CAAAA,CAAO,OAAA,CAAS,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAClDC,8BAAAA,CAAgB,CAAA,MAAA,CAAf,CACC,QAAA,CAAA,CAAAC,6BAAAA,CAAgB,CAAA,OAAA,CAAf,CACC,SAAA,CAAWC,iCAAAA,gCACT,CACA,0EAAA,CACA,+EACF,CAAA,CACF,CAAA,CACAF,8BAAAA,CAAgB,CAAA,OAAA,CAAf,CAAuB,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWT,CAAAA,CAAqB,CAAE,IAAA,CAAAM,CAAAA,CAAM,SAAA,CAAAC,CAAU,CAAC,CAAA,CAAI,GAAGC,CAAAA,CAClG,QAAA,CAA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GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAChGE,6BAAAA,CAAgB,CAAA,KAAA,CAAf,CACC,GAAA,CAAKF,CAAAA,CACL,SAAA,CAAWG,iCAAAA,uCAAG,CAAyCL,CAAS,CAAA,CAC/D,GAAGC,CAAAA,CACN,CACD,CAAA,CAEDU,CAAAA,CAAW,WAAA,CAA6B,CAAA,CAAA,KAAA,CAAM,WAAA,CAS9C,IAAMC,CAAAA,CAAyB,CAAA,CAAA,UAAA,CAC7B,CAAC,CAAE,SAAA,CAAAZ,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBE,6BAAAA,CAAgB,CAAA,WAAA,CAAf,CACC,GAAA,CAAKF,CAAAA,CACL,SAAA,CAAWG,iCAAAA,+BAAG,CAAiCL,CAAS,CAAA,CACvD,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAW,CAAAA,CAAiB,WAAA,CAA6B,CAAA,CAAA,WAAA,CAAY,WAAA,CAa1D,IAAMC,CAAAA,CAAmB,CAAA,CAAA,UAAA,CACvB,CAAC,CAAE,SAAA,CAAAb,CAAAA,CAAW,IAAA,CAAAc,CAAAA,CAAM,OAAA,CAAAC,CAAAA,CAAU,SAAA,CAAW,GAAGd,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACnDE,6BAAAA,CAAgB,CAAA,KAAA,CAAf,CAAqB,GAAA,CAAKF,CAAAA,CAAc,SAAA,CAAWI,iCAAAA,CAAiB,OAAA,CAAAS,CAAAA,CAAS,IAAA,CAAAD,CAAAA,CAAM,SAAA,CAAAd,CAAU,CAAC,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAEjH,CAAA,CAEAY,CAAAA,CAAW,WAAA,CAA6B,CAAA,CAAA,KAAA,CAAM,WAAA,CAAA,6NAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/sheet.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } from '@radix-ui/react-icons';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: SheetContent\n * -------------------------------------------------------------------------- */\n\nconst sheetContentVariants = tv({\n base: [\n 'bg-background animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg',\n 'data-[state=open]:animate-in',\n 'data-[state=closed]:animate-out',\n 'data-[state=closed]:animate-duration-300',\n 'data-[state=open]:animate-duration-500',\n ],\n variants: {\n side: {\n top: [\n 'inset-x-0 top-0 max-h-screen border-b',\n 'data-[state=open]:slide-in-from-top',\n 'data-[state=closed]:slide-out-to-top',\n ],\n bottom: [\n 'inset-x-0 bottom-0 max-h-screen border-t',\n 'data-[state=open]:slide-in-from-bottom',\n 'data-[state=closed]:slide-out-to-bottom',\n ],\n left: [\n 'inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n 'data-[state=open]:slide-in-from-left',\n 'data-[state=closed]:slide-out-to-left',\n ],\n right: [\n 'inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n 'data-[state=open]:slide-in-from-right',\n 'data-[state=closed]:slide-out-to-right',\n ],\n },\n },\n defaultVariants: {\n side: 'right',\n },\n});\n\ntype SheetContentVariantsProps = VariantProps<typeof sheetContentVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Sheet\n * -------------------------------------------------------------------------- */\n\ntype SheetProps = React.ComponentProps<typeof SheetPrimitive.Root>;\nconst Sheet = SheetPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTrigger\n * -------------------------------------------------------------------------- */\n\ntype SheetTriggerProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Trigger>;\nconst SheetTrigger = SheetPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetContent\n * -------------------------------------------------------------------------- */\n\ntype SheetContentElement = React.ElementRef<typeof SheetPrimitive.Content>;\ntype SheetContentProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content> & SheetContentVariantsProps;\n\nconst SheetContent = React.forwardRef<SheetContentElement, SheetContentProps>(\n ({ children, side = 'right', className, ...props }, forwardedRef) => (\n <SheetPrimitive.Portal>\n <SheetPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 bg-black/80',\n 'data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in',\n 'data-[state=closed]:animate-duration-300 data-[state=closed]:animate-fade-out',\n )}\n />\n <SheetPrimitive.Content ref={forwardedRef} className={sheetContentVariants({ side, className })} {...props}>\n {children}\n <SheetPrimitive.Close\n className={buttonVariants({\n className: 'absolute right-4 top-4',\n icon: true,\n size: 'xxs',\n variant: 'ghost',\n })}\n >\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPrimitive.Portal>\n ),\n);\n\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetHeader\n * -------------------------------------------------------------------------- */\n\ntype SheetHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetHeader({ className, ...props }: SheetHeaderProps): React.JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetBody\n * -------------------------------------------------------------------------- */\n\ntype SheetBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetBody({ className, ...props }: SheetHeaderProps): React.JSX.Element {\n return <main className={cn('px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetFooter\n * -------------------------------------------------------------------------- */\n\ntype SheetFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetFooter({ className, ...props }: SheetFooterProps): React.JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\nSheetFooter.displayName = 'SheetFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTitle\n * -------------------------------------------------------------------------- */\n\ntype SheetTitleElement = React.ElementRef<typeof SheetPrimitive.Title>;\ntype SheetTitleProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>;\n\nconst SheetTitle = React.forwardRef<SheetTitleElement, SheetTitleProps>(({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Title\n ref={forwardedRef}\n className={cn('text-foreground text-lg font-semibold', className)}\n {...props}\n />\n));\n\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetDescription\n * -------------------------------------------------------------------------- */\n\ntype SheetDescriptionElement = React.ElementRef<typeof SheetPrimitive.Description>;\ntype SheetDescriptionProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>;\n\nconst SheetDescription = React.forwardRef<SheetDescriptionElement, SheetDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetClose\n * -------------------------------------------------------------------------- */\n\ntype SheetCloseElement = React.ElementRef<typeof SheetPrimitive.Close>;\n\ninterface SheetCloseProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Close> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst SheetClose = React.forwardRef<SheetCloseElement, SheetCloseProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <SheetPrimitive.Close ref={forwardedRef} className={buttonVariants({ variant, size, className })} {...props} />\n ),\n);\n\nSheetClose.displayName = SheetPrimitive.Close.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetBody,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n type SheetProps,\n type SheetTriggerProps,\n type SheetCloseProps,\n type SheetContentProps,\n type SheetHeaderProps,\n type SheetBodyProps,\n type SheetFooterProps,\n type SheetTitleProps,\n type SheetDescriptionProps,\n};\n"]}
@@ -7,52 +7,52 @@ import { ButtonVariantsProps } from '../styles/button-variants.cjs';
7
7
 
8
8
  declare const sheetContentVariants: tailwind_variants.TVReturnType<{
9
9
  side: {
10
- top: string;
11
- bottom: string;
12
- left: string;
13
- right: string;
10
+ top: string[];
11
+ bottom: string[];
12
+ left: string[];
13
+ right: string[];
14
14
  };
15
- }, undefined, "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg", tailwind_variants_dist_config_js.TVConfig<{
15
+ }, undefined, string[], tailwind_variants_dist_config_js.TVConfig<{
16
16
  side: {
17
- top: string;
18
- bottom: string;
19
- left: string;
20
- right: string;
17
+ top: string[];
18
+ bottom: string[];
19
+ left: string[];
20
+ right: string[];
21
21
  };
22
22
  }, {
23
23
  side: {
24
- top: string;
25
- bottom: string;
26
- left: string;
27
- right: string;
24
+ top: string[];
25
+ bottom: string[];
26
+ left: string[];
27
+ right: string[];
28
28
  };
29
29
  }>, {
30
30
  side: {
31
- top: string;
32
- bottom: string;
33
- left: string;
34
- right: string;
31
+ top: string[];
32
+ bottom: string[];
33
+ left: string[];
34
+ right: string[];
35
35
  };
36
36
  }, undefined, tailwind_variants.TVReturnType<{
37
37
  side: {
38
- top: string;
39
- bottom: string;
40
- left: string;
41
- right: string;
38
+ top: string[];
39
+ bottom: string[];
40
+ left: string[];
41
+ right: string[];
42
42
  };
43
- }, undefined, "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg", tailwind_variants_dist_config_js.TVConfig<{
43
+ }, undefined, string[], tailwind_variants_dist_config_js.TVConfig<{
44
44
  side: {
45
- top: string;
46
- bottom: string;
47
- left: string;
48
- right: string;
45
+ top: string[];
46
+ bottom: string[];
47
+ left: string[];
48
+ right: string[];
49
49
  };
50
50
  }, {
51
51
  side: {
52
- top: string;
53
- bottom: string;
54
- left: string;
55
- right: string;
52
+ top: string[];
53
+ bottom: string[];
54
+ left: string[];
55
+ right: string[];
56
56
  };
57
57
  }>, unknown, unknown, undefined>>;
58
58
  type SheetContentVariantsProps = VariantProps<typeof sheetContentVariants>;
@@ -7,52 +7,52 @@ import { ButtonVariantsProps } from '../styles/button-variants.js';
7
7
 
8
8
  declare const sheetContentVariants: tailwind_variants.TVReturnType<{
9
9
  side: {
10
- top: string;
11
- bottom: string;
12
- left: string;
13
- right: string;
10
+ top: string[];
11
+ bottom: string[];
12
+ left: string[];
13
+ right: string[];
14
14
  };
15
- }, undefined, "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg", tailwind_variants_dist_config_js.TVConfig<{
15
+ }, undefined, string[], tailwind_variants_dist_config_js.TVConfig<{
16
16
  side: {
17
- top: string;
18
- bottom: string;
19
- left: string;
20
- right: string;
17
+ top: string[];
18
+ bottom: string[];
19
+ left: string[];
20
+ right: string[];
21
21
  };
22
22
  }, {
23
23
  side: {
24
- top: string;
25
- bottom: string;
26
- left: string;
27
- right: string;
24
+ top: string[];
25
+ bottom: string[];
26
+ left: string[];
27
+ right: string[];
28
28
  };
29
29
  }>, {
30
30
  side: {
31
- top: string;
32
- bottom: string;
33
- left: string;
34
- right: string;
31
+ top: string[];
32
+ bottom: string[];
33
+ left: string[];
34
+ right: string[];
35
35
  };
36
36
  }, undefined, tailwind_variants.TVReturnType<{
37
37
  side: {
38
- top: string;
39
- bottom: string;
40
- left: string;
41
- right: string;
38
+ top: string[];
39
+ bottom: string[];
40
+ left: string[];
41
+ right: string[];
42
42
  };
43
- }, undefined, "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg", tailwind_variants_dist_config_js.TVConfig<{
43
+ }, undefined, string[], tailwind_variants_dist_config_js.TVConfig<{
44
44
  side: {
45
- top: string;
46
- bottom: string;
47
- left: string;
48
- right: string;
45
+ top: string[];
46
+ bottom: string[];
47
+ left: string[];
48
+ right: string[];
49
49
  };
50
50
  }, {
51
51
  side: {
52
- top: string;
53
- bottom: string;
54
- left: string;
55
- right: string;
52
+ top: string[];
53
+ bottom: string[];
54
+ left: string[];
55
+ right: string[];
56
56
  };
57
57
  }>, unknown, unknown, undefined>>;
58
58
  type SheetContentVariantsProps = VariantProps<typeof sheetContentVariants>;
@@ -1,2 +1,2 @@
1
- "use client";import{a as m}from"../chunk-YGPIWXWP.js";import{a as r}from"../chunk-VRBUDJBH.js";import*as s from"react";import*as e from"@radix-ui/react-dialog";import{Cross2Icon as h}from"@radix-ui/react-icons";import{tv as d}from"tailwind-variants";import{jsx as i,jsxs as l}from"react/jsx-runtime";var S=d({base:"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg",variants:{side:{top:"data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 max-h-screen border-b",bottom:"data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 max-h-screen border-t",left:"data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"}},defaultVariants:{side:"right"}}),x=e.Root,b=e.Trigger,c=s.forwardRef(({children:t,side:o="right",className:a,...n},p)=>l(e.Portal,{children:[i(e.Overlay,{className:"data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 bg-black/80"}),l(e.Content,{ref:p,className:S({side:o,className:a}),...n,children:[t,l(e.Close,{className:m({className:"absolute right-4 top-4",icon:!0,size:"xxs",variant:"ghost"}),children:[i(h,{className:"size-4"}),i("span",{className:"sr-only",children:"Close"})]})]})]}));c.displayName=e.Content.displayName;function N({className:t,...o}){return i("header",{className:r("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...o})}function T({className:t,...o}){return i("main",{className:r("px-6 py-2",t),...o})}function f({className:t,...o}){return i("footer",{className:r("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...o})}f.displayName="SheetFooter";var P=s.forwardRef(({className:t,...o},a)=>i(e.Title,{ref:a,className:r("text-foreground text-lg font-semibold",t),...o}));P.displayName=e.Title.displayName;var y=s.forwardRef(({className:t,...o},a)=>i(e.Description,{ref:a,className:r("text-muted-foreground text-sm",t),...o}));y.displayName=e.Description.displayName;var u=s.forwardRef(({className:t,size:o,variant:a="outline",...n},p)=>i(e.Close,{ref:p,className:m({variant:a,size:o,className:t}),...n}));u.displayName=e.Close.displayName;export{x as Sheet,T as SheetBody,u as SheetClose,c as SheetContent,y as SheetDescription,f as SheetFooter,N as SheetHeader,P as SheetTitle,b as SheetTrigger};
1
+ "use client";import{a as m}from"../chunk-YGPIWXWP.js";import{a as r}from"../chunk-VRBUDJBH.js";import*as s from"react";import*as e from"@radix-ui/react-dialog";import{Cross2Icon as h}from"@radix-ui/react-icons";import{tv as d}from"tailwind-variants";import{jsx as i,jsxs as l}from"react/jsx-runtime";var S=d({base:["bg-background animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg","data-[state=open]:animate-in","data-[state=closed]:animate-out","data-[state=closed]:animate-duration-300","data-[state=open]:animate-duration-500"],variants:{side:{top:["inset-x-0 top-0 max-h-screen border-b","data-[state=open]:slide-in-from-top","data-[state=closed]:slide-out-to-top"],bottom:["inset-x-0 bottom-0 max-h-screen border-t","data-[state=open]:slide-in-from-bottom","data-[state=closed]:slide-out-to-bottom"],left:["inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","data-[state=open]:slide-in-from-left","data-[state=closed]:slide-out-to-left"],right:["inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","data-[state=open]:slide-in-from-right","data-[state=closed]:slide-out-to-right"]}},defaultVariants:{side:"right"}}),x=e.Root,b=e.Trigger,c=s.forwardRef(({children:t,side:o="right",className:a,...n},p)=>l(e.Portal,{children:[i(e.Overlay,{className:r("fixed inset-0 z-50 bg-black/80","data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in","data-[state=closed]:animate-duration-300 data-[state=closed]:animate-fade-out")}),l(e.Content,{ref:p,className:S({side:o,className:a}),...n,children:[t,l(e.Close,{className:m({className:"absolute right-4 top-4",icon:!0,size:"xxs",variant:"ghost"}),children:[i(h,{className:"size-4"}),i("span",{className:"sr-only",children:"Close"})]})]})]}));c.displayName=e.Content.displayName;function N({className:t,...o}){return i("header",{className:r("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...o})}function T({className:t,...o}){return i("main",{className:r("px-6 py-2",t),...o})}function f({className:t,...o}){return i("footer",{className:r("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...o})}f.displayName="SheetFooter";var P=s.forwardRef(({className:t,...o},a)=>i(e.Title,{ref:a,className:r("text-foreground text-lg font-semibold",t),...o}));P.displayName=e.Title.displayName;var y=s.forwardRef(({className:t,...o},a)=>i(e.Description,{ref:a,className:r("text-muted-foreground text-sm",t),...o}));y.displayName=e.Description.displayName;var u=s.forwardRef(({className:t,size:o,variant:a="outline",...n},p)=>i(e.Close,{ref:p,className:m({variant:a,size:o,className:t}),...n}));u.displayName=e.Close.displayName;export{x as Sheet,T as SheetBody,u as SheetClose,c as SheetContent,y as SheetDescription,f as SheetFooter,N as SheetHeader,P as SheetTitle,b as SheetTrigger};
2
2
  //# sourceMappingURL=sheet.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/sheet.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } from '@radix-ui/react-icons';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: SheetContent\n * -------------------------------------------------------------------------- */\n\nconst sheetContentVariants = tv({\n base: 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg',\n variants: {\n side: {\n top: 'data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 max-h-screen border-b',\n bottom:\n 'data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 max-h-screen border-t',\n left: 'data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n right:\n 'data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n },\n },\n defaultVariants: {\n side: 'right',\n },\n});\n\ntype SheetContentVariantsProps = VariantProps<typeof sheetContentVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Sheet\n * -------------------------------------------------------------------------- */\n\ntype SheetProps = React.ComponentProps<typeof SheetPrimitive.Root>;\nconst Sheet = SheetPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTrigger\n * -------------------------------------------------------------------------- */\n\ntype SheetTriggerProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Trigger>;\nconst SheetTrigger = SheetPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetContent\n * -------------------------------------------------------------------------- */\n\ntype SheetContentElement = React.ElementRef<typeof SheetPrimitive.Content>;\ntype SheetContentProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content> & SheetContentVariantsProps;\n\nconst SheetContent = React.forwardRef<SheetContentElement, SheetContentProps>(\n ({ children, side = 'right', className, ...props }, forwardedRef) => (\n <SheetPrimitive.Portal>\n <SheetPrimitive.Overlay className=\"data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 bg-black/80\" />\n <SheetPrimitive.Content ref={forwardedRef} className={sheetContentVariants({ side, className })} {...props}>\n {children}\n <SheetPrimitive.Close\n className={buttonVariants({\n className: 'absolute right-4 top-4',\n icon: true,\n size: 'xxs',\n variant: 'ghost',\n })}\n >\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPrimitive.Portal>\n ),\n);\n\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetHeader\n * -------------------------------------------------------------------------- */\n\ntype SheetHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetHeader({ className, ...props }: SheetHeaderProps): React.JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetBody\n * -------------------------------------------------------------------------- */\n\ntype SheetBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetBody({ className, ...props }: SheetHeaderProps): React.JSX.Element {\n return <main className={cn('px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetFooter\n * -------------------------------------------------------------------------- */\n\ntype SheetFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetFooter({ className, ...props }: SheetFooterProps): React.JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\nSheetFooter.displayName = 'SheetFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTitle\n * -------------------------------------------------------------------------- */\n\ntype SheetTitleElement = React.ElementRef<typeof SheetPrimitive.Title>;\ntype SheetTitleProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>;\n\nconst SheetTitle = React.forwardRef<SheetTitleElement, SheetTitleProps>(({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Title\n ref={forwardedRef}\n className={cn('text-foreground text-lg font-semibold', className)}\n {...props}\n />\n));\n\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetDescription\n * -------------------------------------------------------------------------- */\n\ntype SheetDescriptionElement = React.ElementRef<typeof SheetPrimitive.Description>;\ntype SheetDescriptionProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>;\n\nconst SheetDescription = React.forwardRef<SheetDescriptionElement, SheetDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetClose\n * -------------------------------------------------------------------------- */\n\ntype SheetCloseElement = React.ElementRef<typeof SheetPrimitive.Close>;\n\ninterface SheetCloseProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Close> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst SheetClose = React.forwardRef<SheetCloseElement, SheetCloseProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <SheetPrimitive.Close ref={forwardedRef} className={buttonVariants({ variant, size, className })} {...props} />\n ),\n);\n\nSheetClose.displayName = SheetPrimitive.Close.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetBody,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n type SheetProps,\n type SheetTriggerProps,\n type SheetCloseProps,\n type SheetContentProps,\n type SheetHeaderProps,\n type SheetBodyProps,\n type SheetFooterProps,\n type SheetTitleProps,\n type SheetDescriptionProps,\n};\n"],"mappings":"+FAEA,UAAYA,MAAW,QACvB,UAAYC,MAAoB,yBAChC,OAAS,cAAAC,MAAkB,wBAC3B,OAAS,MAAAC,MAA6B,oBAmDhC,cAAAC,EAGE,QAAAC,MAHF,oBA3CN,IAAMC,EAAuBC,EAAG,CAC9B,KAAM,kOACN,SAAU,CACR,KAAM,CACJ,IAAK,iHACL,OACE,0HACF,KAAM,gIACN,MACE,kIACJ,CACF,EACA,gBAAiB,CACf,KAAM,OACR,CACF,CAAC,EASKC,EAAuB,OAOvBC,EAA8B,UAS9BC,EAAqB,aACzB,CAAC,CAAE,SAAAC,EAAU,KAAAC,EAAO,QAAS,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAClDV,EAAgB,SAAf,CACC,UAAAD,EAAgB,UAAf,CAAuB,UAAU,wLAAwL,EAC1NC,EAAgB,UAAf,CAAuB,IAAKU,EAAc,UAAWT,EAAqB,CAAE,KAAAM,EAAM,UAAAC,CAAU,CAAC,EAAI,GAAGC,EAClG,UAAAH,EACDN,EAAgB,QAAf,CACC,UAAWW,EAAe,CACxB,U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AEjH,EAEAU,EAAW,YAA6B,QAAM","names":["React","SheetPrimitive","Cross2Icon","tv","jsx","jsxs","sheetContentVariants","tv","Sheet","SheetTrigger","SheetContent","children","side","className","props","forwardedRef","buttonVariants","Cross2Icon","SheetHeader","cn","SheetBody","SheetFooter","SheetTitle","SheetDescription","SheetClose","size","variant"]}
1
+ {"version":3,"sources":["../../src/components/sheet.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } from '@radix-ui/react-icons';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: SheetContent\n * -------------------------------------------------------------------------- */\n\nconst sheetContentVariants = tv({\n base: [\n 'bg-background animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg',\n 'data-[state=open]:animate-in',\n 'data-[state=closed]:animate-out',\n 'data-[state=closed]:animate-duration-300',\n 'data-[state=open]:animate-duration-500',\n ],\n variants: {\n side: {\n top: [\n 'inset-x-0 top-0 max-h-screen border-b',\n 'data-[state=open]:slide-in-from-top',\n 'data-[state=closed]:slide-out-to-top',\n ],\n bottom: [\n 'inset-x-0 bottom-0 max-h-screen border-t',\n 'data-[state=open]:slide-in-from-bottom',\n 'data-[state=closed]:slide-out-to-bottom',\n ],\n left: [\n 'inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n 'data-[state=open]:slide-in-from-left',\n 'data-[state=closed]:slide-out-to-left',\n ],\n right: [\n 'inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n 'data-[state=open]:slide-in-from-right',\n 'data-[state=closed]:slide-out-to-right',\n ],\n },\n },\n defaultVariants: {\n side: 'right',\n },\n});\n\ntype SheetContentVariantsProps = VariantProps<typeof sheetContentVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Sheet\n * -------------------------------------------------------------------------- */\n\ntype SheetProps = React.ComponentProps<typeof SheetPrimitive.Root>;\nconst Sheet = SheetPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTrigger\n * -------------------------------------------------------------------------- */\n\ntype SheetTriggerProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Trigger>;\nconst SheetTrigger = SheetPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetContent\n * -------------------------------------------------------------------------- */\n\ntype SheetContentElement = React.ElementRef<typeof SheetPrimitive.Content>;\ntype SheetContentProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content> & SheetContentVariantsProps;\n\nconst SheetContent = React.forwardRef<SheetContentElement, SheetContentProps>(\n ({ children, side = 'right', className, ...props }, forwardedRef) => (\n <SheetPrimitive.Portal>\n <SheetPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 bg-black/80',\n 'data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in',\n 'data-[state=closed]:animate-duration-300 data-[state=closed]:animate-fade-out',\n )}\n />\n <SheetPrimitive.Content ref={forwardedRef} className={sheetContentVariants({ side, className })} {...props}>\n {children}\n <SheetPrimitive.Close\n className={buttonVariants({\n className: 'absolute right-4 top-4',\n icon: true,\n size: 'xxs',\n variant: 'ghost',\n })}\n >\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPrimitive.Portal>\n ),\n);\n\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetHeader\n * -------------------------------------------------------------------------- */\n\ntype SheetHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetHeader({ className, ...props }: SheetHeaderProps): React.JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetBody\n * -------------------------------------------------------------------------- */\n\ntype SheetBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetBody({ className, ...props }: SheetHeaderProps): React.JSX.Element {\n return <main className={cn('px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetFooter\n * -------------------------------------------------------------------------- */\n\ntype SheetFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetFooter({ className, ...props }: SheetFooterProps): React.JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\nSheetFooter.displayName = 'SheetFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTitle\n * -------------------------------------------------------------------------- */\n\ntype SheetTitleElement = React.ElementRef<typeof SheetPrimitive.Title>;\ntype SheetTitleProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>;\n\nconst SheetTitle = React.forwardRef<SheetTitleElement, SheetTitleProps>(({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Title\n ref={forwardedRef}\n className={cn('text-foreground text-lg font-semibold', className)}\n {...props}\n />\n));\n\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetDescription\n * -------------------------------------------------------------------------- */\n\ntype SheetDescriptionElement = React.ElementRef<typeof SheetPrimitive.Description>;\ntype SheetDescriptionProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>;\n\nconst SheetDescription = React.forwardRef<SheetDescriptionElement, SheetDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetClose\n * -------------------------------------------------------------------------- */\n\ntype SheetCloseElement = React.ElementRef<typeof SheetPrimitive.Close>;\n\ninterface SheetCloseProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Close> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst SheetClose = React.forwardRef<SheetCloseElement, SheetCloseProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <SheetPrimitive.Close ref={forwardedRef} className={buttonVariants({ variant, size, className })} {...props} />\n ),\n);\n\nSheetClose.displayName = SheetPrimitive.Close.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetBody,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n type SheetProps,\n type SheetTriggerProps,\n type SheetCloseProps,\n type SheetContentProps,\n type SheetHeaderProps,\n type SheetBodyProps,\n type SheetFooterProps,\n type SheetTitleProps,\n type SheetDescriptionProps,\n};\n"],"mappings":"+FAEA,UAAYA,MAAW,QACvB,UAAYC,MAAoB,yBAChC,OAAS,cAAAC,MAAkB,wBAC3B,OAAS,MAAAC,MAA6B,oBAuEhC,cAAAC,EASE,QAAAC,MATF,oBA/DN,IAAMC,EAAuBC,EAAG,CAC9B,KAAM,CACJ,qFACA,+BACA,kCACA,2CACA,wCACF,EACA,SAAU,CACR,KAAM,CACJ,IAAK,CACH,wCACA,sCACA,sCACF,EACA,OAAQ,CACN,2CACA,yCACA,yCACF,EACA,KAAM,CACJ,qDACA,uCACA,uCACF,EACA,MAAO,CACL,sDACA,wCACA,wCACF,CACF,CACF,EACA,gBAAiB,CACf,KAAM,OACR,CACF,CAAC,EASKC,EAAuB,OAOvBC,EAA8B,UAS9BC,EAAqB,aACzB,CAAC,CAAE,SAAAC,EAAU,KAAAC,EAAO,QAAS,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAClDV,EAAgB,SAAf,CACC,UAAAD,EAAgB,UAAf,CACC,UAAWY,EACT,iCACA,2EACA,+E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,QAAAC,EAAU,UAAW,GAAGZ,CAAM,EAAGC,IACnDX,EAAgB,QAAf,CAAqB,IAAKW,EAAc,UAAWE,EAAe,CAAE,QAAAS,EAAS,KAAAD,EAAM,UAAAZ,CAAU,CAAC,EAAI,GAAGC,EAAO,CAEjH,EAEAU,EAAW,YAA6B,QAAM","names":["React","SheetPrimitive","Cross2Icon","tv","jsx","jsxs","sheetContentVariants","tv","Sheet","SheetTrigger","SheetContent","children","side","className","props","forwardedRef","cn","buttonVariants","Cross2Icon","SheetHeader","SheetBody","SheetFooter","SheetTitle","SheetDescription","SheetClose","size","variant"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var r = _interopRequireWildcard(_react);var _jsxruntime = require('react/jsx-runtime');var T=r.forwardRef(({className:e,...t},a)=>_jsxruntime.jsx.call(void 0, "div",{className:"relative w-full overflow-auto",children:_jsxruntime.jsx.call(void 0, "table",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "w-full caption-bottom text-sm",e),...t})}));T.displayName="Table";var b=r.forwardRef(({className:e,...t},a)=>_jsxruntime.jsx.call(void 0, "thead",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "[&>tr]:border-b [&>tr]:hover:bg-transparent",e),...t}));b.displayName="TableHeader";var s=r.forwardRef(({className:e,...t},a)=>_jsxruntime.jsx.call(void 0, "tbody",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "[&_tr:last-child]:border-0",e),...t}));s.displayName="TableBody";var p=r.forwardRef(({className:e,...t},a)=>_jsxruntime.jsx.call(void 0, "tfoot",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",e),...t}));p.displayName="TableFooter";var n=r.forwardRef(({className:e,...t},a)=>_jsxruntime.jsx.call(void 0, "tr",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "hover:bg-accent data-[state=selected]:bg-muted border-b transition",e),...t}));n.displayName="TableRow";var m=r.forwardRef(({className:e,...t},a)=>_jsxruntime.jsx.call(void 0, "th",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0",e),...t}));m.displayName="TableHead";var d=r.forwardRef(({className:e,...t},a)=>_jsxruntime.jsx.call(void 0, "td",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));d.displayName="TableCell";var c=r.forwardRef(({className:e,...t},a)=>_jsxruntime.jsx.call(void 0, "caption",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-muted-foreground mt-4 text-sm",e),...t}));c.displayName="TableCaption";exports.Table = T; exports.TableBody = s; exports.TableCaption = c; exports.TableCell = d; exports.TableFooter = p; exports.TableHead = m; exports.TableHeader = b; exports.TableRow = n;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var r = _interopRequireWildcard(_react);var _jsxruntime = require('react/jsx-runtime');var T=r.forwardRef(({className:e,...t},a)=>_jsxruntime.jsx.call(void 0, "div",{className:"relative w-full overflow-auto",children:_jsxruntime.jsx.call(void 0, "table",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "w-full caption-bottom text-sm",e),...t})}));T.displayName="Table";var b=r.forwardRef(({className:e,...t},a)=>_jsxruntime.jsx.call(void 0, "thead",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "[&>tr]:border-b [&>tr]:hover:bg-transparent",e),...t}));b.displayName="TableHeader";var s=r.forwardRef(({className:e,...t},a)=>_jsxruntime.jsx.call(void 0, "tbody",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "[&_tr:last-child]:border-0",e),...t}));s.displayName="TableBody";var p=r.forwardRef(({className:e,...t},a)=>_jsxruntime.jsx.call(void 0, "tfoot",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",e),...t}));p.displayName="TableFooter";var n=r.forwardRef(({className:e,...t},a)=>_jsxruntime.jsx.call(void 0, "tr",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "hover:bg-accent data-[state=selected]:bg-muted border-b transition",e),...t}));n.displayName="TableRow";var m=r.forwardRef(({className:e,...t},a)=>_jsxruntime.jsx.call(void 0, "th",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-muted-foreground h-12 px-4 text-left align-middle font-medium",e),...t}));m.displayName="TableHead";var d=r.forwardRef(({className:e,...t},a)=>_jsxruntime.jsx.call(void 0, "td",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "p-4 align-middle",e),...t}));d.displayName="TableCell";var c=r.forwardRef(({className:e,...t},a)=>_jsxruntime.jsx.call(void 0, "caption",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-muted-foreground mt-4 text-sm",e),...t}));c.displayName="TableCaption";exports.Table = T; exports.TableBody = s; exports.TableCaption = c; exports.TableCell = d; exports.TableFooter = p; exports.TableHead = m; exports.TableHeader = b; exports.TableRow = n;
2
2
  //# sourceMappingURL=table.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/table.cjs","../../src/components/table.tsx"],"names":["Table","className","props","forwardedRef","jsx","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption"],"mappings":"AAAA,oZAAyC,uECAlB,+CAYnB,IAFEA,CAAAA,CAAc,CAAA,CAAA,UAAA,CAAqC,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACjFC,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAU,+BAAA,CACb,QAAA,CAAAA,6BAAAA,OAAC,CAAA,CAAM,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,+BAAG,CAAiCJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAAA,CAClG,CACD,CAAA,CAEDF,CAAAA,CAAM,WAAA,CAAc,OAAA,CASpB,IAAMM,CAAAA,CAAoB,CAAA,CAAA,UAAA,CAAiD,CAAC,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACnGC,6BAAAA,OAAC,CAAA,CAAM,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,6CAAG,CAA+CJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAC/G,CAAA,CAEDI,CAAAA,CAAY,WAAA,CAAc,aAAA,CAS1B,IAAMC,CAAAA,CAAkB,CAAA,CAAA,UAAA,CAA6C,CAAC,CAAE,SAAA,CAAAN,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC7FC,6BAAAA,OAAC,CAAA,CAAM,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,4BAAG,CAA8BJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAC9F,CAAA,CAEDK,CAAAA,CAAU,WAAA,CAAc,WAAA,CASxB,IAAMC,CAAAA,CAAoB,CAAA,CAAA,UAAA,CAAiD,CAAC,CAAE,SAAA,CAA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,UAAA,CACzB,CAAC,CAAE,SAAA,CAAAX,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,SAAC,CAAA,CAAQ,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,oCAAG,CAAsCJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAE3G,CAAA,CAEAU,CAAAA,CAAa,WAAA,CAAc,cAAA,CAAA,yLAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/table.cjs","sourcesContent":[null,"import * as React from 'react';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Table\n * -------------------------------------------------------------------------- */\n\ntype TableElement = HTMLTableElement;\ntype TableProps = React.HTMLAttributes<HTMLTableElement>;\n\nconst Table = React.forwardRef<TableElement, TableProps>(({ className, ...props }, forwardedRef) => (\n <div className=\"relative w-full overflow-auto\">\n <table ref={forwardedRef} className={cn('w-full caption-bottom text-sm', className)} {...props} />\n </div>\n));\n\nTable.displayName = 'Table';\n\n/* -----------------------------------------------------------------------------\n * Component: TableHeader\n * -------------------------------------------------------------------------- */\n\ntype TableHeaderElement = HTMLTableSectionElement;\ntype TableHeaderProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableHeader = React.forwardRef<TableHeaderElement, TableHeaderProps>(({ className, ...props }, forwardedRef) => (\n <thead ref={forwardedRef} className={cn('[&>tr]:border-b [&>tr]:hover:bg-transparent', className)} {...props} />\n));\n\nTableHeader.displayName = 'TableHeader';\n\n/* -----------------------------------------------------------------------------\n * Component: TableBody\n * -------------------------------------------------------------------------- */\n\ntype TableBodyElement = HTMLTableSectionElement;\ntype TableBodyProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableBody = React.forwardRef<TableBodyElement, TableBodyProps>(({ className, ...props }, forwardedRef) => (\n <tbody ref={forwardedRef} className={cn('[&_tr:last-child]:border-0', className)} {...props} />\n));\n\nTableBody.displayName = 'TableBody';\n\n/* -----------------------------------------------------------------------------\n * Component: TableFooter\n * -------------------------------------------------------------------------- */\n\ntype TableFooterElement = HTMLTableSectionElement;\ntype TableFooterProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableFooter = React.forwardRef<TableFooterElement, TableFooterProps>(({ className, ...props }, forwardedRef) => (\n <tfoot\n ref={forwardedRef}\n className={cn('bg-muted/50 border-t font-medium [&>tr]:last:border-b-0', className)}\n {...props}\n />\n));\n\nTableFooter.displayName = 'TableFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: TableRow\n * -------------------------------------------------------------------------- */\n\ntype TableRowElement = HTMLTableRowElement;\ntype TableRowProps = React.HTMLAttributes<HTMLTableRowElement>;\n\nconst TableRow = React.forwardRef<TableRowElement, TableRowProps>(({ className, ...props }, forwardedRef) => (\n <tr\n ref={forwardedRef}\n className={cn('hover:bg-accent data-[state=selected]:bg-muted border-b transition', className)}\n {...props}\n />\n));\n\nTableRow.displayName = 'TableRow';\n\n/* -----------------------------------------------------------------------------\n * Component: TableHead\n * -------------------------------------------------------------------------- */\n\ntype TableHeadElement = HTMLTableCellElement;\ntype TableHeadProps = React.ThHTMLAttributes<HTMLTableCellElement>;\n\nconst TableHead = React.forwardRef<TableHeadElement, TableHeadProps>(({ className, ...props }, forwardedRef) => (\n <th\n ref={forwardedRef}\n className={cn(\n 'text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0',\n className,\n )}\n {...props}\n />\n));\n\nTableHead.displayName = 'TableHead';\n\n/* -----------------------------------------------------------------------------\n * Component: TableCell\n * -------------------------------------------------------------------------- */\n\ntype TableCellElement = HTMLTableCellElement;\ntype TableCellProps = React.TdHTMLAttributes<HTMLTableCellElement>;\n\nconst TableCell = React.forwardRef<TableCellElement, TableCellProps>(({ className, ...props }, forwardedRef) => (\n <td ref={forwardedRef} className={cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className)} {...props} />\n));\n\nTableCell.displayName = 'TableCell';\n\n/* -----------------------------------------------------------------------------\n * Component: TableCaption\n * -------------------------------------------------------------------------- */\n\ntype TableCaptionElement = HTMLTableCaptionElement;\ntype TableCaptionProps = React.HTMLAttributes<HTMLTableCaptionElement>;\n\nconst TableCaption = React.forwardRef<TableCaptionElement, TableCaptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <caption ref={forwardedRef} className={cn('text-muted-foreground mt-4 text-sm', className)} {...props} />\n ),\n);\n\nTableCaption.displayName = 'TableCaption';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n type TableProps,\n type TableHeaderProps,\n type TableBodyProps,\n type TableFooterProps,\n type TableHeadProps,\n type TableRowProps,\n type TableCellProps,\n type TableCaptionProps,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/table.cjs","../../src/components/table.tsx"],"names":["Table","className","props","forwardedRef","jsx","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption"],"mappings":"AAAA,oZAAyC,uECAlB,+CAYnB,IAFEA,CAAAA,CAAc,CAAA,CAAA,UAAA,CAAqC,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACjFC,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAU,+BAAA,CACb,QAAA,CAAAA,6BAAAA,OAAC,CAAA,CAAM,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,+BAAG,CAAiCJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAAA,CAClG,CACD,CAAA,CAEDF,CAAAA,CAAM,WAAA,CAAc,OAAA,CASpB,IAAMM,CAAAA,CAAoB,CAAA,CAAA,UAAA,CAAiD,CAAC,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA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AA,CAAAT,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC7FC,6BAAAA,IAAC,CAAA,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,oEAAG,CAAsEJ,CAAS,CAAA,CAC5F,GAAGC,CAAAA,CACN,CACD,CAAA,CAEDQ,CAAAA,CAAU,WAAA,CAAc,WAAA,CASxB,IAAMC,CAAAA,CAAkB,CAAA,CAAA,UAAA,CAA6C,CAAC,CAAE,SAAA,CAAAV,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC7FC,6BAAAA,IAAC,CAAA,CAAG,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,kBAAG,CAAoBJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CACjF,CAAA,CAEDS,CAAAA,CAAU,WAAA,CAAc,WAAA,CASxB,IAAMC,CAAAA,CAAqB,CAAA,CAAA,UAAA,CACzB,CAAC,CAAE,SAAA,CAAAX,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,SAAC,CAAA,CAAQ,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,oCAAG,CAAsCJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAE3G,CAAA,CAEAU,CAAAA,CAAa,WAAA,CAAc,cAAA,CAAA,yLAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/table.cjs","sourcesContent":[null,"import * as React from 'react';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Table\n * -------------------------------------------------------------------------- */\n\ntype TableElement = HTMLTableElement;\ntype TableProps = React.HTMLAttributes<HTMLTableElement>;\n\nconst Table = React.forwardRef<TableElement, TableProps>(({ className, ...props }, forwardedRef) => (\n <div className=\"relative w-full overflow-auto\">\n <table ref={forwardedRef} className={cn('w-full caption-bottom text-sm', className)} {...props} />\n </div>\n));\n\nTable.displayName = 'Table';\n\n/* -----------------------------------------------------------------------------\n * Component: TableHeader\n * -------------------------------------------------------------------------- */\n\ntype TableHeaderElement = HTMLTableSectionElement;\ntype TableHeaderProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableHeader = React.forwardRef<TableHeaderElement, TableHeaderProps>(({ className, ...props }, forwardedRef) => (\n <thead ref={forwardedRef} className={cn('[&>tr]:border-b [&>tr]:hover:bg-transparent', className)} {...props} />\n));\n\nTableHeader.displayName = 'TableHeader';\n\n/* -----------------------------------------------------------------------------\n * Component: TableBody\n * -------------------------------------------------------------------------- */\n\ntype TableBodyElement = HTMLTableSectionElement;\ntype TableBodyProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableBody = React.forwardRef<TableBodyElement, TableBodyProps>(({ className, ...props }, forwardedRef) => (\n <tbody ref={forwardedRef} className={cn('[&_tr:last-child]:border-0', className)} {...props} />\n));\n\nTableBody.displayName = 'TableBody';\n\n/* -----------------------------------------------------------------------------\n * Component: TableFooter\n * -------------------------------------------------------------------------- */\n\ntype TableFooterElement = HTMLTableSectionElement;\ntype TableFooterProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableFooter = React.forwardRef<TableFooterElement, TableFooterProps>(({ className, ...props }, forwardedRef) => (\n <tfoot\n ref={forwardedRef}\n className={cn('bg-muted/50 border-t font-medium [&>tr]:last:border-b-0', className)}\n {...props}\n />\n));\n\nTableFooter.displayName = 'TableFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: TableRow\n * -------------------------------------------------------------------------- */\n\ntype TableRowElement = HTMLTableRowElement;\ntype TableRowProps = React.HTMLAttributes<HTMLTableRowElement>;\n\nconst TableRow = React.forwardRef<TableRowElement, TableRowProps>(({ className, ...props }, forwardedRef) => (\n <tr\n ref={forwardedRef}\n className={cn('hover:bg-accent data-[state=selected]:bg-muted border-b transition', className)}\n {...props}\n />\n));\n\nTableRow.displayName = 'TableRow';\n\n/* -----------------------------------------------------------------------------\n * Component: TableHead\n * -------------------------------------------------------------------------- */\n\ntype TableHeadElement = HTMLTableCellElement;\ntype TableHeadProps = React.ThHTMLAttributes<HTMLTableCellElement>;\n\nconst TableHead = React.forwardRef<TableHeadElement, TableHeadProps>(({ className, ...props }, forwardedRef) => (\n <th\n ref={forwardedRef}\n className={cn('text-muted-foreground h-12 px-4 text-left align-middle font-medium', className)}\n {...props}\n />\n));\n\nTableHead.displayName = 'TableHead';\n\n/* -----------------------------------------------------------------------------\n * Component: TableCell\n * -------------------------------------------------------------------------- */\n\ntype TableCellElement = HTMLTableCellElement;\ntype TableCellProps = React.TdHTMLAttributes<HTMLTableCellElement>;\n\nconst TableCell = React.forwardRef<TableCellElement, TableCellProps>(({ className, ...props }, forwardedRef) => (\n <td ref={forwardedRef} className={cn('p-4 align-middle', className)} {...props} />\n));\n\nTableCell.displayName = 'TableCell';\n\n/* -----------------------------------------------------------------------------\n * Component: TableCaption\n * -------------------------------------------------------------------------- */\n\ntype TableCaptionElement = HTMLTableCaptionElement;\ntype TableCaptionProps = React.HTMLAttributes<HTMLTableCaptionElement>;\n\nconst TableCaption = React.forwardRef<TableCaptionElement, TableCaptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <caption ref={forwardedRef} className={cn('text-muted-foreground mt-4 text-sm', className)} {...props} />\n ),\n);\n\nTableCaption.displayName = 'TableCaption';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n type TableProps,\n type TableHeaderProps,\n type TableBodyProps,\n type TableFooterProps,\n type TableHeadProps,\n type TableRowProps,\n type TableCellProps,\n type TableCaptionProps,\n};\n"]}
@@ -1,2 +1,2 @@
1
- import{a as l}from"../chunk-VRBUDJBH.js";import*as r from"react";import{jsx as o}from"react/jsx-runtime";var T=r.forwardRef(({className:e,...t},a)=>o("div",{className:"relative w-full overflow-auto",children:o("table",{ref:a,className:l("w-full caption-bottom text-sm",e),...t})}));T.displayName="Table";var b=r.forwardRef(({className:e,...t},a)=>o("thead",{ref:a,className:l("[&>tr]:border-b [&>tr]:hover:bg-transparent",e),...t}));b.displayName="TableHeader";var s=r.forwardRef(({className:e,...t},a)=>o("tbody",{ref:a,className:l("[&_tr:last-child]:border-0",e),...t}));s.displayName="TableBody";var p=r.forwardRef(({className:e,...t},a)=>o("tfoot",{ref:a,className:l("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",e),...t}));p.displayName="TableFooter";var n=r.forwardRef(({className:e,...t},a)=>o("tr",{ref:a,className:l("hover:bg-accent data-[state=selected]:bg-muted border-b transition",e),...t}));n.displayName="TableRow";var m=r.forwardRef(({className:e,...t},a)=>o("th",{ref:a,className:l("text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0",e),...t}));m.displayName="TableHead";var d=r.forwardRef(({className:e,...t},a)=>o("td",{ref:a,className:l("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));d.displayName="TableCell";var c=r.forwardRef(({className:e,...t},a)=>o("caption",{ref:a,className:l("text-muted-foreground mt-4 text-sm",e),...t}));c.displayName="TableCaption";export{T as Table,s as TableBody,c as TableCaption,d as TableCell,p as TableFooter,m as TableHead,b as TableHeader,n as TableRow};
1
+ import{a as l}from"../chunk-VRBUDJBH.js";import*as r from"react";import{jsx as o}from"react/jsx-runtime";var T=r.forwardRef(({className:e,...t},a)=>o("div",{className:"relative w-full overflow-auto",children:o("table",{ref:a,className:l("w-full caption-bottom text-sm",e),...t})}));T.displayName="Table";var b=r.forwardRef(({className:e,...t},a)=>o("thead",{ref:a,className:l("[&>tr]:border-b [&>tr]:hover:bg-transparent",e),...t}));b.displayName="TableHeader";var s=r.forwardRef(({className:e,...t},a)=>o("tbody",{ref:a,className:l("[&_tr:last-child]:border-0",e),...t}));s.displayName="TableBody";var p=r.forwardRef(({className:e,...t},a)=>o("tfoot",{ref:a,className:l("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",e),...t}));p.displayName="TableFooter";var n=r.forwardRef(({className:e,...t},a)=>o("tr",{ref:a,className:l("hover:bg-accent data-[state=selected]:bg-muted border-b transition",e),...t}));n.displayName="TableRow";var m=r.forwardRef(({className:e,...t},a)=>o("th",{ref:a,className:l("text-muted-foreground h-12 px-4 text-left align-middle font-medium",e),...t}));m.displayName="TableHead";var d=r.forwardRef(({className:e,...t},a)=>o("td",{ref:a,className:l("p-4 align-middle",e),...t}));d.displayName="TableCell";var c=r.forwardRef(({className:e,...t},a)=>o("caption",{ref:a,className:l("text-muted-foreground mt-4 text-sm",e),...t}));c.displayName="TableCaption";export{T as Table,s as TableBody,c as TableCaption,d as TableCell,p as TableFooter,m as TableHead,b as TableHeader,n as TableRow};
2
2
  //# sourceMappingURL=table.js.map