gasp-components 1.0.14 → 1.0.16

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.
package/README.md CHANGED
@@ -1,30 +1,15 @@
1
- # React + TypeScript + Vite
1
+ # GASP Components
2
+ Standard React components for (General Authority for Statistics) projects
2
3
 
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+ ## Pre-requesite
4
5
 
5
- Currently, two official plugins are available:
6
+ - NodeJS latest iron version (v20.xx.xx)
7
+ - NPM v10.xx.xx
6
8
 
7
- - [@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
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+ ## Development Instructions
10
+ - To start the development: `npm run dev`
9
11
 
10
- ## Expanding the ESLint configuration
11
-
12
- If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
-
14
- - Configure the top-level `parserOptions` property like this:
15
-
16
- ```js
17
- export default {
18
- // other rules...
19
- parserOptions: {
20
- ecmaVersion: 'latest',
21
- sourceType: 'module',
22
- project: ['./tsconfig.json', './tsconfig.node.json'],
23
- tsconfigRootDir: __dirname,
24
- },
25
- }
26
- ```
27
-
28
- - Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
29
- - Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
30
- - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
12
+ ## References
13
+ ## References
14
+ - [Ant Design](https://ant.design/components/overview/) React Components
15
+ - [Tailwindcss](https://tailwindcss.com/docs/utility-first) for styling
@@ -4,5 +4,5 @@ interface AgGridTableProps extends AgGridReactProps {
4
4
  containerClassName?: string;
5
5
  containerStyle?: CSSProperties;
6
6
  }
7
- export declare const AgGridTable: React.FC<AgGridTableProps>;
7
+ export declare function AgGridTable<TData = any>({ containerClassName, containerStyle, ...props }: AgGridTableProps): import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -107379,11 +107379,11 @@ const Hle = "31.0.2", kle = {
107379
107379
  };
107380
107380
  Vi.registerModules([Fle]);
107381
107381
  Vi.registerModules([kle]);
107382
- const Oce = ({
107382
+ function Oce({
107383
107383
  containerClassName: o,
107384
107384
  containerStyle: e,
107385
107385
  ...t
107386
- }) => {
107386
+ }) {
107387
107387
  const { locale: n } = s8(), i = n === "ar";
107388
107388
  return /* @__PURE__ */ Fk(
107389
107389
  "div",
@@ -107393,7 +107393,7 @@ const Oce = ({
107393
107393
  children: /* @__PURE__ */ Fk(DW.AgGridReact, { enableRtl: i, ...t })
107394
107394
  }
107395
107395
  );
107396
- };
107396
+ }
107397
107397
  export {
107398
107398
  Oce as AgGridTable
107399
107399
  };
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "gasp-components",
3
3
  "private": false,
4
- "version": "1.0.14",
4
+ "version": "1.0.16",
5
5
  "type": "module",
6
6
  "scripts": {
7
- "dev": "vite",
7
+ "dev": "npm run storybook",
8
8
  "build": "tsc --p ./tsconfig.build.json && vite build",
9
9
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
10
- "preview": "vite preview",
11
10
  "prepublishOnly": "npm run build",
12
11
  "storybook": "storybook dev -p 6006",
13
12
  "build-storybook": "storybook build"
@@ -18,7 +17,11 @@
18
17
  "react": "^18.2.0",
19
18
  "react-dom": "^18.2.0",
20
19
  "react-intl": "^6.6.1",
21
- "sass": "^1.69.7"
20
+ "sass": "^1.69.7",
21
+ "@ag-grid-enterprise/server-side-row-model": "^31.0.2",
22
+ "@ag-grid-enterprise/set-filter": "^31.0.2",
23
+ "ag-grid-community": "^31.0.2",
24
+ "ag-grid-react": "^31.0.2"
22
25
  },
23
26
  "devDependencies": {
24
27
  "@storybook/addon-essentials": "^7.6.8",
@@ -56,7 +59,11 @@
56
59
  "typescript": "^5.2.2",
57
60
  "vite": "^5.0.8",
58
61
  "vite-plugin-dts": "^3.7.1",
59
- "vite-plugin-lib-inject-css": "^1.3.0"
62
+ "vite-plugin-lib-inject-css": "^1.3.0",
63
+ "@ag-grid-enterprise/server-side-row-model": "^31.0.2",
64
+ "@ag-grid-enterprise/set-filter": "^31.0.2",
65
+ "ag-grid-community": "^31.0.2",
66
+ "ag-grid-react": "^31.0.2"
60
67
  },
61
68
  "main": "dist/main.js",
62
69
  "types": "dist/main.d.ts",
@@ -65,11 +72,5 @@
65
72
  ],
66
73
  "sideEffects": [
67
74
  "**/*.css"
68
- ],
69
- "dependencies": {
70
- "@ag-grid-enterprise/server-side-row-model": "^31.0.2",
71
- "@ag-grid-enterprise/set-filter": "^31.0.2",
72
- "ag-grid-community": "^31.0.2",
73
- "ag-grid-react": "^31.0.2"
74
- }
75
+ ]
75
76
  }