@rolster/styles-foundations 3.0.6 → 3.1.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/design-system-bordered.css +410 -49
- package/dist/design-system-bordered.css.map +1 -1
- package/dist/design-system-bordered.min.css +39 -11
- package/dist/design-system-filled.css +405 -51
- package/dist/design-system-filled.css.map +1 -1
- package/dist/design-system-filled.min.css +38 -10
- package/package.json +1 -1
- package/scss/design-system-bordered/atoms/button-icon.scss +46 -0
- package/scss/design-system-bordered/atoms/check-box.scss +3 -2
- package/scss/design-system-bordered/atoms/input-counter.scss +110 -0
- package/scss/design-system-bordered/atoms/led.scss +0 -1
- package/scss/design-system-bordered/atoms/radio-button.scss +3 -2
- package/scss/design-system-bordered/atoms/switch.scss +3 -2
- package/scss/design-system-bordered/index.scss +5 -0
- package/scss/design-system-bordered/molecules/button-stepper.scss +14 -0
- package/scss/design-system-bordered/molecules/field-box.scss +11 -21
- package/scss/design-system-bordered/molecules/field-list.scss +61 -2
- package/scss/design-system-bordered/molecules/picker-selector-title.scss +5 -18
- package/scss/design-system-bordered/molecules/picker-year.scss +5 -18
- package/scss/design-system-bordered/organisms/field-color.scss +69 -0
- package/scss/design-system-bordered/organisms/picker-color.scss +189 -0
- package/scss/design-system-filled/atoms/button-icon.scss +46 -0
- package/scss/design-system-filled/atoms/check-box.scss +3 -2
- package/scss/design-system-filled/atoms/input-counter.scss +110 -0
- package/scss/design-system-filled/atoms/radio-button.scss +3 -2
- package/scss/design-system-filled/atoms/switch.scss +3 -2
- package/scss/design-system-filled/index.scss +5 -0
- package/scss/design-system-filled/molecules/button-stepper.scss +14 -0
- package/scss/design-system-filled/molecules/field-box.scss +12 -27
- package/scss/design-system-filled/molecules/field-list.scss +61 -2
- package/scss/design-system-filled/molecules/picker-selector-title.scss +5 -18
- package/scss/design-system-filled/molecules/picker-year.scss +5 -18
- package/scss/design-system-filled/organisms/field-color.scss +69 -0
- package/scss/design-system-filled/organisms/picker-color.scss +185 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// Rolster Technology InputCounter Component
|
|
2
|
+
// v1.0.0
|
|
3
|
+
// @license MIT
|
|
4
|
+
// Author: Rolster Developers
|
|
5
|
+
// Created: 15/May/2026
|
|
6
|
+
// Updated: 15/May/2026
|
|
7
|
+
|
|
8
|
+
.rls-input-counter {
|
|
9
|
+
--rlc-button-icon-border: none;
|
|
10
|
+
|
|
11
|
+
--pvt-body-border: var(
|
|
12
|
+
--rlc-input-counter-border,
|
|
13
|
+
var(--rls-app-border-1-200)
|
|
14
|
+
);
|
|
15
|
+
--pvt-body-background: var(
|
|
16
|
+
--rlc-input-counter-background,
|
|
17
|
+
var(--rls-app-color-050)
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
--pvt-body-shadow: none;
|
|
21
|
+
|
|
22
|
+
--pvt-button-background: var(
|
|
23
|
+
--rlc-input-counter-action-background,
|
|
24
|
+
var(--rls-app-color-200)
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
--pvt-button-background-hover: var(
|
|
28
|
+
--rlc-input-counter-action-background-hover,
|
|
29
|
+
var(--rls-app-color-300)
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
display: flex;
|
|
33
|
+
width: auto;
|
|
34
|
+
height: auto;
|
|
35
|
+
flex: 0 0 auto;
|
|
36
|
+
align-items: center;
|
|
37
|
+
column-gap: var(--rls-sizing-x3);
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
border-radius: var(--rlc-input-counter-radius, var(--rls-sizing-x3));
|
|
41
|
+
border: var(--pvt-body-border);
|
|
42
|
+
box-shadow: var(--pvt-body-shadow);
|
|
43
|
+
background: var(--pvt-body-background);
|
|
44
|
+
transition: box-shadow 160ms 0ms var(--rls-standard-curve);
|
|
45
|
+
|
|
46
|
+
&--focused {
|
|
47
|
+
--pvt-body-shadow: var(
|
|
48
|
+
--rlc-input-counter-shadow-focused,
|
|
49
|
+
var(--rls-theme-shadow-500)
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
--pvt-body-border: var(
|
|
53
|
+
--rlc-input-counter-border-focused,
|
|
54
|
+
var(--rls-theme-border-1-500)
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&--disabled {
|
|
59
|
+
--pvt-body-background: var(--rls-app-color-100);
|
|
60
|
+
--pvt-body-border: var(--rls-app-border-1-transparent);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&--readonly {
|
|
64
|
+
--pvt-body-background: transparent;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__down {
|
|
68
|
+
--rlc-button-icon-radius: var(--rls-sizing-x3) 0rem 0rem
|
|
69
|
+
var(--rls-sizing-x3);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&__up {
|
|
73
|
+
--rlc-button-icon-radius: 0rem var(--rls-sizing-x3) var(--rls-sizing-x3)
|
|
74
|
+
0rem;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&__body {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex: 1 1 auto;
|
|
80
|
+
align-items: center;
|
|
81
|
+
box-sizing: border-box;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&__control {
|
|
85
|
+
width: var(--rlc-input-counter-width, 20rem);
|
|
86
|
+
padding: 0rem var(--rls-sizing-x3);
|
|
87
|
+
border: none;
|
|
88
|
+
outline: none;
|
|
89
|
+
text-align: center;
|
|
90
|
+
background: transparent;
|
|
91
|
+
color: var(--rlc-input-counter-font-color, var(--rls-app-color-900));
|
|
92
|
+
font-size: var(--rlc-input-counter-font-size, var(--rls-input-font-size));
|
|
93
|
+
font-weight: var(--rls-font-weight-medium);
|
|
94
|
+
letter-spacing: var(--rls-input-letter-spacing);
|
|
95
|
+
|
|
96
|
+
&::-webkit-inner-spin-button,
|
|
97
|
+
&::-webkit-outer-spin-button {
|
|
98
|
+
-webkit-appearance: none;
|
|
99
|
+
margin: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&::placeholder {
|
|
103
|
+
color: var(--rls-app-color-400);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:disabled {
|
|
107
|
+
cursor: not-allowed;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Rolster Technology Radiobutton Component
|
|
2
|
-
// v1.3.
|
|
2
|
+
// v1.3.3
|
|
3
3
|
// @license MIT
|
|
4
4
|
// Author: Rolster Developers
|
|
5
5
|
// Created: 20/Mar/2018
|
|
6
|
-
// Updated:
|
|
6
|
+
// Updated: 17/May/2026
|
|
7
7
|
|
|
8
8
|
.rls-radiobutton {
|
|
9
9
|
--pvt-dimension: var(--rlc-radiobutton-dimension, var(--rls-sizing-x12));
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
display: flex;
|
|
15
15
|
width: var(--pvt-dimension);
|
|
16
16
|
height: var(--pvt-dimension);
|
|
17
|
+
flex: 0 0 auto;
|
|
17
18
|
justify-content: center;
|
|
18
19
|
align-items: center;
|
|
19
20
|
outline: none;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Rolster Technology Switch Component
|
|
2
|
-
// v1.3.
|
|
2
|
+
// v1.3.1
|
|
3
3
|
// @license MIT
|
|
4
4
|
// Author: Rolster Developers
|
|
5
5
|
// Created: 25/Mar/2018
|
|
6
|
-
// Updated:
|
|
6
|
+
// Updated: 17/May/2026
|
|
7
7
|
|
|
8
8
|
.rls-switch {
|
|
9
9
|
--pvt-component-background: var(--rls-app-color-400);
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
--pvt-element-radius: var(--rlc-switch-element-radius, 50%);
|
|
19
19
|
|
|
20
20
|
max-width: var(--rlc-switch-max-width, var(--rls-sizing-x20));
|
|
21
|
+
flex: 0 0 auto;
|
|
21
22
|
|
|
22
23
|
&:hover {
|
|
23
24
|
cursor: var(--rlc-switch-cursor, initial);
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
@include meta.load-css('atoms/area-text');
|
|
15
15
|
@include meta.load-css('atoms/avatar');
|
|
16
16
|
@include meta.load-css('atoms/badge');
|
|
17
|
+
@include meta.load-css('atoms/button-icon');
|
|
17
18
|
@include meta.load-css('atoms/breadcrumb');
|
|
18
19
|
@include meta.load-css('atoms/button');
|
|
19
20
|
@include meta.load-css('atoms/button-action');
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
@include meta.load-css('atoms/check-box');
|
|
22
23
|
@include meta.load-css('atoms/icon');
|
|
23
24
|
@include meta.load-css('atoms/image');
|
|
25
|
+
@include meta.load-css('atoms/input-counter');
|
|
24
26
|
@include meta.load-css('atoms/input');
|
|
25
27
|
@include meta.load-css('atoms/input-decimal');
|
|
26
28
|
@include meta.load-css('atoms/input-money');
|
|
@@ -46,6 +48,7 @@
|
|
|
46
48
|
@include meta.load-css('molecules/alert');
|
|
47
49
|
@include meta.load-css('molecules/ballot');
|
|
48
50
|
@include meta.load-css('molecules/button-progress');
|
|
51
|
+
@include meta.load-css('molecules/button-stepper');
|
|
49
52
|
@include meta.load-css('molecules/button-toggle');
|
|
50
53
|
@include meta.load-css('molecules/field-area');
|
|
51
54
|
@include meta.load-css('molecules/field-box');
|
|
@@ -80,6 +83,7 @@
|
|
|
80
83
|
@include meta.load-css('organisms/dropdown');
|
|
81
84
|
@include meta.load-css('organisms/field-autocomplete');
|
|
82
85
|
@include meta.load-css('organisms/field-clock');
|
|
86
|
+
@include meta.load-css('organisms/field-color');
|
|
83
87
|
@include meta.load-css('organisms/field-date');
|
|
84
88
|
@include meta.load-css('organisms/field-date-range');
|
|
85
89
|
@include meta.load-css('organisms/field-select');
|
|
@@ -91,6 +95,7 @@
|
|
|
91
95
|
@include meta.load-css('organisms/modal');
|
|
92
96
|
@include meta.load-css('organisms/modal-sheet');
|
|
93
97
|
@include meta.load-css('organisms/picker-clock');
|
|
98
|
+
@include meta.load-css('organisms/picker-color');
|
|
94
99
|
@include meta.load-css('organisms/picker-date');
|
|
95
100
|
@include meta.load-css('organisms/picker-date-range');
|
|
96
101
|
@include meta.load-css('organisms/snackbar');
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Rolster Technology ButtonStepper Component
|
|
2
|
+
// v1.0.0
|
|
3
|
+
// @license MIT
|
|
4
|
+
// Author: Rolster Developers
|
|
5
|
+
// Created: 16/May/2026
|
|
6
|
+
// Updated: 16/May/2026
|
|
7
|
+
|
|
8
|
+
.rls-button-stepper {
|
|
9
|
+
display: flex;
|
|
10
|
+
width: auto;
|
|
11
|
+
flex: 0 0 auto;
|
|
12
|
+
align-items: center;
|
|
13
|
+
column-gap: var(--rls-sizing-x4);
|
|
14
|
+
}
|
|
@@ -117,6 +117,17 @@
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
&__body {
|
|
120
|
+
--rlc-button-icon-dimension: var(--rls-sizing-x12);
|
|
121
|
+
--rlc-button-icon-icon-dimension: calc(
|
|
122
|
+
var(--pvt-action-dimension) - var(--rls-sizing-x2)
|
|
123
|
+
);
|
|
124
|
+
--rlc-button-icon-background: var(--pvt-action-background);
|
|
125
|
+
--rlc-button-icon-border: none;
|
|
126
|
+
--rlc-button-icon-radius: var(
|
|
127
|
+
--rlc-field-box-action-radius,
|
|
128
|
+
var(--rls-sizing-x2)
|
|
129
|
+
);
|
|
130
|
+
|
|
120
131
|
display: flex;
|
|
121
132
|
align-items: center;
|
|
122
133
|
column-gap: var(--rls-sizing-x2);
|
|
@@ -130,27 +141,6 @@
|
|
|
130
141
|
box-shadow: var(--pvt-body-shadow);
|
|
131
142
|
}
|
|
132
143
|
|
|
133
|
-
&__action {
|
|
134
|
-
--rlc-icon-dimension: calc(var(--pvt-action-dimension) - 2rem);
|
|
135
|
-
|
|
136
|
-
display: flex;
|
|
137
|
-
flex: 0 0 auto;
|
|
138
|
-
width: var(--pvt-action-dimension);
|
|
139
|
-
height: var(--pvt-action-dimension);
|
|
140
|
-
align-items: center;
|
|
141
|
-
justify-content: center;
|
|
142
|
-
color: var(--rls-app-color-600);
|
|
143
|
-
padding: 0rem;
|
|
144
|
-
outline: none;
|
|
145
|
-
border-radius: var(--rlc-field-box-action-radius, var(--rls-sizing-x2));
|
|
146
|
-
background: var(--pvt-action-background);
|
|
147
|
-
|
|
148
|
-
&:disabled {
|
|
149
|
-
opacity: 0.5;
|
|
150
|
-
background: transparent;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
144
|
&__helper {
|
|
155
145
|
color: var(--rls-app-color-400);
|
|
156
146
|
padding: 0rem 5rem;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Rolster Technology FieldList Component
|
|
2
|
-
// v1.5.
|
|
2
|
+
// v1.5.6
|
|
3
3
|
// @license MIT
|
|
4
4
|
// Author: Rolster Developers
|
|
5
5
|
// Created: 20/Mar/2018
|
|
6
|
-
// Updated:
|
|
6
|
+
// Updated: 17/May/2026
|
|
7
7
|
|
|
8
8
|
.rls-field-list {
|
|
9
9
|
--pvt-control-pointer-events: initial;
|
|
@@ -180,6 +180,65 @@
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
&__multi {
|
|
184
|
+
&__chips {
|
|
185
|
+
display: flex;
|
|
186
|
+
min-height: var(--rls-sizing-x12);
|
|
187
|
+
flex-wrap: wrap;
|
|
188
|
+
gap: var(--rls-sizing-x2);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&__placeholder {
|
|
192
|
+
margin: auto 0rem;
|
|
193
|
+
cursor: default;
|
|
194
|
+
font-weight: var(
|
|
195
|
+
--rlc-field-list-control-font-weight,
|
|
196
|
+
var(--rls-font-weight-medium)
|
|
197
|
+
);
|
|
198
|
+
font-size: var(
|
|
199
|
+
--rlc-field-list-control-font-size,
|
|
200
|
+
var(--rls-input-font-size)
|
|
201
|
+
);
|
|
202
|
+
letter-spacing: var(
|
|
203
|
+
--rlc-field-list-control-letter-spacing,
|
|
204
|
+
var(--rls-input-letter-spacing)
|
|
205
|
+
);
|
|
206
|
+
color: var(--rls-app-color-400);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&__chip {
|
|
210
|
+
display: flex;
|
|
211
|
+
width: auto;
|
|
212
|
+
align-items: center;
|
|
213
|
+
column-gap: var(--rls-sizing-x1);
|
|
214
|
+
border-radius: var(--rls-sizing-x2);
|
|
215
|
+
padding: var(--rls-sizing-x1) var(--rls-sizing-x3);
|
|
216
|
+
background: var(--rls-app-color-200);
|
|
217
|
+
|
|
218
|
+
&__description {
|
|
219
|
+
font-size: var(--rls-caption-font-size);
|
|
220
|
+
letter-spacing: var(--rls-caption-letter-spacing);
|
|
221
|
+
font-weight: var(--rls-font-weight-semibold);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
&__remove {
|
|
225
|
+
--rlc-icon-dimension: var(--rls-sizing-x8);
|
|
226
|
+
|
|
227
|
+
flex: 0 0 auto;
|
|
228
|
+
background: none;
|
|
229
|
+
padding: 0rem;
|
|
230
|
+
margin: 0rem;
|
|
231
|
+
outline: none;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&__element {
|
|
236
|
+
display: flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
column-gap: var(--rls-sizing-x4);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
183
242
|
&__action {
|
|
184
243
|
padding: var(--pvt-list-component-padding);
|
|
185
244
|
box-sizing: border-box;
|
|
@@ -32,23 +32,10 @@
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
--rlc-icon-
|
|
37
|
-
|
|
38
|
-
background: var(--rls-app-color-050);
|
|
39
|
-
|
|
40
|
-
padding: var(--rls-sizing-x2);
|
|
41
|
-
border-radius: var(--rls-sizing-x4);
|
|
42
|
-
color: var(--rls-app-color-900);
|
|
43
|
-
|
|
44
|
-
&:hover {
|
|
45
|
-
background: var(--rls-app-color-300);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&:disabled {
|
|
49
|
-
opacity: 0.5;
|
|
50
|
-
background: transparent;
|
|
51
|
-
color: var(--rls-app-color-600);
|
|
52
|
-
}
|
|
35
|
+
.rls-button-icon {
|
|
36
|
+
--rlc-button-icon-size: var(--rls-sizing-x14);
|
|
37
|
+
--rlc-button-icon-icon-size: var(--rls-sizing-x10);
|
|
38
|
+
--rlc-button-icon-background: var(--rls-app-color-050);
|
|
39
|
+
--rlc-button-icon-radius: var(--rls-sizing-x4);
|
|
53
40
|
}
|
|
54
41
|
}
|
|
@@ -33,24 +33,11 @@
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
--rlc-icon-
|
|
38
|
-
|
|
39
|
-
background: var(--rls-theme-color-100);
|
|
40
|
-
|
|
41
|
-
outline: none;
|
|
42
|
-
padding: var(--rls-sizing-x2);
|
|
43
|
-
border-radius: var(--rls-sizing-x4);
|
|
44
|
-
|
|
45
|
-
&:not(:disabled):hover {
|
|
46
|
-
color: var(--rls-theme-color-500);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&:disabled {
|
|
50
|
-
opacity: 0.5;
|
|
51
|
-
background: transparent;
|
|
52
|
-
color: var(--rls-theme-color-300);
|
|
53
|
-
}
|
|
36
|
+
.rls-button-icon {
|
|
37
|
+
--rlc-button-icon-size: var(--rls-sizing-x14);
|
|
38
|
+
--rlc-button-icon-icon-size: var(--rls-sizing-x10);
|
|
39
|
+
--rlc-button-icon-background: var(--rls-theme-color-100);
|
|
40
|
+
--rlc-button-icon-radius: var(--rls-sizing-x4);
|
|
54
41
|
}
|
|
55
42
|
|
|
56
43
|
&__component {
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// Rolster Technology FieldColor Component
|
|
2
|
+
// v1.0.1
|
|
3
|
+
// @license MIT
|
|
4
|
+
// Author: Rolster Developers
|
|
5
|
+
// Created: 15/May/2026
|
|
6
|
+
// Updated: 17/May/2026
|
|
7
|
+
|
|
8
|
+
.rls-field-color {
|
|
9
|
+
--rlc-field-box-body-padding: var(--rls-sizing-x3) var(--rls-sizing-x4);
|
|
10
|
+
|
|
11
|
+
--pvt-font-size: var(--rlc-field-color-font-size, var(--rls-input-font-size));
|
|
12
|
+
|
|
13
|
+
--pvt-letter-spacing: var(
|
|
14
|
+
--rlc-field-color-letter-spacing,
|
|
15
|
+
var(--rls-input-letter-spacing)
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
position: relative;
|
|
19
|
+
width: 100%;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
|
|
22
|
+
.rls-field-box--readonly {
|
|
23
|
+
--pvt-control-width: 100%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.rls-field-box__body {
|
|
27
|
+
column-gap: var(--rls-sizing-x2);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__swatch {
|
|
31
|
+
width: var(--rls-sizing-x10);
|
|
32
|
+
height: var(--rls-sizing-x10);
|
|
33
|
+
flex: 0 0 auto;
|
|
34
|
+
border-radius: var(--rls-sizing-x2);
|
|
35
|
+
border: var(--rls-app-border-1-300);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__control {
|
|
39
|
+
position: relative;
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: var(--rls-sizing-x12);
|
|
42
|
+
line-height: var(--rls-sizing-x12);
|
|
43
|
+
padding: 0rem;
|
|
44
|
+
cursor: default;
|
|
45
|
+
border: none;
|
|
46
|
+
outline: none;
|
|
47
|
+
background: transparent;
|
|
48
|
+
color: var(--rls-app-color-900);
|
|
49
|
+
font-weight: var(--rls-font-weight-medium);
|
|
50
|
+
font-size: var(--pvt-font-size);
|
|
51
|
+
letter-spacing: var(--pvt-letter-spacing);
|
|
52
|
+
|
|
53
|
+
&::placeholder {
|
|
54
|
+
color: var(--rls-app-color-400);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:disabled {
|
|
58
|
+
opacity: 0.5;
|
|
59
|
+
cursor: not-allowed;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.rls-field-color-modal {
|
|
65
|
+
--rlc-modal-background: transparent;
|
|
66
|
+
--rlc-modal-max-width: 150rem;
|
|
67
|
+
--rlc-picker-color-radius: var(--rls-sizing-x4);
|
|
68
|
+
--rlc-picker-color-background: var(--rls-app-color-050);
|
|
69
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
// Rolster Technology PickerColor Component
|
|
2
|
+
// v1.0.1
|
|
3
|
+
// @license MIT
|
|
4
|
+
// Author: Rolster Developers
|
|
5
|
+
// Created: 15/May/2026
|
|
6
|
+
// Updated: 17/May/2026
|
|
7
|
+
|
|
8
|
+
.rls-picker-color {
|
|
9
|
+
position: relative;
|
|
10
|
+
display: flex;
|
|
11
|
+
width: 150rem;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
row-gap: var(--rls-sizing-x6);
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
user-select: none;
|
|
16
|
+
padding: var(--rlc-picker-color-padding, var(--rls-sizing-x6));
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
border-radius: var(--rlc-picker-color-radius, 0rem);
|
|
19
|
+
background: var(--rlc-picker-color-background, transparent);
|
|
20
|
+
|
|
21
|
+
&__preview {
|
|
22
|
+
display: flex;
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 130rem;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
padding: var(--rls-sizing-x6);
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
border-radius: var(--rls-sizing-x6);
|
|
29
|
+
border: var(--rls-app-border-1-300);
|
|
30
|
+
background: var(--rls-app-color-200);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__canvas {
|
|
34
|
+
position: relative;
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 100%;
|
|
37
|
+
border-radius: var(--rls-sizing-x6);
|
|
38
|
+
cursor: crosshair;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__indicator {
|
|
43
|
+
position: absolute;
|
|
44
|
+
width: var(--rls-sizing-x14);
|
|
45
|
+
height: var(--rls-sizing-x14);
|
|
46
|
+
transform: translate(-50%, -50%);
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
|
|
49
|
+
&__circle {
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 100%;
|
|
52
|
+
border-radius: var(--rls-sizing-x4);
|
|
53
|
+
border: var(--rls-border-2) solid var(--rls-app-color-050);
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
box-shadow:
|
|
56
|
+
0 0 0 1px rgba(0, 0, 0, 0.3),
|
|
57
|
+
0 0 var(--rls-sizing-x4) rgba(0, 0, 0, 0.2);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&__controls {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
row-gap: var(--rls-sizing-x4);
|
|
65
|
+
padding: var(--rls-sizing-x6) var(--rls-sizing-x10);
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
border-radius: var(--rls-sizing-x6);
|
|
68
|
+
border: var(--rls-app-border-1-300);
|
|
69
|
+
background: var(--rls-app-color-200);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&__slider {
|
|
73
|
+
position: relative;
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
height: var(--rls-sizing-x12);
|
|
77
|
+
|
|
78
|
+
&__track {
|
|
79
|
+
position: relative;
|
|
80
|
+
width: 100%;
|
|
81
|
+
height: var(--rls-sizing-x10);
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
border-radius: var(--rls-sizing-x5);
|
|
84
|
+
|
|
85
|
+
&--alpha {
|
|
86
|
+
background-size: 8rem 8rem;
|
|
87
|
+
background-position:
|
|
88
|
+
0 0,
|
|
89
|
+
4rem 4rem;
|
|
90
|
+
background-image:
|
|
91
|
+
linear-gradient(45deg, var(--rls-app-color-300) 25%, transparent 25%),
|
|
92
|
+
linear-gradient(
|
|
93
|
+
-45deg,
|
|
94
|
+
var(--rls-app-color-300) 25%,
|
|
95
|
+
transparent 25%
|
|
96
|
+
),
|
|
97
|
+
linear-gradient(45deg, transparent 75%, var(--rls-app-color-300) 75%),
|
|
98
|
+
linear-gradient(-45deg, transparent 75%, var(--rls-app-color-300) 75%);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&__thumb {
|
|
103
|
+
position: absolute;
|
|
104
|
+
top: 50%;
|
|
105
|
+
width: var(--rls-sizing-x12);
|
|
106
|
+
height: var(--rls-sizing-x12);
|
|
107
|
+
transform: translate(-50%, -50%);
|
|
108
|
+
border-radius: var(--rls-sizing-x4);
|
|
109
|
+
border: var(--rls-border-2) solid var(--rls-app-color-050);
|
|
110
|
+
box-sizing: border-box;
|
|
111
|
+
box-shadow: 0 0 0 1rem rgba(0, 0, 0, 0.2);
|
|
112
|
+
pointer-events: none;
|
|
113
|
+
background: transparent;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&__footer {
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-direction: column;
|
|
120
|
+
row-gap: var(--rls-sizing-x4);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&__hex {
|
|
124
|
+
--pvt-font-size: var(
|
|
125
|
+
--rlc-field-color-font-size,
|
|
126
|
+
var(--rls-input-font-size)
|
|
127
|
+
);
|
|
128
|
+
--pvt-font-weight: var(
|
|
129
|
+
--rlc-field-color-font-weight,
|
|
130
|
+
var(--rls-font-weight-medium)
|
|
131
|
+
);
|
|
132
|
+
|
|
133
|
+
display: flex;
|
|
134
|
+
height: var(--rls-sizing-x20);
|
|
135
|
+
align-items: center;
|
|
136
|
+
justify-content: center;
|
|
137
|
+
column-gap: var(--rls-sizing-x4);
|
|
138
|
+
padding: 0rem var(--rls-sizing-x4);
|
|
139
|
+
box-sizing: border-box;
|
|
140
|
+
border-radius: var(--rls-sizing-x4);
|
|
141
|
+
border: var(--rls-app-border-1-300);
|
|
142
|
+
background: var(--rls-app-color-200);
|
|
143
|
+
|
|
144
|
+
&__swatch {
|
|
145
|
+
flex: 0 0 auto;
|
|
146
|
+
width: var(--rls-sizing-x12);
|
|
147
|
+
height: var(--rls-sizing-x12);
|
|
148
|
+
border-radius: var(--rls-sizing-x2);
|
|
149
|
+
border: var(--rls-app-border-1-300);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&__prefix {
|
|
153
|
+
font-size: var(--pvt-font-size);
|
|
154
|
+
font-weight: var(--pvt-font-weight);
|
|
155
|
+
color: var(--rls-app-color-600);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&__input {
|
|
159
|
+
width: 35rem;
|
|
160
|
+
height: 100%;
|
|
161
|
+
padding: 0rem;
|
|
162
|
+
text-align: center;
|
|
163
|
+
text-transform: uppercase;
|
|
164
|
+
background: transparent;
|
|
165
|
+
border: none;
|
|
166
|
+
outline: none;
|
|
167
|
+
color: var(--rls-app-color-900);
|
|
168
|
+
font-size: var(--pvt-font-size);
|
|
169
|
+
font-weight: var(--pvt-font-weight);
|
|
170
|
+
letter-spacing: var(--rls-input-letter-spacing);
|
|
171
|
+
|
|
172
|
+
&::placeholder {
|
|
173
|
+
color: var(--rls-app-color-400);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&__actions {
|
|
179
|
+
--rlc-button-width: 100%;
|
|
180
|
+
--rlc-button-content-padding: 0rem var(--rls-sizing-x2);
|
|
181
|
+
|
|
182
|
+
display: flex;
|
|
183
|
+
column-gap: var(--rls-sizing-x6);
|
|
184
|
+
align-items: center;
|
|
185
|
+
padding-top: var(--rls-sizing-x4);
|
|
186
|
+
overflow: hidden;
|
|
187
|
+
box-sizing: border-box;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// Rolster Technology ButtonIcon Component
|
|
2
|
+
// v1.0.0
|
|
3
|
+
// @license MIT
|
|
4
|
+
// Author: Rolster Developers
|
|
5
|
+
// Created: 15/May/2026
|
|
6
|
+
// Updated: 15/May/2026
|
|
7
|
+
|
|
8
|
+
.rls-button-icon {
|
|
9
|
+
--rlc-icon-dimension: var(
|
|
10
|
+
--rlc-button-icon-icon-dimension,
|
|
11
|
+
var(--rls-sizing-x12)
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
--pvt-button-dimension: var(
|
|
15
|
+
--rlc-button-icon-dimension,
|
|
16
|
+
var(--rls-sizing-x16)
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
display: flex;
|
|
20
|
+
flex: 0 0 auto;
|
|
21
|
+
width: var(--pvt-button-dimension);
|
|
22
|
+
height: var(--pvt-button-dimension);
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
padding: 0rem;
|
|
26
|
+
outline: none;
|
|
27
|
+
border-radius: var(--rlc-button-icon-radius, var(--rls-sizing-x3));
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
border: none;
|
|
30
|
+
color: var(--rlc-button-icon-font-color, var(--rls-app-color-600));
|
|
31
|
+
background: var(--rlc-button-icon-background, var(--rls-app-color-200));
|
|
32
|
+
transition: transform 240ms var(--rls-standard-curve);
|
|
33
|
+
|
|
34
|
+
&:active {
|
|
35
|
+
transform: scale(0.8);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:disabled {
|
|
39
|
+
opacity: 0.5;
|
|
40
|
+
cursor: not-allowed;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&--skeleton {
|
|
44
|
+
background: var(--rls-theme-color-300);
|
|
45
|
+
}
|
|
46
|
+
}
|