@plaidev/karte-action-sdk 1.1.260-28971692.91de26ce → 1.1.260-28976393.2b8b0962
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.d.ts +176 -27
- package/dist/hydrate/index.es.js +233 -148
- package/dist/index.es.d.ts +176 -27
- package/dist/index.es.js +233 -148
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { writable, get } from 'svelte/store';
|
2
|
-
import { onMount as onMount$1, onDestroy as onDestroy$1, beforeUpdate as beforeUpdate$1, afterUpdate as afterUpdate$1, tick as tick$1,
|
2
|
+
import { onMount as onMount$1, onDestroy as onDestroy$1, beforeUpdate as beforeUpdate$1, afterUpdate as afterUpdate$1, tick as tick$1, getContext, setContext, createEventDispatcher } from 'svelte';
|
3
3
|
import { SvelteComponent, init, safe_not_equal, element, insert, noop, detach, component_subscribe, attr, create_slot, create_component, space, mount_component, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, append_styles, empty, group_outros, check_outros, null_to_empty, listen, assign, set_attributes, toggle_class, get_spread_update, prevent_default, is_function, add_render_callback, create_in_transition, binding_callbacks, set_style, svg_element, append, destroy_each, text, set_data, src_url_equal, set_store_value, run_all, HtmlTag, construct_svelte_component, subscribe, set_custom_element_data_map } from 'svelte/internal';
|
4
4
|
import { linear, elasticOut, cubicOut } from 'svelte/easing';
|
5
5
|
|
@@ -2998,6 +2998,38 @@ class Header extends SvelteComponent {
|
|
2998
2998
|
}
|
2999
2999
|
}
|
3000
3000
|
|
3001
|
+
const BRAND_KIT_DEFAULT = {
|
3002
|
+
font_family: 'sans-serif, serif, monospace, system-ui',
|
3003
|
+
color_text_primary: '#222222',
|
3004
|
+
color_text_secondary: '#555555',
|
3005
|
+
color_brand: '#33403e',
|
3006
|
+
color_link: '#1558d6',
|
3007
|
+
color_danger: '#f44336',
|
3008
|
+
color_warning: '#ffa726',
|
3009
|
+
color_success: '#10b981',
|
3010
|
+
color_info: '#29b6f6',
|
3011
|
+
color_white: '#FFFFFF',
|
3012
|
+
};
|
3013
|
+
const getBrandKit = (customBrandKit) => {
|
3014
|
+
return {
|
3015
|
+
font_family: customBrandKit?.font_family ?? BRAND_KIT_DEFAULT.font_family,
|
3016
|
+
color_text_primary: customBrandKit?.color_text_primary ?? BRAND_KIT_DEFAULT.color_text_primary,
|
3017
|
+
color_text_secondary: customBrandKit?.color_text_secondary ?? BRAND_KIT_DEFAULT.color_text_secondary,
|
3018
|
+
color_brand: customBrandKit?.color_brand ?? BRAND_KIT_DEFAULT.color_brand,
|
3019
|
+
color_link: customBrandKit?.color_link ?? BRAND_KIT_DEFAULT.color_link,
|
3020
|
+
color_danger: customBrandKit?.color_danger ?? BRAND_KIT_DEFAULT.color_danger,
|
3021
|
+
color_warning: customBrandKit?.color_warning ?? BRAND_KIT_DEFAULT.color_warning,
|
3022
|
+
color_success: customBrandKit?.color_success ?? BRAND_KIT_DEFAULT.color_success,
|
3023
|
+
color_info: customBrandKit?.color_info ?? BRAND_KIT_DEFAULT.color_info,
|
3024
|
+
color_white: customBrandKit?.color_white ?? BRAND_KIT_DEFAULT.color_white,
|
3025
|
+
};
|
3026
|
+
};
|
3027
|
+
const useBrandKit = () => {
|
3028
|
+
return {
|
3029
|
+
brandKit: (getContext('brandKit') || getBrandKit()),
|
3030
|
+
};
|
3031
|
+
};
|
3032
|
+
|
3001
3033
|
/* src/components/State.svelte generated by Svelte v3.53.1 */
|
3002
3034
|
|
3003
3035
|
function create_fragment$1g(ctx) {
|
@@ -3005,8 +3037,8 @@ function create_fragment$1g(ctx) {
|
|
3005
3037
|
let t;
|
3006
3038
|
let current;
|
3007
3039
|
header = new Header({});
|
3008
|
-
const default_slot_template = /*#slots*/ ctx[
|
3009
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
3040
|
+
const default_slot_template = /*#slots*/ ctx[2].default;
|
3041
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[1], null);
|
3010
3042
|
|
3011
3043
|
return {
|
3012
3044
|
c() {
|
@@ -3026,15 +3058,15 @@ function create_fragment$1g(ctx) {
|
|
3026
3058
|
},
|
3027
3059
|
p(ctx, [dirty]) {
|
3028
3060
|
if (default_slot) {
|
3029
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
3061
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 2)) {
|
3030
3062
|
update_slot_base(
|
3031
3063
|
default_slot,
|
3032
3064
|
default_slot_template,
|
3033
3065
|
ctx,
|
3034
|
-
/*$$scope*/ ctx[
|
3066
|
+
/*$$scope*/ ctx[1],
|
3035
3067
|
!current
|
3036
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
3037
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
3068
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[1])
|
3069
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[1], dirty, null),
|
3038
3070
|
null
|
3039
3071
|
);
|
3040
3072
|
}
|
@@ -3061,18 +3093,21 @@ function create_fragment$1g(ctx) {
|
|
3061
3093
|
|
3062
3094
|
function instance$1g($$self, $$props, $$invalidate) {
|
3063
3095
|
let { $$slots: slots = {}, $$scope } = $$props;
|
3096
|
+
let { customBrandKit = undefined } = $$props;
|
3097
|
+
setContext('brandKit', getBrandKit(customBrandKit));
|
3064
3098
|
|
3065
3099
|
$$self.$$set = $$props => {
|
3066
|
-
if ('
|
3100
|
+
if ('customBrandKit' in $$props) $$invalidate(0, customBrandKit = $$props.customBrandKit);
|
3101
|
+
if ('$$scope' in $$props) $$invalidate(1, $$scope = $$props.$$scope);
|
3067
3102
|
};
|
3068
3103
|
|
3069
|
-
return [$$scope, slots];
|
3104
|
+
return [customBrandKit, $$scope, slots];
|
3070
3105
|
}
|
3071
3106
|
|
3072
3107
|
class State extends SvelteComponent {
|
3073
3108
|
constructor(options) {
|
3074
3109
|
super();
|
3075
|
-
init(this, options, instance$1g, create_fragment$1g, safe_not_equal, {});
|
3110
|
+
init(this, options, instance$1g, create_fragment$1g, safe_not_equal, { customBrandKit: 0 });
|
3076
3111
|
}
|
3077
3112
|
}
|
3078
3113
|
|
@@ -11287,6 +11322,23 @@ const ROUND_VARIANT = {
|
|
11287
11322
|
fulled: 'Full (100%)',
|
11288
11323
|
};
|
11289
11324
|
|
11325
|
+
const AVATAR_SIZE = {
|
11326
|
+
extra_small: 'XS(48 x 48)',
|
11327
|
+
small: 'S(64 x 64)',
|
11328
|
+
medium: 'M(88 x 88)',
|
11329
|
+
large: 'L(108 x 108)',
|
11330
|
+
extra_large: 'XL(128 x 128)',
|
11331
|
+
};
|
11332
|
+
const AVATAR_SHAPE = {
|
11333
|
+
circle: 'サークル',
|
11334
|
+
square: 'スクエア',
|
11335
|
+
rounded: 'ラウンド',
|
11336
|
+
};
|
11337
|
+
const avatarPropsDefault = {
|
11338
|
+
size: 'medium',
|
11339
|
+
shape: 'circle',
|
11340
|
+
};
|
11341
|
+
|
11290
11342
|
const toHyphenCase = (str) => {
|
11291
11343
|
let result = str.replace(/_/g, '-');
|
11292
11344
|
result = result.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
@@ -11452,13 +11504,36 @@ const useInjectCustomizeCss = (props) => {
|
|
11452
11504
|
});
|
11453
11505
|
};
|
11454
11506
|
|
11507
|
+
const AVATAR_SIZE_STYLES = {
|
11508
|
+
extra_small: {
|
11509
|
+
width: '48px',
|
11510
|
+
height: '48px',
|
11511
|
+
},
|
11512
|
+
small: {
|
11513
|
+
width: '64px',
|
11514
|
+
height: '64px',
|
11515
|
+
},
|
11516
|
+
medium: {
|
11517
|
+
width: '88px',
|
11518
|
+
height: '88px',
|
11519
|
+
},
|
11520
|
+
large: {
|
11521
|
+
width: '108px',
|
11522
|
+
height: '108px',
|
11523
|
+
},
|
11524
|
+
extra_large: {
|
11525
|
+
width: '128px',
|
11526
|
+
height: '128px',
|
11527
|
+
},
|
11528
|
+
};
|
11529
|
+
|
11455
11530
|
/* src/components-flex/avatar/Avatar.svelte generated by Svelte v3.53.1 */
|
11456
11531
|
|
11457
11532
|
function add_css$d(target) {
|
11458
|
-
append_styles(target, "svelte-
|
11533
|
+
append_styles(target, "svelte-1krsdyx", ".avatar.svelte-1krsdyx{display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;border:0}");
|
11459
11534
|
}
|
11460
11535
|
|
11461
|
-
// (
|
11536
|
+
// (42:0) <svelte:element {...attributes} this={element} class="avatar" style={style} data-layer-id={layerId} on:click={handleClick} >
|
11462
11537
|
function create_dynamic_element$8(ctx) {
|
11463
11538
|
let svelte_element;
|
11464
11539
|
let img;
|
@@ -11485,7 +11560,7 @@ function create_dynamic_element$8(ctx) {
|
|
11485
11560
|
svelte_element = element(/*element*/ ctx[5]);
|
11486
11561
|
img = element("img");
|
11487
11562
|
if (!src_url_equal(img.src, img_src_value = /*props*/ ctx[0].image)) attr(img, "src", img_src_value);
|
11488
|
-
attr(img, "class", "avatar-image svelte-
|
11563
|
+
attr(img, "class", "avatar-image svelte-1krsdyx");
|
11489
11564
|
attr(img, "alt", img_alt_value = /*props*/ ctx[0].alt);
|
11490
11565
|
attr(img, "style", /*imgStyle*/ ctx[2]);
|
11491
11566
|
|
@@ -11495,7 +11570,7 @@ function create_dynamic_element$8(ctx) {
|
|
11495
11570
|
set_attributes(svelte_element, svelte_element_data);
|
11496
11571
|
}
|
11497
11572
|
|
11498
|
-
toggle_class(svelte_element, "svelte-
|
11573
|
+
toggle_class(svelte_element, "svelte-1krsdyx", true);
|
11499
11574
|
},
|
11500
11575
|
m(target, anchor) {
|
11501
11576
|
insert(target, svelte_element, anchor);
|
@@ -11532,7 +11607,7 @@ function create_dynamic_element$8(ctx) {
|
|
11532
11607
|
set_attributes(svelte_element, svelte_element_data);
|
11533
11608
|
}
|
11534
11609
|
|
11535
|
-
toggle_class(svelte_element, "svelte-
|
11610
|
+
toggle_class(svelte_element, "svelte-1krsdyx", true);
|
11536
11611
|
},
|
11537
11612
|
d(detaching) {
|
11538
11613
|
if (detaching) detach(svelte_element);
|
@@ -11594,15 +11669,21 @@ function instance$I($$self, $$props, $$invalidate) {
|
|
11594
11669
|
useInjectCustomizeCss(props);
|
11595
11670
|
const { attributes, element, handleClick } = useClickable(props);
|
11596
11671
|
|
11672
|
+
const avatarSizeStyle = !isNaN(Number(props.size))
|
11673
|
+
? {
|
11674
|
+
width: `${props.size}px`,
|
11675
|
+
height: `${props.size}px`
|
11676
|
+
}
|
11677
|
+
: AVATAR_SIZE_STYLES[props.size] || AVATAR_SIZE_STYLES[avatarPropsDefault.size];
|
11678
|
+
|
11597
11679
|
const VARIANTS = {
|
11598
11680
|
shape: {
|
11599
11681
|
circle: { borderRadius: '100%' },
|
11600
|
-
square: { borderRadius: '
|
11682
|
+
square: { borderRadius: '0.25em' },
|
11683
|
+
rounded: { borderRadius: '1em' }
|
11601
11684
|
}
|
11602
11685
|
};
|
11603
11686
|
|
11604
|
-
const size = props.size ?? 64;
|
11605
|
-
|
11606
11687
|
$$self.$$set = $$props => {
|
11607
11688
|
if ('props' in $$props) $$invalidate(0, props = $$props.props);
|
11608
11689
|
if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
|
@@ -11611,9 +11692,9 @@ function instance$I($$self, $$props, $$invalidate) {
|
|
11611
11692
|
$$self.$$.update = () => {
|
11612
11693
|
if ($$self.$$.dirty & /*props*/ 1) {
|
11613
11694
|
$$invalidate(3, style = objToStyle({
|
11614
|
-
width: `${size}px`,
|
11615
|
-
height: `${size}px`,
|
11616
11695
|
...VARIANTS.shape[props.shape ?? 'square'],
|
11696
|
+
width: props.width ?? avatarSizeStyle.width,
|
11697
|
+
height: props.height ?? avatarSizeStyle.height,
|
11617
11698
|
...toCssCommon(props),
|
11618
11699
|
...toCssBorder(props)
|
11619
11700
|
}));
|
@@ -11636,18 +11717,6 @@ class Avatar extends SvelteComponent {
|
|
11636
11717
|
}
|
11637
11718
|
}
|
11638
11719
|
|
11639
|
-
const AVATAR_SIZE = {
|
11640
|
-
extra_small: 'XS(48 x 48)',
|
11641
|
-
small: 'S(64 x 64)',
|
11642
|
-
medium: 'M(88 x 88)',
|
11643
|
-
large: 'L(108 x 108)',
|
11644
|
-
extra_large: 'XL(128 x 128)',
|
11645
|
-
};
|
11646
|
-
const AVATAR_SHAPE = {
|
11647
|
-
circle: 'サークル',
|
11648
|
-
square: 'スクエア',
|
11649
|
-
};
|
11650
|
-
|
11651
11720
|
const BUTTON_SIZE = {
|
11652
11721
|
extra_small: 'XSmall',
|
11653
11722
|
small: 'Small',
|
@@ -13549,39 +13618,43 @@ class Icon extends SvelteComponent {
|
|
13549
13618
|
}
|
13550
13619
|
}
|
13551
13620
|
|
13552
|
-
const
|
13553
|
-
|
13554
|
-
|
13555
|
-
|
13556
|
-
|
13557
|
-
},
|
13558
|
-
text_secondary: {
|
13559
|
-
main: '#555555',
|
13560
|
-
},
|
13561
|
-
brand: {
|
13562
|
-
main: '#33403e',
|
13563
|
-
},
|
13564
|
-
link: {
|
13565
|
-
main: '#1558d6',
|
13566
|
-
},
|
13567
|
-
danger: {
|
13568
|
-
main: '#f44336',
|
13569
|
-
},
|
13570
|
-
warning: {
|
13571
|
-
main: '#ffa726',
|
13572
|
-
},
|
13573
|
-
success: {
|
13574
|
-
main: '#10b981',
|
13575
|
-
},
|
13576
|
-
info: {
|
13577
|
-
main: '#29b6f6',
|
13578
|
-
},
|
13579
|
-
white: {
|
13580
|
-
main: '#FFFFFF',
|
13581
|
-
},
|
13582
|
-
},
|
13621
|
+
const getPropStyles = (callback) => {
|
13622
|
+
return (customBrandKit) => {
|
13623
|
+
const brandKit = getBrandKit(customBrandKit);
|
13624
|
+
return callback({ brandKit });
|
13625
|
+
};
|
13583
13626
|
};
|
13584
13627
|
|
13628
|
+
const getButtonThemeStyles = getPropStyles(({ brandKit }) => ({
|
13629
|
+
default: {
|
13630
|
+
backgroundColor: brandKit.color_brand,
|
13631
|
+
color: '#FFFFFF',
|
13632
|
+
},
|
13633
|
+
general: {
|
13634
|
+
backgroundColor: '#e8e8e8',
|
13635
|
+
color: 'rgba(0, 16, 14, 0.7)',
|
13636
|
+
},
|
13637
|
+
success: {
|
13638
|
+
backgroundColor: brandKit.color_success,
|
13639
|
+
color: '#ffffff',
|
13640
|
+
},
|
13641
|
+
warning: {
|
13642
|
+
backgroundColor: brandKit.color_warning,
|
13643
|
+
color: '#ffffff',
|
13644
|
+
},
|
13645
|
+
danger: {
|
13646
|
+
backgroundColor: brandKit.color_danger,
|
13647
|
+
color: '#FFFFFF',
|
13648
|
+
},
|
13649
|
+
info: {
|
13650
|
+
backgroundColor: brandKit.color_info,
|
13651
|
+
color: '#FFFFFF',
|
13652
|
+
},
|
13653
|
+
white: {
|
13654
|
+
backgroundColor: '#FFFFFF',
|
13655
|
+
color: brandKit.color_text_primary,
|
13656
|
+
},
|
13657
|
+
}));
|
13585
13658
|
const BUTTON_SIZE_STYLES = {
|
13586
13659
|
extra_small: {
|
13587
13660
|
height: '32px',
|
@@ -13614,35 +13687,37 @@ const BUTTON_SIZE_STYLES = {
|
|
13614
13687
|
fontSize: '16px',
|
13615
13688
|
},
|
13616
13689
|
};
|
13617
|
-
const BUTTON_THEME_STYLES = {
|
13618
|
-
|
13619
|
-
|
13620
|
-
|
13621
|
-
|
13622
|
-
|
13623
|
-
|
13624
|
-
|
13625
|
-
|
13626
|
-
|
13627
|
-
|
13628
|
-
|
13629
|
-
|
13630
|
-
|
13631
|
-
|
13632
|
-
|
13633
|
-
|
13634
|
-
|
13635
|
-
|
13636
|
-
|
13637
|
-
|
13638
|
-
|
13639
|
-
|
13640
|
-
|
13641
|
-
|
13642
|
-
|
13643
|
-
|
13644
|
-
|
13645
|
-
|
13690
|
+
const BUTTON_THEME_STYLES = () => {
|
13691
|
+
return {
|
13692
|
+
default: {
|
13693
|
+
backgroundColor: getBrandKit().color_brand,
|
13694
|
+
color: '#FFFFFF',
|
13695
|
+
},
|
13696
|
+
general: {
|
13697
|
+
backgroundColor: '#e8e8e8',
|
13698
|
+
color: 'rgba(0, 16, 14, 0.7)',
|
13699
|
+
},
|
13700
|
+
success: {
|
13701
|
+
backgroundColor: getBrandKit().color_success,
|
13702
|
+
color: '#ffffff',
|
13703
|
+
},
|
13704
|
+
warning: {
|
13705
|
+
backgroundColor: getBrandKit().color_warning,
|
13706
|
+
color: '#ffffff',
|
13707
|
+
},
|
13708
|
+
danger: {
|
13709
|
+
backgroundColor: getBrandKit().color_danger,
|
13710
|
+
color: '#FFFFFF',
|
13711
|
+
},
|
13712
|
+
info: {
|
13713
|
+
backgroundColor: getBrandKit().color_info,
|
13714
|
+
color: '#FFFFFF',
|
13715
|
+
},
|
13716
|
+
white: {
|
13717
|
+
backgroundColor: '#FFFFFF',
|
13718
|
+
color: getBrandKit().color_text_primary,
|
13719
|
+
},
|
13720
|
+
};
|
13646
13721
|
};
|
13647
13722
|
const BUTTON_ROUND_STYLES = {
|
13648
13723
|
none: {
|
@@ -13716,7 +13791,7 @@ function add_css$b(target) {
|
|
13716
13791
|
append_styles(target, "svelte-1ix4ul", ".button.svelte-1ix4ul{display:inline-flex;gap:0.65em;align-items:center;justify-content:center;text-decoration:none;outline:0;border:0;line-height:1.5;transition:background-color 0.12s, border-color 0.12s, color 0.12s;cursor:pointer;background-color:var(--bg-color)}.button.svelte-1ix4ul:hover{background-color:var(--hover-bg-color)}.button-icon.svelte-1ix4ul{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em;margin-bottom:0.1em}");
|
13717
13792
|
}
|
13718
13793
|
|
13719
|
-
// (
|
13794
|
+
// (52:2) {#if props.isIcon && props.iconVariant}
|
13720
13795
|
function create_if_block$6(ctx) {
|
13721
13796
|
let div;
|
13722
13797
|
let icon;
|
@@ -13772,7 +13847,7 @@ function create_if_block$6(ctx) {
|
|
13772
13847
|
};
|
13773
13848
|
}
|
13774
13849
|
|
13775
|
-
// (
|
13850
|
+
// (44:0) <svelte:element {...attributes} this={element} class="button" style={style} data-layer-id={layerId} on:click={handleClick} >
|
13776
13851
|
function create_dynamic_element$6(ctx) {
|
13777
13852
|
let svelte_element;
|
13778
13853
|
let t0;
|
@@ -13939,7 +14014,9 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
13939
14014
|
let { layerId = '' } = $$props;
|
13940
14015
|
useInjectCustomizeCss(props);
|
13941
14016
|
const { attributes, element, handleClick } = useClickable(props);
|
13942
|
-
const
|
14017
|
+
const { brandKit } = useBrandKit();
|
14018
|
+
const buttonThemeStyles = getButtonThemeStyles(brandKit);
|
14019
|
+
const buttonThemeStyle = buttonThemeStyles[props.theme] || buttonThemeStyles[buttonPropsDefault.theme];
|
13943
14020
|
const buttonSizeStyle = BUTTON_SIZE_STYLES[props.size] || BUTTON_SIZE_STYLES[buttonPropsDefault.size];
|
13944
14021
|
|
13945
14022
|
$$self.$$set = $$props => {
|
@@ -14037,35 +14114,35 @@ const BUTTON_OUTLINED_SIZE_STYLES = {
|
|
14037
14114
|
fontSize: '16px',
|
14038
14115
|
},
|
14039
14116
|
};
|
14040
|
-
const
|
14117
|
+
const getButtonOutlinedThemeStyles = getPropStyles(({ brandKit }) => ({
|
14041
14118
|
default: {
|
14042
|
-
color:
|
14043
|
-
borderColor:
|
14119
|
+
color: brandKit.color_brand,
|
14120
|
+
borderColor: brandKit.color_brand,
|
14044
14121
|
backgroundColor: '#FFFFFF',
|
14045
14122
|
},
|
14046
14123
|
general: {
|
14047
|
-
color:
|
14048
|
-
borderColor:
|
14124
|
+
color: brandKit.color_text_secondary,
|
14125
|
+
borderColor: brandKit.color_text_secondary,
|
14049
14126
|
backgroundColor: '#FFFFFF',
|
14050
14127
|
},
|
14051
14128
|
success: {
|
14052
|
-
color:
|
14053
|
-
borderColor:
|
14129
|
+
color: brandKit.color_success,
|
14130
|
+
borderColor: brandKit.color_success,
|
14054
14131
|
backgroundColor: '#FFFFFF',
|
14055
14132
|
},
|
14056
14133
|
warning: {
|
14057
|
-
color:
|
14058
|
-
borderColor:
|
14134
|
+
color: brandKit.color_warning,
|
14135
|
+
borderColor: brandKit.color_warning,
|
14059
14136
|
backgroundColor: '#FFFFFF',
|
14060
14137
|
},
|
14061
14138
|
danger: {
|
14062
|
-
color:
|
14063
|
-
borderColor:
|
14139
|
+
color: brandKit.color_danger,
|
14140
|
+
borderColor: brandKit.color_danger,
|
14064
14141
|
backgroundColor: '#FFFFFF',
|
14065
14142
|
},
|
14066
14143
|
info: {
|
14067
|
-
color:
|
14068
|
-
borderColor:
|
14144
|
+
color: brandKit.color_info,
|
14145
|
+
borderColor: brandKit.color_info,
|
14069
14146
|
backgroundColor: '#FFFFFF',
|
14070
14147
|
},
|
14071
14148
|
white: {
|
@@ -14073,7 +14150,7 @@ const BUTTON_OUTLINED_THEME_STYLES = {
|
|
14073
14150
|
borderColor: '#FFFFFF',
|
14074
14151
|
backgroundColor: '#000000',
|
14075
14152
|
},
|
14076
|
-
};
|
14153
|
+
}));
|
14077
14154
|
const BUTTON_OUTLINED_ROUND_STYLES = {
|
14078
14155
|
none: {
|
14079
14156
|
borderRadius: 0,
|
@@ -14100,7 +14177,7 @@ function add_css$a(target) {
|
|
14100
14177
|
append_styles(target, "svelte-38fju1", ".button-outlined.svelte-38fju1{display:inline-flex;gap:0.65em;align-items:center;justify-content:center;text-decoration:none;outline:0;border-width:1px;border-style:solid;line-height:1.5;transition:background-color 0.12s, border-color 0.12s, color 0.12s;cursor:pointer;background-color:var(--bg-color)}.button-outlined.svelte-38fju1:hover{background-color:var(--hover-bg-color)}.button-outlined-icon.svelte-38fju1{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em;margin-bottom:0.1em}");
|
14101
14178
|
}
|
14102
14179
|
|
14103
|
-
// (
|
14180
|
+
// (53:2) {#if props.isIcon && props.iconVariant}
|
14104
14181
|
function create_if_block$5(ctx) {
|
14105
14182
|
let div;
|
14106
14183
|
let icon;
|
@@ -14156,7 +14233,7 @@ function create_if_block$5(ctx) {
|
|
14156
14233
|
};
|
14157
14234
|
}
|
14158
14235
|
|
14159
|
-
// (
|
14236
|
+
// (45:0) <svelte:element {...attributes} this={element} class="button-outlined" style={style} data-layer-id={layerId} on:click={handleClick} >
|
14160
14237
|
function create_dynamic_element$5(ctx) {
|
14161
14238
|
let svelte_element;
|
14162
14239
|
let t0;
|
@@ -14322,8 +14399,10 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
14322
14399
|
let { props = {} } = $$props;
|
14323
14400
|
let { layerId = '' } = $$props;
|
14324
14401
|
useInjectCustomizeCss(props);
|
14402
|
+
const { brandKit } = useBrandKit();
|
14325
14403
|
const { attributes, element, handleClick } = useClickable(props);
|
14326
|
-
const
|
14404
|
+
const buttonThemeStyles = getButtonOutlinedThemeStyles(brandKit);
|
14405
|
+
const buttonThemeStyle = buttonThemeStyles[props.theme ?? buttonOutlinedPropsDefault.theme];
|
14327
14406
|
const buttonSizeStyle = BUTTON_OUTLINED_SIZE_STYLES[props.size ?? buttonOutlinedPropsDefault.size];
|
14328
14407
|
|
14329
14408
|
$$self.$$set = $$props => {
|
@@ -14401,40 +14480,40 @@ const BUTTON_TEXT_SIZE_STYLES = {
|
|
14401
14480
|
fontSize: '16px',
|
14402
14481
|
},
|
14403
14482
|
};
|
14404
|
-
const
|
14483
|
+
const getButtonTextThemeStyles = getPropStyles(({ brandKit }) => ({
|
14405
14484
|
default: {
|
14406
14485
|
backgroundColor: '#f3f4f6',
|
14407
|
-
color:
|
14486
|
+
color: brandKit.color_brand,
|
14408
14487
|
},
|
14409
14488
|
link: {
|
14410
14489
|
backgroundColor: '#f3f4f6',
|
14411
|
-
color:
|
14490
|
+
color: brandKit.color_link,
|
14412
14491
|
},
|
14413
14492
|
general: {
|
14414
14493
|
backgroundColor: '#f3f4f6',
|
14415
|
-
color:
|
14494
|
+
color: brandKit.color_text_primary,
|
14416
14495
|
},
|
14417
14496
|
success: {
|
14418
14497
|
backgroundColor: '#f3f4f6',
|
14419
|
-
color:
|
14498
|
+
color: brandKit.color_success,
|
14420
14499
|
},
|
14421
14500
|
warning: {
|
14422
14501
|
backgroundColor: '#f3f4f6',
|
14423
|
-
color:
|
14502
|
+
color: brandKit.color_warning,
|
14424
14503
|
},
|
14425
14504
|
danger: {
|
14426
14505
|
backgroundColor: '#f3f4f6',
|
14427
|
-
color:
|
14506
|
+
color: brandKit.color_danger,
|
14428
14507
|
},
|
14429
14508
|
info: {
|
14430
14509
|
backgroundColor: '#f3f4f6',
|
14431
|
-
color:
|
14510
|
+
color: brandKit.color_info,
|
14432
14511
|
},
|
14433
14512
|
white: {
|
14434
14513
|
backgroundColor: '#f3f4f6',
|
14435
|
-
color:
|
14514
|
+
color: brandKit.color_white,
|
14436
14515
|
},
|
14437
|
-
};
|
14516
|
+
}));
|
14438
14517
|
|
14439
14518
|
/* src/components-flex/button-text/ButtonText.svelte generated by Svelte v3.53.1 */
|
14440
14519
|
|
@@ -14442,7 +14521,7 @@ function add_css$9(target) {
|
|
14442
14521
|
append_styles(target, "svelte-1xgvp8r", ".button-text.svelte-1xgvp8r{display:inline-flex;gap:0.65em;align-items:center;justify-content:center;text-decoration:none;outline:0;border:0;line-height:1.5;transition:background-color 0.12s, border-color 0.12s, color 0.12s;cursor:pointer;background-color:rgba(255, 255, 255, 0)}.button-text.svelte-1xgvp8r:hover{background-color:var(--hover-bg-color)}.button-text-icon.svelte-1xgvp8r{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em}");
|
14443
14522
|
}
|
14444
14523
|
|
14445
|
-
// (
|
14524
|
+
// (49:2) {#if props.isIcon && props.iconVariant}
|
14446
14525
|
function create_if_block$4(ctx) {
|
14447
14526
|
let div;
|
14448
14527
|
let icon;
|
@@ -14498,7 +14577,7 @@ function create_if_block$4(ctx) {
|
|
14498
14577
|
};
|
14499
14578
|
}
|
14500
14579
|
|
14501
|
-
// (
|
14580
|
+
// (41:0) <svelte:element {...attributes} this={element} class="button-text" style={style} data-layer-id={layerId} on:click={handleClick} >
|
14502
14581
|
function create_dynamic_element$4(ctx) {
|
14503
14582
|
let svelte_element;
|
14504
14583
|
let t0;
|
@@ -14664,8 +14743,10 @@ function instance$9($$self, $$props, $$invalidate) {
|
|
14664
14743
|
let { props = {} } = $$props;
|
14665
14744
|
let { layerId = '' } = $$props;
|
14666
14745
|
useInjectCustomizeCss(props);
|
14746
|
+
const { brandKit } = useBrandKit();
|
14667
14747
|
const { attributes, element, handleClick } = useClickable(props);
|
14668
|
-
const
|
14748
|
+
const themeStyles = getButtonTextThemeStyles(brandKit);
|
14749
|
+
const buttonThemeStyle = themeStyles[props.theme ?? 'default'];
|
14669
14750
|
const buttonSizeStyle = BUTTON_TEXT_SIZE_STYLES[props.size ?? 'medium'];
|
14670
14751
|
|
14671
14752
|
$$self.$$set = $$props => {
|
@@ -15888,32 +15969,32 @@ class Slider extends SvelteComponent {
|
|
15888
15969
|
}
|
15889
15970
|
}
|
15890
15971
|
|
15891
|
-
const
|
15972
|
+
const getTextThemeStyles = getPropStyles(({ brandKit }) => ({
|
15892
15973
|
default: {
|
15893
|
-
color:
|
15974
|
+
color: brandKit.color_text_primary,
|
15894
15975
|
},
|
15895
15976
|
gray: {
|
15896
|
-
color:
|
15977
|
+
color: brandKit.color_text_secondary,
|
15897
15978
|
},
|
15898
15979
|
brand: {
|
15899
|
-
color:
|
15980
|
+
color: brandKit.color_brand,
|
15900
15981
|
},
|
15901
15982
|
success: {
|
15902
|
-
color:
|
15983
|
+
color: brandKit.color_success,
|
15903
15984
|
},
|
15904
15985
|
warning: {
|
15905
|
-
color:
|
15986
|
+
color: brandKit.color_warning,
|
15906
15987
|
},
|
15907
15988
|
danger: {
|
15908
|
-
color:
|
15989
|
+
color: brandKit.color_danger,
|
15909
15990
|
},
|
15910
15991
|
info: {
|
15911
|
-
color:
|
15992
|
+
color: brandKit.color_info,
|
15912
15993
|
},
|
15913
15994
|
white: {
|
15914
|
-
color:
|
15995
|
+
color: brandKit.color_white,
|
15915
15996
|
},
|
15916
|
-
};
|
15997
|
+
}));
|
15917
15998
|
|
15918
15999
|
const TEXT_VARIANTS = {
|
15919
16000
|
size: {
|
@@ -16014,6 +16095,8 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
16014
16095
|
let { props = { content: '' } } = $$props;
|
16015
16096
|
let { layerId = '' } = $$props;
|
16016
16097
|
useInjectCustomizeCss(props);
|
16098
|
+
const { brandKit } = useBrandKit();
|
16099
|
+
const themeStyles = getTextThemeStyles(brandKit);
|
16017
16100
|
|
16018
16101
|
if (props.fontFamily) {
|
16019
16102
|
addFont(props.fontFamily);
|
@@ -16021,7 +16104,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
16021
16104
|
|
16022
16105
|
const getColor = () => {
|
16023
16106
|
if (props.color) return props.color;
|
16024
|
-
if (props.theme) return
|
16107
|
+
if (props.theme) return themeStyles[props.theme].color;
|
16025
16108
|
return undefined;
|
16026
16109
|
};
|
16027
16110
|
|
@@ -16129,26 +16212,26 @@ const TEXT_LINK_SIZE_STYLES = {
|
|
16129
16212
|
fontSize: '16px',
|
16130
16213
|
},
|
16131
16214
|
};
|
16132
|
-
const
|
16215
|
+
const getTextLinkThemeStyles = getPropStyles(({ brandKit }) => ({
|
16133
16216
|
default: {
|
16134
|
-
color:
|
16217
|
+
color: brandKit.color_text_primary,
|
16135
16218
|
},
|
16136
16219
|
link: {
|
16137
|
-
color:
|
16220
|
+
color: brandKit.color_link,
|
16138
16221
|
},
|
16139
16222
|
brand: {
|
16140
|
-
color:
|
16223
|
+
color: brandKit.color_brand,
|
16141
16224
|
},
|
16142
16225
|
alert: {
|
16143
|
-
color:
|
16226
|
+
color: brandKit.color_danger,
|
16144
16227
|
},
|
16145
16228
|
gray: {
|
16146
|
-
color:
|
16229
|
+
color: brandKit.color_text_secondary,
|
16147
16230
|
},
|
16148
16231
|
white: {
|
16149
|
-
color:
|
16232
|
+
color: brandKit.color_white,
|
16150
16233
|
},
|
16151
|
-
};
|
16234
|
+
}));
|
16152
16235
|
|
16153
16236
|
/* src/components-flex/text-link/TextLink.svelte generated by Svelte v3.53.1 */
|
16154
16237
|
|
@@ -16156,7 +16239,7 @@ function add_css$3(target) {
|
|
16156
16239
|
append_styles(target, "svelte-1y4hh01", ".link.svelte-1y4hh01{-webkit-appearance:none;border:0;background:none;padding:0}.link.svelte-1y4hh01,.link.svelte-1y4hh01:visited,.link.svelte-1y4hh01:link{color:var(--color)}.link.svelte-1y4hh01:hover{color:var(--hover-color)}.link.svelte-1y4hh01:active{color:var(--active-color)}.link.underline-hover-on.svelte-1y4hh01{text-decoration:none}.link.underline-hover-on.svelte-1y4hh01:hover{text-decoration:underline}.link.underline-hover-off.svelte-1y4hh01{text-decoration:underline}.link.underline-hover-off.svelte-1y4hh01:hover{text-decoration:none}.link.underline-on.svelte-1y4hh01{text-decoration:underline}.link.underline-off.svelte-1y4hh01{text-decoration:none}");
|
16157
16240
|
}
|
16158
16241
|
|
16159
|
-
// (
|
16242
|
+
// (71:2) {#if props.isIcon && props.iconVariant}
|
16160
16243
|
function create_if_block$2(ctx) {
|
16161
16244
|
let icon;
|
16162
16245
|
let current;
|
@@ -16207,7 +16290,7 @@ function create_if_block$2(ctx) {
|
|
16207
16290
|
};
|
16208
16291
|
}
|
16209
16292
|
|
16210
|
-
// (
|
16293
|
+
// (63:0) <svelte:element {...attributes} this={element} class={`link ${underlineClass}`} style={style} data-layer-id={layerId} on:click={handleClick} >
|
16211
16294
|
function create_dynamic_element(ctx) {
|
16212
16295
|
let svelte_element;
|
16213
16296
|
let t;
|
@@ -16372,8 +16455,10 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
16372
16455
|
let { props = { label: '' } } = $$props;
|
16373
16456
|
let { layerId = '' } = $$props;
|
16374
16457
|
useInjectCustomizeCss(props);
|
16458
|
+
const { brandKit } = useBrandKit();
|
16375
16459
|
const { attributes, element, handleClick } = useClickable({ ...props, element: 'span' });
|
16376
|
-
const
|
16460
|
+
const themeStyles = getTextLinkThemeStyles(brandKit);
|
16461
|
+
const themeStyle = themeStyles[props.theme ?? 'link'];
|
16377
16462
|
const sizeStyle = TEXT_LINK_SIZE_STYLES[props.size ?? 'medium'];
|
16378
16463
|
|
16379
16464
|
const underlineClass = (() => {
|
@@ -17343,4 +17428,4 @@ const ROUND_STYLES = {
|
|
17343
17428
|
},
|
17344
17429
|
};
|
17345
17430
|
|
17346
|
-
export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles,
|
17431
|
+
export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, AVATAR_SIZE_STYLES, Alignments, AnimationStyles, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_ROUND, BUTTON_ROUND_STYLES, BUTTON_SIZE, BUTTON_SIZE_STYLES, BUTTON_TEXT_SIZE, BUTTON_TEXT_SIZE_STYLES, BUTTON_TEXT_THEME, BUTTON_THEME, BUTTON_THEME_STYLES, BUTTON_WRAP_STYLES, BackgroundSizes, Box, CLOSE_BUTTON_LABEL_PLACEMENT, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, ClipPaths, CodeElement, Countdown, Cursors, DefaultEdgePosition, DefaultElasticity, DefaultFormButtonColor, DefaultFormIdentifyBooleanField, DefaultFormIdentifyTextField, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalBreakPoint, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, Avatar as FlexAvatar, Button as FlexButton, ButtonOutlined as FlexButtonOutlined, ButtonText as FlexButtonText, CloseButton as FlexCloseButton, Code as FlexCode, FlexDirections, Icon as FlexIcon, Image as FlexImage, FlexItem, Layout as FlexLayout, Modal as FlexModal, Slider as FlexSlider, Text as FlexText, TextLink as FlexTextLink, Fonts, FormCheckBoxes, FormIdentifyBooleanFields, FormIdentifyChoices, FormIdentifyInput, FormIdentifyTextFieldPlaceholders, FormIdentifyTextFieldValidations, FormIdentifyTextFields, FormRadioButtons, FormRatingButtonsFace, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ICON_SIZE, ICON_SIZE_STYLES, ICON_VARIANTS, IconElement, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LAYER_TEXT_SIZE, LAYOUT_ALIGN, LAYOUT_COMPONENT_NAMES, LAYOUT_DIRECTION, LAYOUT_DISPLAY_TYPE, LAYOUT_JUSTIFY, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal$1 as Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, ROUND_STYLES, ROUND_VARIANT, Repeats, SHADOW_STYLES, SHADOW_VARIANT, SYSTEM_FONT, Slide, SlideItem, State, StateItem, TEXT_LINK_SIZE, TEXT_LINK_SIZE_STYLES, TEXT_LINK_THEME, TEXT_LINK_UNDERLINE, TEXT_STYLE, TEXT_THEME, TEXT_VARIANTS, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, avatarPropsDefault, beforeUpdate, buttonOutlinedPropsDefault, buttonPropsDefault, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getAnsweredQuestion, getAnsweredQuestionIds, getBrandKit, getButtonOutlinedThemeStyles, getButtonTextThemeStyles, getButtonThemeStyles, getCssVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getSystem, getTextLinkThemeStyles, getTextThemeStyles, getVariables, hideOnScroll, hideOnTime, initialize, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestory, onDestroy, onMount, onScroll, onShow, onTime, removeAnswer, resetEventHandlers, resetVariables, sendAnswer, sendAnswers, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, tick, useBrandKit, variables, widget };
|