@bonniernews/dn-design-system-web 1.0.0-alpha.13 → 1.0.0-alpha.15
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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 1.0.0-alpha.15 (2023-01-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **web:** update tests to include checkbox radio ([#546](https://github.com/BonnierNews/dn-design-system/issues/546)) ([bed3718](https://github.com/BonnierNews/dn-design-system/commit/bed3718fa6d9074294e5665af80e204d9ca5dee2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [1.0.0-alpha.14](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@1.0.0-alpha.13...@bonniernews/dn-design-system-web@1.0.0-alpha.14) (2023-01-04)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **web:** update radiobuttons can have attribues on each radiobutton ([#543](https://github.com/BonnierNews/dn-design-system/issues/543)) ([be47d7f](https://github.com/BonnierNews/dn-design-system/commit/be47d7fbe2fca6d70935cff1640a8627b45ff99d))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [1.0.0-alpha.13](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@1.0.0-alpha.12...@bonniernews/dn-design-system-web@1.0.0-alpha.13) (2023-01-04)
|
|
7
25
|
|
|
8
26
|
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
@@ -13,11 +13,7 @@
|
|
|
13
13
|
{% set componentClassName = "ds-radio-btn" %}
|
|
14
14
|
{% set classNamePrefix = componentClassName + "--" %}
|
|
15
15
|
{% set wrapperClasses = [] %}
|
|
16
|
-
|
|
17
|
-
{% for attribute, value in params.attributes %}
|
|
18
|
-
{{attribute}}="{{value}}"
|
|
19
|
-
{% endfor %}
|
|
20
|
-
{% endset %}
|
|
16
|
+
|
|
21
17
|
|
|
22
18
|
{% set wrapperClasses = (wrapperClasses.push(componentClassName), wrapperClasses) %}
|
|
23
19
|
|
|
@@ -37,8 +33,13 @@
|
|
|
37
33
|
|
|
38
34
|
{% call FormField(wrapperParams, wrapperClasses) %}
|
|
39
35
|
{% for button in params.buttons %}
|
|
40
|
-
|
|
41
|
-
{
|
|
36
|
+
{% set attributes %}
|
|
37
|
+
{% for attribute, value in button.attributes %}
|
|
38
|
+
{{attribute}}="{{value}}"
|
|
39
|
+
{% endfor %}
|
|
40
|
+
{% endset %}
|
|
41
|
+
<input type="radio" id="{{ button.id }}" name="{{ params.name }}"
|
|
42
|
+
{{- "checked" if button.checked }} {{ "disabled" if params.disabled }}
|
|
42
43
|
{{-" required" if params.required }} {{- attributes | safe }} value="{{ button.value }}" />
|
|
43
44
|
{% if params.stripLabel %}
|
|
44
45
|
<div class="{{ componentClassName + '__inner'}}">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonniernews/dn-design-system-web",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.15",
|
|
4
4
|
"description": "DN design system for web.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"homepage": "https://github.com/BonnierNews/dn-design-system/tree/main/web/src#readme",
|