@adgytec/adgytec-web-ui-components 2.1.7 → 2.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (589) hide show
  1. package/dist/App.d.ts +3 -0
  2. package/dist/assets/BaseCalendar.css +1 -1
  3. package/dist/assets/core.css +1 -1
  4. package/dist/chunks/ActionDialog.map +1 -1
  5. package/dist/chunks/AppBarAction.map +1 -1
  6. package/dist/chunks/AppBarAvatar +38 -30
  7. package/dist/chunks/AppBarAvatar.map +1 -1
  8. package/dist/chunks/AppBarHeadline +18 -12
  9. package/dist/chunks/AppBarHeadline.map +1 -1
  10. package/dist/chunks/BaseCalendar +113 -84
  11. package/dist/chunks/BaseCalendar.map +1 -1
  12. package/dist/chunks/BottomSheet +23 -16
  13. package/dist/chunks/BottomSheet.map +1 -1
  14. package/dist/chunks/BottomSheetModal.map +1 -1
  15. package/dist/chunks/ButtonGroup +28 -20
  16. package/dist/chunks/ButtonGroup.map +1 -1
  17. package/dist/chunks/CalendarCell.map +1 -1
  18. package/dist/chunks/CalendarGrid +40 -22
  19. package/dist/chunks/CalendarGrid.map +1 -1
  20. package/dist/chunks/CalendarMenuItem +18 -9
  21. package/dist/chunks/CalendarMenuItem.map +1 -1
  22. package/dist/chunks/CenteredSlider.map +1 -1
  23. package/dist/chunks/ComboBox.map +1 -1
  24. package/dist/chunks/ComboBoxPopover.map +1 -1
  25. package/dist/chunks/ComboBoxTrigger +66 -44
  26. package/dist/chunks/ComboBoxTrigger.map +1 -1
  27. package/dist/chunks/ConnectedButtonGroup.map +1 -1
  28. package/dist/chunks/Dialog +21 -12
  29. package/dist/chunks/Dialog.map +1 -1
  30. package/dist/chunks/Disclosure +17 -8
  31. package/dist/chunks/Disclosure.map +1 -1
  32. package/dist/chunks/DisclosureGroup +28 -15
  33. package/dist/chunks/DisclosureGroup.map +1 -1
  34. package/dist/chunks/DisclosureHeader +53 -35
  35. package/dist/chunks/DisclosureHeader.map +1 -1
  36. package/dist/chunks/DisclosurePanel +22 -12
  37. package/dist/chunks/DisclosurePanel.map +1 -1
  38. package/dist/chunks/Divider +18 -9
  39. package/dist/chunks/Divider.map +1 -1
  40. package/dist/chunks/FieldError +18 -9
  41. package/dist/chunks/FieldError.map +1 -1
  42. package/dist/chunks/Icon +20 -15
  43. package/dist/chunks/Icon.map +1 -1
  44. package/dist/chunks/Input +72 -64
  45. package/dist/chunks/Input.map +1 -1
  46. package/dist/chunks/Input2 +82 -72
  47. package/dist/chunks/Input2.map +1 -1
  48. package/dist/chunks/Loader +17 -10
  49. package/dist/chunks/Loader.map +1 -1
  50. package/dist/chunks/MenuPopover +17 -8
  51. package/dist/chunks/MenuPopover.map +1 -1
  52. package/dist/chunks/Modal +17 -8
  53. package/dist/chunks/Modal.map +1 -1
  54. package/dist/chunks/ModalOverlay +17 -8
  55. package/dist/chunks/ModalOverlay.map +1 -1
  56. package/dist/chunks/Navigation +46 -36
  57. package/dist/chunks/Navigation.map +1 -1
  58. package/dist/chunks/NavigationScrollContainer +37 -27
  59. package/dist/chunks/NavigationScrollContainer.map +1 -1
  60. package/dist/chunks/NavigationSection +16 -7
  61. package/dist/chunks/NavigationSection.map +1 -1
  62. package/dist/chunks/NavigationSectionLabel +18 -9
  63. package/dist/chunks/NavigationSectionLabel.map +1 -1
  64. package/dist/chunks/NavigationState.map +1 -1
  65. package/dist/chunks/Popover +17 -8
  66. package/dist/chunks/Popover.map +1 -1
  67. package/dist/chunks/Radio +59 -52
  68. package/dist/chunks/Radio.map +1 -1
  69. package/dist/chunks/RichTooltip +17 -8
  70. package/dist/chunks/RichTooltip.map +1 -1
  71. package/dist/chunks/RichTooltipActions +16 -7
  72. package/dist/chunks/RichTooltipActions.map +1 -1
  73. package/dist/chunks/RichTooltipInfo +16 -7
  74. package/dist/chunks/RichTooltipInfo.map +1 -1
  75. package/dist/chunks/SearchField.map +1 -1
  76. package/dist/chunks/SelectPopover +17 -8
  77. package/dist/chunks/SelectPopover.map +1 -1
  78. package/dist/chunks/SelectTrigger +34 -24
  79. package/dist/chunks/SelectTrigger.map +1 -1
  80. package/dist/chunks/SideSheet +64 -52
  81. package/dist/chunks/SideSheet.map +1 -1
  82. package/dist/chunks/SideSheetModal.map +1 -1
  83. package/dist/chunks/Slider.map +1 -1
  84. package/dist/chunks/SliderOutput +21 -16
  85. package/dist/chunks/SliderOutput.map +1 -1
  86. package/dist/chunks/SliderStops.map +1 -1
  87. package/dist/chunks/Snackbar.map +1 -1
  88. package/dist/chunks/SplitButtonTrigger +48 -38
  89. package/dist/chunks/SplitButtonTrigger.map +1 -1
  90. package/dist/chunks/SubmenuPopover.map +1 -1
  91. package/dist/chunks/Switch.map +1 -1
  92. package/dist/chunks/Tab +41 -29
  93. package/dist/chunks/Tab.map +1 -1
  94. package/dist/chunks/TabList +16 -8
  95. package/dist/chunks/TabList.map +1 -1
  96. package/dist/chunks/TabPanel +16 -8
  97. package/dist/chunks/TabPanel.map +1 -1
  98. package/dist/chunks/TabPanels +17 -9
  99. package/dist/chunks/TabPanels.map +1 -1
  100. package/dist/chunks/Tabs +17 -8
  101. package/dist/chunks/Tabs.map +1 -1
  102. package/dist/chunks/Tag.map +1 -1
  103. package/dist/chunks/ThemeSelector +73 -72
  104. package/dist/chunks/ThemeSelector.map +1 -1
  105. package/dist/chunks/Toolbar +20 -12
  106. package/dist/chunks/Toolbar.map +1 -1
  107. package/dist/chunks/Tooltip.map +1 -1
  108. package/dist/chunks/compiler-runtime +24 -0
  109. package/dist/chunks/compiler-runtime.map +1 -0
  110. package/dist/chunks/core +75 -68
  111. package/dist/chunks/core.map +1 -1
  112. package/dist/chunks/core3.map +1 -1
  113. package/dist/chunks/core8.map +1 -1
  114. package/dist/chunks/navContext.map +1 -1
  115. package/dist/chunks/useGlobalListeners +2 -2
  116. package/dist/chunks/useGlobalListeners.map +1 -1
  117. package/dist/chunks/useHover +13 -5
  118. package/dist/chunks/useHover.map +1 -1
  119. package/dist/chunks/usePress +12 -2
  120. package/dist/chunks/usePress.map +1 -1
  121. package/dist/chunks/useSplash +42 -27
  122. package/dist/chunks/useSplash.map +1 -1
  123. package/dist/components/AppBar/core/index.js.map +1 -1
  124. package/dist/components/Button/Button/index.js +61 -48
  125. package/dist/components/Button/Button/index.js.map +1 -1
  126. package/dist/components/Button/ButtonGroups/ButtonGroupContext/index.js.map +1 -1
  127. package/dist/components/Button/IconButton/index.js.map +1 -1
  128. package/dist/components/Button/LinkButton/index.js +61 -48
  129. package/dist/components/Button/LinkButton/index.js.map +1 -1
  130. package/dist/components/Button/LinkIconButton/index.js.map +1 -1
  131. package/dist/components/Button/SplitButton/SplitButtonContext/index.js.map +1 -1
  132. package/dist/components/Button/SplitButton/SplitButtonPrimary/index.js.map +1 -1
  133. package/dist/components/Button/ToggleButton/index.js +69 -54
  134. package/dist/components/Button/ToggleButton/index.js.map +1 -1
  135. package/dist/components/Button/ToggleIconButton/index.js.map +1 -1
  136. package/dist/{src/components → components}/Button/core/withTooltip.d.ts +1 -1
  137. package/dist/components/Calendar/Calendar/index.js +22 -12
  138. package/dist/components/Calendar/Calendar/index.js.map +1 -1
  139. package/dist/components/Calendar/CalendarMonthMenu/index.js +38 -33
  140. package/dist/components/Calendar/CalendarMonthMenu/index.js.map +1 -1
  141. package/dist/components/Calendar/CalendarYearMenu/index.js +31 -26
  142. package/dist/components/Calendar/CalendarYearMenu/index.js.map +1 -1
  143. package/dist/components/Calendar/RangeCalendar/index.js +25 -15
  144. package/dist/components/Calendar/RangeCalendar/index.js.map +1 -1
  145. package/dist/components/Calendar/core/useCalendarState.d.ts +4 -0
  146. package/dist/components/Dialog/core/index.js.map +1 -1
  147. package/dist/components/Disclosure/context/index.js +11 -12
  148. package/dist/components/Disclosure/context/index.js.map +1 -1
  149. package/dist/components/Image/index.js.map +1 -1
  150. package/dist/components/Input/CharacterCount/index.js +18 -10
  151. package/dist/components/Input/CharacterCount/index.js.map +1 -1
  152. package/dist/{src/components → components}/Input/DateField/DateField.d.ts +1 -1
  153. package/dist/components/Input/DateField/index.js.map +1 -1
  154. package/dist/{src/components → components}/Input/DatePicker/DatePicker/DatePicker.d.ts +1 -1
  155. package/dist/components/Input/DatePicker/DatePicker/index.js.map +1 -1
  156. package/dist/{src/components → components}/Input/DatePicker/DateRangePicker/DateRangePicker.d.ts +1 -1
  157. package/dist/components/Input/DatePicker/DateRangePicker/index.js.map +1 -1
  158. package/dist/components/Input/Description/index.js +21 -10
  159. package/dist/components/Input/Description/index.js.map +1 -1
  160. package/dist/components/Input/Label/index.js +18 -10
  161. package/dist/components/Input/Label/index.js.map +1 -1
  162. package/dist/{src/components → components}/Input/Select/ComboBox/ComboBox.d.ts +1 -1
  163. package/dist/{src/components → components}/Input/Select/Select/Select.d.ts +1 -1
  164. package/dist/components/Input/Select/Select/index.js.map +1 -1
  165. package/dist/components/Input/Select/SelectItem/index.js.map +1 -1
  166. package/dist/{src/components → components}/Input/Select/SelectList/SelectList.d.ts +1 -1
  167. package/dist/components/Input/Select/SelectList/index.js.map +1 -1
  168. package/dist/{src/components → components}/Input/Select/SelectListSection/SelectListSection.d.ts +1 -1
  169. package/dist/components/Input/Select/SelectListSection/index.js +17 -9
  170. package/dist/components/Input/Select/SelectListSection/index.js.map +1 -1
  171. package/dist/components/Input/Select/SelectListSectionHeader/index.js +18 -10
  172. package/dist/components/Input/Select/SelectListSectionHeader/index.js.map +1 -1
  173. package/dist/{src/components → components}/Input/Slider/CenteredSlider/CenteredSlider.d.ts +1 -1
  174. package/dist/{src/components → components}/Input/Slider/RangeSlider/RangeSlider.d.ts +1 -1
  175. package/dist/components/Input/Slider/RangeSlider/index.js.map +1 -1
  176. package/dist/{src/components → components}/Input/Slider/Slider/Slider.d.ts +1 -1
  177. package/dist/components/Input/TextArea/index.js.map +1 -1
  178. package/dist/{src/components → components}/Input/TimeField/TimeField.d.ts +1 -1
  179. package/dist/components/Input/TimeField/index.js.map +1 -1
  180. package/dist/components/Input/hooks/index.js +16 -10
  181. package/dist/components/Input/hooks/index.js.map +1 -1
  182. package/dist/{src/components → components}/Menu/Menu/Menu.d.ts +1 -1
  183. package/dist/components/Menu/Menu/index.js +19 -14
  184. package/dist/components/Menu/Menu/index.js.map +1 -1
  185. package/dist/components/Menu/MenuItem/index.js +48 -38
  186. package/dist/components/Menu/MenuItem/index.js.map +1 -1
  187. package/dist/{src/components → components}/Menu/MenuSection/MenuSection.d.ts +1 -1
  188. package/dist/components/Menu/MenuSection/index.js +18 -10
  189. package/dist/components/Menu/MenuSection/index.js.map +1 -1
  190. package/dist/components/Menu/MenuSectionHeader/index.js +18 -10
  191. package/dist/components/Menu/MenuSectionHeader/index.js.map +1 -1
  192. package/dist/components/Menu/MenuShortcut/index.js +16 -8
  193. package/dist/components/Menu/MenuShortcut/index.js.map +1 -1
  194. package/dist/components/Menu/MenuTrailingText/index.js +16 -8
  195. package/dist/components/Menu/MenuTrailingText/index.js.map +1 -1
  196. package/dist/components/Menu/MenuTrigger/index.js +21 -11
  197. package/dist/components/Menu/MenuTrigger/index.js.map +1 -1
  198. package/dist/components/Menu/context/index.js.map +1 -1
  199. package/dist/components/Navigation/NavigationItem/NavigationButton/index.js +30 -21
  200. package/dist/components/Navigation/NavigationItem/NavigationButton/index.js.map +1 -1
  201. package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/index.js +30 -8
  202. package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/index.js.map +1 -1
  203. package/dist/components/Navigation/NavigationItem/NavigationLink/index.js +29 -20
  204. package/dist/components/Navigation/NavigationItem/NavigationLink/index.js.map +1 -1
  205. package/dist/components/Navigation/SubNavigation/SubNavigation/index.js +69 -56
  206. package/dist/components/Navigation/SubNavigation/SubNavigation/index.js.map +1 -1
  207. package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/index.js +48 -29
  208. package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/index.js.map +1 -1
  209. package/dist/{src/components → components}/Tabs/TabList/TabList.d.ts +1 -1
  210. package/dist/{src/components → components}/Tabs/TabPanels/TabPanels.d.ts +1 -1
  211. package/dist/{src/components → components}/ThemeSelector/ThemeItem.d.ts +1 -1
  212. package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/index.js +17 -9
  213. package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/index.js.map +1 -1
  214. package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/index.js +17 -9
  215. package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/index.js.map +1 -1
  216. package/dist/components/Tooltip/TooltipTrigger/index.js.map +1 -1
  217. package/dist/index.d.ts +22 -2
  218. package/dist/index.js.map +1 -1
  219. package/package.json +19 -19
  220. package/dist/src/App.d.ts +0 -3
  221. package/dist/src/components/Calendar/core/useCalendarState.d.ts +0 -3
  222. package/dist/src/index.d.ts +0 -22
  223. /package/dist/{src/components → components}/AppBar/AppBar/AppBar.d.ts +0 -0
  224. /package/dist/{src/components → components}/AppBar/AppBar/index.d.ts +0 -0
  225. /package/dist/{src/components → components}/AppBar/AppBar/types.d.ts +0 -0
  226. /package/dist/{src/components → components}/AppBar/AppBarAction/AppBarAction.d.ts +0 -0
  227. /package/dist/{src/components → components}/AppBar/AppBarAction/index.d.ts +0 -0
  228. /package/dist/{src/components → components}/AppBar/AppBarAvatar/AppBarAvatar.d.ts +0 -0
  229. /package/dist/{src/components → components}/AppBar/AppBarAvatar/index.d.ts +0 -0
  230. /package/dist/{src/components → components}/AppBar/AppBarHeadline/AppBarHeadline.d.ts +0 -0
  231. /package/dist/{src/components → components}/AppBar/AppBarHeadline/index.d.ts +0 -0
  232. /package/dist/{src/components → components}/AppBar/AppBarState/AppBarState.d.ts +0 -0
  233. /package/dist/{src/components → components}/AppBar/AppBarState/context.d.ts +0 -0
  234. /package/dist/{src/components → components}/AppBar/AppBarState/index.d.ts +0 -0
  235. /package/dist/{src/components → components}/AppBar/core/alignment.d.ts +0 -0
  236. /package/dist/{src/components → components}/AppBar/core/context.d.ts +0 -0
  237. /package/dist/{src/components → components}/AppBar/core/index.d.ts +0 -0
  238. /package/dist/{src/components → components}/AppBar/core/size.d.ts +0 -0
  239. /package/dist/{src/components → components}/AppBar/index.d.ts +0 -0
  240. /package/dist/{src/components → components}/Button/Button/Button.d.ts +0 -0
  241. /package/dist/{src/components → components}/Button/Button/index.d.ts +0 -0
  242. /package/dist/{src/components → components}/Button/Button/types.d.ts +0 -0
  243. /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroup/ButtonGroup.d.ts +0 -0
  244. /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroup/index.d.ts +0 -0
  245. /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroup/types.d.ts +0 -0
  246. /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroupContext/context.d.ts +0 -0
  247. /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroupContext/index.d.ts +0 -0
  248. /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroupContext/useButtonGroupContext.d.ts +0 -0
  249. /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroupContext/useConnectedButtonGroupContext.d.ts +0 -0
  250. /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButton/ConnectedButton.d.ts +0 -0
  251. /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButton/index.d.ts +0 -0
  252. /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButton/types.d.ts +0 -0
  253. /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButtonGroup/ConnectedButtonGroup.d.ts +0 -0
  254. /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButtonGroup/index.d.ts +0 -0
  255. /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButtonGroup/types.d.ts +0 -0
  256. /package/dist/{src/components → components}/Button/ButtonGroups/index.d.ts +0 -0
  257. /package/dist/{src/components → components}/Button/IconButton/IconButton.d.ts +0 -0
  258. /package/dist/{src/components → components}/Button/IconButton/index.d.ts +0 -0
  259. /package/dist/{src/components → components}/Button/IconButton/types.d.ts +0 -0
  260. /package/dist/{src/components → components}/Button/LinkButton/LinkButton.d.ts +0 -0
  261. /package/dist/{src/components → components}/Button/LinkButton/index.d.ts +0 -0
  262. /package/dist/{src/components → components}/Button/LinkButton/types.d.ts +0 -0
  263. /package/dist/{src/components → components}/Button/LinkIconButton/LinkIconButton.d.ts +0 -0
  264. /package/dist/{src/components → components}/Button/LinkIconButton/index.d.ts +0 -0
  265. /package/dist/{src/components → components}/Button/LinkIconButton/types.d.ts +0 -0
  266. /package/dist/{src/components → components}/Button/SplitButton/SplitButton/SplitButton.d.ts +0 -0
  267. /package/dist/{src/components → components}/Button/SplitButton/SplitButton/index.d.ts +0 -0
  268. /package/dist/{src/components → components}/Button/SplitButton/SplitButton/types.d.ts +0 -0
  269. /package/dist/{src/components → components}/Button/SplitButton/SplitButtonContext/context.d.ts +0 -0
  270. /package/dist/{src/components → components}/Button/SplitButton/SplitButtonContext/index.d.ts +0 -0
  271. /package/dist/{src/components → components}/Button/SplitButton/SplitButtonContext/useSplitButtonContext.d.ts +0 -0
  272. /package/dist/{src/components → components}/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.d.ts +0 -0
  273. /package/dist/{src/components → components}/Button/SplitButton/SplitButtonPrimary/index.d.ts +0 -0
  274. /package/dist/{src/components → components}/Button/SplitButton/SplitButtonPrimary/types.d.ts +0 -0
  275. /package/dist/{src/components → components}/Button/SplitButton/SplitButtonTrigger/SplitButtonTrigger.d.ts +0 -0
  276. /package/dist/{src/components → components}/Button/SplitButton/SplitButtonTrigger/index.d.ts +0 -0
  277. /package/dist/{src/components → components}/Button/SplitButton/SplitButtonTrigger/types.d.ts +0 -0
  278. /package/dist/{src/components → components}/Button/SplitButton/core/index.d.ts +0 -0
  279. /package/dist/{src/components → components}/Button/SplitButton/core/size.d.ts +0 -0
  280. /package/dist/{src/components → components}/Button/SplitButton/index.d.ts +0 -0
  281. /package/dist/{src/components → components}/Button/ToggleButton/ToggleButton.d.ts +0 -0
  282. /package/dist/{src/components → components}/Button/ToggleButton/index.d.ts +0 -0
  283. /package/dist/{src/components → components}/Button/ToggleButton/types.d.ts +0 -0
  284. /package/dist/{src/components → components}/Button/ToggleIconButton/ToggleIconButton.d.ts +0 -0
  285. /package/dist/{src/components → components}/Button/ToggleIconButton/index.d.ts +0 -0
  286. /package/dist/{src/components → components}/Button/ToggleIconButton/types.d.ts +0 -0
  287. /package/dist/{src/components → components}/Button/core/button.d.ts +0 -0
  288. /package/dist/{src/components → components}/Button/core/color.d.ts +0 -0
  289. /package/dist/{src/components → components}/Button/core/index.d.ts +0 -0
  290. /package/dist/{src/components → components}/Button/core/shape.d.ts +0 -0
  291. /package/dist/{src/components → components}/Button/core/sizes.d.ts +0 -0
  292. /package/dist/{src/components → components}/Button/core/useButtonConfig.d.ts +0 -0
  293. /package/dist/{src/components → components}/Button/core/variant.d.ts +0 -0
  294. /package/dist/{src/components → components}/Button/core/width.d.ts +0 -0
  295. /package/dist/{src/components → components}/Button/index.d.ts +0 -0
  296. /package/dist/{src/components → components}/Calendar/BaseCalendar/BaseCalendar.d.ts +0 -0
  297. /package/dist/{src/components → components}/Calendar/BaseCalendar/index.d.ts +0 -0
  298. /package/dist/{src/components → components}/Calendar/Calendar/Calendar.d.ts +0 -0
  299. /package/dist/{src/components → components}/Calendar/Calendar/index.d.ts +0 -0
  300. /package/dist/{src/components → components}/Calendar/CalendarCell/CalendarCell.d.ts +0 -0
  301. /package/dist/{src/components → components}/Calendar/CalendarCell/index.d.ts +0 -0
  302. /package/dist/{src/components → components}/Calendar/CalendarGrid/CalendarGrid.d.ts +0 -0
  303. /package/dist/{src/components → components}/Calendar/CalendarGrid/index.d.ts +0 -0
  304. /package/dist/{src/components → components}/Calendar/CalendarMenuItem/CalendarMenuItem.d.ts +0 -0
  305. /package/dist/{src/components → components}/Calendar/CalendarMenuItem/index.d.ts +0 -0
  306. /package/dist/{src/components → components}/Calendar/CalendarMonthMenu/CalendarMonthMenu.d.ts +0 -0
  307. /package/dist/{src/components → components}/Calendar/CalendarMonthMenu/index.d.ts +0 -0
  308. /package/dist/{src/components → components}/Calendar/CalendarYearMenu/CalendarYearMenu.d.ts +0 -0
  309. /package/dist/{src/components → components}/Calendar/CalendarYearMenu/index.d.ts +0 -0
  310. /package/dist/{src/components → components}/Calendar/RangeCalendar/RangeCalendar.d.ts +0 -0
  311. /package/dist/{src/components → components}/Calendar/RangeCalendar/index.d.ts +0 -0
  312. /package/dist/{src/components → components}/Calendar/core/calendar.d.ts +0 -0
  313. /package/dist/{src/components → components}/Calendar/core/index.d.ts +0 -0
  314. /package/dist/{src/components → components}/Calendar/index.d.ts +0 -0
  315. /package/dist/{src/components → components}/Dialog/ActionDialog/ActionDialog.d.ts +0 -0
  316. /package/dist/{src/components → components}/Dialog/ActionDialog/index.d.ts +0 -0
  317. /package/dist/{src/components → components}/Dialog/ActionDialog/types.d.ts +0 -0
  318. /package/dist/{src/components → components}/Dialog/Dialog/Dialog.d.ts +0 -0
  319. /package/dist/{src/components → components}/Dialog/Dialog/index.d.ts +0 -0
  320. /package/dist/{src/components → components}/Dialog/Modal/Modal.d.ts +0 -0
  321. /package/dist/{src/components → components}/Dialog/Modal/index.d.ts +0 -0
  322. /package/dist/{src/components → components}/Dialog/ModalOverlay/ModalOverlay.d.ts +0 -0
  323. /package/dist/{src/components → components}/Dialog/ModalOverlay/index.d.ts +0 -0
  324. /package/dist/{src/components → components}/Dialog/core/context.d.ts +0 -0
  325. /package/dist/{src/components → components}/Dialog/core/index.d.ts +0 -0
  326. /package/dist/{src/components → components}/Dialog/core/typography.d.ts +0 -0
  327. /package/dist/{src/components → components}/Dialog/index.d.ts +0 -0
  328. /package/dist/{src/components → components}/Disclosure/Disclosure/Disclosure.d.ts +0 -0
  329. /package/dist/{src/components → components}/Disclosure/Disclosure/index.d.ts +0 -0
  330. /package/dist/{src/components → components}/Disclosure/DisclosureGroup/DisclosureGroup.d.ts +0 -0
  331. /package/dist/{src/components → components}/Disclosure/DisclosureGroup/index.d.ts +0 -0
  332. /package/dist/{src/components → components}/Disclosure/DisclosureHeader/DisclosureHeader.d.ts +0 -0
  333. /package/dist/{src/components → components}/Disclosure/DisclosureHeader/index.d.ts +0 -0
  334. /package/dist/{src/components → components}/Disclosure/DisclosurePanel/DisclosurePanel.d.ts +0 -0
  335. /package/dist/{src/components → components}/Disclosure/DisclosurePanel/index.d.ts +0 -0
  336. /package/dist/{src/components → components}/Disclosure/context/context.d.ts +0 -0
  337. /package/dist/{src/components → components}/Disclosure/context/index.d.ts +0 -0
  338. /package/dist/{src/components → components}/Disclosure/context/useDisclosureTypographyContext.d.ts +0 -0
  339. /package/dist/{src/components → components}/Disclosure/index.d.ts +0 -0
  340. /package/dist/{src/components → components}/Divider/Divider.d.ts +0 -0
  341. /package/dist/{src/components → components}/Divider/index.d.ts +0 -0
  342. /package/dist/{src/components → components}/Icon/Icon.d.ts +0 -0
  343. /package/dist/{src/components → components}/Icon/index.d.ts +0 -0
  344. /package/dist/{src/components → components}/Icon/types.d.ts +0 -0
  345. /package/dist/{src/components → components}/Image/Image.d.ts +0 -0
  346. /package/dist/{src/components → components}/Image/index.d.ts +0 -0
  347. /package/dist/{src/components → components}/Image/types.d.ts +0 -0
  348. /package/dist/{src/components → components}/Input/CharacterCount/CharacterCount.d.ts +0 -0
  349. /package/dist/{src/components → components}/Input/CharacterCount/index.d.ts +0 -0
  350. /package/dist/{src/components → components}/Input/Checkbox/Checkbox.d.ts +0 -0
  351. /package/dist/{src/components → components}/Input/Checkbox/CheckboxGroup.d.ts +0 -0
  352. /package/dist/{src/components → components}/Input/Checkbox/context.d.ts +0 -0
  353. /package/dist/{src/components → components}/Input/Checkbox/index.d.ts +0 -0
  354. /package/dist/{src/components → components}/Input/Checkbox/types.d.ts +0 -0
  355. /package/dist/{src/components → components}/Input/DateField/index.d.ts +0 -0
  356. /package/dist/{src/components → components}/Input/DateField/types.d.ts +0 -0
  357. /package/dist/{src/components → components}/Input/DatePicker/DatePicker/index.d.ts +0 -0
  358. /package/dist/{src/components → components}/Input/DatePicker/DatePicker/types.d.ts +0 -0
  359. /package/dist/{src/components → components}/Input/DatePicker/DateRangePicker/index.d.ts +0 -0
  360. /package/dist/{src/components → components}/Input/DatePicker/DateRangePicker/types.d.ts +0 -0
  361. /package/dist/{src/components → components}/Input/DatePicker/core/datePicker.d.ts +0 -0
  362. /package/dist/{src/components → components}/Input/DatePicker/core/index.d.ts +0 -0
  363. /package/dist/{src/components → components}/Input/DatePicker/index.d.ts +0 -0
  364. /package/dist/{src/components → components}/Input/Description/Description.d.ts +0 -0
  365. /package/dist/{src/components → components}/Input/Description/index.d.ts +0 -0
  366. /package/dist/{src/components → components}/Input/FieldError/FieldError.d.ts +0 -0
  367. /package/dist/{src/components → components}/Input/FieldError/index.d.ts +0 -0
  368. /package/dist/{src/components → components}/Input/Input/Input.d.ts +0 -0
  369. /package/dist/{src/components → components}/Input/Input/InputButton.d.ts +0 -0
  370. /package/dist/{src/components → components}/Input/Input/handleInputButton.d.ts +0 -0
  371. /package/dist/{src/components → components}/Input/Input/index.d.ts +0 -0
  372. /package/dist/{src/components → components}/Input/Input/types.d.ts +0 -0
  373. /package/dist/{src/components → components}/Input/Label/Label.d.ts +0 -0
  374. /package/dist/{src/components → components}/Input/Label/index.d.ts +0 -0
  375. /package/dist/{src/components → components}/Input/Radio/Radio.d.ts +0 -0
  376. /package/dist/{src/components → components}/Input/Radio/RadioGroup.d.ts +0 -0
  377. /package/dist/{src/components → components}/Input/Radio/context.d.ts +0 -0
  378. /package/dist/{src/components → components}/Input/Radio/index.d.ts +0 -0
  379. /package/dist/{src/components → components}/Input/Radio/types.d.ts +0 -0
  380. /package/dist/{src/components → components}/Input/SearchField/SearchField.d.ts +0 -0
  381. /package/dist/{src/components → components}/Input/SearchField/index.d.ts +0 -0
  382. /package/dist/{src/components → components}/Input/SearchField/types.d.ts +0 -0
  383. /package/dist/{src/components → components}/Input/Select/ComboBox/context.d.ts +0 -0
  384. /package/dist/{src/components → components}/Input/Select/ComboBox/index.d.ts +0 -0
  385. /package/dist/{src/components → components}/Input/Select/ComboBox/types.d.ts +0 -0
  386. /package/dist/{src/components → components}/Input/Select/ComboBoxPopover/ComboBoxPopover.d.ts +0 -0
  387. /package/dist/{src/components → components}/Input/Select/ComboBoxPopover/index.d.ts +0 -0
  388. /package/dist/{src/components → components}/Input/Select/ComboBoxTrigger/ComboBoxTrigger.d.ts +0 -0
  389. /package/dist/{src/components → components}/Input/Select/ComboBoxTrigger/index.d.ts +0 -0
  390. /package/dist/{src/components → components}/Input/Select/Select/index.d.ts +0 -0
  391. /package/dist/{src/components → components}/Input/Select/Select/types.d.ts +0 -0
  392. /package/dist/{src/components → components}/Input/Select/SelectItem/SelectItem.d.ts +0 -0
  393. /package/dist/{src/components → components}/Input/Select/SelectItem/index.d.ts +0 -0
  394. /package/dist/{src/components → components}/Input/Select/SelectItem/types.d.ts +0 -0
  395. /package/dist/{src/components → components}/Input/Select/SelectList/index.d.ts +0 -0
  396. /package/dist/{src/components → components}/Input/Select/SelectListSection/index.d.ts +0 -0
  397. /package/dist/{src/components → components}/Input/Select/SelectListSectionHeader/SelectListSectionHeader.d.ts +0 -0
  398. /package/dist/{src/components → components}/Input/Select/SelectListSectionHeader/index.d.ts +0 -0
  399. /package/dist/{src/components → components}/Input/Select/SelectPopover/SelectPopover.d.ts +0 -0
  400. /package/dist/{src/components → components}/Input/Select/SelectPopover/index.d.ts +0 -0
  401. /package/dist/{src/components → components}/Input/Select/SelectTrigger/SelectTrigger.d.ts +0 -0
  402. /package/dist/{src/components → components}/Input/Select/SelectTrigger/index.d.ts +0 -0
  403. /package/dist/{src/components → components}/Input/Select/index.d.ts +0 -0
  404. /package/dist/{src/components → components}/Input/Slider/CenteredSlider/index.d.ts +0 -0
  405. /package/dist/{src/components → components}/Input/Slider/CenteredSlider/types.d.ts +0 -0
  406. /package/dist/{src/components → components}/Input/Slider/RangeSlider/index.d.ts +0 -0
  407. /package/dist/{src/components → components}/Input/Slider/RangeSlider/types.d.ts +0 -0
  408. /package/dist/{src/components → components}/Input/Slider/Slider/index.d.ts +0 -0
  409. /package/dist/{src/components → components}/Input/Slider/Slider/types.d.ts +0 -0
  410. /package/dist/{src/components → components}/Input/Slider/SliderOutput/SliderOutput.d.ts +0 -0
  411. /package/dist/{src/components → components}/Input/Slider/SliderOutput/index.d.ts +0 -0
  412. /package/dist/{src/components → components}/Input/Slider/SliderStops/SliderStops.d.ts +0 -0
  413. /package/dist/{src/components → components}/Input/Slider/SliderStops/core.d.ts +0 -0
  414. /package/dist/{src/components → components}/Input/Slider/SliderStops/index.d.ts +0 -0
  415. /package/dist/{src/components → components}/Input/Slider/SliderStops/types.d.ts +0 -0
  416. /package/dist/{src/components → components}/Input/Slider/SliderThumb/SliderThumb.d.ts +0 -0
  417. /package/dist/{src/components → components}/Input/Slider/SliderThumb/context.d.ts +0 -0
  418. /package/dist/{src/components → components}/Input/Slider/SliderThumb/index.d.ts +0 -0
  419. /package/dist/{src/components → components}/Input/Slider/core/color.d.ts +0 -0
  420. /package/dist/{src/components → components}/Input/Slider/core/index.d.ts +0 -0
  421. /package/dist/{src/components → components}/Input/Slider/core/size.d.ts +0 -0
  422. /package/dist/{src/components → components}/Input/Slider/core/slider.d.ts +0 -0
  423. /package/dist/{src/components → components}/Input/Slider/core/variant.d.ts +0 -0
  424. /package/dist/{src/components → components}/Input/Slider/index.d.ts +0 -0
  425. /package/dist/{src/components → components}/Input/Switch/Switch.d.ts +0 -0
  426. /package/dist/{src/components → components}/Input/Switch/index.d.ts +0 -0
  427. /package/dist/{src/components → components}/Input/Switch/types.d.ts +0 -0
  428. /package/dist/{src/components → components}/Input/TextArea/TextArea.d.ts +0 -0
  429. /package/dist/{src/components → components}/Input/TextArea/index.d.ts +0 -0
  430. /package/dist/{src/components → components}/Input/TextArea/types.d.ts +0 -0
  431. /package/dist/{src/components → components}/Input/TimeField/index.d.ts +0 -0
  432. /package/dist/{src/components → components}/Input/TimeField/types.d.ts +0 -0
  433. /package/dist/{src/components → components}/Input/core/index.d.ts +0 -0
  434. /package/dist/{src/components → components}/Input/core/input.d.ts +0 -0
  435. /package/dist/{src/components → components}/Input/core/textField.d.ts +0 -0
  436. /package/dist/{src/components → components}/Input/hooks/index.d.ts +0 -0
  437. /package/dist/{src/components → components}/Input/hooks/useControllableState.d.ts +0 -0
  438. /package/dist/{src/components → components}/Input/index.d.ts +0 -0
  439. /package/dist/{src/components → components}/Loader/Loader.d.ts +0 -0
  440. /package/dist/{src/components → components}/Loader/index.d.ts +0 -0
  441. /package/dist/{src/components → components}/Menu/Menu/index.d.ts +0 -0
  442. /package/dist/{src/components → components}/Menu/Menu/types.d.ts +0 -0
  443. /package/dist/{src/components → components}/Menu/MenuItem/MenuItem.d.ts +0 -0
  444. /package/dist/{src/components → components}/Menu/MenuItem/index.d.ts +0 -0
  445. /package/dist/{src/components → components}/Menu/MenuItem/types.d.ts +0 -0
  446. /package/dist/{src/components → components}/Menu/MenuPopover/MenuPopover.d.ts +0 -0
  447. /package/dist/{src/components → components}/Menu/MenuPopover/index.d.ts +0 -0
  448. /package/dist/{src/components → components}/Menu/MenuSection/index.d.ts +0 -0
  449. /package/dist/{src/components → components}/Menu/MenuSectionHeader/MenuSectionHeader.d.ts +0 -0
  450. /package/dist/{src/components → components}/Menu/MenuSectionHeader/index.d.ts +0 -0
  451. /package/dist/{src/components → components}/Menu/MenuShortcut/MenuShortcut.d.ts +0 -0
  452. /package/dist/{src/components → components}/Menu/MenuShortcut/index.d.ts +0 -0
  453. /package/dist/{src/components → components}/Menu/MenuTrailingText/MenuTrailingText.d.ts +0 -0
  454. /package/dist/{src/components → components}/Menu/MenuTrailingText/index.d.ts +0 -0
  455. /package/dist/{src/components → components}/Menu/MenuTrigger/MenuTrigger.d.ts +0 -0
  456. /package/dist/{src/components → components}/Menu/MenuTrigger/index.d.ts +0 -0
  457. /package/dist/{src/components → components}/Menu/SubmenuPopover/SubmenuPopover.d.ts +0 -0
  458. /package/dist/{src/components → components}/Menu/SubmenuPopover/index.d.ts +0 -0
  459. /package/dist/{src/components → components}/Menu/context/context.d.ts +0 -0
  460. /package/dist/{src/components → components}/Menu/context/index.d.ts +0 -0
  461. /package/dist/{src/components → components}/Menu/context/useMenuConfigContext.d.ts +0 -0
  462. /package/dist/{src/components → components}/Menu/core/color.d.ts +0 -0
  463. /package/dist/{src/components → components}/Menu/core/index.d.ts +0 -0
  464. /package/dist/{src/components → components}/Menu/core/layout.d.ts +0 -0
  465. /package/dist/{src/components → components}/Menu/core/menu.d.ts +0 -0
  466. /package/dist/{src/components → components}/Menu/index.d.ts +0 -0
  467. /package/dist/{src/components → components}/Navigation/Navigation/Navigation.d.ts +0 -0
  468. /package/dist/{src/components → components}/Navigation/Navigation/index.d.ts +0 -0
  469. /package/dist/{src/components → components}/Navigation/Navigation/navContext.d.ts +0 -0
  470. /package/dist/{src/components → components}/Navigation/Navigation/navRenderingContext.d.ts +0 -0
  471. /package/dist/{src/components → components}/Navigation/Navigation/types.d.ts +0 -0
  472. /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationButton/NavigationButton.d.ts +0 -0
  473. /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationButton/index.d.ts +0 -0
  474. /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationButton/types.d.ts +0 -0
  475. /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationItemIconRenderer/NavigationItemIconRenderer.d.ts +0 -0
  476. /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationItemIconRenderer/index.d.ts +0 -0
  477. /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationLink/NavigationLink.d.ts +0 -0
  478. /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationLink/index.d.ts +0 -0
  479. /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationLink/types.d.ts +0 -0
  480. /package/dist/{src/components → components}/Navigation/NavigationItem/core/index.d.ts +0 -0
  481. /package/dist/{src/components → components}/Navigation/NavigationItem/core/navigationItem.d.ts +0 -0
  482. /package/dist/{src/components → components}/Navigation/NavigationItem/index.d.ts +0 -0
  483. /package/dist/{src/components → components}/Navigation/NavigationScrollContainer/NavigationScrollContainer.d.ts +0 -0
  484. /package/dist/{src/components → components}/Navigation/NavigationScrollContainer/index.d.ts +0 -0
  485. /package/dist/{src/components → components}/Navigation/NavigationSection/NavigationSection/NavigationSection.d.ts +0 -0
  486. /package/dist/{src/components → components}/Navigation/NavigationSection/NavigationSection/index.d.ts +0 -0
  487. /package/dist/{src/components → components}/Navigation/NavigationSection/NavigationSectionLabel/NavigationSectionLabel.d.ts +0 -0
  488. /package/dist/{src/components → components}/Navigation/NavigationSection/NavigationSectionLabel/index.d.ts +0 -0
  489. /package/dist/{src/components → components}/Navigation/NavigationSection/index.d.ts +0 -0
  490. /package/dist/{src/components → components}/Navigation/NavigationState/NavigationState.d.ts +0 -0
  491. /package/dist/{src/components → components}/Navigation/NavigationState/context.d.ts +0 -0
  492. /package/dist/{src/components → components}/Navigation/NavigationState/index.d.ts +0 -0
  493. /package/dist/{src/components → components}/Navigation/NavigationState/types.d.ts +0 -0
  494. /package/dist/{src/components → components}/Navigation/SubNavigation/SubNavigation/SubNavigation.d.ts +0 -0
  495. /package/dist/{src/components → components}/Navigation/SubNavigation/SubNavigation/index.d.ts +0 -0
  496. /package/dist/{src/components → components}/Navigation/SubNavigation/SubNavigationTrigger/SubNavigationTrigger.d.ts +0 -0
  497. /package/dist/{src/components → components}/Navigation/SubNavigation/SubNavigationTrigger/index.d.ts +0 -0
  498. /package/dist/{src/components → components}/Navigation/SubNavigation/index.d.ts +0 -0
  499. /package/dist/{src/components → components}/Navigation/core/index.d.ts +0 -0
  500. /package/dist/{src/components → components}/Navigation/core/navLabelContext.d.ts +0 -0
  501. /package/dist/{src/components → components}/Navigation/core/navigation.d.ts +0 -0
  502. /package/dist/{src/components → components}/Navigation/core/navigationInfo.d.ts +0 -0
  503. /package/dist/{src/components → components}/Navigation/index.d.ts +0 -0
  504. /package/dist/{src/components → components}/Popover/Popover.d.ts +0 -0
  505. /package/dist/{src/components → components}/Popover/index.d.ts +0 -0
  506. /package/dist/{src/components → components}/Sheets/BottomSheet/BottomSheet.d.ts +0 -0
  507. /package/dist/{src/components → components}/Sheets/BottomSheet/index.d.ts +0 -0
  508. /package/dist/{src/components → components}/Sheets/BottomSheetModal/BottomSheetModal.d.ts +0 -0
  509. /package/dist/{src/components → components}/Sheets/BottomSheetModal/context.d.ts +0 -0
  510. /package/dist/{src/components → components}/Sheets/BottomSheetModal/index.d.ts +0 -0
  511. /package/dist/{src/components → components}/Sheets/BottomSheetModal/types.d.ts +0 -0
  512. /package/dist/{src/components → components}/Sheets/SideSheet/SideSheet.d.ts +0 -0
  513. /package/dist/{src/components → components}/Sheets/SideSheet/SideSheetDialog.d.ts +0 -0
  514. /package/dist/{src/components → components}/Sheets/SideSheet/index.d.ts +0 -0
  515. /package/dist/{src/components → components}/Sheets/SideSheet/types.d.ts +0 -0
  516. /package/dist/{src/components → components}/Sheets/SideSheetModal/SideSheetModal.d.ts +0 -0
  517. /package/dist/{src/components → components}/Sheets/SideSheetModal/context.d.ts +0 -0
  518. /package/dist/{src/components → components}/Sheets/SideSheetModal/index.d.ts +0 -0
  519. /package/dist/{src/components → components}/Sheets/SideSheetModal/types.d.ts +0 -0
  520. /package/dist/{src/components → components}/Sheets/core/index.d.ts +0 -0
  521. /package/dist/{src/components → components}/Sheets/core/layout.d.ts +0 -0
  522. /package/dist/{src/components → components}/Sheets/index.d.ts +0 -0
  523. /package/dist/{src/components → components}/Snackbar/SnackbarRegion.d.ts +0 -0
  524. /package/dist/{src/components → components}/Snackbar/context.d.ts +0 -0
  525. /package/dist/{src/components → components}/Snackbar/index.d.ts +0 -0
  526. /package/dist/{src/components → components}/Snackbar/types.d.ts +0 -0
  527. /package/dist/{src/components → components}/Splash/Splash.d.ts +0 -0
  528. /package/dist/{src/components → components}/Splash/index.d.ts +0 -0
  529. /package/dist/{src/components → components}/Splash/types.d.ts +0 -0
  530. /package/dist/{src/components → components}/Splash/useSplash.d.ts +0 -0
  531. /package/dist/{src/components → components}/Tabs/Tab/Tab.d.ts +0 -0
  532. /package/dist/{src/components → components}/Tabs/Tab/index.d.ts +0 -0
  533. /package/dist/{src/components → components}/Tabs/TabList/index.d.ts +0 -0
  534. /package/dist/{src/components → components}/Tabs/TabPanel/TabPanel.d.ts +0 -0
  535. /package/dist/{src/components → components}/Tabs/TabPanel/index.d.ts +0 -0
  536. /package/dist/{src/components → components}/Tabs/TabPanels/index.d.ts +0 -0
  537. /package/dist/{src/components → components}/Tabs/Tabs/Tabs.d.ts +0 -0
  538. /package/dist/{src/components → components}/Tabs/Tabs/index.d.ts +0 -0
  539. /package/dist/{src/components → components}/Tabs/index.d.ts +0 -0
  540. /package/dist/{src/components → components}/Tag/Tag.d.ts +0 -0
  541. /package/dist/{src/components → components}/Tag/core.d.ts +0 -0
  542. /package/dist/{src/components → components}/Tag/index.d.ts +0 -0
  543. /package/dist/{src/components → components}/Tag/types.d.ts +0 -0
  544. /package/dist/{src/components → components}/ThemeSelector/ThemeProvider.d.ts +0 -0
  545. /package/dist/{src/components → components}/ThemeSelector/ThemeSelector.d.ts +0 -0
  546. /package/dist/{src/components → components}/ThemeSelector/core.d.ts +0 -0
  547. /package/dist/{src/components → components}/ThemeSelector/index.d.ts +0 -0
  548. /package/dist/{src/components → components}/ThemeSelector/types.d.ts +0 -0
  549. /package/dist/{src/components → components}/Toolbar/Toolbar.d.ts +0 -0
  550. /package/dist/{src/components → components}/Toolbar/ToolbarToggleButtonGroup.d.ts +0 -0
  551. /package/dist/{src/components → components}/Toolbar/index.d.ts +0 -0
  552. /package/dist/{src/components → components}/Toolbar/types.d.ts +0 -0
  553. /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltip/RichTooltip.d.ts +0 -0
  554. /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltip/index.d.ts +0 -0
  555. /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipActions/RichTooltipActions.d.ts +0 -0
  556. /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipActions/index.d.ts +0 -0
  557. /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipInfo/RichTooltipInfo.d.ts +0 -0
  558. /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipInfo/index.d.ts +0 -0
  559. /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/RichTooltipSubhead.d.ts +0 -0
  560. /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/index.d.ts +0 -0
  561. /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/RichTooltipText.d.ts +0 -0
  562. /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/index.d.ts +0 -0
  563. /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/index.d.ts +0 -0
  564. /package/dist/{src/components → components}/Tooltip/RichTooltip/index.d.ts +0 -0
  565. /package/dist/{src/components → components}/Tooltip/Tooltip/Tooltip.d.ts +0 -0
  566. /package/dist/{src/components → components}/Tooltip/Tooltip/index.d.ts +0 -0
  567. /package/dist/{src/components → components}/Tooltip/TooltipTrigger/TooltipTrigger.d.ts +0 -0
  568. /package/dist/{src/components → components}/Tooltip/TooltipTrigger/index.d.ts +0 -0
  569. /package/dist/{src/components → components}/Tooltip/index.d.ts +0 -0
  570. /package/dist/{src/main.d.ts → main.d.ts} +0 -0
  571. /package/dist/{src/styles → styles}/core.d.ts +0 -0
  572. /package/dist/{src/styles → styles}/defaultTheme.d.ts +0 -0
  573. /package/dist/{src/utils → utils}/form/form.d.ts +0 -0
  574. /package/dist/{src/utils → utils}/form/index.d.ts +0 -0
  575. /package/dist/{src/utils → utils}/index.d.ts +0 -0
  576. /package/dist/{src/utils → utils}/ref/index.d.ts +0 -0
  577. /package/dist/{src/utils → utils}/ref/ref.d.ts +0 -0
  578. /package/dist/{src/utils → utils}/scroll/index.d.ts +0 -0
  579. /package/dist/{src/utils → utils}/scroll/scroll.d.ts +0 -0
  580. /package/dist/{src/utils → utils}/tapTarget/index.d.ts +0 -0
  581. /package/dist/{src/utils → utils}/tapTarget/tapTarget.d.ts +0 -0
  582. /package/dist/{src/utils → utils}/theme/build.d.ts +0 -0
  583. /package/dist/{src/utils → utils}/theme/index.d.ts +0 -0
  584. /package/dist/{src/utils → utils}/theme/types.d.ts +0 -0
  585. /package/dist/{src/utils → utils}/theme/useTheme.d.ts +0 -0
  586. /package/dist/{src/utils → utils}/typography/base.d.ts +0 -0
  587. /package/dist/{src/utils → utils}/typography/core.d.ts +0 -0
  588. /package/dist/{src/utils → utils}/typography/fluid.d.ts +0 -0
  589. /package/dist/{src/utils → utils}/typography/index.d.ts +0 -0
@@ -1,56 +1,69 @@
1
- import { t as e } from "../../../chunks/tapTarget";
2
- import { t } from "../../../chunks/Icon";
3
- import { t as n } from "../../../chunks/Loader";
4
- import { n as r, t as i } from "../../../chunks/useSplash";
5
- import { a, c as o, d as s, f as c, i as l, l as u, n as d, o as f, p, t as m, u as h } from "../../../chunks/core";
6
- import { clsx as g } from "clsx";
7
- import { jsx as _, jsxs as v } from "react/jsx-runtime";
8
- import { Button as y } from "react-aria-components";
1
+ import { t as e } from "../../../chunks/compiler-runtime";
2
+ import { t } from "../../../chunks/tapTarget";
3
+ import { t as n } from "../../../chunks/Icon";
4
+ import { t as r } from "../../../chunks/Loader";
5
+ import { n as i, t as a } from "../../../chunks/useSplash";
6
+ import { a as o, c as s, d as c, f as l, i as u, l as d, n as f, o as p, p as m, t as h, u as g } from "../../../chunks/core";
7
+ import { clsx as _ } from "clsx";
8
+ import { jsx as v, jsxs as y } from "react/jsx-runtime";
9
+ import { Button as b } from "react-aria-components";
9
10
  //#region src/components/Button/Button/Button.tsx
10
- var b = ({ size: b, shape: x, color: S, tooltip: C, icon: w, children: T, onPress: E, iconPlacement: D, className: O, ...k }) => {
11
- let { buttonColor: A, buttonShape: j, buttonSize: M, buttonIconPlacement: N } = d({
12
- size: b,
13
- shape: x,
14
- color: S,
11
+ var x = e(), S = (e) => {
12
+ let S = (0, x.c)(41), C, w, T, E, D, O, k, A, j, M;
13
+ S[0] === e ? (C = S[1], w = S[2], T = S[3], E = S[4], D = S[5], O = S[6], k = S[7], A = S[8], j = S[9], M = S[10]) : ({size: j, shape: A, color: T, tooltip: M, icon: E, children: C, onPress: O, iconPlacement: D, className: w, ...k} = e, S[0] = e, S[1] = C, S[2] = w, S[3] = T, S[4] = E, S[5] = D, S[6] = O, S[7] = k, S[8] = A, S[9] = j, S[10] = M);
14
+ let N;
15
+ S[11] !== T || S[12] !== D || S[13] !== A || S[14] !== j ? (N = {
16
+ size: j,
17
+ shape: A,
18
+ color: T,
15
19
  iconPlacement: D
16
- }), { splashInfo: P, handlePress: F } = i(E), I = typeof T == "function", L = p({
17
- shape: j,
18
- size: M,
19
- color: A
20
- });
21
- return m(/* @__PURE__ */ _(y, {
22
- onPress: F,
23
- className: (t) => g(c, e, o(M), h(A), typeof O == "function" ? O(t) : O),
20
+ }, S[11] = T, S[12] = D, S[13] = A, S[14] = j, S[15] = N) : N = S[15];
21
+ let { buttonColor: P, buttonShape: F, buttonSize: I, buttonIconPlacement: L } = f(N), { splashInfo: R, handlePress: z } = a(O), B = typeof C == "function", V;
22
+ S[16] !== P || S[17] !== F || S[18] !== I ? (V = m({
23
+ shape: F,
24
+ size: I,
25
+ color: P
26
+ }), S[16] = P, S[17] = F, S[18] = I, S[19] = V) : V = S[19];
27
+ let H = V, U;
28
+ S[20] !== P || S[21] !== I || S[22] !== w ? (U = (e) => _(l, t, s(I), g(P), typeof w == "function" ? w(e) : w), S[20] = P, S[21] = I, S[22] = w, S[23] = U) : U = S[23];
29
+ let W;
30
+ S[24] !== H || S[25] !== L || S[26] !== I || S[27] !== C || S[28] !== E || S[29] !== B || S[30] !== R ? (W = (e) => {
31
+ let { isPending: t, isDisabled: a, isFocusVisible: s, isFocused: l, isPressed: f, isHovered: m } = e, h = {
32
+ ...H,
33
+ "data-hovered": m || void 0,
34
+ "data-disabled": a || void 0,
35
+ "data-focused": l || void 0,
36
+ "data-focus-visible": s || void 0,
37
+ "data-pressed": f || void 0,
38
+ "data-visual-button": !0
39
+ }, g = u[I], b = t ? /* @__PURE__ */ v(r, { size: g }) : E && /* @__PURE__ */ v(n, {
40
+ icon: E,
41
+ size: g
42
+ });
43
+ return /* @__PURE__ */ y("span", {
44
+ className: _(c, d, p, o[I]),
45
+ ...h,
46
+ children: [
47
+ R && /* @__PURE__ */ v(i, { ...R }),
48
+ L === "start" && b,
49
+ B ? C(e) : C,
50
+ L === "end" && b
51
+ ]
52
+ });
53
+ }, S[24] = H, S[25] = L, S[26] = I, S[27] = C, S[28] = E, S[29] = B, S[30] = R, S[31] = W) : W = S[31];
54
+ let G;
55
+ S[32] !== H || S[33] !== z || S[34] !== k || S[35] !== U || S[36] !== W ? (G = /* @__PURE__ */ v(b, {
56
+ onPress: z,
57
+ className: U,
24
58
  ...k,
25
- ...L,
59
+ ...H,
26
60
  "data-button": !0,
27
- children: (e) => {
28
- let { isPending: i, isDisabled: o, isFocusVisible: c, isFocused: d, isPressed: p, isHovered: m } = e, h = {
29
- ...L,
30
- "data-hovered": m || void 0,
31
- "data-disabled": o || void 0,
32
- "data-focused": d || void 0,
33
- "data-focus-visible": c || void 0,
34
- "data-pressed": p || void 0,
35
- "data-visual-button": !0
36
- }, y = l[M], b = i ? /* @__PURE__ */ _(n, { size: y }) : w && /* @__PURE__ */ _(t, {
37
- icon: w,
38
- size: y
39
- });
40
- return /* @__PURE__ */ v("span", {
41
- className: g(s, u, f, a[M]),
42
- ...h,
43
- children: [
44
- P && /* @__PURE__ */ _(r, { ...P }),
45
- N === "start" && b,
46
- I ? T(e) : T,
47
- N === "end" && b
48
- ]
49
- });
50
- }
51
- }), C);
61
+ children: W
62
+ }), S[32] = H, S[33] = z, S[34] = k, S[35] = U, S[36] = W, S[37] = G) : G = S[37];
63
+ let K;
64
+ return S[38] !== G || S[39] !== M ? (K = h(G, M), S[38] = G, S[39] = M, S[40] = K) : K = S[40], K;
52
65
  };
53
66
  //#endregion
54
- export { b as Button };
67
+ export { S as Button };
55
68
 
56
69
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Button/Button/Button.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { ButtonProps } from \"./types\";\n\nexport const Button: React.FC<ButtonProps> = ({\n size,\n shape,\n color,\n tooltip,\n icon,\n children,\n onPress,\n iconPlacement,\n className,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize, buttonIconPlacement } =\n useButtonConfig({\n size,\n shape,\n color,\n iconPlacement,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...baseButtonDataAttrs}\n data-button\n >\n {(renderProps) => {\n const {\n isPending,\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n ...baseButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = ButtonIconSizeMapping[buttonSize];\n const iconComp = isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n );\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase,\n ButtonLabelTextMapping[buttonSize]\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {buttonIconPlacement === \"start\" && iconComp}\n\n {isChildFunc ? children(renderProps) : children}\n\n {buttonIconPlacement === \"end\" && iconComp}\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;;AAsBA,IAAa,KAAiC,EAC1C,SACA,UACA,UACA,YACA,SACA,aACA,YACA,kBACA,cACA,GAAG,QACD;CACF,IAAM,EAAE,gBAAa,gBAAa,eAAY,2BAC1C,EAAgB;EACZ;EACA;EACA;EACA;CACJ,CAAC,GAEC,EAAE,eAAY,mBAAgB,EAAU,CAAO,GAC/C,IAAc,OAAO,KAAa,YAElC,IAAsB,EAAuB;EAC/C,OAAO;EACP,MAAM;EACN,OAAO;CACX,CAAC;CAED,OAAO,EACH,kBAAC,GAAD;EACI,SAAS;EACT,YAAY,MACR,EACI,GACA,GACA,EAAiB,CAAU,GAC3B,EAAkB,CAAW,GAC7B,OAAO,KAAc,aACf,EAAU,CAAW,IACrB,CACV;EAEJ,GAAI;EACJ,GAAI;EACJ,eAAA;aAEE,MAAgB;GACd,IAAM,EACF,cACA,eACA,mBACA,cACA,cACA,iBACA,GAEE,IAAY;IACd,GAAG;IACH,gBAAgB,KAAa,KAAA;IAC7B,iBAAiB,KAAc,KAAA;IAC/B,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB,KAAkB,KAAA;IACxC,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB;GAC1B,GAEM,IAAW,EAAsB,IACjC,IAAW,IACb,kBAAC,GAAD,EAAQ,MAAM,EAAW,CAAA,IAEzB,KAAQ,kBAAC,GAAD;IAAY;IAAM,MAAM;GAAW,CAAA;GAE/C,OACI,kBAAC,QAAD;IACI,WAAW,EACP,GACA,GACA,GACA,EAAuB,EAC3B;IACA,GAAI;cAPR;KASK,KAAc,kBAAC,GAAD,EAAQ,GAAI,EAAa,CAAA;KAEvC,MAAwB,WAAW;KAEnC,IAAc,EAAS,CAAW,IAAI;KAEtC,MAAwB,SAAS;IAChC;;EAEd;CACQ,CAAA,GACZ,CACJ;AACJ"}
1
+ {"version":3,"file":"index.js","names":["renderProps","iconSize","icon","handlePress"],"sources":["../../../../src/components/Button/Button/Button.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { ButtonProps } from \"./types\";\n\nexport const Button: React.FC<ButtonProps> = ({\n size,\n shape,\n color,\n tooltip,\n icon,\n children,\n onPress,\n iconPlacement,\n className,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize, buttonIconPlacement } =\n useButtonConfig({\n size,\n shape,\n color,\n iconPlacement,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...baseButtonDataAttrs}\n data-button\n >\n {(renderProps) => {\n const {\n isPending,\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n ...baseButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = ButtonIconSizeMapping[buttonSize];\n const iconComp = isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n );\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase,\n ButtonLabelTextMapping[buttonSize]\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {buttonIconPlacement === \"start\" && iconComp}\n\n {isChildFunc ? children(renderProps) : children}\n\n {buttonIconPlacement === \"end\" && iconComp}\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/Button/ButtonGroups/ButtonGroupContext/context.ts","../../../../../src/components/Button/ButtonGroups/ButtonGroupContext/useButtonGroupContext.ts","../../../../../src/components/Button/ButtonGroups/ButtonGroupContext/useConnectedButtonGroupContext.ts"],"sourcesContent":["import { createContext } from \"react\";\nimport type {\n ButtonIconPlacement,\n ButtonShape,\n ButtonSize,\n ConnectedButtonGroupColor,\n CoreButtonColor,\n} from \"../../core\";\n\nexport type ButtonGroupContextValue = {\n size?: ButtonSize;\n shape?: ButtonShape;\n color?: CoreButtonColor;\n iconPlacement?: ButtonIconPlacement;\n};\n\nexport const ButtonGroupContext = createContext<ButtonGroupContextValue>({});\n\nexport type ConnectedButtonGroupContextValue = {\n size: ButtonSize;\n shape: ButtonShape;\n color: ConnectedButtonGroupColor;\n iconPlacement?: ButtonIconPlacement;\n};\n\nexport const ConnectedButtonGroupContext =\n createContext<ConnectedButtonGroupContextValue>({\n size: \"small\",\n shape: \"round\",\n color: \"filled\",\n });\n","import { useContext } from \"react\";\nimport { ButtonGroupContext } from \"./context\";\n\nexport function useButtonGroupContext() {\n return useContext(ButtonGroupContext);\n}\n","import { useContext } from \"react\";\nimport { ConnectedButtonGroupContext } from \"./context\";\n\nexport function useConnectedButtonGroupContext() {\n return useContext(ConnectedButtonGroupContext);\n}\n"],"mappings":";;AAgBA,IAAa,IAAqB,EAAuC,CAAC,CAAC,GAS9D,IACT,EAAgD;CAC5C,MAAM;CACN,OAAO;CACP,OAAO;AACX,CAAC;;;AC3BL,SAAgB,IAAwB;CACpC,OAAO,EAAW,CAAkB;AACxC;;;ACFA,SAAgB,IAAiC;CAC7C,OAAO,EAAW,CAA2B;AACjD"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/Button/ButtonGroups/ButtonGroupContext/context.ts","../../../../../src/components/Button/ButtonGroups/ButtonGroupContext/useButtonGroupContext.ts","../../../../../src/components/Button/ButtonGroups/ButtonGroupContext/useConnectedButtonGroupContext.ts"],"sourcesContent":["import { createContext } from \"react\";\nimport type {\n ButtonIconPlacement,\n ButtonShape,\n ButtonSize,\n ConnectedButtonGroupColor,\n CoreButtonColor,\n} from \"../../core\";\n\nexport type ButtonGroupContextValue = {\n size?: ButtonSize;\n shape?: ButtonShape;\n color?: CoreButtonColor;\n iconPlacement?: ButtonIconPlacement;\n};\n\nexport const ButtonGroupContext = createContext<ButtonGroupContextValue>({});\n\nexport type ConnectedButtonGroupContextValue = {\n size: ButtonSize;\n shape: ButtonShape;\n color: ConnectedButtonGroupColor;\n iconPlacement?: ButtonIconPlacement;\n};\n\nexport const ConnectedButtonGroupContext =\n createContext<ConnectedButtonGroupContextValue>({\n size: \"small\",\n shape: \"round\",\n color: \"filled\",\n });\n","import { useContext } from \"react\";\nimport { ButtonGroupContext } from \"./context\";\n\nexport function useButtonGroupContext() {\n return useContext(ButtonGroupContext);\n}\n","import { useContext } from \"react\";\nimport { ConnectedButtonGroupContext } from \"./context\";\n\nexport function useConnectedButtonGroupContext() {\n return useContext(ConnectedButtonGroupContext);\n}\n"],"mappings":";;AAgBA,IAAa,IAAqB,EAAuC,CAAC,CAAC,GAS9D,IACT,EAAgD;CAC5C,MAAM;CACN,OAAO;CACP,OAAO;AACX,CAAC;;;AC3BL,SAAO,IAAA;CAAA,OACI,EAAW,CAAkB;AAAC;;;ACDzC,SAAO,IAAA;CAAA,OACI,EAAW,CAA2B;AAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Button/IconButton/IconButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n IconButtonIconSizeMapping,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { IconButtonProps } from \"./types\";\n\nexport const IconButton: React.FC<IconButtonProps> = ({\n size,\n shape,\n color,\n width = \"default\",\n tooltip,\n icon,\n onPress,\n className,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize } = useButtonConfig({\n size,\n shape,\n color,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n const iconButtonDataAttrs = {\n ...baseButtonDataAttrs,\n \"data-width\": width,\n \"data-icon-button\": true,\n };\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...iconButtonDataAttrs}\n data-button\n >\n {({\n isPending,\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n }) => {\n const dataAttrs = {\n ...iconButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = IconButtonIconSizeMapping[buttonSize];\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n {isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n )}\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;;AAqBA,IAAa,KAAyC,EAClD,SACA,UACA,UACA,WAAQ,WACR,YACA,SACA,YACA,cACA,GAAG,QACD;CACF,IAAM,EAAE,gBAAa,gBAAa,kBAAe,EAAgB;EAC7D;EACA;EACA;CACJ,CAAC,GAEK,EAAE,eAAY,mBAAgB,EAAU,CAAO,GAQ/C,IAAsB;EACxB,GAPwB,EAAuB;GAC/C,OAAO;GACP,MAAM;GACN,OAAO;EACX,CAGO;EACH,cAAc;EACd,oBAAoB;CACxB;CAEA,OAAO,EACH,kBAAC,GAAD;EACI,SAAS;EACT,YAAY,MACR,EACI,GACA,GACA,EAAiB,CAAU,GAC3B,EAAkB,CAAW,GAC7B,OAAO,KAAc,aACf,EAAU,CAAW,IACrB,CACV;EAEJ,GAAI;EACJ,GAAI;EACJ,eAAA;aAEE,EACE,cACA,eACA,mBACA,cACA,cACA,mBACE;GACF,IAAM,IAAY;IACd,GAAG;IACH,gBAAgB,KAAa,KAAA;IAC7B,iBAAiB,KAAc,KAAA;IAC/B,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB,KAAkB,KAAA;IACxC,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB;GAC1B,GAEM,IAAW,EAA0B;GAC3C,OACI,kBAAC,QAAD;IACI,WAAW,EACP,GACA,GACA,CACJ;IACA,GAAI;cANR,CAQK,KAAc,kBAAC,GAAD,EAAQ,GAAI,EAAa,CAAA,GACvC,IACG,kBAAC,GAAD,EAAQ,MAAM,EAAW,CAAA,IAEzB,KAAQ,kBAAC,GAAD;KAAY;KAAM,MAAM;IAAW,CAAA,CAE7C;;EAEd;CACQ,CAAA,GACZ,CACJ;AACJ"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Button/IconButton/IconButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n IconButtonIconSizeMapping,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { IconButtonProps } from \"./types\";\n\nexport const IconButton: React.FC<IconButtonProps> = ({\n size,\n shape,\n color,\n width = \"default\",\n tooltip,\n icon,\n onPress,\n className,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize } = useButtonConfig({\n size,\n shape,\n color,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n const iconButtonDataAttrs = {\n ...baseButtonDataAttrs,\n \"data-width\": width,\n \"data-icon-button\": true,\n };\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...iconButtonDataAttrs}\n data-button\n >\n {({\n isPending,\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n }) => {\n const dataAttrs = {\n ...iconButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = IconButtonIconSizeMapping[buttonSize];\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n {isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n )}\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;;AAqBA,IAAa,KAAyC,EAClD,SACA,UACA,UACA,WAAQ,WACR,YACA,SACA,YACA,cACA,GAAG,QACD;CACF,IAAM,EAAE,gBAAa,gBAAa,kBAAe,EAAgB;EAC7D;EACA;EACA;CACJ,CAAC,GAEK,EAAE,eAAY,mBAAgB,EAAU,CAAO,GAQ/C,IAAsB;EACxB,GAPwB,EAAuB;GAC/C,OAAO;GACP,MAAM;GACN,OAAO;EACX,CAGO;EACH,cAAc;EACd,oBAAoB;CACxB;CAEA,OAAO,EACH,kBAAC,GAAD;EACI,SAAS;EACT,YAAY,MACR,EACI,GACA,GACA,EAAiB,CAAU,GAC3B,EAAkB,CAAW,GAC7B,OAAO,KAAc,aACf,EAAU,CAAW,IACrB,CACV;EAEJ,GAAI;EACJ,GAAI;EACJ,eAAA;aAEE,EACE,cACA,eACA,mBACA,cACA,cACA,mBACE;GACF,IAAM,IAAY;IACd,GAAG;IACH,gBAAgB,KAAa,KAAA;IAC7B,iBAAiB,KAAc,KAAA;IAC/B,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB,KAAkB,KAAA;IACxC,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB;GAC1B,GAEM,IAAW,EAA0B;GAC3C,OACI,kBAAC,QAAD;IACI,WAAW,EACP,GACA,GACA,CACJ;IACA,GAAI;cANR,CAQK,KAAc,kBAAC,GAAD,EAAQ,GAAI,EAAW,CAAA,GACrC,IACG,kBAAC,GAAD,EAAQ,MAAM,EAAS,CAAA,IAEvB,KAAQ,kBAAC,GAAD;KAAY;KAAM,MAAM;IAAS,CAAA,CAE3C;;EAEd;CACQ,CAAA,GACZ,CACJ;AACJ"}
@@ -1,56 +1,69 @@
1
- import { t as e } from "../../../chunks/tapTarget";
2
- import { t } from "../../../chunks/Icon";
3
- import { n, t as r } from "../../../chunks/useSplash";
4
- import { a as i, c as a, d as o, f as s, i as c, l, n as u, o as d, p as f, t as p, u as m } from "../../../chunks/core";
5
- import { clsx as h } from "clsx";
6
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
7
- import { Link as v } from "react-aria-components";
1
+ import { t as e } from "../../../chunks/compiler-runtime";
2
+ import { t } from "../../../chunks/tapTarget";
3
+ import { t as n } from "../../../chunks/Icon";
4
+ import { n as r, t as i } from "../../../chunks/useSplash";
5
+ import { a, c as o, d as s, f as c, i as l, l as u, n as d, o as f, p, t as m, u as h } from "../../../chunks/core";
6
+ import { clsx as g } from "clsx";
7
+ import { jsx as _, jsxs as v } from "react/jsx-runtime";
8
+ import { Link as y } from "react-aria-components";
8
9
  //#region src/components/Button/LinkButton/LinkButton.tsx
9
- var y = ({ size: y, shape: b, color: x, tooltip: S, icon: C, children: w, onPress: T, className: E, iconPlacement: D, ...O }) => {
10
- let { buttonColor: k, buttonShape: A, buttonSize: j, buttonIconPlacement: M } = u({
11
- size: y,
12
- shape: b,
13
- color: x,
14
- iconPlacement: D
15
- }), { splashInfo: N, handlePress: P } = r(T), F = typeof w == "function", I = f({
16
- shape: A,
17
- size: j,
18
- color: k
19
- });
20
- return p(/* @__PURE__ */ g(v, {
21
- onPress: P,
22
- className: (t) => h(s, e, a(j), m(k), typeof E == "function" ? E(t) : E),
10
+ var b = e(), x = (e) => {
11
+ let x = (0, b.c)(41), S, C, w, T, E, D, O, k, A, j;
12
+ x[0] === e ? (S = x[1], C = x[2], w = x[3], T = x[4], E = x[5], D = x[6], O = x[7], k = x[8], A = x[9], j = x[10]) : ({size: A, shape: k, color: w, tooltip: j, icon: T, children: S, onPress: D, className: C, iconPlacement: E, ...O} = e, x[0] = e, x[1] = S, x[2] = C, x[3] = w, x[4] = T, x[5] = E, x[6] = D, x[7] = O, x[8] = k, x[9] = A, x[10] = j);
13
+ let M;
14
+ x[11] !== w || x[12] !== E || x[13] !== k || x[14] !== A ? (M = {
15
+ size: A,
16
+ shape: k,
17
+ color: w,
18
+ iconPlacement: E
19
+ }, x[11] = w, x[12] = E, x[13] = k, x[14] = A, x[15] = M) : M = x[15];
20
+ let { buttonColor: N, buttonShape: P, buttonSize: F, buttonIconPlacement: I } = d(M), { splashInfo: L, handlePress: R } = i(D), z = typeof S == "function", B;
21
+ x[16] !== N || x[17] !== P || x[18] !== F ? (B = p({
22
+ shape: P,
23
+ size: F,
24
+ color: N
25
+ }), x[16] = N, x[17] = P, x[18] = F, x[19] = B) : B = x[19];
26
+ let V = B, H;
27
+ x[20] !== N || x[21] !== F || x[22] !== C ? (H = (e) => g(c, t, o(F), h(N), typeof C == "function" ? C(e) : C), x[20] = N, x[21] = F, x[22] = C, x[23] = H) : H = x[23];
28
+ let U;
29
+ x[24] !== V || x[25] !== I || x[26] !== F || x[27] !== S || x[28] !== T || x[29] !== z || x[30] !== L ? (U = (e) => {
30
+ let { isDisabled: t, isFocusVisible: i, isFocused: o, isPressed: c, isHovered: d } = e, p = {
31
+ ...V,
32
+ "data-hovered": d || void 0,
33
+ "data-disabled": t || void 0,
34
+ "data-focused": o || void 0,
35
+ "data-focus-visible": i || void 0,
36
+ "data-pressed": c || void 0,
37
+ "data-visual-button": !0
38
+ }, m = l[F], h = T && /* @__PURE__ */ _(n, {
39
+ icon: T,
40
+ size: m
41
+ });
42
+ return /* @__PURE__ */ v("span", {
43
+ className: g(s, u, f, a[F]),
44
+ ...p,
45
+ children: [
46
+ L && /* @__PURE__ */ _(r, { ...L }),
47
+ I === "start" && h,
48
+ z ? S(e) : S,
49
+ I === "end" && h
50
+ ]
51
+ });
52
+ }, x[24] = V, x[25] = I, x[26] = F, x[27] = S, x[28] = T, x[29] = z, x[30] = L, x[31] = U) : U = x[31];
53
+ let W;
54
+ x[32] !== V || x[33] !== R || x[34] !== O || x[35] !== H || x[36] !== U ? (W = /* @__PURE__ */ _(y, {
55
+ onPress: R,
56
+ className: H,
23
57
  ...O,
24
- ...I,
58
+ ...V,
25
59
  "data-button": !0,
26
60
  "data-link-button": !0,
27
- children: (e) => {
28
- let { isDisabled: r, isFocusVisible: a, isFocused: s, isPressed: u, isHovered: f } = e, p = {
29
- ...I,
30
- "data-hovered": f || void 0,
31
- "data-disabled": r || void 0,
32
- "data-focused": s || void 0,
33
- "data-focus-visible": a || void 0,
34
- "data-pressed": u || void 0,
35
- "data-visual-button": !0
36
- }, m = c[j], v = C && /* @__PURE__ */ g(t, {
37
- icon: C,
38
- size: m
39
- });
40
- return /* @__PURE__ */ _("span", {
41
- className: h(o, l, d, i[j]),
42
- ...p,
43
- children: [
44
- N && /* @__PURE__ */ g(n, { ...N }),
45
- M === "start" && v,
46
- F ? w(e) : w,
47
- M === "end" && v
48
- ]
49
- });
50
- }
51
- }), S);
61
+ children: U
62
+ }), x[32] = V, x[33] = R, x[34] = O, x[35] = H, x[36] = U, x[37] = W) : W = x[37];
63
+ let G;
64
+ return x[38] !== W || x[39] !== j ? (G = m(W, j), x[38] = W, x[39] = j, x[40] = G) : G = x[40], G;
52
65
  };
53
66
  //#endregion
54
- export { y as LinkButton };
67
+ export { x as LinkButton };
55
68
 
56
69
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Button/LinkButton/LinkButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Link } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { LinkButtonProps } from \"./types\";\n\nexport const LinkButton: React.FC<LinkButtonProps> = ({\n size,\n shape,\n color,\n tooltip,\n icon,\n children,\n onPress,\n className,\n iconPlacement,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize, buttonIconPlacement } =\n useButtonConfig({\n size,\n shape,\n color,\n iconPlacement,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n return withTooltip(\n <Link\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...baseButtonDataAttrs}\n data-button\n data-link-button\n >\n {(renderProps) => {\n const {\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n ...baseButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = ButtonIconSizeMapping[buttonSize];\n const iconComp = icon && <Icon icon={icon} size={iconSize} />;\n\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase,\n ButtonLabelTextMapping[buttonSize]\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {buttonIconPlacement === \"start\" && iconComp}\n\n {isChildFunc ? children(renderProps) : children}\n\n {buttonIconPlacement === \"end\" && iconComp}\n </span>\n );\n }}\n </Link>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;AAqBA,IAAa,KAAyC,EAClD,SACA,UACA,UACA,YACA,SACA,aACA,YACA,cACA,kBACA,GAAG,QACD;CACF,IAAM,EAAE,gBAAa,gBAAa,eAAY,2BAC1C,EAAgB;EACZ;EACA;EACA;EACA;CACJ,CAAC,GAEC,EAAE,eAAY,mBAAgB,EAAU,CAAO,GAC/C,IAAc,OAAO,KAAa,YAElC,IAAsB,EAAuB;EAC/C,OAAO;EACP,MAAM;EACN,OAAO;CACX,CAAC;CAED,OAAO,EACH,kBAAC,GAAD;EACI,SAAS;EACT,YAAY,MACR,EACI,GACA,GACA,EAAiB,CAAU,GAC3B,EAAkB,CAAW,GAC7B,OAAO,KAAc,aACf,EAAU,CAAW,IACrB,CACV;EAEJ,GAAI;EACJ,GAAI;EACJ,eAAA;EACA,oBAAA;aAEE,MAAgB;GACd,IAAM,EACF,eACA,mBACA,cACA,cACA,iBACA,GAEE,IAAY;IACd,GAAG;IACH,gBAAgB,KAAa,KAAA;IAC7B,iBAAiB,KAAc,KAAA;IAC/B,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB,KAAkB,KAAA;IACxC,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB;GAC1B,GAEM,IAAW,EAAsB,IACjC,IAAW,KAAQ,kBAAC,GAAD;IAAY;IAAM,MAAM;GAAW,CAAA;GAE5D,OACI,kBAAC,QAAD;IACI,WAAW,EACP,GACA,GACA,GACA,EAAuB,EAC3B;IACA,GAAI;cAPR;KASK,KAAc,kBAAC,GAAD,EAAQ,GAAI,EAAa,CAAA;KAEvC,MAAwB,WAAW;KAEnC,IAAc,EAAS,CAAW,IAAI;KAEtC,MAAwB,SAAS;IAChC;;EAEd;CACE,CAAA,GACN,CACJ;AACJ"}
1
+ {"version":3,"file":"index.js","names":["renderProps","icon","iconSize","handlePress"],"sources":["../../../../src/components/Button/LinkButton/LinkButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Link } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { LinkButtonProps } from \"./types\";\n\nexport const LinkButton: React.FC<LinkButtonProps> = ({\n size,\n shape,\n color,\n tooltip,\n icon,\n children,\n onPress,\n className,\n iconPlacement,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize, buttonIconPlacement } =\n useButtonConfig({\n size,\n shape,\n color,\n iconPlacement,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n return withTooltip(\n <Link\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...baseButtonDataAttrs}\n data-button\n data-link-button\n >\n {(renderProps) => {\n const {\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n ...baseButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = ButtonIconSizeMapping[buttonSize];\n const iconComp = icon && <Icon icon={icon} size={iconSize} />;\n\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase,\n ButtonLabelTextMapping[buttonSize]\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {buttonIconPlacement === \"start\" && iconComp}\n\n {isChildFunc ? children(renderProps) : children}\n\n {buttonIconPlacement === \"end\" && iconComp}\n </span>\n );\n }}\n </Link>,\n tooltip\n );\n};\n"],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Button/LinkIconButton/LinkIconButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Link } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n IconButtonIconSizeMapping,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { LinkIconButtonProps } from \"./types\";\n\nexport const LinkIconButton: React.FC<LinkIconButtonProps> = ({\n size,\n shape,\n color,\n width = \"default\",\n tooltip,\n icon,\n onPress,\n className,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize } = useButtonConfig({\n size,\n shape,\n color,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n const iconButtonDataAttrs = {\n ...baseButtonDataAttrs,\n \"data-width\": width,\n \"data-icon-button\": true,\n };\n\n return withTooltip(\n <Link\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...iconButtonDataAttrs}\n data-button\n data-link-button\n >\n {({\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n }) => {\n const dataAttrs = {\n ...iconButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = IconButtonIconSizeMapping[buttonSize];\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n {icon && <Icon icon={icon} size={iconSize} />}\n </span>\n );\n }}\n </Link>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;AAoBA,IAAa,KAAiD,EAC1D,SACA,UACA,UACA,WAAQ,WACR,YACA,SACA,YACA,cACA,GAAG,QACD;CACF,IAAM,EAAE,gBAAa,gBAAa,kBAAe,EAAgB;EAC7D;EACA;EACA;CACJ,CAAC,GAEK,EAAE,eAAY,mBAAgB,EAAU,CAAO,GAQ/C,IAAsB;EACxB,GAPwB,EAAuB;GAC/C,OAAO;GACP,MAAM;GACN,OAAO;EACX,CAGO;EACH,cAAc;EACd,oBAAoB;CACxB;CAEA,OAAO,EACH,kBAAC,GAAD;EACI,SAAS;EACT,YAAY,MACR,EACI,GACA,GACA,EAAiB,CAAU,GAC3B,EAAkB,CAAW,GAC7B,OAAO,KAAc,aACf,EAAU,CAAW,IACrB,CACV;EAEJ,GAAI;EACJ,GAAI;EACJ,eAAA;EACA,oBAAA;aAEE,EACE,eACA,mBACA,cACA,cACA,mBACE;GACF,IAAM,IAAY;IACd,GAAG;IACH,gBAAgB,KAAa,KAAA;IAC7B,iBAAiB,KAAc,KAAA;IAC/B,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB,KAAkB,KAAA;IACxC,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB;GAC1B,GAEM,IAAW,EAA0B;GAC3C,OACI,kBAAC,QAAD;IACI,WAAW,EACP,GACA,GACA,CACJ;IACA,GAAI;cANR,CAQK,KAAc,kBAAC,GAAD,EAAQ,GAAI,EAAa,CAAA,GACvC,KAAQ,kBAAC,GAAD;KAAY;KAAM,MAAM;IAAW,CAAA,CAC1C;;EAEd;CACE,CAAA,GACN,CACJ;AACJ"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Button/LinkIconButton/LinkIconButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Link } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n IconButtonIconSizeMapping,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { LinkIconButtonProps } from \"./types\";\n\nexport const LinkIconButton: React.FC<LinkIconButtonProps> = ({\n size,\n shape,\n color,\n width = \"default\",\n tooltip,\n icon,\n onPress,\n className,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize } = useButtonConfig({\n size,\n shape,\n color,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n const iconButtonDataAttrs = {\n ...baseButtonDataAttrs,\n \"data-width\": width,\n \"data-icon-button\": true,\n };\n\n return withTooltip(\n <Link\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...iconButtonDataAttrs}\n data-button\n data-link-button\n >\n {({\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n }) => {\n const dataAttrs = {\n ...iconButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = IconButtonIconSizeMapping[buttonSize];\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n {icon && <Icon icon={icon} size={iconSize} />}\n </span>\n );\n }}\n </Link>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;AAoBA,IAAa,KAAiD,EAC1D,SACA,UACA,UACA,WAAQ,WACR,YACA,SACA,YACA,cACA,GAAG,QACD;CACF,IAAM,EAAE,gBAAa,gBAAa,kBAAe,EAAgB;EAC7D;EACA;EACA;CACJ,CAAC,GAEK,EAAE,eAAY,mBAAgB,EAAU,CAAO,GAQ/C,IAAsB;EACxB,GAPwB,EAAuB;GAC/C,OAAO;GACP,MAAM;GACN,OAAO;EACX,CAGO;EACH,cAAc;EACd,oBAAoB;CACxB;CAEA,OAAO,EACH,kBAAC,GAAD;EACI,SAAS;EACT,YAAY,MACR,EACI,GACA,GACA,EAAiB,CAAU,GAC3B,EAAkB,CAAW,GAC7B,OAAO,KAAc,aACf,EAAU,CAAW,IACrB,CACV;EAEJ,GAAI;EACJ,GAAI;EACJ,eAAA;EACA,oBAAA;aAEE,EACE,eACA,mBACA,cACA,cACA,mBACE;GACF,IAAM,IAAY;IACd,GAAG;IACH,gBAAgB,KAAa,KAAA;IAC7B,iBAAiB,KAAc,KAAA;IAC/B,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB,KAAkB,KAAA;IACxC,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB;GAC1B,GAEM,IAAW,EAA0B;GAC3C,OACI,kBAAC,QAAD;IACI,WAAW,EACP,GACA,GACA,CACJ;IACA,GAAI;cANR,CAQK,KAAc,kBAAC,GAAD,EAAQ,GAAI,EAAW,CAAA,GACrC,KAAQ,kBAAC,GAAD;KAAY;KAAM,MAAM;IAAS,CAAA,CACxC;;EAEd;CACE,CAAA,GACN,CACJ;AACJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/Button/SplitButton/SplitButtonContext/context.ts","../../../../../src/components/Button/SplitButton/SplitButtonContext/useSplitButtonContext.ts"],"sourcesContent":["import { createContext } from \"react\";\nimport type { ButtonSize, SplitButtonColor } from \"../../core\";\n\nexport type SplitButtonState = {\n isPending?: boolean;\n isDisabled?: boolean;\n\n size: ButtonSize;\n color: SplitButtonColor;\n};\n\nexport const SplitButtonContext = createContext<SplitButtonState>({\n size: \"small\",\n color: \"filled\",\n});\n","import { useContext } from \"react\";\nimport { SplitButtonContext } from \"./context\";\n\nexport function useSplitButtonContext() {\n return useContext(SplitButtonContext);\n}\n"],"mappings":";;AAWA,IAAa,IAAqB,EAAgC;CAC9D,MAAM;CACN,OAAO;AACX,CAAC;;;ACXD,SAAgB,IAAwB;CACpC,OAAO,EAAW,CAAkB;AACxC"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/Button/SplitButton/SplitButtonContext/context.ts","../../../../../src/components/Button/SplitButton/SplitButtonContext/useSplitButtonContext.ts"],"sourcesContent":["import { createContext } from \"react\";\nimport type { ButtonSize, SplitButtonColor } from \"../../core\";\n\nexport type SplitButtonState = {\n isPending?: boolean;\n isDisabled?: boolean;\n\n size: ButtonSize;\n color: SplitButtonColor;\n};\n\nexport const SplitButtonContext = createContext<SplitButtonState>({\n size: \"small\",\n color: \"filled\",\n});\n","import { useContext } from \"react\";\nimport { SplitButtonContext } from \"./context\";\n\nexport function useSplitButtonContext() {\n return useContext(SplitButtonContext);\n}\n"],"mappings":";;AAWA,IAAa,IAAqB,EAAgC;CAC9D,MAAM;CACN,OAAO;AACX,CAAC;;;ACXD,SAAO,IAAA;CAAA,OACI,EAAW,CAAkB;AAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n buttonColorBase,\n buttonColorConfig,\n withTooltip,\n} from \"../../core\";\nimport { SplitButtonPrimaryBase, SplitButtonVariantBase } from \"../core\";\nimport { useSplitButtonContext } from \"../SplitButtonContext\";\nimport type { SplitButtonPrimaryProps } from \"./types\";\n\nexport const SplitButtonPrimary: React.FC<SplitButtonPrimaryProps> = ({\n tooltip,\n icon,\n children,\n onPress,\n isDisabled,\n isPending,\n className,\n iconPlacement = \"start\",\n ...props\n}) => {\n const splitButtonState = useSplitButtonContext();\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const pending = isPending || splitButtonState.isPending;\n const disabled = isDisabled || splitButtonState.isDisabled;\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n isDisabled={disabled}\n isPending={pending}\n {...props}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n SplitButtonPrimaryBase,\n buttonColorConfig(splitButtonState.color),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n data-button\n data-split-button-primary\n >\n {(renderProps) => {\n const {\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = ButtonIconSizeMapping[splitButtonState.size];\n const iconComp = renderProps.isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n );\n\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n SplitButtonVariantBase,\n ButtonLabelTextMapping[splitButtonState.size]\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {iconPlacement === \"start\" && iconComp}\n\n {isChildFunc ? children(renderProps) : children}\n\n {iconPlacement === \"end\" && iconComp}\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;;;;AAoBA,IAAa,KAAyD,EAClE,YACA,SACA,aACA,YACA,eACA,cACA,cACA,mBAAgB,SAChB,GAAG,QACD;CACF,IAAM,IAAmB,EAAsB,GAEzC,EAAE,eAAY,mBAAgB,EAAU,CAAO,GAC/C,IAAc,OAAO,KAAa,YAElC,IAAU,KAAa,EAAiB;CAG9C,OAAO,EACH,kBAAC,GAAD;EACI,SAAS;EACT,YALS,KAAc,EAAiB;EAMxC,WAAW;EACX,GAAI;EACJ,YAAY,MACR,EACI,GACA,GACA,GACA,EAAkB,EAAiB,KAAK,GACxC,OAAO,KAAc,aACf,EAAU,CAAW,IACrB,CACV;EAEJ,eAAA;EACA,6BAAA;aAEE,MAAgB;GACd,IAAM,EACF,eACA,mBACA,cACA,cACA,iBACA,GAEE,IAAY;IACd,gBAAgB,KAAa,KAAA;IAC7B,iBAAiB,KAAc,KAAA;IAC/B,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB,KAAkB,KAAA;IACxC,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB;GAC1B,GAEM,IAAW,EAAsB,EAAiB,OAClD,IAAW,EAAY,YACzB,kBAAC,GAAD,EAAQ,MAAM,EAAW,CAAA,IAEzB,KAAQ,kBAAC,GAAD;IAAY;IAAM,MAAM;GAAW,CAAA;GAG/C,OACI,kBAAC,QAAD;IACI,WAAW,EACP,GACA,GACA,GACA,EAAuB,EAAiB,KAC5C;IACA,GAAI;cAPR;KASK,KAAc,kBAAC,GAAD,EAAQ,GAAI,EAAa,CAAA;KAEvC,MAAkB,WAAW;KAE7B,IAAc,EAAS,CAAW,IAAI;KAEtC,MAAkB,SAAS;IAC1B;;EAEd;CACQ,CAAA,GACZ,CACJ;AACJ"}
1
+ {"version":3,"file":"index.js","names":["renderProps","isDisabled"],"sources":["../../../../../src/components/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n buttonColorBase,\n buttonColorConfig,\n withTooltip,\n} from \"../../core\";\nimport { SplitButtonPrimaryBase, SplitButtonVariantBase } from \"../core\";\nimport { useSplitButtonContext } from \"../SplitButtonContext\";\nimport type { SplitButtonPrimaryProps } from \"./types\";\n\nexport const SplitButtonPrimary: React.FC<SplitButtonPrimaryProps> = ({\n tooltip,\n icon,\n children,\n onPress,\n isDisabled,\n isPending,\n className,\n iconPlacement = \"start\",\n ...props\n}) => {\n const splitButtonState = useSplitButtonContext();\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const pending = isPending || splitButtonState.isPending;\n const disabled = isDisabled || splitButtonState.isDisabled;\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n isDisabled={disabled}\n isPending={pending}\n {...props}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n SplitButtonPrimaryBase,\n buttonColorConfig(splitButtonState.color),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n data-button\n data-split-button-primary\n >\n {(renderProps) => {\n const {\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = ButtonIconSizeMapping[splitButtonState.size];\n const iconComp = renderProps.isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n );\n\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n SplitButtonVariantBase,\n ButtonLabelTextMapping[splitButtonState.size]\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {iconPlacement === \"start\" && iconComp}\n\n {isChildFunc ? children(renderProps) : children}\n\n {iconPlacement === \"end\" && iconComp}\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;;;;AAoBA,IAAa,KAAyD,EAClE,YACA,SACA,aACA,YACA,eACA,cACA,cACA,mBAAgB,SAChB,GAAG,QACD;CACF,IAAM,IAAmB,EAAsB,GAEzC,EAAE,eAAY,mBAAgB,EAAU,CAAO,GAC/C,IAAc,OAAO,KAAa,YAElC,IAAU,KAAa,EAAiB;CAG9C,OAAO,EACH,kBAAC,GAAD;EACI,SAAS;EACT,YALS,KAAc,EAAiB;EAMxC,WAAW;EACX,GAAI;EACJ,YAAY,MACR,EACI,GACA,GACA,GACA,EAAkB,EAAiB,KAAK,GACxC,OAAO,KAAc,aACf,EAAU,CAAW,IACrB,CACV;EAEJ,eAAA;EACA,6BAAA;aAEEA,MAAgB;GACd,IAAM,EACF,YAAAC,GACA,mBACA,cACA,cACA,iBACAD,GAEE,IAAY;IACd,gBAAgB,KAAa,KAAA;IAC7B,iBAAiBC,KAAc,KAAA;IAC/B,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB,KAAkB,KAAA;IACxC,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB;GAC1B,GAEM,IAAW,EAAsB,EAAiB,OAClD,IAAWD,EAAY,YACzB,kBAAC,GAAD,EAAQ,MAAM,EAAS,CAAA,IAEvB,KAAQ,kBAAC,GAAD;IAAY;IAAM,MAAM;GAAS,CAAA;GAG7C,OACI,kBAAC,QAAD;IACI,WAAW,EACP,GACA,GACA,GACA,EAAuB,EAAiB,KAC5C;IACA,GAAI;cAPR;KASK,KAAc,kBAAC,GAAD,EAAQ,GAAI,EAAW,CAAA;KAErC,MAAkB,WAAW;KAE7B,IAAc,EAASA,CAAW,IAAI;KAEtC,MAAkB,SAAS;IAC1B;;EAEd;CACQ,CAAA,GACZ,CACJ;AACJ"}
@@ -1,61 +1,76 @@
1
- import { t as e } from "../../../chunks/tapTarget";
2
- import { t } from "../../../chunks/Icon";
3
- import { n, t as r } from "../../../chunks/useSplash";
4
- import { a as i, c as a, d as o, f as s, i as c, l, n as u, o as d, p as f, t as p, u as m } from "../../../chunks/core";
5
- import { clsx as h } from "clsx";
6
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
7
- import { ToggleButton as v } from "react-aria-components";
1
+ import { t as e } from "../../../chunks/compiler-runtime";
2
+ import { t } from "../../../chunks/tapTarget";
3
+ import { t as n } from "../../../chunks/Icon";
4
+ import { n as r, t as i } from "../../../chunks/useSplash";
5
+ import { a, c as o, d as s, f as c, i as l, l as u, n as d, o as f, p, t as m, u as h } from "../../../chunks/core";
6
+ import { clsx as g } from "clsx";
7
+ import { jsx as _, jsxs as v } from "react/jsx-runtime";
8
+ import { ToggleButton as y } from "react-aria-components";
8
9
  //#region src/components/Button/ToggleButton/ToggleButton.tsx
9
- var y = ({ size: y, shape: b, color: x, tooltip: S, selectedIcon: C, icon: w, children: T, onPress: E, className: D, iconPlacement: O, ...k }) => {
10
- let { buttonColor: A, buttonShape: j, buttonSize: M, buttonIconPlacement: N } = u({
11
- size: y,
12
- shape: b,
13
- color: x,
14
- iconPlacement: O
15
- }), { splashInfo: P, handlePress: F } = r(E), I = typeof T == "function", L = {
16
- ...f({
17
- shape: j,
18
- size: M,
19
- color: A
20
- }),
10
+ var b = e(), x = (e) => {
11
+ let x = (0, b.c)(45), S, C, w, T, E, D, O, k, A, j, M;
12
+ x[0] === e ? (S = x[1], C = x[2], w = x[3], T = x[4], E = x[5], D = x[6], O = x[7], k = x[8], A = x[9], j = x[10], M = x[11]) : ({size: j, shape: A, color: w, tooltip: M, selectedIcon: k, icon: T, children: S, onPress: D, className: C, iconPlacement: E, ...O} = e, x[0] = e, x[1] = S, x[2] = C, x[3] = w, x[4] = T, x[5] = E, x[6] = D, x[7] = O, x[8] = k, x[9] = A, x[10] = j, x[11] = M);
13
+ let N;
14
+ x[12] !== w || x[13] !== E || x[14] !== A || x[15] !== j ? (N = {
15
+ size: j,
16
+ shape: A,
17
+ color: w,
18
+ iconPlacement: E
19
+ }, x[12] = w, x[13] = E, x[14] = A, x[15] = j, x[16] = N) : N = x[16];
20
+ let { buttonColor: P, buttonShape: F, buttonSize: I, buttonIconPlacement: L } = d(N), { splashInfo: R, handlePress: z } = i(D), B = typeof S == "function", V;
21
+ x[17] !== P || x[18] !== F || x[19] !== I ? (V = p({
22
+ shape: F,
23
+ size: I,
24
+ color: P
25
+ }), x[17] = P, x[18] = F, x[19] = I, x[20] = V) : V = x[20];
26
+ let H = V, U;
27
+ x[21] === H ? U = x[22] : (U = {
28
+ ...H,
21
29
  "data-toggle-button": !0
22
- };
23
- return p(/* @__PURE__ */ g(v, {
24
- onPress: F,
25
- className: (t) => h(s, e, a(M), m(A), typeof D == "function" ? D(t) : D),
26
- ...k,
27
- ...L,
30
+ }, x[21] = H, x[22] = U);
31
+ let W = U, G;
32
+ x[23] !== P || x[24] !== I || x[25] !== C ? (G = (e) => g(c, t, o(I), h(P), typeof C == "function" ? C(e) : C), x[23] = P, x[24] = I, x[25] = C, x[26] = G) : G = x[26];
33
+ let K;
34
+ x[27] !== L || x[28] !== I || x[29] !== S || x[30] !== T || x[31] !== B || x[32] !== k || x[33] !== R || x[34] !== W ? (K = (e) => {
35
+ let { isSelected: t, isDisabled: i, isFocusVisible: o, isFocused: c, isPressed: d, isHovered: p } = e, m = {
36
+ ...W,
37
+ "data-hovered": p || void 0,
38
+ "data-disabled": i || void 0,
39
+ "data-focused": c || void 0,
40
+ "data-focus-visible": o || void 0,
41
+ "data-pressed": d || void 0,
42
+ "data-selected": t || void 0,
43
+ "data-visual-button": !0
44
+ }, h = T;
45
+ t && k && (h = k);
46
+ let y = l[I], b = h && /* @__PURE__ */ _(n, {
47
+ icon: h,
48
+ size: y
49
+ });
50
+ return /* @__PURE__ */ v("span", {
51
+ className: g(s, u, f, a[I]),
52
+ ...m,
53
+ children: [
54
+ R && /* @__PURE__ */ _(r, { ...R }),
55
+ L === "start" && b,
56
+ B ? S(e) : S,
57
+ L === "end" && b
58
+ ]
59
+ });
60
+ }, x[27] = L, x[28] = I, x[29] = S, x[30] = T, x[31] = B, x[32] = k, x[33] = R, x[34] = W, x[35] = K) : K = x[35];
61
+ let q;
62
+ x[36] !== z || x[37] !== O || x[38] !== G || x[39] !== K || x[40] !== W ? (q = /* @__PURE__ */ _(y, {
63
+ onPress: z,
64
+ className: G,
65
+ ...O,
66
+ ...W,
28
67
  "data-button": !0,
29
- children: (e) => {
30
- let { isSelected: r, isDisabled: a, isFocusVisible: s, isFocused: u, isPressed: f, isHovered: p } = e, m = {
31
- ...L,
32
- "data-hovered": p || void 0,
33
- "data-disabled": a || void 0,
34
- "data-focused": u || void 0,
35
- "data-focus-visible": s || void 0,
36
- "data-pressed": f || void 0,
37
- "data-selected": r || void 0,
38
- "data-visual-button": !0
39
- }, v = w;
40
- r && C && (v = C);
41
- let y = c[M], b = v && /* @__PURE__ */ g(t, {
42
- icon: v,
43
- size: y
44
- });
45
- return /* @__PURE__ */ _("span", {
46
- className: h(o, l, d, i[M]),
47
- ...m,
48
- children: [
49
- P && /* @__PURE__ */ g(n, { ...P }),
50
- N === "start" && b,
51
- I ? T(e) : T,
52
- N === "end" && b
53
- ]
54
- });
55
- }
56
- }), S);
68
+ children: K
69
+ }), x[36] = z, x[37] = O, x[38] = G, x[39] = K, x[40] = W, x[41] = q) : q = x[41];
70
+ let J;
71
+ return x[42] !== q || x[43] !== M ? (J = m(q, M), x[42] = q, x[43] = M, x[44] = J) : J = x[44], J;
57
72
  };
58
73
  //#endregion
59
- export { y as ToggleButton };
74
+ export { x as ToggleButton };
60
75
 
61
76
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Button/ToggleButton/ToggleButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { ToggleButton as AriaToggleButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { ToggleButtonProps } from \"./types\";\n\nexport const ToggleButton: React.FC<ToggleButtonProps> = ({\n size,\n shape,\n color,\n tooltip,\n selectedIcon,\n icon,\n children,\n onPress,\n className,\n iconPlacement,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize, buttonIconPlacement } =\n useButtonConfig({\n size,\n shape,\n color,\n iconPlacement,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n const toggleButtonDataAttrs = {\n ...baseButtonDataAttrs,\n \"data-toggle-button\": true,\n };\n\n return withTooltip(\n <AriaToggleButton\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...toggleButtonDataAttrs}\n data-button\n >\n {(renderProps) => {\n const {\n isSelected,\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n ...toggleButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-selected\": isSelected || undefined,\n \"data-visual-button\": true,\n };\n\n let iconToRender = icon;\n if (isSelected && selectedIcon) iconToRender = selectedIcon;\n\n const iconSize = ButtonIconSizeMapping[buttonSize];\n\n const iconComp = iconToRender && (\n <Icon icon={iconToRender} size={iconSize} />\n );\n\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase,\n ButtonLabelTextMapping[buttonSize]\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {buttonIconPlacement === \"start\" && iconComp}\n\n {isChildFunc ? children(renderProps) : children}\n\n {buttonIconPlacement === \"end\" && iconComp}\n </span>\n );\n }}\n </AriaToggleButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;AAqBA,IAAa,KAA6C,EACtD,SACA,UACA,UACA,YACA,iBACA,SACA,aACA,YACA,cACA,kBACA,GAAG,QACD;CACF,IAAM,EAAE,gBAAa,gBAAa,eAAY,2BAC1C,EAAgB;EACZ;EACA;EACA;EACA;CACJ,CAAC,GAEC,EAAE,eAAY,mBAAgB,EAAU,CAAO,GAC/C,IAAc,OAAO,KAAa,YAQlC,IAAwB;EAC1B,GAPwB,EAAuB;GAC/C,OAAO;GACP,MAAM;GACN,OAAO;EACX,CAGO;EACH,sBAAsB;CAC1B;CAEA,OAAO,EACH,kBAAC,GAAD;EACI,SAAS;EACT,YAAY,MACR,EACI,GACA,GACA,EAAiB,CAAU,GAC3B,EAAkB,CAAW,GAC7B,OAAO,KAAc,aACf,EAAU,CAAW,IACrB,CACV;EAEJ,GAAI;EACJ,GAAI;EACJ,eAAA;aAEE,MAAgB;GACd,IAAM,EACF,eACA,eACA,mBACA,cACA,cACA,iBACA,GAEE,IAAY;IACd,GAAG;IACH,gBAAgB,KAAa,KAAA;IAC7B,iBAAiB,KAAc,KAAA;IAC/B,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB,KAAkB,KAAA;IACxC,gBAAgB,KAAa,KAAA;IAC7B,iBAAiB,KAAc,KAAA;IAC/B,sBAAsB;GAC1B,GAEI,IAAe;GACnB,AAAI,KAAc,MAAc,IAAe;GAE/C,IAAM,IAAW,EAAsB,IAEjC,IAAW,KACb,kBAAC,GAAD;IAAM,MAAM;IAAc,MAAM;GAAW,CAAA;GAG/C,OACI,kBAAC,QAAD;IACI,WAAW,EACP,GACA,GACA,GACA,EAAuB,EAC3B;IACA,GAAI;cAPR;KASK,KAAc,kBAAC,GAAD,EAAQ,GAAI,EAAa,CAAA;KAEvC,MAAwB,WAAW;KAEnC,IAAc,EAAS,CAAW,IAAI;KAEtC,MAAwB,SAAS;IAChC;;EAEd;CACc,CAAA,GAClB,CACJ;AACJ"}
1
+ {"version":3,"file":"index.js","names":["renderProps","iconToRender","iconSize","handlePress"],"sources":["../../../../src/components/Button/ToggleButton/ToggleButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { ToggleButton as AriaToggleButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { ToggleButtonProps } from \"./types\";\n\nexport const ToggleButton: React.FC<ToggleButtonProps> = ({\n size,\n shape,\n color,\n tooltip,\n selectedIcon,\n icon,\n children,\n onPress,\n className,\n iconPlacement,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize, buttonIconPlacement } =\n useButtonConfig({\n size,\n shape,\n color,\n iconPlacement,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n const toggleButtonDataAttrs = {\n ...baseButtonDataAttrs,\n \"data-toggle-button\": true,\n };\n\n return withTooltip(\n <AriaToggleButton\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...toggleButtonDataAttrs}\n data-button\n >\n {(renderProps) => {\n const {\n isSelected,\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n ...toggleButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-selected\": isSelected || undefined,\n \"data-visual-button\": true,\n };\n\n let iconToRender = icon;\n if (isSelected && selectedIcon) iconToRender = selectedIcon;\n\n const iconSize = ButtonIconSizeMapping[buttonSize];\n\n const iconComp = iconToRender && (\n <Icon icon={iconToRender} size={iconSize} />\n );\n\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase,\n ButtonLabelTextMapping[buttonSize]\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {buttonIconPlacement === \"start\" && iconComp}\n\n {isChildFunc ? children(renderProps) : children}\n\n {buttonIconPlacement === \"end\" && iconComp}\n </span>\n );\n }}\n </AriaToggleButton>,\n tooltip\n );\n};\n"],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Button/ToggleIconButton/ToggleIconButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { ToggleButton as AriaToggleButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n IconButtonIconSizeMapping,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { ToggleIconButtonProps } from \"./types\";\n\nexport const ToggleIconButton: React.FC<ToggleIconButtonProps> = ({\n size,\n shape,\n color,\n width = \"default\",\n tooltip,\n selectedIcon,\n icon,\n onPress,\n className,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize } = useButtonConfig({\n size,\n shape,\n color,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n const iconButtonDataAttrs = {\n ...baseButtonDataAttrs,\n \"data-width\": width,\n \"data-icon-button\": true,\n \"data-toggle-button\": true,\n };\n\n return withTooltip(\n <AriaToggleButton\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...iconButtonDataAttrs}\n data-button\n >\n {({\n isSelected,\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n }) => {\n const dataAttrs = {\n ...iconButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-selected\": isSelected || undefined,\n \"data-visual-button\": true,\n };\n\n let iconToRender = icon;\n if (isSelected && selectedIcon) iconToRender = selectedIcon;\n\n const iconSize = IconButtonIconSizeMapping[buttonSize];\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {iconToRender && (\n <Icon icon={iconToRender} size={iconSize} />\n )}\n </span>\n );\n }}\n </AriaToggleButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;AAoBA,IAAa,KAAqD,EAC9D,SACA,UACA,UACA,WAAQ,WACR,YACA,iBACA,SACA,YACA,cACA,GAAG,QACD;CACF,IAAM,EAAE,gBAAa,gBAAa,kBAAe,EAAgB;EAC7D;EACA;EACA;CACJ,CAAC,GAEK,EAAE,eAAY,mBAAgB,EAAU,CAAO,GAQ/C,IAAsB;EACxB,GAPwB,EAAuB;GAC/C,OAAO;GACP,MAAM;GACN,OAAO;EACX,CAGO;EACH,cAAc;EACd,oBAAoB;EACpB,sBAAsB;CAC1B;CAEA,OAAO,EACH,kBAAC,GAAD;EACI,SAAS;EACT,YAAY,MACR,EACI,GACA,GACA,EAAiB,CAAU,GAC3B,EAAkB,CAAW,GAC7B,OAAO,KAAc,aACf,EAAU,CAAW,IACrB,CACV;EAEJ,GAAI;EACJ,GAAI;EACJ,eAAA;aAEE,EACE,eACA,eACA,mBACA,cACA,cACA,mBACE;GACF,IAAM,IAAY;IACd,GAAG;IACH,gBAAgB,KAAa,KAAA;IAC7B,iBAAiB,KAAc,KAAA;IAC/B,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB,KAAkB,KAAA;IACxC,gBAAgB,KAAa,KAAA;IAC7B,iBAAiB,KAAc,KAAA;IAC/B,sBAAsB;GAC1B,GAEI,IAAe;GACnB,AAAI,KAAc,MAAc,IAAe;GAE/C,IAAM,IAAW,EAA0B;GAC3C,OACI,kBAAC,QAAD;IACI,WAAW,EACP,GACA,GACA,CACJ;IACA,GAAI;cANR,CAQK,KAAc,kBAAC,GAAD,EAAQ,GAAI,EAAa,CAAA,GAEvC,KACG,kBAAC,GAAD;KAAM,MAAM;KAAc,MAAM;IAAW,CAAA,CAE7C;;EAEd;CACc,CAAA,GAClB,CACJ;AACJ"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Button/ToggleIconButton/ToggleIconButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { ToggleButton as AriaToggleButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n IconButtonIconSizeMapping,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { ToggleIconButtonProps } from \"./types\";\n\nexport const ToggleIconButton: React.FC<ToggleIconButtonProps> = ({\n size,\n shape,\n color,\n width = \"default\",\n tooltip,\n selectedIcon,\n icon,\n onPress,\n className,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize } = useButtonConfig({\n size,\n shape,\n color,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n const iconButtonDataAttrs = {\n ...baseButtonDataAttrs,\n \"data-width\": width,\n \"data-icon-button\": true,\n \"data-toggle-button\": true,\n };\n\n return withTooltip(\n <AriaToggleButton\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...iconButtonDataAttrs}\n data-button\n >\n {({\n isSelected,\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n }) => {\n const dataAttrs = {\n ...iconButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-selected\": isSelected || undefined,\n \"data-visual-button\": true,\n };\n\n let iconToRender = icon;\n if (isSelected && selectedIcon) iconToRender = selectedIcon;\n\n const iconSize = IconButtonIconSizeMapping[buttonSize];\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {iconToRender && (\n <Icon icon={iconToRender} size={iconSize} />\n )}\n </span>\n );\n }}\n </AriaToggleButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;AAoBA,IAAa,KAAqD,EAC9D,SACA,UACA,UACA,WAAQ,WACR,YACA,iBACA,SACA,YACA,cACA,GAAG,QACD;CACF,IAAM,EAAE,gBAAa,gBAAa,kBAAe,EAAgB;EAC7D;EACA;EACA;CACJ,CAAC,GAEK,EAAE,eAAY,mBAAgB,EAAU,CAAO,GAQ/C,IAAsB;EACxB,GAPwB,EAAuB;GAC/C,OAAO;GACP,MAAM;GACN,OAAO;EACX,CAGO;EACH,cAAc;EACd,oBAAoB;EACpB,sBAAsB;CAC1B;CAEA,OAAO,EACH,kBAAC,GAAD;EACI,SAAS;EACT,YAAY,MACR,EACI,GACA,GACA,EAAiB,CAAU,GAC3B,EAAkB,CAAW,GAC7B,OAAO,KAAc,aACf,EAAU,CAAW,IACrB,CACV;EAEJ,GAAI;EACJ,GAAI;EACJ,eAAA;aAEE,EACE,eACA,eACA,mBACA,cACA,cACA,mBACE;GACF,IAAM,IAAY;IACd,GAAG;IACH,gBAAgB,KAAa,KAAA;IAC7B,iBAAiB,KAAc,KAAA;IAC/B,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB,KAAkB,KAAA;IACxC,gBAAgB,KAAa,KAAA;IAC7B,iBAAiB,KAAc,KAAA;IAC/B,sBAAsB;GAC1B,GAEI,IAAe;GACnB,AAAI,KAAc,MAAc,IAAe;GAE/C,IAAM,IAAW,EAA0B;GAC3C,OACI,kBAAC,QAAD;IACI,WAAW,EACP,GACA,GACA,CACJ;IACA,GAAI;cANR,CAQK,KAAc,kBAAC,GAAD,EAAQ,GAAI,EAAW,CAAA,GAErC,KACG,kBAAC,GAAD;KAAM,MAAM;KAAc,MAAM;IAAS,CAAA,CAE3C;;EAEd;CACc,CAAA,GAClB,CACJ;AACJ"}