@iress-oss/ids-mcp-server 5.20.1 → 5.20.4
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/generated/docs/components_components-alert-docs.md +22 -21
- package/generated/docs/components_components-autocomplete-docs.md +48 -104
- package/generated/docs/components_components-autocomplete-recipes-docs.md +9 -2
- package/generated/docs/components_components-badge-docs.md +4 -4
- package/generated/docs/components_components-button-docs.md +24 -24
- package/generated/docs/components_components-buttongroup-docs.md +20 -20
- package/generated/docs/components_components-card-docs.md +70 -56
- package/generated/docs/components_components-card-recipes-docs.md +4 -4
- package/generated/docs/components_components-checkbox-docs.md +7 -21
- package/generated/docs/components_components-checkboxgroup-docs.md +32 -32
- package/generated/docs/components_components-checkboxgroup-recipes-docs.md +2 -2
- package/generated/docs/components_components-col-docs.md +10 -10
- package/generated/docs/components_components-combobox-docs.md +58 -90
- package/generated/docs/components_components-container-docs.md +4 -4
- package/generated/docs/components_components-divider-docs.md +3 -3
- package/generated/docs/components_components-expander-docs.md +6 -4
- package/generated/docs/components_components-field-docs.md +18 -18
- package/generated/docs/components_components-filter-docs.md +54 -54
- package/generated/docs/components_components-form-docs.md +95 -60
- package/generated/docs/components_components-form-recipes-docs.md +114 -13
- package/generated/docs/components_components-hide-docs.md +4 -4
- package/generated/docs/components_components-icon-docs.md +13 -13
- package/generated/docs/components_components-inline-docs.md +14 -14
- package/generated/docs/components_components-input-docs.md +10 -10
- package/generated/docs/components_components-input-recipes-docs.md +3 -3
- package/generated/docs/components_components-inputcurrency-docs.md +6 -6
- package/generated/docs/components_components-inputcurrency-recipes-docs.md +5 -2
- package/generated/docs/components_components-label-docs.md +6 -6
- package/generated/docs/components_components-menu-docs.md +40 -40
- package/generated/docs/components_components-menu-menuitem-docs.md +12 -12
- package/generated/docs/components_components-modal-docs.md +29 -13
- package/generated/docs/components_components-navbar-docs.md +42 -42
- package/generated/docs/components_components-navbar-recipes-docs.md +41 -18
- package/generated/docs/components_components-panel-docs.md +19 -19
- package/generated/docs/components_components-placeholder-docs.md +1 -1
- package/generated/docs/components_components-popover-docs.md +32 -30
- package/generated/docs/components_components-popover-recipes-docs.md +15 -8
- package/generated/docs/components_components-progress-docs.md +1 -1
- package/generated/docs/components_components-provider-docs.md +2 -2
- package/generated/docs/components_components-radio-docs.md +5 -5
- package/generated/docs/components_components-radiogroup-docs.md +29 -45
- package/generated/docs/components_components-readonly-docs.md +5 -5
- package/generated/docs/components_components-richselect-docs.md +88 -64
- package/generated/docs/components_components-row-docs.md +12 -12
- package/generated/docs/components_components-select-docs.md +8 -8
- package/generated/docs/components_components-skeleton-docs.md +9 -9
- package/generated/docs/components_components-skeleton-recipes-docs.md +2 -2
- package/generated/docs/components_components-skiplink-docs.md +3 -3
- package/generated/docs/components_components-slideout-docs.md +43 -12
- package/generated/docs/components_components-slider-docs.md +12 -12
- package/generated/docs/components_components-spinner-docs.md +3 -3
- package/generated/docs/components_components-stack-docs.md +14 -14
- package/generated/docs/components_components-table-docs.md +51 -44
- package/generated/docs/components_components-tabset-docs.md +10 -10
- package/generated/docs/components_components-tabset-tab-docs.md +4 -4
- package/generated/docs/components_components-tag-docs.md +8 -10
- package/generated/docs/components_components-text-docs.md +7 -7
- package/generated/docs/components_components-toaster-docs.md +12 -12
- package/generated/docs/components_components-toaster-toast-docs.md +30 -30
- package/generated/docs/components_components-toggle-docs.md +5 -5
- package/generated/docs/components_components-tooltip-docs.md +4 -4
- package/generated/docs/components_components-validationmessage-docs.md +6 -6
- package/generated/docs/components_foundations-colour-030-colours.md +32 -32
- package/generated/docs/components_foundations-typography-docs.md +7 -7
- package/generated/docs/components_introduction-docs.md +1 -1
- package/generated/docs/components_patterns-loading-docs.md +106 -29
- package/generated/docs/components_sandbox-docs.md +4 -0
- package/generated/docs/guidelines.md +39 -39
- package/package.json +20 -20
|
@@ -29,8 +29,24 @@ Email
|
|
|
29
29
|
|
|
30
30
|
Submit
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
Hide codedrawOpen in CodeSandbox
|
|
33
|
+
|
|
34
|
+
import {
|
|
35
|
+
IressButton,
|
|
36
|
+
IressCol,
|
|
37
|
+
IressContainer,
|
|
38
|
+
IressDivider,
|
|
39
|
+
IressForm,
|
|
40
|
+
IressFormField,
|
|
41
|
+
IressInput,
|
|
42
|
+
IressModal,
|
|
43
|
+
IressRow,
|
|
44
|
+
IressStack,
|
|
45
|
+
IressTable,
|
|
46
|
+
IressText,
|
|
47
|
+
} from '@/main';
|
|
48
|
+
import { useState } from 'react';
|
|
49
|
+
import { type FieldValues } from 'react-hook-form';
|
|
34
50
|
export const WithReadonlyDataForm \= () \=> {
|
|
35
51
|
const \[values, setValues\] \= useState<FieldValues\>({
|
|
36
52
|
firstName: 'Leia',
|
|
@@ -153,8 +169,27 @@ dependents
|
|
|
153
169
|
|
|
154
170
|
Edit
|
|
155
171
|
|
|
156
|
-
|
|
157
|
-
|
|
172
|
+
Hide codedrawOpen in CodeSandbox
|
|
173
|
+
|
|
174
|
+
import {
|
|
175
|
+
IressButton,
|
|
176
|
+
IressCol,
|
|
177
|
+
IressContainer,
|
|
178
|
+
IressForm,
|
|
179
|
+
IressFormField,
|
|
180
|
+
IressIcon,
|
|
181
|
+
IressInline,
|
|
182
|
+
IressInput,
|
|
183
|
+
IressModal,
|
|
184
|
+
IressRow,
|
|
185
|
+
IressSelect,
|
|
186
|
+
IressStack,
|
|
187
|
+
IressTable,
|
|
188
|
+
IressText,
|
|
189
|
+
} from '@/main';
|
|
190
|
+
import { useState } from 'react';
|
|
191
|
+
import { type FieldValues } from 'react-hook-form';
|
|
192
|
+
import { type FormControlValue } from '@/main';
|
|
158
193
|
export const SwitchEditReadonlyForm \= () \=> {
|
|
159
194
|
const dependentOptions \= \[
|
|
160
195
|
{ value: 0, label: '0' },
|
|
@@ -314,8 +349,18 @@ Here is an example showcasing a form using the native form constraints API to ac
|
|
|
314
349
|
|
|
315
350
|
Sign up
|
|
316
351
|
|
|
317
|
-
|
|
318
|
-
|
|
352
|
+
Hide codedrawOpen in CodeSandbox
|
|
353
|
+
|
|
354
|
+
import {
|
|
355
|
+
IressInput,
|
|
356
|
+
IressStack,
|
|
357
|
+
IressButton,
|
|
358
|
+
IressField,
|
|
359
|
+
IressValidationMessage,
|
|
360
|
+
IressAlert,
|
|
361
|
+
} from '@/main';
|
|
362
|
+
import { useState } from 'react';
|
|
363
|
+
import { type InputBaseElement } from '@/components/Input/InputBase/InputBase.types';
|
|
319
364
|
export const NativeValidationForm \= () \=> {
|
|
320
365
|
const \[formData, setFormData\] \= useState({
|
|
321
366
|
name: '',
|
|
@@ -438,8 +483,22 @@ Save
|
|
|
438
483
|
|
|
439
484
|
Submit main formSubmit all forms
|
|
440
485
|
|
|
441
|
-
|
|
442
|
-
|
|
486
|
+
Hide codedrawOpen in CodeSandbox
|
|
487
|
+
|
|
488
|
+
import {
|
|
489
|
+
IressButton,
|
|
490
|
+
IressDivider,
|
|
491
|
+
IressFieldGroup,
|
|
492
|
+
IressForm,
|
|
493
|
+
IressFormField,
|
|
494
|
+
IressInline,
|
|
495
|
+
IressInput,
|
|
496
|
+
IressModal,
|
|
497
|
+
IressPanel,
|
|
498
|
+
IressStack,
|
|
499
|
+
IressTable,
|
|
500
|
+
} from '@/main';
|
|
501
|
+
import { useState } from 'react';
|
|
443
502
|
interface FormData {
|
|
444
503
|
name: string;
|
|
445
504
|
}
|
|
@@ -580,8 +639,28 @@ Add Dependant
|
|
|
580
639
|
|
|
581
640
|
Submit All
|
|
582
641
|
|
|
583
|
-
|
|
584
|
-
|
|
642
|
+
Hide codedrawOpen in CodeSandbox
|
|
643
|
+
|
|
644
|
+
import {
|
|
645
|
+
IressButton,
|
|
646
|
+
IressDivider,
|
|
647
|
+
IressFieldGroup,
|
|
648
|
+
IressFormField,
|
|
649
|
+
IressInline,
|
|
650
|
+
IressInput,
|
|
651
|
+
IressPanel,
|
|
652
|
+
IressStack,
|
|
653
|
+
IressText,
|
|
654
|
+
IressIcon,
|
|
655
|
+
IressCloseButton,
|
|
656
|
+
IressHookForm,
|
|
657
|
+
} from '@/main';
|
|
658
|
+
import {
|
|
659
|
+
useForm,
|
|
660
|
+
useFieldArray,
|
|
661
|
+
type Control,
|
|
662
|
+
type UseFormGetValues,
|
|
663
|
+
} from 'react-hook-form';
|
|
585
664
|
interface Client {
|
|
586
665
|
name: string | undefined;
|
|
587
666
|
salary: number | undefined;
|
|
@@ -786,8 +865,16 @@ Visible Input
|
|
|
786
865
|
|
|
787
866
|
Submit
|
|
788
867
|
|
|
789
|
-
|
|
868
|
+
Hide codedrawOpen in CodeSandbox
|
|
790
869
|
|
|
870
|
+
import {
|
|
871
|
+
IressButton,
|
|
872
|
+
IressForm,
|
|
873
|
+
IressFormField,
|
|
874
|
+
IressHookForm,
|
|
875
|
+
IressInput,
|
|
876
|
+
IressStack,
|
|
877
|
+
} from '@/main';
|
|
791
878
|
export const HiddenInputsForm \= () \=> {
|
|
792
879
|
const form \= IressForm.useForm();
|
|
793
880
|
const { register } \= form;
|
|
@@ -868,8 +955,22 @@ Submit
|
|
|
868
955
|
|
|
869
956
|
* * *
|
|
870
957
|
|
|
871
|
-
|
|
872
|
-
|
|
958
|
+
Hide codedrawOpen in CodeSandbox
|
|
959
|
+
|
|
960
|
+
import {
|
|
961
|
+
IressStack,
|
|
962
|
+
IressRow,
|
|
963
|
+
IressCol,
|
|
964
|
+
IressFormField,
|
|
965
|
+
IressInputCurrency,
|
|
966
|
+
IressSelect,
|
|
967
|
+
IressButton,
|
|
968
|
+
IressText,
|
|
969
|
+
IressDivider,
|
|
970
|
+
} from '@/main';
|
|
971
|
+
import { IressHookForm } from '../HookForm/HookForm';
|
|
972
|
+
import { IressForm } from '../Form';
|
|
973
|
+
import { useState } from 'react';
|
|
873
974
|
interface FormData {
|
|
874
975
|
primaryField: string;
|
|
875
976
|
dependentField: string;
|
|
@@ -10,7 +10,7 @@ Overview
|
|
|
10
10
|
|
|
11
11
|
Content to hide
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Hide codedrawOpen in CodeSandbox
|
|
14
14
|
|
|
15
15
|
{
|
|
16
16
|
args: {
|
|
@@ -51,7 +51,7 @@ ResponsiveSizing
|
|
|
51
51
|
|
|
52
52
|
| \- |
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
Edit JSON
|
|
55
55
|
|
|
56
56
|
hiddenOn :
|
|
57
57
|
|
|
@@ -134,7 +134,7 @@ This text is totally hidden on xs screens only.
|
|
|
134
134
|
|
|
135
135
|
This text is totally hidden on xl screens only.
|
|
136
136
|
|
|
137
|
-
|
|
137
|
+
Hide codedrawOpen in CodeSandbox
|
|
138
138
|
|
|
139
139
|
{
|
|
140
140
|
...Default,
|
|
@@ -230,7 +230,7 @@ This text is visually hidden on xs screens only.
|
|
|
230
230
|
|
|
231
231
|
This text is visually hidden on xl screens only.
|
|
232
232
|
|
|
233
|
-
|
|
233
|
+
Hide codedrawOpen in CodeSandbox
|
|
234
234
|
|
|
235
235
|
{
|
|
236
236
|
...HiddenOn,
|
|
@@ -8,7 +8,7 @@ Icons enhance experiences by visually communicating meaning, actions, status, an
|
|
|
8
8
|
|
|
9
9
|
[](./iframe.html?id=components-icon--default)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Hide codedrawOpen in CodeSandbox
|
|
12
12
|
|
|
13
13
|
<IressIcon name\="home" />
|
|
14
14
|
|
|
@@ -143,7 +143,7 @@ If you use an icon to convey meaning, for example using an icon as the only cont
|
|
|
143
143
|
|
|
144
144
|
[](./iframe.html?id=components-icon--screen-reader-text)
|
|
145
145
|
|
|
146
|
-
|
|
146
|
+
Hide codedrawOpen in CodeSandbox
|
|
147
147
|
|
|
148
148
|
<IressIcon
|
|
149
149
|
name\="home"
|
|
@@ -263,7 +263,7 @@ lg
|
|
|
263
263
|
|
|
264
264
|
10x
|
|
265
265
|
|
|
266
|
-
|
|
266
|
+
Hide codedrawOpen in CodeSandbox
|
|
267
267
|
|
|
268
268
|
<IressInline
|
|
269
269
|
gutter\="md"
|
|
@@ -448,7 +448,7 @@ positive
|
|
|
448
448
|
|
|
449
449
|
negative
|
|
450
450
|
|
|
451
|
-
|
|
451
|
+
Hide codedrawOpen in CodeSandbox
|
|
452
452
|
|
|
453
453
|
<IressInline gutter\="md"\>
|
|
454
454
|
<div\>
|
|
@@ -634,7 +634,7 @@ vertical
|
|
|
634
634
|
|
|
635
635
|
both
|
|
636
636
|
|
|
637
|
-
|
|
637
|
+
Hide codedrawOpen in CodeSandbox
|
|
638
638
|
|
|
639
639
|
<IressInline gutter\="md"\>
|
|
640
640
|
<div\>
|
|
@@ -783,7 +783,7 @@ original
|
|
|
783
783
|
|
|
784
784
|
270
|
|
785
785
|
|
|
786
|
-
|
|
786
|
+
Hide codedrawOpen in CodeSandbox
|
|
787
787
|
|
|
788
788
|
<IressInline gutter\="md"\>
|
|
789
789
|
<div\>
|
|
@@ -932,7 +932,7 @@ half
|
|
|
932
932
|
|
|
933
933
|
3
|
|
934
934
|
|
|
935
|
-
|
|
935
|
+
Hide codedrawOpen in CodeSandbox
|
|
936
936
|
|
|
937
937
|
<IressInline gutter\="md"\>
|
|
938
938
|
<IressText\>
|
|
@@ -1076,7 +1076,7 @@ Fixed width
|
|
|
1076
1076
|
|
|
1077
1077
|
|
|
1078
1078
|
|
|
1079
|
-
|
|
1079
|
+
Hide codedrawOpen in CodeSandbox
|
|
1080
1080
|
|
|
1081
1081
|
<IressInline gutter\="md"\>
|
|
1082
1082
|
<div\>
|
|
@@ -1086,13 +1086,13 @@ Fixed width
|
|
|
1086
1086
|
\>
|
|
1087
1087
|
Default width </IressText\>
|
|
1088
1088
|
<IressIcon
|
|
1089
|
-
className\="ids-styles--alt-background-
|
|
1089
|
+
className\="ids-styles--alt-background-v5205"
|
|
1090
1090
|
name\="space-shuttle"
|
|
1091
1091
|
size\="3x"
|
|
1092
1092
|
/>
|
|
1093
1093
|
<br />
|
|
1094
1094
|
<IressIcon
|
|
1095
|
-
className\="ids-styles--alt-background-
|
|
1095
|
+
className\="ids-styles--alt-background-v5205"
|
|
1096
1096
|
name\="wine-glass-alt"
|
|
1097
1097
|
size\="3x"
|
|
1098
1098
|
/>
|
|
@@ -1104,14 +1104,14 @@ Fixed width
|
|
|
1104
1104
|
\>
|
|
1105
1105
|
Fixed width </IressText\>
|
|
1106
1106
|
<IressIcon
|
|
1107
|
-
className\="ids-styles--alt-background-
|
|
1107
|
+
className\="ids-styles--alt-background-v5205"
|
|
1108
1108
|
fixedWidth
|
|
1109
1109
|
name\="space-shuttle"
|
|
1110
1110
|
size\="3x"
|
|
1111
1111
|
/>
|
|
1112
1112
|
<br />
|
|
1113
1113
|
<IressIcon
|
|
1114
|
-
className\="ids-styles--alt-background-
|
|
1114
|
+
className\="ids-styles--alt-background-v5205"
|
|
1115
1115
|
fixedWidth
|
|
1116
1116
|
name\="wine-glass-alt"
|
|
1117
1117
|
size\="3x"
|
|
@@ -1225,7 +1225,7 @@ Version 4 of IDS included some bespoke styles to make an "external link" icon in
|
|
|
1225
1225
|
|
|
1226
1226
|
[Go to this link:](https://www.iress.com/)
|
|
1227
1227
|
|
|
1228
|
-
|
|
1228
|
+
Hide codedrawOpen in CodeSandbox
|
|
1229
1229
|
|
|
1230
1230
|
<IressText\>
|
|
1231
1231
|
<a
|
|
@@ -8,7 +8,7 @@ Overview
|
|
|
8
8
|
|
|
9
9
|
[](./iframe.html?id=components-inline--default)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Hide codedrawOpen in CodeSandbox
|
|
12
12
|
|
|
13
13
|
<IressInline gutter\="md"\>
|
|
14
14
|
<IressPlaceholder
|
|
@@ -57,7 +57,7 @@ ReactNode
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
| \- |
|
|
60
|
+
| \- | childrenChoose option...evenunevenstory |
|
|
61
61
|
| gutter |
|
|
62
62
|
|
|
63
63
|
Sets the spacing between inline content.
|
|
@@ -144,7 +144,7 @@ lg
|
|
|
144
144
|
xl
|
|
145
145
|
--
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
Hide codedrawOpen in CodeSandbox
|
|
148
148
|
|
|
149
149
|
<IressStack gutter\="xl"\>
|
|
150
150
|
<IressText\>
|
|
@@ -378,7 +378,7 @@ ReactNode
|
|
|
378
378
|
|
|
379
379
|
|
|
380
380
|
|
|
381
|
-
| \- |
|
|
381
|
+
| \- | childrenChoose option...evenunevenstory |
|
|
382
382
|
| gutter |
|
|
383
383
|
|
|
384
384
|
Sets the spacing between inline content.
|
|
@@ -442,13 +442,13 @@ Current breakpoint: **xl** breakpoint (1200px - 1499px).
|
|
|
442
442
|
|
|
443
443
|
`gutter={{"xs":"xs","sm":"sm","md":"md"}}`
|
|
444
444
|
|
|
445
|
-
|
|
445
|
+
Hide codedrawOpen in CodeSandbox
|
|
446
446
|
|
|
447
447
|
<IressStack gutter\="md"\>
|
|
448
448
|
<IressPanel\>
|
|
449
449
|
<p\>
|
|
450
450
|
Current breakpoint:{' '}
|
|
451
|
-
<
|
|
451
|
+
<Ln />
|
|
452
452
|
. </p\>
|
|
453
453
|
<p\>
|
|
454
454
|
<code\>
|
|
@@ -509,7 +509,7 @@ ReactNode
|
|
|
509
509
|
|
|
510
510
|
|
|
511
511
|
|
|
512
|
-
| \- |
|
|
512
|
+
| \- | childrenChoose option...evenunevenstory |
|
|
513
513
|
| gutter |
|
|
514
514
|
|
|
515
515
|
Sets the spacing between inline content.
|
|
@@ -524,7 +524,7 @@ union
|
|
|
524
524
|
|
|
525
525
|
|
|
|
526
526
|
|
|
527
|
-
|
|
527
|
+
Edit JSON
|
|
528
528
|
|
|
529
529
|
gutter :
|
|
530
530
|
|
|
@@ -614,7 +614,7 @@ left
|
|
|
614
614
|
right
|
|
615
615
|
-----
|
|
616
616
|
|
|
617
|
-
|
|
617
|
+
Hide codedrawOpen in CodeSandbox
|
|
618
618
|
|
|
619
619
|
<IressContainer\>
|
|
620
620
|
<IressStack gutter\="xl"\>
|
|
@@ -868,7 +868,7 @@ ReactNode
|
|
|
868
868
|
|
|
869
869
|
|
|
870
870
|
|
|
871
|
-
| \- |
|
|
871
|
+
| \- | childrenChoose option...evenunevenstory |
|
|
872
872
|
| gutter |
|
|
873
873
|
|
|
874
874
|
Sets the spacing between inline content.
|
|
@@ -949,7 +949,7 @@ bottom
|
|
|
949
949
|
stretch
|
|
950
950
|
-------
|
|
951
951
|
|
|
952
|
-
|
|
952
|
+
Hide codedrawOpen in CodeSandbox
|
|
953
953
|
|
|
954
954
|
<IressContainer\>
|
|
955
955
|
<IressStack gutter\="xl"\>
|
|
@@ -1129,7 +1129,7 @@ ReactNode
|
|
|
1129
1129
|
|
|
1130
1130
|
|
|
1131
1131
|
|
|
1132
|
-
| \- |
|
|
1132
|
+
| \- | childrenChoose option...evenunevenstory |
|
|
1133
1133
|
| gutter |
|
|
1134
1134
|
|
|
1135
1135
|
Sets the spacing between inline content.
|
|
@@ -1199,7 +1199,7 @@ The `IressInline` component automatically wraps children. There may be some scen
|
|
|
1199
1199
|
|
|
1200
1200
|
His head is gone, it is like it is been erased... Erased from existence. That was the day I invented time travel. I remember it vividly. I was standing on the edge of my toilet hanging a clock, the porces was wet, I slipped, hit my head on the edge of the sink. And when I came to I had a revelation, a picture, a picture in my head, a picture of this. This is what makes time travel possible. The flux capacitor.
|
|
1201
1201
|
|
|
1202
|
-
|
|
1202
|
+
Hide codedrawOpen in CodeSandbox
|
|
1203
1203
|
|
|
1204
1204
|
<IressInline
|
|
1205
1205
|
gutter\="lg"
|
|
@@ -1229,7 +1229,7 @@ ReactNode
|
|
|
1229
1229
|
|
|
1230
1230
|
|
|
1231
1231
|
|
|
1232
|
-
| \- |
|
|
1232
|
+
| \- | childrenChoose option...evenunevenstory |
|
|
1233
1233
|
| gutter |
|
|
1234
1234
|
|
|
1235
1235
|
Sets the spacing between inline content.
|
|
@@ -8,7 +8,7 @@ Inputs allow a user to input and interact with data. This component should be us
|
|
|
8
8
|
|
|
9
9
|
[](./iframe.html?id=components-input--default)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Hide codedrawOpen in CodeSandbox
|
|
12
12
|
|
|
13
13
|
<ForwardedInput
|
|
14
14
|
append\=""
|
|
@@ -160,7 +160,7 @@ For more information about each type, please see the [MDN documentation](https:/
|
|
|
160
160
|
|
|
161
161
|
[](./iframe.html?id=components-input--types)
|
|
162
162
|
|
|
163
|
-
|
|
163
|
+
Hide codedrawOpen in CodeSandbox
|
|
164
164
|
|
|
165
165
|
<IressStack gutter\="md"\>
|
|
166
166
|
<ForwardedInput
|
|
@@ -356,7 +356,7 @@ For more information about each mode (and their expected user experience), pleas
|
|
|
356
356
|
|
|
357
357
|
[](./iframe.html?id=components-input--input-modes)
|
|
358
358
|
|
|
359
|
-
|
|
359
|
+
Hide codedrawOpen in CodeSandbox
|
|
360
360
|
|
|
361
361
|
<IressStack gutter\="md"\>
|
|
362
362
|
<ForwardedInput
|
|
@@ -519,7 +519,7 @@ Clearing will set the focus on the input and trigger the `onClear` handler. Use
|
|
|
519
519
|
|
|
520
520
|
[](./iframe.html?id=components-input--clearable)
|
|
521
521
|
|
|
522
|
-
|
|
522
|
+
Hide codedrawOpen in CodeSandbox
|
|
523
523
|
|
|
524
524
|
<ForwardedInput
|
|
525
525
|
clearable
|
|
@@ -624,7 +624,7 @@ ReactReactNode
|
|
|
624
624
|
|
|
625
625
|
| \- |
|
|
626
626
|
|
|
627
|
-
|
|
627
|
+
Edit JSON
|
|
628
628
|
|
|
629
629
|
prepend :
|
|
630
630
|
|
|
@@ -693,7 +693,7 @@ Widths can also be set as a percentage, allowing the input to take up a proporti
|
|
|
693
693
|
|
|
694
694
|
[](./iframe.html?id=components-input--sizing)
|
|
695
695
|
|
|
696
|
-
|
|
696
|
+
Hide codedrawOpen in CodeSandbox
|
|
697
697
|
|
|
698
698
|
<IressStack gutter\="md"\>
|
|
699
699
|
<ForwardedInput
|
|
@@ -865,7 +865,7 @@ You can also use `IressInput` to render a `textarea` instead of an `input`. Simp
|
|
|
865
865
|
|
|
866
866
|
[](./iframe.html?id=components-input--text-areas)
|
|
867
867
|
|
|
868
|
-
|
|
868
|
+
Hide codedrawOpen in CodeSandbox
|
|
869
869
|
|
|
870
870
|
<ForwardedInput rows\={5} />
|
|
871
871
|
|
|
@@ -1004,7 +1004,7 @@ By setting the watermark prop to true the add ons will render in a different sty
|
|
|
1004
1004
|
|
|
1005
1005
|
[](./iframe.html?id=components-input--slots)
|
|
1006
1006
|
|
|
1007
|
-
|
|
1007
|
+
Hide codedrawOpen in CodeSandbox
|
|
1008
1008
|
|
|
1009
1009
|
<IressStack gutter\="md"\>
|
|
1010
1010
|
<ForwardedInput
|
|
@@ -1154,7 +1154,7 @@ If you need more control over the read-only state (for example, rendering a styl
|
|
|
1154
1154
|
|
|
1155
1155
|
Value
|
|
1156
1156
|
|
|
1157
|
-
|
|
1157
|
+
Hide codedrawOpen in CodeSandbox
|
|
1158
1158
|
|
|
1159
1159
|
<ForwardedInput
|
|
1160
1160
|
append\=""
|
|
@@ -1322,7 +1322,7 @@ The example below changes the value entered to uppercase when the input is not f
|
|
|
1322
1322
|
|
|
1323
1323
|
[](./iframe.html?id=components-input--formatter)
|
|
1324
1324
|
|
|
1325
|
-
|
|
1325
|
+
Hide codedrawOpen in CodeSandbox
|
|
1326
1326
|
|
|
1327
1327
|
<ForwardedInput
|
|
1328
1328
|
append\=""
|
|
@@ -8,7 +8,7 @@ You can use `IressInput` to display percentage formatting. When the field is foc
|
|
|
8
8
|
|
|
9
9
|
[](./iframe.html?id=components-input-recipes--percentage)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Hide codedrawOpen in CodeSandbox
|
|
12
12
|
|
|
13
13
|
import { IressInput } from '@iress-oss/ids-components';
|
|
14
14
|
export const InputPercentage \= () \=> (
|
|
@@ -162,7 +162,7 @@ Input using `{ register } = useForm()`
|
|
|
162
162
|
|
|
163
163
|
Submit
|
|
164
164
|
|
|
165
|
-
|
|
165
|
+
Hide codedrawOpen in CodeSandbox
|
|
166
166
|
|
|
167
167
|
import {
|
|
168
168
|
type InputRef,
|
|
@@ -174,7 +174,7 @@ import {
|
|
|
174
174
|
IressModal,
|
|
175
175
|
IressStack,
|
|
176
176
|
IressTable,
|
|
177
|
-
} from '
|
|
177
|
+
} from '@/main';
|
|
178
178
|
import { useState } from 'react';
|
|
179
179
|
import {
|
|
180
180
|
Controller,
|
|
@@ -10,7 +10,7 @@ InputCurrency allows a user to input and interact with currency number. It works
|
|
|
10
10
|
|
|
11
11
|
AUD
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Hide codedrawOpen in CodeSandbox
|
|
14
14
|
|
|
15
15
|
<IressInputCurrency
|
|
16
16
|
currencyCode\="AUD"
|
|
@@ -95,7 +95,7 @@ Display GBP currency using the `currencyCode="GBP"` prop.
|
|
|
95
95
|
|
|
96
96
|
GBP
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
Hide codedrawOpen in CodeSandbox
|
|
99
99
|
|
|
100
100
|
<IressInputCurrency
|
|
101
101
|
currencyCode\="GBP"
|
|
@@ -176,7 +176,7 @@ Pass more format options with `formatOptions` props. More format options in [her
|
|
|
176
176
|
|
|
177
177
|
AUD
|
|
178
178
|
|
|
179
|
-
|
|
179
|
+
Hide codedrawOpen in CodeSandbox
|
|
180
180
|
|
|
181
181
|
<IressInputCurrency
|
|
182
182
|
currencyCode\="AUD"
|
|
@@ -228,7 +228,7 @@ Omit
|
|
|
228
228
|
|
|
229
229
|
| \- |
|
|
230
230
|
|
|
231
|
-
|
|
231
|
+
Edit JSON
|
|
232
232
|
|
|
233
233
|
formatOptions :
|
|
234
234
|
|
|
@@ -282,7 +282,7 @@ A$12,345.68
|
|
|
282
282
|
|
|
283
283
|
AUD
|
|
284
284
|
|
|
285
|
-
|
|
285
|
+
Hide codedrawOpen in CodeSandbox
|
|
286
286
|
|
|
287
287
|
<IressInputCurrency
|
|
288
288
|
alignRight
|
|
@@ -365,7 +365,7 @@ Set the input content align to right with `alignRight` prop, which is more frien
|
|
|
365
365
|
|
|
366
366
|
AUD
|
|
367
367
|
|
|
368
|
-
|
|
368
|
+
Hide codedrawOpen in CodeSandbox
|
|
369
369
|
|
|
370
370
|
<IressInputCurrency
|
|
371
371
|
alignRight
|
|
@@ -16,8 +16,9 @@ My investments
|
|
|
16
16
|
| AU Stocks | 05/02/2019 | 26.2% | 9,342.16 |
|
|
17
17
|
| UK Stocks | 28/06/2020 | 49% | 49,751.40 |
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Hide codedrawOpen in CodeSandbox
|
|
20
20
|
|
|
21
|
+
import { IressTable } from '@/main';
|
|
21
22
|
export const CurrencyInTable \= () \=> {
|
|
22
23
|
return (
|
|
23
24
|
<IressTable
|
|
@@ -140,8 +141,10 @@ Only able to input valid value when use `IressInputCurrency`. In this example, o
|
|
|
140
141
|
|
|
141
142
|
AUD
|
|
142
143
|
|
|
143
|
-
|
|
144
|
+
Hide codedrawOpen in CodeSandbox
|
|
144
145
|
|
|
146
|
+
import { IressInputCurrency } from '@/main';
|
|
147
|
+
import { useState } from 'react';
|
|
145
148
|
export const ValidValueOnChage \= () \=> {
|
|
146
149
|
const \[value, setValue\] \= useState('');
|
|
147
150
|
return (
|
|
@@ -10,7 +10,7 @@ Use the `IressLabel` component when building bespoke form inputs and `IressField
|
|
|
10
10
|
|
|
11
11
|
**This is a label**
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Hide codedrawOpen in CodeSandbox
|
|
14
14
|
|
|
15
15
|
<IressLabel\>
|
|
16
16
|
This is a label
|
|
@@ -58,7 +58,7 @@ To indicate that an input is required, you may use the `required` prop to distin
|
|
|
58
58
|
|
|
59
59
|
**\*Required This is a label for a required input**
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
Hide codedrawOpen in CodeSandbox
|
|
62
62
|
|
|
63
63
|
<IressLabel required\>
|
|
64
64
|
This is a label for a required input
|
|
@@ -113,7 +113,7 @@ The `optional` prop also accepts a string, in which case it will replace the def
|
|
|
113
113
|
|
|
114
114
|
**This is a label for an optional input(optional)**
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
Hide codedrawOpen in CodeSandbox
|
|
117
117
|
|
|
118
118
|
<IressLabel optional\>
|
|
119
119
|
This is a label for an optional input
|
|
@@ -160,7 +160,7 @@ boolean
|
|
|
160
160
|
|
|
161
161
|
**This is a label for an optional input(选修的)**
|
|
162
162
|
|
|
163
|
-
|
|
163
|
+
Hide codedrawOpen in CodeSandbox
|
|
164
164
|
|
|
165
165
|
<IressLabel optional\="(选修的)"\>
|
|
166
166
|
This is a label for an optional input
|
|
@@ -211,7 +211,7 @@ Sometimes you may wish to have an input with no visible label, but to still wrap
|
|
|
211
211
|
|
|
212
212
|
**This text is visible to screen readers only**
|
|
213
213
|
|
|
214
|
-
|
|
214
|
+
Hide codedrawOpen in CodeSandbox
|
|
215
215
|
|
|
216
216
|
<IressLabel hiddenLabel\>
|
|
217
217
|
This text is visible to screen readers only
|
|
@@ -266,7 +266,7 @@ Home settings
|
|
|
266
266
|
|
|
267
267
|
**
|
|
268
268
|
|
|
269
|
-
|
|
269
|
+
Hide codedrawOpen in CodeSandbox
|
|
270
270
|
|
|
271
271
|
<IressLabel\>
|
|
272
272
|
<IressInline
|