@inceptionbg/iui 2.0.35 → 2.0.36

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 (241) hide show
  1. package/package.json +4 -1
  2. package/idea/GridTable/GridTable.tsx +0 -119
  3. package/idea/GridTable/gridTable.scss +0 -42
  4. package/idea/Menu/Menu.tsx +0 -121
  5. package/idea/Menu/MenuItem.tsx +0 -75
  6. package/idea/Menu/hooks/useMenuControl.ts +0 -13
  7. package/idea/Menu.tsx +0 -133
  8. package/idea/NoAccessInfo.tsx +0 -193
  9. package/idea/Table/Components/Edit/ItemActionsMenu.tsx +0 -85
  10. package/idea/Table/Components/Edit/ItemEditOptionsButtons.tsx +0 -31
  11. package/idea/Table/Components/Edit/TableEditRow.tsx +0 -57
  12. package/idea/Table/Components/FilterItem.tsx +0 -20
  13. package/idea/Table/Components/Header/TableHeader.tsx +0 -46
  14. package/idea/Table/Components/Header/TableHeaderRow.tsx +0 -37
  15. package/idea/Table/Components/Print/CustomTablePrint.tsx +0 -115
  16. package/idea/Table/Components/SetSortList.tsx +0 -30
  17. package/idea/Table/Components/SetTableFilter.tsx +0 -91
  18. package/idea/Table/Components/TableFooter.tsx +0 -137
  19. package/idea/Table/Components/TableOptions.tsx +0 -227
  20. package/idea/Table/Components/Templates/TemplateCreate.tsx +0 -80
  21. package/idea/Table/Components/Templates/TemplateCreateDefault.tsx +0 -45
  22. package/idea/Table/Components/Templates/TemplateList.tsx +0 -167
  23. package/idea/Table/Components/Templates/repo/TemplateRepo.ts +0 -53
  24. package/idea/Table/Table.tsx +0 -528
  25. package/idea/Table/hooks/useDefaultTemplate.ts +0 -20
  26. package/idea/Table/hooks/useTableKeyboard.ts +0 -137
  27. package/idea/Table/hooks/useTableSelect.ts +0 -11
  28. package/rollup.config.js +0 -52
  29. package/src/assets/icons/duotone/faBell.ts +0 -17
  30. package/src/assets/icons/duotone/faCircleUser.ts +0 -17
  31. package/src/assets/icons/regular/faArrowLeft.ts +0 -15
  32. package/src/assets/icons/regular/faArrowRightArrowLeft.ts +0 -15
  33. package/src/assets/icons/regular/faCircleCheck.ts +0 -15
  34. package/src/assets/icons/regular/faCircleExclamation.ts +0 -15
  35. package/src/assets/icons/regular/faCircleInfo.ts +0 -15
  36. package/src/assets/icons/regular/faFileArrowDown.ts +0 -15
  37. package/src/assets/icons/regular/faFilterCircleXmark.ts +0 -15
  38. package/src/assets/icons/regular/faTriangleExclamation.ts +0 -15
  39. package/src/assets/icons/solid/faAngleLeft.ts +0 -15
  40. package/src/assets/icons/solid/faAngleRight.ts +0 -15
  41. package/src/assets/icons/solid/faArrowDownWideShort.ts +0 -15
  42. package/src/assets/icons/solid/faCaretDown.ts +0 -15
  43. package/src/assets/icons/solid/faCheck.ts +0 -15
  44. package/src/assets/icons/solid/faEllipsisVertical.ts +0 -15
  45. package/src/assets/icons/solid/faEnvelopeDot.ts +0 -15
  46. package/src/assets/icons/solid/faFilter.ts +0 -15
  47. package/src/assets/icons/solid/faFloppyDisk.ts +0 -15
  48. package/src/assets/icons/solid/faGripDotsVertical.ts +0 -15
  49. package/src/assets/icons/solid/faListUl.ts +0 -15
  50. package/src/assets/icons/solid/faMinus.ts +0 -15
  51. package/src/assets/icons/solid/faPlus.ts +0 -15
  52. package/src/assets/icons/solid/faPrint.ts +0 -15
  53. package/src/assets/icons/solid/faRotateRight.ts +0 -15
  54. package/src/assets/icons/solid/faXmark.ts +0 -15
  55. package/src/assets/images/logo/inception.svg +0 -22
  56. package/src/assets/images/logo/mts.svg +0 -5703
  57. package/src/assets/images/logo/paperless.svg +0 -21
  58. package/src/assets/images/logo/pismonosa.png +0 -0
  59. package/src/assets/images/not-found.svg +0 -19
  60. package/src/components/Accordions/Accordions.tsx +0 -74
  61. package/src/components/Alert/Alert.tsx +0 -31
  62. package/src/components/Badge/DotBadge.tsx +0 -16
  63. package/src/components/Badge/NotificationBadge.tsx +0 -29
  64. package/src/components/Badge/PillBadge.tsx +0 -13
  65. package/src/components/Button/Button.tsx +0 -56
  66. package/src/components/Button/IconButton.tsx +0 -51
  67. package/src/components/Button/SplitButton.tsx +0 -91
  68. package/src/components/Dashboard/Dashboard.tsx +0 -9
  69. package/src/components/Dashboard/DashboardWidget.tsx +0 -44
  70. package/src/components/Dashboard/FastLinksWidget/FastLinksWidget.tsx +0 -36
  71. package/src/components/Dialog/Dialog.tsx +0 -178
  72. package/src/components/Dialog/components/DialogFooter.tsx +0 -100
  73. package/src/components/Header/Components/EnvBadge.tsx +0 -17
  74. package/src/components/Header/Components/ModuleSelect.tsx +0 -68
  75. package/src/components/Header/Components/Notifications.tsx +0 -204
  76. package/src/components/Header/Components/UserMenu.tsx +0 -52
  77. package/src/components/Header/Header.tsx +0 -45
  78. package/src/components/Helper/Collapse.tsx +0 -53
  79. package/src/components/Inputs/Checkbox.tsx +0 -53
  80. package/src/components/Inputs/CurrencyInput.tsx +0 -124
  81. package/src/components/Inputs/DateInput/DateInput.tsx +0 -184
  82. package/src/components/Inputs/DateInput/components/DatePartInput.tsx +0 -159
  83. package/src/components/Inputs/InputWrapper.tsx +0 -95
  84. package/src/components/Inputs/NumberInput.tsx +0 -86
  85. package/src/components/Inputs/PasswordInput.tsx +0 -39
  86. package/src/components/Inputs/PhoneInput/PhoneInput.tsx +0 -108
  87. package/src/components/Inputs/PhoneInput/utils/countryCode.ts +0 -20
  88. package/src/components/Inputs/Radio.tsx +0 -59
  89. package/src/components/Inputs/RadioGroup.tsx +0 -48
  90. package/src/components/Inputs/RadioLarge.tsx +0 -39
  91. package/src/components/Inputs/SearchInput.tsx +0 -46
  92. package/src/components/Inputs/Selects/Select.tsx +0 -17
  93. package/src/components/Inputs/Selects/components/CustomSelectComponents.tsx +0 -19
  94. package/src/components/Inputs/Selects/components/SelectWrapper.tsx +0 -118
  95. package/src/components/Inputs/Selects/utils/selectStyles.ts +0 -101
  96. package/src/components/Inputs/TextAreaInput.tsx +0 -68
  97. package/src/components/Inputs/TextInput.tsx +0 -100
  98. package/src/components/Inputs/TimeInput/TimeInput.tsx +0 -81
  99. package/src/components/List/List.tsx +0 -21
  100. package/src/components/List/ListItem.tsx +0 -70
  101. package/src/components/Loader/Loader.tsx +0 -66
  102. package/src/components/Loader/ProgressBar.tsx +0 -41
  103. package/src/components/Menu/Menu.tsx +0 -81
  104. package/src/components/Menu/MenuItem.tsx +0 -46
  105. package/src/components/Menu/NewMenu.tsx +0 -63
  106. package/src/components/Menu/hooks/useMenuPosition.tsx +0 -116
  107. package/src/components/PageComponents/ScrollableContent.tsx +0 -11
  108. package/src/components/Pullover/Pullover.tsx +0 -197
  109. package/src/components/Router/Router.tsx +0 -52
  110. package/src/components/Sidebar/AddButton.tsx +0 -22
  111. package/src/components/Sidebar/Sidebar.tsx +0 -85
  112. package/src/components/Sidebar/SidebarItem.tsx +0 -84
  113. package/src/components/Sidebar/types/ISidebar.ts +0 -28
  114. package/src/components/Table/Table.tsx +0 -258
  115. package/src/components/Table/components/columns/ColumnsList.tsx +0 -60
  116. package/src/components/Table/components/columns/TableColumnsEdit.tsx +0 -114
  117. package/src/components/Table/components/edit/TableEditRow.tsx +0 -78
  118. package/src/components/Table/components/filters/FilterItem.tsx +0 -15
  119. package/src/components/Table/components/filters/TableFilters.tsx +0 -126
  120. package/src/components/Table/components/footer/TableFooter.tsx +0 -126
  121. package/src/components/Table/components/header/TableHeader.tsx +0 -40
  122. package/src/components/Table/components/header/TableHeaderRow.tsx +0 -57
  123. package/src/components/Table/components/items/TableItemActions.tsx +0 -78
  124. package/src/components/Table/components/print/TablePrint.tsx +0 -200
  125. package/src/components/Table/components/select/TableSelect.tsx +0 -50
  126. package/src/components/Table/components/sort/TableSort.tsx +0 -75
  127. package/src/components/Table/components/templates/CreateTemplateDialog.tsx +0 -58
  128. package/src/components/Table/components/templates/TableTemplates.tsx +0 -65
  129. package/src/components/Table/components/templates/TemplatesPullover.tsx +0 -88
  130. package/src/components/Table/contexts/TableContext.tsx +0 -117
  131. package/src/components/Table/hooks/localHooks/useLocalTableColumns.tsx +0 -70
  132. package/src/components/Table/hooks/localHooks/useLocalTableData.tsx +0 -82
  133. package/src/components/Table/hooks/localHooks/useLocalTableKeyboard.ts +0 -175
  134. package/src/components/Table/hooks/localHooks/useLocalTablePagination.ts +0 -12
  135. package/src/components/Table/hooks/useTableColumns.ts +0 -34
  136. package/src/components/Table/hooks/useTableEdit.tsx +0 -140
  137. package/src/components/Table/hooks/useTableFilterFields.tsx +0 -150
  138. package/src/components/Table/hooks/useTablePagination.ts +0 -19
  139. package/src/components/Table/hooks/useTablePrint.ts +0 -83
  140. package/src/components/Table/hooks/useTableSearch.ts +0 -31
  141. package/src/components/Table/hooks/useTableSelect.ts +0 -19
  142. package/src/components/Table/hooks/useTableSort.ts +0 -8
  143. package/src/components/Tabs/Tabs.tsx +0 -68
  144. package/src/components/Tooltip/Tooltip.tsx +0 -191
  145. package/src/components/Tree/Tree.tsx +0 -22
  146. package/src/components/Tree/TreeItem.tsx +0 -57
  147. package/src/components/Wrappers/AppLayout.tsx +0 -17
  148. package/src/components/Wrappers/ConditionalWrapper.tsx +0 -10
  149. package/src/components/Wrappers/FormWrapper.tsx +0 -84
  150. package/src/components/Wrappers/PageLayout.tsx +0 -168
  151. package/src/hooks/useBackgroundClose.ts +0 -19
  152. package/src/hooks/useGetFocusableElements.ts +0 -43
  153. package/src/hooks/useIsMenuOpen.ts +0 -11
  154. package/src/hooks/useLocalPopoverControl.ts +0 -63
  155. package/src/hooks/useOnEsc.ts +0 -14
  156. package/src/hooks/usePopupControl.ts +0 -22
  157. package/src/hooks/useZendesk.ts +0 -22
  158. package/src/index.ts +0 -387
  159. package/src/pages/NoAccessPage.tsx +0 -27
  160. package/src/pages/NotFoundPage.tsx +0 -26
  161. package/src/styles/App.scss +0 -47
  162. package/src/styles/common/_animations.scss +0 -58
  163. package/src/styles/common/_typography.scss +0 -91
  164. package/src/styles/common/helpers/_base.scss +0 -55
  165. package/src/styles/common/helpers/_color.scss +0 -10
  166. package/src/styles/common/helpers/_display.scss +0 -85
  167. package/src/styles/common/helpers/_size.scss +0 -25
  168. package/src/styles/common/maps/_align.scss +0 -21
  169. package/src/styles/common/maps/_buttonMaps.scss +0 -42
  170. package/src/styles/common/maps/_info-types.scss +0 -1
  171. package/src/styles/common/maps/_spacing.scss +0 -78
  172. package/src/styles/common/maps/_text.scss +0 -14
  173. package/src/styles/components/_accordions.scss +0 -51
  174. package/src/styles/components/_alert.scss +0 -23
  175. package/src/styles/components/_badge.scss +0 -84
  176. package/src/styles/components/_button.scss +0 -99
  177. package/src/styles/components/_buttonSplit.scss +0 -74
  178. package/src/styles/components/_card.scss +0 -24
  179. package/src/styles/components/_dialog.scss +0 -119
  180. package/src/styles/components/_form.scss +0 -8
  181. package/src/styles/components/_header.scss +0 -157
  182. package/src/styles/components/_input.scss +0 -167
  183. package/src/styles/components/_inputCheckbox.scss +0 -48
  184. package/src/styles/components/_inputDateTime.scss +0 -161
  185. package/src/styles/components/_inputRadio.scss +0 -83
  186. package/src/styles/components/_inputSelect.scss +0 -8
  187. package/src/styles/components/_list.scss +0 -58
  188. package/src/styles/components/_loader.scss +0 -55
  189. package/src/styles/components/_menu-v2.scss +0 -67
  190. package/src/styles/components/_menu.scss +0 -62
  191. package/src/styles/components/_notifications.scss +0 -71
  192. package/src/styles/components/_page.scss +0 -84
  193. package/src/styles/components/_portal.scss +0 -8
  194. package/src/styles/components/_print.scss +0 -77
  195. package/src/styles/components/_progressBar.scss +0 -83
  196. package/src/styles/components/_pullover.scss +0 -95
  197. package/src/styles/components/_scrollbar.scss +0 -18
  198. package/src/styles/components/_sidebar.scss +0 -204
  199. package/src/styles/components/_smallComponents.scss +0 -23
  200. package/src/styles/components/_table.scss +0 -340
  201. package/src/styles/components/_tabs.scss +0 -33
  202. package/src/styles/components/_tooltip.scss +0 -48
  203. package/src/styles/components/_tree.scss +0 -21
  204. package/src/styles/components/_widget.scss +0 -90
  205. package/src/styles/pages/_fullScreenPage.scss +0 -64
  206. package/src/styles/variables/_bp.scss +0 -6
  207. package/src/styles/variables/_variables.scss +0 -142
  208. package/src/types/Base/custom.d.ts +0 -9
  209. package/src/types/IBasic.ts +0 -32
  210. package/src/types/ICountryCode.ts +0 -5
  211. package/src/types/IError.ts +0 -5
  212. package/src/types/IHeader.ts +0 -40
  213. package/src/types/IInfo.ts +0 -1
  214. package/src/types/IKeyboard.ts +0 -33
  215. package/src/types/IMenu.ts +0 -19
  216. package/src/types/INotifications.ts +0 -15
  217. package/src/types/IPopup.ts +0 -17
  218. package/src/types/IRouter.ts +0 -6
  219. package/src/types/ISelect.ts +0 -54
  220. package/src/types/ITab.ts +0 -10
  221. package/src/types/ITable.ts +0 -291
  222. package/src/types/ITree.ts +0 -6
  223. package/src/utils/InputPatternValidation.ts +0 -12
  224. package/src/utils/dateUtils.ts +0 -32
  225. package/src/utils/fileUtils.ts +0 -177
  226. package/src/utils/i18n/i18nIUICyrilic.ts +0 -119
  227. package/src/utils/i18n/i18nIUILatin.ts +0 -120
  228. package/src/utils/i18n/i18nIUIMe.ts +0 -118
  229. package/src/utils/icons.ts +0 -13
  230. package/src/utils/localStorageHelper.ts +0 -24
  231. package/src/utils/logoUtils.ts +0 -7
  232. package/src/utils/numberUtils.ts +0 -21
  233. package/src/utils/objectUtils.ts +0 -114
  234. package/src/utils/popupUtils.ts +0 -82
  235. package/src/utils/rootDir.ts +0 -1
  236. package/src/utils/stringUtils.ts +0 -18
  237. package/src/utils/tableUtils.ts +0 -130
  238. package/src/utils/toasts.ts +0 -6
  239. package/src/utils/urlUtils.ts +0 -4
  240. package/tsconfig.icons.json +0 -5
  241. package/tsconfig.json +0 -22
@@ -1,48 +0,0 @@
1
- $tooltip-bg: var(--neutral-700);
2
-
3
- .tooltip-container {
4
- position: fixed;
5
- border-radius: 8px;
6
- background: $tooltip-bg;
7
- color: var(--text-inverse);
8
- font-size: 12px;
9
- font-weight: bold;
10
- padding: 8px 16px;
11
- text-align: center;
12
- z-index: 1001;
13
- transition: 0.3s opacity;
14
- &:not(.visible) {
15
- visibility: hidden;
16
- opacity: 0;
17
- }
18
- }
19
- .tooltip {
20
- position: relative;
21
- height: 100%;
22
- white-space: pre-line;
23
- .arrow {
24
- position: absolute;
25
- border: 8px solid $tooltip-bg;
26
- z-index: 1001;
27
- &.top {
28
- top: calc(100% + 8px);
29
- left: calc(50% - 8px);
30
- border-color: $tooltip-bg transparent transparent transparent;
31
- }
32
- &.bottom {
33
- bottom: calc(100% + 8px);
34
- left: calc(50% - 8px);
35
- border-color: transparent transparent $tooltip-bg transparent;
36
- }
37
- &.left {
38
- top: calc(50% - 8px);
39
- left: calc(100% + 16px);
40
- border-color: transparent transparent transparent $tooltip-bg;
41
- }
42
- &.right {
43
- top: calc(50% - 8px);
44
- right: calc(100% + 16px);
45
- border-color: transparent $tooltip-bg transparent transparent;
46
- }
47
- }
48
- }
@@ -1,21 +0,0 @@
1
- .tree-item {
2
- min-height: 28px;
3
- padding: 4px 0;
4
- .extendable-icon {
5
- width: 28px;
6
- .rotate {
7
- transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1) all;
8
- &.rotate90 {
9
- transform: rotate(90deg);
10
- }
11
- }
12
- }
13
- .tree-item-name {
14
- padding: 4px;
15
- &:hover,
16
- &.active {
17
- background-color: var(--primary-o25);
18
- border-radius: 4px;
19
- }
20
- }
21
- }
@@ -1,90 +0,0 @@
1
- .widget-container {
2
- display: grid;
3
- grid-template-columns: 1fr 1fr 1fr 1fr;
4
- grid-auto-flow: dense;
5
- gap: 60px;
6
- .grid-span2 {
7
- grid-column: span 2;
8
- }
9
- .grid-span3 {
10
- grid-column: span 3;
11
- }
12
- .grid-span4 {
13
- grid-column: span 4;
14
- }
15
- @media (min-width: 1500px) and (max-width: 1800px) {
16
- grid-template-columns: 1fr 1fr 1fr;
17
- .grid-span4 {
18
- grid-column: span 3;
19
- }
20
- }
21
- @media (min-width: 1150px) and (max-width: 1499px) {
22
- grid-template-columns: 1fr 1fr;
23
- .grid-span3,
24
- .grid-span4 {
25
- grid-column: span 2;
26
- }
27
- }
28
- @media (max-width: 1149px) {
29
- display: flex;
30
- flex-direction: column;
31
- gap: 30px;
32
- }
33
- }
34
-
35
- .dashboard-widget {
36
- background: var(--background);
37
- box-shadow: var(--container-shadow);
38
- padding: 30px;
39
- color: #000;
40
- border-radius: var(--container-radius);
41
- width: inherit;
42
- h1 {
43
- margin: 15px 0;
44
- }
45
- .widget-icon {
46
- display: flex;
47
- justify-content: center;
48
- align-items: center;
49
- background-color: var(--primary-o10);
50
- color: var(--primary);
51
- height: 48px;
52
- width: 48px;
53
- border-radius: 10px;
54
- svg {
55
- height: 22px;
56
- width: 22px;
57
- }
58
- }
59
- &.warning {
60
- border: 10px solid var(--warning);
61
- padding: 20px;
62
- .widget-icon {
63
- color: var(--danger);
64
- }
65
- }
66
- &.info {
67
- border: 10px solid var(--primary);
68
- padding: 20px;
69
- }
70
- }
71
-
72
- .short-links-widget {
73
- font-size: var(--fs-m);
74
- ul {
75
- list-style-type: none;
76
- margin: 0;
77
- padding: 0;
78
- display: grid;
79
- li {
80
- margin: 0;
81
- padding: 15px 5px;
82
- &:hover {
83
- background-color: rgba(0, 0, 0, 0.05);
84
- }
85
- &:not(:last-child) {
86
- border-bottom: 1px solid silver;
87
- }
88
- }
89
- }
90
- }
@@ -1,64 +0,0 @@
1
- @use '../variables/bp';
2
-
3
- #content {
4
- grid-area: content;
5
- align-self: center;
6
- display: flex;
7
- flex-direction: column;
8
- gap: 24px;
9
- }
10
- #img {
11
- grid-area: img;
12
- align-self: flex-end;
13
- width: 100%;
14
- }
15
- #actions {
16
- grid-area: actions;
17
- align-self: flex-start;
18
- padding-top: 24px;
19
- }
20
-
21
- .full-screen-page {
22
- height: 100dvh;
23
- width: 100dvw;
24
- display: grid;
25
- grid-template-columns: 1fr 1fr;
26
- grid-template-areas:
27
- 'content img'
28
- 'actions .';
29
- align-items: center;
30
- align-content: center;
31
- gap: 32px;
32
- padding: 64px 128px;
33
- }
34
- .img-403 {
35
- font-size: 200px;
36
- color: var(--danger);
37
- text-align: center;
38
- font-weight: 700;
39
- }
40
-
41
- @media #{bp.$mobile} {
42
- .full-screen-page {
43
- grid-template-columns: 1fr;
44
- grid-template-rows: 1fr 1fr auto;
45
- grid-template-areas:
46
- 'img'
47
- 'content'
48
- 'actions';
49
- padding: 16px;
50
- }
51
- #content {
52
- align-self: flex-start;
53
- gap: 16px;
54
- }
55
- #actions {
56
- align-self: flex-end;
57
- }
58
- .iui-btn {
59
- width: 100%;
60
- }
61
- .img-403 {
62
- font-size: 150px;
63
- }
64
- }
@@ -1,6 +0,0 @@
1
- $mobile: 'screen and (max-width: 500px)';
2
- $not-mobile: 'screen and (min-width: 501px)';
3
- $mobileTablet: 'screen and (max-width: 1023px)';
4
- $desktop: 'screen and (min-width: 1024px)';
5
- $portrait: 'screen and (orientation: portrait)';
6
- $landscape: 'screen and (orientation: landscape)';
@@ -1,142 +0,0 @@
1
- :root {
2
- /////// COLORS ////////
3
- --primary-100: #e7f2f9;
4
- --primary-200: #c2deed;
5
- --primary-300: #86c0df;
6
- --primary-400: #1375aa;
7
- --primary-500: #0f5f8a;
8
- --primary-600: #0b4b6f;
9
- --primary-700: #093858;
10
-
11
- --neutral-100: #edf0f2;
12
- --neutral-200: #e3e8ee;
13
- --neutral-300: #bac5ce;
14
- --neutral-400: #8f9aa8;
15
- --neutral-500: #667085;
16
- --neutral-600: #545f78;
17
- --neutral-700: #3a4764;
18
- // --neutral-800: #253050;
19
- --neutral-t: rgba(16, 24, 40, 0.5);
20
-
21
- --info-100: #e0ecfc;
22
- --info-200: #9fcaff;
23
- --info-300: #6babf7;
24
- --info-400: #448fe6;
25
- --info-500: #2f7bd0;
26
- --info-600: #2261a7;
27
- --info-700: #13457c;
28
- // --info-800: #143962;
29
-
30
- --success-100: #d3f1da;
31
- --success-200: #b9e2c8;
32
- --success-300: #44c379;
33
- --success-400: #33a865;
34
- --success-500: #2f8653;
35
- --success-600: #2d7248;
36
- --success-700: #28593a;
37
- // --success-800: #223e2b;
38
-
39
- --warning-100: #fef0c7;
40
- --warning-200: #e8b275;
41
- --warning-300: #e79d47;
42
- --warning-400: #ee9528;
43
- --warning-500: #d17f14;
44
- --warning-600: #b17a42;
45
- --warning-700: #845d30;
46
- // --warning-800: #694a26;
47
-
48
- --danger-100: #fceae8;
49
- --danger-200: #f7d7d4;
50
- --danger-300: #dc776f;
51
- --danger-400: #de4f45;
52
- --danger-500: #d92d20;
53
- --danger-600: #c5261b;
54
- --danger-700: #a11b12;
55
- // --danger-800: #83120c;
56
-
57
- --primary: var(--primary-500);
58
- --neutral: var(--neutral-500);
59
- --info: var(--info-500);
60
- --success: var(--success-500);
61
- --warning: var(--warning-500);
62
- --danger: var(--danger-500);
63
-
64
- --white: #ffffff;
65
- --text: var(--neutral-700);
66
- --text-inverse: var(--white);
67
- --text-disabled: var(--neutral-400);
68
- --background: var(--white);
69
- --background-disabled: var(--neutral-100);
70
- --neutral-hover: var(--neutral-200);
71
- --border-color: var(--neutral-300);
72
-
73
- --link: #126c88;
74
- --link-alt: #004459;
75
-
76
- /////// SIZES ////////
77
- // --fs-xs: 10px;
78
- // --fs-s: 12px;
79
- --fs-m: 14px;
80
- // --fs-l: 16px;
81
-
82
- /////// OTHER ////////
83
- --header-height: 60px;
84
- --border: 1px solid var(--border-color);
85
- --border-light: 1px solid var(--neutral-200);
86
- --sidebar-width: 260px;
87
- --sidebar-collapsed-width: 54px;
88
-
89
- --container-radius: 25px;
90
- --container-radius-bottom: 0 0 25px 25px;
91
- --container-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
92
- --deep-shadow:
93
- 0px 5px 5px -3px rgb(0 0 0 / 20%), 0px 8px 10px 1px rgba(0, 0, 0, 0.14),
94
- 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
95
- }
96
-
97
- [data-theme='MTS'] {
98
- --primary-100: hsl(351, 77%, 95%);
99
- --primary-200: hsl(351, 85%, 90%);
100
- --primary-300: hsl(351, 71%, 75%);
101
- --primary-400: hsl(351, 80%, 65%);
102
- --primary-500: hsl(351, 85%, 52%);
103
- --primary-600: hsl(351, 85%, 44%);
104
- --primary-700: hsl(351, 85%, 35%);
105
-
106
- --neutral-100: hsl(351, 0%, 94%);
107
- --neutral-200: hsl(351, 0%, 91%);
108
- --neutral-300: hsl(351, 0%, 77%);
109
- --neutral-400: hsl(351, 0%, 61%);
110
- --neutral-500: hsl(351, 0%, 46%);
111
- --neutral-600: hsl(351, 0%, 40%);
112
- --neutral-700: hsl(351, 0%, 31%);
113
- --neutral-t: rgba(16, 24, 40, 0.5);
114
-
115
- // --danger-100: #fceae8;
116
- // --danger-200: #f7d7d4;
117
- // --danger-300: #dc776f;
118
- // --danger-400: #de4f45;
119
- // --danger-500: #d92d20;
120
- // --danger-600: #c5261b;
121
- // --danger-700: #a11b12;
122
-
123
- --primary: var(--primary-500);
124
- --neutral: var(--neutral-500);
125
- --danger: var(--danger-500);
126
-
127
- --text: var(--neutral-700);
128
- --text-disabled: var(--neutral-400);
129
- --background-disabled: var(--neutral-100);
130
- --neutral-hover: var(--neutral-200);
131
- --border-color: var(--neutral-200);
132
-
133
- --secondary: #ff9500;
134
- }
135
- [data-theme='PPL'] {
136
- --primary-rgb: 0, 144, 223;
137
- // --primary: rgb(var(--primary-rgb));
138
- // --primary-o10: rgba(var(--primary-rgb), 0.1);
139
- // --primary-o25: rgba(var(--primary-rgb), 0.25);
140
- --primary-light: #309dbf;
141
- --primary-dark: #004459;
142
- }
@@ -1,9 +0,0 @@
1
- declare module '*.png' {
2
- const value: string;
3
- export = value;
4
- }
5
-
6
- declare module '*.svg' {
7
- const value: string;
8
- export = value;
9
- }
@@ -1,32 +0,0 @@
1
- export type DeepPartial<T> =
2
- T extends Array<infer U>
3
- ? Array<DeepPartial<U>>
4
- : T extends object
5
- ? { [P in keyof T]?: DeepPartial<T[P]> }
6
- : T;
7
-
8
- export interface IAnyObject {
9
- [id: string]: any;
10
- }
11
-
12
- export interface IStringObject {
13
- [id: string]: string;
14
- }
15
-
16
- export interface IBooleanObject {
17
- [id: string]: boolean;
18
- }
19
-
20
- export interface ISimpleObject {
21
- uuid: string;
22
- name: string;
23
- }
24
-
25
- export interface ISimpleObjectWithCode extends ISimpleObject {
26
- code: string;
27
- }
28
-
29
- export interface IValueLabel {
30
- value: any;
31
- label: string;
32
- }
@@ -1,5 +0,0 @@
1
- export interface ICountryCode {
2
- name: string;
3
- code: string;
4
- phonePrefix: string;
5
- }
@@ -1,5 +0,0 @@
1
- export interface IError {
2
- errorMessage: string;
3
- errorCode?: string;
4
- values?: Record<string, string>;
5
- }
@@ -1,40 +0,0 @@
1
- import type { IconDefinition, RotateProp } from '@fortawesome/fontawesome-svg-core';
2
- import type { FC } from 'react';
3
- import type { IButtonColor } from '../components/Button/Button';
4
- import type { IMenuItem } from './IMenu';
5
- import type { IPopupControl } from './IPopup';
6
-
7
- export interface IHeaderAction {
8
- label: string;
9
- icon?: IconDefinition;
10
- iconRotation?: RotateProp;
11
- to?: string;
12
- onClick?: () => void;
13
- solid?: boolean;
14
- color?: IButtonColor;
15
- disabled?: boolean;
16
- hidden?: boolean;
17
- }
18
-
19
- export type IHeaderUserMenuProps = {
20
- isOpen: boolean;
21
- setIsOpen: (isOpen: boolean) => void;
22
- userName?: string;
23
- organizationName?: string;
24
- menuItems: IMenuItem[];
25
- inviteCount?: number;
26
- controls: {
27
- myAccountControl: IPopupControl;
28
- changeOrgControl: IPopupControl;
29
- orgInvitesControl: IPopupControl;
30
- };
31
- refetchOrganizationInvites?: () => void;
32
- HeaderUserMenuDialogs: FC<{
33
- controls: {
34
- myAccountControl: IPopupControl;
35
- changeOrgControl: IPopupControl;
36
- orgInvitesControl: IPopupControl;
37
- };
38
- refetchOrganizationInvites?: () => void;
39
- }>;
40
- };
@@ -1 +0,0 @@
1
- export type IInfoType = 'success' | 'info' | 'warning' | 'danger';
@@ -1,33 +0,0 @@
1
- import type { ITableDataItem } from './ITable';
2
-
3
- export interface IKeyboardAction {
4
- code: string;
5
- onAction: () => void;
6
- ctrl?: boolean;
7
- shift?: boolean;
8
- normalizedKey?: boolean;
9
- onBulkAction?: (itemUuids: string[]) => void;
10
- disabled?: boolean;
11
- }
12
-
13
- export interface ITableKeyboardActionsBase {
14
- moveDisabled?: boolean;
15
- editDisabled?: boolean;
16
- additional?: (props: {
17
- focusedRow: ITableDataItem | null;
18
- isEditing: boolean;
19
- isAdding: boolean;
20
- }) => IKeyboardAction[];
21
- }
22
- export interface ITableKeyboardActionsProp extends ITableKeyboardActionsBase {
23
- add?: {
24
- isAdding: boolean;
25
- setIsAdding: (item: boolean) => void;
26
- enabled: boolean;
27
- };
28
- edit?: {
29
- item: any | null;
30
- setItem: (item: any | null) => void;
31
- enabled: boolean;
32
- };
33
- }
@@ -1,19 +0,0 @@
1
- import type { IconDefinition, RotateProp } from '@fortawesome/fontawesome-svg-core';
2
- import type { MouseEventHandler } from 'react';
3
-
4
- export type IMenuPlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
5
-
6
- export interface IMenuItem {
7
- label: string;
8
- icon?: IconDefinition;
9
- iconRotation?: RotateProp;
10
- onClick?: MouseEventHandler<HTMLDivElement>;
11
- to?: string;
12
- badge?: number;
13
- active?: boolean;
14
- disabled?: boolean;
15
- hidden?: boolean;
16
- withDevider?: boolean;
17
- keepOpen?: boolean;
18
- className?: string;
19
- }
@@ -1,15 +0,0 @@
1
- export interface INotification {
2
- uuid: string;
3
- type: INotificationType;
4
- values?: {
5
- key: string;
6
- value: string;
7
- url?: string;
8
- format?: 'TRANSLATE' | 'DATE' | 'DATE_TIME';
9
- }[];
10
- seen: boolean;
11
- event: string;
12
- organization?: string;
13
- createdAt: string;
14
- }
15
- export type INotificationType = 'WEB' | 'EMAIL';
@@ -1,17 +0,0 @@
1
- import type { RefObject } from 'react';
2
-
3
- export interface IPopupControlRef {
4
- onOpen: () => void;
5
- onClose: () => void;
6
- }
7
-
8
- export interface ILocalPopupControl {
9
- controlRef: RefObject<IPopupControlRef | null>;
10
- isOpen: boolean;
11
- setIsOpen: (isOpen: boolean) => void;
12
- }
13
- export interface IPopupControl {
14
- control: ILocalPopupControl;
15
- onOpen: () => void;
16
- onClose: () => void;
17
- }
@@ -1,6 +0,0 @@
1
- import type { ReactElement } from 'react';
2
-
3
- export interface IRoute {
4
- path: string;
5
- element: ReactElement;
6
- }
@@ -1,54 +0,0 @@
1
- import type { Ref } from 'react';
2
- import type { IValueLabel } from './IBasic';
3
-
4
- export interface ISelectData extends IValueLabel {
5
- disabled?: boolean;
6
- [id: string]: any;
7
- }
8
-
9
- interface BaseSelectProps {
10
- variant: 'basic' | 'async' | 'async-creatable';
11
- label?: string;
12
- value?: any;
13
- isMulti?: boolean;
14
- onChange: (value: any) => void;
15
- required?: boolean;
16
- disabled?: boolean;
17
- placeholder?: string;
18
- helperText?: string;
19
- errorText?: string;
20
- error?: boolean;
21
- size?: 's' | 'm';
22
- className?: string;
23
- minWidth?: number;
24
- menuWidth?: 'fit-content' | 'max-content' | number;
25
- autoFocus?: boolean;
26
- isClearable?: boolean;
27
- isOpen?: boolean;
28
- onMenuOpen?: () => void;
29
- onMenuClose?: () => void;
30
- openDirection?: 'top' | 'bottom' | 'auto';
31
- closeMenuOnSelect?: boolean;
32
- noOptionsMessage?: string;
33
- formatOptionLabel?: (value: any) => any;
34
- ref?: Ref<HTMLInputElement>;
35
- }
36
-
37
- export interface BasicSelectProps extends BaseSelectProps {
38
- variant: 'basic';
39
- options: ISelectData[];
40
- }
41
-
42
- export interface AsyncSelectProps extends BaseSelectProps {
43
- variant: 'async';
44
- loadOptions: any;
45
- defaultData?: ISelectData[];
46
- refresh?: any[];
47
- }
48
-
49
- export interface CreatableSelectProps extends BaseSelectProps {
50
- variant: 'async-creatable';
51
- loadOptions: any;
52
- onCreate: (inputValue: string) => void;
53
- defaultData?: ISelectData[];
54
- }
package/src/types/ITab.ts DELETED
@@ -1,10 +0,0 @@
1
- import type { ReactNode } from 'react';
2
-
3
- export interface ITab {
4
- value: string;
5
- label: string;
6
- icon?: any;
7
- component: ReactNode;
8
- disabled?: boolean;
9
- hidden?: boolean;
10
- }