@webority/ui-react 0.121.0 → 0.124.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 (214) hide show
  1. package/dist/canvas-kit/kit.css +2 -0
  2. package/dist/canvas-kit/kit.js +33568 -34365
  3. package/dist/canvas-kit/manifest.json +240 -3
  4. package/dist/canvas-kit/release.json +8 -8
  5. package/dist/components/AppAccordion.js +1 -1
  6. package/dist/components/AppActionIcon.js +1 -1
  7. package/dist/components/AppAlert.js +1 -1
  8. package/dist/components/AppAsyncBlock.js +1 -1
  9. package/dist/components/AppAutocomplete.js +1 -1
  10. package/dist/components/AppAvatar.js +1 -1
  11. package/dist/components/AppAvatarGroup.js +1 -1
  12. package/dist/components/AppBadge.js +1 -1
  13. package/dist/components/AppBanner.js +1 -1
  14. package/dist/components/AppBreadcrumbs.js +1 -1
  15. package/dist/components/AppButton.js +1 -1
  16. package/dist/components/AppButtonGroup.js +1 -1
  17. package/dist/components/AppCalendar.js +1 -1
  18. package/dist/components/AppCard.js +1 -1
  19. package/dist/components/AppCarousel.js +1 -1
  20. package/dist/components/AppChart.js +1 -1
  21. package/dist/components/AppChartCard.js +1 -1
  22. package/dist/components/AppCheckbox.js +1 -1
  23. package/dist/components/AppChip.js +1 -1
  24. package/dist/components/AppChipGroup.js +1 -1
  25. package/dist/components/AppChoiceCard.js +1 -1
  26. package/dist/components/AppChoiceChip.js +1 -1
  27. package/dist/components/AppCodeBlock.js +1 -1
  28. package/dist/components/AppColorField.js +1 -1
  29. package/dist/components/AppColumnMenu.js +1 -1
  30. package/dist/components/AppCommandPalette.js +1 -1
  31. package/dist/components/AppCommentThread.js +1 -1
  32. package/dist/components/AppCompareTable.js +1 -1
  33. package/dist/components/AppConfirmDialog.js +1 -1
  34. package/dist/components/AppConfirmProvider.js +1 -0
  35. package/dist/components/AppConsentBanner.js +1 -1
  36. package/dist/components/AppContextMenu.js +1 -1
  37. package/dist/components/AppCopyButton.js +1 -1
  38. package/dist/components/AppCountryFlag.js +1 -1
  39. package/dist/components/AppCountrySelect.js +1 -1
  40. package/dist/components/AppDashboardCell.js +1 -1
  41. package/dist/components/AppDashboardGrid.js +1 -1
  42. package/dist/components/AppDataTable.js +1 -1
  43. package/dist/components/AppDatePicker.js +1 -1
  44. package/dist/components/AppDateRangePicker.js +1 -1
  45. package/dist/components/AppDescriptions.js +1 -1
  46. package/dist/components/AppDetailPane.js +1 -1
  47. package/dist/components/AppDrawer.js +1 -1
  48. package/dist/components/AppDropZone.js +1 -1
  49. package/dist/components/AppDropdown.js +1 -1
  50. package/dist/components/AppDueDate.js +1 -1
  51. package/dist/components/AppEmptyState.js +1 -1
  52. package/dist/components/AppErrorSummary.js +1 -1
  53. package/dist/components/AppFileAttachment.js +1 -1
  54. package/dist/components/AppFilePicker.js +1 -1
  55. package/dist/components/AppFileTiles.js +1 -1
  56. package/dist/components/AppFileViewer.js +1 -1
  57. package/dist/components/AppFilterBar.js +1 -1
  58. package/dist/components/AppFloatingDock.js +1 -1
  59. package/dist/components/AppFormActions.js +1 -1
  60. package/dist/components/AppFormRow.js +1 -1
  61. package/dist/components/AppFormSection.js +1 -1
  62. package/dist/components/AppHoverCard.js +1 -1
  63. package/dist/components/AppIcon.js +1 -1
  64. package/dist/components/AppImagePicker.js +1 -1
  65. package/dist/components/AppInfoTip.js +1 -1
  66. package/dist/components/AppInlineEdit.js +1 -1
  67. package/dist/components/AppInput.js +1 -1
  68. package/dist/components/AppInputGroup.js +1 -1
  69. package/dist/components/AppKanban.js +1 -1
  70. package/dist/components/AppKbd.js +1 -1
  71. package/dist/components/AppKpiTile.js +1 -1
  72. package/dist/components/AppLightbox.js +1 -1
  73. package/dist/components/AppLink.js +1 -1
  74. package/dist/components/AppMarkdown.js +1 -1
  75. package/dist/components/AppMentionInput.js +1 -1
  76. package/dist/components/AppMeter.js +1 -1
  77. package/dist/components/AppMetricStrip.js +1 -1
  78. package/dist/components/AppModal.js +1 -1
  79. package/dist/components/AppMultiSelect.js +1 -1
  80. package/dist/components/AppNavList.js +1 -1
  81. package/dist/components/AppNavigationMenu.js +1 -1
  82. package/dist/components/AppNotificationCenter.js +1 -1
  83. package/dist/components/AppNumberInput.js +1 -1
  84. package/dist/components/AppOnboardingChecklist.js +1 -1
  85. package/dist/components/AppOtpInput.js +1 -1
  86. package/dist/components/AppPageHeader.js +1 -1
  87. package/dist/components/AppPhoneNumberInput.js +1 -1
  88. package/dist/components/AppPopover.js +1 -1
  89. package/dist/components/AppPricingCard.js +1 -1
  90. package/dist/components/AppProgress.js +1 -1
  91. package/dist/components/AppQrCode.js +1 -1
  92. package/dist/components/AppRadio.js +1 -1
  93. package/dist/components/AppRadioGroup.js +1 -1
  94. package/dist/components/AppRating.js +1 -1
  95. package/dist/components/AppRecordPager.js +1 -1
  96. package/dist/components/AppRelativeTime.js +1 -1
  97. package/dist/components/AppRepeater.js +1 -1
  98. package/dist/components/AppRequiredMark.js +1 -1
  99. package/dist/components/AppResizable.js +1 -1
  100. package/dist/components/AppResizableHandle.js +1 -1
  101. package/dist/components/AppResizablePanel.js +1 -1
  102. package/dist/components/AppResourceCard.js +1 -1
  103. package/dist/components/AppResult.js +1 -1
  104. package/dist/components/AppRichText.js +1 -1
  105. package/dist/components/AppRollingNumber.js +1 -1
  106. package/dist/components/AppRouteError.js +1 -1
  107. package/dist/components/AppRowSwitch.js +1 -0
  108. package/dist/components/AppScoreScale.js +1 -1
  109. package/dist/components/AppScrollbar.js +1 -1
  110. package/dist/components/AppSearch.js +1 -1
  111. package/dist/components/AppSectionCallToAction.js +1 -1
  112. package/dist/components/AppSectionFaq.js +1 -1
  113. package/dist/components/AppSectionFeatures.js +1 -1
  114. package/dist/components/AppSectionHero.js +1 -1
  115. package/dist/components/AppSectionLeadCapture.js +1 -1
  116. package/dist/components/AppSectionLogos.js +1 -1
  117. package/dist/components/AppSectionPricing.js +1 -1
  118. package/dist/components/AppSectionTestimonials.js +1 -1
  119. package/dist/components/AppSegmented.js +1 -1
  120. package/dist/components/AppSelect.js +1 -1
  121. package/dist/components/AppSeoHead.js +1 -1
  122. package/dist/components/AppShell.js +1 -1
  123. package/dist/components/AppShortcutLegend.js +1 -1
  124. package/dist/components/AppShowMore.js +1 -1
  125. package/dist/components/AppSkeleton.js +1 -1
  126. package/dist/components/AppSkeletonLines.js +1 -1
  127. package/dist/components/AppSlider.js +1 -1
  128. package/dist/components/AppSortableList.js +1 -1
  129. package/dist/components/AppSparkline.js +1 -1
  130. package/dist/components/AppSpinner.js +1 -1
  131. package/dist/components/AppSplash.js +1 -1
  132. package/dist/components/AppSplitButton.js +1 -1
  133. package/dist/components/AppSplitView.js +1 -1
  134. package/dist/components/AppStatusBadge.js +1 -1
  135. package/dist/components/AppStepper.js +1 -1
  136. package/dist/components/AppSwitch.js +1 -1
  137. package/dist/components/AppTablePagination.js +1 -1
  138. package/dist/components/AppTableToolbar.js +1 -1
  139. package/dist/components/AppTabs.js +1 -1
  140. package/dist/components/AppTagInput.js +1 -1
  141. package/dist/components/AppTextarea.js +1 -1
  142. package/dist/components/AppThemeToggle.js +1 -1
  143. package/dist/components/AppTimePicker.js +1 -1
  144. package/dist/components/AppTimeline.js +1 -1
  145. package/dist/components/AppToast.js +1 -1
  146. package/dist/components/AppToolbar.js +1 -1
  147. package/dist/components/AppTooltip.js +1 -1
  148. package/dist/components/AppTour.js +1 -1
  149. package/dist/components/AppTreeView.js +1 -1
  150. package/dist/components/AppTruncate.js +1 -1
  151. package/dist/components/AppUpdateBar.js +1 -1
  152. package/dist/components/AppWhatsNew.js +1 -1
  153. package/dist/components/AppWizard.js +1 -1
  154. package/dist/components/AppWorkspaceSwitcher.js +1 -1
  155. package/dist/components/ModalIcons.js +1 -1
  156. package/dist/components/iconCatalogNames.g.js +1 -1
  157. package/dist/components/iconGlyphs.g.js +1 -1
  158. package/dist/components/iconVariants.g.js +1 -1
  159. package/dist/components/toast.js +1 -1
  160. package/dist/components/toastStore.js +1 -1
  161. package/dist/components/useWuiControl.js +1 -1
  162. package/dist/components/warnInvalidValue.js +1 -1
  163. package/dist/components/warnUnknownProps.js +1 -1
  164. package/dist/components/withTooltip.js +1 -1
  165. package/dist/guidance.json +60 -1
  166. package/dist/lib/CheckField.js +1 -1
  167. package/dist/lib/DiscardPrompt.js +1 -1
  168. package/dist/lib/FieldMessage.js +1 -1
  169. package/dist/lib/FileItemRow.js +1 -1
  170. package/dist/lib/FocusPanel.js +1 -1
  171. package/dist/lib/emptyIllustration.js +1 -1
  172. package/dist/lib/fileItem.js +1 -1
  173. package/dist/lib/flagStyles.js +1 -0
  174. package/dist/lib/initials.js +1 -1
  175. package/dist/lib/pageScrollLock.js +1 -0
  176. package/dist/lib/qrCode.js +1 -1
  177. package/dist/lib/sectionShell.js +1 -1
  178. package/dist/lib/shellCookie.js +1 -1
  179. package/dist/lib/shortcutChip.js +1 -1
  180. package/dist/lib/useFileDrop.js +1 -1
  181. package/dist/lib/useFloatingStack.js +1 -1
  182. package/dist/lib/useListQuery.js +1 -1
  183. package/dist/lib/wuiMarker.js +1 -1
  184. package/dist/markdown-core/dist/citations.js +1 -0
  185. package/dist/markdown-core/dist/inline.js +1 -1
  186. package/dist/types/components/AppAutocomplete.d.ts +12 -1
  187. package/dist/types/components/AppChart.d.ts +2 -0
  188. package/dist/types/components/AppColorField.d.ts +6 -0
  189. package/dist/types/components/AppConfirmDialog.d.ts +3 -0
  190. package/dist/types/components/AppConfirmProvider.d.ts +27 -0
  191. package/dist/types/components/AppCountrySelect.d.ts +5 -0
  192. package/dist/types/components/AppDatePicker.d.ts +5 -0
  193. package/dist/types/components/AppDateRangePicker.d.ts +5 -0
  194. package/dist/types/components/AppFilePicker.d.ts +6 -0
  195. package/dist/types/components/AppImagePicker.d.ts +6 -0
  196. package/dist/types/components/AppMarkdown.d.ts +4 -0
  197. package/dist/types/components/AppMultiSelect.d.ts +5 -0
  198. package/dist/types/components/AppNumberInput.d.ts +5 -0
  199. package/dist/types/components/AppOtpInput.d.ts +5 -0
  200. package/dist/types/components/AppPhoneNumberInput.d.ts +5 -0
  201. package/dist/types/components/AppRadioGroup.d.ts +6 -0
  202. package/dist/types/components/AppRepeater.d.ts +2 -2
  203. package/dist/types/components/AppRowSwitch.d.ts +23 -0
  204. package/dist/types/components/AppSelect.d.ts +5 -0
  205. package/dist/types/components/AppSlider.d.ts +5 -0
  206. package/dist/types/components/AppTagInput.d.ts +5 -0
  207. package/dist/types/components/AppTimePicker.d.ts +5 -0
  208. package/dist/types/components/iconGlyphs.g.d.ts +11 -0
  209. package/dist/types/components/iconVariants.g.d.ts +55 -0
  210. package/dist/types/index.d.ts +2 -0
  211. package/dist/types/lib/flagStyles.d.ts +2 -0
  212. package/dist/types/lib/pageScrollLock.d.ts +1 -0
  213. package/dist/ui-react.js +1 -1
  214. package/package.json +6 -6
@@ -2,7 +2,7 @@
2
2
  "kind": "WeborityWeb",
3
3
  "library": {
4
4
  "name": "@webority/ui-react",
5
- "version": "0.121.0"
5
+ "version": "0.124.0"
6
6
  },
7
7
  "rendererProtocolVersion": 13,
8
8
  "platform": "Web",
@@ -810,10 +810,29 @@
810
810
  "required": false,
811
811
  "description": "Shows the list open, for a design preview or a controlled caller."
812
812
  },
813
+ {
814
+ "name": "optional",
815
+ "type": "boolean",
816
+ "required": false,
817
+ "description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
818
+ "default": false
819
+ },
813
820
  {
814
821
  "name": "options",
815
822
  "type": "array",
816
823
  "itemFields": [
824
+ {
825
+ "name": "avatar",
826
+ "type": "string",
827
+ "required": false,
828
+ "description": "A photo URL shown beside the option and beside the value once chosen."
829
+ },
830
+ {
831
+ "name": "initials",
832
+ "type": "string",
833
+ "required": false,
834
+ "description": "Initials shown when the option has no photo, or while it loads."
835
+ },
817
836
  {
818
837
  "name": "label",
819
838
  "type": "node",
@@ -828,7 +847,7 @@
828
847
  }
829
848
  ],
830
849
  "required": false,
831
- "description": "The options to filter as the user types. Each has a value and a label."
850
+ "description": "The options to filter as the user types. Each has a value and a label, and may carry a photo or initials."
832
851
  },
833
852
  {
834
853
  "name": "placeholder",
@@ -860,6 +879,18 @@
860
879
  "required": false,
861
880
  "description": "The value of the selected option."
862
881
  },
882
+ {
883
+ "name": "valueAvatar",
884
+ "type": "string",
885
+ "required": false,
886
+ "description": "A photo URL shown beside the value when the options do not carry it."
887
+ },
888
+ {
889
+ "name": "valueInitials",
890
+ "type": "string",
891
+ "required": false,
892
+ "description": "Initials shown beside the value when the options do not carry them and there is no photo."
893
+ },
863
894
  {
864
895
  "name": "valueLabel",
865
896
  "type": "string",
@@ -2805,6 +2836,12 @@
2805
2836
  "required": false,
2806
2837
  "description": "A gauge's named stretches of its scale, each up to a value."
2807
2838
  },
2839
+ {
2840
+ "name": "centerLabel",
2841
+ "type": "string",
2842
+ "required": false,
2843
+ "description": "Caption under the total in the centre of a donut. Default Total. Donut only."
2844
+ },
2808
2845
  {
2809
2846
  "name": "className",
2810
2847
  "type": "string",
@@ -4354,6 +4391,13 @@
4354
4391
  "required": false,
4355
4392
  "description": "Form field name on the text box, the control that posts."
4356
4393
  },
4394
+ {
4395
+ "name": "optional",
4396
+ "type": "boolean",
4397
+ "required": false,
4398
+ "description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
4399
+ "default": false
4400
+ },
4357
4401
  {
4358
4402
  "name": "required",
4359
4403
  "type": "boolean",
@@ -5559,6 +5603,12 @@
5559
5603
  "description": "Styles the confirm button as destructive; with no tone it also picks the delete icon.",
5560
5604
  "default": false
5561
5605
  },
5606
+ {
5607
+ "name": "icon",
5608
+ "type": "node",
5609
+ "required": false,
5610
+ "description": "Replaces the tone's glyph. A string is an icon name; a node is drawn as given. An image still wins over it."
5611
+ },
5562
5612
  {
5563
5613
  "name": "iconSize",
5564
5614
  "type": "number",
@@ -6296,6 +6346,13 @@
6296
6346
  "required": false,
6297
6347
  "description": "Shows the list open, for a design preview or a controlled caller."
6298
6348
  },
6349
+ {
6350
+ "name": "optional",
6351
+ "type": "boolean",
6352
+ "required": false,
6353
+ "description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
6354
+ "default": false
6355
+ },
6299
6356
  {
6300
6357
  "name": "placeholder",
6301
6358
  "type": "string",
@@ -6971,6 +7028,13 @@
6971
7028
  "required": false,
6972
7029
  "description": "The form field name the ISO date posts under."
6973
7030
  },
7031
+ {
7032
+ "name": "optional",
7033
+ "type": "boolean",
7034
+ "required": false,
7035
+ "description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
7036
+ "default": false
7037
+ },
6974
7038
  {
6975
7039
  "name": "placeholder",
6976
7040
  "type": "string",
@@ -7184,6 +7248,13 @@
7184
7248
  "required": false,
7185
7249
  "description": "The earliest selectable date, as an ISO date string."
7186
7250
  },
7251
+ {
7252
+ "name": "optional",
7253
+ "type": "boolean",
7254
+ "required": false,
7255
+ "description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
7256
+ "default": false
7257
+ },
7187
7258
  {
7188
7259
  "name": "placeholder",
7189
7260
  "type": "string",
@@ -8781,6 +8852,13 @@
8781
8852
  "required": false,
8782
8853
  "description": "Form field name."
8783
8854
  },
8855
+ {
8856
+ "name": "optional",
8857
+ "type": "boolean",
8858
+ "required": false,
8859
+ "description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
8860
+ "default": false
8861
+ },
8784
8862
  {
8785
8863
  "name": "required",
8786
8864
  "type": "boolean",
@@ -9969,6 +10047,13 @@
9969
10047
  "required": false,
9970
10048
  "description": "The form field name. The chosen file, or the crop when cropping, is written into the file input, so an uncontrolled form posts it."
9971
10049
  },
10050
+ {
10051
+ "name": "optional",
10052
+ "type": "boolean",
10053
+ "required": false,
10054
+ "description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
10055
+ "default": false
10056
+ },
9972
10057
  {
9973
10058
  "name": "outputSize",
9974
10059
  "type": "number",
@@ -12593,6 +12678,13 @@
12593
12678
  "required": false,
12594
12679
  "description": "The field name posted with the form."
12595
12680
  },
12681
+ {
12682
+ "name": "optional",
12683
+ "type": "boolean",
12684
+ "required": false,
12685
+ "description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
12686
+ "default": false
12687
+ },
12596
12688
  {
12597
12689
  "name": "options",
12598
12690
  "type": "array",
@@ -13370,6 +13462,13 @@
13370
13462
  "required": false,
13371
13463
  "description": "The input's name, for forms."
13372
13464
  },
13465
+ {
13466
+ "name": "optional",
13467
+ "type": "boolean",
13468
+ "required": false,
13469
+ "description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
13470
+ "default": false
13471
+ },
13373
13472
  {
13374
13473
  "name": "placeholder",
13375
13474
  "type": "string",
@@ -13659,6 +13758,13 @@
13659
13758
  "required": false,
13660
13759
  "description": "The form field name, so a plain form post includes the code."
13661
13760
  },
13761
+ {
13762
+ "name": "optional",
13763
+ "type": "boolean",
13764
+ "required": false,
13765
+ "description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
13766
+ "default": false
13767
+ },
13662
13768
  {
13663
13769
  "name": "required",
13664
13770
  "type": "boolean",
@@ -14141,6 +14247,13 @@
14141
14247
  "required": false,
14142
14248
  "description": "The form field name."
14143
14249
  },
14250
+ {
14251
+ "name": "optional",
14252
+ "type": "boolean",
14253
+ "required": false,
14254
+ "description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
14255
+ "default": false
14256
+ },
14144
14257
  {
14145
14258
  "name": "placeholder",
14146
14259
  "type": "string",
@@ -15221,6 +15334,13 @@
15221
15334
  "required": false,
15222
15335
  "description": "Shared name of the radios. Defaults to a generated one."
15223
15336
  },
15337
+ {
15338
+ "name": "optional",
15339
+ "type": "boolean",
15340
+ "required": false,
15341
+ "description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
15342
+ "default": false
15343
+ },
15224
15344
  {
15225
15345
  "name": "options",
15226
15346
  "type": "array",
@@ -15619,7 +15739,7 @@
15619
15739
  "name": "addVariant",
15620
15740
  "type": "string",
15621
15741
  "required": false,
15622
- "description": "The add button's variant, such as primary, outline or ghost. An unknown value warns in development.",
15742
+ "description": "The add control's variant: an AppButton variant such as primary, outline or ghost, or link for a small text link with a plus icon. An unknown value warns in development.",
15623
15743
  "default": "secondary"
15624
15744
  },
15625
15745
  {
@@ -16554,6 +16674,91 @@
16554
16674
  ]
16555
16675
  }
16556
16676
  },
16677
+ {
16678
+ "name": "AppRowSwitch",
16679
+ "marker": "AppRowSwitch",
16680
+ "acceptsChildren": false,
16681
+ "props": [
16682
+ {
16683
+ "name": "checked",
16684
+ "type": "boolean",
16685
+ "required": true,
16686
+ "description": "The on or off state the row shows. onToggle receives the next state; the caller owns this value."
16687
+ },
16688
+ {
16689
+ "name": "disabled",
16690
+ "type": "boolean",
16691
+ "required": false,
16692
+ "description": "Locks the switch and dims it.",
16693
+ "default": false
16694
+ },
16695
+ {
16696
+ "name": "label",
16697
+ "type": "string",
16698
+ "required": true,
16699
+ "description": "The accessible name of the switch, read out with its state."
16700
+ }
16701
+ ],
16702
+ "itemsTakeAction": [],
16703
+ "takesAction": [],
16704
+ "source": "@webority/ui-react",
16705
+ "usage": {
16706
+ "when": [
16707
+ "A setting on one row of a table that saves on its own, such as portal access or auto-reminders.",
16708
+ "Each row has its own state and the change must reach the server before the row shows it."
16709
+ ],
16710
+ "whenNot": [
16711
+ {
16712
+ "text": "The switch is a page-level setting with no table row.",
16713
+ "instead": "AppSwitch"
16714
+ },
16715
+ {
16716
+ "text": "The row action opens several choices.",
16717
+ "instead": "AppDropdown"
16718
+ },
16719
+ {
16720
+ "text": "The user submits several rows of settings together.",
16721
+ "instead": "AppCheckbox"
16722
+ }
16723
+ ],
16724
+ "do": [
16725
+ {
16726
+ "note": "The row keeps its saved state. The switch shows the next state only after the save resolves.",
16727
+ "example": [
16728
+ {
16729
+ "component": "AppRowSwitch",
16730
+ "props": {
16731
+ "label": "Portal access",
16732
+ "checked": true
16733
+ },
16734
+ "handlers": [
16735
+ "onToggle"
16736
+ ]
16737
+ }
16738
+ ]
16739
+ }
16740
+ ],
16741
+ "dont": [
16742
+ {
16743
+ "note": "A page-level switch in a row has no busy state, so a second flip can race the first save.",
16744
+ "example": [
16745
+ {
16746
+ "component": "AppSwitch",
16747
+ "props": {
16748
+ "label": "Portal access",
16749
+ "defaultChecked": true
16750
+ }
16751
+ }
16752
+ ]
16753
+ }
16754
+ ],
16755
+ "a11y": [
16756
+ "The control is a button with role switch and aria-checked, so a screen reader reads its state.",
16757
+ "label is the accessible name, read out with the state.",
16758
+ "While a save is pending the switch is busy and disabled, so a second flip cannot race the first."
16759
+ ]
16760
+ }
16761
+ },
16557
16762
  {
16558
16763
  "name": "AppScoreScale",
16559
16764
  "marker": "AppScoreScale",
@@ -18218,6 +18423,13 @@
18218
18423
  "required": false,
18219
18424
  "description": "Shows the list open, for a design preview or a controlled caller."
18220
18425
  },
18426
+ {
18427
+ "name": "optional",
18428
+ "type": "boolean",
18429
+ "required": false,
18430
+ "description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
18431
+ "default": false
18432
+ },
18221
18433
  {
18222
18434
  "name": "options",
18223
18435
  "type": "array",
@@ -19817,6 +20029,13 @@
19817
20029
  "required": false,
19818
20030
  "description": "Form field name (single mode)."
19819
20031
  },
20032
+ {
20033
+ "name": "optional",
20034
+ "type": "boolean",
20035
+ "required": false,
20036
+ "description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
20037
+ "default": false
20038
+ },
19820
20039
  {
19821
20040
  "name": "range",
19822
20041
  "type": "boolean",
@@ -22422,6 +22641,13 @@
22422
22641
  "required": false,
22423
22642
  "description": "The field name the tags post under."
22424
22643
  },
22644
+ {
22645
+ "name": "optional",
22646
+ "type": "boolean",
22647
+ "required": false,
22648
+ "description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
22649
+ "default": false
22650
+ },
22425
22651
  {
22426
22652
  "name": "placeholder",
22427
22653
  "type": "string",
@@ -23051,6 +23277,13 @@
23051
23277
  "required": false,
23052
23278
  "description": "The field name the time posts under."
23053
23279
  },
23280
+ {
23281
+ "name": "optional",
23282
+ "type": "boolean",
23283
+ "required": false,
23284
+ "description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
23285
+ "default": false
23286
+ },
23054
23287
  {
23055
23288
  "name": "placeholder",
23056
23289
  "type": "string",
@@ -25837,6 +26070,7 @@
25837
26070
  "arrow-up-2",
25838
26071
  "arrow-up-3",
25839
26072
  "arrow-up-right",
26073
+ "at",
25840
26074
  "attach-circle",
25841
26075
  "attach-square",
25842
26076
  "audio-square",
@@ -26043,6 +26277,7 @@
26043
26277
  "colors-square",
26044
26278
  "command",
26045
26279
  "command-square",
26280
+ "comment",
26046
26281
  "component",
26047
26282
  "computing",
26048
26283
  "contact",
@@ -26580,6 +26815,7 @@
26580
26815
  "record",
26581
26816
  "record-circle",
26582
26817
  "recovery-convert",
26818
+ "reddit",
26583
26819
  "refresh",
26584
26820
  "refresh-2",
26585
26821
  "refresh-circle",
@@ -26745,6 +26981,7 @@
26745
26981
  "the-graph",
26746
26982
  "theta",
26747
26983
  "thorchain",
26984
+ "thumbs-up",
26748
26985
  "tick-circle",
26749
26986
  "tick-square",
26750
26987
  "ticket",
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "webority-web",
3
- "version": "0.121.0",
3
+ "version": "0.124.0",
4
4
  "platform": "Web",
5
5
  "kitModuleVersion": 2,
6
6
  "rendererProtocolVersion": 13,
7
7
  "library": {
8
8
  "name": "@webority/ui-react",
9
- "version": "0.121.0"
9
+ "version": "0.124.0"
10
10
  },
11
11
  "files": {
12
12
  "manifest.json": {
13
- "sha256": "f145fc7885621959e7fe7c9a89847bfa6508100e22436e9f9e6f9e006ef30f2c",
14
- "bytes": 858353
13
+ "sha256": "8498955ff63957934b0fda45fec953b4187a11b5606e98dc25b1c4a26929a32a",
14
+ "bytes": 866751
15
15
  },
16
16
  "kit.js": {
17
- "sha256": "338408f252d769e82ec27197e9917aad6ea7842584944870d1d324ea96076a14",
18
- "bytes": 10911288
17
+ "sha256": "aae26c145335925f099b72448dd80141822f055a820ad81a1a689d80a104d5c7",
18
+ "bytes": 10994673
19
19
  },
20
20
  "kit.css": {
21
- "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
22
- "bytes": 0
21
+ "sha256": "13b14f71fb6ea024945f95cba617b4f1d49f44a65ba7c7ed05d2354805539ef6",
22
+ "bytes": 187355
23
23
  }
24
24
  }
25
25
  }
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import{useEffect as i,useId as a,useState as o}from"react";import{jsx as s,jsxs as c}from"react/jsx-runtime";var l=[`bordered`,`flat`];function u(e,t,n){if(Array.isArray(n)){let e=n.map(String);return new Set(t?e:e.slice(0,1))}let r=e.map((e,t)=>({item:e,key:e.key??String(t)})).filter(({item:e})=>e.open).map(({key:e})=>e);return new Set(t?r:r.slice(0,1))}function d(d){let{marker:f,props:p}=e(`AppAccordion`,d),{items:m=[],multiple:h=!1,openItems:g,variant:_=`bordered`,id:v,className:y=``,...b}=p;n(`AppAccordion`,b),t(`AppAccordion`,`variant`,_,l);let x=_===`flat`,S=s(`span`,{className:`wui-accordion-icon`,children:s(r,{name:`chevron-down`,size:18})}),C=a(),w=v||C,[T,E]=o(()=>u(m,h,g)),D=Array.isArray(g)?g.map(String).join(`\0`):null;i(()=>{D!==null&&E(u(m,h,g))},[D,h]);let O=(e,t)=>e.key??String(t),k=e=>{E(t=>{let n=new Set(h?t:[]);return t.has(e)?n.delete(e):n.add(e),n})};return s(`div`,{className:`wui-accordion${x?` wui-accordion-flat`:``}${y?` ${y}`:``}`,...f,...b,children:m.map((e,t)=>{let n=O(e,t),r=T.has(n),i=`${w}-${t}`,a=`${i}-q`;return c(`div`,{className:`wui-accordion-item${r?` open`:``}`,children:[c(`button`,{type:`button`,className:`wui-accordion-trigger`,id:a,"aria-expanded":r,"aria-controls":i,onClick:()=>k(n),children:[x?S:null,e.title,e.count==null?null:s(`span`,{className:`wui-accordion-count`,children:e.count}),x?null:S]}),s(`section`,{className:`wui-accordion-panel`,id:i,"aria-labelledby":a,inert:!r,"aria-hidden":!r||void 0,children:s(`div`,{className:`wui-accordion-body`,children:e.content})})]},n)})})}export{d as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppIcon.js";import n from"./warnInvalidValue.js";import r from"./warnUnknownProps.js";import{useEffect as i,useId as a,useState as o}from"react";import{jsx as s,jsxs as c}from"react/jsx-runtime";var l=[`bordered`,`flat`];function u(e,t,n){if(Array.isArray(n)){let e=n.map(String);return new Set(t?e:e.slice(0,1))}let r=e.map((e,t)=>({item:e,key:e.key??String(t)})).filter(({item:e})=>e.open).map(({key:e})=>e);return new Set(t?r:r.slice(0,1))}function d(d){let{marker:f,props:p}=e(`AppAccordion`,d),{items:m=[],multiple:h=!1,openItems:g,variant:_=`bordered`,id:v,className:y=``,...b}=p;r(`AppAccordion`,b),n(`AppAccordion`,`variant`,_,l);let x=_===`flat`,S=/* @__PURE__ */ s(`span`,{className:`wui-accordion-icon`,children:/* @__PURE__ */ s(t,{name:`chevron-down`,size:18})}),C=a(),w=v||C,[T,E]=o(()=>u(m,h,g)),D=Array.isArray(g)?g.map(String).join(`\0`):null;i(()=>{D!==null&&E(u(m,h,g))},[D,h]);let O=(e,t)=>e.key??String(t),k=e=>{E(t=>{let n=new Set(h?t:[]);return t.has(e)?n.delete(e):n.add(e),n})};return/* @__PURE__ */ s(`div`,{className:`wui-accordion${x?` wui-accordion-flat`:``}${y?` ${y}`:``}`,...f,...b,children:m.map((e,t)=>{let n=O(e,t),r=T.has(n),i=`${w}-${t}`,a=`${i}-q`;return/* @__PURE__ */ c(`div`,{className:`wui-accordion-item${r?` open`:``}`,children:[/* @__PURE__ */ c(`button`,{type:`button`,className:`wui-accordion-trigger`,id:a,"aria-expanded":r,"aria-controls":i,onClick:()=>k(n),children:[x?S:null,e.title,e.count==null?null:/* @__PURE__ */ s(`span`,{className:`wui-accordion-count`,children:e.count}),x?null:S]}),/* @__PURE__ */ s(`section`,{className:`wui-accordion-panel`,id:i,"aria-labelledby":a,inert:!r,"aria-hidden":!r||void 0,children:/* @__PURE__ */ s(`div`,{className:`wui-accordion-body`,children:e.content})})]},n)})})}export{d as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import{devWarn as t}from"../lib/devWarn.js";import n from"./warnInvalidValue.js";import r from"./warnUnknownProps.js";import{shortcutAria as i}from"../lib/shortcutChip.js";import a from"./withTooltip.js";import o from"./renderIconProp.js";import{useRef as s}from"react";import{Fragment as c,jsx as l,jsxs as u}from"react/jsx-runtime";var d=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],f=[`comfortable`,`compact`];function p(p){let{marker:m,props:h}=e(`AppActionIcon`,p),{icon:g,iconVariant:_,label:v,tooltipPlacement:y=`auto`,shortcut:b,danger:x=!1,density:S=`comfortable`,neutral:C=!1,disabled:w=!1,size:T=20,onClick:E,className:D=``,as:O,href:k,accept:A,multiple:j=!1,onFiles:M,...N}=h,P=Number(T),F=Number.isFinite(P)&&P>0?P:20;T!==void 0&&!(Number.isFinite(P)&&P>0)&&t(`AppActionIcon: size must be a positive number of px.`),r(`AppActionIcon`,O===void 0?N:{...N,as:O}),n(`AppActionIcon`,`iconVariant`,_,d),n(`AppActionIcon`,`density`,S,f),x&&C&&t(`AppActionIcon: danger and neutral are exclusive; danger wins.`);let I=typeof M==`function`;I&&(O!==void 0||k!==void 0)&&t(`AppActionIcon: file mode renders a button; href and as are ignored.`),!I&&(A!==void 0||j)&&t(`AppActionIcon: accept and multiple apply only in file mode (pass onFiles).`);let L=s(null),R=e=>{let t=[...e.target.files];e.target.value=``,t.length>0&&M(t)},z=[`u-action`,x?`danger`:``,C&&!x?`neutral`:``,D].filter(Boolean).join(` `),{style:B,...V}=N,H={"--wui-action-size":`${F+(S===`compact`?8:16)}px`,...B},U=I?`button`:O??(k?`a`:`button`),W=U===`button`,G=a(l(U,{type:W?`button`:void 0,href:W||w?void 0:k,className:z,style:H,"aria-label":v,"aria-keyshortcuts":i(b),disabled:W?w:void 0,"aria-disabled":!W&&w?`true`:void 0,role:!W&&w?`link`:void 0,tabIndex:!W&&w?-1:void 0,onClick:e=>{if(w){e.preventDefault(),e.stopPropagation();return}E?.(e),I&&!e.defaultPrevented&&L.current?.click()},...m,...V,children:o(g,{size:F,variant:_})}),v,y,b);return I?u(c,{children:[G,l(`input`,{type:`file`,ref:L,className:`wui-action-icon-file`,hidden:!0,tabIndex:-1,"aria-hidden":`true`,accept:A,multiple:j,onChange:R,onClick:e=>e.stopPropagation()})]}):G}export{p as default};
1
+ import{devWarn as e}from"../lib/devWarn.js";import{shortcutAria as t}from"../lib/shortcutChip.js";import{splitMarkerProps as n}from"../lib/wuiMarker.js";import r from"./renderIconProp.js";import i from"./warnInvalidValue.js";import a from"./warnUnknownProps.js";import o from"./withTooltip.js";import{useRef as s}from"react";import{Fragment as c,jsx as l,jsxs as u}from"react/jsx-runtime";var d=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],f=[`comfortable`,`compact`];function p(p){let{marker:m,props:h}=n(`AppActionIcon`,p),{icon:g,iconVariant:_,label:v,tooltipPlacement:y=`auto`,shortcut:b,danger:x=!1,density:S=`comfortable`,neutral:C=!1,disabled:w=!1,size:T=20,onClick:E,className:D=``,as:O,href:k,accept:A,multiple:j=!1,onFiles:M,...N}=h,P=Number(T),F=Number.isFinite(P)&&P>0?P:20;T!==void 0&&!(Number.isFinite(P)&&P>0)&&e(`AppActionIcon: size must be a positive number of px.`),a(`AppActionIcon`,O===void 0?N:{...N,as:O}),i(`AppActionIcon`,`iconVariant`,_,d),i(`AppActionIcon`,`density`,S,f),x&&C&&e(`AppActionIcon: danger and neutral are exclusive; danger wins.`);let I=typeof M==`function`;I&&(O!==void 0||k!==void 0)&&e(`AppActionIcon: file mode renders a button; href and as are ignored.`),!I&&(A!==void 0||j)&&e(`AppActionIcon: accept and multiple apply only in file mode (pass onFiles).`);let L=s(null),R=e=>{let t=[...e.target.files];e.target.value=``,t.length>0&&M(t)},z=[`u-action`,x?`danger`:``,C&&!x?`neutral`:``,D].filter(Boolean).join(` `),{style:B,...V}=N,H={"--wui-action-size":`${F+(S===`compact`?8:16)}px`,...B},U=I?`button`:O??(k?`a`:`button`),W=U===`button`,G=/* @__PURE__ */ l(U,{type:W?`button`:void 0,href:W||w?void 0:k,className:z,style:H,"aria-label":v,"aria-keyshortcuts":t(b),disabled:W?w:void 0,"aria-disabled":!W&&w?`true`:void 0,role:!W&&w?`link`:void 0,tabIndex:!W&&w?-1:void 0,onClick:e=>{w?(e.preventDefault(),e.stopPropagation()):(E?.(e),I&&!e.defaultPrevented&&L.current?.click())},...m,...V,children:r(g,{size:F,variant:_})}),K=o(G,v,y,b);return I?/* @__PURE__ */ u(c,{children:[K,/* @__PURE__ */ l(`input`,{type:`file`,ref:L,className:`wui-action-icon-file`,hidden:!0,tabIndex:-1,"aria-hidden":`true`,accept:A,multiple:j,onChange:R,onClick:e=>e.stopPropagation()})]}):K}export{p as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import{Alert as i}from"react-bootstrap";import{Fragment as a,jsx as o,jsxs as s}from"react/jsx-runtime";var c={info:`info`,success:`check`,warning:`alert-triangle`,danger:`x`},l=[`info`,`success`,`warning`,`danger`,`neutral`],u=[`sm`,`md`,`lg`],d=[`alert`,`status`,`none`],f=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`];function p(e,t,n,i,a,s){return i?o(`span`,{className:`alert-icon alert-icon-image`,style:s>0?{width:s,height:s}:void 0,children:o(`img`,{src:i,alt:a})}):e?typeof e==`string`?o(`span`,{className:`alert-icon`,children:o(r,{name:e,size:t,variant:n})}):o(`span`,{className:`alert-icon`,children:e}):null}function m(r){let{marker:m,props:h}=e(`AppAlert`,r),{tone:g=`info`,children:_,title:v,icon:y,iconVariant:b,iconSize:x,image:S,imageAlt:C=``,imageSize:w,className:T=``,onClose:E,dismissible:D,bordered:O=!0,accent:k=!1,size:A=`md`,action:j,role:M=`alert`,...N}=h;n(`AppAlert`,N),t(`AppAlert`,`tone`,g,l),t(`AppAlert`,`size`,A,u),t(`AppAlert`,`role`,M,d),t(`AppAlert`,`iconVariant`,b,f);let P=y===void 0?c[g]:y===`none`?null:y,F=!!S||!!P,I=j!=null&&j!==!1,L=v?o(`div`,{className:`alert-heading`,children:v}):null,R=F&&!!L&&!!_,z=x>0?x:A===`lg`?R?17:15:R?13:11;return o(i,{className:[F?`alert-has-icon`:``,I?`alert-has-action`:``,R?`alert-stack`:``,O?``:`alert-borderless`,k?`alert-accent`:``,A===`sm`?`alert-sm`:``,A===`lg`?`alert-lg`:``,T].filter(Boolean).join(` `)||void 0,onClose:E,dismissible:D??typeof E==`function`,transition:!1,role:M===`none`?void 0:M,...m,...N,variant:g,children:F||I?s(a,{children:[F&&p(P,z,b,S,C,w),s(`div`,{className:`alert-content`,children:[L,_]}),I&&o(`div`,{className:`alert-action`,children:j})]}):s(a,{children:[L,_]})})}export{m as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppIcon.js";import n from"./warnInvalidValue.js";import r from"./warnUnknownProps.js";import{Alert as i}from"react-bootstrap";import{Fragment as a,jsx as o,jsxs as s}from"react/jsx-runtime";var c={info:`info`,success:`check`,warning:`alert-triangle`,danger:`x`},l=[`info`,`success`,`warning`,`danger`,`neutral`],u=[`sm`,`md`,`lg`],d=[`alert`,`status`,`none`],f=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`];function p(e,n,r,i,a,s){return i?/* @__PURE__ */ o(`span`,{className:`alert-icon alert-icon-image`,style:s>0?{width:s,height:s}:void 0,children:/* @__PURE__ */ o(`img`,{src:i,alt:a})}):e?typeof e==`string`?/* @__PURE__ */ o(`span`,{className:`alert-icon`,children:/* @__PURE__ */ o(t,{name:e,size:n,variant:r})}):/* @__PURE__ */ o(`span`,{className:`alert-icon`,children:e}):null}function m(t){let{marker:m,props:h}=e(`AppAlert`,t),{tone:g=`info`,children:_,title:v,icon:y,iconVariant:b,iconSize:x,image:S,imageAlt:C=``,imageSize:w,className:T=``,onClose:E,dismissible:D,bordered:O=!0,accent:k=!1,size:A=`md`,action:j,role:M=`alert`,...N}=h;r(`AppAlert`,N),n(`AppAlert`,`tone`,g,l),n(`AppAlert`,`size`,A,u),n(`AppAlert`,`role`,M,d),n(`AppAlert`,`iconVariant`,b,f);let P=y===void 0?c[g]:y===`none`?null:y,F=!!S||!!P,I=j!=null&&j!==!1,L=v?/* @__PURE__ */ o(`div`,{className:`alert-heading`,children:v}):null,R=F&&!!L&&!!_,z=x>0?x:A===`lg`?R?17:15:R?13:11,B=[F?`alert-has-icon`:``,I?`alert-has-action`:``,R?`alert-stack`:``,O?``:`alert-borderless`,k?`alert-accent`:``,A===`sm`?`alert-sm`:``,A===`lg`?`alert-lg`:``,T].filter(Boolean).join(` `);return/* @__PURE__ */ o(i,{className:B||void 0,onClose:E,dismissible:D??typeof E==`function`,transition:!1,role:M===`none`?void 0:M,...m,...N,variant:g,children:F||I?/* @__PURE__ */ s(a,{children:[F&&p(P,z,b,S,C,w),/* @__PURE__ */ s(`div`,{className:`alert-content`,children:[L,_]}),I&&/* @__PURE__ */ o(`div`,{className:`alert-action`,children:j})]}):/* @__PURE__ */ s(a,{children:[L,_]})})}export{m as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import n from"./AppButton.js";import r from"./AppEmptyState.js";import i from"./AppProgress.js";import{jsx as a}from"react/jsx-runtime";function o(o){let{marker:s,props:c}=e(`AppAsyncBlock`,o),{loading:l=!1,error:u=null,empty:d=!1,children:f,onRetry:p,skeleton:m,className:h=``,...g}=c;t(`AppAsyncBlock`,g);let _=`async-block${h?` ${h}`:``}`;return l?a(`div`,{className:_,"data-state":`loading`,...s,...g,children:m??a(i,{value:0,indeterminate:!0,size:`sm`,label:`Loading`})}):u?a(`div`,{className:_,"data-state":`error`,...s,...g,children:a(r,{icon:`alert-circle`,title:`Something went wrong`,text:u,action:p?a(n,{variant:`secondary`,onClick:p,children:`Retry`}):null})}):d?a(`div`,{className:_,"data-state":`empty`,...s,...g,children:a(r,{icon:`inbox`,title:`Nothing to show yet`})}):a(`div`,{className:_,"data-state":`content`,...s,...g,children:f})}export{o as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppButton.js";import n from"./AppEmptyState.js";import r from"./AppProgress.js";import i from"./warnUnknownProps.js";import{jsx as a}from"react/jsx-runtime";function o(o){let{marker:s,props:c}=e(`AppAsyncBlock`,o),{loading:l=!1,error:u=null,empty:d=!1,children:f,onRetry:p,skeleton:m,className:h=``,...g}=c;i(`AppAsyncBlock`,g);let _=`async-block${h?` ${h}`:``}`;return l?/* @__PURE__ */ a(`div`,{className:_,"data-state":`loading`,...s,...g,children:m??/* @__PURE__ */ a(r,{value:0,indeterminate:!0,size:`sm`,label:`Loading`})}):u?/* @__PURE__ */ a(`div`,{className:_,"data-state":`error`,...s,...g,children:/* @__PURE__ */ a(n,{icon:`alert-circle`,title:`Something went wrong`,text:u,action:p?/* @__PURE__ */ a(t,{variant:`secondary`,onClick:p,children:`Retry`}):null})}):d?/* @__PURE__ */ a(`div`,{className:_,"data-state":`empty`,...s,...g,children:/* @__PURE__ */ a(n,{icon:`inbox`,title:`Nothing to show yet`})}):/* @__PURE__ */ a(`div`,{className:_,"data-state":`content`,...s,...g,children:f})}export{o as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"../lib/FieldMessage.js";import i from"./AppInfoTip.js";import a from"./AppRequiredMark.js";import o from"./useNodeLabels.js";import s,{optionsEqual as c}from"./useWuiControl.js";import{forwardRef as l,useEffect as u,useId as d,useLayoutEffect as f,useRef as p}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";import"@webority/ui-elements/elements/autocomplete";var g=[`sm`,`lg`],_=[],ee=(e,t)=>({...e,label:t}),v=(e,t,n)=>{if(n==null||t==null||t===``)return e;let r=String(t);return e.some(e=>String(e.value)===r)?e:[...e,{value:r,label:n}]},y=l(function(l,y){let{marker:b,props:x}=e(`AppAutocomplete`,l),{value:S,onChange:C,options:w,valueLabel:T,loadOptions:E,placeholder:D=`Search…`,minChars:O,debounce:k,disabled:A=!1,open:j,size:M,allowCustom:N=!1,name:P,id:F,label:I,error:L,hint:R,required:z=!1,help:B,helpLabel:V=`More information`,fieldClassName:H=``,...U}=x;n(`AppAutocomplete`,U),t(`AppAutocomplete`,`size`,M,g);let W=typeof E==`function`,G=d(),K=F||G,{setRef:q,innerRef:J}=s({ref:y,value:S??``,on:{change:e=>C?.(e.currentTarget.value,{isCustom:!!e.detail?.isCustom})}}),Y=w||_,{portal:X,toElementOptions:Z}=o(Y),Q=p(!1),$=p(E);return f(()=>{$.current=E}),u(()=>{let e=J.current;if(!e||W&&Q.current)return;let t=Z(v(Y,S,T),ee);c(t,e.options)||(e.options=t)},[Y,W,J,Z,S,T]),u(()=>{let e=J.current;if(!e||!W||!Q.current)return;let t=e.options,n=v(t,S,T);n!==t&&(e.options=n)},[S,T,W,J]),u(()=>{let e=J.current;if(!e||!W)return;let t=0,n=null,r=async r=>{let i=++t;n?.abort(),n=typeof AbortController==`function`?new AbortController:null,e.loading=!0;try{let a=await $.current(r.detail.query,{signal:n?.signal});i===t&&(Q.current=!0,e.options=a||[])}catch{i===t&&(Q.current=!0,e.options=[])}finally{i===t&&(e.loading=!1)}};return e.addEventListener(`search`,r),()=>{t=-1,n?.abort(),e.removeEventListener(`search`,r),e.loading=!1}},[W,J]),h(`div`,{...b,className:`field${H?` ${H}`:``}`,children:[I&&h(`label`,{className:`label`,htmlFor:K,children:[I,z&&m(a,{}),B&&m(i,{label:V,children:B})]}),m(`wui-autocomplete`,{"aria-label":typeof I==`string`?I:void 0,"aria-describedby":L?`${K}-error`:R?`${K}-hint`:void 0,"aria-invalid":L?`true`:void 0,id:K,ref:q,name:P,placeholder:D,remote:W?``:void 0,"min-chars":O==null?void 0:String(O),debounce:k==null?void 0:String(k),size:M||void 0,"allow-custom":N?``:void 0,disabled:A?``:void 0,open:j?``:void 0,required:z?``:void 0,...U}),X,m(r,{error:L,hint:R,errorId:`${K}-error`,hintId:`${K}-hint`})]})});export{y as default};
1
+ import e from"../lib/FieldMessage.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./AppInfoTip.js";import r from"./AppRequiredMark.js";import i from"./useNodeLabels.js";import a,{optionsEqual as o}from"./useWuiControl.js";import s from"./warnInvalidValue.js";import c from"./warnUnknownProps.js";import{forwardRef as l,useEffect as u,useId as d,useLayoutEffect as f,useRef as p}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";import"@webority/ui-elements/elements/autocomplete";var ee=[`sm`,`lg`],te=[],g=(e,t)=>({...e,label:t}),_=(e,t,n)=>{if(n==null||t==null||t===``)return e;let r=String(t);return e.some(e=>String(e.value)===r)?e:[...e,{value:r,label:n}]},v=l(function(l,v){let{marker:y,props:b}=t(`AppAutocomplete`,l),{value:x,onChange:S,options:C,valueLabel:w,valueAvatar:T,valueInitials:E,loadOptions:D,placeholder:O=`Search…`,minChars:k,debounce:A,disabled:ne=!1,open:j,size:M,allowCustom:N=!1,name:P,id:F,label:I,error:L,hint:R,required:z=!1,optional:B=!1,help:V,helpLabel:H=`More information`,fieldClassName:U=``,...W}=b;c(`AppAutocomplete`,W),s(`AppAutocomplete`,`size`,M,ee);let G=typeof D==`function`,K=d(),q=F||K,{setRef:J,innerRef:Y}=a({ref:v,value:x??``,on:{change:e=>S?.(e.currentTarget.value,{isCustom:!!e.detail?.isCustom})}}),X=C||te,{portal:re,toElementOptions:Z}=i(X),Q=p(!1),$=p(D);return f(()=>{$.current=D}),u(()=>{let e=Y.current;if(!e||G&&Q.current)return;let t=Z(_(X,x,w),g);o(t,e.options)||(e.options=t)},[X,G,Y,Z,x,w]),u(()=>{let e=Y.current;if(!e||!G||!Q.current)return;let t=e.options,n=_(t,x,w);n!==t&&(e.options=n)},[x,w,G,Y]),u(()=>{let e=Y.current;if(!e||!G)return;let t=0,n=null,r=async r=>{let i=++t;n?.abort(),n=typeof AbortController==`function`?new AbortController:null,e.loading=!0;try{let a=await $.current(r.detail.query,{signal:n?.signal});i===t&&(Q.current=!0,e.options=a||[])}catch{i===t&&(Q.current=!0,e.options=[])}finally{i===t&&(e.loading=!1)}};return e.addEventListener(`search`,r),()=>{t=-1,n?.abort(),e.removeEventListener(`search`,r),e.loading=!1}},[G,Y]),/* @__PURE__ */ h(`div`,{...y,className:`field${U?` ${U}`:``}`,children:[I&&/* @__PURE__ */ h(`label`,{className:`label`,htmlFor:q,children:[I,B&&!z&&/* @__PURE__ */ m(`span`,{className:`label-optional`,children:` (optional)`}),z&&/* @__PURE__ */ m(r,{}),V&&/* @__PURE__ */ m(n,{label:H,children:V})]}),/* @__PURE__ */ m(`wui-autocomplete`,{"aria-label":typeof I==`string`?I:void 0,"aria-describedby":L?`${q}-error`:R?`${q}-hint`:void 0,"aria-invalid":L?`true`:void 0,id:q,ref:J,name:P,placeholder:O,remote:G?``:void 0,"min-chars":k==null?void 0:String(k),debounce:A==null?void 0:String(A),size:M||void 0,"allow-custom":N?``:void 0,disabled:ne?``:void 0,open:j?``:void 0,required:z?``:void 0,"value-avatar":T||void 0,"value-initials":E||void 0,...W}),re,/* @__PURE__ */ m(e,{error:L,hint:R,errorId:`${q}-error`,hintId:`${q}-hint`})]})});export{v as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./withTooltip.js";import i from"./renderIconProp.js";import{initialsOf as a}from"../lib/initials.js";import{useEffect as o,useState as s}from"react";import{Fragment as c,jsx as l,jsxs as u}from"react/jsx-runtime";var d=[`circle`,`rounded`,`square`],f=[`primary`,`neutral`,`success`,`warning`,`danger`,`info`,`auto`],p=[`none`,`online`,`offline`,`away`,`busy`],m=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],h=new Set([`xs`,`sm`,`md`,`lg`,`xl`,`2xl`]),g={xs:20,sm:24,md:32,lg:48,xl:64,"2xl":96};function _(e){return a(e)||`?`}function v(e){let t=e||``,n=0;for(let e=0;e<t.length;e+=1)n=Math.imul(n,31)+t.charCodeAt(e)>>>0;return n%360}function y(e){if(typeof e==`number`)return e;if(g[e]!=null)return g[e];let t=Number.parseInt(e,10);return Number.isNaN(t)?32:t}function b(a){let{marker:g,props:b}=e(`AppAvatar`,a),{name:x,src:S,size:C=`md`,shape:w=`circle`,tone:T=`primary`,status:E=`none`,ring:D=!1,label:O,icon:k,iconVariant:A,badge:j,href:M,onClick:N,linkComponent:P,tooltip:F,tooltipPlacement:I,className:L=``,...R}=b;n(`AppAvatar`,R),t(`AppAvatar`,`shape`,w,d),t(`AppAvatar`,`tone`,T,f),t(`AppAvatar`,`status`,E,p),t(`AppAvatar`,`iconVariant`,A,m);let{style:z,...B}=R,[V,H]=s(!1);o(()=>{H(!1)},[S]);let U=typeof C==`string`&&h.has(C),W=U?null:typeof C==`number`||/^\d+$/.test(C)?`${C}px`:C,G=M!=null||N!=null,K=S!=null&&S!==``&&!V,q=[`avatar`,U&&C!==`md`?`avatar-${C}`:``,w===`circle`?``:`avatar-${w}`,T===`primary`?``:`avatar-${T}`,D?`avatar-ring`:``,G?`avatar-clickable`:``,L].filter(Boolean).join(` `),J={};W&&(J[`--avatar-size`]=W),T===`auto`&&(J[`--avatar-hue`]=v(x));let Y=Object.keys(J).length||z?{...J,...z}:void 0,X=l(`span`,{className:`avatar-face`,"aria-hidden":`true`,children:k!=null&&k!==!1&&k!==``?i(k,{size:Math.round(y(C)*.55),variant:A}):_(x)}),Z=u(c,{children:[E!==`none`&&l(`span`,{className:`avatar-status avatar-status-${E}`,"aria-hidden":`true`}),j!=null&&l(`span`,{className:`avatar-badge`,children:j}),O!=null&&l(`span`,{className:`avatar-label`,"aria-hidden":`true`,children:O})]}),Q=u(c,{children:[X,K&&l(`img`,{className:`avatar-img`,src:S,alt:G?``:x||`Profile photo`,onError:()=>H(!0)}),Z]});if(M!=null){let e=P||`a`,t=P?{to:M}:{href:M};return r(l(e,{className:q,style:Y,...g,...B,"aria-label":O||x,...t,onClick:N,children:Q}),F,I)}if(N!=null)return r(l(`button`,{type:`button`,className:q,style:Y,...g,...B,"aria-label":O||x,onClick:N,children:Q}),F,I);if(K)return r(l(`span`,{className:q,style:Y,...g,...B,children:Q}),F,I);let $=O?.trim()||x?.trim();return r($?l(`span`,{className:q,style:Y,...g,...B,role:`img`,"aria-label":$,children:Q}):l(`span`,{className:q,style:Y,...g,...B,"aria-hidden":`true`,children:Q}),F,I)}export{b as default};
1
+ import{initialsOf as e}from"../lib/initials.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./renderIconProp.js";import r from"./warnInvalidValue.js";import i from"./warnUnknownProps.js";import a from"./withTooltip.js";import{useEffect as o,useState as s}from"react";import{Fragment as c,jsx as l,jsxs as u}from"react/jsx-runtime";var d=[`circle`,`rounded`,`square`],f=[`primary`,`neutral`,`success`,`warning`,`danger`,`info`,`auto`],p=[`none`,`online`,`offline`,`away`,`busy`],m=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],h=/* @__PURE__ */ new Set([`xs`,`sm`,`md`,`lg`,`xl`,`2xl`]),g={xs:20,sm:24,md:32,lg:48,xl:64,"2xl":96};function _(t){return e(t)||`?`}function v(e){let t=e||``,n=0;for(let e=0;e<t.length;e+=1)n=Math.imul(n,31)+t.charCodeAt(e)>>>0;return n%360}function y(e){if(typeof e==`number`)return e;if(g[e]!=null)return g[e];let t=Number.parseInt(e,10);return Number.isNaN(t)?32:t}function b(e){let{marker:g,props:b}=t(`AppAvatar`,e),{name:x,src:S,size:C=`md`,shape:w=`circle`,tone:T=`primary`,status:E=`none`,ring:D=!1,label:O,icon:k,iconVariant:A,badge:j,href:M,onClick:N,linkComponent:P,tooltip:F,tooltipPlacement:I,className:L=``,...R}=b;i(`AppAvatar`,R),r(`AppAvatar`,`shape`,w,d),r(`AppAvatar`,`tone`,T,f),r(`AppAvatar`,`status`,E,p),r(`AppAvatar`,`iconVariant`,A,m);let{style:z,...B}=R,[V,H]=s(!1);o(()=>{H(!1)},[S]);let U=typeof C==`string`&&h.has(C),W=U?null:typeof C==`number`||/^\d+$/.test(C)?`${C}px`:C,G=M!=null||N!=null,K=S!=null&&S!==``&&!V,q=[`avatar`,U&&C!==`md`?`avatar-${C}`:``,w===`circle`?``:`avatar-${w}`,T===`primary`?``:`avatar-${T}`,D?`avatar-ring`:``,G?`avatar-clickable`:``,L].filter(Boolean).join(` `),J={};W&&(J[`--avatar-size`]=W),T===`auto`&&(J[`--avatar-hue`]=v(x));let Y=Object.keys(J).length||z?{...J,...z}:void 0,X=/* @__PURE__ */ l(`span`,{className:`avatar-face`,"aria-hidden":`true`,children:k!=null&&k!==!1&&k!==``?n(k,{size:Math.round(y(C)*.55),variant:A}):_(x)}),Z=/* @__PURE__ */ u(c,{children:[E!==`none`&&/* @__PURE__ */ l(`span`,{className:`avatar-status avatar-status-${E}`,"aria-hidden":`true`}),j!=null&&/* @__PURE__ */ l(`span`,{className:`avatar-badge`,children:j}),O!=null&&/* @__PURE__ */ l(`span`,{className:`avatar-label`,"aria-hidden":`true`,children:O})]}),Q=/* @__PURE__ */ u(c,{children:[X,K&&/* @__PURE__ */ l(`img`,{className:`avatar-img`,src:S,alt:G?``:x||`Profile photo`,onError:()=>H(!0)}),Z]});if(M!=null){let e=P||`a`,t=P?{to:M}:{href:M};return a(/* @__PURE__ */ l(e,{className:q,style:Y,...g,...B,"aria-label":O||x,...t,onClick:N,children:Q}),F,I)}if(N!=null)return a(/* @__PURE__ */ l(`button`,{type:`button`,className:q,style:Y,...g,...B,"aria-label":O||x,onClick:N,children:Q}),F,I);if(K)return a(/* @__PURE__ */ l(`span`,{className:q,style:Y,...g,...B,children:Q}),F,I);let $=O?.trim()||x?.trim();return a($?/* @__PURE__ */ l(`span`,{className:q,style:Y,...g,...B,role:`img`,"aria-label":$,children:Q}):/* @__PURE__ */ l(`span`,{className:q,style:Y,...g,...B,"aria-hidden":`true`,children:Q}),F,I)}export{b as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";var a=[`tight`,`normal`,`loose`],o={xs:20,sm:24,md:32,lg:48,xl:64,"2xl":96};function s(e){return e==null?null:typeof e==`number`?`${e}px`:o[e]==null?/^\d+$/.test(e)?`${e}px`:e:`${o[e]}px`}function c(o){let{marker:c,props:l}=e(`AppAvatarGroup`,o),{children:u,size:d,spacing:f=`normal`,overflow:p,className:m=``,...h}=l;n(`AppAvatarGroup`,h),t(`AppAvatarGroup`,`spacing`,f,a);let{style:g,..._}=h,v=[`avatar-group`,f===`normal`?``:`avatar-group-${f}`,m].filter(Boolean).join(` `),y=s(d),b=y?{"--avatar-size":y,...g}:g,x=typeof p==`string`?Number.parseInt(p,10):p,S=typeof p==`string`&&!/^\d+$/.test(p)?p:`+${x}`;return i(`div`,{className:v,style:b,...c,..._,children:[u,x>0&&r(`span`,{className:`avatar avatar-more`,role:`img`,"aria-label":`${x} more`,children:S})]})}export{c as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";var a=[`tight`,`normal`,`loose`],o={xs:20,sm:24,md:32,lg:48,xl:64,"2xl":96};function s(e){return e==null?null:typeof e==`number`?`${e}px`:o[e]==null?/^\d+$/.test(e)?`${e}px`:e:`${o[e]}px`}function c(o){let{marker:c,props:l}=e(`AppAvatarGroup`,o),{children:u,size:d,spacing:f=`normal`,overflow:p,className:m=``,...h}=l;n(`AppAvatarGroup`,h),t(`AppAvatarGroup`,`spacing`,f,a);let{style:g,..._}=h,v=[`avatar-group`,f===`normal`?``:`avatar-group-${f}`,m].filter(Boolean).join(` `),y=s(d),b=y?{"--avatar-size":y,...g}:g,x=typeof p==`string`?Number.parseInt(p,10):p,S=typeof p==`string`&&!/^\d+$/.test(p)?p:`+${x}`;return/* @__PURE__ */ i(`div`,{className:v,style:b,...c,..._,children:[u,x>0&&/* @__PURE__ */ r(`span`,{className:`avatar avatar-more`,role:`img`,"aria-label":`${x} more`,children:S})]})}export{c as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./withTooltip.js";import{Badge as i}from"react-bootstrap";import{jsx as a}from"react/jsx-runtime";var o=[`neutral`,`primary`,`success`,`warning`,`danger`,`info`];function s(s){let{marker:c,props:l}=e(`AppBadge`,s),{children:u,tone:d,dot:f=!1,tooltip:p,tooltipPlacement:m,className:h=``,...g}=l;return n(`AppBadge`,g),t(`AppBadge`,`tone`,d,o),r(a(i,{bg:!1,className:[d&&d!==`neutral`?`badge-${d}`:``,f?`badge-dot`:``,h].filter(Boolean).join(` `)||void 0,...c,...g,children:u}),p,m)}export{s as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./withTooltip.js";import{Badge as i}from"react-bootstrap";import{jsx as a}from"react/jsx-runtime";var o=[`neutral`,`primary`,`success`,`warning`,`danger`,`info`];function s(s){let{marker:c,props:l}=e(`AppBadge`,s),{children:u,tone:d,dot:f=!1,tooltip:p,tooltipPlacement:m,className:h=``,...g}=l;n(`AppBadge`,g),t(`AppBadge`,`tone`,d,o);let _=[d&&d!==`neutral`?`badge-${d}`:``,f?`badge-dot`:``,h].filter(Boolean).join(` `);return r(/* @__PURE__ */ a(i,{bg:!1,className:_||void 0,...c,...g,children:u}),p,m)}export{s as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import i from"./renderIconProp.js";import{useState as a}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";var c=[`info`,`success`,`warning`,`danger`,`neutral`];function l(l){let{marker:u,props:d}=e(`AppBanner`,l),{tone:f=`info`,icon:p,children:m,dismissible:h=!1,onDismiss:g,action:_,className:v=``,...y}=d;n(`AppBanner`,y),t(`AppBanner`,`tone`,f,c);let[b,x]=a(!0);if(!b)return null;let S=c.includes(f)?f:`info`,C=_!=null&&_!==!1,w=()=>{x(!1),g?.()};return s(`div`,{className:`wui-banner wui-banner-${S}${C?` wui-banner-has-action`:``}${v?` ${v}`:``}`,role:`status`,...u,...y,children:[p&&o(`span`,{className:`wui-banner-icon`,children:i(p,{size:18})}),o(`div`,{className:`wui-banner-body`,children:m}),C&&o(`div`,{className:`wui-banner-action`,children:_}),h&&o(`button`,{type:`button`,className:`wui-banner-dismiss`,"aria-label":`Dismiss`,onClick:w,children:o(r,{name:`x`,size:18})})]})}export{l as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppIcon.js";import n from"./renderIconProp.js";import r from"./warnInvalidValue.js";import i from"./warnUnknownProps.js";import{useState as a}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";var c=[`info`,`success`,`warning`,`danger`,`neutral`];function l(l){let{marker:u,props:d}=e(`AppBanner`,l),{tone:f=`info`,icon:p,children:m,dismissible:h=!1,onDismiss:g,action:_,className:v=``,...y}=d;i(`AppBanner`,y),r(`AppBanner`,`tone`,f,c);let[b,x]=a(!0);if(!b)return null;let S=c.includes(f)?f:`info`,C=_!=null&&_!==!1,w=()=>{x(!1),g?.()};return/* @__PURE__ */ s(`div`,{className:`wui-banner wui-banner-${S}${C?` wui-banner-has-action`:``}${v?` ${v}`:``}`,role:`status`,...u,...y,children:[p&&/* @__PURE__ */ o(`span`,{className:`wui-banner-icon`,children:n(p,{size:18})}),/* @__PURE__ */ o(`div`,{className:`wui-banner-body`,children:m}),C&&/* @__PURE__ */ o(`div`,{className:`wui-banner-action`,children:_}),h&&/* @__PURE__ */ o(`button`,{type:`button`,className:`wui-banner-dismiss`,"aria-label":`Dismiss`,onClick:w,children:/* @__PURE__ */ o(t,{name:`x`,size:18})})]})}export{l as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import n from"./renderIconProp.js";import{createContext as r,useContext as i}from"react";import{Breadcrumb as a}from"react-bootstrap";import{jsx as o,jsxs as s}from"react/jsx-runtime";var c=r(!1);function l(r){let{marker:l,props:u}=e(`AppBreadcrumbs`,r),{items:d=[],linkComponent:f,className:p=``,...m}=u;t(`AppBreadcrumbs`,m);let h=i(c);return o(a,{className:p||void 0,...l,...m,children:d.map((e,t)=>{let r=!h&&t===d.length-1,i=e.icon?n(e.icon,{size:14}):null,o={};return r||(o=e.to&&f?{linkAs:f,linkProps:{to:e.to}}:e.to||e.href?{href:e.to||e.href}:{linkAs:`span`}),s(a.Item,{active:r,...o,children:[i,e.label]},e.key??`${e.label}-${t}`)})})}export{c as BreadcrumbTrailContext,l as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./renderIconProp.js";import n from"./warnUnknownProps.js";import{createContext as r,useContext as i}from"react";import{Breadcrumb as a}from"react-bootstrap";import{jsx as o,jsxs as s}from"react/jsx-runtime";var c=r(!1);function l(r){let{marker:l,props:u}=e(`AppBreadcrumbs`,r),{items:d=[],linkComponent:f,className:p=``,...m}=u;n(`AppBreadcrumbs`,m);let h=i(c);return/* @__PURE__ */ o(a,{className:p||void 0,...l,...m,children:d.map((e,n)=>{let r=!h&&n===d.length-1,i=e.icon?t(e.icon,{size:14}):null,o={};return r||(o=e.to&&f?{linkAs:f,linkProps:{to:e.to}}:e.to||e.href?{href:e.to||e.href}:{linkAs:`span`}),/* @__PURE__ */ s(a.Item,{active:r,...o,children:[i,e.label]},e.key??`${e.label}-${n}`)})})}export{c as BreadcrumbTrailContext,l as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import{shortcutAria as r,shortcutChip as i}from"../lib/shortcutChip.js";import a from"./withTooltip.js";import o from"./AppIcon.js";import{Button as s}from"react-bootstrap";import{jsx as c,jsxs as l}from"react/jsx-runtime";var u={primary:`primary`,secondary:`secondary`,outline:`outline-primary`,ghost:`ghost`,text:`text`,danger:`danger`,success:`success`,"secondary-danger":`secondary-danger`,"outline-danger":`outline-danger`,light:`light`,warning:`warning`,neutral:`neutral`,"outline-light":`outline-light`,"outline-secondary":`outline-secondary`};function d(e){return`btn-${u[e]??`primary`}`}var f={sm:14,md:16,lg:20},p=[`sheen`,`fill`,`expand`,`glow`,`roll`,`none`],m=[`rounded`,`pill`,`sharp`],h=[`button`,`submit`,`reset`],g=new Set([!0,!1,...Array.from({length:100},(e,t)=>t+1)]),_=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],v=e=>e===`pill`||e===`sharp`?`wui-btn-shape-${e}`:``;function y(e){return l(`span`,{className:`wui-btn-roll`,children:[c(`span`,{className:`wui-btn-roll__a`,children:e}),c(`span`,{className:`wui-btn-roll__b`,"aria-hidden":`true`,children:e})]})}function b(e,t,n,r){if(!e)return null;let i=n=>typeof e==`string`?c(o,{name:e,size:f[t]??f.md,variant:r,className:n}):c(`span`,{className:[`d-inline-flex`,n].filter(Boolean).join(` `),children:e});return l(`span`,{className:n?`wui-btn-roll-ico wui-btn-pin-icon`:`wui-btn-roll-ico ms-2`,"aria-hidden":`true`,children:[i(),i(`wui-btn-roll-ico__next`)]})}function x(e,t,n,r){if(!e)return null;let i=t===`left`?`me-2`:`ms-2`;return typeof e==`string`?c(o,{name:e,size:f[n]??f.md,variant:r,className:i}):c(`span`,{className:`d-inline-flex ${i}`,children:e})}function S(e,t,n){return e?c(`span`,{className:`wui-btn-pin-icon`,"aria-hidden":`true`,children:typeof e==`string`?c(o,{name:e,size:f[t]??f.md,variant:n}):e}):null}function C(o){let{marker:d,props:C}=e(`AppButton`,o),{children:w,variant:T=`primary`,size:E=`md`,type:D=`button`,loading:O=!1,disabled:k=!1,block:A=!1,leftIcon:j=null,rightIcon:M=null,href:N,static:P=!1,tooltip:F,tooltipPlacement:I,shortcut:L,animation:R,pinRightIcon:z=!1,shape:B=`rounded`,iconVariant:V,className:H=``,onClick:U,vibrate:W,...G}=C;n(`AppButton`,G),t(`AppButton`,`vibrate`,W,g);let K=W===!0?10:Number.isInteger(W)&&W>=1&&W<=100?W:0;R!==void 0&&t(`AppButton`,`animation`,R,p);let q=R===`roll`&&!P,J=z&&M!=null&&M!==``&&!P&&!O;if(t(`AppButton`,`variant`,T,Object.keys(u)),t(`AppButton`,`size`,E,Object.keys(f)),t(`AppButton`,`shape`,B,m),t(`AppButton`,`type`,D,h),V!==void 0&&t(`AppButton`,`iconVariant`,V,_),P)return a(l(`span`,{className:[`btn`,`btn-${u[T]??`primary`}`,E===`sm`?`btn-sm`:E===`lg`?`btn-lg`:``,A?`w-100`:``,v(B),`btn-static`,H].filter(Boolean).join(` `),...d,...G,children:[x(j,`left`,E,V),w,x(M,`right`,E,V)]}),F,I);let Y=[A?`w-100`:``,O?`is-loading`:``,R&&p.includes(R)?`btn-anim-${R}`:``,J?`wui-btn-pin-end`:``,v(B),H].filter(Boolean).join(` `),X=(G.as===void 0||G.as===`button`)&&N===void 0&&G.to===void 0,Z=X?{}:{role:void 0,tabIndex:k||O?-1:void 0},Q=F!=null&&F!==``,$=K?e=>{!k&&!O&&navigator.vibrate?.(K),U?.(e)}:U;return a(l(s,{type:X?D:void 0,href:N,variant:u[T]??`primary`,size:E===`md`?void 0:E,disabled:k||O,"aria-busy":O||void 0,"aria-keyshortcuts":r(L),"data-wui-vibrate":K||void 0,className:Y||void 0,onClick:$,...Z,...d,...G,children:[O&&c(`span`,{className:`spinner-border spinner-border-sm me-2`,"aria-hidden":`true`}),!O&&x(j,`left`,E,V),q?y(w):w,!O&&(q?b(M,E,J,V):J?S(M,E,V):x(M,`right`,E,V)),!Q&&i(L)]}),F,I,L)}export{d as buttonVariantClass,C as default};
1
+ import{shortcutAria as e,shortcutChip as t}from"../lib/shortcutChip.js";import{splitMarkerProps as n}from"../lib/wuiMarker.js";import r from"./AppIcon.js";import i from"./warnInvalidValue.js";import a from"./warnUnknownProps.js";import o from"./withTooltip.js";import{Button as s}from"react-bootstrap";import{jsx as c,jsxs as l}from"react/jsx-runtime";var u={primary:`primary`,secondary:`secondary`,outline:`outline-primary`,ghost:`ghost`,text:`text`,danger:`danger`,success:`success`,"secondary-danger":`secondary-danger`,"outline-danger":`outline-danger`,light:`light`,warning:`warning`,neutral:`neutral`,"outline-light":`outline-light`,"outline-secondary":`outline-secondary`};function d(e){return`btn-${u[e]??`primary`}`}var f={sm:14,md:16,lg:20},p=[`sheen`,`fill`,`expand`,`glow`,`roll`,`none`],m=[`rounded`,`pill`,`sharp`],h=[`button`,`submit`,`reset`],g=/* @__PURE__ */ new Set([!0,!1,...Array.from({length:100},(e,t)=>t+1)]),_=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],v=e=>e===`pill`||e===`sharp`?`wui-btn-shape-${e}`:``;function y(e){return/* @__PURE__ */ l(`span`,{className:`wui-btn-roll`,children:[/* @__PURE__ */ c(`span`,{className:`wui-btn-roll__a`,children:e}),/* @__PURE__ */ c(`span`,{className:`wui-btn-roll__b`,"aria-hidden":`true`,children:e})]})}function b(e,t,n,i){if(!e)return null;let a=n=>typeof e==`string`?/* @__PURE__ */ c(r,{name:e,size:f[t]??f.md,variant:i,className:n}):/* @__PURE__ */ c(`span`,{className:[`d-inline-flex`,n].filter(Boolean).join(` `),children:e});return/* @__PURE__ */ l(`span`,{className:n?`wui-btn-roll-ico wui-btn-pin-icon`:`wui-btn-roll-ico ms-2`,"aria-hidden":`true`,children:[a(),a(`wui-btn-roll-ico__next`)]})}function x(e,t,n,i){if(!e)return null;let a=t===`left`?`me-2`:`ms-2`;return typeof e==`string`?/* @__PURE__ */ c(r,{name:e,size:f[n]??f.md,variant:i,className:a}):/* @__PURE__ */ c(`span`,{className:`d-inline-flex ${a}`,children:e})}function S(e,t,n){return e?/* @__PURE__ */ c(`span`,{className:`wui-btn-pin-icon`,"aria-hidden":`true`,children:typeof e==`string`?/* @__PURE__ */ c(r,{name:e,size:f[t]??f.md,variant:n}):e}):null}function C(r){let{marker:d,props:C}=n(`AppButton`,r),{children:w,variant:T=`primary`,size:E=`md`,type:D=`button`,loading:O=!1,disabled:k=!1,block:A=!1,leftIcon:j=null,rightIcon:M=null,href:N,static:P=!1,tooltip:F,tooltipPlacement:I,shortcut:L,animation:R,pinRightIcon:z=!1,shape:B=`rounded`,iconVariant:V,className:H=``,onClick:U,vibrate:W,...G}=C;a(`AppButton`,G),i(`AppButton`,`vibrate`,W,g);let K=W===!0?10:Number.isInteger(W)&&W>=1&&W<=100?W:0;R!==void 0&&i(`AppButton`,`animation`,R,p);let q=R===`roll`&&!P,J=z&&M!=null&&M!==``&&!P&&!O;if(i(`AppButton`,`variant`,T,Object.keys(u)),i(`AppButton`,`size`,E,Object.keys(f)),i(`AppButton`,`shape`,B,m),i(`AppButton`,`type`,D,h),V!==void 0&&i(`AppButton`,`iconVariant`,V,_),P){let e=[`btn`,`btn-${u[T]??`primary`}`,E===`sm`?`btn-sm`:E===`lg`?`btn-lg`:``,A?`w-100`:``,v(B),`btn-static`,H].filter(Boolean).join(` `);return o(/* @__PURE__ */ l(`span`,{className:e,...d,...G,children:[x(j,`left`,E,V),w,x(M,`right`,E,V)]}),F,I)}let Y=[A?`w-100`:``,O?`is-loading`:``,R&&p.includes(R)?`btn-anim-${R}`:``,J?`wui-btn-pin-end`:``,v(B),H].filter(Boolean).join(` `),X=(G.as===void 0||G.as===`button`)&&N===void 0&&G.to===void 0,Z=X?{}:{role:void 0,tabIndex:k||O?-1:void 0},Q=F!=null&&F!==``,$=K?e=>{!k&&!O&&navigator.vibrate?.(K),U?.(e)}:U;return o(/* @__PURE__ */ l(s,{type:X?D:void 0,href:N,variant:u[T]??`primary`,size:E===`md`?void 0:E,disabled:k||O,"aria-busy":O||void 0,"aria-keyshortcuts":e(L),"data-wui-vibrate":K||void 0,className:Y||void 0,onClick:$,...Z,...d,...G,children:[O&&/* @__PURE__ */ c(`span`,{className:`spinner-border spinner-border-sm me-2`,"aria-hidden":`true`}),!O&&x(j,`left`,E,V),q?y(w):w,!O&&(q?b(M,E,J,V):J?S(M,E,V):x(M,`right`,E,V)),!Q&&t(L)]}),F,I,L)}export{d as buttonVariantClass,C as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import{jsx as r}from"react/jsx-runtime";var i={sm:`btn-group-sm`,md:``,lg:`btn-group-lg`};function a(a){let{marker:o,props:s}=e(`AppButtonGroup`,a),{label:c,children:l,size:u=`md`,vertical:d=!1,fullWidth:f=!1,className:p=``,...m}=s;return n(`AppButtonGroup`,m),t(`AppButtonGroup`,`size`,u,Object.keys(i)),r(`div`,{role:`group`,"aria-label":c,className:[d?`btn-group-vertical`:`btn-group`,`wui-btn-group`,i[u]??``,f?`wui-btn-group-full`:``,p].filter(Boolean).join(` `),...o,...m,children:l})}export{a as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import{jsx as r}from"react/jsx-runtime";var i={sm:`btn-group-sm`,md:``,lg:`btn-group-lg`};function a(a){let{marker:o,props:s}=e(`AppButtonGroup`,a),{label:c,children:l,size:u=`md`,vertical:d=!1,fullWidth:f=!1,className:p=``,...m}=s;n(`AppButtonGroup`,m),t(`AppButtonGroup`,`size`,u,Object.keys(i));let h=[d?`btn-group-vertical`:`btn-group`,`wui-btn-group`,i[u]??``,f?`wui-btn-group-full`:``,p].filter(Boolean).join(` `);return/* @__PURE__ */ r(`div`,{role:`group`,"aria-label":c,className:h,...o,...m,children:l})}export{a as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import{devWarn as t}from"../lib/devWarn.js";import n from"./warnInvalidValue.js";import r from"./warnUnknownProps.js";import{forwardRef as i,useCallback as a,useEffect as o,useLayoutEffect as s,useRef as c,useState as l}from"react";import{jsx as u}from"react/jsx-runtime";var d=`wui-calendar:event-click`,f=`wui-calendar:date-click`,p=`wui-calendar:range-change`,m=[`month`,`week`,`day`,`list`],h=`This calendar couldn't load. Try again in a moment.`,g=i(function(i,g){let{marker:_,props:v}=e(`AppCalendar`,i),{label:y,events:b,eventsUrl:x,view:S,date:C,emptyText:w,errorText:T,firstDay:E,onEventClick:D,onDateClick:O,onRangeChange:k,className:A=``,style:j,...M}=v;r(`AppCalendar`,M),n(`AppCalendar`,`view`,S,m);let N=c(null),P=c(``),F=c({onEventClick:D,onDateClick:O,onRangeChange:k}),[I,L]=l(!1),R=a(e=>{N.current=e,typeof g==`function`?g(e):g&&(g.current=e)},[g]);return o(()=>{F.current={onEventClick:D,onDateClick:O,onRangeChange:k}}),s(()=>{let e=N.current;if(!e)return;let t=b==null?``:JSON.stringify(b);t!==P.current&&(P.current=t,e.events=b??null)}),o(()=>{let e=N.current,t=[[d,e=>{F.current.onEventClick?.(e.detail)===!1&&e.preventDefault()}],[f,e=>F.current.onDateClick?.(e.detail)],[p,e=>F.current.onRangeChange?.(e.detail)]];for(let[n,r]of t)e.addEventListener(n,r);return()=>{for(let[n,r]of t)e.removeEventListener(n,r)}},[]),o(()=>{let e=!0;return import(`@webority/ui-elements/calendar`).catch(n=>{t(`[AppCalendar] the calendar failed to load:`,n?.message),e&&L(!0)}),()=>{e=!1}},[]),I?u(`div`,{..._,className:A||void 0,style:j,role:`status`,children:u(`p`,{className:`wui-calendar-status-text`,children:T||h})}):u(`wui-calendar`,{ref:R,label:y||void 0,"events-url":x||void 0,view:S||void 0,date:C||void 0,"empty-text":w||void 0,"error-text":T||void 0,"first-day":E==null?void 0:String(E),className:A||void 0,style:j,..._,...M})});export{g as default};
1
+ import{devWarn as e}from"../lib/devWarn.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./warnInvalidValue.js";import r from"./warnUnknownProps.js";import{forwardRef as i,useCallback as a,useEffect as o,useLayoutEffect as s,useRef as c,useState as l}from"react";import{jsx as u}from"react/jsx-runtime";var d=`wui-calendar:event-click`,f=`wui-calendar:date-click`,p=`wui-calendar:range-change`,m=[`month`,`week`,`day`,`list`],h=`This calendar couldn't load. Try again in a moment.`,g=i(function(i,g){let{marker:_,props:v}=t(`AppCalendar`,i),{label:y,events:b,eventsUrl:x,view:S,date:C,emptyText:w,errorText:T,firstDay:E,onEventClick:D,onDateClick:O,onRangeChange:k,className:A=``,style:j,...M}=v;r(`AppCalendar`,M),n(`AppCalendar`,`view`,S,m);let N=c(null),P=c(``),F=c({onEventClick:D,onDateClick:O,onRangeChange:k}),[I,L]=l(!1),R=a(e=>{N.current=e,typeof g==`function`?g(e):g&&(g.current=e)},[g]);return o(()=>{F.current={onEventClick:D,onDateClick:O,onRangeChange:k}}),s(()=>{let e=N.current;if(!e)return;let t=b==null?``:JSON.stringify(b);t!==P.current&&(P.current=t,e.events=b??null)}),o(()=>{let e=N.current,t=[[d,e=>{F.current.onEventClick?.(e.detail)===!1&&e.preventDefault()}],[f,e=>F.current.onDateClick?.(e.detail)],[p,e=>F.current.onRangeChange?.(e.detail)]];for(let[n,r]of t)e.addEventListener(n,r);return()=>{for(let[n,r]of t)e.removeEventListener(n,r)}},[]),o(()=>{let t=!0;return import(`@webority/ui-elements/calendar`).catch(n=>{e(`[AppCalendar] the calendar failed to load:`,n?.message),t&&L(!0)}),()=>{t=!1}},[]),I?/* @__PURE__ */ u(`div`,{..._,className:A||void 0,style:j,role:`status`,children:/* @__PURE__ */ u(`p`,{className:`wui-calendar-status-text`,children:T||h})}):/* @__PURE__ */ u(`wui-calendar`,{ref:R,label:y||void 0,"events-url":x||void 0,view:S||void 0,date:C||void 0,"empty-text":w||void 0,"error-text":T||void 0,"first-day":E==null?void 0:String(E),className:A||void 0,style:j,..._,...M})});export{g as default};