@seed-design/react 0.0.1-rc.2 → 0.0.1-rc.3

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 (403) hide show
  1. package/lib/components/ActionButton/ActionButton.cjs +57 -0
  2. package/lib/components/ActionButton/ActionButton.d.ts +3 -3
  3. package/lib/components/ActionButton/ActionButton.js +34 -0
  4. package/lib/components/ActionButton/index.cjs +9 -0
  5. package/lib/components/ActionButton/index.d.ts +1 -1
  6. package/lib/components/ActionButton/index.js +1 -0
  7. package/lib/components/ActionChip/ActionChip.cjs +17 -0
  8. package/lib/components/ActionChip/ActionChip.d.ts +2 -2
  9. package/lib/components/ActionChip/ActionChip.js +13 -0
  10. package/lib/components/ActionChip/index.cjs +9 -0
  11. package/lib/components/ActionChip/index.d.ts +1 -1
  12. package/lib/components/ActionChip/index.js +1 -0
  13. package/lib/components/ActionSheet/ActionSheet.cjs +66 -0
  14. package/lib/components/ActionSheet/ActionSheet.d.ts +4 -4
  15. package/lib/components/ActionSheet/ActionSheet.js +52 -0
  16. package/lib/components/ActionSheet/ActionSheet.namespace.cjs +19 -0
  17. package/lib/components/ActionSheet/ActionSheet.namespace.d.ts +1 -1
  18. package/lib/components/ActionSheet/ActionSheet.namespace.js +1 -0
  19. package/lib/components/ActionSheet/index.cjs +21 -0
  20. package/lib/components/ActionSheet/index.d.ts +2 -2
  21. package/lib/components/ActionSheet/index.js +3 -0
  22. package/lib/components/Avatar/Avatar.cjs +62 -0
  23. package/lib/components/Avatar/Avatar.d.ts +4 -4
  24. package/lib/components/Avatar/Avatar.js +36 -0
  25. package/lib/components/Avatar/Avatar.namespace.cjs +13 -0
  26. package/lib/components/Avatar/Avatar.namespace.d.ts +1 -1
  27. package/lib/components/Avatar/Avatar.namespace.js +1 -0
  28. package/lib/components/Avatar/index.cjs +15 -0
  29. package/lib/components/Avatar/index.d.ts +2 -2
  30. package/lib/components/Avatar/index.js +3 -0
  31. package/lib/components/Badge/Badge.cjs +12 -0
  32. package/lib/components/Badge/Badge.d.ts +2 -2
  33. package/lib/components/Badge/Badge.js +8 -0
  34. package/lib/components/Badge/index.cjs +9 -0
  35. package/lib/components/Badge/index.d.ts +1 -1
  36. package/lib/components/Badge/index.js +1 -0
  37. package/lib/components/BottomSheet/BottomSheet.cjs +65 -0
  38. package/lib/components/BottomSheet/BottomSheet.d.ts +16 -15
  39. package/lib/components/BottomSheet/BottomSheet.d.ts.map +1 -1
  40. package/lib/components/BottomSheet/BottomSheet.js +51 -0
  41. package/lib/components/BottomSheet/BottomSheet.namespace.cjs +19 -0
  42. package/lib/components/BottomSheet/BottomSheet.namespace.d.ts +1 -1
  43. package/lib/components/BottomSheet/BottomSheet.namespace.js +1 -0
  44. package/lib/components/BottomSheet/index.cjs +21 -0
  45. package/lib/components/BottomSheet/index.d.ts +2 -2
  46. package/lib/components/BottomSheet/index.js +3 -0
  47. package/lib/components/Box/Box.cjs +35 -0
  48. package/lib/components/Box/Box.d.ts +1 -1
  49. package/lib/components/Box/Box.js +12 -0
  50. package/lib/components/Box/index.cjs +9 -0
  51. package/lib/components/Box/index.d.ts +1 -1
  52. package/lib/components/Box/index.js +1 -0
  53. package/lib/components/Callout/Callout.cjs +38 -0
  54. package/lib/components/Callout/Callout.d.ts +3 -3
  55. package/lib/components/Callout/Callout.js +29 -0
  56. package/lib/components/Callout/Callout.namespace.cjs +14 -0
  57. package/lib/components/Callout/Callout.namespace.d.ts +1 -1
  58. package/lib/components/Callout/Callout.namespace.js +1 -0
  59. package/lib/components/Callout/index.cjs +16 -0
  60. package/lib/components/Callout/index.d.ts +2 -2
  61. package/lib/components/Callout/index.js +3 -0
  62. package/lib/components/Celcius/Celcius.cjs +9 -0
  63. package/lib/components/Celcius/Celcius.js +5 -0
  64. package/lib/components/Celcius/index.cjs +9 -0
  65. package/lib/components/Celcius/index.d.ts +1 -1
  66. package/lib/components/Celcius/index.js +1 -0
  67. package/lib/components/Checkbox/Checkbox.cjs +61 -0
  68. package/lib/components/Checkbox/Checkbox.d.ts +9 -8
  69. package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
  70. package/lib/components/Checkbox/Checkbox.js +53 -0
  71. package/lib/components/Checkbox/Checkbox.namespace.cjs +13 -0
  72. package/lib/components/Checkbox/Checkbox.namespace.d.ts +1 -1
  73. package/lib/components/Checkbox/Checkbox.namespace.js +1 -0
  74. package/lib/components/Checkbox/index.cjs +15 -0
  75. package/lib/components/Checkbox/index.d.ts +2 -2
  76. package/lib/components/Checkbox/index.js +3 -0
  77. package/lib/components/ChipTabs/ChipTabs.cjs +40 -0
  78. package/lib/components/ChipTabs/ChipTabs.d.ts +9 -8
  79. package/lib/components/ChipTabs/ChipTabs.d.ts.map +1 -1
  80. package/lib/components/ChipTabs/ChipTabs.js +31 -0
  81. package/lib/components/ChipTabs/ChipTabs.namespace.cjs +14 -0
  82. package/lib/components/ChipTabs/ChipTabs.namespace.d.ts +1 -1
  83. package/lib/components/ChipTabs/ChipTabs.namespace.js +1 -0
  84. package/lib/components/ChipTabs/index.cjs +16 -0
  85. package/lib/components/ChipTabs/index.d.ts +2 -2
  86. package/lib/components/ChipTabs/index.js +3 -0
  87. package/lib/components/Columns/Columns.cjs +58 -0
  88. package/lib/components/Columns/Columns.d.ts +1 -1
  89. package/lib/components/Columns/Columns.js +34 -0
  90. package/lib/components/Columns/index.cjs +10 -0
  91. package/lib/components/Columns/index.d.ts +1 -1
  92. package/lib/components/Columns/index.js +1 -0
  93. package/lib/components/ConsistentWidth/ConsistentWidth.cjs +23 -0
  94. package/lib/components/ConsistentWidth/ConsistentWidth.d.ts +3 -2
  95. package/lib/components/ConsistentWidth/ConsistentWidth.d.ts.map +1 -1
  96. package/lib/components/ConsistentWidth/ConsistentWidth.js +19 -0
  97. package/lib/components/ConsistentWidth/index.cjs +9 -0
  98. package/lib/components/ConsistentWidth/index.d.ts +1 -1
  99. package/lib/components/ConsistentWidth/index.js +1 -0
  100. package/lib/components/ControlChip/ControlChip.cjs +16 -0
  101. package/lib/components/ControlChip/ControlChip.d.ts +2 -2
  102. package/lib/components/ControlChip/ControlChip.js +12 -0
  103. package/lib/components/ControlChip/index.cjs +9 -0
  104. package/lib/components/ControlChip/index.d.ts +1 -1
  105. package/lib/components/ControlChip/index.js +1 -0
  106. package/lib/components/Count/Count.cjs +15 -0
  107. package/lib/components/Count/Count.d.ts +2 -1
  108. package/lib/components/Count/Count.d.ts.map +1 -1
  109. package/lib/components/Count/Count.js +11 -0
  110. package/lib/components/Count/index.cjs +9 -0
  111. package/lib/components/Count/index.d.ts +1 -1
  112. package/lib/components/Count/index.d.ts.map +1 -1
  113. package/lib/components/Count/index.js +1 -0
  114. package/lib/components/Dialog/Dialog.cjs +58 -0
  115. package/lib/components/Dialog/Dialog.d.ts +14 -13
  116. package/lib/components/Dialog/Dialog.d.ts.map +1 -1
  117. package/lib/components/Dialog/Dialog.js +45 -0
  118. package/lib/components/Dialog/Dialog.namespace.cjs +18 -0
  119. package/lib/components/Dialog/Dialog.namespace.d.ts +1 -1
  120. package/lib/components/Dialog/Dialog.namespace.js +1 -0
  121. package/lib/components/Dialog/index.cjs +20 -0
  122. package/lib/components/Dialog/index.d.ts +2 -2
  123. package/lib/components/Dialog/index.js +3 -0
  124. package/lib/components/ExtendedActionSheet/ExtendedActionSheet.cjs +53 -0
  125. package/lib/components/ExtendedActionSheet/ExtendedActionSheet.d.ts +4 -4
  126. package/lib/components/ExtendedActionSheet/ExtendedActionSheet.js +38 -0
  127. package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.cjs +20 -0
  128. package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.d.ts +1 -1
  129. package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.js +1 -0
  130. package/lib/components/ExtendedActionSheet/index.cjs +22 -0
  131. package/lib/components/ExtendedActionSheet/index.d.ts +2 -2
  132. package/lib/components/ExtendedActionSheet/index.js +3 -0
  133. package/lib/components/ExtendedFab/ExtendedFab.cjs +21 -0
  134. package/lib/components/ExtendedFab/ExtendedFab.d.ts +4 -3
  135. package/lib/components/ExtendedFab/ExtendedFab.d.ts.map +1 -1
  136. package/lib/components/ExtendedFab/ExtendedFab.js +17 -0
  137. package/lib/components/ExtendedFab/index.cjs +9 -0
  138. package/lib/components/ExtendedFab/index.d.ts +1 -1
  139. package/lib/components/ExtendedFab/index.js +1 -0
  140. package/lib/components/Fab/Fab.cjs +12 -0
  141. package/lib/components/Fab/Fab.d.ts +2 -2
  142. package/lib/components/Fab/Fab.js +8 -0
  143. package/lib/components/Fab/index.cjs +9 -0
  144. package/lib/components/Fab/index.d.ts +1 -1
  145. package/lib/components/Fab/index.js +1 -0
  146. package/lib/components/Flex/Flex.cjs +33 -0
  147. package/lib/components/Flex/Flex.d.ts +1 -1
  148. package/lib/components/Flex/Flex.js +10 -0
  149. package/lib/components/Flex/index.cjs +9 -0
  150. package/lib/components/Flex/index.d.ts +1 -1
  151. package/lib/components/Flex/index.js +1 -0
  152. package/lib/components/HelpBubble/HelpBubble.cjs +93 -0
  153. package/lib/components/HelpBubble/HelpBubble.d.ts +16 -15
  154. package/lib/components/HelpBubble/HelpBubble.d.ts.map +1 -1
  155. package/lib/components/HelpBubble/HelpBubble.js +79 -0
  156. package/lib/components/HelpBubble/HelpBubble.namespace.cjs +19 -0
  157. package/lib/components/HelpBubble/HelpBubble.namespace.d.ts +1 -1
  158. package/lib/components/HelpBubble/HelpBubble.namespace.js +1 -0
  159. package/lib/components/HelpBubble/index.cjs +21 -0
  160. package/lib/components/HelpBubble/index.d.ts +2 -2
  161. package/lib/components/HelpBubble/index.js +3 -0
  162. package/lib/components/Icon/Icon.cjs +118 -0
  163. package/lib/components/Icon/Icon.d.ts +5 -4
  164. package/lib/components/Icon/Icon.d.ts.map +1 -1
  165. package/lib/components/Icon/Icon.js +110 -0
  166. package/lib/components/Icon/index.cjs +11 -0
  167. package/lib/components/Icon/index.d.ts +1 -1
  168. package/lib/components/Icon/index.d.ts.map +1 -1
  169. package/lib/components/Icon/index.js +1 -0
  170. package/lib/components/IdentityPlaceholder/IdentityPlaceholder.cjs +62 -0
  171. package/lib/components/IdentityPlaceholder/IdentityPlaceholder.d.ts +2 -2
  172. package/lib/components/IdentityPlaceholder/IdentityPlaceholder.js +38 -0
  173. package/lib/components/IdentityPlaceholder/IdentityPlaceholder.namespace.cjs +10 -0
  174. package/lib/components/IdentityPlaceholder/IdentityPlaceholder.namespace.d.ts +1 -1
  175. package/lib/components/IdentityPlaceholder/IdentityPlaceholder.namespace.js +1 -0
  176. package/lib/components/IdentityPlaceholder/index.cjs +12 -0
  177. package/lib/components/IdentityPlaceholder/index.d.ts +2 -2
  178. package/lib/components/IdentityPlaceholder/index.js +3 -0
  179. package/lib/components/Inline/Inline.cjs +43 -0
  180. package/lib/components/Inline/Inline.d.ts +1 -1
  181. package/lib/components/Inline/Inline.js +20 -0
  182. package/lib/components/Inline/index.cjs +9 -0
  183. package/lib/components/Inline/index.d.ts +1 -1
  184. package/lib/components/Inline/index.js +1 -0
  185. package/lib/components/InlineBanner/InlineBanner.cjs +41 -0
  186. package/lib/components/InlineBanner/InlineBanner.d.ts +3 -3
  187. package/lib/components/InlineBanner/InlineBanner.js +32 -0
  188. package/lib/components/InlineBanner/InlineBanner.namespace.cjs +14 -0
  189. package/lib/components/InlineBanner/InlineBanner.namespace.d.ts +1 -1
  190. package/lib/components/InlineBanner/InlineBanner.namespace.js +1 -0
  191. package/lib/components/InlineBanner/index.cjs +16 -0
  192. package/lib/components/InlineBanner/index.d.ts +2 -2
  193. package/lib/components/InlineBanner/index.js +3 -0
  194. package/lib/components/LinkContent/LinkContent.cjs +16 -0
  195. package/lib/components/LinkContent/LinkContent.d.ts +8 -0
  196. package/lib/components/LinkContent/LinkContent.d.ts.map +1 -0
  197. package/lib/components/LinkContent/LinkContent.js +12 -0
  198. package/lib/components/LinkContent/index.cjs +9 -0
  199. package/lib/components/LinkContent/index.d.ts +2 -0
  200. package/lib/components/LinkContent/index.d.ts.map +1 -0
  201. package/lib/components/LinkContent/index.js +1 -0
  202. package/lib/components/LoadingIndicator/LoadingIndicator.cjs +27 -0
  203. package/lib/components/LoadingIndicator/LoadingIndicator.d.ts +2 -1
  204. package/lib/components/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
  205. package/lib/components/LoadingIndicator/LoadingIndicator.js +23 -0
  206. package/lib/components/LoadingIndicator/index.cjs +9 -0
  207. package/lib/components/LoadingIndicator/index.d.ts +1 -1
  208. package/lib/components/LoadingIndicator/index.js +1 -0
  209. package/lib/components/LoadingIndicator/usePendingButton.cjs +51 -0
  210. package/lib/components/LoadingIndicator/usePendingButton.js +26 -0
  211. package/lib/components/MannerTempBadge/MannerTempBadge.cjs +15 -0
  212. package/lib/components/MannerTempBadge/MannerTempBadge.d.ts +2 -2
  213. package/lib/components/MannerTempBadge/MannerTempBadge.js +11 -0
  214. package/lib/components/MannerTempBadge/index.cjs +9 -0
  215. package/lib/components/MannerTempBadge/index.d.ts +1 -1
  216. package/lib/components/MannerTempBadge/index.js +1 -0
  217. package/lib/components/ProgressCircle/ProgressCircle.cjs +25 -0
  218. package/lib/components/ProgressCircle/ProgressCircle.d.ts +6 -5
  219. package/lib/components/ProgressCircle/ProgressCircle.d.ts.map +1 -1
  220. package/lib/components/ProgressCircle/ProgressCircle.js +19 -0
  221. package/lib/components/ProgressCircle/ProgressCircle.namespace.cjs +11 -0
  222. package/lib/components/ProgressCircle/ProgressCircle.namespace.d.ts +1 -1
  223. package/lib/components/ProgressCircle/ProgressCircle.namespace.js +1 -0
  224. package/lib/components/ProgressCircle/index.cjs +13 -0
  225. package/lib/components/ProgressCircle/index.d.ts +2 -2
  226. package/lib/components/ProgressCircle/index.js +3 -0
  227. package/lib/components/PullToRefresh/PullToRefresh.cjs +22 -0
  228. package/lib/components/PullToRefresh/PullToRefresh.d.ts +6 -5
  229. package/lib/components/PullToRefresh/PullToRefresh.d.ts.map +1 -1
  230. package/lib/components/PullToRefresh/PullToRefresh.js +16 -0
  231. package/lib/components/PullToRefresh/PullToRefresh.namespace.cjs +11 -0
  232. package/lib/components/PullToRefresh/PullToRefresh.namespace.d.ts +1 -1
  233. package/lib/components/PullToRefresh/PullToRefresh.namespace.js +1 -0
  234. package/lib/components/PullToRefresh/index.cjs +13 -0
  235. package/lib/components/PullToRefresh/index.d.ts +2 -2
  236. package/lib/components/PullToRefresh/index.js +3 -0
  237. package/lib/components/ReactionButton/ReactionButton.cjs +50 -0
  238. package/lib/components/ReactionButton/ReactionButton.d.ts +3 -3
  239. package/lib/components/ReactionButton/ReactionButton.js +27 -0
  240. package/lib/components/ReactionButton/index.cjs +9 -0
  241. package/lib/components/ReactionButton/index.d.ts +1 -1
  242. package/lib/components/ReactionButton/index.js +1 -0
  243. package/lib/components/SegmentedControl/SegmentedControl.cjs +25 -0
  244. package/lib/components/SegmentedControl/SegmentedControl.d.ts +8 -7
  245. package/lib/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  246. package/lib/components/SegmentedControl/SegmentedControl.js +18 -0
  247. package/lib/components/SegmentedControl/SegmentedControl.namespace.cjs +12 -0
  248. package/lib/components/SegmentedControl/SegmentedControl.namespace.d.ts +1 -1
  249. package/lib/components/SegmentedControl/SegmentedControl.namespace.js +1 -0
  250. package/lib/components/SegmentedControl/index.cjs +14 -0
  251. package/lib/components/SegmentedControl/index.d.ts +2 -2
  252. package/lib/components/SegmentedControl/index.js +3 -0
  253. package/lib/components/SelectBox/CheckSelectBox.cjs +52 -0
  254. package/lib/components/SelectBox/CheckSelectBox.d.ts +12 -11
  255. package/lib/components/SelectBox/CheckSelectBox.d.ts.map +1 -1
  256. package/lib/components/SelectBox/CheckSelectBox.js +41 -0
  257. package/lib/components/SelectBox/CheckSelectBox.namespace.cjs +16 -0
  258. package/lib/components/SelectBox/CheckSelectBox.namespace.d.ts +1 -1
  259. package/lib/components/SelectBox/CheckSelectBox.namespace.js +1 -0
  260. package/lib/components/SelectBox/RadioSelectBox.cjs +50 -0
  261. package/lib/components/SelectBox/RadioSelectBox.d.ts +12 -11
  262. package/lib/components/SelectBox/RadioSelectBox.d.ts.map +1 -1
  263. package/lib/components/SelectBox/RadioSelectBox.js +39 -0
  264. package/lib/components/SelectBox/RadioSelectBox.namespace.cjs +16 -0
  265. package/lib/components/SelectBox/RadioSelectBox.namespace.d.ts +1 -1
  266. package/lib/components/SelectBox/RadioSelectBox.namespace.js +1 -0
  267. package/lib/components/SelectBox/index.cjs +29 -0
  268. package/lib/components/SelectBox/index.d.ts +4 -4
  269. package/lib/components/SelectBox/index.js +6 -0
  270. package/lib/components/Skeleton/Skeleton.cjs +16 -0
  271. package/lib/components/Skeleton/Skeleton.d.ts +3 -3
  272. package/lib/components/Skeleton/Skeleton.js +12 -0
  273. package/lib/components/Skeleton/index.cjs +9 -0
  274. package/lib/components/Skeleton/index.d.ts +1 -1
  275. package/lib/components/Skeleton/index.js +1 -0
  276. package/lib/components/Snackbar/Snackbar.cjs +64 -0
  277. package/lib/components/Snackbar/Snackbar.d.ts +13 -12
  278. package/lib/components/Snackbar/Snackbar.d.ts.map +1 -1
  279. package/lib/components/Snackbar/Snackbar.js +52 -0
  280. package/lib/components/Snackbar/Snackbar.namespace.cjs +17 -0
  281. package/lib/components/Snackbar/Snackbar.namespace.d.ts +1 -1
  282. package/lib/components/Snackbar/Snackbar.namespace.js +1 -0
  283. package/lib/components/Snackbar/index.cjs +26 -0
  284. package/lib/components/Snackbar/index.d.ts +4 -4
  285. package/lib/components/Snackbar/index.js +5 -0
  286. package/lib/components/Snackbar/useSnackbarAdapter.cjs +28 -0
  287. package/lib/components/Snackbar/useSnackbarAdapter.d.ts +1 -1
  288. package/lib/components/Snackbar/useSnackbarAdapter.js +24 -0
  289. package/lib/components/Stack/Stack.cjs +32 -0
  290. package/lib/components/Stack/Stack.d.ts +1 -1
  291. package/lib/components/Stack/Stack.js +9 -0
  292. package/lib/components/Stack/index.cjs +9 -0
  293. package/lib/components/Stack/index.d.ts +1 -1
  294. package/lib/components/Stack/index.js +1 -0
  295. package/lib/components/Switch/Switch.cjs +35 -0
  296. package/lib/components/Switch/Switch.d.ts +9 -8
  297. package/lib/components/Switch/Switch.d.ts.map +1 -1
  298. package/lib/components/Switch/Switch.js +27 -0
  299. package/lib/components/Switch/Switch.namespace.cjs +13 -0
  300. package/lib/components/Switch/Switch.namespace.d.ts +1 -1
  301. package/lib/components/Switch/Switch.namespace.js +1 -0
  302. package/lib/components/Switch/index.cjs +15 -0
  303. package/lib/components/Switch/index.d.ts +2 -2
  304. package/lib/components/Switch/index.js +3 -0
  305. package/lib/components/Tabs/Tabs.cjs +49 -0
  306. package/lib/components/Tabs/Tabs.d.ts +4 -4
  307. package/lib/components/Tabs/Tabs.js +38 -0
  308. package/lib/components/Tabs/Tabs.namespace.cjs +16 -0
  309. package/lib/components/Tabs/Tabs.namespace.d.ts +1 -1
  310. package/lib/components/Tabs/Tabs.namespace.js +1 -0
  311. package/lib/components/Tabs/index.cjs +18 -0
  312. package/lib/components/Tabs/index.d.ts +2 -2
  313. package/lib/components/Tabs/index.js +3 -0
  314. package/lib/components/Text/Text.cjs +85 -0
  315. package/lib/components/Text/Text.d.ts +2 -2
  316. package/lib/components/Text/Text.js +81 -0
  317. package/lib/components/Text/index.cjs +9 -0
  318. package/lib/components/Text/index.d.ts +1 -1
  319. package/lib/components/Text/index.d.ts.map +1 -1
  320. package/lib/components/Text/index.js +1 -0
  321. package/lib/components/TextField/TextField.cjs +150 -0
  322. package/lib/components/TextField/TextField.d.ts +4 -4
  323. package/lib/components/TextField/TextField.js +129 -0
  324. package/lib/components/TextField/TextField.namespace.cjs +26 -0
  325. package/lib/components/TextField/TextField.namespace.d.ts +1 -1
  326. package/lib/components/TextField/TextField.namespace.d.ts.map +1 -1
  327. package/lib/components/TextField/TextField.namespace.js +1 -0
  328. package/lib/components/TextField/index.cjs +28 -0
  329. package/lib/components/TextField/index.d.ts +2 -2
  330. package/lib/components/TextField/index.d.ts.map +1 -1
  331. package/lib/components/TextField/index.js +3 -0
  332. package/lib/components/ToggleButton/ToggleButton.cjs +50 -0
  333. package/lib/components/ToggleButton/ToggleButton.d.ts +3 -3
  334. package/lib/components/ToggleButton/ToggleButton.js +27 -0
  335. package/lib/components/ToggleButton/index.cjs +9 -0
  336. package/lib/components/ToggleButton/index.d.ts +1 -1
  337. package/lib/components/ToggleButton/index.js +1 -0
  338. package/lib/components/VisuallyHidden/VisuallyHidden.cjs +15 -0
  339. package/lib/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
  340. package/lib/components/VisuallyHidden/VisuallyHidden.js +11 -0
  341. package/lib/components/VisuallyHidden/index.cjs +9 -0
  342. package/lib/components/VisuallyHidden/index.d.ts +1 -1
  343. package/lib/components/VisuallyHidden/index.d.ts.map +1 -1
  344. package/lib/components/VisuallyHidden/index.js +1 -0
  345. package/lib/components/index.cjs +274 -0
  346. package/lib/components/index.d.ts +42 -42
  347. package/lib/components/index.d.ts.map +1 -1
  348. package/lib/components/index.js +85 -0
  349. package/lib/components/private/Icon.cjs +15 -0
  350. package/lib/components/private/Icon.d.ts +2 -1
  351. package/lib/components/private/Icon.d.ts.map +1 -1
  352. package/lib/components/private/Icon.js +11 -0
  353. package/lib/components/private/useDismissible.cjs +78 -0
  354. package/lib/components/private/useDismissible.d.ts +1 -1
  355. package/lib/components/private/useDismissible.js +51 -0
  356. package/lib/index.cjs +274 -0
  357. package/lib/index.d.ts +1 -1
  358. package/lib/index.d.ts.map +1 -1
  359. package/lib/index.js +85 -2174
  360. package/lib/primitive.cjs +84 -0
  361. package/lib/primitive.d.ts +11 -11
  362. package/lib/primitive.js +11 -31
  363. package/lib/utils/createStyleContext.cjs +76 -0
  364. package/lib/utils/createStyleContext.js +72 -0
  365. package/lib/utils/createWithStateProps.cjs +23 -0
  366. package/lib/utils/createWithStateProps.d.ts +2 -1
  367. package/lib/utils/createWithStateProps.d.ts.map +1 -1
  368. package/lib/utils/createWithStateProps.js +19 -0
  369. package/lib/utils/styled.cjs +190 -0
  370. package/lib/utils/styled.d.ts +3 -2
  371. package/lib/utils/styled.d.ts.map +1 -1
  372. package/lib/utils/styled.js +185 -0
  373. package/lib/vars.cjs +14 -0
  374. package/lib/vars.d.ts +1 -1
  375. package/lib/vars.js +1 -21
  376. package/package.json +16 -25
  377. package/src/components/LinkContent/LinkContent.tsx +19 -0
  378. package/src/components/LinkContent/index.ts +4 -0
  379. package/src/components/index.ts +1 -1
  380. package/lib/components/LinkWithIcon/LinkWithIcon.d.ts +0 -8
  381. package/lib/components/LinkWithIcon/LinkWithIcon.d.ts.map +0 -1
  382. package/lib/components/LinkWithIcon/index.d.ts +0 -2
  383. package/lib/components/LinkWithIcon/index.d.ts.map +0 -1
  384. package/lib/index.js.map +0 -7
  385. package/lib/index.mjs +0 -2184
  386. package/lib/index.mjs.map +0 -7
  387. package/lib/primitive.js.map +0 -7
  388. package/lib/primitive.mjs +0 -13
  389. package/lib/primitive.mjs.map +0 -7
  390. package/lib/seed.css +0 -5017
  391. package/lib/seed.min.css +0 -1
  392. package/lib/vars.js.map +0 -7
  393. package/lib/vars.mjs +0 -3
  394. package/lib/vars.mjs.map +0 -7
  395. package/src/components/LinkWithIcon/LinkWithIcon.tsx +0 -22
  396. package/src/components/LinkWithIcon/index.ts +0 -4
  397. /package/src/components/Count/{index.tsx → index.ts} +0 -0
  398. /package/src/components/Icon/{index.tsx → index.ts} +0 -0
  399. /package/src/components/Text/{index.tsx → index.ts} +0 -0
  400. /package/src/components/TextField/{TextField.namespace.tsx → TextField.namespace.ts} +0 -0
  401. /package/src/components/TextField/{index.tsx → index.ts} +0 -0
  402. /package/src/components/VisuallyHidden/{index.tsx → index.ts} +0 -0
  403. /package/src/{index.tsx → index.ts} +0 -0
@@ -0,0 +1,57 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const jsxRuntime = require('react/jsx-runtime');
6
+ const actionButton = require('@seed-design/css/recipes/action-button');
7
+ const reactPrimitive = require('@seed-design/react-primitive');
8
+ const clsx = require('clsx');
9
+ const React = require('react');
10
+ const createStyleContext = require('../../utils/createStyleContext.cjs');
11
+ const usePendingButton = require('../LoadingIndicator/usePendingButton.cjs');
12
+ const Icon = require('../Icon/Icon.cjs');
13
+
14
+ function _interopNamespaceDefault(e) {
15
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
16
+ if (e) {
17
+ for (const k in e) {
18
+ if (k !== 'default') {
19
+ const d = Object.getOwnPropertyDescriptor(e, k);
20
+ Object.defineProperty(n, k, d.get ? d : {
21
+ enumerable: true,
22
+ get: () => e[k]
23
+ });
24
+ }
25
+ }
26
+ }
27
+ n.default = e;
28
+ return Object.freeze(n);
29
+ }
30
+
31
+ const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
32
+
33
+ const { ClassNamesProvider } = createStyleContext.createStyleContext(actionButton.actionButton);
34
+ const ActionButton = React__namespace.forwardRef(
35
+ ({ variant, size, loading = false, layout = "withText", className, children, ...otherProps }, ref) => {
36
+ const classNames = actionButton.actionButton({ variant, layout, size });
37
+ const api = usePendingButton.usePendingButton({ loading, disabled: otherProps.disabled });
38
+ if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) {
39
+ console.warn(
40
+ "When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided."
41
+ );
42
+ }
43
+ return /* @__PURE__ */ jsxRuntime.jsx(ClassNamesProvider, { value: classNames, children: /* @__PURE__ */ jsxRuntime.jsx(usePendingButton.PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(Icon.IconRequired, { enabled: layout === "iconOnly", children: /* @__PURE__ */ jsxRuntime.jsx(
44
+ reactPrimitive.Primitive.button,
45
+ {
46
+ ref,
47
+ className: clsx(classNames.root, className),
48
+ ...api.stateProps,
49
+ ...otherProps,
50
+ children
51
+ }
52
+ ) }) }) });
53
+ }
54
+ );
55
+ ActionButton.displayName = "ActionButton";
56
+
57
+ exports.ActionButton = ActionButton;
@@ -1,7 +1,7 @@
1
- import { type ActionButtonVariantProps } from "@seed-design/css/recipes/action-button";
2
- import { type PrimitiveProps } from "@seed-design/react-primitive";
1
+ import { ActionButtonVariantProps } from '@seed-design/css/recipes/action-button';
2
+ import { PrimitiveProps } from '@seed-design/react-primitive';
3
+ import { UsePendingButtonProps } from '../LoadingIndicator/usePendingButton';
3
4
  import * as React from "react";
4
- import { type UsePendingButtonProps } from "../LoadingIndicator/usePendingButton";
5
5
  export interface ActionButtonProps extends ActionButtonVariantProps, UsePendingButtonProps, PrimitiveProps, React.ButtonHTMLAttributes<HTMLButtonElement> {
6
6
  }
7
7
  export declare const ActionButton: React.ForwardRefExoticComponent<ActionButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,34 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { actionButton } from '@seed-design/css/recipes/action-button';
3
+ import { Primitive } from '@seed-design/react-primitive';
4
+ import clsx from 'clsx';
5
+ import * as React from 'react';
6
+ import { createStyleContext } from '../../utils/createStyleContext.js';
7
+ import { usePendingButton, PendingButtonProvider } from '../LoadingIndicator/usePendingButton.js';
8
+ import { IconRequired } from '../Icon/Icon.js';
9
+
10
+ const { ClassNamesProvider } = createStyleContext(actionButton);
11
+ const ActionButton = React.forwardRef(
12
+ ({ variant, size, loading = false, layout = "withText", className, children, ...otherProps }, ref) => {
13
+ const classNames = actionButton({ variant, layout, size });
14
+ const api = usePendingButton({ loading, disabled: otherProps.disabled });
15
+ if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) {
16
+ console.warn(
17
+ "When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided."
18
+ );
19
+ }
20
+ return /* @__PURE__ */ jsx(ClassNamesProvider, { value: classNames, children: /* @__PURE__ */ jsx(PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsx(IconRequired, { enabled: layout === "iconOnly", children: /* @__PURE__ */ jsx(
21
+ Primitive.button,
22
+ {
23
+ ref,
24
+ className: clsx(classNames.root, className),
25
+ ...api.stateProps,
26
+ ...otherProps,
27
+ children
28
+ }
29
+ ) }) }) });
30
+ }
31
+ );
32
+ ActionButton.displayName = "ActionButton";
33
+
34
+ export { ActionButton };
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const ActionButton = require('./ActionButton.cjs');
6
+
7
+
8
+
9
+ exports.ActionButton = ActionButton.ActionButton;
@@ -1,2 +1,2 @@
1
- export { ActionButton, type ActionButtonProps, } from "./ActionButton";
1
+ export { ActionButton, type ActionButtonProps, } from './ActionButton';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ export { ActionButton } from './ActionButton.js';
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const reactPrimitive = require('@seed-design/react-primitive');
6
+ const actionChip = require('@seed-design/css/recipes/action-chip');
7
+ const createStyleContext = require('../../utils/createStyleContext.cjs');
8
+ const Icon = require('../Icon/Icon.cjs');
9
+
10
+ const { withProvider } = createStyleContext.createStyleContext(actionChip.actionChip);
11
+ const ActionChip = Icon.withIconRequired(
12
+ withProvider(reactPrimitive.Primitive.button, "root"),
13
+ (props) => props.layout === "iconOnly"
14
+ );
15
+ ActionChip.displayName = "ActionChip";
16
+
17
+ exports.ActionChip = ActionChip;
@@ -1,5 +1,5 @@
1
- import { type PrimitiveProps } from "@seed-design/react-primitive";
2
- import { type ActionChipVariantProps } from "@seed-design/css/recipes/action-chip";
1
+ import { PrimitiveProps } from '@seed-design/react-primitive';
2
+ import { ActionChipVariantProps } from '@seed-design/css/recipes/action-chip';
3
3
  import type * as React from "react";
4
4
  export interface ActionChipProps extends ActionChipVariantProps, PrimitiveProps, React.ButtonHTMLAttributes<HTMLButtonElement> {
5
5
  }
@@ -0,0 +1,13 @@
1
+ import { Primitive } from '@seed-design/react-primitive';
2
+ import { actionChip } from '@seed-design/css/recipes/action-chip';
3
+ import { createStyleContext } from '../../utils/createStyleContext.js';
4
+ import { withIconRequired } from '../Icon/Icon.js';
5
+
6
+ const { withProvider } = createStyleContext(actionChip);
7
+ const ActionChip = withIconRequired(
8
+ withProvider(Primitive.button, "root"),
9
+ (props) => props.layout === "iconOnly"
10
+ );
11
+ ActionChip.displayName = "ActionChip";
12
+
13
+ export { ActionChip };
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const ActionChip = require('./ActionChip.cjs');
6
+
7
+
8
+
9
+ exports.ActionChip = ActionChip.ActionChip;
@@ -1,2 +1,2 @@
1
- export { ActionChip, type ActionChipProps, } from "./ActionChip";
1
+ export { ActionChip, type ActionChipProps, } from './ActionChip';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ export { ActionChip } from './ActionChip.js';
@@ -0,0 +1,66 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const reactDialog = require('@seed-design/react-dialog');
6
+ const reactPrimitive = require('@seed-design/react-primitive');
7
+ const actionSheet = require('@seed-design/css/recipes/action-sheet');
8
+ const actionSheetItem = require('@seed-design/css/recipes/action-sheet-item');
9
+ const createStyleContext = require('../../utils/createStyleContext.cjs');
10
+ const createWithStateProps = require('../../utils/createWithStateProps.cjs');
11
+
12
+ const { withRootProvider, withContext } = createStyleContext.createStyleContext(actionSheet.actionSheet);
13
+ const { withProvider: withItemProvider } = createStyleContext.createStyleContext(actionSheetItem.actionSheetItem);
14
+ const withStateProps = createWithStateProps.createWithStateProps([reactDialog.useDialogContext]);
15
+ const ActionSheetRoot = withRootProvider(reactDialog.Dialog.Root, {
16
+ defaultProps: {
17
+ lazyMount: true,
18
+ unmountOnExit: true
19
+ }
20
+ });
21
+ const ActionSheetTrigger = reactDialog.Dialog.Trigger;
22
+ const ActionSheetPositioner = withContext(
23
+ reactDialog.Dialog.Positioner,
24
+ "positioner"
25
+ );
26
+ const ActionSheetBackdrop = withContext(
27
+ reactDialog.Dialog.Backdrop,
28
+ "backdrop"
29
+ );
30
+ const ActionSheetContent = withContext(
31
+ reactDialog.Dialog.Content,
32
+ "content"
33
+ );
34
+ const ActionSheetHeader = withContext(
35
+ withStateProps(reactPrimitive.Primitive.div),
36
+ "header"
37
+ );
38
+ const ActionSheetTitle = withContext(
39
+ withStateProps(reactPrimitive.Primitive.h2),
40
+ "title"
41
+ );
42
+ const ActionSheetDescription = withContext(withStateProps(reactPrimitive.Primitive.p), "description");
43
+ const ActionSheetList = withContext(
44
+ withStateProps(reactPrimitive.Primitive.div),
45
+ "list"
46
+ );
47
+ const ActionSheetItem = withItemProvider(
48
+ withStateProps(reactPrimitive.Primitive.button),
49
+ "root"
50
+ );
51
+ const ActionSheetCloseButton = withContext(
52
+ reactDialog.Dialog.CloseButton,
53
+ "closeButton"
54
+ );
55
+
56
+ exports.ActionSheetBackdrop = ActionSheetBackdrop;
57
+ exports.ActionSheetCloseButton = ActionSheetCloseButton;
58
+ exports.ActionSheetContent = ActionSheetContent;
59
+ exports.ActionSheetDescription = ActionSheetDescription;
60
+ exports.ActionSheetHeader = ActionSheetHeader;
61
+ exports.ActionSheetItem = ActionSheetItem;
62
+ exports.ActionSheetList = ActionSheetList;
63
+ exports.ActionSheetPositioner = ActionSheetPositioner;
64
+ exports.ActionSheetRoot = ActionSheetRoot;
65
+ exports.ActionSheetTitle = ActionSheetTitle;
66
+ exports.ActionSheetTrigger = ActionSheetTrigger;
@@ -1,7 +1,7 @@
1
- import { Dialog as DialogPrimitive } from "@seed-design/react-dialog";
2
- import { type PrimitiveProps } from "@seed-design/react-primitive";
3
- import { type ActionSheetVariantProps } from "@seed-design/css/recipes/action-sheet";
4
- import { type ActionSheetItemVariantProps } from "@seed-design/css/recipes/action-sheet-item";
1
+ import { Dialog as DialogPrimitive } from '@seed-design/react-dialog';
2
+ import { PrimitiveProps } from '@seed-design/react-primitive';
3
+ import { ActionSheetVariantProps } from '@seed-design/css/recipes/action-sheet';
4
+ import { ActionSheetItemVariantProps } from '@seed-design/css/recipes/action-sheet-item';
5
5
  import type * as React from "react";
6
6
  export interface ActionSheetRootProps extends ActionSheetVariantProps, DialogPrimitive.RootProps {
7
7
  }
@@ -0,0 +1,52 @@
1
+ import { Dialog, useDialogContext } from '@seed-design/react-dialog';
2
+ import { Primitive } from '@seed-design/react-primitive';
3
+ import { actionSheet } from '@seed-design/css/recipes/action-sheet';
4
+ import { actionSheetItem } from '@seed-design/css/recipes/action-sheet-item';
5
+ import { createStyleContext } from '../../utils/createStyleContext.js';
6
+ import { createWithStateProps } from '../../utils/createWithStateProps.js';
7
+
8
+ const { withRootProvider, withContext } = createStyleContext(actionSheet);
9
+ const { withProvider: withItemProvider } = createStyleContext(actionSheetItem);
10
+ const withStateProps = createWithStateProps([useDialogContext]);
11
+ const ActionSheetRoot = withRootProvider(Dialog.Root, {
12
+ defaultProps: {
13
+ lazyMount: true,
14
+ unmountOnExit: true
15
+ }
16
+ });
17
+ const ActionSheetTrigger = Dialog.Trigger;
18
+ const ActionSheetPositioner = withContext(
19
+ Dialog.Positioner,
20
+ "positioner"
21
+ );
22
+ const ActionSheetBackdrop = withContext(
23
+ Dialog.Backdrop,
24
+ "backdrop"
25
+ );
26
+ const ActionSheetContent = withContext(
27
+ Dialog.Content,
28
+ "content"
29
+ );
30
+ const ActionSheetHeader = withContext(
31
+ withStateProps(Primitive.div),
32
+ "header"
33
+ );
34
+ const ActionSheetTitle = withContext(
35
+ withStateProps(Primitive.h2),
36
+ "title"
37
+ );
38
+ const ActionSheetDescription = withContext(withStateProps(Primitive.p), "description");
39
+ const ActionSheetList = withContext(
40
+ withStateProps(Primitive.div),
41
+ "list"
42
+ );
43
+ const ActionSheetItem = withItemProvider(
44
+ withStateProps(Primitive.button),
45
+ "root"
46
+ );
47
+ const ActionSheetCloseButton = withContext(
48
+ Dialog.CloseButton,
49
+ "closeButton"
50
+ );
51
+
52
+ export { ActionSheetBackdrop, ActionSheetCloseButton, ActionSheetContent, ActionSheetDescription, ActionSheetHeader, ActionSheetItem, ActionSheetList, ActionSheetPositioner, ActionSheetRoot, ActionSheetTitle, ActionSheetTrigger };
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const ActionSheet = require('./ActionSheet.cjs');
6
+
7
+
8
+
9
+ exports.Backdrop = ActionSheet.ActionSheetBackdrop;
10
+ exports.CloseButton = ActionSheet.ActionSheetCloseButton;
11
+ exports.Content = ActionSheet.ActionSheetContent;
12
+ exports.Description = ActionSheet.ActionSheetDescription;
13
+ exports.Header = ActionSheet.ActionSheetHeader;
14
+ exports.Item = ActionSheet.ActionSheetItem;
15
+ exports.List = ActionSheet.ActionSheetList;
16
+ exports.Positioner = ActionSheet.ActionSheetPositioner;
17
+ exports.Root = ActionSheet.ActionSheetRoot;
18
+ exports.Title = ActionSheet.ActionSheetTitle;
19
+ exports.Trigger = ActionSheet.ActionSheetTrigger;
@@ -1,2 +1,2 @@
1
- export { ActionSheetBackdrop as Backdrop, ActionSheetPositioner as Positioner, ActionSheetContent as Content, ActionSheetHeader as Header, ActionSheetRoot as Root, ActionSheetTitle as Title, ActionSheetDescription as Description, ActionSheetTrigger as Trigger, ActionSheetList as List, ActionSheetItem as Item, ActionSheetCloseButton as CloseButton, type ActionSheetBackdropProps as BackdropProps, type ActionSheetPositionerProps as PositionerProps, type ActionSheetContentProps as ContentProps, type ActionSheetHeaderProps as HeaderProps, type ActionSheetRootProps as RootProps, type ActionSheetTitleProps as TitleProps, type ActionSheetDescriptionProps as DescriptionProps, type ActionSheetTriggerProps as TriggerProps, type ActionSheetListProps as ListProps, type ActionSheetItemProps as ItemProps, type ActionSheetCloseButtonProps as CloseButtonProps, } from "./ActionSheet";
1
+ export { ActionSheetBackdrop as Backdrop, ActionSheetPositioner as Positioner, ActionSheetContent as Content, ActionSheetHeader as Header, ActionSheetRoot as Root, ActionSheetTitle as Title, ActionSheetDescription as Description, ActionSheetTrigger as Trigger, ActionSheetList as List, ActionSheetItem as Item, ActionSheetCloseButton as CloseButton, type ActionSheetBackdropProps as BackdropProps, type ActionSheetPositionerProps as PositionerProps, type ActionSheetContentProps as ContentProps, type ActionSheetHeaderProps as HeaderProps, type ActionSheetRootProps as RootProps, type ActionSheetTitleProps as TitleProps, type ActionSheetDescriptionProps as DescriptionProps, type ActionSheetTriggerProps as TriggerProps, type ActionSheetListProps as ListProps, type ActionSheetItemProps as ItemProps, type ActionSheetCloseButtonProps as CloseButtonProps, } from './ActionSheet';
2
2
  //# sourceMappingURL=ActionSheet.namespace.d.ts.map
@@ -0,0 +1 @@
1
+ export { ActionSheetBackdrop as Backdrop, ActionSheetCloseButton as CloseButton, ActionSheetContent as Content, ActionSheetDescription as Description, ActionSheetHeader as Header, ActionSheetItem as Item, ActionSheetList as List, ActionSheetPositioner as Positioner, ActionSheetRoot as Root, ActionSheetTitle as Title, ActionSheetTrigger as Trigger } from './ActionSheet.js';
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const ActionSheet = require('./ActionSheet.cjs');
6
+ const ActionSheet_namespace = require('./ActionSheet.namespace.cjs');
7
+
8
+
9
+
10
+ exports.ActionSheetBackdrop = ActionSheet.ActionSheetBackdrop;
11
+ exports.ActionSheetCloseButton = ActionSheet.ActionSheetCloseButton;
12
+ exports.ActionSheetContent = ActionSheet.ActionSheetContent;
13
+ exports.ActionSheetDescription = ActionSheet.ActionSheetDescription;
14
+ exports.ActionSheetHeader = ActionSheet.ActionSheetHeader;
15
+ exports.ActionSheetItem = ActionSheet.ActionSheetItem;
16
+ exports.ActionSheetList = ActionSheet.ActionSheetList;
17
+ exports.ActionSheetPositioner = ActionSheet.ActionSheetPositioner;
18
+ exports.ActionSheetRoot = ActionSheet.ActionSheetRoot;
19
+ exports.ActionSheetTitle = ActionSheet.ActionSheetTitle;
20
+ exports.ActionSheetTrigger = ActionSheet.ActionSheetTrigger;
21
+ exports.ActionSheet = ActionSheet_namespace;
@@ -1,3 +1,3 @@
1
- export { ActionSheetBackdrop, ActionSheetPositioner, ActionSheetContent, ActionSheetHeader, ActionSheetRoot, ActionSheetTitle, ActionSheetDescription, ActionSheetTrigger, ActionSheetList, ActionSheetItem, ActionSheetCloseButton, type ActionSheetBackdropProps, type ActionSheetPositionerProps, type ActionSheetContentProps, type ActionSheetHeaderProps, type ActionSheetRootProps, type ActionSheetTitleProps, type ActionSheetDescriptionProps, type ActionSheetTriggerProps, type ActionSheetListProps, type ActionSheetItemProps, type ActionSheetCloseButtonProps, } from "./ActionSheet";
2
- export * as ActionSheet from "./ActionSheet.namespace";
1
+ export { ActionSheetBackdrop, ActionSheetPositioner, ActionSheetContent, ActionSheetHeader, ActionSheetRoot, ActionSheetTitle, ActionSheetDescription, ActionSheetTrigger, ActionSheetList, ActionSheetItem, ActionSheetCloseButton, type ActionSheetBackdropProps, type ActionSheetPositionerProps, type ActionSheetContentProps, type ActionSheetHeaderProps, type ActionSheetRootProps, type ActionSheetTitleProps, type ActionSheetDescriptionProps, type ActionSheetTriggerProps, type ActionSheetListProps, type ActionSheetItemProps, type ActionSheetCloseButtonProps, } from './ActionSheet';
2
+ export * as ActionSheet from './ActionSheet.namespace';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,3 @@
1
+ export { ActionSheetBackdrop, ActionSheetCloseButton, ActionSheetContent, ActionSheetDescription, ActionSheetHeader, ActionSheetItem, ActionSheetList, ActionSheetPositioner, ActionSheetRoot, ActionSheetTitle, ActionSheetTrigger } from './ActionSheet.js';
2
+ import * as ActionSheet_namespace from './ActionSheet.namespace.js';
3
+ export { ActionSheet_namespace as ActionSheet };
@@ -0,0 +1,62 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const jsxRuntime = require('react/jsx-runtime');
6
+ const reactAvatar = require('@seed-design/react-avatar');
7
+ const reactPrimitive = require('@seed-design/react-primitive');
8
+ const avatar = require('@seed-design/css/recipes/avatar');
9
+ const avatarStack = require('@seed-design/css/recipes/avatar-stack');
10
+ const clsx = require('clsx');
11
+ const React = require('react');
12
+ const createStyleContext = require('../../utils/createStyleContext.cjs');
13
+
14
+ function _interopNamespaceDefault(e) {
15
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
16
+ if (e) {
17
+ for (const k in e) {
18
+ if (k !== 'default') {
19
+ const d = Object.getOwnPropertyDescriptor(e, k);
20
+ Object.defineProperty(n, k, d.get ? d : {
21
+ enumerable: true,
22
+ get: () => e[k]
23
+ });
24
+ }
25
+ }
26
+ }
27
+ n.default = e;
28
+ return Object.freeze(n);
29
+ }
30
+
31
+ const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
32
+
33
+ const { PropsProvider, withProvider, withContext } = createStyleContext.createStyleContext(avatar.avatar);
34
+ const AvatarRoot = withProvider(
35
+ reactAvatar.Avatar.Root,
36
+ "root"
37
+ );
38
+ const AvatarImage = withContext(
39
+ reactAvatar.Avatar.Image,
40
+ "image"
41
+ );
42
+ const AvatarFallback = withContext(
43
+ reactAvatar.Avatar.Fallback,
44
+ "fallback"
45
+ );
46
+ const AvatarBadge = withContext(reactPrimitive.Primitive.div, "badge");
47
+ const AvatarStack = React__namespace.forwardRef(
48
+ ({ className, children, size, ...otherProps }, ref) => {
49
+ const classNames = avatarStack.avatarStack({ size });
50
+ const avatars = React__namespace.Children.toArray(children);
51
+ return /* @__PURE__ */ jsxRuntime.jsx(PropsProvider, { value: React.useMemo(() => ({ size }), [size]), children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: clsx(classNames.root, className), ...otherProps, children: avatars.map((avatar2, index) => (
52
+ // biome-ignore lint/suspicious/noArrayIndexKey: There is no unique key for each child
53
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames.item, children: avatar2 }, index)
54
+ )) }) });
55
+ }
56
+ );
57
+
58
+ exports.AvatarBadge = AvatarBadge;
59
+ exports.AvatarFallback = AvatarFallback;
60
+ exports.AvatarImage = AvatarImage;
61
+ exports.AvatarRoot = AvatarRoot;
62
+ exports.AvatarStack = AvatarStack;
@@ -1,7 +1,7 @@
1
- import { Avatar as AvatarPrimitive } from "@seed-design/react-avatar";
2
- import { type PrimitiveProps } from "@seed-design/react-primitive";
3
- import { type AvatarVariantProps } from "@seed-design/css/recipes/avatar";
4
- import { type AvatarStackVariantProps } from "@seed-design/css/recipes/avatar-stack";
1
+ import { Avatar as AvatarPrimitive } from '@seed-design/react-avatar';
2
+ import { PrimitiveProps } from '@seed-design/react-primitive';
3
+ import { AvatarVariantProps } from '@seed-design/css/recipes/avatar';
4
+ import { AvatarStackVariantProps } from '@seed-design/css/recipes/avatar-stack';
5
5
  import * as React from "react";
6
6
  export interface AvatarRootProps extends AvatarVariantProps, AvatarPrimitive.RootProps {
7
7
  }
@@ -0,0 +1,36 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { Avatar } from '@seed-design/react-avatar';
3
+ import { Primitive } from '@seed-design/react-primitive';
4
+ import { avatar } from '@seed-design/css/recipes/avatar';
5
+ import { avatarStack } from '@seed-design/css/recipes/avatar-stack';
6
+ import clsx from 'clsx';
7
+ import * as React from 'react';
8
+ import { useMemo } from 'react';
9
+ import { createStyleContext } from '../../utils/createStyleContext.js';
10
+
11
+ const { PropsProvider, withProvider, withContext } = createStyleContext(avatar);
12
+ const AvatarRoot = withProvider(
13
+ Avatar.Root,
14
+ "root"
15
+ );
16
+ const AvatarImage = withContext(
17
+ Avatar.Image,
18
+ "image"
19
+ );
20
+ const AvatarFallback = withContext(
21
+ Avatar.Fallback,
22
+ "fallback"
23
+ );
24
+ const AvatarBadge = withContext(Primitive.div, "badge");
25
+ const AvatarStack = React.forwardRef(
26
+ ({ className, children, size, ...otherProps }, ref) => {
27
+ const classNames = avatarStack({ size });
28
+ const avatars = React.Children.toArray(children);
29
+ return /* @__PURE__ */ jsx(PropsProvider, { value: useMemo(() => ({ size }), [size]), children: /* @__PURE__ */ jsx("div", { ref, className: clsx(classNames.root, className), ...otherProps, children: avatars.map((avatar2, index) => (
30
+ // biome-ignore lint/suspicious/noArrayIndexKey: There is no unique key for each child
31
+ /* @__PURE__ */ jsx("div", { className: classNames.item, children: avatar2 }, index)
32
+ )) }) });
33
+ }
34
+ );
35
+
36
+ export { AvatarBadge, AvatarFallback, AvatarImage, AvatarRoot, AvatarStack };
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const Avatar = require('./Avatar.cjs');
6
+
7
+
8
+
9
+ exports.Badge = Avatar.AvatarBadge;
10
+ exports.Fallback = Avatar.AvatarFallback;
11
+ exports.Image = Avatar.AvatarImage;
12
+ exports.Root = Avatar.AvatarRoot;
13
+ exports.Stack = Avatar.AvatarStack;
@@ -1,2 +1,2 @@
1
- export { AvatarBadge as Badge, AvatarFallback as Fallback, AvatarImage as Image, AvatarRoot as Root, AvatarStack as Stack, type AvatarBadgeProps as BadgeProps, type AvatarFallbackProps as FallbackProps, type AvatarImageProps as ImageProps, type AvatarRootProps as RootProps, type AvatarStackProps as StackProps, } from "./Avatar";
1
+ export { AvatarBadge as Badge, AvatarFallback as Fallback, AvatarImage as Image, AvatarRoot as Root, AvatarStack as Stack, type AvatarBadgeProps as BadgeProps, type AvatarFallbackProps as FallbackProps, type AvatarImageProps as ImageProps, type AvatarRootProps as RootProps, type AvatarStackProps as StackProps, } from './Avatar';
2
2
  //# sourceMappingURL=Avatar.namespace.d.ts.map
@@ -0,0 +1 @@
1
+ export { AvatarBadge as Badge, AvatarFallback as Fallback, AvatarImage as Image, AvatarRoot as Root, AvatarStack as Stack } from './Avatar.js';
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const Avatar = require('./Avatar.cjs');
6
+ const Avatar_namespace = require('./Avatar.namespace.cjs');
7
+
8
+
9
+
10
+ exports.AvatarBadge = Avatar.AvatarBadge;
11
+ exports.AvatarFallback = Avatar.AvatarFallback;
12
+ exports.AvatarImage = Avatar.AvatarImage;
13
+ exports.AvatarRoot = Avatar.AvatarRoot;
14
+ exports.AvatarStack = Avatar.AvatarStack;
15
+ exports.Avatar = Avatar_namespace;
@@ -1,3 +1,3 @@
1
- export { AvatarBadge, AvatarFallback, AvatarImage, AvatarRoot, AvatarStack, type AvatarBadgeProps, type AvatarFallbackProps, type AvatarImageProps, type AvatarRootProps, type AvatarStackProps, } from "./Avatar";
2
- export * as Avatar from "./Avatar.namespace";
1
+ export { AvatarBadge, AvatarFallback, AvatarImage, AvatarRoot, AvatarStack, type AvatarBadgeProps, type AvatarFallbackProps, type AvatarImageProps, type AvatarRootProps, type AvatarStackProps, } from './Avatar';
2
+ export * as Avatar from './Avatar.namespace';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,3 @@
1
+ export { AvatarBadge, AvatarFallback, AvatarImage, AvatarRoot, AvatarStack } from './Avatar.js';
2
+ import * as Avatar_namespace from './Avatar.namespace.js';
3
+ export { Avatar_namespace as Avatar };
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const reactPrimitive = require('@seed-design/react-primitive');
6
+ const badge = require('@seed-design/css/recipes/badge');
7
+ const createStyleContext = require('../../utils/createStyleContext.cjs');
8
+
9
+ const { withProvider } = createStyleContext.createStyleContext(badge.badge);
10
+ const Badge = withProvider(reactPrimitive.Primitive.span, "root");
11
+
12
+ exports.Badge = Badge;
@@ -1,5 +1,5 @@
1
- import { type PrimitiveProps } from "@seed-design/react-primitive";
2
- import { type BadgeVariantProps } from "@seed-design/css/recipes/badge";
1
+ import { PrimitiveProps } from '@seed-design/react-primitive';
2
+ import { BadgeVariantProps } from '@seed-design/css/recipes/badge';
3
3
  import type * as React from "react";
4
4
  export interface BadgeProps extends BadgeVariantProps, PrimitiveProps, React.HTMLAttributes<HTMLSpanElement> {
5
5
  }
@@ -0,0 +1,8 @@
1
+ import { Primitive } from '@seed-design/react-primitive';
2
+ import { badge } from '@seed-design/css/recipes/badge';
3
+ import { createStyleContext } from '../../utils/createStyleContext.js';
4
+
5
+ const { withProvider } = createStyleContext(badge);
6
+ const Badge = withProvider(Primitive.span, "root");
7
+
8
+ export { Badge };
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const Badge = require('./Badge.cjs');
6
+
7
+
8
+
9
+ exports.Badge = Badge.Badge;
@@ -1,2 +1,2 @@
1
- export { Badge, type BadgeProps } from "./Badge";
1
+ export { Badge, type BadgeProps } from './Badge';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ export { Badge } from './Badge.js';