@incognia/cosmik 0.40.2 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/README.md +19 -7
  2. package/dist/Alert/index.d.ts +2 -2
  3. package/dist/Alert/index.d.ts.map +1 -1
  4. package/dist/AlertDialog/index.d.ts +5 -5
  5. package/dist/AlertDialog/index.d.ts.map +1 -1
  6. package/dist/Badge/index.d.ts +6 -7
  7. package/dist/Badge/index.d.ts.map +1 -1
  8. package/dist/Button/index.d.ts +6 -6
  9. package/dist/Button/index.d.ts.map +1 -1
  10. package/dist/Calendar/index.d.ts +1 -1
  11. package/dist/Colors.d.ts +71 -0
  12. package/dist/Colors.d.ts.map +1 -0
  13. package/dist/Command/index.d.ts +20 -20
  14. package/dist/Command/index.d.ts.map +1 -1
  15. package/dist/Dialog/index.d.ts +2 -2
  16. package/dist/Dialog/index.d.ts.map +1 -1
  17. package/dist/DropdownMenu/index.d.ts +4 -4
  18. package/dist/DropdownMenu/index.d.ts.map +1 -1
  19. package/dist/Filter/index.d.ts +4 -2
  20. package/dist/Filter/index.d.ts.map +1 -1
  21. package/dist/FilterBar/GradientScroll.d.ts +4 -4
  22. package/dist/FilterBar/index.d.ts +2 -2
  23. package/dist/Label/index.d.ts +2 -2
  24. package/dist/Layout/index.d.ts +1 -1
  25. package/dist/Layout/index.d.ts.map +1 -1
  26. package/dist/Pagination/index.d.ts +3 -3
  27. package/dist/Pagination/index.d.ts.map +1 -1
  28. package/dist/Popover/index.d.ts +1 -1
  29. package/dist/Popover/index.d.ts.map +1 -1
  30. package/dist/Select/index.d.ts +1 -1
  31. package/dist/Select/index.d.ts.map +1 -1
  32. package/dist/Sheet/index.d.ts +23 -13
  33. package/dist/Sheet/index.d.ts.map +1 -1
  34. package/dist/Skeleton/index.d.ts +1 -0
  35. package/dist/Skeleton/index.d.ts.map +1 -1
  36. package/dist/Sonner/index.d.ts +1 -0
  37. package/dist/Sonner/index.d.ts.map +1 -1
  38. package/dist/Table/index.d.ts +2 -2
  39. package/dist/Table/index.d.ts.map +1 -1
  40. package/dist/Tabs/index.d.ts +1 -1
  41. package/dist/Tabs/index.d.ts.map +1 -1
  42. package/dist/TagInput/index.d.ts +2 -2
  43. package/dist/TagInput/index.d.ts.map +1 -1
  44. package/dist/Toggle/index.d.ts +3 -3
  45. package/dist/ToggleGroup/index.d.ts +13 -4
  46. package/dist/ToggleGroup/index.d.ts.map +1 -1
  47. package/dist/Tooltip/index.d.ts +11 -7
  48. package/dist/Tooltip/index.d.ts.map +1 -1
  49. package/dist/cosmik.css +1 -1
  50. package/dist/index.cjs +1 -1
  51. package/dist/index.d.ts +9 -1
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +178 -173
  54. package/dist/index.js.map +1 -1
  55. package/dist/index10.cjs +1 -1
  56. package/dist/index10.cjs.map +1 -1
  57. package/dist/index10.js +34 -127
  58. package/dist/index10.js.map +1 -1
  59. package/dist/index11.cjs +1 -1
  60. package/dist/index11.cjs.map +1 -1
  61. package/dist/index11.js +28 -105
  62. package/dist/index11.js.map +1 -1
  63. package/dist/index12.cjs +1 -1
  64. package/dist/index12.cjs.map +1 -1
  65. package/dist/index12.js +112 -112
  66. package/dist/index12.js.map +1 -1
  67. package/dist/index13.cjs +1 -1
  68. package/dist/index13.cjs.map +1 -1
  69. package/dist/index13.js +103 -96
  70. package/dist/index13.js.map +1 -1
  71. package/dist/index14.cjs +1 -1
  72. package/dist/index14.cjs.map +1 -1
  73. package/dist/index14.js +141 -22
  74. package/dist/index14.js.map +1 -1
  75. package/dist/index15.cjs +1 -1
  76. package/dist/index15.cjs.map +1 -1
  77. package/dist/index15.js +105 -22
  78. package/dist/index15.js.map +1 -1
  79. package/dist/index16.cjs +1 -1
  80. package/dist/index16.cjs.map +1 -1
  81. package/dist/index16.js +22 -17
  82. package/dist/index16.js.map +1 -1
  83. package/dist/index17.cjs +1 -1
  84. package/dist/index17.cjs.map +1 -1
  85. package/dist/index17.js +22 -58
  86. package/dist/index17.js.map +1 -1
  87. package/dist/index18.cjs +1 -1
  88. package/dist/index18.cjs.map +1 -1
  89. package/dist/index18.js +17 -20
  90. package/dist/index18.js.map +1 -1
  91. package/dist/index19.cjs +1 -1
  92. package/dist/index19.cjs.map +1 -1
  93. package/dist/index19.js +64 -96
  94. package/dist/index19.js.map +1 -1
  95. package/dist/index2.cjs +2 -0
  96. package/dist/index2.cjs.map +1 -0
  97. package/dist/index2.js +5 -0
  98. package/dist/index2.js.map +1 -0
  99. package/dist/index20.cjs +1 -1
  100. package/dist/index20.cjs.map +1 -1
  101. package/dist/index20.js +20 -22
  102. package/dist/index20.js.map +1 -1
  103. package/dist/index21.cjs +1 -1
  104. package/dist/index21.cjs.map +1 -1
  105. package/dist/index21.js +93 -21
  106. package/dist/index21.js.map +1 -1
  107. package/dist/index22.cjs +1 -1
  108. package/dist/index22.cjs.map +1 -1
  109. package/dist/index22.js +19 -27
  110. package/dist/index22.js.map +1 -1
  111. package/dist/index23.cjs +1 -1
  112. package/dist/index23.cjs.map +1 -1
  113. package/dist/index23.js +19 -126
  114. package/dist/index23.js.map +1 -1
  115. package/dist/index24.cjs +1 -1
  116. package/dist/index24.cjs.map +1 -1
  117. package/dist/index24.js +30 -23
  118. package/dist/index24.js.map +1 -1
  119. package/dist/index25.cjs +1 -1
  120. package/dist/index25.cjs.map +1 -1
  121. package/dist/index25.js +130 -128
  122. package/dist/index25.js.map +1 -1
  123. package/dist/index26.cjs +1 -1
  124. package/dist/index26.cjs.map +1 -1
  125. package/dist/index26.js +21 -13
  126. package/dist/index26.js.map +1 -1
  127. package/dist/index27.cjs +1 -1
  128. package/dist/index27.cjs.map +1 -1
  129. package/dist/index27.js +103 -28
  130. package/dist/index27.js.map +1 -1
  131. package/dist/index28.cjs +1 -1
  132. package/dist/index28.cjs.map +1 -1
  133. package/dist/index28.js +15 -27
  134. package/dist/index28.js.map +1 -1
  135. package/dist/index29.cjs +1 -1
  136. package/dist/index29.cjs.map +1 -1
  137. package/dist/index29.js +30 -108
  138. package/dist/index29.js.map +1 -1
  139. package/dist/index3.cjs +1 -1
  140. package/dist/index3.cjs.map +1 -1
  141. package/dist/index3.js +70 -54
  142. package/dist/index3.js.map +1 -1
  143. package/dist/index30.cjs +1 -1
  144. package/dist/index30.cjs.map +1 -1
  145. package/dist/index30.js +23 -38
  146. package/dist/index30.js.map +1 -1
  147. package/dist/index31.cjs +1 -1
  148. package/dist/index31.cjs.map +1 -1
  149. package/dist/index31.js +102 -73
  150. package/dist/index31.js.map +1 -1
  151. package/dist/index32.cjs +1 -1
  152. package/dist/index32.cjs.map +1 -1
  153. package/dist/index32.js +42 -23
  154. package/dist/index32.js.map +1 -1
  155. package/dist/index33.cjs +1 -1
  156. package/dist/index33.cjs.map +1 -1
  157. package/dist/index33.js +78 -78
  158. package/dist/index33.js.map +1 -1
  159. package/dist/index34.cjs +1 -1
  160. package/dist/index34.cjs.map +1 -1
  161. package/dist/index34.js +20 -67
  162. package/dist/index34.js.map +1 -1
  163. package/dist/index35.cjs +1 -1
  164. package/dist/index35.cjs.map +1 -1
  165. package/dist/index35.js +75 -55
  166. package/dist/index35.js.map +1 -1
  167. package/dist/index36.cjs +1 -1
  168. package/dist/index36.cjs.map +1 -1
  169. package/dist/index36.js +36 -58
  170. package/dist/index36.js.map +1 -1
  171. package/dist/index37.cjs +1 -1
  172. package/dist/index37.cjs.map +1 -1
  173. package/dist/index37.js +33 -3
  174. package/dist/index37.js.map +1 -1
  175. package/dist/index38.cjs +1 -1
  176. package/dist/index38.cjs.map +1 -1
  177. package/dist/index38.js +65 -33
  178. package/dist/index38.js.map +1 -1
  179. package/dist/index39.cjs +1 -1
  180. package/dist/index39.cjs.map +1 -1
  181. package/dist/index39.js +261 -11
  182. package/dist/index39.js.map +1 -1
  183. package/dist/index4.cjs +1 -1
  184. package/dist/index4.cjs.map +1 -1
  185. package/dist/index4.js +324 -112
  186. package/dist/index4.js.map +1 -1
  187. package/dist/index40.cjs +1 -1
  188. package/dist/index40.cjs.map +1 -1
  189. package/dist/index40.js +6 -118
  190. package/dist/index40.js.map +1 -1
  191. package/dist/index41.cjs +1 -1
  192. package/dist/index41.cjs.map +1 -1
  193. package/dist/index41.js +12 -13
  194. package/dist/index41.js.map +1 -1
  195. package/dist/index42.cjs +1 -1
  196. package/dist/index42.cjs.map +1 -1
  197. package/dist/index42.js +118 -7
  198. package/dist/index42.js.map +1 -1
  199. package/dist/index43.cjs +1 -1
  200. package/dist/index43.cjs.map +1 -1
  201. package/dist/index43.js +14 -2
  202. package/dist/index43.js.map +1 -1
  203. package/dist/index44.cjs +1 -9
  204. package/dist/index44.cjs.map +1 -1
  205. package/dist/index44.js +3 -25
  206. package/dist/index44.js.map +1 -1
  207. package/dist/index45.cjs +1 -22
  208. package/dist/index45.cjs.map +1 -1
  209. package/dist/index45.js +104 -601
  210. package/dist/index45.js.map +1 -1
  211. package/dist/index46.cjs +1 -1
  212. package/dist/index46.cjs.map +1 -1
  213. package/dist/index46.js +32 -13
  214. package/dist/index46.js.map +1 -1
  215. package/dist/index47.cjs +1 -1
  216. package/dist/index47.cjs.map +1 -1
  217. package/dist/index47.js +2 -2729
  218. package/dist/index47.js.map +1 -1
  219. package/dist/index48.cjs +9 -1
  220. package/dist/index48.cjs.map +1 -1
  221. package/dist/index48.js +30 -2
  222. package/dist/index48.js.map +1 -1
  223. package/dist/index49.cjs +19 -1
  224. package/dist/index49.cjs.map +1 -1
  225. package/dist/index49.js +599 -2
  226. package/dist/index49.js.map +1 -1
  227. package/dist/index5.cjs +1 -1
  228. package/dist/index5.cjs.map +1 -1
  229. package/dist/index5.js +41 -77
  230. package/dist/index5.js.map +1 -1
  231. package/dist/index50.cjs +2 -0
  232. package/dist/index50.cjs.map +1 -0
  233. package/dist/index50.js +5 -0
  234. package/dist/index50.js.map +1 -0
  235. package/dist/index51.cjs +2 -0
  236. package/dist/index51.cjs.map +1 -0
  237. package/dist/index51.js +154 -0
  238. package/dist/index51.js.map +1 -0
  239. package/dist/index52.cjs +2 -0
  240. package/dist/index52.cjs.map +1 -0
  241. package/dist/index52.js +19 -0
  242. package/dist/index52.js.map +1 -0
  243. package/dist/index53.cjs +2 -0
  244. package/dist/index53.cjs.map +1 -0
  245. package/dist/index53.js +345 -0
  246. package/dist/index53.js.map +1 -0
  247. package/dist/index54.cjs +2 -0
  248. package/dist/index54.cjs.map +1 -0
  249. package/dist/index54.js +48 -0
  250. package/dist/index54.js.map +1 -0
  251. package/dist/index55.cjs +2 -0
  252. package/dist/index55.cjs.map +1 -0
  253. package/dist/index55.js +5 -0
  254. package/dist/index55.js.map +1 -0
  255. package/dist/index56.cjs +2 -0
  256. package/dist/index56.cjs.map +1 -0
  257. package/dist/index56.js +5 -0
  258. package/dist/index56.js.map +1 -0
  259. package/dist/index57.cjs +2 -0
  260. package/dist/index57.cjs.map +1 -0
  261. package/dist/index57.js +5 -0
  262. package/dist/index57.js.map +1 -0
  263. package/dist/index58.cjs +2 -0
  264. package/dist/index58.cjs.map +1 -0
  265. package/dist/index58.js +7 -0
  266. package/dist/index58.js.map +1 -0
  267. package/dist/index6.cjs +1 -1
  268. package/dist/index6.cjs.map +1 -1
  269. package/dist/index6.js +110 -157
  270. package/dist/index6.js.map +1 -1
  271. package/dist/index7.cjs +1 -1
  272. package/dist/index7.cjs.map +1 -1
  273. package/dist/index7.js +85 -65
  274. package/dist/index7.js.map +1 -1
  275. package/dist/index8.cjs +1 -1
  276. package/dist/index8.cjs.map +1 -1
  277. package/dist/index8.js +155 -42
  278. package/dist/index8.js.map +1 -1
  279. package/dist/index9.cjs +1 -1
  280. package/dist/index9.cjs.map +1 -1
  281. package/dist/index9.js +70 -33
  282. package/dist/index9.js.map +1 -1
  283. package/dist/lib/utils.d.ts +1 -1
  284. package/dist/lib/utils.d.ts.map +1 -1
  285. package/dist/tailwind-theme-config.d.ts +318 -0
  286. package/dist/tailwind-theme-config.d.ts.map +1 -0
  287. package/package.json +62 -58
  288. package/dist/cosmik-theme.css +0 -185
package/dist/index9.js CHANGED
@@ -1,36 +1,73 @@
1
- import { j as e } from "./index37.js";
2
- import * as t from "@radix-ui/react-checkbox";
3
- import { Minus as i, Check as c } from "lucide-react";
4
- import * as o from "react";
5
- import { cn as r } from "./index39.js";
6
- const n = o.forwardRef(({ className: d, ...a }, s) => /* @__PURE__ */ e.jsx(
7
- t.Root,
8
- {
9
- ref: s,
10
- className: r(
11
- "peer h-16 w-16 shrink-0 rounded border border-gray-900/24",
12
- "disabled:cursor-not-allowed disabled:bg-transparent",
13
- "disabled:data-[state=checked]:bg-gray-900/8 disabled:data-[state=checked]:text-gray-800 disabled:opacity-64",
14
- "disabled:data-[state=indeterminate]:bg-gray-900/8 disabled:data-[state=indeterminate]:text-gray-800",
15
- "data-[state=checked]:bg-purple-700 data-[state=checked]:text-white",
16
- "data-[state=indeterminate]:bg-purple-700 data-[state=indeterminate]:text-white",
17
- "hover:bg-gray-900/8 hover:data-[state=checked]:bg-purple-800 hover:data-[state=indeterminate]:bg-purple-800",
18
- "focus-visible:outline-none focus:bg-gray-900/16 focus:data-[state=checked]:bg-purple-900 focus:data-[state=indeterminate]:bg-purple-900",
19
- "active:bg-gray-900/16 active:data-[state=checked]:bg-purple-900 active:data-[state=indeterminate]:bg-purple-900",
20
- d
21
- ),
22
- ...a,
23
- children: /* @__PURE__ */ e.jsx(
24
- t.Indicator,
25
- {
26
- className: r("flex items-center justify-center text-current"),
27
- children: a.checked == "indeterminate" ? /* @__PURE__ */ e.jsx(i, { className: "h-[14px] w-[14px]" }) : /* @__PURE__ */ e.jsx(c, { className: "h-[14px] w-[14px]" })
28
- }
29
- )
30
- }
31
- ));
32
- n.displayName = t.Root.displayName;
1
+ import { j as t } from "./index40.js";
2
+ import { ChevronLeftIcon as d, ChevronRightIcon as l } from "lucide-react";
3
+ import { DayPicker as s } from "react-day-picker";
4
+ import { buttonVariants as r } from "./index8.js";
5
+ import { cn as e } from "./index41.js";
6
+ function c({
7
+ className: n,
8
+ classNames: o,
9
+ showOutsideDays: i = !0,
10
+ ...a
11
+ }) {
12
+ return /* @__PURE__ */ t.jsx(
13
+ s,
14
+ {
15
+ showOutsideDays: i,
16
+ className: e("p-12", n),
17
+ classNames: {
18
+ months: "flex flex-row space-x-16",
19
+ month: "space-y-16",
20
+ caption: "flex justify-center pt-4 relative items-center pb-16",
21
+ caption_label: "text-lg font-display text-gray-800",
22
+ nav: "space-x-4 flex items-center",
23
+ nav_button: e(
24
+ r({
25
+ variant: "ghost",
26
+ intent: "secondary",
27
+ size: "icon"
28
+ }),
29
+ "opacity-64 hover:opacity-100 text-gray-800"
30
+ ),
31
+ nav_button_previous: "absolute left-[4px]",
32
+ nav_button_next: "absolute right-[4px]",
33
+ table: "w-full border-collapse space-y-4",
34
+ head_row: "flex rounded overflow-hidden",
35
+ head_cell: "w-full text-sm font-normal text-gray-700 bg-gray-900-4",
36
+ row: "flex w-full mt-8",
37
+ cell: e(
38
+ "relative overflow-hidden p-0 text-center text-sm focus-within:relative focus-within:z-20",
39
+ a.mode === "range" ? "[&:has(>.day-range-end)]:rounded-r [&:has(>.day-range-start)]:rounded-l" : "rounded"
40
+ ),
41
+ day: e(
42
+ r({
43
+ variant: "ghost",
44
+ intent: "secondary",
45
+ size: "icon"
46
+ }),
47
+ "h-32 w-32 p-0 font-normal aria-selected:opacity-100 rounded aria-selected:rounded-none"
48
+ ),
49
+ day_range_start: "day-range-start",
50
+ day_range_end: "day-range-end",
51
+ day_selected: e(
52
+ "text-white hover:text-white active:text-white focus:text-white bg-purple-700 hover:bg-purple-800 focus:bg-purple-900 active:bg-purple-900"
53
+ ),
54
+ day_today: "border aria-selected:border-none",
55
+ day_outside: "invisible",
56
+ day_disabled: "opacity-64",
57
+ day_range_middle: "aria-selected:bg-purple-700 aria-selected:hover:bg-purple-800 aria-selected:active:bg-purple-900 text-white rounded-none",
58
+ day_hidden: "invisible",
59
+ ...o
60
+ },
61
+ components: {
62
+ IconLeft: () => /* @__PURE__ */ t.jsx(d, { className: "h-16 w-16" }),
63
+ IconRight: () => /* @__PURE__ */ t.jsx(l, { className: "h-16 w-16" })
64
+ },
65
+ ...a
66
+ }
67
+ );
68
+ }
69
+ c.displayName = "Calendar";
33
70
  export {
34
- n as Checkbox
71
+ c as Calendar
35
72
  };
36
73
  //# sourceMappingURL=index9.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index9.js","sources":["../src/Checkbox/index.tsx"],"sourcesContent":["'use client'\n\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox'\nimport { Check, Minus } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst Checkbox = React.forwardRef<\n React.ElementRef<typeof CheckboxPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n 'peer h-16 w-16 shrink-0 rounded border border-gray-900/24',\n 'disabled:cursor-not-allowed disabled:bg-transparent',\n 'disabled:data-[state=checked]:bg-gray-900/8 disabled:data-[state=checked]:text-gray-800 disabled:opacity-64',\n 'disabled:data-[state=indeterminate]:bg-gray-900/8 disabled:data-[state=indeterminate]:text-gray-800',\n 'data-[state=checked]:bg-purple-700 data-[state=checked]:text-white',\n 'data-[state=indeterminate]:bg-purple-700 data-[state=indeterminate]:text-white',\n 'hover:bg-gray-900/8 hover:data-[state=checked]:bg-purple-800 hover:data-[state=indeterminate]:bg-purple-800',\n 'focus-visible:outline-none focus:bg-gray-900/16 focus:data-[state=checked]:bg-purple-900 focus:data-[state=indeterminate]:bg-purple-900',\n 'active:bg-gray-900/16 active:data-[state=checked]:bg-purple-900 active:data-[state=indeterminate]:bg-purple-900',\n className\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n className={cn('flex items-center justify-center text-current')}\n >\n {props.checked == 'indeterminate' ? (\n <Minus className=\"h-[14px] w-[14px]\" />\n ) : (\n <Check className=\"h-[14px] w-[14px]\" />\n )}\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n))\n\nCheckbox.displayName = CheckboxPrimitive.Root.displayName\n\nexport { Checkbox }\n"],"names":["Checkbox","React","className","props","ref","jsx","CheckboxPrimitive","cn","Minus","Check"],"mappings":";;;;;AAOA,MAAMA,IAAWC,EAAM,WAGrB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACC,EAAkB;AAAA,EAAlB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,IAEJ,UAAAE,gBAAAA,EAAAA;AAAAA,MAACC,EAAkB;AAAA,MAAlB;AAAA,QACC,WAAWC,EAAG,+CAA+C;AAAA,QAE5D,UAAAJ,EAAM,WAAW,kBAChBE,gBAAAA,EAAAA,IAACG,GAAA,EAAM,WAAU,oBAAA,CAAoB,IAErCH,gBAAAA,EAAAA,IAACI,GAAA,EAAM,WAAU,oBAAA,CAAoB;AAAA,MAAA;AAAA,IAAA;AAAA,EAEzC;AACF,CACD;AAEDT,EAAS,cAAcM,EAAkB,KAAK;"}
1
+ {"version":3,"file":"index9.js","sources":["../src/Calendar/index.tsx"],"sourcesContent":["'use client'\n\nimport { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react'\nimport * as React from 'react'\nimport { DayPicker } from 'react-day-picker'\nimport { buttonVariants } from '../Button'\nimport { cn } from '../lib/utils'\n\nexport type CalendarProps = React.ComponentProps<typeof DayPicker>\n\nfunction Calendar({\n className,\n classNames,\n showOutsideDays = true,\n ...props\n}: CalendarProps) {\n return (\n <DayPicker\n showOutsideDays={showOutsideDays}\n className={cn('p-12', className)}\n classNames={{\n months: 'flex flex-row space-x-16',\n month: 'space-y-16',\n caption: 'flex justify-center pt-4 relative items-center pb-16',\n caption_label: 'text-lg font-display text-gray-800',\n nav: 'space-x-4 flex items-center',\n nav_button: cn(\n buttonVariants({\n variant: 'ghost',\n intent: 'secondary',\n size: 'icon'\n }),\n 'opacity-64 hover:opacity-100 text-gray-800'\n ),\n nav_button_previous: 'absolute left-[4px]',\n nav_button_next: 'absolute right-[4px]',\n table: 'w-full border-collapse space-y-4',\n head_row: 'flex rounded overflow-hidden',\n head_cell: 'w-full text-sm font-normal text-gray-700 bg-gray-900-4',\n row: 'flex w-full mt-8',\n cell: cn(\n 'relative overflow-hidden p-0 text-center text-sm focus-within:relative focus-within:z-20',\n props.mode === 'range'\n ? '[&:has(>.day-range-end)]:rounded-r [&:has(>.day-range-start)]:rounded-l'\n : 'rounded'\n ),\n day: cn(\n buttonVariants({\n variant: 'ghost',\n intent: 'secondary',\n size: 'icon'\n }),\n 'h-32 w-32 p-0 font-normal aria-selected:opacity-100 rounded aria-selected:rounded-none'\n ),\n day_range_start: 'day-range-start',\n day_range_end: 'day-range-end',\n day_selected: cn(\n 'text-white hover:text-white active:text-white focus:text-white bg-purple-700 hover:bg-purple-800 focus:bg-purple-900 active:bg-purple-900'\n ),\n day_today: 'border aria-selected:border-none',\n day_outside: 'invisible',\n day_disabled: 'opacity-64',\n day_range_middle:\n 'aria-selected:bg-purple-700 aria-selected:hover:bg-purple-800 aria-selected:active:bg-purple-900 text-white rounded-none',\n day_hidden: 'invisible',\n ...classNames\n }}\n components={{\n IconLeft: () => <ChevronLeftIcon className=\"h-16 w-16\" />,\n IconRight: () => <ChevronRightIcon className=\"h-16 w-16\" />\n }}\n {...props}\n />\n )\n}\nCalendar.displayName = 'Calendar'\n\nexport { Calendar }\n"],"names":["Calendar","className","classNames","showOutsideDays","props","jsx","DayPicker","cn","buttonVariants","ChevronLeftIcon","ChevronRightIcon"],"mappings":";;;;;AAUA,SAASA,EAAS;AAAA,EAChB,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,GAAGC;AACL,GAAkB;AAEd,SAAAC,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,iBAAAH;AAAA,MACA,WAAWI,EAAG,QAAQN,CAAS;AAAA,MAC/B,YAAY;AAAA,QACV,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,SAAS;AAAA,QACT,eAAe;AAAA,QACf,KAAK;AAAA,QACL,YAAYM;AAAA,UACVC,EAAe;AAAA,YACb,SAAS;AAAA,YACT,QAAQ;AAAA,YACR,MAAM;AAAA,UAAA,CACP;AAAA,UACD;AAAA,QACF;AAAA,QACA,qBAAqB;AAAA,QACrB,iBAAiB;AAAA,QACjB,OAAO;AAAA,QACP,UAAU;AAAA,QACV,WAAW;AAAA,QACX,KAAK;AAAA,QACL,MAAMD;AAAA,UACJ;AAAA,UACAH,EAAM,SAAS,UACX,4EACA;AAAA,QACN;AAAA,QACA,KAAKG;AAAA,UACHC,EAAe;AAAA,YACb,SAAS;AAAA,YACT,QAAQ;AAAA,YACR,MAAM;AAAA,UAAA,CACP;AAAA,UACD;AAAA,QACF;AAAA,QACA,iBAAiB;AAAA,QACjB,eAAe;AAAA,QACf,cAAcD;AAAA,UACZ;AAAA,QACF;AAAA,QACA,WAAW;AAAA,QACX,aAAa;AAAA,QACb,cAAc;AAAA,QACd,kBACE;AAAA,QACF,YAAY;AAAA,QACZ,GAAGL;AAAA,MACL;AAAA,MACA,YAAY;AAAA,QACV,UAAU,MAAOG,gBAAAA,EAAAA,IAAAI,GAAA,EAAgB,WAAU,YAAY,CAAA;AAAA,QACvD,WAAW,MAAOJ,gBAAAA,EAAAA,IAAAK,GAAA,EAAiB,WAAU,YAAY,CAAA;AAAA,MAC3D;AAAA,MACC,GAAGN;AAAA,IAAA;AAAA,EAAA;AAGV;AACAJ,EAAS,cAAc;"}
@@ -1,4 +1,4 @@
1
- import { ClassValue } from 'clsx';
1
+ import { type ClassValue } from 'clsx';
2
2
  export declare function cn(...inputs: ClassValue[]): string;
3
3
  export declare function debounce<F extends (...args: Parameters<F>) => ReturnType<F>>(func: F, waitFor: number): (...args: Parameters<F>) => void;
4
4
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAA;AAG5C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,EAC1E,IAAI,EAAE,CAAC,EACP,OAAO,EAAE,MAAM,aAIa,UAAU,CAAC,CAAC,CAAC,UAM1C"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAA;AAG5C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,EAC1E,IAAI,EAAE,CAAC,EACP,OAAO,EAAE,MAAM,aAIa,WAAW,CAAC,CAAC,UAM1C"}
@@ -0,0 +1,318 @@
1
+ type Theme = (theme: string) => Record<string, any>;
2
+ declare const _default: {
3
+ screens: {
4
+ sm: string;
5
+ md: string;
6
+ lg: string;
7
+ xl: string;
8
+ '2xl': string;
9
+ };
10
+ colors: {
11
+ transparent: string;
12
+ white: string;
13
+ gray: {
14
+ 50: string;
15
+ 100: string;
16
+ 200: string;
17
+ 300: string;
18
+ 400: string;
19
+ 500: string;
20
+ 600: string;
21
+ 700: string;
22
+ 800: string;
23
+ 900: string;
24
+ };
25
+ green: {
26
+ 50: string;
27
+ 100: string;
28
+ 200: string;
29
+ 300: string;
30
+ 400: string;
31
+ 500: string;
32
+ 600: string;
33
+ 700: string;
34
+ 800: string;
35
+ 900: string;
36
+ };
37
+ magenta: {
38
+ 50: string;
39
+ 100: string;
40
+ 200: string;
41
+ 300: string;
42
+ 400: string;
43
+ 500: string;
44
+ 600: string;
45
+ 700: string;
46
+ 800: string;
47
+ 900: string;
48
+ };
49
+ purple: {
50
+ 50: string;
51
+ 100: string;
52
+ 200: string;
53
+ 300: string;
54
+ 400: string;
55
+ 500: string;
56
+ 600: string;
57
+ 700: string;
58
+ 800: string;
59
+ 900: string;
60
+ };
61
+ robinblue: {
62
+ 50: string;
63
+ 100: string;
64
+ 200: string;
65
+ 300: string;
66
+ 400: string;
67
+ 500: string;
68
+ 600: string;
69
+ 700: string;
70
+ 800: string;
71
+ 900: string;
72
+ };
73
+ yellow: {
74
+ 50: string;
75
+ 100: string;
76
+ 200: string;
77
+ 300: string;
78
+ 400: string;
79
+ 500: string;
80
+ 600: string;
81
+ 700: string;
82
+ 800: string;
83
+ 900: string;
84
+ };
85
+ chart: {
86
+ purple: string;
87
+ magenta: string;
88
+ yellow: string;
89
+ green: string;
90
+ robinblue: any;
91
+ };
92
+ };
93
+ spacing: {
94
+ 0: string;
95
+ 2: string;
96
+ 4: string;
97
+ 8: string;
98
+ 12: string;
99
+ 16: string;
100
+ 24: string;
101
+ 32: string;
102
+ 40: string;
103
+ 48: string;
104
+ 64: string;
105
+ 96: string;
106
+ };
107
+ backgroundColor: (theme: Theme) => {
108
+ transparent: string;
109
+ white: Record<string, any>;
110
+ gray: {
111
+ '50-80': string;
112
+ '900-4': string;
113
+ '900-8': string;
114
+ '900-12': string;
115
+ '900-16': string;
116
+ '900-24': string;
117
+ '900-32': string;
118
+ };
119
+ robinblue: {
120
+ '500-8': string;
121
+ '500-16': string;
122
+ '500-40': string;
123
+ };
124
+ purple: {
125
+ '700-48': string;
126
+ };
127
+ green: Record<string, any>;
128
+ yellow: Record<string, any>;
129
+ magenta: Record<string, any>;
130
+ chart: {
131
+ 'purple-80': string;
132
+ };
133
+ };
134
+ borderColor: (theme: Theme) => {
135
+ DEFAULT: Record<string, any>;
136
+ gray: {
137
+ 400: string;
138
+ 700: string;
139
+ '900-8': string;
140
+ '900-16': string;
141
+ '900-24': string;
142
+ };
143
+ purple: {
144
+ '900-8': string;
145
+ };
146
+ robinblue: Record<string, any>;
147
+ green: Record<string, any>;
148
+ yellow: Record<string, any>;
149
+ magenta: Record<string, any>;
150
+ white: Record<string, any>;
151
+ transparent: Record<string, any>;
152
+ };
153
+ borderRadius: {
154
+ none: string;
155
+ DEFAULT: string;
156
+ full: string;
157
+ };
158
+ borderWidth: {
159
+ DEFAULT: string;
160
+ 2: string;
161
+ 1: string;
162
+ 0: string;
163
+ };
164
+ boxShadow: {
165
+ 100: string;
166
+ 200: string;
167
+ 300: string;
168
+ 400: string;
169
+ 500: string;
170
+ DEFAULT: string;
171
+ 'field-hover': string;
172
+ 'field-active': string;
173
+ 'error-field-hover': string;
174
+ 'error-field-active': string;
175
+ 'warning-field-hover': string;
176
+ 'warning-field-active': string;
177
+ none: string;
178
+ };
179
+ fontFamily: {
180
+ default: string[];
181
+ icons: string[];
182
+ iconsOutlined: string[];
183
+ };
184
+ fontSize: {
185
+ sm: string;
186
+ base: string;
187
+ lg: string;
188
+ xl: string;
189
+ 'icon-sm': string;
190
+ 'icon-md': string;
191
+ };
192
+ fontWeight: {
193
+ thin: string;
194
+ normal: string;
195
+ medium: string;
196
+ };
197
+ letterSpacing: {
198
+ normal: string;
199
+ };
200
+ lineHeight: {
201
+ 14: string;
202
+ 20: string;
203
+ 24: string;
204
+ 18: string;
205
+ 26: string;
206
+ };
207
+ animation: {
208
+ none: string;
209
+ spin: string;
210
+ ping: string;
211
+ pulse: string;
212
+ bounce: string;
213
+ 'loading-ellipsis1': string;
214
+ 'loading-ellipsis2': string;
215
+ 'loading-ellipsis3': string;
216
+ 'page-loader': string;
217
+ };
218
+ keyframes: {
219
+ ellipsis1: {
220
+ '0%': {
221
+ transform: string;
222
+ };
223
+ '100%': {
224
+ transform: string;
225
+ };
226
+ };
227
+ ellipsis3: {
228
+ '0%': {
229
+ transform: string;
230
+ };
231
+ '100%': {
232
+ transform: string;
233
+ };
234
+ };
235
+ ellipsis2: {
236
+ '0%': {
237
+ transform: string;
238
+ };
239
+ '100%': {
240
+ transform: string;
241
+ };
242
+ };
243
+ pageLoader: {
244
+ '0%': {
245
+ width: string;
246
+ };
247
+ '100%': {
248
+ width: string;
249
+ };
250
+ };
251
+ spin: {
252
+ to: {
253
+ transform: string;
254
+ };
255
+ };
256
+ ping: {
257
+ '75%, 100%': {
258
+ transform: string;
259
+ opacity: string;
260
+ };
261
+ };
262
+ pulse: {
263
+ '50%': {
264
+ opacity: string;
265
+ };
266
+ };
267
+ bounce: {
268
+ '0%, 100%': {
269
+ transform: string;
270
+ animationTimingFunction: string;
271
+ };
272
+ '50%': {
273
+ transform: string;
274
+ animationTimingFunction: string;
275
+ };
276
+ };
277
+ };
278
+ minHeight: (theme: Theme) => {
279
+ full: string;
280
+ screen: string;
281
+ min: string;
282
+ max: string;
283
+ fit: string;
284
+ 0: string;
285
+ };
286
+ minWidth: (theme: Theme) => {
287
+ full: string;
288
+ min: string;
289
+ max: string;
290
+ fit: string;
291
+ 0: string;
292
+ };
293
+ opacity: {
294
+ 0: string;
295
+ 8: string;
296
+ 12: string;
297
+ 16: string;
298
+ 24: string;
299
+ 32: string;
300
+ 40: string;
301
+ 48: string;
302
+ 64: string;
303
+ 72: string;
304
+ 80: string;
305
+ 100: string;
306
+ };
307
+ textColor: (theme: Theme) => {
308
+ white: Record<string, any>;
309
+ gray: Record<string, any>;
310
+ robinblue: Record<string, any>;
311
+ green: Record<string, any>;
312
+ magenta: Record<string, any>;
313
+ yellow: Record<string, any>;
314
+ purple: Record<string, any>;
315
+ };
316
+ };
317
+ export default _default;
318
+ //# sourceMappingURL=tailwind-theme-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tailwind-theme-config.d.ts","sourceRoot":"","sources":["../src/tailwind-theme-config.ts"],"names":[],"mappings":"AAIA,KAAK,KAAK,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA4GxB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA+BT,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAmJP,KAAK;;;;;;;;sBASN,KAAK;;;;;;;;;;;;;;;;;;;;;uBAsBJ,KAAK;;;;;;;;;;AA3T1B,wBAoUC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "homepage": "https://inloco.github.io/cosmik",
3
3
  "name": "@incognia/cosmik",
4
- "version": "0.40.2",
4
+ "version": "0.41.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",
@@ -16,71 +16,75 @@
16
16
  "require": "./dist/index.cjs"
17
17
  },
18
18
  "./cosmik.css": "./dist/cosmik.css",
19
- "./cosmik-theme.css": "./dist/cosmik-theme.css",
20
19
  "./package.json": "./package.json"
21
20
  },
22
21
  "peerDependencies": {
23
- "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
24
- "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
22
+ "react": "^16.0.0 || ^17.0.0 || ^18.0.0",
23
+ "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0"
25
24
  },
26
25
  "devDependencies": {
27
- "@storybook/addon-docs": "^9.1.2",
28
- "@storybook/addon-links": "^9.1.2",
29
- "@storybook/addon-themes": "^9.1.2",
30
- "@storybook/react-vite": "^9.1.2",
31
- "@storybook/testing-library": "^0.2.2",
32
- "@tailwindcss/vite": "^4.1.13",
33
- "@trivago/prettier-plugin-sort-imports": "^5.2.2",
34
- "@types/color": "^3.0.6",
35
- "@types/node": "^20.19.11",
36
- "@types/react": "^18.3.23",
37
- "@types/react-dom": "^18.3.7",
38
- "@typescript-eslint/eslint-plugin": "^6.21.0",
39
- "@typescript-eslint/parser": "^6.21.0",
40
- "@vitejs/plugin-react": "^5.0.1",
41
- "class-variance-authority": "^0.7.1",
42
- "clsx": "^2.1.1",
43
- "color": "^5.0.0",
44
- "eslint": "^8.57.1",
45
- "eslint-plugin-react-hooks": "^4.6.2",
46
- "eslint-plugin-react-refresh": "^0.4.20",
47
- "eslint-plugin-storybook": "^9.1.2",
48
- "gh-pages": "^6.3.0",
49
- "husky": "^9.1.7",
50
- "lint-staged": "^15.5.2",
51
- "prettier": "^3.6.2",
52
- "storybook": "^9.1.2",
53
- "tailwind-merge": "^3.3.1",
54
- "tailwindcss": "^4.1.13",
55
- "tw-animate-css": "^1.3.7",
56
- "typescript": "^5.9.2",
57
- "vite": "^7.1.5",
58
- "vite-plugin-dts": "^4.5.4",
59
- "vite-plugin-static-copy": "^3.1.2"
26
+ "@storybook/addon-essentials": "^7.4.0",
27
+ "@storybook/addon-interactions": "^7.4.0",
28
+ "@storybook/addon-links": "^7.4.0",
29
+ "@storybook/addon-onboarding": "^1.0.8",
30
+ "@storybook/addon-styling": "^1.3.7",
31
+ "@storybook/blocks": "^7.4.0",
32
+ "@storybook/react": "^7.4.0",
33
+ "@storybook/react-vite": "^7.4.0",
34
+ "@storybook/testing-library": "^0.2.0",
35
+ "@trivago/prettier-plugin-sort-imports": "^4.2.1",
36
+ "@types/color": "^3.0.3",
37
+ "@types/node": "^20.5.6",
38
+ "@types/react": "^18.2.15",
39
+ "@types/react-dom": "^18.2.7",
40
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
41
+ "@typescript-eslint/parser": "^6.0.0",
42
+ "@vitejs/plugin-react": "^4.0.3",
43
+ "autoprefixer": "^10.4.15",
44
+ "color": "^4.2.3",
45
+ "eslint": "^8.45.0",
46
+ "eslint-plugin-react-hooks": "^4.6.0",
47
+ "eslint-plugin-react-refresh": "^0.4.3",
48
+ "eslint-plugin-storybook": "^0.6.13",
49
+ "gh-pages": "^6.0.0",
50
+ "husky": "^8.0.0",
51
+ "lint-staged": "^15.0.2",
52
+ "postcss": "^8.4.31",
53
+ "postcss-cli": "^10.1.0",
54
+ "prettier": "^3.2.4",
55
+ "storybook": "^7.4.0",
56
+ "tailwindcss": "^3.3.5",
57
+ "tailwindcss-animate": "^1.0.7",
58
+ "typescript": "^5.0.2",
59
+ "vite": "^4.5.6",
60
+ "vite-plugin-dts": "^3.5.2"
60
61
  },
61
62
  "dependencies": {
62
- "@radix-ui/react-alert-dialog": "^1.1.15",
63
- "@radix-ui/react-checkbox": "^1.3.3",
64
- "@radix-ui/react-dialog": "^1.1.15",
65
- "@radix-ui/react-dropdown-menu": "^2.1.16",
66
- "@radix-ui/react-label": "^2.1.7",
67
- "@radix-ui/react-navigation-menu": "^1.2.14",
68
- "@radix-ui/react-popover": "^1.1.15",
69
- "@radix-ui/react-progress": "^1.1.7",
70
- "@radix-ui/react-radio-group": "^1.3.8",
71
- "@radix-ui/react-select": "^2.2.6",
72
- "@radix-ui/react-separator": "^1.1.7",
73
- "@radix-ui/react-slot": "^1.2.3",
74
- "@radix-ui/react-switch": "^1.2.6",
75
- "@radix-ui/react-tabs": "^1.1.13",
76
- "@radix-ui/react-toggle": "^1.1.10",
77
- "@radix-ui/react-toggle-group": "^1.1.11",
78
- "@radix-ui/react-tooltip": "^1.2.8",
63
+ "@radix-ui/react-alert-dialog": "^1.0.5",
64
+ "@radix-ui/react-checkbox": "^1.0.4",
65
+ "@radix-ui/react-dialog": "^1.0.5",
66
+ "@radix-ui/react-dropdown-menu": "^2.0.6",
67
+ "@radix-ui/react-label": "^2.0.2",
68
+ "@radix-ui/react-navigation-menu": "^1.1.4",
69
+ "@radix-ui/react-popover": "^1.0.7",
70
+ "@radix-ui/react-progress": "^1.1.0",
71
+ "@radix-ui/react-radio-group": "^1.1.3",
72
+ "@radix-ui/react-select": "^2.0.0",
73
+ "@radix-ui/react-separator": "^1.0.3",
74
+ "@radix-ui/react-slot": "^1.0.2",
75
+ "@radix-ui/react-switch": "^1.0.3",
76
+ "@radix-ui/react-tabs": "^1.0.4",
77
+ "@radix-ui/react-toggle": "^1.0.3",
78
+ "@radix-ui/react-toggle-group": "^1.0.4",
79
+ "@radix-ui/react-tooltip": "^1.0.7",
80
+ "class-variance-authority": "^0.7.0",
81
+ "clsx": "^2.0.0",
79
82
  "cmdk": "^0.2.1",
80
- "date-fns": "^3.6.0",
81
- "lucide-react": "^0.540.0",
82
- "react-day-picker": "^8.10.1",
83
- "sonner": "^1.7.4"
83
+ "date-fns": "^3.1.0",
84
+ "lucide-react": "^0.279.0",
85
+ "react-day-picker": "^8.10.0",
86
+ "sonner": "^1.7.4",
87
+ "tailwind-merge": "^1.14.0"
84
88
  },
85
89
  "lint-staged": {
86
90
  "**/*.{js,jsx,ts,tsx,json}": [