@plaidev/karte-action-sdk 1.1.257-28905538.3ad26349 → 1.1.257-28941288.f09c2b35
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 +54 -33
- package/dist/index.es.js +54 -33
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -17160,6 +17160,33 @@ class Slider extends SvelteComponent {
|
|
17160
17160
|
}
|
17161
17161
|
}
|
17162
17162
|
|
17163
|
+
const TEXT_THEME_STYLES = {
|
17164
|
+
default: {
|
17165
|
+
color: BRAND_KIT.colors.text_primary.main,
|
17166
|
+
},
|
17167
|
+
gray: {
|
17168
|
+
color: BRAND_KIT.colors.text_secondary.main,
|
17169
|
+
},
|
17170
|
+
brand: {
|
17171
|
+
color: BRAND_KIT.colors.brand.main,
|
17172
|
+
},
|
17173
|
+
success: {
|
17174
|
+
color: BRAND_KIT.colors.success.main,
|
17175
|
+
},
|
17176
|
+
warning: {
|
17177
|
+
color: BRAND_KIT.colors.warning.main,
|
17178
|
+
},
|
17179
|
+
danger: {
|
17180
|
+
color: BRAND_KIT.colors.danger.main,
|
17181
|
+
},
|
17182
|
+
info: {
|
17183
|
+
color: BRAND_KIT.colors.info.main,
|
17184
|
+
},
|
17185
|
+
white: {
|
17186
|
+
color: BRAND_KIT.colors.white.main,
|
17187
|
+
},
|
17188
|
+
};
|
17189
|
+
|
17163
17190
|
const TEXT_VARIANTS = {
|
17164
17191
|
size: {
|
17165
17192
|
extra_small: {
|
@@ -17215,33 +17242,6 @@ const TEXT_VARIANTS = {
|
|
17215
17242
|
},
|
17216
17243
|
};
|
17217
17244
|
|
17218
|
-
const TEXT_THEME_STYLES = {
|
17219
|
-
default: {
|
17220
|
-
color: BRAND_KIT.colors.text_primary.main,
|
17221
|
-
},
|
17222
|
-
gray: {
|
17223
|
-
color: BRAND_KIT.colors.text_secondary.main,
|
17224
|
-
},
|
17225
|
-
brand: {
|
17226
|
-
color: BRAND_KIT.colors.brand.main,
|
17227
|
-
},
|
17228
|
-
success: {
|
17229
|
-
color: BRAND_KIT.colors.success.main,
|
17230
|
-
},
|
17231
|
-
warning: {
|
17232
|
-
color: BRAND_KIT.colors.warning.main,
|
17233
|
-
},
|
17234
|
-
danger: {
|
17235
|
-
color: BRAND_KIT.colors.danger.main,
|
17236
|
-
},
|
17237
|
-
info: {
|
17238
|
-
color: BRAND_KIT.colors.info.main,
|
17239
|
-
},
|
17240
|
-
white: {
|
17241
|
-
color: BRAND_KIT.colors.white.main,
|
17242
|
-
},
|
17243
|
-
};
|
17244
|
-
|
17245
17245
|
/* src/components-flex/text/Text.svelte generated by Svelte v3.53.1 */
|
17246
17246
|
|
17247
17247
|
function add_css$4(target) {
|
@@ -17305,14 +17305,35 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
17305
17305
|
addFont(props.fontFamily);
|
17306
17306
|
}
|
17307
17307
|
|
17308
|
-
const
|
17308
|
+
const getColor = () => {
|
17309
|
+
if (props.color) return props.color;
|
17310
|
+
if (props.theme) return TEXT_THEME_STYLES[props.theme].color;
|
17311
|
+
return undefined;
|
17312
|
+
};
|
17309
17313
|
|
17310
17314
|
const getCssSize = () => {
|
17315
|
+
const getFontSize = () => {
|
17316
|
+
if (props.fontSize) return props.fontSize;
|
17317
|
+
if (props.size) return TEXT_VARIANTS.size[props.size].fontSize;
|
17318
|
+
return undefined;
|
17319
|
+
};
|
17320
|
+
|
17321
|
+
const getLineHeight = () => {
|
17322
|
+
if (props.lineHeight) return props.lineHeight;
|
17323
|
+
if (props.size) return TEXT_VARIANTS.size[props.size].lineHeight;
|
17324
|
+
return undefined;
|
17325
|
+
};
|
17326
|
+
|
17327
|
+
const getFontWeight = () => {
|
17328
|
+
if (props.fontWeight) return props.fontWeight;
|
17329
|
+
if (props.size) return TEXT_VARIANTS.size[props.size].fontWeight;
|
17330
|
+
return undefined;
|
17331
|
+
};
|
17332
|
+
|
17311
17333
|
return {
|
17312
|
-
fontSize:
|
17313
|
-
lineHeight:
|
17314
|
-
|
17315
|
-
fontWeight: props.fontWeight ?? (TEXT_VARIANTS.size[props.size ?? 'medium'].fontWeight ?? 'normal')
|
17334
|
+
fontSize: getFontSize(),
|
17335
|
+
lineHeight: getLineHeight(),
|
17336
|
+
fontWeight: getFontWeight()
|
17316
17337
|
};
|
17317
17338
|
};
|
17318
17339
|
|
@@ -17329,10 +17350,10 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
17329
17350
|
if ($$self.$$.dirty & /*props*/ 8) {
|
17330
17351
|
$$invalidate(1, style = objToStyle({
|
17331
17352
|
position: props?.position ?? 'static',
|
17332
|
-
color: props.color ?? themeStyle.color,
|
17333
17353
|
textAlign: props.align,
|
17334
17354
|
width: props.width,
|
17335
17355
|
fontFamily: props.fontFamily,
|
17356
|
+
color: getColor(),
|
17336
17357
|
...getCssSize(),
|
17337
17358
|
...toCssRadius(props),
|
17338
17359
|
...toCssBackgroundColor(props),
|
package/dist/index.es.js
CHANGED
@@ -15882,6 +15882,33 @@ class Slider extends SvelteComponent {
|
|
15882
15882
|
}
|
15883
15883
|
}
|
15884
15884
|
|
15885
|
+
const TEXT_THEME_STYLES = {
|
15886
|
+
default: {
|
15887
|
+
color: BRAND_KIT.colors.text_primary.main,
|
15888
|
+
},
|
15889
|
+
gray: {
|
15890
|
+
color: BRAND_KIT.colors.text_secondary.main,
|
15891
|
+
},
|
15892
|
+
brand: {
|
15893
|
+
color: BRAND_KIT.colors.brand.main,
|
15894
|
+
},
|
15895
|
+
success: {
|
15896
|
+
color: BRAND_KIT.colors.success.main,
|
15897
|
+
},
|
15898
|
+
warning: {
|
15899
|
+
color: BRAND_KIT.colors.warning.main,
|
15900
|
+
},
|
15901
|
+
danger: {
|
15902
|
+
color: BRAND_KIT.colors.danger.main,
|
15903
|
+
},
|
15904
|
+
info: {
|
15905
|
+
color: BRAND_KIT.colors.info.main,
|
15906
|
+
},
|
15907
|
+
white: {
|
15908
|
+
color: BRAND_KIT.colors.white.main,
|
15909
|
+
},
|
15910
|
+
};
|
15911
|
+
|
15885
15912
|
const TEXT_VARIANTS = {
|
15886
15913
|
size: {
|
15887
15914
|
extra_small: {
|
@@ -15937,33 +15964,6 @@ const TEXT_VARIANTS = {
|
|
15937
15964
|
},
|
15938
15965
|
};
|
15939
15966
|
|
15940
|
-
const TEXT_THEME_STYLES = {
|
15941
|
-
default: {
|
15942
|
-
color: BRAND_KIT.colors.text_primary.main,
|
15943
|
-
},
|
15944
|
-
gray: {
|
15945
|
-
color: BRAND_KIT.colors.text_secondary.main,
|
15946
|
-
},
|
15947
|
-
brand: {
|
15948
|
-
color: BRAND_KIT.colors.brand.main,
|
15949
|
-
},
|
15950
|
-
success: {
|
15951
|
-
color: BRAND_KIT.colors.success.main,
|
15952
|
-
},
|
15953
|
-
warning: {
|
15954
|
-
color: BRAND_KIT.colors.warning.main,
|
15955
|
-
},
|
15956
|
-
danger: {
|
15957
|
-
color: BRAND_KIT.colors.danger.main,
|
15958
|
-
},
|
15959
|
-
info: {
|
15960
|
-
color: BRAND_KIT.colors.info.main,
|
15961
|
-
},
|
15962
|
-
white: {
|
15963
|
-
color: BRAND_KIT.colors.white.main,
|
15964
|
-
},
|
15965
|
-
};
|
15966
|
-
|
15967
15967
|
/* src/components-flex/text/Text.svelte generated by Svelte v3.53.1 */
|
15968
15968
|
|
15969
15969
|
function add_css$4(target) {
|
@@ -16013,14 +16013,35 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
16013
16013
|
addFont(props.fontFamily);
|
16014
16014
|
}
|
16015
16015
|
|
16016
|
-
const
|
16016
|
+
const getColor = () => {
|
16017
|
+
if (props.color) return props.color;
|
16018
|
+
if (props.theme) return TEXT_THEME_STYLES[props.theme].color;
|
16019
|
+
return undefined;
|
16020
|
+
};
|
16017
16021
|
|
16018
16022
|
const getCssSize = () => {
|
16023
|
+
const getFontSize = () => {
|
16024
|
+
if (props.fontSize) return props.fontSize;
|
16025
|
+
if (props.size) return TEXT_VARIANTS.size[props.size].fontSize;
|
16026
|
+
return undefined;
|
16027
|
+
};
|
16028
|
+
|
16029
|
+
const getLineHeight = () => {
|
16030
|
+
if (props.lineHeight) return props.lineHeight;
|
16031
|
+
if (props.size) return TEXT_VARIANTS.size[props.size].lineHeight;
|
16032
|
+
return undefined;
|
16033
|
+
};
|
16034
|
+
|
16035
|
+
const getFontWeight = () => {
|
16036
|
+
if (props.fontWeight) return props.fontWeight;
|
16037
|
+
if (props.size) return TEXT_VARIANTS.size[props.size].fontWeight;
|
16038
|
+
return undefined;
|
16039
|
+
};
|
16040
|
+
|
16019
16041
|
return {
|
16020
|
-
fontSize:
|
16021
|
-
lineHeight:
|
16022
|
-
|
16023
|
-
fontWeight: props.fontWeight ?? (TEXT_VARIANTS.size[props.size ?? 'medium'].fontWeight ?? 'normal')
|
16042
|
+
fontSize: getFontSize(),
|
16043
|
+
lineHeight: getLineHeight(),
|
16044
|
+
fontWeight: getFontWeight()
|
16024
16045
|
};
|
16025
16046
|
};
|
16026
16047
|
|
@@ -16037,10 +16058,10 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
16037
16058
|
if ($$self.$$.dirty & /*props*/ 8) {
|
16038
16059
|
$$invalidate(1, style = objToStyle({
|
16039
16060
|
position: props?.position ?? 'static',
|
16040
|
-
color: props.color ?? themeStyle.color,
|
16041
16061
|
textAlign: props.align,
|
16042
16062
|
width: props.width,
|
16043
16063
|
fontFamily: props.fontFamily,
|
16064
|
+
color: getColor(),
|
16044
16065
|
...getCssSize(),
|
16045
16066
|
...toCssRadius(props),
|
16046
16067
|
...toCssBackgroundColor(props),
|