@salutejs/plasma-new-hope 0.324.0-canary.1985.15205350468.0 → 0.324.1-canary.1963.15248654504.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +1 -1
  2. package/cjs/components/Combobox/ComboboxNew/Combobox.css +1 -1
  3. package/cjs/components/DatePicker/RangeDate/RangeDate.css +1 -1
  4. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +1 -1
  5. package/cjs/components/DatePicker/SingleDate/SingleDate.css +1 -1
  6. package/cjs/components/Note/Note.css +35 -6
  7. package/cjs/components/Note/Note.js +17 -3
  8. package/cjs/components/Note/Note.js.map +1 -1
  9. package/cjs/components/Note/Note.styles.js +25 -2
  10. package/cjs/components/Note/Note.styles.js.map +1 -1
  11. package/cjs/components/Note/{Note.styles_178qpj9.css → Note.styles_thpfhk.css} +2 -1
  12. package/cjs/components/Note/Note.tokens.js +9 -1
  13. package/cjs/components/Note/Note.tokens.js.map +1 -1
  14. package/cjs/components/NumberFormat/NumberFormat.js +3 -2
  15. package/cjs/components/NumberFormat/NumberFormat.js.map +1 -1
  16. package/cjs/components/Pagination/Pagination.css +10 -10
  17. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +10 -10
  18. package/cjs/components/PaginationDots/PaginationDot.js +59 -0
  19. package/cjs/components/PaginationDots/PaginationDot.js.map +1 -0
  20. package/cjs/components/PaginationDots/PaginationDot_baul9c.css +2 -0
  21. package/cjs/components/PaginationDots/PaginationDots.js +34 -0
  22. package/cjs/components/PaginationDots/PaginationDots.js.map +1 -0
  23. package/cjs/components/PaginationDots/PaginationDots_fm2ha5.css +2 -0
  24. package/cjs/components/PaginationDots/SmartPaginationDots.css +5 -0
  25. package/cjs/components/PaginationDots/SmartPaginationDots.js +47 -0
  26. package/cjs/components/PaginationDots/SmartPaginationDots.js.map +1 -0
  27. package/cjs/components/PaginationDots/usePaginationDots.js +40 -0
  28. package/cjs/components/PaginationDots/usePaginationDots.js.map +1 -0
  29. package/cjs/components/Range/Range.css +1 -1
  30. package/cjs/components/Select/Select.css +10 -10
  31. package/cjs/components/Select/Select.tokens.js +23 -0
  32. package/cjs/components/Select/Select.tokens.js.map +1 -1
  33. package/cjs/components/Select/ui/Inner/Inner.css +10 -10
  34. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +3 -1
  35. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  36. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +21 -12
  37. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  38. package/{es/components/Select/ui/Inner/ui/Item/Item.styles_1gk72bp.css → cjs/components/Select/ui/Inner/ui/Item/Item.styles_ir8fmi.css} +2 -2
  39. package/cjs/components/Select/ui/Target/Target.css +1 -1
  40. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +1 -1
  41. package/cjs/components/Select/ui/VirtualList/VirtualList.css +10 -10
  42. package/cjs/components/Slider/Slider.css +1 -1
  43. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +1 -1
  44. package/cjs/components/Table/Table.css +10 -10
  45. package/cjs/components/Table/ui/Cell/Cell.css +10 -10
  46. package/cjs/components/Table/ui/EditableCell/EditableCell.css +10 -10
  47. package/cjs/components/Table/ui/HeadCell/HeadCell.css +10 -10
  48. package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.css +10 -10
  49. package/cjs/components/TextField/TextField.js +1 -1
  50. package/cjs/components/TextField/TextField.js.map +1 -1
  51. package/cjs/components/TextField/TextField.tokens.js +2 -1
  52. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  53. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  54. package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -1
  55. package/cjs/components/TextField/variations/_label-placement/base_18kkeb9.css +1 -0
  56. package/cjs/index.css +24 -17
  57. package/cjs/index.js +6 -0
  58. package/cjs/index.js.map +1 -1
  59. package/emotion/cjs/components/Note/Note.js +17 -3
  60. package/emotion/cjs/components/Note/Note.styles.js +27 -15
  61. package/emotion/cjs/components/Note/Note.tokens.js +9 -1
  62. package/emotion/cjs/components/NumberFormat/NumberFormat.js +3 -2
  63. package/emotion/cjs/components/PaginationDots/PaginationDot.js +35 -0
  64. package/emotion/cjs/components/PaginationDots/PaginationDots.js +35 -0
  65. package/emotion/cjs/components/PaginationDots/SmartPaginationDots.js +43 -0
  66. package/emotion/cjs/components/PaginationDots/index.js +26 -0
  67. package/emotion/cjs/components/PaginationDots/usePaginationDots.js +38 -0
  68. package/emotion/cjs/components/Select/Select.tokens.js +2 -0
  69. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +3 -1
  70. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +31 -28
  71. package/emotion/cjs/components/TextField/TextField.js +2 -2
  72. package/emotion/cjs/components/TextField/TextField.tokens.js +2 -1
  73. package/emotion/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  74. package/emotion/cjs/examples/plasma_b2c/components/Note/Note.config.js +9 -9
  75. package/emotion/cjs/examples/plasma_b2c/components/Note/Note.stories.tsx +1 -0
  76. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.config.js +24 -24
  77. package/emotion/cjs/examples/plasma_web/components/Note/Note.config.js +9 -9
  78. package/emotion/cjs/examples/plasma_web/components/Note/Note.stories.tsx +1 -0
  79. package/emotion/cjs/examples/plasma_web/components/Select/Select.config.js +24 -24
  80. package/emotion/cjs/index.js +11 -0
  81. package/emotion/es/components/Note/Note.js +18 -4
  82. package/emotion/es/components/Note/Note.styles.js +26 -14
  83. package/emotion/es/components/Note/Note.tokens.js +9 -1
  84. package/emotion/es/components/NumberFormat/NumberFormat.js +3 -2
  85. package/emotion/es/components/PaginationDots/PaginationDot.js +28 -0
  86. package/emotion/es/components/PaginationDots/PaginationDots.js +28 -0
  87. package/emotion/es/components/PaginationDots/SmartPaginationDots.js +36 -0
  88. package/emotion/es/components/PaginationDots/index.js +3 -0
  89. package/emotion/es/components/PaginationDots/usePaginationDots.js +32 -0
  90. package/emotion/es/components/Select/Select.tokens.js +2 -0
  91. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +3 -1
  92. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +31 -28
  93. package/emotion/es/components/TextField/TextField.js +2 -2
  94. package/emotion/es/components/TextField/TextField.tokens.js +2 -1
  95. package/emotion/es/components/TextField/variations/_label-placement/base.js +1 -1
  96. package/emotion/es/examples/plasma_b2c/components/Note/Note.config.js +9 -9
  97. package/emotion/es/examples/plasma_b2c/components/Note/Note.stories.tsx +1 -0
  98. package/emotion/es/examples/plasma_b2c/components/Select/Select.config.js +24 -24
  99. package/emotion/es/examples/plasma_web/components/Note/Note.config.js +9 -9
  100. package/emotion/es/examples/plasma_web/components/Note/Note.stories.tsx +1 -0
  101. package/emotion/es/examples/plasma_web/components/Select/Select.config.js +24 -24
  102. package/emotion/es/index.js +2 -1
  103. package/es/components/Autocomplete/Autocomplete.css +1 -1
  104. package/es/components/Combobox/ComboboxNew/Combobox.css +1 -1
  105. package/es/components/DatePicker/RangeDate/RangeDate.css +1 -1
  106. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +1 -1
  107. package/es/components/DatePicker/SingleDate/SingleDate.css +1 -1
  108. package/es/components/Note/Note.css +35 -6
  109. package/es/components/Note/Note.js +18 -4
  110. package/es/components/Note/Note.js.map +1 -1
  111. package/es/components/Note/Note.styles.js +25 -3
  112. package/es/components/Note/Note.styles.js.map +1 -1
  113. package/es/components/Note/{Note.styles_178qpj9.css → Note.styles_thpfhk.css} +2 -1
  114. package/es/components/Note/Note.tokens.js +9 -1
  115. package/es/components/Note/Note.tokens.js.map +1 -1
  116. package/es/components/NumberFormat/NumberFormat.js +3 -2
  117. package/es/components/NumberFormat/NumberFormat.js.map +1 -1
  118. package/es/components/Pagination/Pagination.css +10 -10
  119. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +10 -10
  120. package/es/components/PaginationDots/PaginationDot.js +54 -0
  121. package/es/components/PaginationDots/PaginationDot.js.map +1 -0
  122. package/es/components/PaginationDots/PaginationDot_baul9c.css +2 -0
  123. package/es/components/PaginationDots/PaginationDots.js +29 -0
  124. package/es/components/PaginationDots/PaginationDots.js.map +1 -0
  125. package/es/components/PaginationDots/PaginationDots_fm2ha5.css +2 -0
  126. package/es/components/PaginationDots/SmartPaginationDots.css +5 -0
  127. package/es/components/PaginationDots/SmartPaginationDots.js +39 -0
  128. package/es/components/PaginationDots/SmartPaginationDots.js.map +1 -0
  129. package/es/components/PaginationDots/usePaginationDots.js +36 -0
  130. package/es/components/PaginationDots/usePaginationDots.js.map +1 -0
  131. package/es/components/Range/Range.css +1 -1
  132. package/es/components/Select/Select.css +10 -10
  133. package/es/components/Select/Select.tokens.js +23 -1
  134. package/es/components/Select/Select.tokens.js.map +1 -1
  135. package/es/components/Select/ui/Inner/Inner.css +10 -10
  136. package/es/components/Select/ui/Inner/ui/Item/Item.js +3 -1
  137. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  138. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +22 -13
  139. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  140. package/{cjs/components/Select/ui/Inner/ui/Item/Item.styles_1gk72bp.css → es/components/Select/ui/Inner/ui/Item/Item.styles_ir8fmi.css} +2 -2
  141. package/es/components/Select/ui/Target/Target.css +1 -1
  142. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +1 -1
  143. package/es/components/Select/ui/VirtualList/VirtualList.css +10 -10
  144. package/es/components/Slider/Slider.css +1 -1
  145. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +1 -1
  146. package/es/components/Table/Table.css +10 -10
  147. package/es/components/Table/ui/Cell/Cell.css +10 -10
  148. package/es/components/Table/ui/EditableCell/EditableCell.css +10 -10
  149. package/es/components/Table/ui/HeadCell/HeadCell.css +10 -10
  150. package/es/components/Table/ui/HeadCell/ui/Filter/Filter.css +10 -10
  151. package/es/components/TextField/TextField.js +1 -1
  152. package/es/components/TextField/TextField.js.map +1 -1
  153. package/es/components/TextField/TextField.tokens.js +2 -1
  154. package/es/components/TextField/TextField.tokens.js.map +1 -1
  155. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  156. package/es/components/TextField/variations/_label-placement/base.js.map +1 -1
  157. package/es/components/TextField/variations/_label-placement/base_18kkeb9.css +1 -0
  158. package/es/index.css +24 -17
  159. package/es/index.js +3 -0
  160. package/es/index.js.map +1 -1
  161. package/package.json +4 -4
  162. package/styled-components/cjs/components/Note/Note.js +17 -3
  163. package/styled-components/cjs/components/Note/Note.styles.js +14 -3
  164. package/styled-components/cjs/components/Note/Note.tokens.js +9 -1
  165. package/styled-components/cjs/components/NumberFormat/NumberFormat.js +3 -2
  166. package/styled-components/cjs/components/PaginationDots/PaginationDot.js +33 -0
  167. package/styled-components/cjs/components/PaginationDots/PaginationDots.js +24 -0
  168. package/styled-components/cjs/components/PaginationDots/SmartPaginationDots.js +43 -0
  169. package/styled-components/cjs/components/PaginationDots/index.js +26 -0
  170. package/styled-components/cjs/components/PaginationDots/usePaginationDots.js +38 -0
  171. package/styled-components/cjs/components/Select/Select.tokens.js +2 -0
  172. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +3 -1
  173. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +21 -18
  174. package/styled-components/cjs/components/TextField/TextField.js +1 -1
  175. package/styled-components/cjs/components/TextField/TextField.tokens.js +2 -1
  176. package/styled-components/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  177. package/styled-components/cjs/examples/plasma_b2c/components/Note/Note.config.js +4 -4
  178. package/styled-components/cjs/examples/plasma_b2c/components/Note/Note.stories.tsx +1 -0
  179. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.config.js +10 -10
  180. package/styled-components/cjs/examples/plasma_web/components/Note/Note.config.js +4 -4
  181. package/styled-components/cjs/examples/plasma_web/components/Note/Note.stories.tsx +1 -0
  182. package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +10 -10
  183. package/styled-components/cjs/index.js +11 -0
  184. package/styled-components/es/components/Note/Note.js +18 -4
  185. package/styled-components/es/components/Note/Note.styles.js +13 -2
  186. package/styled-components/es/components/Note/Note.tokens.js +9 -1
  187. package/styled-components/es/components/NumberFormat/NumberFormat.js +3 -2
  188. package/styled-components/es/components/PaginationDots/PaginationDot.js +26 -0
  189. package/styled-components/es/components/PaginationDots/PaginationDots.js +18 -0
  190. package/styled-components/es/components/PaginationDots/SmartPaginationDots.js +36 -0
  191. package/styled-components/es/components/PaginationDots/index.js +3 -0
  192. package/styled-components/es/components/PaginationDots/usePaginationDots.js +32 -0
  193. package/styled-components/es/components/Select/Select.tokens.js +2 -0
  194. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +3 -1
  195. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +21 -18
  196. package/styled-components/es/components/TextField/TextField.js +1 -1
  197. package/styled-components/es/components/TextField/TextField.tokens.js +2 -1
  198. package/styled-components/es/components/TextField/variations/_label-placement/base.js +1 -1
  199. package/styled-components/es/examples/plasma_b2c/components/Note/Note.config.js +4 -4
  200. package/styled-components/es/examples/plasma_b2c/components/Note/Note.stories.tsx +1 -0
  201. package/styled-components/es/examples/plasma_b2c/components/Select/Select.config.js +10 -10
  202. package/styled-components/es/examples/plasma_web/components/Note/Note.config.js +4 -4
  203. package/styled-components/es/examples/plasma_web/components/Note/Note.stories.tsx +1 -0
  204. package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +10 -10
  205. package/styled-components/es/index.js +2 -1
  206. package/types/components/Note/Note.d.ts +4 -0
  207. package/types/components/Note/Note.d.ts.map +1 -1
  208. package/types/components/Note/Note.styles.d.ts +46 -1
  209. package/types/components/Note/Note.styles.d.ts.map +1 -1
  210. package/types/components/Note/Note.tokens.d.ts +8 -0
  211. package/types/components/Note/Note.tokens.d.ts.map +1 -1
  212. package/types/components/Note/Note.types.d.ts +8 -0
  213. package/types/components/Note/Note.types.d.ts.map +1 -1
  214. package/types/components/PaginationDots/PaginationDot.d.ts +21 -0
  215. package/types/components/PaginationDots/PaginationDot.d.ts.map +1 -0
  216. package/types/components/PaginationDots/PaginationDots.d.ts +15 -0
  217. package/types/components/PaginationDots/PaginationDots.d.ts.map +1 -0
  218. package/types/components/PaginationDots/SmartPaginationDots.d.ts +15 -0
  219. package/types/components/PaginationDots/SmartPaginationDots.d.ts.map +1 -0
  220. package/types/components/PaginationDots/index.d.ts +6 -0
  221. package/types/components/PaginationDots/index.d.ts.map +1 -0
  222. package/types/components/PaginationDots/usePaginationDots.d.ts +14 -0
  223. package/types/components/PaginationDots/usePaginationDots.d.ts.map +1 -0
  224. package/types/components/Select/Select.tokens.d.ts +2 -0
  225. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  226. package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts +3 -1
  227. package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -1
  228. package/types/components/TextField/TextField.d.ts.map +1 -1
  229. package/types/components/TextField/TextField.tokens.d.ts +1 -0
  230. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  231. package/types/index.d.ts +1 -0
  232. package/types/index.d.ts.map +1 -1
  233. package/cjs/components/TextField/variations/_label-placement/base_jfnl8i.css +0 -1
  234. package/es/components/TextField/variations/_label-placement/base_jfnl8i.css +0 -1
@@ -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 = ["className", "style", "title", "text", "contentBefore", "contentBeforeSizing", "size", "view", "stretch", "width", "height"];
2
+ var _excluded = ["className", "style", "title", "text", "contentBefore", "contentBeforeSizing", "size", "view", "stretch", "width", "height", "hasClose", "onCloseButtonClick"];
3
3
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, 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; }
@@ -17,9 +17,10 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
17
17
  import React, { forwardRef, useEffect, useLayoutEffect, useRef, useState } from 'react';
18
18
  import { useResizeObserver } from '@salutejs/plasma-core';
19
19
  import { canUseDOM, cx, getSizeValueFromProp } from "../../utils";
20
+ import { IconCrossThin } from "../_Icon/Icons/IconCrossThin";
20
21
  import { base as viewCSS } from "./variations/_view/base";
21
22
  import { base as sizeCSS } from "./variations/_size/base";
22
- import { base, ContentBefore, ContentWrapper, Text, TextHelper, Title, TitleHelper } from "./Note.styles";
23
+ import { base, CloseIconWrapper, ContentBefore, ContentWrapper, Text, TextHelper, Title, TitleHelper } from "./Note.styles";
23
24
  import { classes, privateTokens, tokens } from "./Note.tokens";
24
25
  export var noteRoot = function noteRoot(Root) {
25
26
  return /*#__PURE__*/forwardRef(function (_ref, outerRef) {
@@ -35,6 +36,8 @@ export var noteRoot = function noteRoot(Root) {
35
36
  stretch = _ref.stretch,
36
37
  width = _ref.width,
37
38
  height = _ref.height,
39
+ hasClose = _ref.hasClose,
40
+ onCloseButtonClick = _ref.onCloseButtonClick,
38
41
  rest = _objectWithoutProperties(_ref, _excluded);
39
42
  var _useState = useState(text),
40
43
  _useState2 = _slicedToArray(_useState, 2),
@@ -100,11 +103,22 @@ export var noteRoot = function noteRoot(Root) {
100
103
  ref: contentBeforeRef
101
104
  }, contentBefore), /*#__PURE__*/React.createElement(ContentWrapper, {
102
105
  ref: contentWrapperRef
103
- }, title && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Title, null, title), /*#__PURE__*/React.createElement(TitleHelper, {
106
+ }, title && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Title, {
107
+ hasClose: hasClose
108
+ }, title), /*#__PURE__*/React.createElement(TitleHelper, {
104
109
  ref: titleHelperRef
105
110
  }, "C")), innerText && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, null, innerText, /*#__PURE__*/React.createElement(TextHelper, {
106
111
  ref: textRenderHelperRef
107
- }, "C")))));
112
+ }, "C")))), hasClose && /*#__PURE__*/React.createElement(CloseIconWrapper, {
113
+ view: "clear",
114
+ size: "s",
115
+ onClick: onCloseButtonClick,
116
+ className: classes.closeIcon
117
+ }, /*#__PURE__*/React.createElement(IconCrossThin, {
118
+ size: "s",
119
+ sizeCustomProperty: tokens.closeIconSize,
120
+ color: "inherit"
121
+ })));
108
122
  });
109
123
  };
110
124
  export var noteConfig = {
@@ -1,5 +1,10 @@
1
1
  import styled from 'styled-components';
2
2
  import { css } from 'styled-components';
3
+ import { component, mergeConfig } from "../../engines";
4
+ import { buttonConfig } from "../Button";
5
+ import { tokens } from "./Note.tokens";
6
+ var mergedButtonConfig = /*#__PURE__*/mergeConfig(buttonConfig);
7
+ var Button = /*#__PURE__*/component(mergedButtonConfig);
3
8
  export var base = /*#__PURE__*/css(["position:relative;display:flex;box-sizing:border-box;"]);
4
9
  export var ContentBefore = /*#__PURE__*/styled.div.withConfig({
5
10
  componentId: "plasma-new-hope__sc-2xk8rv-0"
@@ -9,7 +14,10 @@ export var ContentWrapper = /*#__PURE__*/styled.div.withConfig({
9
14
  })(["display:flex;flex-direction:column;box-sizing:border-box;"]);
10
15
  export var Title = /*#__PURE__*/styled.div.withConfig({
11
16
  componentId: "plasma-new-hope__sc-2xk8rv-2"
12
- })([""]);
17
+ })(["padding-right:", ";box-sizing:border-box;"], function (_ref) {
18
+ var hasClose = _ref.hasClose;
19
+ return hasClose ? "var(".concat(tokens.titlePaddingRight, ")") : 0;
20
+ });
13
21
  export var TitleHelper = /*#__PURE__*/styled.div.withConfig({
14
22
  componentId: "plasma-new-hope__sc-2xk8rv-3"
15
23
  })(["visibility:hidden;position:absolute;z-index:-9999;opacity:0;"]);
@@ -18,4 +26,7 @@ export var Text = /*#__PURE__*/styled.span.withConfig({
18
26
  })(["display:block;position:relative;"]);
19
27
  export var TextHelper = /*#__PURE__*/styled.span.withConfig({
20
28
  componentId: "plasma-new-hope__sc-2xk8rv-5"
21
- })(["visibility:hidden;position:absolute;z-index:-9999;opacity:0;top:0;left:0;"]);
29
+ })(["visibility:hidden;position:absolute;z-index:-9999;opacity:0;top:0;left:0;"]);
30
+ export var CloseIconWrapper = /*#__PURE__*/styled(Button).withConfig({
31
+ componentId: "plasma-new-hope__sc-2xk8rv-6"
32
+ })(["position:absolute;right:var(", ");top:var(", ");width:var(", ");height:var(", ");color:var(", ");:hover{color:var(", ");}"], tokens.closeIconRight, tokens.closeIconTop, tokens.closeIconButtonSize, tokens.closeIconButtonSize, tokens.closeIconColor, tokens.closeIconColorOnHover);
@@ -1,5 +1,6 @@
1
1
  export var classes = {
2
2
  stretch: 'note-stretch',
3
+ closeIcon: 'note-close-icon',
3
4
  contentAlignCenter: 'note-content-align-center'
4
5
  };
5
6
  export var privateTokens = {
@@ -26,10 +27,17 @@ export var tokens = {
26
27
  titleFontWeight: '--plasma-note-title-font-weight',
27
28
  titleLetterSpacing: '--plasma-note-title-letter-spacing',
28
29
  titleLineHeight: '--plasma-note-title-line-height',
30
+ titlePaddingRight: '--plasma-note-title-padding-right',
29
31
  textFontFamily: '--plasma-note-text-font-family',
30
32
  textFontSize: '--plasma-note-text-font-size',
31
33
  textFontStyle: '--plasma-note-text-font-style',
32
34
  textFontWeight: '--plasma-note-text-font-weight',
33
35
  textLetterSpacing: '--plasma-note-text-letter-spacing',
34
- textLineHeight: '--plasma-note-text-line-height'
36
+ textLineHeight: '--plasma-note-text-line-height',
37
+ closeIconTop: '--plasma-note-close-icon-top',
38
+ closeIconRight: '--plasma-note-close-icon-right',
39
+ closeIconColor: '--plasma-note-close-icon-color',
40
+ closeIconColorOnHover: '--plasma-note-close-icon-color-on-hover',
41
+ closeIconSize: '--plasma-note-close-icon-size',
42
+ closeIconButtonSize: '--plasma-note-close-icon-button-size'
35
43
  };
@@ -20,11 +20,12 @@ export var composeNumberFormat = function composeNumberFormat(InputComponent) {
20
20
  onChange(changeEvent, values);
21
21
  }
22
22
  };
23
- var InputComponentWithoutEllipsis = function InputComponentWithoutEllipsis(props) {
23
+ var InputComponentWithoutEllipsis = /*#__PURE__*/forwardRef(function (props, ref) {
24
24
  return /*#__PURE__*/React.createElement(InputComponent, _extends({
25
+ ref: ref,
25
26
  _textEllipsisDisable: true
26
27
  }, props));
27
- };
28
+ });
28
29
  return /*#__PURE__*/React.createElement(NumericFormat, _extends({
29
30
  thousandSeparator: thousandSeparator,
30
31
  decimalScale: decimalScale,
@@ -0,0 +1,26 @@
1
+ import styled from 'styled-components';
2
+ /**
3
+ * Элемент пагинации точками.
4
+ * Стилизованный компонент, обладающий всеми свойствами ``div``.
5
+ */
6
+ export var DotBase = /*#__PURE__*/styled.li.withConfig({
7
+ componentId: "plasma-new-hope__sc-1lu8gfj-0"
8
+ })(["width:", ";height:0.375rem;border-radius:1rem;background:", ";transition:width 0.1s ease-in-out,background 0.3s ease-in-out;font-size:0.5rem;& + &{margin-left:0.375rem;}&:focus{outline:0 none;}"], function (_ref) {
9
+ var isActive = _ref.isActive;
10
+ return isActive ? '1.75rem' : '0.375rem';
11
+ }, function (_ref2) {
12
+ var isActive = _ref2.isActive;
13
+ return isActive ? 'var(--text-primary)' : 'var(--surface-transparent-tertiary)';
14
+ });
15
+
16
+ /**
17
+ * Элемент пагинации точками.
18
+ * Стилизованный компонент, обладающий всеми свойствами ``div``.
19
+ * @deprecated
20
+ */
21
+ export var PaginationDot = /*#__PURE__*/styled(DotBase).withConfig({
22
+ componentId: "plasma-new-hope__sc-1lu8gfj-1"
23
+ })(["cursor:pointer;background:", ";&:hover{background:var(--text-accent);}"], function (_ref3) {
24
+ var isActive = _ref3.isActive;
25
+ return isActive ? 'var(--text-accent)' : 'var(--surface-transparent-tertiary)';
26
+ });
@@ -0,0 +1,18 @@
1
+ import styled from 'styled-components';
2
+
3
+ /**
4
+ * Оборачивающий компонент для пагинации точками.
5
+ * Стилизованный компонент, обладающий всеми свойствами ``div``.
6
+ */
7
+ export var DotsBase = /*#__PURE__*/styled.ul.withConfig({
8
+ componentId: "plasma-new-hope__sc-1ritf0l-0"
9
+ })(["display:flex;flex-wrap:wrap;align-self:center;align-items:center;margin:0;padding:0;list-style:none;"]);
10
+
11
+ /**
12
+ * Оборачивающий компонент для пагинации точками.
13
+ * Стилизованный компонент, обладающий всеми свойствами ``div``.
14
+ * @deprecated
15
+ */
16
+ export var PaginationDots = /*#__PURE__*/styled(DotsBase).withConfig({
17
+ componentId: "plasma-new-hope__sc-1ritf0l-1"
18
+ })([""]);
@@ -0,0 +1,36 @@
1
+ var _excluded = ["items", "index", "visibleItems", "onIndexChange"];
2
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
+ import React from 'react';
5
+ import { usePaginationDots } from "./usePaginationDots";
6
+ import { PaginationDots } from "./PaginationDots";
7
+ import { PaginationDot } from "./PaginationDot";
8
+ /**
9
+ * Компонент для отображения точек пагинации
10
+ * с возможностью ограничения количества видимых элементов.
11
+ * @deprecated
12
+ */
13
+ export var SmartPaginationDots = function SmartPaginationDots(_ref) {
14
+ var items = _ref.items,
15
+ index = _ref.index,
16
+ visibleItems = _ref.visibleItems,
17
+ onIndexChange = _ref.onIndexChange,
18
+ rest = _objectWithoutProperties(_ref, _excluded);
19
+ var _usePaginationDots = usePaginationDots({
20
+ items: items,
21
+ index: index,
22
+ visibleItems: visibleItems
23
+ }),
24
+ sliced = _usePaginationDots.sliced,
25
+ activeId = _usePaginationDots.activeId;
26
+ return /*#__PURE__*/React.createElement(PaginationDots, rest, sliced.map(function (_ref2, i) {
27
+ var id = _ref2.id;
28
+ return /*#__PURE__*/React.createElement(PaginationDot, {
29
+ key: "item:".concat(i),
30
+ isActive: id === activeId,
31
+ onClick: function onClick() {
32
+ return onIndexChange === null || onIndexChange === void 0 ? void 0 : onIndexChange(i);
33
+ }
34
+ });
35
+ }));
36
+ };
@@ -0,0 +1,3 @@
1
+ export { SmartPaginationDots } from "./SmartPaginationDots";
2
+ export { PaginationDots } from "./PaginationDots";
3
+ export { PaginationDot } from "./PaginationDot";
@@ -0,0 +1,32 @@
1
+ import { useRef } from 'react';
2
+ export var usePaginationDots = function usePaginationDots(_ref) {
3
+ var items = _ref.items,
4
+ index = _ref.index,
5
+ _ref$visibleItems = _ref.visibleItems,
6
+ visibleItems = _ref$visibleItems === void 0 ? 7 : _ref$visibleItems;
7
+ var activeId = items[index].id;
8
+ var prevIndex = useRef(null);
9
+ var direction = 0;
10
+ if (prevIndex.current !== null) {
11
+ direction = index > prevIndex.current ? 1 : -1;
12
+ }
13
+ var start;
14
+ var end;
15
+ if (direction === 1) {
16
+ end = Math.min(Math.max(index + 2, visibleItems), items.length);
17
+ start = Math.max(end - visibleItems, 0);
18
+ } else if (direction === -1) {
19
+ start = Math.min(Math.max(index - 1, 0), items.length - visibleItems);
20
+ end = start + visibleItems;
21
+ } else {
22
+ start = Math.max(index - Math.floor(visibleItems / 2), 0);
23
+ end = Math.min(start + visibleItems, items.length);
24
+ start = end - visibleItems;
25
+ }
26
+ var sliced = items.slice(start, end);
27
+ prevIndex.current = index;
28
+ return {
29
+ sliced: sliced,
30
+ activeId: activeId
31
+ };
32
+ };
@@ -30,6 +30,8 @@ export var tokens = {
30
30
  itemIconSizeTight: '--plasma-select-item-icon-size-tight',
31
31
  itemIconMargin: '--plasma-select-item-icon-margin',
32
32
  itemBackgroundHover: '--plasma-select-item-background-hover',
33
+ itemDisabledOpacity: '--plasma-select-item-disabled-opacity',
34
+ itemDisabledColor: '--plasma-select-item-disabled-color',
33
35
  cellPadding: '--plasma-select-cell-padding',
34
36
  cellPaddingLeftContent: '--plasma-select-cell-padding-left-content',
35
37
  cellPaddingContent: '--plasma-select-cell-padding-content',
@@ -94,7 +94,9 @@ export var Item = function Item(_ref) {
94
94
  }))), !multiselect && checked.get(item.value) === 'done' && /*#__PURE__*/React.createElement(StyledIconDone, {
95
95
  size: sizeToIconSize(size, variant),
96
96
  color: "inherit"
97
- })), renderItem ? /*#__PURE__*/React.createElement(StyledText, null, renderItem(item)) : /*#__PURE__*/React.createElement(StyledWrapper, null, /*#__PURE__*/React.createElement(StyledCell, {
97
+ })), renderItem ? /*#__PURE__*/React.createElement(StyledText, null, renderItem(item)) : /*#__PURE__*/React.createElement(StyledWrapper, {
98
+ disabled: itemDisabled
99
+ }, /*#__PURE__*/React.createElement(StyledCell, {
98
100
  contentLeft: contentLeft,
99
101
  contentRight: contentRight
100
102
  // TODO: #1548
@@ -14,7 +14,10 @@ var mergedIndicatorConfig = /*#__PURE__*/mergeConfig(indicatorConfig);
14
14
  var Indicator = /*#__PURE__*/component(mergedIndicatorConfig);
15
15
  export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
16
16
  componentId: "plasma-new-hope__sc-fr2h0y-0"
17
- })(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");width:100%;& div.cell-content,& div.cell-textbox{flex:1;}& div.cell-textbox-title{position:relative;}& div.cell-textbox-title:before{content:'&nbsp;';visibility:hidden;}& div.cell-textbox-title span{position:absolute;left:0;right:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}"], cellTokens.cellTitleColor, constants.cellTitleColor, cellTokens.cellBackgroundColor, constants.cellBackgroundColor, cellTokens.cellPadding, tokens.cellPadding, cellTokens.cellPaddingLeftContent, tokens.cellPaddingLeftContent, cellTokens.cellPaddingContent, tokens.cellPaddingContent, cellTokens.cellPaddingRightContent, tokens.cellPaddingRightContent, cellTokens.cellTextboxGap, tokens.cellTextboxGap, cellTokens.cellGap, tokens.cellGap, cellTokens.cellTitleFontFamily, tokens.cellTitleFontFamily, cellTokens.cellTitleFontSize, tokens.cellTitleFontSize, cellTokens.cellTitleFontStyle, tokens.cellTitleFontStyle, cellTokens.cellTitleFontWeight, tokens.cellTitleFontWeight, cellTokens.cellTitleLetterSpacing, tokens.cellTitleLetterSpacing, cellTokens.cellTitleLineHeight, tokens.cellTitleLineHeight);
17
+ })(["", ":", ";", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");width:100%;& div.cell-content,& div.cell-textbox{flex:1;}& div.cell-textbox-title{position:relative;}& div.cell-textbox-title:before{content:'&nbsp;';visibility:hidden;}& div.cell-textbox-title span{position:absolute;left:0;right:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}"], cellTokens.cellTitleColor, function (_ref) {
18
+ var disabled = _ref.disabled;
19
+ return disabled ? "var(".concat(tokens.itemDisabledColor, ")") : "var(".concat(constants.cellTitleColor, ")");
20
+ }, cellTokens.cellBackgroundColor, constants.cellBackgroundColor, cellTokens.cellPadding, tokens.cellPadding, cellTokens.cellPaddingLeftContent, tokens.cellPaddingLeftContent, cellTokens.cellPaddingContent, tokens.cellPaddingContent, cellTokens.cellPaddingRightContent, tokens.cellPaddingRightContent, cellTokens.cellTextboxGap, tokens.cellTextboxGap, cellTokens.cellGap, tokens.cellGap, cellTokens.cellTitleFontFamily, tokens.cellTitleFontFamily, cellTokens.cellTitleFontSize, tokens.cellTitleFontSize, cellTokens.cellTitleFontStyle, tokens.cellTitleFontStyle, cellTokens.cellTitleFontWeight, tokens.cellTitleFontWeight, cellTokens.cellTitleLetterSpacing, tokens.cellTitleLetterSpacing, cellTokens.cellTitleLineHeight, tokens.cellTitleLineHeight);
18
21
  export var StyledCell = /*#__PURE__*/styled(Cell).withConfig({
19
22
  componentId: "plasma-new-hope__sc-fr2h0y-1"
20
23
  })([""]);
@@ -32,47 +35,47 @@ export var sizeMap = {
32
35
  };
33
36
  export var StyledArrow = /*#__PURE__*/styled(IconDisclosureRightCentered).withConfig({
34
37
  componentId: "plasma-new-hope__sc-fr2h0y-4"
35
- })(["width:", ";height:", ";"], function (_ref) {
36
- var _ref$size = _ref.size,
37
- size = _ref$size === void 0 ? 'xs' : _ref$size;
38
- return "var(".concat(tokens.disclosureIconSize, ", ").concat(sizeMap[size], ")");
39
- }, function (_ref2) {
38
+ })(["width:", ";height:", ";"], function (_ref2) {
40
39
  var _ref2$size = _ref2.size,
41
40
  size = _ref2$size === void 0 ? 'xs' : _ref2$size;
42
41
  return "var(".concat(tokens.disclosureIconSize, ", ").concat(sizeMap[size], ")");
43
- });
44
- export var StyledIconDone = /*#__PURE__*/styled(IconDone).withConfig({
45
- componentId: "plasma-new-hope__sc-fr2h0y-5"
46
- })(["width:", ";height:", ";"], function (_ref3) {
42
+ }, function (_ref3) {
47
43
  var _ref3$size = _ref3.size,
48
44
  size = _ref3$size === void 0 ? 'xs' : _ref3$size;
49
45
  return "var(".concat(tokens.disclosureIconSize, ", ").concat(sizeMap[size], ")");
50
- }, function (_ref4) {
46
+ });
47
+ export var StyledIconDone = /*#__PURE__*/styled(IconDone).withConfig({
48
+ componentId: "plasma-new-hope__sc-fr2h0y-5"
49
+ })(["width:", ";height:", ";"], function (_ref4) {
51
50
  var _ref4$size = _ref4.size,
52
51
  size = _ref4$size === void 0 ? 'xs' : _ref4$size;
53
52
  return "var(".concat(tokens.disclosureIconSize, ", ").concat(sizeMap[size], ")");
53
+ }, function (_ref5) {
54
+ var _ref5$size = _ref5.size,
55
+ size = _ref5$size === void 0 ? 'xs' : _ref5$size;
56
+ return "var(".concat(tokens.disclosureIconSize, ", ").concat(sizeMap[size], ")");
54
57
  });
55
58
  export var DisclosureIconWrapper = /*#__PURE__*/styled.div.withConfig({
56
59
  componentId: "plasma-new-hope__sc-fr2h0y-6"
57
60
  })(["margin:var(", ");line-height:0;color:var(", ");&:hover{color:var(", ");}"], tokens.disclosureIconMargin, tokens.disclosureIconColor, tokens.disclosureIconColorHover);
58
61
  export var IconWrapper = /*#__PURE__*/styled.div.withConfig({
59
62
  componentId: "plasma-new-hope__sc-fr2h0y-7"
60
- })(["display:flex;align-items:center;justify-content:center;flex:none;width:", ";height:", ";margin:var(", ");line-height:0;color:var(", ");"], function (_ref5) {
61
- var variant = _ref5.variant;
62
- return "var(".concat(variant === 'tight' ? tokens.itemIconSizeTight : tokens.itemIconSize, ")");
63
- }, function (_ref6) {
63
+ })(["display:flex;align-items:center;justify-content:center;flex:none;width:", ";height:", ";margin:var(", ");line-height:0;color:var(", ");"], function (_ref6) {
64
64
  var variant = _ref6.variant;
65
65
  return "var(".concat(variant === 'tight' ? tokens.itemIconSizeTight : tokens.itemIconSize, ")");
66
+ }, function (_ref7) {
67
+ var variant = _ref7.variant;
68
+ return "var(".concat(variant === 'tight' ? tokens.itemIconSizeTight : tokens.itemIconSize, ")");
66
69
  }, tokens.itemIconMargin, tokens.checkboxFillColor);
67
70
  export var StyledText = /*#__PURE__*/styled.div.withConfig({
68
71
  componentId: "plasma-new-hope__sc-fr2h0y-8"
69
72
  })(["", ";flex:1;"], /*#__PURE__*/applyEllipsis());
70
73
  export var Wrapper = /*#__PURE__*/styled.li.withConfig({
71
74
  componentId: "plasma-new-hope__sc-fr2h0y-9"
72
- })(["display:flex;align-items:center;min-height:var(", ");margin:0 calc(0.125rem + var(", ",0rem));box-sizing:content-box;padding:", ";font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");background-color:var(", ");color:var(--text-primary);border-radius:calc(var(", ") - 0.125rem - var(", ",0rem));user-select:none;background-clip:padding-box;&:hover:not(.", "){cursor:pointer;background-color:var(", ");}&.", "{background-color:var(", ");}&.", "{opacity:", ";cursor:not-allowed;}:focus{outline:none;}", ";"], tokens.itemHeight, tokens.dropdownBorderWidth, function (_ref7) {
73
- var variant = _ref7.variant;
75
+ })(["display:flex;align-items:center;min-height:var(", ");margin:0 calc(0.125rem + var(", ",0rem));box-sizing:content-box;padding:", ";font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");background-color:var(", ");color:var(--text-primary);border-radius:calc(var(", ") - 0.125rem - var(", ",0rem));user-select:none;background-clip:padding-box;&:hover:not(.", "){cursor:pointer;background-color:var(", ");}&.", "{background-color:var(", ");}&.", "{opacity:var(", ");color:var(", ");cursor:not-allowed;}:focus{outline:none;}", ";"], tokens.itemHeight, tokens.dropdownBorderWidth, function (_ref8) {
76
+ var variant = _ref8.variant;
74
77
  return "var(".concat(variant === 'tight' ? tokens.itemPaddingTight : tokens.itemPadding, ")");
75
- }, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.fontLetterSpacing, tokens.fontLineHeight, constants.itemBackground, tokens.borderRadius, tokens.dropdownBorderWidth, classes.dropdownItemIsDisabled, tokens.itemBackgroundHover, classes.dropdownItemIsActive, tokens.itemBackgroundHover, classes.dropdownItemIsDisabled, constants.opacity, /*#__PURE__*/addFocus({
78
+ }, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.fontLetterSpacing, tokens.fontLineHeight, constants.itemBackground, tokens.borderRadius, tokens.dropdownBorderWidth, classes.dropdownItemIsDisabled, tokens.itemBackgroundHover, classes.dropdownItemIsActive, tokens.itemBackgroundHover, classes.dropdownItemIsDisabled, tokens.itemDisabledOpacity, tokens.itemDisabledColor, /*#__PURE__*/addFocus({
76
79
  outlineSize: '0.0625rem',
77
80
  outlineOffset: '0',
78
81
  outlineColor: /*#__PURE__*/"var(".concat(constants.focusColor, ")"),
@@ -404,7 +404,7 @@ export var textFieldRoot = function textFieldRoot(Root) {
404
404
  "aria-labelledby": labelId,
405
405
  "aria-describedby": helperTextId,
406
406
  placeholder: innerPlaceholderValue,
407
- className: cx(hasValueClass, keepPlaceholderClass, classTextEllipsis),
407
+ className: cx(hasValueClass, keepPlaceholderClass, classTextEllipsis, readOnly && classes.readOnlyInput),
408
408
  disabled: disabled,
409
409
  readOnly: !disabled && readOnly,
410
410
  onInput: handleInput,
@@ -15,7 +15,8 @@ export var classes = {
15
15
  requiredAlignRight: 'required-align-right',
16
16
  inputWrapper: 'input-wrapper',
17
17
  inputTextEllipsis: 'textfield-input-text-ellipsis',
18
- contentRightCompensationMargin: 'textfield-content-right-compensation-margin'
18
+ contentRightCompensationMargin: 'textfield-content-right-compensation-margin',
19
+ readOnlyInput: 'textfield-readonly-input'
19
20
  };
20
21
  export var tokens = {
21
22
  color: '--plasma-textfield-color',
@@ -1,4 +1,4 @@
1
1
  import { css } from 'styled-components';
2
2
  import { classes, tokens } from "../../TextField.tokens";
3
3
  import { Input, InputContainer, Label } from "../../TextField.styles";
4
- export var base = /*#__PURE__*/css(["&.", "{", "{position:relative;display:inline-block;color:var(", ");}}&.", "{", "{padding:var(", ");}", ":focus ~ ", ",", ".", " ~ ", ",", ".", " ~ ", "{color:var(", ");align-items:flex-start;padding:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{color:var(", ");pointer-events:none;position:absolute;top:0;display:flex;align-items:center;box-sizing:border-box;height:100%;}&.", " ", "{color:var(", ");}}"], classes.outerLabelPlacement, Label, tokens.labelColor, classes.innerLabelPlacement, InputContainer, tokens.contentLabelInnerPadding, Input, Label, Input, classes.hasValue, Label, Input, classes.keepPlaceholder, Label, tokens.placeholderColor, tokens.labelInnerPadding, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight, Label, tokens.placeholderColor, classes.clear, Label, tokens.clearPlaceholderColor);
4
+ export var base = /*#__PURE__*/css(["&.", "{", "{position:relative;display:inline-block;color:var(", ");}}&.", "{", "{padding:var(", ");}", ":not(.", "):focus ~ ", ",", ".", " ~ ", ",", ".", " ~ ", "{color:var(", ");align-items:flex-start;padding:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{color:var(", ");pointer-events:none;position:absolute;top:0;display:flex;align-items:center;box-sizing:border-box;height:100%;}&.", " ", "{color:var(", ");}}"], classes.outerLabelPlacement, Label, tokens.labelColor, classes.innerLabelPlacement, InputContainer, tokens.contentLabelInnerPadding, Input, classes.readOnlyInput, Label, Input, classes.hasValue, Label, Input, classes.keepPlaceholder, Label, tokens.placeholderColor, tokens.labelInnerPadding, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight, Label, tokens.placeholderColor, classes.clear, Label, tokens.clearPlaceholderColor);
@@ -14,10 +14,10 @@ export var config = {
14
14
  info: /*#__PURE__*/css(["", ":var(--surface-transparent-info);", ":var(--text-primary);", ":var(--text-info);"], tokens.background, tokens.color, tokens.contentBeforeColor)
15
15
  },
16
16
  size: {
17
- l: /*#__PURE__*/css(["", ":1.5rem 1.875rem;", ":1.5rem 1.75rem;", ":0.875rem;", ":0.75rem;", ":1rem;", ":0.25rem;", ":1.5rem;", ":2rem;", ":0.25rem 0;", ":var(--plasma-typo-text-l-font-family);", ":var(--plasma-typo-text-l-font-size);", ":var(--plasma-typo-text-l-font-style);", ":var(--plasma-typo-text-l-bold-font-weight);", ":var(--plasma-typo-text-l-letter-spacing);", ":var(--plasma-typo-text-l-line-height);", ":var(--plasma-typo-text-l-font-family);", ":var(--plasma-typo-text-l-font-size);", ":var(--plasma-typo-text-l-font-style);", ":var(--plasma-typo-text-l-font-weight);", ":var(--plasma-typo-text-l-letter-spacing);", ":var(--plasma-typo-text-l-line-height);"], tokens.padding, tokens.paddingScalable, tokens.borderRadius, tokens.gap, tokens.gapScalable, tokens.contentGap, tokens.fixedContentBeforeWidth, tokens.fixedContentBeforeHeight, tokens.fixedContentBeforePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.textFontFamily, tokens.textFontSize, tokens.textFontStyle, tokens.textFontWeight, tokens.textLetterSpacing, tokens.textLineHeight),
18
- m: /*#__PURE__*/css(["", ":1.25rem 1.5rem;", ":1.25rem;", ":0.75rem;", ":0.625rem;", ":0.75rem;", ":0.125rem;", ":1.5rem;", ":1.5rem;", ":0;", ":var(--plasma-typo-text-m-font-family);", ":var(--plasma-typo-text-m-font-size);", ":var(--plasma-typo-text-m-font-style);", ":var(--plasma-typo-text-m-bold-font-weight);", ":var(--plasma-typo-text-m-letter-spacing);", ":var(--plasma-typo-text-m-line-height);", ":var(--plasma-typo-text-m-font-family);", ":var(--plasma-typo-text-m-font-size);", ":var(--plasma-typo-text-m-font-style);", ":var(--plasma-typo-text-m-font-weight);", ":var(--plasma-typo-text-m-letter-spacing);", ":var(--plasma-typo-text-m-line-height);"], tokens.padding, tokens.paddingScalable, tokens.borderRadius, tokens.gap, tokens.gapScalable, tokens.contentGap, tokens.fixedContentBeforeWidth, tokens.fixedContentBeforeHeight, tokens.fixedContentBeforePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.textFontFamily, tokens.textFontSize, tokens.textFontStyle, tokens.textFontWeight, tokens.textLetterSpacing, tokens.textLineHeight),
19
- s: /*#__PURE__*/css(["", ":1rem 1.25rem;", ":1rem;", ":0.625rem;", ":0.5rem;", ":0.75rem;", ":0.125rem;", ":1rem;", ":1.125rem;", ":0.063rem 0;", ":var(--plasma-typo-text-s-font-family);", ":var(--plasma-typo-text-s-font-size);", ":var(--plasma-typo-text-s-font-style);", ":var(--plasma-typo-text-s-bold-font-weight);", ":var(--plasma-typo-text-s-letter-spacing);", ":var(--plasma-typo-text-s-line-height);", ":var(--plasma-typo-text-s-font-family);", ":var(--plasma-typo-text-s-font-size);", ":var(--plasma-typo-text-s-font-style);", ":var(--plasma-typo-text-s-font-weight);", ":var(--plasma-typo-text-s-letter-spacing);", ":var(--plasma-typo-text-s-line-height);"], tokens.padding, tokens.paddingScalable, tokens.borderRadius, tokens.gap, tokens.gapScalable, tokens.contentGap, tokens.fixedContentBeforeWidth, tokens.fixedContentBeforeHeight, tokens.fixedContentBeforePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.textFontFamily, tokens.textFontSize, tokens.textFontStyle, tokens.textFontWeight, tokens.textLetterSpacing, tokens.textLineHeight),
20
- xs: /*#__PURE__*/css(["", ":0.75rem 1rem;", ":0.75rem;", ":0.5rem;", ":0.375rem;", ":0.5rem;", ":0.125rem;", ":1rem;", ":1rem;", ":0;", ":var(--plasma-typo-text-xs-font-family);", ":var(--plasma-typo-text-xs-font-size);", ":var(--plasma-typo-text-xs-font-style);", ":var(--plasma-typo-text-xs-bold-font-weight);", ":var(--plasma-typo-text-xs-letter-spacing);", ":var(--plasma-typo-text-xs-line-height);", ":var(--plasma-typo-text-xs-font-family);", ":var(--plasma-typo-text-xs-font-size);", ":var(--plasma-typo-text-xs-font-style);", ":var(--plasma-typo-text-xs-font-weight);", ":var(--plasma-typo-text-xs-letter-spacing);", ":var(--plasma-typo-text-xs-line-height);"], tokens.padding, tokens.paddingScalable, tokens.borderRadius, tokens.gap, tokens.gapScalable, tokens.contentGap, tokens.fixedContentBeforeWidth, tokens.fixedContentBeforeHeight, tokens.fixedContentBeforePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.textFontFamily, tokens.textFontSize, tokens.textFontStyle, tokens.textFontWeight, tokens.textLetterSpacing, tokens.textLineHeight)
17
+ l: /*#__PURE__*/css(["", ":1.5rem 1.875rem;", ":1.5rem 1.75rem;", ":0.875rem;", ":0.75rem;", ":1rem;", ":0.25rem;", ":1rem;", ":1rem;", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":1.5rem;", ":1.5rem;", ":1.5rem;", ":2rem;", ":0.25rem 0;", ":var(--plasma-typo-text-l-font-family);", ":var(--plasma-typo-text-l-font-size);", ":var(--plasma-typo-text-l-font-style);", ":var(--plasma-typo-text-l-bold-font-weight);", ":var(--plasma-typo-text-l-letter-spacing);", ":var(--plasma-typo-text-l-line-height);", ":1.875rem;", ":var(--plasma-typo-text-l-font-family);", ":var(--plasma-typo-text-l-font-size);", ":var(--plasma-typo-text-l-font-style);", ":var(--plasma-typo-text-l-font-weight);", ":var(--plasma-typo-text-l-letter-spacing);", ":var(--plasma-typo-text-l-line-height);"], tokens.padding, tokens.paddingScalable, tokens.borderRadius, tokens.gap, tokens.gapScalable, tokens.contentGap, tokens.closeIconTop, tokens.closeIconRight, tokens.closeIconColor, tokens.closeIconColorOnHover, tokens.closeIconSize, tokens.closeIconButtonSize, tokens.fixedContentBeforeWidth, tokens.fixedContentBeforeHeight, tokens.fixedContentBeforePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.titlePaddingRight, tokens.textFontFamily, tokens.textFontSize, tokens.textFontStyle, tokens.textFontWeight, tokens.textLetterSpacing, tokens.textLineHeight),
18
+ m: /*#__PURE__*/css(["", ":1.25rem 1.5rem;", ":1.25rem;", ":0.75rem;", ":0.625rem;", ":0.75rem;", ":0.125rem;", ":0.75rem;", ":0.75rem;", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":1.5rem;", ":1.5rem;", ":1.5rem;", ":1.5rem;", ":0;", ":var(--plasma-typo-text-m-font-family);", ":var(--plasma-typo-text-m-font-size);", ":var(--plasma-typo-text-m-font-style);", ":var(--plasma-typo-text-m-bold-font-weight);", ":var(--plasma-typo-text-m-letter-spacing);", ":var(--plasma-typo-text-m-line-height);", ":1.75rem;", ":var(--plasma-typo-text-m-font-family);", ":var(--plasma-typo-text-m-font-size);", ":var(--plasma-typo-text-m-font-style);", ":var(--plasma-typo-text-m-font-weight);", ":var(--plasma-typo-text-m-letter-spacing);", ":var(--plasma-typo-text-m-line-height);"], tokens.padding, tokens.paddingScalable, tokens.borderRadius, tokens.gap, tokens.gapScalable, tokens.contentGap, tokens.closeIconTop, tokens.closeIconRight, tokens.closeIconColor, tokens.closeIconColorOnHover, tokens.closeIconSize, tokens.closeIconButtonSize, tokens.fixedContentBeforeWidth, tokens.fixedContentBeforeHeight, tokens.fixedContentBeforePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.titlePaddingRight, tokens.textFontFamily, tokens.textFontSize, tokens.textFontStyle, tokens.textFontWeight, tokens.textLetterSpacing, tokens.textLineHeight),
19
+ s: /*#__PURE__*/css(["", ":1rem 1.25rem;", ":1rem;", ":0.625rem;", ":0.5rem;", ":0.75rem;", ":0.125rem;", ":0.625rem;", ":0.625rem;", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":1.5rem;", ":1.5rem;", ":1rem;", ":1.125rem;", ":0.063rem 0;", ":var(--plasma-typo-text-s-font-family);", ":var(--plasma-typo-text-s-font-size);", ":var(--plasma-typo-text-s-font-style);", ":var(--plasma-typo-text-s-bold-font-weight);", ":var(--plasma-typo-text-s-letter-spacing);", ":var(--plasma-typo-text-s-line-height);", ":1.625rem;", ":var(--plasma-typo-text-s-font-family);", ":var(--plasma-typo-text-s-font-size);", ":var(--plasma-typo-text-s-font-style);", ":var(--plasma-typo-text-s-font-weight);", ":var(--plasma-typo-text-s-letter-spacing);", ":var(--plasma-typo-text-s-line-height);"], tokens.padding, tokens.paddingScalable, tokens.borderRadius, tokens.gap, tokens.gapScalable, tokens.contentGap, tokens.closeIconTop, tokens.closeIconRight, tokens.closeIconColor, tokens.closeIconColorOnHover, tokens.closeIconSize, tokens.closeIconButtonSize, tokens.fixedContentBeforeWidth, tokens.fixedContentBeforeHeight, tokens.fixedContentBeforePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.titlePaddingRight, tokens.textFontFamily, tokens.textFontSize, tokens.textFontStyle, tokens.textFontWeight, tokens.textLetterSpacing, tokens.textLineHeight),
20
+ xs: /*#__PURE__*/css(["", ":0.75rem 1rem;", ":0.75rem;", ":0.5rem;", ":0.375rem;", ":0.5rem;", ":0.125rem;", ":0.625rem;", ":0.625rem;", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":1rem;", ":1rem;", ":1rem;", ":1rem;", ":0;", ":var(--plasma-typo-text-xs-font-family);", ":var(--plasma-typo-text-xs-font-size);", ":var(--plasma-typo-text-xs-font-style);", ":var(--plasma-typo-text-xs-bold-font-weight);", ":var(--plasma-typo-text-xs-letter-spacing);", ":var(--plasma-typo-text-xs-line-height);", ":1.5rem;", ":var(--plasma-typo-text-xs-font-family);", ":var(--plasma-typo-text-xs-font-size);", ":var(--plasma-typo-text-xs-font-style);", ":var(--plasma-typo-text-xs-font-weight);", ":var(--plasma-typo-text-xs-letter-spacing);", ":var(--plasma-typo-text-xs-line-height);"], tokens.padding, tokens.paddingScalable, tokens.borderRadius, tokens.gap, tokens.gapScalable, tokens.contentGap, tokens.closeIconTop, tokens.closeIconRight, tokens.closeIconColor, tokens.closeIconColorOnHover, tokens.closeIconSize, tokens.closeIconButtonSize, tokens.fixedContentBeforeWidth, tokens.fixedContentBeforeHeight, tokens.fixedContentBeforePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.titlePaddingRight, tokens.textFontFamily, tokens.textFontSize, tokens.textFontStyle, tokens.textFontWeight, tokens.textLetterSpacing, tokens.textLineHeight)
21
21
  }
22
22
  }
23
23
  };
@@ -67,6 +67,7 @@ export const Default: StoryObj<StoryPropsDefault> = {
67
67
  text: 'Text',
68
68
  enableContentBefore: true,
69
69
  contentBeforeSizing: 'fixed',
70
+ hasClose: true,
70
71
  },
71
72
  render: ({ enableContentBefore, ...args }) => (
72
73
  <div style={{ height: '100vh' }}>
@@ -9,16 +9,16 @@ export var config = {
9
9
  },
10
10
  variations: {
11
11
  view: {
12
- "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-tertiary);", ":var(--surface-transparent-primary);", ":var(--surface-transparent-secondary);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-negative);", ":var(--text-tertiary);", ":var(--inverse-text-primary);", ":var(--inverse-text-primary-hover);", ":var(--inverse-text-primary-active);", ":var(--inverse-text-secondary);", ":var(--inverse-text-secondary-hover);", ":var(--inverse-text-secondary-hover);", ":var(--surface-solid-default);", ":var(--surface-solid-default-hover);", ":var(--surface-solid-default-hover);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);", ":var(--text-secondary);"], tokens.textFieldColor, tokens.textFieldPlaceholderColor, tokens.textFieldPlaceholderColorFocus, tokens.textFieldBackgroundColor, tokens.textFieldBackgroundColorFocus, tokens.textFieldTextBeforeColor, tokens.textFieldTextAfterColor, tokens.textFieldLabelColor, tokens.textFieldLeftHelperColor, tokens.textFieldFocusColor, tokens.textFieldContentSlotColor, tokens.textFieldContentSlotColorHover, tokens.textFieldContentSlotColorActive, tokens.textFieldIndicatorColor, tokens.textFieldOptionalColor, tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover, tokens.textFieldHintIconColor),
13
- positive: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-tertiary);", ":var(--surface-transparent-positive);", ":var(--surface-transparent-positive-active);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-positive);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-negative);", ":var(--text-tertiary);", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-hover);", ":var(--surface-positive);", ":var(--surface-positive-hover);", ":var(--surface-positive-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);", ":var(--text-secondary);"], tokens.textFieldColor, tokens.textFieldPlaceholderColor, tokens.textFieldPlaceholderColorFocus, tokens.textFieldBackgroundColor, tokens.textFieldBackgroundColorFocus, tokens.textFieldTextBeforeColor, tokens.textFieldTextAfterColor, tokens.textFieldLabelColor, tokens.textFieldLeftHelperColor, tokens.textFieldFocusColor, tokens.textFieldContentSlotColor, tokens.textFieldContentSlotColorHover, tokens.textFieldContentSlotColorActive, tokens.textFieldIndicatorColor, tokens.textFieldOptionalColor, tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover, tokens.textFieldHintIconColor),
14
- warning: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-tertiary);", ":var(--surface-transparent-warning);", ":var(--surface-transparent-warning-active);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-warning);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-negative);", ":var(--text-tertiary);", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-hover);", ":var(--surface-warning);", ":var(--surface-warning-hover);", ":var(--surface-warning-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);", ":var(--text-secondary);"], tokens.textFieldColor, tokens.textFieldPlaceholderColor, tokens.textFieldPlaceholderColorFocus, tokens.textFieldBackgroundColor, tokens.textFieldBackgroundColorFocus, tokens.textFieldTextBeforeColor, tokens.textFieldTextAfterColor, tokens.textFieldLabelColor, tokens.textFieldLeftHelperColor, tokens.textFieldFocusColor, tokens.textFieldContentSlotColor, tokens.textFieldContentSlotColorHover, tokens.textFieldContentSlotColorActive, tokens.textFieldIndicatorColor, tokens.textFieldOptionalColor, tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover, tokens.textFieldHintIconColor),
15
- negative: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-tertiary);", ":var(--surface-transparent-negative);", ":var(--surface-transparent-negative-active);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-negative);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-negative);", ":var(--text-tertiary);", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-hover);", ":var(--surface-negative);", ":var(--surface-negative-hover);", ":var(--surface-negative-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);", ":var(--text-secondary);"], tokens.textFieldColor, tokens.textFieldPlaceholderColor, tokens.textFieldPlaceholderColorFocus, tokens.textFieldBackgroundColor, tokens.textFieldBackgroundColorFocus, tokens.textFieldTextBeforeColor, tokens.textFieldTextAfterColor, tokens.textFieldLabelColor, tokens.textFieldLeftHelperColor, tokens.textFieldFocusColor, tokens.textFieldContentSlotColor, tokens.textFieldContentSlotColorHover, tokens.textFieldContentSlotColorActive, tokens.textFieldIndicatorColor, tokens.textFieldOptionalColor, tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover, tokens.textFieldHintIconColor),
16
- accent: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-hover);", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-accent-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);"], tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover),
17
- secondary: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-primary-hover);", ":var(--text-primary-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);", ":var(--surface-transparent-secondary-hover);", ":var(--surface-transparent-secondary-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);"], tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover),
18
- clear: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-primary-hover);", ":var(--text-primary-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-clear);", ":var(--surface-clear);", ":var(--surface-clear);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);"], tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover),
19
- dark: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-active);", ":var(--on-light-surface-transparent-deep);", ":var(--on-light-surface-transparent-deep-hover);", ":var(--on-light-surface-transparent-deep-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);"], tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover),
20
- black: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-active);", ":var(--on-light-surface-solid-default);", ":var(--on-light-surface-solid-default-hover);", ":var(--on-light-surface-solid-default-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);"], tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover),
21
- white: /*#__PURE__*/css(["", ":var(--on-light-text-primary);", ":var(--on-light-text-primary-hover);", ":var(--on-light-text-primary-active);", ":var(--on-light-text-secondary);", ":var(--on-light-text-secondary-hover);", ":var(--on-light-text-secondary-active);", ":var(--on-dark-surface-solid-default);", ":var(--on-dark-surface-solid-default-hover);", ":var(--on-dark-surface-solid-default-active);", ":var(--surface-transparent-secondary);", ":var(--text-secondary);", ":var(--text-secondary-hover);"], tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.itemBackgroundHover, tokens.disclosureIconColor, tokens.disclosureIconColorHover)
12
+ "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-tertiary);", ":var(--surface-transparent-primary);", ":var(--surface-transparent-secondary);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-negative);", ":var(--text-tertiary);", ":var(--inverse-text-primary);", ":var(--inverse-text-primary-hover);", ":var(--inverse-text-primary-active);", ":var(--inverse-text-secondary);", ":var(--inverse-text-secondary-hover);", ":var(--inverse-text-secondary-hover);", ":var(--surface-solid-default);", ":var(--surface-solid-default-hover);", ":var(--surface-solid-default-hover);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);", ":0.4;", ":var(--text-primary);", ":var(--text-secondary);"], tokens.textFieldColor, tokens.textFieldPlaceholderColor, tokens.textFieldPlaceholderColorFocus, tokens.textFieldBackgroundColor, tokens.textFieldBackgroundColorFocus, tokens.textFieldTextBeforeColor, tokens.textFieldTextAfterColor, tokens.textFieldLabelColor, tokens.textFieldLeftHelperColor, tokens.textFieldFocusColor, tokens.textFieldContentSlotColor, tokens.textFieldContentSlotColorHover, tokens.textFieldContentSlotColorActive, tokens.textFieldIndicatorColor, tokens.textFieldOptionalColor, tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover, tokens.itemDisabledOpacity, tokens.itemDisabledColor, tokens.textFieldHintIconColor),
13
+ positive: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-tertiary);", ":var(--surface-transparent-positive);", ":var(--surface-transparent-positive-active);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-positive);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-negative);", ":var(--text-tertiary);", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-hover);", ":var(--surface-positive);", ":var(--surface-positive-hover);", ":var(--surface-positive-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);", ":0.4;", ":var(--text-primary);", ":var(--text-secondary);"], tokens.textFieldColor, tokens.textFieldPlaceholderColor, tokens.textFieldPlaceholderColorFocus, tokens.textFieldBackgroundColor, tokens.textFieldBackgroundColorFocus, tokens.textFieldTextBeforeColor, tokens.textFieldTextAfterColor, tokens.textFieldLabelColor, tokens.textFieldLeftHelperColor, tokens.textFieldFocusColor, tokens.textFieldContentSlotColor, tokens.textFieldContentSlotColorHover, tokens.textFieldContentSlotColorActive, tokens.textFieldIndicatorColor, tokens.textFieldOptionalColor, tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover, tokens.itemDisabledOpacity, tokens.itemDisabledColor, tokens.textFieldHintIconColor),
14
+ warning: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-tertiary);", ":var(--surface-transparent-warning);", ":var(--surface-transparent-warning-active);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-warning);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-negative);", ":var(--text-tertiary);", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-hover);", ":var(--surface-warning);", ":var(--surface-warning-hover);", ":var(--surface-warning-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);", ":0.4;", ":var(--text-primary);", ":var(--text-secondary);"], tokens.textFieldColor, tokens.textFieldPlaceholderColor, tokens.textFieldPlaceholderColorFocus, tokens.textFieldBackgroundColor, tokens.textFieldBackgroundColorFocus, tokens.textFieldTextBeforeColor, tokens.textFieldTextAfterColor, tokens.textFieldLabelColor, tokens.textFieldLeftHelperColor, tokens.textFieldFocusColor, tokens.textFieldContentSlotColor, tokens.textFieldContentSlotColorHover, tokens.textFieldContentSlotColorActive, tokens.textFieldIndicatorColor, tokens.textFieldOptionalColor, tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover, tokens.itemDisabledOpacity, tokens.itemDisabledColor, tokens.textFieldHintIconColor),
15
+ negative: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-tertiary);", ":var(--surface-transparent-negative);", ":var(--surface-transparent-negative-active);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-negative);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-negative);", ":var(--text-tertiary);", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-hover);", ":var(--surface-negative);", ":var(--surface-negative-hover);", ":var(--surface-negative-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);", ":0.4;", ":var(--text-primary);", ":var(--text-secondary);"], tokens.textFieldColor, tokens.textFieldPlaceholderColor, tokens.textFieldPlaceholderColorFocus, tokens.textFieldBackgroundColor, tokens.textFieldBackgroundColorFocus, tokens.textFieldTextBeforeColor, tokens.textFieldTextAfterColor, tokens.textFieldLabelColor, tokens.textFieldLeftHelperColor, tokens.textFieldFocusColor, tokens.textFieldContentSlotColor, tokens.textFieldContentSlotColorHover, tokens.textFieldContentSlotColorActive, tokens.textFieldIndicatorColor, tokens.textFieldOptionalColor, tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover, tokens.itemDisabledOpacity, tokens.itemDisabledColor, tokens.textFieldHintIconColor),
16
+ accent: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-hover);", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-accent-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);", ":0.4;", ":var(--text-primary);"], tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover, tokens.itemDisabledOpacity, tokens.itemDisabledColor),
17
+ secondary: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-primary-hover);", ":var(--text-primary-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);", ":var(--surface-transparent-secondary-hover);", ":var(--surface-transparent-secondary-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);", ":0.4;", ":var(--text-primary);"], tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover, tokens.itemDisabledOpacity, tokens.itemDisabledColor),
18
+ clear: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-primary-hover);", ":var(--text-primary-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-clear);", ":var(--surface-clear);", ":var(--surface-clear);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);", ":0.4;", ":var(--text-primary);"], tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover, tokens.itemDisabledOpacity, tokens.itemDisabledColor),
19
+ dark: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-active);", ":var(--on-light-surface-transparent-deep);", ":var(--on-light-surface-transparent-deep-hover);", ":var(--on-light-surface-transparent-deep-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);", ":0.4;", ":var(--text-primary);"], tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover, tokens.itemDisabledOpacity, tokens.itemDisabledColor),
20
+ black: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-active);", ":var(--on-light-surface-solid-default);", ":var(--on-light-surface-solid-default-hover);", ":var(--on-light-surface-solid-default-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);", ":0.4;", ":var(--text-primary);"], tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemBackgroundHover, tokens.itemDisabledOpacity, tokens.itemDisabledColor),
21
+ white: /*#__PURE__*/css(["", ":var(--on-light-text-primary);", ":var(--on-light-text-primary-hover);", ":var(--on-light-text-primary-active);", ":var(--on-light-text-secondary);", ":var(--on-light-text-secondary-hover);", ":var(--on-light-text-secondary-active);", ":var(--on-dark-surface-solid-default);", ":var(--on-dark-surface-solid-default-hover);", ":var(--on-dark-surface-solid-default-active);", ":var(--surface-transparent-secondary);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":0.4;", ":var(--text-primary);"], tokens.buttonColor, tokens.buttonColorHover, tokens.buttonColorActive, tokens.buttonArrowColor, tokens.buttonArrowColorHover, tokens.buttonArrowColorActive, tokens.buttonBackgroundColor, tokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorActive, tokens.itemBackgroundHover, tokens.disclosureIconColor, tokens.disclosureIconColorHover, tokens.itemDisabledOpacity, tokens.itemDisabledColor)
22
22
  },
23
23
  size: {
24
24
  l: /*#__PURE__*/css(["", ":3.5rem;", ":1.0625rem 1.125rem 1.0625rem 1.125rem;", ":0.375rem;", ":0.875rem;", ":-0.0625rem 0.5rem -0.0625rem -0.125rem;", ":-0.0625rem -0.125rem -0.0625rem 0.75rem;", ":-0.0625rem -0.438rem -0.0625rem 0.75rem;", ":0.25rem;", ":-0.438rem -0.438rem -0.438rem 0;", ":0 0.25rem 0 0;", ":0 0 0 0.25rem;", ":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-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.75rem;", ":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-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":-0.688rem -0.5rem;", ":2.375rem;", ":0.563rem -2.938rem auto auto;", ":0.563rem -2.188rem auto auto;", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.5625rem 0 0.125rem 0;", ":1.5625rem 0 0.5625rem 0;", ":0.5rem;", ":0.375rem;", ":0 0 0 0;", ":0.5rem auto auto -0.75rem;", ":0 0 auto auto;", ":0.25rem -0.625rem auto auto;", ":1.5rem auto auto -0.875rem;", ":1.5rem -0.875rem auto auto;", ":1.5rem -2.488rem auto auto;", ":0.25rem;", ":0.5rem;", ":auto;", ":2.75rem;", ":0 0.75rem 0 1rem;", ":0.625rem;", ":0rem;", ":1.5rem;", ":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-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0 -0.125rem 0 0.5rem;", ":3.5rem;", ":1.5rem 0 1.5rem;", ":0.125rem;", ":0.875rem;", ":1.5rem;", ":1rem 1.125rem;", ":0.75rem 1.125rem;", ":0.75rem;", ":0 0.5rem 0 0;", ":1.5rem;", ":1.5rem;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.375rem;", ":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-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":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-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":1.25rem;", ":1.25rem;", ":0.375rem;", ":0.375rem;", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":transparent;", ":0.125rem;", ":var(--text-secondary);", ":0.375rem;"], tokens.textFieldHeight, tokens.textFieldPadding, tokens.textFieldPaddingWithChips, tokens.textFieldBorderRadius, tokens.textFieldLeftContentMargin, tokens.textFieldRightContentMargin, tokens.textFieldRightContentWithHintMargin, tokens.textFieldContentRightWrapperGap, tokens.textFieldContentRightWrapperMargin, tokens.textFieldTextBeforeMargin, tokens.textFieldTextAfterMargin, tokens.textFieldFontFamily, tokens.textFieldFontSize, tokens.textFieldFontStyle, tokens.textFieldFontWeight, tokens.textFieldLetterSpacing, tokens.textFieldLineHeight, tokens.textFieldLabelOffset, tokens.textFieldLabelFontFamily, tokens.textFieldLabelFontSize, tokens.textFieldLabelFontStyle, tokens.textFieldLabelFontWeight, tokens.textFieldLabelLetterSpacing, tokens.textFieldLabelLineHeight, tokens.textFieldHintMargin, tokens.textFieldHintTargetSize, tokens.textFieldHintInnerLabelPlacementOffset, tokens.textFieldClearHintInnerLabelPlacementOffset, tokens.textFieldLeftHelperOffset, tokens.textFieldLeftHelperFontFamily, tokens.textFieldLeftHelperFontSize, tokens.textFieldLeftHelperFontStyle, tokens.textFieldLeftHelperFontWeight, tokens.textFieldLeftHelperLetterSpacing, tokens.textFieldLeftHelperLineHeight, tokens.textFieldLabelInnerPadding, tokens.textFieldContentLabelInnerPadding, tokens.textFieldIndicatorSizeInner, tokens.textFieldIndicatorSizeOuter, tokens.textFieldIndicatorLabelPlacementInner, tokens.textFieldIndicatorLabelPlacementOuter, tokens.textFieldIndicatorLabelPlacementInnerRight, tokens.textFieldIndicatorLabelPlacementOuterRight, tokens.textFieldClearIndicatorLabelPlacementInner, tokens.textFieldClearIndicatorLabelPlacementInnerRight, tokens.textFieldClearIndicatorHintInnerRight, tokens.textFieldChipGap, tokens.textFieldChipBorderRadius, tokens.textFieldChipWidth, tokens.textFieldChipHeight, tokens.textFieldChipPadding, tokens.textFieldChipClearContentMarginLeft, tokens.textFieldChipClearContentMarginRight, tokens.textFieldChipCloseIconSize, tokens.textFieldChipFontFamily, tokens.textFieldChipFontSize, tokens.textFieldChipFontStyle, tokens.textFieldChipFontWeight, tokens.textFieldChipLetterSpacing, tokens.textFieldChipLineHeight, tokens.buttonArrowMargin, tokens.targetHeight, tokens.buttonPadding, tokens.padding, tokens.borderRadius, tokens.itemHeight, tokens.itemPadding, tokens.itemPaddingTight, tokens.itemBorderRadius, tokens.itemIconMargin, tokens.itemIconSize, tokens.itemIconSizeTight, tokens.cellPadding, tokens.cellPaddingLeftContent, tokens.cellPaddingContent, tokens.cellPaddingRightContent, tokens.cellTextboxGap, tokens.cellGap, tokens.cellTitleFontFamily, tokens.cellTitleFontSize, tokens.cellTitleFontStyle, tokens.cellTitleFontWeight, tokens.cellTitleLetterSpacing, tokens.cellTitleLineHeight, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.fontLetterSpacing, tokens.fontLineHeight, tokens.checkboxTriggerSize, tokens.checkboxTriggerSizeTight, tokens.checkboxTriggerBorderRadius, tokens.checkboxTriggerBorderRadiusTight, tokens.checkboxFillColor, tokens.checkboxIconColor, tokens.checkboxTriggerBorderCheckedColor, tokens.checkboxTriggerBorderWidth, tokens.checkboxTriggerBorderColor, tokens.indicatorSize),
@@ -14,10 +14,10 @@ export var config = {
14
14
  info: /*#__PURE__*/css(["", ":var(--surface-transparent-info);", ":var(--text-primary);", ":var(--text-info);"], tokens.background, tokens.color, tokens.contentBeforeColor)
15
15
  },
16
16
  size: {
17
- l: /*#__PURE__*/css(["", ":1.5rem 1.875rem;", ":1.5rem 1.75rem;", ":0.875rem;", ":0.75rem;", ":1rem;", ":0.25rem;", ":1.5rem;", ":2rem;", ":0.25rem 0;", ":var(--plasma-typo-text-l-font-family);", ":var(--plasma-typo-text-l-font-size);", ":var(--plasma-typo-text-l-font-style);", ":var(--plasma-typo-text-l-bold-font-weight);", ":var(--plasma-typo-text-l-letter-spacing);", ":var(--plasma-typo-text-l-line-height);", ":var(--plasma-typo-text-l-font-family);", ":var(--plasma-typo-text-l-font-size);", ":var(--plasma-typo-text-l-font-style);", ":var(--plasma-typo-text-l-font-weight);", ":var(--plasma-typo-text-l-letter-spacing);", ":var(--plasma-typo-text-l-line-height);"], tokens.padding, tokens.paddingScalable, tokens.borderRadius, tokens.gap, tokens.gapScalable, tokens.contentGap, tokens.fixedContentBeforeWidth, tokens.fixedContentBeforeHeight, tokens.fixedContentBeforePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.textFontFamily, tokens.textFontSize, tokens.textFontStyle, tokens.textFontWeight, tokens.textLetterSpacing, tokens.textLineHeight),
18
- m: /*#__PURE__*/css(["", ":1.25rem 1.5rem;", ":1.25rem;", ":0.75rem;", ":0.625rem;", ":0.75rem;", ":0.125rem;", ":1.5rem;", ":1.5rem;", ":0;", ":var(--plasma-typo-text-m-font-family);", ":var(--plasma-typo-text-m-font-size);", ":var(--plasma-typo-text-m-font-style);", ":var(--plasma-typo-text-m-bold-font-weight);", ":var(--plasma-typo-text-m-letter-spacing);", ":var(--plasma-typo-text-m-line-height);", ":var(--plasma-typo-text-m-font-family);", ":var(--plasma-typo-text-m-font-size);", ":var(--plasma-typo-text-m-font-style);", ":var(--plasma-typo-text-m-font-weight);", ":var(--plasma-typo-text-m-letter-spacing);", ":var(--plasma-typo-text-m-line-height);"], tokens.padding, tokens.paddingScalable, tokens.borderRadius, tokens.gap, tokens.gapScalable, tokens.contentGap, tokens.fixedContentBeforeWidth, tokens.fixedContentBeforeHeight, tokens.fixedContentBeforePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.textFontFamily, tokens.textFontSize, tokens.textFontStyle, tokens.textFontWeight, tokens.textLetterSpacing, tokens.textLineHeight),
19
- s: /*#__PURE__*/css(["", ":1rem 1.25rem;", ":1rem;", ":0.625rem;", ":0.5rem;", ":0.75rem;", ":0.125rem;", ":1rem;", ":1.125rem;", ":0.063rem 0;", ":var(--plasma-typo-text-s-font-family);", ":var(--plasma-typo-text-s-font-size);", ":var(--plasma-typo-text-s-font-style);", ":var(--plasma-typo-text-s-bold-font-weight);", ":var(--plasma-typo-text-s-letter-spacing);", ":var(--plasma-typo-text-s-line-height);", ":var(--plasma-typo-text-s-font-family);", ":var(--plasma-typo-text-s-font-size);", ":var(--plasma-typo-text-s-font-style);", ":var(--plasma-typo-text-s-font-weight);", ":var(--plasma-typo-text-s-letter-spacing);", ":var(--plasma-typo-text-s-line-height);"], tokens.padding, tokens.paddingScalable, tokens.borderRadius, tokens.gap, tokens.gapScalable, tokens.contentGap, tokens.fixedContentBeforeWidth, tokens.fixedContentBeforeHeight, tokens.fixedContentBeforePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.textFontFamily, tokens.textFontSize, tokens.textFontStyle, tokens.textFontWeight, tokens.textLetterSpacing, tokens.textLineHeight),
20
- xs: /*#__PURE__*/css(["", ":0.75rem 1rem;", ":0.75rem;", ":0.5rem;", ":0.375rem;", ":0.5rem;", ":0.125rem;", ":1rem;", ":1rem;", ":0;", ":var(--plasma-typo-text-xs-font-family);", ":var(--plasma-typo-text-xs-font-size);", ":var(--plasma-typo-text-xs-font-style);", ":var(--plasma-typo-text-xs-bold-font-weight);", ":var(--plasma-typo-text-xs-letter-spacing);", ":var(--plasma-typo-text-xs-line-height);", ":var(--plasma-typo-text-xs-font-family);", ":var(--plasma-typo-text-xs-font-size);", ":var(--plasma-typo-text-xs-font-style);", ":var(--plasma-typo-text-xs-font-weight);", ":var(--plasma-typo-text-xs-letter-spacing);", ":var(--plasma-typo-text-xs-line-height);"], tokens.padding, tokens.paddingScalable, tokens.borderRadius, tokens.gap, tokens.gapScalable, tokens.contentGap, tokens.fixedContentBeforeWidth, tokens.fixedContentBeforeHeight, tokens.fixedContentBeforePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.textFontFamily, tokens.textFontSize, tokens.textFontStyle, tokens.textFontWeight, tokens.textLetterSpacing, tokens.textLineHeight)
17
+ l: /*#__PURE__*/css(["", ":1.5rem 1.875rem;", ":1.5rem 1.75rem;", ":0.875rem;", ":0.75rem;", ":1rem;", ":0.25rem;", ":1rem;", ":1rem;", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":1.5rem;", ":1.5rem;", ":1.5rem;", ":2rem;", ":0.25rem 0;", ":var(--plasma-typo-text-l-font-family);", ":var(--plasma-typo-text-l-font-size);", ":var(--plasma-typo-text-l-font-style);", ":var(--plasma-typo-text-l-bold-font-weight);", ":var(--plasma-typo-text-l-letter-spacing);", ":var(--plasma-typo-text-l-line-height);", ":1.875rem;", ":var(--plasma-typo-text-l-font-family);", ":var(--plasma-typo-text-l-font-size);", ":var(--plasma-typo-text-l-font-style);", ":var(--plasma-typo-text-l-font-weight);", ":var(--plasma-typo-text-l-letter-spacing);", ":var(--plasma-typo-text-l-line-height);"], tokens.padding, tokens.paddingScalable, tokens.borderRadius, tokens.gap, tokens.gapScalable, tokens.contentGap, tokens.closeIconTop, tokens.closeIconRight, tokens.closeIconColor, tokens.closeIconColorOnHover, tokens.closeIconSize, tokens.closeIconButtonSize, tokens.fixedContentBeforeWidth, tokens.fixedContentBeforeHeight, tokens.fixedContentBeforePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.titlePaddingRight, tokens.textFontFamily, tokens.textFontSize, tokens.textFontStyle, tokens.textFontWeight, tokens.textLetterSpacing, tokens.textLineHeight),
18
+ m: /*#__PURE__*/css(["", ":1.25rem 1.5rem;", ":1.25rem;", ":0.75rem;", ":0.625rem;", ":0.75rem;", ":0.125rem;", ":0.75rem;", ":0.75rem;", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":1.5rem;", ":1.5rem;", ":1.5rem;", ":1.5rem;", ":0;", ":var(--plasma-typo-text-m-font-family);", ":var(--plasma-typo-text-m-font-size);", ":var(--plasma-typo-text-m-font-style);", ":var(--plasma-typo-text-m-bold-font-weight);", ":var(--plasma-typo-text-m-letter-spacing);", ":var(--plasma-typo-text-m-line-height);", ":1.75rem;", ":var(--plasma-typo-text-m-font-family);", ":var(--plasma-typo-text-m-font-size);", ":var(--plasma-typo-text-m-font-style);", ":var(--plasma-typo-text-m-font-weight);", ":var(--plasma-typo-text-m-letter-spacing);", ":var(--plasma-typo-text-m-line-height);"], tokens.padding, tokens.paddingScalable, tokens.borderRadius, tokens.gap, tokens.gapScalable, tokens.contentGap, tokens.closeIconTop, tokens.closeIconRight, tokens.closeIconColor, tokens.closeIconColorOnHover, tokens.closeIconSize, tokens.closeIconButtonSize, tokens.fixedContentBeforeWidth, tokens.fixedContentBeforeHeight, tokens.fixedContentBeforePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.titlePaddingRight, tokens.textFontFamily, tokens.textFontSize, tokens.textFontStyle, tokens.textFontWeight, tokens.textLetterSpacing, tokens.textLineHeight),
19
+ s: /*#__PURE__*/css(["", ":1rem 1.25rem;", ":1rem;", ":0.625rem;", ":0.5rem;", ":0.75rem;", ":0.125rem;", ":0.625rem;", ":0.625rem;", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":1.5rem;", ":1.5rem;", ":1rem;", ":1.125rem;", ":0.063rem 0;", ":var(--plasma-typo-text-s-font-family);", ":var(--plasma-typo-text-s-font-size);", ":var(--plasma-typo-text-s-font-style);", ":var(--plasma-typo-text-s-bold-font-weight);", ":var(--plasma-typo-text-s-letter-spacing);", ":var(--plasma-typo-text-s-line-height);", ":1.625rem;", ":var(--plasma-typo-text-s-font-family);", ":var(--plasma-typo-text-s-font-size);", ":var(--plasma-typo-text-s-font-style);", ":var(--plasma-typo-text-s-font-weight);", ":var(--plasma-typo-text-s-letter-spacing);", ":var(--plasma-typo-text-s-line-height);"], tokens.padding, tokens.paddingScalable, tokens.borderRadius, tokens.gap, tokens.gapScalable, tokens.contentGap, tokens.closeIconTop, tokens.closeIconRight, tokens.closeIconColor, tokens.closeIconColorOnHover, tokens.closeIconSize, tokens.closeIconButtonSize, tokens.fixedContentBeforeWidth, tokens.fixedContentBeforeHeight, tokens.fixedContentBeforePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.titlePaddingRight, tokens.textFontFamily, tokens.textFontSize, tokens.textFontStyle, tokens.textFontWeight, tokens.textLetterSpacing, tokens.textLineHeight),
20
+ xs: /*#__PURE__*/css(["", ":0.75rem 1rem;", ":0.75rem;", ":0.5rem;", ":0.375rem;", ":0.5rem;", ":0.125rem;", ":0.625rem;", ":0.625rem;", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":1rem;", ":1rem;", ":1rem;", ":1rem;", ":0;", ":var(--plasma-typo-text-xs-font-family);", ":var(--plasma-typo-text-xs-font-size);", ":var(--plasma-typo-text-xs-font-style);", ":var(--plasma-typo-text-xs-bold-font-weight);", ":var(--plasma-typo-text-xs-letter-spacing);", ":var(--plasma-typo-text-xs-line-height);", ":1.5rem;", ":var(--plasma-typo-text-xs-font-family);", ":var(--plasma-typo-text-xs-font-size);", ":var(--plasma-typo-text-xs-font-style);", ":var(--plasma-typo-text-xs-font-weight);", ":var(--plasma-typo-text-xs-letter-spacing);", ":var(--plasma-typo-text-xs-line-height);"], tokens.padding, tokens.paddingScalable, tokens.borderRadius, tokens.gap, tokens.gapScalable, tokens.contentGap, tokens.closeIconTop, tokens.closeIconRight, tokens.closeIconColor, tokens.closeIconColorOnHover, tokens.closeIconSize, tokens.closeIconButtonSize, tokens.fixedContentBeforeWidth, tokens.fixedContentBeforeHeight, tokens.fixedContentBeforePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.titlePaddingRight, tokens.textFontFamily, tokens.textFontSize, tokens.textFontStyle, tokens.textFontWeight, tokens.textLetterSpacing, tokens.textLineHeight)
21
21
  }
22
22
  }
23
23
  };
@@ -67,6 +67,7 @@ export const Default: StoryObj<StoryPropsDefault> = {
67
67
  text: 'Text',
68
68
  enableContentBefore: true,
69
69
  contentBeforeSizing: 'fixed',
70
+ hasClose: true,
70
71
  },
71
72
  render: ({ enableContentBefore, ...args }) => (
72
73
  <div style={{ height: '100vh' }}>