@plaidev/karte-action-sdk 1.1.206-28201768.b3b325dd → 1.1.206-28204054.f9403484
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.js +133 -72
- package/dist/index.es.js +130 -69
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -6493,7 +6493,7 @@ class MovieVimeoElement extends SvelteComponent {
|
|
6493
6493
|
/* src/components/FormTextarea.svelte generated by Svelte v3.53.1 */
|
6494
6494
|
|
6495
6495
|
function add_css$g(target) {
|
6496
|
-
append_styles(target, "svelte-
|
6496
|
+
append_styles(target, "svelte-zxvkkc", ".textarea-wrapper.svelte-zxvkkc{display:flex;align-items:center;width:100%;height:100%}.textarea.svelte-zxvkkc{width:100%;height:100%;box-sizing:border-box;resize:none;appearance:none;background-color:#fff;border:solid 2px #ccc;border-radius:6px;padding:6px 10px 6px 10px;font-size:12px;line-height:1.5}.textarea.svelte-zxvkkc::placeholder{color:var(--placeholder-color)}.textarea.svelte-zxvkkc:focus{outline:none;border-width:var(--focus-border-width) !important;border-color:var(--focus-border-color) !important;border-style:var(--focus-border-style) !important}");
|
6497
6497
|
}
|
6498
6498
|
|
6499
6499
|
function create_fragment$h(ctx) {
|
@@ -6509,13 +6509,13 @@ function create_fragment$h(ctx) {
|
|
6509
6509
|
this.h();
|
6510
6510
|
},
|
6511
6511
|
l(nodes) {
|
6512
|
-
div = claim_element(nodes, "DIV", { class: true });
|
6512
|
+
div = claim_element(nodes, "DIV", { class: true, style: true });
|
6513
6513
|
var div_nodes = children(div);
|
6514
6514
|
|
6515
6515
|
textarea = claim_element(div_nodes, "TEXTAREA", {
|
6516
6516
|
class: true,
|
6517
|
-
|
6518
|
-
|
6517
|
+
placeholder: true,
|
6518
|
+
style: true
|
6519
6519
|
});
|
6520
6520
|
|
6521
6521
|
children(textarea).forEach(detach);
|
@@ -6523,37 +6523,42 @@ function create_fragment$h(ctx) {
|
|
6523
6523
|
this.h();
|
6524
6524
|
},
|
6525
6525
|
h() {
|
6526
|
-
attr(textarea, "class", "textarea svelte-
|
6527
|
-
textarea.value = /*$value*/ ctx[
|
6528
|
-
textarea.required = /*required*/ ctx[
|
6529
|
-
attr(textarea, "
|
6530
|
-
attr(textarea, "
|
6531
|
-
attr(div, "class", "textarea-wrapper svelte-
|
6526
|
+
attr(textarea, "class", "textarea svelte-zxvkkc");
|
6527
|
+
textarea.value = /*$value*/ ctx[4];
|
6528
|
+
textarea.required = /*required*/ ctx[1];
|
6529
|
+
attr(textarea, "placeholder", /*placeholder*/ ctx[0]);
|
6530
|
+
attr(textarea, "style", /*style*/ ctx[3]);
|
6531
|
+
attr(div, "class", "textarea-wrapper svelte-zxvkkc");
|
6532
|
+
attr(div, "style", /*styleVariables*/ ctx[2]);
|
6532
6533
|
},
|
6533
6534
|
m(target, anchor) {
|
6534
6535
|
insert_hydration(target, div, anchor);
|
6535
6536
|
append_hydration(div, textarea);
|
6536
6537
|
|
6537
6538
|
if (!mounted) {
|
6538
|
-
dispose = listen(textarea, "input", /*handleInput*/ ctx[
|
6539
|
+
dispose = listen(textarea, "input", /*handleInput*/ ctx[6]);
|
6539
6540
|
mounted = true;
|
6540
6541
|
}
|
6541
6542
|
},
|
6542
6543
|
p(ctx, [dirty]) {
|
6543
|
-
if (dirty & /*$value*/
|
6544
|
-
textarea.value = /*$value*/ ctx[
|
6544
|
+
if (dirty & /*$value*/ 16) {
|
6545
|
+
textarea.value = /*$value*/ ctx[4];
|
6545
6546
|
}
|
6546
6547
|
|
6547
|
-
if (dirty & /*required*/
|
6548
|
-
textarea.required = /*required*/ ctx[
|
6548
|
+
if (dirty & /*required*/ 2) {
|
6549
|
+
textarea.required = /*required*/ ctx[1];
|
6549
6550
|
}
|
6550
6551
|
|
6551
|
-
if (dirty & /*
|
6552
|
-
attr(textarea, "
|
6552
|
+
if (dirty & /*placeholder*/ 1) {
|
6553
|
+
attr(textarea, "placeholder", /*placeholder*/ ctx[0]);
|
6553
6554
|
}
|
6554
6555
|
|
6555
|
-
if (dirty & /*
|
6556
|
-
attr(textarea, "
|
6556
|
+
if (dirty & /*style*/ 8) {
|
6557
|
+
attr(textarea, "style", /*style*/ ctx[3]);
|
6558
|
+
}
|
6559
|
+
|
6560
|
+
if (dirty & /*styleVariables*/ 4) {
|
6561
|
+
attr(div, "style", /*styleVariables*/ ctx[2]);
|
6557
6562
|
}
|
6558
6563
|
},
|
6559
6564
|
i: noop,
|
@@ -6567,11 +6572,17 @@ function create_fragment$h(ctx) {
|
|
6567
6572
|
}
|
6568
6573
|
|
6569
6574
|
function instance$h($$self, $$props, $$invalidate) {
|
6575
|
+
let style;
|
6576
|
+
let styleVariables;
|
6570
6577
|
let $value;
|
6571
6578
|
let { name = '' } = $$props;
|
6579
|
+
let { placeholder = '回答を入力してください' } = $$props;
|
6572
6580
|
let { required = true } = $$props;
|
6573
|
-
let {
|
6574
|
-
let {
|
6581
|
+
let { _style = '' } = $$props;
|
6582
|
+
let { _focusStyle = 'border-width: 2px; border-color: #2aab9f; border-style: solid' } = $$props;
|
6583
|
+
let { font = SYSTEM_FONT } = $$props;
|
6584
|
+
let { _textStyle = '' } = $$props;
|
6585
|
+
let { _placeholderStyle = 'color: #ccc;' } = $$props;
|
6575
6586
|
const { path: statePath } = getStateItemContext();
|
6576
6587
|
|
6577
6588
|
const value = registerInput({
|
@@ -6583,7 +6594,7 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
6583
6594
|
}
|
6584
6595
|
});
|
6585
6596
|
|
6586
|
-
component_subscribe($$self, value, value => $$invalidate(
|
6597
|
+
component_subscribe($$self, value, value => $$invalidate(4, $value = value));
|
6587
6598
|
|
6588
6599
|
function handleInput(event) {
|
6589
6600
|
const updated = event.target.value;
|
@@ -6591,13 +6602,54 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
6591
6602
|
}
|
6592
6603
|
|
6593
6604
|
$$self.$$set = $$props => {
|
6594
|
-
if ('name' in $$props) $$invalidate(
|
6595
|
-
if ('
|
6596
|
-
if ('
|
6597
|
-
if ('
|
6605
|
+
if ('name' in $$props) $$invalidate(7, name = $$props.name);
|
6606
|
+
if ('placeholder' in $$props) $$invalidate(0, placeholder = $$props.placeholder);
|
6607
|
+
if ('required' in $$props) $$invalidate(1, required = $$props.required);
|
6608
|
+
if ('_style' in $$props) $$invalidate(8, _style = $$props._style);
|
6609
|
+
if ('_focusStyle' in $$props) $$invalidate(9, _focusStyle = $$props._focusStyle);
|
6610
|
+
if ('font' in $$props) $$invalidate(10, font = $$props.font);
|
6611
|
+
if ('_textStyle' in $$props) $$invalidate(11, _textStyle = $$props._textStyle);
|
6612
|
+
if ('_placeholderStyle' in $$props) $$invalidate(12, _placeholderStyle = $$props._placeholderStyle);
|
6613
|
+
};
|
6614
|
+
|
6615
|
+
$$self.$$.update = () => {
|
6616
|
+
if ($$self.$$.dirty & /*font*/ 1024) {
|
6617
|
+
addFont(font);
|
6618
|
+
}
|
6619
|
+
|
6620
|
+
if ($$self.$$.dirty & /*_style, _textStyle, font*/ 3328) {
|
6621
|
+
$$invalidate(3, style = [..._style.split(';'), ..._textStyle.split(';'), `font-family:${font}`].join(';'));
|
6622
|
+
}
|
6623
|
+
|
6624
|
+
if ($$self.$$.dirty & /*_focusStyle, _placeholderStyle*/ 4608) {
|
6625
|
+
$$invalidate(2, styleVariables = (() => {
|
6626
|
+
const variables = {};
|
6627
|
+
const focusStyleObj = parseStyle(_focusStyle);
|
6628
|
+
const placeholderStyle = parseStyle(_placeholderStyle);
|
6629
|
+
if (focusStyleObj['border-width']) variables['--focus-border-width'] = focusStyleObj['border-width'];
|
6630
|
+
if (focusStyleObj['border-color']) variables['--focus-border-color'] = focusStyleObj['border-color'];
|
6631
|
+
if (focusStyleObj['border-style']) variables['--focus-border-style'] = focusStyleObj['border-style'];
|
6632
|
+
if (placeholderStyle.color) variables['--placeholder-color'] = placeholderStyle.color;
|
6633
|
+
return stringifyStyleObj(variables);
|
6634
|
+
})());
|
6635
|
+
}
|
6598
6636
|
};
|
6599
6637
|
|
6600
|
-
return [
|
6638
|
+
return [
|
6639
|
+
placeholder,
|
6640
|
+
required,
|
6641
|
+
styleVariables,
|
6642
|
+
style,
|
6643
|
+
$value,
|
6644
|
+
value,
|
6645
|
+
handleInput,
|
6646
|
+
name,
|
6647
|
+
_style,
|
6648
|
+
_focusStyle,
|
6649
|
+
font,
|
6650
|
+
_textStyle,
|
6651
|
+
_placeholderStyle
|
6652
|
+
];
|
6601
6653
|
}
|
6602
6654
|
|
6603
6655
|
class FormTextarea extends SvelteComponent {
|
@@ -6611,10 +6663,14 @@ class FormTextarea extends SvelteComponent {
|
|
6611
6663
|
create_fragment$h,
|
6612
6664
|
safe_not_equal,
|
6613
6665
|
{
|
6614
|
-
name:
|
6615
|
-
|
6616
|
-
|
6617
|
-
|
6666
|
+
name: 7,
|
6667
|
+
placeholder: 0,
|
6668
|
+
required: 1,
|
6669
|
+
_style: 8,
|
6670
|
+
_focusStyle: 9,
|
6671
|
+
font: 10,
|
6672
|
+
_textStyle: 11,
|
6673
|
+
_placeholderStyle: 12
|
6618
6674
|
},
|
6619
6675
|
add_css$g
|
6620
6676
|
);
|
@@ -6629,12 +6685,12 @@ function add_css$f(target) {
|
|
6629
6685
|
|
6630
6686
|
function get_each_context$5(ctx, list, i) {
|
6631
6687
|
const child_ctx = ctx.slice();
|
6632
|
-
child_ctx[
|
6633
|
-
child_ctx[
|
6688
|
+
child_ctx[17] = list[i];
|
6689
|
+
child_ctx[19] = i;
|
6634
6690
|
return child_ctx;
|
6635
6691
|
}
|
6636
6692
|
|
6637
|
-
// (
|
6693
|
+
// (99:2) {#each _options as option, i}
|
6638
6694
|
function create_each_block$5(ctx) {
|
6639
6695
|
let label;
|
6640
6696
|
let input;
|
@@ -6642,8 +6698,9 @@ function create_each_block$5(ctx) {
|
|
6642
6698
|
let input_checked_value;
|
6643
6699
|
let t0;
|
6644
6700
|
let span;
|
6645
|
-
let t1_value = /*option*/ ctx[
|
6701
|
+
let t1_value = /*option*/ ctx[17] + "";
|
6646
6702
|
let t1;
|
6703
|
+
let span_style_value;
|
6647
6704
|
let t2;
|
6648
6705
|
let mounted;
|
6649
6706
|
let dispose;
|
@@ -6683,10 +6740,10 @@ function create_each_block$5(ctx) {
|
|
6683
6740
|
attr(input, "class", "radio-button-input svelte-17s08g");
|
6684
6741
|
attr(input, "style", /*buttonStyle*/ ctx[5]);
|
6685
6742
|
attr(input, "name", /*name*/ ctx[0]);
|
6686
|
-
input.value = input_value_value = /*option*/ ctx[
|
6687
|
-
input.checked = input_checked_value = /*option*/ ctx[
|
6743
|
+
input.value = input_value_value = /*option*/ ctx[17];
|
6744
|
+
input.checked = input_checked_value = /*option*/ ctx[17] === /*_value*/ ctx[3];
|
6688
6745
|
attr(span, "class", "radio-button-text svelte-17s08g");
|
6689
|
-
attr(span, "style", /*_textStyle*/ ctx[2]);
|
6746
|
+
attr(span, "style", span_style_value = `${/*_textStyle*/ ctx[2]} ${/*fontCss*/ ctx[6]}`);
|
6690
6747
|
attr(label, "class", "radio-button svelte-17s08g");
|
6691
6748
|
},
|
6692
6749
|
m(target, anchor) {
|
@@ -6698,7 +6755,7 @@ function create_each_block$5(ctx) {
|
|
6698
6755
|
append_hydration(label, t2);
|
6699
6756
|
|
6700
6757
|
if (!mounted) {
|
6701
|
-
dispose = listen(input, "change", /*handleChange*/ ctx[
|
6758
|
+
dispose = listen(input, "change", /*handleChange*/ ctx[8](/*i*/ ctx[19]));
|
6702
6759
|
mounted = true;
|
6703
6760
|
}
|
6704
6761
|
},
|
@@ -6713,18 +6770,18 @@ function create_each_block$5(ctx) {
|
|
6713
6770
|
attr(input, "name", /*name*/ ctx[0]);
|
6714
6771
|
}
|
6715
6772
|
|
6716
|
-
if (dirty & /*_options*/ 16 && input_value_value !== (input_value_value = /*option*/ ctx[
|
6773
|
+
if (dirty & /*_options*/ 16 && input_value_value !== (input_value_value = /*option*/ ctx[17])) {
|
6717
6774
|
input.value = input_value_value;
|
6718
6775
|
}
|
6719
6776
|
|
6720
|
-
if (dirty & /*_options, _value*/ 24 && input_checked_value !== (input_checked_value = /*option*/ ctx[
|
6777
|
+
if (dirty & /*_options, _value*/ 24 && input_checked_value !== (input_checked_value = /*option*/ ctx[17] === /*_value*/ ctx[3])) {
|
6721
6778
|
input.checked = input_checked_value;
|
6722
6779
|
}
|
6723
6780
|
|
6724
|
-
if (dirty & /*_options*/ 16 && t1_value !== (t1_value = /*option*/ ctx[
|
6781
|
+
if (dirty & /*_options*/ 16 && t1_value !== (t1_value = /*option*/ ctx[17] + "")) set_data(t1, t1_value);
|
6725
6782
|
|
6726
|
-
if (dirty & /*_textStyle*/ 4) {
|
6727
|
-
attr(span, "style",
|
6783
|
+
if (dirty & /*_textStyle*/ 4 && span_style_value !== (span_style_value = `${/*_textStyle*/ ctx[2]} ${/*fontCss*/ ctx[6]}`)) {
|
6784
|
+
attr(span, "style", span_style_value);
|
6728
6785
|
}
|
6729
6786
|
},
|
6730
6787
|
d(detaching) {
|
@@ -6777,7 +6834,7 @@ function create_fragment$g(ctx) {
|
|
6777
6834
|
}
|
6778
6835
|
},
|
6779
6836
|
p(ctx, [dirty]) {
|
6780
|
-
if (dirty & /*_textStyle, _options, buttonStyle, name, _value, handleChange*/
|
6837
|
+
if (dirty & /*_textStyle, fontCss, _options, buttonStyle, name, _value, handleChange*/ 381) {
|
6781
6838
|
each_value = /*_options*/ ctx[4];
|
6782
6839
|
let i;
|
6783
6840
|
|
@@ -6823,6 +6880,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
6823
6880
|
let { required = false } = $$props;
|
6824
6881
|
let { _layoutStyle = 'flex-direction: column; gap: 0px;' } = $$props;
|
6825
6882
|
let { font = SYSTEM_FONT } = $$props;
|
6883
|
+
const fontCss = font ? 'font-family:' + font : '';
|
6826
6884
|
let { _textStyle = 'color: #333; font-size: 12px; line-height:1.5;' } = $$props;
|
6827
6885
|
let { buttonSize = '16px' } = $$props;
|
6828
6886
|
let { buttonColor = { main: '#f0f1f1', sub: '#f0f1f1' } } = $$props;
|
@@ -6839,7 +6897,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
6839
6897
|
}
|
6840
6898
|
});
|
6841
6899
|
|
6842
|
-
component_subscribe($$self, value, value => $$invalidate(
|
6900
|
+
component_subscribe($$self, value, value => $$invalidate(15, $value = value));
|
6843
6901
|
|
6844
6902
|
const handleChange = index => event => {
|
6845
6903
|
if (event.target.checked) {
|
@@ -6849,26 +6907,26 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
6849
6907
|
|
6850
6908
|
$$self.$$set = $$props => {
|
6851
6909
|
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
6852
|
-
if ('options' in $$props) $$invalidate(
|
6853
|
-
if ('required' in $$props) $$invalidate(
|
6910
|
+
if ('options' in $$props) $$invalidate(9, options = $$props.options);
|
6911
|
+
if ('required' in $$props) $$invalidate(10, required = $$props.required);
|
6854
6912
|
if ('_layoutStyle' in $$props) $$invalidate(1, _layoutStyle = $$props._layoutStyle);
|
6855
|
-
if ('font' in $$props) $$invalidate(
|
6913
|
+
if ('font' in $$props) $$invalidate(11, font = $$props.font);
|
6856
6914
|
if ('_textStyle' in $$props) $$invalidate(2, _textStyle = $$props._textStyle);
|
6857
|
-
if ('buttonSize' in $$props) $$invalidate(
|
6858
|
-
if ('buttonColor' in $$props) $$invalidate(
|
6859
|
-
if ('buttonColorActive' in $$props) $$invalidate(
|
6915
|
+
if ('buttonSize' in $$props) $$invalidate(12, buttonSize = $$props.buttonSize);
|
6916
|
+
if ('buttonColor' in $$props) $$invalidate(13, buttonColor = $$props.buttonColor);
|
6917
|
+
if ('buttonColorActive' in $$props) $$invalidate(14, buttonColorActive = $$props.buttonColorActive);
|
6860
6918
|
};
|
6861
6919
|
|
6862
6920
|
$$self.$$.update = () => {
|
6863
|
-
if ($$self.$$.dirty & /*font*/
|
6921
|
+
if ($$self.$$.dirty & /*font*/ 2048) {
|
6864
6922
|
addFont(font);
|
6865
6923
|
}
|
6866
6924
|
|
6867
|
-
if ($$self.$$.dirty & /*options*/
|
6925
|
+
if ($$self.$$.dirty & /*options*/ 512) {
|
6868
6926
|
$$invalidate(4, _options = options.split(','));
|
6869
6927
|
}
|
6870
6928
|
|
6871
|
-
if ($$self.$$.dirty & /*buttonColor, buttonColorActive, buttonSize*/
|
6929
|
+
if ($$self.$$.dirty & /*buttonColor, buttonColorActive, buttonSize*/ 28672) {
|
6872
6930
|
$$invalidate(5, buttonStyle = (() => {
|
6873
6931
|
return stringifyStyleObj({
|
6874
6932
|
'--color-main': buttonColor.main,
|
@@ -6880,7 +6938,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
6880
6938
|
})());
|
6881
6939
|
}
|
6882
6940
|
|
6883
|
-
if ($$self.$$.dirty & /*$value*/
|
6941
|
+
if ($$self.$$.dirty & /*$value*/ 32768) {
|
6884
6942
|
$$invalidate(3, _value = $value[0]);
|
6885
6943
|
}
|
6886
6944
|
};
|
@@ -6892,6 +6950,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
6892
6950
|
_value,
|
6893
6951
|
_options,
|
6894
6952
|
buttonStyle,
|
6953
|
+
fontCss,
|
6895
6954
|
value,
|
6896
6955
|
handleChange,
|
6897
6956
|
options,
|
@@ -6916,14 +6975,14 @@ class FormRadioButtons extends SvelteComponent {
|
|
6916
6975
|
safe_not_equal,
|
6917
6976
|
{
|
6918
6977
|
name: 0,
|
6919
|
-
options:
|
6920
|
-
required:
|
6978
|
+
options: 9,
|
6979
|
+
required: 10,
|
6921
6980
|
_layoutStyle: 1,
|
6922
|
-
font:
|
6981
|
+
font: 11,
|
6923
6982
|
_textStyle: 2,
|
6924
|
-
buttonSize:
|
6925
|
-
buttonColor:
|
6926
|
-
buttonColorActive:
|
6983
|
+
buttonSize: 12,
|
6984
|
+
buttonColor: 13,
|
6985
|
+
buttonColorActive: 14
|
6927
6986
|
},
|
6928
6987
|
add_css$f
|
6929
6988
|
);
|
@@ -6943,7 +7002,7 @@ function get_each_context$4(ctx, list, i) {
|
|
6943
7002
|
return child_ctx;
|
6944
7003
|
}
|
6945
7004
|
|
6946
|
-
// (
|
7005
|
+
// (107:10) {:else}
|
6947
7006
|
function create_else_block(ctx) {
|
6948
7007
|
let t;
|
6949
7008
|
|
@@ -6966,7 +7025,7 @@ function create_else_block(ctx) {
|
|
6966
7025
|
};
|
6967
7026
|
}
|
6968
7027
|
|
6969
|
-
// (
|
7028
|
+
// (105:10) {#if option}
|
6970
7029
|
function create_if_block$2(ctx) {
|
6971
7030
|
let t_value = /*option*/ ctx[19] + "";
|
6972
7031
|
let t;
|
@@ -6990,7 +7049,7 @@ function create_if_block$2(ctx) {
|
|
6990
7049
|
};
|
6991
7050
|
}
|
6992
7051
|
|
6993
|
-
// (
|
7052
|
+
// (103:6) {#each _options as option, i}
|
6994
7053
|
function create_each_block$4(ctx) {
|
6995
7054
|
let option;
|
6996
7055
|
let t;
|
@@ -7232,11 +7291,12 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
7232
7291
|
$$invalidate(1, _value = $value[0]);
|
7233
7292
|
}
|
7234
7293
|
|
7235
|
-
if ($$self.$$.dirty & /*_style, _textStyle, _value, _placeholderStyle*/
|
7294
|
+
if ($$self.$$.dirty & /*_style, _textStyle, _value, _placeholderStyle, font*/ 29698) {
|
7236
7295
|
$$invalidate(3, style = [
|
7237
7296
|
..._style.split(';'),
|
7238
7297
|
..._textStyle.split(';'),
|
7239
|
-
...!_value ? _placeholderStyle.split(';') : []
|
7298
|
+
...!_value ? _placeholderStyle.split(';') : [],
|
7299
|
+
`font-family:${font}`
|
7240
7300
|
].join(';'));
|
7241
7301
|
}
|
7242
7302
|
|
@@ -7244,11 +7304,10 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
7244
7304
|
$$invalidate(2, styleVariables = (() => {
|
7245
7305
|
const variables = {};
|
7246
7306
|
const focusStyleObj = parseStyle(_focusStyle);
|
7247
|
-
|
7307
|
+
parseStyle(_placeholderStyle);
|
7248
7308
|
if (focusStyleObj['border-width']) variables['--focus-border-width'] = focusStyleObj['border-width'];
|
7249
7309
|
if (focusStyleObj['border-color']) variables['--focus-border-color'] = focusStyleObj['border-color'];
|
7250
7310
|
if (focusStyleObj['border-style']) variables['--focus-border-style'] = focusStyleObj['border-style'];
|
7251
|
-
if (placeholderStyle.color) variables['--placeholder-color'] = placeholderStyle.color;
|
7252
7311
|
variables['--icon-color'] = iconColor;
|
7253
7312
|
variables['--icon-size'] = iconSize;
|
7254
7313
|
return stringifyStyleObj(variables);
|
@@ -7813,9 +7872,11 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
7813
7872
|
};
|
7814
7873
|
|
7815
7874
|
function getTextButtonStyle(isActive) {
|
7816
|
-
return
|
7817
|
-
|
7818
|
-
|
7875
|
+
return [
|
7876
|
+
...buttonStyle.split(';'),
|
7877
|
+
`font-family:${font}`,
|
7878
|
+
...isActive ? buttonActiveStyle : []
|
7879
|
+
].join(';');
|
7819
7880
|
}
|
7820
7881
|
|
7821
7882
|
$$self.$$set = $$props => {
|
package/dist/index.es.js
CHANGED
@@ -6242,7 +6242,7 @@ class MovieVimeoElement extends SvelteComponent {
|
|
6242
6242
|
/* src/components/FormTextarea.svelte generated by Svelte v3.53.1 */
|
6243
6243
|
|
6244
6244
|
function add_css$g(target) {
|
6245
|
-
append_styles(target, "svelte-
|
6245
|
+
append_styles(target, "svelte-zxvkkc", ".textarea-wrapper.svelte-zxvkkc{display:flex;align-items:center;width:100%;height:100%}.textarea.svelte-zxvkkc{width:100%;height:100%;box-sizing:border-box;resize:none;appearance:none;background-color:#fff;border:solid 2px #ccc;border-radius:6px;padding:6px 10px 6px 10px;font-size:12px;line-height:1.5}.textarea.svelte-zxvkkc::placeholder{color:var(--placeholder-color)}.textarea.svelte-zxvkkc:focus{outline:none;border-width:var(--focus-border-width) !important;border-color:var(--focus-border-color) !important;border-style:var(--focus-border-style) !important}");
|
6246
6246
|
}
|
6247
6247
|
|
6248
6248
|
function create_fragment$h(ctx) {
|
@@ -6255,37 +6255,42 @@ function create_fragment$h(ctx) {
|
|
6255
6255
|
c() {
|
6256
6256
|
div = element("div");
|
6257
6257
|
textarea = element("textarea");
|
6258
|
-
attr(textarea, "class", "textarea svelte-
|
6259
|
-
textarea.value = /*$value*/ ctx[
|
6260
|
-
textarea.required = /*required*/ ctx[
|
6261
|
-
attr(textarea, "
|
6262
|
-
attr(textarea, "
|
6263
|
-
attr(div, "class", "textarea-wrapper svelte-
|
6258
|
+
attr(textarea, "class", "textarea svelte-zxvkkc");
|
6259
|
+
textarea.value = /*$value*/ ctx[4];
|
6260
|
+
textarea.required = /*required*/ ctx[1];
|
6261
|
+
attr(textarea, "placeholder", /*placeholder*/ ctx[0]);
|
6262
|
+
attr(textarea, "style", /*style*/ ctx[3]);
|
6263
|
+
attr(div, "class", "textarea-wrapper svelte-zxvkkc");
|
6264
|
+
attr(div, "style", /*styleVariables*/ ctx[2]);
|
6264
6265
|
},
|
6265
6266
|
m(target, anchor) {
|
6266
6267
|
insert(target, div, anchor);
|
6267
6268
|
append(div, textarea);
|
6268
6269
|
|
6269
6270
|
if (!mounted) {
|
6270
|
-
dispose = listen(textarea, "input", /*handleInput*/ ctx[
|
6271
|
+
dispose = listen(textarea, "input", /*handleInput*/ ctx[6]);
|
6271
6272
|
mounted = true;
|
6272
6273
|
}
|
6273
6274
|
},
|
6274
6275
|
p(ctx, [dirty]) {
|
6275
|
-
if (dirty & /*$value*/
|
6276
|
-
textarea.value = /*$value*/ ctx[
|
6276
|
+
if (dirty & /*$value*/ 16) {
|
6277
|
+
textarea.value = /*$value*/ ctx[4];
|
6277
6278
|
}
|
6278
6279
|
|
6279
|
-
if (dirty & /*required*/
|
6280
|
-
textarea.required = /*required*/ ctx[
|
6280
|
+
if (dirty & /*required*/ 2) {
|
6281
|
+
textarea.required = /*required*/ ctx[1];
|
6281
6282
|
}
|
6282
6283
|
|
6283
|
-
if (dirty & /*
|
6284
|
-
attr(textarea, "
|
6284
|
+
if (dirty & /*placeholder*/ 1) {
|
6285
|
+
attr(textarea, "placeholder", /*placeholder*/ ctx[0]);
|
6285
6286
|
}
|
6286
6287
|
|
6287
|
-
if (dirty & /*
|
6288
|
-
attr(textarea, "
|
6288
|
+
if (dirty & /*style*/ 8) {
|
6289
|
+
attr(textarea, "style", /*style*/ ctx[3]);
|
6290
|
+
}
|
6291
|
+
|
6292
|
+
if (dirty & /*styleVariables*/ 4) {
|
6293
|
+
attr(div, "style", /*styleVariables*/ ctx[2]);
|
6289
6294
|
}
|
6290
6295
|
},
|
6291
6296
|
i: noop,
|
@@ -6299,11 +6304,17 @@ function create_fragment$h(ctx) {
|
|
6299
6304
|
}
|
6300
6305
|
|
6301
6306
|
function instance$h($$self, $$props, $$invalidate) {
|
6307
|
+
let style;
|
6308
|
+
let styleVariables;
|
6302
6309
|
let $value;
|
6303
6310
|
let { name = '' } = $$props;
|
6311
|
+
let { placeholder = '回答を入力してください' } = $$props;
|
6304
6312
|
let { required = true } = $$props;
|
6305
|
-
let {
|
6306
|
-
let {
|
6313
|
+
let { _style = '' } = $$props;
|
6314
|
+
let { _focusStyle = 'border-width: 2px; border-color: #2aab9f; border-style: solid' } = $$props;
|
6315
|
+
let { font = SYSTEM_FONT } = $$props;
|
6316
|
+
let { _textStyle = '' } = $$props;
|
6317
|
+
let { _placeholderStyle = 'color: #ccc;' } = $$props;
|
6307
6318
|
const { path: statePath } = getStateItemContext();
|
6308
6319
|
|
6309
6320
|
const value = registerInput({
|
@@ -6315,7 +6326,7 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
6315
6326
|
}
|
6316
6327
|
});
|
6317
6328
|
|
6318
|
-
component_subscribe($$self, value, value => $$invalidate(
|
6329
|
+
component_subscribe($$self, value, value => $$invalidate(4, $value = value));
|
6319
6330
|
|
6320
6331
|
function handleInput(event) {
|
6321
6332
|
const updated = event.target.value;
|
@@ -6323,13 +6334,54 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
6323
6334
|
}
|
6324
6335
|
|
6325
6336
|
$$self.$$set = $$props => {
|
6326
|
-
if ('name' in $$props) $$invalidate(
|
6327
|
-
if ('
|
6328
|
-
if ('
|
6329
|
-
if ('
|
6337
|
+
if ('name' in $$props) $$invalidate(7, name = $$props.name);
|
6338
|
+
if ('placeholder' in $$props) $$invalidate(0, placeholder = $$props.placeholder);
|
6339
|
+
if ('required' in $$props) $$invalidate(1, required = $$props.required);
|
6340
|
+
if ('_style' in $$props) $$invalidate(8, _style = $$props._style);
|
6341
|
+
if ('_focusStyle' in $$props) $$invalidate(9, _focusStyle = $$props._focusStyle);
|
6342
|
+
if ('font' in $$props) $$invalidate(10, font = $$props.font);
|
6343
|
+
if ('_textStyle' in $$props) $$invalidate(11, _textStyle = $$props._textStyle);
|
6344
|
+
if ('_placeholderStyle' in $$props) $$invalidate(12, _placeholderStyle = $$props._placeholderStyle);
|
6345
|
+
};
|
6346
|
+
|
6347
|
+
$$self.$$.update = () => {
|
6348
|
+
if ($$self.$$.dirty & /*font*/ 1024) {
|
6349
|
+
addFont(font);
|
6350
|
+
}
|
6351
|
+
|
6352
|
+
if ($$self.$$.dirty & /*_style, _textStyle, font*/ 3328) {
|
6353
|
+
$$invalidate(3, style = [..._style.split(';'), ..._textStyle.split(';'), `font-family:${font}`].join(';'));
|
6354
|
+
}
|
6355
|
+
|
6356
|
+
if ($$self.$$.dirty & /*_focusStyle, _placeholderStyle*/ 4608) {
|
6357
|
+
$$invalidate(2, styleVariables = (() => {
|
6358
|
+
const variables = {};
|
6359
|
+
const focusStyleObj = parseStyle(_focusStyle);
|
6360
|
+
const placeholderStyle = parseStyle(_placeholderStyle);
|
6361
|
+
if (focusStyleObj['border-width']) variables['--focus-border-width'] = focusStyleObj['border-width'];
|
6362
|
+
if (focusStyleObj['border-color']) variables['--focus-border-color'] = focusStyleObj['border-color'];
|
6363
|
+
if (focusStyleObj['border-style']) variables['--focus-border-style'] = focusStyleObj['border-style'];
|
6364
|
+
if (placeholderStyle.color) variables['--placeholder-color'] = placeholderStyle.color;
|
6365
|
+
return stringifyStyleObj(variables);
|
6366
|
+
})());
|
6367
|
+
}
|
6330
6368
|
};
|
6331
6369
|
|
6332
|
-
return [
|
6370
|
+
return [
|
6371
|
+
placeholder,
|
6372
|
+
required,
|
6373
|
+
styleVariables,
|
6374
|
+
style,
|
6375
|
+
$value,
|
6376
|
+
value,
|
6377
|
+
handleInput,
|
6378
|
+
name,
|
6379
|
+
_style,
|
6380
|
+
_focusStyle,
|
6381
|
+
font,
|
6382
|
+
_textStyle,
|
6383
|
+
_placeholderStyle
|
6384
|
+
];
|
6333
6385
|
}
|
6334
6386
|
|
6335
6387
|
class FormTextarea extends SvelteComponent {
|
@@ -6343,10 +6395,14 @@ class FormTextarea extends SvelteComponent {
|
|
6343
6395
|
create_fragment$h,
|
6344
6396
|
safe_not_equal,
|
6345
6397
|
{
|
6346
|
-
name:
|
6347
|
-
|
6348
|
-
|
6349
|
-
|
6398
|
+
name: 7,
|
6399
|
+
placeholder: 0,
|
6400
|
+
required: 1,
|
6401
|
+
_style: 8,
|
6402
|
+
_focusStyle: 9,
|
6403
|
+
font: 10,
|
6404
|
+
_textStyle: 11,
|
6405
|
+
_placeholderStyle: 12
|
6350
6406
|
},
|
6351
6407
|
add_css$g
|
6352
6408
|
);
|
@@ -6361,12 +6417,12 @@ function add_css$f(target) {
|
|
6361
6417
|
|
6362
6418
|
function get_each_context$5(ctx, list, i) {
|
6363
6419
|
const child_ctx = ctx.slice();
|
6364
|
-
child_ctx[
|
6365
|
-
child_ctx[
|
6420
|
+
child_ctx[17] = list[i];
|
6421
|
+
child_ctx[19] = i;
|
6366
6422
|
return child_ctx;
|
6367
6423
|
}
|
6368
6424
|
|
6369
|
-
// (
|
6425
|
+
// (99:2) {#each _options as option, i}
|
6370
6426
|
function create_each_block$5(ctx) {
|
6371
6427
|
let label;
|
6372
6428
|
let input;
|
@@ -6374,8 +6430,9 @@ function create_each_block$5(ctx) {
|
|
6374
6430
|
let input_checked_value;
|
6375
6431
|
let t0;
|
6376
6432
|
let span;
|
6377
|
-
let t1_value = /*option*/ ctx[
|
6433
|
+
let t1_value = /*option*/ ctx[17] + "";
|
6378
6434
|
let t1;
|
6435
|
+
let span_style_value;
|
6379
6436
|
let t2;
|
6380
6437
|
let mounted;
|
6381
6438
|
let dispose;
|
@@ -6392,10 +6449,10 @@ function create_each_block$5(ctx) {
|
|
6392
6449
|
attr(input, "class", "radio-button-input svelte-17s08g");
|
6393
6450
|
attr(input, "style", /*buttonStyle*/ ctx[5]);
|
6394
6451
|
attr(input, "name", /*name*/ ctx[0]);
|
6395
|
-
input.value = input_value_value = /*option*/ ctx[
|
6396
|
-
input.checked = input_checked_value = /*option*/ ctx[
|
6452
|
+
input.value = input_value_value = /*option*/ ctx[17];
|
6453
|
+
input.checked = input_checked_value = /*option*/ ctx[17] === /*_value*/ ctx[3];
|
6397
6454
|
attr(span, "class", "radio-button-text svelte-17s08g");
|
6398
|
-
attr(span, "style", /*_textStyle*/ ctx[2]);
|
6455
|
+
attr(span, "style", span_style_value = `${/*_textStyle*/ ctx[2]} ${/*fontCss*/ ctx[6]}`);
|
6399
6456
|
attr(label, "class", "radio-button svelte-17s08g");
|
6400
6457
|
},
|
6401
6458
|
m(target, anchor) {
|
@@ -6407,7 +6464,7 @@ function create_each_block$5(ctx) {
|
|
6407
6464
|
append(label, t2);
|
6408
6465
|
|
6409
6466
|
if (!mounted) {
|
6410
|
-
dispose = listen(input, "change", /*handleChange*/ ctx[
|
6467
|
+
dispose = listen(input, "change", /*handleChange*/ ctx[8](/*i*/ ctx[19]));
|
6411
6468
|
mounted = true;
|
6412
6469
|
}
|
6413
6470
|
},
|
@@ -6422,18 +6479,18 @@ function create_each_block$5(ctx) {
|
|
6422
6479
|
attr(input, "name", /*name*/ ctx[0]);
|
6423
6480
|
}
|
6424
6481
|
|
6425
|
-
if (dirty & /*_options*/ 16 && input_value_value !== (input_value_value = /*option*/ ctx[
|
6482
|
+
if (dirty & /*_options*/ 16 && input_value_value !== (input_value_value = /*option*/ ctx[17])) {
|
6426
6483
|
input.value = input_value_value;
|
6427
6484
|
}
|
6428
6485
|
|
6429
|
-
if (dirty & /*_options, _value*/ 24 && input_checked_value !== (input_checked_value = /*option*/ ctx[
|
6486
|
+
if (dirty & /*_options, _value*/ 24 && input_checked_value !== (input_checked_value = /*option*/ ctx[17] === /*_value*/ ctx[3])) {
|
6430
6487
|
input.checked = input_checked_value;
|
6431
6488
|
}
|
6432
6489
|
|
6433
|
-
if (dirty & /*_options*/ 16 && t1_value !== (t1_value = /*option*/ ctx[
|
6490
|
+
if (dirty & /*_options*/ 16 && t1_value !== (t1_value = /*option*/ ctx[17] + "")) set_data(t1, t1_value);
|
6434
6491
|
|
6435
|
-
if (dirty & /*_textStyle*/ 4) {
|
6436
|
-
attr(span, "style",
|
6492
|
+
if (dirty & /*_textStyle*/ 4 && span_style_value !== (span_style_value = `${/*_textStyle*/ ctx[2]} ${/*fontCss*/ ctx[6]}`)) {
|
6493
|
+
attr(span, "style", span_style_value);
|
6437
6494
|
}
|
6438
6495
|
},
|
6439
6496
|
d(detaching) {
|
@@ -6472,7 +6529,7 @@ function create_fragment$g(ctx) {
|
|
6472
6529
|
}
|
6473
6530
|
},
|
6474
6531
|
p(ctx, [dirty]) {
|
6475
|
-
if (dirty & /*_textStyle, _options, buttonStyle, name, _value, handleChange*/
|
6532
|
+
if (dirty & /*_textStyle, fontCss, _options, buttonStyle, name, _value, handleChange*/ 381) {
|
6476
6533
|
each_value = /*_options*/ ctx[4];
|
6477
6534
|
let i;
|
6478
6535
|
|
@@ -6518,6 +6575,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
6518
6575
|
let { required = false } = $$props;
|
6519
6576
|
let { _layoutStyle = 'flex-direction: column; gap: 0px;' } = $$props;
|
6520
6577
|
let { font = SYSTEM_FONT } = $$props;
|
6578
|
+
const fontCss = font ? 'font-family:' + font : '';
|
6521
6579
|
let { _textStyle = 'color: #333; font-size: 12px; line-height:1.5;' } = $$props;
|
6522
6580
|
let { buttonSize = '16px' } = $$props;
|
6523
6581
|
let { buttonColor = { main: '#f0f1f1', sub: '#f0f1f1' } } = $$props;
|
@@ -6534,7 +6592,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
6534
6592
|
}
|
6535
6593
|
});
|
6536
6594
|
|
6537
|
-
component_subscribe($$self, value, value => $$invalidate(
|
6595
|
+
component_subscribe($$self, value, value => $$invalidate(15, $value = value));
|
6538
6596
|
|
6539
6597
|
const handleChange = index => event => {
|
6540
6598
|
if (event.target.checked) {
|
@@ -6544,26 +6602,26 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
6544
6602
|
|
6545
6603
|
$$self.$$set = $$props => {
|
6546
6604
|
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
6547
|
-
if ('options' in $$props) $$invalidate(
|
6548
|
-
if ('required' in $$props) $$invalidate(
|
6605
|
+
if ('options' in $$props) $$invalidate(9, options = $$props.options);
|
6606
|
+
if ('required' in $$props) $$invalidate(10, required = $$props.required);
|
6549
6607
|
if ('_layoutStyle' in $$props) $$invalidate(1, _layoutStyle = $$props._layoutStyle);
|
6550
|
-
if ('font' in $$props) $$invalidate(
|
6608
|
+
if ('font' in $$props) $$invalidate(11, font = $$props.font);
|
6551
6609
|
if ('_textStyle' in $$props) $$invalidate(2, _textStyle = $$props._textStyle);
|
6552
|
-
if ('buttonSize' in $$props) $$invalidate(
|
6553
|
-
if ('buttonColor' in $$props) $$invalidate(
|
6554
|
-
if ('buttonColorActive' in $$props) $$invalidate(
|
6610
|
+
if ('buttonSize' in $$props) $$invalidate(12, buttonSize = $$props.buttonSize);
|
6611
|
+
if ('buttonColor' in $$props) $$invalidate(13, buttonColor = $$props.buttonColor);
|
6612
|
+
if ('buttonColorActive' in $$props) $$invalidate(14, buttonColorActive = $$props.buttonColorActive);
|
6555
6613
|
};
|
6556
6614
|
|
6557
6615
|
$$self.$$.update = () => {
|
6558
|
-
if ($$self.$$.dirty & /*font*/
|
6616
|
+
if ($$self.$$.dirty & /*font*/ 2048) {
|
6559
6617
|
addFont(font);
|
6560
6618
|
}
|
6561
6619
|
|
6562
|
-
if ($$self.$$.dirty & /*options*/
|
6620
|
+
if ($$self.$$.dirty & /*options*/ 512) {
|
6563
6621
|
$$invalidate(4, _options = options.split(','));
|
6564
6622
|
}
|
6565
6623
|
|
6566
|
-
if ($$self.$$.dirty & /*buttonColor, buttonColorActive, buttonSize*/
|
6624
|
+
if ($$self.$$.dirty & /*buttonColor, buttonColorActive, buttonSize*/ 28672) {
|
6567
6625
|
$$invalidate(5, buttonStyle = (() => {
|
6568
6626
|
return stringifyStyleObj({
|
6569
6627
|
'--color-main': buttonColor.main,
|
@@ -6575,7 +6633,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
6575
6633
|
})());
|
6576
6634
|
}
|
6577
6635
|
|
6578
|
-
if ($$self.$$.dirty & /*$value*/
|
6636
|
+
if ($$self.$$.dirty & /*$value*/ 32768) {
|
6579
6637
|
$$invalidate(3, _value = $value[0]);
|
6580
6638
|
}
|
6581
6639
|
};
|
@@ -6587,6 +6645,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
6587
6645
|
_value,
|
6588
6646
|
_options,
|
6589
6647
|
buttonStyle,
|
6648
|
+
fontCss,
|
6590
6649
|
value,
|
6591
6650
|
handleChange,
|
6592
6651
|
options,
|
@@ -6611,14 +6670,14 @@ class FormRadioButtons extends SvelteComponent {
|
|
6611
6670
|
safe_not_equal,
|
6612
6671
|
{
|
6613
6672
|
name: 0,
|
6614
|
-
options:
|
6615
|
-
required:
|
6673
|
+
options: 9,
|
6674
|
+
required: 10,
|
6616
6675
|
_layoutStyle: 1,
|
6617
|
-
font:
|
6676
|
+
font: 11,
|
6618
6677
|
_textStyle: 2,
|
6619
|
-
buttonSize:
|
6620
|
-
buttonColor:
|
6621
|
-
buttonColorActive:
|
6678
|
+
buttonSize: 12,
|
6679
|
+
buttonColor: 13,
|
6680
|
+
buttonColorActive: 14
|
6622
6681
|
},
|
6623
6682
|
add_css$f
|
6624
6683
|
);
|
@@ -6638,7 +6697,7 @@ function get_each_context$4(ctx, list, i) {
|
|
6638
6697
|
return child_ctx;
|
6639
6698
|
}
|
6640
6699
|
|
6641
|
-
// (
|
6700
|
+
// (107:10) {:else}
|
6642
6701
|
function create_else_block(ctx) {
|
6643
6702
|
let t;
|
6644
6703
|
|
@@ -6658,7 +6717,7 @@ function create_else_block(ctx) {
|
|
6658
6717
|
};
|
6659
6718
|
}
|
6660
6719
|
|
6661
|
-
// (
|
6720
|
+
// (105:10) {#if option}
|
6662
6721
|
function create_if_block$2(ctx) {
|
6663
6722
|
let t_value = /*option*/ ctx[19] + "";
|
6664
6723
|
let t;
|
@@ -6679,7 +6738,7 @@ function create_if_block$2(ctx) {
|
|
6679
6738
|
};
|
6680
6739
|
}
|
6681
6740
|
|
6682
|
-
// (
|
6741
|
+
// (103:6) {#each _options as option, i}
|
6683
6742
|
function create_each_block$4(ctx) {
|
6684
6743
|
let option;
|
6685
6744
|
let t;
|
@@ -6890,11 +6949,12 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
6890
6949
|
$$invalidate(1, _value = $value[0]);
|
6891
6950
|
}
|
6892
6951
|
|
6893
|
-
if ($$self.$$.dirty & /*_style, _textStyle, _value, _placeholderStyle*/
|
6952
|
+
if ($$self.$$.dirty & /*_style, _textStyle, _value, _placeholderStyle, font*/ 29698) {
|
6894
6953
|
$$invalidate(3, style = [
|
6895
6954
|
..._style.split(';'),
|
6896
6955
|
..._textStyle.split(';'),
|
6897
|
-
...!_value ? _placeholderStyle.split(';') : []
|
6956
|
+
...!_value ? _placeholderStyle.split(';') : [],
|
6957
|
+
`font-family:${font}`
|
6898
6958
|
].join(';'));
|
6899
6959
|
}
|
6900
6960
|
|
@@ -6902,11 +6962,10 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
6902
6962
|
$$invalidate(2, styleVariables = (() => {
|
6903
6963
|
const variables = {};
|
6904
6964
|
const focusStyleObj = parseStyle(_focusStyle);
|
6905
|
-
|
6965
|
+
parseStyle(_placeholderStyle);
|
6906
6966
|
if (focusStyleObj['border-width']) variables['--focus-border-width'] = focusStyleObj['border-width'];
|
6907
6967
|
if (focusStyleObj['border-color']) variables['--focus-border-color'] = focusStyleObj['border-color'];
|
6908
6968
|
if (focusStyleObj['border-style']) variables['--focus-border-style'] = focusStyleObj['border-style'];
|
6909
|
-
if (placeholderStyle.color) variables['--placeholder-color'] = placeholderStyle.color;
|
6910
6969
|
variables['--icon-color'] = iconColor;
|
6911
6970
|
variables['--icon-size'] = iconSize;
|
6912
6971
|
return stringifyStyleObj(variables);
|
@@ -7409,9 +7468,11 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
7409
7468
|
};
|
7410
7469
|
|
7411
7470
|
function getTextButtonStyle(isActive) {
|
7412
|
-
return
|
7413
|
-
|
7414
|
-
|
7471
|
+
return [
|
7472
|
+
...buttonStyle.split(';'),
|
7473
|
+
`font-family:${font}`,
|
7474
|
+
...isActive ? buttonActiveStyle : []
|
7475
|
+
].join(';');
|
7415
7476
|
}
|
7416
7477
|
|
7417
7478
|
$$self.$$set = $$props => {
|