@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.
@@ -1,20 +1,16 @@
1
-
2
1
  module.exports = {
3
- stories: ['../components/**/*.stories.(tsx|mdx)'],
4
- addons: ['@storybook/addon-actions', '@storybook/addon-links', '@storybook/addon-storysource', 'storybook-dark-mode', '@storybook/addon-docs'],
5
- webpackFinal: async config => {
6
-
7
- config.module.rules.push({
8
- test: /(\.ts|\.tsx)$/,
9
- use: 'ts-loader',
10
- exclude: /node_modules/
11
- });
12
-
13
-
14
- config.resolve = {
15
- extensions: ['.ts', '.tsx', '.js']
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
+ }
@@ -1,4 +1,3 @@
1
- <link rel="stylesheet" href="styles.css">
2
1
  <style>
3
2
  .sb-show-main{
4
3
  padding:25px;
@@ -0,0 +1,11 @@
1
+ import '../dist/styles.css';
2
+
3
+ export const parameters = {
4
+ actions: { argTypesRegex: "^on[A-Z].*" },
5
+ controls: {
6
+ matchers: {
7
+ color: /(background|color)$/i,
8
+ date: /Date$/,
9
+ },
10
+ },
11
+ }
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 CSS bundle for the component library, use the following syntax:
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: boolean;
15
- dndType: string;
16
- dndName: string;
17
- dnd: boolean;
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: boolean;
15
- dndType: string;
16
- dndName: string;
17
- dnd: boolean;
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[];