@agility/plenum-ui 1.1.7 → 1.1.72

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 (123) hide show
  1. package/.prettierrc +4 -4
  2. package/README.md +34 -0
  3. package/lib/components/Combobox/Combobox.d.ts +9 -2
  4. package/lib/components/Dropdown/Dropdown.d.ts +3 -3
  5. package/lib/components/Forms/BaseField/BaseField.d.ts +2 -0
  6. package/lib/components/Forms/TextInput/TextInput.d.ts +1 -0
  7. package/lib/components/Forms/TextInputAddon/TextInputAddon.d.ts +2 -0
  8. package/lib/components/Forms/TextInputSelect/TextInputSelect.d.ts +2 -0
  9. package/lib/components/TreeView/TreeItem/TreeItem.d.ts +2 -11
  10. package/lib/components/TreeView/TreeItem/TreeItem.stories.d.ts +1 -4
  11. package/lib/components/TreeView/context.d.ts +8 -5
  12. package/lib/components/TreeView/sampleData.d.ts +5 -5
  13. package/lib/index.esm.js +169 -81
  14. package/lib/index.esm.js.map +1 -1
  15. package/lib/index.js +168 -80
  16. package/lib/index.js.map +1 -1
  17. package/package.json +88 -81
  18. package/coverage/Forms/TextInputSelect/InputSelect/InputSelect.tsx.html +0 -204
  19. package/coverage/Forms/TextInputSelect/InputSelect/index.html +0 -155
  20. package/coverage/Select/Select.tsx.html +0 -264
  21. package/coverage/Select/index.html +0 -153
  22. package/coverage/Select.tsx.html +0 -261
  23. package/coverage/agility-component-lib-react/index.html +0 -116
  24. package/coverage/agility-component-lib-react/src/components/Button/Button.tsx.html +0 -349
  25. package/coverage/agility-component-lib-react/src/components/Button/index.html +0 -116
  26. package/coverage/agility-component-lib-react/src/components/Checkbox/Checkbox.tsx.html +0 -235
  27. package/coverage/agility-component-lib-react/src/components/Checkbox/index.html +0 -156
  28. package/coverage/agility-component-lib-react/src/components/Forms/BaseField/BaseField.tsx.html +0 -418
  29. package/coverage/agility-component-lib-react/src/components/Forms/BaseField/index.html +0 -116
  30. package/coverage/agility-component-lib-react/src/components/Forms/Checkbox/Checkbox.tsx.html +0 -334
  31. package/coverage/agility-component-lib-react/src/components/Forms/Checkbox/index.html +0 -116
  32. package/coverage/agility-component-lib-react/src/components/Forms/InputCounter/InputCounter.tsx.html +0 -139
  33. package/coverage/agility-component-lib-react/src/components/Forms/InputCounter/index.html +0 -116
  34. package/coverage/agility-component-lib-react/src/components/Forms/InputLabel/InputLabel.tsx.html +0 -211
  35. package/coverage/agility-component-lib-react/src/components/Forms/InputLabel/index.html +0 -131
  36. package/coverage/agility-component-lib-react/src/components/Forms/InputLabel/index.ts.html +0 -94
  37. package/coverage/agility-component-lib-react/src/components/Forms/Radio/Radio.tsx.html +0 -349
  38. package/coverage/agility-component-lib-react/src/components/Forms/Radio/index.html +0 -116
  39. package/coverage/agility-component-lib-react/src/components/Forms/Select/Select.tsx.html +0 -337
  40. package/coverage/agility-component-lib-react/src/components/Forms/Select/index.html +0 -116
  41. package/coverage/agility-component-lib-react/src/components/Forms/TextInputAddon/InputCta/InputCta.tsx.html +0 -271
  42. package/coverage/agility-component-lib-react/src/components/Forms/TextInputAddon/InputCta/index.html +0 -116
  43. package/coverage/agility-component-lib-react/src/components/Forms/TextInputSelect/InputSelect/InputSelect.tsx.html +0 -217
  44. package/coverage/agility-component-lib-react/src/components/Forms/TextInputSelect/InputSelect/index.html +0 -116
  45. package/coverage/agility-component-lib-react/src/components/Radio/Radio.tsx.html +0 -243
  46. package/coverage/agility-component-lib-react/src/components/Radio/index.html +0 -156
  47. package/coverage/agility-component-lib-react/src/components/Switch/Switch.tsx.html +0 -241
  48. package/coverage/agility-component-lib-react/src/components/Switch/index.html +0 -116
  49. package/coverage/agility-component-lib-react/src/util/DynamicIcons.tsx.html +0 -151
  50. package/coverage/agility-component-lib-react/src/util/Loader.tsx.html +0 -139
  51. package/coverage/agility-component-lib-react/src/util/index.html +0 -131
  52. package/coverage/agility-component-lib-react/styleMock.js.html +0 -91
  53. package/coverage/base.css +0 -224
  54. package/coverage/block-navigation.js +0 -87
  55. package/coverage/clover.xml +0 -145
  56. package/coverage/coverage-final.json +0 -15
  57. package/coverage/favicon.png +0 -0
  58. package/coverage/index.html +0 -281
  59. package/coverage/lcov-report/agility-component-lib-react/index.html +0 -153
  60. package/coverage/lcov-report/agility-component-lib-react/src/components/Button/Button.tsx.html +0 -255
  61. package/coverage/lcov-report/agility-component-lib-react/src/components/Button/index.html +0 -156
  62. package/coverage/lcov-report/agility-component-lib-react/src/components/Checkbox/Checkbox.tsx.html +0 -235
  63. package/coverage/lcov-report/agility-component-lib-react/src/components/Checkbox/index.html +0 -156
  64. package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/BaseField/BaseField.tsx.html +0 -330
  65. package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/BaseField/index.html +0 -158
  66. package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/InputCounter/InputCounter.tsx.html +0 -147
  67. package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/InputCounter/index.html +0 -158
  68. package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/TextInputAddon/InputCta/InputCta.tsx.html +0 -258
  69. package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/TextInputAddon/InputCta/index.html +0 -159
  70. package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/TextInputSelect/InputSelect/InputSelect.tsx.html +0 -210
  71. package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/TextInputSelect/InputSelect/index.html +0 -159
  72. package/coverage/lcov-report/agility-component-lib-react/src/components/Radio/Radio.tsx.html +0 -243
  73. package/coverage/lcov-report/agility-component-lib-react/src/components/Radio/index.html +0 -156
  74. package/coverage/lcov-report/agility-component-lib-react/src/components/Switch/Switch.tsx.html +0 -225
  75. package/coverage/lcov-report/agility-component-lib-react/src/components/Switch/index.html +0 -156
  76. package/coverage/lcov-report/agility-component-lib-react/src/util/DynamicIcons.tsx.html +0 -137
  77. package/coverage/lcov-report/agility-component-lib-react/src/util/index.html +0 -155
  78. package/coverage/lcov-report/agility-component-lib-react/styleMock.js.html +0 -90
  79. package/coverage/lcov-report/base.css +0 -354
  80. package/coverage/lcov-report/block-navigation.js +0 -82
  81. package/coverage/lcov-report/favicon.png +0 -0
  82. package/coverage/lcov-report/index.html +0 -385
  83. package/coverage/lcov-report/prettify.css +0 -101
  84. package/coverage/lcov-report/prettify.js +0 -955
  85. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  86. package/coverage/lcov-report/sorter.js +0 -189
  87. package/coverage/lcov.info +0 -267
  88. package/coverage/prettify.css +0 -1
  89. package/coverage/prettify.js +0 -2
  90. package/coverage/sort-arrow-sprite.png +0 -0
  91. package/coverage/sorter.js +0 -196
  92. package/lib/components/Checkbox/Checkbox.d.ts +0 -19
  93. package/lib/components/Checkbox/Checkbox.stories.d.ts +0 -12
  94. package/lib/components/Checkbox/Checkbox.test.d.ts +0 -1
  95. package/lib/components/Checkbox/index.d.ts +0 -1
  96. package/lib/components/DatePicker/DatePicker.d.ts +0 -7
  97. package/lib/components/DatePicker/DatePicker.stories.d.ts +0 -6
  98. package/lib/components/DatePicker/DatePicker.test.d.ts +0 -1
  99. package/lib/components/DatePicker/index.d.ts +0 -1
  100. package/lib/components/Forms/InputCta/InputCta.d.ts +0 -16
  101. package/lib/components/Forms/InputCta/InputCta.stories.d.ts +0 -6
  102. package/lib/components/Forms/InputCta/InputCta.test.d.ts +0 -1
  103. package/lib/components/Forms/InputCta/index.d.ts +0 -1
  104. package/lib/components/InputCounter/InputCounter.d.ts +0 -16
  105. package/lib/components/InputCounter/InputCounter.stories.d.ts +0 -6
  106. package/lib/components/InputCounter/InputCounter.test.d.ts +0 -1
  107. package/lib/components/InputCounter/index.d.ts +0 -1
  108. package/lib/components/Radio/Radio.d.ts +0 -21
  109. package/lib/components/Radio/Radio.stories.d.ts +0 -12
  110. package/lib/components/Radio/Radio.test.d.ts +0 -1
  111. package/lib/components/Radio/index.d.ts +0 -1
  112. package/lib/components/Select/Select.d.ts +0 -25
  113. package/lib/components/Select/Select.stories.d.ts +0 -11
  114. package/lib/components/Select/Select.test.d.ts +0 -1
  115. package/lib/components/Select/index.d.ts +0 -1
  116. package/lib/components/TextInput/TextInput.d.ts +0 -46
  117. package/lib/components/TextInput/TextInput.stories.d.ts +0 -10
  118. package/lib/components/TextInput/index.d.ts +0 -1
  119. package/lib/components/TextInputAddon/TextInputAddon.d.ts +0 -51
  120. package/lib/components/TextInputAddon/TextInputAddon.stories.d.ts +0 -6
  121. package/lib/components/TextInputAddon/index.d.ts +0 -1
  122. package/lib/components/TreeView/types/tree.types.d.ts +0 -21
  123. package/yarn-error.log +0 -12463
@@ -1,19 +0,0 @@
1
- import { FC } from 'react';
2
- export interface CheckboxProps {
3
- /** Checkbox label */
4
- label: string;
5
- /** Checkbox ID */
6
- id: string;
7
- /** Disabled state */
8
- isDisabled?: boolean;
9
- /** Check state */
10
- isChecked?: boolean;
11
- /** If field is required */
12
- isRequired?: boolean;
13
- /** Error state */
14
- isError?: boolean;
15
- /** Message or description */
16
- message?: string;
17
- }
18
- /** Comment */
19
- export declare const Checkbox: FC<CheckboxProps>;
@@ -1,12 +0,0 @@
1
- import { Meta } from '@storybook/react/types-6-0';
2
- import { Story } from '@storybook/react';
3
- import { CheckboxProps } from './Checkbox';
4
- declare const _default: Meta<import('@storybook/react').Args>;
5
- export default _default;
6
- export declare const AllVariations: Story<CheckboxProps>;
7
- export declare const Default: Story<CheckboxProps>;
8
- export declare const Description: Story<CheckboxProps>;
9
- export declare const Required: Story<CheckboxProps>;
10
- export declare const Checked: Story<CheckboxProps>;
11
- export declare const ErrorState: Story<CheckboxProps>;
12
- export declare const Disabled: Story<CheckboxProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export * from './Checkbox';
@@ -1,7 +0,0 @@
1
- import { FC } from 'react';
2
- export interface DatePickerProps {
3
- /** Prop comment */
4
- prop: string;
5
- }
6
- /** Comment */
7
- export declare const DatePicker: FC<DatePickerProps>;
@@ -1,6 +0,0 @@
1
- import { Meta } from '@storybook/react/types-6-0';
2
- import { Story } from '@storybook/react';
3
- import { DatePickerProps } from './DatePicker';
4
- declare const _default: Meta<import('@storybook/react').Args>;
5
- export default _default;
6
- export declare const DatePickerComponent: Story<DatePickerProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export * from './DatePicker';
@@ -1,16 +0,0 @@
1
- import { FC } from 'react';
2
- import { IconName } from '../../../util/DynamicIcons';
3
- export interface InputCtaProps {
4
- /** Icon name */
5
- icon?: IconName;
6
- /** CTA label */
7
- ctaLabel?: string;
8
- /** Alignment */
9
- align: 'left' | 'right';
10
- /** Show the CTA without Background color and a border seperator */
11
- isClear?: boolean;
12
- /** Onclick callback */
13
- onClickHandler?(): void;
14
- }
15
- /** Comment */
16
- export declare const InputCta: FC<InputCtaProps>;
@@ -1,6 +0,0 @@
1
- import { Meta } from '@storybook/react/types-6-0';
2
- import { Story } from '@storybook/react';
3
- import { InputCtaProps } from './InputCta';
4
- declare const _default: Meta<import('@storybook/react').Args>;
5
- export default _default;
6
- export declare const InputCtaComponent: Story<InputCtaProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export * from './InputCta';
@@ -1,16 +0,0 @@
1
- import { FC } from 'react';
2
- import '../../tailwind.css';
3
- export interface InputCounterProps {
4
- /**
5
- * Counter limit
6
- */
7
- limit: number;
8
- /**
9
- * String or number to
10
- */
11
- current: number;
12
- }
13
- /**
14
- * Primary UI component for user interaction
15
- */
16
- export declare const InputCounter: FC<InputCounterProps>;
@@ -1,6 +0,0 @@
1
- import { Meta } from '@storybook/react/types-6-0';
2
- import { Story } from '@storybook/react';
3
- import { InputCounterProps } from './InputCounter';
4
- declare const _default: Meta<import('@storybook/react').Args>;
5
- export default _default;
6
- export declare const Counter: Story<InputCounterProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export * from './InputCounter';
@@ -1,21 +0,0 @@
1
- import { FC } from 'react';
2
- export interface RadioProps {
3
- /** group name */
4
- name: string;
5
- /** Radio label */
6
- label: string;
7
- /** Radio ID */
8
- id: string;
9
- /** Disabled state */
10
- isDisabled?: boolean;
11
- /** Check state */
12
- isChecked?: boolean;
13
- /** If field is required */
14
- isRequired?: boolean;
15
- /** Error state */
16
- isError?: boolean;
17
- /** Message or description */
18
- message?: string;
19
- }
20
- /** Comment */
21
- export declare const Radio: FC<RadioProps>;
@@ -1,12 +0,0 @@
1
- import { Meta } from '@storybook/react/types-6-0';
2
- import { Story } from '@storybook/react';
3
- import { RadioProps } from './Radio';
4
- declare const _default: Meta<import('@storybook/react').Args>;
5
- export default _default;
6
- export declare const AllVariations: Story<RadioProps>;
7
- export declare const Default: Story<RadioProps>;
8
- export declare const Description: Story<RadioProps>;
9
- export declare const Required: Story<RadioProps>;
10
- export declare const Checked: Story<RadioProps>;
11
- export declare const ErrorState: Story<RadioProps>;
12
- export declare const Disabled: Story<RadioProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export * from './Radio';
@@ -1,25 +0,0 @@
1
- import { FC } from 'react';
2
- export declare type SelectOptions = {
3
- label: string;
4
- value: string;
5
- };
6
- export interface SelectProps {
7
- /** Label */
8
- label?: string;
9
- /** Select ID prop */
10
- id: string;
11
- /** Select name prop */
12
- name: string;
13
- /** List of options to display in the select menu */
14
- options: SelectOptions[];
15
- /** Select name prop */
16
- onChange?(value: string): void;
17
- /** Select disabled state */
18
- isDisabled?: boolean;
19
- /** Select error state */
20
- isError?: boolean;
21
- /** Select required state */
22
- isRequired?: boolean;
23
- }
24
- /** Comment */
25
- export declare const Select: FC<SelectProps>;
@@ -1,11 +0,0 @@
1
- import { Meta } from '@storybook/react/types-6-0';
2
- import { Story } from '@storybook/react';
3
- import { SelectProps } from './Select';
4
- declare const _default: Meta<import('@storybook/react').Args>;
5
- export default _default;
6
- export declare const AllVariations: Story<SelectProps>;
7
- export declare const Base: Story<SelectProps>;
8
- export declare const Label: Story<SelectProps>;
9
- export declare const Disabled: Story<SelectProps>;
10
- export declare const Required: Story<SelectProps>;
11
- export declare const Error: Story<SelectProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export * from './Select';
@@ -1,46 +0,0 @@
1
- import { FC } from 'react';
2
- import '../../tailwind.css';
3
- declare type Type =
4
- | 'text'
5
- | 'email'
6
- | 'number'
7
- | 'password'
8
- | 'search'
9
- | 'tel'
10
- | 'url'
11
- | 'date'
12
- | 'datetime-local'
13
- | 'month'
14
- | 'time'
15
- | 'week'
16
- | 'currency';
17
- export interface TextInputProps {
18
- /** Input type*/
19
- type: Type;
20
- /** Input ID */
21
- id: string;
22
- /** Input Name */
23
- name: string;
24
- /** Label for the input */
25
- label: string;
26
- /** Force the focus state on the input */
27
- isFocused?: boolean;
28
- /** Error state */
29
- isError?: boolean;
30
- /** If field is required */
31
- isRequired?: boolean;
32
- /** Disabled state */
33
- isDisabled?: boolean;
34
- /** Set default value */
35
- defaultValue?: string;
36
- /** Message shown under the text field */
37
- message?: string;
38
- /** Input character counter */
39
- showCounter?: boolean;
40
- /** Max length of input character */
41
- maxLength?: number;
42
- /** Callback on change */
43
- onChange?(value: string): void;
44
- }
45
- export declare const TextInput: FC<TextInputProps>;
46
- export {};
@@ -1,10 +0,0 @@
1
- import { Meta } from '@storybook/react/types-6-0';
2
- import { Story } from '@storybook/react';
3
- import { TextInputProps } from './TextInput';
4
- declare const _default: Meta<import('@storybook/react').Args>;
5
- export default _default;
6
- export declare const Default: Story<TextInputProps>;
7
- export declare const Counter: Story<TextInputProps>;
8
- export declare const Required: Story<TextInputProps>;
9
- export declare const Error: Story<TextInputProps>;
10
- export declare const Disabled: Story<TextInputProps>;
@@ -1 +0,0 @@
1
- export * from './TextInput';
@@ -1,51 +0,0 @@
1
- import { FC } from 'react';
2
- import { IconName } from '../../util/DynamicIcons';
3
- import '../../tailwind.css';
4
- declare type Type =
5
- | 'text'
6
- | 'email'
7
- | 'number'
8
- | 'password'
9
- | 'search'
10
- | 'tel'
11
- | 'url'
12
- | 'date'
13
- | 'datetime-local'
14
- | 'month'
15
- | 'time'
16
- | 'week'
17
- | 'currency';
18
- export interface TextInputAddonProps {
19
- /** Input type*/
20
- type: Type;
21
- /** Input ID */
22
- id: string;
23
- /** Input Name */
24
- name: string;
25
- /** Label for the input */
26
- label: string;
27
- /** placeholder for the input */
28
- placeholder?: string;
29
- /** Force the focus state on the input */
30
- isFocused?: boolean;
31
- /** Error state */
32
- isError?: boolean;
33
- /** If field is required */
34
- isRequired?: boolean;
35
- /** Disabled state */
36
- isDisabled?: boolean;
37
- /** Set default value */
38
- defaultValue?: string;
39
- /** Message shown under the text field */
40
- message?: string;
41
- /** Input character counter */
42
- showCounter?: boolean;
43
- /** Max length of input character */
44
- maxLength?: number;
45
- /** Icon to use in the text field */
46
- primaryIcon?: IconName;
47
- /** Callback on change */
48
- onChange?(value: string): void;
49
- }
50
- export declare const TextInputAddon: FC<TextInputAddonProps>;
51
- export {};
@@ -1,6 +0,0 @@
1
- import { Meta } from '@storybook/react/types-6-0';
2
- import { Story } from '@storybook/react';
3
- import { TextInputAddonProps } from './TextInputAddon';
4
- declare const _default: Meta<import('@storybook/react').Args>;
5
- export default _default;
6
- export declare const Default: Story<TextInputAddonProps>;
@@ -1 +0,0 @@
1
- export * from './TextInputAddon';
@@ -1,21 +0,0 @@
1
- import { Dispatch, SetStateAction } from 'react';
2
- export interface TreeItemChildrenProps {
3
- key: string;
4
- type: string;
5
- title: string;
6
- lazy: boolean;
7
- expanded: boolean;
8
- folder: boolean;
9
- prefix: string;
10
- iconclass: string;
11
- galleryID: number;
12
- galleryFolderID: number;
13
- assetID: number;
14
- folderID: number;
15
- childNodes?: TreeListProp;
16
- }
17
- export declare type TreeListProp = Partial<TreeItemChildrenProps[] | null>;
18
- export interface TreeViewContextProps {
19
- treeList: TreeListProp;
20
- setTreeList: Dispatch<SetStateAction<TreeListProp>>;
21
- }