@wonderflow/react-components 10.10.0 → 10.11.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 (258) hide show
  1. package/core/basic.css +1 -1
  2. package/core/typography.css +1 -1
  3. package/core.css +1 -1
  4. package/dist/components/accordion/accordion-context.d.ts.map +1 -1
  5. package/dist/components/accordion/accordion-context.js +15 -0
  6. package/dist/components/accordion/accordion-item.d.ts.map +1 -1
  7. package/dist/components/accordion/accordion-item.js +15 -0
  8. package/dist/components/accordion/accordion.d.ts.map +1 -1
  9. package/dist/components/accordion/accordion.js +15 -0
  10. package/dist/components/accordion/index.d.ts.map +1 -1
  11. package/dist/components/accordion/index.js +15 -0
  12. package/dist/components/aspect-ratio/aspect-ratio.d.ts.map +1 -1
  13. package/dist/components/aspect-ratio/aspect-ratio.js +15 -0
  14. package/dist/components/aspect-ratio/index.d.ts +1 -1
  15. package/dist/components/aspect-ratio/index.d.ts.map +1 -1
  16. package/dist/components/aspect-ratio/index.js +15 -0
  17. package/dist/components/autocomplete/autocomplete-option.d.ts.map +1 -1
  18. package/dist/components/autocomplete/autocomplete-option.js +15 -0
  19. package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
  20. package/dist/components/autocomplete/autocomplete.js +15 -0
  21. package/dist/components/autocomplete/index.d.ts.map +1 -1
  22. package/dist/components/autocomplete/index.js +15 -0
  23. package/dist/components/avatar/avatar.d.ts.map +1 -1
  24. package/dist/components/avatar/avatar.js +15 -0
  25. package/dist/components/avatar/index.d.ts.map +1 -1
  26. package/dist/components/avatar/index.js +15 -0
  27. package/dist/components/button/button.d.ts.map +1 -1
  28. package/dist/components/button/button.js +15 -0
  29. package/dist/components/button/index.d.ts.map +1 -1
  30. package/dist/components/button/index.js +15 -0
  31. package/dist/components/card/index.d.ts.map +1 -1
  32. package/dist/components/card/index.js +15 -0
  33. package/dist/components/chip/chip.d.ts.map +1 -1
  34. package/dist/components/chip/chip.js +15 -0
  35. package/dist/components/chip/index.d.ts.map +1 -1
  36. package/dist/components/chip/index.js +15 -0
  37. package/dist/components/circular-progress/circular-progress.d.ts.map +1 -1
  38. package/dist/components/circular-progress/circular-progress.js +15 -0
  39. package/dist/components/circular-progress/index.d.ts.map +1 -1
  40. package/dist/components/circular-progress/index.js +15 -0
  41. package/dist/components/clamp-text/clamp-text.d.ts.map +1 -1
  42. package/dist/components/clamp-text/clamp-text.js +16 -1
  43. package/dist/components/clamp-text/index.d.ts.map +1 -1
  44. package/dist/components/clamp-text/index.js +15 -0
  45. package/dist/components/container/container.d.ts.map +1 -1
  46. package/dist/components/container/container.js +15 -0
  47. package/dist/components/container/index.d.ts.map +1 -1
  48. package/dist/components/container/index.js +15 -0
  49. package/dist/components/datetime/datetime.d.ts.map +1 -1
  50. package/dist/components/datetime/datetime.js +15 -0
  51. package/dist/components/datetime/index.d.ts.map +1 -1
  52. package/dist/components/datetime/index.js +15 -0
  53. package/dist/components/disclosure/disclosure.d.ts.map +1 -1
  54. package/dist/components/disclosure/disclosure.js +15 -0
  55. package/dist/components/disclosure/index.d.ts.map +1 -1
  56. package/dist/components/disclosure/index.js +15 -0
  57. package/dist/components/drawer/drawer.d.ts.map +1 -1
  58. package/dist/components/drawer/drawer.js +15 -0
  59. package/dist/components/drawer/index.d.ts.map +1 -1
  60. package/dist/components/drawer/index.js +15 -0
  61. package/dist/components/elevator/elevator.d.ts.map +1 -1
  62. package/dist/components/elevator/elevator.js +15 -0
  63. package/dist/components/elevator/index.d.ts.map +1 -1
  64. package/dist/components/elevator/index.js +15 -0
  65. package/dist/components/expander/expander.d.ts +20 -0
  66. package/dist/components/expander/expander.d.ts.map +1 -0
  67. package/dist/components/expander/expander.js +35 -0
  68. package/dist/components/expander/expander.module.css +1 -0
  69. package/dist/components/expander/expander.stories.d.ts +7 -0
  70. package/dist/components/expander/expander.stories.d.ts.map +1 -0
  71. package/dist/components/expander/expander.stories.js +16 -0
  72. package/dist/components/expander/index.d.ts +3 -0
  73. package/dist/components/expander/index.d.ts.map +1 -0
  74. package/dist/components/expander/index.js +16 -0
  75. package/dist/components/grid/index.d.ts.map +1 -1
  76. package/dist/components/grid/index.js +15 -0
  77. package/dist/components/grid/item/grid-item.d.ts.map +1 -1
  78. package/dist/components/grid/item/grid-item.js +15 -0
  79. package/dist/components/icon-button/icon-button.d.ts.map +1 -1
  80. package/dist/components/icon-button/icon-button.js +15 -0
  81. package/dist/components/icon-button/index.d.ts.map +1 -1
  82. package/dist/components/icon-button/index.js +15 -0
  83. package/dist/components/index.d.ts +1 -0
  84. package/dist/components/index.d.ts.map +1 -1
  85. package/dist/components/index.js +16 -0
  86. package/dist/components/info-state/index.d.ts.map +1 -1
  87. package/dist/components/info-state/index.js +15 -0
  88. package/dist/components/info-state/info-state.d.ts.map +1 -1
  89. package/dist/components/info-state/info-state.js +15 -0
  90. package/dist/components/input-group/index.d.ts.map +1 -1
  91. package/dist/components/input-group/index.js +15 -0
  92. package/dist/components/input-group/input-group.d.ts.map +1 -1
  93. package/dist/components/input-group/input-group.js +15 -0
  94. package/dist/components/linear-progress/index.d.ts.map +1 -1
  95. package/dist/components/linear-progress/index.js +15 -0
  96. package/dist/components/linear-progress/linear-progress.d.ts.map +1 -1
  97. package/dist/components/linear-progress/linear-progress.js +15 -0
  98. package/dist/components/list/index.d.ts.map +1 -1
  99. package/dist/components/list/index.js +15 -0
  100. package/dist/components/list/list-item.d.ts.map +1 -1
  101. package/dist/components/list/list-item.js +15 -0
  102. package/dist/components/list/list.d.ts.map +1 -1
  103. package/dist/components/list/list.js +15 -0
  104. package/dist/components/masonry/index.d.ts.map +1 -1
  105. package/dist/components/masonry/index.js +15 -0
  106. package/dist/components/masonry/masonry.d.ts.map +1 -1
  107. package/dist/components/menu/index.d.ts.map +1 -1
  108. package/dist/components/menu/index.js +15 -0
  109. package/dist/components/menu/menu-item/menu-item-checkbox.d.ts.map +1 -1
  110. package/dist/components/menu/menu-item/menu-item-checkbox.js +15 -0
  111. package/dist/components/menu/menu-item/menu-item.d.ts.map +1 -1
  112. package/dist/components/menu/menu-item/menu-item.js +18 -3
  113. package/dist/components/menu/menu-separator/menu-separator.d.ts.map +1 -1
  114. package/dist/components/menu/menu-separator/menu-separator.js +15 -0
  115. package/dist/components/menu/menu.d.ts.map +1 -1
  116. package/dist/components/menu/menu.js +15 -0
  117. package/dist/components/modal/content/modal-content.d.ts +0 -4
  118. package/dist/components/modal/content/modal-content.d.ts.map +1 -1
  119. package/dist/components/modal/content/modal-content.js +15 -0
  120. package/dist/components/modal/index.d.ts.map +1 -1
  121. package/dist/components/modal/index.js +15 -0
  122. package/dist/components/modal/modal.d.ts.map +1 -1
  123. package/dist/components/modal/modal.js +15 -0
  124. package/dist/components/overlay-container/index.d.ts.map +1 -1
  125. package/dist/components/overlay-container/index.js +15 -0
  126. package/dist/components/overlay-container/overlay-container.d.ts.map +1 -1
  127. package/dist/components/overlay-container/overlay-container.js +15 -0
  128. package/dist/components/pagination/index.d.ts.map +1 -1
  129. package/dist/components/pagination/index.js +15 -0
  130. package/dist/components/pagination/pagination.d.ts.map +1 -1
  131. package/dist/components/pagination/pagination.js +15 -0
  132. package/dist/components/popover/index.d.ts.map +1 -1
  133. package/dist/components/popover/index.js +15 -0
  134. package/dist/components/popover/popover.d.ts.map +1 -1
  135. package/dist/components/prose/index.d.ts.map +1 -1
  136. package/dist/components/prose/index.js +15 -0
  137. package/dist/components/prose/prose.d.ts.map +1 -1
  138. package/dist/components/prose/prose.js +15 -0
  139. package/dist/components/select/index.d.ts.map +1 -1
  140. package/dist/components/select/index.js +15 -0
  141. package/dist/components/select/select.d.ts.map +1 -1
  142. package/dist/components/select/select.js +15 -0
  143. package/dist/components/selection-controls/checkbox.d.ts.map +1 -1
  144. package/dist/components/selection-controls/checkbox.js +15 -0
  145. package/dist/components/selection-controls/index.d.ts.map +1 -1
  146. package/dist/components/selection-controls/index.js +15 -0
  147. package/dist/components/selection-controls/radio.d.ts.map +1 -1
  148. package/dist/components/selection-controls/radio.js +15 -0
  149. package/dist/components/selection-controls/toggle.d.ts.map +1 -1
  150. package/dist/components/selection-controls/toggle.js +15 -0
  151. package/dist/components/separator/index.d.ts.map +1 -1
  152. package/dist/components/separator/index.js +15 -0
  153. package/dist/components/separator/separator.d.ts.map +1 -1
  154. package/dist/components/separator/separator.js +15 -0
  155. package/dist/components/skeleton/index.d.ts.map +1 -1
  156. package/dist/components/skeleton/index.js +15 -0
  157. package/dist/components/skeleton/skeleton.d.ts.map +1 -1
  158. package/dist/components/slider/index.d.ts.map +1 -1
  159. package/dist/components/slider/index.js +15 -0
  160. package/dist/components/slider/slider.d.ts.map +1 -1
  161. package/dist/components/slider/slider.js +15 -0
  162. package/dist/components/snackbar/index.d.ts.map +1 -1
  163. package/dist/components/snackbar/index.js +15 -0
  164. package/dist/components/snackbar/snackbar.d.ts.map +1 -1
  165. package/dist/components/snackbar/snackbar.js +15 -0
  166. package/dist/components/spinner/index.d.ts.map +1 -1
  167. package/dist/components/spinner/index.js +15 -0
  168. package/dist/components/spinner/spinner.d.ts.map +1 -1
  169. package/dist/components/spinner/spinner.js +15 -0
  170. package/dist/components/split-button/index.d.ts.map +1 -1
  171. package/dist/components/split-button/index.js +15 -0
  172. package/dist/components/split-button/split-button.d.ts.map +1 -1
  173. package/dist/components/split-button/split-button.js +15 -0
  174. package/dist/components/stack/index.d.ts.map +1 -1
  175. package/dist/components/stack/index.js +15 -0
  176. package/dist/components/stack/stack.d.ts.map +1 -1
  177. package/dist/components/star-meter/index.d.ts.map +1 -1
  178. package/dist/components/star-meter/index.js +15 -0
  179. package/dist/components/star-meter/star-meter.d.ts.map +1 -1
  180. package/dist/components/star-meter/star-meter.js +15 -0
  181. package/dist/components/symbol/index.d.ts.map +1 -1
  182. package/dist/components/symbol/index.js +15 -0
  183. package/dist/components/symbol/symbol.d.ts.map +1 -1
  184. package/dist/components/tab/index.d.ts.map +1 -1
  185. package/dist/components/tab/index.js +15 -0
  186. package/dist/components/tab/tab.d.ts +2 -1
  187. package/dist/components/tab/tab.d.ts.map +1 -1
  188. package/dist/components/tab/tab.js +16 -1
  189. package/dist/components/tab/tabs-panel.d.ts.map +1 -1
  190. package/dist/components/tab/tabs-panel.js +15 -0
  191. package/dist/components/table/index.d.ts.map +1 -1
  192. package/dist/components/table/index.js +15 -0
  193. package/dist/components/table/table-cell/index.d.ts.map +1 -1
  194. package/dist/components/table/table-cell/index.js +15 -0
  195. package/dist/components/table/table-cell/table-cell.d.ts.map +1 -1
  196. package/dist/components/table/table-cell/table-cell.js +15 -0
  197. package/dist/components/table/table-checkbox/index.d.ts.map +1 -1
  198. package/dist/components/table/table-checkbox/index.js +15 -0
  199. package/dist/components/table/table-checkbox/table-checkbox.d.ts.map +1 -1
  200. package/dist/components/table/table-checkbox/table-checkbox.js +15 -0
  201. package/dist/components/table/table-controls/index.d.ts.map +1 -1
  202. package/dist/components/table/table-controls/index.js +15 -0
  203. package/dist/components/table/table-controls/toggle-columns.d.ts.map +1 -1
  204. package/dist/components/table/table-controls/toggle-columns.js +18 -3
  205. package/dist/components/table/table-expand/index.d.ts.map +1 -1
  206. package/dist/components/table/table-expand/index.js +15 -0
  207. package/dist/components/table/table-header/index.d.ts +1 -1
  208. package/dist/components/table/table-header/index.d.ts.map +1 -1
  209. package/dist/components/table/table-header/index.js +15 -0
  210. package/dist/components/table/table-header/table-header.d.ts.map +1 -1
  211. package/dist/components/table/table-pagination/index.d.ts +1 -1
  212. package/dist/components/table/table-pagination/index.d.ts.map +1 -1
  213. package/dist/components/table/table-pagination/index.js +15 -0
  214. package/dist/components/table/table-pagination/table-pagination.d.ts.map +1 -1
  215. package/dist/components/table/table-pagination/table-pagination.js +15 -0
  216. package/dist/components/table/table-row/index.d.ts.map +1 -1
  217. package/dist/components/table/table-row/index.js +15 -0
  218. package/dist/components/table/table-row/table-row.d.ts.map +1 -1
  219. package/dist/components/table/table-row/table-row.js +17 -2
  220. package/dist/components/table/table.d.ts +5 -1
  221. package/dist/components/table/table.d.ts.map +1 -1
  222. package/dist/components/table/table.js +17 -1
  223. package/dist/components/table/table.stories.d.ts +16 -16
  224. package/dist/components/table/table.stories.d.ts.map +1 -1
  225. package/dist/components/table/types.d.ts.map +1 -1
  226. package/dist/components/table/types.js +15 -0
  227. package/dist/components/text/index.d.ts.map +1 -1
  228. package/dist/components/text/index.js +15 -0
  229. package/dist/components/text/text.d.ts.map +1 -1
  230. package/dist/components/textfield/base-field/index.d.ts.map +1 -1
  231. package/dist/components/textfield/base-field/index.js +15 -0
  232. package/dist/components/textfield/index.d.ts.map +1 -1
  233. package/dist/components/textfield/index.js +15 -0
  234. package/dist/components/title/index.d.ts.map +1 -1
  235. package/dist/components/title/index.js +15 -0
  236. package/dist/components/title/title.d.ts.map +1 -1
  237. package/dist/components/title/title.js +16 -1
  238. package/dist/components/toggle-button/index.d.ts.map +1 -1
  239. package/dist/components/toggle-button/index.js +15 -0
  240. package/dist/components/toggle-button/toggle-button.d.ts.map +1 -1
  241. package/dist/components/toggle-button/toggle-button.js +15 -0
  242. package/dist/components/tooltip/index.d.ts.map +1 -1
  243. package/dist/components/tooltip/index.js +15 -0
  244. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  245. package/dist/components/tooltip/tooltip.js +3 -1
  246. package/dist/index.d.ts.map +1 -1
  247. package/dist/index.js +15 -0
  248. package/dist/providers/index.d.ts.map +1 -1
  249. package/dist/providers/index.js +15 -0
  250. package/dist/providers/overlay.d.ts.map +1 -1
  251. package/dist/providers/overlay.js +15 -0
  252. package/dist/providers/responsive.d.ts.map +1 -1
  253. package/dist/providers/responsive.js +15 -0
  254. package/dist/types/index.d.ts.map +1 -1
  255. package/dist/types/index.js +15 -0
  256. package/dist/types/polymorphic/index.d.ts.map +1 -1
  257. package/dist/types/polymorphic/index.js +15 -0
  258. package/package.json +5 -5
@@ -1 +1,16 @@
1
+ /*
2
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  export { Table } from './table';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-cell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-cell/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
@@ -1 +1,16 @@
1
+ /*
2
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  export { TableCell } from './table-cell';
@@ -1 +1 @@
1
- {"version":3,"file":"table-cell.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-cell/table-cell.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAU,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAG/C,aAAK,cAAc,GAAG;IACpB,SAAS,CAAC,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAC;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAA;AAED,aAAK,eAAe,GAAG,WAAW,CAAC,mBAAmB,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;AAE7E,eAAO,MAAM,SAAS,iBA8CD,CAAC"}
1
+ {"version":3,"file":"table-cell.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-cell/table-cell.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,WAAW,EAAU,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAG/C,aAAK,cAAc,GAAG;IACpB,SAAS,CAAC,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAC;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAA;AAED,aAAK,eAAe,GAAG,WAAW,CAAC,mBAAmB,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;AAE7E,eAAO,MAAM,SAAS,iBA8CD,CAAC"}
@@ -1,4 +1,19 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
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
+ */
2
17
  import clsx from 'clsx';
3
18
  import { forwardRef } from 'react';
4
19
  import { Symbol } from '../../..';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-checkbox/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1 +1,16 @@
1
+ /*
2
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  export { TableCheckbox } from './table-checkbox';
@@ -1 +1 @@
1
- {"version":3,"file":"table-checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-checkbox/table-checkbox.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAM,aAAa;;iBAMzB,CAAC"}
1
+ {"version":3,"file":"table-checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-checkbox/table-checkbox.tsx"],"names":[],"mappings":";AAoBA,eAAO,MAAM,aAAa;;iBAMzB,CAAC"}
@@ -1,4 +1,19 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
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
+ */
2
17
  import { Checkbox } from '../../..';
3
18
  import * as styles from './table-checkbox.module.css';
4
19
  export const TableCheckbox = ({ ...otherProps }) => (_jsx(Checkbox, { className: styles.TableCheckbox, dimension: "small", ...otherProps }));
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-controls/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-controls/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1 +1,16 @@
1
+ /*
2
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  export { ToggleColumnsControl } from './toggle-columns';
@@ -1 +1 @@
1
- {"version":3,"file":"toggle-columns.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-controls/toggle-columns.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpD,aAAK,yBAAyB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IAClE,OAAO,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5C,cAAc,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;CACpD,CAAA;AAED,eAAO,MAAM,oBAAoB,gHAuDhC,CAAC"}
1
+ {"version":3,"file":"toggle-columns.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-controls/toggle-columns.tsx"],"names":[],"mappings":";AAoBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpD,aAAK,yBAAyB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IAClE,OAAO,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5C,cAAc,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;CACpD,CAAA;AAED,eAAO,MAAM,oBAAoB,gHAwDhC,CAAC"}
@@ -1,15 +1,30 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
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
+ */
2
17
  import { useCallback, useMemo } from 'react';
3
18
  import { Button, Menu, Popover } from '../../..';
4
19
  export const ToggleColumnsControl = ({ columns, visibleColumns, }) => {
5
- const someVisibleColums = useMemo(() => visibleColumns.length !== 0, [visibleColumns]);
20
+ const hasSomeVisibleColums = useMemo(() => visibleColumns.length !== 0, [visibleColumns]);
6
21
  const filteredColumns = useMemo(() => columns.filter(col => !col.isToggable), [columns]);
7
22
  const handleToggleAll = useCallback(() => {
8
23
  /**
9
24
  * If there are visible columns (excluding artificial ones),
10
25
  * hide them all by calling `toggleHidden(true)` for each column
11
26
  */
12
- if (someVisibleColums) {
27
+ if (hasSomeVisibleColums) {
13
28
  visibleColumns.forEach(col => col.toggleHidden(true));
14
29
  return;
15
30
  }
@@ -18,6 +33,6 @@ export const ToggleColumnsControl = ({ columns, visibleColumns, }) => {
18
33
  * toggleHidden(false) for each column
19
34
  */
20
35
  filteredColumns.forEach(col => col.toggleHidden(false));
21
- }, [someVisibleColums, filteredColumns, visibleColumns]);
36
+ }, [hasSomeVisibleColums, filteredColumns, visibleColumns]);
22
37
  return (_jsx(Popover, { placement: "bottom-start", trigger: _jsx(Button, { kind: "secondary", children: "Toggle columns" }), children: _jsxs(Menu, { maxHeight: "350px", children: [_jsx(Menu.ItemCheckbox, { value: "toggle-all", onClick: () => handleToggleAll(), checked: true, icon: visibleColumns.length === 0 ? 'check' : 'minus', children: "Toggle All" }), columns.filter(col => !col.isToggable).map((column, i) => (_jsx(Menu.ItemCheckbox, { value: column.id, autoFocus: i === 0, checked: column.isVisible, icon: column.isVisible ? 'check' : undefined, onClick: () => column.toggleHidden(), children: column.render('Header') }, column.id)))] }) }));
23
38
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-expand/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-expand/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1 +1,16 @@
1
+ /*
2
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  export { TableExpand } from './table-expand';
@@ -1,3 +1,3 @@
1
- export { TableHeader } from './table-header';
2
1
  export type { TableHeaderProps } from './table-header';
2
+ export { TableHeader } from './table-header';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-header/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-header/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1 +1,16 @@
1
+ /*
2
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  export { TableHeader } from './table-header';
@@ -1 +1 @@
1
- {"version":3,"file":"table-header.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-header/table-header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAS,KAAK,EAAE,MAAM,cAAc,CAAC;AAIzD,oBAAY,gBAAgB,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG;IAC3D,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,gBAAgB,CAAC,OAAO,KAAK,CAAC,CAAC;CAC7D,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,gBAAgB,CAuBpD,CAAC"}
1
+ {"version":3,"file":"table-header.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-header/table-header.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAS,KAAK,EAAE,MAAM,cAAc,CAAC;AAIzD,oBAAY,gBAAgB,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG;IAC3D,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,gBAAgB,CAAC,OAAO,KAAK,CAAC,CAAC;CAC7D,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,gBAAgB,CAuBpD,CAAC"}
@@ -1,3 +1,3 @@
1
- export { TablePagination } from './table-pagination';
2
1
  export type { TablePaginationProps } from './table-pagination';
2
+ export { TablePagination } from './table-pagination';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-pagination/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-pagination/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1 +1,16 @@
1
+ /*
2
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  export { TablePagination } from './table-pagination';
@@ -1 +1 @@
1
- {"version":3,"file":"table-pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-pagination/table-pagination.tsx"],"names":[],"mappings":"AAOA,oBAAY,oBAAoB,GAAG,cAAc,GAAG;IAClD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,oBAAoB,CA4D5D,CAAC"}
1
+ {"version":3,"file":"table-pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-pagination/table-pagination.tsx"],"names":[],"mappings":"AAuBA,oBAAY,oBAAoB,GAAG,cAAc,GAAG;IAClD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,oBAAoB,CA4D5D,CAAC"}
@@ -1,4 +1,19 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
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
+ */
2
17
  import { useMemo } from 'react';
3
18
  import { useUIDSeed } from 'react-uid';
4
19
  import { Pagination, Select, Stack, Text, } from '../../..';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-row/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-row/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
@@ -1 +1,16 @@
1
+ /*
2
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  export { TableRow } from './table-row';
@@ -1 +1 @@
1
- {"version":3,"file":"table-row.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-row/table-row.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAI1C,aAAK,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,iBAAiB,CAAC,cAAc,CAAC;IACvF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CACjC,CAAC,CAAC,CAAA;AAEH,eAAO,MAAM,QAAQ,+IA4BpB,CAAC"}
1
+ {"version":3,"file":"table-row.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-row/table-row.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAI1C,aAAK,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,iBAAiB,CAAC,cAAc,CAAC;IACvF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CACjC,CAAC,CAAC,CAAA;AAEH,eAAO,MAAM,QAAQ,+IA4BpB,CAAC"}
@@ -1,9 +1,24 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
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
+ */
2
17
  import clsx from 'clsx';
3
18
  import { useMemo } from 'react';
4
19
  import * as styles from './table-row.module.css';
5
20
  export const TableRow = ({ children, className, expanded, rowData, expandedRows, ...otherProps }) => {
6
- const highlightRow = useMemo(() => {
21
+ const shouldHighlightRow = useMemo(() => {
7
22
  const [currentParentRowId] = rowData?.id.match(/.*(?=\.)/) ?? [];
8
23
  const isHighlight = expandedRows?.includes(currentParentRowId) && expandedRows.every((rowId) => {
9
24
  const [parentRowMatch] = rowId.match(/.*(?=\.)/) ?? [];
@@ -11,5 +26,5 @@ export const TableRow = ({ children, className, expanded, rowData, expandedRows,
11
26
  });
12
27
  return Boolean(isHighlight);
13
28
  }, [expandedRows, rowData]);
14
- return (_jsx("tr", { className: clsx(styles.TableRow, className), "data-table-row-expanded": expanded, "data-table-row-highlight": highlightRow || undefined, ...otherProps, children: children }));
29
+ return (_jsx("tr", { className: clsx(styles.TableRow, className), "data-table-row-expanded": expanded, "data-table-row-highlight": shouldHighlightRow || undefined, ...otherProps, children: children }));
15
30
  };
@@ -91,6 +91,10 @@ export declare type TableProps<T extends Record<string, unknown>> = PropsWithCla
91
91
  * all columns have been toggled off.
92
92
  */
93
93
  emptyComponent?: ReactNode;
94
+ /**
95
+ * Enable or disable the sub rows selection when the parent row is selected.
96
+ */
97
+ selectSubRows?: boolean;
94
98
  /**
95
99
  * Show pagination below the table. This is recommended only for tables with a lot of rows.
96
100
  */
@@ -136,5 +140,5 @@ export declare type TableProps<T extends Record<string, unknown>> = PropsWithCla
136
140
  */
137
141
  onRowExpandChange?: (row: Row<T>) => void;
138
142
  };
139
- export declare const Table: <T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, ...otherProps }: TableProps<T>) => JSX.Element;
143
+ export declare const Table: <T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, selectSubRows, ...otherProps }: TableProps<T>) => JSX.Element;
140
144
  //# sourceMappingURL=table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.tsx"],"names":[],"mappings":"AAKA,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,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACtC;;QAEI;IACJ,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC9D;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CAC3C,CAAA;AAED,eAAO,MAAM,KAAK,wiBA0XjB,CAAC"}
@@ -1,4 +1,19 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
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
+ */
2
17
  import { useUpdateEffect } from 'ahooks';
3
18
  import clsx from 'clsx';
4
19
  import { AnimatePresence, domMax, LazyMotion, m, } from 'framer-motion';
@@ -14,7 +29,7 @@ import { TableExpand } from './table-expand';
14
29
  import { TableHeader } from './table-header';
15
30
  import { TablePagination } from './table-pagination';
16
31
  import { TableRow } from './table-row';
17
- export const Table = ({ className, style, columns, data = [], selectableRows, selectedRowIds = [], onSelectedRowsChange, stripes, showSeparators = true, title, actions, selectedActions, selectedLabel = selectedRowIds => `Selected items: ${selectedRowIds.length}`, showHeader = false, showTableHead = true, columnsControl = false, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage = 10, totalRows, initialPageIndex = 0, onPaginationChange, onSortChange, pageClusters, initialSortBy = [], onRowExpandChange, ...otherProps }) => {
32
+ export const Table = ({ className, style, columns, data = [], selectableRows, selectedRowIds = [], onSelectedRowsChange, stripes, showSeparators = true, title, actions, selectedActions, selectedLabel = selectedRowIds => `Selected items: ${selectedRowIds.length}`, showHeader = false, showTableHead = true, columnsControl = false, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage = 10, totalRows, initialPageIndex = 0, onPaginationChange, onSortChange, pageClusters, initialSortBy = [], onRowExpandChange, selectSubRows = true, ...otherProps }) => {
18
33
  const uid = useUIDSeed();
19
34
  const hasSomeExpandableRows = useMemo(() => data.some(d => d.subRows), [data]);
20
35
  const isManualPaginated = useMemo(() => Boolean(showPagination && onPaginationChange && totalRows), [showPagination, totalRows, onPaginationChange]);
@@ -41,6 +56,7 @@ export const Table = ({ className, style, columns, data = [], selectableRows, se
41
56
  autoResetHiddenColumns: false,
42
57
  autoResetPage: false,
43
58
  autoResetSortBy: false,
59
+ selectSubRows,
44
60
  /**
45
61
  * This `paginateExpandedRows` prop prevent expanded rows to
46
62
  * be placed in the next page. But it breaks row selection
@@ -3,20 +3,20 @@ import { ComponentMeta, ComponentStory } from '@storybook/react';
3
3
  import { Table } from './table';
4
4
  declare const story: ComponentMeta<typeof Table>;
5
5
  export default story;
6
- export declare const Simple: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
7
- export declare const SelectedRows: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
8
- export declare const HidingColumn: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
9
- export declare const defaultHiddenColumns: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
10
- export declare const Scrollable: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
11
- export declare const WithTableActions: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
12
- export declare const CustomExpandable: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
13
- export declare const Pagination: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
14
- export declare const RowActions: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
15
- export declare const NoData: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
16
- export declare const ManualPagination: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
17
- export declare const Loading: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
18
- export declare const ManualSorting: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
19
- export declare const ManualPaginationFiltering: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
20
- export declare const PreselectedRows: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
21
- export declare const AsyncData: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
6
+ export declare const Simple: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, selectSubRows, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
7
+ export declare const SelectedRows: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, selectSubRows, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
8
+ export declare const HidingColumn: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, selectSubRows, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
9
+ export declare const defaultHiddenColumns: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, selectSubRows, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
10
+ export declare const Scrollable: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, selectSubRows, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
11
+ export declare const WithTableActions: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, selectSubRows, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
12
+ export declare const CustomExpandable: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, selectSubRows, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
13
+ export declare const Pagination: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, selectSubRows, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
14
+ export declare const RowActions: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, selectSubRows, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
15
+ export declare const NoData: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, selectSubRows, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
16
+ export declare const ManualPagination: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, selectSubRows, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
17
+ export declare const Loading: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, selectSubRows, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
18
+ export declare const ManualSorting: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, selectSubRows, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
19
+ export declare const ManualPaginationFiltering: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, selectSubRows, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
20
+ export declare const PreselectedRows: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, selectSubRows, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
21
+ export declare const AsyncData: ComponentStory<(<T extends Record<string, unknown>>({ className, style, columns, data, selectableRows, selectedRowIds, onSelectedRowsChange, stripes, showSeparators, title, actions, selectedActions, selectedLabel, showHeader, showTableHead, columnsControl, defaultHiddenColumns, height, loading, background, expandableRowComponent, emptyComponent, showPagination, isManualSorted, itemsPerPage, totalRows, initialPageIndex, onPaginationChange, onSortChange, pageClusters, initialSortBy, onRowExpandChange, selectSubRows, ...otherProps }: import("./table").TableProps<T>) => JSX.Element)>;
22
22
  //# sourceMappingURL=table.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"table.stories.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQjE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAWhC,QAAA,MAAM,KAAK,EAAE,aAAa,CAAC,OAAO,KAAK,CA85BtC,CAAC;AAEF,eAAe,KAAK,CAAC;AAgCrB,eAAO,MAAM,MAAM,6jBAAoB,CAAC;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mB,CAAC,CAAA;AAC1G,oBAAY,QAAQ,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,UAAU,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAA;AAC5F,oBAAY,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,mBAAmB,CAAC,CAAA;AACzG,oBAAY,wBAAwB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC,GAAG,mBAAmB,CAAA;AACjH,oBAAY,iBAAiB,CAAC,CAAC,IAAI;IACjC,EAAE,EAAE,MAAM,CAAC,CAAC;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAA"}
@@ -1 +1,16 @@
1
+ /*
2
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/text/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
@@ -1 +1,16 @@
1
+ /*
2
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  export { Text } from './text';
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/components/text/text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAI/D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,oBAAY,SAAS,GAAG;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,GAAG,aAAa,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC9D;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;CACzC,CAAA;AAED,aAAK,eAAe,GAAG,WAAW,CAAC,mBAAmB,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;AAEvE,eAAO,MAAM,IAAI,iBAoCI,CAAC"}
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/components/text/text.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAI/D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,oBAAY,SAAS,GAAG;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,GAAG,aAAa,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC9D;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;CACzC,CAAA;AAED,aAAK,eAAe,GAAG,WAAW,CAAC,mBAAmB,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;AAEvE,eAAO,MAAM,IAAI,iBAoCI,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/textfield/base-field/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/textfield/base-field/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
@@ -1 +1,16 @@
1
+ /*
2
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  export { BaseField } from './base-field';