@salutejs/plasma-new-hope 0.330.0-canary.1655.16067895478.0 → 0.330.0-canary.1655.16168891603.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.
Files changed (168) hide show
  1. package/cjs/components/Combobox/ComboboxNew/Combobox.css +12 -12
  2. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  3. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  4. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +12 -12
  5. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -1
  6. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  7. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/{Item.styles_80gotw.css → Item.styles_1q0u1o1.css} +2 -2
  8. package/cjs/components/Combobox/ComboboxNew/ui/SelectAll/SelectAll.css +12 -12
  9. package/cjs/components/Combobox/ComboboxNew/ui/VirtualList/VirtualList.css +12 -12
  10. package/cjs/components/Drawer/Drawer.css +5 -5
  11. package/cjs/components/Modal/Modal.css +5 -5
  12. package/cjs/components/Modal/Modal.js +3 -8
  13. package/cjs/components/Modal/Modal.js.map +1 -1
  14. package/cjs/components/Modal/Modal.styles.js +1 -10
  15. package/cjs/components/Modal/Modal.styles.js.map +1 -1
  16. package/cjs/components/Notification/NotificationsProvider.css +5 -5
  17. package/cjs/components/NumberFormat/NumberFormat.js +44 -4
  18. package/cjs/components/NumberFormat/NumberFormat.js.map +1 -1
  19. package/cjs/components/Pagination/Pagination.css +10 -10
  20. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +10 -10
  21. package/cjs/components/Popup/Popup.js +17 -5
  22. package/cjs/components/Popup/Popup.js.map +1 -1
  23. package/cjs/components/Popup/Popup.styles.js +17 -17
  24. package/cjs/components/Popup/Popup.styles.js.map +1 -1
  25. package/{es/components/Popup/Popup.styles_sejy82.css → cjs/components/Popup/Popup.styles_1dvwxdu.css} +1 -1
  26. package/cjs/components/Popup/Popup.tokens.js +4 -1
  27. package/cjs/components/Popup/Popup.tokens.js.map +1 -1
  28. package/cjs/components/Popup/PopupContext.css +5 -5
  29. package/cjs/components/Select/Select.css +10 -10
  30. package/cjs/components/Select/Select.tokens.js +1 -0
  31. package/cjs/components/Select/Select.tokens.js.map +1 -1
  32. package/cjs/components/Select/ui/Inner/Inner.css +10 -10
  33. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +1 -1
  34. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  35. package/{es/components/Select/ui/Inner/ui/Item/Item.styles_1qpfn0s.css → cjs/components/Select/ui/Inner/ui/Item/Item.styles_1dlmiti.css} +2 -2
  36. package/cjs/components/Select/ui/SelectAll/SelectAll.css +10 -10
  37. package/cjs/components/Select/ui/VirtualList/VirtualList.css +10 -10
  38. package/cjs/components/Table/Table.css +10 -10
  39. package/cjs/components/Table/ui/Cell/Cell.css +10 -10
  40. package/cjs/components/Table/ui/EditableCell/EditableCell.css +10 -10
  41. package/cjs/components/Table/ui/HeadCell/HeadCell.css +10 -10
  42. package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.css +10 -10
  43. package/cjs/components/TextField/TextField.js +32 -11
  44. package/cjs/components/TextField/TextField.js.map +1 -1
  45. package/cjs/index.css +25 -25
  46. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  47. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +26 -26
  48. package/emotion/cjs/components/Modal/Modal.js +4 -9
  49. package/emotion/cjs/components/Modal/Modal.styles.js +7 -10
  50. package/emotion/cjs/components/NumberFormat/NumberFormat.js +88 -5
  51. package/emotion/cjs/components/Popup/Popup.js +19 -5
  52. package/emotion/cjs/components/Popup/Popup.styles.js +11 -11
  53. package/emotion/cjs/components/Popup/Popup.tokens.js +4 -1
  54. package/emotion/cjs/components/Select/Select.tokens.js +1 -0
  55. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +22 -22
  56. package/emotion/cjs/components/TextField/TextField.js +36 -14
  57. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +15 -15
  58. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.config.js +24 -24
  59. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +15 -15
  60. package/emotion/cjs/examples/plasma_web/components/Select/Select.config.js +24 -24
  61. package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  62. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +26 -26
  63. package/emotion/es/components/Modal/Modal.js +4 -9
  64. package/emotion/es/components/Modal/Modal.styles.js +7 -10
  65. package/emotion/es/components/NumberFormat/NumberFormat.js +90 -7
  66. package/emotion/es/components/Popup/Popup.js +14 -6
  67. package/emotion/es/components/Popup/Popup.styles.js +11 -11
  68. package/emotion/es/components/Popup/Popup.tokens.js +4 -1
  69. package/emotion/es/components/Select/Select.tokens.js +1 -0
  70. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +22 -22
  71. package/emotion/es/components/TextField/TextField.js +36 -14
  72. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +15 -15
  73. package/emotion/es/examples/plasma_b2c/components/Select/Select.config.js +24 -24
  74. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.config.js +15 -15
  75. package/emotion/es/examples/plasma_web/components/Select/Select.config.js +24 -24
  76. package/es/components/Combobox/ComboboxNew/Combobox.css +12 -12
  77. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  78. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  79. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +12 -12
  80. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -1
  81. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  82. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/{Item.styles_80gotw.css → Item.styles_1q0u1o1.css} +2 -2
  83. package/es/components/Combobox/ComboboxNew/ui/SelectAll/SelectAll.css +12 -12
  84. package/es/components/Combobox/ComboboxNew/ui/VirtualList/VirtualList.css +12 -12
  85. package/es/components/Drawer/Drawer.css +5 -5
  86. package/es/components/Modal/Modal.css +5 -5
  87. package/es/components/Modal/Modal.js +3 -8
  88. package/es/components/Modal/Modal.js.map +1 -1
  89. package/es/components/Modal/Modal.styles.js +1 -10
  90. package/es/components/Modal/Modal.styles.js.map +1 -1
  91. package/es/components/Notification/NotificationsProvider.css +5 -5
  92. package/es/components/NumberFormat/NumberFormat.js +47 -7
  93. package/es/components/NumberFormat/NumberFormat.js.map +1 -1
  94. package/es/components/Pagination/Pagination.css +10 -10
  95. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +10 -10
  96. package/es/components/Popup/Popup.js +16 -5
  97. package/es/components/Popup/Popup.js.map +1 -1
  98. package/es/components/Popup/Popup.styles.js +17 -17
  99. package/es/components/Popup/Popup.styles.js.map +1 -1
  100. package/{cjs/components/Popup/Popup.styles_sejy82.css → es/components/Popup/Popup.styles_1dvwxdu.css} +1 -1
  101. package/es/components/Popup/Popup.tokens.js +4 -1
  102. package/es/components/Popup/Popup.tokens.js.map +1 -1
  103. package/es/components/Popup/PopupContext.css +5 -5
  104. package/es/components/Select/Select.css +10 -10
  105. package/es/components/Select/Select.tokens.js +1 -0
  106. package/es/components/Select/Select.tokens.js.map +1 -1
  107. package/es/components/Select/ui/Inner/Inner.css +10 -10
  108. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +1 -1
  109. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  110. package/{cjs/components/Select/ui/Inner/ui/Item/Item.styles_1qpfn0s.css → es/components/Select/ui/Inner/ui/Item/Item.styles_1dlmiti.css} +2 -2
  111. package/es/components/Select/ui/SelectAll/SelectAll.css +10 -10
  112. package/es/components/Select/ui/VirtualList/VirtualList.css +10 -10
  113. package/es/components/Table/Table.css +10 -10
  114. package/es/components/Table/ui/Cell/Cell.css +10 -10
  115. package/es/components/Table/ui/EditableCell/EditableCell.css +10 -10
  116. package/es/components/Table/ui/HeadCell/HeadCell.css +10 -10
  117. package/es/components/Table/ui/HeadCell/ui/Filter/Filter.css +10 -10
  118. package/es/components/TextField/TextField.js +32 -11
  119. package/es/components/TextField/TextField.js.map +1 -1
  120. package/es/index.css +25 -25
  121. package/package.json +2 -2
  122. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  123. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +15 -15
  124. package/styled-components/cjs/components/Modal/Modal.js +4 -9
  125. package/styled-components/cjs/components/Modal/Modal.styles.js +3 -3
  126. package/styled-components/cjs/components/NumberFormat/NumberFormat.js +88 -5
  127. package/styled-components/cjs/components/Popup/Popup.js +19 -5
  128. package/styled-components/cjs/components/Popup/Popup.styles.js +9 -7
  129. package/styled-components/cjs/components/Popup/Popup.tokens.js +4 -1
  130. package/styled-components/cjs/components/Select/Select.tokens.js +1 -0
  131. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +13 -13
  132. package/styled-components/cjs/components/TextField/TextField.js +35 -13
  133. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +32 -28
  134. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.config.js +74 -40
  135. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +32 -28
  136. package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +74 -40
  137. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  138. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +15 -15
  139. package/styled-components/es/components/Modal/Modal.js +4 -9
  140. package/styled-components/es/components/Modal/Modal.styles.js +3 -3
  141. package/styled-components/es/components/NumberFormat/NumberFormat.js +90 -7
  142. package/styled-components/es/components/Popup/Popup.js +14 -6
  143. package/styled-components/es/components/Popup/Popup.styles.js +9 -7
  144. package/styled-components/es/components/Popup/Popup.tokens.js +4 -1
  145. package/styled-components/es/components/Select/Select.tokens.js +1 -0
  146. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +13 -13
  147. package/styled-components/es/components/TextField/TextField.js +35 -13
  148. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +32 -28
  149. package/styled-components/es/examples/plasma_b2c/components/Select/Select.config.js +74 -40
  150. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.config.js +32 -28
  151. package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +74 -40
  152. package/types/components/Carousel/CarouselOld/Carousel.d.ts +2 -2
  153. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +1 -0
  154. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
  155. package/types/components/Drawer/Drawer.d.ts +2 -2
  156. package/types/components/Modal/Modal.d.ts.map +1 -1
  157. package/types/components/Modal/Modal.styles.d.ts +1 -3
  158. package/types/components/Modal/Modal.styles.d.ts.map +1 -1
  159. package/types/components/NumberFormat/NumberFormat.d.ts.map +1 -1
  160. package/types/components/Popup/Popup.d.ts.map +1 -1
  161. package/types/components/Popup/Popup.styles.d.ts.map +1 -1
  162. package/types/components/Popup/Popup.tokens.d.ts +3 -0
  163. package/types/components/Popup/Popup.tokens.d.ts.map +1 -1
  164. package/types/components/Popup/Popup.types.d.ts +2 -8
  165. package/types/components/Popup/Popup.types.d.ts.map +1 -1
  166. package/types/components/Select/Select.tokens.d.ts +1 -0
  167. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  168. package/types/components/TextField/TextField.d.ts.map +1 -1
@@ -32,6 +32,7 @@ export var tokens = {
32
32
  itemIconSizeTight: '--plasma-combobox-item-icon-size-tight',
33
33
  itemIconMargin: '--plasma-combobox-item-icon-margin',
34
34
  itemBackgroundHover: '--plasma-combobox-item-background-hover',
35
+ itemIconColor: '--plasma-combobox-item-icon-color',
35
36
  cellPadding: '--plasma-combobox-cell-padding',
36
37
  cellPaddingLeftContent: '--plasma-combobox-cell-padding-left-content',
37
38
  cellPaddingContent: '--plasma-combobox-cell-padding-content',
@@ -12,7 +12,7 @@ var mergedCellConfig = mergeConfig(cellConfig);
12
12
  var Cell = component(mergedCellConfig);
13
13
  export var StyledWrapper = styled.div.withConfig({
14
14
  displayName: "Item.styles__StyledWrapper",
15
- componentId: "sc-85d7faec-0"
15
+ componentId: "sc-15bf1974-0"
16
16
  })([
17
17
  "",
18
18
  ":var(",
@@ -46,13 +46,13 @@ export var StyledWrapper = styled.div.withConfig({
46
46
  ], cellTokens.cellTitleColor, constants.cellTitleColor, cellTokens.cellBackgroundColor, constants.cellBackgroundColor, cellTokens.cellPadding, tokens.cellPadding, cellTokens.cellPaddingLeftContent, tokens.cellPaddingLeftContent, cellTokens.cellPaddingContent, tokens.cellPaddingContent, cellTokens.cellPaddingRightContent, tokens.cellPaddingRightContent, cellTokens.cellTextboxGap, tokens.cellTextboxGap, cellTokens.cellGap, tokens.cellGap, cellTokens.cellTitleFontFamily, tokens.cellTitleFontFamily, cellTokens.cellTitleFontSize, tokens.cellTitleFontSize, cellTokens.cellTitleFontStyle, tokens.cellTitleFontStyle, cellTokens.cellTitleFontWeight, tokens.cellTitleFontWeight, cellTokens.cellTitleLetterSpacing, tokens.cellTitleLetterSpacing, cellTokens.cellTitleLineHeight, tokens.cellTitleLineHeight);
47
47
  export var StyledCell = styled(Cell).withConfig({
48
48
  displayName: "Item.styles__StyledCell",
49
- componentId: "sc-85d7faec-1"
49
+ componentId: "sc-15bf1974-1"
50
50
  })([
51
51
  ""
52
52
  ]);
53
53
  export var StyledCheckbox = styled(Checkbox).withConfig({
54
54
  displayName: "Item.styles__StyledCheckbox",
55
- componentId: "sc-85d7faec-2"
55
+ componentId: "sc-15bf1974-2"
56
56
  })([
57
57
  "",
58
58
  ":var(",
@@ -74,14 +74,14 @@ var mergedIndicatorConfig = mergeConfig(indicatorConfig);
74
74
  var Indicator = component(mergedIndicatorConfig);
75
75
  export var StyledIndicator = styled(Indicator).withConfig({
76
76
  displayName: "Item.styles__StyledIndicator",
77
- componentId: "sc-85d7faec-3"
77
+ componentId: "sc-15bf1974-3"
78
78
  })([
79
79
  "",
80
80
  ":var(",
81
81
  ");",
82
82
  ":var(",
83
83
  ");"
84
- ], indicatorTokens.size, tokens.indicatorSize, indicatorTokens.color, tokens.checkboxFillColor);
84
+ ], indicatorTokens.size, tokens.indicatorSize, indicatorTokens.color, tokens.itemIconColor);
85
85
  // TODO: Удалить после поддержки JS переменных в конфиге компонент
86
86
  export var sizeMap = {
87
87
  xs: '1rem',
@@ -89,7 +89,7 @@ export var sizeMap = {
89
89
  };
90
90
  export var StyledArrow = styled(IconDisclosureRightCentered).withConfig({
91
91
  displayName: "Item.styles__StyledArrow",
92
- componentId: "sc-85d7faec-4"
92
+ componentId: "sc-15bf1974-4"
93
93
  })([
94
94
  "width:",
95
95
  ";height:",
@@ -103,7 +103,7 @@ export var StyledArrow = styled(IconDisclosureRightCentered).withConfig({
103
103
  });
104
104
  export var StyledIconDone = styled(IconDone).withConfig({
105
105
  displayName: "Item.styles__StyledIconDone",
106
- componentId: "sc-85d7faec-5"
106
+ componentId: "sc-15bf1974-5"
107
107
  })([
108
108
  "width:",
109
109
  ";height:",
@@ -117,19 +117,19 @@ export var StyledIconDone = styled(IconDone).withConfig({
117
117
  });
118
118
  export var StyledContentLeft = styled.div.withConfig({
119
119
  displayName: "Item.styles__StyledContentLeft",
120
- componentId: "sc-85d7faec-6"
120
+ componentId: "sc-15bf1974-6"
121
121
  })([
122
122
  "display:inline-flex;"
123
123
  ]);
124
124
  export var StyledContentRight = styled.div.withConfig({
125
125
  displayName: "Item.styles__StyledContentRight",
126
- componentId: "sc-85d7faec-7"
126
+ componentId: "sc-15bf1974-7"
127
127
  })([
128
128
  "margin-left:auto;display:inline-flex;"
129
129
  ]);
130
130
  export var DisclosureIconWrapper = styled.div.withConfig({
131
131
  displayName: "Item.styles__DisclosureIconWrapper",
132
- componentId: "sc-85d7faec-8"
132
+ componentId: "sc-15bf1974-8"
133
133
  })([
134
134
  "line-height:0;margin:var(",
135
135
  ");color:var(",
@@ -138,7 +138,7 @@ export var DisclosureIconWrapper = styled.div.withConfig({
138
138
  ], tokens.disclosureIconMargin, tokens.disclosureIconColor, tokens.disclosureIconColorHover);
139
139
  export var IconWrapper = styled.div.withConfig({
140
140
  displayName: "Item.styles__IconWrapper",
141
- componentId: "sc-85d7faec-9"
141
+ componentId: "sc-15bf1974-9"
142
142
  })([
143
143
  "display:flex;align-items:center;justify-content:center;flex:none;width:",
144
144
  ";height:",
@@ -151,17 +151,17 @@ export var IconWrapper = styled.div.withConfig({
151
151
  }, function(param) {
152
152
  var variant = param.variant;
153
153
  return "var(".concat(variant === 'tight' ? tokens.itemIconSizeTight : tokens.itemIconSize, ")");
154
- }, tokens.itemIconMargin, tokens.checkboxFillColor);
154
+ }, tokens.itemIconMargin, tokens.itemIconColor);
155
155
  export var StyledText = styled.div.withConfig({
156
156
  displayName: "Item.styles__StyledText",
157
- componentId: "sc-85d7faec-10"
157
+ componentId: "sc-15bf1974-10"
158
158
  })([
159
159
  "",
160
160
  ";flex:1;"
161
161
  ], applyEllipsis());
162
162
  export var Wrapper = styled.li.withConfig({
163
163
  displayName: "Item.styles__Wrapper",
164
- componentId: "sc-85d7faec-11"
164
+ componentId: "sc-15bf1974-11"
165
165
  })([
166
166
  "display:flex;align-items:center;min-height:var(",
167
167
  ");margin:0;box-sizing:content-box;padding:",
@@ -195,7 +195,7 @@ export var Wrapper = styled.li.withConfig({
195
195
  }));
196
196
  export var StyledCheckboxWrapper = styled.span.withConfig({
197
197
  displayName: "Item.styles__StyledCheckboxWrapper",
198
- componentId: "sc-85d7faec-12"
198
+ componentId: "sc-15bf1974-12"
199
199
  })([
200
200
  ""
201
201
  ]);
@@ -74,7 +74,7 @@ var Popup = component(popupConfig);
74
74
  * Управляет показом/скрытием, подложкой и анимацией визуальной части модального окна.
75
75
  */ export var modalRoot = function(Root) {
76
76
  return /*#__PURE__*/ forwardRef(function(_param, outerRootRef) {
77
- var id = _param.id, withAnimation = _param.withAnimation, onClose = _param.onClose, onOverlayClick = _param.onOverlayClick, onEscKeyDown = _param.onEscKeyDown, _param_closeOnEsc = _param.closeOnEsc, closeOnEsc = _param_closeOnEsc === void 0 ? true : _param_closeOnEsc, _param_closeOnOverlayClick = _param.closeOnOverlayClick, closeOnOverlayClick = _param_closeOnOverlayClick === void 0 ? true : _param_closeOnOverlayClick, withBlur = _param.withBlur, initialFocusRef = _param.initialFocusRef, focusAfterRef = _param.focusAfterRef, zIndex = _param.zIndex, popupInfo = _param.popupInfo, children = _param.children, view = _param.view, opened = _param.opened, isOpen = _param.isOpen, hasBody = _param.hasBody, hasClose = _param.hasClose, draggable = _param.draggable, handle = _param.handle, resizable = _param.resizable, rest = _object_without_properties(_param, [
77
+ var id = _param.id, withAnimation = _param.withAnimation, onClose = _param.onClose, onOverlayClick = _param.onOverlayClick, onEscKeyDown = _param.onEscKeyDown, _param_closeOnEsc = _param.closeOnEsc, closeOnEsc = _param_closeOnEsc === void 0 ? true : _param_closeOnEsc, _param_closeOnOverlayClick = _param.closeOnOverlayClick, closeOnOverlayClick = _param_closeOnOverlayClick === void 0 ? true : _param_closeOnOverlayClick, withBlur = _param.withBlur, initialFocusRef = _param.initialFocusRef, focusAfterRef = _param.focusAfterRef, zIndex = _param.zIndex, popupInfo = _param.popupInfo, children = _param.children, view = _param.view, opened = _param.opened, isOpen = _param.isOpen, hasBody = _param.hasBody, hasClose = _param.hasClose, resizable = _param.resizable, draggable = _param.draggable, rest = _object_without_properties(_param, [
78
78
  "id",
79
79
  "withAnimation",
80
80
  "onClose",
@@ -93,15 +93,13 @@ var Popup = component(popupConfig);
93
93
  "isOpen",
94
94
  "hasBody",
95
95
  "hasClose",
96
- "draggable",
97
- "handle",
98
- "resizable"
96
+ "resizable",
97
+ "draggable"
99
98
  ]);
100
99
  var innerIsOpen = Boolean(isOpen || opened);
101
100
  var innerHasClose = hasClose === undefined && hasBody || hasClose;
102
101
  var trapRef = useFocusTrap(true, initialFocusRef, focusAfterRef, true);
103
102
  var popupController = usePopupContext();
104
- var isResizableEnabled = Boolean(resizable && !resizable.disabled);
105
103
  var innerRef = useForkRef(trapRef, outerRootRef);
106
104
  var uniqId = safeUseId();
107
105
  var innerId = id || uniqId;
@@ -153,13 +151,10 @@ var Popup = component(popupConfig);
153
151
  view: view
154
152
  }, overlayNode),
155
153
  draggable: draggable,
156
- handle: handle,
157
154
  resizable: resizable
158
155
  }, rest), hasBody ? /*#__PURE__*/ React.createElement(Root, {
159
156
  view: view
160
- }, /*#__PURE__*/ React.createElement(ModalBody, {
161
- isResizableEnabled: isResizableEnabled
162
- }, /*#__PURE__*/ React.createElement(ModalContent, null, innerHasClose && /*#__PURE__*/ React.createElement(CloseButton, {
157
+ }, /*#__PURE__*/ React.createElement(ModalBody, null, /*#__PURE__*/ React.createElement(ModalContent, null, innerHasClose && /*#__PURE__*/ React.createElement(CloseButton, {
163
158
  onClick: onClose,
164
159
  "data-test": "modal-close"
165
160
  }, /*#__PURE__*/ React.createElement(IconClose, {
@@ -7,7 +7,7 @@ export var base = css([
7
7
  ]);
8
8
  export var ModalBody = styled.div.withConfig({
9
9
  displayName: "Modal.styles__ModalBody",
10
- componentId: "sc-aa09e41b-0"
10
+ componentId: "sc-96885df7-0"
11
11
  })([
12
12
  "height:100%;box-sizing:border-box;border-radius:var(",
13
13
  ");padding:var(",
@@ -16,14 +16,14 @@ export var ModalBody = styled.div.withConfig({
16
16
  ], tokens.modalBodyBorderRadius, tokens.modalBodyPadding, tokens.modalBodyBackground);
17
17
  export var ModalContent = styled.div.withConfig({
18
18
  displayName: "Modal.styles__ModalContent",
19
- componentId: "sc-aa09e41b-1"
19
+ componentId: "sc-96885df7-1"
20
20
  })([
21
21
  "position:relative;padding:var(",
22
22
  ");"
23
23
  ], tokens.modalContentPadding);
24
24
  export var CloseButton = styled.button.withConfig({
25
25
  displayName: "Modal.styles__CloseButton",
26
- componentId: "sc-aa09e41b-2"
26
+ componentId: "sc-96885df7-2"
27
27
  })([
28
28
  "top:0;right:0;width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;border:none;border-radius:var(",
29
29
  ");padding:0;margin:0;outline:none;cursor:pointer;background:transparent;",
@@ -1,3 +1,11 @@
1
+ function _array_like_to_array(arr, len) {
2
+ if (len == null || len > arr.length) len = arr.length;
3
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4
+ return arr2;
5
+ }
6
+ function _array_with_holes(arr) {
7
+ if (Array.isArray(arr)) return arr;
8
+ }
1
9
  function _define_property(obj, key, value) {
2
10
  if (key in obj) {
3
11
  Object.defineProperty(obj, key, {
@@ -11,6 +19,33 @@ function _define_property(obj, key, value) {
11
19
  }
12
20
  return obj;
13
21
  }
22
+ function _iterable_to_array_limit(arr, i) {
23
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
24
+ if (_i == null) return;
25
+ var _arr = [];
26
+ var _n = true;
27
+ var _d = false;
28
+ var _s, _e;
29
+ try {
30
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
31
+ _arr.push(_s.value);
32
+ if (i && _arr.length === i) break;
33
+ }
34
+ } catch (err) {
35
+ _d = true;
36
+ _e = err;
37
+ } finally{
38
+ try {
39
+ if (!_n && _i["return"] != null) _i["return"]();
40
+ } finally{
41
+ if (_d) throw _e;
42
+ }
43
+ }
44
+ return _arr;
45
+ }
46
+ function _non_iterable_rest() {
47
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
48
+ }
14
49
  function _object_spread(target) {
15
50
  for(var i = 1; i < arguments.length; i++){
16
51
  var source = arguments[i] != null ? arguments[i] : {};
@@ -53,30 +88,78 @@ function _object_without_properties_loose(source, excluded) {
53
88
  }
54
89
  return target;
55
90
  }
56
- import React, { forwardRef } from "react";
57
- import { NumericFormat } from "react-number-format";
91
+ function _sliced_to_array(arr, i) {
92
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
93
+ }
94
+ function _unsupported_iterable_to_array(o, minLen) {
95
+ if (!o) return;
96
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
97
+ var n = Object.prototype.toString.call(o).slice(8, -1);
98
+ if (n === "Object" && o.constructor) n = o.constructor.name;
99
+ if (n === "Map" || n === "Set") return Array.from(n);
100
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
101
+ }
102
+ import React, { forwardRef, useRef, useState } from "react";
103
+ import { NumericFormat, numericFormatter } from "react-number-format";
104
+ import { useForkRef } from "@salutejs/plasma-core";
58
105
  export var composeNumberFormat = function(InputComponent) {
59
106
  return /*#__PURE__*/ forwardRef(function(_param, outerRef) {
60
- var _param_thousandSeparator = _param.thousandSeparator, thousandSeparator = _param_thousandSeparator === void 0 ? ' ' : _param_thousandSeparator, _param_decimalScale = _param.decimalScale, decimalScale = _param_decimalScale === void 0 ? 3 : _param_decimalScale, _param_decimalSeparator = _param.decimalSeparator, decimalSeparator = _param_decimalSeparator === void 0 ? '.' : _param_decimalSeparator, onChange = _param.onChange, rest = _object_without_properties(_param, [
107
+ var _param_thousandSeparator = _param.thousandSeparator, thousandSeparator = _param_thousandSeparator === void 0 ? ' ' : _param_thousandSeparator, _param_decimalScale = _param.decimalScale, decimalScale = _param_decimalScale === void 0 ? 3 : _param_decimalScale, _param_decimalSeparator = _param.decimalSeparator, decimalSeparator = _param_decimalSeparator === void 0 ? '.' : _param_decimalSeparator, disabled = _param.disabled, outerValue = _param.value, onChange = _param.onChange, onPaste = _param.onPaste, rest = _object_without_properties(_param, [
61
108
  "thousandSeparator",
62
109
  "decimalScale",
63
110
  "decimalSeparator",
64
- "onChange"
111
+ "disabled",
112
+ "value",
113
+ "onChange",
114
+ "onPaste"
65
115
  ]);
116
+ var inputRef = useRef(null);
117
+ var inputForkRef = useForkRef(inputRef, outerRef);
118
+ var _useState = _sliced_to_array(useState(''), 2), innerValue = _useState[0], setInnerValue = _useState[1];
119
+ var value = numericFormatter(String(outerValue !== null && outerValue !== void 0 ? outerValue : innerValue), {
120
+ thousandSeparator: thousandSeparator,
121
+ decimalScale: decimalScale,
122
+ decimalSeparator: decimalSeparator
123
+ });
66
124
  var handleChangeValue = function(values, sourceInfo) {
125
+ var changeEvent = sourceInfo.event;
126
+ setInnerValue(values.value);
67
127
  if (onChange) {
68
- var changeEvent = sourceInfo.event;
69
128
  onChange(changeEvent, values);
70
129
  }
71
130
  };
131
+ var handlePaste = function(event) {
132
+ if (disabled) {
133
+ return;
134
+ }
135
+ if (decimalSeparator !== '.' && inputRef.current) {
136
+ if (!Number.isNaN(Number(event.clipboardData.getData('text/plain')))) {
137
+ event.preventDefault();
138
+ var pastedValue = event.clipboardData.getData('text/plain').replace('.', decimalSeparator);
139
+ var input = event.target;
140
+ var startPos = input.selectionStart || 0;
141
+ var newCursorPos = startPos + pastedValue.length;
142
+ setInnerValue(pastedValue);
143
+ setTimeout(function() {
144
+ var _inputRef_current;
145
+ (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.setSelectionRange(newCursorPos, newCursorPos);
146
+ }, 10);
147
+ }
148
+ }
149
+ if (onPaste) {
150
+ onPaste(event);
151
+ }
152
+ };
72
153
  return /*#__PURE__*/ React.createElement(NumericFormat, _object_spread({
154
+ value: value,
73
155
  thousandSeparator: thousandSeparator,
74
156
  decimalScale: decimalScale,
75
157
  decimalSeparator: decimalSeparator,
76
158
  customInput: InputComponent,
77
- getInputRef: outerRef,
159
+ getInputRef: inputForkRef,
78
160
  _textEllipsisDisable: true,
79
- onValueChange: handleChangeValue
161
+ onValueChange: handleChangeValue,
162
+ onPaste: handlePaste
80
163
  }, rest));
81
164
  });
82
165
  };
@@ -101,7 +101,7 @@ function _unsupported_iterable_to_array(o, minLen) {
101
101
  }
102
102
  import React, { forwardRef, useRef } from "react";
103
103
  import { useForkRef } from "@salutejs/plasma-core";
104
- // import Draggable from 'react-draggable';
104
+ import Draggable from "react-draggable";
105
105
  import { Resizable } from "re-resizable";
106
106
  import { canUseDOM, cx, safeUseId } from "../../utils";
107
107
  import { Portal } from "../Portal";
@@ -173,7 +173,7 @@ export var handlePosition = function(placement, offset) {
173
173
  0,
174
174
  0
175
175
  ] : _param_offset, _param_frame = _param.frame, frame = _param_frame === void 0 ? 'document' : _param_frame, children = _param.children, overlay = _param.overlay, // eslint-disable-next-line @typescript-eslint/no-unused-vars
176
- role = _param.role, zIndex = _param.zIndex, popupInfo = _param.popupInfo, _param_withAnimation = _param.withAnimation, withAnimation = _param_withAnimation === void 0 ? false : _param_withAnimation, className = _param.className, _param_draggable = _param.draggable, draggable = _param_draggable === void 0 ? false : _param_draggable, handle = _param.handle, resizable = _param.resizable, rest = _object_without_properties(_param, [
176
+ role = _param.role, zIndex = _param.zIndex, popupInfo = _param.popupInfo, _param_withAnimation = _param.withAnimation, withAnimation = _param_withAnimation === void 0 ? false : _param_withAnimation, className = _param.className, draggable = _param.draggable, outerResizable = _param.resizable, rest = _object_without_properties(_param, [
177
177
  "id",
178
178
  "isOpen",
179
179
  "opened",
@@ -188,11 +188,13 @@ export var handlePosition = function(placement, offset) {
188
188
  "withAnimation",
189
189
  "className",
190
190
  "draggable",
191
- "handle",
192
191
  "resizable"
193
192
  ]);
194
193
  var _resizable_hiddenIcons, _resizable_hiddenIcons1, _resizable_hiddenIcons2, _resizable_hiddenIcons3;
195
194
  var innerIsOpen = isOpen || opened;
195
+ var resizable = typeof outerResizable === 'boolean' ? {
196
+ disabled: !outerResizable
197
+ } : outerResizable;
196
198
  var uniqId = safeUseId();
197
199
  var innerId = id || uniqId;
198
200
  var _usePopup = usePopup({
@@ -218,7 +220,12 @@ export var handlePosition = function(placement, offset) {
218
220
  frame: frame,
219
221
  animationInfo: animationInfo,
220
222
  setVisible: setVisible
221
- }, rest), /*#__PURE__*/ React.createElement(Resizable, {
223
+ }, rest), /*#__PURE__*/ React.createElement(Draggable, {
224
+ defaultClassName: draggable ? classes.draggablePopupWrapper : undefined,
225
+ defaultClassNameDragging: draggable ? classes.draggingPopupWrapper : undefined,
226
+ disabled: !draggable,
227
+ cancel: ".".concat(classes.resizableHandleWrapper)
228
+ }, /*#__PURE__*/ React.createElement(Resizable, {
222
229
  enable: resizable && !resizable.disabled ? getResizeDirections(resizable.directions) : false,
223
230
  resizeRatio: getRatioBasedOnPlacement(placement),
224
231
  defaultSize: resizable === null || resizable === void 0 ? void 0 : resizable.defaultSize,
@@ -249,8 +256,9 @@ export var handlePosition = function(placement, offset) {
249
256
  })
250
257
  },
251
258
  className: classes.resizableContainer,
252
- handleStyles: getHandleStyles(resizable === null || resizable === void 0 ? void 0 : resizable.iconSize)
253
- }, children)));
259
+ handleStyles: getHandleStyles(resizable === null || resizable === void 0 ? void 0 : resizable.iconSize),
260
+ handleWrapperClass: classes.resizableHandleWrapper
261
+ }, children))));
254
262
  if (typeof frame !== 'string' && frame && frame.current && canUseDOM) {
255
263
  return /*#__PURE__*/ React.createElement(Portal, {
256
264
  container: frame.current
@@ -4,29 +4,31 @@ import { IconResizeDiagonal } from "../_Icon";
4
4
  import { classes } from "./Popup.tokens";
5
5
  import { DEFAULT_Z_INDEX } from "./utils";
6
6
  export var base = css([
7
- ""
8
- ]);
7
+ ".",
8
+ "{cursor:grab;}.",
9
+ "{cursor:grabbing;}"
10
+ ], classes.draggablePopupWrapper, classes.draggingPopupWrapper);
9
11
  export var StyledPortal = styled.div.withConfig({
10
12
  displayName: "Popup.styles__StyledPortal",
11
- componentId: "sc-53e4f17f-0"
13
+ componentId: "sc-17a0b623-0"
12
14
  })([
13
15
  ""
14
16
  ]);
15
17
  export var StyledPortalContainer = styled.div.withConfig({
16
18
  displayName: "Popup.styles__StyledPortalContainer",
17
- componentId: "sc-53e4f17f-1"
19
+ componentId: "sc-17a0b623-1"
18
20
  })([
19
21
  "width:0;"
20
22
  ]);
21
23
  export var PopupView = styled.div.withConfig({
22
24
  displayName: "Popup.styles__PopupView",
23
- componentId: "sc-53e4f17f-2"
25
+ componentId: "sc-17a0b623-2"
24
26
  })([
25
27
  "position:relative;max-width:100%;pointer-events:all;"
26
28
  ]);
27
29
  export var PopupRootContainer = styled.div.withConfig({
28
30
  displayName: "Popup.styles__PopupRootContainer",
29
- componentId: "sc-53e4f17f-3"
31
+ componentId: "sc-17a0b623-3"
30
32
  })([
31
33
  "position:",
32
34
  ";z-index:",
@@ -60,7 +62,7 @@ export var PopupRootContainer = styled.div.withConfig({
60
62
  });
61
63
  export var IconResizeDiagonalStyled = styled(IconResizeDiagonal).withConfig({
62
64
  displayName: "Popup.styles__IconResizeDiagonalStyled",
63
- componentId: "sc-53e4f17f-4"
65
+ componentId: "sc-17a0b623-4"
64
66
  })([
65
67
  "color:var(--text-secondary);&:hover{color:var(--text-secondary-hover);}&:active{color:var(--text-secondary-active);}&.",
66
68
  "{transform:rotate(-90deg);}&.",
@@ -8,5 +8,8 @@ export var classes = {
8
8
  resizableTopRightIcon: 'resizable-top-right-icon',
9
9
  resizableBottomRightIcon: 'resizable-bottom-right-icon',
10
10
  resizableBottomLeftIcon: 'resizable-bottom-left-icon',
11
- resizableTopLeftIcon: 'resizable-top-left-icon'
11
+ resizableTopLeftIcon: 'resizable-top-left-icon',
12
+ resizableHandleWrapper: 'resizable-handle-wrapper',
13
+ draggablePopupWrapper: 'draggable-popup-wrapper',
14
+ draggingPopupWrapper: 'dragging-popup-wrapper'
12
15
  };
@@ -32,6 +32,7 @@ export var tokens = {
32
32
  itemBackgroundHover: '--plasma-select-item-background-hover',
33
33
  itemDisabledOpacity: '--plasma-select-item-disabled-opacity',
34
34
  itemDisabledColor: '--plasma-select-item-disabled-color',
35
+ itemIconColor: '--plasma-select-item-icon-color',
35
36
  cellPadding: '--plasma-select-cell-padding',
36
37
  cellPaddingLeftContent: '--plasma-select-cell-padding-left-content',
37
38
  cellPaddingContent: '--plasma-select-cell-padding-content',
@@ -14,7 +14,7 @@ var mergedIndicatorConfig = mergeConfig(indicatorConfig);
14
14
  var Indicator = component(mergedIndicatorConfig);
15
15
  export var StyledWrapper = styled.div.withConfig({
16
16
  displayName: "Item.styles__StyledWrapper",
17
- componentId: "sc-8a3f92ff-0"
17
+ componentId: "sc-fcc0b37e-0"
18
18
  })([
19
19
  "",
20
20
  ":",
@@ -51,13 +51,13 @@ export var StyledWrapper = styled.div.withConfig({
51
51
  }, cellTokens.cellBackgroundColor, constants.cellBackgroundColor, cellTokens.cellPadding, tokens.cellPadding, cellTokens.cellPaddingLeftContent, tokens.cellPaddingLeftContent, cellTokens.cellPaddingContent, tokens.cellPaddingContent, cellTokens.cellPaddingRightContent, tokens.cellPaddingRightContent, cellTokens.cellTextboxGap, tokens.cellTextboxGap, cellTokens.cellGap, tokens.cellGap, cellTokens.cellTitleFontFamily, tokens.cellTitleFontFamily, cellTokens.cellTitleFontSize, tokens.cellTitleFontSize, cellTokens.cellTitleFontStyle, tokens.cellTitleFontStyle, cellTokens.cellTitleFontWeight, tokens.cellTitleFontWeight, cellTokens.cellTitleLetterSpacing, tokens.cellTitleLetterSpacing, cellTokens.cellTitleLineHeight, tokens.cellTitleLineHeight);
52
52
  export var StyledCell = styled(Cell).withConfig({
53
53
  displayName: "Item.styles__StyledCell",
54
- componentId: "sc-8a3f92ff-1"
54
+ componentId: "sc-fcc0b37e-1"
55
55
  })([
56
56
  ""
57
57
  ]);
58
58
  export var StyledCheckbox = styled(Checkbox).withConfig({
59
59
  displayName: "Item.styles__StyledCheckbox",
60
- componentId: "sc-8a3f92ff-2"
60
+ componentId: "sc-fcc0b37e-2"
61
61
  })([
62
62
  "",
63
63
  ":var(",
@@ -77,14 +77,14 @@ export var StyledCheckbox = styled(Checkbox).withConfig({
77
77
  ], checkboxTokens.triggerSize, tokens.checkboxTriggerSize, checkboxTokens.triggerBorderRadius, tokens.checkboxTriggerBorderRadius, checkboxTokens.fillColor, tokens.checkboxFillColor, checkboxTokens.iconColor, tokens.checkboxIconColor, checkboxTokens.triggerBorderWidth, tokens.checkboxTriggerBorderWidth, checkboxTokens.triggerBorderColor, tokens.checkboxTriggerBorderColor, checkboxTokens.triggerBorderCheckedColor, tokens.checkboxTriggerBorderCheckedColor);
78
78
  export var StyledIndicator = styled(Indicator).withConfig({
79
79
  displayName: "Item.styles__StyledIndicator",
80
- componentId: "sc-8a3f92ff-3"
80
+ componentId: "sc-fcc0b37e-3"
81
81
  })([
82
82
  "",
83
83
  ":var(",
84
84
  ");",
85
85
  ":var(",
86
86
  ");"
87
- ], indicatorTokens.size, tokens.indicatorSize, indicatorTokens.color, tokens.checkboxFillColor);
87
+ ], indicatorTokens.size, tokens.indicatorSize, indicatorTokens.color, tokens.itemIconColor);
88
88
  // TODO: Удалить после поддержки JS переменных в конфиге компонент
89
89
  export var sizeMap = {
90
90
  xs: '1rem',
@@ -92,7 +92,7 @@ export var sizeMap = {
92
92
  };
93
93
  export var StyledArrow = styled(IconDisclosureRightCentered).withConfig({
94
94
  displayName: "Item.styles__StyledArrow",
95
- componentId: "sc-8a3f92ff-4"
95
+ componentId: "sc-fcc0b37e-4"
96
96
  })([
97
97
  "width:",
98
98
  ";height:",
@@ -106,7 +106,7 @@ export var StyledArrow = styled(IconDisclosureRightCentered).withConfig({
106
106
  });
107
107
  export var StyledIconDone = styled(IconDone).withConfig({
108
108
  displayName: "Item.styles__StyledIconDone",
109
- componentId: "sc-8a3f92ff-5"
109
+ componentId: "sc-fcc0b37e-5"
110
110
  })([
111
111
  "width:",
112
112
  ";height:",
@@ -120,7 +120,7 @@ export var StyledIconDone = styled(IconDone).withConfig({
120
120
  });
121
121
  export var DisclosureIconWrapper = styled.div.withConfig({
122
122
  displayName: "Item.styles__DisclosureIconWrapper",
123
- componentId: "sc-8a3f92ff-6"
123
+ componentId: "sc-fcc0b37e-6"
124
124
  })([
125
125
  "margin:var(",
126
126
  ");line-height:0;color:var(",
@@ -129,7 +129,7 @@ export var DisclosureIconWrapper = styled.div.withConfig({
129
129
  ], tokens.disclosureIconMargin, tokens.disclosureIconColor, tokens.disclosureIconColorHover);
130
130
  export var IconWrapper = styled.div.withConfig({
131
131
  displayName: "Item.styles__IconWrapper",
132
- componentId: "sc-8a3f92ff-7"
132
+ componentId: "sc-fcc0b37e-7"
133
133
  })([
134
134
  "display:flex;align-items:center;justify-content:center;flex:none;width:",
135
135
  ";height:",
@@ -142,17 +142,17 @@ export var IconWrapper = styled.div.withConfig({
142
142
  }, function(param) {
143
143
  var variant = param.variant;
144
144
  return "var(".concat(variant === 'tight' ? tokens.itemIconSizeTight : tokens.itemIconSize, ")");
145
- }, tokens.itemIconMargin, tokens.checkboxFillColor);
145
+ }, tokens.itemIconMargin, tokens.itemIconColor);
146
146
  export var StyledText = styled.div.withConfig({
147
147
  displayName: "Item.styles__StyledText",
148
- componentId: "sc-8a3f92ff-8"
148
+ componentId: "sc-fcc0b37e-8"
149
149
  })([
150
150
  "",
151
151
  ";flex:1;"
152
152
  ], applyEllipsis());
153
153
  export var Wrapper = styled.li.withConfig({
154
154
  displayName: "Item.styles__Wrapper",
155
- componentId: "sc-8a3f92ff-9"
155
+ componentId: "sc-fcc0b37e-9"
156
156
  })([
157
157
  "display:flex;align-items:center;min-height:var(",
158
158
  ");margin:0;box-sizing:content-box;padding:",
@@ -187,7 +187,7 @@ export var Wrapper = styled.li.withConfig({
187
187
  }));
188
188
  export var StyledCheckboxWrapper = styled.span.withConfig({
189
189
  displayName: "Item.styles__StyledCheckboxWrapper",
190
- componentId: "sc-8a3f92ff-10"
190
+ componentId: "sc-fcc0b37e-10"
191
191
  })([
192
192
  ""
193
193
  ]);