@seed-design/react 1.2.8 → 1.2.10

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 (387) hide show
  1. package/lib/_virtual/_rolldown/runtime.cjs +34 -0
  2. package/lib/_virtual/_rolldown/runtime.js +14 -0
  3. package/lib/components/ActionButton/ActionButton.cjs +46 -72
  4. package/lib/components/ActionButton/ActionButton.js +43 -49
  5. package/lib/components/ActionButton/index.cjs +3 -9
  6. package/lib/components/ActionButton/index.js +2 -1
  7. package/lib/components/ActionChip/ActionChip.cjs +13 -16
  8. package/lib/components/ActionChip/ActionChip.js +12 -12
  9. package/lib/components/ActionChip/index.cjs +3 -9
  10. package/lib/components/ActionChip/index.js +2 -1
  11. package/lib/components/ActionSheet/ActionSheet.cjs +61 -56
  12. package/lib/components/ActionSheet/ActionSheet.js +60 -52
  13. package/lib/components/ActionSheet/ActionSheet.namespace.cjs +23 -19
  14. package/lib/components/ActionSheet/ActionSheet.namespace.js +18 -1
  15. package/lib/components/ActionSheet/index.cjs +20 -21
  16. package/lib/components/ActionSheet/index.js +3 -3
  17. package/lib/components/Article/Article.cjs +19 -44
  18. package/lib/components/Article/Article.js +16 -21
  19. package/lib/components/Article/index.cjs +3 -9
  20. package/lib/components/Article/index.js +2 -1
  21. package/lib/components/AspectRatio/AspectRatio.cjs +27 -54
  22. package/lib/components/AspectRatio/AspectRatio.js +24 -31
  23. package/lib/components/AspectRatio/index.cjs +3 -9
  24. package/lib/components/AspectRatio/index.js +2 -1
  25. package/lib/components/Avatar/Avatar.cjs +35 -52
  26. package/lib/components/Avatar/Avatar.js +33 -30
  27. package/lib/components/Avatar/Avatar.namespace.cjs +17 -13
  28. package/lib/components/Avatar/Avatar.namespace.js +12 -1
  29. package/lib/components/Avatar/index.cjs +14 -15
  30. package/lib/components/Avatar/index.js +3 -3
  31. package/lib/components/Badge/Badge.cjs +23 -19
  32. package/lib/components/Badge/Badge.js +21 -15
  33. package/lib/components/Badge/index.cjs +3 -9
  34. package/lib/components/Badge/index.js +2 -1
  35. package/lib/components/BottomSheet/BottomSheet.cjs +31 -58
  36. package/lib/components/BottomSheet/BottomSheet.js +30 -54
  37. package/lib/components/BottomSheet/BottomSheet.namespace.cjs +25 -21
  38. package/lib/components/BottomSheet/BottomSheet.namespace.js +20 -2
  39. package/lib/components/BottomSheet/index.cjs +20 -21
  40. package/lib/components/BottomSheet/index.js +3 -3
  41. package/lib/components/BottomSheetHandle/BottomSheetHandle.cjs +24 -19
  42. package/lib/components/BottomSheetHandle/BottomSheetHandle.js +21 -15
  43. package/lib/components/BottomSheetHandle/index.cjs +3 -9
  44. package/lib/components/BottomSheetHandle/index.js +2 -1
  45. package/lib/components/Box/Box.cjs +26 -38
  46. package/lib/components/Box/Box.js +23 -15
  47. package/lib/components/Box/index.cjs +3 -9
  48. package/lib/components/Box/index.js +2 -1
  49. package/lib/components/Callout/Callout.cjs +15 -33
  50. package/lib/components/Callout/Callout.js +14 -29
  51. package/lib/components/Callout/Callout.namespace.cjs +18 -14
  52. package/lib/components/Callout/Callout.namespace.js +13 -1
  53. package/lib/components/Callout/index.cjs +15 -16
  54. package/lib/components/Callout/index.js +3 -3
  55. package/lib/components/Celsius/Celsius.cjs +5 -8
  56. package/lib/components/Celsius/Celsius.js +5 -4
  57. package/lib/components/Celsius/index.cjs +3 -9
  58. package/lib/components/Celsius/index.js +2 -1
  59. package/lib/components/Checkbox/Checkbox.cjs +70 -93
  60. package/lib/components/Checkbox/Checkbox.js +68 -89
  61. package/lib/components/Checkbox/Checkbox.namespace.cjs +18 -14
  62. package/lib/components/Checkbox/Checkbox.namespace.js +13 -1
  63. package/lib/components/Checkbox/index.cjs +15 -16
  64. package/lib/components/Checkbox/index.js +3 -3
  65. package/lib/components/Chip/Chip.cjs +24 -39
  66. package/lib/components/Chip/Chip.js +23 -35
  67. package/lib/components/Chip/Chip.namespace.cjs +17 -13
  68. package/lib/components/Chip/Chip.namespace.js +12 -1
  69. package/lib/components/Chip/index.cjs +14 -15
  70. package/lib/components/Chip/index.js +3 -3
  71. package/lib/components/ChipTabs/ChipTabs.cjs +30 -53
  72. package/lib/components/ChipTabs/ChipTabs.js +28 -49
  73. package/lib/components/ChipTabs/ChipTabs.namespace.cjs +18 -14
  74. package/lib/components/ChipTabs/ChipTabs.namespace.js +13 -1
  75. package/lib/components/ChipTabs/index.cjs +15 -16
  76. package/lib/components/ChipTabs/index.js +3 -3
  77. package/lib/components/Columns/Columns.cjs +34 -55
  78. package/lib/components/Columns/Columns.js +32 -32
  79. package/lib/components/Columns/index.cjs +4 -10
  80. package/lib/components/Columns/index.js +2 -1
  81. package/lib/components/ConsistentWidth/ConsistentWidth.cjs +17 -22
  82. package/lib/components/ConsistentWidth/ConsistentWidth.js +15 -18
  83. package/lib/components/ConsistentWidth/index.cjs +3 -9
  84. package/lib/components/ConsistentWidth/index.js +2 -1
  85. package/lib/components/ContentPlaceholder/ContentPlaceholder.cjs +43 -54
  86. package/lib/components/ContentPlaceholder/ContentPlaceholder.js +42 -32
  87. package/lib/components/ContentPlaceholder/ContentPlaceholder.namespace.cjs +14 -10
  88. package/lib/components/ContentPlaceholder/ContentPlaceholder.namespace.js +9 -1
  89. package/lib/components/ContentPlaceholder/index.cjs +11 -12
  90. package/lib/components/ContentPlaceholder/index.js +3 -3
  91. package/lib/components/ContentPlaceholder/presets.cjs +121 -76
  92. package/lib/components/ContentPlaceholder/presets.js +120 -72
  93. package/lib/components/ContextualFloatingButton/ContextualFloatingButton.cjs +36 -51
  94. package/lib/components/ContextualFloatingButton/ContextualFloatingButton.js +33 -28
  95. package/lib/components/ContextualFloatingButton/index.cjs +3 -9
  96. package/lib/components/ContextualFloatingButton/index.js +2 -1
  97. package/lib/components/ControlChip/ControlChip.cjs +13 -16
  98. package/lib/components/ControlChip/ControlChip.js +12 -12
  99. package/lib/components/ControlChip/index.cjs +3 -9
  100. package/lib/components/ControlChip/index.js +2 -1
  101. package/lib/components/Count/Count.cjs +16 -14
  102. package/lib/components/Count/Count.js +14 -10
  103. package/lib/components/Count/index.cjs +3 -9
  104. package/lib/components/Count/index.js +2 -1
  105. package/lib/components/Dialog/Dialog.cjs +24 -44
  106. package/lib/components/Dialog/Dialog.js +23 -40
  107. package/lib/components/Dialog/Dialog.namespace.cjs +22 -18
  108. package/lib/components/Dialog/Dialog.namespace.js +17 -1
  109. package/lib/components/Dialog/index.cjs +19 -20
  110. package/lib/components/Dialog/index.js +3 -3
  111. package/lib/components/Divider/Divider.cjs +32 -68
  112. package/lib/components/Divider/Divider.js +30 -45
  113. package/lib/components/Divider/index.cjs +3 -9
  114. package/lib/components/Divider/index.js +2 -1
  115. package/lib/components/ExtendedActionSheet/ExtendedActionSheet.cjs +65 -43
  116. package/lib/components/ExtendedActionSheet/ExtendedActionSheet.js +64 -39
  117. package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.cjs +24 -20
  118. package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.js +19 -1
  119. package/lib/components/ExtendedActionSheet/index.cjs +21 -22
  120. package/lib/components/ExtendedActionSheet/index.js +3 -3
  121. package/lib/components/ExtendedFab/ExtendedFab.cjs +15 -17
  122. package/lib/components/ExtendedFab/ExtendedFab.js +14 -13
  123. package/lib/components/ExtendedFab/index.cjs +3 -9
  124. package/lib/components/ExtendedFab/index.js +2 -1
  125. package/lib/components/Fab/Fab.cjs +12 -12
  126. package/lib/components/Fab/Fab.js +11 -8
  127. package/lib/components/Fab/index.cjs +3 -9
  128. package/lib/components/Fab/index.js +2 -1
  129. package/lib/components/Field/Field.cjs +62 -107
  130. package/lib/components/Field/Field.js +60 -103
  131. package/lib/components/Field/Field.namespace.cjs +21 -17
  132. package/lib/components/Field/Field.namespace.js +16 -1
  133. package/lib/components/Field/index.cjs +18 -19
  134. package/lib/components/Field/index.js +3 -3
  135. package/lib/components/FieldButton/FieldButton.cjs +94 -177
  136. package/lib/components/FieldButton/FieldButton.js +91 -154
  137. package/lib/components/FieldButton/FieldButton.namespace.cjs +30 -26
  138. package/lib/components/FieldButton/FieldButton.namespace.js +25 -1
  139. package/lib/components/FieldButton/index.cjs +27 -28
  140. package/lib/components/FieldButton/index.js +3 -3
  141. package/lib/components/Fieldset/Fieldset.cjs +40 -78
  142. package/lib/components/Fieldset/Fieldset.js +38 -74
  143. package/lib/components/Fieldset/Fieldset.namespace.cjs +20 -16
  144. package/lib/components/Fieldset/Fieldset.namespace.js +15 -1
  145. package/lib/components/Fieldset/index.cjs +17 -18
  146. package/lib/components/Fieldset/index.js +3 -3
  147. package/lib/components/Flex/Flex.cjs +21 -45
  148. package/lib/components/Flex/Flex.js +19 -22
  149. package/lib/components/Flex/index.cjs +3 -9
  150. package/lib/components/Flex/index.js +2 -1
  151. package/lib/components/Float/Float.cjs +70 -104
  152. package/lib/components/Float/Float.js +68 -81
  153. package/lib/components/Float/index.cjs +3 -9
  154. package/lib/components/Float/index.js +2 -1
  155. package/lib/components/FloatingActionButton/FloatingActionButton.cjs +12 -15
  156. package/lib/components/FloatingActionButton/FloatingActionButton.js +11 -11
  157. package/lib/components/FloatingActionButton/FloatingActionButton.namespace.cjs +15 -11
  158. package/lib/components/FloatingActionButton/FloatingActionButton.namespace.js +10 -1
  159. package/lib/components/FloatingActionButton/index.cjs +12 -13
  160. package/lib/components/FloatingActionButton/index.js +3 -3
  161. package/lib/components/Grid/Grid.cjs +27 -54
  162. package/lib/components/Grid/Grid.js +25 -31
  163. package/lib/components/Grid/index.cjs +3 -9
  164. package/lib/components/Grid/index.js +2 -1
  165. package/lib/components/GridItem/GridItem.cjs +22 -40
  166. package/lib/components/GridItem/GridItem.js +20 -17
  167. package/lib/components/GridItem/index.cjs +3 -9
  168. package/lib/components/GridItem/index.js +2 -1
  169. package/lib/components/HelpBubble/HelpBubble.cjs +52 -85
  170. package/lib/components/HelpBubble/HelpBubble.js +50 -81
  171. package/lib/components/HelpBubble/HelpBubble.namespace.cjs +24 -20
  172. package/lib/components/HelpBubble/HelpBubble.namespace.js +19 -1
  173. package/lib/components/HelpBubble/index.cjs +21 -22
  174. package/lib/components/HelpBubble/index.js +3 -3
  175. package/lib/components/Icon/Icon.cjs +99 -120
  176. package/lib/components/Icon/Icon.js +98 -116
  177. package/lib/components/Icon/index.cjs +5 -11
  178. package/lib/components/Icon/index.js +2 -1
  179. package/lib/components/IdentityPlaceholder/IdentityPlaceholder.cjs +50 -71
  180. package/lib/components/IdentityPlaceholder/IdentityPlaceholder.js +48 -48
  181. package/lib/components/IdentityPlaceholder/IdentityPlaceholder.namespace.cjs +14 -10
  182. package/lib/components/IdentityPlaceholder/IdentityPlaceholder.namespace.js +9 -1
  183. package/lib/components/IdentityPlaceholder/index.cjs +11 -12
  184. package/lib/components/IdentityPlaceholder/index.js +3 -3
  185. package/lib/components/ImageFrame/ImageFrame.cjs +155 -171
  186. package/lib/components/ImageFrame/ImageFrame.d.ts +1 -1
  187. package/lib/components/ImageFrame/ImageFrame.js +152 -148
  188. package/lib/components/ImageFrame/index.cjs +8 -14
  189. package/lib/components/ImageFrame/index.js +2 -1
  190. package/lib/components/Inline/Inline.cjs +21 -42
  191. package/lib/components/Inline/Inline.js +19 -19
  192. package/lib/components/Inline/index.cjs +3 -9
  193. package/lib/components/Inline/index.js +2 -1
  194. package/lib/components/InlineBanner/InlineBanner.cjs +33 -36
  195. package/lib/components/InlineBanner/InlineBanner.js +32 -32
  196. package/lib/components/InlineBanner/InlineBanner.namespace.cjs +18 -14
  197. package/lib/components/InlineBanner/InlineBanner.namespace.js +13 -1
  198. package/lib/components/InlineBanner/index.cjs +15 -16
  199. package/lib/components/InlineBanner/index.js +3 -3
  200. package/lib/components/LinkContent/LinkContent.cjs +13 -15
  201. package/lib/components/LinkContent/LinkContent.js +12 -11
  202. package/lib/components/LinkContent/index.cjs +3 -9
  203. package/lib/components/LinkContent/index.js +2 -1
  204. package/lib/components/List/List.cjs +46 -63
  205. package/lib/components/List/List.js +45 -59
  206. package/lib/components/List/List.namespace.cjs +19 -15
  207. package/lib/components/List/List.namespace.js +14 -1
  208. package/lib/components/List/ListHeader.cjs +18 -18
  209. package/lib/components/List/ListHeader.js +16 -14
  210. package/lib/components/List/index.cjs +18 -19
  211. package/lib/components/List/index.js +4 -4
  212. package/lib/components/LoadingIndicator/LoadingIndicator.cjs +24 -26
  213. package/lib/components/LoadingIndicator/LoadingIndicator.js +23 -22
  214. package/lib/components/LoadingIndicator/index.cjs +3 -9
  215. package/lib/components/LoadingIndicator/index.js +2 -1
  216. package/lib/components/LoadingIndicator/usePendingButton.cjs +22 -46
  217. package/lib/components/LoadingIndicator/usePendingButton.js +20 -23
  218. package/lib/components/MannerTemp/MannerTemp.cjs +20 -18
  219. package/lib/components/MannerTemp/MannerTemp.js +19 -14
  220. package/lib/components/MannerTemp/MannerTempEmote.cjs +130 -96
  221. package/lib/components/MannerTemp/MannerTempEmote.js +129 -92
  222. package/lib/components/MannerTemp/index.cjs +5 -11
  223. package/lib/components/MannerTemp/index.js +3 -2
  224. package/lib/components/MannerTempBadge/MannerTempBadge.cjs +9 -12
  225. package/lib/components/MannerTempBadge/MannerTempBadge.js +8 -8
  226. package/lib/components/MannerTempBadge/index.cjs +3 -9
  227. package/lib/components/MannerTempBadge/index.js +2 -1
  228. package/lib/components/MenuSheet/MenuSheet.cjs +80 -138
  229. package/lib/components/MenuSheet/MenuSheet.js +77 -115
  230. package/lib/components/MenuSheet/MenuSheet.namespace.cjs +28 -24
  231. package/lib/components/MenuSheet/MenuSheet.namespace.js +23 -1
  232. package/lib/components/MenuSheet/index.cjs +25 -26
  233. package/lib/components/MenuSheet/index.js +3 -3
  234. package/lib/components/NotificationBadge/NotificationBadge.cjs +29 -41
  235. package/lib/components/NotificationBadge/NotificationBadge.js +27 -19
  236. package/lib/components/NotificationBadge/index.cjs +4 -10
  237. package/lib/components/NotificationBadge/index.js +2 -1
  238. package/lib/components/PageBanner/PageBanner.cjs +32 -51
  239. package/lib/components/PageBanner/PageBanner.js +30 -47
  240. package/lib/components/PageBanner/PageBanner.namespace.cjs +19 -15
  241. package/lib/components/PageBanner/PageBanner.namespace.js +14 -1
  242. package/lib/components/PageBanner/index.cjs +16 -17
  243. package/lib/components/PageBanner/index.js +3 -3
  244. package/lib/components/Portal/index.cjs +7 -10
  245. package/lib/components/Portal/index.js +2 -1
  246. package/lib/components/ProgressCircle/ProgressCircle.cjs +11 -23
  247. package/lib/components/ProgressCircle/ProgressCircle.js +10 -19
  248. package/lib/components/ProgressCircle/ProgressCircle.namespace.cjs +15 -11
  249. package/lib/components/ProgressCircle/ProgressCircle.namespace.js +10 -1
  250. package/lib/components/ProgressCircle/index.cjs +12 -13
  251. package/lib/components/ProgressCircle/index.js +3 -3
  252. package/lib/components/PullToRefresh/PullToRefresh.cjs +11 -20
  253. package/lib/components/PullToRefresh/PullToRefresh.js +10 -16
  254. package/lib/components/PullToRefresh/PullToRefresh.namespace.cjs +16 -15
  255. package/lib/components/PullToRefresh/PullToRefresh.namespace.js +12 -2
  256. package/lib/components/PullToRefresh/index.cjs +18 -16
  257. package/lib/components/PullToRefresh/index.js +4 -4
  258. package/lib/components/RadioGroup/RadioGroup.cjs +69 -75
  259. package/lib/components/RadioGroup/RadioGroup.js +67 -71
  260. package/lib/components/RadioGroup/RadioGroup.namespace.cjs +18 -14
  261. package/lib/components/RadioGroup/RadioGroup.namespace.js +13 -1
  262. package/lib/components/RadioGroup/index.cjs +15 -16
  263. package/lib/components/RadioGroup/index.js +3 -3
  264. package/lib/components/RadioGroupField/RadioGroupField.cjs +40 -69
  265. package/lib/components/RadioGroupField/RadioGroupField.js +38 -65
  266. package/lib/components/RadioGroupField/RadioGroupField.namespace.cjs +20 -16
  267. package/lib/components/RadioGroupField/RadioGroupField.namespace.js +15 -1
  268. package/lib/components/RadioGroupField/index.cjs +17 -18
  269. package/lib/components/RadioGroupField/index.js +3 -3
  270. package/lib/components/ReactionButton/ReactionButton.cjs +28 -47
  271. package/lib/components/ReactionButton/ReactionButton.js +25 -24
  272. package/lib/components/ReactionButton/index.cjs +3 -9
  273. package/lib/components/ReactionButton/index.js +2 -1
  274. package/lib/components/ResponsivePair/ResponsivePair.cjs +34 -57
  275. package/lib/components/ResponsivePair/ResponsivePair.js +32 -34
  276. package/lib/components/ResponsivePair/index.cjs +3 -9
  277. package/lib/components/ResponsivePair/index.js +2 -1
  278. package/lib/components/ScrollFog/ScrollFog.cjs +49 -61
  279. package/lib/components/ScrollFog/ScrollFog.js +47 -57
  280. package/lib/components/ScrollFog/index.cjs +3 -9
  281. package/lib/components/ScrollFog/index.js +2 -1
  282. package/lib/components/SegmentedControl/SegmentedControl.cjs +13 -22
  283. package/lib/components/SegmentedControl/SegmentedControl.js +12 -18
  284. package/lib/components/SegmentedControl/SegmentedControl.namespace.cjs +16 -12
  285. package/lib/components/SegmentedControl/SegmentedControl.namespace.js +11 -1
  286. package/lib/components/SegmentedControl/index.cjs +13 -14
  287. package/lib/components/SegmentedControl/index.js +3 -3
  288. package/lib/components/SelectBox/CheckSelectBox.cjs +115 -134
  289. package/lib/components/SelectBox/CheckSelectBox.js +113 -130
  290. package/lib/components/SelectBox/CheckSelectBox.namespace.cjs +23 -19
  291. package/lib/components/SelectBox/CheckSelectBox.namespace.js +18 -1
  292. package/lib/components/SelectBox/RadioSelectBox.cjs +109 -128
  293. package/lib/components/SelectBox/RadioSelectBox.js +107 -124
  294. package/lib/components/SelectBox/RadioSelectBox.namespace.cjs +21 -17
  295. package/lib/components/SelectBox/RadioSelectBox.namespace.js +16 -1
  296. package/lib/components/SelectBox/index.cjs +37 -33
  297. package/lib/components/SelectBox/index.js +5 -6
  298. package/lib/components/Skeleton/Skeleton.cjs +10 -13
  299. package/lib/components/Skeleton/Skeleton.js +9 -9
  300. package/lib/components/Skeleton/index.cjs +3 -9
  301. package/lib/components/Skeleton/index.js +2 -1
  302. package/lib/components/Slider/Slider.cjs +69 -90
  303. package/lib/components/Slider/Slider.js +67 -86
  304. package/lib/components/Slider/Slider.namespace.cjs +25 -21
  305. package/lib/components/Slider/Slider.namespace.js +20 -1
  306. package/lib/components/Slider/index.cjs +22 -23
  307. package/lib/components/Slider/index.js +3 -3
  308. package/lib/components/Snackbar/Snackbar.cjs +38 -55
  309. package/lib/components/Snackbar/Snackbar.d.ts +1 -1
  310. package/lib/components/Snackbar/Snackbar.d.ts.map +1 -1
  311. package/lib/components/Snackbar/Snackbar.js +37 -51
  312. package/lib/components/Snackbar/Snackbar.namespace.cjs +22 -18
  313. package/lib/components/Snackbar/Snackbar.namespace.js +17 -1
  314. package/lib/components/Snackbar/index.cjs +26 -24
  315. package/lib/components/Snackbar/index.js +5 -5
  316. package/lib/components/Snackbar/useSnackbarAdapter.cjs +23 -26
  317. package/lib/components/Snackbar/useSnackbarAdapter.d.ts.map +1 -1
  318. package/lib/components/Snackbar/useSnackbarAdapter.js +22 -22
  319. package/lib/components/Stack/Stack.cjs +32 -35
  320. package/lib/components/Stack/Stack.js +30 -12
  321. package/lib/components/Stack/index.cjs +5 -11
  322. package/lib/components/Stack/index.js +2 -1
  323. package/lib/components/Switch/Switch.cjs +45 -63
  324. package/lib/components/Switch/Switch.js +42 -59
  325. package/lib/components/Switch/Switch.namespace.cjs +17 -13
  326. package/lib/components/Switch/Switch.namespace.js +12 -1
  327. package/lib/components/Switch/index.cjs +14 -15
  328. package/lib/components/Switch/index.js +3 -3
  329. package/lib/components/Tabs/Tabs.cjs +15 -33
  330. package/lib/components/Tabs/Tabs.js +14 -29
  331. package/lib/components/Tabs/Tabs.namespace.cjs +20 -19
  332. package/lib/components/Tabs/Tabs.namespace.js +16 -2
  333. package/lib/components/Tabs/index.cjs +22 -20
  334. package/lib/components/Tabs/index.js +4 -4
  335. package/lib/components/TagGroup/TagGroup.cjs +54 -51
  336. package/lib/components/TagGroup/TagGroup.js +52 -47
  337. package/lib/components/TagGroup/TagGroup.namespace.cjs +15 -11
  338. package/lib/components/TagGroup/TagGroup.namespace.js +10 -1
  339. package/lib/components/TagGroup/index.cjs +12 -13
  340. package/lib/components/TagGroup/index.js +3 -3
  341. package/lib/components/Text/Text.cjs +49 -85
  342. package/lib/components/Text/Text.js +47 -81
  343. package/lib/components/Text/index.cjs +3 -9
  344. package/lib/components/Text/index.js +2 -1
  345. package/lib/components/TextField/TextField.cjs +82 -122
  346. package/lib/components/TextField/TextField.js +80 -118
  347. package/lib/components/TextField/TextField.namespace.cjs +19 -15
  348. package/lib/components/TextField/TextField.namespace.js +14 -1
  349. package/lib/components/TextField/index.cjs +18 -19
  350. package/lib/components/TextField/index.js +4 -4
  351. package/lib/components/TextField/memoize.cjs +10 -15
  352. package/lib/components/TextField/memoize.js +10 -11
  353. package/lib/components/TextField/useTextFieldWithGraphemes.cjs +40 -50
  354. package/lib/components/TextField/useTextFieldWithGraphemes.js +39 -46
  355. package/lib/components/ToggleButton/ToggleButton.cjs +31 -47
  356. package/lib/components/ToggleButton/ToggleButton.js +28 -24
  357. package/lib/components/ToggleButton/index.cjs +3 -9
  358. package/lib/components/ToggleButton/index.js +2 -1
  359. package/lib/components/VisuallyHidden/VisuallyHidden.cjs +18 -14
  360. package/lib/components/VisuallyHidden/VisuallyHidden.js +17 -10
  361. package/lib/components/VisuallyHidden/index.cjs +3 -9
  362. package/lib/components/VisuallyHidden/index.js +2 -1
  363. package/lib/components/index.cjs +626 -458
  364. package/lib/components/index.js +110 -142
  365. package/lib/components/private/Icon.cjs +15 -15
  366. package/lib/components/private/Icon.js +14 -11
  367. package/lib/components/private/useDismissible.cjs +54 -73
  368. package/lib/components/private/useDismissible.js +53 -48
  369. package/lib/index.cjs +626 -458
  370. package/lib/index.js +110 -142
  371. package/lib/primitive.cjs +73 -55
  372. package/lib/primitive.js +12 -12
  373. package/lib/utils/createRecipeContext.cjs +46 -37
  374. package/lib/utils/createRecipeContext.js +44 -33
  375. package/lib/utils/createSlotRecipeContext.cjs +91 -74
  376. package/lib/utils/createSlotRecipeContext.js +89 -70
  377. package/lib/utils/createWithStateProps.cjs +23 -25
  378. package/lib/utils/createWithStateProps.js +22 -21
  379. package/lib/utils/splitMultipleVariantsProps.cjs +16 -29
  380. package/lib/utils/splitMultipleVariantsProps.js +16 -25
  381. package/lib/utils/styled.cjs +144 -279
  382. package/lib/utils/styled.js +144 -275
  383. package/lib/vars.cjs +7 -11
  384. package/lib/vars.js +1 -1
  385. package/package.json +5 -5
  386. package/src/components/ImageFrame/ImageFrame.tsx +1 -1
  387. package/src/components/Snackbar/useSnackbarAdapter.ts +2 -1
@@ -1,85 +1,72 @@
1
- 'use client';
2
- import { jsx } from 'react/jsx-runtime';
3
- import * as React from 'react';
4
- import { Box } from '../Box/Box.js';
5
- import { handleDimension } from '../../utils/styled.js';
6
-
1
+ "use client";
2
+ import { handleDimension } from "../../utils/styled.js";
3
+ import { Box } from "../Box/Box.js";
4
+ import * as React$1 from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ //#region src/components/Float/Float.tsx
7
7
  function getPlacementStyle(placement, offsetX, offsetY) {
8
- const offsetXValue = handleDimension(offsetX);
9
- const offsetYValue = handleDimension(offsetY);
10
- const centerLeft = offsetXValue ? `calc(50% + ${offsetXValue})` : "50%";
11
- const middleTop = offsetYValue ? `calc(50% + ${offsetYValue})` : "50%";
12
- const shiftLeft = "translateX(-50%)";
13
- const shiftTop = "translateY(-50%)";
14
- const shiftBoth = "translate(-50%, -50%)";
15
- switch (placement) {
16
- case "top-start":
17
- return {
18
- top: offsetYValue ?? 0,
19
- left: offsetXValue ?? 0
20
- };
21
- case "top-center":
22
- return {
23
- top: offsetYValue ?? 0,
24
- left: centerLeft,
25
- unstable_transform: shiftLeft
26
- };
27
- case "top-end":
28
- return {
29
- top: offsetYValue ?? 0,
30
- right: offsetXValue ?? 0
31
- };
32
- case "middle-start":
33
- return {
34
- top: middleTop,
35
- left: offsetXValue ?? 0,
36
- unstable_transform: shiftTop
37
- };
38
- case "middle-center":
39
- return {
40
- top: middleTop,
41
- left: centerLeft,
42
- unstable_transform: shiftBoth
43
- };
44
- case "middle-end":
45
- return {
46
- top: middleTop,
47
- right: offsetXValue ?? 0,
48
- unstable_transform: shiftTop
49
- };
50
- case "bottom-start":
51
- return {
52
- bottom: offsetYValue ?? 0,
53
- left: offsetXValue ?? 0
54
- };
55
- case "bottom-center":
56
- return {
57
- bottom: offsetYValue ?? 0,
58
- left: centerLeft,
59
- unstable_transform: shiftLeft
60
- };
61
- case "bottom-end":
62
- return {
63
- bottom: offsetYValue ?? 0,
64
- right: offsetXValue ?? 0
65
- };
66
- }
8
+ const offsetXValue = handleDimension(offsetX);
9
+ const offsetYValue = handleDimension(offsetY);
10
+ const centerLeft = offsetXValue ? `calc(50% + ${offsetXValue})` : "50%";
11
+ const middleTop = offsetYValue ? `calc(50% + ${offsetYValue})` : "50%";
12
+ const shiftLeft = "translateX(-50%)";
13
+ const shiftTop = "translateY(-50%)";
14
+ const shiftBoth = "translate(-50%, -50%)";
15
+ switch (placement) {
16
+ case "top-start": return {
17
+ top: offsetYValue ?? 0,
18
+ left: offsetXValue ?? 0
19
+ };
20
+ case "top-center": return {
21
+ top: offsetYValue ?? 0,
22
+ left: centerLeft,
23
+ unstable_transform: shiftLeft
24
+ };
25
+ case "top-end": return {
26
+ top: offsetYValue ?? 0,
27
+ right: offsetXValue ?? 0
28
+ };
29
+ case "middle-start": return {
30
+ top: middleTop,
31
+ left: offsetXValue ?? 0,
32
+ unstable_transform: shiftTop
33
+ };
34
+ case "middle-center": return {
35
+ top: middleTop,
36
+ left: centerLeft,
37
+ unstable_transform: shiftBoth
38
+ };
39
+ case "middle-end": return {
40
+ top: middleTop,
41
+ right: offsetXValue ?? 0,
42
+ unstable_transform: shiftTop
43
+ };
44
+ case "bottom-start": return {
45
+ bottom: offsetYValue ?? 0,
46
+ left: offsetXValue ?? 0
47
+ };
48
+ case "bottom-center": return {
49
+ bottom: offsetYValue ?? 0,
50
+ left: centerLeft,
51
+ unstable_transform: shiftLeft
52
+ };
53
+ case "bottom-end": return {
54
+ bottom: offsetYValue ?? 0,
55
+ right: offsetXValue ?? 0
56
+ };
57
+ }
67
58
  }
68
- const Float = React.forwardRef((props, ref) => {
69
- const { as, placement, offsetX, offsetY, zIndex, ...rest } = props;
70
- const placementStyle = getPlacementStyle(placement, offsetX, offsetY);
71
- return /* @__PURE__ */ jsx(
72
- Box,
73
- {
74
- ref,
75
- as,
76
- position: "absolute",
77
- display: "inline-flex",
78
- zIndex,
79
- ...placementStyle,
80
- ...rest
81
- }
82
- );
59
+ var Float = React$1.forwardRef((props, ref) => {
60
+ const { as, placement, offsetX, offsetY, zIndex, ...rest } = props;
61
+ return /* @__PURE__ */ jsx(Box, {
62
+ ref,
63
+ as,
64
+ position: "absolute",
65
+ display: "inline-flex",
66
+ zIndex,
67
+ ...getPlacementStyle(placement, offsetX, offsetY),
68
+ ...rest
69
+ });
83
70
  });
84
-
71
+ //#endregion
85
72
  export { Float };
@@ -1,9 +1,3 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
-
5
- const Float = require('./Float.cjs');
6
-
7
-
8
-
9
- exports.Float = Float.Float;
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_Float = require("./Float.cjs");
3
+ exports.Float = require_Float.Float;
@@ -1 +1,2 @@
1
- export { Float } from './Float.js';
1
+ import { Float } from "./Float.js";
2
+ export { Float };
@@ -1,18 +1,15 @@
1
- 'use client';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
-
6
- const floatingActionButton = require('@seed-design/css/recipes/floating-action-button');
7
- const reactPrimitive = require('@seed-design/react-primitive');
8
- const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
9
- const Icon = require('../private/Icon.cjs');
10
-
11
- const { withProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(floatingActionButton.floatingActionButton);
12
- const FloatingActionButtonRoot = withProvider(reactPrimitive.Primitive.button, "root");
13
- const FloatingActionButtonIcon = withContext(Icon.InternalIcon, "icon");
14
- const FloatingActionButtonLabel = withContext(reactPrimitive.Primitive.span, "label");
15
-
1
+ "use client";
2
+ require("../../_virtual/_rolldown/runtime.cjs");
3
+ const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
4
+ const require_Icon = require("../private/Icon.cjs");
5
+ let _seed_design_react_primitive = require("@seed-design/react-primitive");
6
+ let _seed_design_css_recipes_floating_action_button = require("@seed-design/css/recipes/floating-action-button");
7
+ //#region src/components/FloatingActionButton/FloatingActionButton.tsx
8
+ var { withProvider, withContext } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_floating_action_button.floatingActionButton);
9
+ var FloatingActionButtonRoot = withProvider(_seed_design_react_primitive.Primitive.button, "root");
10
+ var FloatingActionButtonIcon = withContext(require_Icon.InternalIcon, "icon");
11
+ var FloatingActionButtonLabel = withContext(_seed_design_react_primitive.Primitive.span, "label");
12
+ //#endregion
16
13
  exports.FloatingActionButtonIcon = FloatingActionButtonIcon;
17
14
  exports.FloatingActionButtonLabel = FloatingActionButtonLabel;
18
15
  exports.FloatingActionButtonRoot = FloatingActionButtonRoot;
@@ -1,12 +1,12 @@
1
- 'use client';
2
- import { floatingActionButton } from '@seed-design/css/recipes/floating-action-button';
3
- import { Primitive } from '@seed-design/react-primitive';
4
- import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
5
- import { InternalIcon } from '../private/Icon.js';
6
-
7
- const { withProvider, withContext } = createSlotRecipeContext(floatingActionButton);
8
- const FloatingActionButtonRoot = withProvider(Primitive.button, "root");
9
- const FloatingActionButtonIcon = withContext(InternalIcon, "icon");
10
- const FloatingActionButtonLabel = withContext(Primitive.span, "label");
11
-
1
+ "use client";
2
+ import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
3
+ import { InternalIcon } from "../private/Icon.js";
4
+ import { Primitive } from "@seed-design/react-primitive";
5
+ import { floatingActionButton } from "@seed-design/css/recipes/floating-action-button";
6
+ //#region src/components/FloatingActionButton/FloatingActionButton.tsx
7
+ var { withProvider, withContext } = createSlotRecipeContext(floatingActionButton);
8
+ var FloatingActionButtonRoot = withProvider(Primitive.button, "root");
9
+ var FloatingActionButtonIcon = withContext(InternalIcon, "icon");
10
+ var FloatingActionButtonLabel = withContext(Primitive.span, "label");
11
+ //#endregion
12
12
  export { FloatingActionButtonIcon, FloatingActionButtonLabel, FloatingActionButtonRoot };
@@ -1,11 +1,15 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
-
5
- const FloatingActionButton = require('./FloatingActionButton.cjs');
6
-
7
-
8
-
9
- exports.Icon = FloatingActionButton.FloatingActionButtonIcon;
10
- exports.Label = FloatingActionButton.FloatingActionButtonLabel;
11
- exports.Root = FloatingActionButton.FloatingActionButtonRoot;
1
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
2
+ const require_FloatingActionButton = require("./FloatingActionButton.cjs");
3
+ //#region src/components/FloatingActionButton/FloatingActionButton.namespace.tsx
4
+ var FloatingActionButton_namespace_exports = /* @__PURE__ */ require_runtime.__exportAll({
5
+ Icon: () => require_FloatingActionButton.FloatingActionButtonIcon,
6
+ Label: () => require_FloatingActionButton.FloatingActionButtonLabel,
7
+ Root: () => require_FloatingActionButton.FloatingActionButtonRoot
8
+ });
9
+ //#endregion
10
+ Object.defineProperty(exports, "FloatingActionButton_namespace_exports", {
11
+ enumerable: true,
12
+ get: function() {
13
+ return FloatingActionButton_namespace_exports;
14
+ }
15
+ });
@@ -1 +1,10 @@
1
- export { FloatingActionButtonIcon as Icon, FloatingActionButtonLabel as Label, FloatingActionButtonRoot as Root } from './FloatingActionButton.js';
1
+ import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
2
+ import { FloatingActionButtonIcon, FloatingActionButtonLabel, FloatingActionButtonRoot } from "./FloatingActionButton.js";
3
+ //#region src/components/FloatingActionButton/FloatingActionButton.namespace.tsx
4
+ var FloatingActionButton_namespace_exports = /* @__PURE__ */ __exportAll({
5
+ Icon: () => FloatingActionButtonIcon,
6
+ Label: () => FloatingActionButtonLabel,
7
+ Root: () => FloatingActionButtonRoot
8
+ });
9
+ //#endregion
10
+ export { FloatingActionButton_namespace_exports };
@@ -1,13 +1,12 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
-
5
- const FloatingActionButton = require('./FloatingActionButton.cjs');
6
- const FloatingActionButton_namespace = require('./FloatingActionButton.namespace.cjs');
7
-
8
-
9
-
10
- exports.FloatingActionButtonIcon = FloatingActionButton.FloatingActionButtonIcon;
11
- exports.FloatingActionButtonLabel = FloatingActionButton.FloatingActionButtonLabel;
12
- exports.FloatingActionButtonRoot = FloatingActionButton.FloatingActionButtonRoot;
13
- exports.FloatingActionButton = FloatingActionButton_namespace;
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_FloatingActionButton = require("./FloatingActionButton.cjs");
3
+ const require_FloatingActionButton_namespace = require("./FloatingActionButton.namespace.cjs");
4
+ Object.defineProperty(exports, "FloatingActionButton", {
5
+ enumerable: true,
6
+ get: function() {
7
+ return require_FloatingActionButton_namespace.FloatingActionButton_namespace_exports;
8
+ }
9
+ });
10
+ exports.FloatingActionButtonIcon = require_FloatingActionButton.FloatingActionButtonIcon;
11
+ exports.FloatingActionButtonLabel = require_FloatingActionButton.FloatingActionButtonLabel;
12
+ exports.FloatingActionButtonRoot = require_FloatingActionButton.FloatingActionButtonRoot;
@@ -1,3 +1,3 @@
1
- export { FloatingActionButtonIcon, FloatingActionButtonLabel, FloatingActionButtonRoot } from './FloatingActionButton.js';
2
- import * as FloatingActionButton_namespace from './FloatingActionButton.namespace.js';
3
- export { FloatingActionButton_namespace as FloatingActionButton };
1
+ import { FloatingActionButtonIcon, FloatingActionButtonLabel, FloatingActionButtonRoot } from "./FloatingActionButton.js";
2
+ import { FloatingActionButton_namespace_exports } from "./FloatingActionButton.namespace.js";
3
+ export { FloatingActionButton_namespace_exports as FloatingActionButton, FloatingActionButtonIcon, FloatingActionButtonLabel, FloatingActionButtonRoot };
@@ -1,56 +1,29 @@
1
- 'use client';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
-
6
- const jsxRuntime = require('react/jsx-runtime');
7
- const domUtils = require('@seed-design/dom-utils');
8
- const React = require('react');
9
- const Box = require('../Box/Box.cjs');
10
-
11
- function _interopNamespaceDefault(e) {
12
- const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
13
- if (e) {
14
- for (const k in e) {
15
- if (k !== 'default') {
16
- const d = Object.getOwnPropertyDescriptor(e, k);
17
- Object.defineProperty(n, k, d.get ? d : {
18
- enumerable: true,
19
- get: () => e[k]
20
- });
21
- }
22
- }
23
- }
24
- n.default = e;
25
- return Object.freeze(n);
26
- }
27
-
28
- const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
29
-
30
- const Grid = React__namespace.forwardRef((props, ref) => {
31
- const { align, justify, justifyItems, columns, rows, autoFlow, autoColumns, autoRows, ...rest } = props;
32
- return (
33
- // @ts-expect-error: display: "grid" is not allowed in the Box component
34
- /* @__PURE__ */ jsxRuntime.jsx(
35
- Box.Box,
36
- {
37
- ref,
38
- alignItems: align,
39
- justifyContent: justify,
40
- ...domUtils.mergeProps(rest, {
41
- className: "seed-grid",
42
- style: {
43
- "--seed-grid-columns": typeof columns === "number" ? `repeat(${columns}, minmax(0, 1fr))` : columns,
44
- "--seed-grid-rows": typeof rows === "number" ? `repeat(${rows}, minmax(0, 1fr))` : rows,
45
- "--seed-grid-auto-flow": autoFlow,
46
- "--seed-grid-auto-columns": autoColumns,
47
- "--seed-grid-auto-rows": autoRows,
48
- "--seed-grid-justify-items": justifyItems
49
- }
50
- })
51
- }
52
- )
53
- );
1
+ "use client";
2
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
3
+ const require_Box = require("../Box/Box.cjs");
4
+ let react = require("react");
5
+ react = require_runtime.__toESM(react);
6
+ let react_jsx_runtime = require("react/jsx-runtime");
7
+ let _seed_design_dom_utils = require("@seed-design/dom-utils");
8
+ //#region src/components/Grid/Grid.tsx
9
+ var Grid = react.forwardRef((props, ref) => {
10
+ const { align, justify, justifyItems, columns, rows, autoFlow, autoColumns, autoRows, ...rest } = props;
11
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
12
+ ref,
13
+ alignItems: align,
14
+ justifyContent: justify,
15
+ ...(0, _seed_design_dom_utils.mergeProps)(rest, {
16
+ className: "seed-grid",
17
+ style: {
18
+ "--seed-grid-columns": typeof columns === "number" ? `repeat(${columns}, minmax(0, 1fr))` : columns,
19
+ "--seed-grid-rows": typeof rows === "number" ? `repeat(${rows}, minmax(0, 1fr))` : rows,
20
+ "--seed-grid-auto-flow": autoFlow,
21
+ "--seed-grid-auto-columns": autoColumns,
22
+ "--seed-grid-auto-rows": autoRows,
23
+ "--seed-grid-justify-items": justifyItems
24
+ }
25
+ })
26
+ });
54
27
  });
55
-
28
+ //#endregion
56
29
  exports.Grid = Grid;
@@ -1,33 +1,27 @@
1
- 'use client';
2
- import { jsx } from 'react/jsx-runtime';
3
- import { mergeProps } from '@seed-design/dom-utils';
4
- import * as React from 'react';
5
- import { Box } from '../Box/Box.js';
6
-
7
- const Grid = React.forwardRef((props, ref) => {
8
- const { align, justify, justifyItems, columns, rows, autoFlow, autoColumns, autoRows, ...rest } = props;
9
- return (
10
- // @ts-expect-error: display: "grid" is not allowed in the Box component
11
- /* @__PURE__ */ jsx(
12
- Box,
13
- {
14
- ref,
15
- alignItems: align,
16
- justifyContent: justify,
17
- ...mergeProps(rest, {
18
- className: "seed-grid",
19
- style: {
20
- "--seed-grid-columns": typeof columns === "number" ? `repeat(${columns}, minmax(0, 1fr))` : columns,
21
- "--seed-grid-rows": typeof rows === "number" ? `repeat(${rows}, minmax(0, 1fr))` : rows,
22
- "--seed-grid-auto-flow": autoFlow,
23
- "--seed-grid-auto-columns": autoColumns,
24
- "--seed-grid-auto-rows": autoRows,
25
- "--seed-grid-justify-items": justifyItems
26
- }
27
- })
28
- }
29
- )
30
- );
1
+ "use client";
2
+ import { Box } from "../Box/Box.js";
3
+ import * as React$1 from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { mergeProps } from "@seed-design/dom-utils";
6
+ //#region src/components/Grid/Grid.tsx
7
+ var Grid = React$1.forwardRef((props, ref) => {
8
+ const { align, justify, justifyItems, columns, rows, autoFlow, autoColumns, autoRows, ...rest } = props;
9
+ return /* @__PURE__ */ jsx(Box, {
10
+ ref,
11
+ alignItems: align,
12
+ justifyContent: justify,
13
+ ...mergeProps(rest, {
14
+ className: "seed-grid",
15
+ style: {
16
+ "--seed-grid-columns": typeof columns === "number" ? `repeat(${columns}, minmax(0, 1fr))` : columns,
17
+ "--seed-grid-rows": typeof rows === "number" ? `repeat(${rows}, minmax(0, 1fr))` : rows,
18
+ "--seed-grid-auto-flow": autoFlow,
19
+ "--seed-grid-auto-columns": autoColumns,
20
+ "--seed-grid-auto-rows": autoRows,
21
+ "--seed-grid-justify-items": justifyItems
22
+ }
23
+ })
24
+ });
31
25
  });
32
-
26
+ //#endregion
33
27
  export { Grid };
@@ -1,9 +1,3 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
-
5
- const Grid = require('./Grid.cjs');
6
-
7
-
8
-
9
- exports.Grid = Grid.Grid;
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_Grid = require("./Grid.cjs");
3
+ exports.Grid = require_Grid.Grid;
@@ -1 +1,2 @@
1
- export { Grid } from './Grid.js';
1
+ import { Grid } from "./Grid.js";
2
+ export { Grid };
@@ -1,45 +1,27 @@
1
- 'use client';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
-
6
- const jsxRuntime = require('react/jsx-runtime');
7
- const React = require('react');
8
- const Box = require('../Box/Box.cjs');
9
-
10
- function _interopNamespaceDefault(e) {
11
- const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
12
- if (e) {
13
- for (const k in e) {
14
- if (k !== 'default') {
15
- const d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: () => e[k]
19
- });
20
- }
21
- }
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
28
-
29
- const GridItem = React__namespace.forwardRef((props, ref) => {
30
- const { asChild = false, colSpan, colStart, colEnd, rowSpan, rowStart, rowEnd, ...rest } = props;
31
- const gridColumn = getGridLine(colSpan, colStart, colEnd);
32
- const gridRow = getGridLine(rowSpan, rowStart, rowEnd);
33
- return /* @__PURE__ */ jsxRuntime.jsx(Box.Box, { ref, asChild, gridColumn, gridRow, ...rest });
1
+ "use client";
2
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
3
+ const require_Box = require("../Box/Box.cjs");
4
+ let react = require("react");
5
+ react = require_runtime.__toESM(react);
6
+ let react_jsx_runtime = require("react/jsx-runtime");
7
+ //#region src/components/GridItem/GridItem.tsx
8
+ var GridItem = react.forwardRef((props, ref) => {
9
+ const { asChild = false, colSpan, colStart, colEnd, rowSpan, rowStart, rowEnd, ...rest } = props;
10
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
11
+ ref,
12
+ asChild,
13
+ gridColumn: getGridLine(colSpan, colStart, colEnd),
14
+ gridRow: getGridLine(rowSpan, rowStart, rowEnd),
15
+ ...rest
16
+ });
34
17
  });
35
18
  GridItem.displayName = "GridItem";
36
19
  function getGridLine(span, start, end) {
37
- if (span === "full") return "1 / -1";
38
- if (start !== void 0 && end !== void 0) return `${start} / ${end}`;
39
- if (start !== void 0) return `${start}`;
40
- if (end !== void 0) return `auto / ${end}`;
41
- if (span !== void 0) return `span ${span}`;
42
- return void 0;
20
+ if (span === "full") return "1 / -1";
21
+ if (start !== void 0 && end !== void 0) return `${start} / ${end}`;
22
+ if (start !== void 0) return `${start}`;
23
+ if (end !== void 0) return `auto / ${end}`;
24
+ if (span !== void 0) return `span ${span}`;
43
25
  }
44
-
26
+ //#endregion
45
27
  exports.GridItem = GridItem;
@@ -1,22 +1,25 @@
1
- 'use client';
2
- import { jsx } from 'react/jsx-runtime';
3
- import * as React from 'react';
4
- import { Box } from '../Box/Box.js';
5
-
6
- const GridItem = React.forwardRef((props, ref) => {
7
- const { asChild = false, colSpan, colStart, colEnd, rowSpan, rowStart, rowEnd, ...rest } = props;
8
- const gridColumn = getGridLine(colSpan, colStart, colEnd);
9
- const gridRow = getGridLine(rowSpan, rowStart, rowEnd);
10
- return /* @__PURE__ */ jsx(Box, { ref, asChild, gridColumn, gridRow, ...rest });
1
+ "use client";
2
+ import { Box } from "../Box/Box.js";
3
+ import * as React$1 from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/components/GridItem/GridItem.tsx
6
+ var GridItem = React$1.forwardRef((props, ref) => {
7
+ const { asChild = false, colSpan, colStart, colEnd, rowSpan, rowStart, rowEnd, ...rest } = props;
8
+ return /* @__PURE__ */ jsx(Box, {
9
+ ref,
10
+ asChild,
11
+ gridColumn: getGridLine(colSpan, colStart, colEnd),
12
+ gridRow: getGridLine(rowSpan, rowStart, rowEnd),
13
+ ...rest
14
+ });
11
15
  });
12
16
  GridItem.displayName = "GridItem";
13
17
  function getGridLine(span, start, end) {
14
- if (span === "full") return "1 / -1";
15
- if (start !== void 0 && end !== void 0) return `${start} / ${end}`;
16
- if (start !== void 0) return `${start}`;
17
- if (end !== void 0) return `auto / ${end}`;
18
- if (span !== void 0) return `span ${span}`;
19
- return void 0;
18
+ if (span === "full") return "1 / -1";
19
+ if (start !== void 0 && end !== void 0) return `${start} / ${end}`;
20
+ if (start !== void 0) return `${start}`;
21
+ if (end !== void 0) return `auto / ${end}`;
22
+ if (span !== void 0) return `span ${span}`;
20
23
  }
21
-
24
+ //#endregion
22
25
  export { GridItem };
@@ -1,9 +1,3 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
-
5
- const GridItem = require('./GridItem.cjs');
6
-
7
-
8
-
9
- exports.GridItem = GridItem.GridItem;
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_GridItem = require("./GridItem.cjs");
3
+ exports.GridItem = require_GridItem.GridItem;
@@ -1 +1,2 @@
1
- export { GridItem } from './GridItem.js';
1
+ import { GridItem } from "./GridItem.js";
2
+ export { GridItem };