@ambita/design-system 3.0.26 → 3.0.27-101.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.
@@ -0,0 +1,51 @@
1
+ /* Do not use if you need IE11 support */
2
+ :root {
3
+ /* Purple */
4
+ --aux-purple: #8237DC;
5
+ --aux-purple-1: #E6D7F8;
6
+ --aux-purple-2: #CDAFF1;
7
+ --aux-purple-3: #B487EA;
8
+ --aux-purple-4: #9B5FE3;
9
+ --aux-purple-5: #682CB0;
10
+ --aux-purple-6: #4E2184;
11
+ --aux-purple-7: #341658;
12
+ --aux-purple-8: #1A0B2C;
13
+ /* Dark Purple */
14
+ --aux-dark-purple: #360076;
15
+ --aux-dark-purple-1: #D8CDE6;
16
+ --aux-dark-purple-2: #B098C6;
17
+ --aux-dark-purple-3: #8666AC;
18
+ --aux-dark-purple-4: #5F3591;
19
+ --aux-dark-purple-5: #2D1C5B;
20
+ --aux-dark-purple-6: #200E47;
21
+ --aux-dark-purple-7: #1A0F2E;
22
+ --aux-dark-purple-8: #110B18;
23
+ /* Mint green */
24
+ --aux-mint: #34D9C3;
25
+ --aux-mint-1: #D8EFEE;
26
+ --aux-mint-2: #B5E1DD;
27
+ --aux-mint-3: #93D4D0;
28
+ --aux-mint-4: #72CAC3;
29
+ --aux-mint-5: #26AE9B;
30
+ --aux-mint-6: #218376;
31
+ --aux-mint-7: #14584E;
32
+ --aux-mint-8: #0A2B26;
33
+ /* Grey */
34
+ --aux-grey-1: #E1E1E1;
35
+ --aux-grey-2: #D2D2D2;
36
+ --aux-grey-3: #BEBEBE;
37
+ --aux-grey-4: #AFAFAF;
38
+ --aux-grey-5: #555555;
39
+ --aux-grey-6: #333333;
40
+ /* Supports */
41
+ --aux-red: #C10000;
42
+ --aux-blue: #0067A3;
43
+ --aux-yellow: #ECD025;
44
+ --aux-green: #5CB85C;
45
+ --aux-white: #FFF;
46
+ --aux-black: #000;
47
+ --aux-focus: #003eff;
48
+ /* Borders */
49
+ --aux-border-1-grey-1: 1px solid #E1E1E1;
50
+ --aux-border-2-grey-1: 2px solid #E1E1E1;
51
+ }
@@ -1,54 +1,59 @@
1
1
  @import './colors-scss-variables';
2
- // Do not use if you need IE11 support
3
- ::root{
4
- // Purple
5
- --aux-purple: $aux-purple;
6
- --aux-purple-1: $aux-purple-1;
7
- --aux-purple-2: $aux-purple-2;
8
- --aux-purple-3: $aux-purple-3;
9
- --aux-purple-4: $aux-purple-4;
10
- --aux-purple-5: $aux-purple-5;
11
- --aux-purple-6: $aux-purple-6;
12
- --aux-purple-7: $aux-purple-7;
13
- --aux-purple-8: $aux-purple-8;
14
-
15
- // Dark Purple
16
- --aux-dark-purple: $aux-dark-purple;
17
- --aux-dark-purple-1: $aux-dark-purple-1;
18
- --aux-dark-purple-2: $aux-dark-purple-2;
19
- --aux-dark-purple-3: $aux-dark-purple-3;
20
- --aux-dark-purple-4: $aux-dark-purple-4;
21
- --aux-dark-purple-5: $aux-dark-purple-5;
22
- --aux-dark-purple-6: $aux-dark-purple-6;
23
- --aux-dark-purple-7: $aux-dark-purple-7;
24
- --aux-dark-purple-8: $aux-dark-purple-8;
25
-
26
- // Mint green
27
- --aux-mint: $aux-mint;
28
- --aux-mint-1: $aux-mint-1;
29
- --aux-mint-2: $aux-mint-2;
30
- --aux-mint-3: $aux-mint-3;
31
- --aux-mint-4: $aux-mint-4;
32
- --aux-mint-5: $aux-mint-5;
33
- --aux-mint-6: $aux-mint-6;
34
- --aux-mint-7: $aux-mint-7;
35
- --aux-mint-8: $aux-mint-8;
36
-
37
- // Grey
38
- --aux-grey-1: $aux-grey-1;
39
- --aux-grey-2: $aux-grey-2;
40
- --aux-grey-3: $aux-grey-3;
41
- --aux-grey-4: $aux-grey-4;
42
- --aux-grey-5: $aux-grey-5;
43
- --aux-grey-6: $aux-grey-6;
44
-
45
- // Supports
46
- --aux-red: $aux-red;
47
- --aux-blue: $aux-blue;
48
- --aux-yellow: $aux-yellow;
49
- --aux-green: $aux-green;
50
2
 
51
- --aux-white: $aux-white;
52
- --aux-black: $aux-black;
53
- --aux-focus: $aux-focus;
3
+ /* Do not use if you need IE11 support */
4
+ :root {
5
+ /* Purple */
6
+ --aux-purple: #{$aux-purple};
7
+ --aux-purple-1: #{$aux-purple-1};
8
+ --aux-purple-2: #{$aux-purple-2};
9
+ --aux-purple-3: #{$aux-purple-3};
10
+ --aux-purple-4: #{$aux-purple-4};
11
+ --aux-purple-5: #{$aux-purple-5};
12
+ --aux-purple-6: #{$aux-purple-6};
13
+ --aux-purple-7: #{$aux-purple-7};
14
+ --aux-purple-8: #{$aux-purple-8};
15
+
16
+ /* Dark Purple */
17
+ --aux-dark-purple: #{$aux-dark-purple};
18
+ --aux-dark-purple-1: #{$aux-dark-purple-1};
19
+ --aux-dark-purple-2: #{$aux-dark-purple-2};
20
+ --aux-dark-purple-3: #{$aux-dark-purple-3};
21
+ --aux-dark-purple-4: #{$aux-dark-purple-4};
22
+ --aux-dark-purple-5: #{$aux-dark-purple-5};
23
+ --aux-dark-purple-6: #{$aux-dark-purple-6};
24
+ --aux-dark-purple-7: #{$aux-dark-purple-7};
25
+ --aux-dark-purple-8: #{$aux-dark-purple-8};
26
+
27
+ /* Mint green */
28
+ --aux-mint: #{$aux-mint};
29
+ --aux-mint-1: #{$aux-mint-1};
30
+ --aux-mint-2: #{$aux-mint-2};
31
+ --aux-mint-3: #{$aux-mint-3};
32
+ --aux-mint-4: #{$aux-mint-4};
33
+ --aux-mint-5: #{$aux-mint-5};
34
+ --aux-mint-6: #{$aux-mint-6};
35
+ --aux-mint-7: #{$aux-mint-7};
36
+ --aux-mint-8: #{$aux-mint-8};
37
+
38
+ /* Grey */
39
+ --aux-grey-1: #{$aux-grey-1};
40
+ --aux-grey-2: #{$aux-grey-2};
41
+ --aux-grey-3: #{$aux-grey-3};
42
+ --aux-grey-4: #{$aux-grey-4};
43
+ --aux-grey-5: #{$aux-grey-5};
44
+ --aux-grey-6: #{$aux-grey-6};
45
+
46
+ /* Supports */
47
+ --aux-red: #{$aux-red};
48
+ --aux-blue: #{$aux-blue};
49
+ --aux-yellow: #{$aux-yellow};
50
+ --aux-green: #{$aux-green};
51
+
52
+ --aux-white: #{$aux-white};
53
+ --aux-black: #{$aux-black};
54
+ --aux-focus: #{$aux-focus};
55
+
56
+ /* Borders */
57
+ --aux-border-1-grey-1: 1px solid #{$aux-grey-1};
58
+ --aux-border-2-grey-1: 2px solid #{$aux-grey-1};
54
59
  }
@@ -1,6 +1,6 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  value: {
3
- type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
3
+ type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
4
4
  };
5
5
  disabled: {
6
6
  type: BooleanConstructor;
@@ -30,6 +30,7 @@ declare const _default: import("vue").DefineComponent<{
30
30
  };
31
31
  propagateEvent: (eventPayLoad: string) => void;
32
32
  emit: (event: string, ...args: any[]) => void;
33
+ closeButton: import("vue").Ref<HTMLInputElement | null>;
33
34
  getTestId: (testid: string) => string | undefined;
34
35
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
35
36
  actions?: unknown;
@@ -39,8 +40,8 @@ declare const _default: import("vue").DefineComponent<{
39
40
  dataTestid?: unknown;
40
41
  } & {
41
42
  size: string;
42
- id: string;
43
43
  actions: Action[];
44
+ id: string;
44
45
  } & {
45
46
  dataTestid?: string | undefined;
46
47
  title?: string | undefined;
@@ -48,7 +49,7 @@ declare const _default: import("vue").DefineComponent<{
48
49
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
49
50
  }, {
50
51
  size: string;
51
- id: string;
52
52
  actions: Action[];
53
+ id: string;
53
54
  }>;
54
55
  export default _default;
@@ -0,0 +1,30 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ type: {
4
+ type: PropType<"success" | "info" | "warning" | "error">;
5
+ required: true;
6
+ };
7
+ id: {
8
+ type: StringConstructor;
9
+ required: true;
10
+ };
11
+ }, {
12
+ classes: import("vue").ComputedRef<{
13
+ [x: string]: boolean | "success" | "info" | "warning" | "error";
14
+ 'aux-notification': boolean;
15
+ 'aux-notification-show': boolean;
16
+ }>;
17
+ icon: import("vue").ComputedRef<import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}> & {
18
+ [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
19
+ }, {}>>;
20
+ removeNotification: () => void;
21
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "remove-notification"[], "remove-notification", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
22
+ type?: unknown;
23
+ id?: unknown;
24
+ } & {
25
+ type: "success" | "info" | "warning" | "error";
26
+ id: string;
27
+ } & {}> & {
28
+ "onRemove-notification"?: ((...args: any[]) => any) | undefined;
29
+ }, {}>;
30
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { PropType } from 'vue';
2
+ import { NotificationType } from './Notification.d';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ notifications: {
5
+ type: PropType<NotificationType[]>;
6
+ default: () => never[];
7
+ };
8
+ }, {
9
+ removeNotification: (event: string) => void;
10
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "remove-notification"[], "remove-notification", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
11
+ notifications?: unknown;
12
+ } & {
13
+ notifications: NotificationType[];
14
+ } & {}> & {
15
+ "onRemove-notification"?: ((...args: any[]) => any) | undefined;
16
+ }, {
17
+ notifications: NotificationType[];
18
+ }>;
19
+ export default _default;
@@ -33,10 +33,10 @@ declare const _default: import("vue").DefineComponent<{
33
33
  type: StringConstructor;
34
34
  };
35
35
  value: {
36
- type: (StringConstructor | NumberConstructor | ArrayConstructor)[];
36
+ type: (ArrayConstructor | StringConstructor | NumberConstructor)[];
37
37
  };
38
38
  modelValue: {
39
- type: (StringConstructor | NumberConstructor | ArrayConstructor)[];
39
+ type: (ArrayConstructor | StringConstructor | NumberConstructor)[];
40
40
  };
41
41
  }, {
42
42
  state: {
@@ -0,0 +1,2 @@
1
+ declare const _default: (topics: string[]) => void;
2
+ export default _default;
@@ -39,9 +39,9 @@ declare const _default: import("vue").DefineComponent<{
39
39
  uuid?: unknown;
40
40
  failed?: unknown;
41
41
  } & {
42
- filename: string;
43
42
  time: string;
44
43
  uuid: string;
44
+ filename: string;
45
45
  failed: boolean;
46
46
  } & {
47
47
  file?: File | undefined;
@@ -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,11 @@
1
+ export declare type FormatNumberTypes = 'rounded' | 'decimals';
2
+ export interface FormatNumberOptions {
3
+ type: FormatNumberTypes;
4
+ decimals?: number;
5
+ }
6
+ /**
7
+ * Returns formatted number using Intl.NumberFormat
8
+ * @param num
9
+ * @param options
10
+ */
11
+ export declare const formatNumber: (num: number, options?: FormatNumberOptions) => string;
@@ -17,5 +17,8 @@ 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/formatting';
21
- export { formatPrice } from '@/helpers/formatAmount';
20
+ export { default as AuxNotifications } from './components/Notification/Notifications.vue';
21
+ export { default as AuxStatusBanner } from './components/StatusBanner/StatusBanner';
22
+ export { formatDate } from '@/helpers/formatters/formatDateAndTime/';
23
+ export { formatPrice } from '@/helpers/formatters/formatQuantity/formatAmount';
24
+ export { formatNumber } from '@/helpers/formatters/formatQuantity/formatNumber';
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@ambita/design-system",
3
- "version": "3.0.26",
3
+ "version": "3.0.27-101.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-package": "vue-cli-service build --target lib --name aux ./src/index.ts",
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
+ "sass-compile": "sass ./src/css/colors-css-variables.scss ./dist/css/colors-css-variables.css --no-source-map",
10
11
  "test:unit": "vue-cli-service test:unit",
12
+ "test-watch:unit": "vue-cli-service test:unit --watch",
11
13
  "lint": "vue-cli-service lint",
12
14
  "lint-fix": "vue-cli-service lint --fix",
13
15
  "storybook": "start-storybook -p 6006 -s ./public",
@@ -15,6 +17,8 @@
15
17
  "phosphor:update": "node scripts/phosphorUpdate.js"
16
18
  },
17
19
  "dependencies": {
20
+ "@types/aws-iot-device-sdk": "^2.2.4",
21
+ "aws-iot-device-sdk": "^1.0.13",
18
22
  "core-js": "^3.6.5",
19
23
  "sanitize.css": "12.0.1",
20
24
  "uuid": "^3.4.0",
@@ -51,7 +55,7 @@
51
55
  "prettier": "^2.2.1",
52
56
  "sass": "^1.26.5",
53
57
  "sass-loader": "^8.0.2",
54
- "simple-git": "^2.45.1",
58
+ "simple-git": "^3.14.1",
55
59
  "tsconfig-paths-webpack-plugin": "^3.5.1",
56
60
  "typescript": "~4.5.5",
57
61
  "vue-jest": "^5.0.0-0",