@salutejs/plasma-new-hope 0.180.0-dev.0 → 0.180.2-canary.1522.11609402169.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +6 -6
  2. package/cjs/components/Autocomplete/Autocomplete.styles.js +1 -1
  3. package/cjs/components/Autocomplete/{Autocomplete.styles_192fzgs.css → Autocomplete.styles_pv6izw.css} +1 -1
  4. package/cjs/components/Autocomplete/Autocomplete.tokens.js +62 -34
  5. package/cjs/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
  6. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  7. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  8. package/cjs/components/Autocomplete/ui/TextField/TextField.styles_1anhp9c.css +1 -0
  9. package/cjs/components/Combobox/ComboboxNew/Combobox.js +2 -1
  10. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  11. package/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +2 -1
  12. package/cjs/components/Combobox/ComboboxNew/FloatingPopover.js.map +1 -1
  13. package/cjs/index.css +6 -6
  14. package/emotion/cjs/components/Autocomplete/Autocomplete.tokens.js +62 -34
  15. package/emotion/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  16. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +2 -1
  17. package/emotion/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +2 -1
  18. package/emotion/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +12 -12
  19. package/emotion/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +22 -0
  20. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +16 -16
  21. package/emotion/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +12 -12
  22. package/emotion/es/components/Autocomplete/Autocomplete.tokens.js +62 -34
  23. package/emotion/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  24. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +2 -1
  25. package/emotion/es/components/Combobox/ComboboxNew/FloatingPopover.js +2 -1
  26. package/emotion/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +12 -12
  27. package/emotion/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +22 -0
  28. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.config.js +16 -16
  29. package/emotion/es/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +12 -12
  30. package/es/components/Autocomplete/Autocomplete.css +6 -6
  31. package/es/components/Autocomplete/Autocomplete.styles.js +1 -1
  32. package/es/components/Autocomplete/{Autocomplete.styles_192fzgs.css → Autocomplete.styles_pv6izw.css} +1 -1
  33. package/es/components/Autocomplete/Autocomplete.tokens.js +62 -34
  34. package/es/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
  35. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  36. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  37. package/es/components/Autocomplete/ui/TextField/TextField.styles_1anhp9c.css +1 -0
  38. package/es/components/Combobox/ComboboxNew/Combobox.js +2 -1
  39. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  40. package/es/components/Combobox/ComboboxNew/FloatingPopover.js +2 -1
  41. package/es/components/Combobox/ComboboxNew/FloatingPopover.js.map +1 -1
  42. package/es/index.css +6 -6
  43. package/package.json +2 -2
  44. package/styled-components/cjs/components/Autocomplete/Autocomplete.tokens.js +62 -34
  45. package/styled-components/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  46. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +2 -1
  47. package/styled-components/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +2 -1
  48. package/styled-components/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +9 -9
  49. package/styled-components/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +22 -0
  50. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +4 -4
  51. package/styled-components/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +9 -9
  52. package/styled-components/es/components/Autocomplete/Autocomplete.tokens.js +62 -34
  53. package/styled-components/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  54. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +2 -1
  55. package/styled-components/es/components/Combobox/ComboboxNew/FloatingPopover.js +2 -1
  56. package/styled-components/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +9 -9
  57. package/styled-components/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +22 -0
  58. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +4 -4
  59. package/styled-components/es/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +9 -9
  60. package/types/components/Autocomplete/Autocomplete.d.ts +2 -2
  61. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  62. package/types/components/Autocomplete/Autocomplete.tokens.d.ts +26 -2
  63. package/types/components/Autocomplete/Autocomplete.tokens.d.ts.map +1 -1
  64. package/types/components/Autocomplete/Autocomplete.types.d.ts +27 -1
  65. package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
  66. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  67. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  68. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +2 -1
  69. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  70. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.d.ts.map +1 -1
  71. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts +11 -1
  72. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  73. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +1 -1
  74. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.config.d.ts.map +1 -1
  75. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts +11 -1
  76. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  77. package/cjs/components/Autocomplete/ui/TextField/TextField.styles_1csckkd.css +0 -1
  78. package/es/components/Autocomplete/ui/TextField/TextField.styles_1csckkd.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