@synerise/ds-mocks 0.1.16 → 0.2.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/CHANGELOG.md +6 -0
- package/README.md +187 -332
- package/dist/ActionArea/index.d.ts +1 -0
- package/dist/ActionArea/index.js +5 -0
- package/dist/ActionArea/jest.js +21 -0
- package/dist/ActionArea/vi.d.ts +10 -0
- package/dist/ActionArea/vi.js +15 -0
- package/dist/Alert/index.d.ts +1 -0
- package/dist/Alert/index.js +5 -0
- package/dist/Alert/jest.js +81 -0
- package/dist/Alert/vi.d.ts +42 -0
- package/dist/Alert/vi.js +75 -0
- package/dist/AppMenu/index.d.ts +1 -0
- package/dist/AppMenu/index.js +5 -0
- package/dist/AppMenu/jest.js +51 -0
- package/dist/AppMenu/vi.d.ts +29 -0
- package/dist/AppMenu/vi.js +45 -0
- package/dist/Autocomplete/index.d.ts +1 -0
- package/dist/Autocomplete/index.js +5 -0
- package/dist/Autocomplete/jest.js +27 -0
- package/dist/Autocomplete/vi.d.ts +25 -0
- package/dist/Autocomplete/vi.js +21 -0
- package/dist/Avatar/index.d.ts +1 -0
- package/dist/Avatar/index.js +5 -0
- package/dist/Avatar/jest.js +55 -0
- package/dist/Avatar/vi.d.ts +43 -0
- package/dist/Avatar/vi.js +49 -0
- package/dist/AvatarGroup/index.d.ts +1 -0
- package/dist/AvatarGroup/index.js +5 -0
- package/dist/AvatarGroup/jest.js +22 -0
- package/dist/AvatarGroup/vi.d.ts +10 -0
- package/dist/AvatarGroup/vi.js +16 -0
- package/dist/Badge/index.d.ts +1 -0
- package/dist/Badge/index.js +5 -0
- package/dist/Badge/jest.js +23 -0
- package/dist/Badge/vi.d.ts +10 -0
- package/dist/Badge/vi.js +17 -0
- package/dist/Banner/index.d.ts +1 -0
- package/dist/Banner/index.js +5 -0
- package/dist/Banner/jest.js +27 -0
- package/dist/Banner/vi.d.ts +10 -0
- package/dist/Banner/vi.js +21 -0
- package/dist/BroadcastBar/index.d.ts +1 -0
- package/dist/BroadcastBar/index.js +5 -0
- package/dist/BroadcastBar/jest.js +22 -0
- package/dist/BroadcastBar/vi.d.ts +10 -0
- package/dist/BroadcastBar/vi.js +16 -0
- package/dist/ButtonGroup/index.d.ts +1 -0
- package/dist/ButtonGroup/index.js +5 -0
- package/dist/ButtonGroup/jest.js +25 -0
- package/dist/ButtonGroup/vi.d.ts +27 -0
- package/dist/ButtonGroup/vi.js +19 -0
- package/dist/Card/index.d.ts +1 -0
- package/dist/Card/index.js +5 -0
- package/dist/Card/jest.js +55 -0
- package/dist/Card/vi.d.ts +33 -0
- package/dist/Card/vi.js +49 -0
- package/dist/CardSelect/index.d.ts +1 -0
- package/dist/CardSelect/index.js +5 -0
- package/dist/CardSelect/jest.js +51 -0
- package/dist/CardSelect/vi.d.ts +27 -0
- package/dist/CardSelect/vi.js +45 -0
- package/dist/CardTabs/index.d.ts +1 -0
- package/dist/CardTabs/index.js +5 -0
- package/dist/CardTabs/jest.js +34 -0
- package/dist/CardTabs/vi.d.ts +33 -0
- package/dist/CardTabs/vi.js +28 -0
- package/dist/Cascader/index.d.ts +1 -0
- package/dist/Cascader/index.js +4 -0
- package/dist/Cascader/jest.js +21 -0
- package/dist/Cascader/vi.d.ts +15 -0
- package/dist/Cascader/vi.js +18 -0
- package/dist/Checkbox/index.d.ts +1 -0
- package/dist/Checkbox/index.js +5 -0
- package/dist/Checkbox/jest.js +78 -0
- package/dist/Checkbox/vi.d.ts +31 -0
- package/dist/Checkbox/vi.js +72 -0
- package/dist/CodeArea/index.d.ts +1 -0
- package/dist/CodeArea/index.js +5 -0
- package/dist/CodeArea/jest.js +42 -0
- package/dist/CodeArea/vi.d.ts +26 -0
- package/dist/CodeArea/vi.js +36 -0
- package/dist/CodeSnippet/index.d.ts +1 -0
- package/dist/CodeSnippet/index.js +6 -0
- package/dist/CodeSnippet/jest.js +30 -0
- package/dist/CodeSnippet/vi.d.ts +25 -0
- package/dist/CodeSnippet/vi.js +24 -0
- package/dist/Collector/index.d.ts +1 -0
- package/dist/Collector/index.js +4 -0
- package/dist/Collector/jest.js +38 -0
- package/dist/Collector/vi.d.ts +14 -0
- package/dist/Collector/vi.js +35 -0
- package/dist/ColorPicker/index.d.ts +1 -0
- package/dist/ColorPicker/index.js +5 -0
- package/dist/ColorPicker/jest.js +22 -0
- package/dist/ColorPicker/vi.d.ts +10 -0
- package/dist/ColorPicker/vi.js +16 -0
- package/dist/ColumnManager/index.d.ts +1 -0
- package/dist/ColumnManager/index.js +5 -0
- package/dist/ColumnManager/jest.js +35 -0
- package/dist/ColumnManager/vi.d.ts +25 -0
- package/dist/ColumnManager/vi.js +29 -0
- package/dist/CompletedWithin/index.d.ts +1 -0
- package/dist/CompletedWithin/index.js +5 -0
- package/dist/CompletedWithin/jest.js +20 -0
- package/dist/CompletedWithin/vi.d.ts +12 -0
- package/dist/CompletedWithin/vi.js +14 -0
- package/dist/Condition/index.d.ts +1 -0
- package/dist/Condition/index.js +5 -0
- package/dist/Condition/jest.js +21 -0
- package/dist/Condition/vi.d.ts +10 -0
- package/dist/Condition/vi.js +15 -0
- package/dist/Confirmation/index.d.ts +1 -0
- package/dist/Confirmation/index.js +5 -0
- package/dist/Confirmation/jest.js +60 -0
- package/dist/Confirmation/vi.d.ts +27 -0
- package/dist/Confirmation/vi.js +54 -0
- package/dist/ContextSelector/index.d.ts +1 -0
- package/dist/ContextSelector/index.js +5 -0
- package/dist/ContextSelector/jest.js +23 -0
- package/dist/ContextSelector/vi.d.ts +25 -0
- package/dist/ContextSelector/vi.js +17 -0
- package/dist/CopyIcon/index.d.ts +1 -0
- package/dist/CopyIcon/index.js +5 -0
- package/dist/CopyIcon/jest.js +22 -0
- package/dist/CopyIcon/vi.d.ts +10 -0
- package/dist/CopyIcon/vi.js +16 -0
- package/dist/DatePicker/index.d.ts +1 -0
- package/dist/DatePicker/index.js +5 -0
- package/dist/DatePicker/jest.js +54 -0
- package/dist/DatePicker/vi.d.ts +36 -0
- package/dist/DatePicker/vi.js +48 -0
- package/dist/DateRangePicker/index.d.ts +1 -0
- package/dist/DateRangePicker/index.js +5 -0
- package/dist/DateRangePicker/jest.js +58 -0
- package/dist/DateRangePicker/vi.d.ts +42 -0
- package/dist/DateRangePicker/vi.js +52 -0
- package/dist/Description/index.d.ts +1 -0
- package/dist/Description/index.js +5 -0
- package/dist/Description/jest.js +42 -0
- package/dist/Description/vi.d.ts +29 -0
- package/dist/Description/vi.js +36 -0
- package/dist/Divider/index.d.ts +1 -0
- package/dist/Divider/index.js +5 -0
- package/dist/Divider/jest.js +21 -0
- package/dist/Divider/vi.d.ts +6 -0
- package/dist/Divider/vi.js +15 -0
- package/dist/Drawer/index.d.ts +1 -0
- package/dist/Drawer/index.js +5 -0
- package/dist/Drawer/jest.js +86 -0
- package/dist/Drawer/vi.d.ts +25 -0
- package/dist/Drawer/vi.js +80 -0
- package/dist/EditableItemsList/index.d.ts +1 -0
- package/dist/EditableItemsList/index.js +5 -0
- package/dist/EditableItemsList/jest.js +21 -0
- package/dist/EditableItemsList/vi.d.ts +10 -0
- package/dist/EditableItemsList/vi.js +15 -0
- package/dist/EmojiPicker/index.d.ts +1 -0
- package/dist/EmojiPicker/index.js +5 -0
- package/dist/EmojiPicker/jest.js +27 -0
- package/dist/EmojiPicker/vi.d.ts +12 -0
- package/dist/EmojiPicker/vi.js +21 -0
- package/dist/EmptyStates/index.d.ts +1 -0
- package/dist/EmptyStates/index.js +5 -0
- package/dist/EmptyStates/jest.js +34 -0
- package/dist/EmptyStates/vi.d.ts +6 -0
- package/dist/EmptyStates/vi.js +28 -0
- package/dist/Estimation/index.d.ts +1 -0
- package/dist/Estimation/index.js +5 -0
- package/dist/Estimation/jest.js +21 -0
- package/dist/Estimation/vi.d.ts +10 -0
- package/dist/Estimation/vi.js +15 -0
- package/dist/Factors/index.d.ts +1 -0
- package/dist/Factors/index.js +5 -0
- package/dist/Factors/jest.js +25 -0
- package/dist/Factors/vi.d.ts +18 -0
- package/dist/Factors/vi.js +19 -0
- package/dist/FieldSet/index.d.ts +1 -0
- package/dist/FieldSet/index.js +5 -0
- package/dist/FieldSet/jest.js +23 -0
- package/dist/FieldSet/vi.d.ts +10 -0
- package/dist/FieldSet/vi.js +17 -0
- package/dist/FileUploader/index.d.ts +1 -0
- package/dist/FileUploader/index.js +5 -0
- package/dist/FileUploader/jest.js +54 -0
- package/dist/FileUploader/vi.d.ts +31 -0
- package/dist/FileUploader/vi.js +48 -0
- package/dist/Filter/index.d.ts +1 -0
- package/dist/Filter/index.js +5 -0
- package/dist/Filter/jest.js +21 -0
- package/dist/Filter/vi.d.ts +12 -0
- package/dist/Filter/vi.js +15 -0
- package/dist/Flag/index.d.ts +1 -0
- package/dist/Flag/index.js +5 -0
- package/dist/Flag/jest.js +23 -0
- package/dist/Flag/vi.d.ts +12 -0
- package/dist/Flag/vi.js +17 -0
- package/dist/FlexBox/index.d.ts +1 -0
- package/dist/FlexBox/index.js +5 -0
- package/dist/FlexBox/jest.js +38 -0
- package/dist/FlexBox/vi.d.ts +5 -0
- package/dist/FlexBox/vi.js +35 -0
- package/dist/Footer/index.d.ts +1 -0
- package/dist/Footer/index.js +5 -0
- package/dist/Footer/jest.js +21 -0
- package/dist/Footer/vi.d.ts +10 -0
- package/dist/Footer/vi.js +15 -0
- package/dist/FormField/index.d.ts +1 -0
- package/dist/FormField/index.js +5 -0
- package/dist/FormField/jest.js +57 -0
- package/dist/FormField/vi.d.ts +32 -0
- package/dist/FormField/vi.js +51 -0
- package/dist/FormatPicker/index.d.ts +1 -0
- package/dist/FormatPicker/index.js +5 -0
- package/dist/FormatPicker/jest.js +23 -0
- package/dist/FormatPicker/vi.d.ts +10 -0
- package/dist/FormatPicker/vi.js +17 -0
- package/dist/Grid/index.d.ts +1 -0
- package/dist/Grid/index.js +5 -0
- package/dist/Grid/jest.js +40 -0
- package/dist/Grid/vi.d.ts +25 -0
- package/dist/Grid/vi.js +34 -0
- package/dist/IconPicker/index.d.ts +1 -0
- package/dist/IconPicker/index.js +5 -0
- package/dist/IconPicker/jest.js +23 -0
- package/dist/IconPicker/vi.d.ts +10 -0
- package/dist/IconPicker/vi.js +17 -0
- package/dist/InformationCard/index.d.ts +1 -0
- package/dist/InformationCard/index.js +5 -0
- package/dist/InformationCard/jest.js +45 -0
- package/dist/InformationCard/vi.d.ts +36 -0
- package/dist/InformationCard/vi.js +39 -0
- package/dist/InlineAlert/index.d.ts +1 -0
- package/dist/InlineAlert/index.js +5 -0
- package/dist/InlineAlert/jest.js +26 -0
- package/dist/InlineAlert/vi.d.ts +10 -0
- package/dist/InlineAlert/vi.js +20 -0
- package/dist/InlineEdit/index.d.ts +1 -0
- package/dist/InlineEdit/index.js +5 -0
- package/dist/InlineEdit/jest.js +41 -0
- package/dist/InlineEdit/vi.d.ts +27 -0
- package/dist/InlineEdit/vi.js +35 -0
- package/dist/InputNumber/index.d.ts +1 -0
- package/dist/InputNumber/index.js +5 -0
- package/dist/InputNumber/jest.js +27 -0
- package/dist/InputNumber/vi.d.ts +10 -0
- package/dist/InputNumber/vi.js +21 -0
- package/dist/Insight/index.d.ts +1 -0
- package/dist/Insight/index.js +5 -0
- package/dist/Insight/jest.js +21 -0
- package/dist/Insight/vi.d.ts +10 -0
- package/dist/Insight/vi.js +15 -0
- package/dist/ItemFilter/index.d.ts +1 -0
- package/dist/ItemFilter/index.js +5 -0
- package/dist/ItemFilter/jest.js +21 -0
- package/dist/ItemFilter/vi.d.ts +12 -0
- package/dist/ItemFilter/vi.js +15 -0
- package/dist/ItemPicker/index.d.ts +1 -0
- package/dist/ItemPicker/index.js +4 -0
- package/dist/ItemPicker/jest.js +37 -0
- package/dist/ItemPicker/vi.d.ts +20 -0
- package/dist/ItemPicker/vi.js +34 -0
- package/dist/ItemsRoll/index.d.ts +1 -0
- package/dist/ItemsRoll/index.js +5 -0
- package/dist/ItemsRoll/jest.js +21 -0
- package/dist/ItemsRoll/vi.d.ts +10 -0
- package/dist/ItemsRoll/vi.js +15 -0
- package/dist/Layout/index.d.ts +1 -0
- package/dist/Layout/index.js +5 -0
- package/dist/Layout/jest.js +27 -0
- package/dist/Layout/vi.d.ts +27 -0
- package/dist/Layout/vi.js +21 -0
- package/dist/List/index.d.ts +1 -0
- package/dist/List/index.js +5 -0
- package/dist/List/jest.js +61 -0
- package/dist/List/vi.d.ts +25 -0
- package/dist/List/vi.js +55 -0
- package/dist/ListItem/index.d.ts +1 -0
- package/dist/ListItem/index.js +5 -0
- package/dist/ListItem/jest.js +46 -0
- package/dist/ListItem/vi.d.ts +36 -0
- package/dist/ListItem/vi.js +40 -0
- package/dist/Loader/index.d.ts +1 -0
- package/dist/Loader/index.js +5 -0
- package/dist/Loader/jest.js +22 -0
- package/dist/Loader/vi.d.ts +10 -0
- package/dist/Loader/vi.js +16 -0
- package/dist/Logic/index.d.ts +1 -0
- package/dist/Logic/index.js +5 -0
- package/dist/Logic/jest.js +46 -0
- package/dist/Logic/vi.d.ts +29 -0
- package/dist/Logic/vi.js +40 -0
- package/dist/ManageableList/index.d.ts +1 -0
- package/dist/ManageableList/index.js +5 -0
- package/dist/ManageableList/jest.js +72 -0
- package/dist/ManageableList/vi.d.ts +33 -0
- package/dist/ManageableList/vi.js +66 -0
- package/dist/Mapping/index.d.ts +1 -0
- package/dist/Mapping/index.js +5 -0
- package/dist/Mapping/jest.js +21 -0
- package/dist/Mapping/vi.d.ts +12 -0
- package/dist/Mapping/vi.js +15 -0
- package/dist/Menu/index.d.ts +1 -0
- package/dist/Menu/index.js +5 -0
- package/dist/Menu/jest.js +94 -0
- package/dist/Menu/vi.d.ts +33 -0
- package/dist/Menu/vi.js +88 -0
- package/dist/MetricCard/index.d.ts +1 -0
- package/dist/MetricCard/index.js +5 -0
- package/dist/MetricCard/jest.js +23 -0
- package/dist/MetricCard/vi.d.ts +10 -0
- package/dist/MetricCard/vi.js +17 -0
- package/dist/Navbar/index.d.ts +1 -0
- package/dist/Navbar/index.js +5 -0
- package/dist/Navbar/jest.js +41 -0
- package/dist/Navbar/vi.d.ts +25 -0
- package/dist/Navbar/vi.js +35 -0
- package/dist/Operators/index.d.ts +1 -0
- package/dist/Operators/index.js +5 -0
- package/dist/Operators/jest.js +21 -0
- package/dist/Operators/vi.d.ts +15 -0
- package/dist/Operators/vi.js +15 -0
- package/dist/OrderedList/index.d.ts +1 -0
- package/dist/OrderedList/index.js +5 -0
- package/dist/OrderedList/jest.js +25 -0
- package/dist/OrderedList/vi.d.ts +10 -0
- package/dist/OrderedList/vi.js +19 -0
- package/dist/PageHeader/index.d.ts +1 -0
- package/dist/PageHeader/index.js +5 -0
- package/dist/PageHeader/jest.js +34 -0
- package/dist/PageHeader/vi.d.ts +6 -0
- package/dist/PageHeader/vi.js +28 -0
- package/dist/Pagination/index.d.ts +1 -0
- package/dist/Pagination/index.js +5 -0
- package/dist/Pagination/jest.js +28 -0
- package/dist/Pagination/vi.d.ts +10 -0
- package/dist/Pagination/vi.js +22 -0
- package/dist/Panel/index.d.ts +1 -0
- package/dist/Panel/index.js +5 -0
- package/dist/Panel/jest.js +21 -0
- package/dist/Panel/vi.d.ts +10 -0
- package/dist/Panel/vi.js +15 -0
- package/dist/PanelsResizer/index.d.ts +1 -0
- package/dist/PanelsResizer/index.js +5 -0
- package/dist/PanelsResizer/jest.js +21 -0
- package/dist/PanelsResizer/vi.d.ts +10 -0
- package/dist/PanelsResizer/vi.js +15 -0
- package/dist/Popconfirm/index.d.ts +1 -0
- package/dist/Popconfirm/index.js +5 -0
- package/dist/Popconfirm/jest.js +55 -0
- package/dist/Popconfirm/vi.d.ts +8 -0
- package/dist/Popconfirm/vi.js +49 -0
- package/dist/Popover/index.d.ts +1 -0
- package/dist/Popover/index.js +5 -0
- package/dist/Popover/jest.js +61 -0
- package/dist/Popover/vi.d.ts +28 -0
- package/dist/Popover/vi.js +55 -0
- package/dist/ProgressBar/index.d.ts +1 -0
- package/dist/ProgressBar/index.js +5 -0
- package/dist/ProgressBar/jest.js +62 -0
- package/dist/ProgressBar/vi.d.ts +20 -0
- package/dist/ProgressBar/vi.js +56 -0
- package/dist/Radio/index.d.ts +1 -0
- package/dist/Radio/index.js +5 -0
- package/dist/Radio/jest.js +77 -0
- package/dist/Radio/vi.d.ts +25 -0
- package/dist/Radio/vi.js +71 -0
- package/dist/Result/index.d.ts +1 -0
- package/dist/Result/index.js +5 -0
- package/dist/Result/jest.js +33 -0
- package/dist/Result/vi.d.ts +6 -0
- package/dist/Result/vi.js +27 -0
- package/dist/Search/index.d.ts +1 -0
- package/dist/Search/index.js +5 -0
- package/dist/Search/jest.js +85 -0
- package/dist/Search/vi.d.ts +37 -0
- package/dist/Search/vi.js +79 -0
- package/dist/SearchBar/index.d.ts +1 -0
- package/dist/SearchBar/index.js +5 -0
- package/dist/SearchBar/jest.js +30 -0
- package/dist/SearchBar/vi.d.ts +16 -0
- package/dist/SearchBar/vi.js +24 -0
- package/dist/SectionMessage/index.d.ts +1 -0
- package/dist/SectionMessage/index.js +5 -0
- package/dist/SectionMessage/jest.js +23 -0
- package/dist/SectionMessage/vi.d.ts +10 -0
- package/dist/SectionMessage/vi.js +17 -0
- package/dist/ShortCuts/index.d.ts +1 -0
- package/dist/ShortCuts/index.js +5 -0
- package/dist/ShortCuts/jest.js +21 -0
- package/dist/ShortCuts/vi.d.ts +10 -0
- package/dist/ShortCuts/vi.js +15 -0
- package/dist/Sidebar/index.d.ts +1 -0
- package/dist/Sidebar/index.js +4 -0
- package/dist/Sidebar/jest.js +29 -0
- package/dist/Sidebar/vi.d.ts +15 -0
- package/dist/Sidebar/vi.js +26 -0
- package/dist/SidebarObject/index.d.ts +1 -0
- package/dist/SidebarObject/index.js +5 -0
- package/dist/SidebarObject/jest.js +21 -0
- package/dist/SidebarObject/vi.d.ts +10 -0
- package/dist/SidebarObject/vi.js +15 -0
- package/dist/Skeleton/index.d.ts +1 -0
- package/dist/Skeleton/index.js +5 -0
- package/dist/Skeleton/jest.js +41 -0
- package/dist/Skeleton/vi.d.ts +14 -0
- package/dist/Skeleton/vi.js +35 -0
- package/dist/Slider/index.d.ts +1 -0
- package/dist/Slider/index.js +5 -0
- package/dist/Slider/jest.js +36 -0
- package/dist/Slider/vi.d.ts +25 -0
- package/dist/Slider/vi.js +30 -0
- package/dist/Sortable/index.d.ts +1 -0
- package/dist/Sortable/index.js +5 -0
- package/dist/Sortable/jest.js +49 -0
- package/dist/Sortable/vi.d.ts +22 -0
- package/dist/Sortable/vi.js +43 -0
- package/dist/Status/index.d.ts +1 -0
- package/dist/Status/index.js +5 -0
- package/dist/Status/jest.js +23 -0
- package/dist/Status/vi.d.ts +10 -0
- package/dist/Status/vi.js +17 -0
- package/dist/StepCard/index.d.ts +1 -0
- package/dist/StepCard/index.js +5 -0
- package/dist/StepCard/jest.js +25 -0
- package/dist/StepCard/vi.d.ts +10 -0
- package/dist/StepCard/vi.js +19 -0
- package/dist/Stepper/index.d.ts +1 -0
- package/dist/Stepper/index.js +5 -0
- package/dist/Stepper/jest.js +51 -0
- package/dist/Stepper/vi.d.ts +25 -0
- package/dist/Stepper/vi.js +45 -0
- package/dist/Subject/index.d.ts +1 -0
- package/dist/Subject/index.js +5 -0
- package/dist/Subject/jest.js +24 -0
- package/dist/Subject/vi.d.ts +10 -0
- package/dist/Subject/vi.js +18 -0
- package/dist/SubtleForm/index.d.ts +1 -0
- package/dist/SubtleForm/index.js +4 -0
- package/dist/SubtleForm/jest.js +35 -0
- package/dist/SubtleForm/vi.d.ts +14 -0
- package/dist/SubtleForm/vi.js +32 -0
- package/dist/Switch/index.d.ts +1 -0
- package/dist/Switch/index.js +5 -0
- package/dist/Switch/jest.js +37 -0
- package/dist/Switch/vi.d.ts +12 -0
- package/dist/Switch/vi.js +31 -0
- package/dist/TableNew/index.d.ts +1 -0
- package/dist/TableNew/index.js +5 -0
- package/dist/TableNew/jest.js +29 -0
- package/dist/TableNew/vi.d.ts +18 -0
- package/dist/TableNew/vi.js +23 -0
- package/dist/Tag/index.d.ts +1 -0
- package/dist/Tag/index.js +5 -0
- package/dist/Tag/jest.js +52 -0
- package/dist/Tag/vi.d.ts +28 -0
- package/dist/Tag/vi.js +46 -0
- package/dist/Tags/index.d.ts +1 -0
- package/dist/Tags/index.js +5 -0
- package/dist/Tags/jest.js +59 -0
- package/dist/Tags/vi.d.ts +37 -0
- package/dist/Tags/vi.js +53 -0
- package/dist/TimePicker/index.d.ts +1 -0
- package/dist/TimePicker/index.js +5 -0
- package/dist/TimePicker/jest.js +30 -0
- package/dist/TimePicker/vi.d.ts +24 -0
- package/dist/TimePicker/vi.js +24 -0
- package/dist/Toast/index.d.ts +1 -0
- package/dist/Toast/index.js +5 -0
- package/dist/Toast/jest.js +66 -0
- package/dist/Toast/vi.d.ts +35 -0
- package/dist/Toast/vi.js +60 -0
- package/dist/Toolbar/index.d.ts +1 -0
- package/dist/Toolbar/index.js +5 -0
- package/dist/Toolbar/jest.js +45 -0
- package/dist/Toolbar/vi.d.ts +33 -0
- package/dist/Toolbar/vi.js +39 -0
- package/dist/Tray/index.d.ts +1 -0
- package/dist/Tray/index.js +5 -0
- package/dist/Tray/jest.js +52 -0
- package/dist/Tray/vi.d.ts +29 -0
- package/dist/Tray/vi.js +46 -0
- package/dist/Typography/index.d.ts +1 -0
- package/dist/Typography/index.js +5 -0
- package/dist/Typography/jest.js +65 -0
- package/dist/Typography/vi.d.ts +20 -0
- package/dist/Typography/vi.js +59 -0
- package/dist/UnorderedList/index.d.ts +1 -0
- package/dist/UnorderedList/index.js +5 -0
- package/dist/UnorderedList/jest.js +25 -0
- package/dist/UnorderedList/vi.d.ts +10 -0
- package/dist/UnorderedList/vi.js +19 -0
- package/dist/Wizard/index.d.ts +1 -0
- package/dist/Wizard/index.js +5 -0
- package/dist/Wizard/jest.js +58 -0
- package/dist/Wizard/vi.d.ts +25 -0
- package/dist/Wizard/vi.js +52 -0
- package/dist/index.d.ts +99 -0
- package/dist/index.js +294 -1
- package/dist/jest.js +294 -1
- package/package.json +39 -39
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const pageHeaderMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
children,
|
|
5
|
+
className,
|
|
6
|
+
title,
|
|
7
|
+
description,
|
|
8
|
+
onClose,
|
|
9
|
+
rightSide,
|
|
10
|
+
"data-testid": dataTestId
|
|
11
|
+
}) => {
|
|
12
|
+
const testId = dataTestId || "ds-page-header";
|
|
13
|
+
return /* @__PURE__ */ jsxs("div", { className: `ds-page-header ${className || ""}`, "data-testid": testId, children: [
|
|
14
|
+
title && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-title`, children: title }),
|
|
15
|
+
description && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-description`, children: description }),
|
|
16
|
+
onClose && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-close`, onClick: onClose }),
|
|
17
|
+
rightSide && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-right-side`, children: rightSide }),
|
|
18
|
+
children
|
|
19
|
+
] });
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
const pageHeaderMinimalMockFactory = () => ({
|
|
23
|
+
default: vi.fn(() => null)
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
pageHeaderMinimalMockFactory,
|
|
27
|
+
pageHeaderMockFactory
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
const mockPagination = () => {
|
|
3
|
+
jest.mock("@synerise/ds-pagination", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
className,
|
|
7
|
+
current,
|
|
8
|
+
total,
|
|
9
|
+
pageSize,
|
|
10
|
+
onChange,
|
|
11
|
+
"data-testid": dataTestId
|
|
12
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-pagination ${className || ""}`, "data-testid": dataTestId || "ds-pagination", "data-current": current, "data-total": total, "data-page-size": pageSize, children: total !== void 0 && pageSize !== void 0 && onChange && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
13
|
+
/* @__PURE__ */ jsx("button", { "data-testid": `${dataTestId || "ds-pagination"}-prev`, onClick: () => onChange(Math.max(1, (current || 1) - 1), pageSize), disabled: current === 1, children: "Prev" }),
|
|
14
|
+
/* @__PURE__ */ jsx("span", { children: current }),
|
|
15
|
+
/* @__PURE__ */ jsx("button", { "data-testid": `${dataTestId || "ds-pagination"}-next`, onClick: () => onChange((current || 1) + 1, pageSize), disabled: current !== void 0 && total !== void 0 && current * pageSize >= total, children: "Next" })
|
|
16
|
+
] }) }))
|
|
17
|
+
}));
|
|
18
|
+
};
|
|
19
|
+
const mockPaginationMinimal = () => {
|
|
20
|
+
jest.mock("@synerise/ds-pagination", () => ({
|
|
21
|
+
__esModule: true,
|
|
22
|
+
default: jest.fn(() => null)
|
|
23
|
+
}));
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
mockPagination,
|
|
27
|
+
mockPaginationMinimal
|
|
28
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PaginationProps } from 'antd/lib/pagination';
|
|
2
|
+
export type MockPaginationProps = PaginationProps & {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const paginationMockFactory: () => {
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
export declare const paginationMinimalMockFactory: () => {
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
const paginationMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
className,
|
|
5
|
+
current,
|
|
6
|
+
total,
|
|
7
|
+
pageSize,
|
|
8
|
+
onChange,
|
|
9
|
+
"data-testid": dataTestId
|
|
10
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-pagination ${className || ""}`, "data-testid": dataTestId || "ds-pagination", "data-current": current, "data-total": total, "data-page-size": pageSize, children: total !== void 0 && pageSize !== void 0 && onChange && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11
|
+
/* @__PURE__ */ jsx("button", { "data-testid": `${dataTestId || "ds-pagination"}-prev`, onClick: () => onChange(Math.max(1, (current || 1) - 1), pageSize), disabled: current === 1, children: "Prev" }),
|
|
12
|
+
/* @__PURE__ */ jsx("span", { children: current }),
|
|
13
|
+
/* @__PURE__ */ jsx("button", { "data-testid": `${dataTestId || "ds-pagination"}-next`, onClick: () => onChange((current || 1) + 1, pageSize), disabled: current !== void 0 && total !== void 0 && current * pageSize >= total, children: "Next" })
|
|
14
|
+
] }) }))
|
|
15
|
+
});
|
|
16
|
+
const paginationMinimalMockFactory = () => ({
|
|
17
|
+
default: vi.fn(() => null)
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
paginationMinimalMockFactory,
|
|
21
|
+
paginationMockFactory
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockPanel = () => {
|
|
3
|
+
jest.mock("@synerise/ds-panel", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
children,
|
|
7
|
+
className,
|
|
8
|
+
"data-testid": dataTestId
|
|
9
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-panel ${className || ""}`, "data-testid": dataTestId || "ds-panel", children }))
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
const mockPanelMinimal = () => {
|
|
13
|
+
jest.mock("@synerise/ds-panel", () => ({
|
|
14
|
+
__esModule: true,
|
|
15
|
+
default: jest.fn(() => null)
|
|
16
|
+
}));
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
mockPanel,
|
|
20
|
+
mockPanelMinimal
|
|
21
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PanelProps } from '@synerise/ds-panel';
|
|
2
|
+
export type MockPanelProps = PanelProps & {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const panelMockFactory: () => {
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
export declare const panelMinimalMockFactory: () => {
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
package/dist/Panel/vi.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const panelMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
children,
|
|
5
|
+
className,
|
|
6
|
+
"data-testid": dataTestId
|
|
7
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-panel ${className || ""}`, "data-testid": dataTestId || "ds-panel", children }))
|
|
8
|
+
});
|
|
9
|
+
const panelMinimalMockFactory = () => ({
|
|
10
|
+
default: vi.fn(() => null)
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
panelMinimalMockFactory,
|
|
14
|
+
panelMockFactory
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockPanelsResizer = () => {
|
|
3
|
+
jest.mock("@synerise/ds-panels-resizer", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
children,
|
|
7
|
+
className,
|
|
8
|
+
"data-testid": dataTestId
|
|
9
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-panels-resizer ${className || ""}`, "data-testid": dataTestId || "ds-panels-resizer", children }))
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
const mockPanelsResizerMinimal = () => {
|
|
13
|
+
jest.mock("@synerise/ds-panels-resizer", () => ({
|
|
14
|
+
__esModule: true,
|
|
15
|
+
default: jest.fn(() => null)
|
|
16
|
+
}));
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
mockPanelsResizer,
|
|
20
|
+
mockPanelsResizerMinimal
|
|
21
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PanelsResizerProps } from '@synerise/ds-panels-resizer';
|
|
2
|
+
export type MockPanelsResizerProps = PanelsResizerProps & {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const panelsResizerMockFactory: () => {
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
export declare const panelsResizerMinimalMockFactory: () => {
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const panelsResizerMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
children,
|
|
5
|
+
className,
|
|
6
|
+
"data-testid": dataTestId
|
|
7
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-panels-resizer ${className || ""}`, "data-testid": dataTestId || "ds-panels-resizer", children }))
|
|
8
|
+
});
|
|
9
|
+
const panelsResizerMinimalMockFactory = () => ({
|
|
10
|
+
default: vi.fn(() => null)
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
panelsResizerMinimalMockFactory,
|
|
14
|
+
panelsResizerMockFactory
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
+
const mockPopconfirm = () => {
|
|
3
|
+
jest.mock("@synerise/ds-popconfirm", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
children,
|
|
7
|
+
title,
|
|
8
|
+
description,
|
|
9
|
+
okText,
|
|
10
|
+
cancelText,
|
|
11
|
+
onConfirm,
|
|
12
|
+
onCancel,
|
|
13
|
+
disabled,
|
|
14
|
+
open,
|
|
15
|
+
"data-testid": dataTestId
|
|
16
|
+
}) => {
|
|
17
|
+
if (disabled) {
|
|
18
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
19
|
+
}
|
|
20
|
+
const testId = dataTestId || "ds-popconfirm";
|
|
21
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, children: [
|
|
22
|
+
children,
|
|
23
|
+
open !== false && /* @__PURE__ */ jsxs("div", { "data-testid": `${testId}-content`, children: [
|
|
24
|
+
title && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-title`, children: title }),
|
|
25
|
+
description && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-description`, children: description }),
|
|
26
|
+
cancelText && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-cancel`, onClick: onCancel, children: cancelText }),
|
|
27
|
+
okText && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-ok`, onClick: onConfirm, children: okText })
|
|
28
|
+
] })
|
|
29
|
+
] });
|
|
30
|
+
}),
|
|
31
|
+
ConfirmMessage: jest.fn(({
|
|
32
|
+
children,
|
|
33
|
+
title: _title,
|
|
34
|
+
onClick,
|
|
35
|
+
"data-testid": dataTestId
|
|
36
|
+
}) => {
|
|
37
|
+
const testId = dataTestId || "ds-confirm-message";
|
|
38
|
+
return /* @__PURE__ */ jsx("div", { "data-testid": testId, onClick: () => onClick?.(() => {
|
|
39
|
+
}), children });
|
|
40
|
+
})
|
|
41
|
+
}));
|
|
42
|
+
};
|
|
43
|
+
const mockPopconfirmMinimal = () => {
|
|
44
|
+
jest.mock("@synerise/ds-popconfirm", () => ({
|
|
45
|
+
__esModule: true,
|
|
46
|
+
default: jest.fn(({
|
|
47
|
+
children
|
|
48
|
+
}) => /* @__PURE__ */ jsx(Fragment, { children })),
|
|
49
|
+
ConfirmMessage: jest.fn(() => null)
|
|
50
|
+
}));
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
mockPopconfirm,
|
|
54
|
+
mockPopconfirmMinimal
|
|
55
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
+
const popconfirmMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
children,
|
|
5
|
+
title,
|
|
6
|
+
description,
|
|
7
|
+
okText,
|
|
8
|
+
cancelText,
|
|
9
|
+
onConfirm,
|
|
10
|
+
onCancel,
|
|
11
|
+
disabled,
|
|
12
|
+
open,
|
|
13
|
+
"data-testid": dataTestId
|
|
14
|
+
}) => {
|
|
15
|
+
if (disabled) {
|
|
16
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
17
|
+
}
|
|
18
|
+
const testId = dataTestId || "ds-popconfirm";
|
|
19
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, children: [
|
|
20
|
+
children,
|
|
21
|
+
open !== false && /* @__PURE__ */ jsxs("div", { "data-testid": `${testId}-content`, children: [
|
|
22
|
+
title && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-title`, children: title }),
|
|
23
|
+
description && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-description`, children: description }),
|
|
24
|
+
cancelText && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-cancel`, onClick: onCancel, children: cancelText }),
|
|
25
|
+
okText && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-ok`, onClick: onConfirm, children: okText })
|
|
26
|
+
] })
|
|
27
|
+
] });
|
|
28
|
+
}),
|
|
29
|
+
ConfirmMessage: vi.fn(({
|
|
30
|
+
children,
|
|
31
|
+
title: _title,
|
|
32
|
+
onClick,
|
|
33
|
+
"data-testid": dataTestId
|
|
34
|
+
}) => {
|
|
35
|
+
const testId = dataTestId || "ds-confirm-message";
|
|
36
|
+
return /* @__PURE__ */ jsx("div", { "data-testid": testId, onClick: () => onClick?.(() => {
|
|
37
|
+
}), children });
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
const popconfirmMinimalMockFactory = () => ({
|
|
41
|
+
default: vi.fn(({
|
|
42
|
+
children
|
|
43
|
+
}) => /* @__PURE__ */ jsx(Fragment, { children })),
|
|
44
|
+
ConfirmMessage: vi.fn(() => null)
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
popconfirmMinimalMockFactory,
|
|
48
|
+
popconfirmMockFactory
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
const mockPopover = () => {
|
|
3
|
+
jest.mock("@synerise/ds-popover", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
children,
|
|
7
|
+
"data-testid": dataTestId
|
|
8
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-popover", children })),
|
|
9
|
+
Popover: jest.fn(({
|
|
10
|
+
children,
|
|
11
|
+
"data-testid": dataTestId
|
|
12
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-popover", children })),
|
|
13
|
+
PopoverTrigger: jest.fn(({
|
|
14
|
+
children,
|
|
15
|
+
"data-testid": dataTestId
|
|
16
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-popover-trigger", children })),
|
|
17
|
+
PopoverContent: jest.fn(({
|
|
18
|
+
children,
|
|
19
|
+
className,
|
|
20
|
+
"data-testid": dataTestId
|
|
21
|
+
}) => /* @__PURE__ */ jsx("div", { className, "data-testid": dataTestId || "ds-popover-content", children })),
|
|
22
|
+
PopoverArrow: jest.fn(() => /* @__PURE__ */ jsx("div", { "data-testid": "ds-popover-arrow" })),
|
|
23
|
+
PopoverClose: jest.fn(({
|
|
24
|
+
children,
|
|
25
|
+
"data-testid": dataTestId
|
|
26
|
+
}) => /* @__PURE__ */ jsx("button", { "data-testid": dataTestId || "ds-popover-close", children })),
|
|
27
|
+
FloatingDelayGroup: jest.fn(({
|
|
28
|
+
children
|
|
29
|
+
}) => /* @__PURE__ */ jsx(Fragment, { children })),
|
|
30
|
+
limitShift: jest.fn(() => ({})),
|
|
31
|
+
getPlacement: jest.fn((placement) => placement),
|
|
32
|
+
HOVER_OPEN_DELAY: 100,
|
|
33
|
+
HOVER_CLOSE_DELAY: 100,
|
|
34
|
+
PLACEMENT_MAP: {}
|
|
35
|
+
}));
|
|
36
|
+
};
|
|
37
|
+
const mockPopoverMinimal = () => {
|
|
38
|
+
jest.mock("@synerise/ds-popover", () => ({
|
|
39
|
+
__esModule: true,
|
|
40
|
+
default: jest.fn(() => null),
|
|
41
|
+
Popover: jest.fn(() => null),
|
|
42
|
+
PopoverTrigger: jest.fn(({
|
|
43
|
+
children
|
|
44
|
+
}) => /* @__PURE__ */ jsx(Fragment, { children })),
|
|
45
|
+
PopoverContent: jest.fn(() => null),
|
|
46
|
+
PopoverArrow: jest.fn(() => null),
|
|
47
|
+
PopoverClose: jest.fn(() => null),
|
|
48
|
+
FloatingDelayGroup: jest.fn(({
|
|
49
|
+
children
|
|
50
|
+
}) => /* @__PURE__ */ jsx(Fragment, { children })),
|
|
51
|
+
limitShift: jest.fn(() => ({})),
|
|
52
|
+
getPlacement: jest.fn((placement) => placement),
|
|
53
|
+
HOVER_OPEN_DELAY: 100,
|
|
54
|
+
HOVER_CLOSE_DELAY: 100,
|
|
55
|
+
PLACEMENT_MAP: {}
|
|
56
|
+
}));
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
mockPopover,
|
|
60
|
+
mockPopoverMinimal
|
|
61
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const popoverMockFactory: () => {
|
|
2
|
+
default: any;
|
|
3
|
+
Popover: any;
|
|
4
|
+
PopoverTrigger: any;
|
|
5
|
+
PopoverContent: any;
|
|
6
|
+
PopoverArrow: any;
|
|
7
|
+
PopoverClose: any;
|
|
8
|
+
FloatingDelayGroup: any;
|
|
9
|
+
limitShift: any;
|
|
10
|
+
getPlacement: any;
|
|
11
|
+
HOVER_OPEN_DELAY: number;
|
|
12
|
+
HOVER_CLOSE_DELAY: number;
|
|
13
|
+
PLACEMENT_MAP: {};
|
|
14
|
+
};
|
|
15
|
+
export declare const popoverMinimalMockFactory: () => {
|
|
16
|
+
default: any;
|
|
17
|
+
Popover: any;
|
|
18
|
+
PopoverTrigger: any;
|
|
19
|
+
PopoverContent: any;
|
|
20
|
+
PopoverArrow: any;
|
|
21
|
+
PopoverClose: any;
|
|
22
|
+
FloatingDelayGroup: any;
|
|
23
|
+
limitShift: any;
|
|
24
|
+
getPlacement: any;
|
|
25
|
+
HOVER_OPEN_DELAY: number;
|
|
26
|
+
HOVER_CLOSE_DELAY: number;
|
|
27
|
+
PLACEMENT_MAP: {};
|
|
28
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
const popoverMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
children,
|
|
5
|
+
"data-testid": dataTestId
|
|
6
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-popover", children })),
|
|
7
|
+
Popover: vi.fn(({
|
|
8
|
+
children,
|
|
9
|
+
"data-testid": dataTestId
|
|
10
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-popover", children })),
|
|
11
|
+
PopoverTrigger: vi.fn(({
|
|
12
|
+
children,
|
|
13
|
+
"data-testid": dataTestId
|
|
14
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-popover-trigger", children })),
|
|
15
|
+
PopoverContent: vi.fn(({
|
|
16
|
+
children,
|
|
17
|
+
className,
|
|
18
|
+
"data-testid": dataTestId
|
|
19
|
+
}) => /* @__PURE__ */ jsx("div", { className, "data-testid": dataTestId || "ds-popover-content", children })),
|
|
20
|
+
PopoverArrow: vi.fn(() => /* @__PURE__ */ jsx("div", { "data-testid": "ds-popover-arrow" })),
|
|
21
|
+
PopoverClose: vi.fn(({
|
|
22
|
+
children,
|
|
23
|
+
"data-testid": dataTestId
|
|
24
|
+
}) => /* @__PURE__ */ jsx("button", { "data-testid": dataTestId || "ds-popover-close", children })),
|
|
25
|
+
FloatingDelayGroup: vi.fn(({
|
|
26
|
+
children
|
|
27
|
+
}) => /* @__PURE__ */ jsx(Fragment, { children })),
|
|
28
|
+
limitShift: vi.fn(() => ({})),
|
|
29
|
+
getPlacement: vi.fn((placement) => placement),
|
|
30
|
+
HOVER_OPEN_DELAY: 100,
|
|
31
|
+
HOVER_CLOSE_DELAY: 100,
|
|
32
|
+
PLACEMENT_MAP: {}
|
|
33
|
+
});
|
|
34
|
+
const popoverMinimalMockFactory = () => ({
|
|
35
|
+
default: vi.fn(() => null),
|
|
36
|
+
Popover: vi.fn(() => null),
|
|
37
|
+
PopoverTrigger: vi.fn(({
|
|
38
|
+
children
|
|
39
|
+
}) => /* @__PURE__ */ jsx(Fragment, { children })),
|
|
40
|
+
PopoverContent: vi.fn(() => null),
|
|
41
|
+
PopoverArrow: vi.fn(() => null),
|
|
42
|
+
PopoverClose: vi.fn(() => null),
|
|
43
|
+
FloatingDelayGroup: vi.fn(({
|
|
44
|
+
children
|
|
45
|
+
}) => /* @__PURE__ */ jsx(Fragment, { children })),
|
|
46
|
+
limitShift: vi.fn(() => ({})),
|
|
47
|
+
getPlacement: vi.fn((placement) => placement),
|
|
48
|
+
HOVER_OPEN_DELAY: 100,
|
|
49
|
+
HOVER_CLOSE_DELAY: 100,
|
|
50
|
+
PLACEMENT_MAP: {}
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
popoverMinimalMockFactory,
|
|
54
|
+
popoverMockFactory
|
|
55
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockProgressBar = () => {
|
|
3
|
+
jest.mock("@synerise/ds-progress-bar", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
className,
|
|
7
|
+
percent,
|
|
8
|
+
label,
|
|
9
|
+
description,
|
|
10
|
+
steps,
|
|
11
|
+
"data-testid": dataTestId
|
|
12
|
+
}) => {
|
|
13
|
+
const testId = dataTestId || "ds-progress-bar";
|
|
14
|
+
return /* @__PURE__ */ jsxs("div", { className: `ds-progress-bar ${className || ""}`, "data-testid": testId, "data-percent": percent, "data-steps": steps, children: [
|
|
15
|
+
label && /* @__PURE__ */ jsx("span", { "data-testid": `${testId}-label`, children: label }),
|
|
16
|
+
/* @__PURE__ */ jsx("div", { "data-testid": `${testId}-bar`, style: {
|
|
17
|
+
width: `${percent}%`
|
|
18
|
+
} }),
|
|
19
|
+
description && /* @__PURE__ */ jsx("span", { "data-testid": `${testId}-description`, children: description })
|
|
20
|
+
] });
|
|
21
|
+
}),
|
|
22
|
+
Multivalue: jest.fn(({
|
|
23
|
+
values,
|
|
24
|
+
stackedBars,
|
|
25
|
+
"data-testid": dataTestId
|
|
26
|
+
}) => {
|
|
27
|
+
const testId = dataTestId || "ds-progress-bar-multivalue";
|
|
28
|
+
return /* @__PURE__ */ jsx("div", { "data-testid": testId, "data-stacked": stackedBars, className: "ds-progress-bar-multivalue", children: values?.map((val, i) => /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-bar-${i}`, "data-percent": val.percent, "data-color": val.color, style: {
|
|
29
|
+
width: `${val.percent}%`,
|
|
30
|
+
backgroundColor: val.color
|
|
31
|
+
}, onClick: val.onClick }, i)) });
|
|
32
|
+
}),
|
|
33
|
+
ProgressTiles: jest.fn(({
|
|
34
|
+
colors,
|
|
35
|
+
percent,
|
|
36
|
+
label,
|
|
37
|
+
tileWidth,
|
|
38
|
+
"data-testid": dataTestId
|
|
39
|
+
}) => {
|
|
40
|
+
const testId = dataTestId || "ds-progress-tiles";
|
|
41
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, "data-percent": percent, className: "ds-progress-tiles", children: [
|
|
42
|
+
label && /* @__PURE__ */ jsx("span", { "data-testid": `${testId}-label`, children: label }),
|
|
43
|
+
colors?.map((color, i) => /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-tile-${i}`, style: {
|
|
44
|
+
width: tileWidth,
|
|
45
|
+
backgroundColor: color
|
|
46
|
+
} }, i))
|
|
47
|
+
] });
|
|
48
|
+
})
|
|
49
|
+
}));
|
|
50
|
+
};
|
|
51
|
+
const mockProgressBarMinimal = () => {
|
|
52
|
+
jest.mock("@synerise/ds-progress-bar", () => ({
|
|
53
|
+
__esModule: true,
|
|
54
|
+
default: jest.fn(() => null),
|
|
55
|
+
Multivalue: jest.fn(() => null),
|
|
56
|
+
ProgressTiles: jest.fn(() => null)
|
|
57
|
+
}));
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
mockProgressBar,
|
|
61
|
+
mockProgressBarMinimal
|
|
62
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MultivalueProps, ProgressProps, ProgressTilesProps } from '@synerise/ds-progress-bar';
|
|
2
|
+
export type MockProgressBarProps = ProgressProps & {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
};
|
|
5
|
+
export type MockMultivalueProps = MultivalueProps & {
|
|
6
|
+
'data-testid'?: string;
|
|
7
|
+
};
|
|
8
|
+
export type MockProgressTilesProps = ProgressTilesProps & {
|
|
9
|
+
'data-testid'?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const progressBarMockFactory: () => {
|
|
12
|
+
default: any;
|
|
13
|
+
Multivalue: any;
|
|
14
|
+
ProgressTiles: any;
|
|
15
|
+
};
|
|
16
|
+
export declare const progressBarMinimalMockFactory: () => {
|
|
17
|
+
default: any;
|
|
18
|
+
Multivalue: any;
|
|
19
|
+
ProgressTiles: any;
|
|
20
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const progressBarMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
className,
|
|
5
|
+
percent,
|
|
6
|
+
label,
|
|
7
|
+
description,
|
|
8
|
+
steps,
|
|
9
|
+
"data-testid": dataTestId
|
|
10
|
+
}) => {
|
|
11
|
+
const testId = dataTestId || "ds-progress-bar";
|
|
12
|
+
return /* @__PURE__ */ jsxs("div", { className: `ds-progress-bar ${className || ""}`, "data-testid": testId, "data-percent": percent, "data-steps": steps, children: [
|
|
13
|
+
label && /* @__PURE__ */ jsx("span", { "data-testid": `${testId}-label`, children: label }),
|
|
14
|
+
/* @__PURE__ */ jsx("div", { "data-testid": `${testId}-bar`, style: {
|
|
15
|
+
width: `${percent}%`
|
|
16
|
+
} }),
|
|
17
|
+
description && /* @__PURE__ */ jsx("span", { "data-testid": `${testId}-description`, children: description })
|
|
18
|
+
] });
|
|
19
|
+
}),
|
|
20
|
+
Multivalue: vi.fn(({
|
|
21
|
+
values,
|
|
22
|
+
stackedBars,
|
|
23
|
+
"data-testid": dataTestId
|
|
24
|
+
}) => {
|
|
25
|
+
const testId = dataTestId || "ds-progress-bar-multivalue";
|
|
26
|
+
return /* @__PURE__ */ jsx("div", { "data-testid": testId, "data-stacked": stackedBars, className: "ds-progress-bar-multivalue", children: values?.map((val, i) => /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-bar-${i}`, "data-percent": val.percent, "data-color": val.color, style: {
|
|
27
|
+
width: `${val.percent}%`,
|
|
28
|
+
backgroundColor: val.color
|
|
29
|
+
}, onClick: val.onClick }, i)) });
|
|
30
|
+
}),
|
|
31
|
+
ProgressTiles: vi.fn(({
|
|
32
|
+
colors,
|
|
33
|
+
percent,
|
|
34
|
+
label,
|
|
35
|
+
tileWidth,
|
|
36
|
+
"data-testid": dataTestId
|
|
37
|
+
}) => {
|
|
38
|
+
const testId = dataTestId || "ds-progress-tiles";
|
|
39
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, "data-percent": percent, className: "ds-progress-tiles", children: [
|
|
40
|
+
label && /* @__PURE__ */ jsx("span", { "data-testid": `${testId}-label`, children: label }),
|
|
41
|
+
colors?.map((color, i) => /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-tile-${i}`, style: {
|
|
42
|
+
width: tileWidth,
|
|
43
|
+
backgroundColor: color
|
|
44
|
+
} }, i))
|
|
45
|
+
] });
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
const progressBarMinimalMockFactory = () => ({
|
|
49
|
+
default: vi.fn(() => null),
|
|
50
|
+
Multivalue: vi.fn(() => null),
|
|
51
|
+
ProgressTiles: vi.fn(() => null)
|
|
52
|
+
});
|
|
53
|
+
export {
|
|
54
|
+
progressBarMinimalMockFactory,
|
|
55
|
+
progressBarMockFactory
|
|
56
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|