colibri-ui 0.7.35 → 0.7.37

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 (309) hide show
  1. package/Badge/Badge.module.scss.js +7 -0
  2. package/Badge/Control/Control.module.scss.js +7 -0
  3. package/Badge/Control/index.js +11 -7
  4. package/Badge/index.js +26 -20
  5. package/Button/Button.module.scss.js +7 -0
  6. package/Button/index.js +27 -23
  7. package/Button/index.props.d.ts +3 -34
  8. package/Checkbox/Checkbox.module.scss.js +7 -0
  9. package/Checkbox/index.js +38 -34
  10. package/Checkbox/index.props.d.ts +1 -19
  11. package/Counter/Counter.module.scss.js +7 -0
  12. package/Counter/index.d.ts +2 -2
  13. package/Counter/index.js +40 -33
  14. package/Counter/index.props.d.ts +1 -1
  15. package/DotsLoader/DotsLoader.module.scss.js +7 -0
  16. package/DotsLoader/index.js +44 -17
  17. package/Dropdown/Dropdown.module.scss.js +7 -0
  18. package/Dropdown/index.d.ts +2 -2
  19. package/Dropdown/index.js +28 -31
  20. package/Dropdown/index.props.d.ts +2 -2
  21. package/Grid/Grid.module.scss.js +7 -0
  22. package/Grid/Item/Grid-Item.module.scss.js +7 -0
  23. package/Grid/Item/index.js +15 -10
  24. package/Grid/index.js +18 -11
  25. package/Icons/Cart.d.ts +2 -2
  26. package/Icons/Cart.js +7 -6
  27. package/Icons/Chevron.d.ts +2 -2
  28. package/Icons/Chevron.js +11 -9
  29. package/Icons/Close.d.ts +2 -2
  30. package/Icons/Close.js +13 -11
  31. package/Icons/EyeClosed.d.ts +2 -2
  32. package/Icons/EyeClosed.js +8 -6
  33. package/Icons/EyeOpen.d.ts +2 -2
  34. package/Icons/EyeOpen.js +15 -13
  35. package/Icons/Help.d.ts +2 -2
  36. package/Icons/Help.js +11 -9
  37. package/Icons/Info.d.ts +2 -2
  38. package/Icons/Info.js +9 -7
  39. package/Icons/Minus.d.ts +2 -2
  40. package/Icons/Minus.js +9 -8
  41. package/Icons/More.d.ts +2 -2
  42. package/Icons/More.js +18 -16
  43. package/Icons/Plus.d.ts +2 -2
  44. package/Icons/Plus.js +14 -13
  45. package/Icons/Trash.d.ts +2 -2
  46. package/Icons/Trash.js +11 -9
  47. package/Icons/User.d.ts +2 -2
  48. package/Icons/User.js +16 -14
  49. package/Image/Image.module.scss.js +7 -0
  50. package/Image/index.d.ts +2 -2
  51. package/Image/index.js +27 -22
  52. package/Input/index.d.ts +2 -2
  53. package/Input/index.js +21 -23
  54. package/Input/index.props.d.ts +3 -3
  55. package/Menu/Menu.module.scss.js +7 -0
  56. package/Menu/components/MenuItem/MenuItem.module.scss.js +7 -0
  57. package/Menu/components/MenuItem/index.js +24 -14
  58. package/Menu/components/MenuItem/index.props.d.ts +1 -14
  59. package/Menu/index.js +10 -6
  60. package/Menu/index.props.d.ts +3 -21
  61. package/Modal/Modal.module.scss.js +7 -0
  62. package/Modal/components/Close/Close.module.scss.js +7 -0
  63. package/Modal/components/Close/index.js +12 -3
  64. package/Modal/components/Content/Content.module.scss.js +7 -0
  65. package/Modal/components/Content/index.js +11 -5
  66. package/Modal/components/Title/Title.module.scss.js +7 -0
  67. package/Modal/components/Title/index.d.ts +0 -2
  68. package/Modal/components/Title/index.js +15 -12
  69. package/Modal/index.js +40 -33
  70. package/Select/Select.module.scss.js +7 -0
  71. package/Select/index.d.ts +2 -1
  72. package/Select/index.js +55 -45
  73. package/Separator/Separator.module.scss.js +7 -0
  74. package/Separator/index.d.ts +3 -3
  75. package/Separator/index.js +10 -4
  76. package/Skeleton/Skeleton.module.scss.js +7 -0
  77. package/Skeleton/index.js +12 -6
  78. package/Switch/Switch.module.scss.js +7 -0
  79. package/Switch/index.d.ts +2 -2
  80. package/Switch/index.js +28 -12
  81. package/Switch/index.props.d.ts +2 -15
  82. package/Theme/index.d.ts +83 -234
  83. package/Theme/index.js +2 -15
  84. package/Theme/themes/buenos_aires.d.ts +9 -185
  85. package/Theme/themes/buenos_aires.js +9 -228
  86. package/Theme/themes/default.d.ts +79 -184
  87. package/Theme/themes/default.js +80 -226
  88. package/Typography/Typography.module.scss.js +7 -0
  89. package/Typography/index.d.ts +2 -2
  90. package/Typography/index.js +18 -27
  91. package/Typography/index.props.d.ts +3 -12
  92. package/base/BaseInput/BaseInput.module.scss.js +7 -0
  93. package/base/BaseInput/index.d.ts +4 -0
  94. package/base/BaseInput/index.js +30 -0
  95. package/base/BaseInput/index.props.d.ts +4 -0
  96. package/base/FormField/FormField.module.scss.js +7 -0
  97. package/base/FormField/index.d.ts +2 -2
  98. package/base/FormField/index.js +16 -14
  99. package/base/InputRoot/InputRoot.module.scss.js +7 -0
  100. package/base/InputRoot/index.d.ts +2 -2
  101. package/base/InputRoot/index.js +20 -16
  102. package/base/InputRoot/index.props.d.ts +5 -33
  103. package/esm/Badge/Badge.module.scss.js +3 -0
  104. package/esm/Badge/Control/Control.module.scss.js +3 -0
  105. package/esm/Badge/Control/index.js +6 -7
  106. package/esm/Badge/index.js +21 -20
  107. package/esm/Button/Button.module.scss.js +3 -0
  108. package/esm/Button/index.js +23 -24
  109. package/esm/Button/index.props.d.ts +3 -34
  110. package/esm/Checkbox/Checkbox.module.scss.js +3 -0
  111. package/esm/Checkbox/index.js +33 -34
  112. package/esm/Checkbox/index.props.d.ts +1 -19
  113. package/esm/Counter/Counter.module.scss.js +3 -0
  114. package/esm/Counter/index.d.ts +2 -2
  115. package/esm/Counter/index.js +36 -34
  116. package/esm/Counter/index.props.d.ts +1 -1
  117. package/esm/DotsLoader/DotsLoader.module.scss.js +3 -0
  118. package/esm/DotsLoader/index.js +39 -17
  119. package/esm/Dropdown/Dropdown.module.scss.js +3 -0
  120. package/esm/Dropdown/index.d.ts +2 -2
  121. package/esm/Dropdown/index.js +23 -31
  122. package/esm/Dropdown/index.props.d.ts +2 -2
  123. package/esm/Grid/Grid.module.scss.js +3 -0
  124. package/esm/Grid/Item/Grid-Item.module.scss.js +3 -0
  125. package/esm/Grid/Item/index.js +10 -10
  126. package/esm/Grid/index.js +13 -11
  127. package/esm/Icons/Cart.d.ts +2 -2
  128. package/esm/Icons/Cart.js +4 -7
  129. package/esm/Icons/Chevron.d.ts +2 -2
  130. package/esm/Icons/Chevron.js +8 -10
  131. package/esm/Icons/Close.d.ts +2 -2
  132. package/esm/Icons/Close.js +10 -12
  133. package/esm/Icons/EyeClosed.d.ts +2 -2
  134. package/esm/Icons/EyeClosed.js +5 -7
  135. package/esm/Icons/EyeOpen.d.ts +2 -2
  136. package/esm/Icons/EyeOpen.js +12 -14
  137. package/esm/Icons/Help.d.ts +2 -2
  138. package/esm/Icons/Help.js +8 -10
  139. package/esm/Icons/Info.d.ts +2 -2
  140. package/esm/Icons/Info.js +6 -8
  141. package/esm/Icons/Minus.d.ts +2 -2
  142. package/esm/Icons/Minus.js +6 -9
  143. package/esm/Icons/More.d.ts +2 -2
  144. package/esm/Icons/More.js +15 -17
  145. package/esm/Icons/Plus.d.ts +2 -2
  146. package/esm/Icons/Plus.js +11 -14
  147. package/esm/Icons/Trash.d.ts +2 -2
  148. package/esm/Icons/Trash.js +8 -10
  149. package/esm/Icons/User.d.ts +2 -2
  150. package/esm/Icons/User.js +13 -15
  151. package/esm/Image/Image.module.scss.js +3 -0
  152. package/esm/Image/index.d.ts +2 -2
  153. package/esm/Image/index.js +23 -23
  154. package/esm/Input/index.d.ts +2 -2
  155. package/esm/Input/index.js +18 -25
  156. package/esm/Input/index.props.d.ts +3 -3
  157. package/esm/Menu/Menu.module.scss.js +3 -0
  158. package/esm/Menu/components/MenuItem/MenuItem.module.scss.js +3 -0
  159. package/esm/Menu/components/MenuItem/index.js +19 -14
  160. package/esm/Menu/components/MenuItem/index.props.d.ts +1 -14
  161. package/esm/Menu/index.js +6 -7
  162. package/esm/Menu/index.props.d.ts +3 -21
  163. package/esm/Modal/Modal.module.scss.js +3 -0
  164. package/esm/Modal/components/Close/Close.module.scss.js +3 -0
  165. package/esm/Modal/components/Close/index.js +7 -3
  166. package/esm/Modal/components/Content/Content.module.scss.js +3 -0
  167. package/esm/Modal/components/Content/index.js +6 -5
  168. package/esm/Modal/components/Title/Title.module.scss.js +3 -0
  169. package/esm/Modal/components/Title/index.d.ts +0 -2
  170. package/esm/Modal/components/Title/index.js +10 -12
  171. package/esm/Modal/index.js +28 -26
  172. package/esm/Select/Select.module.scss.js +3 -0
  173. package/esm/Select/index.d.ts +2 -1
  174. package/esm/Select/index.js +49 -44
  175. package/esm/Separator/Separator.module.scss.js +3 -0
  176. package/esm/Separator/index.d.ts +3 -3
  177. package/esm/Separator/index.js +5 -4
  178. package/esm/Skeleton/Skeleton.module.scss.js +3 -0
  179. package/esm/Skeleton/index.js +7 -6
  180. package/esm/Switch/Switch.module.scss.js +3 -0
  181. package/esm/Switch/index.d.ts +2 -2
  182. package/esm/Switch/index.js +25 -14
  183. package/esm/Switch/index.props.d.ts +2 -15
  184. package/esm/Theme/index.d.ts +83 -234
  185. package/esm/Theme/index.js +3 -15
  186. package/esm/Theme/themes/buenos_aires.d.ts +9 -185
  187. package/esm/Theme/themes/buenos_aires.js +7 -222
  188. package/esm/Theme/themes/default.d.ts +79 -184
  189. package/esm/Theme/themes/default.js +78 -220
  190. package/esm/Typography/Typography.module.scss.js +3 -0
  191. package/esm/Typography/index.d.ts +2 -2
  192. package/esm/Typography/index.js +15 -29
  193. package/esm/Typography/index.props.d.ts +3 -12
  194. package/esm/base/BaseInput/BaseInput.module.scss.js +3 -0
  195. package/esm/base/BaseInput/index.d.ts +4 -0
  196. package/esm/base/BaseInput/index.js +21 -0
  197. package/esm/base/BaseInput/index.props.d.ts +4 -0
  198. package/esm/base/FormField/FormField.module.scss.js +3 -0
  199. package/esm/base/FormField/index.d.ts +2 -2
  200. package/esm/base/FormField/index.js +12 -15
  201. package/esm/base/InputRoot/InputRoot.module.scss.js +3 -0
  202. package/esm/base/InputRoot/index.d.ts +2 -2
  203. package/esm/base/InputRoot/index.js +16 -17
  204. package/esm/base/InputRoot/index.props.d.ts +5 -33
  205. package/esm/hooks/useMediaSizes/index.d.ts +1 -1
  206. package/esm/index.d.ts +1 -1
  207. package/esm/index.js +1 -1
  208. package/hooks/useMediaSizes/index.d.ts +1 -1
  209. package/index.d.ts +1 -1
  210. package/index.js +0 -1
  211. package/package.json +3 -51
  212. package/Badge/Control/styles.d.ts +0 -5
  213. package/Badge/Control/styles.js +0 -18
  214. package/Badge/styles.d.ts +0 -8
  215. package/Badge/styles.js +0 -31
  216. package/Button/styles.d.ts +0 -16
  217. package/Button/styles.js +0 -61
  218. package/Checkbox/styles.d.ts +0 -32
  219. package/Checkbox/styles.js +0 -75
  220. package/Counter/styles.d.ts +0 -17
  221. package/Counter/styles.js +0 -42
  222. package/DotsLoader/styles.d.ts +0 -15
  223. package/DotsLoader/styles.js +0 -41
  224. package/Dropdown/styles.d.ts +0 -9
  225. package/Dropdown/styles.js +0 -29
  226. package/Grid/Item/styles.d.ts +0 -7
  227. package/Grid/Item/styles.js +0 -21
  228. package/Grid/styles.d.ts +0 -13
  229. package/Grid/styles.js +0 -34
  230. package/Image/styles.d.ts +0 -5
  231. package/Image/styles.js +0 -18
  232. package/Menu/components/MenuItem/styles.d.ts +0 -10
  233. package/Menu/components/MenuItem/styles.js +0 -31
  234. package/Menu/styles.d.ts +0 -5
  235. package/Menu/styles.js +0 -24
  236. package/Modal/components/Close/styles.d.ts +0 -4
  237. package/Modal/components/Close/styles.js +0 -20
  238. package/Modal/components/Content/styles.d.ts +0 -5
  239. package/Modal/components/Content/styles.js +0 -18
  240. package/Modal/components/Title/styles.d.ts +0 -8
  241. package/Modal/components/Title/styles.js +0 -27
  242. package/Modal/styles.d.ts +0 -21
  243. package/Modal/styles.js +0 -61
  244. package/Select/styles.d.ts +0 -20
  245. package/Select/styles.js +0 -57
  246. package/Separator/styles.d.ts +0 -5
  247. package/Separator/styles.js +0 -21
  248. package/Skeleton/styles.d.ts +0 -9
  249. package/Skeleton/styles.js +0 -31
  250. package/Switch/styles.d.ts +0 -19
  251. package/Switch/styles.js +0 -58
  252. package/Theme/global.d.ts +0 -2
  253. package/Theme/global.js +0 -14
  254. package/Theme/index.props.d.ts +0 -18
  255. package/Typography/styles.d.ts +0 -10
  256. package/Typography/styles.js +0 -78
  257. package/base/FormField/styles.d.ts +0 -5
  258. package/base/FormField/styles.js +0 -18
  259. package/base/InputRoot/styles.d.ts +0 -27
  260. package/base/InputRoot/styles.js +0 -82
  261. package/esm/Badge/Control/styles.d.ts +0 -5
  262. package/esm/Badge/Control/styles.js +0 -12
  263. package/esm/Badge/styles.d.ts +0 -8
  264. package/esm/Badge/styles.js +0 -25
  265. package/esm/Button/styles.d.ts +0 -16
  266. package/esm/Button/styles.js +0 -54
  267. package/esm/Checkbox/styles.d.ts +0 -32
  268. package/esm/Checkbox/styles.js +0 -64
  269. package/esm/Counter/styles.d.ts +0 -17
  270. package/esm/Counter/styles.js +0 -34
  271. package/esm/DotsLoader/styles.d.ts +0 -15
  272. package/esm/DotsLoader/styles.js +0 -34
  273. package/esm/Dropdown/styles.d.ts +0 -9
  274. package/esm/Dropdown/styles.js +0 -22
  275. package/esm/Grid/Item/styles.d.ts +0 -7
  276. package/esm/Grid/Item/styles.js +0 -15
  277. package/esm/Grid/styles.d.ts +0 -13
  278. package/esm/Grid/styles.js +0 -27
  279. package/esm/Image/styles.d.ts +0 -5
  280. package/esm/Image/styles.js +0 -12
  281. package/esm/Menu/components/MenuItem/styles.d.ts +0 -10
  282. package/esm/Menu/components/MenuItem/styles.js +0 -25
  283. package/esm/Menu/styles.d.ts +0 -5
  284. package/esm/Menu/styles.js +0 -18
  285. package/esm/Modal/components/Close/styles.d.ts +0 -4
  286. package/esm/Modal/components/Close/styles.js +0 -14
  287. package/esm/Modal/components/Content/styles.d.ts +0 -5
  288. package/esm/Modal/components/Content/styles.js +0 -12
  289. package/esm/Modal/components/Title/styles.d.ts +0 -8
  290. package/esm/Modal/components/Title/styles.js +0 -21
  291. package/esm/Modal/styles.d.ts +0 -21
  292. package/esm/Modal/styles.js +0 -51
  293. package/esm/Select/styles.d.ts +0 -20
  294. package/esm/Select/styles.js +0 -48
  295. package/esm/Separator/styles.d.ts +0 -5
  296. package/esm/Separator/styles.js +0 -15
  297. package/esm/Skeleton/styles.d.ts +0 -9
  298. package/esm/Skeleton/styles.js +0 -24
  299. package/esm/Switch/styles.d.ts +0 -19
  300. package/esm/Switch/styles.js +0 -49
  301. package/esm/Theme/global.d.ts +0 -2
  302. package/esm/Theme/global.js +0 -10
  303. package/esm/Theme/index.props.d.ts +0 -18
  304. package/esm/Typography/styles.d.ts +0 -10
  305. package/esm/Typography/styles.js +0 -72
  306. package/esm/base/FormField/styles.d.ts +0 -5
  307. package/esm/base/FormField/styles.js +0 -12
  308. package/esm/base/InputRoot/styles.d.ts +0 -27
  309. package/esm/base/InputRoot/styles.js +0 -72
@@ -1,16 +1,15 @@
1
1
  import { __rest, __assign } from 'tslib';
2
- import { jsx } from '@emotion/react/jsx-runtime';
3
- import { Root } from './styles.js';
2
+ import React from 'react';
3
+ import classNames from 'classnames';
4
+ import styles from './Control.module.scss.js';
4
5
 
5
6
  var BadgeControl = function BadgeControl(_a) {
6
7
  var className = _a.className,
7
8
  children = _a.children,
8
9
  props = __rest(_a, ["className", "children"]);
9
- return jsx(Root, __assign({
10
- className: className
11
- }, props, {
12
- children: children
13
- }));
10
+ return /*#__PURE__*/React.createElement("span", __assign({
11
+ className: classNames(styles.root, className)
12
+ }, props), children);
14
13
  };
15
14
 
16
15
  export { BadgeControl };
@@ -1,20 +1,23 @@
1
1
  import { __rest, __assign } from 'tslib';
2
- import { jsxs, jsx } from '@emotion/react/jsx-runtime';
2
+ import React from 'react';
3
+ import classNames from 'classnames/bind';
3
4
  import { BadgeControl } from './Control/index.js';
4
- import { Root } from './styles.js';
5
+ import styles from './Badge.module.scss.js';
5
6
 
7
+ var clx = classNames.bind(styles);
6
8
  var Badge = function Badge(_a) {
9
+ var _b;
7
10
  var className = _a.className,
8
11
  content = _a.content,
9
12
  children = _a.children,
10
13
  invisibleProp = _a.invisible,
11
- _b = _a.max,
12
- max = _b === void 0 ? 99 : _b,
13
- _c = _a.showZero,
14
- showZero = _c === void 0 ? false : _c,
14
+ _c = _a.max,
15
+ max = _c === void 0 ? 99 : _c,
16
+ _d = _a.showZero,
17
+ showZero = _d === void 0 ? false : _d,
15
18
  color = _a.color,
16
- _d = _a.direction,
17
- direction = _d === void 0 ? "right" : _d,
19
+ _e = _a.direction,
20
+ direction = _e === void 0 ? "right" : _e,
18
21
  background = _a.background,
19
22
  props = __rest(_a, ["className", "content", "children", "invisible", "max", "showZero", "color", "direction", "background"]);
20
23
  var invisible = invisibleProp;
@@ -25,18 +28,16 @@ var Badge = function Badge(_a) {
25
28
  if (content) {
26
29
  displayValue = content > max ? "".concat(max, "+") : content;
27
30
  }
28
- return jsxs(BadgeControl, __assign({}, props, {
29
- children: [children, jsx(Root, {
30
- style: {
31
- color: color,
32
- backgroundColor: background
33
- },
34
- direction: direction,
35
- invisible: invisible,
36
- className: className,
37
- children: displayValue
38
- })]
39
- }));
31
+ return /*#__PURE__*/React.createElement(BadgeControl, __assign({}, props), children, /*#__PURE__*/React.createElement("span", {
32
+ style: {
33
+ color: color,
34
+ backgroundColor: background
35
+ },
36
+ className: clx((_b = {
37
+ root: true
38
+ }, _b["root_direction_".concat(direction)] = !!direction, _b.root_invisible = invisible, _b), className),
39
+ "data-cy": "badge"
40
+ }, displayValue));
40
41
  };
41
42
 
42
43
  export { Badge as default };
@@ -0,0 +1,3 @@
1
+ var styles = ".root {\n color: var(--palette-black);\n padding: 0 12px;\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n gap: 8px;\n flex-shrink: 0;\n border: 1px solid;\n font-style: normal;\n font-weight: 400;\n height: 36px;\n font-size: 15px;\n line-height: 36px;\n transition: transform 0.1s ease-out;\n color: 0.15s linear;\n transform: scale(1);\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n width: fit-content;\n border-radius: var(--button-border-radius);\n}\n.root_icon {\n border-radius: 50%;\n width: 36px;\n}\n.root_icon.size_xs {\n width: 29px;\n}\n.root_icon.size_s {\n width: 32px;\n}\n.root_icon.size_m {\n width: 36px;\n}\n.root_icon.size_l {\n width: 42px;\n}\n.root_fullWidth {\n width: 100%;\n}\n.root_disabled {\n cursor: not-allowed;\n pointer-events: none;\n color: var(--button-primary-color-disabled);\n background-color: var(--button-primary-background-color-disabled);\n border-color: var(--button-primary-border-color-disabled);\n}\n\n.icon {\n display: flex;\n}\n\n.size_xs {\n height: 29px;\n font-size: 12px;\n line-height: 29px;\n}\n.size_s {\n height: 32px;\n font-size: 13px;\n line-height: 32px;\n}\n.size_m {\n height: 36px;\n font-size: 15px;\n line-height: 36px;\n}\n.size_l {\n height: 42px;\n font-size: 18px;\n line-height: 42px;\n}\n\n.variant_primary {\n color: var(--button-primary-color);\n background-color: var(--button-primary-background-color);\n border-color: var(--button-primary-border-color);\n}\n.variant_primary:hover {\n color: var(--button-primary-color-hovered);\n background-color: var(--button-primary-background-color-hovered);\n border-color: var(--button-primary-border-color-hovered);\n}\n.variant_primary:active {\n color: var(--button-primary-color-active);\n background-color: var(--button-primary-background-color-active);\n border-color: var(--button-primary-border-color-active);\n}\n.variant_secondary {\n color: var(--button-secondary-color);\n background-color: var(--button-secondary-background-color);\n border-color: var(--button-secondary-border-color);\n}\n.variant_secondary:hover {\n color: var(--button-secondary-color-hovered);\n background-color: var(--button-secondary-background-color-hovered);\n border-color: var(--button-secondary-border-color-hovered);\n}\n.variant_secondary:active {\n color: var(--button-secondary-color-active);\n background-color: var(--button-secondary-background-color-active);\n border-color: var(--button-secondary-border-color-active);\n}\n.variant_pseudo {\n color: var(--button-pseudo-color);\n background-color: var(--button-pseudo-background-color);\n border-color: var(--button-pseudo-border-color);\n}\n.variant_pseudo:hover {\n color: var(--button-pseudo-color-hovered);\n background-color: var(--button-pseudo-background-color-hovered);\n border-color: var(--button-pseudo-border-color-hovered);\n}\n.variant_pseudo:active {\n color: var(--button-pseudo-color-active);\n background-color: var(--button-pseudo-background-color-active);\n border-color: var(--button-pseudo-border-color-active);\n}\n.variant_clear {\n color: var(--button-clear-color);\n background-color: transparent;\n border-color: transparent;\n}\n.variant_clear:hover {\n color: var(--button-clear-color-hovered);\n}\n.variant_clear:active {\n color: var(--button-clear-color-active);\n}";
2
+
3
+ export { styles as default };
@@ -1,14 +1,14 @@
1
1
  import { __rest, __assign } from 'tslib';
2
- import { jsxs, jsx } from '@emotion/react/jsx-runtime';
3
- import { forwardRef } from 'react';
4
- import { StyledButton, StyledIcon } from './styles.js';
2
+ import React, { forwardRef } from 'react';
3
+ import classNames from 'classnames/bind';
4
+ import styles from './Button.module.scss.js';
5
5
 
6
+ var clx = classNames.bind(styles);
6
7
  var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
8
+ var _b;
7
9
  var className = _a.className,
8
- _b = _a.fullWidth,
9
- fullWidth = _b === void 0 ? false : _b,
10
- _c = _a.scale,
11
- scale = _c === void 0 ? false : _c,
10
+ _c = _a.fullWidth,
11
+ fullWidth = _c === void 0 ? false : _c,
12
12
  _d = _a.variant,
13
13
  variant = _d === void 0 ? "primary" : _d,
14
14
  iconStart = _a.iconStart,
@@ -16,27 +16,26 @@ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
16
16
  icon = _a.icon,
17
17
  size = _a.size,
18
18
  children = _a.children,
19
+ disabled = _a.disabled,
19
20
  onClick = _a.onClick,
20
- props = __rest(_a, ["className", "fullWidth", "scale", "variant", "iconStart", "iconEnd", "icon", "size", "children", "onClick"]);
21
- return jsxs(StyledButton, __assign({
21
+ props = __rest(_a, ["className", "fullWidth", "variant", "iconStart", "iconEnd", "icon", "size", "children", "disabled", "onClick"]);
22
+ return /*#__PURE__*/React.createElement("button", __assign({
22
23
  onClick: onClick,
23
24
  ref: ref,
24
- size: size,
25
- className: className,
26
- variant: variant,
27
- icon: icon,
28
- fullWidth: fullWidth,
29
- scale: scale,
25
+ className: clx(styles.root, (_b = {
26
+ root_icon: !!icon,
27
+ root_disabled: disabled ? 1 : 0,
28
+ root_fullWidth: fullWidth ? 1 : 0
29
+ }, _b["size_".concat(size)] = !!size, _b["variant_".concat(variant)] = !!variant, _b), className),
30
+ disabled: disabled,
30
31
  "data-cy": "button"
31
- }, props, {
32
- children: [icon && jsx(StyledIcon, {
33
- children: icon
34
- }), iconStart && jsx(StyledIcon, {
35
- children: iconStart
36
- }), children && children, iconEnd && jsx(StyledIcon, {
37
- children: iconEnd
38
- })]
39
- }));
32
+ }, props), icon && /*#__PURE__*/React.createElement("span", {
33
+ className: clx(styles.icon)
34
+ }, icon), iconStart && /*#__PURE__*/React.createElement("span", {
35
+ className: clx(styles.icon)
36
+ }, iconStart), children && children, iconEnd && /*#__PURE__*/React.createElement("span", {
37
+ className: clx(styles.icon)
38
+ }, iconEnd));
40
39
  });
41
40
 
42
41
  export { Button as default };
@@ -1,43 +1,12 @@
1
1
  import type { ButtonHTMLAttributes, ReactNode } from "react";
2
- import type { CSSObject } from "@emotion/react";
3
- type BaseStyles = {
4
- color?: CSSObject["color"];
5
- borderRadius: CSSObject["borderRadius"];
6
- border?: CSSObject["border"];
7
- };
8
- type VariantStyles = {
9
- color?: CSSObject["color"];
10
- backgroundColor?: CSSObject["backgroundColor"];
11
- borderColor?: CSSObject["borderColor"];
12
- boxShadow?: CSSObject["boxShadow"];
13
- borderWidth?: CSSObject["borderWidth"];
14
- borderRadius?: CSSObject["borderRadius"];
15
- border?: CSSObject["border"];
16
- };
17
- type VariantStates = {
18
- normal?: VariantStyles;
19
- hovered?: VariantStyles;
20
- focused?: VariantStyles;
21
- active?: VariantStyles;
22
- disabled?: VariantStyles;
23
- };
24
- export type ButtonBase = {
25
- base: BaseStyles;
26
- };
27
- export type ButtonVariant = {
28
- primary: VariantStates;
29
- secondary: VariantStates;
30
- pseudo: VariantStates;
31
- clear: VariantStates;
32
- };
2
+ export type ButtonVariant = "primary" | "secondary" | "pseudo" | "clear";
33
3
  export type ButtonSize = "xs" | "s" | "m" | "l";
34
4
  export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
35
- variant?: keyof ButtonVariant;
5
+ variant?: ButtonVariant;
36
6
  fullWidth?: boolean;
37
7
  icon?: ReactNode;
38
8
  iconStart?: ReactNode;
39
9
  iconEnd?: ReactNode;
40
10
  size?: ButtonSize;
41
- scale?: boolean;
11
+ disabled?: boolean;
42
12
  }
43
- export {};
@@ -0,0 +1,3 @@
1
+ var styles = ".root {\n display: flex;\n flex-direction: column;\n}\n\n.wrapper {\n display: flex;\n}\n\n.label {\n display: inline-flex;\n line-height: 18px;\n position: relative;\n cursor: pointer;\n}\n\n.text {\n font-size: 16px;\n margin-block-start: -1px;\n margin-inline-start: 8px;\n}\n\n.fakeCheckbox {\n background-color: var(--palette-white);\n block-size: 16px;\n border: 1px solid var(--palette-bg-3);\n border-radius: 4px;\n box-sizing: border-box;\n direction: ltr;\n display: block;\n flex-shrink: 0;\n inline-size: 16px;\n position: relative;\n transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;\n}\n\n.checked {\n border: 0;\n background-color: var(--checkbox-primary-background-color-checked);\n}\n.checked::after {\n box-sizing: content-box;\n content: \"\";\n display: block;\n position: absolute;\n block-size: 8px;\n border-block-end: 2px solid var(--palette-black);\n border-inline-end: 2px solid var(--palette-black);\n inline-size: 4px;\n inset-block-start: 45%;\n inset-inline-start: 50%;\n transform: translate(-50%, -50%) rotate(45deg);\n}\n\n.variant_primary_error {\n border-color: red;\n box-shadow: 0 0 0 2px red;\n}\n.variant_primary_checked::after {\n border-block-end: 2px solid var(--palette-white);\n border-inline-end: 2px solid var(--palette-white);\n}\n\n.control {\n inset-inline-start: -9999px;\n position: absolute;\n}\n.control:disabled + .fakeCheckbox::after {\n border-block-end: 2px solid var(--palette-bg-4);\n border-inline-end: 2px solid var(--palette-bg-4);\n}\n.control:hover:not(:disabled) + .fakeCheckbox {\n border-color: var(--palette-bg-3);\n}\n.control_variant_primary:focus:not(:disabled) + .fakeCheckbox {\n box-shadow: 0 0 0 2px var(--checkbox-primary-box-shadow-focused);\n}\n.control_variant_primary:hover:not(:disabled) + .fakeCheckbox {\n background-color: var(--checkbox-primary-background-color-hovered);\n}\n.control_variant_primary:active:not(:disabled) + .fakeCheckbox {\n background-color: var(--checkbox-primary-background-color-active);\n border-color: var(--checkbox-primary-border-color-active);\n box-shadow: var(--checkbox-primary-box-shadow-active);\n}\n.control_variant_primary:disabled + .fakeCheckbox {\n z-index: 1;\n background-color: var(--checkbox-primary-background-color-disabled);\n}";
2
+
3
+ export { styles as default };
@@ -1,8 +1,11 @@
1
- import { jsx, jsxs } from '@emotion/react/jsx-runtime';
1
+ import React from 'react';
2
+ import classNames from 'classnames/bind';
2
3
  import Typography from '../Typography/index.js';
3
- import { Label, Wrapper, Control, FakeCheckbox, Text, Root } from './styles.js';
4
+ import styles from './Checkbox.module.scss.js';
4
5
 
6
+ var clx = classNames.bind(styles);
5
7
  var Checkbox = function Checkbox(_a) {
8
+ var _b, _c;
6
9
  var id = _a.id,
7
10
  name = _a.name,
8
11
  value = _a.value,
@@ -12,41 +15,37 @@ var Checkbox = function Checkbox(_a) {
12
15
  onChange = _a.onChange,
13
16
  onFocus = _a.onFocus,
14
17
  onBlur = _a.onBlur,
15
- _b = _a.variant,
16
- variant = _b === void 0 ? "primary" : _b,
18
+ _d = _a.variant,
19
+ variant = _d === void 0 ? "primary" : _d,
17
20
  className = _a.className,
18
21
  disabled = _a.disabled,
19
22
  isError = _a.isError;
20
- var control = jsx(Label, {
21
- children: jsxs(Wrapper, {
22
- children: [jsx(Control, {
23
- className: className,
24
- type: "checkbox",
25
- id: id,
26
- variant: variant,
27
- name: name,
28
- value: value,
29
- checked: checked,
30
- onChange: onChange,
31
- onFocus: onFocus,
32
- onBlur: onBlur,
33
- disabled: disabled
34
- }), jsx(FakeCheckbox, {
35
- variant: variant,
36
- checked: checked,
37
- isError: isError
38
- }), jsx(Text, {
39
- children: label
40
- })]
41
- })
42
- });
43
- return jsxs(Root, {
44
- children: [control, hint && jsx(Typography, {
45
- variant: isError ? "alert" : "secondary",
46
- tag: "span",
47
- children: hint
48
- })]
49
- });
23
+ var control = /*#__PURE__*/React.createElement("label", {
24
+ className: clx(styles.label)
25
+ }, /*#__PURE__*/React.createElement("div", {
26
+ className: clx(styles.wrapper)
27
+ }, /*#__PURE__*/React.createElement("input", {
28
+ className: clx(styles.control, (_b = {}, _b["control_variant_".concat(variant)] = !!variant, _b), className),
29
+ type: "checkbox",
30
+ id: id,
31
+ name: name,
32
+ value: value,
33
+ checked: checked,
34
+ onChange: onChange,
35
+ onFocus: onFocus,
36
+ onBlur: onBlur,
37
+ disabled: disabled
38
+ }), /*#__PURE__*/React.createElement("span", {
39
+ className: clx(styles.fakeCheckbox, (_c = {}, _c["variant_".concat(variant, "_disabled")] = disabled ? 1 : 0, _c["variant_".concat(variant, "_error")] = isError ? 1 : 0, _c["variant_".concat(variant, "_checked")] = checked ? 1 : 0, _c.checked = checked ? 1 : 0, _c["variant_".concat(variant)] = !!variant, _c))
40
+ }), /*#__PURE__*/React.createElement("span", {
41
+ className: clx(styles.text)
42
+ }, label)));
43
+ return /*#__PURE__*/React.createElement("div", {
44
+ className: clx(styles.root)
45
+ }, control, hint && ( /*#__PURE__*/React.createElement(Typography, {
46
+ variant: isError ? "alert" : "secondary",
47
+ tag: "span"
48
+ }, hint)));
50
49
  };
51
50
 
52
51
  export { Checkbox as default };
@@ -1,23 +1,6 @@
1
1
  import type { ReactNode } from "react";
2
- import type { CSSObject } from "@emotion/react";
3
- type VariantStyles = {
4
- backgroundColor?: CSSObject["backgroundColor"];
5
- borderColor?: CSSObject["borderColor"];
6
- boxShadow?: CSSObject["boxShadow"];
7
- };
8
- type VariantStates = {
9
- normal?: VariantStyles;
10
- hovered?: VariantStyles;
11
- checked?: VariantStyles;
12
- focused?: VariantStyles;
13
- active?: VariantStyles;
14
- disabled?: VariantStyles;
15
- };
16
- export type CheckboxVariant = {
17
- primary: VariantStates;
18
- };
19
2
  export interface CheckboxProps {
20
- variant?: keyof CheckboxVariant;
3
+ variant?: "primary";
21
4
  size?: "s" | "m" | "l";
22
5
  id?: string;
23
6
  name?: string;
@@ -32,4 +15,3 @@ export interface CheckboxProps {
32
15
  disabled?: boolean;
33
16
  isError?: boolean;
34
17
  }
35
- export {};
@@ -0,0 +1,3 @@
1
+ var styles = ".root {\n background-color: var(--palette-white);\n border-radius: 4px;\n box-sizing: border-box;\n display: inline-block;\n font-size: 16px;\n max-block-size: 40px;\n min-block-size: 40px;\n min-inline-size: 96px;\n overflow: hidden;\n position: relative;\n}\n.root_fullWidth {\n inline-size: 100%;\n}\n\n.control {\n align-items: center;\n block-size: 38px;\n display: flex;\n justify-content: space-between;\n gap: 4px;\n}\n.control_fullWidth {\n inline-size: 100%;\n}\n\n.value {\n font-weight: 500;\n font-size: 18px;\n inline-size: 24px;\n user-select: none;\n text-align: center;\n}";
2
+
3
+ export { styles as default };
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import type { Props } from "./index.props";
3
- declare const Counter: React.FC<Props>;
2
+ import type { CounterProps } from "./index.props";
3
+ declare const Counter: React.FC<CounterProps>;
4
4
  export default Counter;
@@ -1,10 +1,11 @@
1
- import { jsx, jsxs } from '@emotion/react/jsx-runtime';
2
- import { useRef } from 'react';
1
+ import React, { useRef } from 'react';
2
+ import classNames from 'classnames/bind';
3
3
  import Button from '../Button/index.js';
4
4
  import MinusIcon from '../Icons/Minus.js';
5
5
  import PlusIcon from '../Icons/Plus.js';
6
- import { Root, Control, Value } from './styles.js';
6
+ import styles from './Counter.module.scss.js';
7
7
 
8
+ var clx = classNames.bind(styles);
8
9
  var Counter = function Counter(_a) {
9
10
  var _b = _a.value,
10
11
  value = _b === void 0 ? 1 : _b,
@@ -18,38 +19,39 @@ var Counter = function Counter(_a) {
18
19
  var lastNumValue = useRef(value);
19
20
  var minusDisabled = disabled || value <= min;
20
21
  var plusDisabled = disabled || value >= max;
21
- return jsx(Root, {
22
- className: className,
23
- fullWidth: fullWidth,
24
- children: jsxs(Control, {
25
- fullWidth: fullWidth,
26
- children: [jsx(Button, {
27
- icon: jsx(MinusIcon, {
28
- width: 16,
29
- height: 16
30
- }),
31
- disabled: minusDisabled,
32
- onClick: function onClick() {
33
- onChange(value - 1);
34
- lastNumValue.current = value - 1;
35
- },
36
- "aria-label": "decrease"
37
- }), jsx(Value, {
38
- children: value
39
- }), jsx(Button, {
40
- icon: jsx(PlusIcon, {
41
- width: 16,
42
- height: 16
43
- }),
44
- disabled: plusDisabled,
45
- onClick: function onClick() {
46
- onChange(value + 1);
47
- lastNumValue.current = value + 1;
48
- },
49
- "aria-label": "increase"
50
- })]
22
+ return /*#__PURE__*/React.createElement("div", {
23
+ className: clx(styles.root, {
24
+ root_fullWidth: fullWidth ? 1 : 0
25
+ }, className)
26
+ }, /*#__PURE__*/React.createElement("div", {
27
+ className: clx(styles.control, {
28
+ control_fullWidth: fullWidth ? 1 : 0
51
29
  })
52
- });
30
+ }, /*#__PURE__*/React.createElement(Button, {
31
+ icon: /*#__PURE__*/React.createElement(MinusIcon, {
32
+ width: 16,
33
+ height: 16
34
+ }),
35
+ disabled: minusDisabled,
36
+ onClick: function onClick() {
37
+ onChange(value - 1);
38
+ lastNumValue.current = value - 1;
39
+ },
40
+ "aria-label": "decrease"
41
+ }), /*#__PURE__*/React.createElement("div", {
42
+ className: clx(styles.value)
43
+ }, value), /*#__PURE__*/React.createElement(Button, {
44
+ icon: /*#__PURE__*/React.createElement(PlusIcon, {
45
+ width: 16,
46
+ height: 16
47
+ }),
48
+ disabled: plusDisabled,
49
+ onClick: function onClick() {
50
+ onChange(value + 1);
51
+ lastNumValue.current = value + 1;
52
+ },
53
+ "aria-label": "increase"
54
+ })));
53
55
  };
54
56
 
55
57
  export { Counter as default };
@@ -1,4 +1,4 @@
1
- export type Props = {
1
+ export type CounterProps = {
2
2
  value: number;
3
3
  max: number;
4
4
  min: number;
@@ -0,0 +1,3 @@
1
+ var styles = ".wrapper {\n display: flex;\n justify-content: space-between;\n width: 70px;\n}\n\n.dot {\n animation-duration: 1.6s;\n animation-iteration-count: infinite;\n animation-name: pending;\n background-color: var(--palette-black);\n border-radius: 5px;\n height: 10px;\n transform: scale(0);\n width: 10px;\n}\n@keyframes pending {\n 0% {\n transform: scale(0);\n }\n 50% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n}\n.dot_first {\n animation-delay: 0s;\n}\n.dot_second {\n animation-delay: 0.2s;\n}\n.dot_third {\n animation-delay: 0.4s;\n}\n.dot_fourth {\n animation-delay: 0.6s;\n}";
2
+
3
+ export { styles as default };
@@ -1,23 +1,45 @@
1
- import { jsxs, jsx } from '@emotion/react/jsx-runtime';
2
- import { Wrapper, Dot } from './styles.js';
1
+ import React from 'react';
2
+ import classNames from 'classnames/bind';
3
+ import styles from './DotsLoader.module.scss.js';
3
4
 
5
+ var clx = classNames.bind(styles);
4
6
  var DotsLoader = function DotsLoader(_a) {
5
7
  var color = _a.color;
6
- return jsxs(Wrapper, {
7
- children: [jsx(Dot, {
8
- first: true,
9
- color: color
10
- }), jsx(Dot, {
11
- second: true,
12
- color: color
13
- }), jsx(Dot, {
14
- third: true,
15
- color: color
16
- }), jsx(Dot, {
17
- fourth: true,
18
- color: color
19
- })]
20
- });
8
+ return /*#__PURE__*/React.createElement("div", {
9
+ className: clx("wrapper")
10
+ }, /*#__PURE__*/React.createElement("div", {
11
+ style: {
12
+ backgroundColor: color
13
+ },
14
+ className: clx({
15
+ dot: true,
16
+ dot_first: true
17
+ })
18
+ }), /*#__PURE__*/React.createElement("div", {
19
+ style: {
20
+ backgroundColor: color
21
+ },
22
+ className: clx({
23
+ dot: true,
24
+ dot_second: true
25
+ })
26
+ }), /*#__PURE__*/React.createElement("div", {
27
+ style: {
28
+ backgroundColor: color
29
+ },
30
+ className: clx({
31
+ dot: true,
32
+ dot_third: true
33
+ })
34
+ }), /*#__PURE__*/React.createElement("div", {
35
+ style: {
36
+ backgroundColor: color
37
+ },
38
+ className: clx({
39
+ dot: true,
40
+ dot_fourth: true
41
+ })
42
+ }));
21
43
  };
22
44
 
23
45
  export { DotsLoader as default };
@@ -0,0 +1,3 @@
1
+ var dropDownStyles = ".popperContainer {\n padding-top: 2px;\n padding-bottom: 2px;\n}\n\n.overlayContainer {\n border-width: 1px;\n border-style: solid;\n border-radius: 4px;\n overflow: hidden;\n border-color: var(--palette-bg-2);\n background-color: var(--palette-white);\n}";
2
+
3
+ export { dropDownStyles as default };
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import type { IDropdownProps } from "./index.props";
3
- declare const Dropdown: React.FC<IDropdownProps>;
2
+ import type { DropdownProps } from "./index.props";
3
+ declare const Dropdown: React.FC<DropdownProps>;
4
4
  export default Dropdown;
@@ -1,11 +1,11 @@
1
1
  import { __assign } from 'tslib';
2
- import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
3
- import { useState, useMemo, Children, useCallback, useEffect } from 'react';
2
+ import React, { useState, useMemo, Children, useCallback, useEffect } from 'react';
4
3
  import { usePopper } from 'react-popper';
4
+ import classNames from 'classnames';
5
5
  import Portal from '../Portal/index.js';
6
6
  import { on } from '../helpers/on.js';
7
7
  import ClickOutside from '../ClickOutside/index.js';
8
- import { PopperContainer, OverlayContainer } from './styles.js';
8
+ import dropDownStyles from './Dropdown.module.scss.js';
9
9
 
10
10
  var Dropdown = function Dropdown(_a) {
11
11
  var children = _a.children,
@@ -51,9 +51,7 @@ var Dropdown = function Dropdown(_a) {
51
51
  update = _l.update;
52
52
  var isNotComponent = typeof children === "string";
53
53
  var reference = useMemo(function () {
54
- return Children.only(isNotComponent ? jsx("button", {
55
- children: children
56
- }) : children);
54
+ return Children.only(isNotComponent ? /*#__PURE__*/React.createElement("button", null, children) : children);
57
55
  }, [children, isNotComponent]);
58
56
  var onToggle = useCallback(function (e) {
59
57
  e.stopPropagation();
@@ -111,31 +109,25 @@ var Dropdown = function Dropdown(_a) {
111
109
  useEffect(function () {
112
110
  if (update) update();
113
111
  }, [update, visible]);
114
- return jsxs(Fragment, {
115
- children: [jsx(reference.type, __assign({
116
- ref: setControlElement,
117
- tabIndex: 0
118
- }, reference.props)), isVisible && jsx(Portal, {
119
- children: jsx(ClickOutside, {
120
- onClick: onClickOutside,
121
- children: jsx(PopperContainer, __assign({
122
- ref: setPopperElement,
123
- style: __assign(__assign(__assign({}, styles.popper), {
124
- zIndex: zIndex,
125
- minWidth: controlElement === null || controlElement === void 0 ? void 0 : controlElement.offsetWidth
126
- }), samewidth && {
127
- maxWidth: controlElement === null || controlElement === void 0 ? void 0 : controlElement.offsetWidth
128
- }),
129
- tabIndex: 0
130
- }, attributes.popper, {
131
- children: jsx(OverlayContainer, {
132
- onClick: onClickOverlay,
133
- children: overlay
134
- })
135
- }))
136
- })
137
- })]
138
- });
112
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(reference.type, __assign({
113
+ ref: setControlElement,
114
+ tabIndex: 0
115
+ }, reference.props)), isVisible && ( /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(ClickOutside, {
116
+ onClick: onClickOutside
117
+ }, /*#__PURE__*/React.createElement("div", __assign({
118
+ ref: setPopperElement,
119
+ className: classNames(dropDownStyles.popperContainer),
120
+ style: __assign(__assign(__assign({}, styles.popper), {
121
+ zIndex: zIndex,
122
+ minWidth: controlElement === null || controlElement === void 0 ? void 0 : controlElement.offsetWidth
123
+ }), samewidth && {
124
+ maxWidth: controlElement === null || controlElement === void 0 ? void 0 : controlElement.offsetWidth
125
+ }),
126
+ tabIndex: 0
127
+ }, attributes.popper), /*#__PURE__*/React.createElement("div", {
128
+ className: classNames(dropDownStyles.overlayContainer),
129
+ onClick: onClickOverlay
130
+ }, overlay))))));
139
131
  };
140
132
 
141
133
  export { Dropdown as default };
@@ -3,7 +3,7 @@ import type { PositioningStrategy } from "@popperjs/core";
3
3
  import type { Placement as PopperPlacement } from "@popperjs/core";
4
4
  export type Placement = Extract<PopperPlacement, "bottom-start" | "bottom" | "bottom-end">;
5
5
  export type Trigger = "click" | "hover" | "focus";
6
- export interface IDropdownProps {
6
+ export type DropdownProps = {
7
7
  children: ReactNode;
8
8
  zIndex?: number;
9
9
  disabled?: boolean;
@@ -15,4 +15,4 @@ export interface IDropdownProps {
15
15
  visible?: boolean;
16
16
  preventOverflow?: boolean;
17
17
  samewidth?: boolean;
18
- }
18
+ };
@@ -0,0 +1,3 @@
1
+ var styles = ".root {\n width: 100%;\n}\n\n.items {\n display: grid;\n grid-auto-flow: row dense;\n}";
2
+
3
+ export { styles as default };
@@ -0,0 +1,3 @@
1
+ var styles = ".full {\n grid-column: 1/-1;\n}";
2
+
3
+ export { styles as default };