@mrpelz/uikit-ish 7.8.0 → 7.9.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 (272) 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 -15
  7. package/dist/components/action-sheet/main.d.ts.map +1 -1
  8. package/dist/components/action-sheet/main.js +86 -16
  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 +15 -0
  13. package/dist/components/activity-view/main.d.ts +14 -3
  14. package/dist/components/activity-view/main.d.ts.map +1 -1
  15. package/dist/components/activity-view/main.js +19 -4
  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 +8 -46
  20. package/dist/components/alert/main.d.ts +6 -4
  21. package/dist/components/alert/main.d.ts.map +1 -1
  22. package/dist/components/alert/main.js +20 -4
  23. package/dist/components/alert/main.js.map +1 -1
  24. package/dist/components/alert/props.d.ts +12 -1
  25. package/dist/components/alert/props.d.ts.map +1 -1
  26. package/dist/components/alert/style.css +13 -27
  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 +3 -0
  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 +0 -6
  34. package/dist/components/badge/main.d.ts +2 -2
  35. package/dist/components/badge/main.d.ts.map +1 -1
  36. package/dist/components/badge/main.js +5 -5
  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 +3 -2
  41. package/dist/components/button/main.d.ts.map +1 -1
  42. package/dist/components/button/main.js +6 -6
  43. package/dist/components/button/main.js.map +1 -1
  44. package/dist/components/button/style.css +11 -27
  45. package/dist/components/checkbox/style.css +2 -5
  46. package/dist/components/collapsible/main.d.ts +9 -0
  47. package/dist/components/collapsible/main.d.ts.map +1 -0
  48. package/dist/components/collapsible/main.js +19 -0
  49. package/dist/components/collapsible/main.js.map +1 -0
  50. package/dist/components/collapsible/style.css +23 -0
  51. package/dist/components/color-picker/main.d.ts +1 -1
  52. package/dist/components/color-picker/main.d.ts.map +1 -1
  53. package/dist/components/color-picker/main.js +40 -33
  54. package/dist/components/color-picker/main.js.map +1 -1
  55. package/dist/components/color-picker/props.d.ts +21 -7
  56. package/dist/components/color-picker/props.d.ts.map +1 -1
  57. package/dist/components/color-picker/style.css +9 -27
  58. package/dist/components/contextual-menu/main.d.ts +11 -7
  59. package/dist/components/contextual-menu/main.d.ts.map +1 -1
  60. package/dist/components/contextual-menu/main.js +99 -47
  61. package/dist/components/contextual-menu/main.js.map +1 -1
  62. package/dist/components/contextual-menu/props.d.ts +17 -7
  63. package/dist/components/contextual-menu/props.d.ts.map +1 -1
  64. package/dist/components/contextual-menu/style.css +11 -8
  65. package/dist/components/date-picker/handle.d.ts +41 -0
  66. package/dist/components/date-picker/handle.d.ts.map +1 -0
  67. package/dist/components/date-picker/handle.js +47 -0
  68. package/dist/components/date-picker/handle.js.map +1 -0
  69. package/dist/components/date-picker/main.d.ts +31 -49
  70. package/dist/components/date-picker/main.d.ts.map +1 -1
  71. package/dist/components/date-picker/main.js +300 -139
  72. package/dist/components/date-picker/main.js.map +1 -1
  73. package/dist/components/date-picker/pager.d.ts +24 -0
  74. package/dist/components/date-picker/pager.d.ts.map +1 -0
  75. package/dist/components/date-picker/pager.js +307 -0
  76. package/dist/components/date-picker/pager.js.map +1 -0
  77. package/dist/components/date-picker/props.d.ts +93 -22
  78. package/dist/components/date-picker/props.d.ts.map +1 -1
  79. package/dist/components/date-picker/style.css +59 -71
  80. package/dist/components/drawer/main.d.ts +31 -0
  81. package/dist/components/drawer/main.d.ts.map +1 -0
  82. package/dist/components/drawer/main.js +74 -0
  83. package/dist/components/drawer/main.js.map +1 -0
  84. package/dist/components/drawer/props.d.ts +39 -0
  85. package/dist/components/drawer/props.d.ts.map +1 -0
  86. package/dist/components/drawer/props.js +2 -0
  87. package/dist/components/drawer/props.js.map +1 -0
  88. package/dist/components/drawer/style.css +135 -0
  89. package/dist/components/edit-menu/main.d.ts +7 -7
  90. package/dist/components/edit-menu/main.d.ts.map +1 -1
  91. package/dist/components/edit-menu/main.js +31 -23
  92. package/dist/components/edit-menu/main.js.map +1 -1
  93. package/dist/components/edit-menu/props.d.ts +13 -0
  94. package/dist/components/edit-menu/props.d.ts.map +1 -1
  95. package/dist/components/edit-menu/style.css +5 -7
  96. package/dist/components/form/main.d.ts +8 -0
  97. package/dist/components/form/main.d.ts.map +1 -1
  98. package/dist/components/form/main.js +15 -2
  99. package/dist/components/form/main.js.map +1 -1
  100. package/dist/components/form/props.d.ts +1 -2
  101. package/dist/components/form/props.d.ts.map +1 -1
  102. package/dist/components/glass/style.css +19 -4
  103. package/dist/components/header/main.d.ts +5 -4
  104. package/dist/components/header/main.d.ts.map +1 -1
  105. package/dist/components/header/main.js +56 -27
  106. package/dist/components/header/main.js.map +1 -1
  107. package/dist/components/header/props.d.ts +2 -3
  108. package/dist/components/header/props.d.ts.map +1 -1
  109. package/dist/components/header/style.css +62 -42
  110. package/dist/components/index.d.ts +26 -22
  111. package/dist/components/index.d.ts.map +1 -1
  112. package/dist/components/index.js +17 -13
  113. package/dist/components/index.js.map +1 -1
  114. package/dist/components/layout/main.d.ts +2 -2
  115. package/dist/components/layout/main.d.ts.map +1 -1
  116. package/dist/components/layout/main.js +59 -163
  117. package/dist/components/layout/main.js.map +1 -1
  118. package/dist/components/layout/props.d.ts +2 -20
  119. package/dist/components/layout/props.d.ts.map +1 -1
  120. package/dist/components/layout/style.css +18 -89
  121. package/dist/components/list/main.d.ts +49 -9
  122. package/dist/components/list/main.d.ts.map +1 -1
  123. package/dist/components/list/main.js +769 -208
  124. package/dist/components/list/main.js.map +1 -1
  125. package/dist/components/list/props.d.ts +165 -8
  126. package/dist/components/list/props.d.ts.map +1 -1
  127. package/dist/components/list/style.css +308 -371
  128. package/dist/components/list/swipe-actions-handle.d.ts +40 -0
  129. package/dist/components/list/swipe-actions-handle.d.ts.map +1 -0
  130. package/dist/components/list/swipe-actions-handle.js +51 -0
  131. package/dist/components/list/swipe-actions-handle.js.map +1 -0
  132. package/dist/components/menu/main.d.ts +31 -8
  133. package/dist/components/menu/main.d.ts.map +1 -1
  134. package/dist/components/menu/main.js +175 -39
  135. package/dist/components/menu/main.js.map +1 -1
  136. package/dist/components/menu/props.d.ts +2 -1
  137. package/dist/components/menu/props.d.ts.map +1 -1
  138. package/dist/components/menu/style.css +10 -32
  139. package/dist/components/navigation/main.d.ts +11 -2
  140. package/dist/components/navigation/main.d.ts.map +1 -1
  141. package/dist/components/navigation/main.js +186 -98
  142. package/dist/components/navigation/main.js.map +1 -1
  143. package/dist/components/navigation/props.d.ts +20 -3
  144. package/dist/components/navigation/props.d.ts.map +1 -1
  145. package/dist/components/navigation/style.css +24 -7
  146. package/dist/components/page/main.d.ts.map +1 -1
  147. package/dist/components/page/main.js +2 -2
  148. package/dist/components/page/main.js.map +1 -1
  149. package/dist/components/page/props.d.ts +8 -0
  150. package/dist/components/page/props.d.ts.map +1 -1
  151. package/dist/components/page/style.css +39 -1
  152. package/dist/components/page-control/main.d.ts +1 -1
  153. package/dist/components/page-control/main.d.ts.map +1 -1
  154. package/dist/components/page-control/main.js +59 -25
  155. package/dist/components/page-control/main.js.map +1 -1
  156. package/dist/components/page-control/props.d.ts +10 -2
  157. package/dist/components/page-control/props.d.ts.map +1 -1
  158. package/dist/components/page-control/style.css +5 -0
  159. package/dist/components/popover/main.d.ts +11 -6
  160. package/dist/components/popover/main.d.ts.map +1 -1
  161. package/dist/components/popover/main.js +53 -31
  162. package/dist/components/popover/main.js.map +1 -1
  163. package/dist/components/popover/props.d.ts +7 -6
  164. package/dist/components/popover/props.d.ts.map +1 -1
  165. package/dist/components/popover/style.css +45 -4
  166. package/dist/components/progress/main.d.ts +1 -1
  167. package/dist/components/progress/main.d.ts.map +1 -1
  168. package/dist/components/progress/main.js +108 -15
  169. package/dist/components/progress/main.js.map +1 -1
  170. package/dist/components/progress/props.d.ts +25 -5
  171. package/dist/components/progress/props.d.ts.map +1 -1
  172. package/dist/components/progress/style.css +67 -35
  173. package/dist/components/roll/main.d.ts +1 -1
  174. package/dist/components/roll/main.d.ts.map +1 -1
  175. package/dist/components/roll/main.js +81 -25
  176. package/dist/components/roll/main.js.map +1 -1
  177. package/dist/components/roll/props.d.ts +24 -7
  178. package/dist/components/roll/props.d.ts.map +1 -1
  179. package/dist/components/roll/style.css +1 -13
  180. package/dist/components/segmented/main.js +3 -3
  181. package/dist/components/segmented/main.js.map +1 -1
  182. package/dist/components/segmented/style.css +2 -14
  183. package/dist/components/sheet/main.d.ts +25 -15
  184. package/dist/components/sheet/main.d.ts.map +1 -1
  185. package/dist/components/sheet/main.js +57 -73
  186. package/dist/components/sheet/main.js.map +1 -1
  187. package/dist/components/sheet/props.d.ts +36 -2
  188. package/dist/components/sheet/props.d.ts.map +1 -1
  189. package/dist/components/sheet/style.css +176 -44
  190. package/dist/components/sidebar/style.css +13 -7
  191. package/dist/components/slider/main.d.ts.map +1 -1
  192. package/dist/components/slider/main.js +6 -5
  193. package/dist/components/slider/main.js.map +1 -1
  194. package/dist/components/slider/style.css +2 -28
  195. package/dist/components/stepper/main.d.ts +4 -6
  196. package/dist/components/stepper/main.d.ts.map +1 -1
  197. package/dist/components/stepper/main.js +17 -11
  198. package/dist/components/stepper/main.js.map +1 -1
  199. package/dist/components/stepper/style.css +4 -8
  200. package/dist/components/switch/main.d.ts.map +1 -1
  201. package/dist/components/switch/main.js +16 -11
  202. package/dist/components/switch/main.js.map +1 -1
  203. package/dist/components/switch/props.d.ts +2 -2
  204. package/dist/components/switch/props.d.ts.map +1 -1
  205. package/dist/components/switch/style.css +28 -1
  206. package/dist/components/symbol/main.d.ts +2 -2
  207. package/dist/components/symbol/main.d.ts.map +1 -1
  208. package/dist/components/symbol/main.js +34 -27
  209. package/dist/components/symbol/main.js.map +1 -1
  210. package/dist/components/symbol/props.d.ts +39 -4
  211. package/dist/components/symbol/props.d.ts.map +1 -1
  212. package/dist/components/symbol/style.css +25 -4
  213. package/dist/components/tab-bar/main.d.ts.map +1 -1
  214. package/dist/components/tab-bar/main.js +59 -46
  215. package/dist/components/tab-bar/main.js.map +1 -1
  216. package/dist/components/tab-bar/props.d.ts +3 -3
  217. package/dist/components/tab-bar/props.d.ts.map +1 -1
  218. package/dist/components/tab-bar/style.css +24 -46
  219. package/dist/components/text-field/main.d.ts.map +1 -1
  220. package/dist/components/text-field/main.js +9 -8
  221. package/dist/components/text-field/main.js.map +1 -1
  222. package/dist/components/text-field/props.d.ts +8 -1
  223. package/dist/components/text-field/props.d.ts.map +1 -1
  224. package/dist/components/text-field/style.css +21 -55
  225. package/dist/components/toolbar/main.d.ts.map +1 -1
  226. package/dist/components/toolbar/main.js +11 -9
  227. package/dist/components/toolbar/main.js.map +1 -1
  228. package/dist/components/toolbar/style.css +28 -22
  229. package/dist/components/tooltip/main.d.ts +10 -9
  230. package/dist/components/tooltip/main.d.ts.map +1 -1
  231. package/dist/components/tooltip/main.js +35 -6
  232. package/dist/components/tooltip/main.js.map +1 -1
  233. package/dist/components/tooltip/props.d.ts +2 -0
  234. package/dist/components/tooltip/props.d.ts.map +1 -1
  235. package/dist/components/tooltip/style.css +11 -11
  236. package/dist/components/typography/main.d.ts.map +1 -1
  237. package/dist/components/typography/main.js +16 -6
  238. package/dist/components/typography/main.js.map +1 -1
  239. package/dist/components/typography/props.d.ts +2 -9
  240. package/dist/components/typography/props.d.ts.map +1 -1
  241. package/dist/components/typography/style.css +0 -120
  242. package/dist/components/utils/main.d.ts +34 -5
  243. package/dist/components/utils/main.d.ts.map +1 -1
  244. package/dist/components/utils/main.js +81 -12
  245. package/dist/components/utils/main.js.map +1 -1
  246. package/dist/components/utils/props.d.ts +4 -2
  247. package/dist/components/utils/props.d.ts.map +1 -1
  248. package/dist/components/utils/style.css +29 -16
  249. package/dist/components/viewport/input.d.ts +23 -0
  250. package/dist/components/viewport/input.d.ts.map +1 -0
  251. package/dist/components/viewport/input.js +95 -0
  252. package/dist/components/viewport/input.js.map +1 -0
  253. package/dist/components/viewport/main.d.ts +42 -9
  254. package/dist/components/viewport/main.d.ts.map +1 -1
  255. package/dist/components/viewport/main.js +488 -66
  256. package/dist/components/viewport/main.js.map +1 -1
  257. package/dist/components/viewport/padding.d.ts +50 -0
  258. package/dist/components/viewport/padding.d.ts.map +1 -0
  259. package/dist/components/viewport/padding.js +226 -0
  260. package/dist/components/viewport/padding.js.map +1 -0
  261. package/dist/components/viewport/props.d.ts +155 -7
  262. package/dist/components/viewport/props.d.ts.map +1 -1
  263. package/dist/components/viewport/style.css +172 -6
  264. package/dist/main.d.ts +0 -1
  265. package/dist/main.d.ts.map +1 -1
  266. package/dist/main.js.map +1 -1
  267. package/dist/styles.css +35 -2
  268. package/dist/styles.d.ts +2 -1
  269. package/dist/styles.d.ts.map +1 -1
  270. package/dist/styles.js +2 -1
  271. package/dist/styles.js.map +1 -1
  272. package/package.json +6 -13
@@ -2,8 +2,8 @@ import '../glass/style.css';
2
2
  import '../typography/style.css';
3
3
  import './style.css';
4
4
  import { AlertDialog as BaseAlertDialog } from '@base-ui/react/alert-dialog';
5
- import type { AlertActionProps, AlertActionsProps } from './props.js';
6
- export type { AlertActionProps, AlertActionVariant, AlertActionsProps, } from './props.js';
5
+ import type { AlertActionProps, AlertActionsProps, AlertHandle, AlertPopupProps } from './props.js';
6
+ export type { AlertActionProps, AlertActionVariant, AlertActionsProps, AlertHandle, AlertPopupProps, } from './props.js';
7
7
  /** Its title and description (Figma “Title and Description”). */
8
8
  export declare const AlertHeader: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLDivElement>> & {
9
9
  ref?: import("preact").Ref<HTMLDivElement> | undefined;
@@ -11,13 +11,15 @@ export declare const AlertHeader: import("preact").FunctionalComponent<import("r
11
11
  export declare const AlertActions: import("preact").FunctionalComponent<import("react").PropsWithoutRef<AlertActionsProps> & {
12
12
  ref?: import("preact").Ref<HTMLDivElement> | undefined;
13
13
  }>;
14
+ /** `Alert.createHandle`, in a component: made once, for its lifetime. */
15
+ export declare const useCreateAlertHandle: <Payload = unknown>() => AlertHandle<Payload>;
14
16
  /**
15
17
  * An alert (UIKit `UIAlertController`, style `alert`; Base UI's
16
18
  * `AlertDialog`): a modal panel with a title and description, optionally
17
19
  * text fields, and its buttons.
18
20
  */
19
21
  export declare const Alert: {
20
- Popup: import("preact").FunctionalComponent<import("react").PropsWithoutRef<Omit<import("@base-ui/react/alert-dialog").AlertDialogPopupProps, "ref">> & {
22
+ Popup: import("preact").FunctionalComponent<import("react").PropsWithoutRef<AlertPopupProps> & {
21
23
  ref?: import("preact").Ref<HTMLDivElement> | undefined;
22
24
  }>;
23
25
  Header: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLDivElement>> & {
@@ -41,6 +43,7 @@ export declare const Alert: {
41
43
  Action: import("preact").FunctionalComponent<import("react").PropsWithoutRef<AlertActionProps> & {
42
44
  ref?: import("preact").Ref<HTMLButtonElement> | undefined;
43
45
  }>;
46
+ createHandle: <Payload = unknown>() => AlertHandle<Payload>;
44
47
  Root: typeof BaseAlertDialog.Root;
45
48
  Backdrop: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/alert-dialog").AlertDialogBackdropProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
46
49
  Close: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/alert-dialog").AlertDialogCloseProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
@@ -48,6 +51,5 @@ export declare const Alert: {
48
51
  Trigger: BaseAlertDialog.Trigger;
49
52
  Viewport: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/alert-dialog").AlertDialogViewportProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
50
53
  Handle: typeof BaseAlertDialog.Handle;
51
- createHandle: typeof BaseAlertDialog.createHandle;
52
54
  };
53
55
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/alert/main.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAK7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEtE,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,YAAY,CAAC;AA2CpB,iEAAiE;AACjE,eAAO,MAAM,WAAW;;EAUvB,CAAC;AAmDF,eAAO,MAAM,YAAY;;EAWxB,CAAC;AAeF;;;;GAIG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUjB,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/alert/main.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAK7E,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,eAAe,EAChB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACX,eAAe,GAChB,MAAM,YAAY,CAAC;AAgDpB,iEAAiE;AACjE,eAAO,MAAM,WAAW;;EAUvB,CAAC;AAmDF,eAAO,MAAM,YAAY;;EAWxB,CAAC;AAwBF,yEAAyE;AACzE,eAAO,MAAM,oBAAoB,GAC/B,OAAO,GAAG,OAAO,OACd,WAAW,CAAC,OAAO,CAGvB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;mBAhBI,OAAO,iBAAgB,WAAW,CAAC,OAAO,CAAC;;;;;;;;CA2BhE,CAAC"}
@@ -4,8 +4,8 @@ import '../typography/style.css';
4
4
  import './style.css';
5
5
  import { AlertDialog as BaseAlertDialog } from '@base-ui/react/alert-dialog';
6
6
  import { Input as BaseInput } from '@base-ui/react/input';
7
- import { forwardRef } from 'react';
8
- import { cn } from '../utils/main.js';
7
+ import { forwardRef, useState } from 'react';
8
+ import { cn, usePortalContainer } from '../utils/main.js';
9
9
  // Source: Apple iOS 26 Figma (“Alerts”, Type=Side-by-Side and Stacked; also
10
10
  // “Action Sheets”, see `ActionSheet`): a glass panel 300px wide, 14px in,
11
11
  // its corners 34px, its parts 10px apart: its title (Headline) and
@@ -24,8 +24,11 @@ import { cn } from '../utils/main.js';
24
24
  // plus-darker, plus-lighter in dark mode), as the system fills.
25
25
  // - Behind it, the page dims (black, 20%; 40% in dark mode; Figma has
26
26
  // none); it scales in from 110% as it fades in.
27
- /** The alert at the viewport's center, the page dimmed behind it. */
28
- const Popup = forwardRef(({ className, ...props }, ref) => (_jsxs(BaseAlertDialog.Portal, { children: [_jsx(BaseAlertDialog.Backdrop, { className: "uikit-alert-backdrop", "data-alert-part": "backdrop" }), _jsx(BaseAlertDialog.Popup, { ref: ref, ...props, "data-alert-part": "popup", className: cn('uikit-alert-popup uikit-alert-panel uikit-glass-medium uikit-alert-centered', className) })] })));
27
+ /**
28
+ * The alert at the viewport's center (or its `container`'s, if that's a
29
+ * containing block), the page dimmed behind it, in its portal.
30
+ */
31
+ const Popup = forwardRef(({ className, container, ...props }, ref) => (_jsxs(BaseAlertDialog.Portal, { className: "uikit-alert-portal", container: usePortalContainer(container), children: [_jsx(BaseAlertDialog.Backdrop, { className: "uikit-alert-backdrop", "data-alert-part": "backdrop" }), _jsx(BaseAlertDialog.Popup, { ref: ref, ...props, "data-alert-part": "popup", className: cn('uikit-alert-popup uikit-alert-panel uikit-glass-medium uikit-alert-centered', className) })] })));
29
32
  /** Its title and description (Figma “Title and Description”). */
30
33
  export const AlertHeader = forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, "data-alert-part": "header", ...props, className: cn('uikit-alert-header', className) })));
31
34
  const Title = forwardRef(({ className, ...props }, ref) => (_jsx(BaseAlertDialog.Title, { ref: ref, className: cn('uikit-alert-title', className), "data-alert-part": "title", ...props })));
@@ -38,6 +41,18 @@ const Field = forwardRef(({ className, ...props }, ref) => (_jsx(BaseInput, { re
38
41
  export const AlertActions = forwardRef(({ className, stacked, ...props }, ref) => (_jsx("div", { ref: ref, "data-alert-part": "actions", "data-stacked": stacked ? '' : undefined, ...props, className: cn('uikit-alert-actions', className) })));
39
42
  /** A button, closing the alert. */
40
43
  const Action = forwardRef(({ className, variant = 'secondary', ...props }, ref) => (_jsx(BaseAlertDialog.Close, { ref: ref, "data-alert-part": "action", "data-variant": variant, ...props, className: cn('uikit-alert-action', className) })));
44
+ /**
45
+ * A handle linking an alert to its triggers outside it, and opening or
46
+ * closing it imperatively (Base UI's `AlertDialog.createHandle`): pass it to
47
+ * the root's and the triggers' `handle` (in a component, see
48
+ * `useCreateAlertHandle`).
49
+ */
50
+ const createHandle = () => BaseAlertDialog.createHandle();
51
+ /** `Alert.createHandle`, in a component: made once, for its lifetime. */
52
+ export const useCreateAlertHandle = () => {
53
+ const [handle] = useState(() => createHandle());
54
+ return handle;
55
+ };
41
56
  /**
42
57
  * An alert (UIKit `UIAlertController`, style `alert`; Base UI's
43
58
  * `AlertDialog`): a modal panel with a title and description, optionally
@@ -53,5 +68,6 @@ export const Alert = {
53
68
  Field,
54
69
  Actions: AlertActions,
55
70
  Action,
71
+ createHandle,
56
72
  };
57
73
  //# sourceMappingURL=main.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/alert/main.tsx"],"names":[],"mappings":";AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAkB,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAStC,4EAA4E;AAC5E,0EAA0E;AAC1E,mEAAmE;AACnE,0EAA0E;AAC1E,2EAA2E;AAC3E,qEAAqE;AACrE,8EAA8E;AAC9E,wEAAwE;AACxE,2EAA2E;AAC3E,sBAAsB;AACtB,EAAE;AACF,cAAc;AACd,yEAAyE;AACzE,2EAA2E;AAC3E,mEAAmE;AACnE,kEAAkE;AAClE,sEAAsE;AACtE,kDAAkD;AAElD,qEAAqE;AACrE,MAAM,KAAK,GAAG,UAAU,CAGtB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,MAAC,eAAe,CAAC,MAAM,eACrB,KAAC,eAAe,CAAC,QAAQ,IACvB,SAAS,EAAC,sBAAsB,qBAChB,UAAU,GAC1B,EACF,KAAC,eAAe,CAAC,KAAK,IACpB,GAAG,EAAE,GAAG,KACJ,KAAK,qBACO,OAAO,EACvB,SAAS,EAAE,EAAE,CACX,6EAA6E,EAC7E,SAAS,CACV,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AClC,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,GAC/C,CACH,CACF,CAAC;AAEF,mCAAmC;AACnC,MAAM,MAAM,GAAG,UAAU,CACvB,CAAC,EAAE,SAAS,EAAE,OAAO,GAAG,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACvD,KAAC,eAAe,CAAC,KAAK,IACpB,GAAG,EAAE,GAAG,qBACQ,QAAQ,kBACV,OAAO,KACjB,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,SAAS,CAAC,GAC9C,CACH,CACF,CAAC;AAEF;;;;;GAKG;AACH,MAAM,YAAY,GAAG,GAA6C,EAAE,CAClE,eAAe,CAAC,YAAY,EAAW,CAAC;AAE1C,yEAAyE;AACzE,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAEV,EAAE;IAC1B,MAAM,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,YAAY,EAAW,CAAC,CAAC;IACzD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,GAAG,eAAe;IAClB,KAAK;IACL,MAAM,EAAE,WAAW;IACnB,KAAK;IACL,WAAW;IACX,MAAM;IACN,KAAK;IACL,OAAO,EAAE,YAAY;IACrB,MAAM;IACN,YAAY;CACb,CAAC"}
@@ -1,8 +1,19 @@
1
1
  import type { AlertDialog as BaseAlertDialog } from '@base-ui/react/alert-dialog';
2
2
  import type { ComponentProps } from 'react';
3
+ export type AlertPopupProps = Omit<BaseAlertDialog.Popup.Props, 'ref'> & {
4
+ /**
5
+ * Where its portal renders it (Base UI's `AlertDialog.Portal`), e.g. a
6
+ * frame of the app's, centered in it if it's a containing block.
7
+ * @default document.body
8
+ */
9
+ container?: BaseAlertDialog.Portal.Props['container'];
10
+ };
11
+ /** A handle linking an alert to its triggers outside it. */
12
+ export type AlertHandle<Payload = unknown> = BaseAlertDialog.Handle<Payload>;
3
13
  export type AlertActionsProps = ComponentProps<'div'> & {
4
14
  /**
5
- * Stacked.
15
+ * Stacked (e.g. two long labels; UIKit stacks more than two buttons
16
+ * itself, as this does).
6
17
  * @default with more than two buttons, otherwise side by side
7
18
  */
8
19
  stacked?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/alert/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACtD;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,CAAC;AAEzE,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IACxE;;;OAGG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B,CAAC"}
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/alert/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IACvE;;;;OAIG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;CACvD,CAAC;AAEF,4DAA4D;AAC5D,MAAM,MAAM,WAAW,CAAC,OAAO,GAAG,OAAO,IAAI,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAE7E,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACtD;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,CAAC;AAEzE,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IACxE;;;OAGG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B,CAAC"}
@@ -1,10 +1,17 @@
1
1
  /* Alert (see main.tsx). */
2
2
  @layer uikit-ish {
3
+ /* Its portal: no box of its own (its container's layout unchanged). */
4
+ .uikit-alert-portal {
5
+ display: contents;
6
+ }
7
+
3
8
  /* (Shared: action-sheet.) */
4
9
  .uikit-alert-panel {
5
10
  display: flex;
6
11
  width: 300px;
7
- max-width: calc(100vw - 32px);
12
+
13
+ /* (Of its containing block: the viewport, or a container's.) */
14
+ max-width: calc(100% - 32px);
8
15
  box-sizing: border-box;
9
16
  flex-direction: column;
10
17
  padding: 14px;
@@ -19,6 +26,10 @@
19
26
  --uikit-alert-dim: light-dark(rgb(0 0 0 / 20%), rgb(0 0 0 / 40%));
20
27
 
21
28
  position: fixed;
29
+
30
+ /* An overlay: above the page's layers (e.g. Viewport's bars), overlays
31
+ among themselves in the order they open (see Menu). */
32
+ z-index: 100;
22
33
  background-color: var(--uikit-alert-dim);
23
34
  inset: 0;
24
35
  transition: opacity 300ms;
@@ -32,6 +43,7 @@
32
43
  /* (Shared: action-sheet.) */
33
44
  .uikit-alert-centered {
34
45
  position: fixed;
46
+ z-index: 100;
35
47
  top: 50%;
36
48
  left: 50%;
37
49
  transition-duration: 300ms;
@@ -59,14 +71,6 @@
59
71
  font-weight: round(down, var(--font-ios-headline-weight), 100);
60
72
  letter-spacing: var(--font-ios-headline-tracking);
61
73
  line-height: var(--font-ios-headline-line-height);
62
- stroke: currentcolor;
63
- stroke-linejoin: round;
64
- stroke-width: max(0px, (var(--font-ios-headline-weight) - 400) / 326 * 1px);
65
-
66
- --uikit-symbol-thinning: max(
67
- 0px,
68
- (400 - var(--font-ios-headline-weight)) / 326 * 1px
69
- );
70
74
  }
71
75
 
72
76
  /* (Shared: action-sheet.) */
@@ -78,14 +82,6 @@
78
82
  font-weight: round(down, var(--font-ios-body-weight), 100);
79
83
  letter-spacing: var(--font-ios-body-tracking);
80
84
  line-height: var(--font-ios-body-line-height);
81
- stroke: currentcolor;
82
- stroke-linejoin: round;
83
- stroke-width: max(0px, (var(--font-ios-body-weight) - 400) / 326 * 1px);
84
-
85
- --uikit-symbol-thinning: max(
86
- 0px,
87
- (400 - var(--font-ios-body-weight)) / 326 * 1px
88
- );
89
85
  }
90
86
 
91
87
  /* (Shared: action-sheet.) */
@@ -112,14 +108,9 @@
112
108
  letter-spacing: var(--font-ios-body-tracking);
113
109
  line-height: var(--font-ios-body-line-height);
114
110
  outline-offset: 2px;
115
- stroke: currentcolor;
116
- stroke-linejoin: round;
117
- stroke-width: max(0px, (510 - 400) / 326 * 1px);
118
111
  text-align: center;
119
112
  transition: filter 150ms;
120
113
 
121
- --uikit-symbol-thinning: max(0px, (400 - 510) / 326 * 1px);
122
-
123
114
  &[data-variant='destructive'] {
124
115
  color: var(--color-ios-system-red);
125
116
  }
@@ -176,11 +167,6 @@
176
167
  letter-spacing: var(--font-ios-body-tracking);
177
168
  line-height: 20px;
178
169
  outline: none;
179
- stroke: currentcolor;
180
- stroke-linejoin: round;
181
- stroke-width: max(0px, (510 - 400) / 326 * 1px);
182
-
183
- --uikit-symbol-thinning: max(0px, (400 - 510) / 326 * 1px);
184
170
 
185
171
  &:last-child {
186
172
  background: none;
@@ -1,6 +1,6 @@
1
1
  import './style.css';
2
- import type { AvatarFallbackProps, AvatarGroupProps, AvatarRootProps } from './props.js';
3
- export type { AvatarFallbackProps, AvatarGroupProps, AvatarRootProps, } from './props.js';
2
+ import type { AvatarFallbackProps, AvatarGroupProps, AvatarImageProps, AvatarRootProps } from './props.js';
3
+ export type { AvatarFallbackProps, AvatarGroupProps, AvatarImageProps, AvatarRootProps, } from './props.js';
4
4
  /**
5
5
  * An avatar (Base UI's `Avatar`): a person's photo, or their initials; or
6
6
  * several people (`Avatar.Group`).
@@ -9,12 +9,14 @@ export declare const Avatar: {
9
9
  Root: import("preact").FunctionalComponent<import("react").PropsWithoutRef<AvatarRootProps> & {
10
10
  ref?: import("preact").Ref<HTMLSpanElement> | undefined;
11
11
  }>;
12
+ Image: import("preact").FunctionalComponent<import("react").PropsWithoutRef<AvatarImageProps> & {
13
+ ref?: import("preact").Ref<HTMLImageElement> | undefined;
14
+ }>;
12
15
  Fallback: import("preact").FunctionalComponent<import("react").PropsWithoutRef<AvatarFallbackProps> & {
13
16
  ref?: import("preact").Ref<HTMLSpanElement> | undefined;
14
17
  }>;
15
18
  Group: import("preact").FunctionalComponent<import("react").PropsWithoutRef<AvatarGroupProps> & {
16
19
  ref?: import("preact").Ref<HTMLSpanElement> | undefined;
17
20
  }>;
18
- Image: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/avatar").AvatarImageProps, "ref"> & import("react").RefAttributes<HTMLImageElement>>;
19
21
  };
20
22
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAMrB,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EAChB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,GAChB,MAAM,YAAY,CAAC;AA0EpB;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;CAKlB,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAMrB,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EAChB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,GAChB,MAAM,YAAY,CAAC;AAmFpB;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;CAMlB,CAAC"}
@@ -20,6 +20,8 @@ import { cn, withStyle } from '../utils/main.js';
20
20
  const Root = forwardRef(({ className, size, style, ...props }, ref) => (_jsx(BaseAvatar.Root, { ref: ref, "data-avatar-part": "root", style: withStyle({
21
21
  '--uikit-avatar-size': size === undefined ? undefined : `${String(size)}px`,
22
22
  }, style), ...props, className: cn('uikit-avatar-root', className) })));
23
+ /** The person's photo, shown once it has loaded. */
24
+ const Image = forwardRef((props, ref) => (_jsx(BaseAvatar.Image, { ref: ref, "data-avatar-part": "image", ...props })));
23
25
  /** Shown without an image: e.g. the person's initials (the app's). */
24
26
  const Fallback = forwardRef(({ className, ...props }, ref) => (_jsx(BaseAvatar.Fallback, { ref: ref, "data-avatar-part": "fallback", ...props, className: cn('uikit-avatar-fallback', className) })));
25
27
  /**
@@ -36,6 +38,7 @@ const Group = forwardRef(({ className, size, style, ...props }, ref) => (_jsx("s
36
38
  export const Avatar = {
37
39
  ...BaseAvatar,
38
40
  Root,
41
+ Image,
39
42
  Fallback,
40
43
  Group,
41
44
  };
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/avatar/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,EAAE,EAAE,SAAS,E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AAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI;KACvD,EACD,KAAK,CACN,KACG,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,SAAS,CAAC,sBAC7B,OAAO,GACxB,CACH,CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,GAAG,UAAU;IACb,IAAI;IACJ,QAAQ;IACR,KAAK;CACN,CAAC"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/avatar/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAejD,uEAAuE;AACvE,0EAA0E;AAC1E,yEAAyE;AACzE,4EAA4E;AAC5E,gBAAgB;AAChB,EAAE;AACF,cAAc;AACd,0EAA0E;AAC1E,oEAAoE;AACpE,qBAAqB;AACrB,0DAA0D;AAC1D,yEAAyE;AACzE,gDAAgD;AAEhD,mDAAmD;AACnD,MAAM,IAAI,GAAG,UAAU,CACrB,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAE7C,KAAC,UAAU,CAAC,IAAI,IACd,GAAG,EAAE,GAAG,sBACS,MAAM,EACvB,KAAK,EAAE,SAAS,CACd;QACE,qBAAqB,EACnB,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI;KACvD,EACD,KAAK,CACN,KACG,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAC7C,CACH,CACF,CAAC;AAEF,oDAAoD;AACpD,MAAM,KAAK,GAAG,UAAU,CAAqC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,CAC3E,KAAC,UAAU,CAAC,KAAK,IACf,GAAG,EAAE,GAAG,sBACS,OAAO,KACpB,KAAK,GACT,CACH,CAAC,CAAC;AAEH,sEAAsE;AACtE,MAAM,QAAQ,GAAG,UAAU,CACzB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAChC,KAAC,UAAU,CAAC,QAAQ,IAClB,GAAG,EAAE,GAAG,sBACS,UAAU,KACvB,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,uBAAuB,EAAE,SAAS,CAAC,GACjD,CACH,CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,KAAK,GAAG,UAAU,CACtB,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAI7C,eACE,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,SAAS,CACd;QACE,qBAAqB,EACnB,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI;KACvD,EACD,KAAK,CACN,KACG,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,SAAS,CAAC,sBAC7B,OAAO,GACxB,CACH,CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,GAAG,UAAU;IACb,IAAI;IACJ,KAAK;IACL,QAAQ;IACR,KAAK;CACN,CAAC"}
@@ -7,6 +7,10 @@ export type AvatarRootProps = Omit<BaseAvatar.Root.Props, 'ref'> & {
7
7
  */
8
8
  size?: number;
9
9
  };
10
+ export type AvatarImageProps = Omit<BaseAvatar.Image.Props, 'ref'> & {
11
+ /** The person's name (or empty, when named otherwise, e.g. beside it). */
12
+ alt?: string;
13
+ };
10
14
  export type AvatarFallbackProps = Omit<BaseAvatar.Fallback.Props, 'ref'>;
11
15
  export type AvatarGroupProps = ComponentProps<'span'> & {
12
16
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IACjE;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAEzE,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IACtD;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IACjE;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IACnE,0EAA0E;IAC1E,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAEzE,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IACtD;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -31,12 +31,6 @@
31
31
  letter-spacing: 0;
32
32
  line-height: 1;
33
33
  place-items: center;
34
- stroke: currentcolor;
35
- stroke-linejoin: round;
36
- stroke-width: max(0px, (590 - 400) / 326 * 1px);
37
- user-select: none;
38
-
39
- --uikit-symbol-thinning: max(0px, (400 - 590) / 326 * 1px);
40
34
  }
41
35
 
42
36
  .uikit-avatar-group {
@@ -1,10 +1,10 @@
1
1
  import './style.css';
2
2
  import type { BadgeProps } from './props.js';
3
- export type { BadgeProps } from './props.js';
3
+ export type { BadgePlacement, BadgeProps } from './props.js';
4
4
  /**
5
5
  * A badge (UIKit `badgeValue`): a count (or short text) in a capsule, or,
6
6
  * without content, a dot; on a `Symbol` (its child), an element's corner,
7
- * or inline.
7
+ * or inline (`placement`).
8
8
  */
9
9
  export declare const Badge: import("preact").FunctionalComponent<import("react").PropsWithoutRef<BadgeProps> & {
10
10
  ref?: import("preact").Ref<HTMLSpanElement> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/badge/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAKrB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAsB7C;;;;GAIG;AACH,eAAO,MAAM,KAAK;;EAmBjB,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/badge/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAKrB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAsB7D;;;;GAIG;AACH,eAAO,MAAM,KAAK;;EAmBjB,CAAC"}
@@ -5,10 +5,10 @@ import { cn, withStyle } from '../utils/main.js';
5
5
  // Source: Apple iOS 26 Figma (app icons, “_Badge”): a capsule 24px high, at
6
6
  // least 24px wide (a circle for a digit), 7px from its ends, in system red,
7
7
  // its text white, 16px/19px regular. Placed after Framework7's badge: on a
8
- // symbol (a child of a `Symbol`, e.g. in a `Button.Icon` or `TabBar.Icon`),
9
- // in Framework7's size there (16px, its text 10px semibold, 2px from its
10
- // ends); otherwise on its element's top end corner (e.g. an `Avatar`'s); or
11
- // inline (e.g. a list row's detail); any tint.
8
+ // symbol (`placement` 'symbol', a child of a `Symbol`, e.g. in a
9
+ // `Button.Icon` or `TabBar.Icon`), in Framework7's size there (16px, its
10
+ // text 10px semibold, 2px from its ends); on its element's top end corner
11
+ // (e.g. an `Avatar`'s); or inline (e.g. a list row's detail); any tint.
12
12
  //
13
13
  // Deviations:
14
14
  // - Without content, a dot (10px; Figma, Framework7 have none; e.g. an
@@ -24,7 +24,7 @@ import { cn, withStyle } from '../utils/main.js';
24
24
  /**
25
25
  * A badge (UIKit `badgeValue`): a count (or short text) in a capsule, or,
26
26
  * without content, a dot; on a `Symbol` (its child), an element's corner,
27
- * or inline.
27
+ * or inline (`placement`).
28
28
  */
29
29
  export const Badge = forwardRef(({ className, placement = 'corner', style, textColor, tint, ...props }, ref) => (_jsx("span", { ref: ref, "data-badge": placement, style: withStyle({
30
30
  '--uikit-badge-text-color': textColor,
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/badge/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKjD,4EAA4E;AAC5E,4EAA4E;AAC5E,2EAA2E;AAC3E,4EAA4E;AAC5E,yEAAyE;AACzE,4EAA4E;AAC5E,+CAA+C;AAC/C,EAAE;AACF,cAAc;AACd,uEAAuE;AACvE,4EAA4E;AAC5E,gDAAgD;AAChD,yEAAyE;AACzE,iEAAiE;AACjE,2EAA2E;AAC3E,iDAAiD;AACjD,uEAAuE;AACvE,6CAA6C;AAC7C,yEAAyE;AAEzE;;;;GAIG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,CAC7B,CACE,EAAE,SAAS,EAAE,SAAS,GAAG,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EACrE,GAAG,EACH,EAAE,CAAC,CACH,eACE,GAAG,EAAE,GAAG,gBACI,SAAS,EACrB,KAAK,EAAE,SAAS,CACd;QACE,0BAA0B,EAAE,SAAS;QACrC,oBAAoB,EAAE,IAAI;KAC3B,EACD,KAAK,CACN,KACG,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,aAAa,EAAE,SAAS,CAAC,GACvC,CACH,CACF,CAAC"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/badge/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKjD,4EAA4E;AAC5E,4EAA4E;AAC5E,2EAA2E;AAC3E,iEAAiE;AACjE,yEAAyE;AACzE,0EAA0E;AAC1E,wEAAwE;AACxE,EAAE;AACF,cAAc;AACd,uEAAuE;AACvE,4EAA4E;AAC5E,gDAAgD;AAChD,yEAAyE;AACzE,iEAAiE;AACjE,2EAA2E;AAC3E,iDAAiD;AACjD,uEAAuE;AACvE,6CAA6C;AAC7C,yEAAyE;AAEzE;;;;GAIG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,CAC7B,CACE,EAAE,SAAS,EAAE,SAAS,GAAG,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EACrE,GAAG,EACH,EAAE,CAAC,CACH,eACE,GAAG,EAAE,GAAG,gBACI,SAAS,EACrB,KAAK,EAAE,SAAS,CACd;QACE,0BAA0B,EAAE,SAAS;QACrC,oBAAoB,EAAE,IAAI;KAC3B,EACD,KAAK,CACN,KACG,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,aAAa,EAAE,SAAS,CAAC,GACvC,CACH,CACF,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import type { ComponentProps } from 'react';
2
+ export type BadgePlacement = 'corner' | 'inline' | 'symbol';
2
3
  export type BadgeProps = ComponentProps<'span'> & {
3
4
  /**
4
- * On its element's top end corner (in a `Symbol`: on the symbol; its
5
- * element positioned, e.g. an `Avatar`), or inline.
5
+ * On its element's top end corner (its element positioned, e.g. an
6
+ * `Avatar`), inline, or on a symbol (a child of a `Symbol`, smaller).
6
7
  * @default 'corner'
7
8
  */
8
- placement?: 'corner' | 'inline';
9
+ placement?: BadgePlacement;
9
10
  /**
10
11
  * Its text color (e.g. for a light `tint`).
11
12
  * @default white
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/badge/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAChD;;;;OAIG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAChC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/badge/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE5D,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAChD;;;;OAIG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -39,7 +39,8 @@
39
39
  padding: 0;
40
40
  }
41
41
 
42
- &[data-badge='corner'] {
42
+ &[data-badge='corner'],
43
+ &[data-badge='symbol'] {
43
44
  position: absolute;
44
45
  z-index: 1;
45
46
  inset-block-start: calc(-1 * var(--uikit-badge-overhang));
@@ -59,7 +60,7 @@
59
60
 
60
61
  /* On a symbol (in a `Symbol`): in Framework7's size there, starting
61
62
  before its end, above it (see main.tsx). */
62
- .uikit-symbol > .uikit-badge[data-badge='corner'] {
63
+ .uikit-badge[data-badge='symbol'] {
63
64
  --uikit-badge-height: 16px;
64
65
  --uikit-badge-font-size: 10px;
65
66
  --uikit-badge-line-height: 12px;
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/button/main.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAYrB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAwIlD,eAAO,MAAM,MAAM;;;;;;;;;;CAIlB,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/button/main.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAYrB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AA2IlD,eAAO,MAAM,MAAM;;;;;;;;;;CAIlB,CAAC"}
@@ -27,16 +27,16 @@ const isGlass = (variant) => variant === 'glass' || variant === 'glass-prominent
27
27
  // form.
28
28
  const Root = forwardRef(({ children, className, context: contextProp, destructive, fill, shape, size, style, textColor, tint, variant = 'borderless', ...props }, forwardedRef) => {
29
29
  const ref = useForwardedRef(forwardedRef);
30
- const glass = isGlass(variant);
31
- const context = useGlassContext(ref, glass ? contextProp : undefined);
32
- const pressable = Boolean(props.onClick ?? props.onSecondaryClick) ||
30
+ const isGlassVariant = isGlass(variant);
31
+ const context = useGlassContext(ref, isGlassVariant ? contextProp : undefined);
32
+ const isPressable = Boolean(props.onClick ?? props.onSecondaryClick) ||
33
33
  props.type === 'submit' ||
34
34
  props.type === 'reset';
35
35
  const rootProps = useSecondaryClick({
36
36
  ...props,
37
- ...(!pressable && props.disabled === undefined && { disabled: true }),
37
+ ...(!isPressable && props.disabled === undefined && { disabled: true }),
38
38
  });
39
- return (_jsx(BaseButton, { ref: ref, "data-destructive": destructive ? '' : undefined, "data-fill": fill ? '' : undefined, "data-glass-context": glass ? (context ?? 'auto') : undefined, "data-shape": shape, "data-size": size, "data-variant": variant, style: withStyle({
39
+ return (_jsx(BaseButton, { ref: ref, "data-destructive": destructive ? '' : undefined, "data-fill": fill ? '' : undefined, "data-glass-context": isGlassVariant ? (context ?? 'auto') : undefined, "data-shape": shape, "data-size": size, "data-variant": variant, style: withStyle({
40
40
  // (`destructive` wins.)
41
41
  ...((destructive ?? tint) && {
42
42
  '--uikit-button-tint': destructive
@@ -51,7 +51,7 @@ const Root = forwardRef(({ children, className, context: contextProp, destructiv
51
51
  '--uikit-button-blend': 'normal',
52
52
  '--uikit-button-color': textColor,
53
53
  }),
54
- }, style), ...rootProps, className: cn('uikit-button-root', className), "data-button-part": "root", children: glass ? (_jsxs(_Fragment, { children: [_jsx(GlassBackground, { kind: "button", tinted: variant === 'glass-prominent' }), _jsx("span", { className: "uikit-button-content", "data-button-part": "content", children: children })] })) : (children) }));
54
+ }, style), ...rootProps, className: cn('uikit-button-root', className), "data-button-part": "root", children: isGlassVariant ? (_jsxs(_Fragment, { children: [_jsx(GlassBackground, { kind: "button", tinted: variant === 'glass-prominent' }), _jsx("span", { className: "uikit-button-content", "data-button-part": "content", children: children })] })) : (children) }));
55
55
  });
56
56
  // (Marked, e.g. for fading a bar's content, see `Header`.)
57
57
  const Icon = forwardRef(({ className, ...props }, ref) => (_jsx("span", { ref: ref, "data-button-part": "icon", ...props, className: cn('uikit-button-icon', className) })));
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/button/main.tsx"],"names":[],"mappings":";AAAA,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,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EACL,EAAE,EACF,eAAe,EACf,iBAAiB,EACjB,SAAS,GACV,MAAM,kBAAkB,CAAC;AAK1B,MAAM,OAAO,GAAG,CAAC,OAAmC,EAAE,EAAE,CACtD,OAAO,KAAK,OAAO,IAAI,OAAO,KAAK,iBAAiB,CAAC;AAEvD,wEAAwE;AACxE,2DAA2D;AAC3D,qEAAqE;AACrE,2EAA2E;AAC3E,QAAQ;AACR,EAAE;AACF,yEAAyE;AACzE,yEAAyE;AACzE,6DAA6D;AAC7D,EAAE;AACF,6EAA6E;AAC7E,8DAA8D;AAC9D,2EAA2E;AAC3E,8EAA8E;AAC9E,2EAA2E;AAC3E,8CAA8C;AAC9C,0EAA0E;AAC1E,2EAA2E;AAC3E,QAAQ;AACR,MAAM,IAAI,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f,SAAS,YAEzB,QAAQ,GACJ,IACN,CACJ,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,GACU,CACd,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,2DAA2D;AAC3D,MAAM,IAAI,GAAG,UAAU,CACrB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAGhC,eACE,GAAG,EAAE,GAAG,sBACS,MAAM,KACnB,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAC7C,CACH,CACF,CAAC;AAEF,MAAM,KAAK,GAAG,UAAU,CACtB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAEhC,eACE,GAAG,EAAE,GAAG,sBACS,OAAO,KACpB,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,SAAS,CAAC,GAC9C,CACH,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,KAAK;CACN,CAAC"}
@@ -49,23 +49,16 @@
49
49
  gap: 4px;
50
50
  letter-spacing: var(--font-ios-subheadline-tracking);
51
51
  line-height: var(--font-ios-subheadline-line-height);
52
- stroke: currentcolor;
53
- stroke-linejoin: round;
54
- stroke-width: max(0px, (var(--uikit-button-font-weight) - 400) / 326 * 1px);
55
52
  text-align: center;
56
53
  text-decoration: none;
57
54
  text-transform: none;
58
55
  transition-duration: 100ms;
59
56
  transition-property: background-color;
57
+ -webkit-user-select: none;
60
58
  user-select: none;
61
59
  vertical-align: middle;
62
60
  white-space: nowrap;
63
61
 
64
- --uikit-symbol-thinning: max(
65
- 0px,
66
- (400 - var(--uikit-button-font-weight)) / 326 * 1px
67
- );
68
-
69
62
  @media (hover: hover) {
70
63
  cursor: var(--uikit-utils-cursor);
71
64
  }
@@ -263,20 +256,22 @@
263
256
  inset: min(0px, calc(50% - 22px));
264
257
  }
265
258
 
266
- &:active:not([data-disabled]) {
259
+ /* Disabled (Base UI's), or by a disabled fieldset around it (native). */
260
+ &[data-disabled],
261
+ &:disabled {
262
+ --uikit-utils-cursor: attr(cursor type(<custom-ident>), not-allowed);
263
+
264
+ background-color: var(--uikit-button-background-disabled);
265
+ color: var(--uikit-button-color-disabled);
266
+ }
267
+
268
+ &:active:not([data-disabled], :disabled) {
267
269
  --uikit-glass-pressed: 1;
268
270
  --uikit-glass-scale: var(--glass-ios-lens-scale);
269
271
  --uikit-button-content-scale: var(--glass-ios-lens-content-scale);
270
272
 
271
273
  background-color: var(--uikit-button-background-pressed);
272
274
  }
273
-
274
- &[data-disabled] {
275
- --uikit-utils-cursor: attr(cursor type(<custom-ident>), not-allowed);
276
-
277
- background-color: var(--uikit-button-background-disabled);
278
- color: var(--uikit-button-color-disabled);
279
- }
280
275
  }
281
276
 
282
277
  /* Blended and scaled as a whole; with symbols, its parts are (a symbol:
@@ -317,17 +312,6 @@
317
312
  font-variation-settings: 'wght' var(--uikit-button-icon-font-weight);
318
313
  font-weight: round(down, var(--uikit-button-icon-font-weight), 100);
319
314
  line-height: var(--uikit-button-icon-line-height);
320
- stroke: currentcolor;
321
- stroke-linejoin: round;
322
- stroke-width: max(
323
- 0px,
324
- (var(--uikit-button-icon-font-weight) - 400) / 326 * 1px
325
- );
326
-
327
- --uikit-symbol-thinning: max(
328
- 0px,
329
- (400 - var(--uikit-button-icon-font-weight)) / 326 * 1px
330
- );
331
315
  }
332
316
 
333
317
  .uikit-button-label {
@@ -12,11 +12,6 @@
12
12
  font-variation-settings: 'wght' 590;
13
13
  font-weight: round(down, 590, 100);
14
14
  place-items: center;
15
- stroke: currentcolor;
16
- stroke-linejoin: round;
17
- stroke-width: max(0px, (590 - 400) / 326 * 1px);
18
-
19
- --uikit-symbol-thinning: max(0px, (400 - 590) / 326 * 1px);
20
15
  }
21
16
 
22
17
  /* Figma State=Selected/Unselected (mixed: as selected). */
@@ -30,6 +25,8 @@
30
25
  appearance: none;
31
26
  background: none;
32
27
  outline-offset: 2px;
28
+ -webkit-user-select: none;
29
+ user-select: none;
33
30
 
34
31
  --uikit-utils-cursor: attr(cursor type(<custom-ident>), pointer);
35
32
 
@@ -0,0 +1,9 @@
1
+ import './style.css';
2
+ export declare const Collapsible: {
3
+ Panel: import("preact").FunctionalComponent<import("react").PropsWithoutRef<Omit<Omit<import("@base-ui/react/collapsible").CollapsiblePanelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref">> & {
4
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
5
+ }>;
6
+ Root: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/collapsible").CollapsibleRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
7
+ Trigger: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/collapsible").CollapsibleTriggerProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
8
+ };
9
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/collapsible/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AA4BrB,eAAO,MAAM,WAAW;;;;;;CAGvB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import './style.css';
3
+ import { Collapsible as BaseCollapsible } from '@base-ui/react/collapsible';
4
+ import { forwardRef } from 'react';
5
+ import { cn } from '../utils/main.js';
6
+ // Base UI's Collapsible, its panel opening and closing in place as a list's
7
+ // collapsible rows do (see `List.CollapsiblePanel`): its height and opacity
8
+ // transitioning (300ms). Its root and trigger are Base UI's, rendered by
9
+ // what they collapse and toggle (e.g. a `List.Section`, its `List.Header`,
10
+ // the panel its `List.Group`: a sidebar's sections).
11
+ //
12
+ // Deviations: none (Base UI's, styled).
13
+ /** Base UI's `Collapsible.Panel`, its height and opacity transitioning. */
14
+ const Panel = forwardRef(({ className, ...props }, ref) => (_jsx(BaseCollapsible.Panel, { ref: ref, className: cn('uikit-collapsible-panel', className), "data-collapsible-part": "panel", ...props })));
15
+ export const Collapsible = {
16
+ ...BaseCollapsible,
17
+ Panel,
18
+ };
19
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/collapsible/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAAkB,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,4EAA4E;AAC5E,4EAA4E;AAC5E,yEAAyE;AACzE,2EAA2E;AAC3E,qDAAqD;AACrD,EAAE;AACF,wCAAwC;AAExC,2EAA2E;AAC3E,MAAM,KAAK,GAAG,UAAU,CAGtB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,eAAe,CAAC,KAAK,IACpB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,yBAAyB,EAAE,SAAS,CAAC,2BAC7B,OAAO,KACzB,KAAK,GACT,CACH,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,GAAG,eAAe;IAClB,KAAK;CACN,CAAC"}