@wix/patterns 1.255.0 → 1.256.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.
- package/dist/cjs/components/CardContainer/CardContainer.st.css.js +2 -2
- package/dist/cjs/components/CardContainer/CardContainer.st.css.js.map +1 -1
- package/dist/cjs/components/Collapse/Collapse.st.css.js +3 -3
- package/dist/cjs/components/Collapse/Collapse.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionPageNew/CollectionPage.st.css.js +2 -2
- package/dist/cjs/components/CollectionPageNew/CollectionPage.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionTable/CollectionTable.st.css.js +2 -2
- package/dist/cjs/components/CollectionTable/CollectionTable.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionTable/CollectionTableWSRTable.js +16 -11
- package/dist/cjs/components/CollectionTable/CollectionTableWSRTable.js.map +1 -1
- package/dist/cjs/components/CollectionToolbar/CollectionToolbar.st.css.js +5 -5
- package/dist/cjs/components/CollectionToolbar/CollectionToolbar.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionToolbar/SearchOrCustomFilter.st.css.js +4 -4
- package/dist/cjs/components/CollectionToolbar/SearchOrCustomFilter.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js +2 -2
- package/dist/cjs/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.st.css.js +2 -2
- package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.st.css.js.map +1 -1
- package/dist/cjs/components/DragHandle/DragHandle.st.css.js +2 -2
- package/dist/cjs/components/DragHandle/DragHandle.st.css.js.map +1 -1
- package/dist/cjs/components/EntityPage/EntityPagePlain.st.css.js +2 -2
- package/dist/cjs/components/EntityPage/EntityPagePlain.st.css.js.map +1 -1
- package/dist/cjs/components/Fade/Fade.st.css.js +2 -2
- package/dist/cjs/components/Fade/Fade.st.css.js.map +1 -1
- package/dist/cjs/components/Heading/Heading.st.css.js +2 -2
- package/dist/cjs/components/Heading/Heading.st.css.js.map +1 -1
- package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js +2 -2
- package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js.map +1 -1
- package/dist/cjs/components/LoadingRow/LoadingRow.st.css.js +3 -3
- package/dist/cjs/components/LoadingRow/LoadingRow.st.css.js.map +1 -1
- package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
- package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js.map +1 -1
- package/dist/cjs/components/MaxLines/MaxLines.st.css.js +2 -2
- package/dist/cjs/components/MaxLines/MaxLines.st.css.js.map +1 -1
- package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +2 -2
- package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js +2 -2
- package/dist/cjs/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js +5 -5
- package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTableWSRTable.js +12 -6
- package/dist/cjs/components/NestedTable/NestedTableWSRTable.js.map +1 -1
- package/dist/cjs/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js +2 -2
- package/dist/cjs/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js +2 -2
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js.map +1 -1
- package/dist/cjs/components/PickerContent/PickerContent.st.css.js +2 -2
- package/dist/cjs/components/PickerContent/PickerContent.st.css.js.map +1 -1
- package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js +4 -4
- package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js.map +1 -1
- package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
- package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js.map +1 -1
- package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
- package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js.map +1 -1
- package/dist/cjs/components/SkeletonCard/SkeletonCard.st.css.js +3 -3
- package/dist/cjs/components/SkeletonCard/SkeletonCard.st.css.js.map +1 -1
- package/dist/cjs/components/SlidingModal/SlidingModal.st.css.js +2 -2
- package/dist/cjs/components/SlidingModal/SlidingModal.st.css.js.map +1 -1
- package/dist/cjs/components/TabsFilter/TabsFilter.st.css.js +3 -3
- package/dist/cjs/components/TabsFilter/TabsFilter.st.css.js.map +1 -1
- package/dist/cjs/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
- package/dist/cjs/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js.map +1 -1
- package/dist/cjs/components/ToolbarItem/ToolbarItem.st.css.js +2 -2
- package/dist/cjs/components/ToolbarItem/ToolbarItem.st.css.js.map +1 -1
- package/dist/cjs/components/ToolbarItemBox/ToolbarItemBox.st.css.js +2 -2
- package/dist/cjs/components/ToolbarItemBox/ToolbarItemBox.st.css.js.map +1 -1
- package/dist/cjs/components/common.st.css.js +4 -4
- package/dist/cjs/components/common.st.css.js.map +1 -1
- package/dist/cjs/state/CollectionPage/CollectionPageHeader.st.css.js +2 -2
- package/dist/cjs/state/CollectionPage/CollectionPageHeader.st.css.js.map +1 -1
- package/dist/cjs/state/FormPage/FormPageHeader.st.css.js +2 -2
- package/dist/cjs/state/FormPage/FormPageHeader.st.css.js.map +1 -1
- package/dist/cjs/styles.global.css +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/components/CardContainer/CardContainer.st.css.js +2 -2
- package/dist/esm/components/CardContainer/CardContainer.st.css.js.map +1 -1
- package/dist/esm/components/Collapse/Collapse.st.css.js +2 -2
- package/dist/esm/components/CollectionPageNew/CollectionPage.st.css.js +2 -2
- package/dist/esm/components/CollectionPageNew/CollectionPage.st.css.js.map +1 -1
- package/dist/esm/components/CollectionTable/CollectionTable.st.css.js +2 -2
- package/dist/esm/components/CollectionTable/CollectionTable.st.css.js.map +1 -1
- package/dist/esm/components/CollectionTable/CollectionTableWSRTable.js +4 -2
- package/dist/esm/components/CollectionTable/CollectionTableWSRTable.js.map +1 -1
- package/dist/esm/components/CollectionToolbar/CollectionToolbar.st.css.js +2 -2
- package/dist/esm/components/CollectionToolbar/SearchOrCustomFilter.st.css.js +2 -2
- package/dist/esm/components/CollectionToolbar/SearchOrCustomFilter.st.css.js.map +1 -1
- package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js +2 -2
- package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.st.css.js +2 -2
- package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.st.css.js.map +1 -1
- package/dist/esm/components/DragHandle/DragHandle.st.css.js +2 -2
- package/dist/esm/components/EntityPage/EntityPagePlain.st.css.js +2 -2
- package/dist/esm/components/Fade/Fade.st.css.js +2 -2
- package/dist/esm/components/Fade/Fade.st.css.js.map +1 -1
- package/dist/esm/components/Heading/Heading.st.css.js +2 -2
- package/dist/esm/components/Heading/Heading.st.css.js.map +1 -1
- package/dist/esm/components/InputOverflow/InputOverflow.st.css.js +2 -2
- package/dist/esm/components/LoadingRow/LoadingRow.st.css.js +3 -3
- package/dist/esm/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
- package/dist/esm/components/MaxHeightText/MaxHeightText.st.css.js.map +1 -1
- package/dist/esm/components/MaxLines/MaxLines.st.css.js +2 -2
- package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +2 -2
- package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js.map +1 -1
- package/dist/esm/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js +2 -2
- package/dist/esm/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js.map +1 -1
- package/dist/esm/components/NestedTable/NestedTableRow.st.css.js +2 -2
- package/dist/esm/components/NestedTable/NestedTableRow.st.css.js.map +1 -1
- package/dist/esm/components/NestedTable/NestedTableWSRTable.js +4 -1
- package/dist/esm/components/NestedTable/NestedTableWSRTable.js.map +1 -1
- package/dist/esm/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js +2 -2
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js +2 -2
- package/dist/esm/components/PickerContent/PickerContent.st.css.js +2 -2
- package/dist/esm/components/PickerContent/PickerContentAdditionalStep.st.css.js +2 -2
- package/dist/esm/components/PickerContent/PickerContentAdditionalStep.st.css.js.map +1 -1
- package/dist/esm/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
- package/dist/esm/components/PickerTableListItem/PickerTableListItem.st.css.js.map +1 -1
- package/dist/esm/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
- package/dist/esm/components/ScrollableContent/ScrollableContent.st.css.js.map +1 -1
- package/dist/esm/components/SkeletonCard/SkeletonCard.st.css.js +2 -2
- package/dist/esm/components/SlidingModal/SlidingModal.st.css.js +2 -2
- package/dist/esm/components/SlidingModal/SlidingModal.st.css.js.map +1 -1
- package/dist/esm/components/TabsFilter/TabsFilter.st.css.js +2 -2
- package/dist/esm/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
- package/dist/esm/components/ToolbarItem/ToolbarItem.st.css.js +2 -2
- package/dist/esm/components/ToolbarItemBox/ToolbarItemBox.st.css.js +2 -2
- package/dist/esm/components/ToolbarItemBox/ToolbarItemBox.st.css.js.map +1 -1
- package/dist/esm/components/common.st.css.js +2 -2
- package/dist/esm/components/common.st.css.js.map +1 -1
- package/dist/esm/state/CollectionPage/CollectionPageHeader.st.css.js +2 -2
- package/dist/esm/state/FormPage/FormPageHeader.st.css.js +2 -2
- package/dist/esm/styles.global.css +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/components/CardContainer/CardContainer.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionPageNew/CollectionPage.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionTable/CollectionTable.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionTable/CollectionTableWSRTable.d.ts.map +1 -1
- package/dist/types/components/CollectionToolbar/SearchOrCustomFilter.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/ViewsDropdown.st.css.d.ts.map +1 -1
- package/dist/types/components/Fade/Fade.st.css.d.ts.map +1 -1
- package/dist/types/components/Heading/Heading.st.css.d.ts.map +1 -1
- package/dist/types/components/MaxHeightText/MaxHeightText.st.css.d.ts.map +1 -1
- package/dist/types/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTableRow.st.css.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTableWSRTable.d.ts.map +1 -1
- package/dist/types/components/PickerContent/PickerContentAdditionalStep.st.css.d.ts.map +1 -1
- package/dist/types/components/PickerTableListItem/PickerTableListItem.st.css.d.ts.map +1 -1
- package/dist/types/components/ScrollableContent/ScrollableContent.st.css.d.ts.map +1 -1
- package/dist/types/components/SlidingModal/SlidingModal.st.css.d.ts.map +1 -1
- package/dist/types/components/ToolbarItemBox/ToolbarItemBox.st.css.d.ts.map +1 -1
- package/dist/types/components/common.st.css.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +147 -3
- package/src/aiAssistant/aiAssistant.ts +28 -0
- package/src/aiAssistant/createAiAssistant.ts +75 -0
- package/src/aiAssistant/index.ts +2 -0
- package/src/aiAssistant/useAiAssistantContext.ts +14 -0
- package/src/alpha/index.ts +3 -0
- package/src/bm/WixPatternsBMProvider.tsx +79 -0
- package/src/bm/buildBMCairoEssentials.ts +136 -0
- package/src/bm/buildCreateEssentials.ts +64 -0
- package/src/bm/errorMonitorCompat.ts +39 -0
- package/src/bm/testProviderPropsOverrides.ts +23 -0
- package/src/bm/useExperimentsCompat.ts +16 -0
- package/src/bm/usePickerModal.ts +90 -0
- package/src/bm/usePlatformApiCompat.ts +13 -0
- package/src/bm/warmUpPickerStandalone.ts +25 -0
- package/src/bm/withWixPatternsProvider.tsx +14 -0
- package/src/components/ActionCell/ActionCell.ts +75 -0
- package/src/components/ActionCell/index.ts +4 -0
- package/src/components/ActionCell/useActionCellColumn.ts +43 -0
- package/src/components/ActionCell/useActionCellColumnBase.ts +24 -0
- package/src/components/ActionCell/useRenderActionCellColumn.tsx +34 -0
- package/src/components/ActionControl/ActionButton.tsx +37 -0
- package/src/components/ActionControl/ActionControl.tsx +19 -0
- package/src/components/ActionControl/ActionControl.uni.driver.ts +30 -0
- package/src/components/ActionControl/ActionPopover.tsx +75 -0
- package/src/components/ActionControl/ActionSubItemProps.tsx +67 -0
- package/src/components/ActionControl/index.ts +4 -0
- package/src/components/ActionModal/CustomActionModal.tsx +64 -0
- package/src/components/ActionModal/MessageActionModal.tsx +73 -0
- package/src/components/ActionModal/index.ts +2 -0
- package/src/components/AppliedFiltersTagList/AppliedFiltersTagList.tsx +60 -0
- package/src/components/AppliedFiltersTagList/AppliedFiltersTagList.uni.driver.ts +38 -0
- package/src/components/AppliedFiltersTagList/AppliedFiltersTagListState.tsx +204 -0
- package/src/components/AppliedFiltersTagList/FilterTagContent.tsx +26 -0
- package/src/components/AppliedFiltersTagList/index.ts +1 -0
- package/src/components/AutoCompleteFilter/AutoCompleteFilter.tsx +29 -0
- package/src/components/AutoCompleteFilter/AutoCompleteFilterState.ts +97 -0
- package/src/components/AutoCompleteFilter/index.tsx +1 -0
- package/src/components/BorderOnlyBox.tsx +14 -0
- package/src/components/BulkAction/BulkActionModalRenderProp.ts +41 -0
- package/src/components/BulkAction/BulkActionToolbarRenderProp.ts +14 -0
- package/src/components/BulkAction/MultiCollectionBulkActionModal.tsx +35 -0
- package/src/components/BulkAction/MultiCollectionBulkActionRenderProps.ts +20 -0
- package/src/components/BulkAction/MultiCollectionBulkActionToolbar.tsx +38 -0
- package/src/components/BulkAction/SingleCollectionBulkActionModal.tsx +43 -0
- package/src/components/BulkAction/SingleCollectionBulkActionToolbar.tsx +54 -0
- package/src/components/BulkAction/index.ts +7 -0
- package/src/components/BulkActionButton/BulkActionButton.tsx +26 -0
- package/src/components/BulkActionButton/index.ts +1 -0
- package/src/components/BulkActionToolbar/BulkActionToolbar.driver.tsx +61 -0
- package/src/components/BulkActionToolbar/BulkActionToolbar.tsx +66 -0
- package/src/components/BulkActionToolbar/BulkActionToolbar.uni.driver.ts +36 -0
- package/src/components/BulkActionToolbar/index.ts +1 -0
- package/src/components/CardContainer/CardContainer.st.css +7 -0
- package/src/components/CardContainer/CardContainer.st.css.ts +25 -0
- package/src/components/CardContainer/CardContainer.tsx +83 -0
- package/src/components/CardContainer/CardContainer.uni.driver.ts +16 -0
- package/src/components/CardContainer/index.ts +1 -0
- package/src/components/Collapse/Collapse.st.css +8 -0
- package/src/components/Collapse/Collapse.st.css.ts +25 -0
- package/src/components/Collapse/Collapse.tsx +152 -0
- package/src/components/Collapse/index.ts +1 -0
- package/src/components/CollectionActionsBar.tsx +16 -0
- package/src/components/CollectionAutoComplete/CollectionAutoComplete.tsx +155 -0
- package/src/components/CollectionAutoComplete/index.tsx +1 -0
- package/src/components/CollectionCard/CollectionCard.tsx +127 -0
- package/src/components/CollectionCard/index.ts +1 -0
- package/src/components/CollectionContext.ts +6 -0
- package/src/components/CollectionEmptyStateBase/CollectionEmptyStateBase.tsx +22 -0
- package/src/components/CollectionEmptyStateBase/index.ts +1 -0
- package/src/components/CollectionErrorState/CollectionErrorState.tsx +55 -0
- package/src/components/CollectionErrorState/index.ts +1 -0
- package/src/components/CollectionFilter/CollectionFilter.tsx +32 -0
- package/src/components/CollectionFilter/CollectionFilterState.ts +97 -0
- package/src/components/CollectionFilter/index.ts +1 -0
- package/src/components/CollectionItemActions/CollectionItemActions.tsx +95 -0
- package/src/components/CollectionItemActions/CollectionItemActions.uni.driver.ts +101 -0
- package/src/components/CollectionItemActions/CollectionItemActionsHelper.ts +131 -0
- package/src/components/CollectionItemActions/getDefaultActionCellProps.ts +6 -0
- package/src/components/CollectionItemActions/index.ts +1 -0
- package/src/components/CollectionListHeader/CollectionListHeader.tsx +46 -0
- package/src/components/CollectionListHeader/index.ts +1 -0
- package/src/components/CollectionListItem/CollectionListChildSlot.tsx +16 -0
- package/src/components/CollectionListItem/CollectionListItem.tsx +49 -0
- package/src/components/CollectionListItem/CollectionListItem.uni.driver.ts +14 -0
- package/src/components/CollectionListItem/index.ts +2 -0
- package/src/components/CollectionListRow/CollectionListRow.tsx +99 -0
- package/src/components/CollectionListRow/index.ts +1 -0
- package/src/components/CollectionModal.tsx +18 -0
- package/src/components/CollectionMultiSelectCheckbox/CollectionMultiSelectCheckbox.tsx +204 -0
- package/src/components/CollectionMultiSelectCheckbox/index.ts +1 -0
- package/src/components/CollectionPage/CollectionPage.tsx +60 -0
- package/src/components/CollectionPage/index.ts +1 -0
- package/src/components/CollectionPageContent/CollectionPageContent.tsx +17 -0
- package/src/components/CollectionPageContent/index.ts +1 -0
- package/src/components/CollectionPageHeader/CollectionPageHeader.tsx +33 -0
- package/src/components/CollectionPageHeader/index.ts +1 -0
- package/src/components/CollectionPageHeaderNew/CollectionPageHeader.tsx +69 -0
- package/src/components/CollectionPageHeaderNew/index.ts +1 -0
- package/src/components/CollectionPageNew/CollectionPage.st.css +9 -0
- package/src/components/CollectionPageNew/CollectionPage.st.css.ts +25 -0
- package/src/components/CollectionPageNew/CollectionPage.tsx +90 -0
- package/src/components/CollectionPageNew/CollectionPage.uni.driver.ts +42 -0
- package/src/components/CollectionPageNew/index.ts +1 -0
- package/src/components/CollectionPageNew/useCollectionPageLoadReporting.ts +74 -0
- package/src/components/CollectionPagination.tsx +42 -0
- package/src/components/CollectionSearch.tsx +54 -0
- package/src/components/CollectionSectionHeader/CollectionSectionHeader.tsx +57 -0
- package/src/components/CollectionSectionHeader/CollectionSectionHeader.types.ts +29 -0
- package/src/components/CollectionSectionHeader/CollectionSectionHeader.uni.driver.ts +22 -0
- package/src/components/CollectionSectionHeader/CollectionSectionHeaderActionBar.tsx +45 -0
- package/src/components/CollectionSectionHeader/index.ts +6 -0
- package/src/components/CollectionTable/CollectionTable.st.css +11 -0
- package/src/components/CollectionTable/CollectionTable.st.css.ts +25 -0
- package/src/components/CollectionTable/CollectionTable.tsx +394 -0
- package/src/components/CollectionTable/CollectionTable.uni.driver.ts +399 -0
- package/src/components/CollectionTable/CollectionTableBaseCommonProps.ts +25 -0
- package/src/components/CollectionTable/CollectionTableContent.tsx +63 -0
- package/src/components/CollectionTable/CollectionTableContentCard.tsx +33 -0
- package/src/components/CollectionTable/CollectionTableWSRTable.tsx +298 -0
- package/src/components/CollectionTable/index.ts +1 -0
- package/src/components/CollectionTable/useTableCollectionSyncProps.ts +104 -0
- package/src/components/CollectionTableActionsColumn.tsx +62 -0
- package/src/components/CollectionToolbar/CollectionToolbar.st.css +40 -0
- package/src/components/CollectionToolbar/CollectionToolbar.st.css.ts +25 -0
- package/src/components/CollectionToolbar/CollectionToolbar.tsx +315 -0
- package/src/components/CollectionToolbar/CollectionToolbar.uni.driver.ts +628 -0
- package/src/components/CollectionToolbar/CollectionToolbarActionsGroupProps.ts +14 -0
- package/src/components/CollectionToolbar/CollectionToolbarActionsGroupResponsiveLayout.tsx +90 -0
- package/src/components/CollectionToolbar/CollectionToolbarActionsToolbarItemsGroup.tsx +73 -0
- package/src/components/CollectionToolbar/CollectionToolbarContext.ts +9 -0
- package/src/components/CollectionToolbar/CollectionToolbarSkeletonItem.tsx +21 -0
- package/src/components/CollectionToolbar/PrimaryActionButton.tsx +47 -0
- package/src/components/CollectionToolbar/ReorderModeDiscardChangesModal.tsx +26 -0
- package/src/components/CollectionToolbar/ReorderModeToolbar.tsx +105 -0
- package/src/components/CollectionToolbar/ReorderModeToolbar.uni.driver.ts +39 -0
- package/src/components/CollectionToolbar/SearchOrCustomFilter.st.css +10 -0
- package/src/components/CollectionToolbar/SearchOrCustomFilter.st.css.ts +25 -0
- package/src/components/CollectionToolbar/SearchOrCustomFilter.tsx +52 -0
- package/src/components/CollectionToolbar/ToolbarGroupScrollWidthBox.tsx +34 -0
- package/src/components/CollectionToolbar/ToolbarSecondaryActions.tsx +35 -0
- package/src/components/CollectionToolbar/ToolbarSecondaryActions.uni.driver.ts +21 -0
- package/src/components/CollectionToolbar/index.ts +4 -0
- package/src/components/CollectionToolbar/useCollectionToolbarSyncedProps.ts +35 -0
- package/src/components/CollectionToolbarFilters/CollectionToolbarFilters.tsx +248 -0
- package/src/components/CollectionToolbarFilters/CollectionToolbarFiltersState.ts +62 -0
- package/src/components/CollectionToolbarFilters/FiltersPanelSidePanelEntry.tsx +11 -0
- package/src/components/CollectionToolbarFilters/filterElement.ts +7 -0
- package/src/components/CollectionToolbarFilters/index.ts +2 -0
- package/src/components/CollectionToolbarFilters/useFiltersLayout.ts +60 -0
- package/src/components/CollectionToolbarFilters/useFiltersSyncProps.ts +95 -0
- package/src/components/CollectionToolbars/CollectionToolbars.tsx +197 -0
- package/src/components/CollectionToolbars/CollectionToolbarsProvider.tsx +32 -0
- package/src/components/CollectionToolbars/CollectionToolbarsVisualization.tsx +24 -0
- package/src/components/CollectionToolbars/ToolbarAndTitlebarContainer.tsx +35 -0
- package/src/components/CollectionToolbars/ToolbarState.ts +74 -0
- package/src/components/CollectionToolbars/index.ts +1 -0
- package/src/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css +11 -0
- package/src/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.ts +25 -0
- package/src/components/CollectionViewsDropdown/AutoCompleteReadonly.tsx +80 -0
- package/src/components/CollectionViewsDropdown/AutoCompleteReadonlyState.ts +66 -0
- package/src/components/CollectionViewsDropdown/CollectionViewsDropdown.tsx +26 -0
- package/src/components/CollectionViewsDropdown/CollectionViewsDropdown.uni.driver.ts +211 -0
- package/src/components/CollectionViewsDropdown/CollectionViewsDropdownBase.tsx +102 -0
- package/src/components/CollectionViewsDropdown/CollectionViewsDropdownStandalone.tsx +21 -0
- package/src/components/CollectionViewsDropdown/ManageViewPopover.tsx +132 -0
- package/src/components/CollectionViewsDropdown/ManageViewPopover.uni.driver.ts +85 -0
- package/src/components/CollectionViewsDropdown/ViewsDropdown.st.css +3 -0
- package/src/components/CollectionViewsDropdown/ViewsDropdown.st.css.ts +25 -0
- package/src/components/CollectionViewsDropdown/ViewsDropdown.tsx +156 -0
- package/src/components/CollectionViewsDropdown/ViewsDropdownListItem.uni.driver.ts +20 -0
- package/src/components/CollectionViewsDropdown/ViewsDropdownModals.tsx +32 -0
- package/src/components/CollectionViewsDropdown/ViewsDropdownPrefix.tsx +59 -0
- package/src/components/CollectionViewsDropdown/index.ts +3 -0
- package/src/components/CollectionViewsDropdown/modals/RenameView/CollectionRenameViewModal.tsx +143 -0
- package/src/components/CollectionViewsDropdown/modals/RenameView/CollectionRenameViewModal.uni.driver.ts +70 -0
- package/src/components/CollectionViewsDropdown/modals/SaveView/CollectionSaveViewModal.tsx +166 -0
- package/src/components/CollectionViewsDropdown/modals/SaveView/CollectionSaveViewModal.uni.driver.ts +78 -0
- package/src/components/CollectionViewsDropdown/viewsDropdownRenderHelpers.tsx +79 -0
- package/src/components/CounterBadgeButton/CounterBadgeButton.tsx +31 -0
- package/src/components/CounterBadgeButton/index.ts +1 -0
- package/src/components/CtaProps.ts +24 -0
- package/src/components/CustomColumns/CustomColumns.tsx +29 -0
- package/src/components/CustomColumns/CustomColumnsDragAndDrop.ts +7 -0
- package/src/components/CustomColumns/CustomColumnsFull.tsx +14 -0
- package/src/components/CustomColumns/index.ts +2 -0
- package/src/components/CustomColumnsPanel/ColumnListTableListItem.tsx +170 -0
- package/src/components/CustomColumnsPanel/ColumnsList.tsx +115 -0
- package/src/components/CustomColumnsPanel/CustomColumnsCTAButton.tsx +97 -0
- package/src/components/CustomColumnsPanel/CustomColumnsNoResults.tsx +45 -0
- package/src/components/CustomColumnsPanel/CustomColumnsPanel.tsx +93 -0
- package/src/components/CustomColumnsPanel/CustomColumnsPanel.uni.driver.ts +155 -0
- package/src/components/CustomColumnsPanel/CustomColumnsPanelEntry.tsx +36 -0
- package/src/components/CustomColumnsPanel/CustomColumnsSearch.tsx +33 -0
- package/src/components/CustomColumnsPanel/index.ts +1 -0
- package/src/components/CustomFieldFilters/CheckboxCustomFieldFilter.tsx +30 -0
- package/src/components/CustomFieldFilters/DateCustomFieldFilter.tsx +16 -0
- package/src/components/CustomFieldFilters/DateCustomFieldFilterBase.tsx +21 -0
- package/src/components/CustomFieldFilters/DateTimeCustomFieldFilter.tsx +16 -0
- package/src/components/CustomFieldFilters/buildCustomFieldFilterElement.tsx +45 -0
- package/src/components/CustomFieldFilters/index.ts +1 -0
- package/src/components/CustomFieldModal/CustomFieldForm.tsx +367 -0
- package/src/components/CustomFieldModal/CustomFieldFormPiiFields.tsx +79 -0
- package/src/components/CustomFieldModal/CustomFieldModal.tsx +145 -0
- package/src/components/CustomFieldModal/CustomFieldModal.uni.driver.ts +247 -0
- package/src/components/CustomFieldModal/CustomFieldModalPrimaryButton.tsx +56 -0
- package/src/components/CustomFieldModal/CustomFieldTypeDropdown.tsx +157 -0
- package/src/components/CustomFieldModal/index.ts +2 -0
- package/src/components/CustomFields/CustomFieldsDisabledHint.tsx +31 -0
- package/src/components/CustomFields/CustomFieldsDisabledHint.uni.driver.ts +30 -0
- package/src/components/CustomFields/CustomFieldsDisabledTooltip.tsx +34 -0
- package/src/components/CustomFields/index.ts +2 -0
- package/src/components/CustomFieldsForm/CustomFieldsForm.tsx +73 -0
- package/src/components/CustomFieldsForm/CustomFieldsForm.uni.driver.ts +11 -0
- package/src/components/CustomFieldsForm/index.ts +1 -0
- package/src/components/CustomFieldsFormContext.ts +17 -0
- package/src/components/CustomFieldsPanel/AddCustomFieldCTAButton.tsx +38 -0
- package/src/components/CustomFieldsPanel/ArchiveFieldModal.tsx +34 -0
- package/src/components/CustomFieldsPanel/ArchiveFieldModal.uni.driver.ts +23 -0
- package/src/components/CustomFieldsPanel/CustomColumnsAddCustomFieldCTAButton.tsx +35 -0
- package/src/components/CustomFieldsPanel/CustomColumnsEditCustomFieldCTAButton.tsx +29 -0
- package/src/components/CustomFieldsPanel/CustomFieldItem.tsx +65 -0
- package/src/components/CustomFieldsPanel/CustomFieldPanel.uni.driver.ts +46 -0
- package/src/components/CustomFieldsPanel/CustomFieldPopover.uni.driver.ts +40 -0
- package/src/components/CustomFieldsPanel/CustomFieldsCollectionPanelEntry.tsx +13 -0
- package/src/components/CustomFieldsPanel/CustomFieldsList.tsx +40 -0
- package/src/components/CustomFieldsPanel/CustomFieldsPanel.tsx +68 -0
- package/src/components/CustomFieldsPanel/CustomFieldsPanelEntry.tsx +9 -0
- package/src/components/CustomFieldsPanel/ManageFieldsCTAButton.tsx +55 -0
- package/src/components/CustomFieldsPanel/ManageFieldsPopoverMenu.tsx +121 -0
- package/src/components/CustomFieldsTransforms/transformCustomCheckboxToWQL.tsx +15 -0
- package/src/components/CustomFieldsTransforms/transformCustomDateFilterToWQL.tsx +21 -0
- package/src/components/CustomFieldsTransforms/transformCustomFiltersToWQL.tsx +61 -0
- package/src/components/CustomFieldsTransforms/transformCustomNumberRangeFilterToWQL.tsx +21 -0
- package/src/components/CustomFieldsTransforms/transformSortToWQL.tsx +14 -0
- package/src/components/CustomFieldsWidget/ActionButtons.tsx +43 -0
- package/src/components/CustomFieldsWidget/CustomFieldsAllNamespacesForm.tsx +88 -0
- package/src/components/CustomFieldsWidget/CustomFieldsEmptyStateOverrides.ts +4 -0
- package/src/components/CustomFieldsWidget/CustomFieldsNamespaceForm.tsx +31 -0
- package/src/components/CustomFieldsWidget/CustomFieldsNamespaceSectionForm.tsx +73 -0
- package/src/components/CustomFieldsWidget/CustomFieldsViewWidget.tsx +145 -0
- package/src/components/CustomFieldsWidget/CustomFieldsViewWidget.uni.driver.ts +164 -0
- package/src/components/CustomFieldsWidget/CustomFieldsViewWidgetContent.tsx +81 -0
- package/src/components/CustomFieldsWidget/CustomFieldsViewWidgetInline.tsx +63 -0
- package/src/components/CustomFieldsWidget/CustomFieldsViewWidgetSection.tsx +181 -0
- package/src/components/CustomFieldsWidget/CustomFieldsWidget.tsx +88 -0
- package/src/components/CustomFieldsWidget/CustomFieldsWidget.uni.driver.ts +168 -0
- package/src/components/CustomFieldsWidget/CustomFieldsWidgetCard.tsx +81 -0
- package/src/components/CustomFieldsWidget/CustomFieldsWidgetCommonComponents.tsx +45 -0
- package/src/components/CustomFieldsWidget/CustomFieldsWidgetContent.tsx +28 -0
- package/src/components/CustomFieldsWidget/CustomFieldsWidgetContentLazy.tsx +37 -0
- package/src/components/CustomFieldsWidget/CustomFieldsWidgetInline.tsx +52 -0
- package/src/components/CustomFieldsWidget/CustomFieldsWidgetLazyContent.ts +5 -0
- package/src/components/CustomFieldsWidget/EmptyStateContent.tsx +40 -0
- package/src/components/CustomFieldsWidget/EmptyStateViewContent.tsx +27 -0
- package/src/components/CustomFieldsWidget/ErrorStateContent.tsx +35 -0
- package/src/components/CustomFieldsWidget/OnCustomFieldChange.ts +11 -0
- package/src/components/CustomFieldsWidget/Skeletons.tsx +15 -0
- package/src/components/CustomFieldsWidget/index.ts +3 -0
- package/src/components/CustomFieldsWidget/types.ts +83 -0
- package/src/components/CustomFieldsWidget/useCustomFieldsFormState.ts +32 -0
- package/src/components/CustomFieldsWidget/useCustomFieldsViewWidget.ts +47 -0
- package/src/components/CustomFieldsWidgetContext.ts +17 -0
- package/src/components/DataExtension/CollectionDataExtensionState.ts +215 -0
- package/src/components/DataExtension/DataExtension.ts +77 -0
- package/src/components/DataExtension/index.ts +2 -0
- package/src/components/DataExtension/manageCustomFieldsPageAction.tsx +23 -0
- package/src/components/DateRangeFilter/DateRangeFilter.tsx +149 -0
- package/src/components/DateRangeFilter/index.ts +1 -0
- package/src/components/DateRangePicker/DateRangeFilter.uni.driver.ts +116 -0
- package/src/components/DateRangePicker/DateRangePicker.tsx +154 -0
- package/src/components/DateRangePicker/index.ts +1 -0
- package/src/components/DisabledTooltip/DisabledTooltip.tsx +36 -0
- package/src/components/DisabledTooltip/DisabledTooltipButton.uni.driver.ts +25 -0
- package/src/components/DisabledTooltip/index.ts +1 -0
- package/src/components/DiscardChangesModal.tsx +25 -0
- package/src/components/DragAndDrop/CollectionDragAndDropBI.ts +230 -0
- package/src/components/DragAndDrop/CollectionDragAndDropState.ts +204 -0
- package/src/components/DragAndDrop/DragAndDrop.ts +97 -0
- package/src/components/DragAndDrop/DragAndDrop.uni.driver.ts +223 -0
- package/src/components/DragAndDrop/DragAndDropAnnouncements.tsx +133 -0
- package/src/components/DragAndDrop/DragAndDropCategoriesProps.ts +12 -0
- package/src/components/DragAndDrop/DragAndDropState.ts +587 -0
- package/src/components/DragAndDrop/DragOverlayTestComponent.tsx +48 -0
- package/src/components/DragAndDrop/ReorderModeState.ts +195 -0
- package/src/components/DragAndDrop/TableDragAndDropState.ts +55 -0
- package/src/components/DragAndDrop/hasExceededDistance.ts +22 -0
- package/src/components/DragAndDrop/index.ts +3 -0
- package/src/components/DragAndDrop/initReordeModeState.ts +19 -0
- package/src/components/DragAndDrop/rectIntersection.ts +15 -0
- package/src/components/DragHandle/DragHandle.st.css +27 -0
- package/src/components/DragHandle/DragHandle.st.css.ts +25 -0
- package/src/components/DragHandle/DragHandle.tsx +40 -0
- package/src/components/DropdownFilter/CollectionDropdownFilter.uni.driver.ts +200 -0
- package/src/components/DropdownFilter/selectedItemsLabel.tsx +15 -0
- package/src/components/EditorXLogo.tsx +22 -0
- package/src/components/EmptyState/CollectionEmptyState.tsx +38 -0
- package/src/components/EmptyState/CollectionEmptyState.uni.driver.ts +25 -0
- package/src/components/EmptyState/CollectionNoResultsState.tsx +105 -0
- package/src/components/EmptyState/CollectionNoResultsState.uni.driver.ts +33 -0
- package/src/components/EmptyState/CollectionPremiumEmptyState.tsx +40 -0
- package/src/components/EmptyState/CollectionPremiumEmptyState.uni.driver.ts +27 -0
- package/src/components/EmptyState/EmptyState.uni.driver.ts +24 -0
- package/src/components/EmptyState/EmptyStateBase.tsx +78 -0
- package/src/components/EmptyState/NewItemButton.tsx +25 -0
- package/src/components/EmptyState/PremiumButton.tsx +23 -0
- package/src/components/EntityPage/EntityPage.tsx +82 -0
- package/src/components/EntityPage/EntityPage.uni.driver.ts +55 -0
- package/src/components/EntityPage/EntityPageActionsBar.tsx +24 -0
- package/src/components/EntityPage/EntityPagePlain.st.css +9 -0
- package/src/components/EntityPage/EntityPagePlain.st.css.ts +25 -0
- package/src/components/EntityPage/EntityPagePlain.tsx +34 -0
- package/src/components/EntityPage/EntityPageWrapper.tsx +33 -0
- package/src/components/EntityPage/index.ts +2 -0
- package/src/components/EntityPage/useEntityPageLoadReporting.ts +57 -0
- package/src/components/EntityPageAdditionalContent/EntityPageAdditionalContent.tsx +16 -0
- package/src/components/EntityPageAdditionalContent/index.ts +1 -0
- package/src/components/EntityPageCard/EntityPageCard.tsx +13 -0
- package/src/components/EntityPageCard/index.ts +1 -0
- package/src/components/EntityPageContent/EntityPageContent.tsx +21 -0
- package/src/components/EntityPageContent/index.ts +1 -0
- package/src/components/EntityPageExtensions/EntityPageExtensions.tsx +54 -0
- package/src/components/EntityPageExtensions/index.ts +1 -0
- package/src/components/EntityPageHeader/EntityPageHeader.tsx +17 -0
- package/src/components/EntityPageHeader/index.ts +1 -0
- package/src/components/EntityPageMainContent/EntityPageMainContent.tsx +13 -0
- package/src/components/EntityPageMainContent/index.ts +1 -0
- package/src/components/ErrorBoundary.tsx +21 -0
- package/src/components/ErrorCard/ErrorCard.tsx +71 -0
- package/src/components/ErrorCard/ErrorCard.uni.driver.ts +19 -0
- package/src/components/ErrorCard/index.ts +1 -0
- package/src/components/ErrorState/ErrorState.tsx +89 -0
- package/src/components/ErrorState/LoadingErrorState.tsx +52 -0
- package/src/components/ErrorState/OfflineErrorState.tsx +51 -0
- package/src/components/ErrorState/OfflineIllustration.tsx +63 -0
- package/src/components/ErrorState/ToolbarCollectionErrorState.uni.driver.ts +27 -0
- package/src/components/ErrorState/index.ts +2 -0
- package/src/components/ExpandableSearch.tsx +30 -0
- package/src/components/ExportButton/ExportButton.tsx +107 -0
- package/src/components/ExportButton/ExportButton.uni.driver.ts +18 -0
- package/src/components/ExportButton/ExportButtonModalLayout.tsx +98 -0
- package/src/components/ExportButton/ExportModal.tsx +27 -0
- package/src/components/ExportButton/ExportModal.uni.driver.ts +102 -0
- package/src/components/ExportButton/ExportProps.tsx +115 -0
- package/src/components/ExportButton/ExportStepCancel.tsx +17 -0
- package/src/components/ExportButton/ExportStepConfig.tsx +64 -0
- package/src/components/ExportButton/ExportStepError.tsx +28 -0
- package/src/components/ExportButton/ExportStepProgress.tsx +51 -0
- package/src/components/ExportButton/LinearAbsoluteProgressBar.tsx +50 -0
- package/src/components/ExportButton/RadioGroupSafe.tsx +16 -0
- package/src/components/ExportButton/getExportModalErrorProps.tsx +147 -0
- package/src/components/ExportButton/getExportModalStepProps.tsx +120 -0
- package/src/components/ExportButton/index.ts +3 -0
- package/src/components/ExtendedColumn/ExtendedColumn.tsx +99 -0
- package/src/components/ExtensionMenuItems/ExtensionMenuItems.ts +9 -0
- package/src/components/ExtensionMenuItems/index.ts +1 -0
- package/src/components/Extensions/Extensions.tsx +27 -0
- package/src/components/Extensions/index.ts +1 -0
- package/src/components/Fade/Fade.st.css +11 -0
- package/src/components/Fade/Fade.st.css.ts +25 -0
- package/src/components/Fade/Fade.tsx +38 -0
- package/src/components/Fade/index.ts +1 -0
- package/src/components/FileCard/DownloadButton.tsx +40 -0
- package/src/components/FileCard/FileCard.tsx +37 -0
- package/src/components/FileCard/FileCardList.tsx +32 -0
- package/src/components/FileCard/FileDetails.tsx +51 -0
- package/src/components/FileCard/FilePreview.tsx +66 -0
- package/src/components/FileCard/FilePreviewModal.tsx +69 -0
- package/src/components/FileCard/FileProps.ts +35 -0
- package/src/components/FileCard/Thumbnail.tsx +28 -0
- package/src/components/FileCard/formatBytes.ts +13 -0
- package/src/components/FileCard/icons.tsx +118 -0
- package/src/components/FileCard/resolveFileByMediaType.tsx +86 -0
- package/src/components/FileCard/useDownloadFile.ts +46 -0
- package/src/components/FilterContext.ts +12 -0
- package/src/components/FilterRenderingContext.tsx +13 -0
- package/src/components/FiltersPanel/AddApplyFiltersButton.ts +28 -0
- package/src/components/FiltersPanel/FilterAccordionTitle.tsx +33 -0
- package/src/components/FiltersPanel/FiltersPanel.tsx +118 -0
- package/src/components/FiltersPanel/FiltersPanel.uni.driver.ts +355 -0
- package/src/components/FiltersPanel/FiltersPanelAppliedFiltersSection.tsx +65 -0
- package/src/components/FiltersPanel/FiltersPanelContext.tsx +15 -0
- package/src/components/FiltersPanel/FiltersPanelFooter.tsx +44 -0
- package/src/components/FiltersPanel/FiltersPanelSelectedFiltersSection.tsx +76 -0
- package/src/components/FiltersPanel/FiltersPanelState.ts +36 -0
- package/src/components/FiltersPanel/index.ts +1 -0
- package/src/components/FolderIcon.tsx +23 -0
- package/src/components/FormFieldInput/FormFieldInput.tsx +71 -0
- package/src/components/FormFieldInput/FormFieldInput.uni.driver.ts +6 -0
- package/src/components/FormFieldInput/index.ts +1 -0
- package/src/components/FormPage/FormPage.tsx +24 -0
- package/src/components/FormPage/FormPageActionsBar.tsx +59 -0
- package/src/components/FormPage/FormPageProvider.tsx +37 -0
- package/src/components/FormPage/WidgetsFormProvider.tsx +20 -0
- package/src/components/FormPage/index.ts +4 -0
- package/src/components/FormPageAdditionalContent/FormPageAdditionalContent.tsx +27 -0
- package/src/components/FormPageAdditionalContent/index.ts +1 -0
- package/src/components/FormPageCard/FormPageCard.tsx +49 -0
- package/src/components/FormPageCard/FormPageCard.uni.driver.ts +6 -0
- package/src/components/FormPageCard/index.ts +1 -0
- package/src/components/FormPageContent/FormPageContent.tsx +21 -0
- package/src/components/FormPageContent/FormPageContent.uni.driver.ts +66 -0
- package/src/components/FormPageContent/index.ts +1 -0
- package/src/components/FormPageHeader/FormPageHeader.tsx +41 -0
- package/src/components/FormPageHeader/index.ts +1 -0
- package/src/components/FormPageMainContent/FormPageMainContent.tsx +26 -0
- package/src/components/FormPageMainContent/index.ts +1 -0
- package/src/components/Grid/DebugItemKeyRecycler.tsx +20 -0
- package/src/components/Grid/Grid.scss +3 -0
- package/src/components/Grid/Grid.tsx +150 -0
- package/src/components/Grid/Grid.types.ts +71 -0
- package/src/components/Grid/Grid.uni.driver.ts +488 -0
- package/src/components/Grid/GridCardItem.tsx +151 -0
- package/src/components/Grid/GridContent.tsx +129 -0
- package/src/components/Grid/GridEmptyState.tsx +8 -0
- package/src/components/Grid/GridFolders.tsx +155 -0
- package/src/components/Grid/GridFolders.types.ts +99 -0
- package/src/components/Grid/GridFolders.uni.driver.ts +68 -0
- package/src/components/Grid/GridFoldersFolderSection.tsx +87 -0
- package/src/components/Grid/GridFoldersItemsSection.tsx +69 -0
- package/src/components/Grid/GridFoldersLoadingSection.tsx +32 -0
- package/src/components/Grid/GridFoldersPlaceholderStates.tsx +41 -0
- package/src/components/Grid/GridFoldersSection.tsx +46 -0
- package/src/components/Grid/GridFoldersSection.uni.driver.ts +17 -0
- package/src/components/Grid/GridFoldersSectionsGroup.tsx +87 -0
- package/src/components/Grid/GridItem.tsx +103 -0
- package/src/components/Grid/GridItemBaseProps.ts +51 -0
- package/src/components/Grid/GridLayout.tsx +0 -0
- package/src/components/Grid/GridPlaceholderStates.tsx +43 -0
- package/src/components/Grid/GridSectionHeader.tsx +53 -0
- package/src/components/Grid/GridSingleGridContent.tsx +56 -0
- package/src/components/Grid/RenderItem.ts +11 -0
- package/src/components/Grid/SkeletonGrid.uni.driver.ts +12 -0
- package/src/components/Grid/SupportedCardGalleryItemProps.ts +15 -0
- package/src/components/Grid/index.ts +1 -0
- package/src/components/Grid/renderFolderItem.tsx +86 -0
- package/src/components/Grid/useGridBaseSyncProps.ts +108 -0
- package/src/components/Grid/useGridItemActions.tsx +145 -0
- package/src/components/Grid/useRenderItem.tsx +57 -0
- package/src/components/GridDragAndDropDndKit/DraggableCardOverlay.tsx +46 -0
- package/src/components/GridDragAndDropDndKit/GridDragAndDrop.ts +34 -0
- package/src/components/GridDragAndDropDndKit/GridDragOverlayCardItem.tsx +24 -0
- package/src/components/GridDragAndDropDndKit/GridDraggableCardItem.tsx +142 -0
- package/src/components/GridDragAndDropDndKit/GridSortableContext.tsx +120 -0
- package/src/components/GridDragAndDropDndKit/dndTestEventHandlers.ts +121 -0
- package/src/components/GridDragAndDropDndKit/sortableGridKeyboardCoordinates.ts +159 -0
- package/src/components/GridSections/GridSectionAndRepeater.tsx +49 -0
- package/src/components/GridSections/GridSectionHeader.tsx +40 -0
- package/src/components/GridSections/GridSectionsContent.tsx +84 -0
- package/src/components/GridSections/GridSectionsSectionState.ts +55 -0
- package/src/components/GridSections/GridSectionsSingleSkeletonGrid.tsx +49 -0
- package/src/components/GridSections/GridSectionsState.ts +63 -0
- package/src/components/Heading/Heading.st.css +10 -0
- package/src/components/Heading/Heading.st.css.ts +25 -0
- package/src/components/Heading/Heading.tsx +17 -0
- package/src/components/Heading/index.ts +1 -0
- package/src/components/Illustration/AddItemEmptyState.tsx +38 -0
- package/src/components/Illustration/CollectionPremiumEmptyStateIllustration.tsx +47 -0
- package/src/components/InfiniteScrollLoader/InfiniteScrollLoader.tsx +25 -0
- package/src/components/InfiniteScrollLoader/InfiniteScrollLoaderBase.tsx +32 -0
- package/src/components/InfiniteScrollLoader/InfiniteScrollLoaderBaseProps.ts +6 -0
- package/src/components/InfiniteScrollLoader/SkeletonInfiniteScrollLoader.tsx +33 -0
- package/src/components/InitialLoader/InitialLoader.tsx +28 -0
- package/src/components/InitialLoader/InitialSkeletonLoader.tsx +32 -0
- package/src/components/InitialLoader/index.ts +1 -0
- package/src/components/InitialLoadingConditional.tsx +35 -0
- package/src/components/InputOverflow/InputOverflow.st.css +7 -0
- package/src/components/InputOverflow/InputOverflow.st.css.ts +25 -0
- package/src/components/InputOverflow/InputOverflow.tsx +70 -0
- package/src/components/InputOverflow/index.ts +1 -0
- package/src/components/Kanban/Card.tsx +103 -0
- package/src/components/Kanban/CardActions.tsx +78 -0
- package/src/components/Kanban/CardsSkeleton.tsx +60 -0
- package/src/components/Kanban/Kanban.tsx +113 -0
- package/src/components/Kanban/Kanban.uni.driver.ts +237 -0
- package/src/components/Kanban/KanbanCardActionsHelper.ts +154 -0
- package/src/components/Kanban/KanbanProps.ts +45 -0
- package/src/components/Kanban/Stage.tsx +287 -0
- package/src/components/Kanban/StagesSkeleton.scss +10 -0
- package/src/components/Kanban/StagesSkeleton.tsx +44 -0
- package/src/components/Kanban/index.ts +2 -0
- package/src/components/Kanban/useCardActions.tsx +182 -0
- package/src/components/KanbanDragAndDropDndKit/KanbanCardDragAndDrop.ts +229 -0
- package/src/components/KanbanDragAndDropDndKit/KanbanDragAndDropContext.tsx +102 -0
- package/src/components/KanbanDragAndDropDndKit/KanbanDragOverlay.tsx +56 -0
- package/src/components/KanbanDragAndDropDndKit/KanbanDragOverlayCardItem.tsx +73 -0
- package/src/components/KanbanDragAndDropDndKit/KanbanDraggableCardItem.tsx +122 -0
- package/src/components/ListDragAndDrop/DraggableListItem.tsx +115 -0
- package/src/components/ListDragAndDrop/ListDragAndDrop.ts +9 -0
- package/src/components/ListDragAndDrop/ListDragAndDropContext.tsx +112 -0
- package/src/components/LoadingRow/AILoadingLottiePoster.tsx +29 -0
- package/src/components/LoadingRow/LoadingRow.st.css +47 -0
- package/src/components/LoadingRow/LoadingRow.st.css.ts +25 -0
- package/src/components/LoadingRow/LoadingRowState.ts +63 -0
- package/src/components/LoadingRow/LoadingRowTD.tsx +56 -0
- package/src/components/LoadingRow/aiLoadingLottie.ts +2388 -0
- package/src/components/MagnifyingGlassArt/MagnifyingGlassArt.tsx +136 -0
- package/src/components/MagnifyingGlassArt/index.ts +1 -0
- package/src/components/MaxHeightText/MaxHeightText.st.css +9 -0
- package/src/components/MaxHeightText/MaxHeightText.st.css.ts +25 -0
- package/src/components/MaxHeightText/MaxHeightText.tsx +20 -0
- package/src/components/MaxHeightText/index.ts +1 -0
- package/src/components/MaxLines/MaxLines.st.css +10 -0
- package/src/components/MaxLines/MaxLines.st.css.ts +25 -0
- package/src/components/MaxLines/MaxLines.tsx +79 -0
- package/src/components/MaxLines/index.ts +1 -0
- package/src/components/MaxSelection.tsx +106 -0
- package/src/components/MaybeTooltip.tsx +16 -0
- package/src/components/ModalHeadingBox/ModalHeadingBox.tsx +29 -0
- package/src/components/ModalHeadingBox/index.ts +1 -0
- package/src/components/MoreActions/ExploreAppsModal.tsx +27 -0
- package/src/components/MoreActions/ExploreAppsState.tsx +69 -0
- package/src/components/MoreActions/MoreActions.uni.driver.ts +55 -0
- package/src/components/MoreActions/MoreActionsBase.tsx +170 -0
- package/src/components/MoreActions/MoreActionsElement.ts +8 -0
- package/src/components/MoreActions/MoreActionsIcon.tsx +36 -0
- package/src/components/MoreActions/MoreActionsItem.ts +54 -0
- package/src/components/MoreActions/MoreActionsProps.ts +28 -0
- package/src/components/MoreActions/MoreActionsText.tsx +31 -0
- package/src/components/MoreActions/index.ts +4 -0
- package/src/components/MoreActions/useExploreAppsState.ts +33 -0
- package/src/components/MoreFiltersCTA/MoreFiltersCTA.tsx +34 -0
- package/src/components/MoreFiltersCTA/index.ts +1 -0
- package/src/components/MultiAutoInlineCheckboxFilter/MultiAutoInlineCheckboxFilter.tsx +62 -0
- package/src/components/MultiAutoInlineCheckboxFilter/index.ts +1 -0
- package/src/components/MultiBulkActionToolbar/BulkActionContainer.tsx +12 -0
- package/src/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css +4 -0
- package/src/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.ts +25 -0
- package/src/components/MultiBulkActionToolbar/MultiBulkActionToolbar.tsx +264 -0
- package/src/components/MultiBulkActionToolbar/MultiBulkActionToolbar.uni.driver.ts +73 -0
- package/src/components/MultiBulkActionToolbar/MultiBulkActionToolbarState.ts +94 -0
- package/src/components/MultiBulkActionToolbar/index.ts +2 -0
- package/src/components/MultiCollectionSupportProvider.ts +17 -0
- package/src/components/MultiInlineCheckbox/MultiInlineCheckbox.tsx +63 -0
- package/src/components/MultiInlineCheckbox/MultiInlineCheckbox.uni.driver.ts +26 -0
- package/src/components/MultiInlineCheckbox/index.ts +1 -0
- package/src/components/MultiInlineCheckboxFilter/MultiInlineCheckboxFilter.tsx +46 -0
- package/src/components/MultiInlineCheckboxFilter/index.ts +1 -0
- package/src/components/MultiLevelSorting/MultiLevelSorting.tsx +11 -0
- package/src/components/MultiLevelSorting/MultiLevelSortingCTAButton.tsx +72 -0
- package/src/components/MultiLevelSorting/MultiLevelSortingCTAButton.uni.driver.ts +14 -0
- package/src/components/MultiLevelSorting/index.ts +1 -0
- package/src/components/MultiLevelSortingPanel/MultiLevelSortingColumnSelect.tsx +62 -0
- package/src/components/MultiLevelSortingPanel/MultiLevelSortingList.tsx +74 -0
- package/src/components/MultiLevelSortingPanel/MultiLevelSortingOrderSelect.tsx +76 -0
- package/src/components/MultiLevelSortingPanel/MultiLevelSortingPanel.tsx +94 -0
- package/src/components/MultiLevelSortingPanel/MultiLevelSortingPanel.uni.driver.ts +105 -0
- package/src/components/MultiLevelSortingPanel/MultiLevelSortingPanelEntry.tsx +17 -0
- package/src/components/MultiLevelSortingPanel/MultiLevelSortingTableListItem.tsx +93 -0
- package/src/components/MultiLevelSortingPanel/index.ts +1 -0
- package/src/components/MultiSelectCheckboxFilter/MultiSelectCheckboxFilter.tsx +25 -0
- package/src/components/MultiSelectCheckboxFilter/index.ts +1 -0
- package/src/components/MultiSelectCheckboxFilterBase/MultiSelectCheckboxFilterBase.tsx +76 -0
- package/src/components/MultiSelectCheckboxFilterBase/index.ts +1 -0
- package/src/components/MultiSelectCollectionFilter/MultiSelectCollectionFilter.tsx +124 -0
- package/src/components/MultiSelectCollectionFilter/index.ts +1 -0
- package/src/components/MultiSelectFilterBase/MultiSelectFilterBase.tsx +111 -0
- package/src/components/MultiSelectFilterBase/index.ts +1 -0
- package/src/components/NavigationModal/NavigationModal.tsx +29 -0
- package/src/components/NavigationModal/index.ts +1 -0
- package/src/components/NestedTable/ExpandCollapseAllButton.uni.driver.ts +17 -0
- package/src/components/NestedTable/ExpandCollapseButton.uni.driver.ts +19 -0
- package/src/components/NestedTable/MainCellLayout.tsx +62 -0
- package/src/components/NestedTable/NestedTable.tsx +139 -0
- package/src/components/NestedTable/NestedTable.uni.driver.ts +265 -0
- package/src/components/NestedTable/NestedTableActionCell.tsx +44 -0
- package/src/components/NestedTable/NestedTableContent.tsx +41 -0
- package/src/components/NestedTable/NestedTableFlatModeMainCell.tsx +60 -0
- package/src/components/NestedTable/NestedTableFlatModeMainCell.uni.driver.ts +15 -0
- package/src/components/NestedTable/NestedTableMainColumnTitle.tsx +59 -0
- package/src/components/NestedTable/NestedTableParentCell.tsx +111 -0
- package/src/components/NestedTable/NestedTableParentCell.uni.driver.ts +35 -0
- package/src/components/NestedTable/NestedTablePlaceholderStatesRow.st.css +4 -0
- package/src/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.ts +25 -0
- package/src/components/NestedTable/NestedTablePlaceholderStatesRow.tsx +58 -0
- package/src/components/NestedTable/NestedTableRow.st.css +33 -0
- package/src/components/NestedTable/NestedTableRow.st.css.ts +25 -0
- package/src/components/NestedTable/NestedTableRow.tsx +116 -0
- package/src/components/NestedTable/NestedTableRow.uni.driver.ts +31 -0
- package/src/components/NestedTable/NestedTableRowPlaceholderStates.tsx +63 -0
- package/src/components/NestedTable/NestedTableRowPlaceholderStates.uni.driver.ts +23 -0
- package/src/components/NestedTable/NestedTableWSRTable.tsx +198 -0
- package/src/components/NestedTable/index.ts +1 -0
- package/src/components/NestedTable/useFlatModeColumns.tsx +73 -0
- package/src/components/NestedTable/useModeTableProps.tsx +111 -0
- package/src/components/NestedTable/useNestedModeColumns.tsx +98 -0
- package/src/components/NestedTable/useNestedTableActionCell.tsx +55 -0
- package/src/components/NestedTableDragAndDrop/DepthLimitMessage.tsx +37 -0
- package/src/components/NestedTableDragAndDrop/DragAndDropDisabledMessage.tsx +25 -0
- package/src/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css +12 -0
- package/src/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.ts +25 -0
- package/src/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.tsx +26 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDrop.ts +35 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropContext.tsx +178 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropOverlay.tsx +61 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropOverlayPopover.tsx +44 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css +7 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.ts +25 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.tsx +63 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropState.ts +556 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragHandle.tsx +32 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragOverlay.uni.driver.ts +30 -0
- package/src/components/NestedTableDragAndDrop/NestedTableGhostIndentationCell.tsx +63 -0
- package/src/components/NestedTableDragAndDrop/NestedTableGhostRow.uni.driver.ts +30 -0
- package/src/components/NestedTableDragAndDrop/createUseIsDropDisabled.ts +128 -0
- package/src/components/NestedTableDragAndDrop/validateNestedTableDragAndDropProps.ts +29 -0
- package/src/components/NumberRangeFilter/NumberRangeFilter.tsx +78 -0
- package/src/components/NumberRangeFilter/index.ts +2 -0
- package/src/components/NumberRangeFilter/useNumberRangeFilter.ts +243 -0
- package/src/components/PageErrorState/PageErrorState.tsx +60 -0
- package/src/components/PageErrorState/PageErrorState.uni.driver.ts +16 -0
- package/src/components/PageErrorState/PageErrorStateIllustration.tsx +32 -0
- package/src/components/PageErrorState/index.ts +1 -0
- package/src/components/PageGridInfiniteScrollLoader.tsx +36 -0
- package/src/components/PageInfiniteScrollLoader.tsx +29 -0
- package/src/components/PageSubTitle/PageSubTitle.tsx +72 -0
- package/src/components/PageSubTitle/PageSubTitle.uni.driver.ts +22 -0
- package/src/components/PageSubTitle/index.ts +1 -0
- package/src/components/PageWrapper/InfiniteScrollPage.tsx +39 -0
- package/src/components/PageWrapper/PageWrapper.tsx +10 -0
- package/src/components/PageWrapper/PageWrapper.uni.driver.ts +13 -0
- package/src/components/PageWrapper/PageWrapperBase.tsx +79 -0
- package/src/components/PageWrapper/index.ts +1 -0
- package/src/components/PaginationTable/PaginationTable.tsx +49 -0
- package/src/components/PaginationTable/index.ts +1 -0
- package/src/components/PartialFunctionComponent.ts +6 -0
- package/src/components/Picker/Picker.tsx +124 -0
- package/src/components/Picker/Picker.uni.driver.ts +108 -0
- package/src/components/Picker/index.ts +1 -0
- package/src/components/PickerContent/PickerContent.st.css +3 -0
- package/src/components/PickerContent/PickerContent.st.css.ts +25 -0
- package/src/components/PickerContent/PickerContent.tsx +73 -0
- package/src/components/PickerContent/PickerContentAdditionalStep.st.css +14 -0
- package/src/components/PickerContent/PickerContentAdditionalStep.st.css.ts +25 -0
- package/src/components/PickerContent/PickerContentAdditionalStep.tsx +222 -0
- package/src/components/PickerContent/PickerContentBaseWrapped.tsx +29 -0
- package/src/components/PickerContent/PickerContentItemsSelection.tsx +330 -0
- package/src/components/PickerContent/PickerContentProvider.tsx +52 -0
- package/src/components/PickerContent/PickerContentV2.tsx +38 -0
- package/src/components/PickerContent/PickerContentWrapped.tsx +133 -0
- package/src/components/PickerContent/SelectAllCheckbox.tsx +57 -0
- package/src/components/PickerContent/index.ts +2 -0
- package/src/components/PickerEmptyState/PickerEmptyState.tsx +107 -0
- package/src/components/PickerEmptyState/PickerEmptyStateContainer.tsx +59 -0
- package/src/components/PickerEmptyState/index.ts +1 -0
- package/src/components/PickerListContent/PickerListContent.tsx +126 -0
- package/src/components/PickerListContent/index.ts +1 -0
- package/src/components/PickerListItemProps.ts +15 -0
- package/src/components/PickerModal/PickerModal.tsx +133 -0
- package/src/components/PickerModal/PickerModal.uni.driver.ts +216 -0
- package/src/components/PickerModal/PickerModalLayout.uni.driver.ts +118 -0
- package/src/components/PickerModal/index.ts +1 -0
- package/src/components/PickerModalOpenButton/PickerModalOpenButton.tsx +40 -0
- package/src/components/PickerModalOpenButton/index.ts +1 -0
- package/src/components/PickerModalSplash/PickerModalSplash.tsx +95 -0
- package/src/components/PickerModalSplash/index.ts +1 -0
- package/src/components/PickerSelectorListContent/PickerSelectorListContent.tsx +136 -0
- package/src/components/PickerSelectorListContent/index.ts +1 -0
- package/src/components/PickerStandalone/PickerStandalone.tsx +183 -0
- package/src/components/PickerStandalone/PickerStandalone.uni.driver.ts +216 -0
- package/src/components/PickerStandalone/PickerStandaloneTableListItem.tsx +95 -0
- package/src/components/PickerStandalone/index.ts +1 -0
- package/src/components/PickerStandaloneLayout/PickerStandaloneLayout.tsx +72 -0
- package/src/components/PickerStandaloneLayout/PickerStandaloneLayout.uni.driver.ts +40 -0
- package/src/components/PickerStandaloneLayout/PickerStandaloneLayoutFooter.tsx +55 -0
- package/src/components/PickerStandaloneLayout/PickerStandaloneLayoutHeader.tsx +177 -0
- package/src/components/PickerStandaloneLayout/PickerStandaloneLayoutTitles.tsx +95 -0
- package/src/components/PickerStandaloneLayout/index.ts +1 -0
- package/src/components/PickerSubheader/PickerSubheader.tsx +41 -0
- package/src/components/PickerSubheader/PickerSubheader.uni.driver.ts +10 -0
- package/src/components/PickerSubheader/index.ts +1 -0
- package/src/components/PickerTableListItem/PickerTableListItem.st.css +3 -0
- package/src/components/PickerTableListItem/PickerTableListItem.st.css.ts +25 -0
- package/src/components/PickerTableListItem/PickerTableListItem.tsx +103 -0
- package/src/components/PickerTableListItem/PickerTableListItem.uni.driver.ts +15 -0
- package/src/components/PickerTableListItem/index.ts +1 -0
- package/src/components/PlaceholderStates/PlaceholderStatesBase.tsx +105 -0
- package/src/components/PrimaryActions/PrimaryActions.tsx +78 -0
- package/src/components/PrimaryActions/index.ts +1 -0
- package/src/components/PrimaryPageButton/PrimaryPageButton.tsx +65 -0
- package/src/components/PrimaryPageButton/index.ts +1 -0
- package/src/components/QuerySearch.tsx +35 -0
- package/src/components/RadioGroupFilter/RadioGroupFilter.tsx +104 -0
- package/src/components/RadioGroupFilter/RadioGroupFilter.uni.driver.ts +27 -0
- package/src/components/RadioGroupFilter/index.ts +1 -0
- package/src/components/RequestId/RequestId.tsx +150 -0
- package/src/components/RequestId/RequestId.uni.driver.ts +31 -0
- package/src/components/RequestId/assets/locale/messages_cs.json +5 -0
- package/src/components/RequestId/assets/locale/messages_da.json +5 -0
- package/src/components/RequestId/assets/locale/messages_de.json +5 -0
- package/src/components/RequestId/assets/locale/messages_en.json +5 -0
- package/src/components/RequestId/assets/locale/messages_es.json +5 -0
- package/src/components/RequestId/assets/locale/messages_fr.json +5 -0
- package/src/components/RequestId/assets/locale/messages_hi.json +5 -0
- package/src/components/RequestId/assets/locale/messages_id.json +5 -0
- package/src/components/RequestId/assets/locale/messages_it.json +5 -0
- package/src/components/RequestId/assets/locale/messages_ja.json +5 -0
- package/src/components/RequestId/assets/locale/messages_ko.json +5 -0
- package/src/components/RequestId/assets/locale/messages_nl.json +5 -0
- package/src/components/RequestId/assets/locale/messages_no.json +5 -0
- package/src/components/RequestId/assets/locale/messages_pl.json +5 -0
- package/src/components/RequestId/assets/locale/messages_pt.json +5 -0
- package/src/components/RequestId/assets/locale/messages_ru.json +5 -0
- package/src/components/RequestId/assets/locale/messages_sv.json +5 -0
- package/src/components/RequestId/assets/locale/messages_th.json +5 -0
- package/src/components/RequestId/assets/locale/messages_tr.json +5 -0
- package/src/components/RequestId/assets/locale/messages_uk.json +5 -0
- package/src/components/RequestId/assets/locale/messages_vi.json +5 -0
- package/src/components/RequestId/assets/locale/messages_zh.json +5 -0
- package/src/components/RequestId/index.ts +1 -0
- package/src/components/Responsive/HorizontalAvailableSpaceBox.tsx +32 -0
- package/src/components/Responsive/HorizontalOverflowBox.tsx +26 -0
- package/src/components/ResponsiveButton/ResponsiveButton.tsx +72 -0
- package/src/components/ResponsiveButton/ResponsiveButton.uni.driver.ts +24 -0
- package/src/components/Rotate/Rotate.tsx +45 -0
- package/src/components/Rotate/index.ts +1 -0
- package/src/components/Router/PatternsReactRoute.tsx +9 -0
- package/src/components/Router/PatternsReactRouter.tsx +65 -0
- package/src/components/Router/createPlatformizedNavigator.tsx +27 -0
- package/src/components/Router/index.ts +3 -0
- package/src/components/Router/types.ts +21 -0
- package/src/components/Router/usePatternsNavigate.ts +20 -0
- package/src/components/ScrollableContent/ScrollableContent.st.css +15 -0
- package/src/components/ScrollableContent/ScrollableContent.st.css.ts +25 -0
- package/src/components/ScrollableContent/ScrollableContent.tsx +31 -0
- package/src/components/ScrollableContent/index.ts +1 -0
- package/src/components/SecondaryActions/SecondaryActions.tsx +77 -0
- package/src/components/SecondaryActions/index.ts +1 -0
- package/src/components/SettingsPage/SettingsPage.tsx +56 -0
- package/src/components/SettingsPage/SettingsPage.uni.driver.ts +16 -0
- package/src/components/SettingsPage/SettingsPageActionsBar.tsx +23 -0
- package/src/components/SettingsPage/SettingsPagePlain.tsx +26 -0
- package/src/components/SettingsPage/SettingsPageWrapper.tsx +35 -0
- package/src/components/SettingsPageAdditionalContent/SettingsPageAdditionalContent.tsx +16 -0
- package/src/components/SettingsPageAdditionalContent/index.ts +1 -0
- package/src/components/SettingsPageCard/SettingsPageCard.tsx +13 -0
- package/src/components/SettingsPageCard/index.ts +1 -0
- package/src/components/SettingsPageContent/SettingsPageContent.tsx +21 -0
- package/src/components/SettingsPageContent/index.ts +1 -0
- package/src/components/SettingsPageHeader/SettingsPageHeader.tsx +17 -0
- package/src/components/SettingsPageHeader/index.ts +1 -0
- package/src/components/SettingsPageMainContent/SettingsPageMainContent.tsx +14 -0
- package/src/components/SettingsPageMainContent/index.ts +1 -0
- package/src/components/SidePanelModal/SidePanelModal.tsx +109 -0
- package/src/components/SidePanelModal/SidePanelModalItem.tsx +34 -0
- package/src/components/SidePanelModal/index.ts +1 -0
- package/src/components/SingleSelectFilter/SingleSelectFilter.tsx +138 -0
- package/src/components/SingleSelectFilter/index.ts +1 -0
- package/src/components/SingleSelectFilterBase/SingleSelectFilterBase.tsx +83 -0
- package/src/components/SingleSelectFilterBase/index.ts +1 -0
- package/src/components/SkeletonCard/SkeletonCard.st.css +3 -0
- package/src/components/SkeletonCard/SkeletonCard.st.css.ts +25 -0
- package/src/components/SkeletonCard/SkeletonCard.tsx +42 -0
- package/src/components/SkeletonCard/SkeletonCard.uni.driver.ts +13 -0
- package/src/components/SkeletonCard/index.ts +1 -0
- package/src/components/SkeletonGrid/SkeletonCardByImagePlacement.tsx +22 -0
- package/src/components/SkeletonGrid/SkeletonGrid.tsx +51 -0
- package/src/components/SkeletonGrid/SkeletonSideImageCard.tsx +27 -0
- package/src/components/SkeletonGrid/SkeletonTopImageCard.tsx +48 -0
- package/src/components/SkeletonGrid/index.ts +1 -0
- package/src/components/SlidingModal/SlidingModal.st.css +11 -0
- package/src/components/SlidingModal/SlidingModal.st.css.ts +25 -0
- package/src/components/SlidingModal/SlidingModal.tsx +134 -0
- package/src/components/SlidingModal/SlidingModal.uni.driver.ts +11 -0
- package/src/components/SlidingModal/index.ts +1 -0
- package/src/components/Splash/Splash.tsx +44 -0
- package/src/components/Splash/Splash.uni.driver.ts +24 -0
- package/src/components/Splash/index.ts +1 -0
- package/src/components/SummaryBar/SummaryBar.tsx +151 -0
- package/src/components/SummaryBar/SummaryBar.uni.driver.ts +52 -0
- package/src/components/SummaryBar/index.ts +1 -0
- package/src/components/TabTotal/TabTotalComponentType.ts +4 -0
- package/src/components/TabTotal/TabTotalCounterBadge.tsx +33 -0
- package/src/components/TabTotal/TabTotalDropdownOption.tsx +35 -0
- package/src/components/TabTotal/TabTotalParens.tsx +38 -0
- package/src/components/TabTotal/index.ts +3 -0
- package/src/components/TabTotal/useFilterValueTotalState.ts +47 -0
- package/src/components/Table/Table.tsx +52 -0
- package/src/components/Table/Table.uni.driver.ts +582 -0
- package/src/components/Table/TableBase.tsx +88 -0
- package/src/components/Table/TableBaseRow.tsx +39 -0
- package/src/components/Table/TableCompat.tsx +37 -0
- package/src/components/Table/TableV2.tsx +16 -0
- package/src/components/Table/TableVirtual.tsx +76 -0
- package/src/components/Table/getVirtualTableProps.ts +29 -0
- package/src/components/Table/index.ts +3 -0
- package/src/components/Table/useTableBaseRow.tsx +31 -0
- package/src/components/Table/useTableSyncProps.ts +66 -0
- package/src/components/TableDragAndDrop.ts +40 -0
- package/src/components/TableDragAndDropContext/TableDragAndDropContext.tsx +132 -0
- package/src/components/TableDragAndDropContext/createUseIsDropDisabled.ts +15 -0
- package/src/components/TableDragAndDropContext/index.ts +4 -0
- package/src/components/TableFolders/TableFolders.tsx +89 -0
- package/src/components/TableFolders/TableFolders.types.tsx +6 -0
- package/src/components/TableFolders/TableFolders.uni.driver.ts +74 -0
- package/src/components/TableFolders/TableFoldersContent.tsx +328 -0
- package/src/components/TableFolders/TableFoldersInfiniteScroll.tsx +42 -0
- package/src/components/TableFolders/TableFoldersLayout.tsx +42 -0
- package/src/components/TableFolders/index.ts +1 -0
- package/src/components/TableFolders/useOrFolderActionCellColumn.ts +78 -0
- package/src/components/TableFolders/useTableFoldersSyncProps.ts +45 -0
- package/src/components/TableGridSwitch/TableGridSwitch.tsx +110 -0
- package/src/components/TableGridSwitch/TableGridSwitch.uni.driver.ts +45 -0
- package/src/components/TableGridSwitch/TableGridSwitchDragAndDrop.ts +7 -0
- package/src/components/TableGridSwitchButton/TableGridSwitchButton.tsx +49 -0
- package/src/components/TableGridSwitchButton/TableGridSwitchButton.uni.driver.ts +17 -0
- package/src/components/TableGridSwitchButton/index.ts +1 -0
- package/src/components/TableGridSwitchFolders/TableGridSwitchFolders.tsx +84 -0
- package/src/components/TableGridSwitchFolders/TableGridSwitchFolders.uni.driver.ts +50 -0
- package/src/components/TablePlaceholderStates/TablePlaceholderStates.tsx +45 -0
- package/src/components/TableSections/TableSectionRow.tsx +84 -0
- package/src/components/TableSections/TableSections.tsx +61 -0
- package/src/components/TableSections/TableSectionsState.ts +128 -0
- package/src/components/TableSections/index.ts +5 -0
- package/src/components/TableSections/useTableSectionRow.tsx +35 -0
- package/src/components/TableSkeleton/TableSkeleton.tsx +106 -0
- package/src/components/TableTopNotification/ScrollAwayPushStrategy.ts +50 -0
- package/src/components/TableTopNotification/ScrollAwayScheduleStrategy.ts +81 -0
- package/src/components/TableTopNotification/TableTopNotification.tsx +127 -0
- package/src/components/TableTopNotification/TableTopNotification.uni.driver.ts +18 -0
- package/src/components/TableTopNotification/TableTopNotificationState.ts +75 -0
- package/src/components/TableTopNotification/TopNotificationRenderProp.ts +9 -0
- package/src/components/TableTopNotification/index.ts +2 -0
- package/src/components/TabsFilter/TabTitle.tsx +64 -0
- package/src/components/TabsFilter/TabsDefault.tsx +58 -0
- package/src/components/TabsFilter/TabsDropdown.tsx +106 -0
- package/src/components/TabsFilter/TabsFilter.st.css +3 -0
- package/src/components/TabsFilter/TabsFilter.st.css.ts +25 -0
- package/src/components/TabsFilter/TabsFilter.tsx +225 -0
- package/src/components/TabsFilter/TabsFilter.uni.driver.ts +86 -0
- package/src/components/TabsFilter/TabsFilterState.ts +93 -0
- package/src/components/TabsFilter/TabsResponsiveState.ts +122 -0
- package/src/components/TabsFilter/index.ts +1 -0
- package/src/components/TabsFilter/types.ts +13 -0
- package/src/components/Tags/BulkAssignTagsPopover/AsyncJobProgressModal.tsx +52 -0
- package/src/components/Tags/BulkAssignTagsPopover/AsyncJobProgressModal.uni.driver.ts +31 -0
- package/src/components/Tags/BulkAssignTagsPopover/BulkAssignTagsPopover.tsx +133 -0
- package/src/components/Tags/BulkAssignTagsPopover/BulkAssignTagsPopover.uni.driver.ts +133 -0
- package/src/components/Tags/BulkAssignTagsPopover/CreateTagButton.tsx +40 -0
- package/src/components/Tags/BulkAssignTagsPopover/EmptyState.tsx +85 -0
- package/src/components/Tags/BulkAssignTagsPopover/Footer.tsx +67 -0
- package/src/components/Tags/BulkAssignTagsPopover/index.ts +1 -0
- package/src/components/Tags/ManageTags/CollectionManageTagsModal.tsx +13 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/List/TagListItemEditable.tsx +62 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/List/TagListItemView.tsx +94 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/List/TagsListItem.tsx +27 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css +3 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.ts +25 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.tsx +212 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.uni.driver.ts +118 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/ManageTagsNotification.tsx +80 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/NewTagItemEditable.tsx +31 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/TagItemEditable.tsx +81 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/index.ts +2 -0
- package/src/components/Tags/ManageTags/index.ts +1 -0
- package/src/components/Tags/Tags.tsx +66 -0
- package/src/components/Tags/TagsBulkAssignUtils.ts +59 -0
- package/src/components/Tags/TagsFolders.tsx +12 -0
- package/src/components/Tags/index.ts +3 -0
- package/src/components/Tags/manageTagsPageAction.tsx +23 -0
- package/src/components/Tags/types.ts +10 -0
- package/src/components/Tags/useTagsBulkAssignFoldersUtils.ts +45 -0
- package/src/components/Tags/useTagsBulkAssignUtils.ts +31 -0
- package/src/components/TagsAssignButton/TagsAssignButton.tsx +54 -0
- package/src/components/TagsAssignButton/TagsAssignButton.uni.driver.ts +14 -0
- package/src/components/TagsAssignButton/index.ts +1 -0
- package/src/components/TagsColumn/TagsColumn.tsx +32 -0
- package/src/components/TagsColumn/TagsColumnContent.tsx +36 -0
- package/src/components/TagsColumn/index.ts +1 -0
- package/src/components/TagsFilter/TagsFilter.tsx +61 -0
- package/src/components/TagsFilter/index.ts +2 -0
- package/src/components/TagsFilter/tagsFilterBuilder.tsx +53 -0
- package/src/components/TagsWidget/TagsWidget.tsx +212 -0
- package/src/components/TagsWidget/TagsWidget.uni.driver.ts +113 -0
- package/src/components/TagsWidget/TagsWidgetContent.tsx +232 -0
- package/src/components/TagsWidget/index.ts +1 -0
- package/src/components/TagsWidgetContext.ts +14 -0
- package/src/components/TextBreadcrumbs.tsx +35 -0
- package/src/components/TextWidthLoader.tsx +18 -0
- package/src/components/ToolbarCollection/ToolbarCollection.tsx +390 -0
- package/src/components/ToolbarCollection/checkConflictingToolbarProps.ts +53 -0
- package/src/components/ToolbarCollection/index.ts +1 -0
- package/src/components/ToolbarCollection/useToolbarCollectionSyncProps.ts +192 -0
- package/src/components/ToolbarCollectionContentAutoSizer/ContainerRectDebug.tsx +51 -0
- package/src/components/ToolbarCollectionContentAutoSizer/ToolbarCollectionContentAutoSizer.tsx +67 -0
- package/src/components/ToolbarCollectionContentAutoSizer/index.ts +1 -0
- package/src/components/ToolbarCollectionContext.ts +18 -0
- package/src/components/ToolbarItem/ToolbarItem.st.css +3 -0
- package/src/components/ToolbarItem/ToolbarItem.st.css.ts +25 -0
- package/src/components/ToolbarItem/ToolbarItem.tsx +11 -0
- package/src/components/ToolbarItemBox/ToolbarItemBox.st.css +13 -0
- package/src/components/ToolbarItemBox/ToolbarItemBox.st.css.ts +25 -0
- package/src/components/ToolbarItemBox/ToolbarItemBox.tsx +38 -0
- package/src/components/ToolbarItemBox/index.ts +1 -0
- package/src/components/ToolbarTitle/ToolbarTitle.tsx +102 -0
- package/src/components/ToolbarTitle/index.ts +1 -0
- package/src/components/Trans/Trans.tsx +11 -0
- package/src/components/Trans/index.tsx +1 -0
- package/src/components/VirtualGridRepeater/ForceRenderIndexes.tsx +76 -0
- package/src/components/VirtualGridRepeater/GridForceRenderIndexes.tsx +37 -0
- package/src/components/VirtualGridRepeater/GridState.ts +43 -0
- package/src/components/VirtualGridRepeater/RenderItem.ts +12 -0
- package/src/components/VirtualGridRepeater/TableForceRenderIndexes.tsx +54 -0
- package/src/components/VirtualGridRepeater/VirtualGridItem.tsx +56 -0
- package/src/components/VirtualGridRepeater/VirtualGridRepeater.tsx +22 -0
- package/src/components/VirtualGridRepeater/VirtualGridRepeaterBase.tsx +125 -0
- package/src/components/VirtualGridRepeater/VirtualGridRepeaterContext.ts +15 -0
- package/src/components/VirtualGridRepeater/VirtualGridRepeaterState.ts +164 -0
- package/src/components/VirtualGridRepeater/VirtualGridStateContext.ts +16 -0
- package/src/components/VirtualGridRepeater/VirtualInternalMemoItem.tsx +66 -0
- package/src/components/VirtualGridRepeater/VirtualItem.tsx +6 -0
- package/src/components/VirtualGridRepeater/VirtualTableRepeater.tsx +62 -0
- package/src/components/VirtualGridRepeater/VirtualTableRow.tsx +35 -0
- package/src/components/VirtualGridRepeater/VirtualTableRowMutated.tsx +75 -0
- package/src/components/VirtualGridRepeater/VirtualTableRowMutatedState.ts +120 -0
- package/src/components/VisuallyHidden.tsx +15 -0
- package/src/components/WixLogo.tsx +24 -0
- package/src/components/WixPatternsModalsContainer.tsx +91 -0
- package/src/components/WixPatternsTestProvider.tsx +36 -0
- package/src/components/assertComponentType.ts +77 -0
- package/src/components/collectionStateProps.ts +8 -0
- package/src/components/common.st.css +9 -0
- package/src/components/common.st.css.ts +25 -0
- package/src/components/createChildSlot.ts +29 -0
- package/src/components/deleteSecondaryAction/deleteSecondaryAction.tsx +48 -0
- package/src/components/deleteSecondaryAction/index.ts +1 -0
- package/src/components/index.ts +13 -0
- package/src/components/isValidElement.ts +15 -0
- package/src/components/uniDriverFactory.ts +3 -0
- package/src/components/unidriver.ts +5 -0
- package/src/components/useCollectionReachBottom.tsx +73 -0
- package/src/components/usePageButtonBiParams.ts +29 -0
- package/src/components/useWidgetPageStatus.tsx +17 -0
- package/src/container/index.ts +1 -0
- package/src/container/useCairoTranslations.ts +7 -0
- package/src/createContext.ts +33 -0
- package/src/dashboard/WixPatternsDashboardBaseProvider.tsx +124 -0
- package/src/dashboard/WixPatternsDashboardProvider.tsx +44 -0
- package/src/dashboard/WixPatternsDashboardProviderInternal.tsx +28 -0
- package/src/dashboard/WixPatternsDashboardTestProvider.tsx +74 -0
- package/src/dashboard/WixPatternsProvider.tsx +13 -0
- package/src/dashboard/WixPatternsProviderInternal.tsx +12 -0
- package/src/dashboard/getInstanceJwtData.ts +17 -0
- package/src/dashboard/useEnvironment.ts +15 -0
- package/src/docs-types.ts +35 -0
- package/src/essentials/WixPatternsEssentialsProvider.tsx +31 -0
- package/src/essentials/buildWixPatternsEssentials.ts +49 -0
- package/src/essentials/usePickerModal.ts +67 -0
- package/src/essentials/warmUpPickerStandalone.ts +11 -0
- package/src/essentials/withWixPatternsProvider.tsx +14 -0
- package/src/exports/alpha.ts +1 -0
- package/src/exports/bm.ts +5 -0
- package/src/exports/components.ts +1 -0
- package/src/exports/core.ts +1 -0
- package/src/exports/essentials.ts +10 -0
- package/src/exports/form.ts +8 -0
- package/src/exports/giza.ts +6 -0
- package/src/exports/history.ts +1 -0
- package/src/exports/mobx.ts +1 -0
- package/src/exports/nextjs.ts +1 -0
- package/src/exports/page.ts +3 -0
- package/src/exports/provider/index.ts +3 -0
- package/src/exports/provider/internal.ts +3 -0
- package/src/exports/router/index.ts +1 -0
- package/src/exports/testkit/backend.ts +1 -0
- package/src/exports/testkit/bm.ts +1 -0
- package/src/exports/testkit/enzyme.ts +1 -0
- package/src/exports/testkit/index.ts +12 -0
- package/src/exports/testkit/internal.ts +1 -0
- package/src/exports/testkit/jsdom.ts +1 -0
- package/src/exports/testkit/playwright.ts +1 -0
- package/src/exports/testkit/puppeteer.ts +1 -0
- package/src/exports/testkit/unidriver.ts +7 -0
- package/src/exports/utils/index.ts +3 -0
- package/src/exports/utils/react.ts +1 -0
- package/src/exports/version.ts +1 -0
- package/src/external-types.d.ts +8 -0
- package/src/external-types.tests.d.ts +8 -0
- package/src/fields/BaseInput/BaseInput.ts +16 -0
- package/src/fields/BaseInput/index.ts +1 -0
- package/src/fields/Checkbox/Checkbox.tsx +30 -0
- package/src/fields/Checkbox/index.ts +1 -0
- package/src/fields/DateInput/DateInput.tsx +74 -0
- package/src/fields/DateInput/index.ts +1 -0
- package/src/fields/DateTime/DateTime.tsx +170 -0
- package/src/fields/DateTime/index.ts +1 -0
- package/src/fields/Dropdown/Dropdown.tsx +36 -0
- package/src/fields/Dropdown/index.ts +1 -0
- package/src/fields/Field/Field.tsx +16 -0
- package/src/fields/Field/Field.uni.driver.ts +247 -0
- package/src/fields/Field/index.ts +1 -0
- package/src/fields/LongText/LongText.tsx +37 -0
- package/src/fields/LongText/index.ts +1 -0
- package/src/fields/Number/Number.tsx +26 -0
- package/src/fields/Number/index.ts +1 -0
- package/src/fields/ShortText/ShortText.tsx +37 -0
- package/src/fields/ShortText/index.ts +1 -0
- package/src/fields/Url/Url.tsx +72 -0
- package/src/fields/Url/index.ts +1 -0
- package/src/fields/dataHooks.ts +4 -0
- package/src/fields/index.ts +8 -0
- package/src/fields/useTextInput.ts +34 -0
- package/src/giza/WixPatternsGizaProvider.tsx +75 -0
- package/src/giza/buildWixPatternsEssentials.ts +61 -0
- package/src/giza/index.ts +2 -0
- package/src/giza/usePickerModal.ts +70 -0
- package/src/hooks/CollectionFoldersBaseConfig.ts +13 -0
- package/src/hooks/customModalContent.ts +8 -0
- package/src/hooks/index.ts +23 -0
- package/src/hooks/listItem.ts +18 -0
- package/src/hooks/useAmbassador/index.ts +2 -0
- package/src/hooks/useAmbassador/useAmbassadorGrid.ts +25 -0
- package/src/hooks/useAmbassador/useAmbassadorTable.ts +26 -0
- package/src/hooks/useAutoScrollOnLoad.tsx +35 -0
- package/src/hooks/useBuildAccordionItems.tsx +108 -0
- package/src/hooks/useBuildOption.ts +96 -0
- package/src/hooks/useCollectionComponentBaseParams.ts +11 -0
- package/src/hooks/useCollectionFilterInitialFetchTiming.ts +40 -0
- package/src/hooks/useCollectionOptions.tsx +81 -0
- package/src/hooks/useCollectionPageChild/index.ts +1 -0
- package/src/hooks/useCollectionPageChild/useCollectionPageChild.tsx +38 -0
- package/src/hooks/useColumnsSyncProps.ts +93 -0
- package/src/hooks/useCreateNestedOptimisticActions.ts +31 -0
- package/src/hooks/useCreateWSRColumnBase.ts +56 -0
- package/src/hooks/useCustomFieldsWidget.ts +53 -0
- package/src/hooks/useDateRangeFilterState.ts +31 -0
- package/src/hooks/useDropdownPlaceholder.ts +62 -0
- package/src/hooks/useDropdownSelectFilterState.ts +29 -0
- package/src/hooks/useEmptyStateTexts.ts +40 -0
- package/src/hooks/useEntity.ts +9 -0
- package/src/hooks/useEntityPage.ts +30 -0
- package/src/hooks/useEntityPageChild/index.ts +1 -0
- package/src/hooks/useEntityPageChild/useEntityPageChild.tsx +41 -0
- package/src/hooks/useExtensionMenuItems.tsx +30 -0
- package/src/hooks/useFilterCollection/index.ts +1 -0
- package/src/hooks/useFilterCollection/useFilterCollection.ts +87 -0
- package/src/hooks/useFilterCollectionStates.tsx +123 -0
- package/src/hooks/useFixMissingContactsViews.ts +95 -0
- package/src/hooks/useGridCollection.ts +32 -0
- package/src/hooks/useGridFolders.ts +49 -0
- package/src/hooks/useIsMobile.ts +10 -0
- package/src/hooks/useIsScrollTop.ts +20 -0
- package/src/hooks/useItemsSelectionFilter/index.ts +5 -0
- package/src/hooks/useItemsSelectionFilter/useItemsSelectionFilter.ts +160 -0
- package/src/hooks/useKanban.ts +83 -0
- package/src/hooks/useMigrateOrdersViews.ts +97 -0
- package/src/hooks/useNestedTable.ts +93 -0
- package/src/hooks/useOptionalCachedState.ts +93 -0
- package/src/hooks/usePageHeader.ts +27 -0
- package/src/hooks/usePageHeaderNew.ts +26 -0
- package/src/hooks/usePickerContent/index.ts +2 -0
- package/src/hooks/usePickerContent/usePickerContent.spec.tsx +84 -0
- package/src/hooks/usePickerContent/usePickerContent.ts +94 -0
- package/src/hooks/usePickerContent/usePickerContentState.ts +64 -0
- package/src/hooks/usePickerModal/PickerModalState.ts +491 -0
- package/src/hooks/usePickerModal/UsePickerModalParamsBase.ts +127 -0
- package/src/hooks/usePickerModal/index.ts +8 -0
- package/src/hooks/usePickerModal/usePickerModal.ts +32 -0
- package/src/hooks/usePickerModal/usePickerModalState.ts +93 -0
- package/src/hooks/usePickerStandalone/index.ts +1 -0
- package/src/hooks/usePickerStandalone/usePickerStandalone.spec.tsx +139 -0
- package/src/hooks/usePickerStandalone/usePickerStandalone.ts +117 -0
- package/src/hooks/usePromiseState.ts +70 -0
- package/src/hooks/useRafRender.ts +17 -0
- package/src/hooks/useSettings.ts +9 -0
- package/src/hooks/useSettingsPage.ts +26 -0
- package/src/hooks/useSettingsPageChild/index.ts +1 -0
- package/src/hooks/useSettingsPageChild/useSettingsPageChild.tsx +41 -0
- package/src/hooks/useStaticListFilterCollection.ts +59 -0
- package/src/hooks/useSyncCollectionOnEntityCreate.ts +45 -0
- package/src/hooks/useSyncCollectionOnEntityReturn.ts +154 -0
- package/src/hooks/useSyncCollectionOnEntityUpdate.ts +69 -0
- package/src/hooks/useSyncTotal.ts +28 -0
- package/src/hooks/useTableCollection.ts +43 -0
- package/src/hooks/useTableFolders.ts +49 -0
- package/src/hooks/useTableGridSwitchCollection.ts +40 -0
- package/src/hooks/useTableGridSwitchFolders.ts +51 -0
- package/src/hooks/useTableRoundedCornersEnabled.ts +6 -0
- package/src/hooks/useTagsWidget.ts +67 -0
- package/src/hooks/useViews.ts +49 -0
- package/src/hooks/useWidgetForm.ts +11 -0
- package/src/index.ts +241 -0
- package/src/minimalRequiredWdsRuntimeCheck.ts +16 -0
- package/src/model/filterProps.ts +85 -0
- package/src/model/index.ts +3 -0
- package/src/model/tableColumn.ts +150 -0
- package/src/model/view.ts +138 -0
- package/src/nextjs/styleableDecorator.ts +55 -0
- package/src/providers/CairoProvider.tsx +43 -0
- package/src/providers/CollectionPageContext.ts +6 -0
- package/src/providers/DropdownTranslationProvider.tsx +64 -0
- package/src/providers/EntityPageContext.ts +19 -0
- package/src/providers/FilterToolbarState.ts +21 -0
- package/src/providers/FilterTranslationProvider.tsx +36 -0
- package/src/providers/FormPageContext.ts +5 -0
- package/src/providers/PageContext.ts +5 -0
- package/src/providers/ScrollableContentContext.ts +20 -0
- package/src/providers/SettingsPageContext.ts +19 -0
- package/src/providers/TableContext.ts +15 -0
- package/src/providers/WidgetsFormContext.ts +5 -0
- package/src/providers/WixPatternsBaseProvider.tsx +44 -0
- package/src/providers/WixPatternsMinimalEssentials.ts +11 -0
- package/src/providers/WixPatternsRouterProvider.tsx +28 -0
- package/src/providers/index.ts +12 -0
- package/src/reach-bottom-listener/index.ts +3 -0
- package/src/reach-bottom-listener/reachBottomListener.ts +151 -0
- package/src/reach-bottom-listener/scrollPosition.ts +39 -0
- package/src/reach-bottom-listener/scrollableWindow.ts +35 -0
- package/src/services/index.ts +1 -0
- package/src/services/viewsService.ts +233 -0
- package/src/services/withCairoViewsTestFlag.ts +17 -0
- package/src/sledPage.ts +5 -0
- package/src/state/AdditionalStepState.ts +30 -0
- package/src/state/BulkActionToolbarState.ts +298 -0
- package/src/state/CollectionFilterState.ts +25 -0
- package/src/state/CollectionPage/CollectionPageHeader.st.css +15 -0
- package/src/state/CollectionPage/CollectionPageHeader.st.css.ts +25 -0
- package/src/state/CollectionPage/index.ts +2 -0
- package/src/state/CollectionPage/pushFactoryIfNotExistsOrAddToTopOfGroup.ts +52 -0
- package/src/state/CollectionPage/useCollectionPageContent.tsx +7 -0
- package/src/state/CollectionPage/useCollectionPageHeader.tsx +105 -0
- package/src/state/CollectionReachBottom.ts +61 -0
- package/src/state/CollectionViewsQueryCompareHelper.ts +224 -0
- package/src/state/CollectionViewsState.ts +445 -0
- package/src/state/CollectionViewsStateBIReporter.ts +291 -0
- package/src/state/CustomColumnsDragAndDropState.ts +145 -0
- package/src/state/CustomColumnsHistoryState.ts +92 -0
- package/src/state/CustomColumnsState.ts +500 -0
- package/src/state/CustomFields/CustomFieldsAllNamespacesFormState.ts +133 -0
- package/src/state/CustomFields/CustomFieldsFormState.ts +203 -0
- package/src/state/CustomFields/CustomFieldsPanelState.ts +80 -0
- package/src/state/CustomFields/CustomFieldsWidgetState.ts +324 -0
- package/src/state/CustomFields/index.ts +3 -0
- package/src/state/DateRangeFilterState.ts +44 -0
- package/src/state/DateRangePickerState.ts +378 -0
- package/src/state/DragAndDrop/createOptimisticActionsOrderByModeReaction.ts +21 -0
- package/src/state/DropdownCollectionFilterState.ts +103 -0
- package/src/state/DropdownSelectFilterState.ts +46 -0
- package/src/state/DropdownSelectState.ts +202 -0
- package/src/state/EntityPage/EntityPageState.ts +407 -0
- package/src/state/EntityPage/EntityPageStateBIReporter.ts +138 -0
- package/src/state/EntityPage/index.ts +3 -0
- package/src/state/EntityPage/useEntityPageContent.tsx +20 -0
- package/src/state/EntityPage/useEntityPageHeader.tsx +41 -0
- package/src/state/ExtensionMenuItemsState.ts +70 -0
- package/src/state/ExtensionsState.ts +54 -0
- package/src/state/FeaturesAvailabilityBIParams.ts +26 -0
- package/src/state/FilterValueTotalState.ts +150 -0
- package/src/state/FoldersAndItemsCollectionsState.ts +164 -0
- package/src/state/FormPage/FormFooter.tsx +30 -0
- package/src/state/FormPage/FormPageHeader.st.css +15 -0
- package/src/state/FormPage/FormPageHeader.st.css.ts +25 -0
- package/src/state/FormPage/index.ts +2 -0
- package/src/state/FormPage/useFormPageContent.tsx +121 -0
- package/src/state/FormPage/useFormPageHeader.tsx +84 -0
- package/src/state/GridBaseState.ts +333 -0
- package/src/state/GridFoldersBIReporter.ts +46 -0
- package/src/state/GridFoldersState.ts +222 -0
- package/src/state/GridParentState.ts +8 -0
- package/src/state/GridState.ts +86 -0
- package/src/state/ICollectionComponentState.ts +5 -0
- package/src/state/IndeterminateMapState.ts +84 -0
- package/src/state/IntersectionObserverState.ts +47 -0
- package/src/state/ItemActionsState.tsx +93 -0
- package/src/state/KanbanState/KanbanDragEndEvent.ts +5 -0
- package/src/state/KanbanState/KanbanStageState.ts +201 -0
- package/src/state/KanbanState/KanbanState.ts +674 -0
- package/src/state/KanbanState/KanbanStateBIReporter.ts +316 -0
- package/src/state/KanbanState/index.ts +2 -0
- package/src/state/MultiLevelSortingDragAndDrop.ts +146 -0
- package/src/state/MultiLevelSortingState.ts +345 -0
- package/src/state/NestedTableState/NestedCollectionFetchAllCollectionState.ts +235 -0
- package/src/state/NestedTableState/NestedCollectionFetchAllState.ts +138 -0
- package/src/state/NestedTableState/NestedCollectionLevelDescriptor.ts +38 -0
- package/src/state/NestedTableState/NestedCollectionNodeState.ts +181 -0
- package/src/state/NestedTableState/NestedCollectionState.ts +81 -0
- package/src/state/NestedTableState/NestedTableColumn.ts +8 -0
- package/src/state/NestedTableState/NestedTableFlatModeSectionState.ts +116 -0
- package/src/state/NestedTableState/NestedTableFlatModeState.ts +251 -0
- package/src/state/NestedTableState/NestedTableFlatModeStateBIReporter.ts +46 -0
- package/src/state/NestedTableState/NestedTableLeafNodeState.ts +54 -0
- package/src/state/NestedTableState/NestedTableLevelDescriptor.ts +54 -0
- package/src/state/NestedTableState/NestedTableNestedModeState.ts +284 -0
- package/src/state/NestedTableState/NestedTableNestedModeStateBIReporter.ts +26 -0
- package/src/state/NestedTableState/NestedTableNodeState.ts +569 -0
- package/src/state/NestedTableState/NestedTableNodeStateBIReporter.ts +59 -0
- package/src/state/NestedTableState/NestedTableNodeStateOptimisticActions.ts +88 -0
- package/src/state/NestedTableState/NestedTableNodeStatePublicAPI.ts +58 -0
- package/src/state/NestedTableState/NestedTableState.ts +370 -0
- package/src/state/NestedTableState/createNestedOptimisticActions.ts +56 -0
- package/src/state/NestedTableState/createNestedTableLevel.ts +24 -0
- package/src/state/NestedTableState/createParentIdPredicate.ts +30 -0
- package/src/state/NestedTableState/getNodeOrLeaf.ts +19 -0
- package/src/state/NestedTableState/index.ts +9 -0
- package/src/state/NestedTableState/types.ts +11 -0
- package/src/state/PickerContentState.ts +392 -0
- package/src/state/PickerContentStateBI.ts +70 -0
- package/src/state/PickerStandaloneState.ts +381 -0
- package/src/state/RectState.ts +140 -0
- package/src/state/ResizeObserverState.ts +33 -0
- package/src/state/Responsive/HorizontalOverflowState.ts +85 -0
- package/src/state/Responsive/HorizontalSpaceAvailableState.ts +86 -0
- package/src/state/ResponsiveColumnsState.ts +68 -0
- package/src/state/ScrollState.ts +68 -0
- package/src/state/SelectFieldState.ts +65 -0
- package/src/state/SettingsPage/SettingsPageState.ts +276 -0
- package/src/state/SettingsPage/SettingsPageStateBIReporter.ts +134 -0
- package/src/state/SettingsPage/useSettingsPageContent.tsx +20 -0
- package/src/state/SettingsPage/useSettingsPageHeader.tsx +31 -0
- package/src/state/SidePanelsState.ts +103 -0
- package/src/state/TableFoldersState.ts +239 -0
- package/src/state/TableGridSwitchFoldersState.ts +107 -0
- package/src/state/TableGridSwitchState.ts +94 -0
- package/src/state/TableState.ts +228 -0
- package/src/state/TableVirtualState.ts +181 -0
- package/src/state/TagsBulkAssignAsyncState.ts +409 -0
- package/src/state/TagsBulkAssignButtonState.ts +28 -0
- package/src/state/TagsBulkAssignPopoverState.ts +454 -0
- package/src/state/TagsBulkAssignSyncState.ts +196 -0
- package/src/state/TagsCollectionState.ts +143 -0
- package/src/state/TagsModalState.ts +475 -0
- package/src/state/Toolbar/ToolbarResponsivePriorityState.ts +110 -0
- package/src/state/Toolbar/ToolbarResponsiveState.ts +131 -0
- package/src/state/ToolbarBIReporter.ts +238 -0
- package/src/state/ToolbarCollectionState.ts +900 -0
- package/src/state/ViewTypeState.ts +70 -0
- package/src/state/ViewsHistoryState.ts +63 -0
- package/src/state/ViewsLocalSearchBIReporter.ts +132 -0
- package/src/state/ViewsLocalSearchState.ts +146 -0
- package/src/state/ViewsState.ts +699 -0
- package/src/state/WixPatternsRouterState.ts +51 -0
- package/src/state/getToolbarCollectionFeaturesInitializers.ts +48 -0
- package/src/state/gridSizePresets.ts +111 -0
- package/src/state/index.ts +34 -0
- package/src/state/indexOfCompareFn.ts +25 -0
- package/src/state/initCustomColumns.ts +22 -0
- package/src/state/initTabTotal.ts +32 -0
- package/src/state/presetsToCategories.ts +25 -0
- package/src/state/setViewsState.ts +37 -0
- package/src/state/simplifyColumns.ts +35 -0
- package/src/state/simplifyExtendedColumns.tsx +95 -0
- package/src/state/toolbarFeatureInitializer.ts +9 -0
- package/src/state/warmUpPickerStandalone.ts +22 -0
- package/src/stylable-esm-runtime.ts +90 -0
- package/src/styles.global.css +1 -0
- package/src/test-types.d.ts +1 -0
- package/src/test-utils/AppsMocks.ts +56 -0
- package/src/test-utils/AsyncJobMocks.ts +85 -0
- package/src/test-utils/CairoTestApp.tsx +139 -0
- package/src/test-utils/CairoTestAppRouter.tsx +21 -0
- package/src/test-utils/DataExtensionMocks.ts +84 -0
- package/src/test-utils/ExportMocks.ts +46 -0
- package/src/test-utils/ExtensionWidget.tsx +53 -0
- package/src/test-utils/HttpErrorMocks.tsx +29 -0
- package/src/test-utils/ItemsSelectionMocks.ts +51 -0
- package/src/test-utils/MultiSelectCheckboxStaticListFilter.tsx +27 -0
- package/src/test-utils/OrdersMocks.ts +98 -0
- package/src/test-utils/Router.tsx +58 -0
- package/src/test-utils/SettingsModalLayout.tsx +146 -0
- package/src/test-utils/SingleSelectFilter.tsx +23 -0
- package/src/test-utils/TagsMocks.ts +273 -0
- package/src/test-utils/ToastState.ts +29 -0
- package/src/test-utils/WixPatternsEssentialsTestProvider.tsx +124 -0
- package/src/test-utils/columns.ts +17 -0
- package/src/test-utils/createPromise.ts +22 -0
- package/src/test-utils/createSitesBackend.ts +36 -0
- package/src/test-utils/createStatusesBackend.ts +33 -0
- package/src/test-utils/dataExtensionServiceMocks.ts +82 -0
- package/src/test-utils/flush.ts +41 -0
- package/src/test-utils/getUniDriverStyle.ts +10 -0
- package/src/test-utils/index.ts +14 -0
- package/src/test-utils/site.ts +6 -0
- package/src/test-utils/status.ts +4 -0
- package/src/test-utils/statusFilters.ts +3 -0
- package/src/test-utils/tagsServiceMocks.ts +68 -0
- package/src/test-utils/toast.ts +13 -0
- package/src/test-utils/viewsServiceTestkit.ts +176 -0
- package/src/testkit/backend.ts +1 -0
- package/src/testkit/enzyme.ts +78 -0
- package/src/testkit/jsdom.ts +104 -0
- package/src/testkit/playwright.ts +92 -0
- package/src/testkit/puppeteer.ts +95 -0
- package/src/unidriver/baseUniDriverFactory.ts +11 -0
- package/src/unidriver/index.ts +1 -0
- package/src/useSelector.ts +9 -0
- package/src/utils/assertProp.ts +13 -0
- package/src/utils/datesUtil.ts +71 -0
- package/src/utils/getCollectionComponentUniqueId.ts +7 -0
- package/src/utils/isErrorResponse.ts +10 -0
- package/src/utils/matchMediaQuery.ts +30 -0
- package/src/utils/minimalRequiredRuntimeCheck.ts +22 -0
- package/src/utils/replaceUrlCurlySegments.ts +53 -0
- package/src/utils/useWindowFlipPopoverProps.ts +32 -0
- package/src/utils/validateEncodedUrl.ts +22 -0
- package/src/utils/wordStartsWithMatch.ts +7 -0
- package/src/version.ts +1 -0
- package/src/wix-design-system-version.ts +1 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import {
|
|
2
|
+
WixPatternsContainer,
|
|
3
|
+
ConditionalModalState,
|
|
4
|
+
FiltersMap,
|
|
5
|
+
TypedEmitter,
|
|
6
|
+
withoutDefaults,
|
|
7
|
+
CloseSidePanel,
|
|
8
|
+
} from '@wix/bex-core';
|
|
9
|
+
import { action, computed, makeObservable, observable, reaction } from 'mobx';
|
|
10
|
+
import { CollectionDragEndEvent } from './DragAndDrop';
|
|
11
|
+
import { EventEmitter } from 'events';
|
|
12
|
+
import {
|
|
13
|
+
cairoApplyButtonClicked,
|
|
14
|
+
cairoDiscardChangesBeforeApply,
|
|
15
|
+
cairoLearnMore,
|
|
16
|
+
} from '@wix/bex-core/bi';
|
|
17
|
+
import { ToolbarCollectionState } from '../../state';
|
|
18
|
+
|
|
19
|
+
export class ReorderModeState<T, F extends FiltersMap> {
|
|
20
|
+
readonly discardChangesModal = new ConditionalModalState<null>();
|
|
21
|
+
readonly feature = 'Drag and Drop';
|
|
22
|
+
readonly origin = 'Table Toolbar';
|
|
23
|
+
|
|
24
|
+
toolbar: ToolbarCollectionState<T, F>;
|
|
25
|
+
container: WixPatternsContainer;
|
|
26
|
+
|
|
27
|
+
_isReorderModeSubmitted = false;
|
|
28
|
+
pendingPromise: Promise<void> | null = null;
|
|
29
|
+
|
|
30
|
+
closeSidePanel?: CloseSidePanel;
|
|
31
|
+
|
|
32
|
+
readonly events = new EventEmitter() as TypedEmitter<{
|
|
33
|
+
submitSuccess: () => void;
|
|
34
|
+
submitError: (error: unknown) => void;
|
|
35
|
+
}>;
|
|
36
|
+
|
|
37
|
+
constructor(params: {
|
|
38
|
+
toolbar: ToolbarCollectionState<T, F>;
|
|
39
|
+
container: WixPatternsContainer;
|
|
40
|
+
closeSidePanel?: CloseSidePanel;
|
|
41
|
+
}) {
|
|
42
|
+
this.toolbar = params.toolbar;
|
|
43
|
+
this.container = params.container;
|
|
44
|
+
this.closeSidePanel = params.closeSidePanel;
|
|
45
|
+
|
|
46
|
+
makeObservable(this, {
|
|
47
|
+
isReorderModeToolbarVisible: computed,
|
|
48
|
+
isReorderModePending: computed,
|
|
49
|
+
_isReorderModeSubmitted: observable.ref,
|
|
50
|
+
_setIsReorderModeSubmitted: action,
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
this.init();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
init() {
|
|
57
|
+
const disposers = [
|
|
58
|
+
reaction(
|
|
59
|
+
() => this.moves.length,
|
|
60
|
+
async () => {
|
|
61
|
+
if (this.moves.length === 0) {
|
|
62
|
+
this.pendingPromise = null;
|
|
63
|
+
this._setIsReorderModeSubmitted(false);
|
|
64
|
+
} else {
|
|
65
|
+
this.closeSidePanel?.();
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
),
|
|
69
|
+
];
|
|
70
|
+
|
|
71
|
+
return () => {
|
|
72
|
+
disposers.forEach((disposer) => disposer?.());
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
get optimisticActions() {
|
|
77
|
+
return this.toolbar.collection._optimisticActions;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
get patches() {
|
|
81
|
+
return this.optimisticActions?.state.patches ?? [];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
get dnd() {
|
|
85
|
+
return this.toolbar._dnd!;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
get moves(): CollectionDragEndEvent<T, F>[] {
|
|
89
|
+
const {
|
|
90
|
+
toolbar: { _dnd },
|
|
91
|
+
} = this;
|
|
92
|
+
|
|
93
|
+
if (_dnd == null) {
|
|
94
|
+
return [];
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return (
|
|
98
|
+
this.patches
|
|
99
|
+
.filter((patch) => patch.move !== undefined && !patch.isStale)
|
|
100
|
+
.map(({ move }) => _dnd._createSimpleDragEndEvent(move!)) ?? []
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
get isReorderModeToolbarVisible() {
|
|
105
|
+
return this.moves.length > 0 && !this._isReorderModeSubmitted;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
get isReorderModePending() {
|
|
109
|
+
return this.moves.length > 0 && this.pendingPromise !== null;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
get snapshot(): T[][] {
|
|
113
|
+
return this.optimisticActions?.collection.result.pages ?? [];
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
get onSubmit() {
|
|
117
|
+
if (this.pendingPromise) {
|
|
118
|
+
return this.pendingPromise;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const { events } = this;
|
|
122
|
+
return (this.pendingPromise = new Promise<void>((resolve, reject) => {
|
|
123
|
+
events.once('submitSuccess', resolve);
|
|
124
|
+
events.once('submitError', reject);
|
|
125
|
+
}));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
_showSuccessToast() {
|
|
129
|
+
this.container.showToast?.({
|
|
130
|
+
type: 'SUCCESS',
|
|
131
|
+
message: this.container.translate(
|
|
132
|
+
'cairo.dragAndDrop.reorderMode.toast.success',
|
|
133
|
+
),
|
|
134
|
+
biName: 'reorder-mode-submit-success',
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
_reportApplyButtonClickedBiEvent() {
|
|
139
|
+
this.dnd.reportBi(
|
|
140
|
+
withoutDefaults(cairoApplyButtonClicked)({
|
|
141
|
+
numOfActions: this.moves.length,
|
|
142
|
+
feature: this.feature,
|
|
143
|
+
origin: this.origin,
|
|
144
|
+
}),
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
_reportDiscardChangesBeforeApplyBiEvent() {
|
|
149
|
+
this.dnd.reportBi(
|
|
150
|
+
withoutDefaults(cairoDiscardChangesBeforeApply)({
|
|
151
|
+
numOfActions: this.moves.length,
|
|
152
|
+
feature: this.feature,
|
|
153
|
+
origin: this.origin,
|
|
154
|
+
}),
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
reportLearnMoreClickedBiEvent() {
|
|
159
|
+
this.dnd.reportBi(
|
|
160
|
+
withoutDefaults(cairoLearnMore)({
|
|
161
|
+
origin: this.origin,
|
|
162
|
+
}),
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
async onBulkCancel() {
|
|
167
|
+
this.discardChangesModal.open(null);
|
|
168
|
+
const { result } = await this.discardChangesModal.modal.promise();
|
|
169
|
+
if (result === 'confirmed') {
|
|
170
|
+
this._reportDiscardChangesBeforeApplyBiEvent();
|
|
171
|
+
this.events.emit(
|
|
172
|
+
'submitError',
|
|
173
|
+
new Error(this.optimisticActions?.reorderModeCanceledMessage),
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
async onBulkSubmit() {
|
|
179
|
+
this._reportApplyButtonClickedBiEvent();
|
|
180
|
+
|
|
181
|
+
try {
|
|
182
|
+
this._setIsReorderModeSubmitted(true);
|
|
183
|
+
await this.dnd.onBulkSubmit?.(this.moves, this.snapshot);
|
|
184
|
+
this._showSuccessToast();
|
|
185
|
+
this.events.emit('submitSuccess');
|
|
186
|
+
} catch (error) {
|
|
187
|
+
this.events.emit('submitError', error);
|
|
188
|
+
this.pendingPromise = null;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
_setIsReorderModeSubmitted(submitted: boolean) {
|
|
193
|
+
this._isReorderModeSubmitted = submitted;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { FiltersMap } from '@wix/bex-core';
|
|
2
|
+
import { TableState } from '../../state';
|
|
3
|
+
import { action, makeObservable } from 'mobx';
|
|
4
|
+
import { CollectionDragAndDropState } from './CollectionDragAndDropState';
|
|
5
|
+
import { DragAndDropCancel } from './DragAndDrop';
|
|
6
|
+
|
|
7
|
+
export interface TableDragAndDropStateParams<T, F extends FiltersMap> {
|
|
8
|
+
readonly tableState: TableState<T, F>;
|
|
9
|
+
readonly modalsContainerRef: {
|
|
10
|
+
current: HTMLElement | null | undefined;
|
|
11
|
+
};
|
|
12
|
+
readonly dragAndDropCancel?: DragAndDropCancel<T, F>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class TableDragAndDropState<T, F extends FiltersMap> {
|
|
16
|
+
readonly tableState;
|
|
17
|
+
readonly dragAndDrop;
|
|
18
|
+
|
|
19
|
+
constructor(params: TableDragAndDropStateParams<T, F>) {
|
|
20
|
+
this.tableState = params.tableState;
|
|
21
|
+
this.dragAndDrop = new CollectionDragAndDropState({
|
|
22
|
+
state: params.tableState.toolbar,
|
|
23
|
+
container: params.tableState.toolbar.container,
|
|
24
|
+
a11yContainer: params.modalsContainerRef,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
makeObservable(this, {
|
|
28
|
+
init: action,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
get dnd() {
|
|
33
|
+
return this.dragAndDrop.dnd;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
getStickyColumnsCount({
|
|
37
|
+
stickyColumns,
|
|
38
|
+
horizontalScroll,
|
|
39
|
+
}: {
|
|
40
|
+
stickyColumns: number;
|
|
41
|
+
showSelection?: boolean;
|
|
42
|
+
horizontalScroll?: boolean;
|
|
43
|
+
}) {
|
|
44
|
+
const { dragAndDrop } = this;
|
|
45
|
+
return horizontalScroll && !dragAndDrop.dnd.isDisabled
|
|
46
|
+
? stickyColumns + 1
|
|
47
|
+
: stickyColumns;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
init() {
|
|
51
|
+
const { dragAndDrop } = this;
|
|
52
|
+
|
|
53
|
+
return dragAndDrop.init();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export function hasExceededDistance({
|
|
2
|
+
delta,
|
|
3
|
+
measurement,
|
|
4
|
+
axis = 'all',
|
|
5
|
+
}: {
|
|
6
|
+
delta: { x: number; y: number };
|
|
7
|
+
measurement: number;
|
|
8
|
+
axis?: 'x' | 'y' | 'all';
|
|
9
|
+
}): boolean {
|
|
10
|
+
const dx = Math.abs(delta.x);
|
|
11
|
+
const dy = Math.abs(delta.y);
|
|
12
|
+
|
|
13
|
+
switch (axis) {
|
|
14
|
+
case 'y':
|
|
15
|
+
return dy > measurement;
|
|
16
|
+
case 'x':
|
|
17
|
+
return dx > measurement;
|
|
18
|
+
case 'all':
|
|
19
|
+
default:
|
|
20
|
+
return Math.sqrt(dx ** 2 + dy ** 2) > measurement;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FiltersMap } from '@wix/bex-core';
|
|
2
|
+
import { ToolbarCollectionState } from '../../state';
|
|
3
|
+
import { ReorderModeState } from './ReorderModeState';
|
|
4
|
+
import { runInAction } from 'mobx';
|
|
5
|
+
|
|
6
|
+
export function setReorderModeState<T, F extends FiltersMap>(
|
|
7
|
+
toolbar: ToolbarCollectionState<T, F>,
|
|
8
|
+
) {
|
|
9
|
+
runInAction(() => {
|
|
10
|
+
if (!toolbar._dnd) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
toolbar._dnd.reorderModeState ??= new ReorderModeState({
|
|
14
|
+
toolbar,
|
|
15
|
+
container: toolbar.container,
|
|
16
|
+
closeSidePanel: toolbar.closeSidePanel,
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface Rect {
|
|
2
|
+
height: number;
|
|
3
|
+
left: number;
|
|
4
|
+
top: number;
|
|
5
|
+
width: number;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function haveIntersection(entry: Rect, target: Rect) {
|
|
9
|
+
const top = Math.max(target.top, entry.top);
|
|
10
|
+
const left = Math.max(target.left, entry.left);
|
|
11
|
+
const right = Math.min(target.left + target.width, entry.left + entry.width);
|
|
12
|
+
const bottom = Math.min(target.top + target.height, entry.top + entry.height);
|
|
13
|
+
|
|
14
|
+
return left < right && top < bottom;
|
|
15
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
-st-states: disabled, dragging;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.root:not(:disabled) {
|
|
8
|
+
cursor: grab;
|
|
9
|
+
color: #A8CAFF;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.root:disabled {
|
|
13
|
+
color: #ACAFC4
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.root:focus-visible:not(:disabled) {
|
|
17
|
+
outline: none;
|
|
18
|
+
box-shadow: 0 0 0 3px #A6D0FF;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.root:disabled {
|
|
22
|
+
pointer-events: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.root:dragging:not(:disabled) {
|
|
26
|
+
cursor: grabbing;
|
|
27
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _namespace_ = "DragHandle2439316473";
|
|
9
|
+
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
|
+
|
|
11
|
+
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
12
|
+
export var style = _style_;
|
|
13
|
+
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
|
+
|
|
15
|
+
export var namespace = _namespace_;
|
|
16
|
+
export var classes = {"root":"DragHandle2439316473__root"};
|
|
17
|
+
export var keyframes = {};
|
|
18
|
+
export var layers = {};
|
|
19
|
+
export var containers = {};
|
|
20
|
+
export var stVars = {};
|
|
21
|
+
export var vars = {};
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { classes, st } from './DragHandle.st.css.js';
|
|
2
|
+
import React, { HTMLAttributes } from 'react';
|
|
3
|
+
import {
|
|
4
|
+
DragAndDropLockedLarge,
|
|
5
|
+
DragAndDropLarge,
|
|
6
|
+
} from '@wix/wix-ui-icons-common/system';
|
|
7
|
+
|
|
8
|
+
export interface DragHandleProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
dataHook?: string;
|
|
10
|
+
dragging?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
domRef?: React.Ref<HTMLDivElement>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function DragHandle(props: DragHandleProps) {
|
|
16
|
+
const { dataHook, domRef, dragging, disabled, className, ...rest } = props;
|
|
17
|
+
const dragHandleIcon = disabled ? (
|
|
18
|
+
<DragAndDropLockedLarge data-hook="dnd-locked" />
|
|
19
|
+
) : (
|
|
20
|
+
<DragAndDropLarge />
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<div
|
|
25
|
+
data-hook={dataHook}
|
|
26
|
+
ref={domRef}
|
|
27
|
+
{...rest}
|
|
28
|
+
className={st(
|
|
29
|
+
classes.root,
|
|
30
|
+
{
|
|
31
|
+
disabled,
|
|
32
|
+
dragging,
|
|
33
|
+
},
|
|
34
|
+
className,
|
|
35
|
+
)}
|
|
36
|
+
>
|
|
37
|
+
{dragHandleIcon}
|
|
38
|
+
</div>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { TextUniDriver } from '@wix/design-system/dist/testkit/unidriver';
|
|
2
|
+
import { InputWithOptionsUniDriver } from '@wix/design-system/dist/types/InputWithOptions/InputWithOptions.uni.driver';
|
|
3
|
+
import { UniDriver, waitFor } from '@wix/wix-ui-test-utils/unidriver';
|
|
4
|
+
import shuffle from 'lodash/shuffle';
|
|
5
|
+
|
|
6
|
+
export const CollectionDropdownFilterUniDriver = <
|
|
7
|
+
T extends Omit<InputWithOptionsUniDriver, 'driver'>,
|
|
8
|
+
>(
|
|
9
|
+
optionsDriver: T,
|
|
10
|
+
dataHook: string,
|
|
11
|
+
base: UniDriver,
|
|
12
|
+
body: UniDriver,
|
|
13
|
+
) => {
|
|
14
|
+
const waitForOptions = async (total = 1, timeout = 3000) => {
|
|
15
|
+
await waitFor(
|
|
16
|
+
async () =>
|
|
17
|
+
(await optionsDriver.dropdownLayoutDriver.optionsLength()) >= total,
|
|
18
|
+
timeout,
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
return optionsDriver.dropdownLayoutDriver.options();
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const getDropdownLayoutBase = async () =>
|
|
25
|
+
body.$(`[data-content-element="${await base.attr('data-content-hook')}"]`);
|
|
26
|
+
|
|
27
|
+
const getOptions = async (ids: string[]) => {
|
|
28
|
+
return ids.map(async (id) => {
|
|
29
|
+
return optionsDriver.dropdownLayoutDriver.optionById(id);
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const getOptionsCount = () => {
|
|
34
|
+
return optionsDriver.dropdownLayoutDriver.optionsLength();
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const getAvailableOptionsIds = async () => {
|
|
38
|
+
const options = await optionsDriver.dropdownLayoutDriver.options();
|
|
39
|
+
|
|
40
|
+
const maybeIds = await Promise.all(
|
|
41
|
+
options.map(async (option) => {
|
|
42
|
+
const hook = await option.element().attr('data-hook');
|
|
43
|
+
return hook?.replace(/^dropdown-item-/, '');
|
|
44
|
+
}),
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
return maybeIds.filter((value): value is string => value != null);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const getInputPlaceholder = () => {
|
|
51
|
+
return optionsDriver.inputDriver.getPlaceholder();
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const isNoSearchResults = async () =>
|
|
55
|
+
(await getDropdownLayoutBase()).$('[data-hook="empty-state"]').exists();
|
|
56
|
+
|
|
57
|
+
const isErrorStateExists = async () =>
|
|
58
|
+
(await getDropdownLayoutBase())
|
|
59
|
+
.$('[data-hook="filter-error-state"]')
|
|
60
|
+
.exists();
|
|
61
|
+
|
|
62
|
+
const getEmptyStateText = async () =>
|
|
63
|
+
TextUniDriver(
|
|
64
|
+
(await getDropdownLayoutBase()).$('[data-hook="empty-state-text"]'),
|
|
65
|
+
body,
|
|
66
|
+
).getText();
|
|
67
|
+
|
|
68
|
+
const initialLoaderExists = async () =>
|
|
69
|
+
(await getDropdownLayoutBase()).$('[data-hook="initial-loader"]').exists();
|
|
70
|
+
const infiniteScrollLoaderExists = async () =>
|
|
71
|
+
(await getDropdownLayoutBase())
|
|
72
|
+
.$('[data-hook="dropdownLayout-loader"]')
|
|
73
|
+
.exists();
|
|
74
|
+
|
|
75
|
+
const clickOptions = async (ids: string[]) => {
|
|
76
|
+
for (const id of ids) {
|
|
77
|
+
await optionsDriver.dropdownLayoutDriver.clickAtOptionByDataHook(
|
|
78
|
+
`dropdown-item-${id}`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return ids;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const existInFilter = async (dataHook: string) =>
|
|
86
|
+
(await getDropdownLayoutBase()).$(`[data-hook="${dataHook}"]`).exists();
|
|
87
|
+
|
|
88
|
+
const selectRandomOptions = async (
|
|
89
|
+
count: number,
|
|
90
|
+
options: { closeDropdown?: boolean } = {},
|
|
91
|
+
) => {
|
|
92
|
+
await optionsDriver.inputDriver.click();
|
|
93
|
+
|
|
94
|
+
const ids = await getRandomOptions(count);
|
|
95
|
+
|
|
96
|
+
return selectOptions(ids, options);
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const close = () => optionsDriver.dropdownLayoutDriver.mouseClickOutside();
|
|
100
|
+
const clickInputClear = () => optionsDriver.inputDriver.clickClear();
|
|
101
|
+
|
|
102
|
+
const getRandomOptions = async (count: number) => {
|
|
103
|
+
await waitForOptions(count);
|
|
104
|
+
|
|
105
|
+
const options = await optionsDriver.dropdownLayoutDriver.options();
|
|
106
|
+
const maybeIds = await Promise.all(
|
|
107
|
+
options.map(async (option) => {
|
|
108
|
+
const dataHook = await option.element().attr('data-hook');
|
|
109
|
+
return dataHook?.replace(/^dropdown-item-/, '');
|
|
110
|
+
}),
|
|
111
|
+
);
|
|
112
|
+
|
|
113
|
+
const ids = maybeIds.filter((value): value is string => value != null);
|
|
114
|
+
|
|
115
|
+
return shuffle(ids).slice(0, count);
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
const selectOptions = async (
|
|
119
|
+
ids: string[],
|
|
120
|
+
{ closeDropdown = true }: { closeDropdown?: boolean } = {},
|
|
121
|
+
) => {
|
|
122
|
+
await optionsDriver.inputDriver.click();
|
|
123
|
+
|
|
124
|
+
await waitForOptions();
|
|
125
|
+
const clickedIds = await clickOptions(ids);
|
|
126
|
+
|
|
127
|
+
if (closeDropdown) {
|
|
128
|
+
await close();
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return clickedIds;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
const selectOption = async (id: string) => {
|
|
135
|
+
await optionsDriver.inputDriver.click();
|
|
136
|
+
|
|
137
|
+
await waitForOptions();
|
|
138
|
+
const clickedId = await clickOptions([id]);
|
|
139
|
+
|
|
140
|
+
return clickedId[0] || [];
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
const hasDivider = async () => {
|
|
144
|
+
return (await getAvailableOptionsIds()).some(
|
|
145
|
+
(id) => id === 'promoted-section-divider',
|
|
146
|
+
);
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
return {
|
|
150
|
+
...optionsDriver,
|
|
151
|
+
waitForOptions,
|
|
152
|
+
getOptions,
|
|
153
|
+
clickOptions,
|
|
154
|
+
close,
|
|
155
|
+
clickInputClear,
|
|
156
|
+
selectOptions,
|
|
157
|
+
selectOption,
|
|
158
|
+
selectRandomOptions,
|
|
159
|
+
getRandomOptions,
|
|
160
|
+
getOptionsCount,
|
|
161
|
+
getAvailableOptionsIds,
|
|
162
|
+
getInputPlaceholder,
|
|
163
|
+
isNoSearchResults,
|
|
164
|
+
getEmptyStateText,
|
|
165
|
+
isErrorStateExists,
|
|
166
|
+
initialLoaderExists,
|
|
167
|
+
infiniteScrollLoaderExists,
|
|
168
|
+
hasDivider,
|
|
169
|
+
existInFilter,
|
|
170
|
+
_getDropdownLayoutBase: getDropdownLayoutBase,
|
|
171
|
+
scrollDown: async () => {
|
|
172
|
+
const element = await base.getNative();
|
|
173
|
+
|
|
174
|
+
const { page } = element;
|
|
175
|
+
|
|
176
|
+
const contentHook = await base.attr('data-content-hook');
|
|
177
|
+
const contentSelector = `[data-content-element="${contentHook}"]`;
|
|
178
|
+
|
|
179
|
+
// puppeteer
|
|
180
|
+
if (page?.evaluate) {
|
|
181
|
+
await page.evaluate(
|
|
182
|
+
(_dataHook: string, _contentSelector: string) => {
|
|
183
|
+
const e = document.querySelector(
|
|
184
|
+
`[data-hook="${_dataHook}"] ${_contentSelector}`,
|
|
185
|
+
)!;
|
|
186
|
+
e.scrollBy({ behavior: 'smooth', top: e.scrollHeight });
|
|
187
|
+
},
|
|
188
|
+
dataHook,
|
|
189
|
+
contentSelector,
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
// jsdom
|
|
193
|
+
else {
|
|
194
|
+
await (
|
|
195
|
+
await base.$(contentSelector).getNative()
|
|
196
|
+
).dispatchEvent(new Event('scroll'));
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
};
|
|
200
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function selectedItemsLabel({
|
|
2
|
+
labels,
|
|
3
|
+
totalItemsInLabel = 2,
|
|
4
|
+
remaining = (totalRemaining) =>
|
|
5
|
+
totalRemaining > 0 ? `, +${totalRemaining}` : '',
|
|
6
|
+
}: {
|
|
7
|
+
labels: string[];
|
|
8
|
+
totalItemsInLabel?: number;
|
|
9
|
+
remaining?: (totalRemaining: number) => string;
|
|
10
|
+
}) {
|
|
11
|
+
const totalRemaining = labels.length - totalItemsInLabel;
|
|
12
|
+
return (
|
|
13
|
+
labels.slice(0, totalItemsInLabel).join(', ') + remaining(totalRemaining)
|
|
14
|
+
);
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { memo, SVGAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface EditorXLogoProps extends SVGAttributes<SVGElement> {
|
|
4
|
+
height?: string | number;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const EditorXLogo = memo(function EditorXLogo({
|
|
8
|
+
height = 24,
|
|
9
|
+
...rest
|
|
10
|
+
}: EditorXLogoProps) {
|
|
11
|
+
return (
|
|
12
|
+
<svg viewBox="0 0 215 43" height={height} {...rest}>
|
|
13
|
+
<g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
|
|
14
|
+
<g transform="translate(-421.000000, -3100.000000)" fill="#000000">
|
|
15
|
+
<g transform="translate(112.000000, 2861.000000)">
|
|
16
|
+
<path d="M373.110711,240.412412 L373.110711,281.097042 L365.782721,281.097042 L365.782721,277.481169 C364.812722,278.873987 363.516724,279.975919 361.894726,280.785956 C360.272728,281.594982 358.398731,282 356.272734,282 C353.661738,282 351.293741,281.358637 349.167744,280.078941 C347.041747,278.798236 345.343749,277.01959 344.076751,274.739974 C342.807753,272.461368 342.174754,269.833295 342.174754,266.856765 C342.174754,263.882255 342.807753,261.263272 344.076751,259.003857 C345.343749,256.742421 347.041747,254.971856 349.167744,253.69115 C351.293741,252.411454 353.642738,251.770091 356.215734,251.770091 C358.378731,251.770091 360.262728,252.1943 361.866726,253.041707 C363.469724,253.889114 364.756722,255.029427 365.726721,256.460626 L365.726721,240.412412 L373.110711,240.412412 Z M431.571529,251.770899 C434.629525,251.770899 437.333521,252.411252 439.683518,253.690948 C442.032514,254.972664 443.869512,256.75232 445.19451,259.030925 C446.517508,261.310541 447.179507,263.918414 447.179507,266.856563 C447.179507,269.794712 446.517508,272.403595 445.19451,274.683211 C443.869512,276.962827 442.032514,278.751573 439.683518,280.051469 C437.333521,281.350355 434.629525,281.999798 431.571529,281.999798 C428.550533,281.999798 425.864537,281.350355 423.51554,280.051469 C421.165543,278.751573 419.328546,276.962827 418.005548,274.683211 C416.68055,272.403595 416.019551,269.794712 416.019551,266.856563 C416.019551,263.918414 416.68055,261.310541 418.005548,259.030925 C419.328546,256.75232 421.165543,254.972664 423.51554,253.690948 C425.864537,252.411252 428.550533,251.770899 431.571529,251.770899 Z M470.451775,252.166019 L470.451775,258.946286 L468.941777,258.946286 C466.33078,258.946286 464.242783,259.729051 462.675786,261.291553 C461.109788,262.855064 460.326789,265.407386 460.326789,268.947507 L460.326789,281.097042 L452.941799,281.097042 L452.941799,252.675069 L460.269789,252.675069 L460.269789,258.268562 C460.903788,256.725251 461.724787,255.510197 462.731785,254.624409 C463.738784,253.739631 464.829783,253.108368 466.004781,252.731631 C467.179779,252.354893 468.326778,252.166019 469.444776,252.166019 L470.451775,252.166019 Z M511.377018,263.867105 L524,281.097042 L513.598015,281.097042 L506.176025,270.965528 L511.377018,263.867105 Z M337.139961,240.695824 L337.139961,247.136724 L316.552989,247.136724 L316.552989,257.420751 L336.076962,257.420751 L336.076962,263.862661 L316.552989,263.862661 L316.552989,274.654728 L337.139961,274.654728 L337.139961,281.096638 L309,281.096638 L309,240.695824 L337.139961,240.695824 Z M387.264791,252.674665 L387.264791,281.096638 L379.879801,281.096638 L379.879801,252.674665 L387.264791,252.674665 Z M404.997866,245.160114 L404.997866,252.674665 L411.990856,252.674665 L411.990856,258.720647 L404.997866,258.720647 L404.997866,272.055946 C404.997866,274.014375 405.929865,274.994095 407.794862,274.994095 L412.326856,274.994095 L412.326856,281.096638 L405.277866,281.096638 C400.167873,281.096638 397.613876,278.516036 397.613876,273.354832 L397.613876,258.720647 L392.690883,258.720647 L392.690883,252.674665 L397.613876,252.674665 L397.613876,245.160114 L404.997866,245.160114 Z M494.401041,240.695824 L509.200021,260.896231 L494.401041,281.096638 L484.000056,281.096638 L498.799035,260.896231 L484.000056,240.695824 L494.401041,240.695824 Z M357.782732,257.985756 C355.395735,257.985756 353.474738,258.825083 352.02074,260.500707 C350.565742,262.177341 349.838743,264.296363 349.838743,266.856765 C349.838743,269.456557 350.593742,271.59477 352.10474,273.270394 C353.614738,274.947028 355.600735,275.785345 358.062732,275.785345 C359.852729,275.785345 361.437727,275.333866 362.817725,274.428888 C364.196723,273.524919 365.167722,272.318955 365.726721,270.813015 L365.726721,267.08402 C365.726721,264.296363 364.980722,262.081389 363.488724,260.443136 C361.996726,258.804883 360.094729,257.985756 357.782732,257.985756 Z M431.571529,257.985554 C429.221532,257.985554 427.319535,258.814781 425.864537,260.472224 C424.410539,262.129668 423.68354,264.257781 423.68354,266.856563 C423.68354,269.493726 424.410539,271.641029 425.864537,273.298473 C427.319535,274.956926 429.221532,275.785143 431.571529,275.785143 C433.957526,275.785143 435.879523,274.956926 437.333521,273.298473 C438.788519,271.641029 439.515518,269.493726 439.515518,266.856563 C439.515518,264.257781 438.788519,262.129668 437.333521,260.472224 C435.879523,258.814781 433.957526,257.985554 431.571529,257.985554 Z M523.9995,240.69542 L511.377518,257.924347 L506.176525,250.825924 L513.598515,240.69542 L523.9995,240.69542 Z M383.571796,239 C384.839794,239 385.902793,239.424209 386.760791,240.271616 C387.61879,241.120033 388.04779,242.164394 388.04779,243.407729 C388.04779,244.613693 387.61879,245.639874 386.760791,246.487281 C385.902793,247.334688 384.839794,247.757886 383.571796,247.757886 C382.303798,247.757886 381.240799,247.334688 380.3828,246.487281 C379.524802,245.639874 379.096802,244.613693 379.096802,243.407729 C379.096802,242.164394 379.524802,241.120033 380.3828,240.271616 C381.240799,239.424209 382.303798,239 383.571796,239 Z" />
|
|
17
|
+
</g>
|
|
18
|
+
</g>
|
|
19
|
+
</g>
|
|
20
|
+
</svg>
|
|
21
|
+
);
|
|
22
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { observer } from 'mobx-react-lite';
|
|
3
|
+
import { AddItemEmptyState } from '../Illustration/AddItemEmptyState';
|
|
4
|
+
import { useWixPatternsContainer } from '@wix/bex-core/react';
|
|
5
|
+
import { EmptyStateBase, EmptyStateBaseProps } from './EmptyStateBase';
|
|
6
|
+
import { NewItemButton, NewItemButtonProps } from './NewItemButton';
|
|
7
|
+
|
|
8
|
+
export interface CollectionEmptyStateProps
|
|
9
|
+
extends Omit<Partial<EmptyStateBaseProps>, 'cta'> {
|
|
10
|
+
/**
|
|
11
|
+
* Configuration for the default call to action button.\
|
|
12
|
+
* `onClick`: Adds a callback for when the button is clicked. <br>
|
|
13
|
+
* `text`: Text of the button.
|
|
14
|
+
* To render the default add new item button, you must provide the `onClick` callback.
|
|
15
|
+
* @external
|
|
16
|
+
*/
|
|
17
|
+
addNewCta?: NewItemButtonProps;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function _CollectionEmptyState(props: CollectionEmptyStateProps) {
|
|
21
|
+
const { translate: t } = useWixPatternsContainer();
|
|
22
|
+
const { addNewCta } = props;
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<EmptyStateBase
|
|
26
|
+
dataHook="collection-empty-state"
|
|
27
|
+
title={t('cairo.emptyState.additem.title')}
|
|
28
|
+
subtitle={t('cairo.emptyState.additem.text')}
|
|
29
|
+
image={
|
|
30
|
+
<AddItemEmptyState data-hook="empty-state-new-item-illustration" />
|
|
31
|
+
}
|
|
32
|
+
{...props}
|
|
33
|
+
cta={addNewCta && <NewItemButton {...addNewCta} />}
|
|
34
|
+
/>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const CollectionEmptyState = observer(_CollectionEmptyState);
|