@rio-cloud/rio-uikit 0.16.0-beta-2 → 0.16.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/lib/types.ts CHANGED
@@ -633,14 +633,19 @@ export interface FadeProps {
633
633
  onExited?: Function;
634
634
  }
635
635
 
636
+ type FilePickerRenderProps = {
637
+ isDragActive: boolean;
638
+ };
639
+
636
640
  export interface FilePickerProps {
637
- displayMode?: 'button';
641
+ displayMode?: 'button' | 'dropzone' | 'full';
638
642
  multiple?: boolean; // multi select
639
643
  label?: string | React.ReactNode;
640
644
  maxSize?: number; // max file size
641
- onPick: (files: FileList | null) => any;
645
+ onPick: (files: FileList | null) => void;
642
646
  className?: string;
643
647
  accept?: string;
648
+ children?: ({ isDragActive }: FilePickerRenderProps) => any;
644
649
  }
645
650
 
646
651
  export interface ForbiddenStateProps extends BaseStateProps {}
@@ -1773,20 +1778,24 @@ export interface TableSettingsDialogProps {
1773
1778
  immediateChange?: boolean;
1774
1779
  }
1775
1780
 
1781
+ export enum TableViewTogglesValues {
1782
+ VIEW_TYPE_SINGLE_CARD = 'SINGLE_CARD',
1783
+ VIEW_TYPE_MULTI_CARDS = 'MULTI_CARDS',
1784
+ VIEW_TYPE_TABLE = 'TABLE',
1785
+ }
1786
+
1776
1787
  export interface TableViewTogglesProps {
1777
1788
  viewType?: TableViewTogglesValues;
1778
1789
  initialViewType?: TableViewTogglesValues;
1779
1790
  disabledViewTypes?: TableViewTogglesValues[];
1780
1791
  onViewTypeChange: (viewType: TableViewTogglesValues) => void;
1792
+ tableViewTooltipContent?: string | React.ReactNode;
1793
+ singleCardViewTooltipContent?: string | React.ReactNode;
1794
+ multiCardsViewTooltipContent?: string | React.ReactNode;
1795
+ disabled?: boolean;
1781
1796
  className?: string;
1782
1797
  }
1783
1798
 
1784
- export enum TableViewTogglesValues {
1785
- VIEW_TYPE_SINGLE_CARD = 'SINGLE_CARD',
1786
- VIEW_TYPE_MULTI_CARDS = 'MULTI_CARDS',
1787
- VIEW_TYPE_TABLE = 'TABLE',
1788
- }
1789
-
1790
1799
  export interface TagProps {
1791
1800
  active?: boolean;
1792
1801
  className?: string;
@@ -2047,6 +2056,31 @@ export type UseEvent<T extends keyof WindowEventMap> = (
2047
2056
  target?: HTMLElement
2048
2057
  ) => void;
2049
2058
 
2059
+ type EventCallback = (this: Document, event_: any) => any;
2060
+ type OnChangeEventCallback = (this: Document, event_: any, isOpen: boolean) => any;
2061
+
2062
+ type RequestFullscreenOptions = {
2063
+ // string will help to ease type casting
2064
+ navigationUI?: string | 'auto' | 'hide' | 'show';
2065
+ };
2066
+
2067
+ type FullScreenOptions = {
2068
+ element?: HTMLElement;
2069
+ onChange?: OnChangeEventCallback;
2070
+ onError?: EventCallback;
2071
+ requestFullscreenOptions?: RequestFullscreenOptions;
2072
+ };
2073
+
2074
+ type FullscreenApi = {
2075
+ requestFullscreen: () => void | ((element?: HTMLElement) => Promise<unknown>);
2076
+ exitFullscreen: () => void | (() => Promise<unknown>);
2077
+ toggleFullscreen: () => void | ((element?: HTMLElement) => Promise<unknown>);
2078
+ isEnabled: boolean;
2079
+ isFullscreen: boolean;
2080
+ };
2081
+
2082
+ export type UseFullscreen = ({}: FullScreenOptions) => FullscreenApi | undefined;
2083
+
2050
2084
  export type UseInterval = (callback: () => void, delay?: number) => React.MutableRefObject<object>;
2051
2085
 
2052
2086
  export type UseKey<T extends keyof WindowEventMap> = (
package/lib/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.16.0-beta-2"
2
+ "version": "0.16.0"
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rio-cloud/rio-uikit",
3
- "version": "0.16.0-beta-2",
3
+ "version": "0.16.0",
4
4
  "description": "The RIO UIKIT component library",
5
5
  "repository": "https://collaboration.msi.audi.com/stash/projects/RIOFRONT/repos/uikit-web/browse",
6
6
  "scripts": {
@@ -44,8 +44,8 @@
44
44
  "@babel/preset-react": "^7.16.7",
45
45
  "@babel/runtime": "^7.16.7",
46
46
  "@svgr/webpack": "^6.2.1",
47
- "@testing-library/react": "^12.1.2",
48
- "@testing-library/user-event": "^13.5.0",
47
+ "@testing-library/react": "12.1.2",
48
+ "@testing-library/user-event": "13.5.0",
49
49
  "@types/jest": "^27.4.1",
50
50
  "@types/lodash": "^4.14.178",
51
51
  "@types/react": "^17.0.39",
@@ -123,19 +123,19 @@
123
123
  "react-dom": ">16.8.6"
124
124
  },
125
125
  "dependencies": {
126
- "@popperjs/core": "2.11.2",
126
+ "@popperjs/core": "2.11.5",
127
127
  "classlist-polyfill": "1.2.0",
128
128
  "classnames": "2.3.1",
129
129
  "cssuseragent": "2.1.31",
130
130
  "lodash": "4.17.21",
131
- "moment": "2.29.1",
131
+ "moment": "2.29.2",
132
132
  "natural-orderby": "2.0.3",
133
133
  "prop-types": "15.8.1",
134
134
  "react-bootstrap": "1.6.4",
135
- "react-content-loader": "6.1.0",
135
+ "react-content-loader": "6.2.0",
136
136
  "react-datetime": "github:rio-cloud/react-datetime#v3.1.0-1-merged",
137
137
  "react-debounce-input": "3.2.5",
138
- "react-dropzone": "4.3.0",
138
+ "react-dropzone": "12.0.5",
139
139
  "react-input-mask": "3.0.0-alpha.2",
140
140
  "react-motion": "0.5.2",
141
141
  "react-notifications": "1.7.3",