@flux-ui/components 3.0.0-next.34 → 3.0.0-next.38

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 (339) hide show
  1. package/dist/component/FluxActionBar.vue.d.ts +17 -17
  2. package/dist/component/FluxActionPane.vue.d.ts +7 -7
  3. package/dist/component/{FluxActions.vue.d.ts → FluxActionStack.vue.d.ts} +11 -15
  4. package/dist/component/{FluxAutoGrid.vue.d.ts → FluxAdaptiveGroup.vue.d.ts} +6 -3
  5. package/dist/component/FluxAdaptiveSlot.vue.d.ts +35 -0
  6. package/dist/component/FluxAspectRatio.vue.d.ts +3 -3
  7. package/dist/component/FluxBadgeStack.vue.d.ts +3 -3
  8. package/dist/component/FluxButtonGroup.vue.d.ts +3 -3
  9. package/dist/component/FluxButtonStack.vue.d.ts +3 -3
  10. package/dist/component/FluxCalendar.vue.d.ts +3 -3
  11. package/dist/component/FluxCalendarEvent.vue.d.ts +3 -3
  12. package/dist/component/FluxCheckbox.vue.d.ts +2 -1
  13. package/dist/component/FluxClickablePane.vue.d.ts +5 -5
  14. package/dist/component/FluxColorSelect.vue.d.ts +1 -0
  15. package/dist/component/{FluxPaneDeck.vue.d.ts → FluxColumn.vue.d.ts} +5 -5
  16. package/dist/component/FluxCommandPalette.vue.d.ts +52 -0
  17. package/dist/component/FluxCommandPaletteGroup.vue.d.ts +8 -0
  18. package/dist/component/FluxCommandPaletteItem.vue.d.ts +18 -0
  19. package/dist/component/FluxComment.vue.d.ts +3 -3
  20. package/dist/component/FluxContainer.vue.d.ts +3 -3
  21. package/dist/component/FluxDivider.vue.d.ts +5 -3
  22. package/dist/component/FluxDropZone.vue.d.ts +8 -7
  23. package/dist/component/FluxExpandableGroup.vue.d.ts +3 -3
  24. package/dist/component/FluxFader.vue.d.ts +3 -3
  25. package/dist/component/FluxFaderItem.vue.d.ts +3 -3
  26. package/dist/component/FluxFilter.vue.d.ts +3 -3
  27. package/dist/component/FluxFilterBar.vue.d.ts +3 -3
  28. package/dist/component/FluxFilterBase.vue.d.ts +4 -4
  29. package/dist/component/FluxFilterWindow.vue.d.ts +13 -17
  30. package/dist/component/FluxFlyout.vue.d.ts +19 -21
  31. package/dist/component/FluxForm.vue.d.ts +3 -3
  32. package/dist/component/FluxFormColumn.vue.d.ts +3 -3
  33. package/dist/component/FluxFormDateInput.vue.d.ts +18 -24
  34. package/dist/component/FluxFormDateRangeInput.vue.d.ts +18 -21
  35. package/dist/component/FluxFormDateTimeInput.vue.d.ts +18 -24
  36. package/dist/component/FluxFormField.vue.d.ts +7 -7
  37. package/dist/component/FluxFormGrid.vue.d.ts +3 -3
  38. package/dist/component/FluxFormInput.vue.d.ts +2 -9
  39. package/dist/component/FluxFormInputAddition.vue.d.ts +3 -3
  40. package/dist/component/FluxFormInputGroup.vue.d.ts +3 -3
  41. package/dist/component/FluxFormPinInput.vue.d.ts +2 -4
  42. package/dist/component/FluxFormRangeSlider.vue.d.ts +18 -2
  43. package/dist/component/FluxFormRow.vue.d.ts +3 -3
  44. package/dist/component/FluxFormSection.vue.d.ts +3 -3
  45. package/dist/component/FluxFormSelect.vue.d.ts +2 -4
  46. package/dist/component/FluxFormSelectAsync.vue.d.ts +2 -4
  47. package/dist/component/FluxFormSlider.vue.d.ts +11 -2
  48. package/dist/component/FluxFormTextArea.vue.d.ts +2 -6
  49. package/dist/component/FluxFormTimeZonePicker.vue.d.ts +2 -4
  50. package/dist/component/FluxFormTreeViewSelect.vue.d.ts +15 -37
  51. package/dist/component/FluxGallery.vue.d.ts +3 -3
  52. package/dist/component/FluxGrid.vue.d.ts +3 -3
  53. package/dist/component/FluxGridColumn.vue.d.ts +3 -3
  54. package/dist/component/FluxIcon.vue.d.ts +1 -0
  55. package/dist/component/FluxInfo.vue.d.ts +3 -3
  56. package/dist/component/FluxInfoStack.vue.d.ts +3 -3
  57. package/dist/component/FluxLayerPane.vue.d.ts +20 -0
  58. package/dist/component/FluxLayerPaneSecondary.vue.d.ts +20 -0
  59. package/dist/component/FluxMenu.vue.d.ts +3 -3
  60. package/dist/component/FluxMenuCollapsible.vue.d.ts +47 -0
  61. package/dist/component/FluxMenuGroup.vue.d.ts +3 -3
  62. package/dist/component/FluxMenuItem.vue.d.ts +5 -3
  63. package/dist/component/FluxMenuOptions.vue.d.ts +3 -3
  64. package/dist/component/FluxNotice.vue.d.ts +5 -5
  65. package/dist/component/FluxNoticeStack.vue.d.ts +3 -3
  66. package/dist/component/FluxOverflowBar.vue.d.ts +4 -4
  67. package/dist/component/FluxPane.vue.d.ts +5 -5
  68. package/dist/component/FluxPaneBody.vue.d.ts +3 -3
  69. package/dist/component/FluxPaneFooter.vue.d.ts +3 -3
  70. package/dist/component/FluxPaneGroup.vue.d.ts +3 -3
  71. package/dist/component/FluxPaneHeader.vue.d.ts +6 -6
  72. package/dist/component/FluxPaneIllustration.vue.d.ts +5 -5
  73. package/dist/component/FluxPressable.vue.d.ts +3 -3
  74. package/dist/component/FluxPrompt.vue.d.ts +3 -17
  75. package/dist/component/FluxRoot.vue.d.ts +3 -3
  76. package/dist/component/FluxRow.vue.d.ts +23 -0
  77. package/dist/component/FluxSegmentedControl.vue.d.ts +3 -2
  78. package/dist/component/FluxSplitButton.vue.d.ts +5 -5
  79. package/dist/component/FluxStack.vue.d.ts +3 -3
  80. package/dist/component/FluxStepper.vue.d.ts +6 -6
  81. package/dist/component/FluxStepperStep.vue.d.ts +3 -3
  82. package/dist/component/FluxTab.vue.d.ts +3 -3
  83. package/dist/component/FluxTabBar.vue.d.ts +3 -3
  84. package/dist/component/FluxTabBarItem.vue.d.ts +5 -7
  85. package/dist/component/FluxTableActions.vue.d.ts +3 -3
  86. package/dist/component/FluxTableBar.vue.d.ts +3 -3
  87. package/dist/component/FluxTableCell.vue.d.ts +5 -5
  88. package/dist/component/FluxTableHeader.vue.d.ts +3 -3
  89. package/dist/component/FluxTableRow.vue.d.ts +3 -3
  90. package/dist/component/FluxTabs.vue.d.ts +6 -6
  91. package/dist/component/FluxTag.vue.d.ts +1 -0
  92. package/dist/component/FluxTagStack.vue.d.ts +3 -3
  93. package/dist/component/FluxTimeline.vue.d.ts +3 -3
  94. package/dist/component/FluxTimelineItem.vue.d.ts +3 -3
  95. package/dist/component/FluxToggle.vue.d.ts +2 -3
  96. package/dist/component/FluxToolbar.vue.d.ts +3 -3
  97. package/dist/component/FluxToolbarGroup.vue.d.ts +3 -3
  98. package/dist/component/FluxWindow.vue.d.ts +3 -3
  99. package/dist/component/index.d.ts +11 -3
  100. package/dist/component/primitive/Anchor.vue.d.ts +3 -3
  101. package/dist/component/primitive/AnchorPopup.vue.d.ts +3 -3
  102. package/dist/component/primitive/CoordinatePicker.vue.d.ts +1 -0
  103. package/dist/component/primitive/DialogLayout.vue.d.ts +28 -0
  104. package/dist/component/primitive/FilterOptionBase.vue.d.ts +2 -2
  105. package/dist/component/primitive/SelectBase.vue.d.ts +19 -37
  106. package/dist/component/primitive/SliderThumb.vue.d.ts +4 -0
  107. package/dist/component/primitive/TreeNodeRenderer.vue.d.ts +30 -0
  108. package/dist/component/primitive/index.d.ts +2 -0
  109. package/dist/composable/index.d.ts +1 -0
  110. package/dist/composable/private/index.d.ts +8 -0
  111. package/dist/composable/private/useAsyncFilterOptions.d.ts +14 -0
  112. package/dist/composable/private/useCommandPalette.d.ts +38 -0
  113. package/dist/composable/private/useDateFlyout.d.ts +10 -0
  114. package/dist/composable/private/useDropdownPopup.d.ts +27 -0
  115. package/dist/composable/private/useFilterOption.d.ts +12 -0
  116. package/dist/composable/useAdaptiveGroupInjection.d.ts +2 -0
  117. package/dist/data/di.d.ts +11 -0
  118. package/dist/data/filter.d.ts +4 -17
  119. package/dist/data/i18n.d.ts +17 -0
  120. package/dist/data/timeZones.d.ts +3 -0
  121. package/dist/index.css +710 -349
  122. package/dist/index.d.ts +1 -1
  123. package/dist/index.js +6936 -5537
  124. package/dist/index.js.map +1 -1
  125. package/dist/transition/FluxAutoHeightTransition.vue.d.ts +5 -3
  126. package/dist/transition/FluxAutoWidthTransition.vue.d.ts +5 -3
  127. package/dist/transition/FluxBreakthroughTransition.vue.d.ts +5 -3
  128. package/dist/transition/FluxFadeTransition.vue.d.ts +5 -3
  129. package/dist/transition/FluxOverlayTransition.vue.d.ts +5 -3
  130. package/dist/transition/FluxRouteTransition.vue.d.ts +5 -3
  131. package/dist/transition/FluxSlideOverTransition.vue.d.ts +5 -3
  132. package/dist/transition/FluxTooltipTransition.vue.d.ts +5 -3
  133. package/dist/transition/FluxVerticalWindowTransition.vue.d.ts +5 -3
  134. package/dist/transition/FluxWindowTransition.vue.d.ts +5 -3
  135. package/package.json +19 -23
  136. package/src/component/FluxActionBar.vue +9 -8
  137. package/src/component/FluxActionPane.vue +4 -3
  138. package/src/component/{FluxActions.vue → FluxActionStack.vue} +2 -2
  139. package/src/component/FluxAdaptiveGroup.vue +112 -0
  140. package/src/component/FluxAdaptiveSlot.vue +159 -0
  141. package/src/component/FluxAlert.vue +8 -17
  142. package/src/component/FluxAnimatedColors.vue +1 -1
  143. package/src/component/FluxAspectRatio.vue +2 -1
  144. package/src/component/FluxBadge.vue +5 -1
  145. package/src/component/FluxBadgeStack.vue +2 -1
  146. package/src/component/FluxButtonGroup.vue +2 -1
  147. package/src/component/FluxButtonStack.vue +2 -1
  148. package/src/component/FluxCalendar.vue +8 -1
  149. package/src/component/FluxCalendarEvent.vue +2 -1
  150. package/src/component/FluxCheckbox.vue +33 -6
  151. package/src/component/FluxChip.vue +1 -0
  152. package/src/component/FluxClickablePane.vue +3 -2
  153. package/src/component/FluxColorPicker.vue +8 -1
  154. package/src/component/FluxColorSelect.vue +25 -4
  155. package/src/component/{FluxAutoGrid.vue → FluxColumn.vue} +5 -8
  156. package/src/component/FluxCommandPalette.vue +290 -0
  157. package/src/component/FluxCommandPaletteGroup.vue +23 -0
  158. package/src/component/FluxCommandPaletteItem.vue +60 -0
  159. package/src/component/FluxComment.vue +2 -2
  160. package/src/component/FluxConfirm.vue +8 -17
  161. package/src/component/FluxContainer.vue +3 -2
  162. package/src/component/FluxDataTable.vue +3 -1
  163. package/src/component/FluxDivider.vue +7 -3
  164. package/src/component/FluxDropZone.vue +22 -8
  165. package/src/component/FluxExpandable.vue +3 -2
  166. package/src/component/FluxExpandableGroup.vue +2 -2
  167. package/src/component/FluxFader.vue +2 -2
  168. package/src/component/FluxFaderItem.vue +2 -1
  169. package/src/component/FluxFilter.vue +2 -1
  170. package/src/component/FluxFilterBar.vue +3 -2
  171. package/src/component/FluxFilterBase.vue +17 -9
  172. package/src/component/FluxFilterOption.vue +3 -14
  173. package/src/component/FluxFilterOptionAsync.vue +17 -60
  174. package/src/component/FluxFilterOptions.vue +3 -25
  175. package/src/component/FluxFilterOptionsAsync.vue +9 -73
  176. package/src/component/FluxFilterWindow.vue +1 -1
  177. package/src/component/FluxFlyout.vue +13 -11
  178. package/src/component/FluxForm.vue +2 -1
  179. package/src/component/FluxFormColumn.vue +2 -1
  180. package/src/component/FluxFormDateInput.vue +9 -22
  181. package/src/component/FluxFormDateRangeInput.vue +20 -15
  182. package/src/component/FluxFormDateTimeInput.vue +17 -20
  183. package/src/component/FluxFormField.vue +4 -4
  184. package/src/component/FluxFormGrid.vue +2 -1
  185. package/src/component/FluxFormInput.vue +11 -10
  186. package/src/component/FluxFormInputAddition.vue +2 -1
  187. package/src/component/FluxFormInputGroup.vue +3 -2
  188. package/src/component/FluxFormPinInput.vue +14 -6
  189. package/src/component/FluxFormRangeSlider.vue +12 -2
  190. package/src/component/FluxFormRow.vue +2 -1
  191. package/src/component/FluxFormSection.vue +4 -3
  192. package/src/component/FluxFormSelect.vue +11 -4
  193. package/src/component/FluxFormSelectAsync.vue +14 -8
  194. package/src/component/FluxFormSlider.vue +8 -2
  195. package/src/component/FluxFormTextArea.vue +12 -7
  196. package/src/component/FluxFormTimeZonePicker.vue +13 -626
  197. package/src/component/FluxFormTreeViewSelect.vue +51 -79
  198. package/src/component/FluxGallery.vue +2 -1
  199. package/src/component/FluxGrid.vue +3 -2
  200. package/src/component/FluxGridColumn.vue +2 -1
  201. package/src/component/FluxIcon.vue +4 -2
  202. package/src/component/FluxInfo.vue +2 -1
  203. package/src/component/FluxInfoStack.vue +3 -2
  204. package/src/component/FluxLayerPane.vue +16 -0
  205. package/src/component/FluxLayerPaneSecondary.vue +16 -0
  206. package/src/component/FluxLegend.vue +9 -9
  207. package/src/component/FluxMenu.vue +2 -2
  208. package/src/component/FluxMenuCollapsible.vue +187 -0
  209. package/src/component/FluxMenuGroup.vue +2 -1
  210. package/src/component/FluxMenuItem.vue +9 -1
  211. package/src/component/FluxMenuOptions.vue +1 -1
  212. package/src/component/FluxNotice.vue +7 -2
  213. package/src/component/FluxNoticeStack.vue +2 -1
  214. package/src/component/FluxOverflowBar.vue +3 -3
  215. package/src/component/FluxPagination.vue +1 -0
  216. package/src/component/FluxPane.vue +3 -2
  217. package/src/component/FluxPaneBody.vue +2 -1
  218. package/src/component/FluxPaneFooter.vue +2 -1
  219. package/src/component/FluxPaneGroup.vue +2 -1
  220. package/src/component/FluxPaneHeader.vue +7 -6
  221. package/src/component/FluxPaneIllustration.vue +3 -3
  222. package/src/component/FluxPaneMedia.vue +1 -1
  223. package/src/component/FluxPercentageBar.vue +3 -1
  224. package/src/component/FluxPressable.vue +2 -1
  225. package/src/component/FluxProgressBar.vue +2 -1
  226. package/src/component/FluxPrompt.vue +16 -27
  227. package/src/component/FluxRemove.vue +4 -0
  228. package/src/component/FluxRoot.vue +2 -2
  229. package/src/component/FluxRow.vue +24 -0
  230. package/src/component/FluxSegmentedControl.vue +51 -4
  231. package/src/component/FluxSnackbar.vue +36 -12
  232. package/src/component/FluxSplitButton.vue +3 -2
  233. package/src/component/FluxStack.vue +4 -3
  234. package/src/component/FluxStepper.vue +3 -3
  235. package/src/component/FluxStepperStep.vue +2 -1
  236. package/src/component/FluxTab.vue +2 -1
  237. package/src/component/FluxTabBar.vue +3 -3
  238. package/src/component/FluxTableActions.vue +5 -4
  239. package/src/component/FluxTableBar.vue +2 -1
  240. package/src/component/FluxTableCell.vue +4 -3
  241. package/src/component/FluxTableHeader.vue +4 -2
  242. package/src/component/FluxTableRow.vue +2 -1
  243. package/src/component/FluxTabs.vue +15 -6
  244. package/src/component/FluxTag.vue +8 -2
  245. package/src/component/FluxTagStack.vue +2 -1
  246. package/src/component/FluxTimeline.vue +2 -1
  247. package/src/component/FluxTimelineItem.vue +2 -1
  248. package/src/component/FluxToggle.vue +20 -5
  249. package/src/component/FluxToolbar.vue +2 -1
  250. package/src/component/FluxToolbarGroup.vue +2 -1
  251. package/src/component/FluxTooltip.vue +1 -1
  252. package/src/component/FluxTreeView.vue +9 -35
  253. package/src/component/FluxWindow.vue +2 -2
  254. package/src/component/index.ts +11 -3
  255. package/src/component/primitive/Anchor.vue +3 -1
  256. package/src/component/primitive/AnchorPopup.vue +3 -3
  257. package/src/component/primitive/CoordinatePicker.vue +2 -1
  258. package/src/component/primitive/CoordinatePickerThumb.vue +2 -0
  259. package/src/component/primitive/DialogLayout.vue +44 -0
  260. package/src/component/primitive/SelectBase.vue +22 -28
  261. package/src/component/primitive/SliderBase.vue +0 -1
  262. package/src/component/primitive/SliderThumb.vue +9 -0
  263. package/src/component/primitive/TreeNodeRenderer.vue +77 -0
  264. package/src/component/primitive/index.ts +2 -0
  265. package/src/composable/index.ts +1 -0
  266. package/src/composable/private/index.ts +8 -0
  267. package/src/composable/private/useAsyncFilterOptions.ts +70 -0
  268. package/src/composable/private/useCommandPalette.ts +405 -0
  269. package/src/composable/private/useDateFlyout.ts +34 -0
  270. package/src/composable/private/useDropdownPopup.ts +99 -0
  271. package/src/composable/private/useFilterOption.ts +59 -0
  272. package/src/composable/useAdaptiveGroupInjection.ts +6 -0
  273. package/src/css/component/Action.module.scss +2 -2
  274. package/src/css/component/AdaptiveSlot.module.scss +25 -0
  275. package/src/css/component/Avatar.module.scss +10 -11
  276. package/src/css/component/Badge.module.scss +11 -4
  277. package/src/css/component/Button.module.scss +4 -16
  278. package/src/css/component/Calendar.module.scss +4 -4
  279. package/src/css/component/Chip.module.scss +6 -10
  280. package/src/css/component/Color.module.scss +1 -1
  281. package/src/css/component/CommandPalette.module.scss +332 -0
  282. package/src/css/component/DatePicker.module.scss +1 -1
  283. package/src/css/component/Expandable.module.scss +5 -5
  284. package/src/css/component/Fader.module.scss +2 -1
  285. package/src/css/component/Flyout.module.scss +1 -1
  286. package/src/css/component/FocalPoint.module.scss +1 -1
  287. package/src/css/component/Form.module.scss +56 -10
  288. package/src/css/component/Item.module.scss +4 -4
  289. package/src/css/component/LayerPane.module.scss +40 -0
  290. package/src/css/component/Layout.module.scss +11 -4
  291. package/src/css/component/Legend.module.scss +2 -2
  292. package/src/css/component/Menu.module.scss +59 -11
  293. package/src/css/component/Notice.module.scss +7 -7
  294. package/src/css/component/Overlay.module.scss +2 -2
  295. package/src/css/component/Pane.module.scss +10 -23
  296. package/src/css/component/PercentageBar.module.scss +1 -1
  297. package/src/css/component/Remove.module.scss +1 -1
  298. package/src/css/component/SegmentedControl.module.scss +1 -0
  299. package/src/css/component/Snackbar.module.scss +1 -1
  300. package/src/css/component/Statistic.module.scss +2 -2
  301. package/src/css/component/Stepper.module.scss +1 -1
  302. package/src/css/component/Tab.module.scss +11 -15
  303. package/src/css/component/Table.module.scss +13 -13
  304. package/src/css/component/Timeline.module.scss +2 -2
  305. package/src/css/component/Toolbar.module.scss +3 -3
  306. package/src/css/component/Tooltip.module.scss +3 -4
  307. package/src/css/component/Transition.module.scss +1 -1
  308. package/src/css/component/TreeView.module.scss +2 -15
  309. package/src/css/component/TreeViewSelect.module.scss +1 -15
  310. package/src/css/component/base/Button.module.scss +6 -7
  311. package/src/css/component/base/Effect.module.scss +2 -1
  312. package/src/css/component/primitive/Slider.module.scss +6 -7
  313. package/src/css/component/primitive/TreeNode.module.scss +19 -0
  314. package/src/css/mixin/button-active.scss +6 -0
  315. package/src/css/mixin/focus-ring.scss +1 -1
  316. package/src/css/mixin/index.scss +1 -0
  317. package/src/css/typography.scss +3 -2
  318. package/src/css/variables.scss +7 -2
  319. package/src/data/di.ts +13 -0
  320. package/src/data/filter.ts +24 -28
  321. package/src/data/i18n.ts +17 -0
  322. package/src/data/store.ts +46 -11
  323. package/src/data/timeZones.ts +619 -0
  324. package/src/index.ts +2 -0
  325. package/src/transition/FluxAutoHeightTransition.vue +5 -0
  326. package/src/transition/FluxAutoWidthTransition.vue +5 -0
  327. package/src/transition/FluxBreakthroughTransition.vue +5 -0
  328. package/src/transition/FluxFadeTransition.vue +5 -0
  329. package/src/transition/FluxOverlayTransition.vue +5 -0
  330. package/src/transition/FluxRouteTransition.vue +5 -0
  331. package/src/transition/FluxSlideOverTransition.vue +5 -0
  332. package/src/transition/FluxTooltipTransition.vue +5 -0
  333. package/src/transition/FluxVerticalWindowTransition.vue +5 -0
  334. package/src/transition/FluxWindowTransition.vue +5 -0
  335. package/dist/0db98648.svg +0 -3
  336. package/src/component/FluxPaneDeck.vue +0 -24
  337. package/src/css/component/base/Grid.module.scss +0 -8
  338. package/src/image/avatar-mask.svg +0 -3
  339. package/tsconfig.json +0 -7
@@ -40,6 +40,7 @@
40
40
  v-if="isCloseable"
41
41
  :class="$style.noticeClose"
42
42
  type="button"
43
+ :aria-label="translate('flux.close')"
43
44
  @click="emit('close')">
44
45
  <FluxIcon name="xmark"/>
45
46
  </button>
@@ -49,8 +50,10 @@
49
50
  <script
50
51
  lang="ts"
51
52
  setup>
53
+ import type { VNode } from 'vue';
52
54
  import type { FluxColor, FluxIconName } from '@flux-ui/types';
53
55
  import { clsx } from 'clsx';
56
+ import { useTranslate } from '$flux/composable/private';
54
57
  import FluxIcon from './FluxIcon.vue';
55
58
  import FluxSpinner from './FluxSpinner.vue';
56
59
  import $style from '$flux/css/component/Notice.module.scss';
@@ -73,7 +76,9 @@
73
76
  }>();
74
77
 
75
78
  defineSlots<{
76
- default(): any;
77
- end(): any;
79
+ default(): VNode[];
80
+ end(): VNode[];
78
81
  }>();
82
+
83
+ const translate = useTranslate();
79
84
  </script>
@@ -9,9 +9,10 @@
9
9
  <script
10
10
  lang="ts"
11
11
  setup>
12
+ import type { VNode } from 'vue';
12
13
  import FluxStack from './FluxStack.vue';
13
14
 
14
15
  defineSlots<{
15
- default(): any;
16
+ default(): VNode[];
16
17
  }>();
17
18
  </script>
@@ -37,7 +37,7 @@
37
37
  setup>
38
38
  import { animationFrameDebounce, flattenVNodeTree, unrefTemplateElement } from '@flux-ui/internals';
39
39
  import type { FluxAlignment, FluxDirection } from '@flux-ui/types';
40
- import { computed, ref, unref, useTemplateRef, watch, type VNode } from 'vue';
40
+ import { computed, ref, unref, useTemplateRef, type VNode, watch } from 'vue';
41
41
  import FluxDynamicView from './FluxDynamicView.vue';
42
42
  import $style from '$flux/css/component/OverflowBar.module.scss';
43
43
 
@@ -52,8 +52,8 @@
52
52
  }>();
53
53
 
54
54
  const slots = defineSlots<{
55
- default?(): any;
56
- overflow?(props: { hasOverflow: boolean; items: VNode[] }): any;
55
+ default?(): VNode[];
56
+ overflow?(props: { hasOverflow: boolean; items: VNode[] }): VNode[];
57
57
  }>();
58
58
 
59
59
  const barRef = useTemplateRef('bar');
@@ -28,6 +28,7 @@
28
28
 
29
29
  <FluxPaginationButton
30
30
  v-else
31
+ :aria-label="translate('flux.goToPage', {page: p})"
31
32
  :label="`${p}`"
32
33
  @click="navigate(p)"/>
33
34
  </template>
@@ -21,6 +21,7 @@
21
21
  <script
22
22
  lang="ts"
23
23
  setup>
24
+ import type { VNode } from 'vue';
24
25
  import FluxSpinner from './FluxSpinner.vue';
25
26
  import $style from '$flux/css/component/Pane.module.scss';
26
27
 
@@ -39,7 +40,7 @@
39
40
  }>();
40
41
 
41
42
  defineSlots<{
42
- default(): any;
43
- loader(): any;
43
+ default(): VNode[];
44
+ loader(): VNode[];
44
45
  }>();
45
46
  </script>
@@ -7,9 +7,10 @@
7
7
  <script
8
8
  lang="ts"
9
9
  setup>
10
+ import type { VNode } from 'vue';
10
11
  import $style from '$flux/css/component/Pane.module.scss';
11
12
 
12
13
  defineSlots<{
13
- default(): any;
14
+ default(): VNode[];
14
15
  }>();
15
16
  </script>
@@ -7,9 +7,10 @@
7
7
  <script
8
8
  lang="ts"
9
9
  setup>
10
+ import type { VNode } from 'vue';
10
11
  import $style from '$flux/css/component/Pane.module.scss';
11
12
 
12
13
  defineSlots<{
13
- default(): any;
14
+ default(): VNode[];
14
15
  }>();
15
16
  </script>
@@ -7,9 +7,10 @@
7
7
  <script
8
8
  lang="ts"
9
9
  setup>
10
+ import type { VNode } from 'vue';
10
11
  import $style from '$flux/css/component/Pane.module.scss';
11
12
 
12
13
  defineSlots<{
13
- default(): any;
14
+ default(): VNode[];
14
15
  }>();
15
16
  </script>
@@ -9,14 +9,14 @@
9
9
  :name="icon"/>
10
10
 
11
11
  <div
12
- v-if="title || subTitle"
12
+ v-if="title || subtitle"
13
13
  :class="$style.paneHeaderCaption">
14
14
  <strong v-if="title">
15
15
  {{ title }}
16
16
  </strong>
17
17
 
18
- <span v-if="subTitle">
19
- {{ subTitle }}
18
+ <span v-if="subtitle">
19
+ {{ subtitle }}
20
20
  </span>
21
21
  </div>
22
22
 
@@ -27,18 +27,19 @@
27
27
  <script
28
28
  lang="ts"
29
29
  setup>
30
+ import type { VNode } from 'vue';
30
31
  import type { FluxIconName } from '@flux-ui/types';
31
32
  import FluxIcon from './FluxIcon.vue';
32
33
  import $style from '$flux/css/component/Pane.module.scss';
33
34
 
34
35
  defineProps<{
35
36
  readonly icon?: FluxIconName;
36
- readonly subTitle?: string;
37
+ readonly subtitle?: string;
37
38
  readonly title?: string;
38
39
  }>();
39
40
 
40
41
  defineSlots<{
41
- after(): any;
42
- before(): any;
42
+ after(): VNode[];
43
+ before(): VNode[];
43
44
  }>();
44
45
  </script>
@@ -35,7 +35,7 @@
35
35
  lang="ts"
36
36
  setup>
37
37
  import { hexToRGB } from '@basmilius/utils';
38
- import { computed } from 'vue';
38
+ import { computed, type VNode } from 'vue';
39
39
  import FluxAnimatedColors from './FluxAnimatedColors.vue';
40
40
  import FluxGridPattern from './FluxGridPattern.vue';
41
41
  import $style from '$flux/css/component/Pane.module.scss';
@@ -52,8 +52,8 @@
52
52
  }>();
53
53
 
54
54
  const slots = defineSlots<{
55
- default?(): any;
56
- controlled?(): any;
55
+ default?(): VNode[];
56
+ controlled?(): VNode[];
57
57
  }>();
58
58
 
59
59
  const borderColor = computed(() => {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div :class="isInset ? $style.paneMediaInset : $style.paneMedia">
2
+ <div :class="isInset ? $style.paneMediaInset : $style.paneMediaDefault">
3
3
  <img
4
4
  v-if="imageUrl"
5
5
  :class="$style.paneMediaImage"
@@ -1,7 +1,9 @@
1
1
  <template>
2
2
  <div :class="$style.percentageBar">
3
3
  <div :class="$style.percentageBarTrack">
4
- <FluxTooltip v-for="item of items">
4
+ <FluxTooltip
5
+ v-for="(item, index) of items"
6
+ :key="index">
5
7
  <template #content>
6
8
  <div :class="$style.percentageBarTooltip">
7
9
  <FluxIcon
@@ -41,6 +41,7 @@
41
41
  <script
42
42
  lang="ts"
43
43
  setup>
44
+ import type { VNode } from 'vue';
44
45
  import type { FluxPressableType, FluxTo } from '@flux-ui/types';
45
46
 
46
47
  const emit = defineEmits<{
@@ -58,7 +59,7 @@
58
59
  }>();
59
60
 
60
61
  defineSlots<{
61
- default(): any;
62
+ default(): VNode[];
62
63
  }>();
63
64
 
64
65
  const hoverListeners = {
@@ -5,7 +5,8 @@
5
5
  role="progressbar"
6
6
  :aria-valuenow="value"
7
7
  :aria-valuemax="max"
8
- :aria-valuemin="min">
8
+ :aria-valuemin="min"
9
+ :aria-valuetext="status ? `${status}: ${progress}` : undefined">
9
10
  <div :class="isIndeterminate ? $style.progressBarTrackIndeterminate : $style.progressBarTrack">
10
11
  <div
11
12
  :class="position >= 1 ? $style.progressBarValueComplete : $style.progressBarValueIncomplete"
@@ -1,25 +1,18 @@
1
1
  <template>
2
- <FluxPane>
3
- <FluxPaneHeader
4
- :icon="prompt.icon"
5
- :title="prompt.title"/>
6
-
7
- <FluxPaneBody v-html="prompt.message"/>
8
-
9
- <FluxPaneBody>
10
- <FluxFormField :label="prompt.fieldLabel">
11
- <FluxFormInput
12
- ref="input"
13
- v-model="value"
14
- :placeholder="prompt.fieldPlaceholder"
15
- :type="prompt.fieldType ?? 'text'"
16
- @keydown="onKeyDown"/>
17
- </FluxFormField>
18
- </FluxPaneBody>
19
-
20
- <FluxPaneFooter>
21
- <FluxSpacer/>
2
+ <DialogLayout
3
+ :icon="prompt.icon"
4
+ :message="prompt.message"
5
+ :title="prompt.title">
6
+ <FluxFormField :label="prompt.fieldLabel">
7
+ <FluxFormInput
8
+ ref="input"
9
+ v-model="value"
10
+ :placeholder="prompt.fieldPlaceholder"
11
+ :type="prompt.fieldType ?? 'text'"
12
+ @keydown="onKeyDown"/>
13
+ </FluxFormField>
22
14
 
15
+ <template #footer>
23
16
  <FluxSecondaryButton
24
17
  :label="translate('flux.cancel')"
25
18
  @click="prompt.onCancel()"/>
@@ -29,8 +22,8 @@
29
22
  icon-leading="circle-check"
30
23
  :label="translate('flux.ok')"
31
24
  @click="prompt.onConfirm(value)"/>
32
- </FluxPaneFooter>
33
- </FluxPane>
25
+ </template>
26
+ </DialogLayout>
34
27
  </template>
35
28
 
36
29
  <script
@@ -41,13 +34,9 @@
41
34
  import { useTranslate } from '$flux/composable/private';
42
35
  import FluxFormField from './FluxFormField.vue';
43
36
  import FluxFormInput from './FluxFormInput.vue';
44
- import FluxPane from './FluxPane.vue';
45
- import FluxPaneBody from './FluxPaneBody.vue';
46
- import FluxPaneFooter from './FluxPaneFooter.vue';
47
- import FluxPaneHeader from './FluxPaneHeader.vue';
48
37
  import FluxPrimaryButton from './FluxPrimaryButton.vue';
49
38
  import FluxSecondaryButton from './FluxSecondaryButton.vue';
50
- import FluxSpacer from './FluxSpacer.vue';
39
+ import { DialogLayout } from './primitive';
51
40
 
52
41
  const {
53
42
  prompt
@@ -5,6 +5,7 @@
5
5
  isHidden && $style.isHidden
6
6
  )"
7
7
  type="button"
8
+ :aria-label="translate('flux.delete')"
8
9
  @click="emit('click', $event)">
9
10
  <FluxIcon
10
11
  v-if="icon"
@@ -18,6 +19,7 @@
18
19
  setup>
19
20
  import type { FluxIconName } from '@flux-ui/types';
20
21
  import { clsx } from 'clsx';
22
+ import { useTranslate } from '$flux/composable/private';
21
23
  import FluxIcon from './FluxIcon.vue';
22
24
  import $style from '$flux/css/component/Remove.module.scss';
23
25
 
@@ -31,4 +33,6 @@
31
33
  readonly icon?: FluxIconName;
32
34
  readonly isHidden?: boolean;
33
35
  }>();
36
+
37
+ const translate = useTranslate();
34
38
  </script>
@@ -14,7 +14,7 @@
14
14
  <script
15
15
  lang="ts"
16
16
  setup>
17
- import { watch } from 'vue';
17
+ import { type VNode, watch } from 'vue';
18
18
  import { useFluxStore } from '$flux/data';
19
19
  import FluxOverlayProvider from './FluxOverlayProvider.vue';
20
20
  import FluxSnackbarProvider from './FluxSnackbarProvider.vue';
@@ -26,7 +26,7 @@
26
26
  });
27
27
 
28
28
  defineSlots<{
29
- default(): any;
29
+ default(): VNode[];
30
30
  }>();
31
31
 
32
32
  const {inertMain} = useFluxStore();
@@ -0,0 +1,24 @@
1
+ <template>
2
+ <div
3
+ :class="$style.row"
4
+ :style="{'--gap': `${gap}px`}">
5
+ <slot/>
6
+ </div>
7
+ </template>
8
+
9
+ <script
10
+ lang="ts"
11
+ setup>
12
+ import type { VNode } from 'vue';
13
+ import $style from '$flux/css/component/Layout.module.scss';
14
+
15
+ const {
16
+ gap = 18
17
+ } = defineProps<{
18
+ readonly gap?: number;
19
+ }>();
20
+
21
+ defineSlots<{
22
+ default(): VNode[];
23
+ }>();
24
+ </script>
@@ -1,7 +1,10 @@
1
1
  <template>
2
- <nav
2
+ <div
3
3
  ref="control"
4
- :class="isFill ? $style.segmentedControlFill : $style.segmentedControlInline">
4
+ :class="isFill ? $style.segmentedControlFill : $style.segmentedControlInline"
5
+ role="radiogroup"
6
+ :aria-label="ariaLabel"
7
+ @keydown="onKeyDown">
5
8
  <div
6
9
  v-if="activeItemWidth > 0"
7
10
  :class="$style.segmentedControlHighlight"
@@ -25,6 +28,10 @@
25
28
  $style.segmentedControlItem,
26
29
  index === modelValue && $style.isActive
27
30
  )"
31
+ role="radio"
32
+ :aria-checked="index === modelValue"
33
+ :aria-label="item.label"
34
+ :tabindex="index === modelValue ? 0 : -1"
28
35
  type="button"
29
36
  @click="activate(index)">
30
37
  <FluxIcon
@@ -32,10 +39,10 @@
32
39
  :name="item.icon"
33
40
  :size="15"/>
34
41
 
35
- <span>{{ item.label }}</span>
42
+ <span v-if="item.label">{{ item.label }}</span>
36
43
  </button>
37
44
  </template>
38
- </nav>
45
+ </div>
39
46
  </template>
40
47
 
41
48
  <script
@@ -53,6 +60,7 @@
53
60
  });
54
61
 
55
62
  defineProps<{
63
+ readonly ariaLabel?: string;
56
64
  readonly isFill?: boolean;
57
65
  readonly items: FluxSegmentedControlItemObject[];
58
66
  }>();
@@ -74,6 +82,45 @@
74
82
 
75
83
  function activate(index: number): void {
76
84
  modelValue.value = index;
85
+
86
+ const itemRef = itemRefs.value?.[index];
87
+ itemRef?.focus();
88
+ }
89
+
90
+ function onKeyDown(evt: KeyboardEvent): void {
91
+ const items = itemRefs.value;
92
+
93
+ if (!items) {
94
+ return;
95
+ }
96
+
97
+ let newIndex: number | null = null;
98
+
99
+ switch (evt.key) {
100
+ case 'ArrowLeft':
101
+ case 'ArrowUp':
102
+ newIndex = Math.max(0, unref(modelValue) - 1);
103
+ break;
104
+
105
+ case 'ArrowRight':
106
+ case 'ArrowDown':
107
+ newIndex = Math.min(items.length - 1, unref(modelValue) + 1);
108
+ break;
109
+
110
+ case 'Home':
111
+ newIndex = 0;
112
+ break;
113
+
114
+ case 'End':
115
+ newIndex = items.length - 1;
116
+ break;
117
+
118
+ default:
119
+ return;
120
+ }
121
+
122
+ activate(newIndex);
123
+ evt.preventDefault();
77
124
  }
78
125
 
79
126
  function updateHighlight(index: number): void {
@@ -74,7 +74,7 @@
74
74
  setup>
75
75
  import type { FluxColor, FluxIconName, FluxSnackbarObject } from '@flux-ui/types';
76
76
  import { clsx } from 'clsx';
77
- import { computed, getCurrentInstance, onBeforeUnmount, ref, watch, watchEffect } from 'vue';
77
+ import { computed, onBeforeUnmount, ref, watch, watchEffect } from 'vue';
78
78
  import { addSnackbar, removeSnackbar, updateSnackbar } from '$flux/data';
79
79
  import FluxAction from './FluxAction.vue';
80
80
  import FluxIcon from './FluxIcon.vue';
@@ -90,7 +90,18 @@
90
90
  const {
91
91
  actions,
92
92
  color = 'gray',
93
- isRendered
93
+ icon,
94
+ isCloseable,
95
+ isLoading,
96
+ isRendered,
97
+ message,
98
+ progressIndeterminate,
99
+ progressMax,
100
+ progressMin,
101
+ progressStatus,
102
+ progressValue,
103
+ subMessage,
104
+ title
94
105
  } = defineProps<{
95
106
  readonly actions?: Record<string, string>;
96
107
  readonly color?: FluxColor;
@@ -108,8 +119,6 @@
108
119
  readonly title?: string;
109
120
  }>();
110
121
 
111
- const instance = getCurrentInstance()!;
112
-
113
122
  const id = ref<number | null>(null);
114
123
 
115
124
  const hasActions = computed(() => actions && Object.entries(actions).length > 0);
@@ -128,12 +137,33 @@
128
137
  emit('close');
129
138
  }
130
139
 
140
+ function buildSpec(): Omit<FluxSnackbarObject, 'id'> {
141
+ return {
142
+ actions,
143
+ color,
144
+ icon,
145
+ isCloseable,
146
+ isLoading,
147
+ isRendered,
148
+ message,
149
+ progressIndeterminate,
150
+ progressMax,
151
+ progressMin,
152
+ progressStatus,
153
+ progressValue,
154
+ subMessage,
155
+ title,
156
+ onAction,
157
+ onClose
158
+ };
159
+ }
160
+
131
161
  watchEffect(() => {
132
162
  if (!id.value) {
133
163
  return;
134
164
  }
135
165
 
136
- updateSnackbar(id.value, instance.props);
166
+ updateSnackbar(id.value, buildSpec());
137
167
  });
138
168
 
139
169
  watch(() => isRendered, () => {
@@ -145,12 +175,6 @@
145
175
  return;
146
176
  }
147
177
 
148
- const spec: Omit<FluxSnackbarObject, 'id'> = {
149
- ...instance.props,
150
- onAction,
151
- onClose
152
- };
153
-
154
- id.value = addSnackbar(spec);
178
+ id.value = addSnackbar(buildSpec());
155
179
  }, {immediate: true});
156
180
  </script>
@@ -27,6 +27,7 @@
27
27
  <script
28
28
  setup
29
29
  lang="ts">
30
+ import type { VNode } from 'vue';
30
31
  import type { FluxDirection, FluxIconName } from '@flux-ui/types';
31
32
  import FluxFlyout from './FluxFlyout.vue';
32
33
  import FluxSecondaryButton from './FluxSecondaryButton.vue';
@@ -47,7 +48,7 @@
47
48
  close(): void;
48
49
  open(): void;
49
50
  toggle(): void;
50
- }): any;
51
+ }): VNode[];
51
52
 
52
53
  flyout(props: {
53
54
  close(): void;
@@ -56,6 +57,6 @@
56
57
  readonly paneY: number;
57
58
  readonly openerWidth: number;
58
59
  readonly openerHeight: number;
59
- }): any;
60
+ }): VNode[];
60
61
  }>();
61
62
  </script>
@@ -9,7 +9,7 @@
9
9
  isWrapping && $style.isWrapping
10
10
  )"
11
11
  :style="{
12
- '--gap': gap && `${gap}px`
12
+ '--gap': gap != null ? `${gap}px` : undefined
13
13
  }">
14
14
  <slot/>
15
15
  </Component>
@@ -18,13 +18,14 @@
18
18
  <script
19
19
  lang="ts"
20
20
  setup>
21
+ import type { VNode } from 'vue';
21
22
  import type { FluxDirection } from '@flux-ui/types';
22
23
  import { clsx } from 'clsx';
23
24
  import $style from '$flux/css/component/Layout.module.scss';
24
25
 
25
26
  const {
26
27
  direction = 'vertical',
27
- gap = 21
28
+ gap = 18
28
29
  } = defineProps<{
29
30
  readonly direction?: FluxDirection;
30
31
  readonly gap?: number;
@@ -35,6 +36,6 @@
35
36
  }>();
36
37
 
37
38
  defineSlots<{
38
- default(): any;
39
+ default(): VNode[];
39
40
  }>();
40
41
  </script>
@@ -33,7 +33,7 @@
33
33
  });
34
34
 
35
35
  const slots = defineSlots<{
36
- default(): any;
36
+ default(): VNode[];
37
37
 
38
38
  content(props: {
39
39
  activate(index: number): void;
@@ -43,14 +43,14 @@
43
43
  readonly modelValue: number;
44
44
  readonly steps: number;
45
45
  readonly view: VNode;
46
- }): any;
46
+ }): VNode[];
47
47
 
48
48
  steps(props: {
49
49
  activate(index: number): void;
50
50
 
51
51
  readonly modelValue: number;
52
52
  readonly steps: number;
53
- }): any;
53
+ }): VNode[];
54
54
  }>();
55
55
 
56
56
  const isTransitioningBack = ref(false);
@@ -7,9 +7,10 @@
7
7
  <script
8
8
  lang="ts"
9
9
  setup>
10
+ import type { VNode } from 'vue';
10
11
  import $style from '$flux/css/component/Stepper.module.scss';
11
12
 
12
13
  defineSlots<{
13
- default(): any;
14
+ default(): VNode[];
14
15
  }>();
15
16
  </script>
@@ -9,6 +9,7 @@
9
9
  <script
10
10
  lang="ts"
11
11
  setup>
12
+ import type { VNode } from 'vue';
12
13
  import type { FluxIconName } from '@flux-ui/types';
13
14
  import $style from '$flux/css/component/Tab.module.scss';
14
15
 
@@ -18,6 +19,6 @@
18
19
  }>();
19
20
 
20
21
  defineSlots<{
21
- default(): any;
22
+ default(): VNode[];
22
23
  }>();
23
24
  </script>