@mrpelz/uikit-ish 7.8.0 → 7.10.0

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 (308) hide show
  1. package/dist/components/accordion/main.d.ts +12 -0
  2. package/dist/components/accordion/main.d.ts.map +1 -0
  3. package/dist/components/accordion/main.js +20 -0
  4. package/dist/components/accordion/main.js.map +1 -0
  5. package/dist/components/accordion/style.css +23 -0
  6. package/dist/components/action-sheet/main.d.ts +22 -16
  7. package/dist/components/action-sheet/main.d.ts.map +1 -1
  8. package/dist/components/action-sheet/main.js +89 -19
  9. package/dist/components/action-sheet/main.js.map +1 -1
  10. package/dist/components/action-sheet/props.d.ts +17 -5
  11. package/dist/components/action-sheet/props.d.ts.map +1 -1
  12. package/dist/components/action-sheet/style.css +24 -0
  13. package/dist/components/activity-view/main.d.ts +15 -4
  14. package/dist/components/activity-view/main.d.ts.map +1 -1
  15. package/dist/components/activity-view/main.js +27 -14
  16. package/dist/components/activity-view/main.js.map +1 -1
  17. package/dist/components/activity-view/props.d.ts +2 -10
  18. package/dist/components/activity-view/props.d.ts.map +1 -1
  19. package/dist/components/activity-view/style.css +29 -67
  20. package/dist/components/alert/main.d.ts +8 -7
  21. package/dist/components/alert/main.d.ts.map +1 -1
  22. package/dist/components/alert/main.js +32 -19
  23. package/dist/components/alert/main.js.map +1 -1
  24. package/dist/components/alert/props.d.ts +13 -2
  25. package/dist/components/alert/props.d.ts.map +1 -1
  26. package/dist/components/alert/style.css +36 -50
  27. package/dist/components/avatar/main.d.ts +5 -3
  28. package/dist/components/avatar/main.d.ts.map +1 -1
  29. package/dist/components/avatar/main.js +10 -8
  30. package/dist/components/avatar/main.js.map +1 -1
  31. package/dist/components/avatar/props.d.ts +4 -0
  32. package/dist/components/avatar/props.d.ts.map +1 -1
  33. package/dist/components/avatar/style.css +1 -7
  34. package/dist/components/badge/main.d.ts +3 -3
  35. package/dist/components/badge/main.d.ts.map +1 -1
  36. package/dist/components/badge/main.js +9 -9
  37. package/dist/components/badge/main.js.map +1 -1
  38. package/dist/components/badge/props.d.ts +4 -3
  39. package/dist/components/badge/props.d.ts.map +1 -1
  40. package/dist/components/badge/style.css +10 -4
  41. package/dist/components/button/main.d.ts.map +1 -1
  42. package/dist/components/button/main.js +15 -15
  43. package/dist/components/button/main.js.map +1 -1
  44. package/dist/components/button/props.d.ts +8 -8
  45. package/dist/components/button/props.d.ts.map +1 -1
  46. package/dist/components/button/style.css +37 -55
  47. package/dist/components/checkbox/main.d.ts.map +1 -1
  48. package/dist/components/checkbox/main.js +5 -7
  49. package/dist/components/checkbox/main.js.map +1 -1
  50. package/dist/components/checkbox/style.css +5 -8
  51. package/dist/components/collapsible/main.d.ts +9 -0
  52. package/dist/components/collapsible/main.d.ts.map +1 -0
  53. package/dist/components/collapsible/main.js +19 -0
  54. package/dist/components/collapsible/main.js.map +1 -0
  55. package/dist/components/collapsible/style.css +23 -0
  56. package/dist/components/color-picker/main.d.ts +27 -4
  57. package/dist/components/color-picker/main.d.ts.map +1 -1
  58. package/dist/components/color-picker/main.js +292 -110
  59. package/dist/components/color-picker/main.js.map +1 -1
  60. package/dist/components/color-picker/props.d.ts +64 -15
  61. package/dist/components/color-picker/props.d.ts.map +1 -1
  62. package/dist/components/color-picker/style.css +133 -65
  63. package/dist/components/contextual-menu/main.d.ts +11 -7
  64. package/dist/components/contextual-menu/main.d.ts.map +1 -1
  65. package/dist/components/contextual-menu/main.js +207 -202
  66. package/dist/components/contextual-menu/main.js.map +1 -1
  67. package/dist/components/contextual-menu/props.d.ts +21 -34
  68. package/dist/components/contextual-menu/props.d.ts.map +1 -1
  69. package/dist/components/contextual-menu/style.css +63 -34
  70. package/dist/components/date-picker/handle.d.ts +41 -0
  71. package/dist/components/date-picker/handle.d.ts.map +1 -0
  72. package/dist/components/date-picker/handle.js +47 -0
  73. package/dist/components/date-picker/handle.js.map +1 -0
  74. package/dist/components/date-picker/main.d.ts +31 -49
  75. package/dist/components/date-picker/main.d.ts.map +1 -1
  76. package/dist/components/date-picker/main.js +373 -178
  77. package/dist/components/date-picker/main.js.map +1 -1
  78. package/dist/components/date-picker/pager.d.ts +24 -0
  79. package/dist/components/date-picker/pager.d.ts.map +1 -0
  80. package/dist/components/date-picker/pager.js +307 -0
  81. package/dist/components/date-picker/pager.js.map +1 -0
  82. package/dist/components/date-picker/props.d.ts +98 -27
  83. package/dist/components/date-picker/props.d.ts.map +1 -1
  84. package/dist/components/date-picker/style.css +110 -118
  85. package/dist/components/drawer/main.d.ts +31 -0
  86. package/dist/components/drawer/main.d.ts.map +1 -0
  87. package/dist/components/drawer/main.js +119 -0
  88. package/dist/components/drawer/main.js.map +1 -0
  89. package/dist/components/drawer/props.d.ts +39 -0
  90. package/dist/components/drawer/props.d.ts.map +1 -0
  91. package/dist/components/drawer/props.js +2 -0
  92. package/dist/components/drawer/props.js.map +1 -0
  93. package/dist/components/drawer/style.css +135 -0
  94. package/dist/components/edit-menu/main.d.ts +7 -7
  95. package/dist/components/edit-menu/main.d.ts.map +1 -1
  96. package/dist/components/edit-menu/main.js +57 -40
  97. package/dist/components/edit-menu/main.js.map +1 -1
  98. package/dist/components/edit-menu/props.d.ts +14 -1
  99. package/dist/components/edit-menu/props.d.ts.map +1 -1
  100. package/dist/components/edit-menu/style.css +15 -8
  101. package/dist/components/form/main.d.ts +8 -0
  102. package/dist/components/form/main.d.ts.map +1 -1
  103. package/dist/components/form/main.js +18 -5
  104. package/dist/components/form/main.js.map +1 -1
  105. package/dist/components/form/props.d.ts +1 -2
  106. package/dist/components/form/props.d.ts.map +1 -1
  107. package/dist/components/glass/main.d.ts +1 -1
  108. package/dist/components/glass/main.js +4 -4
  109. package/dist/components/glass/main.js.map +1 -1
  110. package/dist/components/glass/props.d.ts +5 -5
  111. package/dist/components/glass/props.d.ts.map +1 -1
  112. package/dist/components/glass/style.css +176 -161
  113. package/dist/components/header/main.d.ts +5 -4
  114. package/dist/components/header/main.d.ts.map +1 -1
  115. package/dist/components/header/main.js +64 -34
  116. package/dist/components/header/main.js.map +1 -1
  117. package/dist/components/header/props.d.ts +2 -3
  118. package/dist/components/header/props.d.ts.map +1 -1
  119. package/dist/components/header/style.css +46 -65
  120. package/dist/components/index.d.ts +27 -23
  121. package/dist/components/index.d.ts.map +1 -1
  122. package/dist/components/index.js +17 -13
  123. package/dist/components/index.js.map +1 -1
  124. package/dist/components/layout/main.d.ts +2 -2
  125. package/dist/components/layout/main.d.ts.map +1 -1
  126. package/dist/components/layout/main.js +63 -167
  127. package/dist/components/layout/main.js.map +1 -1
  128. package/dist/components/layout/props.d.ts +2 -20
  129. package/dist/components/layout/props.d.ts.map +1 -1
  130. package/dist/components/layout/style.css +20 -91
  131. package/dist/components/list/main.d.ts +58 -10
  132. package/dist/components/list/main.d.ts.map +1 -1
  133. package/dist/components/list/main.js +1022 -465
  134. package/dist/components/list/main.js.map +1 -1
  135. package/dist/components/list/props.d.ts +211 -21
  136. package/dist/components/list/props.d.ts.map +1 -1
  137. package/dist/components/list/reorder.d.ts +146 -0
  138. package/dist/components/list/reorder.d.ts.map +1 -0
  139. package/dist/components/list/reorder.js +819 -0
  140. package/dist/components/list/reorder.js.map +1 -0
  141. package/dist/components/list/select.d.ts +6 -0
  142. package/dist/components/list/select.d.ts.map +1 -0
  143. package/dist/components/list/select.js +141 -0
  144. package/dist/components/list/select.js.map +1 -0
  145. package/dist/components/list/style.css +492 -507
  146. package/dist/components/list/swipe-actions-handle.d.ts +40 -0
  147. package/dist/components/list/swipe-actions-handle.d.ts.map +1 -0
  148. package/dist/components/list/swipe-actions-handle.js +51 -0
  149. package/dist/components/list/swipe-actions-handle.js.map +1 -0
  150. package/dist/components/menu/main.d.ts +102 -32
  151. package/dist/components/menu/main.d.ts.map +1 -1
  152. package/dist/components/menu/main.js +510 -99
  153. package/dist/components/menu/main.js.map +1 -1
  154. package/dist/components/menu/props.d.ts +5 -5
  155. package/dist/components/menu/props.d.ts.map +1 -1
  156. package/dist/components/menu/style.css +35 -43
  157. package/dist/components/navigation/main.d.ts +14 -2
  158. package/dist/components/navigation/main.d.ts.map +1 -1
  159. package/dist/components/navigation/main.js +437 -119
  160. package/dist/components/navigation/main.js.map +1 -1
  161. package/dist/components/navigation/props.d.ts +53 -3
  162. package/dist/components/navigation/props.d.ts.map +1 -1
  163. package/dist/components/navigation/style.css +56 -9
  164. package/dist/components/page/main.d.ts.map +1 -1
  165. package/dist/components/page/main.js +13 -8
  166. package/dist/components/page/main.js.map +1 -1
  167. package/dist/components/page/props.d.ts +8 -0
  168. package/dist/components/page/props.d.ts.map +1 -1
  169. package/dist/components/page/style.css +39 -4
  170. package/dist/components/page-control/main.d.ts +2 -2
  171. package/dist/components/page-control/main.d.ts.map +1 -1
  172. package/dist/components/page-control/main.js +66 -32
  173. package/dist/components/page-control/main.js.map +1 -1
  174. package/dist/components/page-control/props.d.ts +10 -2
  175. package/dist/components/page-control/props.d.ts.map +1 -1
  176. package/dist/components/page-control/style.css +7 -2
  177. package/dist/components/popover/main.d.ts +11 -6
  178. package/dist/components/popover/main.d.ts.map +1 -1
  179. package/dist/components/popover/main.js +63 -38
  180. package/dist/components/popover/main.js.map +1 -1
  181. package/dist/components/popover/props.d.ts +7 -6
  182. package/dist/components/popover/props.d.ts.map +1 -1
  183. package/dist/components/popover/style.css +54 -4
  184. package/dist/components/progress/main.d.ts +2 -3
  185. package/dist/components/progress/main.d.ts.map +1 -1
  186. package/dist/components/progress/main.js +148 -29
  187. package/dist/components/progress/main.js.map +1 -1
  188. package/dist/components/progress/props.d.ts +43 -9
  189. package/dist/components/progress/props.d.ts.map +1 -1
  190. package/dist/components/progress/style.css +82 -50
  191. package/dist/components/roll/main.d.ts +1 -1
  192. package/dist/components/roll/main.d.ts.map +1 -1
  193. package/dist/components/roll/main.js +90 -34
  194. package/dist/components/roll/main.js.map +1 -1
  195. package/dist/components/roll/props.d.ts +25 -8
  196. package/dist/components/roll/props.d.ts.map +1 -1
  197. package/dist/components/roll/style.css +12 -24
  198. package/dist/components/segmented/main.d.ts.map +1 -1
  199. package/dist/components/segmented/main.js +47 -30
  200. package/dist/components/segmented/main.js.map +1 -1
  201. package/dist/components/segmented/style.css +16 -23
  202. package/dist/components/sheet/main.d.ts +25 -15
  203. package/dist/components/sheet/main.d.ts.map +1 -1
  204. package/dist/components/sheet/main.js +66 -78
  205. package/dist/components/sheet/main.js.map +1 -1
  206. package/dist/components/sheet/props.d.ts +37 -3
  207. package/dist/components/sheet/props.d.ts.map +1 -1
  208. package/dist/components/sheet/style.css +183 -45
  209. package/dist/components/sidebar/main.d.ts.map +1 -1
  210. package/dist/components/sidebar/main.js +9 -13
  211. package/dist/components/sidebar/main.js.map +1 -1
  212. package/dist/components/sidebar/style.css +20 -14
  213. package/dist/components/slider/main.d.ts.map +1 -1
  214. package/dist/components/slider/main.js +23 -22
  215. package/dist/components/slider/main.js.map +1 -1
  216. package/dist/components/slider/props.d.ts +1 -2
  217. package/dist/components/slider/props.d.ts.map +1 -1
  218. package/dist/components/slider/style.css +27 -53
  219. package/dist/components/stepper/main.d.ts +4 -6
  220. package/dist/components/stepper/main.d.ts.map +1 -1
  221. package/dist/components/stepper/main.js +29 -25
  222. package/dist/components/stepper/main.js.map +1 -1
  223. package/dist/components/stepper/style.css +12 -16
  224. package/dist/components/switch/main.d.ts.map +1 -1
  225. package/dist/components/switch/main.js +40 -28
  226. package/dist/components/switch/main.js.map +1 -1
  227. package/dist/components/switch/props.d.ts +7 -5
  228. package/dist/components/switch/props.d.ts.map +1 -1
  229. package/dist/components/switch/style.css +40 -17
  230. package/dist/components/symbol/main.d.ts +2 -2
  231. package/dist/components/symbol/main.d.ts.map +1 -1
  232. package/dist/components/symbol/main.js +36 -28
  233. package/dist/components/symbol/main.js.map +1 -1
  234. package/dist/components/symbol/props.d.ts +39 -4
  235. package/dist/components/symbol/props.d.ts.map +1 -1
  236. package/dist/components/symbol/style.css +26 -5
  237. package/dist/components/tab-bar/main.d.ts +2 -2
  238. package/dist/components/tab-bar/main.d.ts.map +1 -1
  239. package/dist/components/tab-bar/main.js +133 -101
  240. package/dist/components/tab-bar/main.js.map +1 -1
  241. package/dist/components/tab-bar/props.d.ts +6 -6
  242. package/dist/components/tab-bar/props.d.ts.map +1 -1
  243. package/dist/components/tab-bar/style.css +113 -99
  244. package/dist/components/text-field/main.d.ts +3 -2
  245. package/dist/components/text-field/main.d.ts.map +1 -1
  246. package/dist/components/text-field/main.js +29 -30
  247. package/dist/components/text-field/main.js.map +1 -1
  248. package/dist/components/text-field/props.d.ts +23 -1
  249. package/dist/components/text-field/props.d.ts.map +1 -1
  250. package/dist/components/text-field/style.css +122 -82
  251. package/dist/components/toolbar/main.js +27 -27
  252. package/dist/components/toolbar/main.js.map +1 -1
  253. package/dist/components/toolbar/props.d.ts +10 -4
  254. package/dist/components/toolbar/props.d.ts.map +1 -1
  255. package/dist/components/toolbar/style.css +39 -33
  256. package/dist/components/tooltip/main.d.ts +10 -9
  257. package/dist/components/tooltip/main.d.ts.map +1 -1
  258. package/dist/components/tooltip/main.js +39 -10
  259. package/dist/components/tooltip/main.js.map +1 -1
  260. package/dist/components/tooltip/props.d.ts +2 -0
  261. package/dist/components/tooltip/props.d.ts.map +1 -1
  262. package/dist/components/tooltip/style.css +16 -16
  263. package/dist/components/typography/main.d.ts +2 -2
  264. package/dist/components/typography/main.d.ts.map +1 -1
  265. package/dist/components/typography/main.js +24 -16
  266. package/dist/components/typography/main.js.map +1 -1
  267. package/dist/components/typography/props.d.ts +11 -18
  268. package/dist/components/typography/props.d.ts.map +1 -1
  269. package/dist/components/typography/style.css +503 -623
  270. package/dist/components/utils/main.d.ts +78 -8
  271. package/dist/components/utils/main.d.ts.map +1 -1
  272. package/dist/components/utils/main.js +235 -16
  273. package/dist/components/utils/main.js.map +1 -1
  274. package/dist/components/utils/props.d.ts +27 -4
  275. package/dist/components/utils/props.d.ts.map +1 -1
  276. package/dist/components/utils/style.css +31 -18
  277. package/dist/components/viewport/edge-effect.d.ts +10 -0
  278. package/dist/components/viewport/edge-effect.d.ts.map +1 -0
  279. package/dist/components/viewport/edge-effect.js +100 -0
  280. package/dist/components/viewport/edge-effect.js.map +1 -0
  281. package/dist/components/viewport/edge.d.ts +39 -0
  282. package/dist/components/viewport/edge.d.ts.map +1 -0
  283. package/dist/components/viewport/edge.js +151 -0
  284. package/dist/components/viewport/edge.js.map +1 -0
  285. package/dist/components/viewport/input.d.ts +39 -0
  286. package/dist/components/viewport/input.d.ts.map +1 -0
  287. package/dist/components/viewport/input.js +280 -0
  288. package/dist/components/viewport/input.js.map +1 -0
  289. package/dist/components/viewport/main.d.ts +47 -9
  290. package/dist/components/viewport/main.d.ts.map +1 -1
  291. package/dist/components/viewport/main.js +745 -86
  292. package/dist/components/viewport/main.js.map +1 -1
  293. package/dist/components/viewport/padding.d.ts +78 -0
  294. package/dist/components/viewport/padding.d.ts.map +1 -0
  295. package/dist/components/viewport/padding.js +321 -0
  296. package/dist/components/viewport/padding.js.map +1 -0
  297. package/dist/components/viewport/props.d.ts +220 -11
  298. package/dist/components/viewport/props.d.ts.map +1 -1
  299. package/dist/components/viewport/style.css +377 -6
  300. package/dist/main.d.ts +0 -1
  301. package/dist/main.d.ts.map +1 -1
  302. package/dist/main.js.map +1 -1
  303. package/dist/styles.css +318 -302
  304. package/dist/styles.d.ts +2 -1
  305. package/dist/styles.d.ts.map +1 -1
  306. package/dist/styles.js +2 -1
  307. package/dist/styles.js.map +1 -1
  308. package/package.json +8 -16
@@ -0,0 +1,12 @@
1
+ import './style.css';
2
+ import { Accordion as BaseAccordion } from '@base-ui/react/accordion';
3
+ export declare const Accordion: {
4
+ Panel: import("preact").FunctionalComponent<import("react").PropsWithoutRef<Omit<Omit<import("@base-ui/react/accordion").AccordionPanelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref">> & {
5
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
6
+ }>;
7
+ Root: <Value = any>(props: BaseAccordion.Root.Props<Value>) => import("react").JSX.Element;
8
+ Item: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/accordion").AccordionItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
9
+ Header: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/accordion").AccordionHeaderProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
10
+ Trigger: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/accordion").AccordionTriggerProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
11
+ };
12
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,0BAA0B,CAAC;AA2BtE,eAAO,MAAM,SAAS;;;;;;;;CAGrB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import './style.css';
3
+ import { Accordion as BaseAccordion } from '@base-ui/react/accordion';
4
+ import { forwardRef } from 'react';
5
+ import { cn } from '../utils/main.js';
6
+ // Base UI's Accordion (collapsibles, one open at a time unless `multiple`),
7
+ // its panels opening and closing in place as a list's collapsible rows do
8
+ // (see `List.AccordionPanel`): their height and opacity transitioning
9
+ // (300ms). Its other parts are Base UI's, rendered by what they collapse
10
+ // and toggle (e.g. an item a `List.Section`, its trigger in a
11
+ // `List.Header`, its panel a `List.Group`).
12
+ //
13
+ // Deviations: none (Base UI's, styled).
14
+ /** Base UI's `Accordion.Panel`, its height and opacity transitioning. */
15
+ const Panel = forwardRef(({ className, ...props }, ref) => (_jsx(BaseAccordion.Panel, { ref: ref, className: cn('uikit-accordion-panel', className), "data-accordion-part": "panel", ...props })));
16
+ export const Accordion = {
17
+ ...BaseAccordion,
18
+ Panel,
19
+ };
20
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/accordion/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAkB,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,4EAA4E;AAC5E,0EAA0E;AAC1E,sEAAsE;AACtE,yEAAyE;AACzE,8DAA8D;AAC9D,4CAA4C;AAC5C,EAAE;AACF,wCAAwC;AAExC,yEAAyE;AACzE,MAAM,KAAK,GAAG,UAAU,CAGtB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,aAAa,CAAC,KAAK,IAClB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,uBAAuB,EAAE,SAAS,CAAC,yBAC7B,OAAO,KACvB,KAAK,GACT,CACH,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,GAAG,aAAa;IAChB,KAAK;CACN,CAAC"}
@@ -0,0 +1,23 @@
1
+ /* Accordion (see main.tsx). */
2
+ @layer uikit-ish {
3
+ /* Its height (Base UI's, measured) and opacity transitioning, from and to
4
+ nothing (Base UI's starting and ending styles), as a list's collapsible
5
+ rows (List.AccordionPanel: 300ms). */
6
+ .uikit-accordion-panel {
7
+ overflow: clip;
8
+ height: var(--accordion-panel-height);
9
+ transition:
10
+ height 300ms ease,
11
+ opacity 300ms ease;
12
+
13
+ &[data-starting-style],
14
+ &[data-ending-style] {
15
+ height: 0;
16
+ opacity: 0;
17
+ }
18
+
19
+ @media (prefers-reduced-motion: reduce) {
20
+ transition: none;
21
+ }
22
+ }
23
+ }
@@ -1,24 +1,29 @@
1
1
  import '../glass/style.css';
2
+ import '../menu/style.css';
2
3
  import '../alert/style.css';
3
4
  import './style.css';
4
- import { Dialog as BaseDialog } from '@base-ui/react/dialog';
5
- import type { ActionSheetActionProps } from './props.js';
6
- export type { ActionSheetActionProps } from './props.js';
5
+ import { Popover as BasePopover } from '@base-ui/react/popover';
6
+ import { ReactElement } from 'react';
7
+ import type { ActionSheetActionProps, ActionSheetHandle, ActionSheetPopupProps } from './props.js';
8
+ export type { ActionSheetActionProps, ActionSheetActionVariant, ActionSheetHandle, ActionSheetPopupProps, } from './props.js';
9
+ /** `ActionSheet.createHandle`, in a component: made once, for its lifetime. */
10
+ export declare const useCreateActionSheetHandle: <Payload = unknown>() => ActionSheetHandle<Payload>;
7
11
  /**
8
- * An action sheet (UIKit `UIAlertController`, style `actionSheet`; Base
9
- * UI's `Dialog`): choices for an action, as a modal panel.
12
+ * An action sheet (Base UI's `Popover`, modal): choices for an action, at the control that
13
+ * presented it.
10
14
  */
11
15
  export declare const ActionSheet: {
12
- Popup: import("preact").FunctionalComponent<import("react").PropsWithoutRef<Omit<import("@base-ui/react/dialog").DialogPopupProps, "ref">> & {
16
+ Root: <Payload>({ modal, onOpenChange, onOpenChangeComplete, ...props }: BasePopover.Root.Props<Payload>) => ReactElement;
17
+ Popup: import("preact").FunctionalComponent<import("react").PropsWithoutRef<ActionSheetPopupProps> & {
13
18
  ref?: import("preact").Ref<HTMLDivElement> | undefined;
14
19
  }>;
15
20
  Header: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLDivElement>> & {
16
21
  ref?: import("preact").Ref<HTMLDivElement> | undefined;
17
22
  }>;
18
- Title: import("preact").FunctionalComponent<import("react").PropsWithoutRef<Omit<Omit<import("@base-ui/react/dialog").DialogTitleProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>, "ref">> & {
23
+ Title: import("preact").FunctionalComponent<import("react").PropsWithoutRef<Omit<Omit<import("@base-ui/react/popover").PopoverTitleProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>, "ref">> & {
19
24
  ref?: import("preact").Ref<HTMLHeadingElement> | undefined;
20
25
  }>;
21
- Description: import("preact").FunctionalComponent<import("react").PropsWithoutRef<Omit<Omit<import("@base-ui/react/dialog").DialogDescriptionProps, "ref"> & import("react").RefAttributes<HTMLParagraphElement>, "ref">> & {
26
+ Description: import("preact").FunctionalComponent<import("react").PropsWithoutRef<Omit<Omit<import("@base-ui/react/popover").PopoverDescriptionProps, "ref"> & import("react").RefAttributes<HTMLParagraphElement>, "ref">> & {
22
27
  ref?: import("preact").Ref<HTMLParagraphElement> | undefined;
23
28
  }>;
24
29
  Actions: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLDivElement>> & {
@@ -27,13 +32,14 @@ export declare const ActionSheet: {
27
32
  Action: import("preact").FunctionalComponent<import("react").PropsWithoutRef<ActionSheetActionProps> & {
28
33
  ref?: import("preact").Ref<HTMLButtonElement> | undefined;
29
34
  }>;
30
- Backdrop: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/dialog").DialogBackdropProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
31
- Close: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/dialog").DialogCloseProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
32
- Portal: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/dialog").DialogPortalProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
33
- Root: <Payload>(props: BaseDialog.Root.Props<Payload>) => import("react").JSX.Element;
34
- Viewport: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/dialog").DialogViewportProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
35
- Trigger: BaseDialog.Trigger;
36
- createHandle: typeof BaseDialog.createHandle;
37
- Handle: typeof BaseDialog.Handle;
35
+ createHandle: <Payload = unknown>() => ActionSheetHandle<Payload>;
36
+ Trigger: BasePopover.Trigger;
37
+ Portal: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/popover").PopoverPortalProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
38
+ Positioner: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/popover").PopoverPositionerProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
39
+ Arrow: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/popover").PopoverArrowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
40
+ Backdrop: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/popover").PopoverBackdropProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
41
+ Close: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/popover").PopoverCloseProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
42
+ Viewport: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/popover").PopoverViewportProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
43
+ Handle: typeof BasePopover.Handle;
38
44
  };
39
45
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/action-sheet/main.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAK7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEzD,YAAY,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAiFzD;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQvB,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/action-sheet/main.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAIL,YAAY,EAKb,MAAM,OAAO,CAAC;AAUf,OAAO,KAAK,EACV,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,YAAY,CAAC;AAqMpB,+EAA+E;AAC/E,eAAO,MAAM,0BAA0B,GACrC,OAAO,GAAG,OAAO,OACd,iBAAiB,CAAC,OAAO,CAG7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW;WAjMV,OAAO,2DAKlB,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAG,YAAY;;;;;;;;;;;;;;;;;;;mBA6K3B,OAAO,iBAAgB,iBAAiB,CAAC,OAAO,CAAC;;;;;;;;;CAyBtE,CAAC"}
@@ -1,35 +1,105 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import '../glass/style.css';
3
+ import '../menu/style.css';
3
4
  import '../alert/style.css';
4
5
  import './style.css';
5
- import { Dialog as BaseDialog } from '@base-ui/react/dialog';
6
- import { forwardRef } from 'react';
7
- import { AlertHeader } from '../alert/main.js';
8
- import { cn } from '../utils/main.js';
9
- // Source: Apple iOS 26 Figma (“Action Sheets”): an alert's panel (see
10
- // `Alert`) of a title and description and its actions, stacked (Secondary
11
- // and Destructive types: on a gray fill, the label's color, red). As an
12
- // alert: modal, at the viewport's center, the page dimmed behind it (Figma
13
- // has none); unlike one, dismissed by a press outside it (Base UI's
14
- // `Dialog`).
15
- /** The sheet at the viewport's center, the page dimmed behind it. */
16
- const Popup = forwardRef(({ className, ...props }, ref) => (_jsxs(BaseDialog.Portal, { children: [_jsx(BaseDialog.Backdrop, { className: "uikit-action-sheet-backdrop uikit-alert-backdrop", "data-action-sheet-part": "backdrop" }), _jsx(BaseDialog.Popup, { ref: ref, ...props, "data-action-sheet-part": "popup", className: cn('uikit-action-sheet-popup uikit-alert-panel uikit-glass-medium uikit-alert-centered', className) })] })));
17
- const Title = forwardRef(({ className, ...props }, ref) => (_jsx(BaseDialog.Title, { ref: ref, className: cn('uikit-action-sheet-title uikit-alert-title', className), "data-action-sheet-part": "title", ...props })));
18
- const Description = forwardRef(({ className, ...props }, ref) => (_jsx(BaseDialog.Description, { ref: ref, "data-action-sheet-part": "description", className: cn('uikit-action-sheet-description uikit-alert-description', className), ...props })));
6
+ import { Popover as BasePopover } from '@base-ui/react/popover';
7
+ import { createContext, forwardRef, useContext, useMemo, useState, } from 'react';
8
+ import { cn, useCollision, useForwardedRef, useGrowAvoidance, useInitialFocus, usePortalContainer, } from '../utils/main.js';
9
+ // An alert's panel (see `Alert`) of a title and description and its
10
+ // actions, stacked (secondary and destructive: on a gray fill, the label's
11
+ // color, red), at the control that presented it (below it, above it if there's no
12
+ // room; Base UI's `Popover`, positioned as a popover without an arrow,
13
+ // scaling in from it as menus); presented without one (e.g. by `open`), at
14
+ // its container's bottom, above its safe area. Modal: the page dimmed
15
+ // behind it, dismissed by a press outside it.
16
+ //
17
+ // In a regular width, a popover (with an arrow) may suit better: the app's
18
+ // choice (see `Popover`).
19
+ // The trigger it opened from (its change's), if any (see `Popup`).
20
+ const ActionSheetContext = createContext(null);
21
+ const Root = ({ modal = true, onOpenChange, onOpenChangeComplete, ...props }) => {
22
+ const [trigger, setTrigger] = useState(null);
23
+ return (_jsx(ActionSheetContext.Provider, { value: trigger, children: _jsx(BasePopover.Root, { modal: modal, ...props, onOpenChange: (isOpen, eventDetails) => {
24
+ if (isOpen)
25
+ setTrigger(eventDetails.trigger ?? null);
26
+ onOpenChange?.(isOpen, eventDetails);
27
+ }, onOpenChangeComplete: (isOpen) => {
28
+ // (Closed: presented anew, by a trigger or not.)
29
+ if (!isOpen)
30
+ setTrigger(null);
31
+ onOpenChangeComplete?.(isOpen);
32
+ } }) }));
33
+ };
34
+ /** An element of a portal's container (its ref's, or the document's). */
35
+ const containerElement = (container) => {
36
+ const element = container && 'current' in container
37
+ ? container.current
38
+ : container;
39
+ return element instanceof Element ? element : document.documentElement;
40
+ };
41
+ /**
42
+ * Its anchor without a trigger: its container's bottom center, above its
43
+ * safe area (the container's `--uikit-safe-area-inset-bottom`, if any).
44
+ */
45
+ const bottomAnchor = (container) => ({
46
+ getBoundingClientRect: () => {
47
+ const element = containerElement(container);
48
+ const box = element === document.documentElement
49
+ ? new DOMRect(0, 0, innerWidth, innerHeight)
50
+ : element.getBoundingClientRect();
51
+ const inset = Number.parseFloat(getComputedStyle(element).getPropertyValue('--uikit-safe-area-inset-bottom')) || 0;
52
+ return new DOMRect(box.left + box.width / 2, box.bottom - inset, 0, 0);
53
+ },
54
+ });
55
+ /**
56
+ * The sheet at its trigger (or its container's bottom), the page dimmed
57
+ * behind it, in its portal.
58
+ */
59
+ const Popup = forwardRef(({ className, container: containerProp, initialFocus, ...props }, ref) => {
60
+ const container = usePortalContainer(containerProp) ?? undefined;
61
+ const trigger = useContext(ActionSheetContext);
62
+ const popupRef = useForwardedRef(ref);
63
+ const focus = useInitialFocus(popupRef);
64
+ const bottom = useMemo(() => bottomAnchor(container), [container]);
65
+ // Within its container (e.g. the views' frames), clear of its safe area;
66
+ // growing rather than scrolling (see `useGrowAvoidance`).
67
+ const collision = useCollision({});
68
+ const [grow, growRef] = useGrowAvoidance();
69
+ return (_jsxs(BasePopover.Portal, { className: "uikit-alert-portal", container: container, children: [_jsx(BasePopover.Backdrop, { className: "uikit-action-sheet-backdrop uikit-alert-backdrop", "data-action-sheet-part": "backdrop" }), _jsx(BasePopover.Positioner, { ref: growRef, anchor: trigger ? undefined : bottom, className: "uikit-action-sheet-positioner", ...collision, collisionAvoidance: grow, side: trigger ? 'bottom' : 'top', sideOffset: 8, children: _jsx(BasePopover.Popup, { ref: popupRef, initialFocus: initialFocus ?? focus, ...props, "data-action-sheet-part": "popup", className: cn('uikit-action-sheet-popup uikit-alert-panel uikit-glass-medium uikit-popup-transition', className) }) })] }));
70
+ });
71
+ /** Its title and description (as an alert's, see `Alert.Header`). */
72
+ const Header = forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, "data-action-sheet-part": "header", ...props, className: cn('uikit-action-sheet-header uikit-alert-header', className) })));
73
+ const Title = forwardRef(({ className, ...props }, ref) => (_jsx(BasePopover.Title, { ref: ref, className: cn('uikit-action-sheet-title uikit-alert-title', className), "data-action-sheet-part": "title", ...props })));
74
+ const Description = forwardRef(({ className, ...props }, ref) => (_jsx(BasePopover.Description, { ref: ref, "data-action-sheet-part": "description", className: cn('uikit-action-sheet-description uikit-alert-description', className), ...props })));
19
75
  const Actions = forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn('uikit-action-sheet-actions', className), "data-action-sheet-part": "actions", ...props })));
20
76
  /** An action, closing the sheet. */
21
- const Action = forwardRef(({ className, variant = 'secondary', ...props }, ref) => (_jsx(BaseDialog.Close, { ref: ref, "data-alert-part": "action", "data-variant": variant, ...props, className: cn('uikit-action-sheet-action uikit-alert-action', className) })));
77
+ const Action = forwardRef(({ className, variant = 'secondary', ...props }, ref) => (_jsx(BasePopover.Close, { ref: ref, "data-action-sheet-part": "action", "data-variant": variant, ...props, className: cn('uikit-action-sheet-action uikit-alert-action', className) })));
78
+ /**
79
+ * A handle linking an action sheet to its triggers outside it, and opening
80
+ * or closing it imperatively (Base UI's `Popover.createHandle`): pass it to
81
+ * the root's and the triggers' `handle` (in a component, see
82
+ * `useCreateActionSheetHandle`).
83
+ */
84
+ const createHandle = () => BasePopover.createHandle();
85
+ /** `ActionSheet.createHandle`, in a component: made once, for its lifetime. */
86
+ export const useCreateActionSheetHandle = () => {
87
+ const [handle] = useState(() => createHandle());
88
+ return handle;
89
+ };
22
90
  /**
23
- * An action sheet (UIKit `UIAlertController`, style `actionSheet`; Base
24
- * UI's `Dialog`): choices for an action, as a modal panel.
91
+ * An action sheet (Base UI's `Popover`, modal): choices for an action, at the control that
92
+ * presented it.
25
93
  */
26
94
  export const ActionSheet = {
27
- ...BaseDialog,
95
+ ...BasePopover,
96
+ Root,
28
97
  Popup,
29
- Header: AlertHeader,
98
+ Header,
30
99
  Title,
31
100
  Description,
32
101
  Actions,
33
102
  Action,
103
+ createHandle,
34
104
  };
35
105
  //# sourceMappingURL=main.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/action-sheet/main.tsx"],"names":[],"mappings":";AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAkB,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAKtC,sEAAsE;AACtE,0EAA0E;AAC1E,wEAAwE;AACxE,2EAA2E;AAC3E,oEAAoE;AACpE,aAAa;AAEb,qEAAqE;AACrE,MAAM,KAAK,GAAG,UAAU,CACtB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAChC,MAAC,UAAU,CAAC,MAAM,eAChB,KAAC,UAAU,CAAC,QAAQ,IAClB,SAAS,EAAC,kDAAkD,4BACrC,UAAU,GACjC,EACF,KAAC,UAAU,CAAC,KAAK,IACf,GAAG,EAAE,GAAG,KACJ,KAAK,4BACc,OAAO,EAC9B,SAAS,EAAE,EAAE,CACX,oFAAoF,EACpF,SAAS,CACV,GACD,IACgB,CACrB,CACF,CAAC;AAEF,MAAM,KAAK,GAAG,UAAU,CAGtB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,UAAU,CAAC,KAAK,IACf,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,4CAA4C,EAAE,SAAS,CAAC,4BAC/C,OAAO,KAC1B,KAAK,GACT,CACH,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,UAAU,CAG5B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,UAAU,CAAC,WAAW,IACrB,GAAG,EAAE,GAAG,4BACe,aAAa,EACpC,SAAS,EAAE,EAAE,CACX,wDAAwD,EACxD,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC,CAAC;AAEH,MAAM,OAAO,GAAG,UAAU,CACxB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAChC,cACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,4BAA4B,EAAE,SAAS,CAAC,4BAC/B,SAAS,KAC5B,KAAK,GACT,CACH,CACF,CAAC;AAEF,oCAAoC;AACpC,MAAM,MAAM,GAAG,UAAU,CACvB,CAAC,EAAE,SAAS,EAAE,OAAO,GAAG,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACvD,KAAC,UAAU,CAAC,KAAK,IACf,GAAG,EAAE,GAAG,qBACQ,QAAQ,kBACV,OAAO,KACjB,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,8CAA8C,EAAE,SAAS,CAAC,GACxE,CACH,CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,GAAG,UAAU;IACb,KAAK;IACL,MAAM,EAAE,WAAW;IACnB,KAAK;IACL,WAAW;IACX,OAAO;IACP,MAAM;CACP,CAAC"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/action-sheet/main.tsx"],"names":[],"mappings":";AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,OAAO,IAAI,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,CAAC,YAAY,EAAW,CAAC;AAEtC,+EAA+E;AAC/E,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAEV,EAAE;IAChC,MAAM,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,YAAY,EAAW,CAAC,CAAC;IACzD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,GAAG,WAAW;IACd,IAAI;IACJ,KAAK;IACL,MAAM;IACN,KAAK;IACL,WAAW;IACX,OAAO;IACP,MAAM;IACN,YAAY;CACb,CAAC"}
@@ -1,10 +1,22 @@
1
- import type { Dialog as BaseDialog } from '@base-ui/react/dialog';
2
- import type { AlertActionVariant } from '../alert/main.js';
3
- export type ActionSheetActionProps = Omit<BaseDialog.Close.Props, 'ref'> & {
1
+ import type { Popover as BasePopover } from '@base-ui/react/popover';
2
+ export type ActionSheetPopupProps = Omit<BasePopover.Popup.Props, 'ref'> & {
4
3
  /**
5
- * Figma “Type”.
4
+ * Where its portal renders it (Base UI's `Popover.Portal`), e.g. a frame
5
+ * of the app's: its dimmed backdrop filling it if it's a containing
6
+ * block; without a trigger, the sheet at its bottom.
7
+ * @default document.body
8
+ */
9
+ container?: BasePopover.Portal.Props['container'];
10
+ };
11
+ /** A handle linking an action sheet to its triggers outside it. */
12
+ export type ActionSheetHandle<Payload = unknown> = BasePopover.Handle<Payload>;
13
+ /** An action's kind (no primary: an action sheet has no preferred action). */
14
+ export type ActionSheetActionVariant = 'destructive' | 'secondary';
15
+ export type ActionSheetActionProps = Omit<BasePopover.Close.Props, 'ref'> & {
16
+ /**
17
+ * Its kind: secondary (the label's color), destructive (red).
6
18
  * @default 'secondary'
7
19
  */
8
- variant?: AlertActionVariant;
20
+ variant?: ActionSheetActionVariant;
9
21
  };
10
22
  //# sourceMappingURL=props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/action-sheet/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IACzE;;;OAGG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B,CAAC"}
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/action-sheet/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErE,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IACzE;;;;;OAKG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;CACnD,CAAC;AAEF,mEAAmE;AACnE,MAAM,MAAM,iBAAiB,CAAC,OAAO,GAAG,OAAO,IAAI,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAE/E,8EAA8E;AAC9E,MAAM,MAAM,wBAAwB,GAAG,aAAa,GAAG,WAAW,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IAC1E;;;OAGG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC;CACpC,CAAC"}
@@ -1,5 +1,29 @@
1
1
  /* Action-sheet (see main.tsx). */
2
2
  @layer uikit-ish {
3
+ .uikit-action-sheet-positioner {
4
+ /* An overlay: above the page's layers (e.g. Viewport's bars), overlays
5
+ among themselves in the order they open (see Menu). */
6
+ z-index: 100;
7
+
8
+ /* Pressed only on its popup: a press beside it (in the positioner's
9
+ box, but not the popup's) is outside it (Base UI's: inside the
10
+ positioner), closing it. */
11
+ pointer-events: none;
12
+
13
+ & > * {
14
+ pointer-events: auto;
15
+ }
16
+ }
17
+
18
+ /* Its panel: within the room for it (not its positioner's width), its
19
+ actions scrolling when they don't fit. */
20
+ .uikit-action-sheet-popup.uikit-alert-panel {
21
+ max-width: var(--available-width);
22
+ max-height: var(--available-height);
23
+ overflow-y: auto;
24
+ overscroll-behavior: contain;
25
+ }
26
+
3
27
  .uikit-action-sheet-actions {
4
28
  display: flex;
5
29
  flex-direction: column;
@@ -1,9 +1,8 @@
1
1
  import '../typography/style.css';
2
2
  import './style.css';
3
- import type { ActivityViewActionProps, ActivityViewPersonProps } from './props.js';
4
3
  export type { ActivityViewActionProps, ActivityViewPersonProps, } from './props.js';
5
4
  /**
6
- * An activity view (UIKit `UIActivityViewController`, a share sheet): what's
5
+ * An activity view (a share sheet): what's
7
6
  * shared (`Header`), people and actions (`People`, `Actions`), and more
8
7
  * actions (a `List`), in the app's sheet or popover.
9
8
  */
@@ -29,15 +28,27 @@ export declare const ActivityView: {
29
28
  People: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLDivElement>> & {
30
29
  ref?: import("preact").Ref<HTMLDivElement> | undefined;
31
30
  }>;
32
- Person: import("preact").FunctionalComponent<import("react").PropsWithoutRef<ActivityViewPersonProps> & {
31
+ Person: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
33
32
  ref?: import("preact").Ref<HTMLButtonElement> | undefined;
34
33
  }>;
34
+ Name: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLSpanElement>> & {
35
+ ref?: import("preact").Ref<HTMLSpanElement> | undefined;
36
+ }>;
37
+ Count: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLSpanElement>> & {
38
+ ref?: import("preact").Ref<HTMLSpanElement> | undefined;
39
+ }>;
35
40
  Actions: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLDivElement>> & {
36
41
  ref?: import("preact").Ref<HTMLDivElement> | undefined;
37
42
  }>;
38
- Action: import("preact").FunctionalComponent<import("react").PropsWithoutRef<ActivityViewActionProps> & {
43
+ Action: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
39
44
  ref?: import("preact").Ref<HTMLButtonElement> | undefined;
40
45
  }>;
46
+ Symbol: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLSpanElement>> & {
47
+ ref?: import("preact").Ref<HTMLSpanElement> | undefined;
48
+ }>;
49
+ Label: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLSpanElement>> & {
50
+ ref?: import("preact").Ref<HTMLSpanElement> | undefined;
51
+ }>;
41
52
  Separator: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HrHTMLAttributes<HTMLHRElement>> & {
42
53
  ref?: import("preact").Ref<HTMLHRElement> | undefined;
43
54
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/activity-view/main.tsx"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;AAKrB,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,YAAY,CAAC;AAuMpB;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYxB,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/activity-view/main.tsx"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;AAUrB,YAAY,EACV,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,YAAY,CAAC;AAgOpB;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBxB,CAAC"}
@@ -1,11 +1,10 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import '../typography/style.css';
3
3
  import './style.css';
4
4
  import { forwardRef } from 'react';
5
5
  import { cn } from '../utils/main.js';
6
- // Source: Apple iOS 26 Figma (“Activity Views”, UIKit
7
- // `UIActivityViewController`, a share sheet), in the app's sheet (iPhone)
8
- // or popover (iPad), as parts:
6
+ // An activity view (a share sheet), in the app's sheet (compact) or popover
7
+ // (a regular width), as parts:
9
8
  // - a header (16px in, its parts 16px apart): a thumbnail (64px, its
10
9
  // corners 16px, a 0.5px border), its title (15px, medium) and subtitle
11
10
  // (13px, the secondary label color) 1px apart, then (12px below) e.g. a
@@ -17,12 +16,11 @@ import { cn } from '../utils/main.js';
17
16
  // - separators between them (0.5px, 16px in);
18
17
  // - its actions as a list (a `List`).
19
18
  //
20
- // Deviations:
21
- // - A group's name (with a count) takes one line, truncated (iOS: scaled
22
- // down to fit it).
23
- // - The actions' symbols are light (user: thinner; Figma: regular).
24
- // - Apps (Figma's app icon row, its people's app badges) aren't built: an
25
- // avatar takes a `Badge` instead.
19
+ // Also:
20
+ // - A group's name (with a count) takes one line, truncated.
21
+ // - The actions' symbols are light.
22
+ // - Apps (an app icon row, people's app badges) aren't built: an avatar
23
+ // takes a `Badge` instead.
26
24
  /** Its header: a thumbnail, and its heading (title, subtitle, more). */
27
25
  const Header = forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, "data-activity-view-part": "header", ...props, className: cn('uikit-activity-view-header', className) })));
28
26
  /** What's shared (64px, its corners 16px): an image, or content. */
@@ -38,13 +36,24 @@ const People = forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref:
38
36
  /** Its actions (`Action`s), scrolling sideways. */
39
37
  const Actions = forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, "data-activity-view-part": "actions", role: "list", ...props, className: cn('uikit-activity-view-row', className) })));
40
38
  /** A person (or a group) to share with: its `Avatar` (the children). */
41
- const Person = forwardRef(({ className, children, count, name, ...props }, ref) => (_jsx("div", { className: "uikit-activity-view-list-item", "data-activity-view-part": "list-item", role: "listitem", children: _jsxs("button", { ref: ref, type: "button", ...props, className: cn('uikit-activity-view-item', className), "data-activity-view-part": "item", children: [children, _jsx("span", { className: "uikit-activity-view-name", "data-activity-view-part": "name", "data-counted": count === undefined ? undefined : '', children: name }), count === undefined ? null : (_jsx("span", { className: "uikit-activity-view-count", "data-activity-view-part": "count", children: count }))] }) })));
42
- /** An action (Figma “Action”): its symbol (the children) in a circle. */
43
- const Action = forwardRef(({ className, children, label, ...props }, ref) => (_jsx("div", { className: "uikit-activity-view-list-item", "data-activity-view-part": "list-item", role: "listitem", children: _jsxs("button", { ref: ref, type: "button", ...props, "data-activity-view-part": "item", className: cn('uikit-activity-view-item uikit-activity-view-action', className), children: [_jsx("span", { "aria-hidden": "true", "data-activity-view-part": "action-symbol", children: children }), _jsx("span", { children: label })] }) })));
39
+ const Person = forwardRef(({ className, ...props }, ref) => (_jsx("div", { className: "uikit-activity-view-list-item", "data-activity-view-part": "list-item", role: "listitem", children: _jsx("button", { ref: ref, type: "button", ...props, className: cn('uikit-activity-view-item', className), "data-activity-view-part": "item" }) })));
40
+ /** A person's name (e.g. first and last name, two lines). */
41
+ const Name = forwardRef(({ className, ...props }, ref) => (_jsx("span", { ref: ref, ...props, className: cn('uikit-activity-view-name', className), "data-activity-view-part": "name" })));
42
+ /**
43
+ * How many people (a group's, e.g. “2 People”), below its name (on one
44
+ * line then).
45
+ */
46
+ const Count = forwardRef(({ className, ...props }, ref) => (_jsx("span", { ref: ref, ...props, className: cn('uikit-activity-view-count', className), "data-activity-view-part": "count" })));
47
+ /** An action: its `Symbol` above its `Label`. */
48
+ const Action = forwardRef(({ className, ...props }, ref) => (_jsx("div", { className: "uikit-activity-view-list-item", "data-activity-view-part": "list-item", role: "listitem", children: _jsx("button", { ref: ref, type: "button", ...props, "data-activity-view-part": "item", className: cn('uikit-activity-view-item uikit-activity-view-action', className) }) })));
49
+ /** An action's symbol (e.g. a `Symbol`) in a 70px circle on a fill. */
50
+ const ActionSymbol = forwardRef(({ className, ...props }, ref) => (_jsx("span", { ref: ref, "aria-hidden": "true", ...props, className: cn('uikit-activity-view-symbol', className), "data-activity-view-part": "symbol" })));
51
+ /** An action's label (e.g. “Add to Reading List”, two lines). */
52
+ const Label = forwardRef(({ className, ...props }, ref) => (_jsx("span", { ref: ref, ...props, className: cn('uikit-activity-view-label', className), "data-activity-view-part": "label" })));
44
53
  /** Between its sections (0.5px, 16px in). */
45
54
  const Separator = forwardRef(({ className, ...props }, ref) => (_jsx("hr", { ref: ref, className: cn('uikit-activity-view-separator', className), "data-activity-view-part": "separator", ...props })));
46
55
  /**
47
- * An activity view (UIKit `UIActivityViewController`, a share sheet): what's
56
+ * An activity view (a share sheet): what's
48
57
  * shared (`Header`), people and actions (`People`, `Actions`), and more
49
58
  * actions (a `List`), in the app's sheet or popover.
50
59
  */
@@ -57,8 +66,12 @@ export const ActivityView = {
57
66
  Message,
58
67
  People,
59
68
  Person,
69
+ Name,
70
+ Count,
60
71
  Actions,
61
72
  Action,
73
+ Symbol: ActionSymbol,
74
+ Label,
62
75
  Separator,
63
76
  };
64
77
  //# sourceMappingURL=main.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/activity-view/main.tsx"],"names":[],"mappings":";AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;AAErB,OAAO,EAAkB,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAWtC,sDAAsD;AACtD,0E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CACF,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM;IACN,SAAS;IACT,OAAO;IACP,KAAK;IACL,QAAQ;IACR,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,MAAM;IACN,SAAS;CACV,CAAC"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/activity-view/main.tsx"],"names":[],"mappings":";AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;AAErB,OAAO,EAAkB,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAWtC,4EAA4E;AAC5E,+BAA+B;AAC/B,qEAAqE;AACrE,yEAAyE;AACzE,0EAA0E;AAC1E,uEAAuE;AACvE,4EAA4E;AAC5E,2EAA2E;AAC3E,4EAA4E;AAC5E,wCAAwC;AACxC,8CAA8C;AAC9C,sCAAsC;AACtC,EAAE;AACF,QAAQ;AACR,6DAA6D;AAC7D,oCAAoC;AACpC,wEAAwE;AACxE,6BAA6B;AAE7B,wEAAwE;AACxE,MAAM,MAAM,GAAG,UAAU,CACvB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAChC,cACE,GAAG,EAAE,GAAG,6BACgB,QAAQ,KAC5B,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,4BAA4B,EAAE,SAAS,CAAC,GACtD,CACH,CACF,CAAC;AAEF,oEAAoE;AACpE,MAAM,SAAS,GAAG,UAAU,CAC1B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAChC,cACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,+BAA+B,EAAE,SAAS,CAAC,6BACjC,WAAW,KAC/B,KAAK,GACT,CACH,CACF,CAAC;AAEF,2EAA2E;AAC3E,MAAM,OAAO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AM;IACN,MAAM,EAAE,YAAY;IACpB,KAAK;IACL,SAAS;CACV,CAAC"}
@@ -1,12 +1,4 @@
1
1
  import type { ComponentProps } from 'react';
2
- export type ActivityViewPersonProps = ComponentProps<'button'> & {
3
- /** How many people (a group's): shown below its name (e.g. “2 People”). */
4
- count?: string;
5
- /** Its name (e.g. first and last name, wrapping). */
6
- name: string;
7
- };
8
- export type ActivityViewActionProps = ComponentProps<'button'> & {
9
- /** Its label (e.g. “Add to Reading List”, wrapping). */
10
- label: string;
11
- };
2
+ export type ActivityViewPersonProps = ComponentProps<'button'>;
3
+ export type ActivityViewActionProps = ComponentProps<'button'>;
12
4
  //# sourceMappingURL=props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/activity-view/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;IAC/D,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;IAC/D,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/activity-view/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAE/D,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC"}