mimir-ui-kit 0.0.24 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +36 -11
- package/package.json +111 -91
- package/dist/assets/Button.css +0 -1
- package/dist/assets/Input.css +0 -1
- package/dist/assets/InputPassword.css +0 -1
- package/dist/assets/OtpInput.css +0 -1
- package/dist/assets/fonts/11d5bc9f0cad36d1.woff2 +0 -0
- package/dist/assets/fonts/1a738bfdbc1e4d9d.woff +0 -0
- package/dist/assets/fonts/242d04bef81519ae.woff2 +0 -0
- package/dist/assets/fonts/3b9f59412b17ff93.woff +0 -0
- package/dist/assets/fonts/3cdd7fabbe89d2b9.woff +0 -0
- package/dist/assets/fonts/43b748f250df0f08.woff +0 -0
- package/dist/assets/fonts/585d10920d676fcd.woff2 +0 -0
- package/dist/assets/fonts/63611593e008a77c.woff2 +0 -0
- package/dist/assets/fonts/badaa6d1837432de.woff +0 -0
- package/dist/assets/fonts/cac2ba46e8c8adc9.woff2 +0 -0
- package/dist/assets/fonts/d080ae18fd04e52c.woff2 +0 -0
- package/dist/assets/fonts/e51d2feb30084bc2.woff2 +0 -0
- package/dist/assets/fonts/ee3db32f0aadef5d.woff2 +0 -0
- package/dist/assets/fonts/f4d681a788c6d497.woff2 +0 -0
- package/dist/assets/index.css +0 -1
- package/dist/components/Button/Button.d.ts +0 -84
- package/dist/components/Button/Button.js +0 -86
- package/dist/components/Button/constants.d.ts +0 -25
- package/dist/components/Button/constants.js +0 -35
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Button/index.js +0 -9
- package/dist/components/Button/types.d.ts +0 -14
- package/dist/components/Button/types.js +0 -1
- package/dist/components/Input/Input.d.ts +0 -63
- package/dist/components/Input/Input.js +0 -109
- package/dist/components/Input/constants.d.ts +0 -12
- package/dist/components/Input/constants.js +0 -18
- package/dist/components/Input/index.d.ts +0 -3
- package/dist/components/Input/index.js +0 -7
- package/dist/components/Input/types.d.ts +0 -11
- package/dist/components/Input/types.js +0 -1
- package/dist/components/InputPassword/InputPassword.d.ts +0 -12
- package/dist/components/InputPassword/InputPassword.js +0 -40
- package/dist/components/InputPassword/index.d.ts +0 -2
- package/dist/components/InputPassword/index.js +0 -4
- package/dist/components/InputPhoneNumber/InputPhoneNumber.d.ts +0 -12
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +0 -38
- package/dist/components/InputPhoneNumber/index.d.ts +0 -2
- package/dist/components/InputPhoneNumber/index.js +0 -7
- package/dist/components/InputPhoneNumber/utils.d.ts +0 -2
- package/dist/components/InputPhoneNumber/utils.js +0 -26
- package/dist/components/OtpInput/OtpInput.d.ts +0 -23
- package/dist/components/OtpInput/OtpInput.js +0 -142
- package/dist/components/OtpInput/constants.d.ts +0 -3
- package/dist/components/OtpInput/constants.js +0 -8
- package/dist/components/OtpInput/index.d.ts +0 -1
- package/dist/components/OtpInput/index.js +0 -4
- package/dist/components/icons/Eye.d.ts +0 -1
- package/dist/components/icons/Eye.js +0 -35
- package/dist/components/icons/index.d.ts +0 -1
- package/dist/components/icons/index.js +0 -4
- package/dist/components/index.d.ts +0 -7
- package/dist/components/index.js +0 -23
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.js +0 -6
- package/dist/hooks/useMediaQuery/constants.d.ts +0 -7
- package/dist/hooks/useMediaQuery/constants.js +0 -11
- package/dist/hooks/useMediaQuery/index.d.ts +0 -2
- package/dist/hooks/useMediaQuery/index.js +0 -6
- package/dist/hooks/useMediaQuery/useMediaQuery.d.ts +0 -14
- package/dist/hooks/useMediaQuery/useMediaQuery.js +0 -19
- package/dist/index-CweZ_OcN.js +0 -65
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -27
package/README.md
CHANGED
@@ -1,29 +1,54 @@
|
|
1
1
|
# Mimir-ui
|
2
2
|
|
3
3
|
## Установка и запуск проекта
|
4
|
+
|
4
5
|
1. Установите зависимости:
|
5
6
|
```bash
|
6
7
|
npm install
|
8
|
+
```
|
7
9
|
2. Запуск storybook
|
8
|
-
|
10
|
+
```bash
|
9
11
|
npm run storybook
|
12
|
+
```
|
13
|
+
|
10
14
|
## Сборка проекта
|
15
|
+
|
11
16
|
1. Скрипт для сборки
|
12
|
-
|
13
|
-
|
17
|
+
```bash
|
18
|
+
npm run build
|
19
|
+
```
|
20
|
+
|
14
21
|
## Поднятие версии для публикации на npm
|
22
|
+
|
15
23
|
Для поднятия версии пакета перед публикацией на npm используем следующие скрипты:
|
16
24
|
|
17
25
|
1. `patch`: Этот скрипт увеличивает версию пакета на один патч (например, с версии 1.0.0 до 1.0.1). Он автоматически обновляет версию в файле package.json и создает коммит с обновленной версией.
|
18
|
-
|
19
|
-
|
26
|
+
```bash
|
27
|
+
npm version patch
|
28
|
+
```
|
20
29
|
2. `minor`: Этот скрипт увеличивает версию пакета на один минорный уровень (например, с версии 1.0.0 до 1.1.0). Также обновляет версию в package.json и создает коммит.
|
21
|
-
|
22
|
-
|
30
|
+
```bash
|
31
|
+
npm version minor
|
32
|
+
```
|
23
33
|
3. `major`: Этот скрипт увеличивает версию пакета на один мажорный уровень (например, с версии 1.0.0 до 2.0.0). Он также обновляет версию в package.json и создает коммит.
|
24
|
-
|
25
|
-
|
34
|
+
```bash
|
35
|
+
npm version major
|
36
|
+
```
|
37
|
+
|
26
38
|
## Публикация на npm
|
39
|
+
|
27
40
|
1. Скрипт для публикации на npm:
|
28
|
-
|
29
|
-
|
41
|
+
```bash
|
42
|
+
npm publish
|
43
|
+
```
|
44
|
+
|
45
|
+
## Ручная Генерация иконок
|
46
|
+
|
47
|
+
1. Экспортируем с фигмы иконку.
|
48
|
+
2. Добавляем ее в папку svgs.
|
49
|
+
3. Запускаем скрипт:
|
50
|
+
```bash
|
51
|
+
npm run icons
|
52
|
+
```
|
53
|
+
4. Смотрим в папку `icons/components`
|
54
|
+
5. Готово.
|
package/package.json
CHANGED
@@ -1,91 +1,111 @@
|
|
1
|
-
{
|
2
|
-
"name": "mimir-ui-kit",
|
3
|
-
"private": false,
|
4
|
-
"version": "
|
5
|
-
"type": "module",
|
6
|
-
"exports": "./dist/index.js",
|
7
|
-
"module": "./dist/index.js",
|
8
|
-
"types": "./dist/index.d.ts",
|
9
|
-
"files": [
|
10
|
-
"dist"
|
11
|
-
],
|
12
|
-
"sideEffects": [
|
13
|
-
"**/*.{css,scss}"
|
14
|
-
],
|
15
|
-
"scripts": {
|
16
|
-
"build": "tsc --p ./tsconfig-build.json && vite build",
|
17
|
-
"storybook": "storybook dev -p 6006",
|
18
|
-
"build-storybook": "storybook build",
|
19
|
-
"ts:check": "tsc -b",
|
20
|
-
"lint:fix": "eslint . --ext ts,tsx --fix",
|
21
|
-
"lint:prettier": "npx prettier . --write",
|
22
|
-
"lint:stylelint": "stylelint '
|
23
|
-
"lint:stylelint:fix": "stylelint '
|
24
|
-
"
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
"@
|
29
|
-
"@
|
30
|
-
"@
|
31
|
-
"@
|
32
|
-
"@storybook/addon-
|
33
|
-
"@storybook/addon-
|
34
|
-
"@storybook/
|
35
|
-
"@storybook/
|
36
|
-
"@storybook/
|
37
|
-
"@storybook/
|
38
|
-
"@storybook/
|
39
|
-
"@
|
40
|
-
"@
|
41
|
-
"@
|
42
|
-
"@
|
43
|
-
"@
|
44
|
-
"@
|
45
|
-
"
|
46
|
-
"
|
47
|
-
"
|
48
|
-
"
|
49
|
-
"eslint-plugin
|
50
|
-
"eslint
|
51
|
-
"
|
52
|
-
"
|
53
|
-
"
|
54
|
-
"
|
55
|
-
"
|
56
|
-
"
|
57
|
-
"
|
58
|
-
"
|
59
|
-
"
|
60
|
-
"
|
61
|
-
"
|
62
|
-
"
|
63
|
-
"
|
64
|
-
"
|
65
|
-
"
|
66
|
-
"
|
67
|
-
"
|
68
|
-
"
|
69
|
-
"
|
70
|
-
"
|
71
|
-
|
72
|
-
|
73
|
-
"
|
74
|
-
"
|
75
|
-
"
|
76
|
-
|
77
|
-
|
78
|
-
"
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
"
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
"
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
1
|
+
{
|
2
|
+
"name": "mimir-ui-kit",
|
3
|
+
"private": false,
|
4
|
+
"version": "1.0.1",
|
5
|
+
"type": "module",
|
6
|
+
"exports": "./dist/index.js",
|
7
|
+
"module": "./dist/index.js",
|
8
|
+
"types": "./dist/index.d.ts",
|
9
|
+
"files": [
|
10
|
+
"dist"
|
11
|
+
],
|
12
|
+
"sideEffects": [
|
13
|
+
"**/*.{css,scss}"
|
14
|
+
],
|
15
|
+
"scripts": {
|
16
|
+
"build": "tsc --p ./tsconfig-build.json && vite build",
|
17
|
+
"storybook": "storybook dev -p 6006",
|
18
|
+
"build-storybook": "storybook build",
|
19
|
+
"ts:check": "tsc -b",
|
20
|
+
"lint:fix": "eslint . --ext ts,tsx --fix",
|
21
|
+
"lint:prettier": "npx prettier . --write",
|
22
|
+
"lint:stylelint": "stylelint '**/*.module{.css,.scss}'",
|
23
|
+
"lint:stylelint:fix": "stylelint '**/*.module{.css,.scss}' --fix",
|
24
|
+
"icons": "svgr --expand-props start ./src/icons/svgs",
|
25
|
+
"prepare": "husky"
|
26
|
+
},
|
27
|
+
"devDependencies": {
|
28
|
+
"@chromatic-com/storybook": "^1.6.1",
|
29
|
+
"@headlessui/react": "^2.1.2",
|
30
|
+
"@laynezh/vite-plugin-lib-assets": "^0.5.23",
|
31
|
+
"@loadable/component": "^5.15.2",
|
32
|
+
"@storybook/addon-essentials": "^8.2.2",
|
33
|
+
"@storybook/addon-interactions": "^8.2.2",
|
34
|
+
"@storybook/addon-links": "^8.2.2",
|
35
|
+
"@storybook/addon-onboarding": "^8.2.2",
|
36
|
+
"@storybook/blocks": "^8.2.2",
|
37
|
+
"@storybook/builder-vite": "^8.2.2",
|
38
|
+
"@storybook/react": "^8.2.2",
|
39
|
+
"@storybook/react-vite": "^8.2.2",
|
40
|
+
"@storybook/test": "^8.2.2",
|
41
|
+
"@svgr/cli": "^8.1.0",
|
42
|
+
"@svgr/core": "^8.1.0",
|
43
|
+
"@svgr/plugin-svgo": "^8.1.0",
|
44
|
+
"@types/fs-extra": "^11.0.4",
|
45
|
+
"@types/loadable__component": "^5.13.9",
|
46
|
+
"@types/node": "^20.14.10",
|
47
|
+
"@types/react": "^18.3.3",
|
48
|
+
"@types/react-dom": "^18.3.0",
|
49
|
+
"@typescript-eslint/eslint-plugin": "^7.13.1",
|
50
|
+
"@typescript-eslint/parser": "^7.13.1",
|
51
|
+
"@vitejs/plugin-react": "^4.3.1",
|
52
|
+
"autoprefixer": "^10.4.19",
|
53
|
+
"axios": "^1.7.2",
|
54
|
+
"chalk": "4.1.2",
|
55
|
+
"classnames": "^2.5.1",
|
56
|
+
"dotenv": "^16.4.5",
|
57
|
+
"eslint": "^8.57.0",
|
58
|
+
"eslint-config-prettier": "^9.1.0",
|
59
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
60
|
+
"eslint-plugin-react-refresh": "^0.4.7",
|
61
|
+
"eslint-plugin-storybook": "^0.8.0",
|
62
|
+
"fs-extra": "^11.2.0",
|
63
|
+
"glob": "10.3.10",
|
64
|
+
"husky": "^9.0.11",
|
65
|
+
"lint-staged": "^15.2.7",
|
66
|
+
"p-limit": "^6.1.0",
|
67
|
+
"prettier": "^3.3.3",
|
68
|
+
"react": "^18.3.1",
|
69
|
+
"react-dom": "^18.3.1",
|
70
|
+
"rimraf": "^6.0.1",
|
71
|
+
"sass": "^1.77.7",
|
72
|
+
"storybook": "^8.2.2",
|
73
|
+
"stylelint": "^16.7.0",
|
74
|
+
"stylelint-config-idiomatic-order": "^10.0.0",
|
75
|
+
"stylelint-config-rational-order": "^0.1.2",
|
76
|
+
"stylelint-config-standard": "^36.0.1",
|
77
|
+
"stylelint-order": "^6.0.4",
|
78
|
+
"stylelint-prettier": "^5.0.0",
|
79
|
+
"stylelint-scss": "^6.4.0",
|
80
|
+
"superagent": "^9.0.2",
|
81
|
+
"ts-node": "10.9.2",
|
82
|
+
"tsx": "^4.16.2",
|
83
|
+
"typescript": "^5.2.2",
|
84
|
+
"vite": "^5.3.1",
|
85
|
+
"vite-plugin-dts": "^3.9.1",
|
86
|
+
"vite-plugin-lib-inject-css": "^2.1.1",
|
87
|
+
"vite-plugin-svgr": "^4.2.0"
|
88
|
+
},
|
89
|
+
"peerDependencies": {
|
90
|
+
"@headlessui/react": "^2.1.2",
|
91
|
+
"react": "^18.3.1",
|
92
|
+
"react-dom": "^18.3.1"
|
93
|
+
},
|
94
|
+
"husky": {
|
95
|
+
"hooks": {
|
96
|
+
"pre-commit": "lint-staged"
|
97
|
+
}
|
98
|
+
},
|
99
|
+
"lint-staged": {
|
100
|
+
"**/*.{ts,tsx}": [
|
101
|
+
"eslint",
|
102
|
+
"prettier --write"
|
103
|
+
],
|
104
|
+
"**/*.{css,scss}": [
|
105
|
+
"stylelint --fix"
|
106
|
+
]
|
107
|
+
},
|
108
|
+
"dependencies": {
|
109
|
+
"use-clipboard-copy": "^0.2.0"
|
110
|
+
}
|
111
|
+
}
|
package/dist/assets/Button.css
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
._button_r2t0t_1{--button-loader-color: var(--button-color);--button-cursor: pointer;position:relative;display:inline-flex;flex-shrink:0;align-items:center;box-sizing:border-box;max-width:100%;height:var(--button-height);padding:0 var(--button-space);overflow:hidden;color:var(--button-color);font-weight:600;font-size:14px;font-family:var(--font-inter);line-height:16px;white-space:nowrap;text-decoration:none;text-overflow:ellipsis;background:var(--button-bg-color);border:none;border-radius:var(--control-radius);cursor:var(--button-cursor);transition:background-color .3s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease,fill .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none}._xs_r2t0t_29{--button-height: var(--button-height-xs);--button-font-size: var(--control-text-size-xs);--button-space: var(--control-space-xs);--button-margin-icon: 4px;--button-border-radius: var(--button-border-radius-s)}._s_r2t0t_37{--button-height: var(--button-height-s);--button-font-size: var(--control-text-size-s);--button-space: var(--control-space-s);--button-margin-icon: 4px;--button-border-radius: var(--button-border-radius-s)}._m_r2t0t_45{--button-height: var(--button-height-m);--button-font-size: var(--control-text-size-m);--button-space: var(--control-space-m);--button-margin-icon: 8px;--button-border-radius: var(--button-border-radius-m)}._l_r2t0t_53{--button-height: var(--button-height-l);--button-font-size: var(--control-text-size-l);--button-space: var(--control-space-l);--button-margin-icon: 8px;--button-border-radius: var(--button-border-radius-l)}._xl_r2t0t_61{--button-height: var(--button-height-xl);--button-space: var(--control-space-l);--button-margin-icon: 8px;--button-border-radius: var(--button-border-radius-l);font-weight:var(--font-weight-text-medium);font-size:var(--size-text-l)}._xxl_r2t0t_70{--button-height: var(--button-height-xxl);--button-space: var(--control-space-xxl);--button-border-radius: var(--button-border-radius-l);font-weight:var(--font-weight-text-medium);font-size:var(--size-text-l)}._default-button_r2t0t_78._primary-sapphire_r2t0t_78{--button-bg-color: var(--sapphire-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--sapphire-active);--button-bg-color-hover: var(--sapphire-hover);--button-color: var(--light-text);--button-border: transparent}._default-button_r2t0t_78._primary-citrine_r2t0t_87{--button-bg-color: var(--citrine-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--citrine-active);--button-bg-color-hover: var(--citrine-hover);--button-color: var(--light-text);--button-border: transparent}._default-button_r2t0t_78._secondary-asphalt_r2t0t_96{--button-bg-color: var(--asphalt-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--asphalt-active);--button-bg-color-hover: var(--asphalt-hover);--button-color: var(--light-text);--button-border: transparent}._default-button_r2t0t_78._secondary-gray_r2t0t_105{--button-bg-color: var(--gray-normal);--button-color-hover: var(--counter-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--gray-active);--button-bg-color-hover: var(--gray-hover);--button-color: var(--dark-text);--button-border: transparent}._default-button_r2t0t_78._secondary-white_r2t0t_114{--button-bg-color: var(--white-normal);--button-color-hover: var(--counter-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--white-active);--button-bg-color-hover: var(--white-hover);--button-color: var(--dark-text);--button-border: transparent}._default-button_r2t0t_78._secondary-red_r2t0t_123{--button-bg-color: var(--red-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--red-active);--button-bg-color-hover: var(--red-hover);--button-color: var(--light-text);--button-border: transparent}._round-button_r2t0t_133{--button-border-radius-l: 24px;--button-border-radius-m: 20px;--button-border-radius-s: 16px;--button-border-radius-xs: 12px;border-radius:var(--button-border-radius)}._round-button_r2t0t_133._black_r2t0t_140{--button-bg-color: var(--asphalt-normal);--button-bg-color-hover: var(--asphalt-hover);--button-bg-color-active: var(--sapphire-normal);--button-bg-color-focus: var(--sapphire-normal);--button-color: var(--light-text);--button-color-hover: var(--light-text);--button-color-active: var(--light-text)}._round-button_r2t0t_133._gray_r2t0t_149{--button-bg-color: var(--gray-normal);--button-bg-color-hover: var(--gray-hover);--button-bg-color-active: var(--sapphire-normal);--button-bg-color-focus: var(--sapphire-normal);--button-color: var(--asphalt-normal);--button-color-hover: var(--asphalt-hover);--button-color-active: var(--light-text)}._round-button_r2t0t_133._white_r2t0t_158{--button-bg-color: var(--white-normal);--button-bg-color-hover: var(--white-hover);--button-bg-color-active: var(--sapphire-normal);--button-bg-color-focus: var(--sapphire-normal);--button-color: var(--asphalt-normal);--button-color-hover: var(--asphalt-hover);--button-color-active: var(--light-text)}._button_r2t0t_1:hover{color:var(--button-color-hover);background:var(--button-bg-color-hover)}._button_r2t0t_1:active{color:var(--button-color-active);background:var(--button-bg-color-active)}._button_r2t0t_1:focus{box-shadow:0 0 2px var(--sapphire-normal)}._full_r2t0t_182{display:block;width:100%}._disabled_r2t0t_187{--button-cursor: not-allowed;color:var(--light-text);background-color:var(--disabled)}._disabled_r2t0t_187:hover,._disabled_r2t0t_187:active,._disabled_r2t0t_187:focus{color:var(--light-text);background-color:var(--disabled);box-shadow:none}._right-icon_r2t0t_198,._left-icon_r2t0t_199{align-self:center}._right-icon_r2t0t_198{margin-left:var(--button-margin-icon)}._left-icon_r2t0t_199{margin-right:var(--button-margin-icon)}
|
package/dist/assets/Input.css
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
._input_1k42j_1{--button-border-radius-l: 8px;--button-border-radius-m: 6px;--button-border-radius-s: 6px;position:relative;display:block;width:100%;min-width:0;height:var(--input-height);padding-top:0;padding-inline:var(--input-padding) var(--input-padding);color:var(--dark-text);font-size:var(--input-font-size);font-family:var(--font-inter);letter-spacing:-.42px;background:none;background-color:var(--input-bg-color);border-bottom:1px solid transparent;border-radius:var(--input-border-radius);outline:none;cursor:var(--input-cursor);font-feature-settings:"zero";transition:background-color .2s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease,fill .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none}._s_1k42j_27{--input-height: var(--space-xxl);--input-font-size: var(--control-text-size-s);--input-padding: var(--space-m);--input-padding-position: var(--space-1xs);--input-border-radius: var(--button-border-radius-s);--label-font-size: var(--size-text-xs);--label-scaled: .8;--label-spacing: var(--space-1xs)}._m_1k42j_38{--input-height: var(--space-4xl);--input-font-size: var(--control-text-size-m);--input-padding: var(--space-m);--input-padding-position: var(--space-xs);--input-border-radius: var(--button-border-radius-m);--label-font-size: var(--size-text-s);--label-scaled: .6;--label-spacing: var(--space-xs)}._l_1k42j_49{--input-height: var(--space-4xxl);--input-font-size: var(--control-text-size-2xl);--input-padding: var(--space-m);--input-padding-position: var(--space-s);--input-border-radius: var(--button-border-radius-l);--label-font-size: var(--size-text-s);--label-scaled: .6;--label-spacing: var(--space-s)}._default-gray_1k42j_60{--input-bg-color: var(--black-5);--input-bg-color-active: var(--black-10);--input-bg-color-hover: var(--black-10);--input-color: var(--dark-text);--input-color-hover: var(--dark-text);--input-color-active: var(--dark-text);--input-border: transparent;--input-bottom-color-active: var(--citrine-normal);--label-color: var(--black-60)}._default-white_1k42j_72{--input-bg-color: var(--white);--input-bg-color-hover: var(--black-60);--input-bg-color-active: var(--white);--input-color: var(--dark-text);--input-color-hover: var(--dark-text);--input-color-active: var(--dark-text);--input-border: transparent;--input-bottom-color-active: var(--citrine-normal);--label-color: var(--dark-text)}._default-white_1k42j_72::-moz-placeholder{color:var(--input-color)}._default-white_1k42j_72::placeholder{color:var(--input-color)}._default-white_1k42j_72:hover::-moz-placeholder{color:var(--input-color)}._default-white_1k42j_72:hover::placeholder{color:var(--input-color)}._success_1k42j_90{--input-bg-color: var(--success-normal);--input-bg-color-hover: var(--success-bg-hover);--input-bg-color-active: var(--success-bg-active);--input-color: var(--dark-text);--input-color-hover: var(--dark-text);--input-color-active: var(--dark-text);--input-border: transparent;--input-bottom-color-active: var(--success-normal);--label-color: var(--black-60)}._success_1k42j_90::-moz-placeholder{color:var(--input-color)}._success_1k42j_90::placeholder{color:var(--input-color)}._success_1k42j_90:hover::-moz-placeholder{color:var(--input-color)}._success_1k42j_90:hover::placeholder{color:var(--input-color)}._alarm_1k42j_108{--input-bg-color: var(--alarm-normal);--input-bg-color-hover: var(--alarm-bg-hover);--input-bg-color-active: var(--alarm-bg-active);--input-color: var(--dark-text);--input-color-hover: var(--dark-text);--input-color-active: var(--dark-text);--input-border: transparent;--input-bottom-color-active: var(--alarm-normal);--label-color: var(--black-60)}._alarm_1k42j_108::-moz-placeholder{color:var(--input-color)}._alarm_1k42j_108::placeholder{color:var(--input-color)}._alarm_1k42j_108:hover::-moz-placeholder{color:var(--input-color)}._alarm_1k42j_108:hover::placeholder{color:var(--input-color)}._error_1k42j_126{--input-bg-color: var(--error-normal);--input-bg-color-hover: var(--error-bg-hover);--input-bg-color-active: var(--error-bg-active);--input-color: var(--dark-text);--input-color-hover: var(--dark-text);--input-color-active: var(--dark-text);--input-border: transparent;--input-bottom-color-active: var(--error-normal);--label-color: var(--black-60)}._error_1k42j_126::-moz-placeholder{color:var(--input-color)}._error_1k42j_126::placeholder{color:var(--input-color)}._error_1k42j_126:hover::-moz-placeholder{color:var(--input-color)}._error_1k42j_126:hover::placeholder{color:var(--input-color)}._input_1k42j_1:hover{color:var(--input-color-hover);background:var(--input-bg-color-hover)}._input_1k42j_1:focus{color:var(--input-color-active);background-color:var(--input-bg-color-active);border-bottom:1px solid var(--input-bottom-color-active)}._disabled_1k42j_155{--input-cursor: not-allowed;color:var(--light-text);background-color:var(--black-20)}._disabled_1k42j_155:hover,._disabled_1k42j_155:active,._disabled_1k42j_155:focus{color:var(--light-text);background-color:var(--black-20);border:none;box-shadow:none}._disabled_1k42j_155::-moz-placeholder{color:var(--light-text)}._disabled_1k42j_155::placeholder{color:var(--light-text)}._disabled_1k42j_155:hover::-moz-placeholder{color:var(--light-text)}._disabled_1k42j_155:hover::placeholder{color:var(--light-text)}._input-wrapper_1k42j_173{position:relative}._has-label_1k42j_177{padding-top:var(--input-padding-position)}._label_1k42j_181{position:absolute;top:calc(var(--input-height) / 2 - var(--input-font-size) / 2);left:var(--space-m);z-index:1;display:block;color:var(--label-color);font-size:var(--input-font-size);white-space:nowrap;background-color:var(--color-background);transform-origin:left center;cursor:var(--input-cursor);transition:transform .15s ease-out,color .15s ease-out;pointer-events:none}._label_1k42j_181._active-label_1k42j_196{transform:scale(var(--label-scaled)) translateY(calc((var(--input-height) / 2 - var(--label-font-size) / 2) * -1))}
|
@@ -1 +0,0 @@
|
|
1
|
-
._input_1vatm_1{padding-right:var(--space-3xl)}._wrapper_1vatm_5{position:relative;display:flex;align-items:center;border-radius:8px}._wrapper_1vatm_5 svg{color:inherit;fill:inherit}._input-wrapper_1vatm_16{flex:1}._button-wrapper_1vatm_20{position:absolute;top:0;right:0;z-index:2;display:flex;width:44px;height:100%;max-height:var(--button-height-xxl)}._button_1vatm_20{flex:1;align-self:center;background-color:transparent;border-radius:8px}
|
package/dist/assets/OtpInput.css
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
._otp_jnjdw_2{display:flex;align-items:center;width:100%;-moz-column-gap:var(--space-xs);column-gap:var(--space-xs)}@media (max-width: 767px){._otp_jnjdw_2{-moz-column-gap:4.65px;column-gap:4.65px}}._input-wrapper_jnjdw_14{flex:0 0 64px;padding:0}@media (max-width: 767px){._input-wrapper_jnjdw_14{flex:0 0 48px}}._input_jnjdw_14{text-align:center}._separator_jnjdw_28{display:block;flex:0 0 54px;align-self:center;height:1px;background-color:var(--black-100)}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
package/dist/assets/index.css
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
@font-face{font-weight:400;font-family:Montserrat;font-style:normal;src:url(./fonts/585d10920d676fcd.woff2) format("woff2"),url(./fonts/3b9f59412b17ff93.woff) format("woff")}@font-face{font-weight:700;font-family:Montserrat;font-style:normal;src:url(./fonts/f4d681a788c6d497.woff2) format("woff2"),url(./fonts/43b748f250df0f08.woff) format("woff")}@font-face{font-weight:300;font-family:Montserrat;font-style:normal;src:url(./fonts/ee3db32f0aadef5d.woff2) format("woff2"),url(./fonts/1a738bfdbc1e4d9d.woff) format("woff")}@font-face{font-weight:500;font-family:Montserrat;font-style:normal;src:url(./fonts/e51d2feb30084bc2.woff2) format("woff2"),url(./fonts/badaa6d1837432de.woff) format("woff")}@font-face{font-weight:600;font-family:Montserrat;font-style:normal;src:url(./fonts/63611593e008a77c.woff2) format("woff2"),url(./fonts/3cdd7fabbe89d2b9.woff) format("woff")}@font-face{font-weight:400;font-family:Inter;font-style:normal;src:url(./fonts/d080ae18fd04e52c.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:700;font-family:Inter;font-style:normal;src:url(./fonts/11d5bc9f0cad36d1.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:500;font-family:Inter;font-style:normal;src:url(./fonts/242d04bef81519ae.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:600;font-family:Inter;font-style:normal;src:url(./fonts/cac2ba46e8c8adc9.woff2) format("woff2");font-variant-numeric:slashed-zero}@supports (font-variation-settings: normal){:root{font-family:InterVariable,sans-serif}}:root{font-feature-settings:"zero"}*{margin:0;padding:0;border:0;outline:none}*,:after,:before{box-sizing:border-box}:active,:focus{outline:0}a,a:visited,a:hover{text-decoration:none}a:active,a:focus{outline:0}aside,footer,header,nav{display:block}body,html{width:100%;height:100%;font-size:100%;line-height:1}button,input,textarea,select{font-family:inherit}input::-ms-clear{display:none}button{cursor:pointer}button::-moz-focus-inner{padding:0;border:0}ul li{list-style:none}img{vertical-align:top}h1,h2,h3,h4,h5,h6{font-weight:inherit;font-size:inherit}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--color-typo-brand);-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s}:root{--sapphire-100: #2355d7;--sapphire-90: #3564df;--sapphire-80: #4b75e2;--sapphire-70: #6186e6;--sapphire-60: #7797e9;--sapphire-50: #8da7ed;--sapphire-40: #9fb7f4;--sapphire-30: #b9caf4;--sapphire-20: #cfdaf7;--sapphire-10: #e5ebfb;--citrine-100: #ff7900;--citrine-90: #ff861a;--citrine-80: #ff9433;--citrine-70: #ffa14d;--citrine-60: #ffaf66;--citrine-50: #ffbc80;--citrine-40: #ffc999;--citrine-30: #ffd7b2;--citrine-20: #ffe4cc;--citrine-10: #fff2e5;--magenta-100: #bc2251;--magenta-90: #d8275d;--magenta-80: #dc3d6d;--magenta-70: #e15781;--magenta-60: #e46c91;--magenta-50: #e986a4;--magenta-40: #ed9cb4;--magenta-30: #f2b6c8;--magenta-20: #f6cbd8;--magenta-10: #fae5ec;--black-100: #000;--black-95: #0d0d0d;--black-90: #1a1a1a;--black-85: #262626;--black-80: #333;--black-75: #404040;--black-70: #4d4d4d;--black-65: #595959;--black-60: #666;--black-55: #737373;--black-50: #808080;--black-45: #8c8c8c;--black-40: #999;--black-35: #a6a6a6;--black-30: #b3b3b3;--black-25: #bfbfbf;--black-20: #ccc;--black-15: #d9d9d9;--black-10: #e6e6e6;--black-5: #f2f2f2;--white: #fff;--dark-blue: #0a38af;--blue-40: #a7bbef;--blue-20: #d3ddf7;--green: #1b770c;--red-tag: #f01406;--success-normal: #23b413;--success-bg-hover: #d5fbe2;--success-bg-active: #ebfdf1;--alarm-normal: #fdc023;--alarm-bg-hover: #fff0c7;--alarm-bg-active: #fff6de;--error-normal: #e64646;--error-bg-hover: #fadbdb;--error-bg-active: #fbe3e3;--disabled: #b3b3b3;--light-text: var(--white);--dark-text: var(--black-100);--sapphire-normal: var(--sapphire-100);--sapphire-hover: #1b41a3;--sapphire-active: #122c70;--citrine-normal: var(--citrine-100);--citrine-hover: #e56d00;--citrine-active: #cc6100;--asphalt-border: var(--black-30);--asphalt-normal: var(--black-80);--asphalt-hover: var(--black-90);--asphalt-active: var(--black-100);--gray-normal: var(--black-5);--gray-hover: var(--black-10);--gray-active: var(--black-80);--white-normal: var(--white);--white-hover: var(--black-5);--white-transparent: rgb(255 255 255 / 40%);--white-active: var(--black-80);--red-normal: var(--error-normal);--red-hover: #e33030;--red-active: #dc1e1e;--green-normal: var(--green);--green-hover: #16610a;--green-active: #114a08;--counter-text: #ffa066;--button-height-xs: 24px;--button-height-s: 32px;--button-height-m: 40px;--button-height-l: 48px;--button-height-xl: 56px;--button-height-xxl: 64px;--control-default: var(--sapphire-20);--control-hover: var(--sapphire-40);--control-selected: var(--sapphire-100);--control-disabled: var(--black-10);--font-inter: "Inter", sans-serif;--font-montserrat: "Montserrat", sans-serif;--font-weight-text-regular: 400;--font-weight-text-medium: 500;--font-weight-text-semibold: 600;--font-weight-text-bold: 700;--font-weight-text-extrabold: 800;--font-weight-text-black: 900;--size-text-xs2: 8px;--size-text-xs: 10px;--size-text-s: 12px;--size-text-m: 14px;--size-text-l: 16px;--size-text-xl: 20px;--size-text-xl2: 24px;--size-text-2xl: 28px;--size-text-xl3: 32px;--size-text-xl4: 48px;--size-text-xl5: 72px;--size-text-xl6: 96px;--line-height-text-2xs: 1em;--line-height-text-xs: 1.1em;--line-height-text-s: 1.2em;--line-height-text-m: 1.3em;--line-height-text-l: 1.4em;--line-height-text-xl: 1.5em;--control-radius: 6px;--control-radius-l: 24px;--control-input-radius: 12px;--control-border-width: 1px;--control-height-xl: 60px;--control-height-xxl: 60px;--control-height-l: var(--space-4xl);--control-height-m: var(--space-3xl);--control-height-s: var(--space-2xl);--control-height-xs: var(--space-xl);--control-box-size-s: var(--space-s);--control-box-size-m: var(--space-m);--control-box-size-l: var(--space-l);--control-space-xxl: var(--space-xl);--control-space-l: var(--space-xl);--control-space-m: var(--space-l);--control-space-s: var(--space-m);--control-space-xs: var(--space-s);--control-text-size-2xl: var(--size-text-xl);--control-text-size-xl: var(--size-text-xl3);--control-text-size-l: var(--size-text-l);--control-text-size-m: var(--size-text-m);--control-text-size-s: var(--size-text-s);--control-text-size-xs: var(--size-text-xs);--space-3xs: 2px;--space-2xs: 4px;--space-1xs: 6px;--space-xs: 8px;--space-s: 12px;--space-m: 16px;--space-l: 20px;--space-xl: 24px;--space-2xl: 32px;--space-xxl: 40px;--space-3xl: 44px;--space-4xl: 48px;--space-4xxl: 64px;--space-5xl: 72px;--space-6xl: 96px;--box-shadow-active: 0 0 2px var(--sapphire-normal)}@supports (font-variation-settings: normal){:root{font-family:Inter,sans-serif}}:root{font-feature-settings:"zero";font-variant-numeric:slashed-zero}body{font-family:Inter,sans-serif;font-variant-numeric:slashed-zero;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
|
@@ -1,84 +0,0 @@
|
|
1
|
-
import { ComponentProps, ReactNode } from 'react';
|
2
|
-
import { TButtonDefaultFormProps, TButtonRoundFormProps } from './types';
|
3
|
-
|
4
|
-
export type TProps = (TButtonDefaultFormProps | TButtonRoundFormProps) & ComponentProps<'button'> & {
|
5
|
-
/**
|
6
|
-
* Класс, применяемый к корневому элементу кнопки.
|
7
|
-
*/
|
8
|
-
className?: string;
|
9
|
-
/**
|
10
|
-
* Флаг, указывающий, отключена ли кнопка.
|
11
|
-
*/
|
12
|
-
disabled?: boolean;
|
13
|
-
/**
|
14
|
-
* Иконка справа.
|
15
|
-
*/
|
16
|
-
rightIcon?: ReactNode;
|
17
|
-
/**
|
18
|
-
* Иконка слева.
|
19
|
-
*/
|
20
|
-
leftIcon?: ReactNode;
|
21
|
-
/**
|
22
|
-
* Флаг, указывающий, что кнопка занимает все доступное пространство.
|
23
|
-
*/
|
24
|
-
full?: boolean;
|
25
|
-
/**
|
26
|
-
* Идентификатор формы, к которой привязана кнопка.
|
27
|
-
*/
|
28
|
-
formId?: string;
|
29
|
-
};
|
30
|
-
/**
|
31
|
-
* Компонент кнопки, который можно настраивать с различными темами и размерами.
|
32
|
-
|
33
|
-
*/
|
34
|
-
export declare const Button: import('react').ForwardRefExoticComponent<(Omit<TButtonDefaultFormProps & import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
35
|
-
/**
|
36
|
-
* Класс, применяемый к корневому элементу кнопки.
|
37
|
-
*/
|
38
|
-
className?: string;
|
39
|
-
/**
|
40
|
-
* Флаг, указывающий, отключена ли кнопка.
|
41
|
-
*/
|
42
|
-
disabled?: boolean;
|
43
|
-
/**
|
44
|
-
* Иконка справа.
|
45
|
-
*/
|
46
|
-
rightIcon?: ReactNode;
|
47
|
-
/**
|
48
|
-
* Иконка слева.
|
49
|
-
*/
|
50
|
-
leftIcon?: ReactNode;
|
51
|
-
/**
|
52
|
-
* Флаг, указывающий, что кнопка занимает все доступное пространство.
|
53
|
-
*/
|
54
|
-
full?: boolean;
|
55
|
-
/**
|
56
|
-
* Идентификатор формы, к которой привязана кнопка.
|
57
|
-
*/
|
58
|
-
formId?: string;
|
59
|
-
}, "ref"> | Omit<TButtonRoundFormProps & import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
60
|
-
/**
|
61
|
-
* Класс, применяемый к корневому элементу кнопки.
|
62
|
-
*/
|
63
|
-
className?: string;
|
64
|
-
/**
|
65
|
-
* Флаг, указывающий, отключена ли кнопка.
|
66
|
-
*/
|
67
|
-
disabled?: boolean;
|
68
|
-
/**
|
69
|
-
* Иконка справа.
|
70
|
-
*/
|
71
|
-
rightIcon?: ReactNode;
|
72
|
-
/**
|
73
|
-
* Иконка слева.
|
74
|
-
*/
|
75
|
-
leftIcon?: ReactNode;
|
76
|
-
/**
|
77
|
-
* Флаг, указывающий, что кнопка занимает все доступное пространство.
|
78
|
-
*/
|
79
|
-
full?: boolean;
|
80
|
-
/**
|
81
|
-
* Идентификатор формы, к которой привязана кнопка.
|
82
|
-
*/
|
83
|
-
formId?: string;
|
84
|
-
}, "ref">) & import('react').RefAttributes<HTMLButtonElement>>;
|
@@ -1,86 +0,0 @@
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
2
|
-
import { forwardRef } from "react";
|
3
|
-
import { c as classNames } from "../../index-CweZ_OcN.js";
|
4
|
-
import { EButtonVariantDefault, EButtonForm } from "./constants.js";
|
5
|
-
import '../../assets/Button.css';const button = "_button_r2t0t_1";
|
6
|
-
const xs = "_xs_r2t0t_29";
|
7
|
-
const s = "_s_r2t0t_37";
|
8
|
-
const m = "_m_r2t0t_45";
|
9
|
-
const l = "_l_r2t0t_53";
|
10
|
-
const xl = "_xl_r2t0t_61";
|
11
|
-
const xxl = "_xxl_r2t0t_70";
|
12
|
-
const black = "_black_r2t0t_140";
|
13
|
-
const gray = "_gray_r2t0t_149";
|
14
|
-
const white = "_white_r2t0t_158";
|
15
|
-
const full = "_full_r2t0t_182";
|
16
|
-
const disabled = "_disabled_r2t0t_187";
|
17
|
-
const cls = {
|
18
|
-
button,
|
19
|
-
xs,
|
20
|
-
s,
|
21
|
-
m,
|
22
|
-
l,
|
23
|
-
xl,
|
24
|
-
xxl,
|
25
|
-
"default-button": "_default-button_r2t0t_78",
|
26
|
-
"primary-sapphire": "_primary-sapphire_r2t0t_78",
|
27
|
-
"primary-citrine": "_primary-citrine_r2t0t_87",
|
28
|
-
"secondary-asphalt": "_secondary-asphalt_r2t0t_96",
|
29
|
-
"secondary-gray": "_secondary-gray_r2t0t_105",
|
30
|
-
"secondary-white": "_secondary-white_r2t0t_114",
|
31
|
-
"secondary-red": "_secondary-red_r2t0t_123",
|
32
|
-
"round-button": "_round-button_r2t0t_133",
|
33
|
-
black,
|
34
|
-
gray,
|
35
|
-
white,
|
36
|
-
full,
|
37
|
-
disabled,
|
38
|
-
"right-icon": "_right-icon_r2t0t_198",
|
39
|
-
"left-icon": "_left-icon_r2t0t_199"
|
40
|
-
};
|
41
|
-
const Button = forwardRef(
|
42
|
-
(props, ref) => {
|
43
|
-
const {
|
44
|
-
size = "m",
|
45
|
-
variant = EButtonVariantDefault.PrimarySapphire,
|
46
|
-
form = EButtonForm.DefaultButton,
|
47
|
-
full: full2,
|
48
|
-
children,
|
49
|
-
className,
|
50
|
-
formId,
|
51
|
-
rightIcon,
|
52
|
-
leftIcon,
|
53
|
-
disabled: disabled2,
|
54
|
-
...otherProps
|
55
|
-
} = props;
|
56
|
-
const mods = {
|
57
|
-
[cls.full]: full2,
|
58
|
-
[cls.disabled]: disabled2,
|
59
|
-
[cls[variant ?? ""]]: !disabled2
|
60
|
-
};
|
61
|
-
const buttonClassNames = classNames(cls.button, mods, [
|
62
|
-
cls[form ?? ""],
|
63
|
-
cls[size],
|
64
|
-
className
|
65
|
-
]);
|
66
|
-
return /* @__PURE__ */ jsxs(
|
67
|
-
"button",
|
68
|
-
{
|
69
|
-
form: formId,
|
70
|
-
...otherProps,
|
71
|
-
disabled: disabled2,
|
72
|
-
ref,
|
73
|
-
className: buttonClassNames,
|
74
|
-
children: [
|
75
|
-
leftIcon && /* @__PURE__ */ jsx("span", { className: cls["left-icon"], children: leftIcon }),
|
76
|
-
children,
|
77
|
-
rightIcon && /* @__PURE__ */ jsx("span", { className: cls["right-icon"], children: rightIcon })
|
78
|
-
]
|
79
|
-
}
|
80
|
-
);
|
81
|
-
}
|
82
|
-
);
|
83
|
-
Button.displayName = "Button";
|
84
|
-
export {
|
85
|
-
Button
|
86
|
-
};
|
@@ -1,25 +0,0 @@
|
|
1
|
-
export declare enum EButtonVariantDefault {
|
2
|
-
PrimarySapphire = "primary-sapphire",
|
3
|
-
PrimaryCitrine = "primary-citrine",
|
4
|
-
SecondaryAsphalt = "secondary-asphalt",
|
5
|
-
SecondaryGray = "secondary-gray",
|
6
|
-
SecondaryWhite = "secondary-white",
|
7
|
-
SecondaryRed = "secondary-red"
|
8
|
-
}
|
9
|
-
export declare enum EButtonVariantRound {
|
10
|
-
Black = "black",
|
11
|
-
Gray = "gray",
|
12
|
-
White = "white"
|
13
|
-
}
|
14
|
-
export declare enum EButtonSize {
|
15
|
-
XS = "xs",
|
16
|
-
S = "s",
|
17
|
-
M = "m",
|
18
|
-
L = "l",
|
19
|
-
XL = "xl",
|
20
|
-
XXL = "xxl"
|
21
|
-
}
|
22
|
-
export declare enum EButtonForm {
|
23
|
-
DefaultButton = "default-button",
|
24
|
-
RoundButton = "round-button"
|
25
|
-
}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
var EButtonVariantDefault = /* @__PURE__ */ ((EButtonVariantDefault2) => {
|
2
|
-
EButtonVariantDefault2["PrimarySapphire"] = "primary-sapphire";
|
3
|
-
EButtonVariantDefault2["PrimaryCitrine"] = "primary-citrine";
|
4
|
-
EButtonVariantDefault2["SecondaryAsphalt"] = "secondary-asphalt";
|
5
|
-
EButtonVariantDefault2["SecondaryGray"] = "secondary-gray";
|
6
|
-
EButtonVariantDefault2["SecondaryWhite"] = "secondary-white";
|
7
|
-
EButtonVariantDefault2["SecondaryRed"] = "secondary-red";
|
8
|
-
return EButtonVariantDefault2;
|
9
|
-
})(EButtonVariantDefault || {});
|
10
|
-
var EButtonVariantRound = /* @__PURE__ */ ((EButtonVariantRound2) => {
|
11
|
-
EButtonVariantRound2["Black"] = "black";
|
12
|
-
EButtonVariantRound2["Gray"] = "gray";
|
13
|
-
EButtonVariantRound2["White"] = "white";
|
14
|
-
return EButtonVariantRound2;
|
15
|
-
})(EButtonVariantRound || {});
|
16
|
-
var EButtonSize = /* @__PURE__ */ ((EButtonSize2) => {
|
17
|
-
EButtonSize2["XS"] = "xs";
|
18
|
-
EButtonSize2["S"] = "s";
|
19
|
-
EButtonSize2["M"] = "m";
|
20
|
-
EButtonSize2["L"] = "l";
|
21
|
-
EButtonSize2["XL"] = "xl";
|
22
|
-
EButtonSize2["XXL"] = "xxl";
|
23
|
-
return EButtonSize2;
|
24
|
-
})(EButtonSize || {});
|
25
|
-
var EButtonForm = /* @__PURE__ */ ((EButtonForm2) => {
|
26
|
-
EButtonForm2["DefaultButton"] = "default-button";
|
27
|
-
EButtonForm2["RoundButton"] = "round-button";
|
28
|
-
return EButtonForm2;
|
29
|
-
})(EButtonForm || {});
|
30
|
-
export {
|
31
|
-
EButtonForm,
|
32
|
-
EButtonSize,
|
33
|
-
EButtonVariantDefault,
|
34
|
-
EButtonVariantRound
|
35
|
-
};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { EButtonSize, EButtonVariantDefault, EButtonVariantRound, EButtonForm } from './constants';
|
2
|
-
|
3
|
-
type TButtonRoundFormSize = Exclude<EButtonSize, 'xxl'> & Exclude<EButtonSize, 'xl'>;
|
4
|
-
export type TButtonDefaultFormProps = {
|
5
|
-
form?: EButtonForm.DefaultButton;
|
6
|
-
variant?: EButtonVariantDefault | `${EButtonVariantDefault}`;
|
7
|
-
size?: EButtonSize | `${EButtonSize}`;
|
8
|
-
};
|
9
|
-
export type TButtonRoundFormProps = {
|
10
|
-
form?: EButtonForm.RoundButton;
|
11
|
-
variant?: EButtonVariantRound | `${EButtonVariantRound}`;
|
12
|
-
size?: TButtonRoundFormSize | `${TButtonRoundFormSize}`;
|
13
|
-
};
|
14
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
|