@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
package/dist/web.esm.js
CHANGED
|
@@ -5048,6 +5048,28 @@ var getButtonVariants = function getButtonVariants(color, isLight, isThemeLight)
|
|
|
5048
5048
|
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5049
5049
|
},
|
|
5050
5050
|
transition: 'opacity 0.2s ease'
|
|
5051
|
+
},
|
|
5052
|
+
subtle: {
|
|
5053
|
+
backgroundColor: 'white',
|
|
5054
|
+
color: color,
|
|
5055
|
+
borderWidth: 1,
|
|
5056
|
+
borderStyle: 'solid',
|
|
5057
|
+
borderColor: color,
|
|
5058
|
+
paddingHorizontal: 12,
|
|
5059
|
+
paddingVertical: 6,
|
|
5060
|
+
borderRadius: 6,
|
|
5061
|
+
fontWeight: 500,
|
|
5062
|
+
_hover: {
|
|
5063
|
+
backgroundColor: 'rgba(0, 0, 0, 0.05)'
|
|
5064
|
+
},
|
|
5065
|
+
_active: {
|
|
5066
|
+
backgroundColor: 'rgba(0, 0, 0, 0.1)'
|
|
5067
|
+
},
|
|
5068
|
+
_focusVisible: {
|
|
5069
|
+
outline: 'none',
|
|
5070
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5071
|
+
},
|
|
5072
|
+
transition: 'all 0.2s ease'
|
|
5051
5073
|
}
|
|
5052
5074
|
};
|
|
5053
5075
|
};
|
|
@@ -6536,12 +6558,14 @@ var BarChart = _ref => {
|
|
|
6536
6558
|
var groupWidth = chartWidth / barCount;
|
|
6537
6559
|
var barWidth = groupWidth * 0.8 / seriesCount;
|
|
6538
6560
|
var barSpacing = groupWidth * 0.2 / (seriesCount + 1);
|
|
6561
|
+
// Calculate effective max value
|
|
6562
|
+
var effectiveMaxValue = maxValue || 10;
|
|
6539
6563
|
// Generate y-axis ticks
|
|
6540
6564
|
var yAxisTicks = useMemo(() => {
|
|
6541
6565
|
var tickCount = 5;
|
|
6542
6566
|
var ticks = [];
|
|
6543
6567
|
for (var i = 0; i <= tickCount; i++) {
|
|
6544
|
-
var value =
|
|
6568
|
+
var value = effectiveMaxValue / tickCount * i;
|
|
6545
6569
|
ticks.push(value);
|
|
6546
6570
|
}
|
|
6547
6571
|
return ticks;
|
|
@@ -6574,7 +6598,7 @@ var BarChart = _ref => {
|
|
|
6574
6598
|
}
|
|
6575
6599
|
}), label);
|
|
6576
6600
|
}), yAxisTicks.map((tick, index) => {
|
|
6577
|
-
var y = height - padding.bottom - tick /
|
|
6601
|
+
var y = height - padding.bottom - tick / effectiveMaxValue * chartHeight;
|
|
6578
6602
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
6579
6603
|
key: "y-tick-" + index
|
|
6580
6604
|
}, /*#__PURE__*/React.createElement("text", Object.assign({
|
|
@@ -6596,7 +6620,7 @@ var BarChart = _ref => {
|
|
|
6596
6620
|
}), data.series.map((series, seriesIndex) => (/*#__PURE__*/React.createElement(React.Fragment, {
|
|
6597
6621
|
key: "series-" + seriesIndex
|
|
6598
6622
|
}, series.data.map((value, dataIndex) => {
|
|
6599
|
-
var barHeight = value /
|
|
6623
|
+
var barHeight = value / effectiveMaxValue * chartHeight * animationProgress;
|
|
6600
6624
|
var x = padding.left + dataIndex * groupWidth + barSpacing * (seriesIndex + 1) + barWidth * seriesIndex;
|
|
6601
6625
|
var y = height - padding.bottom - barHeight;
|
|
6602
6626
|
var categoryLabel = data.labels[dataIndex];
|
|
@@ -6709,12 +6733,14 @@ var LineChart = _ref => {
|
|
|
6709
6733
|
});
|
|
6710
6734
|
return max;
|
|
6711
6735
|
}, [data]);
|
|
6736
|
+
// Calculate effective max value
|
|
6737
|
+
var effectiveMaxValue = maxValue || 10;
|
|
6712
6738
|
// Generate y-axis ticks
|
|
6713
6739
|
var yAxisTicks = useMemo(() => {
|
|
6714
6740
|
var tickCount = 5;
|
|
6715
6741
|
var ticks = [];
|
|
6716
6742
|
for (var i = 0; i <= tickCount; i++) {
|
|
6717
|
-
var value =
|
|
6743
|
+
var value = effectiveMaxValue / tickCount * i;
|
|
6718
6744
|
ticks.push(value);
|
|
6719
6745
|
}
|
|
6720
6746
|
return ticks;
|
|
@@ -6723,7 +6749,7 @@ var LineChart = _ref => {
|
|
|
6723
6749
|
var generatePath = series => {
|
|
6724
6750
|
var points = series.map((value, index) => {
|
|
6725
6751
|
var x = padding.left + index / (data.labels.length - 1) * chartWidth;
|
|
6726
|
-
var y = height - padding.bottom - value /
|
|
6752
|
+
var y = height - padding.bottom - value / effectiveMaxValue * chartHeight * animationProgress;
|
|
6727
6753
|
return x + "," + y;
|
|
6728
6754
|
});
|
|
6729
6755
|
return "M " + points.join(' L ');
|
|
@@ -6735,7 +6761,7 @@ var LineChart = _ref => {
|
|
|
6735
6761
|
var baseY = height - padding.bottom;
|
|
6736
6762
|
var points = series.map((value, index) => {
|
|
6737
6763
|
var x = padding.left + index / (data.labels.length - 1) * chartWidth;
|
|
6738
|
-
var y = height - padding.bottom - value /
|
|
6764
|
+
var y = height - padding.bottom - value / effectiveMaxValue * chartHeight * animationProgress;
|
|
6739
6765
|
return x + "," + y;
|
|
6740
6766
|
});
|
|
6741
6767
|
return "M " + startX + "," + baseY + " L " + points.join(' L ') + " L " + endX + "," + baseY + " Z";
|
|
@@ -6768,7 +6794,7 @@ var LineChart = _ref => {
|
|
|
6768
6794
|
}
|
|
6769
6795
|
}), label);
|
|
6770
6796
|
}), yAxisTicks.map((tick, index) => {
|
|
6771
|
-
var y = height - padding.bottom - tick /
|
|
6797
|
+
var y = height - padding.bottom - tick / effectiveMaxValue * chartHeight;
|
|
6772
6798
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
6773
6799
|
key: "y-tick-" + index
|
|
6774
6800
|
}, /*#__PURE__*/React.createElement("text", Object.assign({
|
|
@@ -6800,7 +6826,7 @@ var LineChart = _ref => {
|
|
|
6800
6826
|
stroke: lineColor
|
|
6801
6827
|
}, LineStyles, views == null ? void 0 : views.line)), series.data.map((value, dataIndex) => {
|
|
6802
6828
|
var x = padding.left + dataIndex / (data.labels.length - 1) * chartWidth;
|
|
6803
|
-
var y = height - padding.bottom - value /
|
|
6829
|
+
var y = height - padding.bottom - value / effectiveMaxValue * chartHeight * animationProgress;
|
|
6804
6830
|
var categoryLabel = data.labels[dataIndex];
|
|
6805
6831
|
var categoryTotal = data.series.reduce((sum, currentSeries) => {
|
|
6806
6832
|
var seriesValue = currentSeries.data[dataIndex];
|
|
@@ -6932,6 +6958,22 @@ var PieChart = _ref => {
|
|
|
6932
6958
|
}, [dataPoints]);
|
|
6933
6959
|
// Generate pie slices
|
|
6934
6960
|
var slices = useMemo(() => {
|
|
6961
|
+
if (total === 0) {
|
|
6962
|
+
// Return a single placeholder slice
|
|
6963
|
+
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(' ');
|
|
6964
|
+
return [{
|
|
6965
|
+
path,
|
|
6966
|
+
color: '#E2E8F0',
|
|
6967
|
+
label: 'Total',
|
|
6968
|
+
value: 0,
|
|
6969
|
+
percentage: '0%',
|
|
6970
|
+
labelX: centerX,
|
|
6971
|
+
labelY: centerY,
|
|
6972
|
+
startAngle: 0,
|
|
6973
|
+
endAngle: Math.PI * 2,
|
|
6974
|
+
index: -1
|
|
6975
|
+
}];
|
|
6976
|
+
}
|
|
6935
6977
|
var result = [];
|
|
6936
6978
|
var startAngle = -Math.PI / 2; // Start from top (12 o'clock position)
|
|
6937
6979
|
for (var i = 0; i < dataPoints.length; i++) {
|
|
@@ -6952,13 +6994,13 @@ var PieChart = _ref => {
|
|
|
6952
6994
|
// Create arc flag
|
|
6953
6995
|
var largeArcFlag = angle > Math.PI ? 1 : 0;
|
|
6954
6996
|
// Create path
|
|
6955
|
-
var
|
|
6997
|
+
var _path = void 0;
|
|
6956
6998
|
if (isDonut) {
|
|
6957
6999
|
// Donut slice path
|
|
6958
|
-
|
|
7000
|
+
_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(' ');
|
|
6959
7001
|
} else {
|
|
6960
7002
|
// Regular pie slice path
|
|
6961
|
-
|
|
7003
|
+
_path = ["M " + centerX + " " + centerY, "L " + startX + " " + startY, "A " + radius + " " + radius + " 0 " + largeArcFlag + " 1 " + endX + " " + endY, 'Z'].join(' ');
|
|
6962
7004
|
}
|
|
6963
7005
|
// Calculate label position
|
|
6964
7006
|
var labelAngle = startAngle + angle / 2;
|
|
@@ -6972,7 +7014,7 @@ var PieChart = _ref => {
|
|
|
6972
7014
|
// Resolve the color through the theme system
|
|
6973
7015
|
var resolvedColor = getColor(colorValue);
|
|
6974
7016
|
result.push({
|
|
6975
|
-
path,
|
|
7017
|
+
path: _path,
|
|
6976
7018
|
color: resolvedColor,
|
|
6977
7019
|
label: dataPoints[i].label,
|
|
6978
7020
|
value: dataPoints[i].value,
|
|
@@ -7079,19 +7121,24 @@ var PieChart = _ref => {
|
|
|
7079
7121
|
showTooltip(x, y, tooltipContent);
|
|
7080
7122
|
};
|
|
7081
7123
|
var handleClick = () => {
|
|
7082
|
-
if (onSliceClick) {
|
|
7124
|
+
if (slice.index !== -1 && onSliceClick) {
|
|
7083
7125
|
onSliceClick(dataPoints[slice.index], slice.index);
|
|
7084
7126
|
}
|
|
7085
7127
|
};
|
|
7128
|
+
var isPlaceholder = slice.index === -1;
|
|
7086
7129
|
return /*#__PURE__*/React.createElement("g", {
|
|
7087
7130
|
key: "slice-" + index
|
|
7088
7131
|
}, /*#__PURE__*/React.createElement("path", Object.assign({
|
|
7089
7132
|
d: slice.path,
|
|
7090
7133
|
fill: slice.color,
|
|
7091
|
-
onMouseEnter: handleMouseEnter,
|
|
7092
|
-
onMouseLeave: hideTooltip,
|
|
7134
|
+
onMouseEnter: !isPlaceholder ? handleMouseEnter : undefined,
|
|
7135
|
+
onMouseLeave: !isPlaceholder ? hideTooltip : undefined,
|
|
7093
7136
|
onClick: handleClick
|
|
7094
|
-
}, PieSliceStyles,
|
|
7137
|
+
}, PieSliceStyles, {
|
|
7138
|
+
style: Object.assign({}, PieSliceStyles == null ? void 0 : PieSliceStyles.style, {
|
|
7139
|
+
cursor: isPlaceholder ? 'default' : 'pointer'
|
|
7140
|
+
})
|
|
7141
|
+
}, views == null ? void 0 : views.pie)), !isPlaceholder && slice.endAngle - slice.startAngle > 0.2 && (/*#__PURE__*/React.createElement("text", {
|
|
7095
7142
|
x: slice.labelX,
|
|
7096
7143
|
y: slice.labelY,
|
|
7097
7144
|
textAnchor: "middle",
|
|
@@ -8363,7 +8410,8 @@ var FieldContainer = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
8363
8410
|
// Layout properties
|
|
8364
8411
|
gap: 8,
|
|
8365
8412
|
position: "relative",
|
|
8366
|
-
width: "100%"
|
|
8413
|
+
width: "100%",
|
|
8414
|
+
marginVertical: 4
|
|
8367
8415
|
}, props, views == null ? void 0 : views.container), children, !error && helperText && (/*#__PURE__*/React.createElement(HelperText, Object.assign({
|
|
8368
8416
|
marginTop: 4
|
|
8369
8417
|
}, views == null ? void 0 : views.helperText), helperText)), error && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
@@ -8560,7 +8608,7 @@ var FieldContent = _ref => {
|
|
|
8560
8608
|
opacity: isDisabled ? 0.6 : 1,
|
|
8561
8609
|
// Animation
|
|
8562
8610
|
transition: "all 0.2s ease"
|
|
8563
|
-
}, showLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant],
|
|
8611
|
+
}, showLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], InputVariants[variant], views == null ? void 0 : views.container, props), children);
|
|
8564
8612
|
};
|
|
8565
8613
|
|
|
8566
8614
|
var _excluded$o = ["children"];
|
|
@@ -12224,12 +12272,10 @@ var DropDownItem = _ref3 => {
|
|
|
12224
12272
|
text: {}
|
|
12225
12273
|
}
|
|
12226
12274
|
} = _ref3;
|
|
12227
|
-
var [isHovered, setIsHovered] = useState(false);
|
|
12228
12275
|
var handleOptionClick = event => {
|
|
12229
12276
|
if (event && event.stopPropagation) event.stopPropagation();
|
|
12230
12277
|
callback(option);
|
|
12231
12278
|
};
|
|
12232
|
-
var handleHover = () => setIsHovered(!isHovered);
|
|
12233
12279
|
return /*#__PURE__*/React.createElement(CountryItem, Object.assign({
|
|
12234
12280
|
margin: 0,
|
|
12235
12281
|
role: "DropDownItem",
|
|
@@ -12237,11 +12283,11 @@ var DropDownItem = _ref3 => {
|
|
|
12237
12283
|
fontWeight: "normal",
|
|
12238
12284
|
paddingVertical: 6,
|
|
12239
12285
|
paddingHorizontal: 12,
|
|
12240
|
-
onMouseEnter: handleHover,
|
|
12241
|
-
onMouseLeave: handleHover,
|
|
12242
12286
|
onClick: handleOptionClick,
|
|
12243
12287
|
fontSize: Typography.fontSizes[size],
|
|
12244
|
-
|
|
12288
|
+
_hover: {
|
|
12289
|
+
opacity: 0.8
|
|
12290
|
+
}
|
|
12245
12291
|
}, views['text']), option);
|
|
12246
12292
|
};
|
|
12247
12293
|
var DropDown$1 = _ref4 => {
|
|
@@ -12320,7 +12366,6 @@ var CountryPickerView = _ref5 => {
|
|
|
12320
12366
|
var IconColor = getColor('color.blueGray.700', {
|
|
12321
12367
|
themeMode: elementMode ? elementMode : themeMode
|
|
12322
12368
|
});
|
|
12323
|
-
var handleHover = () => setIsHovered(!isHovered);
|
|
12324
12369
|
var handleFocus = () => setIsFocused(true);
|
|
12325
12370
|
var handleCallback = option => {
|
|
12326
12371
|
setHide(!hide);
|
|
@@ -12377,13 +12422,13 @@ var CountryPickerView = _ref5 => {
|
|
|
12377
12422
|
variant: variant,
|
|
12378
12423
|
value: value,
|
|
12379
12424
|
color: 'theme.primary',
|
|
12380
|
-
isHovered: isHovered,
|
|
12381
12425
|
isDisabled: isDisabled,
|
|
12382
12426
|
isReadOnly: isReadOnly,
|
|
12383
12427
|
isFocused: isFocused,
|
|
12384
12428
|
showLabel: showLabel,
|
|
12385
|
-
|
|
12386
|
-
|
|
12429
|
+
_hover: !isDisabled && !error ? {
|
|
12430
|
+
borderColor: 'theme.primary'
|
|
12431
|
+
} : undefined
|
|
12387
12432
|
}, /*#__PURE__*/React.createElement(FieldWrapper, null, showLabel && (/*#__PURE__*/React.createElement(FieldLabel, Object.assign({
|
|
12388
12433
|
htmlFor: id,
|
|
12389
12434
|
color: 'theme.primary',
|
|
@@ -12658,6 +12703,7 @@ var ComboBoxView = _ref => {
|
|
|
12658
12703
|
relation
|
|
12659
12704
|
} = useElementPosition();
|
|
12660
12705
|
var dropdownRef = useRef(null);
|
|
12706
|
+
var [isHovered, setIsHovered] = useState(false);
|
|
12661
12707
|
// Get optimal positioning style based on available space
|
|
12662
12708
|
var getDropdownStyle = () => {
|
|
12663
12709
|
if (!relation) {
|
|
@@ -12697,13 +12743,13 @@ var ComboBoxView = _ref => {
|
|
|
12697
12743
|
var handleClickOutside = event => {
|
|
12698
12744
|
var path = event.composedPath();
|
|
12699
12745
|
var isOutside = !path.some(element => (element == null ? void 0 : element.id) === 'combobox-dropdown');
|
|
12700
|
-
if (isOutside) {
|
|
12746
|
+
if (isOutside && triggerRef.current && !triggerRef.current.contains(event.target)) {
|
|
12701
12747
|
setIsDropdownVisible(false);
|
|
12702
12748
|
}
|
|
12703
12749
|
};
|
|
12704
12750
|
document.addEventListener('mousedown', handleClickOutside);
|
|
12705
12751
|
return () => document.removeEventListener('mousedown', handleClickOutside);
|
|
12706
|
-
}, []);
|
|
12752
|
+
}, []); // triggerRef is stable
|
|
12707
12753
|
// Defines 'handleSearch' to filter items based on the user's query.
|
|
12708
12754
|
var handleSearch = query => {
|
|
12709
12755
|
setSearchQuery(query);
|
|
@@ -12732,71 +12778,102 @@ var ComboBoxView = _ref => {
|
|
|
12732
12778
|
views: views == null ? void 0 : views.label,
|
|
12733
12779
|
htmlFor: props.id
|
|
12734
12780
|
}, label)), /*#__PURE__*/React.createElement(View, {
|
|
12735
|
-
position: "relative"
|
|
12736
|
-
|
|
12781
|
+
position: "relative",
|
|
12782
|
+
width: "100%"
|
|
12783
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
12737
12784
|
ref: triggerRef,
|
|
12785
|
+
onClick: () => setIsDropdownVisible(!isDropdownVisible),
|
|
12786
|
+
style: {
|
|
12787
|
+
width: '100%'
|
|
12788
|
+
}
|
|
12789
|
+
}, /*#__PURE__*/React.createElement(FieldContent, {
|
|
12790
|
+
isHovered: isHovered,
|
|
12791
|
+
isFocused: isDropdownVisible,
|
|
12792
|
+
onMouseEnter: () => setIsHovered(true),
|
|
12793
|
+
onMouseLeave: () => setIsHovered(false),
|
|
12738
12794
|
cursor: "pointer",
|
|
12739
|
-
|
|
12740
|
-
|
|
12741
|
-
|
|
12742
|
-
|
|
12743
|
-
|
|
12744
|
-
borderRadius: "4px",
|
|
12745
|
-
justifyContent: "space-between",
|
|
12746
|
-
minWidth: 300,
|
|
12747
|
-
flexWrap: "nowrap"
|
|
12748
|
-
}, views == null ? void 0 : views.container), /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
12749
|
-
gap: 15,
|
|
12795
|
+
views: {
|
|
12796
|
+
container: views == null ? void 0 : views.container
|
|
12797
|
+
}
|
|
12798
|
+
}, /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
12799
|
+
gap: 10,
|
|
12750
12800
|
alignItems: "center",
|
|
12751
|
-
|
|
12752
|
-
|
|
12753
|
-
onClick: () => setIsDropdownVisible(!isDropdownVisible)
|
|
12754
|
-
}, views == null ? void 0 : views.labelContainer), left, /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
12801
|
+
width: "100%"
|
|
12802
|
+
}, views == null ? void 0 : views.labelContainer), left, selectedItem.icon && selectedItem.label !== placeholder && (/*#__PURE__*/React.createElement(View, null, selectedItem.icon)), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
12755
12803
|
weight: "medium",
|
|
12756
12804
|
flexGrow: 1,
|
|
12757
|
-
color:
|
|
12758
|
-
|
|
12805
|
+
color: selectedItem.label === placeholder ? 'color.gray.500' : 'color.gray.800',
|
|
12806
|
+
style: {
|
|
12807
|
+
whiteSpace: 'nowrap',
|
|
12808
|
+
overflow: 'hidden',
|
|
12809
|
+
textOverflow: 'ellipsis'
|
|
12810
|
+
}
|
|
12811
|
+
}, views == null ? void 0 : views.label), selectedItem.label)), /*#__PURE__*/React.createElement(Horizontal, {
|
|
12812
|
+
gap: 5,
|
|
12813
|
+
alignItems: "center"
|
|
12814
|
+
}, right, /*#__PURE__*/React.createElement(ChevronIcon, {
|
|
12815
|
+
widthHeight: 16,
|
|
12816
|
+
orientation: isDropdownVisible ? 'up' : 'down',
|
|
12817
|
+
color: "color.gray.500"
|
|
12818
|
+
})))), isDropdownVisible && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
12759
12819
|
ref: dropdownRef,
|
|
12760
12820
|
id: "combobox-dropdown",
|
|
12761
12821
|
backgroundColor: "color.white",
|
|
12762
|
-
boxShadow: "rgba(0, 0, 0, 0.16) 0px
|
|
12822
|
+
boxShadow: "rgba(0, 0, 0, 0.16) 0px 4px 16px",
|
|
12763
12823
|
overflowY: "auto",
|
|
12764
|
-
borderRadius: "
|
|
12824
|
+
borderRadius: "8px",
|
|
12765
12825
|
style: getDropdownStyle()
|
|
12766
|
-
}, views == null ? void 0 : views.dropdown
|
|
12767
|
-
|
|
12768
|
-
|
|
12826
|
+
}, views == null ? void 0 : views.dropdown, {
|
|
12827
|
+
border: "1px solid #eee"
|
|
12828
|
+
}), searchEnabled && (/*#__PURE__*/React.createElement(View, {
|
|
12829
|
+
padding: "8px"
|
|
12830
|
+
}, /*#__PURE__*/React.createElement(TextFieldView, {
|
|
12831
|
+
id: props.id + "-search",
|
|
12832
|
+
name: props.name + "-search",
|
|
12769
12833
|
width: "100%",
|
|
12770
12834
|
type: "search",
|
|
12835
|
+
autoFocus: true,
|
|
12771
12836
|
value: searchQuery,
|
|
12772
12837
|
onChange: value => handleSearch(value),
|
|
12773
|
-
hint: placeholder,
|
|
12838
|
+
hint: placeholder || 'Search...',
|
|
12774
12839
|
isClearable: false,
|
|
12775
12840
|
left: /*#__PURE__*/React.createElement(SearchIcon, {
|
|
12776
|
-
widthHeight: 16
|
|
12841
|
+
widthHeight: 16,
|
|
12842
|
+
color: "color.gray.400"
|
|
12777
12843
|
}),
|
|
12778
12844
|
views: {
|
|
12779
12845
|
container: Object.assign({
|
|
12780
12846
|
width: '100%',
|
|
12781
|
-
padding: '
|
|
12782
|
-
|
|
12783
|
-
|
|
12847
|
+
padding: '0'
|
|
12848
|
+
}, views == null ? void 0 : views.text),
|
|
12849
|
+
field: {
|
|
12850
|
+
fontSize: '14px'
|
|
12851
|
+
}
|
|
12784
12852
|
}
|
|
12785
|
-
})), filteredItems.length > 0 && (/*#__PURE__*/React.createElement(View, {
|
|
12853
|
+
}))), filteredItems.length > 0 && (/*#__PURE__*/React.createElement(View, {
|
|
12786
12854
|
margin: 0,
|
|
12787
12855
|
padding: 4
|
|
12788
12856
|
}, filteredItems.map((item, index) => (/*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
12789
12857
|
justifyContent: "space-between",
|
|
12790
12858
|
key: item.value,
|
|
12791
|
-
padding: "12px",
|
|
12859
|
+
padding: "8px 12px",
|
|
12792
12860
|
cursor: "pointer",
|
|
12793
12861
|
borderRadius: 4,
|
|
12794
12862
|
backgroundColor: index === highlightedIndex ? 'color.gray.100' : 'transparent',
|
|
12795
12863
|
onMouseEnter: () => setHighlightedIndex(index),
|
|
12796
|
-
onClick: () => handleSelect(item)
|
|
12797
|
-
|
|
12798
|
-
|
|
12799
|
-
|
|
12864
|
+
onClick: () => handleSelect(item),
|
|
12865
|
+
transition: "background-color 0.2s"
|
|
12866
|
+
}, views == null ? void 0 : views.item), /*#__PURE__*/React.createElement(Text, {
|
|
12867
|
+
color: "color.gray.800"
|
|
12868
|
+
}, item.label), /*#__PURE__*/React.createElement(React.Fragment, null, item.icon && item.icon, item.value === selectedItem.value && showTick && !item.icon && (/*#__PURE__*/React.createElement(TickIcon, {
|
|
12869
|
+
widthHeight: 16,
|
|
12870
|
+
color: "theme.primary"
|
|
12871
|
+
})))))))), filteredItems.length === 0 && (/*#__PURE__*/React.createElement(View, {
|
|
12872
|
+
padding: "12px"
|
|
12873
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
12874
|
+
color: "color.gray.500",
|
|
12875
|
+
align: "center"
|
|
12876
|
+
}, "No items found")))))));
|
|
12800
12877
|
};
|
|
12801
12878
|
|
|
12802
12879
|
var _excluded$C = ["id", "name", "items", "placeholder", "searchPlaceholder"];
|
|
@@ -13038,53 +13115,56 @@ var TagChip = _ref => {
|
|
|
13038
13115
|
isDisabled,
|
|
13039
13116
|
isReadOnly
|
|
13040
13117
|
} = _ref;
|
|
13118
|
+
var [isRemoveHovered, setIsRemoveHovered] = React.useState(false);
|
|
13041
13119
|
var {
|
|
13042
13120
|
getColor
|
|
13043
13121
|
} = useTheme();
|
|
13044
13122
|
var chipSize = {
|
|
13045
13123
|
xs: {
|
|
13046
|
-
padding: '2px
|
|
13124
|
+
padding: '2px 8px',
|
|
13047
13125
|
fontSize: '10px',
|
|
13048
13126
|
iconSize: 10
|
|
13049
13127
|
},
|
|
13050
13128
|
sm: {
|
|
13051
|
-
padding: '4px
|
|
13129
|
+
padding: '4px 10px',
|
|
13052
13130
|
fontSize: '12px',
|
|
13053
13131
|
iconSize: 12
|
|
13054
13132
|
},
|
|
13055
13133
|
md: {
|
|
13056
|
-
padding: '6px
|
|
13134
|
+
padding: '6px 14px',
|
|
13057
13135
|
fontSize: '14px',
|
|
13058
13136
|
iconSize: 14
|
|
13059
13137
|
},
|
|
13060
13138
|
lg: {
|
|
13061
|
-
padding: '8px
|
|
13139
|
+
padding: '8px 16px',
|
|
13062
13140
|
fontSize: '16px',
|
|
13063
13141
|
iconSize: 16
|
|
13064
13142
|
},
|
|
13065
13143
|
xl: {
|
|
13066
|
-
padding: '10px
|
|
13144
|
+
padding: '10px 18px',
|
|
13067
13145
|
fontSize: '18px',
|
|
13068
13146
|
iconSize: 18
|
|
13069
13147
|
}
|
|
13070
13148
|
}[size] || {
|
|
13071
|
-
padding: '6px
|
|
13149
|
+
padding: '6px 14px',
|
|
13072
13150
|
fontSize: '14px',
|
|
13073
13151
|
iconSize: 14
|
|
13074
13152
|
};
|
|
13075
13153
|
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
13076
13154
|
alignItems: "center",
|
|
13077
|
-
gap:
|
|
13155
|
+
gap: 6,
|
|
13078
13156
|
padding: chipSize.padding,
|
|
13079
|
-
backgroundColor: "
|
|
13157
|
+
backgroundColor: "white",
|
|
13080
13158
|
borderRadius: "16px",
|
|
13081
13159
|
border: "1px solid",
|
|
13082
|
-
borderColor: "color.
|
|
13083
|
-
|
|
13160
|
+
borderColor: "color.black.100",
|
|
13161
|
+
boxShadow: "0 1px 2px rgba(0,0,0,0.05)",
|
|
13162
|
+
transition: "all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
|
|
13084
13163
|
opacity: isDisabled ? 0.6 : 1,
|
|
13085
13164
|
_hover: !isDisabled && !isReadOnly ? {
|
|
13086
|
-
|
|
13087
|
-
|
|
13165
|
+
borderColor: 'color.gray.300',
|
|
13166
|
+
boxShadow: '0 4px 6px rgba(0,0,0,0.05)',
|
|
13167
|
+
transform: 'translateY(-1px)'
|
|
13088
13168
|
} : {}
|
|
13089
13169
|
}, views == null ? void 0 : views.tag), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
13090
13170
|
fontSize: chipSize.fontSize,
|
|
@@ -13096,13 +13176,19 @@ var TagChip = _ref => {
|
|
|
13096
13176
|
padding: "2px",
|
|
13097
13177
|
borderRadius: "50%",
|
|
13098
13178
|
transition: "all 0.2s ease",
|
|
13099
|
-
|
|
13100
|
-
|
|
13179
|
+
backgroundColor: isRemoveHovered ? 'color.red.50' : 'transparent',
|
|
13180
|
+
onMouseEnter: () => setIsRemoveHovered(true),
|
|
13181
|
+
onMouseLeave: () => setIsRemoveHovered(false),
|
|
13182
|
+
onClick: e => {
|
|
13183
|
+
e.stopPropagation();
|
|
13184
|
+
onRemove();
|
|
13101
13185
|
},
|
|
13102
|
-
|
|
13186
|
+
_hover: {
|
|
13187
|
+
backgroundColor: 'color.red.50'
|
|
13188
|
+
}
|
|
13103
13189
|
}, views == null ? void 0 : views.tagRemove), /*#__PURE__*/React.createElement(CloseIcon, {
|
|
13104
13190
|
widthHeight: chipSize.iconSize,
|
|
13105
|
-
color:
|
|
13191
|
+
color: isRemoveHovered ? 'color.red.500' : 'color.gray.400'
|
|
13106
13192
|
}))));
|
|
13107
13193
|
};
|
|
13108
13194
|
/**
|
|
@@ -13188,7 +13274,7 @@ var TagInputView = _ref2 => {
|
|
|
13188
13274
|
views: views
|
|
13189
13275
|
}, label)), /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
13190
13276
|
alignItems: "center",
|
|
13191
|
-
gap:
|
|
13277
|
+
gap: 8,
|
|
13192
13278
|
flexWrap: "wrap",
|
|
13193
13279
|
width: "100%",
|
|
13194
13280
|
minHeight: Typography.fontSizes[size],
|
|
@@ -16782,6 +16868,166 @@ var FormikUploader = _ref => {
|
|
|
16782
16868
|
};
|
|
16783
16869
|
FormikUploader.displayName = 'FormikUploader';
|
|
16784
16870
|
|
|
16871
|
+
// Initializes the custom hook 'useSelectorState' for managing the state of the Selector component
|
|
16872
|
+
var useSelectorState = _ref => {
|
|
16873
|
+
var {
|
|
16874
|
+
placeholder,
|
|
16875
|
+
isMulti,
|
|
16876
|
+
options,
|
|
16877
|
+
id = "selector-" + Math.random().toString(36).substr(2, 9)
|
|
16878
|
+
} = _ref;
|
|
16879
|
+
// 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
|
|
16880
|
+
var defaultValue = placeholder ? isMulti ? [] : '' // If there's a placeholder, set default to empty array for multi-select or empty string for single select
|
|
16881
|
+
: 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
|
|
16882
|
+
// State hook for tracking mouse hover status over the Selector component
|
|
16883
|
+
var [isHovered, setIsHovered] = React.useState(false);
|
|
16884
|
+
// State hook for tracking focus status of the Selector input field
|
|
16885
|
+
var [isFocused, setIsFocused] = React.useState(false);
|
|
16886
|
+
// State hook for managing the value(s) selected by the user, initialized with the default value
|
|
16887
|
+
var [value, setValue] = React.useState(defaultValue);
|
|
16888
|
+
// State hook for keeping track of the currently highlighted index in the options list
|
|
16889
|
+
var [highlightedIndex, setHighlightedIndex] = React.useState(0);
|
|
16890
|
+
// State hook for managing visibility of the Selector dropdown, initially set to hidden
|
|
16891
|
+
var [hide, setHide] = React.useState(true);
|
|
16892
|
+
// Returns an object containing all stateful values and their associated setters to manage the Selector component's state
|
|
16893
|
+
return {
|
|
16894
|
+
id,
|
|
16895
|
+
value,
|
|
16896
|
+
setValue,
|
|
16897
|
+
hide,
|
|
16898
|
+
setHide,
|
|
16899
|
+
isHovered,
|
|
16900
|
+
setIsHovered,
|
|
16901
|
+
isFocused,
|
|
16902
|
+
setIsFocused,
|
|
16903
|
+
highlightedIndex,
|
|
16904
|
+
setHighlightedIndex
|
|
16905
|
+
};
|
|
16906
|
+
};
|
|
16907
|
+
|
|
16908
|
+
var _excluded$T = ["id", "name", "label", "value", "views", "options", "onChange", "setValue"];
|
|
16909
|
+
/**
|
|
16910
|
+
* SelectorView Component
|
|
16911
|
+
*
|
|
16912
|
+
* Renders a segmented control style selector.
|
|
16913
|
+
*/
|
|
16914
|
+
var SelectorView = _ref => {
|
|
16915
|
+
var {
|
|
16916
|
+
id,
|
|
16917
|
+
name,
|
|
16918
|
+
label,
|
|
16919
|
+
value,
|
|
16920
|
+
views = {},
|
|
16921
|
+
options = [],
|
|
16922
|
+
onChange = () => {},
|
|
16923
|
+
setValue = () => {}
|
|
16924
|
+
} = _ref,
|
|
16925
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$T);
|
|
16926
|
+
var {
|
|
16927
|
+
getColor
|
|
16928
|
+
} = useTheme();
|
|
16929
|
+
var handleCallback = useCallback(option => {
|
|
16930
|
+
setValue(option.value);
|
|
16931
|
+
if (onChange) onChange(option.value);
|
|
16932
|
+
}, [setValue, onChange]);
|
|
16933
|
+
return /*#__PURE__*/React.createElement(FieldContainer, {
|
|
16934
|
+
id: id,
|
|
16935
|
+
width: "100%",
|
|
16936
|
+
views: views
|
|
16937
|
+
}, label && (/*#__PURE__*/React.createElement(Horizontal, {
|
|
16938
|
+
fontSize: "10px",
|
|
16939
|
+
letterSpacing: "wider",
|
|
16940
|
+
color: "color.black.500",
|
|
16941
|
+
fontWeight: "bold",
|
|
16942
|
+
marginBottom: 12,
|
|
16943
|
+
alignItems: "center",
|
|
16944
|
+
gap: 6,
|
|
16945
|
+
//Text transform uppercase
|
|
16946
|
+
style: {
|
|
16947
|
+
textTransform: 'uppercase'
|
|
16948
|
+
}
|
|
16949
|
+
}, /*#__PURE__*/React.createElement(InfoIcon, {
|
|
16950
|
+
widthHeight: 14
|
|
16951
|
+
}), " ", /*#__PURE__*/React.createElement(Text, null, label))), /*#__PURE__*/React.createElement(Horizontal, {
|
|
16952
|
+
gap: 0
|
|
16953
|
+
}, options.map((option, index, arr) => {
|
|
16954
|
+
var isSelected = value === option.value;
|
|
16955
|
+
var borderColor = getColor('color.gray.200');
|
|
16956
|
+
var textColor = getColor('color.gray.500');
|
|
16957
|
+
var bgColor = 'transparent';
|
|
16958
|
+
if (isSelected) {
|
|
16959
|
+
if (option.color) {
|
|
16960
|
+
// We need a way to get related colors (50, 500, 700 etc) from a base color if we want full fidelity.
|
|
16961
|
+
// But passing full style strings is easier.
|
|
16962
|
+
borderColor = getColor(option.color);
|
|
16963
|
+
textColor = getColor(option.color);
|
|
16964
|
+
// Try to approximate background color if possible, or just use white/transparent.
|
|
16965
|
+
// Simplification: if color provided, use it for border/text.
|
|
16966
|
+
// Background is hard to derive without more specific props.
|
|
16967
|
+
// Let's try to use a very light opacity of the color for background.
|
|
16968
|
+
bgColor = 'rgba(0,0,0,0.05)'; // Generic active background
|
|
16969
|
+
} else {
|
|
16970
|
+
// Default active style
|
|
16971
|
+
var primary = getColor('theme.primary');
|
|
16972
|
+
borderColor = primary;
|
|
16973
|
+
textColor = primary;
|
|
16974
|
+
bgColor = 'color.gray.50';
|
|
16975
|
+
}
|
|
16976
|
+
// Specific overrides based on user request "ComplexitySelector" style
|
|
16977
|
+
// If the values match 'High', 'Medium', 'Low' we can hardcode for *demo* fidelity if generic logic fails.
|
|
16978
|
+
// But let's try to make it generic.
|
|
16979
|
+
// The user simply pasted code.
|
|
16980
|
+
if (option.color) {
|
|
16981
|
+
// Fallback for customized options
|
|
16982
|
+
borderColor = getColor(option.color);
|
|
16983
|
+
textColor = getColor(option.color);
|
|
16984
|
+
bgColor = 'transparent';
|
|
16985
|
+
} else {
|
|
16986
|
+
// Default fallback
|
|
16987
|
+
borderColor = getColor('theme.primary');
|
|
16988
|
+
textColor = getColor('theme.primary');
|
|
16989
|
+
bgColor = getColor('color.blue.50');
|
|
16990
|
+
}
|
|
16991
|
+
}
|
|
16992
|
+
return /*#__PURE__*/React.createElement(Button, Object.assign({
|
|
16993
|
+
key: option.value,
|
|
16994
|
+
onClick: () => handleCallback(option),
|
|
16995
|
+
flex: 1,
|
|
16996
|
+
paddingVertical: 6,
|
|
16997
|
+
fontSize: "12px",
|
|
16998
|
+
fontWeight: isSelected ? 'bold' : 'normal',
|
|
16999
|
+
style: {
|
|
17000
|
+
borderTop: "1px solid " + (isSelected ? borderColor : getColor('color.gray.200')),
|
|
17001
|
+
borderBottom: "1px solid " + (isSelected ? borderColor : getColor('color.gray.200')),
|
|
17002
|
+
borderLeft: "1px solid " + (isSelected ? borderColor : getColor('color.gray.200')),
|
|
17003
|
+
borderRight: index === arr.length - 1 || isSelected ? "1px solid " + (isSelected ? borderColor : getColor('color.gray.200')) : 'none',
|
|
17004
|
+
backgroundColor: bgColor,
|
|
17005
|
+
color: textColor,
|
|
17006
|
+
borderRadius: index === 0 ? '6px 0 0 6px' : index === arr.length - 1 ? '0 6px 6px 0' : '0',
|
|
17007
|
+
zIndex: isSelected ? 1 : 0,
|
|
17008
|
+
boxShadow: 'none'
|
|
17009
|
+
}
|
|
17010
|
+
}, views.item), option.label);
|
|
17011
|
+
})), /*#__PURE__*/React.createElement("input", {
|
|
17012
|
+
type: "hidden",
|
|
17013
|
+
id: id,
|
|
17014
|
+
name: name,
|
|
17015
|
+
value: Array.isArray(value) ? value.join(',') : value,
|
|
17016
|
+
onChange: () => {}
|
|
17017
|
+
}));
|
|
17018
|
+
};
|
|
17019
|
+
|
|
17020
|
+
var SelectorComponent = props => {
|
|
17021
|
+
var formProps = useFormikInput(props);
|
|
17022
|
+
formProps.selected = formProps.value;
|
|
17023
|
+
var selectorStates = useSelectorState(props);
|
|
17024
|
+
return /*#__PURE__*/React.createElement(SelectorView, Object.assign({}, selectorStates, formProps));
|
|
17025
|
+
};
|
|
17026
|
+
/**
|
|
17027
|
+
* Selector provides a dropdown list of options for the user to choose from.
|
|
17028
|
+
*/
|
|
17029
|
+
var FormikSelector = SelectorComponent;
|
|
17030
|
+
|
|
16785
17031
|
var AttachmentPreview = _ref => {
|
|
16786
17032
|
var {
|
|
16787
17033
|
files,
|
|
@@ -17128,7 +17374,7 @@ var ModalTypography = {
|
|
|
17128
17374
|
}
|
|
17129
17375
|
};
|
|
17130
17376
|
|
|
17131
|
-
var _excluded$
|
|
17377
|
+
var _excluded$U = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
17132
17378
|
_excluded2$e = ["children", "shadow", "isFullScreen", "shape", "views", "isOpen"],
|
|
17133
17379
|
_excluded3$9 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
17134
17380
|
_excluded4$8 = ["children", "views"],
|
|
@@ -17143,7 +17389,7 @@ var ModalOverlay = _ref => {
|
|
|
17143
17389
|
position = 'center',
|
|
17144
17390
|
views
|
|
17145
17391
|
} = _ref,
|
|
17146
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
17392
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
|
|
17147
17393
|
var handleClick = () => {
|
|
17148
17394
|
if (!isClosePrevented) onClose();
|
|
17149
17395
|
};
|
|
@@ -17391,7 +17637,7 @@ var DrawerPlacements = {
|
|
|
17391
17637
|
}
|
|
17392
17638
|
};
|
|
17393
17639
|
|
|
17394
|
-
var _excluded$
|
|
17640
|
+
var _excluded$V = ["isOpen", "onClose", "isClosePrevented", "blur", "children"],
|
|
17395
17641
|
_excluded2$f = ["placement", "size", "children"],
|
|
17396
17642
|
_excluded3$a = ["children", "onClose", "buttonPosition"],
|
|
17397
17643
|
_excluded4$9 = ["children"],
|
|
@@ -17404,7 +17650,7 @@ var DrawerOverlay = _ref => {
|
|
|
17404
17650
|
blur,
|
|
17405
17651
|
children
|
|
17406
17652
|
} = _ref,
|
|
17407
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
17653
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$V);
|
|
17408
17654
|
var handleClick = () => {
|
|
17409
17655
|
if (!isClosePrevented) onClose();
|
|
17410
17656
|
};
|
|
@@ -17516,7 +17762,7 @@ var DrawerFooter = _ref5 => {
|
|
|
17516
17762
|
}, props), children);
|
|
17517
17763
|
};
|
|
17518
17764
|
|
|
17519
|
-
var _excluded$
|
|
17765
|
+
var _excluded$W = ["isOpen", "onClose", "placement", "size", "isClosePrevented", "children"];
|
|
17520
17766
|
/**
|
|
17521
17767
|
* A drawer is a panel that slides out from the edge of the screen.
|
|
17522
17768
|
* It can be useful when you need users to complete a task or view some details without leaving the current page.
|
|
@@ -17530,7 +17776,7 @@ var DrawerComponent = _ref => {
|
|
|
17530
17776
|
isClosePrevented,
|
|
17531
17777
|
children
|
|
17532
17778
|
} = _ref,
|
|
17533
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
17779
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
|
|
17534
17780
|
var transformStyle = isOpen ? {} : {
|
|
17535
17781
|
transform: placement === 'left' || placement === 'right' ? "translateX(" + (placement === 'left' ? '-100%' : '100%') + ")" : "translateY(" + (placement === 'top' ? '-100%' : '100%') + ")"
|
|
17536
17782
|
};
|
|
@@ -17700,7 +17946,7 @@ var NavigationMenuItemStates = {
|
|
|
17700
17946
|
}
|
|
17701
17947
|
};
|
|
17702
17948
|
|
|
17703
|
-
var _excluded$
|
|
17949
|
+
var _excluded$X = ["href", "children", "views"];
|
|
17704
17950
|
// Create context for the NavigationMenu
|
|
17705
17951
|
var NavigationMenuContext = /*#__PURE__*/createContext({
|
|
17706
17952
|
activeItemId: null,
|
|
@@ -18076,7 +18322,7 @@ var NavigationMenuLink = _ref6 => {
|
|
|
18076
18322
|
children,
|
|
18077
18323
|
views
|
|
18078
18324
|
} = _ref6,
|
|
18079
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded$
|
|
18325
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded$X);
|
|
18080
18326
|
var {
|
|
18081
18327
|
itemValue,
|
|
18082
18328
|
isDisabled
|
|
@@ -18143,7 +18389,7 @@ var NavigationMenuView = _ref7 => {
|
|
|
18143
18389
|
})))));
|
|
18144
18390
|
};
|
|
18145
18391
|
|
|
18146
|
-
var _excluded$
|
|
18392
|
+
var _excluded$Y = ["items", "children", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
|
|
18147
18393
|
/**
|
|
18148
18394
|
* NavigationMenu component for creating navigation menus with optional nested items.
|
|
18149
18395
|
* Supports both data-driven approach (with items prop) and compound component pattern.
|
|
@@ -18160,7 +18406,7 @@ var NavigationMenuComponent = _ref => {
|
|
|
18160
18406
|
onItemActivate,
|
|
18161
18407
|
views
|
|
18162
18408
|
} = _ref,
|
|
18163
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
18409
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
|
|
18164
18410
|
var {
|
|
18165
18411
|
activeItemId,
|
|
18166
18412
|
setActiveItemId,
|
|
@@ -18973,7 +19219,7 @@ var HighlightStyles = {
|
|
|
18973
19219
|
})
|
|
18974
19220
|
};
|
|
18975
19221
|
|
|
18976
|
-
var _excluded$
|
|
19222
|
+
var _excluded$Z = ["text", "typingSpeed", "pauseTime", "onComplete", "showCursor", "cursorColor", "textStyle", "as"];
|
|
18977
19223
|
/**
|
|
18978
19224
|
* A component that creates a typewriter effect for text
|
|
18979
19225
|
*/
|
|
@@ -18987,7 +19233,7 @@ var TypewriterEffect = _ref => {
|
|
|
18987
19233
|
cursorColor = 'currentColor',
|
|
18988
19234
|
textStyle
|
|
18989
19235
|
} = _ref,
|
|
18990
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
19236
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$Z);
|
|
18991
19237
|
// Convert text to array if it's a string
|
|
18992
19238
|
var textArray = Array.isArray(text) ? text : [text];
|
|
18993
19239
|
// State for the currently displayed text
|
|
@@ -19054,7 +19300,7 @@ var TypewriterEffect = _ref => {
|
|
|
19054
19300
|
}))))));
|
|
19055
19301
|
};
|
|
19056
19302
|
|
|
19057
|
-
var _excluded$
|
|
19303
|
+
var _excluded$_ = ["text", "duration", "direction", "stagger", "sequential", "textStyle", "as", "wordProps"],
|
|
19058
19304
|
_excluded2$g = ["style"];
|
|
19059
19305
|
// CSS keyframes injection - done once
|
|
19060
19306
|
var KEYFRAMES_ID = 'slide-effect-keyframes';
|
|
@@ -19076,7 +19322,7 @@ var SlideEffect = _ref => {
|
|
|
19076
19322
|
textStyle,
|
|
19077
19323
|
wordProps
|
|
19078
19324
|
} = _ref,
|
|
19079
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
19325
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
|
|
19080
19326
|
var [displayedText, setDisplayedText] = useState(text);
|
|
19081
19327
|
var [phase, setPhase] = useState('entering');
|
|
19082
19328
|
var [animKey, setAnimKey] = useState(0);
|
|
@@ -19206,7 +19452,7 @@ var SlideEffect = _ref => {
|
|
|
19206
19452
|
})));
|
|
19207
19453
|
};
|
|
19208
19454
|
|
|
19209
|
-
var _excluded
|
|
19455
|
+
var _excluded$$ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "responsive", "centered", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential"];
|
|
19210
19456
|
function escapeRegExp(string) {
|
|
19211
19457
|
return string.replace(/[.*+?^${}()|[\\]\\/g, '\\$&');
|
|
19212
19458
|
}
|
|
@@ -19232,7 +19478,7 @@ var TitleView = _ref => {
|
|
|
19232
19478
|
highlightSlideStagger = 50,
|
|
19233
19479
|
highlightSlideSequential = true
|
|
19234
19480
|
} = _ref,
|
|
19235
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded
|
|
19481
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$$);
|
|
19236
19482
|
var {
|
|
19237
19483
|
ref,
|
|
19238
19484
|
inView
|
|
@@ -19531,7 +19777,7 @@ var getToggleVariants = (color, isLight) => ({
|
|
|
19531
19777
|
}
|
|
19532
19778
|
});
|
|
19533
19779
|
|
|
19534
|
-
var _excluded
|
|
19780
|
+
var _excluded$10 = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views", "backgroundColor", "color", "themeMode"];
|
|
19535
19781
|
var ToggleView = _ref => {
|
|
19536
19782
|
var _ref2;
|
|
19537
19783
|
var {
|
|
@@ -19551,7 +19797,7 @@ var ToggleView = _ref => {
|
|
|
19551
19797
|
// 2nd candidate for main color
|
|
19552
19798
|
themeMode: elementMode
|
|
19553
19799
|
} = _ref,
|
|
19554
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded
|
|
19800
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$10);
|
|
19555
19801
|
/* theme helpers */
|
|
19556
19802
|
var {
|
|
19557
19803
|
getColor,
|
|
@@ -19595,7 +19841,7 @@ var ToggleView = _ref => {
|
|
|
19595
19841
|
}, props, views == null ? void 0 : views.container), children);
|
|
19596
19842
|
};
|
|
19597
19843
|
|
|
19598
|
-
var _excluded$
|
|
19844
|
+
var _excluded$11 = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
19599
19845
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
19600
19846
|
var ToggleComponent = _ref => {
|
|
19601
19847
|
var {
|
|
@@ -19607,7 +19853,7 @@ var ToggleComponent = _ref => {
|
|
|
19607
19853
|
isToggled = false,
|
|
19608
19854
|
onToggle
|
|
19609
19855
|
} = _ref,
|
|
19610
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
19856
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$11);
|
|
19611
19857
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
19612
19858
|
var {
|
|
19613
19859
|
isHovered,
|
|
@@ -19827,8 +20073,7 @@ var DragAndDropView = _ref => {
|
|
|
19827
20073
|
onTouchStart: e => handleDragStart(e, index),
|
|
19828
20074
|
position: "relative",
|
|
19829
20075
|
cursor: "grab",
|
|
19830
|
-
transition: "transform 0.2s"
|
|
19831
|
-
backgroundColor: draggedIndex === index ? 'color.gray.100' : 'transparent'
|
|
20076
|
+
transition: "transform 0.2s"
|
|
19832
20077
|
}, itemProps, views == null ? void 0 : views.item), renderItem ? renderItem(item, index) : item))));
|
|
19833
20078
|
};
|
|
19834
20079
|
|
|
@@ -19942,7 +20187,7 @@ var DropdownMenuItemStates = {
|
|
|
19942
20187
|
}
|
|
19943
20188
|
};
|
|
19944
20189
|
|
|
19945
|
-
var _excluded$
|
|
20190
|
+
var _excluded$12 = ["children", "views"],
|
|
19946
20191
|
_excluded2$h = ["items", "side", "align", "views"],
|
|
19947
20192
|
_excluded3$b = ["item", "views"],
|
|
19948
20193
|
_excluded4$a = ["views"],
|
|
@@ -19983,7 +20228,7 @@ var DropdownMenuTrigger = _ref2 => {
|
|
|
19983
20228
|
children,
|
|
19984
20229
|
views
|
|
19985
20230
|
} = _ref2,
|
|
19986
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
20231
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$12);
|
|
19987
20232
|
var {
|
|
19988
20233
|
isOpen,
|
|
19989
20234
|
setIsOpen,
|
|
@@ -20236,7 +20481,7 @@ var DropdownMenuView = _ref6 => {
|
|
|
20236
20481
|
}));
|
|
20237
20482
|
};
|
|
20238
20483
|
|
|
20239
|
-
var _excluded$
|
|
20484
|
+
var _excluded$13 = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
|
|
20240
20485
|
/**
|
|
20241
20486
|
* DropdownMenu component for displaying a menu when clicking on a trigger element.
|
|
20242
20487
|
*/
|
|
@@ -20251,7 +20496,7 @@ var DropdownMenuComponent = _ref => {
|
|
|
20251
20496
|
defaultOpen = false,
|
|
20252
20497
|
views
|
|
20253
20498
|
} = _ref,
|
|
20254
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
20499
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$13);
|
|
20255
20500
|
var {
|
|
20256
20501
|
isOpen,
|
|
20257
20502
|
setIsOpen,
|
|
@@ -20665,7 +20910,7 @@ var DefaultColorPalette$1 = [
|
|
|
20665
20910
|
category: 'neutral'
|
|
20666
20911
|
}];
|
|
20667
20912
|
|
|
20668
|
-
var _excluded$
|
|
20913
|
+
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"];
|
|
20669
20914
|
var ColorPickerView = _ref => {
|
|
20670
20915
|
var {
|
|
20671
20916
|
// Basic props
|
|
@@ -20700,7 +20945,7 @@ var ColorPickerView = _ref => {
|
|
|
20700
20945
|
dropdownRef
|
|
20701
20946
|
// Other props
|
|
20702
20947
|
} = _ref,
|
|
20703
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
20948
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$14);
|
|
20704
20949
|
var {
|
|
20705
20950
|
getColor
|
|
20706
20951
|
} = useTheme();
|
|
@@ -20903,7 +21148,8 @@ var DefaultEmojiPickerStyles = {
|
|
|
20903
21148
|
gap: '4px',
|
|
20904
21149
|
maxHeight: '240px',
|
|
20905
21150
|
overflowY: 'auto',
|
|
20906
|
-
padding: '4px'
|
|
21151
|
+
padding: '4px',
|
|
21152
|
+
color: 'color.black'
|
|
20907
21153
|
},
|
|
20908
21154
|
emoji: {
|
|
20909
21155
|
width: '32px',
|
|
@@ -23031,7 +23277,7 @@ var useEmojiPickerState = props => {
|
|
|
23031
23277
|
};
|
|
23032
23278
|
};
|
|
23033
23279
|
|
|
23034
|
-
var _excluded$
|
|
23280
|
+
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"];
|
|
23035
23281
|
var EmojiPickerView = _ref => {
|
|
23036
23282
|
var {
|
|
23037
23283
|
// Basic props
|
|
@@ -23069,7 +23315,7 @@ var EmojiPickerView = _ref => {
|
|
|
23069
23315
|
dropdownRef
|
|
23070
23316
|
// Other props
|
|
23071
23317
|
} = _ref,
|
|
23072
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
23318
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$15);
|
|
23073
23319
|
var {
|
|
23074
23320
|
getColor
|
|
23075
23321
|
} = useTheme();
|
|
@@ -23131,7 +23377,8 @@ var EmojiPickerView = _ref => {
|
|
|
23131
23377
|
title: emoji.name,
|
|
23132
23378
|
_hover: {
|
|
23133
23379
|
backgroundColor: 'color.gray.100'
|
|
23134
|
-
}
|
|
23380
|
+
},
|
|
23381
|
+
color: "color.gray.800"
|
|
23135
23382
|
}, views == null ? void 0 : views.emoji), emoji.emoji))) : (/*#__PURE__*/React.createElement(View, {
|
|
23136
23383
|
gridColumn: "1 / -1",
|
|
23137
23384
|
padding: "20px",
|
|
@@ -23256,7 +23503,7 @@ var MenubarItemStates = {
|
|
|
23256
23503
|
}
|
|
23257
23504
|
};
|
|
23258
23505
|
|
|
23259
|
-
var _excluded$
|
|
23506
|
+
var _excluded$16 = ["children", "orientation", "size", "variant", "views"];
|
|
23260
23507
|
// Create context for the Menubar
|
|
23261
23508
|
var MenubarContext = /*#__PURE__*/createContext({
|
|
23262
23509
|
activeMenuId: null,
|
|
@@ -23293,7 +23540,7 @@ var MenubarRoot = _ref2 => {
|
|
|
23293
23540
|
variant = 'default',
|
|
23294
23541
|
views
|
|
23295
23542
|
} = _ref2,
|
|
23296
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
23543
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$16);
|
|
23297
23544
|
var Container = orientation === 'horizontal' ? Horizontal : Vertical;
|
|
23298
23545
|
return /*#__PURE__*/React.createElement(Container, Object.assign({
|
|
23299
23546
|
role: "menubar",
|
|
@@ -23613,7 +23860,7 @@ var MenubarView = _ref8 => {
|
|
|
23613
23860
|
})))))));
|
|
23614
23861
|
};
|
|
23615
23862
|
|
|
23616
|
-
var _excluded$
|
|
23863
|
+
var _excluded$17 = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
|
|
23617
23864
|
/**
|
|
23618
23865
|
* Menubar component for creating horizontal or vertical menu bars with dropdown menus.
|
|
23619
23866
|
*/
|
|
@@ -23627,7 +23874,7 @@ var MenubarComponent = _ref => {
|
|
|
23627
23874
|
defaultOpenMenuId = null,
|
|
23628
23875
|
views
|
|
23629
23876
|
} = _ref,
|
|
23630
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
23877
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$17);
|
|
23631
23878
|
var {
|
|
23632
23879
|
activeMenuId,
|
|
23633
23880
|
setActiveMenuId,
|
|
@@ -23809,7 +24056,7 @@ var DisabledButtonStyles = {
|
|
|
23809
24056
|
}
|
|
23810
24057
|
};
|
|
23811
24058
|
|
|
23812
|
-
var _excluded$
|
|
24059
|
+
var _excluded$18 = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
|
|
23813
24060
|
var PaginationView = _ref => {
|
|
23814
24061
|
var {
|
|
23815
24062
|
currentPage,
|
|
@@ -23840,7 +24087,7 @@ var PaginationView = _ref => {
|
|
|
23840
24087
|
visiblePageNumbers,
|
|
23841
24088
|
views
|
|
23842
24089
|
} = _ref,
|
|
23843
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24090
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$18);
|
|
23844
24091
|
var handlePageChange = page => {
|
|
23845
24092
|
if (page < 1 || page > totalPages || page === currentPage) {
|
|
23846
24093
|
return;
|
|
@@ -23959,7 +24206,7 @@ var PaginationView = _ref => {
|
|
|
23959
24206
|
}, option.label))))));
|
|
23960
24207
|
};
|
|
23961
24208
|
|
|
23962
|
-
var _excluded$
|
|
24209
|
+
var _excluded$19 = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
|
|
23963
24210
|
/**
|
|
23964
24211
|
* Pagination component for navigating through pages of content.
|
|
23965
24212
|
*/
|
|
@@ -23980,7 +24227,7 @@ var PaginationComponent = _ref => {
|
|
|
23980
24227
|
shape = 'rounded',
|
|
23981
24228
|
views
|
|
23982
24229
|
} = _ref,
|
|
23983
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24230
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$19);
|
|
23984
24231
|
var {
|
|
23985
24232
|
visiblePageNumbers
|
|
23986
24233
|
} = usePaginationState(currentPage, totalPages, maxPageButtons);
|
|
@@ -24004,7 +24251,7 @@ var PaginationComponent = _ref => {
|
|
|
24004
24251
|
};
|
|
24005
24252
|
var Pagination = PaginationComponent;
|
|
24006
24253
|
|
|
24007
|
-
var _excluded$
|
|
24254
|
+
var _excluded$1a = ["value", "max", "color", "backgroundColor", "height", "radius", "views", "themeMode"];
|
|
24008
24255
|
var ProgressBarView = _ref => {
|
|
24009
24256
|
var {
|
|
24010
24257
|
value = 0,
|
|
@@ -24016,7 +24263,7 @@ var ProgressBarView = _ref => {
|
|
|
24016
24263
|
views,
|
|
24017
24264
|
themeMode: elementMode
|
|
24018
24265
|
} = _ref,
|
|
24019
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24266
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
|
|
24020
24267
|
var {
|
|
24021
24268
|
getColor,
|
|
24022
24269
|
themeMode
|
|
@@ -24106,7 +24353,7 @@ var DefaultSeparatorStyles = {
|
|
|
24106
24353
|
}
|
|
24107
24354
|
};
|
|
24108
24355
|
|
|
24109
|
-
var _excluded$
|
|
24356
|
+
var _excluded$1b = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views", "themeMode"];
|
|
24110
24357
|
var SeparatorView = _ref => {
|
|
24111
24358
|
var {
|
|
24112
24359
|
orientation = 'horizontal',
|
|
@@ -24118,7 +24365,7 @@ var SeparatorView = _ref => {
|
|
|
24118
24365
|
decorative = false,
|
|
24119
24366
|
views
|
|
24120
24367
|
} = _ref,
|
|
24121
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24368
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1b);
|
|
24122
24369
|
// Access theme if needed for future enhancements
|
|
24123
24370
|
var {
|
|
24124
24371
|
themeMode
|
|
@@ -24186,7 +24433,7 @@ var SeparatorComponent = props => {
|
|
|
24186
24433
|
var Separator = SeparatorComponent;
|
|
24187
24434
|
var Divider = SeparatorComponent;
|
|
24188
24435
|
|
|
24189
|
-
var _excluded$
|
|
24436
|
+
var _excluded$1c = ["isSupported", "isSharing", "onShare", "label", "children", "icon", "size", "isDisabled", "isLoading", "iconPosition", "disableWhenUnsupported"];
|
|
24190
24437
|
var ICON_SIZE_MAP = {
|
|
24191
24438
|
xs: 12,
|
|
24192
24439
|
sm: 14,
|
|
@@ -24209,7 +24456,7 @@ var ShareButtonView = _ref => {
|
|
|
24209
24456
|
iconPosition,
|
|
24210
24457
|
disableWhenUnsupported = true
|
|
24211
24458
|
} = _ref,
|
|
24212
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24459
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$1c);
|
|
24213
24460
|
var resolvedSize = size != null ? size : 'md';
|
|
24214
24461
|
var resolvedIcon = icon != null ? icon : (/*#__PURE__*/React.createElement(ShareIcon, {
|
|
24215
24462
|
widthHeight: ICON_SIZE_MAP[resolvedSize],
|
|
@@ -24311,14 +24558,14 @@ var useShareButton = props => {
|
|
|
24311
24558
|
};
|
|
24312
24559
|
};
|
|
24313
24560
|
|
|
24314
|
-
var _excluded$
|
|
24561
|
+
var _excluded$1d = ["shareData", "onShareStart", "onShareSuccess", "onShareCancel", "onShareError", "onUnsupported", "onClick"];
|
|
24315
24562
|
var ShareButtonComponent = props => {
|
|
24316
24563
|
var {
|
|
24317
24564
|
isSupported,
|
|
24318
24565
|
isSharing,
|
|
24319
24566
|
handleShare
|
|
24320
24567
|
} = useShareButton(props);
|
|
24321
|
-
var viewProps = _objectWithoutPropertiesLoose(props, _excluded$
|
|
24568
|
+
var viewProps = _objectWithoutPropertiesLoose(props, _excluded$1d);
|
|
24322
24569
|
return /*#__PURE__*/React.createElement(ShareButtonView, Object.assign({}, viewProps, {
|
|
24323
24570
|
isSupported: isSupported,
|
|
24324
24571
|
isSharing: isSharing,
|
|
@@ -24372,7 +24619,7 @@ var getThemes$2 = themeMode => {
|
|
|
24372
24619
|
};
|
|
24373
24620
|
};
|
|
24374
24621
|
|
|
24375
|
-
var _excluded$
|
|
24622
|
+
var _excluded$1e = ["label", "status", "views", "themeMode"];
|
|
24376
24623
|
var StatusIndicatorView = _ref => {
|
|
24377
24624
|
var {
|
|
24378
24625
|
label,
|
|
@@ -24380,7 +24627,7 @@ var StatusIndicatorView = _ref => {
|
|
|
24380
24627
|
views,
|
|
24381
24628
|
themeMode: elementMode
|
|
24382
24629
|
} = _ref,
|
|
24383
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24630
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
|
|
24384
24631
|
var {
|
|
24385
24632
|
themeMode
|
|
24386
24633
|
} = useTheme();
|
|
@@ -24563,7 +24810,7 @@ var SidebarTransitions = {
|
|
|
24563
24810
|
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)'
|
|
24564
24811
|
};
|
|
24565
24812
|
|
|
24566
|
-
var _excluded$
|
|
24813
|
+
var _excluded$1f = ["children", "showToggleButton", "views"],
|
|
24567
24814
|
_excluded2$i = ["children", "views"],
|
|
24568
24815
|
_excluded3$c = ["children", "views"],
|
|
24569
24816
|
_excluded4$b = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
@@ -24596,7 +24843,7 @@ var SidebarHeader = _ref2 => {
|
|
|
24596
24843
|
showToggleButton = true,
|
|
24597
24844
|
views
|
|
24598
24845
|
} = _ref2,
|
|
24599
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
24846
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1f);
|
|
24600
24847
|
var {
|
|
24601
24848
|
isExpanded,
|
|
24602
24849
|
toggleExpanded,
|
|
@@ -24751,7 +24998,7 @@ var SidebarView = _ref5 => {
|
|
|
24751
24998
|
}))));
|
|
24752
24999
|
};
|
|
24753
25000
|
|
|
24754
|
-
var _excluded$
|
|
25001
|
+
var _excluded$1g = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
|
|
24755
25002
|
/**
|
|
24756
25003
|
* Sidebar component for creating collapsible, themeable and customizable sidebars.
|
|
24757
25004
|
*/
|
|
@@ -24773,7 +25020,7 @@ var SidebarComponent = _ref => {
|
|
|
24773
25020
|
breakpointBehavior = 'overlay',
|
|
24774
25021
|
views
|
|
24775
25022
|
} = _ref,
|
|
24776
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
25023
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
|
|
24777
25024
|
var {
|
|
24778
25025
|
isExpanded,
|
|
24779
25026
|
toggleExpanded,
|
|
@@ -25238,7 +25485,7 @@ var HandleIconStyles = {
|
|
|
25238
25485
|
}
|
|
25239
25486
|
};
|
|
25240
25487
|
|
|
25241
|
-
var _excluded$
|
|
25488
|
+
var _excluded$1h = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
25242
25489
|
_excluded2$j = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
25243
25490
|
_excluded3$d = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
25244
25491
|
// Create context for the Resizable component
|
|
@@ -25283,7 +25530,7 @@ var ResizablePanel = _ref2 => {
|
|
|
25283
25530
|
onCollapseChange,
|
|
25284
25531
|
views
|
|
25285
25532
|
} = _ref2,
|
|
25286
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
25533
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1h);
|
|
25287
25534
|
var {
|
|
25288
25535
|
orientation,
|
|
25289
25536
|
registerPanel,
|
|
@@ -25498,7 +25745,7 @@ var ResizableView = _ref4 => {
|
|
|
25498
25745
|
}, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
|
|
25499
25746
|
};
|
|
25500
25747
|
|
|
25501
|
-
var _excluded$
|
|
25748
|
+
var _excluded$1i = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
|
|
25502
25749
|
/**
|
|
25503
25750
|
* Resizable component for creating resizable panel groups and layouts.
|
|
25504
25751
|
*/
|
|
@@ -25518,7 +25765,7 @@ var ResizableComponent = _ref => {
|
|
|
25518
25765
|
keyboardResizeBy = 10,
|
|
25519
25766
|
views
|
|
25520
25767
|
} = _ref,
|
|
25521
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
25768
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1i);
|
|
25522
25769
|
var {
|
|
25523
25770
|
isResizing,
|
|
25524
25771
|
setIsResizing,
|
|
@@ -26289,7 +26536,7 @@ var CommandFooterStyles = {
|
|
|
26289
26536
|
color: 'color.gray.500'
|
|
26290
26537
|
};
|
|
26291
26538
|
|
|
26292
|
-
var _excluded$
|
|
26539
|
+
var _excluded$1j = ["value", "onValueChange", "placeholder", "views"],
|
|
26293
26540
|
_excluded2$k = ["children", "views"],
|
|
26294
26541
|
_excluded3$e = ["heading", "children", "views"],
|
|
26295
26542
|
_excluded4$c = ["item", "selected", "onSelect", "views"],
|
|
@@ -26321,7 +26568,7 @@ var CommandInput = _ref2 => {
|
|
|
26321
26568
|
placeholder = 'Type a command or search...',
|
|
26322
26569
|
views
|
|
26323
26570
|
} = _ref2,
|
|
26324
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
26571
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1j);
|
|
26325
26572
|
var inputRef = useRef(null);
|
|
26326
26573
|
// Focus input when component mounts
|
|
26327
26574
|
React.useEffect(() => {
|
|
@@ -26504,7 +26751,7 @@ var CommandView = _ref7 => {
|
|
|
26504
26751
|
})))), footer && (/*#__PURE__*/React.createElement(View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
|
|
26505
26752
|
};
|
|
26506
26753
|
|
|
26507
|
-
var _excluded$
|
|
26754
|
+
var _excluded$1k = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
|
|
26508
26755
|
/**
|
|
26509
26756
|
* Command component for displaying a command palette with search functionality.
|
|
26510
26757
|
*/
|
|
@@ -26522,7 +26769,7 @@ var CommandComponent = _ref => {
|
|
|
26522
26769
|
footer,
|
|
26523
26770
|
views
|
|
26524
26771
|
} = _ref,
|
|
26525
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
26772
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1k);
|
|
26526
26773
|
var {
|
|
26527
26774
|
search,
|
|
26528
26775
|
setSearch,
|
|
@@ -26759,7 +27006,7 @@ var getArrowStyles = position => {
|
|
|
26759
27006
|
}
|
|
26760
27007
|
};
|
|
26761
27008
|
|
|
26762
|
-
var _excluded$
|
|
27009
|
+
var _excluded$1l = ["children", "views", "asChild"],
|
|
26763
27010
|
_excluded2$l = ["children", "views"],
|
|
26764
27011
|
_excluded3$f = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
26765
27012
|
// Create context for the Tooltip
|
|
@@ -26795,7 +27042,7 @@ var TooltipTrigger = _ref2 => {
|
|
|
26795
27042
|
views,
|
|
26796
27043
|
asChild = false
|
|
26797
27044
|
} = _ref2,
|
|
26798
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
27045
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1l);
|
|
26799
27046
|
var {
|
|
26800
27047
|
openTooltip,
|
|
26801
27048
|
closeTooltip,
|
|
@@ -26979,7 +27226,7 @@ var TooltipView = _ref4 => {
|
|
|
26979
27226
|
}, TooltipSizes[size], TooltipVariants[variant], views == null ? void 0 : views.content), typeof content === 'string' ? (/*#__PURE__*/React.createElement(Text, Object.assign({}, views == null ? void 0 : views.text), content)) : content, showArrow && /*#__PURE__*/React.createElement(View, Object.assign({}, arrowStyles, views == null ? void 0 : views.arrow)))));
|
|
26980
27227
|
};
|
|
26981
27228
|
|
|
26982
|
-
var _excluded$
|
|
27229
|
+
var _excluded$1m = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
|
|
26983
27230
|
/**
|
|
26984
27231
|
* Tooltip component for displaying additional information when hovering over an element.
|
|
26985
27232
|
* Supports configurable positions, delays, and styling.
|
|
@@ -26999,7 +27246,7 @@ var TooltipComponent = _ref => {
|
|
|
26999
27246
|
isDisabled = false,
|
|
27000
27247
|
views
|
|
27001
27248
|
} = _ref,
|
|
27002
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
27249
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
|
|
27003
27250
|
var tooltipState = useTooltipState({
|
|
27004
27251
|
defaultOpen,
|
|
27005
27252
|
openDelay,
|
|
@@ -27308,7 +27555,7 @@ var DefaultGradientStyles = {
|
|
|
27308
27555
|
}
|
|
27309
27556
|
};
|
|
27310
27557
|
|
|
27311
|
-
var _excluded$
|
|
27558
|
+
var _excluded$1n = ["type", "direction", "shape", "position", "from", "to", "colors", "animate", "animationDuration", "children", "views", "themeMode"];
|
|
27312
27559
|
var GradientView = _ref => {
|
|
27313
27560
|
var {
|
|
27314
27561
|
type = 'linear',
|
|
@@ -27324,7 +27571,7 @@ var GradientView = _ref => {
|
|
|
27324
27571
|
views,
|
|
27325
27572
|
themeMode: elementMode
|
|
27326
27573
|
} = _ref,
|
|
27327
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
27574
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
|
|
27328
27575
|
var {
|
|
27329
27576
|
getColor,
|
|
27330
27577
|
themeMode
|
|
@@ -27400,7 +27647,7 @@ var Gradient = props => {
|
|
|
27400
27647
|
return /*#__PURE__*/React.createElement(GradientView, Object.assign({}, props));
|
|
27401
27648
|
};
|
|
27402
27649
|
|
|
27403
|
-
var _excluded$
|
|
27650
|
+
var _excluded$1o = ["children", "showRadialGradient", "views", "themeMode"],
|
|
27404
27651
|
_excluded2$m = ["number", "children"],
|
|
27405
27652
|
_excluded3$g = ["rows", "cols", "squareSize"],
|
|
27406
27653
|
_excluded4$d = ["count", "colors", "speed", "shapes"],
|
|
@@ -27421,7 +27668,7 @@ var AuroraBackground = _ref => {
|
|
|
27421
27668
|
showRadialGradient = true,
|
|
27422
27669
|
views
|
|
27423
27670
|
} = _ref,
|
|
27424
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
27671
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1o);
|
|
27425
27672
|
var gradientColors = {
|
|
27426
27673
|
white: 'rgba(255,255,255,1)',
|
|
27427
27674
|
transparent: 'rgba(255,255,255,0)'
|
|
@@ -27968,5 +28215,5 @@ var Background = /*#__PURE__*/Object.assign(BackgroundComponent, {
|
|
|
27968
28215
|
});
|
|
27969
28216
|
Background.displayName = 'Background';
|
|
27970
28217
|
|
|
27971
|
-
export { Accordion, Alert, ArrowIcon, AspectRatio, AttachmentIcon, AttachmentPreview, AudioIcon, AudioInput, AudioWaveform, Avatar, BackIcon, Background, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Button, CalendarIcon, CameraIcon, Card, Carousel, Chart, ChartIcon, ChatInput, CheckIcon, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ColorInput, ColorPicker, ComboBox, Command, ContextMenu, CookieConsent, CopyIcon, CountryPicker, CropIcon, DatePicker, DeleteIcon, Divider, DocumentIcon, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DragHandleLinesIcon, Drawer, DropdownMenu, DustBinIcon, EditIcon, EmojiPicker, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, FolderIcon, FormikChatInput, FormikCheckbox, FormikColorInput, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikOTPInput, FormikPassword, FormikSelect, FormikSlider, FormikSwitch, FormikTagInput, FormikTextArea, FormikTextField, FormikUploader, GiftIcon, HeartIcon, HelpIcon, HomeIcon, HoverCard, Icon, ImageIcon, InfoIcon, InstagramIcon, LikeIcon, Link, LinkedinIcon, Loader, LoadingSpinnerIcon, LocationIcon, LockIcon, LogoutIcon, MagicWandIcon, MediaPreview, MenuIcon, Menubar, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NavigationMenu, NotificationIcon, OTPInput, OpenEyeIcon, Pagination, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PowerOffIcon, PrintIcon, ProfileIcon, ProgressBar, RefreshIcon, Resizable, RotateIcon, SaveIcon, SearchIcon, Select, SendIcon, Separator, SettingsIcon, ShapeIcon, ShareButton, ShareIcon, ShieldIcon, Sidebar, Slider, SliderIcon, SpinnerIcon, StarIcon, StatusIndicator, StopIcon, SuccessIcon, Switch, Table, Tabs, TagInput, TextArea, TextField, TextIcon, ThreadsIcon, TickIcon, Title, Toast, Toggle, ToggleGroup, Tooltip, TrashIcon, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, UserIcon, VideoIcon, WarningIcon, WifiIcon, XIcon, YoutubeIcon, ZoomInIcon, ZoomOutIcon, hideMessage, hideModal, showMessage, showModal, showToast, useMessageStore, useModalStore, useToast$1 as useToast };
|
|
28218
|
+
export { Accordion, Alert, ArrowIcon, AspectRatio, AttachmentIcon, AttachmentPreview, AudioIcon, AudioInput, AudioWaveform, Avatar, BackIcon, Background, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Button, CalendarIcon, CameraIcon, Card, Carousel, Chart, ChartIcon, ChatInput, CheckIcon, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ColorInput, ColorPicker, ComboBox, Command, ContextMenu, CookieConsent, CopyIcon, CountryPicker, CropIcon, DatePicker, DeleteIcon, Divider, DocumentIcon, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DragHandleLinesIcon, Drawer, DropdownMenu, DustBinIcon, EditIcon, EmojiPicker, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, FolderIcon, FormikChatInput, FormikCheckbox, FormikColorInput, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikOTPInput, FormikPassword, FormikSelect, FormikSelector, FormikSlider, FormikSwitch, FormikTagInput, FormikTextArea, FormikTextField, FormikUploader, GiftIcon, HeartIcon, HelpIcon, HomeIcon, HoverCard, Icon, ImageIcon, InfoIcon, InstagramIcon, LikeIcon, Link, LinkedinIcon, Loader, LoadingSpinnerIcon, LocationIcon, LockIcon, LogoutIcon, MagicWandIcon, MediaPreview, MenuIcon, Menubar, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NavigationMenu, NotificationIcon, OTPInput, OpenEyeIcon, Pagination, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PowerOffIcon, PrintIcon, ProfileIcon, ProgressBar, RefreshIcon, Resizable, RotateIcon, SaveIcon, SearchIcon, Select, SendIcon, Separator, SettingsIcon, ShapeIcon, ShareButton, ShareIcon, ShieldIcon, Sidebar, Slider, SliderIcon, SpinnerIcon, StarIcon, StatusIndicator, StopIcon, SuccessIcon, Switch, Table, Tabs, TagInput, TextArea, TextField, TextIcon, ThreadsIcon, TickIcon, Title, Toast, Toggle, ToggleGroup, Tooltip, TrashIcon, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, UserIcon, VideoIcon, WarningIcon, WifiIcon, XIcon, YoutubeIcon, ZoomInIcon, ZoomOutIcon, hideMessage, hideModal, showMessage, showModal, showToast, useMessageStore, useModalStore, useToast$1 as useToast };
|
|
27972
28219
|
//# sourceMappingURL=web.esm.js.map
|