@lotte-innovate/ui-component-test 0.0.121 → 0.0.123

Sign up to get free protection for your applications and to get access to all the features.
Files changed (273) hide show
  1. package/README.md +6 -6
  2. package/dist/globals.css +3 -3
  3. package/dist/lib/Typography/Text/index.mjs +1 -1
  4. package/dist/lib/color/alpha.mjs +1 -1
  5. package/dist/lib/color/alpha.mjs.map +1 -1
  6. package/dist/lib/components/Box/index.d.ts +10 -0
  7. package/dist/lib/components/Box/index.js +56 -0
  8. package/dist/lib/components/Box/index.mjs +2 -0
  9. package/dist/lib/components/Box/index.mjs.map +1 -0
  10. package/dist/lib/components/Calendar/index.d.ts +8 -0
  11. package/dist/lib/components/Calendar/index.js +49 -0
  12. package/dist/lib/components/Calendar/index.mjs +3 -0
  13. package/dist/lib/components/Calendar/index.mjs.map +1 -0
  14. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +6 -2
  15. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +18 -3
  16. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +1 -1
  17. package/dist/lib/components/Datepicker/index.d.ts +14 -0
  18. package/dist/lib/components/Datepicker/index.js +35 -0
  19. package/dist/lib/components/Datepicker/index.mjs +3 -0
  20. package/dist/lib/components/Datepicker/index.mjs.map +1 -0
  21. package/dist/lib/components/Dialog/DialogAction.js +3 -2
  22. package/dist/lib/components/Dialog/DialogAction.mjs +1 -1
  23. package/dist/lib/components/Dialog/DialogCancel.js +2 -1
  24. package/dist/lib/components/Dialog/DialogCancel.mjs +1 -1
  25. package/dist/lib/components/Dialog/DialogRoot.js +1 -1
  26. package/dist/lib/components/Dialog/DialogRoot.mjs +1 -1
  27. package/dist/lib/components/Editor/index.d.ts +3 -0
  28. package/dist/lib/components/Editor/index.js +51 -16
  29. package/dist/lib/components/Editor/index.mjs +1 -1
  30. package/dist/lib/components/Footer/index.js +1 -1
  31. package/dist/lib/components/Footer/index.mjs +1 -1
  32. package/dist/lib/components/Gnb/GnbLogo.d.ts +1 -0
  33. package/dist/lib/components/Gnb/GnbLogo.js +2 -2
  34. package/dist/lib/components/Gnb/GnbLogo.mjs +1 -1
  35. package/dist/lib/components/Gnb/GnbLogo.mjs.map +1 -1
  36. package/dist/lib/components/Gnb/GnbMenu.d.ts +0 -2
  37. package/dist/lib/components/Gnb/GnbMenu.js +2 -5
  38. package/dist/lib/components/Gnb/GnbMenu.mjs +1 -1
  39. package/dist/lib/components/Gnb/GnbMenuItem.d.ts +11 -0
  40. package/dist/lib/components/Gnb/GnbMenuItem.js +46 -0
  41. package/dist/lib/components/Gnb/GnbMenuItem.mjs +3 -0
  42. package/dist/lib/components/Gnb/GnbMenuItem.mjs.map +1 -0
  43. package/dist/lib/components/Gnb/index.d.ts +1 -0
  44. package/dist/lib/components/Gnb/index.js +2 -0
  45. package/dist/lib/components/Gnb/index.mjs +1 -1
  46. package/dist/lib/components/Gnb/index.mjs.map +1 -1
  47. package/dist/lib/components/Grid/NumberingPagination.d.ts +2 -0
  48. package/dist/lib/components/Grid/NumberingPagination.js +76 -0
  49. package/dist/lib/components/Grid/NumberingPagination.mjs +2 -0
  50. package/dist/lib/components/Grid/NumberingPagination.mjs.map +1 -0
  51. package/dist/lib/components/Grid/Pagination.js +2 -1
  52. package/dist/lib/components/Grid/index.js +2 -2
  53. package/dist/lib/components/Grid/index.mjs +1 -1
  54. package/dist/lib/components/Grid/useGrid.js +14 -8
  55. package/dist/lib/components/Grid/useGrid.mjs +1 -1
  56. package/dist/lib/components/Label/index.d.ts +2 -0
  57. package/dist/lib/components/Label/index.js +3 -3
  58. package/dist/lib/components/Label/index.mjs +1 -1
  59. package/dist/lib/components/Modal/ModalAction.d.ts +11 -0
  60. package/dist/lib/components/Modal/ModalAction.js +62 -0
  61. package/dist/lib/components/Modal/ModalAction.mjs +3 -0
  62. package/dist/lib/components/Modal/ModalAction.mjs.map +1 -0
  63. package/dist/lib/components/Modal/ModalCancel.d.ts +10 -0
  64. package/dist/lib/components/Modal/ModalCancel.js +58 -0
  65. package/dist/lib/components/Modal/ModalCancel.mjs +3 -0
  66. package/dist/lib/components/Modal/ModalCancel.mjs.map +1 -0
  67. package/dist/lib/components/Modal/ModalContent.d.ts +11 -0
  68. package/dist/lib/components/Modal/ModalContent.js +61 -0
  69. package/dist/lib/components/Modal/ModalContent.mjs +3 -0
  70. package/dist/lib/components/Modal/ModalContent.mjs.map +1 -0
  71. package/dist/lib/components/Modal/ModalDescription.d.ts +5 -0
  72. package/dist/lib/components/Modal/ModalDescription.js +47 -0
  73. package/dist/lib/components/Modal/ModalDescription.mjs +3 -0
  74. package/dist/lib/components/Modal/ModalDescription.mjs.map +1 -0
  75. package/dist/lib/components/Modal/ModalFooter.d.ts +2 -0
  76. package/dist/lib/components/Modal/ModalFooter.js +30 -0
  77. package/dist/lib/components/Modal/ModalFooter.mjs +2 -0
  78. package/dist/lib/components/Modal/ModalFooter.mjs.map +1 -0
  79. package/dist/lib/components/Modal/ModalRoot.d.ts +16 -0
  80. package/dist/lib/components/Modal/ModalRoot.js +42 -0
  81. package/dist/lib/components/Modal/ModalRoot.mjs +3 -0
  82. package/dist/lib/components/Modal/ModalRoot.mjs.map +1 -0
  83. package/dist/lib/components/Modal/ModalTitle.d.ts +11 -0
  84. package/dist/lib/components/Modal/ModalTitle.js +63 -0
  85. package/dist/lib/components/Modal/ModalTitle.mjs +3 -0
  86. package/dist/lib/components/Modal/ModalTitle.mjs.map +1 -0
  87. package/dist/lib/components/Modal/ModalTrigger.d.ts +3 -0
  88. package/dist/lib/components/Modal/ModalTrigger.js +30 -0
  89. package/dist/lib/components/Modal/ModalTrigger.mjs +2 -0
  90. package/dist/lib/components/Modal/ModalTrigger.mjs.map +1 -0
  91. package/dist/lib/components/Modal/index.d.ts +15 -0
  92. package/dist/lib/components/Modal/index.js +19 -0
  93. package/dist/lib/components/Modal/index.mjs +2 -0
  94. package/dist/lib/components/Modal/index.mjs.map +1 -0
  95. package/dist/lib/components/Popover/index.mjs.map +1 -1
  96. package/dist/lib/components/SearchBar/index.d.ts +15 -0
  97. package/dist/lib/components/SearchBar/index.js +85 -0
  98. package/dist/lib/components/SearchBar/index.mjs +3 -0
  99. package/dist/lib/components/SearchBar/index.mjs.map +1 -0
  100. package/dist/lib/components/SideBar/index.d.ts +21 -0
  101. package/dist/lib/components/SideBar/index.js +100 -0
  102. package/dist/lib/components/SideBar/index.mjs +3 -0
  103. package/dist/lib/components/SideBar/index.mjs.map +1 -0
  104. package/dist/lib/components/Tabs/DynamicTabs.d.ts +30 -0
  105. package/dist/lib/components/Tabs/DynamicTabs.js +73 -0
  106. package/dist/lib/components/Tabs/DynamicTabs.mjs +3 -0
  107. package/dist/lib/components/Tabs/DynamicTabs.mjs.map +1 -0
  108. package/dist/lib/components/Tabs/index.d.ts +2 -2
  109. package/dist/lib/components/TextField/index.d.ts +4 -0
  110. package/dist/lib/components/TextField/index.js +39 -4
  111. package/dist/lib/components/TextField/index.mjs +1 -1
  112. package/dist/lib/components/Timeline/TimelineConnector.js +1 -3
  113. package/dist/lib/components/Timeline/TimelineConnector.mjs +2 -0
  114. package/dist/lib/components/Timeline/TimelineConnector.mjs.map +1 -0
  115. package/dist/lib/components/Timeline/TimelineContent.mjs +2 -0
  116. package/dist/lib/components/Timeline/TimelineContent.mjs.map +1 -0
  117. package/dist/lib/components/Timeline/TimelineDescription.mjs +2 -0
  118. package/dist/lib/components/Timeline/TimelineDescription.mjs.map +1 -0
  119. package/dist/lib/components/Timeline/TimelineHeader.mjs +2 -0
  120. package/dist/lib/components/Timeline/TimelineHeader.mjs.map +1 -0
  121. package/dist/lib/components/Timeline/TimelineIcon.js +4 -3
  122. package/dist/lib/components/Timeline/TimelineIcon.mjs +3 -0
  123. package/dist/lib/components/Timeline/TimelineIcon.mjs.map +1 -0
  124. package/dist/lib/components/Timeline/TimelineItem.js +1 -1
  125. package/dist/lib/components/Timeline/TimelineItem.mjs +2 -0
  126. package/dist/lib/components/Timeline/TimelineItem.mjs.map +1 -0
  127. package/dist/lib/components/Timeline/TimelineRoot.js +13 -7
  128. package/dist/lib/components/Timeline/TimelineRoot.mjs +3 -0
  129. package/dist/lib/components/Timeline/TimelineRoot.mjs.map +1 -0
  130. package/dist/lib/components/Timeline/TimelineTime.d.ts +3 -1
  131. package/dist/lib/components/Timeline/TimelineTime.js +16 -4
  132. package/dist/lib/components/Timeline/TimelineTime.mjs +3 -0
  133. package/dist/lib/components/Timeline/TimelineTime.mjs.map +1 -0
  134. package/dist/lib/components/Timeline/TimelineTitle.d.ts +3 -1
  135. package/dist/lib/components/Timeline/TimelineTitle.js +16 -4
  136. package/dist/lib/components/Timeline/TimelineTitle.mjs +3 -0
  137. package/dist/lib/components/Timeline/TimelineTitle.mjs.map +1 -0
  138. package/dist/lib/components/Timeline/index.mjs +2 -0
  139. package/dist/lib/components/Timeline/index.mjs.map +1 -0
  140. package/dist/lib/components/Tooltip/index.d.ts +1 -0
  141. package/dist/lib/components/Tooltip/index.js +2 -2
  142. package/dist/lib/components/Tooltip/index.mjs +1 -1
  143. package/dist/lib/components/index.d.ts +8 -0
  144. package/dist/lib/components/index.js +8 -0
  145. package/dist/lib/constants.js +1 -1
  146. package/dist/lib/constants.mjs +1 -1
  147. package/dist/lib/constants.mjs.map +1 -1
  148. package/dist/lib/index.mjs +1 -1
  149. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.mjs +2 -0
  150. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.mjs.map +1 -0
  151. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.mjs +2 -0
  152. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.mjs.map +1 -0
  153. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.mjs +2 -0
  154. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.mjs.map +1 -0
  155. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.mjs +2 -0
  156. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.mjs.map +1 -0
  157. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatDistance/index.mjs +2 -0
  158. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatDistance/index.mjs.map +1 -0
  159. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatLong/index.mjs +2 -0
  160. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatLong/index.mjs.map +1 -0
  161. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatRelative/index.mjs +2 -0
  162. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatRelative/index.mjs.map +1 -0
  163. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/localize/index.mjs +2 -0
  164. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/localize/index.mjs.map +1 -0
  165. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/match/index.mjs +2 -0
  166. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/match/index.mjs.map +1 -0
  167. package/dist/lib/node_modules/date-fns/esm/locale/ko/index.mjs +2 -0
  168. package/dist/lib/node_modules/date-fns/esm/locale/ko/index.mjs.map +1 -0
  169. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  170. package/dist/lib/types.d.ts +0 -5
  171. package/dist/lib/utils/classPrefixes.js +3 -0
  172. package/dist/lib/utils/langs/it.d.ts +0 -0
  173. package/dist/lib/utils/langs/it.js +2 -0
  174. package/dist/lib/utils/langs/it.mjs +3 -0
  175. package/dist/lib/utils/langs/it.mjs.map +1 -0
  176. package/dist/lib/utils/langs/ja.d.ts +0 -0
  177. package/dist/lib/utils/langs/ja.js +2 -0
  178. package/dist/lib/utils/langs/ja.mjs +3 -0
  179. package/dist/lib/utils/langs/ja.mjs.map +1 -0
  180. package/dist/lib/utils/langs/ko_KR.d.ts +0 -0
  181. package/dist/lib/utils/langs/ko_KR.js +2 -0
  182. package/dist/lib/utils/langs/ko_KR.mjs +3 -0
  183. package/dist/lib/utils/langs/ko_KR.mjs.map +1 -0
  184. package/dist/lib/utils/langs/vi.d.ts +0 -0
  185. package/dist/lib/utils/langs/vi.js +2 -0
  186. package/dist/lib/utils/langs/vi.mjs +3 -0
  187. package/dist/lib/utils/langs/vi.mjs.map +1 -0
  188. package/dist/lib/utils/langs/zh_CN.d.ts +0 -0
  189. package/dist/lib/utils/langs/zh_CN.js +2 -0
  190. package/dist/lib/utils/langs/zh_CN.mjs +3 -0
  191. package/dist/lib/utils/langs/zh_CN.mjs.map +1 -0
  192. package/dist/lib/utils/useLoadTinyMCE.d.ts +1 -0
  193. package/dist/lib/utils/useLoadTinyMCE.js +154 -0
  194. package/dist/lib/utils/useLoadTinyMCE.mjs +2 -0
  195. package/dist/lib/utils/useLoadTinyMCE.mjs.map +1 -0
  196. package/dist/lib/utils/useWindowSize.d.ts +1 -0
  197. package/dist/lib/utils/useWindowSize.js +17 -0
  198. package/dist/lib/utils/useWindowSize.mjs +2 -0
  199. package/dist/lib/utils/useWindowSize.mjs.map +1 -0
  200. package/dist/tailwind.config.js +3 -0
  201. package/dist/tsconfig.tsbuildinfo +1 -1
  202. package/package.json +7 -5
  203. package/dist/lib/components/Grid/Pagination.mjs +0 -2
  204. package/dist/lib/components/Grid/Pagination.mjs.map +0 -1
  205. package/public/tinymce/CHANGELOG.md +0 -3453
  206. package/public/tinymce/README.md +0 -73
  207. package/public/tinymce/bower.json +0 -27
  208. package/public/tinymce/composer.json +0 -52
  209. package/public/tinymce/icons/default/icons.js +0 -194
  210. package/public/tinymce/icons/default/icons.min.js +0 -1
  211. package/public/tinymce/icons/default/index.js +0 -7
  212. package/public/tinymce/license.txt +0 -21
  213. package/public/tinymce/models/dom/index.js +0 -7
  214. package/public/tinymce/models/dom/model.js +0 -8040
  215. package/public/tinymce/models/dom/model.min.js +0 -4
  216. package/public/tinymce/package.json +0 -32
  217. package/public/tinymce/plugins/advlist/index.js +0 -7
  218. package/public/tinymce/plugins/advlist/plugin.js +0 -259
  219. package/public/tinymce/plugins/advlist/plugin.min.js +0 -4
  220. package/public/tinymce/plugins/autolink/index.js +0 -7
  221. package/public/tinymce/plugins/autolink/plugin.js +0 -228
  222. package/public/tinymce/plugins/autolink/plugin.min.js +0 -4
  223. package/public/tinymce/plugins/code/index.js +0 -7
  224. package/public/tinymce/plugins/code/plugin.js +0 -85
  225. package/public/tinymce/plugins/code/plugin.min.js +0 -4
  226. package/public/tinymce/plugins/codesample/index.js +0 -7
  227. package/public/tinymce/plugins/codesample/plugin.js +0 -2463
  228. package/public/tinymce/plugins/codesample/plugin.min.js +0 -4
  229. package/public/tinymce/plugins/image/index.js +0 -7
  230. package/public/tinymce/plugins/image/plugin.js +0 -1505
  231. package/public/tinymce/plugins/image/plugin.min.js +0 -4
  232. package/public/tinymce/plugins/link/index.js +0 -7
  233. package/public/tinymce/plugins/link/plugin.js +0 -1242
  234. package/public/tinymce/plugins/link/plugin.min.js +0 -4
  235. package/public/tinymce/plugins/lists/index.js +0 -7
  236. package/public/tinymce/plugins/lists/plugin.js +0 -2172
  237. package/public/tinymce/plugins/lists/plugin.min.js +0 -4
  238. package/public/tinymce/plugins/table/index.js +0 -7
  239. package/public/tinymce/plugins/table/plugin.js +0 -3462
  240. package/public/tinymce/plugins/table/plugin.min.js +0 -4
  241. package/public/tinymce/skins/content/default/content.css +0 -61
  242. package/public/tinymce/skins/content/default/content.js +0 -2
  243. package/public/tinymce/skins/content/default/content.min.css +0 -1
  244. package/public/tinymce/skins/ui/oxide/content.css +0 -785
  245. package/public/tinymce/skins/ui/oxide/content.inline.css +0 -779
  246. package/public/tinymce/skins/ui/oxide/content.inline.js +0 -2
  247. package/public/tinymce/skins/ui/oxide/content.inline.min.css +0 -1
  248. package/public/tinymce/skins/ui/oxide/content.js +0 -2
  249. package/public/tinymce/skins/ui/oxide/content.min.css +0 -1
  250. package/public/tinymce/skins/ui/oxide/skin.css +0 -3763
  251. package/public/tinymce/skins/ui/oxide/skin.js +0 -2
  252. package/public/tinymce/skins/ui/oxide/skin.min.css +0 -1
  253. package/public/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -30
  254. package/public/tinymce/skins/ui/oxide/skin.shadowdom.js +0 -2
  255. package/public/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -1
  256. package/public/tinymce/skins/ui/oxide-dark/content.css +0 -766
  257. package/public/tinymce/skins/ui/oxide-dark/content.inline.css +0 -779
  258. package/public/tinymce/skins/ui/oxide-dark/content.inline.js +0 -2
  259. package/public/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -1
  260. package/public/tinymce/skins/ui/oxide-dark/content.js +0 -2
  261. package/public/tinymce/skins/ui/oxide-dark/content.min.css +0 -1
  262. package/public/tinymce/skins/ui/oxide-dark/skin.css +0 -3766
  263. package/public/tinymce/skins/ui/oxide-dark/skin.js +0 -2
  264. package/public/tinymce/skins/ui/oxide-dark/skin.min.css +0 -1
  265. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -30
  266. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +0 -2
  267. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
  268. package/public/tinymce/themes/silver/index.js +0 -7
  269. package/public/tinymce/themes/silver/theme.js +0 -30775
  270. package/public/tinymce/themes/silver/theme.min.js +0 -384
  271. package/public/tinymce/tinymce.d.ts +0 -3238
  272. package/public/tinymce/tinymce.js +0 -31779
  273. package/public/tinymce/tinymce.min.js +0 -384
@@ -0,0 +1,30 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { forwardRef } from 'react';
25
+ import { cn } from '../../../lib/utils/utils';
26
+ export var ModalFooter = forwardRef(function (_a, ref) {
27
+ var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
28
+ return (_jsx("div", __assign({ ref: ref, className: cn('flex justify-end border-t border-slate-5 p-4 dark:border-slateDark-5', className) }, props, { children: children })));
29
+ });
30
+ ModalFooter.displayName = 'Modal.Footer';
@@ -0,0 +1,2 @@
1
+ import{jsx as r}from"react/jsx-runtime";import{forwardRef as e}from"react";import{cn as t}from"../../utils/utils.mjs";var o=function(){return o=Object.assign||function(r){for(var e,t=1,o=arguments.length;t<o;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},o.apply(this,arguments)},n=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 n=0;for(o=Object.getOwnPropertySymbols(r);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(r,o[n])&&(t[o[n]]=r[o[n]])}return t},a=e((function(e,a){var l=e.className,i=e.children,c=n(e,["className","children"]);return r("div",o({ref:a,className:t("flex justify-end border-t border-slate-5 p-4 dark:border-slateDark-5",l)},c,{children:i}))}));a.displayName="Modal.Footer";export{a as ModalFooter};
2
+ //# sourceMappingURL=ModalFooter.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalFooter.mjs","sources":["../../../lib/components/Modal/ModalFooter.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 { cn } from '../../../lib/utils/utils';\nexport var ModalFooter = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, props = __rest(_a, [\"className\", \"children\"]);\n return (_jsx(\"div\", __assign({ ref: ref, className: cn('flex justify-end border-t border-slate-5 p-4 dark:border-slateDark-5', className) }, props, { children: children })));\n});\nModalFooter.displayName = 'Modal.Footer';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","ModalFooter","forwardRef","_a","ref","className","children","props","_jsx","cn","displayName"],"mappings":"sHAAA,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,EAAcC,GAAW,SAAUC,EAAIC,GAC9C,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUC,EAAQX,EAAOO,EAAI,CAAC,YAAa,aACvF,OAAQK,EAAK,MAAO3B,EAAS,CAAEuB,IAAKA,EAAKC,UAAWI,EAAG,uEAAwEJ,IAAcE,EAAO,CAAED,SAAUA,IACpK,IACAL,EAAYS,YAAc"}
@@ -0,0 +1,16 @@
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
+ import { Dialog as DialogTheme } from '@radix-ui/themes';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { modalContentVariants } from './ModalContent';
5
+ import { IRadius, IScaling, ISize } from '../../../lib/types';
6
+ export interface ModalRootProps extends VariantProps<typeof modalContentVariants> {
7
+ color?: any;
8
+ size?: Exclude<ISize, 'x-small'>;
9
+ scaling?: IScaling;
10
+ radius?: IRadius;
11
+ }
12
+ export declare const ModalContext: React.Context<ModalRootProps>;
13
+ export declare const ModalRoot: {
14
+ ({ children, radius, size, scaling, color, ...props }: ComponentPropsWithoutRef<typeof DialogTheme.Root> & ModalRootProps): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
@@ -0,0 +1,42 @@
1
+ 'use client';
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ import { jsx as _jsx } from "react/jsx-runtime";
25
+ import { createContext } from 'react';
26
+ import { Theme, Dialog as DialogTheme } from '@radix-ui/themes';
27
+ import { useTheme } from '../../../lib/theme';
28
+ export var ModalContext = createContext({
29
+ size: 'medium',
30
+ });
31
+ export var ModalRoot = function (_a) {
32
+ var children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, color = _a.color, props = __rest(_a, ["children", "radius", "size", "scaling", "color"]);
33
+ var theme = useTheme().theme;
34
+ var contextValue = {
35
+ radius: radius !== null && radius !== void 0 ? radius : theme.themeRadius,
36
+ scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,
37
+ color: color !== null && color !== void 0 ? color : theme.themeColor,
38
+ size: size,
39
+ };
40
+ return (_jsx(Theme, { accentColor: contextValue.color, children: _jsx(ModalContext.Provider, { value: contextValue, children: _jsx(DialogTheme.Root, __assign({}, props, { children: children })) }) }));
41
+ };
42
+ ModalRoot.displayName = 'Modal.Root';
@@ -0,0 +1,3 @@
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 n}from"../../theme/ThemeProvider.mjs";var i=function(){return i=Object.assign||function(r){for(var e,o=1,t=arguments.length;o<t;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},i.apply(this,arguments)},l=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 n=0;for(t=Object.getOwnPropertySymbols(r);n<t.length;n++)e.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(r,t[n])&&(o[t[n]]=r[t[n]])}return o},a=e({size:"medium"}),c=function(e){var c=e.children,m=e.radius,s=e.size,u=e.scaling,p=e.color,d=l(e,["children","radius","size","scaling","color"]),f=n().theme,h={radius:null!=m?m:f.themeRadius,scaling:null!=u?u:f.themeScaling,color:null!=p?p:f.themeColor,size:s};return r(o,{accentColor:h.color,children:r(a.Provider,{value:h,children:r(t.Root,i({},d,{children:c}))})})};c.displayName="Modal.Root";export{a as ModalContext,c as ModalRoot};
3
+ //# sourceMappingURL=ModalRoot.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalRoot.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ export interface ModalTitleProps extends VariantProps<typeof modalTitleVariants> {
4
+ }
5
+ export declare const modalTitleVariants: (props?: ({
6
+ size?: "small" | "medium" | "large" | "x-large" | null | undefined;
7
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
8
+ export declare const modalCloseVariants: (props?: ({
9
+ size?: "small" | "medium" | "large" | "x-large" | null | undefined;
10
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
11
+ export declare const ModalTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & ModalTitleProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,63 @@
1
+ 'use client';
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
25
+ import { forwardRef, useContext } from 'react';
26
+ import { cva } from 'class-variance-authority';
27
+ import { Dialog as DialogTheme } from '@radix-ui/themes';
28
+ import { Cross2Icon } from '@radix-ui/react-icons';
29
+ import { ModalContext } from './ModalRoot';
30
+ import { cn } from '../../../lib/utils/utils';
31
+ import { IconButton } from '../../../lib';
32
+ export var modalTitleVariants = cva('m-0', {
33
+ variants: {
34
+ size: {
35
+ small: 'text-sm',
36
+ medium: 'text-lg',
37
+ large: 'text-xl',
38
+ 'x-large': 'text-2xl',
39
+ },
40
+ },
41
+ defaultVariants: {
42
+ size: 'medium',
43
+ },
44
+ });
45
+ export var modalCloseVariants = cva("inline-flex items-center justify-center bg-transparent text-slate-11 outline-none hover:cursor-pointer hover:bg-transparent active:border-none active:bg-transparent dark:bg-transparent dark:text-slateDark-11 dark:hover:bg-transparent dark:active:bg-transparent", {
46
+ variants: {
47
+ size: {
48
+ small: 'w-[24px] h-[24px]',
49
+ medium: 'w-[32px] h-[32px]',
50
+ large: 'w-[32px] h-[32px]',
51
+ 'x-large': 'w-[40px] h-[40px]',
52
+ },
53
+ },
54
+ defaultVariants: {
55
+ size: 'medium',
56
+ },
57
+ });
58
+ export var ModalTitle = forwardRef(function (_a, ref) {
59
+ var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
60
+ var size = useContext(ModalContext).size;
61
+ return (_jsxs("div", __assign({ ref: ref, className: "flex items-center justify-between border border-slate-5 p-4 font-bold text-slate-12 dark:border-slateDark-5 dark:text-slateDark-12" }, props, { children: [_jsx(DialogTheme.Title, { className: cn(modalTitleVariants({ size: size }), className), children: children }), _jsx(DialogTheme.Close, { className: modalCloseVariants({ size: size }), children: _jsx(IconButton, { "aria-label": "Close", className: "p-0 hover:text-slate-12 dark:hover:text-slateDark-12", size: size, children: _jsx(Cross2Icon, {}) }) })] })));
62
+ });
63
+ ModalTitle.displayName = 'Modal.Title';
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import{jsxs as o,jsx as t}from"react/jsx-runtime";import{forwardRef as e,useContext as r}from"react";import{cva as i}from"class-variance-authority";import{Dialog as m}from"@radix-ui/themes";import{Cross2Icon as n}from"@radix-ui/react-icons";import{ModalContext as a}from"./ModalRoot.mjs";import{cn as p}from"../../utils/utils.mjs";import"../Accordion/index.mjs";import"../AlertDialog/AlertDialogRoot.mjs";import"../AlertDialog/AlertDialogTrigger.mjs";import"../AlertDialog/AlertDialogContent.mjs";import"../AlertDialog/AlertDialogTitle.mjs";import"../AlertDialog/AlertDialogDescription.mjs";import"../AlertDialog/AlertDialogCancel.mjs";import"../AlertDialog/AlertDialogAction.mjs";import"../AspectRatio/index.mjs";import"../Avatar/index.mjs";import"../Badge/index.mjs";import"../Box/index.mjs";import"../Breadcrumb/BreadcrumbRoot.mjs";import"../Breadcrumb/BreadcrumbItem.mjs";import"../Breadcrumb/BreadcrumbLink.mjs";import"../Breadcrumb/BreadcrumbList.mjs";import"../Breadcrumb/BreadcrumbPage.mjs";import"../Breadcrumb/BreadcrumbSeparator.mjs";import"../Breadcrumb/BreadcrumbEllipsis.mjs";import"../Button/index.mjs";import"../Calendar/index.mjs";import"../Callout/CalloutRoot.mjs";import"../Callout/CalloutText.mjs";import"../Callout/CalloutIcon.mjs";import"../Card/index.mjs";import"../Checkbox/index.mjs";import"../CheckboxCard/index.mjs";import"../CheckboxGroup/CheckboxGroupRoot.mjs";import"../CheckboxGroup/CheckboxGroupItem.mjs";import"../ContextMenu/ContextMenuRoot.mjs";import"../ContextMenu/ContextMenuContent.mjs";import"../ContextMenu/ContextMenuCheckboxItem.mjs";import"../ContextMenu/ContextMenuGroup.mjs";import"../ContextMenu/ContextMenuItem.mjs";import"../ContextMenu/ContextMenuItemIndicator.mjs";import"../ContextMenu/ContextMenuLabel.mjs";import"../ContextMenu/ContextMenuTrigger.mjs";import"../ContextMenu/ContextMenuRadioGroup.mjs";import"../ContextMenu/ContextMenuRadioItem.mjs";import"../ContextMenu/ContextMenuSeparator.mjs";import"../ContextMenu/ContextMenuSubTrigger.mjs";import"../ContextMenu/ContextMenuSubContent.mjs";import"../Collapsible/index.mjs";import"../DataList/DataListRoot.mjs";import"../DataList/DataListItem.mjs";import"../DataList/DataListLabel.mjs";import"../DataList/DataListValue.mjs";import"../Datepicker/index.mjs";import"../Dialog/DialogRoot.mjs";import"../Dialog/DialogTrigger.mjs";import"../Dialog/DialogContent.mjs";import"../Dialog/DialogTitle.mjs";import"../Dialog/DialogDescription.mjs";import"../Dialog/DialogSlot.mjs";import"../Dialog/DialogCancel.mjs";import"../Dialog/DialogAction.mjs";import"../DropdownMenu/DropdownMenuRoot.mjs";import"../DropdownMenu/DropdownMenuTrigger.mjs";import"../DropdownMenu/DropdownMenuContent.mjs";import"../DropdownMenu/DropdownMenuLable.mjs";import"../DropdownMenu/DropdownMenuItem.mjs";import"../DropdownMenu/DropdownMenuSeparator.mjs";import"../DropdownMenu/DropdownMenuCheckboxItem.mjs";import"../DropdownMenu/DropdonMenuRadioGroup.mjs";import"../DropdownMenu/DropdownMenuRadioItem.mjs";import"../DropdownMenu/DropdownMenuSub.mjs";import"../DropdownMenu/DropdownMenuSubTrigger.mjs";import"../DropdownMenu/DropdonMenuSubContent.mjs";import"../DropdownMenu/DropdownMenuItemIndicator.mjs";import"../Editor/index.mjs";import"../Tabs/DynamicTabs.mjs";import"../Footer/index.mjs";import"../Gnb/GnbRoot.mjs";import"../Gnb/GnbLogo.mjs";import"../Gnb/GnbMenu.mjs";import"../Gnb/GnbMenuItem.mjs";import"../Gnb/GnbInfo.mjs";import"../HoverCard/HoverCardRoot.mjs";import"../HoverCard/HoverCardTrigger.mjs";import"../HoverCard/HoverCardContent.mjs";import{IconButton as s}from"../IconButton/index.mjs";import"../Inset/index.mjs";import"../Label/index.mjs";import"../Menubar/MenubarRoot.mjs";import"../Menubar/MenubarMenu.mjs";import"../Menubar/MenubarTrigger.mjs";import"../Menubar/MenubarContent.mjs";import"../Menubar/MenubarItem.mjs";import"../Menubar/MenubarSeparator.mjs";import"../Menubar/MenubarSub.mjs";import"../Menubar/MenubarSubTrigger.mjs";import"../Menubar/MenubarSubContent.mjs";import"../Menubar/MenubarCheckboxItem.mjs";import"../Menubar/MenubarItemIndicator.mjs";import"../Menubar/MenubarRadioGroup.mjs";import"../Menubar/MenubarRadioItem.mjs";import"./ModalTrigger.mjs";import"./ModalContent.mjs";import"./ModalDescription.mjs";import"./ModalFooter.mjs";import"./ModalCancel.mjs";import"./ModalAction.mjs";import"../NavigationMenu/NavigationMenuRoot.mjs";import"../NavigationMenu/NavigationMenuList.mjs";import"../NavigationMenu/NavigationMenuItem.mjs";import"../NavigationMenu/NavigationMenuTrigger.mjs";import"../NavigationMenu/NavigationMenuContent.mjs";import"../NavigationMenu/NavigationMenuViewport.mjs";import"../NavigationMenu/NavigationMenuIndicator.mjs";import"../NavigationMenu/NavigationMenuLink.mjs";import"../Popover/PopoverRoot.mjs";import"../Popover/PopoverTrigger.mjs";import"../Popover/PopoverContent.mjs";import"../Popover/PopoverClose.mjs";import"../Progress/index.mjs";import"../Radio/index.mjs";import"../RadioCards/RadioCardsRoot.mjs";import"../RadioCards/RadioCardsItem.mjs";import"../RadioGroup/RadioGroupRoot.mjs";import"../RadioGroup/RadioGroupItem.mjs";import"../ScrollArea/index.mjs";import"../SearchBar/index.mjs";import"../SegmentedControl/SegmentedControlRoot.mjs";import"../SegmentedControl/SegmentedControlItem.mjs";import"../Select/index.mjs";import"../Separator/index.mjs";import"../SideBar/index.mjs";import"../Skeleton/index.mjs";import"../Slider/index.mjs";import"../Spinner/index.mjs";import"../Table/index.mjs";import"../TabNav/index.mjs";import"../Tabs/index.mjs";import"../TextArea/index.mjs";import"../TextField/index.mjs";import"../Timeline/TimelineRoot.mjs";import"../Timeline/TimelineItem.mjs";import"../Timeline/TimelineConnector.mjs";import"../Timeline/TimelineHeader.mjs";import"../Timeline/TimelineTime.mjs";import"../Timeline/TimelineIcon.mjs";import"../Timeline/TimelineTitle.mjs";import"../Timeline/TimelineContent.mjs";import"../Timeline/TimelineDescription.mjs";import"../Toast/ToastRoot.mjs";import"../Toast/ToastTitle.mjs";import"../Toast/ToastDescription.mjs";import"../Toast/ToastActionButton.mjs";import"../Toggle/index.mjs";import"../Toggle/ToggleWithText.mjs";import"../ToggleGroup/ToggleGroupRoot.mjs";import"../ToggleGroup/ToggleGroupItem.mjs";import"../ToggleSwitch/index.mjs";import"../Tooltip/index.mjs";import"../BarChart/index.mjs";import"../BubbleChart/index.mjs";import"../RadarChart/index.mjs";import"../LineChart/index.mjs";import"../PieChart/index.mjs";import"../DoughnutChart/index.mjs";import"../Grid/index.mjs";import"../Grid/useGrid.mjs";import"../../Typography/Header/index.mjs";import"../../Typography/Text/index.mjs";import"../../theme/ThemeProvider.mjs";var l=function(){return l=Object.assign||function(o){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(o[i]=t[i]);return o},l.apply(this,arguments)},j=function(o,t){var e={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&t.indexOf(r)<0&&(e[r]=o[r]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(o);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(o,r[i])&&(e[r[i]]=o[r[i]])}return e},u=i("m-0",{variants:{size:{small:"text-sm",medium:"text-lg",large:"text-xl","x-large":"text-2xl"}},defaultVariants:{size:"medium"}}),d=i("inline-flex items-center justify-center bg-transparent text-slate-11 outline-none hover:cursor-pointer hover:bg-transparent active:border-none active:bg-transparent dark:bg-transparent dark:text-slateDark-11 dark:hover:bg-transparent dark:active:bg-transparent",{variants:{size:{small:"w-[24px] h-[24px]",medium:"w-[32px] h-[32px]",large:"w-[32px] h-[32px]","x-large":"w-[40px] h-[40px]"}},defaultVariants:{size:"medium"}}),x=e((function(e,i){var x=e.children,g=e.className,M=j(e,["children","className"]),b=r(a).size;return o("div",l({ref:i,className:"flex items-center justify-between border border-slate-5 p-4 font-bold text-slate-12 dark:border-slateDark-5 dark:text-slateDark-12"},M,{children:[t(m.Title,{className:p(u({size:b}),g),children:x}),t(m.Close,{className:d({size:b}),children:t(s,{"aria-label":"Close",className:"p-0 hover:text-slate-12 dark:hover:text-slateDark-12",size:b,children:t(n,{})})})]}))}));x.displayName="Modal.Title";export{x as ModalTitle,d as modalCloseVariants,u as modalTitleVariants};
3
+ //# sourceMappingURL=ModalTitle.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalTitle.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { Dialog as DialogTheme } from '@radix-ui/themes';
3
+ export declare const ModalTrigger: React.ForwardRefExoticComponent<Omit<DialogTheme.TriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,30 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { forwardRef } from 'react';
25
+ import { Dialog as DialogTheme } from '@radix-ui/themes';
26
+ export var ModalTrigger = forwardRef(function (_a, ref) {
27
+ var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
28
+ return (_jsx(DialogTheme.Trigger, __assign({ ref: ref, className: className }, props, { children: children })));
29
+ });
30
+ ModalTrigger.displayName = 'Modal.Trigger';
@@ -0,0 +1,2 @@
1
+ import{jsx as r}from"react/jsx-runtime";import{forwardRef as e}from"react";import{Dialog as t}from"@radix-ui/themes";var n=function(){return n=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},n.apply(this,arguments)},o=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},a=e((function(e,a){var i=e.children,c=e.className,l=o(e,["children","className"]);return r(t.Trigger,n({ref:a,className:c},l,{children:i}))}));a.displayName="Modal.Trigger";export{a as ModalTrigger};
2
+ //# sourceMappingURL=ModalTrigger.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalTrigger.mjs","sources":["../../../lib/components/Modal/ModalTrigger.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 { Dialog as DialogTheme } from '@radix-ui/themes';\nexport var ModalTrigger = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, props = __rest(_a, [\"children\", \"className\"]);\n return (_jsx(DialogTheme.Trigger, __assign({ ref: ref, className: className }, props, { children: children })));\n});\nModalTrigger.displayName = 'Modal.Trigger';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","ModalTrigger","forwardRef","_a","ref","children","className","props","_jsx","DialogTheme","Trigger","displayName"],"mappings":"qHAAA,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,GAAW,SAAUC,EAAIC,GAC/C,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWC,EAAQX,EAAOO,EAAI,CAAC,WAAY,cACtF,OAAQK,EAAKC,EAAYC,QAAS7B,EAAS,CAAEuB,IAAKA,EAAKE,UAAWA,GAAaC,EAAO,CAAEF,SAAUA,IACtG,IACAJ,EAAaU,YAAc"}
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ declare const Modal: {
3
+ Root: {
4
+ ({ children, radius, size, scaling, color, ...props }: import("@radix-ui/themes/dist/cjs/components/dialog").RootProps & import("./ModalRoot").ModalRootProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ Trigger: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/dialog").TriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
8
+ Content: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/dialog").ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("./ModalContent").ModalContentProps & import("react").RefAttributes<HTMLDivElement>>;
9
+ Title: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("./ModalTitle").ModalTitleProps & import("react").RefAttributes<HTMLDivElement>>;
10
+ Description: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
11
+ Footer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
12
+ Cancel: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/dialog").CloseProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("./ModalCancel").ModalCancelProps & import("react").RefAttributes<HTMLButtonElement>>;
13
+ Action: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/dialog").CloseProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("./ModalAction").ModalActionProps & import("react").RefAttributes<HTMLButtonElement>>;
14
+ };
15
+ export default Modal;
@@ -0,0 +1,19 @@
1
+ import { ModalRoot } from './ModalRoot';
2
+ import { ModalTrigger } from './ModalTrigger';
3
+ import { ModalContent } from './ModalContent';
4
+ import { ModalTitle } from './ModalTitle';
5
+ import { ModalDescription } from './ModalDescription';
6
+ import { ModalFooter } from './ModalFooter';
7
+ import { ModalCancel } from './ModalCancel';
8
+ import { ModalAction } from './ModalAction';
9
+ var Modal = {
10
+ Root: ModalRoot,
11
+ Trigger: ModalTrigger,
12
+ Content: ModalContent,
13
+ Title: ModalTitle,
14
+ Description: ModalDescription,
15
+ Footer: ModalFooter,
16
+ Cancel: ModalCancel,
17
+ Action: ModalAction,
18
+ };
19
+ export default Modal;
@@ -0,0 +1,2 @@
1
+ import{ModalRoot as o}from"./ModalRoot.mjs";import{ModalTrigger as r}from"./ModalTrigger.mjs";import{ModalContent as m}from"./ModalContent.mjs";import{ModalTitle as t}from"./ModalTitle.mjs";import{ModalDescription as i}from"./ModalDescription.mjs";import{ModalFooter as e}from"./ModalFooter.mjs";import{ModalCancel as a}from"./ModalCancel.mjs";import{ModalAction as l}from"./ModalAction.mjs";var p={Root:o,Trigger:r,Content:m,Title:t,Description:i,Footer:e,Cancel:a,Action:l};export{p as default};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../lib/components/Modal/index.js"],"sourcesContent":["import { ModalRoot } from './ModalRoot';\nimport { ModalTrigger } from './ModalTrigger';\nimport { ModalContent } from './ModalContent';\nimport { ModalTitle } from './ModalTitle';\nimport { ModalDescription } from './ModalDescription';\nimport { ModalFooter } from './ModalFooter';\nimport { ModalCancel } from './ModalCancel';\nimport { ModalAction } from './ModalAction';\nvar Modal = {\n Root: ModalRoot,\n Trigger: ModalTrigger,\n Content: ModalContent,\n Title: ModalTitle,\n Description: ModalDescription,\n Footer: ModalFooter,\n Cancel: ModalCancel,\n Action: ModalAction,\n};\nexport default Modal;\n"],"names":["Modal","Root","ModalRoot","Trigger","ModalTrigger","Content","ModalContent","Title","ModalTitle","Description","ModalDescription","Footer","ModalFooter","Cancel","ModalCancel","Action","ModalAction"],"mappings":"wYAQG,IAACA,EAAQ,CACRC,KAAMC,EACNC,QAASC,EACTC,QAASC,EACTC,MAAOC,EACPC,YAAaC,EACbC,OAAQC,EACRC,OAAQC,EACRC,OAAQC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/Popover/index.js"],"sourcesContent":["import { PopoverRoot } from './PopoverRoot';\nimport { PopoverTrigger } from './PopoverTrigger';\nimport { PopoverContent } from './PopoverContent';\nimport { PopoverClose } from './PopoverClose';\nvar Popover = {\n Root: PopoverRoot,\n Trigger: PopoverTrigger,\n Content: PopoverContent,\n Close: PopoverClose,\n};\nexport default Popover;\n"],"names":["Popover","Root","PopoverRoot","Trigger","PopoverTrigger","Content","PopoverContent","Close","PopoverClose"],"mappings":"8MAIG,IAACA,EAAU,CACVC,KAAMC,EACNC,QAASC,EACTC,QAASC,EACTC,MAAOC"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../lib/components/Popover/index.js"],"sourcesContent":["import { PopoverRoot } from './PopoverRoot';\nimport { PopoverTrigger } from './PopoverTrigger';\nimport { PopoverContent } from './PopoverContent';\nimport { PopoverClose } from './PopoverClose';\nvar Popover = {\n Root: PopoverRoot,\n Trigger: PopoverTrigger,\n Content: PopoverContent,\n Close: PopoverClose,\n};\nexport default Popover;\n"],"names":["Popover$1","Root","PopoverRoot","Trigger","PopoverTrigger","Content","PopoverContent","Close","PopoverClose"],"mappings":"8MAIA,IAMAA,EANc,CACVC,KAAMC,EACNC,QAASC,EACTC,QAASC,EACTC,MAAOC"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { ISize } from '../../../lib/types';
4
+ export interface SearchBarProps extends VariantProps<typeof SearchBarVariants> {
5
+ onClickSubmit?: React.MouseEventHandler<HTMLButtonElement>;
6
+ onClickReload?: React.MouseEventHandler<HTMLButtonElement>;
7
+ SubmitButton?: React.ReactElement;
8
+ ReloadButton?: React.ReactElement;
9
+ size?: ISize;
10
+ }
11
+ export declare const SearchBarVariants: (props?: ({
12
+ scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
13
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
14
+ export declare const SearchBar: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-collapsible").CollapsibleProps & React.RefAttributes<HTMLDivElement>, "ref"> & import("../../../lib/components/Collapsible").CollapsibleProps & React.RefAttributes<HTMLDivElement>, "ref"> & SearchBarProps & React.RefAttributes<HTMLDivElement>>;
15
+ export default SearchBar;
@@ -0,0 +1,85 @@
1
+ 'use client';
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
25
+ import React, { forwardRef, useRef, useEffect, useState, } from 'react';
26
+ import { cva } from 'class-variance-authority';
27
+ import { scalingVariants } from '../../../lib/constants';
28
+ import { cn } from '../../../lib/utils/utils';
29
+ import { useTheme } from '../../../lib/theme';
30
+ import Collapsible from '../../../lib/components/Collapsible';
31
+ import IconButton from '../IconButton';
32
+ import { MagnifyingGlassIcon, ReloadIcon } from '@radix-ui/react-icons';
33
+ export var SearchBarVariants = cva("", {
34
+ variants: {
35
+ scaling: __assign({}, scalingVariants),
36
+ },
37
+ defaultVariants: {
38
+ scaling: '100%',
39
+ },
40
+ });
41
+ export var SearchBar = forwardRef(function (_a) {
42
+ var className = _a.className, children = _a.children, scaling = _a.scaling, size = _a.size, color = _a.color, onClickSubmit = _a.onClickSubmit, onClickReload = _a.onClickReload, SubmitButton = _a.SubmitButton, ReloadButton = _a.ReloadButton, props = __rest(_a, ["className", "children", "scaling", "size", "color", "onClickSubmit", "onClickReload", "SubmitButton", "ReloadButton"]);
43
+ var containerRef = useRef(null);
44
+ var theme = useTheme().theme;
45
+ var contextValue = {
46
+ scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,
47
+ color: color !== null && color !== void 0 ? color : theme.themeColor,
48
+ size: size,
49
+ };
50
+ var _b = useState([]), firstLineIndices = _b[0], setFirstLineIndices = _b[1];
51
+ var _c = useState([]), secondLineIndices = _c[0], setSecondLineIndices = _c[1];
52
+ var _d = useState(false), open = _d[0], setOpen = _d[1];
53
+ var _e = useState(false), initSetting = _e[0], setInitSetting = _e[1];
54
+ useEffect(function () {
55
+ if (children) {
56
+ setInitSetting(false);
57
+ var container = containerRef.current;
58
+ var childElements = Array.from(container.children);
59
+ var firstChildTop_1 = childElements[0].getBoundingClientRect().top;
60
+ var firstLine_1 = [];
61
+ var secondLine_1 = [];
62
+ childElements.forEach(function (child, index) {
63
+ var childTop = child.getBoundingClientRect().top;
64
+ if (childTop === firstChildTop_1) {
65
+ firstLine_1.push(index);
66
+ }
67
+ else {
68
+ secondLine_1.push(index);
69
+ }
70
+ });
71
+ setFirstLineIndices(firstLine_1);
72
+ setSecondLineIndices(secondLine_1);
73
+ setInitSetting(true);
74
+ }
75
+ }, [children]);
76
+ return (_jsxs("div", { children: [children && (_jsxs("div", { className: "flex h-0 w-full gap-3 pr-2 opacity-0", children: [_jsx("div", { className: "flex flex-wrap gap-3 overflow-hidden bg-redA-3 px-2", ref: containerRef, children: children }), _jsxs("div", { className: "flex gap-2", children: [SubmitButton ? (SubmitButton) : (_jsx(IconButton, { size: size, children: _jsx(MagnifyingGlassIcon, {}) })), ReloadButton ? (ReloadButton) : (_jsx(IconButton, { size: size, children: _jsx(ReloadIcon, {}) })), _jsx(IconButton, { size: size, children: _jsx(ReloadIcon, {}) })] })] })), _jsxs(Collapsible.Root, __assign({ className: cn('grid w-full gap-3', SearchBarVariants({ scaling: contextValue.scaling }), className), onOpenChange: setOpen }, props, { children: [_jsxs("div", { className: "flex w-full justify-between", children: [_jsx("div", { className: "flex", children: children &&
77
+ React.Children.map(children, function (child, index) {
78
+ return firstLineIndices.includes(index) ? child : null;
79
+ }) }), _jsxs("div", { className: "flex gap-2", children: [SubmitButton ? (SubmitButton) : (_jsx(IconButton, { onClick: onClickSubmit, size: size, color: contextValue.color, children: _jsx(MagnifyingGlassIcon, {}) })), ReloadButton ? (ReloadButton) : (_jsx(IconButton, { onClick: onClickReload, size: size, color: contextValue.color, children: _jsx(ReloadIcon, {}) })), secondLineIndices.length > 0 && (_jsx(Collapsible.Trigger, { open: open, size: size, color: contextValue.color }))] })] }), _jsx(Collapsible.Content, { className: "flex gap-3", children: children &&
80
+ React.Children.map(children, function (child, index) {
81
+ return secondLineIndices.includes(index) ? child : null;
82
+ }) })] }))] }));
83
+ });
84
+ SearchBar.displayName = 'SearchBar';
85
+ export default SearchBar;
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import{jsxs as e,jsx as r}from"react/jsx-runtime";import l,{forwardRef as n,useRef as i,useState as o,useEffect as t}from"react";import{cva as c}from"class-variance-authority";import{scalingVariants as a}from"../../constants.mjs";import{cn as s}from"../../utils/utils.mjs";import{useTheme as m}from"../../theme/ThemeProvider.mjs";import u from"../Collapsible/index.mjs";import{IconButton as d}from"../IconButton/index.mjs";import{MagnifyingGlassIcon as f,ReloadIcon as p}from"@radix-ui/react-icons";var h=function(){return h=Object.assign||function(e){for(var r,l=1,n=arguments.length;l<n;l++)for(var i in r=arguments[l])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},h.apply(this,arguments)},g=function(e,r){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(l[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(l[n[i]]=e[n[i]])}return l},v=c("",{variants:{scaling:h({},a)},defaultVariants:{scaling:"100%"}}),y=n((function(n){var c=n.className,a=n.children,y=n.scaling,b=n.size,x=n.color,C=n.onClickSubmit,j=n.onClickReload,O=n.SubmitButton,N=n.ReloadButton,w=g(n,["className","children","scaling","size","color","onClickSubmit","onClickReload","SubmitButton","ReloadButton"]),z=i(null),B=m().theme,S={scaling:null!=y?y:B.themeScaling,color:null!=x?x:B.themeColor,size:b},R=o([]),k=R[0],P=R[1],A=o([]),E=A[0],I=A[1],T=o(!1),V=T[0],q=T[1],D=o(!1);D[0];var F=D[1];return t((function(){if(a){F(!1);var e=z.current,r=Array.from(e.children),l=r[0].getBoundingClientRect().top,n=[],i=[];r.forEach((function(e,r){e.getBoundingClientRect().top===l?n.push(r):i.push(r)})),P(n),I(i),F(!0)}}),[a]),e("div",{children:[a&&e("div",{className:"flex h-0 w-full gap-3 pr-2 opacity-0",children:[r("div",{className:"flex flex-wrap gap-3 overflow-hidden bg-redA-3 px-2",ref:z,children:a}),e("div",{className:"flex gap-2",children:[O||r(d,{size:b,children:r(f,{})}),N||r(d,{size:b,children:r(p,{})}),r(d,{size:b,children:r(p,{})})]})]}),e(u.Root,h({className:s("grid w-full gap-3",v({scaling:S.scaling}),c),onOpenChange:q},w,{children:[e("div",{className:"flex w-full justify-between",children:[r("div",{className:"flex",children:a&&l.Children.map(a,(function(e,r){return k.includes(r)?e:null}))}),e("div",{className:"flex gap-2",children:[O||r(d,{onClick:C,size:b,color:S.color,children:r(f,{})}),N||r(d,{onClick:j,size:b,color:S.color,children:r(p,{})}),E.length>0&&r(u.Trigger,{open:V,size:b,color:S.color})]})]}),r(u.Content,{className:"flex gap-3",children:a&&l.Children.map(a,(function(e,r){return E.includes(r)?e:null}))})]}))]})}));y.displayName="SearchBar";export{y as SearchBar,v as SearchBarVariants,y as default};
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import * as ReactProSidebar from 'react-pro-sidebar';
4
+ export interface SidebarProps extends VariantProps<typeof sidebarVariants> {
5
+ size?: 'small' | 'medium' | 'large' | 'fill-large';
6
+ }
7
+ declare const sidebarVariants: (props?: ({
8
+ scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
9
+ color?: string | null | undefined;
10
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
11
+ export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<ReactProSidebar.SidebarProps & React.RefAttributes<HTMLHtmlElement>, "ref">, "size"> & SidebarProps & React.RefAttributes<HTMLHtmlElement>>;
12
+ export declare const Menu: React.ForwardRefExoticComponent<Omit<Omit<ReactProSidebar.MenuProps & React.RefAttributes<HTMLMenuElement>, "ref">, "size"> & SidebarProps & React.RefAttributes<HTMLMenuElement>>;
13
+ export declare const Item: React.ForwardRefExoticComponent<Omit<Omit<ReactProSidebar.MenuItemProps & React.RefAttributes<HTMLLIElement>, "ref">, "size"> & SidebarProps & React.RefAttributes<HTMLLIElement>>;
14
+ export declare const SubMenu: React.ForwardRefExoticComponent<Omit<Omit<ReactProSidebar.SubMenuProps & React.RefAttributes<HTMLLIElement>, "ref">, "size"> & SidebarProps & React.RefAttributes<HTMLLIElement>>;
15
+ declare const Sidebar: {
16
+ Root: React.ForwardRefExoticComponent<Omit<Omit<ReactProSidebar.SidebarProps & React.RefAttributes<HTMLHtmlElement>, "ref">, "size"> & SidebarProps & React.RefAttributes<HTMLHtmlElement>>;
17
+ Menu: React.ForwardRefExoticComponent<Omit<Omit<ReactProSidebar.MenuProps & React.RefAttributes<HTMLMenuElement>, "ref">, "size"> & SidebarProps & React.RefAttributes<HTMLMenuElement>>;
18
+ Item: React.ForwardRefExoticComponent<Omit<Omit<ReactProSidebar.MenuItemProps & React.RefAttributes<HTMLLIElement>, "ref">, "size"> & SidebarProps & React.RefAttributes<HTMLLIElement>>;
19
+ SubMenu: React.ForwardRefExoticComponent<Omit<Omit<ReactProSidebar.SubMenuProps & React.RefAttributes<HTMLLIElement>, "ref">, "size"> & SidebarProps & React.RefAttributes<HTMLLIElement>>;
20
+ };
21
+ export default Sidebar;
@@ -0,0 +1,100 @@
1
+ 'use client';
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ import { jsx as _jsx } from "react/jsx-runtime";
25
+ import React from 'react';
26
+ import { cva } from 'class-variance-authority';
27
+ import { cn } from '../../../lib/utils/utils';
28
+ import { bgColorStyle, scalingVariants } from '../../../lib/constants';
29
+ import { useTheme } from '../../../lib/theme';
30
+ import * as ReactProSidebar from 'react-pro-sidebar';
31
+ import { useWindowSize } from '../../../lib/utils/useWindowSize';
32
+ import * as alphaColors from '../../../lib/color/alpha';
33
+ var sidebarVariants = cva('', {
34
+ variants: {
35
+ scaling: __assign({}, scalingVariants),
36
+ color: bgColorStyle(),
37
+ },
38
+ });
39
+ export var Root = React.forwardRef(function (_a, forwardedRef) {
40
+ var _b;
41
+ var scaling = _a.scaling, size = _a.size, color = _a.color, className = _a.className, children = _a.children, props = __rest(_a, ["scaling", "size", "color", "className", "children"]);
42
+ var theme = useTheme().theme;
43
+ var windowSize = useWindowSize();
44
+ var sidebarStyle = {
45
+ scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,
46
+ color: (_b = color !== null && color !== void 0 ? color : theme.themeColor) !== null && _b !== void 0 ? _b : 'slate',
47
+ };
48
+ return (_jsx(ReactProSidebar.Sidebar, __assign({ className: cn("bg-".concat(sidebarStyle.color, "A-6 dark:bg-").concat(sidebarStyle.color, "DarkA-6"), sidebarVariants({ scaling: sidebarStyle.scaling }), className) }, props, { collapsed: props.collapsed === undefined ? windowSize <= 250 : props.collapsed, children: children })));
49
+ });
50
+ Root.displayName = 'Sidebar.Root';
51
+ export var Menu = React.forwardRef(function (_a, forwardedRef) {
52
+ var _b;
53
+ var scaling = _a.scaling, size = _a.size, color = _a.color, className = _a.className, menuItemStyles = _a.menuItemStyles, children = _a.children, props = __rest(_a, ["scaling", "size", "color", "className", "menuItemStyles", "children"]);
54
+ var heigthSize = '50px';
55
+ var fontSize = '16px';
56
+ if (size == 'small') {
57
+ heigthSize = '40px';
58
+ fontSize = '14px';
59
+ }
60
+ if (size == 'large') {
61
+ heigthSize = '60px';
62
+ fontSize = '18px';
63
+ }
64
+ var theme = useTheme().theme;
65
+ var sidebarStyle = {
66
+ scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,
67
+ color: (_b = color !== null && color !== void 0 ? color : theme.themeColor) !== null && _b !== void 0 ? _b : 'slate',
68
+ };
69
+ var colorKey = "".concat(sidebarStyle.color, "A");
70
+ var colorValue = alphaColors[colorKey];
71
+ return (_jsx(ReactProSidebar.Menu, __assign({ menuItemStyles: __assign({ button: function (_a) {
72
+ var level = _a.level, active = _a.active, disabled = _a.disabled, open = _a.open;
73
+ return {
74
+ height: heigthSize,
75
+ fontSize: fontSize,
76
+ backgroundColor: active ? colorValue[5] : '',
77
+ '&:hover': {
78
+ backgroundColor: colorValue[3],
79
+ },
80
+ };
81
+ } }, menuItemStyles) }, props, { children: children })));
82
+ });
83
+ Menu.displayName = 'Sidebar.Menu';
84
+ export var Item = React.forwardRef(function (_a, forwardedRef) {
85
+ var scaling = _a.scaling, size = _a.size, color = _a.color, className = _a.className, children = _a.children, props = __rest(_a, ["scaling", "size", "color", "className", "children"]);
86
+ return _jsx(ReactProSidebar.MenuItem, __assign({}, props, { children: children }));
87
+ });
88
+ Item.displayName = 'Sidebar.Item';
89
+ export var SubMenu = React.forwardRef(function (_a, forwardedRef) {
90
+ var scaling = _a.scaling, size = _a.size, color = _a.color, className = _a.className, children = _a.children, props = __rest(_a, ["scaling", "size", "color", "className", "children"]);
91
+ return _jsx(ReactProSidebar.SubMenu, __assign({}, props, { children: children }));
92
+ });
93
+ SubMenu.displayName = 'Sidebar.SubMenu';
94
+ var Sidebar = {
95
+ Root: Root,
96
+ Menu: Menu,
97
+ Item: Item,
98
+ SubMenu: SubMenu,
99
+ };
100
+ export default Sidebar;
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import{jsx as e}from"react/jsx-runtime";import r from"react";import{cva as o}from"class-variance-authority";import{cn as a}from"../../utils/utils.mjs";import{scalingVariants as l,bgColorStyle as n}from"../../constants.mjs";import{useTheme as t}from"../../theme/ThemeProvider.mjs";import*as c from"react-pro-sidebar";import{useWindowSize as i}from"../../utils/useWindowSize.mjs";import*as s from"../../color/alpha.mjs";var m=function(){return m=Object.assign||function(e){for(var r,o=1,a=arguments.length;o<a;o++)for(var l in r=arguments[o])Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l]);return e},m.apply(this,arguments)},u=function(e,r){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(o[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)r.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(o[a[l]]=e[a[l]])}return o},d=o("",{variants:{scaling:m({},l),color:n()}}),p=r.forwardRef((function(r,o){var l,n=r.scaling;r.size;var s=r.color,p=r.className,f=r.children,h=u(r,["scaling","size","color","className","children"]),v=t().theme,g=i(),b={scaling:null!=n?n:v.themeScaling,color:null!==(l=null!=s?s:v.themeColor)&&void 0!==l?l:"slate"};return e(c.Sidebar,m({className:a("bg-".concat(b.color,"A-6 dark:bg-").concat(b.color,"DarkA-6"),d({scaling:b.scaling}),p)},h,{collapsed:void 0===h.collapsed?g<=250:h.collapsed,children:f}))}));p.displayName="Sidebar.Root";var f=r.forwardRef((function(r,o){var a,l=r.scaling,n=r.size,i=r.color;r.className;var d=r.menuItemStyles,p=r.children,f=u(r,["scaling","size","color","className","menuItemStyles","children"]),h="50px",v="16px";"small"==n&&(h="40px",v="14px"),"large"==n&&(h="60px",v="18px");var g=t().theme,b={scaling:null!=l?l:g.themeScaling,color:null!==(a=null!=i?i:g.themeColor)&&void 0!==a?a:"slate"},y="".concat(b.color,"A"),S=s[y];return e(c.Menu,m({menuItemStyles:m({button:function(e){e.level;var r=e.active;return e.disabled,e.open,{height:h,fontSize:v,backgroundColor:r?S[5]:"","&:hover":{backgroundColor:S[3]}}}},d)},f,{children:p}))}));f.displayName="Sidebar.Menu";var h=r.forwardRef((function(r,o){r.scaling,r.size,r.color,r.className;var a=r.children,l=u(r,["scaling","size","color","className","children"]);return e(c.MenuItem,m({},l,{children:a}))}));h.displayName="Sidebar.Item";var v=r.forwardRef((function(r,o){r.scaling,r.size,r.color,r.className;var a=r.children,l=u(r,["scaling","size","color","className","children"]);return e(c.SubMenu,m({},l,{children:a}))}));v.displayName="Sidebar.SubMenu";var g={Root:p,Menu:f,Item:h,SubMenu:v};export{h as Item,f as Menu,p as Root,v as SubMenu,g as default};
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}