@cp949/mui-react19 2.3.0 → 2.3.2

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 (658) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +1 -1
  2. package/dist/_virtual/_rolldown/runtime.js +1 -1
  3. package/dist/components/Center.cjs.map +1 -1
  4. package/dist/components/Center.d.cts +4 -7
  5. package/dist/components/Center.d.ts +4 -7
  6. package/dist/components/Center.js.map +1 -1
  7. package/dist/components/CooldownButton.cjs.map +1 -1
  8. package/dist/components/CooldownButton.d.cts +4 -7
  9. package/dist/components/CooldownButton.d.ts +4 -7
  10. package/dist/components/CooldownButton.js.map +1 -1
  11. package/dist/components/CooldownButtonBase.cjs.map +1 -1
  12. package/dist/components/CooldownButtonBase.d.cts +4 -7
  13. package/dist/components/CooldownButtonBase.d.ts +4 -7
  14. package/dist/components/CooldownButtonBase.js.map +1 -1
  15. package/dist/components/CooldownIconButton.cjs.map +1 -1
  16. package/dist/components/CooldownIconButton.d.cts +4 -7
  17. package/dist/components/CooldownIconButton.d.ts +4 -7
  18. package/dist/components/CooldownIconButton.js.map +1 -1
  19. package/dist/components/CopyButtonWrapper.cjs.map +1 -1
  20. package/dist/components/CopyButtonWrapper.d.cts +1 -4
  21. package/dist/components/CopyButtonWrapper.d.ts +1 -4
  22. package/dist/components/CopyButtonWrapper.js.map +1 -1
  23. package/dist/components/CustomTableBody.cjs.map +1 -1
  24. package/dist/components/CustomTableBody.d.cts +1 -4
  25. package/dist/components/CustomTableBody.d.ts +1 -4
  26. package/dist/components/CustomTableBody.js.map +1 -1
  27. package/dist/components/DebouncedButton.cjs.map +1 -1
  28. package/dist/components/DebouncedButton.d.cts +1 -4
  29. package/dist/components/DebouncedButton.d.ts +1 -4
  30. package/dist/components/DebouncedButton.js.map +1 -1
  31. package/dist/components/DebouncedButtonBase.cjs.map +1 -1
  32. package/dist/components/DebouncedButtonBase.d.cts +1 -4
  33. package/dist/components/DebouncedButtonBase.d.ts +1 -4
  34. package/dist/components/DebouncedButtonBase.js.map +1 -1
  35. package/dist/components/DebouncedIconButton.cjs.map +1 -1
  36. package/dist/components/DebouncedIconButton.d.cts +1 -4
  37. package/dist/components/DebouncedIconButton.d.ts +1 -4
  38. package/dist/components/DebouncedIconButton.js.map +1 -1
  39. package/dist/components/DebouncedRender.cjs.map +1 -1
  40. package/dist/components/DebouncedRender.d.cts +1 -4
  41. package/dist/components/DebouncedRender.d.ts +1 -4
  42. package/dist/components/DebouncedRender.js.map +1 -1
  43. package/dist/components/DelayedRender.cjs.map +1 -1
  44. package/dist/components/DelayedRender.d.cts +1 -4
  45. package/dist/components/DelayedRender.d.ts +1 -4
  46. package/dist/components/DelayedRender.js.map +1 -1
  47. package/dist/components/FileButton.cjs.map +1 -1
  48. package/dist/components/FileButton.d.cts +1 -4
  49. package/dist/components/FileButton.d.ts +1 -4
  50. package/dist/components/FileButton.js.map +1 -1
  51. package/dist/components/FlexItemsContainer.cjs.map +1 -1
  52. package/dist/components/FlexItemsContainer.d.cts +1 -4
  53. package/dist/components/FlexItemsContainer.d.ts +1 -4
  54. package/dist/components/FlexItemsContainer.js.map +1 -1
  55. package/dist/components/FloatingIndicator/FloatingIndicator.cjs.map +1 -1
  56. package/dist/components/FloatingIndicator/FloatingIndicator.d.cts +1 -4
  57. package/dist/components/FloatingIndicator/FloatingIndicator.d.ts +1 -4
  58. package/dist/components/FloatingIndicator/FloatingIndicator.js.map +1 -1
  59. package/dist/components/FloatingIndicator/index.cjs.map +1 -1
  60. package/dist/components/FloatingIndicator/index.js.map +1 -1
  61. package/dist/components/FloatingIndicator/useFloatingIndicator.cjs +1 -1
  62. package/dist/components/FloatingIndicator/useFloatingIndicator.cjs.map +1 -1
  63. package/dist/components/FloatingIndicator/useFloatingIndicator.js +1 -1
  64. package/dist/components/FloatingIndicator/useFloatingIndicator.js.map +1 -1
  65. package/dist/components/Hide.cjs.map +1 -1
  66. package/dist/components/Hide.d.cts +1 -4
  67. package/dist/components/Hide.d.ts +1 -4
  68. package/dist/components/Hide.js.map +1 -1
  69. package/dist/components/Highlight/Highlight.cjs.map +1 -1
  70. package/dist/components/Highlight/Highlight.d.cts +5 -29
  71. package/dist/components/Highlight/Highlight.d.ts +4 -28
  72. package/dist/components/Highlight/Highlight.js.map +1 -1
  73. package/dist/components/Highlight/highlighter/highlighter.cjs.map +1 -1
  74. package/dist/components/Highlight/highlighter/highlighter.js.map +1 -1
  75. package/dist/components/LengthLimitHelperText.cjs.map +1 -1
  76. package/dist/components/LengthLimitHelperText.d.cts +2 -5
  77. package/dist/components/LengthLimitHelperText.d.ts +1 -4
  78. package/dist/components/LengthLimitHelperText.js.map +1 -1
  79. package/dist/components/LgOrUp.cjs.map +1 -1
  80. package/dist/components/LgOrUp.d.cts +1 -4
  81. package/dist/components/LgOrUp.d.ts +1 -4
  82. package/dist/components/LgOrUp.js.map +1 -1
  83. package/dist/components/ListPagination.cjs.map +1 -1
  84. package/dist/components/ListPagination.d.cts +4 -24
  85. package/dist/components/ListPagination.d.ts +4 -24
  86. package/dist/components/ListPagination.js.map +1 -1
  87. package/dist/components/Mark.cjs.map +1 -1
  88. package/dist/components/Mark.d.cts +5 -8
  89. package/dist/components/Mark.d.ts +4 -7
  90. package/dist/components/Mark.js.map +1 -1
  91. package/dist/components/MdOrDown.cjs.map +1 -1
  92. package/dist/components/MdOrDown.d.cts +1 -4
  93. package/dist/components/MdOrDown.d.ts +1 -4
  94. package/dist/components/MdOrDown.js.map +1 -1
  95. package/dist/components/MdOrUp.cjs.map +1 -1
  96. package/dist/components/MdOrUp.d.cts +1 -4
  97. package/dist/components/MdOrUp.d.ts +1 -4
  98. package/dist/components/MdOrUp.js.map +1 -1
  99. package/dist/components/Paper.cjs.map +1 -1
  100. package/dist/components/Paper.d.cts +3 -7
  101. package/dist/components/Paper.d.ts +3 -7
  102. package/dist/components/Paper.js.map +1 -1
  103. package/dist/components/PasswordTextField.cjs.map +1 -1
  104. package/dist/components/PasswordTextField.d.cts +1 -4
  105. package/dist/components/PasswordTextField.d.ts +1 -4
  106. package/dist/components/PasswordTextField.js.map +1 -1
  107. package/dist/components/SearchBoxDebouncer.cjs.map +1 -1
  108. package/dist/components/SearchBoxDebouncer.d.cts +1 -4
  109. package/dist/components/SearchBoxDebouncer.d.ts +1 -4
  110. package/dist/components/SearchBoxDebouncer.js.map +1 -1
  111. package/dist/components/SegmentedControl/SegmentedControl.cjs +1 -1
  112. package/dist/components/SegmentedControl/SegmentedControl.cjs.map +1 -1
  113. package/dist/components/SegmentedControl/SegmentedControl.d.cts +2 -5
  114. package/dist/components/SegmentedControl/SegmentedControl.d.ts +1 -4
  115. package/dist/components/SegmentedControl/SegmentedControl.js +1 -1
  116. package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -1
  117. package/dist/components/SegmentedControl/components.cjs.map +1 -1
  118. package/dist/components/SegmentedControl/components.js.map +1 -1
  119. package/dist/components/Show.cjs.map +1 -1
  120. package/dist/components/Show.d.cts +1 -4
  121. package/dist/components/Show.d.ts +1 -4
  122. package/dist/components/Show.js.map +1 -1
  123. package/dist/components/SmOrDown.cjs.map +1 -1
  124. package/dist/components/SmOrDown.d.cts +1 -4
  125. package/dist/components/SmOrDown.d.ts +1 -4
  126. package/dist/components/SmOrDown.js.map +1 -1
  127. package/dist/components/SmOrUp.cjs.map +1 -1
  128. package/dist/components/SmOrUp.d.cts +1 -4
  129. package/dist/components/SmOrUp.d.ts +1 -4
  130. package/dist/components/SmOrUp.js.map +1 -1
  131. package/dist/components/Space.cjs.map +1 -1
  132. package/dist/components/Space.d.cts +4 -7
  133. package/dist/components/Space.d.ts +4 -7
  134. package/dist/components/Space.js.map +1 -1
  135. package/dist/components/Spoiler.cjs +1 -1
  136. package/dist/components/Spoiler.cjs.map +1 -1
  137. package/dist/components/Spoiler.d.cts +5 -8
  138. package/dist/components/Spoiler.d.ts +4 -7
  139. package/dist/components/Spoiler.js +1 -1
  140. package/dist/components/Spoiler.js.map +1 -1
  141. package/dist/components/XsOrDown.cjs.map +1 -1
  142. package/dist/components/XsOrDown.d.cts +1 -4
  143. package/dist/components/XsOrDown.d.ts +1 -4
  144. package/dist/components/XsOrDown.js.map +1 -1
  145. package/dist/components/YmTypography.cjs.map +1 -1
  146. package/dist/components/YmTypography.d.cts +1 -4
  147. package/dist/components/YmTypography.d.ts +1 -4
  148. package/dist/components/YmTypography.js.map +1 -1
  149. package/dist/components/YmdTextField.cjs.map +1 -1
  150. package/dist/components/YmdTextField.d.cts +1 -4
  151. package/dist/components/YmdTextField.d.ts +1 -4
  152. package/dist/components/YmdTextField.js.map +1 -1
  153. package/dist/components/YmdTypography.cjs.map +1 -1
  154. package/dist/components/YmdTypography.d.cts +1 -4
  155. package/dist/components/YmdTypography.d.ts +1 -4
  156. package/dist/components/YmdTypography.js.map +1 -1
  157. package/dist/components/absolute-box/create-absolute-box.cjs.map +1 -1
  158. package/dist/components/absolute-box/create-absolute-box.js.map +1 -1
  159. package/dist/components/bottom-absolute/BottomAbsolute.cjs.map +1 -1
  160. package/dist/components/bottom-absolute/BottomAbsolute.d.cts +2 -5
  161. package/dist/components/bottom-absolute/BottomAbsolute.d.ts +1 -4
  162. package/dist/components/bottom-absolute/BottomAbsolute.js.map +1 -1
  163. package/dist/components/bottom-absolute/BottomAbsoluteCenter.cjs.map +1 -1
  164. package/dist/components/bottom-absolute/BottomAbsoluteCenter.d.cts +2 -5
  165. package/dist/components/bottom-absolute/BottomAbsoluteCenter.d.ts +1 -4
  166. package/dist/components/bottom-absolute/BottomAbsoluteCenter.js.map +1 -1
  167. package/dist/components/bottom-absolute/BottomAbsoluteLeft.cjs.map +1 -1
  168. package/dist/components/bottom-absolute/BottomAbsoluteLeft.d.cts +2 -5
  169. package/dist/components/bottom-absolute/BottomAbsoluteLeft.d.ts +1 -4
  170. package/dist/components/bottom-absolute/BottomAbsoluteLeft.js.map +1 -1
  171. package/dist/components/bottom-absolute/BottomAbsoluteRight.cjs.map +1 -1
  172. package/dist/components/bottom-absolute/BottomAbsoluteRight.d.cts +2 -5
  173. package/dist/components/bottom-absolute/BottomAbsoluteRight.d.ts +1 -4
  174. package/dist/components/bottom-absolute/BottomAbsoluteRight.js.map +1 -1
  175. package/dist/components/center-absolute/CenterAbsolute.cjs.map +1 -1
  176. package/dist/components/center-absolute/CenterAbsolute.d.cts +2 -5
  177. package/dist/components/center-absolute/CenterAbsolute.d.ts +1 -4
  178. package/dist/components/center-absolute/CenterAbsolute.js.map +1 -1
  179. package/dist/components/center-absolute/CenterAbsoluteCenter.cjs.map +1 -1
  180. package/dist/components/center-absolute/CenterAbsoluteCenter.d.cts +2 -5
  181. package/dist/components/center-absolute/CenterAbsoluteCenter.d.ts +1 -4
  182. package/dist/components/center-absolute/CenterAbsoluteCenter.js.map +1 -1
  183. package/dist/components/center-absolute/CenterAbsoluteLeft.cjs.map +1 -1
  184. package/dist/components/center-absolute/CenterAbsoluteLeft.d.cts +2 -5
  185. package/dist/components/center-absolute/CenterAbsoluteLeft.d.ts +1 -4
  186. package/dist/components/center-absolute/CenterAbsoluteLeft.js.map +1 -1
  187. package/dist/components/center-absolute/CenterAbsoluteRight.cjs.map +1 -1
  188. package/dist/components/center-absolute/CenterAbsoluteRight.d.cts +2 -5
  189. package/dist/components/center-absolute/CenterAbsoluteRight.d.ts +1 -4
  190. package/dist/components/center-absolute/CenterAbsoluteRight.js.map +1 -1
  191. package/dist/components/flex/FlexColumn.cjs.map +1 -1
  192. package/dist/components/flex/FlexColumn.d.cts +1 -4
  193. package/dist/components/flex/FlexColumn.d.ts +1 -4
  194. package/dist/components/flex/FlexColumn.js.map +1 -1
  195. package/dist/components/flex/FlexRow.cjs.map +1 -1
  196. package/dist/components/flex/FlexRow.d.cts +1 -4
  197. package/dist/components/flex/FlexRow.d.ts +1 -4
  198. package/dist/components/flex/FlexRow.js.map +1 -1
  199. package/dist/components/flex/index.d.cts +1 -1
  200. package/dist/components/flex/index.d.ts +1 -1
  201. package/dist/components/flex/types.d.cts +2 -5
  202. package/dist/components/flex/types.d.ts +1 -4
  203. package/dist/components/layout/create-layout-component.cjs.map +1 -1
  204. package/dist/components/layout/create-layout-component.js.map +1 -1
  205. package/dist/components/portlet/Portlet.cjs.map +1 -1
  206. package/dist/components/portlet/Portlet.d.cts +1 -4
  207. package/dist/components/portlet/Portlet.d.ts +1 -4
  208. package/dist/components/portlet/Portlet.js.map +1 -1
  209. package/dist/components/portlet/PortletContent.cjs.map +1 -1
  210. package/dist/components/portlet/PortletContent.d.cts +4 -17
  211. package/dist/components/portlet/PortletContent.d.ts +4 -17
  212. package/dist/components/portlet/PortletContent.js.map +1 -1
  213. package/dist/components/portlet/PortletFooter.cjs.map +1 -1
  214. package/dist/components/portlet/PortletFooter.d.cts +4 -17
  215. package/dist/components/portlet/PortletFooter.d.ts +4 -17
  216. package/dist/components/portlet/PortletFooter.js.map +1 -1
  217. package/dist/components/portlet/PortletHeader.cjs.map +1 -1
  218. package/dist/components/portlet/PortletHeader.d.cts +4 -20
  219. package/dist/components/portlet/PortletHeader.d.ts +4 -20
  220. package/dist/components/portlet/PortletHeader.js.map +1 -1
  221. package/dist/components/portlet/PortletLabel.cjs.map +1 -1
  222. package/dist/components/portlet/PortletLabel.d.cts +5 -18
  223. package/dist/components/portlet/PortletLabel.d.ts +4 -17
  224. package/dist/components/portlet/PortletLabel.js.map +1 -1
  225. package/dist/components/portlet/PortletTitle.cjs.map +1 -1
  226. package/dist/components/portlet/PortletTitle.d.cts +4 -27
  227. package/dist/components/portlet/PortletTitle.d.ts +4 -27
  228. package/dist/components/portlet/PortletTitle.js.map +1 -1
  229. package/dist/components/portlet/PortletToolbar.cjs.map +1 -1
  230. package/dist/components/portlet/PortletToolbar.d.cts +4 -17
  231. package/dist/components/portlet/PortletToolbar.d.ts +4 -17
  232. package/dist/components/portlet/PortletToolbar.js.map +1 -1
  233. package/dist/components/portlet/index.d.cts +1 -1
  234. package/dist/components/portlet/index.d.ts +1 -1
  235. package/dist/components/stack/StackColumn.cjs.map +1 -1
  236. package/dist/components/stack/StackColumn.d.cts +1 -4
  237. package/dist/components/stack/StackColumn.d.ts +1 -4
  238. package/dist/components/stack/StackColumn.js.map +1 -1
  239. package/dist/components/stack/StackRow.cjs.map +1 -1
  240. package/dist/components/stack/StackRow.d.cts +1 -4
  241. package/dist/components/stack/StackRow.d.ts +1 -4
  242. package/dist/components/stack/StackRow.js.map +1 -1
  243. package/dist/components/top-absolute/TopAbsolute.cjs.map +1 -1
  244. package/dist/components/top-absolute/TopAbsolute.d.cts +2 -5
  245. package/dist/components/top-absolute/TopAbsolute.d.ts +1 -4
  246. package/dist/components/top-absolute/TopAbsolute.js.map +1 -1
  247. package/dist/components/top-absolute/TopAbsoluteCenter.cjs.map +1 -1
  248. package/dist/components/top-absolute/TopAbsoluteCenter.d.cts +2 -5
  249. package/dist/components/top-absolute/TopAbsoluteCenter.d.ts +1 -4
  250. package/dist/components/top-absolute/TopAbsoluteCenter.js.map +1 -1
  251. package/dist/components/top-absolute/TopAbsoluteLeft.cjs.map +1 -1
  252. package/dist/components/top-absolute/TopAbsoluteLeft.d.cts +2 -5
  253. package/dist/components/top-absolute/TopAbsoluteLeft.d.ts +1 -4
  254. package/dist/components/top-absolute/TopAbsoluteLeft.js.map +1 -1
  255. package/dist/components/top-absolute/TopAbsoluteRight.cjs.map +1 -1
  256. package/dist/components/top-absolute/TopAbsoluteRight.d.cts +2 -5
  257. package/dist/components/top-absolute/TopAbsoluteRight.d.ts +1 -4
  258. package/dist/components/top-absolute/TopAbsoluteRight.js.map +1 -1
  259. package/dist/eventemitter/eventemitter3.cjs +1 -1
  260. package/dist/eventemitter/eventemitter3.cjs.map +1 -1
  261. package/dist/eventemitter/eventemitter3.d.cts +1 -4
  262. package/dist/eventemitter/eventemitter3.d.ts +1 -4
  263. package/dist/eventemitter/eventemitter3.js +1 -1
  264. package/dist/eventemitter/eventemitter3.js.map +1 -1
  265. package/dist/eventemitter/types.d.cts +1 -4
  266. package/dist/eventemitter/types.d.ts +1 -4
  267. package/dist/file-drop/handle-file-tree-drop.cjs.map +1 -1
  268. package/dist/file-drop/handle-file-tree-drop.d.cts +1 -4
  269. package/dist/file-drop/handle-file-tree-drop.d.ts +1 -4
  270. package/dist/file-drop/handle-file-tree-drop.js.map +1 -1
  271. package/dist/file-drop/index.cjs +1 -1
  272. package/dist/file-drop/index.d.cts +1 -1
  273. package/dist/file-drop/index.d.ts +1 -1
  274. package/dist/file-drop/index.js +1 -1
  275. package/dist/file-drop/internal/debug-logger.cjs.map +1 -1
  276. package/dist/file-drop/internal/debug-logger.js.map +1 -1
  277. package/dist/file-drop/internal/path-util.cjs.map +1 -1
  278. package/dist/file-drop/internal/path-util.d.cts +1 -4
  279. package/dist/file-drop/internal/path-util.d.ts +1 -4
  280. package/dist/file-drop/internal/path-util.js.map +1 -1
  281. package/dist/file-drop/internal/traverse-tree.cjs.map +1 -1
  282. package/dist/file-drop/internal/traverse-tree.js.map +1 -1
  283. package/dist/file-drop/internal/util.cjs.map +1 -1
  284. package/dist/file-drop/internal/util.js.map +1 -1
  285. package/dist/file-drop/internal/visit-file-system/visit-file-system-entry.cjs.map +1 -1
  286. package/dist/file-drop/internal/visit-file-system/visit-file-system-entry.js.map +1 -1
  287. package/dist/file-drop/internal/visit-file-system/visit-file-system-handle.cjs.map +1 -1
  288. package/dist/file-drop/internal/visit-file-system/visit-file-system-handle.js.map +1 -1
  289. package/dist/file-drop/process-file-drop.cjs +1 -1
  290. package/dist/file-drop/process-file-drop.cjs.map +1 -1
  291. package/dist/file-drop/process-file-drop.d.cts +1 -4
  292. package/dist/file-drop/process-file-drop.d.ts +1 -4
  293. package/dist/file-drop/process-file-drop.js +1 -1
  294. package/dist/file-drop/process-file-drop.js.map +1 -1
  295. package/dist/file-drop/types.cjs.map +1 -1
  296. package/dist/file-drop/types.d.cts +1 -4
  297. package/dist/file-drop/types.d.ts +1 -4
  298. package/dist/file-drop/types.js.map +1 -1
  299. package/dist/file-drop/utils/file-utils.cjs +1 -1
  300. package/dist/file-drop/utils/file-utils.cjs.map +1 -1
  301. package/dist/file-drop/utils/file-utils.d.cts +1 -4
  302. package/dist/file-drop/utils/file-utils.d.ts +1 -4
  303. package/dist/file-drop/utils/file-utils.js +1 -1
  304. package/dist/file-drop/utils/file-utils.js.map +1 -1
  305. package/dist/file-drop/utils/filter.cjs.map +1 -1
  306. package/dist/file-drop/utils/filter.d.cts +1 -4
  307. package/dist/file-drop/utils/filter.d.ts +1 -4
  308. package/dist/file-drop/utils/filter.js.map +1 -1
  309. package/dist/file-drop/utils/parallel-map.cjs.map +1 -1
  310. package/dist/file-drop/utils/parallel-map.js.map +1 -1
  311. package/dist/file-drop/utils/progress-tracker.cjs.map +1 -1
  312. package/dist/file-drop/utils/progress-tracker.js.map +1 -1
  313. package/dist/helper/mui-css-vars.cjs.map +1 -1
  314. package/dist/helper/mui-css-vars.d.cts +1 -3
  315. package/dist/helper/mui-css-vars.d.ts +1 -3
  316. package/dist/helper/mui-css-vars.js.map +1 -1
  317. package/dist/helper/mui-media-queries.cjs.map +1 -1
  318. package/dist/helper/mui-media-queries.d.cts +1 -3
  319. package/dist/helper/mui-media-queries.d.ts +1 -3
  320. package/dist/helper/mui-media-queries.js.map +1 -1
  321. package/dist/hooks/index.cjs +1 -1
  322. package/dist/hooks/index.js +1 -1
  323. package/dist/hooks/types.d.cts +1 -4
  324. package/dist/hooks/types.d.ts +1 -4
  325. package/dist/hooks/useAbsolutePosition.cjs.map +1 -1
  326. package/dist/hooks/useAbsolutePosition.d.cts +1 -4
  327. package/dist/hooks/useAbsolutePosition.d.ts +1 -4
  328. package/dist/hooks/useAbsolutePosition.js.map +1 -1
  329. package/dist/hooks/useAudioUnlocked.cjs.map +1 -1
  330. package/dist/hooks/useAudioUnlocked.d.cts +1 -4
  331. package/dist/hooks/useAudioUnlocked.d.ts +1 -4
  332. package/dist/hooks/useAudioUnlocked.js.map +1 -1
  333. package/dist/hooks/useBehaviorSubject.cjs.map +1 -1
  334. package/dist/hooks/useBehaviorSubject.d.cts +1 -4
  335. package/dist/hooks/useBehaviorSubject.d.ts +1 -4
  336. package/dist/hooks/useBehaviorSubject.js.map +1 -1
  337. package/dist/hooks/useCallbackRef.cjs.map +1 -1
  338. package/dist/hooks/useCallbackRef.d.cts +1 -4
  339. package/dist/hooks/useCallbackRef.d.ts +1 -4
  340. package/dist/hooks/useCallbackRef.js.map +1 -1
  341. package/dist/hooks/useCenterInView.cjs.map +1 -1
  342. package/dist/hooks/useCenterInView.d.cts +1 -4
  343. package/dist/hooks/useCenterInView.d.ts +1 -4
  344. package/dist/hooks/useCenterInView.js.map +1 -1
  345. package/dist/hooks/useClipboard.cjs.map +1 -1
  346. package/dist/hooks/useClipboard.d.cts +1 -4
  347. package/dist/hooks/useClipboard.d.ts +1 -4
  348. package/dist/hooks/useClipboard.js.map +1 -1
  349. package/dist/hooks/useClosableEffect.cjs +1 -1
  350. package/dist/hooks/useClosableEffect.cjs.map +1 -1
  351. package/dist/hooks/useClosableEffect.d.cts +1 -4
  352. package/dist/hooks/useClosableEffect.d.ts +1 -4
  353. package/dist/hooks/useClosableEffect.js +1 -1
  354. package/dist/hooks/useClosableEffect.js.map +1 -1
  355. package/dist/hooks/useComposedRefs.cjs.map +1 -1
  356. package/dist/hooks/useComposedRefs.d.cts +1 -4
  357. package/dist/hooks/useComposedRefs.d.ts +1 -4
  358. package/dist/hooks/useComposedRefs.js.map +1 -1
  359. package/dist/hooks/useConstant.cjs.map +1 -1
  360. package/dist/hooks/useConstant.d.cts +1 -4
  361. package/dist/hooks/useConstant.d.ts +1 -4
  362. package/dist/hooks/useConstant.js.map +1 -1
  363. package/dist/hooks/useCooldown.cjs.map +1 -1
  364. package/dist/hooks/useCooldown.d.cts +1 -4
  365. package/dist/hooks/useCooldown.d.ts +1 -4
  366. package/dist/hooks/useCooldown.js.map +1 -1
  367. package/dist/hooks/useCustomCompareEffect.cjs +1 -1
  368. package/dist/hooks/useCustomCompareEffect.cjs.map +1 -1
  369. package/dist/hooks/useCustomCompareEffect.d.cts +1 -4
  370. package/dist/hooks/useCustomCompareEffect.d.ts +1 -4
  371. package/dist/hooks/useCustomCompareEffect.js +1 -1
  372. package/dist/hooks/useCustomCompareEffect.js.map +1 -1
  373. package/dist/hooks/useCustomCompareMemo.cjs +1 -1
  374. package/dist/hooks/useCustomCompareMemo.cjs.map +1 -1
  375. package/dist/hooks/useCustomCompareMemo.d.cts +1 -4
  376. package/dist/hooks/useCustomCompareMemo.d.ts +1 -4
  377. package/dist/hooks/useCustomCompareMemo.js +1 -1
  378. package/dist/hooks/useCustomCompareMemo.js.map +1 -1
  379. package/dist/hooks/useDebounceEffect.cjs.map +1 -1
  380. package/dist/hooks/useDebounceEffect.d.cts +1 -4
  381. package/dist/hooks/useDebounceEffect.d.ts +1 -4
  382. package/dist/hooks/useDebounceEffect.js.map +1 -1
  383. package/dist/hooks/useDebounceFn.cjs.map +1 -1
  384. package/dist/hooks/useDebounceFn.d.cts +1 -4
  385. package/dist/hooks/useDebounceFn.d.ts +1 -4
  386. package/dist/hooks/useDebounceFn.js.map +1 -1
  387. package/dist/hooks/useDebouncedCallback.cjs.map +1 -1
  388. package/dist/hooks/useDebouncedCallback.d.cts +1 -4
  389. package/dist/hooks/useDebouncedCallback.d.ts +1 -4
  390. package/dist/hooks/useDebouncedCallback.js.map +1 -1
  391. package/dist/hooks/useDebouncedParams.cjs +1 -1
  392. package/dist/hooks/useDebouncedParams.cjs.map +1 -1
  393. package/dist/hooks/useDebouncedParams.d.cts +1 -4
  394. package/dist/hooks/useDebouncedParams.d.ts +1 -4
  395. package/dist/hooks/useDebouncedParams.js +1 -1
  396. package/dist/hooks/useDebouncedParams.js.map +1 -1
  397. package/dist/hooks/useDebouncedState.cjs.map +1 -1
  398. package/dist/hooks/useDebouncedState.d.cts +1 -4
  399. package/dist/hooks/useDebouncedState.d.ts +1 -4
  400. package/dist/hooks/useDebouncedState.js.map +1 -1
  401. package/dist/hooks/useDebouncedValue.cjs +1 -1
  402. package/dist/hooks/useDebouncedValue.cjs.map +1 -1
  403. package/dist/hooks/useDebouncedValue.d.cts +1 -4
  404. package/dist/hooks/useDebouncedValue.d.ts +1 -4
  405. package/dist/hooks/useDebouncedValue.js +1 -1
  406. package/dist/hooks/useDebouncedValue.js.map +1 -1
  407. package/dist/hooks/useDeepCompareEffect.cjs +1 -1
  408. package/dist/hooks/useDeepCompareEffect.cjs.map +1 -1
  409. package/dist/hooks/useDeepCompareEffect.d.cts +1 -4
  410. package/dist/hooks/useDeepCompareEffect.d.ts +1 -4
  411. package/dist/hooks/useDeepCompareEffect.js +1 -1
  412. package/dist/hooks/useDeepCompareEffect.js.map +1 -1
  413. package/dist/hooks/useDeepCompareMemo.cjs.map +1 -1
  414. package/dist/hooks/useDeepCompareMemo.d.cts +1 -4
  415. package/dist/hooks/useDeepCompareMemo.d.ts +1 -4
  416. package/dist/hooks/useDeepCompareMemo.js.map +1 -1
  417. package/dist/hooks/useDidUpdate.cjs.map +1 -1
  418. package/dist/hooks/useDidUpdate.d.cts +1 -4
  419. package/dist/hooks/useDidUpdate.d.ts +1 -4
  420. package/dist/hooks/useDidUpdate.js.map +1 -1
  421. package/dist/hooks/useEffectOnce.cjs.map +1 -1
  422. package/dist/hooks/useEffectOnce.d.cts +1 -4
  423. package/dist/hooks/useEffectOnce.d.ts +1 -4
  424. package/dist/hooks/useEffectOnce.js.map +1 -1
  425. package/dist/hooks/useElementSize.cjs.map +1 -1
  426. package/dist/hooks/useElementSize.d.cts +1 -4
  427. package/dist/hooks/useElementSize.d.ts +1 -4
  428. package/dist/hooks/useElementSize.js.map +1 -1
  429. package/dist/hooks/useEventListener.cjs.map +1 -1
  430. package/dist/hooks/useEventListener.d.cts +1 -4
  431. package/dist/hooks/useEventListener.d.ts +1 -4
  432. package/dist/hooks/useEventListener.js.map +1 -1
  433. package/dist/hooks/useId.cjs.map +1 -1
  434. package/dist/hooks/useId.d.cts +1 -4
  435. package/dist/hooks/useId.d.ts +1 -4
  436. package/dist/hooks/useId.js.map +1 -1
  437. package/dist/hooks/useIdle.cjs.map +1 -1
  438. package/dist/hooks/useIdle.d.cts +1 -4
  439. package/dist/hooks/useIdle.d.ts +1 -4
  440. package/dist/hooks/useIdle.js.map +1 -1
  441. package/dist/hooks/useImageLoadCallback.cjs.map +1 -1
  442. package/dist/hooks/useImageLoadCallback.d.cts +1 -4
  443. package/dist/hooks/useImageLoadCallback.d.ts +1 -4
  444. package/dist/hooks/useImageLoadCallback.js.map +1 -1
  445. package/dist/hooks/useImageUpload.cjs +1 -1
  446. package/dist/hooks/useImageUpload.cjs.map +1 -1
  447. package/dist/hooks/useImageUpload.d.cts +1 -4
  448. package/dist/hooks/useImageUpload.d.ts +1 -4
  449. package/dist/hooks/useImageUpload.js +1 -1
  450. package/dist/hooks/useImageUpload.js.map +1 -1
  451. package/dist/hooks/useInterval.cjs.map +1 -1
  452. package/dist/hooks/useInterval.d.cts +1 -4
  453. package/dist/hooks/useInterval.d.ts +1 -4
  454. package/dist/hooks/useInterval.js.map +1 -1
  455. package/dist/hooks/useIsomorphicEffect.cjs.map +1 -1
  456. package/dist/hooks/useIsomorphicEffect.d.cts +2 -5
  457. package/dist/hooks/useIsomorphicEffect.d.ts +2 -5
  458. package/dist/hooks/useIsomorphicEffect.js.map +1 -1
  459. package/dist/hooks/useLatest.cjs.map +1 -1
  460. package/dist/hooks/useLatest.d.cts +1 -4
  461. package/dist/hooks/useLatest.d.ts +1 -4
  462. package/dist/hooks/useLatest.js.map +1 -1
  463. package/dist/hooks/useLgOrUp.cjs.map +1 -1
  464. package/dist/hooks/useLgOrUp.d.cts +1 -4
  465. package/dist/hooks/useLgOrUp.d.ts +1 -4
  466. package/dist/hooks/useLgOrUp.js.map +1 -1
  467. package/dist/hooks/useLifecycleLogger.cjs.map +1 -1
  468. package/dist/hooks/useLifecycleLogger.d.cts +1 -4
  469. package/dist/hooks/useLifecycleLogger.d.ts +1 -4
  470. package/dist/hooks/useLifecycleLogger.js.map +1 -1
  471. package/dist/hooks/useLoadingVisible.cjs +1 -1
  472. package/dist/hooks/useLoadingVisible.cjs.map +1 -1
  473. package/dist/hooks/useLoadingVisible.d.cts +1 -4
  474. package/dist/hooks/useLoadingVisible.d.ts +1 -4
  475. package/dist/hooks/useLoadingVisible.js +1 -1
  476. package/dist/hooks/useLoadingVisible.js.map +1 -1
  477. package/dist/hooks/useLocalStorage.cjs +1 -1
  478. package/dist/hooks/useLocalStorage.cjs.map +1 -1
  479. package/dist/hooks/useLocalStorage.d.cts +1 -4
  480. package/dist/hooks/useLocalStorage.d.ts +1 -4
  481. package/dist/hooks/useLocalStorage.js +1 -1
  482. package/dist/hooks/useLocalStorage.js.map +1 -1
  483. package/dist/hooks/useLocalStorageState.cjs.map +1 -1
  484. package/dist/hooks/useLocalStorageState.d.cts +1 -4
  485. package/dist/hooks/useLocalStorageState.d.ts +1 -4
  486. package/dist/hooks/useLocalStorageState.js.map +1 -1
  487. package/dist/hooks/useMdOrDown.cjs.map +1 -1
  488. package/dist/hooks/useMdOrDown.d.cts +1 -4
  489. package/dist/hooks/useMdOrDown.d.ts +1 -4
  490. package/dist/hooks/useMdOrDown.js.map +1 -1
  491. package/dist/hooks/useMdOrUp.cjs.map +1 -1
  492. package/dist/hooks/useMdOrUp.d.cts +1 -4
  493. package/dist/hooks/useMdOrUp.d.ts +1 -4
  494. package/dist/hooks/useMdOrUp.js.map +1 -1
  495. package/dist/hooks/useMount.cjs.map +1 -1
  496. package/dist/hooks/useMount.d.cts +1 -4
  497. package/dist/hooks/useMount.d.ts +1 -4
  498. package/dist/hooks/useMount.js.map +1 -1
  499. package/dist/hooks/useMounted.cjs.map +1 -1
  500. package/dist/hooks/useMounted.d.cts +1 -4
  501. package/dist/hooks/useMounted.d.ts +1 -4
  502. package/dist/hooks/useMounted.js.map +1 -1
  503. package/dist/hooks/useMountedState.cjs.map +1 -1
  504. package/dist/hooks/useMountedState.d.cts +1 -4
  505. package/dist/hooks/useMountedState.d.ts +1 -4
  506. package/dist/hooks/useMountedState.js.map +1 -1
  507. package/dist/hooks/useMutationObserver.cjs +1 -1
  508. package/dist/hooks/useMutationObserver.cjs.map +1 -1
  509. package/dist/hooks/useMutationObserver.d.cts +1 -4
  510. package/dist/hooks/useMutationObserver.d.ts +1 -4
  511. package/dist/hooks/useMutationObserver.js +1 -1
  512. package/dist/hooks/useMutationObserver.js.map +1 -1
  513. package/dist/hooks/useObservable.cjs.map +1 -1
  514. package/dist/hooks/useObservable.d.cts +1 -3
  515. package/dist/hooks/useObservable.d.ts +1 -4
  516. package/dist/hooks/useObservable.js.map +1 -1
  517. package/dist/hooks/useObservableLocalStorage.cjs.map +1 -1
  518. package/dist/hooks/useObservableLocalStorage.d.cts +1 -4
  519. package/dist/hooks/useObservableLocalStorage.d.ts +1 -4
  520. package/dist/hooks/useObservableLocalStorage.js.map +1 -1
  521. package/dist/hooks/useObservableSessionStorage.cjs.map +1 -1
  522. package/dist/hooks/useObservableSessionStorage.d.cts +1 -4
  523. package/dist/hooks/useObservableSessionStorage.d.ts +1 -4
  524. package/dist/hooks/useObservableSessionStorage.js.map +1 -1
  525. package/dist/hooks/useOs.cjs.map +1 -1
  526. package/dist/hooks/useOs.d.cts +1 -4
  527. package/dist/hooks/useOs.d.ts +1 -4
  528. package/dist/hooks/useOs.js.map +1 -1
  529. package/dist/hooks/useRafState.cjs.map +1 -1
  530. package/dist/hooks/useRafState.d.cts +1 -4
  531. package/dist/hooks/useRafState.d.ts +1 -4
  532. package/dist/hooks/useRafState.js.map +1 -1
  533. package/dist/hooks/useRefEffect.cjs.map +1 -1
  534. package/dist/hooks/useRefEffect.d.cts +1 -4
  535. package/dist/hooks/useRefEffect.d.ts +1 -4
  536. package/dist/hooks/useRefEffect.js.map +1 -1
  537. package/dist/hooks/useResizeObserver.cjs.map +1 -1
  538. package/dist/hooks/useResizeObserver.d.cts +1 -4
  539. package/dist/hooks/useResizeObserver.d.ts +1 -4
  540. package/dist/hooks/useResizeObserver.js.map +1 -1
  541. package/dist/hooks/useScript.cjs.map +1 -1
  542. package/dist/hooks/useScript.d.cts +1 -4
  543. package/dist/hooks/useScript.d.ts +1 -4
  544. package/dist/hooks/useScript.js.map +1 -1
  545. package/dist/hooks/useSessionStorage.cjs +1 -1
  546. package/dist/hooks/useSessionStorage.cjs.map +1 -1
  547. package/dist/hooks/useSessionStorage.d.cts +1 -4
  548. package/dist/hooks/useSessionStorage.d.ts +1 -4
  549. package/dist/hooks/useSessionStorage.js +1 -1
  550. package/dist/hooks/useSessionStorage.js.map +1 -1
  551. package/dist/hooks/useSessionStorageState.cjs.map +1 -1
  552. package/dist/hooks/useSessionStorageState.d.cts +1 -4
  553. package/dist/hooks/useSessionStorageState.d.ts +1 -4
  554. package/dist/hooks/useSessionStorageState.js.map +1 -1
  555. package/dist/hooks/useSmOrDown.cjs.map +1 -1
  556. package/dist/hooks/useSmOrDown.d.cts +1 -4
  557. package/dist/hooks/useSmOrDown.d.ts +1 -4
  558. package/dist/hooks/useSmOrDown.js.map +1 -1
  559. package/dist/hooks/useSmOrUp.cjs.map +1 -1
  560. package/dist/hooks/useSmOrUp.d.cts +1 -4
  561. package/dist/hooks/useSmOrUp.d.ts +1 -4
  562. package/dist/hooks/useSmOrUp.js.map +1 -1
  563. package/dist/hooks/useThrottledCallback.cjs.map +1 -1
  564. package/dist/hooks/useThrottledCallback.d.cts +1 -4
  565. package/dist/hooks/useThrottledCallback.d.ts +1 -4
  566. package/dist/hooks/useThrottledCallback.js.map +1 -1
  567. package/dist/hooks/useThrottledCallbackWithClearTimeout.cjs.map +1 -1
  568. package/dist/hooks/useThrottledCallbackWithClearTimeout.d.cts +1 -4
  569. package/dist/hooks/useThrottledCallbackWithClearTimeout.d.ts +1 -4
  570. package/dist/hooks/useThrottledCallbackWithClearTimeout.js.map +1 -1
  571. package/dist/hooks/useThrottledState.cjs.map +1 -1
  572. package/dist/hooks/useThrottledState.d.cts +1 -4
  573. package/dist/hooks/useThrottledState.d.ts +1 -4
  574. package/dist/hooks/useThrottledState.js.map +1 -1
  575. package/dist/hooks/useThrottledValue.cjs.map +1 -1
  576. package/dist/hooks/useThrottledValue.d.cts +1 -4
  577. package/dist/hooks/useThrottledValue.d.ts +1 -4
  578. package/dist/hooks/useThrottledValue.js.map +1 -1
  579. package/dist/hooks/useTimeout.cjs.map +1 -1
  580. package/dist/hooks/useTimeout.d.cts +1 -4
  581. package/dist/hooks/useTimeout.d.ts +1 -4
  582. package/dist/hooks/useTimeout.js.map +1 -1
  583. package/dist/hooks/useTimeoutData.cjs.map +1 -1
  584. package/dist/hooks/useTimeoutData.d.cts +1 -4
  585. package/dist/hooks/useTimeoutData.d.ts +1 -4
  586. package/dist/hooks/useTimeoutData.js.map +1 -1
  587. package/dist/hooks/useUncontrolled.cjs.map +1 -1
  588. package/dist/hooks/useUncontrolled.d.cts +1 -4
  589. package/dist/hooks/useUncontrolled.d.ts +1 -4
  590. package/dist/hooks/useUncontrolled.js.map +1 -1
  591. package/dist/hooks/useUnmount.cjs.map +1 -1
  592. package/dist/hooks/useUnmount.d.cts +1 -4
  593. package/dist/hooks/useUnmount.d.ts +1 -4
  594. package/dist/hooks/useUnmount.js.map +1 -1
  595. package/dist/hooks/useUpdate.cjs.map +1 -1
  596. package/dist/hooks/useUpdate.d.cts +1 -4
  597. package/dist/hooks/useUpdate.d.ts +1 -4
  598. package/dist/hooks/useUpdate.js.map +1 -1
  599. package/dist/hooks/useUpdateEffect.cjs.map +1 -1
  600. package/dist/hooks/useUpdateEffect.d.cts +1 -4
  601. package/dist/hooks/useUpdateEffect.d.ts +1 -4
  602. package/dist/hooks/useUpdateEffect.js.map +1 -1
  603. package/dist/hooks/useUpdateLayoutEffect.cjs.map +1 -1
  604. package/dist/hooks/useUpdateLayoutEffect.d.cts +1 -4
  605. package/dist/hooks/useUpdateLayoutEffect.d.ts +1 -4
  606. package/dist/hooks/useUpdateLayoutEffect.js.map +1 -1
  607. package/dist/hooks/useWindowEvent.cjs.map +1 -1
  608. package/dist/hooks/useWindowEvent.d.cts +1 -4
  609. package/dist/hooks/useWindowEvent.d.ts +1 -4
  610. package/dist/hooks/useWindowEvent.js.map +1 -1
  611. package/dist/hooks/useWindowSize.cjs.map +1 -1
  612. package/dist/hooks/useWindowSize.d.cts +1 -4
  613. package/dist/hooks/useWindowSize.d.ts +1 -4
  614. package/dist/hooks/useWindowSize.js.map +1 -1
  615. package/dist/hooks/useXsOrDown.cjs.map +1 -1
  616. package/dist/hooks/useXsOrDown.d.cts +1 -4
  617. package/dist/hooks/useXsOrDown.d.ts +1 -4
  618. package/dist/hooks/useXsOrDown.js.map +1 -1
  619. package/dist/index.d.cts +1 -1
  620. package/dist/index.d.ts +2 -2
  621. package/dist/misc/debounce.cjs.map +1 -1
  622. package/dist/misc/debounce.js.map +1 -1
  623. package/dist/misc/deepEq.cjs.map +1 -1
  624. package/dist/misc/deepEq.js.map +1 -1
  625. package/dist/persistence/codec.cjs.map +1 -1
  626. package/dist/persistence/codec.d.cts +1 -4
  627. package/dist/persistence/codec.d.ts +1 -4
  628. package/dist/persistence/codec.js.map +1 -1
  629. package/dist/persistence/useStorageState.cjs.map +1 -1
  630. package/dist/persistence/useStorageState.d.cts +1 -4
  631. package/dist/persistence/useStorageState.d.ts +1 -4
  632. package/dist/persistence/useStorageState.js.map +1 -1
  633. package/dist/util/closables.cjs.map +1 -1
  634. package/dist/util/closables.d.cts +1 -4
  635. package/dist/util/closables.d.ts +1 -4
  636. package/dist/util/closables.js.map +1 -1
  637. package/dist/util/event-utils.cjs.map +1 -1
  638. package/dist/util/event-utils.d.cts +1 -4
  639. package/dist/util/event-utils.d.ts +1 -4
  640. package/dist/util/event-utils.js.map +1 -1
  641. package/dist/util/internal-util.cjs.map +1 -1
  642. package/dist/util/internal-util.js.map +1 -1
  643. package/dist/util/misc-utils.cjs +1 -1
  644. package/dist/util/misc-utils.cjs.map +1 -1
  645. package/dist/util/misc-utils.d.cts +1 -4
  646. package/dist/util/misc-utils.d.ts +1 -4
  647. package/dist/util/misc-utils.js +1 -1
  648. package/dist/util/misc-utils.js.map +1 -1
  649. package/dist/util/override-props.cjs.map +1 -1
  650. package/dist/util/override-props.js.map +1 -1
  651. package/dist/util/sx-props.cjs.map +1 -1
  652. package/dist/util/sx-props.d.cts +2 -5
  653. package/dist/util/sx-props.d.ts +2 -5
  654. package/dist/util/sx-props.js.map +1 -1
  655. package/dist/util/ymd-date.cjs.map +1 -1
  656. package/dist/util/ymd-date.js.map +1 -1
  657. package/llm.txt +2 -2
  658. package/package.json +24 -22
@@ -1 +1 @@
1
- {"version":3,"file":"components.js","names":["Box","SegmentedControlRoot","styled","theme","SegmentedControlItem","prop","transitionDuration","transitionTimingFunction","SegmentedControlInput","resolveColor","color","paletteColors","textColors","textKey","SegmentedControlLabel","_primaryColor","primaryColor","_secondaryColor","secondaryColor"],"sources":["../../../src/components/SegmentedControl/components.ts"],"sourcesContent":["import Box, { type BoxProps } from '@mui/material/Box';\nimport { styled, type Theme } from '@mui/material/styles';\nimport type { TypographyProps } from '@mui/material/Typography';\nimport type { ComponentType } from 'react';\n\nexport const SegmentedControlRoot: ComponentType<BoxProps> = styled(Box)<BoxProps>(({ theme }) => {\n return {\n position: 'relative',\n display: 'inline-flex',\n flexDirection: 'row',\n width: 'auto',\n borderRadius: theme.shape.borderRadius,\n overflow: 'hidden',\n padding: '0.25rem',\n backgroundColor: '#f1f3f5',\n\n '&[data-vertical=\"true\"]': {\n display: 'flex',\n flexDirection: 'column',\n width: 'max-content',\n },\n\n '&[data-fullwidth=\"true\"]': {\n display: 'flex',\n width: 'auto',\n },\n\n '&[data-size=\"small\"]': {\n padding: '0.15rem',\n },\n '&[data-size=\"large\"]': {\n padding: '0.35rem',\n },\n };\n});\nSegmentedControlRoot.displayName = 'SegmentedControlRoot';\n\nexport const SegmentedControlItem: ComponentType<\n BoxProps & {\n transitionDuration?: number;\n transitionTimingFunction?: string;\n }\n> = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'transitionDuration' && prop !== 'transitionTimingFunction',\n})<\n BoxProps & {\n transitionDuration?: number;\n transitionTimingFunction?: string;\n }\n>(({ theme, transitionDuration = 150, transitionTimingFunction = 'ease' }) => {\n return {\n position: 'relative',\n flex: 1,\n zIndex: 2,\n transition: `border-color ${transitionDuration}ms ${transitionTimingFunction}`,\n\n '.SegmentedControl-root[data-with-item-border=\"true\"] &::before': {\n content: '\"\"',\n position: 'absolute',\n top: 0,\n bottom: 0,\n insetInlineStart: 0,\n backgroundColor: theme.palette.divider,\n width: '1px',\n transition: `background-color ${transitionDuration}ms ${transitionTimingFunction}`,\n },\n\n '.SegmentedControl-root[data-with-item-border=\"true\"] &:first-of-type::before': {\n backgroundColor: 'transparent',\n },\n\n '.SegmentedControl-root[data-vertical=\"true\"] &::before': {\n top: 0,\n insetInline: 0,\n bottom: 'auto',\n height: '1px',\n width: 'auto',\n },\n };\n});\n\nSegmentedControlItem.displayName = 'SegmentedControlItem';\n\nexport const SegmentedControlInput: ComponentType<BoxProps<'input'>> = styled(Box)<\n BoxProps<'input'>\n>(() => ({\n height: 0,\n width: 0,\n position: 'absolute',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n opacity: 0,\n}));\n\nSegmentedControlInput.displayName = 'SegmentedControlInput';\n\ntype PaletteColorKey = 'primary' | 'secondary' | 'info' | 'warning' | 'error' | 'success';\ntype TextColorKey = 'primary' | 'secondary' | 'disabled';\n\nfunction resolveColor(theme: Theme, color: TypographyProps['color']): string | undefined {\n if (!color) return undefined;\n const paletteColors: PaletteColorKey[] = [\n 'primary',\n 'secondary',\n 'info',\n 'warning',\n 'error',\n 'success',\n ];\n const textColors = ['textPrimary', 'textSecondary', 'textDisabled'];\n\n if (paletteColors.includes(color as PaletteColorKey)) {\n return theme.palette[color as PaletteColorKey].main;\n }\n if (textColors.includes(color as string)) {\n const textKey = (color as string).substring(4).toLowerCase() as TextColorKey;\n return theme.palette.text[textKey];\n }\n return color as string;\n}\n\ntype SegmentedControlLabelProps = BoxProps & {\n primaryColor?: string;\n secondaryColor?: string;\n transitionDuration?: number;\n transitionTimingFunction?: string;\n htmlFor?: string;\n};\n\nexport const SegmentedControlLabel: ComponentType<SegmentedControlLabelProps> = styled(Box, {\n shouldForwardProp: (prop) =>\n prop !== 'transitionDuration' &&\n prop !== 'transitionTimingFunction' &&\n prop !== 'primaryColor' &&\n prop !== 'secondaryColor',\n})<SegmentedControlLabelProps>(\n ({\n theme,\n transitionDuration = 150,\n transitionTimingFunction = 'ease',\n primaryColor,\n secondaryColor,\n }) => {\n const _primaryColor = resolveColor(theme, primaryColor) ?? theme.palette.primary.main;\n const _secondaryColor = resolveColor(theme, secondaryColor) ?? theme.palette.text.secondary;\n\n return {\n fontWeight: 500,\n display: 'block',\n textAlign: 'center',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n userSelect: 'none',\n borderRadius: 1,\n padding: '0.3125rem 0.625rem',\n fontSize: theme.typography.body1.fontSize,\n cursor: 'pointer',\n color: _secondaryColor,\n transition: `color ${transitionDuration}ms ${transitionTimingFunction}`,\n\n '.SegmentedControl-item.Mui-active > &&': {\n color: _primaryColor,\n '&::before': {\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n zIndex: 0,\n },\n },\n\n '.SegmentedControl-item.Mui-readOnly > &&': {\n cursor: 'default',\n },\n\n '.SegmentedControl-item.Mui-disabled > &&': {\n cursor: 'not-allowed',\n color: theme.palette.text.disabled,\n opacity: 0.7,\n },\n\n '.SegmentedControl-root[data-size=\"small\"] &': {\n padding: '0.2rem 0.4rem',\n fontSize: '0.7rem',\n },\n '.SegmentedControl-root[data-size=\"large\"] &': {\n padding: '0.4rem 0.8rem',\n fontSize: theme.typography.subtitle1.fontSize,\n },\n };\n },\n);\n\nSegmentedControlLabel.displayName = 'SegmentedControlLabel';\n"],"mappings":"+EAKA,MAAaC,EAAgDC,EAAOF,CAAG,CAAC,EAAY,CAAE,YAC7E,CACL,SAAU,WACV,QAAS,cACT,cAAe,MACf,MAAO,OACP,aAAcG,EAAM,MAAM,aAC1B,SAAU,SACV,QAAS,UACT,gBAAiB,UAEjB,0BAA2B,CACzB,QAAS,OACT,cAAe,SACf,MAAO,aACT,EAEA,2BAA4B,CAC1B,QAAS,OACT,MAAO,MACT,EAEA,uBAAwB,CACtB,QAAS,SACX,EACA,uBAAwB,CACtB,QAAS,SACX,CACF,EACD,EACD,EAAqB,YAAc,uBAEnC,MAAaC,EAKTF,EAAOF,EAAK,CACd,kBAAoB,GAASK,IAAS,sBAAwBA,IAAS,0BACzE,CAAC,CAAC,EAKC,CAAE,QAAO,qBAAqB,IAAK,2BAA2B,WACxD,CACL,SAAU,WACV,KAAM,EACN,OAAQ,EACR,WAAY,gBAAgBC,EAAmB,KAAKC,IAEpD,iEAAkE,CAChE,QAAS,KACT,SAAU,WACV,IAAK,EACL,OAAQ,EACR,iBAAkB,EAClB,gBAAiBJ,EAAM,QAAQ,QAC/B,MAAO,MACP,WAAY,oBAAoBG,EAAmB,KAAKC,GAC1D,EAEA,+EAAgF,CAC9E,gBAAiB,aACnB,EAEA,yDAA0D,CACxD,IAAK,EACL,YAAa,EACb,OAAQ,OACR,OAAQ,MACR,MAAO,MACT,CACF,EACD,EAED,EAAqB,YAAc,uBAEnC,MAAaC,EAA0DN,EAAOF,CAAG,CAAC,MAEzE,CACP,OAAQ,EACR,MAAO,EACP,SAAU,WACV,SAAU,SACV,WAAY,SACZ,QAAS,CACX,EAAE,EAEF,EAAsB,YAAc,wBAKpC,SAASS,EAAa,EAAc,EAAqD,CACvF,GAAI,CAACC,EAAO,OACZ,IAAMC,EAAmC,CACvC,UACA,YACA,OACA,UACA,QACA,SACF,EACMC,EAAa,CAAC,cAAe,gBAAiB,cAAc,EAElE,GAAID,EAAc,SAASD,CAAwB,EACjD,OAAOP,EAAM,QAAQO,EAAyB,CAAC,KAEjD,GAAIE,EAAW,SAASF,CAAe,EAAG,CACxC,IAAMG,EAAWH,EAAiB,UAAU,CAAC,CAAC,CAAC,YAAY,EAC3D,OAAOP,EAAM,QAAQ,KAAKU,EAC5B,CACA,OAAOH,CACT,CAUA,MAAaI,EAAmEZ,EAAOF,EAAK,CAC1F,kBAAoB,GAClBK,IAAS,sBACTA,IAAS,4BACTA,IAAS,gBACTA,IAAS,gBACb,CAAC,CAAC,EACC,CACC,QACA,qBAAqB,IACrB,2BAA2B,OAC3B,eACA,oBACI,CACJ,IAAMU,EAAgBN,EAAaN,EAAOa,CAAY,GAAKb,EAAM,QAAQ,QAAQ,KAC3Ec,EAAkBR,EAAaN,EAAOe,CAAc,GAAKf,EAAM,QAAQ,KAAK,UAElF,MAAO,CACL,WAAY,IACZ,QAAS,QACT,UAAW,SACX,WAAY,SACZ,SAAU,SACV,aAAc,WACd,WAAY,OACZ,aAAc,EACd,QAAS,qBACT,SAAUA,EAAM,WAAW,MAAM,SACjC,OAAQ,UACR,MAAOc,EACP,WAAY,SAASX,EAAmB,KAAKC,IAE7C,yCAA0C,CACxC,MAAOQ,EACP,YAAa,CACX,QAAS,KACT,SAAU,WACV,MAAO,EACP,OAAQ,CACV,CACF,EAEA,2CAA4C,CAC1C,OAAQ,SACV,EAEA,2CAA4C,CAC1C,OAAQ,cACR,MAAOZ,EAAM,QAAQ,KAAK,SAC1B,QAAS,EACX,EAEA,8CAA+C,CAC7C,QAAS,gBACT,SAAU,QACZ,EACA,8CAA+C,CAC7C,QAAS,gBACT,SAAUA,EAAM,WAAW,UAAU,QACvC,CACF,CACF,CACF,EAEA,EAAsB,YAAc"}
1
+ {"version":3,"file":"components.js","names":["Box","styled","SegmentedControlRoot","theme","SegmentedControlItem","prop","transitionDuration","transitionTimingFunction","SegmentedControlInput","resolveColor","color","paletteColors","textColors","textKey","SegmentedControlLabel","primaryColor","secondaryColor","_primaryColor","_secondaryColor"],"sources":["../../../src/components/SegmentedControl/components.ts"],"sourcesContent":["import Box, { type BoxProps } from '@mui/material/Box';\nimport { styled, type Theme } from '@mui/material/styles';\nimport type { TypographyProps } from '@mui/material/Typography';\nimport type { ComponentType } from 'react';\n\nexport const SegmentedControlRoot: ComponentType<BoxProps> = styled(Box)<BoxProps>(({ theme }) => {\n return {\n position: 'relative',\n display: 'inline-flex',\n flexDirection: 'row',\n width: 'auto',\n borderRadius: theme.shape.borderRadius,\n overflow: 'hidden',\n padding: '0.25rem',\n backgroundColor: '#f1f3f5',\n\n '&[data-vertical=\"true\"]': {\n display: 'flex',\n flexDirection: 'column',\n width: 'max-content',\n },\n\n '&[data-fullwidth=\"true\"]': {\n display: 'flex',\n width: 'auto',\n },\n\n '&[data-size=\"small\"]': {\n padding: '0.15rem',\n },\n '&[data-size=\"large\"]': {\n padding: '0.35rem',\n },\n };\n});\nSegmentedControlRoot.displayName = 'SegmentedControlRoot';\n\nexport const SegmentedControlItem: ComponentType<\n BoxProps & {\n transitionDuration?: number;\n transitionTimingFunction?: string;\n }\n> = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'transitionDuration' && prop !== 'transitionTimingFunction',\n})<\n BoxProps & {\n transitionDuration?: number;\n transitionTimingFunction?: string;\n }\n>(({ theme, transitionDuration = 150, transitionTimingFunction = 'ease' }) => {\n return {\n position: 'relative',\n flex: 1,\n zIndex: 2,\n transition: `border-color ${transitionDuration}ms ${transitionTimingFunction}`,\n\n '.SegmentedControl-root[data-with-item-border=\"true\"] &::before': {\n content: '\"\"',\n position: 'absolute',\n top: 0,\n bottom: 0,\n insetInlineStart: 0,\n backgroundColor: theme.palette.divider,\n width: '1px',\n transition: `background-color ${transitionDuration}ms ${transitionTimingFunction}`,\n },\n\n '.SegmentedControl-root[data-with-item-border=\"true\"] &:first-of-type::before': {\n backgroundColor: 'transparent',\n },\n\n '.SegmentedControl-root[data-vertical=\"true\"] &::before': {\n top: 0,\n insetInline: 0,\n bottom: 'auto',\n height: '1px',\n width: 'auto',\n },\n };\n});\n\nSegmentedControlItem.displayName = 'SegmentedControlItem';\n\nexport const SegmentedControlInput: ComponentType<BoxProps<'input'>> = styled(Box)<\n BoxProps<'input'>\n>(() => ({\n height: 0,\n width: 0,\n position: 'absolute',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n opacity: 0,\n}));\n\nSegmentedControlInput.displayName = 'SegmentedControlInput';\n\ntype PaletteColorKey = 'primary' | 'secondary' | 'info' | 'warning' | 'error' | 'success';\ntype TextColorKey = 'primary' | 'secondary' | 'disabled';\n\nfunction resolveColor(theme: Theme, color: TypographyProps['color']): string | undefined {\n if (!color) return undefined;\n const paletteColors: PaletteColorKey[] = [\n 'primary',\n 'secondary',\n 'info',\n 'warning',\n 'error',\n 'success',\n ];\n const textColors = ['textPrimary', 'textSecondary', 'textDisabled'];\n\n if (paletteColors.includes(color as PaletteColorKey)) {\n return theme.palette[color as PaletteColorKey].main;\n }\n if (textColors.includes(color as string)) {\n const textKey = (color as string).substring(4).toLowerCase() as TextColorKey;\n return theme.palette.text[textKey];\n }\n return color as string;\n}\n\ntype SegmentedControlLabelProps = BoxProps & {\n primaryColor?: string;\n secondaryColor?: string;\n transitionDuration?: number;\n transitionTimingFunction?: string;\n htmlFor?: string;\n};\n\nexport const SegmentedControlLabel: ComponentType<SegmentedControlLabelProps> = styled(Box, {\n shouldForwardProp: (prop) =>\n prop !== 'transitionDuration' &&\n prop !== 'transitionTimingFunction' &&\n prop !== 'primaryColor' &&\n prop !== 'secondaryColor',\n})<SegmentedControlLabelProps>(({\n theme,\n transitionDuration = 150,\n transitionTimingFunction = 'ease',\n primaryColor,\n secondaryColor,\n}) => {\n const _primaryColor = resolveColor(theme, primaryColor) ?? theme.palette.primary.main;\n const _secondaryColor = resolveColor(theme, secondaryColor) ?? theme.palette.text.secondary;\n\n return {\n fontWeight: 500,\n display: 'block',\n textAlign: 'center',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n userSelect: 'none',\n borderRadius: 1,\n padding: '0.3125rem 0.625rem',\n fontSize: theme.typography.body1.fontSize,\n cursor: 'pointer',\n color: _secondaryColor,\n transition: `color ${transitionDuration}ms ${transitionTimingFunction}`,\n\n '.SegmentedControl-item.Mui-active > &&': {\n color: _primaryColor,\n '&::before': {\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n zIndex: 0,\n },\n },\n\n '.SegmentedControl-item.Mui-readOnly > &&': {\n cursor: 'default',\n },\n\n '.SegmentedControl-item.Mui-disabled > &&': {\n cursor: 'not-allowed',\n color: theme.palette.text.disabled,\n opacity: 0.7,\n },\n\n '.SegmentedControl-root[data-size=\"small\"] &': {\n padding: '0.2rem 0.4rem',\n fontSize: '0.7rem',\n },\n '.SegmentedControl-root[data-size=\"large\"] &': {\n padding: '0.4rem 0.8rem',\n fontSize: theme.typography.subtitle1.fontSize,\n },\n };\n});\n\nSegmentedControlLabel.displayName = 'SegmentedControlLabel';\n"],"mappings":"A,+EAKA,MAAaE,EAAgDD,EAAOD,CAAG,CAAC,EAAY,CAAEG,YAC7E,CACL,SAAU,WACV,QAAS,cACT,cAAe,MACf,MAAO,OACP,aAAcA,EAAM,MAAM,aAC1B,SAAU,SACV,QAAS,UACT,gBAAiB,UAEjB,0BAA2B,CACzB,QAAS,OACT,cAAe,SACf,MAAO,aACT,EAEA,2BAA4B,CAC1B,QAAS,OACT,MAAO,MACT,EAEA,uBAAwB,CACtB,QAAS,SACX,EACA,uBAAwB,CACtB,QAAS,SACX,CACF,EACD,EACDD,EAAqB,YAAc,uBAEnC,MAAaE,EAKTH,EAAOD,EAAK,CACd,kBAAoBK,GAASA,IAAS,sBAAwBA,IAAS,0BACzE,CAAC,CAAC,EAKC,CAAEF,QAAOG,qBAAqB,IAAKC,2BAA2B,WACxD,CACL,SAAU,WACV,KAAM,EACN,OAAQ,EACR,WAAY,gBAAgBD,EAAmB,KAAKC,IAEpD,iEAAkE,CAChE,QAAS,KACT,SAAU,WACV,IAAK,EACL,OAAQ,EACR,iBAAkB,EAClB,gBAAiBJ,EAAM,QAAQ,QAC/B,MAAO,MACP,WAAY,oBAAoBG,EAAmB,KAAKC,GAC1D,EAEA,+EAAgF,CAC9E,gBAAiB,aACnB,EAEA,yDAA0D,CACxD,IAAK,EACL,YAAa,EACb,OAAQ,OACR,OAAQ,MACR,MAAO,MACT,CACF,EACD,EAEDH,EAAqB,YAAc,uBAEnC,MAAaI,EAA0DP,EAAOD,CAAG,CAAC,MAEzE,CACP,OAAQ,EACR,MAAO,EACP,SAAU,WACV,SAAU,SACV,WAAY,SACZ,QAAS,CACX,EAAE,EAEFQ,EAAsB,YAAc,wBAKpC,SAASC,EAAaN,EAAcO,EAAqD,CACvF,GAAI,CAACA,EAAO,OACZ,IAAMC,EAAmC,CACvC,UACA,YACA,OACA,UACA,QACA,SACF,EACMC,EAAa,CAAC,cAAe,gBAAiB,cAAc,EAElE,GAAID,EAAc,SAASD,CAAwB,EACjD,OAAOP,EAAM,QAAQO,EAAyB,CAAC,KAEjD,GAAIE,EAAW,SAASF,CAAe,EAAG,CACxC,IAAMG,EAAWH,EAAiB,UAAU,CAAC,CAAC,CAAC,YAAY,EAC3D,OAAOP,EAAM,QAAQ,KAAKU,EAC5B,CACA,OAAOH,CACT,CAUA,MAAaI,EAAmEb,EAAOD,EAAK,CAC1F,kBAAoBK,GAClBA,IAAS,sBACTA,IAAS,4BACTA,IAAS,gBACTA,IAAS,gBACb,CAAC,CAAC,EAA8B,CAC9BF,QACAG,qBAAqB,IACrBC,2BAA2B,OAC3BQ,eACAC,oBACI,CACJ,IAAMC,EAAgBR,EAAaN,EAAOY,CAAY,GAAKZ,EAAM,QAAQ,QAAQ,KAC3Ee,EAAkBT,EAAaN,EAAOa,CAAc,GAAKb,EAAM,QAAQ,KAAK,UAElF,MAAO,CACL,WAAY,IACZ,QAAS,QACT,UAAW,SACX,WAAY,SACZ,SAAU,SACV,aAAc,WACd,WAAY,OACZ,aAAc,EACd,QAAS,qBACT,SAAUA,EAAM,WAAW,MAAM,SACjC,OAAQ,UACR,MAAOe,EACP,WAAY,SAASZ,EAAmB,KAAKC,IAE7C,yCAA0C,CACxC,MAAOU,EACP,YAAa,CACX,QAAS,KACT,SAAU,WACV,MAAO,EACP,OAAQ,CACV,CACF,EAEA,2CAA4C,CAC1C,OAAQ,SACV,EAEA,2CAA4C,CAC1C,OAAQ,cACR,MAAOd,EAAM,QAAQ,KAAK,SAC1B,QAAS,EACX,EAEA,8CAA+C,CAC7C,QAAS,gBACT,SAAU,QACZ,EACA,8CAA+C,CAC7C,QAAS,gBACT,SAAUA,EAAM,WAAW,UAAU,QACvC,CACF,CACF,CAAC,EAEDW,EAAsB,YAAc,wB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Show.cjs","names":["Show","when","children","fallback"],"sources":["../../src/components/Show.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\n\nexport interface ShowProps {\n when: boolean | null | undefined;\n children?: ReactNode;\n fallback?: ReactNode;\n}\n\nexport const Show: FC<ShowProps> = ({ when, fallback, children }) => {\n if (when) {\n return children;\n }\n return fallback;\n};\n\nShow.displayName = 'Show';\n"],"mappings":"AAQA,MAAaA,GAAuB,CAAE,OAAM,WAAU,cAChDC,EACKC,EAEFC,EAGT,EAAK,YAAc"}
1
+ {"version":3,"file":"Show.cjs","names":["Show","when","fallback","children"],"sources":["../../src/components/Show.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\n\nexport interface ShowProps {\n when: boolean | null | undefined;\n children?: ReactNode;\n fallback?: ReactNode;\n}\n\nexport const Show: FC<ShowProps> = ({ when, fallback, children }) => {\n if (when) {\n return children;\n }\n return fallback;\n};\n\nShow.displayName = 'Show';\n"],"mappings":"AAQA,MAAaA,GAAuB,CAAEC,OAAMC,WAAUC,cAChDF,EACKE,EAEFD,EAGTF,EAAK,YAAc,O"}
@@ -1,10 +1,7 @@
1
1
  import { FC, ReactNode } from "react";
2
- //#region src/components/Show.d.ts
3
2
  export interface ShowProps {
4
3
  when: boolean | null | undefined;
5
4
  children?: ReactNode;
6
5
  fallback?: ReactNode;
7
6
  }
8
- export declare const Show: FC<ShowProps>;
9
- //#endregion
10
- //# sourceMappingURL=Show.d.cts.map
7
+ export declare const Show: FC<ShowProps>;
@@ -1,10 +1,7 @@
1
1
  import { FC, ReactNode } from "react";
2
- //#region src/components/Show.d.ts
3
2
  export interface ShowProps {
4
3
  when: boolean | null | undefined;
5
4
  children?: ReactNode;
6
5
  fallback?: ReactNode;
7
6
  }
8
- export declare const Show: FC<ShowProps>;
9
- //#endregion
10
- //# sourceMappingURL=Show.d.ts.map
7
+ export declare const Show: FC<ShowProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"Show.js","names":["Show","when","children","fallback"],"sources":["../../src/components/Show.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\n\nexport interface ShowProps {\n when: boolean | null | undefined;\n children?: ReactNode;\n fallback?: ReactNode;\n}\n\nexport const Show: FC<ShowProps> = ({ when, fallback, children }) => {\n if (when) {\n return children;\n }\n return fallback;\n};\n\nShow.displayName = 'Show';\n"],"mappings":"AAQA,MAAaA,GAAuB,CAAE,OAAM,WAAU,cAChDC,EACKC,EAEFC,EAGT,EAAK,YAAc"}
1
+ {"version":3,"file":"Show.js","names":["Show","when","fallback","children"],"sources":["../../src/components/Show.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\n\nexport interface ShowProps {\n when: boolean | null | undefined;\n children?: ReactNode;\n fallback?: ReactNode;\n}\n\nexport const Show: FC<ShowProps> = ({ when, fallback, children }) => {\n if (when) {\n return children;\n }\n return fallback;\n};\n\nShow.displayName = 'Show';\n"],"mappings":"AAQA,MAAaA,GAAuB,CAAEC,OAAMC,WAAUC,cAChDF,EACKE,EAEFD,EAGTF,EAAK,YAAc,O"}
@@ -1 +1 @@
1
- {"version":3,"file":"SmOrDown.cjs","names":["useMediaQuery","require_runtime","react_jsx_runtime","_mui_material_useMediaQuery","SmOrDown","props","theme","children"],"sources":["../../src/components/SmOrDown.tsx"],"sourcesContent":["'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface SmOrDownProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function SmOrDown(props: SmOrDownProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.down('md'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n"],"mappings":"+JAUA,SAAgBI,EAAS,EAAsB,CAC7C,GAAM,CAAE,YAAaC,EAGrB,MADI,EAAA,EADYL,EAAAA,QAAAA,CAAe,GAAiBM,EAAM,YAAY,KAAK,IAAI,CAChE,GAAK,CAACC,EAAiB,KAC3B,iBAAA,EAAAL,EAAA,IAAA,CAAAA,EAAA,SAAA,CAAG,UAAW,CAAA,CACvB"}
1
+ {"version":3,"file":"SmOrDown.cjs","names":["useMediaQuery","require_runtime","react_jsx_runtime","_mui_material_useMediaQuery","SmOrDown","props","children","theme"],"sources":["../../src/components/SmOrDown.tsx"],"sourcesContent":["'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface SmOrDownProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function SmOrDown(props: SmOrDownProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.down('md'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n"],"mappings":"A,+JAUA,SAAgBI,EAASC,EAAsB,CAC7C,GAAM,CAAEC,YAAaD,EAGrB,MADI,EAAA,EADYL,EAAAA,QAAAA,CAAeO,GAAiBA,EAAM,YAAY,KAAK,IAAI,CAChE,GAAK,CAACD,EAAiB,KAC3B,iBAAA,EAAAJ,EAAA,IAAA,CAAAA,EAAA,SAAA,CAAGI,UAAW,CAAA,CACvB,C"}
@@ -1,8 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- //#region src/components/SmOrDown.d.ts
3
2
  export interface SmOrDownProps {
4
3
  children?: ReactNode | ReactNode[];
5
4
  }
6
- export declare function SmOrDown(props: SmOrDownProps): import("react").JSX.Element | null;
7
- //#endregion
8
- //# sourceMappingURL=SmOrDown.d.cts.map
5
+ export declare function SmOrDown(props: SmOrDownProps): import("react").JSX.Element | null;
@@ -1,8 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- //#region src/components/SmOrDown.d.ts
3
2
  export interface SmOrDownProps {
4
3
  children?: ReactNode | ReactNode[];
5
4
  }
6
- export declare function SmOrDown(props: SmOrDownProps): import("react").JSX.Element | null;
7
- //#endregion
8
- //# sourceMappingURL=SmOrDown.d.ts.map
5
+ export declare function SmOrDown(props: SmOrDownProps): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- {"version":3,"file":"SmOrDown.js","names":["useMediaQuery","SmOrDown","props","theme","children","Fragment"],"sources":["../../src/components/SmOrDown.tsx"],"sourcesContent":["'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface SmOrDownProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function SmOrDown(props: SmOrDownProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.down('md'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n"],"mappings":"8GAUA,SAAgBC,EAAS,EAAsB,CAC7C,GAAM,CAAE,YAAaC,EAGrB,MADI,CADYF,EAAe,GAAiBG,EAAM,YAAY,KAAK,IAAI,CAChE,GAAK,CAACC,EAAiB,KAC3B,kBAAAC,EAAA,CAAG,UAAW,CAAA,CACvB"}
1
+ {"version":3,"file":"SmOrDown.js","names":["Fragment","jsx","useMediaQuery","SmOrDown","props","children","theme"],"sources":["../../src/components/SmOrDown.tsx"],"sourcesContent":["'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface SmOrDownProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function SmOrDown(props: SmOrDownProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.down('md'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n"],"mappings":"A,8GAUA,SAAgBG,EAASC,EAAsB,CAC7C,GAAM,CAAEC,YAAaD,EAGrB,MADI,CADYF,EAAeI,GAAiBA,EAAM,YAAY,KAAK,IAAI,CAChE,GAAK,CAACD,EAAiB,KAC3BJ,kBAAAD,EAAA,CAAGK,UAAW,CAAA,CACvB,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"SmOrUp.cjs","names":["useMediaQuery","require_runtime","react_jsx_runtime","_mui_material_useMediaQuery","SmOrUp","props","theme","children"],"sources":["../../src/components/SmOrUp.tsx"],"sourcesContent":["'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface SmOrUpProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function SmOrUp(props: SmOrUpProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.up('sm'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n"],"mappings":"+JAUA,SAAgBI,EAAO,EAAoB,CACzC,GAAM,CAAE,YAAaC,EAGrB,MADI,EAAA,EADYL,EAAAA,QAAAA,CAAe,GAAiBM,EAAM,YAAY,GAAG,IAAI,CAC9D,GAAK,CAACC,EAAiB,KAC3B,iBAAA,EAAAL,EAAA,IAAA,CAAAA,EAAA,SAAA,CAAG,UAAW,CAAA,CACvB"}
1
+ {"version":3,"file":"SmOrUp.cjs","names":["useMediaQuery","require_runtime","react_jsx_runtime","_mui_material_useMediaQuery","SmOrUp","props","children","theme"],"sources":["../../src/components/SmOrUp.tsx"],"sourcesContent":["'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface SmOrUpProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function SmOrUp(props: SmOrUpProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.up('sm'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n"],"mappings":"A,+JAUA,SAAgBI,EAAOC,EAAoB,CACzC,GAAM,CAAEC,YAAaD,EAGrB,MADI,EAAA,EADYL,EAAAA,QAAAA,CAAeO,GAAiBA,EAAM,YAAY,GAAG,IAAI,CAC9D,GAAK,CAACD,EAAiB,KAC3B,iBAAA,EAAAJ,EAAA,IAAA,CAAAA,EAAA,SAAA,CAAGI,UAAW,CAAA,CACvB,C"}
@@ -1,8 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- //#region src/components/SmOrUp.d.ts
3
2
  export interface SmOrUpProps {
4
3
  children?: ReactNode | ReactNode[];
5
4
  }
6
- export declare function SmOrUp(props: SmOrUpProps): import("react").JSX.Element | null;
7
- //#endregion
8
- //# sourceMappingURL=SmOrUp.d.cts.map
5
+ export declare function SmOrUp(props: SmOrUpProps): import("react").JSX.Element | null;
@@ -1,8 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- //#region src/components/SmOrUp.d.ts
3
2
  export interface SmOrUpProps {
4
3
  children?: ReactNode | ReactNode[];
5
4
  }
6
- export declare function SmOrUp(props: SmOrUpProps): import("react").JSX.Element | null;
7
- //#endregion
8
- //# sourceMappingURL=SmOrUp.d.ts.map
5
+ export declare function SmOrUp(props: SmOrUpProps): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- {"version":3,"file":"SmOrUp.js","names":["useMediaQuery","SmOrUp","props","theme","children","Fragment"],"sources":["../../src/components/SmOrUp.tsx"],"sourcesContent":["'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface SmOrUpProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function SmOrUp(props: SmOrUpProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.up('sm'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n"],"mappings":"8GAUA,SAAgBC,EAAO,EAAoB,CACzC,GAAM,CAAE,YAAaC,EAGrB,MADI,CADYF,EAAe,GAAiBG,EAAM,YAAY,GAAG,IAAI,CAC9D,GAAK,CAACC,EAAiB,KAC3B,kBAAAC,EAAA,CAAG,UAAW,CAAA,CACvB"}
1
+ {"version":3,"file":"SmOrUp.js","names":["Fragment","jsx","useMediaQuery","SmOrUp","props","children","theme"],"sources":["../../src/components/SmOrUp.tsx"],"sourcesContent":["'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface SmOrUpProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function SmOrUp(props: SmOrUpProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.up('sm'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n"],"mappings":"A,8GAUA,SAAgBG,EAAOC,EAAoB,CACzC,GAAM,CAAEC,YAAaD,EAGrB,MADI,CADYF,EAAeI,GAAiBA,EAAM,YAAY,GAAG,IAAI,CAC9D,GAAK,CAACD,EAAiB,KAC3BJ,kBAAAD,EAAA,CAAGK,UAAW,CAAA,CACvB,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"Space.cjs","names":["Box","require_runtime","_mui_material_Box","react_jsx_runtime","Space","props","minWidth","width","minHeight","height","sx"],"sources":["../../src/components/Space.tsx"],"sourcesContent":["import Box, { type BoxProps } from '@mui/material/Box';\n\nexport interface SpaceProps extends BoxProps {\n width?: number;\n height?: number;\n minWidth?: number;\n minHeight?: number;\n}\n\nexport const Space = ({ width, height, minWidth, minHeight, sx, ref, ...props }: SpaceProps) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n width,\n height,\n minWidth: minWidth ?? width,\n minHeight: minHeight ?? height,\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n};\n\nSpace.displayName = 'Space';\n"],"mappings":"4IASA,MAAaI,GAAS,CAAE,QAAO,SAAQ,WAAU,YAAW,KAAI,MAAK,GAAGC,KAEpE,iBAAA,EAAAF,EAAA,IAAA,CAACH,EAAAA,QAAD,CACO,MACL,GAAI,CACF,CACE,QACA,SACA,SAAUM,GAAYC,EACtB,UAAWC,GAAaC,CAC1B,EACA,GAAI,MAAM,QAAQC,CAAE,EAAIA,EAAK,CAACA,CAAE,CAClC,EACA,GAAIL,CACL,CAAA,EAIL,EAAM,YAAc"}
1
+ {"version":3,"file":"Space.cjs","names":["Box","require_runtime","_mui_material_Box","react_jsx_runtime","Space","width","height","minWidth","minHeight","sx","ref","props"],"sources":["../../src/components/Space.tsx"],"sourcesContent":["import Box, { type BoxProps } from '@mui/material/Box';\n\nexport interface SpaceProps extends BoxProps {\n width?: number;\n height?: number;\n minWidth?: number;\n minHeight?: number;\n}\n\nexport const Space = ({ width, height, minWidth, minHeight, sx, ref, ...props }: SpaceProps) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n width,\n height,\n minWidth: minWidth ?? width,\n minHeight: minHeight ?? height,\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n};\n\nSpace.displayName = 'Space';\n"],"mappings":"A,4IASA,MAAaI,GAAS,CAAEC,QAAOC,SAAQC,WAAUC,YAAWC,KAAIC,MAAK,GAAGC,KAEpE,iBAAA,EAAAR,EAAA,IAAA,CAACH,EAAAA,QAAD,CACOU,MACL,GAAI,CACF,CACEL,QACAC,SACA,SAAUC,GAAYF,EACtB,UAAWG,GAAaF,CAC1B,EACA,GAAI,MAAM,QAAQG,CAAE,EAAIA,EAAK,CAACA,CAAE,CAClC,EACA,GAAIE,CACL,CAAA,EAILP,EAAM,YAAc,Q"}
@@ -1,14 +1,11 @@
1
1
  import { BoxProps } from "@mui/material/Box";
2
- //#region src/components/Space.d.ts
3
2
  export interface SpaceProps extends BoxProps {
4
3
  width?: number;
5
4
  height?: number;
6
5
  minWidth?: number;
7
6
  minHeight?: number;
8
7
  }
9
- export declare const Space: {
10
- ({ width, height, minWidth, minHeight, sx, ref, ...props }: SpaceProps): import("react").JSX.Element;
11
- displayName: string;
12
- };
13
- //#endregion
14
- //# sourceMappingURL=Space.d.cts.map
8
+ export declare function Space({ width, height, minWidth, minHeight, sx, ref, ...props }: SpaceProps): import("react").JSX.Element;
9
+ export declare namespace Space {
10
+ var displayName: string;
11
+ }
@@ -1,14 +1,11 @@
1
1
  import { BoxProps } from "@mui/material/Box";
2
- //#region src/components/Space.d.ts
3
2
  export interface SpaceProps extends BoxProps {
4
3
  width?: number;
5
4
  height?: number;
6
5
  minWidth?: number;
7
6
  minHeight?: number;
8
7
  }
9
- export declare const Space: {
10
- ({ width, height, minWidth, minHeight, sx, ref, ...props }: SpaceProps): import("react").JSX.Element;
11
- displayName: string;
12
- };
13
- //#endregion
14
- //# sourceMappingURL=Space.d.ts.map
8
+ export declare function Space({ width, height, minWidth, minHeight, sx, ref, ...props }: SpaceProps): import("react").JSX.Element;
9
+ export declare namespace Space {
10
+ var displayName: string;
11
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"Space.js","names":["Box","Space","props","minWidth","width","minHeight","height","sx"],"sources":["../../src/components/Space.tsx"],"sourcesContent":["import Box, { type BoxProps } from '@mui/material/Box';\n\nexport interface SpaceProps extends BoxProps {\n width?: number;\n height?: number;\n minWidth?: number;\n minHeight?: number;\n}\n\nexport const Space = ({ width, height, minWidth, minHeight, sx, ref, ...props }: SpaceProps) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n width,\n height,\n minWidth: minWidth ?? width,\n minHeight: minHeight ?? height,\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n};\n\nSpace.displayName = 'Space';\n"],"mappings":"yEASA,MAAaC,GAAS,CAAE,QAAO,SAAQ,WAAU,YAAW,KAAI,MAAK,GAAGC,KAEpE,kBAACF,EAAD,CACO,MACL,GAAI,CACF,CACE,QACA,SACA,SAAUG,GAAYC,EACtB,UAAWC,GAAaC,CAC1B,EACA,GAAI,MAAM,QAAQC,CAAE,EAAIA,EAAK,CAACA,CAAE,CAClC,EACA,GAAIL,CACL,CAAA,EAIL,EAAM,YAAc"}
1
+ {"version":3,"file":"Space.js","names":["Box","jsx","Space","width","height","minWidth","minHeight","sx","ref","props"],"sources":["../../src/components/Space.tsx"],"sourcesContent":["import Box, { type BoxProps } from '@mui/material/Box';\n\nexport interface SpaceProps extends BoxProps {\n width?: number;\n height?: number;\n minWidth?: number;\n minHeight?: number;\n}\n\nexport const Space = ({ width, height, minWidth, minHeight, sx, ref, ...props }: SpaceProps) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n width,\n height,\n minWidth: minWidth ?? width,\n minHeight: minHeight ?? height,\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n};\n\nSpace.displayName = 'Space';\n"],"mappings":"A,yEASA,MAAaE,GAAS,CAAEC,QAAOC,SAAQC,WAAUC,YAAWC,KAAIC,MAAK,GAAGC,KAEpER,kBAACD,EAAD,CACOQ,MACL,GAAI,CACF,CACEL,QACAC,SACA,SAAUC,GAAYF,EACtB,UAAWG,GAAaF,CAC1B,EACA,GAAI,MAAM,QAAQG,CAAE,EAAIA,EAAK,CAACA,CAAE,CAClC,EACA,GAAIE,CACL,CAAA,EAILP,EAAM,YAAc,Q"}
@@ -1,2 +1,2 @@
1
- "use client";const e=require("../_virtual/_rolldown/runtime.cjs"),t=require("../hooks/useId.cjs"),n=require("../hooks/useUncontrolled.cjs"),r=require("../hooks/useElementSize.cjs");let i=require("@mui/material/Box");i=e.__toESM(i,1);let a=require("react/jsx-runtime"),o=require("clsx");o=e.__toESM(o,1);let s=require("@mui/material/styles"),c=require("@mui/material/Link");c=e.__toESM(c,1);const l=e=>{let{sx:i,className:s,style:c,id:l,initialState:p,maxHeight:m=100,hideLabel:h,showLabel:g,expanded:_,onExpandedChange:v,controlRef:y,children:b,transitionDuration:x=100,ref:S,...C}=e,w=t.useId(l),T=`${w}-region`,[E,D]=n.useUncontrolled({value:_,defaultValue:p,finalValue:!1,onChange:v}),{ref:O,height:k}=r.useElementSize(),A=E?h:g,j=A!==null&&m<k;return/* @__PURE__ */ (0,a.jsxs)(u,{className:(0,o.default)(`Spoiler-root`,s),sx:[i,...Array.isArray(i)?i:[i??!1]],style:c,id:w,ref:S,"data-has-spoiler":j,...C,children:[j&&/* @__PURE__ */ (0,a.jsx)(d,{component:`button`,ref:y,onClick:()=>{D(!E)},"aria-expanded":E,"aria-controls":T,children:A}),/* @__PURE__ */ (0,a.jsx)(f,{"data-reduce-motion":!0,role:`region`,id:T,transitionDuration:x,style:{maxHeight:E?k??void 0:m},children:/* @__PURE__ */ (0,a.jsx)(`div`,{ref:O,children:b})})]})};l.displayName=`Spoiler`;const u=(0,s.styled)(i.default)(()=>({position:`relative`,'&:where([data-has-spoiler="true"])':{marginBottom:24}})),d=(0,s.styled)(c.default)(()=>({position:`absolute`,insetInlineStart:0,top:`100%`,height:32,textDecoration:`none`,"&:hover":{textDecoration:`underline`}})),f=(0,s.styled)(i.default,{shouldForwardProp:e=>e!==`transitionDuration`})(({transitionDuration:e=200})=>({display:`flex`,flexDirection:`column`,overflow:`hidden`,transition:`max-height ${e}ms ease`}));exports.Spoiler=l;
1
+ "use client";const e=require("../_virtual/_rolldown/runtime.cjs"),t=require("../hooks/useElementSize.cjs"),n=require("../hooks/useId.cjs"),r=require("../hooks/useUncontrolled.cjs");let i=require("@mui/material/Box");i=e.__toESM(i,1);let a=require("react/jsx-runtime"),o=require("clsx");o=e.__toESM(o,1);let s=require("@mui/material/styles"),c=require("@mui/material/Link");c=e.__toESM(c,1);const l=e=>{let{sx:i,className:s,style:c,id:l,initialState:p,maxHeight:m=100,hideLabel:h,showLabel:g,expanded:_,onExpandedChange:v,controlRef:y,children:b,transitionDuration:x=100,ref:S,...C}=e,w=n.useId(l),T=`${w}-region`,[E,D]=r.useUncontrolled({value:_,defaultValue:p,finalValue:!1,onChange:v}),{ref:O,height:k}=t.useElementSize(),A=E?h:g,j=A!==null&&m<k;return/* @__PURE__ */ (0,a.jsxs)(u,{className:(0,o.default)(`Spoiler-root`,s),sx:[i,...Array.isArray(i)?i:[i??!1]],style:c,id:w,ref:S,"data-has-spoiler":j,...C,children:[j&&/* @__PURE__ */ (0,a.jsx)(d,{component:`button`,ref:y,onClick:()=>{D(!E)},"aria-expanded":E,"aria-controls":T,children:A}),/* @__PURE__ */ (0,a.jsx)(f,{"data-reduce-motion":!0,role:`region`,id:T,transitionDuration:x,style:{maxHeight:E?k??void 0:m},children:/* @__PURE__ */ (0,a.jsx)(`div`,{ref:O,children:b})})]})};l.displayName=`Spoiler`;const u=(0,s.styled)(i.default)(()=>({position:`relative`,'&:where([data-has-spoiler="true"])':{marginBottom:24}})),d=(0,s.styled)(c.default)(()=>({position:`absolute`,insetInlineStart:0,top:`100%`,height:32,textDecoration:`none`,"&:hover":{textDecoration:`underline`}})),f=(0,s.styled)(i.default,{shouldForwardProp:e=>e!==`transitionDuration`})(({transitionDuration:e=200})=>({display:`flex`,flexDirection:`column`,overflow:`hidden`,transition:`max-height ${e}ms ease`}));exports.Spoiler=l;
2
2
  //# sourceMappingURL=Spoiler.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Spoiler.cjs","names":["useId","useUncontrolled","useElementSize","styled","Box","Link","require_runtime","require_useId","require_useUncontrolled","require_useElementSize","_mui_material_Box","react_jsx_runtime","clsx","_mui_material_styles","_mui_material_Link","Spoiler","restProps","props","_id","id","regionId","show","setShowState","expanded","initialState","onExpandedChange","contentRef","spoilerMoreContent","hideLabel","showLabel","hasSpoiler","maxHeight","height","RootBox","className","sx","StyledMoreButton","controlRef","StyledContent","prop","transitionDuration"],"sources":["../../src/components/Spoiler.tsx"],"sourcesContent":["'use client';\n\nimport Box, { type BoxProps } from '@mui/material/Box';\nimport Link, { type LinkProps } from '@mui/material/Link';\nimport { type SxProps, styled } from '@mui/material/styles';\nimport clsx from 'clsx';\nimport type { CSSProperties, ReactNode, Ref } from 'react';\nimport { useElementSize } from '../hooks/useElementSize.js';\nimport { useId } from '../hooks/useId.js';\nimport { useUncontrolled } from '../hooks/useUncontrolled.js';\n\nexport interface SpoilerProps {\n sx?: SxProps;\n\n className?: string;\n\n style?: CSSProperties;\n\n id?: string;\n\n /** Maximum height of the visible content, when this point is reached spoiler appears, `100` by default */\n maxHeight?: number;\n\n /** Label for close spoiler action */\n hideLabel: React.ReactNode;\n\n /** Label for open spoiler action */\n showLabel: React.ReactNode;\n\n /** Get ref of spoiler toggle button */\n controlRef?: React.ForwardedRef<HTMLButtonElement>;\n\n /** Initial spoiler state, true to wrap content in spoiler, false to show content without spoiler, opened state is updated on mount */\n initialState?: boolean;\n\n /** Controlled expanded state value */\n expanded?: boolean;\n\n /** Called when expanded state changes (when spoiler visibility is toggled by the user) */\n onExpandedChange?: (expanded: boolean) => void;\n\n /** Spoiler reveal transition duration in ms, set 0 or null to turn off animation, `200` by default */\n transitionDuration?: number;\n\n children?: ReactNode;\n\n ref?: Ref<HTMLElement>;\n}\n\nexport const Spoiler = (props: SpoilerProps) => {\n const {\n sx,\n className,\n style,\n id,\n initialState,\n maxHeight = 100,\n hideLabel,\n showLabel,\n expanded,\n onExpandedChange,\n controlRef,\n children,\n transitionDuration = 100,\n ref,\n ...restProps\n } = props;\n\n const _id = useId(id);\n const regionId = `${_id}-region`;\n const [show, setShowState] = useUncontrolled({\n value: expanded,\n defaultValue: initialState,\n finalValue: false,\n onChange: onExpandedChange,\n });\n const { ref: contentRef, height } = useElementSize<HTMLDivElement>();\n\n const spoilerMoreContent = show ? hideLabel : showLabel;\n const hasSpoiler = spoilerMoreContent !== null && maxHeight < height;\n\n return (\n <RootBox\n className={clsx('Spoiler-root', className)}\n sx={[sx, ...(Array.isArray(sx) ? sx : [sx ?? false])]}\n style={style}\n id={_id}\n ref={ref}\n data-has-spoiler={hasSpoiler}\n {...restProps}\n >\n {hasSpoiler && (\n <StyledMoreButton\n component='button'\n ref={controlRef}\n onClick={() => {\n setShowState(!show);\n }}\n aria-expanded={show}\n aria-controls={regionId}\n >\n {spoilerMoreContent}\n </StyledMoreButton>\n )}\n <StyledContent\n data-reduce-motion\n role='region'\n id={regionId}\n transitionDuration={transitionDuration}\n style={{\n maxHeight: !show ? maxHeight : (height ?? undefined),\n }}\n >\n <div ref={contentRef}>{children}</div>\n </StyledContent>\n </RootBox>\n );\n};\n\nSpoiler.displayName = 'Spoiler';\n\nconst RootBox = styled(Box)<BoxProps>(() => ({\n position: 'relative',\n '&:where([data-has-spoiler=\"true\"])': {\n marginBottom: 24,\n },\n}));\n\nconst StyledMoreButton = styled(Link<'button'>)<LinkProps<'button'>>(() => ({\n position: 'absolute',\n insetInlineStart: 0,\n top: '100%',\n height: 32,\n textDecoration: 'none',\n '&:hover': {\n textDecoration: 'underline',\n },\n}));\n\nconst StyledContent = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'transitionDuration',\n})<\n BoxProps & {\n transitionDuration?: number;\n }\n>(({ transitionDuration = 200 }) => ({\n display: 'flex',\n flexDirection: 'column',\n overflow: 'hidden',\n transition: `max-height ${transitionDuration}ms ease`,\n}));\n"],"mappings":"sYAiDA,MAAae,EAAW,GAAwB,CAC9C,GAAM,CACJ,KACA,YACA,QACA,KACA,eACA,YAAY,IACZ,YACA,YACA,WACA,mBACA,aACA,WACA,qBAAqB,IACrB,MACA,GAAGC,GACDC,EAEEC,EAAMlB,EAAAA,MAAMmB,CAAE,EACdC,EAAW,GAAGF,EAAI,SAClB,CAACG,EAAMC,GAAgBrB,EAAAA,gBAAgB,CAC3C,MAAOsB,EACP,aAAcC,EACd,WAAY,GACZ,SAAUC,CACZ,CAAC,EACK,CAAE,IAAKC,EAAY,UAAWxB,EAAAA,eAA+B,EAE7DyB,EAAqBN,EAAOO,EAAYC,EACxCC,EAAaH,IAAuB,MAAQI,EAAYC,EAE9D,MACE,iBAAA,EAAArB,EAAA,KAAA,CAACsB,EAAD,CACE,WAAA,EAAWrB,EAAA,QAAA,CAAK,eAAgBsB,CAAS,EACzC,GAAI,CAACC,EAAI,GAAI,MAAM,QAAQA,CAAE,EAAIA,EAAK,CAACA,GAAM,EAAK,CAAE,EAC7C,QACP,GAAIjB,EACC,MACL,mBAAkBY,EAClB,GAAId,EAPN,SAAA,CASGc,GACC,iBAAA,EAAAnB,EAAA,IAAA,CAACyB,EAAD,CACE,UAAU,SACV,IAAKC,EACL,YAAe,CACbf,EAAa,CAACD,CAAI,CACpB,EACA,gBAAeA,EACf,gBAAeD,EAEd,SAAAO,CACe,CAAA,EAEpB,iBAAA,EAAAhB,EAAA,IAAA,CAAC2B,EAAD,CACE,qBAAA,GACA,KAAK,SACL,GAAIlB,EACgB,qBACpB,MAAO,CACL,UAAYC,EAAoBW,GAAU,IAAA,GAAvBD,CACrB,EAEA,SAAA,iBAAA,EAAApB,EAAA,IAAA,CAAC,MAAD,CAAK,IAAKe,EAAa,UAAc,CAAA,CACxB,CAAA,CACR,GAEb,EAEA,EAAQ,YAAc,UAEtB,MAAMO,GAAA,EAAU9B,EAAAA,OAAAA,CAAOC,EAAAA,OAAG,CAAC,MAAkB,CAC3C,SAAU,WACV,qCAAsC,CACpC,aAAc,EAChB,CACF,EAAE,EAEIgC,GAAA,EAAmBjC,EAAAA,OAAAA,CAAOE,EAAAA,OAAc,CAAC,MAA6B,CAC1E,SAAU,WACV,iBAAkB,EAClB,IAAK,OACL,OAAQ,GACR,eAAgB,OAChB,UAAW,CACT,eAAgB,WAClB,CACF,EAAE,EAEIiC,GAAA,EAAgBnC,EAAAA,OAAAA,CAAOC,EAAAA,QAAK,CAChC,kBAAoB,GAASmC,IAAS,oBACxC,CAAC,CAAC,EAIC,CAAE,qBAAqB,QAAW,CACnC,QAAS,OACT,cAAe,SACf,SAAU,SACV,WAAY,cAAcC,EAAmB,QAC/C,EAAE"}
1
+ {"version":3,"file":"Spoiler.cjs","names":["useId","useUncontrolled","useElementSize","clsx","styled","Box","Link","require_runtime","require_useElementSize","require_useId","require_useUncontrolled","_mui_material_Box","react_jsx_runtime","clsx","_mui_material_styles","_mui_material_Link","Spoiler","props","sx","className","style","id","initialState","maxHeight","hideLabel","showLabel","expanded","onExpandedChange","controlRef","children","transitionDuration","ref","restProps","_id","regionId","show","setShowState","contentRef","height","spoilerMoreContent","hasSpoiler","RootBox","StyledMoreButton","StyledContent","prop"],"sources":["../../src/components/Spoiler.tsx"],"sourcesContent":["'use client';\n\nimport Box, { type BoxProps } from '@mui/material/Box';\nimport Link, { type LinkProps } from '@mui/material/Link';\nimport { type SxProps, styled } from '@mui/material/styles';\nimport clsx from 'clsx';\nimport type { CSSProperties, ReactNode, Ref } from 'react';\nimport { useElementSize } from '../hooks/useElementSize.js';\nimport { useId } from '../hooks/useId.js';\nimport { useUncontrolled } from '../hooks/useUncontrolled.js';\n\nexport interface SpoilerProps {\n sx?: SxProps;\n\n className?: string;\n\n style?: CSSProperties;\n\n id?: string;\n\n /** Maximum height of the visible content, when this point is reached spoiler appears, `100` by default */\n maxHeight?: number;\n\n /** Label for close spoiler action */\n hideLabel: React.ReactNode;\n\n /** Label for open spoiler action */\n showLabel: React.ReactNode;\n\n /** Get ref of spoiler toggle button */\n controlRef?: React.ForwardedRef<HTMLButtonElement>;\n\n /** Initial spoiler state, true to wrap content in spoiler, false to show content without spoiler, opened state is updated on mount */\n initialState?: boolean;\n\n /** Controlled expanded state value */\n expanded?: boolean;\n\n /** Called when expanded state changes (when spoiler visibility is toggled by the user) */\n onExpandedChange?: (expanded: boolean) => void;\n\n /** Spoiler reveal transition duration in ms, set 0 or null to turn off animation, `200` by default */\n transitionDuration?: number;\n\n children?: ReactNode;\n\n ref?: Ref<HTMLElement>;\n}\n\nexport const Spoiler = (props: SpoilerProps) => {\n const {\n sx,\n className,\n style,\n id,\n initialState,\n maxHeight = 100,\n hideLabel,\n showLabel,\n expanded,\n onExpandedChange,\n controlRef,\n children,\n transitionDuration = 100,\n ref,\n ...restProps\n } = props;\n\n const _id = useId(id);\n const regionId = `${_id}-region`;\n const [show, setShowState] = useUncontrolled({\n value: expanded,\n defaultValue: initialState,\n finalValue: false,\n onChange: onExpandedChange,\n });\n const { ref: contentRef, height } = useElementSize<HTMLDivElement>();\n\n const spoilerMoreContent = show ? hideLabel : showLabel;\n const hasSpoiler = spoilerMoreContent !== null && maxHeight < height;\n\n return (\n <RootBox\n className={clsx('Spoiler-root', className)}\n sx={[sx, ...(Array.isArray(sx) ? sx : [sx ?? false])]}\n style={style}\n id={_id}\n ref={ref}\n data-has-spoiler={hasSpoiler}\n {...restProps}\n >\n {hasSpoiler && (\n <StyledMoreButton\n component='button'\n ref={controlRef}\n onClick={() => {\n setShowState(!show);\n }}\n aria-expanded={show}\n aria-controls={regionId}\n >\n {spoilerMoreContent}\n </StyledMoreButton>\n )}\n <StyledContent\n data-reduce-motion\n role='region'\n id={regionId}\n transitionDuration={transitionDuration}\n style={{\n maxHeight: !show ? maxHeight : (height ?? undefined),\n }}\n >\n <div ref={contentRef}>{children}</div>\n </StyledContent>\n </RootBox>\n );\n};\n\nSpoiler.displayName = 'Spoiler';\n\nconst RootBox = styled(Box)<BoxProps>(() => ({\n position: 'relative',\n '&:where([data-has-spoiler=\"true\"])': {\n marginBottom: 24,\n },\n}));\n\nconst StyledMoreButton = styled(Link<'button'>)<LinkProps<'button'>>(() => ({\n position: 'absolute',\n insetInlineStart: 0,\n top: '100%',\n height: 32,\n textDecoration: 'none',\n '&:hover': {\n textDecoration: 'underline',\n },\n}));\n\nconst StyledContent = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'transitionDuration',\n})<\n BoxProps & {\n transitionDuration?: number;\n }\n>(({ transitionDuration = 200 }) => ({\n display: 'flex',\n flexDirection: 'column',\n overflow: 'hidden',\n transition: `max-height ${transitionDuration}ms ease`,\n}));\n"],"mappings":"A,sYAiDA,MAAagB,EAAWC,GAAwB,CAC9C,GAAM,CACJC,KACAC,YACAC,QACAC,KACAC,eACAC,YAAY,IACZC,YACAC,YACAC,WACAC,mBACAC,aACAC,WACAC,qBAAqB,IACrBC,MACA,GAAGC,GACDf,EAEEgB,EAAMjC,EAAAA,MAAMqB,CAAE,EACda,EAAW,GAAGD,EAAI,SAClB,CAACE,EAAMC,GAAgBnC,EAAAA,gBAAgB,CAC3C,MAAOyB,EACP,aAAcJ,EACd,WAAY,GACZ,SAAUK,CACZ,CAAC,EACK,CAAE,IAAKU,EAAYC,UAAWpC,EAAAA,eAA+B,EAE7DqC,EAAqBJ,EAAOX,EAAYC,EACxCe,EAAaD,IAAuB,MAAQhB,EAAYe,EAE9D,MACE,iBAAA,EAAA1B,EAAA,KAAA,CAAC6B,EAAD,CACE,WAAA,EAAWtC,EAAAA,QAAAA,CAAK,eAAgBgB,CAAS,EACzC,GAAI,CAACD,EAAI,GAAI,MAAM,QAAQA,CAAE,EAAIA,EAAK,CAACA,GAAM,EAAK,CAAE,EAC7CE,QACP,GAAIa,EACCF,MACL,mBAAkBS,EAClB,GAAIR,EAPN,SAAA,CASGQ,GACC,iBAAA,EAAA5B,EAAA,IAAA,CAAC8B,EAAD,CACE,UAAU,SACV,IAAKd,EACL,YAAe,CACbQ,EAAa,CAACD,CAAI,CACpB,EACA,gBAAeA,EACf,gBAAeD,EAEd,SAAAK,CACe,CAAA,EAEpB,iBAAA,EAAA3B,EAAA,IAAA,CAAC+B,EAAD,CACE,qBAAA,GACA,KAAK,SACL,GAAIT,EACgBJ,qBACpB,MAAO,CACL,UAAYK,EAAoBG,GAAU,IAAA,GAAvBf,CACrB,EAEA,SAAA,iBAAA,EAAAX,EAAA,IAAA,CAAC,MAAD,CAAK,IAAKyB,EAAaR,UAAc,CAAA,CACxB,CAAA,CACR,C,EAEb,EAEAb,EAAQ,YAAc,UAEtB,MAAMyB,GAAA,EAAUrC,EAAAA,OAAAA,CAAOC,EAAAA,OAAG,CAAC,MAAkB,CAC3C,SAAU,WACV,qCAAsC,CACpC,aAAc,EAChB,CACF,EAAE,EAEIqC,GAAA,EAAmBtC,EAAAA,OAAAA,CAAOE,EAAAA,OAAc,CAAC,MAA6B,CAC1E,SAAU,WACV,iBAAkB,EAClB,IAAK,OACL,OAAQ,GACR,eAAgB,OAChB,UAAW,CACT,eAAgB,WAClB,CACF,EAAE,EAEIqC,GAAA,EAAgBvC,EAAAA,OAAAA,CAAOC,EAAAA,QAAK,CAChC,kBAAoBuC,GAASA,IAAS,oBACxC,CAAC,CAAC,EAIC,CAAEd,qBAAqB,QAAW,CACnC,QAAS,OACT,cAAe,SACf,SAAU,SACV,WAAY,cAAcA,EAAmB,QAC/C,EAAE,E"}
@@ -1,6 +1,5 @@
1
- import { SxProps } from "@mui/material/styles";
2
1
  import { CSSProperties, ReactNode, Ref } from "react";
3
- //#region src/components/Spoiler.d.ts
2
+ import { SxProps } from "@mui/material/styles";
4
3
  export interface SpoilerProps {
5
4
  sx?: SxProps;
6
5
  className?: string;
@@ -25,9 +24,7 @@ export interface SpoilerProps {
25
24
  children?: ReactNode;
26
25
  ref?: Ref<HTMLElement>;
27
26
  }
28
- export declare const Spoiler: {
29
- (props: SpoilerProps): import("react").JSX.Element;
30
- displayName: string;
31
- };
32
- //#endregion
33
- //# sourceMappingURL=Spoiler.d.cts.map
27
+ export declare function Spoiler(props: SpoilerProps): import("react").JSX.Element;
28
+ export declare namespace Spoiler {
29
+ var displayName: string;
30
+ }
@@ -1,6 +1,5 @@
1
1
  import { CSSProperties, ReactNode, Ref } from "react";
2
2
  import { SxProps } from "@mui/material/styles";
3
- //#region src/components/Spoiler.d.ts
4
3
  export interface SpoilerProps {
5
4
  sx?: SxProps;
6
5
  className?: string;
@@ -25,9 +24,7 @@ export interface SpoilerProps {
25
24
  children?: ReactNode;
26
25
  ref?: Ref<HTMLElement>;
27
26
  }
28
- export declare const Spoiler: {
29
- (props: SpoilerProps): import("react").JSX.Element;
30
- displayName: string;
31
- };
32
- //#endregion
33
- //# sourceMappingURL=Spoiler.d.ts.map
27
+ export declare function Spoiler(props: SpoilerProps): import("react").JSX.Element;
28
+ export declare namespace Spoiler {
29
+ var displayName: string;
30
+ }
@@ -1,2 +1,2 @@
1
- "use client";import{useId as e}from"../hooks/useId.js";import{useUncontrolled as t}from"../hooks/useUncontrolled.js";import{useElementSize as n}from"../hooks/useElementSize.js";import r from"@mui/material/Box";import{jsx as i,jsxs as a}from"react/jsx-runtime";import o from"clsx";import{styled as s}from"@mui/material/styles";import c from"@mui/material/Link";const l=r=>{let{sx:s,className:c,style:l,id:p,initialState:m,maxHeight:h=100,hideLabel:g,showLabel:_,expanded:v,onExpandedChange:y,controlRef:b,children:x,transitionDuration:S=100,ref:C,...w}=r,T=e(p),E=`${T}-region`,[D,O]=t({value:v,defaultValue:m,finalValue:!1,onChange:y}),{ref:k,height:A}=n(),j=D?g:_,M=j!==null&&h<A;return/* @__PURE__ */ a(u,{className:o(`Spoiler-root`,c),sx:[s,...Array.isArray(s)?s:[s??!1]],style:l,id:T,ref:C,"data-has-spoiler":M,...w,children:[M&&/* @__PURE__ */ i(d,{component:`button`,ref:b,onClick:()=>{O(!D)},"aria-expanded":D,"aria-controls":E,children:j}),/* @__PURE__ */ i(f,{"data-reduce-motion":!0,role:`region`,id:E,transitionDuration:S,style:{maxHeight:D?A??void 0:h},children:/* @__PURE__ */ i(`div`,{ref:k,children:x})})]})};l.displayName=`Spoiler`;const u=s(r)(()=>({position:`relative`,'&:where([data-has-spoiler="true"])':{marginBottom:24}})),d=s(c)(()=>({position:`absolute`,insetInlineStart:0,top:`100%`,height:32,textDecoration:`none`,"&:hover":{textDecoration:`underline`}})),f=s(r,{shouldForwardProp:e=>e!==`transitionDuration`})(({transitionDuration:e=200})=>({display:`flex`,flexDirection:`column`,overflow:`hidden`,transition:`max-height ${e}ms ease`}));export{l as Spoiler};
1
+ "use client";import{useElementSize as e}from"../hooks/useElementSize.js";import{useId as t}from"../hooks/useId.js";import{useUncontrolled as n}from"../hooks/useUncontrolled.js";import r from"@mui/material/Box";import{jsx as i,jsxs as a}from"react/jsx-runtime";import o from"clsx";import{styled as s}from"@mui/material/styles";import c from"@mui/material/Link";const l=r=>{let{sx:s,className:c,style:l,id:p,initialState:m,maxHeight:h=100,hideLabel:g,showLabel:_,expanded:v,onExpandedChange:y,controlRef:b,children:x,transitionDuration:S=100,ref:C,...w}=r,T=t(p),E=`${T}-region`,[D,O]=n({value:v,defaultValue:m,finalValue:!1,onChange:y}),{ref:k,height:A}=e(),j=D?g:_,M=j!==null&&h<A;return/* @__PURE__ */ a(u,{className:o(`Spoiler-root`,c),sx:[s,...Array.isArray(s)?s:[s??!1]],style:l,id:T,ref:C,"data-has-spoiler":M,...w,children:[M&&/* @__PURE__ */ i(d,{component:`button`,ref:b,onClick:()=>{O(!D)},"aria-expanded":D,"aria-controls":E,children:j}),/* @__PURE__ */ i(f,{"data-reduce-motion":!0,role:`region`,id:E,transitionDuration:S,style:{maxHeight:D?A??void 0:h},children:/* @__PURE__ */ i(`div`,{ref:k,children:x})})]})};l.displayName=`Spoiler`;const u=s(r)(()=>({position:`relative`,'&:where([data-has-spoiler="true"])':{marginBottom:24}})),d=s(c)(()=>({position:`absolute`,insetInlineStart:0,top:`100%`,height:32,textDecoration:`none`,"&:hover":{textDecoration:`underline`}})),f=s(r,{shouldForwardProp:e=>e!==`transitionDuration`})(({transitionDuration:e=200})=>({display:`flex`,flexDirection:`column`,overflow:`hidden`,transition:`max-height ${e}ms ease`}));export{l as Spoiler};
2
2
  //# sourceMappingURL=Spoiler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Spoiler.js","names":["clsx","Box","clsx$1","Link","Spoiler","restProps","props","_id","useId","id","regionId","show","setShowState","useUncontrolled","expanded","initialState","onExpandedChange","contentRef","useElementSize","spoilerMoreContent","hideLabel","showLabel","hasSpoiler","maxHeight","height","RootBox","className","sx","StyledMoreButton","controlRef","StyledContent","styled","prop","transitionDuration"],"sources":["../../src/components/Spoiler.tsx"],"sourcesContent":["'use client';\n\nimport Box, { type BoxProps } from '@mui/material/Box';\nimport Link, { type LinkProps } from '@mui/material/Link';\nimport { type SxProps, styled } from '@mui/material/styles';\nimport clsx from 'clsx';\nimport type { CSSProperties, ReactNode, Ref } from 'react';\nimport { useElementSize } from '../hooks/useElementSize.js';\nimport { useId } from '../hooks/useId.js';\nimport { useUncontrolled } from '../hooks/useUncontrolled.js';\n\nexport interface SpoilerProps {\n sx?: SxProps;\n\n className?: string;\n\n style?: CSSProperties;\n\n id?: string;\n\n /** Maximum height of the visible content, when this point is reached spoiler appears, `100` by default */\n maxHeight?: number;\n\n /** Label for close spoiler action */\n hideLabel: React.ReactNode;\n\n /** Label for open spoiler action */\n showLabel: React.ReactNode;\n\n /** Get ref of spoiler toggle button */\n controlRef?: React.ForwardedRef<HTMLButtonElement>;\n\n /** Initial spoiler state, true to wrap content in spoiler, false to show content without spoiler, opened state is updated on mount */\n initialState?: boolean;\n\n /** Controlled expanded state value */\n expanded?: boolean;\n\n /** Called when expanded state changes (when spoiler visibility is toggled by the user) */\n onExpandedChange?: (expanded: boolean) => void;\n\n /** Spoiler reveal transition duration in ms, set 0 or null to turn off animation, `200` by default */\n transitionDuration?: number;\n\n children?: ReactNode;\n\n ref?: Ref<HTMLElement>;\n}\n\nexport const Spoiler = (props: SpoilerProps) => {\n const {\n sx,\n className,\n style,\n id,\n initialState,\n maxHeight = 100,\n hideLabel,\n showLabel,\n expanded,\n onExpandedChange,\n controlRef,\n children,\n transitionDuration = 100,\n ref,\n ...restProps\n } = props;\n\n const _id = useId(id);\n const regionId = `${_id}-region`;\n const [show, setShowState] = useUncontrolled({\n value: expanded,\n defaultValue: initialState,\n finalValue: false,\n onChange: onExpandedChange,\n });\n const { ref: contentRef, height } = useElementSize<HTMLDivElement>();\n\n const spoilerMoreContent = show ? hideLabel : showLabel;\n const hasSpoiler = spoilerMoreContent !== null && maxHeight < height;\n\n return (\n <RootBox\n className={clsx('Spoiler-root', className)}\n sx={[sx, ...(Array.isArray(sx) ? sx : [sx ?? false])]}\n style={style}\n id={_id}\n ref={ref}\n data-has-spoiler={hasSpoiler}\n {...restProps}\n >\n {hasSpoiler && (\n <StyledMoreButton\n component='button'\n ref={controlRef}\n onClick={() => {\n setShowState(!show);\n }}\n aria-expanded={show}\n aria-controls={regionId}\n >\n {spoilerMoreContent}\n </StyledMoreButton>\n )}\n <StyledContent\n data-reduce-motion\n role='region'\n id={regionId}\n transitionDuration={transitionDuration}\n style={{\n maxHeight: !show ? maxHeight : (height ?? undefined),\n }}\n >\n <div ref={contentRef}>{children}</div>\n </StyledContent>\n </RootBox>\n );\n};\n\nSpoiler.displayName = 'Spoiler';\n\nconst RootBox = styled(Box)<BoxProps>(() => ({\n position: 'relative',\n '&:where([data-has-spoiler=\"true\"])': {\n marginBottom: 24,\n },\n}));\n\nconst StyledMoreButton = styled(Link<'button'>)<LinkProps<'button'>>(() => ({\n position: 'absolute',\n insetInlineStart: 0,\n top: '100%',\n height: 32,\n textDecoration: 'none',\n '&:hover': {\n textDecoration: 'underline',\n },\n}));\n\nconst StyledContent = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'transitionDuration',\n})<\n BoxProps & {\n transitionDuration?: number;\n }\n>(({ transitionDuration = 200 }) => ({\n display: 'flex',\n flexDirection: 'column',\n overflow: 'hidden',\n transition: `max-height ${transitionDuration}ms ease`,\n}));\n"],"mappings":"wWAiDA,MAAaI,EAAW,GAAwB,CAC9C,GAAM,CACJ,KACA,YACA,QACA,KACA,eACA,YAAY,IACZ,YACA,YACA,WACA,mBACA,aACA,WACA,qBAAqB,IACrB,MACA,GAAGC,GACDC,EAEEC,EAAMC,EAAMC,CAAE,EACdC,EAAW,GAAGH,EAAI,SAClB,CAACI,EAAMC,GAAgBC,EAAgB,CAC3C,MAAOC,EACP,aAAcC,EACd,WAAY,GACZ,SAAUC,CACZ,CAAC,EACK,CAAE,IAAKC,EAAY,UAAWC,EAA+B,EAE7DC,EAAqBR,EAAOS,EAAYC,EACxCC,EAAaH,IAAuB,MAAQI,EAAYC,EAE9D,MACE,kBAACC,EAAD,CACE,UAAWzB,EAAK,eAAgB0B,CAAS,EACzC,GAAI,CAACC,EAAI,GAAI,MAAM,QAAQA,CAAE,EAAIA,EAAK,CAACA,GAAM,EAAK,CAAE,EAC7C,QACP,GAAIpB,EACC,MACL,mBAAkBe,EAClB,GAAIjB,EAPN,SAAA,CASGiB,GACC,kBAACM,EAAD,CACE,UAAU,SACV,IAAKC,EACL,YAAe,CACbjB,EAAa,CAACD,CAAI,CACpB,EACA,gBAAeA,EACf,gBAAeD,EAEd,SAAAS,CACe,CAAA,EAEpB,kBAACW,EAAD,CACE,qBAAA,GACA,KAAK,SACL,GAAIpB,EACgB,qBACpB,MAAO,CACL,UAAYC,EAAoBa,GAAU,IAAA,GAAvBD,CACrB,EAEA,SAAA,kBAAC,MAAD,CAAK,IAAKN,EAAa,UAAc,CAAA,CACxB,CAAA,CACR,GAEb,EAEA,EAAQ,YAAc,UAEtB,MAAMQ,EAAUM,EAAO9B,CAAG,CAAC,MAAkB,CAC3C,SAAU,WACV,qCAAsC,CACpC,aAAc,EAChB,CACF,EAAE,EAEI2B,EAAmBG,EAAO5B,CAAc,CAAC,MAA6B,CAC1E,SAAU,WACV,iBAAkB,EAClB,IAAK,OACL,OAAQ,GACR,eAAgB,OAChB,UAAW,CACT,eAAgB,WAClB,CACF,EAAE,EAEI2B,EAAgBC,EAAO9B,EAAK,CAChC,kBAAoB,GAAS+B,IAAS,oBACxC,CAAC,CAAC,EAIC,CAAE,qBAAqB,QAAW,CACnC,QAAS,OACT,cAAe,SACf,SAAU,SACV,WAAY,cAAcC,EAAmB,QAC/C,EAAE"}
1
+ {"version":3,"file":"Spoiler.js","names":["clsx","useElementSize","useId","useUncontrolled","Box","jsx","jsxs","clsx$1","styled","Link","Spoiler","props","sx","className","style","id","initialState","maxHeight","hideLabel","showLabel","expanded","onExpandedChange","controlRef","children","transitionDuration","ref","restProps","_id","regionId","show","setShowState","contentRef","height","spoilerMoreContent","hasSpoiler","RootBox","StyledMoreButton","StyledContent","prop"],"sources":["../../src/components/Spoiler.tsx"],"sourcesContent":["'use client';\n\nimport Box, { type BoxProps } from '@mui/material/Box';\nimport Link, { type LinkProps } from '@mui/material/Link';\nimport { type SxProps, styled } from '@mui/material/styles';\nimport clsx from 'clsx';\nimport type { CSSProperties, ReactNode, Ref } from 'react';\nimport { useElementSize } from '../hooks/useElementSize.js';\nimport { useId } from '../hooks/useId.js';\nimport { useUncontrolled } from '../hooks/useUncontrolled.js';\n\nexport interface SpoilerProps {\n sx?: SxProps;\n\n className?: string;\n\n style?: CSSProperties;\n\n id?: string;\n\n /** Maximum height of the visible content, when this point is reached spoiler appears, `100` by default */\n maxHeight?: number;\n\n /** Label for close spoiler action */\n hideLabel: React.ReactNode;\n\n /** Label for open spoiler action */\n showLabel: React.ReactNode;\n\n /** Get ref of spoiler toggle button */\n controlRef?: React.ForwardedRef<HTMLButtonElement>;\n\n /** Initial spoiler state, true to wrap content in spoiler, false to show content without spoiler, opened state is updated on mount */\n initialState?: boolean;\n\n /** Controlled expanded state value */\n expanded?: boolean;\n\n /** Called when expanded state changes (when spoiler visibility is toggled by the user) */\n onExpandedChange?: (expanded: boolean) => void;\n\n /** Spoiler reveal transition duration in ms, set 0 or null to turn off animation, `200` by default */\n transitionDuration?: number;\n\n children?: ReactNode;\n\n ref?: Ref<HTMLElement>;\n}\n\nexport const Spoiler = (props: SpoilerProps) => {\n const {\n sx,\n className,\n style,\n id,\n initialState,\n maxHeight = 100,\n hideLabel,\n showLabel,\n expanded,\n onExpandedChange,\n controlRef,\n children,\n transitionDuration = 100,\n ref,\n ...restProps\n } = props;\n\n const _id = useId(id);\n const regionId = `${_id}-region`;\n const [show, setShowState] = useUncontrolled({\n value: expanded,\n defaultValue: initialState,\n finalValue: false,\n onChange: onExpandedChange,\n });\n const { ref: contentRef, height } = useElementSize<HTMLDivElement>();\n\n const spoilerMoreContent = show ? hideLabel : showLabel;\n const hasSpoiler = spoilerMoreContent !== null && maxHeight < height;\n\n return (\n <RootBox\n className={clsx('Spoiler-root', className)}\n sx={[sx, ...(Array.isArray(sx) ? sx : [sx ?? false])]}\n style={style}\n id={_id}\n ref={ref}\n data-has-spoiler={hasSpoiler}\n {...restProps}\n >\n {hasSpoiler && (\n <StyledMoreButton\n component='button'\n ref={controlRef}\n onClick={() => {\n setShowState(!show);\n }}\n aria-expanded={show}\n aria-controls={regionId}\n >\n {spoilerMoreContent}\n </StyledMoreButton>\n )}\n <StyledContent\n data-reduce-motion\n role='region'\n id={regionId}\n transitionDuration={transitionDuration}\n style={{\n maxHeight: !show ? maxHeight : (height ?? undefined),\n }}\n >\n <div ref={contentRef}>{children}</div>\n </StyledContent>\n </RootBox>\n );\n};\n\nSpoiler.displayName = 'Spoiler';\n\nconst RootBox = styled(Box)<BoxProps>(() => ({\n position: 'relative',\n '&:where([data-has-spoiler=\"true\"])': {\n marginBottom: 24,\n },\n}));\n\nconst StyledMoreButton = styled(Link<'button'>)<LinkProps<'button'>>(() => ({\n position: 'absolute',\n insetInlineStart: 0,\n top: '100%',\n height: 32,\n textDecoration: 'none',\n '&:hover': {\n textDecoration: 'underline',\n },\n}));\n\nconst StyledContent = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'transitionDuration',\n})<\n BoxProps & {\n transitionDuration?: number;\n }\n>(({ transitionDuration = 200 }) => ({\n display: 'flex',\n flexDirection: 'column',\n overflow: 'hidden',\n transition: `max-height ${transitionDuration}ms ease`,\n}));\n"],"mappings":"A,wWAiDA,MAAaU,EAAWC,GAAwB,CAC9C,GAAM,CACJC,KACAC,YACAC,QACAC,KACAC,eACAC,YAAY,IACZC,YACAC,YACAC,WACAC,mBACAC,aACAC,WACAC,qBAAqB,IACrBC,MACA,GAAGC,GACDf,EAEEgB,EAAMzB,EAAMa,CAAE,EACda,EAAW,GAAGD,EAAI,SAClB,CAACE,EAAMC,GAAgB3B,EAAgB,CAC3C,MAAOiB,EACP,aAAcJ,EACd,WAAY,GACZ,SAAUK,CACZ,CAAC,EACK,CAAE,IAAKU,EAAYC,UAAW/B,EAA+B,EAE7DgC,EAAqBJ,EAAOX,EAAYC,EACxCe,EAAaD,IAAuB,MAAQhB,EAAYe,EAE9D,MACE1B,kBAAC6B,EAAD,CACE,UAAWnC,EAAK,eAAgBa,CAAS,EACzC,GAAI,CAACD,EAAI,GAAI,MAAM,QAAQA,CAAE,EAAIA,EAAK,CAACA,GAAM,EAAK,CAAE,EAC7CE,QACP,GAAIa,EACCF,MACL,mBAAkBS,EAClB,GAAIR,EAPN,SAAA,CASGQ,GACC7B,kBAAC+B,EAAD,CACE,UAAU,SACV,IAAKd,EACL,YAAe,CACbQ,EAAa,CAACD,CAAI,CACpB,EACA,gBAAeA,EACf,gBAAeD,EAEd,SAAAK,CACe,CAAA,EAEpB5B,kBAACgC,EAAD,CACE,qBAAA,GACA,KAAK,SACL,GAAIT,EACgBJ,qBACpB,MAAO,CACL,UAAYK,EAAoBG,GAAU,IAAA,GAAvBf,CACrB,EAEA,SAAAZ,kBAAC,MAAD,CAAK,IAAK0B,EAAaR,UAAc,CAAA,CACxB,CAAA,CACR,C,EAEb,EAEAb,EAAQ,YAAc,UAEtB,MAAMyB,EAAU3B,EAAOJ,CAAG,CAAC,MAAkB,CAC3C,SAAU,WACV,qCAAsC,CACpC,aAAc,EAChB,CACF,EAAE,EAEIgC,EAAmB5B,EAAOC,CAAc,CAAC,MAA6B,CAC1E,SAAU,WACV,iBAAkB,EAClB,IAAK,OACL,OAAQ,GACR,eAAgB,OAChB,UAAW,CACT,eAAgB,WAClB,CACF,EAAE,EAEI4B,EAAgB7B,EAAOJ,EAAK,CAChC,kBAAoBkC,GAASA,IAAS,oBACxC,CAAC,CAAC,EAIC,CAAEd,qBAAqB,QAAW,CACnC,QAAS,OACT,cAAe,SACf,SAAU,SACV,WAAY,cAAcA,EAAmB,QAC/C,EAAE,E"}
@@ -1 +1 @@
1
- {"version":3,"file":"XsOrDown.cjs","names":["useMediaQuery","require_runtime","react_jsx_runtime","_mui_material_useMediaQuery","XsOrDown","props","theme","children"],"sources":["../../src/components/XsOrDown.tsx"],"sourcesContent":["'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface XsOrDownProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function XsOrDown(props: XsOrDownProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.down('sm'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n"],"mappings":"+JAUA,SAAgBI,EAAS,EAAsB,CAC7C,GAAM,CAAE,YAAaC,EAGrB,MADI,EAAA,EADYL,EAAAA,QAAAA,CAAe,GAAiBM,EAAM,YAAY,KAAK,IAAI,CAChE,GAAK,CAACC,EAAiB,KAC3B,iBAAA,EAAAL,EAAA,IAAA,CAAAA,EAAA,SAAA,CAAG,UAAW,CAAA,CACvB"}
1
+ {"version":3,"file":"XsOrDown.cjs","names":["useMediaQuery","require_runtime","react_jsx_runtime","_mui_material_useMediaQuery","XsOrDown","props","children","theme"],"sources":["../../src/components/XsOrDown.tsx"],"sourcesContent":["'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface XsOrDownProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function XsOrDown(props: XsOrDownProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.down('sm'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n"],"mappings":"A,+JAUA,SAAgBI,EAASC,EAAsB,CAC7C,GAAM,CAAEC,YAAaD,EAGrB,MADI,EAAA,EADYL,EAAAA,QAAAA,CAAeO,GAAiBA,EAAM,YAAY,KAAK,IAAI,CAChE,GAAK,CAACD,EAAiB,KAC3B,iBAAA,EAAAJ,EAAA,IAAA,CAAAA,EAAA,SAAA,CAAGI,UAAW,CAAA,CACvB,C"}
@@ -1,8 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- //#region src/components/XsOrDown.d.ts
3
2
  export interface XsOrDownProps {
4
3
  children?: ReactNode | ReactNode[];
5
4
  }
6
- export declare function XsOrDown(props: XsOrDownProps): import("react").JSX.Element | null;
7
- //#endregion
8
- //# sourceMappingURL=XsOrDown.d.cts.map
5
+ export declare function XsOrDown(props: XsOrDownProps): import("react").JSX.Element | null;
@@ -1,8 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- //#region src/components/XsOrDown.d.ts
3
2
  export interface XsOrDownProps {
4
3
  children?: ReactNode | ReactNode[];
5
4
  }
6
- export declare function XsOrDown(props: XsOrDownProps): import("react").JSX.Element | null;
7
- //#endregion
8
- //# sourceMappingURL=XsOrDown.d.ts.map
5
+ export declare function XsOrDown(props: XsOrDownProps): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- {"version":3,"file":"XsOrDown.js","names":["useMediaQuery","XsOrDown","props","theme","children","Fragment"],"sources":["../../src/components/XsOrDown.tsx"],"sourcesContent":["'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface XsOrDownProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function XsOrDown(props: XsOrDownProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.down('sm'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n"],"mappings":"8GAUA,SAAgBC,EAAS,EAAsB,CAC7C,GAAM,CAAE,YAAaC,EAGrB,MADI,CADYF,EAAe,GAAiBG,EAAM,YAAY,KAAK,IAAI,CAChE,GAAK,CAACC,EAAiB,KAC3B,kBAAAC,EAAA,CAAG,UAAW,CAAA,CACvB"}
1
+ {"version":3,"file":"XsOrDown.js","names":["Fragment","jsx","useMediaQuery","XsOrDown","props","children","theme"],"sources":["../../src/components/XsOrDown.tsx"],"sourcesContent":["'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface XsOrDownProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function XsOrDown(props: XsOrDownProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.down('sm'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n"],"mappings":"A,8GAUA,SAAgBG,EAASC,EAAsB,CAC7C,GAAM,CAAEC,YAAaD,EAGrB,MADI,CADYF,EAAeI,GAAiBA,EAAM,YAAY,KAAK,IAAI,CAChE,GAAK,CAACD,EAAiB,KAC3BJ,kBAAAD,EAAA,CAAGK,UAAW,CAAA,CACvB,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"YmTypography.cjs","names":["formatYm","Typography","require_runtime","require_ymd_date","react_jsx_runtime","clsx","_mui_material_Typography","YmTypography","typographyProps","props","display","raw","value","format","fallback","className"],"sources":["../../src/components/YmTypography.tsx"],"sourcesContent":["'use client';\n\nimport type { TypographyProps } from '@mui/material/Typography';\nimport Typography from '@mui/material/Typography';\nimport clsx from 'clsx';\nimport { formatYm } from '../util/ymd-date.js';\n\n/**\n * 숫자 연월 문자열을 포매팅해 출력하는 타이포그래피 컴포넌트 속성입니다.\n */\nexport interface YmTypographyProps extends Omit<TypographyProps, 'children'> {\n /** YYYYMM 형식의 연월 문자열 또는 숫자입니다. */\n value: number | string | null | undefined;\n\n /** 출력 포맷입니다. 예: `YYYY-MM`, `YYYY/MM` */\n format?: string;\n\n /** 값이 없거나 포매팅에 실패했을 때 대신 표시할 문자열입니다. */\n fallback?: string;\n\n /**\n * 가공하지 않고 표시, 기본값: false\n */\n raw?: boolean;\n}\n\n/**\n * YM 연월 문자열을 지정한 형식으로 변환해 표시합니다.\n */\nexport function YmTypography(props: YmTypographyProps) {\n const { className, value, format, fallback = '-', raw = false, ...typographyProps } = props;\n const formatted = raw ? value : formatYm(value, format ? { format } : undefined);\n const display = formatted || fallback;\n\n return (\n <Typography className={clsx('YmTypography-root', className)} {...typographyProps}>\n {display}\n </Typography>\n );\n}\n"],"mappings":"qOA6BA,SAAgBO,EAAa,EAA0B,CACrD,GAAM,CAAE,YAAW,QAAO,SAAQ,WAAW,IAAK,MAAM,GAAO,GAAGC,GAAoBC,EAEhFC,GADYC,EAAMC,EAAQZ,EAAAA,SAASY,EAAOC,EAAS,CAAE,QAAO,EAAI,IAAA,EAAS,IAClDC,EAE7B,MACE,iBAAA,EAAAV,EAAA,IAAA,CAACH,EAAAA,QAAD,CAAY,WAAA,EAAWI,EAAA,QAAA,CAAK,oBAAqBU,CAAS,EAAG,GAAIP,EAC9D,SAAAE,CACS,CAAA,CAEhB"}
1
+ {"version":3,"file":"YmTypography.cjs","names":["formatYm","Typography","clsx","require_runtime","require_ymd_date","react_jsx_runtime","clsx","_mui_material_Typography","YmTypography","props","className","value","format","fallback","raw","typographyProps","display"],"sources":["../../src/components/YmTypography.tsx"],"sourcesContent":["'use client';\n\nimport type { TypographyProps } from '@mui/material/Typography';\nimport Typography from '@mui/material/Typography';\nimport clsx from 'clsx';\nimport { formatYm } from '../util/ymd-date.js';\n\n/**\n * 숫자 연월 문자열을 포매팅해 출력하는 타이포그래피 컴포넌트 속성입니다.\n */\nexport interface YmTypographyProps extends Omit<TypographyProps, 'children'> {\n /** YYYYMM 형식의 연월 문자열 또는 숫자입니다. */\n value: number | string | null | undefined;\n\n /** 출력 포맷입니다. 예: `YYYY-MM`, `YYYY/MM` */\n format?: string;\n\n /** 값이 없거나 포매팅에 실패했을 때 대신 표시할 문자열입니다. */\n fallback?: string;\n\n /**\n * 가공하지 않고 표시, 기본값: false\n */\n raw?: boolean;\n}\n\n/**\n * YM 연월 문자열을 지정한 형식으로 변환해 표시합니다.\n */\nexport function YmTypography(props: YmTypographyProps) {\n const { className, value, format, fallback = '-', raw = false, ...typographyProps } = props;\n const formatted = raw ? value : formatYm(value, format ? { format } : undefined);\n const display = formatted || fallback;\n\n return (\n <Typography className={clsx('YmTypography-root', className)} {...typographyProps}>\n {display}\n </Typography>\n );\n}\n"],"mappings":"A,qOA6BA,SAAgBQ,EAAaC,EAA0B,CACrD,GAAM,CAAEC,YAAWC,QAAOC,SAAQC,WAAW,IAAKC,MAAM,GAAO,GAAGC,GAAoBN,EAEhFO,GADYF,EAAMH,EAAQX,EAAAA,SAASW,EAAOC,EAAS,CAAEA,QAAO,EAAI,IAAA,EAAS,IAClDC,EAE7B,MACE,iBAAA,EAAAR,EAAA,IAAA,CAACJ,EAAAA,QAAD,CAAY,WAAA,EAAWC,EAAAA,QAAAA,CAAK,oBAAqBQ,CAAS,EAAG,GAAIK,EAC9D,SAAAC,CACS,CAAA,CAEhB,C"}
@@ -1,5 +1,4 @@
1
1
  import { TypographyProps } from "@mui/material/Typography";
2
- //#region src/components/YmTypography.d.ts
3
2
  /**
4
3
  * 숫자 연월 문자열을 포매팅해 출력하는 타이포그래피 컴포넌트 속성입니다.
5
4
  */
@@ -18,6 +17,4 @@ export interface YmTypographyProps extends Omit<TypographyProps, 'children'> {
18
17
  /**
19
18
  * YM 연월 문자열을 지정한 형식으로 변환해 표시합니다.
20
19
  */
21
- export declare function YmTypography(props: YmTypographyProps): import("react").JSX.Element;
22
- //#endregion
23
- //# sourceMappingURL=YmTypography.d.cts.map
20
+ export declare function YmTypography(props: YmTypographyProps): import("react").JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { TypographyProps } from "@mui/material/Typography";
2
- //#region src/components/YmTypography.d.ts
3
2
  /**
4
3
  * 숫자 연월 문자열을 포매팅해 출력하는 타이포그래피 컴포넌트 속성입니다.
5
4
  */
@@ -18,6 +17,4 @@ export interface YmTypographyProps extends Omit<TypographyProps, 'children'> {
18
17
  /**
19
18
  * YM 연월 문자열을 지정한 형식으로 변환해 표시합니다.
20
19
  */
21
- export declare function YmTypography(props: YmTypographyProps): import("react").JSX.Element;
22
- //#endregion
23
- //# sourceMappingURL=YmTypography.d.ts.map
20
+ export declare function YmTypography(props: YmTypographyProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"YmTypography.js","names":["clsx","clsx$1","Typography","YmTypography","typographyProps","props","display","raw","value","formatYm","format","fallback","className"],"sources":["../../src/components/YmTypography.tsx"],"sourcesContent":["'use client';\n\nimport type { TypographyProps } from '@mui/material/Typography';\nimport Typography from '@mui/material/Typography';\nimport clsx from 'clsx';\nimport { formatYm } from '../util/ymd-date.js';\n\n/**\n * 숫자 연월 문자열을 포매팅해 출력하는 타이포그래피 컴포넌트 속성입니다.\n */\nexport interface YmTypographyProps extends Omit<TypographyProps, 'children'> {\n /** YYYYMM 형식의 연월 문자열 또는 숫자입니다. */\n value: number | string | null | undefined;\n\n /** 출력 포맷입니다. 예: `YYYY-MM`, `YYYY/MM` */\n format?: string;\n\n /** 값이 없거나 포매팅에 실패했을 때 대신 표시할 문자열입니다. */\n fallback?: string;\n\n /**\n * 가공하지 않고 표시, 기본값: false\n */\n raw?: boolean;\n}\n\n/**\n * YM 연월 문자열을 지정한 형식으로 변환해 표시합니다.\n */\nexport function YmTypography(props: YmTypographyProps) {\n const { className, value, format, fallback = '-', raw = false, ...typographyProps } = props;\n const formatted = raw ? value : formatYm(value, format ? { format } : undefined);\n const display = formatted || fallback;\n\n return (\n <Typography className={clsx('YmTypography-root', className)} {...typographyProps}>\n {display}\n </Typography>\n );\n}\n"],"mappings":"gKA6BA,SAAgBG,EAAa,EAA0B,CACrD,GAAM,CAAE,YAAW,QAAO,SAAQ,WAAW,IAAK,MAAM,GAAO,GAAGC,GAAoBC,EAEhFC,GADYC,EAAMC,EAAQC,EAASD,EAAOE,EAAS,CAAE,QAAO,EAAI,IAAA,EAAS,IAClDC,EAE7B,MACE,kBAACT,EAAD,CAAY,UAAWF,EAAK,oBAAqBY,CAAS,EAAG,GAAIR,EAC9D,SAAAE,CACS,CAAA,CAEhB"}
1
+ {"version":3,"file":"YmTypography.js","names":["clsx","formatYm","jsx","clsx$1","Typography","YmTypography","props","className","value","format","fallback","raw","typographyProps","display"],"sources":["../../src/components/YmTypography.tsx"],"sourcesContent":["'use client';\n\nimport type { TypographyProps } from '@mui/material/Typography';\nimport Typography from '@mui/material/Typography';\nimport clsx from 'clsx';\nimport { formatYm } from '../util/ymd-date.js';\n\n/**\n * 숫자 연월 문자열을 포매팅해 출력하는 타이포그래피 컴포넌트 속성입니다.\n */\nexport interface YmTypographyProps extends Omit<TypographyProps, 'children'> {\n /** YYYYMM 형식의 연월 문자열 또는 숫자입니다. */\n value: number | string | null | undefined;\n\n /** 출력 포맷입니다. 예: `YYYY-MM`, `YYYY/MM` */\n format?: string;\n\n /** 값이 없거나 포매팅에 실패했을 때 대신 표시할 문자열입니다. */\n fallback?: string;\n\n /**\n * 가공하지 않고 표시, 기본값: false\n */\n raw?: boolean;\n}\n\n/**\n * YM 연월 문자열을 지정한 형식으로 변환해 표시합니다.\n */\nexport function YmTypography(props: YmTypographyProps) {\n const { className, value, format, fallback = '-', raw = false, ...typographyProps } = props;\n const formatted = raw ? value : formatYm(value, format ? { format } : undefined);\n const display = formatted || fallback;\n\n return (\n <Typography className={clsx('YmTypography-root', className)} {...typographyProps}>\n {display}\n </Typography>\n );\n}\n"],"mappings":"A,gKA6BA,SAAgBK,EAAaC,EAA0B,CACrD,GAAM,CAAEC,YAAWC,QAAOC,SAAQC,WAAW,IAAKC,MAAM,GAAO,GAAGC,GAAoBN,EAEhFO,GADYF,EAAMH,EAAQP,EAASO,EAAOC,EAAS,CAAEA,QAAO,EAAI,IAAA,EAAS,IAClDC,EAE7B,MACER,kBAACE,EAAD,CAAY,UAAWJ,EAAK,oBAAqBO,CAAS,EAAG,GAAIK,EAC9D,SAAAC,CACS,CAAA,CAEhB,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"YmdTextField.cjs","names":["normalizeNumericDate","TextField","formatNumericDateWhenComplete","require_runtime","require_ymd_date","react_jsx_runtime","_mui_material_TextField","YmdTextField","textFieldProps","props","handleChange","next","event","onChange","userHtmlInput","slotProps","htmlInput","ownerState","value","placeholder","format"],"sources":["../../src/components/YmdTextField.tsx"],"sourcesContent":["'use client';\n\nimport type { TextFieldProps } from '@mui/material/TextField';\nimport TextField from '@mui/material/TextField';\nimport type { ChangeEvent } from 'react';\nimport { formatNumericDateWhenComplete, normalizeNumericDate } from '../util/ymd-date.js';\n\n/**\n * 숫자 기반 생년월일 입력을 다루는 텍스트 필드 속성입니다.\n *\n * 핵심 계약:\n * - `value`는 \"숫자만\" 보관한다. (예: `19900101`)\n * - `onChange`는 항상 정규화된 숫자 문자열을 전달한다.\n * - `format`은 필수이며, 표시 포맷 기준(6자리/8자리)을 결정한다.\n */\nexport interface YmdTextFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'> {\n /**\n * 제어값(숫자만).\n *\n * @example\n * - `990101`\n * - `19900101`\n */\n value: string;\n\n /**\n * 값 변경 핸들러.\n * 사용자 입력 문자열은 내부에서 숫자만 남긴 뒤 이 콜백으로 전달된다.\n */\n onChange: (value: string) => void;\n\n /**\n * 화면 표시용 포맷 문자열.\n *\n * - `YYYY`가 포함되면 8자리 입력이 완성됐을 때 포맷이 적용된다.\n * - `YY`(without `YYYY`)가 포함되면 6자리 입력이 완성됐을 때 포맷이 적용된다.\n *\n * @example\n * - `YYYY-MM-DD`\n * - `YY/MM/DD`\n */\n format: string;\n}\n\n/**\n * YYMMDD / YYYYMMDD 날짜 입력 전용 `TextField`.\n *\n * 동작 규칙:\n * - 표시값은 `formatNumericDateWhenComplete`를 사용해 \"완성 길이(6/8)\"에서만 포맷 적용\n * - 입력값은 `normalizeNumericDate`로 숫자 외 문자를 제거한 뒤 부모 상태로 전달\n * - `placeholder` 미지정 시 `format` 문자열을 그대로 표시\n * - 모바일 숫자 키패드를 위해 `input`에 `inputMode='numeric'`을 적용 (`slotProps.htmlInput`으로 덮어쓸 수 있음)\n */\nexport function YmdTextField(props: YmdTextFieldProps) {\n const { value, onChange, format, placeholder, slotProps, ...textFieldProps } = props;\n\n // 사용자가 입력한 값을 숫자 문자열로 정규화해 부모 상태에 전달합니다.\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n const next = event.target.value ?? '';\n\n onChange(normalizeNumericDate(next));\n };\n\n // inputMode는 TextField 루트 div가 아니라 실제 input에 적용해야 숫자 키패드가 뜬다.\n const userHtmlInput = slotProps?.htmlInput;\n const htmlInput =\n typeof userHtmlInput === 'function'\n ? (ownerState: Parameters<typeof userHtmlInput>[0]) => ({\n inputMode: 'numeric' as const,\n ...userHtmlInput(ownerState),\n })\n : { inputMode: 'numeric' as const, ...userHtmlInput };\n\n return (\n <TextField\n // 길이가 format 요구 길이와 일치할 때만 자동 포맷한다.\n value={formatNumericDateWhenComplete(value ?? '', { format })}\n onChange={handleChange}\n placeholder={placeholder ?? format}\n {...textFieldProps}\n slotProps={{ ...slotProps, htmlInput }}\n />\n );\n}\n"],"mappings":"6LAqDA,SAAgBO,EAAa,EAA0B,CACrD,GAAM,CAAE,QAAO,WAAU,SAAQ,cAAa,YAAW,GAAGC,GAAmBC,EAGzEC,EAAgB,GAAyC,CAC7D,IAAMC,EAAOC,EAAM,OAAO,OAAS,GAEnCC,EAASb,EAAAA,qBAAqBW,CAAI,CAAC,CACrC,EAGMG,EAAgBC,GAAW,UAC3BC,EACJ,OAAOF,GAAkB,WACpB,IAAqD,CACpD,UAAW,UACX,GAAGA,EAAcG,CAAU,CAC7B,GACA,CAAE,UAAW,UAAoB,GAAGH,CAAc,EAExD,MACE,iBAAA,EAAAT,EAAA,IAAA,CAACJ,EAAAA,QAAD,CAEE,MAAOC,EAAAA,8BAA8BgB,GAAS,GAAI,CAAE,QAAO,CAAC,EAC5D,SAAUR,EACV,YAAaS,GAAeC,EAC5B,GAAIZ,EACJ,UAAW,CAAE,GAAGO,EAAW,WAAU,CACtC,CAAA,CAEL"}
1
+ {"version":3,"file":"YmdTextField.cjs","names":["normalizeNumericDate","TextField","formatNumericDateWhenComplete","require_runtime","require_ymd_date","react_jsx_runtime","_mui_material_TextField","YmdTextField","props","value","onChange","format","placeholder","slotProps","textFieldProps","handleChange","event","next","userHtmlInput","htmlInput","ownerState"],"sources":["../../src/components/YmdTextField.tsx"],"sourcesContent":["'use client';\n\nimport type { TextFieldProps } from '@mui/material/TextField';\nimport TextField from '@mui/material/TextField';\nimport type { ChangeEvent } from 'react';\nimport { formatNumericDateWhenComplete, normalizeNumericDate } from '../util/ymd-date.js';\n\n/**\n * 숫자 기반 생년월일 입력을 다루는 텍스트 필드 속성입니다.\n *\n * 핵심 계약:\n * - `value`는 \"숫자만\" 보관한다. (예: `19900101`)\n * - `onChange`는 항상 정규화된 숫자 문자열을 전달한다.\n * - `format`은 필수이며, 표시 포맷 기준(6자리/8자리)을 결정한다.\n */\nexport interface YmdTextFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'> {\n /**\n * 제어값(숫자만).\n *\n * @example\n * - `990101`\n * - `19900101`\n */\n value: string;\n\n /**\n * 값 변경 핸들러.\n * 사용자 입력 문자열은 내부에서 숫자만 남긴 뒤 이 콜백으로 전달된다.\n */\n onChange: (value: string) => void;\n\n /**\n * 화면 표시용 포맷 문자열.\n *\n * - `YYYY`가 포함되면 8자리 입력이 완성됐을 때 포맷이 적용된다.\n * - `YY`(without `YYYY`)가 포함되면 6자리 입력이 완성됐을 때 포맷이 적용된다.\n *\n * @example\n * - `YYYY-MM-DD`\n * - `YY/MM/DD`\n */\n format: string;\n}\n\n/**\n * YYMMDD / YYYYMMDD 날짜 입력 전용 `TextField`.\n *\n * 동작 규칙:\n * - 표시값은 `formatNumericDateWhenComplete`를 사용해 \"완성 길이(6/8)\"에서만 포맷 적용\n * - 입력값은 `normalizeNumericDate`로 숫자 외 문자를 제거한 뒤 부모 상태로 전달\n * - `placeholder` 미지정 시 `format` 문자열을 그대로 표시\n * - 모바일 숫자 키패드를 위해 `input`에 `inputMode='numeric'`을 적용 (`slotProps.htmlInput`으로 덮어쓸 수 있음)\n */\nexport function YmdTextField(props: YmdTextFieldProps) {\n const { value, onChange, format, placeholder, slotProps, ...textFieldProps } = props;\n\n // 사용자가 입력한 값을 숫자 문자열로 정규화해 부모 상태에 전달합니다.\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n const next = event.target.value ?? '';\n\n onChange(normalizeNumericDate(next));\n };\n\n // inputMode는 TextField 루트 div가 아니라 실제 input에 적용해야 숫자 키패드가 뜬다.\n const userHtmlInput = slotProps?.htmlInput;\n const htmlInput =\n typeof userHtmlInput === 'function'\n ? (ownerState: Parameters<typeof userHtmlInput>[0]) => ({\n inputMode: 'numeric' as const,\n ...userHtmlInput(ownerState),\n })\n : { inputMode: 'numeric' as const, ...userHtmlInput };\n\n return (\n <TextField\n // 길이가 format 요구 길이와 일치할 때만 자동 포맷한다.\n value={formatNumericDateWhenComplete(value ?? '', { format })}\n onChange={handleChange}\n placeholder={placeholder ?? format}\n {...textFieldProps}\n slotProps={{ ...slotProps, htmlInput }}\n />\n );\n}\n"],"mappings":"A,6LAqDA,SAAgBO,EAAaC,EAA0B,CACrD,GAAM,CAAEC,QAAOC,WAAUC,SAAQC,cAAaC,YAAW,GAAGC,GAAmBN,EAGzEO,EAAgBC,GAAyC,CAC7D,IAAMC,EAAOD,EAAM,OAAO,OAAS,GAEnCN,EAASV,EAAAA,qBAAqBiB,CAAI,CAAC,CACrC,EAGMC,EAAgBL,GAAW,UAC3BM,EACJ,OAAOD,GAAkB,WACpBE,IAAqD,CACpD,UAAW,UACX,GAAGF,EAAcE,CAAU,CAC7B,GACA,CAAE,UAAW,UAAoB,GAAGF,CAAc,EAExD,MACE,iBAAA,EAAAb,EAAA,IAAA,CAACJ,EAAAA,QAAD,CAEE,MAAOC,EAAAA,8BAA8BO,GAAS,GAAI,CAAEE,QAAO,CAAC,EAC5D,SAAUI,EACV,YAAaH,GAAeD,EAC5B,GAAIG,EACJ,UAAW,CAAE,GAAGD,EAAWM,WAAU,CACtC,CAAA,CAEL,C"}
@@ -1,5 +1,4 @@
1
1
  import { TextFieldProps } from "@mui/material/TextField";
2
- //#region src/components/YmdTextField.d.ts
3
2
  /**
4
3
  * 숫자 기반 생년월일 입력을 다루는 텍스트 필드 속성입니다.
5
4
  *
@@ -43,6 +42,4 @@ export interface YmdTextFieldProps extends Omit<TextFieldProps, 'value' | 'onCha
43
42
  * - `placeholder` 미지정 시 `format` 문자열을 그대로 표시
44
43
  * - 모바일 숫자 키패드를 위해 `input`에 `inputMode='numeric'`을 적용 (`slotProps.htmlInput`으로 덮어쓸 수 있음)
45
44
  */
46
- export declare function YmdTextField(props: YmdTextFieldProps): import("react").JSX.Element;
47
- //#endregion
48
- //# sourceMappingURL=YmdTextField.d.cts.map
45
+ export declare function YmdTextField(props: YmdTextFieldProps): import("react").JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { TextFieldProps } from "@mui/material/TextField";
2
- //#region src/components/YmdTextField.d.ts
3
2
  /**
4
3
  * 숫자 기반 생년월일 입력을 다루는 텍스트 필드 속성입니다.
5
4
  *
@@ -43,6 +42,4 @@ export interface YmdTextFieldProps extends Omit<TextFieldProps, 'value' | 'onCha
43
42
  * - `placeholder` 미지정 시 `format` 문자열을 그대로 표시
44
43
  * - 모바일 숫자 키패드를 위해 `input`에 `inputMode='numeric'`을 적용 (`slotProps.htmlInput`으로 덮어쓸 수 있음)
45
44
  */
46
- export declare function YmdTextField(props: YmdTextFieldProps): import("react").JSX.Element;
47
- //#endregion
48
- //# sourceMappingURL=YmdTextField.d.ts.map
45
+ export declare function YmdTextField(props: YmdTextFieldProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"YmdTextField.js","names":["TextField","YmdTextField","textFieldProps","props","handleChange","next","event","onChange","normalizeNumericDate","userHtmlInput","slotProps","htmlInput","ownerState","formatNumericDateWhenComplete","value","placeholder","format"],"sources":["../../src/components/YmdTextField.tsx"],"sourcesContent":["'use client';\n\nimport type { TextFieldProps } from '@mui/material/TextField';\nimport TextField from '@mui/material/TextField';\nimport type { ChangeEvent } from 'react';\nimport { formatNumericDateWhenComplete, normalizeNumericDate } from '../util/ymd-date.js';\n\n/**\n * 숫자 기반 생년월일 입력을 다루는 텍스트 필드 속성입니다.\n *\n * 핵심 계약:\n * - `value`는 \"숫자만\" 보관한다. (예: `19900101`)\n * - `onChange`는 항상 정규화된 숫자 문자열을 전달한다.\n * - `format`은 필수이며, 표시 포맷 기준(6자리/8자리)을 결정한다.\n */\nexport interface YmdTextFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'> {\n /**\n * 제어값(숫자만).\n *\n * @example\n * - `990101`\n * - `19900101`\n */\n value: string;\n\n /**\n * 값 변경 핸들러.\n * 사용자 입력 문자열은 내부에서 숫자만 남긴 뒤 이 콜백으로 전달된다.\n */\n onChange: (value: string) => void;\n\n /**\n * 화면 표시용 포맷 문자열.\n *\n * - `YYYY`가 포함되면 8자리 입력이 완성됐을 때 포맷이 적용된다.\n * - `YY`(without `YYYY`)가 포함되면 6자리 입력이 완성됐을 때 포맷이 적용된다.\n *\n * @example\n * - `YYYY-MM-DD`\n * - `YY/MM/DD`\n */\n format: string;\n}\n\n/**\n * YYMMDD / YYYYMMDD 날짜 입력 전용 `TextField`.\n *\n * 동작 규칙:\n * - 표시값은 `formatNumericDateWhenComplete`를 사용해 \"완성 길이(6/8)\"에서만 포맷 적용\n * - 입력값은 `normalizeNumericDate`로 숫자 외 문자를 제거한 뒤 부모 상태로 전달\n * - `placeholder` 미지정 시 `format` 문자열을 그대로 표시\n * - 모바일 숫자 키패드를 위해 `input`에 `inputMode='numeric'`을 적용 (`slotProps.htmlInput`으로 덮어쓸 수 있음)\n */\nexport function YmdTextField(props: YmdTextFieldProps) {\n const { value, onChange, format, placeholder, slotProps, ...textFieldProps } = props;\n\n // 사용자가 입력한 값을 숫자 문자열로 정규화해 부모 상태에 전달합니다.\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n const next = event.target.value ?? '';\n\n onChange(normalizeNumericDate(next));\n };\n\n // inputMode는 TextField 루트 div가 아니라 실제 input에 적용해야 숫자 키패드가 뜬다.\n const userHtmlInput = slotProps?.htmlInput;\n const htmlInput =\n typeof userHtmlInput === 'function'\n ? (ownerState: Parameters<typeof userHtmlInput>[0]) => ({\n inputMode: 'numeric' as const,\n ...userHtmlInput(ownerState),\n })\n : { inputMode: 'numeric' as const, ...userHtmlInput };\n\n return (\n <TextField\n // 길이가 format 요구 길이와 일치할 때만 자동 포맷한다.\n value={formatNumericDateWhenComplete(value ?? '', { format })}\n onChange={handleChange}\n placeholder={placeholder ?? format}\n {...textFieldProps}\n slotProps={{ ...slotProps, htmlInput }}\n />\n );\n}\n"],"mappings":"0LAqDA,SAAgBC,EAAa,EAA0B,CACrD,GAAM,CAAE,QAAO,WAAU,SAAQ,cAAa,YAAW,GAAGC,GAAmBC,EAGzEC,EAAgB,GAAyC,CAC7D,IAAMC,EAAOC,EAAM,OAAO,OAAS,GAEnCC,EAASC,EAAqBH,CAAI,CAAC,CACrC,EAGMI,EAAgBC,GAAW,UAC3BC,EACJ,OAAOF,GAAkB,WACpB,IAAqD,CACpD,UAAW,UACX,GAAGA,EAAcG,CAAU,CAC7B,GACA,CAAE,UAAW,UAAoB,GAAGH,CAAc,EAExD,MACE,kBAACT,EAAD,CAEE,MAAOa,EAA8BC,GAAS,GAAI,CAAE,QAAO,CAAC,EAC5D,SAAUV,EACV,YAAaW,GAAeC,EAC5B,GAAId,EACJ,UAAW,CAAE,GAAGQ,EAAW,WAAU,CACtC,CAAA,CAEL"}
1
+ {"version":3,"file":"YmdTextField.js","names":["formatNumericDateWhenComplete","normalizeNumericDate","jsx","TextField","YmdTextField","props","value","onChange","format","placeholder","slotProps","textFieldProps","handleChange","event","next","userHtmlInput","htmlInput","ownerState"],"sources":["../../src/components/YmdTextField.tsx"],"sourcesContent":["'use client';\n\nimport type { TextFieldProps } from '@mui/material/TextField';\nimport TextField from '@mui/material/TextField';\nimport type { ChangeEvent } from 'react';\nimport { formatNumericDateWhenComplete, normalizeNumericDate } from '../util/ymd-date.js';\n\n/**\n * 숫자 기반 생년월일 입력을 다루는 텍스트 필드 속성입니다.\n *\n * 핵심 계약:\n * - `value`는 \"숫자만\" 보관한다. (예: `19900101`)\n * - `onChange`는 항상 정규화된 숫자 문자열을 전달한다.\n * - `format`은 필수이며, 표시 포맷 기준(6자리/8자리)을 결정한다.\n */\nexport interface YmdTextFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'> {\n /**\n * 제어값(숫자만).\n *\n * @example\n * - `990101`\n * - `19900101`\n */\n value: string;\n\n /**\n * 값 변경 핸들러.\n * 사용자 입력 문자열은 내부에서 숫자만 남긴 뒤 이 콜백으로 전달된다.\n */\n onChange: (value: string) => void;\n\n /**\n * 화면 표시용 포맷 문자열.\n *\n * - `YYYY`가 포함되면 8자리 입력이 완성됐을 때 포맷이 적용된다.\n * - `YY`(without `YYYY`)가 포함되면 6자리 입력이 완성됐을 때 포맷이 적용된다.\n *\n * @example\n * - `YYYY-MM-DD`\n * - `YY/MM/DD`\n */\n format: string;\n}\n\n/**\n * YYMMDD / YYYYMMDD 날짜 입력 전용 `TextField`.\n *\n * 동작 규칙:\n * - 표시값은 `formatNumericDateWhenComplete`를 사용해 \"완성 길이(6/8)\"에서만 포맷 적용\n * - 입력값은 `normalizeNumericDate`로 숫자 외 문자를 제거한 뒤 부모 상태로 전달\n * - `placeholder` 미지정 시 `format` 문자열을 그대로 표시\n * - 모바일 숫자 키패드를 위해 `input`에 `inputMode='numeric'`을 적용 (`slotProps.htmlInput`으로 덮어쓸 수 있음)\n */\nexport function YmdTextField(props: YmdTextFieldProps) {\n const { value, onChange, format, placeholder, slotProps, ...textFieldProps } = props;\n\n // 사용자가 입력한 값을 숫자 문자열로 정규화해 부모 상태에 전달합니다.\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n const next = event.target.value ?? '';\n\n onChange(normalizeNumericDate(next));\n };\n\n // inputMode는 TextField 루트 div가 아니라 실제 input에 적용해야 숫자 키패드가 뜬다.\n const userHtmlInput = slotProps?.htmlInput;\n const htmlInput =\n typeof userHtmlInput === 'function'\n ? (ownerState: Parameters<typeof userHtmlInput>[0]) => ({\n inputMode: 'numeric' as const,\n ...userHtmlInput(ownerState),\n })\n : { inputMode: 'numeric' as const, ...userHtmlInput };\n\n return (\n <TextField\n // 길이가 format 요구 길이와 일치할 때만 자동 포맷한다.\n value={formatNumericDateWhenComplete(value ?? '', { format })}\n onChange={handleChange}\n placeholder={placeholder ?? format}\n {...textFieldProps}\n slotProps={{ ...slotProps, htmlInput }}\n />\n );\n}\n"],"mappings":"A,0LAqDA,SAAgBI,EAAaC,EAA0B,CACrD,GAAM,CAAEC,QAAOC,WAAUC,SAAQC,cAAaC,YAAW,GAAGC,GAAmBN,EAGzEO,EAAgBC,GAAyC,CAC7D,IAAMC,EAAOD,EAAM,OAAO,OAAS,GAEnCN,EAASN,EAAqBa,CAAI,CAAC,CACrC,EAGMC,EAAgBL,GAAW,UAC3BM,EACJ,OAAOD,GAAkB,WACpBE,IAAqD,CACpD,UAAW,UACX,GAAGF,EAAcE,CAAU,CAC7B,GACA,CAAE,UAAW,UAAoB,GAAGF,CAAc,EAExD,MACEb,kBAACC,EAAD,CAEE,MAAOH,EAA8BM,GAAS,GAAI,CAAEE,QAAO,CAAC,EAC5D,SAAUI,EACV,YAAaH,GAAeD,EAC5B,GAAIG,EACJ,UAAW,CAAE,GAAGD,EAAWM,WAAU,CACtC,CAAA,CAEL,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"YmdTypography.cjs","names":["formatYmd","Typography","require_runtime","require_ymd_date","react_jsx_runtime","clsx","_mui_material_Typography","YmdTypography","typographyProps","props","display","raw","value","format","fallback","className"],"sources":["../../src/components/YmdTypography.tsx"],"sourcesContent":["'use client';\n\nimport type { TypographyProps } from '@mui/material/Typography';\nimport Typography from '@mui/material/Typography';\nimport clsx from 'clsx';\nimport { formatYmd } from '../util/ymd-date.js';\n\n/**\n * 숫자 날짜 문자열을 포매팅해 출력하는 타이포그래피 컴포넌트 속성입니다.\n */\nexport interface YmdTypographyProps extends Omit<TypographyProps, 'children'> {\n /** YYYYMMDD 또는 YYMMDD 형식의 날짜 문자열 또는 숫자입니다. */\n value: number | string | null | undefined;\n\n /** 출력 포맷입니다. 예: `YYYY-MM-DD`, `YY/MM/DD` */\n format?: string;\n\n /** 값이 없거나 포매팅에 실패했을 때 대신 표시할 문자열입니다. */\n fallback?: string;\n\n /**\n * 가공하지 않고 표시, 기본값: false\n */\n raw?: boolean;\n}\n\n/**\n * YMD 날짜 문자열을 지정한 형식으로 변환해 표시합니다.\n */\nexport function YmdTypography(props: YmdTypographyProps) {\n const { className, value, format, fallback = '-', raw = false, ...typographyProps } = props;\n const formatted = raw ? value : formatYmd(value, format ? { format } : undefined);\n const display = formatted || fallback;\n\n return (\n <Typography className={clsx('YmdTypography-root', className)} {...typographyProps}>\n {display}\n </Typography>\n );\n}\n"],"mappings":"qOA6BA,SAAgBO,EAAc,EAA2B,CACvD,GAAM,CAAE,YAAW,QAAO,SAAQ,WAAW,IAAK,MAAM,GAAO,GAAGC,GAAoBC,EAEhFC,GADYC,EAAMC,EAAQZ,EAAAA,UAAUY,EAAOC,EAAS,CAAE,QAAO,EAAI,IAAA,EAAS,IACnDC,EAE7B,MACE,iBAAA,EAAAV,EAAA,IAAA,CAACH,EAAAA,QAAD,CAAY,WAAA,EAAWI,EAAA,QAAA,CAAK,qBAAsBU,CAAS,EAAG,GAAIP,EAC/D,SAAAE,CACS,CAAA,CAEhB"}
1
+ {"version":3,"file":"YmdTypography.cjs","names":["formatYmd","Typography","clsx","require_runtime","require_ymd_date","react_jsx_runtime","clsx","_mui_material_Typography","YmdTypography","props","className","value","format","fallback","raw","typographyProps","display"],"sources":["../../src/components/YmdTypography.tsx"],"sourcesContent":["'use client';\n\nimport type { TypographyProps } from '@mui/material/Typography';\nimport Typography from '@mui/material/Typography';\nimport clsx from 'clsx';\nimport { formatYmd } from '../util/ymd-date.js';\n\n/**\n * 숫자 날짜 문자열을 포매팅해 출력하는 타이포그래피 컴포넌트 속성입니다.\n */\nexport interface YmdTypographyProps extends Omit<TypographyProps, 'children'> {\n /** YYYYMMDD 또는 YYMMDD 형식의 날짜 문자열 또는 숫자입니다. */\n value: number | string | null | undefined;\n\n /** 출력 포맷입니다. 예: `YYYY-MM-DD`, `YY/MM/DD` */\n format?: string;\n\n /** 값이 없거나 포매팅에 실패했을 때 대신 표시할 문자열입니다. */\n fallback?: string;\n\n /**\n * 가공하지 않고 표시, 기본값: false\n */\n raw?: boolean;\n}\n\n/**\n * YMD 날짜 문자열을 지정한 형식으로 변환해 표시합니다.\n */\nexport function YmdTypography(props: YmdTypographyProps) {\n const { className, value, format, fallback = '-', raw = false, ...typographyProps } = props;\n const formatted = raw ? value : formatYmd(value, format ? { format } : undefined);\n const display = formatted || fallback;\n\n return (\n <Typography className={clsx('YmdTypography-root', className)} {...typographyProps}>\n {display}\n </Typography>\n );\n}\n"],"mappings":"A,qOA6BA,SAAgBQ,EAAcC,EAA2B,CACvD,GAAM,CAAEC,YAAWC,QAAOC,SAAQC,WAAW,IAAKC,MAAM,GAAO,GAAGC,GAAoBN,EAEhFO,GADYF,EAAMH,EAAQX,EAAAA,UAAUW,EAAOC,EAAS,CAAEA,QAAO,EAAI,IAAA,EAAS,IACnDC,EAE7B,MACE,iBAAA,EAAAR,EAAA,IAAA,CAACJ,EAAAA,QAAD,CAAY,WAAA,EAAWC,EAAAA,QAAAA,CAAK,qBAAsBQ,CAAS,EAAG,GAAIK,EAC/D,SAAAC,CACS,CAAA,CAEhB,C"}