@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,77 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
const mockRadio = () => {
|
|
3
|
+
jest.mock("@synerise/ds-radio", () => {
|
|
4
|
+
const Group = jest.fn(({
|
|
5
|
+
children,
|
|
6
|
+
options,
|
|
7
|
+
value,
|
|
8
|
+
onChange,
|
|
9
|
+
disabled,
|
|
10
|
+
fullWidth,
|
|
11
|
+
"data-testid": dataTestId
|
|
12
|
+
}) => {
|
|
13
|
+
const testId = dataTestId || "ds-radio-group";
|
|
14
|
+
return /* @__PURE__ */ jsx("div", { "data-testid": testId, className: "ds-radio-group", "data-full-width": fullWidth, children: options ? options.map((opt, i) => {
|
|
15
|
+
const optValue = typeof opt === "string" ? opt : opt.value;
|
|
16
|
+
const optLabel = typeof opt === "string" ? opt : opt.label;
|
|
17
|
+
return /* @__PURE__ */ jsxs("label", { "data-testid": `${testId}-option-${i}`, children: [
|
|
18
|
+
/* @__PURE__ */ jsx("input", { type: "radio", checked: value === optValue, disabled, onChange: () => onChange?.({
|
|
19
|
+
target: {
|
|
20
|
+
value: optValue
|
|
21
|
+
}
|
|
22
|
+
}) }),
|
|
23
|
+
optLabel
|
|
24
|
+
] }, i);
|
|
25
|
+
}) : children });
|
|
26
|
+
});
|
|
27
|
+
const Button = jest.fn(({
|
|
28
|
+
children,
|
|
29
|
+
value,
|
|
30
|
+
disabled,
|
|
31
|
+
"data-testid": dataTestId
|
|
32
|
+
}) => /* @__PURE__ */ jsx("button", { "data-testid": dataTestId || "ds-radio-button", "data-value": value, disabled, children }));
|
|
33
|
+
const Radio = Object.assign(jest.fn(({
|
|
34
|
+
children,
|
|
35
|
+
className,
|
|
36
|
+
checked,
|
|
37
|
+
disabled,
|
|
38
|
+
value,
|
|
39
|
+
label,
|
|
40
|
+
description,
|
|
41
|
+
onChange,
|
|
42
|
+
"data-testid": dataTestId
|
|
43
|
+
}) => {
|
|
44
|
+
const testId = dataTestId || "ds-radio";
|
|
45
|
+
return /* @__PURE__ */ jsxs("div", { className: `ds-radio ${className || ""}`, "data-testid": testId, children: [
|
|
46
|
+
/* @__PURE__ */ jsxs("label", { children: [
|
|
47
|
+
/* @__PURE__ */ jsx("input", { type: "radio", checked, disabled, value, onChange }),
|
|
48
|
+
label || children
|
|
49
|
+
] }),
|
|
50
|
+
description && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-description`, children: description })
|
|
51
|
+
] });
|
|
52
|
+
}), {
|
|
53
|
+
Group,
|
|
54
|
+
Button
|
|
55
|
+
});
|
|
56
|
+
return {
|
|
57
|
+
__esModule: true,
|
|
58
|
+
default: Radio
|
|
59
|
+
};
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
const mockRadioMinimal = () => {
|
|
63
|
+
jest.mock("@synerise/ds-radio", () => {
|
|
64
|
+
const Radio = Object.assign(jest.fn(() => null), {
|
|
65
|
+
Group: jest.fn(() => null),
|
|
66
|
+
Button: jest.fn(() => null)
|
|
67
|
+
});
|
|
68
|
+
return {
|
|
69
|
+
__esModule: true,
|
|
70
|
+
default: Radio
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
export {
|
|
75
|
+
mockRadio,
|
|
76
|
+
mockRadioMinimal
|
|
77
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Factory function for Radio mock.
|
|
3
|
+
* Use directly with vi.mock() to avoid hoisting issues.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import { radioMockFactory } from '@synerise/ds-mocks/Radio/vi';
|
|
8
|
+
*
|
|
9
|
+
* vi.mock('@synerise/ds-radio', radioMockFactory);
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare const radioMockFactory: () => {
|
|
13
|
+
default: any;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Factory function for minimal Radio mock.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* vi.mock('@synerise/ds-radio', radioMinimalMockFactory);
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare const radioMinimalMockFactory: () => {
|
|
24
|
+
default: any;
|
|
25
|
+
};
|
package/dist/Radio/vi.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
const radioMockFactory = () => {
|
|
3
|
+
const Group = vi.fn(({
|
|
4
|
+
children,
|
|
5
|
+
options,
|
|
6
|
+
value,
|
|
7
|
+
onChange,
|
|
8
|
+
disabled,
|
|
9
|
+
fullWidth,
|
|
10
|
+
"data-testid": dataTestId
|
|
11
|
+
}) => {
|
|
12
|
+
const testId = dataTestId || "ds-radio-group";
|
|
13
|
+
return /* @__PURE__ */ jsx("div", { "data-testid": testId, className: "ds-radio-group", "data-full-width": fullWidth, children: options ? options.map((opt, i) => {
|
|
14
|
+
const optValue = typeof opt === "string" ? opt : opt.value;
|
|
15
|
+
const optLabel = typeof opt === "string" ? opt : opt.label;
|
|
16
|
+
return /* @__PURE__ */ jsxs("label", { "data-testid": `${testId}-option-${i}`, children: [
|
|
17
|
+
/* @__PURE__ */ jsx("input", { type: "radio", checked: value === optValue, disabled, onChange: () => onChange?.({
|
|
18
|
+
target: {
|
|
19
|
+
value: optValue
|
|
20
|
+
}
|
|
21
|
+
}) }),
|
|
22
|
+
optLabel
|
|
23
|
+
] }, i);
|
|
24
|
+
}) : children });
|
|
25
|
+
});
|
|
26
|
+
const Button = vi.fn(({
|
|
27
|
+
children,
|
|
28
|
+
value,
|
|
29
|
+
disabled,
|
|
30
|
+
"data-testid": dataTestId
|
|
31
|
+
}) => /* @__PURE__ */ jsx("button", { "data-testid": dataTestId || "ds-radio-button", "data-value": value, disabled, children }));
|
|
32
|
+
const Radio = Object.assign(vi.fn(({
|
|
33
|
+
children,
|
|
34
|
+
className,
|
|
35
|
+
checked,
|
|
36
|
+
disabled,
|
|
37
|
+
value,
|
|
38
|
+
label,
|
|
39
|
+
description,
|
|
40
|
+
onChange,
|
|
41
|
+
"data-testid": dataTestId
|
|
42
|
+
}) => {
|
|
43
|
+
const testId = dataTestId || "ds-radio";
|
|
44
|
+
return /* @__PURE__ */ jsxs("div", { className: `ds-radio ${className || ""}`, "data-testid": testId, children: [
|
|
45
|
+
/* @__PURE__ */ jsxs("label", { children: [
|
|
46
|
+
/* @__PURE__ */ jsx("input", { type: "radio", checked, disabled, value, onChange }),
|
|
47
|
+
label || children
|
|
48
|
+
] }),
|
|
49
|
+
description && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-description`, children: description })
|
|
50
|
+
] });
|
|
51
|
+
}), {
|
|
52
|
+
Group,
|
|
53
|
+
Button
|
|
54
|
+
});
|
|
55
|
+
return {
|
|
56
|
+
default: Radio
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
const radioMinimalMockFactory = () => {
|
|
60
|
+
const Radio = Object.assign(vi.fn(() => null), {
|
|
61
|
+
Group: vi.fn(() => null),
|
|
62
|
+
Button: vi.fn(() => null)
|
|
63
|
+
});
|
|
64
|
+
return {
|
|
65
|
+
default: Radio
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
radioMinimalMockFactory,
|
|
70
|
+
radioMockFactory
|
|
71
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockResult = () => {
|
|
3
|
+
jest.mock("@synerise/ds-result", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
children,
|
|
7
|
+
className,
|
|
8
|
+
title,
|
|
9
|
+
description,
|
|
10
|
+
type,
|
|
11
|
+
noSearchResults,
|
|
12
|
+
panel,
|
|
13
|
+
"data-testid": dataTestId
|
|
14
|
+
}) => {
|
|
15
|
+
const testId = dataTestId || "ds-result";
|
|
16
|
+
return /* @__PURE__ */ jsxs("div", { className: `ds-result ${className || ""}`, "data-testid": testId, "data-type": type, "data-no-search-results": noSearchResults, "data-panel": panel, children: [
|
|
17
|
+
title && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-title`, children: title }),
|
|
18
|
+
description && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-description`, children: description }),
|
|
19
|
+
children
|
|
20
|
+
] });
|
|
21
|
+
})
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
const mockResultMinimal = () => {
|
|
25
|
+
jest.mock("@synerise/ds-result", () => ({
|
|
26
|
+
__esModule: true,
|
|
27
|
+
default: jest.fn(() => null)
|
|
28
|
+
}));
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
mockResult,
|
|
32
|
+
mockResultMinimal
|
|
33
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const resultMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
children,
|
|
5
|
+
className,
|
|
6
|
+
title,
|
|
7
|
+
description,
|
|
8
|
+
type,
|
|
9
|
+
noSearchResults,
|
|
10
|
+
panel,
|
|
11
|
+
"data-testid": dataTestId
|
|
12
|
+
}) => {
|
|
13
|
+
const testId = dataTestId || "ds-result";
|
|
14
|
+
return /* @__PURE__ */ jsxs("div", { className: `ds-result ${className || ""}`, "data-testid": testId, "data-type": type, "data-no-search-results": noSearchResults, "data-panel": panel, children: [
|
|
15
|
+
title && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-title`, children: title }),
|
|
16
|
+
description && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-description`, children: description }),
|
|
17
|
+
children
|
|
18
|
+
] });
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
const resultMinimalMockFactory = () => ({
|
|
22
|
+
default: vi.fn(() => null)
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
resultMinimalMockFactory,
|
|
26
|
+
resultMockFactory
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
const mockSearch = () => {
|
|
3
|
+
jest.mock("@synerise/ds-search", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
className,
|
|
7
|
+
value,
|
|
8
|
+
placeholder,
|
|
9
|
+
onValueChange,
|
|
10
|
+
onClear,
|
|
11
|
+
parameters,
|
|
12
|
+
recent,
|
|
13
|
+
suggestions,
|
|
14
|
+
textLookupConfig,
|
|
15
|
+
"data-testid": dataTestId
|
|
16
|
+
}) => {
|
|
17
|
+
const testId = dataTestId || "ds-search";
|
|
18
|
+
const textKey = textLookupConfig?.parameters || "text";
|
|
19
|
+
return /* @__PURE__ */ jsxs("div", { className: `ds-search ${className || ""}`, "data-testid": testId, children: [
|
|
20
|
+
/* @__PURE__ */ jsx("input", { "data-testid": `${testId}-input`, value, placeholder, onChange: (e) => onValueChange?.(e.target.value) }),
|
|
21
|
+
value && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-clear`, onClick: onClear, children: "Clear" }),
|
|
22
|
+
parameters && parameters.length > 0 && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-parameters`, children: parameters.map((param, i) => /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-parameter-${i}`, children: param[textKey] || param.text || String(param) }, i)) }),
|
|
23
|
+
recent && recent.length > 0 && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-recent`, children: recent.map((item, i) => /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-recent-${i}`, children: item[textLookupConfig?.recent || "text"] || String(item) }, i)) }),
|
|
24
|
+
suggestions && suggestions.length > 0 && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-suggestions`, children: suggestions.map((item, i) => /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-suggestion-${i}`, children: item[textLookupConfig?.suggestions || "text"] || String(item) }, i)) })
|
|
25
|
+
] });
|
|
26
|
+
}),
|
|
27
|
+
SearchInput: jest.fn(({
|
|
28
|
+
value,
|
|
29
|
+
onChange,
|
|
30
|
+
onClear,
|
|
31
|
+
placeholder,
|
|
32
|
+
disabled,
|
|
33
|
+
clearTooltip,
|
|
34
|
+
"data-testid": dataTestId
|
|
35
|
+
}) => {
|
|
36
|
+
const testId = dataTestId || "ds-search-input";
|
|
37
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, children: [
|
|
38
|
+
/* @__PURE__ */ jsx("input", { "data-testid": `${testId}-field`, value, placeholder, disabled, onChange: (e) => onChange?.(e.target.value) }),
|
|
39
|
+
value && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-clear`, onClick: onClear, children: clearTooltip || "Clear" })
|
|
40
|
+
] });
|
|
41
|
+
}),
|
|
42
|
+
SearchHeader: jest.fn(({
|
|
43
|
+
headerText,
|
|
44
|
+
tooltip,
|
|
45
|
+
"data-testid": dataTestId
|
|
46
|
+
}) => /* @__PURE__ */ jsxs("div", { "data-testid": dataTestId || "ds-search-header", children: [
|
|
47
|
+
headerText,
|
|
48
|
+
tooltip && /* @__PURE__ */ jsx("span", { "data-testid": "ds-search-header-tooltip", children: tooltip })
|
|
49
|
+
] })),
|
|
50
|
+
SearchItems: jest.fn(({
|
|
51
|
+
data,
|
|
52
|
+
itemRender,
|
|
53
|
+
onItemClick,
|
|
54
|
+
"data-testid": dataTestId
|
|
55
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-search-items", children: data?.map((item, i) => /* @__PURE__ */ jsx("div", { "data-testid": `ds-search-item-${i}`, className: "ds-search-item", onClick: () => onItemClick?.(item), children: itemRender ? itemRender(item) : String(item) }, i)) })),
|
|
56
|
+
SearchItemList: jest.fn(({
|
|
57
|
+
data,
|
|
58
|
+
itemRender,
|
|
59
|
+
onItemClick,
|
|
60
|
+
"data-testid": dataTestId
|
|
61
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-search-items", children: data?.map((item, i) => /* @__PURE__ */ jsx("div", { "data-testid": `ds-search-item-${i}`, className: "ds-search-item", onClick: () => onItemClick?.(item), children: itemRender ? itemRender(item) : String(item) }, i)) })),
|
|
62
|
+
SearchButton: jest.fn(({
|
|
63
|
+
onClick,
|
|
64
|
+
disabled,
|
|
65
|
+
"data-testid": dataTestId
|
|
66
|
+
}) => /* @__PURE__ */ jsx("button", { "data-testid": dataTestId || "ds-search-button", onClick, disabled, children: "Search" })),
|
|
67
|
+
renderSearchList: jest.fn(() => null)
|
|
68
|
+
}));
|
|
69
|
+
};
|
|
70
|
+
const mockSearchMinimal = () => {
|
|
71
|
+
jest.mock("@synerise/ds-search", () => ({
|
|
72
|
+
__esModule: true,
|
|
73
|
+
default: jest.fn(() => null),
|
|
74
|
+
SearchInput: jest.fn(() => null),
|
|
75
|
+
SearchHeader: jest.fn(() => null),
|
|
76
|
+
SearchItems: jest.fn(() => null),
|
|
77
|
+
SearchItemList: jest.fn(() => null),
|
|
78
|
+
SearchButton: jest.fn(() => null),
|
|
79
|
+
renderSearchList: jest.fn(() => null)
|
|
80
|
+
}));
|
|
81
|
+
};
|
|
82
|
+
export {
|
|
83
|
+
mockSearch,
|
|
84
|
+
mockSearchMinimal
|
|
85
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Factory function for Search mock with all sub-components.
|
|
3
|
+
* Use directly with vi.mock() to avoid hoisting issues.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import { searchMockFactory } from '@synerise/ds-mocks/Search/vi';
|
|
8
|
+
*
|
|
9
|
+
* vi.mock('@synerise/ds-search', searchMockFactory);
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare const searchMockFactory: () => {
|
|
13
|
+
default: any;
|
|
14
|
+
SearchInput: any;
|
|
15
|
+
SearchHeader: any;
|
|
16
|
+
SearchItems: any;
|
|
17
|
+
SearchItemList: any;
|
|
18
|
+
SearchButton: any;
|
|
19
|
+
renderSearchList: any;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Factory function for minimal Search mock.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* vi.mock('@synerise/ds-search', searchMinimalMockFactory);
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare const searchMinimalMockFactory: () => {
|
|
30
|
+
default: any;
|
|
31
|
+
SearchInput: any;
|
|
32
|
+
SearchHeader: any;
|
|
33
|
+
SearchItems: any;
|
|
34
|
+
SearchItemList: any;
|
|
35
|
+
SearchButton: any;
|
|
36
|
+
renderSearchList: any;
|
|
37
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
const searchMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
className,
|
|
5
|
+
value,
|
|
6
|
+
placeholder,
|
|
7
|
+
onValueChange,
|
|
8
|
+
onClear,
|
|
9
|
+
parameters,
|
|
10
|
+
recent,
|
|
11
|
+
suggestions,
|
|
12
|
+
textLookupConfig,
|
|
13
|
+
"data-testid": dataTestId
|
|
14
|
+
}) => {
|
|
15
|
+
const testId = dataTestId || "ds-search";
|
|
16
|
+
const textKey = textLookupConfig?.parameters || "text";
|
|
17
|
+
return /* @__PURE__ */ jsxs("div", { className: `ds-search ${className || ""}`, "data-testid": testId, children: [
|
|
18
|
+
/* @__PURE__ */ jsx("input", { "data-testid": `${testId}-input`, value, placeholder, onChange: (e) => onValueChange?.(e.target.value) }),
|
|
19
|
+
value && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-clear`, onClick: onClear, children: "Clear" }),
|
|
20
|
+
parameters && parameters.length > 0 && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-parameters`, children: parameters.map((param, i) => /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-parameter-${i}`, children: param[textKey] || param.text || String(param) }, i)) }),
|
|
21
|
+
recent && recent.length > 0 && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-recent`, children: recent.map((item, i) => /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-recent-${i}`, children: item[textLookupConfig?.recent || "text"] || String(item) }, i)) }),
|
|
22
|
+
suggestions && suggestions.length > 0 && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-suggestions`, children: suggestions.map((item, i) => /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-suggestion-${i}`, children: item[textLookupConfig?.suggestions || "text"] || String(item) }, i)) })
|
|
23
|
+
] });
|
|
24
|
+
}),
|
|
25
|
+
SearchInput: vi.fn(({
|
|
26
|
+
value,
|
|
27
|
+
onChange,
|
|
28
|
+
onClear,
|
|
29
|
+
placeholder,
|
|
30
|
+
disabled,
|
|
31
|
+
clearTooltip,
|
|
32
|
+
"data-testid": dataTestId
|
|
33
|
+
}) => {
|
|
34
|
+
const testId = dataTestId || "ds-search-input";
|
|
35
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, children: [
|
|
36
|
+
/* @__PURE__ */ jsx("input", { "data-testid": `${testId}-field`, value, placeholder, disabled, onChange: (e) => onChange?.(e.target.value) }),
|
|
37
|
+
value && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-clear`, onClick: onClear, children: clearTooltip || "Clear" })
|
|
38
|
+
] });
|
|
39
|
+
}),
|
|
40
|
+
SearchHeader: vi.fn(({
|
|
41
|
+
headerText,
|
|
42
|
+
tooltip,
|
|
43
|
+
"data-testid": dataTestId
|
|
44
|
+
}) => /* @__PURE__ */ jsxs("div", { "data-testid": dataTestId || "ds-search-header", children: [
|
|
45
|
+
headerText,
|
|
46
|
+
tooltip && /* @__PURE__ */ jsx("span", { "data-testid": "ds-search-header-tooltip", children: tooltip })
|
|
47
|
+
] })),
|
|
48
|
+
SearchItems: vi.fn(({
|
|
49
|
+
data,
|
|
50
|
+
itemRender,
|
|
51
|
+
onItemClick,
|
|
52
|
+
"data-testid": dataTestId
|
|
53
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-search-items", children: data?.map((item, i) => /* @__PURE__ */ jsx("div", { "data-testid": `ds-search-item-${i}`, className: "ds-search-item", onClick: () => onItemClick?.(item), children: itemRender ? itemRender(item) : String(item) }, i)) })),
|
|
54
|
+
SearchItemList: vi.fn(({
|
|
55
|
+
data,
|
|
56
|
+
itemRender,
|
|
57
|
+
onItemClick,
|
|
58
|
+
"data-testid": dataTestId
|
|
59
|
+
}) => /* @__PURE__ */ jsx("div", { "data-testid": dataTestId || "ds-search-items", children: data?.map((item, i) => /* @__PURE__ */ jsx("div", { "data-testid": `ds-search-item-${i}`, className: "ds-search-item", onClick: () => onItemClick?.(item), children: itemRender ? itemRender(item) : String(item) }, i)) })),
|
|
60
|
+
SearchButton: vi.fn(({
|
|
61
|
+
onClick,
|
|
62
|
+
disabled,
|
|
63
|
+
"data-testid": dataTestId
|
|
64
|
+
}) => /* @__PURE__ */ jsx("button", { "data-testid": dataTestId || "ds-search-button", onClick, disabled, children: "Search" })),
|
|
65
|
+
renderSearchList: vi.fn(() => null)
|
|
66
|
+
});
|
|
67
|
+
const searchMinimalMockFactory = () => ({
|
|
68
|
+
default: vi.fn(() => null),
|
|
69
|
+
SearchInput: vi.fn(() => null),
|
|
70
|
+
SearchHeader: vi.fn(() => null),
|
|
71
|
+
SearchItems: vi.fn(() => null),
|
|
72
|
+
SearchItemList: vi.fn(() => null),
|
|
73
|
+
SearchButton: vi.fn(() => null),
|
|
74
|
+
renderSearchList: vi.fn(() => null)
|
|
75
|
+
});
|
|
76
|
+
export {
|
|
77
|
+
searchMinimalMockFactory,
|
|
78
|
+
searchMockFactory
|
|
79
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockSearchBar = () => {
|
|
3
|
+
jest.mock("@synerise/ds-search-bar", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
className,
|
|
7
|
+
placeholder,
|
|
8
|
+
value,
|
|
9
|
+
onSearchChange,
|
|
10
|
+
onClearInput,
|
|
11
|
+
"data-testid": dataTestId
|
|
12
|
+
}) => {
|
|
13
|
+
const testId = dataTestId || "ds-search-bar";
|
|
14
|
+
return /* @__PURE__ */ jsxs("div", { className: `ds-search-bar ${className || ""}`, "data-testid": testId, children: [
|
|
15
|
+
/* @__PURE__ */ jsx("input", { "data-testid": `${testId}-input`, placeholder, value, onChange: (e) => onSearchChange?.(e.target.value) }),
|
|
16
|
+
value && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-clear`, onClick: onClearInput, children: "Clear" })
|
|
17
|
+
] });
|
|
18
|
+
})
|
|
19
|
+
}));
|
|
20
|
+
};
|
|
21
|
+
const mockSearchBarMinimal = () => {
|
|
22
|
+
jest.mock("@synerise/ds-search-bar", () => ({
|
|
23
|
+
__esModule: true,
|
|
24
|
+
default: jest.fn(() => null)
|
|
25
|
+
}));
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
mockSearchBar,
|
|
29
|
+
mockSearchBarMinimal
|
|
30
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type MockSearchBarProps = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
onSearchChange?: (value: string) => void;
|
|
8
|
+
onClearInput?: () => void;
|
|
9
|
+
'data-testid'?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const searchBarMockFactory: () => {
|
|
12
|
+
default: any;
|
|
13
|
+
};
|
|
14
|
+
export declare const searchBarMinimalMockFactory: () => {
|
|
15
|
+
default: any;
|
|
16
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const searchBarMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
className,
|
|
5
|
+
placeholder,
|
|
6
|
+
value,
|
|
7
|
+
onSearchChange,
|
|
8
|
+
onClearInput,
|
|
9
|
+
"data-testid": dataTestId
|
|
10
|
+
}) => {
|
|
11
|
+
const testId = dataTestId || "ds-search-bar";
|
|
12
|
+
return /* @__PURE__ */ jsxs("div", { className: `ds-search-bar ${className || ""}`, "data-testid": testId, children: [
|
|
13
|
+
/* @__PURE__ */ jsx("input", { "data-testid": `${testId}-input`, placeholder, value, onChange: (e) => onSearchChange?.(e.target.value) }),
|
|
14
|
+
value && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-clear`, onClick: onClearInput, children: "Clear" })
|
|
15
|
+
] });
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
const searchBarMinimalMockFactory = () => ({
|
|
19
|
+
default: vi.fn(() => null)
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
searchBarMinimalMockFactory,
|
|
23
|
+
searchBarMockFactory
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockSectionMessage = () => {
|
|
3
|
+
jest.mock("@synerise/ds-section-message", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
children,
|
|
7
|
+
className,
|
|
8
|
+
type,
|
|
9
|
+
message,
|
|
10
|
+
"data-testid": dataTestId
|
|
11
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-section-message ${className || ""}`, "data-testid": dataTestId || "ds-section-message", "data-type": type, "data-message": message, children }))
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
14
|
+
const mockSectionMessageMinimal = () => {
|
|
15
|
+
jest.mock("@synerise/ds-section-message", () => ({
|
|
16
|
+
__esModule: true,
|
|
17
|
+
default: jest.fn(() => null)
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
mockSectionMessage,
|
|
22
|
+
mockSectionMessageMinimal
|
|
23
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SectionMessageProps } from '@synerise/ds-section-message';
|
|
2
|
+
export type MockSectionMessageProps = SectionMessageProps & {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const sectionMessageMockFactory: () => {
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
export declare const sectionMessageMinimalMockFactory: () => {
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const sectionMessageMockFactory = () => ({
|
|
3
|
+
default: vi.fn(({
|
|
4
|
+
children,
|
|
5
|
+
className,
|
|
6
|
+
type,
|
|
7
|
+
message,
|
|
8
|
+
"data-testid": dataTestId
|
|
9
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-section-message ${className || ""}`, "data-testid": dataTestId || "ds-section-message", "data-type": type, "data-message": message, children }))
|
|
10
|
+
});
|
|
11
|
+
const sectionMessageMinimalMockFactory = () => ({
|
|
12
|
+
default: vi.fn(() => null)
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
sectionMessageMinimalMockFactory,
|
|
16
|
+
sectionMessageMockFactory
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vi';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const mockShortCuts = () => {
|
|
3
|
+
jest.mock("@synerise/ds-short-cuts", () => ({
|
|
4
|
+
__esModule: true,
|
|
5
|
+
default: jest.fn(({
|
|
6
|
+
children,
|
|
7
|
+
className,
|
|
8
|
+
"data-testid": dataTestId
|
|
9
|
+
}) => /* @__PURE__ */ jsx("div", { className: `ds-short-cuts ${className || ""}`, "data-testid": dataTestId || "ds-short-cuts", children }))
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
const mockShortCutsMinimal = () => {
|
|
13
|
+
jest.mock("@synerise/ds-short-cuts", () => ({
|
|
14
|
+
__esModule: true,
|
|
15
|
+
default: jest.fn(() => null)
|
|
16
|
+
}));
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
mockShortCuts,
|
|
20
|
+
mockShortCutsMinimal
|
|
21
|
+
};
|