@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,38 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockFlexBox = () => {
|
|
3
|
+
jest.mock("@synerise/ds-flex-box", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
...jest.requireActual("@synerise/ds-flex-box"),
|
|
6
|
+
Flex: jest.fn(({
|
|
7
|
+
children,
|
|
8
|
+
className,
|
|
9
|
+
alignItems,
|
|
10
|
+
justifyContent,
|
|
11
|
+
flexDirection,
|
|
12
|
+
flexWrap,
|
|
13
|
+
"data-testid": dataTestId
|
|
14
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-flex ${className || ""}`, "data-testid": dataTestId || "ds-flex", style: {
|
|
15
|
+
display: "flex",
|
|
16
|
+
alignItems,
|
|
17
|
+
justifyContent,
|
|
18
|
+
flexDirection,
|
|
19
|
+
flexWrap
|
|
20
|
+
}, children })),
|
|
21
|
+
Box: jest.fn(({
|
|
22
|
+
children,
|
|
23
|
+
className,
|
|
24
|
+
"data-testid": dataTestId
|
|
25
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-box ${className || ""}`, "data-testid": dataTestId || "ds-box", children }))
|
|
26
|
+
}));
|
|
27
|
+
};
|
|
28
|
+
const mockFlexBoxMinimal = () => {
|
|
29
|
+
jest.mock("@synerise/ds-flex-box", () => ({
|
|
30
|
+
__esModule: true,
|
|
31
|
+
Flex: jest.fn(() => null),
|
|
32
|
+
Box: jest.fn(() => null)
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
mockFlexBox,
|
|
37
|
+
mockFlexBoxMinimal
|
|
38
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const flexBoxMockFactory = async () => {
|
|
3
|
+
const original = await vi.importActual("@synerise/ds-flex-box");
|
|
4
|
+
return {
|
|
5
|
+
...original,
|
|
6
|
+
Flex: vi.fn(({
|
|
7
|
+
children,
|
|
8
|
+
className,
|
|
9
|
+
alignItems,
|
|
10
|
+
justifyContent,
|
|
11
|
+
flexDirection,
|
|
12
|
+
flexWrap,
|
|
13
|
+
"data-testid": dataTestId
|
|
14
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-flex ${className || ""}`, "data-testid": dataTestId || "ds-flex", style: {
|
|
15
|
+
display: "flex",
|
|
16
|
+
alignItems,
|
|
17
|
+
justifyContent,
|
|
18
|
+
flexDirection,
|
|
19
|
+
flexWrap
|
|
20
|
+
}, children })),
|
|
21
|
+
Box: vi.fn(({
|
|
22
|
+
children,
|
|
23
|
+
className,
|
|
24
|
+
"data-testid": dataTestId
|
|
25
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-box ${className || ""}`, "data-testid": dataTestId || "ds-box", children }))
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
const flexBoxMinimalMockFactory = () => ({
|
|
29
|
+
Flex: vi.fn(() => null),
|
|
30
|
+
Box: vi.fn(() => null)
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
flexBoxMinimalMockFactory,
|
|
34
|
+
flexBoxMockFactory
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockFooter = () => {
|
|
3
|
+
jest.mock("@synerise/ds-footer", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
children,
|
|
7
|
+
className,
|
|
8
|
+
"data-testid": dataTestId
|
|
9
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-footer ${className || ""}`, "data-testid": dataTestId || "ds-footer", children }))
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
const mockFooterMinimal = () => {
|
|
13
|
+
jest.mock("@synerise/ds-footer", () => ({
|
|
14
|
+
__esModule: true,
|
|
15
|
+
default: jest.fn(() => null)
|
|
16
|
+
}));
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
mockFooter,
|
|
20
|
+
mockFooterMinimal
|
|
21
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FooterProps } from '@synerise/ds-footer';
|
|
2
|
+
export type MockFooterProps = FooterProps & {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const footerMockFactory: () => {
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
export declare const footerMinimalMockFactory: () => {
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const footerMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
children,
|
|
5
|
+
className,
|
|
6
|
+
"data-testid": dataTestId
|
|
7
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-footer ${className || ""}`, "data-testid": dataTestId || "ds-footer", children }))
|
|
8
|
+
});
|
|
9
|
+
const footerMinimalMockFactory = () => ({
|
|
10
|
+
default: vi.fn(() => null)
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
footerMinimalMockFactory,
|
|
14
|
+
footerMockFactory
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockFormField = () => {
|
|
3
|
+
jest.mock("@synerise/ds-form-field", () => {
|
|
4
|
+
const FormField = jest.fn(({
|
|
5
|
+
children,
|
|
6
|
+
className,
|
|
7
|
+
label,
|
|
8
|
+
errorText,
|
|
9
|
+
description,
|
|
10
|
+
tooltip,
|
|
11
|
+
"data-testid": dataTestId
|
|
12
|
+
}) => {
|
|
13
|
+
const testId = dataTestId || "ds-form-field";
|
|
14
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, className, children: [
|
|
15
|
+
label && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-label`, children: label }),
|
|
16
|
+
tooltip && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-tooltip`, children: tooltip }),
|
|
17
|
+
description && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-description`, children: description }),
|
|
18
|
+
children,
|
|
19
|
+
errorText && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-error`, children: errorText })
|
|
20
|
+
] });
|
|
21
|
+
});
|
|
22
|
+
const FormFieldLabel = jest.fn(({
|
|
23
|
+
children,
|
|
24
|
+
className,
|
|
25
|
+
htmlFor,
|
|
26
|
+
"data-testid": dataTestId
|
|
27
|
+
}) => /* @__PURE__ */ jsx("label", { "data-testid": dataTestId || "ds-form-field-label", className, htmlFor, children }));
|
|
28
|
+
const ContentAboveElement = jest.fn(({
|
|
29
|
+
children,
|
|
30
|
+
"data-testid": dataTestId
|
|
31
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-content-above", children }));
|
|
32
|
+
const ContentBelowElement = jest.fn(({
|
|
33
|
+
children,
|
|
34
|
+
"data-testid": dataTestId
|
|
35
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-content-below", children }));
|
|
36
|
+
return {
|
|
37
|
+
__esModule: true,
|
|
38
|
+
default: FormField,
|
|
39
|
+
FormFieldLabel,
|
|
40
|
+
ContentAboveElement,
|
|
41
|
+
ContentBelowElement
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
const mockFormFieldMinimal = () => {
|
|
46
|
+
jest.mock("@synerise/ds-form-field", () => ({
|
|
47
|
+
__esModule: true,
|
|
48
|
+
default: jest.fn(() => null),
|
|
49
|
+
FormFieldLabel: jest.fn(() => null),
|
|
50
|
+
ContentAboveElement: jest.fn(() => null),
|
|
51
|
+
ContentBelowElement: jest.fn(() => null)
|
|
52
|
+
}));
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
mockFormField,
|
|
56
|
+
mockFormFieldMinimal
|
|
57
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Factory function for FormField mock.
|
|
3
|
+
* Mocks the entire @synerise/ds-form-field package including FormField, FormFieldLabel,
|
|
4
|
+
* ContentAboveElement, and ContentBelowElement.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import { formFieldMockFactory } from '@synerise/ds-mocks/FormField/vi';
|
|
9
|
+
*
|
|
10
|
+
* vi.mock('@synerise/ds-form-field', formFieldMockFactory);
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare const formFieldMockFactory: () => {
|
|
14
|
+
default: any;
|
|
15
|
+
FormFieldLabel: any;
|
|
16
|
+
ContentAboveElement: any;
|
|
17
|
+
ContentBelowElement: any;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Factory function for minimal FormField mock.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```typescript
|
|
24
|
+
* vi.mock('@synerise/ds-form-field', formFieldMinimalMockFactory);
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const formFieldMinimalMockFactory: () => {
|
|
28
|
+
default: any;
|
|
29
|
+
FormFieldLabel: any;
|
|
30
|
+
ContentAboveElement: any;
|
|
31
|
+
ContentBelowElement: any;
|
|
32
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const formFieldMockFactory = () => {
|
|
3
|
+
const FormField = vi.fn(({
|
|
4
|
+
children,
|
|
5
|
+
className,
|
|
6
|
+
label,
|
|
7
|
+
errorText,
|
|
8
|
+
description,
|
|
9
|
+
tooltip,
|
|
10
|
+
"data-testid": dataTestId
|
|
11
|
+
}) => {
|
|
12
|
+
const testId = dataTestId || "ds-form-field";
|
|
13
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, className, children: [
|
|
14
|
+
label && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-label`, children: label }),
|
|
15
|
+
tooltip && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-tooltip`, children: tooltip }),
|
|
16
|
+
description && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-description`, children: description }),
|
|
17
|
+
children,
|
|
18
|
+
errorText && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-error`, children: errorText })
|
|
19
|
+
] });
|
|
20
|
+
});
|
|
21
|
+
const FormFieldLabel = vi.fn(({
|
|
22
|
+
children,
|
|
23
|
+
className,
|
|
24
|
+
htmlFor,
|
|
25
|
+
"data-testid": dataTestId
|
|
26
|
+
}) => /* @__PURE__ */ jsx("label", { "data-testid": dataTestId || "ds-form-field-label", className, htmlFor, children }));
|
|
27
|
+
const ContentAboveElement = vi.fn(({
|
|
28
|
+
children,
|
|
29
|
+
"data-testid": dataTestId
|
|
30
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-content-above", children }));
|
|
31
|
+
const ContentBelowElement = vi.fn(({
|
|
32
|
+
children,
|
|
33
|
+
"data-testid": dataTestId
|
|
34
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-content-below", children }));
|
|
35
|
+
return {
|
|
36
|
+
default: FormField,
|
|
37
|
+
FormFieldLabel,
|
|
38
|
+
ContentAboveElement,
|
|
39
|
+
ContentBelowElement
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
const formFieldMinimalMockFactory = () => ({
|
|
43
|
+
default: vi.fn(() => null),
|
|
44
|
+
FormFieldLabel: vi.fn(() => null),
|
|
45
|
+
ContentAboveElement: vi.fn(() => null),
|
|
46
|
+
ContentBelowElement: vi.fn(() => null)
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
formFieldMinimalMockFactory,
|
|
50
|
+
formFieldMockFactory
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockFormatPicker = () => {
|
|
3
|
+
jest.mock("@synerise/ds-format-picker", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
children,
|
|
7
|
+
className,
|
|
8
|
+
value,
|
|
9
|
+
onChange,
|
|
10
|
+
"data-testid": dataTestId
|
|
11
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-format-picker ${className || ""}`, "data-testid": dataTestId || "ds-format-picker", "data-value": value, onClick: () => onChange?.(value), children }))
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
14
|
+
const mockFormatPickerMinimal = () => {
|
|
15
|
+
jest.mock("@synerise/ds-format-picker", () => ({
|
|
16
|
+
__esModule: true,
|
|
17
|
+
default: jest.fn(() => null)
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
mockFormatPicker,
|
|
22
|
+
mockFormatPickerMinimal
|
|
23
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FormatPickerProps } from '@synerise/ds-format-picker';
|
|
2
|
+
export type MockFormatPickerProps = FormatPickerProps & {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const formatPickerMockFactory: () => {
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
export declare const formatPickerMinimalMockFactory: () => {
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const formatPickerMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
children,
|
|
5
|
+
className,
|
|
6
|
+
value,
|
|
7
|
+
onChange,
|
|
8
|
+
"data-testid": dataTestId
|
|
9
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-format-picker ${className || ""}`, "data-testid": dataTestId || "ds-format-picker", "data-value": value, onClick: () => onChange?.(value), children }))
|
|
10
|
+
});
|
|
11
|
+
const formatPickerMinimalMockFactory = () => ({
|
|
12
|
+
default: vi.fn(() => null)
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
formatPickerMinimalMockFactory,
|
|
16
|
+
formatPickerMockFactory
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockGrid = () => {
|
|
3
|
+
jest.mock("@synerise/ds-grid", () => {
|
|
4
|
+
const Item = jest.fn(({
|
|
5
|
+
children,
|
|
6
|
+
span,
|
|
7
|
+
"data-testid": dataTestId
|
|
8
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-grid-item", "data-span": span, className: "ds-grid-item", children }));
|
|
9
|
+
const Grid = Object.assign(jest.fn(({
|
|
10
|
+
children,
|
|
11
|
+
className,
|
|
12
|
+
columns,
|
|
13
|
+
"data-testid": dataTestId
|
|
14
|
+
}) => {
|
|
15
|
+
const testId = dataTestId || "ds-grid";
|
|
16
|
+
return /* @__PURE__ */ jsx("div", { "data-testid": testId, className: `ds-grid ${className || ""}`, "data-columns": columns, children });
|
|
17
|
+
}), {
|
|
18
|
+
Item
|
|
19
|
+
});
|
|
20
|
+
return {
|
|
21
|
+
__esModule: true,
|
|
22
|
+
default: Grid
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const mockGridMinimal = () => {
|
|
27
|
+
jest.mock("@synerise/ds-grid", () => {
|
|
28
|
+
const Grid = Object.assign(jest.fn(() => null), {
|
|
29
|
+
Item: jest.fn(() => null)
|
|
30
|
+
});
|
|
31
|
+
return {
|
|
32
|
+
__esModule: true,
|
|
33
|
+
default: Grid
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
mockGrid,
|
|
39
|
+
mockGridMinimal
|
|
40
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Factory function for Grid mock.
|
|
3
|
+
* Mocks the entire @synerise/ds-grid package including Grid and Grid.Item.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import { gridMockFactory } from '@synerise/ds-mocks/Grid/vi';
|
|
8
|
+
*
|
|
9
|
+
* vi.mock('@synerise/ds-grid', gridMockFactory);
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare const gridMockFactory: () => {
|
|
13
|
+
default: any;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Factory function for minimal Grid mock.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* vi.mock('@synerise/ds-grid', gridMinimalMockFactory);
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare const gridMinimalMockFactory: () => {
|
|
24
|
+
default: any;
|
|
25
|
+
};
|
package/dist/Grid/vi.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const gridMockFactory = () => {
|
|
3
|
+
const Item = vi.fn(({
|
|
4
|
+
children,
|
|
5
|
+
span,
|
|
6
|
+
"data-testid": dataTestId
|
|
7
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-grid-item", "data-span": span, className: "ds-grid-item", children }));
|
|
8
|
+
const Grid = Object.assign(vi.fn(({
|
|
9
|
+
children,
|
|
10
|
+
className,
|
|
11
|
+
columns,
|
|
12
|
+
"data-testid": dataTestId
|
|
13
|
+
}) => {
|
|
14
|
+
const testId = dataTestId || "ds-grid";
|
|
15
|
+
return /* @__PURE__ */ jsx("div", { "data-testid": testId, className: `ds-grid ${className || ""}`, "data-columns": columns, children });
|
|
16
|
+
}), {
|
|
17
|
+
Item
|
|
18
|
+
});
|
|
19
|
+
return {
|
|
20
|
+
default: Grid
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
const gridMinimalMockFactory = () => {
|
|
24
|
+
const Grid = Object.assign(vi.fn(() => null), {
|
|
25
|
+
Item: vi.fn(() => null)
|
|
26
|
+
});
|
|
27
|
+
return {
|
|
28
|
+
default: Grid
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
gridMinimalMockFactory,
|
|
33
|
+
gridMockFactory
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockIconPicker = () => {
|
|
3
|
+
jest.mock("@synerise/ds-icon-picker", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
children,
|
|
7
|
+
className,
|
|
8
|
+
value,
|
|
9
|
+
onChange,
|
|
10
|
+
"data-testid": dataTestId
|
|
11
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-icon-picker ${className || ""}`, "data-testid": dataTestId || "ds-icon-picker", "data-value": value, onClick: () => onChange?.(value), children }))
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
14
|
+
const mockIconPickerMinimal = () => {
|
|
15
|
+
jest.mock("@synerise/ds-icon-picker", () => ({
|
|
16
|
+
__esModule: true,
|
|
17
|
+
default: jest.fn(() => null)
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
mockIconPicker,
|
|
22
|
+
mockIconPickerMinimal
|
|
23
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IconPickerProps } from '@synerise/ds-icon-picker';
|
|
2
|
+
export type MockIconPickerProps = IconPickerProps & {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const iconPickerMockFactory: () => {
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
export declare const iconPickerMinimalMockFactory: () => {
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const iconPickerMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
children,
|
|
5
|
+
className,
|
|
6
|
+
value,
|
|
7
|
+
onChange,
|
|
8
|
+
"data-testid": dataTestId
|
|
9
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-icon-picker ${className || ""}`, "data-testid": dataTestId || "ds-icon-picker", "data-value": value, onClick: () => onChange?.(value), children }))
|
|
10
|
+
});
|
|
11
|
+
const iconPickerMinimalMockFactory = () => ({
|
|
12
|
+
default: vi.fn(() => null)
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
iconPickerMinimalMockFactory,
|
|
16
|
+
iconPickerMockFactory
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
const mockInformationCard = () => {
|
|
3
|
+
jest.mock("@synerise/ds-information-card", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
children,
|
|
7
|
+
title,
|
|
8
|
+
subtitle,
|
|
9
|
+
"data-testid": dataTestId
|
|
10
|
+
}) => {
|
|
11
|
+
const testId = dataTestId || "ds-information-card";
|
|
12
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, children: [
|
|
13
|
+
title && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-title`, children: title }),
|
|
14
|
+
subtitle && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-subtitle`, children: subtitle }),
|
|
15
|
+
children
|
|
16
|
+
] });
|
|
17
|
+
}),
|
|
18
|
+
InformationCardPropertyList: jest.fn(({
|
|
19
|
+
children,
|
|
20
|
+
"data-testid": dataTestId
|
|
21
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-information-card-property-list", children })),
|
|
22
|
+
InformationCardTooltip: jest.fn(({
|
|
23
|
+
children,
|
|
24
|
+
"data-testid": dataTestId
|
|
25
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-information-card-tooltip", children })),
|
|
26
|
+
buildExtraInfo: jest.fn(),
|
|
27
|
+
buildIconBadge: jest.fn(),
|
|
28
|
+
buildInitialsBadge: jest.fn()
|
|
29
|
+
}));
|
|
30
|
+
};
|
|
31
|
+
const mockInformationCardMinimal = () => {
|
|
32
|
+
jest.mock("@synerise/ds-information-card", () => ({
|
|
33
|
+
__esModule: true,
|
|
34
|
+
default: jest.fn(() => null),
|
|
35
|
+
InformationCardPropertyList: jest.fn(() => null),
|
|
36
|
+
InformationCardTooltip: jest.fn(() => null),
|
|
37
|
+
buildExtraInfo: jest.fn(),
|
|
38
|
+
buildIconBadge: jest.fn(),
|
|
39
|
+
buildInitialsBadge: jest.fn()
|
|
40
|
+
}));
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
mockInformationCard,
|
|
44
|
+
mockInformationCardMinimal
|
|
45
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Factory function for InformationCard mock.
|
|
3
|
+
* Mocks the entire @synerise/ds-information-card package including InformationCard,
|
|
4
|
+
* InformationCardPropertyList, InformationCardTooltip, and utility functions.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import { informationCardMockFactory } from '@synerise/ds-mocks/InformationCard/vi';
|
|
9
|
+
*
|
|
10
|
+
* vi.mock('@synerise/ds-information-card', informationCardMockFactory);
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare const informationCardMockFactory: () => {
|
|
14
|
+
default: any;
|
|
15
|
+
InformationCardPropertyList: any;
|
|
16
|
+
InformationCardTooltip: any;
|
|
17
|
+
buildExtraInfo: any;
|
|
18
|
+
buildIconBadge: any;
|
|
19
|
+
buildInitialsBadge: any;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Factory function for minimal InformationCard mock.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* vi.mock('@synerise/ds-information-card', informationCardMinimalMockFactory);
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare const informationCardMinimalMockFactory: () => {
|
|
30
|
+
default: any;
|
|
31
|
+
InformationCardPropertyList: any;
|
|
32
|
+
InformationCardTooltip: any;
|
|
33
|
+
buildExtraInfo: any;
|
|
34
|
+
buildIconBadge: any;
|
|
35
|
+
buildInitialsBadge: any;
|
|
36
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
const informationCardMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
children,
|
|
5
|
+
title,
|
|
6
|
+
subtitle,
|
|
7
|
+
"data-testid": dataTestId
|
|
8
|
+
}) => {
|
|
9
|
+
const testId = dataTestId || "ds-information-card";
|
|
10
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, children: [
|
|
11
|
+
title && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-title`, children: title }),
|
|
12
|
+
subtitle && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-subtitle`, children: subtitle }),
|
|
13
|
+
children
|
|
14
|
+
] });
|
|
15
|
+
}),
|
|
16
|
+
InformationCardPropertyList: vi.fn(({
|
|
17
|
+
children,
|
|
18
|
+
"data-testid": dataTestId
|
|
19
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-information-card-property-list", children })),
|
|
20
|
+
InformationCardTooltip: vi.fn(({
|
|
21
|
+
children,
|
|
22
|
+
"data-testid": dataTestId
|
|
23
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-information-card-tooltip", children })),
|
|
24
|
+
buildExtraInfo: vi.fn(),
|
|
25
|
+
buildIconBadge: vi.fn(),
|
|
26
|
+
buildInitialsBadge: vi.fn()
|
|
27
|
+
});
|
|
28
|
+
const informationCardMinimalMockFactory = () => ({
|
|
29
|
+
default: vi.fn(() => null),
|
|
30
|
+
InformationCardPropertyList: vi.fn(() => null),
|
|
31
|
+
InformationCardTooltip: vi.fn(() => null),
|
|
32
|
+
buildExtraInfo: vi.fn(),
|
|
33
|
+
buildIconBadge: vi.fn(),
|
|
34
|
+
buildInitialsBadge: vi.fn()
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
informationCardMinimalMockFactory,
|
|
38
|
+
informationCardMockFactory
|
|
39
|
+
};
|