@indico-data/design-system 2.2.0 → 2.3.1

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 (161) hide show
  1. package/.yarn/sdks/eslint/bin/eslint.js +8 -1
  2. package/.yarn/sdks/eslint/package.json +1 -1
  3. package/.yarn/sdks/prettier/bin/prettier.cjs +8 -1
  4. package/.yarn/sdks/prettier/index.cjs +8 -1
  5. package/.yarn/sdks/typescript/bin/tsc +8 -1
  6. package/.yarn/sdks/typescript/bin/tsserver +8 -1
  7. package/.yarn/sdks/typescript/package.json +1 -1
  8. package/.yarnrc.yml +1 -0
  9. package/lib/index.css +141 -101
  10. package/lib/index.d.ts +973 -14
  11. package/lib/index.esm.css +141 -101
  12. package/lib/index.esm.js +25974 -27484
  13. package/lib/index.esm.js.map +1 -1
  14. package/lib/index.js +26265 -27775
  15. package/lib/index.js.map +1 -1
  16. package/lib/src/components/button/Button.stories.d.ts +1 -1
  17. package/lib/src/components/button/types.d.ts +0 -1
  18. package/lib/src/components/grid/col/Col.stories.d.ts +1 -2
  19. package/lib/src/components/grid/container/Container.stories.d.ts +1 -1
  20. package/lib/src/components/grid/row/Row.stories.d.ts +1 -1
  21. package/lib/src/components/index.d.ts +1 -0
  22. package/lib/src/components/table/LoadingComponent.d.ts +1 -0
  23. package/lib/src/components/table/Table.d.ts +78 -0
  24. package/lib/src/components/table/Table.stories.d.ts +6 -0
  25. package/lib/src/components/table/index.d.ts +1 -0
  26. package/lib/src/components/table/sampleData.d.ts +8 -0
  27. package/lib/src/index.d.ts +2 -1
  28. package/lib/src/legacy/components/Accordion/Accordion.stories.d.ts +9 -9
  29. package/lib/src/legacy/components/Accordion/Accordion.styles.d.ts +1 -2
  30. package/lib/src/legacy/components/ListTable/Header/Header.styles.d.ts +1 -2
  31. package/lib/src/legacy/components/ListTable/ListTable.stories.d.ts +7 -7
  32. package/lib/src/legacy/components/ListTable/ListTable.styles.d.ts +1 -2
  33. package/lib/src/legacy/components/LoadingAwareContainer/LoadingAwareContainer.stories.d.ts +2 -2
  34. package/lib/src/legacy/components/LoadingAwareContainer/LoadingAwareContainer.styles.d.ts +2 -3
  35. package/lib/src/legacy/components/Pagination/Pagination.styles.d.ts +1 -2
  36. package/lib/src/legacy/components/Toggle/Toggle.d.ts +1 -2
  37. package/lib/src/legacy/components/Toggle/Toggle.stories.d.ts +4 -4
  38. package/lib/src/legacy/components/Toggle/Toggle.styles.d.ts +1 -2
  39. package/lib/src/legacy/components/Tooltip/Tooltip.styles.d.ts +1 -2
  40. package/lib/src/legacy/components/basic-section/Section/Section.stories.d.ts +1 -2
  41. package/lib/src/legacy/components/basic-section/Section/Section.styles.d.ts +1 -2
  42. package/lib/src/legacy/components/basic-section/SectionBlock/SectionBlock.styles.d.ts +1 -2
  43. package/lib/src/legacy/components/basic-section/SectionBody/SectionBody.styles.d.ts +1 -2
  44. package/lib/src/legacy/components/basic-section/SectionHeader/SectionHeader.stories.d.ts +1 -1
  45. package/lib/src/legacy/components/basic-section/SectionHeader/SectionHeader.styles.d.ts +1 -2
  46. package/lib/src/legacy/components/basic-section/SectionTable/SectionTable.styles.d.ts +1 -2
  47. package/lib/src/legacy/components/buttons/Button/Button.stories.d.ts +1 -1
  48. package/lib/src/legacy/components/buttons/Button/Button.styles.d.ts +1 -2
  49. package/lib/src/legacy/components/buttons/IconButton/IconButton.stories.d.ts +3 -3
  50. package/lib/src/legacy/components/buttons/IconButton/IconButton.styles.d.ts +4 -3
  51. package/lib/src/legacy/components/dropdowns/BorderSelect/BorderSelect.stories.d.ts +8 -9
  52. package/lib/src/legacy/components/dropdowns/BorderSelect/BorderSelect.styles.d.ts +2 -3
  53. package/lib/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.d.ts +5 -5
  54. package/lib/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.stories.d.ts +7 -7
  55. package/lib/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.styles.d.ts +3 -2
  56. package/lib/src/legacy/components/dropdowns/Select/Select.stories.d.ts +6 -7
  57. package/lib/src/legacy/components/dropdowns/Select/Select.styles.d.ts +1 -2
  58. package/lib/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.d.ts +5 -5
  59. package/lib/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.stories.d.ts +5 -6
  60. package/lib/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.styles.d.ts +3 -2
  61. package/lib/src/legacy/components/index.d.ts +0 -1
  62. package/lib/src/legacy/components/inputs/DatePicker/DatePicker.styles.d.ts +1 -2
  63. package/lib/src/legacy/components/inputs/EditableInput/EditableInput.styles.d.ts +1 -2
  64. package/lib/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.d.ts +1 -2
  65. package/lib/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.styles.d.ts +1 -2
  66. package/lib/src/legacy/components/inputs/NumberInput/NumberInput.stories.d.ts +2 -2
  67. package/lib/src/legacy/components/inputs/NumberInput/NumberInput.styles.d.ts +1 -2
  68. package/lib/src/legacy/components/inputs/RadioButtons/RadioButtons.styles.d.ts +5 -6
  69. package/lib/src/legacy/components/inputs/RadioGroup/RadioGroup.styles.d.ts +1 -2
  70. package/lib/src/legacy/components/inputs/SearchInput/SearchInput.stories.d.ts +8 -9
  71. package/lib/src/legacy/components/inputs/SearchInput/SearchInput.styles.d.ts +1 -2
  72. package/lib/src/legacy/components/inputs/TextInput/TextInput.stories.d.ts +9 -9
  73. package/lib/src/legacy/components/inputs/TextInput/TextInput.styles.d.ts +2 -3
  74. package/lib/src/legacy/components/loading-indicators/BarSpinner/BarSpinner.styles.d.ts +1 -2
  75. package/lib/src/legacy/components/loading-indicators/CirclePulse/CirclePulse.styles.d.ts +4 -5
  76. package/lib/src/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.d.ts +1 -2
  77. package/lib/src/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.styles.d.ts +4 -5
  78. package/lib/src/legacy/components/loading-indicators/LoadingList/LoadingList.styles.d.ts +1 -2
  79. package/lib/src/legacy/components/loading-indicators/PercentageRing/PercentageRing.styles.d.ts +1 -2
  80. package/lib/src/legacy/components/modals/ConfirmModal/ConfirmModal.stories.d.ts +5 -5
  81. package/lib/src/legacy/components/modals/ConfirmModal/ConfirmModal.styles.d.ts +1 -2
  82. package/lib/src/legacy/components/modals/ModalBase/ModalBase.styles.d.ts +1 -1
  83. package/lib/src/legacy/components/text-truncate/TextTruncate.styles.d.ts +1 -2
  84. package/lib/src/legacy/components/user-feedback/Shrug/Shrug.stories.d.ts +11 -11
  85. package/lib/src/legacy/components/user-feedback/Shrug/Shrug.styles.d.ts +1 -2
  86. package/lib/src/legacy/styles/globals/buttons.d.ts +0 -1
  87. package/lib/src/legacy/styles/globals/forms.d.ts +0 -1
  88. package/lib/src/legacy/styles/globals/layout.d.ts +0 -1
  89. package/lib/src/legacy/styles/globals/lists.d.ts +0 -1
  90. package/lib/src/legacy/styles/globals/margin-padding.d.ts +0 -1
  91. package/lib/src/legacy/styles/globals/media.d.ts +0 -1
  92. package/lib/src/legacy/styles/globals/tables.d.ts +0 -1
  93. package/lib/src/legacy/styles/globals/typography.d.ts +0 -1
  94. package/lib/src/legacy/styles/globals/utility-classes.d.ts +0 -1
  95. package/lib/src/types.d.ts +2 -2
  96. package/package.json +4 -2
  97. package/rollup.config.mjs +1 -1
  98. package/src/components/button/Button.mdx +1 -1
  99. package/src/components/button/Button.stories.tsx +8 -8
  100. package/src/components/button/Button.tsx +1 -1
  101. package/src/components/grid/GridSystem.mdx +0 -1
  102. package/src/components/grid/col/Col.stories.tsx +1 -2
  103. package/src/components/grid/container/Container.mdx +0 -1
  104. package/src/components/grid/container/Container.stories.tsx +1 -3
  105. package/src/components/grid/row/Row.mdx +0 -1
  106. package/src/components/grid/row/Row.stories.tsx +1 -3
  107. package/src/components/icons/Icon.mdx +1 -1
  108. package/src/components/icons/Icon.stories.tsx +2 -3
  109. package/src/components/index.ts +1 -0
  110. package/src/components/table/LoadingComponent.tsx +5 -0
  111. package/src/components/table/Table.mdx +15 -0
  112. package/src/components/table/Table.stories.tsx +547 -0
  113. package/src/components/table/Table.tsx +112 -0
  114. package/src/components/table/index.ts +1 -0
  115. package/src/components/table/sampleData.ts +162 -0
  116. package/src/components/table/styles/Table.scss +79 -0
  117. package/src/components/table/styles/_variables.scss +19 -0
  118. package/src/index.ts +1 -1
  119. package/src/legacy/components/Accordion/Accordion.tsx +1 -1
  120. package/src/legacy/components/ListTable/Header/Header.tsx +2 -4
  121. package/src/legacy/components/ListTable/ListTable.stories.tsx +1 -1
  122. package/src/legacy/components/Toggle/Toggle.tsx +2 -3
  123. package/src/legacy/components/Tooltip/Tooltip.tsx +2 -1
  124. package/src/legacy/components/basic-section/SectionTable/SectionTable.tsx +1 -1
  125. package/src/legacy/components/buttons/IconButton/IconButton.tsx +1 -1
  126. package/src/legacy/components/dropdowns/BorderSelect/BorderSelect.tsx +1 -1
  127. package/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.tsx +1 -1
  128. package/src/legacy/components/dropdowns/Select/Select.tsx +1 -1
  129. package/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.tsx +1 -1
  130. package/src/legacy/components/index.ts +0 -1
  131. package/src/legacy/components/inputs/EditableInput/EditableInput.tsx +1 -1
  132. package/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.tsx +2 -3
  133. package/src/legacy/components/inputs/NumberInput/NumberInput.tsx +1 -1
  134. package/src/legacy/components/inputs/SearchInput/SearchInput.stories.tsx +3 -3
  135. package/src/legacy/components/inputs/SearchInput/SearchInput.tsx +1 -1
  136. package/src/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.tsx +2 -3
  137. package/src/legacy/components/user-feedback/Shrug/Shrug.tsx +1 -1
  138. package/src/styles/index.scss +2 -2
  139. package/src/types.ts +3 -5
  140. package/webpack.config.js +13 -6
  141. package/lib/src/legacy/components/Navigation/Drawer/Drawer.d.ts +0 -16
  142. package/lib/src/legacy/components/Navigation/Drawer/Drawer.stories.d.ts +0 -6
  143. package/lib/src/legacy/components/Navigation/Drawer/DrawerLinkList.d.ts +0 -9
  144. package/lib/src/legacy/components/Navigation/Drawer/DrawerLinkList.styles.d.ts +0 -2
  145. package/lib/src/legacy/components/Navigation/Drawer/__mocks__/mocks.d.ts +0 -3
  146. package/lib/src/legacy/components/Navigation/Drawer/__tests__/DrawerLinkList.test.d.ts +0 -1
  147. package/lib/src/legacy/components/Navigation/Drawer/index.d.ts +0 -1
  148. package/lib/src/legacy/components/Navigation/Drawer/types.d.ts +0 -7
  149. package/lib/src/legacy/components/Navigation/index.d.ts +0 -1
  150. package/src/legacy/components/Navigation/Drawer/Drawer.scss +0 -61
  151. package/src/legacy/components/Navigation/Drawer/Drawer.stories.tsx +0 -43
  152. package/src/legacy/components/Navigation/Drawer/Drawer.tsx +0 -107
  153. package/src/legacy/components/Navigation/Drawer/DrawerLinkList.styles.ts +0 -65
  154. package/src/legacy/components/Navigation/Drawer/DrawerLinkList.tsx +0 -64
  155. package/src/legacy/components/Navigation/Drawer/__mocks__/mocks.ts +0 -49
  156. package/src/legacy/components/Navigation/Drawer/__tests__/Drawer.test.tsx +0 -180
  157. package/src/legacy/components/Navigation/Drawer/__tests__/DrawerLinkList.test.tsx +0 -66
  158. package/src/legacy/components/Navigation/Drawer/index.ts +0 -1
  159. package/src/legacy/components/Navigation/Drawer/types.ts +0 -8
  160. package/src/legacy/components/Navigation/index.ts +0 -1
  161. /package/src/components/grid/{Grid.scss → styles/Grid.scss} +0 -0
@@ -8,19 +8,19 @@ declare const meta: {
8
8
  args: {
9
9
  message: string;
10
10
  };
11
- decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-bf5e6555").R, {
12
- id?: string | undefined;
13
- className?: string | undefined;
14
- 'data-cy'?: string | undefined;
15
- 'data-testid'?: string | undefined;
16
- actionLink?: string | undefined;
17
- actionText?: string | undefined;
11
+ decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
12
+ id?: string;
13
+ className?: string;
14
+ 'data-cy'?: string;
15
+ 'data-testid'?: string;
16
+ actionLink?: string;
17
+ actionText?: string;
18
18
  buttonAction?: (() => void) | undefined;
19
- buttonText?: string | undefined;
20
- message?: React.ReactNode;
19
+ buttonText?: string;
20
+ message?: string | React.ReactNode;
21
21
  messageProps?: {
22
- 'data-cy': string;
23
- } | undefined;
22
+ "data-cy": string;
23
+ };
24
24
  }>) => import("react/jsx-runtime").JSX.Element)[];
25
25
  };
26
26
  export default meta;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export declare const StyledShrug: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
1
+ export declare const StyledShrug: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const Buttons: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const Forms: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const Layout: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const Lists: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const MarginPadding: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const Media: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const Tables: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const Typography: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const UtilityClasses: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -6,7 +6,7 @@ export type PermafrostComponent = {
6
6
  };
7
7
  export type ButtonVariant = 'default' | 'primary' | 'destructive';
8
8
  export type ButtonSize = 'normal' | 'large';
9
- import { ListItem } from './legacy/components/Navigation/Drawer/types';
10
- export type { ListItem };
11
9
  import { IconName } from '../build/generated/iconTypes';
12
10
  export type { IconName };
11
+ import { IconSizes } from '@/components/icons/types';
12
+ export type { IconSizes };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indico-data/design-system",
3
- "version": "2.2.0",
3
+ "version": "2.3.1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "lib/index.js",
@@ -39,12 +39,14 @@
39
39
  "@react-types/button": "^3.9.3",
40
40
  "@react-types/checkbox": "^3.8.1",
41
41
  "@react-types/radio": "^3.8.0",
42
+ "@testing-library/react": "^16.0.0",
42
43
  "classnames": "^2.5.1",
43
44
  "date-fns": "^3.6.0",
44
45
  "focus-trap-react": "^10.2.3",
45
46
  "html-webpack-plugin": "^5.6.0",
46
47
  "prop-types": "^15.8.1",
47
48
  "react-aria-components": "^1.2.1",
49
+ "react-data-table-component": "^7.6.2",
48
50
  "react-day-picker": "^8.10.1",
49
51
  "react-grid-system": "^8.2.0",
50
52
  "react-modal": "^3.16.1",
@@ -93,7 +95,7 @@
93
95
  "@storybook/theming": "^8.0.8",
94
96
  "@testing-library/dom": "^9.3.4",
95
97
  "@testing-library/jest-dom": "^6.4.2",
96
- "@testing-library/react": "^14.2.1",
98
+ "@testing-library/react": "^16.0.0",
97
99
  "@testing-library/user-event": "^14.5.2",
98
100
  "@types/css-modules": "^1.0.5",
99
101
  "@types/jest": "^29.5.12",
package/rollup.config.mjs CHANGED
@@ -45,7 +45,7 @@ export default [
45
45
  ],
46
46
  },
47
47
  {
48
- input: 'src/types.ts',
48
+ input: 'src/index.ts',
49
49
  output: [{ file: 'lib/index.d.ts', format: 'es' }],
50
50
  plugins: [dts()],
51
51
  external: [/\.css$/, /\.scss$/],
@@ -1,6 +1,6 @@
1
1
  import { Canvas, Meta, Controls, Story } from '@storybook/blocks';
2
2
  import * as ButtonStories from './Button.stories';
3
- import { Col, Row } from '../grid/';
3
+ import { Col, Row } from '@/components';
4
4
 
5
5
  <Meta title="Components/Button" name="Button Docs" of={ButtonStories} />
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
- import { Button } from './Button';
2
+ import { Button } from '@/components';
3
3
  const exampleIcons = ['fa-check', 'fa-times']; // TODO -- get ALL icons
4
4
 
5
5
  const meta: Meta = {
@@ -18,7 +18,7 @@ const meta: Meta = {
18
18
  table: {
19
19
  category: 'Styling',
20
20
  type: {
21
- summary: ['solid', 'outline', 'text'],
21
+ summary: 'solid | outline | text',
22
22
  },
23
23
  defaultValue: { summary: 'solid' },
24
24
  },
@@ -30,7 +30,7 @@ const meta: Meta = {
30
30
  table: {
31
31
  category: 'Styling',
32
32
  type: {
33
- summary: ['primary', 'secondary', 'warning', 'error', 'success', 'info'],
33
+ summary: 'primary | secondary | warning | error | success | info',
34
34
  },
35
35
  defaultValue: { summary: 'primary' }, // replace 'default' with your actual default color
36
36
  },
@@ -43,7 +43,7 @@ const meta: Meta = {
43
43
  table: {
44
44
  category: 'Styling',
45
45
  type: {
46
- summary: ['sm', 'md', 'lg'],
46
+ summary: 'sm | md | lg',
47
47
  },
48
48
  },
49
49
  },
@@ -51,7 +51,7 @@ const meta: Meta = {
51
51
  table: {
52
52
  category: 'accessibility',
53
53
  type: {
54
- summary: ['button', 'submit', 'reset'],
54
+ summary: 'button | submit | reset',
55
55
  },
56
56
  },
57
57
  description: 'It sets the type for the button.',
@@ -66,7 +66,7 @@ const meta: Meta = {
66
66
  category: 'Styling',
67
67
  defaultValue: { summary: 'left' },
68
68
  type: {
69
- summary: ['left', 'right'],
69
+ summary: 'left | right',
70
70
  },
71
71
  },
72
72
  control: 'select',
@@ -117,7 +117,7 @@ const meta: Meta = {
117
117
  isLoading: {
118
118
  control: 'boolean',
119
119
  table: {
120
- type: { summary: 'true | false', name: 'boolean', required: false },
120
+ type: { summary: 'true | false' },
121
121
  category: 'Styling',
122
122
  },
123
123
  defaultValue: { summary: false },
@@ -127,7 +127,7 @@ const meta: Meta = {
127
127
  isDisabled: {
128
128
  control: 'boolean',
129
129
  table: {
130
- type: { summary: 'true | false', name: 'boolean', required: false },
130
+ type: { summary: 'true | false' },
131
131
  category: 'Styling',
132
132
  },
133
133
  defaultValue: { summary: false },
@@ -1,6 +1,6 @@
1
1
  import classNames from 'classnames';
2
2
  import React from 'react';
3
- import { Icon } from '@/components/icons';
3
+ import { Icon } from '@/components';
4
4
 
5
5
  import { ButtonProps } from './types';
6
6
 
@@ -1,6 +1,5 @@
1
1
  import { Canvas, Meta, Controls } from '@storybook/blocks';
2
2
  import * as ContainerStories from './container/Container.stories';
3
- import '@/components/grid/Grid.scss';
4
3
 
5
4
  <Meta title="Layout/Grid" name="Grid System" />
6
5
 
@@ -1,7 +1,6 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
- import { Col } from '../col/Col';
3
2
  import { Container, Row } from 'react-grid-system';
4
- import '@/components/grid/Grid.scss';
3
+ import { Col } from '@/components';
5
4
 
6
5
  const meta: Meta = {
7
6
  title: 'remove/grid/col',
@@ -1,6 +1,5 @@
1
1
  import { Canvas, Meta, Controls } from '@storybook/blocks';
2
2
  import * as ContainerStories from './Container.stories';
3
- import '@/components/grid/Grid.scss';
4
3
 
5
4
  <Meta title="Layout/Grid" name="Container" />
6
5
 
@@ -1,7 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
- import { Container } from './Container';
3
- import { Row } from '../row/Row';
4
- import { Col } from '../col/Col';
2
+ import { Container, Row, Col } from '@/components';
5
3
 
6
4
  const meta: Meta = {
7
5
  title: 'remove/grid/container',
@@ -1,6 +1,5 @@
1
1
  import { Canvas, Meta, Controls } from '@storybook/blocks';
2
2
  import * as RowStories from './Row.stories';
3
- import '@/components/grid/Grid.scss';
4
3
 
5
4
  <Meta title="Layout/Grid" name="Row" />
6
5
 
@@ -1,7 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
- import { Row } from './Row';
3
- import { Col } from '../col/Col';
4
- import { Container } from 'react-grid-system';
2
+ import { Row, Col, Container } from '@/components';
5
3
 
6
4
  const meta: Meta = {
7
5
  title: 'remove/grid/row',
@@ -1,6 +1,6 @@
1
1
  import { Meta, Canvas, Controls, Story } from '@storybook/blocks';
2
2
  import * as IconStories from './Icon.stories';
3
- import { Col, Row } from '../grid/';
3
+ import { Col, Row } from '@/components';
4
4
 
5
5
  <Meta title="Components/Icon" name="Icon" of={IconStories} />
6
6
 
@@ -1,10 +1,9 @@
1
1
  import React, { useState } from 'react';
2
2
  import { Meta, StoryObj } from '@storybook/react';
3
- import Icon from './Icon';
3
+
4
+ import { Icon, Row, Col, Button } from '@/components';
4
5
  import { IconProps, IconSizes } from './types';
5
6
 
6
- import { Row, Col } from '../grid/';
7
- import { Button } from '../button';
8
7
  import { iconNames } from 'build/generated/iconTypes';
9
8
 
10
9
  const meta: Meta = {
@@ -1,3 +1,4 @@
1
1
  export { Container, Col, Row } from './grid';
2
2
  export { Button } from './button';
3
3
  export { Icon } from './icons';
4
+ export { Table } from './table';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+
3
+ export const LoadingComponent = () => {
4
+ return <div className="table-loading">Loading...</div>;
5
+ };
@@ -0,0 +1,15 @@
1
+ import { Canvas, Meta, Controls } from '@storybook/blocks';
2
+ import * as TableStories from './Table.stories';
3
+
4
+ <Meta title="Layout/Table" name="Table" />
5
+
6
+ # Table
7
+
8
+ This component facilitates the rapid creation of responsive and paginated tables. This component was created using the React [Data Table Component](https://react-data-table-component.netlify.app/?path=/docs/api-props--docs) library as a base. You can read more on additional props not listed in this documentation at [this link](https://react-data-table-component.netlify.app/?path=/docs/api-props--docs).
9
+
10
+ <Canvas
11
+ of={TableStories.Default}
12
+ />
13
+
14
+
15
+ <Controls of={TableStories.Default} />