@frollo/frollo-web-ui 0.2.4 → 0.3.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.
- package/cjs/index.js +159 -74
- package/esm/fw-progress-bar.js +20 -8
- package/esm/fw-tag.js +89 -0
- package/esm/index.js +3 -0
- package/frollo-web-ui.esm.js +187 -93
- package/icons/chevron-down.svg +3 -0
- package/icons/index.ts +3 -1
- package/index.d.ts +73 -10
- package/package.json +3 -2
- package/tailwind.config.js +6 -3
- package/types/components/fw-tag/fw-tag.vue.d.ts +48 -0
- package/types/components/fw-tag/index.d.ts +2 -0
- package/types/components/fw-tag/index.types.d.ts +16 -0
- package/types/components/index.d.ts +1 -0
- package/types/components/index.types.d.ts +1 -0
- package/types/icons/index.d.ts +2 -1
package/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare interface FwInputProps {
|
|
|
15
15
|
hint?: string;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
declare const _default$
|
|
18
|
+
declare const _default$9: vue.DefineComponent<{
|
|
19
19
|
/**
|
|
20
20
|
* The input v-model
|
|
21
21
|
*/
|
|
@@ -149,7 +149,7 @@ declare const _default$8: vue.DefineComponent<{
|
|
|
149
149
|
readonly: boolean;
|
|
150
150
|
}>;
|
|
151
151
|
|
|
152
|
-
declare const _default$
|
|
152
|
+
declare const _default$8: vue.DefineComponent<{
|
|
153
153
|
/**
|
|
154
154
|
* The name of the input field. Must be unique per form.
|
|
155
155
|
*/
|
|
@@ -203,7 +203,7 @@ declare const _default$7: vue.DefineComponent<{
|
|
|
203
203
|
};
|
|
204
204
|
}>>, {}>;
|
|
205
205
|
|
|
206
|
-
declare const _default$
|
|
206
|
+
declare const _default$7: vue.DefineComponent<{
|
|
207
207
|
/**
|
|
208
208
|
* The header title of the card
|
|
209
209
|
*/
|
|
@@ -276,7 +276,7 @@ declare interface FwButtonProps {
|
|
|
276
276
|
buttonType?: ButtonTypeAttribute;
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
declare const _default$
|
|
279
|
+
declare const _default$6: vue.DefineComponent<{
|
|
280
280
|
/**
|
|
281
281
|
* A `router-link` path or object
|
|
282
282
|
*/
|
|
@@ -378,7 +378,7 @@ declare interface NavMenuItem {
|
|
|
378
378
|
label: string;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
declare const _default$
|
|
381
|
+
declare const _default$5: vue.DefineComponent<{
|
|
382
382
|
/**
|
|
383
383
|
* An array of menu items
|
|
384
384
|
* `{ to?: string | object; href?: string; label: string; }`
|
|
@@ -417,7 +417,7 @@ declare const _default$4: vue.DefineComponent<{
|
|
|
417
417
|
onAction?: ((...args: any[]) => any) | undefined;
|
|
418
418
|
}, {}>;
|
|
419
419
|
|
|
420
|
-
declare const _default$
|
|
420
|
+
declare const _default$4: vue.DefineComponent<{
|
|
421
421
|
/**
|
|
422
422
|
* The active tab v-model
|
|
423
423
|
*/
|
|
@@ -441,7 +441,7 @@ declare const _default$3: vue.DefineComponent<{
|
|
|
441
441
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
442
442
|
}, {}>;
|
|
443
443
|
|
|
444
|
-
declare const _default$
|
|
444
|
+
declare const _default$3: vue.DefineComponent<{
|
|
445
445
|
/**
|
|
446
446
|
* The label of the tab component used as the button panel label
|
|
447
447
|
*/
|
|
@@ -473,7 +473,7 @@ declare const _default$2: vue.DefineComponent<{
|
|
|
473
473
|
};
|
|
474
474
|
}>>, {}>;
|
|
475
475
|
|
|
476
|
-
declare const _default$
|
|
476
|
+
declare const _default$2: vue.DefineComponent<{
|
|
477
477
|
/**
|
|
478
478
|
* The header title of the modal
|
|
479
479
|
*/
|
|
@@ -622,7 +622,7 @@ declare interface ProgressBarStep {
|
|
|
622
622
|
subSteps: number;
|
|
623
623
|
}
|
|
624
624
|
|
|
625
|
-
declare const _default: vue.DefineComponent<{
|
|
625
|
+
declare const _default$1: vue.DefineComponent<{
|
|
626
626
|
/**
|
|
627
627
|
* An array of menu progress steps.
|
|
628
628
|
* `{ label: string; position: number; subSteps: number; }`
|
|
@@ -672,6 +672,69 @@ declare const _default: vue.DefineComponent<{
|
|
|
672
672
|
};
|
|
673
673
|
}>>, {}>;
|
|
674
674
|
|
|
675
|
+
declare type TagVariantName = 'primary' | 'alert' | 'error' | 'success';
|
|
676
|
+
declare interface TagDefinition {
|
|
677
|
+
text: string;
|
|
678
|
+
background: string;
|
|
679
|
+
}
|
|
680
|
+
declare type TagDefinitionList = {
|
|
681
|
+
[key in TagVariantName]: TagDefinition;
|
|
682
|
+
};
|
|
683
|
+
declare type TagSize = 'xs' | 'sm';
|
|
684
|
+
declare type TagSizes = {
|
|
685
|
+
[key in TagSize]: string;
|
|
686
|
+
};
|
|
687
|
+
declare interface FwTagProps {
|
|
688
|
+
size?: TagSize;
|
|
689
|
+
variant?: TagVariantName;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
declare const _default: vue.DefineComponent<{
|
|
693
|
+
/**
|
|
694
|
+
* The size of the tag. Accepts: 'xs' & 'sm'
|
|
695
|
+
*/
|
|
696
|
+
size: {
|
|
697
|
+
type: PropType<TagSize>;
|
|
698
|
+
default: string;
|
|
699
|
+
validator: (value: string) => boolean;
|
|
700
|
+
};
|
|
701
|
+
/**
|
|
702
|
+
* The colour variant of the tag.
|
|
703
|
+
* Accepts 'primary', 'alert', 'error', 'success'
|
|
704
|
+
*/
|
|
705
|
+
variant: {
|
|
706
|
+
type: PropType<TagVariantName>;
|
|
707
|
+
default: string;
|
|
708
|
+
validator: (value: string) => boolean;
|
|
709
|
+
};
|
|
710
|
+
}, {
|
|
711
|
+
baseClass: vue.Ref<string>;
|
|
712
|
+
textColorClass: vue.ComputedRef<string>;
|
|
713
|
+
bgColorClass: vue.ComputedRef<string>;
|
|
714
|
+
sizeClass: vue.ComputedRef<string>;
|
|
715
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
716
|
+
/**
|
|
717
|
+
* The size of the tag. Accepts: 'xs' & 'sm'
|
|
718
|
+
*/
|
|
719
|
+
size: {
|
|
720
|
+
type: PropType<TagSize>;
|
|
721
|
+
default: string;
|
|
722
|
+
validator: (value: string) => boolean;
|
|
723
|
+
};
|
|
724
|
+
/**
|
|
725
|
+
* The colour variant of the tag.
|
|
726
|
+
* Accepts 'primary', 'alert', 'error', 'success'
|
|
727
|
+
*/
|
|
728
|
+
variant: {
|
|
729
|
+
type: PropType<TagVariantName>;
|
|
730
|
+
default: string;
|
|
731
|
+
validator: (value: string) => boolean;
|
|
732
|
+
};
|
|
733
|
+
}>>, {
|
|
734
|
+
size: TagSize;
|
|
735
|
+
variant: TagVariantName;
|
|
736
|
+
}>;
|
|
737
|
+
|
|
675
738
|
declare const __default__$1: vue.DefineComponent<{
|
|
676
739
|
/**
|
|
677
740
|
* The animation-iteration-count CSS property of the pulse animation.
|
|
@@ -759,4 +822,4 @@ declare interface FwCheckboxProps {
|
|
|
759
822
|
|
|
760
823
|
declare module '@frollo/frollo-web-ui/icons' { }
|
|
761
824
|
|
|
762
|
-
export { ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$
|
|
825
|
+
export { ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$6 as FwButton, FwButtonProps, _default$7 as FwCard, FwCardProps, _default$8 as FwCheckbox, FwCheckboxProps, __default__$1 as FwEmailPulse, _default$9 as FwInput, FwInputProps, FwInputType, _default$2 as FwModal, FwModalProps, _default$5 as FwNavigationMenu, _default$1 as FwProgressBar, __default__ as FwSuccessPulse, _default$3 as FwTab, _default$4 as FwTabs, _default as FwTag, FwTagProps, ModalServiceProps, NavMenuItem, ProgressBarStep, TagDefinition, TagDefinitionList, TagSize, TagSizes, TagVariantName, 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
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Frollo's UI library for components, utilities and configs",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./icons": "./icons/index.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"build:lib": "bin/build-lib.sh",
|
|
21
21
|
"deploy": "bin/publish.sh",
|
|
22
22
|
"release": "bin/release.sh",
|
|
23
|
-
"test:unit": "jest --config jest.config.js --coverage --
|
|
23
|
+
"test:unit": "jest --config jest.config.js --coverage --runInBand",
|
|
24
24
|
"test:single": "jest --config jest.config.js --coverage --watchAll",
|
|
25
25
|
"lint": "eslint --cache ./ --ext .js,.ts,.vue",
|
|
26
26
|
"lint:fix": "eslint --cache ./ --fix --ext .js,.ts,.vue",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"rollup": "^2.67.2",
|
|
74
74
|
"rollup-plugin-dts": "^4.1.0",
|
|
75
75
|
"rollup-plugin-postcss": "^4.0.2",
|
|
76
|
+
"rollup-plugin-svg-to-vue": "^1.0.0",
|
|
76
77
|
"rollup-plugin-typescript2": "^0.31.2",
|
|
77
78
|
"rollup-plugin-vue": "^6.0.0",
|
|
78
79
|
"sass": "^1.49.7",
|
package/tailwind.config.js
CHANGED
|
@@ -13,10 +13,13 @@ module.exports = {
|
|
|
13
13
|
light: '#bcbcbc',
|
|
14
14
|
lightest: '#f5f5f5',
|
|
15
15
|
10: '#f8f8f8',
|
|
16
|
-
20: '#f2f2f2'
|
|
16
|
+
20: '#f2f2f2',
|
|
17
|
+
40: '#E4E4E4',
|
|
18
|
+
60: '#D7D7D7',
|
|
19
|
+
80: '#C9C9C9'
|
|
17
20
|
},
|
|
18
|
-
error: '#
|
|
19
|
-
success: '#
|
|
21
|
+
error: '#D83837',
|
|
22
|
+
success: '#00855F',
|
|
20
23
|
alert: '#e46f04'
|
|
21
24
|
},
|
|
22
25
|
fontSize: {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { TagSize, TagVariantName } from './index.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
/**
|
|
5
|
+
* The size of the tag. Accepts: 'xs' & 'sm'
|
|
6
|
+
*/
|
|
7
|
+
size: {
|
|
8
|
+
type: PropType<TagSize>;
|
|
9
|
+
default: string;
|
|
10
|
+
validator: (value: string) => boolean;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The colour variant of the tag.
|
|
14
|
+
* Accepts 'primary', 'alert', 'error', 'success'
|
|
15
|
+
*/
|
|
16
|
+
variant: {
|
|
17
|
+
type: PropType<TagVariantName>;
|
|
18
|
+
default: string;
|
|
19
|
+
validator: (value: string) => boolean;
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
baseClass: import("vue").Ref<string>;
|
|
23
|
+
textColorClass: import("vue").ComputedRef<string>;
|
|
24
|
+
bgColorClass: import("vue").ComputedRef<string>;
|
|
25
|
+
sizeClass: import("vue").ComputedRef<string>;
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
/**
|
|
28
|
+
* The size of the tag. Accepts: 'xs' & 'sm'
|
|
29
|
+
*/
|
|
30
|
+
size: {
|
|
31
|
+
type: PropType<TagSize>;
|
|
32
|
+
default: string;
|
|
33
|
+
validator: (value: string) => boolean;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The colour variant of the tag.
|
|
37
|
+
* Accepts 'primary', 'alert', 'error', 'success'
|
|
38
|
+
*/
|
|
39
|
+
variant: {
|
|
40
|
+
type: PropType<TagVariantName>;
|
|
41
|
+
default: string;
|
|
42
|
+
validator: (value: string) => boolean;
|
|
43
|
+
};
|
|
44
|
+
}>>, {
|
|
45
|
+
size: TagSize;
|
|
46
|
+
variant: TagVariantName;
|
|
47
|
+
}>;
|
|
48
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare type TagVariantName = 'primary' | 'alert' | 'error' | 'success';
|
|
2
|
+
export declare interface TagDefinition {
|
|
3
|
+
text: string;
|
|
4
|
+
background: string;
|
|
5
|
+
}
|
|
6
|
+
export declare type TagDefinitionList = {
|
|
7
|
+
[key in TagVariantName]: TagDefinition;
|
|
8
|
+
};
|
|
9
|
+
export declare type TagSize = 'xs' | 'sm';
|
|
10
|
+
export declare type TagSizes = {
|
|
11
|
+
[key in TagSize]: string;
|
|
12
|
+
};
|
|
13
|
+
export declare interface FwTagProps {
|
|
14
|
+
size?: TagSize;
|
|
15
|
+
variant?: TagVariantName;
|
|
16
|
+
}
|
package/types/icons/index.d.ts
CHANGED
|
@@ -14,4 +14,5 @@ import FileExclamationSvg from './file-exclamation.svg';
|
|
|
14
14
|
import HourglassClockSvg from './hourglass-clock.svg';
|
|
15
15
|
import EnvelopeSvg from './envelope.svg';
|
|
16
16
|
import CheckSvg from './check.svg';
|
|
17
|
-
|
|
17
|
+
import ChevronDownSvg from './chevron-down.svg';
|
|
18
|
+
export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg, CheckSvg, ChevronDownSvg };
|