@festo-ui/react 3.1.0-pre-20220328.2 → 3.1.0-pre-20220331.4
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/index.esm.css +37 -37
- package/index.esm.js +9 -27
- package/index.umd.css +37 -37
- package/index.umd.js +9 -30
- package/lib/components/modals/ConfirmModal.d.ts +2 -1
- package/lib/components/modals/ModalFooter.d.ts +1 -4
- package/package.json +2 -2
package/index.esm.css
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
align-items: center;
|
|
8
8
|
height: 48px;
|
|
9
9
|
padding: 0 16px 0 24px;
|
|
10
|
-
font-size:
|
|
11
|
-
font-weight:
|
|
10
|
+
font-size: var(--fwe-font-size-md);
|
|
11
|
+
font-weight: var(--fwe-font-weight-bold);
|
|
12
12
|
color: var(--fwe-text);
|
|
13
13
|
border-bottom: 1px solid var(--fwe-gray-100);
|
|
14
14
|
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
top: 24px;
|
|
25
25
|
right: 24px;
|
|
26
26
|
color: var(--fwe-caerul);
|
|
27
|
-
font-size:
|
|
27
|
+
font-size: var(--fwe-font-size-md);
|
|
28
28
|
pointer-events: none;
|
|
29
29
|
display: none;
|
|
30
30
|
}
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
top: 21px;
|
|
44
44
|
right: 16px;
|
|
45
45
|
display: block;
|
|
46
|
-
font-family:
|
|
47
|
-
font-size:
|
|
46
|
+
font-family: var(--fwe-font-family-icons-32);
|
|
47
|
+
font-size: var(--fwe-font-size-xxl);
|
|
48
48
|
content: "";
|
|
49
49
|
height: 32px;
|
|
50
50
|
line-height: 32px;
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
pointer-events: none;
|
|
53
53
|
}
|
|
54
54
|
.fr-accordion-item--expanded .fr-accordion-item-header {
|
|
55
|
-
font-weight:
|
|
55
|
+
font-weight: var(--fwe-font-weight-bold);
|
|
56
56
|
}
|
|
57
57
|
.fr-accordion-item--expanded .fr-accordion-item-body {
|
|
58
58
|
height: auto;
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
height: 0px;
|
|
68
68
|
}
|
|
69
69
|
.fr-accordion-item--collapsed .fr-accordion-item-header {
|
|
70
|
-
font-weight:
|
|
70
|
+
font-weight: var(--fwe-font-weight-normal);
|
|
71
71
|
}
|
|
72
72
|
@charset "UTF-8";
|
|
73
73
|
.fr-accordion-item-body {
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
top: 12px;
|
|
108
108
|
right: 4px;
|
|
109
109
|
color: var(--fwe-caerul);
|
|
110
|
-
font-family:
|
|
111
|
-
font-size:
|
|
110
|
+
font-family: var(--fwe-font-family-icons-16);
|
|
111
|
+
font-size: var(--fwe-font-size-base);
|
|
112
112
|
content: "";
|
|
113
113
|
height: 16px;
|
|
114
114
|
line-height: 16px;
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
padding-right: 168px;
|
|
128
128
|
}
|
|
129
129
|
.fr-accordion-item-body .fr-accordion-item-link {
|
|
130
|
-
font-size:
|
|
130
|
+
font-size: var(--fwe-font-size-base);
|
|
131
131
|
top: 24px;
|
|
132
132
|
max-width: 128px;
|
|
133
133
|
white-space: nowrap;
|
|
@@ -181,15 +181,15 @@
|
|
|
181
181
|
right: 5px;
|
|
182
182
|
top: 3px;
|
|
183
183
|
color: #333;
|
|
184
|
-
font-size:
|
|
185
|
-
line-height:
|
|
184
|
+
font-size: var(--fwe-font-size-base);
|
|
185
|
+
line-height: var(--fwe-font-size-base);
|
|
186
186
|
-webkit-font-smoothing: antialiased;
|
|
187
187
|
-moz-osx-font-smoothing: grayscale;
|
|
188
188
|
margin-left: 0;
|
|
189
189
|
padding-right: 0;
|
|
190
190
|
}
|
|
191
191
|
.fwe-chip-container .fr-chip .fwe-icon-menu-close::before {
|
|
192
|
-
font-family:
|
|
192
|
+
font-family: var(--fwe-font-family-icons-32);
|
|
193
193
|
}
|
|
194
194
|
.fwe-chip-container .fr-chip.fwe-chip.fwe-selected.fwe-category::after {
|
|
195
195
|
content: none;
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
.fwe-color-indicator .fwe-popover-container .fwe-popover {
|
|
253
253
|
background-color: var(--fwe-white);
|
|
254
254
|
padding: 8px 16px 16px 16px;
|
|
255
|
-
font-size:
|
|
255
|
+
font-size: var(--fwe-font-size-md);
|
|
256
256
|
line-height: 1rem;
|
|
257
257
|
box-shadow: 0px 1px 4px #33333333;
|
|
258
258
|
border-radius: 8px;
|
|
@@ -262,8 +262,8 @@
|
|
|
262
262
|
}
|
|
263
263
|
.fwe-color-indicator .fwe-color-label {
|
|
264
264
|
height: 18px;
|
|
265
|
-
font-size:
|
|
266
|
-
font-weight: bold;
|
|
265
|
+
font-size: var(--fwe-font-size-small);
|
|
266
|
+
font-weight: var(--fwe-font-weight-bold);
|
|
267
267
|
margin-bottom: 4px;
|
|
268
268
|
}
|
|
269
269
|
.fwe-color-indicator .fwe-color-container {
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
|
|
319
319
|
.fwe-popover {
|
|
320
320
|
padding: 8px;
|
|
321
|
-
font-size:
|
|
321
|
+
font-size: var(--fwe-font-size-md);
|
|
322
322
|
line-height: 1rem;
|
|
323
323
|
}
|
|
324
324
|
|
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
.fwe-popover.fwe-popover-menu {
|
|
368
|
-
font-size:
|
|
368
|
+
font-size: var(--fwe-font-size-base);
|
|
369
369
|
line-height: 1.5rem;
|
|
370
370
|
padding: 16px;
|
|
371
371
|
}
|
|
@@ -493,9 +493,9 @@
|
|
|
493
493
|
display: flex;
|
|
494
494
|
}
|
|
495
495
|
.fwe-color-picker .fwe-type-select .fwe-type-indicator .fwe-input-type {
|
|
496
|
-
font-size:
|
|
497
|
-
line-height:
|
|
498
|
-
font-weight: bold;
|
|
496
|
+
font-size: var(--fwe-font-size-small);
|
|
497
|
+
line-height: calc(var(--fwe-font-size-small) + 5px);
|
|
498
|
+
font-weight: var(--fwe-font-weight-bold);
|
|
499
499
|
}
|
|
500
500
|
.fwe-color-picker .fwe-type-select .fwe-type-indicator:hover {
|
|
501
501
|
color: var(--fwe-hero);
|
|
@@ -663,7 +663,7 @@
|
|
|
663
663
|
margin-bottom: 0;
|
|
664
664
|
margin-top: 0;
|
|
665
665
|
list-style: none;
|
|
666
|
-
font-size:
|
|
666
|
+
font-size: var(--fwe-font-size-base);
|
|
667
667
|
}
|
|
668
668
|
.fwe-legacy-tab-bar.fwe-legacy-tab-bar-full-width {
|
|
669
669
|
width: 100%;
|
|
@@ -904,7 +904,7 @@
|
|
|
904
904
|
display: none;
|
|
905
905
|
}
|
|
906
906
|
.fwe-checkbox-container {
|
|
907
|
-
font-family:
|
|
907
|
+
font-family: var(--fwe-font-family-sans-serif);
|
|
908
908
|
-webkit-user-select: none;
|
|
909
909
|
-moz-user-select: none;
|
|
910
910
|
-ms-user-select: none;
|
|
@@ -1072,7 +1072,7 @@
|
|
|
1072
1072
|
color: var(--fwe-text-disabled);
|
|
1073
1073
|
}
|
|
1074
1074
|
.fwe-select-wrapper .fwe-select-options-container {
|
|
1075
|
-
font-size:
|
|
1075
|
+
font-size: var(--fwe-font-size-base);
|
|
1076
1076
|
position: absolute;
|
|
1077
1077
|
top: 56px;
|
|
1078
1078
|
left: 0px;
|
|
@@ -1134,7 +1134,7 @@ label.fwe-slider.fr-slider-label {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
label.fwe-slider .fr-slider-value {
|
|
1136
1136
|
color: var(--fwe-text);
|
|
1137
|
-
font-size:
|
|
1137
|
+
font-size: var(--fwe-font-size-base);
|
|
1138
1138
|
margin-bottom: 0px;
|
|
1139
1139
|
position: absolute;
|
|
1140
1140
|
bottom: 0px;
|
|
@@ -1191,12 +1191,12 @@ label.fwe-slider .fr-slider-value {
|
|
|
1191
1191
|
}
|
|
1192
1192
|
label.fwe-input-text .fwe-input-text-count {
|
|
1193
1193
|
display: block;
|
|
1194
|
-
line-height:
|
|
1194
|
+
line-height: var(--fwe-line-height-base);
|
|
1195
1195
|
position: absolute;
|
|
1196
1196
|
right: 0px;
|
|
1197
1197
|
bottom: 0px;
|
|
1198
1198
|
color: var(--fwe-text-disabled);
|
|
1199
|
-
font-size:
|
|
1199
|
+
font-size: var(--fwe-font-size-small);
|
|
1200
1200
|
}
|
|
1201
1201
|
label.fwe-input-text .fr-textarea {
|
|
1202
1202
|
overflow: visible;
|
|
@@ -2938,13 +2938,13 @@ label.fwe-input-text {
|
|
|
2938
2938
|
}
|
|
2939
2939
|
label.fwe-input-text .fwe-input-text-count {
|
|
2940
2940
|
display: block;
|
|
2941
|
-
line-height:
|
|
2941
|
+
line-height: var(--fwe-line-height-base);
|
|
2942
2942
|
position: absolute;
|
|
2943
2943
|
right: 0;
|
|
2944
2944
|
bottom: 0;
|
|
2945
2945
|
z-index: 1;
|
|
2946
2946
|
color: var(--fwe-text-disabled);
|
|
2947
|
-
font-size:
|
|
2947
|
+
font-size: var(--fwe-font-size-small);
|
|
2948
2948
|
}
|
|
2949
2949
|
label.fwe-input-text .fwe-input-text-label {
|
|
2950
2950
|
order: -1;
|
|
@@ -2954,14 +2954,14 @@ label.fwe-input-text .fwe-text-editor-info {
|
|
|
2954
2954
|
overflow: hidden;
|
|
2955
2955
|
text-overflow: ellipsis;
|
|
2956
2956
|
display: inline-block;
|
|
2957
|
-
line-height:
|
|
2957
|
+
line-height: var(--fwe-line-height-base);
|
|
2958
2958
|
position: absolute;
|
|
2959
2959
|
left: 0;
|
|
2960
2960
|
top: unset;
|
|
2961
2961
|
bottom: 0;
|
|
2962
2962
|
z-index: 2;
|
|
2963
2963
|
color: var(--fwe-text-disabled);
|
|
2964
|
-
font-size:
|
|
2964
|
+
font-size: var(--fwe-font-size-small);
|
|
2965
2965
|
}
|
|
2966
2966
|
label.fwe-input-text .fwe-text-editor-invalid {
|
|
2967
2967
|
line-height: 1.5;
|
|
@@ -2970,7 +2970,7 @@ label.fwe-input-text .fwe-text-editor-invalid {
|
|
|
2970
2970
|
bottom: 0;
|
|
2971
2971
|
z-index: 2;
|
|
2972
2972
|
color: var(--fwe-red);
|
|
2973
|
-
font-size:
|
|
2973
|
+
font-size: var(--fwe-font-size-small);
|
|
2974
2974
|
}
|
|
2975
2975
|
label.fwe-input-text .fwe-text-editor-invalid ~ .fwe-text-editor-info {
|
|
2976
2976
|
display: none;
|
|
@@ -2992,7 +2992,7 @@ label.fwe-input-text.fwe-disabled .fwe-divider-y {
|
|
|
2992
2992
|
}
|
|
2993
2993
|
|
|
2994
2994
|
.fwe-text-bold {
|
|
2995
|
-
font-weight:
|
|
2995
|
+
font-weight: var(--fwe-font-weight-bold);
|
|
2996
2996
|
}
|
|
2997
2997
|
|
|
2998
2998
|
.fwe-text-italic {
|
|
@@ -3008,8 +3008,8 @@ label.fwe-input-text.fwe-disabled .fwe-divider-y {
|
|
|
3008
3008
|
}
|
|
3009
3009
|
|
|
3010
3010
|
.ql-editor {
|
|
3011
|
-
font-family:
|
|
3012
|
-
font-size:
|
|
3011
|
+
font-family: var(--fwe-font-family-sans-serif);
|
|
3012
|
+
font-size: var(--fwe-font-size-base);
|
|
3013
3013
|
padding: 0;
|
|
3014
3014
|
min-height: 72px;
|
|
3015
3015
|
overflow-x: hidden;
|
|
@@ -3134,11 +3134,11 @@ label.fwe-input-text.fwe-disabled .ql-toolbar button {
|
|
|
3134
3134
|
background: #fff;
|
|
3135
3135
|
line-height: 1.5rem;
|
|
3136
3136
|
padding: 16px;
|
|
3137
|
-
font-size:
|
|
3137
|
+
font-size: var(--fwe-font-size-base);
|
|
3138
3138
|
box-shadow: 0px 1px 4px #33333333;
|
|
3139
3139
|
}
|
|
3140
3140
|
.fwe-popover-menu .fwe-popover {
|
|
3141
|
-
font-size:
|
|
3141
|
+
font-size: var(--fwe-font-size-base);
|
|
3142
3142
|
line-height: 1.5rem;
|
|
3143
3143
|
padding: 16px;
|
|
3144
3144
|
}
|
package/index.esm.js
CHANGED
|
@@ -363,7 +363,6 @@ const Modal = /*#__PURE__*/forwardRef(({
|
|
|
363
363
|
});
|
|
364
364
|
|
|
365
365
|
const ModalFooter = /*#__PURE__*/forwardRef(({
|
|
366
|
-
fullWidth,
|
|
367
366
|
children,
|
|
368
367
|
className
|
|
369
368
|
}, ref) => {
|
|
@@ -372,9 +371,7 @@ const ModalFooter = /*#__PURE__*/forwardRef(({
|
|
|
372
371
|
className: classNames('fwe-modal-footer', className)
|
|
373
372
|
}, {
|
|
374
373
|
children: jsx("div", Object.assign({
|
|
375
|
-
className: classNames('fwe-modal-buttons'
|
|
376
|
-
'fwe-modal-buttons--full-width': fullWidth
|
|
377
|
-
})
|
|
374
|
+
className: classNames('fwe-modal-buttons')
|
|
378
375
|
}, {
|
|
379
376
|
children: children
|
|
380
377
|
}), void 0)
|
|
@@ -432,9 +429,7 @@ function AlertModal(_a) {
|
|
|
432
429
|
children: body
|
|
433
430
|
}, void 0)
|
|
434
431
|
}, props, {
|
|
435
|
-
children: (cancel || ok) && jsxs(ModalFooter,
|
|
436
|
-
fullWidth: true
|
|
437
|
-
}, {
|
|
432
|
+
children: (cancel || ok) && jsxs(ModalFooter, {
|
|
438
433
|
children: [cancel && jsx("button", Object.assign({
|
|
439
434
|
type: "button",
|
|
440
435
|
"aria-label": "Cancel",
|
|
@@ -454,7 +449,7 @@ function AlertModal(_a) {
|
|
|
454
449
|
}, {
|
|
455
450
|
children: ok
|
|
456
451
|
}), void 0)]
|
|
457
|
-
}
|
|
452
|
+
}, void 0)
|
|
458
453
|
}), void 0);
|
|
459
454
|
}
|
|
460
455
|
|
|
@@ -1624,24 +1619,14 @@ function ConfirmModal(_a) {
|
|
|
1624
1619
|
ok,
|
|
1625
1620
|
onCancel,
|
|
1626
1621
|
onOk,
|
|
1627
|
-
isOpen
|
|
1622
|
+
isOpen,
|
|
1623
|
+
large
|
|
1628
1624
|
} = _a,
|
|
1629
|
-
props = __rest(_a, ["title", "subtitle", "body", "className", "cancel", "ok", "onCancel", "onOk", "isOpen"]);
|
|
1625
|
+
props = __rest(_a, ["title", "subtitle", "body", "className", "cancel", "ok", "onCancel", "onOk", "isOpen", "large"]);
|
|
1630
1626
|
|
|
1631
|
-
const [hasScrollableContent, setScrollableContent] = useState(false);
|
|
1632
|
-
const ref = useCallback(node => {
|
|
1633
|
-
if (node !== null) {
|
|
1634
|
-
setScrollableContent(node.scrollHeight > node.getBoundingClientRect().height);
|
|
1635
|
-
}
|
|
1636
|
-
}, []);
|
|
1637
|
-
useEffect(() => {
|
|
1638
|
-
if (!isOpen) {
|
|
1639
|
-
setScrollableContent(false);
|
|
1640
|
-
}
|
|
1641
|
-
}, [isOpen]);
|
|
1642
1627
|
return jsx(Modal, Object.assign({
|
|
1643
1628
|
className: classNames({
|
|
1644
|
-
'fwe-modal--
|
|
1629
|
+
'fwe-modal--large': large
|
|
1645
1630
|
}, className),
|
|
1646
1631
|
head: jsxs(Fragment, {
|
|
1647
1632
|
children: [subtitle && jsx("h2", Object.assign({
|
|
@@ -1654,15 +1639,12 @@ function ConfirmModal(_a) {
|
|
|
1654
1639
|
children: title
|
|
1655
1640
|
}), void 0)]
|
|
1656
1641
|
}, void 0),
|
|
1657
|
-
ref: ref,
|
|
1658
1642
|
body: jsx("p", {
|
|
1659
1643
|
children: body
|
|
1660
1644
|
}, void 0),
|
|
1661
1645
|
isOpen: isOpen
|
|
1662
1646
|
}, props, {
|
|
1663
|
-
children: (cancel || ok) && jsxs(ModalFooter,
|
|
1664
|
-
fullWidth: !hasScrollableContent
|
|
1665
|
-
}, {
|
|
1647
|
+
children: (cancel || ok) && jsxs(ModalFooter, {
|
|
1666
1648
|
children: [cancel && jsx("button", Object.assign({
|
|
1667
1649
|
type: "button",
|
|
1668
1650
|
"aria-label": "Cancel",
|
|
@@ -1678,7 +1660,7 @@ function ConfirmModal(_a) {
|
|
|
1678
1660
|
}, {
|
|
1679
1661
|
children: ok
|
|
1680
1662
|
}), void 0)]
|
|
1681
|
-
}
|
|
1663
|
+
}, void 0)
|
|
1682
1664
|
}), void 0);
|
|
1683
1665
|
}
|
|
1684
1666
|
|
package/index.umd.css
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
align-items: center;
|
|
8
8
|
height: 48px;
|
|
9
9
|
padding: 0 16px 0 24px;
|
|
10
|
-
font-size:
|
|
11
|
-
font-weight:
|
|
10
|
+
font-size: var(--fwe-font-size-md);
|
|
11
|
+
font-weight: var(--fwe-font-weight-bold);
|
|
12
12
|
color: var(--fwe-text);
|
|
13
13
|
border-bottom: 1px solid var(--fwe-gray-100);
|
|
14
14
|
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
top: 24px;
|
|
25
25
|
right: 24px;
|
|
26
26
|
color: var(--fwe-caerul);
|
|
27
|
-
font-size:
|
|
27
|
+
font-size: var(--fwe-font-size-md);
|
|
28
28
|
pointer-events: none;
|
|
29
29
|
display: none;
|
|
30
30
|
}
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
top: 21px;
|
|
44
44
|
right: 16px;
|
|
45
45
|
display: block;
|
|
46
|
-
font-family:
|
|
47
|
-
font-size:
|
|
46
|
+
font-family: var(--fwe-font-family-icons-32);
|
|
47
|
+
font-size: var(--fwe-font-size-xxl);
|
|
48
48
|
content: "";
|
|
49
49
|
height: 32px;
|
|
50
50
|
line-height: 32px;
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
pointer-events: none;
|
|
53
53
|
}
|
|
54
54
|
.fr-accordion-item--expanded .fr-accordion-item-header {
|
|
55
|
-
font-weight:
|
|
55
|
+
font-weight: var(--fwe-font-weight-bold);
|
|
56
56
|
}
|
|
57
57
|
.fr-accordion-item--expanded .fr-accordion-item-body {
|
|
58
58
|
height: auto;
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
height: 0px;
|
|
68
68
|
}
|
|
69
69
|
.fr-accordion-item--collapsed .fr-accordion-item-header {
|
|
70
|
-
font-weight:
|
|
70
|
+
font-weight: var(--fwe-font-weight-normal);
|
|
71
71
|
}
|
|
72
72
|
@charset "UTF-8";
|
|
73
73
|
.fr-accordion-item-body {
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
top: 12px;
|
|
108
108
|
right: 4px;
|
|
109
109
|
color: var(--fwe-caerul);
|
|
110
|
-
font-family:
|
|
111
|
-
font-size:
|
|
110
|
+
font-family: var(--fwe-font-family-icons-16);
|
|
111
|
+
font-size: var(--fwe-font-size-base);
|
|
112
112
|
content: "";
|
|
113
113
|
height: 16px;
|
|
114
114
|
line-height: 16px;
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
padding-right: 168px;
|
|
128
128
|
}
|
|
129
129
|
.fr-accordion-item-body .fr-accordion-item-link {
|
|
130
|
-
font-size:
|
|
130
|
+
font-size: var(--fwe-font-size-base);
|
|
131
131
|
top: 24px;
|
|
132
132
|
max-width: 128px;
|
|
133
133
|
white-space: nowrap;
|
|
@@ -181,15 +181,15 @@
|
|
|
181
181
|
right: 5px;
|
|
182
182
|
top: 3px;
|
|
183
183
|
color: #333;
|
|
184
|
-
font-size:
|
|
185
|
-
line-height:
|
|
184
|
+
font-size: var(--fwe-font-size-base);
|
|
185
|
+
line-height: var(--fwe-font-size-base);
|
|
186
186
|
-webkit-font-smoothing: antialiased;
|
|
187
187
|
-moz-osx-font-smoothing: grayscale;
|
|
188
188
|
margin-left: 0;
|
|
189
189
|
padding-right: 0;
|
|
190
190
|
}
|
|
191
191
|
.fwe-chip-container .fr-chip .fwe-icon-menu-close::before {
|
|
192
|
-
font-family:
|
|
192
|
+
font-family: var(--fwe-font-family-icons-32);
|
|
193
193
|
}
|
|
194
194
|
.fwe-chip-container .fr-chip.fwe-chip.fwe-selected.fwe-category::after {
|
|
195
195
|
content: none;
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
.fwe-color-indicator .fwe-popover-container .fwe-popover {
|
|
253
253
|
background-color: var(--fwe-white);
|
|
254
254
|
padding: 8px 16px 16px 16px;
|
|
255
|
-
font-size:
|
|
255
|
+
font-size: var(--fwe-font-size-md);
|
|
256
256
|
line-height: 1rem;
|
|
257
257
|
box-shadow: 0px 1px 4px #33333333;
|
|
258
258
|
border-radius: 8px;
|
|
@@ -262,8 +262,8 @@
|
|
|
262
262
|
}
|
|
263
263
|
.fwe-color-indicator .fwe-color-label {
|
|
264
264
|
height: 18px;
|
|
265
|
-
font-size:
|
|
266
|
-
font-weight: bold;
|
|
265
|
+
font-size: var(--fwe-font-size-small);
|
|
266
|
+
font-weight: var(--fwe-font-weight-bold);
|
|
267
267
|
margin-bottom: 4px;
|
|
268
268
|
}
|
|
269
269
|
.fwe-color-indicator .fwe-color-container {
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
|
|
319
319
|
.fwe-popover {
|
|
320
320
|
padding: 8px;
|
|
321
|
-
font-size:
|
|
321
|
+
font-size: var(--fwe-font-size-md);
|
|
322
322
|
line-height: 1rem;
|
|
323
323
|
}
|
|
324
324
|
|
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
.fwe-popover.fwe-popover-menu {
|
|
368
|
-
font-size:
|
|
368
|
+
font-size: var(--fwe-font-size-base);
|
|
369
369
|
line-height: 1.5rem;
|
|
370
370
|
padding: 16px;
|
|
371
371
|
}
|
|
@@ -493,9 +493,9 @@
|
|
|
493
493
|
display: flex;
|
|
494
494
|
}
|
|
495
495
|
.fwe-color-picker .fwe-type-select .fwe-type-indicator .fwe-input-type {
|
|
496
|
-
font-size:
|
|
497
|
-
line-height:
|
|
498
|
-
font-weight: bold;
|
|
496
|
+
font-size: var(--fwe-font-size-small);
|
|
497
|
+
line-height: calc(var(--fwe-font-size-small) + 5px);
|
|
498
|
+
font-weight: var(--fwe-font-weight-bold);
|
|
499
499
|
}
|
|
500
500
|
.fwe-color-picker .fwe-type-select .fwe-type-indicator:hover {
|
|
501
501
|
color: var(--fwe-hero);
|
|
@@ -663,7 +663,7 @@
|
|
|
663
663
|
margin-bottom: 0;
|
|
664
664
|
margin-top: 0;
|
|
665
665
|
list-style: none;
|
|
666
|
-
font-size:
|
|
666
|
+
font-size: var(--fwe-font-size-base);
|
|
667
667
|
}
|
|
668
668
|
.fwe-legacy-tab-bar.fwe-legacy-tab-bar-full-width {
|
|
669
669
|
width: 100%;
|
|
@@ -904,7 +904,7 @@
|
|
|
904
904
|
display: none;
|
|
905
905
|
}
|
|
906
906
|
.fwe-checkbox-container {
|
|
907
|
-
font-family:
|
|
907
|
+
font-family: var(--fwe-font-family-sans-serif);
|
|
908
908
|
-webkit-user-select: none;
|
|
909
909
|
-moz-user-select: none;
|
|
910
910
|
-ms-user-select: none;
|
|
@@ -1072,7 +1072,7 @@
|
|
|
1072
1072
|
color: var(--fwe-text-disabled);
|
|
1073
1073
|
}
|
|
1074
1074
|
.fwe-select-wrapper .fwe-select-options-container {
|
|
1075
|
-
font-size:
|
|
1075
|
+
font-size: var(--fwe-font-size-base);
|
|
1076
1076
|
position: absolute;
|
|
1077
1077
|
top: 56px;
|
|
1078
1078
|
left: 0px;
|
|
@@ -1134,7 +1134,7 @@ label.fwe-slider.fr-slider-label {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
label.fwe-slider .fr-slider-value {
|
|
1136
1136
|
color: var(--fwe-text);
|
|
1137
|
-
font-size:
|
|
1137
|
+
font-size: var(--fwe-font-size-base);
|
|
1138
1138
|
margin-bottom: 0px;
|
|
1139
1139
|
position: absolute;
|
|
1140
1140
|
bottom: 0px;
|
|
@@ -1191,12 +1191,12 @@ label.fwe-slider .fr-slider-value {
|
|
|
1191
1191
|
}
|
|
1192
1192
|
label.fwe-input-text .fwe-input-text-count {
|
|
1193
1193
|
display: block;
|
|
1194
|
-
line-height:
|
|
1194
|
+
line-height: var(--fwe-line-height-base);
|
|
1195
1195
|
position: absolute;
|
|
1196
1196
|
right: 0px;
|
|
1197
1197
|
bottom: 0px;
|
|
1198
1198
|
color: var(--fwe-text-disabled);
|
|
1199
|
-
font-size:
|
|
1199
|
+
font-size: var(--fwe-font-size-small);
|
|
1200
1200
|
}
|
|
1201
1201
|
label.fwe-input-text .fr-textarea {
|
|
1202
1202
|
overflow: visible;
|
|
@@ -2938,13 +2938,13 @@ label.fwe-input-text {
|
|
|
2938
2938
|
}
|
|
2939
2939
|
label.fwe-input-text .fwe-input-text-count {
|
|
2940
2940
|
display: block;
|
|
2941
|
-
line-height:
|
|
2941
|
+
line-height: var(--fwe-line-height-base);
|
|
2942
2942
|
position: absolute;
|
|
2943
2943
|
right: 0;
|
|
2944
2944
|
bottom: 0;
|
|
2945
2945
|
z-index: 1;
|
|
2946
2946
|
color: var(--fwe-text-disabled);
|
|
2947
|
-
font-size:
|
|
2947
|
+
font-size: var(--fwe-font-size-small);
|
|
2948
2948
|
}
|
|
2949
2949
|
label.fwe-input-text .fwe-input-text-label {
|
|
2950
2950
|
order: -1;
|
|
@@ -2954,14 +2954,14 @@ label.fwe-input-text .fwe-text-editor-info {
|
|
|
2954
2954
|
overflow: hidden;
|
|
2955
2955
|
text-overflow: ellipsis;
|
|
2956
2956
|
display: inline-block;
|
|
2957
|
-
line-height:
|
|
2957
|
+
line-height: var(--fwe-line-height-base);
|
|
2958
2958
|
position: absolute;
|
|
2959
2959
|
left: 0;
|
|
2960
2960
|
top: unset;
|
|
2961
2961
|
bottom: 0;
|
|
2962
2962
|
z-index: 2;
|
|
2963
2963
|
color: var(--fwe-text-disabled);
|
|
2964
|
-
font-size:
|
|
2964
|
+
font-size: var(--fwe-font-size-small);
|
|
2965
2965
|
}
|
|
2966
2966
|
label.fwe-input-text .fwe-text-editor-invalid {
|
|
2967
2967
|
line-height: 1.5;
|
|
@@ -2970,7 +2970,7 @@ label.fwe-input-text .fwe-text-editor-invalid {
|
|
|
2970
2970
|
bottom: 0;
|
|
2971
2971
|
z-index: 2;
|
|
2972
2972
|
color: var(--fwe-red);
|
|
2973
|
-
font-size:
|
|
2973
|
+
font-size: var(--fwe-font-size-small);
|
|
2974
2974
|
}
|
|
2975
2975
|
label.fwe-input-text .fwe-text-editor-invalid ~ .fwe-text-editor-info {
|
|
2976
2976
|
display: none;
|
|
@@ -2992,7 +2992,7 @@ label.fwe-input-text.fwe-disabled .fwe-divider-y {
|
|
|
2992
2992
|
}
|
|
2993
2993
|
|
|
2994
2994
|
.fwe-text-bold {
|
|
2995
|
-
font-weight:
|
|
2995
|
+
font-weight: var(--fwe-font-weight-bold);
|
|
2996
2996
|
}
|
|
2997
2997
|
|
|
2998
2998
|
.fwe-text-italic {
|
|
@@ -3008,8 +3008,8 @@ label.fwe-input-text.fwe-disabled .fwe-divider-y {
|
|
|
3008
3008
|
}
|
|
3009
3009
|
|
|
3010
3010
|
.ql-editor {
|
|
3011
|
-
font-family:
|
|
3012
|
-
font-size:
|
|
3011
|
+
font-family: var(--fwe-font-family-sans-serif);
|
|
3012
|
+
font-size: var(--fwe-font-size-base);
|
|
3013
3013
|
padding: 0;
|
|
3014
3014
|
min-height: 72px;
|
|
3015
3015
|
overflow-x: hidden;
|
|
@@ -3134,11 +3134,11 @@ label.fwe-input-text.fwe-disabled .ql-toolbar button {
|
|
|
3134
3134
|
background: #fff;
|
|
3135
3135
|
line-height: 1.5rem;
|
|
3136
3136
|
padding: 16px;
|
|
3137
|
-
font-size:
|
|
3137
|
+
font-size: var(--fwe-font-size-base);
|
|
3138
3138
|
box-shadow: 0px 1px 4px #33333333;
|
|
3139
3139
|
}
|
|
3140
3140
|
.fwe-popover-menu .fwe-popover {
|
|
3141
|
-
font-size:
|
|
3141
|
+
font-size: var(--fwe-font-size-base);
|
|
3142
3142
|
line-height: 1.5rem;
|
|
3143
3143
|
padding: 16px;
|
|
3144
3144
|
}
|
package/index.umd.js
CHANGED
|
@@ -394,17 +394,14 @@
|
|
|
394
394
|
});
|
|
395
395
|
|
|
396
396
|
var ModalFooter = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
397
|
-
var
|
|
398
|
-
children = _a.children,
|
|
397
|
+
var children = _a.children,
|
|
399
398
|
className = _a.className;
|
|
400
399
|
return jsxRuntime.jsx("div", __assign({
|
|
401
400
|
ref: ref,
|
|
402
401
|
className: classNames__default["default"]('fwe-modal-footer', className)
|
|
403
402
|
}, {
|
|
404
403
|
children: jsxRuntime.jsx("div", __assign({
|
|
405
|
-
className: classNames__default["default"]('fwe-modal-buttons'
|
|
406
|
-
'fwe-modal-buttons--full-width': fullWidth
|
|
407
|
-
})
|
|
404
|
+
className: classNames__default["default"]('fwe-modal-buttons')
|
|
408
405
|
}, {
|
|
409
406
|
children: children
|
|
410
407
|
}), void 0)
|
|
@@ -460,9 +457,7 @@
|
|
|
460
457
|
children: body
|
|
461
458
|
}, void 0)
|
|
462
459
|
}, props, {
|
|
463
|
-
children: (cancel || ok) && jsxRuntime.jsxs(ModalFooter,
|
|
464
|
-
fullWidth: true
|
|
465
|
-
}, {
|
|
460
|
+
children: (cancel || ok) && jsxRuntime.jsxs(ModalFooter, {
|
|
466
461
|
children: [cancel && jsxRuntime.jsx("button", __assign({
|
|
467
462
|
type: "button",
|
|
468
463
|
"aria-label": "Cancel",
|
|
@@ -482,7 +477,7 @@
|
|
|
482
477
|
}, {
|
|
483
478
|
children: ok
|
|
484
479
|
}), void 0)]
|
|
485
|
-
}
|
|
480
|
+
}, void 0)
|
|
486
481
|
}), void 0);
|
|
487
482
|
}
|
|
488
483
|
|
|
@@ -1765,25 +1760,12 @@
|
|
|
1765
1760
|
onCancel = _a.onCancel,
|
|
1766
1761
|
onOk = _a.onOk,
|
|
1767
1762
|
isOpen = _a.isOpen,
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
var _b = React.useState(false),
|
|
1771
|
-
hasScrollableContent = _b[0],
|
|
1772
|
-
setScrollableContent = _b[1];
|
|
1763
|
+
large = _a.large,
|
|
1764
|
+
props = __rest(_a, ["title", "subtitle", "body", "className", "cancel", "ok", "onCancel", "onOk", "isOpen", "large"]);
|
|
1773
1765
|
|
|
1774
|
-
var ref = React.useCallback(function (node) {
|
|
1775
|
-
if (node !== null) {
|
|
1776
|
-
setScrollableContent(node.scrollHeight > node.getBoundingClientRect().height);
|
|
1777
|
-
}
|
|
1778
|
-
}, []);
|
|
1779
|
-
React.useEffect(function () {
|
|
1780
|
-
if (!isOpen) {
|
|
1781
|
-
setScrollableContent(false);
|
|
1782
|
-
}
|
|
1783
|
-
}, [isOpen]);
|
|
1784
1766
|
return jsxRuntime.jsx(Modal, __assign({
|
|
1785
1767
|
className: classNames__default["default"]({
|
|
1786
|
-
'fwe-modal--
|
|
1768
|
+
'fwe-modal--large': large
|
|
1787
1769
|
}, className),
|
|
1788
1770
|
head: jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1789
1771
|
children: [subtitle && jsxRuntime.jsx("h2", __assign({
|
|
@@ -1796,15 +1778,12 @@
|
|
|
1796
1778
|
children: title
|
|
1797
1779
|
}), void 0)]
|
|
1798
1780
|
}, void 0),
|
|
1799
|
-
ref: ref,
|
|
1800
1781
|
body: jsxRuntime.jsx("p", {
|
|
1801
1782
|
children: body
|
|
1802
1783
|
}, void 0),
|
|
1803
1784
|
isOpen: isOpen
|
|
1804
1785
|
}, props, {
|
|
1805
|
-
children: (cancel || ok) && jsxRuntime.jsxs(ModalFooter,
|
|
1806
|
-
fullWidth: !hasScrollableContent
|
|
1807
|
-
}, {
|
|
1786
|
+
children: (cancel || ok) && jsxRuntime.jsxs(ModalFooter, {
|
|
1808
1787
|
children: [cancel && jsxRuntime.jsx("button", __assign({
|
|
1809
1788
|
type: "button",
|
|
1810
1789
|
"aria-label": "Cancel",
|
|
@@ -1820,7 +1799,7 @@
|
|
|
1820
1799
|
}, {
|
|
1821
1800
|
children: ok
|
|
1822
1801
|
}), void 0)]
|
|
1823
|
-
}
|
|
1802
|
+
}, void 0)
|
|
1824
1803
|
}), void 0);
|
|
1825
1804
|
}
|
|
1826
1805
|
|
|
@@ -7,6 +7,7 @@ interface ConfirmModalProps extends Omit<ModalProps, 'head' | 'children'> {
|
|
|
7
7
|
ok?: string;
|
|
8
8
|
onCancel?: () => void;
|
|
9
9
|
onOk?: () => void;
|
|
10
|
+
large?: boolean;
|
|
10
11
|
}
|
|
11
|
-
declare function ConfirmModal({ title, subtitle, body, className, cancel, ok, onCancel, onOk, isOpen, ...props }: ConfirmModalProps): JSX.Element;
|
|
12
|
+
declare function ConfirmModal({ title, subtitle, body, className, cancel, ok, onCancel, onOk, isOpen, large, ...props }: ConfirmModalProps): JSX.Element;
|
|
12
13
|
export default ConfirmModal;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ClassNamePropsWithChildren } from '../../helper/types';
|
|
3
|
-
|
|
4
|
-
fullWidth?: boolean;
|
|
5
|
-
}
|
|
6
|
-
declare const ModalFooter: React.ForwardRefExoticComponent<ModalFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const ModalFooter: React.ForwardRefExoticComponent<ClassNamePropsWithChildren & React.RefAttributes<HTMLDivElement>>;
|
|
7
4
|
export default ModalFooter;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@festo-ui/react",
|
|
3
|
-
"version": "3.1.0-pre-
|
|
3
|
+
"version": "3.1.0-pre-20220331.4",
|
|
4
4
|
"author": "Festo UI (styleguide@festo.com)",
|
|
5
5
|
"license": "apache-2.0",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@popperjs/core": "^2.11.0",
|
|
20
20
|
"react-draggable": "^4.4.4",
|
|
21
21
|
"flatpickr": "^4.6.9",
|
|
22
|
-
"quill": "
|
|
22
|
+
"quill": "1.3.7",
|
|
23
23
|
"xss": "^1.0.10"
|
|
24
24
|
}
|
|
25
25
|
}
|