@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
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@lotte-innovate/ui-component-test",
3
3
  "description": "Lotte UI Library",
4
- "version": "0.0.120",
4
+ "version": "0.0.122",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "files": [
8
- "public/tinymce**/*",
9
8
  "dist",
10
9
  "dist/globals.css"
11
10
  ],
@@ -37,7 +36,6 @@
37
36
  "scripts": {
38
37
  "dev": "next dev",
39
38
  "lint": "next lint",
40
- "prepare": "next build",
41
39
  "start": "next start",
42
40
  "storybook": "cross-env NODE_OPTIONS='--max-old-space-size=8192' storybook dev -p 6006",
43
41
  "chromatic": "cross-env npx chromatic --project-token=$CHROMATIC_PROJECT_TOKEN",
@@ -50,7 +48,7 @@
50
48
  "build:css": "npx tailwindcss -i src/app/globals.css -o dist/globals.css --minify && node update-tailwind-import.js",
51
49
  "build:test": "npm run clean && npm run compile:typescript && npm run bundle:rollup && npm run build:css",
52
50
  "publish:dist": "node src/utils/prev-publish.js && npm publish && node src/utils/post-publish.js",
53
- "publish:npm": "npm run clean && npm run compile:typescript && npm run bundle:rollup && npm run build:css && npm run publish:dist"
51
+ "publish:npm": "npm run clean && npm run compile:typescript && npm run bundle:rollup && npm run build:css && npm run publish:dist"
54
52
  },
55
53
  "dependencies": {
56
54
  "@babel/runtime": "^7.24.7",
@@ -86,19 +84,23 @@
86
84
  "class-variance-authority": "^0.7.0",
87
85
  "clsx": "^2.1.0",
88
86
  "cross-env": "^7.0.3",
87
+ "date-fns": "^2.30.0",
89
88
  "dotenv": "^16.4.5",
90
89
  "marked": "^14.1.3",
91
90
  "next": "14.1.4",
92
91
  "react": "^18",
93
92
  "react-chartjs-2": "^5.2.0",
93
+ "react-day-picker": "^8.7.1",
94
94
  "react-dom": "^18",
95
+ "react-pro-sidebar": "^1.1.0",
95
96
  "react-tabs": "^6.0.2",
96
97
  "rollup-plugin-peer-deps-external": "^2.2.4",
97
98
  "rollup-plugin-preserve-directives": "^0.4.0",
98
99
  "storybook-addon-deep-controls": "^0.7.1",
99
100
  "storybook-dark-mode": "^4.0.2",
100
101
  "tailwind-merge": "^2.2.2",
101
- "tinymce": "^6.8.5"
102
+ "tinymce": "^6.8.5",
103
+ "raw-loader": "^4.0.2"
102
104
  },
103
105
  "devDependencies": {
104
106
  "@babel/cli": "^7.24.7",
@@ -1,2 +0,0 @@
1
- import{jsxs as e,jsx as n}from"react/jsx-runtime";import{IconButton as t}from"../IconButton/index.mjs";import{DoubleArrowLeftIcon as a,ChevronLeftIcon as r,ChevronRightIcon as o,DoubleArrowRightIcon as i}from"@radix-ui/react-icons";import l from"../TextField/index.mjs";import d from"../Select/index.mjs";function c(c){var g,u=c.table,s=null!==(g=u.options.color)&&void 0!==g?g:"red";return e("div",{className:"flex items-center gap-2",children:[n(t,{className:"rounded border p-1",color:s,onClick:function(){return u.firstPage()},disabled:!u.getCanPreviousPage(),children:n(a,{})}),n(t,{className:"rounded border p-1",color:s,onClick:function(){return u.previousPage()},disabled:!u.getCanPreviousPage(),children:n(r,{})}),n(t,{className:"rounded border p-1",color:s,onClick:function(){return u.nextPage()},disabled:!u.getCanNextPage(),children:n(o,{})}),n(t,{className:"rounded border p-1",color:s,onClick:function(){return u.lastPage()},disabled:!u.getCanNextPage(),children:n(i,{})}),e("span",{className:"flex items-center gap-1",children:[n("div",{children:"Page"}),e("strong",{children:[u.getState().pagination.pageIndex+1," of ",u.getPageCount().toLocaleString()]})]}),e("span",{className:"flex items-center gap-1",children:["| Go to page:",n(l.Root,{type:"number",color:s,min:"1",max:u.getPageCount(),defaultValue:u.getState().pagination.pageIndex+1,onChange:function(e){var n=e.target.value?Number(e.target.value)-1:0;u.setPageIndex(n)},className:"w-16 rounded border p-1"})]}),e(d.Root,{color:s,value:String(u.getState().pagination.pageSize),defaultValue:String(u.getState().pagination.pageSize),onValueChange:function(e){u.setPageSize(Number(e))},children:[n(d.Trigger,{}),n(d.Content,{children:[10,20,30,40,50].map((function(e){return n(d.Item,{value:String(e),children:e},e)}))})]})]})}export{c as default};
2
- //# sourceMappingURL=Pagination.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Pagination.mjs","sources":["../../../lib/components/Grid/Pagination.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport IconButton from '../IconButton';\nimport { ChevronLeftIcon, ChevronRightIcon, DoubleArrowLeftIcon, DoubleArrowRightIcon, } from '@radix-ui/react-icons';\nimport TextField from '../TextField';\nimport Select from '../Select';\nfunction Pagination(_a) {\n var _b;\n var table = _a.table;\n var color = (_b = table.options.color) !== null && _b !== void 0 ? _b : 'red';\n return (_jsxs(\"div\", { className: \"flex items-center gap-2\", children: [_jsx(IconButton, { className: \"rounded border p-1\", color: color, onClick: function () { return table.firstPage(); }, disabled: !table.getCanPreviousPage(), children: _jsx(DoubleArrowLeftIcon, {}) }), _jsx(IconButton, { className: \"rounded border p-1\", color: color, onClick: function () { return table.previousPage(); }, disabled: !table.getCanPreviousPage(), children: _jsx(ChevronLeftIcon, {}) }), _jsx(IconButton, { className: \"rounded border p-1\", color: color, onClick: function () { return table.nextPage(); }, disabled: !table.getCanNextPage(), children: _jsx(ChevronRightIcon, {}) }), _jsx(IconButton, { className: \"rounded border p-1\", color: color, onClick: function () { return table.lastPage(); }, disabled: !table.getCanNextPage(), children: _jsx(DoubleArrowRightIcon, {}) }), _jsxs(\"span\", { className: \"flex items-center gap-1\", children: [_jsx(\"div\", { children: \"Page\" }), _jsxs(\"strong\", { children: [table.getState().pagination.pageIndex + 1, \" of \", table.getPageCount().toLocaleString()] })] }), _jsxs(\"span\", { className: \"flex items-center gap-1\", children: [\"| Go to page:\", _jsx(TextField.Root, { type: \"number\", color: color, min: \"1\", max: table.getPageCount(), defaultValue: table.getState().pagination.pageIndex + 1, onChange: function (e) {\n var page = e.target.value ? Number(e.target.value) - 1 : 0;\n table.setPageIndex(page);\n }, className: \"w-16 rounded border p-1\" })] }), _jsxs(Select.Root, { color: color, value: String(table.getState().pagination.pageSize), defaultValue: String(table.getState().pagination.pageSize), onValueChange: function (e) {\n table.setPageSize(Number(e));\n }, children: [_jsx(Select.Trigger, {}), _jsx(Select.Content, { children: [10, 20, 30, 40, 50].map(function (pageSize) { return (_jsx(Select.Item, { value: String(pageSize), children: pageSize }, pageSize)); }) })] })] }));\n}\nexport default Pagination;\n"],"names":["Pagination","_a","_b","table","color","options","_jsxs","className","children","_jsx","IconButton","onClick","firstPage","disabled","getCanPreviousPage","DoubleArrowLeftIcon","previousPage","ChevronLeftIcon","nextPage","getCanNextPage","ChevronRightIcon","lastPage","DoubleArrowRightIcon","getState","pagination","pageIndex","getPageCount","toLocaleString","TextField","Root","type","min","max","defaultValue","onChange","e","page","target","value","Number","setPageIndex","Select","String","pageSize","onValueChange","setPageSize","Trigger","Content","map","Item"],"mappings":"iTAKA,SAASA,EAAWC,GAChB,IAAIC,EACAC,EAAQF,EAAGE,MACXC,EAAuC,QAA9BF,EAAKC,EAAME,QAAQD,aAA0B,IAAPF,EAAgBA,EAAK,MACxE,OAAQI,EAAM,MAAO,CAAEC,UAAW,0BAA2BC,SAAU,CAACC,EAAKC,EAAY,CAAEH,UAAW,qBAAsBH,MAAOA,EAAOO,QAAS,WAAc,OAAOR,EAAMS,WAAc,EAAEC,UAAWV,EAAMW,qBAAsBN,SAAUC,EAAKM,EAAqB,MAAQN,EAAKC,EAAY,CAAEH,UAAW,qBAAsBH,MAAOA,EAAOO,QAAS,WAAc,OAAOR,EAAMa,cAAe,EAAIH,UAAWV,EAAMW,qBAAsBN,SAAUC,EAAKQ,EAAiB,CAAE,KAAMR,EAAKC,EAAY,CAAEH,UAAW,qBAAsBH,MAAOA,EAAOO,QAAS,WAAc,OAAOR,EAAMe,YAAeL,UAAWV,EAAMgB,iBAAkBX,SAAUC,EAAKW,EAAkB,CAAE,KAAMX,EAAKC,EAAY,CAAEH,UAAW,qBAAsBH,MAAOA,EAAOO,QAAS,WAAc,OAAOR,EAAMkB,YAAeR,UAAWV,EAAMgB,iBAAkBX,SAAUC,EAAKa,EAAsB,CAAA,KAAQhB,EAAM,OAAQ,CAAEC,UAAW,0BAA2BC,SAAU,CAACC,EAAK,MAAO,CAAED,SAAU,SAAWF,EAAM,SAAU,CAAEE,SAAU,CAACL,EAAMoB,WAAWC,WAAWC,UAAY,EAAG,OAAQtB,EAAMuB,eAAeC,uBAA0BrB,EAAM,OAAQ,CAAEC,UAAW,0BAA2BC,SAAU,CAAC,gBAAiBC,EAAKmB,EAAUC,KAAM,CAAEC,KAAM,SAAU1B,MAAOA,EAAO2B,IAAK,IAAKC,IAAK7B,EAAMuB,eAAgBO,aAAc9B,EAAMoB,WAAWC,WAAWC,UAAY,EAAGS,SAAU,SAAUC,GACnyC,IAAIC,EAAOD,EAAEE,OAAOC,MAAQC,OAAOJ,EAAEE,OAAOC,OAAS,EAAI,EACzDnC,EAAMqC,aAAaJ,EACtB,EAAE7B,UAAW,+BAAkCD,EAAMmC,EAAOZ,KAAM,CAAEzB,MAAOA,EAAOkC,MAAOI,OAAOvC,EAAMoB,WAAWC,WAAWmB,UAAWV,aAAcS,OAAOvC,EAAMoB,WAAWC,WAAWmB,UAAWC,cAAe,SAAUT,GACjOhC,EAAM0C,YAAYN,OAAOJ,GAC7C,EAAmB3B,SAAU,CAACC,EAAKgC,EAAOK,QAAS,CAAE,GAAGrC,EAAKgC,EAAOM,QAAS,CAAEvC,SAAU,CAAC,GAAI,GAAI,GAAI,GAAI,IAAIwC,KAAI,SAAUL,GAAY,OAAQlC,EAAKgC,EAAOQ,KAAM,CAAEX,MAAOI,OAAOC,GAAWnC,SAAUmC,GAAYA,EAAa,WAChO"}