@frollo/frollo-web-ui 0.2.1 → 0.2.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.
Files changed (37) hide show
  1. package/cjs/index.js +288 -84
  2. package/esm/add-to-unscopables-82352072.js +239 -0
  3. package/esm/{es.array.includes-debcb50f.js → es.array.includes-33e186c4.js} +3 -2
  4. package/esm/{es.function.name-e746680f.js → es.function.name-3a9c8706.js} +1 -1
  5. package/esm/es.number.constructor-f646730f.js +243 -0
  6. package/esm/{function-name-f0c1223e.js → function-name-3bda6320.js} +1 -1
  7. package/esm/fw-animations.js +136 -0
  8. package/esm/{fw-button-ab906734.js → fw-button-22301a2f.js} +1 -1
  9. package/esm/fw-button.js +5 -4
  10. package/esm/fw-checkbox.js +2 -2
  11. package/esm/fw-input.js +5 -4
  12. package/esm/fw-modal.js +6 -5
  13. package/esm/fw-navigation-menu.js +5 -4
  14. package/esm/fw-progress-bar.js +103 -0
  15. package/esm/fw-tabs.js +5 -3
  16. package/esm/{index-963039a3.js → index-59d76908.js} +2 -2
  17. package/esm/index-dd50b12a.js +326 -0
  18. package/esm/index.js +20 -11
  19. package/esm/is-forced-3323c994.js +438 -0
  20. package/frollo-web-ui.esm.js +332 -101
  21. package/icons/check.svg +3 -0
  22. package/icons/index.ts +3 -1
  23. package/index.d.ts +126 -10
  24. package/package.json +2 -1
  25. package/types/components/fw-animations/fw-email-pulse.vue.d.ts +24 -0
  26. package/types/components/fw-animations/fw-success-pulse.vue.d.ts +24 -0
  27. package/types/components/fw-animations/index.d.ts +3 -0
  28. package/types/components/fw-progress-bar/fw-progress-bar.vue.d.ts +52 -0
  29. package/types/components/fw-progress-bar/index.d.ts +2 -0
  30. package/types/components/fw-progress-bar/index.types.d.ts +5 -0
  31. package/types/components/fw-tabs/fw-tab.vue.d.ts +11 -0
  32. package/types/components/fw-tabs/fw-tabs.vue.d.ts +1 -1
  33. package/types/components/index.d.ts +2 -0
  34. package/types/components/index.types.d.ts +1 -0
  35. package/types/icons/index.d.ts +2 -1
  36. package/esm/add-to-unscopables-81c17489.js +0 -673
  37. package/esm/index-0e14da44.js +0 -561
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 17 12" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M15.8473 0.621086C16.2059 0.951555 16.2059 1.48593 15.8473 1.78476L6.56602 11.066C6.26719 11.4246 5.73281 11.4246 5.40234 11.066L0.622113 6.28476C0.292629 5.98593 0.292629 5.45156 0.622113 5.12109C0.951563 4.79413 1.48594 4.79413 1.81535 5.12109L6 9.3082L14.6836 0.621086C15.0141 0.292727 15.5484 0.292727 15.8473 0.621086Z" />
3
+ </svg>
package/icons/index.ts CHANGED
@@ -13,6 +13,7 @@ import InfoCircleSvg from './info-circle.svg';
13
13
  import FileExclamationSvg from './file-exclamation.svg';
14
14
  import HourglassClockSvg from './hourglass-clock.svg';
15
15
  import EnvelopeSvg from './envelope.svg';
16
+ import CheckSvg from './check.svg';
16
17
 
17
18
  export {
18
19
  ViewSvg,
@@ -29,5 +30,6 @@ export {
29
30
  InfoCircleSvg,
30
31
  FileExclamationSvg,
31
32
  HourglassClockSvg,
32
- EnvelopeSvg
33
+ EnvelopeSvg,
34
+ CheckSvg
33
35
  };
package/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as vue from 'vue';
2
2
  import { PropType, Plugin } from 'vue';
3
3
  export { Form as FwForm } from 'vee-validate';
4
+ import * as _vue_shared from '@vue/shared';
4
5
 
5
6
  declare type FwInputType = 'text' | 'password';
6
7
  declare interface FwInputProps {
@@ -14,7 +15,7 @@ declare interface FwInputProps {
14
15
  hint?: string;
15
16
  }
16
17
 
17
- declare const _default$7: vue.DefineComponent<{
18
+ declare const _default$8: vue.DefineComponent<{
18
19
  /**
19
20
  * The input v-model
20
21
  */
@@ -148,7 +149,7 @@ declare const _default$7: vue.DefineComponent<{
148
149
  readonly: boolean;
149
150
  }>;
150
151
 
151
- declare const _default$6: vue.DefineComponent<{
152
+ declare const _default$7: vue.DefineComponent<{
152
153
  /**
153
154
  * The name of the input field. Must be unique per form.
154
155
  */
@@ -202,7 +203,7 @@ declare const _default$6: vue.DefineComponent<{
202
203
  };
203
204
  }>>, {}>;
204
205
 
205
- declare const _default$5: vue.DefineComponent<{
206
+ declare const _default$6: vue.DefineComponent<{
206
207
  /**
207
208
  * The header title of the card
208
209
  */
@@ -275,7 +276,7 @@ declare interface FwButtonProps {
275
276
  buttonType?: ButtonTypeAttribute;
276
277
  }
277
278
 
278
- declare const _default$4: vue.DefineComponent<{
279
+ declare const _default$5: vue.DefineComponent<{
279
280
  /**
280
281
  * A `router-link` path or object
281
282
  */
@@ -377,7 +378,7 @@ declare interface NavMenuItem {
377
378
  label: string;
378
379
  }
379
380
 
380
- declare const _default$3: vue.DefineComponent<{
381
+ declare const _default$4: vue.DefineComponent<{
381
382
  /**
382
383
  * An array of menu items
383
384
  * `{ to?: string | object; href?: string; label: string; }`
@@ -416,7 +417,7 @@ declare const _default$3: vue.DefineComponent<{
416
417
  onAction?: ((...args: any[]) => any) | undefined;
417
418
  }, {}>;
418
419
 
419
- declare const _default$2: vue.DefineComponent<{
420
+ declare const _default$3: vue.DefineComponent<{
420
421
  /**
421
422
  * The active tab v-model
422
423
  */
@@ -426,7 +427,7 @@ declare const _default$2: vue.DefineComponent<{
426
427
  };
427
428
  }, {
428
429
  active: vue.ComputedRef<number>;
429
- tabs: vue.Ref<never[]>;
430
+ tabs: vue.Ref<any>;
430
431
  selectTab: (tab: number) => void;
431
432
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
432
433
  /**
@@ -440,7 +441,7 @@ declare const _default$2: vue.DefineComponent<{
440
441
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
441
442
  }, {}>;
442
443
 
443
- declare const _default$1: vue.DefineComponent<{
444
+ declare const _default$2: vue.DefineComponent<{
444
445
  /**
445
446
  * The label of the tab component used as the button panel label
446
447
  */
@@ -451,6 +452,17 @@ declare const _default$1: vue.DefineComponent<{
451
452
  }, {
452
453
  isActive: vue.ComputedRef<boolean>;
453
454
  index: vue.ComputedRef<any>;
455
+ props: Readonly<_vue_shared.LooseRequired<Readonly<vue.ExtractPropTypes<{
456
+ /**
457
+ * The label of the tab component used as the button panel label
458
+ */
459
+ label: {
460
+ type: StringConstructor;
461
+ required: true;
462
+ };
463
+ }>> & {
464
+ [x: `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
465
+ }>>;
454
466
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
455
467
  /**
456
468
  * The label of the tab component used as the button panel label
@@ -461,7 +473,7 @@ declare const _default$1: vue.DefineComponent<{
461
473
  };
462
474
  }>>, {}>;
463
475
 
464
- declare const _default: vue.DefineComponent<{
476
+ declare const _default$1: vue.DefineComponent<{
465
477
  /**
466
478
  * The header title of the modal
467
479
  */
@@ -604,6 +616,110 @@ declare const _default: vue.DefineComponent<{
604
616
  confirmButtonType: ButtonVariantName;
605
617
  }>;
606
618
 
619
+ declare interface ProgressBarStep {
620
+ label: string;
621
+ position: number;
622
+ subSteps: number;
623
+ }
624
+
625
+ declare const _default: vue.DefineComponent<{
626
+ /**
627
+ * An array of menu progress steps.
628
+ * `{ label: string; position: number; subSteps: number; }`
629
+ */
630
+ steps: {
631
+ type: PropType<ProgressBarStep[]>;
632
+ required: true;
633
+ };
634
+ /**
635
+ * An current active step.
636
+ */
637
+ activeStep: {
638
+ type: NumberConstructor;
639
+ required: true;
640
+ };
641
+ /**
642
+ * An current active sub-step.
643
+ */
644
+ activeSubStep: {
645
+ type: NumberConstructor;
646
+ required: true;
647
+ };
648
+ }, {
649
+ calculatedProgressBar: (step: ProgressBarStep) => string;
650
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
651
+ /**
652
+ * An array of menu progress steps.
653
+ * `{ label: string; position: number; subSteps: number; }`
654
+ */
655
+ steps: {
656
+ type: PropType<ProgressBarStep[]>;
657
+ required: true;
658
+ };
659
+ /**
660
+ * An current active step.
661
+ */
662
+ activeStep: {
663
+ type: NumberConstructor;
664
+ required: true;
665
+ };
666
+ /**
667
+ * An current active sub-step.
668
+ */
669
+ activeSubStep: {
670
+ type: NumberConstructor;
671
+ required: true;
672
+ };
673
+ }>>, {}>;
674
+
675
+ declare const __default__$1: vue.DefineComponent<{
676
+ /**
677
+ * The animation-iteration-count CSS property of the pulse animation.
678
+ * Sets the number of times an animation sequence should be played before stopping.
679
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/animation-iteration-count
680
+ */
681
+ animationIteration: {
682
+ type: (StringConstructor | NumberConstructor)[];
683
+ default: number;
684
+ };
685
+ }, unknown, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
686
+ /**
687
+ * The animation-iteration-count CSS property of the pulse animation.
688
+ * Sets the number of times an animation sequence should be played before stopping.
689
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/animation-iteration-count
690
+ */
691
+ animationIteration: {
692
+ type: (StringConstructor | NumberConstructor)[];
693
+ default: number;
694
+ };
695
+ }>>, {
696
+ animationIteration: string | number;
697
+ }>;
698
+
699
+ declare const __default__: vue.DefineComponent<{
700
+ /**
701
+ * The animation-iteration-count CSS property of the pulse animation.
702
+ * Sets the number of times an animation sequence should be played before stopping.
703
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/animation-iteration-count
704
+ */
705
+ animationIteration: {
706
+ type: (StringConstructor | NumberConstructor)[];
707
+ default: number;
708
+ };
709
+ }, unknown, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
710
+ /**
711
+ * The animation-iteration-count CSS property of the pulse animation.
712
+ * Sets the number of times an animation sequence should be played before stopping.
713
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/animation-iteration-count
714
+ */
715
+ animationIteration: {
716
+ type: (StringConstructor | NumberConstructor)[];
717
+ default: number;
718
+ };
719
+ }>>, {
720
+ animationIteration: string | number;
721
+ }>;
722
+
607
723
  declare interface FwModalProps {
608
724
  header?: string;
609
725
  body?: string;
@@ -643,4 +759,4 @@ declare interface FwCheckboxProps {
643
759
 
644
760
  declare module '@frollo/frollo-web-ui/icons' { }
645
761
 
646
- export { ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$4 as FwButton, FwButtonProps, _default$5 as FwCard, FwCardProps, _default$6 as FwCheckbox, FwCheckboxProps, _default$7 as FwInput, FwInputProps, FwInputType, _default as FwModal, FwModalProps, _default$3 as FwNavigationMenu, _default$1 as FwTab, _default$2 as FwTabs, ModalServiceProps, NavMenuItem, install as default, modalService };
762
+ export { ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$5 as FwButton, FwButtonProps, _default$6 as FwCard, FwCardProps, _default$7 as FwCheckbox, FwCheckboxProps, __default__$1 as FwEmailPulse, _default$8 as FwInput, FwInputProps, FwInputType, _default$1 as FwModal, FwModalProps, _default$4 as FwNavigationMenu, _default as FwProgressBar, __default__ as FwSuccessPulse, _default$2 as FwTab, _default$3 as FwTabs, ModalServiceProps, NavMenuItem, ProgressBarStep, install as default, modalService };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frollo/frollo-web-ui",
3
- "version": "0.2.1",
3
+ "version": "0.2.4",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -84,6 +84,7 @@
84
84
  "vee-validate": "^4.5.9",
85
85
  "vue-loader": "^16.8.3",
86
86
  "vue-style-loader": "^4.1.3",
87
+ "vue-svg-loader": "^0.17.0-beta.2",
87
88
  "yup": "^0.32.11"
88
89
  },
89
90
  "homepage": "https://github.com/frollous/frollo-web-ui#readme",
@@ -0,0 +1,24 @@
1
+ declare const __default__: import("vue").DefineComponent<{
2
+ /**
3
+ * The animation-iteration-count CSS property of the pulse animation.
4
+ * Sets the number of times an animation sequence should be played before stopping.
5
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/animation-iteration-count
6
+ */
7
+ animationIteration: {
8
+ type: (StringConstructor | NumberConstructor)[];
9
+ default: number;
10
+ };
11
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
+ /**
13
+ * The animation-iteration-count CSS property of the pulse animation.
14
+ * Sets the number of times an animation sequence should be played before stopping.
15
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/animation-iteration-count
16
+ */
17
+ animationIteration: {
18
+ type: (StringConstructor | NumberConstructor)[];
19
+ default: number;
20
+ };
21
+ }>>, {
22
+ animationIteration: string | number;
23
+ }>;
24
+ export default __default__;
@@ -0,0 +1,24 @@
1
+ declare const __default__: import("vue").DefineComponent<{
2
+ /**
3
+ * The animation-iteration-count CSS property of the pulse animation.
4
+ * Sets the number of times an animation sequence should be played before stopping.
5
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/animation-iteration-count
6
+ */
7
+ animationIteration: {
8
+ type: (StringConstructor | NumberConstructor)[];
9
+ default: number;
10
+ };
11
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
+ /**
13
+ * The animation-iteration-count CSS property of the pulse animation.
14
+ * Sets the number of times an animation sequence should be played before stopping.
15
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/animation-iteration-count
16
+ */
17
+ animationIteration: {
18
+ type: (StringConstructor | NumberConstructor)[];
19
+ default: number;
20
+ };
21
+ }>>, {
22
+ animationIteration: string | number;
23
+ }>;
24
+ export default __default__;
@@ -0,0 +1,3 @@
1
+ import FwEmailPulse from './fw-email-pulse.vue';
2
+ import FwSuccessPulse from './fw-success-pulse.vue';
3
+ export { FwEmailPulse, FwSuccessPulse };
@@ -0,0 +1,52 @@
1
+ import { PropType } from 'vue';
2
+ import { ProgressBarStep } from './index.types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ /**
5
+ * An array of menu progress steps.
6
+ * `{ label: string; position: number; subSteps: number; }`
7
+ */
8
+ steps: {
9
+ type: PropType<ProgressBarStep[]>;
10
+ required: true;
11
+ };
12
+ /**
13
+ * An current active step.
14
+ */
15
+ activeStep: {
16
+ type: NumberConstructor;
17
+ required: true;
18
+ };
19
+ /**
20
+ * An current active sub-step.
21
+ */
22
+ activeSubStep: {
23
+ type: NumberConstructor;
24
+ required: true;
25
+ };
26
+ }, {
27
+ calculatedProgressBar: (step: ProgressBarStep) => string;
28
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
+ /**
30
+ * An array of menu progress steps.
31
+ * `{ label: string; position: number; subSteps: number; }`
32
+ */
33
+ steps: {
34
+ type: PropType<ProgressBarStep[]>;
35
+ required: true;
36
+ };
37
+ /**
38
+ * An current active step.
39
+ */
40
+ activeStep: {
41
+ type: NumberConstructor;
42
+ required: true;
43
+ };
44
+ /**
45
+ * An current active sub-step.
46
+ */
47
+ activeSubStep: {
48
+ type: NumberConstructor;
49
+ required: true;
50
+ };
51
+ }>>, {}>;
52
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import FwProgressBar from './fw-progress-bar.vue';
2
+ export { FwProgressBar };
@@ -0,0 +1,5 @@
1
+ export declare interface ProgressBarStep {
2
+ label: string;
3
+ position: number;
4
+ subSteps: number;
5
+ }
@@ -9,6 +9,17 @@ declare const _default: import("vue").DefineComponent<{
9
9
  }, {
10
10
  isActive: import("vue").ComputedRef<boolean>;
11
11
  index: import("vue").ComputedRef<any>;
12
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
13
+ /**
14
+ * The label of the tab component used as the button panel label
15
+ */
16
+ label: {
17
+ type: StringConstructor;
18
+ required: true;
19
+ };
20
+ }>> & {
21
+ [x: `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
22
+ }>>;
12
23
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
24
  /**
14
25
  * The label of the tab component used as the button panel label
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<{
8
8
  };
9
9
  }, {
10
10
  active: import("vue").ComputedRef<number>;
11
- tabs: import("vue").Ref<never[]>;
11
+ tabs: import("vue").Ref<any>;
12
12
  selectTab: (tab: number) => void;
13
13
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
14
  /**
@@ -6,3 +6,5 @@ export * from './fw-button';
6
6
  export * from './fw-navigation-menu';
7
7
  export * from './fw-tabs';
8
8
  export * from './fw-modal';
9
+ export * from './fw-progress-bar';
10
+ export * from './fw-animations';
@@ -4,3 +4,4 @@ export * from '../components/fw-navigation-menu/index.types';
4
4
  export * from '../components/fw-input/index.types';
5
5
  export * from '../components/fw-checkbox/index.types';
6
6
  export * from '../components/fw-modal/index.types';
7
+ export * from '../components/fw-progress-bar/index.types';
@@ -13,4 +13,5 @@ import InfoCircleSvg from './info-circle.svg';
13
13
  import FileExclamationSvg from './file-exclamation.svg';
14
14
  import HourglassClockSvg from './hourglass-clock.svg';
15
15
  import EnvelopeSvg from './envelope.svg';
16
- export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg };
16
+ import CheckSvg from './check.svg';
17
+ export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg, CheckSvg };