@qoretechnologies/reqore 0.20.7 → 0.22.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 (125) hide show
  1. package/__tests__/dropdown.test.tsx +1 -1
  2. package/__tests__/table.test.tsx +20 -18
  3. package/dist/components/Breadcrumbs/index.d.ts +2 -2
  4. package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
  5. package/dist/components/Breadcrumbs/item.d.ts.map +1 -1
  6. package/dist/components/Breadcrumbs/item.js +3 -4
  7. package/dist/components/Breadcrumbs/item.js.map +1 -1
  8. package/dist/components/Button/index.d.ts +3 -7
  9. package/dist/components/Button/index.d.ts.map +1 -1
  10. package/dist/components/Button/index.js +28 -19
  11. package/dist/components/Button/index.js.map +1 -1
  12. package/dist/components/Checkbox/index.d.ts +3 -4
  13. package/dist/components/Checkbox/index.d.ts.map +1 -1
  14. package/dist/components/Checkbox/index.js +35 -12
  15. package/dist/components/Checkbox/index.js.map +1 -1
  16. package/dist/components/Comment/index.d.ts +2 -2
  17. package/dist/components/ControlGroup/index.d.ts +1 -0
  18. package/dist/components/ControlGroup/index.d.ts.map +1 -1
  19. package/dist/components/ControlGroup/index.js +3 -2
  20. package/dist/components/ControlGroup/index.js.map +1 -1
  21. package/dist/components/Header/index.d.ts +2 -2
  22. package/dist/components/Header/index.d.ts.map +1 -1
  23. package/dist/components/Icon/index.d.ts +2 -2
  24. package/dist/components/Input/index.d.ts +2 -4
  25. package/dist/components/Input/index.d.ts.map +1 -1
  26. package/dist/components/Input/index.js +57 -28
  27. package/dist/components/Input/index.js.map +1 -1
  28. package/dist/components/Menu/index.d.ts +3 -2
  29. package/dist/components/Menu/index.d.ts.map +1 -1
  30. package/dist/components/Menu/index.js +7 -4
  31. package/dist/components/Menu/index.js.map +1 -1
  32. package/dist/components/Menu/item.d.ts +7 -6
  33. package/dist/components/Menu/item.d.ts.map +1 -1
  34. package/dist/components/Menu/item.js +9 -67
  35. package/dist/components/Menu/item.js.map +1 -1
  36. package/dist/components/Message/index.d.ts +2 -2
  37. package/dist/components/Message/index.d.ts.map +1 -1
  38. package/dist/components/Navbar/item.d.ts.map +1 -1
  39. package/dist/components/Navbar/item.js +12 -5
  40. package/dist/components/Navbar/item.js.map +1 -1
  41. package/dist/components/Notifications/notification.d.ts +4 -4
  42. package/dist/components/Notifications/notification.d.ts.map +1 -1
  43. package/dist/components/Panel/index.d.ts +3 -3
  44. package/dist/components/Panel/index.d.ts.map +1 -1
  45. package/dist/components/Paragraph/index.d.ts +2 -2
  46. package/dist/components/Paragraph/index.d.ts.map +1 -1
  47. package/dist/components/Sidebar/index.d.ts.map +1 -1
  48. package/dist/components/Sidebar/index.js +7 -6
  49. package/dist/components/Sidebar/index.js.map +1 -1
  50. package/dist/components/Table/index.d.ts +10 -11
  51. package/dist/components/Table/index.d.ts.map +1 -1
  52. package/dist/components/Table/index.js +5 -4
  53. package/dist/components/Table/index.js.map +1 -1
  54. package/dist/components/Table/row.d.ts +6 -6
  55. package/dist/components/Table/row.d.ts.map +1 -1
  56. package/dist/components/Tabs/index.d.ts +5 -5
  57. package/dist/components/Tabs/item.d.ts.map +1 -1
  58. package/dist/components/Tabs/item.js +2 -3
  59. package/dist/components/Tabs/item.js.map +1 -1
  60. package/dist/components/Tag/index.d.ts +5 -10
  61. package/dist/components/Tag/index.d.ts.map +1 -1
  62. package/dist/components/Tag/index.js +10 -7
  63. package/dist/components/Tag/index.js.map +1 -1
  64. package/dist/components/Textarea/index.d.ts +4 -2
  65. package/dist/components/Textarea/index.d.ts.map +1 -1
  66. package/dist/components/Textarea/index.js +55 -15
  67. package/dist/components/Textarea/index.js.map +1 -1
  68. package/dist/constants/theme.d.ts +1 -1
  69. package/dist/containers/ReqoreProvider.d.ts +4 -4
  70. package/dist/helpers/colors.d.ts +2 -2
  71. package/dist/helpers/colors.d.ts.map +1 -1
  72. package/dist/hooks/useCombinedRefs.d.ts +10 -1
  73. package/dist/hooks/useCombinedRefs.d.ts.map +1 -1
  74. package/dist/hooks/useCombinedRefs.js +18 -2
  75. package/dist/hooks/useCombinedRefs.js.map +1 -1
  76. package/dist/hooks/useTheme.d.ts +2 -2
  77. package/dist/hooks/useTheme.d.ts.map +1 -1
  78. package/dist/styles.d.ts +2 -0
  79. package/dist/styles.d.ts.map +1 -1
  80. package/dist/styles.js +5 -3
  81. package/dist/styles.js.map +1 -1
  82. package/dist/types/global.d.ts +83 -0
  83. package/dist/types/global.d.ts.map +1 -1
  84. package/package.json +1 -1
  85. package/src/components/Breadcrumbs/index.tsx +2 -2
  86. package/src/components/Breadcrumbs/item.tsx +4 -5
  87. package/src/components/Button/index.tsx +77 -49
  88. package/src/components/Checkbox/index.tsx +27 -17
  89. package/src/components/Comment/index.tsx +2 -2
  90. package/src/components/ControlGroup/index.tsx +3 -3
  91. package/src/components/Header/index.tsx +2 -2
  92. package/src/components/Icon/index.tsx +2 -2
  93. package/src/components/Input/index.tsx +58 -44
  94. package/src/components/Menu/index.tsx +14 -3
  95. package/src/components/Menu/item.tsx +42 -132
  96. package/src/components/Message/index.tsx +2 -2
  97. package/src/components/Navbar/item.tsx +20 -3
  98. package/src/components/Notifications/notification.tsx +4 -4
  99. package/src/components/Panel/index.tsx +3 -3
  100. package/src/components/Paragraph/index.tsx +2 -2
  101. package/src/components/Sidebar/index.tsx +11 -0
  102. package/src/components/Table/index.tsx +23 -15
  103. package/src/components/Table/row.tsx +11 -11
  104. package/src/components/Tabs/index.tsx +5 -5
  105. package/src/components/Tabs/item.tsx +3 -4
  106. package/src/components/Tag/index.tsx +18 -21
  107. package/src/components/Textarea/index.tsx +76 -28
  108. package/src/constants/theme.ts +1 -1
  109. package/src/containers/ReqoreProvider.tsx +4 -4
  110. package/src/helpers/colors.ts +2 -2
  111. package/src/hooks/useCombinedRefs.ts +9 -2
  112. package/src/hooks/useTheme.ts +2 -2
  113. package/src/mock/data.json +11000 -0
  114. package/src/mock/tableData.ts +5 -14
  115. package/src/stories/Button/Button.stories.tsx +4 -1
  116. package/src/stories/Checkbox/Checkbox.stories.tsx +5 -4
  117. package/src/stories/Input/Input.stories.tsx +39 -6
  118. package/src/stories/Menu/Menu.stories.tsx +14 -2
  119. package/src/stories/RadioGroup/RadioGroup.stories.tsx +10 -0
  120. package/src/stories/Table/Table.stories.tsx +12 -1
  121. package/src/stories/Tag/Tag.stories.tsx +7 -1
  122. package/src/stories/TextArea/TextArea.stories.tsx +83 -13
  123. package/src/styles.ts +11 -2
  124. package/src/types/global.ts +89 -0
  125. package/tests.json +1 -1
@@ -1,5 +1,5 @@
1
- import shortid from 'shortid';
2
- import { IReqoreTableColumn, IReqoreTableData } from '../components/Table';
1
+ import { IReqoreTableColumn } from '../components/Table';
2
+ import data from './data.json';
3
3
 
4
4
  export default {
5
5
  columns: [
@@ -23,18 +23,9 @@ export default {
23
23
  { dataId: 'group', header: 'Group', width: 150, intent: 'muted' },
24
24
  { dataId: 'date', header: 'Date', width: 150, content: 'time-ago' },
25
25
  ] as IReqoreTableColumn[],
26
- data: [...new Array(100)].map((_val, index) => ({
27
- id: index,
28
- firstName: shortid.generate(),
29
- lastName: shortid.generate(),
30
- address: `${shortid.generate()}, ${shortid.generate()}, ${shortid.generate()}`,
31
- age: 99 - index,
32
- occupation: shortid.generate(),
33
- group: shortid.generate(),
26
+ data: data.map((datum) => ({
27
+ ...datum,
34
28
  date: Date.now(),
35
- _intent: index === 2 || index === 3 || index === 4 ? 'info' : undefined,
36
- _selectId: index !== 3 && index !== 6 ? `Row-${index}` : null,
37
- _disabled: index === 5,
38
- })) as IReqoreTableData,
29
+ })),
39
30
  height: 300,
40
31
  };
@@ -22,7 +22,7 @@ const Template: ComponentStory<typeof ReqoreButton> = (buttonProps) => {
22
22
  <ReqoreButton {...buttonProps} disabled>
23
23
  Disabled
24
24
  </ReqoreButton>
25
- <ReqoreButton {...buttonProps} active>
25
+ <ReqoreButton {...buttonProps} active tooltip='hello'>
26
26
  Active
27
27
  </ReqoreButton>
28
28
  <ReqoreButton {...buttonProps} flat>
@@ -31,6 +31,9 @@ const Template: ComponentStory<typeof ReqoreButton> = (buttonProps) => {
31
31
  <ReqoreButton {...buttonProps} minimal>
32
32
  Minimal
33
33
  </ReqoreButton>
34
+ <ReqoreButton {...buttonProps} readOnly onClick={alert}>
35
+ Read only
36
+ </ReqoreButton>
34
37
  </ReqoreControlGroup>
35
38
  <br />
36
39
  <ReqoreControlGroup fluid>
@@ -1,6 +1,6 @@
1
1
  import { ComponentMeta, ComponentStory } from '@storybook/react';
2
2
  import Checkbox from '../../components/Checkbox';
3
- import { ReqoreCheckbox } from '../../index';
3
+ import { ReqoreCheckbox, ReqoreControlGroup } from '../../index';
4
4
 
5
5
  export default {
6
6
  title: 'Components/Checkbox',
@@ -9,13 +9,14 @@ export default {
9
9
 
10
10
  const Template: ComponentStory<typeof Checkbox> = (args) => {
11
11
  return (
12
- <>
12
+ <ReqoreControlGroup>
13
13
  <ReqoreCheckbox {...args} />
14
14
  <ReqoreCheckbox {...args} label='Label' labelDetail='Detail' labelDetailPosition='left' />
15
- <ReqoreCheckbox {...args} checked />
15
+ <ReqoreCheckbox {...args} checked tooltip='I am checked' />
16
16
  <ReqoreCheckbox {...args} disabled />
17
17
  <ReqoreCheckbox {...args} label='Label' labelDetail='Detail' labelPosition='left' />
18
- </>
18
+ <ReqoreCheckbox {...args} label='Read Only' labelPosition='left' readOnly />
19
+ </ReqoreControlGroup>
19
20
  );
20
21
  };
21
22
 
@@ -2,13 +2,14 @@ import { Meta, Story } from '@storybook/react/types-6-0';
2
2
  import { useState } from 'react';
3
3
  import ReqoreInput, { IReqoreInputProps } from '../../components/Input';
4
4
  import { ReqoreControlGroup } from '../../index';
5
- import { FlatArg, MinimalArg } from '../utils/args';
5
+ import { FlatArg, IconArg, MinimalArg } from '../utils/args';
6
6
 
7
7
  export default {
8
8
  title: 'Components/Input',
9
9
  argTypes: {
10
10
  ...MinimalArg,
11
11
  ...FlatArg,
12
+ ...IconArg('icon', 'Icon', 'SearchLine'),
12
13
  },
13
14
  } as Meta<IReqoreInputProps>;
14
15
 
@@ -27,47 +28,55 @@ const Template: Story<IReqoreInputProps> = (args: IReqoreInputProps) => {
27
28
  <>
28
29
  <ReqoreControlGroup>
29
30
  <ReqoreInput
31
+ {...args}
30
32
  placeholder='Reqore Input'
31
33
  onChange={handleValueChange}
32
34
  value={value}
33
- {...args}
34
35
  />
35
36
  <ReqoreInput
37
+ {...args}
36
38
  placeholder='Minimal Input'
37
39
  minimal
38
40
  onChange={handleValueChange}
39
41
  value={value}
40
- {...args}
41
42
  />
42
43
  <ReqoreInput
44
+ {...args}
43
45
  placeholder='Flat Input'
44
46
  flat
47
+ tooltip="I'm a tooltip"
45
48
  onChange={handleValueChange}
46
49
  value={value}
47
- {...args}
48
50
  />
49
51
  <ReqoreInput
52
+ {...args}
50
53
  placeholder='Clearable Input'
51
54
  onClearClick={handleValueClear}
52
55
  value={value}
53
56
  onChange={handleValueChange}
54
- {...args}
55
57
  />
56
58
  <ReqoreInput
59
+ {...args}
57
60
  placeholder='Disabled Input'
58
61
  disabled
59
62
  onChange={handleValueChange}
60
63
  value={value}
64
+ />
65
+ <ReqoreInput
61
66
  {...args}
67
+ placeholder='Read Only Input'
68
+ readOnly
69
+ onChange={handleValueChange}
70
+ value={value}
62
71
  />
63
72
  </ReqoreControlGroup>
64
73
  <br />
65
74
  <ReqoreControlGroup fluid>
66
75
  <ReqoreInput
76
+ {...args}
67
77
  placeholder='Fluid Input'
68
78
  onChange={handleValueChange}
69
79
  value={value}
70
- {...args}
71
80
  />
72
81
  </ReqoreControlGroup>
73
82
  </>
@@ -75,3 +84,27 @@ const Template: Story<IReqoreInputProps> = (args: IReqoreInputProps) => {
75
84
  };
76
85
 
77
86
  export const Basic = Template.bind({});
87
+ export const Info = Template.bind({});
88
+ Info.args = {
89
+ intent: 'info',
90
+ };
91
+ export const Success = Template.bind({});
92
+ Success.args = {
93
+ intent: 'success',
94
+ };
95
+ export const Warning = Template.bind({});
96
+ Warning.args = {
97
+ intent: 'warning',
98
+ };
99
+ export const Danger = Template.bind({});
100
+ Danger.args = {
101
+ intent: 'danger',
102
+ };
103
+ export const Pending = Template.bind({});
104
+ Pending.args = {
105
+ intent: 'pending',
106
+ };
107
+ export const Muted = Template.bind({});
108
+ Muted.args = {
109
+ intent: 'muted',
110
+ };
@@ -27,11 +27,19 @@ export default {
27
27
  type: 'select',
28
28
  },
29
29
  }),
30
+ ...createArg('wrapText', {
31
+ defaultValue: true,
32
+ name: 'Wrap text',
33
+ control: {
34
+ type: 'boolean',
35
+ },
36
+ description: 'Whether to wrap text or not',
37
+ }),
30
38
  ...IntentArg,
31
39
  },
32
40
  } as Meta<IReqoreMenuProps>;
33
41
 
34
- export const MenuStory: Story<IReqoreMenuProps> = (args) => {
42
+ const Template: Story<IReqoreMenuProps> = (args) => {
35
43
  return (
36
44
  <ReqoreMenu {...args}>
37
45
  <ReqoreMenuItem icon='Save3Fill' intent='success' selected>
@@ -91,4 +99,8 @@ export const MenuStory: Story<IReqoreMenuProps> = (args) => {
91
99
  );
92
100
  };
93
101
 
94
- MenuStory.storyName = 'Menu';
102
+ export const Basic = Template.bind({});
103
+ export const WrappedText = Template.bind({});
104
+ WrappedText.args = {
105
+ wrapText: false,
106
+ };
@@ -37,6 +37,16 @@ const Template: Story<IReqoreRadioGroupProps> = (args: IReqoreRadioGroupProps) =
37
37
  label: 'Option 3',
38
38
  value: 'opt3',
39
39
  },
40
+ {
41
+ label: 'Read Only Option',
42
+ value: 'opt4',
43
+ readOnly: true,
44
+ },
45
+ {
46
+ label: 'Disabled Option',
47
+ value: 'opt5',
48
+ disabled: true,
49
+ },
40
50
  ]}
41
51
  onSelectClick={(value) => setSelected(value)}
42
52
  selected={selected}
@@ -108,7 +108,7 @@ export default {
108
108
  }),
109
109
  ...createArg('data', {
110
110
  type: 'array',
111
- defaultValue: tableData.data,
111
+ defaultValue: tableData.data as any,
112
112
  name: 'Data',
113
113
  description: 'The data to be displayed in the table',
114
114
  table: {
@@ -121,6 +121,12 @@ export default {
121
121
  name: 'Select Toggle Tooltip',
122
122
  description: 'The tooltip of the select toggle',
123
123
  }),
124
+ ...createArg('fill', {
125
+ type: 'boolean',
126
+ defaultValue: false,
127
+ name: 'Fill',
128
+ description: 'Whether the table should fill the parent',
129
+ }),
124
130
  ...SizeArg,
125
131
  ...FlatArg,
126
132
  ...IntentArg,
@@ -149,3 +155,8 @@ export const Selectable = Template.bind({});
149
155
  Selectable.args = {
150
156
  selectable: true,
151
157
  };
158
+
159
+ export const FillParent = Template.bind({});
160
+ FillParent.args = {
161
+ fill: true,
162
+ };
@@ -60,7 +60,13 @@ const Template: Story<IReqoreTagGroup & IReqoreTagProps> = ({ columns, ...args }
60
60
  <ReqoreTagGroup columns={columns} size={args.size}>
61
61
  <ReqoreTag label='Basic Tag' icon='AlarmWarningLine' {...args} />
62
62
  <ReqoreTag label='Disabled Tag' disabled icon='AlarmWarningLine' {...args} />
63
- <ReqoreTag label='300px Tag' width='300px' icon='AlarmWarningLine' {...args} />
63
+ <ReqoreTag
64
+ label='300px Tag'
65
+ width='300px'
66
+ icon='AlarmWarningLine'
67
+ {...args}
68
+ tooltip='I am wiiiiiiide'
69
+ />
64
70
  <ReqoreTag label='Danger Tag' icon='AlarmWarningLine' intent='danger' {...args} />
65
71
  <ReqoreTag label='Custom Color Tag' icon='AlarmWarningLine' color='#38fdb2' {...args} />
66
72
  </ReqoreTagGroup>
@@ -1,7 +1,7 @@
1
1
  import { Meta, Story } from '@storybook/react/types-6-0';
2
2
  import { useState } from 'react';
3
3
  import { IReqoreTextareaProps } from '../../components/Textarea';
4
- import { ReqoreTextarea } from '../../index';
4
+ import { ReqoreControlGroup, ReqoreTextarea } from '../../index';
5
5
  import { argManager, DisabledArg, MinimalArg, SizeArg } from '../utils/args';
6
6
 
7
7
  const { createArg } = argManager<IReqoreTextareaProps>();
@@ -54,21 +54,91 @@ const Template: Story<IReqoreTextareaProps> = (args) => {
54
54
  };
55
55
 
56
56
  return (
57
- <ReqoreTextarea
58
- {...args}
59
- onChange={handleValueChange}
60
- onClearClick={handleValueClear}
61
- value={value}
62
- />
57
+ <>
58
+ <ReqoreControlGroup fluid>
59
+ <ReqoreTextarea
60
+ {...args}
61
+ onChange={handleValueChange}
62
+ onClearClick={handleValueClear}
63
+ value={value}
64
+ />
65
+ <ReqoreTextarea
66
+ {...args}
67
+ onChange={handleValueChange}
68
+ onClearClick={handleValueClear}
69
+ value={value}
70
+ tooltip={{
71
+ placement: 'right-start',
72
+ content: 'I am a tooltip',
73
+ }}
74
+ minimal
75
+ />
76
+ <ReqoreTextarea
77
+ {...args}
78
+ onChange={handleValueChange}
79
+ onClearClick={handleValueClear}
80
+ value={value}
81
+ tooltip="I'm a tooltip"
82
+ flat
83
+ />
84
+ <ReqoreTextarea
85
+ {...args}
86
+ onChange={handleValueChange}
87
+ onClearClick={handleValueClear}
88
+ value={value}
89
+ disabled
90
+ />
91
+ <ReqoreTextarea
92
+ {...args}
93
+ onChange={handleValueChange}
94
+ onClearClick={handleValueClear}
95
+ value={value}
96
+ readOnly
97
+ />
98
+ </ReqoreControlGroup>
99
+ <br />
100
+ <ReqoreControlGroup fluid>
101
+ <ReqoreTextarea
102
+ {...args}
103
+ onChange={handleValueChange}
104
+ onClearClick={handleValueClear}
105
+ value={value}
106
+ fluid
107
+ />
108
+ </ReqoreControlGroup>
109
+ </>
63
110
  );
64
111
  };
65
112
 
66
113
  export const Basic = Template.bind({});
67
- export const Minimal = Template.bind({});
68
- Minimal.args = {
69
- minimal: true,
114
+ export const Info = Template.bind({});
115
+ Info.args = {
116
+ intent: 'info',
70
117
  };
71
- export const Disabled = Template.bind({});
72
- Disabled.args = {
73
- disabled: true,
118
+ export const Success = Template.bind({});
119
+ Success.args = {
120
+ intent: 'success',
121
+ };
122
+ export const Warning = Template.bind({});
123
+ Warning.args = {
124
+ intent: 'warning',
125
+ };
126
+ export const Danger = Template.bind({});
127
+ Danger.args = {
128
+ intent: 'danger',
129
+ };
130
+ export const Pending = Template.bind({});
131
+ Pending.args = {
132
+ intent: 'pending',
133
+ };
134
+ export const Muted = Template.bind({});
135
+ Muted.args = {
136
+ intent: 'muted',
137
+ };
138
+
139
+ export const Custom = Template.bind({});
140
+ Custom.args = {
141
+ customTheme: {
142
+ main: '#38fdb2',
143
+ },
74
144
  };
package/src/styles.ts CHANGED
@@ -29,10 +29,19 @@ export const ActiveIconScale = css`
29
29
  `;
30
30
 
31
31
  export const ScaleIconOnHover = css`
32
- ${InactiveIconScale}
33
-
34
32
  &:hover,
35
33
  &:focus {
36
34
  ${ActiveIconScale}
37
35
  }
38
36
  `;
37
+
38
+ export const DisabledElement = css`
39
+ pointer-events: none;
40
+ opacity: 0.5;
41
+ cursor: not-allowed;
42
+ `;
43
+
44
+ export const ReadOnlyElement = css`
45
+ pointer-events: none;
46
+ cursor: not-allowed;
47
+ `;
@@ -1,3 +1,4 @@
1
+ import { IReqoreCustomTheme, TReqoreIntent } from '../constants/theme';
1
2
  import { IPopoverOptions } from '../hooks/usePopover';
2
3
 
3
4
  export interface IReqoreComponent {
@@ -5,5 +6,93 @@ export interface IReqoreComponent {
5
6
  _popoverId?: string;
6
7
  }
7
8
 
9
+ export interface IReqoreReadOnly {
10
+ /**
11
+ * If true, the component will be read only
12
+ * @default false
13
+ * @type boolean
14
+ * @memberof IReqoreReadOnly
15
+ * @example
16
+ * <ReqoreInput readOnly />
17
+ * <ReqoreInput readOnly={true} />
18
+ *
19
+ */
20
+ readOnly?: boolean;
21
+ }
22
+
23
+ export interface IReqoreDisabled {
24
+ /**
25
+ * If true, the component will be disabled
26
+ * @default false
27
+ * @type boolean
28
+ * @memberof IReqoreDisabled
29
+ * @example
30
+ * <ReqoreInput disabled />
31
+ * <ReqoreInput disabled={true} />
32
+ *
33
+ */
34
+ disabled?: boolean;
35
+ }
36
+
37
+ export interface IReqoreIntent {
38
+ /**
39
+ * The intent of the component
40
+ * @default none
41
+ * @type TReqoreIntent
42
+ * @memberof IReqoreIntent
43
+ * @example
44
+ * <ReqoreInput intent="info" />
45
+ * <ReqoreInput intent="success" />
46
+ * <ReqoreInput intent="pending" />
47
+ * <ReqoreInput intent="warning" />
48
+ * <ReqoreInput intent="danger" />
49
+ * <ReqoreInput intent="muted" />
50
+ */
51
+ intent?: TReqoreIntent;
52
+ }
53
+
54
+ export interface IWithReqoreCustomTheme {
55
+ /**
56
+ * The custom theme of the component
57
+ * @default none
58
+ * @type IReqoreCustomTheme
59
+ * @memberof IWithReqoreCustomTheme
60
+ * @example
61
+ * <ReqoreInput customTheme={{ main: '#ff0000' }} />
62
+ * <ReqoreInput customTheme={{ main: '#ff0000', text: { color: '#0000ff' } }} />
63
+ */
64
+ customTheme?: IReqoreCustomTheme;
65
+ }
66
+
67
+ export interface IWithReqoreTooltip {
68
+ /**
69
+ * The tooltip of the component
70
+ * @default none
71
+ * @type string | IReqoreTooltip
72
+ * @memberof IWithReqoreTooltip
73
+ * @example
74
+ * <ReqoreInput tooltip="This is a tooltip" />
75
+ * <ReqoreInput tooltip={{ content: 'This is a tooltip' }} />
76
+ * <ReqoreInput tooltip={{ content: 'This is a tooltip', position: 'top' }} />
77
+ * <ReqoreInput tooltip={{ content: 'This is a tooltip', position: 'top', handle: 'focus', useTargetWidth: true, noArrow: true }} />
78
+ */
79
+ tooltip?: string | IReqoreTooltip;
80
+ }
81
+
82
+ export interface IWithReqoreFlat {
83
+ /**
84
+ * If true, the component will be flat
85
+ * @default false
86
+ * @type boolean
87
+ * @memberof IWithReqoreFlat
88
+ * @example
89
+ * <ReqoreInput flat />
90
+ * <ReqoreInput flat={true} />
91
+ * <ReqoreInput flat={false} />
92
+ *
93
+ */
94
+ flat?: boolean;
95
+ }
96
+
8
97
  export interface IReqoreTooltip extends IPopoverOptions {}
9
98
  export type TReqoreTooltipProp = string | IReqoreTooltip;