@frollo/frollo-web-ui 8.5.4 → 9.0.0
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 +29797 -28753
- package/esm/{_rollupPluginBabelHelpers-DpC_oIQV.js → _rollupPluginBabelHelpers-DODWUb5N.js} +307 -345
- package/esm/fw-accordion.js +59 -56
- package/esm/fw-alert.js +68 -0
- package/esm/fw-bar-chart.js +4 -4
- package/esm/fw-button-CnQvA7oM.js +296 -0
- package/esm/fw-button.js +2 -4
- package/esm/{fw-card-bsYbpPmW.js → fw-card-D45R4kN-.js} +33 -9
- package/esm/fw-card.js +3 -1
- package/esm/fw-checkbox.js +39 -20
- package/esm/fw-date-picker.js +110 -78
- package/esm/fw-drawer.js +119 -83
- package/esm/{fw-dropdown-CbgOvgOt.js → fw-dropdown-58wyuzsW.js} +80 -61
- package/esm/fw-dropdown.js +5 -5
- package/esm/fw-icons.js +34 -0
- package/esm/{fw-image-Dl96Dc27.js → fw-image-D-OHafdw.js} +30 -13
- package/esm/fw-image.js +4 -4
- package/esm/{fw-input-XeI-IKly.js → fw-input-C2-cZ-BY.js} +65 -43
- package/esm/fw-input.js +2 -2
- package/esm/fw-loading-bar-DecYSBC_.js +45 -0
- package/esm/fw-loading.js +34 -15
- package/esm/fw-media-picker.js +43 -31
- package/esm/fw-modal.js +102 -48
- package/esm/fw-navigation-menu.js +180 -52
- package/esm/fw-popover-B4bsfuxm.js +620 -0
- package/esm/fw-popover.js +6 -293
- package/esm/fw-progress-bar.js +3 -2
- package/esm/fw-provider-list.js +58 -34
- package/esm/fw-sidebar-menu.js +22 -13
- package/esm/fw-slider.js +4 -4
- package/esm/fw-switch.js +147 -0
- package/esm/{fw-table-row-Db7951fr.js → fw-table-row-C61Bi8KB.js} +57 -55
- package/esm/fw-table.js +8 -7
- package/esm/fw-tabs.js +7 -7
- package/esm/{fw-tag-V0jMl-It.js → fw-tag-FWH6KttB.js} +37 -26
- package/esm/fw-tag.js +4 -6
- package/esm/fw-toast.js +14 -15
- package/esm/fw-transactions-card.js +8 -8
- package/esm/get-root-colours-DCjlYelc.js +62 -0
- package/esm/{index-CzZMBMV_.js → index-BsEH8YYr.js} +433 -130
- package/esm/index.js +76 -68
- package/esm/{uniqueId-DK6xzFd8.js → uniqueId-DZdGzBh8.js} +1 -1
- package/frollo-web-ui.esm.js +30139 -29045
- package/icons/arrow-connect.svg +3 -0
- package/icons/arrow-left.svg +3 -0
- package/icons/arrow-out-square.svg +3 -0
- package/icons/arrow-right.svg +3 -0
- package/icons/circle-exclamation.svg +5 -0
- package/icons/clock.svg +10 -0
- package/icons/default-provider.svg +5 -0
- package/icons/desktop.svg +8 -0
- package/icons/error.svg +3 -0
- package/icons/folder-arrow-down.svg +3 -0
- package/icons/index.ts +35 -3
- package/icons/loading.svg +0 -1
- package/icons/manual-account.svg +3 -0
- package/icons/mobile.svg +3 -0
- package/icons/paper-plane.svg +3 -0
- package/icons/pending.svg +10 -0
- package/icons/success-hill.svg +5 -0
- package/icons/user-plus.svg +3 -0
- package/index.d.ts +807 -571
- package/package.json +23 -29
- package/styles/tailwind.css +52 -0
- package/styles/typography.scss +24 -7
- package/styles/web-components.scss +2 -2
- package/tailwind.config.js +128 -22
- package/types/components/fw-accordion/fw-accordion.vue.d.ts +20 -20
- package/types/components/fw-alert/fw-alert.vue.d.ts +43 -0
- package/types/components/fw-alert/index.d.ts +2 -0
- package/types/components/fw-alert/index.types.d.ts +4 -0
- package/types/components/fw-bar-chart/fw-bar-chart.vue.d.ts +8 -8
- package/types/components/fw-button/fw-button.vue.d.ts +15 -17
- package/types/components/fw-button/index.d.ts +2 -0
- package/types/components/fw-button/index.types.d.ts +1 -3
- package/types/components/fw-card/fw-card.vue.d.ts +3 -2
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +8 -5
- package/types/components/fw-date-picker/fw-date-picker.vue.d.ts +14 -19
- package/types/components/fw-date-picker/index.types.d.ts +5 -4
- package/types/components/fw-drawer/fw-drawer.vue.d.ts +26 -10
- package/types/components/fw-drawer/index.types.d.ts +1 -1
- package/types/components/fw-dropdown/fw-dropdown.vue.d.ts +11 -9
- package/types/components/fw-icons/index.d.ts +2 -0
- package/types/components/fw-image/fw-image.vue.d.ts +7 -5
- package/types/components/fw-input/fw-input.vue.d.ts +11 -17
- package/types/components/fw-input/index.types.d.ts +1 -1
- package/types/components/fw-loading/fw-loading-bar.vue.d.ts +5 -2
- package/types/components/fw-loading/fw-loading-dots.vue.d.ts +2 -0
- package/types/components/fw-loading/index.d.ts +2 -1
- package/types/components/fw-modal/fw-modal.vue.d.ts +51 -11
- package/types/components/fw-modal/index.types.d.ts +1 -1
- package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +77 -6
- package/types/components/fw-navigation-menu/index.types.d.ts +11 -0
- package/types/components/fw-popover/fw-popover.vue.d.ts +10 -5
- package/types/components/fw-provider-list/fw-provider-list.vue.d.ts +8 -5
- package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +20 -3
- package/types/components/fw-sidebar-menu/index.types.d.ts +9 -0
- package/types/components/fw-switch/fw-switch.vue.d.ts +101 -0
- package/types/components/fw-switch/index.d.ts +2 -0
- package/types/components/fw-switch/index.types.d.ts +8 -0
- package/types/components/fw-table/fw-table.vue.d.ts +7 -7
- package/types/components/fw-table/index.types.d.ts +0 -3
- package/types/components/fw-tabs/fw-tabs.vue.d.ts +1 -1
- package/types/components/fw-tabs/index.types.d.ts +1 -1
- package/types/components/fw-tag/fw-tag.vue.d.ts +2 -2
- package/types/components/fw-tag/index.types.d.ts +3 -3
- package/types/components/fw-toast/fw-toast.vue.d.ts +2 -2
- package/types/components/index.d.ts +4 -3
- package/types/components/index.types.d.ts +1 -0
- package/types/helpers/get-root-colours.d.ts +3 -0
- package/types/helpers/index.d.ts +2 -0
- package/types/helpers/vue-component-to-html.d.ts +2 -0
- package/types/icons/index.d.ts +18 -2
- package/types/index-types.esm.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/index.esm.d.ts +1 -0
- package/types/services/toast.d.ts +1 -1
- package/web-components/index.js +30134 -29048
- package/esm/check--YD4Ts6g.js +0 -17
- package/esm/fw-animations.js +0 -123
- package/esm/fw-button-DNozvo7B.js +0 -286
- package/esm/fw-loading-bar-DThRjdw1.js +0 -22
- package/esm/fw-loading-spinner-BFpFFRJm.js +0 -20
- package/esm/fw-period-selector.js +0 -90
- package/esm/get-root-colours-DYEoJPEb.js +0 -37
- package/icons/icons.stories.ts +0 -28
- package/styles/tailwind.scss +0 -68
- package/types/components/fw-animations/fw-email-pulse.vue.d.ts +0 -24
- package/types/components/fw-animations/fw-success-pulse.vue.d.ts +0 -24
- package/types/components/fw-animations/index.d.ts +0 -4
- package/types/components/fw-period-selector/fw-period-selector.vue.d.ts +0 -56
- package/types/components/fw-period-selector/index.d.ts +0 -2
- package/types/components/fw-period-selector/index.types.d.ts +0 -1
- /package/icons/{arrows-rotate.svg → arrow-rotate.svg} +0 -0
- /package/types/components/{fw-animations/fw-loading-spinner.vue.d.ts → fw-icons/fw-success-animation.vue.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frollo/frollo-web-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "Frollo's UI library for components, utilities and configs",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./icons": "./icons/index.ts",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"build:lib": "bin/build-lib.sh",
|
|
21
21
|
"deploy": "bin/publish.sh",
|
|
22
22
|
"release": "bin/release.sh",
|
|
23
|
-
"test:unit": "
|
|
24
|
-
"test:single": "
|
|
23
|
+
"test:unit": "vitest run --coverage",
|
|
24
|
+
"test:single": "vitest watch",
|
|
25
25
|
"lint": "eslint --cache ./src",
|
|
26
26
|
"lint:fix": "eslint --cache ./src --fix",
|
|
27
27
|
"tw-config-export": "mkdir -p ./dist && tailwind-config-viewer export ./dist/twconfig-viewer && rimraf ./dist/twconfig-viewer/favicon.ico",
|
|
@@ -45,25 +45,20 @@
|
|
|
45
45
|
"@rollup/plugin-replace": "^5.0.5",
|
|
46
46
|
"@rollup/plugin-url": "^8.0.2",
|
|
47
47
|
"@rollup/pluginutils": "^5.1.0",
|
|
48
|
-
"@storybook/addon-a11y": "^
|
|
49
|
-
"@storybook/addon-designs": "^
|
|
50
|
-
"@storybook/addon-
|
|
51
|
-
"@storybook/addon-
|
|
52
|
-
"@storybook/
|
|
53
|
-
"@storybook/
|
|
54
|
-
"@storybook/
|
|
55
|
-
"@
|
|
56
|
-
"@storybook/test": "^8.1.0",
|
|
57
|
-
"@storybook/theming": "^8.1.0",
|
|
58
|
-
"@storybook/vue3": "^8.1.0",
|
|
59
|
-
"@storybook/vue3-vite": "^8.1.0",
|
|
60
|
-
"@types/jest": "^29.5.12",
|
|
48
|
+
"@storybook/addon-a11y": "^10.0.6",
|
|
49
|
+
"@storybook/addon-designs": "^11.0.1",
|
|
50
|
+
"@storybook/addon-docs": "^10.0.6",
|
|
51
|
+
"@storybook/addon-themes": "^10.0.6",
|
|
52
|
+
"@storybook/builder-vite": "^10.0.7",
|
|
53
|
+
"@storybook/vue3": "^10.0.6",
|
|
54
|
+
"@storybook/vue3-vite": "^10.0.6",
|
|
55
|
+
"@tsconfig/node22": "^22.0.2",
|
|
61
56
|
"@types/lodash-es": "^4.17.12",
|
|
62
|
-
"@vitejs/plugin-vue": "^
|
|
57
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
58
|
+
"@vitejs/plugin-vue-jsx": "^5.1.1",
|
|
59
|
+
"@vitest/coverage-istanbul": "^4.0.14",
|
|
63
60
|
"@vue/test-utils": "^2.4.6",
|
|
64
|
-
"@vue/vue3-jest": "^29.2.6",
|
|
65
61
|
"autoprefixer": "^10.4.19",
|
|
66
|
-
"babel-jest": "^29.7.0",
|
|
67
62
|
"chart.js": "^4.4.2",
|
|
68
63
|
"cross-env": "^7.0.3",
|
|
69
64
|
"eslint": "^9.2.0",
|
|
@@ -72,11 +67,8 @@
|
|
|
72
67
|
"eslint-plugin-vue": "^9.26.0",
|
|
73
68
|
"globals": "^15.2.0",
|
|
74
69
|
"hash-sum": "^2.0.0",
|
|
75
|
-
"jest": "^29.7.0",
|
|
76
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
77
70
|
"jsdom": "^24.0.0",
|
|
78
71
|
"lodash-es": "^4.17.21",
|
|
79
|
-
"node-sass": "^9.0.0",
|
|
80
72
|
"postcss": "^8.4.38",
|
|
81
73
|
"prettier": "^3.3.1",
|
|
82
74
|
"rimraf": "^5.0.7",
|
|
@@ -86,21 +78,23 @@
|
|
|
86
78
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
87
79
|
"rollup-plugin-vue": "^6.0.0",
|
|
88
80
|
"sass": "^1.77.1",
|
|
89
|
-
"storybook": "^
|
|
81
|
+
"storybook": "^10.0.6",
|
|
90
82
|
"svgo": "^3.3.2",
|
|
91
83
|
"tailwindcss": "^3.4.3",
|
|
92
|
-
"ts-jest": "^29.1.2",
|
|
93
84
|
"ts-node": "^10.9.2",
|
|
94
85
|
"tslib": "^2.6.2",
|
|
95
86
|
"typescript": "^5.4.5",
|
|
96
|
-
"typescript-eslint": "^8.
|
|
87
|
+
"typescript-eslint": "^8.48.0",
|
|
97
88
|
"v-calendar": "^3.1.2",
|
|
98
89
|
"vee-validate": "^4.12.8",
|
|
99
|
-
"vite": "^
|
|
90
|
+
"vite": "^7.2.2",
|
|
91
|
+
"vite-plugin-checker": "^0.11.0",
|
|
92
|
+
"vite-plugin-vue-devtools": "^8.0.3",
|
|
100
93
|
"vite-svg-loader": "^5.1.0",
|
|
94
|
+
"vitest": "^4.0.8",
|
|
101
95
|
"vue-chartjs": "^5.3.1",
|
|
102
96
|
"vue-eslint-parser": "^9.4.2",
|
|
103
|
-
"vue-tsc": "^
|
|
97
|
+
"vue-tsc": "^3.1.4",
|
|
104
98
|
"vue3-webcomponent-wrapper": "^0.2.0",
|
|
105
99
|
"yup": "^1.4.0"
|
|
106
100
|
},
|
|
@@ -110,8 +104,8 @@
|
|
|
110
104
|
"access": "public"
|
|
111
105
|
},
|
|
112
106
|
"engines": {
|
|
113
|
-
"node": ">=
|
|
114
|
-
"npm": ">=10.
|
|
107
|
+
"node": ">=22.18.0",
|
|
108
|
+
"npm": ">=10.9.3"
|
|
115
109
|
},
|
|
116
110
|
"keywords": [
|
|
117
111
|
"frollo web ui",
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* Tailwind */
|
|
2
|
+
@tailwind base;
|
|
3
|
+
@tailwind components;
|
|
4
|
+
@tailwind utilities;
|
|
5
|
+
|
|
6
|
+
/** Typography */
|
|
7
|
+
|
|
8
|
+
@layer base {
|
|
9
|
+
html {
|
|
10
|
+
@apply bg-brand-appBg;
|
|
11
|
+
}
|
|
12
|
+
p {
|
|
13
|
+
@apply text-p mb-1;
|
|
14
|
+
letter-spacing: 0.4px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
h1, .h1 {
|
|
18
|
+
@apply text-3xl mb-1;
|
|
19
|
+
letter-spacing: 0.84px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
h2, .h2 {
|
|
23
|
+
@apply text-2xl mb-1;
|
|
24
|
+
letter-spacing: 0.4px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
h3, .h3 {
|
|
28
|
+
@apply text-xl mb-1;
|
|
29
|
+
letter-spacing: 0.4px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
h4, .h4 {
|
|
33
|
+
@apply text-p mb-1;
|
|
34
|
+
letter-spacing: 0.4px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
h5, .h5 {
|
|
38
|
+
@apply text-p mb-1;
|
|
39
|
+
letter-spacing: 0.4px;
|
|
40
|
+
}
|
|
41
|
+
h6, .h6 {
|
|
42
|
+
@apply text-p-small mb-1;
|
|
43
|
+
letter-spacing: 0.4px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
input, textarea {
|
|
47
|
+
&::placeholder {
|
|
48
|
+
@apply text-grey-light;
|
|
49
|
+
letter-spacing: 0.4px;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
package/styles/typography.scss
CHANGED
|
@@ -1,30 +1,47 @@
|
|
|
1
1
|
/** Typography */
|
|
2
2
|
|
|
3
3
|
@layer base {
|
|
4
|
+
html {
|
|
5
|
+
@apply bg-brand-appBg;
|
|
6
|
+
}
|
|
4
7
|
p {
|
|
5
|
-
@apply text-
|
|
8
|
+
@apply text-p mb-1;
|
|
9
|
+
letter-spacing: 0.4px;
|
|
6
10
|
}
|
|
7
11
|
|
|
8
12
|
h1, .h1 {
|
|
9
|
-
@apply text-
|
|
13
|
+
@apply text-3xl mb-1;
|
|
14
|
+
letter-spacing: 0.84px;
|
|
10
15
|
}
|
|
11
16
|
|
|
12
17
|
h2, .h2 {
|
|
13
|
-
@apply text-2xl
|
|
18
|
+
@apply text-2xl mb-1;
|
|
19
|
+
letter-spacing: 0.4px;
|
|
14
20
|
}
|
|
15
21
|
|
|
16
22
|
h3, .h3 {
|
|
17
|
-
@apply text-xl
|
|
23
|
+
@apply text-xl mb-1;
|
|
24
|
+
letter-spacing: 0.4px;
|
|
18
25
|
}
|
|
19
26
|
|
|
20
27
|
h4, .h4 {
|
|
21
|
-
@apply text-
|
|
28
|
+
@apply text-p mb-1;
|
|
29
|
+
letter-spacing: 0.4px;
|
|
22
30
|
}
|
|
23
31
|
|
|
24
32
|
h5, .h5 {
|
|
25
|
-
@apply text-
|
|
33
|
+
@apply text-p mb-1;
|
|
34
|
+
letter-spacing: 0.4px;
|
|
26
35
|
}
|
|
27
36
|
h6, .h6 {
|
|
28
|
-
@apply text-
|
|
37
|
+
@apply text-p-small mb-1;
|
|
38
|
+
letter-spacing: 0.4px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
input, textarea {
|
|
42
|
+
&::placeholder {
|
|
43
|
+
@apply text-grey-light;
|
|
44
|
+
letter-spacing: 0.4px;
|
|
45
|
+
}
|
|
29
46
|
}
|
|
30
47
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@import './tailwind.
|
|
1
|
+
@import './tailwind.css';
|
|
2
2
|
|
|
3
3
|
body {
|
|
4
4
|
font-family: var(--fontFamily);
|
|
5
|
-
@apply text-base text-body;
|
|
5
|
+
@apply text-base text-body bg-brand-appBg relative;
|
|
6
6
|
-webkit-font-smoothing: antialiased;
|
|
7
7
|
-moz-osx-font-smoothing: grayscale;
|
|
8
8
|
}
|
package/tailwind.config.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
theme: {
|
|
3
3
|
colors: {
|
|
4
|
+
white: '#ffffff',
|
|
5
|
+
'off-white': '#F7F7F7',
|
|
6
|
+
black: '#000000',
|
|
7
|
+
transparent: 'transparent',
|
|
4
8
|
primary: 'var(--colorPrimary)',
|
|
5
9
|
secondary: 'var(--colorSecondary)',
|
|
6
10
|
tertiary: 'var(--colorTertiary)',
|
|
7
11
|
link: 'var(--colorLink)',
|
|
8
12
|
body: 'var(--colorBody)',
|
|
9
|
-
white: '#ffffff',
|
|
10
|
-
black: '#000000',
|
|
11
|
-
transparent: 'transparent',
|
|
12
13
|
button: {
|
|
13
14
|
primary: {
|
|
14
15
|
bg: 'var(--colorButtonPrimary)',
|
|
@@ -17,15 +18,18 @@ module.exports = {
|
|
|
17
18
|
},
|
|
18
19
|
secondary: {
|
|
19
20
|
bg: 'var(--colorButtonSecondary)',
|
|
20
|
-
text: 'var(--colorButtonSecondaryText)'
|
|
21
|
+
text: 'var(--colorButtonSecondaryText)',
|
|
22
|
+
fade: 'var(--colorButtonSecondaryFade)'
|
|
21
23
|
},
|
|
22
24
|
tertiary: {
|
|
23
25
|
bg: 'var(--colorButtonTertiary)',
|
|
24
|
-
text: 'var(--colorButtonTertiaryText)'
|
|
26
|
+
text: 'var(--colorButtonTertiaryText)',
|
|
27
|
+
fade: 'var(--colorButtonTertiaryFade)'
|
|
25
28
|
},
|
|
26
|
-
|
|
27
|
-
bg: 'var(--
|
|
28
|
-
text: 'var(--
|
|
29
|
+
quaternary: {
|
|
30
|
+
bg: 'var(--colorButtonQuaternary)',
|
|
31
|
+
text: 'var(--colorButtonQuaternaryText)',
|
|
32
|
+
fade: 'var(--colorButtonQuaternaryFade)'
|
|
29
33
|
}
|
|
30
34
|
},
|
|
31
35
|
grey: {
|
|
@@ -34,24 +38,123 @@ module.exports = {
|
|
|
34
38
|
lightest: '#f5f5f5',
|
|
35
39
|
10: '#f8f8f8',
|
|
36
40
|
20: '#f2f2f2',
|
|
41
|
+
30: '#EEEFF1',
|
|
37
42
|
40: '#E4E4E4',
|
|
38
|
-
60: '#
|
|
39
|
-
80: '#C9C9C9'
|
|
43
|
+
60: '#DEE0E3',
|
|
44
|
+
80: '#C9C9C9',
|
|
45
|
+
100: '#C8CBD0'
|
|
40
46
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
brand: {
|
|
48
|
+
appBg: 'var(--colorAppBg)', // '#F7F7F7' off-white
|
|
49
|
+
success: {
|
|
50
|
+
bg: 'var(--colorSuccessBg)', //#D8FFF6', // mint-20
|
|
51
|
+
text: 'var(--colorSuccessText)', //'#00C696'
|
|
52
|
+
new: 'var(--colorSuccessNew)' // '#4bf0c8' // mint-100
|
|
53
|
+
},
|
|
54
|
+
error: {
|
|
55
|
+
bg: 'var(--colorErrorBg)', //'#FEE0D9', // coral-20
|
|
56
|
+
text: 'var(--colorErrorText)' //'#E74C4C'
|
|
57
|
+
},
|
|
58
|
+
warning: {
|
|
59
|
+
bg: 'var(--colorWarningBg)', //'#FB6340',
|
|
60
|
+
text: 'var(--colorWarningText)' //'#FB6340'
|
|
61
|
+
},
|
|
62
|
+
text1: 'var(--colorText1)', //'#393C56', // midnight-90
|
|
63
|
+
text2: 'var(--colorText2)', //'#5F6489', // midnight-70
|
|
64
|
+
text3: 'var(--colorText3)', //'#8B8FAC', // midnight-50
|
|
65
|
+
text4: 'var(--colorText4)', //'#CDC3FF', // lilac-100
|
|
66
|
+
|
|
67
|
+
bg1: 'var(--colorBg1)', //'#292B3D', // midnight-100
|
|
68
|
+
bg2: 'var(--colorBg2)', //'#FDDBFD', // pink-20
|
|
69
|
+
bg3: 'var(--colorBg3)', //'#FEE0D9', // coral-20 yodlee-bg
|
|
70
|
+
bg4: 'var(--colorBg4)', //'#D4EDF7', // sky-20 cdr-bg
|
|
71
|
+
|
|
72
|
+
border1: 'var(--colorBorder1)', //'#AFB2C7', // midnight-30
|
|
73
|
+
border2: 'var(--colorBorder2)', //'#CDC3FF', // lilac-100
|
|
74
|
+
border3: 'var(--colorBorder3)' //'#8E7DFF' // bg nav menu lavender
|
|
75
|
+
}
|
|
44
76
|
},
|
|
45
77
|
fontSize: {
|
|
46
|
-
xs: [
|
|
47
|
-
|
|
48
|
-
|
|
78
|
+
xs: [
|
|
79
|
+
'12px',
|
|
80
|
+
{
|
|
81
|
+
lineHeight: '19px',
|
|
82
|
+
letterSpacing: '0.4px',
|
|
83
|
+
fontWeight: '100'
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
sm: [
|
|
87
|
+
'14px',
|
|
88
|
+
{
|
|
89
|
+
lineHeight: '19px',
|
|
90
|
+
letterSpacing: '0.45px',
|
|
91
|
+
fontWeight: '100'
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
base: [
|
|
95
|
+
'16px',
|
|
96
|
+
{
|
|
97
|
+
lineHeight: '19px',
|
|
98
|
+
letterSpacing: '0.45px',
|
|
99
|
+
fontWeight: '400'
|
|
100
|
+
}
|
|
101
|
+
],
|
|
49
102
|
lg: ['18px', '1.5'],
|
|
50
|
-
xl: [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
103
|
+
xl: [
|
|
104
|
+
'20px',
|
|
105
|
+
{
|
|
106
|
+
lineHeight: '26px',
|
|
107
|
+
letterSpacing: '0.4px',
|
|
108
|
+
fontWeight: '500'
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
'2xl': [
|
|
112
|
+
'20px',
|
|
113
|
+
{
|
|
114
|
+
lineHeight: '26px',
|
|
115
|
+
letterSpacing: '0.4px',
|
|
116
|
+
fontWeight: '500'
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
'3xl': [
|
|
120
|
+
'42px',
|
|
121
|
+
{
|
|
122
|
+
lineHeight: '46px',
|
|
123
|
+
letterSpacing: '0.84px',
|
|
124
|
+
fontWeight: '400'
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
p: [
|
|
128
|
+
'20px',
|
|
129
|
+
{
|
|
130
|
+
lineHeight: '26px',
|
|
131
|
+
letterSpacing: '0.4px',
|
|
132
|
+
fontWeight: '400'
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
'p-small': [
|
|
136
|
+
'15px',
|
|
137
|
+
{
|
|
138
|
+
lineHeight: '19px',
|
|
139
|
+
letterSpacing: '0.45px',
|
|
140
|
+
fontWeight: '400'
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
p2: [
|
|
144
|
+
'14px',
|
|
145
|
+
{
|
|
146
|
+
lineHeight: '19px',
|
|
147
|
+
letterSpacing: '0.45px',
|
|
148
|
+
fontWeight: '400'
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
listStyleType: {
|
|
153
|
+
none: 'none',
|
|
154
|
+
disc: 'disc',
|
|
155
|
+
decimal: 'decimal',
|
|
156
|
+
square: 'square',
|
|
157
|
+
roman: 'upper-roman'
|
|
55
158
|
},
|
|
56
159
|
screens: {
|
|
57
160
|
// @media (min-width: 640px) { ... }
|
|
@@ -67,7 +170,10 @@ module.exports = {
|
|
|
67
170
|
banner: '420px'
|
|
68
171
|
},
|
|
69
172
|
boxShadow: {
|
|
70
|
-
card: '0px
|
|
173
|
+
card: '0px 4px 4px rgba(0, 0, 0, 0.1714)',
|
|
174
|
+
top: '0 -1px 0 0 rgba(20, 20, 20, 0.25);',
|
|
175
|
+
bottom: '0px 1px 0px rgba(20, 20, 20, 0.25)',
|
|
176
|
+
dropdown: '0 4px 4px 0 rgba(0, 0, 0, 0.25)'
|
|
71
177
|
}
|
|
72
178
|
}
|
|
73
179
|
}
|
|
@@ -33,16 +33,9 @@ declare const __default__: import("vue").DefineComponent<{
|
|
|
33
33
|
default: boolean;
|
|
34
34
|
};
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Header className for the accordion button
|
|
37
37
|
*/
|
|
38
|
-
|
|
39
|
-
type: BooleanConstructor;
|
|
40
|
-
default: boolean;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Padding className for the accordion button
|
|
44
|
-
*/
|
|
45
|
-
buttonPadding: {
|
|
38
|
+
headerClass: {
|
|
46
39
|
type: StringConstructor;
|
|
47
40
|
default: string;
|
|
48
41
|
};
|
|
@@ -53,6 +46,13 @@ declare const __default__: import("vue").DefineComponent<{
|
|
|
53
46
|
type: StringConstructor;
|
|
54
47
|
default: string;
|
|
55
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* Secondary appearance of the accordion
|
|
51
|
+
*/
|
|
52
|
+
secondary: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
56
|
}, {
|
|
57
57
|
isOpen: import("vue").Ref<boolean>;
|
|
58
58
|
beforeEnter: (el: Element) => void;
|
|
@@ -95,16 +95,9 @@ declare const __default__: import("vue").DefineComponent<{
|
|
|
95
95
|
default: boolean;
|
|
96
96
|
};
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* Header className for the accordion button
|
|
99
99
|
*/
|
|
100
|
-
|
|
101
|
-
type: BooleanConstructor;
|
|
102
|
-
default: boolean;
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* Padding className for the accordion button
|
|
106
|
-
*/
|
|
107
|
-
buttonPadding: {
|
|
100
|
+
headerClass: {
|
|
108
101
|
type: StringConstructor;
|
|
109
102
|
default: string;
|
|
110
103
|
};
|
|
@@ -115,14 +108,21 @@ declare const __default__: import("vue").DefineComponent<{
|
|
|
115
108
|
type: StringConstructor;
|
|
116
109
|
default: string;
|
|
117
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* Secondary appearance of the accordion
|
|
113
|
+
*/
|
|
114
|
+
secondary: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
118
|
}>> & {
|
|
119
119
|
onToggled?: ((...args: any[]) => any) | undefined;
|
|
120
120
|
}, {
|
|
121
121
|
titleClass: string;
|
|
122
122
|
isOpened: boolean;
|
|
123
123
|
iconPositionStart: boolean;
|
|
124
|
-
|
|
125
|
-
buttonPadding: string;
|
|
124
|
+
headerClass: string;
|
|
126
125
|
borderStyle: string;
|
|
126
|
+
secondary: boolean;
|
|
127
127
|
}, {}>;
|
|
128
128
|
export default __default__;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { AlertVariantName } from './index.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
/**
|
|
5
|
+
* The colour variant of the alert element.
|
|
6
|
+
* Accepts 'success', 'error'
|
|
7
|
+
*/
|
|
8
|
+
variant: {
|
|
9
|
+
type: PropType<AlertVariantName>;
|
|
10
|
+
required: true;
|
|
11
|
+
validator: (value: string) => boolean;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Disables the icon element.
|
|
15
|
+
*/
|
|
16
|
+
disableIcon: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
bgClass: import("vue").ComputedRef<"bg-brand-error-bg" | "bg-brand-success-bg">;
|
|
22
|
+
defaultScale: import("vue").Ref<string>;
|
|
23
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
/**
|
|
25
|
+
* The colour variant of the alert element.
|
|
26
|
+
* Accepts 'success', 'error'
|
|
27
|
+
*/
|
|
28
|
+
variant: {
|
|
29
|
+
type: PropType<AlertVariantName>;
|
|
30
|
+
required: true;
|
|
31
|
+
validator: (value: string) => boolean;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Disables the icon element.
|
|
35
|
+
*/
|
|
36
|
+
disableIcon: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
}>>, {
|
|
41
|
+
disableIcon: boolean;
|
|
42
|
+
}, {}>;
|
|
43
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { FwBarChartProps } from './index.types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
/**
|
|
5
5
|
* The transaction title of the chart
|
|
@@ -17,25 +17,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
* The x axis data.
|
|
18
18
|
*/
|
|
19
19
|
x: {
|
|
20
|
-
type: PropType<
|
|
20
|
+
type: PropType<FwBarChartProps["x"]>;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
23
|
* The y axis data.
|
|
24
24
|
*/
|
|
25
25
|
y: {
|
|
26
|
-
type: PropType<
|
|
26
|
+
type: PropType<FwBarChartProps["y"]>;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
29
|
* The x and y axis data.
|
|
30
30
|
*/
|
|
31
31
|
graphData: {
|
|
32
|
-
type: PropType<
|
|
32
|
+
type: PropType<FwBarChartProps["graphData"]>;
|
|
33
33
|
};
|
|
34
34
|
}, {
|
|
35
35
|
uuid: string;
|
|
36
36
|
xModel: import("vue").ComputedRef<string[]>;
|
|
37
37
|
yModel: import("vue").ComputedRef<number[]>;
|
|
38
|
-
chartOptions: import("vue").ComputedRef<import("chart.js/dist/types/utils")._DeepPartialObject<import("chart.js").CoreChartOptions<
|
|
38
|
+
chartOptions: import("vue").ComputedRef<import("chart.js/dist/types/utils")._DeepPartialObject<import("chart.js").CoreChartOptions<"bar"> & import("chart.js").ElementChartOptions<"bar"> & import("chart.js").PluginChartOptions<"bar"> & import("chart.js").DatasetChartOptions<"bar"> & import("chart.js").ScaleChartOptions<"bar"> & import("chart.js").BarControllerChartOptions>>;
|
|
39
39
|
chartData: import("vue").ComputedRef<{
|
|
40
40
|
labels: string[];
|
|
41
41
|
datasets: {
|
|
@@ -65,19 +65,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
65
|
* The x axis data.
|
|
66
66
|
*/
|
|
67
67
|
x: {
|
|
68
|
-
type: PropType<
|
|
68
|
+
type: PropType<FwBarChartProps["x"]>;
|
|
69
69
|
};
|
|
70
70
|
/**
|
|
71
71
|
* The y axis data.
|
|
72
72
|
*/
|
|
73
73
|
y: {
|
|
74
|
-
type: PropType<
|
|
74
|
+
type: PropType<FwBarChartProps["y"]>;
|
|
75
75
|
};
|
|
76
76
|
/**
|
|
77
77
|
* The x and y axis data.
|
|
78
78
|
*/
|
|
79
79
|
graphData: {
|
|
80
|
-
type: PropType<
|
|
80
|
+
type: PropType<FwBarChartProps["graphData"]>;
|
|
81
81
|
};
|
|
82
82
|
}>>, {}, {}>;
|
|
83
83
|
export default _default;
|