@plaidev/karte-action-sdk 1.1.241-28706520.9a16bb68 → 1.1.241-28708191.857eef2c

Sign up to get free protection for your applications and to get access to all the features.
@@ -2343,35 +2343,20 @@ 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 ComponentBaseProps = {
2347
- layerId: string;
2348
- style: Properties;
2349
- };
2350
- declare const COMPONENT_PARAMETER_TYPES: {
2351
- readonly TEXT: "text";
2352
- readonly MULTILINE_TEXT: "multiline_text";
2353
- readonly SELECT: "select";
2354
- readonly RADIO: "radio";
2355
- readonly CHECKBOX: "checkbox";
2356
- readonly BOOLEAN: "boolean";
2357
- readonly IMAGE: "image";
2358
- readonly NUMBER: "number";
2359
- readonly WIDTH: "width";
2360
- readonly ASPECT: "aspect";
2361
- readonly COLOR: "color";
2362
- readonly ICON: "icon";
2363
- };
2364
- type ComponentParameterType = (typeof COMPONENT_PARAMETER_TYPES)[keyof typeof COMPONENT_PARAMETER_TYPES];
2365
- type ComponentParameterOption = {
2366
- label: string;
2367
- value: string | number;
2368
- };
2369
- type ComponentParameter<P extends object = object> = {
2370
- id: string;
2371
- name: string;
2372
- type: ComponentParameterType;
2373
- options?: ComponentParameterOption[];
2374
- isEnabled?: (p: P) => boolean;
2346
+ type PropStyles<Props extends Record<string, any>, K extends keyof Props> = Record<NonNullable<Props[K]>, Properties>;
2347
+ declare const SHADOW_VARIANT: {
2348
+ readonly extra_small: "XSmall";
2349
+ readonly small: "Small";
2350
+ readonly medium: "Medium";
2351
+ readonly large: "Large";
2352
+ };
2353
+ declare const ROUND_VARIANT: {
2354
+ readonly extra_small: "XSmall (2px)";
2355
+ readonly small: "Small (4px)";
2356
+ readonly medium: "Medium (8px)";
2357
+ readonly large: "Large (16px)";
2358
+ readonly extra_large: "Large (24px)";
2359
+ readonly fulled: "Full (100%)";
2375
2360
  };
2376
2361
  type PositionPlaceProps = {
2377
2362
  top?: Properties["top"];
@@ -2456,7 +2441,7 @@ declare const BUTTON_ICON_ANGLE: {
2456
2441
  readonly row: "\u5DE6\u5074";
2457
2442
  readonly "row-reverse": "\u53F3\u5074";
2458
2443
  };
2459
- type ButtonProps = CommonProps & {
2444
+ type ButtonProps = CommonProps & BorderProps & {
2460
2445
  label?: string;
2461
2446
  size?: keyof typeof BUTTON_SIZE;
2462
2447
  theme?: keyof typeof BUTTON_THEME;
@@ -2473,6 +2458,11 @@ type ButtonProps = CommonProps & {
2473
2458
  color?: Properties["color"];
2474
2459
  backgroundColor?: Properties["backgroundColor"];
2475
2460
  };
2461
+ declare const buttonPropsDefault: ButtonProps;
2462
+ declare const BUTTON_SIZE_STYLES: PropStyles<ButtonProps, "size">;
2463
+ declare const BUTTON_THEME_STYLES: PropStyles<ButtonProps, "theme">;
2464
+ declare const BUTTON_ROUND_STYLES: PropStyles<ButtonProps, "round">;
2465
+ declare const BUTTON_WRAP_STYLES: PropStyles<ButtonProps, "wrap">;
2476
2466
  declare const BUTTON_VARIANTS: {
2477
2467
  size: {
2478
2468
  extra_small: Properties<0 | (string & {}), string & {}>;
@@ -2627,9 +2617,6 @@ declare const ICON_VARIANTS: {
2627
2617
  readonly users: typeof IconArrowDown;
2628
2618
  readonly x_mark: typeof IconArrowDown;
2629
2619
  };
2630
- type IconVariant = (typeof ICON_VARIANTS)[keyof typeof ICON_VARIANTS];
2631
- // @ts-ignore
2632
- declare const ICON_PARAMS: ComponentParameter[];
2633
2620
  type IconProps = CommonProps & {
2634
2621
  variant: string;
2635
2622
  size?: keyof typeof ICON_SIZE;
@@ -2679,15 +2666,6 @@ type LayerLayoutProps = CommonProps & BorderProps & RadiusProps & ShadowProps &
2679
2666
  columnGap?: Properties["columnGap"];
2680
2667
  width?: Properties["width"];
2681
2668
  };
2682
- declare const LAYER_TEXT_ALIGN_VALUES: readonly [
2683
- "center",
2684
- "left",
2685
- "right"
2686
- ];
2687
- declare const LAYER_TEXT_FONT_WEIGHT_VALUES: readonly [
2688
- "bold",
2689
- "normal"
2690
- ];
2691
2669
  declare const LAYER_TEXT_SIZE: {
2692
2670
  readonly extra_small: "ExtraSmall";
2693
2671
  readonly small: "Small";
@@ -2765,7 +2743,9 @@ declare const TEXT_VARIANTS: {
2765
2743
  };
2766
2744
  };
2767
2745
  };
2768
- 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, ComponentBaseProps, COMPONENT_PARAMETER_TYPES, ComponentParameterType, ComponentParameterOption, ComponentParameter, PositionProps, CommonProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, BUTTON_SIZE, BUTTON_THEME, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, BUTTON_VARIANTS, TEXT_BUTTON_SIZE, TEXT_BUTTON_COLOR, TEXT_BUTTON_ROUND, TEXT_BUTTON_LINK_TARGET, TEXT_BUTTON_ICON_ANGLE, TextButtonProps, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, CLOSE_BUTTON_LABEL_PLACEMENT, CloseButtonProps, ICON_SIZE, ICON_VARIANTS, IconVariant, ICON_PARAMS, IconProps, ImageProps, LAYOUT_DISPLAY_TYPE, LayoutDisplayType, LAYOUT_DIRECTION, LayoutFlexDirection, LAYOUT_ALIGN, LayoutFlexAlign, LAYOUT_JUSTIFY, LayoutFlexJustify, LayerLayoutProps, LAYER_TEXT_ALIGN_VALUES, LAYER_TEXT_FONT_WEIGHT_VALUES, LAYER_TEXT_SIZE, LayerTextProps, TEXT_VARIANTS };
2746
+ declare const SHADOW_STYLES: Record<keyof typeof SHADOW_VARIANT, Properties>;
2747
+ declare const ROUND_STYLES: Record<keyof typeof ROUND_VARIANT, Pick<Properties, "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius">>;
2748
+ 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, CommonProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, 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, BUTTON_VARIANTS, TEXT_BUTTON_SIZE, TEXT_BUTTON_COLOR, TEXT_BUTTON_ROUND, TEXT_BUTTON_LINK_TARGET, TEXT_BUTTON_ICON_ANGLE, TextButtonProps, 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, LAYER_TEXT_SIZE, LayerTextProps, TEXT_VARIANTS, SHADOW_STYLES, ROUND_STYLES };
2769
2749
  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 };
2770
2750
  export { default as State } from './components/State.svelte';
2771
2751
  export { default as StateItem } from './components/StateItem.svelte';
@@ -11912,19 +11912,19 @@ class ImageBlock extends SvelteComponent {
11912
11912
  }
11913
11913
  }
11914
11914
 
11915
- const COMPONENT_PARAMETER_TYPES = {
11916
- TEXT: 'text',
11917
- MULTILINE_TEXT: 'multiline_text',
11918
- SELECT: 'select',
11919
- RADIO: 'radio',
11920
- CHECKBOX: 'checkbox',
11921
- BOOLEAN: 'boolean',
11922
- IMAGE: 'image',
11923
- NUMBER: 'number',
11924
- WIDTH: 'width',
11925
- ASPECT: 'aspect',
11926
- COLOR: 'color',
11927
- ICON: 'icon',
11915
+ const SHADOW_VARIANT = {
11916
+ extra_small: 'XSmall',
11917
+ small: 'Small',
11918
+ medium: 'Medium',
11919
+ large: 'Large',
11920
+ };
11921
+ const ROUND_VARIANT = {
11922
+ extra_small: 'XSmall (2px)',
11923
+ small: 'Small (4px)',
11924
+ medium: 'Medium (8px)',
11925
+ large: 'Large (16px)',
11926
+ extra_large: 'Large (24px)',
11927
+ fulled: 'Full (100%)',
11928
11928
  };
11929
11929
 
11930
11930
  const toHyphenCase = (str) => {
@@ -11958,6 +11958,7 @@ const toCssCommon = (p) => {
11958
11958
  };
11959
11959
  };
11960
11960
  const toCssBorder = (p) => {
11961
+ console.log(p);
11961
11962
  const borderWidth = p?.borderTopWidth ?? p?.borderRightWidth ?? p?.borderLeftWidth ?? p?.borderBottomWidth ?? null;
11962
11963
  if (borderWidth === null)
11963
11964
  return {};
@@ -12135,6 +12136,41 @@ const AVATAR_SHAPE = {
12135
12136
  square: 'スクエア',
12136
12137
  };
12137
12138
 
12139
+ const BUTTON_SIZE = {
12140
+ extra_small: 'XSmall',
12141
+ small: 'Small',
12142
+ medium: 'Medium',
12143
+ large: 'Large',
12144
+ extra_large: 'XLarge',
12145
+ };
12146
+ const BUTTON_THEME = {
12147
+ default: 'デフォルト',
12148
+ theme: 'テーマカラー',
12149
+ alert: 'アラート',
12150
+ transparent: '背景なし',
12151
+ };
12152
+ const BUTTON_ROUND = {
12153
+ default: 'デフォルト',
12154
+ none: 'なし',
12155
+ fulled: '円形',
12156
+ };
12157
+ const BUTTON_LINK_TARGET = {
12158
+ _self: '画面内遷移',
12159
+ _blank: '別タブで開く',
12160
+ };
12161
+ const BUTTON_ICON_ANGLE = {
12162
+ row: '左側',
12163
+ 'row-reverse': '右側',
12164
+ };
12165
+ const buttonPropsDefault = {
12166
+ label: 'ボタン',
12167
+ size: 'medium',
12168
+ theme: 'default',
12169
+ round: 'default',
12170
+ width: 'auto',
12171
+ wrap: 'nowrap',
12172
+ };
12173
+
12138
12174
  /* src/components-flex/icon/variants/IconArrowDown.svelte generated by Svelte v3.53.1 */
12139
12175
 
12140
12176
  function create_fragment$A(ctx) {
@@ -13950,28 +13986,6 @@ const ICON_VARIANTS = {
13950
13986
  users: IconUsers,
13951
13987
  x_mark: IconXMark,
13952
13988
  };
13953
- // @ts-ignore
13954
- const ICON_PARAMS = [
13955
- {
13956
- id: 'variant',
13957
- name: 'アイコン',
13958
- type: 'icon',
13959
- },
13960
- {
13961
- id: 'color',
13962
- name: 'カラー',
13963
- type: 'color',
13964
- },
13965
- {
13966
- id: 'size',
13967
- name: 'サイズ',
13968
- type: 'select',
13969
- options: Object.keys(ICON_SIZE).map(key => ({
13970
- label: ICON_SIZE[key].label,
13971
- value: ICON_SIZE[key].value,
13972
- })),
13973
- },
13974
- ];
13975
13989
 
13976
13990
  /* src/components-flex/icon/Icon.svelte generated by Svelte v3.53.1 */
13977
13991
 
@@ -14182,6 +14196,87 @@ class Icon extends SvelteComponent {
14182
14196
  }
14183
14197
  }
14184
14198
 
14199
+ const BUTTON_SIZE_STYLES = {
14200
+ extra_small: {
14201
+ minHeight: '32px',
14202
+ paddingInline: '12px',
14203
+ fontSize: '12px',
14204
+ paddingBlock: '8px',
14205
+ lineHeight: 1.5,
14206
+ borderRadius: '4px',
14207
+ },
14208
+ small: {
14209
+ minHeight: '36px',
14210
+ paddingInline: '16px',
14211
+ fontSize: '13px',
14212
+ paddingBlock: '8px',
14213
+ lineHeight: 1.5,
14214
+ borderRadius: '4px',
14215
+ },
14216
+ medium: {
14217
+ minHeight: '40px',
14218
+ paddingInline: '24px',
14219
+ fontSize: '14px',
14220
+ paddingBlock: '8px',
14221
+ lineHeight: 1.5,
14222
+ borderRadius: '4px',
14223
+ },
14224
+ large: {
14225
+ minHeight: '48px',
14226
+ paddingInline: '32px',
14227
+ fontSize: '14px',
14228
+ paddingBlock: '10px',
14229
+ lineHeight: 1.5,
14230
+ borderRadius: '4px',
14231
+ },
14232
+ extra_large: {
14233
+ minHeight: '56px',
14234
+ paddingInline: '40px',
14235
+ fontSize: '17px',
14236
+ paddingBlock: '12px',
14237
+ lineHeight: 1.5,
14238
+ borderRadius: '4px',
14239
+ },
14240
+ };
14241
+ const BUTTON_THEME_STYLES = {
14242
+ theme: {
14243
+ backgroundColor: 'rgba(18,160,160,1)',
14244
+ color: '#FFFFFF',
14245
+ fontWeight: 'bold',
14246
+ },
14247
+ default: {
14248
+ backgroundColor: '#33403e',
14249
+ color: '#FFFFFF',
14250
+ fontWeight: 'bold',
14251
+ },
14252
+ transparent: {
14253
+ backgroundColor: 'rgba(255, 255, 255, 0)',
14254
+ color: '#00100ea1',
14255
+ fontWeight: 'bold',
14256
+ },
14257
+ alert: {
14258
+ backgroundColor: 'rgb(242,83,32,1)',
14259
+ color: '#FFFFFF',
14260
+ fontWeight: 'bold',
14261
+ },
14262
+ };
14263
+ const BUTTON_ROUND_STYLES = {
14264
+ none: {
14265
+ borderRadius: 0,
14266
+ },
14267
+ default: {},
14268
+ fulled: {
14269
+ borderRadius: '56px',
14270
+ },
14271
+ };
14272
+ const BUTTON_WRAP_STYLES = {
14273
+ nowrap: {
14274
+ whiteSpace: 'nowrap',
14275
+ },
14276
+ wrap: {
14277
+ whiteSpace: 'pre-wrap',
14278
+ },
14279
+ };
14185
14280
  const BUTTON_VARIANTS = {
14186
14281
  size: {
14187
14282
  extra_small: {
@@ -14275,7 +14370,7 @@ function add_css$7(target) {
14275
14370
  append_styles(target, "svelte-bo01kn", ".button.svelte-bo01kn{display:inline-flex;align-content:center;justify-content:center;gap:0.65em;cursor:pointer;outline:0;transition:background-color 0.12s, border-color 0.12s, color 0.12s}.button-icon.svelte-bo01kn{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em}");
14276
14371
  }
14277
14372
 
14278
- // (49:2) {#if (props.isIcon && props.iconVariant)}
14373
+ // (45:2) {#if (props.isIcon && props.iconVariant)}
14279
14374
  function create_if_block$4(ctx) {
14280
14375
  let div;
14281
14376
  let icon;
@@ -14285,7 +14380,7 @@ function create_if_block$4(ctx) {
14285
14380
  props: {
14286
14381
  props: {
14287
14382
  variant: /*props*/ ctx[0].iconVariant,
14288
- color: /*props*/ ctx[0].color ?? BUTTON_VARIANTS.theme[/*props*/ ctx[0].theme ?? 'default'].color
14383
+ color: /*props*/ ctx[0].color ?? /*buttonThemeStyle*/ ctx[3].color
14289
14384
  }
14290
14385
  }
14291
14386
  });
@@ -14316,7 +14411,7 @@ function create_if_block$4(ctx) {
14316
14411
 
14317
14412
  if (dirty & /*props*/ 1) icon_changes.props = {
14318
14413
  variant: /*props*/ ctx[0].iconVariant,
14319
- color: /*props*/ ctx[0].color ?? BUTTON_VARIANTS.theme[/*props*/ ctx[0].theme ?? 'default'].color
14414
+ color: /*props*/ ctx[0].color ?? /*buttonThemeStyle*/ ctx[3].color
14320
14415
  };
14321
14416
 
14322
14417
  icon.$set(icon_changes);
@@ -14341,7 +14436,7 @@ function create_fragment$7(ctx) {
14341
14436
  let button;
14342
14437
  let t0;
14343
14438
  let span;
14344
- let t1_value = /*props*/ ctx[0].label + "";
14439
+ let t1_value = (/*props*/ ctx[0].label ?? buttonPropsDefault.label) + "";
14345
14440
  let t1;
14346
14441
  let current;
14347
14442
  let mounted;
@@ -14388,7 +14483,7 @@ function create_fragment$7(ctx) {
14388
14483
  current = true;
14389
14484
 
14390
14485
  if (!mounted) {
14391
- dispose = listen(button, "click", checkStopPropagation('click', /*handleClick*/ ctx[3]));
14486
+ dispose = listen(button, "click", checkStopPropagation('click', /*handleClick*/ ctx[4]));
14392
14487
  mounted = true;
14393
14488
  }
14394
14489
  },
@@ -14416,7 +14511,7 @@ function create_fragment$7(ctx) {
14416
14511
  check_outros();
14417
14512
  }
14418
14513
 
14419
- if ((!current || dirty & /*props*/ 1) && t1_value !== (t1_value = /*props*/ ctx[0].label + "")) set_data(t1, t1_value);
14514
+ if ((!current || dirty & /*props*/ 1) && t1_value !== (t1_value = (/*props*/ ctx[0].label ?? buttonPropsDefault.label) + "")) set_data(t1, t1_value);
14420
14515
 
14421
14516
  if (!current || dirty & /*layerId*/ 2) {
14422
14517
  attr(button, "data-layer-id", /*layerId*/ ctx[1]);
@@ -14451,6 +14546,7 @@ function instance$7($$self, $$props, $$invalidate) {
14451
14546
  let { eventValue = undefined } = $$props;
14452
14547
  let { props = {} } = $$props;
14453
14548
  let { layerId = '' } = $$props;
14549
+ const buttonThemeStyle = BUTTON_THEME_STYLES[props.theme ?? buttonPropsDefault.theme];
14454
14550
 
14455
14551
  function handleClick() {
14456
14552
  if (eventName) {
@@ -14461,9 +14557,9 @@ function instance$7($$self, $$props, $$invalidate) {
14461
14557
  }
14462
14558
 
14463
14559
  $$self.$$set = $$props => {
14464
- if ('onClick' in $$props) $$invalidate(4, onClick = $$props.onClick);
14465
- if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
14466
- if ('eventValue' in $$props) $$invalidate(6, eventValue = $$props.eventValue);
14560
+ if ('onClick' in $$props) $$invalidate(5, onClick = $$props.onClick);
14561
+ if ('eventName' in $$props) $$invalidate(6, eventName = $$props.eventName);
14562
+ if ('eventValue' in $$props) $$invalidate(7, eventValue = $$props.eventValue);
14467
14563
  if ('props' in $$props) $$invalidate(0, props = $$props.props);
14468
14564
  if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
14469
14565
  };
@@ -14479,21 +14575,31 @@ function instance$7($$self, $$props, $$invalidate) {
14479
14575
  border: 0,
14480
14576
  transition: 'background-color 0.12s, border-color 0.12s, color 0.12s',
14481
14577
  width: props.width,
14482
- backgroundColor: props.backgroundColor ?? BUTTON_VARIANTS.theme[props.theme ?? 'default'].backgroundColor,
14483
- color: props.color ?? BUTTON_VARIANTS.theme[props.theme ?? 'default'].color,
14484
- fontWeight: props.fontWeight ?? BUTTON_VARIANTS.theme[props.theme ?? 'default'].fontWeight,
14485
- ...BUTTON_VARIANTS.size[props.size ?? 'medium'],
14486
- ...BUTTON_VARIANTS.wrap[props.wrap ?? 'nowrap'],
14487
- ...BUTTON_VARIANTS.round[props.round ?? 'default'],
14578
+ backgroundColor: props.backgroundColor ?? buttonThemeStyle.backgroundColor,
14579
+ color: props.color ?? buttonThemeStyle.color,
14580
+ fontWeight: props.fontWeight ?? buttonThemeStyle.fontWeight,
14581
+ ...BUTTON_SIZE_STYLES[props.size ?? buttonPropsDefault.size],
14582
+ ...BUTTON_WRAP_STYLES[props.wrap ?? buttonPropsDefault.wrap],
14583
+ ...BUTTON_ROUND_STYLES[props.round ?? buttonPropsDefault.round],
14488
14584
  ...props.iconAngle
14489
14585
  ? { flexDirection: props.iconAngle }
14490
14586
  : {},
14491
- ...toCssCommon(props)
14587
+ ...toCssCommon(props),
14588
+ ...toCssBorder(props)
14492
14589
  }));
14493
14590
  }
14494
14591
  };
14495
14592
 
14496
- return [props, layerId, style, handleClick, onClick, eventName, eventValue];
14593
+ return [
14594
+ props,
14595
+ layerId,
14596
+ style,
14597
+ buttonThemeStyle,
14598
+ handleClick,
14599
+ onClick,
14600
+ eventName,
14601
+ eventValue
14602
+ ];
14497
14603
  }
14498
14604
 
14499
14605
  class Button extends SvelteComponent {
@@ -14507,9 +14613,9 @@ class Button extends SvelteComponent {
14507
14613
  create_fragment$7,
14508
14614
  safe_not_equal,
14509
14615
  {
14510
- onClick: 4,
14511
- eventName: 5,
14512
- eventValue: 6,
14616
+ onClick: 5,
14617
+ eventName: 6,
14618
+ eventValue: 7,
14513
14619
  props: 0,
14514
14620
  layerId: 1
14515
14621
  },
@@ -14518,33 +14624,6 @@ class Button extends SvelteComponent {
14518
14624
  }
14519
14625
  }
14520
14626
 
14521
- const BUTTON_SIZE = {
14522
- extra_small: 'XSmall',
14523
- small: 'Small',
14524
- medium: 'Medium',
14525
- large: 'Large',
14526
- extra_large: 'XLarge',
14527
- };
14528
- const BUTTON_THEME = {
14529
- default: 'デフォルト',
14530
- theme: 'テーマカラー',
14531
- alert: 'アラート',
14532
- transparent: '背景なし',
14533
- };
14534
- const BUTTON_ROUND = {
14535
- default: 'デフォルト',
14536
- none: 'なし',
14537
- fulled: '円形',
14538
- };
14539
- const BUTTON_LINK_TARGET = {
14540
- _self: '画面内遷移',
14541
- _blank: '別タブで開く',
14542
- };
14543
- const BUTTON_ICON_ANGLE = {
14544
- row: '左側',
14545
- 'row-reverse': '右側',
14546
- };
14547
-
14548
14627
  /* src/components-flex/text-button/TextButton.svelte generated by Svelte v3.53.1 */
14549
14628
 
14550
14629
  function add_css$6(target) {
@@ -15593,8 +15672,6 @@ class Text extends SvelteComponent {
15593
15672
  }
15594
15673
  }
15595
15674
 
15596
- const LAYER_TEXT_ALIGN_VALUES = ['center', 'left', 'right'];
15597
- const LAYER_TEXT_FONT_WEIGHT_VALUES = ['bold', 'normal'];
15598
15675
  const LAYER_TEXT_SIZE = {
15599
15676
  extra_small: 'ExtraSmall',
15600
15677
  small: 'Small',
@@ -16358,4 +16435,57 @@ class Modal extends SvelteComponent {
16358
16435
  }
16359
16436
  }
16360
16437
 
16361
- export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_ROUND, BUTTON_SIZE, BUTTON_THEME, BUTTON_VARIANTS, BackgroundSizes, Box, CLOSE_BUTTON_LABEL_PLACEMENT, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, COMPONENT_PARAMETER_TYPES, 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, CloseButton as FlexCloseButton, FlexDirections, Icon as FlexIcon, Image as FlexImage, FlexItem, Layout as FlexLayout, Modal as FlexModal, Text as FlexText, TextButton as FlexTextButton, Fonts, FormCheckBoxes, FormIdentifyBooleanFields, FormIdentifyChoices, FormIdentifyInput, FormIdentifyTextFieldPlaceholders, FormIdentifyTextFieldValidations, FormIdentifyTextFields, FormRadioButtons, FormRatingButtonsFace, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ICON_PARAMS, ICON_SIZE, ICON_VARIANTS, IconElement, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LAYER_TEXT_ALIGN_VALUES, LAYER_TEXT_FONT_WEIGHT_VALUES, 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, Repeats, SYSTEM_FONT, Slide, SlideItem, State, StateItem, TEXT_BUTTON_COLOR, TEXT_BUTTON_ICON_ANGLE, TEXT_BUTTON_LINK_TARGET, TEXT_BUTTON_ROUND, TEXT_BUTTON_SIZE, TEXT_VARIANTS, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, 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 };
16438
+ const SHADOW_STYLES = {
16439
+ extra_small: {
16440
+ boxShadow: '0 1px 2px 0 rgba(0,0,0,0.1)',
16441
+ },
16442
+ small: {
16443
+ boxShadow: '0 2px 4px 1px rgba(0,0,0,0.1)',
16444
+ },
16445
+ medium: {
16446
+ boxShadow: '0px 4px 8px 2px rgba(0,0,0,0.1)',
16447
+ },
16448
+ large: {
16449
+ boxShadow: '0px 8px 16px 4px rgba(0,0,0,0.1)',
16450
+ },
16451
+ };
16452
+ const ROUND_STYLES = {
16453
+ extra_small: {
16454
+ borderTopLeftRadius: '2px',
16455
+ borderTopRightRadius: '2px',
16456
+ borderBottomLeftRadius: '2px',
16457
+ borderBottomRightRadius: '2px',
16458
+ },
16459
+ small: {
16460
+ borderTopLeftRadius: '4px',
16461
+ borderTopRightRadius: '4px',
16462
+ borderBottomLeftRadius: '4px',
16463
+ borderBottomRightRadius: '4px',
16464
+ },
16465
+ medium: {
16466
+ borderTopLeftRadius: '8px',
16467
+ borderTopRightRadius: '8px',
16468
+ borderBottomLeftRadius: '8px',
16469
+ borderBottomRightRadius: '8px',
16470
+ },
16471
+ large: {
16472
+ borderTopLeftRadius: '16px',
16473
+ borderTopRightRadius: '16px',
16474
+ borderBottomLeftRadius: '16px',
16475
+ borderBottomRightRadius: '16px',
16476
+ },
16477
+ extra_large: {
16478
+ borderTopLeftRadius: '24px',
16479
+ borderTopRightRadius: '24px',
16480
+ borderBottomLeftRadius: '24px',
16481
+ borderBottomRightRadius: '24px',
16482
+ },
16483
+ fulled: {
16484
+ borderTopLeftRadius: '100%',
16485
+ borderTopRightRadius: '100%',
16486
+ borderBottomLeftRadius: '100%',
16487
+ borderBottomRightRadius: '100%',
16488
+ },
16489
+ };
16490
+
16491
+ export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_ROUND, BUTTON_ROUND_STYLES, BUTTON_SIZE, BUTTON_SIZE_STYLES, BUTTON_THEME, BUTTON_THEME_STYLES, BUTTON_VARIANTS, 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, CloseButton as FlexCloseButton, FlexDirections, Icon as FlexIcon, Image as FlexImage, FlexItem, Layout as FlexLayout, Modal as FlexModal, Text as FlexText, TextButton as FlexTextButton, 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_BUTTON_COLOR, TEXT_BUTTON_ICON_ANGLE, TEXT_BUTTON_LINK_TARGET, TEXT_BUTTON_ROUND, TEXT_BUTTON_SIZE, TEXT_VARIANTS, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, 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,35 +2343,20 @@ 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 ComponentBaseProps = {
2347
- layerId: string;
2348
- style: Properties;
2349
- };
2350
- declare const COMPONENT_PARAMETER_TYPES: {
2351
- readonly TEXT: "text";
2352
- readonly MULTILINE_TEXT: "multiline_text";
2353
- readonly SELECT: "select";
2354
- readonly RADIO: "radio";
2355
- readonly CHECKBOX: "checkbox";
2356
- readonly BOOLEAN: "boolean";
2357
- readonly IMAGE: "image";
2358
- readonly NUMBER: "number";
2359
- readonly WIDTH: "width";
2360
- readonly ASPECT: "aspect";
2361
- readonly COLOR: "color";
2362
- readonly ICON: "icon";
2363
- };
2364
- type ComponentParameterType = (typeof COMPONENT_PARAMETER_TYPES)[keyof typeof COMPONENT_PARAMETER_TYPES];
2365
- type ComponentParameterOption = {
2366
- label: string;
2367
- value: string | number;
2368
- };
2369
- type ComponentParameter<P extends object = object> = {
2370
- id: string;
2371
- name: string;
2372
- type: ComponentParameterType;
2373
- options?: ComponentParameterOption[];
2374
- isEnabled?: (p: P) => boolean;
2346
+ type PropStyles<Props extends Record<string, any>, K extends keyof Props> = Record<NonNullable<Props[K]>, Properties>;
2347
+ declare const SHADOW_VARIANT: {
2348
+ readonly extra_small: "XSmall";
2349
+ readonly small: "Small";
2350
+ readonly medium: "Medium";
2351
+ readonly large: "Large";
2352
+ };
2353
+ declare const ROUND_VARIANT: {
2354
+ readonly extra_small: "XSmall (2px)";
2355
+ readonly small: "Small (4px)";
2356
+ readonly medium: "Medium (8px)";
2357
+ readonly large: "Large (16px)";
2358
+ readonly extra_large: "Large (24px)";
2359
+ readonly fulled: "Full (100%)";
2375
2360
  };
2376
2361
  type PositionPlaceProps = {
2377
2362
  top?: Properties["top"];
@@ -2456,7 +2441,7 @@ declare const BUTTON_ICON_ANGLE: {
2456
2441
  readonly row: "\u5DE6\u5074";
2457
2442
  readonly "row-reverse": "\u53F3\u5074";
2458
2443
  };
2459
- type ButtonProps = CommonProps & {
2444
+ type ButtonProps = CommonProps & BorderProps & {
2460
2445
  label?: string;
2461
2446
  size?: keyof typeof BUTTON_SIZE;
2462
2447
  theme?: keyof typeof BUTTON_THEME;
@@ -2473,6 +2458,11 @@ type ButtonProps = CommonProps & {
2473
2458
  color?: Properties["color"];
2474
2459
  backgroundColor?: Properties["backgroundColor"];
2475
2460
  };
2461
+ declare const buttonPropsDefault: ButtonProps;
2462
+ declare const BUTTON_SIZE_STYLES: PropStyles<ButtonProps, "size">;
2463
+ declare const BUTTON_THEME_STYLES: PropStyles<ButtonProps, "theme">;
2464
+ declare const BUTTON_ROUND_STYLES: PropStyles<ButtonProps, "round">;
2465
+ declare const BUTTON_WRAP_STYLES: PropStyles<ButtonProps, "wrap">;
2476
2466
  declare const BUTTON_VARIANTS: {
2477
2467
  size: {
2478
2468
  extra_small: Properties<0 | (string & {}), string & {}>;
@@ -2627,9 +2617,6 @@ declare const ICON_VARIANTS: {
2627
2617
  readonly users: typeof IconArrowDown;
2628
2618
  readonly x_mark: typeof IconArrowDown;
2629
2619
  };
2630
- type IconVariant = (typeof ICON_VARIANTS)[keyof typeof ICON_VARIANTS];
2631
- // @ts-ignore
2632
- declare const ICON_PARAMS: ComponentParameter[];
2633
2620
  type IconProps = CommonProps & {
2634
2621
  variant: string;
2635
2622
  size?: keyof typeof ICON_SIZE;
@@ -2679,15 +2666,6 @@ type LayerLayoutProps = CommonProps & BorderProps & RadiusProps & ShadowProps &
2679
2666
  columnGap?: Properties["columnGap"];
2680
2667
  width?: Properties["width"];
2681
2668
  };
2682
- declare const LAYER_TEXT_ALIGN_VALUES: readonly [
2683
- "center",
2684
- "left",
2685
- "right"
2686
- ];
2687
- declare const LAYER_TEXT_FONT_WEIGHT_VALUES: readonly [
2688
- "bold",
2689
- "normal"
2690
- ];
2691
2669
  declare const LAYER_TEXT_SIZE: {
2692
2670
  readonly extra_small: "ExtraSmall";
2693
2671
  readonly small: "Small";
@@ -2765,7 +2743,9 @@ declare const TEXT_VARIANTS: {
2765
2743
  };
2766
2744
  };
2767
2745
  };
2768
- 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, ComponentBaseProps, COMPONENT_PARAMETER_TYPES, ComponentParameterType, ComponentParameterOption, ComponentParameter, PositionProps, CommonProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, BUTTON_SIZE, BUTTON_THEME, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, BUTTON_VARIANTS, TEXT_BUTTON_SIZE, TEXT_BUTTON_COLOR, TEXT_BUTTON_ROUND, TEXT_BUTTON_LINK_TARGET, TEXT_BUTTON_ICON_ANGLE, TextButtonProps, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, CLOSE_BUTTON_LABEL_PLACEMENT, CloseButtonProps, ICON_SIZE, ICON_VARIANTS, IconVariant, ICON_PARAMS, IconProps, ImageProps, LAYOUT_DISPLAY_TYPE, LayoutDisplayType, LAYOUT_DIRECTION, LayoutFlexDirection, LAYOUT_ALIGN, LayoutFlexAlign, LAYOUT_JUSTIFY, LayoutFlexJustify, LayerLayoutProps, LAYER_TEXT_ALIGN_VALUES, LAYER_TEXT_FONT_WEIGHT_VALUES, LAYER_TEXT_SIZE, LayerTextProps, TEXT_VARIANTS };
2746
+ declare const SHADOW_STYLES: Record<keyof typeof SHADOW_VARIANT, Properties>;
2747
+ declare const ROUND_STYLES: Record<keyof typeof ROUND_VARIANT, Pick<Properties, "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius">>;
2748
+ 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, CommonProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, 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, BUTTON_VARIANTS, TEXT_BUTTON_SIZE, TEXT_BUTTON_COLOR, TEXT_BUTTON_ROUND, TEXT_BUTTON_LINK_TARGET, TEXT_BUTTON_ICON_ANGLE, TextButtonProps, 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, LAYER_TEXT_SIZE, LayerTextProps, TEXT_VARIANTS, SHADOW_STYLES, ROUND_STYLES };
2769
2749
  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 };
2770
2750
  export { default as State } from './components/State.svelte';
2771
2751
  export { default as StateItem } from './components/StateItem.svelte';
package/dist/index.es.js CHANGED
@@ -11258,19 +11258,19 @@ class ImageBlock extends SvelteComponent {
11258
11258
  }
11259
11259
  }
11260
11260
 
11261
- const COMPONENT_PARAMETER_TYPES = {
11262
- TEXT: 'text',
11263
- MULTILINE_TEXT: 'multiline_text',
11264
- SELECT: 'select',
11265
- RADIO: 'radio',
11266
- CHECKBOX: 'checkbox',
11267
- BOOLEAN: 'boolean',
11268
- IMAGE: 'image',
11269
- NUMBER: 'number',
11270
- WIDTH: 'width',
11271
- ASPECT: 'aspect',
11272
- COLOR: 'color',
11273
- ICON: 'icon',
11261
+ const SHADOW_VARIANT = {
11262
+ extra_small: 'XSmall',
11263
+ small: 'Small',
11264
+ medium: 'Medium',
11265
+ large: 'Large',
11266
+ };
11267
+ const ROUND_VARIANT = {
11268
+ extra_small: 'XSmall (2px)',
11269
+ small: 'Small (4px)',
11270
+ medium: 'Medium (8px)',
11271
+ large: 'Large (16px)',
11272
+ extra_large: 'Large (24px)',
11273
+ fulled: 'Full (100%)',
11274
11274
  };
11275
11275
 
11276
11276
  const toHyphenCase = (str) => {
@@ -11304,6 +11304,7 @@ const toCssCommon = (p) => {
11304
11304
  };
11305
11305
  };
11306
11306
  const toCssBorder = (p) => {
11307
+ console.log(p);
11307
11308
  const borderWidth = p?.borderTopWidth ?? p?.borderRightWidth ?? p?.borderLeftWidth ?? p?.borderBottomWidth ?? null;
11308
11309
  if (borderWidth === null)
11309
11310
  return {};
@@ -11466,6 +11467,41 @@ const AVATAR_SHAPE = {
11466
11467
  square: 'スクエア',
11467
11468
  };
11468
11469
 
11470
+ const BUTTON_SIZE = {
11471
+ extra_small: 'XSmall',
11472
+ small: 'Small',
11473
+ medium: 'Medium',
11474
+ large: 'Large',
11475
+ extra_large: 'XLarge',
11476
+ };
11477
+ const BUTTON_THEME = {
11478
+ default: 'デフォルト',
11479
+ theme: 'テーマカラー',
11480
+ alert: 'アラート',
11481
+ transparent: '背景なし',
11482
+ };
11483
+ const BUTTON_ROUND = {
11484
+ default: 'デフォルト',
11485
+ none: 'なし',
11486
+ fulled: '円形',
11487
+ };
11488
+ const BUTTON_LINK_TARGET = {
11489
+ _self: '画面内遷移',
11490
+ _blank: '別タブで開く',
11491
+ };
11492
+ const BUTTON_ICON_ANGLE = {
11493
+ row: '左側',
11494
+ 'row-reverse': '右側',
11495
+ };
11496
+ const buttonPropsDefault = {
11497
+ label: 'ボタン',
11498
+ size: 'medium',
11499
+ theme: 'default',
11500
+ round: 'default',
11501
+ width: 'auto',
11502
+ wrap: 'nowrap',
11503
+ };
11504
+
11469
11505
  /* src/components-flex/icon/variants/IconArrowDown.svelte generated by Svelte v3.53.1 */
11470
11506
 
11471
11507
  function create_fragment$A(ctx) {
@@ -12955,28 +12991,6 @@ const ICON_VARIANTS = {
12955
12991
  users: IconUsers,
12956
12992
  x_mark: IconXMark,
12957
12993
  };
12958
- // @ts-ignore
12959
- const ICON_PARAMS = [
12960
- {
12961
- id: 'variant',
12962
- name: 'アイコン',
12963
- type: 'icon',
12964
- },
12965
- {
12966
- id: 'color',
12967
- name: 'カラー',
12968
- type: 'color',
12969
- },
12970
- {
12971
- id: 'size',
12972
- name: 'サイズ',
12973
- type: 'select',
12974
- options: Object.keys(ICON_SIZE).map(key => ({
12975
- label: ICON_SIZE[key].label,
12976
- value: ICON_SIZE[key].value,
12977
- })),
12978
- },
12979
- ];
12980
12994
 
12981
12995
  /* src/components-flex/icon/Icon.svelte generated by Svelte v3.53.1 */
12982
12996
 
@@ -13168,6 +13182,87 @@ class Icon extends SvelteComponent {
13168
13182
  }
13169
13183
  }
13170
13184
 
13185
+ const BUTTON_SIZE_STYLES = {
13186
+ extra_small: {
13187
+ minHeight: '32px',
13188
+ paddingInline: '12px',
13189
+ fontSize: '12px',
13190
+ paddingBlock: '8px',
13191
+ lineHeight: 1.5,
13192
+ borderRadius: '4px',
13193
+ },
13194
+ small: {
13195
+ minHeight: '36px',
13196
+ paddingInline: '16px',
13197
+ fontSize: '13px',
13198
+ paddingBlock: '8px',
13199
+ lineHeight: 1.5,
13200
+ borderRadius: '4px',
13201
+ },
13202
+ medium: {
13203
+ minHeight: '40px',
13204
+ paddingInline: '24px',
13205
+ fontSize: '14px',
13206
+ paddingBlock: '8px',
13207
+ lineHeight: 1.5,
13208
+ borderRadius: '4px',
13209
+ },
13210
+ large: {
13211
+ minHeight: '48px',
13212
+ paddingInline: '32px',
13213
+ fontSize: '14px',
13214
+ paddingBlock: '10px',
13215
+ lineHeight: 1.5,
13216
+ borderRadius: '4px',
13217
+ },
13218
+ extra_large: {
13219
+ minHeight: '56px',
13220
+ paddingInline: '40px',
13221
+ fontSize: '17px',
13222
+ paddingBlock: '12px',
13223
+ lineHeight: 1.5,
13224
+ borderRadius: '4px',
13225
+ },
13226
+ };
13227
+ const BUTTON_THEME_STYLES = {
13228
+ theme: {
13229
+ backgroundColor: 'rgba(18,160,160,1)',
13230
+ color: '#FFFFFF',
13231
+ fontWeight: 'bold',
13232
+ },
13233
+ default: {
13234
+ backgroundColor: '#33403e',
13235
+ color: '#FFFFFF',
13236
+ fontWeight: 'bold',
13237
+ },
13238
+ transparent: {
13239
+ backgroundColor: 'rgba(255, 255, 255, 0)',
13240
+ color: '#00100ea1',
13241
+ fontWeight: 'bold',
13242
+ },
13243
+ alert: {
13244
+ backgroundColor: 'rgb(242,83,32,1)',
13245
+ color: '#FFFFFF',
13246
+ fontWeight: 'bold',
13247
+ },
13248
+ };
13249
+ const BUTTON_ROUND_STYLES = {
13250
+ none: {
13251
+ borderRadius: 0,
13252
+ },
13253
+ default: {},
13254
+ fulled: {
13255
+ borderRadius: '56px',
13256
+ },
13257
+ };
13258
+ const BUTTON_WRAP_STYLES = {
13259
+ nowrap: {
13260
+ whiteSpace: 'nowrap',
13261
+ },
13262
+ wrap: {
13263
+ whiteSpace: 'pre-wrap',
13264
+ },
13265
+ };
13171
13266
  const BUTTON_VARIANTS = {
13172
13267
  size: {
13173
13268
  extra_small: {
@@ -13261,7 +13356,7 @@ function add_css$7(target) {
13261
13356
  append_styles(target, "svelte-bo01kn", ".button.svelte-bo01kn{display:inline-flex;align-content:center;justify-content:center;gap:0.65em;cursor:pointer;outline:0;transition:background-color 0.12s, border-color 0.12s, color 0.12s}.button-icon.svelte-bo01kn{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em}");
13262
13357
  }
13263
13358
 
13264
- // (49:2) {#if (props.isIcon && props.iconVariant)}
13359
+ // (45:2) {#if (props.isIcon && props.iconVariant)}
13265
13360
  function create_if_block$4(ctx) {
13266
13361
  let div;
13267
13362
  let icon;
@@ -13271,7 +13366,7 @@ function create_if_block$4(ctx) {
13271
13366
  props: {
13272
13367
  props: {
13273
13368
  variant: /*props*/ ctx[0].iconVariant,
13274
- color: /*props*/ ctx[0].color ?? BUTTON_VARIANTS.theme[/*props*/ ctx[0].theme ?? 'default'].color
13369
+ color: /*props*/ ctx[0].color ?? /*buttonThemeStyle*/ ctx[3].color
13275
13370
  }
13276
13371
  }
13277
13372
  });
@@ -13292,7 +13387,7 @@ function create_if_block$4(ctx) {
13292
13387
 
13293
13388
  if (dirty & /*props*/ 1) icon_changes.props = {
13294
13389
  variant: /*props*/ ctx[0].iconVariant,
13295
- color: /*props*/ ctx[0].color ?? BUTTON_VARIANTS.theme[/*props*/ ctx[0].theme ?? 'default'].color
13390
+ color: /*props*/ ctx[0].color ?? /*buttonThemeStyle*/ ctx[3].color
13296
13391
  };
13297
13392
 
13298
13393
  icon.$set(icon_changes);
@@ -13317,7 +13412,7 @@ function create_fragment$7(ctx) {
13317
13412
  let button;
13318
13413
  let t0;
13319
13414
  let span;
13320
- let t1_value = /*props*/ ctx[0].label + "";
13415
+ let t1_value = (/*props*/ ctx[0].label ?? buttonPropsDefault.label) + "";
13321
13416
  let t1;
13322
13417
  let current;
13323
13418
  let mounted;
@@ -13344,7 +13439,7 @@ function create_fragment$7(ctx) {
13344
13439
  current = true;
13345
13440
 
13346
13441
  if (!mounted) {
13347
- dispose = listen(button, "click", checkStopPropagation('click', /*handleClick*/ ctx[3]));
13442
+ dispose = listen(button, "click", checkStopPropagation('click', /*handleClick*/ ctx[4]));
13348
13443
  mounted = true;
13349
13444
  }
13350
13445
  },
@@ -13372,7 +13467,7 @@ function create_fragment$7(ctx) {
13372
13467
  check_outros();
13373
13468
  }
13374
13469
 
13375
- if ((!current || dirty & /*props*/ 1) && t1_value !== (t1_value = /*props*/ ctx[0].label + "")) set_data(t1, t1_value);
13470
+ if ((!current || dirty & /*props*/ 1) && t1_value !== (t1_value = (/*props*/ ctx[0].label ?? buttonPropsDefault.label) + "")) set_data(t1, t1_value);
13376
13471
 
13377
13472
  if (!current || dirty & /*layerId*/ 2) {
13378
13473
  attr(button, "data-layer-id", /*layerId*/ ctx[1]);
@@ -13407,6 +13502,7 @@ function instance$7($$self, $$props, $$invalidate) {
13407
13502
  let { eventValue = undefined } = $$props;
13408
13503
  let { props = {} } = $$props;
13409
13504
  let { layerId = '' } = $$props;
13505
+ const buttonThemeStyle = BUTTON_THEME_STYLES[props.theme ?? buttonPropsDefault.theme];
13410
13506
 
13411
13507
  function handleClick() {
13412
13508
  if (eventName) {
@@ -13417,9 +13513,9 @@ function instance$7($$self, $$props, $$invalidate) {
13417
13513
  }
13418
13514
 
13419
13515
  $$self.$$set = $$props => {
13420
- if ('onClick' in $$props) $$invalidate(4, onClick = $$props.onClick);
13421
- if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
13422
- if ('eventValue' in $$props) $$invalidate(6, eventValue = $$props.eventValue);
13516
+ if ('onClick' in $$props) $$invalidate(5, onClick = $$props.onClick);
13517
+ if ('eventName' in $$props) $$invalidate(6, eventName = $$props.eventName);
13518
+ if ('eventValue' in $$props) $$invalidate(7, eventValue = $$props.eventValue);
13423
13519
  if ('props' in $$props) $$invalidate(0, props = $$props.props);
13424
13520
  if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
13425
13521
  };
@@ -13435,21 +13531,31 @@ function instance$7($$self, $$props, $$invalidate) {
13435
13531
  border: 0,
13436
13532
  transition: 'background-color 0.12s, border-color 0.12s, color 0.12s',
13437
13533
  width: props.width,
13438
- backgroundColor: props.backgroundColor ?? BUTTON_VARIANTS.theme[props.theme ?? 'default'].backgroundColor,
13439
- color: props.color ?? BUTTON_VARIANTS.theme[props.theme ?? 'default'].color,
13440
- fontWeight: props.fontWeight ?? BUTTON_VARIANTS.theme[props.theme ?? 'default'].fontWeight,
13441
- ...BUTTON_VARIANTS.size[props.size ?? 'medium'],
13442
- ...BUTTON_VARIANTS.wrap[props.wrap ?? 'nowrap'],
13443
- ...BUTTON_VARIANTS.round[props.round ?? 'default'],
13534
+ backgroundColor: props.backgroundColor ?? buttonThemeStyle.backgroundColor,
13535
+ color: props.color ?? buttonThemeStyle.color,
13536
+ fontWeight: props.fontWeight ?? buttonThemeStyle.fontWeight,
13537
+ ...BUTTON_SIZE_STYLES[props.size ?? buttonPropsDefault.size],
13538
+ ...BUTTON_WRAP_STYLES[props.wrap ?? buttonPropsDefault.wrap],
13539
+ ...BUTTON_ROUND_STYLES[props.round ?? buttonPropsDefault.round],
13444
13540
  ...props.iconAngle
13445
13541
  ? { flexDirection: props.iconAngle }
13446
13542
  : {},
13447
- ...toCssCommon(props)
13543
+ ...toCssCommon(props),
13544
+ ...toCssBorder(props)
13448
13545
  }));
13449
13546
  }
13450
13547
  };
13451
13548
 
13452
- return [props, layerId, style, handleClick, onClick, eventName, eventValue];
13549
+ return [
13550
+ props,
13551
+ layerId,
13552
+ style,
13553
+ buttonThemeStyle,
13554
+ handleClick,
13555
+ onClick,
13556
+ eventName,
13557
+ eventValue
13558
+ ];
13453
13559
  }
13454
13560
 
13455
13561
  class Button extends SvelteComponent {
@@ -13463,9 +13569,9 @@ class Button extends SvelteComponent {
13463
13569
  create_fragment$7,
13464
13570
  safe_not_equal,
13465
13571
  {
13466
- onClick: 4,
13467
- eventName: 5,
13468
- eventValue: 6,
13572
+ onClick: 5,
13573
+ eventName: 6,
13574
+ eventValue: 7,
13469
13575
  props: 0,
13470
13576
  layerId: 1
13471
13577
  },
@@ -13474,33 +13580,6 @@ class Button extends SvelteComponent {
13474
13580
  }
13475
13581
  }
13476
13582
 
13477
- const BUTTON_SIZE = {
13478
- extra_small: 'XSmall',
13479
- small: 'Small',
13480
- medium: 'Medium',
13481
- large: 'Large',
13482
- extra_large: 'XLarge',
13483
- };
13484
- const BUTTON_THEME = {
13485
- default: 'デフォルト',
13486
- theme: 'テーマカラー',
13487
- alert: 'アラート',
13488
- transparent: '背景なし',
13489
- };
13490
- const BUTTON_ROUND = {
13491
- default: 'デフォルト',
13492
- none: 'なし',
13493
- fulled: '円形',
13494
- };
13495
- const BUTTON_LINK_TARGET = {
13496
- _self: '画面内遷移',
13497
- _blank: '別タブで開く',
13498
- };
13499
- const BUTTON_ICON_ANGLE = {
13500
- row: '左側',
13501
- 'row-reverse': '右側',
13502
- };
13503
-
13504
13583
  /* src/components-flex/text-button/TextButton.svelte generated by Svelte v3.53.1 */
13505
13584
 
13506
13585
  function add_css$6(target) {
@@ -14427,8 +14506,6 @@ class Text extends SvelteComponent {
14427
14506
  }
14428
14507
  }
14429
14508
 
14430
- const LAYER_TEXT_ALIGN_VALUES = ['center', 'left', 'right'];
14431
- const LAYER_TEXT_FONT_WEIGHT_VALUES = ['bold', 'normal'];
14432
14509
  const LAYER_TEXT_SIZE = {
14433
14510
  extra_small: 'ExtraSmall',
14434
14511
  small: 'Small',
@@ -15178,4 +15255,57 @@ class Modal extends SvelteComponent {
15178
15255
  }
15179
15256
  }
15180
15257
 
15181
- export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_ROUND, BUTTON_SIZE, BUTTON_THEME, BUTTON_VARIANTS, BackgroundSizes, Box, CLOSE_BUTTON_LABEL_PLACEMENT, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, COMPONENT_PARAMETER_TYPES, 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, CloseButton as FlexCloseButton, FlexDirections, Icon as FlexIcon, Image as FlexImage, FlexItem, Layout as FlexLayout, Modal as FlexModal, Text as FlexText, TextButton as FlexTextButton, Fonts, FormCheckBoxes, FormIdentifyBooleanFields, FormIdentifyChoices, FormIdentifyInput, FormIdentifyTextFieldPlaceholders, FormIdentifyTextFieldValidations, FormIdentifyTextFields, FormRadioButtons, FormRatingButtonsFace, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ICON_PARAMS, ICON_SIZE, ICON_VARIANTS, IconElement, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LAYER_TEXT_ALIGN_VALUES, LAYER_TEXT_FONT_WEIGHT_VALUES, 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, Repeats, SYSTEM_FONT, Slide, SlideItem, State, StateItem, TEXT_BUTTON_COLOR, TEXT_BUTTON_ICON_ANGLE, TEXT_BUTTON_LINK_TARGET, TEXT_BUTTON_ROUND, TEXT_BUTTON_SIZE, TEXT_VARIANTS, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, 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 };
15258
+ const SHADOW_STYLES = {
15259
+ extra_small: {
15260
+ boxShadow: '0 1px 2px 0 rgba(0,0,0,0.1)',
15261
+ },
15262
+ small: {
15263
+ boxShadow: '0 2px 4px 1px rgba(0,0,0,0.1)',
15264
+ },
15265
+ medium: {
15266
+ boxShadow: '0px 4px 8px 2px rgba(0,0,0,0.1)',
15267
+ },
15268
+ large: {
15269
+ boxShadow: '0px 8px 16px 4px rgba(0,0,0,0.1)',
15270
+ },
15271
+ };
15272
+ const ROUND_STYLES = {
15273
+ extra_small: {
15274
+ borderTopLeftRadius: '2px',
15275
+ borderTopRightRadius: '2px',
15276
+ borderBottomLeftRadius: '2px',
15277
+ borderBottomRightRadius: '2px',
15278
+ },
15279
+ small: {
15280
+ borderTopLeftRadius: '4px',
15281
+ borderTopRightRadius: '4px',
15282
+ borderBottomLeftRadius: '4px',
15283
+ borderBottomRightRadius: '4px',
15284
+ },
15285
+ medium: {
15286
+ borderTopLeftRadius: '8px',
15287
+ borderTopRightRadius: '8px',
15288
+ borderBottomLeftRadius: '8px',
15289
+ borderBottomRightRadius: '8px',
15290
+ },
15291
+ large: {
15292
+ borderTopLeftRadius: '16px',
15293
+ borderTopRightRadius: '16px',
15294
+ borderBottomLeftRadius: '16px',
15295
+ borderBottomRightRadius: '16px',
15296
+ },
15297
+ extra_large: {
15298
+ borderTopLeftRadius: '24px',
15299
+ borderTopRightRadius: '24px',
15300
+ borderBottomLeftRadius: '24px',
15301
+ borderBottomRightRadius: '24px',
15302
+ },
15303
+ fulled: {
15304
+ borderTopLeftRadius: '100%',
15305
+ borderTopRightRadius: '100%',
15306
+ borderBottomLeftRadius: '100%',
15307
+ borderBottomRightRadius: '100%',
15308
+ },
15309
+ };
15310
+
15311
+ export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_ROUND, BUTTON_ROUND_STYLES, BUTTON_SIZE, BUTTON_SIZE_STYLES, BUTTON_THEME, BUTTON_THEME_STYLES, BUTTON_VARIANTS, 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, CloseButton as FlexCloseButton, FlexDirections, Icon as FlexIcon, Image as FlexImage, FlexItem, Layout as FlexLayout, Modal as FlexModal, Text as FlexText, TextButton as FlexTextButton, 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_BUTTON_COLOR, TEXT_BUTTON_ICON_ANGLE, TEXT_BUTTON_LINK_TARGET, TEXT_BUTTON_ROUND, TEXT_BUTTON_SIZE, TEXT_VARIANTS, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, 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.241-28706520.9a16bb68",
3
+ "version": "1.1.241-28708191.857eef2c",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",