@app-studio/web 0.8.88 → 0.8.90
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/web.cjs.development.js +103 -73
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +103 -73
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +106 -77
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('core-js/modules/es.object.assign.js'), require('react'), require('core-js/modules/es.array.includes.js'), require('core-js/modules/es.array.iterator.js'), require('core-js/modules/es.string.includes.js'), require('core-js/modules/web.dom-collections.iterator.js'), require('core-js/modules/es.regexp.to-string.js'), require('app-studio'), require('core-js/modules/es.symbol.description.js'), require('core-js/modules/es.parse-float.js'), require('react-router-dom'), require('contrast'), require('core-js/modules/es.promise.js'), require('core-js/modules/es.array.reduce.js'), require('core-js/modules/es.number.to-fixed.js'), require('core-js/modules/es.string.starts-with.js'), require('date-fns/format'), require('core-js/modules/es.parse-int.js'), require('core-js/modules/es.regexp.constructor.js'), require('core-js/modules/es.regexp.exec.js'), require('formik'), require('core-js/modules/web.url.js'), require('core-js/modules/web.url.to-json.js'), require('core-js/modules/web.url-search-params.js'), require('zustand'), require('core-js/modules/es.string.ends-with.js'), require('core-js/modules/es.string.match.js'), require('core-js/modules/es.string.search.js'), require('core-js/modules/es.array.flat-map.js'), require('core-js/modules/es.array.unscopables.flat-map.js'), require('core-js/modules/es.string.trim.js')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'core-js/modules/es.object.assign.js', 'react', 'core-js/modules/es.array.includes.js', 'core-js/modules/es.array.iterator.js', 'core-js/modules/es.string.includes.js', 'core-js/modules/web.dom-collections.iterator.js', 'core-js/modules/es.regexp.to-string.js', 'app-studio', 'core-js/modules/es.symbol.description.js', 'core-js/modules/es.parse-float.js', 'react-router-dom', 'contrast', 'core-js/modules/es.promise.js', 'core-js/modules/es.array.reduce.js', 'core-js/modules/es.number.to-fixed.js', 'core-js/modules/es.string.starts-with.js', 'date-fns/format', 'core-js/modules/es.parse-int.js', 'core-js/modules/es.regexp.constructor.js', 'core-js/modules/es.regexp.exec.js', 'formik', 'core-js/modules/web.url.js', 'core-js/modules/web.url.to-json.js', 'core-js/modules/web.url-search-params.js', 'zustand', 'core-js/modules/es.string.ends-with.js', 'core-js/modules/es.string.match.js', 'core-js/modules/es.string.search.js', 'core-js/modules/es.array.flat-map.js', 'core-js/modules/es.array.unscopables.flat-map.js', 'core-js/modules/es.string.trim.js'], factory) :
|
|
4
|
-
(global = global || self, factory(global['@app-studio/web'] = {}, null, global.React, null, null, null, null, null, global.appStudio, null, null, global.reactRouterDom, global.contrast, null, null, null, null, global.format, null, null, null, global.formik, null, null, null, global.zustand));
|
|
5
|
-
}(this, (function (exports, es_object_assign_js, React, es_array_includes_js, es_array_iterator_js, es_string_includes_js, web_domCollections_iterator_js, es_regexp_toString_js, appStudio, es_symbol_description_js, es_parseFloat_js, reactRouterDom, contrast, es_promise_js, es_array_reduce_js, es_number_toFixed_js, es_string_startsWith_js, format, es_parseInt_js, es_regexp_constructor_js, es_regexp_exec_js, formik, web_url_js, web_url_toJson_js, web_urlSearchParams_js, zustand) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('core-js/modules/es.object.assign.js'), require('react'), require('core-js/modules/es.array.includes.js'), require('core-js/modules/es.array.iterator.js'), require('core-js/modules/es.string.includes.js'), require('core-js/modules/web.dom-collections.iterator.js'), require('core-js/modules/es.regexp.to-string.js'), require('app-studio'), require('core-js/modules/es.symbol.description.js'), require('core-js/modules/es.parse-float.js'), require('core-js/modules/es.string.trim-end.js'), require('react-router-dom'), require('contrast'), require('core-js/modules/es.promise.js'), require('core-js/modules/es.array.reduce.js'), require('core-js/modules/es.number.to-fixed.js'), require('core-js/modules/es.string.starts-with.js'), require('date-fns/format'), require('core-js/modules/es.parse-int.js'), require('core-js/modules/es.regexp.constructor.js'), require('core-js/modules/es.regexp.exec.js'), require('formik'), require('core-js/modules/web.url.js'), require('core-js/modules/web.url.to-json.js'), require('core-js/modules/web.url-search-params.js'), require('zustand'), require('core-js/modules/es.string.ends-with.js'), require('core-js/modules/es.string.match.js'), require('core-js/modules/es.string.search.js'), require('core-js/modules/es.array.flat-map.js'), require('core-js/modules/es.array.unscopables.flat-map.js'), require('core-js/modules/es.string.trim.js')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'core-js/modules/es.object.assign.js', 'react', 'core-js/modules/es.array.includes.js', 'core-js/modules/es.array.iterator.js', 'core-js/modules/es.string.includes.js', 'core-js/modules/web.dom-collections.iterator.js', 'core-js/modules/es.regexp.to-string.js', 'app-studio', 'core-js/modules/es.symbol.description.js', 'core-js/modules/es.parse-float.js', 'core-js/modules/es.string.trim-end.js', 'react-router-dom', 'contrast', 'core-js/modules/es.promise.js', 'core-js/modules/es.array.reduce.js', 'core-js/modules/es.number.to-fixed.js', 'core-js/modules/es.string.starts-with.js', 'date-fns/format', 'core-js/modules/es.parse-int.js', 'core-js/modules/es.regexp.constructor.js', 'core-js/modules/es.regexp.exec.js', 'formik', 'core-js/modules/web.url.js', 'core-js/modules/web.url.to-json.js', 'core-js/modules/web.url-search-params.js', 'zustand', 'core-js/modules/es.string.ends-with.js', 'core-js/modules/es.string.match.js', 'core-js/modules/es.string.search.js', 'core-js/modules/es.array.flat-map.js', 'core-js/modules/es.array.unscopables.flat-map.js', 'core-js/modules/es.string.trim.js'], factory) :
|
|
4
|
+
(global = global || self, factory(global['@app-studio/web'] = {}, null, global.React, null, null, null, null, null, global.appStudio, null, null, null, global.reactRouterDom, global.contrast, null, null, null, null, global.format, null, null, null, global.formik, null, null, null, global.zustand));
|
|
5
|
+
}(this, (function (exports, es_object_assign_js, React, es_array_includes_js, es_array_iterator_js, es_string_includes_js, web_domCollections_iterator_js, es_regexp_toString_js, appStudio, es_symbol_description_js, es_parseFloat_js, es_string_trimEnd_js, reactRouterDom, contrast, es_promise_js, es_array_reduce_js, es_number_toFixed_js, es_string_startsWith_js, format, es_parseInt_js, es_regexp_constructor_js, es_regexp_exec_js, formik, web_url_js, web_url_toJson_js, web_urlSearchParams_js, zustand) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var React__default = 'default' in React ? React['default'] : React;
|
|
8
8
|
contrast = contrast && Object.prototype.hasOwnProperty.call(contrast, 'default') ? contrast['default'] : contrast;
|
|
@@ -470,7 +470,8 @@
|
|
|
470
470
|
black: '900'
|
|
471
471
|
};
|
|
472
472
|
|
|
473
|
-
var _excluded$2 = ["
|
|
473
|
+
var _excluded$2 = ["text", "maxLines", "views"],
|
|
474
|
+
_excluded2$1 = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size", "views"];
|
|
474
475
|
/**
|
|
475
476
|
* Renders text content with support for subscript and superscript
|
|
476
477
|
*/
|
|
@@ -496,46 +497,79 @@
|
|
|
496
497
|
}, views == null ? void 0 : views.sup), children)), !isSub && !isSup && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children))) : children);
|
|
497
498
|
};
|
|
498
499
|
/**
|
|
499
|
-
* Renders text with truncation after a specified number of lines
|
|
500
|
+
* Renders text with truncation after a specified number of lines (JS calculation)
|
|
500
501
|
*/
|
|
501
502
|
var TruncateText = _ref2 => {
|
|
502
503
|
var {
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
504
|
+
text,
|
|
505
|
+
maxLines = 1,
|
|
506
|
+
views // Pass down other HTML attributes
|
|
507
|
+
} = _ref2,
|
|
508
|
+
rest = _objectWithoutPropertiesLoose(_ref2, _excluded$2);
|
|
507
509
|
var containerRef = React.useRef(null);
|
|
508
|
-
var [
|
|
510
|
+
var [truncatedText, setTruncatedText] = React.useState(text);
|
|
511
|
+
var [isTruncated, setIsTruncated] = React.useState(false);
|
|
509
512
|
React.useEffect(() => {
|
|
510
|
-
var
|
|
511
|
-
if (!
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
513
|
+
var node = containerRef.current;
|
|
514
|
+
if (!node || !text || maxLines <= 0) {
|
|
515
|
+
setTruncatedText(text != null ? text : '');
|
|
516
|
+
setIsTruncated(false);
|
|
517
|
+
return;
|
|
518
|
+
}
|
|
519
|
+
var {
|
|
520
|
+
overflow,
|
|
521
|
+
height,
|
|
522
|
+
maxHeight,
|
|
523
|
+
lineHeight
|
|
524
|
+
} = node.style;
|
|
525
|
+
node.style.overflow = 'visible';
|
|
526
|
+
node.style.height = 'auto';
|
|
527
|
+
node.style.maxHeight = 'none';
|
|
528
|
+
node.innerText = text[0] || 'M';
|
|
529
|
+
var singleLine = node.offsetHeight;
|
|
530
|
+
if (!singleLine) {
|
|
531
|
+
var cs = getComputedStyle(node);
|
|
532
|
+
singleLine = cs.lineHeight !== 'normal' ? parseFloat(cs.lineHeight) : parseFloat(cs.fontSize || '16') * 1.2;
|
|
533
|
+
}
|
|
534
|
+
var limit = singleLine * maxLines;
|
|
535
|
+
node.innerText = text;
|
|
536
|
+
if (node.offsetHeight <= limit) {
|
|
537
|
+
setTruncatedText(text);
|
|
538
|
+
setIsTruncated(false);
|
|
539
|
+
restore(node);
|
|
540
|
+
return;
|
|
541
|
+
}
|
|
542
|
+
var lo = 0;
|
|
543
|
+
var hi = text.length;
|
|
544
|
+
var fit = 0;
|
|
545
|
+
while (lo <= hi) {
|
|
546
|
+
var mid = Math.floor((lo + hi) / 2);
|
|
547
|
+
node.innerText = text.slice(0, mid);
|
|
548
|
+
if (node.offsetHeight <= limit) {
|
|
549
|
+
fit = mid;
|
|
550
|
+
lo = mid + 1;
|
|
551
|
+
} else {
|
|
552
|
+
hi = mid - 1;
|
|
528
553
|
}
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
554
|
+
}
|
|
555
|
+
var finalText = fit < text.length ? text.slice(0, text.length > fit + 3 ? fit - 3 : fit).trimEnd() + '…' : text;
|
|
556
|
+
setTruncatedText(finalText);
|
|
557
|
+
setIsTruncated(fit < text.length);
|
|
558
|
+
restore(node);
|
|
559
|
+
function restore(n) {
|
|
560
|
+
n.style.overflow = overflow;
|
|
561
|
+
n.style.height = height;
|
|
562
|
+
n.style.maxHeight = maxHeight;
|
|
563
|
+
n.style.lineHeight = lineHeight;
|
|
564
|
+
}
|
|
532
565
|
}, [text, maxLines]);
|
|
533
|
-
var displayText = text.length > truncatedLength ? text.substring(0, truncatedLength) + '...' : text;
|
|
534
566
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
535
567
|
ref: containerRef,
|
|
536
|
-
overflow: "hidden"
|
|
537
|
-
|
|
538
|
-
|
|
568
|
+
overflow: "hidden" // Crucial for final display state
|
|
569
|
+
}, views == null ? void 0 : views.truncateText, rest, {
|
|
570
|
+
// Add title attribute for accessibility/hover to see full text
|
|
571
|
+
title: isTruncated ? text : undefined
|
|
572
|
+
}), truncatedText);
|
|
539
573
|
};
|
|
540
574
|
/**
|
|
541
575
|
* Main Text component that renders text with various styles and states
|
|
@@ -554,7 +588,7 @@
|
|
|
554
588
|
size = 'md',
|
|
555
589
|
views
|
|
556
590
|
} = _ref3,
|
|
557
|
-
props = _objectWithoutPropertiesLoose(_ref3,
|
|
591
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$1);
|
|
558
592
|
// Apply heading styles if a heading is specified
|
|
559
593
|
var headingStyles = heading ? HeadingSizes[heading] : {};
|
|
560
594
|
// For sub/sup text, use inline display
|
|
@@ -574,12 +608,7 @@
|
|
|
574
608
|
fontStyle: isItalic ? 'italic' : 'normal',
|
|
575
609
|
fontWeight: fontWeight,
|
|
576
610
|
letterSpacing: "-0.01em",
|
|
577
|
-
textDecoration: isStriked ? 'line-through' : isUnderlined ? 'underline' : 'none'
|
|
578
|
-
color: "color.gray.900",
|
|
579
|
-
// Apply dark mode styles
|
|
580
|
-
_dark: {
|
|
581
|
-
color: 'color.gray.100'
|
|
582
|
-
}
|
|
611
|
+
textDecoration: isStriked ? 'line-through' : isUnderlined ? 'underline' : 'none'
|
|
583
612
|
}, noLineBreak, headingStyles, props, views == null ? void 0 : views.container), maxLines && typeof children === 'string' ? (/*#__PURE__*/React__default.createElement(TruncateText, {
|
|
584
613
|
text: children,
|
|
585
614
|
maxLines: maxLines
|
|
@@ -598,7 +627,7 @@
|
|
|
598
627
|
var Text = TextComponent;
|
|
599
628
|
|
|
600
629
|
var _excluded$3 = ["widthHeight", "color", "transform", "orientation", "children"],
|
|
601
|
-
_excluded2$
|
|
630
|
+
_excluded2$2 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
602
631
|
_excluded3$1 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
603
632
|
_excluded4$1 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
604
633
|
_excluded5 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
@@ -712,7 +741,7 @@
|
|
|
712
741
|
filled = true,
|
|
713
742
|
strokeWidth = 1
|
|
714
743
|
} = _ref2,
|
|
715
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
744
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$2);
|
|
716
745
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
717
746
|
widthHeight: widthHeight,
|
|
718
747
|
color: color
|
|
@@ -3396,7 +3425,7 @@
|
|
|
3396
3425
|
};
|
|
3397
3426
|
|
|
3398
3427
|
var _excluded$9 = ["size", "speed", "color", "themeMode"],
|
|
3399
|
-
_excluded2$
|
|
3428
|
+
_excluded2$3 = ["size", "speed", "color", "themeMode"],
|
|
3400
3429
|
_excluded3$2 = ["size", "speed", "color", "themeMode"],
|
|
3401
3430
|
_excluded4$2 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition", "views"];
|
|
3402
3431
|
var DefaultSpinner = _ref => {
|
|
@@ -3455,7 +3484,7 @@
|
|
|
3455
3484
|
color = 'theme.loading',
|
|
3456
3485
|
themeMode: elementMode
|
|
3457
3486
|
} = _ref2,
|
|
3458
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
3487
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
3459
3488
|
var {
|
|
3460
3489
|
getColor,
|
|
3461
3490
|
themeMode
|
|
@@ -4002,7 +4031,7 @@
|
|
|
4002
4031
|
};
|
|
4003
4032
|
|
|
4004
4033
|
var _excluded$b = ["children", "views", "style", "themeMode"],
|
|
4005
|
-
_excluded2$
|
|
4034
|
+
_excluded2$4 = ["children", "views", "style", "themeMode"],
|
|
4006
4035
|
_excluded3$3 = ["children", "views", "style", "themeMode"],
|
|
4007
4036
|
_excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
|
|
4008
4037
|
var CardHeader = _ref => {
|
|
@@ -4029,7 +4058,7 @@
|
|
|
4029
4058
|
children,
|
|
4030
4059
|
style
|
|
4031
4060
|
} = _ref2,
|
|
4032
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
4061
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
|
|
4033
4062
|
var theme = appStudio.useTheme();
|
|
4034
4063
|
var {
|
|
4035
4064
|
styles: contextStyles
|
|
@@ -4406,7 +4435,7 @@
|
|
|
4406
4435
|
};
|
|
4407
4436
|
|
|
4408
4437
|
var _excluded$c = ["children", "isActive", "views"],
|
|
4409
|
-
_excluded2$
|
|
4438
|
+
_excluded2$5 = ["views", "children"],
|
|
4410
4439
|
_excluded3$4 = ["views", "children"],
|
|
4411
4440
|
_excluded4$4 = ["children", "views"],
|
|
4412
4441
|
_excluded5$1 = ["children", "views", "style"],
|
|
@@ -4433,7 +4462,7 @@
|
|
|
4433
4462
|
children // Allow custom content/icon
|
|
4434
4463
|
// Spread remaining ButtonProps
|
|
4435
4464
|
} = _ref2,
|
|
4436
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
4465
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
|
|
4437
4466
|
var {
|
|
4438
4467
|
goToPrevious,
|
|
4439
4468
|
canGoPrevious,
|
|
@@ -5700,7 +5729,7 @@
|
|
|
5700
5729
|
};
|
|
5701
5730
|
|
|
5702
5731
|
var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
|
|
5703
|
-
_excluded2$
|
|
5732
|
+
_excluded2$6 = ["items", "children", "position", "side", "align", "views", "style"],
|
|
5704
5733
|
_excluded3$5 = ["item", "children", "onSelect", "isDisabled", "views"],
|
|
5705
5734
|
_excluded4$5 = ["views"],
|
|
5706
5735
|
_excluded5$2 = ["views"],
|
|
@@ -5809,7 +5838,7 @@
|
|
|
5809
5838
|
views,
|
|
5810
5839
|
style // Capture user-provided style
|
|
5811
5840
|
} = _ref3,
|
|
5812
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
5841
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$6);
|
|
5813
5842
|
var {
|
|
5814
5843
|
isOpen,
|
|
5815
5844
|
position: contextPosition,
|
|
@@ -6106,7 +6135,7 @@
|
|
|
6106
6135
|
ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
|
|
6107
6136
|
|
|
6108
6137
|
var _excluded$g = ["src", "color", "views", "themeMode"],
|
|
6109
|
-
_excluded2$
|
|
6138
|
+
_excluded2$7 = ["path"];
|
|
6110
6139
|
var FileSVG = _ref => {
|
|
6111
6140
|
var {
|
|
6112
6141
|
src,
|
|
@@ -6136,7 +6165,7 @@
|
|
|
6136
6165
|
var {
|
|
6137
6166
|
path
|
|
6138
6167
|
} = _ref2,
|
|
6139
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
6168
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
|
|
6140
6169
|
return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
|
|
6141
6170
|
src: path
|
|
6142
6171
|
}, props));
|
|
@@ -6568,7 +6597,7 @@
|
|
|
6568
6597
|
};
|
|
6569
6598
|
|
|
6570
6599
|
var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
6571
|
-
_excluded2$
|
|
6600
|
+
_excluded2$8 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
6572
6601
|
_excluded3$6 = ["option", "size", "removeOption"],
|
|
6573
6602
|
_excluded4$6 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "shape", "variant", "views", "onChange", "setHide", "setValue", "setIsHovered", "setIsFocused", "setHighlightedIndex", "highlightedIndex"];
|
|
6574
6603
|
/**
|
|
@@ -6686,7 +6715,7 @@
|
|
|
6686
6715
|
isReadOnly = false,
|
|
6687
6716
|
options = []
|
|
6688
6717
|
} = _ref4,
|
|
6689
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$
|
|
6718
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$8);
|
|
6690
6719
|
var handleChange = event => {
|
|
6691
6720
|
if (onChange) onChange(event);
|
|
6692
6721
|
};
|
|
@@ -9321,7 +9350,7 @@
|
|
|
9321
9350
|
};
|
|
9322
9351
|
|
|
9323
9352
|
var _excluded$t = ["size"],
|
|
9324
|
-
_excluded2$
|
|
9353
|
+
_excluded2$9 = ["size"],
|
|
9325
9354
|
_excluded3$7 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "views", "themeMode"];
|
|
9326
9355
|
var CountryList = _ref => {
|
|
9327
9356
|
var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
@@ -9333,7 +9362,7 @@
|
|
|
9333
9362
|
type: "country"
|
|
9334
9363
|
}, props)));
|
|
9335
9364
|
var CountryItem = _ref2 => {
|
|
9336
|
-
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
9365
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$9);
|
|
9337
9366
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
9338
9367
|
as: "li"
|
|
9339
9368
|
}, props));
|
|
@@ -9686,7 +9715,7 @@
|
|
|
9686
9715
|
};
|
|
9687
9716
|
|
|
9688
9717
|
var _excluded$v = ["visibleIcon", "hiddenIcon"],
|
|
9689
|
-
_excluded2$
|
|
9718
|
+
_excluded2$a = ["isVisible", "setIsVisible"];
|
|
9690
9719
|
var PasswordComponent = _ref => {
|
|
9691
9720
|
var {
|
|
9692
9721
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -9702,7 +9731,7 @@
|
|
|
9702
9731
|
isVisible,
|
|
9703
9732
|
setIsVisible
|
|
9704
9733
|
} = _usePasswordState,
|
|
9705
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
9734
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
|
|
9706
9735
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
9707
9736
|
type: isVisible ? 'text' : 'password',
|
|
9708
9737
|
isClearable: false,
|
|
@@ -10735,7 +10764,7 @@
|
|
|
10735
10764
|
var FormikTextField = TextFieldComponent$1;
|
|
10736
10765
|
|
|
10737
10766
|
var _excluded$D = ["visibleIcon", "hiddenIcon"],
|
|
10738
|
-
_excluded2$
|
|
10767
|
+
_excluded2$b = ["isVisible", "setIsVisible"];
|
|
10739
10768
|
var PasswordComponent$1 = _ref => {
|
|
10740
10769
|
var {
|
|
10741
10770
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -10752,7 +10781,7 @@
|
|
|
10752
10781
|
isVisible,
|
|
10753
10782
|
setIsVisible
|
|
10754
10783
|
} = _usePasswordState,
|
|
10755
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
10784
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$b);
|
|
10756
10785
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
10757
10786
|
type: isVisible ? 'text' : 'password',
|
|
10758
10787
|
isClearable: false,
|
|
@@ -12184,7 +12213,7 @@
|
|
|
12184
12213
|
};
|
|
12185
12214
|
|
|
12186
12215
|
var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
12187
|
-
_excluded2$
|
|
12216
|
+
_excluded2$c = ["children", "shadow", "isFullScreen", "shape", "views", "isOpen"],
|
|
12188
12217
|
_excluded3$8 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
12189
12218
|
_excluded4$7 = ["children", "views"],
|
|
12190
12219
|
_excluded5$3 = ["children", "views"];
|
|
@@ -12234,7 +12263,7 @@
|
|
|
12234
12263
|
shape = 'rounded',
|
|
12235
12264
|
views
|
|
12236
12265
|
} = _ref2,
|
|
12237
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
12266
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$c);
|
|
12238
12267
|
var defaultShadow = typeof document !== undefined ? {
|
|
12239
12268
|
boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
|
|
12240
12269
|
} : {
|
|
@@ -13744,7 +13773,7 @@
|
|
|
13744
13773
|
};
|
|
13745
13774
|
|
|
13746
13775
|
var _excluded$M = ["children", "views"],
|
|
13747
|
-
_excluded2$
|
|
13776
|
+
_excluded2$d = ["items", "side", "align", "views"],
|
|
13748
13777
|
_excluded3$9 = ["item", "views"],
|
|
13749
13778
|
_excluded4$8 = ["views"],
|
|
13750
13779
|
_excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
|
|
@@ -13806,7 +13835,7 @@
|
|
|
13806
13835
|
align = 'start',
|
|
13807
13836
|
views
|
|
13808
13837
|
} = _ref3,
|
|
13809
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
13838
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$d);
|
|
13810
13839
|
var {
|
|
13811
13840
|
isOpen,
|
|
13812
13841
|
//activeSubmenuId, setActiveSubmenuId, size,
|
|
@@ -14155,7 +14184,7 @@
|
|
|
14155
14184
|
};
|
|
14156
14185
|
|
|
14157
14186
|
var _excluded$O = ["children", "views", "asChild"],
|
|
14158
|
-
_excluded2$
|
|
14187
|
+
_excluded2$e = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
14159
14188
|
// Create context for the HoverCard
|
|
14160
14189
|
var HoverCardContext = /*#__PURE__*/React.createContext({
|
|
14161
14190
|
isOpen: false,
|
|
@@ -14241,7 +14270,7 @@
|
|
|
14241
14270
|
minWidth = '200px',
|
|
14242
14271
|
maxWidth = '300px'
|
|
14243
14272
|
} = _ref3,
|
|
14244
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
14273
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$e);
|
|
14245
14274
|
var {
|
|
14246
14275
|
isOpen,
|
|
14247
14276
|
cancelCloseTimer,
|
|
@@ -15304,7 +15333,7 @@
|
|
|
15304
15333
|
};
|
|
15305
15334
|
|
|
15306
15335
|
var _excluded$V = ["children", "showToggleButton", "views"],
|
|
15307
|
-
_excluded2$
|
|
15336
|
+
_excluded2$f = ["children", "views"],
|
|
15308
15337
|
_excluded3$a = ["children", "views"],
|
|
15309
15338
|
_excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
15310
15339
|
// Create context for the Sidebar
|
|
@@ -15403,7 +15432,7 @@
|
|
|
15403
15432
|
children,
|
|
15404
15433
|
views
|
|
15405
15434
|
} = _ref3,
|
|
15406
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
15435
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$f);
|
|
15407
15436
|
var {
|
|
15408
15437
|
isExpanded
|
|
15409
15438
|
} = useSidebarContext();
|
|
@@ -15979,7 +16008,7 @@
|
|
|
15979
16008
|
};
|
|
15980
16009
|
|
|
15981
16010
|
var _excluded$X = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
15982
|
-
_excluded2$
|
|
16011
|
+
_excluded2$g = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
15983
16012
|
_excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
15984
16013
|
// Create context for the Resizable component
|
|
15985
16014
|
var ResizableContext = /*#__PURE__*/React.createContext({
|
|
@@ -16087,7 +16116,7 @@
|
|
|
16087
16116
|
collapseTarget,
|
|
16088
16117
|
views
|
|
16089
16118
|
} = _ref3,
|
|
16090
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
16119
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$g);
|
|
16091
16120
|
var {
|
|
16092
16121
|
orientation,
|
|
16093
16122
|
size,
|
|
@@ -17027,7 +17056,7 @@
|
|
|
17027
17056
|
};
|
|
17028
17057
|
|
|
17029
17058
|
var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
|
|
17030
|
-
_excluded2$
|
|
17059
|
+
_excluded2$h = ["children", "views"],
|
|
17031
17060
|
_excluded3$c = ["heading", "children", "views"],
|
|
17032
17061
|
_excluded4$a = ["item", "selected", "onSelect", "views"],
|
|
17033
17062
|
_excluded5$5 = ["children", "views"],
|
|
@@ -17090,7 +17119,7 @@
|
|
|
17090
17119
|
children,
|
|
17091
17120
|
views
|
|
17092
17121
|
} = _ref3,
|
|
17093
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
17122
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
|
|
17094
17123
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
|
|
17095
17124
|
};
|
|
17096
17125
|
// Command Group component
|
|
@@ -17547,7 +17576,7 @@
|
|
|
17547
17576
|
};
|
|
17548
17577
|
|
|
17549
17578
|
var _excluded$$ = ["children", "views", "asChild"],
|
|
17550
|
-
_excluded2$
|
|
17579
|
+
_excluded2$i = ["children", "views"],
|
|
17551
17580
|
_excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
17552
17581
|
// Create context for the Tooltip
|
|
17553
17582
|
var TooltipContext = /*#__PURE__*/React.createContext({
|
|
@@ -17618,7 +17647,7 @@
|
|
|
17618
17647
|
children,
|
|
17619
17648
|
views
|
|
17620
17649
|
} = _ref3,
|
|
17621
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
17650
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$i);
|
|
17622
17651
|
var {
|
|
17623
17652
|
isOpen,
|
|
17624
17653
|
contentRef,
|