@useinsider/ab-components 0.0.59 → 0.0.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/icons.svg CHANGED
@@ -46,6 +46,9 @@
46
46
  <symbol viewBox="0 0 24 24" id="filled-dropdown-down">
47
47
  <path d="M7 10L12 15L17 10H7Z" fill="#495366"/>
48
48
  </symbol>
49
+ <symbol viewBox="0 0 24 24" id="dropdown-down-icon">
50
+ <path d="M8.04381 9H8.04582H15.9552H16C16.5523 9 17 9.44772 17 10L16.9998 10.0222C17.0057 10.2971 16.9037 10.5739 16.694 10.7836L12.7836 14.694C12.5682 14.9094 12.2821 15.0111 12 14.999C11.7179 15.0111 11.4318 14.9094 11.2164 14.694L7.30602 10.7836C7.09626 10.5739 6.99434 10.2971 7.00024 10.0222L7 10C7 9.44772 7.44772 9 8 9H8.04381Z" fill="#495366"/>
51
+ </symbol>
49
52
  <symbol id="filled-text-bold" width="24" height="24" viewBox="0 0 24 24">
50
53
  <path fill-rule="evenodd" clip-rule="evenodd" d="M12.2598 4C13.0787 4 13.815 4.10907 14.4685 4.32722C15.1221 4.54537 15.6693 4.84626 16.1102 5.2299C16.5512 5.61354 16.8898 6.06488 17.126 6.58392C17.3622 7.10296 17.4803 7.6709 17.4803 8.28773C17.4803 9.11519 17.2441 9.84109 16.7717 10.4654C16.2992 11.0898 15.7165 11.5073 15.0236 11.7179C15.4016 11.8082 15.7677 11.9549 16.122 12.158C16.4764 12.3611 16.7953 12.6206 17.0787 12.9365C17.3622 13.2525 17.5866 13.6248 17.752 14.0536C17.9173 14.4824 18 14.9525 18 15.464C18 16.126 17.874 16.7315 17.622 17.2807C17.3701 17.8298 17.0158 18.3075 16.5591 18.7137C16.1024 19.1199 15.5512 19.4358 14.9055 19.6615C14.2598 19.8872 13.5433 20 12.7559 20H8C6.89543 20 6 19.1046 6 18V6C6 4.89543 6.89543 4 8 4H12.2598ZM11.6693 10.409C12.3307 10.409 12.8543 10.2548 13.2401 9.9464C13.626 9.63798 13.8189 9.21297 13.8189 8.67136C13.8189 8.1448 13.6378 7.72731 13.2756 7.41889C12.9134 7.11048 12.3622 6.95627 11.622 6.95627H9.63779V10.409H11.6693ZM13.6772 16.5811C13.2677 16.9196 12.7008 17.0889 11.9764 17.0889H9.63779V13.3428H11.9764C12.7165 13.3428 13.2874 13.5158 13.689 13.8618C14.0905 14.2078 14.2913 14.6592 14.2913 15.2158C14.2913 15.7875 14.0866 16.2426 13.6772 16.5811Z"/>
51
54
  </symbol>
@@ -370,4 +373,16 @@
370
373
  <symbol id="line-change" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
371
374
  <path d="M6.23242 12.3064C6.63682 11.8984 7.29286 11.8984 7.69727 12.3064C8.10133 12.7144 8.10154 13.376 7.69727 13.7839L6.49121 14.9998H15C15.5522 14.9998 15.9998 15.4476 16 15.9998C16 16.552 15.5523 16.9998 15 16.9998H6.49121L7.69727 18.2166C8.10138 18.6245 8.10145 19.2861 7.69727 19.6941C7.29287 20.1021 6.63683 20.1021 6.23242 19.6941L3.30371 16.739C2.92459 16.3565 2.9007 15.751 3.23242 15.3406L3.30371 15.2615L6.23242 12.3064ZM16.3037 4.3064C16.7081 3.89839 17.3632 3.89843 17.7676 4.3064L20.6973 7.26147L20.7676 7.34058C21.0995 7.75093 21.0764 8.35641 20.6973 8.73901L17.7676 11.6941C17.3632 12.1018 16.708 12.1019 16.3037 11.6941C15.8993 11.2861 15.8993 10.6246 16.3037 10.2166L17.5088 8.99976H9C8.44782 8.99963 8 8.55196 8 7.99976C8.00015 7.44768 8.44792 6.99988 9 6.99976H17.5088L16.3037 5.78394C15.8993 5.37594 15.8994 4.71443 16.3037 4.3064Z" fill="#0A2ECC"/>
372
375
  </symbol>
376
+ <symbol id="feedback-helpful" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
377
+ <path d="M9.6416 4.49316C9.90691 3.43807 10.9855 2.80456 12.0361 3.08691C13.7375 3.54428 14.9199 5.08686 14.9199 6.84863V10.041C14.9201 10.317 15.1439 10.5409 15.4199 10.541H17.3955C19.6043 10.5412 21.3953 12.3322 21.3955 14.541V17C21.3952 19.2088 19.6043 20.9998 17.3955 21H9.99121C8.88681 21 7.99149 20.1043 7.99121 19V11.6758C7.99121 11.2648 8.04237 10.8547 8.14258 10.4561L9.6416 4.49316ZM4.99609 10.9854C5.54743 10.9854 5.99512 11.4321 5.99512 11.9834V20.001C5.99512 20.5523 5.54743 20.999 4.99609 20.999C3.89367 20.9988 3.00005 20.1054 3 19.0029V12.9814C3.00005 11.879 3.89367 10.9856 4.99609 10.9854ZM10.082 10.9443C10.022 11.1834 9.99121 11.4293 9.99121 11.6758V19H17.3955C18.4997 18.9998 19.3952 18.1042 19.3955 17V14.541C19.3953 13.4368 18.4998 12.5412 17.3955 12.541H15.4199C14.0394 12.5409 12.9201 11.4215 12.9199 10.041V6.84863C12.9199 6.00915 12.3677 5.27327 11.5674 5.03418L10.082 10.9443Z" fill="#B1B7C4"/>
378
+ </symbol>
379
+ <symbol id="feedback-not-helpful" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
380
+ <path d="M14.3594 19.5063C14.0941 20.5614 13.0155 21.195 11.9648 20.9126C10.2635 20.4552 9.08105 18.9126 9.08106 17.1509L9.08106 13.9585C9.0809 13.6825 8.85703 13.4586 8.58106 13.4585L6.60547 13.4585C4.39664 13.4583 2.60572 11.6673 2.60547 9.45849L2.60547 6.99951C2.60574 4.79072 4.39666 2.9997 6.60547 2.99951L14.0098 2.99951C15.1142 2.99951 16.0095 3.89518 16.0098 4.99951L16.0098 12.3237C16.0098 12.7347 15.9586 13.1449 15.8584 13.5435L14.3594 19.5063ZM19.0049 13.0142C18.4535 13.0142 18.0059 12.5674 18.0059 12.0161L18.0059 3.99853C18.0059 3.4472 18.4535 3.00049 19.0049 3.00049C20.1073 3.00074 21.0009 3.89411 21.001 4.99658L21.001 11.0181C21.0009 12.1205 20.1073 13.0139 19.0049 13.0142ZM13.9189 13.0552C13.979 12.8162 14.0098 12.5702 14.0098 12.3237L14.0098 4.99951L6.60547 4.99951C5.50123 4.9997 4.60574 5.89529 4.60547 6.99951L4.60547 9.45849C4.60572 10.5627 5.50121 11.4583 6.60547 11.4585L8.58106 11.4585C9.9616 11.4586 11.0809 12.578 11.0811 13.9585L11.0811 17.1509C11.0811 17.9904 11.6332 18.7262 12.4336 18.9653L13.9189 13.0552Z" fill="#B1B7C4"/>
381
+ </symbol>
382
+ <symbol id="feedback-helpful-selected" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
383
+ <path d="M4.99609 10.9854C5.54738 10.9854 5.99503 11.4321 5.99512 11.9834V20.001C5.99512 20.5523 5.54743 21 4.99609 21C3.89364 20.9997 3 20.1054 3 19.0029V12.9814C3.00021 11.8791 3.89377 10.9856 4.99609 10.9854ZM9.75 4.06152C9.95732 3.23702 10.7894 2.73308 11.6162 2.93066C13.0131 3.26477 13.9989 4.51297 13.999 5.94922V10.041C13.999 10.3172 14.2229 10.541 14.499 10.541H17.3955C19.6043 10.5412 21.3953 12.3322 21.3955 14.541V17C21.3954 19.2089 19.6044 20.9998 17.3955 21H9.99121C8.88671 21 7.99132 20.1045 7.99121 19V11.6758C7.99121 11.2647 8.04233 10.8547 8.14258 10.4561L9.75 4.06152Z" fill="#656F85"/>
384
+ </symbol>
385
+ <symbol id="feedback-not-helpful-selected" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
386
+ <path d="M19.0049 13.0142C18.4536 13.0142 18.0059 12.5674 18.0059 12.0161L18.0059 3.99853C18.0059 3.4472 18.4535 2.99951 19.0049 2.99951C20.1073 2.99977 21.001 3.89407 21.001 4.99658L21.001 11.0181C21.0008 12.1204 20.1072 13.0139 19.0049 13.0142ZM14.251 19.938C14.0437 20.7624 13.2115 21.2673 12.3848 21.0698C10.9877 20.7358 10.002 19.4867 10.002 18.0503L10.002 13.9585C10.002 13.6824 9.7781 13.4585 9.50195 13.4585L6.60547 13.4585C4.39664 13.4583 2.60572 11.6673 2.60547 9.45849L2.60547 6.99951C2.60559 4.79059 4.39656 2.9997 6.60547 2.99951L14.0098 2.99951C15.1143 2.99951 16.0096 3.89504 16.0098 4.99951L16.0098 12.3237C16.0098 12.7348 15.9587 13.1448 15.8584 13.5435L14.251 19.938Z" fill="#656F85"/>
387
+ </symbol>
373
388
  </svg>
package/dist/index.d.ts CHANGED
@@ -6,55 +6,68 @@ import { Placement } from '@floating-ui/vue';
6
6
  import { PublicProps } from 'vue';
7
7
  import { Ref } from 'vue';
8
8
 
9
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
10
- tooltipRef: HTMLDivElement;
11
- floatingArrowRef: HTMLDivElement;
12
- triggerRef: HTMLDivElement;
13
- }, any>;
9
+ declare const __VLS_component: DefineComponent<CheckboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
+ "update:modelValue": (value: boolean) => any;
11
+ change: (checked: boolean) => any;
12
+ }, string, PublicProps, Readonly<CheckboxProps> & Readonly<{
13
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
+ onChange?: ((checked: boolean) => any) | undefined;
15
+ }>, {
16
+ label: string;
17
+ disabled: boolean;
18
+ name: string;
19
+ checked: boolean;
20
+ value: string | number;
21
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
14
22
 
15
- declare const __VLS_component_2: DefineComponent<ModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
16
- submit: () => any;
23
+ declare const __VLS_component_2: DefineComponent<ColorPickerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
24
+ "color-change": (color: string) => any;
17
25
  close: () => any;
18
- }, string, PublicProps, Readonly<ModalProps> & Readonly<{
19
- onSubmit?: (() => any) | undefined;
26
+ }, string, PublicProps, Readonly<ColorPickerProps> & Readonly<{
27
+ "onColor-change"?: ((color: string) => any) | undefined;
20
28
  onClose?: (() => any) | undefined;
21
29
  }>, {
22
- hasOverlay: boolean;
23
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
30
+ color: string;
31
+ title: string;
32
+ showSaveButton: boolean;
33
+ presetColors: string[];
34
+ showOpacityInHex: boolean;
35
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
36
+ colorPickerRef: HTMLDivElement;
37
+ hueSliderRef: HTMLDivElement;
38
+ opacitySliderRef: HTMLDivElement;
39
+ }, HTMLDivElement>;
24
40
 
25
- declare const __VLS_component_3: DefineComponent<InInfoBoxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<InInfoBoxProps> & Readonly<{}>, {
26
- variant: "information" | "warning" | "alert" | "smart" | "neutral";
27
- size: "small" | "medium" | "large";
28
- theme: "light" | "dark";
29
- titleStatus: boolean;
30
- titleText: string;
31
- descriptionStatus: boolean;
32
- descriptionText: string;
33
- fullWidthContentStatus: boolean;
41
+ declare const __VLS_component_3: DefineComponent<InBoxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<InBoxProps> & Readonly<{}>, {
42
+ border: string;
43
+ borderRadius: string;
44
+ borderTriangle: boolean;
45
+ borderTrianglePosition: string;
46
+ borderTriangleAlign: string;
34
47
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
35
48
 
36
49
  declare const __VLS_component_4: DefineComponent<InBasicTextInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
37
50
  click: (event: MouseEvent) => any;
38
51
  input: (value: string | number) => any;
39
- blur: (event: FocusEvent) => any;
52
+ "update:modelValue": (value: string | number) => any;
40
53
  change: (value: string | number) => any;
41
54
  focus: (event: FocusEvent) => any;
42
- keypress: (event: KeyboardEvent) => any;
55
+ blur: (event: FocusEvent) => any;
43
56
  keyup: (event: KeyboardEvent) => any;
57
+ keypress: (event: KeyboardEvent) => any;
44
58
  paste: (event: ClipboardEvent) => any;
45
- "update:modelValue": (value: string | number) => any;
46
59
  leftIconClick: (event: MouseEvent) => any;
47
60
  rightIconClick: (event: MouseEvent) => any;
48
61
  }, string, PublicProps, Readonly<InBasicTextInputProps> & Readonly<{
49
62
  onClick?: ((event: MouseEvent) => any) | undefined;
50
63
  onInput?: ((value: string | number) => any) | undefined;
51
- onBlur?: ((event: FocusEvent) => any) | undefined;
64
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
52
65
  onChange?: ((value: string | number) => any) | undefined;
53
66
  onFocus?: ((event: FocusEvent) => any) | undefined;
54
- onKeypress?: ((event: KeyboardEvent) => any) | undefined;
67
+ onBlur?: ((event: FocusEvent) => any) | undefined;
55
68
  onKeyup?: ((event: KeyboardEvent) => any) | undefined;
69
+ onKeypress?: ((event: KeyboardEvent) => any) | undefined;
56
70
  onPaste?: ((event: ClipboardEvent) => any) | undefined;
57
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
58
71
  onLeftIconClick?: ((event: MouseEvent) => any) | undefined;
59
72
  onRightIconClick?: ((event: MouseEvent) => any) | undefined;
60
73
  }>, {
@@ -62,7 +75,6 @@ leftIconName: IconNames;
62
75
  rightIconName: IconNames;
63
76
  type: "text" | "number";
64
77
  modelValue: string | number;
65
- preventXss: boolean;
66
78
  theme: "grey" | "white";
67
79
  labelStatus: boolean;
68
80
  labelText: string;
@@ -80,6 +92,7 @@ maxValue: number | string;
80
92
  autoFocus: boolean;
81
93
  allowDecimal: boolean;
82
94
  allowComma: boolean;
95
+ preventXss: boolean;
83
96
  helperMessageStatus: boolean;
84
97
  helperMessage: string;
85
98
  stateMessage: string;
@@ -88,7 +101,18 @@ componentRoot: HTMLFieldSetElement;
88
101
  textInput: HTMLInputElement;
89
102
  }, HTMLFieldSetElement>;
90
103
 
91
- declare const __VLS_component_5: DefineComponent<InDropdownMenuProps, {
104
+ declare const __VLS_component_5: DefineComponent<InInfoBoxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<InInfoBoxProps> & Readonly<{}>, {
105
+ variant: "information" | "warning" | "alert" | "smart" | "neutral";
106
+ size: "small" | "medium" | "large";
107
+ theme: "light" | "dark";
108
+ titleStatus: boolean;
109
+ titleText: string;
110
+ descriptionStatus: boolean;
111
+ descriptionText: string;
112
+ fullWidthContentStatus: boolean;
113
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
114
+
115
+ declare const __VLS_component_6: DefineComponent<InDropdownMenuProps, {
92
116
  isOpen: Ref<boolean, boolean>;
93
117
  toggleMenu: () => void;
94
118
  closeMenu: () => void;
@@ -120,51 +144,43 @@ searchPlaceholder: string;
120
144
  showSelectedIcon: boolean;
121
145
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
122
146
 
123
- declare const __VLS_component_6: DefineComponent<PopoverProps, {
147
+ declare const __VLS_component_7: DefineComponent<ModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
148
+ submit: () => any;
149
+ close: () => any;
150
+ }, string, PublicProps, Readonly<ModalProps> & Readonly<{
151
+ onSubmit?: (() => any) | undefined;
152
+ onClose?: (() => any) | undefined;
153
+ }>, {
154
+ hasOverlay: boolean;
155
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
156
+
157
+ declare const __VLS_component_8: DefineComponent<PopoverProps, {
124
158
  isOpen: Ref<boolean, boolean>;
125
159
  toggle: () => void;
126
160
  close: () => void;
127
161
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
128
- close: () => any;
129
162
  "update:modelValue": (value: boolean) => any;
163
+ close: () => any;
130
164
  open: () => any;
131
165
  }, string, PublicProps, Readonly<PopoverProps> & Readonly<{
132
- onClose?: (() => any) | undefined;
133
166
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
167
+ onClose?: (() => any) | undefined;
134
168
  onOpen?: (() => any) | undefined;
135
169
  }>, {
136
170
  modelValue: boolean;
137
- align: "left" | "center" | "right";
171
+ position: "bottom" | "top";
172
+ align: "left" | "center" | "right" | "left-side" | "right-side";
173
+ closeOnClickOutside: boolean;
138
174
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
139
175
  popoverRef: HTMLDivElement;
140
176
  contentRef: HTMLDivElement;
141
177
  }, HTMLDivElement>;
142
178
 
143
- declare const __VLS_component_7: DefineComponent<InBoxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<InBoxProps> & Readonly<{}>, {
144
- border: string;
145
- borderRadius: string;
146
- borderTriangle: boolean;
147
- borderTrianglePosition: string;
148
- borderTriangleAlign: string;
149
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
150
-
151
- declare const __VLS_component_8: DefineComponent<ColorPickerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
152
- close: () => any;
153
- "color-change": (color: string) => any;
154
- }, string, PublicProps, Readonly<ColorPickerProps> & Readonly<{
155
- onClose?: (() => any) | undefined;
156
- "onColor-change"?: ((color: string) => any) | undefined;
157
- }>, {
158
- color: string;
159
- title: string;
160
- showSaveButton: boolean;
161
- presetColors: string[];
162
- showOpacityInHex: boolean;
163
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
164
- colorPickerRef: HTMLDivElement;
165
- hueSliderRef: HTMLDivElement;
166
- opacitySliderRef: HTMLDivElement;
167
- }, HTMLDivElement>;
179
+ declare const __VLS_component_9: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
180
+ tooltipRef: HTMLDivElement;
181
+ floatingArrowRef: HTMLDivElement;
182
+ triggerRef: HTMLDivElement;
183
+ }, any>;
168
184
 
169
185
  declare type __VLS_Props = {
170
186
  id: string;
@@ -178,24 +194,23 @@ declare type __VLS_Props = {
178
194
  declare function __VLS_template(): {
179
195
  attrs: Partial<{}>;
180
196
  slots: {
181
- contentSlot?(_: {}): any;
182
197
  default?(_: {}): any;
183
198
  };
184
- refs: {
185
- tooltipRef: HTMLDivElement;
186
- floatingArrowRef: HTMLDivElement;
187
- triggerRef: HTMLDivElement;
188
- };
189
- rootEl: any;
199
+ refs: {};
200
+ rootEl: HTMLLabelElement;
190
201
  };
191
202
 
192
203
  declare function __VLS_template_2(): {
193
204
  attrs: Partial<{}>;
194
205
  slots: {
195
- section?(_: {}): any;
206
+ tabs?(_: {}): any;
196
207
  };
197
- refs: {};
198
- rootEl: any;
208
+ refs: {
209
+ colorPickerRef: HTMLDivElement;
210
+ hueSliderRef: HTMLDivElement;
211
+ opacitySliderRef: HTMLDivElement;
212
+ };
213
+ rootEl: HTMLDivElement;
199
214
  };
200
215
 
201
216
  declare function __VLS_template_3(): {
@@ -221,6 +236,15 @@ declare function __VLS_template_4(): {
221
236
  };
222
237
 
223
238
  declare function __VLS_template_5(): {
239
+ attrs: Partial<{}>;
240
+ slots: {
241
+ default?(_: {}): any;
242
+ };
243
+ refs: {};
244
+ rootEl: HTMLDivElement;
245
+ };
246
+
247
+ declare function __VLS_template_6(): {
224
248
  attrs: Partial<{}>;
225
249
  slots: {
226
250
  trigger?(_: {
@@ -239,7 +263,16 @@ declare function __VLS_template_5(): {
239
263
  rootEl: HTMLDivElement;
240
264
  };
241
265
 
242
- declare function __VLS_template_6(): {
266
+ declare function __VLS_template_7(): {
267
+ attrs: Partial<{}>;
268
+ slots: {
269
+ section?(_: {}): any;
270
+ };
271
+ refs: {};
272
+ rootEl: any;
273
+ };
274
+
275
+ declare function __VLS_template_8(): {
243
276
  attrs: Partial<{}>;
244
277
  slots: {
245
278
  trigger?(_: {
@@ -255,26 +288,18 @@ declare function __VLS_template_6(): {
255
288
  rootEl: HTMLDivElement;
256
289
  };
257
290
 
258
- declare function __VLS_template_7(): {
291
+ declare function __VLS_template_9(): {
259
292
  attrs: Partial<{}>;
260
293
  slots: {
294
+ contentSlot?(_: {}): any;
261
295
  default?(_: {}): any;
262
296
  };
263
- refs: {};
264
- rootEl: HTMLDivElement;
265
- };
266
-
267
- declare function __VLS_template_8(): {
268
- attrs: Partial<{}>;
269
- slots: {
270
- tabs?(_: {}): any;
271
- };
272
297
  refs: {
273
- colorPickerRef: HTMLDivElement;
274
- hueSliderRef: HTMLDivElement;
275
- opacitySliderRef: HTMLDivElement;
298
+ tooltipRef: HTMLDivElement;
299
+ floatingArrowRef: HTMLDivElement;
300
+ triggerRef: HTMLDivElement;
276
301
  };
277
- rootEl: HTMLDivElement;
302
+ rootEl: any;
278
303
  };
279
304
 
280
305
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
@@ -293,6 +318,8 @@ declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
293
318
 
294
319
  declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
295
320
 
321
+ declare type __VLS_TemplateResult_9 = ReturnType<typeof __VLS_template_9>;
322
+
296
323
  declare type __VLS_WithTemplateSlots<T, S> = T & {
297
324
  new (): {
298
325
  $slots: S;
@@ -341,6 +368,12 @@ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
341
368
  };
342
369
  };
343
370
 
371
+ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
372
+ new (): {
373
+ $slots: S;
374
+ };
375
+ };
376
+
344
377
  export declare type AllIconNames = IconNames | CustomIconNames;
345
378
 
346
379
  export declare const Button: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -374,6 +407,18 @@ declare interface ButtonProps {
374
407
  customClass?: string;
375
408
  }
376
409
 
410
+ export declare const Checkbox: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
411
+
412
+ export declare interface CheckboxProps {
413
+ id: string;
414
+ name?: string;
415
+ label?: string;
416
+ checked?: boolean;
417
+ disabled?: boolean;
418
+ value?: string | number;
419
+ modelValue?: boolean;
420
+ }
421
+
377
422
  export declare const clickOutside: {
378
423
  mounted(el: ClickOutsideElement, binding: DirectiveBinding<DirectiveType>): void;
379
424
  unmounted(el: ClickOutsideElement): void;
@@ -384,7 +429,7 @@ declare interface ClickOutsideElement extends HTMLElement {
384
429
  clickOutsideCapture?: boolean;
385
430
  }
386
431
 
387
- export declare const ColorPicker: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
432
+ export declare const ColorPicker: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
388
433
 
389
434
  declare interface ColorPickerProps {
390
435
  color?: string;
@@ -471,7 +516,7 @@ size: number | string;
471
516
  *
472
517
  * NOTE: This file was auto-generated from 'icons.svg'
473
518
  */
474
- export declare type IconNames = 'icon-info-box-error' | 'icon-tooltip-info' | 'filled-info-circle' | 'filled-caution-circle' | 'filled-caution-triangle' | 'filled-caution-triangle-colored' | 'filled-error-box-colored' | 'line-plus-netural' | 'line-close-netural' | 'no-color' | 'line-search' | 'filled-dropdown-down' | 'filled-text-bold' | 'filled-text-italic' | 'filled-text-underline' | 'filled-text-strikethrough' | 'line-caution-triangle' | 'filled-error-box' | 'filled-info-circle' | 'line-check-natural' | 'loading-circle' | 'icon-smart' | 'line-reset' | 'line-arrow-left' | 'line-academy-02' | 'line-undo' | 'line-redo' | 'line-ai-message-reply-plus' | 'line-architect-segments-closed' | 'line-ai-send-icon' | 'line-smart-sirius-ai' | 'line-smart-ai' | 'line-minus-netural' | 'line-check-netural' | 'filled-caution-triangle' | 'line-tooltip' | 'gamification-icon' | 'popup-icon' | 'line-delete' | 'line-duplicate' | 'line-test-link' | 'text-color-icon' | 'corner-icon' | 'border-icon' | 'border-color' | 'fill-color-icon' | 'text-icon' | 'mixed-text-color-icon' | 'line-height-icon' | 'letter-spacing-icon' | 'filled-text-aligned-left' | 'filled-text-aligned-center' | 'filled-text-aligned-right' | 'filled-text-aligned-justified' | 'filled-aligned-bottom' | 'filled-aligned-middle' | 'filled-aligned-top' | 'button-actions' | 'border-none' | 'border-solid' | 'border-dashed' | 'border-dotted' | 'individual-borders' | 'border-left' | 'border-top' | 'border-right' | 'border-bottom' | 'corner-top-left' | 'corner-top-right' | 'corner-bottom-left' | 'corner-bottom-right' | 'corners-individual' | 'padding-horizontal' | 'padding-vertical' | 'padding-individual' | 'padding-left' | 'padding-right' | 'padding-bottom' | 'padding-top' | 'line-password' | 'line-left-to-bottom' | 'line-right-to-top' | 'line-horizontal' | 'line-vertical' | 'line-change';
519
+ export declare type IconNames = 'icon-info-box-error' | 'icon-tooltip-info' | 'filled-info-circle' | 'filled-caution-circle' | 'filled-caution-triangle' | 'filled-caution-triangle-colored' | 'filled-error-box-colored' | 'line-plus-netural' | 'line-close-netural' | 'no-color' | 'line-search' | 'filled-dropdown-down' | 'dropdown-down-icon' | 'filled-text-bold' | 'filled-text-italic' | 'filled-text-underline' | 'filled-text-strikethrough' | 'line-caution-triangle' | 'filled-error-box' | 'filled-info-circle' | 'line-check-natural' | 'loading-circle' | 'icon-smart' | 'line-reset' | 'line-arrow-left' | 'line-academy-02' | 'line-undo' | 'line-redo' | 'line-ai-message-reply-plus' | 'line-architect-segments-closed' | 'line-ai-send-icon' | 'line-smart-sirius-ai' | 'line-smart-ai' | 'line-minus-netural' | 'line-check-netural' | 'filled-caution-triangle' | 'line-tooltip' | 'gamification-icon' | 'popup-icon' | 'line-delete' | 'line-duplicate' | 'line-test-link' | 'text-color-icon' | 'corner-icon' | 'border-icon' | 'border-color' | 'fill-color-icon' | 'text-icon' | 'mixed-text-color-icon' | 'line-height-icon' | 'letter-spacing-icon' | 'filled-text-aligned-left' | 'filled-text-aligned-center' | 'filled-text-aligned-right' | 'filled-text-aligned-justified' | 'filled-aligned-bottom' | 'filled-aligned-middle' | 'filled-aligned-top' | 'button-actions' | 'border-none' | 'border-solid' | 'border-dashed' | 'border-dotted' | 'individual-borders' | 'border-left' | 'border-top' | 'border-right' | 'border-bottom' | 'corner-top-left' | 'corner-top-right' | 'corner-bottom-left' | 'corner-bottom-right' | 'corners-individual' | 'padding-horizontal' | 'padding-vertical' | 'padding-individual' | 'padding-left' | 'padding-right' | 'padding-bottom' | 'padding-top' | 'line-password' | 'line-left-to-bottom' | 'line-right-to-top' | 'line-horizontal' | 'line-vertical' | 'line-change' | 'feedback-helpful' | 'feedback-not-helpful' | 'feedback-helpful-selected' | 'feedback-not-helpful-selected';
475
520
 
476
521
  declare interface IconProps {
477
522
  name: AllIconNames;
@@ -513,7 +558,7 @@ declare interface InBasicTextInputProps {
513
558
  stateMessage?: string;
514
559
  }
515
560
 
516
- export declare const InBox: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
561
+ export declare const InBox: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
517
562
 
518
563
  declare interface InBoxProps {
519
564
  border?: string;
@@ -523,7 +568,7 @@ declare interface InBoxProps {
523
568
  borderTriangleAlign?: string;
524
569
  }
525
570
 
526
- export declare const InDropdownMenu: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
571
+ export declare const InDropdownMenu: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
527
572
 
528
573
  declare interface InDropdownMenuProps {
529
574
  modelValue?: string;
@@ -537,7 +582,7 @@ declare interface InDropdownMenuProps {
537
582
  showSelectedIcon?: boolean;
538
583
  }
539
584
 
540
- export declare const InInfoBox: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
585
+ export declare const InInfoBox: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
541
586
 
542
587
  export declare interface InInfoBoxProps {
543
588
  id: string;
@@ -586,11 +631,11 @@ declare interface InputButtonProps {
586
631
  }
587
632
 
588
633
  export declare const InTabs: DefineComponent<InTabsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
589
- change: (value: string) => any;
590
634
  "update:modelValue": (value: string) => any;
635
+ change: (value: string) => any;
591
636
  }, string, PublicProps, Readonly<InTabsProps> & Readonly<{
592
- onChange?: ((value: string) => any) | undefined;
593
637
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
638
+ onChange?: ((value: string) => any) | undefined;
594
639
  }>, {
595
640
  disabled: boolean;
596
641
  modelValue: string;
@@ -606,27 +651,27 @@ export declare const InTextArea: DefineComponent<InTextAreaProps, {
606
651
  textareaRef: Ref<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
607
652
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
608
653
  click: (event: MouseEvent) => any;
654
+ "update:modelValue": (value: string) => any;
609
655
  blur: (event: FocusEvent) => any;
610
- cut: (event: ClipboardEvent) => any;
611
- keypress: (event: KeyboardEvent) => any;
612
656
  keyup: (event: KeyboardEvent) => any;
657
+ keypress: (event: KeyboardEvent) => any;
613
658
  paste: (event: ClipboardEvent) => any;
614
- "update:modelValue": (value: string) => any;
659
+ cut: (event: ClipboardEvent) => any;
615
660
  }, string, PublicProps, Readonly<InTextAreaProps> & Readonly<{
616
661
  onClick?: ((event: MouseEvent) => any) | undefined;
662
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
617
663
  onBlur?: ((event: FocusEvent) => any) | undefined;
618
- onCut?: ((event: ClipboardEvent) => any) | undefined;
619
- onKeypress?: ((event: KeyboardEvent) => any) | undefined;
620
664
  onKeyup?: ((event: KeyboardEvent) => any) | undefined;
665
+ onKeypress?: ((event: KeyboardEvent) => any) | undefined;
621
666
  onPaste?: ((event: ClipboardEvent) => any) | undefined;
622
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
667
+ onCut?: ((event: ClipboardEvent) => any) | undefined;
623
668
  }>, {
624
669
  label: string;
625
670
  disabled: boolean;
626
671
  type: "default" | "smart";
627
- invalid: boolean;
628
- preventXss: boolean;
629
672
  theme: "grey" | "white";
673
+ preventXss: boolean;
674
+ invalid: boolean;
630
675
  withLabel: boolean;
631
676
  invalidMessage: string;
632
677
  rowLength: number;
@@ -649,6 +694,10 @@ export declare interface InTextAreaProps {
649
694
  rowLength?: number;
650
695
  preventXss?: boolean;
651
696
  maxLength?: number;
697
+ width?: string;
698
+ height?: string;
699
+ padding?: string;
700
+ resize?: 'none' | 'vertical' | 'horizontal' | 'both';
652
701
  }
653
702
 
654
703
  export declare const InToggle: DefineComponent<InToggleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -681,7 +730,7 @@ declare interface MenuItem_2 {
681
730
  value: string;
682
731
  }
683
732
 
684
- export declare const Modal: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
733
+ export declare const Modal: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
685
734
 
686
735
  declare interface ModalProps {
687
736
  title: string;
@@ -692,29 +741,29 @@ declare interface ModalProps {
692
741
  hasOverlay?: boolean;
693
742
  }
694
743
 
695
- export declare const NumberInput: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
744
+ export declare const NumberInput: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
696
745
  input: (event: Event) => any;
697
- blur: (event: FocusEvent) => any;
746
+ "update:modelValue": (args_0: number | undefined) => any;
698
747
  change: (event: Event) => any;
699
748
  focus: (event: FocusEvent) => any;
749
+ blur: (event: FocusEvent) => any;
700
750
  paste: (event: ClipboardEvent) => any;
701
- "update:modelValue": (args_0: number | undefined) => any;
702
- }, string, PublicProps, Readonly<Props_2> & Readonly<{
751
+ }, string, PublicProps, Readonly<Props> & Readonly<{
703
752
  onInput?: ((event: Event) => any) | undefined;
704
- onBlur?: ((event: FocusEvent) => any) | undefined;
753
+ "onUpdate:modelValue"?: ((args_0: number | undefined) => any) | undefined;
705
754
  onChange?: ((event: Event) => any) | undefined;
706
755
  onFocus?: ((event: FocusEvent) => any) | undefined;
756
+ onBlur?: ((event: FocusEvent) => any) | undefined;
707
757
  onPaste?: ((event: ClipboardEvent) => any) | undefined;
708
- "onUpdate:modelValue"?: ((args_0: number | undefined) => any) | undefined;
709
758
  }>, {
710
759
  size: "default" | "small";
711
760
  label: string;
712
- placeholder: string;
713
- error: string;
714
761
  modelValue: number;
715
- maxLength: number;
762
+ error: string;
763
+ placeholder: string;
716
764
  min: number;
717
765
  max: number;
766
+ maxLength: number;
718
767
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
719
768
 
720
769
  export declare const OnPageMessage: DefineComponent<OnPageMessageProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<OnPageMessageProps> & Readonly<{}>, {
@@ -726,40 +775,42 @@ declare interface OnPageMessageProps {
726
775
  text: string;
727
776
  }
728
777
 
729
- export declare const Popover: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
778
+ export declare const Popover: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
730
779
 
731
780
  declare interface PopoverProps {
732
781
  modelValue?: boolean;
733
- align?: 'left' | 'center' | 'right';
782
+ align?: 'left' | 'center' | 'right' | 'left-side' | 'right-side';
783
+ position?: 'bottom' | 'top';
784
+ closeOnClickOutside?: boolean;
734
785
  }
735
786
 
736
787
  declare interface Props {
737
788
  id: string;
738
789
  name: string;
739
- modelValue?: string;
790
+ modelValue?: number;
740
791
  label?: string;
741
792
  placeholder?: string;
742
793
  maxLength?: number;
743
- maxHeight?: number;
744
794
  error?: string;
745
- multiline?: boolean;
746
- autoGrow?: boolean;
795
+ errorStatus?: boolean;
747
796
  counter?: boolean;
797
+ min?: number;
798
+ max?: number;
799
+ size?: 'default' | 'small';
748
800
  }
749
801
 
750
802
  declare interface Props_2 {
751
803
  id: string;
752
804
  name: string;
753
- modelValue?: number;
805
+ modelValue?: string;
754
806
  label?: string;
755
807
  placeholder?: string;
756
808
  maxLength?: number;
809
+ maxHeight?: number;
757
810
  error?: string;
758
- errorStatus?: boolean;
811
+ multiline?: boolean;
812
+ autoGrow?: boolean;
759
813
  counter?: boolean;
760
- min?: number;
761
- max?: number;
762
- size?: 'default' | 'small';
763
814
  }
764
815
 
765
816
  export declare const SegmentButton: DefineComponent<SegmentButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -797,25 +848,25 @@ export declare interface TabItem {
797
848
  disabled?: boolean;
798
849
  }
799
850
 
800
- export declare const TextInput: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
851
+ export declare const TextInput: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
801
852
  input: (event: Event) => any;
802
- blur: (event: FocusEvent) => any;
853
+ "update:modelValue": (args_0: string | undefined) => any;
803
854
  change: (event: Event) => any;
804
855
  focus: (event: FocusEvent) => any;
856
+ blur: (event: FocusEvent) => any;
805
857
  paste: (event: ClipboardEvent) => any;
806
- "update:modelValue": (args_0: string | undefined) => any;
807
- }, string, PublicProps, Readonly<Props> & Readonly<{
858
+ }, string, PublicProps, Readonly<Props_2> & Readonly<{
808
859
  onInput?: ((event: Event) => any) | undefined;
809
- onBlur?: ((event: FocusEvent) => any) | undefined;
860
+ "onUpdate:modelValue"?: ((args_0: string | undefined) => any) | undefined;
810
861
  onChange?: ((event: Event) => any) | undefined;
811
862
  onFocus?: ((event: FocusEvent) => any) | undefined;
863
+ onBlur?: ((event: FocusEvent) => any) | undefined;
812
864
  onPaste?: ((event: ClipboardEvent) => any) | undefined;
813
- "onUpdate:modelValue"?: ((args_0: string | undefined) => any) | undefined;
814
865
  }>, {
815
866
  label: string;
816
- placeholder: string;
817
- error: string;
818
867
  modelValue: string;
868
+ error: string;
869
+ placeholder: string;
819
870
  maxHeight: number;
820
871
  maxLength: number;
821
872
  multiline: boolean;
@@ -840,6 +891,6 @@ declare interface ToggleProps {
840
891
  disabled?: boolean;
841
892
  }
842
893
 
843
- export declare const Tooltip: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
894
+ export declare const Tooltip: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
844
895
 
845
896
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/ab-components",
3
- "version": "0.0.59",
3
+ "version": "0.0.61",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -29,9 +29,9 @@
29
29
  "test:unit": "vitest",
30
30
  "build-only": "vite build",
31
31
  "type-check": "vue-tsc --build",
32
- "pack:move": "npm pack --pack-destination ../design-editor",
33
- "publish:sdb": "npm run build && npm pack && docker cp ./useinsider-ab-components-0.0.59.tgz skeleton_design_bundle:/var/skeleton-design-bundle/design-editor-modules/ && docker exec -it skeleton_design_bundle sh -c 'npm i /var/skeleton-design-bundle/design-editor-modules/useinsider-ab-components-0.0.59.tgz && npm run dev'",
34
- "publish:def": "npm run build && npm run pack:move && cd ../design-editor && npm i ./useinsider-ab-components-0.0.59.tgz && npm run dev",
32
+ "pack:move": "npm pack --pack-destination ../design-editor-frontend",
33
+ "publish:sdb": "npm run build && npm pack && docker cp ./useinsider-ab-components-0.0.61.tgz skeleton_design_bundle:/var/skeleton-design-bundle/design-editor-modules/ && docker exec -it skeleton_design_bundle sh -c 'npm i /var/skeleton-design-bundle/design-editor-modules/useinsider-ab-components-0.0.61.tgz && npm run dev'",
34
+ "publish:def": "npm run build && npm run pack:move && cd ../design-editor-frontend && npm i ./useinsider-ab-components-0.0.61.tgz && npm run dev",
35
35
  "lint": "eslint . --fix",
36
36
  "storybook": "storybook dev -p 6006",
37
37
  "build-storybook": "storybook build"