@ballistix.digital/react-components 6.0.3-next-42.0 → 6.0.3-next-44.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.d.ts +47 -26
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +78 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +77 -3
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -45,6 +45,7 @@ $parcel$export(module.exports, "ButtonElement", () => $98b8616b6ef0f950$export$2
|
|
|
45
45
|
$parcel$export(module.exports, "ButtonGroupElement", () => $49256f91bd9e1c3f$export$2e2bcd8739ae039);
|
|
46
46
|
$parcel$export(module.exports, "DropdownElement", () => $6f7275eb03c2b93c$export$2e2bcd8739ae039);
|
|
47
47
|
$parcel$export(module.exports, "IconElement", () => $2125901b4a9afff9$export$2e2bcd8739ae039);
|
|
48
|
+
$parcel$export(module.exports, "CollapsibleElement", () => $9a91e005c750fbb3$export$2e2bcd8739ae039);
|
|
48
49
|
$parcel$export(module.exports, "InputGroupForm", () => $75cfef1d7ff66e89$export$2e2bcd8739ae039);
|
|
49
50
|
$parcel$export(module.exports, "ContainerLayout", () => $f73096bc2c28d1e8$export$2e2bcd8739ae039);
|
|
50
51
|
$parcel$export(module.exports, "DividerLayout", () => $b249780162e56cf8$export$2e2bcd8739ae039);
|
|
@@ -1142,6 +1143,10 @@ var $87a4b9b6cee76290$var$topLeft = {
|
|
|
1142
1143
|
var $87a4b9b6cee76290$var$topRight = {
|
|
1143
1144
|
items: 'origin-bottom-left left-0 bottom-0'
|
|
1144
1145
|
};
|
|
1146
|
+
var $87a4b9b6cee76290$var$disabled = {
|
|
1147
|
+
button: 'opacity-50 cursor-not-allowed',
|
|
1148
|
+
compact: 'opacity-50 cursor-not-allowed'
|
|
1149
|
+
};
|
|
1145
1150
|
var $87a4b9b6cee76290$var$styles = {
|
|
1146
1151
|
base: $87a4b9b6cee76290$var$base,
|
|
1147
1152
|
button: $87a4b9b6cee76290$var$button,
|
|
@@ -1149,18 +1154,19 @@ var $87a4b9b6cee76290$var$styles = {
|
|
|
1149
1154
|
'bottom-left': $87a4b9b6cee76290$var$bottomLeft,
|
|
1150
1155
|
'bottom-right': $87a4b9b6cee76290$var$bottomRight,
|
|
1151
1156
|
'top-left': $87a4b9b6cee76290$var$topLeft,
|
|
1152
|
-
'top-right': $87a4b9b6cee76290$var$topRight
|
|
1157
|
+
'top-right': $87a4b9b6cee76290$var$topRight,
|
|
1158
|
+
disabled: $87a4b9b6cee76290$var$disabled
|
|
1153
1159
|
};
|
|
1154
1160
|
var $87a4b9b6cee76290$export$2e2bcd8739ae039 = $87a4b9b6cee76290$var$styles;
|
|
1155
1161
|
|
|
1156
1162
|
|
|
1157
1163
|
var $6f7275eb03c2b93c$var$Container = function(props) {
|
|
1158
|
-
var children = props.children, label = props.label, trigger = props.trigger, dataCy = props.dataCy, _a = props.type, type = _a === void 0 ? 'button' : _a, _b = props.direction, direction = _b === void 0 ? 'bottom end' : _b, _c = props.
|
|
1164
|
+
var children = props.children, label = props.label, trigger = props.trigger, dataCy = props.dataCy, _a = props.type, type = _a === void 0 ? 'button' : _a, _b = props.direction, direction = _b === void 0 ? 'bottom end' : _b, _c = props.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = props.isEscapingOverflow, isEscapingOverflow = _d === void 0 ? false : _d, stylesOverrides = props.styles;
|
|
1159
1165
|
var handleGenerateStyle = function() {
|
|
1160
1166
|
var result = (0, $f0c671820c340322$export$e2d2075c69d9100d)((0, $87a4b9b6cee76290$export$2e2bcd8739ae039).base);
|
|
1161
1167
|
var keys = (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $87a4b9b6cee76290$export$2e2bcd8739ae039).base);
|
|
1162
1168
|
keys.forEach(function(key) {
|
|
1163
|
-
(0, $iA2ta$lodash.set)(result, key, (0, $622cd2936b18c771$export$4370d69198e9314a)((0, $iA2ta$lodash.get)((0, $87a4b9b6cee76290$export$2e2bcd8739ae039).base, key), type && (0, $iA2ta$lodash.get)((0, $87a4b9b6cee76290$export$2e2bcd8739ae039)[type], key), (0, $iA2ta$lodash.get)(stylesOverrides, key)));
|
|
1169
|
+
(0, $iA2ta$lodash.set)(result, key, (0, $622cd2936b18c771$export$4370d69198e9314a)((0, $iA2ta$lodash.get)((0, $87a4b9b6cee76290$export$2e2bcd8739ae039).base, key), type && (0, $iA2ta$lodash.get)((0, $87a4b9b6cee76290$export$2e2bcd8739ae039)[type], key), isDisabled && (0, $iA2ta$lodash.get)((0, $87a4b9b6cee76290$export$2e2bcd8739ae039).disabled, key), (0, $iA2ta$lodash.get)(stylesOverrides, key)));
|
|
1164
1170
|
});
|
|
1165
1171
|
return result;
|
|
1166
1172
|
};
|
|
@@ -1172,6 +1178,7 @@ var $6f7275eb03c2b93c$var$Container = function(props) {
|
|
|
1172
1178
|
(0, $iA2ta$reactjsxruntime.jsxs)("div", {
|
|
1173
1179
|
children: [
|
|
1174
1180
|
type === 'button' && (!trigger ? (0, $iA2ta$reactjsxruntime.jsxs)((0, $iA2ta$headlessuireact.MenuButton), {
|
|
1181
|
+
disabled: isDisabled,
|
|
1175
1182
|
className: styles.button,
|
|
1176
1183
|
"data-cy": dataCy,
|
|
1177
1184
|
children: [
|
|
@@ -1182,10 +1189,12 @@ var $6f7275eb03c2b93c$var$Container = function(props) {
|
|
|
1182
1189
|
})
|
|
1183
1190
|
]
|
|
1184
1191
|
}) : (0, $iA2ta$reactjsxruntime.jsx)((0, $iA2ta$headlessuireact.MenuButton), {
|
|
1192
|
+
disabled: isDisabled,
|
|
1185
1193
|
"data-cy": dataCy,
|
|
1186
1194
|
children: trigger
|
|
1187
1195
|
})),
|
|
1188
1196
|
type === 'compact' && (0, $iA2ta$reactjsxruntime.jsxs)((0, $iA2ta$headlessuireact.MenuButton), {
|
|
1197
|
+
disabled: isDisabled,
|
|
1189
1198
|
className: styles.compact,
|
|
1190
1199
|
"data-cy": dataCy,
|
|
1191
1200
|
children: [
|
|
@@ -1229,6 +1238,71 @@ var $6f7275eb03c2b93c$export$2e2bcd8739ae039 = $6f7275eb03c2b93c$var$DropdownEle
|
|
|
1229
1238
|
|
|
1230
1239
|
|
|
1231
1240
|
|
|
1241
|
+
var $4b59a3e0d0d66995$var$styles = {
|
|
1242
|
+
container: '',
|
|
1243
|
+
icon: {
|
|
1244
|
+
container: 'w-4 h-4 flex ease-in-out duration-300',
|
|
1245
|
+
rotate: 'transform rotate-90',
|
|
1246
|
+
svg: 'w-4 h-4 flex'
|
|
1247
|
+
}
|
|
1248
|
+
};
|
|
1249
|
+
var $4b59a3e0d0d66995$export$2e2bcd8739ae039 = $4b59a3e0d0d66995$var$styles;
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
var $9a91e005c750fbb3$var$RotatingIcon = function(_a) {
|
|
1257
|
+
var isVisible = _a.isVisible, styles = _a.styles;
|
|
1258
|
+
return (0, $iA2ta$reactjsxruntime.jsx)("div", {
|
|
1259
|
+
className: styles.icon.container,
|
|
1260
|
+
children: (0, $iA2ta$reactjsxruntime.jsx)((0, $2125901b4a9afff9$export$2e2bcd8739ae039), {
|
|
1261
|
+
className: styles.icon.svg,
|
|
1262
|
+
accessor: "chevron-right"
|
|
1263
|
+
})
|
|
1264
|
+
});
|
|
1265
|
+
};
|
|
1266
|
+
var $9a91e005c750fbb3$var$Collapsible = function(props) {
|
|
1267
|
+
var children = props.children, _a = props.isDefaultOpen, isDefaultOpen = _a === void 0 ? false : _a, trigger = props.trigger, stylesOverrides = props.styles;
|
|
1268
|
+
var _b = (0, $iA2ta$react.useState)(isDefaultOpen), isVisible = _b[0], setIsVisible = _b[1];
|
|
1269
|
+
var handleToggle = (0, $iA2ta$react.useCallback)(function() {
|
|
1270
|
+
return setIsVisible(function(visibility) {
|
|
1271
|
+
return !visibility;
|
|
1272
|
+
});
|
|
1273
|
+
}, []);
|
|
1274
|
+
var handleGenerateStyle = function() {
|
|
1275
|
+
var result = (0, $f0c671820c340322$export$e2d2075c69d9100d)((0, $4b59a3e0d0d66995$export$2e2bcd8739ae039));
|
|
1276
|
+
var keys = (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $4b59a3e0d0d66995$export$2e2bcd8739ae039));
|
|
1277
|
+
keys.forEach(function(key) {
|
|
1278
|
+
(0, $iA2ta$lodash.set)(result, key, (0, $622cd2936b18c771$export$4370d69198e9314a)((0, $iA2ta$lodash.get)((0, $4b59a3e0d0d66995$export$2e2bcd8739ae039), key), isVisible && key.includes('icon.container') && (0, $4b59a3e0d0d66995$export$2e2bcd8739ae039).icon.rotate, (0, $iA2ta$lodash.get)(stylesOverrides, key)));
|
|
1279
|
+
});
|
|
1280
|
+
return result;
|
|
1281
|
+
};
|
|
1282
|
+
var styles = handleGenerateStyle();
|
|
1283
|
+
return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
|
|
1284
|
+
className: styles.container,
|
|
1285
|
+
children: [
|
|
1286
|
+
trigger({
|
|
1287
|
+
handleToggle: handleToggle,
|
|
1288
|
+
rotatingIcon: (0, $iA2ta$reactjsxruntime.jsx)($9a91e005c750fbb3$var$RotatingIcon, {
|
|
1289
|
+
isVisible: isVisible,
|
|
1290
|
+
styles: styles
|
|
1291
|
+
}),
|
|
1292
|
+
isVisible: isVisible
|
|
1293
|
+
}),
|
|
1294
|
+
isVisible && (0, $iA2ta$reactjsxruntime.jsx)("div", {
|
|
1295
|
+
children: children
|
|
1296
|
+
})
|
|
1297
|
+
]
|
|
1298
|
+
});
|
|
1299
|
+
};
|
|
1300
|
+
var $9a91e005c750fbb3$export$2e2bcd8739ae039 = $9a91e005c750fbb3$var$Collapsible;
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
|
|
1232
1306
|
|
|
1233
1307
|
|
|
1234
1308
|
|