@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
|
@@ -3497,78 +3497,6 @@
|
|
|
3497
3497
|
padding: 14
|
|
3498
3498
|
}
|
|
3499
3499
|
};
|
|
3500
|
-
/**
|
|
3501
|
-
* Button variants with consistent styling
|
|
3502
|
-
*/
|
|
3503
|
-
var getButtonVariants = (color, isLight) => ({
|
|
3504
|
-
filled: {
|
|
3505
|
-
backgroundColor: color,
|
|
3506
|
-
color: isLight ? 'color.gray.900' : 'color.white',
|
|
3507
|
-
borderWidth: 1,
|
|
3508
|
-
borderStyle: 'solid',
|
|
3509
|
-
borderColor: 'transparent',
|
|
3510
|
-
on: {
|
|
3511
|
-
hover: {
|
|
3512
|
-
filter: 'brightness(0.9)',
|
|
3513
|
-
transform: 'translateY(-1px)'
|
|
3514
|
-
},
|
|
3515
|
-
active: {
|
|
3516
|
-
filter: 'brightness(0.85)',
|
|
3517
|
-
transform: 'translateY(0)'
|
|
3518
|
-
}
|
|
3519
|
-
},
|
|
3520
|
-
transition: 'all 0.2s ease'
|
|
3521
|
-
},
|
|
3522
|
-
outline: {
|
|
3523
|
-
backgroundColor: 'transparent',
|
|
3524
|
-
borderWidth: 1,
|
|
3525
|
-
borderStyle: 'solid',
|
|
3526
|
-
borderColor: color,
|
|
3527
|
-
color: color,
|
|
3528
|
-
on: {
|
|
3529
|
-
hover: {
|
|
3530
|
-
backgroundColor: color + "10",
|
|
3531
|
-
transform: 'translateY(-1px)'
|
|
3532
|
-
},
|
|
3533
|
-
active: {
|
|
3534
|
-
backgroundColor: color + "20",
|
|
3535
|
-
transform: 'translateY(0)'
|
|
3536
|
-
}
|
|
3537
|
-
},
|
|
3538
|
-
transition: 'all 0.2s ease'
|
|
3539
|
-
},
|
|
3540
|
-
ghost: {
|
|
3541
|
-
backgroundColor: 'transparent',
|
|
3542
|
-
color: color,
|
|
3543
|
-
borderWidth: 0,
|
|
3544
|
-
borderStyle: 'none',
|
|
3545
|
-
borderColor: 'transparent',
|
|
3546
|
-
on: {
|
|
3547
|
-
hover: {
|
|
3548
|
-
backgroundColor: color + "10",
|
|
3549
|
-
transform: 'translateY(-1px)'
|
|
3550
|
-
},
|
|
3551
|
-
active: {
|
|
3552
|
-
backgroundColor: color + "20",
|
|
3553
|
-
transform: 'translateY(0)'
|
|
3554
|
-
}
|
|
3555
|
-
},
|
|
3556
|
-
transition: 'all 0.2s ease'
|
|
3557
|
-
},
|
|
3558
|
-
link: {
|
|
3559
|
-
backgroundColor: 'transparent',
|
|
3560
|
-
color: color,
|
|
3561
|
-
textDecoration: 'underline',
|
|
3562
|
-
textUnderlineOffset: 2,
|
|
3563
|
-
on: {
|
|
3564
|
-
hover: {
|
|
3565
|
-
textDecoration: 'underline',
|
|
3566
|
-
textDecorationThickness: 2
|
|
3567
|
-
}
|
|
3568
|
-
},
|
|
3569
|
-
transition: 'all 0.2s ease'
|
|
3570
|
-
}
|
|
3571
|
-
});
|
|
3572
3500
|
|
|
3573
3501
|
// Defines a mapping of spinning speed labels to their respective duration in seconds for the Loader component animations.
|
|
3574
3502
|
// Sets up a scale of sizes, mapping size labels to numerical values to be used for Loader component dimensions.
|
|
@@ -3762,7 +3690,9 @@
|
|
|
3762
3690
|
// Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
|
|
3763
3691
|
var Loader = LoaderComponent;
|
|
3764
3692
|
|
|
3765
|
-
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", "
|
|
3693
|
+
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"],
|
|
3694
|
+
_excluded2$3 = ["_hover", "_active"],
|
|
3695
|
+
_excluded3$3 = ["height"];
|
|
3766
3696
|
var contrast = /*#__PURE__*/require('contrast');
|
|
3767
3697
|
var ButtonView = _ref => {
|
|
3768
3698
|
var _props$onClick;
|
|
@@ -3785,11 +3715,12 @@
|
|
|
3785
3715
|
loaderProps = {},
|
|
3786
3716
|
loaderPosition = 'left',
|
|
3787
3717
|
effect = 'default',
|
|
3718
|
+
isHovered,
|
|
3788
3719
|
setIsHovered = () => {},
|
|
3789
3720
|
isExternal = false,
|
|
3790
3721
|
themeMode: elementMode,
|
|
3791
|
-
|
|
3792
|
-
|
|
3722
|
+
views,
|
|
3723
|
+
colorScheme = 'theme.primary'
|
|
3793
3724
|
} = _ref,
|
|
3794
3725
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
3795
3726
|
var {
|
|
@@ -3801,13 +3732,79 @@
|
|
|
3801
3732
|
var defaultNativeProps = {
|
|
3802
3733
|
disabled: !isActive
|
|
3803
3734
|
};
|
|
3804
|
-
var buttonColor = isActive ?
|
|
3805
|
-
|
|
3735
|
+
var buttonColor = isActive ? colorScheme : 'theme.disabled';
|
|
3736
|
+
var hovering = isHovered && effect === 'hover';
|
|
3737
|
+
var reverse = isHovered && effect === 'reverse';
|
|
3806
3738
|
// Determine if the button color is light or dark for proper contrast
|
|
3807
3739
|
var isLight = contrast(getColor(buttonColor, elementMode ? elementMode : themeMode)) == 'light';
|
|
3808
|
-
//
|
|
3809
|
-
var ButtonVariants =
|
|
3810
|
-
|
|
3740
|
+
// Define button variants with effect support
|
|
3741
|
+
var ButtonVariants = {
|
|
3742
|
+
filled: {
|
|
3743
|
+
backgroundColor: reverse ? 'transparent' : buttonColor,
|
|
3744
|
+
color: reverse ? isLight ? 'white' : buttonColor : isLight ? buttonColor : 'white',
|
|
3745
|
+
borderWidth: 1,
|
|
3746
|
+
borderStyle: 'solid',
|
|
3747
|
+
borderColor: reverse ? buttonColor : 'transparent',
|
|
3748
|
+
_hover: {
|
|
3749
|
+
backgroundColor: reverse ? buttonColor + "10" : "" + buttonColor,
|
|
3750
|
+
transform: 'translateY(-2px)',
|
|
3751
|
+
boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)'
|
|
3752
|
+
},
|
|
3753
|
+
_active: {
|
|
3754
|
+
backgroundColor: reverse ? buttonColor + "20" : "" + buttonColor,
|
|
3755
|
+
transform: 'translateY(0)',
|
|
3756
|
+
boxShadow: '0 2px 4px rgba(0, 0, 0, 0.1)'
|
|
3757
|
+
}
|
|
3758
|
+
},
|
|
3759
|
+
outline: {
|
|
3760
|
+
backgroundColor: reverse ? buttonColor : 'transparent',
|
|
3761
|
+
borderWidth: 1,
|
|
3762
|
+
borderStyle: 'solid',
|
|
3763
|
+
borderColor: reverse ? buttonColor : colorScheme,
|
|
3764
|
+
color: reverse ? 'white' : buttonColor,
|
|
3765
|
+
_hover: {
|
|
3766
|
+
backgroundColor: reverse ? "" + buttonColor : buttonColor + "10",
|
|
3767
|
+
transform: 'translateY(-2px)',
|
|
3768
|
+
boxShadow: '0 4px 8px rgba(0, 0, 0, 0.05)'
|
|
3769
|
+
},
|
|
3770
|
+
_active: {
|
|
3771
|
+
backgroundColor: reverse ? buttonColor + "b0" : buttonColor + "20",
|
|
3772
|
+
transform: 'translateY(0)',
|
|
3773
|
+
boxShadow: '0 2px 4px rgba(0, 0, 0, 0.05)'
|
|
3774
|
+
}
|
|
3775
|
+
},
|
|
3776
|
+
link: {
|
|
3777
|
+
backgroundColor: 'transparent',
|
|
3778
|
+
borderWidth: 0,
|
|
3779
|
+
borderStyle: 'none',
|
|
3780
|
+
borderColor: 'transparent',
|
|
3781
|
+
color: buttonColor,
|
|
3782
|
+
textDecoration: reverse ? 'none' : 'underline',
|
|
3783
|
+
_hover: {
|
|
3784
|
+
opacity: 0.8,
|
|
3785
|
+
textDecorationThickness: '2px'
|
|
3786
|
+
},
|
|
3787
|
+
_active: {
|
|
3788
|
+
opacity: 0.8,
|
|
3789
|
+
textDecorationThickness: '2px'
|
|
3790
|
+
}
|
|
3791
|
+
},
|
|
3792
|
+
ghost: {
|
|
3793
|
+
backgroundColor: reverse ? buttonColor : 'transparent',
|
|
3794
|
+
color: reverse ? 'white' : buttonColor,
|
|
3795
|
+
borderWidth: 0,
|
|
3796
|
+
borderStyle: 'none',
|
|
3797
|
+
borderColor: 'transparent',
|
|
3798
|
+
_hover: {
|
|
3799
|
+
backgroundColor: reverse ? "" + buttonColor : buttonColor + "10",
|
|
3800
|
+
transform: 'translateY(-2px)'
|
|
3801
|
+
},
|
|
3802
|
+
_active: {
|
|
3803
|
+
backgroundColor: reverse ? buttonColor + "b0" : buttonColor + "20",
|
|
3804
|
+
transform: 'translateY(0)'
|
|
3805
|
+
}
|
|
3806
|
+
}
|
|
3807
|
+
};
|
|
3811
3808
|
var buttonSizeStyles = ButtonSizes[size];
|
|
3812
3809
|
var buttonVariant = ButtonVariants[variant];
|
|
3813
3810
|
var scaleWidth = {
|
|
@@ -3834,6 +3831,13 @@
|
|
|
3834
3831
|
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
|
|
3835
3832
|
size: size === 'xs' || size === 'sm' ? 'sm' : 'md'
|
|
3836
3833
|
}, loaderProps))));
|
|
3834
|
+
// Extract hover and active styles from buttonVariant
|
|
3835
|
+
var _ref2 = buttonVariant || {},
|
|
3836
|
+
{
|
|
3837
|
+
_hover,
|
|
3838
|
+
_active
|
|
3839
|
+
} = _ref2,
|
|
3840
|
+
baseButtonVariant = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
3837
3841
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
3838
3842
|
gap: 8,
|
|
3839
3843
|
as: "button",
|
|
@@ -3848,12 +3852,22 @@
|
|
|
3848
3852
|
onMouseEnter: () => handleHover(true),
|
|
3849
3853
|
onMouseLeave: () => handleHover(false),
|
|
3850
3854
|
cursor: isActive ? 'pointer' : 'default',
|
|
3855
|
+
filter: hovering && effect === 'hover' ? 'brightness(0.85)' : 'brightness(1)',
|
|
3856
|
+
transition: "all 0.2s ease",
|
|
3857
|
+
transform: hovering && effect === 'hover' && !isDisabled ? 'translateY(-5px)' : '',
|
|
3851
3858
|
// Apply consistent styling according to design guidelines
|
|
3852
3859
|
// Apply shadow if provided
|
|
3853
3860
|
boxShadow: shadow ? shadow : undefined
|
|
3854
|
-
}, defaultNativeProps,
|
|
3861
|
+
}, defaultNativeProps, (_ref3 => {
|
|
3862
|
+
var rest = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
|
|
3863
|
+
return rest;
|
|
3864
|
+
})(props), buttonSizeStyles, baseButtonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, {
|
|
3865
|
+
// Apply hover and active styles
|
|
3866
|
+
_hover: _hover,
|
|
3867
|
+
_active: _active
|
|
3868
|
+
}, views == null ? void 0 : views.container), variant === 'link' && to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
|
|
3855
3869
|
to: to,
|
|
3856
|
-
textDecorationColor:
|
|
3870
|
+
textDecorationColor: colorScheme,
|
|
3857
3871
|
textDecorationThickness: "1px",
|
|
3858
3872
|
textUnderlineOffset: "2px",
|
|
3859
3873
|
transition: "all 0.2s ease",
|
|
@@ -3861,7 +3875,7 @@
|
|
|
3861
3875
|
_hover: {
|
|
3862
3876
|
textDecorationThickness: '2px'
|
|
3863
3877
|
}
|
|
3864
|
-
},
|
|
3878
|
+
}, views == null ? void 0 : views.link), content)) : content);
|
|
3865
3879
|
};
|
|
3866
3880
|
|
|
3867
3881
|
// Importing a custom hook to manage the state specific to the button component.
|
|
@@ -3984,8 +3998,8 @@
|
|
|
3984
3998
|
};
|
|
3985
3999
|
|
|
3986
4000
|
var _excluded$b = ["children", "views", "style", "themeMode"],
|
|
3987
|
-
_excluded2$
|
|
3988
|
-
_excluded3$
|
|
4001
|
+
_excluded2$4 = ["children", "views", "style", "themeMode"],
|
|
4002
|
+
_excluded3$4 = ["children", "views", "style", "themeMode"],
|
|
3989
4003
|
_excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
|
|
3990
4004
|
var CardHeader = _ref => {
|
|
3991
4005
|
var _contextStyles$header;
|
|
@@ -4011,7 +4025,7 @@
|
|
|
4011
4025
|
children,
|
|
4012
4026
|
style
|
|
4013
4027
|
} = _ref2,
|
|
4014
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
4028
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
|
|
4015
4029
|
var theme = appStudio.useTheme();
|
|
4016
4030
|
var {
|
|
4017
4031
|
styles: contextStyles
|
|
@@ -4029,7 +4043,7 @@
|
|
|
4029
4043
|
children,
|
|
4030
4044
|
style
|
|
4031
4045
|
} = _ref3,
|
|
4032
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
4046
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
|
|
4033
4047
|
var theme = appStudio.useTheme();
|
|
4034
4048
|
var {
|
|
4035
4049
|
styles: contextStyles
|
|
@@ -4393,8 +4407,8 @@
|
|
|
4393
4407
|
};
|
|
4394
4408
|
|
|
4395
4409
|
var _excluded$c = ["children", "isActive", "views"],
|
|
4396
|
-
_excluded2$
|
|
4397
|
-
_excluded3$
|
|
4410
|
+
_excluded2$5 = ["views", "children"],
|
|
4411
|
+
_excluded3$5 = ["views", "children"],
|
|
4398
4412
|
_excluded4$4 = ["children", "views"],
|
|
4399
4413
|
_excluded5$1 = ["children", "views", "style"],
|
|
4400
4414
|
_excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "themeMode"];
|
|
@@ -4420,7 +4434,7 @@
|
|
|
4420
4434
|
children // Allow custom content/icon
|
|
4421
4435
|
// Spread remaining ButtonProps
|
|
4422
4436
|
} = _ref2,
|
|
4423
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
4437
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
|
|
4424
4438
|
var {
|
|
4425
4439
|
goToPrevious,
|
|
4426
4440
|
canGoPrevious,
|
|
@@ -4443,7 +4457,7 @@
|
|
|
4443
4457
|
views,
|
|
4444
4458
|
children
|
|
4445
4459
|
} = _ref3,
|
|
4446
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
4460
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
|
|
4447
4461
|
var {
|
|
4448
4462
|
goToNext,
|
|
4449
4463
|
canGoNext,
|
|
@@ -5687,8 +5701,8 @@
|
|
|
5687
5701
|
};
|
|
5688
5702
|
|
|
5689
5703
|
var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
|
|
5690
|
-
_excluded2$
|
|
5691
|
-
_excluded3$
|
|
5704
|
+
_excluded2$6 = ["items", "children", "position", "side", "align", "views", "style"],
|
|
5705
|
+
_excluded3$6 = ["item", "children", "onSelect", "isDisabled", "views"],
|
|
5692
5706
|
_excluded4$5 = ["views"],
|
|
5693
5707
|
_excluded5$2 = ["views"],
|
|
5694
5708
|
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
|
|
@@ -5796,7 +5810,7 @@
|
|
|
5796
5810
|
views,
|
|
5797
5811
|
style // Capture user-provided style
|
|
5798
5812
|
} = _ref3,
|
|
5799
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
5813
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$6);
|
|
5800
5814
|
var {
|
|
5801
5815
|
isOpen,
|
|
5802
5816
|
position: contextPosition,
|
|
@@ -5867,7 +5881,7 @@
|
|
|
5867
5881
|
isDisabled = false,
|
|
5868
5882
|
views
|
|
5869
5883
|
} = _ref4,
|
|
5870
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
5884
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
|
|
5871
5885
|
var {
|
|
5872
5886
|
activeSubmenuId,
|
|
5873
5887
|
setActiveSubmenuId,
|
|
@@ -6093,7 +6107,7 @@
|
|
|
6093
6107
|
ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
|
|
6094
6108
|
|
|
6095
6109
|
var _excluded$g = ["src", "color", "views", "themeMode"],
|
|
6096
|
-
_excluded2$
|
|
6110
|
+
_excluded2$7 = ["path"];
|
|
6097
6111
|
var FileSVG = _ref => {
|
|
6098
6112
|
var {
|
|
6099
6113
|
src,
|
|
@@ -6123,7 +6137,7 @@
|
|
|
6123
6137
|
var {
|
|
6124
6138
|
path
|
|
6125
6139
|
} = _ref2,
|
|
6126
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
6140
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
|
|
6127
6141
|
return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
|
|
6128
6142
|
src: path
|
|
6129
6143
|
}, props));
|
|
@@ -6576,8 +6590,8 @@
|
|
|
6576
6590
|
};
|
|
6577
6591
|
|
|
6578
6592
|
var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
6579
|
-
_excluded2$
|
|
6580
|
-
_excluded3$
|
|
6593
|
+
_excluded2$8 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
6594
|
+
_excluded3$7 = ["option", "size", "removeOption"],
|
|
6581
6595
|
_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"];
|
|
6582
6596
|
/**
|
|
6583
6597
|
* Item Component
|
|
@@ -6698,7 +6712,7 @@
|
|
|
6698
6712
|
isReadOnly = false,
|
|
6699
6713
|
options = []
|
|
6700
6714
|
} = _ref4,
|
|
6701
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$
|
|
6715
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$8);
|
|
6702
6716
|
var handleChange = event => {
|
|
6703
6717
|
if (onChange) onChange(event);
|
|
6704
6718
|
};
|
|
@@ -6803,7 +6817,7 @@
|
|
|
6803
6817
|
size = 'md',
|
|
6804
6818
|
removeOption = () => {}
|
|
6805
6819
|
} = _ref6,
|
|
6806
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$
|
|
6820
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$7);
|
|
6807
6821
|
var handleClick = () => removeOption(option);
|
|
6808
6822
|
return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
6809
6823
|
gap: 8,
|
|
@@ -9337,8 +9351,8 @@
|
|
|
9337
9351
|
};
|
|
9338
9352
|
|
|
9339
9353
|
var _excluded$t = ["size"],
|
|
9340
|
-
_excluded2$
|
|
9341
|
-
_excluded3$
|
|
9354
|
+
_excluded2$9 = ["size"],
|
|
9355
|
+
_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"];
|
|
9342
9356
|
var CountryList = _ref => {
|
|
9343
9357
|
var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
9344
9358
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
@@ -9349,7 +9363,7 @@
|
|
|
9349
9363
|
type: "country"
|
|
9350
9364
|
}, props)));
|
|
9351
9365
|
var CountryItem = _ref2 => {
|
|
9352
|
-
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
9366
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$9);
|
|
9353
9367
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
9354
9368
|
as: "li"
|
|
9355
9369
|
}, props));
|
|
@@ -9451,7 +9465,7 @@
|
|
|
9451
9465
|
},
|
|
9452
9466
|
themeMode: elementMode
|
|
9453
9467
|
} = _ref5,
|
|
9454
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$
|
|
9468
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$8);
|
|
9455
9469
|
var {
|
|
9456
9470
|
getColor,
|
|
9457
9471
|
themeMode
|
|
@@ -9700,7 +9714,7 @@
|
|
|
9700
9714
|
};
|
|
9701
9715
|
|
|
9702
9716
|
var _excluded$v = ["visibleIcon", "hiddenIcon"],
|
|
9703
|
-
_excluded2$
|
|
9717
|
+
_excluded2$a = ["isVisible", "setIsVisible"];
|
|
9704
9718
|
var PasswordComponent = _ref => {
|
|
9705
9719
|
var {
|
|
9706
9720
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -9716,7 +9730,7 @@
|
|
|
9716
9730
|
isVisible,
|
|
9717
9731
|
setIsVisible
|
|
9718
9732
|
} = _usePasswordState,
|
|
9719
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
9733
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
|
|
9720
9734
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
9721
9735
|
type: isVisible ? 'text' : 'password',
|
|
9722
9736
|
isClearable: false,
|
|
@@ -10730,7 +10744,7 @@
|
|
|
10730
10744
|
var FormikTextField = TextFieldComponent$1;
|
|
10731
10745
|
|
|
10732
10746
|
var _excluded$D = ["visibleIcon", "hiddenIcon"],
|
|
10733
|
-
_excluded2$
|
|
10747
|
+
_excluded2$b = ["isVisible", "setIsVisible"];
|
|
10734
10748
|
var PasswordComponent$1 = _ref => {
|
|
10735
10749
|
var {
|
|
10736
10750
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -10747,7 +10761,7 @@
|
|
|
10747
10761
|
isVisible,
|
|
10748
10762
|
setIsVisible
|
|
10749
10763
|
} = _usePasswordState,
|
|
10750
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
10764
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$b);
|
|
10751
10765
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
10752
10766
|
type: isVisible ? 'text' : 'password',
|
|
10753
10767
|
isClearable: false,
|
|
@@ -12173,8 +12187,8 @@
|
|
|
12173
12187
|
};
|
|
12174
12188
|
|
|
12175
12189
|
var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
12176
|
-
_excluded2$
|
|
12177
|
-
_excluded3$
|
|
12190
|
+
_excluded2$c = ["children", "shadow", "isFullScreen", "shape", "views"],
|
|
12191
|
+
_excluded3$9 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
12178
12192
|
_excluded4$7 = ["children", "views"],
|
|
12179
12193
|
_excluded5$3 = ["children", "views"];
|
|
12180
12194
|
var ModalOverlay = _ref => {
|
|
@@ -12223,7 +12237,7 @@
|
|
|
12223
12237
|
shape = 'rounded',
|
|
12224
12238
|
views
|
|
12225
12239
|
} = _ref2,
|
|
12226
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
12240
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$c);
|
|
12227
12241
|
var defaultShadow = typeof document !== undefined ? {
|
|
12228
12242
|
boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
|
|
12229
12243
|
} : {
|
|
@@ -12256,7 +12270,7 @@
|
|
|
12256
12270
|
buttonPosition = 'right',
|
|
12257
12271
|
views
|
|
12258
12272
|
} = _ref3,
|
|
12259
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
12273
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$9);
|
|
12260
12274
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
12261
12275
|
var buttonIcon = /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
12262
12276
|
onClick: onClose
|
|
@@ -13731,8 +13745,8 @@
|
|
|
13731
13745
|
};
|
|
13732
13746
|
|
|
13733
13747
|
var _excluded$M = ["children", "views"],
|
|
13734
|
-
_excluded2$
|
|
13735
|
-
_excluded3$
|
|
13748
|
+
_excluded2$d = ["items", "side", "align", "views"],
|
|
13749
|
+
_excluded3$a = ["item", "views"],
|
|
13736
13750
|
_excluded4$8 = ["views"],
|
|
13737
13751
|
_excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
|
|
13738
13752
|
// Create context for the DropdownMenu
|
|
@@ -13793,7 +13807,7 @@
|
|
|
13793
13807
|
align = 'start',
|
|
13794
13808
|
views
|
|
13795
13809
|
} = _ref3,
|
|
13796
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
13810
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$d);
|
|
13797
13811
|
var {
|
|
13798
13812
|
isOpen,
|
|
13799
13813
|
//activeSubmenuId, setActiveSubmenuId, size,
|
|
@@ -13829,7 +13843,7 @@
|
|
|
13829
13843
|
item,
|
|
13830
13844
|
views
|
|
13831
13845
|
} = _ref4,
|
|
13832
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
13846
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$a);
|
|
13833
13847
|
var {
|
|
13834
13848
|
activeSubmenuId,
|
|
13835
13849
|
setActiveSubmenuId,
|
|
@@ -14142,7 +14156,7 @@
|
|
|
14142
14156
|
};
|
|
14143
14157
|
|
|
14144
14158
|
var _excluded$O = ["children", "views", "asChild"],
|
|
14145
|
-
_excluded2$
|
|
14159
|
+
_excluded2$e = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
14146
14160
|
// Create context for the HoverCard
|
|
14147
14161
|
var HoverCardContext = /*#__PURE__*/React.createContext({
|
|
14148
14162
|
isOpen: false,
|
|
@@ -14228,7 +14242,7 @@
|
|
|
14228
14242
|
minWidth = '200px',
|
|
14229
14243
|
maxWidth = '300px'
|
|
14230
14244
|
} = _ref3,
|
|
14231
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
14245
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$e);
|
|
14232
14246
|
var {
|
|
14233
14247
|
isOpen,
|
|
14234
14248
|
cancelCloseTimer,
|
|
@@ -15291,8 +15305,8 @@
|
|
|
15291
15305
|
};
|
|
15292
15306
|
|
|
15293
15307
|
var _excluded$V = ["children", "showToggleButton", "views"],
|
|
15294
|
-
_excluded2$
|
|
15295
|
-
_excluded3$
|
|
15308
|
+
_excluded2$f = ["children", "views"],
|
|
15309
|
+
_excluded3$b = ["children", "views"],
|
|
15296
15310
|
_excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
15297
15311
|
// Create context for the Sidebar
|
|
15298
15312
|
var SidebarContext = /*#__PURE__*/React.createContext({
|
|
@@ -15390,7 +15404,7 @@
|
|
|
15390
15404
|
children,
|
|
15391
15405
|
views
|
|
15392
15406
|
} = _ref3,
|
|
15393
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
15407
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$f);
|
|
15394
15408
|
var {
|
|
15395
15409
|
isExpanded
|
|
15396
15410
|
} = useSidebarContext();
|
|
@@ -15408,7 +15422,7 @@
|
|
|
15408
15422
|
children,
|
|
15409
15423
|
views
|
|
15410
15424
|
} = _ref4,
|
|
15411
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
15425
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
|
|
15412
15426
|
var {
|
|
15413
15427
|
isExpanded
|
|
15414
15428
|
} = useSidebarContext();
|
|
@@ -15966,8 +15980,8 @@
|
|
|
15966
15980
|
};
|
|
15967
15981
|
|
|
15968
15982
|
var _excluded$X = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
15969
|
-
_excluded2$
|
|
15970
|
-
_excluded3$
|
|
15983
|
+
_excluded2$g = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
15984
|
+
_excluded3$c = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "views"];
|
|
15971
15985
|
// Create context for the Resizable component
|
|
15972
15986
|
var ResizableContext = /*#__PURE__*/React.createContext({
|
|
15973
15987
|
orientation: 'horizontal',
|
|
@@ -16074,7 +16088,7 @@
|
|
|
16074
16088
|
collapseTarget,
|
|
16075
16089
|
views
|
|
16076
16090
|
} = _ref3,
|
|
16077
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
16091
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$g);
|
|
16078
16092
|
var {
|
|
16079
16093
|
orientation,
|
|
16080
16094
|
size,
|
|
@@ -16214,7 +16228,7 @@
|
|
|
16214
16228
|
containerRef,
|
|
16215
16229
|
views
|
|
16216
16230
|
} = _ref4,
|
|
16217
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
16231
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
|
|
16218
16232
|
var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
|
|
16219
16233
|
return /*#__PURE__*/React__default.createElement(Container, Object.assign({
|
|
16220
16234
|
ref: containerRef,
|
|
@@ -17011,8 +17025,8 @@
|
|
|
17011
17025
|
};
|
|
17012
17026
|
|
|
17013
17027
|
var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
|
|
17014
|
-
_excluded2$
|
|
17015
|
-
_excluded3$
|
|
17028
|
+
_excluded2$h = ["children", "views"],
|
|
17029
|
+
_excluded3$d = ["heading", "children", "views"],
|
|
17016
17030
|
_excluded4$a = ["item", "selected", "onSelect", "views"],
|
|
17017
17031
|
_excluded5$5 = ["children", "views"],
|
|
17018
17032
|
_excluded6$3 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "emptyState", "footer", "search", "setSearch", "selectedIndex", "setSelectedIndex", "filteredCommands", "filteredGroups", "listRef", "views", "filter"];
|
|
@@ -17074,7 +17088,7 @@
|
|
|
17074
17088
|
children,
|
|
17075
17089
|
views
|
|
17076
17090
|
} = _ref3,
|
|
17077
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
17091
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
|
|
17078
17092
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
|
|
17079
17093
|
};
|
|
17080
17094
|
// Command Group component
|
|
@@ -17084,7 +17098,7 @@
|
|
|
17084
17098
|
children,
|
|
17085
17099
|
views
|
|
17086
17100
|
} = _ref4,
|
|
17087
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
17101
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
|
|
17088
17102
|
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);
|
|
17089
17103
|
};
|
|
17090
17104
|
// Command Item component
|
|
@@ -17536,8 +17550,8 @@
|
|
|
17536
17550
|
};
|
|
17537
17551
|
|
|
17538
17552
|
var _excluded$$ = ["children", "views", "asChild"],
|
|
17539
|
-
_excluded2$
|
|
17540
|
-
_excluded3$
|
|
17553
|
+
_excluded2$i = ["children", "views"],
|
|
17554
|
+
_excluded3$e = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
17541
17555
|
// Create context for the Tooltip
|
|
17542
17556
|
var TooltipContext = /*#__PURE__*/React.createContext({
|
|
17543
17557
|
isOpen: false,
|
|
@@ -17607,7 +17621,7 @@
|
|
|
17607
17621
|
children,
|
|
17608
17622
|
views
|
|
17609
17623
|
} = _ref3,
|
|
17610
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
17624
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$i);
|
|
17611
17625
|
var {
|
|
17612
17626
|
isOpen,
|
|
17613
17627
|
contentRef,
|
|
@@ -17637,7 +17651,7 @@
|
|
|
17637
17651
|
showArrow = true,
|
|
17638
17652
|
views
|
|
17639
17653
|
} = _ref4,
|
|
17640
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
17654
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$e);
|
|
17641
17655
|
var {
|
|
17642
17656
|
isOpen,
|
|
17643
17657
|
// openTooltip,
|