fsk-design-system 1.0.12 → 1.0.14

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.
Files changed (148) hide show
  1. package/README.md +95 -95
  2. package/dist/{Alert-DNaF3jet.js → Alert--cYo3w2d.js} +147 -147
  3. package/dist/Avatar-CDi3rNOE.js +335 -0
  4. package/dist/Badge-DnpBFDI6.js +692 -0
  5. package/dist/{Breadcrumb-CdANoxvR.js → Breadcrumb-BjOAKCV9.js} +78 -78
  6. package/dist/Button-CWdwljaq.js +114 -0
  7. package/dist/Card-D5oF4llz.js +121 -0
  8. package/dist/{Carousel-DI8dimyj.js → Carousel-D1e_UmKl.js} +425 -425
  9. package/dist/Cascader.form-DYPu1vbm.js +1207 -0
  10. package/dist/Checkbox.form-Czq4z_EW.js +125 -0
  11. package/dist/{Collapse-Dg3tov_-.js → Collapse-tQArLk0b.js} +171 -171
  12. package/dist/Comment-BQw-4Qfm.js +218 -0
  13. package/dist/ControlWrapper-BgYO-xiK.js +86 -0
  14. package/dist/{CountrySelect-7LVuu2t3.js → CountrySelect-BzJsDgys.js} +44 -44
  15. package/dist/{DatePicker.form-BixW5t-Q.js → DatePicker.form-Cf7tyMlV.js} +1069 -1069
  16. package/dist/{Divider-BJYkXCBJ.js → Divider-BkCZHSVK.js} +35 -35
  17. package/dist/{Dragger.form-sZhmFHDe.js → Dragger.form-B1_bQ3jE.js} +457 -457
  18. package/dist/Drawer-BkC1itIm.js +744 -0
  19. package/dist/Dropdown-BKxkTwpT.js +49 -0
  20. package/dist/{Empty-D08Vpl1S.js → Empty--64XfvuM.js} +1 -1
  21. package/dist/FileButton-CsPsXBAv.js +70 -0
  22. package/dist/Form-BviXLnt9.js +165 -0
  23. package/dist/Grid-B3mJMezP.js +17 -0
  24. package/dist/Header-DuXeKQ4s.js +160 -0
  25. package/dist/{Hint-DAD0Q9QA.js → Hint-BJTwkiak.js} +6 -6
  26. package/dist/Input.form-BVJJWyjJ.js +510 -0
  27. package/dist/InputNumber.form-B3irPAlD.js +1243 -0
  28. package/dist/Layout-CZloCtCb.js +126 -0
  29. package/dist/LinkCard-De6UG-g0.js +108 -0
  30. package/dist/{Modal-CplATICU.js → Modal-Cnp2JORd.js} +283 -283
  31. package/dist/Notification-Hrgh9r1R.js +52 -0
  32. package/dist/Notifications-Bscsub2G.js +44 -0
  33. package/dist/Pagination-zCwNZ1Ff.js +33 -0
  34. package/dist/{Plug-CQqfzzmq.js → Plug-DU1VK_Sq.js} +11 -11
  35. package/dist/Popover-CDbP9smb.js +26 -0
  36. package/dist/{Progress-LdQutlLe.js → Progress-pqZZOuit.js} +12 -12
  37. package/dist/Radio.form-DQVaJBOO.js +145 -0
  38. package/dist/Search.form-C4qt1ion.js +66 -0
  39. package/dist/Select.form-WS8PEo1l.js +135 -0
  40. package/dist/Skeleton-Cf8f-mkn.js +58 -0
  41. package/dist/Support-DZ6q2uZL.js +92 -0
  42. package/dist/Switch.form-QlANKxlQ.js +506 -0
  43. package/dist/{Table-DTneIVIH.js → Table-BCWAp84k.js} +868 -868
  44. package/dist/Tabs-hOePGCTY.js +1939 -0
  45. package/dist/Tag-qjDLM8uv.js +318 -0
  46. package/dist/TextArea.form-8RVw5Cs6.js +83 -0
  47. package/dist/Tooltip-NHncClKj.js +54 -0
  48. package/dist/Upload.form-CvHcfCm_.js +38 -0
  49. package/dist/UserMenu-CFSJ9Bsb.js +129 -0
  50. package/dist/assets/fsk-design-system.css +1 -1
  51. package/dist/components/ActionMenu/index.js +26 -26
  52. package/dist/components/Alert/index.js +1 -1
  53. package/dist/components/Avatar/index.js +1 -1
  54. package/dist/components/Badge/index.js +1 -1
  55. package/dist/components/Breadcrumb/index.js +1 -1
  56. package/dist/components/Button/index.js +1 -1
  57. package/dist/components/Card/LinkCard/index.js +1 -1
  58. package/dist/components/Card/index.js +1 -1
  59. package/dist/components/Carousel/index.js +1 -1
  60. package/dist/components/Cascader/index.js +1 -1
  61. package/dist/components/Checkbox/index.js +1 -1
  62. package/dist/components/Collapse/index.js +1 -1
  63. package/dist/components/Comment/Form/index.js +1 -1
  64. package/dist/components/Comment/index.js +1 -1
  65. package/dist/components/ControlWrapper/index.js +1 -1
  66. package/dist/components/DatePicker/index.js +1 -1
  67. package/dist/components/Divider/index.js +1 -1
  68. package/dist/components/Drawer/index.js +1 -1
  69. package/dist/components/Dropdown/index.js +1 -1
  70. package/dist/components/Empty/index.js +1 -1
  71. package/dist/components/Grid/index.js +1 -1
  72. package/dist/components/Hint/index.js +1 -1
  73. package/dist/components/Input/index.js +1 -1
  74. package/dist/components/InputNumber/index.js +1 -1
  75. package/dist/components/Layout/Header/Notifications/index.js +1 -1
  76. package/dist/components/Layout/Header/Support/index.js +1 -1
  77. package/dist/components/Layout/Header/index.js +1 -1
  78. package/dist/components/Layout/index.js +1 -1
  79. package/dist/components/Menu/Menu.types.d.ts +2 -0
  80. package/dist/components/Menu/hooks/useBuildMenuItems.d.ts +11 -0
  81. package/dist/components/Menu/hooks/useIndeterminateKeys.d.ts +4 -0
  82. package/dist/components/Menu/utils/getAllKeys.d.ts +2 -0
  83. package/dist/components/Menu/utils/getNormalizedLabelText.d.ts +3 -0
  84. package/dist/components/Modal/index.js +1 -1
  85. package/dist/components/Notification/index.js +2 -2
  86. package/dist/components/Pagination/index.js +1 -1
  87. package/dist/components/PhoneInput/CountrySelect/index.js +1 -1
  88. package/dist/components/PhoneInput/index.js +2 -2
  89. package/dist/components/Plug/index.js +1 -1
  90. package/dist/components/Popover/index.js +1 -1
  91. package/dist/components/Progress/index.js +1 -1
  92. package/dist/components/Radio/index.js +1 -1
  93. package/dist/components/Search/index.js +1 -1
  94. package/dist/components/Select/index.js +1 -1
  95. package/dist/components/Skeleton/index.js +1 -1
  96. package/dist/components/Switch/index.js +1 -1
  97. package/dist/components/Table/index.js +1 -1
  98. package/dist/components/Tabs/index.js +1 -1
  99. package/dist/components/Tag/index.js +1 -1
  100. package/dist/components/TextArea/index.js +1 -1
  101. package/dist/components/Tooltip/index.js +1 -1
  102. package/dist/components/Upload/Dragger/index.js +1 -1
  103. package/dist/components/Upload/FileButton/index.js +1 -1
  104. package/dist/components/Upload/index.js +1 -1
  105. package/dist/components/UserMenu/index.js +1 -1
  106. package/dist/components/index.js +40 -40
  107. package/dist/index.js +40 -40
  108. package/dist/{useNotification-gmj6s978.js → useNotification-LD1BRJ8Z.js} +1 -1
  109. package/package.json +1 -1
  110. package/dist/Avatar-ZJMZ33mP.js +0 -335
  111. package/dist/Badge-XL71M8vV.js +0 -692
  112. package/dist/Button-lje25x8J.js +0 -114
  113. package/dist/Card-CQEBMwQf.js +0 -121
  114. package/dist/Cascader.form-F-nJ2QNB.js +0 -1190
  115. package/dist/Checkbox.form-BAQvotGg.js +0 -125
  116. package/dist/Comment-D28NKp8H.js +0 -218
  117. package/dist/ControlWrapper-BxSELWWi.js +0 -86
  118. package/dist/Drawer-B4yaxsYT.js +0 -744
  119. package/dist/Dropdown-CfFJGf2f.js +0 -33
  120. package/dist/Dropdown-s3RzcOyh.js +0 -49
  121. package/dist/FileButton-Dw2BXSgR.js +0 -70
  122. package/dist/Form-kiHV6uYc.js +0 -165
  123. package/dist/Grid-BA0qqtKk.js +0 -17
  124. package/dist/Header-DmwWO2i3.js +0 -160
  125. package/dist/Input.form-i7Xt3Tsc.js +0 -510
  126. package/dist/InputNumber.form-oKUqxfef.js +0 -1243
  127. package/dist/Layout-DujfBhTG.js +0 -126
  128. package/dist/LinkCard-CFRJjuYS.js +0 -108
  129. package/dist/Notification-BQS3X_6g.js +0 -52
  130. package/dist/Notifications-D7vQ1aig.js +0 -44
  131. package/dist/Pagination-D16o4Eba.js +0 -33
  132. package/dist/Popover-DY7IUutv.js +0 -26
  133. package/dist/Radio.form-G9rJwD5T.js +0 -145
  134. package/dist/Search.form-Dpk9qBSh.js +0 -66
  135. package/dist/Select.form-DZbLWQyd.js +0 -135
  136. package/dist/Skeleton-DLoF5WWi.js +0 -58
  137. package/dist/Support-B86nu8LT.js +0 -92
  138. package/dist/Switch.form-B4PujVMU.js +0 -506
  139. package/dist/Tabs-CCAllZ5F.js +0 -1939
  140. package/dist/Tag-DITKtIK3.js +0 -318
  141. package/dist/TextArea.form-THq3IOmM.js +0 -83
  142. package/dist/Tooltip-DLEXa-WS.js +0 -54
  143. package/dist/Upload.form--nkl5KCG.js +0 -38
  144. package/dist/UserMenu-ULi6m6RE.js +0 -129
  145. package/dist/components/Cascader/Dropdown/Dropdown.d.ts +0 -2
  146. package/dist/components/Cascader/Dropdown/Dropdown.types.d.ts +0 -5
  147. package/dist/components/Cascader/Dropdown/index.d.ts +0 -1
  148. package/dist/components/Cascader/Dropdown/index.js +0 -4
package/README.md CHANGED
@@ -1,96 +1,96 @@
1
- # FSK Design System
2
-
3
- Универсальная дизайн-система с поддержкой тем и кастомных UI-компонентов.
4
-
5
- ## 📦 Установка
6
-
7
- ```bash
8
- npm install fsk-design-system
9
- ```
10
-
11
- ## ⚡ Быстрый старт
12
-
13
- 1. **Импортируйте стили дизайн-системы в корневом файле:**
14
-
15
- ```ts
16
- import 'fsk-design-system/styles.css';
17
- ```
18
-
19
- 2. **Оберните приложение в `ThemeProvider`:**
20
-
21
- ```tsx
22
- import { ThemeProvider } from 'fsk-design-system';
23
-
24
- const App = () => (
25
- <ThemeProvider>
26
- {/* Ваш код */}
27
- </ThemeProvider>
28
- );
29
- ```
30
-
31
- 3. **Оберните приложение в `ConfigProvider` для русификации:**
32
-
33
- ```tsx
34
- import ConfigProvider from "antd/es/config-provider"
35
- import ruRU from "antd/locale/ru_RU"
36
-
37
- const App = () => (
38
- <ConfigProvider locale={ruRU}>
39
- {/* Ваш код */}
40
- </ConfigProvider>
41
- );
42
- ```
43
-
44
- ## 🔹 Смена темы через хук `useTheme`
45
-
46
- ```tsx
47
- import { useTheme } from 'fsk-design-system';
48
-
49
- const ThemeSwitcher = () => {
50
- const { changeTheme } = useTheme();
51
-
52
- return (
53
- <button onClick={() => changeTheme('dark')}>
54
- Переключить на тёмную тему
55
- </button>
56
- );
57
- };
58
- ```
59
-
60
- ## 🎨 Доступные темы
61
-
62
- | Название темы | Описание |
63
- |---------------|----------------|
64
- | `light` | Светлая тема (по умолчанию) |
65
- | `dark` | Тёмная тема |
66
-
67
- ## 🧩 Компоненты
68
-
69
- > Полный список компонентов — см. в [документации](https://design-system.k8s-dev.fsk.ru/)
70
-
71
- Пример:
72
-
73
- ```tsx
74
- import { Button } from 'fsk-design-system';
75
-
76
- <Button size="xl" type="main-secondary">Click me</Button>
77
- ```
78
-
79
- ## 📌 Требования
80
-
81
- ```json
82
- "dependencies": {
83
- "@emotion/css": "^11.13.5",
84
- "@emotion/react": "^11.13.3",
85
- "@emotion/styled": "^11.13.0",
86
- "antd": "^5.23.4",
87
- "react": "^18.3.1",
88
- "react-dom": "^18.3.1"
89
- }
90
- ```
91
-
92
- ```bash
93
- npm install @emotion/css@^11.13.5 @emotion/react@^11.13.3 @emotion/styled@^11.13.0 antd@^5.23.4 react@^18.3.1 react-dom@^18.3.1
94
- ```
95
-
1
+ # FSK Design System
2
+
3
+ Универсальная дизайн-система с поддержкой тем и кастомных UI-компонентов.
4
+
5
+ ## 📦 Установка
6
+
7
+ ```bash
8
+ npm install fsk-design-system
9
+ ```
10
+
11
+ ## ⚡ Быстрый старт
12
+
13
+ 1. **Импортируйте стили дизайн-системы в корневом файле:**
14
+
15
+ ```ts
16
+ import 'fsk-design-system/styles.css';
17
+ ```
18
+
19
+ 2. **Оберните приложение в `ThemeProvider`:**
20
+
21
+ ```tsx
22
+ import { ThemeProvider } from 'fsk-design-system';
23
+
24
+ const App = () => (
25
+ <ThemeProvider>
26
+ {/* Ваш код */}
27
+ </ThemeProvider>
28
+ );
29
+ ```
30
+
31
+ 3. **Оберните приложение в `ConfigProvider` для русификации:**
32
+
33
+ ```tsx
34
+ import ConfigProvider from "antd/es/config-provider"
35
+ import ruRU from "antd/locale/ru_RU"
36
+
37
+ const App = () => (
38
+ <ConfigProvider locale={ruRU}>
39
+ {/* Ваш код */}
40
+ </ConfigProvider>
41
+ );
42
+ ```
43
+
44
+ ## 🔹 Смена темы через хук `useTheme`
45
+
46
+ ```tsx
47
+ import { useTheme } from 'fsk-design-system';
48
+
49
+ const ThemeSwitcher = () => {
50
+ const { changeTheme } = useTheme();
51
+
52
+ return (
53
+ <button onClick={() => changeTheme('dark')}>
54
+ Переключить на тёмную тему
55
+ </button>
56
+ );
57
+ };
58
+ ```
59
+
60
+ ## 🎨 Доступные темы
61
+
62
+ | Название темы | Описание |
63
+ |---------------|----------------|
64
+ | `light` | Светлая тема (по умолчанию) |
65
+ | `dark` | Тёмная тема |
66
+
67
+ ## 🧩 Компоненты
68
+
69
+ > Полный список компонентов — см. в [документации](https://design-system.k8s-dev.fsk.ru/)
70
+
71
+ Пример:
72
+
73
+ ```tsx
74
+ import { Button } from 'fsk-design-system';
75
+
76
+ <Button size="xl" type="main-secondary">Click me</Button>
77
+ ```
78
+
79
+ ## 📌 Требования
80
+
81
+ ```json
82
+ "dependencies": {
83
+ "@emotion/css": "^11.13.5",
84
+ "@emotion/react": "^11.13.3",
85
+ "@emotion/styled": "^11.13.0",
86
+ "antd": "^5.23.4",
87
+ "react": "^18.3.1",
88
+ "react-dom": "^18.3.1"
89
+ }
90
+ ```
91
+
92
+ ```bash
93
+ npm install @emotion/css@^11.13.5 @emotion/react@^11.13.3 @emotion/styled@^11.13.0 antd@^5.23.4 react@^18.3.1 react-dom@^18.3.1
94
+ ```
95
+
96
96
  ---