@salutejs/plasma-new-hope 0.71.0-canary.1161.8576288835.0 → 0.71.1-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (235) hide show
  1. package/cjs/components/Combobox/Combobox.css +10 -10
  2. package/cjs/components/Combobox/Combobox.styles.js +5 -5
  3. package/cjs/components/Combobox/Combobox.styles.js.map +1 -1
  4. package/cjs/components/Combobox/{Combobox.styles_dw6hnk.css → Combobox.styles_17ei5vn.css} +1 -1
  5. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  6. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  7. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  8. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  9. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
  10. package/cjs/components/Dropdown/Dropdown.css +4 -4
  11. package/cjs/components/Dropdown/Dropdown.js +1 -0
  12. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  13. package/cjs/components/Pagination/Pagination.css +4 -4
  14. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  15. package/cjs/components/Popover/Popover.css +4 -4
  16. package/cjs/components/Popover/Popover.js +43 -33
  17. package/cjs/components/Popover/Popover.js.map +1 -1
  18. package/cjs/components/Popover/Popover.styles.js +1 -1
  19. package/cjs/components/Popover/Popover.styles.js.map +1 -1
  20. package/cjs/components/Popover/{Popover.styles_1ggb66y.css → Popover.styles_1rk9t6z.css} +1 -1
  21. package/cjs/components/Select/Select.css +4 -4
  22. package/cjs/components/Select/ui/SelectItem/SelectItem.css +4 -4
  23. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js +1 -2
  24. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  25. package/cjs/index.css +33 -33
  26. package/cjs/index.js +4 -39
  27. package/cjs/index.js.map +1 -1
  28. package/cjs/utils/index.js +1 -13
  29. package/cjs/utils/index.js.map +1 -1
  30. package/cjs/utils/react.js +2 -12
  31. package/cjs/utils/react.js.map +1 -1
  32. package/es/components/Combobox/Combobox.css +10 -10
  33. package/es/components/Combobox/Combobox.styles.js +5 -5
  34. package/es/components/Combobox/Combobox.styles.js.map +1 -1
  35. package/es/components/Combobox/{Combobox.styles_dw6hnk.css → Combobox.styles_17ei5vn.css} +1 -1
  36. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  37. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  38. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  39. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  40. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
  41. package/es/components/Dropdown/Dropdown.css +4 -4
  42. package/es/components/Dropdown/Dropdown.js +1 -0
  43. package/es/components/Dropdown/Dropdown.js.map +1 -1
  44. package/es/components/Pagination/Pagination.css +4 -4
  45. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  46. package/es/components/Popover/Popover.css +4 -4
  47. package/es/components/Popover/Popover.js +43 -33
  48. package/es/components/Popover/Popover.js.map +1 -1
  49. package/es/components/Popover/Popover.styles.js +1 -1
  50. package/es/components/Popover/Popover.styles.js.map +1 -1
  51. package/es/components/Popover/{Popover.styles_1ggb66y.css → Popover.styles_1rk9t6z.css} +1 -1
  52. package/es/components/Select/Select.css +4 -4
  53. package/es/components/Select/ui/SelectItem/SelectItem.css +4 -4
  54. package/es/components/Select/ui/SelectTarget/SelectTarget.js +1 -2
  55. package/es/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  56. package/es/index.css +33 -33
  57. package/es/index.js +0 -13
  58. package/es/index.js.map +1 -1
  59. package/es/utils/index.js +2 -11
  60. package/es/utils/index.js.map +1 -1
  61. package/es/utils/react.js +2 -9
  62. package/es/utils/react.js.map +1 -1
  63. package/package.json +2 -2
  64. package/styled-components/cjs/components/Combobox/Combobox.styles.js +1 -1
  65. package/styled-components/cjs/components/Dropdown/Dropdown.js +1 -0
  66. package/styled-components/cjs/components/Popover/Popover.js +43 -33
  67. package/styled-components/cjs/components/Popover/Popover.styles.js +1 -1
  68. package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.js +1 -2
  69. package/styled-components/cjs/examples/plasma_b2c/components/Button/Button.config.js +10 -7
  70. package/styled-components/cjs/examples/plasma_b2c/components/Chip/Chip.config.js +2 -2
  71. package/styled-components/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +7 -0
  72. package/styled-components/cjs/examples/plasma_web/components/Button/Button.config.js +10 -7
  73. package/styled-components/cjs/examples/plasma_web/components/Chip/Chip.config.js +2 -2
  74. package/styled-components/cjs/examples/sds_engineer/components/Button/Button.config.js +10 -7
  75. package/styled-components/cjs/index.js +0 -22
  76. package/styled-components/es/components/Combobox/Combobox.styles.js +1 -1
  77. package/styled-components/es/components/Dropdown/Dropdown.js +1 -0
  78. package/styled-components/es/components/Popover/Popover.js +43 -33
  79. package/styled-components/es/components/Popover/Popover.styles.js +1 -1
  80. package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.js +1 -2
  81. package/styled-components/es/examples/plasma_b2c/components/Button/Button.config.js +10 -7
  82. package/styled-components/es/examples/plasma_b2c/components/Chip/Chip.config.js +2 -2
  83. package/styled-components/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +7 -0
  84. package/styled-components/es/examples/plasma_web/components/Button/Button.config.js +10 -7
  85. package/styled-components/es/examples/plasma_web/components/Chip/Chip.config.js +2 -2
  86. package/styled-components/es/examples/sds_engineer/components/Button/Button.config.js +10 -7
  87. package/styled-components/es/index.js +0 -2
  88. package/types/components/Chip/Chip.d.ts +2 -26
  89. package/types/components/Chip/Chip.d.ts.map +1 -1
  90. package/types/components/Chip/Chip.types.d.ts +5 -6
  91. package/types/components/Chip/Chip.types.d.ts.map +1 -1
  92. package/types/components/Combobox/Combobox.styles.d.ts +8 -2
  93. package/types/components/Combobox/Combobox.styles.d.ts.map +1 -1
  94. package/types/components/Combobox/ui/ComboboxChip/ComboboxChip.styles.d.ts +1 -13
  95. package/types/components/Combobox/ui/ComboboxChip/ComboboxChip.styles.d.ts.map +1 -1
  96. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  97. package/types/components/Dropdown/Dropdown.styles.d.ts +7 -1
  98. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  99. package/types/components/Indicator/Indicator.d.ts +2 -2
  100. package/types/components/Popover/Popover.d.ts +2 -2
  101. package/types/components/Popover/Popover.d.ts.map +1 -1
  102. package/types/components/Popover/Popover.styles.d.ts.map +1 -1
  103. package/types/components/Popover/Popover.types.d.ts +19 -12
  104. package/types/components/Popover/Popover.types.d.ts.map +1 -1
  105. package/types/components/Select/Select.styles.d.ts +8 -2
  106. package/types/components/Select/Select.styles.d.ts.map +1 -1
  107. package/types/components/Select/ui/SelectChip/SelectChip.styles.d.ts +1 -13
  108. package/types/components/Select/ui/SelectChip/SelectChip.styles.d.ts.map +1 -1
  109. package/types/components/Select/ui/SelectTarget/SelectTarget.d.ts.map +1 -1
  110. package/types/examples/plasma_b2c/components/Button/Button.config.d.ts +3 -0
  111. package/types/examples/plasma_b2c/components/Button/Button.config.d.ts.map +1 -1
  112. package/types/examples/plasma_b2c/components/Button/Button.d.ts +3 -0
  113. package/types/examples/plasma_b2c/components/Button/Button.d.ts.map +1 -1
  114. package/types/examples/plasma_b2c/components/Chip/Chip.config.d.ts +1 -1
  115. package/types/examples/plasma_b2c/components/Chip/Chip.d.ts +2 -14
  116. package/types/examples/plasma_b2c/components/Chip/Chip.d.ts.map +1 -1
  117. package/types/examples/plasma_b2c/components/Indicator/Indicator.d.ts +2 -2
  118. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts +7 -1
  119. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts.map +1 -1
  120. package/types/examples/plasma_web/components/Button/Button.config.d.ts +3 -0
  121. package/types/examples/plasma_web/components/Button/Button.config.d.ts.map +1 -1
  122. package/types/examples/plasma_web/components/Button/Button.d.ts +3 -0
  123. package/types/examples/plasma_web/components/Button/Button.d.ts.map +1 -1
  124. package/types/examples/plasma_web/components/Chip/Chip.config.d.ts +1 -1
  125. package/types/examples/plasma_web/components/Chip/Chip.d.ts +2 -14
  126. package/types/examples/plasma_web/components/Chip/Chip.d.ts.map +1 -1
  127. package/types/examples/plasma_web/components/Indicator/Indicator.d.ts +2 -2
  128. package/types/examples/plasma_web/components/Popover/Popover.d.ts +7 -1
  129. package/types/examples/plasma_web/components/Popover/Popover.d.ts.map +1 -1
  130. package/types/examples/sds_engineer/components/Button/Button.config.d.ts +3 -0
  131. package/types/examples/sds_engineer/components/Button/Button.config.d.ts.map +1 -1
  132. package/types/examples/sds_engineer/components/Button/Button.d.ts +3 -0
  133. package/types/examples/sds_engineer/components/Button/Button.d.ts.map +1 -1
  134. package/types/examples/sds_engineer/components/Chip/Chip.d.ts +1 -13
  135. package/types/examples/sds_engineer/components/Chip/Chip.d.ts.map +1 -1
  136. package/types/examples/sds_engineer/components/Popover/Popover.d.ts +7 -1
  137. package/types/examples/sds_engineer/components/Popover/Popover.d.ts.map +1 -1
  138. package/types/index.d.ts +0 -2
  139. package/types/index.d.ts.map +1 -1
  140. package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +0 -23
  141. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +0 -40
  142. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js.map +0 -1
  143. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -12
  144. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +0 -1
  145. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +0 -1
  146. package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js +0 -9
  147. package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js.map +0 -1
  148. package/cjs/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +0 -1
  149. package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js +0 -9
  150. package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js.map +0 -1
  151. package/cjs/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +0 -1
  152. package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +0 -23
  153. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +0 -40
  154. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js.map +0 -1
  155. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -12
  156. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +0 -1
  157. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +0 -1
  158. package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js +0 -9
  159. package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js.map +0 -1
  160. package/cjs/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +0 -1
  161. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +0 -9
  162. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js.map +0 -1
  163. package/cjs/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +0 -1
  164. package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +0 -23
  165. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +0 -40
  166. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js.map +0 -1
  167. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -12
  168. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +0 -1
  169. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +0 -1
  170. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +0 -9
  171. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js.map +0 -1
  172. package/cjs/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +0 -1
  173. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +0 -9
  174. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js.map +0 -1
  175. package/cjs/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +0 -1
  176. package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +0 -23
  177. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +0 -40
  178. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js.map +0 -1
  179. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -12
  180. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +0 -1
  181. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +0 -1
  182. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +0 -9
  183. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js.map +0 -1
  184. package/cjs/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +0 -1
  185. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +0 -9
  186. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js.map +0 -1
  187. package/cjs/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +0 -1
  188. package/es/components/Select/ui/SelectDivider/SelectDivider.css +0 -23
  189. package/es/components/Select/ui/SelectDivider/SelectDivider.js +0 -35
  190. package/es/components/Select/ui/SelectDivider/SelectDivider.js.map +0 -1
  191. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -7
  192. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +0 -1
  193. package/es/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +0 -1
  194. package/es/components/Select/ui/SelectDivider/variations/_size/base.js +0 -5
  195. package/es/components/Select/ui/SelectDivider/variations/_size/base.js.map +0 -1
  196. package/es/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +0 -1
  197. package/es/components/Select/ui/SelectDivider/variations/_view/base.js +0 -5
  198. package/es/components/Select/ui/SelectDivider/variations/_view/base.js.map +0 -1
  199. package/es/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +0 -1
  200. package/es/components/Select/ui/SelectFooter/SelectFooter.css +0 -23
  201. package/es/components/Select/ui/SelectFooter/SelectFooter.js +0 -35
  202. package/es/components/Select/ui/SelectFooter/SelectFooter.js.map +0 -1
  203. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -7
  204. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +0 -1
  205. package/es/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +0 -1
  206. package/es/components/Select/ui/SelectFooter/variations/_size/base.js +0 -5
  207. package/es/components/Select/ui/SelectFooter/variations/_size/base.js.map +0 -1
  208. package/es/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +0 -1
  209. package/es/components/Select/ui/SelectFooter/variations/_view/base.js +0 -5
  210. package/es/components/Select/ui/SelectFooter/variations/_view/base.js.map +0 -1
  211. package/es/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +0 -1
  212. package/es/components/Select/ui/SelectGroup/SelectGroup.css +0 -23
  213. package/es/components/Select/ui/SelectGroup/SelectGroup.js +0 -35
  214. package/es/components/Select/ui/SelectGroup/SelectGroup.js.map +0 -1
  215. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -7
  216. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +0 -1
  217. package/es/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +0 -1
  218. package/es/components/Select/ui/SelectGroup/variations/_size/base.js +0 -5
  219. package/es/components/Select/ui/SelectGroup/variations/_size/base.js.map +0 -1
  220. package/es/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +0 -1
  221. package/es/components/Select/ui/SelectGroup/variations/_view/base.js +0 -5
  222. package/es/components/Select/ui/SelectGroup/variations/_view/base.js.map +0 -1
  223. package/es/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +0 -1
  224. package/es/components/Select/ui/SelectHeader/SelectHeader.css +0 -23
  225. package/es/components/Select/ui/SelectHeader/SelectHeader.js +0 -35
  226. package/es/components/Select/ui/SelectHeader/SelectHeader.js.map +0 -1
  227. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -7
  228. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +0 -1
  229. package/es/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +0 -1
  230. package/es/components/Select/ui/SelectHeader/variations/_size/base.js +0 -5
  231. package/es/components/Select/ui/SelectHeader/variations/_size/base.js.map +0 -1
  232. package/es/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +0 -1
  233. package/es/components/Select/ui/SelectHeader/variations/_view/base.js +0 -5
  234. package/es/components/Select/ui/SelectHeader/variations/_view/base.js.map +0 -1
  235. package/es/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +0 -1
@@ -14,13 +14,16 @@ var config = exports.config = {
14
14
  },
15
15
  variations: {
16
16
  view: {
17
- primary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 85% );", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 80% );"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
18
- accent: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-accent) 85%);", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-accent) 80%);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
19
- secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 85% );", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 80% );"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
20
- clear: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-clear) 95%);", ":var(--text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-clear) 90%);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
21
- positive: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-positive) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-positive) 85%);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
22
- warning: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-warning);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-warning) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-warning) 85%);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
23
- negative: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-negative);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-negative) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-negative) 85%);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive)
17
+ primary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
18
+ accent: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--on-dark-text-primary);", ":var(--surface-accent-hover);", ":var(--on-dark-text-primary);", ":var(--surface-accent-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
19
+ secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
20
+ clear: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
21
+ positive: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":var(--surface-positive-hover);", ":var(--on-dark-text-primary);", ":var(--surface-positive-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
22
+ warning: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-warning);", ":var(--on-dark-text-primary);", ":var(--surface-warning-hover);", ":var(--on-dark-text-primary);", ":var(--surface-warning-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
23
+ negative: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-negative);", ":var(--on-dark-text-primary);", ":var(--surface-negative-hover);", ":var(--on-dark-text-primary);", ":var(--surface-negative-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
24
+ dark: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep-hover);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
25
+ black: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default-hover);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
26
+ white: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default);", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default-hover);", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive)
24
27
  },
25
28
  size: {
26
29
  l: /*#__PURE__*/(0, _styledComponents.css)(["", ":3.5rem;", ":12.5rem;", ":1.5rem;", ":0.875rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":1.375rem;", ":inherit;"], _Button.buttonTokens.buttonHeight, _Button.buttonTokens.buttonWidth, _Button.buttonTokens.buttonPadding, _Button.buttonTokens.buttonRadius, _Button.buttonTokens.buttonFontFamily, _Button.buttonTokens.buttonFontSize, _Button.buttonTokens.buttonFontStyle, _Button.buttonTokens.buttonFontWeight, _Button.buttonTokens.buttonLetterSpacing, _Button.buttonTokens.buttonLineHeight, _Button.buttonTokens.buttonSpinnerSize, _Button.buttonTokens.buttonSpinnerColor),
@@ -8,13 +8,13 @@ var _styledComponents = /*#__PURE__*/require("styled-components");
8
8
  var _Chip = /*#__PURE__*/require("../../../../components/Chip");
9
9
  var config = exports.config = {
10
10
  defaults: {
11
- view: 'primary',
11
+ view: 'default',
12
12
  focused: 'true',
13
13
  size: 'm'
14
14
  },
15
15
  variations: {
16
16
  view: {
17
- primary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 85% );", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 80% );", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);"], _Chip.chipTokens.color, _Chip.chipTokens.background, _Chip.chipTokens.colorHover, _Chip.chipTokens.backgroundHover, _Chip.chipTokens.colorActive, _Chip.chipTokens.backgroundActive, _Chip.chipTokens.backgroundReadOnly, _Chip.chipTokens.colorReadOnly, _Chip.chipTokens.backgroundReadOnlyHover, _Chip.chipTokens.colorReadOnlyHover),
17
+ "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 85% );", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 80% );", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);"], _Chip.chipTokens.color, _Chip.chipTokens.background, _Chip.chipTokens.colorHover, _Chip.chipTokens.backgroundHover, _Chip.chipTokens.colorActive, _Chip.chipTokens.backgroundActive, _Chip.chipTokens.backgroundReadOnly, _Chip.chipTokens.colorReadOnly, _Chip.chipTokens.backgroundReadOnlyHover, _Chip.chipTokens.colorReadOnlyHover),
18
18
  secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 85% );", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 80% );", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);"], _Chip.chipTokens.color, _Chip.chipTokens.background, _Chip.chipTokens.colorHover, _Chip.chipTokens.backgroundHover, _Chip.chipTokens.colorActive, _Chip.chipTokens.backgroundActive, _Chip.chipTokens.backgroundReadOnly, _Chip.chipTokens.colorReadOnly, _Chip.chipTokens.backgroundReadOnlyHover, _Chip.chipTokens.colorReadOnlyHover),
19
19
  positive: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-positive) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-positive) 85%);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);"], _Chip.chipTokens.color, _Chip.chipTokens.background, _Chip.chipTokens.colorHover, _Chip.chipTokens.backgroundHover, _Chip.chipTokens.colorActive, _Chip.chipTokens.backgroundActive, _Chip.chipTokens.backgroundReadOnly, _Chip.chipTokens.colorReadOnly, _Chip.chipTokens.backgroundReadOnlyHover, _Chip.chipTokens.colorReadOnlyHover)
20
20
  },
@@ -14,13 +14,16 @@ var config = exports.config = {
14
14
  },
15
15
  variations: {
16
16
  view: {
17
- primary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 85% );", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 80% );"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
18
- accent: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-accent) 85%);", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-accent) 80%);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
19
- secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 85% );", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 80% );"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
20
- clear: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-clear) 95%);", ":var(--text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-clear) 90%);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
21
- positive: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-positive) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-positive) 85%);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
22
- warning: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-warning);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-warning) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-warning) 85%);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
23
- negative: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-negative);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-negative) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-negative) 85%);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive)
17
+ primary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
18
+ accent: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--on-dark-text-primary);", ":var(--surface-accent-hover);", ":var(--on-dark-text-primary);", ":var(--surface-accent-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
19
+ secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
20
+ clear: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
21
+ positive: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":var(--surface-positive-hover);", ":var(--on-dark-text-primary);", ":var(--surface-positive-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
22
+ warning: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-warning);", ":var(--on-dark-text-primary);", ":var(--surface-warning-hover);", ":var(--on-dark-text-primary);", ":var(--surface-warning-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
23
+ negative: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-negative);", ":var(--on-dark-text-primary);", ":var(--surface-negative-hover);", ":var(--on-dark-text-primary);", ":var(--surface-negative-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
24
+ dark: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep-hover);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
25
+ black: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default-hover);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive),
26
+ white: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default);", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default-hover);", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive)
24
27
  },
25
28
  size: {
26
29
  l: /*#__PURE__*/(0, _styledComponents.css)(["", ":3.5rem;", ":12.5rem;", ":1.5rem;", ":0.875rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":1.375rem;", ":inherit;"], _Button.buttonTokens.buttonHeight, _Button.buttonTokens.buttonWidth, _Button.buttonTokens.buttonPadding, _Button.buttonTokens.buttonRadius, _Button.buttonTokens.buttonFontFamily, _Button.buttonTokens.buttonFontSize, _Button.buttonTokens.buttonFontStyle, _Button.buttonTokens.buttonFontWeight, _Button.buttonTokens.buttonLetterSpacing, _Button.buttonTokens.buttonLineHeight, _Button.buttonTokens.buttonSpinnerSize, _Button.buttonTokens.buttonSpinnerColor),
@@ -36,17 +36,6 @@ Object.keys(_hooks).forEach(function (key) {
36
36
  }
37
37
  });
38
38
  });
39
- var _utils = /*#__PURE__*/require("./utils");
40
- Object.keys(_utils).forEach(function (key) {
41
- if (key === "default" || key === "__esModule") return;
42
- if (key in exports && exports[key] === _utils[key]) return;
43
- Object.defineProperty(exports, key, {
44
- enumerable: true,
45
- get: function get() {
46
- return _utils[key];
47
- }
48
- });
49
- });
50
39
  var _Button = /*#__PURE__*/require("./components/Button");
51
40
  Object.keys(_Button).forEach(function (key) {
52
41
  if (key === "default" || key === "__esModule") return;
@@ -465,17 +454,6 @@ Object.keys(_Progress).forEach(function (key) {
465
454
  }
466
455
  });
467
456
  });
468
- var _Select = /*#__PURE__*/require("./components/Select");
469
- Object.keys(_Select).forEach(function (key) {
470
- if (key === "default" || key === "__esModule") return;
471
- if (key in exports && exports[key] === _Select[key]) return;
472
- Object.defineProperty(exports, key, {
473
- enumerable: true,
474
- get: function get() {
475
- return _Select[key];
476
- }
477
- });
478
- });
479
457
  var _Divider = /*#__PURE__*/require("./components/Divider");
480
458
  Object.keys(_Divider).forEach(function (key) {
481
459
  if (key === "default" || key === "__esModule") return;
@@ -4,7 +4,7 @@ import { popoverClasses, popoverConfig } from '../Popover';
4
4
  import { tokens } from './Combobox.tokens';
5
5
  export var StyledRoot = /*#__PURE__*/styled.div.withConfig({
6
6
  componentId: "plasma-new-hope__sc-gt7m6a-0"
7
- })(["width:100%;position:relative;& .", "{display:block;}"], popoverClasses.wrapper);
7
+ })(["width:100%;position:relative;"]);
8
8
  export var StyledCombobox = /*#__PURE__*/styled.div.withConfig({
9
9
  componentId: "plasma-new-hope__sc-gt7m6a-1"
10
10
  })(["box-sizing:border-box;background:var(", ");box-shadow:var(", ");border-radius:var(", ");width:var(", ");height:var(", ");padding:var(", ") var(", ") var(", ") var(", ");"], tokens.background, tokens.boxShadow, tokens.borderRadius, tokens.width, tokens.height, tokens.paddingTop, tokens.paddingRight, tokens.paddingBottom, tokens.paddingLeft);
@@ -62,6 +62,7 @@ export var dropdownRoot = function dropdownRoot(Root) {
62
62
  placement: getPlacements(placement),
63
63
  trigger: trigger,
64
64
  closeOnOverlayClick: closeOnOverlayClick,
65
+ closeOnBeyondTargetHover: false,
65
66
  closeOnEsc: closeOnEsc,
66
67
  isFocusTrapped: isFocusTrapped,
67
68
  frame: frame
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["target", "children", "isOpen", "trigger", "hasArrow", "frame", "className", "placement", "offset", "zIndex", "isFocusTrapped", "closeOnEsc", "preventOverflow", "usePortal", "view", "onToggle", "closeOnOverlayClick"];
2
+ var _excluded = ["target", "children", "isOpen", "trigger", "hasArrow", "frame", "className", "placement", "offset", "zIndex", "isFocusTrapped", "closeOnEsc", "preventOverflow", "usePortal", "view", "onToggle"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -30,34 +30,41 @@ export var POPOVER_PORTAL_ID = 'plasma-popover-root';
30
30
  * и вызова по клику либо ховеру.
31
31
  */
32
32
  export var popoverRoot = function popoverRoot(Root) {
33
- return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
33
+ return /*#__PURE__*/forwardRef(function (props, outerRootRef) {
34
34
  var _placement$;
35
- var target = _ref.target,
36
- children = _ref.children,
37
- isOpen = _ref.isOpen,
38
- _ref$trigger = _ref.trigger,
39
- trigger = _ref$trigger === void 0 ? 'click' : _ref$trigger,
40
- hasArrow = _ref.hasArrow,
41
- _ref$frame = _ref.frame,
42
- frame = _ref$frame === void 0 ? 'document' : _ref$frame,
43
- className = _ref.className,
44
- _ref$placement = _ref.placement,
45
- placement = _ref$placement === void 0 ? 'auto' : _ref$placement,
46
- _ref$offset = _ref.offset,
47
- offset = _ref$offset === void 0 ? [0, 0] : _ref$offset,
48
- zIndex = _ref.zIndex,
49
- _ref$isFocusTrapped = _ref.isFocusTrapped,
50
- isFocusTrapped = _ref$isFocusTrapped === void 0 ? true : _ref$isFocusTrapped,
51
- _ref$closeOnEsc = _ref.closeOnEsc,
52
- closeOnEsc = _ref$closeOnEsc === void 0 ? true : _ref$closeOnEsc,
53
- _ref$preventOverflow = _ref.preventOverflow,
54
- preventOverflow = _ref$preventOverflow === void 0 ? true : _ref$preventOverflow,
55
- _ref$usePortal = _ref.usePortal,
56
- usePortal = _ref$usePortal === void 0 ? false : _ref$usePortal,
57
- view = _ref.view,
58
- onToggle = _ref.onToggle,
59
- closeOnOverlayClick = _ref.closeOnOverlayClick,
60
- rest = _objectWithoutProperties(_ref, _excluded);
35
+ var target = props.target,
36
+ children = props.children,
37
+ isOpen = props.isOpen,
38
+ _props$trigger = props.trigger,
39
+ trigger = _props$trigger === void 0 ? 'click' : _props$trigger,
40
+ hasArrow = props.hasArrow,
41
+ _props$frame = props.frame,
42
+ frame = _props$frame === void 0 ? 'document' : _props$frame,
43
+ className = props.className,
44
+ _props$placement = props.placement,
45
+ placement = _props$placement === void 0 ? 'auto' : _props$placement,
46
+ _props$offset = props.offset,
47
+ offset = _props$offset === void 0 ? [0, 0] : _props$offset,
48
+ zIndex = props.zIndex,
49
+ _props$isFocusTrapped = props.isFocusTrapped,
50
+ isFocusTrapped = _props$isFocusTrapped === void 0 ? true : _props$isFocusTrapped,
51
+ _props$closeOnEsc = props.closeOnEsc,
52
+ closeOnEsc = _props$closeOnEsc === void 0 ? true : _props$closeOnEsc,
53
+ _props$preventOverflo = props.preventOverflow,
54
+ preventOverflow = _props$preventOverflo === void 0 ? true : _props$preventOverflo,
55
+ _props$usePortal = props.usePortal,
56
+ usePortal = _props$usePortal === void 0 ? false : _props$usePortal,
57
+ view = props.view,
58
+ onToggle = props.onToggle,
59
+ rest = _objectWithoutProperties(props, _excluded);
60
+ var closeOnOverlayClick = true;
61
+ var closeOnBeyondTargetHover = true;
62
+ if (props.trigger === 'click' && props.closeOnOverlayClick === false) {
63
+ closeOnOverlayClick = false;
64
+ }
65
+ if (props.trigger === 'hover' && props.closeOnBeyondTargetHover === false) {
66
+ closeOnBeyondTargetHover = false;
67
+ }
61
68
  var rootRef = useRef(null);
62
69
  var popoverRef = useRef(null);
63
70
  var handleRef = useForkRef(rootRef, outerRootRef);
@@ -157,7 +164,7 @@ export var popoverRoot = function popoverRoot(Root) {
157
164
  return function () {
158
165
  return document.removeEventListener('click', onDocumentClick);
159
166
  };
160
- }, [isOpen, onToggle]);
167
+ }, [closeOnOverlayClick, isOpen, onToggle]);
161
168
  useEffect(function () {
162
169
  window.addEventListener('keydown', onEscape);
163
170
  return function () {
@@ -204,19 +211,22 @@ export var popoverRoot = function popoverRoot(Root) {
204
211
  Promise.resolve().then(forceUpdate);
205
212
  }, [isOpen, children, forceUpdate]);
206
213
  return /*#__PURE__*/React.createElement(StyledWrapper, {
207
- className: classes.wrapper,
208
- onMouseEnter: onMouseEnter,
209
- onMouseLeave: onMouseLeave
214
+ className: classes.wrapper
210
215
  }, /*#__PURE__*/React.createElement(StyledRoot, {
211
216
  ref: handleRef,
212
217
  onClick: onClick,
218
+ onMouseEnter: onMouseEnter,
219
+ onMouseLeave: onMouseLeave,
213
220
  onFocus: onFocus,
214
221
  onBlur: onBlur,
215
222
  className: cx(className, classes.target)
216
223
  }, target), children && portalRef.current && /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Root, _extends({
217
224
  view: view,
218
225
  className: className
219
- }, rest), /*#__PURE__*/React.createElement(StyledPopover, _extends({}, attributes.popper, {
226
+ }, rest, {
227
+ onMouseEnter: closeOnBeyondTargetHover ? undefined : onMouseEnter,
228
+ onMouseLeave: closeOnBeyondTargetHover ? undefined : onMouseEnter
229
+ }), /*#__PURE__*/React.createElement(StyledPopover, _extends({}, attributes.popper, {
220
230
  className: classes.root,
221
231
  ref: popoverForkRef,
222
232
  style: _objectSpread(_objectSpread(_objectSpread({}, styles.popper), {
@@ -3,7 +3,7 @@ import { DEFAULT_Z_INDEX } from '../Popup/utils';
3
3
  import { classes, tokens } from './Popover.tokens';
4
4
  export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
5
5
  componentId: "plasma-new-hope__sc-tnpyex-0"
6
- })(["display:inline-block;"]);
6
+ })([""]);
7
7
  export var StyledRoot = /*#__PURE__*/styled.div.withConfig({
8
8
  componentId: "plasma-new-hope__sc-tnpyex-1"
9
9
  })(["display:inline-flex;box-sizing:border-box;position:relative;"]);
@@ -111,8 +111,7 @@ export var SelectTarget = /*#__PURE__*/forwardRef(function (_ref, ref) {
111
111
  "aria-label": label,
112
112
  className: cx(withInnerLabelUp, withHasChips, withNoFocus, selectTarget),
113
113
  onWheel: onWheel,
114
- onKeyDown: onKeyDown,
115
- stretching: "filled"
114
+ onKeyDown: onKeyDown
116
115
  }), hasText && (enumerationType === 'comma' || target === 'button-like' ? /*#__PURE__*/React.createElement(StyledText, {
117
116
  className: selectTargeText
118
117
  }, textContent) : /*#__PURE__*/React.createElement(StyledChipsWrapper, {
@@ -8,13 +8,16 @@ export var config = {
8
8
  },
9
9
  variations: {
10
10
  view: {
11
- primary: /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 85% );", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 80% );"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
12
- accent: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-accent) 85%);", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-accent) 80%);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
13
- secondary: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 85% );", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 80% );"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
14
- clear: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-clear) 95%);", ":var(--text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-clear) 90%);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
15
- positive: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-positive) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-positive) 85%);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
16
- warning: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-warning);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-warning) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-warning) 85%);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
17
- negative: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-negative);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-negative) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-negative) 85%);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive)
11
+ primary: /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
12
+ accent: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--on-dark-text-primary);", ":var(--surface-accent-hover);", ":var(--on-dark-text-primary);", ":var(--surface-accent-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
13
+ secondary: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
14
+ clear: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
15
+ positive: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":var(--surface-positive-hover);", ":var(--on-dark-text-primary);", ":var(--surface-positive-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
16
+ warning: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-warning);", ":var(--on-dark-text-primary);", ":var(--surface-warning-hover);", ":var(--on-dark-text-primary);", ":var(--surface-warning-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
17
+ negative: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-negative);", ":var(--on-dark-text-primary);", ":var(--surface-negative-hover);", ":var(--on-dark-text-primary);", ":var(--surface-negative-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
18
+ dark: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep-hover);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
19
+ black: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default-hover);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
20
+ white: /*#__PURE__*/css(["", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default);", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default-hover);", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive)
18
21
  },
19
22
  size: {
20
23
  l: /*#__PURE__*/css(["", ":3.5rem;", ":12.5rem;", ":1.5rem;", ":0.875rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":1.375rem;", ":inherit;"], buttonTokens.buttonHeight, buttonTokens.buttonWidth, buttonTokens.buttonPadding, buttonTokens.buttonRadius, buttonTokens.buttonFontFamily, buttonTokens.buttonFontSize, buttonTokens.buttonFontStyle, buttonTokens.buttonFontWeight, buttonTokens.buttonLetterSpacing, buttonTokens.buttonLineHeight, buttonTokens.buttonSpinnerSize, buttonTokens.buttonSpinnerColor),
@@ -2,13 +2,13 @@ import { css } from 'styled-components';
2
2
  import { chipTokens } from '../../../../components/Chip';
3
3
  export var config = {
4
4
  defaults: {
5
- view: 'primary',
5
+ view: 'default',
6
6
  focused: 'true',
7
7
  size: 'm'
8
8
  },
9
9
  variations: {
10
10
  view: {
11
- primary: /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 85% );", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 80% );", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);"], chipTokens.color, chipTokens.background, chipTokens.colorHover, chipTokens.backgroundHover, chipTokens.colorActive, chipTokens.backgroundActive, chipTokens.backgroundReadOnly, chipTokens.colorReadOnly, chipTokens.backgroundReadOnlyHover, chipTokens.colorReadOnlyHover),
11
+ "default": /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 85% );", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 80% );", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);"], chipTokens.color, chipTokens.background, chipTokens.colorHover, chipTokens.backgroundHover, chipTokens.colorActive, chipTokens.backgroundActive, chipTokens.backgroundReadOnly, chipTokens.colorReadOnly, chipTokens.backgroundReadOnlyHover, chipTokens.colorReadOnlyHover),
12
12
  secondary: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 85% );", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 80% );", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);"], chipTokens.color, chipTokens.background, chipTokens.colorHover, chipTokens.backgroundHover, chipTokens.colorActive, chipTokens.backgroundActive, chipTokens.backgroundReadOnly, chipTokens.colorReadOnly, chipTokens.backgroundReadOnlyHover, chipTokens.colorReadOnlyHover),
13
13
  positive: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-positive) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-positive) 85%);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);"], chipTokens.color, chipTokens.background, chipTokens.colorHover, chipTokens.backgroundHover, chipTokens.colorActive, chipTokens.backgroundActive, chipTokens.backgroundReadOnly, chipTokens.colorReadOnly, chipTokens.backgroundReadOnlyHover, chipTokens.colorReadOnlyHover)
14
14
  },
@@ -33,6 +33,12 @@ const meta: Meta<typeof Popover> = {
33
33
  },
34
34
  table: { defaultValue: { summary: true } },
35
35
  },
36
+ closeOnBeyondTargetHover: {
37
+ control: {
38
+ type: 'boolean',
39
+ },
40
+ table: { defaultValue: { summary: true } },
41
+ },
36
42
  closeOnEsc: {
37
43
  control: {
38
44
  type: 'boolean',
@@ -62,6 +68,7 @@ const meta: Meta<typeof Popover> = {
62
68
  placement: 'bottom',
63
69
  trigger: 'click',
64
70
  closeOnOverlayClick: true,
71
+ closeOnBeyondTargetHover: true,
65
72
  closeOnEsc: true,
66
73
  isFocusTrapped: true,
67
74
  skidding: 0,
@@ -8,13 +8,16 @@ export var config = {
8
8
  },
9
9
  variations: {
10
10
  view: {
11
- primary: /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 85% );", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 80% );"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
12
- accent: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-accent) 85%);", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-accent) 80%);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
13
- secondary: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 85% );", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 80% );"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
14
- clear: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-clear) 95%);", ":var(--text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-clear) 90%);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
15
- positive: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-positive) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-positive) 85%);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
16
- warning: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-warning);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-warning) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-warning) 85%);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
17
- negative: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-negative);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-negative) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-negative) 85%);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive)
11
+ primary: /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
12
+ accent: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--on-dark-text-primary);", ":var(--surface-accent-hover);", ":var(--on-dark-text-primary);", ":var(--surface-accent-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
13
+ secondary: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
14
+ clear: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
15
+ positive: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":var(--surface-positive-hover);", ":var(--on-dark-text-primary);", ":var(--surface-positive-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
16
+ warning: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-warning);", ":var(--on-dark-text-primary);", ":var(--surface-warning-hover);", ":var(--on-dark-text-primary);", ":var(--surface-warning-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
17
+ negative: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-negative);", ":var(--on-dark-text-primary);", ":var(--surface-negative-hover);", ":var(--on-dark-text-primary);", ":var(--surface-negative-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
18
+ dark: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep-hover);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
19
+ black: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default-hover);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
20
+ white: /*#__PURE__*/css(["", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default);", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default-hover);", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive)
18
21
  },
19
22
  size: {
20
23
  l: /*#__PURE__*/css(["", ":3.5rem;", ":12.5rem;", ":1.5rem;", ":0.875rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":1.375rem;", ":inherit;"], buttonTokens.buttonHeight, buttonTokens.buttonWidth, buttonTokens.buttonPadding, buttonTokens.buttonRadius, buttonTokens.buttonFontFamily, buttonTokens.buttonFontSize, buttonTokens.buttonFontStyle, buttonTokens.buttonFontWeight, buttonTokens.buttonLetterSpacing, buttonTokens.buttonLineHeight, buttonTokens.buttonSpinnerSize, buttonTokens.buttonSpinnerColor),
@@ -2,13 +2,13 @@ import { css } from 'styled-components';
2
2
  import { chipTokens } from '../../../../components/Chip';
3
3
  export var config = {
4
4
  defaults: {
5
- view: 'primary',
5
+ view: 'default',
6
6
  focused: 'true',
7
7
  size: 'm'
8
8
  },
9
9
  variations: {
10
10
  view: {
11
- primary: /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 85% );", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 80% );", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);"], chipTokens.color, chipTokens.background, chipTokens.colorHover, chipTokens.backgroundHover, chipTokens.colorActive, chipTokens.backgroundActive, chipTokens.backgroundReadOnly, chipTokens.colorReadOnly, chipTokens.backgroundReadOnlyHover, chipTokens.colorReadOnlyHover),
11
+ "default": /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 85% );", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 80% );", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);"], chipTokens.color, chipTokens.background, chipTokens.colorHover, chipTokens.backgroundHover, chipTokens.colorActive, chipTokens.backgroundActive, chipTokens.backgroundReadOnly, chipTokens.colorReadOnly, chipTokens.backgroundReadOnlyHover, chipTokens.colorReadOnlyHover),
12
12
  secondary: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 85% );", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 80% );", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);"], chipTokens.color, chipTokens.background, chipTokens.colorHover, chipTokens.backgroundHover, chipTokens.colorActive, chipTokens.backgroundActive, chipTokens.backgroundReadOnly, chipTokens.colorReadOnly, chipTokens.backgroundReadOnlyHover, chipTokens.colorReadOnlyHover),
13
13
  positive: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-positive) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-positive) 85%);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);"], chipTokens.color, chipTokens.background, chipTokens.colorHover, chipTokens.backgroundHover, chipTokens.colorActive, chipTokens.backgroundActive, chipTokens.backgroundReadOnly, chipTokens.colorReadOnly, chipTokens.backgroundReadOnlyHover, chipTokens.colorReadOnlyHover)
14
14
  },
@@ -8,13 +8,16 @@ export var config = {
8
8
  },
9
9
  variations: {
10
10
  view: {
11
- primary: /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 85% );", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 80% );"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
12
- accent: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-accent) 85%);", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-accent) 80%);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
13
- secondary: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 85% );", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 80% );"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
14
- clear: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-clear) 95%);", ":var(--text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-clear) 90%);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
15
- positive: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-positive) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-positive) 85%);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
16
- warning: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-warning);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-warning) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-warning) 85%);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
17
- negative: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-negative);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-negative) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-negative) 85%);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive)
11
+ primary: /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
12
+ accent: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--on-dark-text-primary);", ":var(--surface-accent-hover);", ":var(--on-dark-text-primary);", ":var(--surface-accent-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
13
+ secondary: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
14
+ clear: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
15
+ positive: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":var(--surface-positive-hover);", ":var(--on-dark-text-primary);", ":var(--surface-positive-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
16
+ warning: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-warning);", ":var(--on-dark-text-primary);", ":var(--surface-warning-hover);", ":var(--on-dark-text-primary);", ":var(--surface-warning-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
17
+ negative: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-negative);", ":var(--on-dark-text-primary);", ":var(--surface-negative-hover);", ":var(--on-dark-text-primary);", ":var(--surface-negative-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
18
+ dark: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep-hover);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
19
+ black: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default-hover);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
20
+ white: /*#__PURE__*/css(["", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default);", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default-hover);", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive)
18
21
  },
19
22
  size: {
20
23
  l: /*#__PURE__*/css(["", ":3.5rem;", ":12.5rem;", ":1.5rem;", ":0.875rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":1.375rem;", ":inherit;"], buttonTokens.buttonHeight, buttonTokens.buttonWidth, buttonTokens.buttonPadding, buttonTokens.buttonRadius, buttonTokens.buttonFontFamily, buttonTokens.buttonFontSize, buttonTokens.buttonFontStyle, buttonTokens.buttonFontWeight, buttonTokens.buttonLetterSpacing, buttonTokens.buttonLineHeight, buttonTokens.buttonSpinnerSize, buttonTokens.buttonSpinnerColor),
@@ -3,7 +3,6 @@
3
3
  export * from './mixins';
4
4
  export * from './engines';
5
5
  export * from './hooks';
6
- export * from './utils';
7
6
  export * from './components/Button';
8
7
  export * from './components/ButtonGroup';
9
8
  export * from './components/Chip';
@@ -43,6 +42,5 @@ export * from './components/Indicator';
43
42
  export * from './components/ButtonBase';
44
43
  export * from './components/Grid';
45
44
  export * from './components/Progress';
46
- export * from './components/Select';
47
45
  export * from './components/Divider';
48
46
  export * from './components/Toolbar';
@@ -1,35 +1,11 @@
1
1
  import React from 'react';
2
2
  import type { RootProps } from '../../engines';
3
3
  import type { ChipProps } from './Chip.types';
4
- export declare const chipRoot: (Root: RootProps<HTMLButtonElement, ChipProps>) => React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
5
- text?: string | undefined;
6
- contentLeft?: React.ReactNode;
7
- contentRight?: React.ReactNode;
8
- contentClearButton?: React.ReactNode;
9
- disabled?: boolean | undefined;
10
- readOnly?: boolean | undefined;
11
- size?: ("m" | "s" | "xs" | "l") | undefined;
12
- view?: ("secondary" | "default" | "positive") | undefined;
13
- onClear?: (() => void) | undefined;
14
- } & {
15
- children?: React.ReactNode;
16
- } & React.RefAttributes<HTMLButtonElement>>;
4
+ export declare const chipRoot: (Root: RootProps<HTMLButtonElement, ChipProps>) => React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLButtonElement>>;
17
5
  export declare const chipConfig: {
18
6
  name: string;
19
7
  tag: string;
20
- layout: (Root: RootProps<HTMLButtonElement, ChipProps>) => React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
21
- text?: string | undefined;
22
- contentLeft?: React.ReactNode;
23
- contentRight?: React.ReactNode;
24
- contentClearButton?: React.ReactNode;
25
- disabled?: boolean | undefined;
26
- readOnly?: boolean | undefined;
27
- size?: ("m" | "s" | "xs" | "l") | undefined;
28
- view?: ("secondary" | "default" | "positive") | undefined;
29
- onClear?: (() => void) | undefined;
30
- } & {
31
- children?: React.ReactNode;
32
- } & React.RefAttributes<HTMLButtonElement>>;
8
+ layout: (Root: RootProps<HTMLButtonElement, ChipProps>) => React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLButtonElement>>;
33
9
  base: import("@linaria/core").LinariaClassName;
34
10
  variations: {
35
11
  view: {
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,eAAO,MAAM,QAAQ,SAAU,UAAU,iBAAiB,EAAE,SAAS,CAAC;;;;;;;;;;;;2CAsDhE,CAAC;AAEP,eAAO,MAAM,UAAU;;;mBAxDQ,UAAU,iBAAiB,EAAE,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFrE,CAAC"}
1
+ {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,eAAO,MAAM,QAAQ,SAAU,UAAU,iBAAiB,EAAE,SAAS,CAAC,wFAsDhE,CAAC;AAEP,eAAO,MAAM,UAAU;;;mBAxDQ,UAAU,iBAAiB,EAAE,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CAoFrE,CAAC"}
@@ -1,6 +1,4 @@
1
1
  import type { ButtonHTMLAttributes, PropsWithChildren, ReactNode } from 'react';
2
- declare type ChipSize = 'l' | 'm' | 's' | 'xs';
3
- declare type ChipView = 'default' | 'secondary' | 'positive';
4
2
  declare type CustomChipProps = {
5
3
  /**
6
4
  * Текстовая надпись
@@ -35,18 +33,19 @@ declare type CustomChipProps = {
35
33
  * @default
36
34
  * m
37
35
  */
38
- size?: ChipSize;
36
+ size?: string;
39
37
  /**
40
38
  * Вид Chip
41
39
  * @default
42
- * default
40
+ * primary
43
41
  */
44
- view?: ChipView;
42
+ view?: string;
45
43
  /**
46
44
  * Коллбек при взаимодействии с элементом
47
45
  */
48
46
  onClear?: () => void;
49
47
  } & PropsWithChildren;
50
- export declare type ChipProps = ButtonHTMLAttributes<HTMLButtonElement> & CustomChipProps;
48
+ export interface ChipProps extends ButtonHTMLAttributes<HTMLButtonElement>, CustomChipProps {
49
+ }
51
50
  export {};
52
51
  //# sourceMappingURL=Chip.types.d.ts.map