@frollo/frollo-web-ui 0.1.2 → 0.2.2

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 (33) hide show
  1. package/cjs/index.js +282 -212
  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-card.js +1 -1
  11. package/esm/fw-checkbox.js +2 -2
  12. package/esm/fw-input.js +5 -4
  13. package/esm/fw-modal.js +6 -5
  14. package/esm/fw-navigation-menu.js +12 -67
  15. package/esm/fw-tabs.js +5 -4
  16. package/esm/{index-963039a3.js → index-59d76908.js} +2 -2
  17. package/esm/{index-5ee56f7d.js → index-dd50b12a.js} +31 -219
  18. package/esm/index.js +19 -14
  19. package/esm/is-forced-3323c994.js +438 -0
  20. package/frollo-web-ui.esm.js +307 -229
  21. package/index.d.ts +64 -16
  22. package/package.json +1 -1
  23. package/types/components/fw-animations/fw-email-pulse.vue.d.ts +24 -0
  24. package/types/components/fw-animations/fw-success-pulse.vue.d.ts +24 -0
  25. package/types/components/fw-animations/index.d.ts +3 -0
  26. package/types/components/fw-button/index.types.d.ts +1 -9
  27. package/types/components/fw-input/index.types.d.ts +1 -4
  28. package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +0 -2
  29. package/types/components/fw-tabs/fw-tab.vue.d.ts +11 -0
  30. package/types/components/fw-tabs/fw-tabs.vue.d.ts +1 -1
  31. package/types/components/index.d.ts +1 -0
  32. package/esm/add-to-unscopables-81c17489.js +0 -673
  33. package/esm/to-string-139f1ee8.js +0 -52
package/index.d.ts CHANGED
@@ -1,11 +1,9 @@
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
- declare enum FwInputType {
6
- text = "text",
7
- password = "password"
8
- }
6
+ declare type FwInputType = 'text' | 'password';
9
7
  declare interface FwInputProps {
10
8
  value: string;
11
9
  name: string;
@@ -256,15 +254,7 @@ declare const _default$5: vue.DefineComponent<{
256
254
  href: StringConstructor;
257
255
  }>>, {}>;
258
256
 
259
- declare enum ButtonVariantName {
260
- primary = "primary",
261
- secondary = "secondary",
262
- tertiary = "tertiary",
263
- error = "error",
264
- success = "success",
265
- text = "text",
266
- link = "link"
267
- }
257
+ declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success' | 'link' | 'text';
268
258
  declare interface ButtonDefinition {
269
259
  text: string;
270
260
  background: string;
@@ -408,7 +398,6 @@ declare const _default$3: vue.DefineComponent<{
408
398
  isMobileMenuOpen: vue.Ref<boolean>;
409
399
  toggleMobileMenu: () => boolean;
410
400
  actionClicked: () => void;
411
- ButtonVariantName: typeof ButtonVariantName;
412
401
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "action"[], "action", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
413
402
  /**
414
403
  * An array of menu items
@@ -438,7 +427,7 @@ declare const _default$2: vue.DefineComponent<{
438
427
  };
439
428
  }, {
440
429
  active: vue.ComputedRef<number>;
441
- tabs: vue.Ref<never[]>;
430
+ tabs: vue.Ref<any>;
442
431
  selectTab: (tab: number) => void;
443
432
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
444
433
  /**
@@ -463,6 +452,17 @@ declare const _default$1: vue.DefineComponent<{
463
452
  }, {
464
453
  isActive: vue.ComputedRef<boolean>;
465
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
+ }>>;
466
466
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
467
467
  /**
468
468
  * The label of the tab component used as the button panel label
@@ -616,6 +616,54 @@ declare const _default: vue.DefineComponent<{
616
616
  confirmButtonType: ButtonVariantName;
617
617
  }>;
618
618
 
619
+ declare const __default__$1: vue.DefineComponent<{
620
+ /**
621
+ * The animation-iteration-count CSS property of the pulse animation.
622
+ * Sets the number of times an animation sequence should be played before stopping.
623
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/animation-iteration-count
624
+ */
625
+ animationIteration: {
626
+ type: (StringConstructor | NumberConstructor)[];
627
+ default: number;
628
+ };
629
+ }, unknown, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
630
+ /**
631
+ * The animation-iteration-count CSS property of the pulse animation.
632
+ * Sets the number of times an animation sequence should be played before stopping.
633
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/animation-iteration-count
634
+ */
635
+ animationIteration: {
636
+ type: (StringConstructor | NumberConstructor)[];
637
+ default: number;
638
+ };
639
+ }>>, {
640
+ animationIteration: string | number;
641
+ }>;
642
+
643
+ declare const __default__: vue.DefineComponent<{
644
+ /**
645
+ * The animation-iteration-count CSS property of the pulse animation.
646
+ * Sets the number of times an animation sequence should be played before stopping.
647
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/animation-iteration-count
648
+ */
649
+ animationIteration: {
650
+ type: (StringConstructor | NumberConstructor)[];
651
+ default: number;
652
+ };
653
+ }, unknown, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
654
+ /**
655
+ * The animation-iteration-count CSS property of the pulse animation.
656
+ * Sets the number of times an animation sequence should be played before stopping.
657
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/animation-iteration-count
658
+ */
659
+ animationIteration: {
660
+ type: (StringConstructor | NumberConstructor)[];
661
+ default: number;
662
+ };
663
+ }>>, {
664
+ animationIteration: string | number;
665
+ }>;
666
+
619
667
  declare interface FwModalProps {
620
668
  header?: string;
621
669
  body?: string;
@@ -655,4 +703,4 @@ declare interface FwCheckboxProps {
655
703
 
656
704
  declare module '@frollo/frollo-web-ui/icons' { }
657
705
 
658
- 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 };
706
+ export { ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$4 as FwButton, FwButtonProps, _default$5 as FwCard, FwCardProps, _default$6 as FwCheckbox, FwCheckboxProps, __default__$1 as FwEmailPulse, _default$7 as FwInput, FwInputProps, FwInputType, _default as FwModal, FwModalProps, _default$3 as FwNavigationMenu, __default__ as FwSuccessPulse, _default$1 as FwTab, _default$2 as FwTabs, ModalServiceProps, NavMenuItem, install as default, modalService };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frollo/frollo-web-ui",
3
- "version": "0.1.2",
3
+ "version": "0.2.2",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -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 };
@@ -1,12 +1,4 @@
1
- export declare enum ButtonVariantName {
2
- primary = "primary",
3
- secondary = "secondary",
4
- tertiary = "tertiary",
5
- error = "error",
6
- success = "success",
7
- text = "text",
8
- link = "link"
9
- }
1
+ export declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success' | 'link' | 'text';
10
2
  export declare interface ButtonDefinition {
11
3
  text: string;
12
4
  background: string;
@@ -1,7 +1,4 @@
1
- export declare enum FwInputType {
2
- text = "text",
3
- password = "password"
4
- }
1
+ export declare type FwInputType = 'text' | 'password';
5
2
  export declare interface FwInputProps {
6
3
  value: string;
7
4
  name: string;
@@ -1,6 +1,5 @@
1
1
  import { PropType } from 'vue';
2
2
  import { NavMenuItem } from './index.types';
3
- import { ButtonVariantName } from '../fw-button/index.types';
4
3
  declare const _default: import("vue").DefineComponent<{
5
4
  /**
6
5
  * An array of menu items
@@ -21,7 +20,6 @@ declare const _default: import("vue").DefineComponent<{
21
20
  isMobileMenuOpen: import("vue").Ref<boolean>;
22
21
  toggleMobileMenu: () => boolean;
23
22
  actionClicked: () => void;
24
- ButtonVariantName: typeof ButtonVariantName;
25
23
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "action"[], "action", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
24
  /**
27
25
  * An array of menu items
@@ -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,4 @@ 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-animations';