@wix/patterns 1.458.0 → 1.460.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 (758) hide show
  1. package/dist/cjs/components/CardContainer/CardContainer.st.css.js +2 -2
  2. package/dist/cjs/components/CardContainer/CardContainer.st.css.js.map +1 -1
  3. package/dist/cjs/components/CmsFieldManagement/CmsFieldForm.st.css.js +3 -3
  4. package/dist/cjs/components/CmsFieldManagement/CmsFieldForm.st.css.js.map +1 -1
  5. package/dist/cjs/components/CmsFieldManagement/CmsFieldModal.st.css.js +3 -3
  6. package/dist/cjs/components/CmsFieldManagement/CmsFieldModal.st.css.js.map +1 -1
  7. package/dist/cjs/components/CmsFieldManagement/Sections/ValidationAndDefaultsSection.st.css.js +3 -3
  8. package/dist/cjs/components/CmsFieldManagement/Sections/ValidationAndDefaultsSection.st.css.js.map +1 -1
  9. package/dist/cjs/components/Collapse/Collapse.st.css.js +3 -3
  10. package/dist/cjs/components/Collapse/Collapse.st.css.js.map +1 -1
  11. package/dist/cjs/components/CollectionPageNew/CollectionPage.st.css.js +2 -2
  12. package/dist/cjs/components/CollectionPageNew/CollectionPage.st.css.js.map +1 -1
  13. package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js +3 -3
  14. package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js.map +1 -1
  15. package/dist/cjs/components/CollectionTable/CollectionTable.st.css.js +2 -2
  16. package/dist/cjs/components/CollectionTable/CollectionTable.st.css.js.map +1 -1
  17. package/dist/cjs/components/CollectionTable/CollectionTableWSRTable.st.css.js +2 -2
  18. package/dist/cjs/components/CollectionTable/CollectionTableWSRTable.st.css.js.map +1 -1
  19. package/dist/cjs/components/CollectionToolbar/CollectionToolbar.st.css.js +5 -5
  20. package/dist/cjs/components/CollectionToolbar/CollectionToolbar.st.css.js.map +1 -1
  21. package/dist/cjs/components/CollectionToolbar/SearchOrCustomFilter.st.css.js +4 -4
  22. package/dist/cjs/components/CollectionToolbar/SearchOrCustomFilter.st.css.js.map +1 -1
  23. package/dist/cjs/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js +2 -2
  24. package/dist/cjs/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js.map +1 -1
  25. package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.st.css.js +2 -2
  26. package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.st.css.js.map +1 -1
  27. package/dist/cjs/components/CustomFieldModal/CustomFieldForm.js +32 -29
  28. package/dist/cjs/components/CustomFieldModal/CustomFieldForm.js.map +1 -1
  29. package/dist/cjs/components/CustomFieldModal/CustomFieldTypeDropdown.js +6 -5
  30. package/dist/cjs/components/CustomFieldModal/CustomFieldTypeDropdown.js.map +1 -1
  31. package/dist/cjs/components/DragHandle/DragHandle.st.css.js +2 -2
  32. package/dist/cjs/components/DragHandle/DragHandle.st.css.js.map +1 -1
  33. package/dist/cjs/components/EditableTable/EditableCell.st.css.js +3 -3
  34. package/dist/cjs/components/EditableTable/EditableCell.st.css.js.map +1 -1
  35. package/dist/cjs/components/EditableTable/HeaderActionsPopover.st.css.js +2 -2
  36. package/dist/cjs/components/EditableTable/HeaderActionsPopover.st.css.js.map +1 -1
  37. package/dist/cjs/components/EditableTable/cellTypes/CellViewLayout.st.css.js +2 -2
  38. package/dist/cjs/components/EditableTable/cellTypes/CellViewLayout.st.css.js.map +1 -1
  39. package/dist/cjs/components/EditableTable/cellTypes/address/Edit.st.css.js +3 -3
  40. package/dist/cjs/components/EditableTable/cellTypes/address/Edit.st.css.js.map +1 -1
  41. package/dist/cjs/components/EditableTable/cellTypes/array/Edit.st.css.js +3 -3
  42. package/dist/cjs/components/EditableTable/cellTypes/array/Edit.st.css.js.map +1 -1
  43. package/dist/cjs/components/EditableTable/cellTypes/boolean/Edit.st.css.js +3 -3
  44. package/dist/cjs/components/EditableTable/cellTypes/boolean/Edit.st.css.js.map +1 -1
  45. package/dist/cjs/components/EditableTable/cellTypes/boolean/View.st.css.js +3 -3
  46. package/dist/cjs/components/EditableTable/cellTypes/boolean/View.st.css.js.map +1 -1
  47. package/dist/cjs/components/EditableTable/cellTypes/color/Edit.st.css.js +2 -2
  48. package/dist/cjs/components/EditableTable/cellTypes/color/Edit.st.css.js.map +1 -1
  49. package/dist/cjs/components/EditableTable/cellTypes/date/Edit.st.css.js +3 -3
  50. package/dist/cjs/components/EditableTable/cellTypes/date/Edit.st.css.js.map +1 -1
  51. package/dist/cjs/components/EditableTable/cellTypes/date/View.st.css.js +2 -2
  52. package/dist/cjs/components/EditableTable/cellTypes/date/View.st.css.js.map +1 -1
  53. package/dist/cjs/components/EditableTable/cellTypes/datetime/Edit.st.css.js +8 -8
  54. package/dist/cjs/components/EditableTable/cellTypes/datetime/Edit.st.css.js.map +1 -1
  55. package/dist/cjs/components/EditableTable/cellTypes/datetime/View.st.css.js +7 -7
  56. package/dist/cjs/components/EditableTable/cellTypes/datetime/View.st.css.js.map +1 -1
  57. package/dist/cjs/components/EditableTable/cellTypes/email/Edit.st.css.js +3 -3
  58. package/dist/cjs/components/EditableTable/cellTypes/email/Edit.st.css.js.map +1 -1
  59. package/dist/cjs/components/EditableTable/cellTypes/email/View.st.css.js +2 -2
  60. package/dist/cjs/components/EditableTable/cellTypes/email/View.st.css.js.map +1 -1
  61. package/dist/cjs/components/EditableTable/cellTypes/number/Edit.st.css.js +3 -3
  62. package/dist/cjs/components/EditableTable/cellTypes/number/Edit.st.css.js.map +1 -1
  63. package/dist/cjs/components/EditableTable/cellTypes/number/View.st.css.js +3 -3
  64. package/dist/cjs/components/EditableTable/cellTypes/number/View.st.css.js.map +1 -1
  65. package/dist/cjs/components/EditableTable/cellTypes/object/Edit.st.css.js +3 -3
  66. package/dist/cjs/components/EditableTable/cellTypes/object/Edit.st.css.js.map +1 -1
  67. package/dist/cjs/components/EditableTable/cellTypes/object/View.st.css.js +2 -2
  68. package/dist/cjs/components/EditableTable/cellTypes/object/View.st.css.js.map +1 -1
  69. package/dist/cjs/components/EditableTable/cellTypes/select/Edit.st.css.js +3 -3
  70. package/dist/cjs/components/EditableTable/cellTypes/select/Edit.st.css.js.map +1 -1
  71. package/dist/cjs/components/EditableTable/cellTypes/text/Edit.st.css.js +4 -4
  72. package/dist/cjs/components/EditableTable/cellTypes/text/Edit.st.css.js.map +1 -1
  73. package/dist/cjs/components/EditableTable/cellTypes/text/View.st.css.js +2 -2
  74. package/dist/cjs/components/EditableTable/cellTypes/text/View.st.css.js.map +1 -1
  75. package/dist/cjs/components/EditableTable/cellTypes/time/Edit.st.css.js +4 -4
  76. package/dist/cjs/components/EditableTable/cellTypes/time/Edit.st.css.js.map +1 -1
  77. package/dist/cjs/components/EditableTable/cellTypes/url/Edit.st.css.js +3 -3
  78. package/dist/cjs/components/EditableTable/cellTypes/url/Edit.st.css.js.map +1 -1
  79. package/dist/cjs/components/EditableTable/cellTypes/url/View.st.css.js +5 -5
  80. package/dist/cjs/components/EditableTable/cellTypes/url/View.st.css.js.map +1 -1
  81. package/dist/cjs/components/EmptyState/EmptyStateBase.st.css.js +2 -2
  82. package/dist/cjs/components/EmptyState/EmptyStateBase.st.css.js.map +1 -1
  83. package/dist/cjs/components/EntityPage/EntityPagePlain.st.css.js +2 -2
  84. package/dist/cjs/components/EntityPage/EntityPagePlain.st.css.js.map +1 -1
  85. package/dist/cjs/components/EntityPageFields/EntityPageFields.js +11 -10
  86. package/dist/cjs/components/EntityPageFields/EntityPageFields.js.map +1 -1
  87. package/dist/cjs/components/Fade/Fade.st.css.js +2 -2
  88. package/dist/cjs/components/Fade/Fade.st.css.js.map +1 -1
  89. package/dist/cjs/components/Heading/Heading.st.css.js +2 -2
  90. package/dist/cjs/components/Heading/Heading.st.css.js.map +1 -1
  91. package/dist/cjs/components/ImportButton/ImportStepUpload.st.css.js +3 -3
  92. package/dist/cjs/components/ImportButton/ImportStepUpload.st.css.js.map +1 -1
  93. package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js +2 -2
  94. package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js.map +1 -1
  95. package/dist/cjs/components/LoadingRow/LoadingRow.st.css.js +3 -3
  96. package/dist/cjs/components/LoadingRow/LoadingRow.st.css.js.map +1 -1
  97. package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
  98. package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js.map +1 -1
  99. package/dist/cjs/components/MaxLines/MaxLines.st.css.js +2 -2
  100. package/dist/cjs/components/MaxLines/MaxLines.st.css.js.map +1 -1
  101. package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +5 -5
  102. package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js.map +1 -1
  103. package/dist/cjs/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js +2 -2
  104. package/dist/cjs/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js.map +1 -1
  105. package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js +5 -5
  106. package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js.map +1 -1
  107. package/dist/cjs/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js +2 -2
  108. package/dist/cjs/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js.map +1 -1
  109. package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js +2 -2
  110. package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js.map +1 -1
  111. package/dist/cjs/components/PickerContent/PickerContent.st.css.js +2 -2
  112. package/dist/cjs/components/PickerContent/PickerContent.st.css.js.map +1 -1
  113. package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js +4 -4
  114. package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js.map +1 -1
  115. package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
  116. package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js.map +1 -1
  117. package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
  118. package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js.map +1 -1
  119. package/dist/cjs/components/SetupWidget/SetupWidget.st.css.js +10 -10
  120. package/dist/cjs/components/SetupWidget/SetupWidget.st.css.js.map +1 -1
  121. package/dist/cjs/components/SkeletonCard/SkeletonCard.st.css.js +3 -3
  122. package/dist/cjs/components/SkeletonCard/SkeletonCard.st.css.js.map +1 -1
  123. package/dist/cjs/components/SlidingModal/SlidingModal.st.css.js +2 -2
  124. package/dist/cjs/components/SlidingModal/SlidingModal.st.css.js.map +1 -1
  125. package/dist/cjs/components/Table/AddFieldColumnHeader.st.css.js +4 -4
  126. package/dist/cjs/components/Table/AddFieldColumnHeader.st.css.js.map +1 -1
  127. package/dist/cjs/components/TabsFilter/TabsFilter.st.css.js +3 -3
  128. package/dist/cjs/components/TabsFilter/TabsFilter.st.css.js.map +1 -1
  129. package/dist/cjs/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
  130. package/dist/cjs/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js.map +1 -1
  131. package/dist/cjs/components/ToolbarItem/ToolbarItem.st.css.js +2 -2
  132. package/dist/cjs/components/ToolbarItem/ToolbarItem.st.css.js.map +1 -1
  133. package/dist/cjs/components/ToolbarItemBox/ToolbarItemBox.st.css.js +2 -2
  134. package/dist/cjs/components/ToolbarItemBox/ToolbarItemBox.st.css.js.map +1 -1
  135. package/dist/cjs/components/common.st.css.js +4 -4
  136. package/dist/cjs/components/common.st.css.js.map +1 -1
  137. package/dist/cjs/dashboard/WixPatternsDashboardBaseProvider.js +1 -1
  138. package/dist/cjs/dashboard/WixPatternsDashboardBaseProvider.js.map +1 -1
  139. package/dist/cjs/schema/EntityPageFieldsCard.js +3 -2
  140. package/dist/cjs/schema/EntityPageFieldsCard.js.map +1 -1
  141. package/dist/cjs/schema/entityPageFieldManagement.js +3 -1
  142. package/dist/cjs/schema/entityPageFieldManagement.js.map +1 -1
  143. package/dist/cjs/state/CollectionFieldsSourceState.js +3 -1
  144. package/dist/cjs/state/CollectionFieldsSourceState.js.map +1 -1
  145. package/dist/cjs/state/CollectionPage/CollectionPageHeader.st.css.js +2 -2
  146. package/dist/cjs/state/CollectionPage/CollectionPageHeader.st.css.js.map +1 -1
  147. package/dist/cjs/state/CustomFields/CustomFieldsPanelState.js +3 -0
  148. package/dist/cjs/state/CustomFields/CustomFieldsPanelState.js.map +1 -1
  149. package/dist/cjs/state/EntityPage/EntityPageState.js +25 -1
  150. package/dist/cjs/state/EntityPage/EntityPageState.js.map +1 -1
  151. package/dist/cjs/state/EntityPageFieldsCardState.js +9 -1
  152. package/dist/cjs/state/EntityPageFieldsCardState.js.map +1 -1
  153. package/dist/cjs/state/FormPage/FormPageHeader.st.css.js +2 -2
  154. package/dist/cjs/state/FormPage/FormPageHeader.st.css.js.map +1 -1
  155. package/dist/cjs/state/ManageFieldsSource.js.map +1 -1
  156. package/dist/cjs/state/ToolbarCollectionState.js +6 -2
  157. package/dist/cjs/state/ToolbarCollectionState.js.map +1 -1
  158. package/dist/cjs/styles.global.css +2 -2
  159. package/dist/cjs/version.js +1 -1
  160. package/dist/cjs/version.js.map +1 -1
  161. package/dist/docs/ActionCellProps.md +6 -21
  162. package/dist/docs/AutoCompleteFilter.md +6 -128
  163. package/dist/docs/BulkActionModalRenderProp.md +6 -9
  164. package/dist/docs/CollectionEmptyState/2-ctas.tsx +67 -0
  165. package/dist/docs/CollectionEmptyState/demo.tsx +61 -0
  166. package/dist/docs/CollectionEmptyState/passive-empty-state.tsx +59 -0
  167. package/dist/docs/CollectionEmptyState.md +9 -207
  168. package/dist/docs/CollectionNoResultsState.md +6 -11
  169. package/dist/docs/CollectionOptimisticActions/create-many.tsx +110 -0
  170. package/dist/docs/CollectionOptimisticActions/create-one.tsx +104 -0
  171. package/dist/docs/CollectionOptimisticActions/delete-all.tsx +132 -0
  172. package/dist/docs/CollectionOptimisticActions/delete-many.tsx +104 -0
  173. package/dist/docs/CollectionOptimisticActions/delete-one.tsx +94 -0
  174. package/dist/docs/CollectionOptimisticActions/update-all.tsx +142 -0
  175. package/dist/docs/CollectionOptimisticActions/update-many.tsx +119 -0
  176. package/dist/docs/CollectionOptimisticActions/update-one.tsx +108 -0
  177. package/dist/docs/CollectionOptimisticActions.md +14 -939
  178. package/dist/docs/CollectionPage.md +6 -19
  179. package/dist/docs/CollectionPremiumEmptyState.md +6 -14
  180. package/dist/docs/CollectionSearch/default.tsx +57 -0
  181. package/dist/docs/CollectionSearch/max-length.tsx +59 -0
  182. package/dist/docs/CollectionSearch/placeholder.tsx +59 -0
  183. package/dist/docs/CollectionSearch/search-highlighting.tsx +60 -0
  184. package/dist/docs/CollectionSearch.md +10 -247
  185. package/dist/docs/ComputedQuery.md +6 -15
  186. package/dist/docs/CustomColumns/add-a-tooltip.tsx +85 -0
  187. package/dist/docs/CustomColumns/basic.tsx +78 -0
  188. package/dist/docs/CustomColumns/exclude-columns.tsx +79 -0
  189. package/dist/docs/CustomColumns/freeze-column-reorder.tsx +111 -0
  190. package/dist/docs/CustomColumns/get-visible-columns.tsx +92 -0
  191. package/dist/docs/CustomColumns/hide-specific-columns-by-default.tsx +79 -0
  192. package/dist/docs/CustomColumns/load-only-selected-columns.tsx +85 -0
  193. package/dist/docs/CustomColumns/lock-columns.tsx +80 -0
  194. package/dist/docs/CustomColumns/reorder-columns.tsx +84 -0
  195. package/dist/docs/CustomColumns.md +9 -791
  196. package/dist/docs/CustomFieldType/add-field-modal.tsx +206 -0
  197. package/dist/docs/CustomFieldType/editable-cell.tsx +206 -0
  198. package/dist/docs/CustomFieldType/entity-page-form.tsx +133 -0
  199. package/dist/docs/CustomFieldType/table-cell-and-filter.tsx +165 -0
  200. package/dist/docs/CustomFieldType.md +4 -718
  201. package/dist/docs/CustomFieldsWidget/basic.tsx +53 -0
  202. package/dist/docs/CustomFieldsWidget/controllable-state.tsx +78 -0
  203. package/dist/docs/CustomFieldsWidget/empty-state.tsx +20 -0
  204. package/dist/docs/CustomFieldsWidget/inline-theme.tsx +54 -0
  205. package/dist/docs/CustomFieldsWidget/responsive.tsx +44 -0
  206. package/dist/docs/CustomFieldsWidget/with-tpa-fields.tsx +57 -0
  207. package/dist/docs/CustomFieldsWidget/without-entity-page.tsx +42 -0
  208. package/dist/docs/CustomFieldsWidget.md +7 -362
  209. package/dist/docs/DateRangeFilter.Components.md +6 -71
  210. package/dist/docs/EntityPage/2-columns.tsx +72 -0
  211. package/dist/docs/EntityPage/basic.tsx +72 -0
  212. package/dist/docs/EntityPage/delete-action.tsx +77 -0
  213. package/dist/docs/EntityPage/delete-error-handling.tsx +65 -0
  214. package/dist/docs/EntityPage/demo.tsx +212 -0
  215. package/dist/docs/EntityPage/error-on-fetch.tsx +68 -0
  216. package/dist/docs/EntityPage/error-on-save.tsx +59 -0
  217. package/dist/docs/EntityPage/input-initialization-with-controller.tsx +96 -0
  218. package/dist/docs/EntityPage/input-initialization-with-usecontroller.tsx +99 -0
  219. package/dist/docs/EntityPage/loading.tsx +107 -0
  220. package/dist/docs/EntityPage/overriding-save-button-text.tsx +75 -0
  221. package/dist/docs/EntityPage.md +17 -1045
  222. package/dist/docs/EntityPageState.md +1 -0
  223. package/dist/docs/ExportTo/cta-is-out-of-the-table.tsx +157 -0
  224. package/dist/docs/ExportTo/export-all-table.tsx +144 -0
  225. package/dist/docs/ExportTo/export-filtered-table.tsx +148 -0
  226. package/dist/docs/ExportTo/export-table-with-selection-bulk-selection.tsx +203 -0
  227. package/dist/docs/ExportTo.md +10 -674
  228. package/dist/docs/Filter Overview/interactive-example.tsx +211 -0
  229. package/dist/docs/Filter Overview.md +1 -213
  230. package/dist/docs/FilterProps.md +6 -13
  231. package/dist/docs/Grid/card-with-a-cta-that-opens-a-modal.tsx +103 -0
  232. package/dist/docs/Grid/card-with-a-cta-that-opens-a-popup.tsx +91 -0
  233. package/dist/docs/Grid/demo.tsx +73 -0
  234. package/dist/docs/Grid/grid-sections.tsx +62 -0
  235. package/dist/docs/Grid/grid-with-a-reduced-width.tsx +72 -0
  236. package/dist/docs/Grid/use-the-preset-prop.tsx +55 -0
  237. package/dist/docs/Grid.md +12 -509
  238. package/dist/docs/GridFolders.md +6 -45
  239. package/dist/docs/GridFoldersState.md +6 -3
  240. package/dist/docs/GridState.md +6 -5
  241. package/dist/docs/ImportButton/backup-error-handling.tsx +80 -0
  242. package/dist/docs/ImportButton/cms-import.tsx +38 -0
  243. package/dist/docs/ImportButton/create-new-field.tsx +40 -0
  244. package/dist/docs/ImportButton/platformized-import-fields-inline.tsx +65 -0
  245. package/dist/docs/ImportButton/platformized-import-from-a-source.tsx +50 -0
  246. package/dist/docs/ImportButton/required-fields.tsx +65 -0
  247. package/dist/docs/ImportButton/update-or-skip-by-id.tsx +40 -0
  248. package/dist/docs/ImportButton.md +7 -392
  249. package/dist/docs/Indeterminate/all-indeterminate.tsx +127 -0
  250. package/dist/docs/Indeterminate/items-indeterminate-status.tsx +126 -0
  251. package/dist/docs/Indeterminate.md +2 -257
  252. package/dist/docs/Internal Scroll/full-width-section.tsx +96 -0
  253. package/dist/docs/Internal Scroll/narrow-side-section.tsx +82 -0
  254. package/dist/docs/Internal Scroll.md +2 -182
  255. package/dist/docs/More Actions/collection-page-2.tsx +98 -0
  256. package/dist/docs/More Actions/collection-page.tsx +97 -0
  257. package/dist/docs/More Actions/explore-related-apps.tsx +129 -0
  258. package/dist/docs/More Actions/featured-more-actions-custom-position.tsx +116 -0
  259. package/dist/docs/More Actions/featured-more-actions-opt-out.tsx +86 -0
  260. package/dist/docs/More Actions/featured-more-actions.tsx +82 -0
  261. package/dist/docs/More Actions/integrate-with-extension.tsx +100 -0
  262. package/dist/docs/More Actions/more-actions-in-the-toolbar.tsx +96 -0
  263. package/dist/docs/More Actions/more-actions-with-a-divider.tsx +115 -0
  264. package/dist/docs/More Actions.md +9 -937
  265. package/dist/docs/MoreActionsItem.md +6 -16
  266. package/dist/docs/MultiAutoInlineCheckboxFilter.md +6 -879
  267. package/dist/docs/MultiBulkActionToolbar/basic-secondary-action.tsx +177 -0
  268. package/dist/docs/MultiBulkActionToolbar/bulk-action.tsx +169 -0
  269. package/dist/docs/MultiBulkActionToolbar/extend-menu-items.tsx +174 -0
  270. package/dist/docs/MultiBulkActionToolbar/maximum-selection.tsx +168 -0
  271. package/dist/docs/MultiBulkActionToolbar/popover-menu.tsx +123 -0
  272. package/dist/docs/MultiBulkActionToolbar/primary-secondary-actions-with-a-divider.tsx +218 -0
  273. package/dist/docs/MultiBulkActionToolbar.md +12 -1048
  274. package/dist/docs/MultiInlineCheckboxFilter.md +6 -878
  275. package/dist/docs/MultiLevelSorting/basic-multi-level-sorting.tsx +93 -0
  276. package/dist/docs/MultiLevelSorting/multi-level-sorting-with-custom-sort-order.tsx +100 -0
  277. package/dist/docs/MultiLevelSorting/multi-level-sorting-with-defined-sort-directions.tsx +96 -0
  278. package/dist/docs/MultiLevelSorting.md +9 -301
  279. package/dist/docs/MultiSelectCheckboxFilter.md +6 -133
  280. package/dist/docs/MultiSelectCollectionFilter.md +6 -138
  281. package/dist/docs/NestedTable/drag-and-drop.tsx +107 -0
  282. package/dist/docs/NestedTable/filters.tsx +192 -0
  283. package/dist/docs/NestedTable/flat-mode-search.tsx +92 -0
  284. package/dist/docs/NestedTable/node-api-usage.tsx +188 -0
  285. package/dist/docs/NestedTable/single-entity.tsx +85 -0
  286. package/dist/docs/NestedTable/various-entities.tsx +138 -0
  287. package/dist/docs/NestedTable.md +6 -814
  288. package/dist/docs/NumberRangeFilter.md +6 -13
  289. package/dist/docs/OperatorFilterPicker.md +6 -13
  290. package/dist/docs/PatternsReactRoute.md +6 -7
  291. package/dist/docs/PatternsReactRouter.md +9 -0
  292. package/dist/docs/PickerModal/multi-select.tsx +97 -0
  293. package/dist/docs/PickerModal/pre-selected-item.tsx +120 -0
  294. package/dist/docs/PickerModal/search-override.tsx +99 -0
  295. package/dist/docs/PickerModal/single-selection.tsx +98 -0
  296. package/dist/docs/PickerModal/with-filter-dropdown.tsx +139 -0
  297. package/dist/docs/PickerModal.md +11 -605
  298. package/dist/docs/PickerStandalone/basic.tsx +49 -0
  299. package/dist/docs/PickerStandalone/createnew.tsx +65 -0
  300. package/dist/docs/PickerStandalone/custom-empty-state.tsx +33 -0
  301. package/dist/docs/PickerStandalone/custom-items.tsx +78 -0
  302. package/dist/docs/PickerStandalone.md +4 -233
  303. package/dist/docs/PrimaryActionButton.md +6 -71
  304. package/dist/docs/PrimaryActions.md +6 -14
  305. package/dist/docs/PrimaryPageButton.md +6 -69
  306. package/dist/docs/RadioGroupFilter.md +6 -19
  307. package/dist/docs/SecondaryActions.md +6 -14
  308. package/dist/docs/SettingsPage/2-columns.tsx +70 -0
  309. package/dist/docs/SettingsPage/basic.tsx +66 -0
  310. package/dist/docs/SettingsPage/error-on-fetch.tsx +65 -0
  311. package/dist/docs/SettingsPage/error-on-save.tsx +59 -0
  312. package/dist/docs/SettingsPage/input-initialization-with-controller.tsx +89 -0
  313. package/dist/docs/SettingsPage/input-initialization-with-usecontroller.tsx +92 -0
  314. package/dist/docs/SettingsPage/loading.tsx +99 -0
  315. package/dist/docs/SettingsPage.md +13 -574
  316. package/dist/docs/SingleSelectFilter/custom-render-items.tsx +57 -0
  317. package/dist/docs/SingleSelectFilter/empty-state.tsx +33 -0
  318. package/dist/docs/SingleSelectFilter/sections.tsx +69 -0
  319. package/dist/docs/SingleSelectFilter/server-data.tsx +53 -0
  320. package/dist/docs/SingleSelectFilter/static-data.tsx +25 -0
  321. package/dist/docs/SingleSelectFilter.md +11 -374
  322. package/dist/docs/Sortable Columns/basic-sortable-column.tsx +90 -0
  323. package/dist/docs/Sortable Columns/custom-sort-order.tsx +94 -0
  324. package/dist/docs/Sortable Columns.md +2 -188
  325. package/dist/docs/Suggestions/carousel-customization.tsx +27 -0
  326. package/dist/docs/Suggestions/carousel-vs-container-layout.tsx +40 -0
  327. package/dist/docs/Suggestions/custom-card-rendering.tsx +99 -0
  328. package/dist/docs/Suggestions/with-transform-function.tsx +56 -0
  329. package/dist/docs/Suggestions.md +4 -230
  330. package/dist/docs/SummaryBar/error.tsx +75 -0
  331. package/dist/docs/SummaryBar/loading-with-error.tsx +96 -0
  332. package/dist/docs/SummaryBar/loading-with-success.tsx +105 -0
  333. package/dist/docs/SummaryBar/loading.tsx +73 -0
  334. package/dist/docs/SummaryBar/success.tsx +73 -0
  335. package/dist/docs/SummaryBar.md +11 -437
  336. package/dist/docs/Table/basic-table.tsx +74 -0
  337. package/dist/docs/Table/cursor-pagination.tsx +61 -0
  338. package/dist/docs/Table/fetch-total-async.tsx +83 -0
  339. package/dist/docs/Table/filters.tsx +152 -0
  340. package/dist/docs/Table/header.tsx +85 -0
  341. package/dist/docs/Table/horizontal-scroll.tsx +90 -0
  342. package/dist/docs/Table/table-disabled-rows.tsx +99 -0
  343. package/dist/docs/Table/using-ambassador.tsx +72 -0
  344. package/dist/docs/Table/using-with-external-data-source.tsx +79 -0
  345. package/dist/docs/Table/virtual.tsx +77 -0
  346. package/dist/docs/Table Sections/demo.tsx +96 -0
  347. package/dist/docs/Table Sections/with-badge.tsx +107 -0
  348. package/dist/docs/Table Sections/with-collapse.tsx +104 -0
  349. package/dist/docs/Table Sections/with-summary.tsx +118 -0
  350. package/dist/docs/Table Sections.md +4 -433
  351. package/dist/docs/Table.md +16 -961
  352. package/dist/docs/TableColumn.md +6 -21
  353. package/dist/docs/TableDragAndDrop/save-order-mode.tsx +85 -0
  354. package/dist/docs/TableDragAndDrop/specific-filters.tsx +135 -0
  355. package/dist/docs/TableDragAndDrop/specific-tabs.tsx +117 -0
  356. package/dist/docs/TableDragAndDrop/table.tsx +83 -0
  357. package/dist/docs/TableDragAndDrop.md +4 -428
  358. package/dist/docs/TableFolders/demo.tsx +101 -0
  359. package/dist/docs/TableFolders/table-folders.tsx +101 -0
  360. package/dist/docs/TableFolders/with-tags.tsx +124 -0
  361. package/dist/docs/TableFolders.md +9 -391
  362. package/dist/docs/TableFoldersState.md +6 -5
  363. package/dist/docs/TableGridSwitch/basic-table-grid-switch.tsx +91 -0
  364. package/dist/docs/TableGridSwitch/custom-columns.tsx +94 -0
  365. package/dist/docs/TableGridSwitch.md +8 -255
  366. package/dist/docs/TableGridSwitchFolders/demo.tsx +103 -0
  367. package/dist/docs/TableGridSwitchFolders/tablegridswitchfolders.tsx +103 -0
  368. package/dist/docs/TableGridSwitchFolders/with-tags.tsx +124 -0
  369. package/dist/docs/TableGridSwitchFolders.md +3 -336
  370. package/dist/docs/TableGridSwitchState.md +6 -6
  371. package/dist/docs/TableState.md +6 -7
  372. package/dist/docs/TableTopNotification/base.tsx +92 -0
  373. package/dist/docs/TableTopNotification/nested-table.tsx +114 -0
  374. package/dist/docs/TableTopNotification.md +8 -235
  375. package/dist/docs/TabsFilter/basic-tabs.tsx +96 -0
  376. package/dist/docs/TabsFilter/disabled-tabs.tsx +100 -0
  377. package/dist/docs/TabsFilter/tabs-with-a-basic-counter.tsx +149 -0
  378. package/dist/docs/TabsFilter/tabs-with-a-counter-badge.tsx +153 -0
  379. package/dist/docs/TabsFilter.md +10 -515
  380. package/dist/docs/Tags/basic.tsx +90 -0
  381. package/dist/docs/Tags/custom-config-for-tags-column.tsx +95 -0
  382. package/dist/docs/Tags/customized-filter-position.tsx +121 -0
  383. package/dist/docs/Tags/customized-tags-column-position.tsx +94 -0
  384. package/dist/docs/Tags/on-table-with-folders.tsx +124 -0
  385. package/dist/docs/Tags.md +5 -534
  386. package/dist/docs/ToolbarCollectionState.md +1 -1
  387. package/dist/docs/ToolbarFilters/2-filters-with-a-title.tsx +162 -0
  388. package/dist/docs/ToolbarFilters/2-filters-without-a-title.tsx +158 -0
  389. package/dist/docs/ToolbarFilters/add-filter-presets-for-future-dates.tsx +108 -0
  390. package/dist/docs/ToolbarFilters/apply-changes.tsx +167 -0
  391. package/dist/docs/ToolbarFilters/custom-label-for-tags.tsx +167 -0
  392. package/dist/docs/ToolbarFilters/customize-filter-display-tags.tsx +163 -0
  393. package/dist/docs/ToolbarFilters/mini-toolbar-with-filters.tsx +121 -0
  394. package/dist/docs/ToolbarFilters/mini-toolbar.tsx +80 -0
  395. package/dist/docs/ToolbarFilters/more-than-2-filters.tsx +164 -0
  396. package/dist/docs/ToolbarFilters/postpone-collection-filter-initial-fetch.tsx +158 -0
  397. package/dist/docs/ToolbarFilters.md +17 -1466
  398. package/dist/docs/ToolbarSecondaryActions/grouped-actions-with-dividers.tsx +91 -0
  399. package/dist/docs/ToolbarSecondaryActions/mixed-buttons-and-dropdown-menus.tsx +80 -0
  400. package/dist/docs/ToolbarSecondaryActions/multiple-actions-with-dropdown-menus.tsx +88 -0
  401. package/dist/docs/ToolbarSecondaryActions/multiple-secondary-action-buttons.tsx +73 -0
  402. package/dist/docs/ToolbarSecondaryActions.md +4 -340
  403. package/dist/docs/ToolbarTitle/title-and-count.tsx +60 -0
  404. package/dist/docs/ToolbarTitle/title-count-and-the-collection-s-item-limit.tsx +60 -0
  405. package/dist/docs/ToolbarTitle/title-subtitle-and-learn-more.tsx +68 -0
  406. package/dist/docs/ToolbarTitle/title.tsx +60 -0
  407. package/dist/docs/ToolbarTitle.md +4 -256
  408. package/dist/docs/Views/basic-view-that-can-be-chosen.tsx +142 -0
  409. package/dist/docs/Views/basic-view.tsx +134 -0
  410. package/dist/docs/Views/view-with-selected-columns.tsx +142 -0
  411. package/dist/docs/Views/views-separated-by-category-in-the-dropdown.tsx +209 -0
  412. package/dist/docs/Views.md +4 -635
  413. package/dist/docs/WidgetsFormProvider.md +9 -0
  414. package/dist/docs/WixPatternsBMProvider.md +9 -0
  415. package/dist/docs/WixPatternsBaseProvider.md +6 -3
  416. package/dist/docs/WixPatternsEssentialsProvider.md +9 -0
  417. package/dist/docs/WixPatternsGizaProvider.md +9 -0
  418. package/dist/docs/WixPatternsProvider.md +9 -0
  419. package/dist/docs/arrayFilter.md +6 -12
  420. package/dist/docs/customFilter.md +6 -19
  421. package/dist/docs/dateRangeFilter.Factories.md +6 -13
  422. package/dist/docs/deleteSecondaryAction.md +6 -13
  423. package/dist/docs/idNameArrayFilter.md +6 -12
  424. package/dist/docs/index.json +155 -81
  425. package/dist/docs/operatorFilter.md +6 -13
  426. package/dist/docs/stringFilter.md +6 -4
  427. package/dist/docs/stringsArrayFilter.md +6 -12
  428. package/dist/docs/useCreateCollection.md +6 -19
  429. package/dist/docs/useEntity.md +1 -0
  430. package/dist/docs/useEntityPage.md +6 -13
  431. package/dist/docs/useFilterCollection.md +6 -13
  432. package/dist/docs/useGridCollection.md +6 -19
  433. package/dist/docs/useGridFolders.md +6 -4
  434. package/dist/docs/useOptimisticActions/custom-error-handling.tsx +178 -0
  435. package/dist/docs/useOptimisticActions/default-behaviour.tsx +155 -0
  436. package/dist/docs/useOptimisticActions/error-handling-and-retries.tsx +175 -0
  437. package/dist/docs/useOptimisticActions/items-orders.tsx +165 -0
  438. package/dist/docs/useOptimisticActions/revision-handling.tsx +109 -0
  439. package/dist/docs/useOptimisticActions/success-toast-with-undo.tsx +164 -0
  440. package/dist/docs/useOptimisticActions/update-with-query.tsx +195 -0
  441. package/dist/docs/useOptimisticActions.md +13 -1164
  442. package/dist/docs/usePatternsNavigate.md +11 -0
  443. package/dist/docs/usePickerModal.md +6 -16
  444. package/dist/docs/useStaticListFilterCollection.md +6 -4
  445. package/dist/docs/useTableCollection.md +6 -19
  446. package/dist/docs/useTableFolders.md +6 -4
  447. package/dist/docs/useTableGridSwitchCollection.md +6 -19
  448. package/dist/dts-bundle/components/AutoCompleteFilter.d.ts +9 -8
  449. package/dist/dts-bundle/components/CollectionEmptyState.d.ts +1 -4
  450. package/dist/dts-bundle/components/CollectionNoResultsState.d.ts +1 -4
  451. package/dist/dts-bundle/components/CollectionOptimisticActions.d.ts +19 -9
  452. package/dist/dts-bundle/components/CollectionPage.d.ts +4 -2
  453. package/dist/dts-bundle/components/CollectionPremiumEmptyState.d.ts +1 -4
  454. package/dist/dts-bundle/components/CollectionSearch.d.ts +2 -1
  455. package/dist/dts-bundle/components/CollectionToolbarFilters.d.ts +3 -5
  456. package/dist/dts-bundle/components/DateRangeFilter.d.ts +10 -31
  457. package/dist/dts-bundle/components/EntityPage.d.ts +5 -1
  458. package/dist/dts-bundle/components/ExportButton.d.ts +7 -7
  459. package/dist/dts-bundle/components/Grid.d.ts +16 -11
  460. package/dist/dts-bundle/components/GridFolders.d.ts +10 -8
  461. package/dist/dts-bundle/components/MoreActions.d.ts +3 -0
  462. package/dist/dts-bundle/components/MultiAutoInlineCheckboxFilter.d.ts +3 -5
  463. package/dist/dts-bundle/components/MultiBulkActionToolbar.d.ts +2 -5
  464. package/dist/dts-bundle/components/MultiInlineCheckboxFilter.d.ts +2 -1
  465. package/dist/dts-bundle/components/MultiSelectCheckboxFilter.d.ts +9 -8
  466. package/dist/dts-bundle/components/MultiSelectCollectionFilter.d.ts +8 -4
  467. package/dist/dts-bundle/components/NumberRangeFilter.d.ts +4 -2
  468. package/dist/dts-bundle/components/OperatorFilterPicker.d.ts +8 -26
  469. package/dist/dts-bundle/components/PickerModal.d.ts +4 -2
  470. package/dist/dts-bundle/components/PrimaryActions.d.ts +1 -1
  471. package/dist/dts-bundle/components/RadioGroupFilter.d.ts +3 -5
  472. package/dist/dts-bundle/components/SecondaryActions.d.ts +1 -1
  473. package/dist/dts-bundle/components/SettingsPage.d.ts +5 -1
  474. package/dist/dts-bundle/components/SingleSelectFilter.d.ts +8 -4
  475. package/dist/dts-bundle/components/Table.d.ts +8 -4
  476. package/dist/dts-bundle/components/TableFolders.d.ts +13 -10
  477. package/dist/dts-bundle/components/TableGridSwitch.d.ts +25 -16
  478. package/dist/dts-bundle/components/TableTopNotification.d.ts +1 -4
  479. package/dist/dts-bundle/components/TabsFilter.d.ts +5 -6
  480. package/dist/dts-bundle/components/WidgetsFormProvider.d.ts +1 -0
  481. package/dist/dts-bundle/exports/core.d.ts +0 -1
  482. package/dist/dts-bundle/functions/arrayFilter.d.ts +2 -1
  483. package/dist/dts-bundle/functions/customFilter.d.ts +2 -1
  484. package/dist/dts-bundle/functions/dateRangeFilter.d.ts +4 -2
  485. package/dist/dts-bundle/functions/deleteSecondaryAction.d.ts +6 -3
  486. package/dist/dts-bundle/functions/idNameArrayFilter.d.ts +2 -1
  487. package/dist/dts-bundle/functions/operatorFilter.d.ts +2 -1
  488. package/dist/dts-bundle/functions/stringFilter.d.ts +1 -0
  489. package/dist/dts-bundle/functions/stringsArrayFilter.d.ts +2 -1
  490. package/dist/dts-bundle/hooks/useCreateCollection.d.ts +7 -4
  491. package/dist/dts-bundle/hooks/useEntityPage.d.ts +3 -2
  492. package/dist/dts-bundle/hooks/useExportConfig.d.ts +4 -2
  493. package/dist/dts-bundle/hooks/useFilterCollection.d.ts +4 -2
  494. package/dist/dts-bundle/hooks/useGridCollection.d.ts +4 -2
  495. package/dist/dts-bundle/hooks/useGridFolders.d.ts +6 -3
  496. package/dist/dts-bundle/hooks/useOptimisticActions.d.ts +11 -5
  497. package/dist/dts-bundle/hooks/usePatternsNavigate.d.ts +1 -0
  498. package/dist/dts-bundle/hooks/usePickerModal.d.ts +304 -7
  499. package/dist/dts-bundle/hooks/useStaticListFilterCollection.d.ts +4 -2
  500. package/dist/dts-bundle/hooks/useTableCollection.d.ts +7 -3
  501. package/dist/dts-bundle/hooks/useTableFolders.d.ts +6 -3
  502. package/dist/dts-bundle/hooks/useTableGridSwitchCollection.d.ts +4 -2
  503. package/dist/dts-bundle/index.json +76 -85
  504. package/dist/dts-bundle/types/ActionCellProps.d.ts +4 -2
  505. package/dist/dts-bundle/types/BulkActionModalRenderPropParams.d.ts +4 -2
  506. package/dist/dts-bundle/types/CollectionTableBaseProps.d.ts +21 -9
  507. package/dist/dts-bundle/types/CollectionViewsDropdownBaseProps.d.ts +4 -2
  508. package/dist/dts-bundle/types/Column.d.ts +1 -1
  509. package/dist/dts-bundle/types/ComputedQuery.d.ts +2 -1
  510. package/dist/dts-bundle/types/CursorQuery.d.ts +4 -2
  511. package/dist/dts-bundle/types/EntityPageStateParams.d.ts +10 -5
  512. package/dist/dts-bundle/types/FilterProps.d.ts +2 -1
  513. package/dist/dts-bundle/types/GridFoldersState.d.ts +15 -7
  514. package/dist/dts-bundle/types/GridState.d.ts +13 -6
  515. package/dist/dts-bundle/types/OnSaveParams.d.ts +3 -2
  516. package/dist/dts-bundle/types/RangeItem.d.ts +2 -1
  517. package/dist/dts-bundle/types/TableColumn.d.ts +1 -0
  518. package/dist/dts-bundle/types/TableFoldersState.d.ts +15 -7
  519. package/dist/dts-bundle/types/TableGridSwitchState.d.ts +20 -9
  520. package/dist/dts-bundle/types/TableState.d.ts +15 -6
  521. package/dist/dts-bundle/types/TagsProps.d.ts +8 -3
  522. package/dist/dts-bundle/types/ToolbarBaseProps.d.ts +9 -4
  523. package/dist/dts-bundle/types/ToolbarCollectionBaseProps.d.ts +35 -14
  524. package/dist/dts-bundle/types/ToolbarTitleProps.d.ts +2 -1
  525. package/dist/dts-bundle/types/UseEntityPageParams.d.ts +3 -2
  526. package/dist/esm/components/CardContainer/CardContainer.st.css.js +2 -2
  527. package/dist/esm/components/CmsFieldManagement/CmsFieldForm.st.css.js +2 -2
  528. package/dist/esm/components/CmsFieldManagement/CmsFieldModal.st.css.js +2 -2
  529. package/dist/esm/components/CmsFieldManagement/Sections/ValidationAndDefaultsSection.st.css.js +2 -2
  530. package/dist/esm/components/CmsFieldManagement/Sections/ValidationAndDefaultsSection.st.css.js.map +1 -1
  531. package/dist/esm/components/Collapse/Collapse.st.css.js +2 -2
  532. package/dist/esm/components/CollectionPageNew/CollectionPage.st.css.js +2 -2
  533. package/dist/esm/components/CollectionPageNew/CollectionPage.st.css.js.map +1 -1
  534. package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js +2 -2
  535. package/dist/esm/components/CollectionTable/CollectionTable.st.css.js +2 -2
  536. package/dist/esm/components/CollectionTable/CollectionTable.st.css.js.map +1 -1
  537. package/dist/esm/components/CollectionTable/CollectionTableWSRTable.st.css.js +2 -2
  538. package/dist/esm/components/CollectionToolbar/CollectionToolbar.st.css.js +2 -2
  539. package/dist/esm/components/CollectionToolbar/SearchOrCustomFilter.st.css.js +2 -2
  540. package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js +2 -2
  541. package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js.map +1 -1
  542. package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.st.css.js +2 -2
  543. package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.st.css.js.map +1 -1
  544. package/dist/esm/components/CustomFieldModal/CustomFieldForm.js +4 -3
  545. package/dist/esm/components/CustomFieldModal/CustomFieldForm.js.map +1 -1
  546. package/dist/esm/components/CustomFieldModal/CustomFieldTypeDropdown.js +2 -2
  547. package/dist/esm/components/CustomFieldModal/CustomFieldTypeDropdown.js.map +1 -1
  548. package/dist/esm/components/DragHandle/DragHandle.st.css.js +2 -2
  549. package/dist/esm/components/EditableTable/EditableCell.st.css.js +2 -2
  550. package/dist/esm/components/EditableTable/HeaderActionsPopover.st.css.js +2 -2
  551. package/dist/esm/components/EditableTable/cellTypes/CellViewLayout.st.css.js +2 -2
  552. package/dist/esm/components/EditableTable/cellTypes/address/Edit.st.css.js +2 -2
  553. package/dist/esm/components/EditableTable/cellTypes/array/Edit.st.css.js +2 -2
  554. package/dist/esm/components/EditableTable/cellTypes/boolean/Edit.st.css.js +2 -2
  555. package/dist/esm/components/EditableTable/cellTypes/boolean/View.st.css.js +2 -2
  556. package/dist/esm/components/EditableTable/cellTypes/color/Edit.st.css.js +2 -2
  557. package/dist/esm/components/EditableTable/cellTypes/date/Edit.st.css.js +2 -2
  558. package/dist/esm/components/EditableTable/cellTypes/date/Edit.st.css.js.map +1 -1
  559. package/dist/esm/components/EditableTable/cellTypes/date/View.st.css.js +2 -2
  560. package/dist/esm/components/EditableTable/cellTypes/datetime/Edit.st.css.js +2 -2
  561. package/dist/esm/components/EditableTable/cellTypes/datetime/View.st.css.js +2 -2
  562. package/dist/esm/components/EditableTable/cellTypes/email/Edit.st.css.js +2 -2
  563. package/dist/esm/components/EditableTable/cellTypes/email/View.st.css.js +2 -2
  564. package/dist/esm/components/EditableTable/cellTypes/number/Edit.st.css.js +2 -2
  565. package/dist/esm/components/EditableTable/cellTypes/number/Edit.st.css.js.map +1 -1
  566. package/dist/esm/components/EditableTable/cellTypes/number/View.st.css.js +2 -2
  567. package/dist/esm/components/EditableTable/cellTypes/number/View.st.css.js.map +1 -1
  568. package/dist/esm/components/EditableTable/cellTypes/object/Edit.st.css.js +2 -2
  569. package/dist/esm/components/EditableTable/cellTypes/object/View.st.css.js +2 -2
  570. package/dist/esm/components/EditableTable/cellTypes/object/View.st.css.js.map +1 -1
  571. package/dist/esm/components/EditableTable/cellTypes/select/Edit.st.css.js +2 -2
  572. package/dist/esm/components/EditableTable/cellTypes/text/Edit.st.css.js +2 -2
  573. package/dist/esm/components/EditableTable/cellTypes/text/View.st.css.js +2 -2
  574. package/dist/esm/components/EditableTable/cellTypes/time/Edit.st.css.js +2 -2
  575. package/dist/esm/components/EditableTable/cellTypes/url/Edit.st.css.js +2 -2
  576. package/dist/esm/components/EditableTable/cellTypes/url/Edit.st.css.js.map +1 -1
  577. package/dist/esm/components/EditableTable/cellTypes/url/View.st.css.js +2 -2
  578. package/dist/esm/components/EmptyState/EmptyStateBase.st.css.js +2 -2
  579. package/dist/esm/components/EntityPage/EntityPagePlain.st.css.js +2 -2
  580. package/dist/esm/components/EntityPageFields/EntityPageFields.js +2 -2
  581. package/dist/esm/components/EntityPageFields/EntityPageFields.js.map +1 -1
  582. package/dist/esm/components/Fade/Fade.st.css.js +2 -2
  583. package/dist/esm/components/Heading/Heading.st.css.js +2 -2
  584. package/dist/esm/components/ImportButton/ImportStepUpload.st.css.js +2 -2
  585. package/dist/esm/components/InputOverflow/InputOverflow.st.css.js +2 -2
  586. package/dist/esm/components/InputOverflow/InputOverflow.st.css.js.map +1 -1
  587. package/dist/esm/components/LoadingRow/LoadingRow.st.css.js +3 -3
  588. package/dist/esm/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
  589. package/dist/esm/components/MaxLines/MaxLines.st.css.js +2 -2
  590. package/dist/esm/components/MaxLines/MaxLines.st.css.js.map +1 -1
  591. package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +2 -2
  592. package/dist/esm/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js +2 -2
  593. package/dist/esm/components/NestedTable/NestedTableRow.st.css.js +2 -2
  594. package/dist/esm/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js +2 -2
  595. package/dist/esm/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js.map +1 -1
  596. package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js +2 -2
  597. package/dist/esm/components/PickerContent/PickerContent.st.css.js +2 -2
  598. package/dist/esm/components/PickerContent/PickerContentAdditionalStep.st.css.js +2 -2
  599. package/dist/esm/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
  600. package/dist/esm/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
  601. package/dist/esm/components/ScrollableContent/ScrollableContent.st.css.js.map +1 -1
  602. package/dist/esm/components/SetupWidget/SetupWidget.st.css.js +2 -2
  603. package/dist/esm/components/SkeletonCard/SkeletonCard.st.css.js +2 -2
  604. package/dist/esm/components/SkeletonCard/SkeletonCard.st.css.js.map +1 -1
  605. package/dist/esm/components/SlidingModal/SlidingModal.st.css.js +2 -2
  606. package/dist/esm/components/SlidingModal/SlidingModal.st.css.js.map +1 -1
  607. package/dist/esm/components/Table/AddFieldColumnHeader.st.css.js +2 -2
  608. package/dist/esm/components/Table/AddFieldColumnHeader.st.css.js.map +1 -1
  609. package/dist/esm/components/TabsFilter/TabsFilter.st.css.js +2 -2
  610. package/dist/esm/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
  611. package/dist/esm/components/ToolbarItem/ToolbarItem.st.css.js +2 -2
  612. package/dist/esm/components/ToolbarItem/ToolbarItem.st.css.js.map +1 -1
  613. package/dist/esm/components/ToolbarItemBox/ToolbarItemBox.st.css.js +2 -2
  614. package/dist/esm/components/ToolbarItemBox/ToolbarItemBox.st.css.js.map +1 -1
  615. package/dist/esm/components/common.st.css.js +2 -2
  616. package/dist/esm/dashboard/WixPatternsDashboardBaseProvider.js +1 -1
  617. package/dist/esm/dashboard/WixPatternsDashboardBaseProvider.js.map +1 -1
  618. package/dist/esm/schema/EntityPageFieldsCard.js +1 -1
  619. package/dist/esm/schema/EntityPageFieldsCard.js.map +1 -1
  620. package/dist/esm/schema/entityPageFieldManagement.js +2 -0
  621. package/dist/esm/schema/entityPageFieldManagement.js.map +1 -1
  622. package/dist/esm/state/CollectionFieldsSourceState.js +2 -0
  623. package/dist/esm/state/CollectionFieldsSourceState.js.map +1 -1
  624. package/dist/esm/state/CollectionPage/CollectionPageHeader.st.css.js +2 -2
  625. package/dist/esm/state/CustomFields/CustomFieldsPanelState.js +4 -0
  626. package/dist/esm/state/CustomFields/CustomFieldsPanelState.js.map +1 -1
  627. package/dist/esm/state/EntityPage/EntityPageState.js +22 -1
  628. package/dist/esm/state/EntityPage/EntityPageState.js.map +1 -1
  629. package/dist/esm/state/EntityPageFieldsCardState.js +9 -1
  630. package/dist/esm/state/EntityPageFieldsCardState.js.map +1 -1
  631. package/dist/esm/state/FormPage/FormPageHeader.st.css.js +2 -2
  632. package/dist/esm/state/FormPage/FormPageHeader.st.css.js.map +1 -1
  633. package/dist/esm/state/ToolbarCollectionState.js +6 -2
  634. package/dist/esm/state/ToolbarCollectionState.js.map +1 -1
  635. package/dist/esm/styles.global.css +2 -2
  636. package/dist/esm/version.js +1 -1
  637. package/dist/types/components/CmsFieldManagement/Sections/ValidationAndDefaultsSection.st.css.d.ts.map +1 -1
  638. package/dist/types/components/CollectionPageNew/CollectionPage.st.css.d.ts.map +1 -1
  639. package/dist/types/components/CollectionTable/CollectionTable.st.css.d.ts.map +1 -1
  640. package/dist/types/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.d.ts.map +1 -1
  641. package/dist/types/components/CollectionViewsDropdown/ViewsDropdown.st.css.d.ts.map +1 -1
  642. package/dist/types/components/CustomFieldModal/CustomFieldForm.d.ts.map +1 -1
  643. package/dist/types/components/CustomFieldModal/CustomFieldTypeDropdown.d.ts.map +1 -1
  644. package/dist/types/components/EditableTable/cellTypes/date/Edit.st.css.d.ts.map +1 -1
  645. package/dist/types/components/EditableTable/cellTypes/number/Edit.st.css.d.ts.map +1 -1
  646. package/dist/types/components/EditableTable/cellTypes/number/View.st.css.d.ts.map +1 -1
  647. package/dist/types/components/EditableTable/cellTypes/object/View.st.css.d.ts.map +1 -1
  648. package/dist/types/components/EditableTable/cellTypes/url/Edit.st.css.d.ts.map +1 -1
  649. package/dist/types/components/EntityPageFields/EntityPageFields.d.ts +3 -1
  650. package/dist/types/components/EntityPageFields/EntityPageFields.d.ts.map +1 -1
  651. package/dist/types/components/InputOverflow/InputOverflow.st.css.d.ts.map +1 -1
  652. package/dist/types/components/MaxLines/MaxLines.st.css.d.ts.map +1 -1
  653. package/dist/types/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.d.ts.map +1 -1
  654. package/dist/types/components/ScrollableContent/ScrollableContent.st.css.d.ts.map +1 -1
  655. package/dist/types/components/SkeletonCard/SkeletonCard.st.css.d.ts.map +1 -1
  656. package/dist/types/components/SlidingModal/SlidingModal.st.css.d.ts.map +1 -1
  657. package/dist/types/components/Table/AddFieldColumnHeader.st.css.d.ts.map +1 -1
  658. package/dist/types/components/ToolbarItem/ToolbarItem.st.css.d.ts.map +1 -1
  659. package/dist/types/components/ToolbarItemBox/ToolbarItemBox.st.css.d.ts.map +1 -1
  660. package/dist/types/schema/EntityPageFieldsCard.d.ts.map +1 -1
  661. package/dist/types/schema/entityPageFieldManagement.d.ts.map +1 -1
  662. package/dist/types/state/CollectionFieldsSourceState.d.ts +2 -6
  663. package/dist/types/state/CollectionFieldsSourceState.d.ts.map +1 -1
  664. package/dist/types/state/CustomFields/CustomFieldsPanelState.d.ts +2 -4
  665. package/dist/types/state/CustomFields/CustomFieldsPanelState.d.ts.map +1 -1
  666. package/dist/types/state/EntityPage/EntityPageState.d.ts +9 -0
  667. package/dist/types/state/EntityPage/EntityPageState.d.ts.map +1 -1
  668. package/dist/types/state/EntityPageFieldsCardState.d.ts +1 -0
  669. package/dist/types/state/EntityPageFieldsCardState.d.ts.map +1 -1
  670. package/dist/types/state/FormPage/FormPageHeader.st.css.d.ts.map +1 -1
  671. package/dist/types/state/ManageFieldsSource.d.ts +2 -6
  672. package/dist/types/state/ManageFieldsSource.d.ts.map +1 -1
  673. package/dist/types/state/ToolbarCollectionState.d.ts +2 -4
  674. package/dist/types/state/ToolbarCollectionState.d.ts.map +1 -1
  675. package/dist/types/version.d.ts +1 -1
  676. package/package.json +7 -7
  677. package/src/components/CardContainer/CardContainer.st.css.ts +2 -2
  678. package/src/components/CmsFieldManagement/CmsFieldForm.st.css.ts +2 -2
  679. package/src/components/CmsFieldManagement/CmsFieldModal.st.css.ts +2 -2
  680. package/src/components/CmsFieldManagement/Sections/ValidationAndDefaultsSection.st.css.ts +2 -2
  681. package/src/components/Collapse/Collapse.st.css.ts +2 -2
  682. package/src/components/CollectionPageNew/CollectionPage.st.css.ts +2 -2
  683. package/src/components/CollectionSectionHeader/CollectionSectionHeader.st.css.ts +2 -2
  684. package/src/components/CollectionTable/CollectionTable.st.css.ts +2 -2
  685. package/src/components/CollectionTable/CollectionTableWSRTable.st.css.ts +2 -2
  686. package/src/components/CollectionToolbar/CollectionToolbar.st.css.ts +2 -2
  687. package/src/components/CollectionToolbar/SearchOrCustomFilter.st.css.ts +2 -2
  688. package/src/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.ts +2 -2
  689. package/src/components/CollectionViewsDropdown/ViewsDropdown.st.css.ts +2 -2
  690. package/src/components/CustomFieldModal/CustomFieldForm.tsx +7 -2
  691. package/src/components/CustomFieldModal/CustomFieldTypeDropdown.tsx +3 -1
  692. package/src/components/DragHandle/DragHandle.st.css.ts +2 -2
  693. package/src/components/EditableTable/EditableCell.st.css.ts +2 -2
  694. package/src/components/EditableTable/HeaderActionsPopover.st.css.ts +2 -2
  695. package/src/components/EditableTable/cellTypes/CellViewLayout.st.css.ts +2 -2
  696. package/src/components/EditableTable/cellTypes/address/Edit.st.css.ts +2 -2
  697. package/src/components/EditableTable/cellTypes/array/Edit.st.css.ts +2 -2
  698. package/src/components/EditableTable/cellTypes/boolean/Edit.st.css.ts +2 -2
  699. package/src/components/EditableTable/cellTypes/boolean/View.st.css.ts +2 -2
  700. package/src/components/EditableTable/cellTypes/color/Edit.st.css.ts +2 -2
  701. package/src/components/EditableTable/cellTypes/date/Edit.st.css.ts +2 -2
  702. package/src/components/EditableTable/cellTypes/date/View.st.css.ts +2 -2
  703. package/src/components/EditableTable/cellTypes/datetime/Edit.st.css.ts +2 -2
  704. package/src/components/EditableTable/cellTypes/datetime/View.st.css.ts +2 -2
  705. package/src/components/EditableTable/cellTypes/email/Edit.st.css.ts +2 -2
  706. package/src/components/EditableTable/cellTypes/email/View.st.css.ts +2 -2
  707. package/src/components/EditableTable/cellTypes/number/Edit.st.css.ts +2 -2
  708. package/src/components/EditableTable/cellTypes/number/View.st.css.ts +2 -2
  709. package/src/components/EditableTable/cellTypes/object/Edit.st.css.ts +2 -2
  710. package/src/components/EditableTable/cellTypes/object/View.st.css.ts +2 -2
  711. package/src/components/EditableTable/cellTypes/select/Edit.st.css.ts +2 -2
  712. package/src/components/EditableTable/cellTypes/text/Edit.st.css.ts +2 -2
  713. package/src/components/EditableTable/cellTypes/text/View.st.css.ts +2 -2
  714. package/src/components/EditableTable/cellTypes/time/Edit.st.css.ts +2 -2
  715. package/src/components/EditableTable/cellTypes/url/Edit.st.css.ts +2 -2
  716. package/src/components/EditableTable/cellTypes/url/View.st.css.ts +2 -2
  717. package/src/components/EmptyState/EmptyStateBase.st.css.ts +2 -2
  718. package/src/components/EntityPage/EntityPagePlain.st.css.ts +2 -2
  719. package/src/components/EntityPageFields/EntityPageFields.tsx +4 -1
  720. package/src/components/Fade/Fade.st.css.ts +2 -2
  721. package/src/components/Heading/Heading.st.css.ts +2 -2
  722. package/src/components/ImportButton/ImportStepUpload.st.css.ts +2 -2
  723. package/src/components/InputOverflow/InputOverflow.st.css.ts +2 -2
  724. package/src/components/LoadingRow/LoadingRow.st.css.ts +3 -3
  725. package/src/components/MaxHeightText/MaxHeightText.st.css.ts +2 -2
  726. package/src/components/MaxLines/MaxLines.st.css.ts +2 -2
  727. package/src/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.ts +2 -2
  728. package/src/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.ts +2 -2
  729. package/src/components/NestedTable/NestedTableRow.st.css.ts +2 -2
  730. package/src/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.ts +2 -2
  731. package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.ts +2 -2
  732. package/src/components/PickerContent/PickerContent.st.css.ts +2 -2
  733. package/src/components/PickerContent/PickerContentAdditionalStep.st.css.ts +2 -2
  734. package/src/components/PickerTableListItem/PickerTableListItem.st.css.ts +2 -2
  735. package/src/components/ScrollableContent/ScrollableContent.st.css.ts +2 -2
  736. package/src/components/SetupWidget/SetupWidget.st.css.ts +2 -2
  737. package/src/components/SkeletonCard/SkeletonCard.st.css.ts +2 -2
  738. package/src/components/SlidingModal/SlidingModal.st.css.ts +2 -2
  739. package/src/components/Table/AddFieldColumnHeader.st.css.ts +2 -2
  740. package/src/components/TabsFilter/TabsFilter.st.css.ts +2 -2
  741. package/src/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.ts +2 -2
  742. package/src/components/ToolbarItem/ToolbarItem.st.css.ts +2 -2
  743. package/src/components/ToolbarItemBox/ToolbarItemBox.st.css.ts +2 -2
  744. package/src/components/common.st.css.ts +2 -2
  745. package/src/dashboard/WixPatternsDashboardBaseProvider.tsx +1 -1
  746. package/src/schema/EntityPageFieldsCard.tsx +4 -1
  747. package/src/schema/entityPageFieldManagement.ts +2 -0
  748. package/src/state/CollectionFieldsSourceState.ts +4 -5
  749. package/src/state/CollectionPage/CollectionPageHeader.st.css.ts +2 -2
  750. package/src/state/CustomFields/CustomFieldsPanelState.ts +9 -5
  751. package/src/state/EntityPage/EntityPageState.ts +25 -1
  752. package/src/state/EntityPageFieldsCardState.ts +11 -1
  753. package/src/state/FormPage/FormPageHeader.st.css.ts +2 -2
  754. package/src/state/ManageFieldsSource.ts +2 -6
  755. package/src/state/ToolbarCollectionState.ts +14 -2
  756. package/src/styles.global.css +2 -2
  757. package/src/version.ts +1 -1
  758. package/dist/dts-bundle/types/Translate.d.ts +0 -296
@@ -0,0 +1,49 @@
1
+ import React from 'react';
2
+ import { EmptyState } from '@wix/design-system';
3
+ import { queryContacts } from '@wix/ambassador-contacts-v4-contact/http';
4
+ import {
5
+ OffsetQuery,
6
+ PickerStandalone,
7
+ usePickerStandalone,
8
+ } from '@wix/patterns';
9
+ import { useHttpClient } from '@wix/fe-essentials/react';
10
+
11
+ function Basic() {
12
+ const httpClient = useHttpClient();
13
+
14
+ const fetchData = (query: OffsetQuery) => {
15
+ const { limit, offset, search } = query;
16
+ return httpClient
17
+ .request(
18
+ queryContacts({
19
+ query: { paging: { limit, offset } },
20
+ search,
21
+ }),
22
+ )
23
+ .then(({ data: { contacts, pagingMetadata } }) => ({
24
+ items: contacts || [],
25
+ total: pagingMetadata?.total,
26
+ }));
27
+ };
28
+
29
+ const state = usePickerStandalone({
30
+ queryName: 'picker-standalone-basic',
31
+ fetchData,
32
+ limit: 25,
33
+ defaultDestinationUrl: 'https://www.wix.com',
34
+ fetchErrorMessage: () => 'Error fetching contacts',
35
+ itemName: (contact) => contact.name as string,
36
+ });
37
+
38
+ return (
39
+ <PickerStandalone
40
+ height="666px"
41
+ defaultTitle="Select a Contact"
42
+ state={state}
43
+ renderError={() => <EmptyState title="Error has occured" />}
44
+ renderEmptyState={() => (
45
+ <EmptyState title="You don't have any contacts that support this action." />
46
+ )}
47
+ />
48
+ );
49
+ }
@@ -0,0 +1,65 @@
1
+ import React from 'react';
2
+ import { EmptyState, TextButton } from '@wix/design-system';
3
+ import { queryContacts } from '@wix/ambassador-contacts-v4-contact/http';
4
+ import {
5
+ OffsetQuery,
6
+ PickerStandalone,
7
+ usePickerStandalone,
8
+ } from '@wix/patterns';
9
+ import { useHttpClient } from '@wix/fe-essentials/react';
10
+
11
+ function PickerStandaloneCreateNewExample() {
12
+ const httpClient = useHttpClient();
13
+
14
+ const fetchData = (query: OffsetQuery) => {
15
+ const { limit, offset, search } = query;
16
+ return httpClient
17
+ .request(
18
+ queryContacts({
19
+ query: { paging: { limit, offset } },
20
+ search,
21
+ }),
22
+ )
23
+ .then(({ data: { contacts, pagingMetadata } }) => ({
24
+ items: contacts || [],
25
+ total: pagingMetadata?.total,
26
+ }));
27
+ };
28
+
29
+ const state = usePickerStandalone({
30
+ queryName: 'picker-standalone-basic',
31
+ fetchData,
32
+ limit: 25,
33
+ defaultDestinationUrl: 'https://www.wix.com',
34
+ fetchErrorMessage: () => 'Error fetching contacts',
35
+ itemName: (contact) => contact.id as string,
36
+ });
37
+
38
+ return (
39
+ <PickerStandalone
40
+ height="666px"
41
+ defaultTitle="Select a Contact"
42
+ state={state}
43
+ createNewAction={
44
+ <TextButton
45
+ as="a"
46
+ href="contacts"
47
+ target="_blank"
48
+ onClick={() => {
49
+ const onFocus = () => {
50
+ window.removeEventListener('focus', onFocus);
51
+ state.picker.clearResultAndMoveToStart({ force: true });
52
+ };
53
+ window.addEventListener('focus', onFocus);
54
+ }}
55
+ >
56
+ Create New Contact
57
+ </TextButton>
58
+ }
59
+ renderError={() => <EmptyState title="Error has occured" />}
60
+ renderEmptyState={() => (
61
+ <EmptyState title="You don’t have any contacts that support this action." />
62
+ )}
63
+ />
64
+ );
65
+ }
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import { EmptyState } from '@wix/design-system';
3
+ import { PickerStandalone, usePickerStandalone } from '@wix/patterns';
4
+ import { Contact } from '@wix/ambassador-contacts-v4-contact/types';
5
+
6
+ function PickerStandaloneEmptyStateExample() {
7
+ const fetchData = async () =>
8
+ Promise.resolve({
9
+ items: [] as Contact[],
10
+ total: 0,
11
+ });
12
+
13
+ const state = usePickerStandalone({
14
+ queryName: 'picker-standalone-empty-state',
15
+ fetchData,
16
+ limit: 25,
17
+ defaultDestinationUrl: 'https://www.wix.com',
18
+ fetchErrorMessage: () => 'Error fetching contacts',
19
+ itemName: (contact) => contact.id as string,
20
+ });
21
+
22
+ return (
23
+ <PickerStandalone
24
+ height="666px"
25
+ defaultTitle="Select a Contact"
26
+ state={state}
27
+ renderError={() => <EmptyState title="Error has occured" />}
28
+ renderEmptyState={() => (
29
+ <EmptyState title="You don’t have any contacts that support this action." />
30
+ )}
31
+ />
32
+ );
33
+ }
@@ -0,0 +1,78 @@
1
+ import Chance from 'chance';
2
+ import React from 'react';
3
+ import { Avatar, EmptyState, Box, Text } from '@wix/design-system';
4
+ import { queryContacts } from '@wix/ambassador-contacts-v4-contact/http';
5
+ import {
6
+ OffsetQuery,
7
+ PickerStandalone,
8
+ usePickerStandalone,
9
+ } from '@wix/patterns';
10
+ import { useHttpClient } from '@wix/fe-essentials/react';
11
+
12
+ function PickerStandaloneCustomItemsExample() {
13
+ const chance = Chance();
14
+ const httpClient = useHttpClient();
15
+
16
+ const fetchData = (query: OffsetQuery) => {
17
+ const { limit, offset, search } = query;
18
+ return httpClient
19
+ .request(
20
+ queryContacts({
21
+ query: { paging: { limit, offset } },
22
+ search,
23
+ }),
24
+ )
25
+ .then(({ data: { contacts, pagingMetadata } }) => ({
26
+ items: contacts || [],
27
+ total: pagingMetadata?.total,
28
+ }));
29
+ };
30
+
31
+ const state = usePickerStandalone({
32
+ queryName: 'picker-standalone-custom-items',
33
+ fetchData,
34
+ limit: 25,
35
+ defaultDestinationUrl: 'https://www.wix.com',
36
+ fetchErrorMessage: () => 'Error fetching contacts',
37
+ itemName: (contact) => contact.id as string,
38
+ });
39
+
40
+ return (
41
+ <PickerStandalone
42
+ height="666px"
43
+ defaultTitle="Select a Contact"
44
+ state={state}
45
+ renderItem={(contact, _index, { isMobileView }) => ({
46
+ options: [
47
+ {
48
+ value: <Avatar name={contact.name} shape="square" />,
49
+ align: 'left',
50
+ width: 100,
51
+ },
52
+ {
53
+ align: 'left',
54
+ value: (
55
+ <Box direction="vertical" width="300px">
56
+ <Text size="medium" secondary weight="thin">
57
+ {contact.name}
58
+ </Text>
59
+ <Text size="small" secondary weight="thin" ellipsis>
60
+ Long Text: {chance.sentence({ words: 10 })}
61
+ </Text>
62
+ <Text size="tiny" secondary weight="thin" ellipsis>
63
+ {`this is rendered as ${
64
+ isMobileView ? 'mobile' : 'desktop'
65
+ } view`}
66
+ </Text>
67
+ </Box>
68
+ ),
69
+ },
70
+ ],
71
+ })}
72
+ renderError={() => <EmptyState title="Error has occured" />}
73
+ renderEmptyState={() => (
74
+ <EmptyState title="You don’t have any contacts that support this action." />
75
+ )}
76
+ />
77
+ );
78
+ }
@@ -31,254 +31,25 @@ import { PickerStandalone } from '@wix/patterns';
31
31
 
32
32
  ### Basic
33
33
 
34
- ```tsx
35
- import React from 'react';
36
- import { EmptyState } from '@wix/design-system';
37
- import { queryContacts } from '@wix/ambassador-contacts-v4-contact/http';
38
- import {
39
- OffsetQuery,
40
- PickerStandalone,
41
- usePickerStandalone,
42
- } from '@wix/patterns';
43
- import { useHttpClient } from '@wix/fe-essentials/react';
44
-
45
- function Basic() {
46
- const httpClient = useHttpClient();
47
-
48
- const fetchData = (query: OffsetQuery) => {
49
- const { limit, offset, search } = query;
50
- return httpClient
51
- .request(
52
- queryContacts({
53
- query: { paging: { limit, offset } },
54
- search,
55
- }),
56
- )
57
- .then(({ data: { contacts, pagingMetadata } }) => ({
58
- items: contacts || [],
59
- total: pagingMetadata?.total,
60
- }));
61
- };
62
-
63
- const state = usePickerStandalone({
64
- queryName: 'picker-standalone-basic',
65
- fetchData,
66
- limit: 25,
67
- defaultDestinationUrl: 'https://www.wix.com',
68
- fetchErrorMessage: () => 'Error fetching contacts',
69
- itemName: (contact) => contact.name as string,
70
- });
71
-
72
- return (
73
- <PickerStandalone
74
- height="666px"
75
- defaultTitle="Select a Contact"
76
- state={state}
77
- renderError={() => <EmptyState title="Error has occured" />}
78
- renderEmptyState={() => (
79
- <EmptyState title="You don't have any contacts that support this action." />
80
- )}
81
- />
82
- );
83
- }
84
- ```
34
+ Example code: read `dist/docs/PickerStandalone/basic.tsx`
85
35
 
86
36
  ---
87
37
 
88
38
  ### Custom Empty State
89
39
 
90
- ```tsx
91
- import React from 'react';
92
- import { EmptyState } from '@wix/design-system';
93
- import { PickerStandalone, usePickerStandalone } from '@wix/patterns';
94
- import { Contact } from '@wix/ambassador-contacts-v4-contact/types';
95
-
96
- function PickerStandaloneEmptyStateExample() {
97
- const fetchData = async () =>
98
- Promise.resolve({
99
- items: [] as Contact[],
100
- total: 0,
101
- });
102
-
103
- const state = usePickerStandalone({
104
- queryName: 'picker-standalone-empty-state',
105
- fetchData,
106
- limit: 25,
107
- defaultDestinationUrl: 'https://www.wix.com',
108
- fetchErrorMessage: () => 'Error fetching contacts',
109
- itemName: (contact) => contact.id as string,
110
- });
111
-
112
- return (
113
- <PickerStandalone
114
- height="666px"
115
- defaultTitle="Select a Contact"
116
- state={state}
117
- renderError={() => <EmptyState title="Error has occured" />}
118
- renderEmptyState={() => (
119
- <EmptyState title="You don’t have any contacts that support this action." />
120
- )}
121
- />
122
- );
123
- }
124
- ```
40
+ Example code: read `dist/docs/PickerStandalone/custom-empty-state.tsx`
125
41
 
126
42
  ---
127
43
 
128
44
  ### Custom Items
129
45
 
130
- ```tsx
131
- import Chance from 'chance';
132
- import React from 'react';
133
- import { Avatar, EmptyState, Box, Text } from '@wix/design-system';
134
- import { queryContacts } from '@wix/ambassador-contacts-v4-contact/http';
135
- import {
136
- OffsetQuery,
137
- PickerStandalone,
138
- usePickerStandalone,
139
- } from '@wix/patterns';
140
- import { useHttpClient } from '@wix/fe-essentials/react';
141
-
142
- function PickerStandaloneCustomItemsExample() {
143
- const chance = Chance();
144
- const httpClient = useHttpClient();
145
-
146
- const fetchData = (query: OffsetQuery) => {
147
- const { limit, offset, search } = query;
148
- return httpClient
149
- .request(
150
- queryContacts({
151
- query: { paging: { limit, offset } },
152
- search,
153
- }),
154
- )
155
- .then(({ data: { contacts, pagingMetadata } }) => ({
156
- items: contacts || [],
157
- total: pagingMetadata?.total,
158
- }));
159
- };
160
-
161
- const state = usePickerStandalone({
162
- queryName: 'picker-standalone-custom-items',
163
- fetchData,
164
- limit: 25,
165
- defaultDestinationUrl: 'https://www.wix.com',
166
- fetchErrorMessage: () => 'Error fetching contacts',
167
- itemName: (contact) => contact.id as string,
168
- });
169
-
170
- return (
171
- <PickerStandalone
172
- height="666px"
173
- defaultTitle="Select a Contact"
174
- state={state}
175
- renderItem={(contact, _index, { isMobileView }) => ({
176
- options: [
177
- {
178
- value: <Avatar name={contact.name} shape="square" />,
179
- align: 'left',
180
- width: 100,
181
- },
182
- {
183
- align: 'left',
184
- value: (
185
- <Box direction="vertical" width="300px">
186
- <Text size="medium" secondary weight="thin">
187
- {contact.name}
188
- </Text>
189
- <Text size="small" secondary weight="thin" ellipsis>
190
- Long Text: {chance.sentence({ words: 10 })}
191
- </Text>
192
- <Text size="tiny" secondary weight="thin" ellipsis>
193
- {`this is rendered as ${
194
- isMobileView ? 'mobile' : 'desktop'
195
- } view`}
196
- </Text>
197
- </Box>
198
- ),
199
- },
200
- ],
201
- })}
202
- renderError={() => <EmptyState title="Error has occured" />}
203
- renderEmptyState={() => (
204
- <EmptyState title="You don’t have any contacts that support this action." />
205
- )}
206
- />
207
- );
208
- }
209
- ```
46
+ Example code: read `dist/docs/PickerStandalone/custom-items.tsx`
210
47
 
211
48
  ---
212
49
 
213
50
  ### CreateNew
214
51
 
215
- ```tsx
216
- import React from 'react';
217
- import { EmptyState, TextButton } from '@wix/design-system';
218
- import { queryContacts } from '@wix/ambassador-contacts-v4-contact/http';
219
- import {
220
- OffsetQuery,
221
- PickerStandalone,
222
- usePickerStandalone,
223
- } from '@wix/patterns';
224
- import { useHttpClient } from '@wix/fe-essentials/react';
225
-
226
- function PickerStandaloneCreateNewExample() {
227
- const httpClient = useHttpClient();
228
-
229
- const fetchData = (query: OffsetQuery) => {
230
- const { limit, offset, search } = query;
231
- return httpClient
232
- .request(
233
- queryContacts({
234
- query: { paging: { limit, offset } },
235
- search,
236
- }),
237
- )
238
- .then(({ data: { contacts, pagingMetadata } }) => ({
239
- items: contacts || [],
240
- total: pagingMetadata?.total,
241
- }));
242
- };
243
-
244
- const state = usePickerStandalone({
245
- queryName: 'picker-standalone-basic',
246
- fetchData,
247
- limit: 25,
248
- defaultDestinationUrl: 'https://www.wix.com',
249
- fetchErrorMessage: () => 'Error fetching contacts',
250
- itemName: (contact) => contact.id as string,
251
- });
252
-
253
- return (
254
- <PickerStandalone
255
- height="666px"
256
- defaultTitle="Select a Contact"
257
- state={state}
258
- createNewAction={
259
- <TextButton
260
- as="a"
261
- href="contacts"
262
- target="_blank"
263
- onClick={() => {
264
- const onFocus = () => {
265
- window.removeEventListener('focus', onFocus);
266
- state.picker.clearResultAndMoveToStart({ force: true });
267
- };
268
- window.addEventListener('focus', onFocus);
269
- }}
270
- >
271
- Create New Contact
272
- </TextButton>
273
- }
274
- renderError={() => <EmptyState title="Error has occured" />}
275
- renderEmptyState={() => (
276
- <EmptyState title="You don’t have any contacts that support this action." />
277
- )}
278
- />
279
- );
280
- }
281
- ```
52
+ Example code: read `dist/docs/PickerStandalone/createnew.tsx`
282
53
 
283
54
  ## API
284
55
 
@@ -223,79 +223,14 @@ function OverrideButtonDefaults() {
223
223
 
224
224
  ## API
225
225
 
226
- ### Extends
227
-
228
- [ButtonProps](https://www.docs.wixdesignsystem.com/?path=/story/components-actions--button)
229
-
230
226
  ### Props
231
227
 
232
- | Prop | Type | Required | Default | Description |
233
- |------|------|----------|---------|-------------|
234
- | `onClick` | `any` | No | - | Callback that is called each time the button is clicked. |
235
- | `className` | `string` | No | - | Specifies a CSS class name to be appended to the component’s root element. |
236
- | `children` | `string \| number \| boolean \| {} \| ReactElement<any, string \| JSXElementConstructor<any>> \| ReactNodeArray \| ReactPortal \| ... 39 more ...` | No | - | Accepts any item as a child element. For all common cases pass a standard text string. |
237
- | `disabled` | `boolean` | No | - | Specifies whether user interactions are disabled. |
238
- | `ellipsis` | `boolean` | No | - | Specifies whether component handles text overflow with ellipsis. If enabled, label that exceed available space will be displayed inside of a tooltip when user hover over a button. |
239
- | `prefixIcon` | `IconElement` | No | - | Pass an icon or a component to display at the front of a label (e.g., svg, image, etc.) |
240
- | `suffixIcon` | `IconElement` | No | - | Pass an icon or a component to display at the end of a label (e.g., svg, image, etc.) |
241
- | `aria-label` | `any` | No | - | Defines a string value that labels the current element. @see aria-labelledby. |
242
- | `internalDataHook` | `string` | No | - | Applies internal dataHook for internal testkits |
243
- | `inputMode` | `any` | No | - | Hints at the type of data that might be entered by the user while editing the element or its contents @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute |
244
- | `is` | `any` | No | - | Specify that a standard HTML element should behave like a defined custom built-in element @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is |
245
- | `aria-activedescendant` | `any` | No | - | Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. |
246
- | `aria-atomic` | `any` | No | - | Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. |
247
- | `aria-autocomplete` | `any` | No | - | Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made. |
248
- | `aria-busy` | `any` | No | - | Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. |
249
- | `aria-checked` | `any` | No | - | Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. @see aria-pressed @see aria-selected. |
250
- | `aria-colcount` | `any` | No | - | Defines the total number of columns in a table, grid, or treegrid. @see aria-colindex. |
251
- | `aria-colindex` | `any` | No | - | Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid. @see aria-colcount @see aria-colspan. |
252
- | `aria-colspan` | `any` | No | - | Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. @see aria-colindex @see aria-rowspan. |
253
- | `aria-controls` | `any` | No | - | Identifies the element (or elements) whose contents or presence are controlled by the current element. @see aria-owns. |
254
- | `aria-current` | `any` | No | - | Indicates the element that represents the current item within a container or set of related elements. |
255
- | `aria-describedby` | `any` | No | - | Identifies the element (or elements) that describes the object. @see aria-labelledby |
256
- | `aria-details` | `any` | No | - | Identifies the element that provides a detailed, extended description for the object. @see aria-describedby. |
257
- | `aria-disabled` | `any` | No | - | Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. @see aria-hidden @see aria-readonly. |
258
- | `aria-dropeffect` | `any` | No | - | Indicates what functions can be performed when a dragged object is released on the drop target. @deprecated in ARIA 1.1 |
259
- | `aria-errormessage` | `any` | No | - | Identifies the element that provides an error message for the object. @see aria-invalid @see aria-describedby. |
260
- | `aria-expanded` | `any` | No | - | Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. |
261
- | `aria-flowto` | `any` | No | - | Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order. |
262
- | `aria-grabbed` | `any` | No | - | Indicates an element's "grabbed" state in a drag-and-drop operation. @deprecated in ARIA 1.1 |
263
- | `aria-haspopup` | `any` | No | - | Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. |
264
- | `aria-hidden` | `any` | No | - | Indicates whether the element is exposed to an accessibility API. @see aria-disabled. |
265
- | `aria-invalid` | `any` | No | - | Indicates the entered value does not conform to the format expected by the application. @see aria-errormessage. |
266
- | `aria-keyshortcuts` | `any` | No | - | Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. |
267
- | `aria-labelledby` | `any` | No | - | Identifies the element (or elements) that labels the current element. @see aria-describedby. |
268
- | `aria-level` | `any` | No | - | Defines the hierarchical level of an element within a structure. |
269
- | `aria-live` | `any` | No | - | Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. |
270
- | `aria-modal` | `any` | No | - | Indicates whether an element is modal when displayed. |
271
- | `aria-multiline` | `any` | No | - | Indicates whether a text box accepts multiple lines of input or only a single line. |
272
- | `aria-multiselectable` | `any` | No | - | Indicates that the user may select more than one item from the current selectable descendants. |
273
- | `aria-orientation` | `any` | No | - | Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. |
274
- | `aria-owns` | `any` | No | - | Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship. @see aria-controls. |
275
- | `aria-placeholder` | `any` | No | - | Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. |
276
- | `aria-posinset` | `any` | No | - | Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. @see aria-setsize. |
277
- | `aria-pressed` | `any` | No | - | Indicates the current "pressed" state of toggle buttons. @see aria-checked @see aria-selected. |
278
- | `aria-readonly` | `any` | No | - | Indicates that the element is not editable, but is otherwise operable. @see aria-disabled. |
279
- | `aria-relevant` | `any` | No | - | Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. @see aria-atomic. |
280
- | `aria-required` | `any` | No | - | Indicates that user input is required on the element before a form may be submitted. |
281
- | `aria-roledescription` | `any` | No | - | Defines a human-readable, author-localized description for the role of an element. |
282
- | `aria-rowcount` | `any` | No | - | Defines the total number of rows in a table, grid, or treegrid. @see aria-rowindex. |
283
- | `aria-rowindex` | `any` | No | - | Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid. @see aria-rowcount @see aria-rowspan. |
284
- | `aria-rowspan` | `any` | No | - | Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. @see aria-rowindex @see aria-colspan. |
285
- | `aria-selected` | `any` | No | - | Indicates the current "selected" state of various widgets. @see aria-checked @see aria-pressed. |
286
- | `aria-setsize` | `any` | No | - | Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. @see aria-posinset. |
287
- | `aria-sort` | `any` | No | - | Indicates if items in a table or grid are sorted in ascending or descending order. |
288
- | `aria-valuemax` | `any` | No | - | Defines the maximum allowed value for a range widget. |
289
- | `aria-valuemin` | `any` | No | - | Defines the minimum allowed value for a range widget. |
290
- | `aria-valuenow` | `any` | No | - | Defines the current value for a range widget. @see aria-valuetext. |
291
- | `aria-valuetext` | `any` | No | - | Defines the human readable text alternative of aria-valuenow for a range widget. |
292
- | `onKeyPress` | `any` | No | - | @deprecated |
293
- | `onKeyPressCapture` | `any` | No | - | @deprecated |
294
- | `onPointerEnterCapture` | `any` | No | - | @deprecated This event handler was always ignored by React. It was added by mistake to the types. |
295
- | `onPointerLeaveCapture` | `any` | No | - | @deprecated This event handler was always ignored by React. It was added by mistake to the types. |
296
- | `priority` | `"primary" \| "secondary" \| "tertiary"` | No | - | Specifies the priority of a button. |
297
- | `showTooltip` | `boolean` | No | - | Specifies whether the full button label is displayed in a tooltip when label overflows available space. Behaviour is enabled by default. Set property value to false to show ellipsis without a tooltip. |
298
- | `tooltipProps` | `TooltipCommonProps` | No | - | Allows to pass all common tooltip props. Use it to customize a tooltip created from text ellipsis. @linkTypeTo components-overlays--tooltip |
228
+ Read `dist/dts-bundle/components/PrimaryActionButton.d.ts` for `PrimaryActionButton`'s full prop list, with types and
229
+ descriptions. They are not repeated here, so the bundle is the single source of truth.
230
+
231
+ A one-line stub in that file is an answer, not a truncation: an empty body with a
232
+ "Produced by" note means you get the value from that hook or factory rather than
233
+ constructing it. `dist/dts-bundle/index.json` maps every name to its bundle path.
299
234
 
300
235
  ## BI
301
236
 
@@ -156,18 +156,10 @@ function WithSubitems() {
156
156
 
157
157
  ### Props
158
158
 
159
- | Prop | Type | Required | Default | Description |
160
- |------|------|----------|---------|-------------|
161
- | `onClick` | `any` | No | - | A callback that runs each time the button is clicked. |
162
- | `label` | `string` | No | - | Button label. |
163
- | `subtitle` | `string` | No | - | Subtitle text displayed for buttons in the popover menu. |
164
- | `prefixIcon` | `IconElement` | No | - | An icon displayed before the button label. |
165
- | `tooltip` | `string` | No | - | An optional tooltip when the popover is disabled. |
166
- | `disabled` | `boolean` | No | - | An optional disabled flag. |
167
- | `dataHook` | `string` | No | - | A data-hook for the button. |
168
- | `biName` | `string` | No | - | A unique name for a `cairoPageCtaClicked` BI event. |
169
- | `biAdditionalInfo` | `string` | No | - | Additional info for a `cairoPageCtaClicked` BI event. |
170
- | `subItems` | `ActionSubitem[] \| ActionSubitem[][]` | No | - | Action items to render in a popover menu. Use nested arrays to group actions. A divider is added between each group. \| [ActionSubitem[][]](./?path=/story/common-types--actionsubitem) |
171
- | `popoverMenuProps` | `Partial<PopoverMenuProps>` | No | - | Custom [`PopoverMenuProps`](https://www.docs.wixdesignsystem.com/?path=/story/components-overlays--popovermenu) to pass to the sub-items popover menu. |
172
- | `ref` | `Ref<HTMLButtonElement>` | No | - | Optional ref to the underlying button element (for focus restoration, etc.). |
159
+ Read `dist/dts-bundle/components/PrimaryActions.d.ts` for `PrimaryActions`'s full prop list, with types and
160
+ descriptions. They are not repeated here, so the bundle is the single source of truth.
161
+
162
+ A one-line stub in that file is an answer, not a truncation: an empty body with a
163
+ "Produced by" note means you get the value from that hook or factory rather than
164
+ constructing it. `dist/dts-bundle/index.json` maps every name to its bundle path.
173
165