@koide-labs/ui 0.0.15 → 0.1.1

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 (310) hide show
  1. package/dist/-utils.d.ts +2 -2
  2. package/dist/-utils.js +1 -1
  3. package/dist/{Button-DrPFFzo7.js → Button-BmcVHRRW.js} +2 -2
  4. package/dist/{CompositeRoot-CVk5a-pR.js → CompositeRoot-CCgh2M64.js} +6 -6
  5. package/dist/{FloatingPortal-tWyuKRSN.js → FloatingPortal-BQsQhvIr.js} +27 -27
  6. package/dist/{FloatingPortalLite-DVyq6YhV.js → FloatingPortalLite-_ECdFE7b.js} +1 -1
  7. package/dist/{InternalBackdrop-jYAiOJ8v.js → InternalBackdrop-BSMKU-hc.js} +13 -13
  8. package/dist/{LabelableContext-BMvjVwor.js → LabelableContext-Be1u-eFg.js} +2 -2
  9. package/dist/accordion.css +1 -0
  10. package/dist/alert-dialog.css +1 -0
  11. package/dist/anchor.css +1 -0
  12. package/dist/avatar.css +1 -0
  13. package/dist/badge.css +1 -0
  14. package/dist/button.css +1 -0
  15. package/dist/checkbox.css +1 -0
  16. package/dist/code.css +1 -0
  17. package/dist/collapse.css +1 -0
  18. package/dist/command.css +1 -0
  19. package/dist/components/accordion/accordion.d.ts +19 -0
  20. package/dist/components/accordion/accordion.js +701 -0
  21. package/dist/components/accordion/index.d.ts +1 -12
  22. package/dist/components/accordion/index.js +2 -697
  23. package/dist/components/alert-dialog/alert-dialog.d.ts +36 -0
  24. package/dist/components/alert-dialog/alert-dialog.js +138 -0
  25. package/dist/components/alert-dialog/index.d.ts +1 -26
  26. package/dist/components/alert-dialog/index.js +2 -134
  27. package/dist/components/anchor/anchor.d.ts +12 -0
  28. package/dist/components/anchor/anchor.js +21 -0
  29. package/dist/components/anchor/index.d.ts +1 -8
  30. package/dist/components/anchor/index.js +2 -19
  31. package/dist/components/avatar/avatar.d.ts +25 -0
  32. package/dist/components/avatar/avatar.js +161 -0
  33. package/dist/components/avatar/index.d.ts +1 -21
  34. package/dist/components/avatar/index.js +2 -159
  35. package/dist/components/badge/badge.d.ts +20 -0
  36. package/dist/components/badge/badge.js +42 -0
  37. package/dist/components/badge/index.d.ts +1 -16
  38. package/dist/components/badge/index.js +2 -40
  39. package/dist/components/button/button.d.ts +27 -0
  40. package/dist/components/button/button.js +47 -0
  41. package/dist/components/button/index.d.ts +1 -24
  42. package/dist/components/button/index.js +2 -45
  43. package/dist/components/checkbox/checkbox.d.ts +13 -0
  44. package/dist/components/checkbox/checkbox.js +269 -0
  45. package/dist/components/checkbox/index.d.ts +1 -9
  46. package/dist/components/checkbox/index.js +2 -267
  47. package/dist/components/code/code.d.ts +13 -0
  48. package/dist/components/code/code.js +1206 -0
  49. package/dist/components/code/index.d.ts +1 -9
  50. package/dist/components/code/index.js +2 -1204
  51. package/dist/components/collapse/collapse.d.ts +14 -0
  52. package/dist/components/collapse/collapse.js +35 -0
  53. package/dist/components/collapse/index.d.ts +1 -11
  54. package/dist/components/collapse/index.js +2 -33
  55. package/dist/components/command/command.d.ts +36 -0
  56. package/dist/components/command/command.js +1695 -0
  57. package/dist/components/command/index.d.ts +1 -15
  58. package/dist/components/command/index.js +2 -1693
  59. package/dist/components/context-menu/context-menu.d.ts +82 -0
  60. package/dist/components/context-menu/context-menu.js +1445 -0
  61. package/dist/components/context-menu/index.d.ts +1 -42
  62. package/dist/components/context-menu/index.js +2 -1442
  63. package/dist/components/dialog/dialog.d.ts +22 -0
  64. package/dist/components/dialog/dialog.js +140 -0
  65. package/dist/components/dialog/dialog.types.d.ts +38 -0
  66. package/dist/components/dialog/index.d.ts +1 -48
  67. package/dist/components/dialog/index.js +2 -136
  68. package/dist/components/heading/heading.d.ts +25 -0
  69. package/dist/components/heading/heading.js +36 -0
  70. package/dist/components/heading/index.d.ts +1 -44
  71. package/dist/components/heading/index.js +2 -49
  72. package/dist/components/icon/icon.d.ts +28 -0
  73. package/dist/components/icon/icon.js +43 -0
  74. package/dist/components/icon/{icon-names.d.ts → icon.types.d.ts} +4 -0
  75. package/dist/components/icon/icon.types.js +1 -0
  76. package/dist/components/icon/index.d.ts +2 -24
  77. package/dist/components/icon/index.js +2 -41
  78. package/dist/components/icon-button/icon-button.d.ts +16 -0
  79. package/dist/components/icon-button/icon-button.js +46 -0
  80. package/dist/components/icon-button/index.d.ts +1 -12
  81. package/dist/components/icon-button/index.js +2 -44
  82. package/dist/components/inline-code/index.d.ts +1 -6
  83. package/dist/components/inline-code/index.js +2 -20
  84. package/dist/components/inline-code/inline-code.d.ts +10 -0
  85. package/dist/components/inline-code/inline-code.js +25 -0
  86. package/dist/components/input/index.d.ts +1 -3
  87. package/dist/components/input/index.js +2 -117
  88. package/dist/components/input/input.d.ts +9 -0
  89. package/dist/components/input/input.js +126 -0
  90. package/dist/components/meter/index.d.ts +1 -18
  91. package/dist/components/meter/index.js +2 -163
  92. package/dist/components/meter/meter.d.ts +22 -0
  93. package/dist/components/meter/meter.js +165 -0
  94. package/dist/components/multiline-input/index.d.ts +1 -6
  95. package/dist/components/multiline-input/index.js +2 -98
  96. package/dist/components/multiline-input/multiline-input.d.ts +10 -0
  97. package/dist/components/multiline-input/multiline-input.js +100 -0
  98. package/dist/components/number-input/index.d.ts +1 -10
  99. package/dist/components/number-input/index.js +2 -1167
  100. package/dist/components/number-input/number-input.d.ts +14 -0
  101. package/dist/components/number-input/number-input.js +1169 -0
  102. package/dist/components/password-input/index.d.ts +1 -2
  103. package/dist/components/password-input/index.js +2 -27
  104. package/dist/components/password-input/password-input.d.ts +7 -0
  105. package/dist/components/password-input/password-input.js +29 -0
  106. package/dist/components/pill/index.d.ts +1 -13
  107. package/dist/components/pill/index.js +2 -36
  108. package/dist/components/pill/pill.d.ts +17 -0
  109. package/dist/components/pill/pill.js +38 -0
  110. package/dist/components/popover/index.d.ts +1 -21
  111. package/dist/components/popover/index.js +2 -634
  112. package/dist/components/popover/popover.d.ts +22 -0
  113. package/dist/components/popover/popover.js +634 -0
  114. package/dist/components/preview-card/index.d.ts +1 -17
  115. package/dist/components/preview-card/index.js +2 -400
  116. package/dist/components/preview-card/preview-card.d.ts +21 -0
  117. package/dist/components/preview-card/preview-card.js +402 -0
  118. package/dist/components/radio-group/index.d.ts +1 -0
  119. package/dist/components/radio-group/index.js +5 -0
  120. package/dist/components/radio-group/radio-group.d.ts +25 -0
  121. package/dist/components/{radio/index.js → radio-group/radio-group.js} +91 -90
  122. package/dist/components/search-bar/index.d.ts +1 -12
  123. package/dist/components/search-bar/index.js +2 -46
  124. package/dist/components/search-bar/search-bar.d.ts +16 -0
  125. package/dist/components/search-bar/search-bar.js +43 -0
  126. package/dist/components/select/index.d.ts +1 -16
  127. package/dist/components/select/index.js +2 -1261
  128. package/dist/components/select/select.d.ts +22 -0
  129. package/dist/components/select/select.js +1263 -0
  130. package/dist/components/separator/index.d.ts +1 -7
  131. package/dist/components/separator/index.js +2 -4
  132. package/dist/components/separator/separator.d.ts +10 -0
  133. package/dist/components/separator/separator.js +6 -0
  134. package/dist/components/slider/index.d.ts +1 -5
  135. package/dist/components/slider/index.js +2 -900
  136. package/dist/components/slider/slider.d.ts +10 -0
  137. package/dist/components/slider/slider.js +899 -0
  138. package/dist/components/spinner/index.d.ts +1 -2
  139. package/dist/components/spinner/index.js +2 -11
  140. package/dist/components/spinner/spinner.d.ts +7 -0
  141. package/dist/components/spinner/spinner.js +13 -0
  142. package/dist/components/stacked-avatars/index.d.ts +1 -14
  143. package/dist/components/stacked-avatars/index.js +2 -90
  144. package/dist/components/stacked-avatars/stacked-avatars.d.ts +18 -0
  145. package/dist/components/stacked-avatars/stacked-avatars.js +92 -0
  146. package/dist/components/status-banner/index.d.ts +1 -17
  147. package/dist/components/status-banner/index.js +2 -69
  148. package/dist/components/status-banner/status-banner.d.ts +22 -0
  149. package/dist/components/status-banner/status-banner.js +71 -0
  150. package/dist/components/surface/index.d.ts +2 -27
  151. package/dist/components/surface/index.js +2 -39
  152. package/dist/components/surface/surface.d.ts +26 -0
  153. package/dist/components/surface/surface.js +36 -0
  154. package/dist/components/surface/surface.types.d.ts +1 -0
  155. package/dist/components/surface/surface.types.js +1 -0
  156. package/dist/components/switch/index.d.ts +1 -5
  157. package/dist/components/switch/index.js +2 -194
  158. package/dist/components/switch/switch.d.ts +10 -0
  159. package/dist/components/switch/switch.js +193 -0
  160. package/dist/components/tabs/index.d.ts +1 -18
  161. package/dist/components/tabs/index.js +2 -507
  162. package/dist/components/tabs/tabs.d.ts +28 -0
  163. package/dist/components/tabs/tabs.js +511 -0
  164. package/dist/components/text/index.d.ts +1 -26
  165. package/dist/components/text/index.js +2 -46
  166. package/dist/components/text/text.d.ts +29 -0
  167. package/dist/components/text/text.js +48 -0
  168. package/dist/components/theme-provider/index.d.ts +1 -1
  169. package/dist/components/theme-provider/theme-provider.d.ts +8 -4
  170. package/dist/components/theme-provider/theme-provider.js +3 -3
  171. package/dist/components/timestamp/index.d.ts +1 -23
  172. package/dist/components/timestamp/index.js +2 -1390
  173. package/dist/components/timestamp/timestamp.d.ts +26 -0
  174. package/dist/components/timestamp/timestamp.js +1391 -0
  175. package/dist/components/toaster/index.d.ts +2 -0
  176. package/dist/components/toaster/index.js +7 -0
  177. package/dist/components/toaster/toaster.d.ts +7 -0
  178. package/dist/components/toaster/toaster.js +923 -0
  179. package/dist/components/{toast → toaster}/use-toast-manager.d.ts +3 -3
  180. package/dist/components/tooltip/index.d.ts +1 -14
  181. package/dist/components/tooltip/index.js +2 -710
  182. package/dist/components/tooltip/tooltip.d.ts +24 -0
  183. package/dist/components/tooltip/tooltip.js +9 -0
  184. package/dist/components/view/index.d.ts +2 -30
  185. package/dist/components/view/index.js +2 -79
  186. package/dist/components/view/view.d.ts +31 -0
  187. package/dist/components/view/view.js +83 -0
  188. package/dist/components/view/view.types.d.ts +5 -0
  189. package/dist/components/view/view.types.js +1 -0
  190. package/dist/components/visually-hidden/index.d.ts +5 -1
  191. package/dist/{composite-Bx7Szd_T.js → composite-BZzP-LlG.js} +3 -3
  192. package/dist/{composite-C9L5QmZL.js → composite-BwEK5cWH.js} +1 -1
  193. package/dist/context-menu.css +1 -0
  194. package/dist/{createBaseUIEventDetails-D8M2Yl-a.js → createBaseUIEventDetails-CCSfZ2vM.js} +7 -7
  195. package/dist/{detectBrowser-I-s3yzIE.js → detectBrowser-Bl8Ki_1I.js} +2 -2
  196. package/dist/dialog.css +1 -1
  197. package/dist/{dialog.module-BeF-6XAo.js → dialog.module-DsbQRp-d.js} +55 -55
  198. package/dist/{element-CZEOj04G.js → element-u5WgOZX1.js} +7 -7
  199. package/dist/{event-CKoGyQEJ.js → event-B89-Ng5h.js} +4 -4
  200. package/dist/{floating-ui.utils-C7pRWMZ_.js → floating-ui.utils-DUVaIF3G.js} +7 -7
  201. package/dist/{floating-ui.utils.dom-C7FS5id0.js → floating-ui.utils.dom-cbi420Pg.js} +4 -4
  202. package/dist/{getDisabledMountTransitionStyles-YfHPge6T.js → getDisabledMountTransitionStyles-E2x-_lte.js} +7 -7
  203. package/dist/heading.css +1 -0
  204. package/dist/icon-button.css +1 -0
  205. package/dist/icon.css +1 -0
  206. package/dist/index.d.ts +10 -10
  207. package/dist/index.js +86 -104
  208. package/dist/{inertValue-BCYGsdmf.js → inertValue-BTpPjX30.js} +1 -1
  209. package/dist/inline-code.css +1 -0
  210. package/dist/input.css +1 -1
  211. package/dist/input.module-CtE19OH8.js +8 -0
  212. package/dist/integrations/react-markdown/index.js +12 -12
  213. package/dist/meter.css +1 -0
  214. package/dist/number-input.css +1 -0
  215. package/dist/password-input.css +1 -0
  216. package/dist/pill.css +1 -0
  217. package/dist/popover.css +1 -0
  218. package/dist/preview-card.css +1 -0
  219. package/dist/radio-group.css +1 -0
  220. package/dist/safePolygon-DnkzOIur.js +558 -0
  221. package/dist/search-bar.css +1 -0
  222. package/dist/select.css +1 -0
  223. package/dist/{index-DVjyPAD4.js → separator-fh_wDZNf.js} +7 -11
  224. package/dist/separator.css +1 -0
  225. package/dist/slider.css +1 -0
  226. package/dist/spinner.css +1 -0
  227. package/dist/stacked-avatars.css +1 -0
  228. package/dist/status-banner.css +1 -0
  229. package/dist/styles/core.css +1 -1
  230. package/dist/surface.css +1 -0
  231. package/dist/switch.css +1 -0
  232. package/dist/tabs.css +1 -0
  233. package/dist/text.css +1 -0
  234. package/dist/timestamp.css +1 -0
  235. package/dist/toaster.css +1 -0
  236. package/dist/tooltip-oCp-elli.js +765 -0
  237. package/dist/tooltip.css +1 -0
  238. package/dist/transitions.css +1 -1
  239. package/dist/{transitions.module-CWX8e5cx.js → transitions.module-D9mMAtfI.js} +11 -11
  240. package/dist/{useAnimationFrame-451ugS_6.js → useAnimationFrame-DvK1s63A.js} +1 -1
  241. package/dist/{useButton-DfIwsdb8.js → useButton-d3_JgBNr.js} +3 -3
  242. package/dist/{useCompositeListItem-OkcAim_1.js → useCompositeListItem-CZp9WTnF.js} +2 -2
  243. package/dist/{useLabelableId-Ci_jDvmv.js → useLabelableId-CX4tcfzK.js} +3 -3
  244. package/dist/{useOpenChangeComplete-Dse9kY9E.js → useOpenChangeComplete-BHd-N7Ig.js} +5 -5
  245. package/dist/{useRender-CLx7dR_1.js → useRender-C3vlzS3t.js} +1 -1
  246. package/dist/{useRenderElement-DwToLA61.js → useRenderElement-DngNDu_P.js} +2 -2
  247. package/dist/{useRole-oDBdbuwQ.js → useRole-BD3OL1rr.js} +3 -3
  248. package/dist/{useStableCallback-CkTrVkNX.js → useStableCallback-DKZHlUAT.js} +1 -1
  249. package/dist/{useSyncedFloatingRootContext-Dorsv-jf.js → useSyncedFloatingRootContext-BB1vwkV-.js} +20 -20
  250. package/dist/{useTimeout-CflX-kz3.js → useTimeout-BNni6aw5.js} +1 -1
  251. package/dist/{useTransitionStatus-CUfcuGAV.js → useTransitionStatus-CmMyUh74.js} +1 -1
  252. package/dist/{useTypeahead-D85V2IUx.js → useTypeahead-BiL5IAVb.js} +11 -11
  253. package/dist/{useValueAsRef-HURLzret.js → useValueAsRef-B4EriRsI.js} +1 -1
  254. package/dist/{useValueChanged-DL757-yD.js → useValueChanged-MJRmEWz1.js} +1 -1
  255. package/dist/view.css +1 -1
  256. package/dist/view.module-Dj7wj0kk.js +6 -0
  257. package/dist/view2.css +1 -0
  258. package/package.json +1 -1
  259. package/dist/components/radio/index.d.ts +0 -13
  260. package/dist/components/toast/index.d.ts +0 -2
  261. package/dist/components/toast/index.js +0 -8
  262. package/dist/components/toast/toast.d.ts +0 -2
  263. package/dist/components/toast/toast.js +0 -921
  264. package/dist/components/tooltip/tooltip-arrow.d.ts +0 -3
  265. package/dist/components/tooltip/tooltip-arrow.js +0 -6
  266. package/dist/index10.css +0 -1
  267. package/dist/index11.css +0 -1
  268. package/dist/index12.css +0 -1
  269. package/dist/index13.css +0 -1
  270. package/dist/index14.css +0 -1
  271. package/dist/index15.css +0 -1
  272. package/dist/index16.css +0 -1
  273. package/dist/index17.css +0 -1
  274. package/dist/index18.css +0 -1
  275. package/dist/index19.css +0 -1
  276. package/dist/index20.css +0 -1
  277. package/dist/index21.css +0 -1
  278. package/dist/index22.css +0 -1
  279. package/dist/index23.css +0 -1
  280. package/dist/index24.css +0 -1
  281. package/dist/index25.css +0 -1
  282. package/dist/index26.css +0 -1
  283. package/dist/index27.css +0 -1
  284. package/dist/index28.css +0 -1
  285. package/dist/index29.css +0 -1
  286. package/dist/index3.css +0 -1
  287. package/dist/index30.css +0 -1
  288. package/dist/index31.css +0 -1
  289. package/dist/index32.css +0 -1
  290. package/dist/index33.css +0 -1
  291. package/dist/index34.css +0 -1
  292. package/dist/index35.css +0 -1
  293. package/dist/index36.css +0 -1
  294. package/dist/index37.css +0 -1
  295. package/dist/index4.css +0 -1
  296. package/dist/index5.css +0 -1
  297. package/dist/index6.css +0 -1
  298. package/dist/index7.css +0 -1
  299. package/dist/index8.css +0 -1
  300. package/dist/index9.css +0 -1
  301. package/dist/input.module-DDQY_Ij6.js +0 -7
  302. package/dist/safePolygon-DWy1dGKJ.js +0 -308
  303. package/dist/toast.css +0 -1
  304. package/dist/tooltip-arrow-cs6vjjqZ.js +0 -24
  305. package/dist/tooltip-arrow.css +0 -1
  306. package/dist/useHoverReferenceInteraction-SfOBPoXM.js +0 -264
  307. package/dist/usePopupAutoResize-CNR6Ekmx.js +0 -85
  308. package/dist/view.module-DfDLgJE0.js +0 -6
  309. /package/dist/components/{icon/icon-names.js → dialog/dialog.types.js} +0 -0
  310. /package/dist/components/{toast → toaster}/use-toast-manager.js +0 -0
@@ -1,2 +1 @@
1
- import { ViewProps } from '../view';
2
- export declare function Spinner({ className, ...props }: ViewProps): import("react/jsx-runtime").JSX.Element;
1
+ export { Spinner } from './spinner';
@@ -1,14 +1,5 @@
1
1
  "use client";
2
- import { jsx as n } from "react/jsx-runtime";
3
- import { c as i } from "../../clsx-OuTLNxxd.js";
4
- import { Icon as o } from "../icon/index.js";
5
- import { View as s } from "../view/index.js";
6
- import '../../index6.css';const p = "_spinner_98pyn_1", t = {
7
- spinner: p
8
- };
9
- function f({ className: r, ...e }) {
10
- return /* @__PURE__ */ n(s, { className: i(t.spinner, r), ...e, children: /* @__PURE__ */ n(o, { name: "loader-2-line" }) });
11
- }
2
+ import { Spinner as r } from "./spinner.js";
12
3
  export {
13
- f as Spinner
4
+ r as Spinner
14
5
  };
@@ -0,0 +1,7 @@
1
+ import { View } from '../view';
2
+ type SpinnerProps = View.Props;
3
+ declare function Spinner({ className, ...props }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
4
+ export { Spinner };
5
+ export declare namespace Spinner {
6
+ type Props = SpinnerProps;
7
+ }
@@ -0,0 +1,13 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { c as o } from "../../clsx-OuTLNxxd.js";
3
+ import { View as i } from "../view/view.js";
4
+ import { Icon as s } from "../icon/icon.js";
5
+ import '../../spinner.css';const m = "_spinner_16nxb_2", p = {
6
+ spinner: m
7
+ };
8
+ function f({ className: r, ...e }) {
9
+ return /* @__PURE__ */ n(i, { className: o(p.spinner, r), ...e, children: /* @__PURE__ */ n(s, { name: "loader-2-line" }) });
10
+ }
11
+ export {
12
+ f as Spinner
13
+ };
@@ -1,14 +1 @@
1
- import { AvatarProps } from '../avatar';
2
- import { Color } from '../view';
3
- export interface StackedAvatarsProps {
4
- /** User objects */
5
- users: Array<AvatarProps & {
6
- /** Ring color around the avatar */
7
- color: Color;
8
- }>;
9
- /** The maximum number of user to display. Defaults to 3. */
10
- visibleUsers?: number;
11
- /** The size of the avatars. Defaults to "md". */
12
- size?: AvatarProps["size"];
13
- }
14
- export declare function StackedAvatars({ users, visibleUsers, size, }: StackedAvatarsProps): import("react/jsx-runtime").JSX.Element;
1
+ export { StackedAvatars } from './stacked-avatars';
@@ -1,93 +1,5 @@
1
1
  "use client";
2
- import { jsx as t, jsxs as l } from "react/jsx-runtime";
3
- import { c as v } from "../../clsx-OuTLNxxd.js";
4
- import { Avatar as o } from "../avatar/index.js";
5
- import { Text as k } from "../text/index.js";
6
- import { Tooltip as n } from "../tooltip/index.js";
7
- import { View as i } from "../view/index.js";
8
- import '../../index4.css';const a = {
9
- "stacked-avatars": "_stacked-avatars_7icu0_1",
10
- "stacked-avatars__avatar": "_stacked-avatars__avatar_7icu0_7",
11
- "stacked-avatars__avatar_color": "_stacked-avatars__avatar_color_7icu0_12",
12
- "stacked-avatars__visible": "_stacked-avatars__visible_7icu0_16",
13
- "stacked-avatars__visible_size_sm": "_stacked-avatars__visible_size_sm_7icu0_34",
14
- "stacked-avatars__visible_size_md": "_stacked-avatars__visible_size_md_7icu0_38",
15
- "stacked-avatars__visible_size_lg": "_stacked-avatars__visible_size_lg_7icu0_42",
16
- "stacked-avatars__visible_size_xl": "_stacked-avatars__visible_size_xl_7icu0_46",
17
- "stacked-avatars__visible_size_2xl": "_stacked-avatars__visible_size_2xl_7icu0_50",
18
- "stacked-avatars__visible_size_3xl": "_stacked-avatars__visible_size_3xl_7icu0_54",
19
- "stacked-avatars__tooltip-content": "_stacked-avatars__tooltip-content_7icu0_59",
20
- "stacked-avatars__tooltip-user": "_stacked-avatars__tooltip-user_7icu0_69",
21
- "stacked-avatars__tooltip-text": "_stacked-avatars__tooltip-text_7icu0_77"
22
- };
23
- function f({
24
- users: s,
25
- visibleUsers: e = 3,
26
- size: d = "md"
27
- }) {
28
- return /* @__PURE__ */ t(
29
- n,
30
- {
31
- className: a["stacked-avatars__tooltip-content"],
32
- trigger: /* @__PURE__ */ l(i, { className: a["stacked-avatars"], children: [
33
- s.slice(0, e).map(({ color: c, className: r, ..._ }, m) => /* @__PURE__ */ t(i, { color: c, children: /* @__PURE__ */ t(
34
- o,
35
- {
36
- size: d,
37
- className: v(
38
- a["stacked-avatars__avatar"],
39
- a["stacked-avatars__avatar_color"],
40
- r
41
- ),
42
- style: { zIndex: m },
43
- ..._
44
- }
45
- ) }, _.username)),
46
- s.length > e && /* @__PURE__ */ t(
47
- i,
48
- {
49
- className: v(
50
- a["stacked-avatars__visible"],
51
- a[`stacked-avatars__visible_size_${d}`]
52
- ),
53
- style: { zIndex: e + 1 },
54
- children: /* @__PURE__ */ l(k, { size: "sm", children: [
55
- "+",
56
- s.length - e
57
- ] })
58
- }
59
- )
60
- ] }),
61
- children: s.map(({ color: c, className: r, ..._ }) => /* @__PURE__ */ l(
62
- i,
63
- {
64
- color: c,
65
- className: a["stacked-avatars__tooltip-user"],
66
- children: [
67
- /* @__PURE__ */ t(
68
- o,
69
- {
70
- className: v(a["stacked-avatars__avatar_color"], r),
71
- ..._,
72
- size: "sm"
73
- },
74
- _.username
75
- ),
76
- /* @__PURE__ */ t(
77
- k,
78
- {
79
- color: "dimmer",
80
- className: a["stacked-avatars__tooltip-text"],
81
- children: _.username
82
- }
83
- )
84
- ]
85
- },
86
- _.username
87
- ))
88
- }
89
- );
90
- }
2
+ import { StackedAvatars as a } from "./stacked-avatars.js";
91
3
  export {
92
- f as StackedAvatars
4
+ a as StackedAvatars
93
5
  };
@@ -0,0 +1,18 @@
1
+ import { Avatar } from '../avatar';
2
+ import { Color } from '../view';
3
+ interface StackedAvatarsProps {
4
+ /** User objects */
5
+ users: Array<Avatar.Props & {
6
+ /** Ring color around the avatar */
7
+ color: Color;
8
+ }>;
9
+ /** The maximum number of user to display. Defaults to 3. */
10
+ visibleUsers?: number;
11
+ /** The size of the avatars. Defaults to "md". */
12
+ size?: Avatar.Props["size"];
13
+ }
14
+ declare function StackedAvatars({ users, visibleUsers, size, }: StackedAvatarsProps): import("react/jsx-runtime").JSX.Element;
15
+ export { StackedAvatars };
16
+ export declare namespace StackedAvatars {
17
+ type Props = StackedAvatarsProps;
18
+ }
@@ -0,0 +1,92 @@
1
+ import { jsx as t, jsxs as c } from "react/jsx-runtime";
2
+ import { c as v } from "../../clsx-OuTLNxxd.js";
3
+ import { T as x } from "../../tooltip-oCp-elli.js";
4
+ import { View as r } from "../view/view.js";
5
+ import { Avatar as o } from "../avatar/avatar.js";
6
+ import { Text as k } from "../text/text.js";
7
+ import '../../stacked-avatars.css';const a = {
8
+ "stacked-avatars": "_stacked-avatars_qhxl3_2",
9
+ "stacked-avatars__avatar": "_stacked-avatars__avatar_qhxl3_8",
10
+ "stacked-avatars__avatar_color": "_stacked-avatars__avatar_color_qhxl3_13",
11
+ "stacked-avatars__visible": "_stacked-avatars__visible_qhxl3_17",
12
+ "stacked-avatars__visible_size_sm": "_stacked-avatars__visible_size_sm_qhxl3_35",
13
+ "stacked-avatars__visible_size_md": "_stacked-avatars__visible_size_md_qhxl3_39",
14
+ "stacked-avatars__visible_size_lg": "_stacked-avatars__visible_size_lg_qhxl3_43",
15
+ "stacked-avatars__visible_size_xl": "_stacked-avatars__visible_size_xl_qhxl3_47",
16
+ "stacked-avatars__visible_size_2xl": "_stacked-avatars__visible_size_2xl_qhxl3_51",
17
+ "stacked-avatars__visible_size_3xl": "_stacked-avatars__visible_size_3xl_qhxl3_55",
18
+ "stacked-avatars__tooltip-content": "_stacked-avatars__tooltip-content_qhxl3_60",
19
+ "stacked-avatars__tooltip-user": "_stacked-avatars__tooltip-user_qhxl3_70",
20
+ "stacked-avatars__tooltip-text": "_stacked-avatars__tooltip-text_qhxl3_78"
21
+ };
22
+ function f({
23
+ users: s,
24
+ visibleUsers: e = 3,
25
+ size: d = "md"
26
+ }) {
27
+ return /* @__PURE__ */ t(
28
+ x,
29
+ {
30
+ className: a["stacked-avatars__tooltip-content"],
31
+ trigger: /* @__PURE__ */ c(r, { className: a["stacked-avatars"], children: [
32
+ s.slice(0, e).map(({ color: l, className: i, ..._ }, m) => /* @__PURE__ */ t(r, { color: l, children: /* @__PURE__ */ t(
33
+ o,
34
+ {
35
+ size: d,
36
+ className: v(
37
+ a["stacked-avatars__avatar"],
38
+ a["stacked-avatars__avatar_color"],
39
+ i
40
+ ),
41
+ style: { zIndex: m },
42
+ ..._
43
+ }
44
+ ) }, _.username)),
45
+ s.length > e && /* @__PURE__ */ t(
46
+ r,
47
+ {
48
+ className: v(
49
+ a["stacked-avatars__visible"],
50
+ a[`stacked-avatars__visible_size_${d}`]
51
+ ),
52
+ style: { zIndex: e + 1 },
53
+ children: /* @__PURE__ */ c(k, { size: "sm", children: [
54
+ "+",
55
+ s.length - e
56
+ ] })
57
+ }
58
+ )
59
+ ] }),
60
+ children: s.map(({ color: l, className: i, ..._ }) => /* @__PURE__ */ c(
61
+ r,
62
+ {
63
+ color: l,
64
+ className: a["stacked-avatars__tooltip-user"],
65
+ children: [
66
+ /* @__PURE__ */ t(
67
+ o,
68
+ {
69
+ className: v(a["stacked-avatars__avatar_color"], i),
70
+ ..._,
71
+ size: "sm"
72
+ },
73
+ _.username
74
+ ),
75
+ /* @__PURE__ */ t(
76
+ k,
77
+ {
78
+ color: "dimmer",
79
+ className: a["stacked-avatars__tooltip-text"],
80
+ children: _.username
81
+ }
82
+ )
83
+ ]
84
+ },
85
+ _.username
86
+ ))
87
+ }
88
+ );
89
+ }
90
+ export {
91
+ f as StackedAvatars
92
+ };
@@ -1,17 +1 @@
1
- import { useRender } from '@base-ui/react';
2
- import { Size } from '../../styles/tokens';
3
- import { IconName } from '../icon/icon-names';
4
- import { Color } from '../view';
5
- export interface StatusBannerProps extends Omit<useRender.ComponentProps<"div">, "children"> {
6
- /** Communicate purpose with color */
7
- color?: Color;
8
- /** Icon on the left side */
9
- icon: IconName;
10
- /** Optional title */
11
- title?: string;
12
- /** Actual content of the status banner */
13
- description: string;
14
- /** Size, defaults to lg */
15
- size?: Extract<Size, "md" | "lg">;
16
- }
17
- export declare function StatusBanner({ color, icon, title, description, size, render, className, ...props }: StatusBannerProps): import("react/jsx-runtime").JSX.Element;
1
+ export { StatusBanner } from './status-banner';
@@ -1,72 +1,5 @@
1
1
  "use client";
2
- import { jsxs as _, jsx as s } from "react/jsx-runtime";
3
- import { c as b } from "../../clsx-OuTLNxxd.js";
4
- import { Heading as d } from "../heading/index.js";
5
- import { Icon as g } from "../icon/index.js";
6
- import { Text as p } from "../text/index.js";
7
- import { View as i } from "../view/index.js";
8
- import '../../index3.css';const t = {
9
- "status-banner": "_status-banner_zygt6_1",
10
- "status-banner_variant_neutral": "_status-banner_variant_neutral_zygt6_14",
11
- "status-banner_variant_colorway": "_status-banner_variant_colorway_zygt6_20",
12
- "status-banner_size_md": "_status-banner_size_md_zygt6_26",
13
- "status-banner_size_lg": "_status-banner_size_lg_zygt6_32",
14
- "status-banner__content": "_status-banner__content_zygt6_38",
15
- "status-banner__description": "_status-banner__description_zygt6_44",
16
- "status-banner__close": "_status-banner__close_zygt6_49"
17
- }, a = {
18
- md: {
19
- icon: "md",
20
- title: "md",
21
- description: "sm"
22
- },
23
- lg: {
24
- icon: "xl",
25
- title: "lg",
26
- description: "md"
27
- }
28
- };
29
- function w({
30
- color: e,
31
- icon: r,
32
- title: o,
33
- description: l,
34
- size: n = "lg",
35
- render: u,
36
- className: c,
37
- ...m
38
- }) {
39
- return /* @__PURE__ */ _(
40
- i,
41
- {
42
- render: u,
43
- ...m,
44
- color: e,
45
- className: b(
46
- t["status-banner"],
47
- t[`status-banner_size_${n}`],
48
- e ? t["status-banner_variant_colorway"] : t["status-banner_variant_neutral"],
49
- c
50
- ),
51
- children: [
52
- r ? /* @__PURE__ */ s(g, { name: r, size: a[n].icon }) : null,
53
- /* @__PURE__ */ _(i, { className: t["status-banner__content"], children: [
54
- /* @__PURE__ */ s(d, { level: 1, size: a[n].title, color: "inherit", children: o }),
55
- /* @__PURE__ */ s(
56
- p,
57
- {
58
- className: t["status-banner__description"],
59
- multiline: !0,
60
- size: a[n].description,
61
- color: "inherit",
62
- children: l
63
- }
64
- )
65
- ] })
66
- ]
67
- }
68
- );
69
- }
2
+ import { StatusBanner as n } from "./status-banner.js";
70
3
  export {
71
- w as StatusBanner
4
+ n as StatusBanner
72
5
  };
@@ -0,0 +1,22 @@
1
+ import { useRender } from '@base-ui/react';
2
+ import { Size } from '../../styles/tokens';
3
+ import { Icon } from '../icon';
4
+ import { Color } from '../view';
5
+ type StatusBannerSize = Extract<Size, "md" | "lg">;
6
+ interface StatusBannerProps extends Omit<useRender.ComponentProps<"div">, "children"> {
7
+ /** Communicate purpose with color */
8
+ color?: Color;
9
+ /** Icon on the left side */
10
+ icon: Icon.Name;
11
+ /** Optional title */
12
+ title?: string;
13
+ /** Actual content of the status banner */
14
+ description: string;
15
+ /** Size, defaults to lg */
16
+ size?: StatusBannerSize;
17
+ }
18
+ declare function StatusBanner({ color, icon, title, description, size, render, className, ...props }: StatusBannerProps): import("react/jsx-runtime").JSX.Element;
19
+ export { StatusBanner };
20
+ export declare namespace StatusBanner {
21
+ type Props = StatusBannerProps;
22
+ }
@@ -0,0 +1,71 @@
1
+ import { jsxs as _, jsx as s } from "react/jsx-runtime";
2
+ import { c as b } from "../../clsx-OuTLNxxd.js";
3
+ import { View as i } from "../view/view.js";
4
+ import { Icon as d } from "../icon/icon.js";
5
+ import { Heading as p } from "../heading/heading.js";
6
+ import { Text as y } from "../text/text.js";
7
+ import '../../status-banner.css';const t = {
8
+ "status-banner": "_status-banner_1ci6y_2",
9
+ "status-banner_variant_neutral": "_status-banner_variant_neutral_1ci6y_15",
10
+ "status-banner_variant_colorway": "_status-banner_variant_colorway_1ci6y_21",
11
+ "status-banner_size_md": "_status-banner_size_md_1ci6y_27",
12
+ "status-banner_size_lg": "_status-banner_size_lg_1ci6y_33",
13
+ "status-banner__content": "_status-banner__content_1ci6y_39",
14
+ "status-banner__description": "_status-banner__description_1ci6y_45",
15
+ "status-banner__close": "_status-banner__close_1ci6y_50"
16
+ }, a = {
17
+ md: {
18
+ icon: "md",
19
+ title: "md",
20
+ description: "sm"
21
+ },
22
+ lg: {
23
+ icon: "xl",
24
+ title: "lg",
25
+ description: "md"
26
+ }
27
+ };
28
+ function w({
29
+ color: e,
30
+ icon: r,
31
+ title: c,
32
+ description: o,
33
+ size: n = "lg",
34
+ render: l,
35
+ className: u,
36
+ ...m
37
+ }) {
38
+ return /* @__PURE__ */ _(
39
+ i,
40
+ {
41
+ render: l,
42
+ ...m,
43
+ color: e,
44
+ className: b(
45
+ t["status-banner"],
46
+ t[`status-banner_size_${n}`],
47
+ e ? t["status-banner_variant_colorway"] : t["status-banner_variant_neutral"],
48
+ u
49
+ ),
50
+ children: [
51
+ r ? /* @__PURE__ */ s(d, { name: r, size: a[n].icon }) : null,
52
+ /* @__PURE__ */ _(i, { className: t["status-banner__content"], children: [
53
+ /* @__PURE__ */ s(p, { level: 1, size: a[n].title, color: "inherit", children: c }),
54
+ /* @__PURE__ */ s(
55
+ y,
56
+ {
57
+ className: t["status-banner__description"],
58
+ multiline: !0,
59
+ size: a[n].description,
60
+ color: "inherit",
61
+ children: o
62
+ }
63
+ )
64
+ ] })
65
+ ]
66
+ }
67
+ );
68
+ }
69
+ export {
70
+ w as StatusBanner
71
+ };
@@ -1,27 +1,2 @@
1
- import { useRender } from '@base-ui/react';
2
- import { Color } from '../view';
3
- export interface SurfaceProps extends useRender.ComponentProps<"div"> {
4
- /**
5
- * Explicitly sets the background color of the surface.
6
- * If this prop is set, the `elevated` prop will be ignored.
7
- */
8
- background?: Background;
9
- /**
10
- * If true, the surface will be elevated by one level from the current
11
- * context. If false, the surface will be at the same level as before.
12
- *
13
- * If the `background` prop is set, this prop will be ignored.
14
- */
15
- elevated?: boolean;
16
- /**
17
- * Add CSS color variables.
18
- */
19
- color?: Color;
20
- }
21
- export declare const Surface: {
22
- ({ background, elevated, className, ...props }: SurfaceProps): import("react/jsx-runtime").JSX.Element;
23
- displayName: string;
24
- };
25
- declare const backgrounds: readonly ["root", "default", "higher", "highest"];
26
- export type Background = (typeof backgrounds)[number];
27
- export {};
1
+ export { Surface } from './surface';
2
+ export * from './surface.types';
@@ -1,42 +1,5 @@
1
1
  "use client";
2
- import { jsx as s } from "react/jsx-runtime";
3
- import { c as f } from "../../clsx-OuTLNxxd.js";
4
- import { createContext as i, useContext as l } from "react";
5
- import { View as h } from "../view/index.js";
6
- import '../../index17.css';const _ = "_surface_65s6k_1", a = {
7
- surface: _,
8
- "surface--root": "_surface--root_65s6k_5",
9
- "surface--default": "_surface--default_65s6k_13",
10
- "surface--higher": "_surface--higher_65s6k_21",
11
- "surface--highest": "_surface--highest_65s6k_29"
12
- }, c = i(0), m = ({
13
- background: e,
14
- elevated: r,
15
- className: n,
16
- ...u
17
- }) => {
18
- let t = l(c);
19
- return e ? t = d(e) : r && t++, /* @__PURE__ */ s(c.Provider, { value: t, children: /* @__PURE__ */ s(
20
- h,
21
- {
22
- className: f(
23
- a.surface,
24
- a[`surface--${g(t)}`],
25
- n
26
- ),
27
- ...u
28
- }
29
- ) });
30
- };
31
- m.displayName = "Surface";
32
- const o = ["root", "default", "higher", "highest"];
33
- function d(e = "root") {
34
- const r = o.indexOf(e);
35
- return Math.min(Math.max(r, 0), o.length - 1);
36
- }
37
- function g(e = 0) {
38
- return o[e] || "root";
39
- }
2
+ import { Surface as c } from "./surface.js";
40
3
  export {
41
- m as Surface
4
+ c as Surface
42
5
  };
@@ -0,0 +1,26 @@
1
+ import { useRender } from '@base-ui/react';
2
+ import { Color } from '../view';
3
+ import { Background } from './surface.types';
4
+ interface SurfaceProps extends useRender.ComponentProps<"div"> {
5
+ /**
6
+ * Explicitly sets the background color of the surface.
7
+ * If this prop is set, the `elevated` prop will be ignored.
8
+ */
9
+ background?: Background;
10
+ /**
11
+ * If true, the surface will be elevated by one level from the current
12
+ * context. If false, the surface will be at the same level as before.
13
+ *
14
+ * If the `background` prop is set, this prop will be ignored.
15
+ */
16
+ elevated?: boolean;
17
+ /**
18
+ * Add CSS color variables.
19
+ */
20
+ color?: Color;
21
+ }
22
+ declare function Surface({ background, elevated, className, ...props }: SurfaceProps): import("react/jsx-runtime").JSX.Element;
23
+ export { Surface };
24
+ export declare namespace Surface {
25
+ type Props = SurfaceProps;
26
+ }
@@ -0,0 +1,36 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { c as u } from "../../clsx-OuTLNxxd.js";
3
+ import { createContext as i, useContext as h } from "react";
4
+ import { View as l } from "../view/view.js";
5
+ import '../../surface.css';const _ = "_surface_38ylh_2", s = {
6
+ surface: _,
7
+ "surface--root": "_surface--root_38ylh_6",
8
+ "surface--default": "_surface--default_38ylh_14",
9
+ "surface--higher": "_surface--higher_38ylh_22",
10
+ "surface--highest": "_surface--highest_38ylh_30"
11
+ }, c = i(0);
12
+ function p({ background: e, elevated: r, className: n, ...f }) {
13
+ let t = h(c);
14
+ return e ? t = m(e) : r && t++, /* @__PURE__ */ a(c.Provider, { value: t, children: /* @__PURE__ */ a(
15
+ l,
16
+ {
17
+ className: u(
18
+ s.surface,
19
+ s[`surface--${g(t)}`],
20
+ n
21
+ ),
22
+ ...f
23
+ }
24
+ ) });
25
+ }
26
+ const o = ["root", "default", "higher", "highest"];
27
+ function m(e = "root") {
28
+ const r = o.indexOf(e);
29
+ return Math.min(Math.max(r, 0), o.length - 1);
30
+ }
31
+ function g(e = 0) {
32
+ return o[e] || "root";
33
+ }
34
+ export {
35
+ p as Surface
36
+ };
@@ -0,0 +1 @@
1
+ export type Background = "root" | "default" | "higher" | "highest";
@@ -1,5 +1 @@
1
- import { Switch as SwitchPrimitive } from '@base-ui/react/switch';
2
- import { Color } from '../view';
3
- export declare function Switch({ color, ...props }: SwitchPrimitive.Root.Props & {
4
- color?: Color;
5
- }): import("react/jsx-runtime").JSX.Element;
1
+ export { Switch } from './switch';