@kubetail/ui 0.2.0 → 0.3.0-rc2

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 (120) hide show
  1. package/dist/elements/Alert.cjs.map +1 -1
  2. package/dist/elements/Alert.d.ts +1 -1
  3. package/dist/elements/Alert.js +7 -1
  4. package/dist/elements/Alert.js.map +1 -1
  5. package/dist/elements/Alert.stories.d.ts +11 -0
  6. package/dist/elements/Button.cjs.map +1 -1
  7. package/dist/elements/Button.d.ts +6 -6
  8. package/dist/elements/Button.js +24 -21
  9. package/dist/elements/Button.js.map +1 -1
  10. package/dist/elements/Button.stories.d.ts +15 -0
  11. package/dist/elements/Calendar.cjs +1 -1
  12. package/dist/elements/Calendar.cjs.map +1 -1
  13. package/dist/elements/Calendar.d.ts +4 -5
  14. package/dist/elements/Calendar.js +21 -31
  15. package/dist/elements/Calendar.js.map +1 -1
  16. package/dist/elements/Calendar.stories.d.ts +10 -0
  17. package/dist/elements/Container.cjs.map +1 -1
  18. package/dist/elements/Container.d.ts +1 -1
  19. package/dist/elements/Container.js +1 -1
  20. package/dist/elements/Container.js.map +1 -1
  21. package/dist/elements/Container.stories.d.ts +14 -0
  22. package/dist/elements/DataTable/Body.cjs.map +1 -1
  23. package/dist/elements/DataTable/Body.d.ts +1 -1
  24. package/dist/elements/DataTable/Body.js +1 -1
  25. package/dist/elements/DataTable/Body.js.map +1 -1
  26. package/dist/elements/DataTable/DataCell.cjs.map +1 -1
  27. package/dist/elements/DataTable/DataCell.d.ts +1 -1
  28. package/dist/elements/DataTable/DataCell.js +1 -1
  29. package/dist/elements/DataTable/DataCell.js.map +1 -1
  30. package/dist/elements/DataTable/Header.cjs.map +1 -1
  31. package/dist/elements/DataTable/Header.d.ts +2 -2
  32. package/dist/elements/DataTable/Header.js +8 -5
  33. package/dist/elements/DataTable/Header.js.map +1 -1
  34. package/dist/elements/DataTable/HeaderCell.cjs.map +1 -1
  35. package/dist/elements/DataTable/HeaderCell.d.ts +1 -1
  36. package/dist/elements/DataTable/HeaderCell.js +20 -4
  37. package/dist/elements/DataTable/HeaderCell.js.map +1 -1
  38. package/dist/elements/DataTable/Row.cjs.map +1 -1
  39. package/dist/elements/DataTable/Row.d.ts +1 -1
  40. package/dist/elements/DataTable/Row.js +1 -1
  41. package/dist/elements/DataTable/Row.js.map +1 -1
  42. package/dist/elements/DataTable/index.cjs.map +1 -1
  43. package/dist/elements/DataTable/index.d.ts +9 -9
  44. package/dist/elements/DataTable/index.js +1 -1
  45. package/dist/elements/DataTable/index.js.map +1 -1
  46. package/dist/elements/DataTable/shared.cjs.map +1 -1
  47. package/dist/elements/DataTable/shared.d.ts +1 -1
  48. package/dist/elements/DataTable/shared.js.map +1 -1
  49. package/dist/elements/DataTable.stories.d.ts +11 -0
  50. package/dist/elements/DropdownMenu.cjs.map +1 -1
  51. package/dist/elements/DropdownMenu.d.ts +17 -17
  52. package/dist/elements/DropdownMenu.js +93 -9
  53. package/dist/elements/DropdownMenu.js.map +1 -1
  54. package/dist/elements/DropdownMenu.stories.d.ts +9 -0
  55. package/dist/elements/Form.cjs.map +1 -1
  56. package/dist/elements/Form.d.ts +10 -10
  57. package/dist/elements/Form.js +3 -1
  58. package/dist/elements/Form.js.map +1 -1
  59. package/dist/elements/Form.stories.d.ts +11 -0
  60. package/dist/elements/FormCheck.cjs +1 -1
  61. package/dist/elements/FormCheck.cjs.map +1 -1
  62. package/dist/elements/FormCheck.d.ts +2 -2
  63. package/dist/elements/FormCheck.js +9 -4
  64. package/dist/elements/FormCheck.js.map +1 -1
  65. package/dist/elements/FormCheck.stories.d.ts +14 -0
  66. package/dist/elements/FormControl.cjs.map +1 -1
  67. package/dist/elements/FormControl.d.ts +2 -2
  68. package/dist/elements/FormControl.js +6 -4
  69. package/dist/elements/FormControl.js.map +1 -1
  70. package/dist/elements/FormControlFeedback.cjs.map +1 -1
  71. package/dist/elements/FormControlFeedback.js +1 -1
  72. package/dist/elements/FormControlFeedback.js.map +1 -1
  73. package/dist/elements/FormFeedback.cjs.map +1 -1
  74. package/dist/elements/FormFeedback.js +1 -1
  75. package/dist/elements/FormFeedback.js.map +1 -1
  76. package/dist/elements/FormFieldset.cjs.map +1 -1
  77. package/dist/elements/FormFieldset.d.ts +1 -1
  78. package/dist/elements/FormFieldset.js +3 -1
  79. package/dist/elements/FormFieldset.js.map +1 -1
  80. package/dist/elements/FormGroup.cjs.map +1 -1
  81. package/dist/elements/FormGroup.d.ts +2 -2
  82. package/dist/elements/FormGroup.js +1 -1
  83. package/dist/elements/FormGroup.js.map +1 -1
  84. package/dist/elements/FormLabel.cjs.map +1 -1
  85. package/dist/elements/FormLabel.d.ts +1 -1
  86. package/dist/elements/FormLabel.js +6 -4
  87. package/dist/elements/FormLabel.js.map +1 -1
  88. package/dist/elements/FormOption.cjs.map +1 -1
  89. package/dist/elements/FormOption.d.ts +1 -1
  90. package/dist/elements/FormOption.js +3 -1
  91. package/dist/elements/FormOption.js.map +1 -1
  92. package/dist/elements/FormSelect.cjs.map +1 -1
  93. package/dist/elements/FormSelect.d.ts +1 -1
  94. package/dist/elements/FormSelect.js +1 -1
  95. package/dist/elements/FormSelect.js.map +1 -1
  96. package/dist/elements/Popover.cjs.map +1 -1
  97. package/dist/elements/Popover.d.ts +6 -6
  98. package/dist/elements/Popover.js +13 -1
  99. package/dist/elements/Popover.js.map +1 -1
  100. package/dist/elements/Popover.stories.d.ts +9 -0
  101. package/dist/elements/Spinner.cjs.map +1 -1
  102. package/dist/elements/Spinner.js +29 -1
  103. package/dist/elements/Spinner.js.map +1 -1
  104. package/dist/elements/Spinner.stories.d.ts +16 -0
  105. package/dist/elements/Tabs.cjs.map +1 -1
  106. package/dist/elements/Tabs.d.ts +5 -5
  107. package/dist/elements/Tabs.js +33 -3
  108. package/dist/elements/Tabs.js.map +1 -1
  109. package/dist/elements/Tabs.stories.d.ts +9 -0
  110. package/dist/index.css +106 -0
  111. package/dist/index.d.ts +1 -0
  112. package/dist/lib/utils.cjs.map +1 -1
  113. package/dist/lib/utils.d.ts +1 -1
  114. package/dist/lib/utils.js.map +1 -1
  115. package/package.json +92 -46
  116. package/dist/plugin.cjs +0 -2
  117. package/dist/plugin.cjs.map +0 -1
  118. package/dist/plugin.d.ts +0 -8
  119. package/dist/plugin.js +0 -168
  120. package/dist/plugin.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"FormSelect.js","sources":["../../src/elements/FormSelect.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 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-1 focus:ring-ring focus:ring-offset-0 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,GAAG;AACzG,CAAC;AACDF,EAAW,cAAc;"}
1
+ {"version":3,"file":"FormSelect.js","sources":["../../src/elements/FormSelect.tsx"],"sourcesContent":["// Copyright 2024-2025 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.\n\nimport { forwardRef, useContext } from 'react';\n\nimport { cn } from '@/lib/utils';\n\nimport { Context as FormGroupContext } from './FormGroup';\n\nconst baseCls =\n '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-1 focus:ring-ring focus:ring-offset-0 disabled:opacity-50';\n\ninterface Props extends React.ComponentPropsWithoutRef<'select'> {\n id?: string;\n}\n\nconst FormSelect = forwardRef(({ className, id, ...props }: Props, ref: React.ForwardedRef<HTMLSelectElement>) => {\n const { controlId } = useContext(FormGroupContext);\n\n return <select {...props} ref={ref} id={id || controlId} className={cn(baseCls, className)} />;\n});\n\nFormSelect.displayName = 'FormSelect';\n\nexport default FormSelect;\n"],"names":["baseCls","FormSelect","forwardRef","className","id","props","ref","controlId","useContext","FormGroupContext","jsx","cn"],"mappings":";;;;AAoBA,MAAMA,IACJ,8NAMIC,IAAaC,EAAW,CAAC,EAAE,WAAAC,GAAW,IAAAC,GAAI,GAAGC,EAAA,GAAgBC,MAA+C;AAChH,QAAM,EAAE,WAAAC,EAAA,IAAcC,EAAWC,CAAgB;AAEjD,SAAO,gBAAAC,EAAC,UAAA,EAAQ,GAAGL,GAAO,KAAAC,GAAU,IAAIF,KAAMG,GAAW,WAAWI,EAAGX,GAASG,CAAS,EAAA,CAAG;AAC9F,CAAC;AAEDF,EAAW,cAAc;"}
@@ -1 +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,EAAAA,IAAKX,EAAiB,QAAS,CAAE,IAAAU,EAAU,MAAAH,EAAc,WAAAC,EAAwB,UAAWI,EAAA,GAAG,6aAA8aN,CAAS,EAAG,GAAGG,CAAA,CAAO,CAAA,CAAG,CAAE,EACzrBL,EAAe,YAAcJ,EAAiB,QAAQ"}
1
+ {"version":3,"file":"Popover.cjs","sources":["../../src/elements/Popover.tsx"],"sourcesContent":["'use client';\n\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport { forwardRef } from 'react';\nimport type { ElementRef, ComponentPropsWithoutRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverAnchor = PopoverPrimitive.Anchor;\nconst PopoverClose = PopoverPrimitive.Close;\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\ntype T1 = ElementRef<typeof PopoverPrimitive.Content>;\ntype T2 = ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>;\n\nconst PopoverContent = forwardRef<T1, T2>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n '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',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger };\n"],"names":["Popover","PopoverPrimitive","PopoverAnchor","PopoverClose","PopoverTrigger","PopoverContent","forwardRef","className","align","sideOffset","props","ref","jsx","cn"],"mappings":"qeAQMA,EAAUC,EAAiB,KAE3BC,EAAgBD,EAAiB,OACjCE,EAAeF,EAAiB,MAChCG,EAAiBH,EAAiB,QAKlCI,EAAiBC,EAAAA,WAAmB,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,GAASC,IACpGC,EAAAA,IAACX,EAAiB,OAAjB,CACC,SAAAW,EAAAA,IAACX,EAAiB,QAAjB,CACC,IAAAU,EACA,MAAAH,EACA,WAAAC,EACA,UAAWI,EAAAA,GACT,6aACAN,CAAA,EAED,GAAGG,CAAA,CACN,EACF,CACD,EACDL,EAAe,YAAcJ,EAAiB,QAAQ"}
@@ -1,7 +1,7 @@
1
1
  import * as PopoverPrimitive from '@radix-ui/react-popover';
2
- declare const Popover: import("react").FC<PopoverPrimitive.PopoverProps>;
3
- declare const PopoverAnchor: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & import("react").RefAttributes<HTMLDivElement>>;
4
- declare const PopoverClose: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
5
- declare const PopoverTrigger: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
6
- declare const PopoverContent: import("react").ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
7
- export { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, };
2
+ declare const Popover: import('react').FC<PopoverPrimitive.PopoverProps>;
3
+ declare const PopoverAnchor: import('react').ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & import('react').RefAttributes<HTMLDivElement>>;
4
+ declare const PopoverClose: import('react').ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & import('react').RefAttributes<HTMLButtonElement>>;
5
+ declare const PopoverTrigger: import('react').ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
6
+ declare const PopoverContent: import('react').ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
7
+ export { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger };
@@ -2,7 +2,19 @@ import { jsx as t } from "react/jsx-runtime";
2
2
  import * as o from "@radix-ui/react-popover";
3
3
  import { forwardRef as i } from "react";
4
4
  import { cn as s } from "../lib/utils.js";
5
- const c = o.Root, v = o.Anchor, g = o.Close, P = o.Trigger, m = i(({ className: e, align: a = "center", sideOffset: r = 4, ...d }, n) => t(o.Portal, { children: t(o.Content, { ref: n, align: a, sideOffset: r, className: s("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), ...d }) }));
5
+ const c = o.Root, v = o.Anchor, g = o.Close, P = o.Trigger, m = i(({ className: e, align: a = "center", sideOffset: r = 4, ...d }, n) => /* @__PURE__ */ t(o.Portal, { children: /* @__PURE__ */ t(
6
+ o.Content,
7
+ {
8
+ ref: n,
9
+ align: a,
10
+ sideOffset: r,
11
+ className: s(
12
+ "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",
13
+ e
14
+ ),
15
+ ...d
16
+ }
17
+ ) }));
6
18
  m.displayName = o.Content.displayName;
7
19
  export {
8
20
  c as Popover,
@@ -1 +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,EAAA,CAAO,EAAA,CAAG,CAAE;AACzrBL,EAAe,cAAcJ,EAAiB,QAAQ;"}
1
+ {"version":3,"file":"Popover.js","sources":["../../src/elements/Popover.tsx"],"sourcesContent":["'use client';\n\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport { forwardRef } from 'react';\nimport type { ElementRef, ComponentPropsWithoutRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverAnchor = PopoverPrimitive.Anchor;\nconst PopoverClose = PopoverPrimitive.Close;\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\ntype T1 = ElementRef<typeof PopoverPrimitive.Content>;\ntype T2 = ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>;\n\nconst PopoverContent = forwardRef<T1, T2>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n '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',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger };\n"],"names":["Popover","PopoverPrimitive","PopoverAnchor","PopoverClose","PopoverTrigger","PopoverContent","forwardRef","className","align","sideOffset","props","ref","jsx","cn"],"mappings":";;;;AAQA,MAAMA,IAAUC,EAAiB,MAE3BC,IAAgBD,EAAiB,QACjCE,IAAeF,EAAiB,OAChCG,IAAiBH,EAAiB,SAKlCI,IAAiBC,EAAmB,CAAC,EAAE,WAAAC,GAAW,OAAAC,IAAQ,UAAU,YAAAC,IAAa,GAAG,GAAGC,KAASC,MACpG,gBAAAC,EAACX,EAAiB,QAAjB,EACC,UAAA,gBAAAW;AAAA,EAACX,EAAiB;AAAA,EAAjB;AAAA,IACC,KAAAU;AAAA,IACA,OAAAH;AAAA,IACA,YAAAC;AAAA,IACA,WAAWI;AAAA,MACT;AAAA,MACAN;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,EAAA;AACN,GACF,CACD;AACDL,EAAe,cAAcJ,EAAiB,QAAQ;"}
@@ -0,0 +1,9 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ tags: string[];
5
+ component: import('react').FC<import('@radix-ui/react-popover').PopoverProps>;
6
+ };
7
+ export default meta;
8
+ type Story = StoryObj<typeof meta>;
9
+ export declare const Default: Story;
@@ -1 +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-2025 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"}
1
+ {"version":3,"file":"Spinner.cjs","sources":["../../src/elements/Spinner.tsx"],"sourcesContent":["// Copyright 2024-2025 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.\n\nimport { cn } from '@/lib/utils';\n\nconst baseCN = 'animate-spin mr-2 text-chrome-200 fill-chrome-500';\n\ntype SpinnerSize = 'xs' | 'sm' | 'md' | 'lg';\n\nconst sizeCNMap: Record<SpinnerSize, string> = {\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};\n\ntype Props = {\n className?: string;\n size?: SpinnerSize;\n};\n\nconst Spinner = ({ className, size = 'md' }: Props) => (\n <div role=\"status\">\n <svg\n aria-hidden=\"true\"\n className={cn(baseCN, size && sizeCNMap[size], className)}\n viewBox=\"0 0 100 101\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n 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\"\n fill=\"currentColor\"\n />\n <path\n 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\"\n fill=\"currentFill\"\n />\n </svg>\n <span className=\"sr-only\">Loading...</span>\n </div>\n);\n\nexport default Spinner;\n"],"names":["baseCN","sizeCNMap","Spinner","className","size","jsxs","cn","jsx"],"mappings":"gFAgBMA,EAAS,oDAITC,EAAyC,CAC7C,GAAI,UACJ,GAAI,UACJ,GAAI,UACJ,GAAI,WACN,EAOMC,EAAU,CAAC,CAAE,UAAAC,EAAW,KAAAC,EAAO,QACnCC,EAAAA,KAAC,MAAA,CAAI,KAAK,SACR,SAAA,CAAAA,EAAAA,KAAC,MAAA,CACC,cAAY,OACZ,UAAWC,EAAAA,GAAGN,EAAQI,GAAQH,EAAUG,CAAI,EAAGD,CAAS,EACxD,QAAQ,cACR,KAAK,OACL,MAAM,6BAEN,SAAA,CAAAI,EAAAA,IAAC,OAAA,CACC,EAAE,+WACF,KAAK,cAAA,CAAA,EAEPA,EAAAA,IAAC,OAAA,CACC,EAAE,glBACF,KAAK,aAAA,CAAA,CACP,CAAA,CAAA,EAEFA,EAAAA,IAAC,OAAA,CAAK,UAAU,UAAU,SAAA,YAAA,CAAU,CAAA,CAAA,CACtC"}
@@ -5,7 +5,35 @@ const n = "animate-spin mr-2 text-chrome-200 fill-chrome-500", t = {
5
5
  sm: "w-6 h-6",
6
6
  md: "w-8 h-8",
7
7
  lg: "w-10 h-10"
8
- }, a = ({ className: l, size: r = "md" }) => s("div", { role: "status", children: [s("svg", { "aria-hidden": "true", className: e(n, r && t[r], l), viewBox: "0 0 100 101", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [C("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" }), C("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" })] }), C("span", { className: "sr-only", children: "Loading..." })] });
8
+ }, a = ({ className: l, size: r = "md" }) => /* @__PURE__ */ s("div", { role: "status", children: [
9
+ /* @__PURE__ */ s(
10
+ "svg",
11
+ {
12
+ "aria-hidden": "true",
13
+ className: e(n, r && t[r], l),
14
+ viewBox: "0 0 100 101",
15
+ fill: "none",
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ children: [
18
+ /* @__PURE__ */ C(
19
+ "path",
20
+ {
21
+ 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",
22
+ fill: "currentColor"
23
+ }
24
+ ),
25
+ /* @__PURE__ */ C(
26
+ "path",
27
+ {
28
+ 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",
29
+ fill: "currentFill"
30
+ }
31
+ )
32
+ ]
33
+ }
34
+ ),
35
+ /* @__PURE__ */ C("span", { className: "sr-only", children: "Loading..." })
36
+ ] });
9
37
  export {
10
38
  a as default
11
39
  };
@@ -1 +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-2025 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
+ {"version":3,"file":"Spinner.js","sources":["../../src/elements/Spinner.tsx"],"sourcesContent":["// Copyright 2024-2025 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.\n\nimport { cn } from '@/lib/utils';\n\nconst baseCN = 'animate-spin mr-2 text-chrome-200 fill-chrome-500';\n\ntype SpinnerSize = 'xs' | 'sm' | 'md' | 'lg';\n\nconst sizeCNMap: Record<SpinnerSize, string> = {\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};\n\ntype Props = {\n className?: string;\n size?: SpinnerSize;\n};\n\nconst Spinner = ({ className, size = 'md' }: Props) => (\n <div role=\"status\">\n <svg\n aria-hidden=\"true\"\n className={cn(baseCN, size && sizeCNMap[size], className)}\n viewBox=\"0 0 100 101\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n 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\"\n fill=\"currentColor\"\n />\n <path\n 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\"\n fill=\"currentFill\"\n />\n </svg>\n <span className=\"sr-only\">Loading...</span>\n </div>\n);\n\nexport default Spinner;\n"],"names":["baseCN","sizeCNMap","Spinner","className","size","jsxs","cn","jsx"],"mappings":";;AAgBA,MAAMA,IAAS,qDAITC,IAAyC;AAAA,EAC7C,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAOMC,IAAU,CAAC,EAAE,WAAAC,GAAW,MAAAC,IAAO,WACnC,gBAAAC,EAAC,OAAA,EAAI,MAAK,UACR,UAAA;AAAA,EAAA,gBAAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAY;AAAA,MACZ,WAAWC,EAAGN,GAAQI,KAAQH,EAAUG,CAAI,GAAGD,CAAS;AAAA,MACxD,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,OAAM;AAAA,MAEN,UAAA;AAAA,QAAA,gBAAAI;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,MAAK;AAAA,UAAA;AAAA,QAAA;AAAA,QAEP,gBAAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,MAAK;AAAA,UAAA;AAAA,QAAA;AAAA,MACP;AAAA,IAAA;AAAA,EAAA;AAAA,EAEF,gBAAAA,EAAC,QAAA,EAAK,WAAU,WAAU,UAAA,aAAA,CAAU;AAAA,EAAA,CACtC;"}
@@ -0,0 +1,16 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ tags: string[];
5
+ component: ({ className, size }: {
6
+ className?: string;
7
+ size?: "xs" | "sm" | "md" | "lg";
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
+ };
10
+ export default meta;
11
+ type Story = StoryObj<typeof meta>;
12
+ export declare const Default: Story;
13
+ export declare const ExtraSmall: Story;
14
+ export declare const Small: Story;
15
+ export declare const Medium: Story;
16
+ export declare const Large: Story;
@@ -1 +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,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAS,EAAAC,IAASC,MAAKN,EAAc,KAAM,CAAE,IAAAK,EAAU,UAAWE,EAAG,GAAA,6FAA8FJ,CAAS,EAAG,GAAGC,EAAO,CAAE,EACxOH,EAAS,YAAcD,EAAc,KAAK,YACpC,MAAAQ,EAAcN,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAS,EAAAC,IAASC,MAAKN,EAAc,QAAS,CAAE,IAAAK,EAAU,UAAWE,EAAG,GAAA,sYAAuYJ,CAAS,EAAG,GAAGC,EAAO,CAAE,EACvhBI,EAAY,YAAcR,EAAc,QAAQ,YAC1C,MAAAS,EAAcP,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAS,EAAAC,IAASC,MAAKN,EAAc,QAAS,CAAE,IAAAK,EAAU,UAAWE,EAAG,GAAA,kIAAmIJ,CAAS,EAAG,GAAGC,EAAO,CAAE,EACnRK,EAAY,YAAcT,EAAc,QAAQ"}
1
+ {"version":3,"file":"Tabs.cjs","sources":["../../src/elements/Tabs.tsx"],"sourcesContent":["'use client';\n\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport { forwardRef } from 'react';\nimport type { ElementRef, ComponentPropsWithoutRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\nconst Tabs = TabsPrimitive.Root;\n\ntype TA1 = ElementRef<typeof TabsPrimitive.List>;\ntype TA2 = ComponentPropsWithoutRef<typeof TabsPrimitive.List>;\n\nconst TabsList = forwardRef<TA1, TA2>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\n 'inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground',\n className,\n )}\n {...props}\n />\n));\nTabsList.displayName = TabsPrimitive.List.displayName;\n\ntype TB1 = ElementRef<typeof TabsPrimitive.Trigger>;\ntype TB2 = ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>;\n\nconst TabsTrigger = forwardRef<TB1, TB2>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n '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',\n className,\n )}\n {...props}\n />\n));\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\ntype TC1 = ElementRef<typeof TabsPrimitive.Content>;\ntype TC2 = ComponentPropsWithoutRef<typeof TabsPrimitive.Content>;\n\nconst TabsContent = forwardRef<TC1, TC2>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\n 'mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',\n className,\n )}\n {...props}\n />\n));\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent };\n"],"names":["Tabs","TabsPrimitive","TabsList","forwardRef","className","props","ref","jsx","cn","TabsTrigger","TabsContent"],"mappings":"keAQMA,EAAOC,EAAc,KAKrBC,EAAWC,EAAAA,WAAqB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC9DC,EAAAA,IAACN,EAAc,KAAd,CACC,IAAAK,EACA,UAAWE,EAAAA,GACT,6FACAJ,CAAA,EAED,GAAGC,CAAA,CACN,CACD,EACDH,EAAS,YAAcD,EAAc,KAAK,YAK1C,MAAMQ,EAAcN,EAAAA,WAAqB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IACjEC,EAAAA,IAACN,EAAc,QAAd,CACC,IAAAK,EACA,UAAWE,EAAAA,GACT,sYACAJ,CAAA,EAED,GAAGC,CAAA,CACN,CACD,EACDI,EAAY,YAAcR,EAAc,QAAQ,YAKhD,MAAMS,EAAcP,EAAAA,WAAqB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IACjEC,EAAAA,IAACN,EAAc,QAAd,CACC,IAAAK,EACA,UAAWE,EAAAA,GACT,kIACAJ,CAAA,EAED,GAAGC,CAAA,CACN,CACD,EACDK,EAAY,YAAcT,EAAc,QAAQ"}
@@ -1,6 +1,6 @@
1
1
  import * as TabsPrimitive from '@radix-ui/react-tabs';
2
- declare const Tabs: import("react").ForwardRefExoticComponent<TabsPrimitive.TabsProps & import("react").RefAttributes<HTMLDivElement>>;
3
- declare const TabsList: import("react").ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
4
- declare const TabsTrigger: import("react").ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
5
- declare const TabsContent: import("react").ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
- export { Tabs, TabsList, TabsTrigger, TabsContent, };
2
+ declare const Tabs: import('react').ForwardRefExoticComponent<TabsPrimitive.TabsProps & import('react').RefAttributes<HTMLDivElement>>;
3
+ declare const TabsList: import('react').ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
4
+ declare const TabsTrigger: import('react').ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
5
+ declare const TabsContent: import('react').ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
6
+ export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -2,11 +2,41 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import * as e from "@radix-ui/react-tabs";
3
3
  import { forwardRef as n } from "react";
4
4
  import { cn as a } from "../lib/utils.js";
5
- const g = e.Root, r = n(({ className: i, ...s }, t) => o(e.List, { ref: t, className: a("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", i), ...s }));
5
+ const g = e.Root, r = n(({ className: i, ...s }, t) => /* @__PURE__ */ o(
6
+ e.List,
7
+ {
8
+ ref: t,
9
+ className: a(
10
+ "inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",
11
+ i
12
+ ),
13
+ ...s
14
+ }
15
+ ));
6
16
  r.displayName = e.List.displayName;
7
- const f = n(({ className: i, ...s }, t) => o(e.Trigger, { ref: t, className: a("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", i), ...s }));
17
+ const f = n(({ className: i, ...s }, t) => /* @__PURE__ */ o(
18
+ e.Trigger,
19
+ {
20
+ ref: t,
21
+ className: a(
22
+ "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",
23
+ i
24
+ ),
25
+ ...s
26
+ }
27
+ ));
8
28
  f.displayName = e.Trigger.displayName;
9
- const m = n(({ className: i, ...s }, t) => o(e.Content, { ref: t, className: a("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", i), ...s }));
29
+ const m = n(({ className: i, ...s }, t) => /* @__PURE__ */ o(
30
+ e.Content,
31
+ {
32
+ ref: t,
33
+ className: a(
34
+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
35
+ i
36
+ ),
37
+ ...s
38
+ }
39
+ ));
10
40
  m.displayName = e.Content.displayName;
11
41
  export {
12
42
  g as Tabs,
@@ -1 +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,EAAS,GAAAC,MAASC,EAAKN,EAAc,MAAM,EAAE,KAAAK,GAAU,WAAWE,EAAG,8FAA8FJ,CAAS,GAAG,GAAGC,GAAO,CAAE;AACxOH,EAAS,cAAcD,EAAc,KAAK;AACpC,MAAAQ,IAAcN,EAAW,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAS,GAAAC,MAASC,EAAKN,EAAc,SAAS,EAAE,KAAAK,GAAU,WAAWE,EAAG,uYAAuYJ,CAAS,GAAG,GAAGC,GAAO,CAAE;AACvhBI,EAAY,cAAcR,EAAc,QAAQ;AAC1C,MAAAS,IAAcP,EAAW,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAS,GAAAC,MAASC,EAAKN,EAAc,SAAS,EAAE,KAAAK,GAAU,WAAWE,EAAG,mIAAmIJ,CAAS,GAAG,GAAGC,GAAO,CAAE;AACnRK,EAAY,cAAcT,EAAc,QAAQ;"}
1
+ {"version":3,"file":"Tabs.js","sources":["../../src/elements/Tabs.tsx"],"sourcesContent":["'use client';\n\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport { forwardRef } from 'react';\nimport type { ElementRef, ComponentPropsWithoutRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\nconst Tabs = TabsPrimitive.Root;\n\ntype TA1 = ElementRef<typeof TabsPrimitive.List>;\ntype TA2 = ComponentPropsWithoutRef<typeof TabsPrimitive.List>;\n\nconst TabsList = forwardRef<TA1, TA2>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\n 'inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground',\n className,\n )}\n {...props}\n />\n));\nTabsList.displayName = TabsPrimitive.List.displayName;\n\ntype TB1 = ElementRef<typeof TabsPrimitive.Trigger>;\ntype TB2 = ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>;\n\nconst TabsTrigger = forwardRef<TB1, TB2>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n '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',\n className,\n )}\n {...props}\n />\n));\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\ntype TC1 = ElementRef<typeof TabsPrimitive.Content>;\ntype TC2 = ComponentPropsWithoutRef<typeof TabsPrimitive.Content>;\n\nconst TabsContent = forwardRef<TC1, TC2>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\n 'mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',\n className,\n )}\n {...props}\n />\n));\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent };\n"],"names":["Tabs","TabsPrimitive","TabsList","forwardRef","className","props","ref","jsx","cn","TabsTrigger","TabsContent"],"mappings":";;;;AAQA,MAAMA,IAAOC,EAAc,MAKrBC,IAAWC,EAAqB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC9D,gBAAAC;AAAA,EAACN,EAAc;AAAA,EAAd;AAAA,IACC,KAAAK;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAJ;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAS,cAAcD,EAAc,KAAK;AAK1C,MAAMQ,IAAcN,EAAqB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACjE,gBAAAC;AAAA,EAACN,EAAc;AAAA,EAAd;AAAA,IACC,KAAAK;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAJ;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDI,EAAY,cAAcR,EAAc,QAAQ;AAKhD,MAAMS,IAAcP,EAAqB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACjE,gBAAAC;AAAA,EAACN,EAAc;AAAA,EAAd;AAAA,IACC,KAAAK;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAJ;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDK,EAAY,cAAcT,EAAc,QAAQ;"}
@@ -0,0 +1,9 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ tags: string[];
5
+ component: import('react').ForwardRefExoticComponent<import('@radix-ui/react-tabs').TabsProps & import('react').RefAttributes<HTMLDivElement>>;
6
+ };
7
+ export default meta;
8
+ type Story = StoryObj<typeof meta>;
9
+ export declare const Default: Story;
package/dist/index.css ADDED
@@ -0,0 +1,106 @@
1
+ @plugin "@tailwindcss/forms";
2
+
3
+ @theme {
4
+ --color-accent: var(--color-amber-200);
5
+ --color-accent-foreground: var(--color-gray-800);
6
+ --color-background: var(--color-white);
7
+ --color-border: var(--color-gray-200);
8
+ --color-danger: var(--color-red-500);
9
+ --color-danger-foreground: var(--color-white);
10
+ --color-foreground: var(--color-gray-900);
11
+ --color-input: var(--color-gray-300);
12
+ --color-muted: var(--color-gray-100);
13
+ --color-muted-foreground: var(--color-gray-400);
14
+ --color-popover: var(--color-white);
15
+ --color-popover-foreground: var(--color-gray-900);
16
+ --color-primary: rgb(69 110 222);
17
+ --color-primary-foreground: var(--color-white);
18
+ --color-ring: var(--color-blue-400);
19
+ --color-secondary: var(--color-blue-100);
20
+ --color-secondary-foreground: var(--color-gray-800);
21
+ --color-chrome-50: var(--color-gray-50);
22
+ --color-chrome-100: var(--color-gray-100);
23
+ --color-chrome-200: var(--color-gray-200);
24
+ --color-chrome-300: var(--color-gray-300);
25
+ --color-chrome-400: var(--color-gray-400);
26
+ --color-chrome-500: var(--color-gray-500);
27
+ --color-chrome-600: var(--color-gray-600);
28
+ --color-chrome-700: var(--color-gray-700);
29
+ --color-chrome-800: var(--color-gray-800);
30
+ --color-chrome-900: var(--color-gray-900);
31
+ --color-chrome-950: var(--color-gray-950);
32
+ --color-chrome-foreground: var(--color-gray-800);
33
+ --color-chrome-foreground-muted: var(--color-gray-500);
34
+ --color-chrome-foreground-subtle: var(--color-gray-300);
35
+ --color-chrome-divider: var(--color-gray-300);
36
+
37
+ --breakpoint-sm: 576px;
38
+ --breakpoint-md: 768px;
39
+ --breakooint-lg: 992px;
40
+ --breakpoint-xl: 1200px;
41
+ --breakpoint-2xl: 1400px;
42
+ }
43
+
44
+ @layer base {
45
+ :root[class~="dark"] {
46
+ --color-accent: var(--color-amber-200);
47
+ --color-accent-foreground: var(--color-gray-800);
48
+ --color-background: var(--color-neutral-800);
49
+ --color-border: var(--color-gray-200);
50
+ --color-danger: var(--color-red-500);
51
+ --color-danger-foreground: var(--color-white);
52
+ --color-foreground: var(--color-white);
53
+ --color-input: var(--color-gray-300);
54
+ --color-muted: var(--color-gray-100);
55
+ --color-muted-foreground: var(--color-gray-600);
56
+ --color-popover: var(--color-neutral-800);
57
+ --color-popover-foreground: var(--color-white);
58
+ --color-primary: var(--color-blue-500);
59
+ --color-primary-foreground: var(--color-white);
60
+ --color-ring: var(--color-blue-600);
61
+ --color-secondary: var(--color-blue-100);
62
+ --color-secondary-foreground: var(--color-gray-800);
63
+ --color-chrome-50: var(--color-gray-950);
64
+ --color-chrome-100: var(--color-gray-900);
65
+ --color-chrome-200: var(--color-gray-800);
66
+ --color-chrome-300: var(--color-gray-700);
67
+ --color-chrome-400: var(--color-gray-600);
68
+ --color-chrome-500: var(--color-gray-500);
69
+ --color-chrome-600: var(--color-gray-400);
70
+ --color-chrome-700: var(--color-gray-300);
71
+ --color-chrome-800: var(--color-gray-200);
72
+ --color-chrome-900: var(--color-gray-100);
73
+ --color-chrome-950: var(--color-gray-50);
74
+ --color-chrome-foreground: var(--color.white);
75
+ --color-chrome-divider: var(--color-gray-700);
76
+ }
77
+ }
78
+
79
+ @layer utilities {
80
+ .max-w-screen-sm { max-width: 540px; }
81
+ .max-w-screen-md { max-width: 720px; }
82
+ .max-w-screen-lg { max-width: 960px; }
83
+ .max-w-screen-xl { max-width: 1140px; }
84
+ .max-w-screen-2xl { max-width: 1320px; }
85
+ }
86
+
87
+ /* Default styles */
88
+ @layer base {
89
+ html {
90
+ @apply bg-background;
91
+ @apply text-foreground;
92
+ }
93
+
94
+ body {
95
+ @apply antialiased;
96
+ font-feature-settings: "rlig" 1, "calt" 1;
97
+ }
98
+
99
+ .border {
100
+ @apply border-border;
101
+ }
102
+
103
+ .ring {
104
+ @apply ring-ring;
105
+ }
106
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1 @@
1
- {"version":3,"file":"utils.cjs","sources":["../../src/lib/utils.ts"],"sourcesContent":["// Copyright 2024-2025 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,EAAA,QAAQC,OAAKF,CAAM,CAAC,CAC/B"}
1
+ {"version":3,"file":"utils.cjs","sources":["../../src/lib/utils.ts"],"sourcesContent":["// Copyright 2024-2025 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.\n\nimport { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"names":["cn","inputs","twMerge","clsx"],"mappings":"oIAiBO,SAASA,KAAMC,EAAsB,CAC1C,OAAOC,EAAAA,QAAQC,OAAKF,CAAM,CAAC,CAC7B"}
@@ -1,2 +1,2 @@
1
- import { type ClassValue } from 'clsx';
1
+ import { ClassValue } from 'clsx';
2
2
  export declare function cn(...inputs: ClassValue[]): string;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../../src/lib/utils.ts"],"sourcesContent":["// Copyright 2024-2025 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;"}
1
+ {"version":3,"file":"utils.js","sources":["../../src/lib/utils.ts"],"sourcesContent":["// Copyright 2024-2025 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.\n\nimport { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"names":["cn","inputs","twMerge","clsx"],"mappings":";;AAiBO,SAASA,KAAMC,GAAsB;AAC1C,SAAOC,EAAQC,EAAKF,CAAM,CAAC;AAC7B;"}