Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert: removed atls-ui-proto #560

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,888 changes: 93 additions & 1,795 deletions .pnp.cjs

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"storybook/*",
"ui-admin/*",
"ui-parts/*",
"ui-proto/*",
"ui/*",
"utils/*"
],
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
"jsx": "react",
"outDir": "./dist"
},
"include": ["ui/**/*", "ui-proto/**/*", "ui-parts/**/*", "ui-admin/**/*"]
"include": ["ui/**/*", "ui-parts/**/*", "ui-admin/**/*"]
}
2 changes: 1 addition & 1 deletion ui-parts/autocomplete/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"postpack": "rm -rf dist"
},
"dependencies": {
"@atls-ui-proto/input": "workspace:*",
"@atls-ui-parts/input": "workspace:*",
"downshift": "7.6.2",
"react-laag": "2.0.5"
},
Expand Down
2 changes: 1 addition & 1 deletion ui-parts/autocomplete/src/autocomplete.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import { useState } from 'react'
import { useLayer } from 'react-laag'

import { Input } from '@atls-ui-proto/input'
import { Input } from '@atls-ui-parts/input'

Check failure on line 11 in ui-parts/autocomplete/src/autocomplete.component.tsx

View workflow job for this annotation

GitHub Actions / TypeCheck

Module '"@atls-ui-parts/input"' has no exported member 'Input'.

Module '"@atls-ui-parts/input"' has no exported member 'Input'.
Raw output
   9 | import { useLayer }                from 'react-laag'
  10 |
> 11 | import { Input }                   from '@atls-ui-parts/input'
     |          ^
  12 |
  13 | import { Arrow }                   from './indicator'
  14 | import { Indicator }               from './indicator'

import { Arrow } from './indicator'
import { Indicator } from './indicator'
Expand Down
3 changes: 1 addition & 2 deletions ui-parts/autocomplete/src/factories/create-menu.renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react'

const createMenuRenderer = (Menu) =>
// eslint-disable-next-line
({ children, ...props }) =>
<Menu {...props}>{children}</Menu>
({ children, ...props }) => <Menu {...props}>{children}</Menu>

export { createMenuRenderer }
2 changes: 1 addition & 1 deletion ui-parts/datepicker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"react-datepicker": "4.21.0"
},
"devDependencies": {
"@atls-ui-proto/input": "workspace:*",
"@atls-ui-parts/input": "workspace:*",
"@emotion/css": "11.11.2",
"@emotion/styled": "11.11.0",
"@types/react": "18.2.48",
Expand Down
2 changes: 1 addition & 1 deletion ui-parts/datepicker/src/datepicker.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { forwardRef } from 'react'
import { useState } from 'react'

import { Input } from '@atls-ui-proto/input'
import { Input } from '@atls-ui-parts/input'

Check failure on line 5 in ui-parts/datepicker/src/datepicker.stories.tsx

View workflow job for this annotation

GitHub Actions / TypeCheck

Module '"@atls-ui-parts/input"' has no exported member 'Input'.

Module '"@atls-ui-parts/input"' has no exported member 'Input'.
Raw output
  3 | import { useState }                          from 'react'
  4 |
> 5 | import { Input }                             from '@atls-ui-parts/input'
    |          ^
  6 |
  7 | import { Datepicker as DatepickerComponent } from './datepicker.component'
  8 |

import { Datepicker as DatepickerComponent } from './datepicker.component'

Expand Down
21 changes: 10 additions & 11 deletions ui-parts/input/src/factories/divided-fields-renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ const createDividedFieldsRenderer = ({
divider,
}) =>
// eslint-disable-next-line
({ children }) =>
(
<FieldAddonsContainer>
{children.map((child, index) => (
<>
{index !== 0 && <DividerContainer>{divider}</DividerContainer>}
<FieldAddon>{child}</FieldAddon>
</>
))}
</FieldAddonsContainer>
)
({ children }) => (
<FieldAddonsContainer>
{children.map((child, index) => (
<>
{index !== 0 && <DividerContainer>{divider}</DividerContainer>}
<FieldAddon>{child}</FieldAddon>
</>
))}
</FieldAddonsContainer>
)

export { createDividedFieldsRenderer }
2 changes: 1 addition & 1 deletion ui-parts/progress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"postpack": "rm -rf dist"
},
"devDependencies": {
"@atls-ui-parts/button": "workspace:*",
"@atls-ui-parts/layout": "workspace:*",
"@atls-ui-proto/button": "workspace:*",
"@emotion/react": "11.11.3",
"@emotion/styled": "11.11.0",
"@testing-library/react": "14.0.0",
Expand Down
2 changes: 1 addition & 1 deletion ui-parts/progress/src/progress.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react'
import { useState } from 'react'

import { Button } from '@atls-ui-parts/button'

Check failure on line 4 in ui-parts/progress/src/progress.stories.tsx

View workflow job for this annotation

GitHub Actions / TypeCheck

Module '"@atls-ui-parts/button"' has no exported member 'Button'.

Module '"@atls-ui-parts/button"' has no exported member 'Button'.
Raw output
  2 | import { useState } from 'react'
  3 |
> 4 | import { Button }   from '@atls-ui-parts/button'
    |          ^
  5 | import { Column }   from '@atls-ui-parts/layout'
  6 | import { Layout }   from '@atls-ui-parts/layout'
  7 | import { Row }      from '@atls-ui-parts/layout'
import { Column } from '@atls-ui-parts/layout'
import { Layout } from '@atls-ui-parts/layout'
import { Row } from '@atls-ui-parts/layout'
import { Button } from '@atls-ui-proto/button'

import { Circle } from './circle'
import { Line } from './line'
Expand Down
38 changes: 0 additions & 38 deletions ui-proto/autocomplete/package.json

This file was deleted.

19 changes: 0 additions & 19 deletions ui-proto/autocomplete/src/autocomplete.stories.tsx

This file was deleted.

1 change: 0 additions & 1 deletion ui-proto/autocomplete/src/index.ts

This file was deleted.

43 changes: 0 additions & 43 deletions ui-proto/avatar/package.json

This file was deleted.

35 changes: 0 additions & 35 deletions ui-proto/avatar/src/avatar-fallback.component.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions ui-proto/avatar/src/avatar-image.component.tsx

This file was deleted.

45 changes: 0 additions & 45 deletions ui-proto/avatar/src/avatar.component.tsx

This file was deleted.

68 changes: 0 additions & 68 deletions ui-proto/avatar/src/avatar.stories.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions ui-proto/avatar/src/index.ts

This file was deleted.

Loading
Loading