@salutejs/plasma-new-hope 0.183.0-canary.1530.11628993812.0 → 0.184.0-canary.1533.11640514070.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (231) hide show
  1. package/cjs/components/Attach/Attach.css +3 -3
  2. package/cjs/components/Attach/components/AttachButton/AttachButton.css +3 -3
  3. package/cjs/components/Autocomplete/Autocomplete.css +6 -6
  4. package/cjs/components/Autocomplete/Autocomplete.styles.js +1 -1
  5. package/cjs/components/Autocomplete/{Autocomplete.styles_192fzgs.css → Autocomplete.styles_pv6izw.css} +1 -1
  6. package/cjs/components/Autocomplete/Autocomplete.tokens.js +62 -35
  7. package/cjs/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
  8. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  9. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  10. package/cjs/components/Autocomplete/ui/TextField/TextField.styles_1anhp9c.css +1 -0
  11. package/cjs/components/Button/Button.css +2 -2
  12. package/cjs/components/Button/Button.styles.js.map +1 -1
  13. package/cjs/components/Button/variations/_disabled/base.js +1 -1
  14. package/cjs/components/Button/variations/_disabled/base.js.map +1 -1
  15. package/{es/components/Button/variations/_disabled/base_1t3ywu.css → cjs/components/Button/variations/_disabled/base_do83p2.css} +1 -1
  16. package/cjs/components/Button/variations/_view/base.js +1 -1
  17. package/cjs/components/Button/variations/_view/base.js.map +1 -1
  18. package/cjs/components/Button/variations/_view/base_jfbpjg.css +1 -0
  19. package/cjs/components/Calendar/CalendarBase/CalendarBase.css +3 -3
  20. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.css +3 -3
  21. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +3 -3
  22. package/cjs/components/Combobox/ComboboxNew/Combobox.css +3 -3
  23. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +80 -45
  24. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  25. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +3 -3
  26. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +3 -3
  27. package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -1
  28. package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
  29. package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles_16ltv0e.css +1 -0
  30. package/cjs/components/DatePicker/RangeDate/RangeDate.css +3 -3
  31. package/cjs/components/DatePicker/RangeDate/RangeDate.js +1 -3
  32. package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
  33. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +3 -3
  34. package/cjs/components/DatePicker/SingleDate/SingleDate.css +3 -3
  35. package/cjs/components/Drawer/Drawer.css +2 -2
  36. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.css +2 -2
  37. package/cjs/components/EmptyState/EmptyState.css +2 -2
  38. package/cjs/components/IconButton/IconButton.css +3 -3
  39. package/cjs/components/IconButton/IconButton.styles.js +1 -1
  40. package/cjs/components/IconButton/IconButton.styles_403on7.css +1 -0
  41. package/cjs/components/Notification/Notification.css +2 -2
  42. package/cjs/components/Notification/NotificationsProvider.css +2 -2
  43. package/cjs/components/Pagination/Pagination.css +2 -2
  44. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +2 -2
  45. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.css +2 -2
  46. package/cjs/components/Range/Range.js +4 -7
  47. package/cjs/components/Range/Range.js.map +1 -1
  48. package/cjs/components/Select/Select.css +2 -2
  49. package/cjs/components/Select/ui/Inner/Inner.css +2 -2
  50. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +2 -2
  51. package/cjs/components/Select/ui/Target/Target.css +2 -2
  52. package/cjs/components/Select/ui/Target/ui/Button/Button.css +2 -2
  53. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +2 -2
  54. package/cjs/components/Toast/Toast.css +2 -2
  55. package/cjs/components/Toast/ToastController.css +2 -2
  56. package/cjs/index.css +10 -10
  57. package/emotion/cjs/components/Autocomplete/Autocomplete.tokens.js +62 -35
  58. package/emotion/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  59. package/emotion/cjs/components/Button/Button.styles.js +10 -10
  60. package/emotion/cjs/components/Button/variations/_disabled/base.js +1 -1
  61. package/emotion/cjs/components/Button/variations/_view/base.js +1 -1
  62. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +80 -45
  63. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -1
  64. package/emotion/cjs/components/DatePicker/RangeDate/RangeDate.js +1 -3
  65. package/emotion/cjs/components/Range/Range.js +4 -7
  66. package/emotion/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +12 -12
  67. package/emotion/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +22 -0
  68. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  69. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +24 -0
  70. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +16 -16
  71. package/emotion/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +12 -12
  72. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
  73. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +24 -0
  74. package/emotion/es/components/Autocomplete/Autocomplete.tokens.js +62 -35
  75. package/emotion/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  76. package/emotion/es/components/Button/Button.styles.js +10 -10
  77. package/emotion/es/components/Button/variations/_disabled/base.js +1 -1
  78. package/emotion/es/components/Button/variations/_view/base.js +1 -1
  79. package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +80 -45
  80. package/emotion/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -1
  81. package/emotion/es/components/DatePicker/RangeDate/RangeDate.js +1 -3
  82. package/emotion/es/components/Range/Range.js +4 -7
  83. package/emotion/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +12 -12
  84. package/emotion/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +22 -0
  85. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  86. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +24 -0
  87. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.config.js +16 -16
  88. package/emotion/es/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +12 -12
  89. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
  90. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +24 -0
  91. package/es/components/Attach/Attach.css +3 -3
  92. package/es/components/Attach/components/AttachButton/AttachButton.css +3 -3
  93. package/es/components/Autocomplete/Autocomplete.css +6 -6
  94. package/es/components/Autocomplete/Autocomplete.styles.js +1 -1
  95. package/es/components/Autocomplete/{Autocomplete.styles_192fzgs.css → Autocomplete.styles_pv6izw.css} +1 -1
  96. package/es/components/Autocomplete/Autocomplete.tokens.js +62 -35
  97. package/es/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
  98. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  99. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  100. package/es/components/Autocomplete/ui/TextField/TextField.styles_1anhp9c.css +1 -0
  101. package/es/components/Button/Button.css +2 -2
  102. package/es/components/Button/Button.styles.js.map +1 -1
  103. package/es/components/Button/variations/_disabled/base.js +1 -1
  104. package/es/components/Button/variations/_disabled/base.js.map +1 -1
  105. package/{cjs/components/Button/variations/_disabled/base_1t3ywu.css → es/components/Button/variations/_disabled/base_do83p2.css} +1 -1
  106. package/es/components/Button/variations/_view/base.js +1 -1
  107. package/es/components/Button/variations/_view/base.js.map +1 -1
  108. package/es/components/Button/variations/_view/base_jfbpjg.css +1 -0
  109. package/es/components/Calendar/CalendarBase/CalendarBase.css +3 -3
  110. package/es/components/Calendar/CalendarDouble/CalendarDouble.css +3 -3
  111. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +3 -3
  112. package/es/components/Combobox/ComboboxNew/Combobox.css +3 -3
  113. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +80 -45
  114. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  115. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +3 -3
  116. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +3 -3
  117. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -1
  118. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
  119. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles_16ltv0e.css +1 -0
  120. package/es/components/DatePicker/RangeDate/RangeDate.css +3 -3
  121. package/es/components/DatePicker/RangeDate/RangeDate.js +1 -3
  122. package/es/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
  123. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +3 -3
  124. package/es/components/DatePicker/SingleDate/SingleDate.css +3 -3
  125. package/es/components/Drawer/Drawer.css +2 -2
  126. package/es/components/Drawer/ui/DrawerContent/DrawerContent.css +2 -2
  127. package/es/components/EmptyState/EmptyState.css +2 -2
  128. package/es/components/IconButton/IconButton.css +3 -3
  129. package/es/components/IconButton/IconButton.styles.js +1 -1
  130. package/es/components/IconButton/IconButton.styles_403on7.css +1 -0
  131. package/es/components/Notification/Notification.css +2 -2
  132. package/es/components/Notification/NotificationsProvider.css +2 -2
  133. package/es/components/Pagination/Pagination.css +2 -2
  134. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +2 -2
  135. package/es/components/Panel/ui/PanelHeader/PanelHeader.css +2 -2
  136. package/es/components/Range/Range.js +4 -7
  137. package/es/components/Range/Range.js.map +1 -1
  138. package/es/components/Select/Select.css +2 -2
  139. package/es/components/Select/ui/Inner/Inner.css +2 -2
  140. package/es/components/Select/ui/Inner/ui/Item/Item.css +2 -2
  141. package/es/components/Select/ui/Target/Target.css +2 -2
  142. package/es/components/Select/ui/Target/ui/Button/Button.css +2 -2
  143. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +2 -2
  144. package/es/components/Toast/Toast.css +2 -2
  145. package/es/components/Toast/ToastController.css +2 -2
  146. package/es/index.css +10 -10
  147. package/package.json +4 -4
  148. package/styled-components/cjs/components/Autocomplete/Autocomplete.tokens.js +62 -35
  149. package/styled-components/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  150. package/styled-components/cjs/components/Button/Button.styles.js +2 -2
  151. package/styled-components/cjs/components/Button/variations/_disabled/base.js +1 -1
  152. package/styled-components/cjs/components/Button/variations/_view/base.js +1 -1
  153. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +80 -45
  154. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -1
  155. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +1 -3
  156. package/styled-components/cjs/components/Range/Range.js +4 -7
  157. package/styled-components/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +9 -9
  158. package/styled-components/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +22 -0
  159. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +8 -8
  160. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +24 -0
  161. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +4 -4
  162. package/styled-components/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +9 -9
  163. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +8 -8
  164. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +24 -0
  165. package/styled-components/es/components/Autocomplete/Autocomplete.tokens.js +62 -35
  166. package/styled-components/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  167. package/styled-components/es/components/Button/Button.styles.js +2 -2
  168. package/styled-components/es/components/Button/variations/_disabled/base.js +1 -1
  169. package/styled-components/es/components/Button/variations/_view/base.js +1 -1
  170. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +80 -45
  171. package/styled-components/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -1
  172. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +1 -3
  173. package/styled-components/es/components/Range/Range.js +4 -7
  174. package/styled-components/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +9 -9
  175. package/styled-components/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +22 -0
  176. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +8 -8
  177. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +24 -0
  178. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +4 -4
  179. package/styled-components/es/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +9 -9
  180. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.config.js +8 -8
  181. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +24 -0
  182. package/types/components/Autocomplete/Autocomplete.d.ts +2 -2
  183. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  184. package/types/components/Autocomplete/Autocomplete.tokens.d.ts +26 -3
  185. package/types/components/Autocomplete/Autocomplete.tokens.d.ts.map +1 -1
  186. package/types/components/Autocomplete/Autocomplete.types.d.ts +2 -2
  187. package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
  188. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  189. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +48 -13
  190. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
  191. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +2 -1
  192. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  193. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  194. package/types/components/DatePicker/RangeDate/RangeDate.d.ts +0 -2
  195. package/types/components/DatePicker/RangeDate/RangeDate.d.ts.map +1 -1
  196. package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts +0 -3
  197. package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts.map +1 -1
  198. package/types/components/Range/Range.d.ts.map +1 -1
  199. package/types/components/Range/Range.types.d.ts +0 -4
  200. package/types/components/Range/Range.types.d.ts.map +1 -1
  201. package/types/components/TextField/TextField.types.d.ts +1 -1
  202. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  203. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.d.ts.map +1 -1
  204. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts +11 -1
  205. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  206. package/types/examples/plasma_b2c/components/Combobox/Combobox.config.d.ts.map +1 -1
  207. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +492 -0
  208. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
  209. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +0 -1
  210. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -1
  211. package/types/examples/plasma_b2c/components/Range/Range.d.ts +0 -3
  212. package/types/examples/plasma_b2c/components/Range/Range.d.ts.map +1 -1
  213. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +1 -1
  214. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.config.d.ts.map +1 -1
  215. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts +11 -1
  216. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  217. package/types/examples/plasma_web/components/Combobox/Combobox.config.d.ts.map +1 -1
  218. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +492 -0
  219. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
  220. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +0 -1
  221. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -1
  222. package/types/examples/plasma_web/components/Range/Range.d.ts +0 -3
  223. package/types/examples/plasma_web/components/Range/Range.d.ts.map +1 -1
  224. package/cjs/components/Autocomplete/ui/TextField/TextField.styles_kcgaix.css +0 -1
  225. package/cjs/components/Button/variations/_view/base_1x0spnh.css +0 -1
  226. package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles_ei26tn.css +0 -1
  227. package/cjs/components/IconButton/IconButton.styles_sttslf.css +0 -1
  228. package/es/components/Autocomplete/ui/TextField/TextField.styles_kcgaix.css +0 -1
  229. package/es/components/Button/variations/_view/base_1x0spnh.css +0 -1
  230. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles_ei26tn.css +0 -1
  231. package/es/components/IconButton/IconButton.styles_sttslf.css +0 -1
@@ -92,6 +92,25 @@ const meta: Meta<StoryProps> = {
92
92
  type: 'inline-radio',
93
93
  },
94
94
  },
95
+ requiredPlacement: {
96
+ options: ['left', 'right'],
97
+ control: {
98
+ type: 'select',
99
+ },
100
+ if: { arg: 'required', truthy: true },
101
+ },
102
+ required: {
103
+ control: {
104
+ type: 'boolean',
105
+ },
106
+ if: { arg: 'optional', truthy: false },
107
+ },
108
+ optional: {
109
+ control: {
110
+ type: 'boolean',
111
+ },
112
+ if: { arg: 'required', truthy: false },
113
+ },
95
114
  },
96
115
  args: {
97
116
  view: 'default',
@@ -109,6 +128,9 @@ const meta: Meta<StoryProps> = {
109
128
  threshold: 2,
110
129
  enableContentLeft: true,
111
130
  enableContentRight: true,
131
+ optional: false,
132
+ required: false,
133
+ requiredPlacement: 'right',
112
134
  },
113
135
  };
114
136