@snack-uikit/fields 0.54.0 → 0.54.1-preview-c74a1de0.0

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/README.md CHANGED
@@ -751,6 +751,24 @@ FieldStepper в основном предназначен для работы с
751
751
  ### Props
752
752
  | name | type | default value | description |
753
753
  |------|------|---------------|-------------|
754
+ ## useFieldSelectMultipleCustomOption
755
+ ### Props
756
+ | name | type | default value | description |
757
+ |------|------|---------------|-------------|
758
+ | updateInputValue* | `() => void` | - | |
759
+ | setValue* | `Handler` | - | |
760
+ | value* | `ItemId[]` | - | |
761
+ | inputValue* | `string` | - | |
762
+ | addOptionByEnter* | `boolean` | - | |
763
+ | addCustomOptionTriggers | `FieldSelectMultipleAddCustomOptionTrigger[]` | - | |
764
+ ## useFieldSelectSingleCustomOption
765
+ ### Props
766
+ | name | type | default value | description |
767
+ |------|------|---------------|-------------|
768
+ | handleSelectionChange* | `(value: ItemId) => void` | - | |
769
+ | inputValue* | `string` | - | |
770
+ | addOptionByEnter* | `boolean` | - | |
771
+ | addCustomOptionTriggers | `FieldSelectMultipleAddCustomOptionTrigger[]` | - | |
754
772
  ## FieldSlider
755
773
  ### Props
756
774
  | name | type | default value | description |
@@ -1,2 +1,3 @@
1
1
  export { FieldSelect } from './FieldSelect';
2
2
  export type { FieldSelectMultipleAddCustomOptionTrigger, FieldSelectSingleAddCustomOptionTrigger, FieldSelectSingleProps, FieldSelectMultipleProps, FieldSelectProps, OptionProps, BaseOptionProps, AccordionOptionProps, NestListOptionProps, GroupOptionProps, SelectedOptionFormatter, } from './types';
3
+ export * from './hooks/customOption';
@@ -1,5 +1,24 @@
1
1
  "use strict";
2
2
 
3
+ var __createBinding = void 0 && (void 0).__createBinding || (Object.create ? function (o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = {
8
+ enumerable: true,
9
+ get: function () {
10
+ return m[k];
11
+ }
12
+ };
13
+ }
14
+ Object.defineProperty(o, k2, desc);
15
+ } : function (o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ o[k2] = m[k];
18
+ });
19
+ var __exportStar = void 0 && (void 0).__exportStar || function (m, exports) {
20
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
+ };
3
22
  Object.defineProperty(exports, "__esModule", {
4
23
  value: true
5
24
  });
@@ -10,4 +29,5 @@ Object.defineProperty(exports, "FieldSelect", {
10
29
  get: function () {
11
30
  return FieldSelect_1.FieldSelect;
12
31
  }
13
- });
32
+ });
33
+ __exportStar(require("./hooks/customOption"), exports);
@@ -1,2 +1,3 @@
1
1
  export { FieldSelect } from './FieldSelect';
2
2
  export type { FieldSelectMultipleAddCustomOptionTrigger, FieldSelectSingleAddCustomOptionTrigger, FieldSelectSingleProps, FieldSelectMultipleProps, FieldSelectProps, OptionProps, BaseOptionProps, AccordionOptionProps, NestListOptionProps, GroupOptionProps, SelectedOptionFormatter, } from './types';
3
+ export * from './hooks/customOption';
@@ -1 +1,2 @@
1
1
  export { FieldSelect } from './FieldSelect';
2
+ export * from './hooks/customOption';
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Fields",
7
- "version": "0.54.0",
7
+ "version": "0.54.1-preview-c74a1de0.0",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -66,5 +66,5 @@
66
66
  "peerDependencies": {
67
67
  "@snack-uikit/locale": "*"
68
68
  },
69
- "gitHead": "91f67a065fb1a5b9b57c9c03374c752e3acf3a0f"
69
+ "gitHead": "c443b53c743fc3c6d889af5c0221497456b80eaf"
70
70
  }
@@ -13,3 +13,5 @@ export type {
13
13
  GroupOptionProps,
14
14
  SelectedOptionFormatter,
15
15
  } from './types';
16
+
17
+ export * from './hooks/customOption';