@app-studio/web 0.8.80 → 0.8.81
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/Button/Button/Button.props.d.ts +1 -2
- package/dist/web.cjs.development.js +149 -135
- 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 +149 -135
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +149 -135
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -22,8 +22,7 @@ export interface ButtonProps extends Omit<$ButtonProps, 'size'> {
|
|
|
22
22
|
ariaLabel?: string;
|
|
23
23
|
variant?: Variant;
|
|
24
24
|
effect?: Effects;
|
|
25
|
-
|
|
26
|
-
linkProps?: ViewProps;
|
|
25
|
+
colorScheme?: string;
|
|
27
26
|
views?: {
|
|
28
27
|
container?: ViewProps;
|
|
29
28
|
icon?: ViewProps;
|
|
@@ -3525,78 +3525,6 @@ var IconSizes$1 = {
|
|
|
3525
3525
|
padding: 14
|
|
3526
3526
|
}
|
|
3527
3527
|
};
|
|
3528
|
-
/**
|
|
3529
|
-
* Button variants with consistent styling
|
|
3530
|
-
*/
|
|
3531
|
-
var getButtonVariants = (color, isLight) => ({
|
|
3532
|
-
filled: {
|
|
3533
|
-
backgroundColor: color,
|
|
3534
|
-
color: isLight ? 'color.gray.900' : 'color.white',
|
|
3535
|
-
borderWidth: 1,
|
|
3536
|
-
borderStyle: 'solid',
|
|
3537
|
-
borderColor: 'transparent',
|
|
3538
|
-
on: {
|
|
3539
|
-
hover: {
|
|
3540
|
-
filter: 'brightness(0.9)',
|
|
3541
|
-
transform: 'translateY(-1px)'
|
|
3542
|
-
},
|
|
3543
|
-
active: {
|
|
3544
|
-
filter: 'brightness(0.85)',
|
|
3545
|
-
transform: 'translateY(0)'
|
|
3546
|
-
}
|
|
3547
|
-
},
|
|
3548
|
-
transition: 'all 0.2s ease'
|
|
3549
|
-
},
|
|
3550
|
-
outline: {
|
|
3551
|
-
backgroundColor: 'transparent',
|
|
3552
|
-
borderWidth: 1,
|
|
3553
|
-
borderStyle: 'solid',
|
|
3554
|
-
borderColor: color,
|
|
3555
|
-
color: color,
|
|
3556
|
-
on: {
|
|
3557
|
-
hover: {
|
|
3558
|
-
backgroundColor: color + "10",
|
|
3559
|
-
transform: 'translateY(-1px)'
|
|
3560
|
-
},
|
|
3561
|
-
active: {
|
|
3562
|
-
backgroundColor: color + "20",
|
|
3563
|
-
transform: 'translateY(0)'
|
|
3564
|
-
}
|
|
3565
|
-
},
|
|
3566
|
-
transition: 'all 0.2s ease'
|
|
3567
|
-
},
|
|
3568
|
-
ghost: {
|
|
3569
|
-
backgroundColor: 'transparent',
|
|
3570
|
-
color: color,
|
|
3571
|
-
borderWidth: 0,
|
|
3572
|
-
borderStyle: 'none',
|
|
3573
|
-
borderColor: 'transparent',
|
|
3574
|
-
on: {
|
|
3575
|
-
hover: {
|
|
3576
|
-
backgroundColor: color + "10",
|
|
3577
|
-
transform: 'translateY(-1px)'
|
|
3578
|
-
},
|
|
3579
|
-
active: {
|
|
3580
|
-
backgroundColor: color + "20",
|
|
3581
|
-
transform: 'translateY(0)'
|
|
3582
|
-
}
|
|
3583
|
-
},
|
|
3584
|
-
transition: 'all 0.2s ease'
|
|
3585
|
-
},
|
|
3586
|
-
link: {
|
|
3587
|
-
backgroundColor: 'transparent',
|
|
3588
|
-
color: color,
|
|
3589
|
-
textDecoration: 'underline',
|
|
3590
|
-
textUnderlineOffset: 2,
|
|
3591
|
-
on: {
|
|
3592
|
-
hover: {
|
|
3593
|
-
textDecoration: 'underline',
|
|
3594
|
-
textDecorationThickness: 2
|
|
3595
|
-
}
|
|
3596
|
-
},
|
|
3597
|
-
transition: 'all 0.2s ease'
|
|
3598
|
-
}
|
|
3599
|
-
});
|
|
3600
3528
|
|
|
3601
3529
|
// Defines a mapping of spinning speed labels to their respective duration in seconds for the Loader component animations.
|
|
3602
3530
|
// Sets up a scale of sizes, mapping size labels to numerical values to be used for Loader component dimensions.
|
|
@@ -3790,7 +3718,9 @@ React__default.createElement(LoaderView, Object.assign({}, props)));
|
|
|
3790
3718
|
// Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
|
|
3791
3719
|
var Loader = LoaderComponent;
|
|
3792
3720
|
|
|
3793
|
-
var _excluded$a = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered", "isExternal", "themeMode", "
|
|
3721
|
+
var _excluded$a = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered", "isExternal", "themeMode", "views", "colorScheme"],
|
|
3722
|
+
_excluded2$3 = ["_hover", "_active"],
|
|
3723
|
+
_excluded3$3 = ["height"];
|
|
3794
3724
|
var contrast = /*#__PURE__*/require('contrast');
|
|
3795
3725
|
var ButtonView = _ref => {
|
|
3796
3726
|
var _props$onClick;
|
|
@@ -3813,11 +3743,12 @@ var ButtonView = _ref => {
|
|
|
3813
3743
|
loaderProps = {},
|
|
3814
3744
|
loaderPosition = 'left',
|
|
3815
3745
|
effect = 'default',
|
|
3746
|
+
isHovered,
|
|
3816
3747
|
setIsHovered = () => {},
|
|
3817
3748
|
isExternal = false,
|
|
3818
3749
|
themeMode: elementMode,
|
|
3819
|
-
|
|
3820
|
-
|
|
3750
|
+
views,
|
|
3751
|
+
colorScheme = 'theme.primary'
|
|
3821
3752
|
} = _ref,
|
|
3822
3753
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
3823
3754
|
var {
|
|
@@ -3829,13 +3760,79 @@ var ButtonView = _ref => {
|
|
|
3829
3760
|
var defaultNativeProps = {
|
|
3830
3761
|
disabled: !isActive
|
|
3831
3762
|
};
|
|
3832
|
-
var buttonColor = isActive ?
|
|
3833
|
-
|
|
3763
|
+
var buttonColor = isActive ? colorScheme : 'theme.disabled';
|
|
3764
|
+
var hovering = isHovered && effect === 'hover';
|
|
3765
|
+
var reverse = isHovered && effect === 'reverse';
|
|
3834
3766
|
// Determine if the button color is light or dark for proper contrast
|
|
3835
3767
|
var isLight = contrast(getColor(buttonColor, elementMode ? elementMode : themeMode)) == 'light';
|
|
3836
|
-
//
|
|
3837
|
-
var ButtonVariants =
|
|
3838
|
-
|
|
3768
|
+
// Define button variants with effect support
|
|
3769
|
+
var ButtonVariants = {
|
|
3770
|
+
filled: {
|
|
3771
|
+
backgroundColor: reverse ? 'transparent' : buttonColor,
|
|
3772
|
+
color: reverse ? isLight ? 'white' : buttonColor : isLight ? buttonColor : 'white',
|
|
3773
|
+
borderWidth: 1,
|
|
3774
|
+
borderStyle: 'solid',
|
|
3775
|
+
borderColor: reverse ? buttonColor : 'transparent',
|
|
3776
|
+
_hover: {
|
|
3777
|
+
backgroundColor: reverse ? buttonColor + "10" : "" + buttonColor,
|
|
3778
|
+
transform: 'translateY(-2px)',
|
|
3779
|
+
boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)'
|
|
3780
|
+
},
|
|
3781
|
+
_active: {
|
|
3782
|
+
backgroundColor: reverse ? buttonColor + "20" : "" + buttonColor,
|
|
3783
|
+
transform: 'translateY(0)',
|
|
3784
|
+
boxShadow: '0 2px 4px rgba(0, 0, 0, 0.1)'
|
|
3785
|
+
}
|
|
3786
|
+
},
|
|
3787
|
+
outline: {
|
|
3788
|
+
backgroundColor: reverse ? buttonColor : 'transparent',
|
|
3789
|
+
borderWidth: 1,
|
|
3790
|
+
borderStyle: 'solid',
|
|
3791
|
+
borderColor: reverse ? buttonColor : colorScheme,
|
|
3792
|
+
color: reverse ? 'white' : buttonColor,
|
|
3793
|
+
_hover: {
|
|
3794
|
+
backgroundColor: reverse ? "" + buttonColor : buttonColor + "10",
|
|
3795
|
+
transform: 'translateY(-2px)',
|
|
3796
|
+
boxShadow: '0 4px 8px rgba(0, 0, 0, 0.05)'
|
|
3797
|
+
},
|
|
3798
|
+
_active: {
|
|
3799
|
+
backgroundColor: reverse ? buttonColor + "b0" : buttonColor + "20",
|
|
3800
|
+
transform: 'translateY(0)',
|
|
3801
|
+
boxShadow: '0 2px 4px rgba(0, 0, 0, 0.05)'
|
|
3802
|
+
}
|
|
3803
|
+
},
|
|
3804
|
+
link: {
|
|
3805
|
+
backgroundColor: 'transparent',
|
|
3806
|
+
borderWidth: 0,
|
|
3807
|
+
borderStyle: 'none',
|
|
3808
|
+
borderColor: 'transparent',
|
|
3809
|
+
color: buttonColor,
|
|
3810
|
+
textDecoration: reverse ? 'none' : 'underline',
|
|
3811
|
+
_hover: {
|
|
3812
|
+
opacity: 0.8,
|
|
3813
|
+
textDecorationThickness: '2px'
|
|
3814
|
+
},
|
|
3815
|
+
_active: {
|
|
3816
|
+
opacity: 0.8,
|
|
3817
|
+
textDecorationThickness: '2px'
|
|
3818
|
+
}
|
|
3819
|
+
},
|
|
3820
|
+
ghost: {
|
|
3821
|
+
backgroundColor: reverse ? buttonColor : 'transparent',
|
|
3822
|
+
color: reverse ? 'white' : buttonColor,
|
|
3823
|
+
borderWidth: 0,
|
|
3824
|
+
borderStyle: 'none',
|
|
3825
|
+
borderColor: 'transparent',
|
|
3826
|
+
_hover: {
|
|
3827
|
+
backgroundColor: reverse ? "" + buttonColor : buttonColor + "10",
|
|
3828
|
+
transform: 'translateY(-2px)'
|
|
3829
|
+
},
|
|
3830
|
+
_active: {
|
|
3831
|
+
backgroundColor: reverse ? buttonColor + "b0" : buttonColor + "20",
|
|
3832
|
+
transform: 'translateY(0)'
|
|
3833
|
+
}
|
|
3834
|
+
}
|
|
3835
|
+
};
|
|
3839
3836
|
var buttonSizeStyles = ButtonSizes[size];
|
|
3840
3837
|
var buttonVariant = ButtonVariants[variant];
|
|
3841
3838
|
var scaleWidth = {
|
|
@@ -3862,6 +3859,13 @@ var ButtonView = _ref => {
|
|
|
3862
3859
|
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
|
|
3863
3860
|
size: size === 'xs' || size === 'sm' ? 'sm' : 'md'
|
|
3864
3861
|
}, loaderProps))));
|
|
3862
|
+
// Extract hover and active styles from buttonVariant
|
|
3863
|
+
var _ref2 = buttonVariant || {},
|
|
3864
|
+
{
|
|
3865
|
+
_hover,
|
|
3866
|
+
_active
|
|
3867
|
+
} = _ref2,
|
|
3868
|
+
baseButtonVariant = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
3865
3869
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
3866
3870
|
gap: 8,
|
|
3867
3871
|
as: "button",
|
|
@@ -3876,12 +3880,22 @@ var ButtonView = _ref => {
|
|
|
3876
3880
|
onMouseEnter: () => handleHover(true),
|
|
3877
3881
|
onMouseLeave: () => handleHover(false),
|
|
3878
3882
|
cursor: isActive ? 'pointer' : 'default',
|
|
3883
|
+
filter: hovering && effect === 'hover' ? 'brightness(0.85)' : 'brightness(1)',
|
|
3884
|
+
transition: "all 0.2s ease",
|
|
3885
|
+
transform: hovering && effect === 'hover' && !isDisabled ? 'translateY(-5px)' : '',
|
|
3879
3886
|
// Apply consistent styling according to design guidelines
|
|
3880
3887
|
// Apply shadow if provided
|
|
3881
3888
|
boxShadow: shadow ? shadow : undefined
|
|
3882
|
-
}, defaultNativeProps,
|
|
3889
|
+
}, defaultNativeProps, (_ref3 => {
|
|
3890
|
+
var rest = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
|
|
3891
|
+
return rest;
|
|
3892
|
+
})(props), buttonSizeStyles, baseButtonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, {
|
|
3893
|
+
// Apply hover and active styles
|
|
3894
|
+
_hover: _hover,
|
|
3895
|
+
_active: _active
|
|
3896
|
+
}, views == null ? void 0 : views.container), variant === 'link' && to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
|
|
3883
3897
|
to: to,
|
|
3884
|
-
textDecorationColor:
|
|
3898
|
+
textDecorationColor: colorScheme,
|
|
3885
3899
|
textDecorationThickness: "1px",
|
|
3886
3900
|
textUnderlineOffset: "2px",
|
|
3887
3901
|
transition: "all 0.2s ease",
|
|
@@ -3889,7 +3903,7 @@ var ButtonView = _ref => {
|
|
|
3889
3903
|
_hover: {
|
|
3890
3904
|
textDecorationThickness: '2px'
|
|
3891
3905
|
}
|
|
3892
|
-
},
|
|
3906
|
+
}, views == null ? void 0 : views.link), content)) : content);
|
|
3893
3907
|
};
|
|
3894
3908
|
|
|
3895
3909
|
// Importing a custom hook to manage the state specific to the button component.
|
|
@@ -4012,8 +4026,8 @@ var useCardContext = () => {
|
|
|
4012
4026
|
};
|
|
4013
4027
|
|
|
4014
4028
|
var _excluded$b = ["children", "views", "style", "themeMode"],
|
|
4015
|
-
_excluded2$
|
|
4016
|
-
_excluded3$
|
|
4029
|
+
_excluded2$4 = ["children", "views", "style", "themeMode"],
|
|
4030
|
+
_excluded3$4 = ["children", "views", "style", "themeMode"],
|
|
4017
4031
|
_excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
|
|
4018
4032
|
var CardHeader = _ref => {
|
|
4019
4033
|
var _contextStyles$header;
|
|
@@ -4039,7 +4053,7 @@ var CardContent = _ref2 => {
|
|
|
4039
4053
|
children,
|
|
4040
4054
|
style
|
|
4041
4055
|
} = _ref2,
|
|
4042
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
4056
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
|
|
4043
4057
|
var theme = appStudio.useTheme();
|
|
4044
4058
|
var {
|
|
4045
4059
|
styles: contextStyles
|
|
@@ -4057,7 +4071,7 @@ var CardFooter = _ref3 => {
|
|
|
4057
4071
|
children,
|
|
4058
4072
|
style
|
|
4059
4073
|
} = _ref3,
|
|
4060
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
4074
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
|
|
4061
4075
|
var theme = appStudio.useTheme();
|
|
4062
4076
|
var {
|
|
4063
4077
|
styles: contextStyles
|
|
@@ -4421,8 +4435,8 @@ var useCarouselContext = () => {
|
|
|
4421
4435
|
};
|
|
4422
4436
|
|
|
4423
4437
|
var _excluded$c = ["children", "isActive", "views"],
|
|
4424
|
-
_excluded2$
|
|
4425
|
-
_excluded3$
|
|
4438
|
+
_excluded2$5 = ["views", "children"],
|
|
4439
|
+
_excluded3$5 = ["views", "children"],
|
|
4426
4440
|
_excluded4$4 = ["children", "views"],
|
|
4427
4441
|
_excluded5$1 = ["children", "views", "style"],
|
|
4428
4442
|
_excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "themeMode"];
|
|
@@ -4448,7 +4462,7 @@ var CarouselPreviousComponent = _ref2 => {
|
|
|
4448
4462
|
children // Allow custom content/icon
|
|
4449
4463
|
// Spread remaining ButtonProps
|
|
4450
4464
|
} = _ref2,
|
|
4451
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
4465
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
|
|
4452
4466
|
var {
|
|
4453
4467
|
goToPrevious,
|
|
4454
4468
|
canGoPrevious,
|
|
@@ -4471,7 +4485,7 @@ var CarouselNextComponent = _ref3 => {
|
|
|
4471
4485
|
views,
|
|
4472
4486
|
children
|
|
4473
4487
|
} = _ref3,
|
|
4474
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
4488
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
|
|
4475
4489
|
var {
|
|
4476
4490
|
goToNext,
|
|
4477
4491
|
canGoNext,
|
|
@@ -5715,8 +5729,8 @@ var calculateMenuPosition = function calculateMenuPosition(x, y, menuWidth, menu
|
|
|
5715
5729
|
};
|
|
5716
5730
|
|
|
5717
5731
|
var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
|
|
5718
|
-
_excluded2$
|
|
5719
|
-
_excluded3$
|
|
5732
|
+
_excluded2$6 = ["items", "children", "position", "side", "align", "views", "style"],
|
|
5733
|
+
_excluded3$6 = ["item", "children", "onSelect", "isDisabled", "views"],
|
|
5720
5734
|
_excluded4$5 = ["views"],
|
|
5721
5735
|
_excluded5$2 = ["views"],
|
|
5722
5736
|
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
|
|
@@ -5824,7 +5838,7 @@ var ContextMenuContent = _ref3 => {
|
|
|
5824
5838
|
views,
|
|
5825
5839
|
style // Capture user-provided style
|
|
5826
5840
|
} = _ref3,
|
|
5827
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
5841
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$6);
|
|
5828
5842
|
var {
|
|
5829
5843
|
isOpen,
|
|
5830
5844
|
position: contextPosition,
|
|
@@ -5895,7 +5909,7 @@ var ContextMenuItem = _ref4 => {
|
|
|
5895
5909
|
isDisabled = false,
|
|
5896
5910
|
views
|
|
5897
5911
|
} = _ref4,
|
|
5898
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
5912
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
|
|
5899
5913
|
var {
|
|
5900
5914
|
activeSubmenuId,
|
|
5901
5915
|
setActiveSubmenuId,
|
|
@@ -6121,7 +6135,7 @@ ContextMenu.Divider = ContextMenuDivider;
|
|
|
6121
6135
|
ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
|
|
6122
6136
|
|
|
6123
6137
|
var _excluded$g = ["src", "color", "views", "themeMode"],
|
|
6124
|
-
_excluded2$
|
|
6138
|
+
_excluded2$7 = ["path"];
|
|
6125
6139
|
var FileSVG = _ref => {
|
|
6126
6140
|
var {
|
|
6127
6141
|
src,
|
|
@@ -6151,7 +6165,7 @@ var FileImage = _ref2 => {
|
|
|
6151
6165
|
var {
|
|
6152
6166
|
path
|
|
6153
6167
|
} = _ref2,
|
|
6154
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
6168
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
|
|
6155
6169
|
return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
|
|
6156
6170
|
src: path
|
|
6157
6171
|
}, props));
|
|
@@ -6604,8 +6618,8 @@ var IconSizes$2 = {
|
|
|
6604
6618
|
};
|
|
6605
6619
|
|
|
6606
6620
|
var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
6607
|
-
_excluded2$
|
|
6608
|
-
_excluded3$
|
|
6621
|
+
_excluded2$8 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
6622
|
+
_excluded3$7 = ["option", "size", "removeOption"],
|
|
6609
6623
|
_excluded4$6 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "shape", "variant", "views", "onChange", "setHide", "setValue", "setIsHovered", "setIsFocused", "setHighlightedIndex", "highlightedIndex"];
|
|
6610
6624
|
/**
|
|
6611
6625
|
* Item Component
|
|
@@ -6726,7 +6740,7 @@ var HiddenSelect = _ref4 => {
|
|
|
6726
6740
|
isReadOnly = false,
|
|
6727
6741
|
options = []
|
|
6728
6742
|
} = _ref4,
|
|
6729
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$
|
|
6743
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$8);
|
|
6730
6744
|
var handleChange = event => {
|
|
6731
6745
|
if (onChange) onChange(event);
|
|
6732
6746
|
};
|
|
@@ -6831,7 +6845,7 @@ var MultiSelect = _ref6 => {
|
|
|
6831
6845
|
size = 'md',
|
|
6832
6846
|
removeOption = () => {}
|
|
6833
6847
|
} = _ref6,
|
|
6834
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$
|
|
6848
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$7);
|
|
6835
6849
|
var handleClick = () => removeOption(option);
|
|
6836
6850
|
return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
6837
6851
|
gap: 8,
|
|
@@ -9365,8 +9379,8 @@ var IconSizes$4 = {
|
|
|
9365
9379
|
};
|
|
9366
9380
|
|
|
9367
9381
|
var _excluded$t = ["size"],
|
|
9368
|
-
_excluded2$
|
|
9369
|
-
_excluded3$
|
|
9382
|
+
_excluded2$9 = ["size"],
|
|
9383
|
+
_excluded3$8 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "views", "themeMode"];
|
|
9370
9384
|
var CountryList = _ref => {
|
|
9371
9385
|
var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
9372
9386
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
@@ -9377,7 +9391,7 @@ var CountrySelector = props => (/*#__PURE__*/React__default.createElement(appStu
|
|
|
9377
9391
|
type: "country"
|
|
9378
9392
|
}, props)));
|
|
9379
9393
|
var CountryItem = _ref2 => {
|
|
9380
|
-
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
9394
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$9);
|
|
9381
9395
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
9382
9396
|
as: "li"
|
|
9383
9397
|
}, props));
|
|
@@ -9479,7 +9493,7 @@ var CountryPickerView = _ref5 => {
|
|
|
9479
9493
|
},
|
|
9480
9494
|
themeMode: elementMode
|
|
9481
9495
|
} = _ref5,
|
|
9482
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$
|
|
9496
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$8);
|
|
9483
9497
|
var {
|
|
9484
9498
|
getColor,
|
|
9485
9499
|
themeMode
|
|
@@ -9728,7 +9742,7 @@ var usePasswordState = props => {
|
|
|
9728
9742
|
};
|
|
9729
9743
|
|
|
9730
9744
|
var _excluded$v = ["visibleIcon", "hiddenIcon"],
|
|
9731
|
-
_excluded2$
|
|
9745
|
+
_excluded2$a = ["isVisible", "setIsVisible"];
|
|
9732
9746
|
var PasswordComponent = _ref => {
|
|
9733
9747
|
var {
|
|
9734
9748
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -9744,7 +9758,7 @@ var PasswordComponent = _ref => {
|
|
|
9744
9758
|
isVisible,
|
|
9745
9759
|
setIsVisible
|
|
9746
9760
|
} = _usePasswordState,
|
|
9747
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
9761
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
|
|
9748
9762
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
9749
9763
|
type: isVisible ? 'text' : 'password',
|
|
9750
9764
|
isClearable: false,
|
|
@@ -10758,7 +10772,7 @@ var TextFieldComponent$1 = props => {
|
|
|
10758
10772
|
var FormikTextField = TextFieldComponent$1;
|
|
10759
10773
|
|
|
10760
10774
|
var _excluded$D = ["visibleIcon", "hiddenIcon"],
|
|
10761
|
-
_excluded2$
|
|
10775
|
+
_excluded2$b = ["isVisible", "setIsVisible"];
|
|
10762
10776
|
var PasswordComponent$1 = _ref => {
|
|
10763
10777
|
var {
|
|
10764
10778
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -10775,7 +10789,7 @@ var PasswordComponent$1 = _ref => {
|
|
|
10775
10789
|
isVisible,
|
|
10776
10790
|
setIsVisible
|
|
10777
10791
|
} = _usePasswordState,
|
|
10778
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
10792
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$b);
|
|
10779
10793
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
10780
10794
|
type: isVisible ? 'text' : 'password',
|
|
10781
10795
|
isClearable: false,
|
|
@@ -12201,8 +12215,8 @@ var ModalTypography = {
|
|
|
12201
12215
|
};
|
|
12202
12216
|
|
|
12203
12217
|
var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
12204
|
-
_excluded2$
|
|
12205
|
-
_excluded3$
|
|
12218
|
+
_excluded2$c = ["children", "shadow", "isFullScreen", "shape", "views"],
|
|
12219
|
+
_excluded3$9 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
12206
12220
|
_excluded4$7 = ["children", "views"],
|
|
12207
12221
|
_excluded5$3 = ["children", "views"];
|
|
12208
12222
|
var ModalOverlay = _ref => {
|
|
@@ -12251,7 +12265,7 @@ var ModalContainer = _ref2 => {
|
|
|
12251
12265
|
shape = 'rounded',
|
|
12252
12266
|
views
|
|
12253
12267
|
} = _ref2,
|
|
12254
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
12268
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$c);
|
|
12255
12269
|
var defaultShadow = typeof document !== undefined ? {
|
|
12256
12270
|
boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
|
|
12257
12271
|
} : {
|
|
@@ -12284,7 +12298,7 @@ var ModalHeader = _ref3 => {
|
|
|
12284
12298
|
buttonPosition = 'right',
|
|
12285
12299
|
views
|
|
12286
12300
|
} = _ref3,
|
|
12287
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
12301
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$9);
|
|
12288
12302
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
12289
12303
|
var buttonIcon = /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
12290
12304
|
onClick: onClose
|
|
@@ -13759,8 +13773,8 @@ var getDropdownPosition = function getDropdownPosition(side, align) {
|
|
|
13759
13773
|
};
|
|
13760
13774
|
|
|
13761
13775
|
var _excluded$M = ["children", "views"],
|
|
13762
|
-
_excluded2$
|
|
13763
|
-
_excluded3$
|
|
13776
|
+
_excluded2$d = ["items", "side", "align", "views"],
|
|
13777
|
+
_excluded3$a = ["item", "views"],
|
|
13764
13778
|
_excluded4$8 = ["views"],
|
|
13765
13779
|
_excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
|
|
13766
13780
|
// Create context for the DropdownMenu
|
|
@@ -13821,7 +13835,7 @@ var DropdownMenuContent = _ref3 => {
|
|
|
13821
13835
|
align = 'start',
|
|
13822
13836
|
views
|
|
13823
13837
|
} = _ref3,
|
|
13824
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
13838
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$d);
|
|
13825
13839
|
var {
|
|
13826
13840
|
isOpen,
|
|
13827
13841
|
//activeSubmenuId, setActiveSubmenuId, size,
|
|
@@ -13857,7 +13871,7 @@ var DropdownMenuItem = _ref4 => {
|
|
|
13857
13871
|
item,
|
|
13858
13872
|
views
|
|
13859
13873
|
} = _ref4,
|
|
13860
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
13874
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$a);
|
|
13861
13875
|
var {
|
|
13862
13876
|
activeSubmenuId,
|
|
13863
13877
|
setActiveSubmenuId,
|
|
@@ -14170,7 +14184,7 @@ var useRect = ref => {
|
|
|
14170
14184
|
};
|
|
14171
14185
|
|
|
14172
14186
|
var _excluded$O = ["children", "views", "asChild"],
|
|
14173
|
-
_excluded2$
|
|
14187
|
+
_excluded2$e = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
14174
14188
|
// Create context for the HoverCard
|
|
14175
14189
|
var HoverCardContext = /*#__PURE__*/React.createContext({
|
|
14176
14190
|
isOpen: false,
|
|
@@ -14256,7 +14270,7 @@ var HoverCardContent = _ref3 => {
|
|
|
14256
14270
|
minWidth = '200px',
|
|
14257
14271
|
maxWidth = '300px'
|
|
14258
14272
|
} = _ref3,
|
|
14259
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
14273
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$e);
|
|
14260
14274
|
var {
|
|
14261
14275
|
isOpen,
|
|
14262
14276
|
cancelCloseTimer,
|
|
@@ -15319,8 +15333,8 @@ var SidebarTransitions = {
|
|
|
15319
15333
|
};
|
|
15320
15334
|
|
|
15321
15335
|
var _excluded$V = ["children", "showToggleButton", "views"],
|
|
15322
|
-
_excluded2$
|
|
15323
|
-
_excluded3$
|
|
15336
|
+
_excluded2$f = ["children", "views"],
|
|
15337
|
+
_excluded3$b = ["children", "views"],
|
|
15324
15338
|
_excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
15325
15339
|
// Create context for the Sidebar
|
|
15326
15340
|
var SidebarContext = /*#__PURE__*/React.createContext({
|
|
@@ -15418,7 +15432,7 @@ var SidebarContent = _ref3 => {
|
|
|
15418
15432
|
children,
|
|
15419
15433
|
views
|
|
15420
15434
|
} = _ref3,
|
|
15421
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
15435
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$f);
|
|
15422
15436
|
var {
|
|
15423
15437
|
isExpanded
|
|
15424
15438
|
} = useSidebarContext();
|
|
@@ -15436,7 +15450,7 @@ var SidebarFooter = _ref4 => {
|
|
|
15436
15450
|
children,
|
|
15437
15451
|
views
|
|
15438
15452
|
} = _ref4,
|
|
15439
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
15453
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
|
|
15440
15454
|
var {
|
|
15441
15455
|
isExpanded
|
|
15442
15456
|
} = useSidebarContext();
|
|
@@ -15994,8 +16008,8 @@ var HandleIconStyles = {
|
|
|
15994
16008
|
};
|
|
15995
16009
|
|
|
15996
16010
|
var _excluded$X = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
15997
|
-
_excluded2$
|
|
15998
|
-
_excluded3$
|
|
16011
|
+
_excluded2$g = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
16012
|
+
_excluded3$c = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "views"];
|
|
15999
16013
|
// Create context for the Resizable component
|
|
16000
16014
|
var ResizableContext = /*#__PURE__*/React.createContext({
|
|
16001
16015
|
orientation: 'horizontal',
|
|
@@ -16102,7 +16116,7 @@ var ResizableHandle = _ref3 => {
|
|
|
16102
16116
|
collapseTarget,
|
|
16103
16117
|
views
|
|
16104
16118
|
} = _ref3,
|
|
16105
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
16119
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$g);
|
|
16106
16120
|
var {
|
|
16107
16121
|
orientation,
|
|
16108
16122
|
size,
|
|
@@ -16242,7 +16256,7 @@ var ResizableView = _ref4 => {
|
|
|
16242
16256
|
containerRef,
|
|
16243
16257
|
views
|
|
16244
16258
|
} = _ref4,
|
|
16245
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
16259
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
|
|
16246
16260
|
var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
|
|
16247
16261
|
return /*#__PURE__*/React__default.createElement(Container, Object.assign({
|
|
16248
16262
|
ref: containerRef,
|
|
@@ -17039,8 +17053,8 @@ var CommandFooterStyles = {
|
|
|
17039
17053
|
};
|
|
17040
17054
|
|
|
17041
17055
|
var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
|
|
17042
|
-
_excluded2$
|
|
17043
|
-
_excluded3$
|
|
17056
|
+
_excluded2$h = ["children", "views"],
|
|
17057
|
+
_excluded3$d = ["heading", "children", "views"],
|
|
17044
17058
|
_excluded4$a = ["item", "selected", "onSelect", "views"],
|
|
17045
17059
|
_excluded5$5 = ["children", "views"],
|
|
17046
17060
|
_excluded6$3 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "emptyState", "footer", "search", "setSearch", "selectedIndex", "setSelectedIndex", "filteredCommands", "filteredGroups", "listRef", "views", "filter"];
|
|
@@ -17102,7 +17116,7 @@ var CommandList = _ref3 => {
|
|
|
17102
17116
|
children,
|
|
17103
17117
|
views
|
|
17104
17118
|
} = _ref3,
|
|
17105
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
17119
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
|
|
17106
17120
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
|
|
17107
17121
|
};
|
|
17108
17122
|
// Command Group component
|
|
@@ -17112,7 +17126,7 @@ var CommandGroup = _ref4 => {
|
|
|
17112
17126
|
children,
|
|
17113
17127
|
views
|
|
17114
17128
|
} = _ref4,
|
|
17115
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
17129
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
|
|
17116
17130
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandGroupStyles, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(Text, Object.assign({}, CommandGroupHeadingStyles, views == null ? void 0 : views.heading), heading), children);
|
|
17117
17131
|
};
|
|
17118
17132
|
// Command Item component
|
|
@@ -17564,8 +17578,8 @@ var getArrowStyles = position => {
|
|
|
17564
17578
|
};
|
|
17565
17579
|
|
|
17566
17580
|
var _excluded$$ = ["children", "views", "asChild"],
|
|
17567
|
-
_excluded2$
|
|
17568
|
-
_excluded3$
|
|
17581
|
+
_excluded2$i = ["children", "views"],
|
|
17582
|
+
_excluded3$e = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
17569
17583
|
// Create context for the Tooltip
|
|
17570
17584
|
var TooltipContext = /*#__PURE__*/React.createContext({
|
|
17571
17585
|
isOpen: false,
|
|
@@ -17635,7 +17649,7 @@ var TooltipContent = _ref3 => {
|
|
|
17635
17649
|
children,
|
|
17636
17650
|
views
|
|
17637
17651
|
} = _ref3,
|
|
17638
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
17652
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$i);
|
|
17639
17653
|
var {
|
|
17640
17654
|
isOpen,
|
|
17641
17655
|
contentRef,
|
|
@@ -17665,7 +17679,7 @@ var TooltipView = _ref4 => {
|
|
|
17665
17679
|
showArrow = true,
|
|
17666
17680
|
views
|
|
17667
17681
|
} = _ref4,
|
|
17668
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
17682
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$e);
|
|
17669
17683
|
var {
|
|
17670
17684
|
isOpen,
|
|
17671
17685
|
// openTooltip,
|