@1024pix/pix-ui 42.0.2 → 42.0.4
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.
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
white-space: nowrap;
|
|
9
9
|
text-decoration: none;
|
|
10
10
|
background-color: var(--pix-primary-500);
|
|
11
|
-
border:
|
|
11
|
+
border: 2px solid transparent;
|
|
12
12
|
outline: none;
|
|
13
13
|
cursor: pointer;
|
|
14
14
|
|
|
@@ -240,3 +240,8 @@
|
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
+
|
|
244
|
+
.pix-button-link,
|
|
245
|
+
.pix-button-upload {
|
|
246
|
+
line-height: initial;
|
|
247
|
+
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Meta, Story, Canvas } from '@storybook/addon-docs';
|
|
2
|
-
import * as stories from './form.stories
|
|
2
|
+
import * as stories from './form.stories';
|
|
3
3
|
|
|
4
|
-
<Meta
|
|
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
|
-
<
|
|
11
|
-
|
|
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,26 @@ export const form = (args) => {
|
|
|
83
83
|
|
|
84
84
|
<br /><br />
|
|
85
85
|
|
|
86
|
-
<
|
|
87
|
-
<
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
+
<li>
|
|
101
|
+
<PixButtonUpload @id='file-upload' accept='.csv'>
|
|
102
|
+
Importer un fichier
|
|
103
|
+
</PixButtonUpload>
|
|
104
|
+
</li>
|
|
105
|
+
</ul>
|
|
96
106
|
</form>`,
|
|
97
107
|
context: args,
|
|
98
108
|
};
|