@leav/ui 0.0.1-alpha-4 → 0.0.1-alpha-6

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 (17) hide show
  1. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.d.ts +0 -1
  2. package/dist/components/AttributesSelectionList/sharedComponents.d.ts +75 -78
  3. package/dist/components/ErrorDisplay/ErrorDisplay.js +3 -3
  4. package/dist/components/ErrorDisplay/ErrorDisplay.js.map +1 -1
  5. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.d.ts +0 -1
  6. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.d.ts +0 -1
  7. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.d.ts +0 -1
  8. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.d.ts +0 -1
  9. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.d.ts +0 -1
  10. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.d.ts +0 -1
  11. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.d.ts +0 -1
  12. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.d.ts +0 -1
  13. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.d.ts +0 -1
  14. package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.d.ts +0 -1
  15. package/dist/components/RecordCard/RecordCard.d.ts +0 -1
  16. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +25 -27
  17. package/package.json +15 -4
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ISelectedAttribute } from '../../../../types/attributes';
3
2
  interface ISelectedAttributeProps {
4
3
  selectedAttribute: ISelectedAttribute;
@@ -1,6 +1,3 @@
1
- /// <reference types="react" />
2
- /// <reference types="react" />
3
- /// <reference types="trusted-types" />
4
1
  export declare const TextAttribute: import("styled-components").IStyledComponent<"web", {
5
2
  ref?: import("react").LegacyRef<HTMLSpanElement>;
6
3
  key?: import("react").Key;
@@ -11,17 +8,17 @@ export declare const TextAttribute: import("styled-components").IStyledComponent
11
8
  accessKey?: string;
12
9
  autoFocus?: boolean;
13
10
  className?: string;
14
- contentEditable?: (boolean | "false" | "true") | "inherit";
11
+ contentEditable?: (boolean | "true" | "false") | "inherit";
15
12
  contextMenu?: string;
16
13
  dir?: string;
17
- draggable?: boolean | "false" | "true";
14
+ draggable?: boolean | "true" | "false";
18
15
  hidden?: boolean;
19
16
  id?: string;
20
17
  lang?: string;
21
18
  nonce?: string;
22
19
  placeholder?: string;
23
20
  slot?: string;
24
- spellCheck?: boolean | "false" | "true";
21
+ spellCheck?: boolean | "true" | "false";
25
22
  style?: import("react").CSSProperties;
26
23
  tabIndex?: number;
27
24
  title?: string;
@@ -51,53 +48,53 @@ export declare const TextAttribute: import("styled-components").IStyledComponent
51
48
  results?: number;
52
49
  security?: string;
53
50
  unselectable?: "on" | "off";
54
- inputMode?: "url" | "search" | "text" | "none" | "numeric" | "tel" | "email" | "decimal";
51
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal";
55
52
  is?: string;
56
53
  children?: import("react").ReactNode;
57
54
  "aria-activedescendant"?: string;
58
- "aria-atomic"?: boolean | "false" | "true";
59
- "aria-autocomplete"?: "list" | "none" | "inline" | "both";
60
- "aria-busy"?: boolean | "false" | "true";
61
- "aria-checked"?: boolean | "false" | "true" | "mixed";
55
+ "aria-atomic"?: boolean | "true" | "false";
56
+ "aria-autocomplete"?: "none" | "list" | "inline" | "both";
57
+ "aria-busy"?: boolean | "true" | "false";
58
+ "aria-checked"?: boolean | "true" | "false" | "mixed";
62
59
  "aria-colcount"?: number;
63
60
  "aria-colindex"?: number;
64
61
  "aria-colspan"?: number;
65
62
  "aria-controls"?: string;
66
- "aria-current"?: boolean | "time" | "false" | "date" | "true" | "step" | "page" | "location";
63
+ "aria-current"?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date";
67
64
  "aria-describedby"?: string;
68
65
  "aria-details"?: string;
69
- "aria-disabled"?: boolean | "false" | "true";
70
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup";
66
+ "aria-disabled"?: boolean | "true" | "false";
67
+ "aria-dropeffect"?: "none" | "link" | "copy" | "execute" | "move" | "popup";
71
68
  "aria-errormessage"?: string;
72
- "aria-expanded"?: boolean | "false" | "true";
69
+ "aria-expanded"?: boolean | "true" | "false";
73
70
  "aria-flowto"?: string;
74
- "aria-grabbed"?: boolean | "false" | "true";
75
- "aria-haspopup"?: boolean | "dialog" | "menu" | "false" | "tree" | "grid" | "listbox" | "true";
76
- "aria-hidden"?: boolean | "false" | "true";
77
- "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling";
71
+ "aria-grabbed"?: boolean | "true" | "false";
72
+ "aria-haspopup"?: boolean | "tree" | "dialog" | "menu" | "true" | "false" | "grid" | "listbox";
73
+ "aria-hidden"?: boolean | "true" | "false";
74
+ "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling";
78
75
  "aria-keyshortcuts"?: string;
79
76
  "aria-label"?: string;
80
77
  "aria-labelledby"?: string;
81
78
  "aria-level"?: number;
82
79
  "aria-live"?: "off" | "assertive" | "polite";
83
- "aria-modal"?: boolean | "false" | "true";
84
- "aria-multiline"?: boolean | "false" | "true";
85
- "aria-multiselectable"?: boolean | "false" | "true";
80
+ "aria-modal"?: boolean | "true" | "false";
81
+ "aria-multiline"?: boolean | "true" | "false";
82
+ "aria-multiselectable"?: boolean | "true" | "false";
86
83
  "aria-orientation"?: "horizontal" | "vertical";
87
84
  "aria-owns"?: string;
88
85
  "aria-placeholder"?: string;
89
86
  "aria-posinset"?: number;
90
- "aria-pressed"?: boolean | "false" | "true" | "mixed";
91
- "aria-readonly"?: boolean | "false" | "true";
92
- "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
93
- "aria-required"?: boolean | "false" | "true";
87
+ "aria-pressed"?: boolean | "true" | "false" | "mixed";
88
+ "aria-readonly"?: boolean | "true" | "false";
89
+ "aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
90
+ "aria-required"?: boolean | "true" | "false";
94
91
  "aria-roledescription"?: string;
95
92
  "aria-rowcount"?: number;
96
93
  "aria-rowindex"?: number;
97
94
  "aria-rowspan"?: number;
98
- "aria-selected"?: boolean | "false" | "true";
95
+ "aria-selected"?: boolean | "true" | "false";
99
96
  "aria-setsize"?: number;
100
- "aria-sort"?: "other" | "none" | "ascending" | "descending";
97
+ "aria-sort"?: "none" | "other" | "ascending" | "descending";
101
98
  "aria-valuemax"?: number;
102
99
  "aria-valuemin"?: number;
103
100
  "aria-valuenow"?: number;
@@ -276,17 +273,17 @@ export declare const SmallText: import("styled-components").IStyledComponent<"we
276
273
  accessKey?: string;
277
274
  autoFocus?: boolean;
278
275
  className?: string;
279
- contentEditable?: (boolean | "false" | "true") | "inherit";
276
+ contentEditable?: (boolean | "true" | "false") | "inherit";
280
277
  contextMenu?: string;
281
278
  dir?: string;
282
- draggable?: boolean | "false" | "true";
279
+ draggable?: boolean | "true" | "false";
283
280
  hidden?: boolean;
284
281
  id?: string;
285
282
  lang?: string;
286
283
  nonce?: string;
287
284
  placeholder?: string;
288
285
  slot?: string;
289
- spellCheck?: boolean | "false" | "true";
286
+ spellCheck?: boolean | "true" | "false";
290
287
  style?: import("react").CSSProperties;
291
288
  tabIndex?: number;
292
289
  title?: string;
@@ -316,53 +313,53 @@ export declare const SmallText: import("styled-components").IStyledComponent<"we
316
313
  results?: number;
317
314
  security?: string;
318
315
  unselectable?: "on" | "off";
319
- inputMode?: "url" | "search" | "text" | "none" | "numeric" | "tel" | "email" | "decimal";
316
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal";
320
317
  is?: string;
321
318
  children?: import("react").ReactNode;
322
319
  "aria-activedescendant"?: string;
323
- "aria-atomic"?: boolean | "false" | "true";
324
- "aria-autocomplete"?: "list" | "none" | "inline" | "both";
325
- "aria-busy"?: boolean | "false" | "true";
326
- "aria-checked"?: boolean | "false" | "true" | "mixed";
320
+ "aria-atomic"?: boolean | "true" | "false";
321
+ "aria-autocomplete"?: "none" | "list" | "inline" | "both";
322
+ "aria-busy"?: boolean | "true" | "false";
323
+ "aria-checked"?: boolean | "true" | "false" | "mixed";
327
324
  "aria-colcount"?: number;
328
325
  "aria-colindex"?: number;
329
326
  "aria-colspan"?: number;
330
327
  "aria-controls"?: string;
331
- "aria-current"?: boolean | "time" | "false" | "date" | "true" | "step" | "page" | "location";
328
+ "aria-current"?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date";
332
329
  "aria-describedby"?: string;
333
330
  "aria-details"?: string;
334
- "aria-disabled"?: boolean | "false" | "true";
335
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup";
331
+ "aria-disabled"?: boolean | "true" | "false";
332
+ "aria-dropeffect"?: "none" | "link" | "copy" | "execute" | "move" | "popup";
336
333
  "aria-errormessage"?: string;
337
- "aria-expanded"?: boolean | "false" | "true";
334
+ "aria-expanded"?: boolean | "true" | "false";
338
335
  "aria-flowto"?: string;
339
- "aria-grabbed"?: boolean | "false" | "true";
340
- "aria-haspopup"?: boolean | "dialog" | "menu" | "false" | "tree" | "grid" | "listbox" | "true";
341
- "aria-hidden"?: boolean | "false" | "true";
342
- "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling";
336
+ "aria-grabbed"?: boolean | "true" | "false";
337
+ "aria-haspopup"?: boolean | "tree" | "dialog" | "menu" | "true" | "false" | "grid" | "listbox";
338
+ "aria-hidden"?: boolean | "true" | "false";
339
+ "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling";
343
340
  "aria-keyshortcuts"?: string;
344
341
  "aria-label"?: string;
345
342
  "aria-labelledby"?: string;
346
343
  "aria-level"?: number;
347
344
  "aria-live"?: "off" | "assertive" | "polite";
348
- "aria-modal"?: boolean | "false" | "true";
349
- "aria-multiline"?: boolean | "false" | "true";
350
- "aria-multiselectable"?: boolean | "false" | "true";
345
+ "aria-modal"?: boolean | "true" | "false";
346
+ "aria-multiline"?: boolean | "true" | "false";
347
+ "aria-multiselectable"?: boolean | "true" | "false";
351
348
  "aria-orientation"?: "horizontal" | "vertical";
352
349
  "aria-owns"?: string;
353
350
  "aria-placeholder"?: string;
354
351
  "aria-posinset"?: number;
355
- "aria-pressed"?: boolean | "false" | "true" | "mixed";
356
- "aria-readonly"?: boolean | "false" | "true";
357
- "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
358
- "aria-required"?: boolean | "false" | "true";
352
+ "aria-pressed"?: boolean | "true" | "false" | "mixed";
353
+ "aria-readonly"?: boolean | "true" | "false";
354
+ "aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
355
+ "aria-required"?: boolean | "true" | "false";
359
356
  "aria-roledescription"?: string;
360
357
  "aria-rowcount"?: number;
361
358
  "aria-rowindex"?: number;
362
359
  "aria-rowspan"?: number;
363
- "aria-selected"?: boolean | "false" | "true";
360
+ "aria-selected"?: boolean | "true" | "false";
364
361
  "aria-setsize"?: number;
365
- "aria-sort"?: "other" | "none" | "ascending" | "descending";
362
+ "aria-sort"?: "none" | "other" | "ascending" | "descending";
366
363
  "aria-valuemax"?: number;
367
364
  "aria-valuemin"?: number;
368
365
  "aria-valuenow"?: number;
@@ -549,17 +546,17 @@ export declare const CustomForm: import("styled-components").IStyledComponent<"w
549
546
  accessKey?: string;
550
547
  autoFocus?: boolean;
551
548
  className?: string;
552
- contentEditable?: (boolean | "false" | "true") | "inherit";
549
+ contentEditable?: (boolean | "true" | "false") | "inherit";
553
550
  contextMenu?: string;
554
551
  dir?: string;
555
- draggable?: boolean | "false" | "true";
552
+ draggable?: boolean | "true" | "false";
556
553
  hidden?: boolean;
557
554
  id?: string;
558
555
  lang?: string;
559
556
  nonce?: string;
560
557
  placeholder?: string;
561
558
  slot?: string;
562
- spellCheck?: boolean | "false" | "true";
559
+ spellCheck?: boolean | "true" | "false";
563
560
  style?: import("react").CSSProperties;
564
561
  tabIndex?: number;
565
562
  title?: string;
@@ -589,53 +586,53 @@ export declare const CustomForm: import("styled-components").IStyledComponent<"w
589
586
  results?: number;
590
587
  security?: string;
591
588
  unselectable?: "on" | "off";
592
- inputMode?: "url" | "search" | "text" | "none" | "numeric" | "tel" | "email" | "decimal";
589
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal";
593
590
  is?: string;
594
591
  children?: import("react").ReactNode;
595
592
  "aria-activedescendant"?: string;
596
- "aria-atomic"?: boolean | "false" | "true";
597
- "aria-autocomplete"?: "list" | "none" | "inline" | "both";
598
- "aria-busy"?: boolean | "false" | "true";
599
- "aria-checked"?: boolean | "false" | "true" | "mixed";
593
+ "aria-atomic"?: boolean | "true" | "false";
594
+ "aria-autocomplete"?: "none" | "list" | "inline" | "both";
595
+ "aria-busy"?: boolean | "true" | "false";
596
+ "aria-checked"?: boolean | "true" | "false" | "mixed";
600
597
  "aria-colcount"?: number;
601
598
  "aria-colindex"?: number;
602
599
  "aria-colspan"?: number;
603
600
  "aria-controls"?: string;
604
- "aria-current"?: boolean | "time" | "false" | "date" | "true" | "step" | "page" | "location";
601
+ "aria-current"?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date";
605
602
  "aria-describedby"?: string;
606
603
  "aria-details"?: string;
607
- "aria-disabled"?: boolean | "false" | "true";
608
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup";
604
+ "aria-disabled"?: boolean | "true" | "false";
605
+ "aria-dropeffect"?: "none" | "link" | "copy" | "execute" | "move" | "popup";
609
606
  "aria-errormessage"?: string;
610
- "aria-expanded"?: boolean | "false" | "true";
607
+ "aria-expanded"?: boolean | "true" | "false";
611
608
  "aria-flowto"?: string;
612
- "aria-grabbed"?: boolean | "false" | "true";
613
- "aria-haspopup"?: boolean | "dialog" | "menu" | "false" | "tree" | "grid" | "listbox" | "true";
614
- "aria-hidden"?: boolean | "false" | "true";
615
- "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling";
609
+ "aria-grabbed"?: boolean | "true" | "false";
610
+ "aria-haspopup"?: boolean | "tree" | "dialog" | "menu" | "true" | "false" | "grid" | "listbox";
611
+ "aria-hidden"?: boolean | "true" | "false";
612
+ "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling";
616
613
  "aria-keyshortcuts"?: string;
617
614
  "aria-label"?: string;
618
615
  "aria-labelledby"?: string;
619
616
  "aria-level"?: number;
620
617
  "aria-live"?: "off" | "assertive" | "polite";
621
- "aria-modal"?: boolean | "false" | "true";
622
- "aria-multiline"?: boolean | "false" | "true";
623
- "aria-multiselectable"?: boolean | "false" | "true";
618
+ "aria-modal"?: boolean | "true" | "false";
619
+ "aria-multiline"?: boolean | "true" | "false";
620
+ "aria-multiselectable"?: boolean | "true" | "false";
624
621
  "aria-orientation"?: "horizontal" | "vertical";
625
622
  "aria-owns"?: string;
626
623
  "aria-placeholder"?: string;
627
624
  "aria-posinset"?: number;
628
- "aria-pressed"?: boolean | "false" | "true" | "mixed";
629
- "aria-readonly"?: boolean | "false" | "true";
630
- "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
631
- "aria-required"?: boolean | "false" | "true";
625
+ "aria-pressed"?: boolean | "true" | "false" | "mixed";
626
+ "aria-readonly"?: boolean | "true" | "false";
627
+ "aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
628
+ "aria-required"?: boolean | "true" | "false";
632
629
  "aria-roledescription"?: string;
633
630
  "aria-rowcount"?: number;
634
631
  "aria-rowindex"?: number;
635
632
  "aria-rowspan"?: number;
636
- "aria-selected"?: boolean | "false" | "true";
633
+ "aria-selected"?: boolean | "true" | "false";
637
634
  "aria-setsize"?: number;
638
- "aria-sort"?: "other" | "none" | "ascending" | "descending";
635
+ "aria-sort"?: "none" | "other" | "ascending" | "descending";
639
636
  "aria-valuemax"?: number;
640
637
  "aria-valuemin"?: number;
641
638
  "aria-valuenow"?: number;
@@ -4,13 +4,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
4
4
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
5
  import { CloseCircleFilled, FrownOutlined, MinusCircleFilled } from '@ant-design/icons';
6
6
  import { Button, Result } from 'antd';
7
- import { useHistory } from 'react-router-dom';
7
+ import { useNavigate } from 'react-router-dom';
8
8
  import { useSharedTranslation } from '../../hooks/useSharedTranslation';
9
9
  import { ErrorDisplayTypes } from '../../constants';
10
10
  function ErrorDisplay({ message, actionButton, showActionButton = true, type = ErrorDisplayTypes.ERROR }) {
11
11
  const { t, i18n } = useSharedTranslation();
12
- const history = useHistory();
13
- const _handleBackHomeClick = () => history.replace('/');
12
+ const navigate = useNavigate();
13
+ const _handleBackHomeClick = () => navigate('/');
14
14
  const BackHomeButton = (_jsx(Button, Object.assign({ type: "primary", onClick: _handleBackHomeClick }, { children: t('global.go_back_home') })));
15
15
  const errorByType = {
16
16
  [ErrorDisplayTypes.ERROR]: {
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorDisplay.js","sourceRoot":"","sources":["../../../src/components/ErrorDisplay/ErrorDisplay.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,iBAAiB,EAAE,aAAa,EAAE,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AACtF,OAAO,EAAC,MAA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,OAAO,GAAI,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,EAC9C,MAAM,EAAC,OAAO,EACd,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAC5B,KAAK,EAAE,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,WAAW,CAAC,IAAI,CAAC,CAAC,YAAY,GACvD,CACL,CAAC;AACN,CAAC;AAED,eAAe,YAAY,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IFilterAttribute, IFilterLibrary } from '../../../../../types/search';
3
2
  interface IFilterAttributeConditionProps {
4
3
  filter: IFilterAttribute | IFilterLibrary;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IFilterInputProps } from '../../Filter';
3
2
  declare const DateBetweenFilter: ({ filter, updateFilterValue }: IFilterInputProps) => JSX.Element;
4
3
  export default DateBetweenFilter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IFilterInputProps } from '../../Filter';
3
2
  declare const DateFilter: ({ filter, updateFilterValue }: IFilterInputProps) => JSX.Element;
4
3
  export default DateFilter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IFilterInputProps } from '../../Filter';
3
2
  declare const NumericFilter: ({ filter, updateFilterValue, onPressEnter }: IFilterInputProps) => JSX.Element;
4
3
  export default NumericFilter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IFilterInputProps } from '../../Filter';
3
2
  declare const TextFilter: ({ filter, updateFilterValue, onPressEnter }: IFilterInputProps) => JSX.Element;
4
3
  export default TextFilter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IFilterTree } from '../../../../types/search';
3
2
  interface IFilterTreeConditionProps {
4
3
  filter: IFilterTree;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const LibraryItemsListEmpty: () => JSX.Element;
3
2
  export default LibraryItemsListEmpty;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ITableCell } from '../../../../types/search';
3
2
  interface ICellProps {
4
3
  columnName: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Table: () => JSX.Element;
3
2
  export default Table;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const useSearchReducer: () => {
3
2
  state: import("./_types").ISearchState;
4
3
  dispatch: import("react").Dispatch<import("./searchReducer").SearchAction>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IRecordCardProps } from './_types';
3
2
  declare const RecordCard: ({ record, size, style, previewStyle, lang, withPreview, withLibrary, withColor, tile, simplistic }: IRecordCardProps) => JSX.Element;
4
3
  export default RecordCard;
@@ -1,6 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
- /// <reference types="trusted-types" />
4
2
  import { IRecordIdentityWhoAmI } from '../../../../types/records';
5
3
  interface IRecordSummaryProps {
6
4
  record: IRecordIdentityWhoAmI;
@@ -27,17 +25,17 @@ export declare const Wrapper: import("styled-components").IStyledComponent<"web"
27
25
  suppressHydrationWarning?: boolean;
28
26
  accessKey?: string;
29
27
  autoFocus?: boolean;
30
- contentEditable?: (boolean | "false" | "true") | "inherit";
28
+ contentEditable?: (boolean | "true" | "false") | "inherit";
31
29
  contextMenu?: string;
32
30
  dir?: string;
33
- draggable?: boolean | "false" | "true";
31
+ draggable?: boolean | "true" | "false";
34
32
  hidden?: boolean;
35
33
  id?: string;
36
34
  lang?: string;
37
35
  nonce?: string;
38
36
  placeholder?: string;
39
37
  slot?: string;
40
- spellCheck?: boolean | "false" | "true";
38
+ spellCheck?: boolean | "true" | "false";
41
39
  tabIndex?: number;
42
40
  title?: string;
43
41
  translate?: "yes" | "no";
@@ -66,53 +64,53 @@ export declare const Wrapper: import("styled-components").IStyledComponent<"web"
66
64
  results?: number;
67
65
  security?: string;
68
66
  unselectable?: "on" | "off";
69
- inputMode?: "url" | "search" | "text" | "none" | "numeric" | "tel" | "email" | "decimal";
67
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal";
70
68
  is?: string;
71
69
  children?: import("react").ReactNode;
72
70
  "aria-activedescendant"?: string;
73
- "aria-atomic"?: boolean | "false" | "true";
74
- "aria-autocomplete"?: "list" | "none" | "inline" | "both";
75
- "aria-busy"?: boolean | "false" | "true";
76
- "aria-checked"?: boolean | "false" | "true" | "mixed";
71
+ "aria-atomic"?: boolean | "true" | "false";
72
+ "aria-autocomplete"?: "none" | "list" | "inline" | "both";
73
+ "aria-busy"?: boolean | "true" | "false";
74
+ "aria-checked"?: boolean | "true" | "false" | "mixed";
77
75
  "aria-colcount"?: number;
78
76
  "aria-colindex"?: number;
79
77
  "aria-colspan"?: number;
80
78
  "aria-controls"?: string;
81
- "aria-current"?: boolean | "time" | "false" | "date" | "true" | "step" | "page" | "location";
79
+ "aria-current"?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date";
82
80
  "aria-describedby"?: string;
83
81
  "aria-details"?: string;
84
- "aria-disabled"?: boolean | "false" | "true";
85
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup";
82
+ "aria-disabled"?: boolean | "true" | "false";
83
+ "aria-dropeffect"?: "none" | "link" | "copy" | "execute" | "move" | "popup";
86
84
  "aria-errormessage"?: string;
87
- "aria-expanded"?: boolean | "false" | "true";
85
+ "aria-expanded"?: boolean | "true" | "false";
88
86
  "aria-flowto"?: string;
89
- "aria-grabbed"?: boolean | "false" | "true";
90
- "aria-haspopup"?: boolean | "dialog" | "menu" | "false" | "tree" | "grid" | "listbox" | "true";
91
- "aria-hidden"?: boolean | "false" | "true";
92
- "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling";
87
+ "aria-grabbed"?: boolean | "true" | "false";
88
+ "aria-haspopup"?: boolean | "tree" | "dialog" | "menu" | "true" | "false" | "grid" | "listbox";
89
+ "aria-hidden"?: boolean | "true" | "false";
90
+ "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling";
93
91
  "aria-keyshortcuts"?: string;
94
92
  "aria-label"?: string;
95
93
  "aria-labelledby"?: string;
96
94
  "aria-level"?: number;
97
95
  "aria-live"?: "off" | "assertive" | "polite";
98
- "aria-modal"?: boolean | "false" | "true";
99
- "aria-multiline"?: boolean | "false" | "true";
100
- "aria-multiselectable"?: boolean | "false" | "true";
96
+ "aria-modal"?: boolean | "true" | "false";
97
+ "aria-multiline"?: boolean | "true" | "false";
98
+ "aria-multiselectable"?: boolean | "true" | "false";
101
99
  "aria-orientation"?: "horizontal" | "vertical";
102
100
  "aria-owns"?: string;
103
101
  "aria-placeholder"?: string;
104
102
  "aria-posinset"?: number;
105
- "aria-pressed"?: boolean | "false" | "true" | "mixed";
106
- "aria-readonly"?: boolean | "false" | "true";
107
- "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
108
- "aria-required"?: boolean | "false" | "true";
103
+ "aria-pressed"?: boolean | "true" | "false" | "mixed";
104
+ "aria-readonly"?: boolean | "true" | "false";
105
+ "aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
106
+ "aria-required"?: boolean | "true" | "false";
109
107
  "aria-roledescription"?: string;
110
108
  "aria-rowcount"?: number;
111
109
  "aria-rowindex"?: number;
112
110
  "aria-rowspan"?: number;
113
- "aria-selected"?: boolean | "false" | "true";
111
+ "aria-selected"?: boolean | "true" | "false";
114
112
  "aria-setsize"?: number;
115
- "aria-sort"?: "other" | "none" | "ascending" | "descending";
113
+ "aria-sort"?: "none" | "other" | "ascending" | "descending";
116
114
  "aria-valuemax"?: number;
117
115
  "aria-valuemin"?: number;
118
116
  "aria-valuenow"?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leav/ui",
3
- "version": "0.0.1-alpha-4",
3
+ "version": "0.0.1-alpha-6",
4
4
  "description": "Shared React components and hooks",
5
5
  "scripts": {
6
6
  "prepublishOnly": "yarn build",
@@ -33,12 +33,15 @@
33
33
  "@testing-library/user-event": "14.4.3",
34
34
  "@types/dompurify": "3.0.3",
35
35
  "@types/jest": "29.0.2",
36
+ "@types/object-path": "0.11.1",
37
+ "@types/react-beautiful-dnd": "13.1.2",
38
+ "@types/react-table": "7.7.12",
39
+ "@types/uuid": "^9",
36
40
  "babel-jest": "29.3.1",
37
41
  "commander": "9.5.0",
38
42
  "jest": "29.0.3",
39
43
  "jest-environment-jsdom": "29.3.1",
40
44
  "jest-styled-components": "7.1.1",
41
- "react-router-dom": "5.3.3",
42
45
  "ts-jest": "29.0.1",
43
46
  "tsc-alias": "1.8.8",
44
47
  "typescript": "4.8.3"
@@ -53,7 +56,6 @@
53
56
  "react-dom": "18.2.0",
54
57
  "react-i18next": "12",
55
58
  "react-icons": ">=4",
56
- "react-router-dom": "5.3.3",
57
59
  "styled-components": ">=5.3"
58
60
  },
59
61
  "stableVersion": "1.0.0",
@@ -64,6 +66,15 @@
64
66
  "dompurify": "3.0.5",
65
67
  "html-react-parser": "4.2.2",
66
68
  "i18next-resources-to-backend": "1.1.4",
67
- "react-icons": "4.7.1"
69
+ "moment": "2.30.1",
70
+ "object-path": "0.11.8",
71
+ "react-beautiful-dnd": "13.1.1",
72
+ "react-icons": "4.7.1",
73
+ "react-markdown": "9.0.1",
74
+ "react-router-dom": "6.22.0",
75
+ "react-table": "7.8.0",
76
+ "react-table-sticky": "1.1.3",
77
+ "uuid": "9.0.1",
78
+ "xlsx": "0.18.5"
68
79
  }
69
80
  }