@inceptionbg/iui 2.0.5 → 2.0.7

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 (257) hide show
  1. package/dist/{NoAccessPage-C6nBt-PN.js → NoAccessPage-BozT_Suz.js} +2 -2
  2. package/dist/{NoAccessPage-C6nBt-PN.js.map → NoAccessPage-BozT_Suz.js.map} +1 -1
  3. package/dist/{NotFoundPage-DatmJOrr.js → NotFoundPage-WWiekDef.js} +2 -2
  4. package/dist/{NotFoundPage-DatmJOrr.js.map → NotFoundPage-WWiekDef.js.map} +1 -1
  5. package/dist/icons/index.d.ts +43 -0
  6. package/dist/icons/index.js +1 -0
  7. package/dist/index.d.ts +32 -20
  8. package/dist/index.js +1 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/iui.css +1 -1
  11. package/idea/Menu/Menu.tsx +119 -0
  12. package/idea/Menu/MenuItem.tsx +74 -0
  13. package/idea/Menu/hooks/useMenuControl.ts +13 -0
  14. package/idea/Menu.tsx +132 -0
  15. package/idea/NoAccessInfo.tsx +193 -0
  16. package/idea/Notifications.tsx +245 -0
  17. package/idea/Table2/Components/Columns/ColumnsList.tsx +56 -0
  18. package/idea/Table2/Components/Columns/SetColumnsList.tsx +107 -0
  19. package/idea/Table2/Components/Edit/ItemActionsMenu.tsx +87 -0
  20. package/idea/Table2/Components/Edit/ItemEditOptionsButtons.tsx +32 -0
  21. package/idea/Table2/Components/Edit/TableEditRow.tsx +56 -0
  22. package/idea/Table2/Components/FilterItem.tsx +20 -0
  23. package/idea/Table2/Components/Header/TableHeader.tsx +35 -0
  24. package/idea/Table2/Components/Header/TableHeaderRow.tsx +37 -0
  25. package/idea/Table2/Components/Print/CustomTablePrint.tsx +119 -0
  26. package/idea/Table2/Components/Print/TablePrint.tsx +208 -0
  27. package/idea/Table2/Components/SetSortList.tsx +33 -0
  28. package/idea/Table2/Components/SetTableFilter.tsx +90 -0
  29. package/idea/Table2/Components/TableFooter.tsx +107 -0
  30. package/idea/Table2/Components/TableOptions.tsx +211 -0
  31. package/idea/Table2/Components/Templates/TemplateCreate.tsx +75 -0
  32. package/idea/Table2/Components/Templates/TemplateCreateDefault.tsx +45 -0
  33. package/idea/Table2/Components/Templates/TemplateList.tsx +167 -0
  34. package/idea/Table2/Components/Templates/repo/TemplateRepo.ts +51 -0
  35. package/idea/Table2/Table.tsx +657 -0
  36. package/idea/Table2/_table.scss +300 -0
  37. package/idea/Table2/hooks/useDefaultTemplate.ts +22 -0
  38. package/idea/Table2/hooks/useTableKeyboard.ts +115 -0
  39. package/package.json +9 -4
  40. package/rollup.config.js +80 -0
  41. package/src/assets/icons/duotone/faCircleUser.ts +17 -0
  42. package/src/assets/icons/index.ts +20 -0
  43. package/src/assets/icons/light/faArrowDownShortWide.ts +15 -0
  44. package/src/assets/icons/light/faArrowDownWideShort.ts +15 -0
  45. package/src/assets/icons/light/faArrowUpArrowDown.ts +15 -0
  46. package/src/assets/icons/light/faArrowUpRightFromSquare.ts +15 -0
  47. package/src/assets/icons/light/faArrowsToLine.ts +15 -0
  48. package/src/assets/icons/light/faArrowsUpDown.ts +15 -0
  49. package/src/assets/icons/light/faCalendarPlus.ts +15 -0
  50. package/src/assets/icons/light/faCheck.ts +15 -0
  51. package/src/assets/icons/light/faChevronDown.ts +15 -0
  52. package/src/assets/icons/light/faChevronRight.ts +15 -0
  53. package/src/assets/icons/light/faCircleInfo.ts +15 -0
  54. package/src/assets/icons/light/faCircleXmark.ts +15 -0
  55. package/src/assets/icons/light/faClockRotateLeft.ts +15 -0
  56. package/src/assets/icons/light/faEllipsisVertical.ts +15 -0
  57. package/src/assets/icons/light/faEye.ts +15 -0
  58. package/src/assets/icons/light/faEyeSlash.ts +15 -0
  59. package/src/assets/icons/light/faFilter.ts +15 -0
  60. package/src/assets/icons/light/faGear.ts +15 -0
  61. package/src/assets/icons/light/faHouse.ts +15 -0
  62. package/src/assets/icons/light/faIdBadge.ts +15 -0
  63. package/src/assets/icons/light/faLineColumns.ts +15 -0
  64. package/src/assets/icons/light/faLink.ts +15 -0
  65. package/src/assets/icons/light/faMagnifyingGlass.ts +15 -0
  66. package/src/assets/icons/light/faPenField.ts +15 -0
  67. package/src/assets/icons/light/faPrint.ts +15 -0
  68. package/src/assets/icons/light/faQuestion.ts +15 -0
  69. package/src/assets/icons/light/faRotateRight.ts +15 -0
  70. package/src/assets/icons/light/faTrashCan.ts +15 -0
  71. package/src/assets/icons/light/faTriangleExclamation.ts +15 -0
  72. package/src/assets/icons/light/faXmark.ts +15 -0
  73. package/src/assets/icons/regular/faArrowLeft.ts +15 -0
  74. package/src/assets/icons/regular/faArrowRightArrowLeft.ts +15 -0
  75. package/src/assets/icons/regular/faCircleCheck.ts +15 -0
  76. package/src/assets/icons/regular/faCircleExclamation.ts +15 -0
  77. package/src/assets/icons/regular/faCircleInfo.ts +15 -0
  78. package/src/assets/icons/regular/faFileArrowDown.ts +15 -0
  79. package/src/assets/icons/regular/faFilterCircleXmark.ts +15 -0
  80. package/src/assets/icons/regular/faTriangleExclamation.ts +15 -0
  81. package/src/assets/icons/solid/faAngleLeft.ts +15 -0
  82. package/src/assets/icons/solid/faAngleRight.ts +15 -0
  83. package/src/assets/icons/solid/faArrowDownWideShort.ts +15 -0
  84. package/src/assets/icons/solid/faCaretDown.ts +15 -0
  85. package/src/assets/icons/solid/faCheck.ts +15 -0
  86. package/src/assets/icons/solid/faEllipsisVertical.ts +15 -0
  87. package/src/assets/icons/solid/faFilter.ts +15 -0
  88. package/src/assets/icons/solid/faFloppyDisk.ts +15 -0
  89. package/src/assets/icons/solid/faGripDotsVertical.ts +15 -0
  90. package/src/assets/icons/solid/faListUl.ts +15 -0
  91. package/src/assets/icons/solid/faMagnifyingGlass.ts +15 -0
  92. package/src/assets/icons/solid/faMinus.ts +15 -0
  93. package/src/assets/icons/solid/faPlus.ts +15 -0
  94. package/src/assets/icons/solid/faPrint.ts +15 -0
  95. package/src/assets/icons/solid/faRotateRight.ts +15 -0
  96. package/src/assets/icons/solid/faXmark.ts +15 -0
  97. package/src/assets/images/logo/mts.svg +5703 -0
  98. package/src/assets/images/logo/paperless.svg +21 -0
  99. package/src/assets/images/logo/pismonosa.png +0 -0
  100. package/src/assets/images/not-found.svg +19 -0
  101. package/src/components/Accordions/Accordions.tsx +64 -0
  102. package/src/components/Alert/Alert.tsx +31 -0
  103. package/src/components/Badge/DotBadge.tsx +16 -0
  104. package/src/components/Badge/NotificationBadge.tsx +29 -0
  105. package/src/components/Badge/PillBadge.tsx +13 -0
  106. package/src/components/Button/Button.tsx +56 -0
  107. package/src/components/Button/IconButton.tsx +49 -0
  108. package/src/components/Dashboard/Dashboard.tsx +9 -0
  109. package/src/components/Dashboard/DashboardWidget.tsx +44 -0
  110. package/src/components/Dashboard/FastLinksWidget/FastLinksWidget.tsx +37 -0
  111. package/src/components/Dialog/DeleteItemDialog.tsx +52 -0
  112. package/src/components/Dialog/Dialog.tsx +226 -0
  113. package/src/components/Dialog/hooks/useDialogKeyboard.ts +41 -0
  114. package/src/components/Dialog/hooks/useDialogObserver.ts +21 -0
  115. package/src/components/Header/Components/ModuleSelect.tsx +55 -0
  116. package/src/components/Header/Components/UserMenu.tsx +52 -0
  117. package/src/components/Header/Header.tsx +31 -0
  118. package/src/components/Helper/Collapse.tsx +52 -0
  119. package/src/components/Inputs/Checkbox.tsx +53 -0
  120. package/src/components/Inputs/CurrencyInput.tsx +123 -0
  121. package/src/components/Inputs/DateInput/DateInput.tsx +177 -0
  122. package/src/components/Inputs/DateInput/components/DatePartInput.tsx +154 -0
  123. package/src/components/Inputs/InputWrapper.tsx +90 -0
  124. package/src/components/Inputs/NumberInput.tsx +83 -0
  125. package/src/components/Inputs/PasswordInput.tsx +38 -0
  126. package/src/components/Inputs/Radio.tsx +59 -0
  127. package/src/components/Inputs/RadioGroup.tsx +48 -0
  128. package/src/components/Inputs/RadioLarge.tsx +39 -0
  129. package/src/components/Inputs/SearchInput.tsx +40 -0
  130. package/src/components/Inputs/Select2/Select.tsx +224 -0
  131. package/src/components/Inputs/Select2/select.scss +43 -0
  132. package/src/components/Inputs/Selects/Select.tsx +17 -0
  133. package/src/components/Inputs/Selects/components/CustomSelectComponents.tsx +19 -0
  134. package/src/components/Inputs/Selects/components/SelectWrapper.tsx +126 -0
  135. package/src/components/Inputs/Selects/utils/selectStyles.ts +104 -0
  136. package/src/components/Inputs/TextAreaInput.tsx +67 -0
  137. package/src/components/Inputs/TextInput.tsx +98 -0
  138. package/src/components/Inputs/TimeInput/TimeInput.tsx +81 -0
  139. package/src/components/Loader/Loader.tsx +53 -0
  140. package/src/components/Menu/Menu.tsx +68 -0
  141. package/src/components/Menu/MenuItem.tsx +47 -0
  142. package/src/components/Menu/NewMenu.tsx +66 -0
  143. package/src/components/Menu/hooks/useMenuPosition.tsx +80 -0
  144. package/src/components/Pullover/Pullover.tsx +89 -0
  145. package/src/components/Router/Router.tsx +51 -0
  146. package/src/components/Sidebar/AddButton.tsx +22 -0
  147. package/src/components/Sidebar/Sidebar.tsx +81 -0
  148. package/src/components/Sidebar/SidebarItem.tsx +84 -0
  149. package/src/components/Sidebar/types/ISidebar.ts +28 -0
  150. package/src/components/Table/Components/Columns/ColumnsList.tsx +61 -0
  151. package/src/components/Table/Components/Columns/SetColumnsList.tsx +113 -0
  152. package/src/components/Table/Components/Edit/ItemActionsMenu.tsx +84 -0
  153. package/src/components/Table/Components/Edit/ItemEditOptionsButtons.tsx +31 -0
  154. package/src/components/Table/Components/Edit/TableEditRow.tsx +56 -0
  155. package/src/components/Table/Components/FilterItem.tsx +20 -0
  156. package/src/components/Table/Components/Header/TableHeader.tsx +45 -0
  157. package/src/components/Table/Components/Header/TableHeaderRow.tsx +37 -0
  158. package/src/components/Table/Components/Print/CustomTablePrint.tsx +114 -0
  159. package/src/components/Table/Components/Print/TablePrint.tsx +207 -0
  160. package/src/components/Table/Components/SetSortList.tsx +30 -0
  161. package/src/components/Table/Components/SetTableFilter.tsx +90 -0
  162. package/src/components/Table/Components/TableFooter.tsx +135 -0
  163. package/src/components/Table/Components/TableOptions.tsx +226 -0
  164. package/src/components/Table/Components/Templates/TemplateCreate.tsx +80 -0
  165. package/src/components/Table/Components/Templates/TemplateCreateDefault.tsx +45 -0
  166. package/src/components/Table/Components/Templates/TemplateList.tsx +167 -0
  167. package/src/components/Table/Components/Templates/repo/TemplateRepo.ts +53 -0
  168. package/src/components/Table/Table.tsx +527 -0
  169. package/src/components/Table/hooks/useDefaultTemplate.ts +20 -0
  170. package/src/components/Table/hooks/useTableKeyboard.ts +138 -0
  171. package/src/components/Table/hooks/useTableSelect.ts +11 -0
  172. package/src/components/Tabs/Tabs.tsx +66 -0
  173. package/src/components/Tooltip/Tooltip.tsx +133 -0
  174. package/src/components/Tree/Tree.tsx +22 -0
  175. package/src/components/Tree/TreeItem.tsx +56 -0
  176. package/src/components/Wrappers/AppLayout.tsx +17 -0
  177. package/src/components/Wrappers/ConditionalWrapper.tsx +10 -0
  178. package/src/components/Wrappers/FormWrapper.tsx +81 -0
  179. package/src/components/Wrappers/PageLayout.tsx +152 -0
  180. package/src/hooks/useBackgroundClose.ts +18 -0
  181. package/src/hooks/useIsMenuOpen.ts +11 -0
  182. package/src/hooks/useOnEsc.ts +14 -0
  183. package/src/hooks/useZendesk.ts +21 -0
  184. package/src/index.ts +324 -0
  185. package/src/pages/NoAccessPage.tsx +27 -0
  186. package/src/pages/NotFoundPage.tsx +26 -0
  187. package/src/styles/App.scss +43 -0
  188. package/src/styles/common/_animations.scss +64 -0
  189. package/src/styles/common/_typography.scss +88 -0
  190. package/src/styles/common/helpers/_base.scss +55 -0
  191. package/src/styles/common/helpers/_color.scss +7 -0
  192. package/src/styles/common/helpers/_display.scss +85 -0
  193. package/src/styles/common/helpers/_size.scss +25 -0
  194. package/src/styles/common/maps/_align.scss +21 -0
  195. package/src/styles/common/maps/_info-types.scss +1 -0
  196. package/src/styles/common/maps/_spacing.scss +78 -0
  197. package/src/styles/common/maps/_text.scss +14 -0
  198. package/src/styles/components/_accordions.scss +46 -0
  199. package/src/styles/components/_alert.scss +23 -0
  200. package/src/styles/components/_badge.scss +76 -0
  201. package/src/styles/components/_button.scss +138 -0
  202. package/src/styles/components/_card.scss +24 -0
  203. package/src/styles/components/_dialog.scss +111 -0
  204. package/src/styles/components/_form.scss +8 -0
  205. package/src/styles/components/_header.scss +109 -0
  206. package/src/styles/components/_input.scss +158 -0
  207. package/src/styles/components/_inputCheckbox.scss +105 -0
  208. package/src/styles/components/_inputDateTime.scss +161 -0
  209. package/src/styles/components/_inputRadio.scss +83 -0
  210. package/src/styles/components/_inputSelect.scss +6 -0
  211. package/src/styles/components/_loader.scss +44 -0
  212. package/src/styles/components/_menu-v2.scss +67 -0
  213. package/src/styles/components/_menu.scss +53 -0
  214. package/src/styles/components/_page.scss +62 -0
  215. package/src/styles/components/_portal.scss +8 -0
  216. package/src/styles/components/_print.scss +87 -0
  217. package/src/styles/components/_pullover.scss +43 -0
  218. package/src/styles/components/_scrollbar.scss +18 -0
  219. package/src/styles/components/_sidebar.scss +206 -0
  220. package/src/styles/components/_smallComponents.scss +23 -0
  221. package/src/styles/components/_table.scss +270 -0
  222. package/src/styles/components/_tabs.scss +33 -0
  223. package/src/styles/components/_tooltip.scss +48 -0
  224. package/src/styles/components/_tree.scss +21 -0
  225. package/src/styles/components/_widget.scss +90 -0
  226. package/src/styles/pages/_fullScreenPage.scss +64 -0
  227. package/src/styles/variables/_bp.scss +5 -0
  228. package/src/styles/variables/_variables.scss +130 -0
  229. package/src/types/Base/custom.d.ts +9 -0
  230. package/src/types/IBasic.ts +31 -0
  231. package/src/types/IError.ts +5 -0
  232. package/src/types/IHeader.ts +34 -0
  233. package/src/types/IInfo.ts +1 -0
  234. package/src/types/IKeyboard.ts +37 -0
  235. package/src/types/IMenu.ts +18 -0
  236. package/src/types/IRouter.ts +6 -0
  237. package/src/types/ISelect.ts +52 -0
  238. package/src/types/ITab.ts +10 -0
  239. package/src/types/ITable.ts +249 -0
  240. package/src/types/ITree.ts +6 -0
  241. package/src/utils/DateUtils.ts +32 -0
  242. package/src/utils/InputPatternValidation.ts +12 -0
  243. package/src/utils/LocalStorageHelper.ts +24 -0
  244. package/src/utils/NumberUtils.ts +21 -0
  245. package/src/utils/ObjectUtils.ts +85 -0
  246. package/src/utils/RootDir.ts +1 -0
  247. package/src/utils/StringUtils.ts +18 -0
  248. package/src/utils/TableUtils.ts +130 -0
  249. package/src/utils/Toasts.ts +6 -0
  250. package/src/utils/UrlUtils.ts +4 -0
  251. package/src/utils/fileUtils.ts +176 -0
  252. package/src/utils/i18n/i18nIUICyrilic.ts +90 -0
  253. package/src/utils/i18n/i18nIUILatin.ts +90 -0
  254. package/src/utils/i18n/i18nIUIMe.ts +88 -0
  255. package/src/utils/icons.ts +13 -0
  256. package/tsconfig.icons.json +5 -0
  257. package/tsconfig.json +19 -0
@@ -0,0 +1,109 @@
1
+ @use '../variables/bp';
2
+
3
+ .iui-header {
4
+ border-bottom: var(--border);
5
+ background: var(--background);
6
+ height: var(--header-height);
7
+ width: 100dvw;
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: space-between;
11
+ padding: 0 24px 0 8px;
12
+ box-sizing: border-box;
13
+ .header-button {
14
+ height: 40px;
15
+ width: 40px;
16
+ padding: 8px;
17
+ border-radius: 50px;
18
+ &:hover {
19
+ background-color: var(--neutral-hover);
20
+ }
21
+ }
22
+ }
23
+
24
+ .module-name {
25
+ display: flex;
26
+ align-items: center;
27
+ gap: 8px;
28
+ padding-right: 8px;
29
+ border-radius: var(--container-radius);
30
+ user-select: none;
31
+ &:hover {
32
+ background-color: var(--neutral-hover);
33
+ }
34
+ }
35
+ .module-item {
36
+ display: flex;
37
+ flex-direction: column;
38
+ gap: 8px;
39
+ align-items: center;
40
+ padding: 8px;
41
+ border-radius: 8px;
42
+ .menu-item-label {
43
+ font-weight: 600;
44
+ }
45
+ }
46
+ .module-item .menu-item-icon,
47
+ .module-icon {
48
+ background: var(--neutral-200);
49
+ width: 40px;
50
+ height: 40px;
51
+ border-radius: 50px;
52
+ display: flex;
53
+ align-items: center;
54
+ justify-content: center;
55
+ svg {
56
+ color: var(--primary);
57
+ height: 20px;
58
+ width: 20px;
59
+ }
60
+ }
61
+
62
+ .user-box {
63
+ display: flex;
64
+ align-items: center;
65
+ gap: 8px;
66
+ height: var(--header-height);
67
+ position: relative;
68
+ cursor: pointer;
69
+ user-select: none;
70
+ -webkit-user-drag: none;
71
+ .user-icon {
72
+ color: var(--primary);
73
+ height: 36px;
74
+ width: 36px;
75
+ }
76
+ .user-info {
77
+ overflow: hidden;
78
+ text-overflow: ellipsis;
79
+ white-space: nowrap;
80
+ max-width: 150px;
81
+ .user-name {
82
+ font-size: 14px;
83
+ font-weight: 600;
84
+ }
85
+ .org-name {
86
+ font-size: 12px;
87
+ color: var(--neutral-500);
88
+ }
89
+ p {
90
+ line-height: 1.5;
91
+ overflow: hidden;
92
+ text-overflow: ellipsis;
93
+ }
94
+ }
95
+ .user-badge {
96
+ min-height: 10px;
97
+ max-height: 10px;
98
+ min-width: 10px;
99
+ max-width: 10px;
100
+ background: var(--danger);
101
+ border-radius: 50px;
102
+ }
103
+ }
104
+
105
+ @media #{bp.$mobile} {
106
+ .user-info {
107
+ display: none;
108
+ }
109
+ }
@@ -0,0 +1,158 @@
1
+ .iui-input-container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: 100%;
5
+ gap: 6px;
6
+ p {
7
+ color: var(--text);
8
+ font-size: 14px;
9
+ }
10
+ .input-label {
11
+ font-weight: 500;
12
+ text-overflow: ellipsis;
13
+ overflow: hidden;
14
+ white-space: nowrap;
15
+ cursor: default;
16
+ &.required {
17
+ &::after {
18
+ content: ' *';
19
+ color: var(--danger);
20
+ }
21
+ }
22
+ }
23
+
24
+ ////// Input wrapper //////
25
+ .iui-input-wrapper-field {
26
+ position: relative;
27
+ border: var(--border);
28
+ border-radius: 8px;
29
+ background-color: var(--white);
30
+ overflow: hidden;
31
+ display: flex;
32
+ align-items: center;
33
+ min-height: 40px;
34
+ height: 40px;
35
+
36
+ .icon {
37
+ margin: -4px;
38
+ padding: 4px;
39
+ height: 16px;
40
+ width: 16px;
41
+ cursor: pointer;
42
+ color: var(--neutral);
43
+ &:hover {
44
+ color: var(--primary);
45
+ }
46
+ }
47
+
48
+ &.height-auto {
49
+ height: auto;
50
+ }
51
+ &.with-end-section input {
52
+ padding-right: 0px;
53
+ }
54
+ .end-section {
55
+ display: flex;
56
+ align-items: center;
57
+ gap: 10px;
58
+ margin: 0 12px 0 8px;
59
+ }
60
+ }
61
+
62
+ ///// Helper text /////
63
+ .helper-text {
64
+ color: var(--neutral);
65
+ font-size: 13px;
66
+ margin: 0 8px;
67
+ white-space: pre-line;
68
+ &.error-text {
69
+ display: none;
70
+ }
71
+ }
72
+
73
+ ///// STATES /////
74
+
75
+ // Disabled
76
+ &.disabled .iui-input-wrapper-field {
77
+ pointer-events: none;
78
+ user-select: none;
79
+ background-color: var(--background-disabled);
80
+ .icon,
81
+ p {
82
+ color: var(--text-disabled);
83
+ }
84
+ }
85
+
86
+ // Focused
87
+ &.focus,
88
+ &:has(input:focus) {
89
+ .iui-input-wrapper-field {
90
+ border-color: var(--primary);
91
+ box-shadow: 0px 0px 1px 3px var(--primary-200);
92
+ &:has(input:user-invalid),
93
+ &:has(input.error) {
94
+ border-color: var(--danger);
95
+ box-shadow: 0px 0px 1px 3px var(--danger-200);
96
+ }
97
+ }
98
+ }
99
+
100
+ // Error state
101
+ &:has(input:user-invalid),
102
+ &:has(input.error),
103
+ &.error {
104
+ .iui-input-wrapper-field {
105
+ border-color: var(--danger);
106
+ .icon:hover {
107
+ color: var(--danger);
108
+ }
109
+ }
110
+ .helper-text {
111
+ color: var(--danger);
112
+ &.helper-hidden {
113
+ display: none;
114
+ }
115
+ &.error-text {
116
+ display: block;
117
+ }
118
+ }
119
+ }
120
+
121
+ input,
122
+ textarea {
123
+ &:-webkit-autofill {
124
+ animation-name: auto-fill;
125
+ animation-duration: 500ms;
126
+ }
127
+ width: 100%;
128
+ font-size: 16px;
129
+ padding: 8px 12px;
130
+ border: none;
131
+ &:disabled {
132
+ background-color: var(--background-disabled);
133
+ }
134
+ &::placeholder {
135
+ color: var(--neutral-400);
136
+ font-weight: 200 !important;
137
+ font-style: italic;
138
+ user-select: none;
139
+ }
140
+ }
141
+
142
+ textarea {
143
+ resize: none;
144
+ &.resize {
145
+ resize: vertical;
146
+ }
147
+ }
148
+ }
149
+
150
+ .fake-input {
151
+ opacity: 0;
152
+ height: 1px !important;
153
+ position: absolute;
154
+ padding: 0 !important;
155
+ margin: 0;
156
+ pointer-events: none;
157
+ z-index: -1;
158
+ }
@@ -0,0 +1,105 @@
1
+ .iui-checkbox {
2
+ display: inline-flex;
3
+ align-items: flex-start;
4
+ user-select: none;
5
+ padding: 8px;
6
+ font-size: var(--fs-m);
7
+ width: fit-content;
8
+ gap: 8px;
9
+ cursor: pointer;
10
+ .box {
11
+ position: relative;
12
+ height: 20px;
13
+ width: 20px;
14
+ border-radius: 5px;
15
+ border: 2px solid var(--neutral-400);
16
+ min-width: 20px;
17
+ display: flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+ transition: all 150ms cubic-bezier(0.4, 0, 1, 1) 0ms;
21
+ color: var(--text-inverse);
22
+ &.selected {
23
+ background-color: var(--primary);
24
+ border-color: var(--primary);
25
+ }
26
+ }
27
+ p {
28
+ white-space: pre-line;
29
+ line-height: 20px;
30
+ vertical-align: middle;
31
+ }
32
+
33
+ &.disabled {
34
+ user-select: none;
35
+ cursor: default;
36
+ input {
37
+ cursor: default;
38
+ }
39
+ .box {
40
+ background-color: var(--neutral-200);
41
+ border-color: var(--neutral-300);
42
+ color: var(--neutral-300);
43
+ }
44
+ p {
45
+ color: var(--text-disabled);
46
+ }
47
+ }
48
+ }
49
+
50
+ // Radio group
51
+ .radio-group {
52
+ display: flex;
53
+ width: fit-content;
54
+ &.column {
55
+ flex-direction: column;
56
+ }
57
+ &.row {
58
+ align-items: center;
59
+ flex-direction: row;
60
+ }
61
+ }
62
+
63
+ // Radio
64
+ .iui-radio {
65
+ display: inline-flex;
66
+ user-select: none;
67
+ padding: 8px;
68
+ font-size: var(--fs-m);
69
+ width: fit-content;
70
+ gap: 8px;
71
+ .icon {
72
+ position: relative;
73
+ height: 20px;
74
+ width: 20px;
75
+ border-radius: 20px;
76
+ border: 2px solid #d0d5dd;
77
+ min-width: 20px;
78
+ display: flex;
79
+ align-items: center;
80
+ justify-content: center;
81
+ .dot {
82
+ height: 8px;
83
+ width: 8px;
84
+ border-radius: 8px;
85
+ background-color: var(--white);
86
+ transform: scale(0);
87
+ transition: transform 150ms cubic-bezier(0.4, 0, 1, 1) 0ms;
88
+ }
89
+ &.selected {
90
+ background-color: var(--primary);
91
+ border-color: var(--primary);
92
+ .dot {
93
+ transform: scale(1);
94
+ }
95
+ }
96
+ }
97
+ .radio-content {
98
+ p {
99
+ line-height: 20px;
100
+ }
101
+ .label {
102
+ font-weight: 500;
103
+ }
104
+ }
105
+ }
@@ -0,0 +1,161 @@
1
+ .date-input {
2
+ display: flex;
3
+ align-items: center;
4
+ width: 100%;
5
+ position: relative;
6
+ .calendar-btn {
7
+ padding: 8px 8px 8px 12px;
8
+ }
9
+ .inputs {
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: flex-start;
13
+ width: 100%;
14
+ input {
15
+ width: min-content;
16
+ padding: 0px;
17
+ &.error {
18
+ color: var(--danger);
19
+ }
20
+ }
21
+ }
22
+ }
23
+
24
+ .react-calendar {
25
+ border: none !important;
26
+ -webkit-user-select: none;
27
+ user-select: none;
28
+ display: flex;
29
+ flex-direction: column;
30
+ align-items: center;
31
+ gap: 12px;
32
+ padding: 8px 12px 0;
33
+ button {
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: center;
37
+ cursor: pointer;
38
+ background: none;
39
+ border: none;
40
+ border-radius: 20px;
41
+ &:enabled:hover {
42
+ background: var(--neutral-hover);
43
+ }
44
+ }
45
+
46
+ // Header
47
+ &__navigation {
48
+ display: flex;
49
+ align-items: center;
50
+ justify-content: space-between;
51
+ gap: 4px;
52
+ width: 100%;
53
+ white-space: nowrap;
54
+ button {
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+ height: 36px;
59
+ width: 36px;
60
+ }
61
+ &__label {
62
+ font-weight: 600;
63
+ font-size: 16px;
64
+ padding: 8px 12px;
65
+ }
66
+ &__arrow {
67
+ padding: 4px 12px 8px;
68
+ font-size: 30px;
69
+ line-height: 36px;
70
+ color: var(--neutral-400);
71
+ }
72
+ }
73
+
74
+ // Weekdays
75
+ &__month-view__weekdays {
76
+ text-align: center;
77
+ display: grid !important;
78
+ grid-template-columns: repeat(7, 1fr);
79
+ abbr[title] {
80
+ text-decoration: none;
81
+ }
82
+ }
83
+
84
+ // Item
85
+ &__tile {
86
+ flex: unset !important;
87
+ font-size: 15px;
88
+ font-weight: 500;
89
+ height: 40px;
90
+ &--now {
91
+ background: var(--primary-100) !important;
92
+ color: var(--primary);
93
+ &:enabled:hover {
94
+ background: var(--primary-200) !important;
95
+ }
96
+ }
97
+ &--active,
98
+ &--hasActive {
99
+ background: var(--primary) !important;
100
+ color: var(--text-inverse);
101
+ }
102
+ }
103
+
104
+ // Days
105
+ &__month-view__days {
106
+ margin-top: 16px;
107
+ display: grid !important;
108
+ grid-template-columns: repeat(7, 1fr);
109
+ gap: 4px;
110
+ &__day {
111
+ width: 40px;
112
+ &--neighboringMonth {
113
+ color: var(--neutral-400);
114
+ }
115
+ }
116
+ }
117
+
118
+ // Months
119
+ &__year-view__months {
120
+ display: grid !important;
121
+ grid-template-columns: repeat(3, 1fr);
122
+ gap: 8px;
123
+ &__month {
124
+ padding: 0 12px;
125
+ }
126
+ }
127
+ // Years
128
+ &__decade-view__years {
129
+ display: grid !important;
130
+ grid-template-columns: repeat(4, 1fr);
131
+ gap: 8px;
132
+ &__year {
133
+ font-size: 16px;
134
+ padding: 0 12px;
135
+ }
136
+ }
137
+ }
138
+
139
+ .time-input-wrapper {
140
+ width: 110px;
141
+ min-width: 110px;
142
+ .time-input {
143
+ display: flex;
144
+ align-items: center;
145
+ gap: 4px;
146
+ padding: 0 12px;
147
+ input::-webkit-outer-spin-button,
148
+ input::-webkit-inner-spin-button {
149
+ -webkit-appearance: none;
150
+ margin: 0;
151
+ }
152
+ input[type='number'] {
153
+ height: 40px;
154
+ padding: 0;
155
+ text-align: left;
156
+ }
157
+ span {
158
+ font-size: 13px;
159
+ }
160
+ }
161
+ }
@@ -0,0 +1,83 @@
1
+ // Radio group
2
+ .radio-group {
3
+ display: flex;
4
+ width: fit-content;
5
+ &.column {
6
+ flex-direction: column;
7
+ }
8
+ &.row {
9
+ align-items: flex-start;
10
+ flex-direction: row;
11
+ }
12
+ }
13
+
14
+ // Radio
15
+ .iui-radio {
16
+ display: inline-flex;
17
+ user-select: none;
18
+ padding: 8px;
19
+ font-size: var(--fs-m);
20
+ width: fit-content;
21
+ gap: 8px;
22
+ .icon {
23
+ position: relative;
24
+ height: 20px;
25
+ width: 20px;
26
+ border-radius: 20px;
27
+ border: 2px solid #d0d5dd;
28
+ min-width: 20px;
29
+ display: flex;
30
+ align-items: center;
31
+ justify-content: center;
32
+ .dot {
33
+ height: 8px;
34
+ width: 8px;
35
+ border-radius: 8px;
36
+ background-color: var(--white);
37
+ transform: scale(0);
38
+ transition: transform 150ms cubic-bezier(0.4, 0, 1, 1) 0ms;
39
+ }
40
+ &.selected {
41
+ background-color: var(--primary);
42
+ border-color: var(--primary);
43
+ .dot {
44
+ transform: scale(1);
45
+ }
46
+ }
47
+ }
48
+ .radio-content {
49
+ p {
50
+ white-space: pre-line;
51
+ line-height: 20px;
52
+ }
53
+ .label {
54
+ font-weight: 500;
55
+ }
56
+ }
57
+ }
58
+
59
+ // .radio-large {
60
+ // align-items: unset;
61
+ // border: 1px solid;
62
+ // border-left: 2px solid;
63
+ // border-color: var(--neutral);
64
+ // padding: 16px;
65
+ // width: 100%;
66
+ // overflow: auto;
67
+ // cursor: pointer;
68
+ // &:not(.disabled):not(.active):hover {
69
+ // border-color: var(--primary);
70
+ // }
71
+ // &.selected {
72
+ // border-color: var(--primary);
73
+ // background-color: rgba(var(--primary-rgb), 0.03);
74
+ // }
75
+ // &.disabled {
76
+ // opacity: 0.5;
77
+ // background-color: #f9f9f9;
78
+ // cursor: auto;
79
+ // }
80
+ // .title {
81
+ // line-height: 1.6;
82
+ // }
83
+ // }
@@ -0,0 +1,6 @@
1
+ .select-wrapper {
2
+ .field {
3
+ min-height: 40px;
4
+ height: auto;
5
+ }
6
+ }
@@ -0,0 +1,44 @@
1
+ .full-screen-loader {
2
+ position: fixed;
3
+ top: 0;
4
+ bottom: 0;
5
+ left: 0;
6
+ right: 0;
7
+ z-index: 1001;
8
+ background-color: rgba(255, 255, 255, 0.7);
9
+ .loader {
10
+ position: fixed !important;
11
+ }
12
+ }
13
+
14
+ .lazy-loader {
15
+ position: relative;
16
+ height: calc(100vh - var(--header-height));
17
+ }
18
+
19
+ .loader {
20
+ position: absolute;
21
+ inset: 0;
22
+ background-color: rgba(255, 255, 255, 0.6);
23
+ display: flex;
24
+ justify-content: center;
25
+ align-items: center;
26
+ z-index: 1000;
27
+ .spinner {
28
+ display: inline-block;
29
+ width: 50px;
30
+ height: 50px;
31
+ border-radius: 50%;
32
+ box-shadow: inset -2px 0 0 2px var(--primary);
33
+ animation: rotate 1.5s linear infinite;
34
+ }
35
+ }
36
+
37
+ .empty-loader {
38
+ height: 60px;
39
+ width: 100%;
40
+ }
41
+
42
+ .full-page-loader {
43
+ height: 100%;
44
+ }