@ambita/design-system 3.0.26 → 3.0.27-11.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/dist/aux.common.js +29 -4
- package/dist/aux.common.js.map +1 -1
- package/dist/aux.umd.js +29 -4
- package/dist/aux.umd.js.map +1 -1
- package/dist/aux.umd.min.js +1 -1
- package/dist/aux.umd.min.js.map +1 -1
- package/dist/types/helpers/{formatting.d.ts → formatters/formatDateAndTime/index.d.ts} +1 -1
- package/dist/types/helpers/formatters/formatQuantity/formatAmount.spec.d.ts +1 -0
- package/dist/types/helpers/formatters/formatQuantity/formatNumber.d.ts +10 -0
- package/dist/types/helpers/formatters/formatQuantity/formatNumber.spec.d.ts +1 -0
- package/dist/types/index.d.ts +3 -2
- package/package.json +5 -4
- /package/dist/types/helpers/{formatAmount.d.ts → formatters/formatQuantity/formatAmount.d.ts} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare type FormatTypes = 'dateAndTime' | 'dateAndTimeWithSeconds' | 'date' | 'dateFull' | 'time' | 'timeWithSeconds';
|
|
1
|
+
export declare type FormatTypes = 'dateAndTime' | 'dateAndTimeWithSeconds' | 'date' | 'dateFull' | 'dateWithWeekDay' | 'time' | 'timeWithSeconds';
|
|
2
2
|
export declare function formatDate(date: Date, format?: FormatTypes): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare type FormatNumberTypes = 'rounded' | 'decimals';
|
|
2
|
+
export interface FormatNumberOptions {
|
|
3
|
+
type: FormatNumberTypes;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Returns formatted number using Intl.NumberFormat
|
|
7
|
+
* @param num
|
|
8
|
+
* @param options
|
|
9
|
+
*/
|
|
10
|
+
export declare const formatNumber: (num: number, options?: FormatNumberOptions) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -17,5 +17,6 @@ export { default as AuxToggle } from './components/Toggle/Toggle.vue';
|
|
|
17
17
|
export { default as AuxPagination } from './components/Pagination/Pagination.vue';
|
|
18
18
|
export { default as AuxDirectionalArrow } from './components/DirectionalArrow/DirectionalArrow.vue';
|
|
19
19
|
export { default as AuxAriaAnnouncer } from './components/AuxAriaAnnouncer/AuxAriaAnnouncer.vue';
|
|
20
|
-
export { formatDate } from '@/helpers/
|
|
21
|
-
export { formatPrice } from '@/helpers/formatAmount';
|
|
20
|
+
export { formatDate } from '@/helpers/formatters/formatDateAndTime/';
|
|
21
|
+
export { formatPrice } from '@/helpers/formatters/formatQuantity/formatAmount';
|
|
22
|
+
export { formatNumber } from '@/helpers/formatters/formatQuantity/formatNumber';
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ambita/design-system",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.27-11.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "npm run storybook",
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
7
|
-
"build": "npm run storybook:build",
|
|
8
|
-
"build
|
|
7
|
+
"build:storybook": "npm run storybook:build",
|
|
8
|
+
"build:package": "vue-cli-service build --target lib --name aux ./src/index.ts",
|
|
9
9
|
"deploy-package": "npm run build-package && npm publish --tag beta",
|
|
10
10
|
"test:unit": "vue-cli-service test:unit",
|
|
11
|
+
"test-watch:unit": "vue-cli-service test:unit --watch",
|
|
11
12
|
"lint": "vue-cli-service lint",
|
|
12
13
|
"lint-fix": "vue-cli-service lint --fix",
|
|
13
14
|
"storybook": "start-storybook -p 6006 -s ./public",
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
"prettier": "^2.2.1",
|
|
52
53
|
"sass": "^1.26.5",
|
|
53
54
|
"sass-loader": "^8.0.2",
|
|
54
|
-
"simple-git": "^
|
|
55
|
+
"simple-git": "^3.14.1",
|
|
55
56
|
"tsconfig-paths-webpack-plugin": "^3.5.1",
|
|
56
57
|
"typescript": "~4.5.5",
|
|
57
58
|
"vue-jest": "^5.0.0-0",
|
/package/dist/types/helpers/{formatAmount.d.ts → formatters/formatQuantity/formatAmount.d.ts}
RENAMED
|
File without changes
|