Skip to content

Commit fd17cba

Browse files
committed
Fix build; Add Exports
1 parent 0dce541 commit fd17cba

File tree

60 files changed

+118
-137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+118
-137
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
"name": "@ibexa/design-system",
33
"version": "1.0.0",
44
"main": "index.js",
5-
"repository": "[email protected]:GrabowskiM/design-system.git",
6-
"author": "Michał Grabowski <[email protected]>",
5+
"repository": "[email protected]:ibexa/design-system.git",
76
"license": "MIT",
87
"private": true,
98
"type": "module",

packages/components/.babelrc

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@
44
[
55
"module-resolver",
66
{
7-
"root": ["./"],
7+
"root": ["./src"],
88
"alias": {
9-
"@ids-core": ["./packages/core/src"],
10-
"@ids-components": "./packages/components/src/components",
11-
"@ids-context": "./packages/components/src/context",
12-
"@ids-hoc": "./packages/components/src/hoc",
13-
"@ids-hooks": "./packages/components/src/hooks",
14-
"@ids-partials": "./packages/components/src/partials",
15-
"@ids-shared": "./packages/components/src/shared",
16-
"@ids-sb-decorators": "./src/storybook/decorators",
17-
"@ids-types": "./types"
9+
"@ids-components": "./src/components",
10+
"@ids-context": "./src/context",
11+
"@ids-hoc": "./src/hoc",
12+
"@ids-hooks": "./src/hooks",
13+
"@ids-partials": "./src/partials",
14+
"@ids-shared": "./src/shared"
1815
}
1916
}
2017
]

packages/components/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@
1717
"test": "yarn prettier:test && yarn eslint:test && yarn ts:test",
1818
"fix": "yarn prettier:fix && yarn eslint:fix",
1919
"extract-translations": "node ./scripts/extract_translations.js",
20-
"generate-exports": "node ./scripts/generate_exports.js",
2120
"build:clear": "rm -rf dist/* tsconfig.build.tsbuildinfo",
2221
"build:js": "babel src --out-dir dist --delete-dir-on-start --extensions \".js,.ts,.jsx,.tsx\"",
2322
"build:types": "tsc -b tsconfig.build.json",
24-
"build": "yarn build:clear && yarn build:js && yarn build:types && yarn generate-exports",
23+
"build": "yarn build:clear && yarn build:js && yarn build:types",
2524
"watch:js": "babel src --out-dir dist --delete-dir-on-start --extensions \".js,.ts,.jsx,.tsx\" --watch",
2625
"watch:types": "tsc -b tsconfig.build.json --watch",
2726
"watch": "yarn build:clear && (yarn watch:js & yarn watch:types)"

packages/components/scripts/generate_exports.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

packages/components/src/components/Accordion/Accordion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useContext, useEffect, useRef, useState } from 'react';
22

33
import { Expander, ExpanderType } from '@ids-components/Expander';
44
import { TranslatorContext } from '@ids-context/Translator';
5-
import { createCssClassNames } from '@ids-core/helpers/cssClassNames';
5+
import { createCssClassNames } from '@ids-core';
66

77
import { AccordionProps } from './Accordion.types';
88

packages/components/src/components/AltRadio/AltRadioInput/AltRadioInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React, { useRef, useState } from 'react';
22

33
import { BaseChoiceInput } from '@ids-partials/BaseChoiceInput';
4-
import { createCssClassNames } from '@ids-core/helpers/cssClassNames';
5-
import withStateChecked from '@ids-hoc/withStateChecked';
4+
import { createCssClassNames } from '@ids-core';
5+
import { withStateChecked } from '@ids-hoc/withStateChecked';
66

77
import { AltRadioInputProps } from './AltRadioInput.types';
88

packages/components/src/components/AltRadio/AltRadiosListField/AltRadiosListField.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import React, { useCallback } from 'react';
33
import { AltRadioInput } from '../AltRadioInput';
44
import { BaseInputsList } from '@ids-partials/BaseInputsList';
55
import { HelperTextType } from '@ids-components/HelperText';
6-
import { createCssClassNames } from '@ids-core/helpers/cssClassNames';
7-
import withStateValue from '@ids-hoc/withStateValue';
6+
import { createCssClassNames } from '@ids-core';
7+
import { withStateValue } from '@ids-hoc/withStateValue';
88

99
import { AltRadiosListFieldDirection, AltRadiosListFieldItem, AltRadiosListFieldProps } from './AltRadiosListField.types';
1010

packages/components/src/components/Autosave/Autosave.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useContext } from 'react';
22

33
import { Icon, IconSize } from '@ids-components/Icon';
44
import { TranslatorContext } from '@ids-context/Translator';
5-
import { createCssClassNames } from '@ids-core/helpers/cssClassNames';
5+
import { createCssClassNames } from '@ids-core';
66

77
import { AutosaveProps, AutosaveStatus } from './Autosave.types';
88

packages/components/src/components/Badge/Badge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
import { createCssClassNames } from '@ids-core/helpers/cssClassNames';
3+
import { createCssClassNames } from '@ids-core';
44

55
import { BadgeProps, BadgeSize } from './Badge.types';
66

packages/components/src/components/Button/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22

33
import { Icon, IconSize } from '@ids-components/Icon';
4-
import { createCssClassNames } from '@ids-core/helpers/cssClassNames';
4+
import { createCssClassNames } from '@ids-core';
55

66
import { ButtonProps, ButtonSize, ButtonType } from './Button.types';
77

0 commit comments

Comments
 (0)