@uxf/cms 10.0.0-beta.13 → 10.0.0-beta.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/cms",
3
- "version": "10.0.0-beta.13",
3
+ "version": "10.0.0-beta.15",
4
4
  "description": "UXF Cms",
5
5
  "author": "UXFans <dev@uxf.cz>",
6
6
  "homepage": "https://gitlab.com/uxf-npm/cms#readme",
@@ -40,14 +40,14 @@
40
40
  "@types/qs": "^6.9.7",
41
41
  "@types/react": "18.2.6",
42
42
  "@types/react-dom": "18.2.4",
43
- "@uxf/core": "10.0.0-beta.9",
44
- "@uxf/data-grid": "10.0.0-beta.12",
43
+ "@uxf/core": "10.0.0-beta.15",
44
+ "@uxf/data-grid": "10.0.0-beta.15",
45
45
  "@uxf/eslint-config": "^1.3.0",
46
- "@uxf/form": "10.0.0-beta.12",
46
+ "@uxf/form": "10.0.0-beta.15",
47
47
  "@uxf/icons-generator": "^1.3.0",
48
- "@uxf/router": "10.0.0-beta.3",
49
- "@uxf/ui": "10.0.0-beta.12",
50
- "@uxf/wysiwyg": "10.0.0-beta.12",
48
+ "@uxf/router": "10.0.0-beta.15",
49
+ "@uxf/ui": "10.0.0-beta.15",
50
+ "@uxf/wysiwyg": "10.0.0-beta.15",
51
51
  "autoprefixer": "^10.4.14",
52
52
  "axios": "^1.4.0",
53
53
  "axios-hooks": "^4.0.0",
@@ -65,11 +65,11 @@
65
65
  "react-dom": "^18.2.0"
66
66
  },
67
67
  "peerDependencies": {
68
- "@uxf/core": "10.0.0-beta.9",
69
- "@uxf/data-grid": "10.0.0-beta.12",
70
- "@uxf/form": "10.0.0-beta.12",
71
- "@uxf/ui": "10.0.0-beta.12",
72
- "@uxf/wysiwyg": "10.0.0-beta.12",
68
+ "@uxf/core": "10.0.0-beta.15",
69
+ "@uxf/data-grid": "10.0.0-beta.15",
70
+ "@uxf/form": "10.0.0-beta.15",
71
+ "@uxf/ui": "10.0.0-beta.15",
72
+ "@uxf/wysiwyg": "10.0.0-beta.15",
73
73
  "axios": "^1.4.0",
74
74
  "axios-hooks": "^4.0.0",
75
75
  "dayjs": "^1.11.7",
@@ -0,0 +1,30 @@
1
+ .uxf-cms-breadcrumbs {
2
+ @apply uxf-typo-body;
3
+
4
+ align-items: center;
5
+ color: theme("colors.lightLow");
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+ margin-bottom: theme("spacing.4");
9
+
10
+ &__item {
11
+ margin-right: theme("spacing.2");
12
+
13
+ &:last-child {
14
+ margin-right: 0;
15
+ }
16
+ }
17
+
18
+ &__divide-icon {
19
+ margin-right: theme("spacing.2");
20
+ display: inline;
21
+ }
22
+
23
+ &__link {
24
+ @apply transition-colors;
25
+
26
+ &:hover {
27
+ color: theme("colors.lightHigh");
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,124 @@
1
+ .uxf-cms-layout {
2
+ display: flex;
3
+
4
+ &__wrapper {
5
+ display: flex;
6
+ width: 100%;
7
+
8
+ :root .light & {
9
+ background-color: theme('colors.gray.100');
10
+ }
11
+
12
+ :root .dark & {
13
+ background-color: theme('colors.gray.900');
14
+ color: theme('colors.darkHigh');
15
+ }
16
+ }
17
+
18
+ &__main {
19
+ --drawer-width: 264px;
20
+
21
+ min-height: 100vh;
22
+ padding-bottom: theme('spacing.16');
23
+ width: 100%;
24
+
25
+ @media screen(md) {
26
+ margin-left: var(--drawer-width);
27
+ padding-bottom: 0;
28
+ width: calc(100% - var(--drawer-width));
29
+ }
30
+
31
+ }
32
+
33
+ &__loading {
34
+ align-items: center;
35
+ display: flex;
36
+ flex-direction: column;
37
+ height: theme('spacing.96');
38
+ justify-content: center;
39
+
40
+ &-inner {
41
+ text-align: center;
42
+ }
43
+
44
+ &-text {
45
+ margin-top: theme('spacing.2');
46
+ }
47
+ }
48
+
49
+ &__header {
50
+ :root .light & {
51
+ background-color: theme('colors.white');
52
+ }
53
+
54
+ :root .dark & {
55
+ background-color: theme('colors.gray.950');
56
+ }
57
+
58
+ &--sticky {
59
+ box-shadow: theme('boxShadow.md');
60
+ position: sticky;
61
+ top: 0;
62
+ z-index: 10;
63
+
64
+ :root .light & {
65
+ background-color: theme('colors.white');
66
+ }
67
+
68
+ :root .dark & {
69
+ background-color: theme('colors.gray.950');
70
+ }
71
+ }
72
+ }
73
+
74
+ &__toolbar {
75
+ align-items: center;
76
+ background-color: theme('colors.sidebar.background');
77
+ display: flex;
78
+ height: theme('spacing.12');
79
+ justify-content: flex-end;
80
+ padding: 0 theme('spacing.6');
81
+
82
+ :root .light & {
83
+ color: theme('colors.darkMedium');
84
+ }
85
+
86
+ :root .dark & {
87
+ color: theme('colors.lightMedium');
88
+ }
89
+
90
+ }
91
+
92
+ &__container {
93
+ margin: 0 auto;
94
+ padding: 0 theme('spacing.4');
95
+
96
+ @media screen(md) {
97
+ padding-left: theme('spacing.10');
98
+ padding-right: theme('spacing.10');
99
+ }
100
+
101
+ &--basic {
102
+ padding-bottom: theme('spacing.9');
103
+ padding-top: theme('spacing.12');
104
+ }
105
+
106
+ &--narrow {
107
+ max-width: 49.25rem;
108
+ }
109
+
110
+ &--wide {
111
+ max-width: 64rem;
112
+ }
113
+ }
114
+
115
+ &__title-wrapper {
116
+ align-items: center;
117
+ display: flex;
118
+ justify-content: space-between;
119
+ }
120
+
121
+ &__title {
122
+ @apply uxf-typo-h4;
123
+ }
124
+ }
@@ -0,0 +1,52 @@
1
+ .uxf-cms-login-layout {
2
+ align-items: center;
3
+ display: flex;
4
+ flex-direction: column;
5
+ justify-content: center;
6
+ min-height: 100vh;
7
+ padding: theme('spacing.4');
8
+
9
+ :root .light & {
10
+ background-color: theme('colors.gray.100');
11
+ }
12
+
13
+ :root .dark & {
14
+ background-color: theme('colors.gray.900');
15
+ color: theme('colors.darkHigh');
16
+ }
17
+
18
+ &__logo-wrapper {
19
+ margin-bottom: theme('spacing.8');
20
+ }
21
+
22
+ &__title {
23
+ @apply uxf-typo-h4;
24
+
25
+ &--hidden {
26
+ @apply sr-only;
27
+ }
28
+ }
29
+
30
+ &__subtitle {
31
+ margin-top: theme('spacing.2');
32
+
33
+ :root .light & {
34
+ color: theme('colors.lightMedium');
35
+ }
36
+
37
+ :root .dark & {
38
+ color: theme('colors.darkMedium');
39
+ }
40
+ }
41
+
42
+ &__body {
43
+ margin-top: theme('spacing.8');
44
+ max-width: 100%;
45
+ padding: theme('spacing.6');
46
+ width: 28rem;
47
+
48
+ :root .dark & {
49
+ background-color: theme('colors.gray.950');
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,184 @@
1
+ .uxf-cms-menu {
2
+ background-color: theme('colors.sidebar.background');
3
+ padding: 0 theme('spacing.2') theme('spacing.4');
4
+
5
+ &__item {
6
+ &--super {
7
+ @apply uxf-typo-overline;
8
+
9
+ color: theme('colors.darkLow');
10
+ margin-bottom: theme('spacing.3');
11
+ margin-top: theme('spacing.6');
12
+ padding-left: theme('spacing.2');
13
+ text-transform: uppercase;
14
+ }
15
+
16
+ &--basic {
17
+ align-items: center;
18
+ background-color: theme('colors.sidebar.background');
19
+ border-radius: theme('borderRadius.lg');
20
+ color: theme('colors.darkMedium');
21
+ cursor: pointer;
22
+ display: flex;
23
+ margin-bottom: theme('spacing[0.5]');
24
+ padding: theme('spacing[2.5]') theme('spacing.1') theme('spacing[2.5]') theme('spacing[2.5]');
25
+
26
+ &:hover {
27
+ background-color: theme('colors.sidebar.hover');
28
+ }
29
+
30
+ &.is-selected {
31
+ background-color: theme('colors.sidebar.highlight');
32
+ color: theme('colors.darkHigh');
33
+ font-weight: bold;
34
+ }
35
+
36
+ .uxf-cms-menu__icon-wrapper {
37
+ width: theme('spacing.7');
38
+
39
+ &--level-one {
40
+ width: theme('spacing.9');
41
+ }
42
+ }
43
+
44
+ .uxf-cms-menu__caret {
45
+ margin-left: auto;
46
+ margin-right: theme('spacing.2');
47
+
48
+ &.is-open {
49
+ transform: rotate(-90deg);
50
+ }
51
+ }
52
+ }
53
+ }
54
+
55
+ &__submenu-button {
56
+ width: 100%;
57
+
58
+ &--initially-closed {
59
+ @media screen(md) {
60
+ display: none;
61
+ }
62
+ }
63
+
64
+ &--initially-open {
65
+ @media screen(md) {
66
+ pointer-events: none;
67
+ }
68
+ }
69
+ }
70
+ }
71
+
72
+ .uxf-cms-user-menu {
73
+ color: theme('colors.darkMedium');
74
+ display: none;
75
+ padding: theme('spacing.3') theme('spacing.5') theme('spacing.3') theme('spacing.3');
76
+
77
+ :root .light & {
78
+ border-top: 1px solid theme('colors.darkLow/10');
79
+ }
80
+
81
+ :root .dark & {
82
+ border-top: 1px solid theme('colors.gray.700/10');
83
+ }
84
+
85
+ @media screen(md) {
86
+ display: block;
87
+ }
88
+
89
+ &__button {
90
+ align-items: center;
91
+ display: flex;
92
+ text-align: left;
93
+ width: 100%;
94
+ }
95
+
96
+ &__avatar {
97
+ flex-shrink: 0;
98
+ margin-right: theme('spacing.3');
99
+ }
100
+
101
+ &__label-wrapper {
102
+ @apply truncate;
103
+ }
104
+
105
+ &__name {
106
+ @apply uxf-typo-body2;
107
+
108
+ margin-bottom: theme('spacing.1');
109
+ }
110
+
111
+ &__roles {
112
+ @apply uxf-typo-caption truncate;
113
+
114
+ color: theme('colors.darkLow');
115
+ }
116
+
117
+ &__caret-wrapper {
118
+ margin-left: auto;
119
+ }
120
+
121
+ &__caret {
122
+ margin-left: theme('spacing.2');
123
+
124
+ &.is-open {
125
+ transform: rotate(-90deg);
126
+ }
127
+ }
128
+
129
+ &__sub-menu {
130
+ margin-top: theme('spacing.4');
131
+ }
132
+ }
133
+
134
+ .uxf-cms-sub-menu {
135
+ display: none;
136
+
137
+ @media screen(md) {
138
+ display: block;
139
+ }
140
+
141
+ &__wrapper {
142
+ background-color: theme('colors.sidebar.highlight');
143
+ border-radius: theme('borderRadius.xl');
144
+ box-shadow: theme('boxShadow.lg');
145
+ overflow-y: auto;
146
+ width: 100%;
147
+ z-index: theme('zIndex.dropdown');
148
+ }
149
+
150
+ &__wrapper-mobile {
151
+ background-color: theme('colors.sidebar.background');
152
+ border-radius: theme('borderRadius.xl');
153
+ box-shadow: theme('boxShadow.lg');
154
+ left: theme('spacing.4');
155
+ overflow-y: auto;
156
+ width: calc(100vw - 32px);
157
+ z-index: theme('zIndex.dropdown');
158
+ }
159
+
160
+ &__item {
161
+ @apply md:text-body2;
162
+
163
+ background-color: theme('colors.sidebar.highlight');
164
+ color: theme('colors.darkMedium');
165
+ font-size: theme('fontSize.body');
166
+ padding: theme("spacing[3.5]");
167
+ width: 100%;
168
+
169
+ &:hover {
170
+ background-color: theme('colors.sidebar.background');
171
+ color: theme('colors.darkLow');
172
+ }
173
+ }
174
+
175
+ &__title {
176
+ @apply uxf-typo-body;
177
+
178
+ background-color: theme('colors.sidebar.background');
179
+ color: theme('colors.darkHigh');
180
+ font-weight: bold;
181
+ padding: theme("spacing[3.5]") theme("spacing.4");
182
+ width: 100%;
183
+ }
184
+ }
@@ -0,0 +1,35 @@
1
+ .uxf-cms-mobile-bar {
2
+ align-items: center;
3
+ background-color: theme('colors.sidebar.background');
4
+ border-top: 1px solid theme('colors.gray.700');
5
+ bottom: 0;
6
+ color: theme('colors.darkMedium');
7
+ display: flex;
8
+ height: theme('spacing.16');
9
+ left: 0;
10
+ padding: 0 theme('spacing.1');
11
+ position: fixed;
12
+ right: 0;
13
+
14
+ @media screen(md) {
15
+ display: none;
16
+ }
17
+
18
+ &__button {
19
+ align-items: center;
20
+ display: flex;
21
+ flex-grow: 1;
22
+ flex-shrink: 0;
23
+ height: theme('spacing.10');
24
+ justify-content: center;
25
+ }
26
+
27
+ &__avatar {
28
+ height: theme('spacing.7');
29
+ width: theme('spacing.7');
30
+ }
31
+
32
+ &__caret {
33
+ margin-left: theme('spacing.1');
34
+ }
35
+ }
@@ -0,0 +1,94 @@
1
+ .uxf-cms-sidebar {
2
+ display: flex;
3
+ flex-direction: column;
4
+ position: fixed;
5
+ width: 100%;
6
+ z-index: 15;
7
+
8
+ @media screen(md) {
9
+ width: var(--drawer-width);
10
+ z-index: 1;
11
+ }
12
+
13
+ &__content {
14
+ --device-height: 1000px;
15
+
16
+ background-color: theme("colors.sidebar.background");
17
+ flex-direction: column;
18
+ height: calc(var(--device-height) - 48px);
19
+ padding-top: theme("spacing.5");
20
+
21
+ @media screen(md) {
22
+ height: 100vh;
23
+ }
24
+
25
+ &--open {
26
+ display: flex;
27
+ }
28
+
29
+ &--closed {
30
+ display: none;
31
+
32
+ @media screen(md) {
33
+ display: flex;
34
+ }
35
+ }
36
+ }
37
+
38
+ &__logo {
39
+ padding: 0 theme("spacing.4");
40
+ }
41
+
42
+ &__nav {
43
+ flex-grow: 1;
44
+ overflow: auto;
45
+ padding: 0 theme("spacing.2");
46
+
47
+ @media screen(md) {
48
+ padding-left: 0;
49
+ padding-right: 0;
50
+ }
51
+
52
+ /* width */
53
+ &::-webkit-scrollbar {
54
+ width: 4px;
55
+ }
56
+
57
+ /* Track */
58
+ &::-webkit-scrollbar-track {
59
+ background: theme("colors.sidebar.background");
60
+ }
61
+
62
+ /* Handle */
63
+ &::-webkit-scrollbar-thumb {
64
+ background: theme("colors.sidebar.highlight");
65
+ }
66
+
67
+ /* Handle on hover */
68
+ &::-webkit-scrollbar-thumb:hover {
69
+ background: theme("colors.sidebar.hover");
70
+ }
71
+ }
72
+
73
+ &__scrollbar {
74
+ --scrollbar-color: theme("colors.darkBorder");
75
+
76
+ -ms-overflow-style: -ms-autohiding-scrollbar;
77
+ scrollbar-color: var(--scrollbar-color) transparent;
78
+ scrollbar-width: thin;
79
+
80
+ &::-webkit-scrollbar {
81
+ width: theme("spacing.2");
82
+ }
83
+
84
+ &::-webkit-scrollbar-track {
85
+ background: theme("colors.sidebar.highlight");
86
+ }
87
+
88
+ &::-webkit-scrollbar-thumb {
89
+ background-color: var(--scrollbar-color);
90
+ border-radius: 100%;
91
+ border: none;
92
+ }
93
+ }
94
+ }