@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
package/dist/web.esm.js
CHANGED
|
@@ -3518,78 +3518,6 @@ var IconSizes$1 = {
|
|
|
3518
3518
|
padding: 14
|
|
3519
3519
|
}
|
|
3520
3520
|
};
|
|
3521
|
-
/**
|
|
3522
|
-
* Button variants with consistent styling
|
|
3523
|
-
*/
|
|
3524
|
-
var getButtonVariants = (color, isLight) => ({
|
|
3525
|
-
filled: {
|
|
3526
|
-
backgroundColor: color,
|
|
3527
|
-
color: isLight ? 'color.gray.900' : 'color.white',
|
|
3528
|
-
borderWidth: 1,
|
|
3529
|
-
borderStyle: 'solid',
|
|
3530
|
-
borderColor: 'transparent',
|
|
3531
|
-
on: {
|
|
3532
|
-
hover: {
|
|
3533
|
-
filter: 'brightness(0.9)',
|
|
3534
|
-
transform: 'translateY(-1px)'
|
|
3535
|
-
},
|
|
3536
|
-
active: {
|
|
3537
|
-
filter: 'brightness(0.85)',
|
|
3538
|
-
transform: 'translateY(0)'
|
|
3539
|
-
}
|
|
3540
|
-
},
|
|
3541
|
-
transition: 'all 0.2s ease'
|
|
3542
|
-
},
|
|
3543
|
-
outline: {
|
|
3544
|
-
backgroundColor: 'transparent',
|
|
3545
|
-
borderWidth: 1,
|
|
3546
|
-
borderStyle: 'solid',
|
|
3547
|
-
borderColor: color,
|
|
3548
|
-
color: color,
|
|
3549
|
-
on: {
|
|
3550
|
-
hover: {
|
|
3551
|
-
backgroundColor: color + "10",
|
|
3552
|
-
transform: 'translateY(-1px)'
|
|
3553
|
-
},
|
|
3554
|
-
active: {
|
|
3555
|
-
backgroundColor: color + "20",
|
|
3556
|
-
transform: 'translateY(0)'
|
|
3557
|
-
}
|
|
3558
|
-
},
|
|
3559
|
-
transition: 'all 0.2s ease'
|
|
3560
|
-
},
|
|
3561
|
-
ghost: {
|
|
3562
|
-
backgroundColor: 'transparent',
|
|
3563
|
-
color: color,
|
|
3564
|
-
borderWidth: 0,
|
|
3565
|
-
borderStyle: 'none',
|
|
3566
|
-
borderColor: 'transparent',
|
|
3567
|
-
on: {
|
|
3568
|
-
hover: {
|
|
3569
|
-
backgroundColor: color + "10",
|
|
3570
|
-
transform: 'translateY(-1px)'
|
|
3571
|
-
},
|
|
3572
|
-
active: {
|
|
3573
|
-
backgroundColor: color + "20",
|
|
3574
|
-
transform: 'translateY(0)'
|
|
3575
|
-
}
|
|
3576
|
-
},
|
|
3577
|
-
transition: 'all 0.2s ease'
|
|
3578
|
-
},
|
|
3579
|
-
link: {
|
|
3580
|
-
backgroundColor: 'transparent',
|
|
3581
|
-
color: color,
|
|
3582
|
-
textDecoration: 'underline',
|
|
3583
|
-
textUnderlineOffset: 2,
|
|
3584
|
-
on: {
|
|
3585
|
-
hover: {
|
|
3586
|
-
textDecoration: 'underline',
|
|
3587
|
-
textDecorationThickness: 2
|
|
3588
|
-
}
|
|
3589
|
-
},
|
|
3590
|
-
transition: 'all 0.2s ease'
|
|
3591
|
-
}
|
|
3592
|
-
});
|
|
3593
3521
|
|
|
3594
3522
|
// Defines a mapping of spinning speed labels to their respective duration in seconds for the Loader component animations.
|
|
3595
3523
|
// Sets up a scale of sizes, mapping size labels to numerical values to be used for Loader component dimensions.
|
|
@@ -3783,7 +3711,9 @@ React.createElement(LoaderView, Object.assign({}, props)));
|
|
|
3783
3711
|
// Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
|
|
3784
3712
|
var Loader = LoaderComponent;
|
|
3785
3713
|
|
|
3786
|
-
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", "
|
|
3714
|
+
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"],
|
|
3715
|
+
_excluded2$3 = ["_hover", "_active"],
|
|
3716
|
+
_excluded3$3 = ["height"];
|
|
3787
3717
|
var contrast = /*#__PURE__*/require('contrast');
|
|
3788
3718
|
var ButtonView = _ref => {
|
|
3789
3719
|
var _props$onClick;
|
|
@@ -3806,11 +3736,12 @@ var ButtonView = _ref => {
|
|
|
3806
3736
|
loaderProps = {},
|
|
3807
3737
|
loaderPosition = 'left',
|
|
3808
3738
|
effect = 'default',
|
|
3739
|
+
isHovered,
|
|
3809
3740
|
setIsHovered = () => {},
|
|
3810
3741
|
isExternal = false,
|
|
3811
3742
|
themeMode: elementMode,
|
|
3812
|
-
|
|
3813
|
-
|
|
3743
|
+
views,
|
|
3744
|
+
colorScheme = 'theme.primary'
|
|
3814
3745
|
} = _ref,
|
|
3815
3746
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
3816
3747
|
var {
|
|
@@ -3822,13 +3753,79 @@ var ButtonView = _ref => {
|
|
|
3822
3753
|
var defaultNativeProps = {
|
|
3823
3754
|
disabled: !isActive
|
|
3824
3755
|
};
|
|
3825
|
-
var buttonColor = isActive ?
|
|
3826
|
-
|
|
3756
|
+
var buttonColor = isActive ? colorScheme : 'theme.disabled';
|
|
3757
|
+
var hovering = isHovered && effect === 'hover';
|
|
3758
|
+
var reverse = isHovered && effect === 'reverse';
|
|
3827
3759
|
// Determine if the button color is light or dark for proper contrast
|
|
3828
3760
|
var isLight = contrast(getColor(buttonColor, elementMode ? elementMode : themeMode)) == 'light';
|
|
3829
|
-
//
|
|
3830
|
-
var ButtonVariants =
|
|
3831
|
-
|
|
3761
|
+
// Define button variants with effect support
|
|
3762
|
+
var ButtonVariants = {
|
|
3763
|
+
filled: {
|
|
3764
|
+
backgroundColor: reverse ? 'transparent' : buttonColor,
|
|
3765
|
+
color: reverse ? isLight ? 'white' : buttonColor : isLight ? buttonColor : 'white',
|
|
3766
|
+
borderWidth: 1,
|
|
3767
|
+
borderStyle: 'solid',
|
|
3768
|
+
borderColor: reverse ? buttonColor : 'transparent',
|
|
3769
|
+
_hover: {
|
|
3770
|
+
backgroundColor: reverse ? buttonColor + "10" : "" + buttonColor,
|
|
3771
|
+
transform: 'translateY(-2px)',
|
|
3772
|
+
boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)'
|
|
3773
|
+
},
|
|
3774
|
+
_active: {
|
|
3775
|
+
backgroundColor: reverse ? buttonColor + "20" : "" + buttonColor,
|
|
3776
|
+
transform: 'translateY(0)',
|
|
3777
|
+
boxShadow: '0 2px 4px rgba(0, 0, 0, 0.1)'
|
|
3778
|
+
}
|
|
3779
|
+
},
|
|
3780
|
+
outline: {
|
|
3781
|
+
backgroundColor: reverse ? buttonColor : 'transparent',
|
|
3782
|
+
borderWidth: 1,
|
|
3783
|
+
borderStyle: 'solid',
|
|
3784
|
+
borderColor: reverse ? buttonColor : colorScheme,
|
|
3785
|
+
color: reverse ? 'white' : buttonColor,
|
|
3786
|
+
_hover: {
|
|
3787
|
+
backgroundColor: reverse ? "" + buttonColor : buttonColor + "10",
|
|
3788
|
+
transform: 'translateY(-2px)',
|
|
3789
|
+
boxShadow: '0 4px 8px rgba(0, 0, 0, 0.05)'
|
|
3790
|
+
},
|
|
3791
|
+
_active: {
|
|
3792
|
+
backgroundColor: reverse ? buttonColor + "b0" : buttonColor + "20",
|
|
3793
|
+
transform: 'translateY(0)',
|
|
3794
|
+
boxShadow: '0 2px 4px rgba(0, 0, 0, 0.05)'
|
|
3795
|
+
}
|
|
3796
|
+
},
|
|
3797
|
+
link: {
|
|
3798
|
+
backgroundColor: 'transparent',
|
|
3799
|
+
borderWidth: 0,
|
|
3800
|
+
borderStyle: 'none',
|
|
3801
|
+
borderColor: 'transparent',
|
|
3802
|
+
color: buttonColor,
|
|
3803
|
+
textDecoration: reverse ? 'none' : 'underline',
|
|
3804
|
+
_hover: {
|
|
3805
|
+
opacity: 0.8,
|
|
3806
|
+
textDecorationThickness: '2px'
|
|
3807
|
+
},
|
|
3808
|
+
_active: {
|
|
3809
|
+
opacity: 0.8,
|
|
3810
|
+
textDecorationThickness: '2px'
|
|
3811
|
+
}
|
|
3812
|
+
},
|
|
3813
|
+
ghost: {
|
|
3814
|
+
backgroundColor: reverse ? buttonColor : 'transparent',
|
|
3815
|
+
color: reverse ? 'white' : buttonColor,
|
|
3816
|
+
borderWidth: 0,
|
|
3817
|
+
borderStyle: 'none',
|
|
3818
|
+
borderColor: 'transparent',
|
|
3819
|
+
_hover: {
|
|
3820
|
+
backgroundColor: reverse ? "" + buttonColor : buttonColor + "10",
|
|
3821
|
+
transform: 'translateY(-2px)'
|
|
3822
|
+
},
|
|
3823
|
+
_active: {
|
|
3824
|
+
backgroundColor: reverse ? buttonColor + "b0" : buttonColor + "20",
|
|
3825
|
+
transform: 'translateY(0)'
|
|
3826
|
+
}
|
|
3827
|
+
}
|
|
3828
|
+
};
|
|
3832
3829
|
var buttonSizeStyles = ButtonSizes[size];
|
|
3833
3830
|
var buttonVariant = ButtonVariants[variant];
|
|
3834
3831
|
var scaleWidth = {
|
|
@@ -3855,6 +3852,13 @@ var ButtonView = _ref => {
|
|
|
3855
3852
|
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React.createElement(Loader, Object.assign({
|
|
3856
3853
|
size: size === 'xs' || size === 'sm' ? 'sm' : 'md'
|
|
3857
3854
|
}, loaderProps))));
|
|
3855
|
+
// Extract hover and active styles from buttonVariant
|
|
3856
|
+
var _ref2 = buttonVariant || {},
|
|
3857
|
+
{
|
|
3858
|
+
_hover,
|
|
3859
|
+
_active
|
|
3860
|
+
} = _ref2,
|
|
3861
|
+
baseButtonVariant = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
3858
3862
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
3859
3863
|
gap: 8,
|
|
3860
3864
|
as: "button",
|
|
@@ -3869,12 +3873,22 @@ var ButtonView = _ref => {
|
|
|
3869
3873
|
onMouseEnter: () => handleHover(true),
|
|
3870
3874
|
onMouseLeave: () => handleHover(false),
|
|
3871
3875
|
cursor: isActive ? 'pointer' : 'default',
|
|
3876
|
+
filter: hovering && effect === 'hover' ? 'brightness(0.85)' : 'brightness(1)',
|
|
3877
|
+
transition: "all 0.2s ease",
|
|
3878
|
+
transform: hovering && effect === 'hover' && !isDisabled ? 'translateY(-5px)' : '',
|
|
3872
3879
|
// Apply consistent styling according to design guidelines
|
|
3873
3880
|
// Apply shadow if provided
|
|
3874
3881
|
boxShadow: shadow ? shadow : undefined
|
|
3875
|
-
}, defaultNativeProps,
|
|
3882
|
+
}, defaultNativeProps, (_ref3 => {
|
|
3883
|
+
var rest = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
|
|
3884
|
+
return rest;
|
|
3885
|
+
})(props), buttonSizeStyles, baseButtonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, {
|
|
3886
|
+
// Apply hover and active styles
|
|
3887
|
+
_hover: _hover,
|
|
3888
|
+
_active: _active
|
|
3889
|
+
}, views == null ? void 0 : views.container), variant === 'link' && to ? (/*#__PURE__*/React.createElement(Link, Object.assign({
|
|
3876
3890
|
to: to,
|
|
3877
|
-
textDecorationColor:
|
|
3891
|
+
textDecorationColor: colorScheme,
|
|
3878
3892
|
textDecorationThickness: "1px",
|
|
3879
3893
|
textUnderlineOffset: "2px",
|
|
3880
3894
|
transition: "all 0.2s ease",
|
|
@@ -3882,7 +3896,7 @@ var ButtonView = _ref => {
|
|
|
3882
3896
|
_hover: {
|
|
3883
3897
|
textDecorationThickness: '2px'
|
|
3884
3898
|
}
|
|
3885
|
-
},
|
|
3899
|
+
}, views == null ? void 0 : views.link), content)) : content);
|
|
3886
3900
|
};
|
|
3887
3901
|
|
|
3888
3902
|
// Importing a custom hook to manage the state specific to the button component.
|
|
@@ -4005,8 +4019,8 @@ var useCardContext = () => {
|
|
|
4005
4019
|
};
|
|
4006
4020
|
|
|
4007
4021
|
var _excluded$b = ["children", "views", "style", "themeMode"],
|
|
4008
|
-
_excluded2$
|
|
4009
|
-
_excluded3$
|
|
4022
|
+
_excluded2$4 = ["children", "views", "style", "themeMode"],
|
|
4023
|
+
_excluded3$4 = ["children", "views", "style", "themeMode"],
|
|
4010
4024
|
_excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
|
|
4011
4025
|
var CardHeader = _ref => {
|
|
4012
4026
|
var _contextStyles$header;
|
|
@@ -4032,7 +4046,7 @@ var CardContent = _ref2 => {
|
|
|
4032
4046
|
children,
|
|
4033
4047
|
style
|
|
4034
4048
|
} = _ref2,
|
|
4035
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
4049
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
|
|
4036
4050
|
var theme = useTheme();
|
|
4037
4051
|
var {
|
|
4038
4052
|
styles: contextStyles
|
|
@@ -4050,7 +4064,7 @@ var CardFooter = _ref3 => {
|
|
|
4050
4064
|
children,
|
|
4051
4065
|
style
|
|
4052
4066
|
} = _ref3,
|
|
4053
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
4067
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
|
|
4054
4068
|
var theme = useTheme();
|
|
4055
4069
|
var {
|
|
4056
4070
|
styles: contextStyles
|
|
@@ -4414,8 +4428,8 @@ var useCarouselContext = () => {
|
|
|
4414
4428
|
};
|
|
4415
4429
|
|
|
4416
4430
|
var _excluded$c = ["children", "isActive", "views"],
|
|
4417
|
-
_excluded2$
|
|
4418
|
-
_excluded3$
|
|
4431
|
+
_excluded2$5 = ["views", "children"],
|
|
4432
|
+
_excluded3$5 = ["views", "children"],
|
|
4419
4433
|
_excluded4$4 = ["children", "views"],
|
|
4420
4434
|
_excluded5$1 = ["children", "views", "style"],
|
|
4421
4435
|
_excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "themeMode"];
|
|
@@ -4441,7 +4455,7 @@ var CarouselPreviousComponent = _ref2 => {
|
|
|
4441
4455
|
children // Allow custom content/icon
|
|
4442
4456
|
// Spread remaining ButtonProps
|
|
4443
4457
|
} = _ref2,
|
|
4444
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
4458
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
|
|
4445
4459
|
var {
|
|
4446
4460
|
goToPrevious,
|
|
4447
4461
|
canGoPrevious,
|
|
@@ -4464,7 +4478,7 @@ var CarouselNextComponent = _ref3 => {
|
|
|
4464
4478
|
views,
|
|
4465
4479
|
children
|
|
4466
4480
|
} = _ref3,
|
|
4467
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
4481
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
|
|
4468
4482
|
var {
|
|
4469
4483
|
goToNext,
|
|
4470
4484
|
canGoNext,
|
|
@@ -5708,8 +5722,8 @@ var calculateMenuPosition = function calculateMenuPosition(x, y, menuWidth, menu
|
|
|
5708
5722
|
};
|
|
5709
5723
|
|
|
5710
5724
|
var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
|
|
5711
|
-
_excluded2$
|
|
5712
|
-
_excluded3$
|
|
5725
|
+
_excluded2$6 = ["items", "children", "position", "side", "align", "views", "style"],
|
|
5726
|
+
_excluded3$6 = ["item", "children", "onSelect", "isDisabled", "views"],
|
|
5713
5727
|
_excluded4$5 = ["views"],
|
|
5714
5728
|
_excluded5$2 = ["views"],
|
|
5715
5729
|
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
|
|
@@ -5817,7 +5831,7 @@ var ContextMenuContent = _ref3 => {
|
|
|
5817
5831
|
views,
|
|
5818
5832
|
style // Capture user-provided style
|
|
5819
5833
|
} = _ref3,
|
|
5820
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
5834
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$6);
|
|
5821
5835
|
var {
|
|
5822
5836
|
isOpen,
|
|
5823
5837
|
position: contextPosition,
|
|
@@ -5888,7 +5902,7 @@ var ContextMenuItem = _ref4 => {
|
|
|
5888
5902
|
isDisabled = false,
|
|
5889
5903
|
views
|
|
5890
5904
|
} = _ref4,
|
|
5891
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
5905
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
|
|
5892
5906
|
var {
|
|
5893
5907
|
activeSubmenuId,
|
|
5894
5908
|
setActiveSubmenuId,
|
|
@@ -6114,7 +6128,7 @@ ContextMenu.Divider = ContextMenuDivider;
|
|
|
6114
6128
|
ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
|
|
6115
6129
|
|
|
6116
6130
|
var _excluded$g = ["src", "color", "views", "themeMode"],
|
|
6117
|
-
_excluded2$
|
|
6131
|
+
_excluded2$7 = ["path"];
|
|
6118
6132
|
var FileSVG = _ref => {
|
|
6119
6133
|
var {
|
|
6120
6134
|
src,
|
|
@@ -6144,7 +6158,7 @@ var FileImage = _ref2 => {
|
|
|
6144
6158
|
var {
|
|
6145
6159
|
path
|
|
6146
6160
|
} = _ref2,
|
|
6147
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
6161
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
|
|
6148
6162
|
return /*#__PURE__*/React.createElement(Image, Object.assign({
|
|
6149
6163
|
src: path
|
|
6150
6164
|
}, props));
|
|
@@ -6597,8 +6611,8 @@ var IconSizes$2 = {
|
|
|
6597
6611
|
};
|
|
6598
6612
|
|
|
6599
6613
|
var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
6600
|
-
_excluded2$
|
|
6601
|
-
_excluded3$
|
|
6614
|
+
_excluded2$8 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
6615
|
+
_excluded3$7 = ["option", "size", "removeOption"],
|
|
6602
6616
|
_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"];
|
|
6603
6617
|
/**
|
|
6604
6618
|
* Item Component
|
|
@@ -6719,7 +6733,7 @@ var HiddenSelect = _ref4 => {
|
|
|
6719
6733
|
isReadOnly = false,
|
|
6720
6734
|
options = []
|
|
6721
6735
|
} = _ref4,
|
|
6722
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$
|
|
6736
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$8);
|
|
6723
6737
|
var handleChange = event => {
|
|
6724
6738
|
if (onChange) onChange(event);
|
|
6725
6739
|
};
|
|
@@ -6824,7 +6838,7 @@ var MultiSelect = _ref6 => {
|
|
|
6824
6838
|
size = 'md',
|
|
6825
6839
|
removeOption = () => {}
|
|
6826
6840
|
} = _ref6,
|
|
6827
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$
|
|
6841
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$7);
|
|
6828
6842
|
var handleClick = () => removeOption(option);
|
|
6829
6843
|
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
6830
6844
|
gap: 8,
|
|
@@ -9358,8 +9372,8 @@ var IconSizes$4 = {
|
|
|
9358
9372
|
};
|
|
9359
9373
|
|
|
9360
9374
|
var _excluded$t = ["size"],
|
|
9361
|
-
_excluded2$
|
|
9362
|
-
_excluded3$
|
|
9375
|
+
_excluded2$9 = ["size"],
|
|
9376
|
+
_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"];
|
|
9363
9377
|
var CountryList = _ref => {
|
|
9364
9378
|
var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
9365
9379
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
@@ -9370,7 +9384,7 @@ var CountrySelector = props => (/*#__PURE__*/React.createElement(Input, Object.a
|
|
|
9370
9384
|
type: "country"
|
|
9371
9385
|
}, props)));
|
|
9372
9386
|
var CountryItem = _ref2 => {
|
|
9373
|
-
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
9387
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$9);
|
|
9374
9388
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
9375
9389
|
as: "li"
|
|
9376
9390
|
}, props));
|
|
@@ -9472,7 +9486,7 @@ var CountryPickerView = _ref5 => {
|
|
|
9472
9486
|
},
|
|
9473
9487
|
themeMode: elementMode
|
|
9474
9488
|
} = _ref5,
|
|
9475
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$
|
|
9489
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$8);
|
|
9476
9490
|
var {
|
|
9477
9491
|
getColor,
|
|
9478
9492
|
themeMode
|
|
@@ -9721,7 +9735,7 @@ var usePasswordState = props => {
|
|
|
9721
9735
|
};
|
|
9722
9736
|
|
|
9723
9737
|
var _excluded$v = ["visibleIcon", "hiddenIcon"],
|
|
9724
|
-
_excluded2$
|
|
9738
|
+
_excluded2$a = ["isVisible", "setIsVisible"];
|
|
9725
9739
|
var PasswordComponent = _ref => {
|
|
9726
9740
|
var {
|
|
9727
9741
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
@@ -9737,7 +9751,7 @@ var PasswordComponent = _ref => {
|
|
|
9737
9751
|
isVisible,
|
|
9738
9752
|
setIsVisible
|
|
9739
9753
|
} = _usePasswordState,
|
|
9740
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
9754
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
|
|
9741
9755
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
9742
9756
|
type: isVisible ? 'text' : 'password',
|
|
9743
9757
|
isClearable: false,
|
|
@@ -10751,7 +10765,7 @@ var TextFieldComponent$1 = props => {
|
|
|
10751
10765
|
var FormikTextField = TextFieldComponent$1;
|
|
10752
10766
|
|
|
10753
10767
|
var _excluded$D = ["visibleIcon", "hiddenIcon"],
|
|
10754
|
-
_excluded2$
|
|
10768
|
+
_excluded2$b = ["isVisible", "setIsVisible"];
|
|
10755
10769
|
var PasswordComponent$1 = _ref => {
|
|
10756
10770
|
var {
|
|
10757
10771
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
@@ -10768,7 +10782,7 @@ var PasswordComponent$1 = _ref => {
|
|
|
10768
10782
|
isVisible,
|
|
10769
10783
|
setIsVisible
|
|
10770
10784
|
} = _usePasswordState,
|
|
10771
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
10785
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$b);
|
|
10772
10786
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
10773
10787
|
type: isVisible ? 'text' : 'password',
|
|
10774
10788
|
isClearable: false,
|
|
@@ -12194,8 +12208,8 @@ var ModalTypography = {
|
|
|
12194
12208
|
};
|
|
12195
12209
|
|
|
12196
12210
|
var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
12197
|
-
_excluded2$
|
|
12198
|
-
_excluded3$
|
|
12211
|
+
_excluded2$c = ["children", "shadow", "isFullScreen", "shape", "views"],
|
|
12212
|
+
_excluded3$9 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
12199
12213
|
_excluded4$7 = ["children", "views"],
|
|
12200
12214
|
_excluded5$3 = ["children", "views"];
|
|
12201
12215
|
var ModalOverlay = _ref => {
|
|
@@ -12244,7 +12258,7 @@ var ModalContainer = _ref2 => {
|
|
|
12244
12258
|
shape = 'rounded',
|
|
12245
12259
|
views
|
|
12246
12260
|
} = _ref2,
|
|
12247
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
12261
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$c);
|
|
12248
12262
|
var defaultShadow = typeof document !== undefined ? {
|
|
12249
12263
|
boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
|
|
12250
12264
|
} : {
|
|
@@ -12277,7 +12291,7 @@ var ModalHeader = _ref3 => {
|
|
|
12277
12291
|
buttonPosition = 'right',
|
|
12278
12292
|
views
|
|
12279
12293
|
} = _ref3,
|
|
12280
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
12294
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$9);
|
|
12281
12295
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
12282
12296
|
var buttonIcon = /*#__PURE__*/React.createElement(View, {
|
|
12283
12297
|
onClick: onClose
|
|
@@ -13752,8 +13766,8 @@ var getDropdownPosition = function getDropdownPosition(side, align) {
|
|
|
13752
13766
|
};
|
|
13753
13767
|
|
|
13754
13768
|
var _excluded$M = ["children", "views"],
|
|
13755
|
-
_excluded2$
|
|
13756
|
-
_excluded3$
|
|
13769
|
+
_excluded2$d = ["items", "side", "align", "views"],
|
|
13770
|
+
_excluded3$a = ["item", "views"],
|
|
13757
13771
|
_excluded4$8 = ["views"],
|
|
13758
13772
|
_excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
|
|
13759
13773
|
// Create context for the DropdownMenu
|
|
@@ -13814,7 +13828,7 @@ var DropdownMenuContent = _ref3 => {
|
|
|
13814
13828
|
align = 'start',
|
|
13815
13829
|
views
|
|
13816
13830
|
} = _ref3,
|
|
13817
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
13831
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$d);
|
|
13818
13832
|
var {
|
|
13819
13833
|
isOpen,
|
|
13820
13834
|
//activeSubmenuId, setActiveSubmenuId, size,
|
|
@@ -13850,7 +13864,7 @@ var DropdownMenuItem = _ref4 => {
|
|
|
13850
13864
|
item,
|
|
13851
13865
|
views
|
|
13852
13866
|
} = _ref4,
|
|
13853
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
13867
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$a);
|
|
13854
13868
|
var {
|
|
13855
13869
|
activeSubmenuId,
|
|
13856
13870
|
setActiveSubmenuId,
|
|
@@ -14163,7 +14177,7 @@ var useRect = ref => {
|
|
|
14163
14177
|
};
|
|
14164
14178
|
|
|
14165
14179
|
var _excluded$O = ["children", "views", "asChild"],
|
|
14166
|
-
_excluded2$
|
|
14180
|
+
_excluded2$e = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
14167
14181
|
// Create context for the HoverCard
|
|
14168
14182
|
var HoverCardContext = /*#__PURE__*/createContext({
|
|
14169
14183
|
isOpen: false,
|
|
@@ -14249,7 +14263,7 @@ var HoverCardContent = _ref3 => {
|
|
|
14249
14263
|
minWidth = '200px',
|
|
14250
14264
|
maxWidth = '300px'
|
|
14251
14265
|
} = _ref3,
|
|
14252
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
14266
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$e);
|
|
14253
14267
|
var {
|
|
14254
14268
|
isOpen,
|
|
14255
14269
|
cancelCloseTimer,
|
|
@@ -15312,8 +15326,8 @@ var SidebarTransitions = {
|
|
|
15312
15326
|
};
|
|
15313
15327
|
|
|
15314
15328
|
var _excluded$V = ["children", "showToggleButton", "views"],
|
|
15315
|
-
_excluded2$
|
|
15316
|
-
_excluded3$
|
|
15329
|
+
_excluded2$f = ["children", "views"],
|
|
15330
|
+
_excluded3$b = ["children", "views"],
|
|
15317
15331
|
_excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
15318
15332
|
// Create context for the Sidebar
|
|
15319
15333
|
var SidebarContext = /*#__PURE__*/createContext({
|
|
@@ -15411,7 +15425,7 @@ var SidebarContent = _ref3 => {
|
|
|
15411
15425
|
children,
|
|
15412
15426
|
views
|
|
15413
15427
|
} = _ref3,
|
|
15414
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
15428
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$f);
|
|
15415
15429
|
var {
|
|
15416
15430
|
isExpanded
|
|
15417
15431
|
} = useSidebarContext();
|
|
@@ -15429,7 +15443,7 @@ var SidebarFooter = _ref4 => {
|
|
|
15429
15443
|
children,
|
|
15430
15444
|
views
|
|
15431
15445
|
} = _ref4,
|
|
15432
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
15446
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
|
|
15433
15447
|
var {
|
|
15434
15448
|
isExpanded
|
|
15435
15449
|
} = useSidebarContext();
|
|
@@ -15987,8 +16001,8 @@ var HandleIconStyles = {
|
|
|
15987
16001
|
};
|
|
15988
16002
|
|
|
15989
16003
|
var _excluded$X = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
15990
|
-
_excluded2$
|
|
15991
|
-
_excluded3$
|
|
16004
|
+
_excluded2$g = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
16005
|
+
_excluded3$c = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "views"];
|
|
15992
16006
|
// Create context for the Resizable component
|
|
15993
16007
|
var ResizableContext = /*#__PURE__*/createContext({
|
|
15994
16008
|
orientation: 'horizontal',
|
|
@@ -16095,7 +16109,7 @@ var ResizableHandle = _ref3 => {
|
|
|
16095
16109
|
collapseTarget,
|
|
16096
16110
|
views
|
|
16097
16111
|
} = _ref3,
|
|
16098
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
16112
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$g);
|
|
16099
16113
|
var {
|
|
16100
16114
|
orientation,
|
|
16101
16115
|
size,
|
|
@@ -16235,7 +16249,7 @@ var ResizableView = _ref4 => {
|
|
|
16235
16249
|
containerRef,
|
|
16236
16250
|
views
|
|
16237
16251
|
} = _ref4,
|
|
16238
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
16252
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
|
|
16239
16253
|
var Container = orientation === 'horizontal' ? Horizontal : Vertical;
|
|
16240
16254
|
return /*#__PURE__*/React.createElement(Container, Object.assign({
|
|
16241
16255
|
ref: containerRef,
|
|
@@ -17032,8 +17046,8 @@ var CommandFooterStyles = {
|
|
|
17032
17046
|
};
|
|
17033
17047
|
|
|
17034
17048
|
var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
|
|
17035
|
-
_excluded2$
|
|
17036
|
-
_excluded3$
|
|
17049
|
+
_excluded2$h = ["children", "views"],
|
|
17050
|
+
_excluded3$d = ["heading", "children", "views"],
|
|
17037
17051
|
_excluded4$a = ["item", "selected", "onSelect", "views"],
|
|
17038
17052
|
_excluded5$5 = ["children", "views"],
|
|
17039
17053
|
_excluded6$3 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "emptyState", "footer", "search", "setSearch", "selectedIndex", "setSelectedIndex", "filteredCommands", "filteredGroups", "listRef", "views", "filter"];
|
|
@@ -17095,7 +17109,7 @@ var CommandList = _ref3 => {
|
|
|
17095
17109
|
children,
|
|
17096
17110
|
views
|
|
17097
17111
|
} = _ref3,
|
|
17098
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
17112
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
|
|
17099
17113
|
return /*#__PURE__*/React.createElement(View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
|
|
17100
17114
|
};
|
|
17101
17115
|
// Command Group component
|
|
@@ -17105,7 +17119,7 @@ var CommandGroup = _ref4 => {
|
|
|
17105
17119
|
children,
|
|
17106
17120
|
views
|
|
17107
17121
|
} = _ref4,
|
|
17108
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
17122
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
|
|
17109
17123
|
return /*#__PURE__*/React.createElement(View, Object.assign({}, CommandGroupStyles, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(Text, Object.assign({}, CommandGroupHeadingStyles, views == null ? void 0 : views.heading), heading), children);
|
|
17110
17124
|
};
|
|
17111
17125
|
// Command Item component
|
|
@@ -17557,8 +17571,8 @@ var getArrowStyles = position => {
|
|
|
17557
17571
|
};
|
|
17558
17572
|
|
|
17559
17573
|
var _excluded$$ = ["children", "views", "asChild"],
|
|
17560
|
-
_excluded2$
|
|
17561
|
-
_excluded3$
|
|
17574
|
+
_excluded2$i = ["children", "views"],
|
|
17575
|
+
_excluded3$e = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
17562
17576
|
// Create context for the Tooltip
|
|
17563
17577
|
var TooltipContext = /*#__PURE__*/createContext({
|
|
17564
17578
|
isOpen: false,
|
|
@@ -17628,7 +17642,7 @@ var TooltipContent = _ref3 => {
|
|
|
17628
17642
|
children,
|
|
17629
17643
|
views
|
|
17630
17644
|
} = _ref3,
|
|
17631
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
17645
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$i);
|
|
17632
17646
|
var {
|
|
17633
17647
|
isOpen,
|
|
17634
17648
|
contentRef,
|
|
@@ -17658,7 +17672,7 @@ var TooltipView = _ref4 => {
|
|
|
17658
17672
|
showArrow = true,
|
|
17659
17673
|
views
|
|
17660
17674
|
} = _ref4,
|
|
17661
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
17675
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$e);
|
|
17662
17676
|
var {
|
|
17663
17677
|
isOpen,
|
|
17664
17678
|
// openTooltip,
|