ngx-strata 0.5.2 → 0.6.1
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/assets/icons/calendar.svg +1 -0
- package/assets/icons/camera.svg +1 -0
- package/assets/icons/clock.svg +1 -0
- package/assets/icons/image.svg +1 -0
- package/assets/icons/upload.svg +1 -0
- package/assets/styles/components/modal.scss +13 -3
- package/assets/styles/public-api.scss +0 -2
- package/dist/strata/strata.css +1 -1
- package/fesm2022/ngx-strata.mjs +1838 -105
- package/fesm2022/ngx-strata.mjs.map +1 -1
- package/package.json +1 -1
- package/skills/ngx-strata/SKILL.md +8 -1
- package/skills/ngx-strata/components/action-menu.md +35 -2
- package/skills/ngx-strata/components/calendar.md +86 -0
- package/skills/ngx-strata/components/date-range-picker.md +53 -0
- package/skills/ngx-strata/components/datepicker.md +66 -0
- package/skills/ngx-strata/components/file-upload.md +5 -1
- package/skills/ngx-strata/components/icon.md +1 -1
- package/skills/ngx-strata/components/time-stepper.md +46 -0
- package/skills/ngx-strata/components/timepicker.md +60 -0
- package/types/ngx-strata.d.ts +388 -27
- package/assets/styles/components/file-upload.scss +0 -168
- package/assets/styles/components/segmented-control.scss +0 -193
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
st-file-upload {
|
|
2
|
-
--st-file-upload-bg: var(--st-color-bg-default);
|
|
3
|
-
--st-file-upload-border: var(--st-color-border-default);
|
|
4
|
-
--st-file-upload-text: var(--st-color-text-primary);
|
|
5
|
-
--st-file-upload-hint: var(--st-color-text-secondary);
|
|
6
|
-
--st-file-upload-hover-bg: var(--st-color-bg-raised);
|
|
7
|
-
--st-file-upload-hover-border: var(--st-color-accent-default);
|
|
8
|
-
--st-file-upload-active-border: var(--st-color-accent-default);
|
|
9
|
-
--st-file-upload-active-bg: var(--st-color-accent-subtle, var(--st-color-bg-raised));
|
|
10
|
-
--st-file-upload-icon-color: var(--st-color-text-secondary);
|
|
11
|
-
--st-file-upload-radius: var(--st-border-radius-xl);
|
|
12
|
-
|
|
13
|
-
display: block;
|
|
14
|
-
position: relative;
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
background-color: var(--st-file-upload-bg);
|
|
17
|
-
border: 2px dashed var(--st-file-upload-border);
|
|
18
|
-
border-radius: var(--st-file-upload-radius);
|
|
19
|
-
padding: var(--st-space-6) var(--st-space-4);
|
|
20
|
-
text-align: center;
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
transition:
|
|
23
|
-
border-color var(--st-transition-fast),
|
|
24
|
-
background-color var(--st-transition-fast),
|
|
25
|
-
transform var(--st-transition-fast);
|
|
26
|
-
user-select: none;
|
|
27
|
-
outline: none;
|
|
28
|
-
|
|
29
|
-
&:hover:not(.st-disabled) {
|
|
30
|
-
background-color: var(--st-file-upload-hover-bg);
|
|
31
|
-
border-color: var(--st-file-upload-hover-border);
|
|
32
|
-
|
|
33
|
-
.st-file-upload-icon {
|
|
34
|
-
color: var(--st-color-accent-default);
|
|
35
|
-
transform: translateY(-2px);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&:focus-visible:not(.st-disabled) {
|
|
40
|
-
outline: 2px solid var(--st-color-accent-default);
|
|
41
|
-
outline-offset: 2px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.st-drag-over {
|
|
45
|
-
background-color: var(--st-file-upload-active-bg);
|
|
46
|
-
border-color: var(--st-file-upload-active-border);
|
|
47
|
-
border-style: solid;
|
|
48
|
-
transform: scale(1.01);
|
|
49
|
-
|
|
50
|
-
.st-file-upload-icon {
|
|
51
|
-
color: var(--st-color-accent-default);
|
|
52
|
-
transform: translateY(-4px) scale(1.1);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&.st-disabled {
|
|
57
|
-
opacity: 0.5;
|
|
58
|
-
cursor: not-allowed;
|
|
59
|
-
pointer-events: none;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.st-file-upload-input {
|
|
63
|
-
position: absolute;
|
|
64
|
-
width: 1px;
|
|
65
|
-
height: 1px;
|
|
66
|
-
padding: 0;
|
|
67
|
-
margin: -1px;
|
|
68
|
-
overflow: hidden;
|
|
69
|
-
clip: rect(0, 0, 0, 0);
|
|
70
|
-
white-space: nowrap;
|
|
71
|
-
border-width: 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.st-file-upload-content {
|
|
75
|
-
display: flex;
|
|
76
|
-
flex-direction: column;
|
|
77
|
-
align-items: center;
|
|
78
|
-
justify-content: center;
|
|
79
|
-
gap: var(--st-space-3);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.st-file-upload-icon-wrapper {
|
|
83
|
-
display: flex;
|
|
84
|
-
align-items: center;
|
|
85
|
-
justify-content: center;
|
|
86
|
-
width: 48px;
|
|
87
|
-
height: 48px;
|
|
88
|
-
border-radius: 50%;
|
|
89
|
-
background-color: var(--st-color-bg-raised);
|
|
90
|
-
transition: transform 0.2s ease;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.st-file-upload-icon {
|
|
94
|
-
width: 24px;
|
|
95
|
-
height: 24px;
|
|
96
|
-
color: var(--st-file-upload-icon-color);
|
|
97
|
-
transition: color 0.2s ease, transform 0.2s ease;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.st-file-upload-text {
|
|
101
|
-
display: flex;
|
|
102
|
-
flex-direction: column;
|
|
103
|
-
gap: var(--st-space-1);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.st-file-upload-label {
|
|
107
|
-
font-size: 0.95rem;
|
|
108
|
-
font-weight: 500;
|
|
109
|
-
color: var(--st-file-upload-text);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
&.st-state-error,
|
|
113
|
-
&.st-error {
|
|
114
|
-
--st-file-upload-border: var(--st-color-feedback-error-default);
|
|
115
|
-
--st-file-upload-hover-border: var(--st-color-feedback-error-hover, var(--st-color-feedback-error-default));
|
|
116
|
-
|
|
117
|
-
&:hover:not(.st-disabled) .st-file-upload-icon {
|
|
118
|
-
color: var(--st-color-feedback-error-default);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&:focus-visible:not(.st-disabled) {
|
|
122
|
-
outline-color: var(--st-color-feedback-error-default);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
&.st-state-success {
|
|
127
|
-
--st-file-upload-border: var(--st-color-feedback-success-default);
|
|
128
|
-
--st-file-upload-hover-border: var(--st-color-feedback-success-hover, var(--st-color-feedback-success-default));
|
|
129
|
-
|
|
130
|
-
&:hover:not(.st-disabled) .st-file-upload-icon {
|
|
131
|
-
color: var(--st-color-feedback-success-default);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
&:focus-visible:not(.st-disabled) {
|
|
135
|
-
outline-color: var(--st-color-feedback-success-default);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
&.st-state-warning {
|
|
140
|
-
--st-file-upload-border: var(--st-color-feedback-warning-default);
|
|
141
|
-
--st-file-upload-hover-border: var(--st-color-feedback-warning-hover, var(--st-color-feedback-warning-default));
|
|
142
|
-
|
|
143
|
-
&:hover:not(.st-disabled) .st-file-upload-icon {
|
|
144
|
-
color: var(--st-color-feedback-warning-default);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
&:focus-visible:not(.st-disabled) {
|
|
148
|
-
outline-color: var(--st-color-feedback-warning-default);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.st-file-upload-hint {
|
|
153
|
-
font-size: 0.8rem;
|
|
154
|
-
color: var(--st-file-upload-hint);
|
|
155
|
-
|
|
156
|
-
&.st-message-error {
|
|
157
|
-
color: var(--st-color-feedback-error-text);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
&.st-message-success {
|
|
161
|
-
color: var(--st-color-feedback-success-text);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
&.st-message-warning {
|
|
165
|
-
color: var(--st-color-feedback-warning-text);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
st-segmented-control {
|
|
2
|
-
--st-segmented-control-height: var(--st-interactive-element-height-md);
|
|
3
|
-
--st-segmented-control-item-height: calc(var(--st-segmented-control-height) - 8px);
|
|
4
|
-
--st-segmented-control-font-size: 14px;
|
|
5
|
-
--st-segmented-control-padding-x: var(--st-size-xxs);
|
|
6
|
-
--st-segmented-control-border-radius: var(--st-border-radius-md);
|
|
7
|
-
--st-segmented-control-border-color: transparent;
|
|
8
|
-
--st-segmented-control-error-border: var(--st-color-feedback-error-default);
|
|
9
|
-
--st-segmented-control-success-border: var(--st-color-feedback-success-default);
|
|
10
|
-
--st-segmented-control-warning-border: var(--st-color-feedback-warning-default);
|
|
11
|
-
|
|
12
|
-
display: inline-flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
width: fit-content;
|
|
15
|
-
max-width: 100%;
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
|
|
18
|
-
&.st-size-sm {
|
|
19
|
-
--st-segmented-control-height: var(--st-interactive-element-height-sm);
|
|
20
|
-
--st-segmented-control-item-height: calc(var(--st-segmented-control-height) - 4px);
|
|
21
|
-
--st-segmented-control-font-size: 12px;
|
|
22
|
-
--st-segmented-control-padding-x: var(--st-size-xxxs);
|
|
23
|
-
|
|
24
|
-
.st-segmented-control-track {
|
|
25
|
-
padding: 2px;
|
|
26
|
-
gap: 2px;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&.st-size-md {
|
|
31
|
-
--st-segmented-control-height: var(--st-interactive-element-height-md);
|
|
32
|
-
--st-segmented-control-item-height: calc(var(--st-segmented-control-height) - 8px);
|
|
33
|
-
--st-segmented-control-font-size: 14px;
|
|
34
|
-
--st-segmented-control-padding-x: var(--st-size-xxs);
|
|
35
|
-
|
|
36
|
-
.st-segmented-control-track {
|
|
37
|
-
padding: 4px;
|
|
38
|
-
gap: 4px;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&.st-size-lg {
|
|
43
|
-
--st-segmented-control-height: var(--st-interactive-element-height-lg);
|
|
44
|
-
--st-segmented-control-item-height: calc(var(--st-segmented-control-height) - 8px);
|
|
45
|
-
--st-segmented-control-font-size: 16px;
|
|
46
|
-
--st-segmented-control-padding-x: var(--st-size-xs);
|
|
47
|
-
|
|
48
|
-
.st-segmented-control-track {
|
|
49
|
-
padding: 4px;
|
|
50
|
-
gap: 4px;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.st-state-error {
|
|
55
|
-
--st-segmented-control-border-color: var(--st-segmented-control-error-border);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&.st-state-success {
|
|
59
|
-
--st-segmented-control-border-color: var(--st-segmented-control-success-border);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.st-state-warning {
|
|
63
|
-
--st-segmented-control-border-color: var(--st-segmented-control-warning-border);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.st-segmented-control-track {
|
|
67
|
-
display: inline-flex;
|
|
68
|
-
flex-direction: row;
|
|
69
|
-
flex-wrap: nowrap;
|
|
70
|
-
overflow-x: auto;
|
|
71
|
-
width: fit-content;
|
|
72
|
-
max-width: 100%;
|
|
73
|
-
min-width: 0;
|
|
74
|
-
position: relative;
|
|
75
|
-
border-radius: var(--st-segmented-control-border-radius);
|
|
76
|
-
border: 1px solid var(--st-segmented-control-border-color);
|
|
77
|
-
box-sizing: border-box;
|
|
78
|
-
background-color: var(--st-color-bg-raised);
|
|
79
|
-
height: var(--st-segmented-control-height);
|
|
80
|
-
padding: 4px;
|
|
81
|
-
gap: 4px;
|
|
82
|
-
transition: border-color var(--st-transition-fast);
|
|
83
|
-
|
|
84
|
-
-ms-overflow-style: none;
|
|
85
|
-
scrollbar-width: none;
|
|
86
|
-
&::-webkit-scrollbar {
|
|
87
|
-
display: none;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&.st-segmented-control-full-width {
|
|
92
|
-
width: 100%;
|
|
93
|
-
|
|
94
|
-
.st-segmented-control-track {
|
|
95
|
-
display: flex;
|
|
96
|
-
width: 100%;
|
|
97
|
-
|
|
98
|
-
st-segmented-control-item {
|
|
99
|
-
flex: 1;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
button,
|
|
105
|
-
st-segmented-control-item {
|
|
106
|
-
border: none;
|
|
107
|
-
color: var(--st-color-text-primary);
|
|
108
|
-
flex-shrink: 0;
|
|
109
|
-
text-wrap: nowrap;
|
|
110
|
-
|
|
111
|
-
background-color: transparent;
|
|
112
|
-
|
|
113
|
-
&[disabled] {
|
|
114
|
-
pointer-events: none;
|
|
115
|
-
color: var(--st-color-text-tertiary);
|
|
116
|
-
|
|
117
|
-
cursor: unset;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&:hover:not([disabled]) {
|
|
121
|
-
cursor: pointer;
|
|
122
|
-
background-color: var(--st-color-control-bg-hover);
|
|
123
|
-
color: var(--st-color-text-primary);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.selection-item,
|
|
128
|
-
st-segmented-control-item {
|
|
129
|
-
display: flex;
|
|
130
|
-
align-items: center;
|
|
131
|
-
justify-content: center;
|
|
132
|
-
gap: var(--st-space-2, 8px);
|
|
133
|
-
height: var(--st-segmented-control-item-height);
|
|
134
|
-
padding: 0 var(--st-segmented-control-padding-x);
|
|
135
|
-
border-radius: calc(var(--st-segmented-control-border-radius) - 2px);
|
|
136
|
-
font-size: var(--st-segmented-control-font-size);
|
|
137
|
-
font-weight: 500;
|
|
138
|
-
user-select: none;
|
|
139
|
-
transition: background-color var(--st-transition-fast), color var(--st-transition-fast);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
st-segmented-control-item {
|
|
143
|
-
position: relative;
|
|
144
|
-
z-index: 1;
|
|
145
|
-
|
|
146
|
-
&[aria-selected="true"] {
|
|
147
|
-
color: var(--st-color-control-primary-text);
|
|
148
|
-
|
|
149
|
-
&:hover {
|
|
150
|
-
background-color: transparent;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
st-badge {
|
|
155
|
-
flex-shrink: 0;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
#selection-indicator {
|
|
160
|
-
cursor: default;
|
|
161
|
-
position: absolute;
|
|
162
|
-
top: 0;
|
|
163
|
-
left: 0;
|
|
164
|
-
z-index: 0;
|
|
165
|
-
pointer-events: none;
|
|
166
|
-
border-radius: calc(var(--st-segmented-control-border-radius) - 2px);
|
|
167
|
-
background-color: var(--st-color-control-primary-bg);
|
|
168
|
-
color: var(--st-color-control-primary-text);
|
|
169
|
-
text-wrap: nowrap;
|
|
170
|
-
box-shadow: var(--st-shadow-1);
|
|
171
|
-
transition:
|
|
172
|
-
left var(--st-transition-fast),
|
|
173
|
-
width var(--st-transition-fast);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.st-segmented-control-message {
|
|
177
|
-
margin-top: var(--st-space-1);
|
|
178
|
-
font-size: var(--st-font-size-sm, 12px);
|
|
179
|
-
color: var(--st-color-text-secondary);
|
|
180
|
-
|
|
181
|
-
&.st-message-error {
|
|
182
|
-
color: var(--st-color-feedback-error-text);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
&.st-message-success {
|
|
186
|
-
color: var(--st-color-feedback-success-text);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
&.st-message-warning {
|
|
190
|
-
color: var(--st-color-feedback-warning-text);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|