profinansy-ui-lib 1.2.3 → 2.0.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.
- package/dist/assets/about-icon.d.ts +3 -3
- package/dist/assets/apple-icon.d.ts +3 -3
- package/dist/assets/burger-icon-dark.d.ts +3 -3
- package/dist/assets/burger-icon.d.ts +3 -3
- package/dist/assets/capital-icon.d.ts +3 -3
- package/dist/assets/channels-icon.d.ts +3 -3
- package/dist/assets/chats-icon.d.ts +3 -3
- package/dist/assets/checkmark-icon.d.ts +3 -0
- package/dist/assets/chevron-icon-small.d.ts +3 -3
- package/dist/assets/chevron-icon.d.ts +3 -3
- package/dist/assets/close-icon.d.ts +3 -3
- package/dist/assets/club-icon.d.ts +3 -3
- package/dist/assets/edit-icon.d.ts +3 -0
- package/dist/assets/education-icon.d.ts +3 -3
- package/dist/assets/expenses-icon.d.ts +3 -3
- package/dist/assets/favorites-icon.d.ts +3 -3
- package/dist/assets/feed-icon.d.ts +3 -3
- package/dist/assets/google-store-icon.d.ts +3 -3
- package/dist/assets/huawei-store-icon.d.ts +3 -3
- package/dist/assets/investments-icon.d.ts +3 -3
- package/dist/assets/lock-icon-dark.d.ts +3 -3
- package/dist/assets/lock-icon.d.ts +3 -3
- package/dist/assets/logout-icon-new.d.ts +3 -3
- package/dist/assets/logout-icon.d.ts +3 -3
- package/dist/assets/notifications-icon.d.ts +3 -3
- package/dist/assets/plus-icon.d.ts +3 -0
- package/dist/assets/profile-icon.d.ts +3 -3
- package/dist/assets/purchases-icon.d.ts +3 -3
- package/dist/assets/purrple-logo-dark.d.ts +3 -3
- package/dist/assets/purrple-logo.d.ts +3 -3
- package/dist/assets/remove-icon.d.ts +3 -0
- package/dist/assets/tariffs-icon.d.ts +3 -3
- package/dist/assets/telegram-icon.d.ts +3 -3
- package/dist/assets/vk-icon.d.ts +3 -3
- package/dist/assets/youtube-icon copy.d.ts +3 -3
- package/dist/common.types.d.ts +37 -37
- package/dist/components/footer/Footer.stories.d.ts +11 -0
- package/dist/components/footer/constants.d.ts +16 -16
- package/dist/components/footer/footer.d.ts +11 -11
- package/dist/components/footer/footer.styled.d.ts +31 -29
- package/dist/components/footer/index.d.ts +1 -1
- package/dist/components/header/Header.stories.d.ts +21 -0
- package/dist/components/header/constants.d.ts +148 -148
- package/dist/components/header/header-link-item/header-link-item.d.ts +12 -12
- package/dist/components/header/header-link-item/header-link-item.styled.d.ts +43 -8
- package/dist/components/header/header-link-item/header-sub-link.d.ts +17 -17
- package/dist/components/header/header.d.ts +16 -16
- package/dist/components/header/header.styled.d.ts +17 -10
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/header/user-dropdown-menu/constants.d.ts +5 -5
- package/dist/components/header/user-dropdown-menu/user-dropdown-menu.d.ts +13 -13
- package/dist/components/header/user-dropdown-menu/user-dropdown-menu.styled.d.ts +15 -7
- package/dist/components/icon-wrapper/icon-wrapper.d.ts +7 -7
- package/dist/components/uikit/Button/Button.const.d.ts +135 -0
- package/dist/components/uikit/Button/Button.d.ts +4 -0
- package/dist/components/uikit/Button/Button.stories.d.ts +7 -0
- package/dist/components/uikit/Button/Button.styled.d.ts +22 -0
- package/dist/components/uikit/Button/Button.typed.d.ts +31 -0
- package/dist/components/uikit/Button/index.d.ts +2 -0
- package/dist/components/uikit/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/uikit/Checkbox/Checkbox.stories.d.ts +6 -0
- package/dist/components/uikit/Checkbox/Checkbox.styled.d.ts +18 -0
- package/dist/components/uikit/Checkbox/Checkbox.typed.d.ts +24 -0
- package/dist/components/uikit/Checkbox/index.d.ts +2 -0
- package/dist/components/uikit/Loader/Loader.d.ts +3 -0
- package/dist/components/uikit/Loader/Loader.stories.d.ts +6 -0
- package/dist/components/uikit/Loader/Loader.styled.d.ts +9 -0
- package/dist/components/uikit/Loader/Loader.typed.d.ts +10 -0
- package/dist/components/uikit/Loader/index.d.ts +2 -0
- package/dist/components/uikit/Portal/Portal.d.ts +3 -0
- package/dist/components/uikit/Portal/Portal.stories.d.ts +6 -0
- package/dist/components/uikit/Portal/Portal.typed.d.ts +5 -0
- package/dist/components/uikit/Portal/index.d.ts +1 -0
- package/dist/components/uikit/Portal/usePortal.d.ts +2 -0
- package/dist/components/uikit/Radio/Radio.d.ts +3 -0
- package/dist/components/uikit/Radio/Radio.stories.d.ts +6 -0
- package/dist/components/uikit/Radio/Radio.styled.d.ts +16 -0
- package/dist/components/uikit/Radio/Radio.typed.d.ts +16 -0
- package/dist/components/uikit/Radio/index.d.ts +2 -0
- package/dist/components/uikit/Skeleton/Skeleton.d.ts +3 -0
- package/dist/components/uikit/Skeleton/Skeleton.stories.d.ts +6 -0
- package/dist/components/uikit/Skeleton/Skeleton.styled.d.ts +3 -0
- package/dist/components/uikit/Skeleton/Skeleton.typed.d.ts +15 -0
- package/dist/components/uikit/Skeleton/index.d.ts +1 -0
- package/dist/components/uikit/TextButton/TextButton.const.d.ts +30 -0
- package/dist/components/uikit/TextButton/TextButton.d.ts +3 -0
- package/dist/components/uikit/TextButton/TextButton.stories.d.ts +6 -0
- package/dist/components/uikit/TextButton/TextButton.styled.d.ts +5 -0
- package/dist/components/uikit/TextButton/TextButton.typed.d.ts +16 -0
- package/dist/components/uikit/TextButton/index.d.ts +2 -0
- package/dist/components/uikit/storybook/StoryDescription/StoryDescription.d.ts +5 -0
- package/dist/components/uikit/storybook/StoryDescription/StoryDescription.styled.d.ts +1 -0
- package/dist/components/uikit/storybook/StoryExample/StoryExample.d.ts +6 -0
- package/dist/components/uikit/storybook/StoryExample/StoryExample.styled.d.ts +1 -0
- package/dist/components/uikit/storybook/StoryTitle/StoryTitle.d.ts +6 -0
- package/dist/components/uikit/storybook/StoryTitle/StoryTitle.styled.d.ts +1 -0
- package/dist/hooks/useBreakpoints.d.ts +6 -6
- package/dist/hooks/useCurrentPath.d.ts +4 -4
- package/dist/hooks/useDisableScroll.d.ts +3 -3
- package/dist/hooks/useListenOutsideClick.d.ts +3 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +442 -131
- package/dist/index.js.LICENSE.txt +26 -0
- package/dist/utils.d.ts +6 -6
- package/package.json +48 -30
- package/readme.md +10 -10
- package/dist/context/theme-context.d.ts +0 -5
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
Copyright (c) 2018 Jed Watson.
|
|
3
|
+
Licensed under the MIT License (MIT), see
|
|
4
|
+
http://jedwatson.github.io/classnames
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @license React
|
|
9
|
+
* react-dom.production.min.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/
|
|
26
|
+
|
|
1
27
|
/** @license React v16.13.1
|
|
2
28
|
* react-is.production.min.js
|
|
3
29
|
*
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const getBreakPointsValues: (screenWidth: number) => {
|
|
2
|
-
xs: boolean;
|
|
3
|
-
sm: boolean;
|
|
4
|
-
md: boolean;
|
|
5
|
-
lg: boolean;
|
|
6
|
-
};
|
|
1
|
+
export declare const getBreakPointsValues: (screenWidth: number) => {
|
|
2
|
+
xs: boolean;
|
|
3
|
+
sm: boolean;
|
|
4
|
+
md: boolean;
|
|
5
|
+
lg: boolean;
|
|
6
|
+
};
|
package/package.json
CHANGED
|
@@ -1,30 +1,48 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "profinansy-ui-lib",
|
|
3
|
-
"version": "
|
|
4
|
-
"main": "./dist/index.js",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"devDependencies": {
|
|
7
|
-
"@
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"react": "
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "profinansy-ui-lib",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"devDependencies": {
|
|
7
|
+
"@babel/preset-env": "^7.22.5",
|
|
8
|
+
"@babel/preset-react": "^7.22.5",
|
|
9
|
+
"@babel/preset-typescript": "^7.22.5",
|
|
10
|
+
"@storybook/addon-essentials": "7.0.24",
|
|
11
|
+
"@storybook/addon-interactions": "7.0.24",
|
|
12
|
+
"@storybook/addon-links": "7.0.24",
|
|
13
|
+
"@storybook/blocks": "7.0.24",
|
|
14
|
+
"@storybook/react": "7.0.24",
|
|
15
|
+
"@storybook/react-webpack5": "7.0.24",
|
|
16
|
+
"@storybook/testing-library": "0.0.14-next.2",
|
|
17
|
+
"@types/react": "^18.0.27",
|
|
18
|
+
"@types/styled-components": "^5.1.26",
|
|
19
|
+
"classnames": "^2.3.2",
|
|
20
|
+
"css-loader": "^6.7.3",
|
|
21
|
+
"prettier": "2.8.8",
|
|
22
|
+
"prop-types": "15.8.1",
|
|
23
|
+
"react": "18.2.0",
|
|
24
|
+
"react-dom": "18.2.0",
|
|
25
|
+
"sass": "^1.57.1",
|
|
26
|
+
"sass-loader": "^13.2.0",
|
|
27
|
+
"storybook": "7.0.24",
|
|
28
|
+
"style-loader": "^3.3.1",
|
|
29
|
+
"styled-components": "^5.3.6",
|
|
30
|
+
"ts-loader": "^9.4.2",
|
|
31
|
+
"typescript": "^4.9.4",
|
|
32
|
+
"webpack": "^5.75.0",
|
|
33
|
+
"webpack-cli": "^5.0.1"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "webpack",
|
|
37
|
+
"pub": "webpack && npm version patch && npm publish",
|
|
38
|
+
"storybook": "storybook dev -p 6006",
|
|
39
|
+
"build-storybook": "storybook build"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"react": "^17",
|
|
43
|
+
"styled-components": "^5.3.6"
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"dist"
|
|
47
|
+
]
|
|
48
|
+
}
|
package/readme.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# Флоу работы
|
|
2
|
-
1. Создать ветку от master
|
|
3
|
-
2. Сделать изменения, обновить версию в package.json, выполнить команду yarn build, запушить в гитлаб и открыть МР в мастер(прикрепляете ссылку на задачу в МР и кидаете его в группу в телеге)
|
|
4
|
-
3. Ревьювер посмотрит на МР, если это апрув, примет МР в main, и выполнит у себя локально команду npm publish
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
# Как смотреть изменения
|
|
8
|
-
1. Надо расшарить локально репу общих компонентов, для этого в терминале в корневой директории проекта **profinansy-react-components** запустить команду **yarn link**
|
|
9
|
-
2. В своем проекте, в котором используется эта репа(profinansy, к примеру),надо выполнить команду **yarn remove profinansy-ui-lib**, затем **yarn link profinansy-ui-lib**. Для применения изменений выполняйте команду **yarn build** в репозитории **profinansy-react-components**. Возможно то, что typescript будет кидать ошибки JSX типа "**cannot be used as a JSX component**", пока вы не отвяжете локальную привязку
|
|
10
|
-
3. После завершения работы над компонентами, надо отвязать привязку: **yarn unlink profinansy-ui-lib**, затем **yarn add --force profinansy-ui-lib**
|
|
1
|
+
# Флоу работы
|
|
2
|
+
1. Создать ветку от master
|
|
3
|
+
2. Сделать изменения, обновить версию в package.json, выполнить команду yarn build, запушить в гитлаб и открыть МР в мастер(прикрепляете ссылку на задачу в МР и кидаете его в группу в телеге)
|
|
4
|
+
3. Ревьювер посмотрит на МР, если это апрув, примет МР в main, и выполнит у себя локально команду npm publish
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# Как смотреть изменения
|
|
8
|
+
1. Надо расшарить локально репу общих компонентов, для этого в терминале в корневой директории проекта **profinansy-react-components** запустить команду **yarn link**
|
|
9
|
+
2. В своем проекте, в котором используется эта репа(profinansy, к примеру),надо выполнить команду **yarn remove profinansy-ui-lib**, затем **yarn link profinansy-ui-lib**. Для применения изменений выполняйте команду **yarn build** в репозитории **profinansy-react-components**. Возможно то, что typescript будет кидать ошибки JSX типа "**cannot be used as a JSX component**", пока вы не отвяжете локальную привязку
|
|
10
|
+
3. После завершения работы над компонентами, надо отвязать привязку: **yarn unlink profinansy-ui-lib**, затем **yarn add --force profinansy-ui-lib**
|