@indico-data/design-system 2.3.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 (70) hide show
  1. package/lib/index.css +36 -0
  2. package/lib/index.d.ts +977 -9
  3. package/lib/index.esm.css +36 -0
  4. package/lib/index.esm.js +7412 -7019
  5. package/lib/index.esm.js.map +1 -1
  6. package/lib/index.js +7536 -7142
  7. package/lib/index.js.map +1 -1
  8. package/lib/src/components/button/Button.stories.d.ts +1 -1
  9. package/lib/src/components/grid/col/Col.stories.d.ts +1 -2
  10. package/lib/src/components/grid/container/Container.stories.d.ts +1 -1
  11. package/lib/src/components/grid/row/Row.stories.d.ts +1 -1
  12. package/lib/src/components/index.d.ts +1 -1
  13. package/lib/src/components/table/index.d.ts +1 -0
  14. package/lib/src/index.d.ts +1 -0
  15. package/lib/src/legacy/components/Toggle/Toggle.d.ts +1 -2
  16. package/lib/src/legacy/components/Toggle/Toggle.stories.d.ts +1 -1
  17. package/lib/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.d.ts +1 -2
  18. package/lib/src/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.d.ts +1 -2
  19. package/lib/src/types.d.ts +2 -0
  20. package/package.json +1 -1
  21. package/rollup.config.mjs +1 -1
  22. package/src/components/button/Button.mdx +1 -1
  23. package/src/components/button/Button.stories.tsx +8 -8
  24. package/src/components/button/Button.tsx +1 -1
  25. package/src/components/grid/GridSystem.mdx +0 -1
  26. package/src/components/grid/col/Col.stories.tsx +1 -2
  27. package/src/components/grid/container/Container.mdx +0 -1
  28. package/src/components/grid/container/Container.stories.tsx +1 -3
  29. package/src/components/grid/row/Row.mdx +0 -1
  30. package/src/components/grid/row/Row.stories.tsx +1 -3
  31. package/src/components/icons/Icon.mdx +1 -1
  32. package/src/components/icons/Icon.stories.tsx +2 -3
  33. package/src/components/index.ts +1 -1
  34. package/src/components/table/index.ts +1 -0
  35. package/src/index.ts +1 -0
  36. package/src/legacy/components/Accordion/Accordion.tsx +1 -1
  37. package/src/legacy/components/ListTable/Header/Header.tsx +2 -4
  38. package/src/legacy/components/ListTable/ListTable.stories.tsx +1 -1
  39. package/src/legacy/components/Toggle/Toggle.tsx +2 -3
  40. package/src/legacy/components/Tooltip/Tooltip.tsx +2 -1
  41. package/src/legacy/components/basic-section/SectionTable/SectionTable.tsx +1 -1
  42. package/src/legacy/components/buttons/IconButton/IconButton.tsx +1 -1
  43. package/src/legacy/components/dropdowns/BorderSelect/BorderSelect.tsx +1 -1
  44. package/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.tsx +1 -1
  45. package/src/legacy/components/dropdowns/Select/Select.tsx +1 -1
  46. package/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.tsx +1 -1
  47. package/src/legacy/components/inputs/EditableInput/EditableInput.tsx +1 -1
  48. package/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.tsx +2 -3
  49. package/src/legacy/components/inputs/NumberInput/NumberInput.tsx +1 -1
  50. package/src/legacy/components/inputs/SearchInput/SearchInput.stories.tsx +3 -3
  51. package/src/legacy/components/inputs/SearchInput/SearchInput.tsx +1 -1
  52. package/src/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.tsx +2 -3
  53. package/src/legacy/components/user-feedback/Shrug/Shrug.tsx +1 -1
  54. package/src/styles/index.scss +2 -1
  55. package/src/types.ts +3 -0
  56. package/webpack.config.js +13 -6
  57. package/lib/src/components/tables/table/index.d.ts +0 -1
  58. package/src/components/tables/table/index.ts +0 -1
  59. /package/lib/src/components/{tables/table → table}/LoadingComponent.d.ts +0 -0
  60. /package/lib/src/components/{tables/table → table}/Table.d.ts +0 -0
  61. /package/lib/src/components/{tables/table → table}/Table.stories.d.ts +0 -0
  62. /package/lib/src/components/{tables/table → table}/sampleData.d.ts +0 -0
  63. /package/src/components/grid/{Grid.scss → styles/Grid.scss} +0 -0
  64. /package/src/components/{tables/table → table}/LoadingComponent.tsx +0 -0
  65. /package/src/components/{tables/table → table}/Table.mdx +0 -0
  66. /package/src/components/{tables/table → table}/Table.stories.tsx +0 -0
  67. /package/src/components/{tables/table → table}/Table.tsx +0 -0
  68. /package/src/components/{tables/table → table}/sampleData.ts +0 -0
  69. /package/src/components/{tables/table → table/styles}/Table.scss +0 -0
  70. /package/src/components/{tables/table → table/styles}/_variables.scss +0 -0
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
- import { Button } from './Button';
2
+ import { Button } from '@/components';
3
3
  declare const meta: Meta;
4
4
  type Story = StoryObj<typeof Button>;
5
5
  export declare const Primary: Story;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
- import { Col } from '../col/Col';
3
- import '@/components/grid/Grid.scss';
2
+ import { Col } from '@/components';
4
3
  declare const meta: Meta;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof Col>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
- import { Container } from './Container';
2
+ import { Container } from '@/components';
3
3
  declare const meta: Meta;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Container>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
- import { Row } from './Row';
2
+ import { Row } from '@/components';
3
3
  declare const meta: Meta;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Row>;
@@ -1,4 +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 './tables/table';
4
+ export { Table } from './table';
@@ -0,0 +1 @@
1
+ export { Table } from './Table';
@@ -6,3 +6,4 @@ export { numberUtils, stringUtils, colorUtils } from './legacy/utils';
6
6
  export { Container, Row, Col } from './components/grid';
7
7
  export { Button } from './components/button';
8
8
  export { Icon } from './components/icons';
9
+ export { Table } from './components/table';
@@ -1,5 +1,4 @@
1
- import { PermafrostComponent, IconName } from '@/types';
2
- import { IconSizes } from '@/components/icons/types';
1
+ import { PermafrostComponent, IconName, IconSizes } from '@/types';
3
2
  type Props = {
4
3
  disabled: boolean;
5
4
  onChange: any;
@@ -6,7 +6,7 @@ declare const meta: {
6
6
  onChange: any;
7
7
  value: boolean;
8
8
  "aria-label"?: string;
9
- iconSize?: import("../../../components/icons/types").IconSizes;
9
+ iconSize?: import("../../../types").IconSizes;
10
10
  checkedIconName?: import("../../../types").IconName;
11
11
  notCheckedIconName?: import("../../../types").IconName;
12
12
  } & import("../../../types").PermafrostComponent) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { DateRange } from 'react-day-picker';
2
- import { IconName, PermafrostComponent } from '@/types';
3
- import { IconSizes } from '@/components/icons/types';
2
+ import { IconName, IconSizes, PermafrostComponent } from '@/types';
4
3
  type Props = PermafrostComponent & {
5
4
  ariaLabel?: string;
6
5
  disableBeforeDate?: Date;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import { PermafrostComponent } from '@/types';
3
- import { IconSizes } from '@/components/icons/types';
2
+ import { PermafrostComponent, IconSizes } from '@/types';
4
3
  type Props = PermafrostComponent & {
5
4
  ariaLabel?: string;
6
5
  size?: IconSizes;
@@ -8,3 +8,5 @@ export type ButtonVariant = 'default' | 'primary' | 'destructive';
8
8
  export type ButtonSize = 'normal' | 'large';
9
9
  import { IconName } from '../build/generated/iconTypes';
10
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.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "lib/index.js",
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,4 +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 './tables/table';
4
+ export { Table } from './table';
@@ -0,0 +1 @@
1
+ export { Table } from './Table';
package/src/index.ts CHANGED
@@ -60,3 +60,4 @@ export { numberUtils, stringUtils, colorUtils } from './legacy/utils';
60
60
  export { Container, Row, Col } from './components/grid';
61
61
  export { Button } from './components/button';
62
62
  export { Icon } from './components/icons';
63
+ export { Table } from './components/table';
@@ -2,7 +2,7 @@
2
2
 
3
3
  import React from 'react';
4
4
 
5
- import { Icon } from '@/components/icons';
5
+ import { Icon } from '@/components';
6
6
  import { PermafrostComponent } from '@/types';
7
7
 
8
8
  import { StyledAccordion } from './Accordion.styles';
@@ -3,10 +3,8 @@
3
3
  import React from 'react';
4
4
 
5
5
  import { numberUtils } from '@/legacy/utils';
6
-
7
- import { BorderSelect } from '@/legacy/components/dropdowns';
8
- import { Button } from '@/legacy/components/buttons';
9
- import { Icon } from '@/components/icons';
6
+ import { BorderSelect, Button } from '@/legacy/components';
7
+ import { Icon } from '@/components';
10
8
 
11
9
  import { StyledHeader } from './Header.styles';
12
10
 
@@ -5,7 +5,7 @@ import { Button } from '@/legacy/components';
5
5
 
6
6
  import { ListTable } from './ListTable';
7
7
  import { mockUserHeaders, mockDocProcHeaders, mockAllUsers, mockDocProcReport } from './mock-data';
8
- import { Icon } from '@/components/icons';
8
+ import { Icon } from '@/components';
9
9
 
10
10
  const meta = {
11
11
  component: ListTable,
@@ -3,10 +3,9 @@
3
3
  import React from 'react';
4
4
  import classNames from 'classnames';
5
5
 
6
- import { Icon } from '@/components/icons';
7
- import { PermafrostComponent, IconName } from '@/types';
6
+ import { Icon } from '@/components';
7
+ import { PermafrostComponent, IconName, IconSizes } from '@/types';
8
8
  import { StyledToggle } from './Toggle.styles';
9
- import { IconSizes } from '@/components/icons/types';
10
9
 
11
10
  type Props = {
12
11
  disabled: boolean;
@@ -2,7 +2,8 @@
2
2
 
3
3
  import React from 'react';
4
4
 
5
- import { Icon, COLORS } from '@/index';
5
+ import { COLORS } from '@/index';
6
+ import { Icon } from '@/components';
6
7
  import { PermafrostComponent } from '@/types';
7
8
  import { Tooltip as ReactTooltip } from 'react-tooltip';
8
9
 
@@ -4,7 +4,7 @@ import React, { useState } from 'react';
4
4
  import classNames from 'classnames';
5
5
 
6
6
  import { IconName } from '@/types';
7
- import { Icon } from '@/components/icons';
7
+ import { Icon } from '@/components';
8
8
  import { BorderSelect } from '@/legacy/components/dropdowns';
9
9
 
10
10
  import { StyledSectionTable } from './SectionTable.styles';
@@ -8,7 +8,7 @@ import { AriaButtonProps } from '@react-types/button';
8
8
 
9
9
  import { SPACING } from '@/legacy/tokens';
10
10
  import { IconName, PermafrostComponent } from '@/types';
11
- import { Icon } from '@/components/icons';
11
+ import { Icon } from '@/components';
12
12
  import { CircleSpinner } from '@/legacy/components';
13
13
  import { ButtonSize, IconButtonVariant } from '../types';
14
14
 
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import { v4 as uuid } from 'uuid';
5
5
  import classNames from 'classnames';
6
6
 
7
- import { Icon } from '@/components/icons';
7
+ import { Icon } from '@/components';
8
8
  import { PermafrostComponent } from '@/types';
9
9
 
10
10
  import { StyledSelect, StyledValidationError } from './BorderSelect.styles';
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import { components } from 'react-select';
5
5
 
6
6
  import { PermafrostComponent } from '@/types';
7
- import { Icon } from '@/components/icons';
7
+ import { Icon } from '@/components';
8
8
  import { addCustomProps } from '../utils';
9
9
  import type { ComboboxProps, ComboboxOption } from '../types';
10
10
 
@@ -2,7 +2,7 @@ import React from 'react';
2
2
 
3
3
  import { v4 as uuid } from 'uuid';
4
4
 
5
- import { Icon } from '@/components/icons';
5
+ import { Icon } from '@/components';
6
6
  import { PermafrostComponent } from '@/types';
7
7
 
8
8
  import { StyledSelect } from './Select.styles';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
 
3
3
  import { components } from 'react-select';
4
4
 
5
- import { Icon } from '@/components/icons';
5
+ import { Icon } from '@/components';
6
6
  import { PermafrostComponent } from '@/types';
7
7
  import { addCustomProps } from '../utils';
8
8
 
@@ -8,7 +8,7 @@ import classNames from 'classnames';
8
8
 
9
9
  import { stringUtils } from '@/legacy/utils';
10
10
 
11
- import { Icon } from '@/components/icons';
11
+ import { Icon } from '@/components';
12
12
  import { PermafrostComponent } from '@/types';
13
13
 
14
14
  import { StyledEditableInput } from './EditableInput.styles';
@@ -11,11 +11,10 @@ import {
11
11
  DateRange,
12
12
  } from 'react-day-picker';
13
13
  import { usePopper } from 'react-popper';
14
- import { IconName, PermafrostComponent } from '@/types';
15
- import { Icon } from '@/components/icons';
14
+ import { IconName, IconSizes, PermafrostComponent } from '@/types';
15
+ import { Icon } from '@/components';
16
16
 
17
17
  import { StyledNoInputDatePicker } from './NoInputDatePicker.styles';
18
- import { IconSizes } from '@/components/icons/types';
19
18
 
20
19
  type Props = PermafrostComponent & {
21
20
  ariaLabel?: string;
@@ -5,7 +5,7 @@ import classNames from 'classnames';
5
5
  import { v4 as uuid } from 'uuid';
6
6
 
7
7
  import { Button } from '@/legacy/components/buttons';
8
- import { Icon } from '@/components/icons';
8
+ import { Icon } from '@/components';
9
9
  import { PermafrostComponent } from '@/types';
10
10
 
11
11
  import { StyledNumberField } from './NumberInput.styles';
@@ -17,7 +17,7 @@ type Story = StoryObj<typeof SearchInput>;
17
17
  export const Base: Story = {};
18
18
 
19
19
  export const Border: Story = {
20
- args: { border: true },
20
+ args: { inputBorder: true },
21
21
  };
22
22
 
23
23
  export const SearchIcon: Story = {
@@ -25,7 +25,7 @@ export const SearchIcon: Story = {
25
25
  };
26
26
 
27
27
  export const BorderAndSearchIcon: Story = {
28
- args: { border: true, showSearchIcon: true },
28
+ args: { inputBorder: true, showSearchIcon: true },
29
29
  };
30
30
 
31
31
  export const ClearInputIcon: Story = {
@@ -33,5 +33,5 @@ export const ClearInputIcon: Story = {
33
33
  };
34
34
 
35
35
  export const ClearInputIconWithBorder: Story = {
36
- args: { showClearInputIcon: true, border: true },
36
+ args: { showClearInputIcon: true, inputBorder: true },
37
37
  };
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import { v4 as uuid } from 'uuid';
5
5
  import classNames from 'classnames';
6
6
 
7
- import { Icon } from '@/components/icons';
7
+ import { Icon } from '@/components';
8
8
  import { PermafrostComponent } from '@/types';
9
9
 
10
10
  import { StyledSearchField } from './SearchInput.styles';
@@ -2,9 +2,8 @@
2
2
 
3
3
  import React from 'react';
4
4
 
5
- import { Icon } from '@/components/icons';
6
- import { PermafrostComponent } from '@/types';
7
- import { IconSizes } from '@/components/icons/types';
5
+ import { Icon } from '@/components';
6
+ import { PermafrostComponent, IconSizes } from '@/types';
8
7
 
9
8
  type Props = PermafrostComponent & {
10
9
  ariaLabel?: string;
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import { Link } from 'react-router-dom';
5
5
 
6
6
  import { Button } from '@/legacy/components/buttons';
7
- import { Icon } from '@/components/icons';
7
+ import { Icon } from '@/components';
8
8
  import { PermafrostComponent } from '@/types';
9
9
 
10
10
  import { StyledShrug } from './Shrug.styles';
@@ -4,7 +4,8 @@
4
4
  // Components
5
5
  @import '../components/button/styles/Button.scss';
6
6
  @import '../components/icons/styles/Icon.scss';
7
- @import '../components/tables/table/Table.scss';
7
+ @import '../components/grid/styles/Grid.scss';
8
+ @import '../components/table/styles/Table.scss';
8
9
 
9
10
  @import 'typography';
10
11
  @import 'colors';
package/src/types.ts CHANGED
@@ -10,3 +10,6 @@ export type ButtonSize = 'normal' | 'large';
10
10
 
11
11
  import { IconName } from '../build/generated/iconTypes';
12
12
  export type { IconName };
13
+
14
+ import { IconSizes } from '@/components/icons/types';
15
+ export type { IconSizes };
package/webpack.config.js CHANGED
@@ -34,16 +34,23 @@ module.exports = {
34
34
  },
35
35
  {
36
36
  test: /\.scss$/,
37
- use: ['style-loader', {
38
- loader: 'css-loader',
39
- options: {
40
- modules: false,
37
+ use: [
38
+ 'style-loader',
39
+ {
40
+ loader: 'css-loader',
41
+ options: {
42
+ modules: false,
43
+ },
41
44
  },
42
- }, 'sass-loader'],
45
+ 'sass-loader',
46
+ ],
43
47
  },
44
48
  ],
45
49
  },
46
50
  resolve: {
51
+ alias: {
52
+ '@': path.resolve(__dirname, 'src'),
53
+ },
47
54
  extensions: ['.mjs', '.js', '.cjs', '.jsx', '.tsx', '.ts', '.mdx'],
48
55
  modules: ['node_modules'],
49
56
  },
@@ -54,4 +61,4 @@ module.exports = {
54
61
  'react-select': 'react-select',
55
62
  'styled-components': 'styled-components',
56
63
  },
57
- };
64
+ };
@@ -1 +0,0 @@
1
- export { Table } from './table';
@@ -1 +0,0 @@
1
- export { Table } from './table';