@autobusal/common 0.0.41 → 1.0.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.
Files changed (56) hide show
  1. package/ApiDetails/ApiDetails.tsx +1 -1
  2. package/ApiDetails/Content.tsx +9 -5
  3. package/ApiDetails/Devpos.tsx +26 -26
  4. package/ApiDetails/services.ts +4 -3
  5. package/Autocomplete/Autocomplete.tsx +3 -3
  6. package/Avatar.tsx +2 -2
  7. package/{BackTo.tsx → Back/BackTo.tsx} +3 -26
  8. package/Back/BackWithTitle.tsx +30 -0
  9. package/Button/Button.tsx +4 -2
  10. package/Calendar/Calendar.tsx +2 -2
  11. package/{BrowseCompanyItem/BrowseCompanyItem.tsx → CompanyItem/CompanyItem.tsx} +2 -2
  12. package/CookieNotification/CookieNotification.tsx +2 -2
  13. package/File/File.tsx +4 -4
  14. package/IpLogs/IpLogs.tsx +3 -3
  15. package/IpLogs/View.tsx +5 -5
  16. package/IpLogs/services.ts +2 -2
  17. package/Loading/Loading.tsx +19 -29
  18. package/Loading/Paragraph.tsx +62 -0
  19. package/Loading/styles.ts +29 -5
  20. package/Meta.tsx +1 -1
  21. package/Modal/Modal.tsx +2 -3
  22. package/Pagination/Pagination.tsx +1 -1
  23. package/Passengers/Passengers.tsx +6 -5
  24. package/Passengers/Persons.tsx +7 -7
  25. package/Passengers/{utilities/getText.ts → utilities.ts} +3 -5
  26. package/Password/Password.tsx +2 -2
  27. package/Password/styles.ts +1 -1
  28. package/Policy/services.ts +1 -3
  29. package/Report/Send.tsx +5 -8
  30. package/Report/services.ts +3 -2
  31. package/Report/types.ts +3 -0
  32. package/RouteItem/styles.ts +0 -1
  33. package/Seats/ChooseSeat.tsx +2 -2
  34. package/Seats/Preview.tsx +1 -1
  35. package/Table/Header/Header.tsx +1 -1
  36. package/Table/Header/Sort.tsx +2 -2
  37. package/Table/Paginate.tsx +2 -2
  38. package/Table/Row.tsx +5 -3
  39. package/Table/Rows/Loading.tsx +1 -1
  40. package/Table/Rows/Rows.tsx +5 -4
  41. package/Table/Rows/styles.ts +6 -0
  42. package/Table/Table.tsx +5 -3
  43. package/Table/browseUrl.ts +2 -2
  44. package/Viewer/Actions.tsx +4 -4
  45. package/Viewer/Data.tsx +15 -14
  46. package/Viewer/Item.tsx +2 -2
  47. package/Viewer/Items/CheckboxList.tsx +1 -1
  48. package/Viewer/Items/DatePicker.tsx +2 -2
  49. package/Viewer/Items/Dropdown.tsx +5 -9
  50. package/Viewer/Items/TextareaHtml.tsx +3 -3
  51. package/Viewer/Items/styles.ts +1 -1
  52. package/Viewer/Viewer.tsx +4 -4
  53. package/Viewer/types.ts +1 -1
  54. package/index.ts +15 -9
  55. package/package.json +1 -1
  56. /package/{BrowseCompanyItem → CompanyItem}/styles.ts +0 -0
@@ -1,5 +1,5 @@
1
- import { Link } from 'react-router-dom';
2
1
  import styled from 'styled-components';
2
+ import { Link } from 'react-router-dom';
3
3
 
4
4
  export const ContainerCheckboxList = styled.div`
5
5
  display: flex;
package/Viewer/Viewer.tsx CHANGED
@@ -9,14 +9,14 @@ interface Props {
9
9
  id: number
10
10
  type?: 'simple'
11
11
  data: ViewData[]
12
- loading?: boolean
12
+ pending?: boolean
13
13
  actions?: string[]
14
14
  t: TFunction<'common'>
15
15
  onSave?: (data: any) => void
16
- onDelete?: () => void
16
+ onDelete?: (data?: any) => void
17
17
  }
18
18
 
19
- const Viewer = ({ id, type, data, loading, actions, t, onSave, onDelete }: Props): JSX.Element => {
19
+ const Viewer = ({ id, type, data, pending, actions, t, onSave, onDelete }: Props): JSX.Element => {
20
20
  const { register, handleSubmit, formState: { errors }, setValue } = useForm<any>();
21
21
 
22
22
  const items = data.map((item, index) => (
@@ -58,7 +58,7 @@ const Viewer = ({ id, type, data, loading, actions, t, onSave, onDelete }: Props
58
58
  <Actions
59
59
  id={ id }
60
60
  available={ actions }
61
- loading={ loading }
61
+ pending={ pending }
62
62
  t={ t }
63
63
  onDelete={ onDelete }
64
64
  />
package/Viewer/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { DropdownData } from '@modules/Providers/types/other';
1
+ import { DropdownData } from '@autobusal/providers/types/other';
2
2
 
3
3
  export interface ViewData {
4
4
  label?: string
package/index.ts CHANGED
@@ -1,21 +1,24 @@
1
1
  import ApiDetails from './ApiDetails/ApiDetails';
2
2
  import Autocomplete from './Autocomplete/Autocomplete';
3
3
  import Avatar from './Avatar';
4
- import { BackTo, BackWithTitle } from './BackTo';
4
+ import BackTo from './Back/BackTo';
5
+ import BackWithTitle from './Back/BackWithTitle';
5
6
  import BlogItem from './BlogItem/BlogItem';
6
- import BrowseCompanyItem from './BrowseCompanyItem/BrowseCompanyItem';
7
+ import Button from './Button/Button';
7
8
  import Calendar from './Calendar/Calendar';
8
- import ContactInfo from './ContactInfo/ContactInfo';
9
- import CookieNotification from './CookieNotification/CookieNotification';
10
9
  import ChangeLanguage from './ChangeLanguage/ChangeLanguage';
11
10
  import ChooseSeat from './Seats/ChooseSeat';
12
- import { Button } from './Button/Button';
11
+ import CompanyItem from './CompanyItem/CompanyItem';
12
+ import ContactInfo from './ContactInfo/ContactInfo';
13
+ import CookieNotification from './CookieNotification/CookieNotification';
14
+ import File from './File/File';
13
15
  import Gender from './Gender';
14
- import { General, Inline, Paragraph, Box } from './Loading/Loading';
16
+ import { General, Inline, Box, BoxMiddle, GeneralFull } from './Loading/Loading';
15
17
  import IpLogs from './IpLogs/IpLogs';
16
- import Modal from './Modal/Modal';
17
18
  import Meta from './Meta';
19
+ import Modal from './Modal/Modal';
18
20
  import Pagination from './Pagination/Pagination';
21
+ import Paragraph from './Loading/Paragraph';
19
22
  import Passengers from './Passengers/Passengers';
20
23
  import Password from './Password/Password';
21
24
  import Policy from './Policy/Policy';
@@ -34,15 +37,18 @@ export {
34
37
  BackWithTitle,
35
38
  BlogItem,
36
39
  Box,
37
- BrowseCompanyItem,
40
+ BoxMiddle,
38
41
  Button,
39
42
  Calendar,
40
- CookieNotification,
41
43
  ChangeLanguage,
42
44
  ChooseSeat,
45
+ CompanyItem,
43
46
  ContactInfo,
47
+ CookieNotification,
48
+ File,
44
49
  Gender,
45
50
  General,
51
+ GeneralFull,
46
52
  Inline,
47
53
  IpLogs,
48
54
  Meta,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/common",
3
- "version": "0.0.41",
3
+ "version": "1.0.0",
4
4
  "type": "module",
5
5
  "main": "index.ts"
6
6
  }
File without changes