@carto/ps-react-ui 1.1.1 → 1.2.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 (29) hide show
  1. package/dist/ps-react-ui.js +10151 -9091
  2. package/dist/types/components/button-warning/button-warning.component.d.ts +31 -0
  3. package/dist/types/components/button-warning/icon-button-warning.d.ts +31 -0
  4. package/dist/types/components/button-warning/styles.d.ts +29 -0
  5. package/dist/types/components/button-warning/types.d.ts +16 -0
  6. package/dist/types/components/grouped-chips/grouped-chips.component.d.ts +30 -0
  7. package/dist/types/components/grouped-chips/types.d.ts +13 -0
  8. package/dist/types/components/index.d.ts +21 -1
  9. package/dist/types/components/input-file/{InputFile.d.ts → input-file.component.d.ts} +16 -0
  10. package/dist/types/components/list/list.component.d.ts +36 -0
  11. package/dist/types/components/list/types.d.ts +20 -0
  12. package/dist/types/components/section-container/section-container.component.d.ts +27 -0
  13. package/dist/types/components/section-container/types.d.ts +9 -0
  14. package/dist/types/components/selects/autocomplete-select/autocomplete-select-option.component.d.ts +2 -0
  15. package/dist/types/components/selects/autocomplete-select/autocomplete-select.component.d.ts +43 -0
  16. package/dist/types/components/selects/autocomplete-select/listbox-select.component.d.ts +19 -0
  17. package/dist/types/components/selects/simple-select/create-options-from-array.utils.d.ts +2 -0
  18. package/dist/types/components/selects/simple-select/simple-select.component.d.ts +25 -0
  19. package/dist/types/components/selects/types.d.ts +23 -0
  20. package/dist/types/components/table/components/table-body.component.d.ts +32 -0
  21. package/dist/types/components/table/components/table-cell.component.d.ts +31 -0
  22. package/dist/types/components/table/components/table-header.component.d.ts +27 -0
  23. package/dist/types/components/table/table.component.d.ts +39 -0
  24. package/dist/types/components/table/types.d.ts +90 -0
  25. package/dist/types/components/table/utils.d.ts +4 -0
  26. package/dist/types/components/tabs-to-anchor/tabs-to-anchor.component.d.ts +25 -0
  27. package/dist/types/components/tabs-to-anchor/types.d.ts +8 -0
  28. package/dist/types/index.d.ts +1 -1
  29. package/package.json +12 -9
@@ -0,0 +1,25 @@
1
+ import { TabsToAnchorProps } from './types';
2
+ /**
3
+ * The `TabsToAnchor` component is a wrapper that adds the necessary properties to work with anchor links with the onScroll event.
4
+ *
5
+ * @param {TabsToAnchorProps} props - TabsToAnchor props
6
+ *
7
+ * @defaultValues
8
+ *
9
+ * | Prop | Value |
10
+ * | --- | --- |
11
+ * | variant | 'standard' |
12
+ *
13
+ * @example
14
+ *
15
+ * ```ts
16
+ * <TabsToAnchor
17
+ * anchor={currentAnchor}
18
+ * variant='scrollable'
19
+ * onChange={setCurrentAnchor}
20
+ * >
21
+ * <Tab id='section-1' label='Section 1' value='section-1' />
22
+ * </TabsToAnchor>
23
+ * ```
24
+ */
25
+ export declare function TabsToAnchor({ children, anchor, TabsProps, variant, onChange, }: TabsToAnchorProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type { TabsProps } from '@material-ui/core';
2
+ export interface TabsToAnchorProps {
3
+ children: JSX.Element[];
4
+ anchor?: string;
5
+ variant?: 'fullWidth' | 'scrollable' | 'standard';
6
+ onChange?: (anchor: string) => void;
7
+ TabsProps?: TabsProps;
8
+ }
@@ -1,2 +1,2 @@
1
- export * from './styling';
2
1
  export * from './components';
2
+ export * from './styling';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carto/ps-react-ui",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "CARTO's Professional Service React UI library",
5
5
  "files": [
6
6
  "dist"
@@ -34,18 +34,21 @@
34
34
  "@material-ui/icons": "4.11.3",
35
35
  "@material-ui/lab": "4.0.0-alpha.61",
36
36
  "@material-ui/styles": "4.11.5",
37
- "echarts": "5.4.0",
38
- "echarts-for-react": "3.0.2"
37
+ "clsx": "1.2.1",
38
+ "echarts": "5.4.1",
39
+ "echarts-for-react": "3.0.2",
40
+ "react-window": "1.8.8"
39
41
  },
40
42
  "devDependencies": {
41
43
  "@carto/eslint-config-ps-react": "1.0.0",
44
+ "@carto/react-ui": "1.4.9",
42
45
  "@rollup/pluginutils": "5.0.2",
43
- "@storybook/addon-actions": "6.5.13",
44
- "@storybook/addon-essentials": "6.5.13",
45
- "@storybook/addon-interactions": "6.5.13",
46
- "@storybook/addon-links": "6.5.13",
47
- "@storybook/builder-vite": "0.2.5",
48
- "@storybook/react": "6.5.13",
46
+ "@storybook/addon-actions": "6.5.15",
47
+ "@storybook/addon-essentials": "6.5.15",
48
+ "@storybook/addon-interactions": "6.5.15",
49
+ "@storybook/addon-links": "6.5.15",
50
+ "@storybook/builder-vite": "0.2.6",
51
+ "@storybook/react": "6.5.15",
49
52
  "@storybook/testing-library": "0.0.13",
50
53
  "@types/react-dom": "17.0.15",
51
54
  "eslint-plugin-jsx-a11y": "6.6.1"