@1024pix/pix-ui 42.0.2 → 42.0.3

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.
@@ -5,6 +5,6 @@ export default class PixButtonLink extends PixButtonBase {
5
5
  defaultParams = {};
6
6
 
7
7
  get className() {
8
- return super.baseClassNames.join(' ');
8
+ return [...super.baseClassNames, 'pix-button-link'].join(' ');
9
9
  }
10
10
  }
@@ -8,7 +8,7 @@
8
8
  white-space: nowrap;
9
9
  text-decoration: none;
10
10
  background-color: var(--pix-primary-500);
11
- border: 1px solid transparent;
11
+ border: 2px solid transparent;
12
12
  outline: none;
13
13
  cursor: pointer;
14
14
 
@@ -240,3 +240,7 @@
240
240
  }
241
241
  }
242
242
  }
243
+
244
+ .pix-button-link {
245
+ line-height: initial;
246
+ }
@@ -86,6 +86,7 @@
86
86
 
87
87
  .pix-form__actions {
88
88
  display: flex;
89
+ gap: 4px;
89
90
  justify-content: center;
90
91
 
91
92
  & > .pix-button:first-child {
@@ -1,12 +1,11 @@
1
1
  import { Meta, Story, Canvas } from '@storybook/addon-docs';
2
- import * as stories from './form.stories.js';
2
+ import * as stories from './form.stories';
3
3
 
4
- <Meta title="Form/Example" />
4
+ <Meta of={stories} />
5
5
 
6
6
  # Formulaire avec les composants Pix UI
7
7
 
8
8
  Un formulaire complet avec les composants Pix UI :
9
9
 
10
- <Canvas>
11
- <Story name="Form" story={stories.form} height={700} />
12
- </Canvas>
10
+ <Story of={stories.form} height={700} />
11
+
@@ -2,7 +2,7 @@ import { hbs } from 'ember-cli-htmlbars';
2
2
  import { action } from '@storybook/addon-actions';
3
3
 
4
4
  export default {
5
- title: 'Form',
5
+ title: 'Form/Exemple de formulaire',
6
6
  };
7
7
 
8
8
  export const form = (args) => {
@@ -83,16 +83,21 @@ export const form = (args) => {
83
83
 
84
84
  <br /><br />
85
85
 
86
- <div class='pix-form__actions'>
87
- <PixButton
88
- @triggerAction={{this.cancel}}
89
- @backgroundColor='transparent-light'
90
- @isBorderVisible={{true}}
91
- >
92
- Annuler
93
- </PixButton>
94
- <PixButton @type='submit'>Envoyer mes réponses</PixButton>
95
- </div>
86
+ <ul class='pix-form__actions'>
87
+ <li>
88
+ <PixButtonLink
89
+ @route=''
90
+ @model=''
91
+ @backgroundColor='transparent-light'
92
+ @isBorderVisible={{true}}
93
+ >
94
+ Annuler
95
+ </PixButtonLink>
96
+ </li>
97
+ <li>
98
+ <PixButton @type='submit'>Envoyer mes réponses</PixButton>
99
+ </li>
100
+ </ul>
96
101
  </form>`,
97
102
  context: args,
98
103
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/pix-ui",
3
- "version": "42.0.2",
3
+ "version": "42.0.3",
4
4
  "description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
5
5
  "keywords": [
6
6
  "ember-addon"