@madgex/design-system 6.3.8 → 6.3.10

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 (61) hide show
  1. package/dist/_tokens/css/_tokens.css +1 -1
  2. package/dist/_tokens/js/_tokens-module.js +1 -1
  3. package/dist/assets/icons-inline.svg +1 -1
  4. package/dist/assets/icons.json +1 -1
  5. package/dist/assets/icons.svg +1 -1
  6. package/dist/css/index.css +1 -1
  7. package/package.json +2 -2
  8. package/src/components/_preview.njk +0 -16
  9. package/src/components/accordion/accordion.config.js +1 -2
  10. package/src/components/accordion/accordion.njk +0 -46
  11. package/src/components/button/button.config.js +1 -1
  12. package/src/components/button/button.njk +0 -36
  13. package/src/components/card/card.config.js +1 -1
  14. package/src/components/icons/icons.config.js +1 -1
  15. package/src/components/icons/icons.njk +0 -78
  16. package/src/components/inputs/checkbox-list/checkbox-list.config.js +1 -1
  17. package/src/components/inputs/checkbox-list/checkbox-list.njk +0 -51
  18. package/src/components/inputs/combobox/combobox.config.js +1 -1
  19. package/src/components/inputs/combobox/combobox.njk +0 -77
  20. package/src/components/inputs/file-upload/file-upload.config.js +1 -1
  21. package/src/components/inputs/input/input.config.js +1 -1
  22. package/src/components/inputs/input/input.njk +0 -63
  23. package/src/components/inputs/label/label.config.js +1 -1
  24. package/src/components/inputs/label/label.njk +0 -35
  25. package/src/components/inputs/radio/radio.config.js +1 -1
  26. package/src/components/inputs/radio/radio.njk +0 -58
  27. package/src/components/inputs/select/select.config.js +1 -1
  28. package/src/components/inputs/single-checkbox/single-checkbox.config.js +1 -1
  29. package/src/components/inputs/single-checkbox/single-checkbox.njk +0 -61
  30. package/src/components/inputs/text-editor/text-editor.config.js +1 -1
  31. package/src/components/inputs/textarea/textarea.config.js +1 -1
  32. package/src/components/modal/modal.config.js +1 -1
  33. package/src/components/notification/notification.config.js +1 -1
  34. package/src/components/pagination/pagination.config.js +1 -1
  35. package/src/components/pagination/pagination.njk +0 -40
  36. package/src/components/pagination-numbers/pagination-numbers.config.js +1 -1
  37. package/src/components/popover/popover.config.js +1 -1
  38. package/src/components/popover/popover.njk +0 -24
  39. package/src/components/section-title/title-with-action.config.js +1 -1
  40. package/src/components/section-title/title.config.js +1 -1
  41. package/src/components/skip-link/skip-link.config.js +1 -1
  42. package/src/components/switch-state/switch-state.config.js +1 -1
  43. package/src/components/tabs/tabs.config.js +1 -1
  44. package/src/components/toggle-button-links/toggle-button-links.config.js +1 -1
  45. package/src/components/toggle-button-links/toggle-button-links.njk +9 -36
  46. package/src/icons/{info.svg → information.svg} +1 -1
  47. package/src/scss/components/__index.scss +0 -2
  48. package/src/scss/constants/_sd-tokens.scss +1 -1
  49. package/src/components/_import-MdsLibrary.njk +0 -7
  50. package/src/components/inputs/checkbox-pill/README.md +0 -18
  51. package/src/components/inputs/checkbox-pill/checkbox-pill.config.js +0 -5
  52. package/src/components/inputs/checkbox-pill/checkbox-pill.njk +0 -87
  53. package/src/components/inputs/checkbox-pill/checkbox-pill.scss +0 -47
  54. package/src/components/inputs/form-item/README.md +0 -28
  55. package/src/components/inputs/form-item/form-item.config.js +0 -5
  56. package/src/components/inputs/form-item/form-item.njk +0 -42
  57. package/src/components/inputs/input-number/README.md +0 -37
  58. package/src/components/inputs/input-number/input-number.config.js +0 -5
  59. package/src/components/inputs/input-number/input-number.njk +0 -68
  60. package/src/components/inputs/input-number/input-number.scss +0 -60
  61. package/tasks/design-system-vue.js +0 -14
@@ -1,68 +0,0 @@
1
- {# VUE VERSION #}
2
- <h2>Vue</h2>
3
-
4
-
5
- <div id="vue-app">
6
- {% raw %}
7
- <mds-form-item v-for="(item, index) in examples"
8
- :input-id="`${index}-vue-version`"
9
- :optional="item.optional"
10
- :error="item.value ? !!item.error : null"
11
- class="mds-form-element--input"
12
- style="margin-bottom: 50px; width: 230px;"
13
- >
14
- <template v-if="item.label" #label>{{item.label}}</template>
15
- <template v-if="item.tooltip" #tooltip>{{item.tooltip}}</template>
16
- <template v-if="item.value && item.help" #help>{{item.help}}</template>
17
- <template v-if="item.value && item.error" #error>{{item.error}}</template>
18
- <mds-input-number
19
- :id="`${index}-vue-version`"
20
- v-model="item.value"
21
- :name="item.name"
22
- :placeholder="item.placeholder"
23
- :error="item.value ? !!item.error : null"
24
- :step="item.step"
25
- :min="item.min"
26
- :max="item.max"
27
- :i18n="item.i18n"
28
- />
29
- </mds-form-item>
30
- {% endraw %}
31
- </div>
32
-
33
- <script type="module" async>
34
- {% include '_import-MdsLibrary.njk' %}
35
- const { MdsFormItem, MdsInput, MdsInputNumber } = MdsLibrary;
36
-
37
- const app = vue.createApp({
38
- components: { MdsFormItem, MdsInput, MdsInputNumber },
39
- data() {
40
- return {
41
- examples: [
42
- {label: 'How many JS FE frameworks exist?', name: 'default input', value: null},
43
- {label: 'When did time begin?', name: 'stars input', value: 1970, optional: true, min:0, max:2000},
44
- {
45
- label: 'Expected salary per year',
46
- name: 'salary input error',
47
- error: 'Sorry, your expected salary is too high',
48
- help: "This number is out of our budget",
49
- tooltip: "Try working for free",
50
- min: 80000,
51
- value: null,
52
- placeholder: 'e.g. $15000',
53
- step: 100
54
- },
55
- {
56
- label: '¿Cuántos idiomas hablas?',
57
- optional: true,
58
- name: 'i18n example',
59
- min: 1,
60
- max: 50,
61
- value: null,
62
- i18n: {increaseAriaLabel: 'Aumentar', decreaseAriaLabel: 'Reducir'}
63
- }
64
- ]
65
- };
66
- },
67
- }).mount('#vue-app');
68
- </script>
@@ -1,60 +0,0 @@
1
- .mds-input-number {
2
- position: relative;
3
- display: flex;
4
- border: $regular-border;
5
- border-radius: $border-radius;
6
- background: #fff;
7
- padding: 0;
8
- color: var(--mds-color-text-base);
9
- width: 100%;
10
- min-width: var(--mds-size-container-min-width);
11
- }
12
-
13
- .mds-form-element--error .mds-form-control.mds-input-number {
14
- padding: 0;
15
- }
16
-
17
- .mds-input-number input {
18
- flex: 1;
19
- padding: $constant-size-baseline * 3;
20
- line-height: inherit;
21
- font-size: inherit;
22
- color: inherit;
23
- border: $regular-border;
24
- border-top: none;
25
- border-bottom: none;
26
- background: none;
27
- outline: none;
28
- appearance: none;
29
- min-width: 0;
30
- -webkit-appearance: none;
31
- -moz-appearance: textfield;
32
-
33
- &::-webkit-outer-spin-button,
34
- &::-webkit-inner-spin-button {
35
- appearance: none;
36
- -webkit-appearance: none;
37
- -moz-appearance: none;
38
- margin: 0;
39
- }
40
- }
41
-
42
- .mds-input-number button {
43
- padding: ($constant-size-baseline * 2) ($constant-size-baseline * 3);
44
- border: none;
45
- cursor: pointer;
46
- background: none;
47
- color: inherit;
48
- outline: none;
49
-
50
- &:hover,
51
- &:focus-within {
52
- background: $constant-color-neutral-lightest;
53
- color: $link-hover-color;
54
- }
55
-
56
- &[aria-disabled='true'] {
57
- cursor: not-allowed;
58
- opacity: 20%;
59
- }
60
- }
@@ -1,14 +0,0 @@
1
- const path = require('path');
2
- const util = require('util');
3
- const exec = util.promisify(require('child_process').exec);
4
-
5
- async function buildDesignSystemVue() {
6
- const { stdout, stderr } = await exec('npm run -w @madgex/design-system-vue build', {
7
- cwd: path.resolve(__dirname, '../../'),
8
- });
9
-
10
- console.log('build:design-system-vue stdout:', stdout);
11
- console.log('build:design-system-vue stderr:', stderr);
12
- }
13
-
14
- exports.buildDesignSystemVue = buildDesignSystemVue;