@lotte-innovate/ui-component-test 0.1.65 → 0.1.67

Sign up to get free protection for your applications and to get access to all the features.
Files changed (234) hide show
  1. package/README.md +133 -133
  2. package/dist/globals.css +4 -4
  3. package/dist/lib/.storybook/main.d.ts +3 -0
  4. package/dist/lib/.storybook/manager.d.ts +1 -0
  5. package/dist/lib/.storybook/preview.d.ts +9 -0
  6. package/dist/lib/Typography/Header/index.d.ts +1 -1
  7. package/dist/lib/Typography/Text/index.d.ts +1 -1
  8. package/dist/lib/color/constants.d.ts +0 -15
  9. package/dist/lib/color/constants.js +0 -32
  10. package/dist/lib/color/constants.mjs.map +1 -1
  11. package/dist/lib/components/Accordion/index.d.ts +1 -0
  12. package/dist/lib/components/Accordion/index.js +18 -4
  13. package/dist/lib/components/Accordion/index.mjs +1 -1
  14. package/dist/lib/components/Accordion/index.mjs.map +1 -1
  15. package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +2 -2
  16. package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +2 -2
  17. package/dist/lib/components/AlertDialog/AlertDialogContent.d.ts +1 -1
  18. package/dist/lib/components/AlertDialog/AlertDialogRoot.js +9 -6
  19. package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs +2 -1
  20. package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs.map +1 -1
  21. package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +2 -2
  22. package/dist/lib/components/AspectRatio/index.js +3 -1
  23. package/dist/lib/components/AspectRatio/index.mjs +1 -1
  24. package/dist/lib/components/AspectRatio/index.mjs.map +1 -1
  25. package/dist/lib/components/Avatar/index.d.ts +1 -1
  26. package/dist/lib/components/Avatar/index.js +9 -1
  27. package/dist/lib/components/Avatar/index.mjs +2 -1
  28. package/dist/lib/components/Avatar/index.mjs.map +1 -1
  29. package/dist/lib/components/Badge/index.d.ts +2 -2
  30. package/dist/lib/components/Badge/index.js +10 -1
  31. package/dist/lib/components/Badge/index.mjs +1 -1
  32. package/dist/lib/components/Badge/index.mjs.map +1 -1
  33. package/dist/lib/components/BubbleChart/index.js +1 -1
  34. package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
  35. package/dist/lib/components/Button/index.d.ts +2 -2
  36. package/dist/lib/components/Button/index.js +10 -1
  37. package/dist/lib/components/Button/index.mjs +1 -1
  38. package/dist/lib/components/Button/index.mjs.map +1 -1
  39. package/dist/lib/components/Callout/CalloutRoot.d.ts +1 -1
  40. package/dist/lib/components/Callout/CalloutRoot.js +11 -3
  41. package/dist/lib/components/Callout/CalloutRoot.mjs +2 -1
  42. package/dist/lib/components/Callout/CalloutRoot.mjs.map +1 -1
  43. package/dist/lib/components/Card/index.d.ts +2 -2
  44. package/dist/lib/components/Card/index.js +8 -1
  45. package/dist/lib/components/Card/index.mjs +1 -1
  46. package/dist/lib/components/Card/index.mjs.map +1 -1
  47. package/dist/lib/components/Checkbox/index.d.ts +1 -1
  48. package/dist/lib/components/Checkbox/index.js +10 -2
  49. package/dist/lib/components/Checkbox/index.mjs +1 -1
  50. package/dist/lib/components/Checkbox/index.mjs.map +1 -1
  51. package/dist/lib/components/CheckboxCard/index.d.ts +1 -1
  52. package/dist/lib/components/CheckboxCard/index.js +8 -1
  53. package/dist/lib/components/CheckboxCard/index.mjs +1 -1
  54. package/dist/lib/components/CheckboxCard/index.mjs.map +1 -1
  55. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +11 -2
  56. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +2 -1
  57. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +1 -1
  58. package/dist/lib/components/ContextMenu/ContextMenuContent.d.ts +1 -1
  59. package/dist/lib/components/ContextMenu/ContextMenuItem.d.ts +1 -1
  60. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.d.ts +1 -1
  61. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js +1 -0
  62. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs +1 -0
  63. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs.map +1 -1
  64. package/dist/lib/components/ContextMenu/ContextMenuRoot.js +11 -2
  65. package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs +2 -1
  66. package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs.map +1 -1
  67. package/dist/lib/components/ContextMenu/ContextMenuSubContent.d.ts +1 -1
  68. package/dist/lib/components/DataList/DataListLabel.d.ts +1 -1
  69. package/dist/lib/components/DataList/DataListRoot.js +9 -2
  70. package/dist/lib/components/DataList/DataListRoot.mjs +2 -1
  71. package/dist/lib/components/DataList/DataListRoot.mjs.map +1 -1
  72. package/dist/lib/components/DataList/DataListValue.d.ts +1 -1
  73. package/dist/lib/components/Dialog/DialogAction.d.ts +1 -1
  74. package/dist/lib/components/Dialog/DialogCancel.d.ts +1 -1
  75. package/dist/lib/components/Dialog/DialogContent.d.ts +1 -1
  76. package/dist/lib/components/Dialog/DialogRoot.js +9 -1
  77. package/dist/lib/components/Dialog/DialogRoot.mjs +2 -1
  78. package/dist/lib/components/Dialog/DialogRoot.mjs.map +1 -1
  79. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.d.ts +1 -1
  80. package/dist/lib/components/DropdownMenu/DropdownMenuContent.d.ts +1 -1
  81. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +1 -1
  82. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +1 -1
  83. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +10 -1
  84. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs +2 -1
  85. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs.map +1 -1
  86. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
  87. package/dist/lib/components/HoverCard/HoverCardContent.d.ts +2 -2
  88. package/dist/lib/components/HoverCard/HoverCardRoot.js +10 -1
  89. package/dist/lib/components/HoverCard/HoverCardRoot.mjs +2 -1
  90. package/dist/lib/components/HoverCard/HoverCardRoot.mjs.map +1 -1
  91. package/dist/lib/components/IconButton/index.d.ts +1 -1
  92. package/dist/lib/components/IconButton/index.js +9 -1
  93. package/dist/lib/components/IconButton/index.mjs +1 -1
  94. package/dist/lib/components/IconButton/index.mjs.map +1 -1
  95. package/dist/lib/components/Inset/index.d.ts +1 -1
  96. package/dist/lib/components/Inset/index.js +7 -1
  97. package/dist/lib/components/Inset/index.mjs +1 -1
  98. package/dist/lib/components/Inset/index.mjs.map +1 -1
  99. package/dist/lib/components/Label/index.d.ts +1 -1
  100. package/dist/lib/components/Label/index.js +11 -3
  101. package/dist/lib/components/Label/index.mjs +1 -1
  102. package/dist/lib/components/Label/index.mjs.map +1 -1
  103. package/dist/lib/components/Menubar/MenubarContent.d.ts +1 -1
  104. package/dist/lib/components/Menubar/MenubarItem.d.ts +1 -1
  105. package/dist/lib/components/Menubar/MenubarItemIndicator.d.ts +1 -1
  106. package/dist/lib/components/Menubar/MenubarRadioGroup.js +1 -0
  107. package/dist/lib/components/Menubar/MenubarRadioGroup.mjs +1 -0
  108. package/dist/lib/components/Menubar/MenubarRadioGroup.mjs.map +1 -1
  109. package/dist/lib/components/Menubar/MenubarRoot.d.ts +1 -1
  110. package/dist/lib/components/Menubar/MenubarRoot.js +13 -3
  111. package/dist/lib/components/Menubar/MenubarRoot.mjs +2 -1
  112. package/dist/lib/components/Menubar/MenubarRoot.mjs.map +1 -1
  113. package/dist/lib/components/Menubar/MenubarSubContent.d.ts +1 -1
  114. package/dist/lib/components/Menubar/MenubarTrigger.d.ts +1 -1
  115. package/dist/lib/components/NavigationMenu/NavigationMenuContent.d.ts +1 -1
  116. package/dist/lib/components/NavigationMenu/NavigationMenuLink.d.ts +1 -1
  117. package/dist/lib/components/NavigationMenu/NavigationMenuList.d.ts +1 -1
  118. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +11 -2
  119. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs +2 -1
  120. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs.map +1 -1
  121. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.d.ts +1 -1
  122. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.d.ts +2 -2
  123. package/dist/lib/components/Popover/PopoverClose.d.ts +1 -1
  124. package/dist/lib/components/Popover/PopoverContent.d.ts +1 -1
  125. package/dist/lib/components/Popover/PopoverRoot.js +8 -1
  126. package/dist/lib/components/Popover/PopoverRoot.mjs +2 -1
  127. package/dist/lib/components/Popover/PopoverRoot.mjs.map +1 -1
  128. package/dist/lib/components/Progress/index.d.ts +1 -1
  129. package/dist/lib/components/Progress/index.js +11 -1
  130. package/dist/lib/components/Progress/index.mjs +1 -1
  131. package/dist/lib/components/Progress/index.mjs.map +1 -1
  132. package/dist/lib/components/RadarChart/index.js +1 -1
  133. package/dist/lib/components/RadarChart/index.mjs.map +1 -1
  134. package/dist/lib/components/Radio/index.js +10 -4
  135. package/dist/lib/components/Radio/index.mjs +1 -1
  136. package/dist/lib/components/Radio/index.mjs.map +1 -1
  137. package/dist/lib/components/RadioCards/RadioCardsItem.d.ts +1 -1
  138. package/dist/lib/components/RadioCards/RadioCardsRoot.js +12 -2
  139. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs +2 -1
  140. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +1 -1
  141. package/dist/lib/components/RadioGroup/RadioGroupRoot.js +11 -2
  142. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +2 -1
  143. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +1 -1
  144. package/dist/lib/components/ScrollArea/index.js +3 -1
  145. package/dist/lib/components/ScrollArea/index.mjs +1 -1
  146. package/dist/lib/components/ScrollArea/index.mjs.map +1 -1
  147. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +7 -1
  148. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +1 -1
  149. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +1 -1
  150. package/dist/lib/components/Select/index.d.ts +4 -2
  151. package/dist/lib/components/Select/index.js +30 -13
  152. package/dist/lib/components/Select/index.mjs +1 -1
  153. package/dist/lib/components/Select/index.mjs.map +1 -1
  154. package/dist/lib/components/Separator/index.js +7 -1
  155. package/dist/lib/components/Separator/index.mjs +1 -1
  156. package/dist/lib/components/Separator/index.mjs.map +1 -1
  157. package/dist/lib/components/Skeleton/index.d.ts +1 -1
  158. package/dist/lib/components/Skeleton/index.js +4 -1
  159. package/dist/lib/components/Skeleton/index.mjs +1 -1
  160. package/dist/lib/components/Skeleton/index.mjs.map +1 -1
  161. package/dist/lib/components/Slider/index.d.ts +1 -1
  162. package/dist/lib/components/Slider/index.js +13 -5
  163. package/dist/lib/components/Slider/index.mjs +1 -1
  164. package/dist/lib/components/Slider/index.mjs.map +1 -1
  165. package/dist/lib/components/Spinner/index.js +3 -1
  166. package/dist/lib/components/Spinner/index.mjs +1 -1
  167. package/dist/lib/components/Spinner/index.mjs.map +1 -1
  168. package/dist/lib/components/TabNav/index.js +6 -4
  169. package/dist/lib/components/TabNav/index.mjs +1 -1
  170. package/dist/lib/components/TabNav/index.mjs.map +1 -1
  171. package/dist/lib/components/Table/index.d.ts +1 -1
  172. package/dist/lib/components/Table/index.js +7 -1
  173. package/dist/lib/components/Table/index.mjs +1 -1
  174. package/dist/lib/components/Table/index.mjs.map +1 -1
  175. package/dist/lib/components/Tabs/index.d.ts +1 -1
  176. package/dist/lib/components/Tabs/index.js +4 -4
  177. package/dist/lib/components/Tabs/index.mjs +1 -1
  178. package/dist/lib/components/Tabs/index.mjs.map +1 -1
  179. package/dist/lib/components/TextArea/index.d.ts +1 -1
  180. package/dist/lib/components/TextArea/index.js +11 -4
  181. package/dist/lib/components/TextArea/index.mjs +1 -1
  182. package/dist/lib/components/TextArea/index.mjs.map +1 -1
  183. package/dist/lib/components/TextField/index.d.ts +1 -1
  184. package/dist/lib/components/TextField/index.js +11 -4
  185. package/dist/lib/components/TextField/index.mjs +1 -1
  186. package/dist/lib/components/TextField/index.mjs.map +1 -1
  187. package/dist/lib/components/Toast/ToastActionButton.d.ts +1 -1
  188. package/dist/lib/components/Toast/ToastActionButton.js +2 -2
  189. package/dist/lib/components/Toast/ToastActionButton.mjs +1 -1
  190. package/dist/lib/components/Toast/ToastActionButton.mjs.map +1 -1
  191. package/dist/lib/components/Toast/ToastRoot.d.ts +1 -1
  192. package/dist/lib/components/Toast/ToastRoot.js +11 -3
  193. package/dist/lib/components/Toast/ToastRoot.mjs +2 -1
  194. package/dist/lib/components/Toast/ToastRoot.mjs.map +1 -1
  195. package/dist/lib/components/Toggle/ToggleWithText.d.ts +1 -1
  196. package/dist/lib/components/Toggle/ToggleWithText.js +9 -1
  197. package/dist/lib/components/Toggle/ToggleWithText.mjs +1 -1
  198. package/dist/lib/components/Toggle/ToggleWithText.mjs.map +1 -1
  199. package/dist/lib/components/Toggle/index.d.ts +1 -1
  200. package/dist/lib/components/Toggle/index.js +9 -1
  201. package/dist/lib/components/Toggle/index.mjs +1 -1
  202. package/dist/lib/components/Toggle/index.mjs.map +1 -1
  203. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +10 -2
  204. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +2 -1
  205. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +1 -1
  206. package/dist/lib/components/ToggleSwitch/index.d.ts +1 -1
  207. package/dist/lib/components/ToggleSwitch/index.js +13 -1
  208. package/dist/lib/components/ToggleSwitch/index.mjs +1 -1
  209. package/dist/lib/components/ToggleSwitch/index.mjs.map +1 -1
  210. package/dist/lib/components/Tooltip/index.d.ts +2 -2
  211. package/dist/lib/components/Tooltip/index.js +13 -8
  212. package/dist/lib/components/Tooltip/index.mjs +1 -1
  213. package/dist/lib/components/Tooltip/index.mjs.map +1 -1
  214. package/dist/lib/constants.d.ts +0 -2
  215. package/dist/lib/constants.js +7 -31
  216. package/dist/lib/constants.mjs +1 -1
  217. package/dist/lib/constants.mjs.map +1 -1
  218. package/dist/lib/index.d.ts +1 -0
  219. package/dist/lib/index.js +1 -0
  220. package/dist/lib/index.mjs +1 -1
  221. package/dist/lib/theme/ThemeProvider.d.ts +16 -0
  222. package/dist/lib/theme/ThemeProvider.js +29 -0
  223. package/dist/lib/theme/ThemeProvider.mjs +3 -0
  224. package/dist/lib/theme/ThemeProvider.mjs.map +1 -0
  225. package/dist/lib/theme/index.d.ts +2 -0
  226. package/dist/lib/theme/index.js +2 -0
  227. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  228. package/dist/lib/utils/classPrefixes.js +1 -0
  229. package/dist/lib/utils/useDarkMode.js +1 -0
  230. package/dist/lib/utils/useDarkMode.mjs +1 -0
  231. package/dist/lib/utils/useDarkMode.mjs.map +1 -1
  232. package/dist/tailwind.config.js +4 -7
  233. package/dist/tsconfig.tsbuildinfo +1 -1
  234. package/package.json +141 -140
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/IconButton/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React, { Children, forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { scalingVariants, radiusVariants, primaryColorStyle, appearanceStyle } from '../../../lib/constants';\nimport { cn } from '../../../lib/utils/utils';\nvar iconButtonVariants = cva(\"grid place-content-center transition-colors focus:outline-none hover:cursor-pointer\\n disabled:cursor-not-allowed disabled:bg-slate-3 disabled:text-slate-8\", {\n variants: {\n radius: __assign({}, radiusVariants['base']),\n scaling: __assign({}, scalingVariants),\n size: {\n 'x-small': 'p-1 w-5 h-5',\n small: 'p-[6px] w-6 h-6',\n medium: 'p-2 w-8 h-8',\n large: 'p-[11px] w-10 h-10',\n 'x-large': 'p-[14px] w-12 h-12',\n },\n color: primaryColorStyle(),\n },\n defaultVariants: {\n radius: 'medium',\n scaling: '100%',\n size: 'medium',\n color: 'red',\n },\n});\nvar iconSize = {\n 'x-small': 12,\n small: 14,\n medium: 16,\n large: 18,\n 'x-large': 20,\n};\nexport var IconButton = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, radius = _a.radius, _b = _a.size, size = _b === void 0 ? 'medium' : _b, scaling = _a.scaling, _c = _a.color, color = _c === void 0 ? 'red' : _c, _d = _a.appearance, appearance = _d === void 0 ? 'solid' : _d, props = __rest(_a, [\"children\", \"className\", \"radius\", \"size\", \"scaling\", \"color\", \"appearance\"]);\n var width = iconSize[size];\n var height = iconSize[size];\n var buttonClassName = cn(iconButtonVariants({ radius: radius, scaling: scaling, size: size, color: color }), appearanceStyle(appearance, color, true), className);\n return (_jsx(\"button\", __assign({ ref: ref, className: buttonClassName }, props, { children: Children.map(children, function (child) { return React.cloneElement(child, { width: width, height: height }); }) })));\n});\nIconButton.displayName = 'IconButton';\nexport default IconButton;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","iconButtonVariants","cva","variants","radius","radiusVariants","scaling","scalingVariants","size","small","medium","large","color","primaryColorStyle","defaultVariants","iconSize","IconButton","forwardRef","_a","ref","children","className","_b","_c","_d","appearance","props","width","height","buttonClassName","cn","appearanceStyle","_jsx","Children","map","child","React","cloneElement","displayName"],"mappings":"4SAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAMIiB,EAAqBC,EAAI,+JAAgK,CACzLC,SAAU,CACNC,OAAQvB,EAAS,CAAA,EAAIwB,EAAqB,MAC1CC,QAASzB,EAAS,CAAE,EAAE0B,GACtBC,KAAM,CACF,UAAW,cACXC,MAAO,kBACPC,OAAQ,cACRC,MAAO,qBACP,UAAW,sBAEfC,MAAOC,KAEXC,gBAAiB,CACbV,OAAQ,SACRE,QAAS,OACTE,KAAM,SACNI,MAAO,SAGXG,EAAW,CACX,UAAW,GACXN,MAAO,GACPC,OAAQ,GACRC,MAAO,GACP,UAAW,IAEJK,EAAaC,GAAW,SAAUC,EAAIC,GAC7C,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWjB,EAASc,EAAGd,OAAQkB,EAAKJ,EAAGV,KAAMA,OAAc,IAAPc,EAAgB,SAAWA,EAAIhB,EAAUY,EAAGZ,QAASiB,EAAKL,EAAGN,MAAOA,OAAe,IAAPW,EAAgB,MAAQA,EAAIC,EAAKN,EAAGO,WAAYA,OAAoB,IAAPD,EAAgB,QAAUA,EAAIE,EAAQ9B,EAAOsB,EAAI,CAAC,WAAY,YAAa,SAAU,OAAQ,UAAW,QAAS,eACrVS,EAAQZ,EAASP,GACjBoB,EAASb,EAASP,GAClBqB,EAAkBC,EAAG7B,EAAmB,CAAEG,OAAQA,EAAQE,QAASA,EAASE,KAAMA,EAAMI,MAAOA,IAAUmB,EAAgBN,EAAYb,GAAO,GAAOS,GACvJ,OAAQW,EAAK,SAAUnD,EAAS,CAAEsC,IAAKA,EAAKE,UAAWQ,GAAmBH,EAAO,CAAEN,SAAUa,EAASC,IAAId,GAAU,SAAUe,GAAS,OAAOC,EAAMC,aAAaF,EAAO,CAAER,MAAOA,EAAOC,OAAQA,GAAU,MAC9M,IACAZ,EAAWsB,YAAc"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../lib/components/IconButton/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React, { Children, forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { scalingVariants, radiusVariants, primaryColorStyle, appearanceStyle } from '../../../lib/constants';\nimport { cn } from '../../../lib/utils/utils';\nimport { useTheme } from '../../../lib/theme';\nvar iconButtonVariants = cva(\"grid place-content-center transition-colors focus:outline-none hover:cursor-pointer\\n disabled:cursor-not-allowed disabled:bg-slate-3 disabled:text-slate-8\", {\n variants: {\n radius: __assign({}, radiusVariants['base']),\n scaling: __assign({}, scalingVariants),\n size: {\n 'x-small': 'p-1 w-5 h-5',\n small: 'p-[6px] w-6 h-6',\n medium: 'p-2 w-8 h-8',\n large: 'p-[11px] w-10 h-10',\n 'x-large': 'p-[14px] w-12 h-12',\n },\n color: primaryColorStyle(),\n },\n defaultVariants: {\n radius: 'medium',\n scaling: '100%',\n size: 'medium',\n color: 'red',\n },\n});\nvar iconSize = {\n 'x-small': 12,\n small: 14,\n medium: 16,\n large: 18,\n 'x-large': 20,\n};\nexport var IconButton = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, radius = _a.radius, _b = _a.size, size = _b === void 0 ? 'medium' : _b, scaling = _a.scaling, _c = _a.color, color = _c === void 0 ? 'red' : _c, _d = _a.appearance, appearance = _d === void 0 ? 'solid' : _d, props = __rest(_a, [\"children\", \"className\", \"radius\", \"size\", \"scaling\", \"color\", \"appearance\"]);\n var theme = useTheme().theme;\n var width = iconSize[size];\n var height = iconSize[size];\n var iconButtonStyle = {\n radius: theme.themeRadius || radius,\n scaling: theme.themeScaling || scaling,\n color: theme.themeColor || color,\n size: size,\n };\n var buttonClassName = cn(iconButtonVariants(iconButtonStyle), appearanceStyle(appearance, iconButtonStyle.color, true), className);\n return (_jsx(\"button\", __assign({ ref: ref, className: buttonClassName }, props, { children: Children.map(children, function (child) { return React.cloneElement(child, { width: width, height: height }); }) })));\n});\nIconButton.displayName = 'IconButton';\nexport default IconButton;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","iconButtonVariants","cva","variants","radius","radiusVariants","scaling","scalingVariants","size","small","medium","large","color","primaryColorStyle","defaultVariants","iconSize","IconButton","forwardRef","_a","ref","children","className","_b","_c","_d","appearance","props","theme","useTheme","width","height","iconButtonStyle","themeRadius","themeScaling","themeColor","buttonClassName","cn","appearanceStyle","_jsx","Children","map","child","React","cloneElement","displayName"],"mappings":"qWAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOIiB,EAAqBC,EAAI,+JAAgK,CACzLC,SAAU,CACNC,OAAQvB,EAAS,CAAA,EAAIwB,EAAqB,MAC1CC,QAASzB,EAAS,CAAE,EAAE0B,GACtBC,KAAM,CACF,UAAW,cACXC,MAAO,kBACPC,OAAQ,cACRC,MAAO,qBACP,UAAW,sBAEfC,MAAOC,KAEXC,gBAAiB,CACbV,OAAQ,SACRE,QAAS,OACTE,KAAM,SACNI,MAAO,SAGXG,EAAW,CACX,UAAW,GACXN,MAAO,GACPC,OAAQ,GACRC,MAAO,GACP,UAAW,IAEJK,EAAaC,GAAW,SAAUC,EAAIC,GAC7C,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWjB,EAASc,EAAGd,OAAQkB,EAAKJ,EAAGV,KAAMA,OAAc,IAAPc,EAAgB,SAAWA,EAAIhB,EAAUY,EAAGZ,QAASiB,EAAKL,EAAGN,MAAOA,OAAe,IAAPW,EAAgB,MAAQA,EAAIC,EAAKN,EAAGO,WAAYA,OAAoB,IAAPD,EAAgB,QAAUA,EAAIE,EAAQ9B,EAAOsB,EAAI,CAAC,WAAY,YAAa,SAAU,OAAQ,UAAW,QAAS,eACrVS,EAAQC,IAAWD,MACnBE,EAAQd,EAASP,GACjBsB,EAASf,EAASP,GAClBuB,EAAkB,CAClB3B,OAAQuB,EAAMK,aAAe5B,EAC7BE,QAASqB,EAAMM,cAAgB3B,EAC/BM,MAAOe,EAAMO,YAActB,EAC3BJ,KAAMA,GAEN2B,EAAkBC,EAAGnC,EAAmB8B,GAAkBM,EAAgBZ,EAAYM,EAAgBnB,OAAO,GAAOS,GACxH,OAAQiB,EAAK,SAAUzD,EAAS,CAAEsC,IAAKA,EAAKE,UAAWc,GAAmBT,EAAO,CAAEN,SAAUmB,EAASC,IAAIpB,GAAU,SAAUqB,GAAS,OAAOC,EAAMC,aAAaF,EAAO,CAAEZ,MAAOA,EAAOC,OAAQA,GAAU,MAC9M,IACAd,EAAW4B,YAAc"}
@@ -3,7 +3,7 @@ import { VariantProps } from 'class-variance-authority';
3
3
  export interface InsetProps extends VariantProps<typeof insetVariants> {
4
4
  }
5
5
  declare const insetVariants: (props?: ({
6
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
6
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
7
7
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
8
8
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
9
9
  export declare const Inset: React.ForwardRefExoticComponent<Omit<import("@radix-ui/themes").InsetProps & React.RefAttributes<HTMLDivElement>, "ref"> & InsetProps & React.RefAttributes<HTMLDivElement>>;
@@ -26,6 +26,7 @@ import { cva } from 'class-variance-authority';
26
26
  import { Inset as InsetTheme, Theme } from '@radix-ui/themes';
27
27
  import { scalingVariants } from '../../../lib/constants';
28
28
  import { cn } from '../../../lib/utils/utils';
29
+ import { useTheme } from '../../../lib/theme';
29
30
  var insetVariants = cva('border-[1px] border-slate-6 dark:border-slateDark-6 text-slate-12 dark:text-slateDark-12', {
30
31
  variants: {
31
32
  radius: {
@@ -44,7 +45,12 @@ var insetVariants = cva('border-[1px] border-slate-6 dark:border-slateDark-6 tex
44
45
  });
45
46
  export var Inset = forwardRef(function (_a, ref) {
46
47
  var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, props = __rest(_a, ["children", "className", "radius", "scaling"]);
47
- return (_jsx(Theme, { children: _jsx(InsetTheme, __assign({ ref: ref, className: cn(insetVariants({ radius: radius, scaling: scaling }), className) }, props, { children: children })) }));
48
+ var theme = useTheme().theme;
49
+ var insetStyle = {
50
+ radius: theme.themeRadius || radius,
51
+ scaling: theme.themeScaling || scaling,
52
+ };
53
+ return (_jsx(Theme, { children: _jsx(InsetTheme, __assign({ ref: ref, className: cn(insetVariants(insetStyle), className) }, props, { children: children })) }));
48
54
  });
49
55
  Inset.displayName = 'Inset';
50
56
  export default Inset;
@@ -1,2 +1,2 @@
1
- import{jsx as r}from"react/jsx-runtime";import{forwardRef as e}from"react";import{cva as t}from"class-variance-authority";import{Theme as a,Inset as n}from"@radix-ui/themes";import{scalingVariants as o}from"../../constants.mjs";import{cn as d}from"../../utils/utils.mjs";var s=function(){return s=Object.assign||function(r){for(var e,t=1,a=arguments.length;t<a;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},s.apply(this,arguments)},i=function(r,e){var t={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(t[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(r);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(r,a[n])&&(t[a[n]]=r[a[n]])}return t},l=t("border-[1px] border-slate-6 dark:border-slateDark-6 text-slate-12 dark:text-slateDark-12",{variants:{radius:{none:"rounded-none after:rounded-none",small:"rounded-[3px] after:rounded-[3px]",medium:"rounded after:rounded",large:"rounded-md after:rounded-md",full:"rounded-md after:rounded-md"},scaling:s({},o)},defaultVariants:{radius:"medium",scaling:"100%"}}),u=e((function(e,t){var o=e.children,u=e.className,m=e.radius,c=e.scaling,f=i(e,["children","className","radius","scaling"]);return r(a,{children:r(n,s({ref:t,className:d(l({radius:m,scaling:c}),u)},f,{children:o}))})}));u.displayName="Inset";export{u as Inset,u as default};
1
+ import{jsx as r}from"react/jsx-runtime";import{forwardRef as e}from"react";import{cva as t}from"class-variance-authority";import{Theme as a,Inset as n}from"@radix-ui/themes";import{scalingVariants as o}from"../../constants.mjs";import{cn as d}from"../../utils/utils.mjs";import{useTheme as i}from"../../theme/ThemeProvider.mjs";var s=function(){return s=Object.assign||function(r){for(var e,t=1,a=arguments.length;t<a;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},s.apply(this,arguments)},l=function(r,e){var t={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(t[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(r);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(r,a[n])&&(t[a[n]]=r[a[n]])}return t},m=t("border-[1px] border-slate-6 dark:border-slateDark-6 text-slate-12 dark:text-slateDark-12",{variants:{radius:{none:"rounded-none after:rounded-none",small:"rounded-[3px] after:rounded-[3px]",medium:"rounded after:rounded",large:"rounded-md after:rounded-md",full:"rounded-md after:rounded-md"},scaling:s({},o)},defaultVariants:{radius:"medium",scaling:"100%"}}),u=e((function(e,t){var o=e.children,u=e.className,c=e.radius,f=e.scaling,p=l(e,["children","className","radius","scaling"]),h=i().theme,y={radius:h.themeRadius||c,scaling:h.themeScaling||f};return r(a,{children:r(n,s({ref:t,className:d(m(y),u)},p,{children:o}))})}));u.displayName="Inset";export{u as Inset,u as default};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/Inset/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { Inset as InsetTheme, Theme } from '@radix-ui/themes';\nimport { scalingVariants } from '../../../lib/constants';\nimport { cn } from '../../../lib/utils/utils';\nvar insetVariants = cva('border-[1px] border-slate-6 dark:border-slateDark-6 text-slate-12 dark:text-slateDark-12', {\n variants: {\n radius: {\n none: 'rounded-none after:rounded-none',\n small: 'rounded-[3px] after:rounded-[3px]',\n medium: 'rounded after:rounded',\n large: 'rounded-md after:rounded-md',\n full: 'rounded-md after:rounded-md',\n },\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n radius: 'medium',\n scaling: '100%',\n },\n});\nexport var Inset = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, props = __rest(_a, [\"children\", \"className\", \"radius\", \"scaling\"]);\n return (_jsx(Theme, { children: _jsx(InsetTheme, __assign({ ref: ref, className: cn(insetVariants({ radius: radius, scaling: scaling }), className) }, props, { children: children })) }));\n});\nInset.displayName = 'Inset';\nexport default Inset;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","insetVariants","cva","variants","radius","none","small","medium","large","full","scaling","scalingVariants","defaultVariants","Inset","forwardRef","_a","ref","children","className","props","_jsx","Theme","InsetTheme","cn","displayName"],"mappings":"+QAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOIiB,EAAgBC,EAAI,2FAA4F,CAChHC,SAAU,CACNC,OAAQ,CACJC,KAAM,kCACNC,MAAO,oCACPC,OAAQ,wBACRC,MAAO,8BACPC,KAAM,+BAEVC,QAAS7B,EAAS,CAAE,EAAE8B,IAE1BC,gBAAiB,CACbR,OAAQ,SACRM,QAAS,UAGNG,EAAQC,GAAW,SAAUC,EAAIC,GACxC,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWd,EAASW,EAAGX,OAAQM,EAAUK,EAAGL,QAASS,EAAQvB,EAAOmB,EAAI,CAAC,WAAY,YAAa,SAAU,YACvJ,OAAQK,EAAKC,EAAO,CAAEJ,SAAUG,EAAKE,EAAYzC,EAAS,CAAEmC,IAAKA,EAAKE,UAAWK,EAAGtB,EAAc,CAAEG,OAAQA,EAAQM,QAASA,IAAYQ,IAAcC,EAAO,CAAEF,SAAUA,MAC9K,IACAJ,EAAMW,YAAc"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../lib/components/Inset/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { Inset as InsetTheme, Theme } from '@radix-ui/themes';\nimport { scalingVariants } from '../../../lib/constants';\nimport { cn } from '../../../lib/utils/utils';\nimport { useTheme } from '../../../lib/theme';\nvar insetVariants = cva('border-[1px] border-slate-6 dark:border-slateDark-6 text-slate-12 dark:text-slateDark-12', {\n variants: {\n radius: {\n none: 'rounded-none after:rounded-none',\n small: 'rounded-[3px] after:rounded-[3px]',\n medium: 'rounded after:rounded',\n large: 'rounded-md after:rounded-md',\n full: 'rounded-md after:rounded-md',\n },\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n radius: 'medium',\n scaling: '100%',\n },\n});\nexport var Inset = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, props = __rest(_a, [\"children\", \"className\", \"radius\", \"scaling\"]);\n var theme = useTheme().theme;\n var insetStyle = {\n radius: theme.themeRadius || radius,\n scaling: theme.themeScaling || scaling,\n };\n return (_jsx(Theme, { children: _jsx(InsetTheme, __assign({ ref: ref, className: cn(insetVariants(insetStyle), className) }, props, { children: children })) }));\n});\nInset.displayName = 'Inset';\nexport default Inset;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","insetVariants","cva","variants","radius","none","small","medium","large","full","scaling","scalingVariants","defaultVariants","Inset","forwardRef","_a","ref","children","className","props","theme","useTheme","insetStyle","themeRadius","themeScaling","_jsx","Theme","InsetTheme","cn","displayName"],"mappings":"wUAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAQIiB,EAAgBC,EAAI,2FAA4F,CAChHC,SAAU,CACNC,OAAQ,CACJC,KAAM,kCACNC,MAAO,oCACPC,OAAQ,wBACRC,MAAO,8BACPC,KAAM,+BAEVC,QAAS7B,EAAS,CAAE,EAAE8B,IAE1BC,gBAAiB,CACbR,OAAQ,SACRM,QAAS,UAGNG,EAAQC,GAAW,SAAUC,EAAIC,GACxC,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWd,EAASW,EAAGX,OAAQM,EAAUK,EAAGL,QAASS,EAAQvB,EAAOmB,EAAI,CAAC,WAAY,YAAa,SAAU,YACnJK,EAAQC,IAAWD,MACnBE,EAAa,CACblB,OAAQgB,EAAMG,aAAenB,EAC7BM,QAASU,EAAMI,cAAgBd,GAEnC,OAAQe,EAAKC,EAAO,CAAET,SAAUQ,EAAKE,EAAY9C,EAAS,CAAEmC,IAAKA,EAAKE,UAAWU,EAAG3B,EAAcqB,GAAaJ,IAAcC,EAAO,CAAEF,SAAUA,MACpJ,IACAJ,EAAMgB,YAAc"}
@@ -9,7 +9,7 @@ export interface LabelProps extends VariantProps<typeof labeVariants> {
9
9
  }
10
10
  declare const labeVariants: (props?: ({
11
11
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
12
- weight?: "bold" | "medium" | "regular" | "semibold" | null | undefined;
12
+ weight?: "medium" | "regular" | "semibold" | "bold" | null | undefined;
13
13
  size?: "small" | "medium" | "large" | null | undefined;
14
14
  color?: string | null | undefined;
15
15
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -26,6 +26,7 @@ import React from 'react';
26
26
  import { cn } from '../../../lib/utils/utils';
27
27
  import { cva } from 'class-variance-authority';
28
28
  import { scalingVariants, textColorStyle, weightVariants } from '../../../lib/constants';
29
+ import { useTheme } from '../../../lib/theme';
29
30
  var labeVariants = cva('text-slate-12', {
30
31
  variants: {
31
32
  scaling: __assign({}, scalingVariants),
@@ -45,9 +46,16 @@ var labeVariants = cva('text-slate-12', {
45
46
  });
46
47
  export var Label = React.forwardRef(function (_a, forwardedRef) {
47
48
  var className = _a.className, scaling = _a.scaling, weight = _a.weight, size = _a.size, color = _a.color, children = _a.children, rootProps = __rest(_a, ["className", "scaling", "weight", "size", "color", "children"]);
48
- if (weight === 'medium' || weight === 'semibold')
49
- weight = 'bold';
50
- return (_jsx(LabelPrimitive.Root, __assign({}, rootProps, { ref: forwardedRef, className: cn('', labeVariants({ scaling: scaling, size: size, weight: weight, color: color }), className), children: children })));
49
+ var theme = useTheme().theme;
50
+ var labelStyle = {
51
+ scaling: theme.themeScaling || scaling,
52
+ weight: theme.themeWeight || weight,
53
+ color: theme.themeColor || color,
54
+ size: size,
55
+ };
56
+ if (labelStyle.weight === 'medium' || labelStyle.weight === 'semibold')
57
+ labelStyle.weight = 'bold';
58
+ return (_jsx(LabelPrimitive.Root, __assign({}, rootProps, { ref: forwardedRef, className: cn('', labeVariants(labelStyle), className), children: children })));
51
59
  });
52
60
  Label.displayName = 'Label';
53
61
  export default Label;
@@ -1,2 +1,2 @@
1
- import{jsx as r}from"react/jsx-runtime";import*as t from"@radix-ui/react-label";import e from"react";import{cn as a}from"../../utils/utils.mjs";import{cva as o}from"class-variance-authority";import{scalingVariants as i,weightVariants as l,textColorStyle as s}from"../../constants.mjs";var n=function(){return n=Object.assign||function(r){for(var t,e=1,a=arguments.length;e<a;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},n.apply(this,arguments)},c=function(r,t){var e={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&t.indexOf(a)<0&&(e[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(r);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(r,a[o])&&(e[a[o]]=r[a[o]])}return e},m=o("text-slate-12",{variants:{scaling:n({},i),weight:n({},l),size:{small:"text-xs",medium:"text-sm",large:"text-base"},color:s()},defaultVariants:{scaling:"100%",size:"medium",color:"black"}}),f=e.forwardRef((function(e,o){var i=e.className,l=e.scaling,s=e.weight,f=e.size,p=e.color,u=e.children,b=c(e,["className","scaling","weight","size","color","children"]);return"medium"!==s&&"semibold"!==s||(s="bold"),r(t.Root,n({},b,{ref:o,className:a("",m({scaling:l,size:f,weight:s,color:p}),i),children:u}))}));f.displayName="Label";export{f as Label,f as default};
1
+ import{jsx as e}from"react/jsx-runtime";import*as t from"@radix-ui/react-label";import r from"react";import{cn as o}from"../../utils/utils.mjs";import{cva as i}from"class-variance-authority";import{scalingVariants as a,weightVariants as l,textColorStyle as s}from"../../constants.mjs";import{useTheme as n}from"../../theme/ThemeProvider.mjs";var m=function(){return m=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},m.apply(this,arguments)},c=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(r[o[i]]=e[o[i]])}return r},f=i("text-slate-12",{variants:{scaling:m({},a),weight:m({},l),size:{small:"text-xs",medium:"text-sm",large:"text-base"},color:s()},defaultVariants:{scaling:"100%",size:"medium",color:"black"}}),p=r.forwardRef((function(r,i){var a=r.className,l=r.scaling,s=r.weight,p=r.size,h=r.color,u=r.children,g=c(r,["className","scaling","weight","size","color","children"]),d=n().theme,b={scaling:d.themeScaling||l,weight:d.themeWeight||s,color:d.themeColor||h,size:p};return"medium"!==b.weight&&"semibold"!==b.weight||(b.weight="bold"),e(t.Root,m({},g,{ref:i,className:o("",f(b),a),children:u}))}));p.displayName="Label";export{p as Label,p as default};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/Label/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport React from 'react';\nimport { cn } from '../../../lib/utils/utils';\nimport { cva } from 'class-variance-authority';\nimport { scalingVariants, textColorStyle, weightVariants } from '../../../lib/constants';\nvar labeVariants = cva('text-slate-12', {\n variants: {\n scaling: __assign({}, scalingVariants),\n weight: __assign({}, weightVariants),\n size: {\n small: 'text-xs',\n medium: 'text-sm',\n large: 'text-base',\n },\n color: textColorStyle(),\n },\n defaultVariants: {\n scaling: '100%',\n size: 'medium',\n color: 'black',\n },\n});\nexport var Label = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, scaling = _a.scaling, weight = _a.weight, size = _a.size, color = _a.color, children = _a.children, rootProps = __rest(_a, [\"className\", \"scaling\", \"weight\", \"size\", \"color\", \"children\"]);\n if (weight === 'medium' || weight === 'semibold')\n weight = 'bold';\n return (_jsx(LabelPrimitive.Root, __assign({}, rootProps, { ref: forwardedRef, className: cn('', labeVariants({ scaling: scaling, size: size, weight: weight, color: color }), className), children: children })));\n});\nLabel.displayName = 'Label';\nexport default Label;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","labeVariants","cva","variants","scaling","scalingVariants","weight","weightVariants","size","small","medium","large","color","textColorStyle","defaultVariants","Label","React","forwardRef","_a","forwardedRef","className","children","rootProps","_jsx","LabelPrimitive","Root","ref","cn","displayName"],"mappings":"6RAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOIiB,EAAeC,EAAI,gBAAiB,CACpCC,SAAU,CACNC,QAASvB,EAAS,CAAE,EAAEwB,GACtBC,OAAQzB,EAAS,CAAE,EAAE0B,GACrBC,KAAM,CACFC,MAAO,UACPC,OAAQ,UACRC,MAAO,aAEXC,MAAOC,KAEXC,gBAAiB,CACbV,QAAS,OACTI,KAAM,SACNI,MAAO,WAGJG,EAAQC,EAAMC,YAAW,SAAUC,EAAIC,GAC9C,IAAIC,EAAYF,EAAGE,UAAWhB,EAAUc,EAAGd,QAASE,EAASY,EAAGZ,OAAQE,EAAOU,EAAGV,KAAMI,EAAQM,EAAGN,MAAOS,EAAWH,EAAGG,SAAUC,EAAY1B,EAAOsB,EAAI,CAAC,YAAa,UAAW,SAAU,OAAQ,QAAS,aAG7M,MAFe,WAAXZ,GAAkC,aAAXA,IACvBA,EAAS,QACLiB,EAAKC,EAAeC,KAAM5C,EAAS,CAAA,EAAIyC,EAAW,CAAEI,IAAKP,EAAcC,UAAWO,EAAG,GAAI1B,EAAa,CAAEG,QAASA,EAASI,KAAMA,EAAMF,OAAQA,EAAQM,MAAOA,IAAUQ,GAAYC,SAAUA,IACzM,IACAN,EAAMa,YAAc"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../lib/components/Label/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport React from 'react';\nimport { cn } from '../../../lib/utils/utils';\nimport { cva } from 'class-variance-authority';\nimport { scalingVariants, textColorStyle, weightVariants } from '../../../lib/constants';\nimport { useTheme } from '../../../lib/theme';\nvar labeVariants = cva('text-slate-12', {\n variants: {\n scaling: __assign({}, scalingVariants),\n weight: __assign({}, weightVariants),\n size: {\n small: 'text-xs',\n medium: 'text-sm',\n large: 'text-base',\n },\n color: textColorStyle(),\n },\n defaultVariants: {\n scaling: '100%',\n size: 'medium',\n color: 'black',\n },\n});\nexport var Label = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, scaling = _a.scaling, weight = _a.weight, size = _a.size, color = _a.color, children = _a.children, rootProps = __rest(_a, [\"className\", \"scaling\", \"weight\", \"size\", \"color\", \"children\"]);\n var theme = useTheme().theme;\n var labelStyle = {\n scaling: theme.themeScaling || scaling,\n weight: theme.themeWeight || weight,\n color: theme.themeColor || color,\n size: size,\n };\n if (labelStyle.weight === 'medium' || labelStyle.weight === 'semibold')\n labelStyle.weight = 'bold';\n return (_jsx(LabelPrimitive.Root, __assign({}, rootProps, { ref: forwardedRef, className: cn('', labeVariants(labelStyle), className), children: children })));\n});\nLabel.displayName = 'Label';\nexport default Label;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","labeVariants","cva","variants","scaling","scalingVariants","weight","weightVariants","size","small","medium","large","color","textColorStyle","defaultVariants","Label","React","forwardRef","_a","forwardedRef","className","children","rootProps","theme","useTheme","labelStyle","themeScaling","themeWeight","themeColor","_jsx","LabelPrimitive","Root","ref","cn","displayName"],"mappings":"sVAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAQIiB,EAAeC,EAAI,gBAAiB,CACpCC,SAAU,CACNC,QAASvB,EAAS,CAAE,EAAEwB,GACtBC,OAAQzB,EAAS,CAAE,EAAE0B,GACrBC,KAAM,CACFC,MAAO,UACPC,OAAQ,UACRC,MAAO,aAEXC,MAAOC,KAEXC,gBAAiB,CACbV,QAAS,OACTI,KAAM,SACNI,MAAO,WAGJG,EAAQC,EAAMC,YAAW,SAAUC,EAAIC,GAC9C,IAAIC,EAAYF,EAAGE,UAAWhB,EAAUc,EAAGd,QAASE,EAASY,EAAGZ,OAAQE,EAAOU,EAAGV,KAAMI,EAAQM,EAAGN,MAAOS,EAAWH,EAAGG,SAAUC,EAAY1B,EAAOsB,EAAI,CAAC,YAAa,UAAW,SAAU,OAAQ,QAAS,aACzMK,EAAQC,IAAWD,MACnBE,EAAa,CACbrB,QAASmB,EAAMG,cAAgBtB,EAC/BE,OAAQiB,EAAMI,aAAerB,EAC7BM,MAAOW,EAAMK,YAAchB,EAC3BJ,KAAMA,GAIV,MAF0B,WAAtBiB,EAAWnB,QAA6C,aAAtBmB,EAAWnB,SAC7CmB,EAAWnB,OAAS,QAChBuB,EAAKC,EAAeC,KAAMlD,EAAS,CAAA,EAAIyC,EAAW,CAAEU,IAAKb,EAAcC,UAAWa,EAAG,GAAIhC,EAAawB,GAAaL,GAAYC,SAAUA,IACrJ,IACAN,EAAMmB,YAAc"}
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
4
4
  export interface MenubarContentProps extends VariantProps<typeof menubarContentVariants> {
5
5
  }
6
6
  export declare const menubarContentVariants: (props?: ({
7
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
7
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
8
8
  size?: "small" | "medium" | null | undefined;
9
9
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
10
10
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -6,7 +6,7 @@ export interface MenubarItemProps extends VariantProps<typeof menubarItemVariant
6
6
  shortcut?: string;
7
7
  }
8
8
  export declare const menubarItemVariants: (props?: ({
9
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
9
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
10
10
  size?: "small" | "medium" | null | undefined;
11
11
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
12
12
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
4
4
  export interface MenubarItemIndicatorProps extends VariantProps<typeof menubarItemIndicatorVariants> {
5
5
  }
6
6
  export declare const menubarItemIndicatorVariants: (props?: ({
7
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
7
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
8
8
  size?: "small" | "medium" | null | undefined;
9
9
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
10
  export declare const MenubarItemIndicator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemIndicatorProps & React.RefAttributes<HTMLSpanElement>, "ref"> & MenubarItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -1,2 +1,3 @@
1
+ "use client";
1
2
  import{jsx as r}from"react/jsx-runtime";import{createContext as e,forwardRef as t}from"react";import*as a from"@radix-ui/react-menubar";var n=function(){return n=Object.assign||function(r){for(var e,t=1,a=arguments.length;t<a;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},n.apply(this,arguments)},o=function(r,e){var t={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(t[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(r);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(r,a[n])&&(t[a[n]]=r[a[n]])}return t},l=e({selectedValue:""}),c=t((function(e,t){var c=e.children,i=e.className,u=e.value,p=o(e,["children","className","value"]);return r(a.RadioGroup,n({ref:t,className:i},p,{children:r(l.Provider,{value:{selectedValue:null!=u?u:""},children:c})}))}));c.displayName="Menubar.RadioGroup";export{c as MenubarRadioGroup,l as RadioContext};
2
3
  //# sourceMappingURL=MenubarRadioGroup.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenubarRadioGroup.mjs","sources":["../../../lib/components/Menubar/MenubarRadioGroup.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createContext, forwardRef } from 'react';\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nexport var RadioContext = createContext({ selectedValue: '' });\nexport var MenubarRadioGroup = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, value = _a.value, props = __rest(_a, [\"children\", \"className\", \"value\"]);\n return (_jsx(MenubarPrimitive.RadioGroup, __assign({ ref: ref, className: className }, props, { children: _jsx(RadioContext.Provider, { value: { selectedValue: value !== null && value !== void 0 ? value : '' }, children: children }) })));\n});\nMenubarRadioGroup.displayName = 'Menubar.RadioGroup';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","RadioContext","createContext","selectedValue","MenubarRadioGroup","forwardRef","_a","ref","children","className","value","props","_jsx","MenubarPrimitive","RadioGroup","Provider","displayName"],"mappings":"wIAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAIWiB,EAAeC,EAAc,CAAEC,cAAe,KAC9CC,EAAoBC,GAAW,SAAUC,EAAIC,GACpD,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWC,EAAQJ,EAAGI,MAAOC,EAAQf,EAAOU,EAAI,CAAC,WAAY,YAAa,UACrH,OAAQM,EAAKC,EAAiBC,WAAYjC,EAAS,CAAE0B,IAAKA,EAAKE,UAAWA,GAAaE,EAAO,CAAEH,SAAUI,EAAKX,EAAac,SAAU,CAAEL,MAAO,CAAEP,cAAeO,QAAqCA,EAAQ,IAAMF,SAAUA,MACjO,IACAJ,EAAkBY,YAAc"}
1
+ {"version":3,"file":"MenubarRadioGroup.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -10,7 +10,7 @@ export interface MenubarProps extends VariantProps<typeof menubarVariants>, Vari
10
10
  color?: IColor;
11
11
  }
12
12
  export declare const menubarVariants: (props?: ({
13
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
13
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
14
14
  size?: "small" | "medium" | null | undefined;
15
15
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
16
16
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -21,11 +22,12 @@ var __rest = (this && this.__rest) || function (s, e) {
21
22
  return t;
22
23
  };
23
24
  import { jsx as _jsx } from "react/jsx-runtime";
24
- import { createContext, forwardRef, useContext, useMemo, } from 'react';
25
+ import { createContext, forwardRef, useContext, } from 'react';
25
26
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
26
27
  import { cva } from 'class-variance-authority';
27
28
  import { cn } from '../../../lib/utils/utils';
28
29
  import { radiusVariants, scalingVariants } from '../../../lib/constants';
30
+ import { useTheme } from '../../../lib/theme';
29
31
  export var menubarVariants = cva('flex p-1 shadow bg-white dark:bg-slateDark-1', {
30
32
  variants: {
31
33
  radius: __assign({}, radiusVariants['base']),
@@ -53,8 +55,16 @@ export var useMenubarContext = function () {
53
55
  };
54
56
  export var MenubarRoot = forwardRef(function (_a, ref) {
55
57
  var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'ghost' : _c, _d = _a.itemAppearance, itemAppearance = _d === void 0 ? 'solid' : _d, props = __rest(_a, ["children", "className", "radius", "scaling", "size", "color", "appearance", "itemAppearance"]);
56
- var contextValue = useMemo(function () { return ({ radius: radius, size: size, scaling: scaling, color: color, appearance: appearance, itemAppearance: itemAppearance }); }, [radius, size, scaling, color, appearance, itemAppearance]);
57
- var menuClassName = cn(menubarVariants({ radius: radius, scaling: scaling, size: size }), appearance === 'solid' && "bg-".concat(color, "-9 dark:bg-$").concat(color, "Dark-9"), className);
58
+ var theme = useTheme().theme;
59
+ var contextValue = {
60
+ radius: theme.themeRadius || radius,
61
+ scaling: theme.themeScaling || scaling,
62
+ color: theme.themeColor || color,
63
+ size: size,
64
+ appearance: appearance,
65
+ itemAppearance: itemAppearance,
66
+ };
67
+ var menuClassName = cn(menubarVariants(contextValue), appearance === 'solid' && "bg-".concat(contextValue.color, "-9 dark:bg-$").concat(contextValue.color, "Dark-9"), className);
58
68
  return (_jsx(MenubarContext.Provider, { value: contextValue, children: _jsx(MenubarPrimitive.Root, __assign({ ref: ref, className: menuClassName }, props, { children: children })) }));
59
69
  });
60
70
  MenubarRoot.displayName = 'Menubar.Root';
@@ -1,2 +1,3 @@
1
- import{jsx as r}from"react/jsx-runtime";import{createContext as e,forwardRef as a,useMemo as t,useContext as i}from"react";import*as o from"@radix-ui/react-menubar";import{cva as n}from"class-variance-authority";import{cn as s}from"../../utils/utils.mjs";import{radiusVariants as c,scalingVariants as l}from"../../constants.mjs";var p=function(){return p=Object.assign||function(r){for(var e,a=1,t=arguments.length;a<t;a++)for(var i in e=arguments[a])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r},p.apply(this,arguments)},m=function(r,e){var a={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(a[t]=r[t]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(r);i<t.length;i++)e.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(r,t[i])&&(a[t[i]]=r[t[i]])}return a},u=n("flex p-1 shadow bg-white dark:bg-slateDark-1",{variants:{radius:p({},c.base),size:{small:"text-xs",medium:"text-sm"},scaling:p({},l)},defaultVariants:{radius:"small",size:"medium"}}),d=e({radius:"medium",scaling:"100%",size:"medium",color:"red",appearance:"ghost",itemAppearance:"solid"}),f=function(){return i(d)},g=a((function(e,a){var i=e.children,n=e.className,c=e.radius,l=e.scaling,f=e.size,g=e.color,b=void 0===g?"red":g,h=e.appearance,v=void 0===h?"ghost":h,y=e.itemAppearance,O=void 0===y?"solid":y,j=m(e,["children","className","radius","scaling","size","color","appearance","itemAppearance"]),x=t((function(){return{radius:c,size:f,scaling:l,color:b,appearance:v,itemAppearance:O}}),[c,f,l,b,v,O]),z=s(u({radius:c,scaling:l,size:f}),"solid"===v&&"bg-".concat(b,"-9 dark:bg-$").concat(b,"Dark-9"),n);return r(d.Provider,{value:x,children:r(o.Root,p({ref:a,className:z},j,{children:i}))})}));g.displayName="Menubar.Root";export{g as MenubarRoot,g as default,u as menubarVariants,f as useMenubarContext};
1
+ "use client";
2
+ import{jsx as e}from"react/jsx-runtime";import{createContext as r,forwardRef as a,useContext as t}from"react";import*as o from"@radix-ui/react-menubar";import{cva as i}from"class-variance-authority";import{cn as s}from"../../utils/utils.mjs";import{radiusVariants as n,scalingVariants as c}from"../../constants.mjs";import{useTheme as l}from"../../theme/ThemeProvider.mjs";var m=function(){return m=Object.assign||function(e){for(var r,a=1,t=arguments.length;a<t;a++)for(var o in r=arguments[a])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},m.apply(this,arguments)},p=function(e,r){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(e);o<t.length;o++)r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(a[t[o]]=e[t[o]])}return a},d=i("flex p-1 shadow bg-white dark:bg-slateDark-1",{variants:{radius:m({},n.base),size:{small:"text-xs",medium:"text-sm"},scaling:m({},c)},defaultVariants:{radius:"small",size:"medium"}}),u=r({radius:"medium",scaling:"100%",size:"medium",color:"red",appearance:"ghost",itemAppearance:"solid"}),f=function(){return t(u)},h=a((function(r,a){var t=r.children,i=r.className,n=r.radius,c=r.scaling,f=r.size,h=r.color,g=void 0===h?"red":h,b=r.appearance,v=void 0===b?"ghost":b,y=r.itemAppearance,O=void 0===y?"solid":y,j=p(r,["children","className","radius","scaling","size","color","appearance","itemAppearance"]),x=l().theme,w={radius:x.themeRadius||n,scaling:x.themeScaling||c,color:x.themeColor||g,size:f,appearance:v,itemAppearance:O},z=s(d(w),"solid"===v&&"bg-".concat(w.color,"-9 dark:bg-$").concat(w.color,"Dark-9"),i);return e(u.Provider,{value:w,children:e(o.Root,m({ref:a,className:z},j,{children:t}))})}));h.displayName="Menubar.Root";export{h as MenubarRoot,h as default,d as menubarVariants,f as useMenubarContext};
2
3
  //# sourceMappingURL=MenubarRoot.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenubarRoot.mjs","sources":["../../../lib/components/Menubar/MenubarRoot.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createContext, forwardRef, useContext, useMemo, } from 'react';\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { radiusVariants, scalingVariants } from '../../../lib/constants';\nexport var menubarVariants = cva('flex p-1 shadow bg-white dark:bg-slateDark-1', {\n variants: {\n radius: __assign({}, radiusVariants['base']),\n size: {\n small: 'text-xs',\n medium: 'text-sm',\n },\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n radius: 'small',\n size: 'medium',\n },\n});\nvar MenubarContext = createContext({\n radius: 'medium',\n scaling: '100%',\n size: 'medium',\n color: 'red',\n appearance: 'ghost',\n itemAppearance: 'solid',\n});\nexport var useMenubarContext = function () {\n return useContext(MenubarContext);\n};\nexport var MenubarRoot = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'ghost' : _c, _d = _a.itemAppearance, itemAppearance = _d === void 0 ? 'solid' : _d, props = __rest(_a, [\"children\", \"className\", \"radius\", \"scaling\", \"size\", \"color\", \"appearance\", \"itemAppearance\"]);\n var contextValue = useMemo(function () { return ({ radius: radius, size: size, scaling: scaling, color: color, appearance: appearance, itemAppearance: itemAppearance }); }, [radius, size, scaling, color, appearance, itemAppearance]);\n var menuClassName = cn(menubarVariants({ radius: radius, scaling: scaling, size: size }), appearance === 'solid' && \"bg-\".concat(color, \"-9 dark:bg-$\").concat(color, \"Dark-9\"), className);\n return (_jsx(MenubarContext.Provider, { value: contextValue, children: _jsx(MenubarPrimitive.Root, __assign({ ref: ref, className: menuClassName }, props, { children: children })) }));\n});\nMenubarRoot.displayName = 'Menubar.Root';\nexport default MenubarRoot;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","menubarVariants","cva","variants","radius","radiusVariants","size","small","medium","scaling","scalingVariants","defaultVariants","MenubarContext","createContext","color","appearance","itemAppearance","useMenubarContext","useContext","MenubarRoot","forwardRef","_a","ref","children","className","_b","_c","_d","props","contextValue","useMemo","menuClassName","cn","concat","_jsx","Provider","value","MenubarPrimitive","Root","displayName"],"mappings":"yUAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOWiB,EAAkBC,EAAI,+CAAgD,CAC7EC,SAAU,CACNC,OAAQvB,EAAS,CAAA,EAAIwB,EAAqB,MAC1CC,KAAM,CACFC,MAAO,UACPC,OAAQ,WAEZC,QAAS5B,EAAS,CAAE,EAAE6B,IAE1BC,gBAAiB,CACbP,OAAQ,QACRE,KAAM,YAGVM,EAAiBC,EAAc,CAC/BT,OAAQ,SACRK,QAAS,OACTH,KAAM,SACNQ,MAAO,MACPC,WAAY,QACZC,eAAgB,UAETC,EAAoB,WAC3B,OAAOC,EAAWN,EACtB,EACWO,EAAcC,GAAW,SAAUC,EAAIC,GAC9C,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWpB,EAASiB,EAAGjB,OAAQK,EAAUY,EAAGZ,QAASH,EAAOe,EAAGf,KAAMmB,EAAKJ,EAAGP,MAAOA,OAAe,IAAPW,EAAgB,MAAQA,EAAIC,EAAKL,EAAGN,WAAYA,OAAoB,IAAPW,EAAgB,QAAUA,EAAIC,EAAKN,EAAGL,eAAgBA,OAAwB,IAAPW,EAAgB,QAAUA,EAAIC,EAAQhC,EAAOyB,EAAI,CAAC,WAAY,YAAa,SAAU,UAAW,OAAQ,QAAS,aAAc,mBACtYQ,EAAeC,GAAQ,WAAc,MAAQ,CAAE1B,OAAQA,EAAQE,KAAMA,EAAMG,QAASA,EAASK,MAAOA,EAAOC,WAAYA,EAAYC,eAAgBA,EAAoB,GAAE,CAACZ,EAAQE,EAAMG,EAASK,EAAOC,EAAYC,IACpNe,EAAgBC,EAAG/B,EAAgB,CAAEG,OAAQA,EAAQK,QAASA,EAASH,KAAMA,IAAwB,UAAfS,GAA0B,MAAMkB,OAAOnB,EAAO,gBAAgBmB,OAAOnB,EAAO,UAAWU,GACjL,OAAQU,EAAKtB,EAAeuB,SAAU,CAAEC,MAAOP,EAAcN,SAAUW,EAAKG,EAAiBC,KAAMzD,EAAS,CAAEyC,IAAKA,EAAKE,UAAWO,GAAiBH,EAAO,CAAEL,SAAUA,MAC3K,IACAJ,EAAYoB,YAAc"}
1
+ {"version":3,"file":"MenubarRoot.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
4
4
  export interface MenubarSubContentProps extends VariantProps<typeof menubarSubContentVariants> {
5
5
  }
6
6
  export declare const menubarSubContentVariants: (props?: ({
7
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
7
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
8
8
  size?: "small" | "medium" | null | undefined;
9
9
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
10
  export declare const MenubarSubContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & MenubarSubContentProps & React.RefAttributes<HTMLDivElement>>;
@@ -6,7 +6,7 @@ export interface MenubarTriggerProps extends VariantProps<typeof menubarTriggerV
6
6
  }
7
7
  export declare const menubarTriggerVariants: (props?: ({
8
8
  size?: "small" | "medium" | null | undefined;
9
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
9
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
10
10
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
11
11
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
12
  export declare const MenubarTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>>;
@@ -5,7 +5,7 @@ export interface NavigationMenuContentProps extends VariantProps<typeof navigati
5
5
  isShowIcon?: boolean;
6
6
  }
7
7
  export declare const navigationMenuContentVariants: (props?: ({
8
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
8
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
9
9
  size?: "small" | "medium" | null | undefined;
10
10
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
11
11
  export declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>>;
@@ -7,7 +7,7 @@ export interface NavigationMenuLinkProps extends VariantProps<typeof navigationM
7
7
  }
8
8
  export declare const navigationMenuLinkVariants: (props?: ({
9
9
  size?: "small" | "medium" | null | undefined;
10
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
10
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
11
11
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
12
12
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
13
13
  export declare const NavigationMenuLink: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
@@ -6,7 +6,7 @@ export interface NavigationMenuListProps extends VariantProps<typeof navigationM
6
6
  appearance?: 'ghost' | 'solid';
7
7
  }
8
8
  export declare const navigationMenuListVariants: (props?: ({
9
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
9
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
10
10
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
11
11
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
12
  export declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & NavigationMenuListProps & React.RefAttributes<HTMLUListElement>>;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -21,9 +22,10 @@ var __rest = (this && this.__rest) || function (s, e) {
21
22
  return t;
22
23
  };
23
24
  import { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef, createContext, useContext, useMemo, } from 'react';
25
+ import { forwardRef, createContext, useContext, } from 'react';
25
26
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
26
27
  import { cn } from '../../../lib/utils/utils';
28
+ import { useTheme } from '../../../lib/theme';
27
29
  var NavigationMenuContext = createContext({
28
30
  radius: 'medium',
29
31
  scaling: '100%',
@@ -36,7 +38,14 @@ export var useNavigationMenuContext = function () {
36
38
  };
37
39
  export var NavigationMenuRoot = forwardRef(function (_a, ref) {
38
40
  var className = _a.className, children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, color = _a.color, appearance = _a.appearance, props = __rest(_a, ["className", "children", "radius", "size", "scaling", "color", "appearance"]);
39
- var contextValue = useMemo(function () { return ({ radius: radius, size: size, scaling: scaling, color: color, appearance: appearance }); }, [radius, size, scaling, color, appearance]);
41
+ var theme = useTheme().theme;
42
+ var contextValue = {
43
+ radius: theme.themeRadius || radius,
44
+ scaling: theme.themeScaling || scaling,
45
+ color: theme.themeColor || color,
46
+ size: size,
47
+ appearance: appearance,
48
+ };
40
49
  return (_jsx(NavigationMenuContext.Provider, { value: contextValue, children: _jsx(NavigationMenuPrimitive.Root, __assign({ ref: ref, className: cn('relative flex', className) }, props, { children: children })) }));
41
50
  });
42
51
  NavigationMenuRoot.displayName = 'NavigationMenu.Root';
@@ -1,2 +1,3 @@
1
- import{jsx as r}from"react/jsx-runtime";import{createContext as e,forwardRef as a,useMemo as t,useContext as n}from"react";import*as o from"@radix-ui/react-navigation-menu";import{cn as i}from"../../utils/utils.mjs";var c=function(){return c=Object.assign||function(r){for(var e,a=1,t=arguments.length;a<t;a++)for(var n in e=arguments[a])Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},c.apply(this,arguments)},l=function(r,e){var a={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(a[t]=r[t]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(r);n<t.length;n++)e.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(r,t[n])&&(a[t[n]]=r[t[n]])}return a},s=e({radius:"medium",scaling:"100%",size:"medium",color:"red",appearance:"ghost"}),p=function(){return n(s)},u=a((function(e,a){var n=e.className,p=e.children,u=e.radius,f=e.size,m=e.scaling,d=e.color,y=e.appearance,g=l(e,["className","children","radius","size","scaling","color","appearance"]),v=t((function(){return{radius:u,size:f,scaling:m,color:d,appearance:y}}),[u,f,m,d,y]);return r(s.Provider,{value:v,children:r(o.Root,c({ref:a,className:i("relative flex",n)},g,{children:p}))})}));u.displayName="NavigationMenu.Root";export{u as NavigationMenuRoot,u as default,p as useNavigationMenuContext};
1
+ "use client";
2
+ import{jsx as e}from"react/jsx-runtime";import{createContext as r,forwardRef as a,useContext as t}from"react";import*as o from"@radix-ui/react-navigation-menu";import{cn as i}from"../../utils/utils.mjs";import{useTheme as n}from"../../theme/ThemeProvider.mjs";var c=function(){return c=Object.assign||function(e){for(var r,a=1,t=arguments.length;a<t;a++)for(var o in r=arguments[a])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},c.apply(this,arguments)},l=function(e,r){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(e);o<t.length;o++)r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(a[t[o]]=e[t[o]])}return a},s=r({radius:"medium",scaling:"100%",size:"medium",color:"red",appearance:"ghost"}),m=function(){return t(s)},p=a((function(r,a){var t=r.className,m=r.children,p=r.radius,u=r.size,f=r.scaling,d=r.color,h=r.appearance,g=l(r,["className","children","radius","size","scaling","color","appearance"]),v=n().theme,y={radius:v.themeRadius||p,scaling:v.themeScaling||f,color:v.themeColor||d,size:u,appearance:h};return e(s.Provider,{value:y,children:e(o.Root,c({ref:a,className:i("relative flex",t)},g,{children:m}))})}));p.displayName="NavigationMenu.Root";export{p as NavigationMenuRoot,p as default,m as useNavigationMenuContext};
2
3
  //# sourceMappingURL=NavigationMenuRoot.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationMenuRoot.mjs","sources":["../../../lib/components/NavigationMenu/NavigationMenuRoot.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef, createContext, useContext, useMemo, } from 'react';\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport { cn } from '../../../lib/utils/utils';\nvar NavigationMenuContext = createContext({\n radius: 'medium',\n scaling: '100%',\n size: 'medium',\n color: 'red',\n appearance: 'ghost',\n});\nexport var useNavigationMenuContext = function () {\n return useContext(NavigationMenuContext);\n};\nexport var NavigationMenuRoot = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, color = _a.color, appearance = _a.appearance, props = __rest(_a, [\"className\", \"children\", \"radius\", \"size\", \"scaling\", \"color\", \"appearance\"]);\n var contextValue = useMemo(function () { return ({ radius: radius, size: size, scaling: scaling, color: color, appearance: appearance }); }, [radius, size, scaling, color, appearance]);\n return (_jsx(NavigationMenuContext.Provider, { value: contextValue, children: _jsx(NavigationMenuPrimitive.Root, __assign({ ref: ref, className: cn('relative flex', className) }, props, { children: children })) }));\n});\nNavigationMenuRoot.displayName = 'NavigationMenu.Root';\nexport default NavigationMenuRoot;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","NavigationMenuContext","createContext","radius","scaling","size","color","appearance","useNavigationMenuContext","useContext","NavigationMenuRoot","forwardRef","_a","ref","className","children","props","contextValue","useMemo","_jsx","Provider","value","NavigationMenuPrimitive","Root","cn","displayName"],"mappings":"wNAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAKIiB,EAAwBC,EAAc,CACtCC,OAAQ,SACRC,QAAS,OACTC,KAAM,SACNC,MAAO,MACPC,WAAY,UAELC,EAA2B,WAClC,OAAOC,EAAWR,EACtB,EACWS,EAAqBC,GAAW,SAAUC,EAAIC,GACrD,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUZ,EAASS,EAAGT,OAAQE,EAAOO,EAAGP,KAAMD,EAAUQ,EAAGR,QAASE,EAAQM,EAAGN,MAAOC,EAAaK,EAAGL,WAAYS,EAAQpB,EAAOgB,EAAI,CAAC,YAAa,WAAY,SAAU,OAAQ,UAAW,QAAS,eAC7OK,EAAeC,GAAQ,WAAc,OAAUf,OAAQA,EAAQE,KAAMA,EAAMD,QAASA,EAASE,MAAOA,EAAOC,WAAYA,EAAc,GAAI,CAACJ,EAAQE,EAAMD,EAASE,EAAOC,IAC5K,OAAQY,EAAKlB,EAAsBmB,SAAU,CAAEC,MAAOJ,EAAcF,SAAUI,EAAKG,EAAwBC,KAAM1C,EAAS,CAAEgC,IAAKA,EAAKC,UAAWU,EAAG,gBAAiBV,IAAcE,EAAO,CAAED,SAAUA,MAC1M,IACAL,EAAmBe,YAAc"}
1
+ {"version":3,"file":"NavigationMenuRoot.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -7,7 +7,7 @@ export interface NavigationMenuTriggerProps extends VariantProps<typeof navigati
7
7
  }
8
8
  export declare const navigationMenuTriggerVariants: (props?: ({
9
9
  size?: "small" | "medium" | null | undefined;
10
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
10
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
11
11
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
12
12
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
13
13
  export declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
@@ -4,8 +4,8 @@ import { VariantProps } from 'class-variance-authority';
4
4
  export interface NavigationViewportProps extends VariantProps<typeof navigationViewportVariants> {
5
5
  }
6
6
  export declare const navigationViewportVariants: (props?: ({
7
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
8
- weight?: "bold" | "medium" | "regular" | "semibold" | null | undefined;
7
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
8
+ weight?: "medium" | "regular" | "semibold" | "bold" | null | undefined;
9
9
  size?: "small" | "medium" | null | undefined;
10
10
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
11
11
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -4,6 +4,6 @@ import { Popover as PopoverTheme } from '@radix-ui/themes';
4
4
  export interface PopoverCloseProps extends VariantProps<typeof popoverCloseVariants> {
5
5
  }
6
6
  export declare const popoverCloseVariants: (props?: ({
7
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
7
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
8
8
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
9
9
  export declare const PopoverClose: React.ForwardRefExoticComponent<Omit<PopoverTheme.CloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
@@ -6,7 +6,7 @@ export interface PopoverContentProps extends VariantProps<typeof popoverContentV
6
6
  size?: Exclude<ISize, 'x-small'>;
7
7
  }
8
8
  export declare const popoverContentVariants: (props?: ({
9
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
9
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
10
10
  size?: "small" | "medium" | "large" | "x-large" | null | undefined;
11
11
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
12
12
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -23,6 +24,7 @@ var __rest = (this && this.__rest) || function (s, e) {
23
24
  import { jsx as _jsx } from "react/jsx-runtime";
24
25
  import { createContext } from 'react';
25
26
  import { Theme, Popover as PopoverTheme } from '@radix-ui/themes';
27
+ import { useTheme } from '../../../lib/theme';
26
28
  export var PopoverContext = createContext({
27
29
  radius: 'medium',
28
30
  size: 'medium',
@@ -30,7 +32,12 @@ export var PopoverContext = createContext({
30
32
  });
31
33
  export var PopoverRoot = function (_a) {
32
34
  var children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, props = __rest(_a, ["children", "radius", "size", "scaling"]);
33
- var contextValue = { radius: radius, size: size, scaling: scaling };
35
+ var theme = useTheme().theme;
36
+ var contextValue = {
37
+ radius: theme.themeRadius || radius,
38
+ scaling: theme.themeScaling || scaling,
39
+ size: size,
40
+ };
34
41
  return (_jsx(Theme, { children: _jsx(PopoverContext.Provider, { value: contextValue, children: _jsx(PopoverTheme.Root, __assign({}, props, { children: children })) }) }));
35
42
  };
36
43
  PopoverRoot.displayName = 'Popover.Root';
@@ -1,2 +1,3 @@
1
- import{jsx as r}from"react/jsx-runtime";import{createContext as e}from"react";import{Theme as t,Popover as i}from"@radix-ui/themes";var n=function(){return n=Object.assign||function(r){for(var e,t=1,i=arguments.length;t<i;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},n.apply(this,arguments)},o=function(r,e){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(r);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(r,i[n])&&(t[i[n]]=r[i[n]])}return t},a=e({radius:"medium",size:"medium",scaling:"100%"}),c=function(e){var c=e.children,l=e.radius,s=e.size,p=e.scaling,u=o(e,["children","radius","size","scaling"]),d={radius:l,size:s,scaling:p};return r(t,{children:r(a.Provider,{value:d,children:r(i.Root,n({},u,{children:c}))})})};c.displayName="Popover.Root";export{a as PopoverContext,c as PopoverRoot};
1
+ "use client";
2
+ import{jsx as r}from"react/jsx-runtime";import{createContext as e}from"react";import{Theme as t,Popover as i}from"@radix-ui/themes";import{useTheme as o}from"../../theme/ThemeProvider.mjs";var n=function(){return n=Object.assign||function(r){for(var e,t=1,i=arguments.length;t<i;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},n.apply(this,arguments)},a=function(r,e){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(r);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(r,i[o])&&(t[i[o]]=r[i[o]])}return t},c=e({radius:"medium",size:"medium",scaling:"100%"}),l=function(e){var l=e.children,s=e.radius,m=e.size,p=e.scaling,u=a(e,["children","radius","size","scaling"]),d=o().theme,f={radius:d.themeRadius||s,scaling:d.themeScaling||p,size:m};return r(t,{children:r(c.Provider,{value:f,children:r(i.Root,n({},u,{children:l}))})})};l.displayName="Popover.Root";export{c as PopoverContext,l as PopoverRoot};
2
3
  //# sourceMappingURL=PopoverRoot.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"PopoverRoot.mjs","sources":["../../../lib/components/Popover/PopoverRoot.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createContext } from 'react';\nimport { Theme, Popover as PopoverTheme } from '@radix-ui/themes';\nexport var PopoverContext = createContext({\n radius: 'medium',\n size: 'medium',\n scaling: '100%',\n});\nexport var PopoverRoot = function (_a) {\n var children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, props = __rest(_a, [\"children\", \"radius\", \"size\", \"scaling\"]);\n var contextValue = { radius: radius, size: size, scaling: scaling };\n return (_jsx(Theme, { children: _jsx(PopoverContext.Provider, { value: contextValue, children: _jsx(PopoverTheme.Root, __assign({}, props, { children: children })) }) }));\n};\nPopoverRoot.displayName = 'Popover.Root';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","PopoverContext","createContext","radius","size","scaling","PopoverRoot","_a","children","props","contextValue","_jsx","Theme","Provider","value","PopoverTheme","Root","displayName"],"mappings":"oIAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAIWiB,EAAiBC,EAAc,CACtCC,OAAQ,SACRC,KAAM,SACNC,QAAS,SAEFC,EAAc,SAAUC,GAC/B,IAAIC,EAAWD,EAAGC,SAAUL,EAASI,EAAGJ,OAAQC,EAAOG,EAAGH,KAAMC,EAAUE,EAAGF,QAASI,EAAQb,EAAOW,EAAI,CAAC,WAAY,SAAU,OAAQ,YACpIG,EAAe,CAAEP,OAAQA,EAAQC,KAAMA,EAAMC,QAASA,GAC1D,OAAQM,EAAKC,EAAO,CAAEJ,SAAUG,EAAKV,EAAeY,SAAU,CAAEC,MAAOJ,EAAcF,SAAUG,EAAKI,EAAaC,KAAMnC,EAAS,CAAE,EAAE4B,EAAO,CAAED,SAAUA,QAC3J,EACAF,EAAYW,YAAc"}
1
+ {"version":3,"file":"PopoverRoot.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -5,7 +5,7 @@ export interface ProgressProps extends VariantProps<typeof progressVariants> {
5
5
  appearance?: 'classic' | 'surface' | 'soft';
6
6
  }
7
7
  declare const progressVariants: (props?: ({
8
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
8
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
9
9
  size?: "small" | "medium" | "large" | null | undefined;
10
10
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
11
11
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -26,6 +26,7 @@ import { cva } from 'class-variance-authority';
26
26
  import { scalingVariants } from '../../../lib/constants';
27
27
  import { Theme, Progress as ProgressTheme } from '@radix-ui/themes';
28
28
  import { cn } from '../../../lib/utils/utils';
29
+ import { useTheme } from '../../../lib/theme';
29
30
  var progressVariants = cva('w-[300px]', {
30
31
  variants: {
31
32
  radius: {
@@ -50,7 +51,16 @@ var progressVariants = cva('w-[300px]', {
50
51
  });
51
52
  export var Progress = forwardRef(function (_a, ref) {
52
53
  var className = _a.className, radius = _a.radius, size = _a.size, value = _a.value, _b = _a.appearance, appearance = _b === void 0 ? 'surface' : _b, _c = _a.color, color = _c === void 0 ? 'red' : _c, scaling = _a.scaling, props = __rest(_a, ["className", "radius", "size", "value", "appearance", "color", "scaling"]);
53
- return (_jsx(Theme, { accentColor: color, children: _jsx(ProgressTheme, __assign({ ref: ref, value: value, variant: appearance, className: cn(progressVariants({ radius: radius, size: size, scaling: scaling }), className) }, props)) }));
54
+ var theme = useTheme().theme;
55
+ var progressStyle = {
56
+ radius: theme.themeRadius || radius,
57
+ scaling: theme.themeScaling || scaling,
58
+ color: theme.themeColor || color,
59
+ size: size,
60
+ };
61
+ return (
62
+ // @ts-ignore
63
+ _jsx(Theme, { accentColor: progressStyle.color, children: _jsx(ProgressTheme, __assign({ ref: ref, value: value, variant: appearance, className: cn(progressVariants(progressStyle), className) }, props)) }));
54
64
  });
55
65
  Progress.displayName = 'Progress';
56
66
  export default Progress;