@1024pix/pix-ui 18.0.0 → 18.0.1

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
@@ -1,5 +1,12 @@
1
1
  # Pix-UI Changelog
2
2
 
3
+ ## v18.0.1 (02/09/2022)
4
+
5
+
6
+ ### :bug: Correction
7
+ - [#249](https://github.com/1024pix/pix-ui/pull/249) [BUGFIX] Permettre le controle des checkboxs
8
+ - [#248](https://github.com/1024pix/pix-ui/pull/248) [BUGFIX] Prévenir des erreurs à la première ouverture de la sidebar/modal
9
+
3
10
  ## v18.0.0 (01/09/2022)
4
11
 
5
12
 
@@ -9,6 +9,7 @@
9
9
  id={{this.id}}
10
10
  type="checkbox"
11
11
  class="pix-checkbox__input {{if @isIndeterminate ' pix-checkbox__input--indeterminate'}}"
12
+ checked={{@checked}}
12
13
  ...attributes
13
14
  />
14
15
  </div>
@@ -8,7 +8,7 @@ export default modifier(function trapFocus(element, [isOpen]) {
8
8
  if (isOpen) {
9
9
  sourceActiveElement = document.activeElement;
10
10
  focusElement(firstFocusableElement, element);
11
- } else {
11
+ } else if (sourceActiveElement) {
12
12
  focusElement(sourceActiveElement, element);
13
13
  }
14
14
 
@@ -9,6 +9,7 @@ export const Template = (args) => {
9
9
  @screenReaderOnly={{screenReaderOnly}}
10
10
  @isIndeterminate={{isIndeterminate}}
11
11
  @labelSize={{labelSize}}
12
+ @checked={{checked}}
12
13
  />
13
14
  `,
14
15
  context: args,
@@ -85,4 +86,13 @@ export const argTypes = {
85
86
  options: ['small', 'default', 'large'],
86
87
  },
87
88
  },
89
+ checked: {
90
+ name: 'checked',
91
+ description: 'Permet de cocher la checkbox',
92
+ type: { name: 'boolean', required: false },
93
+ table: {
94
+ type: { summary: 'boolean' },
95
+ defaultValue: { summary: false },
96
+ },
97
+ },
88
98
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/pix-ui",
3
- "version": "18.0.0",
3
+ "version": "18.0.1",
4
4
  "description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
5
5
  "keywords": [
6
6
  "ember-addon"