@rt-tools/ui-kit 0.0.4
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/README.md +99 -0
- package/fesm2022/rt-tools-ui-kit.mjs +5143 -0
- package/fesm2022/rt-tools-ui-kit.mjs.map +1 -0
- package/package.json +43 -0
- package/rt-tools-ui-kit-0.0.4.tgz +0 -0
- package/src/lib/ui-kit/action-bar/components/bar/rtui-action-bar.component.scss +104 -0
- package/src/lib/ui-kit/action-bar/components/container/rtui-action-bar-container.component.scss +12 -0
- package/src/lib/ui-kit/aside/components/container/aside-container.component.scss +20 -0
- package/src/lib/ui-kit/aside/components/error-notification/aside-error-box.component.scss +37 -0
- package/src/lib/ui-kit/aside/components/panel/aside-panel.component.scss +243 -0
- package/src/lib/ui-kit/aside/stories/aside-component/test-aside.component.scss +4 -0
- package/src/lib/ui-kit/buttons/icon-round/rtui-round-icon-button.component.scss +44 -0
- package/src/lib/ui-kit/buttons/multi-button/rtui-multi-button.component.scss +92 -0
- package/src/lib/ui-kit/checkbox/rtui-checkbox.component.scss +68 -0
- package/src/lib/ui-kit/checkbox/stories/component/test-checkbox.component.scss +9 -0
- package/src/lib/ui-kit/dynamic-selectors/components/actions/rtui-dynamic-selector-list-actions.component.scss +63 -0
- package/src/lib/ui-kit/dynamic-selectors/components/dynamic-input/rtui-dynamic-input.component.scss +3 -0
- package/src/lib/ui-kit/dynamic-selectors/components/dynamic-selector/rtui-dynamic-selector.component.scss +7 -0
- package/src/lib/ui-kit/dynamic-selectors/components/multi-selector-popup/rtui-multi-selector-popup.component.scss +229 -0
- package/src/lib/ui-kit/dynamic-selectors/components/placeholder/rtui-dynamic-selector-placeholder.component.scss +59 -0
- package/src/lib/ui-kit/dynamic-selectors/components/selected-list/rtui-dynamic-selector-selected-list.component.scss +35 -0
- package/src/lib/ui-kit/dynamic-selectors/strories/component/input/test-dynamic-input.component.scss +16 -0
- package/src/lib/ui-kit/dynamic-selectors/strories/component/selector/test-selector.component.scss +22 -0
- package/src/lib/ui-kit/file-uploader/rtui-file-upload.component.scss +69 -0
- package/src/lib/ui-kit/file-uploader/stories/component/test-file-upload.component.scss +6 -0
- package/src/lib/ui-kit/header/header.component.scss +0 -0
- package/src/lib/ui-kit/header/stories/component/test-header.component.scss +14 -0
- package/src/lib/ui-kit/image-uploader/image-uploader/rtui-image-upload.component.scss +93 -0
- package/src/lib/ui-kit/image-uploader/stories/component/test-image-upload.component.scss +9 -0
- package/src/lib/ui-kit/info-badge/info-badge.component.scss +62 -0
- package/src/lib/ui-kit/info-badge/stories/component/test-info-badge/test-info-badge.component.scss +11 -0
- package/src/lib/ui-kit/modal/modal.component.scss +115 -0
- package/src/lib/ui-kit/modal/stories/test-modal.component.scss +4 -0
- package/src/lib/ui-kit/popover/rtui-popover-container.component.scss +13 -0
- package/src/lib/ui-kit/scrollable/scrollable-container.component.scss +64 -0
- package/src/lib/ui-kit/side-menu/menu/rtui-side-menu.component.scss +185 -0
- package/src/lib/ui-kit/side-menu/menu-sub-item/rtui-side-menu-sub-item.component.scss +97 -0
- package/src/lib/ui-kit/side-menu/stories/component/test-side-menu-wrapper.component.scss +48 -0
- package/src/lib/ui-kit/snack-bar/snack-bar.component.scss +100 -0
- package/src/lib/ui-kit/snack-bar/stories/component/test-snack-bar.component.scss +30 -0
- package/src/lib/ui-kit/spinner/spinner.component.scss +49 -0
- package/src/lib/ui-kit/table/components/clear-search-button/rtui-clear-button.component.scss +50 -0
- package/src/lib/ui-kit/table/components/pagination-view/rtui-pagination.component.scss +191 -0
- package/src/lib/ui-kit/table/components/table/rtui-table.component.scss +4 -0
- package/src/lib/ui-kit/table/components/table-base-cell/table-base-cell.component.scss +133 -0
- package/src/lib/ui-kit/table/components/table-config-aside/rt-table-config-aside.component.scss +4 -0
- package/src/lib/ui-kit/table/components/table-container/table-container.component.scss +212 -0
- package/src/lib/ui-kit/table/components/table-header-cell/table-header-cell.component.scss +115 -0
- package/src/lib/ui-kit/table/components/table-header-filter-cell/table-header-filter-cell.component.scss +11 -0
- package/src/lib/ui-kit/table/dynamic-list.component.scss +6 -0
- package/src/lib/ui-kit/table/stories/dynamic-list/test-dynamic-list.component.scss +15 -0
- package/src/lib/ui-kit/table/stories/pagination/test-pagination-component.scss +16 -0
- package/src/lib/ui-kit/table/stories/table/test-table-component.scss +7 -0
- package/src/lib/ui-kit/toggle/rtui-toggle.component.scss +174 -0
- package/src/lib/ui-kit/toggle/stories/component/test-toggle.component.scss +9 -0
- package/src/lib/ui-kit/toolbar/toolbar.component.scss +99 -0
- package/src/styles/base/_base.scss +71 -0
- package/src/styles/base/_mixin.scss +66 -0
- package/src/styles/base/_variables.scss +34 -0
- package/src/styles/components/_action-bar.scss +84 -0
- package/src/styles/components/_button.scss +364 -0
- package/src/styles/components/_checkbox.scss +40 -0
- package/src/styles/components/_dynamic-selectors.scss +134 -0
- package/src/styles/components/_form.scss +90 -0
- package/src/styles/components/_rtui_button.scss +452 -0
- package/src/styles/components/_snackbar.scss +103 -0
- package/src/styles/components/_table.scss +239 -0
- package/src/styles/main.scss +14 -0
- package/types/rt-tools-ui-kit.d.ts +1875 -0
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
@use '../base/mixin' as mixins;
|
|
2
|
+
|
|
3
|
+
$table: (
|
|
4
|
+
header: (
|
|
5
|
+
z-index: 2,
|
|
6
|
+
font-size: 0.875rem,
|
|
7
|
+
background-color: var(--mat-form-field-filled-container-color),
|
|
8
|
+
),
|
|
9
|
+
header-row-last-child: (
|
|
10
|
+
border-bottom: var(--rt-table-header-cell-wrapper-border-width) solid var(--clr-black-20),
|
|
11
|
+
),
|
|
12
|
+
body: (
|
|
13
|
+
font-size: 0.875rem,
|
|
14
|
+
background-color: transparent,
|
|
15
|
+
),
|
|
16
|
+
row: (
|
|
17
|
+
height: 3rem,
|
|
18
|
+
color: var(--clr-txt),
|
|
19
|
+
border-bottom: var(--rt-table-row-border-bottom-width) solid var(--clr-black-20),
|
|
20
|
+
background-color: transparent,
|
|
21
|
+
),
|
|
22
|
+
row-hover: (
|
|
23
|
+
border-bottom: var(--rt-table-row-border-bottom-width) solid var(--clr-blue-100),
|
|
24
|
+
transition: 0.2s,
|
|
25
|
+
),
|
|
26
|
+
row-active: (
|
|
27
|
+
border-bottom: var(--rt-table-row-border-bottom-width) solid var(--clr-blue-100),
|
|
28
|
+
),
|
|
29
|
+
header-cell-wrapper: (
|
|
30
|
+
padding: 0.625rem,
|
|
31
|
+
text-color: var(--clr-txt),
|
|
32
|
+
font-size: 1rem,
|
|
33
|
+
font-weight: 500,
|
|
34
|
+
text-align: left,
|
|
35
|
+
line-height: 1.2,
|
|
36
|
+
border-right: var(--rt-table-header-cell-wrapper-border-width) solid var(--clr-black-40),
|
|
37
|
+
background-color: var(--clr-white-100),
|
|
38
|
+
),
|
|
39
|
+
header-filterable-cell-wrapper: (
|
|
40
|
+
padding: 0.25rem 0.5rem,
|
|
41
|
+
),
|
|
42
|
+
base-cell-wrapper: (
|
|
43
|
+
padding: 0.625rem,
|
|
44
|
+
),
|
|
45
|
+
base-cell-wrapper-last-child: (
|
|
46
|
+
padding: 0.625rem 4rem 0.625rem 0.625rem,
|
|
47
|
+
),
|
|
48
|
+
actions: (
|
|
49
|
+
z-index: 1,
|
|
50
|
+
),
|
|
51
|
+
actions-container: (
|
|
52
|
+
background-color: var(--clr-white-100),
|
|
53
|
+
),
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
:root {
|
|
57
|
+
@each $element, $elements in $table {
|
|
58
|
+
@each $style-token, $value in $elements {
|
|
59
|
+
#{mixins.generateCssVar('table', #{$element}, #{$style-token})}: #{$value};
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// initial table container scrollbar styles
|
|
64
|
+
--rt-table-container-content-scrollbar-vertical-width: 0;
|
|
65
|
+
--rt-table-container-content-scrollbar-horizontal-height: 12px;
|
|
66
|
+
|
|
67
|
+
--rt-table-row-border-bottom-width: 1px;
|
|
68
|
+
--rt-table-header-cell-wrapper-border-width: 1px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// TABLE
|
|
72
|
+
.c-table {
|
|
73
|
+
width: 100%;
|
|
74
|
+
|
|
75
|
+
border-collapse: collapse;
|
|
76
|
+
|
|
77
|
+
overflow-x: scroll;
|
|
78
|
+
overflow-y: scroll;
|
|
79
|
+
|
|
80
|
+
thead {
|
|
81
|
+
position: sticky;
|
|
82
|
+
top: 0;
|
|
83
|
+
z-index: var(--rt-table-header-z-index);
|
|
84
|
+
font-size: var(--rt-table-header-font-size);
|
|
85
|
+
|
|
86
|
+
tr {
|
|
87
|
+
&:last-child {
|
|
88
|
+
border-bottom: var(--rt-table-header-row-last-child-border-bottom);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
th {
|
|
92
|
+
background-color: color-mix(in srgb, var(--rt-table-header-background-color), var(--clr-white-100) 50%);
|
|
93
|
+
|
|
94
|
+
&:not(.c-table__cell--filterable):not(.c-table__cell--empty) {
|
|
95
|
+
background-color: var(--rt-table-header-background-color);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&:hover {
|
|
99
|
+
&:not(.c-table__cell--selectable):not(.c-table__cell--filterable) {
|
|
100
|
+
background-color: color-mix(in srgb, var(--rt-table-header-background-color), var(--clr-white-100) 30%);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
tbody {
|
|
108
|
+
font-size: var(--rt-table-body-font-size);
|
|
109
|
+
background-color: var(--rt-table-body-background-color);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// ROW
|
|
114
|
+
.c-table__row {
|
|
115
|
+
height: var(--rt-table-row-height);
|
|
116
|
+
color: var(--rt-table-row-color);
|
|
117
|
+
border-bottom: var(--rt-table-row-border-bottom);
|
|
118
|
+
background-color: var(--rt-table-row-background-color);
|
|
119
|
+
|
|
120
|
+
transform: translate(0);
|
|
121
|
+
|
|
122
|
+
&--active {
|
|
123
|
+
border-bottom: var(--rt-table-row-active-border-bottom);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&--clickable {
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&:hover {
|
|
131
|
+
border-bottom: var(--rt-table-row-hover-border-bottom);
|
|
132
|
+
transition: var(--rt-table-row-hover-transition);
|
|
133
|
+
|
|
134
|
+
.c-table-actions {
|
|
135
|
+
visibility: visible;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// CELL
|
|
141
|
+
th.c-table__cell {
|
|
142
|
+
width: fit-content;
|
|
143
|
+
height: 100%;
|
|
144
|
+
|
|
145
|
+
position: relative;
|
|
146
|
+
|
|
147
|
+
pointer-events: none;
|
|
148
|
+
|
|
149
|
+
padding: var(--rt-table-header-cell-wrapper-padding);
|
|
150
|
+
color: var(--rt-table-header-cell-wrapper-text-color);
|
|
151
|
+
font-size: var(--rt-table-header-cell-wrapper-font-size);
|
|
152
|
+
font-weight: var(--rt-table-header-cell-wrapper-font-weight);
|
|
153
|
+
text-align: var(--rt-table-header-cell-wrapper-text-align);
|
|
154
|
+
line-height: var(--rt-table-header-cell-wrapper-line-height);
|
|
155
|
+
background-color: var(--rt-table-header-cell-wrapper-background-color);
|
|
156
|
+
|
|
157
|
+
&--sortable,
|
|
158
|
+
&--selectable,
|
|
159
|
+
&--filterable {
|
|
160
|
+
pointer-events: auto;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&--filterable {
|
|
164
|
+
padding: var(--rt-table-header-filterable-cell-wrapper-padding);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&:not(:last-child):not(&--selectable):not(&--empty) {
|
|
168
|
+
&::after {
|
|
169
|
+
content: '';
|
|
170
|
+
position: absolute;
|
|
171
|
+
right: 0;
|
|
172
|
+
top: 25%;
|
|
173
|
+
height: 50%;
|
|
174
|
+
border-right: var(--rt-table-header-cell-wrapper-border-right);
|
|
175
|
+
pointer-events: none;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
td.c-table__cell {
|
|
181
|
+
width: fit-content;
|
|
182
|
+
height: 100%;
|
|
183
|
+
|
|
184
|
+
padding: var(--rt-table-base-cell-wrapper-padding);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// ROW ACTIONS
|
|
188
|
+
.c-table-actions {
|
|
189
|
+
width: 100%;
|
|
190
|
+
height: var(--rt-table-row-height);
|
|
191
|
+
|
|
192
|
+
position: absolute;
|
|
193
|
+
right: 0;
|
|
194
|
+
top: 0;
|
|
195
|
+
z-index: var(--rt-table-actions-z-index);
|
|
196
|
+
|
|
197
|
+
display: flex;
|
|
198
|
+
justify-content: flex-end;
|
|
199
|
+
align-items: center;
|
|
200
|
+
|
|
201
|
+
pointer-events: none;
|
|
202
|
+
|
|
203
|
+
&__container {
|
|
204
|
+
position: sticky;
|
|
205
|
+
|
|
206
|
+
right: 0;
|
|
207
|
+
width: fit-content;
|
|
208
|
+
height: calc(var(--rt-table-row-height) - var(--rt-table-row-border-bottom-width) - var(--rt-table-row-border-bottom-width));
|
|
209
|
+
|
|
210
|
+
display: flex;
|
|
211
|
+
justify-content: flex-end;
|
|
212
|
+
align-items: center;
|
|
213
|
+
gap: 0.25rem;
|
|
214
|
+
padding: 0 0.25rem 0 1.25rem;
|
|
215
|
+
|
|
216
|
+
overflow: hidden;
|
|
217
|
+
|
|
218
|
+
background: linear-gradient(
|
|
219
|
+
to right,
|
|
220
|
+
transparent 0%,
|
|
221
|
+
color-mix(in srgb, var(--rt-table-actions-container-background-color) 30%, var(--rt-table-actions-container-background-color))
|
|
222
|
+
10%,
|
|
223
|
+
var(--rt-table-actions-container-background-color) 20%,
|
|
224
|
+
var(--rt-table-actions-container-background-color) 100%
|
|
225
|
+
);
|
|
226
|
+
pointer-events: none;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
&__action {
|
|
230
|
+
position: sticky;
|
|
231
|
+
pointer-events: auto;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@media (hover: hover) {
|
|
235
|
+
&--hidden {
|
|
236
|
+
visibility: hidden;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Base
|
|
2
|
+
@forward 'base/variables' as vars-*;
|
|
3
|
+
@forward 'base/mixin' as mixins-*;
|
|
4
|
+
@forward 'base/base';
|
|
5
|
+
|
|
6
|
+
// Components
|
|
7
|
+
@forward 'components/form';
|
|
8
|
+
@forward 'components/button';
|
|
9
|
+
@forward 'components/rtui_button';
|
|
10
|
+
@forward 'components/table';
|
|
11
|
+
@forward 'components/snackbar';
|
|
12
|
+
@forward 'components/dynamic-selectors';
|
|
13
|
+
@forward 'components/action-bar';
|
|
14
|
+
@forward 'components/checkbox';
|