@retailcrm/embed-ui-v1-components 0.5.2 → 0.5.3

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/remote.d.ts CHANGED
@@ -47,6 +47,8 @@ declare enum DIRECTION {
47
47
 
48
48
  declare type Numeric = number | string;
49
49
 
50
+ declare type Primitive = boolean | number | string | null | undefined;
51
+
50
52
  declare type RemoteProperties<T> = HTMLAttributes & T & Record<string, never>;
51
53
 
52
54
  declare enum SCROLLING {
@@ -124,6 +126,38 @@ declare type UiButtonProperties = {
124
126
 
125
127
  export declare const UiButtonType: SchemaType<"UiButton", RemoteProperties<UiButtonProperties>, RemoteCallable<UiButtonMethods>>;
126
128
 
129
+ export declare const UiCheckbox: Component< {
130
+ [x: string]: unknown;
131
+ }, RemoteProperties<UiCheckboxProperties>, {
132
+ [x: string]: never;
133
+ }, {
134
+ [x: string]: never;
135
+ }, MethodOptions, {
136
+ click: (event: SerializedEvent) => boolean;
137
+ focus: (event: SerializedFocusEvent) => boolean;
138
+ blur: (event: SerializedEvent) => boolean;
139
+ }>;
140
+
141
+ declare type UiCheckboxMethods = {
142
+ click(): void;
143
+ focus(): void;
144
+ blur(): void;
145
+ };
146
+
147
+ declare type UiCheckboxProperties = {
148
+ id?: string | undefined;
149
+ name?: string;
150
+ model?: Primitive | Primitive[];
151
+ value?: Primitive;
152
+ indeterminate?: boolean;
153
+ valueOfTruthy?: Primitive;
154
+ valueOfFalsy?: Primitive;
155
+ small?: boolean;
156
+ disabled?: boolean;
157
+ };
158
+
159
+ export declare const UiCheckboxType: SchemaType<"UiCheckbox", RemoteProperties<UiCheckboxProperties>, RemoteCallable<UiCheckboxMethods>>;
160
+
127
161
  export declare const UiError: Component< {
128
162
  [x: string]: unknown;
129
163
  }, RemoteProperties<UiErrorProperties>, {
@@ -287,6 +321,34 @@ export declare const UiModalWindowSurfaceType: SchemaType<"UiModalWindowSurface"
287
321
 
288
322
  export declare const UiModalWindowType: SchemaType<"UiModalWindow", RemoteProperties<UiModalWindowProperties>, RemoteCallable<UiModalWindowMethods>>;
289
323
 
324
+ export declare const UiRadio: Component< {
325
+ [x: string]: unknown;
326
+ }, RemoteProperties<UiRadioProperties>, {
327
+ [x: string]: never;
328
+ }, {
329
+ [x: string]: never;
330
+ }, MethodOptions, {
331
+ click: (event: SerializedEvent) => boolean;
332
+ focus: (event: SerializedFocusEvent) => boolean;
333
+ blur: (event: SerializedEvent) => boolean;
334
+ }>;
335
+
336
+ declare type UiRadioMethods = {
337
+ click(): void;
338
+ focus(): void;
339
+ blur(): void;
340
+ };
341
+
342
+ declare type UiRadioProperties = {
343
+ id?: string | undefined;
344
+ name?: string;
345
+ model?: Primitive | Primitive[];
346
+ value?: Primitive;
347
+ disabled?: boolean;
348
+ };
349
+
350
+ export declare const UiRadioType: SchemaType<"UiRadio", RemoteProperties<UiRadioProperties>, RemoteCallable<UiRadioMethods>>;
351
+
290
352
  export declare const UiScrollBox: Component< {
291
353
  [x: string]: unknown;
292
354
  }, RemoteProperties<UiScrollBoxProperties>, {
package/dist/remote.js CHANGED
@@ -45,6 +45,11 @@ const UiButton = defineRemoteComponent(
45
45
  UiButtonType,
46
46
  ["click", "focus", "blur"]
47
47
  );
48
+ const UiCheckboxType = "UiCheckbox";
49
+ const UiCheckbox = defineRemoteComponent(
50
+ UiCheckboxType,
51
+ ["click", "focus", "blur"]
52
+ );
48
53
  const UiErrorType = "UiError";
49
54
  const UiError = defineRemoteComponent(
50
55
  UiErrorType,
@@ -120,6 +125,11 @@ const UiModalWindowSurface = defineRemoteComponent(
120
125
  "update:overlapped"
121
126
  ]
122
127
  );
128
+ const UiRadioType = "UiRadio";
129
+ const UiRadio = defineRemoteComponent(
130
+ UiRadioType,
131
+ ["click", "focus", "blur"]
132
+ );
123
133
  const UiScrollBoxType = "UiScrollBox";
124
134
  const UiScrollBox = defineRemoteComponent(
125
135
  UiScrollBoxType,
@@ -159,6 +169,8 @@ const UiYandexMap = defineRemoteComponent(
159
169
  export {
160
170
  UiButton,
161
171
  UiButtonType,
172
+ UiCheckbox,
173
+ UiCheckboxType,
162
174
  UiError,
163
175
  UiErrorType,
164
176
  UiLink,
@@ -171,6 +183,8 @@ export {
171
183
  UiModalWindowSurface,
172
184
  UiModalWindowSurfaceType,
173
185
  UiModalWindowType,
186
+ UiRadio,
187
+ UiRadioType,
174
188
  UiScrollBox,
175
189
  UiScrollBoxType,
176
190
  UiTag,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@retailcrm/embed-ui-v1-components",
3
3
  "type": "module",
4
- "version": "0.5.2",
4
+ "version": "0.5.3",
5
5
  "license": "MIT",
6
6
  "author": "RetailDriverLLC <integration@retailcrm.ru>",
7
7
  "repository": "git@github.com:retailcrm/embed-ui.git",