@app-studio/web 0.9.50 → 0.9.54
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 +417 -161
- 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 +418 -163
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +417 -161
- 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/Selector.mdx +78 -0
- package/docs/components/Title.mdx +93 -0
- package/package.json +2 -2
package/dist/web.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import 'core-js/modules/es.array.iterator.js';
|
|
|
5
5
|
import 'core-js/modules/es.string.includes.js';
|
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
7
|
import 'core-js/modules/es.regexp.to-string.js';
|
|
8
|
-
import { View, Horizontal, Vertical, Center, useTheme, Text, Image, Element, useHover, useElementPosition, Typography, Input, Form, Button as Button$1, useInView, useResponsive } from 'app-studio';
|
|
8
|
+
import { View, Horizontal, Vertical, Center, useTheme, Text, Image, Element, useHover, useElementPosition, Typography, Input, Form, Button as Button$1, Animation, useInView, useResponsive } from 'app-studio';
|
|
9
9
|
import 'core-js/modules/es.symbol.description.js';
|
|
10
10
|
import 'core-js/modules/es.array-buffer.constructor.js';
|
|
11
11
|
import 'core-js/modules/es.array-buffer.slice.js';
|
|
@@ -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
|
};
|
|
@@ -8388,7 +8410,8 @@ var FieldContainer = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
8388
8410
|
// Layout properties
|
|
8389
8411
|
gap: 8,
|
|
8390
8412
|
position: "relative",
|
|
8391
|
-
width: "100%"
|
|
8413
|
+
width: "100%",
|
|
8414
|
+
marginVertical: 4
|
|
8392
8415
|
}, props, views == null ? void 0 : views.container), children, !error && helperText && (/*#__PURE__*/React.createElement(HelperText, Object.assign({
|
|
8393
8416
|
marginTop: 4
|
|
8394
8417
|
}, views == null ? void 0 : views.helperText), helperText)), error && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
@@ -8585,7 +8608,7 @@ var FieldContent = _ref => {
|
|
|
8585
8608
|
opacity: isDisabled ? 0.6 : 1,
|
|
8586
8609
|
// Animation
|
|
8587
8610
|
transition: "all 0.2s ease"
|
|
8588
|
-
}, 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);
|
|
8589
8612
|
};
|
|
8590
8613
|
|
|
8591
8614
|
var _excluded$o = ["children"];
|
|
@@ -12249,12 +12272,10 @@ var DropDownItem = _ref3 => {
|
|
|
12249
12272
|
text: {}
|
|
12250
12273
|
}
|
|
12251
12274
|
} = _ref3;
|
|
12252
|
-
var [isHovered, setIsHovered] = useState(false);
|
|
12253
12275
|
var handleOptionClick = event => {
|
|
12254
12276
|
if (event && event.stopPropagation) event.stopPropagation();
|
|
12255
12277
|
callback(option);
|
|
12256
12278
|
};
|
|
12257
|
-
var handleHover = () => setIsHovered(!isHovered);
|
|
12258
12279
|
return /*#__PURE__*/React.createElement(CountryItem, Object.assign({
|
|
12259
12280
|
margin: 0,
|
|
12260
12281
|
role: "DropDownItem",
|
|
@@ -12262,11 +12283,11 @@ var DropDownItem = _ref3 => {
|
|
|
12262
12283
|
fontWeight: "normal",
|
|
12263
12284
|
paddingVertical: 6,
|
|
12264
12285
|
paddingHorizontal: 12,
|
|
12265
|
-
onMouseEnter: handleHover,
|
|
12266
|
-
onMouseLeave: handleHover,
|
|
12267
12286
|
onClick: handleOptionClick,
|
|
12268
12287
|
fontSize: Typography.fontSizes[size],
|
|
12269
|
-
|
|
12288
|
+
_hover: {
|
|
12289
|
+
opacity: 0.8
|
|
12290
|
+
}
|
|
12270
12291
|
}, views['text']), option);
|
|
12271
12292
|
};
|
|
12272
12293
|
var DropDown$1 = _ref4 => {
|
|
@@ -12345,7 +12366,6 @@ var CountryPickerView = _ref5 => {
|
|
|
12345
12366
|
var IconColor = getColor('color.blueGray.700', {
|
|
12346
12367
|
themeMode: elementMode ? elementMode : themeMode
|
|
12347
12368
|
});
|
|
12348
|
-
var handleHover = () => setIsHovered(!isHovered);
|
|
12349
12369
|
var handleFocus = () => setIsFocused(true);
|
|
12350
12370
|
var handleCallback = option => {
|
|
12351
12371
|
setHide(!hide);
|
|
@@ -12402,13 +12422,13 @@ var CountryPickerView = _ref5 => {
|
|
|
12402
12422
|
variant: variant,
|
|
12403
12423
|
value: value,
|
|
12404
12424
|
color: 'theme.primary',
|
|
12405
|
-
isHovered: isHovered,
|
|
12406
12425
|
isDisabled: isDisabled,
|
|
12407
12426
|
isReadOnly: isReadOnly,
|
|
12408
12427
|
isFocused: isFocused,
|
|
12409
12428
|
showLabel: showLabel,
|
|
12410
|
-
|
|
12411
|
-
|
|
12429
|
+
_hover: !isDisabled && !error ? {
|
|
12430
|
+
borderColor: 'theme.primary'
|
|
12431
|
+
} : undefined
|
|
12412
12432
|
}, /*#__PURE__*/React.createElement(FieldWrapper, null, showLabel && (/*#__PURE__*/React.createElement(FieldLabel, Object.assign({
|
|
12413
12433
|
htmlFor: id,
|
|
12414
12434
|
color: 'theme.primary',
|
|
@@ -12683,6 +12703,7 @@ var ComboBoxView = _ref => {
|
|
|
12683
12703
|
relation
|
|
12684
12704
|
} = useElementPosition();
|
|
12685
12705
|
var dropdownRef = useRef(null);
|
|
12706
|
+
var [isHovered, setIsHovered] = useState(false);
|
|
12686
12707
|
// Get optimal positioning style based on available space
|
|
12687
12708
|
var getDropdownStyle = () => {
|
|
12688
12709
|
if (!relation) {
|
|
@@ -12722,13 +12743,13 @@ var ComboBoxView = _ref => {
|
|
|
12722
12743
|
var handleClickOutside = event => {
|
|
12723
12744
|
var path = event.composedPath();
|
|
12724
12745
|
var isOutside = !path.some(element => (element == null ? void 0 : element.id) === 'combobox-dropdown');
|
|
12725
|
-
if (isOutside) {
|
|
12746
|
+
if (isOutside && triggerRef.current && !triggerRef.current.contains(event.target)) {
|
|
12726
12747
|
setIsDropdownVisible(false);
|
|
12727
12748
|
}
|
|
12728
12749
|
};
|
|
12729
12750
|
document.addEventListener('mousedown', handleClickOutside);
|
|
12730
12751
|
return () => document.removeEventListener('mousedown', handleClickOutside);
|
|
12731
|
-
}, []);
|
|
12752
|
+
}, []); // triggerRef is stable
|
|
12732
12753
|
// Defines 'handleSearch' to filter items based on the user's query.
|
|
12733
12754
|
var handleSearch = query => {
|
|
12734
12755
|
setSearchQuery(query);
|
|
@@ -12757,71 +12778,102 @@ var ComboBoxView = _ref => {
|
|
|
12757
12778
|
views: views == null ? void 0 : views.label,
|
|
12758
12779
|
htmlFor: props.id
|
|
12759
12780
|
}, label)), /*#__PURE__*/React.createElement(View, {
|
|
12760
|
-
position: "relative"
|
|
12761
|
-
|
|
12781
|
+
position: "relative",
|
|
12782
|
+
width: "100%"
|
|
12783
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
12762
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),
|
|
12763
12794
|
cursor: "pointer",
|
|
12764
|
-
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
|
|
12768
|
-
|
|
12769
|
-
borderRadius: "4px",
|
|
12770
|
-
justifyContent: "space-between",
|
|
12771
|
-
minWidth: 300,
|
|
12772
|
-
flexWrap: "nowrap"
|
|
12773
|
-
}, views == null ? void 0 : views.container), /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
12774
|
-
gap: 15,
|
|
12795
|
+
views: {
|
|
12796
|
+
container: views == null ? void 0 : views.container
|
|
12797
|
+
}
|
|
12798
|
+
}, /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
12799
|
+
gap: 10,
|
|
12775
12800
|
alignItems: "center",
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
onClick: () => setIsDropdownVisible(!isDropdownVisible)
|
|
12779
|
-
}, 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({
|
|
12780
12803
|
weight: "medium",
|
|
12781
12804
|
flexGrow: 1,
|
|
12782
|
-
color:
|
|
12783
|
-
|
|
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({
|
|
12784
12819
|
ref: dropdownRef,
|
|
12785
12820
|
id: "combobox-dropdown",
|
|
12786
12821
|
backgroundColor: "color.white",
|
|
12787
|
-
boxShadow: "rgba(0, 0, 0, 0.16) 0px
|
|
12822
|
+
boxShadow: "rgba(0, 0, 0, 0.16) 0px 4px 16px",
|
|
12788
12823
|
overflowY: "auto",
|
|
12789
|
-
borderRadius: "
|
|
12824
|
+
borderRadius: "8px",
|
|
12790
12825
|
style: getDropdownStyle()
|
|
12791
|
-
}, views == null ? void 0 : views.dropdown
|
|
12792
|
-
|
|
12793
|
-
|
|
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",
|
|
12794
12833
|
width: "100%",
|
|
12795
12834
|
type: "search",
|
|
12835
|
+
autoFocus: true,
|
|
12796
12836
|
value: searchQuery,
|
|
12797
12837
|
onChange: value => handleSearch(value),
|
|
12798
|
-
hint: placeholder,
|
|
12838
|
+
hint: placeholder || 'Search...',
|
|
12799
12839
|
isClearable: false,
|
|
12800
12840
|
left: /*#__PURE__*/React.createElement(SearchIcon, {
|
|
12801
|
-
widthHeight: 16
|
|
12841
|
+
widthHeight: 16,
|
|
12842
|
+
color: "color.gray.400"
|
|
12802
12843
|
}),
|
|
12803
12844
|
views: {
|
|
12804
12845
|
container: Object.assign({
|
|
12805
12846
|
width: '100%',
|
|
12806
|
-
padding: '
|
|
12807
|
-
|
|
12808
|
-
|
|
12847
|
+
padding: '0'
|
|
12848
|
+
}, views == null ? void 0 : views.text),
|
|
12849
|
+
field: {
|
|
12850
|
+
fontSize: '14px'
|
|
12851
|
+
}
|
|
12809
12852
|
}
|
|
12810
|
-
})), filteredItems.length > 0 && (/*#__PURE__*/React.createElement(View, {
|
|
12853
|
+
}))), filteredItems.length > 0 && (/*#__PURE__*/React.createElement(View, {
|
|
12811
12854
|
margin: 0,
|
|
12812
12855
|
padding: 4
|
|
12813
12856
|
}, filteredItems.map((item, index) => (/*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
12814
12857
|
justifyContent: "space-between",
|
|
12815
12858
|
key: item.value,
|
|
12816
|
-
padding: "12px",
|
|
12859
|
+
padding: "8px 12px",
|
|
12817
12860
|
cursor: "pointer",
|
|
12818
12861
|
borderRadius: 4,
|
|
12819
12862
|
backgroundColor: index === highlightedIndex ? 'color.gray.100' : 'transparent',
|
|
12820
12863
|
onMouseEnter: () => setHighlightedIndex(index),
|
|
12821
|
-
onClick: () => handleSelect(item)
|
|
12822
|
-
|
|
12823
|
-
|
|
12824
|
-
|
|
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")))))));
|
|
12825
12877
|
};
|
|
12826
12878
|
|
|
12827
12879
|
var _excluded$C = ["id", "name", "items", "placeholder", "searchPlaceholder"];
|
|
@@ -13063,53 +13115,56 @@ var TagChip = _ref => {
|
|
|
13063
13115
|
isDisabled,
|
|
13064
13116
|
isReadOnly
|
|
13065
13117
|
} = _ref;
|
|
13118
|
+
var [isRemoveHovered, setIsRemoveHovered] = React.useState(false);
|
|
13066
13119
|
var {
|
|
13067
13120
|
getColor
|
|
13068
13121
|
} = useTheme();
|
|
13069
13122
|
var chipSize = {
|
|
13070
13123
|
xs: {
|
|
13071
|
-
padding: '2px
|
|
13124
|
+
padding: '2px 8px',
|
|
13072
13125
|
fontSize: '10px',
|
|
13073
13126
|
iconSize: 10
|
|
13074
13127
|
},
|
|
13075
13128
|
sm: {
|
|
13076
|
-
padding: '4px
|
|
13129
|
+
padding: '4px 10px',
|
|
13077
13130
|
fontSize: '12px',
|
|
13078
13131
|
iconSize: 12
|
|
13079
13132
|
},
|
|
13080
13133
|
md: {
|
|
13081
|
-
padding: '6px
|
|
13134
|
+
padding: '6px 14px',
|
|
13082
13135
|
fontSize: '14px',
|
|
13083
13136
|
iconSize: 14
|
|
13084
13137
|
},
|
|
13085
13138
|
lg: {
|
|
13086
|
-
padding: '8px
|
|
13139
|
+
padding: '8px 16px',
|
|
13087
13140
|
fontSize: '16px',
|
|
13088
13141
|
iconSize: 16
|
|
13089
13142
|
},
|
|
13090
13143
|
xl: {
|
|
13091
|
-
padding: '10px
|
|
13144
|
+
padding: '10px 18px',
|
|
13092
13145
|
fontSize: '18px',
|
|
13093
13146
|
iconSize: 18
|
|
13094
13147
|
}
|
|
13095
13148
|
}[size] || {
|
|
13096
|
-
padding: '6px
|
|
13149
|
+
padding: '6px 14px',
|
|
13097
13150
|
fontSize: '14px',
|
|
13098
13151
|
iconSize: 14
|
|
13099
13152
|
};
|
|
13100
13153
|
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
13101
13154
|
alignItems: "center",
|
|
13102
|
-
gap:
|
|
13155
|
+
gap: 6,
|
|
13103
13156
|
padding: chipSize.padding,
|
|
13104
|
-
backgroundColor: "
|
|
13157
|
+
backgroundColor: "white",
|
|
13105
13158
|
borderRadius: "16px",
|
|
13106
13159
|
border: "1px solid",
|
|
13107
|
-
borderColor: "color.
|
|
13108
|
-
|
|
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)",
|
|
13109
13163
|
opacity: isDisabled ? 0.6 : 1,
|
|
13110
13164
|
_hover: !isDisabled && !isReadOnly ? {
|
|
13111
|
-
|
|
13112
|
-
|
|
13165
|
+
borderColor: 'color.gray.300',
|
|
13166
|
+
boxShadow: '0 4px 6px rgba(0,0,0,0.05)',
|
|
13167
|
+
transform: 'translateY(-1px)'
|
|
13113
13168
|
} : {}
|
|
13114
13169
|
}, views == null ? void 0 : views.tag), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
13115
13170
|
fontSize: chipSize.fontSize,
|
|
@@ -13121,13 +13176,19 @@ var TagChip = _ref => {
|
|
|
13121
13176
|
padding: "2px",
|
|
13122
13177
|
borderRadius: "50%",
|
|
13123
13178
|
transition: "all 0.2s ease",
|
|
13124
|
-
|
|
13125
|
-
|
|
13179
|
+
backgroundColor: isRemoveHovered ? 'color.red.50' : 'transparent',
|
|
13180
|
+
onMouseEnter: () => setIsRemoveHovered(true),
|
|
13181
|
+
onMouseLeave: () => setIsRemoveHovered(false),
|
|
13182
|
+
onClick: e => {
|
|
13183
|
+
e.stopPropagation();
|
|
13184
|
+
onRemove();
|
|
13126
13185
|
},
|
|
13127
|
-
|
|
13186
|
+
_hover: {
|
|
13187
|
+
backgroundColor: 'color.red.50'
|
|
13188
|
+
}
|
|
13128
13189
|
}, views == null ? void 0 : views.tagRemove), /*#__PURE__*/React.createElement(CloseIcon, {
|
|
13129
13190
|
widthHeight: chipSize.iconSize,
|
|
13130
|
-
color:
|
|
13191
|
+
color: isRemoveHovered ? 'color.red.500' : 'color.gray.400'
|
|
13131
13192
|
}))));
|
|
13132
13193
|
};
|
|
13133
13194
|
/**
|
|
@@ -13213,7 +13274,7 @@ var TagInputView = _ref2 => {
|
|
|
13213
13274
|
views: views
|
|
13214
13275
|
}, label)), /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
13215
13276
|
alignItems: "center",
|
|
13216
|
-
gap:
|
|
13277
|
+
gap: 8,
|
|
13217
13278
|
flexWrap: "wrap",
|
|
13218
13279
|
width: "100%",
|
|
13219
13280
|
minHeight: Typography.fontSizes[size],
|
|
@@ -16807,6 +16868,166 @@ var FormikUploader = _ref => {
|
|
|
16807
16868
|
};
|
|
16808
16869
|
FormikUploader.displayName = 'FormikUploader';
|
|
16809
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
|
+
|
|
16810
17031
|
var AttachmentPreview = _ref => {
|
|
16811
17032
|
var {
|
|
16812
17033
|
files,
|
|
@@ -17153,7 +17374,7 @@ var ModalTypography = {
|
|
|
17153
17374
|
}
|
|
17154
17375
|
};
|
|
17155
17376
|
|
|
17156
|
-
var _excluded$
|
|
17377
|
+
var _excluded$U = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
17157
17378
|
_excluded2$e = ["children", "shadow", "isFullScreen", "shape", "views", "isOpen"],
|
|
17158
17379
|
_excluded3$9 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
17159
17380
|
_excluded4$8 = ["children", "views"],
|
|
@@ -17168,7 +17389,7 @@ var ModalOverlay = _ref => {
|
|
|
17168
17389
|
position = 'center',
|
|
17169
17390
|
views
|
|
17170
17391
|
} = _ref,
|
|
17171
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
17392
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
|
|
17172
17393
|
var handleClick = () => {
|
|
17173
17394
|
if (!isClosePrevented) onClose();
|
|
17174
17395
|
};
|
|
@@ -17416,7 +17637,7 @@ var DrawerPlacements = {
|
|
|
17416
17637
|
}
|
|
17417
17638
|
};
|
|
17418
17639
|
|
|
17419
|
-
var _excluded$
|
|
17640
|
+
var _excluded$V = ["isOpen", "onClose", "isClosePrevented", "blur", "children"],
|
|
17420
17641
|
_excluded2$f = ["placement", "size", "children"],
|
|
17421
17642
|
_excluded3$a = ["children", "onClose", "buttonPosition"],
|
|
17422
17643
|
_excluded4$9 = ["children"],
|
|
@@ -17429,7 +17650,7 @@ var DrawerOverlay = _ref => {
|
|
|
17429
17650
|
blur,
|
|
17430
17651
|
children
|
|
17431
17652
|
} = _ref,
|
|
17432
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
17653
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$V);
|
|
17433
17654
|
var handleClick = () => {
|
|
17434
17655
|
if (!isClosePrevented) onClose();
|
|
17435
17656
|
};
|
|
@@ -17541,7 +17762,7 @@ var DrawerFooter = _ref5 => {
|
|
|
17541
17762
|
}, props), children);
|
|
17542
17763
|
};
|
|
17543
17764
|
|
|
17544
|
-
var _excluded$
|
|
17765
|
+
var _excluded$W = ["isOpen", "onClose", "placement", "size", "isClosePrevented", "children"];
|
|
17545
17766
|
/**
|
|
17546
17767
|
* A drawer is a panel that slides out from the edge of the screen.
|
|
17547
17768
|
* It can be useful when you need users to complete a task or view some details without leaving the current page.
|
|
@@ -17555,7 +17776,7 @@ var DrawerComponent = _ref => {
|
|
|
17555
17776
|
isClosePrevented,
|
|
17556
17777
|
children
|
|
17557
17778
|
} = _ref,
|
|
17558
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
17779
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
|
|
17559
17780
|
var transformStyle = isOpen ? {} : {
|
|
17560
17781
|
transform: placement === 'left' || placement === 'right' ? "translateX(" + (placement === 'left' ? '-100%' : '100%') + ")" : "translateY(" + (placement === 'top' ? '-100%' : '100%') + ")"
|
|
17561
17782
|
};
|
|
@@ -17725,7 +17946,7 @@ var NavigationMenuItemStates = {
|
|
|
17725
17946
|
}
|
|
17726
17947
|
};
|
|
17727
17948
|
|
|
17728
|
-
var _excluded$
|
|
17949
|
+
var _excluded$X = ["href", "children", "views"];
|
|
17729
17950
|
// Create context for the NavigationMenu
|
|
17730
17951
|
var NavigationMenuContext = /*#__PURE__*/createContext({
|
|
17731
17952
|
activeItemId: null,
|
|
@@ -18101,7 +18322,7 @@ var NavigationMenuLink = _ref6 => {
|
|
|
18101
18322
|
children,
|
|
18102
18323
|
views
|
|
18103
18324
|
} = _ref6,
|
|
18104
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded$
|
|
18325
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded$X);
|
|
18105
18326
|
var {
|
|
18106
18327
|
itemValue,
|
|
18107
18328
|
isDisabled
|
|
@@ -18168,7 +18389,7 @@ var NavigationMenuView = _ref7 => {
|
|
|
18168
18389
|
})))));
|
|
18169
18390
|
};
|
|
18170
18391
|
|
|
18171
|
-
var _excluded$
|
|
18392
|
+
var _excluded$Y = ["items", "children", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
|
|
18172
18393
|
/**
|
|
18173
18394
|
* NavigationMenu component for creating navigation menus with optional nested items.
|
|
18174
18395
|
* Supports both data-driven approach (with items prop) and compound component pattern.
|
|
@@ -18185,7 +18406,7 @@ var NavigationMenuComponent = _ref => {
|
|
|
18185
18406
|
onItemActivate,
|
|
18186
18407
|
views
|
|
18187
18408
|
} = _ref,
|
|
18188
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
18409
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
|
|
18189
18410
|
var {
|
|
18190
18411
|
activeItemId,
|
|
18191
18412
|
setActiveItemId,
|
|
@@ -18998,7 +19219,7 @@ var HighlightStyles = {
|
|
|
18998
19219
|
})
|
|
18999
19220
|
};
|
|
19000
19221
|
|
|
19001
|
-
var _excluded$
|
|
19222
|
+
var _excluded$Z = ["text", "typingSpeed", "pauseTime", "onComplete", "showCursor", "cursorColor", "textStyle", "as"];
|
|
19002
19223
|
/**
|
|
19003
19224
|
* A component that creates a typewriter effect for text
|
|
19004
19225
|
*/
|
|
@@ -19012,7 +19233,7 @@ var TypewriterEffect = _ref => {
|
|
|
19012
19233
|
cursorColor = 'currentColor',
|
|
19013
19234
|
textStyle
|
|
19014
19235
|
} = _ref,
|
|
19015
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
19236
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$Z);
|
|
19016
19237
|
// Convert text to array if it's a string
|
|
19017
19238
|
var textArray = Array.isArray(text) ? text : [text];
|
|
19018
19239
|
// State for the currently displayed text
|
|
@@ -19079,18 +19300,8 @@ var TypewriterEffect = _ref => {
|
|
|
19079
19300
|
}))))));
|
|
19080
19301
|
};
|
|
19081
19302
|
|
|
19082
|
-
var _excluded$
|
|
19303
|
+
var _excluded$_ = ["text", "duration", "direction", "stagger", "sequential", "textStyle", "as", "wordProps"],
|
|
19083
19304
|
_excluded2$g = ["style"];
|
|
19084
|
-
// CSS keyframes injection - done once
|
|
19085
|
-
var KEYFRAMES_ID = 'slide-effect-keyframes';
|
|
19086
|
-
var injectKeyframes = () => {
|
|
19087
|
-
if (typeof document === 'undefined') return;
|
|
19088
|
-
if (document.getElementById(KEYFRAMES_ID)) return;
|
|
19089
|
-
var style = document.createElement('style');
|
|
19090
|
-
style.id = KEYFRAMES_ID;
|
|
19091
|
-
style.textContent = "\n @keyframes slideInUp {\n from { transform: translateY(100%); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n }\n @keyframes slideOutUp {\n from { transform: translateY(0); opacity: 1; }\n to { transform: translateY(-100%); opacity: 0; }\n }\n @keyframes slideInDown {\n from { transform: translateY(-100%); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n }\n @keyframes slideOutDown {\n from { transform: translateY(0); opacity: 1; }\n to { transform: translateY(100%); opacity: 0; }\n }\n ";
|
|
19092
|
-
document.head.appendChild(style);
|
|
19093
|
-
};
|
|
19094
19305
|
var SlideEffect = _ref => {
|
|
19095
19306
|
var {
|
|
19096
19307
|
text,
|
|
@@ -19101,16 +19312,12 @@ var SlideEffect = _ref => {
|
|
|
19101
19312
|
textStyle,
|
|
19102
19313
|
wordProps
|
|
19103
19314
|
} = _ref,
|
|
19104
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
19315
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
|
|
19105
19316
|
var [displayedText, setDisplayedText] = useState(text);
|
|
19106
19317
|
var [phase, setPhase] = useState('entering');
|
|
19107
19318
|
var [animKey, setAnimKey] = useState(0);
|
|
19108
19319
|
var pendingTextRef = useRef(null);
|
|
19109
19320
|
var timeoutRef = useRef(null);
|
|
19110
|
-
// Inject keyframes once on mount
|
|
19111
|
-
useEffect(() => {
|
|
19112
|
-
injectKeyframes();
|
|
19113
|
-
}, []);
|
|
19114
19321
|
// Handle text changes
|
|
19115
19322
|
useEffect(() => {
|
|
19116
19323
|
if (text === displayedText && phase === 'visible') {
|
|
@@ -19176,12 +19383,10 @@ var SlideEffect = _ref => {
|
|
|
19176
19383
|
style: customWordStyle
|
|
19177
19384
|
} = _ref2,
|
|
19178
19385
|
restWordProps = _objectWithoutPropertiesLoose(_ref2, _excluded2$g);
|
|
19179
|
-
// Get animation
|
|
19386
|
+
// Get animation functions based on direction
|
|
19180
19387
|
var isUp = direction === 'up';
|
|
19181
|
-
var enterAnim = isUp ? 'slideInUp' : 'slideInDown';
|
|
19182
|
-
var exitAnim = isUp ? 'slideOutUp' : 'slideOutDown';
|
|
19183
19388
|
// Calculate delay for each word
|
|
19184
|
-
var getDelay =
|
|
19389
|
+
var getDelay = index => {
|
|
19185
19390
|
if (sequential) {
|
|
19186
19391
|
// Sequential: one word at a time
|
|
19187
19392
|
return index * (duration + stagger);
|
|
@@ -19203,9 +19408,6 @@ var SlideEffect = _ref => {
|
|
|
19203
19408
|
flexWrap: 'nowrap',
|
|
19204
19409
|
whiteSpace: 'nowrap'
|
|
19205
19410
|
}), []);
|
|
19206
|
-
// Determine current animation
|
|
19207
|
-
var currentAnim = phase === 'exiting' ? exitAnim : enterAnim;
|
|
19208
|
-
var isAnimating = phase === 'entering' || phase === 'exiting';
|
|
19209
19411
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
19210
19412
|
as: "span",
|
|
19211
19413
|
style: containerStyle
|
|
@@ -19214,26 +19416,72 @@ var SlideEffect = _ref => {
|
|
|
19214
19416
|
}, words.map((word, index) => {
|
|
19215
19417
|
var delay = getDelay(index);
|
|
19216
19418
|
var isLast = index === words.length - 1;
|
|
19419
|
+
// Create animation based on phase and direction
|
|
19420
|
+
var wordAnimation;
|
|
19421
|
+
var durationStr = duration + "ms";
|
|
19422
|
+
var delayStr = delay + "ms";
|
|
19423
|
+
if (phase === 'entering') {
|
|
19424
|
+
// Use app-studio animations for entering
|
|
19425
|
+
wordAnimation = isUp ? Animation.slideInUp({
|
|
19426
|
+
duration: durationStr,
|
|
19427
|
+
delay: delayStr,
|
|
19428
|
+
timingFunction: 'ease-out',
|
|
19429
|
+
fillMode: 'both'
|
|
19430
|
+
}) : Animation.slideInDown({
|
|
19431
|
+
duration: durationStr,
|
|
19432
|
+
delay: delayStr,
|
|
19433
|
+
timingFunction: 'ease-out',
|
|
19434
|
+
fillMode: 'both'
|
|
19435
|
+
});
|
|
19436
|
+
} else if (phase === 'exiting') {
|
|
19437
|
+
// Custom animation objects for exiting (slideOut not in app-studio yet)
|
|
19438
|
+
wordAnimation = isUp ? {
|
|
19439
|
+
from: {
|
|
19440
|
+
transform: 'translateY(0)',
|
|
19441
|
+
opacity: 1
|
|
19442
|
+
},
|
|
19443
|
+
to: {
|
|
19444
|
+
transform: 'translateY(-100%)',
|
|
19445
|
+
opacity: 0
|
|
19446
|
+
},
|
|
19447
|
+
duration: durationStr,
|
|
19448
|
+
delay: delayStr,
|
|
19449
|
+
timingFunction: 'ease-in',
|
|
19450
|
+
fillMode: 'both'
|
|
19451
|
+
} : {
|
|
19452
|
+
from: {
|
|
19453
|
+
transform: 'translateY(0)',
|
|
19454
|
+
opacity: 1
|
|
19455
|
+
},
|
|
19456
|
+
to: {
|
|
19457
|
+
transform: 'translateY(100%)',
|
|
19458
|
+
opacity: 0
|
|
19459
|
+
},
|
|
19460
|
+
duration: durationStr,
|
|
19461
|
+
delay: delayStr,
|
|
19462
|
+
timingFunction: 'ease-in',
|
|
19463
|
+
fillMode: 'both'
|
|
19464
|
+
};
|
|
19465
|
+
}
|
|
19217
19466
|
var wordStyle = Object.assign({}, customWordStyle, {
|
|
19218
19467
|
display: 'inline-block',
|
|
19219
19468
|
marginRight: isLast ? 0 : '0.25em',
|
|
19220
|
-
willChange: isAnimating ? 'transform, opacity' : 'auto',
|
|
19221
|
-
animation: isAnimating ? currentAnim + " " + duration + "ms ease-out " + delay + "ms both" : 'none',
|
|
19222
19469
|
transform: phase === 'visible' ? 'translateY(0)' : undefined,
|
|
19223
19470
|
opacity: phase === 'visible' ? 1 : undefined
|
|
19224
19471
|
});
|
|
19225
19472
|
return /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19226
19473
|
key: animKey + "-" + index,
|
|
19227
|
-
as: "span"
|
|
19474
|
+
as: "span",
|
|
19475
|
+
animate: wordAnimation
|
|
19228
19476
|
}, restWordProps, {
|
|
19229
19477
|
style: wordStyle
|
|
19230
19478
|
}), word);
|
|
19231
19479
|
})));
|
|
19232
19480
|
};
|
|
19233
19481
|
|
|
19234
|
-
var _excluded
|
|
19482
|
+
var _excluded$$ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "responsive", "centered", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential"];
|
|
19235
19483
|
function escapeRegExp(string) {
|
|
19236
|
-
return string.replace(/[.*+?^${}()|[\\]
|
|
19484
|
+
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
19237
19485
|
}
|
|
19238
19486
|
var TitleView = _ref => {
|
|
19239
19487
|
var {
|
|
@@ -19257,7 +19505,7 @@ var TitleView = _ref => {
|
|
|
19257
19505
|
highlightSlideStagger = 50,
|
|
19258
19506
|
highlightSlideSequential = true
|
|
19259
19507
|
} = _ref,
|
|
19260
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded
|
|
19508
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$$);
|
|
19261
19509
|
var {
|
|
19262
19510
|
ref,
|
|
19263
19511
|
inView
|
|
@@ -19329,7 +19577,13 @@ var TitleView = _ref => {
|
|
|
19329
19577
|
// Get the text to display
|
|
19330
19578
|
var text = typeof finalDisplayedText === 'string' ? finalDisplayedText : typeof children === 'string' ? children : '';
|
|
19331
19579
|
if (typeof text === 'string' && activeHighlightTarget) {
|
|
19332
|
-
var pattern =
|
|
19580
|
+
var pattern = (() => {
|
|
19581
|
+
if (Array.isArray(activeHighlightTarget)) {
|
|
19582
|
+
var escaped = activeHighlightTarget.map(t => escapeRegExp(String(t)));
|
|
19583
|
+
return new RegExp("(" + escaped.join('|') + ")", 'gi');
|
|
19584
|
+
}
|
|
19585
|
+
return new RegExp("(" + escapeRegExp(String(activeHighlightTarget)) + ")", 'gi');
|
|
19586
|
+
})();
|
|
19333
19587
|
var parts = [];
|
|
19334
19588
|
var lastIndex = 0;
|
|
19335
19589
|
var match;
|
|
@@ -19556,7 +19810,7 @@ var getToggleVariants = (color, isLight) => ({
|
|
|
19556
19810
|
}
|
|
19557
19811
|
});
|
|
19558
19812
|
|
|
19559
|
-
var _excluded
|
|
19813
|
+
var _excluded$10 = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views", "backgroundColor", "color", "themeMode"];
|
|
19560
19814
|
var ToggleView = _ref => {
|
|
19561
19815
|
var _ref2;
|
|
19562
19816
|
var {
|
|
@@ -19576,7 +19830,7 @@ var ToggleView = _ref => {
|
|
|
19576
19830
|
// 2nd candidate for main color
|
|
19577
19831
|
themeMode: elementMode
|
|
19578
19832
|
} = _ref,
|
|
19579
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded
|
|
19833
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$10);
|
|
19580
19834
|
/* theme helpers */
|
|
19581
19835
|
var {
|
|
19582
19836
|
getColor,
|
|
@@ -19620,7 +19874,7 @@ var ToggleView = _ref => {
|
|
|
19620
19874
|
}, props, views == null ? void 0 : views.container), children);
|
|
19621
19875
|
};
|
|
19622
19876
|
|
|
19623
|
-
var _excluded$
|
|
19877
|
+
var _excluded$11 = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
19624
19878
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
19625
19879
|
var ToggleComponent = _ref => {
|
|
19626
19880
|
var {
|
|
@@ -19632,7 +19886,7 @@ var ToggleComponent = _ref => {
|
|
|
19632
19886
|
isToggled = false,
|
|
19633
19887
|
onToggle
|
|
19634
19888
|
} = _ref,
|
|
19635
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
19889
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$11);
|
|
19636
19890
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
19637
19891
|
var {
|
|
19638
19892
|
isHovered,
|
|
@@ -19852,8 +20106,7 @@ var DragAndDropView = _ref => {
|
|
|
19852
20106
|
onTouchStart: e => handleDragStart(e, index),
|
|
19853
20107
|
position: "relative",
|
|
19854
20108
|
cursor: "grab",
|
|
19855
|
-
transition: "transform 0.2s"
|
|
19856
|
-
backgroundColor: draggedIndex === index ? 'color.gray.100' : 'transparent'
|
|
20109
|
+
transition: "transform 0.2s"
|
|
19857
20110
|
}, itemProps, views == null ? void 0 : views.item), renderItem ? renderItem(item, index) : item))));
|
|
19858
20111
|
};
|
|
19859
20112
|
|
|
@@ -19967,7 +20220,7 @@ var DropdownMenuItemStates = {
|
|
|
19967
20220
|
}
|
|
19968
20221
|
};
|
|
19969
20222
|
|
|
19970
|
-
var _excluded$
|
|
20223
|
+
var _excluded$12 = ["children", "views"],
|
|
19971
20224
|
_excluded2$h = ["items", "side", "align", "views"],
|
|
19972
20225
|
_excluded3$b = ["item", "views"],
|
|
19973
20226
|
_excluded4$a = ["views"],
|
|
@@ -20008,7 +20261,7 @@ var DropdownMenuTrigger = _ref2 => {
|
|
|
20008
20261
|
children,
|
|
20009
20262
|
views
|
|
20010
20263
|
} = _ref2,
|
|
20011
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
20264
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$12);
|
|
20012
20265
|
var {
|
|
20013
20266
|
isOpen,
|
|
20014
20267
|
setIsOpen,
|
|
@@ -20261,7 +20514,7 @@ var DropdownMenuView = _ref6 => {
|
|
|
20261
20514
|
}));
|
|
20262
20515
|
};
|
|
20263
20516
|
|
|
20264
|
-
var _excluded$
|
|
20517
|
+
var _excluded$13 = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
|
|
20265
20518
|
/**
|
|
20266
20519
|
* DropdownMenu component for displaying a menu when clicking on a trigger element.
|
|
20267
20520
|
*/
|
|
@@ -20276,7 +20529,7 @@ var DropdownMenuComponent = _ref => {
|
|
|
20276
20529
|
defaultOpen = false,
|
|
20277
20530
|
views
|
|
20278
20531
|
} = _ref,
|
|
20279
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
20532
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$13);
|
|
20280
20533
|
var {
|
|
20281
20534
|
isOpen,
|
|
20282
20535
|
setIsOpen,
|
|
@@ -20690,7 +20943,7 @@ var DefaultColorPalette$1 = [
|
|
|
20690
20943
|
category: 'neutral'
|
|
20691
20944
|
}];
|
|
20692
20945
|
|
|
20693
|
-
var _excluded$
|
|
20946
|
+
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"];
|
|
20694
20947
|
var ColorPickerView = _ref => {
|
|
20695
20948
|
var {
|
|
20696
20949
|
// Basic props
|
|
@@ -20725,7 +20978,7 @@ var ColorPickerView = _ref => {
|
|
|
20725
20978
|
dropdownRef
|
|
20726
20979
|
// Other props
|
|
20727
20980
|
} = _ref,
|
|
20728
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
20981
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$14);
|
|
20729
20982
|
var {
|
|
20730
20983
|
getColor
|
|
20731
20984
|
} = useTheme();
|
|
@@ -20928,7 +21181,8 @@ var DefaultEmojiPickerStyles = {
|
|
|
20928
21181
|
gap: '4px',
|
|
20929
21182
|
maxHeight: '240px',
|
|
20930
21183
|
overflowY: 'auto',
|
|
20931
|
-
padding: '4px'
|
|
21184
|
+
padding: '4px',
|
|
21185
|
+
color: 'color.black'
|
|
20932
21186
|
},
|
|
20933
21187
|
emoji: {
|
|
20934
21188
|
width: '32px',
|
|
@@ -23056,7 +23310,7 @@ var useEmojiPickerState = props => {
|
|
|
23056
23310
|
};
|
|
23057
23311
|
};
|
|
23058
23312
|
|
|
23059
|
-
var _excluded$
|
|
23313
|
+
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"];
|
|
23060
23314
|
var EmojiPickerView = _ref => {
|
|
23061
23315
|
var {
|
|
23062
23316
|
// Basic props
|
|
@@ -23094,7 +23348,7 @@ var EmojiPickerView = _ref => {
|
|
|
23094
23348
|
dropdownRef
|
|
23095
23349
|
// Other props
|
|
23096
23350
|
} = _ref,
|
|
23097
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
23351
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$15);
|
|
23098
23352
|
var {
|
|
23099
23353
|
getColor
|
|
23100
23354
|
} = useTheme();
|
|
@@ -23156,7 +23410,8 @@ var EmojiPickerView = _ref => {
|
|
|
23156
23410
|
title: emoji.name,
|
|
23157
23411
|
_hover: {
|
|
23158
23412
|
backgroundColor: 'color.gray.100'
|
|
23159
|
-
}
|
|
23413
|
+
},
|
|
23414
|
+
color: "color.gray.800"
|
|
23160
23415
|
}, views == null ? void 0 : views.emoji), emoji.emoji))) : (/*#__PURE__*/React.createElement(View, {
|
|
23161
23416
|
gridColumn: "1 / -1",
|
|
23162
23417
|
padding: "20px",
|
|
@@ -23281,7 +23536,7 @@ var MenubarItemStates = {
|
|
|
23281
23536
|
}
|
|
23282
23537
|
};
|
|
23283
23538
|
|
|
23284
|
-
var _excluded$
|
|
23539
|
+
var _excluded$16 = ["children", "orientation", "size", "variant", "views"];
|
|
23285
23540
|
// Create context for the Menubar
|
|
23286
23541
|
var MenubarContext = /*#__PURE__*/createContext({
|
|
23287
23542
|
activeMenuId: null,
|
|
@@ -23318,7 +23573,7 @@ var MenubarRoot = _ref2 => {
|
|
|
23318
23573
|
variant = 'default',
|
|
23319
23574
|
views
|
|
23320
23575
|
} = _ref2,
|
|
23321
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
23576
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$16);
|
|
23322
23577
|
var Container = orientation === 'horizontal' ? Horizontal : Vertical;
|
|
23323
23578
|
return /*#__PURE__*/React.createElement(Container, Object.assign({
|
|
23324
23579
|
role: "menubar",
|
|
@@ -23638,7 +23893,7 @@ var MenubarView = _ref8 => {
|
|
|
23638
23893
|
})))))));
|
|
23639
23894
|
};
|
|
23640
23895
|
|
|
23641
|
-
var _excluded$
|
|
23896
|
+
var _excluded$17 = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
|
|
23642
23897
|
/**
|
|
23643
23898
|
* Menubar component for creating horizontal or vertical menu bars with dropdown menus.
|
|
23644
23899
|
*/
|
|
@@ -23652,7 +23907,7 @@ var MenubarComponent = _ref => {
|
|
|
23652
23907
|
defaultOpenMenuId = null,
|
|
23653
23908
|
views
|
|
23654
23909
|
} = _ref,
|
|
23655
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
23910
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$17);
|
|
23656
23911
|
var {
|
|
23657
23912
|
activeMenuId,
|
|
23658
23913
|
setActiveMenuId,
|
|
@@ -23834,7 +24089,7 @@ var DisabledButtonStyles = {
|
|
|
23834
24089
|
}
|
|
23835
24090
|
};
|
|
23836
24091
|
|
|
23837
|
-
var _excluded$
|
|
24092
|
+
var _excluded$18 = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
|
|
23838
24093
|
var PaginationView = _ref => {
|
|
23839
24094
|
var {
|
|
23840
24095
|
currentPage,
|
|
@@ -23865,7 +24120,7 @@ var PaginationView = _ref => {
|
|
|
23865
24120
|
visiblePageNumbers,
|
|
23866
24121
|
views
|
|
23867
24122
|
} = _ref,
|
|
23868
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24123
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$18);
|
|
23869
24124
|
var handlePageChange = page => {
|
|
23870
24125
|
if (page < 1 || page > totalPages || page === currentPage) {
|
|
23871
24126
|
return;
|
|
@@ -23984,7 +24239,7 @@ var PaginationView = _ref => {
|
|
|
23984
24239
|
}, option.label))))));
|
|
23985
24240
|
};
|
|
23986
24241
|
|
|
23987
|
-
var _excluded$
|
|
24242
|
+
var _excluded$19 = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
|
|
23988
24243
|
/**
|
|
23989
24244
|
* Pagination component for navigating through pages of content.
|
|
23990
24245
|
*/
|
|
@@ -24005,7 +24260,7 @@ var PaginationComponent = _ref => {
|
|
|
24005
24260
|
shape = 'rounded',
|
|
24006
24261
|
views
|
|
24007
24262
|
} = _ref,
|
|
24008
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24263
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$19);
|
|
24009
24264
|
var {
|
|
24010
24265
|
visiblePageNumbers
|
|
24011
24266
|
} = usePaginationState(currentPage, totalPages, maxPageButtons);
|
|
@@ -24029,7 +24284,7 @@ var PaginationComponent = _ref => {
|
|
|
24029
24284
|
};
|
|
24030
24285
|
var Pagination = PaginationComponent;
|
|
24031
24286
|
|
|
24032
|
-
var _excluded$
|
|
24287
|
+
var _excluded$1a = ["value", "max", "color", "backgroundColor", "height", "radius", "views", "themeMode"];
|
|
24033
24288
|
var ProgressBarView = _ref => {
|
|
24034
24289
|
var {
|
|
24035
24290
|
value = 0,
|
|
@@ -24041,7 +24296,7 @@ var ProgressBarView = _ref => {
|
|
|
24041
24296
|
views,
|
|
24042
24297
|
themeMode: elementMode
|
|
24043
24298
|
} = _ref,
|
|
24044
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24299
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
|
|
24045
24300
|
var {
|
|
24046
24301
|
getColor,
|
|
24047
24302
|
themeMode
|
|
@@ -24131,7 +24386,7 @@ var DefaultSeparatorStyles = {
|
|
|
24131
24386
|
}
|
|
24132
24387
|
};
|
|
24133
24388
|
|
|
24134
|
-
var _excluded$
|
|
24389
|
+
var _excluded$1b = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views", "themeMode"];
|
|
24135
24390
|
var SeparatorView = _ref => {
|
|
24136
24391
|
var {
|
|
24137
24392
|
orientation = 'horizontal',
|
|
@@ -24143,7 +24398,7 @@ var SeparatorView = _ref => {
|
|
|
24143
24398
|
decorative = false,
|
|
24144
24399
|
views
|
|
24145
24400
|
} = _ref,
|
|
24146
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24401
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1b);
|
|
24147
24402
|
// Access theme if needed for future enhancements
|
|
24148
24403
|
var {
|
|
24149
24404
|
themeMode
|
|
@@ -24211,7 +24466,7 @@ var SeparatorComponent = props => {
|
|
|
24211
24466
|
var Separator = SeparatorComponent;
|
|
24212
24467
|
var Divider = SeparatorComponent;
|
|
24213
24468
|
|
|
24214
|
-
var _excluded$
|
|
24469
|
+
var _excluded$1c = ["isSupported", "isSharing", "onShare", "label", "children", "icon", "size", "isDisabled", "isLoading", "iconPosition", "disableWhenUnsupported"];
|
|
24215
24470
|
var ICON_SIZE_MAP = {
|
|
24216
24471
|
xs: 12,
|
|
24217
24472
|
sm: 14,
|
|
@@ -24234,7 +24489,7 @@ var ShareButtonView = _ref => {
|
|
|
24234
24489
|
iconPosition,
|
|
24235
24490
|
disableWhenUnsupported = true
|
|
24236
24491
|
} = _ref,
|
|
24237
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24492
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$1c);
|
|
24238
24493
|
var resolvedSize = size != null ? size : 'md';
|
|
24239
24494
|
var resolvedIcon = icon != null ? icon : (/*#__PURE__*/React.createElement(ShareIcon, {
|
|
24240
24495
|
widthHeight: ICON_SIZE_MAP[resolvedSize],
|
|
@@ -24336,14 +24591,14 @@ var useShareButton = props => {
|
|
|
24336
24591
|
};
|
|
24337
24592
|
};
|
|
24338
24593
|
|
|
24339
|
-
var _excluded$
|
|
24594
|
+
var _excluded$1d = ["shareData", "onShareStart", "onShareSuccess", "onShareCancel", "onShareError", "onUnsupported", "onClick"];
|
|
24340
24595
|
var ShareButtonComponent = props => {
|
|
24341
24596
|
var {
|
|
24342
24597
|
isSupported,
|
|
24343
24598
|
isSharing,
|
|
24344
24599
|
handleShare
|
|
24345
24600
|
} = useShareButton(props);
|
|
24346
|
-
var viewProps = _objectWithoutPropertiesLoose(props, _excluded$
|
|
24601
|
+
var viewProps = _objectWithoutPropertiesLoose(props, _excluded$1d);
|
|
24347
24602
|
return /*#__PURE__*/React.createElement(ShareButtonView, Object.assign({}, viewProps, {
|
|
24348
24603
|
isSupported: isSupported,
|
|
24349
24604
|
isSharing: isSharing,
|
|
@@ -24397,7 +24652,7 @@ var getThemes$2 = themeMode => {
|
|
|
24397
24652
|
};
|
|
24398
24653
|
};
|
|
24399
24654
|
|
|
24400
|
-
var _excluded$
|
|
24655
|
+
var _excluded$1e = ["label", "status", "views", "themeMode"];
|
|
24401
24656
|
var StatusIndicatorView = _ref => {
|
|
24402
24657
|
var {
|
|
24403
24658
|
label,
|
|
@@ -24405,7 +24660,7 @@ var StatusIndicatorView = _ref => {
|
|
|
24405
24660
|
views,
|
|
24406
24661
|
themeMode: elementMode
|
|
24407
24662
|
} = _ref,
|
|
24408
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24663
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
|
|
24409
24664
|
var {
|
|
24410
24665
|
themeMode
|
|
24411
24666
|
} = useTheme();
|
|
@@ -24588,7 +24843,7 @@ var SidebarTransitions = {
|
|
|
24588
24843
|
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)'
|
|
24589
24844
|
};
|
|
24590
24845
|
|
|
24591
|
-
var _excluded$
|
|
24846
|
+
var _excluded$1f = ["children", "showToggleButton", "views"],
|
|
24592
24847
|
_excluded2$i = ["children", "views"],
|
|
24593
24848
|
_excluded3$c = ["children", "views"],
|
|
24594
24849
|
_excluded4$b = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
@@ -24621,7 +24876,7 @@ var SidebarHeader = _ref2 => {
|
|
|
24621
24876
|
showToggleButton = true,
|
|
24622
24877
|
views
|
|
24623
24878
|
} = _ref2,
|
|
24624
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
24879
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1f);
|
|
24625
24880
|
var {
|
|
24626
24881
|
isExpanded,
|
|
24627
24882
|
toggleExpanded,
|
|
@@ -24776,7 +25031,7 @@ var SidebarView = _ref5 => {
|
|
|
24776
25031
|
}))));
|
|
24777
25032
|
};
|
|
24778
25033
|
|
|
24779
|
-
var _excluded$
|
|
25034
|
+
var _excluded$1g = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
|
|
24780
25035
|
/**
|
|
24781
25036
|
* Sidebar component for creating collapsible, themeable and customizable sidebars.
|
|
24782
25037
|
*/
|
|
@@ -24798,7 +25053,7 @@ var SidebarComponent = _ref => {
|
|
|
24798
25053
|
breakpointBehavior = 'overlay',
|
|
24799
25054
|
views
|
|
24800
25055
|
} = _ref,
|
|
24801
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
25056
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
|
|
24802
25057
|
var {
|
|
24803
25058
|
isExpanded,
|
|
24804
25059
|
toggleExpanded,
|
|
@@ -25263,7 +25518,7 @@ var HandleIconStyles = {
|
|
|
25263
25518
|
}
|
|
25264
25519
|
};
|
|
25265
25520
|
|
|
25266
|
-
var _excluded$
|
|
25521
|
+
var _excluded$1h = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
25267
25522
|
_excluded2$j = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
25268
25523
|
_excluded3$d = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
25269
25524
|
// Create context for the Resizable component
|
|
@@ -25308,7 +25563,7 @@ var ResizablePanel = _ref2 => {
|
|
|
25308
25563
|
onCollapseChange,
|
|
25309
25564
|
views
|
|
25310
25565
|
} = _ref2,
|
|
25311
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
25566
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1h);
|
|
25312
25567
|
var {
|
|
25313
25568
|
orientation,
|
|
25314
25569
|
registerPanel,
|
|
@@ -25523,7 +25778,7 @@ var ResizableView = _ref4 => {
|
|
|
25523
25778
|
}, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
|
|
25524
25779
|
};
|
|
25525
25780
|
|
|
25526
|
-
var _excluded$
|
|
25781
|
+
var _excluded$1i = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
|
|
25527
25782
|
/**
|
|
25528
25783
|
* Resizable component for creating resizable panel groups and layouts.
|
|
25529
25784
|
*/
|
|
@@ -25543,7 +25798,7 @@ var ResizableComponent = _ref => {
|
|
|
25543
25798
|
keyboardResizeBy = 10,
|
|
25544
25799
|
views
|
|
25545
25800
|
} = _ref,
|
|
25546
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
25801
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1i);
|
|
25547
25802
|
var {
|
|
25548
25803
|
isResizing,
|
|
25549
25804
|
setIsResizing,
|
|
@@ -26314,7 +26569,7 @@ var CommandFooterStyles = {
|
|
|
26314
26569
|
color: 'color.gray.500'
|
|
26315
26570
|
};
|
|
26316
26571
|
|
|
26317
|
-
var _excluded$
|
|
26572
|
+
var _excluded$1j = ["value", "onValueChange", "placeholder", "views"],
|
|
26318
26573
|
_excluded2$k = ["children", "views"],
|
|
26319
26574
|
_excluded3$e = ["heading", "children", "views"],
|
|
26320
26575
|
_excluded4$c = ["item", "selected", "onSelect", "views"],
|
|
@@ -26346,7 +26601,7 @@ var CommandInput = _ref2 => {
|
|
|
26346
26601
|
placeholder = 'Type a command or search...',
|
|
26347
26602
|
views
|
|
26348
26603
|
} = _ref2,
|
|
26349
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
26604
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1j);
|
|
26350
26605
|
var inputRef = useRef(null);
|
|
26351
26606
|
// Focus input when component mounts
|
|
26352
26607
|
React.useEffect(() => {
|
|
@@ -26529,7 +26784,7 @@ var CommandView = _ref7 => {
|
|
|
26529
26784
|
})))), footer && (/*#__PURE__*/React.createElement(View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
|
|
26530
26785
|
};
|
|
26531
26786
|
|
|
26532
|
-
var _excluded$
|
|
26787
|
+
var _excluded$1k = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
|
|
26533
26788
|
/**
|
|
26534
26789
|
* Command component for displaying a command palette with search functionality.
|
|
26535
26790
|
*/
|
|
@@ -26547,7 +26802,7 @@ var CommandComponent = _ref => {
|
|
|
26547
26802
|
footer,
|
|
26548
26803
|
views
|
|
26549
26804
|
} = _ref,
|
|
26550
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
26805
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1k);
|
|
26551
26806
|
var {
|
|
26552
26807
|
search,
|
|
26553
26808
|
setSearch,
|
|
@@ -26784,7 +27039,7 @@ var getArrowStyles = position => {
|
|
|
26784
27039
|
}
|
|
26785
27040
|
};
|
|
26786
27041
|
|
|
26787
|
-
var _excluded$
|
|
27042
|
+
var _excluded$1l = ["children", "views", "asChild"],
|
|
26788
27043
|
_excluded2$l = ["children", "views"],
|
|
26789
27044
|
_excluded3$f = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
26790
27045
|
// Create context for the Tooltip
|
|
@@ -26820,7 +27075,7 @@ var TooltipTrigger = _ref2 => {
|
|
|
26820
27075
|
views,
|
|
26821
27076
|
asChild = false
|
|
26822
27077
|
} = _ref2,
|
|
26823
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
27078
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1l);
|
|
26824
27079
|
var {
|
|
26825
27080
|
openTooltip,
|
|
26826
27081
|
closeTooltip,
|
|
@@ -27004,7 +27259,7 @@ var TooltipView = _ref4 => {
|
|
|
27004
27259
|
}, 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)))));
|
|
27005
27260
|
};
|
|
27006
27261
|
|
|
27007
|
-
var _excluded$
|
|
27262
|
+
var _excluded$1m = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
|
|
27008
27263
|
/**
|
|
27009
27264
|
* Tooltip component for displaying additional information when hovering over an element.
|
|
27010
27265
|
* Supports configurable positions, delays, and styling.
|
|
@@ -27024,7 +27279,7 @@ var TooltipComponent = _ref => {
|
|
|
27024
27279
|
isDisabled = false,
|
|
27025
27280
|
views
|
|
27026
27281
|
} = _ref,
|
|
27027
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
27282
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
|
|
27028
27283
|
var tooltipState = useTooltipState({
|
|
27029
27284
|
defaultOpen,
|
|
27030
27285
|
openDelay,
|
|
@@ -27333,7 +27588,7 @@ var DefaultGradientStyles = {
|
|
|
27333
27588
|
}
|
|
27334
27589
|
};
|
|
27335
27590
|
|
|
27336
|
-
var _excluded$
|
|
27591
|
+
var _excluded$1n = ["type", "direction", "shape", "position", "from", "to", "colors", "animate", "animationDuration", "children", "views", "themeMode"];
|
|
27337
27592
|
var GradientView = _ref => {
|
|
27338
27593
|
var {
|
|
27339
27594
|
type = 'linear',
|
|
@@ -27349,7 +27604,7 @@ var GradientView = _ref => {
|
|
|
27349
27604
|
views,
|
|
27350
27605
|
themeMode: elementMode
|
|
27351
27606
|
} = _ref,
|
|
27352
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
27607
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
|
|
27353
27608
|
var {
|
|
27354
27609
|
getColor,
|
|
27355
27610
|
themeMode
|
|
@@ -27425,7 +27680,7 @@ var Gradient = props => {
|
|
|
27425
27680
|
return /*#__PURE__*/React.createElement(GradientView, Object.assign({}, props));
|
|
27426
27681
|
};
|
|
27427
27682
|
|
|
27428
|
-
var _excluded$
|
|
27683
|
+
var _excluded$1o = ["children", "showRadialGradient", "views", "themeMode"],
|
|
27429
27684
|
_excluded2$m = ["number", "children"],
|
|
27430
27685
|
_excluded3$g = ["rows", "cols", "squareSize"],
|
|
27431
27686
|
_excluded4$d = ["count", "colors", "speed", "shapes"],
|
|
@@ -27446,7 +27701,7 @@ var AuroraBackground = _ref => {
|
|
|
27446
27701
|
showRadialGradient = true,
|
|
27447
27702
|
views
|
|
27448
27703
|
} = _ref,
|
|
27449
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
27704
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1o);
|
|
27450
27705
|
var gradientColors = {
|
|
27451
27706
|
white: 'rgba(255,255,255,1)',
|
|
27452
27707
|
transparent: 'rgba(255,255,255,0)'
|
|
@@ -27993,5 +28248,5 @@ var Background = /*#__PURE__*/Object.assign(BackgroundComponent, {
|
|
|
27993
28248
|
});
|
|
27994
28249
|
Background.displayName = 'Background';
|
|
27995
28250
|
|
|
27996
|
-
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 };
|
|
28251
|
+
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 };
|
|
27997
28252
|
//# sourceMappingURL=web.esm.js.map
|