@synerise/ds-mocks 0.1.16 → 0.2.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/CHANGELOG.md +10 -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 +45 -45
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockColumnManager = () => {
|
|
3
|
+
jest.mock("@synerise/ds-column-manager", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
children,
|
|
7
|
+
visible,
|
|
8
|
+
columns: _columns,
|
|
9
|
+
onApply,
|
|
10
|
+
onCancel,
|
|
11
|
+
className,
|
|
12
|
+
"data-testid": dataTestId
|
|
13
|
+
}) => {
|
|
14
|
+
if (visible === false) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
const testId = dataTestId || "ds-column-manager";
|
|
18
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, className, "data-visible": visible, children: [
|
|
19
|
+
children,
|
|
20
|
+
onApply && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-apply`, onClick: onApply, children: "Apply" }),
|
|
21
|
+
onCancel && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-cancel`, onClick: onCancel, children: "Cancel" })
|
|
22
|
+
] });
|
|
23
|
+
})
|
|
24
|
+
}));
|
|
25
|
+
};
|
|
26
|
+
const mockColumnManagerMinimal = () => {
|
|
27
|
+
jest.mock("@synerise/ds-column-manager", () => ({
|
|
28
|
+
__esModule: true,
|
|
29
|
+
default: jest.fn(() => null)
|
|
30
|
+
}));
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
mockColumnManager,
|
|
34
|
+
mockColumnManagerMinimal
|
|
35
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Factory function for ColumnManager mock.
|
|
3
|
+
* Mocks the @synerise/ds-column-manager package.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import { columnManagerMockFactory } from '@synerise/ds-mocks/ColumnManager/vi';
|
|
8
|
+
*
|
|
9
|
+
* vi.mock('@synerise/ds-column-manager', columnManagerMockFactory);
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare const columnManagerMockFactory: () => {
|
|
13
|
+
default: any;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Factory function for minimal ColumnManager mock.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* vi.mock('@synerise/ds-column-manager', columnManagerMinimalMockFactory);
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare const columnManagerMinimalMockFactory: () => {
|
|
24
|
+
default: any;
|
|
25
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const columnManagerMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
children,
|
|
5
|
+
visible,
|
|
6
|
+
columns: _columns,
|
|
7
|
+
onApply,
|
|
8
|
+
onCancel,
|
|
9
|
+
className,
|
|
10
|
+
"data-testid": dataTestId
|
|
11
|
+
}) => {
|
|
12
|
+
if (visible === false) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
const testId = dataTestId || "ds-column-manager";
|
|
16
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, className, "data-visible": visible, children: [
|
|
17
|
+
children,
|
|
18
|
+
onApply && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-apply`, onClick: onApply, children: "Apply" }),
|
|
19
|
+
onCancel && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-cancel`, onClick: onCancel, children: "Cancel" })
|
|
20
|
+
] });
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
const columnManagerMinimalMockFactory = () => ({
|
|
24
|
+
default: vi.fn(() => null)
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
columnManagerMinimalMockFactory,
|
|
28
|
+
columnManagerMockFactory
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockCompletedWithin = () => {
|
|
3
|
+
jest.mock("@synerise/ds-completed-within", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
className,
|
|
7
|
+
"data-testid": dataTestId
|
|
8
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-completed-within ${className || ""}`, "data-testid": dataTestId || "ds-completed-within" }))
|
|
9
|
+
}));
|
|
10
|
+
};
|
|
11
|
+
const mockCompletedWithinMinimal = () => {
|
|
12
|
+
jest.mock("@synerise/ds-completed-within", () => ({
|
|
13
|
+
__esModule: true,
|
|
14
|
+
default: jest.fn(() => null)
|
|
15
|
+
}));
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
mockCompletedWithin,
|
|
19
|
+
mockCompletedWithinMinimal
|
|
20
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type MockCompletedWithinProps = {
|
|
2
|
+
value?: unknown;
|
|
3
|
+
onChange?: (...args: unknown[]) => void;
|
|
4
|
+
className?: string;
|
|
5
|
+
'data-testid'?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const completedWithinMockFactory: () => {
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
export declare const completedWithinMinimalMockFactory: () => {
|
|
11
|
+
default: any;
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const completedWithinMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
className,
|
|
5
|
+
"data-testid": dataTestId
|
|
6
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-completed-within ${className || ""}`, "data-testid": dataTestId || "ds-completed-within" }))
|
|
7
|
+
});
|
|
8
|
+
const completedWithinMinimalMockFactory = () => ({
|
|
9
|
+
default: vi.fn(() => null)
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
completedWithinMinimalMockFactory,
|
|
13
|
+
completedWithinMockFactory
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockCondition = () => {
|
|
3
|
+
jest.mock("@synerise/ds-condition", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
children,
|
|
7
|
+
className,
|
|
8
|
+
"data-testid": dataTestId
|
|
9
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-condition ${className || ""}`, "data-testid": dataTestId || "ds-condition", children }))
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
const mockConditionMinimal = () => {
|
|
13
|
+
jest.mock("@synerise/ds-condition", () => ({
|
|
14
|
+
__esModule: true,
|
|
15
|
+
default: jest.fn(() => null)
|
|
16
|
+
}));
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
mockCondition,
|
|
20
|
+
mockConditionMinimal
|
|
21
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ConditionProps } from '@synerise/ds-condition';
|
|
2
|
+
export type MockConditionProps = ConditionProps & {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const conditionMockFactory: () => {
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
export declare const conditionMinimalMockFactory: () => {
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const conditionMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
children,
|
|
5
|
+
className,
|
|
6
|
+
"data-testid": dataTestId
|
|
7
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-condition ${className || ""}`, "data-testid": dataTestId || "ds-condition", children }))
|
|
8
|
+
});
|
|
9
|
+
const conditionMinimalMockFactory = () => ({
|
|
10
|
+
default: vi.fn(() => null)
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
conditionMinimalMockFactory,
|
|
14
|
+
conditionMockFactory
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockConfirmation = () => {
|
|
3
|
+
jest.mock("@synerise/ds-confirmation", () => {
|
|
4
|
+
const Confirmation = jest.fn(({
|
|
5
|
+
title,
|
|
6
|
+
description,
|
|
7
|
+
okText,
|
|
8
|
+
cancelText,
|
|
9
|
+
onOk,
|
|
10
|
+
onCancel,
|
|
11
|
+
mainButtonProps,
|
|
12
|
+
batchActionItems,
|
|
13
|
+
texts,
|
|
14
|
+
children,
|
|
15
|
+
"data-testid": dataTestId
|
|
16
|
+
}) => {
|
|
17
|
+
const testId = dataTestId || "ds-confirmation";
|
|
18
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, className: "ds-confirmation", children: [
|
|
19
|
+
title && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-title`, children: title }),
|
|
20
|
+
description && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-description`, children: description }),
|
|
21
|
+
children,
|
|
22
|
+
/* @__PURE__ */ jsx("button", { "data-testid": `${testId}-ok`, onClick: onOk, ...mainButtonProps, children: texts?.mainButtonLabel || okText || "OK" }),
|
|
23
|
+
/* @__PURE__ */ jsx("button", { "data-testid": `${testId}-cancel`, onClick: onCancel, children: texts?.secondaryButtonLabel || cancelText || "Cancel" }),
|
|
24
|
+
batchActionItems?.map((item, index) => /* @__PURE__ */ jsxs("button", { "data-testid": `${testId}-batch-action-${index}`, onClick: item.onClick, children: [
|
|
25
|
+
item.icon,
|
|
26
|
+
item.label
|
|
27
|
+
] }, index))
|
|
28
|
+
] });
|
|
29
|
+
});
|
|
30
|
+
const Prompt = jest.fn(({
|
|
31
|
+
children,
|
|
32
|
+
title,
|
|
33
|
+
description,
|
|
34
|
+
"data-testid": dataTestId
|
|
35
|
+
}) => {
|
|
36
|
+
const testId = dataTestId || "ds-prompt";
|
|
37
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, className: "ds-prompt", children: [
|
|
38
|
+
title && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-title`, children: title }),
|
|
39
|
+
description && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-description`, children: description }),
|
|
40
|
+
children
|
|
41
|
+
] });
|
|
42
|
+
});
|
|
43
|
+
return {
|
|
44
|
+
__esModule: true,
|
|
45
|
+
default: Confirmation,
|
|
46
|
+
Prompt
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
const mockConfirmationMinimal = () => {
|
|
51
|
+
jest.mock("@synerise/ds-confirmation", () => ({
|
|
52
|
+
__esModule: true,
|
|
53
|
+
default: jest.fn(() => null),
|
|
54
|
+
Prompt: jest.fn(() => null)
|
|
55
|
+
}));
|
|
56
|
+
};
|
|
57
|
+
export {
|
|
58
|
+
mockConfirmation,
|
|
59
|
+
mockConfirmationMinimal
|
|
60
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Factory function for Confirmation mock.
|
|
3
|
+
* Mocks the entire @synerise/ds-confirmation package including Confirmation and Prompt.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import { confirmationMockFactory } from '@synerise/ds-mocks/Confirmation/vi';
|
|
8
|
+
*
|
|
9
|
+
* vi.mock('@synerise/ds-confirmation', confirmationMockFactory);
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare const confirmationMockFactory: () => {
|
|
13
|
+
default: any;
|
|
14
|
+
Prompt: any;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Factory function for minimal Confirmation mock.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* vi.mock('@synerise/ds-confirmation', confirmationMinimalMockFactory);
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare const confirmationMinimalMockFactory: () => {
|
|
25
|
+
default: any;
|
|
26
|
+
Prompt: any;
|
|
27
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const confirmationMockFactory = () => {
|
|
3
|
+
const Confirmation = vi.fn(({
|
|
4
|
+
title,
|
|
5
|
+
description,
|
|
6
|
+
okText,
|
|
7
|
+
cancelText,
|
|
8
|
+
onOk,
|
|
9
|
+
onCancel,
|
|
10
|
+
mainButtonProps,
|
|
11
|
+
batchActionItems,
|
|
12
|
+
texts,
|
|
13
|
+
children,
|
|
14
|
+
"data-testid": dataTestId
|
|
15
|
+
}) => {
|
|
16
|
+
const testId = dataTestId || "ds-confirmation";
|
|
17
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, className: "ds-confirmation", children: [
|
|
18
|
+
title && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-title`, children: title }),
|
|
19
|
+
description && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-description`, children: description }),
|
|
20
|
+
children,
|
|
21
|
+
/* @__PURE__ */ jsx("button", { "data-testid": `${testId}-ok`, onClick: onOk, ...mainButtonProps, children: texts?.mainButtonLabel || okText || "OK" }),
|
|
22
|
+
/* @__PURE__ */ jsx("button", { "data-testid": `${testId}-cancel`, onClick: onCancel, children: texts?.secondaryButtonLabel || cancelText || "Cancel" }),
|
|
23
|
+
batchActionItems?.map((item, index) => /* @__PURE__ */ jsxs("button", { "data-testid": `${testId}-batch-action-${index}`, onClick: item.onClick, children: [
|
|
24
|
+
item.icon,
|
|
25
|
+
item.label
|
|
26
|
+
] }, index))
|
|
27
|
+
] });
|
|
28
|
+
});
|
|
29
|
+
const Prompt = vi.fn(({
|
|
30
|
+
children,
|
|
31
|
+
title,
|
|
32
|
+
description,
|
|
33
|
+
"data-testid": dataTestId
|
|
34
|
+
}) => {
|
|
35
|
+
const testId = dataTestId || "ds-prompt";
|
|
36
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, className: "ds-prompt", children: [
|
|
37
|
+
title && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-title`, children: title }),
|
|
38
|
+
description && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-description`, children: description }),
|
|
39
|
+
children
|
|
40
|
+
] });
|
|
41
|
+
});
|
|
42
|
+
return {
|
|
43
|
+
default: Confirmation,
|
|
44
|
+
Prompt
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
const confirmationMinimalMockFactory = () => ({
|
|
48
|
+
default: vi.fn(() => null),
|
|
49
|
+
Prompt: vi.fn(() => null)
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
confirmationMinimalMockFactory,
|
|
53
|
+
confirmationMockFactory
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockContextSelector = () => {
|
|
3
|
+
jest.mock("@synerise/ds-context-selector", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
children,
|
|
7
|
+
value: _value,
|
|
8
|
+
onChange: _onChange,
|
|
9
|
+
className,
|
|
10
|
+
"data-testid": dataTestId
|
|
11
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-context-selector", className, children }))
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
14
|
+
const mockContextSelectorMinimal = () => {
|
|
15
|
+
jest.mock("@synerise/ds-context-selector", () => ({
|
|
16
|
+
__esModule: true,
|
|
17
|
+
default: jest.fn(() => null)
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
mockContextSelector,
|
|
22
|
+
mockContextSelectorMinimal
|
|
23
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Factory function for ContextSelector mock.
|
|
3
|
+
* Mocks the @synerise/ds-context-selector package.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import { contextSelectorMockFactory } from '@synerise/ds-mocks/ContextSelector/vi';
|
|
8
|
+
*
|
|
9
|
+
* vi.mock('@synerise/ds-context-selector', contextSelectorMockFactory);
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare const contextSelectorMockFactory: () => {
|
|
13
|
+
default: any;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Factory function for minimal ContextSelector mock.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* vi.mock('@synerise/ds-context-selector', contextSelectorMinimalMockFactory);
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare const contextSelectorMinimalMockFactory: () => {
|
|
24
|
+
default: any;
|
|
25
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const contextSelectorMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
children,
|
|
5
|
+
value: _value,
|
|
6
|
+
onChange: _onChange,
|
|
7
|
+
className,
|
|
8
|
+
"data-testid": dataTestId
|
|
9
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-context-selector", className, children }))
|
|
10
|
+
});
|
|
11
|
+
const contextSelectorMinimalMockFactory = () => ({
|
|
12
|
+
default: vi.fn(() => null)
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
contextSelectorMinimalMockFactory,
|
|
16
|
+
contextSelectorMockFactory
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockCopyIcon = () => {
|
|
3
|
+
jest.mock("@synerise/ds-copy-icon", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
text,
|
|
7
|
+
onCopy,
|
|
8
|
+
className,
|
|
9
|
+
"data-testid": dataTestId
|
|
10
|
+
}) => /* @__PURE__ */ jsx("button", { className: `ds-copy-icon ${className || ""}`, "data-testid": dataTestId || "ds-copy-icon", "data-text": text, onClick: () => onCopy?.() }))
|
|
11
|
+
}));
|
|
12
|
+
};
|
|
13
|
+
const mockCopyIconMinimal = () => {
|
|
14
|
+
jest.mock("@synerise/ds-copy-icon", () => ({
|
|
15
|
+
__esModule: true,
|
|
16
|
+
default: jest.fn(() => null)
|
|
17
|
+
}));
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
mockCopyIcon,
|
|
21
|
+
mockCopyIconMinimal
|
|
22
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CopyIconProps } from '@synerise/ds-copy-icon';
|
|
2
|
+
export type MockCopyIconProps = CopyIconProps & {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const copyIconMockFactory: () => {
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
export declare const copyIconMinimalMockFactory: () => {
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const copyIconMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
text,
|
|
5
|
+
onCopy,
|
|
6
|
+
className,
|
|
7
|
+
"data-testid": dataTestId
|
|
8
|
+
}) => /* @__PURE__ */ jsx("button", { className: `ds-copy-icon ${className || ""}`, "data-testid": dataTestId || "ds-copy-icon", "data-text": text, onClick: () => onCopy?.() }))
|
|
9
|
+
});
|
|
10
|
+
const copyIconMinimalMockFactory = () => ({
|
|
11
|
+
default: vi.fn(() => null)
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
copyIconMinimalMockFactory,
|
|
15
|
+
copyIconMockFactory
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockDatePicker = () => {
|
|
3
|
+
jest.mock("@synerise/ds-date-picker", () => {
|
|
4
|
+
const DatePicker = jest.fn(({
|
|
5
|
+
value,
|
|
6
|
+
onChange,
|
|
7
|
+
onApply,
|
|
8
|
+
placeholder,
|
|
9
|
+
format: _format,
|
|
10
|
+
disabled,
|
|
11
|
+
"data-testid": dataTestId
|
|
12
|
+
}) => {
|
|
13
|
+
const testId = dataTestId || "ds-date-picker";
|
|
14
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, className: "ds-date-picker", "data-disabled": disabled, children: [
|
|
15
|
+
value !== null && value !== void 0 && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-value`, children: String(value) }),
|
|
16
|
+
placeholder && !value && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-placeholder`, children: placeholder }),
|
|
17
|
+
/* @__PURE__ */ jsx("input", { "data-testid": `${testId}-input`, type: "text", value: value !== null && value !== void 0 ? String(value) : "", onChange: (e) => onChange?.(e.target.value), placeholder, disabled }),
|
|
18
|
+
onApply && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-apply`, onClick: () => onApply(value), children: "Apply" })
|
|
19
|
+
] });
|
|
20
|
+
});
|
|
21
|
+
const createSubPicker = (name) => jest.fn(({
|
|
22
|
+
value,
|
|
23
|
+
onChange: _onChange,
|
|
24
|
+
"data-testid": dataTestId
|
|
25
|
+
}) => {
|
|
26
|
+
const testId = dataTestId || `ds-${name}`;
|
|
27
|
+
return /* @__PURE__ */ jsx("div", { "data-testid": testId, className: `ds-${name}`, children: value !== null && value !== void 0 && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-value`, children: String(value) }) });
|
|
28
|
+
});
|
|
29
|
+
return {
|
|
30
|
+
__esModule: true,
|
|
31
|
+
default: DatePicker,
|
|
32
|
+
RawDatePicker: DatePicker,
|
|
33
|
+
DayPicker: createSubPicker("day-picker"),
|
|
34
|
+
MonthPicker: createSubPicker("month-picker"),
|
|
35
|
+
YearPicker: createSubPicker("year-picker"),
|
|
36
|
+
TimePicker: createSubPicker("time-picker")
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
const mockDatePickerMinimal = () => {
|
|
41
|
+
jest.mock("@synerise/ds-date-picker", () => ({
|
|
42
|
+
__esModule: true,
|
|
43
|
+
default: jest.fn(() => null),
|
|
44
|
+
RawDatePicker: jest.fn(() => null),
|
|
45
|
+
DayPicker: jest.fn(() => null),
|
|
46
|
+
MonthPicker: jest.fn(() => null),
|
|
47
|
+
YearPicker: jest.fn(() => null),
|
|
48
|
+
TimePicker: jest.fn(() => null)
|
|
49
|
+
}));
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
mockDatePicker,
|
|
53
|
+
mockDatePickerMinimal
|
|
54
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Factory function for DatePicker mock.
|
|
3
|
+
* Mocks the entire @synerise/ds-date-picker package including DatePicker, RawDatePicker,
|
|
4
|
+
* DayPicker, MonthPicker, YearPicker, and TimePicker.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import { datePickerMockFactory } from '@synerise/ds-mocks/DatePicker/vi';
|
|
9
|
+
*
|
|
10
|
+
* vi.mock('@synerise/ds-date-picker', datePickerMockFactory);
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare const datePickerMockFactory: () => {
|
|
14
|
+
default: any;
|
|
15
|
+
RawDatePicker: any;
|
|
16
|
+
DayPicker: any;
|
|
17
|
+
MonthPicker: any;
|
|
18
|
+
YearPicker: any;
|
|
19
|
+
TimePicker: any;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Factory function for minimal DatePicker mock.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* vi.mock('@synerise/ds-date-picker', datePickerMinimalMockFactory);
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare const datePickerMinimalMockFactory: () => {
|
|
30
|
+
default: any;
|
|
31
|
+
RawDatePicker: any;
|
|
32
|
+
DayPicker: any;
|
|
33
|
+
MonthPicker: any;
|
|
34
|
+
YearPicker: any;
|
|
35
|
+
TimePicker: any;
|
|
36
|
+
};
|