@plurid/plurid-ui-components-react 0.0.0-1 → 0.0.0-10

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 (29) hide show
  1. package/distribution/components/pluridal/notifications/Notification/index.d.ts +1 -1
  2. package/distribution/components/pluridal/toolbars/ToolbarControls/styled.d.ts +1 -1
  3. package/distribution/components/universal/index.d.ts +3 -0
  4. package/distribution/components/universal/inputs/EntityPill/index.d.ts +11 -0
  5. package/distribution/components/universal/inputs/EntityPill/styled.d.ts +5 -0
  6. package/distribution/components/universal/inputs/EntityPillGroup/index.d.ts +13 -0
  7. package/distribution/components/universal/inputs/EntityPillGroup/styled.d.ts +5 -0
  8. package/distribution/components/universal/inputs/InputDescriptor/index.d.ts +3 -1
  9. package/distribution/components/universal/inputs/InputSwitch/index.d.ts +4 -1
  10. package/distribution/components/universal/inputs/Switch/index.d.ts +1 -0
  11. package/distribution/components/universal/inputs/Switch/styled.d.ts +1 -0
  12. package/distribution/components/universal/inputs/Textline/index.d.ts +2 -0
  13. package/distribution/components/universal/inputs/index.d.ts +2 -0
  14. package/distribution/components/universal/markers/Spinner/index.d.ts +2 -0
  15. package/distribution/components/universal/varia/CopyableLine/index.d.ts +12 -0
  16. package/distribution/components/universal/varia/NewPageLink/index.d.ts +14 -0
  17. package/distribution/components/universal/varia/NewPageLink/styled.d.ts +3 -0
  18. package/distribution/components/universal/varia/ScrollableLine/index.d.ts +0 -3
  19. package/distribution/components/universal/varia/ScrollableLine/styled.d.ts +0 -3
  20. package/distribution/components/universal/varia/index.d.ts +1 -0
  21. package/distribution/data/interfaces/index.d.ts +4 -0
  22. package/distribution/index.d.ts +1 -2
  23. package/distribution/index.es.js +2709 -3242
  24. package/distribution/index.es.js.map +1 -1
  25. package/distribution/index.js +2727 -3252
  26. package/distribution/index.js.map +1 -1
  27. package/package.json +38 -35
  28. package/distribution/data/constants/index.d.ts +0 -8
  29. package/distribution/utilities/react/index.d.ts +0 -10
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { notifications } from '@plurid/plurid-ui-state-react';
3
2
  import { Theme } from '@plurid/plurid-themes';
3
+ import { notifications } from '@plurid/plurid-ui-state-react';
4
4
  export interface NotificationOwnProperties {
5
5
  data: notifications.Types.Notification;
6
6
  theme: Theme;
@@ -1,6 +1,6 @@
1
1
  import { Theme } from '@plurid/plurid-themes';
2
2
  import { VerticalPositions } from "../../../../data/enumerations";
3
- interface IStyledToolbarControls {
3
+ export interface IStyledToolbarControls {
4
4
  position: keyof typeof VerticalPositions;
5
5
  theme: Theme;
6
6
  }
@@ -17,6 +17,8 @@ declare const universal: {
17
17
  };
18
18
  inputs: {
19
19
  Dropdown: import("react").FC<import("./inputs/Dropdown").DropdownProperties>;
20
+ EntityPill: import("react").FC<import("./inputs/EntityPill").EntityPillProperties>;
21
+ EntityPillGroup: import("react").FC<import("./inputs/EntityPillGroup").EntityPillGroupProperties>;
20
22
  InputBox: import("react").FC<import("./inputs/InputBox").InputBoxProperties>;
21
23
  InputDescriptor: import("react").FC<import("./inputs/InputDescriptor").InputDescriptorProperties>;
22
24
  InputLine: import("react").FC<import("./inputs/InputLine").InputLineProperties>;
@@ -39,6 +41,7 @@ declare const universal: {
39
41
  };
40
42
  varia: {
41
43
  CopyableLine: import("react").FC<import("./varia/CopyableLine").CopyableLineProperties>;
44
+ NewPageLink: import("react").FC<import("./varia/NewPageLink").NewPageLinkProperties>;
42
45
  ScrollableLine: import("react").FC<import("./varia/ScrollableLine").ScrollableLineProperties>;
43
46
  TextItem: import("react").FC<import("./varia/TextItem").TextItemProperties>;
44
47
  };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Theme } from '@plurid/plurid-themes';
3
+ export interface EntityPillProperties {
4
+ id: string;
5
+ remove: (id: string) => void;
6
+ text?: string;
7
+ theme?: Theme;
8
+ style?: React.CSSProperties;
9
+ }
10
+ declare const EntityPill: React.FC<EntityPillProperties>;
11
+ export default EntityPill;
@@ -0,0 +1,5 @@
1
+ import { Theme } from '@plurid/plurid-themes';
2
+ export interface IStyledEntityPill {
3
+ theme: Theme;
4
+ }
5
+ export declare const StyledEntityPill: import("styled-components").StyledComponent<"div", any, IStyledEntityPill, never>;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { Theme } from '@plurid/plurid-themes';
3
+ import { PluridUIEntityPillData } from "../../../../data/interfaces";
4
+ export interface EntityPillGroupProperties {
5
+ entities: (string | PluridUIEntityPillData)[];
6
+ remove: (id: string) => void;
7
+ keyFix?: string;
8
+ theme?: Theme;
9
+ style?: React.CSSProperties;
10
+ pillStyle?: React.CSSProperties;
11
+ }
12
+ declare const EntityPillGroup: React.FC<EntityPillGroupProperties>;
13
+ export default EntityPillGroup;
@@ -0,0 +1,5 @@
1
+ import { Theme } from '@plurid/plurid-themes';
2
+ export interface IStyledEntityPillGroup {
3
+ theme: Theme;
4
+ }
5
+ export declare const StyledEntityPillGroup: import("styled-components").StyledComponent<"div", any, IStyledEntityPillGroup, never>;
@@ -3,7 +3,9 @@ import { Theme } from '@plurid/plurid-themes';
3
3
  export interface InputDescriptorProperties {
4
4
  name: string;
5
5
  show: boolean;
6
- theme: Theme;
6
+ theme?: Theme;
7
+ style?: React.CSSProperties;
8
+ className?: string;
7
9
  }
8
10
  declare const InputDescriptor: React.FC<InputDescriptorProperties>;
9
11
  export default InputDescriptor;
@@ -1,10 +1,13 @@
1
1
  import React from 'react';
2
+ import { Theme } from '@plurid/plurid-themes';
2
3
  export interface InputSwitchProperties {
3
4
  name: string;
4
5
  checked: boolean;
5
- theme: any;
6
6
  atChange: () => void;
7
+ theme?: Theme;
7
8
  compact?: boolean;
9
+ style?: React.CSSProperties;
10
+ className?: string;
8
11
  }
9
12
  declare const InputSwitch: React.FC<InputSwitchProperties>;
10
13
  export default InputSwitch;
@@ -7,6 +7,7 @@ export interface SwitchProperties {
7
7
  round?: boolean;
8
8
  exclusive?: boolean;
9
9
  accent?: string;
10
+ Icon?: React.FC<any>;
10
11
  atChange: () => void;
11
12
  }
12
13
  declare const Switch: React.FC<SwitchProperties>;
@@ -1,2 +1,3 @@
1
1
  export declare const StyledSwitch: any;
2
2
  export declare const StyledSwitchSlider: any;
3
+ export declare const StyledSwitchIcon: any;
@@ -22,6 +22,7 @@ export interface TextlineProperties {
22
22
  width?: string | number;
23
23
  error?: boolean;
24
24
  enterIconLeft?: boolean;
25
+ enterEmpty?: boolean;
25
26
  enterAtClick?: () => void;
26
27
  escapeClear?: boolean;
27
28
  ariaLabel?: string;
@@ -51,6 +52,7 @@ export declare type TextlineType = TextlineProperties & React.RefAttributes<any>
51
52
  * @param error optional - `boolean`
52
53
  *
53
54
  * @param enterIconLeft optional - `boolean`
55
+ * @param enterEmpty optional - `boolean`
54
56
  * @param enterAtClick optional - `() => void`
55
57
  * @param escapeClear optional - `boolean`
56
58
  *
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  declare const inputs: {
3
3
  Dropdown: import("react").FC<import("./Dropdown").DropdownProperties>;
4
+ EntityPill: import("react").FC<import("./EntityPill").EntityPillProperties>;
5
+ EntityPillGroup: import("react").FC<import("./EntityPillGroup").EntityPillGroupProperties>;
4
6
  InputBox: import("react").FC<import("./InputBox").InputBoxProperties>;
5
7
  InputDescriptor: import("react").FC<import("./InputDescriptor").InputDescriptorProperties>;
6
8
  InputLine: import("react").FC<import("./InputLine").InputLineProperties>;
@@ -4,6 +4,8 @@ import { Sizes } from "../../../../data/interfaces";
4
4
  export interface SpinnerProperties {
5
5
  theme?: Theme;
6
6
  size?: Sizes;
7
+ style?: React.CSSProperties;
8
+ className?: string;
7
9
  }
8
10
  declare const Spinner: React.FC<SpinnerProperties>;
9
11
  export default Spinner;
@@ -1,7 +1,19 @@
1
1
  import React from 'react';
2
+ import { Theme } from '@plurid/plurid-themes';
2
3
  export interface CopyableLineProperties {
4
+ /**
5
+ * Data to be copied.
6
+ */
3
7
  data: string;
8
+ /**
9
+ * Data to be shown.
10
+ */
11
+ theme?: Theme;
4
12
  viewData?: string;
13
+ copyMessage?: string;
14
+ copyMessageTime?: number;
15
+ style?: React.CSSProperties;
16
+ className?: string;
5
17
  }
6
18
  declare const CopyableLine: React.FC<CopyableLineProperties>;
7
19
  export default CopyableLine;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ export interface NewPageLinkProperties {
3
+ link: string;
4
+ text: string | JSX.Element;
5
+ style?: React.CSSProperties;
6
+ className?: string;
7
+ }
8
+ /**
9
+ * Opens the `link` in new page/tab.
10
+ *
11
+ * @param properties
12
+ */
13
+ declare const NewPageLink: React.FC<NewPageLinkProperties>;
14
+ export default NewPageLink;
@@ -0,0 +1,3 @@
1
+ export interface IStyledNewPageLink {
2
+ }
3
+ export declare const StyledNewPageLink: import("styled-components").StyledComponent<"a", any, IStyledNewPageLink, never>;
@@ -1,9 +1,6 @@
1
1
  import React from 'react';
2
- import { Theme } from '@plurid/plurid-themes';
3
2
  export interface ScrollableLineProperties {
4
3
  text: string;
5
- theme?: Theme;
6
- level?: number;
7
4
  style?: React.CSSProperties;
8
5
  className?: string;
9
6
  }
@@ -1,6 +1,3 @@
1
- import { Theme } from '@plurid/plurid-themes';
2
1
  export interface IStyledScrollableLine {
3
- theme: Theme;
4
- level: number;
5
2
  }
6
3
  export declare const StyledScrollableLine: import("styled-components").StyledComponent<"div", any, IStyledScrollableLine, never>;
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const varia: {
3
3
  CopyableLine: import("react").FC<import("./CopyableLine").CopyableLineProperties>;
4
+ NewPageLink: import("react").FC<import("./NewPageLink").NewPageLinkProperties>;
4
5
  ScrollableLine: import("react").FC<import("./ScrollableLine").ScrollableLineProperties>;
5
6
  TextItem: import("react").FC<import("./TextItem").TextItemProperties>;
6
7
  };
@@ -3,6 +3,10 @@ export interface PluridUIDropdownSelectable {
3
3
  id: string;
4
4
  value: string;
5
5
  }
6
+ export interface PluridUIEntityPillData {
7
+ id: string;
8
+ text?: string;
9
+ }
6
10
  export declare type Small = 'small';
7
11
  export declare type Normal = 'normal';
8
12
  export declare type Large = 'large';
@@ -1,5 +1,4 @@
1
- import { fonts } from './data/constants';
2
1
  import universal from "./components/universal";
3
2
  import pluridal from "./components/pluridal";
4
3
  export * from './data/interfaces';
5
- export { universal, pluridal, fonts, };
4
+ export { universal, pluridal, };