@app-studio/web 0.8.84 → 0.8.86
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 +2 -0
- package/dist/components/Button/Button/Button.style.d.ts +0 -3
- package/dist/components/Button/Button/Button.view.d.ts +3 -3
- package/dist/web.cjs.development.js +339 -436
- 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 +339 -436
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +343 -440
- 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 +2 -2
- package/dist/assets/svg/index.d.ts +0 -2
package/dist/web.esm.js
CHANGED
|
@@ -9,6 +9,7 @@ import { View, Horizontal, Vertical, Element, Center, useTheme, Image, Typograph
|
|
|
9
9
|
import 'core-js/modules/es.symbol.description.js';
|
|
10
10
|
import 'core-js/modules/es.parse-float.js';
|
|
11
11
|
import { Link as Link$1 } from 'react-router-dom';
|
|
12
|
+
import contrast from 'contrast';
|
|
12
13
|
import 'core-js/modules/es.promise.js';
|
|
13
14
|
import 'core-js/modules/es.array.reduce.js';
|
|
14
15
|
import 'core-js/modules/es.number.to-fixed.js';
|
|
@@ -3373,18 +3374,21 @@ var LinkView = _ref => {
|
|
|
3373
3374
|
};
|
|
3374
3375
|
return /*#__PURE__*/React.createElement(Link$1, {
|
|
3375
3376
|
to: to,
|
|
3376
|
-
target: isExternal ? '_blank' : '_self'
|
|
3377
|
-
|
|
3377
|
+
target: isExternal ? '_blank' : '_self',
|
|
3378
|
+
style: {
|
|
3379
|
+
textDecoration: 'inherit',
|
|
3380
|
+
color: 'inherit'
|
|
3381
|
+
}
|
|
3382
|
+
}, /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
3378
3383
|
onMouseEnter: handleHover,
|
|
3379
3384
|
onMouseLeave: handleHover,
|
|
3380
|
-
textDecoration: isHovered || underline === 'underline' ? 'underline !important' : 'none'
|
|
3381
|
-
}, views.text, props), /*#__PURE__*/React.createElement(Horizontal, {
|
|
3382
3385
|
gap: 3,
|
|
3383
3386
|
alignItems: "center",
|
|
3384
|
-
flexWrap: "nowrap"
|
|
3385
|
-
|
|
3387
|
+
flexWrap: "nowrap",
|
|
3388
|
+
textDecoration: 'none'
|
|
3389
|
+
}, views.text, props), children, isExternal && /*#__PURE__*/React.createElement(ExternalLinkIcon, {
|
|
3386
3390
|
widthHeight: IconSizes[iconSize]
|
|
3387
|
-
})))
|
|
3391
|
+
})));
|
|
3388
3392
|
};
|
|
3389
3393
|
|
|
3390
3394
|
// Defines the 'LinkComponent' as a functional component with props typed to 'LinkProps'
|
|
@@ -3397,125 +3401,6 @@ var LinkComponent = props => {
|
|
|
3397
3401
|
// Exports 'LinkComponent' as 'Link' for use in other parts of the application
|
|
3398
3402
|
var Link = LinkComponent;
|
|
3399
3403
|
|
|
3400
|
-
/**
|
|
3401
|
-
* Button Styles
|
|
3402
|
-
*
|
|
3403
|
-
* Defines the styles for the Button component following the design guidelines:
|
|
3404
|
-
* - Typography: Inter/Geist font, specific sizes/weights
|
|
3405
|
-
* - Spacing: 4px grid system
|
|
3406
|
-
* - Colors: Neutral palette with semantic colors
|
|
3407
|
-
* - Rounded corners: Consistent border radius
|
|
3408
|
-
* - Transitions: Subtle animations
|
|
3409
|
-
*/
|
|
3410
|
-
/**
|
|
3411
|
-
* Button sizes following the 4px grid system
|
|
3412
|
-
*/
|
|
3413
|
-
var ButtonSizes = {
|
|
3414
|
-
xs: {
|
|
3415
|
-
// Height: 24px (6 × 4px)
|
|
3416
|
-
height: 24,
|
|
3417
|
-
paddingTop: 2,
|
|
3418
|
-
paddingBottom: 2,
|
|
3419
|
-
paddingLeft: 6,
|
|
3420
|
-
paddingRight: 6,
|
|
3421
|
-
// Typography
|
|
3422
|
-
fontSize: 12,
|
|
3423
|
-
fontWeight: '500',
|
|
3424
|
-
lineHeight: 20,
|
|
3425
|
-
letterSpacing: '-0.01em'
|
|
3426
|
-
},
|
|
3427
|
-
sm: {
|
|
3428
|
-
// Height: 32px (8 × 4px)
|
|
3429
|
-
height: 32,
|
|
3430
|
-
paddingTop: 6,
|
|
3431
|
-
paddingBottom: 6,
|
|
3432
|
-
paddingLeft: 12,
|
|
3433
|
-
paddingRight: 12,
|
|
3434
|
-
// Typography
|
|
3435
|
-
fontSize: 14,
|
|
3436
|
-
fontWeight: '500',
|
|
3437
|
-
lineHeight: 20,
|
|
3438
|
-
letterSpacing: '-0.01em'
|
|
3439
|
-
},
|
|
3440
|
-
md: {
|
|
3441
|
-
// Height: 40px (10 × 4px) - standard height for interactive elements
|
|
3442
|
-
height: 40,
|
|
3443
|
-
paddingTop: 8,
|
|
3444
|
-
paddingBottom: 8,
|
|
3445
|
-
paddingLeft: 16,
|
|
3446
|
-
paddingRight: 16,
|
|
3447
|
-
// Typography
|
|
3448
|
-
fontSize: 14,
|
|
3449
|
-
fontWeight: '500',
|
|
3450
|
-
lineHeight: 24,
|
|
3451
|
-
letterSpacing: '-0.01em'
|
|
3452
|
-
},
|
|
3453
|
-
lg: {
|
|
3454
|
-
// Height: 48px (12 × 4px)
|
|
3455
|
-
height: 48,
|
|
3456
|
-
paddingTop: 12,
|
|
3457
|
-
paddingBottom: 12,
|
|
3458
|
-
paddingLeft: 20,
|
|
3459
|
-
paddingRight: 20,
|
|
3460
|
-
// Typography
|
|
3461
|
-
fontSize: 16,
|
|
3462
|
-
fontWeight: '500',
|
|
3463
|
-
lineHeight: 24,
|
|
3464
|
-
letterSpacing: '-0.01em'
|
|
3465
|
-
},
|
|
3466
|
-
xl: {
|
|
3467
|
-
// Height: 60px (15 × 4px)
|
|
3468
|
-
height: 60,
|
|
3469
|
-
paddingTop: 16,
|
|
3470
|
-
paddingBottom: 16,
|
|
3471
|
-
paddingLeft: 28,
|
|
3472
|
-
paddingRight: 28,
|
|
3473
|
-
// Typography
|
|
3474
|
-
fontSize: 18,
|
|
3475
|
-
fontWeight: '500',
|
|
3476
|
-
lineHeight: 28,
|
|
3477
|
-
letterSpacing: '-0.01em'
|
|
3478
|
-
}
|
|
3479
|
-
};
|
|
3480
|
-
/**
|
|
3481
|
-
* Button shapes with consistent border radius
|
|
3482
|
-
*/
|
|
3483
|
-
var ButtonShapes = {
|
|
3484
|
-
sharp: 0,
|
|
3485
|
-
rounded: 8,
|
|
3486
|
-
pillShaped: 999
|
|
3487
|
-
};
|
|
3488
|
-
/**
|
|
3489
|
-
* Icon sizes for different button sizes
|
|
3490
|
-
*/
|
|
3491
|
-
var IconSizes$1 = {
|
|
3492
|
-
xs: {
|
|
3493
|
-
width: 16,
|
|
3494
|
-
height: 16,
|
|
3495
|
-
padding: 6
|
|
3496
|
-
},
|
|
3497
|
-
sm: {
|
|
3498
|
-
width: 20,
|
|
3499
|
-
height: 20,
|
|
3500
|
-
padding: 6
|
|
3501
|
-
},
|
|
3502
|
-
md: {
|
|
3503
|
-
width: 24,
|
|
3504
|
-
height: 24,
|
|
3505
|
-
padding: 8
|
|
3506
|
-
},
|
|
3507
|
-
lg: {
|
|
3508
|
-
width: 24,
|
|
3509
|
-
height: 24,
|
|
3510
|
-
padding: 12
|
|
3511
|
-
},
|
|
3512
|
-
xl: {
|
|
3513
|
-
width: 28,
|
|
3514
|
-
height: 28,
|
|
3515
|
-
padding: 14
|
|
3516
|
-
}
|
|
3517
|
-
};
|
|
3518
|
-
|
|
3519
3404
|
// Defines a mapping of spinning speed labels to their respective duration in seconds for the Loader component animations.
|
|
3520
3405
|
// Sets up a scale of sizes, mapping size labels to numerical values to be used for Loader component dimensions.
|
|
3521
3406
|
var DefaultSizes = {
|
|
@@ -3714,290 +3599,308 @@ React.createElement(LoaderView, Object.assign({}, props)));
|
|
|
3714
3599
|
// Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
|
|
3715
3600
|
var Loader = LoaderComponent;
|
|
3716
3601
|
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3602
|
+
/**
|
|
3603
|
+
* Button Styles
|
|
3604
|
+
*
|
|
3605
|
+
* Defines the styles for the Button component following the design guidelines:
|
|
3606
|
+
* - Typography: Inter/Geist font, specific sizes/weights
|
|
3607
|
+
* - Spacing: 4px grid system
|
|
3608
|
+
* - Colors: Neutral palette with semantic colors
|
|
3609
|
+
* - Rounded corners: Consistent border radius
|
|
3610
|
+
* - Transitions: Subtle animations
|
|
3611
|
+
*/
|
|
3612
|
+
/**
|
|
3613
|
+
* Button sizes following the 4px grid system
|
|
3614
|
+
*/
|
|
3615
|
+
var ButtonSizes = {
|
|
3616
|
+
xs: {
|
|
3617
|
+
// Height: 24px (6 × 4px)
|
|
3618
|
+
minHeight: 24,
|
|
3619
|
+
paddingTop: 2,
|
|
3620
|
+
paddingBottom: 2,
|
|
3621
|
+
paddingLeft: 6,
|
|
3622
|
+
paddingRight: 6,
|
|
3623
|
+
// Typography
|
|
3624
|
+
fontSize: 12,
|
|
3625
|
+
fontWeight: '500',
|
|
3626
|
+
lineHeight: 20,
|
|
3627
|
+
letterSpacing: '-0.01em'
|
|
3628
|
+
},
|
|
3629
|
+
sm: {
|
|
3630
|
+
// Height: 32px (8 × 4px)
|
|
3631
|
+
minHeight: 32,
|
|
3632
|
+
paddingTop: 6,
|
|
3633
|
+
paddingBottom: 6,
|
|
3634
|
+
paddingLeft: 12,
|
|
3635
|
+
paddingRight: 12,
|
|
3636
|
+
// Typography
|
|
3637
|
+
fontSize: 14,
|
|
3638
|
+
fontWeight: '500',
|
|
3639
|
+
lineHeight: 20,
|
|
3640
|
+
letterSpacing: '-0.01em'
|
|
3641
|
+
},
|
|
3642
|
+
md: {
|
|
3643
|
+
// Height: 40px (10 × 4px) - standard height for interactive elements
|
|
3644
|
+
minHeight: 40,
|
|
3645
|
+
paddingTop: 8,
|
|
3646
|
+
paddingBottom: 8,
|
|
3647
|
+
paddingLeft: 16,
|
|
3648
|
+
paddingRight: 16,
|
|
3649
|
+
// Typography
|
|
3650
|
+
fontSize: 14,
|
|
3651
|
+
fontWeight: '500',
|
|
3652
|
+
lineHeight: 24,
|
|
3653
|
+
letterSpacing: '-0.01em'
|
|
3654
|
+
},
|
|
3655
|
+
lg: {
|
|
3656
|
+
// Height: 48px (12 × 4px)
|
|
3657
|
+
minHeight: 48,
|
|
3658
|
+
paddingTop: 12,
|
|
3659
|
+
paddingBottom: 12,
|
|
3660
|
+
paddingLeft: 20,
|
|
3661
|
+
paddingRight: 20,
|
|
3662
|
+
// Typography
|
|
3663
|
+
fontSize: 16,
|
|
3664
|
+
fontWeight: '500',
|
|
3665
|
+
lineHeight: 24,
|
|
3666
|
+
letterSpacing: '-0.01em'
|
|
3667
|
+
},
|
|
3668
|
+
xl: {
|
|
3669
|
+
// Height: 60px (15 × 4px)
|
|
3670
|
+
minHeight: 60,
|
|
3671
|
+
paddingTop: 16,
|
|
3672
|
+
paddingBottom: 16,
|
|
3673
|
+
paddingLeft: 28,
|
|
3674
|
+
paddingRight: 28,
|
|
3675
|
+
// Typography
|
|
3676
|
+
fontSize: 18,
|
|
3677
|
+
fontWeight: '500',
|
|
3678
|
+
lineHeight: 28,
|
|
3679
|
+
letterSpacing: '-0.01em'
|
|
3680
|
+
}
|
|
3681
|
+
};
|
|
3682
|
+
/**
|
|
3683
|
+
* Button shapes with consistent border radius
|
|
3684
|
+
*/
|
|
3685
|
+
var ButtonShapes = {
|
|
3686
|
+
sharp: 0,
|
|
3687
|
+
rounded: 8,
|
|
3688
|
+
pillShaped: 999
|
|
3689
|
+
};
|
|
3690
|
+
/**
|
|
3691
|
+
* Icon sizes for different button sizes
|
|
3692
|
+
*/
|
|
3693
|
+
var IconSizes$1 = {
|
|
3694
|
+
xs: {
|
|
3695
|
+
width: 16,
|
|
3696
|
+
height: 16,
|
|
3697
|
+
padding: 6
|
|
3698
|
+
},
|
|
3699
|
+
sm: {
|
|
3700
|
+
width: 20,
|
|
3701
|
+
height: 20,
|
|
3702
|
+
padding: 6
|
|
3703
|
+
},
|
|
3704
|
+
md: {
|
|
3705
|
+
width: 24,
|
|
3706
|
+
height: 24,
|
|
3707
|
+
padding: 8
|
|
3708
|
+
},
|
|
3709
|
+
lg: {
|
|
3710
|
+
width: 24,
|
|
3711
|
+
height: 24,
|
|
3712
|
+
padding: 12
|
|
3713
|
+
},
|
|
3714
|
+
xl: {
|
|
3715
|
+
width: 28,
|
|
3716
|
+
height: 28,
|
|
3717
|
+
padding: 14
|
|
3718
|
+
}
|
|
3719
|
+
};
|
|
3720
|
+
var getButtonVariants = (color, isLight) => ({
|
|
3721
|
+
filled: {
|
|
3722
|
+
backgroundColor: color,
|
|
3723
|
+
color: isLight ? 'color.black' : 'color.white',
|
|
3724
|
+
borderWidth: 1,
|
|
3725
|
+
borderStyle: 'solid',
|
|
3726
|
+
borderColor: 'transparent',
|
|
3727
|
+
_hover: {
|
|
3728
|
+
backgroundColor: 'transparent',
|
|
3729
|
+
color: color,
|
|
3730
|
+
borderColor: color,
|
|
3731
|
+
transform: 'translateY(-1px)'
|
|
3732
|
+
},
|
|
3733
|
+
_active: {
|
|
3734
|
+
color: color,
|
|
3735
|
+
borderColor: color,
|
|
3736
|
+
transform: 'translateY(0)'
|
|
3737
|
+
},
|
|
3738
|
+
transition: 'all 0.2s ease'
|
|
3739
|
+
},
|
|
3740
|
+
outline: {
|
|
3741
|
+
backgroundColor: 'transparent',
|
|
3742
|
+
color: color,
|
|
3743
|
+
borderWidth: 1,
|
|
3744
|
+
borderStyle: 'solid',
|
|
3745
|
+
borderColor: color,
|
|
3746
|
+
_hover: {
|
|
3747
|
+
backgroundColor: color,
|
|
3748
|
+
color: isLight ? 'light.black' : 'light.white',
|
|
3749
|
+
transform: 'translateY(-1px)'
|
|
3750
|
+
},
|
|
3751
|
+
_active: {
|
|
3752
|
+
backgroundColor: color,
|
|
3753
|
+
color: isLight ? 'light.black' : 'light.white',
|
|
3754
|
+
transform: 'translateY(0)'
|
|
3755
|
+
},
|
|
3756
|
+
transition: 'all 0.2s ease'
|
|
3757
|
+
},
|
|
3758
|
+
ghost: {
|
|
3759
|
+
backgroundColor: 'transparent',
|
|
3760
|
+
color: color,
|
|
3761
|
+
borderWidth: 0,
|
|
3762
|
+
borderStyle: 'none',
|
|
3763
|
+
borderColor: 'transparent',
|
|
3764
|
+
_hover: {
|
|
3765
|
+
backgroundColor: color,
|
|
3766
|
+
color: isLight ? 'light.black' : 'light.white',
|
|
3767
|
+
transform: 'translateY(-1px)'
|
|
3768
|
+
},
|
|
3769
|
+
_active: {
|
|
3770
|
+
backgroundColor: color,
|
|
3771
|
+
color: isLight ? 'light.black' : 'light.white',
|
|
3772
|
+
transform: 'translateY(0)'
|
|
3773
|
+
},
|
|
3774
|
+
transition: 'all 0.2s ease'
|
|
3775
|
+
},
|
|
3776
|
+
link: {
|
|
3777
|
+
backgroundColor: 'transparent',
|
|
3778
|
+
color: isLight ? color : 'light.black',
|
|
3779
|
+
borderWidth: 0,
|
|
3780
|
+
borderStyle: 'none',
|
|
3781
|
+
borderColor: 'transparent',
|
|
3782
|
+
textDecoration: 'underline',
|
|
3783
|
+
textUnderlineOffset: 2,
|
|
3784
|
+
_hover: {
|
|
3785
|
+
textDecorationThickness: 2
|
|
3786
|
+
},
|
|
3787
|
+
_active: {
|
|
3788
|
+
textDecorationThickness: 2
|
|
3789
|
+
},
|
|
3790
|
+
transition: 'all 0.2s ease'
|
|
3791
|
+
}
|
|
3792
|
+
});
|
|
3793
|
+
|
|
3794
|
+
var _excluded$a = ["variant", "size", "shape", "iconPosition", "loaderPosition", "backgroundColor", "color", "isAuto", "isFilled", "isDisabled", "isLoading", "isIconRounded", "icon", "children", "to", "isExternal", "shadow", "onClick", "views", "themeMode"];
|
|
3722
3795
|
var ButtonView = _ref => {
|
|
3723
|
-
var
|
|
3796
|
+
var _ref2;
|
|
3724
3797
|
var {
|
|
3725
|
-
|
|
3726
|
-
shadow,
|
|
3727
|
-
children,
|
|
3728
|
-
ariaLabel,
|
|
3729
|
-
to,
|
|
3730
|
-
isAuto = false,
|
|
3731
|
-
isFilled = false,
|
|
3732
|
-
isIconRounded = false,
|
|
3733
|
-
isLoading = false,
|
|
3734
|
-
isDisabled = false,
|
|
3735
|
-
size = 'md',
|
|
3798
|
+
/* behaviour */
|
|
3736
3799
|
variant = 'filled',
|
|
3737
|
-
|
|
3800
|
+
size = 'md',
|
|
3738
3801
|
shape = 'rounded',
|
|
3739
|
-
|
|
3740
|
-
loaderProps = {},
|
|
3802
|
+
iconPosition = 'left',
|
|
3741
3803
|
loaderPosition = 'left',
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
setIsHovered = () => {},
|
|
3745
|
-
isExternal = false,
|
|
3746
|
-
themeMode: elementMode,
|
|
3747
|
-
// Allow overriding themeMode for this element
|
|
3748
|
-
views,
|
|
3804
|
+
backgroundColor,
|
|
3805
|
+
// primary candidate for main color
|
|
3749
3806
|
color,
|
|
3750
|
-
//
|
|
3751
|
-
|
|
3807
|
+
// 2nd candidate for main color (NOT text‑color)
|
|
3808
|
+
isAuto,
|
|
3809
|
+
isFilled,
|
|
3810
|
+
isDisabled,
|
|
3811
|
+
isLoading,
|
|
3812
|
+
isIconRounded,
|
|
3813
|
+
/* content */
|
|
3814
|
+
icon,
|
|
3815
|
+
children,
|
|
3816
|
+
/* nav */
|
|
3817
|
+
to,
|
|
3818
|
+
isExternal,
|
|
3819
|
+
/* misc */
|
|
3820
|
+
shadow,
|
|
3821
|
+
onClick,
|
|
3822
|
+
views = {},
|
|
3823
|
+
themeMode: elementMode
|
|
3752
3824
|
} = _ref,
|
|
3753
3825
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
3826
|
+
/* theme helpers */
|
|
3754
3827
|
var {
|
|
3755
3828
|
getColor,
|
|
3756
3829
|
themeMode
|
|
3757
3830
|
} = useTheme();
|
|
3758
|
-
var
|
|
3759
|
-
|
|
3760
|
-
var
|
|
3761
|
-
|
|
3762
|
-
};
|
|
3763
|
-
// Determine the base background color key/value, considering disabled state
|
|
3764
|
-
var buttonBackgroundColorKey = isActive ? backgroundColor : 'theme.disabled';
|
|
3765
|
-
// --- Provided Color Logic ---
|
|
3766
|
-
// Determine the effective theme mode for this button
|
|
3767
|
-
var mode = elementMode != null ? elementMode : themeMode; // effective mode
|
|
3768
|
-
// Resolve the base background color string
|
|
3769
|
-
var bg = getColor(buttonBackgroundColorKey, {
|
|
3770
|
-
themeMode: mode
|
|
3771
|
-
});
|
|
3772
|
-
// Resolve the background color string in the opposite theme mode (for reverse effect, though not directly used for ghost/outline text contrast)
|
|
3773
|
-
// const bgHover = getColor(buttonBackgroundColorKey, {
|
|
3774
|
-
// themeMode: mode === 'light' ? 'dark' : 'light',
|
|
3775
|
-
// }); // bgHover is not strictly needed for the text contrast logic below
|
|
3776
|
-
// Check contrast of base background
|
|
3777
|
-
var isBgLight = contrast(bg) === mode;
|
|
3778
|
-
// Determine contrasting text color key for the base background
|
|
3779
|
-
var txtOnBgKey = isBgLight ? 'color.black' : 'color.white';
|
|
3780
|
-
// --- End Provided Color Logic ---
|
|
3781
|
-
// Determine the default text color key/value if 'color' prop is not provided
|
|
3782
|
-
// For filled buttons, default text color should contrast with the background (use txtOnBgKey).
|
|
3783
|
-
// For outline/link/ghost, a theme-appropriate text color is usually better (e.g., theme.text or theme.primary).
|
|
3784
|
-
var defaultTextColorKey;
|
|
3785
|
-
if (variant === 'filled') {
|
|
3786
|
-
defaultTextColorKey = txtOnBgKey; // Use the calculated contrasting color key
|
|
3787
|
-
} else {
|
|
3788
|
-
// For non-filled variants, default to theme's text color or primary color
|
|
3789
|
-
defaultTextColorKey = 'theme.primary'; // Or 'theme.primary' depending on design system
|
|
3790
|
-
}
|
|
3791
|
-
// Determine the actual key/value for the base text color
|
|
3792
|
-
// Use the provided 'color' prop if available, otherwise use the calculated default
|
|
3793
|
-
var baseTextColorKey = color || defaultTextColorKey;
|
|
3794
|
-
// Resolve the actual base text color string
|
|
3795
|
-
var resolvedBaseTextColor = getColor(baseTextColorKey, {
|
|
3796
|
-
themeMode: mode
|
|
3797
|
-
});
|
|
3798
|
-
// Resolve the contrasting color string for the base background (used for text in outline/ghost reverse)
|
|
3799
|
-
var contrastingColorForBg = getColor(txtOnBgKey, {
|
|
3800
|
-
themeMode: mode
|
|
3801
|
-
});
|
|
3802
|
-
// Resolve the contrasting color string for the base text color (used for text in ghost reverse)
|
|
3803
|
-
var isBaseTextLight = contrast(resolvedBaseTextColor) === 'light';
|
|
3804
|
-
var contrastingColorForBaseText = getColor(isBaseTextLight ? 'color.black' : 'color.white', {
|
|
3831
|
+
var mode = elementMode != null ? elementMode : themeMode;
|
|
3832
|
+
/* MAIN COLOR – determines the entire palette */
|
|
3833
|
+
var mainColorKey = (_ref2 = backgroundColor != null ? backgroundColor : color) != null ? _ref2 : 'theme.primary';
|
|
3834
|
+
var mainTone = getColor(isDisabled ? 'theme.disabled' : mainColorKey, {
|
|
3805
3835
|
themeMode: mode
|
|
3806
3836
|
});
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
var
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
// Resolved base text color string
|
|
3817
|
-
contrastingColorForBg,
|
|
3818
|
-
// Resolved contrasting color string for resolvedBg
|
|
3819
|
-
contrastingColorForBaseText,
|
|
3820
|
-
// Resolved contrasting color string for resolvedBaseTextColor
|
|
3821
|
-
resolvedBorderColor
|
|
3822
|
-
} = _ref2;
|
|
3823
|
-
// Define the base styles for each variant
|
|
3824
|
-
var baseStyles = {
|
|
3825
|
-
filled: {
|
|
3826
|
-
backgroundColor: resolvedBg,
|
|
3827
|
-
color: resolvedBaseTextColor,
|
|
3828
|
-
borderWidth: 1,
|
|
3829
|
-
borderStyle: 'solid',
|
|
3830
|
-
borderColor: 'transparent'
|
|
3831
|
-
},
|
|
3832
|
-
outline: {
|
|
3833
|
-
backgroundColor: 'transparent',
|
|
3834
|
-
color: resolvedBaseTextColor,
|
|
3835
|
-
borderWidth: 1,
|
|
3836
|
-
borderStyle: 'solid',
|
|
3837
|
-
borderColor: resolvedBorderColor
|
|
3838
|
-
},
|
|
3839
|
-
link: {
|
|
3840
|
-
backgroundColor: 'transparent',
|
|
3841
|
-
color: resolvedBg,
|
|
3842
|
-
borderWidth: 0,
|
|
3843
|
-
borderStyle: 'none',
|
|
3844
|
-
borderColor: 'transparent',
|
|
3845
|
-
textDecoration: 'underline'
|
|
3846
|
-
},
|
|
3847
|
-
ghost: {
|
|
3848
|
-
backgroundColor: 'transparent',
|
|
3849
|
-
color: resolvedBaseTextColor,
|
|
3850
|
-
borderWidth: 0,
|
|
3851
|
-
borderStyle: 'none',
|
|
3852
|
-
borderColor: 'transparent'
|
|
3853
|
-
}
|
|
3854
|
-
};
|
|
3855
|
-
// Define the styles applied on hover/active when effect is 'reverse'
|
|
3856
|
-
var reverseHoverActiveStyles = {
|
|
3857
|
-
filled: {
|
|
3858
|
-
backgroundColor: 'transparent',
|
|
3859
|
-
color: resolvedBg,
|
|
3860
|
-
borderWidth: 1,
|
|
3861
|
-
borderStyle: 'solid',
|
|
3862
|
-
borderColor: resolvedBg
|
|
3863
|
-
},
|
|
3864
|
-
outline: {
|
|
3865
|
-
backgroundColor: resolvedBg,
|
|
3866
|
-
color: contrastingColorForBg,
|
|
3867
|
-
borderWidth: 1,
|
|
3868
|
-
borderStyle: 'solid',
|
|
3869
|
-
borderColor: 'transparent'
|
|
3870
|
-
},
|
|
3871
|
-
link: {
|
|
3872
|
-
backgroundColor: 'transparent',
|
|
3873
|
-
color: resolvedBg,
|
|
3874
|
-
borderWidth: 0,
|
|
3875
|
-
borderStyle: 'none',
|
|
3876
|
-
borderColor: 'transparent',
|
|
3877
|
-
textDecoration: 'none'
|
|
3878
|
-
},
|
|
3879
|
-
ghost: {
|
|
3880
|
-
backgroundColor: resolvedBg,
|
|
3881
|
-
color: contrastingColorForBaseText,
|
|
3882
|
-
borderWidth: 0,
|
|
3883
|
-
borderStyle: 'none',
|
|
3884
|
-
borderColor: 'transparent'
|
|
3885
|
-
}
|
|
3886
|
-
};
|
|
3887
|
-
// General hover/active effects (transform, shadow, opacity, etc.)
|
|
3888
|
-
var generalHoverStyles = {
|
|
3889
|
-
transform: 'translateY(2px)',
|
|
3890
|
-
boxShadow: currentVariant === 'link' ? undefined : '0 4px 8px rgba(0, 0, 0, 0.1)',
|
|
3891
|
-
// opacity: currentVariant === 'link' ? 0.8 : undefined,
|
|
3892
|
-
textDecorationThickness: currentVariant === 'link' ? '2px' : undefined
|
|
3893
|
-
};
|
|
3894
|
-
var generalActiveStyles = {
|
|
3895
|
-
transform: 'translateY(-1px)',
|
|
3896
|
-
boxShadow: '0 2px 4px rgba(0, 0, 0, 0.1)',
|
|
3897
|
-
opacity: currentVariant === 'link' ? 0.8 : undefined,
|
|
3898
|
-
textDecorationThickness: currentVariant === 'link' ? '2px' : undefined
|
|
3899
|
-
};
|
|
3900
|
-
// Combine base styles with conditional hover/active overrides
|
|
3901
|
-
return Object.assign({}, baseStyles[currentVariant], {
|
|
3902
|
-
_hover: Object.assign({}, currentEffect === 'reverse' ? reverseHoverActiveStyles[currentVariant] : {}, currentEffect === 'hover' ? {
|
|
3903
|
-
filter: 'brightness(0.85)'
|
|
3904
|
-
} : {}, generalHoverStyles),
|
|
3905
|
-
_active: Object.assign({}, currentEffect === 'reverse' ? reverseHoverActiveStyles[currentVariant] : {}, currentEffect === 'hover' ? {
|
|
3906
|
-
filter: 'brightness(0.7)'
|
|
3907
|
-
} : {}, generalActiveStyles)
|
|
3908
|
-
});
|
|
3909
|
-
};
|
|
3910
|
-
// Get the calculated variant styles for the current state
|
|
3911
|
-
var buttonVariantStyles = getButtonVariantStyles({
|
|
3912
|
-
currentVariant: variant,
|
|
3913
|
-
currentEffect: effect,
|
|
3914
|
-
resolvedBg: bg,
|
|
3915
|
-
resolvedBaseTextColor: resolvedBaseTextColor,
|
|
3916
|
-
contrastingColorForBg: contrastingColorForBg,
|
|
3917
|
-
contrastingColorForBaseText: contrastingColorForBaseText,
|
|
3918
|
-
resolvedBorderColor: bg
|
|
3919
|
-
});
|
|
3920
|
-
// Extract hover and active styles from the calculated styles
|
|
3921
|
-
var {
|
|
3922
|
-
_hover,
|
|
3923
|
-
_active
|
|
3924
|
-
} = buttonVariantStyles,
|
|
3925
|
-
baseButtonVariantStyles = _objectWithoutPropertiesLoose(buttonVariantStyles, _excluded2$3);
|
|
3926
|
-
var buttonSizeStyles = ButtonSizes[size];
|
|
3927
|
-
var scaleWidth = {
|
|
3928
|
-
width: isAuto === true ? 'fit-content' : isFilled ? '100%' : buttonSizeStyles.width
|
|
3929
|
-
};
|
|
3930
|
-
var changePadding = isIconRounded ? IconSizes$1[size] : ButtonSizes[size];
|
|
3931
|
-
// Use Horizontal or Vertical container based on icon position
|
|
3932
|
-
var Container = ['left', 'right'].includes(iconPosition) ? Horizontal : Vertical;
|
|
3933
|
-
// Create the button content with proper spacing and alignment
|
|
3934
|
-
var content = /*#__PURE__*/React.createElement(Container, Object.assign({
|
|
3837
|
+
var tone = contrast(mainTone);
|
|
3838
|
+
/* variant palette */
|
|
3839
|
+
var palette = useMemo(() => getButtonVariants(mainTone, tone == 'light'), [mainTone, tone]);
|
|
3840
|
+
var base = palette[variant];
|
|
3841
|
+
/* layout helpers */
|
|
3842
|
+
var Wrapper = ['left', 'right'].includes(iconPosition) ? Horizontal : Vertical;
|
|
3843
|
+
var sizeStyles = ButtonSizes[size];
|
|
3844
|
+
var iconPad = isIconRounded ? IconSizes$1[size] : {};
|
|
3845
|
+
var content = /*#__PURE__*/React.createElement(Wrapper, Object.assign({
|
|
3935
3846
|
gap: 8,
|
|
3936
3847
|
alignItems: "center",
|
|
3937
|
-
justifyContent: "center"
|
|
3938
|
-
}, views == null ? void 0 : views.container), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React.createElement(Loader, Object.assign({
|
|
3939
|
-
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
3940
|
-
color: baseButtonVariantStyles.color
|
|
3941
|
-
}, loaderProps))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
3942
|
-
display: "flex",
|
|
3943
|
-
alignItems: "center",
|
|
3944
3848
|
justifyContent: "center",
|
|
3945
|
-
color:
|
|
3849
|
+
color: 'inherit',
|
|
3850
|
+
_hover: {
|
|
3851
|
+
color: 'inherit'
|
|
3852
|
+
}
|
|
3853
|
+
}, sizeStyles, views == null ? void 0 : views.content), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React.createElement(Loader, Object.assign({
|
|
3854
|
+
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
3855
|
+
color: 'inherit',
|
|
3856
|
+
_hover: {
|
|
3857
|
+
color: 'inherit'
|
|
3858
|
+
}
|
|
3859
|
+
}, views == null ? void 0 : views.loader))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
3860
|
+
color: 'inherit',
|
|
3861
|
+
_hover: {
|
|
3862
|
+
color: 'inherit'
|
|
3863
|
+
}
|
|
3946
3864
|
}, views == null ? void 0 : views.icon), icon)), children, icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3865
|
+
color: 'inherit',
|
|
3866
|
+
_hover: {
|
|
3867
|
+
color: 'inherit'
|
|
3868
|
+
}
|
|
3951
3869
|
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React.createElement(Loader, Object.assign({
|
|
3952
3870
|
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
3953
|
-
color:
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3871
|
+
color: 'inherit',
|
|
3872
|
+
_hover: {
|
|
3873
|
+
color: 'inherit'
|
|
3874
|
+
}
|
|
3875
|
+
}, views == null ? void 0 : views.loader))));
|
|
3957
3876
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3877
|
+
as: variant === 'link' && to ? 'div' : 'button',
|
|
3878
|
+
type: variant === 'link' && to ? undefined : 'button',
|
|
3879
|
+
disabled: Boolean(isDisabled || isLoading)
|
|
3880
|
+
}, sizeStyles, iconPad, {
|
|
3961
3881
|
display: "flex",
|
|
3962
3882
|
alignItems: "center",
|
|
3963
3883
|
justifyContent: "center",
|
|
3964
|
-
|
|
3965
|
-
|
|
3884
|
+
width: isAuto ? 'fit-content' : isFilled ? '100%' : undefined,
|
|
3885
|
+
/* visuals */
|
|
3966
3886
|
borderRadius: ButtonShapes[shape],
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3887
|
+
backgroundColor: base.backgroundColor,
|
|
3888
|
+
color: base.color,
|
|
3889
|
+
borderWidth: base.borderWidth,
|
|
3890
|
+
borderStyle: base.borderStyle,
|
|
3891
|
+
borderColor: base.borderColor,
|
|
3892
|
+
_hover: base._hover,
|
|
3893
|
+
_active: base._active,
|
|
3894
|
+
boxShadow: shadow,
|
|
3971
3895
|
transition: "all 0.2s ease",
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
}, defaultNativeProps, (_ref3 => {
|
|
3976
|
-
var rest = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
|
|
3977
|
-
return rest;
|
|
3978
|
-
})(props), buttonSizeStyles, baseButtonVariantStyles, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, {
|
|
3979
|
-
// Apply hover and active styles
|
|
3980
|
-
_hover: _hover,
|
|
3981
|
-
_active: _active
|
|
3982
|
-
}, props, views == null ? void 0 : views.container), to ? (/*#__PURE__*/React.createElement(Link, Object.assign({
|
|
3896
|
+
cursor: isDisabled ? 'default' : 'pointer',
|
|
3897
|
+
onClick: onClick
|
|
3898
|
+
}, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React.createElement(Link, Object.assign({
|
|
3983
3899
|
to: to,
|
|
3984
3900
|
isExternal: isExternal,
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
textDecoration: baseButtonVariantStyles.textDecoration,
|
|
3989
|
-
textDecorationColor: baseButtonVariantStyles.color,
|
|
3990
|
-
textDecorationThickness: "1px" // Base thickness
|
|
3991
|
-
,
|
|
3992
|
-
textUnderlineOffset: "2px",
|
|
3993
|
-
transition: "all 0.2s ease",
|
|
3994
|
-
// Apply Link-specific hover/active styles if needed, or let Element's _hover/_active handle it
|
|
3995
|
-
_hover: Object.assign({}, _hover, {
|
|
3996
|
-
textDecorationThickness: '2px'
|
|
3997
|
-
}),
|
|
3998
|
-
_active: Object.assign({}, _active, {
|
|
3999
|
-
textDecorationThickness: '2px'
|
|
4000
|
-
})
|
|
3901
|
+
color: 'inherit',
|
|
3902
|
+
textDecoration: 'inherit',
|
|
3903
|
+
textDecorationColor: 'inherit'
|
|
4001
3904
|
}, views == null ? void 0 : views.link), content)) : content);
|
|
4002
3905
|
};
|
|
4003
3906
|
|
|
@@ -4117,8 +4020,8 @@ var useCardContext = () => {
|
|
|
4117
4020
|
};
|
|
4118
4021
|
|
|
4119
4022
|
var _excluded$b = ["children", "views", "style", "themeMode"],
|
|
4120
|
-
_excluded2$
|
|
4121
|
-
_excluded3$
|
|
4023
|
+
_excluded2$3 = ["children", "views", "style", "themeMode"],
|
|
4024
|
+
_excluded3$3 = ["children", "views", "style", "themeMode"],
|
|
4122
4025
|
_excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
|
|
4123
4026
|
var CardHeader = _ref => {
|
|
4124
4027
|
var _contextStyles$header;
|
|
@@ -4144,7 +4047,7 @@ var CardContent = _ref2 => {
|
|
|
4144
4047
|
children,
|
|
4145
4048
|
style
|
|
4146
4049
|
} = _ref2,
|
|
4147
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
4050
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
4148
4051
|
var theme = useTheme();
|
|
4149
4052
|
var {
|
|
4150
4053
|
styles: contextStyles
|
|
@@ -4162,7 +4065,7 @@ var CardFooter = _ref3 => {
|
|
|
4162
4065
|
children,
|
|
4163
4066
|
style
|
|
4164
4067
|
} = _ref3,
|
|
4165
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
4068
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
|
|
4166
4069
|
var theme = useTheme();
|
|
4167
4070
|
var {
|
|
4168
4071
|
styles: contextStyles
|
|
@@ -4521,8 +4424,8 @@ var useCarouselContext = () => {
|
|
|
4521
4424
|
};
|
|
4522
4425
|
|
|
4523
4426
|
var _excluded$c = ["children", "isActive", "views"],
|
|
4524
|
-
_excluded2$
|
|
4525
|
-
_excluded3$
|
|
4427
|
+
_excluded2$4 = ["views", "children"],
|
|
4428
|
+
_excluded3$4 = ["views", "children"],
|
|
4526
4429
|
_excluded4$4 = ["children", "views"],
|
|
4527
4430
|
_excluded5$1 = ["children", "views", "style"],
|
|
4528
4431
|
_excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "stepIndices", "themeMode"];
|
|
@@ -4548,7 +4451,7 @@ var CarouselPreviousComponent = _ref2 => {
|
|
|
4548
4451
|
children // Allow custom content/icon
|
|
4549
4452
|
// Spread remaining ButtonProps
|
|
4550
4453
|
} = _ref2,
|
|
4551
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
4454
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
|
|
4552
4455
|
var {
|
|
4553
4456
|
goToPrevious,
|
|
4554
4457
|
canGoPrevious,
|
|
@@ -4571,7 +4474,7 @@ var CarouselNextComponent = _ref3 => {
|
|
|
4571
4474
|
views,
|
|
4572
4475
|
children
|
|
4573
4476
|
} = _ref3,
|
|
4574
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
4477
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
|
|
4575
4478
|
var {
|
|
4576
4479
|
goToNext,
|
|
4577
4480
|
canGoNext,
|
|
@@ -5815,8 +5718,8 @@ var calculateMenuPosition = function calculateMenuPosition(x, y, menuWidth, menu
|
|
|
5815
5718
|
};
|
|
5816
5719
|
|
|
5817
5720
|
var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
|
|
5818
|
-
_excluded2$
|
|
5819
|
-
_excluded3$
|
|
5721
|
+
_excluded2$5 = ["items", "children", "position", "side", "align", "views", "style"],
|
|
5722
|
+
_excluded3$5 = ["item", "children", "onSelect", "isDisabled", "views"],
|
|
5820
5723
|
_excluded4$5 = ["views"],
|
|
5821
5724
|
_excluded5$2 = ["views"],
|
|
5822
5725
|
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
|
|
@@ -5924,7 +5827,7 @@ var ContextMenuContent = _ref3 => {
|
|
|
5924
5827
|
views,
|
|
5925
5828
|
style // Capture user-provided style
|
|
5926
5829
|
} = _ref3,
|
|
5927
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
5830
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$5);
|
|
5928
5831
|
var {
|
|
5929
5832
|
isOpen,
|
|
5930
5833
|
position: contextPosition,
|
|
@@ -5995,7 +5898,7 @@ var ContextMenuItem = _ref4 => {
|
|
|
5995
5898
|
isDisabled = false,
|
|
5996
5899
|
views
|
|
5997
5900
|
} = _ref4,
|
|
5998
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
5901
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$5);
|
|
5999
5902
|
var {
|
|
6000
5903
|
activeSubmenuId,
|
|
6001
5904
|
setActiveSubmenuId,
|
|
@@ -6221,7 +6124,7 @@ ContextMenu.Divider = ContextMenuDivider;
|
|
|
6221
6124
|
ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
|
|
6222
6125
|
|
|
6223
6126
|
var _excluded$g = ["src", "color", "views", "themeMode"],
|
|
6224
|
-
_excluded2$
|
|
6127
|
+
_excluded2$6 = ["path"];
|
|
6225
6128
|
var FileSVG = _ref => {
|
|
6226
6129
|
var {
|
|
6227
6130
|
src,
|
|
@@ -6251,7 +6154,7 @@ var FileImage = _ref2 => {
|
|
|
6251
6154
|
var {
|
|
6252
6155
|
path
|
|
6253
6156
|
} = _ref2,
|
|
6254
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
6157
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$6);
|
|
6255
6158
|
return /*#__PURE__*/React.createElement(Image, Object.assign({
|
|
6256
6159
|
src: path
|
|
6257
6160
|
}, props));
|
|
@@ -6683,8 +6586,8 @@ var IconSizes$2 = {
|
|
|
6683
6586
|
};
|
|
6684
6587
|
|
|
6685
6588
|
var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
6686
|
-
_excluded2$
|
|
6687
|
-
_excluded3$
|
|
6589
|
+
_excluded2$7 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
6590
|
+
_excluded3$6 = ["option", "size", "removeOption"],
|
|
6688
6591
|
_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"];
|
|
6689
6592
|
/**
|
|
6690
6593
|
* Item Component
|
|
@@ -6801,7 +6704,7 @@ var HiddenSelect = _ref4 => {
|
|
|
6801
6704
|
isReadOnly = false,
|
|
6802
6705
|
options = []
|
|
6803
6706
|
} = _ref4,
|
|
6804
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$
|
|
6707
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$7);
|
|
6805
6708
|
var handleChange = event => {
|
|
6806
6709
|
if (onChange) onChange(event);
|
|
6807
6710
|
};
|
|
@@ -6904,7 +6807,7 @@ var MultiSelect = _ref6 => {
|
|
|
6904
6807
|
size = 'md',
|
|
6905
6808
|
removeOption = () => {}
|
|
6906
6809
|
} = _ref6,
|
|
6907
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$
|
|
6810
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$6);
|
|
6908
6811
|
var handleClick = () => removeOption(option);
|
|
6909
6812
|
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
6910
6813
|
gap: 8,
|
|
@@ -9436,8 +9339,8 @@ var IconSizes$4 = {
|
|
|
9436
9339
|
};
|
|
9437
9340
|
|
|
9438
9341
|
var _excluded$t = ["size"],
|
|
9439
|
-
_excluded2$
|
|
9440
|
-
_excluded3$
|
|
9342
|
+
_excluded2$8 = ["size"],
|
|
9343
|
+
_excluded3$7 = ["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"];
|
|
9441
9344
|
var CountryList = _ref => {
|
|
9442
9345
|
var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
9443
9346
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
@@ -9448,7 +9351,7 @@ var CountrySelector = props => (/*#__PURE__*/React.createElement(Input, Object.a
|
|
|
9448
9351
|
type: "country"
|
|
9449
9352
|
}, props)));
|
|
9450
9353
|
var CountryItem = _ref2 => {
|
|
9451
|
-
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
9354
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$8);
|
|
9452
9355
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
9453
9356
|
as: "li"
|
|
9454
9357
|
}, props));
|
|
@@ -9550,7 +9453,7 @@ var CountryPickerView = _ref5 => {
|
|
|
9550
9453
|
},
|
|
9551
9454
|
themeMode: elementMode
|
|
9552
9455
|
} = _ref5,
|
|
9553
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$
|
|
9456
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$7);
|
|
9554
9457
|
var {
|
|
9555
9458
|
getColor,
|
|
9556
9459
|
themeMode
|
|
@@ -9801,7 +9704,7 @@ var usePasswordState = props => {
|
|
|
9801
9704
|
};
|
|
9802
9705
|
|
|
9803
9706
|
var _excluded$v = ["visibleIcon", "hiddenIcon"],
|
|
9804
|
-
_excluded2$
|
|
9707
|
+
_excluded2$9 = ["isVisible", "setIsVisible"];
|
|
9805
9708
|
var PasswordComponent = _ref => {
|
|
9806
9709
|
var {
|
|
9807
9710
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
@@ -9817,7 +9720,7 @@ var PasswordComponent = _ref => {
|
|
|
9817
9720
|
isVisible,
|
|
9818
9721
|
setIsVisible
|
|
9819
9722
|
} = _usePasswordState,
|
|
9820
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
9723
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$9);
|
|
9821
9724
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
9822
9725
|
type: isVisible ? 'text' : 'password',
|
|
9823
9726
|
isClearable: false,
|
|
@@ -10850,7 +10753,7 @@ var TextFieldComponent$1 = props => {
|
|
|
10850
10753
|
var FormikTextField = TextFieldComponent$1;
|
|
10851
10754
|
|
|
10852
10755
|
var _excluded$D = ["visibleIcon", "hiddenIcon"],
|
|
10853
|
-
_excluded2$
|
|
10756
|
+
_excluded2$a = ["isVisible", "setIsVisible"];
|
|
10854
10757
|
var PasswordComponent$1 = _ref => {
|
|
10855
10758
|
var {
|
|
10856
10759
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
@@ -10867,7 +10770,7 @@ var PasswordComponent$1 = _ref => {
|
|
|
10867
10770
|
isVisible,
|
|
10868
10771
|
setIsVisible
|
|
10869
10772
|
} = _usePasswordState,
|
|
10870
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
10773
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
|
|
10871
10774
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
10872
10775
|
type: isVisible ? 'text' : 'password',
|
|
10873
10776
|
isClearable: false,
|
|
@@ -12299,8 +12202,8 @@ var ModalTypography = {
|
|
|
12299
12202
|
};
|
|
12300
12203
|
|
|
12301
12204
|
var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
12302
|
-
_excluded2$
|
|
12303
|
-
_excluded3$
|
|
12205
|
+
_excluded2$b = ["children", "shadow", "isFullScreen", "shape", "views", "isOpen"],
|
|
12206
|
+
_excluded3$8 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
12304
12207
|
_excluded4$7 = ["children", "views"],
|
|
12305
12208
|
_excluded5$3 = ["children", "views"];
|
|
12306
12209
|
var ModalOverlay = _ref => {
|
|
@@ -12349,7 +12252,7 @@ var ModalContainer = _ref2 => {
|
|
|
12349
12252
|
shape = 'rounded',
|
|
12350
12253
|
views
|
|
12351
12254
|
} = _ref2,
|
|
12352
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
12255
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$b);
|
|
12353
12256
|
var defaultShadow = typeof document !== undefined ? {
|
|
12354
12257
|
boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
|
|
12355
12258
|
} : {
|
|
@@ -12382,7 +12285,7 @@ var ModalHeader = _ref3 => {
|
|
|
12382
12285
|
buttonPosition = 'right',
|
|
12383
12286
|
views
|
|
12384
12287
|
} = _ref3,
|
|
12385
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
12288
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$8);
|
|
12386
12289
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
12387
12290
|
var buttonIcon = /*#__PURE__*/React.createElement(View, {
|
|
12388
12291
|
onClick: onClose
|
|
@@ -13859,8 +13762,8 @@ var getDropdownPosition = function getDropdownPosition(side, align) {
|
|
|
13859
13762
|
};
|
|
13860
13763
|
|
|
13861
13764
|
var _excluded$M = ["children", "views"],
|
|
13862
|
-
_excluded2$
|
|
13863
|
-
_excluded3$
|
|
13765
|
+
_excluded2$c = ["items", "side", "align", "views"],
|
|
13766
|
+
_excluded3$9 = ["item", "views"],
|
|
13864
13767
|
_excluded4$8 = ["views"],
|
|
13865
13768
|
_excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
|
|
13866
13769
|
// Create context for the DropdownMenu
|
|
@@ -13921,7 +13824,7 @@ var DropdownMenuContent = _ref3 => {
|
|
|
13921
13824
|
align = 'start',
|
|
13922
13825
|
views
|
|
13923
13826
|
} = _ref3,
|
|
13924
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
13827
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$c);
|
|
13925
13828
|
var {
|
|
13926
13829
|
isOpen,
|
|
13927
13830
|
//activeSubmenuId, setActiveSubmenuId, size,
|
|
@@ -13957,7 +13860,7 @@ var DropdownMenuItem = _ref4 => {
|
|
|
13957
13860
|
item,
|
|
13958
13861
|
views
|
|
13959
13862
|
} = _ref4,
|
|
13960
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
13863
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$9);
|
|
13961
13864
|
var {
|
|
13962
13865
|
activeSubmenuId,
|
|
13963
13866
|
setActiveSubmenuId,
|
|
@@ -14006,8 +13909,8 @@ var DropdownMenuItem = _ref4 => {
|
|
|
14006
13909
|
}, item.label), hasSubmenu && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
14007
13910
|
marginLeft: 8
|
|
14008
13911
|
}, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React.createElement("svg", {
|
|
14009
|
-
width: "
|
|
14010
|
-
height: "
|
|
13912
|
+
width: "16px",
|
|
13913
|
+
height: "16px",
|
|
14011
13914
|
viewBox: "0 0 24 24",
|
|
14012
13915
|
fill: "none",
|
|
14013
13916
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -14270,7 +14173,7 @@ var useRect = ref => {
|
|
|
14270
14173
|
};
|
|
14271
14174
|
|
|
14272
14175
|
var _excluded$O = ["children", "views", "asChild"],
|
|
14273
|
-
_excluded2$
|
|
14176
|
+
_excluded2$d = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
14274
14177
|
// Create context for the HoverCard
|
|
14275
14178
|
var HoverCardContext = /*#__PURE__*/createContext({
|
|
14276
14179
|
isOpen: false,
|
|
@@ -14356,7 +14259,7 @@ var HoverCardContent = _ref3 => {
|
|
|
14356
14259
|
minWidth = '200px',
|
|
14357
14260
|
maxWidth = '300px'
|
|
14358
14261
|
} = _ref3,
|
|
14359
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
14262
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$d);
|
|
14360
14263
|
var {
|
|
14361
14264
|
isOpen,
|
|
14362
14265
|
cancelCloseTimer,
|
|
@@ -15419,8 +15322,8 @@ var SidebarTransitions = {
|
|
|
15419
15322
|
};
|
|
15420
15323
|
|
|
15421
15324
|
var _excluded$V = ["children", "showToggleButton", "views"],
|
|
15422
|
-
_excluded2$
|
|
15423
|
-
_excluded3$
|
|
15325
|
+
_excluded2$e = ["children", "views"],
|
|
15326
|
+
_excluded3$a = ["children", "views"],
|
|
15424
15327
|
_excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
15425
15328
|
// Create context for the Sidebar
|
|
15426
15329
|
var SidebarContext = /*#__PURE__*/createContext({
|
|
@@ -15518,7 +15421,7 @@ var SidebarContent = _ref3 => {
|
|
|
15518
15421
|
children,
|
|
15519
15422
|
views
|
|
15520
15423
|
} = _ref3,
|
|
15521
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
15424
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$e);
|
|
15522
15425
|
var {
|
|
15523
15426
|
isExpanded
|
|
15524
15427
|
} = useSidebarContext();
|
|
@@ -15536,7 +15439,7 @@ var SidebarFooter = _ref4 => {
|
|
|
15536
15439
|
children,
|
|
15537
15440
|
views
|
|
15538
15441
|
} = _ref4,
|
|
15539
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
15442
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$a);
|
|
15540
15443
|
var {
|
|
15541
15444
|
isExpanded
|
|
15542
15445
|
} = useSidebarContext();
|
|
@@ -16094,8 +15997,8 @@ var HandleIconStyles = {
|
|
|
16094
15997
|
};
|
|
16095
15998
|
|
|
16096
15999
|
var _excluded$X = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
16097
|
-
_excluded2$
|
|
16098
|
-
_excluded3$
|
|
16000
|
+
_excluded2$f = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
16001
|
+
_excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
16099
16002
|
// Create context for the Resizable component
|
|
16100
16003
|
var ResizableContext = /*#__PURE__*/createContext({
|
|
16101
16004
|
orientation: 'horizontal',
|
|
@@ -16202,7 +16105,7 @@ var ResizableHandle = _ref3 => {
|
|
|
16202
16105
|
collapseTarget,
|
|
16203
16106
|
views
|
|
16204
16107
|
} = _ref3,
|
|
16205
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
16108
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$f);
|
|
16206
16109
|
var {
|
|
16207
16110
|
orientation,
|
|
16208
16111
|
size,
|
|
@@ -16342,7 +16245,7 @@ var ResizableView = _ref4 => {
|
|
|
16342
16245
|
containerRef,
|
|
16343
16246
|
views
|
|
16344
16247
|
} = _ref4,
|
|
16345
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
16248
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
|
|
16346
16249
|
var Container = orientation === 'horizontal' ? Horizontal : Vertical;
|
|
16347
16250
|
return /*#__PURE__*/React.createElement(Container, Object.assign({
|
|
16348
16251
|
ref: containerRef,
|
|
@@ -17142,8 +17045,8 @@ var CommandFooterStyles = {
|
|
|
17142
17045
|
};
|
|
17143
17046
|
|
|
17144
17047
|
var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
|
|
17145
|
-
_excluded2$
|
|
17146
|
-
_excluded3$
|
|
17048
|
+
_excluded2$g = ["children", "views"],
|
|
17049
|
+
_excluded3$c = ["heading", "children", "views"],
|
|
17147
17050
|
_excluded4$a = ["item", "selected", "onSelect", "views"],
|
|
17148
17051
|
_excluded5$5 = ["children", "views"],
|
|
17149
17052
|
_excluded6$3 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "emptyState", "footer", "search", "setSearch", "selectedIndex", "setSelectedIndex", "filteredCommands", "filteredGroups", "listRef", "views", "filter"];
|
|
@@ -17205,7 +17108,7 @@ var CommandList = _ref3 => {
|
|
|
17205
17108
|
children,
|
|
17206
17109
|
views
|
|
17207
17110
|
} = _ref3,
|
|
17208
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
17111
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$g);
|
|
17209
17112
|
return /*#__PURE__*/React.createElement(View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
|
|
17210
17113
|
};
|
|
17211
17114
|
// Command Group component
|
|
@@ -17215,7 +17118,7 @@ var CommandGroup = _ref4 => {
|
|
|
17215
17118
|
children,
|
|
17216
17119
|
views
|
|
17217
17120
|
} = _ref4,
|
|
17218
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
17121
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
|
|
17219
17122
|
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);
|
|
17220
17123
|
};
|
|
17221
17124
|
// Command Item component
|
|
@@ -17662,8 +17565,8 @@ var getArrowStyles = position => {
|
|
|
17662
17565
|
};
|
|
17663
17566
|
|
|
17664
17567
|
var _excluded$$ = ["children", "views", "asChild"],
|
|
17665
|
-
_excluded2$
|
|
17666
|
-
_excluded3$
|
|
17568
|
+
_excluded2$h = ["children", "views"],
|
|
17569
|
+
_excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
17667
17570
|
// Create context for the Tooltip
|
|
17668
17571
|
var TooltipContext = /*#__PURE__*/createContext({
|
|
17669
17572
|
isOpen: false,
|
|
@@ -17733,7 +17636,7 @@ var TooltipContent = _ref3 => {
|
|
|
17733
17636
|
children,
|
|
17734
17637
|
views
|
|
17735
17638
|
} = _ref3,
|
|
17736
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
17639
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
|
|
17737
17640
|
var {
|
|
17738
17641
|
isOpen,
|
|
17739
17642
|
contentRef,
|
|
@@ -17763,7 +17666,7 @@ var TooltipView = _ref4 => {
|
|
|
17763
17666
|
showArrow = true,
|
|
17764
17667
|
views
|
|
17765
17668
|
} = _ref4,
|
|
17766
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
17669
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
|
|
17767
17670
|
var {
|
|
17768
17671
|
isOpen,
|
|
17769
17672
|
// openTooltip,
|