@maggioli-design-system/mds-accordion-timer 1.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.
Files changed (121) hide show
  1. package/dist/cjs/index-dc0bb58e.js +1017 -0
  2. package/dist/cjs/index.cjs.js +2 -0
  3. package/dist/cjs/loader.cjs.js +21 -0
  4. package/dist/cjs/mds-accordion-timer.cjs.entry.js +129 -0
  5. package/dist/cjs/mds-accordion-timer.cjs.js +19 -0
  6. package/dist/collection/collection-manifest.json +12 -0
  7. package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.css +3 -0
  8. package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +184 -0
  9. package/dist/collection/components/mds-accordion-timer/test/mds-accordion-timer.stories.js +32 -0
  10. package/dist/collection/dictionary/autocomplete.js +59 -0
  11. package/dist/collection/dictionary/button.js +26 -0
  12. package/dist/collection/dictionary/color.js +19 -0
  13. package/dist/collection/dictionary/icon.js +3 -0
  14. package/dist/collection/dictionary/input-text-type.js +13 -0
  15. package/dist/collection/dictionary/loading.js +5 -0
  16. package/dist/collection/dictionary/typography.js +37 -0
  17. package/dist/collection/dictionary/variant.js +64 -0
  18. package/dist/collection/fixtures/cities.js +110 -0
  19. package/dist/collection/interface/input-value.js +1 -0
  20. package/dist/collection/types/autocomplete.js +1 -0
  21. package/dist/collection/types/button.js +1 -0
  22. package/dist/collection/types/form-rel.js +1 -0
  23. package/dist/collection/types/input-text-type.js +1 -0
  24. package/dist/collection/types/input-value-type.js +1 -0
  25. package/dist/collection/types/loading.js +1 -0
  26. package/dist/collection/types/typography.js +1 -0
  27. package/dist/collection/types/variant.js +1 -0
  28. package/dist/custom-elements/index.d.ts +45 -0
  29. package/dist/custom-elements/index.js +141 -0
  30. package/dist/esm/index-468ab090.js +989 -0
  31. package/dist/esm/index.js +1 -0
  32. package/dist/esm/loader.js +17 -0
  33. package/dist/esm/mds-accordion-timer.entry.js +125 -0
  34. package/dist/esm/mds-accordion-timer.js +17 -0
  35. package/dist/esm/polyfills/core-js.js +11 -0
  36. package/dist/esm/polyfills/css-shim.js +1 -0
  37. package/dist/esm/polyfills/dom.js +79 -0
  38. package/dist/esm/polyfills/es5-html-element.js +1 -0
  39. package/dist/esm/polyfills/index.js +34 -0
  40. package/dist/esm/polyfills/system.js +6 -0
  41. package/dist/esm-es5/index-468ab090.js +1 -0
  42. package/dist/esm-es5/index.js +0 -0
  43. package/dist/esm-es5/loader.js +1 -0
  44. package/dist/esm-es5/mds-accordion-timer.entry.js +1 -0
  45. package/dist/esm-es5/mds-accordion-timer.js +1 -0
  46. package/dist/index.cjs.js +1 -0
  47. package/dist/index.js +1 -0
  48. package/dist/mds-accordion-timer/index.esm.js +0 -0
  49. package/dist/mds-accordion-timer/mds-accordion-timer.esm.js +1 -0
  50. package/dist/mds-accordion-timer/mds-accordion-timer.js +130 -0
  51. package/dist/mds-accordion-timer/p-104355eb.system.entry.js +1 -0
  52. package/dist/mds-accordion-timer/p-2c75936b.entry.js +1 -0
  53. package/dist/mds-accordion-timer/p-50ea2036.system.js +1 -0
  54. package/dist/mds-accordion-timer/p-74539cca.system.js +1 -0
  55. package/dist/mds-accordion-timer/p-a652c8b3.system.js +1 -0
  56. package/dist/mds-accordion-timer/p-ac3fdd27.js +1 -0
  57. package/dist/stats.json +471 -0
  58. package/dist/types/components/mds-accordion-timer/mds-accordion-timer.d.ts +37 -0
  59. package/dist/types/components.d.ts +49 -0
  60. package/dist/types/dictionary/autocomplete.d.ts +2 -0
  61. package/dist/types/dictionary/button.d.ts +5 -0
  62. package/dist/types/dictionary/color.d.ts +3 -0
  63. package/dist/types/dictionary/icon.d.ts +2 -0
  64. package/dist/types/dictionary/input-text-type.d.ts +2 -0
  65. package/dist/types/dictionary/loading.d.ts +2 -0
  66. package/dist/types/dictionary/typography.d.ts +5 -0
  67. package/dist/types/dictionary/variant.d.ts +9 -0
  68. package/dist/types/fixtures/cities.d.ts +2 -0
  69. package/dist/types/interface/input-value.d.ts +4 -0
  70. package/dist/types/stencil-public-runtime.d.ts +1563 -0
  71. package/dist/types/types/autocomplete.d.ts +2 -0
  72. package/dist/types/types/button.d.ts +4 -0
  73. package/dist/types/types/form-rel.d.ts +1 -0
  74. package/dist/types/types/input-text-type.d.ts +1 -0
  75. package/dist/types/types/input-value-type.d.ts +1 -0
  76. package/dist/types/types/loading.d.ts +1 -0
  77. package/dist/types/types/typography.d.ts +4 -0
  78. package/dist/types/types/variant.d.ts +10 -0
  79. package/loader/cdn.js +3 -0
  80. package/loader/index.cjs.js +3 -0
  81. package/loader/index.d.ts +12 -0
  82. package/loader/index.es2017.js +3 -0
  83. package/loader/index.js +4 -0
  84. package/loader/package.json +10 -0
  85. package/package.json +45 -0
  86. package/readme.md +24 -0
  87. package/src/components/mds-accordion-timer/mds-accordion-timer.css +3 -0
  88. package/src/components/mds-accordion-timer/mds-accordion-timer.tsx +159 -0
  89. package/src/components/mds-accordion-timer/readme.md +24 -0
  90. package/src/components/mds-accordion-timer/test/mds-accordion-timer.e2e.ts +11 -0
  91. package/src/components/mds-accordion-timer/test/mds-accordion-timer.spec.tsx +18 -0
  92. package/src/components/mds-accordion-timer/test/mds-accordion-timer.stories.js +32 -0
  93. package/src/components.d.ts +49 -0
  94. package/src/dictionary/autocomplete.ts +62 -0
  95. package/src/dictionary/button.ts +35 -0
  96. package/src/dictionary/color.ts +24 -0
  97. package/src/dictionary/icon.ts +5 -0
  98. package/src/dictionary/input-text-type.ts +17 -0
  99. package/src/dictionary/loading.ts +9 -0
  100. package/src/dictionary/typography.ts +46 -0
  101. package/src/dictionary/variant.ts +81 -0
  102. package/src/fixtures/cities.ts +116 -0
  103. package/src/interface/input-value.ts +5 -0
  104. package/src/types/autocomplete.ts +69 -0
  105. package/src/types/button.ts +24 -0
  106. package/src/types/form-rel.ts +11 -0
  107. package/src/types/input-text-type.ts +11 -0
  108. package/src/types/input-value-type.ts +5 -0
  109. package/src/types/loading.ts +3 -0
  110. package/src/types/typography.ts +35 -0
  111. package/src/types/variant.ts +72 -0
  112. package/www/build/index.esm.js +0 -0
  113. package/www/build/mds-accordion-timer.esm.js +1 -0
  114. package/www/build/mds-accordion-timer.js +130 -0
  115. package/www/build/p-104355eb.system.entry.js +1 -0
  116. package/www/build/p-2c75936b.entry.js +1 -0
  117. package/www/build/p-50ea2036.system.js +1 -0
  118. package/www/build/p-74539cca.system.js +1 -0
  119. package/www/build/p-a652c8b3.system.js +1 -0
  120. package/www/build/p-ac3fdd27.js +1 -0
  121. package/www/host.config.json +15 -0
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-dc0bb58e.js');
6
+
7
+ /*
8
+ Stencil Client Patch Esm v2.10.0 | MIT Licensed | https://stenciljs.com
9
+ */
10
+ const patchEsm = () => {
11
+ return index.promiseResolve();
12
+ };
13
+
14
+ const defineCustomElements = (win, options) => {
15
+ if (typeof window === 'undefined') return Promise.resolve();
16
+ return patchEsm().then(() => {
17
+ return index.bootstrapLazy([["mds-accordion-timer.cjs",[[1,"mds-accordion-timer",{"duration":[2],"time":[32]},[[0,"clickActive","onClickActive"],[0,"mouseEnterActive","onMouseEnterActive"],[0,"mouseLeaveActive","onMouseLeaveActive"]]]]]], options);
18
+ });
19
+ };
20
+
21
+ exports.defineCustomElements = defineCustomElements;
@@ -0,0 +1,129 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-dc0bb58e.js');
6
+
7
+ const mdsAccordionTimerCss = ":host{display:block}";
8
+
9
+ let MdsAccordionTimer = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.itemActivated = index.createEvent(this, "itemActivated", 7);
13
+ this.time = 0;
14
+ /**
15
+ * Sets the duration of the single accordion item
16
+ */
17
+ this.duration = 5000;
18
+ this.clearIntervals = () => {
19
+ window.clearInterval(this.timer);
20
+ window.clearInterval(this.timeChecker);
21
+ this.timer = null;
22
+ this.timeChecker = null;
23
+ };
24
+ this.progress = () => {
25
+ return Math.abs(this.remainingTime() / this.duration - 1);
26
+ };
27
+ this.addTimeListener = () => {
28
+ this.timeChecker = window.setInterval(() => {
29
+ const progress = this.progress();
30
+ if (this.activeItem !== undefined) {
31
+ this.activeItem.progress = progress;
32
+ }
33
+ if (progress === 1) {
34
+ this.activeItem.progress = 0;
35
+ this.startNext();
36
+ }
37
+ }, 100);
38
+ };
39
+ this.beginningTime = () => {
40
+ this.timeStarted = (new Date()).getTime();
41
+ return this.timeStarted;
42
+ };
43
+ this.remainingTime = () => {
44
+ const remainingTime = this.activeItemDurationTime - ((new Date()).getTime() - this.timeStarted);
45
+ return remainingTime >= 0 ? remainingTime : 0;
46
+ };
47
+ this.setActiveItem = (uuid) => {
48
+ this.children.forEach((item, key) => {
49
+ if (key === uuid) {
50
+ item.active = true;
51
+ this.activeItem = item;
52
+ this.itemActivated.emit(uuid);
53
+ }
54
+ else {
55
+ item.active = false;
56
+ }
57
+ });
58
+ };
59
+ this.startNext = () => {
60
+ const nextUuid = this.activeItem.uuid + 1 > this.children.length - 1 ? 0 : this.activeItem.uuid + 1;
61
+ this.setActiveItem(nextUuid);
62
+ this.startTimer();
63
+ };
64
+ this.startTimer = () => {
65
+ this.clearIntervals();
66
+ this.time = this.beginningTime();
67
+ this.activeItemDurationTime = this.duration;
68
+ this.addTimeListener();
69
+ };
70
+ this.playTimer = () => {
71
+ this.beginningTime();
72
+ this.addTimeListener();
73
+ };
74
+ this.pauseTimer = () => {
75
+ this.clearIntervals();
76
+ this.activeItemDurationTime = this.remainingTime();
77
+ };
78
+ this.stopTimer = () => {
79
+ this.clearIntervals();
80
+ this.time = null;
81
+ };
82
+ }
83
+ componentDidLoad() {
84
+ this.children = this.element.querySelectorAll('mds-accordion-timer-item');
85
+ this.children.forEach((item, key) => {
86
+ item.uuid = key;
87
+ if (item.active) {
88
+ this.activeItem = item;
89
+ }
90
+ });
91
+ }
92
+ connectedCallback() {
93
+ this.startTimer();
94
+ }
95
+ disconnectedCallback() {
96
+ this.stopTimer();
97
+ this.clearIntervals();
98
+ }
99
+ onClickActive(event) {
100
+ if (event.detail === this.activeItem.description) {
101
+ return;
102
+ }
103
+ let selectedUuid;
104
+ this.children.forEach(item => {
105
+ item.progress = 0;
106
+ if (item.description === event.detail) {
107
+ selectedUuid = item.uuid;
108
+ }
109
+ });
110
+ this.setActiveItem(selectedUuid);
111
+ this.startTimer();
112
+ this.pauseTimer();
113
+ }
114
+ onMouseEnterActive() {
115
+ this.pauseTimer();
116
+ }
117
+ onMouseLeaveActive() {
118
+ if (this.timeChecker === null) {
119
+ this.playTimer();
120
+ }
121
+ }
122
+ render() {
123
+ return (index.h(index.Host, null, index.h("slot", null)));
124
+ }
125
+ get element() { return index.getElement(this); }
126
+ };
127
+ MdsAccordionTimer.style = mdsAccordionTimerCss;
128
+
129
+ exports.mds_accordion_timer = MdsAccordionTimer;
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-dc0bb58e.js');
4
+
5
+ /*
6
+ Stencil Client Patch Browser v2.10.0 | MIT Licensed | https://stenciljs.com
7
+ */
8
+ const patchBrowser = () => {
9
+ const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mds-accordion-timer.cjs.js', document.baseURI).href));
10
+ const opts = {};
11
+ if (importMeta !== '') {
12
+ opts.resourcesUrl = new URL('.', importMeta).href;
13
+ }
14
+ return index.promiseResolve(opts);
15
+ };
16
+
17
+ patchBrowser().then(options => {
18
+ return index.bootstrapLazy([["mds-accordion-timer.cjs",[[1,"mds-accordion-timer",{"duration":[2],"time":[32]},[[0,"clickActive","onClickActive"],[0,"mouseEnterActive","onMouseEnterActive"],[0,"mouseLeaveActive","onMouseLeaveActive"]]]]]], options);
19
+ });
@@ -0,0 +1,12 @@
1
+ {
2
+ "entries": [
3
+ "./components/mds-accordion-timer/mds-accordion-timer.js"
4
+ ],
5
+ "compiler": {
6
+ "name": "@stencil/core",
7
+ "version": "2.10.0",
8
+ "typescriptVersion": "4.3.5"
9
+ },
10
+ "collections": [],
11
+ "bundles": []
12
+ }
@@ -0,0 +1,3 @@
1
+ :host {
2
+ display: block;
3
+ }
@@ -0,0 +1,184 @@
1
+ import { Component, Host, Element, Event, h, Prop, Listen, State } from '@stencil/core';
2
+ export class MdsAccordionTimer {
3
+ constructor() {
4
+ this.time = 0;
5
+ /**
6
+ * Sets the duration of the single accordion item
7
+ */
8
+ this.duration = 5000;
9
+ this.clearIntervals = () => {
10
+ window.clearInterval(this.timer);
11
+ window.clearInterval(this.timeChecker);
12
+ this.timer = null;
13
+ this.timeChecker = null;
14
+ };
15
+ this.progress = () => {
16
+ return Math.abs(this.remainingTime() / this.duration - 1);
17
+ };
18
+ this.addTimeListener = () => {
19
+ this.timeChecker = window.setInterval(() => {
20
+ const progress = this.progress();
21
+ if (this.activeItem !== undefined) {
22
+ this.activeItem.progress = progress;
23
+ }
24
+ if (progress === 1) {
25
+ this.activeItem.progress = 0;
26
+ this.startNext();
27
+ }
28
+ }, 100);
29
+ };
30
+ this.beginningTime = () => {
31
+ this.timeStarted = (new Date()).getTime();
32
+ return this.timeStarted;
33
+ };
34
+ this.remainingTime = () => {
35
+ const remainingTime = this.activeItemDurationTime - ((new Date()).getTime() - this.timeStarted);
36
+ return remainingTime >= 0 ? remainingTime : 0;
37
+ };
38
+ this.setActiveItem = (uuid) => {
39
+ this.children.forEach((item, key) => {
40
+ if (key === uuid) {
41
+ item.active = true;
42
+ this.activeItem = item;
43
+ this.itemActivated.emit(uuid);
44
+ }
45
+ else {
46
+ item.active = false;
47
+ }
48
+ });
49
+ };
50
+ this.startNext = () => {
51
+ const nextUuid = this.activeItem.uuid + 1 > this.children.length - 1 ? 0 : this.activeItem.uuid + 1;
52
+ this.setActiveItem(nextUuid);
53
+ this.startTimer();
54
+ };
55
+ this.startTimer = () => {
56
+ this.clearIntervals();
57
+ this.time = this.beginningTime();
58
+ this.activeItemDurationTime = this.duration;
59
+ this.addTimeListener();
60
+ };
61
+ this.playTimer = () => {
62
+ this.beginningTime();
63
+ this.addTimeListener();
64
+ };
65
+ this.pauseTimer = () => {
66
+ this.clearIntervals();
67
+ this.activeItemDurationTime = this.remainingTime();
68
+ };
69
+ this.stopTimer = () => {
70
+ this.clearIntervals();
71
+ this.time = null;
72
+ };
73
+ }
74
+ componentDidLoad() {
75
+ this.children = this.element.querySelectorAll('mds-accordion-timer-item');
76
+ this.children.forEach((item, key) => {
77
+ item.uuid = key;
78
+ if (item.active) {
79
+ this.activeItem = item;
80
+ }
81
+ });
82
+ }
83
+ connectedCallback() {
84
+ this.startTimer();
85
+ }
86
+ disconnectedCallback() {
87
+ this.stopTimer();
88
+ this.clearIntervals();
89
+ }
90
+ onClickActive(event) {
91
+ if (event.detail === this.activeItem.description) {
92
+ return;
93
+ }
94
+ let selectedUuid;
95
+ this.children.forEach(item => {
96
+ item.progress = 0;
97
+ if (item.description === event.detail) {
98
+ selectedUuid = item.uuid;
99
+ }
100
+ });
101
+ this.setActiveItem(selectedUuid);
102
+ this.startTimer();
103
+ this.pauseTimer();
104
+ }
105
+ onMouseEnterActive() {
106
+ this.pauseTimer();
107
+ }
108
+ onMouseLeaveActive() {
109
+ if (this.timeChecker === null) {
110
+ this.playTimer();
111
+ }
112
+ }
113
+ render() {
114
+ return (h(Host, null,
115
+ h("slot", null)));
116
+ }
117
+ static get is() { return "mds-accordion-timer"; }
118
+ static get encapsulation() { return "shadow"; }
119
+ static get originalStyleUrls() { return {
120
+ "$": ["mds-accordion-timer.css"]
121
+ }; }
122
+ static get styleUrls() { return {
123
+ "$": ["mds-accordion-timer.css"]
124
+ }; }
125
+ static get properties() { return {
126
+ "duration": {
127
+ "type": "number",
128
+ "mutable": false,
129
+ "complexType": {
130
+ "original": "number",
131
+ "resolved": "number",
132
+ "references": {}
133
+ },
134
+ "required": false,
135
+ "optional": true,
136
+ "docs": {
137
+ "tags": [],
138
+ "text": "Sets the duration of the single accordion item"
139
+ },
140
+ "attribute": "duration",
141
+ "reflect": false,
142
+ "defaultValue": "5000"
143
+ }
144
+ }; }
145
+ static get states() { return {
146
+ "time": {}
147
+ }; }
148
+ static get events() { return [{
149
+ "method": "itemActivated",
150
+ "name": "itemActivated",
151
+ "bubbles": true,
152
+ "cancelable": true,
153
+ "composed": true,
154
+ "docs": {
155
+ "tags": [],
156
+ "text": "Emits when the accordion changes it's item"
157
+ },
158
+ "complexType": {
159
+ "original": "number",
160
+ "resolved": "number",
161
+ "references": {}
162
+ }
163
+ }]; }
164
+ static get elementRef() { return "element"; }
165
+ static get listeners() { return [{
166
+ "name": "clickActive",
167
+ "method": "onClickActive",
168
+ "target": undefined,
169
+ "capture": false,
170
+ "passive": false
171
+ }, {
172
+ "name": "mouseEnterActive",
173
+ "method": "onMouseEnterActive",
174
+ "target": undefined,
175
+ "capture": false,
176
+ "passive": false
177
+ }, {
178
+ "name": "mouseLeaveActive",
179
+ "method": "onMouseLeaveActive",
180
+ "target": undefined,
181
+ "capture": false,
182
+ "passive": false
183
+ }]; }
184
+ }
@@ -0,0 +1,32 @@
1
+ import React from 'react'
2
+ import MdsAccordionTimer from '@component/mds-accordion-timer/mds-accordion-timer'
3
+ import faker from 'faker'
4
+
5
+ export default {
6
+ title: 'UI / Accordion Timer',
7
+ component: MdsAccordionTimer,
8
+ argTypes: {
9
+ duration: {
10
+ type: { name: 'number', required: false },
11
+ description: 'Sets the duration of the single accordion item',
12
+ },
13
+ },
14
+ }
15
+
16
+ const Template = args =>
17
+ <div>
18
+ <mds-accordion-timer {...args}>
19
+ <mds-accordion-timer-item active description={ faker.lorem.sentence() }><mds-text>{ faker.lorem.paragraphs(2) }</mds-text></mds-accordion-timer-item>
20
+ <mds-accordion-timer-item description={ faker.lorem.sentence() }><mds-text>{ faker.lorem.paragraphs(2) }</mds-text></mds-accordion-timer-item>
21
+ <mds-accordion-timer-item description={ faker.lorem.sentence() }><mds-text>{ faker.lorem.paragraphs(2) }</mds-text></mds-accordion-timer-item>
22
+ <mds-accordion-timer-item description={ faker.lorem.sentence() }><mds-text>{ faker.lorem.paragraphs(2) }</mds-text></mds-accordion-timer-item>
23
+ <mds-accordion-timer-item description={ faker.lorem.sentence() }><mds-text>{ faker.lorem.paragraphs(2) }</mds-text></mds-accordion-timer-item>
24
+ </mds-accordion-timer>
25
+ </div>
26
+
27
+ export const Default = Template.bind({})
28
+
29
+ export const Duration = Template.bind({})
30
+ Duration.args = {
31
+ duration: 1000,
32
+ }
@@ -0,0 +1,59 @@
1
+ const autoCompleteDictionary = [
2
+ 'additional-name',
3
+ 'address',
4
+ 'address-level1',
5
+ 'address-level2',
6
+ 'address-level3',
7
+ 'address-level4',
8
+ 'address-line1',
9
+ 'address-line2',
10
+ 'address-line3',
11
+ 'bday',
12
+ 'bday-day',
13
+ 'bday-month',
14
+ 'bday-year',
15
+ 'cc-additional-name',
16
+ 'cc-csc',
17
+ 'cc-exp',
18
+ 'cc-exp-month',
19
+ 'cc-exp-year',
20
+ 'cc-family-name',
21
+ 'cc-family-name',
22
+ 'cc-given-name',
23
+ 'cc-name',
24
+ 'cc-number',
25
+ 'cc-type',
26
+ 'country',
27
+ 'country-name',
28
+ 'current-password',
29
+ 'email',
30
+ 'family-name',
31
+ 'given-name',
32
+ 'honorific-prefix',
33
+ 'honorific-suffix',
34
+ 'impp',
35
+ 'language',
36
+ 'name',
37
+ 'new-password',
38
+ 'nickname',
39
+ 'off',
40
+ 'on',
41
+ 'one-time-code',
42
+ 'organization',
43
+ 'organization-title',
44
+ 'photo',
45
+ 'postal-code',
46
+ 'sex',
47
+ 'street-address',
48
+ 'tel',
49
+ 'tel-area-code',
50
+ 'tel-country-code',
51
+ 'tel-extension',
52
+ 'tel-local',
53
+ 'tel-national',
54
+ 'transaction-amount',
55
+ 'transaction-currency',
56
+ 'url',
57
+ 'username',
58
+ ];
59
+ export { autoCompleteDictionary, };
@@ -0,0 +1,26 @@
1
+ const buttonVariantDictionary = [
2
+ 'dark',
3
+ 'error',
4
+ 'info',
5
+ 'light',
6
+ 'primary',
7
+ 'success',
8
+ 'warning',
9
+ ];
10
+ const buttonToneVariantDictionary = [
11
+ 'strong',
12
+ 'weak',
13
+ 'ghost',
14
+ 'quiet',
15
+ ];
16
+ const buttonSizeDictionary = [
17
+ 'sm',
18
+ 'md',
19
+ 'lg',
20
+ 'xl',
21
+ ];
22
+ const buttonIconPositionDictionary = [
23
+ 'left',
24
+ 'right',
25
+ ];
26
+ export { buttonSizeDictionary, buttonToneVariantDictionary, buttonVariantDictionary, buttonIconPositionDictionary, };
@@ -0,0 +1,19 @@
1
+ const colorLabelDictionary = [
2
+ 'amaranth',
3
+ 'aqua',
4
+ 'blue',
5
+ 'green',
6
+ 'lime',
7
+ 'orange',
8
+ 'orchid',
9
+ 'sky',
10
+ 'violet',
11
+ 'yellow',
12
+ ];
13
+ const colorStatusDictionary = [
14
+ 'error',
15
+ 'info',
16
+ 'success',
17
+ 'warning',
18
+ ];
19
+ export { colorLabelDictionary, colorStatusDictionary, };
@@ -0,0 +1,3 @@
1
+ import mggIconsDictionary from '@maggioli-design-system/icons/original/dictionary.json';
2
+ const iconsDictionary = Object.keys(mggIconsDictionary).sort();
3
+ export { iconsDictionary, };
@@ -0,0 +1,13 @@
1
+ const inputTextTypeDictionary = [
2
+ 'date',
3
+ 'email',
4
+ 'number',
5
+ 'password',
6
+ 'search',
7
+ 'tel',
8
+ 'text',
9
+ 'textarea',
10
+ 'time',
11
+ 'url',
12
+ ];
13
+ export { inputTextTypeDictionary, };
@@ -0,0 +1,5 @@
1
+ const loadingDictionary = [
2
+ 'eager',
3
+ 'lazy',
4
+ ];
5
+ export { loadingDictionary, };
@@ -0,0 +1,37 @@
1
+ const typographyDictionary = [
2
+ 'action',
3
+ 'caption',
4
+ 'code',
5
+ 'detail',
6
+ 'h1',
7
+ 'h2',
8
+ 'h3',
9
+ 'h4',
10
+ 'h5',
11
+ 'h6',
12
+ 'hack',
13
+ 'label',
14
+ 'option',
15
+ 'paragraph',
16
+ ];
17
+ const typographyMonoDictionary = [
18
+ 'code',
19
+ 'hack',
20
+ ];
21
+ const typographyPrimaryDictionary = [
22
+ 'action',
23
+ 'h1',
24
+ 'h2',
25
+ 'h3',
26
+ 'h4',
27
+ 'h5',
28
+ 'h6',
29
+ ];
30
+ const typographySecondaryDictionary = [
31
+ 'caption',
32
+ 'detail',
33
+ 'label',
34
+ 'option',
35
+ 'paragraph',
36
+ ];
37
+ export { typographyDictionary, typographyMonoDictionary, typographyPrimaryDictionary, typographySecondaryDictionary, };
@@ -0,0 +1,64 @@
1
+ const themeVariantDictionary = [
2
+ 'dark',
3
+ 'error',
4
+ 'info',
5
+ 'light',
6
+ 'success',
7
+ 'warning',
8
+ ];
9
+ const themeLuminanceVariantDictionary = [
10
+ 'dark',
11
+ 'light',
12
+ ];
13
+ const themeStatusVariantDictionary = [
14
+ 'error',
15
+ 'info',
16
+ 'success',
17
+ 'warning',
18
+ ];
19
+ const themeFullVariantDictionary = [
20
+ 'amaranth',
21
+ 'aqua',
22
+ 'blue',
23
+ 'dark',
24
+ 'error',
25
+ 'green',
26
+ 'info',
27
+ 'light',
28
+ 'lime',
29
+ 'orange',
30
+ 'orchid',
31
+ 'sky',
32
+ 'success',
33
+ 'violet',
34
+ 'warning',
35
+ 'yellow',
36
+ ];
37
+ const themeLabelVariantDictionary = [
38
+ 'amaranth',
39
+ 'aqua',
40
+ 'blue',
41
+ 'green',
42
+ 'lime',
43
+ 'orange',
44
+ 'orchid',
45
+ 'sky',
46
+ 'violet',
47
+ 'yellow',
48
+ ];
49
+ const toneVariantDictionary = [
50
+ 'strong',
51
+ 'weak',
52
+ 'ghost',
53
+ 'quiet',
54
+ ];
55
+ const toneSimpleVariantDictionary = [
56
+ 'strong',
57
+ 'weak',
58
+ 'quiet',
59
+ ];
60
+ const toneMinimalVariantDictionary = [
61
+ 'strong',
62
+ 'weak',
63
+ ];
64
+ export { themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneVariantDictionary, };