@app-studio/web 0.9.49 → 0.9.51
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/components/Form/Form.d.ts +1 -0
- package/dist/components/Form/Selector/Selector/Selector.props.d.ts +68 -0
- package/dist/components/Form/Selector/Selector/Selector.state.d.ts +19 -0
- package/dist/components/Form/Selector/Selector/Selector.style.d.ts +30 -0
- package/dist/components/Form/Selector/Selector/Selector.view.d.ts +9 -0
- package/dist/components/Form/Selector/Selector.d.ts +3 -0
- package/dist/components/Formik/Formik.Selector.d.ts +6 -0
- package/dist/components/Formik/index.d.ts +1 -0
- package/dist/utils/typography.d.ts +5 -4
- package/dist/web.cjs.development.js +399 -151
- 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 +399 -152
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +399 -151
- 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/docs/components/Background.mdx +15 -0
- package/docs/components/Chart.mdx +34 -0
- package/docs/components/Selector.mdx +78 -0
- package/docs/components/Title.mdx +93 -0
- package/package.json +2 -2
|
@@ -5016,6 +5016,28 @@
|
|
|
5016
5016
|
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5017
5017
|
},
|
|
5018
5018
|
transition: 'opacity 0.2s ease'
|
|
5019
|
+
},
|
|
5020
|
+
subtle: {
|
|
5021
|
+
backgroundColor: 'white',
|
|
5022
|
+
color: color,
|
|
5023
|
+
borderWidth: 1,
|
|
5024
|
+
borderStyle: 'solid',
|
|
5025
|
+
borderColor: color,
|
|
5026
|
+
paddingHorizontal: 12,
|
|
5027
|
+
paddingVertical: 6,
|
|
5028
|
+
borderRadius: 6,
|
|
5029
|
+
fontWeight: 500,
|
|
5030
|
+
_hover: {
|
|
5031
|
+
backgroundColor: 'rgba(0, 0, 0, 0.05)'
|
|
5032
|
+
},
|
|
5033
|
+
_active: {
|
|
5034
|
+
backgroundColor: 'rgba(0, 0, 0, 0.1)'
|
|
5035
|
+
},
|
|
5036
|
+
_focusVisible: {
|
|
5037
|
+
outline: 'none',
|
|
5038
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5039
|
+
},
|
|
5040
|
+
transition: 'all 0.2s ease'
|
|
5019
5041
|
}
|
|
5020
5042
|
};
|
|
5021
5043
|
};
|
|
@@ -6504,12 +6526,14 @@
|
|
|
6504
6526
|
var groupWidth = chartWidth / barCount;
|
|
6505
6527
|
var barWidth = groupWidth * 0.8 / seriesCount;
|
|
6506
6528
|
var barSpacing = groupWidth * 0.2 / (seriesCount + 1);
|
|
6529
|
+
// Calculate effective max value
|
|
6530
|
+
var effectiveMaxValue = maxValue || 10;
|
|
6507
6531
|
// Generate y-axis ticks
|
|
6508
6532
|
var yAxisTicks = React.useMemo(() => {
|
|
6509
6533
|
var tickCount = 5;
|
|
6510
6534
|
var ticks = [];
|
|
6511
6535
|
for (var i = 0; i <= tickCount; i++) {
|
|
6512
|
-
var value =
|
|
6536
|
+
var value = effectiveMaxValue / tickCount * i;
|
|
6513
6537
|
ticks.push(value);
|
|
6514
6538
|
}
|
|
6515
6539
|
return ticks;
|
|
@@ -6542,7 +6566,7 @@
|
|
|
6542
6566
|
}
|
|
6543
6567
|
}), label);
|
|
6544
6568
|
}), yAxisTicks.map((tick, index) => {
|
|
6545
|
-
var y = height - padding.bottom - tick /
|
|
6569
|
+
var y = height - padding.bottom - tick / effectiveMaxValue * chartHeight;
|
|
6546
6570
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
6547
6571
|
key: "y-tick-" + index
|
|
6548
6572
|
}, /*#__PURE__*/React__default.createElement("text", Object.assign({
|
|
@@ -6564,7 +6588,7 @@
|
|
|
6564
6588
|
}), data.series.map((series, seriesIndex) => (/*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
6565
6589
|
key: "series-" + seriesIndex
|
|
6566
6590
|
}, series.data.map((value, dataIndex) => {
|
|
6567
|
-
var barHeight = value /
|
|
6591
|
+
var barHeight = value / effectiveMaxValue * chartHeight * animationProgress;
|
|
6568
6592
|
var x = padding.left + dataIndex * groupWidth + barSpacing * (seriesIndex + 1) + barWidth * seriesIndex;
|
|
6569
6593
|
var y = height - padding.bottom - barHeight;
|
|
6570
6594
|
var categoryLabel = data.labels[dataIndex];
|
|
@@ -6677,12 +6701,14 @@
|
|
|
6677
6701
|
});
|
|
6678
6702
|
return max;
|
|
6679
6703
|
}, [data]);
|
|
6704
|
+
// Calculate effective max value
|
|
6705
|
+
var effectiveMaxValue = maxValue || 10;
|
|
6680
6706
|
// Generate y-axis ticks
|
|
6681
6707
|
var yAxisTicks = React.useMemo(() => {
|
|
6682
6708
|
var tickCount = 5;
|
|
6683
6709
|
var ticks = [];
|
|
6684
6710
|
for (var i = 0; i <= tickCount; i++) {
|
|
6685
|
-
var value =
|
|
6711
|
+
var value = effectiveMaxValue / tickCount * i;
|
|
6686
6712
|
ticks.push(value);
|
|
6687
6713
|
}
|
|
6688
6714
|
return ticks;
|
|
@@ -6691,7 +6717,7 @@
|
|
|
6691
6717
|
var generatePath = series => {
|
|
6692
6718
|
var points = series.map((value, index) => {
|
|
6693
6719
|
var x = padding.left + index / (data.labels.length - 1) * chartWidth;
|
|
6694
|
-
var y = height - padding.bottom - value /
|
|
6720
|
+
var y = height - padding.bottom - value / effectiveMaxValue * chartHeight * animationProgress;
|
|
6695
6721
|
return x + "," + y;
|
|
6696
6722
|
});
|
|
6697
6723
|
return "M " + points.join(' L ');
|
|
@@ -6703,7 +6729,7 @@
|
|
|
6703
6729
|
var baseY = height - padding.bottom;
|
|
6704
6730
|
var points = series.map((value, index) => {
|
|
6705
6731
|
var x = padding.left + index / (data.labels.length - 1) * chartWidth;
|
|
6706
|
-
var y = height - padding.bottom - value /
|
|
6732
|
+
var y = height - padding.bottom - value / effectiveMaxValue * chartHeight * animationProgress;
|
|
6707
6733
|
return x + "," + y;
|
|
6708
6734
|
});
|
|
6709
6735
|
return "M " + startX + "," + baseY + " L " + points.join(' L ') + " L " + endX + "," + baseY + " Z";
|
|
@@ -6736,7 +6762,7 @@
|
|
|
6736
6762
|
}
|
|
6737
6763
|
}), label);
|
|
6738
6764
|
}), yAxisTicks.map((tick, index) => {
|
|
6739
|
-
var y = height - padding.bottom - tick /
|
|
6765
|
+
var y = height - padding.bottom - tick / effectiveMaxValue * chartHeight;
|
|
6740
6766
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
6741
6767
|
key: "y-tick-" + index
|
|
6742
6768
|
}, /*#__PURE__*/React__default.createElement("text", Object.assign({
|
|
@@ -6768,7 +6794,7 @@
|
|
|
6768
6794
|
stroke: lineColor
|
|
6769
6795
|
}, LineStyles, views == null ? void 0 : views.line)), series.data.map((value, dataIndex) => {
|
|
6770
6796
|
var x = padding.left + dataIndex / (data.labels.length - 1) * chartWidth;
|
|
6771
|
-
var y = height - padding.bottom - value /
|
|
6797
|
+
var y = height - padding.bottom - value / effectiveMaxValue * chartHeight * animationProgress;
|
|
6772
6798
|
var categoryLabel = data.labels[dataIndex];
|
|
6773
6799
|
var categoryTotal = data.series.reduce((sum, currentSeries) => {
|
|
6774
6800
|
var seriesValue = currentSeries.data[dataIndex];
|
|
@@ -6900,6 +6926,22 @@
|
|
|
6900
6926
|
}, [dataPoints]);
|
|
6901
6927
|
// Generate pie slices
|
|
6902
6928
|
var slices = React.useMemo(() => {
|
|
6929
|
+
if (total === 0) {
|
|
6930
|
+
// Return a single placeholder slice
|
|
6931
|
+
var path = isDonut ? ["M " + centerX + " " + (centerY - radius), "A " + radius + " " + radius + " 0 1 1 " + centerX + " " + (centerY + radius), "A " + radius + " " + radius + " 0 1 1 " + centerX + " " + (centerY - radius), "M " + centerX + " " + (centerY - donutRadius), "A " + donutRadius + " " + donutRadius + " 0 1 0 " + centerX + " " + (centerY + donutRadius), "A " + donutRadius + " " + donutRadius + " 0 1 0 " + centerX + " " + (centerY - donutRadius), 'Z'].join(' ') : ["M " + centerX + " " + centerY, "M " + centerX + " " + (centerY - radius), "A " + radius + " " + radius + " 0 1 1 " + centerX + " " + (centerY + radius), "A " + radius + " " + radius + " 0 1 1 " + centerX + " " + (centerY - radius), 'Z'].join(' ');
|
|
6932
|
+
return [{
|
|
6933
|
+
path,
|
|
6934
|
+
color: '#E2E8F0',
|
|
6935
|
+
label: 'Total',
|
|
6936
|
+
value: 0,
|
|
6937
|
+
percentage: '0%',
|
|
6938
|
+
labelX: centerX,
|
|
6939
|
+
labelY: centerY,
|
|
6940
|
+
startAngle: 0,
|
|
6941
|
+
endAngle: Math.PI * 2,
|
|
6942
|
+
index: -1
|
|
6943
|
+
}];
|
|
6944
|
+
}
|
|
6903
6945
|
var result = [];
|
|
6904
6946
|
var startAngle = -Math.PI / 2; // Start from top (12 o'clock position)
|
|
6905
6947
|
for (var i = 0; i < dataPoints.length; i++) {
|
|
@@ -6920,13 +6962,13 @@
|
|
|
6920
6962
|
// Create arc flag
|
|
6921
6963
|
var largeArcFlag = angle > Math.PI ? 1 : 0;
|
|
6922
6964
|
// Create path
|
|
6923
|
-
var
|
|
6965
|
+
var _path = void 0;
|
|
6924
6966
|
if (isDonut) {
|
|
6925
6967
|
// Donut slice path
|
|
6926
|
-
|
|
6968
|
+
_path = ["M " + startX + " " + startY, "A " + radius + " " + radius + " 0 " + largeArcFlag + " 1 " + endX + " " + endY, "L " + innerEndX + " " + innerEndY, "A " + donutRadius + " " + donutRadius + " 0 " + largeArcFlag + " 0 " + innerStartX + " " + innerStartY, 'Z'].join(' ');
|
|
6927
6969
|
} else {
|
|
6928
6970
|
// Regular pie slice path
|
|
6929
|
-
|
|
6971
|
+
_path = ["M " + centerX + " " + centerY, "L " + startX + " " + startY, "A " + radius + " " + radius + " 0 " + largeArcFlag + " 1 " + endX + " " + endY, 'Z'].join(' ');
|
|
6930
6972
|
}
|
|
6931
6973
|
// Calculate label position
|
|
6932
6974
|
var labelAngle = startAngle + angle / 2;
|
|
@@ -6940,7 +6982,7 @@
|
|
|
6940
6982
|
// Resolve the color through the theme system
|
|
6941
6983
|
var resolvedColor = getColor(colorValue);
|
|
6942
6984
|
result.push({
|
|
6943
|
-
path,
|
|
6985
|
+
path: _path,
|
|
6944
6986
|
color: resolvedColor,
|
|
6945
6987
|
label: dataPoints[i].label,
|
|
6946
6988
|
value: dataPoints[i].value,
|
|
@@ -7047,19 +7089,24 @@
|
|
|
7047
7089
|
showTooltip(x, y, tooltipContent);
|
|
7048
7090
|
};
|
|
7049
7091
|
var handleClick = () => {
|
|
7050
|
-
if (onSliceClick) {
|
|
7092
|
+
if (slice.index !== -1 && onSliceClick) {
|
|
7051
7093
|
onSliceClick(dataPoints[slice.index], slice.index);
|
|
7052
7094
|
}
|
|
7053
7095
|
};
|
|
7096
|
+
var isPlaceholder = slice.index === -1;
|
|
7054
7097
|
return /*#__PURE__*/React__default.createElement("g", {
|
|
7055
7098
|
key: "slice-" + index
|
|
7056
7099
|
}, /*#__PURE__*/React__default.createElement("path", Object.assign({
|
|
7057
7100
|
d: slice.path,
|
|
7058
7101
|
fill: slice.color,
|
|
7059
|
-
onMouseEnter: handleMouseEnter,
|
|
7060
|
-
onMouseLeave: hideTooltip,
|
|
7102
|
+
onMouseEnter: !isPlaceholder ? handleMouseEnter : undefined,
|
|
7103
|
+
onMouseLeave: !isPlaceholder ? hideTooltip : undefined,
|
|
7061
7104
|
onClick: handleClick
|
|
7062
|
-
}, PieSliceStyles,
|
|
7105
|
+
}, PieSliceStyles, {
|
|
7106
|
+
style: Object.assign({}, PieSliceStyles == null ? void 0 : PieSliceStyles.style, {
|
|
7107
|
+
cursor: isPlaceholder ? 'default' : 'pointer'
|
|
7108
|
+
})
|
|
7109
|
+
}, views == null ? void 0 : views.pie)), !isPlaceholder && slice.endAngle - slice.startAngle > 0.2 && (/*#__PURE__*/React__default.createElement("text", {
|
|
7063
7110
|
x: slice.labelX,
|
|
7064
7111
|
y: slice.labelY,
|
|
7065
7112
|
textAnchor: "middle",
|
|
@@ -8331,7 +8378,8 @@
|
|
|
8331
8378
|
// Layout properties
|
|
8332
8379
|
gap: 8,
|
|
8333
8380
|
position: "relative",
|
|
8334
|
-
width: "100%"
|
|
8381
|
+
width: "100%",
|
|
8382
|
+
marginVertical: 4
|
|
8335
8383
|
}, props, views == null ? void 0 : views.container), children, !error && helperText && (/*#__PURE__*/React__default.createElement(HelperText, Object.assign({
|
|
8336
8384
|
marginTop: 4
|
|
8337
8385
|
}, views == null ? void 0 : views.helperText), helperText)), error && (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
@@ -8528,7 +8576,7 @@
|
|
|
8528
8576
|
opacity: isDisabled ? 0.6 : 1,
|
|
8529
8577
|
// Animation
|
|
8530
8578
|
transition: "all 0.2s ease"
|
|
8531
|
-
}, showLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant],
|
|
8579
|
+
}, showLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], InputVariants[variant], views == null ? void 0 : views.container, props), children);
|
|
8532
8580
|
};
|
|
8533
8581
|
|
|
8534
8582
|
var _excluded$o = ["children"];
|
|
@@ -12192,12 +12240,10 @@
|
|
|
12192
12240
|
text: {}
|
|
12193
12241
|
}
|
|
12194
12242
|
} = _ref3;
|
|
12195
|
-
var [isHovered, setIsHovered] = React.useState(false);
|
|
12196
12243
|
var handleOptionClick = event => {
|
|
12197
12244
|
if (event && event.stopPropagation) event.stopPropagation();
|
|
12198
12245
|
callback(option);
|
|
12199
12246
|
};
|
|
12200
|
-
var handleHover = () => setIsHovered(!isHovered);
|
|
12201
12247
|
return /*#__PURE__*/React__default.createElement(CountryItem, Object.assign({
|
|
12202
12248
|
margin: 0,
|
|
12203
12249
|
role: "DropDownItem",
|
|
@@ -12205,11 +12251,11 @@
|
|
|
12205
12251
|
fontWeight: "normal",
|
|
12206
12252
|
paddingVertical: 6,
|
|
12207
12253
|
paddingHorizontal: 12,
|
|
12208
|
-
onMouseEnter: handleHover,
|
|
12209
|
-
onMouseLeave: handleHover,
|
|
12210
12254
|
onClick: handleOptionClick,
|
|
12211
12255
|
fontSize: appStudio.Typography.fontSizes[size],
|
|
12212
|
-
|
|
12256
|
+
_hover: {
|
|
12257
|
+
opacity: 0.8
|
|
12258
|
+
}
|
|
12213
12259
|
}, views['text']), option);
|
|
12214
12260
|
};
|
|
12215
12261
|
var DropDown$1 = _ref4 => {
|
|
@@ -12288,7 +12334,6 @@
|
|
|
12288
12334
|
var IconColor = getColor('color.blueGray.700', {
|
|
12289
12335
|
themeMode: elementMode ? elementMode : themeMode
|
|
12290
12336
|
});
|
|
12291
|
-
var handleHover = () => setIsHovered(!isHovered);
|
|
12292
12337
|
var handleFocus = () => setIsFocused(true);
|
|
12293
12338
|
var handleCallback = option => {
|
|
12294
12339
|
setHide(!hide);
|
|
@@ -12345,13 +12390,13 @@
|
|
|
12345
12390
|
variant: variant,
|
|
12346
12391
|
value: value,
|
|
12347
12392
|
color: 'theme.primary',
|
|
12348
|
-
isHovered: isHovered,
|
|
12349
12393
|
isDisabled: isDisabled,
|
|
12350
12394
|
isReadOnly: isReadOnly,
|
|
12351
12395
|
isFocused: isFocused,
|
|
12352
12396
|
showLabel: showLabel,
|
|
12353
|
-
|
|
12354
|
-
|
|
12397
|
+
_hover: !isDisabled && !error ? {
|
|
12398
|
+
borderColor: 'theme.primary'
|
|
12399
|
+
} : undefined
|
|
12355
12400
|
}, /*#__PURE__*/React__default.createElement(FieldWrapper, null, showLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
12356
12401
|
htmlFor: id,
|
|
12357
12402
|
color: 'theme.primary',
|
|
@@ -12626,6 +12671,7 @@
|
|
|
12626
12671
|
relation
|
|
12627
12672
|
} = appStudio.useElementPosition();
|
|
12628
12673
|
var dropdownRef = React.useRef(null);
|
|
12674
|
+
var [isHovered, setIsHovered] = React.useState(false);
|
|
12629
12675
|
// Get optimal positioning style based on available space
|
|
12630
12676
|
var getDropdownStyle = () => {
|
|
12631
12677
|
if (!relation) {
|
|
@@ -12665,13 +12711,13 @@
|
|
|
12665
12711
|
var handleClickOutside = event => {
|
|
12666
12712
|
var path = event.composedPath();
|
|
12667
12713
|
var isOutside = !path.some(element => (element == null ? void 0 : element.id) === 'combobox-dropdown');
|
|
12668
|
-
if (isOutside) {
|
|
12714
|
+
if (isOutside && triggerRef.current && !triggerRef.current.contains(event.target)) {
|
|
12669
12715
|
setIsDropdownVisible(false);
|
|
12670
12716
|
}
|
|
12671
12717
|
};
|
|
12672
12718
|
document.addEventListener('mousedown', handleClickOutside);
|
|
12673
12719
|
return () => document.removeEventListener('mousedown', handleClickOutside);
|
|
12674
|
-
}, []);
|
|
12720
|
+
}, []); // triggerRef is stable
|
|
12675
12721
|
// Defines 'handleSearch' to filter items based on the user's query.
|
|
12676
12722
|
var handleSearch = query => {
|
|
12677
12723
|
setSearchQuery(query);
|
|
@@ -12700,71 +12746,102 @@
|
|
|
12700
12746
|
views: views == null ? void 0 : views.label,
|
|
12701
12747
|
htmlFor: props.id
|
|
12702
12748
|
}, label)), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
12703
|
-
position: "relative"
|
|
12704
|
-
|
|
12749
|
+
position: "relative",
|
|
12750
|
+
width: "100%"
|
|
12751
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
12705
12752
|
ref: triggerRef,
|
|
12753
|
+
onClick: () => setIsDropdownVisible(!isDropdownVisible),
|
|
12754
|
+
style: {
|
|
12755
|
+
width: '100%'
|
|
12756
|
+
}
|
|
12757
|
+
}, /*#__PURE__*/React__default.createElement(FieldContent, {
|
|
12758
|
+
isHovered: isHovered,
|
|
12759
|
+
isFocused: isDropdownVisible,
|
|
12760
|
+
onMouseEnter: () => setIsHovered(true),
|
|
12761
|
+
onMouseLeave: () => setIsHovered(false),
|
|
12706
12762
|
cursor: "pointer",
|
|
12707
|
-
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
|
|
12711
|
-
|
|
12712
|
-
borderRadius: "4px",
|
|
12713
|
-
justifyContent: "space-between",
|
|
12714
|
-
minWidth: 300,
|
|
12715
|
-
flexWrap: "nowrap"
|
|
12716
|
-
}, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
12717
|
-
gap: 15,
|
|
12763
|
+
views: {
|
|
12764
|
+
container: views == null ? void 0 : views.container
|
|
12765
|
+
}
|
|
12766
|
+
}, /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
12767
|
+
gap: 10,
|
|
12718
12768
|
alignItems: "center",
|
|
12719
|
-
|
|
12720
|
-
|
|
12721
|
-
onClick: () => setIsDropdownVisible(!isDropdownVisible)
|
|
12722
|
-
}, views == null ? void 0 : views.labelContainer), left, /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
12769
|
+
width: "100%"
|
|
12770
|
+
}, views == null ? void 0 : views.labelContainer), left, selectedItem.icon && selectedItem.label !== placeholder && (/*#__PURE__*/React__default.createElement(appStudio.View, null, selectedItem.icon)), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
12723
12771
|
weight: "medium",
|
|
12724
12772
|
flexGrow: 1,
|
|
12725
|
-
color:
|
|
12726
|
-
|
|
12773
|
+
color: selectedItem.label === placeholder ? 'color.gray.500' : 'color.gray.800',
|
|
12774
|
+
style: {
|
|
12775
|
+
whiteSpace: 'nowrap',
|
|
12776
|
+
overflow: 'hidden',
|
|
12777
|
+
textOverflow: 'ellipsis'
|
|
12778
|
+
}
|
|
12779
|
+
}, views == null ? void 0 : views.label), selectedItem.label)), /*#__PURE__*/React__default.createElement(appStudio.Horizontal, {
|
|
12780
|
+
gap: 5,
|
|
12781
|
+
alignItems: "center"
|
|
12782
|
+
}, right, /*#__PURE__*/React__default.createElement(ChevronIcon, {
|
|
12783
|
+
widthHeight: 16,
|
|
12784
|
+
orientation: isDropdownVisible ? 'up' : 'down',
|
|
12785
|
+
color: "color.gray.500"
|
|
12786
|
+
})))), isDropdownVisible && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
12727
12787
|
ref: dropdownRef,
|
|
12728
12788
|
id: "combobox-dropdown",
|
|
12729
12789
|
backgroundColor: "color.white",
|
|
12730
|
-
boxShadow: "rgba(0, 0, 0, 0.16) 0px
|
|
12790
|
+
boxShadow: "rgba(0, 0, 0, 0.16) 0px 4px 16px",
|
|
12731
12791
|
overflowY: "auto",
|
|
12732
|
-
borderRadius: "
|
|
12792
|
+
borderRadius: "8px",
|
|
12733
12793
|
style: getDropdownStyle()
|
|
12734
|
-
}, views == null ? void 0 : views.dropdown
|
|
12735
|
-
|
|
12736
|
-
|
|
12794
|
+
}, views == null ? void 0 : views.dropdown, {
|
|
12795
|
+
border: "1px solid #eee"
|
|
12796
|
+
}), searchEnabled && (/*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
12797
|
+
padding: "8px"
|
|
12798
|
+
}, /*#__PURE__*/React__default.createElement(TextFieldView, {
|
|
12799
|
+
id: props.id + "-search",
|
|
12800
|
+
name: props.name + "-search",
|
|
12737
12801
|
width: "100%",
|
|
12738
12802
|
type: "search",
|
|
12803
|
+
autoFocus: true,
|
|
12739
12804
|
value: searchQuery,
|
|
12740
12805
|
onChange: value => handleSearch(value),
|
|
12741
|
-
hint: placeholder,
|
|
12806
|
+
hint: placeholder || 'Search...',
|
|
12742
12807
|
isClearable: false,
|
|
12743
12808
|
left: /*#__PURE__*/React__default.createElement(SearchIcon, {
|
|
12744
|
-
widthHeight: 16
|
|
12809
|
+
widthHeight: 16,
|
|
12810
|
+
color: "color.gray.400"
|
|
12745
12811
|
}),
|
|
12746
12812
|
views: {
|
|
12747
12813
|
container: Object.assign({
|
|
12748
12814
|
width: '100%',
|
|
12749
|
-
padding: '
|
|
12750
|
-
|
|
12751
|
-
|
|
12815
|
+
padding: '0'
|
|
12816
|
+
}, views == null ? void 0 : views.text),
|
|
12817
|
+
field: {
|
|
12818
|
+
fontSize: '14px'
|
|
12819
|
+
}
|
|
12752
12820
|
}
|
|
12753
|
-
})), filteredItems.length > 0 && (/*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
12821
|
+
}))), filteredItems.length > 0 && (/*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
12754
12822
|
margin: 0,
|
|
12755
12823
|
padding: 4
|
|
12756
12824
|
}, filteredItems.map((item, index) => (/*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
12757
12825
|
justifyContent: "space-between",
|
|
12758
12826
|
key: item.value,
|
|
12759
|
-
padding: "12px",
|
|
12827
|
+
padding: "8px 12px",
|
|
12760
12828
|
cursor: "pointer",
|
|
12761
12829
|
borderRadius: 4,
|
|
12762
12830
|
backgroundColor: index === highlightedIndex ? 'color.gray.100' : 'transparent',
|
|
12763
12831
|
onMouseEnter: () => setHighlightedIndex(index),
|
|
12764
|
-
onClick: () => handleSelect(item)
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
|
|
12832
|
+
onClick: () => handleSelect(item),
|
|
12833
|
+
transition: "background-color 0.2s"
|
|
12834
|
+
}, views == null ? void 0 : views.item), /*#__PURE__*/React__default.createElement(appStudio.Text, {
|
|
12835
|
+
color: "color.gray.800"
|
|
12836
|
+
}, item.label), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, item.icon && item.icon, item.value === selectedItem.value && showTick && !item.icon && (/*#__PURE__*/React__default.createElement(TickIcon, {
|
|
12837
|
+
widthHeight: 16,
|
|
12838
|
+
color: "theme.primary"
|
|
12839
|
+
})))))))), filteredItems.length === 0 && (/*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
12840
|
+
padding: "12px"
|
|
12841
|
+
}, /*#__PURE__*/React__default.createElement(appStudio.Text, {
|
|
12842
|
+
color: "color.gray.500",
|
|
12843
|
+
align: "center"
|
|
12844
|
+
}, "No items found")))))));
|
|
12768
12845
|
};
|
|
12769
12846
|
|
|
12770
12847
|
var _excluded$C = ["id", "name", "items", "placeholder", "searchPlaceholder"];
|
|
@@ -13006,53 +13083,56 @@
|
|
|
13006
13083
|
isDisabled,
|
|
13007
13084
|
isReadOnly
|
|
13008
13085
|
} = _ref;
|
|
13086
|
+
var [isRemoveHovered, setIsRemoveHovered] = React__default.useState(false);
|
|
13009
13087
|
var {
|
|
13010
13088
|
getColor
|
|
13011
13089
|
} = appStudio.useTheme();
|
|
13012
13090
|
var chipSize = {
|
|
13013
13091
|
xs: {
|
|
13014
|
-
padding: '2px
|
|
13092
|
+
padding: '2px 8px',
|
|
13015
13093
|
fontSize: '10px',
|
|
13016
13094
|
iconSize: 10
|
|
13017
13095
|
},
|
|
13018
13096
|
sm: {
|
|
13019
|
-
padding: '4px
|
|
13097
|
+
padding: '4px 10px',
|
|
13020
13098
|
fontSize: '12px',
|
|
13021
13099
|
iconSize: 12
|
|
13022
13100
|
},
|
|
13023
13101
|
md: {
|
|
13024
|
-
padding: '6px
|
|
13102
|
+
padding: '6px 14px',
|
|
13025
13103
|
fontSize: '14px',
|
|
13026
13104
|
iconSize: 14
|
|
13027
13105
|
},
|
|
13028
13106
|
lg: {
|
|
13029
|
-
padding: '8px
|
|
13107
|
+
padding: '8px 16px',
|
|
13030
13108
|
fontSize: '16px',
|
|
13031
13109
|
iconSize: 16
|
|
13032
13110
|
},
|
|
13033
13111
|
xl: {
|
|
13034
|
-
padding: '10px
|
|
13112
|
+
padding: '10px 18px',
|
|
13035
13113
|
fontSize: '18px',
|
|
13036
13114
|
iconSize: 18
|
|
13037
13115
|
}
|
|
13038
13116
|
}[size] || {
|
|
13039
|
-
padding: '6px
|
|
13117
|
+
padding: '6px 14px',
|
|
13040
13118
|
fontSize: '14px',
|
|
13041
13119
|
iconSize: 14
|
|
13042
13120
|
};
|
|
13043
13121
|
return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
13044
13122
|
alignItems: "center",
|
|
13045
|
-
gap:
|
|
13123
|
+
gap: 6,
|
|
13046
13124
|
padding: chipSize.padding,
|
|
13047
|
-
backgroundColor: "
|
|
13125
|
+
backgroundColor: "white",
|
|
13048
13126
|
borderRadius: "16px",
|
|
13049
13127
|
border: "1px solid",
|
|
13050
|
-
borderColor: "color.
|
|
13051
|
-
|
|
13128
|
+
borderColor: "color.black.100",
|
|
13129
|
+
boxShadow: "0 1px 2px rgba(0,0,0,0.05)",
|
|
13130
|
+
transition: "all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
|
|
13052
13131
|
opacity: isDisabled ? 0.6 : 1,
|
|
13053
13132
|
_hover: !isDisabled && !isReadOnly ? {
|
|
13054
|
-
|
|
13055
|
-
|
|
13133
|
+
borderColor: 'color.gray.300',
|
|
13134
|
+
boxShadow: '0 4px 6px rgba(0,0,0,0.05)',
|
|
13135
|
+
transform: 'translateY(-1px)'
|
|
13056
13136
|
} : {}
|
|
13057
13137
|
}, views == null ? void 0 : views.tag), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
13058
13138
|
fontSize: chipSize.fontSize,
|
|
@@ -13064,13 +13144,19 @@
|
|
|
13064
13144
|
padding: "2px",
|
|
13065
13145
|
borderRadius: "50%",
|
|
13066
13146
|
transition: "all 0.2s ease",
|
|
13067
|
-
|
|
13068
|
-
|
|
13147
|
+
backgroundColor: isRemoveHovered ? 'color.red.50' : 'transparent',
|
|
13148
|
+
onMouseEnter: () => setIsRemoveHovered(true),
|
|
13149
|
+
onMouseLeave: () => setIsRemoveHovered(false),
|
|
13150
|
+
onClick: e => {
|
|
13151
|
+
e.stopPropagation();
|
|
13152
|
+
onRemove();
|
|
13069
13153
|
},
|
|
13070
|
-
|
|
13154
|
+
_hover: {
|
|
13155
|
+
backgroundColor: 'color.red.50'
|
|
13156
|
+
}
|
|
13071
13157
|
}, views == null ? void 0 : views.tagRemove), /*#__PURE__*/React__default.createElement(CloseIcon, {
|
|
13072
13158
|
widthHeight: chipSize.iconSize,
|
|
13073
|
-
color:
|
|
13159
|
+
color: isRemoveHovered ? 'color.red.500' : 'color.gray.400'
|
|
13074
13160
|
}))));
|
|
13075
13161
|
};
|
|
13076
13162
|
/**
|
|
@@ -13156,7 +13242,7 @@
|
|
|
13156
13242
|
views: views
|
|
13157
13243
|
}, label)), /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
13158
13244
|
alignItems: "center",
|
|
13159
|
-
gap:
|
|
13245
|
+
gap: 8,
|
|
13160
13246
|
flexWrap: "wrap",
|
|
13161
13247
|
width: "100%",
|
|
13162
13248
|
minHeight: appStudio.Typography.fontSizes[size],
|
|
@@ -16750,6 +16836,166 @@
|
|
|
16750
16836
|
};
|
|
16751
16837
|
FormikUploader.displayName = 'FormikUploader';
|
|
16752
16838
|
|
|
16839
|
+
// Initializes the custom hook 'useSelectorState' for managing the state of the Selector component
|
|
16840
|
+
var useSelectorState = _ref => {
|
|
16841
|
+
var {
|
|
16842
|
+
placeholder,
|
|
16843
|
+
isMulti,
|
|
16844
|
+
options,
|
|
16845
|
+
id = "selector-" + Math.random().toString(36).substr(2, 9)
|
|
16846
|
+
} = _ref;
|
|
16847
|
+
// Determines the default value based on the 'placeholder' and 'isMulti' props, setting to an empty array for multi-select or an empty string/single default option
|
|
16848
|
+
var defaultValue = placeholder ? isMulti ? [] : '' // If there's a placeholder, set default to empty array for multi-select or empty string for single select
|
|
16849
|
+
: Array.isArray(options) && options.length > 0 ? options[0].value : isMulti ? [] : ''; // If no placeholder, use the first option value if available, otherwise empty array for multi-select or empty string for single select
|
|
16850
|
+
// State hook for tracking mouse hover status over the Selector component
|
|
16851
|
+
var [isHovered, setIsHovered] = React__default.useState(false);
|
|
16852
|
+
// State hook for tracking focus status of the Selector input field
|
|
16853
|
+
var [isFocused, setIsFocused] = React__default.useState(false);
|
|
16854
|
+
// State hook for managing the value(s) selected by the user, initialized with the default value
|
|
16855
|
+
var [value, setValue] = React__default.useState(defaultValue);
|
|
16856
|
+
// State hook for keeping track of the currently highlighted index in the options list
|
|
16857
|
+
var [highlightedIndex, setHighlightedIndex] = React__default.useState(0);
|
|
16858
|
+
// State hook for managing visibility of the Selector dropdown, initially set to hidden
|
|
16859
|
+
var [hide, setHide] = React__default.useState(true);
|
|
16860
|
+
// Returns an object containing all stateful values and their associated setters to manage the Selector component's state
|
|
16861
|
+
return {
|
|
16862
|
+
id,
|
|
16863
|
+
value,
|
|
16864
|
+
setValue,
|
|
16865
|
+
hide,
|
|
16866
|
+
setHide,
|
|
16867
|
+
isHovered,
|
|
16868
|
+
setIsHovered,
|
|
16869
|
+
isFocused,
|
|
16870
|
+
setIsFocused,
|
|
16871
|
+
highlightedIndex,
|
|
16872
|
+
setHighlightedIndex
|
|
16873
|
+
};
|
|
16874
|
+
};
|
|
16875
|
+
|
|
16876
|
+
var _excluded$T = ["id", "name", "label", "value", "views", "options", "onChange", "setValue"];
|
|
16877
|
+
/**
|
|
16878
|
+
* SelectorView Component
|
|
16879
|
+
*
|
|
16880
|
+
* Renders a segmented control style selector.
|
|
16881
|
+
*/
|
|
16882
|
+
var SelectorView = _ref => {
|
|
16883
|
+
var {
|
|
16884
|
+
id,
|
|
16885
|
+
name,
|
|
16886
|
+
label,
|
|
16887
|
+
value,
|
|
16888
|
+
views = {},
|
|
16889
|
+
options = [],
|
|
16890
|
+
onChange = () => {},
|
|
16891
|
+
setValue = () => {}
|
|
16892
|
+
} = _ref,
|
|
16893
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$T);
|
|
16894
|
+
var {
|
|
16895
|
+
getColor
|
|
16896
|
+
} = appStudio.useTheme();
|
|
16897
|
+
var handleCallback = React.useCallback(option => {
|
|
16898
|
+
setValue(option.value);
|
|
16899
|
+
if (onChange) onChange(option.value);
|
|
16900
|
+
}, [setValue, onChange]);
|
|
16901
|
+
return /*#__PURE__*/React__default.createElement(FieldContainer, {
|
|
16902
|
+
id: id,
|
|
16903
|
+
width: "100%",
|
|
16904
|
+
views: views
|
|
16905
|
+
}, label && (/*#__PURE__*/React__default.createElement(appStudio.Horizontal, {
|
|
16906
|
+
fontSize: "10px",
|
|
16907
|
+
letterSpacing: "wider",
|
|
16908
|
+
color: "color.black.500",
|
|
16909
|
+
fontWeight: "bold",
|
|
16910
|
+
marginBottom: 12,
|
|
16911
|
+
alignItems: "center",
|
|
16912
|
+
gap: 6,
|
|
16913
|
+
//Text transform uppercase
|
|
16914
|
+
style: {
|
|
16915
|
+
textTransform: 'uppercase'
|
|
16916
|
+
}
|
|
16917
|
+
}, /*#__PURE__*/React__default.createElement(InfoIcon, {
|
|
16918
|
+
widthHeight: 14
|
|
16919
|
+
}), " ", /*#__PURE__*/React__default.createElement(appStudio.Text, null, label))), /*#__PURE__*/React__default.createElement(appStudio.Horizontal, {
|
|
16920
|
+
gap: 0
|
|
16921
|
+
}, options.map((option, index, arr) => {
|
|
16922
|
+
var isSelected = value === option.value;
|
|
16923
|
+
var borderColor = getColor('color.gray.200');
|
|
16924
|
+
var textColor = getColor('color.gray.500');
|
|
16925
|
+
var bgColor = 'transparent';
|
|
16926
|
+
if (isSelected) {
|
|
16927
|
+
if (option.color) {
|
|
16928
|
+
// We need a way to get related colors (50, 500, 700 etc) from a base color if we want full fidelity.
|
|
16929
|
+
// But passing full style strings is easier.
|
|
16930
|
+
borderColor = getColor(option.color);
|
|
16931
|
+
textColor = getColor(option.color);
|
|
16932
|
+
// Try to approximate background color if possible, or just use white/transparent.
|
|
16933
|
+
// Simplification: if color provided, use it for border/text.
|
|
16934
|
+
// Background is hard to derive without more specific props.
|
|
16935
|
+
// Let's try to use a very light opacity of the color for background.
|
|
16936
|
+
bgColor = 'rgba(0,0,0,0.05)'; // Generic active background
|
|
16937
|
+
} else {
|
|
16938
|
+
// Default active style
|
|
16939
|
+
var primary = getColor('theme.primary');
|
|
16940
|
+
borderColor = primary;
|
|
16941
|
+
textColor = primary;
|
|
16942
|
+
bgColor = 'color.gray.50';
|
|
16943
|
+
}
|
|
16944
|
+
// Specific overrides based on user request "ComplexitySelector" style
|
|
16945
|
+
// If the values match 'High', 'Medium', 'Low' we can hardcode for *demo* fidelity if generic logic fails.
|
|
16946
|
+
// But let's try to make it generic.
|
|
16947
|
+
// The user simply pasted code.
|
|
16948
|
+
if (option.color) {
|
|
16949
|
+
// Fallback for customized options
|
|
16950
|
+
borderColor = getColor(option.color);
|
|
16951
|
+
textColor = getColor(option.color);
|
|
16952
|
+
bgColor = 'transparent';
|
|
16953
|
+
} else {
|
|
16954
|
+
// Default fallback
|
|
16955
|
+
borderColor = getColor('theme.primary');
|
|
16956
|
+
textColor = getColor('theme.primary');
|
|
16957
|
+
bgColor = getColor('color.blue.50');
|
|
16958
|
+
}
|
|
16959
|
+
}
|
|
16960
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
16961
|
+
key: option.value,
|
|
16962
|
+
onClick: () => handleCallback(option),
|
|
16963
|
+
flex: 1,
|
|
16964
|
+
paddingVertical: 6,
|
|
16965
|
+
fontSize: "12px",
|
|
16966
|
+
fontWeight: isSelected ? 'bold' : 'normal',
|
|
16967
|
+
style: {
|
|
16968
|
+
borderTop: "1px solid " + (isSelected ? borderColor : getColor('color.gray.200')),
|
|
16969
|
+
borderBottom: "1px solid " + (isSelected ? borderColor : getColor('color.gray.200')),
|
|
16970
|
+
borderLeft: "1px solid " + (isSelected ? borderColor : getColor('color.gray.200')),
|
|
16971
|
+
borderRight: index === arr.length - 1 || isSelected ? "1px solid " + (isSelected ? borderColor : getColor('color.gray.200')) : 'none',
|
|
16972
|
+
backgroundColor: bgColor,
|
|
16973
|
+
color: textColor,
|
|
16974
|
+
borderRadius: index === 0 ? '6px 0 0 6px' : index === arr.length - 1 ? '0 6px 6px 0' : '0',
|
|
16975
|
+
zIndex: isSelected ? 1 : 0,
|
|
16976
|
+
boxShadow: 'none'
|
|
16977
|
+
}
|
|
16978
|
+
}, views.item), option.label);
|
|
16979
|
+
})), /*#__PURE__*/React__default.createElement("input", {
|
|
16980
|
+
type: "hidden",
|
|
16981
|
+
id: id,
|
|
16982
|
+
name: name,
|
|
16983
|
+
value: Array.isArray(value) ? value.join(',') : value,
|
|
16984
|
+
onChange: () => {}
|
|
16985
|
+
}));
|
|
16986
|
+
};
|
|
16987
|
+
|
|
16988
|
+
var SelectorComponent = props => {
|
|
16989
|
+
var formProps = useFormikInput(props);
|
|
16990
|
+
formProps.selected = formProps.value;
|
|
16991
|
+
var selectorStates = useSelectorState(props);
|
|
16992
|
+
return /*#__PURE__*/React__default.createElement(SelectorView, Object.assign({}, selectorStates, formProps));
|
|
16993
|
+
};
|
|
16994
|
+
/**
|
|
16995
|
+
* Selector provides a dropdown list of options for the user to choose from.
|
|
16996
|
+
*/
|
|
16997
|
+
var FormikSelector = SelectorComponent;
|
|
16998
|
+
|
|
16753
16999
|
var AttachmentPreview = _ref => {
|
|
16754
17000
|
var {
|
|
16755
17001
|
files,
|
|
@@ -17096,7 +17342,7 @@
|
|
|
17096
17342
|
}
|
|
17097
17343
|
};
|
|
17098
17344
|
|
|
17099
|
-
var _excluded$
|
|
17345
|
+
var _excluded$U = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
17100
17346
|
_excluded2$e = ["children", "shadow", "isFullScreen", "shape", "views", "isOpen"],
|
|
17101
17347
|
_excluded3$9 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
17102
17348
|
_excluded4$8 = ["children", "views"],
|
|
@@ -17111,7 +17357,7 @@
|
|
|
17111
17357
|
position = 'center',
|
|
17112
17358
|
views
|
|
17113
17359
|
} = _ref,
|
|
17114
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
17360
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
|
|
17115
17361
|
var handleClick = () => {
|
|
17116
17362
|
if (!isClosePrevented) onClose();
|
|
17117
17363
|
};
|
|
@@ -17359,7 +17605,7 @@
|
|
|
17359
17605
|
}
|
|
17360
17606
|
};
|
|
17361
17607
|
|
|
17362
|
-
var _excluded$
|
|
17608
|
+
var _excluded$V = ["isOpen", "onClose", "isClosePrevented", "blur", "children"],
|
|
17363
17609
|
_excluded2$f = ["placement", "size", "children"],
|
|
17364
17610
|
_excluded3$a = ["children", "onClose", "buttonPosition"],
|
|
17365
17611
|
_excluded4$9 = ["children"],
|
|
@@ -17372,7 +17618,7 @@
|
|
|
17372
17618
|
blur,
|
|
17373
17619
|
children
|
|
17374
17620
|
} = _ref,
|
|
17375
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
17621
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$V);
|
|
17376
17622
|
var handleClick = () => {
|
|
17377
17623
|
if (!isClosePrevented) onClose();
|
|
17378
17624
|
};
|
|
@@ -17484,7 +17730,7 @@
|
|
|
17484
17730
|
}, props), children);
|
|
17485
17731
|
};
|
|
17486
17732
|
|
|
17487
|
-
var _excluded$
|
|
17733
|
+
var _excluded$W = ["isOpen", "onClose", "placement", "size", "isClosePrevented", "children"];
|
|
17488
17734
|
/**
|
|
17489
17735
|
* A drawer is a panel that slides out from the edge of the screen.
|
|
17490
17736
|
* It can be useful when you need users to complete a task or view some details without leaving the current page.
|
|
@@ -17498,7 +17744,7 @@
|
|
|
17498
17744
|
isClosePrevented,
|
|
17499
17745
|
children
|
|
17500
17746
|
} = _ref,
|
|
17501
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
17747
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
|
|
17502
17748
|
var transformStyle = isOpen ? {} : {
|
|
17503
17749
|
transform: placement === 'left' || placement === 'right' ? "translateX(" + (placement === 'left' ? '-100%' : '100%') + ")" : "translateY(" + (placement === 'top' ? '-100%' : '100%') + ")"
|
|
17504
17750
|
};
|
|
@@ -17668,7 +17914,7 @@
|
|
|
17668
17914
|
}
|
|
17669
17915
|
};
|
|
17670
17916
|
|
|
17671
|
-
var _excluded$
|
|
17917
|
+
var _excluded$X = ["href", "children", "views"];
|
|
17672
17918
|
// Create context for the NavigationMenu
|
|
17673
17919
|
var NavigationMenuContext = /*#__PURE__*/React.createContext({
|
|
17674
17920
|
activeItemId: null,
|
|
@@ -18044,7 +18290,7 @@
|
|
|
18044
18290
|
children,
|
|
18045
18291
|
views
|
|
18046
18292
|
} = _ref6,
|
|
18047
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded$
|
|
18293
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded$X);
|
|
18048
18294
|
var {
|
|
18049
18295
|
itemValue,
|
|
18050
18296
|
isDisabled
|
|
@@ -18111,7 +18357,7 @@
|
|
|
18111
18357
|
})))));
|
|
18112
18358
|
};
|
|
18113
18359
|
|
|
18114
|
-
var _excluded$
|
|
18360
|
+
var _excluded$Y = ["items", "children", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
|
|
18115
18361
|
/**
|
|
18116
18362
|
* NavigationMenu component for creating navigation menus with optional nested items.
|
|
18117
18363
|
* Supports both data-driven approach (with items prop) and compound component pattern.
|
|
@@ -18128,7 +18374,7 @@
|
|
|
18128
18374
|
onItemActivate,
|
|
18129
18375
|
views
|
|
18130
18376
|
} = _ref,
|
|
18131
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
18377
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
|
|
18132
18378
|
var {
|
|
18133
18379
|
activeItemId,
|
|
18134
18380
|
setActiveItemId,
|
|
@@ -18941,7 +19187,7 @@
|
|
|
18941
19187
|
})
|
|
18942
19188
|
};
|
|
18943
19189
|
|
|
18944
|
-
var _excluded$
|
|
19190
|
+
var _excluded$Z = ["text", "typingSpeed", "pauseTime", "onComplete", "showCursor", "cursorColor", "textStyle", "as"];
|
|
18945
19191
|
/**
|
|
18946
19192
|
* A component that creates a typewriter effect for text
|
|
18947
19193
|
*/
|
|
@@ -18955,7 +19201,7 @@
|
|
|
18955
19201
|
cursorColor = 'currentColor',
|
|
18956
19202
|
textStyle
|
|
18957
19203
|
} = _ref,
|
|
18958
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
19204
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$Z);
|
|
18959
19205
|
// Convert text to array if it's a string
|
|
18960
19206
|
var textArray = Array.isArray(text) ? text : [text];
|
|
18961
19207
|
// State for the currently displayed text
|
|
@@ -19022,7 +19268,7 @@
|
|
|
19022
19268
|
}))))));
|
|
19023
19269
|
};
|
|
19024
19270
|
|
|
19025
|
-
var _excluded$
|
|
19271
|
+
var _excluded$_ = ["text", "duration", "direction", "stagger", "sequential", "textStyle", "as", "wordProps"],
|
|
19026
19272
|
_excluded2$g = ["style"];
|
|
19027
19273
|
// CSS keyframes injection - done once
|
|
19028
19274
|
var KEYFRAMES_ID = 'slide-effect-keyframes';
|
|
@@ -19044,7 +19290,7 @@
|
|
|
19044
19290
|
textStyle,
|
|
19045
19291
|
wordProps
|
|
19046
19292
|
} = _ref,
|
|
19047
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
19293
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
|
|
19048
19294
|
var [displayedText, setDisplayedText] = React.useState(text);
|
|
19049
19295
|
var [phase, setPhase] = React.useState('entering');
|
|
19050
19296
|
var [animKey, setAnimKey] = React.useState(0);
|
|
@@ -19174,7 +19420,7 @@
|
|
|
19174
19420
|
})));
|
|
19175
19421
|
};
|
|
19176
19422
|
|
|
19177
|
-
var _excluded
|
|
19423
|
+
var _excluded$$ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "responsive", "centered", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential"];
|
|
19178
19424
|
function escapeRegExp(string) {
|
|
19179
19425
|
return string.replace(/[.*+?^${}()|[\\]\\/g, '\\$&');
|
|
19180
19426
|
}
|
|
@@ -19200,7 +19446,7 @@
|
|
|
19200
19446
|
highlightSlideStagger = 50,
|
|
19201
19447
|
highlightSlideSequential = true
|
|
19202
19448
|
} = _ref,
|
|
19203
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded
|
|
19449
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$$);
|
|
19204
19450
|
var {
|
|
19205
19451
|
ref,
|
|
19206
19452
|
inView
|
|
@@ -19499,7 +19745,7 @@
|
|
|
19499
19745
|
}
|
|
19500
19746
|
});
|
|
19501
19747
|
|
|
19502
|
-
var _excluded
|
|
19748
|
+
var _excluded$10 = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views", "backgroundColor", "color", "themeMode"];
|
|
19503
19749
|
var ToggleView = _ref => {
|
|
19504
19750
|
var _ref2;
|
|
19505
19751
|
var {
|
|
@@ -19519,7 +19765,7 @@
|
|
|
19519
19765
|
// 2nd candidate for main color
|
|
19520
19766
|
themeMode: elementMode
|
|
19521
19767
|
} = _ref,
|
|
19522
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded
|
|
19768
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$10);
|
|
19523
19769
|
/* theme helpers */
|
|
19524
19770
|
var {
|
|
19525
19771
|
getColor,
|
|
@@ -19563,7 +19809,7 @@
|
|
|
19563
19809
|
}, props, views == null ? void 0 : views.container), children);
|
|
19564
19810
|
};
|
|
19565
19811
|
|
|
19566
|
-
var _excluded$
|
|
19812
|
+
var _excluded$11 = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
19567
19813
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
19568
19814
|
var ToggleComponent = _ref => {
|
|
19569
19815
|
var {
|
|
@@ -19575,7 +19821,7 @@
|
|
|
19575
19821
|
isToggled = false,
|
|
19576
19822
|
onToggle
|
|
19577
19823
|
} = _ref,
|
|
19578
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
19824
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$11);
|
|
19579
19825
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
19580
19826
|
var {
|
|
19581
19827
|
isHovered,
|
|
@@ -19795,8 +20041,7 @@
|
|
|
19795
20041
|
onTouchStart: e => handleDragStart(e, index),
|
|
19796
20042
|
position: "relative",
|
|
19797
20043
|
cursor: "grab",
|
|
19798
|
-
transition: "transform 0.2s"
|
|
19799
|
-
backgroundColor: draggedIndex === index ? 'color.gray.100' : 'transparent'
|
|
20044
|
+
transition: "transform 0.2s"
|
|
19800
20045
|
}, itemProps, views == null ? void 0 : views.item), renderItem ? renderItem(item, index) : item))));
|
|
19801
20046
|
};
|
|
19802
20047
|
|
|
@@ -19910,7 +20155,7 @@
|
|
|
19910
20155
|
}
|
|
19911
20156
|
};
|
|
19912
20157
|
|
|
19913
|
-
var _excluded$
|
|
20158
|
+
var _excluded$12 = ["children", "views"],
|
|
19914
20159
|
_excluded2$h = ["items", "side", "align", "views"],
|
|
19915
20160
|
_excluded3$b = ["item", "views"],
|
|
19916
20161
|
_excluded4$a = ["views"],
|
|
@@ -19951,7 +20196,7 @@
|
|
|
19951
20196
|
children,
|
|
19952
20197
|
views
|
|
19953
20198
|
} = _ref2,
|
|
19954
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
20199
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$12);
|
|
19955
20200
|
var {
|
|
19956
20201
|
isOpen,
|
|
19957
20202
|
setIsOpen,
|
|
@@ -20204,7 +20449,7 @@
|
|
|
20204
20449
|
}));
|
|
20205
20450
|
};
|
|
20206
20451
|
|
|
20207
|
-
var _excluded$
|
|
20452
|
+
var _excluded$13 = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
|
|
20208
20453
|
/**
|
|
20209
20454
|
* DropdownMenu component for displaying a menu when clicking on a trigger element.
|
|
20210
20455
|
*/
|
|
@@ -20219,7 +20464,7 @@
|
|
|
20219
20464
|
defaultOpen = false,
|
|
20220
20465
|
views
|
|
20221
20466
|
} = _ref,
|
|
20222
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
20467
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$13);
|
|
20223
20468
|
var {
|
|
20224
20469
|
isOpen,
|
|
20225
20470
|
setIsOpen,
|
|
@@ -20633,7 +20878,7 @@
|
|
|
20633
20878
|
category: 'neutral'
|
|
20634
20879
|
}];
|
|
20635
20880
|
|
|
20636
|
-
var _excluded$
|
|
20881
|
+
var _excluded$14 = ["id", "name", "label", "placeholder", "helperText", "views", "size", "shape", "variant", "error", "isDisabled", "isReadOnly", "predefinedColors", "showCustomInput", "showRecentColors", "isOpen", "selectedColor", "recentColors", "customColor", "handleToggle", "handleColorSelect", "handleCustomColorChange", "handleCustomColorSubmit", "triggerRef", "dropdownRef"];
|
|
20637
20882
|
var ColorPickerView = _ref => {
|
|
20638
20883
|
var {
|
|
20639
20884
|
// Basic props
|
|
@@ -20668,7 +20913,7 @@
|
|
|
20668
20913
|
dropdownRef
|
|
20669
20914
|
// Other props
|
|
20670
20915
|
} = _ref,
|
|
20671
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
20916
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$14);
|
|
20672
20917
|
var {
|
|
20673
20918
|
getColor
|
|
20674
20919
|
} = appStudio.useTheme();
|
|
@@ -20871,7 +21116,8 @@
|
|
|
20871
21116
|
gap: '4px',
|
|
20872
21117
|
maxHeight: '240px',
|
|
20873
21118
|
overflowY: 'auto',
|
|
20874
|
-
padding: '4px'
|
|
21119
|
+
padding: '4px',
|
|
21120
|
+
color: 'color.black'
|
|
20875
21121
|
},
|
|
20876
21122
|
emoji: {
|
|
20877
21123
|
width: '32px',
|
|
@@ -22999,7 +23245,7 @@
|
|
|
22999
23245
|
};
|
|
23000
23246
|
};
|
|
23001
23247
|
|
|
23002
|
-
var _excluded$
|
|
23248
|
+
var _excluded$15 = ["id", "name", "label", "placeholder", "helperText", "views", "size", "shape", "variant", "error", "isDisabled", "isReadOnly", "showSearch", "showCategories", "showRecentEmojis", "enabledCategories", "isOpen", "selectedEmoji", "recentEmojis", "searchQuery", "activeCategory", "filteredEmojis", "handleToggle", "handleEmojiSelect", "handleSearchChange", "handleCategoryChange", "triggerRef", "dropdownRef"];
|
|
23003
23249
|
var EmojiPickerView = _ref => {
|
|
23004
23250
|
var {
|
|
23005
23251
|
// Basic props
|
|
@@ -23037,7 +23283,7 @@
|
|
|
23037
23283
|
dropdownRef
|
|
23038
23284
|
// Other props
|
|
23039
23285
|
} = _ref,
|
|
23040
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
23286
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$15);
|
|
23041
23287
|
var {
|
|
23042
23288
|
getColor
|
|
23043
23289
|
} = appStudio.useTheme();
|
|
@@ -23099,7 +23345,8 @@
|
|
|
23099
23345
|
title: emoji.name,
|
|
23100
23346
|
_hover: {
|
|
23101
23347
|
backgroundColor: 'color.gray.100'
|
|
23102
|
-
}
|
|
23348
|
+
},
|
|
23349
|
+
color: "color.gray.800"
|
|
23103
23350
|
}, views == null ? void 0 : views.emoji), emoji.emoji))) : (/*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
23104
23351
|
gridColumn: "1 / -1",
|
|
23105
23352
|
padding: "20px",
|
|
@@ -23224,7 +23471,7 @@
|
|
|
23224
23471
|
}
|
|
23225
23472
|
};
|
|
23226
23473
|
|
|
23227
|
-
var _excluded$
|
|
23474
|
+
var _excluded$16 = ["children", "orientation", "size", "variant", "views"];
|
|
23228
23475
|
// Create context for the Menubar
|
|
23229
23476
|
var MenubarContext = /*#__PURE__*/React.createContext({
|
|
23230
23477
|
activeMenuId: null,
|
|
@@ -23261,7 +23508,7 @@
|
|
|
23261
23508
|
variant = 'default',
|
|
23262
23509
|
views
|
|
23263
23510
|
} = _ref2,
|
|
23264
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
23511
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$16);
|
|
23265
23512
|
var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
|
|
23266
23513
|
return /*#__PURE__*/React__default.createElement(Container, Object.assign({
|
|
23267
23514
|
role: "menubar",
|
|
@@ -23581,7 +23828,7 @@
|
|
|
23581
23828
|
})))))));
|
|
23582
23829
|
};
|
|
23583
23830
|
|
|
23584
|
-
var _excluded$
|
|
23831
|
+
var _excluded$17 = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
|
|
23585
23832
|
/**
|
|
23586
23833
|
* Menubar component for creating horizontal or vertical menu bars with dropdown menus.
|
|
23587
23834
|
*/
|
|
@@ -23595,7 +23842,7 @@
|
|
|
23595
23842
|
defaultOpenMenuId = null,
|
|
23596
23843
|
views
|
|
23597
23844
|
} = _ref,
|
|
23598
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
23845
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$17);
|
|
23599
23846
|
var {
|
|
23600
23847
|
activeMenuId,
|
|
23601
23848
|
setActiveMenuId,
|
|
@@ -23777,7 +24024,7 @@
|
|
|
23777
24024
|
}
|
|
23778
24025
|
};
|
|
23779
24026
|
|
|
23780
|
-
var _excluded$
|
|
24027
|
+
var _excluded$18 = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
|
|
23781
24028
|
var PaginationView = _ref => {
|
|
23782
24029
|
var {
|
|
23783
24030
|
currentPage,
|
|
@@ -23808,7 +24055,7 @@
|
|
|
23808
24055
|
visiblePageNumbers,
|
|
23809
24056
|
views
|
|
23810
24057
|
} = _ref,
|
|
23811
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24058
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$18);
|
|
23812
24059
|
var handlePageChange = page => {
|
|
23813
24060
|
if (page < 1 || page > totalPages || page === currentPage) {
|
|
23814
24061
|
return;
|
|
@@ -23927,7 +24174,7 @@
|
|
|
23927
24174
|
}, option.label))))));
|
|
23928
24175
|
};
|
|
23929
24176
|
|
|
23930
|
-
var _excluded$
|
|
24177
|
+
var _excluded$19 = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
|
|
23931
24178
|
/**
|
|
23932
24179
|
* Pagination component for navigating through pages of content.
|
|
23933
24180
|
*/
|
|
@@ -23948,7 +24195,7 @@
|
|
|
23948
24195
|
shape = 'rounded',
|
|
23949
24196
|
views
|
|
23950
24197
|
} = _ref,
|
|
23951
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24198
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$19);
|
|
23952
24199
|
var {
|
|
23953
24200
|
visiblePageNumbers
|
|
23954
24201
|
} = usePaginationState(currentPage, totalPages, maxPageButtons);
|
|
@@ -23972,7 +24219,7 @@
|
|
|
23972
24219
|
};
|
|
23973
24220
|
var Pagination = PaginationComponent;
|
|
23974
24221
|
|
|
23975
|
-
var _excluded$
|
|
24222
|
+
var _excluded$1a = ["value", "max", "color", "backgroundColor", "height", "radius", "views", "themeMode"];
|
|
23976
24223
|
var ProgressBarView = _ref => {
|
|
23977
24224
|
var {
|
|
23978
24225
|
value = 0,
|
|
@@ -23984,7 +24231,7 @@
|
|
|
23984
24231
|
views,
|
|
23985
24232
|
themeMode: elementMode
|
|
23986
24233
|
} = _ref,
|
|
23987
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24234
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
|
|
23988
24235
|
var {
|
|
23989
24236
|
getColor,
|
|
23990
24237
|
themeMode
|
|
@@ -24074,7 +24321,7 @@
|
|
|
24074
24321
|
}
|
|
24075
24322
|
};
|
|
24076
24323
|
|
|
24077
|
-
var _excluded$
|
|
24324
|
+
var _excluded$1b = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views", "themeMode"];
|
|
24078
24325
|
var SeparatorView = _ref => {
|
|
24079
24326
|
var {
|
|
24080
24327
|
orientation = 'horizontal',
|
|
@@ -24086,7 +24333,7 @@
|
|
|
24086
24333
|
decorative = false,
|
|
24087
24334
|
views
|
|
24088
24335
|
} = _ref,
|
|
24089
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24336
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1b);
|
|
24090
24337
|
// Access theme if needed for future enhancements
|
|
24091
24338
|
var {
|
|
24092
24339
|
themeMode
|
|
@@ -24154,7 +24401,7 @@
|
|
|
24154
24401
|
var Separator = SeparatorComponent;
|
|
24155
24402
|
var Divider = SeparatorComponent;
|
|
24156
24403
|
|
|
24157
|
-
var _excluded$
|
|
24404
|
+
var _excluded$1c = ["isSupported", "isSharing", "onShare", "label", "children", "icon", "size", "isDisabled", "isLoading", "iconPosition", "disableWhenUnsupported"];
|
|
24158
24405
|
var ICON_SIZE_MAP = {
|
|
24159
24406
|
xs: 12,
|
|
24160
24407
|
sm: 14,
|
|
@@ -24177,7 +24424,7 @@
|
|
|
24177
24424
|
iconPosition,
|
|
24178
24425
|
disableWhenUnsupported = true
|
|
24179
24426
|
} = _ref,
|
|
24180
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24427
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$1c);
|
|
24181
24428
|
var resolvedSize = size != null ? size : 'md';
|
|
24182
24429
|
var resolvedIcon = icon != null ? icon : (/*#__PURE__*/React__default.createElement(ShareIcon, {
|
|
24183
24430
|
widthHeight: ICON_SIZE_MAP[resolvedSize],
|
|
@@ -24279,14 +24526,14 @@
|
|
|
24279
24526
|
};
|
|
24280
24527
|
};
|
|
24281
24528
|
|
|
24282
|
-
var _excluded$
|
|
24529
|
+
var _excluded$1d = ["shareData", "onShareStart", "onShareSuccess", "onShareCancel", "onShareError", "onUnsupported", "onClick"];
|
|
24283
24530
|
var ShareButtonComponent = props => {
|
|
24284
24531
|
var {
|
|
24285
24532
|
isSupported,
|
|
24286
24533
|
isSharing,
|
|
24287
24534
|
handleShare
|
|
24288
24535
|
} = useShareButton(props);
|
|
24289
|
-
var viewProps = _objectWithoutPropertiesLoose(props, _excluded$
|
|
24536
|
+
var viewProps = _objectWithoutPropertiesLoose(props, _excluded$1d);
|
|
24290
24537
|
return /*#__PURE__*/React__default.createElement(ShareButtonView, Object.assign({}, viewProps, {
|
|
24291
24538
|
isSupported: isSupported,
|
|
24292
24539
|
isSharing: isSharing,
|
|
@@ -24340,7 +24587,7 @@
|
|
|
24340
24587
|
};
|
|
24341
24588
|
};
|
|
24342
24589
|
|
|
24343
|
-
var _excluded$
|
|
24590
|
+
var _excluded$1e = ["label", "status", "views", "themeMode"];
|
|
24344
24591
|
var StatusIndicatorView = _ref => {
|
|
24345
24592
|
var {
|
|
24346
24593
|
label,
|
|
@@ -24348,7 +24595,7 @@
|
|
|
24348
24595
|
views,
|
|
24349
24596
|
themeMode: elementMode
|
|
24350
24597
|
} = _ref,
|
|
24351
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24598
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
|
|
24352
24599
|
var {
|
|
24353
24600
|
themeMode
|
|
24354
24601
|
} = appStudio.useTheme();
|
|
@@ -24531,7 +24778,7 @@
|
|
|
24531
24778
|
bounce: 'width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55)'
|
|
24532
24779
|
};
|
|
24533
24780
|
|
|
24534
|
-
var _excluded$
|
|
24781
|
+
var _excluded$1f = ["children", "showToggleButton", "views"],
|
|
24535
24782
|
_excluded2$i = ["children", "views"],
|
|
24536
24783
|
_excluded3$c = ["children", "views"],
|
|
24537
24784
|
_excluded4$b = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
@@ -24564,7 +24811,7 @@
|
|
|
24564
24811
|
showToggleButton = true,
|
|
24565
24812
|
views
|
|
24566
24813
|
} = _ref2,
|
|
24567
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
24814
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1f);
|
|
24568
24815
|
var {
|
|
24569
24816
|
isExpanded,
|
|
24570
24817
|
toggleExpanded,
|
|
@@ -24719,7 +24966,7 @@
|
|
|
24719
24966
|
}))));
|
|
24720
24967
|
};
|
|
24721
24968
|
|
|
24722
|
-
var _excluded$
|
|
24969
|
+
var _excluded$1g = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
|
|
24723
24970
|
/**
|
|
24724
24971
|
* Sidebar component for creating collapsible, themeable and customizable sidebars.
|
|
24725
24972
|
*/
|
|
@@ -24741,7 +24988,7 @@
|
|
|
24741
24988
|
breakpointBehavior = 'overlay',
|
|
24742
24989
|
views
|
|
24743
24990
|
} = _ref,
|
|
24744
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24991
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
|
|
24745
24992
|
var {
|
|
24746
24993
|
isExpanded,
|
|
24747
24994
|
toggleExpanded,
|
|
@@ -25206,7 +25453,7 @@
|
|
|
25206
25453
|
}
|
|
25207
25454
|
};
|
|
25208
25455
|
|
|
25209
|
-
var _excluded$
|
|
25456
|
+
var _excluded$1h = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
25210
25457
|
_excluded2$j = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
25211
25458
|
_excluded3$d = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
25212
25459
|
// Create context for the Resizable component
|
|
@@ -25251,7 +25498,7 @@
|
|
|
25251
25498
|
onCollapseChange,
|
|
25252
25499
|
views
|
|
25253
25500
|
} = _ref2,
|
|
25254
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
25501
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1h);
|
|
25255
25502
|
var {
|
|
25256
25503
|
orientation,
|
|
25257
25504
|
registerPanel,
|
|
@@ -25466,7 +25713,7 @@
|
|
|
25466
25713
|
}, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
|
|
25467
25714
|
};
|
|
25468
25715
|
|
|
25469
|
-
var _excluded$
|
|
25716
|
+
var _excluded$1i = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
|
|
25470
25717
|
/**
|
|
25471
25718
|
* Resizable component for creating resizable panel groups and layouts.
|
|
25472
25719
|
*/
|
|
@@ -25486,7 +25733,7 @@
|
|
|
25486
25733
|
keyboardResizeBy = 10,
|
|
25487
25734
|
views
|
|
25488
25735
|
} = _ref,
|
|
25489
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
25736
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1i);
|
|
25490
25737
|
var {
|
|
25491
25738
|
isResizing,
|
|
25492
25739
|
setIsResizing,
|
|
@@ -26257,7 +26504,7 @@
|
|
|
26257
26504
|
color: 'color.gray.500'
|
|
26258
26505
|
};
|
|
26259
26506
|
|
|
26260
|
-
var _excluded$
|
|
26507
|
+
var _excluded$1j = ["value", "onValueChange", "placeholder", "views"],
|
|
26261
26508
|
_excluded2$k = ["children", "views"],
|
|
26262
26509
|
_excluded3$e = ["heading", "children", "views"],
|
|
26263
26510
|
_excluded4$c = ["item", "selected", "onSelect", "views"],
|
|
@@ -26289,7 +26536,7 @@
|
|
|
26289
26536
|
placeholder = 'Type a command or search...',
|
|
26290
26537
|
views
|
|
26291
26538
|
} = _ref2,
|
|
26292
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
26539
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1j);
|
|
26293
26540
|
var inputRef = React.useRef(null);
|
|
26294
26541
|
// Focus input when component mounts
|
|
26295
26542
|
React__default.useEffect(() => {
|
|
@@ -26472,7 +26719,7 @@
|
|
|
26472
26719
|
})))), footer && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
|
|
26473
26720
|
};
|
|
26474
26721
|
|
|
26475
|
-
var _excluded$
|
|
26722
|
+
var _excluded$1k = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
|
|
26476
26723
|
/**
|
|
26477
26724
|
* Command component for displaying a command palette with search functionality.
|
|
26478
26725
|
*/
|
|
@@ -26490,7 +26737,7 @@
|
|
|
26490
26737
|
footer,
|
|
26491
26738
|
views
|
|
26492
26739
|
} = _ref,
|
|
26493
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
26740
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1k);
|
|
26494
26741
|
var {
|
|
26495
26742
|
search,
|
|
26496
26743
|
setSearch,
|
|
@@ -26727,7 +26974,7 @@
|
|
|
26727
26974
|
}
|
|
26728
26975
|
};
|
|
26729
26976
|
|
|
26730
|
-
var _excluded$
|
|
26977
|
+
var _excluded$1l = ["children", "views", "asChild"],
|
|
26731
26978
|
_excluded2$l = ["children", "views"],
|
|
26732
26979
|
_excluded3$f = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
26733
26980
|
// Create context for the Tooltip
|
|
@@ -26763,7 +27010,7 @@
|
|
|
26763
27010
|
views,
|
|
26764
27011
|
asChild = false
|
|
26765
27012
|
} = _ref2,
|
|
26766
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
27013
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1l);
|
|
26767
27014
|
var {
|
|
26768
27015
|
openTooltip,
|
|
26769
27016
|
closeTooltip,
|
|
@@ -26947,7 +27194,7 @@
|
|
|
26947
27194
|
}, TooltipSizes[size], TooltipVariants[variant], views == null ? void 0 : views.content), typeof content === 'string' ? (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, views == null ? void 0 : views.text), content)) : content, showArrow && /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, arrowStyles, views == null ? void 0 : views.arrow)))));
|
|
26948
27195
|
};
|
|
26949
27196
|
|
|
26950
|
-
var _excluded$
|
|
27197
|
+
var _excluded$1m = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
|
|
26951
27198
|
/**
|
|
26952
27199
|
* Tooltip component for displaying additional information when hovering over an element.
|
|
26953
27200
|
* Supports configurable positions, delays, and styling.
|
|
@@ -26967,7 +27214,7 @@
|
|
|
26967
27214
|
isDisabled = false,
|
|
26968
27215
|
views
|
|
26969
27216
|
} = _ref,
|
|
26970
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
27217
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
|
|
26971
27218
|
var tooltipState = useTooltipState({
|
|
26972
27219
|
defaultOpen,
|
|
26973
27220
|
openDelay,
|
|
@@ -27276,7 +27523,7 @@
|
|
|
27276
27523
|
}
|
|
27277
27524
|
};
|
|
27278
27525
|
|
|
27279
|
-
var _excluded$
|
|
27526
|
+
var _excluded$1n = ["type", "direction", "shape", "position", "from", "to", "colors", "animate", "animationDuration", "children", "views", "themeMode"];
|
|
27280
27527
|
var GradientView = _ref => {
|
|
27281
27528
|
var {
|
|
27282
27529
|
type = 'linear',
|
|
@@ -27292,7 +27539,7 @@
|
|
|
27292
27539
|
views,
|
|
27293
27540
|
themeMode: elementMode
|
|
27294
27541
|
} = _ref,
|
|
27295
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
27542
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
|
|
27296
27543
|
var {
|
|
27297
27544
|
getColor,
|
|
27298
27545
|
themeMode
|
|
@@ -27368,7 +27615,7 @@
|
|
|
27368
27615
|
return /*#__PURE__*/React__default.createElement(GradientView, Object.assign({}, props));
|
|
27369
27616
|
};
|
|
27370
27617
|
|
|
27371
|
-
var _excluded$
|
|
27618
|
+
var _excluded$1o = ["children", "showRadialGradient", "views", "themeMode"],
|
|
27372
27619
|
_excluded2$m = ["number", "children"],
|
|
27373
27620
|
_excluded3$g = ["rows", "cols", "squareSize"],
|
|
27374
27621
|
_excluded4$d = ["count", "colors", "speed", "shapes"],
|
|
@@ -27389,7 +27636,7 @@
|
|
|
27389
27636
|
showRadialGradient = true,
|
|
27390
27637
|
views
|
|
27391
27638
|
} = _ref,
|
|
27392
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
27639
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1o);
|
|
27393
27640
|
var gradientColors = {
|
|
27394
27641
|
white: 'rgba(255,255,255,1)',
|
|
27395
27642
|
transparent: 'rgba(255,255,255,0)'
|
|
@@ -28009,6 +28256,7 @@
|
|
|
28009
28256
|
exports.FormikOTPInput = FormikOTPInput;
|
|
28010
28257
|
exports.FormikPassword = FormikPassword;
|
|
28011
28258
|
exports.FormikSelect = FormikSelect;
|
|
28259
|
+
exports.FormikSelector = FormikSelector;
|
|
28012
28260
|
exports.FormikSlider = FormikSlider;
|
|
28013
28261
|
exports.FormikSwitch = FormikSwitch;
|
|
28014
28262
|
exports.FormikTagInput = FormikTagInput;
|