fleetcor-lwc 3.5.2 → 3.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/README.md +34 -93
- package/frontend/components/flt/card/card.scss +2 -9
- package/frontend/components/flt/loader/__test__/loader.test.js +20 -0
- package/frontend/components/flt/loader/loader.html +8 -0
- package/frontend/components/flt/loader/loader.js +4 -0
- package/frontend/components/flt/loader/loader.scss +41 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -243,6 +243,21 @@ Add / update `lwc.config.json` file in your project
|
|
|
243
243
|
| ------- | ----------------------------- |
|
|
244
244
|
| default | any html element can be there |
|
|
245
245
|
|
|
246
|
+
### Loader
|
|
247
|
+
|
|
248
|
+
```html
|
|
249
|
+
<flt-loader>
|
|
250
|
+
<flt-icon icon="arrow-left"></flt-icon>
|
|
251
|
+
</flt-loader>
|
|
252
|
+
...
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
#### Loader slot
|
|
256
|
+
|
|
257
|
+
| slot | description |
|
|
258
|
+
| ------- | ----------------------------- |
|
|
259
|
+
| default | any html element can be there |
|
|
260
|
+
|
|
246
261
|
### Modal
|
|
247
262
|
|
|
248
263
|
```html
|
|
@@ -503,18 +518,34 @@ You can override them as you wish by global css variables as priority.
|
|
|
503
518
|
--flt-input-border-color-success: #59eb9c;
|
|
504
519
|
--flt-input-border-radius: 12px;
|
|
505
520
|
--flt-card-bgc: #fff;
|
|
506
|
-
--flt-card-padding
|
|
507
|
-
--flt-card-border-radius
|
|
521
|
+
--flt-card-padding: 24px;
|
|
522
|
+
--flt-card-border-radius: 20px;
|
|
508
523
|
--flt-card-box-shadow: (
|
|
509
524
|
0px 2px 3px 0px #0000004d,
|
|
510
525
|
0px 6px 10px 4px #00000026
|
|
511
526
|
);
|
|
512
|
-
--flt-
|
|
527
|
+
--flt-loader-gap: 16px;
|
|
528
|
+
--flt-loader-background: #ffffff;
|
|
529
|
+
--flt-loader-spinner-circle: 80px;
|
|
530
|
+
--flt-loader-spinner-fill-first-part: #ffffff;
|
|
531
|
+
--flt-loader-spinner-fill: #85a2b6;
|
|
532
|
+
--flt-loader-spinner-inner-circle-percent: 88%;
|
|
533
|
+
--flt-loader-spinner-bgc-inner-circle: #ffffff;
|
|
534
|
+
--flt-loader-message-font-size: 16px;
|
|
535
|
+
--flt-loader-message-color: #80828a;
|
|
513
536
|
}
|
|
514
537
|
```
|
|
515
538
|
|
|
516
539
|
## Release Notes:
|
|
517
540
|
|
|
541
|
+
- v.3.6.1
|
|
542
|
+
|
|
543
|
+
- Bug fix visiability of `flt-loader`
|
|
544
|
+
|
|
545
|
+
- v.3.6.0
|
|
546
|
+
|
|
547
|
+
- Added new component `flt-loader`
|
|
548
|
+
|
|
518
549
|
- v.3.5.2
|
|
519
550
|
|
|
520
551
|
- Update modal component with option `deactiveGlass`
|
|
@@ -747,93 +778,3 @@ You can override them as you wish by global css variables as priority.
|
|
|
747
778
|
- Added CheckboxElement class
|
|
748
779
|
- Added hgv icon
|
|
749
780
|
- Added $FLT_BUTTON_LABEL_PADDING constant
|
|
750
|
-
|
|
751
|
-
---
|
|
752
|
-
|
|
753
|
-
- v.1.7.0
|
|
754
|
-
- Updated Button component: Added `@api size` parameter
|
|
755
|
-
- Small refactoring in all components
|
|
756
|
-
|
|
757
|
-
---
|
|
758
|
-
|
|
759
|
-
- v.1.6.0
|
|
760
|
-
- Added new extendable components: `BaseElement` and `LightningDomElement`
|
|
761
|
-
|
|
762
|
-
---
|
|
763
|
-
|
|
764
|
-
- v.1.5.0
|
|
765
|
-
- Added new icons: plus, plus-small, document, close
|
|
766
|
-
|
|
767
|
-
---
|
|
768
|
-
|
|
769
|
-
- v.1.4.7
|
|
770
|
-
- Added new icons: diesel, hydrogen, signature
|
|
771
|
-
|
|
772
|
-
---
|
|
773
|
-
|
|
774
|
-
- v.1.4.6
|
|
775
|
-
- Bug fix at mobile Safari tooltip
|
|
776
|
-
|
|
777
|
-
---
|
|
778
|
-
|
|
779
|
-
- v.1.4.5
|
|
780
|
-
- Tooltip text align centred
|
|
781
|
-
|
|
782
|
-
---
|
|
783
|
-
|
|
784
|
-
- v.1.4.4
|
|
785
|
-
- Bug fix tooltip mobile positions
|
|
786
|
-
|
|
787
|
-
---
|
|
788
|
-
|
|
789
|
-
- v.1.4.3
|
|
790
|
-
- Bug fix at tooltip corner attribute
|
|
791
|
-
|
|
792
|
-
---
|
|
793
|
-
|
|
794
|
-
- v.1.4.2
|
|
795
|
-
- Bug fix selectors conflicts
|
|
796
|
-
|
|
797
|
-
---
|
|
798
|
-
|
|
799
|
-
- v.1.4.1
|
|
800
|
-
- Bug fix with empty content and svg max width
|
|
801
|
-
|
|
802
|
-
---
|
|
803
|
-
|
|
804
|
-
- v.1.4.0
|
|
805
|
-
- Added Component `flt-tooltip`
|
|
806
|
-
|
|
807
|
-
---
|
|
808
|
-
|
|
809
|
-
- v.1.3.0
|
|
810
|
-
- Added Component `flt-icon`
|
|
811
|
-
|
|
812
|
-
---
|
|
813
|
-
|
|
814
|
-
- v.1.2.1
|
|
815
|
-
- Update button 'link' type ui
|
|
816
|
-
- Bug fix. Button constants
|
|
817
|
-
|
|
818
|
-
---
|
|
819
|
-
|
|
820
|
-
- v.1.1.0
|
|
821
|
-
- Added new button type 'link'
|
|
822
|
-
|
|
823
|
-
---
|
|
824
|
-
|
|
825
|
-
- v.1.0.2
|
|
826
|
-
- Bug fix. Update loader
|
|
827
|
-
|
|
828
|
-
---
|
|
829
|
-
|
|
830
|
-
- v.1.0.1
|
|
831
|
-
- Bug fix. Update shrink for button's icons
|
|
832
|
-
|
|
833
|
-
---
|
|
834
|
-
|
|
835
|
-
- v.1.0.0
|
|
836
|
-
- Setup project
|
|
837
|
-
- Added Component `flt-button`
|
|
838
|
-
|
|
839
|
-
---
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
.flt-card {
|
|
2
2
|
background-color: var(--flt-card-bgc, #fff);
|
|
3
|
-
padding: var(--flt-card-padding
|
|
4
|
-
border-radius: var(--flt-card-border-radius
|
|
3
|
+
padding: var(--flt-card-padding, 24px);
|
|
4
|
+
border-radius: var(--flt-card-border-radius, 20px);
|
|
5
5
|
box-shadow: var(--flt-card-box-shadow, (0px 2px 3px 0px #0000004d, 0px 6px 10px 4px #00000026));
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
@media (min-width: 1280px) {
|
|
9
|
-
.flt-card {
|
|
10
|
-
padding: var(--flt-card-padding-lg, 24px);
|
|
11
|
-
border-radius: var(--flt-card-border-radius-lg, 24px);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createElement } from 'lwc'
|
|
2
|
+
import Loader from 'flt/loader'
|
|
3
|
+
|
|
4
|
+
describe('flt-modal', () => {
|
|
5
|
+
afterEach(() => {
|
|
6
|
+
while (document.body.firstChild) {
|
|
7
|
+
document.body.removeChild(document.body.firstChild)
|
|
8
|
+
}
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
it('base test', () => {
|
|
12
|
+
const loader = createElement('flt-loader', { is: Loader })
|
|
13
|
+
document.body.appendChild(loader)
|
|
14
|
+
const bodyElement = document.body.querySelector('.flt-loader')
|
|
15
|
+
const pEl = document.createElement('p')
|
|
16
|
+
pEl.innerHTML = 'Hello world'
|
|
17
|
+
bodyElement.appendChild(pEl)
|
|
18
|
+
expect(loader.innerHTML).toContain('Hello world')
|
|
19
|
+
})
|
|
20
|
+
})
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
.flt-loader {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: var(--flt-loader-gap, 16px);
|
|
7
|
+
background-color: var(--flt-loader-background, #ffffff);
|
|
8
|
+
font-size: var(--flt-loader-message-font-size, 16px);
|
|
9
|
+
color: var(--flt-loader-message-color, #80828a);
|
|
10
|
+
|
|
11
|
+
&__circle {
|
|
12
|
+
width: var(--flt-loader-spinner-circle, 80px);
|
|
13
|
+
height: var(--flt-loader-spinner-circle, 80px);
|
|
14
|
+
display: flex;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
align-items: center;
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
background: linear-gradient(
|
|
19
|
+
0deg,
|
|
20
|
+
var(--flt-loader-spinner-fill-first-part, #ffffff) 50%,
|
|
21
|
+
var(--flt-loader-spinner-fill, #85a2b6) 100%
|
|
22
|
+
);
|
|
23
|
+
animation: rotate 1s linear infinite;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&__inner-circle {
|
|
27
|
+
width: var(--flt-loader-spinner-inner-circle-percent, 88%);
|
|
28
|
+
height: var(--flt-loader-spinner-inner-circle-percent, 88%);
|
|
29
|
+
background-color: var(--flt-loader-spinner-bgc-inner-circle, #ffffff);
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@keyframes rotate {
|
|
35
|
+
0% {
|
|
36
|
+
transform: rotate(0);
|
|
37
|
+
}
|
|
38
|
+
100% {
|
|
39
|
+
transform: rotate(360deg);
|
|
40
|
+
}
|
|
41
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fleetcor-lwc",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"description": "LWC framework by Fleetcor",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"flt/button",
|
|
29
29
|
"flt/checkbox",
|
|
30
30
|
"flt/card",
|
|
31
|
+
"flt/loader",
|
|
31
32
|
"flt/icon",
|
|
32
33
|
"flt/inputText",
|
|
33
34
|
"flt/inputEmail",
|