ff-ds-ui 0.0.3 → 0.0.4

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.
package/README.md CHANGED
@@ -1 +1,13 @@
1
1
  # FF-DS-UI lib
2
+
3
+ ## Publish to Npm
4
+
5
+ ### 1 - version up => package.json, json-lock versions
6
+
7
+ ### 2 - tag => git tag v.0.0.0
8
+
9
+ ### 3 - push tag => git push origin --tags
10
+
11
+ ### 4 - run build => npm run build
12
+
13
+ ### 5 - push packets => npm publish
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ff-ds-ui",
3
3
  "private": false,
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
5
5
  "type": "module",
6
6
  "main": "./dist/my-ui-lib.umd.js",
7
7
  "module": "./dist/my-ui-lib.es.js",
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from 'react'
2
2
  import './Avatar.scss'
3
- import { bemBlock } from '@/utils'
4
- import { Text } from '@/components/Text'
3
+ import { bemBlock } from '../../utils'
4
+ import { Text } from '../../components/Text'
5
5
  import { getAvatarCamelCaseText } from './utils'
6
6
 
7
7
  export interface AvatarProps {
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import './Button.scss'
3
- import { bemBlock } from '@/utils'
3
+ import { bemBlock } from '../../utils'
4
4
  import type { BUTTON_BORDER, BUTTON_SIZES, BUTTON_VARIANTS, BUTTON_WIDTH } from './const'
5
5
 
6
6
  export type ButtonBorder = (typeof BUTTON_BORDER)[number]
@@ -1,4 +1,4 @@
1
- import { Flex } from '@/components'
1
+ import { Flex } from '../../'
2
2
  import { Button } from '../Button'
3
3
  import { BUTTON_BORDER, BUTTON_SIZES, BUTTON_VARIANTS, BUTTON_WIDTH } from '../const'
4
4
  import type { Meta, StoryObj } from '@storybook/react'
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import './Card.scss'
3
- import { bemBlock } from '@/utils'
3
+ import { bemBlock } from '../../utils'
4
4
 
5
5
  interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
6
6
  children?: React.ReactNode
@@ -2,7 +2,7 @@ import React from 'react'
2
2
  import './Checkbox.scss'
3
3
  import { Text } from '../Text'
4
4
  import { Flex } from '../Flex'
5
- import { bemBlock } from '@/utils'
5
+ import { bemBlock } from '../../utils'
6
6
 
7
7
  interface CheckboxProps {
8
8
  size?: 's' | 'm' | 'l'
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import './Divider.scss'
3
- import { bemBlock } from '@/utils'
3
+ import { bemBlock } from '../../utils'
4
4
  import { Text } from '../Text'
5
5
 
6
6
  interface DividerProps {
@@ -1,7 +1,7 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react'
2
2
  import { Divider } from '../Divider'
3
- import { Flex } from '@/components/Flex'
4
- import { Avatar } from '@/components/Avatar'
3
+ import { Flex } from '../../'
4
+ import { Avatar } from '../../Avatar'
5
5
 
6
6
  const meta = {
7
7
  title: 'Components/Divider',
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import './Flex.scss'
3
- import { bemBlock } from '@/utils'
3
+ import { bemBlock } from '../../utils'
4
4
 
5
5
  interface FlexProps extends React.HTMLAttributes<HTMLDivElement> {
6
6
  children: React.ReactNode
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import './Label.scss'
3
- import { bemBlock } from '@/utils'
3
+ import { bemBlock } from '../../utils'
4
4
  import { Text } from '../Text'
5
5
  import { Flex } from '../Flex'
6
6
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import './Link.scss'
3
- import { bemBlock } from '@/utils'
3
+ import { bemBlock } from '../../utils'
4
4
 
5
5
  interface LinkProps {
6
6
  underline?: boolean
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import './Loader.scss'
3
- import { bemBlock } from '@/utils'
3
+ import { bemBlock } from '../../utils'
4
4
  import { loaderSizes } from './const'
5
5
 
6
6
  interface LoaderProps {
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import './Radio.scss'
3
- import { bemBlock } from '@/utils'
3
+ import { bemBlock } from '../../utils'
4
4
  import { Text } from '../Text'
5
5
  import { Flex } from '../Flex'
6
6
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import './Skeleton.scss'
3
- import { bemBlock } from '@/utils'
3
+ import { bemBlock } from '../../utils'
4
4
 
5
5
  interface SkeletonProps {
6
6
  view?: 'circle' | 'square'
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from 'react'
2
2
  import './Tabs.scss'
3
- import { bemBlock } from '@/utils'
3
+ import { bemBlock } from '../../utils'
4
4
  import { Text } from '../Text'
5
5
 
6
6
  interface TabsProps {
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import './Text.scss'
3
- import { bemBlock } from '@/utils'
3
+ import { bemBlock } from '../../utils'
4
4
 
5
5
  export type TextVariantType =
6
6
  | 'body1'
@@ -1,4 +1,4 @@
1
- import { Flex } from '@/components/Flex'
1
+ import { Flex } from '../../'
2
2
  import { Text } from '../Text'
3
3
  import type { Meta, StoryObj } from '@storybook/react'
4
4
 
@@ -1,8 +1,7 @@
1
1
  import React from 'react'
2
2
  import './TextArea.scss'
3
- import { bemBlock } from '@/utils'
4
- import { Text } from '../Text/Text'
5
- import { Flex } from '../Flex'
3
+ import { bemBlock } from '../../utils'
4
+ import { Text, Flex } from '../'
6
5
 
7
6
  interface TextAreaProps extends React.HTMLAttributes<HTMLTextAreaElement> {
8
7
  placeholder?: string
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import './TextInput.scss'
3
- import { bemBlock } from '@/utils'
4
- import { Flex } from '@/components/Flex'
3
+ import { bemBlock } from '../../utils'
4
+ import { Flex } from '../'
5
5
  import { Text } from '../Text/Text'
6
6
 
7
7
  interface TextInputProps extends React.HTMLAttributes<HTMLInputElement> {
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import './User.scss'
3
3
  import { Avatar, type AvatarProps } from '../Avatar'
4
- import { Flex, Text } from '@/components'
4
+ import { Flex, Text } from '../'
5
5
 
6
6
  interface UserProps {
7
7
  avatar?: AvatarProps
package/src/index.ts CHANGED
@@ -1 +1 @@
1
- export * from './components'
1
+ export * from './components'
package/tsconfig.app.json CHANGED
@@ -7,10 +7,7 @@
7
7
  "module": "ESNext",
8
8
  "types": ["vite/client"],
9
9
  "skipLibCheck": true,
10
- "baseUrl": ".",
11
- "paths": {
12
- "@/*": ["src/*"]
13
- },
10
+
14
11
  /* Bundler mode */
15
12
  "moduleResolution": "bundler",
16
13
  "allowImportingTsExtensions": true,
@@ -10,11 +10,7 @@
10
10
  "strict": true,
11
11
  "moduleResolution": "Node",
12
12
  "skipLibCheck": true,
13
- "esModuleInterop": true,
14
- "baseUrl": ".",
15
- "paths": {
16
- "@/*": ["src/*"]
17
- }
13
+ "esModuleInterop": true
18
14
  },
19
15
  "include": ["src"]
20
16
  }
package/vite.config.ts CHANGED
@@ -39,11 +39,6 @@ export default defineConfig({
39
39
  },
40
40
  },
41
41
  },
42
- resolve: {
43
- alias: {
44
- '@': path.resolve(__dirname, 'src'),
45
- },
46
- },
47
42
  test: {
48
43
  projects: [
49
44
  {