@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
@@ -3,35 +3,29 @@
3
3
  .uikit-date-picker-collapsed-button {
4
4
  && {
5
5
  padding: 6px 11px;
6
- font-size: var(--font-ios-body-size);
6
+ font-size: var(--font-ui-body-size);
7
7
  font-style: normal;
8
8
  font-variant-numeric: tabular-nums;
9
- font-variation-settings: 'wght' var(--font-ios-body-weight);
10
- font-weight: round(down, var(--font-ios-body-weight), 100);
11
- letter-spacing: var(--font-ios-body-tracking);
12
- line-height: var(--font-ios-body-line-height);
13
- stroke: currentcolor;
14
- stroke-linejoin: round;
15
- stroke-width: max(0px, (var(--font-ios-body-weight) - 400) / 326 * 1px);
9
+ font-variation-settings: 'wght' var(--font-ui-body-weight);
10
+ font-weight: round(down, var(--font-ui-body-weight), 100);
11
+ letter-spacing: var(--font-ui-body-tracking);
12
+ line-height: var(--font-ui-body-line-height);
16
13
  -webkit-tap-highlight-color: transparent;
17
-
18
- --uikit-symbol-thinning: max(
19
- 0px,
20
- (400 - var(--font-ios-body-weight)) / 326 * 1px
21
- );
22
14
  }
23
15
 
24
16
  &&[data-popup-open],
25
17
  &&[aria-expanded='true'] {
26
- --uikit-button-color: var(--color-ios-primary);
18
+ --uikit-button-color: var(--color-ui-primary);
27
19
  }
28
20
  }
29
21
 
22
+ /* Its days 44px wide at least (e.g. a popover's, sized by it); with
23
+ less room given (e.g. a list row's, see list/style.css), narrower. */
30
24
  .uikit-date-picker-panel {
31
25
  display: flex;
32
26
  min-width: calc(7 * 44px + 2 * 16px);
33
27
  flex-direction: column;
34
- color: var(--color-ios-label);
28
+ color: var(--color-ui-label);
35
29
  padding-block: 6px;
36
30
  }
37
31
 
@@ -46,17 +40,12 @@
46
40
 
47
41
  .uikit-date-picker-month-title {
48
42
  margin: 0;
49
- font-size: var(--font-ios-body-size);
43
+ font-size: var(--font-ui-body-size);
50
44
  font-style: normal;
51
45
  font-variation-settings: 'wght' 590;
52
46
  font-weight: round(down, 590, 100);
53
- letter-spacing: var(--font-ios-body-tracking);
54
- line-height: var(--font-ios-body-line-height);
55
- stroke: currentcolor;
56
- stroke-linejoin: round;
57
- stroke-width: max(0px, (590 - 400) / 326 * 1px);
58
-
59
- --uikit-symbol-thinning: max(0px, (400 - 590) / 326 * 1px);
47
+ letter-spacing: var(--font-ui-body-tracking);
48
+ line-height: var(--font-ui-body-line-height);
60
49
  }
61
50
 
62
51
  .uikit-date-picker-title-button {
@@ -78,7 +67,7 @@
78
67
  }
79
68
 
80
69
  & > svg {
81
- color: var(--color-ios-primary);
70
+ color: var(--color-ui-primary);
82
71
  transition: rotate 200ms;
83
72
  }
84
73
 
@@ -87,7 +76,7 @@
87
76
  }
88
77
 
89
78
  &[aria-expanded='true'] {
90
- color: var(--color-ios-primary);
79
+ color: var(--color-ui-primary);
91
80
 
92
81
  & > svg {
93
82
  rotate: 90deg;
@@ -99,10 +88,15 @@
99
88
  }
100
89
  }
101
90
 
91
+ /* Its glyphs' ends on the header's inset, as the title's start (a 40px
92
+ button's glyph 14px in). */
102
93
  .uikit-date-picker-arrows {
103
94
  display: flex;
104
95
  align-items: center;
105
- margin-inline-end: -4px;
96
+ margin-inline-end: -14px;
97
+
98
+ /* (Not a row's trailing button's end margin, e.g. in a List.) */
99
+ --uikit-button-plain-margin-end: 0;
106
100
 
107
101
  &[hidden] {
108
102
  display: flex;
@@ -143,58 +137,82 @@
143
137
  .uikit-date-picker-weekdays {
144
138
  display: grid;
145
139
  min-height: 20px;
146
- color: var(--color-ios-tertiary-label);
140
+ color: var(--color-ui-tertiary-label);
147
141
  font-size: 13px;
148
142
  font-variation-settings: 'wght' 590;
149
143
  font-weight: round(down, 590, 100);
150
- grid-template-columns: repeat(7, minmax(44px, 1fr));
144
+ grid-template-columns: repeat(7, minmax(0, 1fr));
151
145
  line-height: 18px;
152
146
  padding-inline: 16px;
153
147
  place-items: center;
154
- stroke: currentcolor;
155
- stroke-linejoin: round;
156
- stroke-width: max(0px, (590 - 400) / 326 * 1px);
157
148
  text-transform: uppercase;
158
149
 
159
- --uikit-symbol-thinning: max(0px, (400 - 590) / 326 * 1px);
160
-
161
150
  & > abbr {
162
151
  text-decoration: none;
163
152
  }
164
153
 
165
154
  & > [data-weekday-highlighted] {
166
- color: var(--color-ios-secondary-label);
155
+ color: var(--color-ui-secondary-label);
167
156
  }
168
157
  }
169
158
 
170
- .uikit-date-picker-pages {
171
- position: relative;
172
- }
173
-
174
- .uikit-date-picker-leaving-page {
175
- position: absolute;
176
- top: 0;
177
- inset-inline: 0;
178
- pointer-events: none;
179
- }
180
-
181
159
  .uikit-date-picker-weeks {
182
160
  display: grid;
183
- grid-template-columns: repeat(7, minmax(44px, 1fr));
161
+ grid-template-columns: repeat(7, minmax(0, 1fr));
184
162
  padding-block-start: 3px;
185
163
  padding-inline: 16px;
186
164
  row-gap: 7px;
187
165
 
188
- /* Ranges are dragged (see CalendarPanel), not scrolled. */
189
- &[data-range-drag] {
166
+ /* Ranges dragged (`data-swipe`, see CalendarPanel), not scrolled. */
167
+ &[data-swipe='date-range'] {
190
168
  touch-action: none;
191
169
  }
192
170
  }
193
171
 
172
+ /* The months side by side (see pager.ts), the shown one's between its
173
+ neighbours', snapping to one each; as high as it is (set inline), the
174
+ neighbours' further weeks clipped, room for its days' focus rings
175
+ around. Not swiped (`ignore`), scrolled programmatically only (e.g. the
176
+ arrows). */
177
+ .uikit-date-picker-pages {
178
+ display: flex;
179
+ overflow: auto hidden;
180
+ box-sizing: content-box;
181
+
182
+ /* Its own height (at once), not the body's while that transitions
183
+ (see main.tsx). */
184
+ flex: none;
185
+ align-items: start;
186
+
187
+ /* (Not as wide as its months: as wide as the calendar, e.g. a
188
+ popover's, sized by the rest.) */
189
+ contain: inline-size;
190
+ margin-block: -4px;
191
+ overscroll-behavior-x: contain;
192
+ padding-block: 4px;
193
+ scroll-snap-type: x mandatory;
194
+ scrollbar-width: none;
195
+
196
+ &::-webkit-scrollbar {
197
+ display: none;
198
+ }
199
+
200
+ &[data-swipe='ignore'] {
201
+ overflow: hidden;
202
+ }
203
+
204
+ & > .uikit-date-picker-weeks {
205
+ box-sizing: border-box;
206
+ flex: 0 0 100%;
207
+ scroll-snap-align: start;
208
+ scroll-snap-stop: always;
209
+ }
210
+ }
211
+
194
212
  .uikit-date-picker-separator {
195
213
  height: 11px;
196
214
  box-sizing: border-box;
197
- border-block-end: 0.5px solid var(--color-ios-separator);
215
+ border-block-end: 0.5px solid var(--color-ui-separator);
198
216
  margin-inline: 16px;
199
217
  }
200
218
 
@@ -203,22 +221,14 @@
203
221
  min-height: 52px;
204
222
  align-items: center;
205
223
  justify-content: space-between;
206
- font-size: var(--font-ios-body-size);
224
+ font-size: var(--font-ui-body-size);
207
225
  font-style: normal;
208
- font-variation-settings: 'wght' var(--font-ios-body-weight);
209
- font-weight: round(down, var(--font-ios-body-weight), 100);
226
+ font-variation-settings: 'wght' var(--font-ui-body-weight);
227
+ font-weight: round(down, var(--font-ui-body-weight), 100);
210
228
  gap: 16px;
211
- letter-spacing: var(--font-ios-body-tracking);
212
- line-height: var(--font-ios-body-line-height);
229
+ letter-spacing: var(--font-ui-body-tracking);
230
+ line-height: var(--font-ui-body-line-height);
213
231
  padding-inline: 16px;
214
- stroke: currentcolor;
215
- stroke-linejoin: round;
216
- stroke-width: max(0px, (var(--font-ios-body-weight) - 400) / 326 * 1px);
217
-
218
- --uikit-symbol-thinning: max(
219
- 0px,
220
- (400 - var(--font-ios-body-weight)) / 326 * 1px
221
- );
222
232
  }
223
233
 
224
234
  .uikit-date-picker-collapsed {
@@ -229,10 +239,15 @@
229
239
  vertical-align: middle;
230
240
  }
231
241
 
242
+ /* Its content clipped to its corners; with less room than its height
243
+ (its positioner keeping it clear of the safe areas), scrolling. */
232
244
  .uikit-date-picker-popup {
233
245
  & > div {
234
- overflow: clip;
246
+ overflow: hidden auto;
247
+ min-height: 0;
248
+ flex: 0 1 auto;
235
249
  border-radius: inherit;
250
+ overscroll-behavior: contain;
236
251
  }
237
252
  }
238
253
 
@@ -250,28 +265,23 @@
250
265
  margin: 0;
251
266
  appearance: none;
252
267
  background: none;
253
- color: var(--color-ios-label);
268
+ color: var(--color-ui-label);
269
+
270
+ /* (Its circle, as wide as it is, up to 44px.) */
271
+ container-type: inline-size;
254
272
  font-family: inherit;
255
- font-size: var(--font-ios-title3-size);
273
+ font-size: var(--font-ui-title3-size);
256
274
  font-style: normal;
257
275
  font-variant-numeric: tabular-nums;
258
- font-variation-settings: 'wght' var(--font-ios-title3-weight);
259
- font-weight: round(down, var(--font-ios-title3-weight), 100);
276
+ font-variation-settings: 'wght' var(--font-ui-title3-weight);
277
+ font-weight: round(down, var(--font-ui-title3-weight), 100);
260
278
  isolation: isolate;
261
- letter-spacing: var(--font-ios-title3-tracking);
262
- line-height: var(--font-ios-title3-line-height);
279
+ letter-spacing: var(--font-ui-title3-tracking);
280
+ line-height: var(--font-ui-title3-line-height);
263
281
  outline: none;
264
282
  place-items: center;
265
- stroke: currentcolor;
266
- stroke-linejoin: round;
267
- stroke-width: max(0px, (var(--font-ios-title3-weight) - 400) / 326 * 1px);
268
283
  -webkit-tap-highlight-color: transparent;
269
284
 
270
- --uikit-symbol-thinning: max(
271
- 0px,
272
- (400 - var(--font-ios-title3-weight)) / 326 * 1px
273
- );
274
-
275
285
  @media (hover: hover) {
276
286
  cursor: pointer;
277
287
  }
@@ -279,8 +289,8 @@
279
289
  &::before {
280
290
  position: absolute;
281
291
  z-index: -1;
282
- width: 44px;
283
- height: 44px;
292
+ width: min(44px, 100cqi);
293
+ height: min(44px, 100cqi);
284
294
  border-radius: 50%;
285
295
  margin: auto;
286
296
  content: '';
@@ -288,29 +298,24 @@
288
298
  }
289
299
 
290
300
  &:focus-visible::before {
291
- outline: 2px solid var(--color-ios-primary);
301
+ outline: 2px solid var(--color-ui-primary);
292
302
  outline-offset: 2px;
293
303
  }
294
304
 
295
305
  &[aria-current='date'] {
296
- color: var(--color-ios-primary);
306
+ color: var(--color-ui-primary);
297
307
  }
298
308
 
299
309
  &[aria-pressed='true'] {
300
- color: var(--color-ios-primary);
310
+ color: var(--color-ui-primary);
301
311
  font-size: 24px;
302
312
  font-variation-settings: 'wght' 510;
303
313
  font-weight: round(down, 510, 100);
304
- stroke: currentcolor;
305
- stroke-linejoin: round;
306
- stroke-width: max(0px, (510 - 400) / 326 * 1px);
307
-
308
- --uikit-symbol-thinning: max(0px, (400 - 510) / 326 * 1px);
309
314
 
310
315
  &::before {
311
316
  background-color: color-mix(
312
317
  in srgb,
313
- var(--color-ios-primary) 12%,
318
+ var(--color-ui-primary) 12%,
314
319
  transparent
315
320
  );
316
321
  }
@@ -319,17 +324,12 @@
319
324
  &[data-range='middle'] {
320
325
  background-color: color-mix(
321
326
  in srgb,
322
- var(--color-ios-primary) 12%,
327
+ var(--color-ui-primary) 12%,
323
328
  transparent
324
329
  );
325
- font-size: var(--font-ios-title3-size);
330
+ font-size: var(--font-ui-title3-size);
326
331
  font-variation-settings: 'wght' 400;
327
332
  font-weight: round(down, 400, 100);
328
- stroke: currentcolor;
329
- stroke-linejoin: round;
330
- stroke-width: max(0px, (400 - 400) / 326 * 1px);
331
-
332
- --uikit-symbol-thinning: max(0px, (400 - 400) / 326 * 1px);
333
333
 
334
334
  &::before {
335
335
  background: none;
@@ -342,7 +342,7 @@
342
342
  color: #fff;
343
343
 
344
344
  &::before {
345
- background-color: var(--color-ios-primary);
345
+ background-color: var(--color-ui-primary);
346
346
  }
347
347
  }
348
348
 
@@ -350,14 +350,14 @@
350
350
  background: linear-gradient(
351
351
  to var(--uikit-date-picker-end, right),
352
352
  transparent 50%,
353
- color-mix(in srgb, var(--color-ios-primary) 12%, transparent) 50%
353
+ color-mix(in srgb, var(--color-ui-primary) 12%, transparent) 50%
354
354
  );
355
355
  }
356
356
 
357
357
  &[data-range='end'] {
358
358
  background: linear-gradient(
359
359
  to var(--uikit-date-picker-end, right),
360
- color-mix(in srgb, var(--color-ios-primary) 12%, transparent) 50%,
360
+ color-mix(in srgb, var(--color-ui-primary) 12%, transparent) 50%,
361
361
  transparent 50%
362
362
  );
363
363
  }
@@ -368,12 +368,12 @@
368
368
 
369
369
  /* The adjacent months' days (see showAdjacentMonths) */
370
370
  &[data-outside]:not([aria-pressed='true'], [data-range]) {
371
- color: var(--color-ios-tertiary-label);
371
+ color: var(--color-ui-tertiary-label);
372
372
  }
373
373
 
374
374
  /* Highlighted weekdays (e.g. the weekend) */
375
375
  &[data-weekday-highlighted]:enabled:not([aria-pressed='true']) {
376
- color: var(--color-ios-secondary-label);
376
+ color: var(--color-ui-secondary-label);
377
377
  }
378
378
 
379
379
  /* Highlighted days (see DayHighlight): dots below the date (Framework7
@@ -398,21 +398,21 @@
398
398
  }
399
399
 
400
400
  &[data-highlight-text]:not([aria-pressed='true']) {
401
- color: var(--uikit-date-picker-text, var(--color-ios-primary));
401
+ color: var(--uikit-date-picker-text, var(--color-ui-primary));
402
402
  }
403
403
 
404
404
  &[data-highlight-circle]:not([aria-pressed='true']) {
405
405
  &::before {
406
406
  background-color: color-mix(
407
407
  in srgb,
408
- var(--uikit-date-picker-circle, var(--color-ios-primary)) 20%,
408
+ var(--uikit-date-picker-circle, var(--color-ui-primary)) 20%,
409
409
  transparent
410
410
  );
411
411
  }
412
412
  }
413
413
 
414
414
  &:disabled {
415
- color: var(--color-ios-tertiary-label);
415
+ color: var(--color-ui-tertiary-label);
416
416
 
417
417
  @media (hover: hover) {
418
418
  cursor: not-allowed;
@@ -423,24 +423,16 @@
423
423
  .uikit-date-picker-message {
424
424
  padding: 12px 16px;
425
425
  margin: 0;
426
- color: var(--color-ios-secondary-label);
427
- font-size: var(--font-ios-footnote-size);
426
+ color: var(--color-ui-secondary-label);
427
+ font-size: var(--font-ui-footnote-size);
428
428
  font-style: normal;
429
- font-variation-settings: 'wght' var(--font-ios-footnote-weight);
430
- font-weight: round(down, var(--font-ios-footnote-weight), 100);
431
- letter-spacing: var(--font-ios-footnote-tracking);
432
- line-height: var(--font-ios-footnote-line-height);
433
- stroke: currentcolor;
434
- stroke-linejoin: round;
435
- stroke-width: max(0px, (var(--font-ios-footnote-weight) - 400) / 326 * 1px);
436
-
437
- --uikit-symbol-thinning: max(
438
- 0px,
439
- (400 - var(--font-ios-footnote-weight)) / 326 * 1px
440
- );
429
+ font-variation-settings: 'wght' var(--font-ui-footnote-weight);
430
+ font-weight: round(down, var(--font-ui-footnote-weight), 100);
431
+ letter-spacing: var(--font-ui-footnote-tracking);
432
+ line-height: var(--font-ui-footnote-line-height);
441
433
 
442
434
  &[data-variant='error'] {
443
- color: var(--color-ios-system-red);
435
+ color: var(--color-ui-system-red);
444
436
  }
445
437
  }
446
438
  }
@@ -0,0 +1,31 @@
1
+ import './style.css';
2
+ import { Drawer as BaseDrawer } from '@base-ui/react/drawer';
3
+ import { ReactElement } from 'react';
4
+ import type { DrawerHandle, DrawerPopupProps, DrawerRootProps, DrawerSwipeAreaProps } from './props.js';
5
+ export type { DrawerHandle, DrawerPopupProps, DrawerRootProps, DrawerSide, DrawerSwipeAreaProps, } from './props.js';
6
+ /** `Drawer.createHandle`, in a component: made once, for its lifetime. */
7
+ export declare const useCreateDrawerHandle: <Payload = unknown>() => DrawerHandle<Payload>;
8
+ export declare const Drawer: {
9
+ Root: <Payload>({ side, ...props }: DrawerRootProps<Payload>) => ReactElement;
10
+ Popup: import("preact").FunctionalComponent<import("react").PropsWithoutRef<DrawerPopupProps> & {
11
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
12
+ }>;
13
+ SwipeArea: import("preact").FunctionalComponent<import("react").PropsWithoutRef<DrawerSwipeAreaProps> & {
14
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
15
+ }>;
16
+ createHandle: <Payload = unknown>() => DrawerHandle<Payload>;
17
+ Backdrop: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/drawer").DrawerBackdropProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
18
+ Close: BaseDrawer.Close;
19
+ Content: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/drawer").DrawerContentProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
20
+ Description: BaseDrawer.Description;
21
+ Indent: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/drawer").DrawerIndentProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
22
+ IndentBackground: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/drawer").DrawerIndentBackgroundProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
23
+ Portal: BaseDrawer.Portal;
24
+ Provider: typeof BaseDrawer.Provider;
25
+ Title: BaseDrawer.Title;
26
+ Trigger: BaseDrawer.Trigger;
27
+ Viewport: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/drawer").DrawerViewportProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
28
+ VirtualKeyboardProvider: typeof BaseDrawer.VirtualKeyboardProvider;
29
+ Handle: typeof BaseDrawer.Handle;
30
+ };
31
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAGL,YAAY,EAIb,MAAM,OAAO,CAAC;AASf,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,eAAe,EAEf,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAmLpB,0EAA0E;AAC1E,eAAO,MAAM,qBAAqB,GAChC,OAAO,GAAG,OAAO,OACd,YAAY,CAAC,OAAO,CAIxB,CAAC;AAEF,eAAO,MAAM,MAAM;WAhKL,OAAO,sBAGlB,eAAe,CAAC,OAAO,CAAC,KAAG,YAAY;;;;;;;mBAiJpB,OAAO,iBAAgB,YAAY,CAAC,OAAO,CAAC;;;;;;;;;;;;;;CAkBjE,CAAC"}
@@ -0,0 +1,119 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import './style.css';
3
+ import { Drawer as BaseDrawer } from '@base-ui/react/drawer';
4
+ import { createContext, forwardRef, useContext, useEffect, useState, } from 'react';
5
+ import { cn, useForwardedRef, usePortalContainer, withStyle, } from '../utils/main.js';
6
+ import { ViewportScopeContext } from '../viewport/main.js';
7
+ // A drawer (Base UI's `Drawer`, from a side; Framework7's panels): a column
8
+ // over the content from the inline start or end (e.g. a compact layout's
9
+ // sidebar or inspector, see `Layout`), the content dimmed behind it, hidden
10
+ // until opened: swiped in from its edge (its `SwipeArea`) or by a
11
+ // `Trigger` (in it, or linked by a handle, `Drawer.createHandle` or, in a
12
+ // component, `useCreateDrawerHandle`), swiped back (or the dimmed content
13
+ // pressed, or a `Close`) to close. Its state is the app's, or its own;
14
+ // which of its content shows as a drawer, and which side by side (e.g. by
15
+ // the size class, `useSizeClass`), is the app's choice.
16
+ //
17
+ // Also:
18
+ // - Drawers (as Framework7's panels, swiping in), not a column at a time
19
+ // pushed as a navigation stack.
20
+ /** A drawer's side, for its parts. */
21
+ const SideContext = createContext('inline-start');
22
+ /** The physical direction a drawer at a side is swiped towards to close. */
23
+ const closingDirection = (side, isRightToLeft) => (side === 'inline-start') === isRightToLeft ? 'right' : 'left';
24
+ /**
25
+ * A drawer (Base UI's `Drawer.Root`) at its side: opened by its
26
+ * `SwipeArea` or a `Trigger`, closed by swiping it back, a press on the
27
+ * dimmed content (unless `disablePointerDismissal`) or a `Close`.
28
+ */
29
+ const Root = ({ side = 'inline-start', ...props }) => {
30
+ // The document's direction, for its side's swipes (as it mounts).
31
+ const [isRightToLeft] = useState(() => typeof document !== 'undefined' &&
32
+ getComputedStyle(document.documentElement).direction === 'rtl');
33
+ return (_jsx(SideContext.Provider, { value: side, children: _jsx(BaseDrawer.Root, { swipeDirection: closingDirection(side, isRightToLeft), ...props }) }));
34
+ };
35
+ /**
36
+ * Its column (Base UI's `Drawer.Popup`, in its portal, over a backdrop and
37
+ * in a viewport): over the content at its side, the content dimmed behind
38
+ * it; kept mounted while closed (its pages keep their state).
39
+ */
40
+ const Popup = forwardRef(({ className, container, floating = false, size = 320, style, ...props }, ref) => {
41
+ const side = useContext(SideContext);
42
+ // Its anchors' scope: fixed to it (see Viewport.Padding).
43
+ const [scope] = useState(() => ({}));
44
+ return (_jsx(ViewportScopeContext.Provider, { value: scope, children: _jsxs(BaseDrawer.Portal, { keepMounted: true, className: "uikit-drawer-portal", container: usePortalContainer(container), children: [_jsx(BaseDrawer.Backdrop, { className: "uikit-drawer-backdrop", "data-drawer-part": "backdrop" }), _jsx(BaseDrawer.Viewport, { className: "uikit-drawer-viewport", "data-drawer-part": "viewport", children: _jsx(BaseDrawer.Popup, { ref: ref, "data-drawer-part": "popup", "data-floating": floating ? '' : undefined, "data-side": side, style: withStyle({ '--uikit-drawer-size': `${String(size)}px` }, style), ...props, className: cn('uikit-drawer-popup', className) }) })] }) }));
45
+ });
46
+ /** How far a touch moves before its axis is taken (px, as Base UI's). */
47
+ const axisSlop = 6;
48
+ /**
49
+ * A touch on `area` moving sideways first is a swipe, scrolling nothing
50
+ * until it ends (its moves cancelled); moving vertically first, it scrolls
51
+ * the page. Base UI leaves the area's vertical panning to the browser
52
+ * (`touch-action: pan-y`), not cancelling a swipe's moves either, so the
53
+ * swipe's vertical drift scrolled the page.
54
+ */
55
+ const useSwipeScrollLock = (area) => {
56
+ useEffect(() => {
57
+ const { current: element } = area;
58
+ if (!element)
59
+ return undefined;
60
+ let start;
61
+ let isSwipe;
62
+ const onTouchStart = (event) => {
63
+ start = event.touches.length === 1 ? event.touches[0] : undefined;
64
+ isSwipe = undefined;
65
+ };
66
+ const onTouchMove = (event) => {
67
+ const touch = event.touches[0];
68
+ if (!start || !touch)
69
+ return;
70
+ if (isSwipe === undefined) {
71
+ const x = Math.abs(touch.clientX - start.clientX);
72
+ const y = Math.abs(touch.clientY - start.clientY);
73
+ if (Math.max(x, y) < axisSlop)
74
+ return;
75
+ isSwipe = x > y;
76
+ }
77
+ if (isSwipe && event.cancelable)
78
+ event.preventDefault();
79
+ };
80
+ element.addEventListener('touchstart', onTouchStart, { passive: true });
81
+ element.addEventListener('touchmove', onTouchMove, { passive: false });
82
+ return () => {
83
+ element.removeEventListener('touchstart', onTouchStart);
84
+ element.removeEventListener('touchmove', onTouchMove);
85
+ };
86
+ }, [area]);
87
+ };
88
+ /**
89
+ * A strip at its drawer's edge (`width`, 20px) it's swiped in from (where
90
+ * it's rendered: e.g. the app's root, or a layout's); without one, a drawer
91
+ * isn't swiped in. Swiped, nothing scrolls meanwhile (see
92
+ * `useSwipeScrollLock`).
93
+ */
94
+ const SwipeArea = forwardRef(({ className, style, width = 20, ...props }, forwardedRef) => {
95
+ const side = useContext(SideContext);
96
+ const ref = useForwardedRef(forwardedRef);
97
+ useSwipeScrollLock(ref);
98
+ return (_jsx(BaseDrawer.SwipeArea, { ref: ref, "data-drawer-part": "swipe-area", "data-side": side, style: withStyle({ '--uikit-drawer-swipe-area-width': `${String(width)}px` }, style), ...props, className: cn('uikit-drawer-swipe-area', className) }));
99
+ });
100
+ /**
101
+ * A handle linking a drawer (its `handle`) to its triggers outside it (e.g.
102
+ * in a column's bar, their `handle`), and opening or closing it
103
+ * imperatively (Base UI's `Drawer.createHandle`): made once, e.g. at a
104
+ * module's top level (in a component: `useCreateDrawerHandle`).
105
+ */
106
+ const createHandle = () => BaseDrawer.createHandle();
107
+ /** `Drawer.createHandle`, in a component: made once, for its lifetime. */
108
+ export const useCreateDrawerHandle = () => {
109
+ const [handle] = useState(() => createHandle());
110
+ return handle;
111
+ };
112
+ export const Drawer = {
113
+ ...BaseDrawer,
114
+ Root,
115
+ Popup,
116
+ SwipeArea,
117
+ createHandle,
118
+ };
119
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/drawer/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EACL,aAAa,EACb,UAAU,EAEV,UAAU,EACV,SAAS,EACT,QAAQ,GACT,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,EAAE,EACF,eAAe,EACf,kBAAkB,EAClB,SAAS,GACV,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAiB3D,4EAA4E;AAC5E,yEAAyE;AACzE,4EAA4E;AA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,GAAG,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE;IAC3D,MAAM,IAAI,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;IACrC,MAAM,GAAG,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;IAC1C,kBAAkB,CAAC,GAAG,CAAC,CAAC;IAExB,OAAO,CACL,KAAC,UAAU,CAAC,SAAS,IACnB,GAAG,EAAE,GAAG,sBACS,YAAY,eAClB,IAAI,EACf,KAAK,EAAE,SAAS,CACd,EAAE,iCAAiC,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,EAC3D,KAAK,CACN,KACG,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,yBAAyB,EAAE,SAAS,CAAC,GACnD,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF;;;;;GAKG;AACH,MAAM,YAAY,GAAG,GAA8C,EAAE,CACnE,UAAU,CAAC,YAAY,EAAW,CAAC;AAErC,0EAA0E;AAC1E,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAEV,EAAE;IAC3B,MAAM,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,YAAY,EAAW,CAAC,CAAC;IAEzD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,GAAG,UAAU;IACb,IAAI;IACJ,KAAK;IACL,SAAS;IACT,YAAY;CACb,CAAC"}
@@ -0,0 +1,39 @@
1
+ import type { Drawer as BaseDrawer } from '@base-ui/react/drawer';
2
+ /** The side a drawer is at (and hides towards). */
3
+ export type DrawerSide = 'inline-end' | 'inline-start';
4
+ export type DrawerRootProps<Payload = unknown> = Omit<BaseDrawer.Root.Props<Payload>, 'defaultSnapPoint' | 'onSnapPointChange' | 'snapPoint' | 'snapPoints' | 'snapToSequentialPoints' | 'swipeDirection'> & {
5
+ /**
6
+ * Its side: its popup floats over the content from there, hidden until
7
+ * opened (swiped in from its `SwipeArea`, or by a `Trigger`), swiped back
8
+ * towards it to close.
9
+ * @default 'inline-start'
10
+ */
11
+ side?: DrawerSide;
12
+ };
13
+ export type DrawerPopupProps = Omit<BaseDrawer.Popup.Props, 'ref'> & {
14
+ /**
15
+ * A parent element to render the portal element into (else the provided
16
+ * one, see `PortalContainerContext`, or the body).
17
+ */
18
+ container?: BaseDrawer.Portal.Props['container'];
19
+ /**
20
+ * Without a background or shadow of its own: its content floats itself
21
+ * (e.g. a floating `Sidebar`).
22
+ */
23
+ floating?: boolean;
24
+ /**
25
+ * Its size (px), at most the container's less 44px.
26
+ * @default 320
27
+ */
28
+ size?: number;
29
+ };
30
+ export type DrawerSwipeAreaProps = Omit<BaseDrawer.SwipeArea.Props, 'ref' | 'swipeDirection'> & {
31
+ /**
32
+ * Its width (px): how far from the drawer's edge a swipe starts.
33
+ * @default 20
34
+ */
35
+ width?: number;
36
+ };
37
+ /** A handle linking a drawer to its triggers outside it. */
38
+ export type DrawerHandle<Payload = unknown> = BaseDrawer.Handle<Payload>;
39
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAElE,mDAAmD;AACnD,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,cAAc,CAAC;AAGvD,MAAM,MAAM,eAAe,CAAC,OAAO,GAAG,OAAO,IAAI,IAAI,CACnD,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAC5B,kBAAkB,GAClB,mBAAmB,GACnB,WAAW,GACX,YAAY,GACZ,wBAAwB,GACxB,gBAAgB,CACnB,GAAG;IACF;;;;;OAKG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IACnE;;;OAGG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACjD;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,UAAU,CAAC,SAAS,CAAC,KAAK,EAC1B,KAAK,GAAG,gBAAgB,CACzB,GAAG;IACF;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,4DAA4D;AAC5D,MAAM,MAAM,YAAY,CAAC,OAAO,GAAG,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.js","sourceRoot":"","sources":["../../../src/components/drawer/props.tsx"],"names":[],"mappings":""}