@lotte-innovate/ui-component-test 0.1.66 → 0.1.68

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. package/README.md +133 -133
  2. package/dist/globals.css +4 -4
  3. package/dist/lib/Typography/Header/index.d.ts +1 -1
  4. package/dist/lib/Typography/Text/index.d.ts +1 -1
  5. package/dist/lib/components/Accordion/index.d.ts +1 -0
  6. package/dist/lib/components/Accordion/index.js +18 -4
  7. package/dist/lib/components/Accordion/index.mjs +1 -1
  8. package/dist/lib/components/Accordion/index.mjs.map +1 -1
  9. package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +2 -2
  10. package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +2 -2
  11. package/dist/lib/components/AlertDialog/AlertDialogContent.d.ts +1 -1
  12. package/dist/lib/components/AlertDialog/AlertDialogRoot.js +9 -6
  13. package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs +2 -1
  14. package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs.map +1 -1
  15. package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +2 -2
  16. package/dist/lib/components/AspectRatio/index.js +3 -1
  17. package/dist/lib/components/AspectRatio/index.mjs +1 -1
  18. package/dist/lib/components/AspectRatio/index.mjs.map +1 -1
  19. package/dist/lib/components/Avatar/index.d.ts +1 -1
  20. package/dist/lib/components/Avatar/index.js +9 -1
  21. package/dist/lib/components/Avatar/index.mjs +2 -1
  22. package/dist/lib/components/Avatar/index.mjs.map +1 -1
  23. package/dist/lib/components/Badge/index.d.ts +2 -2
  24. package/dist/lib/components/Badge/index.js +10 -1
  25. package/dist/lib/components/Badge/index.mjs +1 -1
  26. package/dist/lib/components/Badge/index.mjs.map +1 -1
  27. package/dist/lib/components/Button/index.d.ts +2 -2
  28. package/dist/lib/components/Button/index.js +10 -1
  29. package/dist/lib/components/Button/index.mjs +1 -1
  30. package/dist/lib/components/Button/index.mjs.map +1 -1
  31. package/dist/lib/components/Callout/CalloutRoot.d.ts +1 -1
  32. package/dist/lib/components/Callout/CalloutRoot.js +11 -3
  33. package/dist/lib/components/Callout/CalloutRoot.mjs +2 -1
  34. package/dist/lib/components/Callout/CalloutRoot.mjs.map +1 -1
  35. package/dist/lib/components/Card/index.d.ts +2 -2
  36. package/dist/lib/components/Card/index.js +8 -1
  37. package/dist/lib/components/Card/index.mjs +1 -1
  38. package/dist/lib/components/Card/index.mjs.map +1 -1
  39. package/dist/lib/components/Checkbox/index.d.ts +1 -1
  40. package/dist/lib/components/Checkbox/index.js +10 -2
  41. package/dist/lib/components/Checkbox/index.mjs +1 -1
  42. package/dist/lib/components/Checkbox/index.mjs.map +1 -1
  43. package/dist/lib/components/CheckboxCard/index.d.ts +1 -1
  44. package/dist/lib/components/CheckboxCard/index.js +8 -1
  45. package/dist/lib/components/CheckboxCard/index.mjs +1 -1
  46. package/dist/lib/components/CheckboxCard/index.mjs.map +1 -1
  47. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +11 -2
  48. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +2 -1
  49. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +1 -1
  50. package/dist/lib/components/ContextMenu/ContextMenuContent.d.ts +1 -1
  51. package/dist/lib/components/ContextMenu/ContextMenuItem.d.ts +1 -1
  52. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.d.ts +1 -1
  53. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js +1 -0
  54. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs +1 -0
  55. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs.map +1 -1
  56. package/dist/lib/components/ContextMenu/ContextMenuRoot.js +11 -2
  57. package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs +2 -1
  58. package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs.map +1 -1
  59. package/dist/lib/components/ContextMenu/ContextMenuSubContent.d.ts +1 -1
  60. package/dist/lib/components/DataList/DataListLabel.d.ts +1 -1
  61. package/dist/lib/components/DataList/DataListRoot.js +9 -2
  62. package/dist/lib/components/DataList/DataListRoot.mjs +2 -1
  63. package/dist/lib/components/DataList/DataListRoot.mjs.map +1 -1
  64. package/dist/lib/components/DataList/DataListValue.d.ts +1 -1
  65. package/dist/lib/components/Dialog/DialogAction.d.ts +1 -1
  66. package/dist/lib/components/Dialog/DialogCancel.d.ts +1 -1
  67. package/dist/lib/components/Dialog/DialogContent.d.ts +1 -1
  68. package/dist/lib/components/Dialog/DialogRoot.js +9 -1
  69. package/dist/lib/components/Dialog/DialogRoot.mjs +2 -1
  70. package/dist/lib/components/Dialog/DialogRoot.mjs.map +1 -1
  71. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.d.ts +1 -1
  72. package/dist/lib/components/DropdownMenu/DropdownMenuContent.d.ts +1 -1
  73. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +1 -1
  74. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +1 -1
  75. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +10 -1
  76. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs +2 -1
  77. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs.map +1 -1
  78. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
  79. package/dist/lib/components/HoverCard/HoverCardContent.d.ts +2 -2
  80. package/dist/lib/components/HoverCard/HoverCardRoot.js +10 -1
  81. package/dist/lib/components/HoverCard/HoverCardRoot.mjs +2 -1
  82. package/dist/lib/components/HoverCard/HoverCardRoot.mjs.map +1 -1
  83. package/dist/lib/components/IconButton/index.d.ts +1 -1
  84. package/dist/lib/components/IconButton/index.js +9 -1
  85. package/dist/lib/components/IconButton/index.mjs +1 -1
  86. package/dist/lib/components/IconButton/index.mjs.map +1 -1
  87. package/dist/lib/components/Inset/index.d.ts +1 -1
  88. package/dist/lib/components/Inset/index.js +7 -1
  89. package/dist/lib/components/Inset/index.mjs +1 -1
  90. package/dist/lib/components/Inset/index.mjs.map +1 -1
  91. package/dist/lib/components/Label/index.d.ts +1 -1
  92. package/dist/lib/components/Label/index.js +11 -3
  93. package/dist/lib/components/Label/index.mjs +1 -1
  94. package/dist/lib/components/Label/index.mjs.map +1 -1
  95. package/dist/lib/components/Menubar/MenubarContent.d.ts +1 -1
  96. package/dist/lib/components/Menubar/MenubarItem.d.ts +1 -1
  97. package/dist/lib/components/Menubar/MenubarItemIndicator.d.ts +1 -1
  98. package/dist/lib/components/Menubar/MenubarRadioGroup.js +1 -0
  99. package/dist/lib/components/Menubar/MenubarRadioGroup.mjs +1 -0
  100. package/dist/lib/components/Menubar/MenubarRadioGroup.mjs.map +1 -1
  101. package/dist/lib/components/Menubar/MenubarRoot.d.ts +1 -1
  102. package/dist/lib/components/Menubar/MenubarRoot.js +13 -3
  103. package/dist/lib/components/Menubar/MenubarRoot.mjs +2 -1
  104. package/dist/lib/components/Menubar/MenubarRoot.mjs.map +1 -1
  105. package/dist/lib/components/Menubar/MenubarSubContent.d.ts +1 -1
  106. package/dist/lib/components/Menubar/MenubarTrigger.d.ts +1 -1
  107. package/dist/lib/components/NavigationMenu/NavigationMenuContent.d.ts +1 -1
  108. package/dist/lib/components/NavigationMenu/NavigationMenuLink.d.ts +1 -1
  109. package/dist/lib/components/NavigationMenu/NavigationMenuList.d.ts +1 -1
  110. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +11 -2
  111. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs +2 -1
  112. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs.map +1 -1
  113. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.d.ts +1 -1
  114. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.d.ts +2 -2
  115. package/dist/lib/components/Popover/PopoverClose.d.ts +1 -1
  116. package/dist/lib/components/Popover/PopoverContent.d.ts +1 -1
  117. package/dist/lib/components/Popover/PopoverRoot.js +8 -1
  118. package/dist/lib/components/Popover/PopoverRoot.mjs +2 -1
  119. package/dist/lib/components/Popover/PopoverRoot.mjs.map +1 -1
  120. package/dist/lib/components/Progress/index.d.ts +1 -1
  121. package/dist/lib/components/Progress/index.js +11 -1
  122. package/dist/lib/components/Progress/index.mjs +1 -1
  123. package/dist/lib/components/Progress/index.mjs.map +1 -1
  124. package/dist/lib/components/Radio/index.js +10 -4
  125. package/dist/lib/components/Radio/index.mjs +1 -1
  126. package/dist/lib/components/Radio/index.mjs.map +1 -1
  127. package/dist/lib/components/RadioCards/RadioCardsItem.d.ts +1 -1
  128. package/dist/lib/components/RadioCards/RadioCardsRoot.js +12 -2
  129. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs +2 -1
  130. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +1 -1
  131. package/dist/lib/components/RadioGroup/RadioGroupRoot.js +11 -2
  132. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +2 -1
  133. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +1 -1
  134. package/dist/lib/components/ScrollArea/index.js +3 -1
  135. package/dist/lib/components/ScrollArea/index.mjs +1 -1
  136. package/dist/lib/components/ScrollArea/index.mjs.map +1 -1
  137. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +7 -1
  138. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +1 -1
  139. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +1 -1
  140. package/dist/lib/components/Select/index.d.ts +4 -2
  141. package/dist/lib/components/Select/index.js +30 -13
  142. package/dist/lib/components/Select/index.mjs +1 -1
  143. package/dist/lib/components/Select/index.mjs.map +1 -1
  144. package/dist/lib/components/Separator/index.js +7 -1
  145. package/dist/lib/components/Separator/index.mjs +1 -1
  146. package/dist/lib/components/Separator/index.mjs.map +1 -1
  147. package/dist/lib/components/Skeleton/index.d.ts +1 -1
  148. package/dist/lib/components/Skeleton/index.js +4 -1
  149. package/dist/lib/components/Skeleton/index.mjs +1 -1
  150. package/dist/lib/components/Skeleton/index.mjs.map +1 -1
  151. package/dist/lib/components/Slider/index.d.ts +1 -1
  152. package/dist/lib/components/Slider/index.js +13 -5
  153. package/dist/lib/components/Slider/index.mjs +1 -1
  154. package/dist/lib/components/Slider/index.mjs.map +1 -1
  155. package/dist/lib/components/Spinner/index.js +3 -1
  156. package/dist/lib/components/Spinner/index.mjs +1 -1
  157. package/dist/lib/components/Spinner/index.mjs.map +1 -1
  158. package/dist/lib/components/TabNav/index.js +6 -4
  159. package/dist/lib/components/TabNav/index.mjs +1 -1
  160. package/dist/lib/components/TabNav/index.mjs.map +1 -1
  161. package/dist/lib/components/Table/index.d.ts +1 -1
  162. package/dist/lib/components/Table/index.js +7 -1
  163. package/dist/lib/components/Table/index.mjs +1 -1
  164. package/dist/lib/components/Table/index.mjs.map +1 -1
  165. package/dist/lib/components/Tabs/index.d.ts +1 -1
  166. package/dist/lib/components/Tabs/index.js +4 -4
  167. package/dist/lib/components/Tabs/index.mjs +1 -1
  168. package/dist/lib/components/Tabs/index.mjs.map +1 -1
  169. package/dist/lib/components/TextArea/index.d.ts +1 -1
  170. package/dist/lib/components/TextArea/index.js +11 -4
  171. package/dist/lib/components/TextArea/index.mjs +1 -1
  172. package/dist/lib/components/TextArea/index.mjs.map +1 -1
  173. package/dist/lib/components/TextField/index.d.ts +1 -1
  174. package/dist/lib/components/TextField/index.js +11 -4
  175. package/dist/lib/components/TextField/index.mjs +1 -1
  176. package/dist/lib/components/TextField/index.mjs.map +1 -1
  177. package/dist/lib/components/Toast/ToastActionButton.d.ts +1 -1
  178. package/dist/lib/components/Toast/ToastActionButton.js +2 -2
  179. package/dist/lib/components/Toast/ToastActionButton.mjs +1 -1
  180. package/dist/lib/components/Toast/ToastActionButton.mjs.map +1 -1
  181. package/dist/lib/components/Toast/ToastRoot.d.ts +1 -1
  182. package/dist/lib/components/Toast/ToastRoot.js +11 -3
  183. package/dist/lib/components/Toast/ToastRoot.mjs +2 -1
  184. package/dist/lib/components/Toast/ToastRoot.mjs.map +1 -1
  185. package/dist/lib/components/Toggle/ToggleWithText.d.ts +1 -1
  186. package/dist/lib/components/Toggle/ToggleWithText.js +9 -1
  187. package/dist/lib/components/Toggle/ToggleWithText.mjs +1 -1
  188. package/dist/lib/components/Toggle/ToggleWithText.mjs.map +1 -1
  189. package/dist/lib/components/Toggle/index.d.ts +1 -1
  190. package/dist/lib/components/Toggle/index.js +9 -1
  191. package/dist/lib/components/Toggle/index.mjs +1 -1
  192. package/dist/lib/components/Toggle/index.mjs.map +1 -1
  193. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +10 -2
  194. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +2 -1
  195. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +1 -1
  196. package/dist/lib/components/ToggleSwitch/index.d.ts +1 -1
  197. package/dist/lib/components/ToggleSwitch/index.js +13 -1
  198. package/dist/lib/components/ToggleSwitch/index.mjs +1 -1
  199. package/dist/lib/components/ToggleSwitch/index.mjs.map +1 -1
  200. package/dist/lib/components/Tooltip/index.d.ts +2 -2
  201. package/dist/lib/components/Tooltip/index.js +13 -8
  202. package/dist/lib/components/Tooltip/index.mjs +1 -1
  203. package/dist/lib/components/Tooltip/index.mjs.map +1 -1
  204. package/dist/lib/index.d.ts +1 -0
  205. package/dist/lib/index.js +1 -0
  206. package/dist/lib/index.mjs +1 -1
  207. package/dist/lib/theme/ThemeProvider.d.ts +16 -0
  208. package/dist/lib/theme/ThemeProvider.js +29 -0
  209. package/dist/lib/theme/ThemeProvider.mjs +3 -0
  210. package/dist/lib/theme/ThemeProvider.mjs.map +1 -0
  211. package/dist/lib/theme/index.d.ts +2 -0
  212. package/dist/lib/theme/index.js +2 -0
  213. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  214. package/dist/lib/utils/useDarkMode.js +1 -0
  215. package/dist/lib/utils/useDarkMode.mjs +1 -0
  216. package/dist/lib/utils/useDarkMode.mjs.map +1 -1
  217. package/dist/tsconfig.tsbuildinfo +1 -1
  218. package/package.json +141 -141
  219. package/dist/.storybook/main.d.ts +0 -3
  220. package/dist/.storybook/main.js +0 -22
  221. package/dist/.storybook/manager.d.ts +0 -1
  222. package/dist/.storybook/manager.js +0 -12
  223. package/dist/.storybook/preview.d.ts +0 -8
  224. package/dist/.storybook/preview.js +0 -81
@@ -1 +1 @@
1
- {"version":3,"file":"ContextMenuRoot.mjs","sources":["../../../lib/components/ContextMenu/ContextMenuRoot.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 ContextMenuPrimitive from '@radix-ui/react-context-menu';\nvar ContextMenuContext = createContext({\n radius: 'medium',\n scaling: '100%',\n size: 'medium',\n color: 'red',\n appearance: 'solid',\n});\nexport var useContextMenuContext = function () {\n return useContext(ContextMenuContext);\n};\nexport var ContextMenuRoot = forwardRef(function (_a, ref) {\n var children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, color = _a.color, appearance = _a.appearance, props = __rest(_a, [\"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(ContextMenuContext.Provider, { value: contextValue, children: _jsx(\"div\", { ref: ref, children: _jsx(ContextMenuPrimitive.Root, __assign({}, props, { children: children })) }) }));\n});\nContextMenuRoot.displayName = 'ContextMenu.Root';\nexport default ContextMenuRoot;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","ContextMenuContext","createContext","radius","scaling","size","color","appearance","useContextMenuContext","useContext","ContextMenuRoot","forwardRef","_a","ref","children","props","contextValue","useMemo","_jsx","Provider","value","ContextMenuPrimitive","Root","displayName"],"mappings":"0KAAA,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,EAIIiB,EAAqBC,EAAc,CACnCC,OAAQ,SACRC,QAAS,OACTC,KAAM,SACNC,MAAO,MACPC,WAAY,UAELC,EAAwB,WAC/B,OAAOC,EAAWR,EACtB,EACWS,EAAkBC,GAAW,SAAUC,EAAIC,GAClD,IAAIC,EAAWF,EAAGE,SAAUX,EAASS,EAAGT,OAAQE,EAAOO,EAAGP,KAAMD,EAAUQ,EAAGR,QAASE,EAAQM,EAAGN,MAAOC,EAAaK,EAAGL,WAAYQ,EAAQnB,EAAOgB,EAAI,CAAC,WAAY,SAAU,OAAQ,UAAW,QAAS,eACtMI,EAAeC,GAAQ,WAAc,OAAUd,OAAQA,EAAQE,KAAMA,EAAMD,QAASA,EAASE,MAAOA,EAAOC,WAAYA,EAAc,GAAI,CAACJ,EAAQE,EAAMD,EAASE,EAAOC,IAC5K,OAAQW,EAAKjB,EAAmBkB,SAAU,CAAEC,MAAOJ,EAAcF,SAAUI,EAAK,MAAO,CAAEL,IAAKA,EAAKC,SAAUI,EAAKG,EAAqBC,KAAMzC,EAAS,CAAE,EAAEkC,EAAO,CAAED,SAAUA,QACjL,IACAJ,EAAgBa,YAAc"}
1
+ {"version":3,"file":"ContextMenuRoot.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
4
4
  export interface ContextMenuSubContentProps extends VariantProps<typeof contextMenuSubContentVariants> {
5
5
  }
6
6
  export declare const contextMenuSubContentVariants: (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;
@@ -5,6 +5,6 @@ export interface DataListLabelProps extends VariantProps<typeof dataListLabelVar
5
5
  }
6
6
  export declare const dataListLabelVariants: (props?: ({
7
7
  size?: "small" | "medium" | "large" | null | undefined;
8
- weight?: "bold" | "medium" | "regular" | "semibold" | null | undefined;
8
+ weight?: "medium" | "regular" | "semibold" | "bold" | null | undefined;
9
9
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
10
  export declare const DataListLabel: React.ForwardRefExoticComponent<Omit<DataListTheme.LabelProps & React.RefAttributes<HTMLElement>, "ref"> & DataListLabelProps & React.RefAttributes<HTMLElement>>;
@@ -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,10 +22,11 @@ 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 { DataList as DataListTheme } from '@radix-ui/themes';
26
27
  import { cva } from 'class-variance-authority';
27
28
  import { cn } from '../../../lib/utils/utils';
29
+ import { useTheme } from '../../../lib/theme';
28
30
  export var dataListVariants = cva('flex flex-col', {
29
31
  variants: {
30
32
  size: {
@@ -47,7 +49,12 @@ export var useDataListContext = function () {
47
49
  };
48
50
  export var DataListRoot = forwardRef(function (_a, ref) {
49
51
  var children = _a.children, className = _a.className, size = _a.size, scaling = _a.scaling, color = _a.color, props = __rest(_a, ["children", "className", "size", "scaling", "color"]);
50
- var contextValue = useMemo(function () { return ({ size: size, scaling: scaling, color: color }); }, [size, scaling, color]);
52
+ var theme = useTheme().theme;
53
+ var contextValue = {
54
+ scaling: theme.themeScaling || scaling,
55
+ color: theme.themeColor || color,
56
+ size: size,
57
+ };
51
58
  return (_jsx(DataListContext.Provider, { value: contextValue, children: _jsx(DataListTheme.Root, __assign({ ref: ref }, props, { className: cn(dataListVariants({ size: size }), className), children: children })) }));
52
59
  });
53
60
  DataListRoot.displayName = 'DataList.Root';
@@ -1,2 +1,3 @@
1
- import{jsx as r}from"react/jsx-runtime";import{createContext as e,forwardRef as t,useMemo as o,useContext as a}from"react";import{DataList as i}from"@radix-ui/themes";import{cva as n}from"class-variance-authority";import{cn as l}from"../../utils/utils.mjs";var s=function(){return s=Object.assign||function(r){for(var e,t=1,o=arguments.length;t<o;t++)for(var a in e=arguments[t])Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r},s.apply(this,arguments)},c=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(r);a<o.length;a++)e.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(t[o[a]]=r[o[a]])}return t},m=n("flex flex-col",{variants:{size:{small:"space-y-3",medium:"space-y-4",large:"space-y-5"}},defaultVariants:{size:"medium"}}),u=e({size:"medium",scaling:"100%",color:"black"}),f=function(){return a(u)},p=t((function(e,t){var a=e.children,n=e.className,f=e.size,p=e.scaling,y=e.color,d=c(e,["children","className","size","scaling","color"]),O=o((function(){return{size:f,scaling:p,color:y}}),[f,p,y]);return r(u.Provider,{value:O,children:r(i.Root,s({ref:t},d,{className:l(m({size:f}),n),children:a}))})}));p.displayName="DataList.Root";export{p as DataListRoot,m as dataListVariants,p as default,f as useDataListContext};
1
+ "use client";
2
+ import{jsx as e}from"react/jsx-runtime";import{createContext as r,forwardRef as t,useContext as o}from"react";import{DataList as a}from"@radix-ui/themes";import{cva as i}from"class-variance-authority";import{cn as l}from"../../utils/utils.mjs";import{useTheme as n}from"../../theme/ThemeProvider.mjs";var s=function(){return s=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},s.apply(this,arguments)},c=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(t[o[a]]=e[o[a]])}return t},m=i("flex flex-col",{variants:{size:{small:"space-y-3",medium:"space-y-4",large:"space-y-5"}},defaultVariants:{size:"medium"}}),p=r({size:"medium",scaling:"100%",color:"black"}),f=function(){return o(p)},u=t((function(r,t){var o=r.children,i=r.className,f=r.size,u=r.scaling,y=r.color,h=c(r,["children","className","size","scaling","color"]),d=n().theme,v={scaling:d.themeScaling||u,color:d.themeColor||y,size:f};return e(p.Provider,{value:v,children:e(a.Root,s({ref:t},h,{className:l(m({size:f}),i),children:o}))})}));u.displayName="DataList.Root";export{u as DataListRoot,m as dataListVariants,u as default,f as useDataListContext};
2
3
  //# sourceMappingURL=DataListRoot.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataListRoot.mjs","sources":["../../../lib/components/DataList/DataListRoot.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 { DataList as DataListTheme } from '@radix-ui/themes';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nexport var dataListVariants = cva('flex flex-col', {\n variants: {\n size: {\n small: 'space-y-3',\n medium: 'space-y-4',\n large: 'space-y-5',\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\nvar DataListContext = createContext({\n size: 'medium',\n scaling: '100%',\n color: 'black',\n});\nexport var useDataListContext = function () {\n return useContext(DataListContext);\n};\nexport var DataListRoot = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, size = _a.size, scaling = _a.scaling, color = _a.color, props = __rest(_a, [\"children\", \"className\", \"size\", \"scaling\", \"color\"]);\n var contextValue = useMemo(function () { return ({ size: size, scaling: scaling, color: color }); }, [size, scaling, color]);\n return (_jsx(DataListContext.Provider, { value: contextValue, children: _jsx(DataListTheme.Root, __assign({ ref: ref }, props, { className: cn(dataListVariants({ size: size }), className), children: children })) }));\n});\nDataListRoot.displayName = 'DataList.Root';\nexport default DataListRoot;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","dataListVariants","cva","variants","size","small","medium","large","defaultVariants","DataListContext","createContext","scaling","color","useDataListContext","useContext","DataListRoot","forwardRef","_a","ref","children","className","props","contextValue","useMemo","_jsx","Provider","value","DataListTheme","Root","cn","displayName"],"mappings":"iQAAA,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,EAMWiB,EAAmBC,EAAI,gBAAiB,CAC/CC,SAAU,CACNC,KAAM,CACFC,MAAO,YACPC,OAAQ,YACRC,MAAO,cAGfC,gBAAiB,CACbJ,KAAM,YAGVK,EAAkBC,EAAc,CAChCN,KAAM,SACNO,QAAS,OACTC,MAAO,UAEAC,EAAqB,WAC5B,OAAOC,EAAWL,EACtB,EACWM,EAAeC,GAAW,SAAUC,EAAIC,GAC/C,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWhB,EAAOa,EAAGb,KAAMO,EAAUM,EAAGN,QAASC,EAAQK,EAAGL,MAAOS,EAAQzB,EAAOqB,EAAI,CAAC,WAAY,YAAa,OAAQ,UAAW,UAC1KK,EAAeC,GAAQ,WAAc,MAAQ,CAAEnB,KAAMA,EAAMO,QAASA,EAASC,MAAOA,KAAa,CAACR,EAAMO,EAASC,IACrH,OAAQY,EAAKf,EAAgBgB,SAAU,CAAEC,MAAOJ,EAAcH,SAAUK,EAAKG,EAAcC,KAAM/C,EAAS,CAAEqC,IAAKA,GAAOG,EAAO,CAAED,UAAWS,EAAG5B,EAAiB,CAAEG,KAAMA,IAASgB,GAAYD,SAAUA,MAC3M,IACAJ,EAAae,YAAc"}
1
+ {"version":3,"file":"DataListRoot.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -5,7 +5,7 @@ export interface DataListValueProps extends VariantProps<typeof dataListValueVar
5
5
  }
6
6
  export declare const dataListValueVariants: (props?: ({
7
7
  size?: "small" | "medium" | "large" | null | undefined;
8
- weight?: "bold" | "medium" | "regular" | "semibold" | null | undefined;
8
+ weight?: "medium" | "regular" | "semibold" | "bold" | null | undefined;
9
9
  color?: string | null | undefined;
10
10
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
11
11
  export declare const DataListValue: React.ForwardRefExoticComponent<Omit<DataListTheme.ValueProps & React.RefAttributes<HTMLElement>, "ref"> & DataListValueProps & React.RefAttributes<HTMLElement>>;
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
4
4
  export interface DialogActionProps extends VariantProps<typeof dialogActionVariants> {
5
5
  }
6
6
  export declare const dialogActionVariants: (props?: ({
7
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
7
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
8
8
  size?: "small" | "medium" | "large" | "x-large" | null | undefined;
9
9
  color?: string | null | undefined;
10
10
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
4
4
  export interface DialogCancelProps extends VariantProps<typeof dialogCancelVariants> {
5
5
  }
6
6
  export declare const dialogCancelVariants: (props?: ({
7
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
7
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
8
8
  size?: "small" | "medium" | "large" | "x-large" | null | undefined;
9
9
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
10
  export declare const DialogCancel: React.ForwardRefExoticComponent<Omit<DialogTheme.CloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & DialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
@@ -4,7 +4,7 @@ import { Dialog as DialogTheme } from '@radix-ui/themes';
4
4
  export interface DialogContentProps extends VariantProps<typeof dialogContentVariants> {
5
5
  }
6
6
  export declare const dialogContentVariants: (props?: ({
7
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
7
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
8
8
  size?: "small" | "medium" | "large" | "x-large" | null | undefined;
9
9
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
10
10
  } & 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, Dialog as DialogTheme } from '@radix-ui/themes';
27
+ import { useTheme } from '../../../lib/theme';
26
28
  export var DialogContext = createContext({
27
29
  size: 'medium',
28
30
  scaling: '100%',
@@ -31,7 +33,13 @@ export var DialogContext = createContext({
31
33
  });
32
34
  export var DialogRoot = function (_a) {
33
35
  var children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, color = _a.color, props = __rest(_a, ["children", "radius", "size", "scaling", "color"]);
34
- var contextValue = { radius: radius, size: size, scaling: scaling, color: color };
36
+ var theme = useTheme().theme;
37
+ var contextValue = {
38
+ radius: theme.themeRadius || radius,
39
+ scaling: theme.themeScaling || scaling,
40
+ color: theme.themeColor || color,
41
+ size: size,
42
+ };
35
43
  return (_jsx(Theme, { accentColor: color, children: _jsx(DialogContext.Provider, { value: contextValue, children: _jsx(DialogTheme.Root, __assign({}, props, { children: children })) }) }));
36
44
  };
37
45
  DialogRoot.displayName = 'Dialog.Root';
@@ -1,2 +1,3 @@
1
- import{jsx as r}from"react/jsx-runtime";import{createContext as e}from"react";import{Theme as o,Dialog as t}from"@radix-ui/themes";var i=function(){return i=Object.assign||function(r){for(var e,o=1,t=arguments.length;o<t;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r},i.apply(this,arguments)},n=function(r,e){var o={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(o[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])&&(o[t[i]]=r[t[i]])}return o},a=e({size:"medium",scaling:"100%",color:"red",radius:"medium"}),c=function(e){var c=e.children,l=e.radius,s=e.size,p=e.scaling,u=e.color,d=n(e,["children","radius","size","scaling","color"]),f={radius:l,size:s,scaling:p,color:u};return r(o,{accentColor:u,children:r(a.Provider,{value:f,children:r(t.Root,i({},d,{children:c}))})})};c.displayName="Dialog.Root";export{a as DialogContext,c as DialogRoot};
1
+ "use client";
2
+ import{jsx as r}from"react/jsx-runtime";import{createContext as e}from"react";import{Theme as o,Dialog as t}from"@radix-ui/themes";import{useTheme as i}from"../../theme/ThemeProvider.mjs";var n=function(){return n=Object.assign||function(r){for(var e,o=1,t=arguments.length;o<t;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r},n.apply(this,arguments)},a=function(r,e){var o={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(o[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])&&(o[t[i]]=r[t[i]])}return o},l=e({size:"medium",scaling:"100%",color:"red",radius:"medium"}),c=function(e){var c=e.children,m=e.radius,s=e.size,p=e.scaling,u=e.color,d=a(e,["children","radius","size","scaling","color"]),f=i().theme,h={radius:f.themeRadius||m,scaling:f.themeScaling||p,color:f.themeColor||u,size:s};return r(o,{accentColor:u,children:r(l.Provider,{value:h,children:r(t.Root,n({},d,{children:c}))})})};c.displayName="Dialog.Root";export{l as DialogContext,c as DialogRoot};
2
3
  //# sourceMappingURL=DialogRoot.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"DialogRoot.mjs","sources":["../../../lib/components/Dialog/DialogRoot.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, Dialog as DialogTheme } from '@radix-ui/themes';\nexport var DialogContext = createContext({\n size: 'medium',\n scaling: '100%',\n color: 'red',\n radius: 'medium',\n});\nexport var DialogRoot = function (_a) {\n var children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, color = _a.color, props = __rest(_a, [\"children\", \"radius\", \"size\", \"scaling\", \"color\"]);\n var contextValue = { radius: radius, size: size, scaling: scaling, color: color };\n return (_jsx(Theme, { accentColor: color, children: _jsx(DialogContext.Provider, { value: contextValue, children: _jsx(DialogTheme.Root, __assign({}, props, { children: children })) }) }));\n};\nDialogRoot.displayName = 'Dialog.Root';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","DialogContext","createContext","size","scaling","color","radius","DialogRoot","_a","children","props","contextValue","_jsx","Theme","accentColor","Provider","value","DialogTheme","Root","displayName"],"mappings":"mIAAA,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,EAAgBC,EAAc,CACrCC,KAAM,SACNC,QAAS,OACTC,MAAO,MACPC,OAAQ,WAEDC,EAAa,SAAUC,GAC9B,IAAIC,EAAWD,EAAGC,SAAUH,EAASE,EAAGF,OAAQH,EAAOK,EAAGL,KAAMC,EAAUI,EAAGJ,QAASC,EAAQG,EAAGH,MAAOK,EAAQd,EAAOY,EAAI,CAAC,WAAY,SAAU,OAAQ,UAAW,UACjKG,EAAe,CAAEL,OAAQA,EAAQH,KAAMA,EAAMC,QAASA,EAASC,MAAOA,GAC1E,OAAQO,EAAKC,EAAO,CAAEC,YAAaT,EAAOI,SAAUG,EAAKX,EAAcc,SAAU,CAAEC,MAAOL,EAAcF,SAAUG,EAAKK,EAAYC,KAAMrC,EAAS,CAAE,EAAE6B,EAAO,CAAED,SAAUA,QAC7K,EACAF,EAAWY,YAAc"}
1
+ {"version":3,"file":"DialogRoot.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
4
4
  export interface DropdownMenuSubContentProps extends VariantProps<typeof dropdownMenuSubContentVariants> {
5
5
  }
6
6
  export declare const dropdownMenuSubContentVariants: (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;
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
4
4
  export interface DropdownMenuContentProps extends VariantProps<typeof dropdownMenuContentVariants> {
5
5
  }
6
6
  export declare const dropdownMenuContentVariants: (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;
@@ -8,7 +8,7 @@ export interface DropdownMenuItemProps extends VariantProps<typeof dropdownMenuI
8
8
  appearance?: 'solid' | 'soft';
9
9
  }
10
10
  export declare const dropdownMenuItemVariants: (props?: ({
11
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
11
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
12
12
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
13
13
  size?: "small" | "medium" | null | undefined;
14
14
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
4
4
  export interface DropdownMenuItemIndicatorProps extends VariantProps<typeof dropdownMenuItemIndicatorVariants> {
5
5
  }
6
6
  export declare const dropdownMenuItemIndicatorVariants: (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 DropdownMenuItemIndicator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>, "ref"> & DropdownMenuItemIndicatorProps & 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++) {
@@ -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 * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
27
+ import { useTheme } from '../../../lib/theme';
26
28
  export var DropdownMenuContext = createContext({
27
29
  radius: 'medium',
28
30
  size: 'medium',
@@ -32,7 +34,14 @@ export var DropdownMenuContext = createContext({
32
34
  });
33
35
  export var DropdownMenuRoot = function (_a) {
34
36
  var children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, color = _a.color, appearance = _a.appearance, props = __rest(_a, ["children", "radius", "size", "scaling", "color", "appearance"]);
35
- var contextValue = { radius: radius, size: size, scaling: scaling, color: color, appearance: appearance };
37
+ var theme = useTheme().theme;
38
+ var contextValue = {
39
+ radius: theme.themeRadius || radius,
40
+ scaling: theme.themeScaling || scaling,
41
+ color: theme.themeColor || color,
42
+ size: size,
43
+ appearance: appearance,
44
+ };
36
45
  return (_jsx(DropdownMenuContext.Provider, { value: contextValue, children: _jsx(DropdownMenuPrimitive.Root, __assign({}, props, { children: children })) }));
37
46
  };
38
47
  DropdownMenuRoot.displayName = 'DropdownMenu.Root';
@@ -1,2 +1,3 @@
1
- import{jsx as r}from"react/jsx-runtime";import{createContext as e}from"react";import*as o from"@radix-ui/react-dropdown-menu";var n=function(){return n=Object.assign||function(r){for(var e,o=1,n=arguments.length;o<n;o++)for(var a in e=arguments[o])Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r},n.apply(this,arguments)},a=function(r,e){var o={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(o[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(r);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(r,n[a])&&(o[n[a]]=r[n[a]])}return o},t=e({radius:"medium",size:"medium",scaling:"100%",color:"red",appearance:"solid"}),i=function(e){var i=e.children,c=e.radius,p=e.size,l=e.scaling,s=e.color,u=e.appearance,d=a(e,["children","radius","size","scaling","color","appearance"]),f={radius:c,size:p,scaling:l,color:s,appearance:u};return r(t.Provider,{value:f,children:r(o.Root,n({},d,{children:i}))})};i.displayName="DropdownMenu.Root";export{t as DropdownMenuContext,i as DropdownMenuRoot};
1
+ "use client";
2
+ import{jsx as r}from"react/jsx-runtime";import{createContext as e}from"react";import*as o from"@radix-ui/react-dropdown-menu";import{useTheme as t}from"../../theme/ThemeProvider.mjs";var a=function(){return a=Object.assign||function(r){for(var e,o=1,t=arguments.length;o<t;o++)for(var a in e=arguments[o])Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r},a.apply(this,arguments)},n=function(r,e){var o={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(o[t]=r[t]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(t=Object.getOwnPropertySymbols(r);a<t.length;a++)e.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(r,t[a])&&(o[t[a]]=r[t[a]])}return o},i=e({radius:"medium",size:"medium",scaling:"100%",color:"red",appearance:"solid"}),c=function(e){var c=e.children,l=e.radius,p=e.size,s=e.scaling,m=e.color,u=e.appearance,d=n(e,["children","radius","size","scaling","color","appearance"]),f=t().theme,h={radius:f.themeRadius||l,scaling:f.themeScaling||s,color:f.themeColor||m,size:p,appearance:u};return r(i.Provider,{value:h,children:r(o.Root,a({},d,{children:c}))})};c.displayName="DropdownMenu.Root";export{i as DropdownMenuContext,c as DropdownMenuRoot};
2
3
  //# sourceMappingURL=DropdownMenuRoot.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenuRoot.mjs","sources":["../../../lib/components/DropdownMenu/DropdownMenuRoot.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 * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nexport var DropdownMenuContext = createContext({\n radius: 'medium',\n size: 'medium',\n scaling: '100%',\n color: 'red',\n appearance: 'solid',\n});\nexport var DropdownMenuRoot = function (_a) {\n var children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, color = _a.color, appearance = _a.appearance, props = __rest(_a, [\"children\", \"radius\", \"size\", \"scaling\", \"color\", \"appearance\"]);\n var contextValue = { radius: radius, size: size, scaling: scaling, color: color, appearance: appearance };\n return (_jsx(DropdownMenuContext.Provider, { value: contextValue, children: _jsx(DropdownMenuPrimitive.Root, __assign({}, props, { children: children })) }));\n};\nDropdownMenuRoot.displayName = 'DropdownMenu.Root';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","DropdownMenuContext","createContext","radius","size","scaling","color","appearance","DropdownMenuRoot","_a","children","props","contextValue","_jsx","Provider","value","DropdownMenuPrimitive","Root","displayName"],"mappings":"8HAAA,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,EAAsBC,EAAc,CAC3CC,OAAQ,SACRC,KAAM,SACNC,QAAS,OACTC,MAAO,MACPC,WAAY,UAELC,EAAmB,SAAUC,GACpC,IAAIC,EAAWD,EAAGC,SAAUP,EAASM,EAAGN,OAAQC,EAAOK,EAAGL,KAAMC,EAAUI,EAAGJ,QAASC,EAAQG,EAAGH,MAAOC,EAAaE,EAAGF,WAAYI,EAAQf,EAAOa,EAAI,CAAC,WAAY,SAAU,OAAQ,UAAW,QAAS,eACtMG,EAAe,CAAET,OAAQA,EAAQC,KAAMA,EAAMC,QAASA,EAASC,MAAOA,EAAOC,WAAYA,GAC7F,OAAQM,EAAKZ,EAAoBa,SAAU,CAAEC,MAAOH,EAAcF,SAAUG,EAAKG,EAAsBC,KAAMpC,EAAS,CAAE,EAAE8B,EAAO,CAAED,SAAUA,MACjJ,EACAF,EAAiBU,YAAc"}
1
+ {"version":3,"file":"DropdownMenuRoot.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -7,7 +7,7 @@ export interface DropdownMenuTriggerProps extends VariantProps<typeof dropdownMe
7
7
  appearance?: 'classic' | 'surface';
8
8
  }
9
9
  declare const dropdownMenuTriggerVariants: (props?: ({
10
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
10
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
11
11
  size?: "small" | "medium" | null | undefined;
12
12
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
13
13
  export declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
@@ -4,10 +4,10 @@ import { HoverCard as HoverCardTheme } from '@radix-ui/themes';
4
4
  export interface HoverCardContentProps extends VariantProps<typeof hoverCardContentVariants> {
5
5
  }
6
6
  export declare const hoverCardContentVariants: (props?: ({
7
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
7
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
8
8
  size?: "small" | "medium" | "large" | "x-large" | null | undefined;
9
9
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
10
- weight?: "bold" | "medium" | "regular" | "semibold" | null | undefined;
10
+ weight?: "medium" | "regular" | "semibold" | "bold" | null | undefined;
11
11
  color?: string | null | undefined;
12
12
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
13
13
  export declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<Omit<HoverCardTheme.ContentProps & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & HoverCardContentProps & React.RefAttributes<HTMLDivElement>>;
@@ -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 { HoverCard as HoverCardTheme, Theme } from '@radix-ui/themes';
27
+ import { useTheme } from '../../../lib/theme';
26
28
  export var HoverCardContext = createContext({
27
29
  radius: 'medium',
28
30
  size: 'medium',
@@ -32,7 +34,14 @@ export var HoverCardContext = createContext({
32
34
  });
33
35
  export var HoverCardRoot = function (_a) {
34
36
  var children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, weight = _a.weight, color = _a.color, props = __rest(_a, ["children", "radius", "size", "scaling", "weight", "color"]);
35
- var contextValue = { radius: radius, size: size, scaling: scaling, weight: weight, color: color };
37
+ var theme = useTheme().theme;
38
+ var contextValue = {
39
+ radius: theme.themeRadius || radius,
40
+ scaling: theme.themeScaling || scaling,
41
+ color: theme.themeColor || color,
42
+ weight: theme.themeWeight || weight,
43
+ size: size,
44
+ };
36
45
  return (_jsx(Theme, { children: _jsx(HoverCardContext.Provider, { value: contextValue, children: _jsx(HoverCardTheme.Root, __assign({}, props, { children: children })) }) }));
37
46
  };
38
47
  HoverCardRoot.displayName = 'HoverCard.Root';
@@ -1,2 +1,3 @@
1
- import{jsx as r}from"react/jsx-runtime";import{createContext as e}from"react";import{Theme as t,HoverCard as i}from"@radix-ui/themes";var o=function(){return o=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},o.apply(this,arguments)},n=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},a=e({radius:"medium",size:"medium",scaling:"100%",weight:"medium",color:"red"}),c=function(e){var c=e.children,l=e.radius,s=e.size,u=e.scaling,p=e.weight,d=e.color,m=n(e,["children","radius","size","scaling","weight","color"]),f={radius:l,size:s,scaling:u,weight:p,color:d};return r(t,{children:r(a.Provider,{value:f,children:r(i.Root,o({},m,{children:c}))})})};c.displayName="HoverCard.Root";export{a as HoverCardContext,c as HoverCardRoot};
1
+ "use client";
2
+ import{jsx as e}from"react/jsx-runtime";import{createContext as r}from"react";import{Theme as t,HoverCard as i}from"@radix-ui/themes";import{useTheme as o}from"../../theme/ThemeProvider.mjs";var n=function(){return n=Object.assign||function(e){for(var r,t=1,i=arguments.length;t<i;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},n.apply(this,arguments)},a=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)r.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(t[i[o]]=e[i[o]])}return t},l=r({radius:"medium",size:"medium",scaling:"100%",weight:"medium",color:"red"}),c=function(r){var c=r.children,m=r.radius,s=r.size,h=r.scaling,u=r.weight,d=r.color,p=a(r,["children","radius","size","scaling","weight","color"]),f=o().theme,g={radius:f.themeRadius||m,scaling:f.themeScaling||h,color:f.themeColor||d,weight:f.themeWeight||u,size:s};return e(t,{children:e(l.Provider,{value:g,children:e(i.Root,n({},p,{children:c}))})})};c.displayName="HoverCard.Root";export{l as HoverCardContext,c as HoverCardRoot};
2
3
  //# sourceMappingURL=HoverCardRoot.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"HoverCardRoot.mjs","sources":["../../../lib/components/HoverCard/HoverCardRoot.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 { HoverCard as HoverCardTheme, Theme } from '@radix-ui/themes';\nexport var HoverCardContext = createContext({\n radius: 'medium',\n size: 'medium',\n scaling: '100%',\n weight: 'medium',\n color: 'red',\n});\nexport var HoverCardRoot = function (_a) {\n var children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, weight = _a.weight, color = _a.color, props = __rest(_a, [\"children\", \"radius\", \"size\", \"scaling\", \"weight\", \"color\"]);\n var contextValue = { radius: radius, size: size, scaling: scaling, weight: weight, color: color };\n return (_jsx(Theme, { children: _jsx(HoverCardContext.Provider, { value: contextValue, children: _jsx(HoverCardTheme.Root, __assign({}, props, { children: children })) }) }));\n};\nHoverCardRoot.displayName = 'HoverCard.Root';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","HoverCardContext","createContext","radius","size","scaling","weight","color","HoverCardRoot","_a","children","props","contextValue","_jsx","Theme","Provider","value","HoverCardTheme","Root","displayName"],"mappings":"sIAAA,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,EAAmBC,EAAc,CACxCC,OAAQ,SACRC,KAAM,SACNC,QAAS,OACTC,OAAQ,SACRC,MAAO,QAEAC,EAAgB,SAAUC,GACjC,IAAIC,EAAWD,EAAGC,SAAUP,EAASM,EAAGN,OAAQC,EAAOK,EAAGL,KAAMC,EAAUI,EAAGJ,QAASC,EAASG,EAAGH,OAAQC,EAAQE,EAAGF,MAAOI,EAAQf,EAAOa,EAAI,CAAC,WAAY,SAAU,OAAQ,UAAW,SAAU,UAC/LG,EAAe,CAAET,OAAQA,EAAQC,KAAMA,EAAMC,QAASA,EAASC,OAAQA,EAAQC,MAAOA,GAC1F,OAAQM,EAAKC,EAAO,CAAEJ,SAAUG,EAAKZ,EAAiBc,SAAU,CAAEC,MAAOJ,EAAcF,SAAUG,EAAKI,EAAeC,KAAMrC,EAAS,CAAE,EAAE8B,EAAO,CAAED,SAAUA,QAC/J,EACAF,EAAcW,YAAc"}
1
+ {"version":3,"file":"HoverCardRoot.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -6,7 +6,7 @@ export interface IconButtonProps extends VariantProps<typeof iconButtonVariants>
6
6
  size?: ISize;
7
7
  }
8
8
  declare const iconButtonVariants: (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
  size?: "small" | "medium" | "large" | "x-small" | "x-large" | null | undefined;
12
12
  color?: string | null | undefined;
@@ -25,6 +25,7 @@ import React, { Children, forwardRef } from 'react';
25
25
  import { cva } from 'class-variance-authority';
26
26
  import { scalingVariants, radiusVariants, primaryColorStyle, appearanceStyle } from '../../../lib/constants';
27
27
  import { cn } from '../../../lib/utils/utils';
28
+ import { useTheme } from '../../../lib/theme';
28
29
  var 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", {
29
30
  variants: {
30
31
  radius: __assign({}, radiusVariants['base']),
@@ -54,9 +55,16 @@ var iconSize = {
54
55
  };
55
56
  export var IconButton = forwardRef(function (_a, ref) {
56
57
  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"]);
58
+ var theme = useTheme().theme;
57
59
  var width = iconSize[size];
58
60
  var height = iconSize[size];
59
- var buttonClassName = cn(iconButtonVariants({ radius: radius, scaling: scaling, size: size, color: color }), appearanceStyle(appearance, color, true), className);
61
+ var iconButtonStyle = {
62
+ radius: theme.themeRadius || radius,
63
+ scaling: theme.themeScaling || scaling,
64
+ color: theme.themeColor || color,
65
+ size: size,
66
+ };
67
+ var buttonClassName = cn(iconButtonVariants(iconButtonStyle), appearanceStyle(appearance, iconButtonStyle.color, true), className);
60
68
  return (_jsx("button", __assign({ ref: ref, className: buttonClassName }, props, { children: Children.map(children, function (child) { return React.cloneElement(child, { width: width, height: height }); }) })));
61
69
  });
62
70
  IconButton.displayName = 'IconButton';
@@ -1,2 +1,2 @@
1
- import{jsx as r}from"react/jsx-runtime";import e,{forwardRef as t,Children as a}from"react";import{cva as o}from"class-variance-authority";import{radiusVariants as i,scalingVariants as n,primaryColorStyle as l,appearanceStyle as s}from"../../constants.mjs";import{cn as c}from"../../utils/utils.mjs";var p=function(){return p=Object.assign||function(r){for(var e,t=1,a=arguments.length;t<a;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},p.apply(this,arguments)},m=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 o=0;for(a=Object.getOwnPropertySymbols(r);o<a.length;o++)e.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(r,a[o])&&(t[a[o]]=r[a[o]])}return t},u=o("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",{variants:{radius:p({},i.base),scaling:p({},n),size:{"x-small":"p-1 w-5 h-5",small:"p-[6px] w-6 h-6",medium:"p-2 w-8 h-8",large:"p-[11px] w-10 h-10","x-large":"p-[14px] w-12 h-12"},color:l()},defaultVariants:{radius:"medium",scaling:"100%",size:"medium",color:"red"}}),d={"x-small":12,small:14,medium:16,large:18,"x-large":20},f=t((function(t,o){var i=t.children,n=t.className,l=t.radius,f=t.size,h=void 0===f?"medium":f,g=t.scaling,b=t.color,y=void 0===b?"red":b,v=t.appearance,x=void 0===v?"solid":v,O=m(t,["children","className","radius","size","scaling","color","appearance"]),w=d[h],j=d[h],z=c(u({radius:l,scaling:g,size:h,color:y}),s(x,y,!0),n);return r("button",p({ref:o,className:z},O,{children:a.map(i,(function(r){return e.cloneElement(r,{width:w,height:j})}))}))}));f.displayName="IconButton";export{f as IconButton,f as default};
1
+ import{jsx as e}from"react/jsx-runtime";import r,{forwardRef as t,Children as o}from"react";import{cva as a}from"class-variance-authority";import{radiusVariants as i,scalingVariants as l,primaryColorStyle as n,appearanceStyle as s}from"../../constants.mjs";import{cn as c}from"../../utils/utils.mjs";import{useTheme as m}from"../../theme/ThemeProvider.mjs";var p=function(){return p=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},p.apply(this,arguments)},u=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(t[o[a]]=e[o[a]])}return t},d=a("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",{variants:{radius:p({},i.base),scaling:p({},l),size:{"x-small":"p-1 w-5 h-5",small:"p-[6px] w-6 h-6",medium:"p-2 w-8 h-8",large:"p-[11px] w-10 h-10","x-large":"p-[14px] w-12 h-12"},color:n()},defaultVariants:{radius:"medium",scaling:"100%",size:"medium",color:"red"}}),f={"x-small":12,small:14,medium:16,large:18,"x-large":20},h=t((function(t,a){var i=t.children,l=t.className,n=t.radius,h=t.size,g=void 0===h?"medium":h,b=t.scaling,v=t.color,y=void 0===v?"red":v,x=t.appearance,O=void 0===x?"solid":x,w=u(t,["children","className","radius","size","scaling","color","appearance"]),j=m().theme,z=f[g],P=f[g],N={radius:j.themeRadius||n,scaling:j.themeScaling||b,color:j.themeColor||y,size:g},S=c(d(N),s(O,N.color,!0),l);return e("button",p({ref:a,className:S},w,{children:o.map(i,(function(e){return r.cloneElement(e,{width:z,height:P})}))}))}));h.displayName="IconButton";export{h as IconButton,h as default};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -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;