@lotte-innovate/ui-component-test 0.0.120 → 0.0.122

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 +3 -3
  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
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{jsx as r}from"react/jsx-runtime";import{forwardRef as e,useContext as t}from"react";import{Dialog as o}from"@radix-ui/themes";import{cva as n}from"class-variance-authority";import{primaryColorStyle as i}from"../../constants.mjs";import{DialogContext as a}from"./DialogRoot.mjs";import{cn as s}from"../../utils/utils.mjs";import{MAIN_COLOR as l}from"../../color/constants.mjs";var m=function(){return m=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},m.apply(this,arguments)},p=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},u=n("rounded-md inline-flex font-medium items-center justify-center px-[15px] hover:cursor-pointer",{variants:{radius:{none:"rounded-none",small:"rounded-[3px]",medium:"rounded",large:"rounded-md",full:"rounded-full"},size:{small:"text-xs w-[52px] h-[24px] px-2",medium:"text-sm w-[66px] h-[32px] px-3",large:"text-base w-[72px] h-[32px] px-3","x-large":"text-lg w-[86px] h-[40px] px-6"},color:i()},defaultVariants:{radius:"medium",size:"medium",color:l}}),c=e((function(e,n){var i=e.children,l=e.className,c=p(e,["children","className"]),d=t(a),f=d.radius,x=d.size,h=d.color,y=s(u({radius:f,size:x,color:h}),l);return r(o.Close,m({ref:n,className:y},c,{children:i}))}));c.displayName="Dialog.Action";export{c as DialogAction,u as dialogActionVariants};
2
+ import{jsx as o}from"react/jsx-runtime";import{forwardRef as t,useContext as r}from"react";import{Dialog as e}from"@radix-ui/themes";import{cva as m}from"class-variance-authority";import{primaryColorStyle as i}from"../../constants.mjs";import{MAIN_COLOR as n}from"../../color/constants.mjs";import{DialogContext as p}from"./DialogRoot.mjs";import{cn as a}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"./DialogTrigger.mjs";import"./DialogContent.mjs";import"./DialogTitle.mjs";import"./DialogDescription.mjs";import"./DialogSlot.mjs";import"./DialogCancel.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/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"../Modal/ModalRoot.mjs";import"../Modal/ModalTrigger.mjs";import"../Modal/ModalContent.mjs";import"../Modal/ModalTitle.mjs";import"../Modal/ModalDescription.mjs";import"../Modal/ModalFooter.mjs";import"../Modal/ModalCancel.mjs";import"../Modal/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 s from"../../Typography/Text/index.mjs";import"../../theme/ThemeProvider.mjs";var u=function(){return u=Object.assign||function(o){for(var t,r=1,e=arguments.length;r<e;r++)for(var m in t=arguments[r])Object.prototype.hasOwnProperty.call(t,m)&&(o[m]=t[m]);return o},u.apply(this,arguments)},d=function(o,t){var r={};for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&t.indexOf(e)<0&&(r[e]=o[e]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var m=0;for(e=Object.getOwnPropertySymbols(o);m<e.length;m++)t.indexOf(e[m])<0&&Object.prototype.propertyIsEnumerable.call(o,e[m])&&(r[e[m]]=o[e[m]])}return r},j=m("rounded-md inline-flex font-medium items-center justify-center px-[15px] hover:cursor-pointer",{variants:{radius:{none:"rounded-none",small:"rounded-[3px]",medium:"rounded",large:"rounded-md",full:"rounded-full"},size:{small:"text-xs w-[52px] h-[24px] px-2",medium:"text-sm w-[66px] h-[32px] px-3",large:"text-base w-[72px] h-[32px] px-3","x-large":"text-lg w-[86px] h-[40px] px-6"},color:i()},defaultVariants:{radius:"medium",size:"medium",color:n}}),l=t((function(t,m){var i=t.children,n=t.className,l=d(t,["children","className"]),M=r(p),x=M.radius,g=M.size,b=M.color,c=a(j({radius:x,size:g,color:b}),n);return o(e.Close,u({ref:m,className:c},l,{children:"string"==typeof i?o(s,{children:i}):i}))}));l.displayName="Dialog.Action";export{l as DialogAction,j as dialogActionVariants};
3
3
  //# sourceMappingURL=DialogAction.mjs.map
@@ -27,6 +27,7 @@ import { Dialog as DialogTheme } from '@radix-ui/themes';
27
27
  import { cva } from 'class-variance-authority';
28
28
  import { DialogContext } from './DialogRoot';
29
29
  import { cn } from '../../../lib/utils/utils';
30
+ import { Text } from '../../../lib';
30
31
  export var dialogCancelVariants = cva("rounded-md font-medium inline-flex justify-center items-center text-slate-11 bg-slate-3 outline-none border-none\n dark:text-slateDark-11 dark:bg-slateDark-3 dark:hover:bg-slateDarkA-4\n active:border-none hover:cursor-pointer hover:bg-slateA-4", {
31
32
  variants: {
32
33
  radius: {
@@ -51,6 +52,6 @@ export var dialogCancelVariants = cva("rounded-md font-medium inline-flex justif
51
52
  export var DialogCancel = forwardRef(function (_a, ref) {
52
53
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
53
54
  var _b = useContext(DialogContext), radius = _b.radius, size = _b.size;
54
- return (_jsx(DialogTheme.Close, __assign({ ref: ref, className: cn(dialogCancelVariants({ radius: radius, size: size }), className) }, props, { children: children })));
55
+ return (_jsx(DialogTheme.Close, __assign({ ref: ref, className: cn(dialogCancelVariants({ radius: radius, size: size }), className) }, props, { children: typeof children === 'string' ? _jsx(Text, { children: children }) : children })));
55
56
  });
56
57
  DialogCancel.displayName = 'Dialog.Cancel';
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{jsx as e}from"react/jsx-runtime";import{forwardRef as r,useContext as t}from"react";import{Dialog as o}from"@radix-ui/themes";import{cva as a}from"class-variance-authority";import{DialogContext as n}from"./DialogRoot.mjs";import{cn as i}from"../../utils/utils.mjs";var l=function(){return l=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},l.apply(this,arguments)},s=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=a("rounded-md font-medium inline-flex justify-center items-center text-slate-11 bg-slate-3 outline-none border-none\n dark:text-slateDark-11 dark:bg-slateDark-3 dark:hover:bg-slateDarkA-4\n active:border-none hover:cursor-pointer hover:bg-slateA-4",{variants:{radius:{none:"rounded-none",small:"rounded-[3px]",medium:"rounded",large:"rounded-md",full:"rounded-full"},size:{small:"text-xs w-[52px] h-[24px] px-2 mr-2",medium:"text-sm w-[66px] h-[32px] px-3 mr-2",large:"text-base w-[72px] h-[32px] px-3 mr-3","x-large":"text-lg w-[86px] h-[40px] px-6 mr-4"}},defaultVariants:{radius:"medium",size:"medium"}}),p=r((function(r,a){var p=r.children,u=r.className,d=s(r,["children","className"]),c=t(n),x=c.radius,f=c.size;return e(o.Close,l({ref:a,className:i(m({radius:x,size:f}),u)},d,{children:p}))}));p.displayName="Dialog.Cancel";export{p as DialogCancel,m as dialogCancelVariants};
2
+ import{jsx as o}from"react/jsx-runtime";import{forwardRef as t,useContext as e}from"react";import{Dialog as r}from"@radix-ui/themes";import{cva as i}from"class-variance-authority";import{DialogContext as m}from"./DialogRoot.mjs";import{cn as n}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"./DialogTrigger.mjs";import"./DialogContent.mjs";import"./DialogTitle.mjs";import"./DialogDescription.mjs";import"./DialogSlot.mjs";import"./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/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"../Modal/ModalRoot.mjs";import"../Modal/ModalTrigger.mjs";import"../Modal/ModalContent.mjs";import"../Modal/ModalTitle.mjs";import"../Modal/ModalDescription.mjs";import"../Modal/ModalFooter.mjs";import"../Modal/ModalCancel.mjs";import"../Modal/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 a from"../../Typography/Text/index.mjs";import"../../theme/ThemeProvider.mjs";var p=function(){return p=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},p.apply(this,arguments)},s=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},d=i("rounded-md font-medium inline-flex justify-center items-center text-slate-11 bg-slate-3 outline-none border-none\n dark:text-slateDark-11 dark:bg-slateDark-3 dark:hover:bg-slateDarkA-4\n active:border-none hover:cursor-pointer hover:bg-slateA-4",{variants:{radius:{none:"rounded-none",small:"rounded-[3px]",medium:"rounded",large:"rounded-md",full:"rounded-full"},size:{small:"text-xs w-[52px] h-[24px] px-2 mr-2",medium:"text-sm w-[66px] h-[32px] px-3 mr-2",large:"text-base w-[72px] h-[32px] px-3 mr-3","x-large":"text-lg w-[86px] h-[40px] px-6 mr-4"}},defaultVariants:{radius:"medium",size:"medium"}}),u=t((function(t,i){var u=t.children,j=t.className,l=s(t,["children","className"]),M=e(m),x=M.radius,g=M.size;return o(r.Close,p({ref:i,className:n(d({radius:x,size:g}),j)},l,{children:"string"==typeof u?o(a,{children:u}):u}))}));u.displayName="Dialog.Cancel";export{u as DialogCancel,d as dialogCancelVariants};
3
3
  //# sourceMappingURL=DialogCancel.mjs.map
@@ -41,6 +41,6 @@ export var DialogRoot = function (_a) {
41
41
  color: color !== null && color !== void 0 ? color : theme.themeColor,
42
42
  size: size,
43
43
  };
44
- return (_jsx(Theme, { accentColor: color, children: _jsx(DialogContext.Provider, { value: contextValue, children: _jsx(DialogTheme.Root, __assign({}, props, { children: children })) }) }));
44
+ return (_jsx(Theme, { accentColor: contextValue.color, children: _jsx(DialogContext.Provider, { value: contextValue, children: _jsx(DialogTheme.Root, __assign({}, props, { children: children })) }) }));
45
45
  };
46
46
  DialogRoot.displayName = 'Dialog.Root';
@@ -1,3 +1,3 @@
1
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";import{MAIN_COLOR as n}from"../../color/constants.mjs";var l=function(){return l=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},l.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},c=e({size:"medium",scaling:"100%",color:n,radius:"medium"}),m=function(e){var n=e.children,m=e.radius,s=e.size,u=e.scaling,p=e.color,d=a(e,["children","radius","size","scaling","color"]),f=i().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:p,children:r(c.Provider,{value:h,children:r(t.Root,l({},d,{children:n}))})})};m.displayName="Dialog.Root";export{c as DialogContext,m as DialogRoot};
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";import{MAIN_COLOR as n}from"../../color/constants.mjs";var l=function(){return l=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},l.apply(this,arguments)},c=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:n,radius:"medium"}),m=function(e){var n=e.children,m=e.radius,s=e.size,u=e.scaling,p=e.color,d=c(e,["children","radius","size","scaling","color"]),f=i().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,l({},d,{children:n}))})})};m.displayName="Dialog.Root";export{a as DialogContext,m as DialogRoot};
3
3
  //# sourceMappingURL=DialogRoot.mjs.map
@@ -1,9 +1,12 @@
1
1
  import React from 'react';
2
2
  import { IAllProps } from '@tinymce/tinymce-react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
+ import 'tinymce/skins/ui/oxide/skin.css';
4
5
  export interface EditorProps extends VariantProps<typeof editorVariants> {
6
+ language?: 'ko_KR' | 'zh_CN' | 'ja' | 'it' | 'vi';
5
7
  }
6
8
  declare const editorVariants: (props?: ({
9
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
7
10
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
8
11
  size?: "small" | "medium" | "large" | null | undefined;
9
12
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -22,36 +22,69 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  return t;
23
23
  };
24
24
  import { jsx as _jsx } from "react/jsx-runtime";
25
- import { forwardRef } from 'react';
25
+ import { forwardRef, useEffect, useState, useRef, } from 'react';
26
26
  import { Editor as EditorUI } from '@tinymce/tinymce-react';
27
27
  import { cva } from 'class-variance-authority';
28
- import { scalingVariants } from '../../../lib/constants';
28
+ import { loadTinyMCE } from '../../../lib/utils/useLoadTinyMCE';
29
+ import { scalingVariants, radiusVariants } from '../../../lib/constants';
29
30
  import { cn } from '../../../lib/utils/utils';
31
+ import { useTheme } from '../../../lib/theme';
30
32
  import { marked } from 'marked';
33
+ import 'tinymce/skins/ui/oxide/skin.css';
34
+ import contentUiSkinCss from '!!raw-loader!tinymce/skins/ui/oxide/content.css';
35
+ import contentCss from '!!raw-loader!tinymce/skins/content/default/content.css';
31
36
  var editorVariants = cva('', {
32
37
  variants: {
38
+ radius: __assign({}, radiusVariants['base']),
33
39
  scaling: __assign({}, scalingVariants),
34
40
  size: {
35
- small: 'w-[500px] h-[350px]',
36
- medium: 'w-[550px] h-[400px]',
37
- large: 'w-[600px] h-[450px]',
41
+ small: 'w-[650px] h-[350px]',
42
+ medium: 'w-[700px] h-[400px]',
43
+ large: 'w-[750px] h-[450px]',
38
44
  },
39
45
  },
40
46
  defaultVariants: {
47
+ radius: 'medium',
41
48
  scaling: '100%',
42
49
  size: 'medium',
43
50
  },
44
51
  });
45
52
  export var Editor = forwardRef(function (_a, ref) {
46
- var className = _a.className, size = _a.size, scaling = _a.scaling, props = __rest(_a, ["className", "size", "scaling"]);
47
- return (_jsx("div", { className: cn(editorVariants({ size: size, scaling: scaling }), className), ref: ref, children: _jsx(EditorUI, __assign({ tinymceScriptSrc: "/tinymce/tinymce.min.js", init: {
48
- width: '100%',
49
- height: '100%',
50
- plugins: 'link table code lists codesample',
51
- menubar: false,
52
- toolbar: 'blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | inlinecode codeformat markdown',
53
- content_style: 'body { font-family:Noto Sans KR, sans-serif, Nunito Sans, Helvetica Neue, Helvetica }',
54
- setup: function (editor) {
53
+ var className = _a.className, size = _a.size, scaling = _a.scaling, radius = _a.radius, init = _a.init, _b = _a.language, language = _b === void 0 ? 'en' : _b, props = __rest(_a, ["className", "size", "scaling", "radius", "init", "language"]);
54
+ var _c = useState(false), isClient = _c[0], setIsClient = _c[1];
55
+ var editorRef = useRef(null);
56
+ var theme = useTheme().theme;
57
+ var editorStyle = {
58
+ radius: radius !== null && radius !== void 0 ? radius : theme.themeRadius,
59
+ scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,
60
+ size: size,
61
+ };
62
+ var radiusTheme = '8px';
63
+ if (editorStyle.radius === 'none')
64
+ radiusTheme = '0px';
65
+ if (editorStyle.radius === 'small')
66
+ radiusTheme = '4px';
67
+ if (editorStyle.radius === 'large')
68
+ radiusTheme = '12px';
69
+ if (editorStyle.radius === 'full')
70
+ radiusTheme = '16px';
71
+ useEffect(function () {
72
+ if (typeof window !== 'undefined') {
73
+ loadTinyMCE().then(function () {
74
+ setIsClient(true);
75
+ });
76
+ }
77
+ }, []);
78
+ useEffect(function () {
79
+ if (editorRef.current) {
80
+ var editorContainer = editorRef.current.getContainer();
81
+ editorContainer.style.borderRadius = "".concat(radiusTheme);
82
+ }
83
+ }, [radiusTheme]);
84
+ if (!isClient) {
85
+ return null;
86
+ }
87
+ return (_jsx("div", { className: cn(editorVariants(editorStyle), className), ref: ref, children: _jsx(EditorUI, __assign({ onInit: function (evt, editor) { return (editorRef.current = editor); }, init: __assign({ language: language, width: '100%', height: '100%', promotion: false, plugins: 'preview importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link media template codesample table charmap pagebreak nonbreaking anchor insertdatetime advlist lists wordcount charmap accordion', menubar: 'file edit view insert format tools table', toolbar: 'undo redo | accordion accordionremove | blocks fontfamily fontsize | bold italic underline strikethrough | align numlist bullist | link image | table media | lineheight outdent indent| forecolor backcolor removeformat | charmap | code fullscreen preview | save print | pagebreak anchor codesample | ltr rtl', autosave_ask_before_unload: true, autosave_interval: '30s', autosave_restore_when_empty: false, autosave_retention: '2m', image_advtab: true, image_caption: true, quickbars_selection_toolbar: '', toolbar_mode: 'sliding', skin: false, content_css: false, content_style: "".concat(contentUiSkinCss, "\n").concat(contentCss, "\n body { font-family:Noto Sans KR, sans-serif, Nunito Sans, Helvetica Neue, Helvetica }"), setup: function (editor) {
55
88
  editor.ui.registry.addButton('inlinecode', {
56
89
  icon: 'sourcecode',
57
90
  tooltip: 'Inline code',
@@ -73,8 +106,10 @@ export var Editor = forwardRef(function (_a, ref) {
73
106
  editor.setContent(html);
74
107
  },
75
108
  });
76
- },
77
- } }, props)) }));
109
+ editor.on('init', function () {
110
+ editor.getContainer().style.borderRadius = radiusTheme;
111
+ });
112
+ } }, init) }, props)) }));
78
113
  });
79
114
  Editor.displayName = 'Editor';
80
115
  export default Editor;
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{jsx as t}from"react/jsx-runtime";import{forwardRef as e}from"react";import{Editor as o}from"@tinymce/tinymce-react";import{cva as n}from"class-variance-authority";import{scalingVariants as i}from"../../constants.mjs";import{cn as r}from"../../utils/utils.mjs";import{marked as a}from"marked";var c=function(){return c=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},c.apply(this,arguments)},l=function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(o[n[i]]=t[n[i]])}return o},s=n("",{variants:{scaling:c({},i),size:{small:"w-[500px] h-[350px]",medium:"w-[550px] h-[400px]",large:"w-[600px] h-[450px]"}},defaultVariants:{scaling:"100%",size:"medium"}}),m=e((function(e,n){var i=e.className,m=e.size,u=e.scaling,f=l(e,["className","size","scaling"]);return t("div",{className:r(s({size:m,scaling:u}),i),ref:n,children:t(o,c({tinymceScriptSrc:"/tinymce/tinymce.min.js",init:{width:"100%",height:"100%",plugins:"link table code lists codesample",menubar:!1,toolbar:"blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | inlinecode codeformat markdown",content_style:"body { font-family:Noto Sans KR, sans-serif, Nunito Sans, Helvetica Neue, Helvetica }",setup:function(t){t.ui.registry.addButton("inlinecode",{icon:"sourcecode",tooltip:"Inline code",onAction:function(){t.formatter.toggle("code")}}),t.on("init",(function(){t.formatter.register("code",{inline:"code",remove:"all"})})),t.ui.registry.addButton("markdown",{text:"Markdown",onAction:function(){var e=t.getContent({format:"text"}),o=a(e);t.setContent(o)}})}}},f))})}));m.displayName="Editor";export{m as Editor,m as default};
2
+ import{jsx as e}from"react/jsx-runtime";import{forwardRef as t,useState as n,useRef as i,useEffect as o}from"react";import{Editor as r}from"@tinymce/tinymce-react";import{cva as a}from"class-variance-authority";import{loadTinyMCE as s}from"../../utils/useLoadTinyMCE.mjs";import{radiusVariants as l,scalingVariants as c}from"../../constants.mjs";import{cn as u}from"../../utils/utils.mjs";import{useTheme as m}from"../../theme/ThemeProvider.mjs";import{marked as d}from"marked";import"tinymce/skins/ui/oxide/skin.css";import p from"!!raw-loader!tinymce/skins/ui/oxide/content.css";import f from"!!raw-loader!tinymce/skins/content/default/content.css";var g=function(){return g=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)},v=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n},b=a("",{variants:{radius:g({},l.base),scaling:g({},c),size:{small:"w-[650px] h-[350px]",medium:"w-[700px] h-[400px]",large:"w-[750px] h-[450px]"}},defaultVariants:{radius:"medium",scaling:"100%",size:"medium"}}),h=t((function(t,a){var l=t.className,c=t.size,h=t.scaling,y=t.radius,k=t.init,w=t.language,x=void 0===w?"en":w,_=v(t,["className","size","scaling","radius","init","language"]),O=n(!1),j=O[0],N=O[1],z=i(null),C=m().theme,P={radius:null!=y?y:C.themeRadius,scaling:null!=h?h:C.themeScaling,size:c},S="8px";return"none"===P.radius&&(S="0px"),"small"===P.radius&&(S="4px"),"large"===P.radius&&(S="12px"),"full"===P.radius&&(S="16px"),o((function(){"undefined"!=typeof window&&s().then((function(){N(!0)}))}),[]),o((function(){z.current&&(z.current.getContainer().style.borderRadius="".concat(S))}),[S]),j?e("div",{className:u(b(P),l),ref:a,children:e(r,g({onInit:function(e,t){return z.current=t},init:g({language:x,width:"100%",height:"100%",promotion:!1,plugins:"preview importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link media template codesample table charmap pagebreak nonbreaking anchor insertdatetime advlist lists wordcount charmap accordion",menubar:"file edit view insert format tools table",toolbar:"undo redo | accordion accordionremove | blocks fontfamily fontsize | bold italic underline strikethrough | align numlist bullist | link image | table media | lineheight outdent indent| forecolor backcolor removeformat | charmap | code fullscreen preview | save print | pagebreak anchor codesample | ltr rtl",autosave_ask_before_unload:!0,autosave_interval:"30s",autosave_restore_when_empty:!1,autosave_retention:"2m",image_advtab:!0,image_caption:!0,quickbars_selection_toolbar:"",toolbar_mode:"sliding",skin:!1,content_css:!1,content_style:"".concat(p,"\n").concat(f,"\n body { font-family:Noto Sans KR, sans-serif, Nunito Sans, Helvetica Neue, Helvetica }"),setup:function(e){e.ui.registry.addButton("inlinecode",{icon:"sourcecode",tooltip:"Inline code",onAction:function(){e.formatter.toggle("code")}}),e.on("init",(function(){e.formatter.register("code",{inline:"code",remove:"all"})})),e.ui.registry.addButton("markdown",{text:"Markdown",onAction:function(){var t=e.getContent({format:"text"}),n=d(t);e.setContent(n)}}),e.on("init",(function(){e.getContainer().style.borderRadius=S}))}},k)},_))}):null}));h.displayName="Editor";export{h as Editor,h as default};
3
3
  //# sourceMappingURL=index.mjs.map
@@ -51,7 +51,7 @@ export var Footer = forwardRef(function (_a, ref) {
51
51
  color: color !== null && color !== void 0 ? color : theme.themeColor,
52
52
  size: size,
53
53
  };
54
- return (_jsx("footer", __assign({ ref: ref }, props, { children: _jsx("div", { className: cn(FooterVariants(contextValue), className), children: _jsx("p", { className: "text-center leading-loose", children: children }) }) })));
54
+ return (_jsx("footer", __assign({ ref: ref, className: cn(FooterVariants(contextValue), className) }, props, { children: _jsx("p", { className: "text-center leading-loose", children: children }) })));
55
55
  });
56
56
  Footer.displayName = 'Footer';
57
57
  export default Footer;
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{jsx as e}from"react/jsx-runtime";import{forwardRef as r}from"react";import{cva as t}from"class-variance-authority";import{scalingVariants as o,textColorStyle as l}from"../../constants.mjs";import{cn as a}from"../../utils/utils.mjs";import{useTheme as n}from"../../theme/ThemeProvider.mjs";var i=function(){return i=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var l in r=arguments[t])Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l]);return e},i.apply(this,arguments)},s=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 l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)r.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(t[o[l]]=e[o[l]])}return t},c=t("py-3 px-8 container flex flex-col items-center justify-between gap-4 ",{variants:{scaling:i({},o),size:{small:"text-xs",medium:"text-sm",large:"text-base"},color:l()},defaultVariants:{scaling:"100%",size:"medium",color:"black"}}),m=r((function(r,t){var o=r.className,l=r.children,m=r.scaling,p=r.size,f=r.color,u=s(r,["className","children","scaling","size","color"]),h=n().theme,y={scaling:null!=m?m:h.themeScaling,color:null!=f?f:h.themeColor,size:p};return e("footer",i({ref:t},u,{children:e("div",{className:a(c(y),o),children:e("p",{className:"text-center leading-loose",children:l})})}))}));m.displayName="Footer";export{m as Footer,c as FooterVariants,m as default};
2
+ import{jsx as e}from"react/jsx-runtime";import{forwardRef as r}from"react";import{cva as t}from"class-variance-authority";import{scalingVariants as o,textColorStyle as l}from"../../constants.mjs";import{cn as a}from"../../utils/utils.mjs";import{useTheme as n}from"../../theme/ThemeProvider.mjs";var i=function(){return i=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var l in r=arguments[t])Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l]);return e},i.apply(this,arguments)},s=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 l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)r.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(t[o[l]]=e[o[l]])}return t},c=t("py-3 px-8 container flex flex-col items-center justify-between gap-4 ",{variants:{scaling:i({},o),size:{small:"text-xs",medium:"text-sm",large:"text-base"},color:l()},defaultVariants:{scaling:"100%",size:"medium",color:"black"}}),m=r((function(r,t){var o=r.className,l=r.children,m=r.scaling,p=r.size,f=r.color,u=s(r,["className","children","scaling","size","color"]),y=n().theme,h={scaling:null!=m?m:y.themeScaling,color:null!=f?f:y.themeColor,size:p};return e("footer",i({ref:t,className:a(c(h),o)},u,{children:e("p",{className:"text-center leading-loose",children:l})}))}));m.displayName="Footer";export{m as Footer,c as FooterVariants,m as default};
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  export interface GnbLogoProps extends VariantProps<typeof gnbLogoVariants> {
4
+ href?: string;
4
5
  }
5
6
  declare const gnbLogoVariants: (props?: ({
6
7
  size?: "small" | "medium" | "large" | null | undefined;
@@ -39,8 +39,8 @@ var gnbLogoVariants = cva('mr-4 flex items-center space-x-2 lg:mr-6 text-slate-1
39
39
  },
40
40
  });
41
41
  export var GnbLogo = forwardRef(function (_a, ref) {
42
- var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
42
+ var children = _a.children, className = _a.className, href = _a.href, props = __rest(_a, ["children", "className", "href"]);
43
43
  var size = useContext(GnbContext).size;
44
- return (_jsx("a", __assign({ href: "/", className: cn(gnbLogoVariants({ size: size }), className) }, props, { children: children !== null && children !== void 0 ? children : _jsx(Text, { children: "LOGO \uC601\uC5ED" }) })));
44
+ return (_jsx("a", __assign({ href: href, className: cn(gnbLogoVariants({ size: size }), className) }, props, { children: children !== null && children !== void 0 ? children : _jsx(Text, { children: "LOGO \uC601\uC5ED" }) })));
45
45
  });
46
46
  GnbLogo.displayName = 'Gnb.Logo';
@@ -1,2 +1,2 @@
1
- import{jsx as r}from"react/jsx-runtime";import{forwardRef as e,useContext as t}from"react";import{cva as a}from"class-variance-authority";import{GnbContext as o}from"./GnbRoot.mjs";import{cn as n}from"../../utils/utils.mjs";import"../../Typography/Header/index.mjs";import{Text as i}from"../../Typography/Text/index.mjs";var s=function(){return s=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},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 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},p=a("mr-4 flex items-center space-x-2 lg:mr-6 text-slate-12 dark:text-slateDark-12",{variants:{size:{small:"text-xs w-[140px] h-[15px]",medium:"text-sm w-[150px] h-[20px]",large:"text-base w-[160px] h-[25px]"}},defaultVariants:{size:"medium"}}),m=e((function(e,a){var m=e.children,c=e.className,f=l(e,["children","className"]),x=t(o).size;return r("a",s({href:"/",className:n(p({size:x}),c)},f,{children:null!=m?m:r(i,{children:"LOGO 영역"})}))}));m.displayName="Gnb.Logo";export{m as GnbLogo};
1
+ import{jsx as r}from"react/jsx-runtime";import{forwardRef as e,useContext as t}from"react";import{cva as a}from"class-variance-authority";import{GnbContext as o}from"./GnbRoot.mjs";import{cn as n}from"../../utils/utils.mjs";import"../../Typography/Header/index.mjs";import i from"../../Typography/Text/index.mjs";var s=function(){return s=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},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 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},p=a("mr-4 flex items-center space-x-2 lg:mr-6 text-slate-12 dark:text-slateDark-12",{variants:{size:{small:"text-xs w-[140px] h-[15px]",medium:"text-sm w-[150px] h-[20px]",large:"text-base w-[160px] h-[25px]"}},defaultVariants:{size:"medium"}}),m=e((function(e,a){var m=e.children,c=e.className,f=e.href,x=l(e,["children","className","href"]),u=t(o).size;return r("a",s({href:f,className:n(p({size:u}),c)},x,{children:null!=m?m:r(i,{children:"LOGO 영역"})}))}));m.displayName="Gnb.Logo";export{m as GnbLogo};
2
2
  //# sourceMappingURL=GnbLogo.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"GnbLogo.mjs","sources":["../../../lib/components/Gnb/GnbLogo.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, useContext } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { GnbContext } from './GnbRoot';\nimport { cn } from '../../../lib/utils/utils';\nimport { Text } from '../../../lib/Typography';\nvar gnbLogoVariants = cva('mr-4 flex items-center space-x-2 lg:mr-6 text-slate-12 dark:text-slateDark-12', {\n variants: {\n size: {\n small: 'text-xs w-[140px] h-[15px]',\n medium: 'text-sm w-[150px] h-[20px]',\n large: 'text-base w-[160px] h-[25px]',\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\nexport var GnbLogo = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, props = __rest(_a, [\"children\", \"className\"]);\n var size = useContext(GnbContext).size;\n return (_jsx(\"a\", __assign({ href: \"/\", className: cn(gnbLogoVariants({ size: size }), className) }, props, { children: children !== null && children !== void 0 ? children : _jsx(Text, { children: \"LOGO \\uC601\\uC5ED\" }) })));\n});\nGnbLogo.displayName = 'Gnb.Logo';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","gnbLogoVariants","cva","variants","size","small","medium","large","defaultVariants","GnbLogo","forwardRef","_a","ref","children","className","props","useContext","GnbContext","_jsx","href","cn","Text","displayName"],"mappings":"iUAAA,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,EAAkBC,EAAI,gFAAiF,CACvGC,SAAU,CACNC,KAAM,CACFC,MAAO,6BACPC,OAAQ,6BACRC,MAAO,iCAGfC,gBAAiB,CACbJ,KAAM,YAGHK,EAAUC,GAAW,SAAUC,EAAIC,GAC1C,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWC,EAAQnB,EAAOe,EAAI,CAAC,WAAY,cAClFP,EAAOY,EAAWC,GAAYb,KAClC,OAAQc,EAAK,IAAKrC,EAAS,CAAEsC,KAAM,IAAKL,UAAWM,EAAGnB,EAAgB,CAAEG,KAAMA,IAASU,IAAcC,EAAO,CAAEF,SAAUA,QAA2CA,EAAWK,EAAKG,EAAM,CAAER,SAAU,cACzM,IACAJ,EAAQa,YAAc"}
1
+ {"version":3,"file":"GnbLogo.mjs","sources":["../../../lib/components/Gnb/GnbLogo.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, useContext } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { GnbContext } from './GnbRoot';\nimport { cn } from '../../../lib/utils/utils';\nimport { Text } from '../../../lib/Typography';\nvar gnbLogoVariants = cva('mr-4 flex items-center space-x-2 lg:mr-6 text-slate-12 dark:text-slateDark-12', {\n variants: {\n size: {\n small: 'text-xs w-[140px] h-[15px]',\n medium: 'text-sm w-[150px] h-[20px]',\n large: 'text-base w-[160px] h-[25px]',\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\nexport var GnbLogo = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, href = _a.href, props = __rest(_a, [\"children\", \"className\", \"href\"]);\n var size = useContext(GnbContext).size;\n return (_jsx(\"a\", __assign({ href: href, className: cn(gnbLogoVariants({ size: size }), className) }, props, { children: children !== null && children !== void 0 ? children : _jsx(Text, { children: \"LOGO \\uC601\\uC5ED\" }) })));\n});\nGnbLogo.displayName = 'Gnb.Logo';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","gnbLogoVariants","cva","variants","size","small","medium","large","defaultVariants","GnbLogo","forwardRef","_a","ref","children","className","href","props","useContext","GnbContext","_jsx","cn","Text","displayName"],"mappings":"yTAAA,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,EAAkBC,EAAI,gFAAiF,CACvGC,SAAU,CACNC,KAAM,CACFC,MAAO,6BACPC,OAAQ,6BACRC,MAAO,iCAGfC,gBAAiB,CACbJ,KAAM,YAGHK,EAAUC,GAAW,SAAUC,EAAIC,GAC1C,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWC,EAAOJ,EAAGI,KAAMC,EAAQpB,EAAOe,EAAI,CAAC,WAAY,YAAa,SAC/GP,EAAOa,EAAWC,GAAYd,KAClC,OAAQe,EAAK,IAAKtC,EAAS,CAAEkC,KAAMA,EAAMD,UAAWM,EAAGnB,EAAgB,CAAEG,KAAMA,IAASU,IAAcE,EAAO,CAAEH,SAAUA,QAA2CA,EAAWM,EAAKE,EAAM,CAAER,SAAU,cAC1M,IACAJ,EAAQa,YAAc"}
@@ -1,8 +1,6 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
- import { INavItem } from '../../../lib/types';
4
3
  export interface GnbMenuProps extends VariantProps<typeof gnbMenuVariants> {
5
- menuList: INavItem[];
6
4
  }
7
5
  declare const gnbMenuVariants: (props?: ({
8
6
  size?: "small" | "medium" | "large" | null | undefined;
@@ -24,10 +24,8 @@ var __rest = (this && this.__rest) || function (s, e) {
24
24
  import { jsx as _jsx } from "react/jsx-runtime";
25
25
  import { forwardRef, useContext } from 'react';
26
26
  import { cva } from 'class-variance-authority';
27
- import { usePathname } from 'next/navigation';
28
27
  import { GnbContext } from './GnbRoot';
29
28
  import { cn } from '../../../lib/utils/utils';
30
- import Link from 'next/link';
31
29
  var gnbMenuVariants = cva('mr-4 hidden md:flex', {
32
30
  variants: {
33
31
  size: {
@@ -41,9 +39,8 @@ var gnbMenuVariants = cva('mr-4 hidden md:flex', {
41
39
  },
42
40
  });
43
41
  export var GnbMenu = forwardRef(function (_a, ref) {
44
- var children = _a.children, className = _a.className, menuList = _a.menuList, props = __rest(_a, ["children", "className", "menuList"]);
42
+ var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
45
43
  var size = useContext(GnbContext).size;
46
- var pathname = usePathname();
47
- return (_jsx("div", __assign({ className: cn(gnbMenuVariants({ size: size }), className) }, props, { children: _jsx("nav", { className: "flex items-center gap-4 lg:gap-6", children: menuList.map(function (menu, index) { return (_jsx(Link, { href: menu.href, className: cn('hover:text-slate-11', menu.href.startsWith(pathname) ? 'text-slate-12' : 'text-slate-10'), children: menu.title }, index)); }) }) })));
44
+ return (_jsx("div", __assign({ className: cn(gnbMenuVariants({ size: size }), className) }, props, { children: _jsx("nav", { className: "flex items-center gap-4 lg:gap-6", children: children }) })));
48
45
  });
49
46
  GnbMenu.displayName = 'Gnb.Menu';
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{jsx as t}from"react/jsx-runtime";import{forwardRef as e,useContext as r}from"react";import{cva as n}from"class-variance-authority";import{usePathname as a}from"next/navigation";import{GnbContext as i}from"./GnbRoot.mjs";import{cn as o}from"../../utils/utils.mjs";import s from"next/link";var l=function(){return l=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var a in e=arguments[r])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},l.apply(this,arguments)},m=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(t);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a])&&(r[n[a]]=t[n[a]])}return r},c=n("mr-4 hidden md:flex",{variants:{size:{small:"text-xs",medium:"text-sm",large:"text-base"}},defaultVariants:{size:"medium"}}),f=e((function(e,n){e.children;var f=e.className,p=e.menuList,u=m(e,["children","className","menuList"]),h=r(i).size,d=a();return t("div",l({className:o(c({size:h}),f)},u,{children:t("nav",{className:"flex items-center gap-4 lg:gap-6",children:p.map((function(e,r){return t(s,{href:e.href,className:o("hover:text-slate-11",e.href.startsWith(d)?"text-slate-12":"text-slate-10"),children:e.title},r)}))})}))}));f.displayName="Gnb.Menu";export{f as GnbMenu};
2
+ import{jsx as e}from"react/jsx-runtime";import{forwardRef as r,useContext as t}from"react";import{cva as a}from"class-variance-authority";import{GnbContext as n}from"./GnbRoot.mjs";import{cn as i}from"../../utils/utils.mjs";var o=function(){return o=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},o.apply(this,arguments)},s=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)r.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(t[a[n]]=e[a[n]])}return t},l=a("mr-4 hidden md:flex",{variants:{size:{small:"text-xs",medium:"text-sm",large:"text-base"}},defaultVariants:{size:"medium"}}),m=r((function(r,a){var m=r.children,c=r.className,p=s(r,["children","className"]),f=t(n).size;return e("div",o({className:i(l({size:f}),c)},p,{children:e("nav",{className:"flex items-center gap-4 lg:gap-6",children:m})}))}));m.displayName="Gnb.Menu";export{m as GnbMenu};
3
3
  //# sourceMappingURL=GnbMenu.mjs.map
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ export interface GnbMenuItemProps extends VariantProps<typeof gnbMenuItemVariants> {
4
+ href?: string;
5
+ active?: boolean;
6
+ }
7
+ declare const gnbMenuItemVariants: (props?: ({
8
+ size?: "small" | "medium" | "large" | null | undefined;
9
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
+ export declare const GnbMenuItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & GnbMenuItemProps & React.RefAttributes<HTMLAnchorElement>>;
11
+ export {};
@@ -0,0 +1,46 @@
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 { forwardRef, useContext } from 'react';
26
+ import { cva } from 'class-variance-authority';
27
+ import { GnbContext } from './GnbRoot';
28
+ import { cn } from '../../../lib/utils/utils';
29
+ var gnbMenuItemVariants = cva('hover:text-slate-11 dark:hover:text-slateDark-11 cursor-pointer', {
30
+ variants: {
31
+ size: {
32
+ small: 'text-xs',
33
+ medium: 'text-sm',
34
+ large: 'text-base',
35
+ },
36
+ },
37
+ defaultVariants: {
38
+ size: 'medium',
39
+ },
40
+ });
41
+ export var GnbMenuItem = forwardRef(function (_a, ref) {
42
+ var children = _a.children, className = _a.className, href = _a.href, active = _a.active, props = __rest(_a, ["children", "className", "href", "active"]);
43
+ var size = useContext(GnbContext).size;
44
+ return (_jsx("a", __assign({ href: href, className: cn(gnbMenuItemVariants({ size: size }), active ? 'text-slate-12 dark:text-slateDark-12' : 'text-slate-10 dark:text-slateDark-10', className) }, props, { children: children })));
45
+ });
46
+ GnbMenuItem.displayName = 'Gnb.GnbMenuItem';
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import{jsx as t}from"react/jsx-runtime";import{forwardRef as e,useContext as r}from"react";import{cva as a}from"class-variance-authority";import{GnbContext as o}from"./GnbRoot.mjs";import{cn as n}from"../../utils/utils.mjs";var s=function(){return s=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},s.apply(this,arguments)},i=function(t,e){var r={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(r[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(t);o<a.length;o++)e.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(r[a[o]]=t[a[o]])}return r},l=a("hover:text-slate-11 dark:hover:text-slateDark-11 cursor-pointer",{variants:{size:{small:"text-xs",medium:"text-sm",large:"text-base"}},defaultVariants:{size:"medium"}}),c=e((function(e,a){var c=e.children,m=e.className,p=e.href,f=e.active,u=i(e,["children","className","href","active"]),h=r(o).size;return t("a",s({href:p,className:n(l({size:h}),f?"text-slate-12 dark:text-slateDark-12":"text-slate-10 dark:text-slateDark-10",m)},u,{children:c}))}));c.displayName="Gnb.GnbMenuItem";export{c as GnbMenuItem};
3
+ //# sourceMappingURL=GnbMenuItem.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GnbMenuItem.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -3,6 +3,7 @@ declare const Gnb: {
3
3
  Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("./GnbRoot").GnbProps & import("react").RefAttributes<HTMLElement>>;
4
4
  Logo: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & import("./GnbLogo").GnbLogoProps & import("react").RefAttributes<HTMLAnchorElement>>;
5
5
  Menu: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("./GnbMenu").GnbMenuProps & import("react").RefAttributes<HTMLDivElement>>;
6
+ MenuItem: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & import("./GnbMenuItem").GnbMenuItemProps & import("react").RefAttributes<HTMLAnchorElement>>;
6
7
  Info: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("./GnbInfo").GnbInfoProps & import("react").RefAttributes<HTMLDivElement>>;
7
8
  };
8
9
  export default Gnb;
@@ -1,11 +1,13 @@
1
1
  import { Gnb as Root } from './GnbRoot';
2
2
  import { GnbLogo as Logo } from './GnbLogo';
3
3
  import { GnbMenu as Menu } from './GnbMenu';
4
+ import { GnbMenuItem as MenuItem } from './GnbMenuItem';
4
5
  import { GnbInfo as Info } from './GnbInfo';
5
6
  var Gnb = {
6
7
  Root: Root,
7
8
  Logo: Logo,
8
9
  Menu: Menu,
10
+ MenuItem: MenuItem,
9
11
  Info: Info,
10
12
  };
11
13
  export default Gnb;
@@ -1,2 +1,2 @@
1
- import{Gnb as o}from"./GnbRoot.mjs";import{GnbLogo as m}from"./GnbLogo.mjs";import{GnbMenu as r}from"./GnbMenu.mjs";import{GnbInfo as n}from"./GnbInfo.mjs";var t={Root:o,Logo:m,Menu:r,Info:n};export{t as default};
1
+ import{Gnb as o}from"./GnbRoot.mjs";import{GnbLogo as m}from"./GnbLogo.mjs";import{GnbMenu as n}from"./GnbMenu.mjs";import{GnbMenuItem as r}from"./GnbMenuItem.mjs";import{GnbInfo as t}from"./GnbInfo.mjs";var e={Root:o,Logo:m,Menu:n,MenuItem:r,Info:t};export{e as default};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/Gnb/index.js"],"sourcesContent":["import { Gnb as Root } from './GnbRoot';\nimport { GnbLogo as Logo } from './GnbLogo';\nimport { GnbMenu as Menu } from './GnbMenu';\nimport { GnbInfo as Info } from './GnbInfo';\nvar Gnb = {\n Root: Root,\n Logo: Logo,\n Menu: Menu,\n Info: Info,\n};\nexport default Gnb;\n"],"names":["Gnb","Root","Logo","Menu","Info"],"mappings":"4JAIG,IAACA,EAAM,CACNC,KAAMA,EACNC,KAAMA,EACNC,KAAMA,EACNC,KAAMA"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../lib/components/Gnb/index.js"],"sourcesContent":["import { Gnb as Root } from './GnbRoot';\nimport { GnbLogo as Logo } from './GnbLogo';\nimport { GnbMenu as Menu } from './GnbMenu';\nimport { GnbMenuItem as MenuItem } from './GnbMenuItem';\nimport { GnbInfo as Info } from './GnbInfo';\nvar Gnb = {\n Root: Root,\n Logo: Logo,\n Menu: Menu,\n MenuItem: MenuItem,\n Info: Info,\n};\nexport default Gnb;\n"],"names":["Gnb","Root","Logo","Menu","MenuItem","Info"],"mappings":"4MAKG,IAACA,EAAM,CACNC,KAAMA,EACNC,KAAMA,EACNC,KAAMA,EACNC,SAAUA,EACVC,KAAMA"}
@@ -0,0 +1,2 @@
1
+ declare function NumberingPagination({ table }: any): import("react/jsx-runtime").JSX.Element;
2
+ export default NumberingPagination;
@@ -0,0 +1,76 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import IconButton from '../IconButton';
4
+ import { ChevronLeftIcon, ChevronRightIcon, DoubleArrowLeftIcon, DoubleArrowRightIcon, } from '@radix-ui/react-icons';
5
+ import Select from '../Select';
6
+ import { MAIN_COLOR } from '../../../lib/color/constants';
7
+ import Button from '../Button';
8
+ import TextField from '../TextField';
9
+ import Text from '../../Typography/Text';
10
+ function NumberingPagination(_a) {
11
+ var _b;
12
+ var table = _a.table;
13
+ var _c = useState('1'), nowPage = _c[0], setNowPage = _c[1];
14
+ var color = (_b = table.options.color) !== null && _b !== void 0 ? _b : MAIN_COLOR;
15
+ var renderPageNumbers = function () {
16
+ var pageNumbers = [];
17
+ var currentInx = table.getState().pagination.pageIndex;
18
+ var _loop_1 = function (i) {
19
+ pageNumbers.push(_jsx(Button, { appearance: "ghost", onClick: function () {
20
+ table.setPageIndex(i);
21
+ setNowPage(String(i + 1));
22
+ }, color: table.getState().pagination.pageIndex === i ? color : 'slate', children: i + 1 }, i));
23
+ };
24
+ for (var i = 0; i < table.getPageCount(); i++) {
25
+ _loop_1(i);
26
+ }
27
+ if (pageNumbers.length > 10) {
28
+ if (currentInx - 3 > 0 && currentInx + 3 < table.getPageCount()) {
29
+ pageNumbers = pageNumbers.slice(currentInx - 2, currentInx + 3);
30
+ pageNumbers.unshift(_jsx(Button, { appearance: "ghost", onClick: function () {
31
+ table.setPageIndex(0);
32
+ setNowPage('1');
33
+ }, color: table.getState().pagination.pageIndex === 0 ? color : 'slate', children: 1 }, 0), _jsx(Button, { appearance: "ghost", disabled: true, children: "..." }));
34
+ pageNumbers.push(_jsx(Button, { appearance: "ghost", disabled: true, children: "..." }), _jsx(Button, { appearance: "ghost", onClick: function () {
35
+ table.setPageIndex(table.getPageCount() - 1);
36
+ setNowPage(String(table.getPageCount()));
37
+ }, color: table.getState().pagination.pageIndex === table.getPageCount() - 1 ? color : 'slate', children: table.getPageCount() }, table.getPageCount() - 1));
38
+ }
39
+ else if (currentInx - 3 <= 0) {
40
+ pageNumbers = pageNumbers.slice(0, 7);
41
+ pageNumbers.push(_jsx(Button, { appearance: "ghost", disabled: true, children: "..." }), _jsx(Button, { appearance: "ghost", onClick: function () {
42
+ table.setPageIndex(table.getPageCount() - 1);
43
+ setNowPage(String(table.getPageCount()));
44
+ }, color: table.getState().pagination.pageIndex === table.getPageCount() - 1 ? color : 'slate', children: table.getPageCount() }, table.getPageCount() - 1));
45
+ }
46
+ else {
47
+ pageNumbers = pageNumbers.slice(table.getPageCount() - 7, table.getPageCount());
48
+ pageNumbers.unshift(_jsx(Button, { appearance: "ghost", onClick: function () {
49
+ table.setPageIndex(0);
50
+ setNowPage('1');
51
+ }, color: table.getState().pagination.pageIndex === 0 ? color : 'slate', children: 1 }, 0), _jsx(Button, { appearance: "ghost", disabled: true, children: "..." }));
52
+ }
53
+ }
54
+ return pageNumbers;
55
+ };
56
+ return (_jsxs("div", { children: [_jsxs("div", { className: "flex items-center justify-center gap-2", children: [_jsxs(Select.Root, { color: color, value: String(table.getState().pagination.pageSize), defaultValue: String(table.getState().pagination.pageSize), onValueChange: function (e) {
57
+ table.setPageSize(Number(e));
58
+ setNowPage('1');
59
+ table.setPageIndex(0);
60
+ }, children: [_jsx(Select.Trigger, {}), _jsx(Select.Content, { children: [10, 20, 30, 50, 100].map(function (pageSize) { return (_jsx(Select.Item, { value: String(pageSize), children: pageSize }, pageSize)); }) })] }), _jsxs("div", { className: "flex gap-2", children: [_jsx(IconButton, { className: "rounded border p-1", color: color, onClick: function () {
61
+ table.firstPage();
62
+ setNowPage('1');
63
+ }, disabled: !table.getCanPreviousPage(), children: _jsx(DoubleArrowLeftIcon, {}) }), _jsx(IconButton, { className: "rounded border p-1", color: color, onClick: function () {
64
+ table.previousPage();
65
+ setNowPage(String(table.getState().pagination.pageIndex));
66
+ }, disabled: !table.getCanPreviousPage(), children: _jsx(ChevronLeftIcon, {}) })] }), _jsx("div", { children: renderPageNumbers() }), _jsxs("div", { className: "flex gap-2", children: [_jsx(IconButton, { className: "rounded border p-1", color: color, onClick: function () {
67
+ table.nextPage();
68
+ setNowPage(String(table.getState().pagination.pageIndex + 2));
69
+ }, disabled: !table.getCanNextPage(), children: _jsx(ChevronRightIcon, {}) }), _jsx(IconButton, { className: "rounded border p-1", color: color, onClick: function () {
70
+ table.lastPage();
71
+ setNowPage(String(table.getPageCount()));
72
+ }, disabled: !table.getCanNextPage(), children: _jsx(DoubleArrowRightIcon, {}) })] })] }), _jsxs("div", { className: "mt-4 flex items-center justify-center gap-2", children: [_jsx(TextField.Root, { type: "number", color: color, min: "1", max: table.getPageCount(), value: nowPage, onChange: function (e) {
73
+ setNowPage(e.target.value);
74
+ }, className: "w-[50px] rounded border" }), _jsxs(Text, { children: ["/ ", table.getPageCount()] }), _jsx(Button, { onClick: function () { return table.setPageIndex(nowPage ? Number(nowPage) - 1 : 0); }, children: "\uC774\uB3D9" })] })] }));
75
+ }
76
+ export default NumberingPagination;
@@ -0,0 +1,2 @@
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useState as n}from"react";import{IconButton as a}from"../IconButton/index.mjs";import{DoubleArrowLeftIcon as o,ChevronLeftIcon as i,ChevronRightIcon as r,DoubleArrowRightIcon as g}from"@radix-ui/react-icons";import c from"../Select/index.mjs";import{MAIN_COLOR as l}from"../../color/constants.mjs";import{Button as d}from"../Button/index.mjs";import s from"../TextField/index.mjs";import u from"../../Typography/Text/index.mjs";function p(p){var m,h=p.table,f=n("1"),P=f[0],x=f[1],C=null!==(m=h.options.color)&&void 0!==m?m:l;return e("div",{children:[e("div",{className:"flex items-center justify-center gap-2",children:[e(c.Root,{color:C,value:String(h.getState().pagination.pageSize),defaultValue:String(h.getState().pagination.pageSize),onValueChange:function(e){h.setPageSize(Number(e)),x("1"),h.setPageIndex(0)},children:[t(c.Trigger,{}),t(c.Content,{children:[10,20,30,50,100].map((function(e){return t(c.Item,{value:String(e),children:e},e)}))})]}),e("div",{className:"flex gap-2",children:[t(a,{className:"rounded border p-1",color:C,onClick:function(){h.firstPage(),x("1")},disabled:!h.getCanPreviousPage(),children:t(o,{})}),t(a,{className:"rounded border p-1",color:C,onClick:function(){h.previousPage(),x(String(h.getState().pagination.pageIndex))},disabled:!h.getCanPreviousPage(),children:t(i,{})})]}),t("div",{children:function(){for(var e=[],n=h.getState().pagination.pageIndex,a=function(n){e.push(t(d,{appearance:"ghost",onClick:function(){h.setPageIndex(n),x(String(n+1))},color:h.getState().pagination.pageIndex===n?C:"slate",children:n+1},n))},o=0;o<h.getPageCount();o++)a(o);return e.length>10&&(n-3>0&&n+3<h.getPageCount()?((e=e.slice(n-2,n+3)).unshift(t(d,{appearance:"ghost",onClick:function(){h.setPageIndex(0),x("1")},color:0===h.getState().pagination.pageIndex?C:"slate",children:1},0),t(d,{appearance:"ghost",disabled:!0,children:"..."})),e.push(t(d,{appearance:"ghost",disabled:!0,children:"..."}),t(d,{appearance:"ghost",onClick:function(){h.setPageIndex(h.getPageCount()-1),x(String(h.getPageCount()))},color:h.getState().pagination.pageIndex===h.getPageCount()-1?C:"slate",children:h.getPageCount()},h.getPageCount()-1))):n-3<=0?(e=e.slice(0,7)).push(t(d,{appearance:"ghost",disabled:!0,children:"..."}),t(d,{appearance:"ghost",onClick:function(){h.setPageIndex(h.getPageCount()-1),x(String(h.getPageCount()))},color:h.getState().pagination.pageIndex===h.getPageCount()-1?C:"slate",children:h.getPageCount()},h.getPageCount()-1)):(e=e.slice(h.getPageCount()-7,h.getPageCount())).unshift(t(d,{appearance:"ghost",onClick:function(){h.setPageIndex(0),x("1")},color:0===h.getState().pagination.pageIndex?C:"slate",children:1},0),t(d,{appearance:"ghost",disabled:!0,children:"..."}))),e}()}),e("div",{className:"flex gap-2",children:[t(a,{className:"rounded border p-1",color:C,onClick:function(){h.nextPage(),x(String(h.getState().pagination.pageIndex+2))},disabled:!h.getCanNextPage(),children:t(r,{})}),t(a,{className:"rounded border p-1",color:C,onClick:function(){h.lastPage(),x(String(h.getPageCount()))},disabled:!h.getCanNextPage(),children:t(g,{})})]})]}),e("div",{className:"mt-4 flex items-center justify-center gap-2",children:[t(s.Root,{type:"number",color:C,min:"1",max:h.getPageCount(),value:P,onChange:function(e){x(e.target.value)},className:"w-[50px] rounded border"}),e(u,{children:["/ ",h.getPageCount()]}),t(d,{onClick:function(){return h.setPageIndex(P?Number(P)-1:0)},children:"이동"})]})]})}export{p as default};
2
+ //# sourceMappingURL=NumberingPagination.mjs.map