@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.
@@ -1,10 +1,11 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('core-js/modules/es.object.assign.js'), require('react'), require('core-js/modules/es.array.includes.js'), require('core-js/modules/es.array.iterator.js'), require('core-js/modules/es.string.includes.js'), require('core-js/modules/web.dom-collections.iterator.js'), require('core-js/modules/es.regexp.to-string.js'), require('app-studio'), require('core-js/modules/es.symbol.description.js'), require('core-js/modules/es.parse-float.js'), require('react-router-dom'), require('core-js/modules/es.promise.js'), require('core-js/modules/es.array.reduce.js'), require('core-js/modules/es.number.to-fixed.js'), require('core-js/modules/es.string.starts-with.js'), require('date-fns/format'), require('core-js/modules/es.parse-int.js'), require('core-js/modules/es.regexp.constructor.js'), require('core-js/modules/es.regexp.exec.js'), require('formik'), require('core-js/modules/web.url.js'), require('core-js/modules/web.url.to-json.js'), require('core-js/modules/web.url-search-params.js'), require('zustand'), require('core-js/modules/es.string.ends-with.js'), require('core-js/modules/es.string.match.js'), require('core-js/modules/es.string.search.js'), require('core-js/modules/es.array.flat-map.js'), require('core-js/modules/es.array.unscopables.flat-map.js'), require('core-js/modules/es.string.trim.js')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'core-js/modules/es.object.assign.js', 'react', 'core-js/modules/es.array.includes.js', 'core-js/modules/es.array.iterator.js', 'core-js/modules/es.string.includes.js', 'core-js/modules/web.dom-collections.iterator.js', 'core-js/modules/es.regexp.to-string.js', 'app-studio', 'core-js/modules/es.symbol.description.js', 'core-js/modules/es.parse-float.js', 'react-router-dom', 'core-js/modules/es.promise.js', 'core-js/modules/es.array.reduce.js', 'core-js/modules/es.number.to-fixed.js', 'core-js/modules/es.string.starts-with.js', 'date-fns/format', 'core-js/modules/es.parse-int.js', 'core-js/modules/es.regexp.constructor.js', 'core-js/modules/es.regexp.exec.js', 'formik', 'core-js/modules/web.url.js', 'core-js/modules/web.url.to-json.js', 'core-js/modules/web.url-search-params.js', 'zustand', 'core-js/modules/es.string.ends-with.js', 'core-js/modules/es.string.match.js', 'core-js/modules/es.string.search.js', 'core-js/modules/es.array.flat-map.js', 'core-js/modules/es.array.unscopables.flat-map.js', 'core-js/modules/es.string.trim.js'], factory) :
4
- (global = global || self, factory(global['@app-studio/web'] = {}, null, global.React, null, null, null, null, null, global.appStudio, null, null, global.reactRouterDom, null, null, null, null, global.format, null, null, null, global.formik, null, null, null, global.zustand));
5
- }(this, (function (exports, es_object_assign_js, React, es_array_includes_js, es_array_iterator_js, es_string_includes_js, web_domCollections_iterator_js, es_regexp_toString_js, appStudio, es_symbol_description_js, es_parseFloat_js, reactRouterDom, es_promise_js, es_array_reduce_js, es_number_toFixed_js, es_string_startsWith_js, format, es_parseInt_js, es_regexp_constructor_js, es_regexp_exec_js, formik, web_url_js, web_url_toJson_js, web_urlSearchParams_js, zustand) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('core-js/modules/es.object.assign.js'), require('react'), require('core-js/modules/es.array.includes.js'), require('core-js/modules/es.array.iterator.js'), require('core-js/modules/es.string.includes.js'), require('core-js/modules/web.dom-collections.iterator.js'), require('core-js/modules/es.regexp.to-string.js'), require('app-studio'), require('core-js/modules/es.symbol.description.js'), require('core-js/modules/es.parse-float.js'), require('react-router-dom'), require('contrast'), require('core-js/modules/es.promise.js'), require('core-js/modules/es.array.reduce.js'), require('core-js/modules/es.number.to-fixed.js'), require('core-js/modules/es.string.starts-with.js'), require('date-fns/format'), require('core-js/modules/es.parse-int.js'), require('core-js/modules/es.regexp.constructor.js'), require('core-js/modules/es.regexp.exec.js'), require('formik'), require('core-js/modules/web.url.js'), require('core-js/modules/web.url.to-json.js'), require('core-js/modules/web.url-search-params.js'), require('zustand'), require('core-js/modules/es.string.ends-with.js'), require('core-js/modules/es.string.match.js'), require('core-js/modules/es.string.search.js'), require('core-js/modules/es.array.flat-map.js'), require('core-js/modules/es.array.unscopables.flat-map.js'), require('core-js/modules/es.string.trim.js')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'core-js/modules/es.object.assign.js', 'react', 'core-js/modules/es.array.includes.js', 'core-js/modules/es.array.iterator.js', 'core-js/modules/es.string.includes.js', 'core-js/modules/web.dom-collections.iterator.js', 'core-js/modules/es.regexp.to-string.js', 'app-studio', 'core-js/modules/es.symbol.description.js', 'core-js/modules/es.parse-float.js', 'react-router-dom', 'contrast', 'core-js/modules/es.promise.js', 'core-js/modules/es.array.reduce.js', 'core-js/modules/es.number.to-fixed.js', 'core-js/modules/es.string.starts-with.js', 'date-fns/format', 'core-js/modules/es.parse-int.js', 'core-js/modules/es.regexp.constructor.js', 'core-js/modules/es.regexp.exec.js', 'formik', 'core-js/modules/web.url.js', 'core-js/modules/web.url.to-json.js', 'core-js/modules/web.url-search-params.js', 'zustand', 'core-js/modules/es.string.ends-with.js', 'core-js/modules/es.string.match.js', 'core-js/modules/es.string.search.js', 'core-js/modules/es.array.flat-map.js', 'core-js/modules/es.array.unscopables.flat-map.js', 'core-js/modules/es.string.trim.js'], factory) :
4
+ (global = global || self, factory(global['@app-studio/web'] = {}, null, global.React, null, null, null, null, null, global.appStudio, null, null, global.reactRouterDom, global.contrast, null, null, null, null, global.format, null, null, null, global.formik, null, null, null, global.zustand));
5
+ }(this, (function (exports, es_object_assign_js, React, es_array_includes_js, es_array_iterator_js, es_string_includes_js, web_domCollections_iterator_js, es_regexp_toString_js, appStudio, es_symbol_description_js, es_parseFloat_js, reactRouterDom, contrast, es_promise_js, es_array_reduce_js, es_number_toFixed_js, es_string_startsWith_js, format, es_parseInt_js, es_regexp_constructor_js, es_regexp_exec_js, formik, web_url_js, web_url_toJson_js, web_urlSearchParams_js, zustand) { 'use strict';
6
6
 
7
7
  var React__default = 'default' in React ? React['default'] : React;
8
+ contrast = contrast && Object.prototype.hasOwnProperty.call(contrast, 'default') ? contrast['default'] : contrast;
8
9
  format = format && Object.prototype.hasOwnProperty.call(format, 'default') ? format['default'] : format;
9
10
 
10
11
  function _objectWithoutPropertiesLoose(r, e) {
@@ -3351,18 +3352,21 @@
3351
3352
  };
3352
3353
  return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
3353
3354
  to: to,
3354
- target: isExternal ? '_blank' : '_self'
3355
- }, /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
3355
+ target: isExternal ? '_blank' : '_self',
3356
+ style: {
3357
+ textDecoration: 'inherit',
3358
+ color: 'inherit'
3359
+ }
3360
+ }, /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
3356
3361
  onMouseEnter: handleHover,
3357
3362
  onMouseLeave: handleHover,
3358
- textDecoration: isHovered || underline === 'underline' ? 'underline !important' : 'none'
3359
- }, views.text, props), /*#__PURE__*/React__default.createElement(appStudio.Horizontal, {
3360
3363
  gap: 3,
3361
3364
  alignItems: "center",
3362
- flexWrap: "nowrap"
3363
- }, children, isExternal && /*#__PURE__*/React__default.createElement(ExternalLinkIcon, {
3365
+ flexWrap: "nowrap",
3366
+ textDecoration: 'none'
3367
+ }, views.text, props), children, isExternal && /*#__PURE__*/React__default.createElement(ExternalLinkIcon, {
3364
3368
  widthHeight: IconSizes[iconSize]
3365
- }))));
3369
+ })));
3366
3370
  };
3367
3371
 
3368
3372
  // Defines the 'LinkComponent' as a functional component with props typed to 'LinkProps'
@@ -3375,125 +3379,6 @@
3375
3379
  // Exports 'LinkComponent' as 'Link' for use in other parts of the application
3376
3380
  var Link = LinkComponent;
3377
3381
 
3378
- /**
3379
- * Button Styles
3380
- *
3381
- * Defines the styles for the Button component following the design guidelines:
3382
- * - Typography: Inter/Geist font, specific sizes/weights
3383
- * - Spacing: 4px grid system
3384
- * - Colors: Neutral palette with semantic colors
3385
- * - Rounded corners: Consistent border radius
3386
- * - Transitions: Subtle animations
3387
- */
3388
- /**
3389
- * Button sizes following the 4px grid system
3390
- */
3391
- var ButtonSizes = {
3392
- xs: {
3393
- // Height: 24px (6 × 4px)
3394
- height: 24,
3395
- paddingTop: 2,
3396
- paddingBottom: 2,
3397
- paddingLeft: 6,
3398
- paddingRight: 6,
3399
- // Typography
3400
- fontSize: 12,
3401
- fontWeight: '500',
3402
- lineHeight: 20,
3403
- letterSpacing: '-0.01em'
3404
- },
3405
- sm: {
3406
- // Height: 32px (8 × 4px)
3407
- height: 32,
3408
- paddingTop: 6,
3409
- paddingBottom: 6,
3410
- paddingLeft: 12,
3411
- paddingRight: 12,
3412
- // Typography
3413
- fontSize: 14,
3414
- fontWeight: '500',
3415
- lineHeight: 20,
3416
- letterSpacing: '-0.01em'
3417
- },
3418
- md: {
3419
- // Height: 40px (10 × 4px) - standard height for interactive elements
3420
- height: 40,
3421
- paddingTop: 8,
3422
- paddingBottom: 8,
3423
- paddingLeft: 16,
3424
- paddingRight: 16,
3425
- // Typography
3426
- fontSize: 14,
3427
- fontWeight: '500',
3428
- lineHeight: 24,
3429
- letterSpacing: '-0.01em'
3430
- },
3431
- lg: {
3432
- // Height: 48px (12 × 4px)
3433
- height: 48,
3434
- paddingTop: 12,
3435
- paddingBottom: 12,
3436
- paddingLeft: 20,
3437
- paddingRight: 20,
3438
- // Typography
3439
- fontSize: 16,
3440
- fontWeight: '500',
3441
- lineHeight: 24,
3442
- letterSpacing: '-0.01em'
3443
- },
3444
- xl: {
3445
- // Height: 60px (15 × 4px)
3446
- height: 60,
3447
- paddingTop: 16,
3448
- paddingBottom: 16,
3449
- paddingLeft: 28,
3450
- paddingRight: 28,
3451
- // Typography
3452
- fontSize: 18,
3453
- fontWeight: '500',
3454
- lineHeight: 28,
3455
- letterSpacing: '-0.01em'
3456
- }
3457
- };
3458
- /**
3459
- * Button shapes with consistent border radius
3460
- */
3461
- var ButtonShapes = {
3462
- sharp: 0,
3463
- rounded: 8,
3464
- pillShaped: 999
3465
- };
3466
- /**
3467
- * Icon sizes for different button sizes
3468
- */
3469
- var IconSizes$1 = {
3470
- xs: {
3471
- width: 16,
3472
- height: 16,
3473
- padding: 6
3474
- },
3475
- sm: {
3476
- width: 20,
3477
- height: 20,
3478
- padding: 6
3479
- },
3480
- md: {
3481
- width: 24,
3482
- height: 24,
3483
- padding: 8
3484
- },
3485
- lg: {
3486
- width: 24,
3487
- height: 24,
3488
- padding: 12
3489
- },
3490
- xl: {
3491
- width: 28,
3492
- height: 28,
3493
- padding: 14
3494
- }
3495
- };
3496
-
3497
3382
  // Defines a mapping of spinning speed labels to their respective duration in seconds for the Loader component animations.
3498
3383
  // Sets up a scale of sizes, mapping size labels to numerical values to be used for Loader component dimensions.
3499
3384
  var DefaultSizes = {
@@ -3692,290 +3577,312 @@
3692
3577
  // Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
3693
3578
  var Loader = LoaderComponent;
3694
3579
 
3695
- var _excluded$a = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered", "isExternal", "themeMode", "views", "color", "backgroundColor"],
3696
- _excluded2$3 = ["_hover", "_active"],
3697
- _excluded3$3 = ["height"];
3698
- // Using require for contrast as it seems to be a common pattern in your code
3699
- var contrast = /*#__PURE__*/require('contrast');
3580
+ /**
3581
+ * Button Styles
3582
+ *
3583
+ * Defines the styles for the Button component following the design guidelines:
3584
+ * - Typography: Inter/Geist font, specific sizes/weights
3585
+ * - Spacing: 4px grid system
3586
+ * - Colors: Neutral palette with semantic colors
3587
+ * - Rounded corners: Consistent border radius
3588
+ * - Transitions: Subtle animations
3589
+ */
3590
+ /**
3591
+ * Button sizes following the 4px grid system
3592
+ */
3593
+ var ButtonSizes = {
3594
+ xs: {
3595
+ // Height: 24px (6 × 4px)
3596
+ minHeight: 4 * 4,
3597
+ paddingTop: 2,
3598
+ paddingBottom: 2,
3599
+ paddingLeft: 4,
3600
+ paddingRight: 4,
3601
+ // Typography
3602
+ fontSize: 12,
3603
+ fontWeight: '500',
3604
+ lineHeight: 20,
3605
+ letterSpacing: '-0.01em'
3606
+ },
3607
+ sm: {
3608
+ // Height: 32px (8 × 4px)
3609
+ minHeight: 6 * 4,
3610
+ paddingTop: 6,
3611
+ paddingBottom: 6,
3612
+ paddingLeft: 12,
3613
+ paddingRight: 12,
3614
+ // Typography
3615
+ fontSize: 12,
3616
+ fontWeight: '500',
3617
+ lineHeight: 12,
3618
+ letterSpacing: '-0.01em'
3619
+ },
3620
+ md: {
3621
+ // Height: 40px (10 × 4px) - standard height for interactive elements
3622
+ minHeight: 8 * 4,
3623
+ paddingTop: 8,
3624
+ paddingBottom: 8,
3625
+ paddingLeft: 16,
3626
+ paddingRight: 16,
3627
+ // Typography
3628
+ fontSize: 16,
3629
+ fontWeight: '500',
3630
+ lineHeight: 16,
3631
+ letterSpacing: '-0.01em'
3632
+ },
3633
+ lg: {
3634
+ minHeight: 10 * 4,
3635
+ paddingTop: 10,
3636
+ paddingBottom: 10,
3637
+ paddingLeft: 20,
3638
+ paddingRight: 20,
3639
+ // Typography
3640
+ fontSize: 16,
3641
+ fontWeight: '500',
3642
+ lineHeight: 20,
3643
+ letterSpacing: '-0.01em'
3644
+ },
3645
+ xl: {
3646
+ // Height: 60px (15 × 4px)
3647
+ minHeight: 12 * 4,
3648
+ paddingTop: 12,
3649
+ paddingBottom: 12,
3650
+ paddingLeft: 24,
3651
+ paddingRight: 24,
3652
+ // Typography
3653
+ fontSize: 18,
3654
+ fontWeight: '500',
3655
+ lineHeight: 24,
3656
+ letterSpacing: '-0.01em'
3657
+ }
3658
+ };
3659
+ /**
3660
+ * Button shapes with consistent border radius
3661
+ */
3662
+ var ButtonShapes = {
3663
+ sharp: 0,
3664
+ rounded: 8,
3665
+ pillShaped: 999
3666
+ };
3667
+ /**
3668
+ * Icon sizes for different button sizes
3669
+ */
3670
+ var IconSizes$1 = {
3671
+ xs: {
3672
+ width: 16,
3673
+ height: 16,
3674
+ padding: 6
3675
+ },
3676
+ sm: {
3677
+ width: 20,
3678
+ height: 20,
3679
+ padding: 6
3680
+ },
3681
+ md: {
3682
+ width: 24,
3683
+ height: 24,
3684
+ padding: 8
3685
+ },
3686
+ lg: {
3687
+ width: 24,
3688
+ height: 24,
3689
+ padding: 12
3690
+ },
3691
+ xl: {
3692
+ width: 28,
3693
+ height: 28,
3694
+ padding: 14
3695
+ }
3696
+ };
3697
+ var getButtonVariants = (color, isLight) => ({
3698
+ filled: {
3699
+ backgroundColor: color,
3700
+ color: isLight ? 'color.black' : 'color.white',
3701
+ borderWidth: 1,
3702
+ borderStyle: 'solid',
3703
+ borderColor: 'transparent',
3704
+ _hover: {
3705
+ transform: 'translateY(-1px)',
3706
+ textDecoration: 'underline',
3707
+ textUnderlineOffset: '1px',
3708
+ textDecorationThickness: '1px'
3709
+ },
3710
+ _active: {
3711
+ transform: 'translateY(-1px)',
3712
+ textDecoration: 'underline',
3713
+ textUnderlineOffset: '1px',
3714
+ textDecorationThickness: '1px'
3715
+ },
3716
+ transition: 'all 0.2s ease'
3717
+ },
3718
+ outline: {
3719
+ backgroundColor: 'transparent',
3720
+ color: color,
3721
+ borderWidth: 1,
3722
+ borderStyle: 'solid',
3723
+ borderColor: color,
3724
+ _hover: {
3725
+ backgroundColor: color,
3726
+ color: isLight ? 'light.black' : 'light.white',
3727
+ transform: 'translateY(-1px)',
3728
+ textDecoration: 'underline',
3729
+ textUnderlineOffset: '1px',
3730
+ textDecorationThickness: '1px'
3731
+ },
3732
+ _active: {
3733
+ backgroundColor: color,
3734
+ color: isLight ? 'light.black' : 'light.white',
3735
+ transform: 'translateY(0)',
3736
+ textDecoration: 'underline',
3737
+ textUnderlineOffset: '1px',
3738
+ textDecorationThickness: '1px'
3739
+ },
3740
+ transition: 'all 0.2s ease'
3741
+ },
3742
+ ghost: {
3743
+ backgroundColor: 'transparent',
3744
+ color: color,
3745
+ borderWidth: 0,
3746
+ borderStyle: 'none',
3747
+ borderColor: 'transparent',
3748
+ _hover: {
3749
+ backgroundColor: color,
3750
+ color: isLight ? 'light.black' : 'light.white',
3751
+ transform: 'translateY(-1px)',
3752
+ textDecoration: 'underline',
3753
+ textUnderlineOffset: '1px',
3754
+ textDecorationThickness: '1px'
3755
+ },
3756
+ _active: {
3757
+ backgroundColor: color,
3758
+ color: isLight ? 'light.black' : 'light.white',
3759
+ transform: 'translateY(0)',
3760
+ textDecoration: 'underline',
3761
+ textUnderlineOffset: '1px',
3762
+ textDecorationThickness: '1px'
3763
+ },
3764
+ transition: 'all 0.2s ease'
3765
+ },
3766
+ link: {
3767
+ backgroundColor: 'transparent',
3768
+ color: isLight ? color : 'light.black',
3769
+ borderWidth: 0,
3770
+ borderStyle: 'none',
3771
+ borderColor: 'transparent',
3772
+ textDecoration: 'underline',
3773
+ textUnderlineOffset: '1px',
3774
+ textDecorationThickness: '1px',
3775
+ _hover: {
3776
+ textDecorationThickness: '2px'
3777
+ },
3778
+ _active: {
3779
+ textDecorationThickness: '2px'
3780
+ },
3781
+ transition: 'all 0.2s ease'
3782
+ }
3783
+ });
3784
+
3785
+ var _excluded$a = ["variant", "size", "shape", "iconPosition", "loaderPosition", "backgroundColor", "color", "isAuto", "isFilled", "isDisabled", "isLoading", "isIconRounded", "icon", "children", "to", "isExternal", "shadow", "onClick", "views", "themeMode"];
3700
3786
  var ButtonView = _ref => {
3701
- var _props$onClick;
3787
+ var _ref2;
3702
3788
  var {
3703
- icon,
3704
- shadow,
3705
- children,
3706
- ariaLabel,
3707
- to,
3708
- isAuto = false,
3709
- isFilled = false,
3710
- isIconRounded = false,
3711
- isLoading = false,
3712
- isDisabled = false,
3713
- size = 'md',
3789
+ /* behaviour */
3714
3790
  variant = 'filled',
3715
- iconPosition = 'left',
3791
+ size = 'md',
3716
3792
  shape = 'rounded',
3717
- onClick = () => {},
3718
- loaderProps = {},
3793
+ iconPosition = 'left',
3719
3794
  loaderPosition = 'left',
3720
- effect = 'default' // 'default', 'hover', 'reverse'
3795
+ backgroundColor,
3796
+ // primary candidate for main color
3797
+ color // 2nd candidate for main color (NOT text‑color)
3721
3798
  ,
3722
- setIsHovered = () => {},
3723
- isExternal = false,
3724
- themeMode: elementMode,
3725
- // Allow overriding themeMode for this element
3726
- views,
3727
- color,
3728
- // Text color prop
3729
- backgroundColor = 'theme.primary' // Background color prop
3799
+ isDisabled,
3800
+ isLoading,
3801
+ isIconRounded,
3802
+ /* content */
3803
+ icon,
3804
+ children,
3805
+ /* nav */
3806
+ to,
3807
+ isExternal,
3808
+ /* misc */
3809
+ shadow,
3810
+ onClick,
3811
+ views = {},
3812
+ themeMode: elementMode
3730
3813
  } = _ref,
3731
3814
  props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3815
+ /* theme helpers */
3732
3816
  var {
3733
3817
  getColor,
3734
3818
  themeMode
3735
3819
  } = appStudio.useTheme();
3736
- var handleHover = over => setIsHovered(over);
3737
- var isActive = !(isDisabled || isLoading);
3738
- var defaultNativeProps = {
3739
- disabled: !isActive
3740
- };
3741
- // Determine the base background color key/value, considering disabled state
3742
- var buttonBackgroundColorKey = isActive ? backgroundColor : 'theme.disabled';
3743
- // --- Provided Color Logic ---
3744
- // Determine the effective theme mode for this button
3745
- var mode = elementMode != null ? elementMode : themeMode; // effective mode
3746
- // Resolve the base background color string
3747
- var bg = getColor(buttonBackgroundColorKey, {
3748
- themeMode: mode
3749
- });
3750
- // Resolve the background color string in the opposite theme mode (for reverse effect, though not directly used for ghost/outline text contrast)
3751
- // const bgHover = getColor(buttonBackgroundColorKey, {
3752
- // themeMode: mode === 'light' ? 'dark' : 'light',
3753
- // }); // bgHover is not strictly needed for the text contrast logic below
3754
- // Check contrast of base background
3755
- var isBgLight = contrast(bg) === mode;
3756
- // Determine contrasting text color key for the base background
3757
- var txtOnBgKey = isBgLight ? 'color.black' : 'color.white';
3758
- // --- End Provided Color Logic ---
3759
- // Determine the default text color key/value if 'color' prop is not provided
3760
- // For filled buttons, default text color should contrast with the background (use txtOnBgKey).
3761
- // For outline/link/ghost, a theme-appropriate text color is usually better (e.g., theme.text or theme.primary).
3762
- var defaultTextColorKey;
3763
- if (variant === 'filled') {
3764
- defaultTextColorKey = txtOnBgKey; // Use the calculated contrasting color key
3765
- } else {
3766
- // For non-filled variants, default to theme's text color or primary color
3767
- defaultTextColorKey = 'theme.primary'; // Or 'theme.primary' depending on design system
3768
- }
3769
- // Determine the actual key/value for the base text color
3770
- // Use the provided 'color' prop if available, otherwise use the calculated default
3771
- var baseTextColorKey = color || defaultTextColorKey;
3772
- // Resolve the actual base text color string
3773
- var resolvedBaseTextColor = getColor(baseTextColorKey, {
3774
- themeMode: mode
3775
- });
3776
- // Resolve the contrasting color string for the base background (used for text in outline/ghost reverse)
3777
- var contrastingColorForBg = getColor(txtOnBgKey, {
3778
- themeMode: mode
3779
- });
3780
- // Resolve the contrasting color string for the base text color (used for text in ghost reverse)
3781
- var isBaseTextLight = contrast(resolvedBaseTextColor) === 'light';
3782
- var contrastingColorForBaseText = getColor(isBaseTextLight ? 'color.black' : 'color.white', {
3820
+ var mode = elementMode != null ? elementMode : themeMode;
3821
+ /* MAIN COLOR determines the entire palette */
3822
+ var mainColorKey = (_ref2 = backgroundColor != null ? backgroundColor : color) != null ? _ref2 : 'theme.primary';
3823
+ var mainTone = getColor(isDisabled ? 'theme.disabled' : mainColorKey, {
3783
3824
  themeMode: mode
3784
3825
  });
3785
- // --- Button Variant Styles Function ---
3786
- // This function calculates the styles based on the current state (base, hover, active)
3787
- var getButtonVariantStyles = _ref2 => {
3788
- var {
3789
- currentVariant,
3790
- currentEffect,
3791
- resolvedBg,
3792
- // Resolved base background color string (bg)
3793
- resolvedBaseTextColor,
3794
- // Resolved base text color string
3795
- contrastingColorForBg,
3796
- // Resolved contrasting color string for resolvedBg
3797
- contrastingColorForBaseText,
3798
- // Resolved contrasting color string for resolvedBaseTextColor
3799
- resolvedBorderColor
3800
- } = _ref2;
3801
- // Define the base styles for each variant
3802
- var baseStyles = {
3803
- filled: {
3804
- backgroundColor: resolvedBg,
3805
- color: resolvedBaseTextColor,
3806
- borderWidth: 1,
3807
- borderStyle: 'solid',
3808
- borderColor: 'transparent'
3809
- },
3810
- outline: {
3811
- backgroundColor: 'transparent',
3812
- color: resolvedBaseTextColor,
3813
- borderWidth: 1,
3814
- borderStyle: 'solid',
3815
- borderColor: resolvedBorderColor
3816
- },
3817
- link: {
3818
- backgroundColor: 'transparent',
3819
- color: resolvedBg,
3820
- borderWidth: 0,
3821
- borderStyle: 'none',
3822
- borderColor: 'transparent',
3823
- textDecoration: 'underline'
3824
- },
3825
- ghost: {
3826
- backgroundColor: 'transparent',
3827
- color: resolvedBaseTextColor,
3828
- borderWidth: 0,
3829
- borderStyle: 'none',
3830
- borderColor: 'transparent'
3831
- }
3832
- };
3833
- // Define the styles applied on hover/active when effect is 'reverse'
3834
- var reverseHoverActiveStyles = {
3835
- filled: {
3836
- backgroundColor: 'transparent',
3837
- color: resolvedBg,
3838
- borderWidth: 1,
3839
- borderStyle: 'solid',
3840
- borderColor: resolvedBg
3841
- },
3842
- outline: {
3843
- backgroundColor: resolvedBg,
3844
- color: contrastingColorForBg,
3845
- borderWidth: 1,
3846
- borderStyle: 'solid',
3847
- borderColor: 'transparent'
3848
- },
3849
- link: {
3850
- backgroundColor: 'transparent',
3851
- color: resolvedBg,
3852
- borderWidth: 0,
3853
- borderStyle: 'none',
3854
- borderColor: 'transparent',
3855
- textDecoration: 'none'
3856
- },
3857
- ghost: {
3858
- backgroundColor: resolvedBg,
3859
- color: contrastingColorForBaseText,
3860
- borderWidth: 0,
3861
- borderStyle: 'none',
3862
- borderColor: 'transparent'
3863
- }
3864
- };
3865
- // General hover/active effects (transform, shadow, opacity, etc.)
3866
- var generalHoverStyles = {
3867
- transform: 'translateY(2px)',
3868
- boxShadow: currentVariant === 'link' ? undefined : '0 4px 8px rgba(0, 0, 0, 0.1)',
3869
- // opacity: currentVariant === 'link' ? 0.8 : undefined,
3870
- textDecorationThickness: currentVariant === 'link' ? '2px' : undefined
3871
- };
3872
- var generalActiveStyles = {
3873
- transform: 'translateY(-1px)',
3874
- boxShadow: '0 2px 4px rgba(0, 0, 0, 0.1)',
3875
- opacity: currentVariant === 'link' ? 0.8 : undefined,
3876
- textDecorationThickness: currentVariant === 'link' ? '2px' : undefined
3877
- };
3878
- // Combine base styles with conditional hover/active overrides
3879
- return Object.assign({}, baseStyles[currentVariant], {
3880
- _hover: Object.assign({}, currentEffect === 'reverse' ? reverseHoverActiveStyles[currentVariant] : {}, currentEffect === 'hover' ? {
3881
- filter: 'brightness(0.85)'
3882
- } : {}, generalHoverStyles),
3883
- _active: Object.assign({}, currentEffect === 'reverse' ? reverseHoverActiveStyles[currentVariant] : {}, currentEffect === 'hover' ? {
3884
- filter: 'brightness(0.7)'
3885
- } : {}, generalActiveStyles)
3886
- });
3887
- };
3888
- // Get the calculated variant styles for the current state
3889
- var buttonVariantStyles = getButtonVariantStyles({
3890
- currentVariant: variant,
3891
- currentEffect: effect,
3892
- resolvedBg: bg,
3893
- resolvedBaseTextColor: resolvedBaseTextColor,
3894
- contrastingColorForBg: contrastingColorForBg,
3895
- contrastingColorForBaseText: contrastingColorForBaseText,
3896
- resolvedBorderColor: bg
3897
- });
3898
- // Extract hover and active styles from the calculated styles
3899
- var {
3900
- _hover,
3901
- _active
3902
- } = buttonVariantStyles,
3903
- baseButtonVariantStyles = _objectWithoutPropertiesLoose(buttonVariantStyles, _excluded2$3);
3904
- var buttonSizeStyles = ButtonSizes[size];
3905
- var scaleWidth = {
3906
- width: isAuto === true ? 'fit-content' : isFilled ? '100%' : buttonSizeStyles.width
3907
- };
3908
- var changePadding = isIconRounded ? IconSizes$1[size] : ButtonSizes[size];
3909
- // Use Horizontal or Vertical container based on icon position
3910
- var Container = ['left', 'right'].includes(iconPosition) ? appStudio.Horizontal : appStudio.Vertical;
3911
- // Create the button content with proper spacing and alignment
3912
- var content = /*#__PURE__*/React__default.createElement(Container, Object.assign({
3826
+ var tone = contrast(mainTone);
3827
+ /* variant palette */
3828
+ var palette = React.useMemo(() => getButtonVariants(mainTone, tone == 'light'), [mainTone, tone]);
3829
+ var base = palette[variant];
3830
+ /* layout helpers */
3831
+ var Wrapper = ['left', 'right'].includes(iconPosition) ? appStudio.Horizontal : appStudio.Vertical;
3832
+ var sizeStyles = ButtonSizes[size];
3833
+ var iconPad = isIconRounded ? IconSizes$1[size] : {};
3834
+ var content = /*#__PURE__*/React__default.createElement(Wrapper, Object.assign({
3913
3835
  gap: 8,
3914
3836
  alignItems: "center",
3915
- justifyContent: "center"
3916
- }, views == null ? void 0 : views.content), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
3837
+ justifyContent: "center",
3838
+ color: 'inherit',
3839
+ _hover: {
3840
+ color: 'inherit'
3841
+ }
3842
+ }, sizeStyles, views == null ? void 0 : views.content), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
3917
3843
  size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
3918
- color: baseButtonVariantStyles.color
3844
+ color: 'inherit',
3845
+ _hover: {
3846
+ color: 'inherit'
3847
+ }
3919
3848
  }, views == null ? void 0 : views.loader))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3920
- display: "flex",
3921
- alignItems: "center",
3922
- justifyContent: "center",
3923
- color: baseButtonVariantStyles.color
3849
+ color: 'inherit',
3850
+ _hover: {
3851
+ color: 'inherit'
3852
+ }
3924
3853
  }, views == null ? void 0 : views.icon), icon)), children, icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3925
- display: "flex",
3926
- alignItems: "center",
3927
- justifyContent: "center",
3928
- color: baseButtonVariantStyles.color
3854
+ color: 'inherit',
3855
+ _hover: {
3856
+ color: 'inherit'
3857
+ }
3929
3858
  }, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
3930
3859
  size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
3931
- color: baseButtonVariantStyles.color
3860
+ color: 'inherit',
3861
+ _hover: {
3862
+ color: 'inherit'
3863
+ }
3932
3864
  }, views == null ? void 0 : views.loader))));
3933
- // Determine if the button should render as a Link or a button Element
3934
- var isLink = variant === 'link' && to;
3935
3865
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
3936
- gap: 8,
3937
- as: isLink ? 'div' : 'button',
3938
- type: isLink ? undefined : 'button',
3866
+ as: variant === 'link' && to ? 'div' : 'button',
3867
+ type: variant === 'link' && to ? undefined : 'button',
3868
+ disabled: Boolean(isDisabled || isLoading)
3869
+ }, sizeStyles, iconPad, {
3939
3870
  display: "flex",
3940
3871
  alignItems: "center",
3941
3872
  justifyContent: "center",
3942
- "aria-label": ariaLabel,
3943
- // backgroundColor="transparent" // Remove this unless it's intended to override variant styles
3873
+ // width={isAuto ? 'fit-content' : isFilled ? '100%' : undefined}
3874
+ /* visuals */
3944
3875
  borderRadius: ButtonShapes[shape],
3945
- onClick: (_props$onClick = props.onClick) != null ? _props$onClick : onClick,
3946
- onMouseEnter: () => handleHover(true),
3947
- onMouseLeave: () => handleHover(false),
3948
- cursor: isActive ? isLink ? 'pointer' : 'pointer' : 'default',
3876
+ boxShadow: shadow,
3949
3877
  transition: "all 0.2s ease",
3950
- // filter and transform are now handled within _hover/_active styles
3951
- // Apply shadow if provided
3952
- boxShadow: shadow ? shadow : undefined
3953
- }, defaultNativeProps, (_ref3 => {
3954
- var rest = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
3955
- return rest;
3956
- })(props), buttonSizeStyles, baseButtonVariantStyles, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, {
3957
- // Apply hover and active styles
3958
- _hover: _hover,
3959
- _active: _active
3960
- }, props, views == null ? void 0 : views.container), to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
3878
+ cursor: isDisabled ? 'default' : 'pointer',
3879
+ onClick: onClick
3880
+ }, base, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
3961
3881
  to: to,
3962
3882
  isExternal: isExternal,
3963
- // Link styles should inherit from the button's calculated styles or be defined here
3964
- // Let's apply relevant styles from the button variant to the Link
3965
- color: baseButtonVariantStyles.color,
3966
- textDecoration: baseButtonVariantStyles.textDecoration,
3967
- textDecorationColor: baseButtonVariantStyles.color,
3968
- textDecorationThickness: "1px" // Base thickness
3969
- ,
3970
- textUnderlineOffset: "2px",
3971
- transition: "all 0.2s ease",
3972
- // Apply Link-specific hover/active styles if needed, or let Element's _hover/_active handle it
3973
- _hover: Object.assign({}, _hover, {
3974
- textDecorationThickness: '2px'
3975
- }),
3976
- _active: Object.assign({}, _active, {
3977
- textDecorationThickness: '2px'
3978
- })
3883
+ color: 'inherit',
3884
+ textDecoration: 'inherit',
3885
+ textDecorationColor: 'inherit'
3979
3886
  }, views == null ? void 0 : views.link), content)) : content);
3980
3887
  };
3981
3888
 
@@ -4095,8 +4002,8 @@
4095
4002
  };
4096
4003
 
4097
4004
  var _excluded$b = ["children", "views", "style", "themeMode"],
4098
- _excluded2$4 = ["children", "views", "style", "themeMode"],
4099
- _excluded3$4 = ["children", "views", "style", "themeMode"],
4005
+ _excluded2$3 = ["children", "views", "style", "themeMode"],
4006
+ _excluded3$3 = ["children", "views", "style", "themeMode"],
4100
4007
  _excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
4101
4008
  var CardHeader = _ref => {
4102
4009
  var _contextStyles$header;
@@ -4122,7 +4029,7 @@
4122
4029
  children,
4123
4030
  style
4124
4031
  } = _ref2,
4125
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
4032
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
4126
4033
  var theme = appStudio.useTheme();
4127
4034
  var {
4128
4035
  styles: contextStyles
@@ -4140,7 +4047,7 @@
4140
4047
  children,
4141
4048
  style
4142
4049
  } = _ref3,
4143
- props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
4050
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
4144
4051
  var theme = appStudio.useTheme();
4145
4052
  var {
4146
4053
  styles: contextStyles
@@ -4499,8 +4406,8 @@
4499
4406
  };
4500
4407
 
4501
4408
  var _excluded$c = ["children", "isActive", "views"],
4502
- _excluded2$5 = ["views", "children"],
4503
- _excluded3$5 = ["views", "children"],
4409
+ _excluded2$4 = ["views", "children"],
4410
+ _excluded3$4 = ["views", "children"],
4504
4411
  _excluded4$4 = ["children", "views"],
4505
4412
  _excluded5$1 = ["children", "views", "style"],
4506
4413
  _excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "stepIndices", "themeMode"];
@@ -4526,7 +4433,7 @@
4526
4433
  children // Allow custom content/icon
4527
4434
  // Spread remaining ButtonProps
4528
4435
  } = _ref2,
4529
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
4436
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
4530
4437
  var {
4531
4438
  goToPrevious,
4532
4439
  canGoPrevious,
@@ -4549,7 +4456,7 @@
4549
4456
  views,
4550
4457
  children
4551
4458
  } = _ref3,
4552
- props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
4459
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
4553
4460
  var {
4554
4461
  goToNext,
4555
4462
  canGoNext,
@@ -5793,8 +5700,8 @@
5793
5700
  };
5794
5701
 
5795
5702
  var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
5796
- _excluded2$6 = ["items", "children", "position", "side", "align", "views", "style"],
5797
- _excluded3$6 = ["item", "children", "onSelect", "isDisabled", "views"],
5703
+ _excluded2$5 = ["items", "children", "position", "side", "align", "views", "style"],
5704
+ _excluded3$5 = ["item", "children", "onSelect", "isDisabled", "views"],
5798
5705
  _excluded4$5 = ["views"],
5799
5706
  _excluded5$2 = ["views"],
5800
5707
  _excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
@@ -5902,7 +5809,7 @@
5902
5809
  views,
5903
5810
  style // Capture user-provided style
5904
5811
  } = _ref3,
5905
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$6);
5812
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$5);
5906
5813
  var {
5907
5814
  isOpen,
5908
5815
  position: contextPosition,
@@ -5973,7 +5880,7 @@
5973
5880
  isDisabled = false,
5974
5881
  views
5975
5882
  } = _ref4,
5976
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
5883
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$5);
5977
5884
  var {
5978
5885
  activeSubmenuId,
5979
5886
  setActiveSubmenuId,
@@ -6199,7 +6106,7 @@
6199
6106
  ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
6200
6107
 
6201
6108
  var _excluded$g = ["src", "color", "views", "themeMode"],
6202
- _excluded2$7 = ["path"];
6109
+ _excluded2$6 = ["path"];
6203
6110
  var FileSVG = _ref => {
6204
6111
  var {
6205
6112
  src,
@@ -6229,7 +6136,7 @@
6229
6136
  var {
6230
6137
  path
6231
6138
  } = _ref2,
6232
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
6139
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$6);
6233
6140
  return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
6234
6141
  src: path
6235
6142
  }, props));
@@ -6661,8 +6568,8 @@
6661
6568
  };
6662
6569
 
6663
6570
  var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
6664
- _excluded2$8 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
6665
- _excluded3$7 = ["option", "size", "removeOption"],
6571
+ _excluded2$7 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
6572
+ _excluded3$6 = ["option", "size", "removeOption"],
6666
6573
  _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"];
6667
6574
  /**
6668
6575
  * Item Component
@@ -6779,7 +6686,7 @@
6779
6686
  isReadOnly = false,
6780
6687
  options = []
6781
6688
  } = _ref4,
6782
- props = _objectWithoutPropertiesLoose(_ref4, _excluded2$8);
6689
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded2$7);
6783
6690
  var handleChange = event => {
6784
6691
  if (onChange) onChange(event);
6785
6692
  };
@@ -6882,7 +6789,7 @@
6882
6789
  size = 'md',
6883
6790
  removeOption = () => {}
6884
6791
  } = _ref6,
6885
- props = _objectWithoutPropertiesLoose(_ref6, _excluded3$7);
6792
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded3$6);
6886
6793
  var handleClick = () => removeOption(option);
6887
6794
  return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
6888
6795
  gap: 8,
@@ -9414,8 +9321,8 @@
9414
9321
  };
9415
9322
 
9416
9323
  var _excluded$t = ["size"],
9417
- _excluded2$9 = ["size"],
9418
- _excluded3$8 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "views", "themeMode"];
9324
+ _excluded2$8 = ["size"],
9325
+ _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"];
9419
9326
  var CountryList = _ref => {
9420
9327
  var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
9421
9328
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
@@ -9426,7 +9333,7 @@
9426
9333
  type: "country"
9427
9334
  }, props)));
9428
9335
  var CountryItem = _ref2 => {
9429
- var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$9);
9336
+ var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$8);
9430
9337
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
9431
9338
  as: "li"
9432
9339
  }, props));
@@ -9528,7 +9435,7 @@
9528
9435
  },
9529
9436
  themeMode: elementMode
9530
9437
  } = _ref5,
9531
- props = _objectWithoutPropertiesLoose(_ref5, _excluded3$8);
9438
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded3$7);
9532
9439
  var {
9533
9440
  getColor,
9534
9441
  themeMode
@@ -9779,7 +9686,7 @@
9779
9686
  };
9780
9687
 
9781
9688
  var _excluded$v = ["visibleIcon", "hiddenIcon"],
9782
- _excluded2$a = ["isVisible", "setIsVisible"];
9689
+ _excluded2$9 = ["isVisible", "setIsVisible"];
9783
9690
  var PasswordComponent = _ref => {
9784
9691
  var {
9785
9692
  visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
@@ -9795,7 +9702,7 @@
9795
9702
  isVisible,
9796
9703
  setIsVisible
9797
9704
  } = _usePasswordState,
9798
- passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
9705
+ passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$9);
9799
9706
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
9800
9707
  type: isVisible ? 'text' : 'password',
9801
9708
  isClearable: false,
@@ -10828,7 +10735,7 @@
10828
10735
  var FormikTextField = TextFieldComponent$1;
10829
10736
 
10830
10737
  var _excluded$D = ["visibleIcon", "hiddenIcon"],
10831
- _excluded2$b = ["isVisible", "setIsVisible"];
10738
+ _excluded2$a = ["isVisible", "setIsVisible"];
10832
10739
  var PasswordComponent$1 = _ref => {
10833
10740
  var {
10834
10741
  visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
@@ -10845,7 +10752,7 @@
10845
10752
  isVisible,
10846
10753
  setIsVisible
10847
10754
  } = _usePasswordState,
10848
- passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$b);
10755
+ passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
10849
10756
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
10850
10757
  type: isVisible ? 'text' : 'password',
10851
10758
  isClearable: false,
@@ -12277,8 +12184,8 @@
12277
12184
  };
12278
12185
 
12279
12186
  var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
12280
- _excluded2$c = ["children", "shadow", "isFullScreen", "shape", "views", "isOpen"],
12281
- _excluded3$9 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
12187
+ _excluded2$b = ["children", "shadow", "isFullScreen", "shape", "views", "isOpen"],
12188
+ _excluded3$8 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
12282
12189
  _excluded4$7 = ["children", "views"],
12283
12190
  _excluded5$3 = ["children", "views"];
12284
12191
  var ModalOverlay = _ref => {
@@ -12327,7 +12234,7 @@
12327
12234
  shape = 'rounded',
12328
12235
  views
12329
12236
  } = _ref2,
12330
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$c);
12237
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$b);
12331
12238
  var defaultShadow = typeof document !== undefined ? {
12332
12239
  boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
12333
12240
  } : {
@@ -12360,7 +12267,7 @@
12360
12267
  buttonPosition = 'right',
12361
12268
  views
12362
12269
  } = _ref3,
12363
- props = _objectWithoutPropertiesLoose(_ref3, _excluded3$9);
12270
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded3$8);
12364
12271
  var onClose = props.onClose ? props.onClose : hideModal;
12365
12272
  var buttonIcon = /*#__PURE__*/React__default.createElement(appStudio.View, {
12366
12273
  onClick: onClose
@@ -13837,8 +13744,8 @@
13837
13744
  };
13838
13745
 
13839
13746
  var _excluded$M = ["children", "views"],
13840
- _excluded2$d = ["items", "side", "align", "views"],
13841
- _excluded3$a = ["item", "views"],
13747
+ _excluded2$c = ["items", "side", "align", "views"],
13748
+ _excluded3$9 = ["item", "views"],
13842
13749
  _excluded4$8 = ["views"],
13843
13750
  _excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
13844
13751
  // Create context for the DropdownMenu
@@ -13899,7 +13806,7 @@
13899
13806
  align = 'start',
13900
13807
  views
13901
13808
  } = _ref3,
13902
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$d);
13809
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$c);
13903
13810
  var {
13904
13811
  isOpen,
13905
13812
  //activeSubmenuId, setActiveSubmenuId, size,
@@ -13935,7 +13842,7 @@
13935
13842
  item,
13936
13843
  views
13937
13844
  } = _ref4,
13938
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$a);
13845
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$9);
13939
13846
  var {
13940
13847
  activeSubmenuId,
13941
13848
  setActiveSubmenuId,
@@ -13984,8 +13891,8 @@
13984
13891
  }, item.label), hasSubmenu && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
13985
13892
  marginLeft: 8
13986
13893
  }, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React__default.createElement("svg", {
13987
- width: "16",
13988
- height: "16",
13894
+ width: "16px",
13895
+ height: "16px",
13989
13896
  viewBox: "0 0 24 24",
13990
13897
  fill: "none",
13991
13898
  xmlns: "http://www.w3.org/2000/svg"
@@ -14248,7 +14155,7 @@
14248
14155
  };
14249
14156
 
14250
14157
  var _excluded$O = ["children", "views", "asChild"],
14251
- _excluded2$e = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
14158
+ _excluded2$d = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
14252
14159
  // Create context for the HoverCard
14253
14160
  var HoverCardContext = /*#__PURE__*/React.createContext({
14254
14161
  isOpen: false,
@@ -14334,7 +14241,7 @@
14334
14241
  minWidth = '200px',
14335
14242
  maxWidth = '300px'
14336
14243
  } = _ref3,
14337
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$e);
14244
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$d);
14338
14245
  var {
14339
14246
  isOpen,
14340
14247
  cancelCloseTimer,
@@ -15397,8 +15304,8 @@
15397
15304
  };
15398
15305
 
15399
15306
  var _excluded$V = ["children", "showToggleButton", "views"],
15400
- _excluded2$f = ["children", "views"],
15401
- _excluded3$b = ["children", "views"],
15307
+ _excluded2$e = ["children", "views"],
15308
+ _excluded3$a = ["children", "views"],
15402
15309
  _excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
15403
15310
  // Create context for the Sidebar
15404
15311
  var SidebarContext = /*#__PURE__*/React.createContext({
@@ -15496,7 +15403,7 @@
15496
15403
  children,
15497
15404
  views
15498
15405
  } = _ref3,
15499
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$f);
15406
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$e);
15500
15407
  var {
15501
15408
  isExpanded
15502
15409
  } = useSidebarContext();
@@ -15514,7 +15421,7 @@
15514
15421
  children,
15515
15422
  views
15516
15423
  } = _ref4,
15517
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
15424
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$a);
15518
15425
  var {
15519
15426
  isExpanded
15520
15427
  } = useSidebarContext();
@@ -16072,8 +15979,8 @@
16072
15979
  };
16073
15980
 
16074
15981
  var _excluded$X = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
16075
- _excluded2$g = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
16076
- _excluded3$c = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
15982
+ _excluded2$f = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
15983
+ _excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
16077
15984
  // Create context for the Resizable component
16078
15985
  var ResizableContext = /*#__PURE__*/React.createContext({
16079
15986
  orientation: 'horizontal',
@@ -16180,7 +16087,7 @@
16180
16087
  collapseTarget,
16181
16088
  views
16182
16089
  } = _ref3,
16183
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$g);
16090
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$f);
16184
16091
  var {
16185
16092
  orientation,
16186
16093
  size,
@@ -16320,7 +16227,7 @@
16320
16227
  containerRef,
16321
16228
  views
16322
16229
  } = _ref4,
16323
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
16230
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
16324
16231
  var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
16325
16232
  return /*#__PURE__*/React__default.createElement(Container, Object.assign({
16326
16233
  ref: containerRef,
@@ -17120,8 +17027,8 @@
17120
17027
  };
17121
17028
 
17122
17029
  var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
17123
- _excluded2$h = ["children", "views"],
17124
- _excluded3$d = ["heading", "children", "views"],
17030
+ _excluded2$g = ["children", "views"],
17031
+ _excluded3$c = ["heading", "children", "views"],
17125
17032
  _excluded4$a = ["item", "selected", "onSelect", "views"],
17126
17033
  _excluded5$5 = ["children", "views"],
17127
17034
  _excluded6$3 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "emptyState", "footer", "search", "setSearch", "selectedIndex", "setSelectedIndex", "filteredCommands", "filteredGroups", "listRef", "views", "filter"];
@@ -17183,7 +17090,7 @@
17183
17090
  children,
17184
17091
  views
17185
17092
  } = _ref3,
17186
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
17093
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$g);
17187
17094
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
17188
17095
  };
17189
17096
  // Command Group component
@@ -17193,7 +17100,7 @@
17193
17100
  children,
17194
17101
  views
17195
17102
  } = _ref4,
17196
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
17103
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
17197
17104
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandGroupStyles, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(Text, Object.assign({}, CommandGroupHeadingStyles, views == null ? void 0 : views.heading), heading), children);
17198
17105
  };
17199
17106
  // Command Item component
@@ -17640,8 +17547,8 @@
17640
17547
  };
17641
17548
 
17642
17549
  var _excluded$$ = ["children", "views", "asChild"],
17643
- _excluded2$i = ["children", "views"],
17644
- _excluded3$e = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
17550
+ _excluded2$h = ["children", "views"],
17551
+ _excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
17645
17552
  // Create context for the Tooltip
17646
17553
  var TooltipContext = /*#__PURE__*/React.createContext({
17647
17554
  isOpen: false,
@@ -17711,7 +17618,7 @@
17711
17618
  children,
17712
17619
  views
17713
17620
  } = _ref3,
17714
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$i);
17621
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
17715
17622
  var {
17716
17623
  isOpen,
17717
17624
  contentRef,
@@ -17741,7 +17648,7 @@
17741
17648
  showArrow = true,
17742
17649
  views
17743
17650
  } = _ref4,
17744
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$e);
17651
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
17745
17652
  var {
17746
17653
  isOpen,
17747
17654
  // openTooltip,