@maggioli-design-system/mds-progress 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 (133) hide show
  1. package/dist/cjs/index-fd4954d5.js +1080 -0
  2. package/dist/cjs/index.cjs.js +2 -0
  3. package/dist/cjs/loader.cjs.js +21 -0
  4. package/dist/cjs/mds-progress.cjs.entry.js +33 -0
  5. package/dist/cjs/mds-progress.cjs.js +19 -0
  6. package/dist/collection/collection-manifest.json +12 -0
  7. package/dist/collection/components/mds-progress/mds-progress.css +113 -0
  8. package/dist/collection/components/mds-progress/mds-progress.js +97 -0
  9. package/dist/collection/components/mds-progress/meta/dictionary.js +5 -0
  10. package/dist/collection/components/mds-progress/meta/types.js +1 -0
  11. package/dist/collection/components/mds-progress/test/mds-progress.stories.js +37 -0
  12. package/dist/collection/dictionary/autocomplete.js +59 -0
  13. package/dist/collection/dictionary/button.js +26 -0
  14. package/dist/collection/dictionary/color.js +19 -0
  15. package/dist/collection/dictionary/icon.js +3 -0
  16. package/dist/collection/dictionary/input-text-type.js +13 -0
  17. package/dist/collection/dictionary/loading.js +5 -0
  18. package/dist/collection/dictionary/typography.js +37 -0
  19. package/dist/collection/dictionary/variant.js +64 -0
  20. package/dist/collection/fixtures/cities.js +110 -0
  21. package/dist/collection/interface/input-value.js +1 -0
  22. package/dist/collection/types/autocomplete.js +1 -0
  23. package/dist/collection/types/button.js +1 -0
  24. package/dist/collection/types/form-rel.js +1 -0
  25. package/dist/collection/types/input-text-type.js +1 -0
  26. package/dist/collection/types/input-value-type.js +1 -0
  27. package/dist/collection/types/loading.js +1 -0
  28. package/dist/collection/types/typography.js +1 -0
  29. package/dist/collection/types/variant.js +1 -0
  30. package/dist/custom-elements/index.d.ts +45 -0
  31. package/dist/custom-elements/index.js +45 -0
  32. package/dist/esm/index-28e8e05c.js +1054 -0
  33. package/dist/esm/index.js +1 -0
  34. package/dist/esm/loader.js +17 -0
  35. package/dist/esm/mds-progress.entry.js +29 -0
  36. package/dist/esm/mds-progress.js +17 -0
  37. package/dist/esm/polyfills/core-js.js +11 -0
  38. package/dist/esm/polyfills/css-shim.js +1 -0
  39. package/dist/esm/polyfills/dom.js +79 -0
  40. package/dist/esm/polyfills/es5-html-element.js +1 -0
  41. package/dist/esm/polyfills/index.js +34 -0
  42. package/dist/esm/polyfills/system.js +6 -0
  43. package/dist/esm-es5/index-28e8e05c.js +1 -0
  44. package/dist/esm-es5/index.js +0 -0
  45. package/dist/esm-es5/loader.js +1 -0
  46. package/dist/esm-es5/mds-progress.entry.js +1 -0
  47. package/dist/esm-es5/mds-progress.js +1 -0
  48. package/dist/index.cjs.js +1 -0
  49. package/dist/index.js +1 -0
  50. package/dist/mds-progress/index.esm.js +0 -0
  51. package/dist/mds-progress/mds-progress.esm.js +1 -0
  52. package/dist/mds-progress/mds-progress.js +130 -0
  53. package/dist/mds-progress/p-23f79c39.js +1 -0
  54. package/dist/mds-progress/p-50ea2036.system.js +1 -0
  55. package/dist/mds-progress/p-96a127a8.system.js +1 -0
  56. package/dist/mds-progress/p-9d788a47.system.entry.js +1 -0
  57. package/dist/mds-progress/p-e655d83d.system.js +1 -0
  58. package/dist/mds-progress/p-f3c59b19.entry.js +1 -0
  59. package/dist/stats.json +496 -0
  60. package/dist/types/components/mds-progress/mds-progress.d.ts +17 -0
  61. package/dist/types/components/mds-progress/meta/dictionary.d.ts +2 -0
  62. package/dist/types/components/mds-progress/meta/types.d.ts +1 -0
  63. package/dist/types/components.d.ts +63 -0
  64. package/dist/types/dictionary/autocomplete.d.ts +2 -0
  65. package/dist/types/dictionary/button.d.ts +5 -0
  66. package/dist/types/dictionary/color.d.ts +3 -0
  67. package/dist/types/dictionary/icon.d.ts +2 -0
  68. package/dist/types/dictionary/input-text-type.d.ts +2 -0
  69. package/dist/types/dictionary/loading.d.ts +2 -0
  70. package/dist/types/dictionary/typography.d.ts +5 -0
  71. package/dist/types/dictionary/variant.d.ts +9 -0
  72. package/dist/types/fixtures/cities.d.ts +2 -0
  73. package/dist/types/interface/input-value.d.ts +4 -0
  74. package/dist/types/stencil-public-runtime.d.ts +1563 -0
  75. package/dist/types/types/autocomplete.d.ts +2 -0
  76. package/dist/types/types/button.d.ts +4 -0
  77. package/dist/types/types/form-rel.d.ts +1 -0
  78. package/dist/types/types/input-text-type.d.ts +1 -0
  79. package/dist/types/types/input-value-type.d.ts +1 -0
  80. package/dist/types/types/loading.d.ts +1 -0
  81. package/dist/types/types/typography.d.ts +4 -0
  82. package/dist/types/types/variant.d.ts +10 -0
  83. package/loader/cdn.js +3 -0
  84. package/loader/index.cjs.js +3 -0
  85. package/loader/index.d.ts +12 -0
  86. package/loader/index.es2017.js +3 -0
  87. package/loader/index.js +4 -0
  88. package/loader/package.json +10 -0
  89. package/package.json +44 -0
  90. package/readme.md +34 -0
  91. package/src/components/mds-progress/css/mds-progress-variant-dark.css +7 -0
  92. package/src/components/mds-progress/css/mds-progress-variant-error.css +7 -0
  93. package/src/components/mds-progress/css/mds-progress-variant-info.css +7 -0
  94. package/src/components/mds-progress/css/mds-progress-variant-light.css +7 -0
  95. package/src/components/mds-progress/css/mds-progress-variant-success.css +7 -0
  96. package/src/components/mds-progress/css/mds-progress-variant-warning.css +7 -0
  97. package/src/components/mds-progress/mds-progress.css +59 -0
  98. package/src/components/mds-progress/mds-progress.tsx +38 -0
  99. package/src/components/mds-progress/meta/dictionary.ts +9 -0
  100. package/src/components/mds-progress/meta/types.ts +3 -0
  101. package/src/components/mds-progress/readme.md +19 -0
  102. package/src/components/mds-progress/test/mds-progress.e2e.ts +11 -0
  103. package/src/components/mds-progress/test/mds-progress.spec.tsx +18 -0
  104. package/src/components/mds-progress/test/mds-progress.stories.js +37 -0
  105. package/src/components.d.ts +63 -0
  106. package/src/dictionary/autocomplete.ts +62 -0
  107. package/src/dictionary/button.ts +35 -0
  108. package/src/dictionary/color.ts +24 -0
  109. package/src/dictionary/icon.ts +5 -0
  110. package/src/dictionary/input-text-type.ts +17 -0
  111. package/src/dictionary/loading.ts +9 -0
  112. package/src/dictionary/typography.ts +46 -0
  113. package/src/dictionary/variant.ts +81 -0
  114. package/src/fixtures/cities.ts +116 -0
  115. package/src/interface/input-value.ts +5 -0
  116. package/src/types/autocomplete.ts +69 -0
  117. package/src/types/button.ts +24 -0
  118. package/src/types/form-rel.ts +11 -0
  119. package/src/types/input-text-type.ts +11 -0
  120. package/src/types/input-value-type.ts +5 -0
  121. package/src/types/loading.ts +3 -0
  122. package/src/types/typography.ts +35 -0
  123. package/src/types/variant.ts +72 -0
  124. package/www/build/index.esm.js +0 -0
  125. package/www/build/mds-progress.esm.js +1 -0
  126. package/www/build/mds-progress.js +130 -0
  127. package/www/build/p-23f79c39.js +1 -0
  128. package/www/build/p-50ea2036.system.js +1 -0
  129. package/www/build/p-96a127a8.system.js +1 -0
  130. package/www/build/p-9d788a47.system.entry.js +1 -0
  131. package/www/build/p-e655d83d.system.js +1 -0
  132. package/www/build/p-f3c59b19.entry.js +1 -0
  133. 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-fd4954d5.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-progress.cjs",[[1,"mds-progress",{"progress":[2],"direction":[1],"variant":[513]}]]]], options);
18
+ });
19
+ };
20
+
21
+ exports.defineCustomElements = defineCustomElements;
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-fd4954d5.js');
6
+
7
+ const mdsProgressCss = "@tailwind utilities; :host{--background:rgb(var(--adjust-tone-09));--progress-background:rgb(var(--brand-maggioli-03));--radius:0.5rem;--thickness:0.5rem;display:-ms-flexbox;display:flex;overflow:hidden;-webkit-transition-property:background-color, border-color, color, fill, stroke;transition-property:background-color, border-color, color, fill, stroke;-webkit-transition-duration:150ms;transition-duration:150ms;background-color:var(--background);border-radius:var(--radius);height:var(--thickness)}:host(.horizontal){width:100%;height:var(--thickness);min-width:var(--thickness)}:host(.vertical){height:100%;min-height:2rem;-ms-flex-direction:column;flex-direction:column;width:var(--thickness)}.progress{-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--progress-background);border-radius:var(--radius);-webkit-transition-property:background-color, flex-grow;transition-property:background-color, flex-grow;transition-property:background-color, flex-grow, -ms-flex-positive}@tailwind utilities; :host([variant=dark]){--progress-background:rgb(var(--adjust-tone-03));--background:rgb(var(--adjust-tone-09))}@tailwind utilities; :host([variant=error]){--progress-background:rgb(var(--status-error-06));--background:rgb(var(--status-error-09))}@tailwind utilities; :host([variant=info]){--progress-background:rgb(var(--status-info-06));--background:rgb(var(--status-info-09))}@tailwind utilities; :host([variant=light]){--progress-background:rgb(var(--adjust-tone));--background:rgb(var(--adjust-tone-04))}@tailwind utilities; :host([variant=success]){--progress-background:rgb(var(--status-success-06));--background:rgb(var(--status-success-09))}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([variant=warning]){--progress-background:rgb(var(--status-warning-06));--background:rgb(var(--status-warning-09))}";
8
+
9
+ let MdsProgress = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ /**
13
+ * A value between 0 and 1 that rapresents the status progress
14
+ */
15
+ this.progress = 0;
16
+ /**
17
+ * Specifies the direction of the progress bar, if horizonatl or vertical
18
+ */
19
+ this.direction = 'horizontal';
20
+ /**
21
+ * Sets the theme variant colors
22
+ */
23
+ this.variant = 'dark';
24
+ }
25
+ render() {
26
+ return (index.h(index.Host, { class: this.direction }, index.h("div", { class: "progress", style: this.direction === 'horizontal'
27
+ ? { flexGrow: `${this.progress}` }
28
+ : { flexGrow: `${this.progress}`, width: '100%' } })));
29
+ }
30
+ };
31
+ MdsProgress.style = mdsProgressCss;
32
+
33
+ exports.mds_progress = MdsProgress;
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-fd4954d5.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-progress.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-progress.cjs",[[1,"mds-progress",{"progress":[2],"direction":[1],"variant":[513]}]]]], options);
19
+ });
@@ -0,0 +1,12 @@
1
+ {
2
+ "entries": [
3
+ "./components/mds-progress/mds-progress.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,113 @@
1
+ @tailwind utilities;
2
+
3
+ /*
4
+ * @prop --background: Sets the background-color of the component
5
+ * @prop --progress-background: Sets the background-color of the progress
6
+ * @prop --radius: Sets the border-radius of the component
7
+ * @prop --thickness: Sets the thickness of the progress bar
8
+ */
9
+
10
+ :host {
11
+
12
+ --background: rgb(var(--adjust-tone-09));
13
+ --progress-background: rgb(var(--brand-maggioli-03));
14
+ --radius: 0.5rem;
15
+ --thickness: 0.5rem;
16
+ display: flex;
17
+ overflow: hidden;
18
+ transition-property: background-color, border-color, color, fill, stroke;
19
+ transition-duration: 150ms;
20
+
21
+ background-color: var(--background);
22
+ border-radius: var(--radius);
23
+ height: var(--thickness);
24
+ }
25
+
26
+ :host ( .horizontal ){
27
+
28
+ width: 100%;
29
+
30
+ height: var(--thickness);
31
+ min-width: var(--thickness);
32
+ }
33
+
34
+ :host ( .vertical ){
35
+
36
+ height: 100%;
37
+
38
+ min-height: 2rem;
39
+
40
+ flex-direction: column;
41
+
42
+ width: var(--thickness);
43
+ }
44
+
45
+ .progress{
46
+
47
+ transition-duration: 500ms;
48
+
49
+ transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
50
+
51
+ background-color: var(--progress-background);
52
+ border-radius: var(--radius);
53
+ transition-property: background-color, flex-grow;
54
+ }
55
+
56
+ @tailwind utilities;
57
+
58
+ :host ( [variant=dark] ) {
59
+
60
+ --progress-background: rgb(var(--adjust-tone-03));
61
+ --background: rgb(var(--adjust-tone-09));
62
+ }
63
+
64
+ @tailwind utilities;
65
+
66
+ :host ( [variant=error] ) {
67
+
68
+ --progress-background: rgb(var(--status-error-06));
69
+ --background: rgb(var(--status-error-09));
70
+ }
71
+
72
+ @tailwind utilities;
73
+
74
+ :host ( [variant=info] ) {
75
+
76
+ --progress-background: rgb(var(--status-info-06));
77
+ --background: rgb(var(--status-info-09));
78
+ }
79
+
80
+ @tailwind utilities;
81
+
82
+ :host ( [variant=light] ) {
83
+
84
+ --progress-background: rgb(var(--adjust-tone));
85
+ --background: rgb(var(--adjust-tone-04));
86
+ }
87
+
88
+ @tailwind utilities;
89
+
90
+ :host ( [variant=success] ) {
91
+
92
+ --progress-background: rgb(var(--status-success-06));
93
+ --background: rgb(var(--status-success-09));
94
+ }
95
+
96
+ .border{
97
+
98
+ border-width: 1px;
99
+ }
100
+
101
+ .shadow{
102
+
103
+ --tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
104
+
105
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
106
+ }
107
+
108
+ :host ( [variant=warning] ) {
109
+
110
+ --progress-background: rgb(var(--status-warning-06));
111
+ --background: rgb(var(--status-warning-09));
112
+ }
113
+
@@ -0,0 +1,97 @@
1
+ import { Component, Host, h, Prop } from '@stencil/core';
2
+ export class MdsProgress {
3
+ constructor() {
4
+ /**
5
+ * A value between 0 and 1 that rapresents the status progress
6
+ */
7
+ this.progress = 0;
8
+ /**
9
+ * Specifies the direction of the progress bar, if horizonatl or vertical
10
+ */
11
+ this.direction = 'horizontal';
12
+ /**
13
+ * Sets the theme variant colors
14
+ */
15
+ this.variant = 'dark';
16
+ }
17
+ render() {
18
+ return (h(Host, { class: this.direction },
19
+ h("div", { class: "progress", style: this.direction === 'horizontal'
20
+ ? { flexGrow: `${this.progress}` }
21
+ : { flexGrow: `${this.progress}`, width: '100%' } })));
22
+ }
23
+ static get is() { return "mds-progress"; }
24
+ static get encapsulation() { return "shadow"; }
25
+ static get originalStyleUrls() { return {
26
+ "$": ["mds-progress.css"]
27
+ }; }
28
+ static get styleUrls() { return {
29
+ "$": ["mds-progress.css"]
30
+ }; }
31
+ static get properties() { return {
32
+ "progress": {
33
+ "type": "number",
34
+ "mutable": false,
35
+ "complexType": {
36
+ "original": "number",
37
+ "resolved": "number",
38
+ "references": {}
39
+ },
40
+ "required": false,
41
+ "optional": true,
42
+ "docs": {
43
+ "tags": [],
44
+ "text": "A value between 0 and 1 that rapresents the status progress"
45
+ },
46
+ "attribute": "progress",
47
+ "reflect": false,
48
+ "defaultValue": "0"
49
+ },
50
+ "direction": {
51
+ "type": "string",
52
+ "mutable": false,
53
+ "complexType": {
54
+ "original": "DirectionType",
55
+ "resolved": "\"horizontal\" | \"vertical\"",
56
+ "references": {
57
+ "DirectionType": {
58
+ "location": "import",
59
+ "path": "./meta/types"
60
+ }
61
+ }
62
+ },
63
+ "required": false,
64
+ "optional": true,
65
+ "docs": {
66
+ "tags": [],
67
+ "text": "Specifies the direction of the progress bar, if horizonatl or vertical"
68
+ },
69
+ "attribute": "direction",
70
+ "reflect": false,
71
+ "defaultValue": "'horizontal'"
72
+ },
73
+ "variant": {
74
+ "type": "string",
75
+ "mutable": false,
76
+ "complexType": {
77
+ "original": "ThemeVariantType",
78
+ "resolved": "\"dark\" | \"error\" | \"info\" | \"light\" | \"success\" | \"warning\"",
79
+ "references": {
80
+ "ThemeVariantType": {
81
+ "location": "import",
82
+ "path": "../../types/variant"
83
+ }
84
+ }
85
+ },
86
+ "required": false,
87
+ "optional": true,
88
+ "docs": {
89
+ "tags": [],
90
+ "text": "Sets the theme variant colors"
91
+ },
92
+ "attribute": "variant",
93
+ "reflect": true,
94
+ "defaultValue": "'dark'"
95
+ }
96
+ }; }
97
+ }
@@ -0,0 +1,5 @@
1
+ const directionDictionary = [
2
+ 'horizontal',
3
+ 'vertical',
4
+ ];
5
+ export { directionDictionary, };
@@ -0,0 +1,37 @@
1
+ import React from 'react'
2
+ import faker from 'faker'
3
+ import MdsProgress from '@component/mds-progress/mds-progress'
4
+ import { directionDictionary } from '../meta/dictionary'
5
+ import { themeVariantDictionary } from '@dictionary/variant'
6
+
7
+ export default {
8
+ title: 'UI / Progress',
9
+ component: MdsProgress,
10
+ argTypes: {
11
+ direction: {
12
+ type: { name: 'string', required: false },
13
+ control: { type: 'select' },
14
+ description: 'Specifies the direction of the progress bar, if horizonatl or vertical',
15
+ options: directionDictionary,
16
+ },
17
+ progress: {
18
+ control: { type: 'range', step: 0.01, min: 0, max: 1 },
19
+ type: { name: 'number', required: false },
20
+ description: 'A value between 0 and 1 that rapresents the status progress',
21
+ },
22
+ variant: {
23
+ type: { name: 'string', required: false },
24
+ description: 'Sets the theme variant colors',
25
+ options: themeVariantDictionary,
26
+ control: { type: 'select' },
27
+ },
28
+ },
29
+ }
30
+
31
+ const Template = args =>
32
+ <mds-progress {...args}/>
33
+
34
+ export const Default = Template.bind({})
35
+ Default.args = {
36
+ progress: 0.35,
37
+ }
@@ -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, };