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

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,28 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const reactSnackbar = require('@seed-design/react-snackbar');
6
+ const React = require('react');
7
+
8
+ function useSnackbarAdapter() {
9
+ const api = reactSnackbar.useSnackbarContext();
10
+ const adapter = React.useMemo(
11
+ () => ({
12
+ visible: api.visible,
13
+ create: (options) => {
14
+ return api.create({
15
+ timeout: options.timeout ?? 5e3,
16
+ removeDelay: options.removeDelay ?? 200,
17
+ onClose: options.onClose,
18
+ render: options.render
19
+ });
20
+ },
21
+ dismiss: api.dismiss
22
+ }),
23
+ [api]
24
+ );
25
+ return adapter;
26
+ }
27
+
28
+ exports.useSnackbarAdapter = useSnackbarAdapter;
@@ -1,4 +1,4 @@
1
- import { type CreateSnackbarOptions } from "@seed-design/react-snackbar";
1
+ import { CreateSnackbarOptions } from '@seed-design/react-snackbar';
2
2
  export type UseSnackbarAdapterReturn = ReturnType<typeof useSnackbarAdapter>;
3
3
  /**
4
4
  * wraps the snackbar context to provide a more user-friendly API
@@ -0,0 +1,24 @@
1
+ import { useSnackbarContext } from '@seed-design/react-snackbar';
2
+ import { useMemo } from 'react';
3
+
4
+ function useSnackbarAdapter() {
5
+ const api = useSnackbarContext();
6
+ const adapter = useMemo(
7
+ () => ({
8
+ visible: api.visible,
9
+ create: (options) => {
10
+ return api.create({
11
+ timeout: options.timeout ?? 5e3,
12
+ removeDelay: options.removeDelay ?? 200,
13
+ onClose: options.onClose,
14
+ render: options.render
15
+ });
16
+ },
17
+ dismiss: api.dismiss
18
+ }),
19
+ [api]
20
+ );
21
+ return adapter;
22
+ }
23
+
24
+ export { useSnackbarAdapter };
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const jsxRuntime = require('react/jsx-runtime');
6
+ const React = require('react');
7
+ const Box = require('../Box/Box.cjs');
8
+
9
+ function _interopNamespaceDefault(e) {
10
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
11
+ if (e) {
12
+ for (const k in e) {
13
+ if (k !== 'default') {
14
+ const d = Object.getOwnPropertyDescriptor(e, k);
15
+ Object.defineProperty(n, k, d.get ? d : {
16
+ enumerable: true,
17
+ get: () => e[k]
18
+ });
19
+ }
20
+ }
21
+ }
22
+ n.default = e;
23
+ return Object.freeze(n);
24
+ }
25
+
26
+ const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
27
+
28
+ const Stack = React__namespace.forwardRef((props, ref) => {
29
+ return /* @__PURE__ */ jsxRuntime.jsx(Box.Box, { ref, display: "flex", flexDirection: "column", ...props });
30
+ });
31
+
32
+ exports.Stack = Stack;
@@ -1,5 +1,5 @@
1
+ import { BoxProps } from '../Box/Box';
1
2
  import * as React from "react";
2
- import { type BoxProps } from "../Box/Box";
3
3
  export interface StackProps extends Omit<BoxProps, "display" | "direction"> {
4
4
  }
5
5
  export declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,9 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { Box } from '../Box/Box.js';
4
+
5
+ const Stack = React.forwardRef((props, ref) => {
6
+ return /* @__PURE__ */ jsx(Box, { ref, display: "flex", flexDirection: "column", ...props });
7
+ });
8
+
9
+ export { Stack };
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const Stack = require('./Stack.cjs');
6
+
7
+
8
+
9
+ exports.Stack = Stack.Stack;
@@ -1,2 +1,2 @@
1
- export { Stack, type StackProps } from "./Stack";
1
+ export { Stack, type StackProps } from './Stack';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ export { Stack } from './Stack.js';
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const reactSwitch = require('@seed-design/react-switch');
6
+ const _switch = require('@seed-design/css/recipes/switch');
7
+ const createStyleContext = require('../../utils/createStyleContext.cjs');
8
+ const reactPrimitive = require('@seed-design/react-primitive');
9
+ const createWithStateProps = require('../../utils/createWithStateProps.cjs');
10
+
11
+ const { withProvider, withContext } = createStyleContext.createStyleContext(_switch.switchStyle);
12
+ const withStateProps = createWithStateProps.createWithStateProps([reactSwitch.useSwitchContext]);
13
+ const SwitchRoot = withProvider(
14
+ reactSwitch.Switch.Root,
15
+ "root"
16
+ );
17
+ const SwitchControl = withContext(
18
+ reactSwitch.Switch.Control,
19
+ "control"
20
+ );
21
+ const SwitchThumb = withContext(
22
+ reactSwitch.Switch.Thumb,
23
+ "thumb"
24
+ );
25
+ const SwitchLabel = withContext(
26
+ withStateProps(reactPrimitive.Primitive.span),
27
+ "label"
28
+ );
29
+ const SwitchHiddenInput = reactSwitch.Switch.HiddenInput;
30
+
31
+ exports.SwitchControl = SwitchControl;
32
+ exports.SwitchHiddenInput = SwitchHiddenInput;
33
+ exports.SwitchLabel = SwitchLabel;
34
+ exports.SwitchRoot = SwitchRoot;
35
+ exports.SwitchThumb = SwitchThumb;
@@ -1,19 +1,20 @@
1
- import { Switch as SwitchPrimitive } from "@seed-design/react-switch";
2
- import { type SwitchVariantProps } from "@seed-design/css/recipes/switch";
3
- import { type PrimitiveProps } from "@seed-design/react-primitive";
1
+ import { Switch as SwitchPrimitive } from '@seed-design/react-switch';
2
+ import { SwitchVariantProps } from '@seed-design/css/recipes/switch';
3
+ import { PrimitiveProps } from '@seed-design/react-primitive';
4
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
4
5
  export interface SwitchRootProps extends SwitchVariantProps, SwitchPrimitive.RootProps {
5
6
  }
6
- export declare const SwitchRoot: import("react").ForwardRefExoticComponent<SwitchRootProps & import("react").RefAttributes<HTMLLabelElement>>;
7
+ export declare const SwitchRoot: ForwardRefExoticComponent<SwitchRootProps & RefAttributes<HTMLLabelElement>>;
7
8
  export interface SwitchControlProps extends SwitchPrimitive.ControlProps {
8
9
  }
9
- export declare const SwitchControl: import("react").ForwardRefExoticComponent<SwitchControlProps & import("react").RefAttributes<HTMLDivElement>>;
10
+ export declare const SwitchControl: ForwardRefExoticComponent<SwitchControlProps & RefAttributes<HTMLDivElement>>;
10
11
  export interface SwitchThumbProps extends SwitchPrimitive.ThumbProps {
11
12
  }
12
- export declare const SwitchThumb: import("react").ForwardRefExoticComponent<SwitchThumbProps & import("react").RefAttributes<HTMLDivElement>>;
13
+ export declare const SwitchThumb: ForwardRefExoticComponent<SwitchThumbProps & RefAttributes<HTMLDivElement>>;
13
14
  export interface SwitchLabelProps extends PrimitiveProps, React.HTMLAttributes<HTMLSpanElement> {
14
15
  }
15
- export declare const SwitchLabel: import("react").ForwardRefExoticComponent<SwitchLabelProps & import("react").RefAttributes<HTMLSpanElement>>;
16
+ export declare const SwitchLabel: ForwardRefExoticComponent<SwitchLabelProps & RefAttributes<HTMLSpanElement>>;
16
17
  export interface SwitchHiddenInputProps extends SwitchPrimitive.HiddenInputProps {
17
18
  }
18
- export declare const SwitchHiddenInput: import("react").ForwardRefExoticComponent<SwitchPrimitive.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
19
+ export declare const SwitchHiddenInput: ForwardRefExoticComponent<SwitchPrimitive.HiddenInputProps & RefAttributes<HTMLInputElement>>;
19
20
  //# sourceMappingURL=Switch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAoB,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAEvF,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAQ9E,MAAM,WAAW,eAAgB,SAAQ,kBAAkB,EAAE,eAAe,CAAC,SAAS;CAAG;AAEzF,eAAO,MAAM,UAAU,8GAGtB,CAAC;AAIF,MAAM,WAAW,kBAAmB,SAAQ,eAAe,CAAC,YAAY;CAAG;AAE3E,eAAO,MAAM,aAAa,+GAGzB,CAAC;AAIF,MAAM,WAAW,gBAAiB,SAAQ,eAAe,CAAC,UAAU;CAAG;AAEvE,eAAO,MAAM,WAAW,6GAGvB,CAAC;AAIF,MAAM,WAAW,gBAAiB,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAElG,eAAO,MAAM,WAAW,8GAGvB,CAAC;AAIF,MAAM,WAAW,sBAAuB,SAAQ,eAAe,CAAC,gBAAgB;CAAG;AAEnF,eAAO,MAAM,iBAAiB,+HAA8B,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAoB,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAEvF,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAQ9E,MAAM,WAAW,eAAgB,SAAQ,kBAAkB,EAAE,eAAe,CAAC,SAAS;CAAG;AAEzF,eAAO,MAAM,UAAU,8GAGtB,CAAC;AAIF,MAAM,WAAW,kBAAmB,SAAQ,eAAe,CAAC,YAAY;CAAG;AAE3E,eAAO,MAAM,aAAa,+GAGzB,CAAC;AAIF,MAAM,WAAW,gBAAiB,SAAQ,eAAe,CAAC,UAAU;CAAG;AAEvE,eAAO,MAAM,WAAW,6GAGvB,CAAC;AAIF,MAAM,WAAW,gBAAiB,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAElG,eAAO,MAAM,WAAW,8GAGvB,CAAC;AAIF,MAAM,WAAW,sBAAuB,SAAQ,eAAe,CAAC,gBAAgB;CAAG;AAEnF,eAAO,MAAM,iBAAiB,+HAA8B,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { Switch, useSwitchContext } from '@seed-design/react-switch';
2
+ import { switchStyle } from '@seed-design/css/recipes/switch';
3
+ import { createStyleContext } from '../../utils/createStyleContext.js';
4
+ import { Primitive } from '@seed-design/react-primitive';
5
+ import { createWithStateProps } from '../../utils/createWithStateProps.js';
6
+
7
+ const { withProvider, withContext } = createStyleContext(switchStyle);
8
+ const withStateProps = createWithStateProps([useSwitchContext]);
9
+ const SwitchRoot = withProvider(
10
+ Switch.Root,
11
+ "root"
12
+ );
13
+ const SwitchControl = withContext(
14
+ Switch.Control,
15
+ "control"
16
+ );
17
+ const SwitchThumb = withContext(
18
+ Switch.Thumb,
19
+ "thumb"
20
+ );
21
+ const SwitchLabel = withContext(
22
+ withStateProps(Primitive.span),
23
+ "label"
24
+ );
25
+ const SwitchHiddenInput = Switch.HiddenInput;
26
+
27
+ export { SwitchControl, SwitchHiddenInput, SwitchLabel, SwitchRoot, SwitchThumb };
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const Switch = require('./Switch.cjs');
6
+
7
+
8
+
9
+ exports.Control = Switch.SwitchControl;
10
+ exports.HiddenInput = Switch.SwitchHiddenInput;
11
+ exports.Label = Switch.SwitchLabel;
12
+ exports.Root = Switch.SwitchRoot;
13
+ exports.Thumb = Switch.SwitchThumb;
@@ -1,2 +1,2 @@
1
- export { SwitchControl as Control, SwitchHiddenInput as HiddenInput, SwitchLabel as Label, SwitchRoot as Root, SwitchThumb as Thumb, type SwitchControlProps as ControlProps, type SwitchHiddenInputProps as HiddenInputProps, type SwitchLabelProps as LabelProps, type SwitchRootProps as RootProps, type SwitchThumbProps as ThumbProps, } from "./Switch";
1
+ export { SwitchControl as Control, SwitchHiddenInput as HiddenInput, SwitchLabel as Label, SwitchRoot as Root, SwitchThumb as Thumb, type SwitchControlProps as ControlProps, type SwitchHiddenInputProps as HiddenInputProps, type SwitchLabelProps as LabelProps, type SwitchRootProps as RootProps, type SwitchThumbProps as ThumbProps, } from './Switch';
2
2
  //# sourceMappingURL=Switch.namespace.d.ts.map
@@ -0,0 +1 @@
1
+ export { SwitchControl as Control, SwitchHiddenInput as HiddenInput, SwitchLabel as Label, SwitchRoot as Root, SwitchThumb as Thumb } from './Switch.js';
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const Switch = require('./Switch.cjs');
6
+ const Switch_namespace = require('./Switch.namespace.cjs');
7
+
8
+
9
+
10
+ exports.SwitchControl = Switch.SwitchControl;
11
+ exports.SwitchHiddenInput = Switch.SwitchHiddenInput;
12
+ exports.SwitchLabel = Switch.SwitchLabel;
13
+ exports.SwitchRoot = Switch.SwitchRoot;
14
+ exports.SwitchThumb = Switch.SwitchThumb;
15
+ exports.Switch = Switch_namespace;
@@ -1,3 +1,3 @@
1
- export { SwitchControl, SwitchHiddenInput, SwitchLabel, SwitchRoot, SwitchThumb, type SwitchControlProps, type SwitchHiddenInputProps, type SwitchLabelProps, type SwitchRootProps, type SwitchThumbProps, } from "./Switch";
2
- export * as Switch from "./Switch.namespace";
1
+ export { SwitchControl, SwitchHiddenInput, SwitchLabel, SwitchRoot, SwitchThumb, type SwitchControlProps, type SwitchHiddenInputProps, type SwitchLabelProps, type SwitchRootProps, type SwitchThumbProps, } from './Switch';
2
+ export * as Switch from './Switch.namespace';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,3 @@
1
+ export { SwitchControl, SwitchHiddenInput, SwitchLabel, SwitchRoot, SwitchThumb } from './Switch.js';
2
+ import * as Switch_namespace from './Switch.namespace.js';
3
+ export { Switch_namespace as Switch };
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const reactPrimitive = require('@seed-design/react-primitive');
6
+ const reactTabs = require('@seed-design/react-tabs');
7
+ const tabs = require('@seed-design/css/recipes/tabs');
8
+ const createStyleContext = require('../../utils/createStyleContext.cjs');
9
+ const createWithStateProps = require('../../utils/createWithStateProps.cjs');
10
+
11
+ const { withProvider, withContext } = createStyleContext.createStyleContext(tabs.tabs);
12
+ const withStateProps = createWithStateProps.createWithStateProps([reactTabs.useTabsContext, reactTabs.useTabsTriggerContext], {
13
+ strict: false
14
+ });
15
+ const TabsRoot = withProvider(reactTabs.Tabs.Root, "root");
16
+ const TabsList = withContext(reactTabs.Tabs.List, "list");
17
+ const TabsTrigger = withContext(
18
+ reactTabs.Tabs.Trigger,
19
+ "trigger"
20
+ );
21
+ const TabsTriggerNotification = withContext(
22
+ withStateProps(reactPrimitive.Primitive.div),
23
+ "triggerNotification"
24
+ );
25
+ const TabsIndicator = withContext(
26
+ reactTabs.Tabs.Indicator,
27
+ "indicator"
28
+ );
29
+ const TabsContent = withContext(
30
+ reactTabs.Tabs.Content,
31
+ "content"
32
+ );
33
+ const TabsCarousel = withContext(
34
+ reactTabs.Tabs.Carousel,
35
+ "carousel"
36
+ );
37
+ const TabsCarouselCamera = withContext(
38
+ reactTabs.Tabs.CarouselCamera,
39
+ "carouselCamera"
40
+ );
41
+
42
+ exports.TabsCarousel = TabsCarousel;
43
+ exports.TabsCarouselCamera = TabsCarouselCamera;
44
+ exports.TabsContent = TabsContent;
45
+ exports.TabsIndicator = TabsIndicator;
46
+ exports.TabsList = TabsList;
47
+ exports.TabsRoot = TabsRoot;
48
+ exports.TabsTrigger = TabsTrigger;
49
+ exports.TabsTriggerNotification = TabsTriggerNotification;
@@ -1,7 +1,7 @@
1
- import { type PrimitiveProps } from "@seed-design/react-primitive";
2
- import { Tabs as TabsPrimitive } from "@seed-design/react-tabs";
3
- import { type TabsVariantProps } from "@seed-design/css/recipes/tabs";
4
- import type React from "react";
1
+ import { PrimitiveProps } from '@seed-design/react-primitive';
2
+ import { Tabs as TabsPrimitive } from '@seed-design/react-tabs';
3
+ import { TabsVariantProps } from '@seed-design/css/recipes/tabs';
4
+ import { default as React } from 'react';
5
5
  export interface TabsRootProps extends TabsVariantProps, TabsPrimitive.RootProps {
6
6
  }
7
7
  export declare const TabsRoot: React.ForwardRefExoticComponent<TabsRootProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,38 @@
1
+ import { Primitive } from '@seed-design/react-primitive';
2
+ import { Tabs, useTabsContext, useTabsTriggerContext } from '@seed-design/react-tabs';
3
+ import { tabs } from '@seed-design/css/recipes/tabs';
4
+ import { createStyleContext } from '../../utils/createStyleContext.js';
5
+ import { createWithStateProps } from '../../utils/createWithStateProps.js';
6
+
7
+ const { withProvider, withContext } = createStyleContext(tabs);
8
+ const withStateProps = createWithStateProps([useTabsContext, useTabsTriggerContext], {
9
+ strict: false
10
+ });
11
+ const TabsRoot = withProvider(Tabs.Root, "root");
12
+ const TabsList = withContext(Tabs.List, "list");
13
+ const TabsTrigger = withContext(
14
+ Tabs.Trigger,
15
+ "trigger"
16
+ );
17
+ const TabsTriggerNotification = withContext(
18
+ withStateProps(Primitive.div),
19
+ "triggerNotification"
20
+ );
21
+ const TabsIndicator = withContext(
22
+ Tabs.Indicator,
23
+ "indicator"
24
+ );
25
+ const TabsContent = withContext(
26
+ Tabs.Content,
27
+ "content"
28
+ );
29
+ const TabsCarousel = withContext(
30
+ Tabs.Carousel,
31
+ "carousel"
32
+ );
33
+ const TabsCarouselCamera = withContext(
34
+ Tabs.CarouselCamera,
35
+ "carouselCamera"
36
+ );
37
+
38
+ export { TabsCarousel, TabsCarouselCamera, TabsContent, TabsIndicator, TabsList, TabsRoot, TabsTrigger, TabsTriggerNotification };
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const Tabs = require('./Tabs.cjs');
6
+
7
+
8
+
9
+ exports.Carousel = Tabs.TabsCarousel;
10
+ exports.CarouselCamera = Tabs.TabsCarouselCamera;
11
+ exports.Content = Tabs.TabsContent;
12
+ exports.Indicator = Tabs.TabsIndicator;
13
+ exports.List = Tabs.TabsList;
14
+ exports.Root = Tabs.TabsRoot;
15
+ exports.Trigger = Tabs.TabsTrigger;
16
+ exports.TriggerNotification = Tabs.TabsTriggerNotification;
@@ -1,2 +1,2 @@
1
- export { TabsContent as Content, TabsIndicator as Indicator, TabsList as List, TabsRoot as Root, TabsCarouselCamera as CarouselCamera, TabsCarousel as Carousel, TabsTrigger as Trigger, TabsTriggerNotification as TriggerNotification, type TabsContentProps as ContentProps, type TabsIndicatorProps as IndicatorProps, type TabsListProps as ListProps, type TabsRootProps as RootProps, type TabsCarouselCameraProps as CarouselCameraProps, type TabsCarouselProps as CarouselProps, type TabsTriggerNotificationProps as TriggerNotificationProps, type TabsTriggerProps as TriggerProps, } from "./Tabs";
1
+ export { TabsContent as Content, TabsIndicator as Indicator, TabsList as List, TabsRoot as Root, TabsCarouselCamera as CarouselCamera, TabsCarousel as Carousel, TabsTrigger as Trigger, TabsTriggerNotification as TriggerNotification, type TabsContentProps as ContentProps, type TabsIndicatorProps as IndicatorProps, type TabsListProps as ListProps, type TabsRootProps as RootProps, type TabsCarouselCameraProps as CarouselCameraProps, type TabsCarouselProps as CarouselProps, type TabsTriggerNotificationProps as TriggerNotificationProps, type TabsTriggerProps as TriggerProps, } from './Tabs';
2
2
  //# sourceMappingURL=Tabs.namespace.d.ts.map
@@ -0,0 +1 @@
1
+ export { TabsCarousel as Carousel, TabsCarouselCamera as CarouselCamera, TabsContent as Content, TabsIndicator as Indicator, TabsList as List, TabsRoot as Root, TabsTrigger as Trigger, TabsTriggerNotification as TriggerNotification } from './Tabs.js';
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const Tabs = require('./Tabs.cjs');
6
+ const Tabs_namespace = require('./Tabs.namespace.cjs');
7
+
8
+
9
+
10
+ exports.TabsCarousel = Tabs.TabsCarousel;
11
+ exports.TabsCarouselCamera = Tabs.TabsCarouselCamera;
12
+ exports.TabsContent = Tabs.TabsContent;
13
+ exports.TabsIndicator = Tabs.TabsIndicator;
14
+ exports.TabsList = Tabs.TabsList;
15
+ exports.TabsRoot = Tabs.TabsRoot;
16
+ exports.TabsTrigger = Tabs.TabsTrigger;
17
+ exports.TabsTriggerNotification = Tabs.TabsTriggerNotification;
18
+ exports.Tabs = Tabs_namespace;
@@ -1,3 +1,3 @@
1
- export { TabsContent, TabsIndicator, TabsList, TabsRoot, TabsCarouselCamera, TabsCarousel, TabsTrigger, TabsTriggerNotification, type TabsContentProps, type TabsIndicatorProps, type TabsListProps, type TabsRootProps, type TabsCarouselCameraProps, type TabsCarouselProps, type TabsTriggerNotificationProps, type TabsTriggerProps, } from "./Tabs";
2
- export * as Tabs from "./Tabs.namespace";
1
+ export { TabsContent, TabsIndicator, TabsList, TabsRoot, TabsCarouselCamera, TabsCarousel, TabsTrigger, TabsTriggerNotification, type TabsContentProps, type TabsIndicatorProps, type TabsListProps, type TabsRootProps, type TabsCarouselCameraProps, type TabsCarouselProps, type TabsTriggerNotificationProps, type TabsTriggerProps, } from './Tabs';
2
+ export * as Tabs from './Tabs.namespace';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,3 @@
1
+ export { TabsCarousel, TabsCarouselCamera, TabsContent, TabsIndicator, TabsList, TabsRoot, TabsTrigger, TabsTriggerNotification } from './Tabs.js';
2
+ import * as Tabs_namespace from './Tabs.namespace.js';
3
+ export { Tabs_namespace as Tabs };
@@ -0,0 +1,85 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const jsxRuntime = require('react/jsx-runtime');
6
+ const text = require('@seed-design/css/recipes/text');
7
+ const vars = require('@seed-design/css/vars');
8
+ const clsx = require('clsx');
9
+ const React = require('react');
10
+
11
+ function handleColor(color) {
12
+ if (!color) {
13
+ return void 0;
14
+ }
15
+ const [type, value] = color.split(".");
16
+ return vars.vars.$color[type][value] ?? void 0;
17
+ }
18
+ function handleFontWeight(fontWeight) {
19
+ if (!fontWeight) {
20
+ return void 0;
21
+ }
22
+ return vars.vars.$fontWeight[fontWeight] ?? void 0;
23
+ }
24
+ function handleFontSize(size) {
25
+ if (!size) {
26
+ return void 0;
27
+ }
28
+ return vars.vars.$fontSize[size] ?? size;
29
+ }
30
+ function handleLineHeight(lineHeight) {
31
+ if (!lineHeight) {
32
+ return void 0;
33
+ }
34
+ return vars.vars.$lineHeight[lineHeight] ?? lineHeight;
35
+ }
36
+ function mapMaxLines(maxLines) {
37
+ if (maxLines === void 0) {
38
+ return "none";
39
+ }
40
+ if (maxLines === 1) {
41
+ return "single";
42
+ }
43
+ return "multi";
44
+ }
45
+ const Text = ({
46
+ as,
47
+ color,
48
+ textStyle,
49
+ fontSize,
50
+ lineHeight,
51
+ fontWeight,
52
+ maxLines,
53
+ children,
54
+ className,
55
+ style,
56
+ ...otherProps
57
+ }) => {
58
+ const Comp = as || "span";
59
+ const classNames = React.useMemo(
60
+ () => text.text({
61
+ textStyle,
62
+ maxLines: mapMaxLines(maxLines)
63
+ }),
64
+ [textStyle, maxLines]
65
+ );
66
+ return /* @__PURE__ */ jsxRuntime.jsx(
67
+ Comp,
68
+ {
69
+ className: clsx(classNames.root, className),
70
+ style: {
71
+ "--seed-max-lines": maxLines,
72
+ "--seed-text-color": handleColor(color),
73
+ "--seed-font-size": handleFontSize(fontSize),
74
+ "--seed-line-height": handleLineHeight(lineHeight ?? fontSize),
75
+ "--seed-font-weight": handleFontWeight(fontWeight),
76
+ "--seed-text-align": otherProps.align,
77
+ ...style
78
+ },
79
+ ...otherProps,
80
+ children
81
+ }
82
+ );
83
+ };
84
+
85
+ exports.Text = Text;
@@ -1,5 +1,5 @@
1
- import { type TextVariantProps } from "@seed-design/css/recipes/text";
2
- import { type ColorFg, type ColorPalette, type FontSize, type FontWeight, type LineHeight } from "@seed-design/css/vars";
1
+ import { TextVariantProps } from '@seed-design/css/recipes/text';
2
+ import { ColorFg, ColorPalette, FontSize, FontWeight, LineHeight } from '@seed-design/css/vars';
3
3
  import type * as React from "react";
4
4
  export interface TextProps extends Omit<TextVariantProps, "maxLines">, React.HTMLAttributes<HTMLSpanElement> {
5
5
  /**
@@ -0,0 +1,81 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { text } from '@seed-design/css/recipes/text';
3
+ import { vars } from '@seed-design/css/vars';
4
+ import clsx from 'clsx';
5
+ import { useMemo } from 'react';
6
+
7
+ function handleColor(color) {
8
+ if (!color) {
9
+ return void 0;
10
+ }
11
+ const [type, value] = color.split(".");
12
+ return vars.$color[type][value] ?? void 0;
13
+ }
14
+ function handleFontWeight(fontWeight) {
15
+ if (!fontWeight) {
16
+ return void 0;
17
+ }
18
+ return vars.$fontWeight[fontWeight] ?? void 0;
19
+ }
20
+ function handleFontSize(size) {
21
+ if (!size) {
22
+ return void 0;
23
+ }
24
+ return vars.$fontSize[size] ?? size;
25
+ }
26
+ function handleLineHeight(lineHeight) {
27
+ if (!lineHeight) {
28
+ return void 0;
29
+ }
30
+ return vars.$lineHeight[lineHeight] ?? lineHeight;
31
+ }
32
+ function mapMaxLines(maxLines) {
33
+ if (maxLines === void 0) {
34
+ return "none";
35
+ }
36
+ if (maxLines === 1) {
37
+ return "single";
38
+ }
39
+ return "multi";
40
+ }
41
+ const Text = ({
42
+ as,
43
+ color,
44
+ textStyle,
45
+ fontSize,
46
+ lineHeight,
47
+ fontWeight,
48
+ maxLines,
49
+ children,
50
+ className,
51
+ style,
52
+ ...otherProps
53
+ }) => {
54
+ const Comp = as || "span";
55
+ const classNames = useMemo(
56
+ () => text({
57
+ textStyle,
58
+ maxLines: mapMaxLines(maxLines)
59
+ }),
60
+ [textStyle, maxLines]
61
+ );
62
+ return /* @__PURE__ */ jsx(
63
+ Comp,
64
+ {
65
+ className: clsx(classNames.root, className),
66
+ style: {
67
+ "--seed-max-lines": maxLines,
68
+ "--seed-text-color": handleColor(color),
69
+ "--seed-font-size": handleFontSize(fontSize),
70
+ "--seed-line-height": handleLineHeight(lineHeight ?? fontSize),
71
+ "--seed-font-weight": handleFontWeight(fontWeight),
72
+ "--seed-text-align": otherProps.align,
73
+ ...style
74
+ },
75
+ ...otherProps,
76
+ children
77
+ }
78
+ );
79
+ };
80
+
81
+ export { Text };
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const Text = require('./Text.cjs');
6
+
7
+
8
+
9
+ exports.Text = Text.Text;
@@ -1,2 +1,2 @@
1
- export * from "./Text";
1
+ export * from './Text';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Text/index.tsx"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1 @@
1
+ export { Text } from './Text.js';