@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.
- package/dist/{NoAccessPage-C6nBt-PN.js → NoAccessPage-BozT_Suz.js} +2 -2
- package/dist/{NoAccessPage-C6nBt-PN.js.map → NoAccessPage-BozT_Suz.js.map} +1 -1
- package/dist/{NotFoundPage-DatmJOrr.js → NotFoundPage-WWiekDef.js} +2 -2
- package/dist/{NotFoundPage-DatmJOrr.js.map → NotFoundPage-WWiekDef.js.map} +1 -1
- package/dist/icons/index.d.ts +43 -0
- package/dist/icons/index.js +1 -0
- package/dist/index.d.ts +32 -20
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/iui.css +1 -1
- package/idea/Menu/Menu.tsx +119 -0
- package/idea/Menu/MenuItem.tsx +74 -0
- package/idea/Menu/hooks/useMenuControl.ts +13 -0
- package/idea/Menu.tsx +132 -0
- package/idea/NoAccessInfo.tsx +193 -0
- package/idea/Notifications.tsx +245 -0
- package/idea/Table2/Components/Columns/ColumnsList.tsx +56 -0
- package/idea/Table2/Components/Columns/SetColumnsList.tsx +107 -0
- package/idea/Table2/Components/Edit/ItemActionsMenu.tsx +87 -0
- package/idea/Table2/Components/Edit/ItemEditOptionsButtons.tsx +32 -0
- package/idea/Table2/Components/Edit/TableEditRow.tsx +56 -0
- package/idea/Table2/Components/FilterItem.tsx +20 -0
- package/idea/Table2/Components/Header/TableHeader.tsx +35 -0
- package/idea/Table2/Components/Header/TableHeaderRow.tsx +37 -0
- package/idea/Table2/Components/Print/CustomTablePrint.tsx +119 -0
- package/idea/Table2/Components/Print/TablePrint.tsx +208 -0
- package/idea/Table2/Components/SetSortList.tsx +33 -0
- package/idea/Table2/Components/SetTableFilter.tsx +90 -0
- package/idea/Table2/Components/TableFooter.tsx +107 -0
- package/idea/Table2/Components/TableOptions.tsx +211 -0
- package/idea/Table2/Components/Templates/TemplateCreate.tsx +75 -0
- package/idea/Table2/Components/Templates/TemplateCreateDefault.tsx +45 -0
- package/idea/Table2/Components/Templates/TemplateList.tsx +167 -0
- package/idea/Table2/Components/Templates/repo/TemplateRepo.ts +51 -0
- package/idea/Table2/Table.tsx +657 -0
- package/idea/Table2/_table.scss +300 -0
- package/idea/Table2/hooks/useDefaultTemplate.ts +22 -0
- package/idea/Table2/hooks/useTableKeyboard.ts +115 -0
- package/package.json +9 -4
- package/rollup.config.js +80 -0
- package/src/assets/icons/duotone/faCircleUser.ts +17 -0
- package/src/assets/icons/index.ts +20 -0
- package/src/assets/icons/light/faArrowDownShortWide.ts +15 -0
- package/src/assets/icons/light/faArrowDownWideShort.ts +15 -0
- package/src/assets/icons/light/faArrowUpArrowDown.ts +15 -0
- package/src/assets/icons/light/faArrowUpRightFromSquare.ts +15 -0
- package/src/assets/icons/light/faArrowsToLine.ts +15 -0
- package/src/assets/icons/light/faArrowsUpDown.ts +15 -0
- package/src/assets/icons/light/faCalendarPlus.ts +15 -0
- package/src/assets/icons/light/faCheck.ts +15 -0
- package/src/assets/icons/light/faChevronDown.ts +15 -0
- package/src/assets/icons/light/faChevronRight.ts +15 -0
- package/src/assets/icons/light/faCircleInfo.ts +15 -0
- package/src/assets/icons/light/faCircleXmark.ts +15 -0
- package/src/assets/icons/light/faClockRotateLeft.ts +15 -0
- package/src/assets/icons/light/faEllipsisVertical.ts +15 -0
- package/src/assets/icons/light/faEye.ts +15 -0
- package/src/assets/icons/light/faEyeSlash.ts +15 -0
- package/src/assets/icons/light/faFilter.ts +15 -0
- package/src/assets/icons/light/faGear.ts +15 -0
- package/src/assets/icons/light/faHouse.ts +15 -0
- package/src/assets/icons/light/faIdBadge.ts +15 -0
- package/src/assets/icons/light/faLineColumns.ts +15 -0
- package/src/assets/icons/light/faLink.ts +15 -0
- package/src/assets/icons/light/faMagnifyingGlass.ts +15 -0
- package/src/assets/icons/light/faPenField.ts +15 -0
- package/src/assets/icons/light/faPrint.ts +15 -0
- package/src/assets/icons/light/faQuestion.ts +15 -0
- package/src/assets/icons/light/faRotateRight.ts +15 -0
- package/src/assets/icons/light/faTrashCan.ts +15 -0
- package/src/assets/icons/light/faTriangleExclamation.ts +15 -0
- package/src/assets/icons/light/faXmark.ts +15 -0
- package/src/assets/icons/regular/faArrowLeft.ts +15 -0
- package/src/assets/icons/regular/faArrowRightArrowLeft.ts +15 -0
- package/src/assets/icons/regular/faCircleCheck.ts +15 -0
- package/src/assets/icons/regular/faCircleExclamation.ts +15 -0
- package/src/assets/icons/regular/faCircleInfo.ts +15 -0
- package/src/assets/icons/regular/faFileArrowDown.ts +15 -0
- package/src/assets/icons/regular/faFilterCircleXmark.ts +15 -0
- package/src/assets/icons/regular/faTriangleExclamation.ts +15 -0
- package/src/assets/icons/solid/faAngleLeft.ts +15 -0
- package/src/assets/icons/solid/faAngleRight.ts +15 -0
- package/src/assets/icons/solid/faArrowDownWideShort.ts +15 -0
- package/src/assets/icons/solid/faCaretDown.ts +15 -0
- package/src/assets/icons/solid/faCheck.ts +15 -0
- package/src/assets/icons/solid/faEllipsisVertical.ts +15 -0
- package/src/assets/icons/solid/faFilter.ts +15 -0
- package/src/assets/icons/solid/faFloppyDisk.ts +15 -0
- package/src/assets/icons/solid/faGripDotsVertical.ts +15 -0
- package/src/assets/icons/solid/faListUl.ts +15 -0
- package/src/assets/icons/solid/faMagnifyingGlass.ts +15 -0
- package/src/assets/icons/solid/faMinus.ts +15 -0
- package/src/assets/icons/solid/faPlus.ts +15 -0
- package/src/assets/icons/solid/faPrint.ts +15 -0
- package/src/assets/icons/solid/faRotateRight.ts +15 -0
- package/src/assets/icons/solid/faXmark.ts +15 -0
- package/src/assets/images/logo/mts.svg +5703 -0
- package/src/assets/images/logo/paperless.svg +21 -0
- package/src/assets/images/logo/pismonosa.png +0 -0
- package/src/assets/images/not-found.svg +19 -0
- package/src/components/Accordions/Accordions.tsx +64 -0
- package/src/components/Alert/Alert.tsx +31 -0
- package/src/components/Badge/DotBadge.tsx +16 -0
- package/src/components/Badge/NotificationBadge.tsx +29 -0
- package/src/components/Badge/PillBadge.tsx +13 -0
- package/src/components/Button/Button.tsx +56 -0
- package/src/components/Button/IconButton.tsx +49 -0
- package/src/components/Dashboard/Dashboard.tsx +9 -0
- package/src/components/Dashboard/DashboardWidget.tsx +44 -0
- package/src/components/Dashboard/FastLinksWidget/FastLinksWidget.tsx +37 -0
- package/src/components/Dialog/DeleteItemDialog.tsx +52 -0
- package/src/components/Dialog/Dialog.tsx +226 -0
- package/src/components/Dialog/hooks/useDialogKeyboard.ts +41 -0
- package/src/components/Dialog/hooks/useDialogObserver.ts +21 -0
- package/src/components/Header/Components/ModuleSelect.tsx +55 -0
- package/src/components/Header/Components/UserMenu.tsx +52 -0
- package/src/components/Header/Header.tsx +31 -0
- package/src/components/Helper/Collapse.tsx +52 -0
- package/src/components/Inputs/Checkbox.tsx +53 -0
- package/src/components/Inputs/CurrencyInput.tsx +123 -0
- package/src/components/Inputs/DateInput/DateInput.tsx +177 -0
- package/src/components/Inputs/DateInput/components/DatePartInput.tsx +154 -0
- package/src/components/Inputs/InputWrapper.tsx +90 -0
- package/src/components/Inputs/NumberInput.tsx +83 -0
- package/src/components/Inputs/PasswordInput.tsx +38 -0
- package/src/components/Inputs/Radio.tsx +59 -0
- package/src/components/Inputs/RadioGroup.tsx +48 -0
- package/src/components/Inputs/RadioLarge.tsx +39 -0
- package/src/components/Inputs/SearchInput.tsx +40 -0
- package/src/components/Inputs/Select2/Select.tsx +224 -0
- package/src/components/Inputs/Select2/select.scss +43 -0
- package/src/components/Inputs/Selects/Select.tsx +17 -0
- package/src/components/Inputs/Selects/components/CustomSelectComponents.tsx +19 -0
- package/src/components/Inputs/Selects/components/SelectWrapper.tsx +126 -0
- package/src/components/Inputs/Selects/utils/selectStyles.ts +104 -0
- package/src/components/Inputs/TextAreaInput.tsx +67 -0
- package/src/components/Inputs/TextInput.tsx +98 -0
- package/src/components/Inputs/TimeInput/TimeInput.tsx +81 -0
- package/src/components/Loader/Loader.tsx +53 -0
- package/src/components/Menu/Menu.tsx +68 -0
- package/src/components/Menu/MenuItem.tsx +47 -0
- package/src/components/Menu/NewMenu.tsx +66 -0
- package/src/components/Menu/hooks/useMenuPosition.tsx +80 -0
- package/src/components/Pullover/Pullover.tsx +89 -0
- package/src/components/Router/Router.tsx +51 -0
- package/src/components/Sidebar/AddButton.tsx +22 -0
- package/src/components/Sidebar/Sidebar.tsx +81 -0
- package/src/components/Sidebar/SidebarItem.tsx +84 -0
- package/src/components/Sidebar/types/ISidebar.ts +28 -0
- package/src/components/Table/Components/Columns/ColumnsList.tsx +61 -0
- package/src/components/Table/Components/Columns/SetColumnsList.tsx +113 -0
- package/src/components/Table/Components/Edit/ItemActionsMenu.tsx +84 -0
- package/src/components/Table/Components/Edit/ItemEditOptionsButtons.tsx +31 -0
- package/src/components/Table/Components/Edit/TableEditRow.tsx +56 -0
- package/src/components/Table/Components/FilterItem.tsx +20 -0
- package/src/components/Table/Components/Header/TableHeader.tsx +45 -0
- package/src/components/Table/Components/Header/TableHeaderRow.tsx +37 -0
- package/src/components/Table/Components/Print/CustomTablePrint.tsx +114 -0
- package/src/components/Table/Components/Print/TablePrint.tsx +207 -0
- package/src/components/Table/Components/SetSortList.tsx +30 -0
- package/src/components/Table/Components/SetTableFilter.tsx +90 -0
- package/src/components/Table/Components/TableFooter.tsx +135 -0
- package/src/components/Table/Components/TableOptions.tsx +226 -0
- package/src/components/Table/Components/Templates/TemplateCreate.tsx +80 -0
- package/src/components/Table/Components/Templates/TemplateCreateDefault.tsx +45 -0
- package/src/components/Table/Components/Templates/TemplateList.tsx +167 -0
- package/src/components/Table/Components/Templates/repo/TemplateRepo.ts +53 -0
- package/src/components/Table/Table.tsx +527 -0
- package/src/components/Table/hooks/useDefaultTemplate.ts +20 -0
- package/src/components/Table/hooks/useTableKeyboard.ts +138 -0
- package/src/components/Table/hooks/useTableSelect.ts +11 -0
- package/src/components/Tabs/Tabs.tsx +66 -0
- package/src/components/Tooltip/Tooltip.tsx +133 -0
- package/src/components/Tree/Tree.tsx +22 -0
- package/src/components/Tree/TreeItem.tsx +56 -0
- package/src/components/Wrappers/AppLayout.tsx +17 -0
- package/src/components/Wrappers/ConditionalWrapper.tsx +10 -0
- package/src/components/Wrappers/FormWrapper.tsx +81 -0
- package/src/components/Wrappers/PageLayout.tsx +152 -0
- package/src/hooks/useBackgroundClose.ts +18 -0
- package/src/hooks/useIsMenuOpen.ts +11 -0
- package/src/hooks/useOnEsc.ts +14 -0
- package/src/hooks/useZendesk.ts +21 -0
- package/src/index.ts +324 -0
- package/src/pages/NoAccessPage.tsx +27 -0
- package/src/pages/NotFoundPage.tsx +26 -0
- package/src/styles/App.scss +43 -0
- package/src/styles/common/_animations.scss +64 -0
- package/src/styles/common/_typography.scss +88 -0
- package/src/styles/common/helpers/_base.scss +55 -0
- package/src/styles/common/helpers/_color.scss +7 -0
- package/src/styles/common/helpers/_display.scss +85 -0
- package/src/styles/common/helpers/_size.scss +25 -0
- package/src/styles/common/maps/_align.scss +21 -0
- package/src/styles/common/maps/_info-types.scss +1 -0
- package/src/styles/common/maps/_spacing.scss +78 -0
- package/src/styles/common/maps/_text.scss +14 -0
- package/src/styles/components/_accordions.scss +46 -0
- package/src/styles/components/_alert.scss +23 -0
- package/src/styles/components/_badge.scss +76 -0
- package/src/styles/components/_button.scss +138 -0
- package/src/styles/components/_card.scss +24 -0
- package/src/styles/components/_dialog.scss +111 -0
- package/src/styles/components/_form.scss +8 -0
- package/src/styles/components/_header.scss +109 -0
- package/src/styles/components/_input.scss +158 -0
- package/src/styles/components/_inputCheckbox.scss +105 -0
- package/src/styles/components/_inputDateTime.scss +161 -0
- package/src/styles/components/_inputRadio.scss +83 -0
- package/src/styles/components/_inputSelect.scss +6 -0
- package/src/styles/components/_loader.scss +44 -0
- package/src/styles/components/_menu-v2.scss +67 -0
- package/src/styles/components/_menu.scss +53 -0
- package/src/styles/components/_page.scss +62 -0
- package/src/styles/components/_portal.scss +8 -0
- package/src/styles/components/_print.scss +87 -0
- package/src/styles/components/_pullover.scss +43 -0
- package/src/styles/components/_scrollbar.scss +18 -0
- package/src/styles/components/_sidebar.scss +206 -0
- package/src/styles/components/_smallComponents.scss +23 -0
- package/src/styles/components/_table.scss +270 -0
- package/src/styles/components/_tabs.scss +33 -0
- package/src/styles/components/_tooltip.scss +48 -0
- package/src/styles/components/_tree.scss +21 -0
- package/src/styles/components/_widget.scss +90 -0
- package/src/styles/pages/_fullScreenPage.scss +64 -0
- package/src/styles/variables/_bp.scss +5 -0
- package/src/styles/variables/_variables.scss +130 -0
- package/src/types/Base/custom.d.ts +9 -0
- package/src/types/IBasic.ts +31 -0
- package/src/types/IError.ts +5 -0
- package/src/types/IHeader.ts +34 -0
- package/src/types/IInfo.ts +1 -0
- package/src/types/IKeyboard.ts +37 -0
- package/src/types/IMenu.ts +18 -0
- package/src/types/IRouter.ts +6 -0
- package/src/types/ISelect.ts +52 -0
- package/src/types/ITab.ts +10 -0
- package/src/types/ITable.ts +249 -0
- package/src/types/ITree.ts +6 -0
- package/src/utils/DateUtils.ts +32 -0
- package/src/utils/InputPatternValidation.ts +12 -0
- package/src/utils/LocalStorageHelper.ts +24 -0
- package/src/utils/NumberUtils.ts +21 -0
- package/src/utils/ObjectUtils.ts +85 -0
- package/src/utils/RootDir.ts +1 -0
- package/src/utils/StringUtils.ts +18 -0
- package/src/utils/TableUtils.ts +130 -0
- package/src/utils/Toasts.ts +6 -0
- package/src/utils/UrlUtils.ts +4 -0
- package/src/utils/fileUtils.ts +176 -0
- package/src/utils/i18n/i18nIUICyrilic.ts +90 -0
- package/src/utils/i18n/i18nIUILatin.ts +90 -0
- package/src/utils/i18n/i18nIUIMe.ts +88 -0
- package/src/utils/icons.ts +13 -0
- package/tsconfig.icons.json +5 -0
- 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,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
|
+
}
|