@plaidev/karte-action-sdk 1.1.241-28705558.eff03b11 → 1.1.241-28708101.49567078

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"];
@@ -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";
@@ -2716,22 +2694,27 @@ declare const TEXT_VARIANTS: {
2716
2694
  extra_small: {
2717
2695
  fontSize: string;
2718
2696
  lineHeight: number;
2697
+ fontWeight: string;
2719
2698
  };
2720
2699
  small: {
2721
2700
  fontSize: string;
2722
2701
  lineHeight: number;
2702
+ fontWeight: string;
2723
2703
  };
2724
2704
  medium: {
2725
2705
  fontSize: string;
2726
2706
  lineHeight: number;
2707
+ fontWeight: string;
2727
2708
  };
2728
2709
  large: {
2729
2710
  fontSize: string;
2730
2711
  lineHeight: number;
2712
+ fontWeight: string;
2731
2713
  };
2732
2714
  extra_large: {
2733
2715
  fontSize: string;
2734
2716
  lineHeight: number;
2717
+ fontWeight: string;
2735
2718
  };
2736
2719
  heading_extra_small: {
2737
2720
  fontSize: string;
@@ -2760,7 +2743,9 @@ declare const TEXT_VARIANTS: {
2760
2743
  };
2761
2744
  };
2762
2745
  };
2763
- 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 };
2764
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 };
2765
2750
  export { default as State } from './components/State.svelte';
2766
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
 
@@ -13979,7 +13993,7 @@ function add_css$8(target) {
13979
13993
  append_styles(target, "svelte-1mx2edd", ".icon.svelte-1mx2edd{display:inline-flex;align-items:center;overflow:hidden;width:auto}");
13980
13994
  }
13981
13995
 
13982
- // (20:0) {#if (IconComponent)}
13996
+ // (21:0) {#if (IconComponent)}
13983
13997
  function create_if_block$5(ctx) {
13984
13998
  let div;
13985
13999
  let switch_instance;
@@ -14155,6 +14169,8 @@ function instance$8($$self, $$props, $$invalidate) {
14155
14169
  };
14156
14170
  };
14157
14171
 
14172
+ console.log(props.color);
14173
+
14158
14174
  $$self.$$set = $$props => {
14159
14175
  if ('props' in $$props) $$invalidate(0, props = $$props.props);
14160
14176
  if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
@@ -14180,6 +14196,87 @@ class Icon extends SvelteComponent {
14180
14196
  }
14181
14197
  }
14182
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
+ };
14183
14280
  const BUTTON_VARIANTS = {
14184
14281
  size: {
14185
14282
  extra_small: {
@@ -14198,7 +14295,6 @@ const BUTTON_VARIANTS = {
14198
14295
  lineHeight: 1.5,
14199
14296
  borderRadius: '4px',
14200
14297
  },
14201
- // 'min-h-10 px-6 text-sm py-2 leading-[150%]'
14202
14298
  medium: {
14203
14299
  minHeight: '40px',
14204
14300
  paddingInline: '24px',
@@ -14207,7 +14303,6 @@ const BUTTON_VARIANTS = {
14207
14303
  lineHeight: 1.5,
14208
14304
  borderRadius: '4px',
14209
14305
  },
14210
- // 'min-h-14 px-8 text-lg py-3 leading-[150%]'
14211
14306
  large: {
14212
14307
  minHeight: '48px',
14213
14308
  paddingInline: '32px',
@@ -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
- // (47:2) {#if (props.isIcon && props.iconVariant)}
14373
+ // (44: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: BUTTON_VARIANTS.theme[/*props*/ ctx[0].theme ?? 'default'].theme
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: BUTTON_VARIANTS.theme[/*props*/ ctx[0].theme ?? 'default'].theme
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,14 +14546,7 @@ function instance$7($$self, $$props, $$invalidate) {
14451
14546
  let { eventValue = undefined } = $$props;
14452
14547
  let { props = {} } = $$props;
14453
14548
  let { layerId = '' } = $$props;
14454
-
14455
- const getCssVariantTheme = () => {
14456
- return {
14457
- backgroundColor: props.backgroundColor ?? BUTTON_VARIANTS.theme[props.theme ?? 'default'].backgroundColor,
14458
- color: props.color ?? BUTTON_VARIANTS.theme[props.theme ?? 'default'].color,
14459
- fontWeight: props.fontWeight ?? BUTTON_VARIANTS.theme[props.theme ?? 'default'].fontWeight
14460
- };
14461
- };
14549
+ const buttonThemeStyle = BUTTON_THEME_STYLES[props.theme ?? buttonPropsDefault.theme];
14462
14550
 
14463
14551
  function handleClick() {
14464
14552
  if (eventName) {
@@ -14469,9 +14557,9 @@ function instance$7($$self, $$props, $$invalidate) {
14469
14557
  }
14470
14558
 
14471
14559
  $$self.$$set = $$props => {
14472
- if ('onClick' in $$props) $$invalidate(4, onClick = $$props.onClick);
14473
- if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
14474
- 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);
14475
14563
  if ('props' in $$props) $$invalidate(0, props = $$props.props);
14476
14564
  if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
14477
14565
  };
@@ -14487,19 +14575,30 @@ function instance$7($$self, $$props, $$invalidate) {
14487
14575
  border: 0,
14488
14576
  transition: 'background-color 0.12s, border-color 0.12s, color 0.12s',
14489
14577
  width: props.width,
14490
- ...BUTTON_VARIANTS.size[props.size ?? 'medium'],
14491
- ...BUTTON_VARIANTS.wrap[props.wrap ?? 'nowrap'],
14492
- ...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],
14493
14584
  ...props.iconAngle
14494
14585
  ? { flexDirection: props.iconAngle }
14495
14586
  : {},
14496
- ...getCssVariantTheme(),
14497
14587
  ...toCssCommon(props)
14498
14588
  }));
14499
14589
  }
14500
14590
  };
14501
14591
 
14502
- return [props, layerId, style, handleClick, onClick, eventName, eventValue];
14592
+ return [
14593
+ props,
14594
+ layerId,
14595
+ style,
14596
+ buttonThemeStyle,
14597
+ handleClick,
14598
+ onClick,
14599
+ eventName,
14600
+ eventValue
14601
+ ];
14503
14602
  }
14504
14603
 
14505
14604
  class Button extends SvelteComponent {
@@ -14513,9 +14612,9 @@ class Button extends SvelteComponent {
14513
14612
  create_fragment$7,
14514
14613
  safe_not_equal,
14515
14614
  {
14516
- onClick: 4,
14517
- eventName: 5,
14518
- eventValue: 6,
14615
+ onClick: 5,
14616
+ eventName: 6,
14617
+ eventValue: 7,
14519
14618
  props: 0,
14520
14619
  layerId: 1
14521
14620
  },
@@ -14524,33 +14623,6 @@ class Button extends SvelteComponent {
14524
14623
  }
14525
14624
  }
14526
14625
 
14527
- const BUTTON_SIZE = {
14528
- extra_small: 'XSmall',
14529
- small: 'Small',
14530
- medium: 'Medium',
14531
- large: 'Large',
14532
- extra_large: 'XLarge',
14533
- };
14534
- const BUTTON_THEME = {
14535
- default: 'デフォルト',
14536
- theme: 'テーマカラー',
14537
- alert: 'アラート',
14538
- transparent: '背景なし',
14539
- };
14540
- const BUTTON_ROUND = {
14541
- default: 'デフォルト',
14542
- none: 'なし',
14543
- fulled: '円形',
14544
- };
14545
- const BUTTON_LINK_TARGET = {
14546
- _self: '画面内遷移',
14547
- _blank: '別タブで開く',
14548
- };
14549
- const BUTTON_ICON_ANGLE = {
14550
- row: '左側',
14551
- 'row-reverse': '右側',
14552
- };
14553
-
14554
14626
  /* src/components-flex/text-button/TextButton.svelte generated by Svelte v3.53.1 */
14555
14627
 
14556
14628
  function add_css$6(target) {
@@ -15446,22 +15518,27 @@ const TEXT_VARIANTS = {
15446
15518
  extra_small: {
15447
15519
  fontSize: '10px',
15448
15520
  lineHeight: 1.7,
15521
+ fontWeight: 'normal',
15449
15522
  },
15450
15523
  small: {
15451
15524
  fontSize: '12px',
15452
15525
  lineHeight: 1.7,
15526
+ fontWeight: 'normal',
15453
15527
  },
15454
15528
  medium: {
15455
15529
  fontSize: '14px',
15456
15530
  lineHeight: 1.7,
15531
+ fontWeight: 'normal',
15457
15532
  },
15458
15533
  large: {
15459
15534
  fontSize: '16px',
15460
15535
  lineHeight: 1.7,
15536
+ fontWeight: 'normal',
15461
15537
  },
15462
15538
  extra_large: {
15463
15539
  fontSize: '18px',
15464
15540
  lineHeight: 1.7,
15541
+ fontWeight: 'normal',
15465
15542
  },
15466
15543
  heading_extra_small: {
15467
15544
  fontSize: '14px',
@@ -15594,8 +15671,6 @@ class Text extends SvelteComponent {
15594
15671
  }
15595
15672
  }
15596
15673
 
15597
- const LAYER_TEXT_ALIGN_VALUES = ['center', 'left', 'right'];
15598
- const LAYER_TEXT_FONT_WEIGHT_VALUES = ['bold', 'normal'];
15599
15674
  const LAYER_TEXT_SIZE = {
15600
15675
  extra_small: 'ExtraSmall',
15601
15676
  small: 'Small',
@@ -16359,4 +16434,57 @@ class Modal extends SvelteComponent {
16359
16434
  }
16360
16435
  }
16361
16436
 
16362
- 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 };
16437
+ const SHADOW_STYLES = {
16438
+ extra_small: {
16439
+ boxShadow: '0 1px 2px 0 rgba(0,0,0,0.1)',
16440
+ },
16441
+ small: {
16442
+ boxShadow: '0 2px 4px 1px rgba(0,0,0,0.1)',
16443
+ },
16444
+ medium: {
16445
+ boxShadow: '0px 4px 8px 2px rgba(0,0,0,0.1)',
16446
+ },
16447
+ large: {
16448
+ boxShadow: '0px 8px 16px 4px rgba(0,0,0,0.1)',
16449
+ },
16450
+ };
16451
+ const ROUND_STYLES = {
16452
+ extra_small: {
16453
+ borderTopLeftRadius: '2px',
16454
+ borderTopRightRadius: '2px',
16455
+ borderBottomLeftRadius: '2px',
16456
+ borderBottomRightRadius: '2px',
16457
+ },
16458
+ small: {
16459
+ borderTopLeftRadius: '4px',
16460
+ borderTopRightRadius: '4px',
16461
+ borderBottomLeftRadius: '4px',
16462
+ borderBottomRightRadius: '4px',
16463
+ },
16464
+ medium: {
16465
+ borderTopLeftRadius: '8px',
16466
+ borderTopRightRadius: '8px',
16467
+ borderBottomLeftRadius: '8px',
16468
+ borderBottomRightRadius: '8px',
16469
+ },
16470
+ large: {
16471
+ borderTopLeftRadius: '16px',
16472
+ borderTopRightRadius: '16px',
16473
+ borderBottomLeftRadius: '16px',
16474
+ borderBottomRightRadius: '16px',
16475
+ },
16476
+ extra_large: {
16477
+ borderTopLeftRadius: '24px',
16478
+ borderTopRightRadius: '24px',
16479
+ borderBottomLeftRadius: '24px',
16480
+ borderBottomRightRadius: '24px',
16481
+ },
16482
+ fulled: {
16483
+ borderTopLeftRadius: '100%',
16484
+ borderTopRightRadius: '100%',
16485
+ borderBottomLeftRadius: '100%',
16486
+ borderBottomRightRadius: '100%',
16487
+ },
16488
+ };
16489
+
16490
+ 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"];
@@ -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";
@@ -2716,22 +2694,27 @@ declare const TEXT_VARIANTS: {
2716
2694
  extra_small: {
2717
2695
  fontSize: string;
2718
2696
  lineHeight: number;
2697
+ fontWeight: string;
2719
2698
  };
2720
2699
  small: {
2721
2700
  fontSize: string;
2722
2701
  lineHeight: number;
2702
+ fontWeight: string;
2723
2703
  };
2724
2704
  medium: {
2725
2705
  fontSize: string;
2726
2706
  lineHeight: number;
2707
+ fontWeight: string;
2727
2708
  };
2728
2709
  large: {
2729
2710
  fontSize: string;
2730
2711
  lineHeight: number;
2712
+ fontWeight: string;
2731
2713
  };
2732
2714
  extra_large: {
2733
2715
  fontSize: string;
2734
2716
  lineHeight: number;
2717
+ fontWeight: string;
2735
2718
  };
2736
2719
  heading_extra_small: {
2737
2720
  fontSize: string;
@@ -2760,7 +2743,9 @@ declare const TEXT_VARIANTS: {
2760
2743
  };
2761
2744
  };
2762
2745
  };
2763
- 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 };
2764
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 };
2765
2750
  export { default as State } from './components/State.svelte';
2766
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
 
@@ -12984,7 +12998,7 @@ function add_css$8(target) {
12984
12998
  append_styles(target, "svelte-1mx2edd", ".icon.svelte-1mx2edd{display:inline-flex;align-items:center;overflow:hidden;width:auto}");
12985
12999
  }
12986
13000
 
12987
- // (20:0) {#if (IconComponent)}
13001
+ // (21:0) {#if (IconComponent)}
12988
13002
  function create_if_block$5(ctx) {
12989
13003
  let div;
12990
13004
  let switch_instance;
@@ -13141,6 +13155,8 @@ function instance$8($$self, $$props, $$invalidate) {
13141
13155
  };
13142
13156
  };
13143
13157
 
13158
+ console.log(props.color);
13159
+
13144
13160
  $$self.$$set = $$props => {
13145
13161
  if ('props' in $$props) $$invalidate(0, props = $$props.props);
13146
13162
  if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
@@ -13166,6 +13182,87 @@ class Icon extends SvelteComponent {
13166
13182
  }
13167
13183
  }
13168
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
+ };
13169
13266
  const BUTTON_VARIANTS = {
13170
13267
  size: {
13171
13268
  extra_small: {
@@ -13184,7 +13281,6 @@ const BUTTON_VARIANTS = {
13184
13281
  lineHeight: 1.5,
13185
13282
  borderRadius: '4px',
13186
13283
  },
13187
- // 'min-h-10 px-6 text-sm py-2 leading-[150%]'
13188
13284
  medium: {
13189
13285
  minHeight: '40px',
13190
13286
  paddingInline: '24px',
@@ -13193,7 +13289,6 @@ const BUTTON_VARIANTS = {
13193
13289
  lineHeight: 1.5,
13194
13290
  borderRadius: '4px',
13195
13291
  },
13196
- // 'min-h-14 px-8 text-lg py-3 leading-[150%]'
13197
13292
  large: {
13198
13293
  minHeight: '48px',
13199
13294
  paddingInline: '32px',
@@ -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
- // (47:2) {#if (props.isIcon && props.iconVariant)}
13359
+ // (44: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: BUTTON_VARIANTS.theme[/*props*/ ctx[0].theme ?? 'default'].theme
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: BUTTON_VARIANTS.theme[/*props*/ ctx[0].theme ?? 'default'].theme
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,14 +13502,7 @@ function instance$7($$self, $$props, $$invalidate) {
13407
13502
  let { eventValue = undefined } = $$props;
13408
13503
  let { props = {} } = $$props;
13409
13504
  let { layerId = '' } = $$props;
13410
-
13411
- const getCssVariantTheme = () => {
13412
- return {
13413
- backgroundColor: props.backgroundColor ?? BUTTON_VARIANTS.theme[props.theme ?? 'default'].backgroundColor,
13414
- color: props.color ?? BUTTON_VARIANTS.theme[props.theme ?? 'default'].color,
13415
- fontWeight: props.fontWeight ?? BUTTON_VARIANTS.theme[props.theme ?? 'default'].fontWeight
13416
- };
13417
- };
13505
+ const buttonThemeStyle = BUTTON_THEME_STYLES[props.theme ?? buttonPropsDefault.theme];
13418
13506
 
13419
13507
  function handleClick() {
13420
13508
  if (eventName) {
@@ -13425,9 +13513,9 @@ function instance$7($$self, $$props, $$invalidate) {
13425
13513
  }
13426
13514
 
13427
13515
  $$self.$$set = $$props => {
13428
- if ('onClick' in $$props) $$invalidate(4, onClick = $$props.onClick);
13429
- if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
13430
- 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);
13431
13519
  if ('props' in $$props) $$invalidate(0, props = $$props.props);
13432
13520
  if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
13433
13521
  };
@@ -13443,19 +13531,30 @@ function instance$7($$self, $$props, $$invalidate) {
13443
13531
  border: 0,
13444
13532
  transition: 'background-color 0.12s, border-color 0.12s, color 0.12s',
13445
13533
  width: props.width,
13446
- ...BUTTON_VARIANTS.size[props.size ?? 'medium'],
13447
- ...BUTTON_VARIANTS.wrap[props.wrap ?? 'nowrap'],
13448
- ...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],
13449
13540
  ...props.iconAngle
13450
13541
  ? { flexDirection: props.iconAngle }
13451
13542
  : {},
13452
- ...getCssVariantTheme(),
13453
13543
  ...toCssCommon(props)
13454
13544
  }));
13455
13545
  }
13456
13546
  };
13457
13547
 
13458
- return [props, layerId, style, handleClick, onClick, eventName, eventValue];
13548
+ return [
13549
+ props,
13550
+ layerId,
13551
+ style,
13552
+ buttonThemeStyle,
13553
+ handleClick,
13554
+ onClick,
13555
+ eventName,
13556
+ eventValue
13557
+ ];
13459
13558
  }
13460
13559
 
13461
13560
  class Button extends SvelteComponent {
@@ -13469,9 +13568,9 @@ class Button extends SvelteComponent {
13469
13568
  create_fragment$7,
13470
13569
  safe_not_equal,
13471
13570
  {
13472
- onClick: 4,
13473
- eventName: 5,
13474
- eventValue: 6,
13571
+ onClick: 5,
13572
+ eventName: 6,
13573
+ eventValue: 7,
13475
13574
  props: 0,
13476
13575
  layerId: 1
13477
13576
  },
@@ -13480,33 +13579,6 @@ class Button extends SvelteComponent {
13480
13579
  }
13481
13580
  }
13482
13581
 
13483
- const BUTTON_SIZE = {
13484
- extra_small: 'XSmall',
13485
- small: 'Small',
13486
- medium: 'Medium',
13487
- large: 'Large',
13488
- extra_large: 'XLarge',
13489
- };
13490
- const BUTTON_THEME = {
13491
- default: 'デフォルト',
13492
- theme: 'テーマカラー',
13493
- alert: 'アラート',
13494
- transparent: '背景なし',
13495
- };
13496
- const BUTTON_ROUND = {
13497
- default: 'デフォルト',
13498
- none: 'なし',
13499
- fulled: '円形',
13500
- };
13501
- const BUTTON_LINK_TARGET = {
13502
- _self: '画面内遷移',
13503
- _blank: '別タブで開く',
13504
- };
13505
- const BUTTON_ICON_ANGLE = {
13506
- row: '左側',
13507
- 'row-reverse': '右側',
13508
- };
13509
-
13510
13582
  /* src/components-flex/text-button/TextButton.svelte generated by Svelte v3.53.1 */
13511
13583
 
13512
13584
  function add_css$6(target) {
@@ -14294,22 +14366,27 @@ const TEXT_VARIANTS = {
14294
14366
  extra_small: {
14295
14367
  fontSize: '10px',
14296
14368
  lineHeight: 1.7,
14369
+ fontWeight: 'normal',
14297
14370
  },
14298
14371
  small: {
14299
14372
  fontSize: '12px',
14300
14373
  lineHeight: 1.7,
14374
+ fontWeight: 'normal',
14301
14375
  },
14302
14376
  medium: {
14303
14377
  fontSize: '14px',
14304
14378
  lineHeight: 1.7,
14379
+ fontWeight: 'normal',
14305
14380
  },
14306
14381
  large: {
14307
14382
  fontSize: '16px',
14308
14383
  lineHeight: 1.7,
14384
+ fontWeight: 'normal',
14309
14385
  },
14310
14386
  extra_large: {
14311
14387
  fontSize: '18px',
14312
14388
  lineHeight: 1.7,
14389
+ fontWeight: 'normal',
14313
14390
  },
14314
14391
  heading_extra_small: {
14315
14392
  fontSize: '14px',
@@ -14428,8 +14505,6 @@ class Text extends SvelteComponent {
14428
14505
  }
14429
14506
  }
14430
14507
 
14431
- const LAYER_TEXT_ALIGN_VALUES = ['center', 'left', 'right'];
14432
- const LAYER_TEXT_FONT_WEIGHT_VALUES = ['bold', 'normal'];
14433
14508
  const LAYER_TEXT_SIZE = {
14434
14509
  extra_small: 'ExtraSmall',
14435
14510
  small: 'Small',
@@ -15179,4 +15254,57 @@ class Modal extends SvelteComponent {
15179
15254
  }
15180
15255
  }
15181
15256
 
15182
- 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 };
15257
+ const SHADOW_STYLES = {
15258
+ extra_small: {
15259
+ boxShadow: '0 1px 2px 0 rgba(0,0,0,0.1)',
15260
+ },
15261
+ small: {
15262
+ boxShadow: '0 2px 4px 1px rgba(0,0,0,0.1)',
15263
+ },
15264
+ medium: {
15265
+ boxShadow: '0px 4px 8px 2px rgba(0,0,0,0.1)',
15266
+ },
15267
+ large: {
15268
+ boxShadow: '0px 8px 16px 4px rgba(0,0,0,0.1)',
15269
+ },
15270
+ };
15271
+ const ROUND_STYLES = {
15272
+ extra_small: {
15273
+ borderTopLeftRadius: '2px',
15274
+ borderTopRightRadius: '2px',
15275
+ borderBottomLeftRadius: '2px',
15276
+ borderBottomRightRadius: '2px',
15277
+ },
15278
+ small: {
15279
+ borderTopLeftRadius: '4px',
15280
+ borderTopRightRadius: '4px',
15281
+ borderBottomLeftRadius: '4px',
15282
+ borderBottomRightRadius: '4px',
15283
+ },
15284
+ medium: {
15285
+ borderTopLeftRadius: '8px',
15286
+ borderTopRightRadius: '8px',
15287
+ borderBottomLeftRadius: '8px',
15288
+ borderBottomRightRadius: '8px',
15289
+ },
15290
+ large: {
15291
+ borderTopLeftRadius: '16px',
15292
+ borderTopRightRadius: '16px',
15293
+ borderBottomLeftRadius: '16px',
15294
+ borderBottomRightRadius: '16px',
15295
+ },
15296
+ extra_large: {
15297
+ borderTopLeftRadius: '24px',
15298
+ borderTopRightRadius: '24px',
15299
+ borderBottomLeftRadius: '24px',
15300
+ borderBottomRightRadius: '24px',
15301
+ },
15302
+ fulled: {
15303
+ borderTopLeftRadius: '100%',
15304
+ borderTopRightRadius: '100%',
15305
+ borderBottomLeftRadius: '100%',
15306
+ borderBottomRightRadius: '100%',
15307
+ },
15308
+ };
15309
+
15310
+ 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-28705558.eff03b11",
3
+ "version": "1.1.241-28708101.49567078",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",