@plaidev/karte-action-sdk 1.1.231-28647826.fe0ccff6 → 1.1.231-28653407.2511e2dc
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/hydrate/index.es.js +91 -52
- package/dist/index.es.js +91 -52
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -13622,6 +13622,67 @@ const objToStyle = (obj) => {
|
|
13622
13622
|
return styles.join(' ');
|
13623
13623
|
};
|
13624
13624
|
|
13625
|
+
const toCssPosition = (p) => {
|
13626
|
+
return {
|
13627
|
+
position: p?.position ?? 'static',
|
13628
|
+
top: p?.top,
|
13629
|
+
left: p?.left,
|
13630
|
+
bottom: p?.bottom,
|
13631
|
+
right: p?.right,
|
13632
|
+
};
|
13633
|
+
};
|
13634
|
+
const toCssCommon = (p) => {
|
13635
|
+
return {
|
13636
|
+
...toCssPosition(p),
|
13637
|
+
};
|
13638
|
+
};
|
13639
|
+
const toCssBorder = (p) => {
|
13640
|
+
const borderWidth = p?.borderTopWidth ?? p?.borderRightWidth ?? p?.borderLeftWidth ?? p?.borderBottomWidth ?? null;
|
13641
|
+
if (borderWidth === null)
|
13642
|
+
return {};
|
13643
|
+
return {
|
13644
|
+
borderColor: p?.borderColor,
|
13645
|
+
borderStyle: 'solid',
|
13646
|
+
borderTopWidth: p?.borderTopWidth,
|
13647
|
+
borderLeftWidth: p?.borderLeftWidth,
|
13648
|
+
borderRightWidth: p?.borderRightWidth,
|
13649
|
+
borderBottomWidth: p?.borderBottomWidth,
|
13650
|
+
};
|
13651
|
+
};
|
13652
|
+
const toCssPadding = (p) => {
|
13653
|
+
return {
|
13654
|
+
paddingTop: p?.paddingTop,
|
13655
|
+
paddingLeft: p?.paddingLeft,
|
13656
|
+
paddingRight: p?.paddingRight,
|
13657
|
+
paddingBottom: p?.paddingBottom,
|
13658
|
+
};
|
13659
|
+
};
|
13660
|
+
const toCssBackgroundImage = (p) => {
|
13661
|
+
const url = p?.backgroundImageUrl;
|
13662
|
+
return {
|
13663
|
+
backgroundImage: url ? `url(${url})` : undefined,
|
13664
|
+
backgroundSize: url ? 'cover' : undefined,
|
13665
|
+
};
|
13666
|
+
};
|
13667
|
+
const toCssBackgroundColor = (p) => {
|
13668
|
+
return {
|
13669
|
+
backgroundColor: p?.backgroundColor,
|
13670
|
+
};
|
13671
|
+
};
|
13672
|
+
const toCssRadius = (p) => {
|
13673
|
+
return {
|
13674
|
+
borderTopLeftRadius: p?.borderTopLeftRadius,
|
13675
|
+
borderTopRightRadius: p?.borderTopRightRadius,
|
13676
|
+
borderBottomLeftRadius: p?.borderBottomLeftRadius,
|
13677
|
+
borderBottomRightRadius: p?.borderBottomRightRadius,
|
13678
|
+
};
|
13679
|
+
};
|
13680
|
+
const toCssShadow = (p) => {
|
13681
|
+
return {
|
13682
|
+
boxShadow: p?.shadow,
|
13683
|
+
};
|
13684
|
+
};
|
13685
|
+
|
13625
13686
|
/* src/components-v2/icon/Icon.svelte generated by Svelte v3.53.1 */
|
13626
13687
|
|
13627
13688
|
function create_if_block$3(ctx) {
|
@@ -13801,7 +13862,8 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
13801
13862
|
overflow: 'hidden',
|
13802
13863
|
width: 'auto',
|
13803
13864
|
minWidth: props.size,
|
13804
|
-
height: props.size
|
13865
|
+
height: props.size,
|
13866
|
+
...toCssCommon(props)
|
13805
13867
|
}));
|
13806
13868
|
}
|
13807
13869
|
|
@@ -14108,15 +14170,13 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
14108
14170
|
$$self.$$.update = () => {
|
14109
14171
|
if ($$self.$$.dirty & /*props*/ 2) {
|
14110
14172
|
$$invalidate(3, style = objToStyle({
|
14111
|
-
|
14112
|
-
|
14113
|
-
|
14114
|
-
|
14115
|
-
|
14116
|
-
|
14117
|
-
|
14118
|
-
transition: 'background-color 0.12s, border-color 0.12s, color 0.12s'
|
14119
|
-
},
|
14173
|
+
display: 'inline-flex',
|
14174
|
+
gap: '0.65em',
|
14175
|
+
alignItems: 'center',
|
14176
|
+
justifyContent: 'center',
|
14177
|
+
outline: 0,
|
14178
|
+
border: 0,
|
14179
|
+
transition: 'background-color 0.12s, border-color 0.12s, color 0.12s',
|
14120
14180
|
width: props.width,
|
14121
14181
|
...VARIANTS.size[props.size ?? 'medium'],
|
14122
14182
|
...VARIANTS.color[props.color ?? 'default'],
|
@@ -14124,7 +14184,8 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
14124
14184
|
...VARIANTS.round[props.round ?? 'default'],
|
14125
14185
|
...props.iconAngle
|
14126
14186
|
? { flexDirection: props.iconAngle }
|
14127
|
-
: {}
|
14187
|
+
: {},
|
14188
|
+
...toCssCommon(props)
|
14128
14189
|
}));
|
14129
14190
|
}
|
14130
14191
|
};
|
@@ -14165,23 +14226,6 @@ class Button extends SvelteComponent {
|
|
14165
14226
|
}
|
14166
14227
|
}
|
14167
14228
|
|
14168
|
-
const toCssBorder = (p) => {
|
14169
|
-
return {
|
14170
|
-
borderStyle: p?.style,
|
14171
|
-
borderColor: p?.color,
|
14172
|
-
borderWidth: p ? `${p.size}px` : undefined,
|
14173
|
-
};
|
14174
|
-
};
|
14175
|
-
const toCssPosition = (p) => {
|
14176
|
-
return {
|
14177
|
-
position: p?.position ?? 'static',
|
14178
|
-
top: p?.top,
|
14179
|
-
left: p?.left,
|
14180
|
-
bottom: p?.bottom,
|
14181
|
-
right: p?.right,
|
14182
|
-
};
|
14183
|
-
};
|
14184
|
-
|
14185
14229
|
/* src/components-v2/layout/Layout.svelte generated by Svelte v3.53.1 */
|
14186
14230
|
|
14187
14231
|
function create_fragment$4(ctx) {
|
@@ -14283,20 +14327,14 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
14283
14327
|
justifyContent: props.justify,
|
14284
14328
|
rowGap: props.rowGap,
|
14285
14329
|
columnGap: props.columnGap,
|
14286
|
-
backgroundColor: props.backgroundColor,
|
14287
|
-
boxShadow: props.shadow,
|
14288
|
-
paddingTop: props.paddingTop,
|
14289
|
-
paddingLeft: props.paddingLeft,
|
14290
|
-
paddingRight: props.paddingRight,
|
14291
|
-
paddingBottom: props.paddingBottom,
|
14292
|
-
borderRadius: props.borderRadius,
|
14293
14330
|
width: props.width,
|
14294
|
-
...
|
14295
|
-
...
|
14296
|
-
...props.backgroundImage
|
14297
|
-
|
14298
|
-
|
14299
|
-
|
14331
|
+
...toCssShadow(props),
|
14332
|
+
...toCssRadius(props),
|
14333
|
+
...toCssBackgroundImage(props.backgroundImage),
|
14334
|
+
...toCssBackgroundColor(props),
|
14335
|
+
...toCssCommon(props),
|
14336
|
+
...toCssPadding(props),
|
14337
|
+
...toCssBorder(props)
|
14300
14338
|
}));
|
14301
14339
|
}
|
14302
14340
|
};
|
@@ -14357,7 +14395,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
14357
14395
|
let escapedHTML;
|
14358
14396
|
let style;
|
14359
14397
|
let { layerId } = $$props;
|
14360
|
-
let { props = {} } = $$props;
|
14398
|
+
let { props = { content: '' } } = $$props;
|
14361
14399
|
|
14362
14400
|
$$self.$$set = $$props => {
|
14363
14401
|
if ('layerId' in $$props) $$invalidate(0, layerId = $$props.layerId);
|
@@ -14375,16 +14413,15 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
14375
14413
|
position: props?.position ?? 'static',
|
14376
14414
|
fontWeight: props.fontWeight,
|
14377
14415
|
fontSize: props.fontSize,
|
14416
|
+
color: props.color,
|
14378
14417
|
textAlign: props.align,
|
14379
14418
|
wordBreak: 'break-all',
|
14380
|
-
backgroundColor: props.backgroundColor,
|
14381
|
-
paddingTop: props.paddingTop,
|
14382
|
-
paddingLeft: props.paddingLeft,
|
14383
|
-
paddingRight: props.paddingRight,
|
14384
|
-
paddingBottom: props.paddingBottom,
|
14385
|
-
borderRadius: props.borderRadius,
|
14386
14419
|
width: props.width,
|
14387
|
-
...
|
14420
|
+
...toCssRadius(props),
|
14421
|
+
...toCssBackgroundColor(props),
|
14422
|
+
...toCssCommon(props),
|
14423
|
+
...toCssPosition(props),
|
14424
|
+
...toCssBorder(props)
|
14388
14425
|
}));
|
14389
14426
|
}
|
14390
14427
|
};
|
@@ -14532,7 +14569,8 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
14532
14569
|
width: `${size}px`,
|
14533
14570
|
height: `${size}px`,
|
14534
14571
|
...VARIANTS.shape[props.shape ?? 'square'],
|
14535
|
-
...props.bordered && { border: `1px solid #dbdbdb` }
|
14572
|
+
...props.bordered && { border: `1px solid #dbdbdb` },
|
14573
|
+
...toCssCommon(props)
|
14536
14574
|
}));
|
14537
14575
|
}
|
14538
14576
|
};
|
@@ -14683,7 +14721,8 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
14683
14721
|
alignItems: 'center',
|
14684
14722
|
justifyContent: 'center',
|
14685
14723
|
overflow: 'hidden',
|
14686
|
-
wordBreak: 'break-all'
|
14724
|
+
wordBreak: 'break-all',
|
14725
|
+
...toCssCommon(props)
|
14687
14726
|
}));
|
14688
14727
|
}
|
14689
14728
|
|
@@ -14805,7 +14844,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
14805
14844
|
width: `${size}px`,
|
14806
14845
|
height: `${size}px`,
|
14807
14846
|
...props.bordered && { border: '1px solid #666' },
|
14808
|
-
...
|
14847
|
+
...toCssCommon(props)
|
14809
14848
|
}));
|
14810
14849
|
}
|
14811
14850
|
};
|
package/dist/index.es.js
CHANGED
@@ -12664,6 +12664,67 @@ const objToStyle = (obj) => {
|
|
12664
12664
|
return styles.join(' ');
|
12665
12665
|
};
|
12666
12666
|
|
12667
|
+
const toCssPosition = (p) => {
|
12668
|
+
return {
|
12669
|
+
position: p?.position ?? 'static',
|
12670
|
+
top: p?.top,
|
12671
|
+
left: p?.left,
|
12672
|
+
bottom: p?.bottom,
|
12673
|
+
right: p?.right,
|
12674
|
+
};
|
12675
|
+
};
|
12676
|
+
const toCssCommon = (p) => {
|
12677
|
+
return {
|
12678
|
+
...toCssPosition(p),
|
12679
|
+
};
|
12680
|
+
};
|
12681
|
+
const toCssBorder = (p) => {
|
12682
|
+
const borderWidth = p?.borderTopWidth ?? p?.borderRightWidth ?? p?.borderLeftWidth ?? p?.borderBottomWidth ?? null;
|
12683
|
+
if (borderWidth === null)
|
12684
|
+
return {};
|
12685
|
+
return {
|
12686
|
+
borderColor: p?.borderColor,
|
12687
|
+
borderStyle: 'solid',
|
12688
|
+
borderTopWidth: p?.borderTopWidth,
|
12689
|
+
borderLeftWidth: p?.borderLeftWidth,
|
12690
|
+
borderRightWidth: p?.borderRightWidth,
|
12691
|
+
borderBottomWidth: p?.borderBottomWidth,
|
12692
|
+
};
|
12693
|
+
};
|
12694
|
+
const toCssPadding = (p) => {
|
12695
|
+
return {
|
12696
|
+
paddingTop: p?.paddingTop,
|
12697
|
+
paddingLeft: p?.paddingLeft,
|
12698
|
+
paddingRight: p?.paddingRight,
|
12699
|
+
paddingBottom: p?.paddingBottom,
|
12700
|
+
};
|
12701
|
+
};
|
12702
|
+
const toCssBackgroundImage = (p) => {
|
12703
|
+
const url = p?.backgroundImageUrl;
|
12704
|
+
return {
|
12705
|
+
backgroundImage: url ? `url(${url})` : undefined,
|
12706
|
+
backgroundSize: url ? 'cover' : undefined,
|
12707
|
+
};
|
12708
|
+
};
|
12709
|
+
const toCssBackgroundColor = (p) => {
|
12710
|
+
return {
|
12711
|
+
backgroundColor: p?.backgroundColor,
|
12712
|
+
};
|
12713
|
+
};
|
12714
|
+
const toCssRadius = (p) => {
|
12715
|
+
return {
|
12716
|
+
borderTopLeftRadius: p?.borderTopLeftRadius,
|
12717
|
+
borderTopRightRadius: p?.borderTopRightRadius,
|
12718
|
+
borderBottomLeftRadius: p?.borderBottomLeftRadius,
|
12719
|
+
borderBottomRightRadius: p?.borderBottomRightRadius,
|
12720
|
+
};
|
12721
|
+
};
|
12722
|
+
const toCssShadow = (p) => {
|
12723
|
+
return {
|
12724
|
+
boxShadow: p?.shadow,
|
12725
|
+
};
|
12726
|
+
};
|
12727
|
+
|
12667
12728
|
/* src/components-v2/icon/Icon.svelte generated by Svelte v3.53.1 */
|
12668
12729
|
|
12669
12730
|
function create_if_block$3(ctx) {
|
@@ -12824,7 +12885,8 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
12824
12885
|
overflow: 'hidden',
|
12825
12886
|
width: 'auto',
|
12826
12887
|
minWidth: props.size,
|
12827
|
-
height: props.size
|
12888
|
+
height: props.size,
|
12889
|
+
...toCssCommon(props)
|
12828
12890
|
}));
|
12829
12891
|
}
|
12830
12892
|
|
@@ -13101,15 +13163,13 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
13101
13163
|
$$self.$$.update = () => {
|
13102
13164
|
if ($$self.$$.dirty & /*props*/ 2) {
|
13103
13165
|
$$invalidate(3, style = objToStyle({
|
13104
|
-
|
13105
|
-
|
13106
|
-
|
13107
|
-
|
13108
|
-
|
13109
|
-
|
13110
|
-
|
13111
|
-
transition: 'background-color 0.12s, border-color 0.12s, color 0.12s'
|
13112
|
-
},
|
13166
|
+
display: 'inline-flex',
|
13167
|
+
gap: '0.65em',
|
13168
|
+
alignItems: 'center',
|
13169
|
+
justifyContent: 'center',
|
13170
|
+
outline: 0,
|
13171
|
+
border: 0,
|
13172
|
+
transition: 'background-color 0.12s, border-color 0.12s, color 0.12s',
|
13113
13173
|
width: props.width,
|
13114
13174
|
...VARIANTS.size[props.size ?? 'medium'],
|
13115
13175
|
...VARIANTS.color[props.color ?? 'default'],
|
@@ -13117,7 +13177,8 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
13117
13177
|
...VARIANTS.round[props.round ?? 'default'],
|
13118
13178
|
...props.iconAngle
|
13119
13179
|
? { flexDirection: props.iconAngle }
|
13120
|
-
: {}
|
13180
|
+
: {},
|
13181
|
+
...toCssCommon(props)
|
13121
13182
|
}));
|
13122
13183
|
}
|
13123
13184
|
};
|
@@ -13158,23 +13219,6 @@ class Button extends SvelteComponent {
|
|
13158
13219
|
}
|
13159
13220
|
}
|
13160
13221
|
|
13161
|
-
const toCssBorder = (p) => {
|
13162
|
-
return {
|
13163
|
-
borderStyle: p?.style,
|
13164
|
-
borderColor: p?.color,
|
13165
|
-
borderWidth: p ? `${p.size}px` : undefined,
|
13166
|
-
};
|
13167
|
-
};
|
13168
|
-
const toCssPosition = (p) => {
|
13169
|
-
return {
|
13170
|
-
position: p?.position ?? 'static',
|
13171
|
-
top: p?.top,
|
13172
|
-
left: p?.left,
|
13173
|
-
bottom: p?.bottom,
|
13174
|
-
right: p?.right,
|
13175
|
-
};
|
13176
|
-
};
|
13177
|
-
|
13178
13222
|
/* src/components-v2/layout/Layout.svelte generated by Svelte v3.53.1 */
|
13179
13223
|
|
13180
13224
|
function create_fragment$4(ctx) {
|
@@ -13261,20 +13305,14 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
13261
13305
|
justifyContent: props.justify,
|
13262
13306
|
rowGap: props.rowGap,
|
13263
13307
|
columnGap: props.columnGap,
|
13264
|
-
backgroundColor: props.backgroundColor,
|
13265
|
-
boxShadow: props.shadow,
|
13266
|
-
paddingTop: props.paddingTop,
|
13267
|
-
paddingLeft: props.paddingLeft,
|
13268
|
-
paddingRight: props.paddingRight,
|
13269
|
-
paddingBottom: props.paddingBottom,
|
13270
|
-
borderRadius: props.borderRadius,
|
13271
13308
|
width: props.width,
|
13272
|
-
...
|
13273
|
-
...
|
13274
|
-
...props.backgroundImage
|
13275
|
-
|
13276
|
-
|
13277
|
-
|
13309
|
+
...toCssShadow(props),
|
13310
|
+
...toCssRadius(props),
|
13311
|
+
...toCssBackgroundImage(props.backgroundImage),
|
13312
|
+
...toCssBackgroundColor(props),
|
13313
|
+
...toCssCommon(props),
|
13314
|
+
...toCssPadding(props),
|
13315
|
+
...toCssBorder(props)
|
13278
13316
|
}));
|
13279
13317
|
}
|
13280
13318
|
};
|
@@ -13326,7 +13364,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
13326
13364
|
let escapedHTML;
|
13327
13365
|
let style;
|
13328
13366
|
let { layerId } = $$props;
|
13329
|
-
let { props = {} } = $$props;
|
13367
|
+
let { props = { content: '' } } = $$props;
|
13330
13368
|
|
13331
13369
|
$$self.$$set = $$props => {
|
13332
13370
|
if ('layerId' in $$props) $$invalidate(0, layerId = $$props.layerId);
|
@@ -13344,16 +13382,15 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
13344
13382
|
position: props?.position ?? 'static',
|
13345
13383
|
fontWeight: props.fontWeight,
|
13346
13384
|
fontSize: props.fontSize,
|
13385
|
+
color: props.color,
|
13347
13386
|
textAlign: props.align,
|
13348
13387
|
wordBreak: 'break-all',
|
13349
|
-
backgroundColor: props.backgroundColor,
|
13350
|
-
paddingTop: props.paddingTop,
|
13351
|
-
paddingLeft: props.paddingLeft,
|
13352
|
-
paddingRight: props.paddingRight,
|
13353
|
-
paddingBottom: props.paddingBottom,
|
13354
|
-
borderRadius: props.borderRadius,
|
13355
13388
|
width: props.width,
|
13356
|
-
...
|
13389
|
+
...toCssRadius(props),
|
13390
|
+
...toCssBackgroundColor(props),
|
13391
|
+
...toCssCommon(props),
|
13392
|
+
...toCssPosition(props),
|
13393
|
+
...toCssBorder(props)
|
13357
13394
|
}));
|
13358
13395
|
}
|
13359
13396
|
};
|
@@ -13482,7 +13519,8 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
13482
13519
|
width: `${size}px`,
|
13483
13520
|
height: `${size}px`,
|
13484
13521
|
...VARIANTS.shape[props.shape ?? 'square'],
|
13485
|
-
...props.bordered && { border: `1px solid #dbdbdb` }
|
13522
|
+
...props.bordered && { border: `1px solid #dbdbdb` },
|
13523
|
+
...toCssCommon(props)
|
13486
13524
|
}));
|
13487
13525
|
}
|
13488
13526
|
};
|
@@ -13616,7 +13654,8 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
13616
13654
|
alignItems: 'center',
|
13617
13655
|
justifyContent: 'center',
|
13618
13656
|
overflow: 'hidden',
|
13619
|
-
wordBreak: 'break-all'
|
13657
|
+
wordBreak: 'break-all',
|
13658
|
+
...toCssCommon(props)
|
13620
13659
|
}));
|
13621
13660
|
}
|
13622
13661
|
|
@@ -13717,7 +13756,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
13717
13756
|
width: `${size}px`,
|
13718
13757
|
height: `${size}px`,
|
13719
13758
|
...props.bordered && { border: '1px solid #666' },
|
13720
|
-
...
|
13759
|
+
...toCssCommon(props)
|
13721
13760
|
}));
|
13722
13761
|
}
|
13723
13762
|
};
|