@1024pix/pix-ui 23.0.0 → 23.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/.storybook/preview.js +1 -0
- package/CHANGELOG.md +30 -0
- package/addon/components/pix-pagination.hbs +3 -1
- package/addon/components/pix-pagination.js +2 -2
- package/addon/components/pix-select.hbs +1 -0
- package/addon/styles/_pix-filter-banner.scss +0 -1
- package/addon/styles/_pix-select.scss +1 -0
- package/app/stories/form.stories.mdx +0 -2
- package/app/stories/pix-background-header.stories.mdx +0 -2
- package/app/stories/pix-banner.stories.mdx +0 -2
- package/app/stories/pix-block.stories.mdx +0 -2
- package/app/stories/pix-button-link.stories.mdx +0 -2
- package/app/stories/pix-button-upload.stories.mdx +0 -2
- package/app/stories/pix-button.stories.mdx +0 -2
- package/app/stories/pix-checkbox.stories.mdx +0 -2
- package/app/stories/pix-collapsible.stories.mdx +0 -1
- package/app/stories/pix-dropdown.stories.mdx +0 -1
- package/app/stories/pix-filter-banner.stories.js +3 -4
- package/app/stories/pix-filter-banner.stories.mdx +0 -2
- package/app/stories/pix-filterable-and-searchable-select.stories.js +3 -3
- package/app/stories/pix-icon-button.stories.mdx +0 -2
- package/app/stories/pix-input-code.stories.mdx +0 -2
- package/app/stories/pix-input-password.stories.mdx +0 -2
- package/app/stories/pix-input.stories.mdx +0 -2
- package/app/stories/pix-message.stories.mdx +0 -2
- package/app/stories/pix-modal.stories.mdx +0 -2
- package/app/stories/pix-multi-select.stories.js +4 -2
- package/app/stories/pix-multi-select.stories.mdx +0 -1
- package/app/stories/pix-pagination.stories.mdx +2 -3
- package/app/stories/pix-progress-gauge.stories.mdx +0 -2
- package/app/stories/pix-radio-button.stories.mdx +0 -2
- package/app/stories/pix-return-to.stories.mdx +0 -2
- package/app/stories/pix-select.stories.js +13 -8
- package/app/stories/pix-select.stories.mdx +0 -1
- package/app/stories/pix-selectable-tag.stories.mdx +0 -2
- package/app/stories/pix-sidebar.stories.mdx +0 -2
- package/app/stories/pix-stars.stories.mdx +0 -2
- package/app/stories/pix-tag.stories.mdx +0 -2
- package/app/stories/pix-textarea.stories.mdx +0 -2
- package/app/stories/pix-toggle.stories.mdx +4 -2
- package/app/stories/pix-tooltip.stories.mdx +0 -2
- package/docs/create-component.stories.mdx +0 -2
- package/package.json +1 -2
package/.storybook/preview.js
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,34 @@
|
|
|
1
1
|
# Pix-UI Changelog
|
|
2
2
|
|
|
3
|
+
## v23.0.1 (09/12/2022)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### :building_construction: Tech
|
|
7
|
+
- [#304](https://github.com/1024pix/pix-ui/pull/304) [TECH] Enlever le reset-css et ajouter attributes dans PixSelect(PIX-6504)
|
|
8
|
+
|
|
9
|
+
### :coffee: Autre
|
|
10
|
+
- [#303](https://github.com/1024pix/pix-ui/pull/303) [DOCS] Ajouter des infos sur les breaking changes des v22 & v23 dans le changelog
|
|
11
|
+
|
|
3
12
|
## v23.0.0 (08/12/2022)
|
|
4
13
|
|
|
14
|
+
### :warning: Breaking Change
|
|
15
|
+
**PixModal** :
|
|
16
|
+
* Les boutons d'actions dans le footer ne sont plus alignés à droite par défaut. Pour garder le comportement précédant, il faut reprendre ce bout de code :
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
ul {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
gap: $spacing-s;
|
|
23
|
+
margin-bottom: $spacing-s;
|
|
24
|
+
|
|
25
|
+
@include device-is('tablet') {
|
|
26
|
+
flex-direction: row;
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
justify-content: flex-end;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
```
|
|
5
32
|
|
|
6
33
|
### :rocket: Amélioration
|
|
7
34
|
- [#285](https://github.com/1024pix/pix-ui/pull/285) [FEATURE] Améliorer l'accessibilité de PixModal (PIX-6265)
|
|
@@ -19,6 +46,9 @@
|
|
|
19
46
|
## v22.0.0 (08/12/2022)
|
|
20
47
|
|
|
21
48
|
|
|
49
|
+
### :warning: Breaking Change
|
|
50
|
+
Ember v4 obligatoire.
|
|
51
|
+
|
|
22
52
|
### :rocket: Amélioration
|
|
23
53
|
- [#288](https://github.com/1024pix/pix-ui/pull/288) [FEATURE] Ajout le composant PixToggle (PIX-6427)
|
|
24
54
|
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
<span class="pagination-size__label">{{this.beforeResultsPerPage}}</span>
|
|
4
4
|
<PixSelect
|
|
5
5
|
@label={{this.selectPageSizeLabel}}
|
|
6
|
+
@placeholder={{this.pageSize}}
|
|
6
7
|
@screenReaderOnly={{true}}
|
|
7
8
|
class="pagination-size__choice"
|
|
8
|
-
@
|
|
9
|
+
@value={{this.pageSize}}
|
|
10
|
+
@hideDefaultOption={{true}}
|
|
9
11
|
@onChange={{this.changePageSize}}
|
|
10
12
|
@options={{this.pageOptions}}
|
|
11
13
|
/>
|
|
@@ -105,8 +105,8 @@ export default class PixPagination extends Component {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
@action
|
|
108
|
-
changePageSize(
|
|
109
|
-
this.router.replaceWith({ queryParams: { pageSize:
|
|
108
|
+
changePageSize(value) {
|
|
109
|
+
this.router.replaceWith({ queryParams: { pageSize: value, pageNumber: 1 } });
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
@action
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
import * as stories from './form.stories.js';
|
|
4
3
|
|
|
5
4
|
<Meta
|
|
6
5
|
title='Form/Example'
|
|
7
|
-
decorators={[centered]}
|
|
8
6
|
/>
|
|
9
7
|
|
|
10
8
|
# Formulaire avec les composants Pix UI
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
import * as stories from './pix-background-header.stories.js';
|
|
4
3
|
|
|
5
4
|
<Meta
|
|
6
5
|
title='Layout/Background Header'
|
|
7
6
|
component='PixBackgroundHeader'
|
|
8
|
-
decorators={[centered]}
|
|
9
7
|
/>
|
|
10
8
|
|
|
11
9
|
# Pix Background Header
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
import * as stories from './pix-banner.stories.js';
|
|
4
3
|
|
|
5
4
|
<Meta
|
|
6
5
|
title='Notification/Banner'
|
|
7
6
|
component='PixBanner'
|
|
8
|
-
decorators={[centered]}
|
|
9
7
|
argTypes={stories.argsTypes}
|
|
10
8
|
/>
|
|
11
9
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
import * as stories from './pix-block.stories.js';
|
|
4
3
|
|
|
5
4
|
<Meta
|
|
6
5
|
title='Layout/Block'
|
|
7
6
|
component='PixBlock'
|
|
8
|
-
decorators={[centered]}
|
|
9
7
|
argTypes={stories.argTypes}
|
|
10
8
|
/>
|
|
11
9
|
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
|
|
4
3
|
import * as stories from './pix-button-link.stories.js';
|
|
5
4
|
|
|
6
5
|
<Meta
|
|
7
6
|
title='Basics/ButtonLink'
|
|
8
7
|
component='PixButtonLink'
|
|
9
|
-
decorators={[centered]}
|
|
10
8
|
argTypes={stories.argTypes}
|
|
11
9
|
/>
|
|
12
10
|
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
|
|
4
3
|
import * as stories from './pix-button-upload.stories.js';
|
|
5
4
|
|
|
6
5
|
<Meta
|
|
7
6
|
title='Basics/ButtonUpload'
|
|
8
7
|
component='PixButtonUpload'
|
|
9
|
-
decorators={[centered]}
|
|
10
8
|
argTypes={stories.argTypes}
|
|
11
9
|
/>
|
|
12
10
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable, SourceContainer } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
import * as stories from './pix-button.stories.js';
|
|
4
3
|
|
|
5
4
|
<Meta
|
|
6
5
|
title='Basics/Button'
|
|
7
6
|
component='PixButton'
|
|
8
|
-
decorators={[centered]}
|
|
9
7
|
argTypes={stories.argsTypes}
|
|
10
8
|
/>
|
|
11
9
|
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
|
|
4
3
|
import * as stories from './pix-checkbox.stories.js';
|
|
5
4
|
|
|
6
5
|
<Meta
|
|
7
6
|
title='Form/Checkbox'
|
|
8
7
|
component='PixCheckbox'
|
|
9
|
-
decorators={[centered]}
|
|
10
8
|
argTypes={stories.argTypes}
|
|
11
9
|
/>
|
|
12
10
|
|
|
@@ -9,10 +9,9 @@ export const filterBanner = (args) => {
|
|
|
9
9
|
@clearFiltersLabel={{this.clearFiltersLabel}}
|
|
10
10
|
@onClearFilters={{this.onClearFilters}}
|
|
11
11
|
>
|
|
12
|
-
<PixSelect @options={{this.options}} @onChange={{this.onChange}} />
|
|
13
|
-
<PixSelect @options={{this.options}} @onChange={{this.onChange}} />
|
|
14
|
-
<PixSelect @options={{this.options}} @onChange={{this.onChange}} />
|
|
15
|
-
<PixSelect @options={{this.options}} @onChange={{this.onChange}} />
|
|
12
|
+
<PixSelect @options={{this.options}} @onChange={{this.onChange}} @label="mon label" @screenReaderOnly={{true}} @placeholder="placeholer"/>
|
|
13
|
+
<PixSelect @options={{this.options}} @onChange={{this.onChange}} @label="mon label" @screenReaderOnly={{true}} @placeholder="placeholer"/>
|
|
14
|
+
<PixSelect @options={{this.options}} @onChange={{this.onChange}} @label="mon label" @screenReaderOnly={{true}} @placeholder="placeholer"/>
|
|
16
15
|
</PixFilterBanner>`,
|
|
17
16
|
context: args,
|
|
18
17
|
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
import * as stories from './pix-filter-banner.stories.js';
|
|
4
3
|
|
|
5
4
|
<Meta
|
|
6
5
|
title='Form/Filter banner'
|
|
7
6
|
component='PixFilterBanner'
|
|
8
|
-
decorators={[centered]}
|
|
9
7
|
argTypes={stories.argTypes}
|
|
10
8
|
/>
|
|
11
9
|
|
|
@@ -155,7 +155,7 @@ export const argTypes = {
|
|
|
155
155
|
searchLabel: {
|
|
156
156
|
name: 'searchLabel',
|
|
157
157
|
description:
|
|
158
|
-
'Label de la recherche dans le menu déroulant du select. Obligatoire uniquement si le isSearchable est à true.',
|
|
158
|
+
'Label de la recherche dans le menu déroulant du select. **⚠️ Obligatoire uniquement si le `isSearchable` est à true. ⚠️**',
|
|
159
159
|
type: { name: 'string', required: false },
|
|
160
160
|
table: {
|
|
161
161
|
type: { summary: 'string' },
|
|
@@ -164,7 +164,7 @@ export const argTypes = {
|
|
|
164
164
|
searchPlaceholder: {
|
|
165
165
|
name: 'searchPlaceholder',
|
|
166
166
|
description:
|
|
167
|
-
'Placeholder de la recherche dans le menu déroulant du select. Obligatoire uniquement si le isSearchable est à true.',
|
|
167
|
+
'Placeholder de la recherche dans le menu déroulant du select. **⚠️ Obligatoire uniquement si le `isSearchable` est à true. ⚠️**',
|
|
168
168
|
type: { name: 'string', required: false },
|
|
169
169
|
table: {
|
|
170
170
|
type: { summary: 'string' },
|
|
@@ -173,7 +173,7 @@ export const argTypes = {
|
|
|
173
173
|
emptySearchMessage: {
|
|
174
174
|
name: 'emptySearchMessage',
|
|
175
175
|
description:
|
|
176
|
-
"Message affiché si la recherche dans le select ne retourne pas d'options. Obligatoire uniquement si le isSearchable est à true.",
|
|
176
|
+
"Message affiché si la recherche dans le select ne retourne pas d'options. **⚠️ Obligatoire uniquement si le `isSearchable` est à true. ⚠️**",
|
|
177
177
|
type: { name: 'string', required: false },
|
|
178
178
|
table: {
|
|
179
179
|
type: { summary: 'string' },
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
import * as stories from './pix-icon-button.stories.js';
|
|
4
3
|
|
|
5
4
|
<Meta
|
|
6
5
|
title="Basics/Icon button"
|
|
7
6
|
component="PixIconButton"
|
|
8
|
-
decorators={[centered]}
|
|
9
7
|
argTypes={stories.argTypes}
|
|
10
8
|
/>
|
|
11
9
|
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
|
|
4
3
|
import * as stories from './pix-input-code.stories.js';
|
|
5
4
|
|
|
6
5
|
<Meta
|
|
7
6
|
title='Form/Inputs/Code'
|
|
8
7
|
component='PixInputCode'
|
|
9
|
-
decorators={[centered]}
|
|
10
8
|
argTypes={stories.argTypes}
|
|
11
9
|
/>
|
|
12
10
|
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
|
|
4
3
|
import * as stories from './pix-input-password.stories.js';
|
|
5
4
|
|
|
6
5
|
<Meta
|
|
7
6
|
title='Form/Inputs/Password'
|
|
8
7
|
component='PixInputPassword'
|
|
9
|
-
decorators={[centered]}
|
|
10
8
|
argTypes={stories.argTypes}
|
|
11
9
|
/>
|
|
12
10
|
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
|
|
4
3
|
import * as stories from './pix-input.stories.js';
|
|
5
4
|
|
|
6
5
|
<Meta
|
|
7
6
|
title='Form/Inputs/Input'
|
|
8
7
|
component='PixInput'
|
|
9
|
-
decorators={[centered]}
|
|
10
8
|
argTypes={stories.argTypes}
|
|
11
9
|
/>
|
|
12
10
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
import * as stories from './pix-message.stories.js';
|
|
4
3
|
|
|
5
4
|
<Meta
|
|
6
5
|
title='Notification/Message'
|
|
7
6
|
component='PixMessage'
|
|
8
|
-
decorators={[centered]}
|
|
9
7
|
argTypes={stories.argTypes}
|
|
10
8
|
/>
|
|
11
9
|
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
|
|
4
3
|
import * as stories from './pix-modal.stories.js';
|
|
5
4
|
|
|
6
5
|
<Meta
|
|
7
6
|
title="Basics/Modal"
|
|
8
7
|
component="PixModal"
|
|
9
|
-
decorators={[centered]}
|
|
10
8
|
argTypes={stories.argTypes}
|
|
11
9
|
/>
|
|
12
10
|
|
|
@@ -140,7 +140,8 @@ multiSelectWithYield.args = {
|
|
|
140
140
|
export const argTypes = {
|
|
141
141
|
id: {
|
|
142
142
|
name: 'id',
|
|
143
|
-
description:
|
|
143
|
+
description:
|
|
144
|
+
"Permet l'accessibilité du composant attribuant des ``for`` pour chaque entité. **⚠️ L'`id` est obligatoire que si le `label` n'est pas donné. ⚠️**",
|
|
144
145
|
type: { name: 'string' },
|
|
145
146
|
},
|
|
146
147
|
placeholder: {
|
|
@@ -152,7 +153,8 @@ export const argTypes = {
|
|
|
152
153
|
},
|
|
153
154
|
label: {
|
|
154
155
|
name: 'label',
|
|
155
|
-
description:
|
|
156
|
+
description:
|
|
157
|
+
"Donne un label au champ qui sera celui vocalisé par le lecteur d'écran. **⚠️ Le`label` est obligatoire que si l'`id` n'est pas donné. ⚠️**",
|
|
156
158
|
type: { name: 'string' },
|
|
157
159
|
defaultValue: 'Label du champ',
|
|
158
160
|
},
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
|
|
4
3
|
import * as stories from './pix-pagination.stories.js';
|
|
5
4
|
|
|
@@ -55,8 +54,8 @@ Sur mobile, le select qui permet de choisir le nombre d'élément à afficher su
|
|
|
55
54
|
<PixPagination
|
|
56
55
|
@pagination={{pagination}}
|
|
57
56
|
@locale = {{locale}}
|
|
58
|
-
@pageOptions = {{pageOptions}
|
|
59
|
-
@isCondensed = {{isCondensed}
|
|
57
|
+
@pageOptions = {{pageOptions}}
|
|
58
|
+
@isCondensed = {{isCondensed}}
|
|
60
59
|
/>
|
|
61
60
|
```
|
|
62
61
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
import * as stories from './pix-progress-gauge.stories.js';
|
|
4
3
|
|
|
5
4
|
<Meta
|
|
6
5
|
title='Others/Progress Gauge'
|
|
7
6
|
component='PixProgressGauge'
|
|
8
|
-
decorators={[centered]}
|
|
9
7
|
argTypes={stories.argTypes}
|
|
10
8
|
/>
|
|
11
9
|
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
|
|
4
3
|
import * as stories from './pix-radio-button.stories.js';
|
|
5
4
|
|
|
6
5
|
<Meta
|
|
7
6
|
title='Form/Radio Button'
|
|
8
7
|
component='PixRadioButton'
|
|
9
|
-
decorators={[centered]}
|
|
10
8
|
argTypes={stories.argTypes}
|
|
11
9
|
/>
|
|
12
10
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
import * as stories from './pix-return-to.stories.js';
|
|
4
3
|
|
|
5
4
|
<Meta
|
|
6
5
|
title='Basics/Return To'
|
|
7
6
|
component='PixReturnTo'
|
|
8
|
-
decorators={[centered]}
|
|
9
7
|
argTypes={stories.argTypes}
|
|
10
8
|
/>
|
|
11
9
|
|
|
@@ -211,7 +211,8 @@ export const argTypes = {
|
|
|
211
211
|
},
|
|
212
212
|
id: {
|
|
213
213
|
name: 'id',
|
|
214
|
-
description:
|
|
214
|
+
description:
|
|
215
|
+
"Un identifiant unique placé sur le composant. **⚠️ L'`id` est obligatoire que si le `label` n'est pas donné. ⚠️**",
|
|
215
216
|
type: { name: 'string', required: false },
|
|
216
217
|
table: {
|
|
217
218
|
type: { summary: 'string' },
|
|
@@ -219,7 +220,8 @@ export const argTypes = {
|
|
|
219
220
|
},
|
|
220
221
|
label: {
|
|
221
222
|
name: 'label',
|
|
222
|
-
description:
|
|
223
|
+
description:
|
|
224
|
+
"Label du menu déroulant. ** ⚠️ Le `label` est obligatoire que si l'`id` n'est pas donné. ⚠️ **",
|
|
223
225
|
type: { name: 'string', required: false },
|
|
224
226
|
table: {
|
|
225
227
|
type: { summary: 'string' },
|
|
@@ -260,24 +262,27 @@ export const argTypes = {
|
|
|
260
262
|
},
|
|
261
263
|
searchLabel: {
|
|
262
264
|
name: 'searchLabel',
|
|
263
|
-
description:
|
|
264
|
-
|
|
265
|
+
description:
|
|
266
|
+
'Label de la recherche dans le menu déroulant. **⚠️ Le `searchLabel` est obligatoire que si le `isSearchable` à `true`. ⚠️**',
|
|
267
|
+
type: { name: 'string', required: false },
|
|
265
268
|
table: {
|
|
266
269
|
type: { summary: 'string' },
|
|
267
270
|
},
|
|
268
271
|
},
|
|
269
272
|
searchPlaceholder: {
|
|
270
273
|
name: 'searchPlaceholder',
|
|
271
|
-
description:
|
|
272
|
-
|
|
274
|
+
description:
|
|
275
|
+
'Placeholder de la recherche dans le menu déroulant. **⚠️ Le `searchPlaceholder` est obligatoire que si le `isSearchable` à `true`. ⚠️**',
|
|
276
|
+
type: { name: 'string', required: false },
|
|
273
277
|
table: {
|
|
274
278
|
type: { summary: 'string' },
|
|
275
279
|
},
|
|
276
280
|
},
|
|
277
281
|
emptySearchMessage: {
|
|
278
282
|
name: 'emptySearchMessage',
|
|
279
|
-
description:
|
|
280
|
-
|
|
283
|
+
description:
|
|
284
|
+
"Message affiché si la recherche ne retourne pas d'options. **⚠️ Le `emptySearchMessage` est obligatoire que si le `isSearchable` à `true`. ⚠️**",
|
|
285
|
+
type: { name: 'string', required: false },
|
|
281
286
|
table: {
|
|
282
287
|
type: { summary: 'string' },
|
|
283
288
|
},
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
|
|
4
3
|
import * as stories from './pix-selectable-tag.stories.js';
|
|
5
4
|
|
|
6
5
|
<Meta
|
|
7
6
|
title='basics/Tag/Selectable Tag'
|
|
8
7
|
component='PixSelectableTag'
|
|
9
|
-
decorators={[centered]}
|
|
10
8
|
argTypes={stories.argTypes}
|
|
11
9
|
/>
|
|
12
10
|
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
|
|
4
3
|
import * as stories from './pix-sidebar.stories.js';
|
|
5
4
|
|
|
6
5
|
<Meta
|
|
7
6
|
title="Basics/Sidebar"
|
|
8
7
|
component="PixSidebar"
|
|
9
|
-
decorators={[centered]}
|
|
10
8
|
argTypes={stories.argTypes}
|
|
11
9
|
/>
|
|
12
10
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
import * as stories from './pix-stars.stories.js';
|
|
4
3
|
|
|
5
4
|
<Meta
|
|
6
5
|
title='Others/PixStars'
|
|
7
6
|
component='PixStars'
|
|
8
|
-
decorators={[centered]}
|
|
9
7
|
argTypes={stories.argTypes}
|
|
10
8
|
/>
|
|
11
9
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
import * as stories from './pix-tag.stories.js';
|
|
4
3
|
|
|
5
4
|
<Meta
|
|
6
5
|
title='Basics/Tag'
|
|
7
6
|
component='PixTag'
|
|
8
|
-
decorators={[centered]}
|
|
9
7
|
argTypes={stories.argTypes}
|
|
10
8
|
/>
|
|
11
9
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
import * as stories from './pix-textarea.stories.js';
|
|
4
3
|
|
|
5
4
|
<Meta
|
|
6
5
|
title='Form/Textarea'
|
|
7
6
|
component='PixTextarea'
|
|
8
|
-
decorators={[centered]}
|
|
9
7
|
argTypes={stories.argTypes}
|
|
10
8
|
/>
|
|
11
9
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
import * as stories from './pix-toggle.stories.js';
|
|
4
3
|
|
|
5
4
|
<Meta
|
|
@@ -8,7 +7,7 @@ import * as stories from './pix-toggle.stories.js';
|
|
|
8
7
|
argTypes={stories.argTypes}
|
|
9
8
|
/>
|
|
10
9
|
|
|
11
|
-
# Pix
|
|
10
|
+
# Pix Toggle
|
|
12
11
|
|
|
13
12
|
Affiche un bouton à deux états.
|
|
14
13
|
|
|
@@ -36,3 +35,6 @@ Affiche un bouton à deux états.
|
|
|
36
35
|
<Story name='WithYields' story={stories.WithYields} height={200} />
|
|
37
36
|
</Canvas>
|
|
38
37
|
|
|
38
|
+
## Arguments
|
|
39
|
+
|
|
40
|
+
<ArgsTable story="Default" />
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import centered from '@storybook/addon-centered/ember';
|
|
3
2
|
import * as stories from './pix-tooltip.stories.js';
|
|
4
3
|
|
|
5
4
|
<Meta
|
|
6
5
|
title='Basics/Tooltip'
|
|
7
6
|
component='PixTooltip'
|
|
8
|
-
decorators={[centered]}
|
|
9
7
|
argTypes={stories.argTypes}
|
|
10
8
|
/>
|
|
11
9
|
|
|
@@ -77,7 +77,6 @@ export const argTypes = {
|
|
|
77
77
|
```markdown
|
|
78
78
|
{/* pix-message.stories.mdx */}
|
|
79
79
|
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
80
|
-
import centered from '@storybook/addon-centered/ember';
|
|
81
80
|
import * as stories from './pix-message.stories.js';
|
|
82
81
|
|
|
83
82
|
{/* Titre de la section affichée dans le menu de storybook */}
|
|
@@ -85,7 +84,6 @@ import * as stories from './pix-message.stories.js';
|
|
|
85
84
|
<Meta
|
|
86
85
|
title='Notification/Message'
|
|
87
86
|
component='PixMessage'
|
|
88
|
-
decorators={[centered]}
|
|
89
87
|
argTypes={stories.argTypes}
|
|
90
88
|
/>
|
|
91
89
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1024pix/pix-ui",
|
|
3
|
-
"version": "23.0.
|
|
3
|
+
"version": "23.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"
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
"@glimmer/component": "^1.1.2",
|
|
67
67
|
"@glimmer/tracking": "^1.1.2",
|
|
68
68
|
"@storybook/addon-a11y": "^6.5.13",
|
|
69
|
-
"@storybook/addon-centered": "^5.3.21",
|
|
70
69
|
"@storybook/addon-controls": "^6.5.13",
|
|
71
70
|
"@storybook/addon-docs": "^6.5.13",
|
|
72
71
|
"@storybook/addon-essentials": "^6.5.13",
|