@lotte-innovate/ui-component-test 0.1.96 → 0.1.97

Sign up to get free protection for your applications and to get access to all the features.
Files changed (929) hide show
  1. package/README.md +223 -133
  2. package/dist/globals.css +4 -4
  3. package/dist/lib/Typography/Header/index.d.ts +7 -5
  4. package/dist/lib/Typography/Header/index.js +5 -2
  5. package/dist/lib/Typography/Text/index.d.ts +1 -1
  6. package/dist/lib/Typography/Text/index.js +4 -1
  7. package/dist/lib/_virtual/index.mjs +2 -0
  8. package/dist/lib/_virtual/index2.mjs +2 -0
  9. package/dist/lib/_virtual/index2.mjs.map +1 -0
  10. package/dist/lib/_virtual/index3.mjs +2 -0
  11. package/dist/lib/_virtual/index3.mjs.map +1 -0
  12. package/dist/lib/_virtual/react-is.development.mjs +2 -0
  13. package/dist/lib/_virtual/react-is.development.mjs.map +1 -0
  14. package/dist/lib/_virtual/react-is.production.min.mjs +2 -0
  15. package/dist/lib/_virtual/react-is.production.min.mjs.map +1 -0
  16. package/dist/lib/color/constants.d.ts +1 -15
  17. package/dist/lib/color/constants.js +1 -32
  18. package/dist/lib/components/Accordion/index.d.ts +1 -1
  19. package/dist/lib/components/Accordion/index.js +21 -4
  20. package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +2 -2
  21. package/dist/lib/components/AlertDialog/AlertDialogAction.js +4 -2
  22. package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +2 -2
  23. package/dist/lib/components/AlertDialog/AlertDialogCancel.js +1 -0
  24. package/dist/lib/components/AlertDialog/AlertDialogContent.d.ts +1 -1
  25. package/dist/lib/components/AlertDialog/AlertDialogContent.js +2 -1
  26. package/dist/lib/components/AlertDialog/AlertDialogDescription.js +1 -0
  27. package/dist/lib/components/AlertDialog/AlertDialogRoot.js +11 -7
  28. package/dist/lib/components/AlertDialog/AlertDialogTitle.js +1 -0
  29. package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +2 -2
  30. package/dist/lib/components/AlertDialog/AlertDialogTrigger.js +15 -3
  31. package/dist/lib/components/AlertDialog/index.d.ts +1 -0
  32. package/dist/lib/components/AlertDialog/index.js +1 -1
  33. package/dist/lib/components/AspectRatio/index.js +4 -1
  34. package/dist/lib/components/Avatar/index.d.ts +1 -1
  35. package/dist/lib/components/Avatar/index.js +12 -3
  36. package/dist/lib/components/Badge/index.d.ts +2 -2
  37. package/dist/lib/components/Badge/index.js +14 -3
  38. package/dist/lib/components/BarChart/index.d.ts +1 -1
  39. package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.d.ts +9 -0
  40. package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.js +34 -0
  41. package/dist/lib/components/Breadcrumb/BreadcrumbItem.d.ts +6 -0
  42. package/dist/lib/components/Breadcrumb/BreadcrumbItem.js +32 -0
  43. package/dist/lib/components/Breadcrumb/BreadcrumbLink.d.ts +10 -0
  44. package/dist/lib/components/Breadcrumb/BreadcrumbLink.js +47 -0
  45. package/dist/lib/components/Breadcrumb/BreadcrumbList.d.ts +6 -0
  46. package/dist/lib/components/Breadcrumb/BreadcrumbList.js +34 -0
  47. package/dist/lib/components/Breadcrumb/BreadcrumbPage.d.ts +8 -0
  48. package/dist/lib/components/Breadcrumb/BreadcrumbPage.js +45 -0
  49. package/dist/lib/components/Breadcrumb/BreadcrumbRoot.d.ts +14 -0
  50. package/dist/lib/components/Breadcrumb/BreadcrumbRoot.js +59 -0
  51. package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.d.ts +9 -0
  52. package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.js +34 -0
  53. package/dist/lib/components/Breadcrumb/index.d.ts +21 -0
  54. package/dist/lib/components/Breadcrumb/index.js +17 -0
  55. package/dist/lib/components/BubbleChart/index.js +1 -1
  56. package/dist/lib/components/Button/index.d.ts +2 -2
  57. package/dist/lib/components/Button/index.js +14 -3
  58. package/dist/lib/components/Callout/CalloutIcon.js +1 -0
  59. package/dist/lib/components/Callout/CalloutRoot.d.ts +1 -1
  60. package/dist/lib/components/Callout/CalloutRoot.js +11 -3
  61. package/dist/lib/components/Callout/CalloutText.js +1 -0
  62. package/dist/lib/components/Callout/index.d.ts +1 -0
  63. package/dist/lib/components/Card/index.d.ts +2 -2
  64. package/dist/lib/components/Card/index.js +9 -1
  65. package/dist/lib/components/Checkbox/index.d.ts +1 -1
  66. package/dist/lib/components/Checkbox/index.js +12 -3
  67. package/dist/lib/components/CheckboxCard/index.d.ts +1 -1
  68. package/dist/lib/components/CheckboxCard/index.js +9 -1
  69. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +1 -0
  70. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +13 -3
  71. package/dist/lib/components/CheckboxGroup/index.d.ts +2 -1
  72. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +2 -1
  73. package/dist/lib/components/ContextMenu/ContextMenuContent.d.ts +1 -1
  74. package/dist/lib/components/ContextMenu/ContextMenuContent.js +1 -0
  75. package/dist/lib/components/ContextMenu/ContextMenuItem.d.ts +1 -1
  76. package/dist/lib/components/ContextMenu/ContextMenuItem.js +3 -1
  77. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.d.ts +1 -1
  78. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +1 -0
  79. package/dist/lib/components/ContextMenu/ContextMenuLabel.js +1 -0
  80. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js +1 -0
  81. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +2 -1
  82. package/dist/lib/components/ContextMenu/ContextMenuRoot.js +13 -3
  83. package/dist/lib/components/ContextMenu/ContextMenuSubContent.d.ts +1 -1
  84. package/dist/lib/components/ContextMenu/ContextMenuSubContent.js +1 -0
  85. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +4 -2
  86. package/dist/lib/components/ContextMenu/index.d.ts +1 -0
  87. package/dist/lib/components/DataList/DataListItem.js +1 -0
  88. package/dist/lib/components/DataList/DataListLabel.d.ts +1 -1
  89. package/dist/lib/components/DataList/DataListLabel.js +1 -0
  90. package/dist/lib/components/DataList/DataListRoot.js +9 -2
  91. package/dist/lib/components/DataList/DataListValue.d.ts +1 -1
  92. package/dist/lib/components/DataList/DataListValue.js +1 -0
  93. package/dist/lib/components/DataList/index.d.ts +1 -0
  94. package/dist/lib/components/Dialog/DialogAction.d.ts +1 -1
  95. package/dist/lib/components/Dialog/DialogAction.js +3 -1
  96. package/dist/lib/components/Dialog/DialogCancel.d.ts +1 -1
  97. package/dist/lib/components/Dialog/DialogCancel.js +1 -0
  98. package/dist/lib/components/Dialog/DialogContent.d.ts +1 -1
  99. package/dist/lib/components/Dialog/DialogContent.js +1 -0
  100. package/dist/lib/components/Dialog/DialogDescription.js +2 -1
  101. package/dist/lib/components/Dialog/DialogRoot.js +11 -2
  102. package/dist/lib/components/Dialog/DialogSlot.js +1 -0
  103. package/dist/lib/components/Dialog/DialogTitle.js +1 -0
  104. package/dist/lib/components/Dialog/index.d.ts +2 -1
  105. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.d.ts +1 -1
  106. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +1 -0
  107. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +2 -1
  108. package/dist/lib/components/DropdownMenu/DropdownMenuContent.d.ts +1 -1
  109. package/dist/lib/components/DropdownMenu/DropdownMenuContent.js +1 -0
  110. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +1 -1
  111. package/dist/lib/components/DropdownMenu/DropdownMenuItem.js +3 -1
  112. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +1 -1
  113. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +1 -0
  114. package/dist/lib/components/DropdownMenu/DropdownMenuLable.js +1 -0
  115. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +2 -1
  116. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +12 -2
  117. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +3 -1
  118. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
  119. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +1 -0
  120. package/dist/lib/components/DropdownMenu/index.d.ts +2 -1
  121. package/dist/lib/components/Editor/index.d.ts +11 -0
  122. package/dist/lib/components/Editor/index.js +76 -0
  123. package/dist/lib/components/Footer/index.d.ts +11 -0
  124. package/dist/lib/components/Footer/index.js +57 -0
  125. package/dist/lib/components/Gnb/GnbInfo.d.ts +9 -0
  126. package/dist/lib/components/Gnb/GnbInfo.js +46 -0
  127. package/dist/lib/components/Gnb/GnbLogo.d.ts +9 -0
  128. package/dist/lib/components/Gnb/GnbLogo.js +46 -0
  129. package/dist/lib/components/Gnb/GnbMenu.d.ts +11 -0
  130. package/dist/lib/components/Gnb/GnbMenu.js +49 -0
  131. package/dist/lib/components/Gnb/GnbRoot.d.ts +11 -0
  132. package/dist/lib/components/Gnb/GnbRoot.js +53 -0
  133. package/dist/lib/components/Gnb/index.d.ts +8 -0
  134. package/dist/lib/components/Gnb/index.js +11 -0
  135. package/dist/lib/components/Grid/Pagination.d.ts +2 -0
  136. package/dist/lib/components/Grid/Pagination.js +17 -0
  137. package/dist/lib/components/Grid/index.d.ts +4 -0
  138. package/dist/lib/components/Grid/index.js +45 -0
  139. package/dist/lib/components/Grid/useGrid.d.ts +3 -0
  140. package/dist/lib/components/Grid/useGrid.js +75 -0
  141. package/dist/lib/components/HoverCard/HoverCardContent.d.ts +2 -2
  142. package/dist/lib/components/HoverCard/HoverCardContent.js +1 -0
  143. package/dist/lib/components/HoverCard/HoverCardRoot.js +12 -2
  144. package/dist/lib/components/HoverCard/index.d.ts +2 -1
  145. package/dist/lib/components/IconButton/index.d.ts +1 -1
  146. package/dist/lib/components/IconButton/index.js +13 -3
  147. package/dist/lib/components/Inset/index.d.ts +1 -1
  148. package/dist/lib/components/Inset/index.js +8 -1
  149. package/dist/lib/components/Label/index.d.ts +5 -4
  150. package/dist/lib/components/Label/index.js +15 -4
  151. package/dist/lib/components/Menubar/MenubarCheckboxItem.js +3 -1
  152. package/dist/lib/components/Menubar/MenubarContent.d.ts +1 -1
  153. package/dist/lib/components/Menubar/MenubarContent.js +1 -0
  154. package/dist/lib/components/Menubar/MenubarItem.d.ts +1 -1
  155. package/dist/lib/components/Menubar/MenubarItem.js +3 -1
  156. package/dist/lib/components/Menubar/MenubarItemIndicator.d.ts +1 -1
  157. package/dist/lib/components/Menubar/MenubarItemIndicator.js +1 -0
  158. package/dist/lib/components/Menubar/MenubarRadioGroup.js +1 -0
  159. package/dist/lib/components/Menubar/MenubarRadioItem.js +3 -1
  160. package/dist/lib/components/Menubar/MenubarRoot.d.ts +1 -1
  161. package/dist/lib/components/Menubar/MenubarRoot.js +17 -5
  162. package/dist/lib/components/Menubar/MenubarSubContent.d.ts +1 -1
  163. package/dist/lib/components/Menubar/MenubarSubContent.js +1 -0
  164. package/dist/lib/components/Menubar/MenubarSubTrigger.js +3 -1
  165. package/dist/lib/components/Menubar/MenubarTrigger.d.ts +1 -1
  166. package/dist/lib/components/Menubar/MenubarTrigger.js +2 -1
  167. package/dist/lib/components/Menubar/index.d.ts +1 -0
  168. package/dist/lib/components/NavigationMenu/NavigationMenuContent.d.ts +1 -1
  169. package/dist/lib/components/NavigationMenu/NavigationMenuContent.js +2 -1
  170. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +1 -1
  171. package/dist/lib/components/NavigationMenu/NavigationMenuLink.d.ts +1 -1
  172. package/dist/lib/components/NavigationMenu/NavigationMenuLink.js +3 -1
  173. package/dist/lib/components/NavigationMenu/NavigationMenuList.d.ts +1 -1
  174. package/dist/lib/components/NavigationMenu/NavigationMenuList.js +3 -1
  175. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +13 -3
  176. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.d.ts +1 -1
  177. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +3 -1
  178. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.d.ts +2 -2
  179. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +3 -2
  180. package/dist/lib/components/NavigationMenu/index.d.ts +1 -0
  181. package/dist/lib/components/Popover/PopoverClose.d.ts +1 -1
  182. package/dist/lib/components/Popover/PopoverClose.js +1 -0
  183. package/dist/lib/components/Popover/PopoverContent.d.ts +1 -1
  184. package/dist/lib/components/Popover/PopoverContent.js +1 -0
  185. package/dist/lib/components/Popover/PopoverRoot.js +8 -1
  186. package/dist/lib/components/Popover/index.d.ts +2 -1
  187. package/dist/lib/components/Progress/index.d.ts +1 -1
  188. package/dist/lib/components/Progress/index.js +14 -3
  189. package/dist/lib/components/RadarChart/index.js +1 -1
  190. package/dist/lib/components/Radio/index.js +11 -4
  191. package/dist/lib/components/RadioCards/RadioCardsItem.d.ts +1 -1
  192. package/dist/lib/components/RadioCards/RadioCardsItem.js +1 -0
  193. package/dist/lib/components/RadioCards/RadioCardsRoot.js +13 -3
  194. package/dist/lib/components/RadioCards/index.d.ts +1 -0
  195. package/dist/lib/components/RadioGroup/RadioGroupItem.js +1 -0
  196. package/dist/lib/components/RadioGroup/RadioGroupRoot.js +12 -3
  197. package/dist/lib/components/RadioGroup/index.d.ts +1 -0
  198. package/dist/lib/components/ScrollArea/index.js +4 -1
  199. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +1 -1
  200. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +11 -3
  201. package/dist/lib/components/SegmentedControl/index.d.ts +1 -0
  202. package/dist/lib/components/SegmentedControl/index.js +1 -1
  203. package/dist/lib/components/Select/index.d.ts +4 -2
  204. package/dist/lib/components/Select/index.js +33 -13
  205. package/dist/lib/components/Separator/index.d.ts +1 -1
  206. package/dist/lib/components/Separator/index.js +10 -2
  207. package/dist/lib/components/Skeleton/index.d.ts +1 -1
  208. package/dist/lib/components/Skeleton/index.js +5 -1
  209. package/dist/lib/components/Slider/index.d.ts +4 -3
  210. package/dist/lib/components/Slider/index.js +12 -5
  211. package/dist/lib/components/Spinner/index.js +4 -1
  212. package/dist/lib/components/TabNav/index.d.ts +2 -2
  213. package/dist/lib/components/TabNav/index.js +6 -3
  214. package/dist/lib/components/Table/index.d.ts +1 -1
  215. package/dist/lib/components/Table/index.js +9 -3
  216. package/dist/lib/components/Tabs/index.d.ts +5 -4
  217. package/dist/lib/components/Tabs/index.js +6 -3
  218. package/dist/lib/components/TextArea/index.d.ts +2 -2
  219. package/dist/lib/components/TextArea/index.js +11 -3
  220. package/dist/lib/components/TextField/index.d.ts +3 -3
  221. package/dist/lib/components/TextField/index.js +12 -4
  222. package/dist/lib/components/Timeline/TimelineConnector.d.ts +6 -0
  223. package/dist/lib/components/Timeline/TimelineConnector.js +36 -0
  224. package/dist/lib/components/Timeline/TimelineContent.d.ts +6 -0
  225. package/dist/lib/components/Timeline/TimelineContent.js +34 -0
  226. package/dist/lib/components/Timeline/TimelineDescription.d.ts +6 -0
  227. package/dist/lib/components/Timeline/TimelineDescription.js +34 -0
  228. package/dist/lib/components/Timeline/TimelineHeader.d.ts +6 -0
  229. package/dist/lib/components/Timeline/TimelineHeader.js +34 -0
  230. package/dist/lib/components/Timeline/TimelineIcon.d.ts +8 -0
  231. package/dist/lib/components/Timeline/TimelineIcon.js +42 -0
  232. package/dist/lib/components/Timeline/TimelineItem.d.ts +6 -0
  233. package/dist/lib/components/Timeline/TimelineItem.js +34 -0
  234. package/dist/lib/components/Timeline/TimelineRoot.d.ts +11 -0
  235. package/dist/lib/components/Timeline/TimelineRoot.js +53 -0
  236. package/dist/lib/components/Timeline/TimelineTime.d.ts +6 -0
  237. package/dist/lib/components/Timeline/TimelineTime.js +34 -0
  238. package/dist/lib/components/Timeline/TimelineTitle.d.ts +6 -0
  239. package/dist/lib/components/Timeline/TimelineTitle.js +34 -0
  240. package/dist/lib/components/Timeline/index.d.ts +13 -0
  241. package/dist/lib/components/Timeline/index.js +21 -0
  242. package/dist/lib/components/Toast/ToastActionButton.d.ts +1 -1
  243. package/dist/lib/components/Toast/ToastActionButton.js +3 -2
  244. package/dist/lib/components/Toast/ToastDescription.js +1 -0
  245. package/dist/lib/components/Toast/ToastRoot.d.ts +1 -1
  246. package/dist/lib/components/Toast/ToastRoot.js +11 -3
  247. package/dist/lib/components/Toast/ToastTitle.js +1 -0
  248. package/dist/lib/components/Toast/index.d.ts +1 -0
  249. package/dist/lib/components/Toggle/ToggleWithText.d.ts +1 -1
  250. package/dist/lib/components/Toggle/ToggleWithText.js +13 -2
  251. package/dist/lib/components/Toggle/index.d.ts +2 -2
  252. package/dist/lib/components/Toggle/index.js +14 -3
  253. package/dist/lib/components/ToggleGroup/ToggleGroupItem.js +2 -1
  254. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +13 -3
  255. package/dist/lib/components/ToggleGroup/index.d.ts +1 -0
  256. package/dist/lib/components/ToggleSwitch/index.d.ts +2 -2
  257. package/dist/lib/components/ToggleSwitch/index.js +13 -2
  258. package/dist/lib/components/Tooltip/index.d.ts +2 -2
  259. package/dist/lib/components/Tooltip/index.js +14 -9
  260. package/dist/lib/components/index.d.ts +6 -0
  261. package/dist/lib/components/index.js +7 -0
  262. package/dist/lib/constants.d.ts +6 -7
  263. package/dist/lib/constants.js +19 -31
  264. package/dist/lib/dist/lib/Typography/Header/index.mjs +3 -0
  265. package/dist/lib/dist/lib/Typography/Header/index.mjs.map +1 -0
  266. package/dist/lib/dist/lib/Typography/Text/index.mjs +3 -0
  267. package/dist/lib/dist/lib/Typography/Text/index.mjs.map +1 -0
  268. package/dist/lib/dist/lib/color/alpha.mjs.map +1 -0
  269. package/dist/lib/dist/lib/color/constants.mjs +2 -0
  270. package/dist/lib/dist/lib/color/constants.mjs.map +1 -0
  271. package/dist/lib/dist/lib/color/light.mjs.map +1 -0
  272. package/dist/lib/dist/lib/components/Accordion/index.mjs +3 -0
  273. package/dist/lib/dist/lib/components/Accordion/index.mjs.map +1 -0
  274. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogAction.mjs +3 -0
  275. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogAction.mjs.map +1 -0
  276. package/dist/lib/{components → dist/lib/components}/AlertDialog/AlertDialogCancel.mjs +1 -0
  277. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogCancel.mjs.map +1 -0
  278. package/dist/lib/{components → dist/lib/components}/AlertDialog/AlertDialogContent.mjs +2 -1
  279. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogContent.mjs.map +1 -0
  280. package/dist/lib/{components → dist/lib/components}/AlertDialog/AlertDialogDescription.mjs +1 -0
  281. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogDescription.mjs.map +1 -0
  282. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogRoot.mjs +3 -0
  283. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogRoot.mjs.map +1 -0
  284. package/dist/lib/{components → dist/lib/components}/AlertDialog/AlertDialogTitle.mjs +1 -0
  285. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogTitle.mjs.map +1 -0
  286. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs +3 -0
  287. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs.map +1 -0
  288. package/dist/lib/dist/lib/components/AlertDialog/index.mjs.map +1 -0
  289. package/dist/lib/dist/lib/components/AspectRatio/index.mjs +3 -0
  290. package/dist/lib/dist/lib/components/AspectRatio/index.mjs.map +1 -0
  291. package/dist/lib/dist/lib/components/Avatar/index.mjs +3 -0
  292. package/dist/lib/dist/lib/components/Avatar/index.mjs.map +1 -0
  293. package/dist/lib/dist/lib/components/Badge/index.mjs +3 -0
  294. package/dist/lib/dist/lib/components/Badge/index.mjs.map +1 -0
  295. package/dist/lib/dist/lib/components/BarChart/index.mjs.map +1 -0
  296. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs +2 -0
  297. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +1 -0
  298. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs +2 -0
  299. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +1 -0
  300. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs +2 -0
  301. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -0
  302. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbList.mjs +2 -0
  303. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbList.mjs.map +1 -0
  304. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs +2 -0
  305. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -0
  306. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbRoot.mjs +3 -0
  307. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbRoot.mjs.map +1 -0
  308. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs +2 -0
  309. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +1 -0
  310. package/dist/lib/dist/lib/components/Breadcrumb/index.mjs +2 -0
  311. package/dist/lib/dist/lib/components/Breadcrumb/index.mjs.map +1 -0
  312. package/dist/lib/dist/lib/components/BubbleChart/index.mjs.map +1 -0
  313. package/dist/lib/dist/lib/components/Button/index.mjs +3 -0
  314. package/dist/lib/dist/lib/components/Button/index.mjs.map +1 -0
  315. package/dist/lib/{components → dist/lib/components}/Callout/CalloutIcon.mjs +1 -0
  316. package/dist/lib/dist/lib/components/Callout/CalloutIcon.mjs.map +1 -0
  317. package/dist/lib/dist/lib/components/Callout/CalloutRoot.mjs +3 -0
  318. package/dist/lib/dist/lib/components/Callout/CalloutRoot.mjs.map +1 -0
  319. package/dist/lib/{components → dist/lib/components}/Callout/CalloutText.mjs +1 -0
  320. package/dist/lib/dist/lib/components/Callout/CalloutText.mjs.map +1 -0
  321. package/dist/lib/dist/lib/components/Callout/index.mjs.map +1 -0
  322. package/dist/lib/dist/lib/components/Card/index.mjs +3 -0
  323. package/dist/lib/dist/lib/components/Card/index.mjs.map +1 -0
  324. package/dist/lib/dist/lib/components/Checkbox/index.mjs +3 -0
  325. package/dist/lib/dist/lib/components/Checkbox/index.mjs.map +1 -0
  326. package/dist/lib/dist/lib/components/CheckboxCard/index.mjs +3 -0
  327. package/dist/lib/dist/lib/components/CheckboxCard/index.mjs.map +1 -0
  328. package/dist/lib/{components → dist/lib/components}/CheckboxGroup/CheckboxGroupItem.mjs +1 -0
  329. package/dist/lib/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs.map +1 -0
  330. package/dist/lib/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +3 -0
  331. package/dist/lib/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +1 -0
  332. package/dist/lib/dist/lib/components/CheckboxGroup/index.mjs.map +1 -0
  333. package/dist/lib/{components → dist/lib/components}/ContextMenu/ContextMenuCheckboxItem.mjs +2 -1
  334. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs.map +1 -0
  335. package/dist/lib/{components → dist/lib/components}/ContextMenu/ContextMenuContent.mjs +1 -0
  336. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuContent.mjs.map +1 -0
  337. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -0
  338. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuItem.mjs +3 -0
  339. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuItem.mjs.map +1 -0
  340. package/dist/lib/{components → dist/lib/components}/ContextMenu/ContextMenuItemIndicator.mjs +1 -0
  341. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs.map +1 -0
  342. package/dist/lib/{components → dist/lib/components}/ContextMenu/ContextMenuLabel.mjs +1 -0
  343. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuLabel.mjs.map +1 -0
  344. package/dist/lib/{components → dist/lib/components}/ContextMenu/ContextMenuRadioGroup.mjs +1 -0
  345. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs.map +1 -0
  346. package/dist/lib/{components → dist/lib/components}/ContextMenu/ContextMenuRadioItem.mjs +2 -1
  347. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs.map +1 -0
  348. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuRoot.mjs +3 -0
  349. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuRoot.mjs.map +1 -0
  350. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -0
  351. package/dist/lib/{components → dist/lib/components}/ContextMenu/ContextMenuSubContent.mjs +1 -0
  352. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs.map +1 -0
  353. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs +3 -0
  354. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs.map +1 -0
  355. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -0
  356. package/dist/lib/dist/lib/components/ContextMenu/index.mjs.map +1 -0
  357. package/dist/lib/{components → dist/lib/components}/DataList/DataListItem.mjs +1 -0
  358. package/dist/lib/dist/lib/components/DataList/DataListItem.mjs.map +1 -0
  359. package/dist/lib/{components → dist/lib/components}/DataList/DataListLabel.mjs +1 -0
  360. package/dist/lib/dist/lib/components/DataList/DataListLabel.mjs.map +1 -0
  361. package/dist/lib/dist/lib/components/DataList/DataListRoot.mjs +3 -0
  362. package/dist/lib/dist/lib/components/DataList/DataListRoot.mjs.map +1 -0
  363. package/dist/lib/{components → dist/lib/components}/DataList/DataListValue.mjs +1 -0
  364. package/dist/lib/dist/lib/components/DataList/DataListValue.mjs.map +1 -0
  365. package/dist/lib/dist/lib/components/DataList/index.mjs.map +1 -0
  366. package/dist/lib/dist/lib/components/Dialog/DialogAction.mjs +3 -0
  367. package/dist/lib/dist/lib/components/Dialog/DialogAction.mjs.map +1 -0
  368. package/dist/lib/{components → dist/lib/components}/Dialog/DialogCancel.mjs +1 -0
  369. package/dist/lib/dist/lib/components/Dialog/DialogCancel.mjs.map +1 -0
  370. package/dist/lib/{components → dist/lib/components}/Dialog/DialogContent.mjs +1 -0
  371. package/dist/lib/dist/lib/components/Dialog/DialogContent.mjs.map +1 -0
  372. package/dist/lib/{components → dist/lib/components}/Dialog/DialogDescription.mjs +2 -1
  373. package/dist/lib/dist/lib/components/Dialog/DialogDescription.mjs.map +1 -0
  374. package/dist/lib/dist/lib/components/Dialog/DialogRoot.mjs +3 -0
  375. package/dist/lib/dist/lib/components/Dialog/DialogRoot.mjs.map +1 -0
  376. package/dist/lib/{components → dist/lib/components}/Dialog/DialogSlot.mjs +1 -0
  377. package/dist/lib/dist/lib/components/Dialog/DialogSlot.mjs.map +1 -0
  378. package/dist/lib/{components → dist/lib/components}/Dialog/DialogTitle.mjs +1 -0
  379. package/dist/lib/dist/lib/components/Dialog/DialogTitle.mjs.map +1 -0
  380. package/dist/lib/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -0
  381. package/dist/lib/dist/lib/components/Dialog/index.mjs.map +1 -0
  382. package/dist/lib/dist/lib/components/DoughnutChart/index.mjs.map +1 -0
  383. package/dist/lib/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -0
  384. package/dist/lib/{components → dist/lib/components}/DropdownMenu/DropdonMenuSubContent.mjs +1 -0
  385. package/dist/lib/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs.map +1 -0
  386. package/dist/lib/{components → dist/lib/components}/DropdownMenu/DropdownMenuCheckboxItem.mjs +2 -1
  387. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs.map +1 -0
  388. package/dist/lib/{components → dist/lib/components}/DropdownMenu/DropdownMenuContent.mjs +1 -0
  389. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs.map +1 -0
  390. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs +3 -0
  391. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -0
  392. package/dist/lib/{components → dist/lib/components}/DropdownMenu/DropdownMenuItemIndicator.mjs +1 -0
  393. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs.map +1 -0
  394. package/dist/lib/{components → dist/lib/components}/DropdownMenu/DropdownMenuLable.mjs +1 -0
  395. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs.map +1 -0
  396. package/dist/lib/{components → dist/lib/components}/DropdownMenu/DropdownMenuRadioItem.mjs +2 -1
  397. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs.map +1 -0
  398. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs +3 -0
  399. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs.map +1 -0
  400. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -0
  401. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -0
  402. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs +3 -0
  403. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs.map +1 -0
  404. package/dist/lib/{components → dist/lib/components}/DropdownMenu/DropdownMenuTrigger.mjs +1 -0
  405. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs.map +1 -0
  406. package/dist/lib/dist/lib/components/DropdownMenu/index.mjs.map +1 -0
  407. package/dist/lib/dist/lib/components/Editor/index.mjs +3 -0
  408. package/dist/lib/dist/lib/components/Editor/index.mjs.map +1 -0
  409. package/dist/lib/dist/lib/components/Footer/index.mjs +3 -0
  410. package/dist/lib/dist/lib/components/Footer/index.mjs.map +1 -0
  411. package/dist/lib/dist/lib/components/Gnb/GnbInfo.mjs +3 -0
  412. package/dist/lib/dist/lib/components/Gnb/GnbInfo.mjs.map +1 -0
  413. package/dist/lib/dist/lib/components/Gnb/GnbLogo.mjs +2 -0
  414. package/dist/lib/dist/lib/components/Gnb/GnbLogo.mjs.map +1 -0
  415. package/dist/lib/dist/lib/components/Gnb/GnbMenu.mjs +3 -0
  416. package/dist/lib/dist/lib/components/Gnb/GnbMenu.mjs.map +1 -0
  417. package/dist/lib/dist/lib/components/Gnb/GnbRoot.mjs +3 -0
  418. package/dist/lib/dist/lib/components/Gnb/GnbRoot.mjs.map +1 -0
  419. package/dist/lib/dist/lib/components/Gnb/index.mjs +2 -0
  420. package/dist/lib/dist/lib/components/Gnb/index.mjs.map +1 -0
  421. package/dist/lib/dist/lib/components/Grid/Pagination.mjs +2 -0
  422. package/dist/lib/dist/lib/components/Grid/Pagination.mjs.map +1 -0
  423. package/dist/lib/dist/lib/components/Grid/index.mjs +3 -0
  424. package/dist/lib/dist/lib/components/Grid/index.mjs.map +1 -0
  425. package/dist/lib/dist/lib/components/Grid/useGrid.mjs +3 -0
  426. package/dist/lib/dist/lib/components/Grid/useGrid.mjs.map +1 -0
  427. package/dist/lib/{components → dist/lib/components}/HoverCard/HoverCardContent.mjs +1 -0
  428. package/dist/lib/dist/lib/components/HoverCard/HoverCardContent.mjs.map +1 -0
  429. package/dist/lib/dist/lib/components/HoverCard/HoverCardRoot.mjs +3 -0
  430. package/dist/lib/dist/lib/components/HoverCard/HoverCardRoot.mjs.map +1 -0
  431. package/dist/lib/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -0
  432. package/dist/lib/dist/lib/components/HoverCard/index.mjs.map +1 -0
  433. package/dist/lib/dist/lib/components/IconButton/index.mjs +3 -0
  434. package/dist/lib/dist/lib/components/IconButton/index.mjs.map +1 -0
  435. package/dist/lib/dist/lib/components/Inset/index.mjs +3 -0
  436. package/dist/lib/dist/lib/components/Inset/index.mjs.map +1 -0
  437. package/dist/lib/dist/lib/components/Label/index.mjs +3 -0
  438. package/dist/lib/dist/lib/components/Label/index.mjs.map +1 -0
  439. package/dist/lib/dist/lib/components/LineChart/index.mjs.map +1 -0
  440. package/dist/lib/dist/lib/components/Menubar/MenubarCheckboxItem.mjs +3 -0
  441. package/dist/lib/dist/lib/components/Menubar/MenubarCheckboxItem.mjs.map +1 -0
  442. package/dist/lib/{components → dist/lib/components}/Menubar/MenubarContent.mjs +1 -0
  443. package/dist/lib/dist/lib/components/Menubar/MenubarContent.mjs.map +1 -0
  444. package/dist/lib/dist/lib/components/Menubar/MenubarItem.mjs +3 -0
  445. package/dist/lib/dist/lib/components/Menubar/MenubarItem.mjs.map +1 -0
  446. package/dist/lib/{components → dist/lib/components}/Menubar/MenubarItemIndicator.mjs +1 -0
  447. package/dist/lib/dist/lib/components/Menubar/MenubarItemIndicator.mjs.map +1 -0
  448. package/dist/lib/dist/lib/components/Menubar/MenubarMenu.mjs.map +1 -0
  449. package/dist/lib/{components → dist/lib/components}/Menubar/MenubarRadioGroup.mjs +1 -0
  450. package/dist/lib/dist/lib/components/Menubar/MenubarRadioGroup.mjs.map +1 -0
  451. package/dist/lib/dist/lib/components/Menubar/MenubarRadioItem.mjs +3 -0
  452. package/dist/lib/dist/lib/components/Menubar/MenubarRadioItem.mjs.map +1 -0
  453. package/dist/lib/dist/lib/components/Menubar/MenubarRoot.mjs +3 -0
  454. package/dist/lib/dist/lib/components/Menubar/MenubarRoot.mjs.map +1 -0
  455. package/dist/lib/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -0
  456. package/dist/lib/dist/lib/components/Menubar/MenubarSub.mjs.map +1 -0
  457. package/dist/lib/{components → dist/lib/components}/Menubar/MenubarSubContent.mjs +1 -0
  458. package/dist/lib/dist/lib/components/Menubar/MenubarSubContent.mjs.map +1 -0
  459. package/dist/lib/dist/lib/components/Menubar/MenubarSubTrigger.mjs +3 -0
  460. package/dist/lib/dist/lib/components/Menubar/MenubarSubTrigger.mjs.map +1 -0
  461. package/dist/lib/{components → dist/lib/components}/Menubar/MenubarTrigger.mjs +2 -1
  462. package/dist/lib/dist/lib/components/Menubar/MenubarTrigger.mjs.map +1 -0
  463. package/dist/lib/dist/lib/components/Menubar/index.mjs.map +1 -0
  464. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs +3 -0
  465. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs.map +1 -0
  466. package/dist/lib/{components → dist/lib/components}/NavigationMenu/NavigationMenuIndicator.mjs +1 -1
  467. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -0
  468. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -0
  469. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs +3 -0
  470. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs.map +1 -0
  471. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuList.mjs +3 -0
  472. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuList.mjs.map +1 -0
  473. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs +3 -0
  474. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs.map +1 -0
  475. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs +3 -0
  476. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs.map +1 -0
  477. package/dist/lib/{components → dist/lib/components}/NavigationMenu/NavigationMenuViewport.mjs +2 -1
  478. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs.map +1 -0
  479. package/dist/lib/dist/lib/components/NavigationMenu/index.mjs.map +1 -0
  480. package/dist/lib/dist/lib/components/PieChart/index.mjs.map +1 -0
  481. package/dist/lib/{components → dist/lib/components}/Popover/PopoverClose.mjs +1 -0
  482. package/dist/lib/dist/lib/components/Popover/PopoverClose.mjs.map +1 -0
  483. package/dist/lib/{components → dist/lib/components}/Popover/PopoverContent.mjs +1 -0
  484. package/dist/lib/dist/lib/components/Popover/PopoverContent.mjs.map +1 -0
  485. package/dist/lib/dist/lib/components/Popover/PopoverRoot.mjs +3 -0
  486. package/dist/lib/dist/lib/components/Popover/PopoverRoot.mjs.map +1 -0
  487. package/dist/lib/dist/lib/components/Popover/PopoverTrigger.mjs.map +1 -0
  488. package/dist/lib/dist/lib/components/Popover/index.mjs.map +1 -0
  489. package/dist/lib/dist/lib/components/Progress/index.mjs +3 -0
  490. package/dist/lib/dist/lib/components/Progress/index.mjs.map +1 -0
  491. package/dist/lib/dist/lib/components/RadarChart/index.mjs.map +1 -0
  492. package/dist/lib/dist/lib/components/Radio/index.mjs +3 -0
  493. package/dist/lib/dist/lib/components/Radio/index.mjs.map +1 -0
  494. package/dist/lib/{components → dist/lib/components}/RadioCards/RadioCardsItem.mjs +1 -0
  495. package/dist/lib/dist/lib/components/RadioCards/RadioCardsItem.mjs.map +1 -0
  496. package/dist/lib/dist/lib/components/RadioCards/RadioCardsRoot.mjs +3 -0
  497. package/dist/lib/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +1 -0
  498. package/dist/lib/dist/lib/components/RadioCards/index.mjs.map +1 -0
  499. package/dist/lib/{components → dist/lib/components}/RadioGroup/RadioGroupItem.mjs +1 -0
  500. package/dist/lib/dist/lib/components/RadioGroup/RadioGroupItem.mjs.map +1 -0
  501. package/dist/lib/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +3 -0
  502. package/dist/lib/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +1 -0
  503. package/dist/lib/dist/lib/components/RadioGroup/index.mjs.map +1 -0
  504. package/dist/lib/dist/lib/components/ScrollArea/index.mjs +3 -0
  505. package/dist/lib/dist/lib/components/ScrollArea/index.mjs.map +1 -0
  506. package/dist/lib/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -0
  507. package/dist/lib/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +3 -0
  508. package/dist/lib/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +1 -0
  509. package/dist/lib/dist/lib/components/SegmentedControl/index.mjs.map +1 -0
  510. package/dist/lib/dist/lib/components/Select/index.mjs +3 -0
  511. package/dist/lib/dist/lib/components/Select/index.mjs.map +1 -0
  512. package/dist/lib/dist/lib/components/Separator/index.mjs +3 -0
  513. package/dist/lib/dist/lib/components/Separator/index.mjs.map +1 -0
  514. package/dist/lib/dist/lib/components/Skeleton/index.mjs +3 -0
  515. package/dist/lib/dist/lib/components/Skeleton/index.mjs.map +1 -0
  516. package/dist/lib/dist/lib/components/Slider/index.mjs +3 -0
  517. package/dist/lib/dist/lib/components/Slider/index.mjs.map +1 -0
  518. package/dist/lib/dist/lib/components/Spinner/index.mjs +3 -0
  519. package/dist/lib/dist/lib/components/Spinner/index.mjs.map +1 -0
  520. package/dist/lib/dist/lib/components/TabNav/index.mjs +3 -0
  521. package/dist/lib/dist/lib/components/TabNav/index.mjs.map +1 -0
  522. package/dist/lib/dist/lib/components/Table/index.mjs +3 -0
  523. package/dist/lib/dist/lib/components/Table/index.mjs.map +1 -0
  524. package/dist/lib/dist/lib/components/Tabs/index.mjs +3 -0
  525. package/dist/lib/dist/lib/components/Tabs/index.mjs.map +1 -0
  526. package/dist/lib/dist/lib/components/TextArea/index.mjs +3 -0
  527. package/dist/lib/dist/lib/components/TextArea/index.mjs.map +1 -0
  528. package/dist/lib/dist/lib/components/TextField/index.mjs +3 -0
  529. package/dist/lib/dist/lib/components/TextField/index.mjs.map +1 -0
  530. package/dist/lib/dist/lib/components/Toast/ToastActionButton.mjs +3 -0
  531. package/dist/lib/dist/lib/components/Toast/ToastActionButton.mjs.map +1 -0
  532. package/dist/lib/{components → dist/lib/components}/Toast/ToastDescription.mjs +1 -0
  533. package/dist/lib/dist/lib/components/Toast/ToastDescription.mjs.map +1 -0
  534. package/dist/lib/dist/lib/components/Toast/ToastRoot.mjs +3 -0
  535. package/dist/lib/dist/lib/components/Toast/ToastRoot.mjs.map +1 -0
  536. package/dist/lib/{components → dist/lib/components}/Toast/ToastTitle.mjs +1 -0
  537. package/dist/lib/dist/lib/components/Toast/ToastTitle.mjs.map +1 -0
  538. package/dist/lib/dist/lib/components/Toast/index.mjs.map +1 -0
  539. package/dist/lib/dist/lib/components/Toggle/ToggleWithText.mjs +3 -0
  540. package/dist/lib/dist/lib/components/Toggle/ToggleWithText.mjs.map +1 -0
  541. package/dist/lib/dist/lib/components/Toggle/index.mjs +3 -0
  542. package/dist/lib/dist/lib/components/Toggle/index.mjs.map +1 -0
  543. package/dist/lib/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs +3 -0
  544. package/dist/lib/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs.map +1 -0
  545. package/dist/lib/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +3 -0
  546. package/dist/lib/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +1 -0
  547. package/dist/lib/dist/lib/components/ToggleGroup/index.mjs.map +1 -0
  548. package/dist/lib/dist/lib/components/ToggleSwitch/index.mjs +3 -0
  549. package/dist/lib/dist/lib/components/ToggleSwitch/index.mjs.map +1 -0
  550. package/dist/lib/dist/lib/components/Tooltip/index.mjs +3 -0
  551. package/dist/lib/dist/lib/components/Tooltip/index.mjs.map +1 -0
  552. package/dist/lib/dist/lib/constants.mjs +2 -0
  553. package/dist/lib/dist/lib/constants.mjs.map +1 -0
  554. package/dist/lib/dist/lib/index.mjs +2 -0
  555. package/dist/lib/dist/lib/index.mjs.map +1 -0
  556. package/dist/lib/dist/lib/theme/ThemeProvider.mjs +3 -0
  557. package/dist/lib/dist/lib/theme/ThemeProvider.mjs.map +1 -0
  558. package/dist/lib/{utils → dist/lib/utils}/useDarkMode.mjs +1 -0
  559. package/dist/lib/dist/lib/utils/useDarkMode.mjs.map +1 -0
  560. package/dist/lib/dist/lib/utils/utils.mjs.map +1 -0
  561. package/dist/lib/index.d.ts +1 -0
  562. package/dist/lib/index.js +1 -0
  563. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/ScriptLoader2.mjs +2 -0
  564. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/ScriptLoader2.mjs.map +1 -0
  565. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/TinyMCE.mjs +2 -0
  566. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/TinyMCE.mjs.map +1 -0
  567. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/Utils.mjs +2 -0
  568. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/Utils.mjs.map +1 -0
  569. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/Editor.mjs +2 -0
  570. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/Editor.mjs.map +1 -0
  571. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/EditorPropTypes.mjs +2 -0
  572. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/EditorPropTypes.mjs.map +1 -0
  573. package/dist/lib/node_modules/marked/lib/marked.esm.mjs +2 -0
  574. package/dist/lib/node_modules/marked/lib/marked.esm.mjs.map +1 -0
  575. package/dist/lib/node_modules/object-assign/index.mjs +7 -0
  576. package/dist/lib/node_modules/object-assign/index.mjs.map +1 -0
  577. package/dist/lib/node_modules/prop-types/checkPropTypes.mjs +2 -0
  578. package/dist/lib/node_modules/prop-types/checkPropTypes.mjs.map +1 -0
  579. package/dist/lib/node_modules/prop-types/factoryWithThrowingShims.mjs +2 -0
  580. package/dist/lib/node_modules/prop-types/factoryWithThrowingShims.mjs.map +1 -0
  581. package/dist/lib/node_modules/prop-types/factoryWithTypeCheckers.mjs +2 -0
  582. package/dist/lib/node_modules/prop-types/factoryWithTypeCheckers.mjs.map +1 -0
  583. package/dist/lib/node_modules/prop-types/index.mjs +2 -0
  584. package/dist/lib/node_modules/prop-types/index.mjs.map +1 -0
  585. package/dist/lib/node_modules/prop-types/lib/ReactPropTypesSecret.mjs +2 -0
  586. package/dist/lib/node_modules/prop-types/lib/ReactPropTypesSecret.mjs.map +1 -0
  587. package/dist/lib/node_modules/prop-types/lib/has.mjs +2 -0
  588. package/dist/lib/node_modules/prop-types/lib/has.mjs.map +1 -0
  589. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.mjs +10 -0
  590. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.mjs.map +1 -0
  591. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.mjs +10 -0
  592. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.mjs.map +1 -0
  593. package/dist/lib/node_modules/prop-types/node_modules/react-is/index.mjs +2 -0
  594. package/dist/lib/node_modules/prop-types/node_modules/react-is/index.mjs.map +1 -0
  595. package/dist/lib/theme/ThemeProvider.d.ts +16 -0
  596. package/dist/lib/theme/ThemeProvider.js +29 -0
  597. package/dist/lib/theme/index.d.ts +2 -0
  598. package/dist/lib/theme/index.js +2 -0
  599. package/dist/lib/tinymce/CHANGELOG.md +3453 -0
  600. package/dist/lib/tinymce/README.md +73 -0
  601. package/dist/lib/tinymce/bower.json +27 -0
  602. package/dist/lib/tinymce/composer.json +52 -0
  603. package/dist/lib/tinymce/icons/default/icons.js +194 -0
  604. package/dist/lib/tinymce/icons/default/icons.min.js +1 -0
  605. package/dist/lib/tinymce/icons/default/index.js +7 -0
  606. package/dist/lib/tinymce/license.txt +21 -0
  607. package/dist/lib/tinymce/models/dom/index.js +7 -0
  608. package/dist/lib/tinymce/models/dom/model.js +8040 -0
  609. package/dist/lib/tinymce/models/dom/model.min.js +4 -0
  610. package/dist/lib/tinymce/package.json +32 -0
  611. package/dist/lib/tinymce/plugins/advlist/index.js +7 -0
  612. package/dist/lib/tinymce/plugins/advlist/plugin.js +259 -0
  613. package/dist/lib/tinymce/plugins/advlist/plugin.min.js +4 -0
  614. package/dist/lib/tinymce/plugins/autolink/index.js +7 -0
  615. package/dist/lib/tinymce/plugins/autolink/plugin.js +228 -0
  616. package/dist/lib/tinymce/plugins/autolink/plugin.min.js +4 -0
  617. package/dist/lib/tinymce/plugins/code/index.js +7 -0
  618. package/dist/lib/tinymce/plugins/code/plugin.js +85 -0
  619. package/dist/lib/tinymce/plugins/code/plugin.min.js +4 -0
  620. package/dist/lib/tinymce/plugins/codesample/index.js +7 -0
  621. package/dist/lib/tinymce/plugins/codesample/plugin.js +2463 -0
  622. package/dist/lib/tinymce/plugins/codesample/plugin.min.js +4 -0
  623. package/dist/lib/tinymce/plugins/image/index.js +7 -0
  624. package/dist/lib/tinymce/plugins/image/plugin.js +1505 -0
  625. package/dist/lib/tinymce/plugins/image/plugin.min.js +4 -0
  626. package/dist/lib/tinymce/plugins/link/index.js +7 -0
  627. package/dist/lib/tinymce/plugins/link/plugin.js +1242 -0
  628. package/dist/lib/tinymce/plugins/link/plugin.min.js +4 -0
  629. package/dist/lib/tinymce/plugins/lists/index.js +7 -0
  630. package/dist/lib/tinymce/plugins/lists/plugin.js +2172 -0
  631. package/dist/lib/tinymce/plugins/lists/plugin.min.js +4 -0
  632. package/dist/lib/tinymce/plugins/table/index.js +7 -0
  633. package/dist/lib/tinymce/plugins/table/plugin.js +3462 -0
  634. package/dist/lib/tinymce/plugins/table/plugin.min.js +4 -0
  635. package/dist/lib/tinymce/skins/content/default/content.css +61 -0
  636. package/dist/lib/tinymce/skins/content/default/content.js +2 -0
  637. package/dist/lib/tinymce/skins/content/default/content.min.css +1 -0
  638. package/dist/lib/tinymce/skins/ui/oxide/content.css +785 -0
  639. package/dist/lib/tinymce/skins/ui/oxide/content.inline.css +779 -0
  640. package/dist/lib/tinymce/skins/ui/oxide/content.inline.js +2 -0
  641. package/dist/lib/tinymce/skins/ui/oxide/content.inline.min.css +1 -0
  642. package/dist/lib/tinymce/skins/ui/oxide/content.js +2 -0
  643. package/dist/lib/tinymce/skins/ui/oxide/content.min.css +1 -0
  644. package/dist/lib/tinymce/skins/ui/oxide/skin.css +3763 -0
  645. package/dist/lib/tinymce/skins/ui/oxide/skin.js +2 -0
  646. package/dist/lib/tinymce/skins/ui/oxide/skin.min.css +1 -0
  647. package/dist/lib/tinymce/skins/ui/oxide/skin.shadowdom.css +30 -0
  648. package/dist/lib/tinymce/skins/ui/oxide/skin.shadowdom.js +2 -0
  649. package/dist/lib/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -0
  650. package/dist/lib/tinymce/skins/ui/oxide-dark/content.css +766 -0
  651. package/dist/lib/tinymce/skins/ui/oxide-dark/content.inline.css +779 -0
  652. package/dist/lib/tinymce/skins/ui/oxide-dark/content.inline.js +2 -0
  653. package/dist/lib/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -0
  654. package/dist/lib/tinymce/skins/ui/oxide-dark/content.js +2 -0
  655. package/dist/lib/tinymce/skins/ui/oxide-dark/content.min.css +1 -0
  656. package/dist/lib/tinymce/skins/ui/oxide-dark/skin.css +3766 -0
  657. package/dist/lib/tinymce/skins/ui/oxide-dark/skin.js +2 -0
  658. package/dist/lib/tinymce/skins/ui/oxide-dark/skin.min.css +1 -0
  659. package/dist/lib/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +30 -0
  660. package/dist/lib/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
  661. package/dist/lib/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
  662. package/dist/lib/tinymce/themes/silver/index.js +7 -0
  663. package/dist/lib/tinymce/themes/silver/theme.js +30775 -0
  664. package/dist/lib/tinymce/themes/silver/theme.min.js +384 -0
  665. package/dist/lib/tinymce/tinymce.d.ts +3238 -0
  666. package/dist/lib/tinymce/tinymce.js +31779 -0
  667. package/dist/lib/tinymce/tinymce.min.js +384 -0
  668. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  669. package/dist/lib/types.d.ts +9 -0
  670. package/dist/lib/utils/classPrefixes.d.ts +3 -0
  671. package/dist/lib/utils/classPrefixes.js +26 -0
  672. package/dist/lib/utils/useDarkMode.js +1 -0
  673. package/dist/tailwind.config.js +14 -37
  674. package/dist/tsconfig.tsbuildinfo +1 -1
  675. package/package.json +146 -139
  676. package/dist/lib/Typography/Header/index.mjs +0 -2
  677. package/dist/lib/Typography/Header/index.mjs.map +0 -1
  678. package/dist/lib/Typography/Text/index.mjs +0 -2
  679. package/dist/lib/Typography/Text/index.mjs.map +0 -1
  680. package/dist/lib/color/alpha.mjs.map +0 -1
  681. package/dist/lib/color/constants.mjs +0 -2
  682. package/dist/lib/color/constants.mjs.map +0 -1
  683. package/dist/lib/color/light.mjs.map +0 -1
  684. package/dist/lib/components/Accordion/index.mjs +0 -2
  685. package/dist/lib/components/Accordion/index.mjs.map +0 -1
  686. package/dist/lib/components/AlertDialog/AlertDialogAction.mjs +0 -2
  687. package/dist/lib/components/AlertDialog/AlertDialogAction.mjs.map +0 -1
  688. package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs.map +0 -1
  689. package/dist/lib/components/AlertDialog/AlertDialogContent.mjs.map +0 -1
  690. package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs.map +0 -1
  691. package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs +0 -2
  692. package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs.map +0 -1
  693. package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs.map +0 -1
  694. package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs +0 -2
  695. package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs.map +0 -1
  696. package/dist/lib/components/AlertDialog/index.mjs.map +0 -1
  697. package/dist/lib/components/AspectRatio/index.mjs +0 -2
  698. package/dist/lib/components/AspectRatio/index.mjs.map +0 -1
  699. package/dist/lib/components/Avatar/index.mjs +0 -2
  700. package/dist/lib/components/Avatar/index.mjs.map +0 -1
  701. package/dist/lib/components/Badge/index.mjs +0 -2
  702. package/dist/lib/components/Badge/index.mjs.map +0 -1
  703. package/dist/lib/components/BarChart/index.mjs.map +0 -1
  704. package/dist/lib/components/BubbleChart/index.mjs.map +0 -1
  705. package/dist/lib/components/Button/index.mjs +0 -2
  706. package/dist/lib/components/Button/index.mjs.map +0 -1
  707. package/dist/lib/components/Callout/CalloutIcon.mjs.map +0 -1
  708. package/dist/lib/components/Callout/CalloutRoot.mjs +0 -2
  709. package/dist/lib/components/Callout/CalloutRoot.mjs.map +0 -1
  710. package/dist/lib/components/Callout/CalloutText.mjs.map +0 -1
  711. package/dist/lib/components/Callout/index.mjs.map +0 -1
  712. package/dist/lib/components/Card/index.mjs +0 -2
  713. package/dist/lib/components/Card/index.mjs.map +0 -1
  714. package/dist/lib/components/Checkbox/index.mjs +0 -2
  715. package/dist/lib/components/Checkbox/index.mjs.map +0 -1
  716. package/dist/lib/components/CheckboxCard/index.mjs +0 -2
  717. package/dist/lib/components/CheckboxCard/index.mjs.map +0 -1
  718. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs.map +0 -1
  719. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +0 -2
  720. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +0 -1
  721. package/dist/lib/components/CheckboxGroup/index.mjs.map +0 -1
  722. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs.map +0 -1
  723. package/dist/lib/components/ContextMenu/ContextMenuContent.mjs.map +0 -1
  724. package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +0 -1
  725. package/dist/lib/components/ContextMenu/ContextMenuItem.mjs +0 -2
  726. package/dist/lib/components/ContextMenu/ContextMenuItem.mjs.map +0 -1
  727. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs.map +0 -1
  728. package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs.map +0 -1
  729. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs.map +0 -1
  730. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs.map +0 -1
  731. package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs +0 -2
  732. package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs.map +0 -1
  733. package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +0 -1
  734. package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs.map +0 -1
  735. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs +0 -2
  736. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs.map +0 -1
  737. package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +0 -1
  738. package/dist/lib/components/ContextMenu/index.mjs.map +0 -1
  739. package/dist/lib/components/DataList/DataListItem.mjs.map +0 -1
  740. package/dist/lib/components/DataList/DataListLabel.mjs.map +0 -1
  741. package/dist/lib/components/DataList/DataListRoot.mjs +0 -2
  742. package/dist/lib/components/DataList/DataListRoot.mjs.map +0 -1
  743. package/dist/lib/components/DataList/DataListValue.mjs.map +0 -1
  744. package/dist/lib/components/DataList/index.mjs.map +0 -1
  745. package/dist/lib/components/Dialog/DialogAction.mjs +0 -2
  746. package/dist/lib/components/Dialog/DialogAction.mjs.map +0 -1
  747. package/dist/lib/components/Dialog/DialogCancel.mjs.map +0 -1
  748. package/dist/lib/components/Dialog/DialogContent.mjs.map +0 -1
  749. package/dist/lib/components/Dialog/DialogDescription.mjs.map +0 -1
  750. package/dist/lib/components/Dialog/DialogRoot.mjs +0 -2
  751. package/dist/lib/components/Dialog/DialogRoot.mjs.map +0 -1
  752. package/dist/lib/components/Dialog/DialogSlot.mjs.map +0 -1
  753. package/dist/lib/components/Dialog/DialogTitle.mjs.map +0 -1
  754. package/dist/lib/components/Dialog/DialogTrigger.mjs.map +0 -1
  755. package/dist/lib/components/Dialog/index.mjs.map +0 -1
  756. package/dist/lib/components/DoughnutChart/index.mjs.map +0 -1
  757. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +0 -1
  758. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs.map +0 -1
  759. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs.map +0 -1
  760. package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs.map +0 -1
  761. package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs +0 -2
  762. package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs.map +0 -1
  763. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs.map +0 -1
  764. package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs.map +0 -1
  765. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs.map +0 -1
  766. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs +0 -2
  767. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs.map +0 -1
  768. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +0 -1
  769. package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +0 -1
  770. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs +0 -2
  771. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs.map +0 -1
  772. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs.map +0 -1
  773. package/dist/lib/components/DropdownMenu/index.mjs.map +0 -1
  774. package/dist/lib/components/HoverCard/HoverCardContent.mjs.map +0 -1
  775. package/dist/lib/components/HoverCard/HoverCardRoot.mjs +0 -2
  776. package/dist/lib/components/HoverCard/HoverCardRoot.mjs.map +0 -1
  777. package/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +0 -1
  778. package/dist/lib/components/HoverCard/index.mjs.map +0 -1
  779. package/dist/lib/components/IconButton/index.mjs +0 -2
  780. package/dist/lib/components/IconButton/index.mjs.map +0 -1
  781. package/dist/lib/components/Inset/index.mjs +0 -2
  782. package/dist/lib/components/Inset/index.mjs.map +0 -1
  783. package/dist/lib/components/Label/index.mjs +0 -2
  784. package/dist/lib/components/Label/index.mjs.map +0 -1
  785. package/dist/lib/components/LineChart/index.mjs.map +0 -1
  786. package/dist/lib/components/Menubar/MenubarCheckboxItem.mjs +0 -2
  787. package/dist/lib/components/Menubar/MenubarCheckboxItem.mjs.map +0 -1
  788. package/dist/lib/components/Menubar/MenubarContent.mjs.map +0 -1
  789. package/dist/lib/components/Menubar/MenubarItem.mjs +0 -2
  790. package/dist/lib/components/Menubar/MenubarItem.mjs.map +0 -1
  791. package/dist/lib/components/Menubar/MenubarItemIndicator.mjs.map +0 -1
  792. package/dist/lib/components/Menubar/MenubarMenu.mjs.map +0 -1
  793. package/dist/lib/components/Menubar/MenubarRadioGroup.mjs.map +0 -1
  794. package/dist/lib/components/Menubar/MenubarRadioItem.mjs +0 -2
  795. package/dist/lib/components/Menubar/MenubarRadioItem.mjs.map +0 -1
  796. package/dist/lib/components/Menubar/MenubarRoot.mjs +0 -2
  797. package/dist/lib/components/Menubar/MenubarRoot.mjs.map +0 -1
  798. package/dist/lib/components/Menubar/MenubarSeparator.mjs.map +0 -1
  799. package/dist/lib/components/Menubar/MenubarSub.mjs.map +0 -1
  800. package/dist/lib/components/Menubar/MenubarSubContent.mjs.map +0 -1
  801. package/dist/lib/components/Menubar/MenubarSubTrigger.mjs +0 -2
  802. package/dist/lib/components/Menubar/MenubarSubTrigger.mjs.map +0 -1
  803. package/dist/lib/components/Menubar/MenubarTrigger.mjs.map +0 -1
  804. package/dist/lib/components/Menubar/index.mjs.map +0 -1
  805. package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs +0 -2
  806. package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs.map +0 -1
  807. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +0 -1
  808. package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +0 -1
  809. package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs +0 -2
  810. package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs.map +0 -1
  811. package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs +0 -2
  812. package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs.map +0 -1
  813. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs +0 -2
  814. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs.map +0 -1
  815. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs +0 -2
  816. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs.map +0 -1
  817. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs.map +0 -1
  818. package/dist/lib/components/NavigationMenu/index.mjs.map +0 -1
  819. package/dist/lib/components/PieChart/index.mjs.map +0 -1
  820. package/dist/lib/components/Popover/PopoverClose.mjs.map +0 -1
  821. package/dist/lib/components/Popover/PopoverContent.mjs.map +0 -1
  822. package/dist/lib/components/Popover/PopoverRoot.mjs +0 -2
  823. package/dist/lib/components/Popover/PopoverRoot.mjs.map +0 -1
  824. package/dist/lib/components/Popover/PopoverTrigger.mjs.map +0 -1
  825. package/dist/lib/components/Popover/index.mjs.map +0 -1
  826. package/dist/lib/components/Progress/index.mjs +0 -2
  827. package/dist/lib/components/Progress/index.mjs.map +0 -1
  828. package/dist/lib/components/RadarChart/index.mjs.map +0 -1
  829. package/dist/lib/components/Radio/index.mjs +0 -2
  830. package/dist/lib/components/Radio/index.mjs.map +0 -1
  831. package/dist/lib/components/RadioCards/RadioCardsItem.mjs.map +0 -1
  832. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs +0 -2
  833. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +0 -1
  834. package/dist/lib/components/RadioCards/index.mjs.map +0 -1
  835. package/dist/lib/components/RadioGroup/RadioGroupItem.mjs.map +0 -1
  836. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +0 -2
  837. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +0 -1
  838. package/dist/lib/components/RadioGroup/index.mjs.map +0 -1
  839. package/dist/lib/components/ScrollArea/index.mjs +0 -2
  840. package/dist/lib/components/ScrollArea/index.mjs.map +0 -1
  841. package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +0 -1
  842. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +0 -2
  843. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +0 -1
  844. package/dist/lib/components/SegmentedControl/index.mjs.map +0 -1
  845. package/dist/lib/components/Select/index.mjs +0 -2
  846. package/dist/lib/components/Select/index.mjs.map +0 -1
  847. package/dist/lib/components/Separator/index.mjs +0 -2
  848. package/dist/lib/components/Separator/index.mjs.map +0 -1
  849. package/dist/lib/components/Skeleton/index.mjs +0 -2
  850. package/dist/lib/components/Skeleton/index.mjs.map +0 -1
  851. package/dist/lib/components/Slider/index.mjs +0 -2
  852. package/dist/lib/components/Slider/index.mjs.map +0 -1
  853. package/dist/lib/components/Spinner/index.mjs +0 -2
  854. package/dist/lib/components/Spinner/index.mjs.map +0 -1
  855. package/dist/lib/components/TabNav/index.mjs +0 -2
  856. package/dist/lib/components/TabNav/index.mjs.map +0 -1
  857. package/dist/lib/components/Table/index.mjs +0 -2
  858. package/dist/lib/components/Table/index.mjs.map +0 -1
  859. package/dist/lib/components/Tabs/index.mjs +0 -2
  860. package/dist/lib/components/Tabs/index.mjs.map +0 -1
  861. package/dist/lib/components/TextArea/index.mjs +0 -2
  862. package/dist/lib/components/TextArea/index.mjs.map +0 -1
  863. package/dist/lib/components/TextField/index.mjs +0 -2
  864. package/dist/lib/components/TextField/index.mjs.map +0 -1
  865. package/dist/lib/components/Toast/ToastActionButton.mjs +0 -2
  866. package/dist/lib/components/Toast/ToastActionButton.mjs.map +0 -1
  867. package/dist/lib/components/Toast/ToastDescription.mjs.map +0 -1
  868. package/dist/lib/components/Toast/ToastRoot.mjs +0 -2
  869. package/dist/lib/components/Toast/ToastRoot.mjs.map +0 -1
  870. package/dist/lib/components/Toast/ToastTitle.mjs.map +0 -1
  871. package/dist/lib/components/Toast/index.mjs.map +0 -1
  872. package/dist/lib/components/Toggle/ToggleWithText.mjs +0 -2
  873. package/dist/lib/components/Toggle/ToggleWithText.mjs.map +0 -1
  874. package/dist/lib/components/Toggle/index.mjs +0 -2
  875. package/dist/lib/components/Toggle/index.mjs.map +0 -1
  876. package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs +0 -2
  877. package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs.map +0 -1
  878. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +0 -2
  879. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +0 -1
  880. package/dist/lib/components/ToggleGroup/index.mjs.map +0 -1
  881. package/dist/lib/components/ToggleSwitch/index.mjs +0 -2
  882. package/dist/lib/components/ToggleSwitch/index.mjs.map +0 -1
  883. package/dist/lib/components/Tooltip/index.mjs +0 -2
  884. package/dist/lib/components/Tooltip/index.mjs.map +0 -1
  885. package/dist/lib/constants.mjs +0 -2
  886. package/dist/lib/constants.mjs.map +0 -1
  887. package/dist/lib/index.mjs +0 -2
  888. package/dist/lib/utils/useDarkMode.mjs.map +0 -1
  889. package/dist/lib/utils/utils.mjs.map +0 -1
  890. /package/dist/lib/{index.mjs.map → _virtual/index.mjs.map} +0 -0
  891. /package/dist/lib/{color → dist/lib/color}/alpha.mjs +0 -0
  892. /package/dist/lib/{color → dist/lib/color}/light.mjs +0 -0
  893. /package/dist/lib/{components → dist/lib/components}/AlertDialog/index.mjs +0 -0
  894. /package/dist/lib/{components → dist/lib/components}/BarChart/index.mjs +0 -0
  895. /package/dist/lib/{components → dist/lib/components}/BubbleChart/index.mjs +0 -0
  896. /package/dist/lib/{components → dist/lib/components}/Callout/index.mjs +0 -0
  897. /package/dist/lib/{components → dist/lib/components}/CheckboxGroup/index.mjs +0 -0
  898. /package/dist/lib/{components → dist/lib/components}/ContextMenu/ContextMenuGroup.mjs +0 -0
  899. /package/dist/lib/{components → dist/lib/components}/ContextMenu/ContextMenuSeparator.mjs +0 -0
  900. /package/dist/lib/{components → dist/lib/components}/ContextMenu/ContextMenuTrigger.mjs +0 -0
  901. /package/dist/lib/{components → dist/lib/components}/ContextMenu/index.mjs +0 -0
  902. /package/dist/lib/{components → dist/lib/components}/DataList/index.mjs +0 -0
  903. /package/dist/lib/{components → dist/lib/components}/Dialog/DialogTrigger.mjs +0 -0
  904. /package/dist/lib/{components → dist/lib/components}/Dialog/index.mjs +0 -0
  905. /package/dist/lib/{components → dist/lib/components}/DoughnutChart/index.mjs +0 -0
  906. /package/dist/lib/{components → dist/lib/components}/DropdownMenu/DropdonMenuRadioGroup.mjs +0 -0
  907. /package/dist/lib/{components → dist/lib/components}/DropdownMenu/DropdownMenuSeparator.mjs +0 -0
  908. /package/dist/lib/{components → dist/lib/components}/DropdownMenu/DropdownMenuSub.mjs +0 -0
  909. /package/dist/lib/{components → dist/lib/components}/DropdownMenu/index.mjs +0 -0
  910. /package/dist/lib/{components → dist/lib/components}/HoverCard/HoverCardTrigger.mjs +0 -0
  911. /package/dist/lib/{components → dist/lib/components}/HoverCard/index.mjs +0 -0
  912. /package/dist/lib/{components → dist/lib/components}/LineChart/index.mjs +0 -0
  913. /package/dist/lib/{components → dist/lib/components}/Menubar/MenubarMenu.mjs +0 -0
  914. /package/dist/lib/{components → dist/lib/components}/Menubar/MenubarSeparator.mjs +0 -0
  915. /package/dist/lib/{components → dist/lib/components}/Menubar/MenubarSub.mjs +0 -0
  916. /package/dist/lib/{components → dist/lib/components}/Menubar/index.mjs +0 -0
  917. /package/dist/lib/{components → dist/lib/components}/NavigationMenu/NavigationMenuItem.mjs +0 -0
  918. /package/dist/lib/{components → dist/lib/components}/NavigationMenu/index.mjs +0 -0
  919. /package/dist/lib/{components → dist/lib/components}/PieChart/index.mjs +0 -0
  920. /package/dist/lib/{components → dist/lib/components}/Popover/PopoverTrigger.mjs +0 -0
  921. /package/dist/lib/{components → dist/lib/components}/Popover/index.mjs +0 -0
  922. /package/dist/lib/{components → dist/lib/components}/RadarChart/index.mjs +0 -0
  923. /package/dist/lib/{components → dist/lib/components}/RadioCards/index.mjs +0 -0
  924. /package/dist/lib/{components → dist/lib/components}/RadioGroup/index.mjs +0 -0
  925. /package/dist/lib/{components → dist/lib/components}/SegmentedControl/SegmentedControlItem.mjs +0 -0
  926. /package/dist/lib/{components → dist/lib/components}/SegmentedControl/index.mjs +0 -0
  927. /package/dist/lib/{components → dist/lib/components}/Toast/index.mjs +0 -0
  928. /package/dist/lib/{components → dist/lib/components}/ToggleGroup/index.mjs +0 -0
  929. /package/dist/lib/{utils → dist/lib/utils}/utils.mjs +0 -0
@@ -0,0 +1,1505 @@
1
+ /**
2
+ * TinyMCE version 6.8.5 (TBD)
3
+ */
4
+
5
+ (function () {
6
+ 'use strict';
7
+
8
+ var global$4 = tinymce.util.Tools.resolve('tinymce.PluginManager');
9
+
10
+ const getPrototypeOf = Object.getPrototypeOf;
11
+ const hasProto = (v, constructor, predicate) => {
12
+ var _a;
13
+ if (predicate(v, constructor.prototype)) {
14
+ return true;
15
+ } else {
16
+ return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name;
17
+ }
18
+ };
19
+ const typeOf = x => {
20
+ const t = typeof x;
21
+ if (x === null) {
22
+ return 'null';
23
+ } else if (t === 'object' && Array.isArray(x)) {
24
+ return 'array';
25
+ } else if (t === 'object' && hasProto(x, String, (o, proto) => proto.isPrototypeOf(o))) {
26
+ return 'string';
27
+ } else {
28
+ return t;
29
+ }
30
+ };
31
+ const isType = type => value => typeOf(value) === type;
32
+ const isSimpleType = type => value => typeof value === type;
33
+ const eq = t => a => t === a;
34
+ const is = (value, constructor) => isObject(value) && hasProto(value, constructor, (o, proto) => getPrototypeOf(o) === proto);
35
+ const isString = isType('string');
36
+ const isObject = isType('object');
37
+ const isPlainObject = value => is(value, Object);
38
+ const isArray = isType('array');
39
+ const isNull = eq(null);
40
+ const isBoolean = isSimpleType('boolean');
41
+ const isNullable = a => a === null || a === undefined;
42
+ const isNonNullable = a => !isNullable(a);
43
+ const isFunction = isSimpleType('function');
44
+ const isNumber = isSimpleType('number');
45
+ const isArrayOf = (value, pred) => {
46
+ if (isArray(value)) {
47
+ for (let i = 0, len = value.length; i < len; ++i) {
48
+ if (!pred(value[i])) {
49
+ return false;
50
+ }
51
+ }
52
+ return true;
53
+ }
54
+ return false;
55
+ };
56
+
57
+ const noop = () => {
58
+ };
59
+
60
+ class Optional {
61
+ constructor(tag, value) {
62
+ this.tag = tag;
63
+ this.value = value;
64
+ }
65
+ static some(value) {
66
+ return new Optional(true, value);
67
+ }
68
+ static none() {
69
+ return Optional.singletonNone;
70
+ }
71
+ fold(onNone, onSome) {
72
+ if (this.tag) {
73
+ return onSome(this.value);
74
+ } else {
75
+ return onNone();
76
+ }
77
+ }
78
+ isSome() {
79
+ return this.tag;
80
+ }
81
+ isNone() {
82
+ return !this.tag;
83
+ }
84
+ map(mapper) {
85
+ if (this.tag) {
86
+ return Optional.some(mapper(this.value));
87
+ } else {
88
+ return Optional.none();
89
+ }
90
+ }
91
+ bind(binder) {
92
+ if (this.tag) {
93
+ return binder(this.value);
94
+ } else {
95
+ return Optional.none();
96
+ }
97
+ }
98
+ exists(predicate) {
99
+ return this.tag && predicate(this.value);
100
+ }
101
+ forall(predicate) {
102
+ return !this.tag || predicate(this.value);
103
+ }
104
+ filter(predicate) {
105
+ if (!this.tag || predicate(this.value)) {
106
+ return this;
107
+ } else {
108
+ return Optional.none();
109
+ }
110
+ }
111
+ getOr(replacement) {
112
+ return this.tag ? this.value : replacement;
113
+ }
114
+ or(replacement) {
115
+ return this.tag ? this : replacement;
116
+ }
117
+ getOrThunk(thunk) {
118
+ return this.tag ? this.value : thunk();
119
+ }
120
+ orThunk(thunk) {
121
+ return this.tag ? this : thunk();
122
+ }
123
+ getOrDie(message) {
124
+ if (!this.tag) {
125
+ throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');
126
+ } else {
127
+ return this.value;
128
+ }
129
+ }
130
+ static from(value) {
131
+ return isNonNullable(value) ? Optional.some(value) : Optional.none();
132
+ }
133
+ getOrNull() {
134
+ return this.tag ? this.value : null;
135
+ }
136
+ getOrUndefined() {
137
+ return this.value;
138
+ }
139
+ each(worker) {
140
+ if (this.tag) {
141
+ worker(this.value);
142
+ }
143
+ }
144
+ toArray() {
145
+ return this.tag ? [this.value] : [];
146
+ }
147
+ toString() {
148
+ return this.tag ? `some(${ this.value })` : 'none()';
149
+ }
150
+ }
151
+ Optional.singletonNone = new Optional(false);
152
+
153
+ const keys = Object.keys;
154
+ const hasOwnProperty = Object.hasOwnProperty;
155
+ const each = (obj, f) => {
156
+ const props = keys(obj);
157
+ for (let k = 0, len = props.length; k < len; k++) {
158
+ const i = props[k];
159
+ const x = obj[i];
160
+ f(x, i);
161
+ }
162
+ };
163
+ const objAcc = r => (x, i) => {
164
+ r[i] = x;
165
+ };
166
+ const internalFilter = (obj, pred, onTrue, onFalse) => {
167
+ each(obj, (x, i) => {
168
+ (pred(x, i) ? onTrue : onFalse)(x, i);
169
+ });
170
+ };
171
+ const filter = (obj, pred) => {
172
+ const t = {};
173
+ internalFilter(obj, pred, objAcc(t), noop);
174
+ return t;
175
+ };
176
+ const has = (obj, key) => hasOwnProperty.call(obj, key);
177
+ const hasNonNullableKey = (obj, key) => has(obj, key) && obj[key] !== undefined && obj[key] !== null;
178
+
179
+ const nativePush = Array.prototype.push;
180
+ const flatten = xs => {
181
+ const r = [];
182
+ for (let i = 0, len = xs.length; i < len; ++i) {
183
+ if (!isArray(xs[i])) {
184
+ throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
185
+ }
186
+ nativePush.apply(r, xs[i]);
187
+ }
188
+ return r;
189
+ };
190
+ const get = (xs, i) => i >= 0 && i < xs.length ? Optional.some(xs[i]) : Optional.none();
191
+ const head = xs => get(xs, 0);
192
+ const findMap = (arr, f) => {
193
+ for (let i = 0; i < arr.length; i++) {
194
+ const r = f(arr[i], i);
195
+ if (r.isSome()) {
196
+ return r;
197
+ }
198
+ }
199
+ return Optional.none();
200
+ };
201
+
202
+ typeof window !== 'undefined' ? window : Function('return this;')();
203
+
204
+ const rawSet = (dom, key, value) => {
205
+ if (isString(value) || isBoolean(value) || isNumber(value)) {
206
+ dom.setAttribute(key, value + '');
207
+ } else {
208
+ console.error('Invalid call to Attribute.set. Key ', key, ':: Value ', value, ':: Element ', dom);
209
+ throw new Error('Attribute value was not simple');
210
+ }
211
+ };
212
+ const set = (element, key, value) => {
213
+ rawSet(element.dom, key, value);
214
+ };
215
+ const remove = (element, key) => {
216
+ element.dom.removeAttribute(key);
217
+ };
218
+
219
+ const fromHtml = (html, scope) => {
220
+ const doc = scope || document;
221
+ const div = doc.createElement('div');
222
+ div.innerHTML = html;
223
+ if (!div.hasChildNodes() || div.childNodes.length > 1) {
224
+ const message = 'HTML does not have a single root node';
225
+ console.error(message, html);
226
+ throw new Error(message);
227
+ }
228
+ return fromDom(div.childNodes[0]);
229
+ };
230
+ const fromTag = (tag, scope) => {
231
+ const doc = scope || document;
232
+ const node = doc.createElement(tag);
233
+ return fromDom(node);
234
+ };
235
+ const fromText = (text, scope) => {
236
+ const doc = scope || document;
237
+ const node = doc.createTextNode(text);
238
+ return fromDom(node);
239
+ };
240
+ const fromDom = node => {
241
+ if (node === null || node === undefined) {
242
+ throw new Error('Node cannot be null or undefined');
243
+ }
244
+ return { dom: node };
245
+ };
246
+ const fromPoint = (docElm, x, y) => Optional.from(docElm.dom.elementFromPoint(x, y)).map(fromDom);
247
+ const SugarElement = {
248
+ fromHtml,
249
+ fromTag,
250
+ fromText,
251
+ fromDom,
252
+ fromPoint
253
+ };
254
+
255
+ var global$3 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
256
+
257
+ var global$2 = tinymce.util.Tools.resolve('tinymce.util.URI');
258
+
259
+ const isNotEmpty = s => s.length > 0;
260
+
261
+ const option = name => editor => editor.options.get(name);
262
+ const register$2 = editor => {
263
+ const registerOption = editor.options.register;
264
+ registerOption('image_dimensions', {
265
+ processor: 'boolean',
266
+ default: true
267
+ });
268
+ registerOption('image_advtab', {
269
+ processor: 'boolean',
270
+ default: false
271
+ });
272
+ registerOption('image_uploadtab', {
273
+ processor: 'boolean',
274
+ default: true
275
+ });
276
+ registerOption('image_prepend_url', {
277
+ processor: 'string',
278
+ default: ''
279
+ });
280
+ registerOption('image_class_list', { processor: 'object[]' });
281
+ registerOption('image_description', {
282
+ processor: 'boolean',
283
+ default: true
284
+ });
285
+ registerOption('image_title', {
286
+ processor: 'boolean',
287
+ default: false
288
+ });
289
+ registerOption('image_caption', {
290
+ processor: 'boolean',
291
+ default: false
292
+ });
293
+ registerOption('image_list', {
294
+ processor: value => {
295
+ const valid = value === false || isString(value) || isArrayOf(value, isObject) || isFunction(value);
296
+ return valid ? {
297
+ value,
298
+ valid
299
+ } : {
300
+ valid: false,
301
+ message: 'Must be false, a string, an array or a function.'
302
+ };
303
+ },
304
+ default: false
305
+ });
306
+ };
307
+ const hasDimensions = option('image_dimensions');
308
+ const hasAdvTab = option('image_advtab');
309
+ const hasUploadTab = option('image_uploadtab');
310
+ const getPrependUrl = option('image_prepend_url');
311
+ const getClassList = option('image_class_list');
312
+ const hasDescription = option('image_description');
313
+ const hasImageTitle = option('image_title');
314
+ const hasImageCaption = option('image_caption');
315
+ const getImageList = option('image_list');
316
+ const showAccessibilityOptions = option('a11y_advanced_options');
317
+ const isAutomaticUploadsEnabled = option('automatic_uploads');
318
+ const hasUploadUrl = editor => isNotEmpty(editor.options.get('images_upload_url'));
319
+ const hasUploadHandler = editor => isNonNullable(editor.options.get('images_upload_handler'));
320
+
321
+ const parseIntAndGetMax = (val1, val2) => Math.max(parseInt(val1, 10), parseInt(val2, 10));
322
+ const getImageSize = url => new Promise(callback => {
323
+ const img = document.createElement('img');
324
+ const done = dimensions => {
325
+ img.onload = img.onerror = null;
326
+ if (img.parentNode) {
327
+ img.parentNode.removeChild(img);
328
+ }
329
+ callback(dimensions);
330
+ };
331
+ img.onload = () => {
332
+ const width = parseIntAndGetMax(img.width, img.clientWidth);
333
+ const height = parseIntAndGetMax(img.height, img.clientHeight);
334
+ const dimensions = {
335
+ width,
336
+ height
337
+ };
338
+ done(Promise.resolve(dimensions));
339
+ };
340
+ img.onerror = () => {
341
+ done(Promise.reject(`Failed to get image dimensions for: ${ url }`));
342
+ };
343
+ const style = img.style;
344
+ style.visibility = 'hidden';
345
+ style.position = 'fixed';
346
+ style.bottom = style.left = '0px';
347
+ style.width = style.height = 'auto';
348
+ document.body.appendChild(img);
349
+ img.src = url;
350
+ });
351
+ const removePixelSuffix = value => {
352
+ if (value) {
353
+ value = value.replace(/px$/, '');
354
+ }
355
+ return value;
356
+ };
357
+ const addPixelSuffix = value => {
358
+ if (value.length > 0 && /^[0-9]+$/.test(value)) {
359
+ value += 'px';
360
+ }
361
+ return value;
362
+ };
363
+ const mergeMargins = css => {
364
+ if (css.margin) {
365
+ const splitMargin = String(css.margin).split(' ');
366
+ switch (splitMargin.length) {
367
+ case 1:
368
+ css['margin-top'] = css['margin-top'] || splitMargin[0];
369
+ css['margin-right'] = css['margin-right'] || splitMargin[0];
370
+ css['margin-bottom'] = css['margin-bottom'] || splitMargin[0];
371
+ css['margin-left'] = css['margin-left'] || splitMargin[0];
372
+ break;
373
+ case 2:
374
+ css['margin-top'] = css['margin-top'] || splitMargin[0];
375
+ css['margin-right'] = css['margin-right'] || splitMargin[1];
376
+ css['margin-bottom'] = css['margin-bottom'] || splitMargin[0];
377
+ css['margin-left'] = css['margin-left'] || splitMargin[1];
378
+ break;
379
+ case 3:
380
+ css['margin-top'] = css['margin-top'] || splitMargin[0];
381
+ css['margin-right'] = css['margin-right'] || splitMargin[1];
382
+ css['margin-bottom'] = css['margin-bottom'] || splitMargin[2];
383
+ css['margin-left'] = css['margin-left'] || splitMargin[1];
384
+ break;
385
+ case 4:
386
+ css['margin-top'] = css['margin-top'] || splitMargin[0];
387
+ css['margin-right'] = css['margin-right'] || splitMargin[1];
388
+ css['margin-bottom'] = css['margin-bottom'] || splitMargin[2];
389
+ css['margin-left'] = css['margin-left'] || splitMargin[3];
390
+ }
391
+ delete css.margin;
392
+ }
393
+ return css;
394
+ };
395
+ const createImageList = (editor, callback) => {
396
+ const imageList = getImageList(editor);
397
+ if (isString(imageList)) {
398
+ fetch(imageList).then(res => {
399
+ if (res.ok) {
400
+ res.json().then(callback);
401
+ }
402
+ });
403
+ } else if (isFunction(imageList)) {
404
+ imageList(callback);
405
+ } else {
406
+ callback(imageList);
407
+ }
408
+ };
409
+ const waitLoadImage = (editor, data, imgElm) => {
410
+ const selectImage = () => {
411
+ imgElm.onload = imgElm.onerror = null;
412
+ if (editor.selection) {
413
+ editor.selection.select(imgElm);
414
+ editor.nodeChanged();
415
+ }
416
+ };
417
+ imgElm.onload = () => {
418
+ if (!data.width && !data.height && hasDimensions(editor)) {
419
+ editor.dom.setAttribs(imgElm, {
420
+ width: String(imgElm.clientWidth),
421
+ height: String(imgElm.clientHeight)
422
+ });
423
+ }
424
+ selectImage();
425
+ };
426
+ imgElm.onerror = selectImage;
427
+ };
428
+ const blobToDataUri = blob => new Promise((resolve, reject) => {
429
+ const reader = new FileReader();
430
+ reader.onload = () => {
431
+ resolve(reader.result);
432
+ };
433
+ reader.onerror = () => {
434
+ var _a;
435
+ reject((_a = reader.error) === null || _a === void 0 ? void 0 : _a.message);
436
+ };
437
+ reader.readAsDataURL(blob);
438
+ });
439
+ const isPlaceholderImage = imgElm => imgElm.nodeName === 'IMG' && (imgElm.hasAttribute('data-mce-object') || imgElm.hasAttribute('data-mce-placeholder'));
440
+ const isSafeImageUrl = (editor, src) => {
441
+ const getOption = editor.options.get;
442
+ return global$2.isDomSafe(src, 'img', {
443
+ allow_html_data_urls: getOption('allow_html_data_urls'),
444
+ allow_script_urls: getOption('allow_script_urls'),
445
+ allow_svg_data_urls: getOption('allow_svg_data_urls')
446
+ });
447
+ };
448
+
449
+ const DOM = global$3.DOM;
450
+ const getHspace = image => {
451
+ if (image.style.marginLeft && image.style.marginRight && image.style.marginLeft === image.style.marginRight) {
452
+ return removePixelSuffix(image.style.marginLeft);
453
+ } else {
454
+ return '';
455
+ }
456
+ };
457
+ const getVspace = image => {
458
+ if (image.style.marginTop && image.style.marginBottom && image.style.marginTop === image.style.marginBottom) {
459
+ return removePixelSuffix(image.style.marginTop);
460
+ } else {
461
+ return '';
462
+ }
463
+ };
464
+ const getBorder = image => {
465
+ if (image.style.borderWidth) {
466
+ return removePixelSuffix(image.style.borderWidth);
467
+ } else {
468
+ return '';
469
+ }
470
+ };
471
+ const getAttrib = (image, name) => {
472
+ var _a;
473
+ if (image.hasAttribute(name)) {
474
+ return (_a = image.getAttribute(name)) !== null && _a !== void 0 ? _a : '';
475
+ } else {
476
+ return '';
477
+ }
478
+ };
479
+ const hasCaption = image => image.parentNode !== null && image.parentNode.nodeName === 'FIGURE';
480
+ const updateAttrib = (image, name, value) => {
481
+ if (value === '' || value === null) {
482
+ image.removeAttribute(name);
483
+ } else {
484
+ image.setAttribute(name, value);
485
+ }
486
+ };
487
+ const wrapInFigure = image => {
488
+ const figureElm = DOM.create('figure', { class: 'image' });
489
+ DOM.insertAfter(figureElm, image);
490
+ figureElm.appendChild(image);
491
+ figureElm.appendChild(DOM.create('figcaption', { contentEditable: 'true' }, 'Caption'));
492
+ figureElm.contentEditable = 'false';
493
+ };
494
+ const removeFigure = image => {
495
+ const figureElm = image.parentNode;
496
+ if (isNonNullable(figureElm)) {
497
+ DOM.insertAfter(image, figureElm);
498
+ DOM.remove(figureElm);
499
+ }
500
+ };
501
+ const toggleCaption = image => {
502
+ if (hasCaption(image)) {
503
+ removeFigure(image);
504
+ } else {
505
+ wrapInFigure(image);
506
+ }
507
+ };
508
+ const normalizeStyle = (image, normalizeCss) => {
509
+ const attrValue = image.getAttribute('style');
510
+ const value = normalizeCss(attrValue !== null ? attrValue : '');
511
+ if (value.length > 0) {
512
+ image.setAttribute('style', value);
513
+ image.setAttribute('data-mce-style', value);
514
+ } else {
515
+ image.removeAttribute('style');
516
+ }
517
+ };
518
+ const setSize = (name, normalizeCss) => (image, name, value) => {
519
+ const styles = image.style;
520
+ if (styles[name]) {
521
+ styles[name] = addPixelSuffix(value);
522
+ normalizeStyle(image, normalizeCss);
523
+ } else {
524
+ updateAttrib(image, name, value);
525
+ }
526
+ };
527
+ const getSize = (image, name) => {
528
+ if (image.style[name]) {
529
+ return removePixelSuffix(image.style[name]);
530
+ } else {
531
+ return getAttrib(image, name);
532
+ }
533
+ };
534
+ const setHspace = (image, value) => {
535
+ const pxValue = addPixelSuffix(value);
536
+ image.style.marginLeft = pxValue;
537
+ image.style.marginRight = pxValue;
538
+ };
539
+ const setVspace = (image, value) => {
540
+ const pxValue = addPixelSuffix(value);
541
+ image.style.marginTop = pxValue;
542
+ image.style.marginBottom = pxValue;
543
+ };
544
+ const setBorder = (image, value) => {
545
+ const pxValue = addPixelSuffix(value);
546
+ image.style.borderWidth = pxValue;
547
+ };
548
+ const setBorderStyle = (image, value) => {
549
+ image.style.borderStyle = value;
550
+ };
551
+ const getBorderStyle = image => {
552
+ var _a;
553
+ return (_a = image.style.borderStyle) !== null && _a !== void 0 ? _a : '';
554
+ };
555
+ const isFigure = elm => isNonNullable(elm) && elm.nodeName === 'FIGURE';
556
+ const isImage = elm => elm.nodeName === 'IMG';
557
+ const getIsDecorative = image => DOM.getAttrib(image, 'alt').length === 0 && DOM.getAttrib(image, 'role') === 'presentation';
558
+ const getAlt = image => {
559
+ if (getIsDecorative(image)) {
560
+ return '';
561
+ } else {
562
+ return getAttrib(image, 'alt');
563
+ }
564
+ };
565
+ const defaultData = () => ({
566
+ src: '',
567
+ alt: '',
568
+ title: '',
569
+ width: '',
570
+ height: '',
571
+ class: '',
572
+ style: '',
573
+ caption: false,
574
+ hspace: '',
575
+ vspace: '',
576
+ border: '',
577
+ borderStyle: '',
578
+ isDecorative: false
579
+ });
580
+ const getStyleValue = (normalizeCss, data) => {
581
+ var _a;
582
+ const image = document.createElement('img');
583
+ updateAttrib(image, 'style', data.style);
584
+ if (getHspace(image) || data.hspace !== '') {
585
+ setHspace(image, data.hspace);
586
+ }
587
+ if (getVspace(image) || data.vspace !== '') {
588
+ setVspace(image, data.vspace);
589
+ }
590
+ if (getBorder(image) || data.border !== '') {
591
+ setBorder(image, data.border);
592
+ }
593
+ if (getBorderStyle(image) || data.borderStyle !== '') {
594
+ setBorderStyle(image, data.borderStyle);
595
+ }
596
+ return normalizeCss((_a = image.getAttribute('style')) !== null && _a !== void 0 ? _a : '');
597
+ };
598
+ const create = (normalizeCss, data) => {
599
+ const image = document.createElement('img');
600
+ write(normalizeCss, {
601
+ ...data,
602
+ caption: false
603
+ }, image);
604
+ setAlt(image, data.alt, data.isDecorative);
605
+ if (data.caption) {
606
+ const figure = DOM.create('figure', { class: 'image' });
607
+ figure.appendChild(image);
608
+ figure.appendChild(DOM.create('figcaption', { contentEditable: 'true' }, 'Caption'));
609
+ figure.contentEditable = 'false';
610
+ return figure;
611
+ } else {
612
+ return image;
613
+ }
614
+ };
615
+ const read = (normalizeCss, image) => ({
616
+ src: getAttrib(image, 'src'),
617
+ alt: getAlt(image),
618
+ title: getAttrib(image, 'title'),
619
+ width: getSize(image, 'width'),
620
+ height: getSize(image, 'height'),
621
+ class: getAttrib(image, 'class'),
622
+ style: normalizeCss(getAttrib(image, 'style')),
623
+ caption: hasCaption(image),
624
+ hspace: getHspace(image),
625
+ vspace: getVspace(image),
626
+ border: getBorder(image),
627
+ borderStyle: getBorderStyle(image),
628
+ isDecorative: getIsDecorative(image)
629
+ });
630
+ const updateProp = (image, oldData, newData, name, set) => {
631
+ if (newData[name] !== oldData[name]) {
632
+ set(image, name, String(newData[name]));
633
+ }
634
+ };
635
+ const setAlt = (image, alt, isDecorative) => {
636
+ if (isDecorative) {
637
+ DOM.setAttrib(image, 'role', 'presentation');
638
+ const sugarImage = SugarElement.fromDom(image);
639
+ set(sugarImage, 'alt', '');
640
+ } else {
641
+ if (isNull(alt)) {
642
+ const sugarImage = SugarElement.fromDom(image);
643
+ remove(sugarImage, 'alt');
644
+ } else {
645
+ const sugarImage = SugarElement.fromDom(image);
646
+ set(sugarImage, 'alt', alt);
647
+ }
648
+ if (DOM.getAttrib(image, 'role') === 'presentation') {
649
+ DOM.setAttrib(image, 'role', '');
650
+ }
651
+ }
652
+ };
653
+ const updateAlt = (image, oldData, newData) => {
654
+ if (newData.alt !== oldData.alt || newData.isDecorative !== oldData.isDecorative) {
655
+ setAlt(image, newData.alt, newData.isDecorative);
656
+ }
657
+ };
658
+ const normalized = (set, normalizeCss) => (image, name, value) => {
659
+ set(image, value);
660
+ normalizeStyle(image, normalizeCss);
661
+ };
662
+ const write = (normalizeCss, newData, image) => {
663
+ const oldData = read(normalizeCss, image);
664
+ updateProp(image, oldData, newData, 'caption', (image, _name, _value) => toggleCaption(image));
665
+ updateProp(image, oldData, newData, 'src', updateAttrib);
666
+ updateProp(image, oldData, newData, 'title', updateAttrib);
667
+ updateProp(image, oldData, newData, 'width', setSize('width', normalizeCss));
668
+ updateProp(image, oldData, newData, 'height', setSize('height', normalizeCss));
669
+ updateProp(image, oldData, newData, 'class', updateAttrib);
670
+ updateProp(image, oldData, newData, 'style', normalized((image, value) => updateAttrib(image, 'style', value), normalizeCss));
671
+ updateProp(image, oldData, newData, 'hspace', normalized(setHspace, normalizeCss));
672
+ updateProp(image, oldData, newData, 'vspace', normalized(setVspace, normalizeCss));
673
+ updateProp(image, oldData, newData, 'border', normalized(setBorder, normalizeCss));
674
+ updateProp(image, oldData, newData, 'borderStyle', normalized(setBorderStyle, normalizeCss));
675
+ updateAlt(image, oldData, newData);
676
+ };
677
+
678
+ const normalizeCss$1 = (editor, cssText) => {
679
+ const css = editor.dom.styles.parse(cssText);
680
+ const mergedCss = mergeMargins(css);
681
+ const compressed = editor.dom.styles.parse(editor.dom.styles.serialize(mergedCss));
682
+ return editor.dom.styles.serialize(compressed);
683
+ };
684
+ const getSelectedImage = editor => {
685
+ const imgElm = editor.selection.getNode();
686
+ const figureElm = editor.dom.getParent(imgElm, 'figure.image');
687
+ if (figureElm) {
688
+ return editor.dom.select('img', figureElm)[0];
689
+ }
690
+ if (imgElm && (imgElm.nodeName !== 'IMG' || isPlaceholderImage(imgElm))) {
691
+ return null;
692
+ }
693
+ return imgElm;
694
+ };
695
+ const splitTextBlock = (editor, figure) => {
696
+ var _a;
697
+ const dom = editor.dom;
698
+ const textBlockElements = filter(editor.schema.getTextBlockElements(), (_, parentElm) => !editor.schema.isValidChild(parentElm, 'figure'));
699
+ const textBlock = dom.getParent(figure.parentNode, node => hasNonNullableKey(textBlockElements, node.nodeName), editor.getBody());
700
+ if (textBlock) {
701
+ return (_a = dom.split(textBlock, figure)) !== null && _a !== void 0 ? _a : figure;
702
+ } else {
703
+ return figure;
704
+ }
705
+ };
706
+ const readImageDataFromSelection = editor => {
707
+ const image = getSelectedImage(editor);
708
+ return image ? read(css => normalizeCss$1(editor, css), image) : defaultData();
709
+ };
710
+ const insertImageAtCaret = (editor, data) => {
711
+ const elm = create(css => normalizeCss$1(editor, css), data);
712
+ editor.dom.setAttrib(elm, 'data-mce-id', '__mcenew');
713
+ editor.focus();
714
+ editor.selection.setContent(elm.outerHTML);
715
+ const insertedElm = editor.dom.select('*[data-mce-id="__mcenew"]')[0];
716
+ editor.dom.setAttrib(insertedElm, 'data-mce-id', null);
717
+ if (isFigure(insertedElm)) {
718
+ const figure = splitTextBlock(editor, insertedElm);
719
+ editor.selection.select(figure);
720
+ } else {
721
+ editor.selection.select(insertedElm);
722
+ }
723
+ };
724
+ const syncSrcAttr = (editor, image) => {
725
+ editor.dom.setAttrib(image, 'src', image.getAttribute('src'));
726
+ };
727
+ const deleteImage = (editor, image) => {
728
+ if (image) {
729
+ const elm = editor.dom.is(image.parentNode, 'figure.image') ? image.parentNode : image;
730
+ editor.dom.remove(elm);
731
+ editor.focus();
732
+ editor.nodeChanged();
733
+ if (editor.dom.isEmpty(editor.getBody())) {
734
+ editor.setContent('');
735
+ editor.selection.setCursorLocation();
736
+ }
737
+ }
738
+ };
739
+ const writeImageDataToSelection = (editor, data) => {
740
+ const image = getSelectedImage(editor);
741
+ if (image) {
742
+ write(css => normalizeCss$1(editor, css), data, image);
743
+ syncSrcAttr(editor, image);
744
+ if (isFigure(image.parentNode)) {
745
+ const figure = image.parentNode;
746
+ splitTextBlock(editor, figure);
747
+ editor.selection.select(image.parentNode);
748
+ } else {
749
+ editor.selection.select(image);
750
+ waitLoadImage(editor, data, image);
751
+ }
752
+ }
753
+ };
754
+ const sanitizeImageData = (editor, data) => {
755
+ const src = data.src;
756
+ return {
757
+ ...data,
758
+ src: isSafeImageUrl(editor, src) ? src : ''
759
+ };
760
+ };
761
+ const insertOrUpdateImage = (editor, partialData) => {
762
+ const image = getSelectedImage(editor);
763
+ if (image) {
764
+ const selectedImageData = read(css => normalizeCss$1(editor, css), image);
765
+ const data = {
766
+ ...selectedImageData,
767
+ ...partialData
768
+ };
769
+ const sanitizedData = sanitizeImageData(editor, data);
770
+ if (data.src) {
771
+ writeImageDataToSelection(editor, sanitizedData);
772
+ } else {
773
+ deleteImage(editor, image);
774
+ }
775
+ } else if (partialData.src) {
776
+ insertImageAtCaret(editor, {
777
+ ...defaultData(),
778
+ ...partialData
779
+ });
780
+ }
781
+ };
782
+
783
+ const deep = (old, nu) => {
784
+ const bothObjects = isPlainObject(old) && isPlainObject(nu);
785
+ return bothObjects ? deepMerge(old, nu) : nu;
786
+ };
787
+ const baseMerge = merger => {
788
+ return (...objects) => {
789
+ if (objects.length === 0) {
790
+ throw new Error(`Can't merge zero objects`);
791
+ }
792
+ const ret = {};
793
+ for (let j = 0; j < objects.length; j++) {
794
+ const curObject = objects[j];
795
+ for (const key in curObject) {
796
+ if (has(curObject, key)) {
797
+ ret[key] = merger(ret[key], curObject[key]);
798
+ }
799
+ }
800
+ }
801
+ return ret;
802
+ };
803
+ };
804
+ const deepMerge = baseMerge(deep);
805
+
806
+ var global$1 = tinymce.util.Tools.resolve('tinymce.util.ImageUploader');
807
+
808
+ var global = tinymce.util.Tools.resolve('tinymce.util.Tools');
809
+
810
+ const getValue = item => isString(item.value) ? item.value : '';
811
+ const getText = item => {
812
+ if (isString(item.text)) {
813
+ return item.text;
814
+ } else if (isString(item.title)) {
815
+ return item.title;
816
+ } else {
817
+ return '';
818
+ }
819
+ };
820
+ const sanitizeList = (list, extractValue) => {
821
+ const out = [];
822
+ global.each(list, item => {
823
+ const text = getText(item);
824
+ if (item.menu !== undefined) {
825
+ const items = sanitizeList(item.menu, extractValue);
826
+ out.push({
827
+ text,
828
+ items
829
+ });
830
+ } else {
831
+ const value = extractValue(item);
832
+ out.push({
833
+ text,
834
+ value
835
+ });
836
+ }
837
+ });
838
+ return out;
839
+ };
840
+ const sanitizer = (extractor = getValue) => list => {
841
+ if (list) {
842
+ return Optional.from(list).map(list => sanitizeList(list, extractor));
843
+ } else {
844
+ return Optional.none();
845
+ }
846
+ };
847
+ const sanitize = list => sanitizer(getValue)(list);
848
+ const isGroup = item => has(item, 'items');
849
+ const findEntryDelegate = (list, value) => findMap(list, item => {
850
+ if (isGroup(item)) {
851
+ return findEntryDelegate(item.items, value);
852
+ } else if (item.value === value) {
853
+ return Optional.some(item);
854
+ } else {
855
+ return Optional.none();
856
+ }
857
+ });
858
+ const findEntry = (optList, value) => optList.bind(list => findEntryDelegate(list, value));
859
+ const ListUtils = {
860
+ sanitizer,
861
+ sanitize,
862
+ findEntry
863
+ };
864
+
865
+ const makeTab$2 = _info => ({
866
+ title: 'Advanced',
867
+ name: 'advanced',
868
+ items: [{
869
+ type: 'grid',
870
+ columns: 2,
871
+ items: [
872
+ {
873
+ type: 'input',
874
+ label: 'Vertical space',
875
+ name: 'vspace',
876
+ inputMode: 'numeric'
877
+ },
878
+ {
879
+ type: 'input',
880
+ label: 'Horizontal space',
881
+ name: 'hspace',
882
+ inputMode: 'numeric'
883
+ },
884
+ {
885
+ type: 'input',
886
+ label: 'Border width',
887
+ name: 'border',
888
+ inputMode: 'numeric'
889
+ },
890
+ {
891
+ type: 'listbox',
892
+ name: 'borderstyle',
893
+ label: 'Border style',
894
+ items: [
895
+ {
896
+ text: 'Select...',
897
+ value: ''
898
+ },
899
+ {
900
+ text: 'Solid',
901
+ value: 'solid'
902
+ },
903
+ {
904
+ text: 'Dotted',
905
+ value: 'dotted'
906
+ },
907
+ {
908
+ text: 'Dashed',
909
+ value: 'dashed'
910
+ },
911
+ {
912
+ text: 'Double',
913
+ value: 'double'
914
+ },
915
+ {
916
+ text: 'Groove',
917
+ value: 'groove'
918
+ },
919
+ {
920
+ text: 'Ridge',
921
+ value: 'ridge'
922
+ },
923
+ {
924
+ text: 'Inset',
925
+ value: 'inset'
926
+ },
927
+ {
928
+ text: 'Outset',
929
+ value: 'outset'
930
+ },
931
+ {
932
+ text: 'None',
933
+ value: 'none'
934
+ },
935
+ {
936
+ text: 'Hidden',
937
+ value: 'hidden'
938
+ }
939
+ ]
940
+ }
941
+ ]
942
+ }]
943
+ });
944
+ const AdvTab = { makeTab: makeTab$2 };
945
+
946
+ const collect = editor => {
947
+ const urlListSanitizer = ListUtils.sanitizer(item => editor.convertURL(item.value || item.url || '', 'src'));
948
+ const futureImageList = new Promise(completer => {
949
+ createImageList(editor, imageList => {
950
+ completer(urlListSanitizer(imageList).map(items => flatten([
951
+ [{
952
+ text: 'None',
953
+ value: ''
954
+ }],
955
+ items
956
+ ])));
957
+ });
958
+ });
959
+ const classList = ListUtils.sanitize(getClassList(editor));
960
+ const hasAdvTab$1 = hasAdvTab(editor);
961
+ const hasUploadTab$1 = hasUploadTab(editor);
962
+ const hasUploadUrl$1 = hasUploadUrl(editor);
963
+ const hasUploadHandler$1 = hasUploadHandler(editor);
964
+ const image = readImageDataFromSelection(editor);
965
+ const hasDescription$1 = hasDescription(editor);
966
+ const hasImageTitle$1 = hasImageTitle(editor);
967
+ const hasDimensions$1 = hasDimensions(editor);
968
+ const hasImageCaption$1 = hasImageCaption(editor);
969
+ const hasAccessibilityOptions = showAccessibilityOptions(editor);
970
+ const automaticUploads = isAutomaticUploadsEnabled(editor);
971
+ const prependURL = Optional.some(getPrependUrl(editor)).filter(preUrl => isString(preUrl) && preUrl.length > 0);
972
+ return futureImageList.then(imageList => ({
973
+ image,
974
+ imageList,
975
+ classList,
976
+ hasAdvTab: hasAdvTab$1,
977
+ hasUploadTab: hasUploadTab$1,
978
+ hasUploadUrl: hasUploadUrl$1,
979
+ hasUploadHandler: hasUploadHandler$1,
980
+ hasDescription: hasDescription$1,
981
+ hasImageTitle: hasImageTitle$1,
982
+ hasDimensions: hasDimensions$1,
983
+ hasImageCaption: hasImageCaption$1,
984
+ prependURL,
985
+ hasAccessibilityOptions,
986
+ automaticUploads
987
+ }));
988
+ };
989
+
990
+ const makeItems = info => {
991
+ const imageUrl = {
992
+ name: 'src',
993
+ type: 'urlinput',
994
+ filetype: 'image',
995
+ label: 'Source',
996
+ picker_text: 'Browse files'
997
+ };
998
+ const imageList = info.imageList.map(items => ({
999
+ name: 'images',
1000
+ type: 'listbox',
1001
+ label: 'Image list',
1002
+ items
1003
+ }));
1004
+ const imageDescription = {
1005
+ name: 'alt',
1006
+ type: 'input',
1007
+ label: 'Alternative description',
1008
+ enabled: !(info.hasAccessibilityOptions && info.image.isDecorative)
1009
+ };
1010
+ const imageTitle = {
1011
+ name: 'title',
1012
+ type: 'input',
1013
+ label: 'Image title'
1014
+ };
1015
+ const imageDimensions = {
1016
+ name: 'dimensions',
1017
+ type: 'sizeinput'
1018
+ };
1019
+ const isDecorative = {
1020
+ type: 'label',
1021
+ label: 'Accessibility',
1022
+ items: [{
1023
+ name: 'isDecorative',
1024
+ type: 'checkbox',
1025
+ label: 'Image is decorative'
1026
+ }]
1027
+ };
1028
+ const classList = info.classList.map(items => ({
1029
+ name: 'classes',
1030
+ type: 'listbox',
1031
+ label: 'Class',
1032
+ items
1033
+ }));
1034
+ const caption = {
1035
+ type: 'label',
1036
+ label: 'Caption',
1037
+ items: [{
1038
+ type: 'checkbox',
1039
+ name: 'caption',
1040
+ label: 'Show caption'
1041
+ }]
1042
+ };
1043
+ const getDialogContainerType = useColumns => useColumns ? {
1044
+ type: 'grid',
1045
+ columns: 2
1046
+ } : { type: 'panel' };
1047
+ return flatten([
1048
+ [imageUrl],
1049
+ imageList.toArray(),
1050
+ info.hasAccessibilityOptions && info.hasDescription ? [isDecorative] : [],
1051
+ info.hasDescription ? [imageDescription] : [],
1052
+ info.hasImageTitle ? [imageTitle] : [],
1053
+ info.hasDimensions ? [imageDimensions] : [],
1054
+ [{
1055
+ ...getDialogContainerType(info.classList.isSome() && info.hasImageCaption),
1056
+ items: flatten([
1057
+ classList.toArray(),
1058
+ info.hasImageCaption ? [caption] : []
1059
+ ])
1060
+ }]
1061
+ ]);
1062
+ };
1063
+ const makeTab$1 = info => ({
1064
+ title: 'General',
1065
+ name: 'general',
1066
+ items: makeItems(info)
1067
+ });
1068
+ const MainTab = {
1069
+ makeTab: makeTab$1,
1070
+ makeItems
1071
+ };
1072
+
1073
+ const makeTab = _info => {
1074
+ const items = [{
1075
+ type: 'dropzone',
1076
+ name: 'fileinput'
1077
+ }];
1078
+ return {
1079
+ title: 'Upload',
1080
+ name: 'upload',
1081
+ items
1082
+ };
1083
+ };
1084
+ const UploadTab = { makeTab };
1085
+
1086
+ const createState = info => ({
1087
+ prevImage: ListUtils.findEntry(info.imageList, info.image.src),
1088
+ prevAlt: info.image.alt,
1089
+ open: true
1090
+ });
1091
+ const fromImageData = image => ({
1092
+ src: {
1093
+ value: image.src,
1094
+ meta: {}
1095
+ },
1096
+ images: image.src,
1097
+ alt: image.alt,
1098
+ title: image.title,
1099
+ dimensions: {
1100
+ width: image.width,
1101
+ height: image.height
1102
+ },
1103
+ classes: image.class,
1104
+ caption: image.caption,
1105
+ style: image.style,
1106
+ vspace: image.vspace,
1107
+ border: image.border,
1108
+ hspace: image.hspace,
1109
+ borderstyle: image.borderStyle,
1110
+ fileinput: [],
1111
+ isDecorative: image.isDecorative
1112
+ });
1113
+ const toImageData = (data, removeEmptyAlt) => ({
1114
+ src: data.src.value,
1115
+ alt: (data.alt === null || data.alt.length === 0) && removeEmptyAlt ? null : data.alt,
1116
+ title: data.title,
1117
+ width: data.dimensions.width,
1118
+ height: data.dimensions.height,
1119
+ class: data.classes,
1120
+ style: data.style,
1121
+ caption: data.caption,
1122
+ hspace: data.hspace,
1123
+ vspace: data.vspace,
1124
+ border: data.border,
1125
+ borderStyle: data.borderstyle,
1126
+ isDecorative: data.isDecorative
1127
+ });
1128
+ const addPrependUrl2 = (info, srcURL) => {
1129
+ if (!/^(?:[a-zA-Z]+:)?\/\//.test(srcURL)) {
1130
+ return info.prependURL.bind(prependUrl => {
1131
+ if (srcURL.substring(0, prependUrl.length) !== prependUrl) {
1132
+ return Optional.some(prependUrl + srcURL);
1133
+ }
1134
+ return Optional.none();
1135
+ });
1136
+ }
1137
+ return Optional.none();
1138
+ };
1139
+ const addPrependUrl = (info, api) => {
1140
+ const data = api.getData();
1141
+ addPrependUrl2(info, data.src.value).each(srcURL => {
1142
+ api.setData({
1143
+ src: {
1144
+ value: srcURL,
1145
+ meta: data.src.meta
1146
+ }
1147
+ });
1148
+ });
1149
+ };
1150
+ const formFillFromMeta2 = (info, data, meta) => {
1151
+ if (info.hasDescription && isString(meta.alt)) {
1152
+ data.alt = meta.alt;
1153
+ }
1154
+ if (info.hasAccessibilityOptions) {
1155
+ data.isDecorative = meta.isDecorative || data.isDecorative || false;
1156
+ }
1157
+ if (info.hasImageTitle && isString(meta.title)) {
1158
+ data.title = meta.title;
1159
+ }
1160
+ if (info.hasDimensions) {
1161
+ if (isString(meta.width)) {
1162
+ data.dimensions.width = meta.width;
1163
+ }
1164
+ if (isString(meta.height)) {
1165
+ data.dimensions.height = meta.height;
1166
+ }
1167
+ }
1168
+ if (isString(meta.class)) {
1169
+ ListUtils.findEntry(info.classList, meta.class).each(entry => {
1170
+ data.classes = entry.value;
1171
+ });
1172
+ }
1173
+ if (info.hasImageCaption) {
1174
+ if (isBoolean(meta.caption)) {
1175
+ data.caption = meta.caption;
1176
+ }
1177
+ }
1178
+ if (info.hasAdvTab) {
1179
+ if (isString(meta.style)) {
1180
+ data.style = meta.style;
1181
+ }
1182
+ if (isString(meta.vspace)) {
1183
+ data.vspace = meta.vspace;
1184
+ }
1185
+ if (isString(meta.border)) {
1186
+ data.border = meta.border;
1187
+ }
1188
+ if (isString(meta.hspace)) {
1189
+ data.hspace = meta.hspace;
1190
+ }
1191
+ if (isString(meta.borderstyle)) {
1192
+ data.borderstyle = meta.borderstyle;
1193
+ }
1194
+ }
1195
+ };
1196
+ const formFillFromMeta = (info, api) => {
1197
+ const data = api.getData();
1198
+ const meta = data.src.meta;
1199
+ if (meta !== undefined) {
1200
+ const newData = deepMerge({}, data);
1201
+ formFillFromMeta2(info, newData, meta);
1202
+ api.setData(newData);
1203
+ }
1204
+ };
1205
+ const calculateImageSize = (helpers, info, state, api) => {
1206
+ const data = api.getData();
1207
+ const url = data.src.value;
1208
+ const meta = data.src.meta || {};
1209
+ if (!meta.width && !meta.height && info.hasDimensions) {
1210
+ if (isNotEmpty(url)) {
1211
+ helpers.imageSize(url).then(size => {
1212
+ if (state.open) {
1213
+ api.setData({ dimensions: size });
1214
+ }
1215
+ }).catch(e => console.error(e));
1216
+ } else {
1217
+ api.setData({
1218
+ dimensions: {
1219
+ width: '',
1220
+ height: ''
1221
+ }
1222
+ });
1223
+ }
1224
+ }
1225
+ };
1226
+ const updateImagesDropdown = (info, state, api) => {
1227
+ const data = api.getData();
1228
+ const image = ListUtils.findEntry(info.imageList, data.src.value);
1229
+ state.prevImage = image;
1230
+ api.setData({ images: image.map(entry => entry.value).getOr('') });
1231
+ };
1232
+ const changeSrc = (helpers, info, state, api) => {
1233
+ addPrependUrl(info, api);
1234
+ formFillFromMeta(info, api);
1235
+ calculateImageSize(helpers, info, state, api);
1236
+ updateImagesDropdown(info, state, api);
1237
+ };
1238
+ const changeImages = (helpers, info, state, api) => {
1239
+ const data = api.getData();
1240
+ const image = ListUtils.findEntry(info.imageList, data.images);
1241
+ image.each(img => {
1242
+ const updateAlt = data.alt === '' || state.prevImage.map(image => image.text === data.alt).getOr(false);
1243
+ if (updateAlt) {
1244
+ if (img.value === '') {
1245
+ api.setData({
1246
+ src: img,
1247
+ alt: state.prevAlt
1248
+ });
1249
+ } else {
1250
+ api.setData({
1251
+ src: img,
1252
+ alt: img.text
1253
+ });
1254
+ }
1255
+ } else {
1256
+ api.setData({ src: img });
1257
+ }
1258
+ });
1259
+ state.prevImage = image;
1260
+ changeSrc(helpers, info, state, api);
1261
+ };
1262
+ const changeFileInput = (helpers, info, state, api) => {
1263
+ const data = api.getData();
1264
+ api.block('Uploading image');
1265
+ head(data.fileinput).fold(() => {
1266
+ api.unblock();
1267
+ }, file => {
1268
+ const blobUri = URL.createObjectURL(file);
1269
+ const finalize = () => {
1270
+ api.unblock();
1271
+ URL.revokeObjectURL(blobUri);
1272
+ };
1273
+ const updateSrcAndSwitchTab = url => {
1274
+ api.setData({
1275
+ src: {
1276
+ value: url,
1277
+ meta: {}
1278
+ }
1279
+ });
1280
+ api.showTab('general');
1281
+ changeSrc(helpers, info, state, api);
1282
+ };
1283
+ blobToDataUri(file).then(dataUrl => {
1284
+ const blobInfo = helpers.createBlobCache(file, blobUri, dataUrl);
1285
+ if (info.automaticUploads) {
1286
+ helpers.uploadImage(blobInfo).then(result => {
1287
+ updateSrcAndSwitchTab(result.url);
1288
+ finalize();
1289
+ }).catch(err => {
1290
+ finalize();
1291
+ helpers.alertErr(err);
1292
+ });
1293
+ } else {
1294
+ helpers.addToBlobCache(blobInfo);
1295
+ updateSrcAndSwitchTab(blobInfo.blobUri());
1296
+ api.unblock();
1297
+ }
1298
+ });
1299
+ });
1300
+ };
1301
+ const changeHandler = (helpers, info, state) => (api, evt) => {
1302
+ if (evt.name === 'src') {
1303
+ changeSrc(helpers, info, state, api);
1304
+ } else if (evt.name === 'images') {
1305
+ changeImages(helpers, info, state, api);
1306
+ } else if (evt.name === 'alt') {
1307
+ state.prevAlt = api.getData().alt;
1308
+ } else if (evt.name === 'fileinput') {
1309
+ changeFileInput(helpers, info, state, api);
1310
+ } else if (evt.name === 'isDecorative') {
1311
+ api.setEnabled('alt', !api.getData().isDecorative);
1312
+ }
1313
+ };
1314
+ const closeHandler = state => () => {
1315
+ state.open = false;
1316
+ };
1317
+ const makeDialogBody = info => {
1318
+ if (info.hasAdvTab || info.hasUploadUrl || info.hasUploadHandler) {
1319
+ const tabPanel = {
1320
+ type: 'tabpanel',
1321
+ tabs: flatten([
1322
+ [MainTab.makeTab(info)],
1323
+ info.hasAdvTab ? [AdvTab.makeTab(info)] : [],
1324
+ info.hasUploadTab && (info.hasUploadUrl || info.hasUploadHandler) ? [UploadTab.makeTab(info)] : []
1325
+ ])
1326
+ };
1327
+ return tabPanel;
1328
+ } else {
1329
+ const panel = {
1330
+ type: 'panel',
1331
+ items: MainTab.makeItems(info)
1332
+ };
1333
+ return panel;
1334
+ }
1335
+ };
1336
+ const submitHandler = (editor, info, helpers) => api => {
1337
+ const data = deepMerge(fromImageData(info.image), api.getData());
1338
+ const finalData = {
1339
+ ...data,
1340
+ style: getStyleValue(helpers.normalizeCss, toImageData(data, false))
1341
+ };
1342
+ editor.execCommand('mceUpdateImage', false, toImageData(finalData, info.hasAccessibilityOptions));
1343
+ editor.editorUpload.uploadImagesAuto();
1344
+ api.close();
1345
+ };
1346
+ const imageSize = editor => url => {
1347
+ if (!isSafeImageUrl(editor, url)) {
1348
+ return Promise.resolve({
1349
+ width: '',
1350
+ height: ''
1351
+ });
1352
+ } else {
1353
+ return getImageSize(editor.documentBaseURI.toAbsolute(url)).then(dimensions => ({
1354
+ width: String(dimensions.width),
1355
+ height: String(dimensions.height)
1356
+ }));
1357
+ }
1358
+ };
1359
+ const createBlobCache = editor => (file, blobUri, dataUrl) => {
1360
+ var _a;
1361
+ return editor.editorUpload.blobCache.create({
1362
+ blob: file,
1363
+ blobUri,
1364
+ name: (_a = file.name) === null || _a === void 0 ? void 0 : _a.replace(/\.[^\.]+$/, ''),
1365
+ filename: file.name,
1366
+ base64: dataUrl.split(',')[1]
1367
+ });
1368
+ };
1369
+ const addToBlobCache = editor => blobInfo => {
1370
+ editor.editorUpload.blobCache.add(blobInfo);
1371
+ };
1372
+ const alertErr = editor => message => {
1373
+ editor.windowManager.alert(message);
1374
+ };
1375
+ const normalizeCss = editor => cssText => normalizeCss$1(editor, cssText);
1376
+ const parseStyle = editor => cssText => editor.dom.parseStyle(cssText);
1377
+ const serializeStyle = editor => (stylesArg, name) => editor.dom.serializeStyle(stylesArg, name);
1378
+ const uploadImage = editor => blobInfo => global$1(editor).upload([blobInfo], false).then(results => {
1379
+ var _a;
1380
+ if (results.length === 0) {
1381
+ return Promise.reject('Failed to upload image');
1382
+ } else if (results[0].status === false) {
1383
+ return Promise.reject((_a = results[0].error) === null || _a === void 0 ? void 0 : _a.message);
1384
+ } else {
1385
+ return results[0];
1386
+ }
1387
+ });
1388
+ const Dialog = editor => {
1389
+ const helpers = {
1390
+ imageSize: imageSize(editor),
1391
+ addToBlobCache: addToBlobCache(editor),
1392
+ createBlobCache: createBlobCache(editor),
1393
+ alertErr: alertErr(editor),
1394
+ normalizeCss: normalizeCss(editor),
1395
+ parseStyle: parseStyle(editor),
1396
+ serializeStyle: serializeStyle(editor),
1397
+ uploadImage: uploadImage(editor)
1398
+ };
1399
+ const open = () => {
1400
+ collect(editor).then(info => {
1401
+ const state = createState(info);
1402
+ return {
1403
+ title: 'Insert/Edit Image',
1404
+ size: 'normal',
1405
+ body: makeDialogBody(info),
1406
+ buttons: [
1407
+ {
1408
+ type: 'cancel',
1409
+ name: 'cancel',
1410
+ text: 'Cancel'
1411
+ },
1412
+ {
1413
+ type: 'submit',
1414
+ name: 'save',
1415
+ text: 'Save',
1416
+ primary: true
1417
+ }
1418
+ ],
1419
+ initialData: fromImageData(info.image),
1420
+ onSubmit: submitHandler(editor, info, helpers),
1421
+ onChange: changeHandler(helpers, info, state),
1422
+ onClose: closeHandler(state)
1423
+ };
1424
+ }).then(editor.windowManager.open);
1425
+ };
1426
+ return { open };
1427
+ };
1428
+
1429
+ const register$1 = editor => {
1430
+ editor.addCommand('mceImage', Dialog(editor).open);
1431
+ editor.addCommand('mceUpdateImage', (_ui, data) => {
1432
+ editor.undoManager.transact(() => insertOrUpdateImage(editor, data));
1433
+ });
1434
+ };
1435
+
1436
+ const hasImageClass = node => {
1437
+ const className = node.attr('class');
1438
+ return isNonNullable(className) && /\bimage\b/.test(className);
1439
+ };
1440
+ const toggleContentEditableState = state => nodes => {
1441
+ let i = nodes.length;
1442
+ const toggleContentEditable = node => {
1443
+ node.attr('contenteditable', state ? 'true' : null);
1444
+ };
1445
+ while (i--) {
1446
+ const node = nodes[i];
1447
+ if (hasImageClass(node)) {
1448
+ node.attr('contenteditable', state ? 'false' : null);
1449
+ global.each(node.getAll('figcaption'), toggleContentEditable);
1450
+ }
1451
+ }
1452
+ };
1453
+ const setup = editor => {
1454
+ editor.on('PreInit', () => {
1455
+ editor.parser.addNodeFilter('figure', toggleContentEditableState(true));
1456
+ editor.serializer.addNodeFilter('figure', toggleContentEditableState(false));
1457
+ });
1458
+ };
1459
+
1460
+ const onSetupEditable = editor => api => {
1461
+ const nodeChanged = () => {
1462
+ api.setEnabled(editor.selection.isEditable());
1463
+ };
1464
+ editor.on('NodeChange', nodeChanged);
1465
+ nodeChanged();
1466
+ return () => {
1467
+ editor.off('NodeChange', nodeChanged);
1468
+ };
1469
+ };
1470
+ const register = editor => {
1471
+ editor.ui.registry.addToggleButton('image', {
1472
+ icon: 'image',
1473
+ tooltip: 'Insert/edit image',
1474
+ onAction: Dialog(editor).open,
1475
+ onSetup: buttonApi => {
1476
+ buttonApi.setActive(isNonNullable(getSelectedImage(editor)));
1477
+ const unbindSelectorChanged = editor.selection.selectorChangedWithUnbind('img:not([data-mce-object]):not([data-mce-placeholder]),figure.image', buttonApi.setActive).unbind;
1478
+ const unbindEditable = onSetupEditable(editor)(buttonApi);
1479
+ return () => {
1480
+ unbindSelectorChanged();
1481
+ unbindEditable();
1482
+ };
1483
+ }
1484
+ });
1485
+ editor.ui.registry.addMenuItem('image', {
1486
+ icon: 'image',
1487
+ text: 'Image...',
1488
+ onAction: Dialog(editor).open,
1489
+ onSetup: onSetupEditable(editor)
1490
+ });
1491
+ editor.ui.registry.addContextMenu('image', { update: element => editor.selection.isEditable() && (isFigure(element) || isImage(element) && !isPlaceholderImage(element)) ? ['image'] : [] });
1492
+ };
1493
+
1494
+ var Plugin = () => {
1495
+ global$4.add('image', editor => {
1496
+ register$2(editor);
1497
+ setup(editor);
1498
+ register(editor);
1499
+ register$1(editor);
1500
+ });
1501
+ };
1502
+
1503
+ Plugin();
1504
+
1505
+ })();