@madgex/design-system 9.1.10 → 9.1.11

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 27 Jan 2025 16:28:01 GMT
3
+ * Generated on Thu, 30 Jan 2025 12:37:04 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 27 Jan 2025 16:28:01 GMT
3
+ * Generated on Thu, 30 Jan 2025 12:37:05 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1 +1 @@
1
- [{"name":"asterisk"},{"name":"check"},{"name":"chevron-down"},{"name":"chevron-right"},{"name":"chevron-left"},{"name":"chevron-up"},{"name":"close"},{"name":"calendar"},{"name":"cross"},{"name":"doc"},{"name":"doc-pdf"},{"name":"email"},{"name":"external"},{"name":"flag"},{"name":"information"},{"name":"job"},{"name":"list-bullets"},{"name":"list-numbers"},{"name":"location-pin"},{"name":"menu"},{"name":"minus"},{"name":"plus-small"},{"name":"plus"},{"name":"question-mark"},{"name":"redo"},{"name":"search"},{"name":"share"},{"name":"social-facebook"},{"name":"social-linkedin"},{"name":"social-pinterest"},{"name":"social-reddit"},{"name":"social-twitter"},{"name":"spinner"},{"name":"star-fill"},{"name":"star-outline"},{"name":"text-bold"},{"name":"text-italic"},{"name":"text-link"},{"name":"text-strike-through"},{"name":"text-underline"},{"name":"triangle-down"},{"name":"triangle-right"},{"name":"triangle-up"},{"name":"undo"},{"name":"upload"},{"name":"user"}]
1
+ [{"name":"asterisk"},{"name":"calendar"},{"name":"check"},{"name":"chevron-down"},{"name":"chevron-left"},{"name":"chevron-right"},{"name":"chevron-up"},{"name":"close"},{"name":"cross"},{"name":"doc-pdf"},{"name":"doc"},{"name":"email"},{"name":"external"},{"name":"flag"},{"name":"information"},{"name":"job"},{"name":"list-bullets"},{"name":"list-numbers"},{"name":"location-pin"},{"name":"menu"},{"name":"minus"},{"name":"plus-small"},{"name":"plus"},{"name":"question-mark"},{"name":"redo"},{"name":"search"},{"name":"share"},{"name":"social-facebook"},{"name":"social-pinterest"},{"name":"social-linkedin"},{"name":"social-twitter"},{"name":"social-reddit"},{"name":"spinner"},{"name":"star-fill"},{"name":"text-bold"},{"name":"star-outline"},{"name":"text-italic"},{"name":"text-link"},{"name":"text-strike-through"},{"name":"text-underline"},{"name":"triangle-down"},{"name":"triangle-right"},{"name":"triangle-up"},{"name":"undo"},{"name":"upload"},{"name":"user"}]
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@madgex/design-system",
3
3
  "author": "Madgex",
4
4
  "license": "UNLICENSED",
5
- "version": "9.1.10",
5
+ "version": "9.1.11",
6
6
  "main": "dist/js/index.js",
7
7
  "exports": {
8
8
  ".": "./dist/js/index.js",
@@ -99,5 +99,5 @@
99
99
  "webpack-dev-server": "^3.11.2",
100
100
  "webpack-stream": "^6.1.2"
101
101
  },
102
- "gitHead": "b31df4f7b22cdcfa886f97279715e53b78766b4a"
102
+ "gitHead": "f580becb4f0742d93392e84291922627495d76dd"
103
103
  }
@@ -48,14 +48,6 @@ Otherwise, show an extra page in front of the current page to make up the displa
48
48
  {%-set pages = range(2,pageCount + extraPage) -%}
49
49
  {% endif %}
50
50
 
51
- {%- if pageNo <= 1 -%}
52
- {%- set disabledButtonPrev = true -%}
53
- {%- endif -%}
54
-
55
- {%- if pageNo >= pageCount -%}
56
- {%- set disabledButtonNext = true -%}
57
- {%- endif -%}
58
-
59
51
  {# Labels #}
60
52
  {%- set navAriaLabel = params.i18n.navAriaLabel | default('Pagination') -%}
61
53
  {%- set prevLabel = params.i18n.prevLabel | default('Previous') -%}
@@ -67,26 +59,18 @@ Otherwise, show an extra page in front of the current page to make up the displa
67
59
 
68
60
  <nav aria-label="{{ navAriaLabel }}" data-test="pagination-numbers{% if params.id %}-{{params.id}}{% endif %}">
69
61
  <ul class="mds-pagination mds-pagination--numbers mds-text-align-center {% if params.classes %} {{params.classes}}{% endif %}">
70
- {% if prevLabel -%}
62
+ {% if prevLabel and pageNo > 1 %}
71
63
  <li class="mds-pagination__item">
72
- {%- if disabledButtonPrev -%}
73
- <div class="mds-pagination__link mds-pagination__link--disabled" aria-disabled="true">
74
- {%- else -%}
75
- <a href="{{params.pageUrlTemplate | replace('{pageNo}', pageNo - 1) }}"
76
- class="mds-pagination__link mds-pagination__link--background"
77
- aria-label="{{ prevAriaLabel }}">
78
- {%- endif -%}
79
- {% if not params.hideIcons -%}
80
- {{ MdsIcon({iconName: 'chevron-left'}) }}
81
- {%- endif -%}
82
- <span class="mds-display-none mds-display-md-inline mds-margin-left-b2">{{- prevLabel -}}</span>
83
- {%- if disabledButtonPrev -%}
84
- </div>
85
- {%- else -%}
86
- </a>
87
- {%- endif -%}
64
+ <a href="{{params.pageUrlTemplate | replace('{pageNo}', pageNo - 1) }}"
65
+ class="mds-pagination__link mds-pagination__link--background"
66
+ aria-label="{{ prevAriaLabel }}">
67
+ {% if not params.hideIcons %}
68
+ {{ MdsIcon({iconName: 'chevron-left'}) }}
69
+ {% endif %}
70
+ <span class="mds-display-none mds-display-md-inline mds-margin-left-b2">{{- prevLabel -}}</span>
71
+ </a>
88
72
  </li>
89
- {%- endif %}
73
+ {% endif %}
90
74
  <li class="mds-pagination__item mds-border-left">
91
75
  {{ PaginationNumbersNumber({
92
76
  pageNo: pageNo,
@@ -119,25 +103,17 @@ Otherwise, show an extra page in front of the current page to make up the displa
119
103
  })
120
104
  }}
121
105
  </li>
122
- {%- endif -%}
123
- {%- if nextLabel -%}
106
+ {%- endif %}
107
+ {% if nextLabel and pageNo < pageCount %}
124
108
  <li class="mds-pagination__item mds-border-left">
125
- {%- if disabledButtonNext -%}
126
- <div class="mds-pagination__link mds-pagination__link--disabled" aria-disabled="true">
127
- {%- else -%}
128
- <a href="{{params.pageUrlTemplate | replace('{pageNo}', pageNo + 1)}}"
129
- class="mds-pagination__link mds-pagination__link--background"
130
- aria-label="{{ nextAriaLabel }}">
131
- {%- endif -%}
132
- <span class="mds-display-none mds-display-md-inline mds-margin-right-b2">{{- nextLabel -}}</span>
133
- {%- if not params.hideIcons -%}
134
- {{ MdsIcon({iconName: 'chevron-right'}) }}
135
- {%- endif -%}
136
- {%- if disabledButtonNext -%}
137
- </div>
138
- {%- else -%}
139
- </a>
140
- {%- endif -%}
109
+ <a href="{{params.pageUrlTemplate | replace('{pageNo}', pageNo + 1)}}"
110
+ class="mds-pagination__link mds-pagination__link--background"
111
+ aria-label="{{ nextAriaLabel }}">
112
+ <span class="mds-display-none mds-display-md-inline mds-margin-right-b2">{{- nextLabel -}}</span>
113
+ {% if not params.hideIcons %}
114
+ {{ MdsIcon({iconName: 'chevron-right'}) }}
115
+ {% endif %}
116
+ </a>
141
117
  </li>
142
118
  {%- endif -%}
143
119
  </ul>
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
3
  * Do not edit directly
4
- * Generated on Mon, 27 Jan 2025 16:28:01 GMT
4
+ * Generated on Thu, 30 Jan 2025 12:37:05 GMT
5
5
  */
6
6
 
7
7
  $constant-color-neutral-base: #707070;