@plaidev/karte-action-sdk 1.1.256-28876509.00a83155 → 1.1.256-28896802.16eb7121

Sign up to get free protection for your applications and to get access to all the features.
@@ -2343,10 +2343,7 @@ declare const afterUpdate: typeof afterUpdateSvelte;
2343
2343
  declare const tick: typeof tickSvelte;
2344
2344
  // @internal
2345
2345
  declare const LAYOUT_COMPONENT_NAMES: string[];
2346
- type PropStyles<Props extends Record<string, any>, K extends keyof Props> = Record<NonNullable<Props[K]>, Properties & Partial<{
2347
- hover: Properties;
2348
- active: Properties;
2349
- }>>;
2346
+ type PropStyles<Props extends Record<string, any>, K extends keyof Props> = Record<NonNullable<Props[K]>, Properties>;
2350
2347
  declare const SHADOW_VARIANT: {
2351
2348
  readonly extra_small: "XSmall";
2352
2349
  readonly small: "Small";
@@ -2393,13 +2390,13 @@ declare const BUTTON_ICON_ANGLE: {
2393
2390
  type ButtonProps = CommonProps & ClickableProps & ShadowProps & LinkProps & WithIconProps & BorderProps & {
2394
2391
  label?: string;
2395
2392
  // size
2396
- size?: keyof typeof BUTTON_SIZE;
2393
+ size?: keyof typeof BUTTON_SIZE | string;
2397
2394
  height?: Properties["height"];
2398
2395
  paddingLeft?: Properties["paddingLeft"];
2399
2396
  paddingRight?: Properties["paddingRight"];
2400
2397
  fontSize?: Properties["fontSize"];
2401
2398
  // theme
2402
- theme?: keyof typeof BUTTON_THEME;
2399
+ theme?: keyof typeof BUTTON_THEME | string;
2403
2400
  color?: Properties["color"];
2404
2401
  backgroundColor?: Properties["backgroundColor"];
2405
2402
  // others
@@ -2656,6 +2653,7 @@ type IconProps = CommonProps & ClickableProps & {
2656
2653
  width?: Properties$0["width"];
2657
2654
  height?: Properties$0["height"];
2658
2655
  };
2656
+ declare const ICON_SIZE_STYLES: PropStyles<IconProps, "size">;
2659
2657
  type ImageProps = CommonProps & {
2660
2658
  image?: string;
2661
2659
  width?: Properties["width"];
@@ -2733,7 +2731,7 @@ declare const TEXT_STYLE: {
2733
2731
  readonly normal: "normal";
2734
2732
  readonly italic: "italic";
2735
2733
  };
2736
- type LayerTextProps = CommonProps & BorderProps & RadiusProps & BackgroundColorProps & WithIconProps & LinkProps & ClickableProps & PaddingProps & {
2734
+ type LayerTextProps = CommonProps & BorderProps & RadiusProps & BackgroundColorProps & WithIconProps & LinkProps & ClickableProps & CustomizeCssProps & PaddingProps & {
2737
2735
  content: string;
2738
2736
  theme?: keyof typeof TEXT_THEME;
2739
2737
  size?: keyof typeof LAYER_TEXT_SIZE;
@@ -2861,7 +2859,7 @@ type BrandKit = {
2861
2859
  declare const BRAND_KIT: BrandKit;
2862
2860
  declare const SHADOW_STYLES: Record<keyof typeof SHADOW_VARIANT, Properties>;
2863
2861
  declare const ROUND_STYLES: Record<keyof typeof ROUND_VARIANT, Pick<Properties, "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius">>;
2864
- export { ACTION_HOOK_LABEL, KARTE_MODAL_ROOT, create, destroyAction, onCreate, onDestroy, showModal, destroy, initialize, finalize, loadGlobalScript, loadGlobalStyle, applyGlobalCss, getState, setState, getStates, isOpened, getVariables, setVariables, resetVariables, getEventHandlers, setEventHandlers, resetEventHandlers, getSystem, setSetting, eventHandlers, variables, formData, state, onScroll, onTime, getLogs, getEvents, logger, listenLogger, hideOnScroll, hideOnTime, showOnScroll, showOnTime, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, DefaultElasticity, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, RegExpProp, Image, LengthUnits, LengthUnit, Length, Color, FontWeight, SYSTEM_FONT, Fonts, Font, Justifies, Justify, Alignments, Alignment, FlexDirections, FlexDirection, ObjectFits, ObjectFit, ClipPaths, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, BoxShadow, Style, TransitState, WritingModes, WritingMode, DateTime, Icon, ListSeparatorTypes, EdgePosition, DefaultEdgePosition, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundTypes, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirections, ListDirection, ListContext, SlideButtonIcon, SlideButtonText, SlideButton, DefaultSlideButton, SlideButtonPosition, SlideNavigationButton, DefaultSlideNavigationButton, FormInputName, FormButtonColor, DefaultFormButtonColor, ModalStyle, ModalBreakPoint, DefaultModalBreakPoint, FormIdentifyTextFields, FormIdentifyTextField, FormIdentifyTextFieldValidations, FormIdentifyTextFieldPlaceholders, DefaultFormIdentifyTextField, FormIdentifyBooleanFields, FormIdentifyBooleanField, DefaultFormIdentifyBooleanField, showAction, closeAction, loadStyle, applyCss, onShow, onClose, onChangeState, getActionRoot, getCssVariables, show, close, ensureModalRoot, createApp, createFog, collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable, addChoiceAnswer, addFreeAnswer, removeAnswer, getAnsweredQuestion, getAnsweredQuestionIds, sendAnswer, sendAnswers, widget, onMount, onDestory, beforeUpdate, afterUpdate, tick, LAYOUT_COMPONENT_NAMES, PropStyles, SHADOW_VARIANT, ROUND_VARIANT, PositionProps, MetaProps, CustomizeCssProps, CommonProps, ClickableProps, OverflowProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, WithIconProps, LinkProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, BUTTON_SIZE, BUTTON_THEME, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, buttonPropsDefault, BUTTON_SIZE_STYLES, BUTTON_THEME_STYLES, BUTTON_ROUND_STYLES, BUTTON_WRAP_STYLES, ButtonOutlinedProps, buttonOutlinedPropsDefault, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_THEME_STYLES, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_TEXT_SIZE, BUTTON_TEXT_THEME, ButtonTextProps, BUTTON_TEXT_SIZE_STYLES, BUTTON_TEXT_THEME_STYLES, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, CLOSE_BUTTON_LABEL_PLACEMENT, CloseButtonProps, ICON_SIZE, ICON_VARIANTS, IconProps, ImageProps, LAYOUT_DISPLAY_TYPE, LayoutDisplayType, LAYOUT_DIRECTION, LayoutFlexDirection, LAYOUT_ALIGN, LayoutFlexAlign, LAYOUT_JUSTIFY, LayoutFlexJustify, LayerLayoutProps, SliderProps, LAYER_TEXT_SIZE, TEXT_THEME, TEXT_STYLE, LayerTextProps, TEXT_THEME_STYLES, TEXT_VARIANTS, TEXT_LINK_SIZE, TEXT_LINK_THEME, TEXT_LINK_UNDERLINE, TextLinkProps, TEXT_LINK_SIZE_STYLES, TEXT_LINK_THEME_STYLES, CodeProps, BrandKitColor, BrandKitColors, BrandKit, BRAND_KIT, SHADOW_STYLES, ROUND_STYLES };
2862
+ export { ACTION_HOOK_LABEL, KARTE_MODAL_ROOT, create, destroyAction, onCreate, onDestroy, showModal, destroy, initialize, finalize, loadGlobalScript, loadGlobalStyle, applyGlobalCss, getState, setState, getStates, isOpened, getVariables, setVariables, resetVariables, getEventHandlers, setEventHandlers, resetEventHandlers, getSystem, setSetting, eventHandlers, variables, formData, state, onScroll, onTime, getLogs, getEvents, logger, listenLogger, hideOnScroll, hideOnTime, showOnScroll, showOnTime, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, DefaultElasticity, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, RegExpProp, Image, LengthUnits, LengthUnit, Length, Color, FontWeight, SYSTEM_FONT, Fonts, Font, Justifies, Justify, Alignments, Alignment, FlexDirections, FlexDirection, ObjectFits, ObjectFit, ClipPaths, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, BoxShadow, Style, TransitState, WritingModes, WritingMode, DateTime, Icon, ListSeparatorTypes, EdgePosition, DefaultEdgePosition, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundTypes, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirections, ListDirection, ListContext, SlideButtonIcon, SlideButtonText, SlideButton, DefaultSlideButton, SlideButtonPosition, SlideNavigationButton, DefaultSlideNavigationButton, FormInputName, FormButtonColor, DefaultFormButtonColor, ModalStyle, ModalBreakPoint, DefaultModalBreakPoint, FormIdentifyTextFields, FormIdentifyTextField, FormIdentifyTextFieldValidations, FormIdentifyTextFieldPlaceholders, DefaultFormIdentifyTextField, FormIdentifyBooleanFields, FormIdentifyBooleanField, DefaultFormIdentifyBooleanField, showAction, closeAction, loadStyle, applyCss, onShow, onClose, onChangeState, getActionRoot, getCssVariables, show, close, ensureModalRoot, createApp, createFog, collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable, addChoiceAnswer, addFreeAnswer, removeAnswer, getAnsweredQuestion, getAnsweredQuestionIds, sendAnswer, sendAnswers, widget, onMount, onDestory, beforeUpdate, afterUpdate, tick, LAYOUT_COMPONENT_NAMES, PropStyles, SHADOW_VARIANT, ROUND_VARIANT, PositionProps, MetaProps, CustomizeCssProps, CommonProps, ClickableProps, OverflowProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, WithIconProps, LinkProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, BUTTON_SIZE, BUTTON_THEME, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, buttonPropsDefault, BUTTON_SIZE_STYLES, BUTTON_THEME_STYLES, BUTTON_ROUND_STYLES, BUTTON_WRAP_STYLES, ButtonOutlinedProps, buttonOutlinedPropsDefault, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_THEME_STYLES, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_TEXT_SIZE, BUTTON_TEXT_THEME, ButtonTextProps, BUTTON_TEXT_SIZE_STYLES, BUTTON_TEXT_THEME_STYLES, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, CLOSE_BUTTON_LABEL_PLACEMENT, CloseButtonProps, ICON_SIZE, ICON_VARIANTS, IconProps, ICON_SIZE_STYLES, ImageProps, LAYOUT_DISPLAY_TYPE, LayoutDisplayType, LAYOUT_DIRECTION, LayoutFlexDirection, LAYOUT_ALIGN, LayoutFlexAlign, LAYOUT_JUSTIFY, LayoutFlexJustify, LayerLayoutProps, SliderProps, LAYER_TEXT_SIZE, TEXT_THEME, TEXT_STYLE, LayerTextProps, TEXT_THEME_STYLES, TEXT_VARIANTS, TEXT_LINK_SIZE, TEXT_LINK_THEME, TEXT_LINK_UNDERLINE, TextLinkProps, TEXT_LINK_SIZE_STYLES, TEXT_LINK_THEME_STYLES, CodeProps, BrandKitColor, BrandKitColors, BrandKit, BRAND_KIT, SHADOW_STYLES, ROUND_STYLES };
2865
2863
  export type { SystemConfig, ActionVariables, ActionEventHandler, ActionProps, ActionOptions, ActionHook, ActionHookLog, ActionChangeStateHook, SendFunction, PublishFunction, OnScrollContext, OnScrollFunction, ScrollDirection, LogLevel, Log, Event, ActionCloseHook, ShowTrigger, CloseTrigger, CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequestConfig, ActionTableQueryRequestConfig, ActionTableRequestConfig };
2866
2864
  export { default as State } from './components/State.svelte';
2867
2865
  export { default as StateItem } from './components/StateItem.svelte';
@@ -15021,8 +15021,8 @@ function instance$b($$self, $$props, $$invalidate) {
15021
15021
  let { layerId = '' } = $$props;
15022
15022
  useInjectCustomizeCss(props);
15023
15023
  const { attributes, element, handleClick } = useClickable(props);
15024
- const buttonThemeStyle = BUTTON_THEME_STYLES[props.theme ?? buttonPropsDefault.theme];
15025
- const buttonSizeStyle = BUTTON_SIZE_STYLES[props.size ?? buttonPropsDefault.size];
15024
+ const buttonThemeStyle = BUTTON_THEME_STYLES[props.theme] || BUTTON_THEME_STYLES[buttonPropsDefault.theme];
15025
+ const buttonSizeStyle = BUTTON_SIZE_STYLES[props.size] || BUTTON_SIZE_STYLES[buttonPropsDefault.size];
15026
15026
 
15027
15027
  $$self.$$set = $$props => {
15028
15028
  if ('props' in $$props) $$invalidate(0, props = $$props.props);
@@ -15121,32 +15121,39 @@ const BUTTON_OUTLINED_SIZE_STYLES = {
15121
15121
  };
15122
15122
  const BUTTON_OUTLINED_THEME_STYLES = {
15123
15123
  default: {
15124
- backgroundColor: BRAND_KIT.colors.brand.main,
15125
- color: '#FFFFFF',
15124
+ color: BRAND_KIT.colors.brand.main,
15125
+ borderColor: BRAND_KIT.colors.brand.main,
15126
+ backgroundColor: '#FFFFFF',
15126
15127
  },
15127
15128
  general: {
15128
- backgroundColor: BRAND_KIT.colors.text_secondary.main,
15129
- color: '#FFFFFF',
15129
+ color: BRAND_KIT.colors.text_secondary.main,
15130
+ borderColor: BRAND_KIT.colors.text_secondary.main,
15131
+ backgroundColor: '#FFFFFF',
15130
15132
  },
15131
15133
  success: {
15132
- backgroundColor: BRAND_KIT.colors.success.main,
15133
- color: '#ffffff',
15134
+ color: BRAND_KIT.colors.success.main,
15135
+ borderColor: BRAND_KIT.colors.success.main,
15136
+ backgroundColor: '#FFFFFF',
15134
15137
  },
15135
15138
  warning: {
15136
- backgroundColor: BRAND_KIT.colors.warning.main,
15137
- color: '#ffffff',
15139
+ color: BRAND_KIT.colors.warning.main,
15140
+ borderColor: BRAND_KIT.colors.warning.main,
15141
+ backgroundColor: '#FFFFFF',
15138
15142
  },
15139
15143
  danger: {
15140
- backgroundColor: BRAND_KIT.colors.danger.main,
15141
- color: '#FFFFFF',
15144
+ color: BRAND_KIT.colors.danger.main,
15145
+ borderColor: BRAND_KIT.colors.danger.main,
15146
+ backgroundColor: '#FFFFFF',
15142
15147
  },
15143
15148
  info: {
15144
- backgroundColor: BRAND_KIT.colors.info.main,
15145
- color: '#FFFFFF',
15149
+ color: BRAND_KIT.colors.info.main,
15150
+ borderColor: BRAND_KIT.colors.info.main,
15151
+ backgroundColor: '#FFFFFF',
15146
15152
  },
15147
15153
  white: {
15148
- backgroundColor: '#FFFFFF',
15149
- color: BRAND_KIT.colors.text_primary.main,
15154
+ color: '#FFFFFF',
15155
+ borderColor: '#FFFFFF',
15156
+ backgroundColor: '#000000',
15150
15157
  },
15151
15158
  };
15152
15159
  const BUTTON_OUTLINED_ROUND_STYLES = {
@@ -15172,10 +15179,10 @@ const BUTTON_OUTLINED_WRAP_STYLES = {
15172
15179
  /* src/components-flex/button-outlined/ButtonOutlined.svelte generated by Svelte v3.53.1 */
15173
15180
 
15174
15181
  function add_css$a(target) {
15175
- append_styles(target, "svelte-b990ec", ".button-outlined.svelte-b990ec{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:#ffffff}.button-outlined.svelte-b990ec:hover{background-color:#f6f6f6}.button-outlined-icon.svelte-b990ec{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em;margin-bottom:0.1em}");
15182
+ 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}");
15176
15183
  }
15177
15184
 
15178
- // (44:2) {#if props.isIcon && props.iconVariant}
15185
+ // (50:2) {#if props.isIcon && props.iconVariant}
15179
15186
  function create_if_block$5(ctx) {
15180
15187
  let div;
15181
15188
  let icon;
@@ -15206,7 +15213,7 @@ function create_if_block$5(ctx) {
15206
15213
  this.h();
15207
15214
  },
15208
15215
  h() {
15209
- attr(div, "class", "button-outlined-icon svelte-b990ec");
15216
+ attr(div, "class", "button-outlined-icon svelte-38fju1");
15210
15217
  },
15211
15218
  m(target, anchor) {
15212
15219
  insert_hydration(target, div, anchor);
@@ -15241,7 +15248,7 @@ function create_if_block$5(ctx) {
15241
15248
  };
15242
15249
  }
15243
15250
 
15244
- // (36:0) <svelte:element {...attributes} this={element} class="button-outlined" style={style} data-layer-id={layerId} on:click={handleClick} >
15251
+ // (42:0) <svelte:element {...attributes} this={element} class="button-outlined" style={style} data-layer-id={layerId} on:click={handleClick} >
15245
15252
  function create_dynamic_element$5(ctx) {
15246
15253
  let svelte_element;
15247
15254
  let t0;
@@ -15293,7 +15300,7 @@ function create_dynamic_element$5(ctx) {
15293
15300
  this.h();
15294
15301
  },
15295
15302
  h() {
15296
- attr(span, "class", "button-outlined-label svelte-b990ec");
15303
+ attr(span, "class", "button-outlined-label svelte-38fju1");
15297
15304
 
15298
15305
  if ((/-/).test(/*element*/ ctx[4])) {
15299
15306
  set_custom_element_data_map(svelte_element, svelte_element_data);
@@ -15301,7 +15308,7 @@ function create_dynamic_element$5(ctx) {
15301
15308
  set_attributes(svelte_element, svelte_element_data);
15302
15309
  }
15303
15310
 
15304
- toggle_class(svelte_element, "svelte-b990ec", true);
15311
+ toggle_class(svelte_element, "svelte-38fju1", true);
15305
15312
  },
15306
15313
  m(target, anchor) {
15307
15314
  insert_hydration(target, svelte_element, anchor);
@@ -15355,7 +15362,7 @@ function create_dynamic_element$5(ctx) {
15355
15362
  set_attributes(svelte_element, svelte_element_data);
15356
15363
  }
15357
15364
 
15358
- toggle_class(svelte_element, "svelte-b990ec", true);
15365
+ toggle_class(svelte_element, "svelte-38fju1", true);
15359
15366
  },
15360
15367
  i(local) {
15361
15368
  if (current) return;
@@ -15426,6 +15433,7 @@ function create_fragment$a(ctx) {
15426
15433
  }
15427
15434
 
15428
15435
  function instance$a($$self, $$props, $$invalidate) {
15436
+ let variables;
15429
15437
  let style;
15430
15438
  let { props = {} } = $$props;
15431
15439
  let { layerId = '' } = $$props;
@@ -15441,10 +15449,17 @@ function instance$a($$self, $$props, $$invalidate) {
15441
15449
 
15442
15450
  $$self.$$.update = () => {
15443
15451
  if ($$self.$$.dirty & /*props*/ 1) {
15452
+ $$invalidate(7, variables = {
15453
+ '--bg-color': props.backgroundColor ?? buttonThemeStyle.backgroundColor,
15454
+ '--hover-bg-color': darkenColor(props.backgroundColor ?? buttonThemeStyle.backgroundColor, 0.032)
15455
+ });
15456
+ }
15457
+
15458
+ if ($$self.$$.dirty & /*props, variables*/ 129) {
15444
15459
  $$invalidate(2, style = objToStyle({
15445
15460
  width: props.width,
15446
- color: props.color ?? buttonThemeStyle.backgroundColor,
15447
- borderColor: props.color ?? buttonThemeStyle.backgroundColor,
15461
+ color: props.color ?? buttonThemeStyle.color,
15462
+ borderColor: props.borderColor ?? props.color ?? buttonThemeStyle.borderColor,
15448
15463
  fontWeight: props.fontWeight ?? 'bold',
15449
15464
  ...BUTTON_OUTLINED_WRAP_STYLES[props.wrap ?? buttonOutlinedPropsDefault.wrap],
15450
15465
  ...BUTTON_OUTLINED_ROUND_STYLES[props.round ?? buttonOutlinedPropsDefault.round],
@@ -15457,12 +15472,22 @@ function instance$a($$self, $$props, $$invalidate) {
15457
15472
  fontSize: props.fontSize ?? buttonSizeStyle.fontSize,
15458
15473
  ...toCssCommon(props),
15459
15474
  ...toCssBorder(props),
15460
- ...toCssShadow(props)
15475
+ ...toCssShadow(props),
15476
+ ...variables
15461
15477
  }));
15462
15478
  }
15463
15479
  };
15464
15480
 
15465
- return [props, layerId, style, attributes, element, handleClick, buttonThemeStyle];
15481
+ return [
15482
+ props,
15483
+ layerId,
15484
+ style,
15485
+ attributes,
15486
+ element,
15487
+ handleClick,
15488
+ buttonThemeStyle,
15489
+ variables
15490
+ ];
15466
15491
  }
15467
15492
 
15468
15493
  class ButtonOutlined extends SvelteComponent {
@@ -16222,6 +16247,37 @@ class CloseButton extends SvelteComponent {
16222
16247
  }
16223
16248
  }
16224
16249
 
16250
+ const ICON_SIZE_STYLES = {
16251
+ x_small: {
16252
+ width: '12px',
16253
+ height: '12px',
16254
+ },
16255
+ small: {
16256
+ width: '16px',
16257
+ height: '16px',
16258
+ },
16259
+ medium: {
16260
+ width: '20px',
16261
+ height: '20px',
16262
+ },
16263
+ large: {
16264
+ width: '24px',
16265
+ height: '24px',
16266
+ },
16267
+ x_large: {
16268
+ width: '32px',
16269
+ height: '32px',
16270
+ },
16271
+ x2_large: {
16272
+ width: '40px',
16273
+ height: '40px',
16274
+ },
16275
+ x3_large: {
16276
+ width: '48px',
16277
+ height: '48px',
16278
+ },
16279
+ };
16280
+
16225
16281
  /* src/components-flex/image/Image.svelte generated by Svelte v3.53.1 */
16226
16282
 
16227
16283
  function add_css$7(target) {
@@ -18598,4 +18654,4 @@ const ROUND_STYLES = {
18598
18654
  },
18599
18655
  };
18600
18656
 
18601
- export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BRAND_KIT, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_THEME_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_TEXT_THEME_STYLES, 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_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_THEME_STYLES, TEXT_LINK_UNDERLINE, TEXT_STYLE, TEXT_THEME, TEXT_THEME_STYLES, TEXT_VARIANTS, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, buttonOutlinedPropsDefault, buttonPropsDefault, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getAnsweredQuestion, getAnsweredQuestionIds, getCssVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getSystem, 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, variables, widget };
18657
+ export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BRAND_KIT, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_THEME_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_TEXT_THEME_STYLES, 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_THEME_STYLES, TEXT_LINK_UNDERLINE, TEXT_STYLE, TEXT_THEME, TEXT_THEME_STYLES, TEXT_VARIANTS, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, buttonOutlinedPropsDefault, buttonPropsDefault, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getAnsweredQuestion, getAnsweredQuestionIds, getCssVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getSystem, 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, variables, widget };
@@ -2343,10 +2343,7 @@ declare const afterUpdate: typeof afterUpdateSvelte;
2343
2343
  declare const tick: typeof tickSvelte;
2344
2344
  // @internal
2345
2345
  declare const LAYOUT_COMPONENT_NAMES: string[];
2346
- type PropStyles<Props extends Record<string, any>, K extends keyof Props> = Record<NonNullable<Props[K]>, Properties & Partial<{
2347
- hover: Properties;
2348
- active: Properties;
2349
- }>>;
2346
+ type PropStyles<Props extends Record<string, any>, K extends keyof Props> = Record<NonNullable<Props[K]>, Properties>;
2350
2347
  declare const SHADOW_VARIANT: {
2351
2348
  readonly extra_small: "XSmall";
2352
2349
  readonly small: "Small";
@@ -2393,13 +2390,13 @@ declare const BUTTON_ICON_ANGLE: {
2393
2390
  type ButtonProps = CommonProps & ClickableProps & ShadowProps & LinkProps & WithIconProps & BorderProps & {
2394
2391
  label?: string;
2395
2392
  // size
2396
- size?: keyof typeof BUTTON_SIZE;
2393
+ size?: keyof typeof BUTTON_SIZE | string;
2397
2394
  height?: Properties["height"];
2398
2395
  paddingLeft?: Properties["paddingLeft"];
2399
2396
  paddingRight?: Properties["paddingRight"];
2400
2397
  fontSize?: Properties["fontSize"];
2401
2398
  // theme
2402
- theme?: keyof typeof BUTTON_THEME;
2399
+ theme?: keyof typeof BUTTON_THEME | string;
2403
2400
  color?: Properties["color"];
2404
2401
  backgroundColor?: Properties["backgroundColor"];
2405
2402
  // others
@@ -2656,6 +2653,7 @@ type IconProps = CommonProps & ClickableProps & {
2656
2653
  width?: Properties$0["width"];
2657
2654
  height?: Properties$0["height"];
2658
2655
  };
2656
+ declare const ICON_SIZE_STYLES: PropStyles<IconProps, "size">;
2659
2657
  type ImageProps = CommonProps & {
2660
2658
  image?: string;
2661
2659
  width?: Properties["width"];
@@ -2733,7 +2731,7 @@ declare const TEXT_STYLE: {
2733
2731
  readonly normal: "normal";
2734
2732
  readonly italic: "italic";
2735
2733
  };
2736
- type LayerTextProps = CommonProps & BorderProps & RadiusProps & BackgroundColorProps & WithIconProps & LinkProps & ClickableProps & PaddingProps & {
2734
+ type LayerTextProps = CommonProps & BorderProps & RadiusProps & BackgroundColorProps & WithIconProps & LinkProps & ClickableProps & CustomizeCssProps & PaddingProps & {
2737
2735
  content: string;
2738
2736
  theme?: keyof typeof TEXT_THEME;
2739
2737
  size?: keyof typeof LAYER_TEXT_SIZE;
@@ -2861,7 +2859,7 @@ type BrandKit = {
2861
2859
  declare const BRAND_KIT: BrandKit;
2862
2860
  declare const SHADOW_STYLES: Record<keyof typeof SHADOW_VARIANT, Properties>;
2863
2861
  declare const ROUND_STYLES: Record<keyof typeof ROUND_VARIANT, Pick<Properties, "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius">>;
2864
- export { ACTION_HOOK_LABEL, KARTE_MODAL_ROOT, create, destroyAction, onCreate, onDestroy, showModal, destroy, initialize, finalize, loadGlobalScript, loadGlobalStyle, applyGlobalCss, getState, setState, getStates, isOpened, getVariables, setVariables, resetVariables, getEventHandlers, setEventHandlers, resetEventHandlers, getSystem, setSetting, eventHandlers, variables, formData, state, onScroll, onTime, getLogs, getEvents, logger, listenLogger, hideOnScroll, hideOnTime, showOnScroll, showOnTime, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, DefaultElasticity, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, RegExpProp, Image, LengthUnits, LengthUnit, Length, Color, FontWeight, SYSTEM_FONT, Fonts, Font, Justifies, Justify, Alignments, Alignment, FlexDirections, FlexDirection, ObjectFits, ObjectFit, ClipPaths, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, BoxShadow, Style, TransitState, WritingModes, WritingMode, DateTime, Icon, ListSeparatorTypes, EdgePosition, DefaultEdgePosition, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundTypes, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirections, ListDirection, ListContext, SlideButtonIcon, SlideButtonText, SlideButton, DefaultSlideButton, SlideButtonPosition, SlideNavigationButton, DefaultSlideNavigationButton, FormInputName, FormButtonColor, DefaultFormButtonColor, ModalStyle, ModalBreakPoint, DefaultModalBreakPoint, FormIdentifyTextFields, FormIdentifyTextField, FormIdentifyTextFieldValidations, FormIdentifyTextFieldPlaceholders, DefaultFormIdentifyTextField, FormIdentifyBooleanFields, FormIdentifyBooleanField, DefaultFormIdentifyBooleanField, showAction, closeAction, loadStyle, applyCss, onShow, onClose, onChangeState, getActionRoot, getCssVariables, show, close, ensureModalRoot, createApp, createFog, collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable, addChoiceAnswer, addFreeAnswer, removeAnswer, getAnsweredQuestion, getAnsweredQuestionIds, sendAnswer, sendAnswers, widget, onMount, onDestory, beforeUpdate, afterUpdate, tick, LAYOUT_COMPONENT_NAMES, PropStyles, SHADOW_VARIANT, ROUND_VARIANT, PositionProps, MetaProps, CustomizeCssProps, CommonProps, ClickableProps, OverflowProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, WithIconProps, LinkProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, BUTTON_SIZE, BUTTON_THEME, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, buttonPropsDefault, BUTTON_SIZE_STYLES, BUTTON_THEME_STYLES, BUTTON_ROUND_STYLES, BUTTON_WRAP_STYLES, ButtonOutlinedProps, buttonOutlinedPropsDefault, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_THEME_STYLES, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_TEXT_SIZE, BUTTON_TEXT_THEME, ButtonTextProps, BUTTON_TEXT_SIZE_STYLES, BUTTON_TEXT_THEME_STYLES, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, CLOSE_BUTTON_LABEL_PLACEMENT, CloseButtonProps, ICON_SIZE, ICON_VARIANTS, IconProps, ImageProps, LAYOUT_DISPLAY_TYPE, LayoutDisplayType, LAYOUT_DIRECTION, LayoutFlexDirection, LAYOUT_ALIGN, LayoutFlexAlign, LAYOUT_JUSTIFY, LayoutFlexJustify, LayerLayoutProps, SliderProps, LAYER_TEXT_SIZE, TEXT_THEME, TEXT_STYLE, LayerTextProps, TEXT_THEME_STYLES, TEXT_VARIANTS, TEXT_LINK_SIZE, TEXT_LINK_THEME, TEXT_LINK_UNDERLINE, TextLinkProps, TEXT_LINK_SIZE_STYLES, TEXT_LINK_THEME_STYLES, CodeProps, BrandKitColor, BrandKitColors, BrandKit, BRAND_KIT, SHADOW_STYLES, ROUND_STYLES };
2862
+ export { ACTION_HOOK_LABEL, KARTE_MODAL_ROOT, create, destroyAction, onCreate, onDestroy, showModal, destroy, initialize, finalize, loadGlobalScript, loadGlobalStyle, applyGlobalCss, getState, setState, getStates, isOpened, getVariables, setVariables, resetVariables, getEventHandlers, setEventHandlers, resetEventHandlers, getSystem, setSetting, eventHandlers, variables, formData, state, onScroll, onTime, getLogs, getEvents, logger, listenLogger, hideOnScroll, hideOnTime, showOnScroll, showOnTime, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, DefaultElasticity, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, RegExpProp, Image, LengthUnits, LengthUnit, Length, Color, FontWeight, SYSTEM_FONT, Fonts, Font, Justifies, Justify, Alignments, Alignment, FlexDirections, FlexDirection, ObjectFits, ObjectFit, ClipPaths, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, BoxShadow, Style, TransitState, WritingModes, WritingMode, DateTime, Icon, ListSeparatorTypes, EdgePosition, DefaultEdgePosition, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundTypes, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirections, ListDirection, ListContext, SlideButtonIcon, SlideButtonText, SlideButton, DefaultSlideButton, SlideButtonPosition, SlideNavigationButton, DefaultSlideNavigationButton, FormInputName, FormButtonColor, DefaultFormButtonColor, ModalStyle, ModalBreakPoint, DefaultModalBreakPoint, FormIdentifyTextFields, FormIdentifyTextField, FormIdentifyTextFieldValidations, FormIdentifyTextFieldPlaceholders, DefaultFormIdentifyTextField, FormIdentifyBooleanFields, FormIdentifyBooleanField, DefaultFormIdentifyBooleanField, showAction, closeAction, loadStyle, applyCss, onShow, onClose, onChangeState, getActionRoot, getCssVariables, show, close, ensureModalRoot, createApp, createFog, collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable, addChoiceAnswer, addFreeAnswer, removeAnswer, getAnsweredQuestion, getAnsweredQuestionIds, sendAnswer, sendAnswers, widget, onMount, onDestory, beforeUpdate, afterUpdate, tick, LAYOUT_COMPONENT_NAMES, PropStyles, SHADOW_VARIANT, ROUND_VARIANT, PositionProps, MetaProps, CustomizeCssProps, CommonProps, ClickableProps, OverflowProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, WithIconProps, LinkProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, BUTTON_SIZE, BUTTON_THEME, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, buttonPropsDefault, BUTTON_SIZE_STYLES, BUTTON_THEME_STYLES, BUTTON_ROUND_STYLES, BUTTON_WRAP_STYLES, ButtonOutlinedProps, buttonOutlinedPropsDefault, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_THEME_STYLES, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_TEXT_SIZE, BUTTON_TEXT_THEME, ButtonTextProps, BUTTON_TEXT_SIZE_STYLES, BUTTON_TEXT_THEME_STYLES, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, CLOSE_BUTTON_LABEL_PLACEMENT, CloseButtonProps, ICON_SIZE, ICON_VARIANTS, IconProps, ICON_SIZE_STYLES, ImageProps, LAYOUT_DISPLAY_TYPE, LayoutDisplayType, LAYOUT_DIRECTION, LayoutFlexDirection, LAYOUT_ALIGN, LayoutFlexAlign, LAYOUT_JUSTIFY, LayoutFlexJustify, LayerLayoutProps, SliderProps, LAYER_TEXT_SIZE, TEXT_THEME, TEXT_STYLE, LayerTextProps, TEXT_THEME_STYLES, TEXT_VARIANTS, TEXT_LINK_SIZE, TEXT_LINK_THEME, TEXT_LINK_UNDERLINE, TextLinkProps, TEXT_LINK_SIZE_STYLES, TEXT_LINK_THEME_STYLES, CodeProps, BrandKitColor, BrandKitColors, BrandKit, BRAND_KIT, SHADOW_STYLES, ROUND_STYLES };
2865
2863
  export type { SystemConfig, ActionVariables, ActionEventHandler, ActionProps, ActionOptions, ActionHook, ActionHookLog, ActionChangeStateHook, SendFunction, PublishFunction, OnScrollContext, OnScrollFunction, ScrollDirection, LogLevel, Log, Event, ActionCloseHook, ShowTrigger, CloseTrigger, CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequestConfig, ActionTableQueryRequestConfig, ActionTableRequestConfig };
2866
2864
  export { default as State } from './components/State.svelte';
2867
2865
  export { default as StateItem } from './components/StateItem.svelte';
package/dist/index.es.js CHANGED
@@ -13930,8 +13930,8 @@ function instance$b($$self, $$props, $$invalidate) {
13930
13930
  let { layerId = '' } = $$props;
13931
13931
  useInjectCustomizeCss(props);
13932
13932
  const { attributes, element, handleClick } = useClickable(props);
13933
- const buttonThemeStyle = BUTTON_THEME_STYLES[props.theme ?? buttonPropsDefault.theme];
13934
- const buttonSizeStyle = BUTTON_SIZE_STYLES[props.size ?? buttonPropsDefault.size];
13933
+ const buttonThemeStyle = BUTTON_THEME_STYLES[props.theme] || BUTTON_THEME_STYLES[buttonPropsDefault.theme];
13934
+ const buttonSizeStyle = BUTTON_SIZE_STYLES[props.size] || BUTTON_SIZE_STYLES[buttonPropsDefault.size];
13935
13935
 
13936
13936
  $$self.$$set = $$props => {
13937
13937
  if ('props' in $$props) $$invalidate(0, props = $$props.props);
@@ -14030,32 +14030,39 @@ const BUTTON_OUTLINED_SIZE_STYLES = {
14030
14030
  };
14031
14031
  const BUTTON_OUTLINED_THEME_STYLES = {
14032
14032
  default: {
14033
- backgroundColor: BRAND_KIT.colors.brand.main,
14034
- color: '#FFFFFF',
14033
+ color: BRAND_KIT.colors.brand.main,
14034
+ borderColor: BRAND_KIT.colors.brand.main,
14035
+ backgroundColor: '#FFFFFF',
14035
14036
  },
14036
14037
  general: {
14037
- backgroundColor: BRAND_KIT.colors.text_secondary.main,
14038
- color: '#FFFFFF',
14038
+ color: BRAND_KIT.colors.text_secondary.main,
14039
+ borderColor: BRAND_KIT.colors.text_secondary.main,
14040
+ backgroundColor: '#FFFFFF',
14039
14041
  },
14040
14042
  success: {
14041
- backgroundColor: BRAND_KIT.colors.success.main,
14042
- color: '#ffffff',
14043
+ color: BRAND_KIT.colors.success.main,
14044
+ borderColor: BRAND_KIT.colors.success.main,
14045
+ backgroundColor: '#FFFFFF',
14043
14046
  },
14044
14047
  warning: {
14045
- backgroundColor: BRAND_KIT.colors.warning.main,
14046
- color: '#ffffff',
14048
+ color: BRAND_KIT.colors.warning.main,
14049
+ borderColor: BRAND_KIT.colors.warning.main,
14050
+ backgroundColor: '#FFFFFF',
14047
14051
  },
14048
14052
  danger: {
14049
- backgroundColor: BRAND_KIT.colors.danger.main,
14050
- color: '#FFFFFF',
14053
+ color: BRAND_KIT.colors.danger.main,
14054
+ borderColor: BRAND_KIT.colors.danger.main,
14055
+ backgroundColor: '#FFFFFF',
14051
14056
  },
14052
14057
  info: {
14053
- backgroundColor: BRAND_KIT.colors.info.main,
14054
- color: '#FFFFFF',
14058
+ color: BRAND_KIT.colors.info.main,
14059
+ borderColor: BRAND_KIT.colors.info.main,
14060
+ backgroundColor: '#FFFFFF',
14055
14061
  },
14056
14062
  white: {
14057
- backgroundColor: '#FFFFFF',
14058
- color: BRAND_KIT.colors.text_primary.main,
14063
+ color: '#FFFFFF',
14064
+ borderColor: '#FFFFFF',
14065
+ backgroundColor: '#000000',
14059
14066
  },
14060
14067
  };
14061
14068
  const BUTTON_OUTLINED_ROUND_STYLES = {
@@ -14081,10 +14088,10 @@ const BUTTON_OUTLINED_WRAP_STYLES = {
14081
14088
  /* src/components-flex/button-outlined/ButtonOutlined.svelte generated by Svelte v3.53.1 */
14082
14089
 
14083
14090
  function add_css$a(target) {
14084
- append_styles(target, "svelte-b990ec", ".button-outlined.svelte-b990ec{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:#ffffff}.button-outlined.svelte-b990ec:hover{background-color:#f6f6f6}.button-outlined-icon.svelte-b990ec{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em;margin-bottom:0.1em}");
14091
+ 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}");
14085
14092
  }
14086
14093
 
14087
- // (44:2) {#if props.isIcon && props.iconVariant}
14094
+ // (50:2) {#if props.isIcon && props.iconVariant}
14088
14095
  function create_if_block$5(ctx) {
14089
14096
  let div;
14090
14097
  let icon;
@@ -14105,7 +14112,7 @@ function create_if_block$5(ctx) {
14105
14112
  c() {
14106
14113
  div = element("div");
14107
14114
  create_component(icon.$$.fragment);
14108
- attr(div, "class", "button-outlined-icon svelte-b990ec");
14115
+ attr(div, "class", "button-outlined-icon svelte-38fju1");
14109
14116
  },
14110
14117
  m(target, anchor) {
14111
14118
  insert(target, div, anchor);
@@ -14140,7 +14147,7 @@ function create_if_block$5(ctx) {
14140
14147
  };
14141
14148
  }
14142
14149
 
14143
- // (36:0) <svelte:element {...attributes} this={element} class="button-outlined" style={style} data-layer-id={layerId} on:click={handleClick} >
14150
+ // (42:0) <svelte:element {...attributes} this={element} class="button-outlined" style={style} data-layer-id={layerId} on:click={handleClick} >
14144
14151
  function create_dynamic_element$5(ctx) {
14145
14152
  let svelte_element;
14146
14153
  let t0;
@@ -14172,7 +14179,7 @@ function create_dynamic_element$5(ctx) {
14172
14179
  t0 = space();
14173
14180
  span = element("span");
14174
14181
  t1 = text(t1_value);
14175
- attr(span, "class", "button-outlined-label svelte-b990ec");
14182
+ attr(span, "class", "button-outlined-label svelte-38fju1");
14176
14183
 
14177
14184
  if ((/-/).test(/*element*/ ctx[4])) {
14178
14185
  set_custom_element_data_map(svelte_element, svelte_element_data);
@@ -14180,7 +14187,7 @@ function create_dynamic_element$5(ctx) {
14180
14187
  set_attributes(svelte_element, svelte_element_data);
14181
14188
  }
14182
14189
 
14183
- toggle_class(svelte_element, "svelte-b990ec", true);
14190
+ toggle_class(svelte_element, "svelte-38fju1", true);
14184
14191
  },
14185
14192
  m(target, anchor) {
14186
14193
  insert(target, svelte_element, anchor);
@@ -14234,7 +14241,7 @@ function create_dynamic_element$5(ctx) {
14234
14241
  set_attributes(svelte_element, svelte_element_data);
14235
14242
  }
14236
14243
 
14237
- toggle_class(svelte_element, "svelte-b990ec", true);
14244
+ toggle_class(svelte_element, "svelte-38fju1", true);
14238
14245
  },
14239
14246
  i(local) {
14240
14247
  if (current) return;
@@ -14301,6 +14308,7 @@ function create_fragment$a(ctx) {
14301
14308
  }
14302
14309
 
14303
14310
  function instance$a($$self, $$props, $$invalidate) {
14311
+ let variables;
14304
14312
  let style;
14305
14313
  let { props = {} } = $$props;
14306
14314
  let { layerId = '' } = $$props;
@@ -14316,10 +14324,17 @@ function instance$a($$self, $$props, $$invalidate) {
14316
14324
 
14317
14325
  $$self.$$.update = () => {
14318
14326
  if ($$self.$$.dirty & /*props*/ 1) {
14327
+ $$invalidate(7, variables = {
14328
+ '--bg-color': props.backgroundColor ?? buttonThemeStyle.backgroundColor,
14329
+ '--hover-bg-color': darkenColor(props.backgroundColor ?? buttonThemeStyle.backgroundColor, 0.032)
14330
+ });
14331
+ }
14332
+
14333
+ if ($$self.$$.dirty & /*props, variables*/ 129) {
14319
14334
  $$invalidate(2, style = objToStyle({
14320
14335
  width: props.width,
14321
- color: props.color ?? buttonThemeStyle.backgroundColor,
14322
- borderColor: props.color ?? buttonThemeStyle.backgroundColor,
14336
+ color: props.color ?? buttonThemeStyle.color,
14337
+ borderColor: props.borderColor ?? props.color ?? buttonThemeStyle.borderColor,
14323
14338
  fontWeight: props.fontWeight ?? 'bold',
14324
14339
  ...BUTTON_OUTLINED_WRAP_STYLES[props.wrap ?? buttonOutlinedPropsDefault.wrap],
14325
14340
  ...BUTTON_OUTLINED_ROUND_STYLES[props.round ?? buttonOutlinedPropsDefault.round],
@@ -14332,12 +14347,22 @@ function instance$a($$self, $$props, $$invalidate) {
14332
14347
  fontSize: props.fontSize ?? buttonSizeStyle.fontSize,
14333
14348
  ...toCssCommon(props),
14334
14349
  ...toCssBorder(props),
14335
- ...toCssShadow(props)
14350
+ ...toCssShadow(props),
14351
+ ...variables
14336
14352
  }));
14337
14353
  }
14338
14354
  };
14339
14355
 
14340
- return [props, layerId, style, attributes, element, handleClick, buttonThemeStyle];
14356
+ return [
14357
+ props,
14358
+ layerId,
14359
+ style,
14360
+ attributes,
14361
+ element,
14362
+ handleClick,
14363
+ buttonThemeStyle,
14364
+ variables
14365
+ ];
14341
14366
  }
14342
14367
 
14343
14368
  class ButtonOutlined extends SvelteComponent {
@@ -15017,6 +15042,37 @@ class CloseButton extends SvelteComponent {
15017
15042
  }
15018
15043
  }
15019
15044
 
15045
+ const ICON_SIZE_STYLES = {
15046
+ x_small: {
15047
+ width: '12px',
15048
+ height: '12px',
15049
+ },
15050
+ small: {
15051
+ width: '16px',
15052
+ height: '16px',
15053
+ },
15054
+ medium: {
15055
+ width: '20px',
15056
+ height: '20px',
15057
+ },
15058
+ large: {
15059
+ width: '24px',
15060
+ height: '24px',
15061
+ },
15062
+ x_large: {
15063
+ width: '32px',
15064
+ height: '32px',
15065
+ },
15066
+ x2_large: {
15067
+ width: '40px',
15068
+ height: '40px',
15069
+ },
15070
+ x3_large: {
15071
+ width: '48px',
15072
+ height: '48px',
15073
+ },
15074
+ };
15075
+
15020
15076
  /* src/components-flex/image/Image.svelte generated by Svelte v3.53.1 */
15021
15077
 
15022
15078
  function add_css$7(target) {
@@ -17257,4 +17313,4 @@ const ROUND_STYLES = {
17257
17313
  },
17258
17314
  };
17259
17315
 
17260
- export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BRAND_KIT, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_THEME_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_TEXT_THEME_STYLES, 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_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_THEME_STYLES, TEXT_LINK_UNDERLINE, TEXT_STYLE, TEXT_THEME, TEXT_THEME_STYLES, TEXT_VARIANTS, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, buttonOutlinedPropsDefault, buttonPropsDefault, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getAnsweredQuestion, getAnsweredQuestionIds, getCssVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getSystem, 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, variables, widget };
17316
+ export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BRAND_KIT, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_THEME_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_TEXT_THEME_STYLES, 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_THEME_STYLES, TEXT_LINK_UNDERLINE, TEXT_STYLE, TEXT_THEME, TEXT_THEME_STYLES, TEXT_VARIANTS, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, buttonOutlinedPropsDefault, buttonPropsDefault, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getAnsweredQuestion, getAnsweredQuestionIds, getCssVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getSystem, 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, variables, widget };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.256-28876509.00a83155",
3
+ "version": "1.1.256-28896802.16eb7121",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "devDependencies": {
60
60
  "@microsoft/api-documenter": "7.19.28",
61
- "@microsoft/api-extractor": "7.33.8",
61
+ "@microsoft/api-extractor": "7.48.0",
62
62
  "@rollup/plugin-alias": "^4.0.0",
63
63
  "@rollup/plugin-commonjs": "^23.0.1",
64
64
  "@rollup/plugin-json": "^5.0.0",