@frollo/frollo-web-ui 4.0.1 → 5.0.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/cjs/index.js +1906 -1538
- package/esm/fw-accordion.js +61 -28
- package/esm/fw-animations.js +2 -2
- package/esm/fw-bar-chart.js +2 -1
- package/esm/{fw-button-7902ae9e.js → fw-button-8d131219.js} +1 -1
- package/esm/fw-button.js +3 -3
- package/esm/fw-checkbox.js +25 -9
- package/esm/fw-drawer.js +225 -0
- package/esm/fw-dropdown.js +1 -1
- package/esm/{fw-image-c829ed20.js → fw-image-4787a8bd.js} +65 -59
- package/esm/fw-image.js +4 -4
- package/esm/fw-input.js +32 -27
- package/esm/{fw-loading-spinner-7462e0b2.js → fw-loading-spinner-c394fafc.js} +1 -1
- package/esm/fw-modal.js +3 -3
- package/esm/fw-navigation-menu.js +3 -3
- package/esm/fw-sidebar-menu.js +3 -3
- package/esm/fw-table.js +9 -9
- package/esm/fw-tag.js +93 -18
- package/esm/fw-toast.js +1 -1
- package/esm/fw-transactions-card.js +4 -4
- package/esm/get-root-colours-e2a1cb28.js +21 -0
- package/esm/{index-f0510452.js → index-2766bfe4.js} +12 -11
- package/esm/{index-dbe0534d.js → index-e4a2f8b0.js} +126 -98
- package/esm/index.js +40 -36
- package/frollo-web-ui.esm.js +2475 -2092
- package/icons/index.ts +5 -1
- package/icons/pen.svg +3 -0
- package/icons/xmark.svg +3 -0
- package/index.d.ts +406 -143
- package/package.json +1 -1
- package/types/components/fw-accordion/fw-accordion.vue.d.ts +22 -4
- package/types/components/fw-accordion/index.types.d.ts +1 -0
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +35 -3
- package/types/components/fw-checkbox/index.types.d.ts +2 -0
- package/types/components/fw-drawer/fw-drawer.vue.d.ts +165 -0
- package/types/components/fw-drawer/index.d.ts +2 -0
- package/types/components/fw-drawer/index.types.d.ts +14 -0
- package/types/components/fw-input/fw-input.vue.d.ts +14 -5
- package/types/components/fw-input/index.types.d.ts +1 -0
- package/types/components/fw-tag/fw-tag.vue.d.ts +30 -8
- package/types/components/fw-tag/index.types.d.ts +4 -2
- package/types/components/index.d.ts +1 -0
- package/types/components/index.types.d.ts +1 -0
- package/types/helpers/get-root-colours.d.ts +9 -0
- package/types/icons/index.d.ts +3 -1
- package/web-components/index.js +1770 -1387
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, createElementVNode, resolveComponent, openBlock, createBlock, withCtx, createCommentVNode, toDisplayString, createElementBlock } from 'vue';
|
|
2
2
|
import { s as script$1 } from './fw-card-1b6a67fe.js';
|
|
3
|
-
import { s as script$2 } from './fw-image-
|
|
3
|
+
import { s as script$2 } from './fw-image-4787a8bd.js';
|
|
4
4
|
import './es.array.includes-91be7771.js';
|
|
5
5
|
import './is-forced-752b5893.js';
|
|
6
6
|
import './export-a37ba078.js';
|
|
@@ -9,17 +9,17 @@ import './object-create-f6f3a673.js';
|
|
|
9
9
|
import './object-keys-4f5bf4e7.js';
|
|
10
10
|
import './es.number.constructor-d6ff8874.js';
|
|
11
11
|
import './classof-39c30bd5.js';
|
|
12
|
-
import './es.array.find-dfa1f42f.js';
|
|
13
12
|
import './array-iteration-107f927f.js';
|
|
14
13
|
import './array-species-create-a5f5503b.js';
|
|
14
|
+
import './array-method-is-strict-055b1830.js';
|
|
15
|
+
import './es.array.find-dfa1f42f.js';
|
|
15
16
|
import './es.string.iterator-590198a8.js';
|
|
16
17
|
import './create-property-534611fd.js';
|
|
17
18
|
import './web.timers-0f117224.js';
|
|
18
19
|
import './function-apply-ce251590.js';
|
|
19
|
-
import './array-method-is-strict-055b1830.js';
|
|
20
20
|
import './fw-loading-bar-f5ca605c.js';
|
|
21
21
|
import './style-inject.es-1f59c1d0.js';
|
|
22
|
-
import './index-
|
|
22
|
+
import './index-e4a2f8b0.js';
|
|
23
23
|
import './check-94a5917a.js';
|
|
24
24
|
|
|
25
25
|
var script = defineComponent({
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var useColours = function useColours() {
|
|
2
|
+
var style = getComputedStyle(document.body);
|
|
3
|
+
var colorPrimary = style.getPropertyValue('--colorPrimary');
|
|
4
|
+
var colorSecondary = style.getPropertyValue('--colorSecondary');
|
|
5
|
+
var colorTertiary = style.getPropertyValue('--colorTertiary');
|
|
6
|
+
var fontFamily = style.getPropertyValue('--fontFamily');
|
|
7
|
+
var colorBody = style.getPropertyValue('--colorBody');
|
|
8
|
+
var primaryFade40 = "".concat(colorPrimary, "66"); // Adds 40% transparency
|
|
9
|
+
var primaryFade5 = "".concat(colorPrimary, "0d"); // Adds 5% transparency
|
|
10
|
+
return {
|
|
11
|
+
colorPrimary: colorPrimary,
|
|
12
|
+
colorSecondary: colorSecondary,
|
|
13
|
+
colorTertiary: colorTertiary,
|
|
14
|
+
fontFamily: fontFamily,
|
|
15
|
+
colorBody: colorBody,
|
|
16
|
+
primaryFade5: primaryFade5,
|
|
17
|
+
primaryFade40: primaryFade40
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { useColours as u };
|
|
@@ -12,6 +12,7 @@ import { d as doesNotExceedSafeInteger$1 } from './does-not-exceed-safe-integer-
|
|
|
12
12
|
import { a as arraySpeciesCreate$1 } from './array-species-create-a5f5503b.js';
|
|
13
13
|
import { c as createProperty$1 } from './create-property-534611fd.js';
|
|
14
14
|
import { version as version$1, isProxy, toRaw, defineComponent, ref, shallowRef, onMounted, onBeforeUnmount, watch, h, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, toDisplayString, createCommentVNode, createVNode } from 'vue';
|
|
15
|
+
import { u as useColours } from './get-root-colours-e2a1cb28.js';
|
|
15
16
|
import { u as uniqueId } from './uniqueId-fe08534a.js';
|
|
16
17
|
|
|
17
18
|
function _arrayLikeToArray(arr, len) {
|
|
@@ -3375,9 +3376,9 @@ function capBezierPoints(points, area) {
|
|
|
3375
3376
|
}
|
|
3376
3377
|
return valueInPixels;
|
|
3377
3378
|
}
|
|
3378
|
-
const getComputedStyle
|
|
3379
|
+
const getComputedStyle = (element)=>element.ownerDocument.defaultView.getComputedStyle(element, null);
|
|
3379
3380
|
function getStyle(el, property) {
|
|
3380
|
-
return getComputedStyle
|
|
3381
|
+
return getComputedStyle(el).getPropertyValue(property);
|
|
3381
3382
|
}
|
|
3382
3383
|
const positions = [
|
|
3383
3384
|
'top',
|
|
@@ -3432,7 +3433,7 @@ const useOffsetPos = (x, y, target)=>(x > 0 || y > 0) && (!target || !target.sha
|
|
|
3432
3433
|
return event;
|
|
3433
3434
|
}
|
|
3434
3435
|
const { canvas , currentDevicePixelRatio } = chart;
|
|
3435
|
-
const style = getComputedStyle
|
|
3436
|
+
const style = getComputedStyle(canvas);
|
|
3436
3437
|
const borderBox = style.boxSizing === 'border-box';
|
|
3437
3438
|
const paddings = getPositionedStyle(style, 'padding');
|
|
3438
3439
|
const borders = getPositionedStyle(style, 'border', 'width');
|
|
@@ -3458,7 +3459,7 @@ function getContainerSize(canvas, width, height) {
|
|
|
3458
3459
|
height = canvas.clientHeight;
|
|
3459
3460
|
} else {
|
|
3460
3461
|
const rect = container.getBoundingClientRect(); // this is the border box of the container
|
|
3461
|
-
const containerStyle = getComputedStyle
|
|
3462
|
+
const containerStyle = getComputedStyle(container);
|
|
3462
3463
|
const containerBorder = getPositionedStyle(containerStyle, 'border', 'width');
|
|
3463
3464
|
const containerPadding = getPositionedStyle(containerStyle, 'padding');
|
|
3464
3465
|
width = rect.width - containerPadding.width - containerBorder.width;
|
|
@@ -3477,7 +3478,7 @@ function getContainerSize(canvas, width, height) {
|
|
|
3477
3478
|
const round1 = (v)=>Math.round(v * 10) / 10;
|
|
3478
3479
|
// eslint-disable-next-line complexity
|
|
3479
3480
|
function getMaximumSize(canvas, bbWidth, bbHeight, aspectRatio) {
|
|
3480
|
-
const style = getComputedStyle
|
|
3481
|
+
const style = getComputedStyle(canvas);
|
|
3481
3482
|
const margins = getPositionedStyle(style, 'margin');
|
|
3482
3483
|
const maxWidth = parseMaxStyle(style.maxWidth, canvas, 'clientWidth') || INFINITY;
|
|
3483
3484
|
const maxHeight = parseMaxStyle(style.maxHeight, canvas, 'clientHeight') || INFINITY;
|
|
@@ -15680,12 +15681,12 @@ var script = defineComponent({
|
|
|
15680
15681
|
return strToNumber(singleY);
|
|
15681
15682
|
})) || [];
|
|
15682
15683
|
});
|
|
15683
|
-
var
|
|
15684
|
-
|
|
15685
|
-
|
|
15686
|
-
|
|
15687
|
-
|
|
15688
|
-
|
|
15684
|
+
var _useColours = useColours(),
|
|
15685
|
+
colorPrimary = _useColours.colorPrimary,
|
|
15686
|
+
colorBody = _useColours.colorBody,
|
|
15687
|
+
fontFamily = _useColours.fontFamily,
|
|
15688
|
+
bgColor = _useColours.primaryFade5,
|
|
15689
|
+
primaryFade = _useColours.primaryFade40;
|
|
15689
15690
|
var maxY = computed(function () {
|
|
15690
15691
|
return Math.max.apply(Math, _toConsumableArray(yModel.value));
|
|
15691
15692
|
});
|