@salutejs/plasma-new-hope 0.194.1-dev.0 → 0.194.2-canary.1561.11922759758.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. package/cjs/components/Pagination/Pagination.css +2 -2
  2. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +2 -2
  3. package/cjs/components/Select/Select.css +2 -2
  4. package/cjs/components/Select/Select.js +11 -4
  5. package/cjs/components/Select/Select.js.map +1 -1
  6. package/cjs/components/Select/Select.tokens.js +11 -1
  7. package/cjs/components/Select/Select.tokens.js.map +1 -1
  8. package/cjs/components/Select/ui/Inner/Inner.css +2 -2
  9. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +2 -2
  10. package/cjs/components/Select/ui/Target/Target.css +2 -2
  11. package/cjs/components/Select/ui/Target/Target.js +5 -4
  12. package/cjs/components/Select/ui/Target/Target.js.map +1 -1
  13. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +2 -2
  14. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +3 -2
  15. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  16. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +7 -7
  17. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  18. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_1b7iij0.css +3 -0
  19. package/cjs/index.css +2 -2
  20. package/emotion/cjs/components/Select/Select.js +11 -4
  21. package/emotion/cjs/components/Select/Select.tokens.js +11 -1
  22. package/emotion/cjs/components/Select/ui/Target/Target.js +5 -4
  23. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +3 -2
  24. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +3 -3
  25. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.config.js +20 -20
  26. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +25 -0
  27. package/emotion/cjs/examples/plasma_web/components/Select/Select.config.js +20 -20
  28. package/emotion/cjs/examples/plasma_web/components/Select/Select.stories.tsx +24 -0
  29. package/emotion/es/components/Select/Select.js +11 -4
  30. package/emotion/es/components/Select/Select.tokens.js +11 -1
  31. package/emotion/es/components/Select/ui/Target/Target.js +5 -4
  32. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +3 -2
  33. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +3 -3
  34. package/emotion/es/examples/plasma_b2c/components/Select/Select.config.js +20 -20
  35. package/emotion/es/examples/plasma_b2c/components/Select/Select.stories.tsx +25 -0
  36. package/emotion/es/examples/plasma_web/components/Select/Select.config.js +20 -20
  37. package/emotion/es/examples/plasma_web/components/Select/Select.stories.tsx +24 -0
  38. package/es/components/Pagination/Pagination.css +2 -2
  39. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +2 -2
  40. package/es/components/Select/Select.css +2 -2
  41. package/es/components/Select/Select.js +11 -4
  42. package/es/components/Select/Select.js.map +1 -1
  43. package/es/components/Select/Select.tokens.js +11 -1
  44. package/es/components/Select/Select.tokens.js.map +1 -1
  45. package/es/components/Select/ui/Inner/Inner.css +2 -2
  46. package/es/components/Select/ui/Inner/ui/Item/Item.css +2 -2
  47. package/es/components/Select/ui/Target/Target.css +2 -2
  48. package/es/components/Select/ui/Target/Target.js +5 -4
  49. package/es/components/Select/ui/Target/Target.js.map +1 -1
  50. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +2 -2
  51. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +3 -2
  52. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  53. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +7 -7
  54. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  55. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles_1b7iij0.css +3 -0
  56. package/es/index.css +2 -2
  57. package/package.json +2 -2
  58. package/styled-components/cjs/components/Select/Select.js +11 -4
  59. package/styled-components/cjs/components/Select/Select.tokens.js +11 -1
  60. package/styled-components/cjs/components/Select/ui/Target/Target.js +5 -4
  61. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +3 -2
  62. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +2 -2
  63. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.config.js +8 -8
  64. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +25 -0
  65. package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +8 -8
  66. package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +24 -0
  67. package/styled-components/es/components/Select/Select.js +11 -4
  68. package/styled-components/es/components/Select/Select.tokens.js +11 -1
  69. package/styled-components/es/components/Select/ui/Target/Target.js +5 -4
  70. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +3 -2
  71. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +2 -2
  72. package/styled-components/es/examples/plasma_b2c/components/Select/Select.config.js +8 -8
  73. package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +25 -0
  74. package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +8 -8
  75. package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +24 -0
  76. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +96 -0
  77. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
  78. package/types/components/Select/Select.d.ts.map +1 -1
  79. package/types/components/Select/Select.tokens.d.ts +11 -1
  80. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  81. package/types/components/Select/Select.types.d.ts +4 -2
  82. package/types/components/Select/Select.types.d.ts.map +1 -1
  83. package/types/components/Select/ui/Target/Target.d.ts +2 -1
  84. package/types/components/Select/ui/Target/Target.d.ts.map +1 -1
  85. package/types/components/Select/ui/Target/Target.types.d.ts +3 -2
  86. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
  87. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
  88. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  89. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +1 -1
  90. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
  91. package/types/examples/plasma_b2c/components/Select/Select.config.d.ts.map +1 -1
  92. package/types/examples/plasma_b2c/components/Select/Select.d.ts +96 -0
  93. package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
  94. package/types/examples/plasma_web/components/Select/Select.config.d.ts.map +1 -1
  95. package/types/examples/plasma_web/components/Select/Select.d.ts +96 -0
  96. package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
  97. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_q4kc1p.css +0 -3
  98. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles_q4kc1p.css +0 -3
@@ -79,6 +79,25 @@ const meta: Meta<StorySelectProps> = {
79
79
  eq: 'textfield-like',
80
80
  },
81
81
  },
82
+ requiredPlacement: {
83
+ options: ['left', 'right'],
84
+ control: {
85
+ type: 'select',
86
+ },
87
+ if: { arg: 'required', truthy: true },
88
+ },
89
+ required: {
90
+ control: {
91
+ type: 'boolean',
92
+ },
93
+ if: { arg: 'optional', truthy: false },
94
+ },
95
+ optional: {
96
+ control: {
97
+ type: 'boolean',
98
+ },
99
+ if: { arg: 'required', truthy: false },
100
+ },
82
101
  },
83
102
  args: {
84
103
  target: 'textfield-like',
@@ -93,6 +112,9 @@ const meta: Meta<StorySelectProps> = {
93
112
  isTargetAmount: false,
94
113
  variant: 'normal',
95
114
  disabled: false,
115
+ optional: false,
116
+ required: false,
117
+ requiredPlacement: 'right',
96
118
  },
97
119
  parameters: {
98
120
  controls: {
@@ -113,6 +135,9 @@ const meta: Meta<StorySelectProps> = {
113
135
  'listWidth',
114
136
  'listOverflow',
115
137
  'listHeight',
138
+ 'optional',
139
+ 'required',
140
+ 'requiredPlacement',
116
141
  ],
117
142
  },
118
143
  },