@wonderflow/react-components 10.10.0 → 10.12.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 (269) 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/card.d.ts +1 -1
  32. package/dist/components/card/card.d.ts.map +1 -1
  33. package/dist/components/card/card.module.css +1 -1
  34. package/dist/components/card/index.d.ts.map +1 -1
  35. package/dist/components/card/index.js +15 -0
  36. package/dist/components/chip/chip.d.ts +2 -1
  37. package/dist/components/chip/chip.d.ts.map +1 -1
  38. package/dist/components/chip/index.d.ts.map +1 -1
  39. package/dist/components/chip/index.js +15 -0
  40. package/dist/components/circular-progress/circular-progress.d.ts.map +1 -1
  41. package/dist/components/circular-progress/circular-progress.js +15 -0
  42. package/dist/components/circular-progress/index.d.ts.map +1 -1
  43. package/dist/components/circular-progress/index.js +15 -0
  44. package/dist/components/clamp-text/clamp-text.d.ts.map +1 -1
  45. package/dist/components/clamp-text/clamp-text.js +16 -1
  46. package/dist/components/clamp-text/index.d.ts.map +1 -1
  47. package/dist/components/clamp-text/index.js +15 -0
  48. package/dist/components/container/container.d.ts.map +1 -1
  49. package/dist/components/container/container.js +15 -0
  50. package/dist/components/container/index.d.ts.map +1 -1
  51. package/dist/components/container/index.js +15 -0
  52. package/dist/components/datetime/datetime.d.ts.map +1 -1
  53. package/dist/components/datetime/datetime.js +15 -0
  54. package/dist/components/datetime/index.d.ts.map +1 -1
  55. package/dist/components/datetime/index.js +15 -0
  56. package/dist/components/disclosure/disclosure.d.ts.map +1 -1
  57. package/dist/components/disclosure/disclosure.js +15 -0
  58. package/dist/components/disclosure/index.d.ts.map +1 -1
  59. package/dist/components/disclosure/index.js +15 -0
  60. package/dist/components/drawer/drawer.d.ts.map +1 -1
  61. package/dist/components/drawer/drawer.js +15 -0
  62. package/dist/components/drawer/drawer.module.css +1 -1
  63. package/dist/components/drawer/index.d.ts.map +1 -1
  64. package/dist/components/drawer/index.js +15 -0
  65. package/dist/components/elevator/elevator.d.ts.map +1 -1
  66. package/dist/components/elevator/elevator.js +16 -1
  67. package/dist/components/elevator/index.d.ts.map +1 -1
  68. package/dist/components/elevator/index.js +15 -0
  69. package/dist/components/expander/expander.d.ts +20 -0
  70. package/dist/components/expander/expander.d.ts.map +1 -0
  71. package/dist/components/expander/expander.js +35 -0
  72. package/dist/components/expander/expander.module.css +1 -0
  73. package/dist/components/expander/expander.stories.d.ts +7 -0
  74. package/dist/components/expander/expander.stories.d.ts.map +1 -0
  75. package/dist/components/expander/expander.stories.js +16 -0
  76. package/dist/components/expander/index.d.ts +3 -0
  77. package/dist/components/expander/index.d.ts.map +1 -0
  78. package/dist/components/expander/index.js +16 -0
  79. package/dist/components/grid/index.d.ts.map +1 -1
  80. package/dist/components/grid/index.js +15 -0
  81. package/dist/components/grid/item/grid-item.d.ts.map +1 -1
  82. package/dist/components/grid/item/grid-item.js +15 -0
  83. package/dist/components/icon-button/icon-button.d.ts.map +1 -1
  84. package/dist/components/icon-button/icon-button.js +15 -0
  85. package/dist/components/icon-button/index.d.ts.map +1 -1
  86. package/dist/components/icon-button/index.js +15 -0
  87. package/dist/components/index.d.ts +1 -0
  88. package/dist/components/index.d.ts.map +1 -1
  89. package/dist/components/index.js +16 -0
  90. package/dist/components/info-state/index.d.ts.map +1 -1
  91. package/dist/components/info-state/index.js +15 -0
  92. package/dist/components/info-state/info-state.d.ts +1 -1
  93. package/dist/components/info-state/info-state.d.ts.map +1 -1
  94. package/dist/components/info-state/info-state.js +15 -0
  95. package/dist/components/info-state/info-state.stories.d.ts +5 -5
  96. package/dist/components/input-group/index.d.ts.map +1 -1
  97. package/dist/components/input-group/index.js +15 -0
  98. package/dist/components/input-group/input-group.d.ts.map +1 -1
  99. package/dist/components/input-group/input-group.js +15 -0
  100. package/dist/components/linear-progress/index.d.ts.map +1 -1
  101. package/dist/components/linear-progress/index.js +15 -0
  102. package/dist/components/linear-progress/linear-progress.d.ts.map +1 -1
  103. package/dist/components/linear-progress/linear-progress.js +15 -0
  104. package/dist/components/list/index.d.ts.map +1 -1
  105. package/dist/components/list/index.js +15 -0
  106. package/dist/components/list/list-item.d.ts.map +1 -1
  107. package/dist/components/list/list-item.js +15 -0
  108. package/dist/components/list/list.d.ts.map +1 -1
  109. package/dist/components/list/list.js +15 -0
  110. package/dist/components/masonry/index.d.ts.map +1 -1
  111. package/dist/components/masonry/index.js +15 -0
  112. package/dist/components/masonry/masonry.d.ts.map +1 -1
  113. package/dist/components/menu/index.d.ts.map +1 -1
  114. package/dist/components/menu/index.js +15 -0
  115. package/dist/components/menu/menu-item/menu-item-checkbox.d.ts.map +1 -1
  116. package/dist/components/menu/menu-item/menu-item-checkbox.js +15 -0
  117. package/dist/components/menu/menu-item/menu-item.d.ts.map +1 -1
  118. package/dist/components/menu/menu-item/menu-item.js +18 -3
  119. package/dist/components/menu/menu-separator/menu-separator.d.ts.map +1 -1
  120. package/dist/components/menu/menu-separator/menu-separator.js +15 -0
  121. package/dist/components/menu/menu.d.ts.map +1 -1
  122. package/dist/components/menu/menu.js +15 -0
  123. package/dist/components/modal/content/modal-content.d.ts +0 -4
  124. package/dist/components/modal/content/modal-content.d.ts.map +1 -1
  125. package/dist/components/modal/content/modal-content.js +15 -0
  126. package/dist/components/modal/index.d.ts.map +1 -1
  127. package/dist/components/modal/index.js +15 -0
  128. package/dist/components/modal/modal.d.ts.map +1 -1
  129. package/dist/components/modal/modal.js +15 -0
  130. package/dist/components/overlay-container/index.d.ts.map +1 -1
  131. package/dist/components/overlay-container/index.js +15 -0
  132. package/dist/components/overlay-container/overlay-container.d.ts.map +1 -1
  133. package/dist/components/overlay-container/overlay-container.js +15 -0
  134. package/dist/components/pagination/index.d.ts.map +1 -1
  135. package/dist/components/pagination/index.js +15 -0
  136. package/dist/components/pagination/pagination.d.ts.map +1 -1
  137. package/dist/components/pagination/pagination.js +15 -0
  138. package/dist/components/popover/index.d.ts.map +1 -1
  139. package/dist/components/popover/index.js +15 -0
  140. package/dist/components/popover/popover.d.ts.map +1 -1
  141. package/dist/components/prose/index.d.ts.map +1 -1
  142. package/dist/components/prose/index.js +15 -0
  143. package/dist/components/prose/prose.d.ts.map +1 -1
  144. package/dist/components/prose/prose.js +15 -0
  145. package/dist/components/select/index.d.ts.map +1 -1
  146. package/dist/components/select/index.js +15 -0
  147. package/dist/components/select/select.d.ts.map +1 -1
  148. package/dist/components/select/select.js +15 -0
  149. package/dist/components/selection-controls/checkbox.d.ts.map +1 -1
  150. package/dist/components/selection-controls/checkbox.js +15 -0
  151. package/dist/components/selection-controls/index.d.ts.map +1 -1
  152. package/dist/components/selection-controls/index.js +15 -0
  153. package/dist/components/selection-controls/radio.d.ts.map +1 -1
  154. package/dist/components/selection-controls/radio.js +15 -0
  155. package/dist/components/selection-controls/toggle.d.ts.map +1 -1
  156. package/dist/components/selection-controls/toggle.js +15 -0
  157. package/dist/components/separator/index.d.ts.map +1 -1
  158. package/dist/components/separator/index.js +15 -0
  159. package/dist/components/separator/separator.d.ts.map +1 -1
  160. package/dist/components/separator/separator.js +15 -0
  161. package/dist/components/skeleton/index.d.ts.map +1 -1
  162. package/dist/components/skeleton/index.js +15 -0
  163. package/dist/components/skeleton/skeleton.d.ts.map +1 -1
  164. package/dist/components/slider/index.d.ts.map +1 -1
  165. package/dist/components/slider/index.js +15 -0
  166. package/dist/components/slider/slider.d.ts.map +1 -1
  167. package/dist/components/slider/slider.js +15 -0
  168. package/dist/components/snackbar/index.d.ts.map +1 -1
  169. package/dist/components/snackbar/index.js +15 -0
  170. package/dist/components/snackbar/snackbar.d.ts.map +1 -1
  171. package/dist/components/snackbar/snackbar.js +15 -0
  172. package/dist/components/spinner/index.d.ts.map +1 -1
  173. package/dist/components/spinner/index.js +15 -0
  174. package/dist/components/spinner/spinner.d.ts.map +1 -1
  175. package/dist/components/spinner/spinner.js +15 -0
  176. package/dist/components/split-button/index.d.ts.map +1 -1
  177. package/dist/components/split-button/index.js +15 -0
  178. package/dist/components/split-button/split-button.d.ts.map +1 -1
  179. package/dist/components/split-button/split-button.js +15 -0
  180. package/dist/components/stack/index.d.ts.map +1 -1
  181. package/dist/components/stack/index.js +15 -0
  182. package/dist/components/stack/stack.d.ts.map +1 -1
  183. package/dist/components/star-meter/index.d.ts.map +1 -1
  184. package/dist/components/star-meter/index.js +15 -0
  185. package/dist/components/star-meter/star-meter.d.ts.map +1 -1
  186. package/dist/components/star-meter/star-meter.js +15 -0
  187. package/dist/components/symbol/index.d.ts.map +1 -1
  188. package/dist/components/symbol/index.js +15 -0
  189. package/dist/components/symbol/symbol.d.ts +1 -1
  190. package/dist/components/symbol/symbol.d.ts.map +1 -1
  191. package/dist/components/symbol/symbol.stories.d.ts +2 -2
  192. package/dist/components/tab/index.d.ts.map +1 -1
  193. package/dist/components/tab/index.js +15 -0
  194. package/dist/components/tab/tab.d.ts +2 -1
  195. package/dist/components/tab/tab.d.ts.map +1 -1
  196. package/dist/components/tab/tab.js +16 -1
  197. package/dist/components/tab/tabs-panel.d.ts.map +1 -1
  198. package/dist/components/tab/tabs-panel.js +15 -0
  199. package/dist/components/table/index.d.ts.map +1 -1
  200. package/dist/components/table/index.js +15 -0
  201. package/dist/components/table/table-cell/index.d.ts.map +1 -1
  202. package/dist/components/table/table-cell/index.js +15 -0
  203. package/dist/components/table/table-cell/table-cell.d.ts.map +1 -1
  204. package/dist/components/table/table-cell/table-cell.js +15 -0
  205. package/dist/components/table/table-checkbox/index.d.ts.map +1 -1
  206. package/dist/components/table/table-checkbox/index.js +15 -0
  207. package/dist/components/table/table-checkbox/table-checkbox.d.ts.map +1 -1
  208. package/dist/components/table/table-checkbox/table-checkbox.js +15 -0
  209. package/dist/components/table/table-controls/index.d.ts.map +1 -1
  210. package/dist/components/table/table-controls/index.js +15 -0
  211. package/dist/components/table/table-controls/toggle-columns.d.ts.map +1 -1
  212. package/dist/components/table/table-controls/toggle-columns.js +18 -3
  213. package/dist/components/table/table-expand/index.d.ts.map +1 -1
  214. package/dist/components/table/table-expand/index.js +15 -0
  215. package/dist/components/table/table-expand/table-expand.d.ts +1 -1
  216. package/dist/components/table/table-expand/table-expand.d.ts.map +1 -1
  217. package/dist/components/table/table-expand/table-expand.js +0 -1
  218. package/dist/components/table/table-header/index.d.ts +1 -1
  219. package/dist/components/table/table-header/index.d.ts.map +1 -1
  220. package/dist/components/table/table-header/index.js +15 -0
  221. package/dist/components/table/table-header/table-header.d.ts.map +1 -1
  222. package/dist/components/table/table-pagination/index.d.ts +1 -1
  223. package/dist/components/table/table-pagination/index.d.ts.map +1 -1
  224. package/dist/components/table/table-pagination/index.js +15 -0
  225. package/dist/components/table/table-pagination/table-pagination.d.ts.map +1 -1
  226. package/dist/components/table/table-pagination/table-pagination.js +15 -0
  227. package/dist/components/table/table-row/index.d.ts.map +1 -1
  228. package/dist/components/table/table-row/index.js +15 -0
  229. package/dist/components/table/table-row/table-row.d.ts.map +1 -1
  230. package/dist/components/table/table-row/table-row.js +17 -2
  231. package/dist/components/table/table.d.ts +5 -1
  232. package/dist/components/table/table.d.ts.map +1 -1
  233. package/dist/components/table/table.js +17 -1
  234. package/dist/components/table/table.stories.d.ts +16 -16
  235. package/dist/components/table/table.stories.d.ts.map +1 -1
  236. package/dist/components/table/types.d.ts.map +1 -1
  237. package/dist/components/table/types.js +15 -0
  238. package/dist/components/text/index.d.ts.map +1 -1
  239. package/dist/components/text/index.js +15 -0
  240. package/dist/components/text/text.d.ts.map +1 -1
  241. package/dist/components/textfield/base-field/index.d.ts.map +1 -1
  242. package/dist/components/textfield/base-field/index.js +15 -0
  243. package/dist/components/textfield/index.d.ts.map +1 -1
  244. package/dist/components/textfield/index.js +15 -0
  245. package/dist/components/title/index.d.ts.map +1 -1
  246. package/dist/components/title/index.js +15 -0
  247. package/dist/components/title/title.d.ts.map +1 -1
  248. package/dist/components/title/title.js +16 -1
  249. package/dist/components/toggle-button/index.d.ts.map +1 -1
  250. package/dist/components/toggle-button/index.js +15 -0
  251. package/dist/components/toggle-button/toggle-button.d.ts.map +1 -1
  252. package/dist/components/toggle-button/toggle-button.js +15 -0
  253. package/dist/components/tooltip/index.d.ts.map +1 -1
  254. package/dist/components/tooltip/index.js +15 -0
  255. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  256. package/dist/components/tooltip/tooltip.js +3 -1
  257. package/dist/index.d.ts.map +1 -1
  258. package/dist/index.js +15 -0
  259. package/dist/providers/index.d.ts.map +1 -1
  260. package/dist/providers/index.js +15 -0
  261. package/dist/providers/overlay.d.ts.map +1 -1
  262. package/dist/providers/overlay.js +15 -0
  263. package/dist/providers/responsive.d.ts.map +1 -1
  264. package/dist/providers/responsive.js +15 -0
  265. package/dist/types/index.d.ts.map +1 -1
  266. package/dist/types/index.js +15 -0
  267. package/dist/types/polymorphic/index.d.ts.map +1 -1
  268. package/dist/types/polymorphic/index.js +15 -0
  269. package/package.json +10 -9
@@ -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;AA0BxC,eAAO,MAAM,YAAY,6jBAA6B,CAAC;AAuCvD,eAAO,MAAM,YAAY,6jBAAgC,CAAC;AAM1D,eAAO,MAAM,oBAAoB,6jBAAoB,CAAC;AAOtD,eA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AAA;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';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/textfield/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/textfield/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,SAAS,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 { Textfield } from './textfield';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/title/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/title/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,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 { Title } from './title';
@@ -1 +1 @@
1
- {"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../src/components/title/title.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAU,MAAM,cAAc,CAAC;AAInD,oBAAY,UAAU,GAAG;IACvB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,SAAS,CAAC;IACtD;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAA;AAED,aAAK,gBAAgB,GAAG,WAAW,CAAC,mBAAmB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAE5E,eAAO,MAAM,KAAK,kBAqDI,CAAC"}
1
+ {"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../src/components/title/title.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,WAAW,EAAU,MAAM,cAAc,CAAC;AAInD,oBAAY,UAAU,GAAG;IACvB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,SAAS,CAAC;IACtD;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAA;AAED,aAAK,gBAAgB,GAAG,WAAW,CAAC,mBAAmB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAE5E,eAAO,MAAM,KAAK,kBAqDI,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 { Children, forwardRef, useCallback, } from 'react';
4
19
  import slugify from 'slugify';
@@ -21,6 +36,6 @@ export const Title = forwardRef(({ children, className, as: Wrapper = 'span', li
21
36
  '--t-align': textAlign,
22
37
  };
23
38
  return (_jsxs(Wrapper, { ref: forwardedRef, "data-title-line-height": lineHeight, "data-title-responsive": responsive,
24
- // @ts-expect-error
39
+ // @ts-expect-error: computedLevel is not a pure class in css module
25
40
  className: clsx(styles.Title, styles[computedLevel], className), style: { ...dynamicStyle, ...style }, id: generatedID, ...otherProps, children: [children, anchor && (_jsx("a", { href: `#${generatedID}`, className: styles.Anchor, children: _jsx(Symbol, { source: "link", weight: "duotone", dimension: 24 }) }))] }));
26
41
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-button/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-button/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,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 { ToggleButton } from './toggle-button';
@@ -1 +1 @@
1
- {"version":3,"file":"toggle-button.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-button/toggle-button.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EACL,UAAU,EAAE,eAAe,EAAE,WAAW,EAEzC,MAAM,cAAc,CAAC;AAItB,aAAK,QAAQ,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,eAAe,GAAG,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;AAEnG,oBAAY,iBAAiB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,QAAQ,GAAG,cAAc,CAAC;IACrF;;OAEG;IACH,WAAW,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACtC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC,GAAG,CAAC,CAAA;AAEN,aAAK,uBAAuB,GAAG,WAAW,CAAC,mBAAmB,CAC9D,WAAW,CAAC,gBAAgB,CAAC,OAAO,UAAU,CAAC,EAC/C,iBAAiB,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC,CACzD,CAAC;AAqBF,eAAO,MAAM,YAAY,yBA8EI,CAAC"}
1
+ {"version":3,"file":"toggle-button.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-button/toggle-button.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EACL,UAAU,EAAE,eAAe,EAAE,WAAW,EAEzC,MAAM,cAAc,CAAC;AAItB,aAAK,QAAQ,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,eAAe,GAAG,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;AAEnG,oBAAY,iBAAiB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,QAAQ,GAAG,cAAc,CAAC;IACrF;;OAEG;IACH,WAAW,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACtC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC,GAAG,CAAC,CAAA;AAEN,aAAK,uBAAuB,GAAG,WAAW,CAAC,mBAAmB,CAC9D,WAAW,CAAC,gBAAgB,CAAC,OAAO,UAAU,CAAC,EAC/C,iBAAiB,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC,CACzD,CAAC;AAqBF,eAAO,MAAM,YAAY,yBA8EI,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 clsx from 'clsx';
3
18
  import { domMax, LazyMotion, m } from 'framer-motion';
4
19
  import { forwardRef, useCallback, useEffect, useState, } from 'react';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,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 { Tooltip } from './tooltip';
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEtF,OAAO,EACgE,SAAS,EAC/E,MAAM,OAAO,CAAC;AAQf,oBAAY,YAAY,GAAG;IACzB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,aAAa,GAAG,aAAa,GAAG,kBAAkB,CAAC;IAC/D;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,eAAe,CAAC,YAAY,CAiFjD,CAAC"}
1
+ {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEtF,OAAO,EACgE,SAAS,EAC/E,MAAM,OAAO,CAAC;AAQf,oBAAY,YAAY,GAAG;IACzB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,aAAa,GAAG,aAAa,GAAG,kBAAkB,CAAC;IAC/D;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,eAAe,CAAC,YAAY,CAkFjD,CAAC"}
@@ -10,7 +10,9 @@ export const Tooltip = ({ children, trigger, placement = 'bottom-start', open, s
10
10
  const [isOpen, setIsOpen] = useState(false);
11
11
  const tooltipContainerRef = useRef(null);
12
12
  useKeyPress('esc', () => setIsOpen(false));
13
- const { getArrowProps, getTooltipProps, setTooltipRef, setTriggerRef, visible, } = usePopperTooltip({
13
+ const { getArrowProps, getTooltipProps, setTooltipRef, setTriggerRef,
14
+ /* eslint-disable @typescript-eslint/naming-convention */
15
+ visible, } = usePopperTooltip({
14
16
  delayShow: delay,
15
17
  delayHide: 300,
16
18
  trigger: ['hover'],
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgBA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -1,3 +1,18 @@
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 * from './components';
2
17
  export * from './providers';
3
18
  export * from './types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC"}
@@ -1,3 +1,18 @@
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 { OverlayProvider, useOverlayContext } from './overlay';
2
17
  export { ResponsiveProvider, useResponsiveContext } from './responsive';
3
18
  export { UIDReset as IdProvider } from 'react-uid';
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/providers/overlay.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAE1F,aAAK,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC,GAAG;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAA;AAED,eAAO,MAAM,cAAc,8CAGzB,CAAC;AAIH,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,mBAAmB,CAiB3D,CAAC;AAEF,eAAO,MAAM,iBAAiB,2BAQ7B,CAAC"}
1
+ {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/providers/overlay.tsx"],"names":[],"mappings":";AAoBA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAE1F,aAAK,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC,GAAG;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAA;AAED,eAAO,MAAM,cAAc,8CAGzB,CAAC;AAIH,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,mBAAmB,CAiB3D,CAAC;AAEF,eAAO,MAAM,iBAAiB,2BAS7B,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
  /* eslint-disable @typescript-eslint/no-empty-function */
3
18
  import { createContext, useContext } from 'react';
4
19
  import { useUIDSeed } from 'react-uid';
@@ -1 +1 @@
1
- {"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../src/providers/responsive.tsx"],"names":[],"mappings":";AAKA,aAAK,sBAAsB,GAAG;IAC5B;;MAEE;IACF,WAAW,EAAE;QACX,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF;;MAEE;IACF,OAAO,EAAE,MAAM,CAAC,MAAM,sBAAsB,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC,CAAC;CACvE,CAAA;AAED,aAAK,uBAAuB,GAAG;IAC7B,WAAW,CAAC,EAAE,sBAAsB,CAAC,aAAa,CAAC,CAAC;CACrD,CAAA;AAUD,eAAO,MAAM,iBAAiB,iDAS5B,CAAC;AAIH,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,uBAAuB,CAuBlE,CAAC;AAEF,eAAO,MAAM,oBAAoB,8BAQhC,CAAC"}
1
+ {"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../src/providers/responsive.tsx"],"names":[],"mappings":";AAqBA,aAAK,sBAAsB,GAAG;IAC5B;;MAEE;IACF,WAAW,EAAE;QACX,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF;;MAEE;IACF,OAAO,EAAE,MAAM,CAAC,MAAM,sBAAsB,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC,CAAC;CACvE,CAAA;AAED,aAAK,uBAAuB,GAAG;IAC7B,WAAW,CAAC,EAAE,sBAAsB,CAAC,aAAa,CAAC,CAAC;CACrD,CAAA;AAUD,eAAO,MAAM,iBAAiB,iDAS5B,CAAC;AAIH,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,uBAAuB,CAuBlE,CAAC;AAEF,eAAO,MAAM,oBAAoB,8BAShC,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 { configResponsive, useResponsive as responsiveAhook } from 'ahooks';
3
18
  import { createContext, useContext, useEffect, useState, } from 'react';
4
19
  const DEFAULT_BREAKPOINTS = {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,WAAW,MAAM,eAAe,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 * as Polymorphic from './polymorphic';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/polymorphic/index.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,aAAK,KAAK,CAAC,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC;AAEjG;;GAEG;AACH,aAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,mBAAmB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE7F;;GAEG;AACH,aAAK,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS,mBAAmB,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAEnF,aAAK,yBAA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,EAAE,CAAA;KAAE,CAAC,GACvD,KAAK,GACZ,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;CAC9B;AAED,YAAY,EACV,mBAAmB,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,GACvD,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 {};
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@wonderflow/react-components",
3
- "version": "10.10.0",
3
+ "version": "10.12.0",
4
4
  "description": "UI components from Wonderflow's Wanda design system",
5
5
  "author": "Wonderflow",
6
- "license": "MIT",
6
+ "license": "Apache-2.0",
7
7
  "types": "dist/index.d.ts",
8
8
  "main": "dist/index.js",
9
9
  "files": [
@@ -59,7 +59,7 @@
59
59
  "react-dom": ">=17.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@babel/core": "7.19.1",
62
+ "@babel/core": "7.19.3",
63
63
  "@babel/preset-typescript": "7.18.6",
64
64
  "@storybook/addon-actions": "6.5.12",
65
65
  "@storybook/addon-essentials": "6.5.12",
@@ -73,11 +73,11 @@
73
73
  "@types/react": "17.0.43",
74
74
  "@types/react-dom": "17.0.14",
75
75
  "@types/react-table": "7.7.12",
76
- "@wonderflow/config": "10.10.0",
77
- "@wonderflow/tokens": "10.10.0",
76
+ "@wonderflow/config": "10.12.0",
77
+ "@wonderflow/tokens": "10.12.0",
78
78
  "babel-loader": "8.2.5",
79
79
  "cpy-cli": "3.1.1",
80
- "postcss": "8.4.16",
80
+ "postcss": "8.4.17",
81
81
  "postcss-cli": "10.0.0",
82
82
  "react": "17.0.2",
83
83
  "react-dom": "17.0.2",
@@ -85,13 +85,14 @@
85
85
  "storybook-css-modules-preset": "1.1.1",
86
86
  "tsconfig": "10.0.0",
87
87
  "typed-css-modules": "0.7.2",
88
- "typescript": "4.7.4",
88
+ "typescript": "4.8.4",
89
89
  "typescript-plugin-css-modules": "3.4.0"
90
90
  },
91
91
  "dependencies": {
92
92
  "@radix-ui/react-tabs": "1.0.0",
93
- "ahooks": "3.5.0",
93
+ "ahooks": "3.7.1",
94
94
  "clsx": "1.2.1",
95
+ "constate": "3.3.2",
95
96
  "framer-motion": "6.5.1",
96
97
  "react-focus-on": "3.6.0",
97
98
  "react-masonry-css": "1.0.16",
@@ -102,6 +103,6 @@
102
103
  "react-table": "7.8.0",
103
104
  "react-uid": "2.3.2",
104
105
  "slugify": "1.6.5",
105
- "type-fest": "2.19.0"
106
+ "type-fest": "3.0.0"
106
107
  }
107
108
  }