@festo-ui/react-extra 9.0.1-dev.760 → 9.0.1-dev.762

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,382 +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--content {
150
- width: auto;
151
- min-width: max-content;
152
- max-width: none;
153
- padding: 16px;
154
- }
155
-
156
- .fwe-popover-menu-trigger .fwe-popover-menu-trigger-button {
157
- cursor: pointer;
158
- background: none;
159
- border: none;
160
- margin: 0;
161
- padding: 0;
162
- line-height: 0;
163
- display: block;
164
- }
165
-
166
- .fwe-popover-menu-trigger .fwe-popover-menu-trigger-button:hover {
167
- color: var(--fwe-hero);
168
- }
169
-
170
- .fwe-color-picker {
171
- width: 216px;
172
- }
173
-
174
- .fwe-color-picker.fwe-alpha-active {
175
- width: 245px;
176
- }
177
-
178
- .fwe-color-picker .fwe-gradient-picker {
179
- width: 198px;
180
- height: 198px;
181
- margin: -7px;
182
- position: relative;
183
- }
184
-
185
- .fwe-color-picker .fwe-gradient-picker .fwe-brightness-gradient {
186
- background-image: linear-gradient(#0000, #000);
187
- position: absolute;
188
- inset: 7px;
189
- }
190
-
191
- .fwe-color-picker .fwe-gradient-picker .fwe-saturation-gradient {
192
- position: absolute;
193
- inset: 7px;
194
- }
195
-
196
- .fwe-color-picker .fwe-vertical-picker, .fwe-color-picker .fwe-alpha-picker, .fwe-color-picker .fwe-hue-picker {
197
- width: 14px;
198
- height: 198px;
199
- margin: -7px -3px -7px 18px;
200
- position: relative;
201
- }
202
-
203
- .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 {
204
- border-radius: 4px;
205
- width: 8px;
206
- height: 184px;
207
- margin: 7px 3px;
208
- }
209
-
210
- .fwe-color-picker .fwe-vertical-picker .fwe-knob, .fwe-color-picker .fwe-alpha-picker .fwe-knob, .fwe-color-picker .fwe-hue-picker .fwe-knob {
211
- left: -3px;
212
- }
213
-
214
- .fwe-color-picker .fwe-hue-picker .fwe-picker-background {
215
- background-image: linear-gradient(red, #ff0, #0f0, #0ff, #00f, #f0f, red);
216
- }
217
-
218
- .fwe-color-picker .fwe-alpha-picker .fwe-no-color-pattern {
219
- margin: 7px 3px;
220
- position: absolute;
221
- }
222
-
223
- .fwe-color-picker .fwe-alpha-picker .fwe-picker-background {
224
- position: absolute;
225
- }
226
-
227
- .fwe-color-picker .fwe-type-select {
228
- display: flex;
229
- position: relative;
230
- }
231
-
232
- .fwe-color-picker .fwe-type-select .fwe-type-indicator {
233
- cursor: pointer;
234
- background-color: #fff;
235
- border: none;
236
- flex-shrink: 1;
237
- display: flex;
238
- }
239
-
240
- .fwe-color-picker .fwe-type-select .fwe-type-indicator:hover {
241
- color: var(--fwe-hero);
242
- }
243
-
244
- .fwe-color-picker .fwe-type-select .fwe-type-indicator .fwe-input-type {
245
- font-size: var(--fwe-font-size-small);
246
- line-height: calc(var(--fwe-font-size-small) + 5px);
247
- font-weight: var(--fwe-font-weight-bold);
248
- }
249
-
250
- .fwe-color-picker .fwe-type-select .fwe-popover {
251
- z-index: 1;
252
- position: absolute;
253
- top: 24px;
254
- left: 0;
255
- }
256
-
257
- .fwe-color-picker .fwe-type-select .fwe-popover .fwe-type-item {
258
- cursor: pointer;
259
- background-color: #fff;
260
- border: none;
261
- align-items: center;
262
- padding: 8px;
263
- display: flex;
264
- }
265
-
266
- .fwe-color-picker .fwe-type-select .fwe-popover .fwe-type-item:hover {
267
- color: var(--fwe-hero);
268
- }
269
-
270
- .fwe-color-picker .fwe-type-select .fwe-popover .fwe-type-item .fwe-svg-icon {
271
- opacity: 0;
272
- margin-right: 8px;
273
- }
274
-
275
- .fwe-color-picker .fwe-type-select .fwe-popover .fwe-type-item.fwe-selected {
276
- cursor: default;
277
- }
278
-
279
- .fwe-color-picker .fwe-type-select .fwe-popover .fwe-type-item.fwe-selected .fwe-svg-icon {
280
- opacity: 1;
281
- }
282
-
283
- .fwe-color-picker input::-webkit-outer-spin-button {
284
- -webkit-appearance: none;
285
- margin: 0;
286
- }
287
-
288
- .fwe-color-picker input::-webkit-inner-spin-button {
289
- -webkit-appearance: none;
290
- margin: 0;
291
- }
292
-
293
- .fwe-color-picker input[type="number"] {
294
- -moz-appearance: textfield;
295
- }
296
-
297
- .fwe-color-picker input {
298
- text-align: center;
299
- padding-right: 0 !important;
300
- }
301
-
302
- .fwe-color-picker .fwe-hex-input {
303
- width: 75px;
304
- margin-right: 16px;
305
- }
306
-
307
- .fwe-color-picker .fwe-red-input, .fwe-color-picker .fwe-green-input {
308
- width: 32px;
309
- margin-right: 8px;
310
- }
311
-
312
- .fwe-color-picker .fwe-blue-input {
313
- width: 32px;
314
- }
315
-
316
- .fwe-color-picker .fwe-alpha-input span input {
317
- width: 48px;
318
- padding-right: 16px !important;
319
- }
320
-
321
- .fwe-color-picker .fwe-alpha-input .fwe-percent-char {
322
- margin-left: -16px;
323
- }
324
-
325
- .fwe-color-picker .fwe-color-grid {
326
- flex-wrap: wrap;
327
- margin-bottom: -8px;
328
- margin-right: -8px;
329
- display: flex;
330
- }
331
-
332
- .fwe-color-picker .fwe-color-grid .fwe-color-item {
333
- color: #fff;
334
- border: none;
335
- border-radius: 4px;
336
- justify-content: center;
337
- align-items: center;
338
- width: 24px;
339
- height: 24px;
340
- margin-bottom: 8px;
341
- margin-right: 8px;
342
- padding: 0;
343
- display: flex;
344
- }
345
-
346
- .fwe-color-picker .fwe-color-grid .fwe-color-item.fwe-white-item {
347
- border: 1px solid var(--fwe-control-border);
348
- color: #000;
349
- }
350
-
351
- .fwe-color-picker .fwe-color-grid .fwe-remove-color-button {
352
- border: 1px solid var(--fwe-control-border);
353
- width: 24px;
354
- height: 24px;
355
- color: var(--fwe-control);
356
- border-radius: 4px;
357
- justify-content: center;
358
- align-items: center;
359
- margin-bottom: 8px;
360
- margin-right: 8px;
361
- display: flex;
362
- }
363
-
364
- .fwe-color-picker .fwe-color-grid .fwe-remove-color-button .fwe-no-color-pattern {
365
- margin: 2px;
366
- }
367
-
368
- .fwe-color-picker .fwe-color-grid .fwe-remove-color-button .fwe-svg-icon {
369
- color: #0000;
370
- position: absolute;
371
- }
372
-
373
- .fwe-color-picker .fwe-knob {
374
- z-index: 1;
375
- border: 2px solid #fff;
376
- border-radius: 50%;
377
- width: 14px;
378
- height: 14px;
379
- position: absolute;
380
- box-shadow: 0 0 4px #00000026;
381
- }
382
-
@@ -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;