@kubetail/ui 0.1.3-rc20 → 0.1.4

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 (105) hide show
  1. package/dist/elements/Alert.cjs +1 -0
  2. package/dist/elements/Alert.cjs.map +1 -0
  3. package/dist/elements/Alert.js +1 -0
  4. package/dist/elements/Alert.js.map +1 -0
  5. package/dist/elements/Button.cjs +1 -0
  6. package/dist/elements/Button.cjs.map +1 -0
  7. package/dist/elements/Button.js +1 -0
  8. package/dist/elements/Button.js.map +1 -0
  9. package/dist/elements/Calendar.cjs +1 -0
  10. package/dist/elements/Calendar.cjs.map +1 -0
  11. package/dist/elements/Calendar.js +1 -0
  12. package/dist/elements/Calendar.js.map +1 -0
  13. package/dist/elements/Container.cjs +1 -0
  14. package/dist/elements/Container.cjs.map +1 -0
  15. package/dist/elements/Container.js +1 -0
  16. package/dist/elements/Container.js.map +1 -0
  17. package/dist/elements/DataTable/Body.cjs +1 -0
  18. package/dist/elements/DataTable/Body.cjs.map +1 -0
  19. package/dist/elements/DataTable/Body.js +1 -0
  20. package/dist/elements/DataTable/Body.js.map +1 -0
  21. package/dist/elements/DataTable/DataCell.cjs +1 -0
  22. package/dist/elements/DataTable/DataCell.cjs.map +1 -0
  23. package/dist/elements/DataTable/DataCell.js +1 -0
  24. package/dist/elements/DataTable/DataCell.js.map +1 -0
  25. package/dist/elements/DataTable/Header.cjs +1 -0
  26. package/dist/elements/DataTable/Header.cjs.map +1 -0
  27. package/dist/elements/DataTable/Header.js +1 -0
  28. package/dist/elements/DataTable/Header.js.map +1 -0
  29. package/dist/elements/DataTable/HeaderCell.cjs +1 -0
  30. package/dist/elements/DataTable/HeaderCell.cjs.map +1 -0
  31. package/dist/elements/DataTable/HeaderCell.js +1 -0
  32. package/dist/elements/DataTable/HeaderCell.js.map +1 -0
  33. package/dist/elements/DataTable/Row.cjs +1 -0
  34. package/dist/elements/DataTable/Row.cjs.map +1 -0
  35. package/dist/elements/DataTable/Row.js +1 -0
  36. package/dist/elements/DataTable/Row.js.map +1 -0
  37. package/dist/elements/DataTable/index.cjs +1 -0
  38. package/dist/elements/DataTable/index.cjs.map +1 -0
  39. package/dist/elements/DataTable/index.js +1 -0
  40. package/dist/elements/DataTable/index.js.map +1 -0
  41. package/dist/elements/Form.cjs +1 -0
  42. package/dist/elements/Form.cjs.map +1 -0
  43. package/dist/elements/Form.js +1 -0
  44. package/dist/elements/Form.js.map +1 -0
  45. package/dist/elements/FormCheck.cjs +1 -0
  46. package/dist/elements/FormCheck.cjs.map +1 -0
  47. package/dist/elements/FormCheck.js +1 -0
  48. package/dist/elements/FormCheck.js.map +1 -0
  49. package/dist/elements/FormControl.cjs +1 -0
  50. package/dist/elements/FormControl.cjs.map +1 -0
  51. package/dist/elements/FormControl.js +1 -0
  52. package/dist/elements/FormControl.js.map +1 -0
  53. package/dist/elements/FormControlFeedback.cjs +1 -0
  54. package/dist/elements/FormControlFeedback.cjs.map +1 -0
  55. package/dist/elements/FormControlFeedback.js +1 -0
  56. package/dist/elements/FormControlFeedback.js.map +1 -0
  57. package/dist/elements/FormFeedback.cjs +1 -0
  58. package/dist/elements/FormFeedback.cjs.map +1 -0
  59. package/dist/elements/FormFeedback.js +1 -0
  60. package/dist/elements/FormFeedback.js.map +1 -0
  61. package/dist/elements/FormFieldset.cjs +1 -0
  62. package/dist/elements/FormFieldset.cjs.map +1 -0
  63. package/dist/elements/FormFieldset.js +1 -0
  64. package/dist/elements/FormFieldset.js.map +1 -0
  65. package/dist/elements/FormGroup.cjs +1 -0
  66. package/dist/elements/FormGroup.cjs.map +1 -0
  67. package/dist/elements/FormGroup.js +1 -0
  68. package/dist/elements/FormGroup.js.map +1 -0
  69. package/dist/elements/FormLabel.cjs +1 -0
  70. package/dist/elements/FormLabel.cjs.map +1 -0
  71. package/dist/elements/FormLabel.js +1 -0
  72. package/dist/elements/FormLabel.js.map +1 -0
  73. package/dist/elements/FormOption.cjs +1 -0
  74. package/dist/elements/FormOption.cjs.map +1 -0
  75. package/dist/elements/FormOption.js +1 -0
  76. package/dist/elements/FormOption.js.map +1 -0
  77. package/dist/elements/FormSelect.cjs +1 -0
  78. package/dist/elements/FormSelect.cjs.map +1 -0
  79. package/dist/elements/FormSelect.js +1 -0
  80. package/dist/elements/FormSelect.js.map +1 -0
  81. package/dist/elements/Popover.cjs +1 -0
  82. package/dist/elements/Popover.cjs.map +1 -0
  83. package/dist/elements/Popover.js +1 -0
  84. package/dist/elements/Popover.js.map +1 -0
  85. package/dist/elements/Spinner.cjs +1 -0
  86. package/dist/elements/Spinner.cjs.map +1 -0
  87. package/dist/elements/Spinner.js +1 -0
  88. package/dist/elements/Spinner.js.map +1 -0
  89. package/dist/elements/Tabs.cjs +1 -0
  90. package/dist/elements/Tabs.cjs.map +1 -0
  91. package/dist/elements/Tabs.js +1 -0
  92. package/dist/elements/Tabs.js.map +1 -0
  93. package/dist/index.cjs +1 -0
  94. package/dist/index.cjs.map +1 -0
  95. package/dist/index.js +1 -0
  96. package/dist/index.js.map +1 -0
  97. package/dist/lib/utils.cjs +1 -0
  98. package/dist/lib/utils.cjs.map +1 -0
  99. package/dist/lib/utils.js +1 -0
  100. package/dist/lib/utils.js.map +1 -0
  101. package/dist/plugin.cjs +1 -0
  102. package/dist/plugin.cjs.map +1 -0
  103. package/dist/plugin.js +1 -0
  104. package/dist/plugin.js.map +1 -0
  105. package/package.json +12 -12
@@ -1 +1,2 @@
1
1
  "use strict";const e=require("react/jsx-runtime"),l=require("@heroicons/react/24/solid"),t=({children:s})=>e.jsx("div",{className:"rounded-md bg-yellow-50 p-4",children:e.jsxs("div",{className:"flex",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx(l.ExclamationTriangleIcon,{className:"h-5 w-5 text-yellow-400","aria-hidden":"true"})}),e.jsxs("div",{className:"ml-3",children:[e.jsx("h3",{className:"text-sm font-medium text-yellow-800",children:"Attention"}),e.jsx("div",{className:"mt-2 text-sm text-yellow-700",children:e.jsx("div",{children:s})})]})]})});module.exports=t;
2
+ //# sourceMappingURL=Alert.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Alert.cjs","sources":["../../src/elements/Alert.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { ExclamationTriangleIcon } from '@heroicons/react/24/solid';\n/**\n * UI component for displaying alerts\n */\nconst Alert = ({ children }) => (_jsx(\"div\", { className: \"rounded-md bg-yellow-50 p-4\", children: _jsxs(\"div\", { className: \"flex\", children: [_jsx(\"div\", { className: \"flex-shrink-0\", children: _jsx(ExclamationTriangleIcon, { className: \"h-5 w-5 text-yellow-400\", \"aria-hidden\": \"true\" }) }), _jsxs(\"div\", { className: \"ml-3\", children: [_jsx(\"h3\", { className: \"text-sm font-medium text-yellow-800\", children: \"Attention\" }), _jsx(\"div\", { className: \"mt-2 text-sm text-yellow-700\", children: _jsx(\"div\", { children: children }) })] })] }) }));\nexport default Alert;\n"],"names":["Alert","children","_jsx","_jsxs","ExclamationTriangleIcon"],"mappings":"yFAkBMA,EAAQ,CAAC,CAAE,SAAAC,KAAgBC,EAAAA,IAAK,MAAO,CAAE,UAAW,8BAA+B,SAAUC,EAAAA,KAAM,MAAO,CAAE,UAAW,OAAQ,SAAU,CAACD,EAAK,IAAA,MAAO,CAAE,UAAW,gBAAiB,SAAUA,MAAKE,EAAAA,wBAAyB,CAAE,UAAW,0BAA2B,cAAe,MAAO,CAAC,EAAG,EAAGD,EAAAA,KAAM,MAAO,CAAE,UAAW,OAAQ,SAAU,CAACD,MAAK,KAAM,CAAE,UAAW,sCAAuC,SAAU,WAAA,CAAa,EAAGA,MAAK,MAAO,CAAE,UAAW,+BAAgC,SAAUA,EAAAA,IAAK,MAAO,CAAE,SAAAD,CAAoB,CAAA,CAAG,CAAA,CAAC,EAAG,CAAC,CAAG,CAAA,CAAG,CAAA"}
@@ -4,3 +4,4 @@ const d = ({ children: t }) => e("div", { className: "rounded-md bg-yellow-50 p-
4
4
  export {
5
5
  d as default
6
6
  };
7
+ //# sourceMappingURL=Alert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Alert.js","sources":["../../src/elements/Alert.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { ExclamationTriangleIcon } from '@heroicons/react/24/solid';\n/**\n * UI component for displaying alerts\n */\nconst Alert = ({ children }) => (_jsx(\"div\", { className: \"rounded-md bg-yellow-50 p-4\", children: _jsxs(\"div\", { className: \"flex\", children: [_jsx(\"div\", { className: \"flex-shrink-0\", children: _jsx(ExclamationTriangleIcon, { className: \"h-5 w-5 text-yellow-400\", \"aria-hidden\": \"true\" }) }), _jsxs(\"div\", { className: \"ml-3\", children: [_jsx(\"h3\", { className: \"text-sm font-medium text-yellow-800\", children: \"Attention\" }), _jsx(\"div\", { className: \"mt-2 text-sm text-yellow-700\", children: _jsx(\"div\", { children: children }) })] })] }) }));\nexport default Alert;\n"],"names":["Alert","children","_jsx","_jsxs","ExclamationTriangleIcon"],"mappings":";;AAkBA,MAAMA,IAAQ,CAAC,EAAE,UAAAC,QAAgBC,EAAK,OAAO,EAAE,WAAW,+BAA+B,UAAUC,EAAM,OAAO,EAAE,WAAW,QAAQ,UAAU,CAACD,EAAK,OAAO,EAAE,WAAW,iBAAiB,UAAUA,EAAKE,GAAyB,EAAE,WAAW,2BAA2B,eAAe,OAAO,CAAC,GAAG,GAAGD,EAAM,OAAO,EAAE,WAAW,QAAQ,UAAU,CAACD,EAAK,MAAM,EAAE,WAAW,uCAAuC,UAAU,YAAA,CAAa,GAAGA,EAAK,OAAO,EAAE,WAAW,gCAAgC,UAAUA,EAAK,OAAO,EAAE,UAAAD,EAAoB,CAAA,EAAG,CAAA,CAAC,GAAG,CAAC,EAAG,CAAA,EAAG,CAAA;"}
@@ -1 +1,2 @@
1
1
  "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react/jsx-runtime"),g=require("@restart/ui/Button"),m=require("class-variance-authority"),l=require("react"),b=require("../lib/utils.cjs"),r=m.cva("uppercase inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{intent:{primary:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/60 shadow-sm",danger:"bg-danger text-danger-foreground hover:bg-danger/90 shadow-sm",outline:"border border-input bg-background hover:bg-secondary hover:text-secondary-foreground",ghost:"hover:bg-secondary hover:text-secondary-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{xs:"px-2.5 py-1.5 text-xs rounded",sm:"px-3 py-2 text-xs rounded-md",md:"px-4 py-2 text-sm rounded-md",lg:"px-4 py-2 text-base rounded-md",xl:"px-6 py-3 text-base rounded-md"}},defaultVariants:{intent:"primary",size:"md"}}),t=l.forwardRef(({as:n,children:o,className:s,disabled:a,...e},i)=>{const[d,{tagName:u}]=g.useButtonProps({tagName:n,disabled:a,...e});return c.jsx(u,{...e,...d,ref:i,className:b.cn(r(e),s),children:o})});t.displayName="Button";exports.buttonVariants=r;exports.default=t;
2
+ //# sourceMappingURL=Button.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.cjs","sources":["../../src/elements/Button.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { useButtonProps } from '@restart/ui/Button';\nimport { cva } from 'class-variance-authority';\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nexport const buttonVariants = cva('uppercase inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50', {\n variants: {\n intent: {\n primary: 'bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/60 shadow-sm',\n danger: 'bg-danger text-danger-foreground hover:bg-danger/90 shadow-sm',\n outline: 'border border-input bg-background hover:bg-secondary hover:text-secondary-foreground',\n ghost: 'hover:bg-secondary hover:text-secondary-foreground',\n link: 'text-primary underline-offset-4 hover:underline',\n },\n size: {\n xs: 'px-2.5 py-1.5 text-xs rounded',\n sm: 'px-3 py-2 text-xs rounded-md',\n md: 'px-4 py-2 text-sm rounded-md',\n lg: 'px-4 py-2 text-base rounded-md',\n xl: 'px-6 py-3 text-base rounded-md',\n },\n },\n defaultVariants: {\n intent: 'primary',\n size: 'md',\n },\n});\nconst Button = forwardRef(({ as, children, className, disabled, ...props }, ref) => {\n const [ariaButtonProps, { tagName: Tag }] = useButtonProps({\n tagName: as,\n disabled,\n ...props,\n });\n return (_jsx(Tag, { ...props, ...ariaButtonProps, ref: ref, className: cn(buttonVariants(props), className), children: children }));\n});\nButton.displayName = 'Button';\nexport default Button;\n"],"names":["buttonVariants","cva","Button","forwardRef","as","children","className","disabled","props","ref","ariaButtonProps","Tag","useButtonProps","_jsx","cn"],"mappings":"wQAkBaA,EAAiBC,MAAI,mSAAoS,CAClU,SAAU,CACN,OAAQ,CACJ,QAAS,mEACT,UAAW,yEACX,OAAQ,gEACR,QAAS,uFACT,MAAO,qDACP,KAAM,iDACV,EACA,KAAM,CACF,GAAI,gCACJ,GAAI,+BACJ,GAAI,+BACJ,GAAI,iCACJ,GAAI,gCACR,CACJ,EACA,gBAAiB,CACb,OAAQ,UACR,KAAM,IACV,CACJ,CAAC,EACKC,EAASC,EAAAA,WAAW,CAAC,CAAE,GAAAC,EAAI,SAAAC,EAAU,UAAAC,EAAW,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAAQ,CAChF,KAAM,CAACC,EAAiB,CAAE,QAASC,CAAK,CAAA,EAAIC,EAAAA,eAAe,CACvD,QAASR,EACT,SAAAG,EACA,GAAGC,CAAA,CACN,EACD,OAAQK,EAAAA,IAAKF,EAAK,CAAE,GAAGH,EAAO,GAAGE,EAAiB,IAAAD,EAAU,UAAWK,EAAA,GAAGd,EAAeQ,CAAK,EAAGF,CAAS,EAAG,SAAAD,EAAoB,CACrI,CAAC,EACDH,EAAO,YAAc"}
@@ -38,3 +38,4 @@ export {
38
38
  f as buttonVariants,
39
39
  c as default
40
40
  };
41
+ //# sourceMappingURL=Button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.js","sources":["../../src/elements/Button.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { useButtonProps } from '@restart/ui/Button';\nimport { cva } from 'class-variance-authority';\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nexport const buttonVariants = cva('uppercase inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50', {\n variants: {\n intent: {\n primary: 'bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/60 shadow-sm',\n danger: 'bg-danger text-danger-foreground hover:bg-danger/90 shadow-sm',\n outline: 'border border-input bg-background hover:bg-secondary hover:text-secondary-foreground',\n ghost: 'hover:bg-secondary hover:text-secondary-foreground',\n link: 'text-primary underline-offset-4 hover:underline',\n },\n size: {\n xs: 'px-2.5 py-1.5 text-xs rounded',\n sm: 'px-3 py-2 text-xs rounded-md',\n md: 'px-4 py-2 text-sm rounded-md',\n lg: 'px-4 py-2 text-base rounded-md',\n xl: 'px-6 py-3 text-base rounded-md',\n },\n },\n defaultVariants: {\n intent: 'primary',\n size: 'md',\n },\n});\nconst Button = forwardRef(({ as, children, className, disabled, ...props }, ref) => {\n const [ariaButtonProps, { tagName: Tag }] = useButtonProps({\n tagName: as,\n disabled,\n ...props,\n });\n return (_jsx(Tag, { ...props, ...ariaButtonProps, ref: ref, className: cn(buttonVariants(props), className), children: children }));\n});\nButton.displayName = 'Button';\nexport default Button;\n"],"names":["buttonVariants","cva","Button","forwardRef","as","children","className","disabled","props","ref","ariaButtonProps","Tag","useButtonProps","_jsx","cn"],"mappings":";;;;;AAkBa,MAAAA,IAAiBC,EAAI,oSAAoS;AAAA,EAClU,UAAU;AAAA,IACN,QAAQ;AAAA,MACJ,SAAS;AAAA,MACT,WAAW;AAAA,MACX,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,OAAO;AAAA,MACP,MAAM;AAAA,IACV;AAAA,IACA,MAAM;AAAA,MACF,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACR;AAAA,EACJ;AAAA,EACA,iBAAiB;AAAA,IACb,QAAQ;AAAA,IACR,MAAM;AAAA,EACV;AACJ,CAAC,GACKC,IAASC,EAAW,CAAC,EAAE,IAAAC,GAAI,UAAAC,GAAU,WAAAC,GAAW,UAAAC,GAAU,GAAGC,EAAM,GAAGC,MAAQ;AAChF,QAAM,CAACC,GAAiB,EAAE,SAASC,EAAK,CAAA,IAAIC,EAAe;AAAA,IACvD,SAASR;AAAA,IACT,UAAAG;AAAA,IACA,GAAGC;AAAA,EAAA,CACN;AACD,SAAQK,EAAKF,GAAK,EAAE,GAAGH,GAAO,GAAGE,GAAiB,KAAAD,GAAU,WAAWK,EAAGd,EAAeQ,CAAK,GAAGF,CAAS,GAAG,UAAAD,GAAoB;AACrI,CAAC;AACDH,EAAO,cAAc;"}
@@ -1 +1,2 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("lucide-react"),i=require("react-day-picker"),a=require("./Button.cjs"),e=require("../lib/utils.cjs"),l=()=>t.jsx(r.ChevronLeft,{className:"h-4 w-4"}),u=()=>t.jsx(r.ChevronRight,{className:"h-4 w-4"});function n({className:o,classNames:c,showOutsideDays:s=!0,...d}){return t.jsx(i.DayPicker,{showOutsideDays:s,className:e.cn("p-3",o),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:e.cn(a.buttonVariants({intent:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:e.cn(a.buttonVariants({intent:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...c},components:{IconLeft:l,IconRight:u},...d})}n.displayName="Calendar";exports.Calendar=n;
2
+ //# sourceMappingURL=Calendar.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Calendar.cjs","sources":["../../src/elements/Calendar.tsx"],"sourcesContent":["'use client';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { ChevronLeft, ChevronRight } from 'lucide-react';\nimport { DayPicker } from 'react-day-picker';\nimport { buttonVariants } from './Button';\nimport { cn } from '@/lib/utils';\nconst IconLeft = () => _jsx(ChevronLeft, { className: \"h-4 w-4\" });\nconst IconRight = () => _jsx(ChevronRight, { className: \"h-4 w-4\" });\nfunction Calendar({ className, classNames, showOutsideDays = true, ...props }) {\n return (_jsx(DayPicker, { showOutsideDays: showOutsideDays, className: cn('p-3', className), classNames: {\n months: 'flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0',\n month: 'space-y-4',\n caption: 'flex justify-center pt-1 relative items-center',\n caption_label: 'text-sm font-medium',\n nav: 'space-x-1 flex items-center',\n nav_button: cn(buttonVariants({ intent: 'outline' }), 'h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100'),\n nav_button_previous: 'absolute left-1',\n nav_button_next: 'absolute right-1',\n table: 'w-full border-collapse space-y-1',\n head_row: 'flex',\n head_cell: 'text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]',\n row: 'flex w-full mt-2',\n cell: 'h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20',\n day: cn(buttonVariants({ intent: 'ghost' }), 'h-9 w-9 p-0 font-normal aria-selected:opacity-100'),\n day_range_end: 'day-range-end',\n day_selected: 'bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground',\n day_today: 'bg-accent text-accent-foreground',\n day_outside: 'day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30',\n day_disabled: 'text-muted-foreground opacity-50',\n day_range_middle: 'aria-selected:bg-accent aria-selected:text-accent-foreground',\n day_hidden: 'invisible',\n ...classNames,\n }, components: { IconLeft, IconRight }, ...props }));\n}\nCalendar.displayName = 'Calendar';\nexport { Calendar };\n"],"names":["IconLeft","_jsx","ChevronLeft","IconRight","ChevronRight","Calendar","className","classNames","showOutsideDays","props","DayPicker","cn","buttonVariants"],"mappings":"qOAMMA,EAAW,IAAMC,EAAAA,IAAKC,EAAAA,YAAa,CAAE,UAAW,UAAW,EAC3DC,EAAY,IAAMF,EAAAA,IAAKG,EAAAA,aAAc,CAAE,UAAW,UAAW,EACnE,SAASC,EAAS,CAAE,UAAAC,EAAW,WAAAC,EAAY,gBAAAC,EAAkB,GAAM,GAAGC,GAAS,CACnE,OAAAR,EAAA,IAAKS,YAAW,CAAE,gBAAAF,EAAkC,UAAWG,EAAAA,GAAG,MAAOL,CAAS,EAAG,WAAY,CACjG,OAAQ,gEACR,MAAO,YACP,QAAS,iDACT,cAAe,sBACf,IAAK,8BACL,WAAYK,KAAGC,iBAAe,CAAE,OAAQ,SAAU,CAAC,EAAG,yDAAyD,EAC/G,oBAAqB,kBACrB,gBAAiB,mBACjB,MAAO,mCACP,SAAU,OACV,UAAW,iEACX,IAAK,mBACL,KAAM,mTACN,IAAKD,KAAGC,iBAAe,CAAE,OAAQ,OAAQ,CAAC,EAAG,mDAAmD,EAChG,cAAe,gBACf,aAAc,mIACd,UAAW,mCACX,YAAa,uIACb,aAAc,mCACd,iBAAkB,+DAClB,WAAY,YACZ,GAAGL,CAAA,EACJ,WAAY,CAAE,SAAAP,EAAU,UAAAG,GAAa,GAAGM,EAAO,CAC1D,CACAJ,EAAS,YAAc"}
@@ -34,3 +34,4 @@ u.displayName = "Calendar";
34
34
  export {
35
35
  u as Calendar
36
36
  };
37
+ //# sourceMappingURL=Calendar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Calendar.js","sources":["../../src/elements/Calendar.tsx"],"sourcesContent":["'use client';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { ChevronLeft, ChevronRight } from 'lucide-react';\nimport { DayPicker } from 'react-day-picker';\nimport { buttonVariants } from './Button';\nimport { cn } from '@/lib/utils';\nconst IconLeft = () => _jsx(ChevronLeft, { className: \"h-4 w-4\" });\nconst IconRight = () => _jsx(ChevronRight, { className: \"h-4 w-4\" });\nfunction Calendar({ className, classNames, showOutsideDays = true, ...props }) {\n return (_jsx(DayPicker, { showOutsideDays: showOutsideDays, className: cn('p-3', className), classNames: {\n months: 'flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0',\n month: 'space-y-4',\n caption: 'flex justify-center pt-1 relative items-center',\n caption_label: 'text-sm font-medium',\n nav: 'space-x-1 flex items-center',\n nav_button: cn(buttonVariants({ intent: 'outline' }), 'h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100'),\n nav_button_previous: 'absolute left-1',\n nav_button_next: 'absolute right-1',\n table: 'w-full border-collapse space-y-1',\n head_row: 'flex',\n head_cell: 'text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]',\n row: 'flex w-full mt-2',\n cell: 'h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20',\n day: cn(buttonVariants({ intent: 'ghost' }), 'h-9 w-9 p-0 font-normal aria-selected:opacity-100'),\n day_range_end: 'day-range-end',\n day_selected: 'bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground',\n day_today: 'bg-accent text-accent-foreground',\n day_outside: 'day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30',\n day_disabled: 'text-muted-foreground opacity-50',\n day_range_middle: 'aria-selected:bg-accent aria-selected:text-accent-foreground',\n day_hidden: 'invisible',\n ...classNames,\n }, components: { IconLeft, IconRight }, ...props }));\n}\nCalendar.displayName = 'Calendar';\nexport { Calendar };\n"],"names":["IconLeft","_jsx","ChevronLeft","IconRight","ChevronRight","Calendar","className","classNames","showOutsideDays","props","DayPicker","cn","buttonVariants"],"mappings":";;;;;AAMA,MAAMA,IAAW,MAAMC,EAAKC,GAAa,EAAE,WAAW,WAAW,GAC3DC,IAAY,MAAMF,EAAKG,GAAc,EAAE,WAAW,WAAW;AACnE,SAASC,EAAS,EAAE,WAAAC,GAAW,YAAAC,GAAY,iBAAAC,IAAkB,IAAM,GAAGC,KAAS;AACnE,SAAAR,EAAKS,GAAW,EAAE,iBAAAF,GAAkC,WAAWG,EAAG,OAAOL,CAAS,GAAG,YAAY;AAAA,IACjG,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,SAAS;AAAA,IACT,eAAe;AAAA,IACf,KAAK;AAAA,IACL,YAAYK,EAAGC,EAAe,EAAE,QAAQ,UAAU,CAAC,GAAG,yDAAyD;AAAA,IAC/G,qBAAqB;AAAA,IACrB,iBAAiB;AAAA,IACjB,OAAO;AAAA,IACP,UAAU;AAAA,IACV,WAAW;AAAA,IACX,KAAK;AAAA,IACL,MAAM;AAAA,IACN,KAAKD,EAAGC,EAAe,EAAE,QAAQ,QAAQ,CAAC,GAAG,mDAAmD;AAAA,IAChG,eAAe;AAAA,IACf,cAAc;AAAA,IACd,WAAW;AAAA,IACX,aAAa;AAAA,IACb,cAAc;AAAA,IACd,kBAAkB;AAAA,IAClB,YAAY;AAAA,IACZ,GAAGL;AAAA,EAAA,GACJ,YAAY,EAAE,UAAAP,GAAU,WAAAG,KAAa,GAAGM,GAAO;AAC1D;AACAJ,EAAS,cAAc;"}
@@ -1 +1,2 @@
1
1
  "use strict";const c=require("react/jsx-runtime"),t=require("../lib/utils.cjs"),x="container mx-auto sm:max-w-screen-sm md:max-w-screen-md lg:max-w-screen-lg xl:max-w-screen-xl 2xl:max-w-screen-2xl px-4",a=({as:e="div",children:s,className:n})=>{const r=e;return c.jsx(r,{className:t.cn(x,n),children:s})};module.exports=a;
2
+ //# sourceMappingURL=Container.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container.cjs","sources":["../../src/elements/Container.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCN = 'container mx-auto sm:max-w-screen-sm md:max-w-screen-md lg:max-w-screen-lg xl:max-w-screen-xl 2xl:max-w-screen-2xl px-4';\nconst Container = ({ as = 'div', children, className }) => {\n const Tag = as;\n return (_jsx(Tag, { className: cn(baseCN, className), children: children }));\n};\nexport default Container;\n"],"names":["baseCN","Container","as","children","className","Tag","_jsx","cn"],"mappings":"gFAeMA,EAAS,0HACTC,EAAY,CAAC,CAAE,GAAAC,EAAK,MAAO,SAAAC,EAAU,UAAAC,KAAgB,CACvD,MAAMC,EAAMH,EACJ,OAAAI,EAAA,IAAKD,EAAK,CAAE,UAAWE,EAAAA,GAAGP,EAAQI,CAAS,EAAG,SAAAD,CAAA,CAAoB,CAC9E"}
@@ -4,3 +4,4 @@ const r = "container mx-auto sm:max-w-screen-sm md:max-w-screen-md lg:max-w-scre
4
4
  export {
5
5
  t as default
6
6
  };
7
+ //# sourceMappingURL=Container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container.js","sources":["../../src/elements/Container.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCN = 'container mx-auto sm:max-w-screen-sm md:max-w-screen-md lg:max-w-screen-lg xl:max-w-screen-xl 2xl:max-w-screen-2xl px-4';\nconst Container = ({ as = 'div', children, className }) => {\n const Tag = as;\n return (_jsx(Tag, { className: cn(baseCN, className), children: children }));\n};\nexport default Container;\n"],"names":["baseCN","Container","as","children","className","_jsx","cn"],"mappings":";;AAeA,MAAMA,IAAS,2HACTC,IAAY,CAAC,EAAE,IAAAC,IAAK,OAAO,UAAAC,GAAU,WAAAC,QAE/BC,EADIH,GACM,EAAE,WAAWI,EAAGN,GAAQI,CAAS,GAAG,UAAAD,EAAA,CAAoB;"}
@@ -1 +1,2 @@
1
1
  "use strict";const i=require("react/jsx-runtime"),o=require("../../lib/utils.cjs"),a="divide-y divide-chrome-200 bg-background",s=({className:e,...t})=>i.jsx("tbody",{...t,className:o.cn(a,e)});s.displayName="DataTableBody";module.exports=s;
2
+ //# sourceMappingURL=Body.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Body.cjs","sources":["../../../src/elements/DataTable/Body.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { cn } from '@/lib/utils';\nconst baseCls = 'divide-y divide-chrome-200 bg-background';\nconst Body = ({ className, ...props }) => (_jsx(\"tbody\", { ...props, className: cn(baseCls, className) }));\nBody.displayName = 'DataTableBody';\nexport default Body;\n"],"names":["baseCls","Body","className","props","_jsx","cn"],"mappings":"mFAEMA,EAAU,2CACVC,EAAO,CAAC,CAAE,UAAAC,EAAW,GAAGC,KAAaC,EAAAA,IAAK,QAAS,CAAE,GAAGD,EAAO,UAAWE,EAAAA,GAAGL,EAASE,CAAS,EAAG,EACxGD,EAAK,YAAc"}
@@ -5,3 +5,4 @@ t.displayName = "DataTableBody";
5
5
  export {
6
6
  t as default
7
7
  };
8
+ //# sourceMappingURL=Body.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Body.js","sources":["../../../src/elements/DataTable/Body.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { cn } from '@/lib/utils';\nconst baseCls = 'divide-y divide-chrome-200 bg-background';\nconst Body = ({ className, ...props }) => (_jsx(\"tbody\", { ...props, className: cn(baseCls, className) }));\nBody.displayName = 'DataTableBody';\nexport default Body;\n"],"names":["baseCls","Body","className","props","_jsx","cn"],"mappings":";;AAEA,MAAMA,IAAU,4CACVC,IAAO,CAAC,EAAE,WAAAC,GAAW,GAAGC,QAAaC,EAAK,SAAS,EAAE,GAAGD,GAAO,WAAWE,EAAGL,GAASE,CAAS,GAAG;AACxGD,EAAK,cAAc;"}
@@ -1 +1,2 @@
1
1
  "use strict";const n=require("react/jsx-runtime"),p=require("react"),r=require("../../lib/utils.cjs"),c=require("./index.cjs"),x="whitespace-nowrap",i={xs:"px-2 py-1",sm:"px-2 py-1.5",md:"px-3 py-3.5",lg:"px-3 py-3.5",xl:"px-3 py-3.5"},e=({className:s,...t})=>{const{size:a}=p.useContext(c.Context);return n.jsx("td",{...t,className:r.cn(x,i[a],s)})};e.displayName="DataTableDataCell";module.exports=e;
2
+ //# sourceMappingURL=DataCell.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataCell.cjs","sources":["../../../src/elements/DataTable/DataCell.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as TableContext } from './index';\nconst baseCls = 'whitespace-nowrap';\nconst sizeCNMap = {\n xs: 'px-2 py-1',\n sm: 'px-2 py-1.5',\n md: 'px-3 py-3.5',\n lg: 'px-3 py-3.5',\n xl: 'px-3 py-3.5',\n};\nconst DataCell = ({ className, ...props }) => {\n const { size } = useContext(TableContext);\n return (_jsx(\"td\", { ...props, className: cn(baseCls, sizeCNMap[size], className) }));\n};\nDataCell.displayName = 'DataTableDataCell';\nexport default DataCell;\n"],"names":["baseCls","sizeCNMap","DataCell","className","props","size","useContext","TableContext","_jsx","cn"],"mappings":"+HAiBMA,EAAU,oBACVC,EAAY,CACd,GAAI,YACJ,GAAI,cACJ,GAAI,cACJ,GAAI,cACJ,GAAI,aACR,EACMC,EAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,KAAY,CAC1C,KAAM,CAAE,KAAAC,CAAA,EAASC,EAAA,WAAWC,EAAY,OAAA,EACxC,OAAQC,EAAK,IAAA,KAAM,CAAE,GAAGJ,EAAO,UAAWK,EAAAA,GAAGT,EAASC,EAAUI,CAAI,EAAGF,CAAS,CAAG,CAAA,CACvF,EACAD,EAAS,YAAc"}
@@ -16,3 +16,4 @@ x.displayName = "DataTableDataCell";
16
16
  export {
17
17
  x as default
18
18
  };
19
+ //# sourceMappingURL=DataCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataCell.js","sources":["../../../src/elements/DataTable/DataCell.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as TableContext } from './index';\nconst baseCls = 'whitespace-nowrap';\nconst sizeCNMap = {\n xs: 'px-2 py-1',\n sm: 'px-2 py-1.5',\n md: 'px-3 py-3.5',\n lg: 'px-3 py-3.5',\n xl: 'px-3 py-3.5',\n};\nconst DataCell = ({ className, ...props }) => {\n const { size } = useContext(TableContext);\n return (_jsx(\"td\", { ...props, className: cn(baseCls, sizeCNMap[size], className) }));\n};\nDataCell.displayName = 'DataTableDataCell';\nexport default DataCell;\n"],"names":["baseCls","sizeCNMap","DataCell","className","props","size","useContext","TableContext","_jsx","cn"],"mappings":";;;;AAiBA,MAAMA,IAAU,qBACVC,IAAY;AAAA,EACd,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACR,GACMC,IAAW,CAAC,EAAE,WAAAC,GAAW,GAAGC,QAAY;AAC1C,QAAM,EAAE,MAAAC,EAAA,IAASC,EAAWC,CAAY;AACxC,SAAQC,EAAK,MAAM,EAAE,GAAGJ,GAAO,WAAWK,EAAGT,GAASC,EAAUI,CAAI,GAAGF,CAAS,EAAG,CAAA;AACvF;AACAD,EAAS,cAAc;"}
@@ -1 +1,2 @@
1
1
  "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),o=require("react"),d=require("../../lib/utils.cjs"),x="bg-chrome-50",n=()=>{},r=o.createContext({sortBy:null,onSortByChange:n}),s=({className:a,sortBy:c,onSortByChange:l,...u})=>{const e={sortBy:c||null,onSortByChange:l||n},i=o.useMemo(()=>e,[e]);return t.jsx(r.Provider,{value:i,children:t.jsx("thead",{...u,className:d.cn(x,a)})})};s.displayName="DataTableHeader";exports.Context=r;exports.default=s;
2
+ //# sourceMappingURL=Header.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Header.cjs","sources":["../../../src/elements/DataTable/Header.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { createContext, useMemo } from 'react';\nimport { cn } from '@/lib/utils';\nconst baseCls = 'bg-chrome-50';\nconst noop = () => { };\nexport const Context = createContext({\n sortBy: null,\n onSortByChange: noop,\n});\nconst Header = ({ className, sortBy, onSortByChange, ...props }) => {\n const value = {\n sortBy: sortBy || null,\n onSortByChange: onSortByChange || noop,\n };\n const context = useMemo(() => value, [value]);\n return (_jsx(Context.Provider, { value: context, children: _jsx(\"thead\", { ...props, className: cn(baseCls, className) }) }));\n};\nHeader.displayName = 'DataTableHeader';\nexport default Header;\n"],"names":["baseCls","noop","Context","createContext","Header","className","sortBy","onSortByChange","props","value","context","useMemo","_jsx","cn"],"mappings":"qMAgBMA,EAAU,eACVC,EAAO,IAAM,CAAE,EACRC,EAAUC,EAAAA,cAAc,CACjC,OAAQ,KACR,eAAgBF,CACpB,CAAC,EACKG,EAAS,CAAC,CAAE,UAAAC,EAAW,OAAAC,EAAQ,eAAAC,EAAgB,GAAGC,KAAY,CAChE,MAAMC,EAAQ,CACV,OAAQH,GAAU,KAClB,eAAgBC,GAAkBN,CAAA,EAEhCS,EAAUC,EAAAA,QAAQ,IAAMF,EAAO,CAACA,CAAK,CAAC,EAC5C,OAAQG,EAAAA,IAAKV,EAAQ,SAAU,CAAE,MAAOQ,EAAS,SAAUE,MAAK,QAAS,CAAE,GAAGJ,EAAO,UAAWK,EAAG,GAAAb,EAASK,CAAS,CAAE,CAAC,EAAG,CAC/H,EACAD,EAAO,YAAc"}
@@ -17,3 +17,4 @@ export {
17
17
  i as Context,
18
18
  p as default
19
19
  };
20
+ //# sourceMappingURL=Header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Header.js","sources":["../../../src/elements/DataTable/Header.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { createContext, useMemo } from 'react';\nimport { cn } from '@/lib/utils';\nconst baseCls = 'bg-chrome-50';\nconst noop = () => { };\nexport const Context = createContext({\n sortBy: null,\n onSortByChange: noop,\n});\nconst Header = ({ className, sortBy, onSortByChange, ...props }) => {\n const value = {\n sortBy: sortBy || null,\n onSortByChange: onSortByChange || noop,\n };\n const context = useMemo(() => value, [value]);\n return (_jsx(Context.Provider, { value: context, children: _jsx(\"thead\", { ...props, className: cn(baseCls, className) }) }));\n};\nHeader.displayName = 'DataTableHeader';\nexport default Header;\n"],"names":["baseCls","noop","Context","createContext","Header","className","sortBy","onSortByChange","props","value","context","useMemo","_jsx","cn"],"mappings":";;;AAgBA,MAAMA,IAAU,gBACVC,IAAO,MAAM;AAAE,GACRC,IAAUC,EAAc;AAAA,EACjC,QAAQ;AAAA,EACR,gBAAgBF;AACpB,CAAC,GACKG,IAAS,CAAC,EAAE,WAAAC,GAAW,QAAAC,GAAQ,gBAAAC,GAAgB,GAAGC,QAAY;AAChE,QAAMC,IAAQ;AAAA,IACV,QAAQH,KAAU;AAAA,IAClB,gBAAgBC,KAAkBN;AAAA,EAAA,GAEhCS,IAAUC,EAAQ,MAAMF,GAAO,CAACA,CAAK,CAAC;AAC5C,SAAQG,EAAKV,EAAQ,UAAU,EAAE,OAAOQ,GAAS,UAAUE,EAAK,SAAS,EAAE,GAAGJ,GAAO,WAAWK,EAAGb,GAASK,CAAS,EAAE,CAAC,GAAG;AAC/H;AACAD,EAAO,cAAc;"}
@@ -1 +1,2 @@
1
1
  "use strict";const s=require("react/jsx-runtime"),c=require("@heroicons/react/20/solid"),r=require("react"),l=require("../../lib/utils.cjs"),d=require("./index.cjs"),h=require("./Header.cjs"),f="text-left font-semibold text-chrome-900 select-none",N="ml-2 flex-none text-chrome-400 group-hover:visible group-focus:visible",b={xs:"px-2 py-1.5",sm:"px-2 py-1.5",md:"px-3 py-3.5",lg:"px-3 py-3.5",xl:"px-3 py-3.5"},a=({children:o,className:x,sortField:n,initialSortDirection:p="ASC",...C})=>{const{size:u}=r.useContext(d.Context),{sortBy:e,onSortByChange:m}=r.useContext(h.Context),i=e&&e.field===n?e.direction:p;return s.jsxs("th",{...C,className:l.cn(f,b[u],x),children:[n&&s.jsxs("span",{className:"group inline-flex cursor-pointer",onClick:()=>{let t=i;(e==null?void 0:e.field)===n&&(t=t==="ASC"?"DESC":"ASC"),m({field:n,direction:t})},children:[o,s.jsx("span",{className:l.cn(N,(e==null?void 0:e.field)===n?"visible":"invisible"),children:i==="ASC"?s.jsx(c.ChevronUpIcon,{className:"h-5 w-5"}):s.jsx(c.ChevronDownIcon,{className:"h-5 w-5"})})]}),!n&&o]})};a.displayName="DataTableHeaderCell";module.exports=a;
2
+ //# sourceMappingURL=HeaderCell.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderCell.cjs","sources":["../../../src/elements/DataTable/HeaderCell.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/20/solid';\nimport { useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as TableContext } from './index';\nimport { Context as HeaderContext } from './Header';\nconst baseCN = 'text-left font-semibold text-chrome-900 select-none';\nconst sortIconCN = 'ml-2 flex-none text-chrome-400 group-hover:visible group-focus:visible';\nconst sizeCNMap = {\n xs: 'px-2 py-1.5',\n sm: 'px-2 py-1.5',\n md: 'px-3 py-3.5',\n lg: 'px-3 py-3.5',\n xl: 'px-3 py-3.5',\n};\nconst HeaderCell = ({ children, className, sortField, initialSortDirection = 'ASC', ...props }) => {\n const { size } = useContext(TableContext);\n const { sortBy, onSortByChange } = useContext(HeaderContext);\n const sortDirection = sortBy && sortBy.field === sortField\n ? sortBy.direction : initialSortDirection;\n return (_jsxs(\"th\", { ...props, className: cn(baseCN, sizeCNMap[size], className), children: [sortField && (_jsxs(\"span\", { className: \"group inline-flex cursor-pointer\", onClick: () => {\n let newDirection = sortDirection;\n if (sortBy?.field === sortField)\n newDirection = newDirection === 'ASC' ? 'DESC' : 'ASC';\n onSortByChange({ field: sortField, direction: newDirection });\n }, children: [children, _jsx(\"span\", { className: cn(sortIconCN, sortBy?.field === sortField ? 'visible' : 'invisible'), children: sortDirection === 'ASC' ? _jsx(ChevronUpIcon, { className: \"h-5 w-5\" }) : _jsx(ChevronDownIcon, { className: \"h-5 w-5\" }) })] })), !sortField && children] }));\n};\nHeaderCell.displayName = 'DataTableHeaderCell';\nexport default HeaderCell;\n"],"names":["baseCN","sortIconCN","sizeCNMap","HeaderCell","children","className","sortField","initialSortDirection","props","size","useContext","TableContext","sortBy","onSortByChange","HeaderContext","sortDirection","_jsxs","cn","newDirection","_jsx","ChevronUpIcon","ChevronDownIcon"],"mappings":"gMAmBMA,EAAS,sDACTC,EAAa,yEACbC,EAAY,CACd,GAAI,cACJ,GAAI,cACJ,GAAI,cACJ,GAAI,cACJ,GAAI,aACR,EACMC,EAAa,CAAC,CAAE,SAAAC,EAAU,UAAAC,EAAW,UAAAC,EAAW,qBAAAC,EAAuB,MAAO,GAAGC,KAAY,CAC/F,KAAM,CAAE,KAAAC,CAAA,EAASC,EAAA,WAAWC,EAAY,OAAA,EAClC,CAAE,OAAAC,EAAQ,eAAAC,CAAe,EAAIH,aAAWI,EAAa,OAAA,EACrDC,EAAgBH,GAAUA,EAAO,QAAUN,EAC3CM,EAAO,UAAYL,EACjB,OAAAS,EAAA,KAAM,KAAM,CAAE,GAAGR,EAAO,UAAWS,EAAA,GAAGjB,EAAQE,EAAUO,CAAI,EAAGJ,CAAS,EAAG,SAAU,CAACC,GAAcU,EAAA,KAAM,OAAQ,CAAE,UAAW,mCAAoC,QAAS,IAAM,CAC1K,IAAIE,EAAeH,GACfH,GAAA,YAAAA,EAAQ,SAAUN,IACHY,EAAAA,IAAiB,MAAQ,OAAS,OACrDL,EAAe,CAAE,MAAOP,EAAW,UAAWY,CAAc,CAAA,CAAA,EAC7D,SAAU,CAACd,EAAUe,EAAAA,IAAK,OAAQ,CAAE,UAAWF,KAAGhB,GAAYW,GAAA,YAAAA,EAAQ,SAAUN,EAAY,UAAY,WAAW,EAAG,SAAUS,IAAkB,MAAQI,EAAK,IAAAC,EAAA,cAAe,CAAE,UAAW,UAAW,EAAID,MAAKE,EAAiB,gBAAA,CAAE,UAAW,SAAU,CAAC,EAAG,CAAC,EAAG,EAAI,CAACf,GAAaF,CAAQ,EAAG,CAC/S,EACAD,EAAW,YAAc"}
@@ -21,3 +21,4 @@ S.displayName = "DataTableHeaderCell";
21
21
  export {
22
22
  S as default
23
23
  };
24
+ //# sourceMappingURL=HeaderCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderCell.js","sources":["../../../src/elements/DataTable/HeaderCell.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/20/solid';\nimport { useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as TableContext } from './index';\nimport { Context as HeaderContext } from './Header';\nconst baseCN = 'text-left font-semibold text-chrome-900 select-none';\nconst sortIconCN = 'ml-2 flex-none text-chrome-400 group-hover:visible group-focus:visible';\nconst sizeCNMap = {\n xs: 'px-2 py-1.5',\n sm: 'px-2 py-1.5',\n md: 'px-3 py-3.5',\n lg: 'px-3 py-3.5',\n xl: 'px-3 py-3.5',\n};\nconst HeaderCell = ({ children, className, sortField, initialSortDirection = 'ASC', ...props }) => {\n const { size } = useContext(TableContext);\n const { sortBy, onSortByChange } = useContext(HeaderContext);\n const sortDirection = sortBy && sortBy.field === sortField\n ? sortBy.direction : initialSortDirection;\n return (_jsxs(\"th\", { ...props, className: cn(baseCN, sizeCNMap[size], className), children: [sortField && (_jsxs(\"span\", { className: \"group inline-flex cursor-pointer\", onClick: () => {\n let newDirection = sortDirection;\n if (sortBy?.field === sortField)\n newDirection = newDirection === 'ASC' ? 'DESC' : 'ASC';\n onSortByChange({ field: sortField, direction: newDirection });\n }, children: [children, _jsx(\"span\", { className: cn(sortIconCN, sortBy?.field === sortField ? 'visible' : 'invisible'), children: sortDirection === 'ASC' ? _jsx(ChevronUpIcon, { className: \"h-5 w-5\" }) : _jsx(ChevronDownIcon, { className: \"h-5 w-5\" }) })] })), !sortField && children] }));\n};\nHeaderCell.displayName = 'DataTableHeaderCell';\nexport default HeaderCell;\n"],"names":["baseCN","sortIconCN","sizeCNMap","HeaderCell","children","className","sortField","initialSortDirection","props","size","useContext","TableContext","sortBy","onSortByChange","HeaderContext","sortDirection","_jsxs","cn","newDirection","_jsx","ChevronUpIcon","ChevronDownIcon"],"mappings":";;;;;;AAmBA,MAAMA,IAAS,uDACTC,IAAa,0EACbC,IAAY;AAAA,EACd,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACR,GACMC,IAAa,CAAC,EAAE,UAAAC,GAAU,WAAAC,GAAW,WAAAC,GAAW,sBAAAC,IAAuB,OAAO,GAAGC,QAAY;AAC/F,QAAM,EAAE,MAAAC,EAAA,IAASC,EAAWC,CAAY,GAClC,EAAE,QAAAC,GAAQ,gBAAAC,EAAe,IAAIH,EAAWI,CAAa,GACrDC,IAAgBH,KAAUA,EAAO,UAAUN,IAC3CM,EAAO,YAAYL;AACjB,SAAAS,EAAM,MAAM,EAAE,GAAGR,GAAO,WAAWS,EAAGjB,GAAQE,EAAUO,CAAI,GAAGJ,CAAS,GAAG,UAAU,CAACC,KAAcU,EAAM,QAAQ,EAAE,WAAW,oCAAoC,SAAS,MAAM;AAC1K,QAAIE,IAAeH;AACnB,KAAIH,KAAA,gBAAAA,EAAQ,WAAUN,MACHY,IAAAA,MAAiB,QAAQ,SAAS,QACrDL,EAAe,EAAE,OAAOP,GAAW,WAAWY,EAAc,CAAA;AAAA,EAAA,GAC7D,UAAU,CAACd,GAAUe,EAAK,QAAQ,EAAE,WAAWF,EAAGhB,IAAYW,KAAA,gBAAAA,EAAQ,WAAUN,IAAY,YAAY,WAAW,GAAG,UAAUS,MAAkB,QAAQI,EAAKC,GAAe,EAAE,WAAW,WAAW,IAAID,EAAKE,GAAiB,EAAE,WAAW,UAAU,CAAC,GAAG,CAAC,GAAG,GAAI,CAACf,KAAaF,CAAQ,GAAG;AAC/S;AACAD,EAAW,cAAc;"}
@@ -1 +1,2 @@
1
1
  "use strict";const e=require("react/jsx-runtime"),s=t=>e.jsx("tr",{...t});s.displayName="DataTableRow";module.exports=s;
2
+ //# sourceMappingURL=Row.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Row.cjs","sources":["../../../src/elements/DataTable/Row.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nconst Row = (props) => (_jsx(\"tr\", { ...props }));\nRow.displayName = 'DataTableRow';\nexport default Row;\n"],"names":["Row","props","_jsx"],"mappings":"kDACMA,EAAOC,GAAWC,EAAAA,IAAK,KAAM,CAAE,GAAGD,EAAO,EAC/CD,EAAI,YAAc"}
@@ -4,3 +4,4 @@ t.displayName = "DataTableRow";
4
4
  export {
5
5
  t as default
6
6
  };
7
+ //# sourceMappingURL=Row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Row.js","sources":["../../../src/elements/DataTable/Row.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nconst Row = (props) => (_jsx(\"tr\", { ...props }));\nRow.displayName = 'DataTableRow';\nexport default Row;\n"],"names":["Row","props","_jsx"],"mappings":";AACM,MAAAA,IAAM,CAACC,MAAWC,EAAK,MAAM,EAAE,GAAGD,GAAO;AAC/CD,EAAI,cAAc;"}
@@ -1 +1,2 @@
1
1
  "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),a=require("react"),r=require("../../lib/utils.cjs"),d=require("./Body.cjs"),u=require("./DataCell.cjs"),x=require("./Header.cjs"),m=require("./HeaderCell.cjs"),b=require("./Row.cjs"),o=a.createContext({size:"md"}),v="overflow-hidden shadow ring-1 ring-black ring-opacity-5 rounded-lg",g={xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-base"},n=({className:l,children:c,size:e="md"})=>{const s={size:e},i=a.useMemo(()=>s,[s]);return t.jsx(o.Provider,{value:i,children:t.jsx("div",{className:r.cn(v,l),children:t.jsx("table",{className:r.cn("min-w-full divide-y divide-chrome-300",e&&g[e]),children:c})})})};n.displayName="DataTable";const q=Object.assign(n,{Body:d,DataCell:u,Header:x.default,HeaderCell:m,Row:b});exports.Context=o;exports.default=q;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/elements/DataTable/index.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { createContext, useMemo } from 'react';\nimport { cn } from '@/lib/utils';\nimport Body from './Body';\nimport DataCell from './DataCell';\nimport Header from './Header';\nimport HeaderCell from './HeaderCell';\nimport Row from './Row';\nexport const Context = createContext({\n size: 'md',\n});\nconst baseCls = 'overflow-hidden shadow ring-1 ring-black ring-opacity-5 rounded-lg';\nconst sizeCNMap = {\n xs: 'text-xs',\n sm: 'text-sm',\n md: 'text-sm',\n lg: 'text-base',\n xl: 'text-base',\n};\nconst DataTable = ({ className, children, size = 'md', }) => {\n const value = { size };\n const context = useMemo(() => value, [value]);\n return (_jsx(Context.Provider, { value: context, children: _jsx(\"div\", { className: cn(baseCls, className), children: _jsx(\"table\", { className: cn('min-w-full divide-y divide-chrome-300', size && sizeCNMap[size]), children: children }) }) }));\n};\nDataTable.displayName = 'DataTable';\nconst DataTableExport = Object.assign(DataTable, {\n Body,\n DataCell,\n Header,\n HeaderCell,\n Row,\n});\nexport default DataTableExport;\n"],"names":["Context","createContext","baseCls","sizeCNMap","DataTable","className","children","size","value","context","useMemo","_jsx","cn","DataTableExport","Body","DataCell","Header","HeaderCell","Row"],"mappings":"wUAqBaA,EAAUC,EAAAA,cAAc,CACjC,KAAM,IACV,CAAC,EACKC,EAAU,qEACVC,EAAY,CACd,GAAI,UACJ,GAAI,UACJ,GAAI,UACJ,GAAI,YACJ,GAAI,WACR,EACMC,EAAY,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,KAAAC,EAAO,QAAY,CACnD,MAAAC,EAAQ,CAAE,KAAAD,GACVE,EAAUC,EAAAA,QAAQ,IAAMF,EAAO,CAACA,CAAK,CAAC,EAC5C,OAAQG,EAAK,IAAAX,EAAQ,SAAU,CAAE,MAAOS,EAAS,SAAUE,EAAK,IAAA,MAAO,CAAE,UAAWC,EAAAA,GAAGV,EAASG,CAAS,EAAG,SAAUM,EAAAA,IAAK,QAAS,CAAE,UAAWC,EAAG,GAAA,wCAAyCL,GAAQJ,EAAUI,CAAI,CAAC,EAAG,SAAAD,CAAoB,CAAA,CAAG,CAAA,CAAG,CAAA,CACrP,EACAF,EAAU,YAAc,YAClB,MAAAS,EAAkB,OAAO,OAAOT,EAAW,CAC7C,KAAAU,EACA,SAAAC,EAAA,OACAC,EAAA,QACA,WAAAC,EACA,IAAAC,CACJ,CAAC"}
@@ -30,3 +30,4 @@ export {
30
30
  b as Context,
31
31
  j as default
32
32
  };
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/elements/DataTable/index.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { createContext, useMemo } from 'react';\nimport { cn } from '@/lib/utils';\nimport Body from './Body';\nimport DataCell from './DataCell';\nimport Header from './Header';\nimport HeaderCell from './HeaderCell';\nimport Row from './Row';\nexport const Context = createContext({\n size: 'md',\n});\nconst baseCls = 'overflow-hidden shadow ring-1 ring-black ring-opacity-5 rounded-lg';\nconst sizeCNMap = {\n xs: 'text-xs',\n sm: 'text-sm',\n md: 'text-sm',\n lg: 'text-base',\n xl: 'text-base',\n};\nconst DataTable = ({ className, children, size = 'md', }) => {\n const value = { size };\n const context = useMemo(() => value, [value]);\n return (_jsx(Context.Provider, { value: context, children: _jsx(\"div\", { className: cn(baseCls, className), children: _jsx(\"table\", { className: cn('min-w-full divide-y divide-chrome-300', size && sizeCNMap[size]), children: children }) }) }));\n};\nDataTable.displayName = 'DataTable';\nconst DataTableExport = Object.assign(DataTable, {\n Body,\n DataCell,\n Header,\n HeaderCell,\n Row,\n});\nexport default DataTableExport;\n"],"names":["Context","createContext","baseCls","sizeCNMap","DataTable","className","children","size","value","context","useMemo","_jsx","cn","DataTableExport","Body","DataCell","Header","HeaderCell","Row"],"mappings":";;;;;;;;AAqBO,MAAMA,IAAUC,EAAc;AAAA,EACjC,MAAM;AACV,CAAC,GACKC,IAAU,sEACVC,IAAY;AAAA,EACd,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACR,GACMC,IAAY,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,MAAAC,IAAO,WAAY;AACnD,QAAAC,IAAQ,EAAE,MAAAD,KACVE,IAAUC,EAAQ,MAAMF,GAAO,CAACA,CAAK,CAAC;AAC5C,SAAQG,EAAKX,EAAQ,UAAU,EAAE,OAAOS,GAAS,UAAUE,EAAK,OAAO,EAAE,WAAWC,EAAGV,GAASG,CAAS,GAAG,UAAUM,EAAK,SAAS,EAAE,WAAWC,EAAG,yCAAyCL,KAAQJ,EAAUI,CAAI,CAAC,GAAG,UAAAD,EAAoB,CAAA,EAAG,CAAA,EAAG,CAAA;AACrP;AACAF,EAAU,cAAc;AAClB,MAAAS,IAAkB,OAAO,OAAOT,GAAW;AAAA,EAC7C,MAAAU;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,YAAAC;AAAA,EACA,KAAAC;AACJ,CAAC;"}
@@ -1 +1,2 @@
1
1
  "use strict";const s=require("react/jsx-runtime"),c=require("react"),n=require("../lib/utils.cjs"),i=require("./FormCheck.cjs"),u=require("./FormControl.cjs"),m=require("./FormFeedback.cjs"),F=require("./FormFieldset.cjs"),a=require("./FormGroup.cjs"),l=require("./FormLabel.cjs"),q=require("./FormOption.cjs"),p=require("./FormSelect.cjs"),d="space-y-8",e=c.forwardRef(({className:r,...o},t)=>s.jsx("form",{...o,ref:t,className:n.cn(d,r)}));e.displayName="Form";const b=Object.assign(e,{Check:i,Control:u,Group:a.default,Feedback:m,Fieldset:F,Label:l,Option:q,Select:p});module.exports=b;
2
+ //# sourceMappingURL=Form.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Form.cjs","sources":["../../src/elements/Form.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nimport FormCheck from './FormCheck';\nimport FormControl from './FormControl';\nimport FormFeedback from './FormFeedback';\nimport FormFieldset from './FormFieldset';\nimport FormGroup from './FormGroup';\nimport FormLabel from './FormLabel';\nimport FormOption from './FormOption';\nimport FormSelect from './FormSelect';\nconst baseCls = 'space-y-8';\nconst Form = forwardRef(({ className, ...props }, ref) => (_jsx(\"form\", { ...props, ref: ref, className: cn(baseCls, className) })));\nForm.displayName = 'Form';\nconst FormExport = Object.assign(Form, {\n Check: FormCheck,\n Control: FormControl,\n Group: FormGroup,\n Feedback: FormFeedback,\n Fieldset: FormFieldset,\n Label: FormLabel,\n Option: FormOption,\n Select: FormSelect,\n});\nexport default FormExport;\n"],"names":["baseCls","Form","forwardRef","className","props","ref","_jsx","cn","FormExport","FormCheck","FormControl","FormGroup","FormFeedback","FormFieldset","FormLabel","FormOption","FormSelect"],"mappings":"qVAwBMA,EAAU,YACVC,EAAOC,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,GAASC,IAASC,MAAK,OAAQ,CAAE,GAAGF,EAAO,IAAAC,EAAU,UAAWE,EAAAA,GAAGP,EAASG,CAAS,CAAG,CAAA,CAAE,EACnIF,EAAK,YAAc,OACb,MAAAO,EAAa,OAAO,OAAOP,EAAM,CACnC,MAAOQ,EACP,QAASC,EACT,MAAOC,EAAA,QACP,SAAUC,EACV,SAAUC,EACV,MAAOC,EACP,OAAQC,EACR,OAAQC,CACZ,CAAC"}
@@ -24,3 +24,4 @@ const N = Object.assign(o, {
24
24
  export {
25
25
  N as default
26
26
  };
27
+ //# sourceMappingURL=Form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Form.js","sources":["../../src/elements/Form.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nimport FormCheck from './FormCheck';\nimport FormControl from './FormControl';\nimport FormFeedback from './FormFeedback';\nimport FormFieldset from './FormFieldset';\nimport FormGroup from './FormGroup';\nimport FormLabel from './FormLabel';\nimport FormOption from './FormOption';\nimport FormSelect from './FormSelect';\nconst baseCls = 'space-y-8';\nconst Form = forwardRef(({ className, ...props }, ref) => (_jsx(\"form\", { ...props, ref: ref, className: cn(baseCls, className) })));\nForm.displayName = 'Form';\nconst FormExport = Object.assign(Form, {\n Check: FormCheck,\n Control: FormControl,\n Group: FormGroup,\n Feedback: FormFeedback,\n Fieldset: FormFieldset,\n Label: FormLabel,\n Option: FormOption,\n Select: FormSelect,\n});\nexport default FormExport;\n"],"names":["baseCls","Form","forwardRef","className","props","ref","_jsx","cn","FormExport","FormCheck","FormControl","FormGroup","FormFeedback","FormFieldset","FormLabel","FormOption","FormSelect"],"mappings":";;;;;;;;;;;AAwBA,MAAMA,IAAU,aACVC,IAAOC,EAAW,CAAC,EAAE,WAAAC,GAAW,GAAGC,KAASC,MAASC,EAAK,QAAQ,EAAE,GAAGF,GAAO,KAAAC,GAAU,WAAWE,EAAGP,GAASG,CAAS,EAAG,CAAA,CAAE;AACnIF,EAAK,cAAc;AACb,MAAAO,IAAa,OAAO,OAAOP,GAAM;AAAA,EACnC,OAAOQ;AAAA,EACP,SAASC;AAAAA,EACT,OAAOC;AAAA,EACP,UAAUC;AAAA,EACV,UAAUC;AAAA,EACV,OAAOC;AAAA,EACP,QAAQC;AAAA,EACR,QAAQC;AACZ,CAAC;"}
@@ -1 +1,2 @@
1
1
  "use strict";const e=require("react/jsx-runtime"),u=require("react"),l=require("../lib/utils.cjs"),m="flex items-center",d="h-4 w-4 text-primary-600 rounded border-input bg-background ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:opacity-50",f="ml-2 block text-sm text-chrome-900",t=u.forwardRef(({as:c="input",className:o,id:s,label:r,...n},i)=>{const a=c;return e.jsxs("div",{className:l.cn(m,o),children:[e.jsx(a,{...n,ref:i,id:s,type:"checkbox",className:d}),r&&e.jsx("label",{htmlFor:s,className:f,children:r})]})});t.displayName="FormCheck";module.exports=t;
2
+ //# sourceMappingURL=FormCheck.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormCheck.cjs","sources":["../../src/elements/FormCheck.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst wrapperBaseCls = 'flex items-center';\nconst inputBaseCls = 'h-4 w-4 text-primary-600 rounded border-input bg-background ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:opacity-50';\nconst labelBaseCls = 'ml-2 block text-sm text-chrome-900';\nconst FormCheck = forwardRef(({ as = 'input', className, id, label, ...props }, ref) => {\n const Tag = as;\n return (_jsxs(\"div\", { className: cn(wrapperBaseCls, className), children: [_jsx(Tag, { ...props, ref: ref, id: id, type: \"checkbox\", className: inputBaseCls }), label && (_jsx(\"label\", { htmlFor: id, className: labelBaseCls, children: label }))] }));\n});\nFormCheck.displayName = 'FormCheck';\nexport default FormCheck;\n"],"names":["wrapperBaseCls","inputBaseCls","labelBaseCls","FormCheck","forwardRef","as","className","id","label","props","ref","Tag","_jsxs","cn","_jsx"],"mappings":"mGAgBMA,EAAiB,oBACjBC,EAAe,gMACfC,EAAe,qCACfC,EAAYC,EAAA,WAAW,CAAC,CAAE,GAAAC,EAAK,QAAS,UAAAC,EAAW,GAAAC,EAAI,MAAAC,EAAO,GAAGC,CAAM,EAAGC,IAAQ,CACpF,MAAMC,EAAMN,EACZ,OAAQO,EAAAA,KAAM,MAAO,CAAE,UAAWC,EAAA,GAAGb,EAAgBM,CAAS,EAAG,SAAU,CAACQ,MAAKH,EAAK,CAAE,GAAGF,EAAO,IAAAC,EAAU,GAAAH,EAAQ,KAAM,WAAY,UAAWN,CAAc,CAAA,EAAGO,GAAUM,EAAAA,IAAK,QAAS,CAAE,QAASP,EAAI,UAAWL,EAAc,SAAUM,CAAO,CAAA,CAAE,EAAG,CAC5P,CAAC,EACDL,EAAU,YAAc"}
@@ -9,3 +9,4 @@ d.displayName = "FormCheck";
9
9
  export {
10
10
  d as default
11
11
  };
12
+ //# sourceMappingURL=FormCheck.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormCheck.js","sources":["../../src/elements/FormCheck.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst wrapperBaseCls = 'flex items-center';\nconst inputBaseCls = 'h-4 w-4 text-primary-600 rounded border-input bg-background ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:opacity-50';\nconst labelBaseCls = 'ml-2 block text-sm text-chrome-900';\nconst FormCheck = forwardRef(({ as = 'input', className, id, label, ...props }, ref) => {\n const Tag = as;\n return (_jsxs(\"div\", { className: cn(wrapperBaseCls, className), children: [_jsx(Tag, { ...props, ref: ref, id: id, type: \"checkbox\", className: inputBaseCls }), label && (_jsx(\"label\", { htmlFor: id, className: labelBaseCls, children: label }))] }));\n});\nFormCheck.displayName = 'FormCheck';\nexport default FormCheck;\n"],"names":["wrapperBaseCls","inputBaseCls","labelBaseCls","FormCheck","forwardRef","as","className","id","label","props","ref","Tag","_jsxs","cn","_jsx"],"mappings":";;;AAgBA,MAAMA,IAAiB,qBACjBC,IAAe,iMACfC,IAAe,sCACfC,IAAYC,EAAW,CAAC,EAAE,IAAAC,IAAK,SAAS,WAAAC,GAAW,IAAAC,GAAI,OAAAC,GAAO,GAAGC,EAAM,GAAGC,MAAQ;AACpF,QAAMC,IAAMN;AACZ,SAAQO,EAAM,OAAO,EAAE,WAAWC,EAAGb,GAAgBM,CAAS,GAAG,UAAU,CAACQ,EAAKH,GAAK,EAAE,GAAGF,GAAO,KAAAC,GAAU,IAAAH,GAAQ,MAAM,YAAY,WAAWN,EAAc,CAAA,GAAGO,KAAUM,EAAK,SAAS,EAAE,SAASP,GAAI,WAAWL,GAAc,UAAUM,EAAO,CAAA,CAAE,GAAG;AAC5P,CAAC;AACDL,EAAU,cAAc;"}
@@ -1 +1,2 @@
1
1
  "use strict";const d=require("react/jsx-runtime"),o=require("react"),l=require("../lib/utils.cjs"),a=require("./FormGroup.cjs"),f=require("./FormControlFeedback.cjs"),b="flex h-10 w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 file:border-0 file:bg-transparent file:text-sm file:font-medium",e=o.forwardRef(({as:r="input",className:t,id:n,...s},c)=>{const i=r,{controlId:u}=o.useContext(a.Context);return d.jsx(i,{...s,ref:c,id:n||u,className:l.cn(b,t)})});e.displayName="FormControl";const m=Object.assign(e,{Feedback:f});module.exports=m;
2
+ //# sourceMappingURL=FormControl.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormControl.cjs","sources":["../../src/elements/FormControl.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nimport FormControlFeedback from './FormControlFeedback';\nconst baseCls = 'flex h-10 w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 file:border-0 file:bg-transparent file:text-sm file:font-medium';\nconst FormControl = forwardRef(({ as = 'input', className, id, ...props }, ref) => {\n const Tag = as;\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(Tag, { ...props, ref: ref, id: id || controlId, className: cn(baseCls, className) }));\n});\nFormControl.displayName = 'FormControl';\nconst FormControlExport = Object.assign(FormControl, {\n Feedback: FormControlFeedback,\n});\nexport default FormControlExport;\n"],"names":["baseCls","FormControl","forwardRef","as","className","id","props","ref","Tag","controlId","useContext","FormGroupContext","_jsx","cn","FormControlExport","FormControlFeedback"],"mappings":"uKAkBMA,EAAU,+UACVC,EAAcC,EAAAA,WAAW,CAAC,CAAE,GAAAC,EAAK,QAAS,UAAAC,EAAW,GAAAC,EAAI,GAAGC,CAAM,EAAGC,IAAQ,CAC/E,MAAMC,EAAML,EACN,CAAE,UAAAM,CAAA,EAAcC,EAAA,WAAWC,EAAgB,OAAA,EACjD,OAAQC,EAAK,IAAAJ,EAAK,CAAE,GAAGF,EAAO,IAAAC,EAAU,GAAIF,GAAMI,EAAW,UAAWI,EAAA,GAAGb,EAASI,CAAS,CAAG,CAAA,CACpG,CAAC,EACDH,EAAY,YAAc,cACpB,MAAAa,EAAoB,OAAO,OAAOb,EAAa,CACjD,SAAUc,CACd,CAAC"}
@@ -14,3 +14,4 @@ const k = Object.assign(o, {
14
14
  export {
15
15
  k as default
16
16
  };
17
+ //# sourceMappingURL=FormControl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormControl.js","sources":["../../src/elements/FormControl.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nimport FormControlFeedback from './FormControlFeedback';\nconst baseCls = 'flex h-10 w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 file:border-0 file:bg-transparent file:text-sm file:font-medium';\nconst FormControl = forwardRef(({ as = 'input', className, id, ...props }, ref) => {\n const Tag = as;\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(Tag, { ...props, ref: ref, id: id || controlId, className: cn(baseCls, className) }));\n});\nFormControl.displayName = 'FormControl';\nconst FormControlExport = Object.assign(FormControl, {\n Feedback: FormControlFeedback,\n});\nexport default FormControlExport;\n"],"names":["baseCls","FormControl","forwardRef","as","className","id","props","ref","Tag","controlId","useContext","FormGroupContext","_jsx","cn","FormControlExport","FormControlFeedback"],"mappings":";;;;;AAkBA,MAAMA,IAAU,gVACVC,IAAcC,EAAW,CAAC,EAAE,IAAAC,IAAK,SAAS,WAAAC,GAAW,IAAAC,GAAI,GAAGC,EAAM,GAAGC,MAAQ;AAC/E,QAAMC,IAAML,GACN,EAAE,WAAAM,EAAA,IAAcC,EAAWC,CAAgB;AACjD,SAAQC,EAAKJ,GAAK,EAAE,GAAGF,GAAO,KAAAC,GAAU,IAAIF,KAAMI,GAAW,WAAWI,EAAGb,GAASI,CAAS,EAAG,CAAA;AACpG,CAAC;AACDH,EAAY,cAAc;AACpB,MAAAa,IAAoB,OAAO,OAAOb,GAAa;AAAA,EACjD,UAAUc;AACd,CAAC;"}
@@ -1 +1,2 @@
1
1
  "use strict";const n=require("react/jsx-runtime"),c=require("../lib/utils.cjs"),a="text-sm font-medium text-danger !-mb-6",e=({as:t="div",className:s,...o})=>{const r=t;return n.jsx(r,{...o,className:c.cn(a,s)})};e.displayName="FormControlFeedback";module.exports=e;
2
+ //# sourceMappingURL=FormControlFeedback.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormControlFeedback.cjs","sources":["../../src/elements/FormControlFeedback.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCls = 'text-sm font-medium text-danger !-mb-6';\nconst FormControlFeedback = ({ as = 'div', className, ...props }) => {\n const Tag = as;\n return (_jsx(Tag, { ...props, className: cn(baseCls, className) }));\n};\nFormControlFeedback.displayName = 'FormControlFeedback';\nexport default FormControlFeedback;\n"],"names":["baseCls","FormControlFeedback","as","className","props","Tag","_jsx","cn"],"mappings":"gFAeMA,EAAU,yCACVC,EAAsB,CAAC,CAAE,GAAAC,EAAK,MAAO,UAAAC,EAAW,GAAGC,KAAY,CACjE,MAAMC,EAAMH,EACJ,OAAAI,EAAA,IAAKD,EAAK,CAAE,GAAGD,EAAO,UAAWG,EAAAA,GAAGP,EAASG,CAAS,CAAA,CAAG,CACrE,EACAF,EAAoB,YAAc"}
@@ -5,3 +5,4 @@ s.displayName = "FormControlFeedback";
5
5
  export {
6
6
  s as default
7
7
  };
8
+ //# sourceMappingURL=FormControlFeedback.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormControlFeedback.js","sources":["../../src/elements/FormControlFeedback.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCls = 'text-sm font-medium text-danger !-mb-6';\nconst FormControlFeedback = ({ as = 'div', className, ...props }) => {\n const Tag = as;\n return (_jsx(Tag, { ...props, className: cn(baseCls, className) }));\n};\nFormControlFeedback.displayName = 'FormControlFeedback';\nexport default FormControlFeedback;\n"],"names":["baseCls","FormControlFeedback","as","className","props","_jsx","cn"],"mappings":";;AAeA,MAAMA,IAAU,0CACVC,IAAsB,CAAC,EAAE,IAAAC,IAAK,OAAO,WAAAC,GAAW,GAAGC,QAE7CC,EADIH,GACM,EAAE,GAAGE,GAAO,WAAWE,EAAGN,GAASG,CAAS,EAAA,CAAG;AAErEF,EAAoB,cAAc;"}
@@ -1 +1,2 @@
1
1
  "use strict";const c=require("react/jsx-runtime"),n=require("../lib/utils.cjs"),m="text-base font-medium text-danger !mt-0 !-mb-4",e=({as:s="div",className:t,...r})=>{const a=s;return c.jsx(a,{...r,className:n.cn(m,t)})};e.displayName="FormFeedback";module.exports=e;
2
+ //# sourceMappingURL=FormFeedback.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormFeedback.cjs","sources":["../../src/elements/FormFeedback.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCls = 'text-base font-medium text-danger !mt-0 !-mb-4';\nconst FormFeedback = ({ as = 'div', className, ...props }) => {\n const Tag = as;\n return (_jsx(Tag, { ...props, className: cn(baseCls, className) }));\n};\nFormFeedback.displayName = 'FormFeedback';\nexport default FormFeedback;\n"],"names":["baseCls","FormFeedback","as","className","props","Tag","_jsx","cn"],"mappings":"gFAeMA,EAAU,iDACVC,EAAe,CAAC,CAAE,GAAAC,EAAK,MAAO,UAAAC,EAAW,GAAGC,KAAY,CAC1D,MAAMC,EAAMH,EACJ,OAAAI,EAAA,IAAKD,EAAK,CAAE,GAAGD,EAAO,UAAWG,EAAAA,GAAGP,EAASG,CAAS,CAAA,CAAG,CACrE,EACAF,EAAa,YAAc"}
@@ -5,3 +5,4 @@ r.displayName = "FormFeedback";
5
5
  export {
6
6
  r as default
7
7
  };
8
+ //# sourceMappingURL=FormFeedback.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormFeedback.js","sources":["../../src/elements/FormFeedback.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCls = 'text-base font-medium text-danger !mt-0 !-mb-4';\nconst FormFeedback = ({ as = 'div', className, ...props }) => {\n const Tag = as;\n return (_jsx(Tag, { ...props, className: cn(baseCls, className) }));\n};\nFormFeedback.displayName = 'FormFeedback';\nexport default FormFeedback;\n"],"names":["baseCls","FormFeedback","as","className","props","_jsx","cn"],"mappings":";;AAeA,MAAMA,IAAU,kDACVC,IAAe,CAAC,EAAE,IAAAC,IAAK,OAAO,WAAAC,GAAW,GAAGC,QAEtCC,EADIH,GACM,EAAE,GAAGE,GAAO,WAAWE,EAAGN,GAASG,CAAS,EAAA,CAAG;AAErEF,EAAa,cAAc;"}
@@ -1 +1,2 @@
1
1
  "use strict";const c=require("react/jsx-runtime"),i=require("react"),o=require("../lib/utils.cjs"),a="space-y-8",e=i.forwardRef(({className:s,...t},r)=>c.jsx("fieldset",{...t,ref:r,className:o.cn(a,s)}));e.displayName="FormFieldset";module.exports=e;
2
+ //# sourceMappingURL=FormFieldset.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormFieldset.cjs","sources":["../../src/elements/FormFieldset.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst baseCls = 'space-y-8';\nconst FormFieldset = forwardRef(({ className, ...props }, ref) => (_jsx(\"fieldset\", { ...props, ref: ref, className: cn(baseCls, className) })));\nFormFieldset.displayName = 'FormFieldset';\nexport default FormFieldset;\n"],"names":["baseCls","FormFieldset","forwardRef","className","props","ref","_jsx","cn"],"mappings":"mGAgBMA,EAAU,YACVC,EAAeC,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,GAASC,IAASC,MAAK,WAAY,CAAE,GAAGF,EAAO,IAAAC,EAAU,UAAWE,KAAGP,EAASG,CAAS,CAAE,CAAC,CAAE,EAC/IF,EAAa,YAAc"}
@@ -6,3 +6,4 @@ f.displayName = "FormFieldset";
6
6
  export {
7
7
  f as default
8
8
  };
9
+ //# sourceMappingURL=FormFieldset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormFieldset.js","sources":["../../src/elements/FormFieldset.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst baseCls = 'space-y-8';\nconst FormFieldset = forwardRef(({ className, ...props }, ref) => (_jsx(\"fieldset\", { ...props, ref: ref, className: cn(baseCls, className) })));\nFormFieldset.displayName = 'FormFieldset';\nexport default FormFieldset;\n"],"names":["baseCls","FormFieldset","forwardRef","className","props","ref","_jsx","cn"],"mappings":";;;AAgBA,MAAMA,IAAU,aACVC,IAAeC,EAAW,CAAC,EAAE,WAAAC,GAAW,GAAGC,KAASC,MAASC,EAAK,YAAY,EAAE,GAAGF,GAAO,KAAAC,GAAU,WAAWE,EAAGP,GAASG,CAAS,EAAE,CAAC,CAAE;AAC/IF,EAAa,cAAc;"}
@@ -1 +1,2 @@
1
1
  "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),e=require("react"),i=require("../lib/utils.cjs"),s=e.createContext({}),l="space-y-1",o=e.forwardRef(({className:u,controlId:t,...n},c)=>{const a=e.useMemo(()=>({controlId:t}),[t]);return r.jsx(s.Provider,{value:a,children:r.jsx("div",{...n,ref:c,className:i.cn(l,u)})})});o.displayName="FormGroup";exports.Context=s;exports.default=o;
2
+ //# sourceMappingURL=FormGroup.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormGroup.cjs","sources":["../../src/elements/FormGroup.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { createContext, forwardRef, useMemo } from 'react';\nimport { cn } from '@/lib/utils';\nconst Context = createContext({}); // for passing `controlId`\nconst baseCls = 'space-y-1';\nconst FormGroup = forwardRef(({ className, controlId, ...props }, ref) => {\n const context = useMemo(() => ({ controlId }), [controlId]);\n return (_jsx(Context.Provider, { value: context, children: _jsx(\"div\", { ...props, ref: ref, className: cn(baseCls, className) }) }));\n});\nFormGroup.displayName = 'FormGroup';\nexport { Context };\nexport default FormGroup;\n"],"names":["Context","createContext","baseCls","FormGroup","forwardRef","className","controlId","props","ref","context","useMemo","_jsx","cn"],"mappings":"kMAgBMA,EAAUC,EAAc,cAAA,EAAE,EAC1BC,EAAU,YACVC,EAAYC,aAAW,CAAC,CAAE,UAAAC,EAAW,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAAQ,CAChE,MAAAC,EAAUC,EAAAA,QAAQ,KAAO,CAAE,UAAAJ,IAAc,CAACA,CAAS,CAAC,EAClD,OAAAK,EAAA,IAAKX,EAAQ,SAAU,CAAE,MAAOS,EAAS,SAAUE,EAAAA,IAAK,MAAO,CAAE,GAAGJ,EAAO,IAAAC,EAAU,UAAWI,EAAG,GAAAV,EAASG,CAAS,CAAE,CAAC,EAAG,CACvI,CAAC,EACDF,EAAU,YAAc"}
@@ -10,3 +10,4 @@ export {
10
10
  i as Context,
11
11
  u as default
12
12
  };
13
+ //# sourceMappingURL=FormGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormGroup.js","sources":["../../src/elements/FormGroup.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { createContext, forwardRef, useMemo } from 'react';\nimport { cn } from '@/lib/utils';\nconst Context = createContext({}); // for passing `controlId`\nconst baseCls = 'space-y-1';\nconst FormGroup = forwardRef(({ className, controlId, ...props }, ref) => {\n const context = useMemo(() => ({ controlId }), [controlId]);\n return (_jsx(Context.Provider, { value: context, children: _jsx(\"div\", { ...props, ref: ref, className: cn(baseCls, className) }) }));\n});\nFormGroup.displayName = 'FormGroup';\nexport { Context };\nexport default FormGroup;\n"],"names":["Context","createContext","baseCls","FormGroup","forwardRef","className","controlId","props","ref","context","useMemo","_jsx","cn"],"mappings":";;;AAgBM,MAAAA,IAAUC,EAAc,EAAE,GAC1BC,IAAU,aACVC,IAAYC,EAAW,CAAC,EAAE,WAAAC,GAAW,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAAQ;AAChE,QAAAC,IAAUC,EAAQ,OAAO,EAAE,WAAAJ,MAAc,CAACA,CAAS,CAAC;AAClD,SAAAK,EAAKX,EAAQ,UAAU,EAAE,OAAOS,GAAS,UAAUE,EAAK,OAAO,EAAE,GAAGJ,GAAO,KAAAC,GAAU,WAAWI,EAAGV,GAASG,CAAS,EAAE,CAAC,GAAG;AACvI,CAAC;AACDF,EAAU,cAAc;"}
@@ -1 +1,2 @@
1
1
  "use strict";const i=require("react/jsx-runtime"),e=require("react"),u=require("../lib/utils.cjs"),d=require("./FormGroup.cjs"),m="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t=e.forwardRef(({as:o="label",className:r,htmlFor:s,...n},a)=>{const c=o,{controlId:l}=e.useContext(d.Context);return i.jsx(c,{...n,ref:a,htmlFor:s||l,className:u.cn(m,r)})});t.displayName="FormLabel";module.exports=t;
2
+ //# sourceMappingURL=FormLabel.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormLabel.cjs","sources":["../../src/elements/FormLabel.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nconst baseCls = 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70';\nconst FormLabel = forwardRef(({ as = 'label', className, htmlFor, ...props }, ref) => {\n const Tag = as;\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(Tag, { ...props, ref: ref, htmlFor: htmlFor || controlId, className: cn(baseCls, className) }));\n});\nFormLabel.displayName = 'FormLabel';\nexport default FormLabel;\n"],"names":["baseCls","FormLabel","forwardRef","as","className","htmlFor","props","ref","Tag","controlId","useContext","FormGroupContext","_jsx","cn"],"mappings":"gIAiBMA,EAAU,6FACVC,EAAYC,EAAAA,WAAW,CAAC,CAAE,GAAAC,EAAK,QAAS,UAAAC,EAAW,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAAQ,CAClF,MAAMC,EAAML,EACN,CAAE,UAAAM,CAAA,EAAcC,EAAA,WAAWC,EAAgB,OAAA,EACjD,OAAQC,EAAK,IAAAJ,EAAK,CAAE,GAAGF,EAAO,IAAAC,EAAU,QAASF,GAAWI,EAAW,UAAWI,EAAA,GAAGb,EAASI,CAAS,CAAG,CAAA,CAC9G,CAAC,EACDH,EAAU,YAAc"}
@@ -10,3 +10,4 @@ f.displayName = "FormLabel";
10
10
  export {
11
11
  f as default
12
12
  };
13
+ //# sourceMappingURL=FormLabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormLabel.js","sources":["../../src/elements/FormLabel.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nconst baseCls = 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70';\nconst FormLabel = forwardRef(({ as = 'label', className, htmlFor, ...props }, ref) => {\n const Tag = as;\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(Tag, { ...props, ref: ref, htmlFor: htmlFor || controlId, className: cn(baseCls, className) }));\n});\nFormLabel.displayName = 'FormLabel';\nexport default FormLabel;\n"],"names":["baseCls","FormLabel","forwardRef","as","className","htmlFor","props","ref","Tag","controlId","useContext","FormGroupContext","_jsx","cn"],"mappings":";;;;AAiBA,MAAMA,IAAU,8FACVC,IAAYC,EAAW,CAAC,EAAE,IAAAC,IAAK,SAAS,WAAAC,GAAW,SAAAC,GAAS,GAAGC,EAAM,GAAGC,MAAQ;AAClF,QAAMC,IAAML,GACN,EAAE,WAAAM,EAAA,IAAcC,EAAWC,CAAgB;AACjD,SAAQC,EAAKJ,GAAK,EAAE,GAAGF,GAAO,KAAAC,GAAU,SAASF,KAAWI,GAAW,WAAWI,EAAGb,GAASI,CAAS,EAAG,CAAA;AAC9G,CAAC;AACDH,EAAU,cAAc;"}
@@ -1 +1,2 @@
1
1
  "use strict";const s=require("react/jsx-runtime"),i=require("react"),o=i.forwardRef(({className:r,...t},e)=>s.jsx("option",{...t,ref:e,className:r}));o.displayName="FormOption";module.exports=o;
2
+ //# sourceMappingURL=FormOption.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormOption.cjs","sources":["../../src/elements/FormOption.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nconst FormOption = forwardRef(({ className, ...props }, ref) => (_jsx(\"option\", { ...props, ref: ref, className: className })));\nFormOption.displayName = 'FormOption';\nexport default FormOption;\n"],"names":["FormOption","forwardRef","className","props","ref","_jsx"],"mappings":"qEAeMA,EAAaC,EAAAA,WAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAASC,EAAAA,IAAK,SAAU,CAAE,GAAGF,EAAO,IAAAC,EAAU,UAAAF,CAAsB,CAAA,CAAE,EAC9HF,EAAW,YAAc"}
@@ -5,3 +5,4 @@ i.displayName = "FormOption";
5
5
  export {
6
6
  i as default
7
7
  };
8
+ //# sourceMappingURL=FormOption.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormOption.js","sources":["../../src/elements/FormOption.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nconst FormOption = forwardRef(({ className, ...props }, ref) => (_jsx(\"option\", { ...props, ref: ref, className: className })));\nFormOption.displayName = 'FormOption';\nexport default FormOption;\n"],"names":["FormOption","forwardRef","className","props","ref","_jsx"],"mappings":";;AAeA,MAAMA,IAAaC,EAAW,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAASC,EAAK,UAAU,EAAE,GAAGF,GAAO,KAAAC,GAAU,WAAAF,EAAsB,CAAA,CAAE;AAC9HF,EAAW,cAAc;"}
@@ -1 +1,2 @@
1
1
  "use strict";const u=require("react/jsx-runtime"),e=require("react"),i=require("../lib/utils.cjs"),l=require("./FormGroup.cjs"),d="mt-1 block w-full h-10 rounded bg-background border border-input py-2 pl-3 pr-10 text-sm ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:opacity-50",r=e.forwardRef(({className:o,id:t,...s},n)=>{const{controlId:c}=e.useContext(l.Context);return u.jsx("select",{...s,ref:n,id:t||c,className:i.cn(d,o)})});r.displayName="FormSelect";module.exports=r;
2
+ //# sourceMappingURL=FormSelect.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormSelect.cjs","sources":["../../src/elements/FormSelect.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nconst baseCls = 'mt-1 block w-full h-10 rounded bg-background border border-input py-2 pl-3 pr-10 text-sm ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:opacity-50';\nconst FormSelect = forwardRef(({ className, id, ...props }, ref) => {\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(\"select\", { ...props, ref: ref, id: id || controlId, className: cn(baseCls, className) }));\n});\nFormSelect.displayName = 'FormSelect';\nexport default FormSelect;\n"],"names":["baseCls","FormSelect","forwardRef","className","id","props","ref","controlId","useContext","FormGroupContext","_jsx","cn"],"mappings":"gIAiBMA,EAAU,6NACVC,EAAaC,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAAC,EAAI,GAAGC,CAAM,EAAGC,IAAQ,CAChE,KAAM,CAAE,UAAAC,CAAA,EAAcC,EAAA,WAAWC,EAAgB,OAAA,EACjD,OAAQC,EAAK,IAAA,SAAU,CAAE,GAAGL,EAAO,IAAAC,EAAU,GAAIF,GAAMG,EAAW,UAAWI,EAAA,GAAGX,EAASG,CAAS,CAAG,CAAA,CACzG,CAAC,EACDF,EAAW,YAAc"}
@@ -10,3 +10,4 @@ l.displayName = "FormSelect";
10
10
  export {
11
11
  l as default
12
12
  };
13
+ //# sourceMappingURL=FormSelect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormSelect.js","sources":["../../src/elements/FormSelect.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nconst baseCls = 'mt-1 block w-full h-10 rounded bg-background border border-input py-2 pl-3 pr-10 text-sm ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:opacity-50';\nconst FormSelect = forwardRef(({ className, id, ...props }, ref) => {\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(\"select\", { ...props, ref: ref, id: id || controlId, className: cn(baseCls, className) }));\n});\nFormSelect.displayName = 'FormSelect';\nexport default FormSelect;\n"],"names":["baseCls","FormSelect","forwardRef","className","id","props","ref","controlId","useContext","FormGroupContext","_jsx","cn"],"mappings":";;;;AAiBA,MAAMA,IAAU,8NACVC,IAAaC,EAAW,CAAC,EAAE,WAAAC,GAAW,IAAAC,GAAI,GAAGC,EAAM,GAAGC,MAAQ;AAChE,QAAM,EAAE,WAAAC,EAAA,IAAcC,EAAWC,CAAgB;AACjD,SAAQC,EAAK,UAAU,EAAE,GAAGL,GAAO,KAAAC,GAAU,IAAIF,KAAMG,GAAW,WAAWI,EAAGX,GAASG,CAAS,EAAG,CAAA;AACzG,CAAC;AACDF,EAAW,cAAc;"}
@@ -1 +1,2 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),d=require("@radix-ui/react-popover"),c=require("react"),l=require("../lib/utils.cjs");function p(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=p(d),u=o.Root,m=o.Anchor,f=o.Close,v=o.Trigger,i=c.forwardRef(({className:e,align:r="center",sideOffset:t=4,...n},s)=>a.jsx(o.Portal,{children:a.jsx(o.Content,{ref:s,align:r,sideOffset:t,className:l.cn("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));i.displayName=o.Content.displayName;exports.Popover=u;exports.PopoverAnchor=m;exports.PopoverClose=f;exports.PopoverContent=i;exports.PopoverTrigger=v;
2
+ //# sourceMappingURL=Popover.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popover.cjs","sources":["../../src/elements/Popover.tsx"],"sourcesContent":["'use client';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst Popover = PopoverPrimitive.Root;\nconst PopoverAnchor = PopoverPrimitive.Anchor;\nconst PopoverClose = PopoverPrimitive.Close;\nconst PopoverTrigger = PopoverPrimitive.Trigger;\nconst PopoverContent = forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { ref: ref, align: align, sideOffset: sideOffset, className: cn('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className), ...props }) })));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\nexport { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, };\n"],"names":["Popover","PopoverPrimitive","PopoverAnchor","PopoverClose","PopoverTrigger","PopoverContent","forwardRef","className","align","sideOffset","props","ref","_jsx","cn"],"mappings":"qeAKMA,EAAUC,EAAiB,KAC3BC,EAAgBD,EAAiB,OACjCE,EAAeF,EAAiB,MAChCG,EAAiBH,EAAiB,QAClCI,EAAiBC,EAAAA,WAAW,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,CAAM,EAAGC,IAASC,EAAAA,IAAKX,EAAiB,OAAQ,CAAE,SAAUW,EAAA,IAAKX,EAAiB,QAAS,CAAE,IAAAU,EAAU,MAAAH,EAAc,WAAAC,EAAwB,UAAWI,EAAAA,GAAG,6aAA8aN,CAAS,EAAG,GAAGG,CAAO,CAAA,CAAG,CAAA,CAAE,EACzrBL,EAAe,YAAcJ,EAAiB,QAAQ"}
@@ -11,3 +11,4 @@ export {
11
11
  m as PopoverContent,
12
12
  P as PopoverTrigger
13
13
  };
14
+ //# sourceMappingURL=Popover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popover.js","sources":["../../src/elements/Popover.tsx"],"sourcesContent":["'use client';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst Popover = PopoverPrimitive.Root;\nconst PopoverAnchor = PopoverPrimitive.Anchor;\nconst PopoverClose = PopoverPrimitive.Close;\nconst PopoverTrigger = PopoverPrimitive.Trigger;\nconst PopoverContent = forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { ref: ref, align: align, sideOffset: sideOffset, className: cn('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className), ...props }) })));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\nexport { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, };\n"],"names":["Popover","PopoverPrimitive","PopoverAnchor","PopoverClose","PopoverTrigger","PopoverContent","forwardRef","className","align","sideOffset","props","ref","_jsx","cn"],"mappings":";;;;AAKA,MAAMA,IAAUC,EAAiB,MAC3BC,IAAgBD,EAAiB,QACjCE,IAAeF,EAAiB,OAChCG,IAAiBH,EAAiB,SAClCI,IAAiBC,EAAW,CAAC,EAAE,WAAAC,GAAW,OAAAC,IAAQ,UAAU,YAAAC,IAAa,GAAG,GAAGC,EAAM,GAAGC,MAASC,EAAKX,EAAiB,QAAQ,EAAE,UAAUW,EAAKX,EAAiB,SAAS,EAAE,KAAAU,GAAU,OAAAH,GAAc,YAAAC,GAAwB,WAAWI,EAAG,8aAA8aN,CAAS,GAAG,GAAGG,EAAO,CAAA,EAAG,CAAA,CAAE;AACzrBL,EAAe,cAAcJ,EAAiB,QAAQ;"}
@@ -1 +1,2 @@
1
1
  "use strict";const s=require("react/jsx-runtime"),r=require("../lib/utils.cjs"),C="animate-spin mr-2 text-chrome-200 fill-chrome-500",t={xs:"w-4 h-4",sm:"w-6 h-6",md:"w-8 h-8",lg:"w-10 h-10"},i=({className:n,size:e="md"})=>s.jsxs("div",{role:"status",children:[s.jsxs("svg",{"aria-hidden":"true",className:r.cn(C,e&&t[e],n),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),s.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),s.jsx("span",{className:"sr-only",children:"Loading..."})]});module.exports=i;
2
+ //# sourceMappingURL=Spinner.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Spinner.cjs","sources":["../../src/elements/Spinner.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCN = 'animate-spin mr-2 text-chrome-200 fill-chrome-500';\nconst sizeCNMap = {\n xs: 'w-4 h-4',\n sm: 'w-6 h-6',\n md: 'w-8 h-8',\n lg: 'w-10 h-10',\n};\nconst Spinner = ({ className, size = 'md' }) => (_jsxs(\"div\", { role: \"status\", children: [_jsxs(\"svg\", { \"aria-hidden\": \"true\", className: cn(baseCN, size && sizeCNMap[size], className), viewBox: \"0 0 100 101\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", children: [_jsx(\"path\", { d: \"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z\", fill: \"currentColor\" }), _jsx(\"path\", { d: \"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z\", fill: \"currentFill\" })] }), _jsx(\"span\", { className: \"sr-only\", children: \"Loading...\" })] }));\nexport default Spinner;\n"],"names":["baseCN","sizeCNMap","Spinner","className","size","_jsxs","cn","_jsx"],"mappings":"gFAeMA,EAAS,oDACTC,EAAY,CACd,GAAI,UACJ,GAAI,UACJ,GAAI,UACJ,GAAI,WACR,EACMC,EAAU,CAAC,CAAE,UAAAC,EAAW,KAAAC,EAAO,IAAA,IAAYC,EAAAA,KAAM,MAAO,CAAE,KAAM,SAAU,SAAU,CAACA,EAAAA,KAAM,MAAO,CAAE,cAAe,OAAQ,UAAWC,EAAA,GAAGN,EAAQI,GAAQH,EAAUG,CAAI,EAAGD,CAAS,EAAG,QAAS,cAAe,KAAM,OAAQ,MAAO,6BAA8B,SAAU,CAACI,EAAA,IAAK,OAAQ,CAAE,EAAG,+WAAgX,KAAM,cAAe,CAAC,EAAGA,EAAA,IAAK,OAAQ,CAAE,EAAG,glBAAilB,KAAM,aAAc,CAAC,CAAC,CAAA,CAAG,EAAGA,MAAK,OAAQ,CAAE,UAAW,UAAW,SAAU,YAAA,CAAc,CAAC,CAAG,CAAA"}
@@ -9,3 +9,4 @@ const n = "animate-spin mr-2 text-chrome-200 fill-chrome-500", t = {
9
9
  export {
10
10
  a as default
11
11
  };
12
+ //# sourceMappingURL=Spinner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Spinner.js","sources":["../../src/elements/Spinner.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCN = 'animate-spin mr-2 text-chrome-200 fill-chrome-500';\nconst sizeCNMap = {\n xs: 'w-4 h-4',\n sm: 'w-6 h-6',\n md: 'w-8 h-8',\n lg: 'w-10 h-10',\n};\nconst Spinner = ({ className, size = 'md' }) => (_jsxs(\"div\", { role: \"status\", children: [_jsxs(\"svg\", { \"aria-hidden\": \"true\", className: cn(baseCN, size && sizeCNMap[size], className), viewBox: \"0 0 100 101\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", children: [_jsx(\"path\", { d: \"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z\", fill: \"currentColor\" }), _jsx(\"path\", { d: \"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z\", fill: \"currentFill\" })] }), _jsx(\"span\", { className: \"sr-only\", children: \"Loading...\" })] }));\nexport default Spinner;\n"],"names":["baseCN","sizeCNMap","Spinner","className","size","_jsxs","cn","_jsx"],"mappings":";;AAeA,MAAMA,IAAS,qDACTC,IAAY;AAAA,EACd,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACR,GACMC,IAAU,CAAC,EAAE,WAAAC,GAAW,MAAAC,IAAO,KAAA,MAAYC,EAAM,OAAO,EAAE,MAAM,UAAU,UAAU,CAACA,EAAM,OAAO,EAAE,eAAe,QAAQ,WAAWC,EAAGN,GAAQI,KAAQH,EAAUG,CAAI,GAAGD,CAAS,GAAG,SAAS,eAAe,MAAM,QAAQ,OAAO,8BAA8B,UAAU,CAACI,EAAK,QAAQ,EAAE,GAAG,gXAAgX,MAAM,eAAe,CAAC,GAAGA,EAAK,QAAQ,EAAE,GAAG,ilBAAilB,MAAM,cAAc,CAAC,CAAC,EAAA,CAAG,GAAGA,EAAK,QAAQ,EAAE,WAAW,WAAW,UAAU,aAAA,CAAc,CAAC,EAAG,CAAA;"}
@@ -1 +1,2 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),f=require("@radix-ui/react-tabs"),r=require("react"),a=require("../lib/utils.cjs");function d(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return i.default=e,Object.freeze(i)}const s=d(f),b=s.Root,c=r.forwardRef(({className:e,...i},t)=>n.jsx(s.List,{ref:t,className:a.cn("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...i}));c.displayName=s.List.displayName;const u=r.forwardRef(({className:e,...i},t)=>n.jsx(s.Trigger,{ref:t,className:a.cn("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...i}));u.displayName=s.Trigger.displayName;const l=r.forwardRef(({className:e,...i},t)=>n.jsx(s.Content,{ref:t,className:a.cn("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...i}));l.displayName=s.Content.displayName;exports.Tabs=b;exports.TabsContent=l;exports.TabsList=c;exports.TabsTrigger=u;
2
+ //# sourceMappingURL=Tabs.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.cjs","sources":["../../src/elements/Tabs.tsx"],"sourcesContent":["'use client';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst Tabs = TabsPrimitive.Root;\nconst TabsList = forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.List, { ref: ref, className: cn('inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground', className), ...props })));\nTabsList.displayName = TabsPrimitive.List.displayName;\nconst TabsTrigger = forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.Trigger, { ref: ref, className: cn('inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm', className), ...props })));\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\nconst TabsContent = forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.Content, { ref: ref, className: cn('mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2', className), ...props })));\nTabsContent.displayName = TabsPrimitive.Content.displayName;\nexport { Tabs, TabsList, TabsTrigger, TabsContent, };\n"],"names":["Tabs","TabsPrimitive","TabsList","forwardRef","className","props","ref","_jsx","cn","TabsTrigger","TabsContent"],"mappings":"keAKMA,EAAOC,EAAc,KACrBC,EAAWC,EAAAA,WAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,GAASC,IAASC,EAAAA,IAAKN,EAAc,KAAM,CAAE,IAAAK,EAAU,UAAWE,KAAG,6FAA8FJ,CAAS,EAAG,GAAGC,CAAM,CAAC,CAAE,EACxOH,EAAS,YAAcD,EAAc,KAAK,YACpC,MAAAQ,EAAcN,EAAAA,WAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,GAASC,IAASC,EAAAA,IAAKN,EAAc,QAAS,CAAE,IAAAK,EAAU,UAAWE,KAAG,sYAAuYJ,CAAS,EAAG,GAAGC,CAAM,CAAC,CAAE,EACvhBI,EAAY,YAAcR,EAAc,QAAQ,YAC1C,MAAAS,EAAcP,EAAAA,WAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,GAASC,IAASC,EAAAA,IAAKN,EAAc,QAAS,CAAE,IAAAK,EAAU,UAAWE,KAAG,kIAAmIJ,CAAS,EAAG,GAAGC,CAAM,CAAC,CAAE,EACnRK,EAAY,YAAcT,EAAc,QAAQ"}
@@ -14,3 +14,4 @@ export {
14
14
  r as TabsList,
15
15
  f as TabsTrigger
16
16
  };
17
+ //# sourceMappingURL=Tabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.js","sources":["../../src/elements/Tabs.tsx"],"sourcesContent":["'use client';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst Tabs = TabsPrimitive.Root;\nconst TabsList = forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.List, { ref: ref, className: cn('inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground', className), ...props })));\nTabsList.displayName = TabsPrimitive.List.displayName;\nconst TabsTrigger = forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.Trigger, { ref: ref, className: cn('inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm', className), ...props })));\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\nconst TabsContent = forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.Content, { ref: ref, className: cn('mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2', className), ...props })));\nTabsContent.displayName = TabsPrimitive.Content.displayName;\nexport { Tabs, TabsList, TabsTrigger, TabsContent, };\n"],"names":["Tabs","TabsPrimitive","TabsList","forwardRef","className","props","ref","_jsx","cn","TabsTrigger","TabsContent"],"mappings":";;;;AAKA,MAAMA,IAAOC,EAAc,MACrBC,IAAWC,EAAW,CAAC,EAAE,WAAAC,GAAW,GAAGC,KAASC,MAASC,EAAKN,EAAc,MAAM,EAAE,KAAAK,GAAU,WAAWE,EAAG,8FAA8FJ,CAAS,GAAG,GAAGC,EAAM,CAAC,CAAE;AACxOH,EAAS,cAAcD,EAAc,KAAK;AACpC,MAAAQ,IAAcN,EAAW,CAAC,EAAE,WAAAC,GAAW,GAAGC,KAASC,MAASC,EAAKN,EAAc,SAAS,EAAE,KAAAK,GAAU,WAAWE,EAAG,uYAAuYJ,CAAS,GAAG,GAAGC,EAAM,CAAC,CAAE;AACvhBI,EAAY,cAAcR,EAAc,QAAQ;AAC1C,MAAAS,IAAcP,EAAW,CAAC,EAAE,WAAAC,GAAW,GAAGC,KAASC,MAASC,EAAKN,EAAc,SAAS,EAAE,KAAAK,GAAU,WAAWE,EAAG,mIAAmIJ,CAAS,GAAG,GAAGC,EAAM,CAAC,CAAE;AACnRK,EAAY,cAAcT,EAAc,QAAQ;"}
package/dist/index.cjs CHANGED
@@ -1 +1,2 @@
1
1
  "use strict";
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index.js CHANGED
@@ -1 +1,2 @@
1
1
 
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +1,2 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("clsx"),t=require("tailwind-merge");function n(...e){return t.twMerge(r.clsx(e))}exports.cn=n;
2
+ //# sourceMappingURL=utils.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.cjs","sources":["../../src/lib/utils.ts"],"sourcesContent":["// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\nexport function cn(...inputs) {\n return twMerge(clsx(inputs));\n}\n"],"names":["cn","inputs","twMerge","clsx"],"mappings":"oIAeO,SAASA,KAAMC,EAAQ,CACnB,OAAAC,UAAQC,EAAAA,KAAKF,CAAM,CAAC,CAC/B"}
package/dist/lib/utils.js CHANGED
@@ -6,3 +6,4 @@ function n(...r) {
6
6
  export {
7
7
  n as cn
8
8
  };
9
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":["../../src/lib/utils.ts"],"sourcesContent":["// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\nexport function cn(...inputs) {\n return twMerge(clsx(inputs));\n}\n"],"names":["cn","inputs","twMerge","clsx"],"mappings":";;AAeO,SAASA,KAAMC,GAAQ;AACnB,SAAAC,EAAQC,EAAKF,CAAM,CAAC;AAC/B;"}
package/dist/plugin.cjs CHANGED
@@ -1 +1,2 @@
1
1
  "use strict";const u=require("@tailwindcss/forms"),t=require("tailwindcss/plugin"),e=require("tailwindcss/colors"),y=u();function r(o){const g=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,m=o.replace(g,(b,n,d,c)=>n+n+d+d+c+c),a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(m);return a?`${parseInt(a[1],16)} ${parseInt(a[2],16)} ${parseInt(a[3],16)}`:""}const h=t(o=>{y.handler(o);const{addBase:g}=o;g({":root":{"--accent":r(e.amber[200]),"--accent-foreground":r(e.gray[800]),"--background":r(e.white),"--border":r(e.gray[200]),"--danger":r(e.red[500]),"--danger-foreground":r(e.white),"--foreground":r(e.gray[900]),"--input":r(e.gray[300]),"--muted":r(e.gray[100]),"--muted-foreground":r(e.gray[800]),"--primary":r("#456EDE"),"--primary-foreground":r(e.white),"--ring":r(e.blue[200]),"--secondary":r(e.blue[100]),"--secondary-foreground":r(e.gray[800]),"--chrome-50":r(e.gray[50]),"--chrome-100":r(e.gray[100]),"--chrome-200":r(e.gray[200]),"--chrome-300":r(e.gray[300]),"--chrome-400":r(e.gray[400]),"--chrome-500":r(e.gray[500]),"--chrome-600":r(e.gray[600]),"--chrome-700":r(e.gray[700]),"--chrome-800":r(e.gray[800]),"--chrome-900":r(e.gray[900]),"--chrome-950":r(e.gray[950]),"--chrome-foreground":r(e.gray[800]),"--chrome-foreground-muted":r(e.gray[500]),"--chrome-foreground-subtle":r(e.gray[300]),"--chrome-divider":r(e.gray[300])},".dark":{"--accent":r(e.amber[200]),"--accent-foreground":r(e.gray[800]),"--background":r(e.neutral[800]),"--border":r(e.gray[200]),"--danger":r(e.red[500]),"--danger-foreground":r(e.white),"--foreground":r(e.white),"--input":r(e.gray[300]),"--muted":r(e.gray[100]),"--muted-foreground":r(e.gray[800]),"--primary":r(e.blue[500]),"--primary-foreground":r(e.white),"--ring":r(e.blue[200]),"--secondary":r(e.blue[100]),"--secondary-foreground":r(e.gray[800]),"--chrome-50":r(e.gray[950]),"--chrome-100":r(e.gray[900]),"--chrome-200":r(e.gray[800]),"--chrome-300":r(e.gray[700]),"--chrome-400":r(e.gray[600]),"--chrome-500":r(e.gray[500]),"--chrome-600":r(e.gray[400]),"--chrome-700":r(e.gray[300]),"--chrome-800":r(e.gray[200]),"--chrome-900":r(e.gray[100]),"--chrome-950":r(e.gray[50]),"--chrome-foreground":r(e.white),"--chrome-divider":r(e.gray[700])},"*":{"@apply border-border":""},body:{"@apply bg-background text-foreground":"","font-feature-settings":'"rlig" 1, "calt" 1',"@apply antialiased":""}})},{darkMode:"selector",theme:{screens:{sm:"576px",md:"768px",lg:"992px",xl:"1200px","2xl":"1400px"},extend:{maxWidth:{"max-w-screen-sm":"540px","max-w-screen-md":"720px","max-w-screen-lg":"960px","max-w-screen-xl":"1140px","max-w-screen-2xl":"1320px"},colors:{accent:{DEFAULT:"rgb(var(--accent))",foreground:"rgb(var(--accent-foreground))"},background:{DEFAULT:"rgb(var(--background))"},border:{DEFAULT:"rgb(var(--border))"},danger:{DEFAULT:"rgb(var(--danger))",foreground:"rgb(var(--danger-foreground))"},foreground:{DEFAULT:"rgb(var(--foreground))"},input:{DEFAULT:"rgb(var(--input))"},muted:{DEFAULT:"rgb(var(--muted))",foreground:"rgb(var(--muted-foreground))"},primary:{DEFAULT:"rgb(var(--primary))",foreground:"rgb(var(--primary-foreground))"},ring:{DEFAULT:"rgb(var(--ring))"},secondary:{DEFAULT:"rgb(var(--secondary))",foreground:"rgb(var(--secondary-foreground))"},chrome:{50:"rgb(var(--chrome-50))",100:"rgb(var(--chrome-100))",200:"rgb(var(--chrome-200))",300:"rgb(var(--chrome-300))",400:"rgb(var(--chrome-400))",500:"rgb(var(--chrome-500))",600:"rgb(var(--chrome-600))",700:"rgb(var(--chrome-700))",800:"rgb(var(--chrome-800))",900:"rgb(var(--chrome-900))",950:"rgb(var(--chrome-950))",foreground:"rgb(var(--chrome-foreground))",divider:"rgb(var(--chrome-divider))"}}}}});module.exports=h;
2
+ //# sourceMappingURL=plugin.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.cjs","sources":["../src/plugin.ts"],"sourcesContent":["// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport forms from '@tailwindcss/forms';\nimport plugin from 'tailwindcss/plugin';\nimport colors from 'tailwindcss/colors';\nconst formsPlugin = forms();\n// https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb\nfunction hexToRgb(hex) {\n // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n const hexFixed = hex.replace(shorthandRegex, (_, r, g, b) => (r + r + g + g + b + b));\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hexFixed);\n return result ? `${parseInt(result[1], 16)} ${parseInt(result[2], 16)} ${parseInt(result[3], 16)}` : '';\n}\n/**\n * Plugin\n */\nexport default plugin((apiArgs) => {\n // initialize forms plugin\n // @ts-expect-error Expected 0 arguments, but got 1.\n formsPlugin.handler(apiArgs);\n // add custom styles\n const { addBase } = apiArgs;\n addBase({\n ':root': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.white),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.gray[900]),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[800]),\n '--primary': hexToRgb('#456EDE'),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[200]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[50]),\n '--chrome-100': hexToRgb(colors.gray[100]),\n '--chrome-200': hexToRgb(colors.gray[200]),\n '--chrome-300': hexToRgb(colors.gray[300]),\n '--chrome-400': hexToRgb(colors.gray[400]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[600]),\n '--chrome-700': hexToRgb(colors.gray[700]),\n '--chrome-800': hexToRgb(colors.gray[800]),\n '--chrome-900': hexToRgb(colors.gray[900]),\n '--chrome-950': hexToRgb(colors.gray[950]),\n '--chrome-foreground': hexToRgb(colors.gray[800]),\n '--chrome-foreground-muted': hexToRgb(colors.gray[500]),\n '--chrome-foreground-subtle': hexToRgb(colors.gray[300]),\n '--chrome-divider': hexToRgb(colors.gray[300]),\n },\n '.dark': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.neutral[800]),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.white),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[800]),\n '--primary': hexToRgb(colors.blue[500]),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[200]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[950]),\n '--chrome-100': hexToRgb(colors.gray[900]),\n '--chrome-200': hexToRgb(colors.gray[800]),\n '--chrome-300': hexToRgb(colors.gray[700]),\n '--chrome-400': hexToRgb(colors.gray[600]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[400]),\n '--chrome-700': hexToRgb(colors.gray[300]),\n '--chrome-800': hexToRgb(colors.gray[200]),\n '--chrome-900': hexToRgb(colors.gray[100]),\n '--chrome-950': hexToRgb(colors.gray[50]),\n '--chrome-foreground': hexToRgb(colors.white),\n '--chrome-divider': hexToRgb(colors.gray[700]),\n },\n '*': {\n '@apply border-border': '',\n },\n body: {\n '@apply bg-background text-foreground': '',\n 'font-feature-settings': '\"rlig\" 1, \"calt\" 1',\n '@apply antialiased': '',\n },\n });\n}, {\n darkMode: 'selector',\n theme: {\n screens: {\n sm: '576px',\n md: '768px',\n lg: '992px',\n xl: '1200px',\n '2xl': '1400px',\n },\n extend: {\n maxWidth: {\n 'max-w-screen-sm': '540px',\n 'max-w-screen-md': '720px',\n 'max-w-screen-lg': '960px',\n 'max-w-screen-xl': '1140px',\n 'max-w-screen-2xl': '1320px',\n },\n colors: {\n accent: {\n DEFAULT: 'rgb(var(--accent))',\n foreground: 'rgb(var(--accent-foreground))',\n },\n background: {\n DEFAULT: 'rgb(var(--background))',\n },\n border: {\n DEFAULT: 'rgb(var(--border))',\n },\n danger: {\n DEFAULT: 'rgb(var(--danger))',\n foreground: 'rgb(var(--danger-foreground))',\n },\n foreground: {\n DEFAULT: 'rgb(var(--foreground))',\n },\n input: {\n DEFAULT: 'rgb(var(--input))',\n },\n muted: {\n DEFAULT: 'rgb(var(--muted))',\n foreground: 'rgb(var(--muted-foreground))',\n },\n primary: {\n DEFAULT: 'rgb(var(--primary))',\n foreground: 'rgb(var(--primary-foreground))',\n },\n ring: {\n DEFAULT: 'rgb(var(--ring))',\n },\n secondary: {\n DEFAULT: 'rgb(var(--secondary))',\n foreground: 'rgb(var(--secondary-foreground))',\n },\n chrome: {\n 50: 'rgb(var(--chrome-50))',\n 100: 'rgb(var(--chrome-100))',\n 200: 'rgb(var(--chrome-200))',\n 300: 'rgb(var(--chrome-300))',\n 400: 'rgb(var(--chrome-400))',\n 500: 'rgb(var(--chrome-500))',\n 600: 'rgb(var(--chrome-600))',\n 700: 'rgb(var(--chrome-700))',\n 800: 'rgb(var(--chrome-800))',\n 900: 'rgb(var(--chrome-900))',\n 950: 'rgb(var(--chrome-950))',\n foreground: 'rgb(var(--chrome-foreground))',\n divider: 'rgb(var(--chrome-divider))',\n },\n },\n },\n },\n});\n"],"names":["formsPlugin","forms","hexToRgb","hex","shorthandRegex","hexFixed","_","r","g","b","result","plugin","apiArgs","addBase","colors"],"mappings":"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"}
package/dist/plugin.js CHANGED
@@ -157,3 +157,4 @@ const s = t((o) => {
157
157
  export {
158
158
  s as default
159
159
  };
160
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","sources":["../src/plugin.ts"],"sourcesContent":["// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport forms from '@tailwindcss/forms';\nimport plugin from 'tailwindcss/plugin';\nimport colors from 'tailwindcss/colors';\nconst formsPlugin = forms();\n// https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb\nfunction hexToRgb(hex) {\n // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n const hexFixed = hex.replace(shorthandRegex, (_, r, g, b) => (r + r + g + g + b + b));\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hexFixed);\n return result ? `${parseInt(result[1], 16)} ${parseInt(result[2], 16)} ${parseInt(result[3], 16)}` : '';\n}\n/**\n * Plugin\n */\nexport default plugin((apiArgs) => {\n // initialize forms plugin\n // @ts-expect-error Expected 0 arguments, but got 1.\n formsPlugin.handler(apiArgs);\n // add custom styles\n const { addBase } = apiArgs;\n addBase({\n ':root': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.white),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.gray[900]),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[800]),\n '--primary': hexToRgb('#456EDE'),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[200]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[50]),\n '--chrome-100': hexToRgb(colors.gray[100]),\n '--chrome-200': hexToRgb(colors.gray[200]),\n '--chrome-300': hexToRgb(colors.gray[300]),\n '--chrome-400': hexToRgb(colors.gray[400]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[600]),\n '--chrome-700': hexToRgb(colors.gray[700]),\n '--chrome-800': hexToRgb(colors.gray[800]),\n '--chrome-900': hexToRgb(colors.gray[900]),\n '--chrome-950': hexToRgb(colors.gray[950]),\n '--chrome-foreground': hexToRgb(colors.gray[800]),\n '--chrome-foreground-muted': hexToRgb(colors.gray[500]),\n '--chrome-foreground-subtle': hexToRgb(colors.gray[300]),\n '--chrome-divider': hexToRgb(colors.gray[300]),\n },\n '.dark': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.neutral[800]),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.white),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[800]),\n '--primary': hexToRgb(colors.blue[500]),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[200]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[950]),\n '--chrome-100': hexToRgb(colors.gray[900]),\n '--chrome-200': hexToRgb(colors.gray[800]),\n '--chrome-300': hexToRgb(colors.gray[700]),\n '--chrome-400': hexToRgb(colors.gray[600]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[400]),\n '--chrome-700': hexToRgb(colors.gray[300]),\n '--chrome-800': hexToRgb(colors.gray[200]),\n '--chrome-900': hexToRgb(colors.gray[100]),\n '--chrome-950': hexToRgb(colors.gray[50]),\n '--chrome-foreground': hexToRgb(colors.white),\n '--chrome-divider': hexToRgb(colors.gray[700]),\n },\n '*': {\n '@apply border-border': '',\n },\n body: {\n '@apply bg-background text-foreground': '',\n 'font-feature-settings': '\"rlig\" 1, \"calt\" 1',\n '@apply antialiased': '',\n },\n });\n}, {\n darkMode: 'selector',\n theme: {\n screens: {\n sm: '576px',\n md: '768px',\n lg: '992px',\n xl: '1200px',\n '2xl': '1400px',\n },\n extend: {\n maxWidth: {\n 'max-w-screen-sm': '540px',\n 'max-w-screen-md': '720px',\n 'max-w-screen-lg': '960px',\n 'max-w-screen-xl': '1140px',\n 'max-w-screen-2xl': '1320px',\n },\n colors: {\n accent: {\n DEFAULT: 'rgb(var(--accent))',\n foreground: 'rgb(var(--accent-foreground))',\n },\n background: {\n DEFAULT: 'rgb(var(--background))',\n },\n border: {\n DEFAULT: 'rgb(var(--border))',\n },\n danger: {\n DEFAULT: 'rgb(var(--danger))',\n foreground: 'rgb(var(--danger-foreground))',\n },\n foreground: {\n DEFAULT: 'rgb(var(--foreground))',\n },\n input: {\n DEFAULT: 'rgb(var(--input))',\n },\n muted: {\n DEFAULT: 'rgb(var(--muted))',\n foreground: 'rgb(var(--muted-foreground))',\n },\n primary: {\n DEFAULT: 'rgb(var(--primary))',\n foreground: 'rgb(var(--primary-foreground))',\n },\n ring: {\n DEFAULT: 'rgb(var(--ring))',\n },\n secondary: {\n DEFAULT: 'rgb(var(--secondary))',\n foreground: 'rgb(var(--secondary-foreground))',\n },\n chrome: {\n 50: 'rgb(var(--chrome-50))',\n 100: 'rgb(var(--chrome-100))',\n 200: 'rgb(var(--chrome-200))',\n 300: 'rgb(var(--chrome-300))',\n 400: 'rgb(var(--chrome-400))',\n 500: 'rgb(var(--chrome-500))',\n 600: 'rgb(var(--chrome-600))',\n 700: 'rgb(var(--chrome-700))',\n 800: 'rgb(var(--chrome-800))',\n 900: 'rgb(var(--chrome-900))',\n 950: 'rgb(var(--chrome-950))',\n foreground: 'rgb(var(--chrome-foreground))',\n divider: 'rgb(var(--chrome-divider))',\n },\n },\n },\n },\n});\n"],"names":["formsPlugin","forms","hexToRgb","hex","shorthandRegex","hexFixed","_","r","g","b","result","plugin","apiArgs","addBase","colors"],"mappings":"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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubetail/ui",
3
- "version": "0.1.3-rc20",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "module": "./dist/index.js",
@@ -31,17 +31,17 @@
31
31
  "/dist"
32
32
  ],
33
33
  "devDependencies": {
34
- "@chromatic-com/storybook": "^1.2.25",
34
+ "@chromatic-com/storybook": "^1.3.4",
35
35
  "@rollup/plugin-typescript": "^11.1.6",
36
- "@storybook/addon-essentials": "^8.0.5",
37
- "@storybook/addon-interactions": "^8.0.5",
38
- "@storybook/addon-links": "^8.0.5",
39
- "@storybook/addon-onboarding": "^8.0.5",
40
- "@storybook/addon-themes": "^8.0.5",
41
- "@storybook/blocks": "^8.0.5",
42
- "@storybook/react": "^8.0.5",
43
- "@storybook/react-vite": "^8.0.5",
44
- "@storybook/test": "^8.0.5",
36
+ "@storybook/addon-essentials": "^8.0.10",
37
+ "@storybook/addon-interactions": "^8.0.10",
38
+ "@storybook/addon-links": "^8.0.10",
39
+ "@storybook/addon-onboarding": "^8.0.10",
40
+ "@storybook/addon-themes": "^8.0.10",
41
+ "@storybook/blocks": "^8.0.10",
42
+ "@storybook/react": "^8.0.10",
43
+ "@storybook/react-vite": "^8.0.10",
44
+ "@storybook/test": "^8.0.10",
45
45
  "@testing-library/jest-dom": "^6.4.2",
46
46
  "@testing-library/react": "^14.2.2",
47
47
  "@types/jest": "^29.5.12",
@@ -62,7 +62,7 @@
62
62
  "jsdom": "^24.0.0",
63
63
  "postcss": "^8.4.38",
64
64
  "rollup-plugin-auto-external": "^2.0.0",
65
- "storybook": "^8.0.5",
65
+ "storybook": "^8.0.10",
66
66
  "storybook-dark-mode": "^4.0.1",
67
67
  "typescript": "^5.2.2",
68
68
  "vite": "^5.2.0",