@salutejs/plasma-new-hope 0.195.0-dev.0 → 0.195.1-canary.1561.11932328624.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 +31 -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 +30 -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 +31 -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 +30 -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 +31 -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 +30 -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 +31 -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 +30 -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
@@ -44,6 +44,12 @@ const meta: Meta<StorySelectProps> = {
44
44
  eq: 'textfield-like',
45
45
  },
46
46
  },
47
+ placeholder: {
48
+ if: {
49
+ arg: 'target',
50
+ eq: 'textfield-like',
51
+ },
52
+ },
47
53
  chipView: {
48
54
  control: 'select',
49
55
  options: chip,
@@ -79,6 +85,25 @@ const meta: Meta<StorySelectProps> = {
79
85
  eq: 'textfield-like',
80
86
  },
81
87
  },
88
+ requiredPlacement: {
89
+ options: ['left', 'right'],
90
+ control: {
91
+ type: 'select',
92
+ },
93
+ if: { arg: 'required', truthy: true },
94
+ },
95
+ required: {
96
+ control: {
97
+ type: 'boolean',
98
+ },
99
+ if: { arg: 'optional', truthy: false },
100
+ },
101
+ optional: {
102
+ control: {
103
+ type: 'boolean',
104
+ },
105
+ if: { arg: 'required', truthy: false },
106
+ },
82
107
  },
83
108
  args: {
84
109
  target: 'textfield-like',
@@ -93,6 +118,9 @@ const meta: Meta<StorySelectProps> = {
93
118
  isTargetAmount: false,
94
119
  variant: 'normal',
95
120
  disabled: false,
121
+ optional: false,
122
+ required: false,
123
+ requiredPlacement: 'right',
96
124
  },
97
125
  parameters: {
98
126
  controls: {
@@ -113,6 +141,9 @@ const meta: Meta<StorySelectProps> = {
113
141
  'listWidth',
114
142
  'listOverflow',
115
143
  'listHeight',
144
+ 'optional',
145
+ 'required',
146
+ 'requiredPlacement',
116
147
  ],
117
148
  },
118
149
  },