@vendorflow/components 3.0.14 → 4.0.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 (84) hide show
  1. package/README.md +55 -1
  2. package/lib/components/AudioPlayer/index.d.ts +1 -0
  3. package/lib/components/{material-ui/Button → Button}/Button.d.ts +1 -0
  4. package/lib/components/Button/index.d.ts +1 -0
  5. package/lib/components/{material-ui/ButtonMenu → ButtonMenu}/ButtonMenu.d.ts +1 -1
  6. package/lib/components/ButtonMenu/index.d.ts +1 -0
  7. package/lib/components/{material-ui/ColorPicker → ColorPicker}/ColorPicker.d.ts +1 -1
  8. package/lib/components/ColorPicker/index.d.ts +1 -0
  9. package/lib/components/ColorPicker/styles.d.ts +1 -0
  10. package/lib/components/{material-ui/DataTable → DataTable}/Data.d.ts +1 -1
  11. package/lib/components/{material-ui/DataTable → DataTable}/DataTable.d.ts +15 -15
  12. package/lib/components/{material-ui/DataTable → DataTable}/FilterTool/Filters/MultiSelectFilter.d.ts +2 -2
  13. package/lib/components/{material-ui/DataTable → DataTable}/FilterTool/Filters/RangeFilter.d.ts +2 -2
  14. package/lib/components/{material-ui/DataTable → DataTable}/FilterTool/Filters/SingleSelectFilter.d.ts +2 -2
  15. package/lib/components/{material-ui/DataTable → DataTable}/FilterTool/Filters/TextFilter.d.ts +2 -2
  16. package/lib/components/{material-ui/DataTable → DataTable}/FilterTool/index.d.ts +2 -2
  17. package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/AppliedFilters.d.ts +1 -1
  18. package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/BodyRow.d.ts +1 -1
  19. package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/HeaderCell.d.ts +1 -1
  20. package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/IndeterminateCheckbox.d.ts +0 -1
  21. package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/Toolbar.d.ts +3 -3
  22. package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/ViewColumnTool.d.ts +1 -1
  23. package/lib/components/DataTable/index.d.ts +1 -0
  24. package/lib/components/{material-ui/InputCheckboxGroup → InputCheckboxGroup}/InputCheckboxGroup.d.ts +2 -2
  25. package/lib/components/InputCheckboxGroup/index.d.ts +1 -0
  26. package/lib/components/InputDate/InputDate.d.ts +10 -0
  27. package/lib/components/InputDate/index.d.ts +1 -0
  28. package/lib/components/InputDateTime/InputDateTime.d.ts +11 -0
  29. package/lib/components/InputDateTime/index.d.ts +1 -0
  30. package/lib/components/InputGroup/index.d.ts +1 -0
  31. package/lib/components/{material-ui/InputRadioGroup → InputRadioGroup}/InputRadioGroup.d.ts +1 -1
  32. package/lib/components/InputRadioGroup/index.d.ts +1 -0
  33. package/lib/components/{material-ui/InputSearchDropdown → InputSearchDropdown}/InputSearchDropdown.d.ts +2 -1
  34. package/lib/components/InputSearchDropdown/index.d.ts +1 -0
  35. package/lib/components/{material-ui/InputTime → InputTime}/InputTime.d.ts +3 -3
  36. package/lib/components/InputTime/index.d.ts +1 -0
  37. package/lib/components/{material-ui/Modal → Modal}/Modal.d.ts +1 -1
  38. package/lib/components/Modal/index.d.ts +1 -0
  39. package/lib/components/index.d.ts +13 -13
  40. package/lib/index.css +1 -0
  41. package/lib/index.es.js +36847 -0
  42. package/lib/index.es.js.map +1 -0
  43. package/lib/index.umd.js +640 -0
  44. package/lib/index.umd.js.map +1 -0
  45. package/package.json +51 -83
  46. package/lib/components/material-ui/AudioPlayer/AudioPlayer.story.d.ts +0 -2
  47. package/lib/components/material-ui/AudioPlayer/index.d.ts +0 -1
  48. package/lib/components/material-ui/Button/Button.story.d.ts +0 -2
  49. package/lib/components/material-ui/Button/index.d.ts +0 -1
  50. package/lib/components/material-ui/ButtonMenu/ButtonMenu.story.d.ts +0 -5
  51. package/lib/components/material-ui/ButtonMenu/index.d.ts +0 -1
  52. package/lib/components/material-ui/ColorPicker/ColorPicker.story.d.ts +0 -2
  53. package/lib/components/material-ui/ColorPicker/index.d.ts +0 -1
  54. package/lib/components/material-ui/ColorPicker/styles.d.ts +0 -1
  55. package/lib/components/material-ui/DataTable/DataTable.story.d.ts +0 -2
  56. package/lib/components/material-ui/DataTable/index.d.ts +0 -1
  57. package/lib/components/material-ui/InputCheckboxGroup/InputCheckboxGroup.story.d.ts +0 -2
  58. package/lib/components/material-ui/InputCheckboxGroup/index.d.ts +0 -1
  59. package/lib/components/material-ui/InputDate/InputDate.d.ts +0 -11
  60. package/lib/components/material-ui/InputDate/InputDate.story.d.ts +0 -2
  61. package/lib/components/material-ui/InputDate/index.d.ts +0 -1
  62. package/lib/components/material-ui/InputDateTime/InputDateTime.d.ts +0 -11
  63. package/lib/components/material-ui/InputDateTime/InputDateTime.story.d.ts +0 -2
  64. package/lib/components/material-ui/InputDateTime/index.d.ts +0 -1
  65. package/lib/components/material-ui/InputGroup/InputGroup.story.d.ts +0 -2
  66. package/lib/components/material-ui/InputGroup/index.d.ts +0 -1
  67. package/lib/components/material-ui/InputRadioGroup/InputRadioGroup.story.d.ts +0 -2
  68. package/lib/components/material-ui/InputRadioGroup/index.d.ts +0 -1
  69. package/lib/components/material-ui/InputSearchDropdown/InputSearchDropdown.story.d.ts +0 -4
  70. package/lib/components/material-ui/InputSearchDropdown/index.d.ts +0 -1
  71. package/lib/components/material-ui/InputTime/InputTime.story.d.ts +0 -2
  72. package/lib/components/material-ui/InputTime/index.d.ts +0 -1
  73. package/lib/components/material-ui/Modal/Modal.story.d.ts +0 -2
  74. package/lib/components/material-ui/Modal/index.d.ts +0 -1
  75. package/lib/index.js +0 -3
  76. package/lib/index.js.LICENSE.txt +0 -29
  77. package/lib/index.js.map +0 -1
  78. /package/lib/components/{material-ui/AudioPlayer → AudioPlayer}/AudioPlayer.d.ts +0 -0
  79. /package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/BodyCell.d.ts +0 -0
  80. /package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/GlobalSearchFilter.d.ts +0 -0
  81. /package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/SortIndicator.d.ts +0 -0
  82. /package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/Table.d.ts +0 -0
  83. /package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/TableBodyContent.d.ts +0 -0
  84. /package/lib/components/{material-ui/InputGroup → InputGroup}/InputGroup.d.ts +0 -0
package/README.md CHANGED
@@ -1,3 +1,57 @@
1
1
  # Vendorflow Component Library
2
2
 
3
- This contains all the common components used across Vendorflow apps.
3
+ ## Instructions
4
+
5
+ Make sure you are using Node v22 or later. I recommend using `nvm` so that you can switch between versions easily. You would be able to
6
+ use `nvm use lts/jod` which switches to the latest release of v22.
7
+
8
+ ## React + TypeScript + Vite
9
+
10
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
11
+
12
+ Currently, two official plugins are available:
13
+
14
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
15
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
16
+
17
+ ### Expanding the ESLint configuration
18
+
19
+ If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
20
+
21
+ - Configure the top-level `parserOptions` property like this:
22
+
23
+ ```js
24
+ export default tseslint.config({
25
+ languageOptions: {
26
+ // other options...
27
+ parserOptions: {
28
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
29
+ tsconfigRootDir: import.meta.dirname,
30
+ },
31
+ },
32
+ })
33
+ ```
34
+
35
+ - Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
36
+ - Optionally add `...tseslint.configs.stylisticTypeChecked`
37
+ - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
38
+
39
+ ```js
40
+ // eslint.config.js
41
+ import react from 'eslint-plugin-react'
42
+
43
+ export default tseslint.config({
44
+ // Set the react version
45
+ settings: { react: { version: '18.3' } },
46
+ plugins: {
47
+ // Add the react plugin
48
+ react,
49
+ },
50
+ rules: {
51
+ // other rules...
52
+ // Enable its recommended rules
53
+ ...react.configs.recommended.rules,
54
+ ...react.configs['jsx-runtime'].rules,
55
+ },
56
+ })
57
+ ```
@@ -0,0 +1 @@
1
+ export { default } from 'src/components/AudioPlayer/AudioPlayer.tsx';
@@ -1,4 +1,5 @@
1
1
  import { ButtonProps } from '@mui/material';
2
+ import { JSX } from 'react';
2
3
  type Props = {
3
4
  loading?: boolean;
4
5
  progressClasses?: any;
@@ -0,0 +1 @@
1
+ export { default } from 'src/components/Button/Button.tsx';
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ButtonProps, MenuProps } from '@mui/material';
3
- import { MenuItem as MenuItemType, Divider as DividerType } from '../../../types/Component.types';
3
+ import { MenuItem as MenuItemType, Divider as DividerType } from 'src/types/Component.types.ts';
4
4
  type Variant = 'text' | 'contained' | 'outlined' | undefined;
5
5
  type Props = {
6
6
  buttonRenderer?: ReactNode | (() => ReactNode);
@@ -0,0 +1 @@
1
+ export { default } from 'src/components/ButtonMenu/ButtonMenu.tsx';
@@ -1,4 +1,4 @@
1
- import { Props as InputGroupProps } from '../InputGroup/InputGroup';
1
+ import { Props as InputGroupProps } from 'src/components/InputGroup/InputGroup.tsx';
2
2
  type Props = InputGroupProps;
3
3
  export default function ColorPicker({ name, value, onChange, ...restOfProps }: Props): JSX.Element;
4
4
  export {};
@@ -0,0 +1 @@
1
+ export { default } from 'src/components/ColorPicker/ColorPicker.tsx';
@@ -0,0 +1 @@
1
+ export declare const colorPaletteStyles: import("@emotion/utils").SerializedStyles;
@@ -1,4 +1,4 @@
1
- import { EnhancedColumn } from '../../../types/DataTable.types';
1
+ import { EnhancedColumn } from 'src/types';
2
2
  export interface People {
3
3
  id: string;
4
4
  firstName: string;
@@ -3,7 +3,7 @@
3
3
  import { jsx } from '@emotion/react';
4
4
  import { PluginHook, TableState, ColumnInstance, Row, ActionType, Renderer, FilterProps } from 'react-table';
5
5
  import { ReactNode } from 'react';
6
- import { EnhancedColumn, EnhancedTableInstance, EnhancedTableState, FilterType, TableFeatureOptions, UseDefaultTableInstanceProps } from '../../../types/DataTable.types';
6
+ import { EnhancedColumn, EnhancedTableInstance, EnhancedTableState, FilterType, TableFeatureOptions, UseDefaultTableInstanceProps } from 'src/types';
7
7
  export declare const ACTION_COLUMN_ID = "action-column";
8
8
  export declare const CELL_PADDING = 4;
9
9
  interface Props<D extends object> {
@@ -38,7 +38,7 @@ export declare function useDefaultTableInstance<D extends object>({ columns, dat
38
38
  getSubRows?: ((originalRow: D, relativeIndex: number) => D[]) | undefined;
39
39
  getRowId?: ((originalRow: D, relativeIndex: number, parent?: Row<D> | undefined) => string) | undefined;
40
40
  autoResetHiddenColumns?: boolean | undefined;
41
- dispatch: import("react-table").TableDispatch<any>;
41
+ dispatch: import("react-table").TableDispatch;
42
42
  visibleColumns: ColumnInstance<D>[];
43
43
  headerGroups: import("react-table").HeaderGroup<D>[];
44
44
  footerGroups: import("react-table").HeaderGroup<D>[];
@@ -50,24 +50,24 @@ export declare function useDefaultTableInstance<D extends object>({ columns, dat
50
50
  flatRows: Row<D>[];
51
51
  totalColumnsWidth: number;
52
52
  allColumnsHidden: boolean;
53
- toggleHideColumn: (columnId: import("react-table").IdType<D>, value?: boolean | undefined) => void;
53
+ toggleHideColumn: (columnId: import("react-table").IdType<D>, value?: boolean) => void;
54
54
  setHiddenColumns: (param: import("react-table").IdType<D>[] | ((oldHidden: import("react-table").IdType<D>[]) => import("react-table").IdType<D>[])) => void;
55
- toggleHideAllColumns: (value?: boolean | undefined) => void;
56
- getToggleHideAllColumnsProps: (props?: Partial<import("react-table").TableToggleHideAllColumnProps> | undefined) => import("react-table").TableToggleHideAllColumnProps;
55
+ toggleHideAllColumns: (value?: boolean) => void;
56
+ getToggleHideAllColumnsProps: (props?: Partial<import("react-table").TableToggleHideAllColumnProps>) => import("react-table").TableToggleHideAllColumnProps;
57
57
  getHooks: () => import("react-table").Hooks<D>;
58
58
  preExpandedRows: Row<D>[];
59
59
  expandedRows: Row<D>[];
60
60
  expandedDepth: number;
61
61
  isAllRowsExpanded: boolean;
62
- toggleRowExpanded: (id: import("react-table").IdType<D>[], value?: boolean | undefined) => void;
63
- toggleAllRowsExpanded: (value?: boolean | undefined) => void;
62
+ toggleRowExpanded: (id: import("react-table").IdType<D>[], value?: boolean) => void;
63
+ toggleAllRowsExpanded: (value?: boolean) => void;
64
64
  preFilteredRows: Row<D>[];
65
65
  preFilteredFlatRows: Row<D>[];
66
66
  preFilteredRowsById: Record<string, Row<D>>;
67
67
  filteredRows: Row<D>[];
68
68
  filteredFlatRows: Row<D>[];
69
69
  filteredRowsById: Record<string, Row<D>>;
70
- setFilter: (columnId: import("react-table").IdType<D>, updater: any) => void;
70
+ setFilter: (columnId: import("react-table").IdType<D>, updater: ((filterValue: import("react-table").FilterValue) => import("react-table").FilterValue) | import("react-table").FilterValue) => void;
71
71
  setAllFilters: (updater: import("react-table").Filters<D> | ((filters: import("react-table").Filters<D>) => import("react-table").Filters<D>)) => void;
72
72
  preGlobalFilteredRows: Row<D>[];
73
73
  preGlobalFilteredFlatRows: Row<D>[];
@@ -75,23 +75,23 @@ export declare function useDefaultTableInstance<D extends object>({ columns, dat
75
75
  globalFilteredRows: Row<D>[];
76
76
  globalFilteredFlatRows: Row<D>[];
77
77
  globalFilteredRowsById: Record<string, Row<D>>;
78
- setGlobalFilter: (filterValue: any) => void;
78
+ setGlobalFilter: (filterValue: import("react-table").FilterValue) => void;
79
79
  preSortedRows: Row<D>[];
80
80
  setSortBy: (sortBy: import("react-table").SortingRule<D>[]) => void;
81
- toggleSortBy: (columnId: import("react-table").IdType<D>, descending?: boolean | undefined, isMulti?: boolean | undefined) => void;
81
+ toggleSortBy: (columnId: import("react-table").IdType<D>, descending?: boolean, isMulti?: boolean) => void;
82
82
  page: Row<D>[];
83
83
  pageCount: number;
84
84
  pageOptions: number[];
85
85
  canPreviousPage: boolean;
86
86
  canNextPage: boolean;
87
- gotoPage: (updater: number | ((pageIndex: number) => number)) => void;
87
+ gotoPage: (updater: ((pageIndex: number) => number) | number) => void;
88
88
  previousPage: () => void;
89
89
  nextPage: () => void;
90
90
  setPageSize: (pageSize: number) => void;
91
- toggleRowSelected: (rowId: import("react-table").IdType<D>, set?: boolean | undefined) => void;
92
- toggleAllRowsSelected: (value?: boolean | undefined) => void;
93
- getToggleAllRowsSelectedProps: (props?: Partial<import("react-table").TableToggleAllRowsSelectedProps> | undefined) => import("react-table").TableToggleAllRowsSelectedProps;
94
- getToggleAllPageRowsSelectedProps: (props?: Partial<import("react-table").TableToggleAllRowsSelectedProps> | undefined) => import("react-table").TableToggleAllRowsSelectedProps;
91
+ toggleRowSelected: (rowId: import("react-table").IdType<D>, set?: boolean) => void;
92
+ toggleAllRowsSelected: (value?: boolean) => void;
93
+ getToggleAllRowsSelectedProps: (props?: Partial<import("react-table").TableToggleAllRowsSelectedProps>) => import("react-table").TableToggleAllRowsSelectedProps;
94
+ getToggleAllPageRowsSelectedProps: (props?: Partial<import("react-table").TableToggleAllRowsSelectedProps>) => import("react-table").TableToggleAllRowsSelectedProps;
95
95
  isAllRowsSelected: boolean;
96
96
  selectedFlatRows: Row<D>[];
97
97
  state: EnhancedTableState<D>;
@@ -1,8 +1,8 @@
1
1
  import { FilterProps } from 'react-table';
2
- import { EnhancedHeader } from '../../../../../types/DataTable.types';
2
+ import { EnhancedHeader } from 'src/types';
3
3
  interface Props<D extends object> extends FilterProps<D> {
4
4
  column: EnhancedHeader<D>;
5
5
  columns: EnhancedHeader<D>[];
6
6
  }
7
- export default function MultiSelectFilter<D extends object>({ column, column: { filterValue, preFilteredRows, setFilter }, }: Props<D>): JSX.Element;
7
+ export default function MultiSelectFilter<D extends object>({ column, column: { filterValue, preFilteredRows, setFilter }, }: Props<D>): import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -1,8 +1,8 @@
1
1
  import { FilterProps } from 'react-table';
2
- import { EnhancedHeader } from '../../../../../types/DataTable.types';
2
+ import { EnhancedHeader } from 'src/types';
3
3
  interface Props<D extends object> extends FilterProps<D> {
4
4
  column: EnhancedHeader<D>;
5
5
  columns: EnhancedHeader<D>[];
6
6
  }
7
- export default function RangeFilter<D extends object>({ column: { id, filterValue, preFilteredRows, setFilter }, }: Props<D>): JSX.Element;
7
+ export default function RangeFilter<D extends object>({ column: { id, filterValue, preFilteredRows, setFilter }, }: Props<D>): import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -1,9 +1,9 @@
1
1
  import { FilterProps } from 'react-table';
2
- import { EnhancedHeader } from '../../../../../types/DataTable.types';
2
+ import { EnhancedHeader } from 'src/types';
3
3
  export declare const BLANK_VALUE_LABEL = "<Blank>";
4
4
  interface Props<D extends object> extends FilterProps<D> {
5
5
  column: EnhancedHeader<D>;
6
6
  columns: EnhancedHeader<D>[];
7
7
  }
8
- export default function SingleSelectFilter<D extends object>({ column, column: { filterValue, preFilteredRows, setFilter }, }: Props<D>): JSX.Element;
8
+ export default function SingleSelectFilter<D extends object>({ column, column: { filterValue, preFilteredRows, setFilter }, }: Props<D>): import("react/jsx-runtime").JSX.Element;
9
9
  export {};
@@ -1,8 +1,8 @@
1
1
  import { FilterProps } from 'react-table';
2
- import { EnhancedHeader } from '../../../../../types/DataTable.types';
2
+ import { EnhancedHeader } from 'src/types';
3
3
  interface Props<D extends object> extends FilterProps<D> {
4
4
  column: EnhancedHeader<D>;
5
5
  columns: EnhancedHeader<D>[];
6
6
  }
7
- export default function TextFilter<D extends object>({ column: { filterValue, setFilter } }: Props<D>): JSX.Element;
7
+ export default function TextFilter<D extends object>({ column: { filterValue, setFilter } }: Props<D>): import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -2,8 +2,8 @@
2
2
  /** @jsx jsx */
3
3
  import { jsx } from '@emotion/react';
4
4
  import { UseFiltersInstanceProps } from 'react-table';
5
- import { SimpleMap } from '../../../../types/Internal.types';
6
- import { EnhancedHeader } from '../../../../types/DataTable.types';
5
+ import { SimpleMap } from 'src/types/Internal.types.ts';
6
+ import { EnhancedHeader } from 'src/types';
7
7
  interface Props<D extends object> {
8
8
  allColumns: EnhancedHeader<D>[];
9
9
  columnNameById: SimpleMap<string>;
@@ -2,7 +2,7 @@
2
2
  /** @jsx jsx */
3
3
  import { jsx } from '@emotion/react';
4
4
  import { Filters, UseFiltersInstanceProps } from 'react-table';
5
- import { SimpleMap } from '../../../../types/Internal.types';
5
+ import { SimpleMap } from 'src/types/Internal.types.ts';
6
6
  interface Props<D extends object> {
7
7
  columnNameById: SimpleMap<string>;
8
8
  filters: Filters<D>;
@@ -4,7 +4,7 @@ import { jsx } from '@emotion/react';
4
4
  import { CSSProperties } from 'react';
5
5
  import { TableRowProps } from 'react-table';
6
6
  import { Maybe } from '@vendorflow/types';
7
- import { EnhancedRow } from '../../../../types/DataTable.types';
7
+ import { EnhancedRow } from 'src/types';
8
8
  interface Props<D extends object> {
9
9
  ExpandedComponent: ((props: {
10
10
  data: D;
@@ -2,7 +2,7 @@
2
2
  /** @jsx jsx */
3
3
  import { jsx } from '@emotion/react';
4
4
  import { TableHeaderProps } from 'react-table';
5
- import { EnhancedHeader } from '../../../../types/DataTable.types';
5
+ import { EnhancedHeader } from 'src/types';
6
6
  interface Props<D extends object> {
7
7
  className?: string;
8
8
  flexLayoutEnabled: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const CHECKBOX_WIDTH = 32;
3
2
  declare const IndeterminateCheckbox: import("react").ForwardRefExoticComponent<HTMLInputElement & import("react").RefAttributes<HTMLInputElement>>;
4
3
  export default IndeterminateCheckbox;
@@ -2,10 +2,10 @@
2
2
  /** @jsx jsx */
3
3
  import { jsx } from '@emotion/react';
4
4
  import { ReactNode } from 'react';
5
- import { SimpleMap } from '../../../../types/Internal.types';
6
5
  import { UseFiltersInstanceProps } from 'react-table';
7
- import { EnhancedHeader } from '../../../../types/DataTable.types';
8
- export declare const MobilePopoverStyling: import("@emotion/react").SerializedStyles;
6
+ import { EnhancedHeader } from 'src/types';
7
+ import { SimpleMap } from 'src/types/Internal.types.ts';
8
+ export declare const MobilePopoverStyling: import("@emotion/utils").SerializedStyles;
9
9
  interface Props<D extends object> {
10
10
  title?: string;
11
11
  allColumns: EnhancedHeader<D>[];
@@ -2,7 +2,7 @@
2
2
  /** @jsx jsx */
3
3
  import { jsx } from '@emotion/react';
4
4
  import { ColumnInstance } from 'react-table';
5
- import { SimpleMap } from '../../../../types/Internal.types';
5
+ import { SimpleMap } from 'src/types/Internal.types.ts';
6
6
  interface Props<D extends object> {
7
7
  allColumns: ColumnInstance<D>[];
8
8
  columnNameById: SimpleMap<string>;
@@ -0,0 +1 @@
1
+ export { DataTable, getColumnFilterConfig, SingleLineCell, usePluginConfig, useDefaultTableInstance, } from 'src/components/DataTable/DataTable.tsx';
@@ -1,4 +1,4 @@
1
- import { BasicOption, Color, SimpleEventHandler } from '../../../types';
1
+ import { BasicOption, Color, SimpleEventHandler } from 'src/types';
2
2
  interface Props {
3
3
  className?: string;
4
4
  style?: any;
@@ -14,5 +14,5 @@ interface Props {
14
14
  multi?: boolean;
15
15
  size?: 'small' | 'medium';
16
16
  }
17
- export default function InputCheckboxGroup(props: Props): JSX.Element;
17
+ export default function InputCheckboxGroup(props: Props): import("react/jsx-runtime").JSX.Element;
18
18
  export {};
@@ -0,0 +1 @@
1
+ export { default } from 'src/components/InputCheckboxGroup/InputCheckboxGroup.tsx';
@@ -0,0 +1,10 @@
1
+ import { DatePickerProps } from '@mui/x-date-pickers';
2
+ import { SimpleEventHandler } from 'src/types';
3
+ import { TextFieldProps } from '@mui/material';
4
+ type Props = {
5
+ name?: string;
6
+ onChange: SimpleEventHandler<string>;
7
+ InputProps?: Omit<TextFieldProps, 'id'>;
8
+ } & Omit<DatePickerProps<any, any>, 'onChange' | 'renderInput' | 'date' | 'rawValue' | 'openPicker' | 'InputProps'> & React.RefAttributes<HTMLDivElement>;
9
+ export default function InputDate(props: Props): JSX.Element;
10
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from 'src/components/InputDate/InputDate.tsx';
@@ -0,0 +1,11 @@
1
+ import { JSX } from 'react';
2
+ import { DateTimePickerProps } from '@mui/x-date-pickers';
3
+ import { SimpleEventHandler } from 'src/types';
4
+ import { TextFieldProps } from '@mui/material';
5
+ type Props = {
6
+ name?: string;
7
+ onChange: SimpleEventHandler<string>;
8
+ InputProps?: Omit<TextFieldProps, 'id'>;
9
+ } & Omit<DateTimePickerProps<any, any>, 'onChange' | 'renderInput' | 'date' | 'rawValue' | 'openPicker' | 'InputProps'> & React.RefAttributes<HTMLDivElement>;
10
+ export default function InputDateTime(props: Props): JSX.Element;
11
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from 'src/components/InputDateTime/InputDateTime.tsx';
@@ -0,0 +1 @@
1
+ export { default } from 'src/components/InputGroup/InputGroup.tsx';
@@ -1,4 +1,4 @@
1
- import { Color, BasicOption, SimpleEventHandler } from '../../../types';
1
+ import { Color, BasicOption, SimpleEventHandler } from 'src/types';
2
2
  interface Props {
3
3
  className?: string;
4
4
  style?: any;
@@ -0,0 +1 @@
1
+ export { default } from 'src/components/InputRadioGroup/InputRadioGroup.tsx';
@@ -1,6 +1,6 @@
1
1
  import { ChangeEvent, ReactNode, Ref } from 'react';
2
2
  import { AutocompleteProps, AutocompleteChangeReason, AutocompleteRenderInputParams } from '@mui/material';
3
- import { Variant } from '../../../types';
3
+ import { Variant } from 'src/types';
4
4
  type MaybeBoolean = boolean | undefined;
5
5
  type Props<T> = {
6
6
  error?: boolean;
@@ -18,6 +18,7 @@ type Props<T> = {
18
18
  onChange: (event: ChangeEvent<any>, value: any, reason: AutocompleteChangeReason) => void;
19
19
  getKey?: (value: T) => string;
20
20
  mRef?: Ref<HTMLElement>;
21
+ placeholder?: string;
21
22
  } & Omit<AutocompleteProps<T, MaybeBoolean, MaybeBoolean, MaybeBoolean, any>, 'onChange' | 'renderInput' | 'id'>;
22
23
  export default function InputSearchDropdown<T>(props: Props<T>): JSX.Element;
23
24
  export {};
@@ -0,0 +1 @@
1
+ export { default } from 'src/components/InputSearchDropdown/InputSearchDropdown.tsx';
@@ -1,10 +1,10 @@
1
- import { TimePickerProps } from '@mui/lab';
2
- import { SimpleEventHandler, ParsableDate } from '../../../types';
1
+ import { TimePickerProps } from '@mui/x-date-pickers';
2
+ import { SimpleEventHandler, ParsableDate } from 'src/types';
3
3
  import { TextFieldProps } from '@mui/material';
4
4
  type Props = {
5
5
  name?: string;
6
6
  onChange: SimpleEventHandler<ParsableDate>;
7
7
  InputProps?: Omit<TextFieldProps, 'id'>;
8
- } & Omit<TimePickerProps<any>, 'onChange' | 'renderInput' | 'openPicker' | 'rawValue' | 'InputProps'>;
8
+ } & Omit<TimePickerProps<any, any>, 'onChange' | 'renderInput' | 'openPicker' | 'rawValue' | 'InputProps'>;
9
9
  export default function InputTime(props: Props): JSX.Element;
10
10
  export {};
@@ -0,0 +1 @@
1
+ export { default } from 'src/components/InputTime/InputTime.tsx';
@@ -16,7 +16,7 @@ type Props = DialogProps & {
16
16
  onClose: () => void;
17
17
  submitting?: boolean;
18
18
  open: boolean;
19
- title?: string;
19
+ title?: ReactNode;
20
20
  progressValue?: number;
21
21
  footer?: ReactNode;
22
22
  };
@@ -0,0 +1 @@
1
+ export { default } from 'src/components/Modal/Modal.tsx';
@@ -1,13 +1,13 @@
1
- export { default as AudioPlayer } from './material-ui/AudioPlayer';
2
- export { default as Button } from './material-ui/Button';
3
- export { default as ButtonMenu } from './material-ui/ButtonMenu';
4
- export { default as ColorPicker } from './material-ui/ColorPicker';
5
- export { DataTable, getColumnFilterConfig, SingleLineCell, useDefaultTableInstance, usePluginConfig, } from './material-ui/DataTable';
6
- export { default as InputDate } from './material-ui/InputDate';
7
- export { default as InputDateTime } from './material-ui/InputDateTime';
8
- export { default as InputGroup } from './material-ui/InputGroup';
9
- export { default as InputCheckboxGroup } from './material-ui/InputCheckboxGroup';
10
- export { default as InputRadioGroup } from './material-ui/InputRadioGroup';
11
- export { default as InputSearchDropdown } from './material-ui/InputSearchDropdown';
12
- export { default as InputTime } from './material-ui/InputTime';
13
- export { default as Modal } from './material-ui/Modal';
1
+ export { default as AudioPlayer } from 'src/components/AudioPlayer';
2
+ export { default as Button } from 'src/components/Button';
3
+ export { default as ButtonMenu } from 'src/components/ButtonMenu';
4
+ export { default as ColorPicker } from 'src/components/ColorPicker';
5
+ export { DataTable, getColumnFilterConfig, SingleLineCell, useDefaultTableInstance, usePluginConfig, } from 'src/components/DataTable';
6
+ export { default as InputDate } from 'src/components/InputDate';
7
+ export { default as InputDateTime } from 'src/components/InputDateTime';
8
+ export { default as InputGroup } from 'src/components/InputGroup';
9
+ export { default as InputCheckboxGroup } from 'src/components/InputCheckboxGroup';
10
+ export { default as InputRadioGroup } from 'src/components/InputRadioGroup';
11
+ export { default as InputSearchDropdown } from 'src/components/InputSearchDropdown';
12
+ export { default as InputTime } from 'src/components/InputTime';
13
+ export { default as Modal } from 'src/components/Modal';
package/lib/index.css ADDED
@@ -0,0 +1 @@
1
+ .rhap_container{box-sizing:border-box;display:flex;flex-direction:column;line-height:1;font-family:inherit;width:100%;padding:10px 15px;background-color:#fff;box-shadow:0 0 3px #0003}.rhap_container:focus:not(:focus-visible){outline:0}.rhap_container svg{vertical-align:initial}.rhap_header{margin-bottom:10px}.rhap_footer{margin-top:5px}.rhap_main{display:flex;flex-direction:column;flex:1 1 auto}.rhap_stacked .rhap_controls-section{margin-top:8px}.rhap_horizontal{flex-direction:row}.rhap_horizontal .rhap_controls-section{margin-left:8px}.rhap_horizontal-reverse{flex-direction:row-reverse}.rhap_horizontal-reverse .rhap_controls-section{margin-right:8px}.rhap_stacked-reverse{flex-direction:column-reverse}.rhap_stacked-reverse .rhap_controls-section{margin-bottom:8px}.rhap_progress-section{display:flex;flex:3 1 auto;align-items:center}.rhap_progress-container{display:flex;align-items:center;height:20px;flex:1 0 auto;align-self:center;margin:0 calc(10px + 1%);cursor:pointer;user-select:none;-webkit-user-select:none}.rhap_progress-container:focus:not(:focus-visible){outline:0}.rhap_time{color:#333;font-size:16px;user-select:none;-webkit-user-select:none}.rhap_progress-bar{box-sizing:border-box;position:relative;z-index:0;width:100%;height:5px;background-color:#ddd;border-radius:2px}.rhap_progress-filled{height:100%;position:absolute;z-index:2;background-color:#868686;border-radius:2px}.rhap_progress-bar-show-download{background-color:#dddddd80}.rhap_download-progress{height:100%;position:absolute;z-index:1;background-color:#ddd;border-radius:2px}.rhap_progress-indicator{box-sizing:border-box;position:absolute;z-index:3;width:20px;height:20px;margin-left:-10px;top:-8px;background:#868686;border-radius:50px;box-shadow:#86868680 0 0 5px}.rhap_controls-section{display:flex;flex:1 1 auto;justify-content:space-between;align-items:center}.rhap_additional-controls{display:flex;flex:1 0 auto;align-items:center}.rhap_repeat-button{font-size:26px;width:26px;height:26px;color:#868686;margin-right:6px}.rhap_main-controls{flex:0 1 auto;display:flex;justify-content:center;align-items:center}.rhap_main-controls-button{margin:0 3px;color:#868686;font-size:35px;width:35px;height:35px}.rhap_play-pause-button{font-size:40px;width:40px;height:40px}.rhap_volume-controls{display:flex;flex:1 0 auto;justify-content:flex-end;align-items:center}.rhap_volume-button{flex:0 0 26px;font-size:26px;width:26px;height:26px;color:#868686;margin-right:6px}.rhap_volume-container{display:flex;align-items:center;flex:0 1 100px;user-select:none;-webkit-user-select:none}.rhap_volume-bar-area{display:flex;align-items:center;width:100%;height:14px;cursor:pointer}.rhap_volume-bar-area:focus:not(:focus-visible){outline:0}.rhap_volume-bar{box-sizing:border-box;position:relative;width:100%;height:4px;background:#ddd;border-radius:2px}.rhap_volume-indicator{box-sizing:border-box;position:absolute;width:12px;height:12px;margin-left:-6px;left:0;top:-4px;background:#868686;opacity:.9;border-radius:50px;box-shadow:#86868680 0 0 3px;cursor:pointer}.rhap_volume-indicator:hover{opacity:.9}.rhap_volume-filled{height:100%;position:absolute;z-index:2;background-color:#868686;border-radius:2px}.rhap_button-clear{background-color:transparent;border:none;padding:0;overflow:hidden;cursor:pointer}.rhap_button-clear:hover{opacity:.9;transition-duration:.2s}.rhap_button-clear:active{opacity:.95}.rhap_button-clear:focus:not(:focus-visible){outline:0}