@erxes/ui 0.0.0-stage → 3.2.20-1
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/LICENSE.md +672 -0
- package/README.md +6 -2
- package/dist/components/accordion.d.ts +7 -0
- package/dist/components/alert-dialog.d.ts +20 -0
- package/dist/components/alert.d.ts +13 -0
- package/dist/components/avatar.d.ts +13 -0
- package/dist/components/background-gradient-animation.d.ts +16 -0
- package/dist/components/badge.d.ts +9 -0
- package/dist/components/breadcrumb.d.ts +19 -0
- package/dist/components/button.d.ts +10 -0
- package/dist/components/calendar.d.ts +5 -0
- package/dist/components/card.d.ts +8 -0
- package/dist/components/charts.d.ts +61 -0
- package/dist/components/checkbox.d.ts +3 -0
- package/dist/components/choicebox-group.d.ts +16 -0
- package/dist/components/collapsible.d.ts +10 -0
- package/dist/components/color-picker.d.ts +34 -0
- package/dist/components/combobox.d.ts +83 -0
- package/dist/components/command-bar.d.ts +17 -0
- package/dist/components/command.d.ts +205 -0
- package/dist/components/context-menu.d.ts +27 -0
- package/dist/components/copy-text.d.ts +7 -0
- package/dist/components/date-picker.d.ts +30 -0
- package/dist/components/dialog.d.ts +30 -0
- package/dist/components/drag-handle.d.ts +3 -0
- package/dist/components/dropdown-menu.d.ts +27 -0
- package/dist/components/empty.d.ts +18 -0
- package/dist/components/erxes-logo-icon.d.ts +1 -0
- package/dist/components/form.d.ts +25 -0
- package/dist/components/hover-card.d.ts +6 -0
- package/dist/components/index.d.ts +59 -0
- package/dist/components/info-card.d.ts +9 -0
- package/dist/components/input.d.ts +296 -0
- package/dist/components/kbd.d.ts +7 -0
- package/dist/components/label.d.ts +6 -0
- package/dist/components/multiselect.d.ts +72 -0
- package/dist/components/popover.d.ts +12 -0
- package/dist/components/radio-group.d.ts +6 -0
- package/dist/components/resizable.d.ts +24 -0
- package/dist/components/scroll-area.d.ts +13 -0
- package/dist/components/search-order-select.d.ts +8 -0
- package/dist/components/select.d.ts +14 -0
- package/dist/components/separator.d.ts +5 -0
- package/dist/components/sheet.d.ts +37 -0
- package/dist/components/sidebar/constants.d.ts +11 -0
- package/dist/components/sidebar/context.d.ts +26 -0
- package/dist/components/sidebar/group.d.ts +9 -0
- package/dist/components/sidebar/hooks.d.ts +2 -0
- package/dist/components/sidebar/layout.d.ts +11 -0
- package/dist/components/sidebar/menu-sub.d.ts +8 -0
- package/dist/components/sidebar/menu.d.ts +22 -0
- package/dist/components/sidebar/panel.d.ts +6 -0
- package/dist/components/sidebar/root.d.ts +9 -0
- package/dist/components/sidebar/trigger.d.ts +2 -0
- package/dist/components/sidebar-tree-indicator.d.ts +8 -0
- package/dist/components/sidebar.d.ts +78 -0
- package/dist/components/skeleton.d.ts +4 -0
- package/dist/components/slider.d.ts +6 -0
- package/dist/components/spinner.d.ts +14 -0
- package/dist/components/stepper.d.ts +28 -0
- package/dist/components/string-array.d.ts +16 -0
- package/dist/components/switch.d.ts +6 -0
- package/dist/components/table.d.ts +10 -0
- package/dist/components/tabs.d.ts +13 -0
- package/dist/components/text-overflow.d.ts +15 -0
- package/dist/components/textarea.d.ts +2 -0
- package/dist/components/time-picker.d.ts +11 -0
- package/dist/components/toaster.d.ts +1 -0
- package/dist/components/toasts.d.ts +19 -0
- package/dist/components/toggle-group.d.ts +12 -0
- package/dist/components/toggle.d.ts +11 -0
- package/dist/components/tooltip.d.ts +7 -0
- package/dist/components/upload-new.d.ts +16 -0
- package/dist/components/upload.d.ts +23 -0
- package/dist/constants/AttachmentGql.d.ts +1 -0
- package/dist/constants/CountryPhoneCodes.d.ts +2 -0
- package/dist/constants/CurrencyCodes.d.ts +6 -0
- package/dist/constants/EmailValidationStatusInfos.d.ts +11 -0
- package/dist/constants/GraphqlConstants.d.ts +3 -0
- package/dist/constants/IanaTimeZones.d.ts +5 -0
- package/dist/constants/IntlLanguages.d.ts +74 -0
- package/dist/constants/PhoneValidationStatusInfos.d.ts +12 -0
- package/dist/constants/SexCodes.d.ts +4 -0
- package/dist/constants/index.d.ts +5 -0
- package/dist/hooks/index.d.ts +9 -0
- package/dist/hooks/use-confirm.d.ts +29 -0
- package/dist/hooks/use-cursor-pagination.d.ts +10 -0
- package/dist/hooks/use-is-matching-location.d.ts +1 -0
- package/dist/hooks/use-media-query.d.ts +1 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-query-state.d.ts +13 -0
- package/dist/hooks/use-toast.d.ts +21 -0
- package/dist/hooks/use-upload-chunked.d.ts +13 -0
- package/dist/hooks/use-upload-new.d.ts +73 -0
- package/dist/hooks/use-upload.d.ts +45 -0
- package/dist/index.d.ts +8 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/utils.d.ts +11 -0
- package/dist/modules/attachments/attachments.d.ts +38 -0
- package/dist/modules/attachments/context.d.ts +12 -0
- package/dist/modules/attachments/index.d.ts +5 -0
- package/dist/modules/attachments/types.d.ts +19 -0
- package/dist/modules/blocks/components/BarcodeAttribute.d.ts +12 -0
- package/dist/modules/blocks/components/BlockEditor.d.ts +42 -0
- package/dist/modules/blocks/components/BlockEditorReadOnly.d.ts +5 -0
- package/dist/modules/blocks/components/CustomFileBlock.d.ts +40 -0
- package/dist/modules/blocks/components/CustomImageBlock.d.ts +79 -0
- package/dist/modules/blocks/components/CustomVideoBlock.d.ts +70 -0
- package/dist/modules/blocks/components/DocumentPlaceholderBlock.d.ts +40 -0
- package/dist/modules/blocks/components/Editor.d.ts +2 -0
- package/dist/modules/blocks/components/FontFamilyButton.d.ts +1 -0
- package/dist/modules/blocks/components/GalleryBlock.d.ts +30 -0
- package/dist/modules/blocks/components/ImageStyleButton.d.ts +1 -0
- package/dist/modules/blocks/components/SlashMenu.d.ts +2 -0
- package/dist/modules/blocks/components/SuggestionMenu.d.ts +7 -0
- package/dist/modules/blocks/components/TableHandleWithRemove.d.ts +2 -0
- package/dist/modules/blocks/components/Toolbar.d.ts +1 -0
- package/dist/modules/blocks/components/index.d.ts +6 -0
- package/dist/modules/blocks/constant/blockEditorSchema.d.ts +712 -0
- package/dist/modules/blocks/constant/index.d.ts +1 -0
- package/dist/modules/blocks/hooks/useBlockEditor.d.ts +7 -0
- package/dist/modules/blocks/index.d.ts +5 -0
- package/dist/modules/blocks/types/TextEditor.d.ts +28 -0
- package/dist/modules/blocks/types/index.d.ts +1 -0
- package/dist/modules/blocks/utils/getBlockAttachments.d.ts +12 -0
- package/dist/modules/blocks/utils/getMentionedUserIds.d.ts +2 -0
- package/dist/modules/blocks/utils/index.d.ts +3 -0
- package/dist/modules/blocks/utils/parseBlocks.d.ts +2 -0
- package/dist/modules/board/components/Board.d.ts +22 -0
- package/dist/modules/board/contexts/BoardContext.d.ts +2 -0
- package/dist/modules/board/index.d.ts +2 -0
- package/dist/modules/board/states/boardStates.d.ts +2 -0
- package/dist/modules/board/types/boardTypes.d.ts +42 -0
- package/dist/modules/chat-viz/components/ChatVizArea.d.ts +9 -0
- package/dist/modules/chat-viz/components/ChatVizBar.d.ts +9 -0
- package/dist/modules/chat-viz/components/ChatVizCartesianDecorations.d.ts +7 -0
- package/dist/modules/chat-viz/components/ChatVizLine.d.ts +9 -0
- package/dist/modules/chat-viz/components/ChatVizMessage.d.ts +16 -0
- package/dist/modules/chat-viz/components/ChatVizPie.d.ts +13 -0
- package/dist/modules/chat-viz/components/ChatVizSendButton.d.ts +17 -0
- package/dist/modules/chat-viz/hooks/useChatVizSend.d.ts +11 -0
- package/dist/modules/chat-viz/hooks/useIsClient.d.ts +8 -0
- package/dist/modules/chat-viz/index.d.ts +12 -0
- package/dist/modules/chat-viz/types/chatVizTypes.d.ts +53 -0
- package/dist/modules/chat-viz/utils/chartVizPresentation.d.ts +10 -0
- package/dist/modules/chat-viz/utils/chartVizTransforms.d.ts +19 -0
- package/dist/modules/chat-viz/utils/chatVizSanitize.d.ts +25 -0
- package/dist/modules/display/components/CurrencyDisplay.d.ts +15 -0
- package/dist/modules/display/components/EllipsisDisplay.d.ts +2 -0
- package/dist/modules/display/components/EmailDisplay.d.ts +2 -0
- package/dist/modules/display/components/PhoneDisplay.d.ts +2 -0
- package/dist/modules/display/components/RelativeDateDisplay.d.ts +288 -0
- package/dist/modules/display/components/SexDisplay.d.ts +4 -0
- package/dist/modules/display/index.d.ts +6 -0
- package/dist/modules/display/utils/formatEmails.d.ts +3 -0
- package/dist/modules/display/utils/formatPhones.d.ts +3 -0
- package/dist/modules/email-editor/components/EmailEditor.d.ts +3 -0
- package/dist/modules/email-editor/components/EmailPreviewDeviceToggle.d.ts +7 -0
- package/dist/modules/email-editor/components/EmailPreviewFrame.d.ts +8 -0
- package/dist/modules/email-editor/components/EmailTableBackground.d.ts +4 -0
- package/dist/modules/email-editor/components/EmailTableToolbar.d.ts +8 -0
- package/dist/modules/email-editor/components/index.d.ts +3 -0
- package/dist/modules/email-editor/constant/index.d.ts +4 -0
- package/dist/modules/email-editor/extensions/documentPlaceholder.d.ts +20 -0
- package/dist/modules/email-editor/extensions/documentPlaceholderBlock.d.ts +19 -0
- package/dist/modules/email-editor/extensions/table.d.ts +38 -0
- package/dist/modules/email-editor/extensions/tableBlock.d.ts +12 -0
- package/dist/modules/email-editor/hooks/useEmailHtml.d.ts +6 -0
- package/dist/modules/email-editor/index.d.ts +6 -0
- package/dist/modules/email-editor/types/index.d.ts +29 -0
- package/dist/modules/email-editor/utils/expandCustomNodes.d.ts +2 -0
- package/dist/modules/email-editor/utils/renderEmailHtml.d.ts +5 -0
- package/dist/modules/filter/components/Filter.d.ts +909 -0
- package/dist/modules/filter/context/FilterContext.d.ts +2 -0
- package/dist/modules/filter/date-filter/components/DateFilterCommand.d.ts +7 -0
- package/dist/modules/filter/date-filter/components/DialogDateView.d.ts +9 -0
- package/dist/modules/filter/date-filter/constants/dateTypes.d.ts +3 -0
- package/dist/modules/filter/date-filter/index.d.ts +2 -0
- package/dist/modules/filter/date-filter/utils/dateTokens.d.ts +8 -0
- package/dist/modules/filter/date-filter/utils/getActiveTab.d.ts +1 -0
- package/dist/modules/filter/date-filter/utils/getDisplayValue.d.ts +1 -0
- package/dist/modules/filter/date-filter/utils/getYears.d.ts +1 -0
- package/dist/modules/filter/date-filter/utils/parseDateRangeFromString.d.ts +4 -0
- package/dist/modules/filter/hooks/useFilterContext.d.ts +1 -0
- package/dist/modules/filter/hooks/useFilterQueryState.d.ts +4 -0
- package/dist/modules/filter/index.d.ts +5 -0
- package/dist/modules/filter/states/filterStates.d.ts +15 -0
- package/dist/modules/filter/types/filter.d.ts +23 -0
- package/dist/modules/focus-sheet/components/focus-sheet.d.ts +51 -0
- package/dist/modules/hotkey/components/PopoverScoped.d.ts +10 -0
- package/dist/modules/hotkey/constants/defaultHotkeysScopeCustomScopes.d.ts +2 -0
- package/dist/modules/hotkey/constants/initialHotkeysScope.d.ts +2 -0
- package/dist/modules/hotkey/hooks/usePreviousHotkeyScope.d.ts +5 -0
- package/dist/modules/hotkey/hooks/useScopedHotKeysCallback.d.ts +9 -0
- package/dist/modules/hotkey/hooks/useScopedHotkeys.d.ts +3 -0
- package/dist/modules/hotkey/hooks/useSequenceHotkeys.d.ts +4 -0
- package/dist/modules/hotkey/hooks/useSetHotkeyScope.d.ts +2 -0
- package/dist/modules/hotkey/index.d.ts +13 -0
- package/dist/modules/hotkey/states/internal/currentHotkeyScopeState.d.ts +4 -0
- package/dist/modules/hotkey/states/internal/internalHotkeysEnabledScopeState.d.ts +3 -0
- package/dist/modules/hotkey/states/internal/pendingHotkeyState.d.ts +2 -0
- package/dist/modules/hotkey/states/internal/previousHotkeyScopeState.d.ts +2 -0
- package/dist/modules/hotkey/states/setHotkeyScopeState.d.ts +5 -0
- package/dist/modules/hotkey/types/AppHotkeyScope.d.ts +7 -0
- package/dist/modules/hotkey/types/CustomHotkeyScope.d.ts +6 -0
- package/dist/modules/hotkey/types/HotkeyScope.d.ts +5 -0
- package/dist/modules/hotkey/utils/isNonTextWritingKey.d.ts +1 -0
- package/dist/modules/icons/components/IconComponent.d.ts +5 -0
- package/dist/modules/icons/components/IconPicker.d.ts +6 -0
- package/dist/modules/icons/components/TablerIcons.d.ts +292 -0
- package/dist/modules/icons/hooks/useIcons.d.ts +4 -0
- package/dist/modules/icons/index.d.ts +3 -0
- package/dist/modules/icons/providers/IconsProvider.d.ts +5 -0
- package/dist/modules/icons/states/iconsState.d.ts +4 -0
- package/dist/modules/index.d.ts +22 -0
- package/dist/modules/inputs/components/CurrencyField.d.ts +442 -0
- package/dist/modules/inputs/components/EmailField.d.ts +30 -0
- package/dist/modules/inputs/components/FullNameField.d.ts +9 -0
- package/dist/modules/inputs/components/LanguageSelect.d.ts +7 -0
- package/dist/modules/inputs/components/NumberField.d.ts +6 -0
- package/dist/modules/inputs/components/PhoneField.d.ts +56 -0
- package/dist/modules/inputs/components/SexField.d.ts +5 -0
- package/dist/modules/inputs/components/TimezoneSelect.d.ts +7 -0
- package/dist/modules/inputs/contexts/EmailFieldsContext.d.ts +8 -0
- package/dist/modules/inputs/contexts/FullNameFieldContext.d.ts +7 -0
- package/dist/modules/inputs/contexts/PhoneFieldsContext.d.ts +6 -0
- package/dist/modules/inputs/hooks/useEmailFields.d.ts +6 -0
- package/dist/modules/inputs/hooks/useFullNameField.d.ts +7 -0
- package/dist/modules/inputs/hooks/usePhoneFields.d.ts +5 -0
- package/dist/modules/inputs/index.d.ts +8 -0
- package/dist/modules/inputs/states/emailFieldStates.d.ts +8 -0
- package/dist/modules/inputs/states/phoneFieldStates.d.ts +8 -0
- package/dist/modules/inputs/validations/emailValidation.d.ts +8 -0
- package/dist/modules/inputs/validations/phoneValidation.d.ts +8 -0
- package/dist/modules/layout/components/Page.d.ts +5 -0
- package/dist/modules/layout/index.d.ts +1 -0
- package/dist/modules/motion/components/TextEffect.d.ts +26 -0
- package/dist/modules/motion/components/TextLoop.d.ts +12 -0
- package/dist/modules/motion/index.d.ts +2 -0
- package/dist/modules/navigation-menu/components/NavigationMenu.d.ts +55 -0
- package/dist/modules/navigation-menu/components/NavigationMenuItemControls.d.ts +11 -0
- package/dist/modules/navigation-menu/index.d.ts +3 -0
- package/dist/modules/navigation-menu/states/activePluginState.d.ts +1 -0
- package/dist/modules/preview/components/Preview.d.ts +43 -0
- package/dist/modules/preview/context/PreviewContext.d.ts +6 -0
- package/dist/modules/record-field/components/NumberField.d.ts +18 -0
- package/dist/modules/record-field/components/TextField.d.ts +17 -0
- package/dist/modules/record-field/index.d.ts +3 -0
- package/dist/modules/record-field/meta-inputs/components/EmailVerificationInput.d.ts +8 -0
- package/dist/modules/record-field/meta-inputs/components/PhoneInput.d.ts +13 -0
- package/dist/modules/record-field/meta-inputs/components/PhoneVerificationInput.d.ts +8 -0
- package/dist/modules/record-field/meta-inputs/components/TextFieldInput.d.ts +4 -0
- package/dist/modules/record-table/components/CheckboxColumn.d.ts +2 -0
- package/dist/modules/record-table/components/MoreColumn.d.ts +3 -0
- package/dist/modules/record-table/components/RecordTableArrowEffect.d.ts +4 -0
- package/dist/modules/record-table/components/RecordTableCell.d.ts +5 -0
- package/dist/modules/record-table/components/RecordTableCellInline.d.ts +14 -0
- package/dist/modules/record-table/components/RecordTableColumnSelector.d.ts +4 -0
- package/dist/modules/record-table/components/RecordTableContainer.d.ts +7 -0
- package/dist/modules/record-table/components/RecordTableCursor.d.ts +20 -0
- package/dist/modules/record-table/components/RecordTableDnDProvider.d.ts +8 -0
- package/dist/modules/record-table/components/RecordTableHead.d.ts +9 -0
- package/dist/modules/record-table/components/RecordTableHeader.d.ts +3 -0
- package/dist/modules/record-table/components/RecordTableHotkeyCell.d.ts +8 -0
- package/dist/modules/record-table/components/RecordTableInlineHead.d.ts +5 -0
- package/dist/modules/record-table/components/RecordTableProvider.d.ts +14 -0
- package/dist/modules/record-table/components/RecordTableRoot.d.ts +2 -0
- package/dist/modules/record-table/components/RecordTableRow.d.ts +6 -0
- package/dist/modules/record-table/components/RecordTableRowList.d.ts +5 -0
- package/dist/modules/record-table/components/RecordTableRowSkeleton.d.ts +6 -0
- package/dist/modules/record-table/components/RecordTableScroll.d.ts +4 -0
- package/dist/modules/record-table/components/RecordTableTree.d.ts +23 -0
- package/dist/modules/record-table/contexts/RecordTableCursorContext.d.ts +2 -0
- package/dist/modules/record-table/contexts/RecordTableHotkeyContext.d.ts +16 -0
- package/dist/modules/record-table/contexts/RecordTableTreeContext.d.ts +2 -0
- package/dist/modules/record-table/hooks/usePopoverOnEnter.d.ts +3 -0
- package/dist/modules/record-table/hooks/useRecordTableCursor.d.ts +6 -0
- package/dist/modules/record-table/hooks/useRecordTableCursorContext.d.ts +1 -0
- package/dist/modules/record-table/hooks/useRecordTableTree.d.ts +9 -0
- package/dist/modules/record-table/hooks/useTablePreferences.d.ts +11 -0
- package/dist/modules/record-table/states/EditModePositionComponentState.d.ts +3 -0
- package/dist/modules/record-table/states/RecordTableCursorState.d.ts +3 -0
- package/dist/modules/record-table/states/RecordTableTreeState.d.ts +3 -0
- package/dist/modules/record-table/types/RecordTableCursorTypes.d.ts +23 -0
- package/dist/modules/record-table/types/RecordTableScope.d.ts +3 -0
- package/dist/modules/record-table/types/RecordTableTreeTypes.d.ts +6 -0
- package/dist/modules/record-table/types/recordTableTypes.d.ts +7 -0
- package/dist/modules/record-table/utils/columnUtils.d.ts +4 -0
- package/dist/modules/record-table/utils/cursorUtils.d.ts +25 -0
- package/dist/modules/report/components/report-page-container.d.ts +4 -0
- package/dist/modules/report/components/report-table.d.ts +19 -0
- package/dist/modules/report/index.d.ts +2 -0
- package/dist/modules/report/states/reportSettingsState.d.ts +13 -0
- package/dist/modules/select-operation/components/SelectOperation.d.ts +17 -0
- package/dist/modules/select-operation/index.d.ts +1 -0
- package/dist/modules/select-tree/components/SelectTree.d.ts +63 -0
- package/dist/modules/select-tree/context/SelectTreeContext.d.ts +3 -0
- package/dist/modules/select-tree/hooks/useSelectTreeHide.d.ts +6 -0
- package/dist/modules/select-tree/index.d.ts +1 -0
- package/dist/modules/select-tree/states/selectTreeStates.d.ts +3 -0
- package/dist/modules/select-tree/types/selectTreeTypes.d.ts +11 -0
- package/dist/modules/side-menu/components/SideMenu.d.ts +34 -0
- package/dist/modules/side-menu/context/SideMenuContext.d.ts +8 -0
- package/dist/state/index.d.ts +2 -0
- package/dist/state/sidebarPanelState.d.ts +1 -0
- package/dist/state/themeState.d.ts +2 -0
- package/dist/types/CountryCode.d.ts +6 -0
- package/dist/types/CurrencyCode.d.ts +159 -0
- package/dist/types/Displays.d.ts +5 -0
- package/dist/types/Gql.d.ts +14 -0
- package/dist/types/Key.d.ts +997 -0
- package/dist/types/Relations.d.ts +13 -0
- package/dist/types/SexCode.d.ts +6 -0
- package/dist/types/Theme.d.ts +2 -0
- package/dist/types/UIConfig.d.ts +167 -0
- package/dist/types/Utils.d.ts +11 -0
- package/dist/types/ValidationStatus.d.ts +4 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/utils/IsUndefinedOrNull.d.ts +1 -0
- package/dist/utils/colors.d.ts +7 -0
- package/dist/utils/config/index.d.ts +14 -0
- package/dist/utils/cookie-storage.d.ts +9 -0
- package/dist/utils/core.d.ts +2 -0
- package/dist/utils/fixOrder.d.ts +4 -0
- package/dist/utils/format/formatAmount.d.ts +1 -0
- package/dist/utils/format/formatPhoneNumber.d.ts +5 -0
- package/dist/utils/format/index.d.ts +2 -0
- package/dist/utils/getPluginAssetsUrl.d.ts +1 -0
- package/dist/utils/highlightMatch.d.ts +1 -0
- package/dist/utils/index.d.ts +18 -0
- package/dist/utils/isAnObject.d.ts +1 -0
- package/dist/utils/isDeeplyEqual.d.ts +3 -0
- package/dist/utils/isDefined.d.ts +1 -0
- package/dist/utils/isEnabled.d.ts +1 -0
- package/dist/utils/localization/detectTimeZone.d.ts +5 -0
- package/dist/utils/localization/formatDateISOStringToRelativeDate.d.ts +2 -0
- package/dist/utils/localization/formatTimeZoneLabel.d.ts +7 -0
- package/dist/utils/localization/index.d.ts +3 -0
- package/dist/utils/logDebug.d.ts +1 -0
- package/dist/utils/regex/index.d.ts +1 -0
- package/dist/utils/regex/passwordRegex.d.ts +1 -0
- package/dist/utils/searchProvider.d.ts +9 -0
- package/dist/utils/string-array.d.ts +6 -0
- package/dist/utils/stripHtml.d.ts +5 -0
- package/dist/utils/urlParser.d.ts +8 -0
- package/dist/utils/videoEmbed.d.ts +14 -0
- package/package.json +106 -4
- package/src/components/__stories__/accordion.stories.tsx +69 -0
- package/src/components/__stories__/alert-dialog.stories.tsx +39 -0
- package/src/components/__stories__/avatar.stories.tsx +32 -0
- package/src/components/__stories__/badge.stories.tsx +46 -0
- package/src/components/__stories__/breadcrumb.stories.tsx +50 -0
- package/src/components/__stories__/button.stories.tsx +22 -0
- package/src/components/__stories__/calendar.stories.tsx +47 -0
- package/src/components/__stories__/calendarTwoMonths.stories.tsx +47 -0
- package/src/components/__stories__/card.stories.tsx +60 -0
- package/src/components/__stories__/checkbox.stories.tsx +74 -0
- package/src/components/__stories__/collapsible.stories.tsx +78 -0
- package/src/components/__stories__/combobox.stories.tsx +158 -0
- package/src/components/__stories__/command.stories.tsx +78 -0
- package/src/components/__stories__/commandbar.stories.tsx +42 -0
- package/src/components/__stories__/date-picker.stories.tsx +83 -0
- package/src/components/__stories__/dialog.stories.tsx +53 -0
- package/src/components/__stories__/dropdown-menu.stories.tsx +140 -0
- package/src/components/__stories__/form.stories.tsx +166 -0
- package/src/components/__stories__/hover-card.stories.tsx +50 -0
- package/src/components/__stories__/input.stories.tsx +75 -0
- package/src/components/__stories__/inputnumber.stories.tsx +35 -0
- package/src/components/__stories__/kbd.stories.tsx +91 -0
- package/src/components/__stories__/label.stories.tsx +82 -0
- package/src/components/__stories__/multiselect.stories.tsx +178 -0
- package/src/components/__stories__/popover.stories.tsx +106 -0
- package/src/components/__stories__/radio-group.stories.tsx +97 -0
- package/src/components/__stories__/resizeble.stories.tsx +76 -0
- package/src/components/__stories__/scroll-area.stories.tsx +36 -0
- package/src/components/__stories__/select.stories.tsx +107 -0
- package/src/components/__stories__/separator.stories.tsx +53 -0
- package/src/components/__stories__/sheet.stories.tsx +62 -0
- package/src/components/__stories__/sidebar.stories.tsx +104 -0
- package/src/components/__stories__/skeleton.stories.tsx +27 -0
- package/src/components/__stories__/slider.stories.tsx +71 -0
- package/src/components/__stories__/spinner.stories.tsx +39 -0
- package/src/components/__stories__/switch.stories.tsx +63 -0
- package/src/components/__stories__/table.stories.tsx +140 -0
- package/src/components/__stories__/tabs.stories.tsx +76 -0
- package/src/components/__stories__/text-overflow.stories.tsx +32 -0
- package/src/components/__stories__/textarea.stories.tsx +75 -0
- package/src/components/__stories__/time-picker.stories.tsx +0 -0
- package/src/components/__stories__/toaster.stories.tsx +53 -0
- package/src/components/__stories__/toggle-group.stories.tsx +50 -0
- package/src/components/__stories__/toggle.stories.tsx +38 -0
- package/src/components/__stories__/tooltip.stories.tsx +90 -0
- package/src/components/accordion.tsx +64 -0
- package/src/components/alert-dialog.tsx +139 -0
- package/src/components/alert.tsx +71 -0
- package/src/components/avatar.tsx +75 -0
- package/src/components/background-gradient-animation.tsx +192 -0
- package/src/components/badge.tsx +61 -0
- package/src/components/breadcrumb.tsx +118 -0
- package/src/components/button.tsx +58 -0
- package/src/components/calendar.tsx +178 -0
- package/src/components/card.tsx +85 -0
- package/src/components/charts.tsx +363 -0
- package/src/components/checkbox.tsx +50 -0
- package/src/components/choicebox-group.tsx +103 -0
- package/src/components/collapsible.tsx +46 -0
- package/src/components/color-picker.tsx +195 -0
- package/src/components/combobox.tsx +212 -0
- package/src/components/command-bar.tsx +108 -0
- package/src/components/command.tsx +261 -0
- package/src/components/context-menu.tsx +183 -0
- package/src/components/copy-text.tsx +52 -0
- package/src/components/date-picker.tsx +462 -0
- package/src/components/dialog.tsx +169 -0
- package/src/components/drag-handle.tsx +30 -0
- package/src/components/dropdown-menu.tsx +186 -0
- package/src/components/empty.tsx +102 -0
- package/src/components/erxes-logo-icon.tsx +16 -0
- package/src/components/form.tsx +174 -0
- package/src/components/hover-card.tsx +27 -0
- package/src/components/index.ts +59 -0
- package/src/components/info-card.tsx +70 -0
- package/src/components/input.tsx +95 -0
- package/src/components/kbd.tsx +30 -0
- package/src/components/label.tsx +35 -0
- package/src/components/multiselect.tsx +647 -0
- package/src/components/popover.tsx +57 -0
- package/src/components/radio-group.tsx +54 -0
- package/src/components/resizable.tsx +47 -0
- package/src/components/scroll-area.tsx +81 -0
- package/src/components/search-order-select.tsx +30 -0
- package/src/components/select.tsx +156 -0
- package/src/components/separator.tsx +50 -0
- package/src/components/sheet.tsx +184 -0
- package/src/components/sidebar/constants.ts +19 -0
- package/src/components/sidebar/context.tsx +206 -0
- package/src/components/sidebar/group.tsx +79 -0
- package/src/components/sidebar/hooks.ts +21 -0
- package/src/components/sidebar/layout.tsx +91 -0
- package/src/components/sidebar/menu-sub.tsx +66 -0
- package/src/components/sidebar/menu.tsx +216 -0
- package/src/components/sidebar/panel.tsx +160 -0
- package/src/components/sidebar/root.tsx +169 -0
- package/src/components/sidebar/trigger.tsx +39 -0
- package/src/components/sidebar-tree-indicator.tsx +125 -0
- package/src/components/sidebar.tsx +66 -0
- package/src/components/skeleton.tsx +29 -0
- package/src/components/slider.tsx +30 -0
- package/src/components/spinner.tsx +168 -0
- package/src/components/stepper.tsx +304 -0
- package/src/components/string-array.tsx +72 -0
- package/src/components/switch.tsx +50 -0
- package/src/components/table.tsx +116 -0
- package/src/components/tabs.tsx +93 -0
- package/src/components/text-overflow.tsx +128 -0
- package/src/components/textarea.tsx +21 -0
- package/src/components/time-picker.tsx +89 -0
- package/src/components/toaster.tsx +42 -0
- package/src/components/toasts.tsx +140 -0
- package/src/components/toggle-group.tsx +68 -0
- package/src/components/toggle.tsx +39 -0
- package/src/components/tooltip.tsx +36 -0
- package/src/components/upload-new.tsx +301 -0
- package/src/components/upload.tsx +335 -0
- package/src/constants/AttachmentGql.ts +9 -0
- package/src/constants/CountryPhoneCodes.ts +360 -0
- package/src/constants/CurrencyCodes.ts +214 -0
- package/src/constants/EmailValidationStatusInfos.tsx +46 -0
- package/src/constants/GraphqlConstants.ts +23 -0
- package/src/constants/IanaTimeZones.ts +600 -0
- package/src/constants/IntlLanguages.ts +74 -0
- package/src/constants/PhoneValidationStatusInfos.tsx +57 -0
- package/src/constants/SexCodes.ts +16 -0
- package/src/constants/index.ts +5 -0
- package/src/hooks/index.ts +9 -0
- package/src/hooks/use-confirm.tsx +212 -0
- package/src/hooks/use-cursor-pagination.tsx +42 -0
- package/src/hooks/use-is-matching-location.tsx +17 -0
- package/src/hooks/use-media-query.tsx +26 -0
- package/src/hooks/use-mobile.tsx +7 -0
- package/src/hooks/use-query-state.tsx +193 -0
- package/src/hooks/use-toast.tsx +188 -0
- package/src/hooks/use-upload-chunked.ts +173 -0
- package/src/hooks/use-upload-new.ts +242 -0
- package/src/hooks/use-upload.tsx +223 -0
- package/src/index.ts +8 -0
- package/src/lib/index.ts +1 -0
- package/src/lib/utils.ts +74 -0
- package/src/modules/__stories__/IconPicker.stories.tsx +19 -0
- package/src/modules/__stories__/RelativeDateDisplay.stories.tsx +97 -0
- package/src/modules/__stories__/blocks.stories.tsx +132 -0
- package/src/modules/__stories__/currencyDisplay.stories.tsx +78 -0
- package/src/modules/__stories__/icons.stories.tsx +29 -0
- package/src/modules/__stories__/preview.stories.tsx +55 -0
- package/src/modules/attachments/attachments.tsx +743 -0
- package/src/modules/attachments/context.tsx +116 -0
- package/src/modules/attachments/index.ts +11 -0
- package/src/modules/attachments/types.ts +72 -0
- package/src/modules/blocks/components/BarcodeAttribute.tsx +142 -0
- package/src/modules/blocks/components/BlockEditor.tsx +248 -0
- package/src/modules/blocks/components/BlockEditorReadOnly.tsx +67 -0
- package/src/modules/blocks/components/CustomFileBlock.tsx +85 -0
- package/src/modules/blocks/components/CustomImageBlock.tsx +366 -0
- package/src/modules/blocks/components/CustomVideoBlock.tsx +118 -0
- package/src/modules/blocks/components/DocumentPlaceholderBlock.tsx +114 -0
- package/src/modules/blocks/components/Editor.tsx +156 -0
- package/src/modules/blocks/components/FontFamilyButton.tsx +121 -0
- package/src/modules/blocks/components/GalleryBlock.tsx +380 -0
- package/src/modules/blocks/components/ImageStyleButton.tsx +100 -0
- package/src/modules/blocks/components/SlashMenu.tsx +76 -0
- package/src/modules/blocks/components/SuggestionMenu.tsx +57 -0
- package/src/modules/blocks/components/TableHandleWithRemove.tsx +238 -0
- package/src/modules/blocks/components/Toolbar.tsx +67 -0
- package/src/modules/blocks/components/index.ts +6 -0
- package/src/modules/blocks/constant/blockEditorSchema.ts +56 -0
- package/src/modules/blocks/constant/index.ts +1 -0
- package/src/modules/blocks/hooks/useBlockEditor.tsx +65 -0
- package/src/modules/blocks/index.ts +5 -0
- package/src/modules/blocks/types/TextEditor.ts +37 -0
- package/src/modules/blocks/types/index.ts +1 -0
- package/src/modules/blocks/utils/getBlockAttachments.ts +68 -0
- package/src/modules/blocks/utils/getMentionedUserIds.ts +22 -0
- package/src/modules/blocks/utils/index.ts +3 -0
- package/src/modules/blocks/utils/parseBlocks.ts +33 -0
- package/src/modules/board/components/Board.tsx +301 -0
- package/src/modules/board/contexts/BoardContext.ts +8 -0
- package/src/modules/board/index.ts +2 -0
- package/src/modules/board/states/boardStates.ts +8 -0
- package/src/modules/board/types/boardTypes.ts +61 -0
- package/src/modules/chat-viz/components/ChatVizArea.tsx +69 -0
- package/src/modules/chat-viz/components/ChatVizBar.tsx +62 -0
- package/src/modules/chat-viz/components/ChatVizCartesianDecorations.tsx +42 -0
- package/src/modules/chat-viz/components/ChatVizLine.tsx +68 -0
- package/src/modules/chat-viz/components/ChatVizMessage.tsx +210 -0
- package/src/modules/chat-viz/components/ChatVizPie.tsx +104 -0
- package/src/modules/chat-viz/components/ChatVizSendButton.tsx +49 -0
- package/src/modules/chat-viz/hooks/useChatVizSend.ts +22 -0
- package/src/modules/chat-viz/hooks/useIsClient.ts +16 -0
- package/src/modules/chat-viz/index.ts +31 -0
- package/src/modules/chat-viz/types/chatVizTypes.ts +59 -0
- package/src/modules/chat-viz/utils/chartVizPresentation.ts +34 -0
- package/src/modules/chat-viz/utils/chartVizTransforms.ts +177 -0
- package/src/modules/chat-viz/utils/chatVizInteractive.test.ts +152 -0
- package/src/modules/chat-viz/utils/chatVizSanitize.ts +276 -0
- package/src/modules/display/components/CurrencyDisplay.tsx +78 -0
- package/src/modules/display/components/EllipsisDisplay.tsx +18 -0
- package/src/modules/display/components/EmailDisplay.tsx +36 -0
- package/src/modules/display/components/PhoneDisplay.tsx +37 -0
- package/src/modules/display/components/RelativeDateDisplay.tsx +53 -0
- package/src/modules/display/components/SexDisplay.tsx +10 -0
- package/src/modules/display/index.ts +6 -0
- package/src/modules/display/utils/formatEmails.ts +29 -0
- package/src/modules/display/utils/formatPhones.ts +29 -0
- package/src/modules/email-editor/components/EmailEditor.tsx +165 -0
- package/src/modules/email-editor/components/EmailPreviewDeviceToggle.tsx +33 -0
- package/src/modules/email-editor/components/EmailPreviewFrame.tsx +35 -0
- package/src/modules/email-editor/components/EmailTableBackground.tsx +134 -0
- package/src/modules/email-editor/components/EmailTableToolbar.tsx +82 -0
- package/src/modules/email-editor/components/index.ts +3 -0
- package/src/modules/email-editor/constant/index.ts +63 -0
- package/src/modules/email-editor/extensions/documentPlaceholder.ts +114 -0
- package/src/modules/email-editor/extensions/documentPlaceholderBlock.tsx +36 -0
- package/src/modules/email-editor/extensions/table.ts +352 -0
- package/src/modules/email-editor/extensions/tableBlock.tsx +13 -0
- package/src/modules/email-editor/hooks/useEmailHtml.ts +36 -0
- package/src/modules/email-editor/index.ts +6 -0
- package/src/modules/email-editor/maily-subpaths.d.ts +90 -0
- package/src/modules/email-editor/types/index.ts +37 -0
- package/src/modules/email-editor/utils/expandCustomNodes.ts +190 -0
- package/src/modules/email-editor/utils/renderEmailHtml.ts +52 -0
- package/src/modules/filter/components/Filter.tsx +568 -0
- package/src/modules/filter/context/FilterContext.tsx +6 -0
- package/src/modules/filter/date-filter/components/DateFilterCommand.tsx +59 -0
- package/src/modules/filter/date-filter/components/DialogDateView.tsx +270 -0
- package/src/modules/filter/date-filter/constants/dateTypes.tsx +25 -0
- package/src/modules/filter/date-filter/index.ts +2 -0
- package/src/modules/filter/date-filter/utils/dateTokens.ts +28 -0
- package/src/modules/filter/date-filter/utils/getActiveTab.ts +17 -0
- package/src/modules/filter/date-filter/utils/getDisplayValue.ts +49 -0
- package/src/modules/filter/date-filter/utils/getYears.ts +13 -0
- package/src/modules/filter/date-filter/utils/parseDateRangeFromString.ts +101 -0
- package/src/modules/filter/hooks/useFilterContext.tsx +6 -0
- package/src/modules/filter/hooks/useFilterQueryState.tsx +24 -0
- package/src/modules/filter/index.ts +5 -0
- package/src/modules/filter/states/filterStates.ts +14 -0
- package/src/modules/filter/types/filter.ts +29 -0
- package/src/modules/focus-sheet/components/focus-sheet.tsx +335 -0
- package/src/modules/hotkey/components/PopoverScoped.tsx +77 -0
- package/src/modules/hotkey/constants/defaultHotkeysScopeCustomScopes.ts +6 -0
- package/src/modules/hotkey/constants/initialHotkeysScope.ts +12 -0
- package/src/modules/hotkey/hooks/usePreviousHotkeyScope.tsx +59 -0
- package/src/modules/hotkey/hooks/useScopedHotKeysCallback.tsx +83 -0
- package/src/modules/hotkey/hooks/useScopedHotkeys.tsx +61 -0
- package/src/modules/hotkey/hooks/useSequenceHotkeys.tsx +79 -0
- package/src/modules/hotkey/hooks/useSetHotkeyScope.tsx +27 -0
- package/src/modules/hotkey/index.ts +18 -0
- package/src/modules/hotkey/states/internal/currentHotkeyScopeState.ts +6 -0
- package/src/modules/hotkey/states/internal/internalHotkeysEnabledScopeState.ts +3 -0
- package/src/modules/hotkey/states/internal/pendingHotkeyState.ts +4 -0
- package/src/modules/hotkey/states/internal/previousHotkeyScopeState.ts +4 -0
- package/src/modules/hotkey/states/setHotkeyScopeState.ts +92 -0
- package/src/modules/hotkey/types/AppHotkeyScope.ts +7 -0
- package/src/modules/hotkey/types/CustomHotkeyScope.ts +6 -0
- package/src/modules/hotkey/types/HotkeyScope.ts +6 -0
- package/src/modules/hotkey/utils/isNonTextWritingKey.ts +57 -0
- package/src/modules/icons/components/IconComponent.tsx +13 -0
- package/src/modules/icons/components/IconPicker.tsx +55 -0
- package/src/modules/icons/components/TablerIcons.ts +585 -0
- package/src/modules/icons/hooks/useIcons.ts +23 -0
- package/src/modules/icons/index.ts +3 -0
- package/src/modules/icons/providers/IconsProvider.tsx +20 -0
- package/src/modules/icons/states/iconsState.ts +4 -0
- package/src/modules/index.ts +22 -0
- package/src/modules/inputs/components/CurrencyField.tsx +217 -0
- package/src/modules/inputs/components/EmailField.tsx +425 -0
- package/src/modules/inputs/components/FullNameField.tsx +121 -0
- package/src/modules/inputs/components/LanguageSelect.tsx +46 -0
- package/src/modules/inputs/components/NumberField.tsx +29 -0
- package/src/modules/inputs/components/PhoneField.tsx +491 -0
- package/src/modules/inputs/components/SexField.tsx +31 -0
- package/src/modules/inputs/components/TimezoneSelect.tsx +48 -0
- package/src/modules/inputs/contexts/EmailFieldsContext.tsx +15 -0
- package/src/modules/inputs/contexts/FullNameFieldContext.tsx +9 -0
- package/src/modules/inputs/contexts/PhoneFieldsContext.tsx +12 -0
- package/src/modules/inputs/hooks/useEmailFields.tsx +4 -0
- package/src/modules/inputs/hooks/useFullNameField.tsx +12 -0
- package/src/modules/inputs/hooks/usePhoneFields.tsx +4 -0
- package/src/modules/inputs/index.ts +8 -0
- package/src/modules/inputs/states/emailFieldStates.ts +15 -0
- package/src/modules/inputs/states/phoneFieldStates.ts +15 -0
- package/src/modules/inputs/validations/emailValidation.ts +7 -0
- package/src/modules/inputs/validations/phoneValidation.ts +12 -0
- package/src/modules/layout/components/Page.tsx +37 -0
- package/src/modules/layout/index.ts +1 -0
- package/src/modules/motion/components/TextEffect.tsx +288 -0
- package/src/modules/motion/components/TextLoop.tsx +71 -0
- package/src/modules/motion/index.ts +2 -0
- package/src/modules/navigation-menu/components/NavigationMenu.tsx +182 -0
- package/src/modules/navigation-menu/components/NavigationMenuItemControls.tsx +18 -0
- package/src/modules/navigation-menu/index.ts +3 -0
- package/src/modules/navigation-menu/states/activePluginState.tsx +10 -0
- package/src/modules/preview/components/Preview.tsx +108 -0
- package/src/modules/preview/context/PreviewContext.tsx +16 -0
- package/src/modules/record-field/components/NumberField.tsx +124 -0
- package/src/modules/record-field/components/TextField.tsx +103 -0
- package/src/modules/record-field/index.ts +3 -0
- package/src/modules/record-field/meta-inputs/components/EmailVerificationInput.tsx +95 -0
- package/src/modules/record-field/meta-inputs/components/PhoneInput.tsx +217 -0
- package/src/modules/record-field/meta-inputs/components/PhoneVerificationInput.tsx +80 -0
- package/src/modules/record-field/meta-inputs/components/TextFieldInput.tsx +17 -0
- package/src/modules/record-table/components/CheckboxColumn.tsx +107 -0
- package/src/modules/record-table/components/MoreColumn.tsx +26 -0
- package/src/modules/record-table/components/RecordTableArrowEffect.tsx +67 -0
- package/src/modules/record-table/components/RecordTableCell.tsx +43 -0
- package/src/modules/record-table/components/RecordTableCellInline.tsx +104 -0
- package/src/modules/record-table/components/RecordTableColumnSelector.tsx +204 -0
- package/src/modules/record-table/components/RecordTableContainer.tsx +70 -0
- package/src/modules/record-table/components/RecordTableCursor.tsx +143 -0
- package/src/modules/record-table/components/RecordTableDnDProvider.tsx +63 -0
- package/src/modules/record-table/components/RecordTableHead.tsx +143 -0
- package/src/modules/record-table/components/RecordTableHeader.tsx +91 -0
- package/src/modules/record-table/components/RecordTableHotkeyCell.tsx +97 -0
- package/src/modules/record-table/components/RecordTableInlineHead.tsx +13 -0
- package/src/modules/record-table/components/RecordTableProvider.tsx +201 -0
- package/src/modules/record-table/components/RecordTableRoot.tsx +17 -0
- package/src/modules/record-table/components/RecordTableRow.tsx +42 -0
- package/src/modules/record-table/components/RecordTableRowList.tsx +47 -0
- package/src/modules/record-table/components/RecordTableRowSkeleton.tsx +66 -0
- package/src/modules/record-table/components/RecordTableScroll.tsx +23 -0
- package/src/modules/record-table/components/RecordTableTree.tsx +135 -0
- package/src/modules/record-table/contexts/RecordTableCursorContext.tsx +5 -0
- package/src/modules/record-table/contexts/RecordTableHotkeyContext.tsx +56 -0
- package/src/modules/record-table/contexts/RecordTableTreeContext.tsx +6 -0
- package/src/modules/record-table/hooks/usePopoverOnEnter.tsx +38 -0
- package/src/modules/record-table/hooks/useRecordTableCursor.tsx +22 -0
- package/src/modules/record-table/hooks/useRecordTableCursorContext.tsx +12 -0
- package/src/modules/record-table/hooks/useRecordTableTree.tsx +44 -0
- package/src/modules/record-table/hooks/useTablePreferences.ts +45 -0
- package/src/modules/record-table/index.ts +52 -0
- package/src/modules/record-table/states/EditModePositionComponentState.ts +7 -0
- package/src/modules/record-table/states/RecordTableCursorState.ts +6 -0
- package/src/modules/record-table/states/RecordTableTreeState.ts +6 -0
- package/src/modules/record-table/types/RecordTableCursorTypes.ts +26 -0
- package/src/modules/record-table/types/RecordTableScope.ts +3 -0
- package/src/modules/record-table/types/RecordTableTreeTypes.ts +6 -0
- package/src/modules/record-table/types/recordTableTypes.ts +8 -0
- package/src/modules/record-table/utils/columnUtils.ts +10 -0
- package/src/modules/record-table/utils/cursorUtils.ts +66 -0
- package/src/modules/report/components/report-page-container.tsx +179 -0
- package/src/modules/report/components/report-table.tsx +123 -0
- package/src/modules/report/index.ts +2 -0
- package/src/modules/report/states/reportSettingsState.ts +9 -0
- package/src/modules/select-operation/components/SelectOperation.tsx +167 -0
- package/src/modules/select-operation/index.ts +1 -0
- package/src/modules/select-tree/components/SelectTree.tsx +182 -0
- package/src/modules/select-tree/context/SelectTreeContext.tsx +15 -0
- package/src/modules/select-tree/hooks/useSelectTreeHide.tsx +29 -0
- package/src/modules/select-tree/index.ts +1 -0
- package/src/modules/select-tree/states/selectTreeStates.tsx +5 -0
- package/src/modules/select-tree/types/selectTreeTypes.ts +14 -0
- package/src/modules/side-menu/components/SideMenu.tsx +143 -0
- package/src/modules/side-menu/context/SideMenuContext.tsx +20 -0
- package/src/state/index.ts +2 -0
- package/src/state/sidebarPanelState.ts +8 -0
- package/src/state/themeState.ts +4 -0
- package/src/theme.css +275 -0
- package/src/types/CountryCode.ts +6 -0
- package/src/types/CurrencyCode.ts +161 -0
- package/src/types/Displays.ts +6 -0
- package/src/types/Gql.ts +34 -0
- package/src/types/Key.ts +1312 -0
- package/src/types/Relations.ts +14 -0
- package/src/types/SexCode.ts +6 -0
- package/src/types/Theme.ts +2 -0
- package/src/types/UIConfig.ts +198 -0
- package/src/types/Utils.ts +12 -0
- package/src/types/ValidationStatus.ts +4 -0
- package/src/types/index.ts +11 -0
- package/src/utils/IsUndefinedOrNull.ts +4 -0
- package/src/utils/colors.ts +68 -0
- package/src/utils/config/index.ts +83 -0
- package/src/utils/cookie-storage.ts +29 -0
- package/src/utils/core.ts +82 -0
- package/src/utils/fixOrder.ts +16 -0
- package/src/utils/format/formatAmount.ts +17 -0
- package/src/utils/format/formatPhoneNumber.ts +11 -0
- package/src/utils/format/index.ts +2 -0
- package/src/utils/getPluginAssetsUrl.ts +16 -0
- package/src/utils/highlightMatch.tsx +35 -0
- package/src/utils/index.ts +18 -0
- package/src/utils/isAnObject.ts +3 -0
- package/src/utils/isDeeplyEqual.ts +4 -0
- package/src/utils/isDefined.ts +4 -0
- package/src/utils/isEnabled.ts +7 -0
- package/src/utils/localization/detectTimeZone.ts +6 -0
- package/src/utils/localization/formatDateISOStringToRelativeDate.ts +39 -0
- package/src/utils/localization/formatTimeZoneLabel.ts +29 -0
- package/src/utils/localization/index.ts +3 -0
- package/src/utils/logDebug.ts +4 -0
- package/src/utils/regex/index.ts +1 -0
- package/src/utils/regex/passwordRegex.ts +1 -0
- package/src/utils/searchProvider.ts +77 -0
- package/src/utils/string-array.ts +24 -0
- package/src/utils/stripHtml.ts +15 -0
- package/src/utils/urlParser.ts +66 -0
- package/src/utils/videoEmbed.ts +56 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Command } from 'erxes-ui/components';
|
|
3
|
+
export interface MultiSelectOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
disable?: boolean;
|
|
7
|
+
/** fixed option that can‘t be removed. */
|
|
8
|
+
fixed?: boolean;
|
|
9
|
+
/** Group the options by providing key. */
|
|
10
|
+
[key: string]: string | boolean | undefined;
|
|
11
|
+
}
|
|
12
|
+
interface MultipleSelectorProps {
|
|
13
|
+
value?: MultiSelectOption[];
|
|
14
|
+
defaultOptions?: MultiSelectOption[];
|
|
15
|
+
/** manually controlled options */
|
|
16
|
+
options?: MultiSelectOption[];
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/** Loading component. */
|
|
19
|
+
loadingIndicator?: React.ReactNode;
|
|
20
|
+
/** Empty component. */
|
|
21
|
+
emptyIndicator?: React.ReactNode;
|
|
22
|
+
/** Debounce time for async search. Only work with `onSearch`. */
|
|
23
|
+
delay?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Only work with `onSearch` prop. Trigger search when `onFocus`.
|
|
26
|
+
* For example, when user click on the input, it will trigger the search to get initial options.
|
|
27
|
+
**/
|
|
28
|
+
triggerSearchOnFocus?: boolean;
|
|
29
|
+
/** async search */
|
|
30
|
+
onSearch?: (value: string) => Promise<MultiSelectOption[]>;
|
|
31
|
+
/**
|
|
32
|
+
* sync search. This search will not showing loadingIndicator.
|
|
33
|
+
* The rest props are the same as async search.
|
|
34
|
+
* i.e.: creatable, groupBy, delay.
|
|
35
|
+
**/
|
|
36
|
+
onSearchSync?: (value: string) => MultiSelectOption[];
|
|
37
|
+
onChange?: (options: MultiSelectOption[]) => void;
|
|
38
|
+
/** Limit the maximum number of selected options. */
|
|
39
|
+
maxSelected?: number;
|
|
40
|
+
/** When the number of selected options exceeds the limit, the onMaxSelected will be called. */
|
|
41
|
+
onMaxSelected?: (maxLimit: number) => void;
|
|
42
|
+
/** Hide the placeholder when there are options selected. */
|
|
43
|
+
hidePlaceholderWhenSelected?: boolean;
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
/** Group the options base on provided key. */
|
|
46
|
+
groupBy?: string;
|
|
47
|
+
className?: string;
|
|
48
|
+
badgeClassName?: string;
|
|
49
|
+
/**
|
|
50
|
+
* First item selected is a default behavior by cmdk. That is why the default is true.
|
|
51
|
+
* This is a workaround solution by add a dummy item.
|
|
52
|
+
*
|
|
53
|
+
* @reference: https://github.com/pacocoursey/cmdk/issues/171
|
|
54
|
+
*/
|
|
55
|
+
selectFirstItem?: boolean;
|
|
56
|
+
/** Allow user to create option when there is no option matched. */
|
|
57
|
+
creatable?: boolean;
|
|
58
|
+
/** Props of `Command` */
|
|
59
|
+
commandProps?: React.ComponentPropsWithoutRef<typeof Command>;
|
|
60
|
+
/** Props of `CommandInput` */
|
|
61
|
+
inputProps?: Omit<React.ComponentPropsWithoutRef<typeof Command.Input>, 'value' | 'placeholder' | 'disabled'>;
|
|
62
|
+
/** hide the clear all button. */
|
|
63
|
+
hideClearAllButton?: boolean;
|
|
64
|
+
}
|
|
65
|
+
export interface MultipleSelectorRef {
|
|
66
|
+
selectedValue: MultiSelectOption[];
|
|
67
|
+
input: HTMLInputElement;
|
|
68
|
+
focus: () => void;
|
|
69
|
+
reset: () => void;
|
|
70
|
+
}
|
|
71
|
+
export declare const MultipleSelector: React.ForwardRefExoticComponent<MultipleSelectorProps & React.RefAttributes<MultipleSelectorRef>>;
|
|
72
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
3
|
+
export type PopoverProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;
|
|
4
|
+
export declare const popoverClassName = "z-50 w-72 rounded-md bg-background p-4 shadow-lg outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0";
|
|
5
|
+
export declare const Popover: React.FC<PopoverPrimitive.PopoverProps> & {
|
|
6
|
+
Trigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
Content: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
|
+
disableTransition?: boolean;
|
|
9
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Anchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Close: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { RadioGroup as RadioGroupPrimitive } from 'radix-ui';
|
|
3
|
+
export type RadioGroupProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;
|
|
4
|
+
export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
5
|
+
Item: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
2
|
+
export declare const Resizable: {
|
|
3
|
+
PanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
Panel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement | HTMLElement | HTMLObjectElement | HTMLAnchorElement | HTMLButtonElement | HTMLFormElement | HTMLHeadingElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSelectElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLLinkElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
5
|
+
className?: string | undefined;
|
|
6
|
+
collapsedSize?: number | undefined;
|
|
7
|
+
collapsible?: boolean | undefined;
|
|
8
|
+
defaultSize?: number | undefined;
|
|
9
|
+
id?: string | undefined;
|
|
10
|
+
maxSize?: number | undefined;
|
|
11
|
+
minSize?: number | undefined;
|
|
12
|
+
onCollapse?: ResizablePrimitive.PanelOnCollapse | undefined;
|
|
13
|
+
onExpand?: ResizablePrimitive.PanelOnExpand | undefined;
|
|
14
|
+
onResize?: ResizablePrimitive.PanelOnResize | undefined;
|
|
15
|
+
order?: number | undefined;
|
|
16
|
+
style?: object | undefined;
|
|
17
|
+
tagName?: keyof HTMLElementTagNameMap | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
children?: import("react").ReactNode;
|
|
20
|
+
} & import("react").RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
21
|
+
Handle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
22
|
+
withHandle?: boolean;
|
|
23
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';
|
|
3
|
+
export declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
4
|
+
scrollBarClassName?: string;
|
|
5
|
+
viewportClassName?: string;
|
|
6
|
+
} & React.RefAttributes<HTMLDivElement>> & {
|
|
7
|
+
Root: React.ForwardRefExoticComponent<Omit<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
|
+
scrollBarClassName?: string;
|
|
9
|
+
viewportClassName?: string;
|
|
10
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Viewport: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Bar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type TSearchSortOrder = 'newest' | 'oldest';
|
|
2
|
+
export declare const SearchOrderSelect: ({ value, newestLabel, oldestLabel, triggerClassName, onValueChange, }: {
|
|
3
|
+
value: TSearchSortOrder;
|
|
4
|
+
newestLabel: string;
|
|
5
|
+
oldestLabel: string;
|
|
6
|
+
triggerClassName?: string;
|
|
7
|
+
onValueChange: (value: TSearchSortOrder) => void;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Select as SelectPrimitive } from 'radix-ui';
|
|
3
|
+
export declare const Select: React.FC<SelectPrimitive.SelectProps> & {
|
|
4
|
+
Group: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
Value: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
Primitive: typeof SelectPrimitive;
|
|
7
|
+
Trigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
Content: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Label: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Item: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Separator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
ScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
ScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Separator as SeparatorPrimitive } from 'radix-ui';
|
|
3
|
+
export declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
4
|
+
Inline: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Dialog as SheetPrimitive } from 'radix-ui';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
declare const sheetVariants: (props?: {
|
|
5
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) => string;
|
|
7
|
+
export declare const SheetPortal: {
|
|
8
|
+
({ ...props }: React.ComponentPropsWithoutRef<typeof SheetPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
12
|
+
}
|
|
13
|
+
export declare const SheetClose: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
export declare const Sheet: {
|
|
15
|
+
({ ...props }: React.ComponentPropsWithoutRef<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
} & {
|
|
18
|
+
Trigger: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
Overlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
View: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
Content: {
|
|
22
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
25
|
+
Header: {
|
|
26
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
Footer: {
|
|
30
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
displayName: string;
|
|
32
|
+
};
|
|
33
|
+
Title: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
34
|
+
Description: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
35
|
+
Close: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const SIDEBAR_COOKIE_NAME = "sidebar:state";
|
|
2
|
+
export declare const SIDEBAR_COLLAPSE_COOKIE_NAME = "sidebar:collapse";
|
|
3
|
+
export declare const SIDEBAR_COOKIE_MAX_AGE: number;
|
|
4
|
+
export declare const SIDEBAR_WIDTH = "16rem";
|
|
5
|
+
export declare const SIDEBAR_WIDTH_COMPACT = "12rem";
|
|
6
|
+
export declare const SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
7
|
+
export declare const SIDEBAR_WIDTH_ICON = "3rem";
|
|
8
|
+
export declare const SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
9
|
+
export type CollapseState = 'expanded' | 'compact' | 'collapsed';
|
|
10
|
+
export declare const COLLAPSE_ORDER: CollapseState[];
|
|
11
|
+
export declare const nextCollapseState: (prev: CollapseState) => CollapseState;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type CollapseState } from './constants';
|
|
3
|
+
type ISidebarContext = {
|
|
4
|
+
state: 'expanded' | 'collapsed';
|
|
5
|
+
collapseState: CollapseState;
|
|
6
|
+
open: boolean;
|
|
7
|
+
setOpen: (open: boolean) => void;
|
|
8
|
+
openMobile: boolean;
|
|
9
|
+
setOpenMobile: (open: boolean) => void;
|
|
10
|
+
isMobile: boolean;
|
|
11
|
+
toggleSidebar: () => void;
|
|
12
|
+
};
|
|
13
|
+
export declare function useOptionalSidebar(): ISidebarContext;
|
|
14
|
+
export declare function useSidebar(): ISidebarContext;
|
|
15
|
+
export declare const SidebarProvider: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
16
|
+
defaultOpen?: boolean;
|
|
17
|
+
open?: boolean;
|
|
18
|
+
onOpenChange?: (open: boolean) => void;
|
|
19
|
+
collapseState?: CollapseState;
|
|
20
|
+
defaultCollapseState?: CollapseState;
|
|
21
|
+
onCollapseStateChange?: (state: CollapseState) => void;
|
|
22
|
+
sidebarKeyboardShortcut?: string | false;
|
|
23
|
+
sidebarWidth?: string;
|
|
24
|
+
sidebarWidthIcon?: string;
|
|
25
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const SidebarGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const SidebarGroupLabel: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
asChild?: boolean;
|
|
5
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const SidebarGroupAction: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
export declare const SidebarGroupContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const SidebarInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement> & {
|
|
3
|
+
variant?: "default" | "secondary";
|
|
4
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export declare const SidebarHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const SidebarFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const SidebarSeparator: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-separator").SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const SidebarContent: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-scroll-area").ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
|
+
scrollBarClassName?: string;
|
|
10
|
+
viewportClassName?: string;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const SidebarMenuSub: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
3
|
+
export declare const SidebarMenuSubItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
4
|
+
export declare const SidebarMenuSubButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
size?: "sm" | "md";
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
}, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { Tooltip } from 'erxes-ui/components/tooltip';
|
|
4
|
+
export declare const SidebarMenu: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
5
|
+
export declare const SidebarMenuItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
6
|
+
export declare const SidebarMenuButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
isActive?: boolean;
|
|
9
|
+
tooltip?: string | React.ComponentProps<typeof Tooltip.Content>;
|
|
10
|
+
tooltipVisibility?: "collapsed" | "always";
|
|
11
|
+
} & VariantProps<(props?: {
|
|
12
|
+
variant?: "default" | "outline";
|
|
13
|
+
size?: "default" | "sm" | "lg";
|
|
14
|
+
} & import("class-variance-authority/types").ClassProp) => string>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
export declare const SidebarMenuAction: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
16
|
+
asChild?: boolean;
|
|
17
|
+
showOnHover?: boolean;
|
|
18
|
+
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
export declare const SidebarMenuBadge: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export declare const SidebarMenuSkeleton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
21
|
+
showIcon?: boolean;
|
|
22
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const SidebarPanelTrigger: React.ForwardRefExoticComponent<Omit<import("erxes-ui/components/button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3
|
+
export declare const SidebarPanel: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
actions?: React.ReactNode;
|
|
6
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const SidebarRoot: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
side?: "left" | "right";
|
|
4
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
5
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
6
|
+
mobileClassName?: string;
|
|
7
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const SidebarRail: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
export declare const SidebarInset: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type TFindActiveTreeItem = (container: HTMLElement) => HTMLElement | null;
|
|
3
|
+
export declare const findActiveSubItem: TFindActiveTreeItem;
|
|
4
|
+
export declare const SidebarTreeIndicator: ({ as: Element, containerRef, findActive, }: Readonly<{
|
|
5
|
+
as?: "li" | "span";
|
|
6
|
+
containerRef: React.RefObject<HTMLElement | null>;
|
|
7
|
+
findActive?: TFindActiveTreeItem;
|
|
8
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { useOptionalSidebar, useSidebar } from './sidebar/context';
|
|
2
|
+
export declare const Sidebar: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
side?: "left" | "right";
|
|
4
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
5
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
6
|
+
mobileClassName?: string;
|
|
7
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
8
|
+
Content: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-scroll-area").ScrollAreaProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
|
+
scrollBarClassName?: string;
|
|
10
|
+
viewportClassName?: string;
|
|
11
|
+
} & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Footer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Group: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
GroupAction: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
15
|
+
asChild?: boolean;
|
|
16
|
+
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
GroupContent: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
GroupLabel: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
19
|
+
asChild?: boolean;
|
|
20
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
Header: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
+
Input: import("react").ForwardRefExoticComponent<Omit<import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
23
|
+
variant?: "default" | "secondary";
|
|
24
|
+
} & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
25
|
+
Inset: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
|
+
Panel: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
27
|
+
label?: React.ReactNode;
|
|
28
|
+
actions?: React.ReactNode;
|
|
29
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
|
+
PanelTrigger: import("react").ForwardRefExoticComponent<Omit<import("./button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
31
|
+
Menu: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & import("react").RefAttributes<HTMLUListElement>>;
|
|
32
|
+
MenuAction: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
33
|
+
asChild?: boolean;
|
|
34
|
+
showOnHover?: boolean;
|
|
35
|
+
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
36
|
+
MenuBadge: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
37
|
+
MenuButton: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
38
|
+
asChild?: boolean;
|
|
39
|
+
isActive?: boolean;
|
|
40
|
+
tooltip?: string | React.ComponentProps<import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-tooltip").TooltipContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
41
|
+
tooltipVisibility?: "collapsed" | "always";
|
|
42
|
+
} & import("class-variance-authority").VariantProps<(props?: {
|
|
43
|
+
variant?: "default" | "outline";
|
|
44
|
+
size?: "default" | "sm" | "lg";
|
|
45
|
+
} & import("class-variance-authority/types").ClassProp) => string>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
46
|
+
MenuItem: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
47
|
+
MenuSkeleton: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
48
|
+
showIcon?: boolean;
|
|
49
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
50
|
+
Sub: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & import("react").RefAttributes<HTMLUListElement>>;
|
|
51
|
+
TreeIndicator: ({ as: Element, containerRef, findActive, }: Readonly<{
|
|
52
|
+
as?: "li" | "span";
|
|
53
|
+
containerRef: React.RefObject<HTMLElement | null>;
|
|
54
|
+
findActive?: import("./sidebar-tree-indicator").TFindActiveTreeItem;
|
|
55
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
SubButton: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLAnchorElement> & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
57
|
+
asChild?: boolean;
|
|
58
|
+
size?: "sm" | "md";
|
|
59
|
+
isActive?: boolean;
|
|
60
|
+
}, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
61
|
+
SubItem: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
62
|
+
Provider: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
63
|
+
defaultOpen?: boolean;
|
|
64
|
+
open?: boolean;
|
|
65
|
+
onOpenChange?: (open: boolean) => void;
|
|
66
|
+
collapseState?: import("./sidebar/constants").CollapseState;
|
|
67
|
+
defaultCollapseState?: import("./sidebar/constants").CollapseState;
|
|
68
|
+
onCollapseStateChange?: (state: import("./sidebar/constants").CollapseState) => void;
|
|
69
|
+
sidebarKeyboardShortcut?: string | false;
|
|
70
|
+
sidebarWidth?: string;
|
|
71
|
+
sidebarWidthIcon?: string;
|
|
72
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
73
|
+
Rail: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
74
|
+
Separator: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-separator").SeparatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
75
|
+
Trigger: import("react").ForwardRefExoticComponent<Omit<import("./button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
76
|
+
useOptionalSidebar: typeof useOptionalSidebar;
|
|
77
|
+
useSidebar: typeof useSidebar;
|
|
78
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const Skeleton: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const SkeletonArray: ({ className, count, ...props }: React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
count: number;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Slider as SliderPrimitive } from 'radix-ui';
|
|
3
|
+
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
4
|
+
hideThumb?: boolean;
|
|
5
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
export { Slider };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const spinnerVariants: (props?: {
|
|
3
|
+
show?: boolean;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) => string;
|
|
5
|
+
declare const loaderVariants: (props?: {
|
|
6
|
+
size?: "default" | "sm" | "lg" | "md";
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) => string;
|
|
8
|
+
interface SpinnerContentProps extends VariantProps<typeof spinnerVariants>, VariantProps<typeof loaderVariants> {
|
|
9
|
+
className?: string;
|
|
10
|
+
containerClassName?: string;
|
|
11
|
+
withMascot?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function Spinner({ size, show, className, containerClassName, withMascot, }: SpinnerContentProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface StepperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
defaultValue?: number;
|
|
4
|
+
value?: number;
|
|
5
|
+
onValueChange?: (value: number) => void;
|
|
6
|
+
orientation?: 'horizontal' | 'vertical';
|
|
7
|
+
}
|
|
8
|
+
interface StepperItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
step: number;
|
|
10
|
+
completed?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface StepperTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
15
|
+
asChild?: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface StepperIndicatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
18
|
+
asChild?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HTMLDivElement>> & {
|
|
21
|
+
Item: React.ForwardRefExoticComponent<StepperItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
Trigger: React.ForwardRefExoticComponent<StepperTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
Indicator: React.ForwardRefExoticComponent<StepperIndicatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
Title: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
25
|
+
Description: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
26
|
+
Separator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare function StringArrayInput({ value, onValueChange, id, placeholder, styleClasses, onBlur, splitOnPaste, }: {
|
|
2
|
+
value: string[];
|
|
3
|
+
onValueChange: (value: string[]) => void;
|
|
4
|
+
id?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
styleClasses?: {
|
|
7
|
+
inlineTagsContainer?: string;
|
|
8
|
+
input?: string;
|
|
9
|
+
tag?: {
|
|
10
|
+
body?: string;
|
|
11
|
+
closeButton?: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
onBlur?: () => void;
|
|
15
|
+
splitOnPaste?: boolean;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Switch as SwitchPrimitives } from 'radix-ui';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
export declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: {
|
|
5
|
+
size?: "default" | "sm";
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>> & {
|
|
3
|
+
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
4
|
+
Body: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
5
|
+
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
6
|
+
Head: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
7
|
+
Row: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
8
|
+
Cell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
9
|
+
Caption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Tabs as TabsPrimitive } from 'radix-ui';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
export declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>> & {
|
|
5
|
+
List: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: {
|
|
6
|
+
variant?: "underline" | "segment";
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Trigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: {
|
|
9
|
+
variant?: "underline" | "segment";
|
|
10
|
+
} & import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
Content: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Primitive: typeof TabsPrimitive;
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type InputHTMLAttributes } from 'react';
|
|
2
|
+
interface TextOverflowTooltipProps {
|
|
3
|
+
value?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
delayDuration?: number;
|
|
6
|
+
}
|
|
7
|
+
interface TextOverflowTooltipInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'> {
|
|
8
|
+
value?: string;
|
|
9
|
+
onChange?: (value: string) => void;
|
|
10
|
+
delayDuration?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const TextOverflowTooltip: import("react").ForwardRefExoticComponent<TextOverflowTooltipProps & import("react").RefAttributes<HTMLSpanElement>> & {
|
|
13
|
+
Input: import("react").ForwardRefExoticComponent<TextOverflowTooltipInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DateFieldProps, DateInputProps as DateInputPropsRac, DateSegmentProps, DateValue as DateValueRac, TimeFieldProps, TimeValue as TimeValueRac } from 'react-aria-components';
|
|
2
|
+
declare function DateField<T extends DateValueRac>({ className, children, ...props }: DateFieldProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function TimeField<T extends TimeValueRac>({ className, children, ...props }: TimeFieldProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function DateSegment({ className, ...props }: DateSegmentProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
interface DateInputProps extends DateInputPropsRac {
|
|
6
|
+
className?: string;
|
|
7
|
+
unstyled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function DateInput({ className, unstyled, ...props }: Omit<DateInputProps, 'children'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { DateField, DateInput, DateSegment, TimeField };
|
|
11
|
+
export type { DateInputProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Toaster(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Toast as ToastPrimitives } from 'radix-ui';
|
|
3
|
+
declare const ToastRoot: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & {
|
|
4
|
+
variant?: "success" | "warning" | "destructive" | "default";
|
|
5
|
+
} & React.RefAttributes<HTMLLIElement>>;
|
|
6
|
+
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
export type ToastProps = React.ComponentPropsWithoutRef<typeof ToastRoot>;
|
|
8
|
+
export type ToastActionElement = React.ReactElement<typeof ToastAction>;
|
|
9
|
+
export declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & {
|
|
10
|
+
variant?: "success" | "warning" | "destructive" | "default";
|
|
11
|
+
} & React.RefAttributes<HTMLLIElement>> & {
|
|
12
|
+
Provider: React.FC<ToastPrimitives.ToastProviderProps>;
|
|
13
|
+
Viewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
14
|
+
Action: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
Close: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
Title: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
Description: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
};
|
|
19
|
+
export {};
|