@zendeskgarden/react-forms 8.49.2 → 8.50.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/dist/index.cjs.js +77 -88
- package/dist/index.esm.js +77 -89
- package/dist/typings/elements/Checkbox.d.ts +2 -10
- package/dist/typings/elements/FileUpload.d.ts +2 -9
- package/dist/typings/elements/Input.d.ts +2 -12
- package/dist/typings/elements/MediaInput.d.ts +2 -20
- package/dist/typings/elements/MultiThumbRange.d.ts +2 -26
- package/dist/typings/elements/Radio.d.ts +2 -5
- package/dist/typings/elements/Range.d.ts +2 -5
- package/dist/typings/elements/Select.d.ts +2 -12
- package/dist/typings/elements/Textarea.d.ts +2 -18
- package/dist/typings/elements/Toggle.d.ts +2 -5
- package/dist/typings/elements/common/Fieldset.d.ts +2 -7
- package/dist/typings/elements/common/Label.d.ts +2 -5
- package/dist/typings/elements/common/Message.d.ts +2 -6
- package/dist/typings/elements/faux-input/FauxInput.d.ts +1 -19
- package/dist/typings/elements/faux-input/components/EndIcon.d.ts +2 -12
- package/dist/typings/elements/faux-input/components/StartIcon.d.ts +2 -12
- package/dist/typings/elements/file-list/components/File.d.ts +2 -12
- package/dist/typings/elements/file-list/utils.d.ts +3 -18
- package/dist/typings/elements/input-group/InputGroup.d.ts +2 -5
- package/dist/typings/elements/tiles/Tiles.d.ts +2 -11
- package/dist/typings/elements/tiles/components/Tile.d.ts +2 -7
- package/dist/typings/index.d.ts +4 -20
- package/dist/typings/styled/common/StyledMessage.d.ts +2 -2
- package/dist/typings/styled/common/StyledMessageIcon.d.ts +2 -2
- package/dist/typings/styled/file-list/StyledFile.d.ts +2 -1
- package/dist/typings/styled/text/StyledTextInput.d.ts +2 -2
- package/dist/typings/types/index.d.ts +143 -0
- package/dist/typings/utils/useTilesContext.d.ts +4 -10
- package/package.json +5 -5
- package/dist/typings/utils/validation.d.ts +0 -7
package/dist/index.esm.js
CHANGED
|
@@ -115,22 +115,10 @@ function _slicedToArray(arr, i) {
|
|
|
115
115
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
function _toConsumableArray(arr) {
|
|
119
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
function _arrayWithoutHoles(arr) {
|
|
123
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
118
|
function _arrayWithHoles(arr) {
|
|
127
119
|
if (Array.isArray(arr)) return arr;
|
|
128
120
|
}
|
|
129
121
|
|
|
130
|
-
function _iterableToArray(iter) {
|
|
131
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
122
|
function _iterableToArrayLimit(arr, i) {
|
|
135
123
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
136
124
|
|
|
@@ -178,10 +166,6 @@ function _arrayLikeToArray(arr, len) {
|
|
|
178
166
|
return arr2;
|
|
179
167
|
}
|
|
180
168
|
|
|
181
|
-
function _nonIterableSpread() {
|
|
182
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
183
|
-
}
|
|
184
|
-
|
|
185
169
|
function _nonIterableRest() {
|
|
186
170
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
187
171
|
}
|
|
@@ -195,7 +179,7 @@ var useFieldContext = function useFieldContext() {
|
|
|
195
179
|
var COMPONENT_ID$K = 'forms.field';
|
|
196
180
|
var StyledField = styled.div.attrs({
|
|
197
181
|
'data-garden-id': COMPONENT_ID$K,
|
|
198
|
-
'data-garden-version': '8.
|
|
182
|
+
'data-garden-version': '8.50.0'
|
|
199
183
|
}).withConfig({
|
|
200
184
|
displayName: "StyledField",
|
|
201
185
|
componentId: "sc-12gzfsu-0"
|
|
@@ -212,7 +196,7 @@ var COMPONENT_ID$J = 'forms.fieldset';
|
|
|
212
196
|
var StyledFieldset = styled(StyledField).attrs({
|
|
213
197
|
as: 'fieldset',
|
|
214
198
|
'data-garden-id': COMPONENT_ID$J,
|
|
215
|
-
'data-garden-version': '8.
|
|
199
|
+
'data-garden-version': '8.50.0'
|
|
216
200
|
}).withConfig({
|
|
217
201
|
displayName: "StyledFieldset",
|
|
218
202
|
componentId: "sc-1vr4mxv-0"
|
|
@@ -228,7 +212,7 @@ StyledFieldset.defaultProps = {
|
|
|
228
212
|
var COMPONENT_ID$I = 'forms.input_label';
|
|
229
213
|
var StyledLabel = styled.label.attrs({
|
|
230
214
|
'data-garden-id': COMPONENT_ID$I,
|
|
231
|
-
'data-garden-version': '8.
|
|
215
|
+
'data-garden-version': '8.50.0'
|
|
232
216
|
}).withConfig({
|
|
233
217
|
displayName: "StyledLabel",
|
|
234
218
|
componentId: "sc-2utmsz-0"
|
|
@@ -263,7 +247,7 @@ var COMPONENT_ID$H = 'forms.fieldset_legend';
|
|
|
263
247
|
var StyledLegend = styled(StyledLabel).attrs({
|
|
264
248
|
as: 'legend',
|
|
265
249
|
'data-garden-id': COMPONENT_ID$H,
|
|
266
|
-
'data-garden-version': '8.
|
|
250
|
+
'data-garden-version': '8.50.0'
|
|
267
251
|
}).withConfig({
|
|
268
252
|
displayName: "StyledLegend",
|
|
269
253
|
componentId: "sc-6s0zwq-0"
|
|
@@ -277,7 +261,7 @@ StyledLegend.defaultProps = {
|
|
|
277
261
|
var COMPONENT_ID$G = 'forms.input_hint';
|
|
278
262
|
var StyledHint = styled.div.attrs({
|
|
279
263
|
'data-garden-id': COMPONENT_ID$G,
|
|
280
|
-
'data-garden-version': '8.
|
|
264
|
+
'data-garden-version': '8.50.0'
|
|
281
265
|
}).withConfig({
|
|
282
266
|
displayName: "StyledHint",
|
|
283
267
|
componentId: "sc-17c2wu8-0"
|
|
@@ -397,7 +381,7 @@ var MessageIcon = function MessageIcon(_ref) {
|
|
|
397
381
|
var COMPONENT_ID$F = 'forms.input_message_icon';
|
|
398
382
|
var StyledMessageIcon = styled(MessageIcon).attrs({
|
|
399
383
|
'data-garden-id': COMPONENT_ID$F,
|
|
400
|
-
'data-garden-version': '8.
|
|
384
|
+
'data-garden-version': '8.50.0'
|
|
401
385
|
}).withConfig({
|
|
402
386
|
displayName: "StyledMessageIcon",
|
|
403
387
|
componentId: "sc-1ph2gba-0"
|
|
@@ -430,7 +414,7 @@ var validationStyles = function validationStyles(props) {
|
|
|
430
414
|
var COMPONENT_ID$E = 'forms.input_message';
|
|
431
415
|
var StyledMessage = styled.div.attrs({
|
|
432
416
|
'data-garden-id': COMPONENT_ID$E,
|
|
433
|
-
'data-garden-version': '8.
|
|
417
|
+
'data-garden-version': '8.50.0'
|
|
434
418
|
}).withConfig({
|
|
435
419
|
displayName: "StyledMessage",
|
|
436
420
|
componentId: "sc-30hgg7-0"
|
|
@@ -522,7 +506,7 @@ var sizeStyles$f = function sizeStyles(props) {
|
|
|
522
506
|
var StyledTextInput = styled.input.attrs(function (props) {
|
|
523
507
|
return {
|
|
524
508
|
'data-garden-id': COMPONENT_ID$D,
|
|
525
|
-
'data-garden-version': '8.
|
|
509
|
+
'data-garden-version': '8.50.0',
|
|
526
510
|
'aria-invalid': isInvalid(props.validation)
|
|
527
511
|
};
|
|
528
512
|
}).withConfig({
|
|
@@ -558,7 +542,7 @@ var hiddenStyles = "\n visibility: hidden;\n position: absolute;\n overflow:
|
|
|
558
542
|
var StyledTextarea = styled(StyledTextInput).attrs({
|
|
559
543
|
as: 'textarea',
|
|
560
544
|
'data-garden-id': COMPONENT_ID$C,
|
|
561
|
-
'data-garden-version': '8.
|
|
545
|
+
'data-garden-version': '8.50.0'
|
|
562
546
|
}).withConfig({
|
|
563
547
|
displayName: "StyledTextarea",
|
|
564
548
|
componentId: "sc-wxschl-0"
|
|
@@ -609,7 +593,7 @@ function (_ref) {
|
|
|
609
593
|
return React__default.cloneElement(Children.only(children), props);
|
|
610
594
|
}).attrs({
|
|
611
595
|
'data-garden-id': COMPONENT_ID$B,
|
|
612
|
-
'data-garden-version': '8.
|
|
596
|
+
'data-garden-version': '8.50.0'
|
|
613
597
|
}).withConfig({
|
|
614
598
|
displayName: "StyledTextMediaFigure",
|
|
615
599
|
componentId: "sc-1qepknj-0"
|
|
@@ -633,7 +617,7 @@ var StyledTextFauxInput = styled(StyledTextInput).attrs(function (props) {
|
|
|
633
617
|
'aria-readonly': props.isReadOnly,
|
|
634
618
|
'aria-disabled': props.isDisabled,
|
|
635
619
|
'data-garden-id': COMPONENT_ID$A,
|
|
636
|
-
'data-garden-version': '8.
|
|
620
|
+
'data-garden-version': '8.50.0'
|
|
637
621
|
};
|
|
638
622
|
}).withConfig({
|
|
639
623
|
displayName: "StyledTextFauxInput",
|
|
@@ -658,7 +642,7 @@ StyledTextFauxInput.defaultProps = {
|
|
|
658
642
|
var COMPONENT_ID$z = 'forms.media_input';
|
|
659
643
|
var StyledTextMediaInput = styled(StyledTextInput).attrs({
|
|
660
644
|
'data-garden-id': COMPONENT_ID$z,
|
|
661
|
-
'data-garden-version': '8.
|
|
645
|
+
'data-garden-version': '8.50.0',
|
|
662
646
|
isBare: true
|
|
663
647
|
}).withConfig({
|
|
664
648
|
displayName: "StyledTextMediaInput",
|
|
@@ -683,7 +667,7 @@ var itemStyles = function itemStyles(props) {
|
|
|
683
667
|
};
|
|
684
668
|
var StyledInputGroup = styled.div.attrs({
|
|
685
669
|
'data-garden-id': COMPONENT_ID$y,
|
|
686
|
-
'data-garden-version': '8.
|
|
670
|
+
'data-garden-version': '8.50.0'
|
|
687
671
|
}).withConfig({
|
|
688
672
|
displayName: "StyledInputGroup",
|
|
689
673
|
componentId: "sc-kjh1f0-0"
|
|
@@ -707,7 +691,7 @@ var sizeStyles$d = function sizeStyles(props) {
|
|
|
707
691
|
};
|
|
708
692
|
var StyledRadioLabel = styled(StyledLabel).attrs({
|
|
709
693
|
'data-garden-id': COMPONENT_ID$x,
|
|
710
|
-
'data-garden-version': '8.
|
|
694
|
+
'data-garden-version': '8.50.0',
|
|
711
695
|
isRadio: true
|
|
712
696
|
}).withConfig({
|
|
713
697
|
displayName: "StyledRadioLabel",
|
|
@@ -724,7 +708,7 @@ StyledRadioLabel.defaultProps = {
|
|
|
724
708
|
var COMPONENT_ID$w = 'forms.checkbox_label';
|
|
725
709
|
var StyledCheckLabel = styled(StyledRadioLabel).attrs({
|
|
726
710
|
'data-garden-id': COMPONENT_ID$w,
|
|
727
|
-
'data-garden-version': '8.
|
|
711
|
+
'data-garden-version': '8.50.0'
|
|
728
712
|
}).withConfig({
|
|
729
713
|
displayName: "StyledCheckLabel",
|
|
730
714
|
componentId: "sc-x7nr1-0"
|
|
@@ -738,7 +722,7 @@ StyledCheckLabel.defaultProps = {
|
|
|
738
722
|
var COMPONENT_ID$v = 'forms.radio_hint';
|
|
739
723
|
var StyledRadioHint = styled(StyledHint).attrs({
|
|
740
724
|
'data-garden-id': COMPONENT_ID$v,
|
|
741
|
-
'data-garden-version': '8.
|
|
725
|
+
'data-garden-version': '8.50.0'
|
|
742
726
|
}).withConfig({
|
|
743
727
|
displayName: "StyledRadioHint",
|
|
744
728
|
componentId: "sc-eo8twg-0"
|
|
@@ -756,7 +740,7 @@ StyledRadioHint.defaultProps = {
|
|
|
756
740
|
var COMPONENT_ID$u = 'forms.checkbox_hint';
|
|
757
741
|
var StyledCheckHint = styled(StyledRadioHint).attrs({
|
|
758
742
|
'data-garden-id': COMPONENT_ID$u,
|
|
759
|
-
'data-garden-version': '8.
|
|
743
|
+
'data-garden-version': '8.50.0'
|
|
760
744
|
}).withConfig({
|
|
761
745
|
displayName: "StyledCheckHint",
|
|
762
746
|
componentId: "sc-1kl8e8c-0"
|
|
@@ -800,7 +784,7 @@ var sizeStyles$c = function sizeStyles(props) {
|
|
|
800
784
|
};
|
|
801
785
|
var StyledRadioInput = styled.input.attrs({
|
|
802
786
|
'data-garden-id': COMPONENT_ID$t,
|
|
803
|
-
'data-garden-version': '8.
|
|
787
|
+
'data-garden-version': '8.50.0',
|
|
804
788
|
type: 'radio'
|
|
805
789
|
}).withConfig({
|
|
806
790
|
displayName: "StyledRadioInput",
|
|
@@ -832,7 +816,7 @@ var colorStyles$8 = function colorStyles(props) {
|
|
|
832
816
|
};
|
|
833
817
|
var StyledCheckInput = styled(StyledRadioInput).attrs({
|
|
834
818
|
'data-garden-id': COMPONENT_ID$s,
|
|
835
|
-
'data-garden-version': '8.
|
|
819
|
+
'data-garden-version': '8.50.0',
|
|
836
820
|
type: 'checkbox'
|
|
837
821
|
}).withConfig({
|
|
838
822
|
displayName: "StyledCheckInput",
|
|
@@ -851,7 +835,7 @@ StyledCheckInput.defaultProps = {
|
|
|
851
835
|
var COMPONENT_ID$r = 'forms.radio_message';
|
|
852
836
|
var StyledRadioMessage = styled(StyledMessage).attrs({
|
|
853
837
|
'data-garden-id': COMPONENT_ID$r,
|
|
854
|
-
'data-garden-version': '8.
|
|
838
|
+
'data-garden-version': '8.50.0'
|
|
855
839
|
}).withConfig({
|
|
856
840
|
displayName: "StyledRadioMessage",
|
|
857
841
|
componentId: "sc-1pmi0q8-0"
|
|
@@ -869,7 +853,7 @@ StyledRadioMessage.defaultProps = {
|
|
|
869
853
|
var COMPONENT_ID$q = 'forms.checkbox_message';
|
|
870
854
|
var StyledCheckMessage = styled(StyledRadioMessage).attrs({
|
|
871
855
|
'data-garden-id': COMPONENT_ID$q,
|
|
872
|
-
'data-garden-version': '8.
|
|
856
|
+
'data-garden-version': '8.50.0'
|
|
873
857
|
}).withConfig({
|
|
874
858
|
displayName: "StyledCheckMessage",
|
|
875
859
|
componentId: "sc-s4p6kd-0"
|
|
@@ -905,7 +889,7 @@ var SvgCheckSmFill = function SvgCheckSmFill(props) {
|
|
|
905
889
|
var COMPONENT_ID$p = 'forms.check_svg';
|
|
906
890
|
var StyledCheckSvg = styled(SvgCheckSmFill).attrs({
|
|
907
891
|
'data-garden-id': COMPONENT_ID$p,
|
|
908
|
-
'data-garden-version': '8.
|
|
892
|
+
'data-garden-version': '8.50.0'
|
|
909
893
|
}).withConfig({
|
|
910
894
|
displayName: "StyledCheckSvg",
|
|
911
895
|
componentId: "sc-fvxetk-0"
|
|
@@ -939,7 +923,7 @@ var SvgDashFill = function SvgDashFill(props) {
|
|
|
939
923
|
var COMPONENT_ID$o = 'forms.dash_svg';
|
|
940
924
|
var StyledDashSvg = styled(SvgDashFill).attrs({
|
|
941
925
|
'data-garden-id': COMPONENT_ID$o,
|
|
942
|
-
'data-garden-version': '8.
|
|
926
|
+
'data-garden-version': '8.50.0'
|
|
943
927
|
}).withConfig({
|
|
944
928
|
displayName: "StyledDashSvg",
|
|
945
929
|
componentId: "sc-z3vq71-0"
|
|
@@ -970,7 +954,7 @@ var sizeStyles$b = function sizeStyles(props) {
|
|
|
970
954
|
};
|
|
971
955
|
var StyledFileUpload = styled.div.attrs({
|
|
972
956
|
'data-garden-id': COMPONENT_ID$n,
|
|
973
|
-
'data-garden-version': '8.
|
|
957
|
+
'data-garden-version': '8.50.0'
|
|
974
958
|
}).withConfig({
|
|
975
959
|
displayName: "StyledFileUpload",
|
|
976
960
|
componentId: "sc-1rodjgn-0"
|
|
@@ -990,7 +974,7 @@ StyledFileUpload.defaultProps = {
|
|
|
990
974
|
var COMPONENT_ID$m = 'forms.file.close';
|
|
991
975
|
var StyledFileClose = styled.div.attrs({
|
|
992
976
|
'data-garden-id': COMPONENT_ID$m,
|
|
993
|
-
'data-garden-version': '8.
|
|
977
|
+
'data-garden-version': '8.50.0'
|
|
994
978
|
}).withConfig({
|
|
995
979
|
displayName: "StyledFileClose",
|
|
996
980
|
componentId: "sc-1m31jbf-0"
|
|
@@ -1033,7 +1017,7 @@ var sizeStyles$a = function sizeStyles(props) {
|
|
|
1033
1017
|
};
|
|
1034
1018
|
var StyledFile = styled.div.attrs({
|
|
1035
1019
|
'data-garden-id': COMPONENT_ID$l,
|
|
1036
|
-
'data-garden-version': '8.
|
|
1020
|
+
'data-garden-version': '8.50.0'
|
|
1037
1021
|
}).withConfig({
|
|
1038
1022
|
displayName: "StyledFile",
|
|
1039
1023
|
componentId: "sc-195lzp1-0"
|
|
@@ -1049,7 +1033,7 @@ StyledFile.defaultProps = {
|
|
|
1049
1033
|
var COMPONENT_ID$k = 'forms.file.delete';
|
|
1050
1034
|
var StyledFileDelete = styled(StyledFileClose).attrs({
|
|
1051
1035
|
'data-garden-id': COMPONENT_ID$k,
|
|
1052
|
-
'data-garden-version': '8.
|
|
1036
|
+
'data-garden-version': '8.50.0'
|
|
1053
1037
|
}).withConfig({
|
|
1054
1038
|
displayName: "StyledFileDelete",
|
|
1055
1039
|
componentId: "sc-a8nnhx-0"
|
|
@@ -1072,7 +1056,7 @@ var StyledFileIcon = styled(function (_ref) {
|
|
|
1072
1056
|
return React__default.cloneElement(Children.only(children), props);
|
|
1073
1057
|
}).attrs({
|
|
1074
1058
|
'data-garden-id': COMPONENT_ID$j,
|
|
1075
|
-
'data-garden-version': '8.
|
|
1059
|
+
'data-garden-version': '8.50.0'
|
|
1076
1060
|
}).withConfig({
|
|
1077
1061
|
displayName: "StyledFileIcon",
|
|
1078
1062
|
componentId: "sc-7b3q0c-0"
|
|
@@ -1092,7 +1076,7 @@ StyledFileIcon.defaultProps = {
|
|
|
1092
1076
|
var COMPONENT_ID$i = 'forms.file_list';
|
|
1093
1077
|
var StyledFileList = styled.ul.attrs({
|
|
1094
1078
|
'data-garden-id': COMPONENT_ID$i,
|
|
1095
|
-
'data-garden-version': '8.
|
|
1079
|
+
'data-garden-version': '8.50.0'
|
|
1096
1080
|
}).withConfig({
|
|
1097
1081
|
displayName: "StyledFileList",
|
|
1098
1082
|
componentId: "sc-gbahjg-0"
|
|
@@ -1106,7 +1090,7 @@ StyledFileList.defaultProps = {
|
|
|
1106
1090
|
var COMPONENT_ID$h = 'forms.file_list.item';
|
|
1107
1091
|
var StyledFileListItem = styled.li.attrs({
|
|
1108
1092
|
'data-garden-id': COMPONENT_ID$h,
|
|
1109
|
-
'data-garden-version': '8.
|
|
1093
|
+
'data-garden-version': '8.50.0'
|
|
1110
1094
|
}).withConfig({
|
|
1111
1095
|
displayName: "StyledFileListItem",
|
|
1112
1096
|
componentId: "sc-1ova3lo-0"
|
|
@@ -1142,7 +1126,7 @@ var SvgCircleSmFill$1 = function SvgCircleSmFill(props) {
|
|
|
1142
1126
|
var COMPONENT_ID$g = 'forms.radio_svg';
|
|
1143
1127
|
var StyledRadioSvg = styled(SvgCircleSmFill$1).attrs({
|
|
1144
1128
|
'data-garden-id': COMPONENT_ID$g,
|
|
1145
|
-
'data-garden-version': '8.
|
|
1129
|
+
'data-garden-version': '8.50.0'
|
|
1146
1130
|
}).withConfig({
|
|
1147
1131
|
displayName: "StyledRadioSvg",
|
|
1148
1132
|
componentId: "sc-1r1qtr1-0"
|
|
@@ -1161,7 +1145,7 @@ var sizeStyles$9 = function sizeStyles(props) {
|
|
|
1161
1145
|
};
|
|
1162
1146
|
var StyledToggleLabel = styled(StyledCheckLabel).attrs({
|
|
1163
1147
|
'data-garden-id': COMPONENT_ID$f,
|
|
1164
|
-
'data-garden-version': '8.
|
|
1148
|
+
'data-garden-version': '8.50.0'
|
|
1165
1149
|
}).withConfig({
|
|
1166
1150
|
displayName: "StyledToggleLabel",
|
|
1167
1151
|
componentId: "sc-e0asdk-0"
|
|
@@ -1177,7 +1161,7 @@ StyledToggleLabel.defaultProps = {
|
|
|
1177
1161
|
var COMPONENT_ID$e = 'forms.toggle_hint';
|
|
1178
1162
|
var StyledToggleHint = styled(StyledHint).attrs({
|
|
1179
1163
|
'data-garden-id': COMPONENT_ID$e,
|
|
1180
|
-
'data-garden-version': '8.
|
|
1164
|
+
'data-garden-version': '8.50.0'
|
|
1181
1165
|
}).withConfig({
|
|
1182
1166
|
displayName: "StyledToggleHint",
|
|
1183
1167
|
componentId: "sc-nziggu-0"
|
|
@@ -1210,7 +1194,7 @@ var sizeStyles$8 = function sizeStyles(props) {
|
|
|
1210
1194
|
};
|
|
1211
1195
|
var StyledToggleInput = styled(StyledCheckInput).attrs({
|
|
1212
1196
|
'data-garden-id': COMPONENT_ID$d,
|
|
1213
|
-
'data-garden-version': '8.
|
|
1197
|
+
'data-garden-version': '8.50.0'
|
|
1214
1198
|
}).withConfig({
|
|
1215
1199
|
displayName: "StyledToggleInput",
|
|
1216
1200
|
componentId: "sc-sgp47s-0"
|
|
@@ -1228,7 +1212,7 @@ StyledToggleInput.defaultProps = {
|
|
|
1228
1212
|
var COMPONENT_ID$c = 'forms.toggle_message';
|
|
1229
1213
|
var StyledToggleMessage = styled(StyledMessage).attrs({
|
|
1230
1214
|
'data-garden-id': COMPONENT_ID$c,
|
|
1231
|
-
'data-garden-version': '8.
|
|
1215
|
+
'data-garden-version': '8.50.0'
|
|
1232
1216
|
}).withConfig({
|
|
1233
1217
|
displayName: "StyledToggleMessage",
|
|
1234
1218
|
componentId: "sc-13vuvl1-0"
|
|
@@ -1270,7 +1254,7 @@ var SvgCircleSmFill = function SvgCircleSmFill(props) {
|
|
|
1270
1254
|
var COMPONENT_ID$b = 'forms.toggle_svg';
|
|
1271
1255
|
var StyledToggleSvg = styled(SvgCircleSmFill).attrs({
|
|
1272
1256
|
'data-garden-id': COMPONENT_ID$b,
|
|
1273
|
-
'data-garden-version': '8.
|
|
1257
|
+
'data-garden-version': '8.50.0'
|
|
1274
1258
|
}).withConfig({
|
|
1275
1259
|
displayName: "StyledToggleSvg",
|
|
1276
1260
|
componentId: "sc-162xbyx-0"
|
|
@@ -1294,7 +1278,7 @@ var sizeStyles$7 = function sizeStyles(props) {
|
|
|
1294
1278
|
};
|
|
1295
1279
|
var StyledSelect = styled(StyledTextInput).attrs({
|
|
1296
1280
|
'data-garden-id': COMPONENT_ID$a,
|
|
1297
|
-
'data-garden-version': '8.
|
|
1281
|
+
'data-garden-version': '8.50.0',
|
|
1298
1282
|
as: 'select'
|
|
1299
1283
|
}).withConfig({
|
|
1300
1284
|
displayName: "StyledSelect",
|
|
@@ -1313,7 +1297,7 @@ StyledSelect.defaultProps = {
|
|
|
1313
1297
|
var COMPONENT_ID$9 = 'forms.select_wrapper';
|
|
1314
1298
|
var StyledSelectWrapper = styled(StyledTextFauxInput).attrs({
|
|
1315
1299
|
'data-garden-id': COMPONENT_ID$9,
|
|
1316
|
-
'data-garden-version': '8.
|
|
1300
|
+
'data-garden-version': '8.50.0',
|
|
1317
1301
|
isBare: true
|
|
1318
1302
|
}).withConfig({
|
|
1319
1303
|
displayName: "StyledSelectWrapper",
|
|
@@ -1366,7 +1350,7 @@ var sizeStyles$6 = function sizeStyles(props) {
|
|
|
1366
1350
|
var StyledRangeInput = styled.input.attrs(function (props) {
|
|
1367
1351
|
return {
|
|
1368
1352
|
'data-garden-id': COMPONENT_ID$8,
|
|
1369
|
-
'data-garden-version': '8.
|
|
1353
|
+
'data-garden-version': '8.50.0',
|
|
1370
1354
|
type: 'range',
|
|
1371
1355
|
style: {
|
|
1372
1356
|
backgroundSize: props.hasLowerTrack && props.backgroundSize
|
|
@@ -1398,7 +1382,7 @@ var COMPONENT_ID$7 = 'forms.slider';
|
|
|
1398
1382
|
var StyledSlider = styled.div.attrs(function (props) {
|
|
1399
1383
|
return {
|
|
1400
1384
|
'data-garden-id': COMPONENT_ID$7,
|
|
1401
|
-
'data-garden-version': '8.
|
|
1385
|
+
'data-garden-version': '8.50.0',
|
|
1402
1386
|
'aria-disabled': props.isDisabled
|
|
1403
1387
|
};
|
|
1404
1388
|
}).withConfig({
|
|
@@ -1438,7 +1422,7 @@ var sizeStyles$5 = function sizeStyles(props) {
|
|
|
1438
1422
|
var StyledSliderThumb = styled.div.attrs(function (props) {
|
|
1439
1423
|
return {
|
|
1440
1424
|
'data-garden-id': COMPONENT_ID$6,
|
|
1441
|
-
'data-garden-version': '8.
|
|
1425
|
+
'data-garden-version': '8.50.0',
|
|
1442
1426
|
'aria-disabled': props.isDisabled
|
|
1443
1427
|
};
|
|
1444
1428
|
}).withConfig({
|
|
@@ -1482,7 +1466,7 @@ var sizeStyles$4 = function sizeStyles(props) {
|
|
|
1482
1466
|
var StyledSliderTrack = styled.div.attrs(function (props) {
|
|
1483
1467
|
return {
|
|
1484
1468
|
'data-garden-id': COMPONENT_ID$5,
|
|
1485
|
-
'data-garden-version': '8.
|
|
1469
|
+
'data-garden-version': '8.50.0',
|
|
1486
1470
|
'aria-disabled': props.isDisabled
|
|
1487
1471
|
};
|
|
1488
1472
|
}).withConfig({
|
|
@@ -1509,7 +1493,7 @@ var sizeStyles$3 = function sizeStyles(props) {
|
|
|
1509
1493
|
};
|
|
1510
1494
|
var StyledSliderTrackRail = styled.div.attrs({
|
|
1511
1495
|
'data-garden-id': COMPONENT_ID$4,
|
|
1512
|
-
'data-garden-version': '8.
|
|
1496
|
+
'data-garden-version': '8.50.0'
|
|
1513
1497
|
}).withConfig({
|
|
1514
1498
|
displayName: "StyledSliderTrackRail",
|
|
1515
1499
|
componentId: "sc-1o5owbd-0"
|
|
@@ -1540,7 +1524,7 @@ var sizeStyles$2 = function sizeStyles(props) {
|
|
|
1540
1524
|
};
|
|
1541
1525
|
var StyledTileIcon = styled.span.attrs({
|
|
1542
1526
|
'data-garden-id': COMPONENT_ID$3,
|
|
1543
|
-
'data-garden-version': '8.
|
|
1527
|
+
'data-garden-version': '8.50.0'
|
|
1544
1528
|
}).withConfig({
|
|
1545
1529
|
displayName: "StyledTileIcon",
|
|
1546
1530
|
componentId: "sc-1wazhg4-0"
|
|
@@ -1580,7 +1564,7 @@ var colorStyles = function colorStyles(props) {
|
|
|
1580
1564
|
var StyledTile = styled.label.attrs(function (props) {
|
|
1581
1565
|
return {
|
|
1582
1566
|
'data-garden-id': COMPONENT_ID$2,
|
|
1583
|
-
'data-garden-version': '8.
|
|
1567
|
+
'data-garden-version': '8.50.0',
|
|
1584
1568
|
'data-garden-focus-visible': props.isFocused,
|
|
1585
1569
|
'data-garden-selected': props.isSelected
|
|
1586
1570
|
};
|
|
@@ -1618,7 +1602,7 @@ var sizeStyles$1 = function sizeStyles(props) {
|
|
|
1618
1602
|
};
|
|
1619
1603
|
var StyledTileDescription = styled.span.attrs({
|
|
1620
1604
|
'data-garden-id': COMPONENT_ID$1,
|
|
1621
|
-
'data-garden-version': '8.
|
|
1605
|
+
'data-garden-version': '8.50.0'
|
|
1622
1606
|
}).withConfig({
|
|
1623
1607
|
displayName: "StyledTileDescription",
|
|
1624
1608
|
componentId: "sc-xfuu7u-0"
|
|
@@ -1661,7 +1645,7 @@ var sizeStyles = function sizeStyles(props) {
|
|
|
1661
1645
|
};
|
|
1662
1646
|
var StyledTileLabel = styled.span.attrs({
|
|
1663
1647
|
'data-garden-id': COMPONENT_ID,
|
|
1664
|
-
'data-garden-version': '8.
|
|
1648
|
+
'data-garden-version': '8.50.0'
|
|
1665
1649
|
}).withConfig({
|
|
1666
1650
|
displayName: "StyledTileLabel",
|
|
1667
1651
|
componentId: "sc-1mypv27-0"
|
|
@@ -1744,6 +1728,9 @@ var FieldsetComponent = forwardRef(function (props, ref) {
|
|
|
1744
1728
|
})));
|
|
1745
1729
|
});
|
|
1746
1730
|
FieldsetComponent.displayName = 'Fieldset';
|
|
1731
|
+
FieldsetComponent.propTypes = {
|
|
1732
|
+
isCompact: PropTypes.bool
|
|
1733
|
+
};
|
|
1747
1734
|
var Fieldset = FieldsetComponent;
|
|
1748
1735
|
Fieldset.Legend = Legend;
|
|
1749
1736
|
|
|
@@ -1850,6 +1837,10 @@ Label$1.propTypes = {
|
|
|
1850
1837
|
isRegular: PropTypes.bool
|
|
1851
1838
|
};
|
|
1852
1839
|
|
|
1840
|
+
var VALIDATION = ['success', 'warning', 'error'];
|
|
1841
|
+
var FILE_VALIDATION = ['success', 'error'];
|
|
1842
|
+
var FILE_TYPE = ['pdf', 'zip', 'image', 'document', 'spreadsheet', 'presentation', 'generic'];
|
|
1843
|
+
|
|
1853
1844
|
var _excluded$f = ["validation", "children"];
|
|
1854
1845
|
var Message = React__default.forwardRef(function (_ref, ref) {
|
|
1855
1846
|
var validation = _ref.validation,
|
|
@@ -1881,7 +1872,7 @@ var Message = React__default.forwardRef(function (_ref, ref) {
|
|
|
1881
1872
|
});
|
|
1882
1873
|
Message.displayName = 'Message';
|
|
1883
1874
|
Message.propTypes = {
|
|
1884
|
-
validation: PropTypes.oneOf(
|
|
1875
|
+
validation: PropTypes.oneOf(VALIDATION)
|
|
1885
1876
|
};
|
|
1886
1877
|
|
|
1887
1878
|
var _excluded$e = ["indeterminate", "children"];
|
|
@@ -1916,6 +1907,10 @@ var Checkbox = React__default.forwardRef(function (_ref, ref) {
|
|
|
1916
1907
|
}, React__default.createElement(StyledCheckInput, combinedProps), children);
|
|
1917
1908
|
});
|
|
1918
1909
|
Checkbox.displayName = 'Checkbox';
|
|
1910
|
+
Checkbox.propTypes = {
|
|
1911
|
+
isCompact: PropTypes.bool,
|
|
1912
|
+
indeterminate: PropTypes.bool
|
|
1913
|
+
};
|
|
1919
1914
|
|
|
1920
1915
|
var InputGroupContext = createContext(undefined);
|
|
1921
1916
|
var useInputGroupContext = function useInputGroupContext() {
|
|
@@ -1952,7 +1947,7 @@ Input.propTypes = {
|
|
|
1952
1947
|
isCompact: PropTypes.bool,
|
|
1953
1948
|
isBare: PropTypes.bool,
|
|
1954
1949
|
focusInset: PropTypes.bool,
|
|
1955
|
-
validation: PropTypes.oneOf(
|
|
1950
|
+
validation: PropTypes.oneOf(VALIDATION)
|
|
1956
1951
|
};
|
|
1957
1952
|
Input.displayName = 'Input';
|
|
1958
1953
|
|
|
@@ -1973,6 +1968,9 @@ var Radio = React__default.forwardRef(function (_ref, ref) {
|
|
|
1973
1968
|
}, React__default.createElement(StyledRadioInput, combinedProps), children);
|
|
1974
1969
|
});
|
|
1975
1970
|
Radio.displayName = 'Radio';
|
|
1971
|
+
Radio.propTypes = {
|
|
1972
|
+
isCompact: PropTypes.bool
|
|
1973
|
+
};
|
|
1976
1974
|
|
|
1977
1975
|
var _excluded$b = ["hasLowerTrack", "min", "max", "step"];
|
|
1978
1976
|
var Range = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -2149,7 +2147,7 @@ Textarea.propTypes = {
|
|
|
2149
2147
|
isResizable: PropTypes.bool,
|
|
2150
2148
|
minRows: PropTypes.number,
|
|
2151
2149
|
maxRows: PropTypes.number,
|
|
2152
|
-
validation: PropTypes.oneOf(
|
|
2150
|
+
validation: PropTypes.oneOf(VALIDATION)
|
|
2153
2151
|
};
|
|
2154
2152
|
Textarea.displayName = 'Textarea';
|
|
2155
2153
|
|
|
@@ -2170,6 +2168,9 @@ var Toggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
2170
2168
|
}, React__default.createElement(StyledToggleInput, combinedProps), children);
|
|
2171
2169
|
});
|
|
2172
2170
|
Toggle.displayName = 'Toggle';
|
|
2171
|
+
Toggle.propTypes = {
|
|
2172
|
+
isCompact: PropTypes.bool
|
|
2173
|
+
};
|
|
2173
2174
|
|
|
2174
2175
|
var _path$k;
|
|
2175
2176
|
|
|
@@ -2241,7 +2242,9 @@ FauxInputComponent.propTypes = {
|
|
|
2241
2242
|
focusInset: PropTypes.bool,
|
|
2242
2243
|
disabled: PropTypes.bool,
|
|
2243
2244
|
readOnly: PropTypes.bool,
|
|
2244
|
-
validation: PropTypes.oneOf(
|
|
2245
|
+
validation: PropTypes.oneOf(VALIDATION),
|
|
2246
|
+
isFocused: PropTypes.bool,
|
|
2247
|
+
isHovered: PropTypes.bool
|
|
2245
2248
|
};
|
|
2246
2249
|
var FauxInput = FauxInputComponent;
|
|
2247
2250
|
FauxInput.EndIcon = EndIcon;
|
|
@@ -2273,7 +2276,7 @@ Select.propTypes = {
|
|
|
2273
2276
|
isCompact: PropTypes.bool,
|
|
2274
2277
|
isBare: PropTypes.bool,
|
|
2275
2278
|
focusInset: PropTypes.bool,
|
|
2276
|
-
validation: PropTypes.oneOf(
|
|
2279
|
+
validation: PropTypes.oneOf(VALIDATION)
|
|
2277
2280
|
};
|
|
2278
2281
|
Select.displayName = 'Select';
|
|
2279
2282
|
|
|
@@ -3281,22 +3284,6 @@ var SvgFileErrorStroke = function SvgFileErrorStroke(props) {
|
|
|
3281
3284
|
})));
|
|
3282
3285
|
};
|
|
3283
3286
|
|
|
3284
|
-
var FileType;
|
|
3285
|
-
(function (FileType) {
|
|
3286
|
-
FileType["pdf"] = "pdf";
|
|
3287
|
-
FileType["zip"] = "zip";
|
|
3288
|
-
FileType["image"] = "image";
|
|
3289
|
-
FileType["document"] = "document";
|
|
3290
|
-
FileType["spreadsheet"] = "spreadsheet";
|
|
3291
|
-
FileType["presentation"] = "presentation";
|
|
3292
|
-
FileType["generic"] = "generic";
|
|
3293
|
-
})(FileType || (FileType = {}));
|
|
3294
|
-
var ValidationType;
|
|
3295
|
-
(function (ValidationType) {
|
|
3296
|
-
ValidationType["success"] = "success";
|
|
3297
|
-
ValidationType["error"] = "error";
|
|
3298
|
-
})(ValidationType || (ValidationType = {}));
|
|
3299
|
-
var ARRAY_FILE_TYPE = _toConsumableArray(Object.values(FileType));
|
|
3300
3287
|
var fileIconsDefault = {
|
|
3301
3288
|
pdf: React__default.createElement(SvgFilePdfStroke, null),
|
|
3302
3289
|
zip: React__default.createElement(SvgFileZipStroke, null),
|
|
@@ -3351,8 +3338,8 @@ FileComponent.displayName = 'File';
|
|
|
3351
3338
|
FileComponent.propTypes = {
|
|
3352
3339
|
focusInset: PropTypes.bool,
|
|
3353
3340
|
isCompact: PropTypes.bool,
|
|
3354
|
-
type: PropTypes.oneOf(
|
|
3355
|
-
validation: PropTypes.oneOf(
|
|
3341
|
+
type: PropTypes.oneOf(FILE_TYPE),
|
|
3342
|
+
validation: PropTypes.oneOf(FILE_VALIDATION)
|
|
3356
3343
|
};
|
|
3357
3344
|
var File = FileComponent;
|
|
3358
3345
|
File.Close = Close;
|
|
@@ -3453,11 +3440,12 @@ MediaInput.propTypes = {
|
|
|
3453
3440
|
isCompact: PropTypes.bool,
|
|
3454
3441
|
isBare: PropTypes.bool,
|
|
3455
3442
|
focusInset: PropTypes.bool,
|
|
3443
|
+
validation: PropTypes.oneOf(VALIDATION),
|
|
3456
3444
|
start: PropTypes.node,
|
|
3457
3445
|
end: PropTypes.node,
|
|
3458
|
-
|
|
3459
|
-
|
|
3446
|
+
wrapperProps: PropTypes.object,
|
|
3447
|
+
wrapperRef: PropTypes.any
|
|
3460
3448
|
};
|
|
3461
3449
|
MediaInput.displayName = 'MediaInput';
|
|
3462
3450
|
|
|
3463
|
-
export { Checkbox, FauxInput, Field, Fieldset, File, FileList, FileUpload, Hint, Input, InputGroup, Label$1 as Label, MediaInput, Message, MultiThumbRange, Radio, Range, Select, Textarea, Tiles, Toggle };
|
|
3451
|
+
export { Checkbox, FauxInput, Field, Fieldset, File, FileList, FileUpload, Hint, Input, InputGroup, Label$1 as Label, MediaInput, Message, MultiThumbRange, Radio, Range, Select, Textarea, Tiles, Toggle, VALIDATION };
|
|
@@ -4,16 +4,8 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import React
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Sets the checkbox state to
|
|
11
|
-
* [indeterminate](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#Indeterminate_state_checkboxes)
|
|
12
|
-
*/
|
|
13
|
-
indeterminate?: boolean;
|
|
14
|
-
/** Applies compact styling */
|
|
15
|
-
isCompact?: boolean;
|
|
16
|
-
}
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { ICheckboxProps } from '../types';
|
|
17
9
|
/**
|
|
18
10
|
* @extends InputHTMLAttributes<HTMLInputElement>
|
|
19
11
|
*/
|
|
@@ -4,15 +4,8 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import React
|
|
8
|
-
|
|
9
|
-
/** Applies drag styling */
|
|
10
|
-
isDragging?: boolean;
|
|
11
|
-
/** Applies compact styling */
|
|
12
|
-
isCompact?: boolean;
|
|
13
|
-
/** Indicates that the element is not interactive */
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
}
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { IFileUploadProps } from '../types';
|
|
16
9
|
/**
|
|
17
10
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
18
11
|
*/
|
|
@@ -4,18 +4,8 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import React
|
|
8
|
-
import {
|
|
9
|
-
export interface IInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
10
|
-
/** Applies compact styling */
|
|
11
|
-
isCompact?: boolean;
|
|
12
|
-
/** Removes borders and padding */
|
|
13
|
-
isBare?: boolean;
|
|
14
|
-
/** Applies inset `box-shadow` styling on focus */
|
|
15
|
-
focusInset?: boolean;
|
|
16
|
-
/** Applies validation state styling */
|
|
17
|
-
validation?: VALIDATION;
|
|
18
|
-
}
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { IInputProps } from '../types';
|
|
19
9
|
/**
|
|
20
10
|
* @extends InputHTMLAttributes<HTMLInputElement>
|
|
21
11
|
*/
|
|
@@ -4,26 +4,8 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import React
|
|
8
|
-
import {
|
|
9
|
-
export interface IMediaInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
10
|
-
/** Applies compact styling */
|
|
11
|
-
isCompact?: boolean;
|
|
12
|
-
/** Removes borders and padding */
|
|
13
|
-
isBare?: boolean;
|
|
14
|
-
/** Applies inset `box-shadow` styling on focus */
|
|
15
|
-
focusInset?: boolean;
|
|
16
|
-
/** Accepts a "start" icon to display */
|
|
17
|
-
start?: any;
|
|
18
|
-
/** Accepts an "end" icon to display */
|
|
19
|
-
end?: any;
|
|
20
|
-
/** Applies validation state styling */
|
|
21
|
-
validation?: VALIDATION;
|
|
22
|
-
/** Applies props to the wrapping [FauxInput](#fauxinput) element */
|
|
23
|
-
wrapperProps?: any;
|
|
24
|
-
/** Applies a ref to the wrapping [FauxInput](#fauxinput) element */
|
|
25
|
-
wrapperRef?: any;
|
|
26
|
-
}
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { IMediaInputProps } from '../types';
|
|
27
9
|
/**
|
|
28
10
|
* @extends InputHTMLAttributes<HTMLInputElement>
|
|
29
11
|
*/
|