@maggioli-design-system/mds-accordion-timer-item 2.0.0 → 2.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.
Files changed (26) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mds-accordion-timer-item.cjs.js +1 -1
  3. package/dist/collection/collection-manifest.json +1 -1
  4. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +2 -2
  5. package/dist/collection/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.js +2 -2
  6. package/dist/collection/dictionary/typography.js +14 -3
  7. package/dist/components/index.d.ts +1 -5
  8. package/dist/components/index.js +1 -0
  9. package/dist/esm/loader.js +1 -1
  10. package/dist/esm/mds-accordion-timer-item.js +1 -1
  11. package/dist/mds-accordion-timer-item/mds-accordion-timer-item.js +1 -1
  12. package/dist/mds-accordion-timer-item/{p-0a14f155.system.js → p-4a0d1c42.system.js} +0 -0
  13. package/dist/stats.json +7 -7
  14. package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +2 -2
  15. package/dist/types/components.d.ts +3 -3
  16. package/dist/types/dictionary/typography.d.ts +5 -3
  17. package/dist/types/types/typography.d.ts +4 -2
  18. package/package.json +7 -6
  19. package/src/components/mds-accordion-timer-item/.gitlab-ci.yml +1 -1
  20. package/src/components/mds-accordion-timer-item/mds-accordion-timer-item.tsx +2 -2
  21. package/src/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.tsx +2 -2
  22. package/src/components.d.ts +3 -3
  23. package/src/dictionary/typography.ts +19 -4
  24. package/src/types/typography.ts +13 -2
  25. package/www/build/mds-accordion-timer-item.js +1 -1
  26. /package/www/build/{p-0a14f155.system.js → p-4a0d1c42.system.js} +0 -0
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-12f10871.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.16.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.17.0 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -3,7 +3,7 @@
3
3
  const index = require('./index-12f10871.js');
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v2.16.1 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v2.17.0 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  const patchBrowser = () => {
9
9
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mds-accordion-timer-item.cjs.js', document.baseURI).href));
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "2.16.1",
7
+ "version": "2.17.0",
8
8
  "typescriptVersion": "4.5.4"
9
9
  },
10
10
  "collections": [],
@@ -60,10 +60,10 @@ export class MdsAccordionTimerItem {
60
60
  "type": "string",
61
61
  "mutable": false,
62
62
  "complexType": {
63
- "original": "TypographyPrimaryType",
63
+ "original": "TypographyTitleType",
64
64
  "resolved": "\"action\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
65
65
  "references": {
66
- "TypographyPrimaryType": {
66
+ "TypographyTitleType": {
67
67
  "location": "import",
68
68
  "path": "../../types/typography"
69
69
  }
@@ -1,4 +1,4 @@
1
- import { typographyPrimaryDictionary } from '@dictionary/typography';
1
+ import { typographyReadDictionary } from '@dictionary/typography';
2
2
  import { h } from '@stencil/core';
3
3
  import { lokiDisabled } from '@test/loki-disabled';
4
4
  export default {
@@ -20,7 +20,7 @@ export default {
20
20
  typography: {
21
21
  type: { name: 'string' },
22
22
  description: 'Specifies the typography of the element',
23
- options: typographyPrimaryDictionary,
23
+ options: typographyReadDictionary,
24
24
  control: { type: 'select' },
25
25
  },
26
26
  },
@@ -15,11 +15,17 @@ const typographyDictionary = [
15
15
  'paragraph',
16
16
  'tip',
17
17
  ];
18
+ const typographyVariationsDictionary = [
19
+ 'title',
20
+ 'info',
21
+ 'read',
22
+ 'mono',
23
+ ];
18
24
  const typographyMonoDictionary = [
19
25
  'code',
20
26
  'hack',
21
27
  ];
22
- const typographyPrimaryDictionary = [
28
+ const typographyTitleDictionary = [
23
29
  'action',
24
30
  'h1',
25
31
  'h2',
@@ -28,7 +34,7 @@ const typographyPrimaryDictionary = [
28
34
  'h5',
29
35
  'h6',
30
36
  ];
31
- const typographySecondaryDictionary = [
37
+ const typographyInfoDictionary = [
32
38
  'caption',
33
39
  'detail',
34
40
  'label',
@@ -36,6 +42,11 @@ const typographySecondaryDictionary = [
36
42
  'paragraph',
37
43
  'tip',
38
44
  ];
45
+ const typographyReadDictionary = [
46
+ 'caption',
47
+ 'detail',
48
+ 'paragraph',
49
+ ];
39
50
  const typographySmallerDictionary = [
40
51
  'option',
41
52
  'tip',
@@ -45,4 +56,4 @@ const typographyTooltipDictionary = [
45
56
  'detail',
46
57
  'tip',
47
58
  ];
48
- export { typographyDictionary, typographyMonoDictionary, typographyPrimaryDictionary, typographySecondaryDictionary, typographySmallerDictionary, typographyTooltipDictionary, };
59
+ export { typographyDictionary, typographyVariationsDictionary, typographyMonoDictionary, typographyTitleDictionary, typographyInfoDictionary, typographyReadDictionary, typographySmallerDictionary, typographyTooltipDictionary, };
@@ -1,6 +1,5 @@
1
1
  /* MdsAccordionTimerItem custom elements */
2
-
3
- import type { Components, JSX } from "../types/components";
2
+ export { MdsAccordionTimerItem as MdsAccordionTimerItem } from '../types/components/mds-accordion-timer-item/mds-accordion-timer-item';
4
3
 
5
4
  /**
6
5
  * Used to manually set the base path where assets can be found.
@@ -20,7 +19,4 @@ export interface SetPlatformOptions {
20
19
  rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
21
20
  }
22
21
  export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
23
-
24
- export type { Components, JSX };
25
-
26
22
  export * from '../types/components';
@@ -1 +1,2 @@
1
1
  export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
2
+ export { MdsAccordionTimerItem, defineCustomElement as defineCustomElementMdsAccordionTimerItem } from './mds-accordion-timer-item.js';
@@ -1,7 +1,7 @@
1
1
  import { p as promiseResolve, b as bootstrapLazy } from './index-e1bd79fc.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Esm v2.16.1 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Esm v2.17.0 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchEsm = () => {
7
7
  return promiseResolve();
@@ -1,7 +1,7 @@
1
1
  import { p as promiseResolve, b as bootstrapLazy } from './index-e1bd79fc.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Browser v2.16.1 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Browser v2.17.0 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchBrowser = () => {
7
7
  const importMeta = import.meta.url;
@@ -114,7 +114,7 @@ DOMTokenList
114
114
 
115
115
  var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
116
116
  var start = function() {
117
- var url = new URL('./p-0a14f155.system.js', new URL(resourcesUrl, window.location.origin));
117
+ var url = new URL('./p-4a0d1c42.system.js', new URL(resourcesUrl, window.location.origin));
118
118
  System.import(url.href);
119
119
  };
120
120
 
package/dist/stats.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2022-06-22T09:11:14",
2
+ "timestamp": "2022-06-27T08:17:30",
3
3
  "compiler": {
4
4
  "name": "node",
5
5
  "version": "18.3.0"
@@ -73,18 +73,18 @@
73
73
  "./dist/mds-accordion-timer-item/index.esm.js",
74
74
  "./dist/mds-accordion-timer-item/mds-accordion-timer-item.esm.js",
75
75
  "./dist/mds-accordion-timer-item/mds-accordion-timer-item.js",
76
- "./dist/mds-accordion-timer-item/p-0a14f155.system.js",
77
76
  "./dist/mds-accordion-timer-item/p-13669e01.js",
78
77
  "./dist/mds-accordion-timer-item/p-43a565f8.system.entry.js",
78
+ "./dist/mds-accordion-timer-item/p-4a0d1c42.system.js",
79
79
  "./dist/mds-accordion-timer-item/p-4aec1fdb.system.js",
80
80
  "./dist/mds-accordion-timer-item/p-50ea2036.system.js",
81
81
  "./dist/mds-accordion-timer-item/p-799f5ad2.entry.js",
82
82
  "./www/build/index.esm.js",
83
83
  "./www/build/mds-accordion-timer-item.esm.js",
84
84
  "./www/build/mds-accordion-timer-item.js",
85
- "./www/build/p-0a14f155.system.js",
86
85
  "./www/build/p-13669e01.js",
87
86
  "./www/build/p-43a565f8.system.entry.js",
87
+ "./www/build/p-4a0d1c42.system.js",
88
88
  "./www/build/p-4aec1fdb.system.js",
89
89
  "./www/build/p-50ea2036.system.js",
90
90
  "./www/build/p-799f5ad2.entry.js"
@@ -276,10 +276,10 @@
276
276
  "optional": true,
277
277
  "defaultValue": "'h5'",
278
278
  "complexType": {
279
- "original": "TypographyPrimaryType",
279
+ "original": "TypographyTitleType",
280
280
  "resolved": "\"action\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
281
281
  "references": {
282
- "TypographyPrimaryType": {
282
+ "TypographyTitleType": {
283
283
  "location": "import",
284
284
  "path": "../../types/typography"
285
285
  }
@@ -400,10 +400,10 @@
400
400
  "optional": true,
401
401
  "defaultValue": "'h5'",
402
402
  "complexType": {
403
- "original": "TypographyPrimaryType",
403
+ "original": "TypographyTitleType",
404
404
  "resolved": "\"action\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
405
405
  "references": {
406
- "TypographyPrimaryType": {
406
+ "TypographyTitleType": {
407
407
  "location": "import",
408
408
  "path": "../../types/typography"
409
409
  }
@@ -1,11 +1,11 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import { TypographyPrimaryType } from '../../types/typography';
2
+ import { TypographyTitleType } from '../../types/typography';
3
3
  export declare class MdsAccordionTimerItem {
4
4
  isActive: boolean;
5
5
  /**
6
6
  * Specifies the typography of the element
7
7
  */
8
- readonly typography?: TypographyPrimaryType;
8
+ readonly typography?: TypographyTitleType;
9
9
  /**
10
10
  * Specifies if the accordion item is opened or not
11
11
  */
@@ -5,7 +5,7 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
- import { TypographyPrimaryType } from "./types/typography";
8
+ import { TypographyTitleType } from "./types/typography";
9
9
  export namespace Components {
10
10
  interface MdsAccordionTimerItem {
11
11
  /**
@@ -23,7 +23,7 @@ export namespace Components {
23
23
  /**
24
24
  * Specifies the typography of the element
25
25
  */
26
- "typography"?: TypographyPrimaryType;
26
+ "typography"?: TypographyTitleType;
27
27
  /**
28
28
  * Used automatically by MdsAccordionTimer wrapper to handle it's siblings
29
29
  */
@@ -74,7 +74,7 @@ declare namespace LocalJSX {
74
74
  /**
75
75
  * Specifies the typography of the element
76
76
  */
77
- "typography"?: TypographyPrimaryType;
77
+ "typography"?: TypographyTitleType;
78
78
  /**
79
79
  * Used automatically by MdsAccordionTimer wrapper to handle it's siblings
80
80
  */
@@ -1,7 +1,9 @@
1
1
  declare const typographyDictionary: string[];
2
+ declare const typographyVariationsDictionary: string[];
2
3
  declare const typographyMonoDictionary: string[];
3
- declare const typographyPrimaryDictionary: string[];
4
- declare const typographySecondaryDictionary: string[];
4
+ declare const typographyTitleDictionary: string[];
5
+ declare const typographyInfoDictionary: string[];
6
+ declare const typographyReadDictionary: string[];
5
7
  declare const typographySmallerDictionary: string[];
6
8
  declare const typographyTooltipDictionary: string[];
7
- export { typographyDictionary, typographyMonoDictionary, typographyPrimaryDictionary, typographySecondaryDictionary, typographySmallerDictionary, typographyTooltipDictionary, };
9
+ export { typographyDictionary, typographyVariationsDictionary, typographyMonoDictionary, typographyTitleDictionary, typographyInfoDictionary, typographyReadDictionary, typographySmallerDictionary, typographyTooltipDictionary, };
@@ -1,6 +1,8 @@
1
1
  export declare type TypographyType = 'action' | 'caption' | 'code' | 'detail' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'hack' | 'label' | 'option' | 'paragraph' | 'tip';
2
- export declare type TypographyPrimaryType = 'action' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
3
- export declare type TypographySecondaryType = 'caption' | 'detail' | 'label' | 'option' | 'paragraph' | 'tip';
2
+ export declare type TypographyVariants = 'title' | 'info' | 'read' | 'mono';
3
+ export declare type TypographyTitleType = 'action' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
4
+ export declare type TypographyInfoType = 'caption' | 'detail' | 'label' | 'option' | 'paragraph' | 'tip';
5
+ export declare type TypographyReadType = 'caption' | 'detail' | 'paragraph';
4
6
  export declare type TypographySmallerType = 'tip' | 'option';
5
7
  export declare type TypographyMonoType = 'code' | 'hack';
6
8
  export declare type TypographyTooltipType = 'caption' | 'detail' | 'tip';
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@maggioli-design-system/mds-accordion-timer-item",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "mds-accordion-timer-item is a web-component from Maggioli Design System Magma, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
7
7
  "es2015": "dist/esm/index.mjs",
8
8
  "es2017": "dist/esm/index.mjs",
9
- "types": "dist/types/components.d.ts", "collection": "dist/collection/collection-manifest.json",
9
+ "types": "dist/types/components.d.ts",
10
+ "collection": "dist/collection/collection-manifest.json",
10
11
  "collection:main": "dist/collection/index.js",
11
12
  "unpkg": "dist/mds-accordion-timer-item/mds-accordion-timer-item.esm.js",
12
13
  "files": [
@@ -22,10 +23,10 @@
22
23
  "test": "stencil test --spec --e2e"
23
24
  },
24
25
  "dependencies": {
25
- "@maggioli-design-system/mds-progress": "^1.3.1",
26
- "@maggioli-design-system/mds-text": "^1.4.0",
27
- "@maggioli-design-system/styles": "^7.0.0",
28
- "@stencil/core": "^2.16.2",
26
+ "@maggioli-design-system/mds-progress": "^2.0.1",
27
+ "@maggioli-design-system/mds-text": "^2.0.2",
28
+ "@maggioli-design-system/styles": "^8.0.0",
29
+ "@stencil/core": "^2.17.0",
29
30
  "clsx": "^1.1.1"
30
31
  },
31
32
  "license": "MIT",
@@ -21,5 +21,5 @@ accordion-timer-item-publish:
21
21
  # INSTALL TEST
22
22
  accordion-timer-item-install-test:
23
23
  extends: [.base-stencil-install-test, .base-accordion-timer-item]
24
- dependencies: [accordion-timer-item-publish, accordion-timer-item-isolate]
24
+ needs: [accordion-timer-item-publish]
25
25
 
@@ -1,6 +1,6 @@
1
1
  import { Component, Host, h, Prop, State, Event, EventEmitter, Watch } from '@stencil/core'
2
2
  import clsx from 'clsx'
3
- import { TypographyPrimaryType } from '../../types/typography'
3
+ import { TypographyTitleType } from '../../types/typography'
4
4
 
5
5
  @Component({
6
6
  tag: 'mds-accordion-timer-item',
@@ -14,7 +14,7 @@ export class MdsAccordionTimerItem {
14
14
  /**
15
15
  * Specifies the typography of the element
16
16
  */
17
- @Prop() readonly typography?: TypographyPrimaryType = 'h5'
17
+ @Prop() readonly typography?: TypographyTitleType = 'h5'
18
18
 
19
19
  /**
20
20
  * Specifies if the accordion item is opened or not
@@ -1,4 +1,4 @@
1
- import { typographyPrimaryDictionary } from '@dictionary/typography'
1
+ import { typographyReadDictionary } from '@dictionary/typography'
2
2
  import { h } from '@stencil/core'
3
3
  import { lokiDisabled } from '@test/loki-disabled'
4
4
 
@@ -21,7 +21,7 @@ export default {
21
21
  typography: {
22
22
  type: { name: 'string' },
23
23
  description: 'Specifies the typography of the element',
24
- options: typographyPrimaryDictionary,
24
+ options: typographyReadDictionary,
25
25
  control: { type: 'select' },
26
26
  },
27
27
  },
@@ -5,7 +5,7 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
8
- import { TypographyPrimaryType } from "./types/typography";
8
+ import { TypographyTitleType } from "./types/typography";
9
9
  export namespace Components {
10
10
  interface MdsAccordionTimerItem {
11
11
  /**
@@ -23,7 +23,7 @@ export namespace Components {
23
23
  /**
24
24
  * Specifies the typography of the element
25
25
  */
26
- "typography"?: TypographyPrimaryType;
26
+ "typography"?: TypographyTitleType;
27
27
  /**
28
28
  * Used automatically by MdsAccordionTimer wrapper to handle it's siblings
29
29
  */
@@ -74,7 +74,7 @@ declare namespace LocalJSX {
74
74
  /**
75
75
  * Specifies the typography of the element
76
76
  */
77
- "typography"?: TypographyPrimaryType;
77
+ "typography"?: TypographyTitleType;
78
78
  /**
79
79
  * Used automatically by MdsAccordionTimer wrapper to handle it's siblings
80
80
  */
@@ -16,12 +16,19 @@ const typographyDictionary = [
16
16
  'tip',
17
17
  ]
18
18
 
19
+ const typographyVariationsDictionary = [
20
+ 'title',
21
+ 'info',
22
+ 'read',
23
+ 'mono',
24
+ ]
25
+
19
26
  const typographyMonoDictionary = [
20
27
  'code',
21
28
  'hack',
22
29
  ]
23
30
 
24
- const typographyPrimaryDictionary = [
31
+ const typographyTitleDictionary = [
25
32
  'action',
26
33
  'h1',
27
34
  'h2',
@@ -31,7 +38,7 @@ const typographyPrimaryDictionary = [
31
38
  'h6',
32
39
  ]
33
40
 
34
- const typographySecondaryDictionary = [
41
+ const typographyInfoDictionary = [
35
42
  'caption',
36
43
  'detail',
37
44
  'label',
@@ -40,6 +47,12 @@ const typographySecondaryDictionary = [
40
47
  'tip',
41
48
  ]
42
49
 
50
+ const typographyReadDictionary = [
51
+ 'caption',
52
+ 'detail',
53
+ 'paragraph',
54
+ ]
55
+
43
56
  const typographySmallerDictionary = [
44
57
  'option',
45
58
  'tip',
@@ -53,9 +66,11 @@ const typographyTooltipDictionary = [
53
66
 
54
67
  export {
55
68
  typographyDictionary,
69
+ typographyVariationsDictionary,
56
70
  typographyMonoDictionary,
57
- typographyPrimaryDictionary,
58
- typographySecondaryDictionary,
71
+ typographyTitleDictionary,
72
+ typographyInfoDictionary,
73
+ typographyReadDictionary,
59
74
  typographySmallerDictionary,
60
75
  typographyTooltipDictionary,
61
76
  }
@@ -15,7 +15,13 @@ export type TypographyType =
15
15
  | 'paragraph'
16
16
  | 'tip'
17
17
 
18
- export type TypographyPrimaryType =
18
+ export type TypographyVariants =
19
+ | 'title'
20
+ | 'info'
21
+ | 'read'
22
+ | 'mono'
23
+
24
+ export type TypographyTitleType =
19
25
  | 'action'
20
26
  | 'h1'
21
27
  | 'h2'
@@ -24,7 +30,7 @@ export type TypographyPrimaryType =
24
30
  | 'h5'
25
31
  | 'h6'
26
32
 
27
- export type TypographySecondaryType =
33
+ export type TypographyInfoType =
28
34
  | 'caption'
29
35
  | 'detail'
30
36
  | 'label'
@@ -32,6 +38,11 @@ export type TypographySecondaryType =
32
38
  | 'paragraph'
33
39
  | 'tip'
34
40
 
41
+ export type TypographyReadType =
42
+ | 'caption'
43
+ | 'detail'
44
+ | 'paragraph'
45
+
35
46
  export type TypographySmallerType =
36
47
  | 'tip'
37
48
  | 'option'
@@ -114,7 +114,7 @@ DOMTokenList
114
114
 
115
115
  var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
116
116
  var start = function() {
117
- var url = new URL('./p-0a14f155.system.js', new URL(resourcesUrl, window.location.origin));
117
+ var url = new URL('./p-4a0d1c42.system.js', new URL(resourcesUrl, window.location.origin));
118
118
  System.import(url.href);
119
119
  };
120
120