@splunk/react-ui 4.33.0 → 4.34.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/Button.js +19 -22
- package/ButtonGroup.js +20 -23
- package/ButtonSimple.js +33 -34
- package/CHANGELOG.md +31 -0
- package/Card.js +56 -44
- package/Chip.js +2 -6
- package/CollapsiblePanel.js +281 -264
- package/Color.js +88 -86
- package/Concertina.js +7 -7
- package/ControlGroup.js +18 -18
- package/DualListbox.js +8 -11
- package/File.js +25 -30
- package/FormRows.js +53 -53
- package/Image.js +13 -13
- package/JSONTree.js +22 -22
- package/MIGRATION.mdx +76 -0
- package/Markdown.js +12 -12
- package/Menu.js +505 -719
- package/Message.js +205 -204
- package/MessageBar.js +104 -104
- package/Modal.js +2 -2
- package/Multiselect.js +36 -39
- package/Paginator.js +8 -8
- package/Popover.js +53 -54
- package/Progress.js +45 -46
- package/RadioBar.js +117 -115
- package/RadioList.js +8 -5
- package/ResultsMenu.js +256 -261
- package/Search.js +21 -24
- package/Select.js +34 -31
- package/Slider.js +9 -9
- package/SplitButton.js +1 -4
- package/StaticContent.js +1 -1
- package/StepBar.js +1 -1
- package/Switch.js +169 -171
- package/TabBar.js +13 -5
- package/Table.js +65 -67
- package/Text.js +17 -26
- package/TextArea.js +162 -163
- package/Tooltip.js +1 -1
- package/package.json +5 -5
- package/stubs-splunkui.d.ts +11 -0
- package/types/src/Card/Card.d.ts +3 -1
- package/types/src/Card/Header.d.ts +22 -3
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +5 -0
- package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +1 -3
- package/types/src/Menu/Item.d.ts +3 -0
- package/types/src/Menu/Menu.d.ts +16 -21
- package/types/src/Menu/MenuContext.d.ts +3 -2
- package/types/src/RadioBar/Option.d.ts +4 -1
- package/types/src/RadioBar/RadioBar.d.ts +6 -4
- package/types/src/RadioBar/docs/examples/MenuBar.d.ts +2 -0
- package/types/src/ResultsMenu/ResultsMenu.d.ts +5 -22
- package/types/src/Select/Select.d.ts +2 -2
- package/types/src/Select/SelectBase.d.ts +2 -2
- package/types/src/Table/Body.d.ts +0 -4
- package/useRovingFocus.js +26 -40
- package/types/src/Select/docs/examples/prisma/Appearance.d.ts +0 -14
package/File.js
CHANGED
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
const w = require("@splunk/react-icons/enterprise/Close");
|
|
102
102
|
var L = e.n(w);
|
|
103
103
|
// CONCATENATED MODULE: external "@splunk/react-ui/Progress"
|
|
104
|
-
const
|
|
105
|
-
var
|
|
104
|
+
const S = require("@splunk/react-ui/Progress");
|
|
105
|
+
var O = e.n(S);
|
|
106
106
|
// CONCATENATED MODULE: external "@splunk/ui-utils/format"
|
|
107
107
|
const I = require("@splunk/ui-utils/format");
|
|
108
108
|
// CONCATENATED MODULE: ./src/File/FileContext.tsx
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
});
|
|
336
336
|
}));
|
|
337
337
|
// for Prisma theme only
|
|
338
|
-
var
|
|
338
|
+
var J = F().div.withConfig({
|
|
339
339
|
displayName: "ItemStyles__StyledPaperClipIcon",
|
|
340
340
|
componentId: "sc-1fsk3kr-5"
|
|
341
341
|
})([ "color:", ";padding:", ";", "" ], b.variables.neutral400, (0, b.pick)({
|
|
@@ -346,12 +346,12 @@
|
|
|
346
346
|
return r && (0, M.css)([ "color:", ";cursor:not-allowed;" ], b.variables.contentColorDisabled);
|
|
347
347
|
}));
|
|
348
348
|
// for Prisma theme only
|
|
349
|
-
var
|
|
349
|
+
var K = F().span.withConfig({
|
|
350
350
|
displayName: "ItemStyles__StyledPercentage",
|
|
351
351
|
componentId: "sc-1fsk3kr-6"
|
|
352
352
|
})([ "color:", ";" ], b.variables.contentColorMuted);
|
|
353
353
|
// for Prisma theme only
|
|
354
|
-
var
|
|
354
|
+
var Q = F().div.withConfig({
|
|
355
355
|
displayName: "ItemStyles__StyledProgress",
|
|
356
356
|
componentId: "sc-1fsk3kr-7"
|
|
357
357
|
})([ "position:absolute;left:0;top:0;width:", "%;height:100%;background:", ";transition:width 300ms;border-radius:", ";" ], (function(e) {
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
index: c
|
|
427
427
|
});
|
|
428
428
|
}
|
|
429
|
-
var
|
|
429
|
+
var S = (0, t.useContext)(_), E = S.onRequestRetry;
|
|
430
430
|
function R(e) {
|
|
431
431
|
e.preventDefault();
|
|
432
432
|
E === null || E === void 0 ? void 0 : E({
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
style: {
|
|
451
451
|
paddingRight: "4px"
|
|
452
452
|
}
|
|
453
|
-
}, (0, h._)("Uploading ")), a().createElement(
|
|
453
|
+
}, (0, h._)("Uploading ")), a().createElement(K, null, p, "%"));
|
|
454
454
|
var A = v && !C()(p) && p > 0 ? H : l;
|
|
455
455
|
var B = r !== undefined ? r : q;
|
|
456
456
|
|
|
@@ -462,7 +462,7 @@
|
|
|
462
462
|
flex: true,
|
|
463
463
|
$error: i,
|
|
464
464
|
$disabled: B
|
|
465
|
-
}), v && C()(p) && a().createElement(
|
|
465
|
+
}), v && C()(p) && a().createElement(J, {
|
|
466
466
|
"data-test": "paper-clip",
|
|
467
467
|
$disabled: B
|
|
468
468
|
}, a().createElement(j, {
|
|
@@ -495,14 +495,14 @@
|
|
|
495
495
|
"aria-label": F,
|
|
496
496
|
height: y,
|
|
497
497
|
width: y
|
|
498
|
-
}))), !C()(p) && p > 0 && (v ? a().createElement(
|
|
498
|
+
}))), !C()(p) && p > 0 && (v ? a().createElement(Q, {
|
|
499
499
|
$uploadPercentage: p,
|
|
500
500
|
"aria-label": M,
|
|
501
501
|
role: "progressbar",
|
|
502
502
|
"aria-valuenow": p,
|
|
503
503
|
"aria-valuemin": 0,
|
|
504
504
|
"aria-valuemax": 100
|
|
505
|
-
}) : a().createElement(
|
|
505
|
+
}) : a().createElement(O(), {
|
|
506
506
|
style: {
|
|
507
507
|
position: "absolute",
|
|
508
508
|
left: 0,
|
|
@@ -602,11 +602,9 @@
|
|
|
602
602
|
var ve = F().div.withConfig({
|
|
603
603
|
displayName: "FileStyles__StyledWindowText",
|
|
604
604
|
componentId: "sc-1wyh4cf-5"
|
|
605
|
-
})([ "margin-top:", ";margin-bottom:", ";font-size:", ";", "" ], (0,
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
}), (0, b.pick)({
|
|
609
|
-
enterprise: b.variables.spacingHalf,
|
|
605
|
+
})([ "margin-top:calc(", " * 4);margin-bottom:", ";font-size:", ";", "" ], b.variables.spacingLarge, (0,
|
|
606
|
+
b.pick)({
|
|
607
|
+
enterprise: b.variables.spacingSmall,
|
|
610
608
|
prisma: b.variables.spacingMedium
|
|
611
609
|
}), b.variables.fontSizeXLarge, (0, b.pick)({
|
|
612
610
|
prisma: (0, M.css)([ "color:", ";" ], b.variables.contentColorActive)
|
|
@@ -618,10 +616,7 @@
|
|
|
618
616
|
var me = F().div.withConfig({
|
|
619
617
|
displayName: "FileStyles__StyledHelp",
|
|
620
618
|
componentId: "sc-1wyh4cf-7"
|
|
621
|
-
})([ "margin-bottom:", ";" ],
|
|
622
|
-
enterprise: b.variables.spacingXLarge,
|
|
623
|
-
prisma: (0, M.css)([ "calc(", " * 1.5)" ], b.variables.spacingLarge)
|
|
624
|
-
}));
|
|
619
|
+
})([ "margin-bottom:", ";" ], b.variables.spacingXLarge);
|
|
625
620
|
var be = F().div.withConfig({
|
|
626
621
|
displayName: "FileStyles__StyledWindowDrop",
|
|
627
622
|
componentId: "sc-1wyh4cf-8"
|
|
@@ -638,7 +633,7 @@
|
|
|
638
633
|
enterprise: (0, M.css)([ "line-height:calc(", " - 2px);" ], b.variables.inputHeight)
|
|
639
634
|
}), (0, b.pick)({
|
|
640
635
|
enterprise: {
|
|
641
|
-
comfortable: (0, M.css)([ "min-height:73px;padding:", ";" ], b.variables.
|
|
636
|
+
comfortable: (0, M.css)([ "min-height:73px;padding:", ";" ], b.variables.spacingXSmall),
|
|
642
637
|
compact: (0, M.css)([ "min-height:63px;padding:3px;" ])
|
|
643
638
|
}
|
|
644
639
|
}), (0, b.pick)({
|
|
@@ -756,12 +751,12 @@
|
|
|
756
751
|
Object.defineProperty(e, a.key, a);
|
|
757
752
|
}
|
|
758
753
|
}
|
|
759
|
-
function
|
|
754
|
+
function Se(e, r, t) {
|
|
760
755
|
if (r) Le(e.prototype, r);
|
|
761
756
|
if (t) Le(e, t);
|
|
762
757
|
return e;
|
|
763
758
|
}
|
|
764
|
-
function
|
|
759
|
+
function Oe(e, r) {
|
|
765
760
|
if (typeof r !== "function" && r !== null) {
|
|
766
761
|
throw new TypeError("Super expression must either be null or a function");
|
|
767
762
|
}
|
|
@@ -867,7 +862,7 @@
|
|
|
867
862
|
* file readers, only a reference to the file. This can be used to post binary content, or
|
|
868
863
|
* upload using an array buffer.
|
|
869
864
|
*/ var $e = function(e) {
|
|
870
|
-
|
|
865
|
+
Oe(n, e);
|
|
871
866
|
var r = _e(n);
|
|
872
867
|
// @docs-props-type FilePropsBase
|
|
873
868
|
function n(e) {
|
|
@@ -919,7 +914,7 @@
|
|
|
919
914
|
t.handleDragLeave = l()(t.handleDragLeave, 300);
|
|
920
915
|
return t;
|
|
921
916
|
}
|
|
922
|
-
|
|
917
|
+
Se(n, [ {
|
|
923
918
|
key: "addFiles",
|
|
924
919
|
value: function e(r) {
|
|
925
920
|
var t = this.props.name;
|
|
@@ -943,7 +938,7 @@
|
|
|
943
938
|
var r = this.props, n = r.accept, i = r.allowMultiple, o = r.children, l = r.disabled, s = r.dropAnywhere, p = r.error, u = r.fullscreen, f = r.help, b = r.name, y = r.onRequestRemove, g = r.onRequestRetry, C = r.required, x = r.splunkTheme, k = xe(r, [ "accept", "allowMultiple", "children", "disabled", "dropAnywhere", "error", "fullscreen", "help", "name", "onRequestRemove", "onRequestRetry", "required", "splunkTheme" ]);
|
|
944
939
|
var w = x.isPrisma;
|
|
945
940
|
var L = 0;
|
|
946
|
-
var
|
|
941
|
+
var S = t.Children.toArray(o).filter(t.isValidElement).map((function(e, r) {
|
|
947
942
|
L += 1;
|
|
948
943
|
|
|
949
944
|
return (0, t.cloneElement)(e, {
|
|
@@ -951,9 +946,9 @@
|
|
|
951
946
|
key: e.key || e.props.itemId || "item-".concat(r)
|
|
952
947
|
});
|
|
953
948
|
}));
|
|
954
|
-
var
|
|
955
|
-
var I =
|
|
956
|
-
var _ =
|
|
949
|
+
var O = u || s;
|
|
950
|
+
var I = O || l;
|
|
951
|
+
var _ = O && !l;
|
|
957
952
|
var R = u ? ye : he;
|
|
958
953
|
var D = u ? ve : ue;
|
|
959
954
|
var q = u ? pe : ce;
|
|
@@ -1010,7 +1005,7 @@
|
|
|
1010
1005
|
$error: p
|
|
1011
1006
|
}), " ", a().createElement("span", {
|
|
1012
1007
|
"data-test": "file-label"
|
|
1013
|
-
}, !
|
|
1008
|
+
}, !O && !l && (0, h._)("Drop your file here or"), _ && (0, h._)("Drop your file anywhere or"), " ", L === 0 && l && (0,
|
|
1014
1009
|
h._)("No files selected"), a().createElement(de, {
|
|
1015
1010
|
htmlFor: this.inputId,
|
|
1016
1011
|
"data-test": "file-link",
|
|
@@ -1046,7 +1041,7 @@
|
|
|
1046
1041
|
onRequestRemove: y ? $ : undefined,
|
|
1047
1042
|
onRequestRetry: g ? T : undefined
|
|
1048
1043
|
}
|
|
1049
|
-
},
|
|
1044
|
+
}, S));
|
|
1050
1045
|
}
|
|
1051
1046
|
} ]);
|
|
1052
1047
|
return n;
|
package/FormRows.js
CHANGED
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
const w = require("@splunk/react-icons/enterprise/Close");
|
|
113
113
|
var O = e.n(w);
|
|
114
114
|
// CONCATENATED MODULE: external "styled-components"
|
|
115
|
-
const
|
|
116
|
-
var
|
|
115
|
+
const S = require("styled-components");
|
|
116
|
+
var R = e.n(S);
|
|
117
117
|
// CONCATENATED MODULE: external "@splunk/react-ui/Box"
|
|
118
118
|
const j = require("@splunk/react-ui/Box");
|
|
119
119
|
var k = e.n(j);
|
|
@@ -124,58 +124,58 @@
|
|
|
124
124
|
const P = require("@splunk/react-ui/ButtonSimple");
|
|
125
125
|
var q = e.n(P);
|
|
126
126
|
// CONCATENATED MODULE: ./src/FormRows/FormRowsStyles.ts
|
|
127
|
-
var C =
|
|
127
|
+
var C = R()(k()).withConfig({
|
|
128
128
|
displayName: "FormRowsStyles__StyledBox",
|
|
129
129
|
componentId: "sc-1j4j7h3-0"
|
|
130
130
|
})([ "", ";" ], s.mixins.reset("block"));
|
|
131
|
-
var D =
|
|
131
|
+
var D = R().div.withConfig({
|
|
132
132
|
displayName: "FormRowsStyles__StyledHeader",
|
|
133
133
|
componentId: "sc-1j4j7h3-1"
|
|
134
134
|
})([ "padding-left:", ";", "" ], (0, s.pick)({
|
|
135
|
-
enterprise: s.variables.
|
|
135
|
+
enterprise: s.variables.spacingSmall,
|
|
136
136
|
prisma: "16px"
|
|
137
137
|
}), (0, s.pick)({
|
|
138
138
|
prisma: {
|
|
139
|
-
comfortable: (0,
|
|
140
|
-
compact: (0,
|
|
139
|
+
comfortable: (0, S.css)([ "padding-bottom:8px;" ]),
|
|
140
|
+
compact: (0, S.css)([ "padding-bottom:6px;" ])
|
|
141
141
|
}
|
|
142
142
|
}));
|
|
143
|
-
var I =
|
|
143
|
+
var I = R()(_()).withConfig({
|
|
144
144
|
displayName: "FormRowsStyles__StyledAddRowButton",
|
|
145
145
|
componentId: "sc-1j4j7h3-2"
|
|
146
146
|
})([ "", "" ], (function(e) {
|
|
147
147
|
var t = e.$sortable;
|
|
148
148
|
return t && (0, s.pick)({
|
|
149
|
-
prisma: (0,
|
|
149
|
+
prisma: (0, S.css)([ "margin-left:16px;" ])
|
|
150
150
|
});
|
|
151
151
|
}));
|
|
152
|
-
var T =
|
|
152
|
+
var T = R().div.withConfig({
|
|
153
153
|
displayName: "FormRowsStyles__StyledRows",
|
|
154
154
|
componentId: "sc-1j4j7h3-3"
|
|
155
155
|
})([ "position:relative;", "" ], (0, s.pick)({
|
|
156
156
|
prisma: {
|
|
157
|
-
comfortable: (0,
|
|
158
|
-
compact: (0,
|
|
157
|
+
comfortable: (0, S.css)([ "padding-bottom:12px;" ]),
|
|
158
|
+
compact: (0, S.css)([ "padding-bottom:10px;" ])
|
|
159
159
|
}
|
|
160
160
|
}));
|
|
161
|
-
var
|
|
161
|
+
var A = R().div.withConfig({
|
|
162
162
|
displayName: "FormRowsStyles__Styled",
|
|
163
163
|
componentId: "sc-1j4j7h3-4"
|
|
164
|
-
})([ "
|
|
164
|
+
})([ "", ";position:relative;&.sorting{z-index:calc(", " + 1);}", " &:focus{outline:0;box-shadow:", ";}" ], (0,
|
|
165
165
|
s.pick)({
|
|
166
|
-
enterprise: (0,
|
|
166
|
+
enterprise: (0, S.css)([ "padding:3px calc(", " + 3px) 3px 0;" ], s.variables.inputHeight),
|
|
167
167
|
prisma: {
|
|
168
|
-
comfortable: (0,
|
|
169
|
-
compact: (0,
|
|
168
|
+
comfortable: (0, S.css)([ "padding:8px calc(", " + 8px) 8px 0;" ], s.variables.inputHeight),
|
|
169
|
+
compact: (0, S.css)([ "padding:6px calc(", " + 8px) 6px 0;" ], s.variables.inputHeight)
|
|
170
170
|
}
|
|
171
171
|
}), s.variables.zindexPopover, (function(e) {
|
|
172
172
|
var t = e.$sortable;
|
|
173
|
-
return t && (0,
|
|
174
|
-
enterprise: s.variables.
|
|
173
|
+
return t && (0, S.css)([ "padding-left:", ";" ], (0, s.pick)({
|
|
174
|
+
enterprise: s.variables.spacingSmall,
|
|
175
175
|
prisma: "16px"
|
|
176
176
|
}));
|
|
177
177
|
}), s.variables.focusShadow);
|
|
178
|
-
var
|
|
178
|
+
var B = R().div.withConfig({
|
|
179
179
|
displayName: "FormRowsStyles__StyledButton",
|
|
180
180
|
componentId: "sc-1j4j7h3-5"
|
|
181
181
|
})([ "position:absolute;right:0;top:", ";float:right;" ], (0, s.pick)({
|
|
@@ -185,11 +185,11 @@
|
|
|
185
185
|
compact: "6px"
|
|
186
186
|
}
|
|
187
187
|
}));
|
|
188
|
-
var
|
|
188
|
+
var N = R()(q()).withConfig({
|
|
189
189
|
displayName: "FormRowsStyles__StyledButtonSimple",
|
|
190
190
|
componentId: "sc-1j4j7h3-6"
|
|
191
191
|
})([ "float:right;width:", ";height:", ";text-align:center;" ], s.variables.inputHeight, s.variables.inputHeight);
|
|
192
|
-
var
|
|
192
|
+
var H = R().div.withConfig({
|
|
193
193
|
displayName: "FormRowsStyles__StyledDrag",
|
|
194
194
|
componentId: "sc-1j4j7h3-7"
|
|
195
195
|
})([ "position:absolute;left:0;right:0;content:'';cursor:move;background:", ";width:", ";top:", ";", "" ], s.variables.draggableBackground, (0,
|
|
@@ -203,8 +203,8 @@
|
|
|
203
203
|
compact: "12px"
|
|
204
204
|
}
|
|
205
205
|
}), (0, s.pick)({
|
|
206
|
-
enterprise: (0,
|
|
207
|
-
prisma: (0,
|
|
206
|
+
enterprise: (0, S.css)([ "bottom:3px;opacity:0.5;" ]),
|
|
207
|
+
prisma: (0, S.css)([ "height:20px;" ])
|
|
208
208
|
}));
|
|
209
209
|
// CONCATENATED MODULE: ./src/FormRows/RowInternal.tsx
|
|
210
210
|
function M() {
|
|
@@ -260,8 +260,8 @@
|
|
|
260
260
|
var o = e.children, i = e.index, l = e.onRequestRemove, u = e.renderDragHandle, f = F(e, [ "children", "index", "onRequestRemove", "renderDragHandle" ]);
|
|
261
261
|
var p = (0, s.useSplunkTheme)(), d = p.isCompact, v = p.isEnterprise;
|
|
262
262
|
var y = d ? "20px" : "24px";
|
|
263
|
-
var b = (0, r.useContext)(c), m = b.disabledDeleteButton, g = b.hasOnRequestAdd, w = b.onKeyDown,
|
|
264
|
-
var
|
|
263
|
+
var b = (0, r.useContext)(c), m = b.disabledDeleteButton, g = b.hasOnRequestAdd, w = b.onKeyDown, S = b.sortable;
|
|
264
|
+
var R = (0, r.useCallback)((function(e) {
|
|
265
265
|
// TODO: this callback doesn't work correctly if index isn't provided SUI-5639
|
|
266
266
|
w === null || w === void 0 ? void 0 : w(e, {
|
|
267
267
|
index: i !== null && i !== void 0 ? i : 0
|
|
@@ -278,12 +278,12 @@
|
|
|
278
278
|
if (false) {}
|
|
279
279
|
if (false) {}
|
|
280
280
|
|
|
281
|
-
return n().createElement(
|
|
282
|
-
$sortable:
|
|
281
|
+
return n().createElement(A, M({
|
|
282
|
+
$sortable: S,
|
|
283
283
|
"data-test": "row",
|
|
284
284
|
ref: t,
|
|
285
|
-
onKeyDown:
|
|
286
|
-
}, h()(f, [ "onKeyDown", "onRequestRemove" ])), u && u(), o, k && n().createElement(
|
|
285
|
+
onKeyDown: R
|
|
286
|
+
}, h()(f, [ "onKeyDown", "onRequestRemove" ])), u && u(), o, k && n().createElement(B, null, n().createElement(N, {
|
|
287
287
|
appearance: "pill",
|
|
288
288
|
"aria-label": (0, a._)("Remove Row"),
|
|
289
289
|
"data-test": "remove",
|
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
};
|
|
379
379
|
var ee = n().forwardRef((function(e, t) {
|
|
380
380
|
|
|
381
|
-
return n().createElement(
|
|
381
|
+
return n().createElement(H, Y({
|
|
382
382
|
"data-test": "drag-handle",
|
|
383
383
|
ref: t
|
|
384
384
|
}, e), n().createElement(Q(), null, (0, a._)("Press arrow up or arrow down to re-order items")));
|
|
@@ -627,20 +627,20 @@
|
|
|
627
627
|
strategy: V.verticalListSortingStrategy
|
|
628
628
|
}, l));
|
|
629
629
|
};
|
|
630
|
-
/* harmony default export */ const
|
|
630
|
+
/* harmony default export */ const Se = Oe;
|
|
631
631
|
// CONCATENATED MODULE: ./src/FormRows/FormRows.tsx
|
|
632
|
-
function
|
|
632
|
+
function Re(e) {
|
|
633
633
|
"@babel/helpers - typeof";
|
|
634
634
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
635
|
-
|
|
635
|
+
Re = function e(t) {
|
|
636
636
|
return typeof t;
|
|
637
637
|
};
|
|
638
638
|
} else {
|
|
639
|
-
|
|
639
|
+
Re = function e(t) {
|
|
640
640
|
return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
641
641
|
};
|
|
642
642
|
}
|
|
643
|
-
return
|
|
643
|
+
return Re(e);
|
|
644
644
|
}
|
|
645
645
|
function je() {
|
|
646
646
|
je = Object.assign || function(e) {
|
|
@@ -723,11 +723,11 @@
|
|
|
723
723
|
return De(e, t);
|
|
724
724
|
}
|
|
725
725
|
function Ie(e) {
|
|
726
|
-
var t =
|
|
726
|
+
var t = Be();
|
|
727
727
|
return function r() {
|
|
728
|
-
var n =
|
|
728
|
+
var n = Ne(e), o;
|
|
729
729
|
if (t) {
|
|
730
|
-
var i =
|
|
730
|
+
var i = Ne(this).constructor;
|
|
731
731
|
o = Reflect.construct(n, arguments, i);
|
|
732
732
|
} else {
|
|
733
733
|
o = n.apply(this, arguments);
|
|
@@ -736,18 +736,18 @@
|
|
|
736
736
|
};
|
|
737
737
|
}
|
|
738
738
|
function Te(e, t) {
|
|
739
|
-
if (t && (
|
|
739
|
+
if (t && (Re(t) === "object" || typeof t === "function")) {
|
|
740
740
|
return t;
|
|
741
741
|
}
|
|
742
|
-
return
|
|
742
|
+
return Ae(e);
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Ae(e) {
|
|
745
745
|
if (e === void 0) {
|
|
746
746
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
747
747
|
}
|
|
748
748
|
return e;
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function Be() {
|
|
751
751
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
752
752
|
if (Reflect.construct.sham) return false;
|
|
753
753
|
if (typeof Proxy === "function") return true;
|
|
@@ -758,13 +758,13 @@
|
|
|
758
758
|
return false;
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
|
|
761
|
+
function Ne(e) {
|
|
762
|
+
Ne = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
|
|
763
763
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
764
764
|
};
|
|
765
|
-
return
|
|
765
|
+
return Ne(e);
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function He(e, t, r) {
|
|
768
768
|
if (t in e) {
|
|
769
769
|
Object.defineProperty(e, t, {
|
|
770
770
|
value: r,
|
|
@@ -802,7 +802,7 @@
|
|
|
802
802
|
i[a] = arguments[a];
|
|
803
803
|
}
|
|
804
804
|
e = t.call.apply(t, [ this ].concat(i));
|
|
805
|
-
|
|
805
|
+
He(Ae(e), "handleKeyDown", (function(t, r) {
|
|
806
806
|
var o = r.index;
|
|
807
807
|
if (t.currentTarget !== t.target) {
|
|
808
808
|
return;
|
|
@@ -827,7 +827,7 @@
|
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
829
|
}));
|
|
830
|
-
|
|
830
|
+
He(Ae(e), "handleSortEnd", (function(t) {
|
|
831
831
|
var r, n;
|
|
832
832
|
var o = t.oldIndex, i = t.newIndex;
|
|
833
833
|
(r = (n = e.props).onRequestMove) === null || r === void 0 ? void 0 : r.call(n, {
|
|
@@ -854,7 +854,7 @@
|
|
|
854
854
|
hasOnRequestAdd: v,
|
|
855
855
|
sortable: p
|
|
856
856
|
}
|
|
857
|
-
}, a && n().createElement(d, null, a), n().createElement(T, null, n().createElement(
|
|
857
|
+
}, a && n().createElement(d, null, a), n().createElement(T, null, n().createElement(Se, {
|
|
858
858
|
onSortEnd: this.handleSortEnd
|
|
859
859
|
}, o)), l || v && n().createElement(I, {
|
|
860
860
|
disabled: i,
|
|
@@ -953,9 +953,9 @@
|
|
|
953
953
|
} ]);
|
|
954
954
|
return o;
|
|
955
955
|
}(r.Component);
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
956
|
+
He(Ke, "propTypes", Me);
|
|
957
|
+
He(Ke, "defaultProps", Fe);
|
|
958
|
+
He(Ke, "Row", xe);
|
|
959
959
|
/* harmony default export */ const Le = Ke;
|
|
960
960
|
// CONCATENATED MODULE: ./src/FormRows/index.ts
|
|
961
961
|
module.exports = t;
|
package/Image.js
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
e.r(r);
|
|
62
62
|
// EXPORTS
|
|
63
63
|
e.d(r, {
|
|
64
|
-
default: () => /* reexport */
|
|
64
|
+
default: () => /* reexport */ V
|
|
65
65
|
});
|
|
66
66
|
// CONCATENATED MODULE: external "react"
|
|
67
67
|
const t = require("react");
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
displayName: "ImageStyles__StyledErrorMessage",
|
|
195
195
|
componentId: "sc-16ooypp-5"
|
|
196
196
|
})([ "margin-top:", ";" ], (0, b.pick)({
|
|
197
|
-
enterprise: b.variables.
|
|
197
|
+
enterprise: b.variables.spacingXSmall,
|
|
198
198
|
prisma: "12px"
|
|
199
199
|
}));
|
|
200
200
|
// CONCATENATED MODULE: ./src/Image/Image.tsx
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
return L(e, r);
|
|
266
266
|
}
|
|
267
267
|
function B(e) {
|
|
268
|
-
var r =
|
|
268
|
+
var r = X();
|
|
269
269
|
return function t() {
|
|
270
270
|
var a = z(e), o;
|
|
271
271
|
if (r) {
|
|
@@ -281,15 +281,15 @@
|
|
|
281
281
|
if (r && (F(r) === "object" || typeof r === "function")) {
|
|
282
282
|
return r;
|
|
283
283
|
}
|
|
284
|
-
return
|
|
284
|
+
return W(e);
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function W(e) {
|
|
287
287
|
if (e === void 0) {
|
|
288
288
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
289
289
|
}
|
|
290
290
|
return e;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function X() {
|
|
293
293
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
294
294
|
if (Reflect.construct.sham) return false;
|
|
295
295
|
if (typeof Proxy === "function") return true;
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
};
|
|
340
340
|
/**
|
|
341
341
|
* Image provides the ability to accept image files and present a preview of the image.
|
|
342
|
-
*/ var
|
|
342
|
+
*/ var Q = function(e) {
|
|
343
343
|
N(t, e);
|
|
344
344
|
var r = B(t);
|
|
345
345
|
M(t, null, [ {
|
|
@@ -355,8 +355,8 @@
|
|
|
355
355
|
var a;
|
|
356
356
|
H(this, t);
|
|
357
357
|
a = r.call(this, e);
|
|
358
|
-
G(
|
|
359
|
-
G(
|
|
358
|
+
G(W(a), "fileReader", void 0);
|
|
359
|
+
G(W(a), "handleAddFiles", (function(e) {
|
|
360
360
|
if (e.length > 0) {
|
|
361
361
|
var r = e[0];
|
|
362
362
|
if (a.fileReader.readyState === 1) {
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
a.fileReader.readAsDataURL(r);
|
|
377
377
|
}
|
|
378
378
|
}));
|
|
379
|
-
G(
|
|
379
|
+
G(W(a), "handleRemoveFile", (function() {
|
|
380
380
|
var e, r;
|
|
381
381
|
if (a.fileReader.readyState === 1) {
|
|
382
382
|
a.fileReader.abort();
|
|
@@ -443,9 +443,9 @@
|
|
|
443
443
|
} ]);
|
|
444
444
|
return t;
|
|
445
445
|
}(t.Component);
|
|
446
|
-
G(
|
|
447
|
-
G(
|
|
448
|
-
/* harmony default export */ const
|
|
446
|
+
G(Q, "propTypes", J);
|
|
447
|
+
G(Q, "defaultProps", K);
|
|
448
|
+
/* harmony default export */ const V = Q;
|
|
449
449
|
// CONCATENATED MODULE: ./src/Image/index.ts
|
|
450
450
|
module.exports = r;
|
|
451
451
|
/******/})();
|