@imposium-hub/components 1.45.3 → 1.45.5
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/.storybook/main.js +15 -19
- package/.storybook/preview-head.html +0 -1
- package/.storybook/preview.js +11 -0
- package/README.md +10 -1
- package/dist/cjs/components/data-table/DataTable.d.ts +4 -4
- package/dist/esm/components/data-table/DataTable.d.ts +4 -4
- package/dist/styles.css +2673 -0
- package/package.json +14 -7
- package/src/components/data-table/DataTable.tsx +4 -4
package/.storybook/main.js
CHANGED
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
|
|
2
1
|
module.exports = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return config;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
2
|
+
"stories": [
|
|
3
|
+
"../src/**/*.stories.mdx",
|
|
4
|
+
"../src/**/*.stories.@(js|jsx|ts|tsx)"
|
|
5
|
+
],
|
|
6
|
+
"addons": [
|
|
7
|
+
"@storybook/addon-storysource",
|
|
8
|
+
"@storybook/addon-docs",
|
|
9
|
+
"@storybook/addon-links",
|
|
10
|
+
"@storybook/addon-essentials",
|
|
11
|
+
"@storybook/addon-actions",
|
|
12
|
+
"@storybook/addon-interactions",
|
|
13
|
+
"storybook-dark-mode"
|
|
14
|
+
],
|
|
15
|
+
"framework": "@storybook/react"
|
|
16
|
+
}
|
package/README.md
CHANGED
|
@@ -75,10 +75,19 @@ render(
|
|
|
75
75
|
|
|
76
76
|
# How to bundle styles in your project via LESS
|
|
77
77
|
|
|
78
|
-
To import the
|
|
78
|
+
To import the LESS for the component library, use one of the following imports:
|
|
79
79
|
|
|
80
80
|
```
|
|
81
81
|
@import "your_project_path/node_modules/@imposium-hub/components/dist/styles.less";
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
Right now styles are shipped as a single bundle however as the library grows in size & complexity individual CSS bundles per component may added at a later time.
|
|
85
|
+
|
|
86
|
+
# Storybook
|
|
87
|
+
|
|
88
|
+
To run the [storybook](https://storybook.js.org/) UI at `localhost:6066`, run:
|
|
89
|
+
```
|
|
90
|
+
npm run storybook
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
This will run a clean build of the component library, and spin up the storybook UI.
|
|
@@ -11,10 +11,10 @@ interface IDataTableProps {
|
|
|
11
11
|
freezeWhenExpanded?: boolean;
|
|
12
12
|
customPaginator?: boolean;
|
|
13
13
|
pages?: number;
|
|
14
|
-
tightRows
|
|
15
|
-
dndType
|
|
16
|
-
dndName
|
|
17
|
-
dnd
|
|
14
|
+
tightRows?: boolean;
|
|
15
|
+
dndType?: string;
|
|
16
|
+
dndName?: string;
|
|
17
|
+
dnd?: boolean;
|
|
18
18
|
onFetchData?: (...args: any[]) => any;
|
|
19
19
|
data: any[];
|
|
20
20
|
columns: any | any[];
|
|
@@ -11,10 +11,10 @@ interface IDataTableProps {
|
|
|
11
11
|
freezeWhenExpanded?: boolean;
|
|
12
12
|
customPaginator?: boolean;
|
|
13
13
|
pages?: number;
|
|
14
|
-
tightRows
|
|
15
|
-
dndType
|
|
16
|
-
dndName
|
|
17
|
-
dnd
|
|
14
|
+
tightRows?: boolean;
|
|
15
|
+
dndType?: string;
|
|
16
|
+
dndName?: string;
|
|
17
|
+
dnd?: boolean;
|
|
18
18
|
onFetchData?: (...args: any[]) => any;
|
|
19
19
|
data: any[];
|
|
20
20
|
columns: any | any[];
|