@inceptionbg/iui 2.0.4 → 2.0.6
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-BllwaG2u.js → NoAccessPage-C6nBt-PN.js} +2 -2
- package/dist/{NoAccessPage-BllwaG2u.js.map → NoAccessPage-C6nBt-PN.js.map} +1 -1
- package/dist/{NotFoundPage-DVm00-sr.js → NotFoundPage-DatmJOrr.js} +2 -2
- package/dist/{NotFoundPage-DVm00-sr.js.map → NotFoundPage-DatmJOrr.js.map} +1 -1
- package/dist/icons/index.d.ts +43 -0
- package/dist/icons/index.js +1 -0
- package/dist/index.d.ts +57 -49
- 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 +15 -11
- 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 +44 -0
- package/src/components/Header/Header.tsx +36 -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 +176 -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 +24 -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,85 @@
|
|
|
1
|
+
@use '../../variables/bp';
|
|
2
|
+
|
|
3
|
+
.hidden {
|
|
4
|
+
display: none !important;
|
|
5
|
+
}
|
|
6
|
+
.block {
|
|
7
|
+
display: block !important;
|
|
8
|
+
}
|
|
9
|
+
.relative {
|
|
10
|
+
position: relative !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.flex {
|
|
14
|
+
display: flex;
|
|
15
|
+
&.column {
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
}
|
|
18
|
+
&.center {
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
}
|
|
22
|
+
&.wrap {
|
|
23
|
+
flex-wrap: wrap;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.inline-flex {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
}
|
|
29
|
+
.flex-grow {
|
|
30
|
+
flex-grow: 1 !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.gap-1 {
|
|
34
|
+
gap: 0.25rem;
|
|
35
|
+
}
|
|
36
|
+
.gap-2 {
|
|
37
|
+
gap: 0.5rem;
|
|
38
|
+
}
|
|
39
|
+
.gap-3 {
|
|
40
|
+
gap: 1rem;
|
|
41
|
+
}
|
|
42
|
+
.gap-4 {
|
|
43
|
+
gap: 1.5rem;
|
|
44
|
+
}
|
|
45
|
+
.gap-5 {
|
|
46
|
+
gap: 3rem;
|
|
47
|
+
}
|
|
48
|
+
.gap-form {
|
|
49
|
+
gap: 16px 8px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.grid {
|
|
53
|
+
display: grid;
|
|
54
|
+
&.auto-1 {
|
|
55
|
+
grid-template-columns: auto 1fr;
|
|
56
|
+
}
|
|
57
|
+
&.fr-2 {
|
|
58
|
+
grid-template-columns: repeat(2, 1fr);
|
|
59
|
+
|
|
60
|
+
@media #{bp.$mobile} {
|
|
61
|
+
grid-template-columns: 1fr;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
&.fr-3 {
|
|
65
|
+
grid-template-columns: repeat(3, 1fr);
|
|
66
|
+
|
|
67
|
+
@media #{bp.$mobile} {
|
|
68
|
+
grid-template-columns: 1fr;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
&.fr-4 {
|
|
72
|
+
grid-template-columns: repeat(4, 1fr);
|
|
73
|
+
|
|
74
|
+
@media #{bp.$mobile} {
|
|
75
|
+
grid-template-columns: 1fr;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
&.fr-5 {
|
|
79
|
+
grid-template-columns: repeat(5, 1fr);
|
|
80
|
+
|
|
81
|
+
@media #{bp.$mobile} {
|
|
82
|
+
grid-template-columns: 1fr;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.full-screen {
|
|
2
|
+
height: 100dvh !important;
|
|
3
|
+
width: 100vw !important;
|
|
4
|
+
}
|
|
5
|
+
.full-width {
|
|
6
|
+
width: 100% !important;
|
|
7
|
+
}
|
|
8
|
+
.half-width {
|
|
9
|
+
width: 50% !important;
|
|
10
|
+
}
|
|
11
|
+
.width-fit {
|
|
12
|
+
width: fit-content !important;
|
|
13
|
+
}
|
|
14
|
+
.w-300 {
|
|
15
|
+
width: 300px !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.full-height {
|
|
19
|
+
height: 100% !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.icon24 {
|
|
23
|
+
height: 24px !important;
|
|
24
|
+
width: 24px !important;
|
|
25
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
$aligns: (center, left, right);
|
|
2
|
+
$justifies: (
|
|
3
|
+
around: space-around,
|
|
4
|
+
between: space-between,
|
|
5
|
+
evenly: space-evenly,
|
|
6
|
+
);
|
|
7
|
+
|
|
8
|
+
@each $key in $aligns {
|
|
9
|
+
.align-#{$key} {
|
|
10
|
+
align-items: $key !important;
|
|
11
|
+
}
|
|
12
|
+
.justify-#{$key} {
|
|
13
|
+
justify-content: $key !important;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@each $key, $value in $justifies {
|
|
18
|
+
.justify-#{$key} {
|
|
19
|
+
justify-content: $value !important;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$info-types: (success, info, warning, danger);
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// Margin and Padding
|
|
2
|
+
$spacers: (
|
|
3
|
+
0: 0,
|
|
4
|
+
1: 0.25rem,
|
|
5
|
+
2: 0.5rem,
|
|
6
|
+
3: 1rem,
|
|
7
|
+
4: 1.5rem,
|
|
8
|
+
5: 3rem,
|
|
9
|
+
);
|
|
10
|
+
@each $prop, $abbrev in (margin: m, padding: p) {
|
|
11
|
+
@each $size, $length in $spacers {
|
|
12
|
+
.#{$abbrev}-#{$size} {
|
|
13
|
+
#{$prop}: $length !important;
|
|
14
|
+
}
|
|
15
|
+
.#{$abbrev}t-#{$size},
|
|
16
|
+
.#{$abbrev}y-#{$size} {
|
|
17
|
+
#{$prop}-top: $length !important;
|
|
18
|
+
}
|
|
19
|
+
.#{$abbrev}r-#{$size},
|
|
20
|
+
.#{$abbrev}x-#{$size} {
|
|
21
|
+
#{$prop}-right: $length !important;
|
|
22
|
+
}
|
|
23
|
+
.#{$abbrev}b-#{$size},
|
|
24
|
+
.#{$abbrev}y-#{$size} {
|
|
25
|
+
#{$prop}-bottom: $length !important;
|
|
26
|
+
}
|
|
27
|
+
.#{$abbrev}l-#{$size},
|
|
28
|
+
.#{$abbrev}x-#{$size} {
|
|
29
|
+
#{$prop}-left: $length !important;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Negative margins (e.g., where `.mb-n1` is negative version of `.mb-1`)
|
|
35
|
+
@each $size, $length in $spacers {
|
|
36
|
+
@if $size != 0 {
|
|
37
|
+
.m-n#{$size} {
|
|
38
|
+
margin: -$length !important;
|
|
39
|
+
}
|
|
40
|
+
.mt-n#{$size},
|
|
41
|
+
.my-n#{$size} {
|
|
42
|
+
margin-top: -$length !important;
|
|
43
|
+
}
|
|
44
|
+
.mr-n#{$size},
|
|
45
|
+
.mx-n#{$size} {
|
|
46
|
+
margin-right: -$length !important;
|
|
47
|
+
}
|
|
48
|
+
.mb-n#{$size},
|
|
49
|
+
.my-n#{$size} {
|
|
50
|
+
margin-bottom: -$length !important;
|
|
51
|
+
}
|
|
52
|
+
.ml-n#{$size},
|
|
53
|
+
.mx-n#{$size} {
|
|
54
|
+
margin-left: -$length !important;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Some special margin utils
|
|
60
|
+
.m-auto {
|
|
61
|
+
margin: auto !important;
|
|
62
|
+
}
|
|
63
|
+
.mt-auto,
|
|
64
|
+
.my-auto {
|
|
65
|
+
margin-top: auto !important;
|
|
66
|
+
}
|
|
67
|
+
.mr-auto,
|
|
68
|
+
.mx-auto {
|
|
69
|
+
margin-right: auto !important;
|
|
70
|
+
}
|
|
71
|
+
.mb-auto,
|
|
72
|
+
.my-auto {
|
|
73
|
+
margin-bottom: auto !important;
|
|
74
|
+
}
|
|
75
|
+
.ml-auto,
|
|
76
|
+
.mx-auto {
|
|
77
|
+
margin-left: auto !important;
|
|
78
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.iui-accordions {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
}
|
|
5
|
+
.iui-accordion {
|
|
6
|
+
background: var(--white);
|
|
7
|
+
box-shadow: var(--container-shadow);
|
|
8
|
+
border-radius: var(--container-radius);
|
|
9
|
+
margin: 3px 0;
|
|
10
|
+
color: rgba(0, 0, 0, 0.87);
|
|
11
|
+
font-size: 13px;
|
|
12
|
+
&.compact {
|
|
13
|
+
border-radius: unset;
|
|
14
|
+
margin: unset;
|
|
15
|
+
&:first-child {
|
|
16
|
+
border-top-left-radius: var(--container-radius);
|
|
17
|
+
border-top-right-radius: var(--container-radius);
|
|
18
|
+
}
|
|
19
|
+
&:last-child {
|
|
20
|
+
border-bottom-left-radius: var(--container-radius);
|
|
21
|
+
border-bottom-right-radius: var(--container-radius);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
.summary {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
user-select: none;
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
margin-bottom: 1px;
|
|
31
|
+
padding: 0 16px;
|
|
32
|
+
min-height: 48px;
|
|
33
|
+
}
|
|
34
|
+
.iui-icon {
|
|
35
|
+
color: var(--primary-light);
|
|
36
|
+
max-width: 20px;
|
|
37
|
+
margin-right: 16px;
|
|
38
|
+
margin-bottom: 0;
|
|
39
|
+
font-size: 20px;
|
|
40
|
+
}
|
|
41
|
+
.collapse-icon {
|
|
42
|
+
color: #333;
|
|
43
|
+
height: 12px;
|
|
44
|
+
width: 14px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use '../common/maps/info-types' as *;
|
|
2
|
+
|
|
3
|
+
.iui-alert {
|
|
4
|
+
border-radius: var(--container-radius);
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
padding: 16px;
|
|
8
|
+
font-size: 13px;
|
|
9
|
+
svg {
|
|
10
|
+
height: 20px;
|
|
11
|
+
width: 20px;
|
|
12
|
+
margin-right: 12px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@each $key in $info-types {
|
|
16
|
+
&.#{$key} {
|
|
17
|
+
background-color: var(--#{$key}-100);
|
|
18
|
+
svg {
|
|
19
|
+
color: var(--#{$key});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
.iui-badge-parent {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
}
|
|
5
|
+
.iui-badge {
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
align-items: center;
|
|
12
|
+
transform: scale(1) translate(50%, -50%);
|
|
13
|
+
transform-origin: 100% 0%;
|
|
14
|
+
border-radius: 100%;
|
|
15
|
+
&.primary {
|
|
16
|
+
color: var(--text-inverse);
|
|
17
|
+
border: 2px solid white;
|
|
18
|
+
background-color: var(--primary);
|
|
19
|
+
}
|
|
20
|
+
// SIZES
|
|
21
|
+
&.s {
|
|
22
|
+
font-size: 10px;
|
|
23
|
+
height: 18px;
|
|
24
|
+
width: 18px;
|
|
25
|
+
}
|
|
26
|
+
&.m {
|
|
27
|
+
font-size: 11px;
|
|
28
|
+
height: 21px;
|
|
29
|
+
width: 21px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.iui-pill-badge {
|
|
34
|
+
padding: 5px 11px;
|
|
35
|
+
border-radius: 20px;
|
|
36
|
+
width: fit-content;
|
|
37
|
+
font-size: 12px;
|
|
38
|
+
&.success {
|
|
39
|
+
background-color: var(--success-200);
|
|
40
|
+
}
|
|
41
|
+
&.info {
|
|
42
|
+
background-color: var(--info-200);
|
|
43
|
+
}
|
|
44
|
+
&.warning {
|
|
45
|
+
background-color: var(--warning-200);
|
|
46
|
+
}
|
|
47
|
+
&.danger {
|
|
48
|
+
background-color: var(--danger-200);
|
|
49
|
+
}
|
|
50
|
+
&.gray {
|
|
51
|
+
background-color: var(--neutral-200);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.iui-dot-badge {
|
|
56
|
+
min-width: 13px;
|
|
57
|
+
max-width: 13px;
|
|
58
|
+
min-height: 13px;
|
|
59
|
+
max-height: 13px;
|
|
60
|
+
border-radius: 50%;
|
|
61
|
+
&.success {
|
|
62
|
+
background-color: var(--success);
|
|
63
|
+
}
|
|
64
|
+
&.info {
|
|
65
|
+
background-color: var(--info);
|
|
66
|
+
}
|
|
67
|
+
&.warning {
|
|
68
|
+
background-color: var(--warning);
|
|
69
|
+
}
|
|
70
|
+
&.danger {
|
|
71
|
+
background-color: var(--danger);
|
|
72
|
+
}
|
|
73
|
+
&.gray {
|
|
74
|
+
background-color: var(--neutral-400);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
$btn-colors: (primary, neutral, danger);
|
|
4
|
+
|
|
5
|
+
.iui-btn {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: 8px;
|
|
10
|
+
border-radius: 100px;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
user-select: none;
|
|
13
|
+
background: none;
|
|
14
|
+
transition: border-color 250ms, background-color 250ms;
|
|
15
|
+
|
|
16
|
+
@each $key in $btn-colors {
|
|
17
|
+
&.#{$key} {
|
|
18
|
+
color: var(--#{$key}-600);
|
|
19
|
+
&.solid {
|
|
20
|
+
background-color: var(--#{$key});
|
|
21
|
+
border-color: var(--#{$key});
|
|
22
|
+
}
|
|
23
|
+
&.outlined {
|
|
24
|
+
border-color: var(--#{$key}-600);
|
|
25
|
+
}
|
|
26
|
+
&:not(:disabled) {
|
|
27
|
+
&:focus-visible {
|
|
28
|
+
box-shadow: 0px 0px 1px 3px var(--#{$key}-200);
|
|
29
|
+
}
|
|
30
|
+
&:hover,
|
|
31
|
+
&:active,
|
|
32
|
+
&.active {
|
|
33
|
+
&.solid {
|
|
34
|
+
border-color: var(--#{$key}-600);
|
|
35
|
+
background-color: var(--#{$key}-600);
|
|
36
|
+
}
|
|
37
|
+
&:not(.solid) {
|
|
38
|
+
// color: var(--#{$key}-700);
|
|
39
|
+
background-color: var(--#{$key}-100);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:not(.simple) {
|
|
47
|
+
border: 1px solid var(--neutral-300);
|
|
48
|
+
}
|
|
49
|
+
&.solid {
|
|
50
|
+
color: var(--text-inverse);
|
|
51
|
+
}
|
|
52
|
+
&:disabled {
|
|
53
|
+
opacity: 0.5;
|
|
54
|
+
cursor: default;
|
|
55
|
+
}
|
|
56
|
+
&:not(:disabled):active {
|
|
57
|
+
transform: translateY(2px);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
///// Text Button /////
|
|
62
|
+
$text-button-sizes: (
|
|
63
|
+
xs: (
|
|
64
|
+
font-size: 10px,
|
|
65
|
+
svg: 12px,
|
|
66
|
+
padding: 4px 10px,
|
|
67
|
+
gap: 6px,
|
|
68
|
+
),
|
|
69
|
+
s: (
|
|
70
|
+
font-size: 12px,
|
|
71
|
+
svg: 14px,
|
|
72
|
+
padding: 6px 12px,
|
|
73
|
+
),
|
|
74
|
+
m: (
|
|
75
|
+
font-size: 14px,
|
|
76
|
+
svg: 16px,
|
|
77
|
+
padding: 8px 14px,
|
|
78
|
+
),
|
|
79
|
+
l: (
|
|
80
|
+
font-size: 16px,
|
|
81
|
+
svg: 20px,
|
|
82
|
+
padding: 12px 18px,
|
|
83
|
+
),
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
.iui-text-btn {
|
|
87
|
+
// letter-spacing: 0.4px;
|
|
88
|
+
font-weight: 600;
|
|
89
|
+
white-space: nowrap;
|
|
90
|
+
|
|
91
|
+
// Sizes
|
|
92
|
+
@each $size, $vars in $text-button-sizes {
|
|
93
|
+
&.#{$size} {
|
|
94
|
+
font-size: map.get($vars, font-size);
|
|
95
|
+
padding: map.get($vars, padding);
|
|
96
|
+
gap: map.get($vars, gap);
|
|
97
|
+
|
|
98
|
+
@if map.has-key($vars, height) {
|
|
99
|
+
height: map.get($vars, height);
|
|
100
|
+
}
|
|
101
|
+
svg {
|
|
102
|
+
height: map.get($vars, svg);
|
|
103
|
+
width: map.get($vars, svg);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
///// Icon Button /////
|
|
110
|
+
$icon-button-sizes: (
|
|
111
|
+
s: (
|
|
112
|
+
size: 32px,
|
|
113
|
+
svg: 16px,
|
|
114
|
+
),
|
|
115
|
+
m: (
|
|
116
|
+
size: 40px,
|
|
117
|
+
svg: 20px,
|
|
118
|
+
),
|
|
119
|
+
l: (
|
|
120
|
+
size: 44px,
|
|
121
|
+
svg: 24px,
|
|
122
|
+
),
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
.iui-icon-btn {
|
|
126
|
+
@each $size, $vars in $icon-button-sizes {
|
|
127
|
+
&.#{$size} {
|
|
128
|
+
min-height: map.get($vars, size);
|
|
129
|
+
min-width: map.get($vars, size);
|
|
130
|
+
height: map.get($vars, size);
|
|
131
|
+
width: map.get($vars, size);
|
|
132
|
+
svg {
|
|
133
|
+
height: map.get($vars, svg);
|
|
134
|
+
width: map.get($vars, svg);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.iui-card {
|
|
2
|
+
box-shadow: var(--container-shadow);
|
|
3
|
+
border-radius: var(--container-radius);
|
|
4
|
+
background: var(--white);
|
|
5
|
+
& > .content {
|
|
6
|
+
&.s {
|
|
7
|
+
padding: 10px;
|
|
8
|
+
}
|
|
9
|
+
&.l {
|
|
10
|
+
padding: 40px 30px;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.iui-card-header {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
font-weight: 700;
|
|
20
|
+
padding-left: 15px;
|
|
21
|
+
margin: 0 10px;
|
|
22
|
+
height: 45px;
|
|
23
|
+
border-bottom: 1px solid var(--neutral-700);
|
|
24
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
@use '../variables/bp';
|
|
2
|
+
@use '../common/maps/info-types' as *;
|
|
3
|
+
|
|
4
|
+
$dialog-sizes: (
|
|
5
|
+
m: 400px,
|
|
6
|
+
l: 750px,
|
|
7
|
+
xl: 1200px,
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
.iui-dialog {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
position: fixed;
|
|
15
|
+
z-index: 1000;
|
|
16
|
+
inset: 0;
|
|
17
|
+
background-color: var(--neutral-t);
|
|
18
|
+
animation: fade-in 200ms forwards;
|
|
19
|
+
backdrop-filter: blur(8px);
|
|
20
|
+
&.closing {
|
|
21
|
+
animation: fade-out 200ms forwards;
|
|
22
|
+
display: flex;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.iui-dialog-container {
|
|
27
|
+
background-color: var(--white);
|
|
28
|
+
border-radius: 16px;
|
|
29
|
+
min-width: 400px;
|
|
30
|
+
max-width: 98vw;
|
|
31
|
+
animation: scale-in 200ms forwards;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
.iui-dialog-header {
|
|
34
|
+
display: flex;
|
|
35
|
+
gap: 16px;
|
|
36
|
+
h1 {
|
|
37
|
+
font-size: 18px;
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
}
|
|
40
|
+
.iui-dialog-desc {
|
|
41
|
+
margin-top: 8px;
|
|
42
|
+
color: var(--text);
|
|
43
|
+
word-break: break-word;
|
|
44
|
+
white-space: pre-line;
|
|
45
|
+
}
|
|
46
|
+
.iui-dialog-title {
|
|
47
|
+
display: flex;
|
|
48
|
+
gap: 16px;
|
|
49
|
+
width: 100%;
|
|
50
|
+
justify-content: space-between;
|
|
51
|
+
align-items: baseline;
|
|
52
|
+
.close-icon {
|
|
53
|
+
margin: -14px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@each $key, $value in $dialog-sizes {
|
|
59
|
+
&.#{$key} {
|
|
60
|
+
width: $value;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
.dialog-type-icon {
|
|
64
|
+
min-height: 24px;
|
|
65
|
+
min-width: 24px;
|
|
66
|
+
padding: 12px;
|
|
67
|
+
border-radius: 24px;
|
|
68
|
+
@each $key in $info-types {
|
|
69
|
+
&.#{$key} {
|
|
70
|
+
color: var(--#{$key});
|
|
71
|
+
background-color: var(--#{$key}-100);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.iui-dialog-content {
|
|
78
|
+
max-height: 80vh;
|
|
79
|
+
padding: 24px;
|
|
80
|
+
&:not(.no-overflow) {
|
|
81
|
+
overflow: auto;
|
|
82
|
+
overscroll-behavior: none;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.iui-dialog-actions {
|
|
87
|
+
display: flex;
|
|
88
|
+
gap: 8px;
|
|
89
|
+
justify-content: right;
|
|
90
|
+
padding: 24px;
|
|
91
|
+
border-top: var(--border);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@media #{bp.$mobile} {
|
|
95
|
+
.iui-dialog-container {
|
|
96
|
+
height: 100dvh;
|
|
97
|
+
width: 100vw !important;
|
|
98
|
+
max-width: 100vw;
|
|
99
|
+
border-radius: 0;
|
|
100
|
+
display: flex;
|
|
101
|
+
flex-direction: column;
|
|
102
|
+
justify-content: space-between;
|
|
103
|
+
.iui-dialog-content {
|
|
104
|
+
padding: 16px;
|
|
105
|
+
}
|
|
106
|
+
.iui-dialog-actions {
|
|
107
|
+
padding: 16px;
|
|
108
|
+
flex-direction: column-reverse;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|