@app-studio/web 0.8.85 → 0.8.87
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.style.d.ts +0 -3
- package/dist/components/Button/Button/Button.view.d.ts +3 -3
- package/dist/web.cjs.development.js +341 -434
- 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 +341 -434
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +345 -438
- 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,312 @@ 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: 4 * 4,
|
|
3619
|
+
paddingTop: 2,
|
|
3620
|
+
paddingBottom: 2,
|
|
3621
|
+
paddingLeft: 4,
|
|
3622
|
+
paddingRight: 4,
|
|
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: 6 * 4,
|
|
3632
|
+
paddingTop: 6,
|
|
3633
|
+
paddingBottom: 6,
|
|
3634
|
+
paddingLeft: 12,
|
|
3635
|
+
paddingRight: 12,
|
|
3636
|
+
// Typography
|
|
3637
|
+
fontSize: 12,
|
|
3638
|
+
fontWeight: '500',
|
|
3639
|
+
lineHeight: 12,
|
|
3640
|
+
letterSpacing: '-0.01em'
|
|
3641
|
+
},
|
|
3642
|
+
md: {
|
|
3643
|
+
// Height: 40px (10 × 4px) - standard height for interactive elements
|
|
3644
|
+
minHeight: 8 * 4,
|
|
3645
|
+
paddingTop: 8,
|
|
3646
|
+
paddingBottom: 8,
|
|
3647
|
+
paddingLeft: 16,
|
|
3648
|
+
paddingRight: 16,
|
|
3649
|
+
// Typography
|
|
3650
|
+
fontSize: 16,
|
|
3651
|
+
fontWeight: '500',
|
|
3652
|
+
lineHeight: 16,
|
|
3653
|
+
letterSpacing: '-0.01em'
|
|
3654
|
+
},
|
|
3655
|
+
lg: {
|
|
3656
|
+
minHeight: 10 * 4,
|
|
3657
|
+
paddingTop: 10,
|
|
3658
|
+
paddingBottom: 10,
|
|
3659
|
+
paddingLeft: 20,
|
|
3660
|
+
paddingRight: 20,
|
|
3661
|
+
// Typography
|
|
3662
|
+
fontSize: 16,
|
|
3663
|
+
fontWeight: '500',
|
|
3664
|
+
lineHeight: 20,
|
|
3665
|
+
letterSpacing: '-0.01em'
|
|
3666
|
+
},
|
|
3667
|
+
xl: {
|
|
3668
|
+
// Height: 60px (15 × 4px)
|
|
3669
|
+
minHeight: 12 * 4,
|
|
3670
|
+
paddingTop: 12,
|
|
3671
|
+
paddingBottom: 12,
|
|
3672
|
+
paddingLeft: 24,
|
|
3673
|
+
paddingRight: 24,
|
|
3674
|
+
// Typography
|
|
3675
|
+
fontSize: 18,
|
|
3676
|
+
fontWeight: '500',
|
|
3677
|
+
lineHeight: 24,
|
|
3678
|
+
letterSpacing: '-0.01em'
|
|
3679
|
+
}
|
|
3680
|
+
};
|
|
3681
|
+
/**
|
|
3682
|
+
* Button shapes with consistent border radius
|
|
3683
|
+
*/
|
|
3684
|
+
var ButtonShapes = {
|
|
3685
|
+
sharp: 0,
|
|
3686
|
+
rounded: 8,
|
|
3687
|
+
pillShaped: 999
|
|
3688
|
+
};
|
|
3689
|
+
/**
|
|
3690
|
+
* Icon sizes for different button sizes
|
|
3691
|
+
*/
|
|
3692
|
+
var IconSizes$1 = {
|
|
3693
|
+
xs: {
|
|
3694
|
+
width: 16,
|
|
3695
|
+
height: 16,
|
|
3696
|
+
padding: 6
|
|
3697
|
+
},
|
|
3698
|
+
sm: {
|
|
3699
|
+
width: 20,
|
|
3700
|
+
height: 20,
|
|
3701
|
+
padding: 6
|
|
3702
|
+
},
|
|
3703
|
+
md: {
|
|
3704
|
+
width: 24,
|
|
3705
|
+
height: 24,
|
|
3706
|
+
padding: 8
|
|
3707
|
+
},
|
|
3708
|
+
lg: {
|
|
3709
|
+
width: 24,
|
|
3710
|
+
height: 24,
|
|
3711
|
+
padding: 12
|
|
3712
|
+
},
|
|
3713
|
+
xl: {
|
|
3714
|
+
width: 28,
|
|
3715
|
+
height: 28,
|
|
3716
|
+
padding: 14
|
|
3717
|
+
}
|
|
3718
|
+
};
|
|
3719
|
+
var getButtonVariants = (color, isLight) => ({
|
|
3720
|
+
filled: {
|
|
3721
|
+
backgroundColor: color,
|
|
3722
|
+
color: isLight ? 'color.black' : 'color.white',
|
|
3723
|
+
borderWidth: 1,
|
|
3724
|
+
borderStyle: 'solid',
|
|
3725
|
+
borderColor: 'transparent',
|
|
3726
|
+
_hover: {
|
|
3727
|
+
transform: 'translateY(-1px)',
|
|
3728
|
+
textDecoration: 'underline',
|
|
3729
|
+
textUnderlineOffset: '1px',
|
|
3730
|
+
textDecorationThickness: '1px'
|
|
3731
|
+
},
|
|
3732
|
+
_active: {
|
|
3733
|
+
transform: 'translateY(-1px)',
|
|
3734
|
+
textDecoration: 'underline',
|
|
3735
|
+
textUnderlineOffset: '1px',
|
|
3736
|
+
textDecorationThickness: '1px'
|
|
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
|
+
textDecoration: 'underline',
|
|
3751
|
+
textUnderlineOffset: '1px',
|
|
3752
|
+
textDecorationThickness: '1px'
|
|
3753
|
+
},
|
|
3754
|
+
_active: {
|
|
3755
|
+
backgroundColor: color,
|
|
3756
|
+
color: isLight ? 'light.black' : 'light.white',
|
|
3757
|
+
transform: 'translateY(0)',
|
|
3758
|
+
textDecoration: 'underline',
|
|
3759
|
+
textUnderlineOffset: '1px',
|
|
3760
|
+
textDecorationThickness: '1px'
|
|
3761
|
+
},
|
|
3762
|
+
transition: 'all 0.2s ease'
|
|
3763
|
+
},
|
|
3764
|
+
ghost: {
|
|
3765
|
+
backgroundColor: 'transparent',
|
|
3766
|
+
color: color,
|
|
3767
|
+
borderWidth: 0,
|
|
3768
|
+
borderStyle: 'none',
|
|
3769
|
+
borderColor: 'transparent',
|
|
3770
|
+
_hover: {
|
|
3771
|
+
backgroundColor: color,
|
|
3772
|
+
color: isLight ? 'light.black' : 'light.white',
|
|
3773
|
+
transform: 'translateY(-1px)',
|
|
3774
|
+
textDecoration: 'underline',
|
|
3775
|
+
textUnderlineOffset: '1px',
|
|
3776
|
+
textDecorationThickness: '1px'
|
|
3777
|
+
},
|
|
3778
|
+
_active: {
|
|
3779
|
+
backgroundColor: color,
|
|
3780
|
+
color: isLight ? 'light.black' : 'light.white',
|
|
3781
|
+
transform: 'translateY(0)',
|
|
3782
|
+
textDecoration: 'underline',
|
|
3783
|
+
textUnderlineOffset: '1px',
|
|
3784
|
+
textDecorationThickness: '1px'
|
|
3785
|
+
},
|
|
3786
|
+
transition: 'all 0.2s ease'
|
|
3787
|
+
},
|
|
3788
|
+
link: {
|
|
3789
|
+
backgroundColor: 'transparent',
|
|
3790
|
+
color: isLight ? color : 'light.black',
|
|
3791
|
+
borderWidth: 0,
|
|
3792
|
+
borderStyle: 'none',
|
|
3793
|
+
borderColor: 'transparent',
|
|
3794
|
+
textDecoration: 'underline',
|
|
3795
|
+
textUnderlineOffset: '1px',
|
|
3796
|
+
textDecorationThickness: '1px',
|
|
3797
|
+
_hover: {
|
|
3798
|
+
textDecorationThickness: '2px'
|
|
3799
|
+
},
|
|
3800
|
+
_active: {
|
|
3801
|
+
textDecorationThickness: '2px'
|
|
3802
|
+
},
|
|
3803
|
+
transition: 'all 0.2s ease'
|
|
3804
|
+
}
|
|
3805
|
+
});
|
|
3806
|
+
|
|
3807
|
+
var _excluded$a = ["variant", "size", "shape", "iconPosition", "loaderPosition", "backgroundColor", "color", "isAuto", "isFilled", "isDisabled", "isLoading", "isIconRounded", "icon", "children", "to", "isExternal", "shadow", "onClick", "views", "themeMode"];
|
|
3722
3808
|
var ButtonView = _ref => {
|
|
3723
|
-
var
|
|
3809
|
+
var _ref2;
|
|
3724
3810
|
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',
|
|
3811
|
+
/* behaviour */
|
|
3736
3812
|
variant = 'filled',
|
|
3737
|
-
|
|
3813
|
+
size = 'md',
|
|
3738
3814
|
shape = 'rounded',
|
|
3739
|
-
|
|
3740
|
-
loaderProps = {},
|
|
3815
|
+
iconPosition = 'left',
|
|
3741
3816
|
loaderPosition = 'left',
|
|
3742
|
-
|
|
3817
|
+
backgroundColor,
|
|
3818
|
+
// primary candidate for main color
|
|
3819
|
+
color // 2nd candidate for main color (NOT text‑color)
|
|
3743
3820
|
,
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3821
|
+
isDisabled,
|
|
3822
|
+
isLoading,
|
|
3823
|
+
isIconRounded,
|
|
3824
|
+
/* content */
|
|
3825
|
+
icon,
|
|
3826
|
+
children,
|
|
3827
|
+
/* nav */
|
|
3828
|
+
to,
|
|
3829
|
+
isExternal,
|
|
3830
|
+
/* misc */
|
|
3831
|
+
shadow,
|
|
3832
|
+
onClick,
|
|
3833
|
+
views = {},
|
|
3834
|
+
themeMode: elementMode
|
|
3752
3835
|
} = _ref,
|
|
3753
3836
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
3837
|
+
/* theme helpers */
|
|
3754
3838
|
var {
|
|
3755
3839
|
getColor,
|
|
3756
3840
|
themeMode
|
|
3757
3841
|
} = 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', {
|
|
3842
|
+
var mode = elementMode != null ? elementMode : themeMode;
|
|
3843
|
+
/* MAIN COLOR – determines the entire palette */
|
|
3844
|
+
var mainColorKey = (_ref2 = backgroundColor != null ? backgroundColor : color) != null ? _ref2 : 'theme.primary';
|
|
3845
|
+
var mainTone = getColor(isDisabled ? 'theme.disabled' : mainColorKey, {
|
|
3805
3846
|
themeMode: mode
|
|
3806
3847
|
});
|
|
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({
|
|
3848
|
+
var tone = contrast(mainTone);
|
|
3849
|
+
/* variant palette */
|
|
3850
|
+
var palette = useMemo(() => getButtonVariants(mainTone, tone == 'light'), [mainTone, tone]);
|
|
3851
|
+
var base = palette[variant];
|
|
3852
|
+
/* layout helpers */
|
|
3853
|
+
var Wrapper = ['left', 'right'].includes(iconPosition) ? Horizontal : Vertical;
|
|
3854
|
+
var sizeStyles = ButtonSizes[size];
|
|
3855
|
+
var iconPad = isIconRounded ? IconSizes$1[size] : {};
|
|
3856
|
+
var content = /*#__PURE__*/React.createElement(Wrapper, Object.assign({
|
|
3935
3857
|
gap: 8,
|
|
3936
3858
|
alignItems: "center",
|
|
3937
|
-
justifyContent: "center"
|
|
3938
|
-
|
|
3859
|
+
justifyContent: "center",
|
|
3860
|
+
color: 'inherit',
|
|
3861
|
+
_hover: {
|
|
3862
|
+
color: 'inherit'
|
|
3863
|
+
}
|
|
3864
|
+
}, sizeStyles, views == null ? void 0 : views.content), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React.createElement(Loader, Object.assign({
|
|
3939
3865
|
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
3940
|
-
color:
|
|
3866
|
+
color: 'inherit',
|
|
3867
|
+
_hover: {
|
|
3868
|
+
color: 'inherit'
|
|
3869
|
+
}
|
|
3941
3870
|
}, views == null ? void 0 : views.loader))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3871
|
+
color: 'inherit',
|
|
3872
|
+
_hover: {
|
|
3873
|
+
color: 'inherit'
|
|
3874
|
+
}
|
|
3946
3875
|
}, views == null ? void 0 : views.icon), icon)), children, icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3876
|
+
color: 'inherit',
|
|
3877
|
+
_hover: {
|
|
3878
|
+
color: 'inherit'
|
|
3879
|
+
}
|
|
3951
3880
|
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React.createElement(Loader, Object.assign({
|
|
3952
3881
|
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
3953
|
-
color:
|
|
3882
|
+
color: 'inherit',
|
|
3883
|
+
_hover: {
|
|
3884
|
+
color: 'inherit'
|
|
3885
|
+
}
|
|
3954
3886
|
}, views == null ? void 0 : views.loader))));
|
|
3955
|
-
// Determine if the button should render as a Link or a button Element
|
|
3956
|
-
var isLink = variant === 'link' && to;
|
|
3957
3887
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3888
|
+
as: variant === 'link' && to ? 'div' : 'button',
|
|
3889
|
+
type: variant === 'link' && to ? undefined : 'button',
|
|
3890
|
+
disabled: Boolean(isDisabled || isLoading)
|
|
3891
|
+
}, sizeStyles, iconPad, {
|
|
3961
3892
|
display: "flex",
|
|
3962
3893
|
alignItems: "center",
|
|
3963
3894
|
justifyContent: "center",
|
|
3964
|
-
|
|
3965
|
-
|
|
3895
|
+
// width={isAuto ? 'fit-content' : isFilled ? '100%' : undefined}
|
|
3896
|
+
/* visuals */
|
|
3966
3897
|
borderRadius: ButtonShapes[shape],
|
|
3967
|
-
|
|
3968
|
-
onMouseEnter: () => handleHover(true),
|
|
3969
|
-
onMouseLeave: () => handleHover(false),
|
|
3970
|
-
cursor: isActive ? isLink ? 'pointer' : 'pointer' : 'default',
|
|
3898
|
+
boxShadow: shadow,
|
|
3971
3899
|
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({
|
|
3900
|
+
cursor: isDisabled ? 'default' : 'pointer',
|
|
3901
|
+
onClick: onClick
|
|
3902
|
+
}, base, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React.createElement(Link, Object.assign({
|
|
3983
3903
|
to: to,
|
|
3984
3904
|
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
|
-
})
|
|
3905
|
+
color: 'inherit',
|
|
3906
|
+
textDecoration: 'inherit',
|
|
3907
|
+
textDecorationColor: 'inherit'
|
|
4001
3908
|
}, views == null ? void 0 : views.link), content)) : content);
|
|
4002
3909
|
};
|
|
4003
3910
|
|
|
@@ -4117,8 +4024,8 @@ var useCardContext = () => {
|
|
|
4117
4024
|
};
|
|
4118
4025
|
|
|
4119
4026
|
var _excluded$b = ["children", "views", "style", "themeMode"],
|
|
4120
|
-
_excluded2$
|
|
4121
|
-
_excluded3$
|
|
4027
|
+
_excluded2$3 = ["children", "views", "style", "themeMode"],
|
|
4028
|
+
_excluded3$3 = ["children", "views", "style", "themeMode"],
|
|
4122
4029
|
_excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
|
|
4123
4030
|
var CardHeader = _ref => {
|
|
4124
4031
|
var _contextStyles$header;
|
|
@@ -4144,7 +4051,7 @@ var CardContent = _ref2 => {
|
|
|
4144
4051
|
children,
|
|
4145
4052
|
style
|
|
4146
4053
|
} = _ref2,
|
|
4147
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
4054
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
4148
4055
|
var theme = useTheme();
|
|
4149
4056
|
var {
|
|
4150
4057
|
styles: contextStyles
|
|
@@ -4162,7 +4069,7 @@ var CardFooter = _ref3 => {
|
|
|
4162
4069
|
children,
|
|
4163
4070
|
style
|
|
4164
4071
|
} = _ref3,
|
|
4165
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
4072
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
|
|
4166
4073
|
var theme = useTheme();
|
|
4167
4074
|
var {
|
|
4168
4075
|
styles: contextStyles
|
|
@@ -4521,8 +4428,8 @@ var useCarouselContext = () => {
|
|
|
4521
4428
|
};
|
|
4522
4429
|
|
|
4523
4430
|
var _excluded$c = ["children", "isActive", "views"],
|
|
4524
|
-
_excluded2$
|
|
4525
|
-
_excluded3$
|
|
4431
|
+
_excluded2$4 = ["views", "children"],
|
|
4432
|
+
_excluded3$4 = ["views", "children"],
|
|
4526
4433
|
_excluded4$4 = ["children", "views"],
|
|
4527
4434
|
_excluded5$1 = ["children", "views", "style"],
|
|
4528
4435
|
_excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "stepIndices", "themeMode"];
|
|
@@ -4548,7 +4455,7 @@ var CarouselPreviousComponent = _ref2 => {
|
|
|
4548
4455
|
children // Allow custom content/icon
|
|
4549
4456
|
// Spread remaining ButtonProps
|
|
4550
4457
|
} = _ref2,
|
|
4551
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
4458
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
|
|
4552
4459
|
var {
|
|
4553
4460
|
goToPrevious,
|
|
4554
4461
|
canGoPrevious,
|
|
@@ -4571,7 +4478,7 @@ var CarouselNextComponent = _ref3 => {
|
|
|
4571
4478
|
views,
|
|
4572
4479
|
children
|
|
4573
4480
|
} = _ref3,
|
|
4574
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
4481
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
|
|
4575
4482
|
var {
|
|
4576
4483
|
goToNext,
|
|
4577
4484
|
canGoNext,
|
|
@@ -5815,8 +5722,8 @@ var calculateMenuPosition = function calculateMenuPosition(x, y, menuWidth, menu
|
|
|
5815
5722
|
};
|
|
5816
5723
|
|
|
5817
5724
|
var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
|
|
5818
|
-
_excluded2$
|
|
5819
|
-
_excluded3$
|
|
5725
|
+
_excluded2$5 = ["items", "children", "position", "side", "align", "views", "style"],
|
|
5726
|
+
_excluded3$5 = ["item", "children", "onSelect", "isDisabled", "views"],
|
|
5820
5727
|
_excluded4$5 = ["views"],
|
|
5821
5728
|
_excluded5$2 = ["views"],
|
|
5822
5729
|
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
|
|
@@ -5924,7 +5831,7 @@ var ContextMenuContent = _ref3 => {
|
|
|
5924
5831
|
views,
|
|
5925
5832
|
style // Capture user-provided style
|
|
5926
5833
|
} = _ref3,
|
|
5927
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
5834
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$5);
|
|
5928
5835
|
var {
|
|
5929
5836
|
isOpen,
|
|
5930
5837
|
position: contextPosition,
|
|
@@ -5995,7 +5902,7 @@ var ContextMenuItem = _ref4 => {
|
|
|
5995
5902
|
isDisabled = false,
|
|
5996
5903
|
views
|
|
5997
5904
|
} = _ref4,
|
|
5998
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
5905
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$5);
|
|
5999
5906
|
var {
|
|
6000
5907
|
activeSubmenuId,
|
|
6001
5908
|
setActiveSubmenuId,
|
|
@@ -6221,7 +6128,7 @@ ContextMenu.Divider = ContextMenuDivider;
|
|
|
6221
6128
|
ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
|
|
6222
6129
|
|
|
6223
6130
|
var _excluded$g = ["src", "color", "views", "themeMode"],
|
|
6224
|
-
_excluded2$
|
|
6131
|
+
_excluded2$6 = ["path"];
|
|
6225
6132
|
var FileSVG = _ref => {
|
|
6226
6133
|
var {
|
|
6227
6134
|
src,
|
|
@@ -6251,7 +6158,7 @@ var FileImage = _ref2 => {
|
|
|
6251
6158
|
var {
|
|
6252
6159
|
path
|
|
6253
6160
|
} = _ref2,
|
|
6254
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
6161
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$6);
|
|
6255
6162
|
return /*#__PURE__*/React.createElement(Image, Object.assign({
|
|
6256
6163
|
src: path
|
|
6257
6164
|
}, props));
|
|
@@ -6683,8 +6590,8 @@ var IconSizes$2 = {
|
|
|
6683
6590
|
};
|
|
6684
6591
|
|
|
6685
6592
|
var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
6686
|
-
_excluded2$
|
|
6687
|
-
_excluded3$
|
|
6593
|
+
_excluded2$7 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
6594
|
+
_excluded3$6 = ["option", "size", "removeOption"],
|
|
6688
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"];
|
|
6689
6596
|
/**
|
|
6690
6597
|
* Item Component
|
|
@@ -6801,7 +6708,7 @@ var HiddenSelect = _ref4 => {
|
|
|
6801
6708
|
isReadOnly = false,
|
|
6802
6709
|
options = []
|
|
6803
6710
|
} = _ref4,
|
|
6804
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$
|
|
6711
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$7);
|
|
6805
6712
|
var handleChange = event => {
|
|
6806
6713
|
if (onChange) onChange(event);
|
|
6807
6714
|
};
|
|
@@ -6904,7 +6811,7 @@ var MultiSelect = _ref6 => {
|
|
|
6904
6811
|
size = 'md',
|
|
6905
6812
|
removeOption = () => {}
|
|
6906
6813
|
} = _ref6,
|
|
6907
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$
|
|
6814
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$6);
|
|
6908
6815
|
var handleClick = () => removeOption(option);
|
|
6909
6816
|
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
6910
6817
|
gap: 8,
|
|
@@ -9436,8 +9343,8 @@ var IconSizes$4 = {
|
|
|
9436
9343
|
};
|
|
9437
9344
|
|
|
9438
9345
|
var _excluded$t = ["size"],
|
|
9439
|
-
_excluded2$
|
|
9440
|
-
_excluded3$
|
|
9346
|
+
_excluded2$8 = ["size"],
|
|
9347
|
+
_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
9348
|
var CountryList = _ref => {
|
|
9442
9349
|
var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
9443
9350
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
@@ -9448,7 +9355,7 @@ var CountrySelector = props => (/*#__PURE__*/React.createElement(Input, Object.a
|
|
|
9448
9355
|
type: "country"
|
|
9449
9356
|
}, props)));
|
|
9450
9357
|
var CountryItem = _ref2 => {
|
|
9451
|
-
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
9358
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$8);
|
|
9452
9359
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
9453
9360
|
as: "li"
|
|
9454
9361
|
}, props));
|
|
@@ -9550,7 +9457,7 @@ var CountryPickerView = _ref5 => {
|
|
|
9550
9457
|
},
|
|
9551
9458
|
themeMode: elementMode
|
|
9552
9459
|
} = _ref5,
|
|
9553
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$
|
|
9460
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$7);
|
|
9554
9461
|
var {
|
|
9555
9462
|
getColor,
|
|
9556
9463
|
themeMode
|
|
@@ -9801,7 +9708,7 @@ var usePasswordState = props => {
|
|
|
9801
9708
|
};
|
|
9802
9709
|
|
|
9803
9710
|
var _excluded$v = ["visibleIcon", "hiddenIcon"],
|
|
9804
|
-
_excluded2$
|
|
9711
|
+
_excluded2$9 = ["isVisible", "setIsVisible"];
|
|
9805
9712
|
var PasswordComponent = _ref => {
|
|
9806
9713
|
var {
|
|
9807
9714
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
@@ -9817,7 +9724,7 @@ var PasswordComponent = _ref => {
|
|
|
9817
9724
|
isVisible,
|
|
9818
9725
|
setIsVisible
|
|
9819
9726
|
} = _usePasswordState,
|
|
9820
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
9727
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$9);
|
|
9821
9728
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
9822
9729
|
type: isVisible ? 'text' : 'password',
|
|
9823
9730
|
isClearable: false,
|
|
@@ -10850,7 +10757,7 @@ var TextFieldComponent$1 = props => {
|
|
|
10850
10757
|
var FormikTextField = TextFieldComponent$1;
|
|
10851
10758
|
|
|
10852
10759
|
var _excluded$D = ["visibleIcon", "hiddenIcon"],
|
|
10853
|
-
_excluded2$
|
|
10760
|
+
_excluded2$a = ["isVisible", "setIsVisible"];
|
|
10854
10761
|
var PasswordComponent$1 = _ref => {
|
|
10855
10762
|
var {
|
|
10856
10763
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
@@ -10867,7 +10774,7 @@ var PasswordComponent$1 = _ref => {
|
|
|
10867
10774
|
isVisible,
|
|
10868
10775
|
setIsVisible
|
|
10869
10776
|
} = _usePasswordState,
|
|
10870
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
10777
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
|
|
10871
10778
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
10872
10779
|
type: isVisible ? 'text' : 'password',
|
|
10873
10780
|
isClearable: false,
|
|
@@ -12299,8 +12206,8 @@ var ModalTypography = {
|
|
|
12299
12206
|
};
|
|
12300
12207
|
|
|
12301
12208
|
var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
12302
|
-
_excluded2$
|
|
12303
|
-
_excluded3$
|
|
12209
|
+
_excluded2$b = ["children", "shadow", "isFullScreen", "shape", "views", "isOpen"],
|
|
12210
|
+
_excluded3$8 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
12304
12211
|
_excluded4$7 = ["children", "views"],
|
|
12305
12212
|
_excluded5$3 = ["children", "views"];
|
|
12306
12213
|
var ModalOverlay = _ref => {
|
|
@@ -12349,7 +12256,7 @@ var ModalContainer = _ref2 => {
|
|
|
12349
12256
|
shape = 'rounded',
|
|
12350
12257
|
views
|
|
12351
12258
|
} = _ref2,
|
|
12352
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
12259
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$b);
|
|
12353
12260
|
var defaultShadow = typeof document !== undefined ? {
|
|
12354
12261
|
boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
|
|
12355
12262
|
} : {
|
|
@@ -12382,7 +12289,7 @@ var ModalHeader = _ref3 => {
|
|
|
12382
12289
|
buttonPosition = 'right',
|
|
12383
12290
|
views
|
|
12384
12291
|
} = _ref3,
|
|
12385
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
12292
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$8);
|
|
12386
12293
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
12387
12294
|
var buttonIcon = /*#__PURE__*/React.createElement(View, {
|
|
12388
12295
|
onClick: onClose
|
|
@@ -13859,8 +13766,8 @@ var getDropdownPosition = function getDropdownPosition(side, align) {
|
|
|
13859
13766
|
};
|
|
13860
13767
|
|
|
13861
13768
|
var _excluded$M = ["children", "views"],
|
|
13862
|
-
_excluded2$
|
|
13863
|
-
_excluded3$
|
|
13769
|
+
_excluded2$c = ["items", "side", "align", "views"],
|
|
13770
|
+
_excluded3$9 = ["item", "views"],
|
|
13864
13771
|
_excluded4$8 = ["views"],
|
|
13865
13772
|
_excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
|
|
13866
13773
|
// Create context for the DropdownMenu
|
|
@@ -13921,7 +13828,7 @@ var DropdownMenuContent = _ref3 => {
|
|
|
13921
13828
|
align = 'start',
|
|
13922
13829
|
views
|
|
13923
13830
|
} = _ref3,
|
|
13924
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
13831
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$c);
|
|
13925
13832
|
var {
|
|
13926
13833
|
isOpen,
|
|
13927
13834
|
//activeSubmenuId, setActiveSubmenuId, size,
|
|
@@ -13957,7 +13864,7 @@ var DropdownMenuItem = _ref4 => {
|
|
|
13957
13864
|
item,
|
|
13958
13865
|
views
|
|
13959
13866
|
} = _ref4,
|
|
13960
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
13867
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$9);
|
|
13961
13868
|
var {
|
|
13962
13869
|
activeSubmenuId,
|
|
13963
13870
|
setActiveSubmenuId,
|
|
@@ -14006,8 +13913,8 @@ var DropdownMenuItem = _ref4 => {
|
|
|
14006
13913
|
}, item.label), hasSubmenu && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
14007
13914
|
marginLeft: 8
|
|
14008
13915
|
}, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React.createElement("svg", {
|
|
14009
|
-
width: "
|
|
14010
|
-
height: "
|
|
13916
|
+
width: "16px",
|
|
13917
|
+
height: "16px",
|
|
14011
13918
|
viewBox: "0 0 24 24",
|
|
14012
13919
|
fill: "none",
|
|
14013
13920
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -14270,7 +14177,7 @@ var useRect = ref => {
|
|
|
14270
14177
|
};
|
|
14271
14178
|
|
|
14272
14179
|
var _excluded$O = ["children", "views", "asChild"],
|
|
14273
|
-
_excluded2$
|
|
14180
|
+
_excluded2$d = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
14274
14181
|
// Create context for the HoverCard
|
|
14275
14182
|
var HoverCardContext = /*#__PURE__*/createContext({
|
|
14276
14183
|
isOpen: false,
|
|
@@ -14356,7 +14263,7 @@ var HoverCardContent = _ref3 => {
|
|
|
14356
14263
|
minWidth = '200px',
|
|
14357
14264
|
maxWidth = '300px'
|
|
14358
14265
|
} = _ref3,
|
|
14359
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
14266
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$d);
|
|
14360
14267
|
var {
|
|
14361
14268
|
isOpen,
|
|
14362
14269
|
cancelCloseTimer,
|
|
@@ -15419,8 +15326,8 @@ var SidebarTransitions = {
|
|
|
15419
15326
|
};
|
|
15420
15327
|
|
|
15421
15328
|
var _excluded$V = ["children", "showToggleButton", "views"],
|
|
15422
|
-
_excluded2$
|
|
15423
|
-
_excluded3$
|
|
15329
|
+
_excluded2$e = ["children", "views"],
|
|
15330
|
+
_excluded3$a = ["children", "views"],
|
|
15424
15331
|
_excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
15425
15332
|
// Create context for the Sidebar
|
|
15426
15333
|
var SidebarContext = /*#__PURE__*/createContext({
|
|
@@ -15518,7 +15425,7 @@ var SidebarContent = _ref3 => {
|
|
|
15518
15425
|
children,
|
|
15519
15426
|
views
|
|
15520
15427
|
} = _ref3,
|
|
15521
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
15428
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$e);
|
|
15522
15429
|
var {
|
|
15523
15430
|
isExpanded
|
|
15524
15431
|
} = useSidebarContext();
|
|
@@ -15536,7 +15443,7 @@ var SidebarFooter = _ref4 => {
|
|
|
15536
15443
|
children,
|
|
15537
15444
|
views
|
|
15538
15445
|
} = _ref4,
|
|
15539
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
15446
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$a);
|
|
15540
15447
|
var {
|
|
15541
15448
|
isExpanded
|
|
15542
15449
|
} = useSidebarContext();
|
|
@@ -16094,8 +16001,8 @@ var HandleIconStyles = {
|
|
|
16094
16001
|
};
|
|
16095
16002
|
|
|
16096
16003
|
var _excluded$X = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
16097
|
-
_excluded2$
|
|
16098
|
-
_excluded3$
|
|
16004
|
+
_excluded2$f = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
16005
|
+
_excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
16099
16006
|
// Create context for the Resizable component
|
|
16100
16007
|
var ResizableContext = /*#__PURE__*/createContext({
|
|
16101
16008
|
orientation: 'horizontal',
|
|
@@ -16202,7 +16109,7 @@ var ResizableHandle = _ref3 => {
|
|
|
16202
16109
|
collapseTarget,
|
|
16203
16110
|
views
|
|
16204
16111
|
} = _ref3,
|
|
16205
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
16112
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$f);
|
|
16206
16113
|
var {
|
|
16207
16114
|
orientation,
|
|
16208
16115
|
size,
|
|
@@ -16342,7 +16249,7 @@ var ResizableView = _ref4 => {
|
|
|
16342
16249
|
containerRef,
|
|
16343
16250
|
views
|
|
16344
16251
|
} = _ref4,
|
|
16345
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
16252
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
|
|
16346
16253
|
var Container = orientation === 'horizontal' ? Horizontal : Vertical;
|
|
16347
16254
|
return /*#__PURE__*/React.createElement(Container, Object.assign({
|
|
16348
16255
|
ref: containerRef,
|
|
@@ -17142,8 +17049,8 @@ var CommandFooterStyles = {
|
|
|
17142
17049
|
};
|
|
17143
17050
|
|
|
17144
17051
|
var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
|
|
17145
|
-
_excluded2$
|
|
17146
|
-
_excluded3$
|
|
17052
|
+
_excluded2$g = ["children", "views"],
|
|
17053
|
+
_excluded3$c = ["heading", "children", "views"],
|
|
17147
17054
|
_excluded4$a = ["item", "selected", "onSelect", "views"],
|
|
17148
17055
|
_excluded5$5 = ["children", "views"],
|
|
17149
17056
|
_excluded6$3 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "emptyState", "footer", "search", "setSearch", "selectedIndex", "setSelectedIndex", "filteredCommands", "filteredGroups", "listRef", "views", "filter"];
|
|
@@ -17205,7 +17112,7 @@ var CommandList = _ref3 => {
|
|
|
17205
17112
|
children,
|
|
17206
17113
|
views
|
|
17207
17114
|
} = _ref3,
|
|
17208
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
17115
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$g);
|
|
17209
17116
|
return /*#__PURE__*/React.createElement(View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
|
|
17210
17117
|
};
|
|
17211
17118
|
// Command Group component
|
|
@@ -17215,7 +17122,7 @@ var CommandGroup = _ref4 => {
|
|
|
17215
17122
|
children,
|
|
17216
17123
|
views
|
|
17217
17124
|
} = _ref4,
|
|
17218
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
17125
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
|
|
17219
17126
|
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
17127
|
};
|
|
17221
17128
|
// Command Item component
|
|
@@ -17662,8 +17569,8 @@ var getArrowStyles = position => {
|
|
|
17662
17569
|
};
|
|
17663
17570
|
|
|
17664
17571
|
var _excluded$$ = ["children", "views", "asChild"],
|
|
17665
|
-
_excluded2$
|
|
17666
|
-
_excluded3$
|
|
17572
|
+
_excluded2$h = ["children", "views"],
|
|
17573
|
+
_excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
17667
17574
|
// Create context for the Tooltip
|
|
17668
17575
|
var TooltipContext = /*#__PURE__*/createContext({
|
|
17669
17576
|
isOpen: false,
|
|
@@ -17733,7 +17640,7 @@ var TooltipContent = _ref3 => {
|
|
|
17733
17640
|
children,
|
|
17734
17641
|
views
|
|
17735
17642
|
} = _ref3,
|
|
17736
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
17643
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
|
|
17737
17644
|
var {
|
|
17738
17645
|
isOpen,
|
|
17739
17646
|
contentRef,
|
|
@@ -17763,7 +17670,7 @@ var TooltipView = _ref4 => {
|
|
|
17763
17670
|
showArrow = true,
|
|
17764
17671
|
views
|
|
17765
17672
|
} = _ref4,
|
|
17766
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
17673
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
|
|
17767
17674
|
var {
|
|
17768
17675
|
isOpen,
|
|
17769
17676
|
// openTooltip,
|