@wonderflow/react-components 10.18.1 → 10.19.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 (297) hide show
  1. package/dist/components/accordion/accordion-context.js +1 -1
  2. package/dist/components/accordion/accordion-item.js +1 -1
  3. package/dist/components/accordion/accordion.js +1 -1
  4. package/dist/components/accordion/accordion.test.d.ts +2 -0
  5. package/dist/components/accordion/accordion.test.d.ts.map +1 -0
  6. package/dist/components/accordion/accordion.test.js +35 -0
  7. package/dist/components/accordion/index.js +1 -1
  8. package/dist/components/aspect-ratio/aspect-ratio.js +1 -1
  9. package/dist/components/aspect-ratio/aspect-ratio.test.d.ts +2 -0
  10. package/dist/components/aspect-ratio/aspect-ratio.test.d.ts.map +1 -0
  11. package/dist/components/aspect-ratio/aspect-ratio.test.js +24 -0
  12. package/dist/components/aspect-ratio/index.js +1 -1
  13. package/dist/components/autocomplete/autocomplete-option.d.ts.map +1 -1
  14. package/dist/components/autocomplete/autocomplete-option.js +2 -2
  15. package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
  16. package/dist/components/autocomplete/autocomplete.js +7 -4
  17. package/dist/components/autocomplete/autocomplete.test.d.ts +2 -0
  18. package/dist/components/autocomplete/autocomplete.test.d.ts.map +1 -0
  19. package/dist/components/autocomplete/autocomplete.test.js +42 -0
  20. package/dist/components/autocomplete/index.js +1 -1
  21. package/dist/components/avatar/avatar.js +1 -1
  22. package/dist/components/avatar/avatar.test.d.ts +2 -0
  23. package/dist/components/avatar/avatar.test.d.ts.map +1 -0
  24. package/dist/components/avatar/avatar.test.js +28 -0
  25. package/dist/components/avatar/index.js +1 -1
  26. package/dist/components/button/button.d.ts.map +1 -1
  27. package/dist/components/button/button.js +2 -2
  28. package/dist/components/button/button.test.d.ts +2 -0
  29. package/dist/components/button/button.test.d.ts.map +1 -0
  30. package/dist/components/button/button.test.js +56 -0
  31. package/dist/components/button/index.js +1 -1
  32. package/dist/components/card/card.test.d.ts +2 -0
  33. package/dist/components/card/card.test.d.ts.map +1 -0
  34. package/dist/components/card/card.test.js +41 -0
  35. package/dist/components/card/index.js +1 -1
  36. package/dist/components/chip/chip.js +1 -1
  37. package/dist/components/chip/chip.test.d.ts +2 -0
  38. package/dist/components/chip/chip.test.d.ts.map +1 -0
  39. package/dist/components/chip/chip.test.js +29 -0
  40. package/dist/components/chip/index.js +1 -1
  41. package/dist/components/circular-progress/circular-progress.js +1 -1
  42. package/dist/components/circular-progress/circular-progress.test.d.ts +2 -0
  43. package/dist/components/circular-progress/circular-progress.test.d.ts.map +1 -0
  44. package/dist/components/circular-progress/circular-progress.test.js +28 -0
  45. package/dist/components/circular-progress/index.js +1 -1
  46. package/dist/components/clamp-text/clamp-text.d.ts.map +1 -1
  47. package/dist/components/clamp-text/clamp-text.js +2 -2
  48. package/dist/components/clamp-text/clamp-text.test.d.ts +2 -0
  49. package/dist/components/clamp-text/clamp-text.test.d.ts.map +1 -0
  50. package/dist/components/clamp-text/clamp-text.test.js +37 -0
  51. package/dist/components/clamp-text/index.js +1 -1
  52. package/dist/components/container/container.js +1 -1
  53. package/dist/components/container/container.test.d.ts +2 -0
  54. package/dist/components/container/container.test.d.ts.map +1 -0
  55. package/dist/components/container/container.test.js +28 -0
  56. package/dist/components/container/index.js +1 -1
  57. package/dist/components/datetime/datetime.js +1 -1
  58. package/dist/components/datetime/datetime.test.d.ts +2 -0
  59. package/dist/components/datetime/datetime.test.d.ts.map +1 -0
  60. package/dist/components/datetime/datetime.test.js +41 -0
  61. package/dist/components/datetime/index.js +1 -1
  62. package/dist/components/disclosure/disclosure.d.ts.map +1 -1
  63. package/dist/components/disclosure/disclosure.js +2 -2
  64. package/dist/components/disclosure/disclosure.stories.d.ts +7 -7
  65. package/dist/components/disclosure/disclosure.stories.d.ts.map +1 -1
  66. package/dist/components/disclosure/disclosure.stories.js +7 -2
  67. package/dist/components/disclosure/disclosure.test.d.ts +2 -0
  68. package/dist/components/disclosure/disclosure.test.d.ts.map +1 -0
  69. package/dist/components/disclosure/disclosure.test.js +38 -0
  70. package/dist/components/disclosure/index.js +1 -1
  71. package/dist/components/drawer/drawer.js +1 -1
  72. package/dist/components/drawer/index.js +1 -1
  73. package/dist/components/elevator/elevator.js +1 -1
  74. package/dist/components/elevator/elevator.test.d.ts +2 -0
  75. package/dist/components/elevator/elevator.test.d.ts.map +1 -0
  76. package/dist/components/elevator/elevator.test.js +25 -0
  77. package/dist/components/elevator/index.js +1 -1
  78. package/dist/components/expander/expander.d.ts.map +1 -1
  79. package/dist/components/expander/expander.js +2 -2
  80. package/dist/components/expander/expander.test.d.ts +2 -0
  81. package/dist/components/expander/expander.test.d.ts.map +1 -0
  82. package/dist/components/expander/expander.test.js +32 -0
  83. package/dist/components/expander/index.js +1 -1
  84. package/dist/components/grid/grid.test.d.ts +2 -0
  85. package/dist/components/grid/grid.test.d.ts.map +1 -0
  86. package/dist/components/grid/grid.test.js +28 -0
  87. package/dist/components/grid/index.js +1 -1
  88. package/dist/components/grid/item/grid-item.js +1 -1
  89. package/dist/components/icon-button/icon-button.js +1 -1
  90. package/dist/components/icon-button/index.js +1 -1
  91. package/dist/components/index.js +1 -1
  92. package/dist/components/info-state/index.js +1 -1
  93. package/dist/components/info-state/info-state.js +1 -1
  94. package/dist/components/info-state/info-state.test.d.ts +2 -0
  95. package/dist/components/info-state/info-state.test.d.ts.map +1 -0
  96. package/dist/components/info-state/info-state.test.js +33 -0
  97. package/dist/components/input-group/index.js +1 -1
  98. package/dist/components/input-group/input-group.js +1 -1
  99. package/dist/components/input-group/input-group.test.d.ts +2 -0
  100. package/dist/components/input-group/input-group.test.d.ts.map +1 -0
  101. package/dist/components/input-group/input-group.test.js +30 -0
  102. package/dist/components/linear-progress/index.js +1 -1
  103. package/dist/components/linear-progress/linear-progress.js +1 -1
  104. package/dist/components/linear-progress/linear-progress.test.d.ts +2 -0
  105. package/dist/components/linear-progress/linear-progress.test.d.ts.map +1 -0
  106. package/dist/components/linear-progress/linear-progress.test.js +32 -0
  107. package/dist/components/list/index.js +1 -1
  108. package/dist/components/list/list-item.js +1 -1
  109. package/dist/components/list/list.js +1 -1
  110. package/dist/components/list/list.test.d.ts +2 -0
  111. package/dist/components/list/list.test.d.ts.map +1 -0
  112. package/dist/components/list/list.test.js +28 -0
  113. package/dist/components/masonry/index.js +1 -1
  114. package/dist/components/masonry/masonry.test.d.ts +2 -0
  115. package/dist/components/masonry/masonry.test.d.ts.map +1 -0
  116. package/dist/components/masonry/masonry.test.js +28 -0
  117. package/dist/components/menu/index.js +1 -1
  118. package/dist/components/menu/menu-item/menu-item-checkbox.js +1 -1
  119. package/dist/components/menu/menu-item/menu-item.d.ts +0 -2
  120. package/dist/components/menu/menu-item/menu-item.d.ts.map +1 -1
  121. package/dist/components/menu/menu-item/menu-item.js +2 -2
  122. package/dist/components/menu/menu-separator/menu-separator.js +1 -1
  123. package/dist/components/menu/menu.js +1 -1
  124. package/dist/components/menu/menu.test.d.ts +2 -0
  125. package/dist/components/menu/menu.test.d.ts.map +1 -0
  126. package/dist/components/menu/menu.test.js +25 -0
  127. package/dist/components/modal/content/modal-content.js +1 -1
  128. package/dist/components/modal/index.js +1 -1
  129. package/dist/components/modal/modal.js +1 -1
  130. package/dist/components/overlay-container/index.js +1 -1
  131. package/dist/components/overlay-container/overlay-container.js +1 -1
  132. package/dist/components/overlay-container/overlay-container.stories.js +2 -2
  133. package/dist/components/pagination/index.js +1 -1
  134. package/dist/components/pagination/pagination.js +2 -2
  135. package/dist/components/pagination/pagination.test.d.ts +2 -0
  136. package/dist/components/pagination/pagination.test.d.ts.map +1 -0
  137. package/dist/components/pagination/pagination.test.js +29 -0
  138. package/dist/components/popover/index.js +1 -1
  139. package/dist/components/popover/popover.d.ts.map +1 -1
  140. package/dist/components/popover/popover.js +5 -2
  141. package/dist/components/popover/popover.stories.d.ts.map +1 -1
  142. package/dist/components/popover/popover.stories.js +1 -1
  143. package/dist/components/popover/popover.test.d.ts +2 -0
  144. package/dist/components/popover/popover.test.d.ts.map +1 -0
  145. package/dist/components/popover/popover.test.js +41 -0
  146. package/dist/components/prose/index.js +1 -1
  147. package/dist/components/prose/prose.js +1 -1
  148. package/dist/components/prose/prose.test.d.ts +2 -0
  149. package/dist/components/prose/prose.test.d.ts.map +1 -0
  150. package/dist/components/prose/prose.test.js +26 -0
  151. package/dist/components/select/index.js +1 -1
  152. package/dist/components/select/select.js +1 -1
  153. package/dist/components/select/select.test.d.ts +2 -0
  154. package/dist/components/select/select.test.d.ts.map +1 -0
  155. package/dist/components/select/select.test.js +28 -0
  156. package/dist/components/selection-controls/checkbox.js +1 -1
  157. package/dist/components/selection-controls/index.js +1 -1
  158. package/dist/components/selection-controls/radio.js +1 -1
  159. package/dist/components/selection-controls/selection-controls.module.css +1 -1
  160. package/dist/components/selection-controls/selection-controls.test.d.ts +2 -0
  161. package/dist/components/selection-controls/selection-controls.test.d.ts.map +1 -0
  162. package/dist/components/selection-controls/selection-controls.test.js +30 -0
  163. package/dist/components/selection-controls/toggle.js +1 -1
  164. package/dist/components/separator/index.js +1 -1
  165. package/dist/components/separator/separator.js +1 -1
  166. package/dist/components/separator/separator.test.d.ts +2 -0
  167. package/dist/components/separator/separator.test.d.ts.map +1 -0
  168. package/dist/components/separator/separator.test.js +24 -0
  169. package/dist/components/skeleton/index.js +1 -1
  170. package/dist/components/skeleton/skeleton.test.d.ts +2 -0
  171. package/dist/components/skeleton/skeleton.test.d.ts.map +1 -0
  172. package/dist/components/skeleton/skeleton.test.js +28 -0
  173. package/dist/components/slider/index.js +1 -1
  174. package/dist/components/slider/slider.d.ts.map +1 -1
  175. package/dist/components/slider/slider.js +2 -2
  176. package/dist/components/slider/slider.test.d.ts +2 -0
  177. package/dist/components/slider/slider.test.d.ts.map +1 -0
  178. package/dist/components/slider/slider.test.js +30 -0
  179. package/dist/components/snackbar/index.js +1 -1
  180. package/dist/components/snackbar/snackbar.js +1 -1
  181. package/dist/components/snackbar/snackbar.test.d.ts +2 -0
  182. package/dist/components/snackbar/snackbar.test.d.ts.map +1 -0
  183. package/dist/components/snackbar/snackbar.test.js +28 -0
  184. package/dist/components/spinner/index.js +1 -1
  185. package/dist/components/spinner/spinner.js +1 -1
  186. package/dist/components/spinner/spinner.test.d.ts +2 -0
  187. package/dist/components/spinner/spinner.test.d.ts.map +1 -0
  188. package/dist/components/spinner/spinner.test.js +28 -0
  189. package/dist/components/split-button/index.js +1 -1
  190. package/dist/components/split-button/split-button.js +1 -1
  191. package/dist/components/split-button/split-button.test.d.ts +2 -0
  192. package/dist/components/split-button/split-button.test.d.ts.map +1 -0
  193. package/dist/components/split-button/split-button.test.js +24 -0
  194. package/dist/components/stack/index.js +1 -1
  195. package/dist/components/stack/stack.test.d.ts +2 -0
  196. package/dist/components/stack/stack.test.d.ts.map +1 -0
  197. package/dist/components/stack/stack.test.js +28 -0
  198. package/dist/components/star-meter/index.js +1 -1
  199. package/dist/components/star-meter/star-meter.d.ts.map +1 -1
  200. package/dist/components/star-meter/star-meter.js +2 -5
  201. package/dist/components/star-meter/star-meter.test.d.ts +2 -0
  202. package/dist/components/star-meter/star-meter.test.d.ts.map +1 -0
  203. package/dist/components/star-meter/star-meter.test.js +36 -0
  204. package/dist/components/symbol/index.js +1 -1
  205. package/dist/components/symbol/symbol.test.d.ts +2 -0
  206. package/dist/components/symbol/symbol.test.d.ts.map +1 -0
  207. package/dist/components/symbol/symbol.test.js +29 -0
  208. package/dist/components/tab/index.js +1 -1
  209. package/dist/components/tab/tab.d.ts.map +1 -1
  210. package/dist/components/tab/tab.js +2 -2
  211. package/dist/components/tab/tab.test.d.ts +2 -0
  212. package/dist/components/tab/tab.test.d.ts.map +1 -0
  213. package/dist/components/tab/tab.test.js +30 -0
  214. package/dist/components/tab/tabs-panel.js +1 -1
  215. package/dist/components/table/index.js +1 -1
  216. package/dist/components/table/table-cell/index.js +1 -1
  217. package/dist/components/table/table-cell/table-cell.js +1 -1
  218. package/dist/components/table/table-cell/table-cell.test.d.ts +2 -0
  219. package/dist/components/table/table-cell/table-cell.test.d.ts.map +1 -0
  220. package/dist/components/table/table-cell/table-cell.test.js +28 -0
  221. package/dist/components/table/table-checkbox/index.js +1 -1
  222. package/dist/components/table/table-checkbox/table-checkbox.js +1 -1
  223. package/dist/components/table/table-checkbox/table-checkbox.test.d.ts +2 -0
  224. package/dist/components/table/table-checkbox/table-checkbox.test.d.ts.map +1 -0
  225. package/dist/components/table/table-checkbox/table-checkbox.test.js +24 -0
  226. package/dist/components/table/table-controls/index.js +1 -1
  227. package/dist/components/table/table-controls/table-controls.test.d.ts +2 -0
  228. package/dist/components/table/table-controls/table-controls.test.d.ts.map +1 -0
  229. package/dist/components/table/table-controls/table-controls.test.js +35 -0
  230. package/dist/components/table/table-controls/toggle-columns.d.ts.map +1 -1
  231. package/dist/components/table/table-controls/toggle-columns.js +2 -2
  232. package/dist/components/table/table-expand/index.js +1 -1
  233. package/dist/components/table/table-header/index.js +1 -1
  234. package/dist/components/table/table-header/table-header.test.d.ts +2 -0
  235. package/dist/components/table/table-header/table-header.test.d.ts.map +1 -0
  236. package/dist/components/table/table-header/table-header.test.js +24 -0
  237. package/dist/components/table/table-pagination/index.js +1 -1
  238. package/dist/components/table/table-pagination/table-pagination.js +1 -1
  239. package/dist/components/table/table-pagination/table-pagination.test.d.ts +2 -0
  240. package/dist/components/table/table-pagination/table-pagination.test.d.ts.map +1 -0
  241. package/dist/components/table/table-pagination/table-pagination.test.js +28 -0
  242. package/dist/components/table/table-row/index.js +1 -1
  243. package/dist/components/table/table-row/table-row.js +1 -1
  244. package/dist/components/table/table-row/table-row.test.d.ts +2 -0
  245. package/dist/components/table/table-row/table-row.test.d.ts.map +1 -0
  246. package/dist/components/table/table-row/table-row.test.js +24 -0
  247. package/dist/components/table/table.js +1 -1
  248. package/dist/components/table/table.test.d.ts +2 -0
  249. package/dist/components/table/table.test.d.ts.map +1 -0
  250. package/dist/components/table/table.test.js +62 -0
  251. package/dist/components/table/types.js +1 -1
  252. package/dist/components/text/index.js +1 -1
  253. package/dist/components/text/text.test.d.ts +2 -0
  254. package/dist/components/text/text.test.d.ts.map +1 -0
  255. package/dist/components/text/text.test.js +24 -0
  256. package/dist/components/textfield/base-field/index.js +1 -1
  257. package/dist/components/textfield/index.js +1 -1
  258. package/dist/components/textfield/textfield.d.ts.map +1 -1
  259. package/dist/components/textfield/textfield.js +2 -2
  260. package/dist/components/textfield/textfield.test.d.ts +2 -0
  261. package/dist/components/textfield/textfield.test.d.ts.map +1 -0
  262. package/dist/components/textfield/textfield.test.js +37 -0
  263. package/dist/components/title/index.js +1 -1
  264. package/dist/components/title/title.js +1 -1
  265. package/dist/components/title/title.test.d.ts +2 -0
  266. package/dist/components/title/title.test.d.ts.map +1 -0
  267. package/dist/components/title/title.test.js +33 -0
  268. package/dist/components/toggle-button/index.js +1 -1
  269. package/dist/components/toggle-button/toggle-button.d.ts.map +1 -1
  270. package/dist/components/toggle-button/toggle-button.js +2 -2
  271. package/dist/components/toggle-button/toggle-button.test.d.ts +2 -0
  272. package/dist/components/toggle-button/toggle-button.test.d.ts.map +1 -0
  273. package/dist/components/toggle-button/toggle-button.test.js +30 -0
  274. package/dist/components/tooltip/index.js +1 -1
  275. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  276. package/dist/components/tooltip/tooltip.js +7 -3
  277. package/dist/components/tooltip/tooltip.test.d.ts +2 -0
  278. package/dist/components/tooltip/tooltip.test.d.ts.map +1 -0
  279. package/dist/components/tooltip/tooltip.test.js +29 -0
  280. package/dist/hooks/index.d.ts +2 -0
  281. package/dist/hooks/index.d.ts.map +1 -0
  282. package/dist/hooks/index.js +16 -0
  283. package/dist/hooks/usePopupWrapper.d.ts +4 -0
  284. package/dist/hooks/usePopupWrapper.d.ts.map +1 -0
  285. package/dist/hooks/usePopupWrapper.js +40 -0
  286. package/dist/index.d.ts +1 -0
  287. package/dist/index.d.ts.map +1 -1
  288. package/dist/index.js +2 -1
  289. package/dist/providers/index.js +1 -1
  290. package/dist/providers/overlay.js +1 -1
  291. package/dist/providers/providers.test.d.ts +2 -0
  292. package/dist/providers/providers.test.d.ts.map +1 -0
  293. package/dist/providers/providers.test.js +34 -0
  294. package/dist/providers/responsive.js +1 -1
  295. package/dist/types/index.js +1 -1
  296. package/dist/types/polymorphic/index.js +1 -1
  297. package/package.json +18 -11
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
2
+ * Copyright 2022-2023 Wonderflow Design Team
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  /*
3
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ * Copyright 2022-2023 Wonderflow Design Team
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=prose.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prose.test.d.ts","sourceRoot":"","sources":["../../../src/components/prose/prose.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2023 Wonderflow Design Team
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /* eslint-disable max-len */
18
+ import { render } from '@testing-library/react';
19
+ import { Prose } from './prose';
20
+ const innerText = 'Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ullam hic illo quam ipsa. Aspernatur, eveniet? Optio dolore minima magni culpa necessitatibus facilis quam libero nam.';
21
+ describe('<Prose>', () => {
22
+ test(' it should render properly', () => {
23
+ const { container } = render(_jsx(Prose, { children: innerText }));
24
+ expect(container).not.toBeNull();
25
+ });
26
+ });
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
2
+ * Copyright 2022-2023 Wonderflow Design Team
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /*
3
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ * Copyright 2022-2023 Wonderflow Design Team
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=select.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.test.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2023 Wonderflow Design Team
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { render } from '@testing-library/react';
18
+ import { Select } from './select';
19
+ describe('<Select>', () => {
20
+ test(' it should render properly', () => {
21
+ const { container } = render(_jsxs(Select, { defaultValue: "placeholder", label: "My Label", children: [_jsx("option", { value: "placeholder", hidden: true, disabled: true, children: "Pick an option" }), _jsxs("optgroup", { label: "Option Group One", children: [_jsx("option", { value: "1", children: "This is a very long option selected" }), _jsx("option", { value: "2", children: "Option 2" })] }), _jsxs("optgroup", { label: "Option Group Two", children: [_jsx("option", { value: "3", children: "Option 1" }), _jsx("option", { value: "4", children: "Option 2" }), _jsx("option", { value: "5", children: "Option 3" })] })] }));
22
+ expect(container).not.toBeNull();
23
+ });
24
+ test(' it should render properly with props', () => {
25
+ const { container } = render(_jsxs(Select, { defaultValue: "placeholder", label: "My Label", dimension: "small", disabled: true, children: [_jsx("option", { value: "placeholder", hidden: true, disabled: true, children: "Pick an option" }), _jsxs("optgroup", { label: "Option Group One", children: [_jsx("option", { value: "1", children: "This is a very long option selected" }), _jsx("option", { value: "2", children: "Option 2" })] }), _jsxs("optgroup", { label: "Option Group Two", children: [_jsx("option", { value: "3", children: "Option 1" }), _jsx("option", { value: "4", children: "Option 2" }), _jsx("option", { value: "5", children: "Option 3" })] })] }));
26
+ expect(container).not.toBeNull();
27
+ });
28
+ });
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /*
3
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ * Copyright 2022-2023 Wonderflow Design Team
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
2
+ * Copyright 2022-2023 Wonderflow Design Team
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /*
3
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ * Copyright 2022-2023 Wonderflow Design Team
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1 +1 @@
1
- @layer components{.InputWrapper{display:inline-block;line-height:0}.InputWrapper[data-radio-control=true]{position:absolute}.CheckboxInput{--w:24px;--h:24px;appearance:none;-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background);block-size:var(--h);border-radius:.25rem;box-shadow:0 0 0 1px var(--global-background),inset 0 0 0 1px var(--dimmed-2);color:var(--global-background);inline-size:var(--w);max-block-size:var(--h);max-inline-size:var(--w);position:relative}.CheckboxInput:after{block-size:27%;border-bottom:2px solid;border-left:2px solid;content:"";display:none;inline-size:50%;left:50%;position:absolute;top:50%;transform:translate(-50%,-80%) rotate(-45deg)}.CheckboxInput:active{background-color:var(--global-vibrancy-background-hard)}.CheckboxInput:checked,.CheckboxInput:indeterminate{background:var(--dimmed-7);box-shadow:0 0 0 1px var(--global-background),inset 0 0 0 1px transparent}.CheckboxInput:checked:after,.CheckboxInput:indeterminate:after{display:block}.CheckboxInput:disabled{background-color:var(--global-disabled-background);color:var(--global-disabled-foreground);cursor:not-allowed}.CheckboxInput[data-control-dimension=small]{--w:16px;--h:16px}.CheckboxInput:indeterminate:after{block-size:2px;border-left:0;transform:translate(-50%,-50%)}.RadioInput{composes:CheckboxInput;border-radius:100%}.RadioInput:after{background-color:currentcolor;block-size:50%;border:0;border-radius:100%;inline-size:50%;transform:translate(-50%,-50%)}.Toggle{--w:44px;--h:24px;--p:2px;composes:RadioInput;border-radius:200px;color:var(--dimmed-7)}.Toggle:checked{color:var(--global-background)}.Toggle:disabled{color:var(--global-disabled-foreground)}.Toggle:after{block-size:calc(var(--h) - var(--p)*2);bottom:var(--p);display:block;inline-size:calc(var(--h) - var(--p)*2);left:var(--p);top:var(--p);transform:none;transition:transform .1s cubic-bezier(.3,.07,.34,1),background-color .1s cubic-bezier(.3,.07,.34,1)}.Toggle:checked:after{display:block;transform:translateX(100%)}.Toggle[data-control-dimension=small]{--w:28px;--h:16px}.Label[aria-disabled=true]{color:var(--global-disabled-foreground);cursor:not-allowed}}
1
+ @layer components{.InputWrapper{display:inline-block;line-height:0}.InputWrapper[data-radio-control=true]{position:absolute}.CheckboxInput{--w:24px;--h:24px;appearance:none;-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background);block-size:var(--h);border-radius:.25rem;box-shadow:0 0 0 1px var(--global-background),inset 0 0 0 1px var(--dimmed-2);color:var(--global-background);inline-size:var(--w);max-block-size:var(--h);max-inline-size:var(--w);position:relative}.CheckboxInput:after{block-size:27%;border-bottom:2px solid;border-left:2px solid;content:"";display:none;inline-size:50%;left:50%;position:absolute;top:50%;transform:translate(-50%,-80%) rotate(-45deg)}.CheckboxInput:active{background-color:var(--global-vibrancy-background-hard)}.CheckboxInput:checked,.CheckboxInput:indeterminate{background:var(--dimmed-7);box-shadow:0 0 0 1px var(--global-background),inset 0 0 0 1px transparent}.CheckboxInput:checked:after,.CheckboxInput:indeterminate:after{display:block}.CheckboxInput:disabled{background-color:var(--global-disabled-background);box-shadow:none;color:var(--global-disabled-foreground);cursor:not-allowed}.CheckboxInput[data-control-dimension=small]{--w:16px;--h:16px}.CheckboxInput:indeterminate:after{block-size:2px;border-left:0;transform:translate(-50%,-50%)}.RadioInput{composes:CheckboxInput;border-radius:100%}.RadioInput:after{background-color:currentcolor;block-size:50%;border:0;border-radius:100%;inline-size:50%;transform:translate(-50%,-50%)}.RadioInput:disabled{box-shadow:none}.RadioInput:indeterminate{background-color:var(--global-vibrancy-background);box-shadow:0 0 0 1px var(--global-background),inset 0 0 0 1px var(--dimmed-2)}.RadioInput:indeterminate:disabled{box-shadow:none}.RadioInput:indeterminate:after{block-size:0}.Toggle{--w:44px;--h:24px;--p:2px;composes:RadioInput;border-radius:200px;color:var(--dimmed-7)}.Toggle:checked{color:var(--global-background)}.Toggle:disabled{color:var(--global-disabled-foreground)}.Toggle:after{block-size:calc(var(--h) - var(--p)*2);bottom:var(--p);display:block;inline-size:calc(var(--h) - var(--p)*2);left:var(--p);top:var(--p);transform:none;transition:transform .1s cubic-bezier(.3,.07,.34,1),background-color .1s cubic-bezier(.3,.07,.34,1)}.Toggle:checked:after{display:block;transform:translateX(100%)}.Toggle[data-control-dimension=small]{--w:28px;--h:16px}.Label[aria-disabled=true]{color:var(--global-disabled-foreground);cursor:not-allowed}}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=selection-controls.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selection-controls.test.d.ts","sourceRoot":"","sources":["../../../src/components/selection-controls/selection-controls.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2023 Wonderflow Design Team
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { render } from '@testing-library/react';
18
+ import { Checkbox } from './checkbox';
19
+ import { Radio } from './radio';
20
+ import { Toggle } from './toggle';
21
+ describe('<Checkbox><Rdio><Toggle>', () => {
22
+ test(' they should render properly', () => {
23
+ const { container } = render(_jsxs(_Fragment, { children: [_jsx(Checkbox, { label: "My Checkbox" }), _jsx(Radio, { label: "My Radio Button" }), _jsx(Toggle, { label: "My Toggle" })] }));
24
+ expect(container).not.toBeNull();
25
+ });
26
+ test(' they should render properly with props', () => {
27
+ const { container } = render(_jsxs(_Fragment, { children: [_jsx(Checkbox, { label: "My Checkbox", dimension: "small", indeterminate: true }), _jsx(Radio, { label: "My Radio Button", dimension: "small" }), _jsx(Toggle, { label: "My Toggle", dimension: "small" })] }));
28
+ expect(container).not.toBeNull();
29
+ });
30
+ });
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /*
3
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ * Copyright 2022-2023 Wonderflow Design Team
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
2
+ * Copyright 2022-2023 Wonderflow Design Team
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  /*
3
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ * Copyright 2022-2023 Wonderflow Design Team
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=separator.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"separator.test.d.ts","sourceRoot":"","sources":["../../../src/components/separator/separator.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2023 Wonderflow Design Team
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { render } from '@testing-library/react';
18
+ import { Separator } from './separator';
19
+ describe('<Separator>', () => {
20
+ test(' it should render properly', () => {
21
+ const { container } = render(_jsx(Separator, {}));
22
+ expect(container).not.toBeNull();
23
+ });
24
+ });
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
2
+ * Copyright 2022-2023 Wonderflow Design Team
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=skeleton.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton.test.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/skeleton.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2023 Wonderflow Design Team
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { render } from '@testing-library/react';
18
+ import { Skeleton } from './skeleton';
19
+ describe('<Skeleton>', () => {
20
+ test(' it should render properly', () => {
21
+ const { container } = render(_jsx(Skeleton, {}));
22
+ expect(container).not.toBeNull();
23
+ });
24
+ test(' it should render properly with props', () => {
25
+ const { container } = render(_jsx(Skeleton, { width: 100, height: 100, gap: "16", count: 10, inline: true }));
26
+ expect(container).not.toBeNull();
27
+ });
28
+ });
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
2
+ * Copyright 2022-2023 Wonderflow Design Team
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1 +1 @@
1
- {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/components/slider/slider.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACO,mBAAmB,EAChC,MAAM,OAAO,CAAC;AAGf,OAAO,EACU,WAAW,EAC3B,MAAM,cAAc,CAAC;AAItB,oBAAY,WAAW,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IAChE;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAA;AAED,eAAO,MAAM,MAAM;IAhDjB;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;uBACe,MAAM,KAAK,IAAI;IACjC;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;;;OAIG;;oDAqFH,CAAC"}
1
+ {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/components/slider/slider.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACO,mBAAmB,EAChC,MAAM,OAAO,CAAC;AAGf,OAAO,EACU,WAAW,EAC3B,MAAM,cAAc,CAAC;AAItB,oBAAY,WAAW,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IAChE;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAA;AAED,eAAO,MAAM,MAAM;IAhDjB;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;uBACe,MAAM,KAAK,IAAI;IACjC;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;;;OAIG;;oDAsFH,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /*
3
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ * Copyright 2022-2023 Wonderflow Design Team
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -28,6 +28,6 @@ export const Slider = forwardRef(({ min = 0, max = 100, step, onInput, className
28
28
  }, [onInput]);
29
29
  const seedID = useUIDSeed();
30
30
  const fieldID = useMemo(() => id ?? seedID('slider'), [id, seedID]);
31
- return (_jsxs(Stack, { direction: "column", rowGap: 8, children: [label && _jsx(Text, { as: "label", size: isSmall ? 14 : 16, className: styles.Label, "aria-disabled": disabled, htmlFor: fieldID, children: label }), _jsxs(Stack, { direction: "row", vAlign: "center", columnGap: 8, className: clsx(styles.Slider, className), "data-slider-dimension": dimension, children: [showValues && _jsx(Text, { as: "span", size: isSmall ? 14 : 16, weight: "bold", textAlign: "end", className: styles.Value, "aria-disabled": disabled, children: min }), (iconMin && !showValues) && (_jsx(Symbol, { source: iconMin, dimension: isSmall ? 16 : 24, className: styles.Icon, "aria-disabled": disabled })), _jsx("input", { ref: forwardedRef, className: styles.Input, type: "range", min: min, max: max, defaultValue: value, "aria-valuemin": min, "aria-valuemax": max, "aria-valuenow": value, "aria-disabled": disabled, step: step, onInput: handleInput, disabled: disabled, id: fieldID, ...otherProps }), showValues && _jsx(Text, { as: "span", size: isSmall ? 14 : 16, weight: "bold", className: styles.Value, "aria-disabled": disabled, children: max }), showValues && _jsx(Textfield, { readOnly: true, dimension: "small", size: String(max).length, value: value, disabled: disabled }), (iconMax && !showValues) && (_jsx(Symbol, { source: iconMax, dimension: isSmall ? 16 : 24, className: styles.Icon, "aria-disabled": disabled }))] })] }));
31
+ return (_jsxs(Stack, { direction: "column", rowGap: 8, children: [label && _jsx(Text, { as: "label", size: isSmall ? 14 : 16, className: styles.Label, "aria-disabled": disabled, htmlFor: fieldID, children: label }), _jsxs(Stack, { direction: "row", vAlign: "center", columnGap: 8, className: clsx(styles.Slider, className), "data-slider-dimension": dimension, children: [showValues && _jsx(Text, { as: "span", size: isSmall ? 14 : 16, weight: "bold", textAlign: "end", className: styles.Value, "aria-disabled": disabled, children: min }), (iconMin && !showValues) && (_jsx(Symbol, { source: iconMin, dimension: isSmall ? 16 : 24, className: styles.Icon, "aria-disabled": disabled })), _jsx("input", { ref: forwardedRef, className: styles.Input, type: "range", min: min, max: max, defaultValue: value, "aria-valuemin": min, "aria-valuemax": max, "aria-valuenow": value, "aria-disabled": disabled, step: step, onInput: handleInput, disabled: disabled, id: fieldID, "data-testid": "SliderInput", ...otherProps }), showValues && _jsx(Text, { as: "span", size: isSmall ? 14 : 16, weight: "bold", className: styles.Value, "aria-disabled": disabled, children: max }), showValues && _jsx(Textfield, { readOnly: true, dimension: "small", size: String(max).length, value: value, disabled: disabled }), (iconMax && !showValues) && (_jsx(Symbol, { source: iconMax, dimension: isSmall ? 16 : 24, className: styles.Icon, "aria-disabled": disabled }))] })] }));
32
32
  });
33
33
  Slider.displayName = 'Slider';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=slider.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slider.test.d.ts","sourceRoot":"","sources":["../../../src/components/slider/slider.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2023 Wonderflow Design Team
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /* eslint-disable @typescript-eslint/comma-dangle */
18
+ import { fireEvent, render } from '@testing-library/react';
19
+ import { Slider } from './slider';
20
+ describe('<Slider>', () => {
21
+ test(' it should render properly', () => {
22
+ const { container } = render(_jsxs(_Fragment, { children: [_jsx(Slider, { label: "Qty", iconMin: "minus", iconMax: "plus" }), _jsx(Slider, { label: "Qty", iconMin: "minus", iconMax: "plus", dimension: "small" }), _jsx(Slider, { label: "Qty", showValues: true, dimension: "small" }), _jsx(Slider, { showValues: true, dimension: "regular" })] }));
23
+ expect(container).not.toBeNull();
24
+ });
25
+ test(' it should slide properly', () => {
26
+ const { container, getByTestId } = render(_jsx(_Fragment, { children: _jsx(Slider, { defaultValue: 0, label: "Qty", iconMin: "minus", iconMax: "plus" }) }));
27
+ fireEvent.change(getByTestId('SliderInput'), { target: { value: 25 } });
28
+ expect(container).not.toBeNull();
29
+ });
30
+ });
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
2
+ * Copyright 2022-2023 Wonderflow Design Team
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /*
3
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ * Copyright 2022-2023 Wonderflow Design Team
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=snackbar.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snackbar.test.d.ts","sourceRoot":"","sources":["../../../src/components/snackbar/snackbar.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2023 Wonderflow Design Team
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { render } from '@testing-library/react';
18
+ import { Snackbar } from './snackbar';
19
+ describe('<Snackbar>', () => {
20
+ test(' it should render properly', () => {
21
+ const { container } = render(_jsx(Snackbar, { children: "Content" }));
22
+ expect(container).not.toBeNull();
23
+ });
24
+ test(' it should render properly with props', () => {
25
+ const { container } = render(_jsx(Snackbar, { title: "My title", dismissable: true, children: "Content" }));
26
+ expect(container).not.toBeNull();
27
+ });
28
+ });
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
2
+ * Copyright 2022-2023 Wonderflow Design Team
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /*
3
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ * Copyright 2022-2023 Wonderflow Design Team
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=spinner.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spinner.test.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/spinner.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2023 Wonderflow Design Team
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { render } from '@testing-library/react';
18
+ import { Spinner } from './spinner';
19
+ describe('<Spinner>', () => {
20
+ test(' it should render properly', () => {
21
+ const { container } = render(_jsx(Spinner, {}));
22
+ expect(container).not.toBeNull();
23
+ });
24
+ test(' it should render properly with props', () => {
25
+ const { container } = render(_jsx(Spinner, { dimension: "small" }));
26
+ expect(container).not.toBeNull();
27
+ });
28
+ });
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
2
+ * Copyright 2022-2023 Wonderflow Design Team
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /*
3
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ * Copyright 2022-2023 Wonderflow Design Team
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=split-button.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split-button.test.d.ts","sourceRoot":"","sources":["../../../src/components/split-button/split-button.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2023 Wonderflow Design Team
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { render } from '@testing-library/react';
18
+ import { SplitButton } from './split-button';
19
+ describe('<SplitButton>', () => {
20
+ test(' it should render properly', () => {
21
+ const { container } = render(_jsx(SplitButton, { label: "My Label", children: "Text" }));
22
+ expect(container).not.toBeNull();
23
+ });
24
+ });
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
2
+ * Copyright 2022-2023 Wonderflow Design Team
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=stack.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stack.test.d.ts","sourceRoot":"","sources":["../../../src/components/stack/stack.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2023 Wonderflow Design Team
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { render } from '@testing-library/react';
18
+ import { Stack } from './stack';
19
+ describe('<Stack>', () => {
20
+ test(' it should render properly', () => {
21
+ const { container } = render(_jsxs(Stack, { children: [_jsx("div", { children: "1" }), _jsx("div", { children: "2" }), _jsx("div", { children: "3" })] }));
22
+ expect(container).not.toBeNull();
23
+ });
24
+ test(' it should render properly with props', () => {
25
+ const { container } = render(_jsxs(Stack, { direction: "row", rowGap: 2, columnGap: 2, vPadding: 2, hPadding: 2, vAlign: "start", hAlign: "end", children: [_jsx("div", { children: "1" }), _jsx("div", { children: "2" }), _jsx("div", { children: "3" })] }));
26
+ expect(container).not.toBeNull();
27
+ });
28
+ });
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
2
+ * Copyright 2022-2023 Wonderflow Design Team
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1 +1 @@
1
- {"version":3,"file":"star-meter.d.ts","sourceRoot":"","sources":["../../../src/components/star-meter/star-meter.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACO,SAAS,EACtB,MAAM,OAAO,CAAC;AAGf,OAAO,EACL,WAAW,EAAE,KAAK,EACnB,MAAM,cAAc,CAAC;AAItB,oBAAY,cAAc,GAAG;IAC3B;;;;;;;;;;;OAWG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAA;AAED,aAAK,oBAAoB,GAAG,WAAW,CAAC,mBAAmB,CAC3D,WAAW,CAAC,gBAAgB,CAAC,OAAO,KAAK,CAAC,EAC1C,WAAW,CAAC,QAAQ,CAAC,OAAO,KAAK,CAAC,GAAG,cAAc,CAClD,CAAC;AAEF,eAAO,MAAM,SAAS,sBA6GI,CAAC"}
1
+ {"version":3,"file":"star-meter.d.ts","sourceRoot":"","sources":["../../../src/components/star-meter/star-meter.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACO,SAAS,EACtB,MAAM,OAAO,CAAC;AAGf,OAAO,EACL,WAAW,EAAE,KAAK,EACnB,MAAM,cAAc,CAAC;AAItB,oBAAY,cAAc,GAAG;IAC3B;;;;;;;;;;;OAWG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAA;AAED,aAAK,oBAAoB,GAAG,WAAW,CAAC,mBAAmB,CAC3D,WAAW,CAAC,gBAAgB,CAAC,OAAO,KAAK,CAAC,EAC1C,WAAW,CAAC,QAAQ,CAAC,OAAO,KAAK,CAAC,GAAG,cAAc,CAClD,CAAC;AAEF,eAAO,MAAM,SAAS,sBAyGI,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  /*
3
- * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ * Copyright 2022-2023 Wonderflow Design Team
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -45,10 +45,7 @@ export const StarMeter = forwardRef(({ className, value = 0, starCount = 5, labe
45
45
  if (fraction < 0.25) {
46
46
  return Math.floor(value);
47
47
  }
48
- if (fraction >= 0.25 && fraction < 0.75) {
49
- return integer + 0.5;
50
- }
51
- return 0;
48
+ return integer + 0.5;
52
49
  }, []);
53
50
  const starType = useCallback((maxStars, value) => {
54
51
  const roundedValue = roundValue(value);
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=star-meter.test.d.ts.map