@rkosafo/cai.components 0.0.7 → 0.0.9
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/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from './ui/tableLoader/index.js';
|
|
|
22
22
|
export * from './ui/alertDialog/index.js';
|
|
23
23
|
export * from './ui/accordion/index.js';
|
|
24
24
|
export * from './ui/tab/index.js';
|
|
25
|
+
export * from "./ui/icons/index.js";
|
|
25
26
|
export * from './forms/input/index.js';
|
|
26
27
|
export * from './forms/label/index.js';
|
|
27
28
|
export * from './forms/datepicker/index.js';
|
|
@@ -39,4 +40,5 @@ export * from './forms/FormRadio/index.js';
|
|
|
39
40
|
export * from './builders/filters/index.js';
|
|
40
41
|
export * from './types/index.js';
|
|
41
42
|
export * from './utils/index.js';
|
|
43
|
+
import "../styles/tf-layout.css";
|
|
42
44
|
export { YouTube, BaseEditor };
|
package/dist/index.js
CHANGED
|
@@ -23,6 +23,7 @@ export * from './ui/tableLoader/index.js';
|
|
|
23
23
|
export * from './ui/alertDialog/index.js';
|
|
24
24
|
export * from './ui/accordion/index.js';
|
|
25
25
|
export * from './ui/tab/index.js';
|
|
26
|
+
export * from "./ui/icons/index.js";
|
|
26
27
|
export * from './forms/input/index.js';
|
|
27
28
|
export * from './forms/label/index.js';
|
|
28
29
|
export * from './forms/datepicker/index.js';
|
|
@@ -40,4 +41,6 @@ export * from './forms/FormRadio/index.js';
|
|
|
40
41
|
export * from './builders/filters/index.js';
|
|
41
42
|
export * from './types/index.js';
|
|
42
43
|
export * from './utils/index.js';
|
|
44
|
+
// styles
|
|
45
|
+
import "../styles/tf-layout.css";
|
|
43
46
|
export { YouTube, BaseEditor };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Icons } from './Icons.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Icons } from './Icons.svelte';
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rkosafo/cai.components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"!dist/**/*.test.*",
|
|
7
|
+
"src/styles/tf-layout.css",
|
|
7
8
|
"!dist/**/*.spec.*"
|
|
8
9
|
],
|
|
9
10
|
"sideEffects": [
|
|
@@ -16,7 +17,8 @@
|
|
|
16
17
|
".": {
|
|
17
18
|
"types": "./dist/index.d.ts",
|
|
18
19
|
"svelte": "./dist/index.js"
|
|
19
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"./tf-layout.css": "./src/styles/tf-layout.css"
|
|
20
22
|
},
|
|
21
23
|
"peerDependencies": {
|
|
22
24
|
"svelte": "^5.0.0"
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--poppins: 'Poppins', sans-serif;
|
|
5
|
+
--lato: 'Lato', sans-serif;
|
|
6
|
+
|
|
7
|
+
--light: #F9F9F9;
|
|
8
|
+
--blue: #3C91E6;
|
|
9
|
+
--light-blue: #CFE8FF;
|
|
10
|
+
--grey: #f4f3ef;
|
|
11
|
+
--dark-grey: #AAAAAA;
|
|
12
|
+
--dark: #342E37;
|
|
13
|
+
--red: #DB504A;
|
|
14
|
+
--yellow: #FFCE26;
|
|
15
|
+
--light-yellow: #FFF2C6;
|
|
16
|
+
--orange: #FD7238;
|
|
17
|
+
--light-orange: #FFE0D3;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* tf-sidebar */
|
|
21
|
+
#tf-sidebar {
|
|
22
|
+
position: fixed;
|
|
23
|
+
/* top: 0;
|
|
24
|
+
left: 0; */
|
|
25
|
+
width: 240px;
|
|
26
|
+
height: 100%;
|
|
27
|
+
background: var(--light);
|
|
28
|
+
z-index: 2000;
|
|
29
|
+
font-family: var(--lato);
|
|
30
|
+
transition: .3s ease;
|
|
31
|
+
overflow-x: hidden;
|
|
32
|
+
scrollbar-width: none;
|
|
33
|
+
}
|
|
34
|
+
#tf-sidebar::--webkit-scrollbar {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
|
37
|
+
#tf-sidebar.hide {
|
|
38
|
+
width: 60px;
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
#tf-sidebar .brand {
|
|
42
|
+
font-size: 24px;
|
|
43
|
+
font-weight: 700;
|
|
44
|
+
/* height: 68px; */
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
color: var(--blue);
|
|
48
|
+
position: sticky;
|
|
49
|
+
top: 0;
|
|
50
|
+
left: 0;
|
|
51
|
+
background: var(--light);
|
|
52
|
+
z-index: 500;
|
|
53
|
+
padding-bottom: 20px;
|
|
54
|
+
box-sizing: content-box;
|
|
55
|
+
}
|
|
56
|
+
/* #tf-sidebar .brand .bx {
|
|
57
|
+
min-width: 60px;
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
} */
|
|
61
|
+
#tf-sidebar .side-menu {
|
|
62
|
+
width: 100%;
|
|
63
|
+
}
|
|
64
|
+
#tf-sidebar .side-menu li {
|
|
65
|
+
height: 48px;
|
|
66
|
+
background: transparent;
|
|
67
|
+
margin-left: 6px;
|
|
68
|
+
border-radius: 48px 0 0 48px;
|
|
69
|
+
padding: 4px;
|
|
70
|
+
}
|
|
71
|
+
#tf-sidebar .side-menu li.active {
|
|
72
|
+
background: var(--grey);
|
|
73
|
+
position: relative;
|
|
74
|
+
}
|
|
75
|
+
#tf-sidebar .side-menu li.active::before {
|
|
76
|
+
content: '';
|
|
77
|
+
position: absolute;
|
|
78
|
+
width: 40px;
|
|
79
|
+
height: 40px;
|
|
80
|
+
border-radius: 50%;
|
|
81
|
+
top: -40px;
|
|
82
|
+
right: 0;
|
|
83
|
+
box-shadow: 20px 20px 0 var(--grey);
|
|
84
|
+
z-index: -1;
|
|
85
|
+
}
|
|
86
|
+
#tf-sidebar .side-menu li.active::after {
|
|
87
|
+
content: '';
|
|
88
|
+
position: absolute;
|
|
89
|
+
width: 40px;
|
|
90
|
+
height: 40px;
|
|
91
|
+
border-radius: 50%;
|
|
92
|
+
bottom: -40px;
|
|
93
|
+
right: 0;
|
|
94
|
+
box-shadow: 20px -20px 0 var(--grey);
|
|
95
|
+
z-index: -1;
|
|
96
|
+
}
|
|
97
|
+
#tf-sidebar .side-menu li a {
|
|
98
|
+
width: 100%;
|
|
99
|
+
height: 100%;
|
|
100
|
+
background: var(--light);
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
border-radius: 48px;
|
|
104
|
+
font-size: 16px;
|
|
105
|
+
color: var(--dark);
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
overflow-x: hidden;
|
|
108
|
+
}
|
|
109
|
+
#tf-sidebar .side-menu.top li.active a {
|
|
110
|
+
color: var(--blue);
|
|
111
|
+
}
|
|
112
|
+
#tf-sidebar.hide .side-menu li a {
|
|
113
|
+
width: calc(48px - (4px * 2));
|
|
114
|
+
transition: width .3s ease;
|
|
115
|
+
}
|
|
116
|
+
#tf-sidebar .side-menu li a.logout {
|
|
117
|
+
color: var(--red);
|
|
118
|
+
}
|
|
119
|
+
#tf-sidebar .side-menu.top li a:hover {
|
|
120
|
+
color: var(--blue);
|
|
121
|
+
}
|
|
122
|
+
#tf-sidebar .side-menu li a .bx {
|
|
123
|
+
min-width: calc(60px - ((4px + 6px) * 2));
|
|
124
|
+
display: flex;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
#tf-content {
|
|
130
|
+
position: relative;
|
|
131
|
+
width: calc(100% - 230px);
|
|
132
|
+
left: 240px;
|
|
133
|
+
transition: .3s ease;
|
|
134
|
+
}
|
|
135
|
+
#tf-sidebar.hide ~ #tf-content {
|
|
136
|
+
width: calc(100% - 60px);
|
|
137
|
+
left: 60px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
/* NAVBAR */
|
|
142
|
+
#tf-content nav {
|
|
143
|
+
height: 56px;
|
|
144
|
+
background: var(--light);
|
|
145
|
+
padding: 0 24px;
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
grid-gap: 24px;
|
|
149
|
+
font-family: var(--lato);
|
|
150
|
+
position: sticky;
|
|
151
|
+
top: 0;
|
|
152
|
+
left: 0;
|
|
153
|
+
z-index: 1000;
|
|
154
|
+
}
|
|
155
|
+
/* curve */
|
|
156
|
+
#tf-content nav::before {
|
|
157
|
+
content: '';
|
|
158
|
+
position: absolute;
|
|
159
|
+
width: 40px;
|
|
160
|
+
height: 40px;
|
|
161
|
+
bottom: -40px;
|
|
162
|
+
left: 0;
|
|
163
|
+
border-radius: 50%;
|
|
164
|
+
box-shadow: -20px -20px 0 var(--light);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
@media screen and (max-width: 768px) {
|
|
169
|
+
#tf-sidebar {
|
|
170
|
+
width: 60px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
#tf-content {
|
|
174
|
+
width: calc(100% - 60px);
|
|
175
|
+
left: 60px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
#tf-content nav .nav-link {
|
|
179
|
+
display: none;
|
|
180
|
+
}
|
|
181
|
+
}
|