@app-studio/web 0.8.84 → 0.8.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Button/Button/Button.props.d.ts +2 -0
- package/dist/components/Button/Button/Button.style.d.ts +0 -3
- package/dist/components/Button/Button/Button.view.d.ts +3 -3
- package/dist/web.cjs.development.js +339 -436
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +339 -436
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +343 -440
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +2 -2
- package/dist/assets/svg/index.d.ts +0 -2
|
@@ -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
|
-
|
|
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
|
-
|
|
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,308 @@
|
|
|
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
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
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: 24,
|
|
3597
|
+
paddingTop: 2,
|
|
3598
|
+
paddingBottom: 2,
|
|
3599
|
+
paddingLeft: 6,
|
|
3600
|
+
paddingRight: 6,
|
|
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: 32,
|
|
3610
|
+
paddingTop: 6,
|
|
3611
|
+
paddingBottom: 6,
|
|
3612
|
+
paddingLeft: 12,
|
|
3613
|
+
paddingRight: 12,
|
|
3614
|
+
// Typography
|
|
3615
|
+
fontSize: 14,
|
|
3616
|
+
fontWeight: '500',
|
|
3617
|
+
lineHeight: 20,
|
|
3618
|
+
letterSpacing: '-0.01em'
|
|
3619
|
+
},
|
|
3620
|
+
md: {
|
|
3621
|
+
// Height: 40px (10 × 4px) - standard height for interactive elements
|
|
3622
|
+
minHeight: 40,
|
|
3623
|
+
paddingTop: 8,
|
|
3624
|
+
paddingBottom: 8,
|
|
3625
|
+
paddingLeft: 16,
|
|
3626
|
+
paddingRight: 16,
|
|
3627
|
+
// Typography
|
|
3628
|
+
fontSize: 14,
|
|
3629
|
+
fontWeight: '500',
|
|
3630
|
+
lineHeight: 24,
|
|
3631
|
+
letterSpacing: '-0.01em'
|
|
3632
|
+
},
|
|
3633
|
+
lg: {
|
|
3634
|
+
// Height: 48px (12 × 4px)
|
|
3635
|
+
minHeight: 48,
|
|
3636
|
+
paddingTop: 12,
|
|
3637
|
+
paddingBottom: 12,
|
|
3638
|
+
paddingLeft: 20,
|
|
3639
|
+
paddingRight: 20,
|
|
3640
|
+
// Typography
|
|
3641
|
+
fontSize: 16,
|
|
3642
|
+
fontWeight: '500',
|
|
3643
|
+
lineHeight: 24,
|
|
3644
|
+
letterSpacing: '-0.01em'
|
|
3645
|
+
},
|
|
3646
|
+
xl: {
|
|
3647
|
+
// Height: 60px (15 × 4px)
|
|
3648
|
+
minHeight: 60,
|
|
3649
|
+
paddingTop: 16,
|
|
3650
|
+
paddingBottom: 16,
|
|
3651
|
+
paddingLeft: 28,
|
|
3652
|
+
paddingRight: 28,
|
|
3653
|
+
// Typography
|
|
3654
|
+
fontSize: 18,
|
|
3655
|
+
fontWeight: '500',
|
|
3656
|
+
lineHeight: 28,
|
|
3657
|
+
letterSpacing: '-0.01em'
|
|
3658
|
+
}
|
|
3659
|
+
};
|
|
3660
|
+
/**
|
|
3661
|
+
* Button shapes with consistent border radius
|
|
3662
|
+
*/
|
|
3663
|
+
var ButtonShapes = {
|
|
3664
|
+
sharp: 0,
|
|
3665
|
+
rounded: 8,
|
|
3666
|
+
pillShaped: 999
|
|
3667
|
+
};
|
|
3668
|
+
/**
|
|
3669
|
+
* Icon sizes for different button sizes
|
|
3670
|
+
*/
|
|
3671
|
+
var IconSizes$1 = {
|
|
3672
|
+
xs: {
|
|
3673
|
+
width: 16,
|
|
3674
|
+
height: 16,
|
|
3675
|
+
padding: 6
|
|
3676
|
+
},
|
|
3677
|
+
sm: {
|
|
3678
|
+
width: 20,
|
|
3679
|
+
height: 20,
|
|
3680
|
+
padding: 6
|
|
3681
|
+
},
|
|
3682
|
+
md: {
|
|
3683
|
+
width: 24,
|
|
3684
|
+
height: 24,
|
|
3685
|
+
padding: 8
|
|
3686
|
+
},
|
|
3687
|
+
lg: {
|
|
3688
|
+
width: 24,
|
|
3689
|
+
height: 24,
|
|
3690
|
+
padding: 12
|
|
3691
|
+
},
|
|
3692
|
+
xl: {
|
|
3693
|
+
width: 28,
|
|
3694
|
+
height: 28,
|
|
3695
|
+
padding: 14
|
|
3696
|
+
}
|
|
3697
|
+
};
|
|
3698
|
+
var getButtonVariants = (color, isLight) => ({
|
|
3699
|
+
filled: {
|
|
3700
|
+
backgroundColor: color,
|
|
3701
|
+
color: isLight ? 'color.black' : 'color.white',
|
|
3702
|
+
borderWidth: 1,
|
|
3703
|
+
borderStyle: 'solid',
|
|
3704
|
+
borderColor: 'transparent',
|
|
3705
|
+
_hover: {
|
|
3706
|
+
backgroundColor: 'transparent',
|
|
3707
|
+
color: color,
|
|
3708
|
+
borderColor: color,
|
|
3709
|
+
transform: 'translateY(-1px)'
|
|
3710
|
+
},
|
|
3711
|
+
_active: {
|
|
3712
|
+
color: color,
|
|
3713
|
+
borderColor: color,
|
|
3714
|
+
transform: 'translateY(0)'
|
|
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
|
+
},
|
|
3729
|
+
_active: {
|
|
3730
|
+
backgroundColor: color,
|
|
3731
|
+
color: isLight ? 'light.black' : 'light.white',
|
|
3732
|
+
transform: 'translateY(0)'
|
|
3733
|
+
},
|
|
3734
|
+
transition: 'all 0.2s ease'
|
|
3735
|
+
},
|
|
3736
|
+
ghost: {
|
|
3737
|
+
backgroundColor: 'transparent',
|
|
3738
|
+
color: color,
|
|
3739
|
+
borderWidth: 0,
|
|
3740
|
+
borderStyle: 'none',
|
|
3741
|
+
borderColor: 'transparent',
|
|
3742
|
+
_hover: {
|
|
3743
|
+
backgroundColor: color,
|
|
3744
|
+
color: isLight ? 'light.black' : 'light.white',
|
|
3745
|
+
transform: 'translateY(-1px)'
|
|
3746
|
+
},
|
|
3747
|
+
_active: {
|
|
3748
|
+
backgroundColor: color,
|
|
3749
|
+
color: isLight ? 'light.black' : 'light.white',
|
|
3750
|
+
transform: 'translateY(0)'
|
|
3751
|
+
},
|
|
3752
|
+
transition: 'all 0.2s ease'
|
|
3753
|
+
},
|
|
3754
|
+
link: {
|
|
3755
|
+
backgroundColor: 'transparent',
|
|
3756
|
+
color: isLight ? color : 'light.black',
|
|
3757
|
+
borderWidth: 0,
|
|
3758
|
+
borderStyle: 'none',
|
|
3759
|
+
borderColor: 'transparent',
|
|
3760
|
+
textDecoration: 'underline',
|
|
3761
|
+
textUnderlineOffset: 2,
|
|
3762
|
+
_hover: {
|
|
3763
|
+
textDecorationThickness: 2
|
|
3764
|
+
},
|
|
3765
|
+
_active: {
|
|
3766
|
+
textDecorationThickness: 2
|
|
3767
|
+
},
|
|
3768
|
+
transition: 'all 0.2s ease'
|
|
3769
|
+
}
|
|
3770
|
+
});
|
|
3771
|
+
|
|
3772
|
+
var _excluded$a = ["variant", "size", "shape", "iconPosition", "loaderPosition", "backgroundColor", "color", "isAuto", "isFilled", "isDisabled", "isLoading", "isIconRounded", "icon", "children", "to", "isExternal", "shadow", "onClick", "views", "themeMode"];
|
|
3700
3773
|
var ButtonView = _ref => {
|
|
3701
|
-
var
|
|
3774
|
+
var _ref2;
|
|
3702
3775
|
var {
|
|
3703
|
-
|
|
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',
|
|
3776
|
+
/* behaviour */
|
|
3714
3777
|
variant = 'filled',
|
|
3715
|
-
|
|
3778
|
+
size = 'md',
|
|
3716
3779
|
shape = 'rounded',
|
|
3717
|
-
|
|
3718
|
-
loaderProps = {},
|
|
3780
|
+
iconPosition = 'left',
|
|
3719
3781
|
loaderPosition = 'left',
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
setIsHovered = () => {},
|
|
3723
|
-
isExternal = false,
|
|
3724
|
-
themeMode: elementMode,
|
|
3725
|
-
// Allow overriding themeMode for this element
|
|
3726
|
-
views,
|
|
3782
|
+
backgroundColor,
|
|
3783
|
+
// primary candidate for main color
|
|
3727
3784
|
color,
|
|
3728
|
-
//
|
|
3729
|
-
|
|
3785
|
+
// 2nd candidate for main color (NOT text‑color)
|
|
3786
|
+
isAuto,
|
|
3787
|
+
isFilled,
|
|
3788
|
+
isDisabled,
|
|
3789
|
+
isLoading,
|
|
3790
|
+
isIconRounded,
|
|
3791
|
+
/* content */
|
|
3792
|
+
icon,
|
|
3793
|
+
children,
|
|
3794
|
+
/* nav */
|
|
3795
|
+
to,
|
|
3796
|
+
isExternal,
|
|
3797
|
+
/* misc */
|
|
3798
|
+
shadow,
|
|
3799
|
+
onClick,
|
|
3800
|
+
views = {},
|
|
3801
|
+
themeMode: elementMode
|
|
3730
3802
|
} = _ref,
|
|
3731
3803
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
3804
|
+
/* theme helpers */
|
|
3732
3805
|
var {
|
|
3733
3806
|
getColor,
|
|
3734
3807
|
themeMode
|
|
3735
3808
|
} = appStudio.useTheme();
|
|
3736
|
-
var
|
|
3737
|
-
|
|
3738
|
-
var
|
|
3739
|
-
|
|
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', {
|
|
3809
|
+
var mode = elementMode != null ? elementMode : themeMode;
|
|
3810
|
+
/* MAIN COLOR – determines the entire palette */
|
|
3811
|
+
var mainColorKey = (_ref2 = backgroundColor != null ? backgroundColor : color) != null ? _ref2 : 'theme.primary';
|
|
3812
|
+
var mainTone = getColor(isDisabled ? 'theme.disabled' : mainColorKey, {
|
|
3783
3813
|
themeMode: mode
|
|
3784
3814
|
});
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
var
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
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({
|
|
3815
|
+
var tone = contrast(mainTone);
|
|
3816
|
+
/* variant palette */
|
|
3817
|
+
var palette = React.useMemo(() => getButtonVariants(mainTone, tone == 'light'), [mainTone, tone]);
|
|
3818
|
+
var base = palette[variant];
|
|
3819
|
+
/* layout helpers */
|
|
3820
|
+
var Wrapper = ['left', 'right'].includes(iconPosition) ? appStudio.Horizontal : appStudio.Vertical;
|
|
3821
|
+
var sizeStyles = ButtonSizes[size];
|
|
3822
|
+
var iconPad = isIconRounded ? IconSizes$1[size] : {};
|
|
3823
|
+
var content = /*#__PURE__*/React__default.createElement(Wrapper, Object.assign({
|
|
3913
3824
|
gap: 8,
|
|
3914
3825
|
alignItems: "center",
|
|
3915
|
-
justifyContent: "center"
|
|
3916
|
-
}, views == null ? void 0 : views.container), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
|
|
3917
|
-
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
3918
|
-
color: baseButtonVariantStyles.color
|
|
3919
|
-
}, loaderProps))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
3920
|
-
display: "flex",
|
|
3921
|
-
alignItems: "center",
|
|
3922
3826
|
justifyContent: "center",
|
|
3923
|
-
color:
|
|
3827
|
+
color: 'inherit',
|
|
3828
|
+
_hover: {
|
|
3829
|
+
color: 'inherit'
|
|
3830
|
+
}
|
|
3831
|
+
}, sizeStyles, views == null ? void 0 : views.content), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
|
|
3832
|
+
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
3833
|
+
color: 'inherit',
|
|
3834
|
+
_hover: {
|
|
3835
|
+
color: 'inherit'
|
|
3836
|
+
}
|
|
3837
|
+
}, views == null ? void 0 : views.loader))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
3838
|
+
color: 'inherit',
|
|
3839
|
+
_hover: {
|
|
3840
|
+
color: 'inherit'
|
|
3841
|
+
}
|
|
3924
3842
|
}, views == null ? void 0 : views.icon), icon)), children, icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3843
|
+
color: 'inherit',
|
|
3844
|
+
_hover: {
|
|
3845
|
+
color: 'inherit'
|
|
3846
|
+
}
|
|
3929
3847
|
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
|
|
3930
3848
|
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
3931
|
-
color:
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3849
|
+
color: 'inherit',
|
|
3850
|
+
_hover: {
|
|
3851
|
+
color: 'inherit'
|
|
3852
|
+
}
|
|
3853
|
+
}, views == null ? void 0 : views.loader))));
|
|
3935
3854
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3855
|
+
as: variant === 'link' && to ? 'div' : 'button',
|
|
3856
|
+
type: variant === 'link' && to ? undefined : 'button',
|
|
3857
|
+
disabled: Boolean(isDisabled || isLoading)
|
|
3858
|
+
}, sizeStyles, iconPad, {
|
|
3939
3859
|
display: "flex",
|
|
3940
3860
|
alignItems: "center",
|
|
3941
3861
|
justifyContent: "center",
|
|
3942
|
-
|
|
3943
|
-
|
|
3862
|
+
width: isAuto ? 'fit-content' : isFilled ? '100%' : undefined,
|
|
3863
|
+
/* visuals */
|
|
3944
3864
|
borderRadius: ButtonShapes[shape],
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3865
|
+
backgroundColor: base.backgroundColor,
|
|
3866
|
+
color: base.color,
|
|
3867
|
+
borderWidth: base.borderWidth,
|
|
3868
|
+
borderStyle: base.borderStyle,
|
|
3869
|
+
borderColor: base.borderColor,
|
|
3870
|
+
_hover: base._hover,
|
|
3871
|
+
_active: base._active,
|
|
3872
|
+
boxShadow: shadow,
|
|
3949
3873
|
transition: "all 0.2s ease",
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
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({
|
|
3874
|
+
cursor: isDisabled ? 'default' : 'pointer',
|
|
3875
|
+
onClick: onClick
|
|
3876
|
+
}, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
|
|
3961
3877
|
to: to,
|
|
3962
3878
|
isExternal: isExternal,
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
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
|
-
})
|
|
3879
|
+
color: 'inherit',
|
|
3880
|
+
textDecoration: 'inherit',
|
|
3881
|
+
textDecorationColor: 'inherit'
|
|
3979
3882
|
}, views == null ? void 0 : views.link), content)) : content);
|
|
3980
3883
|
};
|
|
3981
3884
|
|
|
@@ -4095,8 +3998,8 @@
|
|
|
4095
3998
|
};
|
|
4096
3999
|
|
|
4097
4000
|
var _excluded$b = ["children", "views", "style", "themeMode"],
|
|
4098
|
-
_excluded2$
|
|
4099
|
-
_excluded3$
|
|
4001
|
+
_excluded2$3 = ["children", "views", "style", "themeMode"],
|
|
4002
|
+
_excluded3$3 = ["children", "views", "style", "themeMode"],
|
|
4100
4003
|
_excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
|
|
4101
4004
|
var CardHeader = _ref => {
|
|
4102
4005
|
var _contextStyles$header;
|
|
@@ -4122,7 +4025,7 @@
|
|
|
4122
4025
|
children,
|
|
4123
4026
|
style
|
|
4124
4027
|
} = _ref2,
|
|
4125
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
4028
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
4126
4029
|
var theme = appStudio.useTheme();
|
|
4127
4030
|
var {
|
|
4128
4031
|
styles: contextStyles
|
|
@@ -4140,7 +4043,7 @@
|
|
|
4140
4043
|
children,
|
|
4141
4044
|
style
|
|
4142
4045
|
} = _ref3,
|
|
4143
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
4046
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
|
|
4144
4047
|
var theme = appStudio.useTheme();
|
|
4145
4048
|
var {
|
|
4146
4049
|
styles: contextStyles
|
|
@@ -4499,8 +4402,8 @@
|
|
|
4499
4402
|
};
|
|
4500
4403
|
|
|
4501
4404
|
var _excluded$c = ["children", "isActive", "views"],
|
|
4502
|
-
_excluded2$
|
|
4503
|
-
_excluded3$
|
|
4405
|
+
_excluded2$4 = ["views", "children"],
|
|
4406
|
+
_excluded3$4 = ["views", "children"],
|
|
4504
4407
|
_excluded4$4 = ["children", "views"],
|
|
4505
4408
|
_excluded5$1 = ["children", "views", "style"],
|
|
4506
4409
|
_excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "stepIndices", "themeMode"];
|
|
@@ -4526,7 +4429,7 @@
|
|
|
4526
4429
|
children // Allow custom content/icon
|
|
4527
4430
|
// Spread remaining ButtonProps
|
|
4528
4431
|
} = _ref2,
|
|
4529
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
4432
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
|
|
4530
4433
|
var {
|
|
4531
4434
|
goToPrevious,
|
|
4532
4435
|
canGoPrevious,
|
|
@@ -4549,7 +4452,7 @@
|
|
|
4549
4452
|
views,
|
|
4550
4453
|
children
|
|
4551
4454
|
} = _ref3,
|
|
4552
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
4455
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
|
|
4553
4456
|
var {
|
|
4554
4457
|
goToNext,
|
|
4555
4458
|
canGoNext,
|
|
@@ -5793,8 +5696,8 @@
|
|
|
5793
5696
|
};
|
|
5794
5697
|
|
|
5795
5698
|
var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
|
|
5796
|
-
_excluded2$
|
|
5797
|
-
_excluded3$
|
|
5699
|
+
_excluded2$5 = ["items", "children", "position", "side", "align", "views", "style"],
|
|
5700
|
+
_excluded3$5 = ["item", "children", "onSelect", "isDisabled", "views"],
|
|
5798
5701
|
_excluded4$5 = ["views"],
|
|
5799
5702
|
_excluded5$2 = ["views"],
|
|
5800
5703
|
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
|
|
@@ -5902,7 +5805,7 @@
|
|
|
5902
5805
|
views,
|
|
5903
5806
|
style // Capture user-provided style
|
|
5904
5807
|
} = _ref3,
|
|
5905
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
5808
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$5);
|
|
5906
5809
|
var {
|
|
5907
5810
|
isOpen,
|
|
5908
5811
|
position: contextPosition,
|
|
@@ -5973,7 +5876,7 @@
|
|
|
5973
5876
|
isDisabled = false,
|
|
5974
5877
|
views
|
|
5975
5878
|
} = _ref4,
|
|
5976
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
5879
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$5);
|
|
5977
5880
|
var {
|
|
5978
5881
|
activeSubmenuId,
|
|
5979
5882
|
setActiveSubmenuId,
|
|
@@ -6199,7 +6102,7 @@
|
|
|
6199
6102
|
ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
|
|
6200
6103
|
|
|
6201
6104
|
var _excluded$g = ["src", "color", "views", "themeMode"],
|
|
6202
|
-
_excluded2$
|
|
6105
|
+
_excluded2$6 = ["path"];
|
|
6203
6106
|
var FileSVG = _ref => {
|
|
6204
6107
|
var {
|
|
6205
6108
|
src,
|
|
@@ -6229,7 +6132,7 @@
|
|
|
6229
6132
|
var {
|
|
6230
6133
|
path
|
|
6231
6134
|
} = _ref2,
|
|
6232
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
6135
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$6);
|
|
6233
6136
|
return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
|
|
6234
6137
|
src: path
|
|
6235
6138
|
}, props));
|
|
@@ -6661,8 +6564,8 @@
|
|
|
6661
6564
|
};
|
|
6662
6565
|
|
|
6663
6566
|
var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
6664
|
-
_excluded2$
|
|
6665
|
-
_excluded3$
|
|
6567
|
+
_excluded2$7 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
6568
|
+
_excluded3$6 = ["option", "size", "removeOption"],
|
|
6666
6569
|
_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
6570
|
/**
|
|
6668
6571
|
* Item Component
|
|
@@ -6779,7 +6682,7 @@
|
|
|
6779
6682
|
isReadOnly = false,
|
|
6780
6683
|
options = []
|
|
6781
6684
|
} = _ref4,
|
|
6782
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$
|
|
6685
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$7);
|
|
6783
6686
|
var handleChange = event => {
|
|
6784
6687
|
if (onChange) onChange(event);
|
|
6785
6688
|
};
|
|
@@ -6882,7 +6785,7 @@
|
|
|
6882
6785
|
size = 'md',
|
|
6883
6786
|
removeOption = () => {}
|
|
6884
6787
|
} = _ref6,
|
|
6885
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$
|
|
6788
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$6);
|
|
6886
6789
|
var handleClick = () => removeOption(option);
|
|
6887
6790
|
return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
6888
6791
|
gap: 8,
|
|
@@ -9414,8 +9317,8 @@
|
|
|
9414
9317
|
};
|
|
9415
9318
|
|
|
9416
9319
|
var _excluded$t = ["size"],
|
|
9417
|
-
_excluded2$
|
|
9418
|
-
_excluded3$
|
|
9320
|
+
_excluded2$8 = ["size"],
|
|
9321
|
+
_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
9322
|
var CountryList = _ref => {
|
|
9420
9323
|
var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
9421
9324
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
@@ -9426,7 +9329,7 @@
|
|
|
9426
9329
|
type: "country"
|
|
9427
9330
|
}, props)));
|
|
9428
9331
|
var CountryItem = _ref2 => {
|
|
9429
|
-
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
9332
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$8);
|
|
9430
9333
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
9431
9334
|
as: "li"
|
|
9432
9335
|
}, props));
|
|
@@ -9528,7 +9431,7 @@
|
|
|
9528
9431
|
},
|
|
9529
9432
|
themeMode: elementMode
|
|
9530
9433
|
} = _ref5,
|
|
9531
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$
|
|
9434
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$7);
|
|
9532
9435
|
var {
|
|
9533
9436
|
getColor,
|
|
9534
9437
|
themeMode
|
|
@@ -9779,7 +9682,7 @@
|
|
|
9779
9682
|
};
|
|
9780
9683
|
|
|
9781
9684
|
var _excluded$v = ["visibleIcon", "hiddenIcon"],
|
|
9782
|
-
_excluded2$
|
|
9685
|
+
_excluded2$9 = ["isVisible", "setIsVisible"];
|
|
9783
9686
|
var PasswordComponent = _ref => {
|
|
9784
9687
|
var {
|
|
9785
9688
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -9795,7 +9698,7 @@
|
|
|
9795
9698
|
isVisible,
|
|
9796
9699
|
setIsVisible
|
|
9797
9700
|
} = _usePasswordState,
|
|
9798
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
9701
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$9);
|
|
9799
9702
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
9800
9703
|
type: isVisible ? 'text' : 'password',
|
|
9801
9704
|
isClearable: false,
|
|
@@ -10828,7 +10731,7 @@
|
|
|
10828
10731
|
var FormikTextField = TextFieldComponent$1;
|
|
10829
10732
|
|
|
10830
10733
|
var _excluded$D = ["visibleIcon", "hiddenIcon"],
|
|
10831
|
-
_excluded2$
|
|
10734
|
+
_excluded2$a = ["isVisible", "setIsVisible"];
|
|
10832
10735
|
var PasswordComponent$1 = _ref => {
|
|
10833
10736
|
var {
|
|
10834
10737
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -10845,7 +10748,7 @@
|
|
|
10845
10748
|
isVisible,
|
|
10846
10749
|
setIsVisible
|
|
10847
10750
|
} = _usePasswordState,
|
|
10848
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
10751
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
|
|
10849
10752
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
10850
10753
|
type: isVisible ? 'text' : 'password',
|
|
10851
10754
|
isClearable: false,
|
|
@@ -12277,8 +12180,8 @@
|
|
|
12277
12180
|
};
|
|
12278
12181
|
|
|
12279
12182
|
var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
12280
|
-
_excluded2$
|
|
12281
|
-
_excluded3$
|
|
12183
|
+
_excluded2$b = ["children", "shadow", "isFullScreen", "shape", "views", "isOpen"],
|
|
12184
|
+
_excluded3$8 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
12282
12185
|
_excluded4$7 = ["children", "views"],
|
|
12283
12186
|
_excluded5$3 = ["children", "views"];
|
|
12284
12187
|
var ModalOverlay = _ref => {
|
|
@@ -12327,7 +12230,7 @@
|
|
|
12327
12230
|
shape = 'rounded',
|
|
12328
12231
|
views
|
|
12329
12232
|
} = _ref2,
|
|
12330
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
12233
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$b);
|
|
12331
12234
|
var defaultShadow = typeof document !== undefined ? {
|
|
12332
12235
|
boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
|
|
12333
12236
|
} : {
|
|
@@ -12360,7 +12263,7 @@
|
|
|
12360
12263
|
buttonPosition = 'right',
|
|
12361
12264
|
views
|
|
12362
12265
|
} = _ref3,
|
|
12363
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
12266
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$8);
|
|
12364
12267
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
12365
12268
|
var buttonIcon = /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
12366
12269
|
onClick: onClose
|
|
@@ -13837,8 +13740,8 @@
|
|
|
13837
13740
|
};
|
|
13838
13741
|
|
|
13839
13742
|
var _excluded$M = ["children", "views"],
|
|
13840
|
-
_excluded2$
|
|
13841
|
-
_excluded3$
|
|
13743
|
+
_excluded2$c = ["items", "side", "align", "views"],
|
|
13744
|
+
_excluded3$9 = ["item", "views"],
|
|
13842
13745
|
_excluded4$8 = ["views"],
|
|
13843
13746
|
_excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
|
|
13844
13747
|
// Create context for the DropdownMenu
|
|
@@ -13899,7 +13802,7 @@
|
|
|
13899
13802
|
align = 'start',
|
|
13900
13803
|
views
|
|
13901
13804
|
} = _ref3,
|
|
13902
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
13805
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$c);
|
|
13903
13806
|
var {
|
|
13904
13807
|
isOpen,
|
|
13905
13808
|
//activeSubmenuId, setActiveSubmenuId, size,
|
|
@@ -13935,7 +13838,7 @@
|
|
|
13935
13838
|
item,
|
|
13936
13839
|
views
|
|
13937
13840
|
} = _ref4,
|
|
13938
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
13841
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$9);
|
|
13939
13842
|
var {
|
|
13940
13843
|
activeSubmenuId,
|
|
13941
13844
|
setActiveSubmenuId,
|
|
@@ -13984,8 +13887,8 @@
|
|
|
13984
13887
|
}, item.label), hasSubmenu && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
13985
13888
|
marginLeft: 8
|
|
13986
13889
|
}, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React__default.createElement("svg", {
|
|
13987
|
-
width: "
|
|
13988
|
-
height: "
|
|
13890
|
+
width: "16px",
|
|
13891
|
+
height: "16px",
|
|
13989
13892
|
viewBox: "0 0 24 24",
|
|
13990
13893
|
fill: "none",
|
|
13991
13894
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -14248,7 +14151,7 @@
|
|
|
14248
14151
|
};
|
|
14249
14152
|
|
|
14250
14153
|
var _excluded$O = ["children", "views", "asChild"],
|
|
14251
|
-
_excluded2$
|
|
14154
|
+
_excluded2$d = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
14252
14155
|
// Create context for the HoverCard
|
|
14253
14156
|
var HoverCardContext = /*#__PURE__*/React.createContext({
|
|
14254
14157
|
isOpen: false,
|
|
@@ -14334,7 +14237,7 @@
|
|
|
14334
14237
|
minWidth = '200px',
|
|
14335
14238
|
maxWidth = '300px'
|
|
14336
14239
|
} = _ref3,
|
|
14337
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
14240
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$d);
|
|
14338
14241
|
var {
|
|
14339
14242
|
isOpen,
|
|
14340
14243
|
cancelCloseTimer,
|
|
@@ -15397,8 +15300,8 @@
|
|
|
15397
15300
|
};
|
|
15398
15301
|
|
|
15399
15302
|
var _excluded$V = ["children", "showToggleButton", "views"],
|
|
15400
|
-
_excluded2$
|
|
15401
|
-
_excluded3$
|
|
15303
|
+
_excluded2$e = ["children", "views"],
|
|
15304
|
+
_excluded3$a = ["children", "views"],
|
|
15402
15305
|
_excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
15403
15306
|
// Create context for the Sidebar
|
|
15404
15307
|
var SidebarContext = /*#__PURE__*/React.createContext({
|
|
@@ -15496,7 +15399,7 @@
|
|
|
15496
15399
|
children,
|
|
15497
15400
|
views
|
|
15498
15401
|
} = _ref3,
|
|
15499
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
15402
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$e);
|
|
15500
15403
|
var {
|
|
15501
15404
|
isExpanded
|
|
15502
15405
|
} = useSidebarContext();
|
|
@@ -15514,7 +15417,7 @@
|
|
|
15514
15417
|
children,
|
|
15515
15418
|
views
|
|
15516
15419
|
} = _ref4,
|
|
15517
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
15420
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$a);
|
|
15518
15421
|
var {
|
|
15519
15422
|
isExpanded
|
|
15520
15423
|
} = useSidebarContext();
|
|
@@ -16072,8 +15975,8 @@
|
|
|
16072
15975
|
};
|
|
16073
15976
|
|
|
16074
15977
|
var _excluded$X = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
16075
|
-
_excluded2$
|
|
16076
|
-
_excluded3$
|
|
15978
|
+
_excluded2$f = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
15979
|
+
_excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
16077
15980
|
// Create context for the Resizable component
|
|
16078
15981
|
var ResizableContext = /*#__PURE__*/React.createContext({
|
|
16079
15982
|
orientation: 'horizontal',
|
|
@@ -16180,7 +16083,7 @@
|
|
|
16180
16083
|
collapseTarget,
|
|
16181
16084
|
views
|
|
16182
16085
|
} = _ref3,
|
|
16183
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
16086
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$f);
|
|
16184
16087
|
var {
|
|
16185
16088
|
orientation,
|
|
16186
16089
|
size,
|
|
@@ -16320,7 +16223,7 @@
|
|
|
16320
16223
|
containerRef,
|
|
16321
16224
|
views
|
|
16322
16225
|
} = _ref4,
|
|
16323
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
16226
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
|
|
16324
16227
|
var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
|
|
16325
16228
|
return /*#__PURE__*/React__default.createElement(Container, Object.assign({
|
|
16326
16229
|
ref: containerRef,
|
|
@@ -17120,8 +17023,8 @@
|
|
|
17120
17023
|
};
|
|
17121
17024
|
|
|
17122
17025
|
var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
|
|
17123
|
-
_excluded2$
|
|
17124
|
-
_excluded3$
|
|
17026
|
+
_excluded2$g = ["children", "views"],
|
|
17027
|
+
_excluded3$c = ["heading", "children", "views"],
|
|
17125
17028
|
_excluded4$a = ["item", "selected", "onSelect", "views"],
|
|
17126
17029
|
_excluded5$5 = ["children", "views"],
|
|
17127
17030
|
_excluded6$3 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "emptyState", "footer", "search", "setSearch", "selectedIndex", "setSelectedIndex", "filteredCommands", "filteredGroups", "listRef", "views", "filter"];
|
|
@@ -17183,7 +17086,7 @@
|
|
|
17183
17086
|
children,
|
|
17184
17087
|
views
|
|
17185
17088
|
} = _ref3,
|
|
17186
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
17089
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$g);
|
|
17187
17090
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
|
|
17188
17091
|
};
|
|
17189
17092
|
// Command Group component
|
|
@@ -17193,7 +17096,7 @@
|
|
|
17193
17096
|
children,
|
|
17194
17097
|
views
|
|
17195
17098
|
} = _ref4,
|
|
17196
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
17099
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
|
|
17197
17100
|
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
17101
|
};
|
|
17199
17102
|
// Command Item component
|
|
@@ -17640,8 +17543,8 @@
|
|
|
17640
17543
|
};
|
|
17641
17544
|
|
|
17642
17545
|
var _excluded$$ = ["children", "views", "asChild"],
|
|
17643
|
-
_excluded2$
|
|
17644
|
-
_excluded3$
|
|
17546
|
+
_excluded2$h = ["children", "views"],
|
|
17547
|
+
_excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
17645
17548
|
// Create context for the Tooltip
|
|
17646
17549
|
var TooltipContext = /*#__PURE__*/React.createContext({
|
|
17647
17550
|
isOpen: false,
|
|
@@ -17711,7 +17614,7 @@
|
|
|
17711
17614
|
children,
|
|
17712
17615
|
views
|
|
17713
17616
|
} = _ref3,
|
|
17714
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
17617
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
|
|
17715
17618
|
var {
|
|
17716
17619
|
isOpen,
|
|
17717
17620
|
contentRef,
|
|
@@ -17741,7 +17644,7 @@
|
|
|
17741
17644
|
showArrow = true,
|
|
17742
17645
|
views
|
|
17743
17646
|
} = _ref4,
|
|
17744
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
17647
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
|
|
17745
17648
|
var {
|
|
17746
17649
|
isOpen,
|
|
17747
17650
|
// openTooltip,
|