@festo-ui/react-extra 9.0.0-dev.733 → 9.0.0-dev.734

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.
@@ -1,375 +0,0 @@
1
- .fwe-triangle.fwe-triangle-right, .fwe-triangle.fwe-triangle-left, .fwe-triangle.fwe-triangle-bottom, .fwe-triangle.fwe-triangle-top {
2
- width: 17px;
3
- height: 17px;
4
- position: absolute;
5
- overflow: hidden;
6
- }
7
-
8
- .fwe-triangle.fwe-triangle-right:after, .fwe-triangle.fwe-triangle-left:after, .fwe-triangle.fwe-triangle-bottom:after, .fwe-triangle.fwe-triangle-top:after {
9
- content: "";
10
- background: var(--fwe-white);
11
- width: 12px;
12
- height: 12px;
13
- position: absolute;
14
- transform: rotate(45deg);
15
- box-shadow: 0 1px 4px #3333;
16
- }
17
-
18
- .fwe-popover-container {
19
- min-width: max-content;
20
- display: inline-block;
21
- position: relative;
22
- }
23
-
24
- .fwe-triangle.fwe-triangle-top {
25
- top: -17px;
26
- left: 50%;
27
- transform: translateX(-8px);
28
- }
29
-
30
- .fwe-triangle.fwe-triangle-top:after {
31
- top: 11px;
32
- left: 3px;
33
- }
34
-
35
- .fwe-triangle.fwe-triangle-bottom {
36
- top: 100%;
37
- left: 50%;
38
- transform: translateX(-8px);
39
- }
40
-
41
- .fwe-triangle.fwe-triangle-bottom:after {
42
- top: -6px;
43
- left: 3px;
44
- }
45
-
46
- .fwe-triangle.fwe-triangle-left {
47
- top: 50%;
48
- left: -17px;
49
- transform: translateY(-8px);
50
- }
51
-
52
- .fwe-triangle.fwe-triangle-left:after {
53
- top: 2px;
54
- left: 11px;
55
- }
56
-
57
- .fwe-triangle.fwe-triangle-right {
58
- top: 50%;
59
- left: 100%;
60
- transform: translateY(-8px);
61
- }
62
-
63
- .fwe-triangle.fwe-triangle-right:after {
64
- top: 2px;
65
- left: -6px;
66
- }
67
-
68
- .fwe-popover {
69
- background-color: var(--fwe-white);
70
- font-size: var(--fwe-font-size-md);
71
- border-radius: 4px;
72
- padding: 8px;
73
- line-height: 1rem;
74
- box-shadow: 0 1px 4px #3333;
75
- }
76
-
77
- .fwe-popover--legend {
78
- padding: 16px;
79
- line-height: 24px;
80
- display: table;
81
- }
82
-
83
- .fwe-popover--legend .fwe-popover-legend-content {
84
- display: table-row;
85
- }
86
-
87
- .fwe-popover--legend .fwe-popover-legend-content dt {
88
- margin: 0;
89
- padding-right: 8px;
90
- display: table-cell;
91
- }
92
-
93
- .fwe-popover--legend .fwe-popover-legend-content dd {
94
- margin: 0;
95
- display: table-cell;
96
- }
97
-
98
- .fwe-popover--menu {
99
- font-size: var(--fwe-font-size-base);
100
- padding: 16px;
101
- line-height: 1.5rem;
102
- }
103
-
104
- .fwe-popover--menu button {
105
- all: unset;
106
- cursor: pointer;
107
- width: 100%;
108
- height: 36px;
109
- min-height: 36px;
110
- color: var(--fwe-text);
111
- border-bottom: none;
112
- align-items: center;
113
- padding: 0;
114
- display: flex;
115
- }
116
-
117
- .fwe-popover--menu button .fwe-svg-icon {
118
- margin-left: 8px;
119
- margin-right: 8px;
120
- }
121
-
122
- .fwe-popover--menu button i {
123
- flex-wrap: nowrap;
124
- justify-content: center;
125
- align-items: center;
126
- width: 32px;
127
- height: 24px;
128
- margin-right: 0;
129
- display: inline-flex;
130
- }
131
-
132
- .fwe-popover--menu button i:before {
133
- display: inline-flex;
134
- }
135
-
136
- .fwe-popover--menu button span {
137
- margin-right: 8px;
138
- display: inline-flex;
139
- }
140
-
141
- .fwe-popover--menu button:hover {
142
- background-color: #3333331a;
143
- }
144
-
145
- .fwe-popover--menu button:active {
146
- background-color: #3333;
147
- }
148
-
149
- .fwe-popover-menu-trigger .fwe-popover-menu-trigger-button {
150
- cursor: pointer;
151
- background: none;
152
- border: none;
153
- margin: 0;
154
- padding: 0;
155
- line-height: 0;
156
- display: block;
157
- }
158
-
159
- .fwe-popover-menu-trigger .fwe-popover-menu-trigger-button:hover {
160
- color: var(--fwe-hero);
161
- }
162
-
163
- .fwe-color-picker {
164
- width: 216px;
165
- }
166
-
167
- .fwe-color-picker.fwe-alpha-active {
168
- width: 245px;
169
- }
170
-
171
- .fwe-color-picker .fwe-gradient-picker {
172
- width: 198px;
173
- height: 198px;
174
- margin: -7px;
175
- position: relative;
176
- }
177
-
178
- .fwe-color-picker .fwe-gradient-picker .fwe-brightness-gradient {
179
- background-image: linear-gradient(#0000, #000);
180
- position: absolute;
181
- inset: 7px;
182
- }
183
-
184
- .fwe-color-picker .fwe-gradient-picker .fwe-saturation-gradient {
185
- position: absolute;
186
- inset: 7px;
187
- }
188
-
189
- .fwe-color-picker .fwe-vertical-picker, .fwe-color-picker .fwe-alpha-picker, .fwe-color-picker .fwe-hue-picker {
190
- width: 14px;
191
- height: 198px;
192
- margin: -7px -3px -7px 18px;
193
- position: relative;
194
- }
195
-
196
- .fwe-color-picker .fwe-vertical-picker .fwe-picker-background, .fwe-color-picker .fwe-alpha-picker .fwe-picker-background, .fwe-color-picker .fwe-hue-picker .fwe-picker-background {
197
- border-radius: 4px;
198
- width: 8px;
199
- height: 184px;
200
- margin: 7px 3px;
201
- }
202
-
203
- .fwe-color-picker .fwe-vertical-picker .fwe-knob, .fwe-color-picker .fwe-alpha-picker .fwe-knob, .fwe-color-picker .fwe-hue-picker .fwe-knob {
204
- left: -3px;
205
- }
206
-
207
- .fwe-color-picker .fwe-hue-picker .fwe-picker-background {
208
- background-image: linear-gradient(red, #ff0, #0f0, #0ff, #00f, #f0f, red);
209
- }
210
-
211
- .fwe-color-picker .fwe-alpha-picker .fwe-no-color-pattern {
212
- margin: 7px 3px;
213
- position: absolute;
214
- }
215
-
216
- .fwe-color-picker .fwe-alpha-picker .fwe-picker-background {
217
- position: absolute;
218
- }
219
-
220
- .fwe-color-picker .fwe-type-select {
221
- display: flex;
222
- position: relative;
223
- }
224
-
225
- .fwe-color-picker .fwe-type-select .fwe-type-indicator {
226
- cursor: pointer;
227
- background-color: #fff;
228
- border: none;
229
- flex-shrink: 1;
230
- display: flex;
231
- }
232
-
233
- .fwe-color-picker .fwe-type-select .fwe-type-indicator:hover {
234
- color: var(--fwe-hero);
235
- }
236
-
237
- .fwe-color-picker .fwe-type-select .fwe-type-indicator .fwe-input-type {
238
- font-size: var(--fwe-font-size-small);
239
- line-height: calc(var(--fwe-font-size-small) + 5px);
240
- font-weight: var(--fwe-font-weight-bold);
241
- }
242
-
243
- .fwe-color-picker .fwe-type-select .fwe-popover {
244
- z-index: 1;
245
- position: absolute;
246
- top: 24px;
247
- left: 0;
248
- }
249
-
250
- .fwe-color-picker .fwe-type-select .fwe-popover .fwe-type-item {
251
- cursor: pointer;
252
- background-color: #fff;
253
- border: none;
254
- align-items: center;
255
- padding: 8px;
256
- display: flex;
257
- }
258
-
259
- .fwe-color-picker .fwe-type-select .fwe-popover .fwe-type-item:hover {
260
- color: var(--fwe-hero);
261
- }
262
-
263
- .fwe-color-picker .fwe-type-select .fwe-popover .fwe-type-item .fwe-svg-icon {
264
- opacity: 0;
265
- margin-right: 8px;
266
- }
267
-
268
- .fwe-color-picker .fwe-type-select .fwe-popover .fwe-type-item.fwe-selected {
269
- cursor: default;
270
- }
271
-
272
- .fwe-color-picker .fwe-type-select .fwe-popover .fwe-type-item.fwe-selected .fwe-svg-icon {
273
- opacity: 1;
274
- }
275
-
276
- .fwe-color-picker input::-webkit-outer-spin-button {
277
- -webkit-appearance: none;
278
- margin: 0;
279
- }
280
-
281
- .fwe-color-picker input::-webkit-inner-spin-button {
282
- -webkit-appearance: none;
283
- margin: 0;
284
- }
285
-
286
- .fwe-color-picker input[type="number"] {
287
- -moz-appearance: textfield;
288
- }
289
-
290
- .fwe-color-picker input {
291
- text-align: center;
292
- padding-right: 0 !important;
293
- }
294
-
295
- .fwe-color-picker .fwe-hex-input {
296
- width: 75px;
297
- margin-right: 16px;
298
- }
299
-
300
- .fwe-color-picker .fwe-red-input, .fwe-color-picker .fwe-green-input {
301
- width: 32px;
302
- margin-right: 8px;
303
- }
304
-
305
- .fwe-color-picker .fwe-blue-input {
306
- width: 32px;
307
- }
308
-
309
- .fwe-color-picker .fwe-alpha-input span input {
310
- width: 48px;
311
- padding-right: 16px !important;
312
- }
313
-
314
- .fwe-color-picker .fwe-alpha-input .fwe-percent-char {
315
- margin-left: -16px;
316
- }
317
-
318
- .fwe-color-picker .fwe-color-grid {
319
- flex-wrap: wrap;
320
- margin-bottom: -8px;
321
- margin-right: -8px;
322
- display: flex;
323
- }
324
-
325
- .fwe-color-picker .fwe-color-grid .fwe-color-item {
326
- color: #fff;
327
- border: none;
328
- border-radius: 4px;
329
- justify-content: center;
330
- align-items: center;
331
- width: 24px;
332
- height: 24px;
333
- margin-bottom: 8px;
334
- margin-right: 8px;
335
- padding: 0;
336
- display: flex;
337
- }
338
-
339
- .fwe-color-picker .fwe-color-grid .fwe-color-item.fwe-white-item {
340
- border: 1px solid var(--fwe-control-border);
341
- color: #000;
342
- }
343
-
344
- .fwe-color-picker .fwe-color-grid .fwe-remove-color-button {
345
- border: 1px solid var(--fwe-control-border);
346
- width: 24px;
347
- height: 24px;
348
- color: var(--fwe-control);
349
- border-radius: 4px;
350
- justify-content: center;
351
- align-items: center;
352
- margin-bottom: 8px;
353
- margin-right: 8px;
354
- display: flex;
355
- }
356
-
357
- .fwe-color-picker .fwe-color-grid .fwe-remove-color-button .fwe-no-color-pattern {
358
- margin: 2px;
359
- }
360
-
361
- .fwe-color-picker .fwe-color-grid .fwe-remove-color-button .fwe-svg-icon {
362
- color: #0000;
363
- position: absolute;
364
- }
365
-
366
- .fwe-color-picker .fwe-knob {
367
- z-index: 1;
368
- border: 2px solid #fff;
369
- border-radius: 50%;
370
- width: 14px;
371
- height: 14px;
372
- position: absolute;
373
- box-shadow: 0 0 4px #00000026;
374
- }
375
-
@@ -1,12 +0,0 @@
1
- import './ColorPicker.scss';
2
- export interface ColorPickerProps {
3
- readonly className?: string;
4
- readonly palette?: string[];
5
- readonly useAlpha?: boolean;
6
- readonly alpha?: number;
7
- readonly paletteOnly?: boolean;
8
- readonly color?: string;
9
- readonly onChange?: (color?: string | null) => void;
10
- readonly onAlphaChange?: (alpha?: number) => void;
11
- }
12
- export declare function ColorPicker({ className, palette, useAlpha, alpha, paletteOnly, color, onChange, onAlphaChange, }: ColorPickerProps): import("react/jsx-runtime").JSX.Element;