zenkit-css 1.2.2 → 1.3.0
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/zenkit.css +9481 -0
- package/dist/zenkit.css.map +1 -1
- package/dist/zenkit.min.css +1 -1
- package/dist/zenkit.min.css.map +1 -1
- package/package.json +1 -1
- package/scss/components/_actionicon.scss +141 -0
- package/scss/components/_angleslider.scss +75 -0
- package/scss/components/_appbar.scss +96 -0
- package/scss/components/_appshell.scss +137 -0
- package/scss/components/_backdrop.scss +66 -0
- package/scss/components/_backgroundimage.scss +81 -0
- package/scss/components/_blockquote.scss +70 -0
- package/scss/components/_cards.scss +367 -0
- package/scss/components/_center.scss +33 -0
- package/scss/components/_chart.scss +100 -0
- package/scss/components/_checkboxcard.scss +105 -0
- package/scss/components/_checkboxgroup.scss +45 -0
- package/scss/components/_collapse.scss +76 -0
- package/scss/components/_colorinput.scss +103 -0
- package/scss/components/_colorswatch.scss +94 -0
- package/scss/components/_combobox.scss +157 -0
- package/scss/components/_contextmenu.scss +150 -0
- package/scss/components/_copybutton.scss +117 -0
- package/scss/components/_datagrid.scss +200 -0
- package/scss/components/_datalist.scss +104 -0
- package/scss/components/_daterange.scss +614 -0
- package/scss/components/_datetimepicker.scss +123 -0
- package/scss/components/_dialog.scss +176 -0
- package/scss/components/_dropzone.scss +159 -0
- package/scss/components/_filebutton.scss +64 -0
- package/scss/components/_fileinput.scss +157 -0
- package/scss/components/_floatcomponent.scss +128 -0
- package/scss/components/_floatingindicator.scss +49 -0
- package/scss/components/_forms.scss +327 -0
- package/scss/components/_gauge.scss +143 -0
- package/scss/components/_group.scss +100 -0
- package/scss/components/_heading.scss +143 -0
- package/scss/components/_highlight.scss +60 -0
- package/scss/components/_imagelist.scss +657 -0
- package/scss/components/_indicator.scss +171 -0
- package/scss/components/_infinitescroll.scss +53 -0
- package/scss/components/_jsoninput.scss +124 -0
- package/scss/components/_label.scss +77 -0
- package/scss/components/_loadingoverlay.scss +80 -0
- package/scss/components/_mark.scss +72 -0
- package/scss/components/_monthpicker.scss +141 -0
- package/scss/components/_multiselect.scss +192 -0
- package/scss/components/_navlink.scss +127 -0
- package/scss/components/_overlay.scss +97 -0
- package/scss/components/_paper.scss +98 -0
- package/scss/components/_pill.scss +141 -0
- package/scss/components/_radiocard.scss +122 -0
- package/scss/components/_rangeslider.scss +146 -0
- package/scss/components/_richtexteditor.scss +222 -0
- package/scss/components/_ringprogress.scss +101 -0
- package/scss/components/_scrollshadow.scss +152 -0
- package/scss/components/_semicircleprogress.scss +116 -0
- package/scss/components/_separator.scss +126 -0
- package/scss/components/_sheet.scss +612 -0
- package/scss/components/_simplegrid.scss +129 -0
- package/scss/components/_skipnavlink.scss +51 -0
- package/scss/components/_slider.scss +199 -0
- package/scss/components/_snippet.scss +576 -0
- package/scss/components/_sortable.scss +115 -0
- package/scss/components/_sparkline.scss +124 -0
- package/scss/components/_splitbutton.scss +153 -0
- package/scss/components/_spoiler.scss +73 -0
- package/scss/components/_stepper.scss +153 -0
- package/scss/components/_tableofcontents.scss +107 -0
- package/scss/components/_tabs.scss +379 -0
- package/scss/components/_tagsinput.scss +158 -0
- package/scss/components/_textcomponent.scss +183 -0
- package/scss/components/_themeicon.scss +121 -0
- package/scss/components/_toast.scss +335 -0
- package/scss/components/_togglegroup.scss +137 -0
- package/scss/components/_toolbar.scss +140 -0
- package/scss/components/_unstyledbutton.scss +43 -0
- package/scss/components/_user.scss +118 -0
- package/scss/components/_virtuallist.scss +118 -0
- package/scss/components/_yearpicker.scss +145 -0
- package/scss/utilities/_accessibility.scss +470 -0
- package/scss/zenkit.scss +80 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// Indicator Component
|
|
3
|
+
// ========================================
|
|
4
|
+
|
|
5
|
+
.indicator {
|
|
6
|
+
--zk-indicator-size: 10px;
|
|
7
|
+
--zk-indicator-color: var(--zk-danger);
|
|
8
|
+
--zk-indicator-offset: 0;
|
|
9
|
+
|
|
10
|
+
position: relative;
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
|
|
13
|
+
&-dot {
|
|
14
|
+
position: absolute;
|
|
15
|
+
width: var(--zk-indicator-size);
|
|
16
|
+
height: var(--zk-indicator-size);
|
|
17
|
+
background: var(--zk-indicator-color);
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
border: 2px solid var(--zk-bg-primary);
|
|
20
|
+
z-index: 1;
|
|
21
|
+
|
|
22
|
+
// Positions
|
|
23
|
+
&.top-start {
|
|
24
|
+
top: var(--zk-indicator-offset);
|
|
25
|
+
left: var(--zk-indicator-offset);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.top-center {
|
|
29
|
+
top: var(--zk-indicator-offset);
|
|
30
|
+
left: 50%;
|
|
31
|
+
transform: translateX(-50%);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.top-end {
|
|
35
|
+
top: var(--zk-indicator-offset);
|
|
36
|
+
right: var(--zk-indicator-offset);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.middle-start {
|
|
40
|
+
top: 50%;
|
|
41
|
+
left: var(--zk-indicator-offset);
|
|
42
|
+
transform: translateY(-50%);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.middle-center {
|
|
46
|
+
top: 50%;
|
|
47
|
+
left: 50%;
|
|
48
|
+
transform: translate(-50%, -50%);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.middle-end {
|
|
52
|
+
top: 50%;
|
|
53
|
+
right: var(--zk-indicator-offset);
|
|
54
|
+
transform: translateY(-50%);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.bottom-start {
|
|
58
|
+
bottom: var(--zk-indicator-offset);
|
|
59
|
+
left: var(--zk-indicator-offset);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.bottom-center {
|
|
63
|
+
bottom: var(--zk-indicator-offset);
|
|
64
|
+
left: 50%;
|
|
65
|
+
transform: translateX(-50%);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.bottom-end {
|
|
69
|
+
bottom: var(--zk-indicator-offset);
|
|
70
|
+
right: var(--zk-indicator-offset);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&-label {
|
|
75
|
+
position: absolute;
|
|
76
|
+
min-width: 18px;
|
|
77
|
+
height: 18px;
|
|
78
|
+
padding: 0 6px;
|
|
79
|
+
background: var(--zk-indicator-color);
|
|
80
|
+
border-radius: 9px;
|
|
81
|
+
border: 2px solid var(--zk-bg-primary);
|
|
82
|
+
font-size: 0.625rem;
|
|
83
|
+
font-weight: 600;
|
|
84
|
+
color: #fff;
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
z-index: 1;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Sizes
|
|
92
|
+
&-xs {
|
|
93
|
+
--zk-indicator-size: 6px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&-sm {
|
|
97
|
+
--zk-indicator-size: 8px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&-md {
|
|
101
|
+
--zk-indicator-size: 10px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&-lg {
|
|
105
|
+
--zk-indicator-size: 12px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&-xl {
|
|
109
|
+
--zk-indicator-size: 16px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Colors
|
|
113
|
+
&-primary {
|
|
114
|
+
--zk-indicator-color: var(--zk-primary);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&-success {
|
|
118
|
+
--zk-indicator-color: var(--zk-success);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&-warning {
|
|
122
|
+
--zk-indicator-color: var(--zk-warning);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&-danger {
|
|
126
|
+
--zk-indicator-color: var(--zk-danger);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&-info {
|
|
130
|
+
--zk-indicator-color: var(--zk-info);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Processing animation
|
|
134
|
+
&-processing {
|
|
135
|
+
.indicator-dot {
|
|
136
|
+
animation: indicator-pulse 1.5s ease-in-out infinite;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Disabled
|
|
141
|
+
&-disabled {
|
|
142
|
+
.indicator-dot,
|
|
143
|
+
.indicator-label {
|
|
144
|
+
opacity: 0.5;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// Inline mode
|
|
149
|
+
&-inline {
|
|
150
|
+
display: inline-flex;
|
|
151
|
+
align-items: center;
|
|
152
|
+
gap: 0.5rem;
|
|
153
|
+
|
|
154
|
+
.indicator-dot {
|
|
155
|
+
position: static;
|
|
156
|
+
border: none;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@keyframes indicator-pulse {
|
|
162
|
+
0%,
|
|
163
|
+
100% {
|
|
164
|
+
opacity: 1;
|
|
165
|
+
transform: scale(1);
|
|
166
|
+
}
|
|
167
|
+
50% {
|
|
168
|
+
opacity: 0.5;
|
|
169
|
+
transform: scale(1.2);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// InfiniteScroll Component
|
|
3
|
+
// ========================================
|
|
4
|
+
|
|
5
|
+
.infinite-scroll {
|
|
6
|
+
position: relative;
|
|
7
|
+
|
|
8
|
+
&-content {
|
|
9
|
+
min-height: 100px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&-loader {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
padding: 1.5rem;
|
|
17
|
+
color: var(--zk-text-muted);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-end-message {
|
|
21
|
+
text-align: center;
|
|
22
|
+
padding: 1.5rem;
|
|
23
|
+
color: var(--zk-text-muted);
|
|
24
|
+
font-size: 0.875rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-error {
|
|
28
|
+
text-align: center;
|
|
29
|
+
padding: 1.5rem;
|
|
30
|
+
color: var(--zk-danger);
|
|
31
|
+
|
|
32
|
+
&-retry {
|
|
33
|
+
margin-top: 0.5rem;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Scroll direction
|
|
38
|
+
&-reverse {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column-reverse;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Threshold indicator (dev mode)
|
|
44
|
+
&-threshold {
|
|
45
|
+
position: absolute;
|
|
46
|
+
left: 0;
|
|
47
|
+
right: 0;
|
|
48
|
+
height: 1px;
|
|
49
|
+
background: var(--zk-danger);
|
|
50
|
+
opacity: 0.3;
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// JsonInput Component
|
|
3
|
+
// ========================================
|
|
4
|
+
|
|
5
|
+
.json-input {
|
|
6
|
+
--zk-json-input-bg: var(--zk-bg-secondary);
|
|
7
|
+
--zk-json-input-border-color: var(--zk-border-color);
|
|
8
|
+
--zk-json-input-font: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
9
|
+
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: 0.25rem;
|
|
13
|
+
|
|
14
|
+
&-label {
|
|
15
|
+
font-size: 0.875rem;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
color: var(--zk-text-primary);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-wrapper {
|
|
21
|
+
position: relative;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-textarea {
|
|
25
|
+
width: 100%;
|
|
26
|
+
min-height: 150px;
|
|
27
|
+
padding: 0.75rem;
|
|
28
|
+
font-family: var(--zk-json-input-font);
|
|
29
|
+
font-size: 0.8125rem;
|
|
30
|
+
line-height: 1.5;
|
|
31
|
+
background: var(--zk-json-input-bg);
|
|
32
|
+
border: 1px solid var(--zk-json-input-border-color);
|
|
33
|
+
border-radius: var(--zk-radius-md);
|
|
34
|
+
color: var(--zk-text-primary);
|
|
35
|
+
resize: vertical;
|
|
36
|
+
outline: none;
|
|
37
|
+
|
|
38
|
+
&:focus {
|
|
39
|
+
border-color: var(--zk-primary);
|
|
40
|
+
box-shadow: 0 0 0 3px rgba(var(--zk-primary-rgb), 0.1);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&::placeholder {
|
|
44
|
+
color: var(--zk-text-muted);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-format-btn {
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 0.5rem;
|
|
51
|
+
right: 0.5rem;
|
|
52
|
+
padding: 0.25rem 0.5rem;
|
|
53
|
+
font-size: 0.75rem;
|
|
54
|
+
background: var(--zk-bg-primary);
|
|
55
|
+
border: 1px solid var(--zk-border-color);
|
|
56
|
+
border-radius: var(--zk-radius-sm);
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
color: var(--zk-text-secondary);
|
|
59
|
+
|
|
60
|
+
&:hover {
|
|
61
|
+
background: var(--zk-bg-tertiary);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&-error {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
gap: 0.25rem;
|
|
69
|
+
font-size: 0.75rem;
|
|
70
|
+
color: var(--zk-danger);
|
|
71
|
+
margin-top: 0.25rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&-valid {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
gap: 0.25rem;
|
|
78
|
+
font-size: 0.75rem;
|
|
79
|
+
color: var(--zk-success);
|
|
80
|
+
margin-top: 0.25rem;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Syntax highlighting (line numbers)
|
|
84
|
+
&-with-lines {
|
|
85
|
+
.json-input-textarea {
|
|
86
|
+
padding-left: 3rem;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&-lines {
|
|
91
|
+
position: absolute;
|
|
92
|
+
left: 0;
|
|
93
|
+
top: 0;
|
|
94
|
+
bottom: 0;
|
|
95
|
+
width: 2.5rem;
|
|
96
|
+
padding: 0.75rem 0.5rem;
|
|
97
|
+
background: var(--zk-bg-tertiary);
|
|
98
|
+
border-right: 1px solid var(--zk-border-color);
|
|
99
|
+
border-radius: var(--zk-radius-md) 0 0 var(--zk-radius-md);
|
|
100
|
+
font-family: var(--zk-json-input-font);
|
|
101
|
+
font-size: 0.8125rem;
|
|
102
|
+
line-height: 1.5;
|
|
103
|
+
color: var(--zk-text-muted);
|
|
104
|
+
text-align: right;
|
|
105
|
+
user-select: none;
|
|
106
|
+
overflow: hidden;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// Disabled
|
|
110
|
+
&-disabled {
|
|
111
|
+
opacity: 0.5;
|
|
112
|
+
|
|
113
|
+
.json-input-textarea {
|
|
114
|
+
cursor: not-allowed;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Readonly
|
|
119
|
+
&-readonly {
|
|
120
|
+
.json-input-textarea {
|
|
121
|
+
background: var(--zk-bg-tertiary);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// Label Component
|
|
3
|
+
// ========================================
|
|
4
|
+
|
|
5
|
+
.label {
|
|
6
|
+
display: inline-block;
|
|
7
|
+
font-size: 0.875rem;
|
|
8
|
+
font-weight: 500;
|
|
9
|
+
color: var(--zk-text-primary);
|
|
10
|
+
line-height: 1.4;
|
|
11
|
+
|
|
12
|
+
// Required indicator
|
|
13
|
+
&-required {
|
|
14
|
+
&::after {
|
|
15
|
+
content: " *";
|
|
16
|
+
color: var(--zk-danger);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Sizes
|
|
21
|
+
&-xs {
|
|
22
|
+
font-size: 0.75rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&-sm {
|
|
26
|
+
font-size: 0.8125rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-md {
|
|
30
|
+
font-size: 0.875rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&-lg {
|
|
34
|
+
font-size: 1rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Optional indicator
|
|
38
|
+
&-optional {
|
|
39
|
+
&::after {
|
|
40
|
+
content: " (optional)";
|
|
41
|
+
font-size: 0.75em;
|
|
42
|
+
color: var(--zk-text-muted);
|
|
43
|
+
font-weight: 400;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// With description
|
|
48
|
+
&-with-description {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
gap: 0.125rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-description {
|
|
55
|
+
font-size: 0.75rem;
|
|
56
|
+
font-weight: 400;
|
|
57
|
+
color: var(--zk-text-muted);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Inline style
|
|
61
|
+
&-inline {
|
|
62
|
+
display: inline-flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
gap: 0.5rem;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Disabled state
|
|
68
|
+
&-disabled {
|
|
69
|
+
color: var(--zk-text-muted);
|
|
70
|
+
cursor: not-allowed;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Error state
|
|
74
|
+
&-error {
|
|
75
|
+
color: var(--zk-danger);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// LoadingOverlay Component
|
|
3
|
+
// ========================================
|
|
4
|
+
|
|
5
|
+
.loading-overlay {
|
|
6
|
+
--zk-loading-overlay-bg: rgba(255, 255, 255, 0.8);
|
|
7
|
+
--zk-loading-overlay-z-index: 400;
|
|
8
|
+
|
|
9
|
+
position: absolute;
|
|
10
|
+
inset: 0;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
background: var(--zk-loading-overlay-bg);
|
|
16
|
+
z-index: var(--zk-loading-overlay-z-index);
|
|
17
|
+
opacity: 0;
|
|
18
|
+
visibility: hidden;
|
|
19
|
+
transition: opacity 0.2s ease, visibility 0.2s ease;
|
|
20
|
+
|
|
21
|
+
&-visible {
|
|
22
|
+
opacity: 1;
|
|
23
|
+
visibility: visible;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-spinner {
|
|
27
|
+
margin-bottom: 0.75rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&-text {
|
|
31
|
+
font-size: 0.875rem;
|
|
32
|
+
color: var(--zk-text-secondary);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Blur effect
|
|
36
|
+
&-blur {
|
|
37
|
+
backdrop-filter: blur(2px);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Variants
|
|
41
|
+
&-dark {
|
|
42
|
+
--zk-loading-overlay-bg: rgba(0, 0, 0, 0.5);
|
|
43
|
+
|
|
44
|
+
.loading-overlay-text {
|
|
45
|
+
color: #fff;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&-light {
|
|
50
|
+
--zk-loading-overlay-bg: rgba(255, 255, 255, 0.9);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// With custom loader
|
|
54
|
+
&-custom {
|
|
55
|
+
.loading-overlay-content {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
align-items: center;
|
|
59
|
+
gap: 1rem;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Fixed position (for full page)
|
|
64
|
+
&-fixed {
|
|
65
|
+
position: fixed;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Relative container
|
|
69
|
+
&-container {
|
|
70
|
+
position: relative;
|
|
71
|
+
min-height: 100px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Dark mode
|
|
76
|
+
[data-theme="dark"] {
|
|
77
|
+
.loading-overlay {
|
|
78
|
+
--zk-loading-overlay-bg: rgba(0, 0, 0, 0.7);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// Mark Component (Mantine-style)
|
|
3
|
+
// ========================================
|
|
4
|
+
|
|
5
|
+
.mark {
|
|
6
|
+
--zk-mark-bg: rgba(var(--zk-warning-rgb), 0.4);
|
|
7
|
+
--zk-mark-color: inherit;
|
|
8
|
+
|
|
9
|
+
background-color: var(--zk-mark-bg);
|
|
10
|
+
color: var(--zk-mark-color);
|
|
11
|
+
padding: 0 0.125em;
|
|
12
|
+
border-radius: 2px;
|
|
13
|
+
|
|
14
|
+
// Color variants
|
|
15
|
+
&-yellow {
|
|
16
|
+
--zk-mark-bg: rgba(255, 235, 59, 0.5);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-blue {
|
|
20
|
+
--zk-mark-bg: rgba(var(--zk-info-rgb), 0.3);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-cyan {
|
|
24
|
+
--zk-mark-bg: rgba(0, 188, 212, 0.3);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-green {
|
|
28
|
+
--zk-mark-bg: rgba(var(--zk-success-rgb), 0.3);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&-lime {
|
|
32
|
+
--zk-mark-bg: rgba(139, 195, 74, 0.4);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-orange {
|
|
36
|
+
--zk-mark-bg: rgba(255, 152, 0, 0.4);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-pink {
|
|
40
|
+
--zk-mark-bg: rgba(233, 30, 99, 0.3);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&-red {
|
|
44
|
+
--zk-mark-bg: rgba(var(--zk-danger-rgb), 0.3);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&-grape {
|
|
48
|
+
--zk-mark-bg: rgba(156, 39, 176, 0.3);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&-violet {
|
|
52
|
+
--zk-mark-bg: rgba(103, 58, 183, 0.3);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-indigo {
|
|
56
|
+
--zk-mark-bg: rgba(63, 81, 181, 0.3);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-teal {
|
|
60
|
+
--zk-mark-bg: rgba(0, 150, 136, 0.3);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Dark variant (for light backgrounds)
|
|
64
|
+
&-dark {
|
|
65
|
+
--zk-mark-bg: rgba(0, 0, 0, 0.1);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Light variant (for dark backgrounds)
|
|
69
|
+
&-light {
|
|
70
|
+
--zk-mark-bg: rgba(255, 255, 255, 0.2);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// MonthPicker Component
|
|
3
|
+
// ========================================
|
|
4
|
+
|
|
5
|
+
.month-picker {
|
|
6
|
+
--zk-month-picker-bg: var(--zk-bg-primary);
|
|
7
|
+
--zk-month-picker-border-color: var(--zk-border-color);
|
|
8
|
+
|
|
9
|
+
position: relative;
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
width: 100%;
|
|
12
|
+
|
|
13
|
+
&-input {
|
|
14
|
+
width: 100%;
|
|
15
|
+
padding: 0.5rem 2.5rem 0.5rem 0.75rem;
|
|
16
|
+
font-size: 0.875rem;
|
|
17
|
+
background: var(--zk-month-picker-bg);
|
|
18
|
+
border: 1px solid var(--zk-month-picker-border-color);
|
|
19
|
+
border-radius: var(--zk-radius-md);
|
|
20
|
+
color: var(--zk-text-primary);
|
|
21
|
+
outline: none;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
|
|
24
|
+
&:focus {
|
|
25
|
+
border-color: var(--zk-primary);
|
|
26
|
+
box-shadow: 0 0 0 3px rgba(var(--zk-primary-rgb), 0.1);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&::placeholder {
|
|
30
|
+
color: var(--zk-text-muted);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&-icon {
|
|
35
|
+
position: absolute;
|
|
36
|
+
right: 0.75rem;
|
|
37
|
+
top: 50%;
|
|
38
|
+
transform: translateY(-50%);
|
|
39
|
+
color: var(--zk-text-muted);
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&-dropdown {
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 100%;
|
|
46
|
+
left: 0;
|
|
47
|
+
margin-top: 0.25rem;
|
|
48
|
+
padding: 0.75rem;
|
|
49
|
+
background: var(--zk-month-picker-bg);
|
|
50
|
+
border: 1px solid var(--zk-month-picker-border-color);
|
|
51
|
+
border-radius: var(--zk-radius-md);
|
|
52
|
+
box-shadow: var(--zk-shadow-lg);
|
|
53
|
+
z-index: 1050;
|
|
54
|
+
min-width: 250px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&-header {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: space-between;
|
|
61
|
+
margin-bottom: 0.75rem;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-year {
|
|
65
|
+
font-size: 1rem;
|
|
66
|
+
font-weight: 600;
|
|
67
|
+
color: var(--zk-text-primary);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&-nav {
|
|
71
|
+
display: flex;
|
|
72
|
+
gap: 0.25rem;
|
|
73
|
+
|
|
74
|
+
&-btn {
|
|
75
|
+
width: 28px;
|
|
76
|
+
height: 28px;
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
background: transparent;
|
|
81
|
+
border: 1px solid var(--zk-border-color);
|
|
82
|
+
border-radius: var(--zk-radius-sm);
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
color: var(--zk-text-secondary);
|
|
85
|
+
|
|
86
|
+
&:hover {
|
|
87
|
+
background: var(--zk-bg-secondary);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&-grid {
|
|
93
|
+
display: grid;
|
|
94
|
+
grid-template-columns: repeat(3, 1fr);
|
|
95
|
+
gap: 0.5rem;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&-month {
|
|
99
|
+
padding: 0.5rem;
|
|
100
|
+
text-align: center;
|
|
101
|
+
font-size: 0.875rem;
|
|
102
|
+
background: transparent;
|
|
103
|
+
border: 1px solid transparent;
|
|
104
|
+
border-radius: var(--zk-radius-sm);
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
color: var(--zk-text-primary);
|
|
107
|
+
transition: all 0.15s ease;
|
|
108
|
+
|
|
109
|
+
&:hover {
|
|
110
|
+
background: var(--zk-bg-secondary);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&-selected {
|
|
114
|
+
background: var(--zk-primary);
|
|
115
|
+
color: #fff;
|
|
116
|
+
|
|
117
|
+
&:hover {
|
|
118
|
+
background: var(--zk-primary);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&-current {
|
|
123
|
+
border-color: var(--zk-primary);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&-disabled {
|
|
127
|
+
opacity: 0.5;
|
|
128
|
+
cursor: not-allowed;
|
|
129
|
+
|
|
130
|
+
&:hover {
|
|
131
|
+
background: transparent;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Disabled state
|
|
137
|
+
&-disabled {
|
|
138
|
+
opacity: 0.5;
|
|
139
|
+
pointer-events: none;
|
|
140
|
+
}
|
|
141
|
+
}
|