@1024pix/pix-ui 37.0.0 → 38.1.0

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.
Files changed (99) hide show
  1. package/.circleci/config.yml +1 -1
  2. package/.storybook/main.js +7 -5
  3. package/.storybook/preview.js +35 -32
  4. package/CHANGELOG.md +20 -0
  5. package/addon/styles/_pix-button-base.scss +1 -0
  6. package/app/stories/form.stories.js +4 -0
  7. package/app/stories/{pix-background-header.stories.mdx → pix-background-header.mdx} +6 -6
  8. package/app/stories/pix-background-header.stories.js +4 -0
  9. package/app/stories/{pix-banner.stories.mdx → pix-banner.mdx} +19 -30
  10. package/app/stories/pix-banner.stories.js +49 -46
  11. package/app/stories/{pix-block.stories.mdx → pix-block.mdx} +5 -7
  12. package/app/stories/pix-block.stories.js +14 -11
  13. package/app/stories/{pix-button-link.stories.mdx → pix-button-link.mdx} +6 -14
  14. package/app/stories/pix-button-link.stories.js +87 -87
  15. package/app/stories/{pix-button-upload.stories.mdx → pix-button-upload.mdx} +5 -8
  16. package/app/stories/pix-button-upload.stories.js +62 -59
  17. package/app/stories/{pix-button.stories.mdx → pix-button.mdx} +15 -28
  18. package/app/stories/pix-button.stories.js +152 -149
  19. package/app/stories/pix-checkbox.mdx +71 -0
  20. package/app/stories/pix-checkbox.stories.js +69 -66
  21. package/app/stories/pix-collapsible.mdx +31 -0
  22. package/app/stories/pix-collapsible.stories.js +16 -13
  23. package/app/stories/{pix-dropdown.stories.mdx → pix-dropdown.mdx} +9 -17
  24. package/app/stories/pix-dropdown.stories.js +114 -110
  25. package/app/stories/{pix-filter-banner.stories.mdx → pix-filter-banner.mdx} +5 -7
  26. package/app/stories/pix-filter-banner.stories.js +36 -33
  27. package/app/stories/{pix-filterable-and-searchable-select.stories.mdx → pix-filterable-and-searchable-select.mdx} +7 -17
  28. package/app/stories/pix-filterable-and-searchable-select.stories.js +136 -133
  29. package/app/stories/{pix-icon-button.stories.mdx → pix-icon-button.mdx} +8 -16
  30. package/app/stories/pix-icon-button.stories.js +60 -57
  31. package/app/stories/{pix-indicator-card.stories.mdx → pix-indicator-card.mdx} +6 -10
  32. package/app/stories/pix-indicator-card.stories.js +37 -34
  33. package/app/stories/{pix-input-code.stories.mdx → pix-input-code.mdx} +5 -7
  34. package/app/stories/pix-input-code.stories.js +55 -52
  35. package/app/stories/{pix-input-password.stories.mdx → pix-input-password.mdx} +22 -23
  36. package/app/stories/pix-input-password.stories.js +60 -57
  37. package/app/stories/{pix-input.stories.mdx → pix-input.mdx} +14 -20
  38. package/app/stories/pix-input.stories.js +55 -52
  39. package/app/stories/pix-message.mdx +54 -0
  40. package/app/stories/pix-message.stories.js +40 -36
  41. package/app/stories/{pix-modal.stories.mdx → pix-modal.mdx} +5 -7
  42. package/app/stories/pix-modal.stories.js +31 -30
  43. package/app/stories/{pix-multi-select.stories.mdx → pix-multi-select.mdx} +9 -21
  44. package/app/stories/pix-multi-select.stories.js +106 -99
  45. package/app/stories/{pix-pagination.stories.mdx → pix-pagination.mdx} +8 -16
  46. package/app/stories/pix-pagination.stories.js +114 -111
  47. package/app/stories/{pix-progress-gauge.stories.mdx → pix-progress-gauge.mdx} +6 -10
  48. package/app/stories/pix-progress-gauge.stories.js +43 -40
  49. package/app/stories/{pix-radio-button.stories.mdx → pix-radio-button.mdx} +13 -15
  50. package/app/stories/pix-radio-button.stories.js +35 -32
  51. package/app/stories/pix-return-to.mdx +34 -0
  52. package/app/stories/pix-return-to.stories.js +32 -32
  53. package/app/stories/{pix-search-input.stories.mdx → pix-search-input.mdx} +5 -7
  54. package/app/stories/pix-search-input.stories.js +56 -52
  55. package/app/stories/{pix-select.stories.mdx → pix-select.mdx} +12 -28
  56. package/app/stories/pix-select.stories.js +171 -168
  57. package/app/stories/pix-selectable-tag.mdx +37 -0
  58. package/app/stories/pix-selectable-tag.stories.js +37 -34
  59. package/app/stories/{pix-sidebar.stories.mdx → pix-sidebar.mdx} +5 -7
  60. package/app/stories/pix-sidebar.stories.js +28 -25
  61. package/app/stories/{pix-stars.stories.mdx → pix-stars.mdx} +5 -7
  62. package/app/stories/pix-stars.stories.js +29 -26
  63. package/app/stories/{pix-tag.stories.mdx → pix-tag.mdx} +9 -10
  64. package/app/stories/pix-tag.stories.js +39 -39
  65. package/app/stories/{pix-textarea.stories.mdx → pix-textarea.mdx} +6 -7
  66. package/app/stories/pix-textarea.stories.js +37 -39
  67. package/app/stories/pix-toggle.mdx +28 -0
  68. package/app/stories/pix-toggle.stories.js +52 -49
  69. package/app/stories/{pix-tooltip.stories.mdx → pix-tooltip.mdx} +14 -28
  70. package/app/stories/pix-tooltip.stories.js +57 -54
  71. package/docs/{architecture.stories.mdx → architecture.mdx} +1 -1
  72. package/docs/{breaking-changes.stories.mdx → breaking-changes.mdx} +1 -1
  73. package/docs/changelog.mdx +6 -0
  74. package/docs/{colors-palette.stories.mdx → colors-palette.mdx} +1 -3
  75. package/docs/{create-component.stories.mdx → create-component.mdx} +24 -30
  76. package/docs/{design-system.stories.mdx → design-system.mdx} +1 -1
  77. package/docs/{design-tokens.stories.mdx → design-tokens.mdx} +1 -1
  78. package/docs/{good-practices-a11y.stories.mdx → good-practices-a11y.mdx} +1 -1
  79. package/docs/{good-practices-design.stories.mdx → good-practices-design.mdx} +1 -1
  80. package/docs/{good-practices-responsive.stories.mdx → good-practices-responsive.mdx} +1 -1
  81. package/docs/{good-practices-style-css.stories.mdx → good-practices-style-css.mdx} +1 -1
  82. package/docs/{good-practices-tests.stories.mdx → good-practices-tests.mdx} +1 -1
  83. package/docs/{make-a-release.stories.mdx → make-a-release.mdx} +1 -1
  84. package/docs/{pix-design-tokens-dev.stories.mdx → pix-design-tokens-dev.mdx} +1 -1
  85. package/docs/{shadow.stories.mdx → shadow.mdx} +1 -1
  86. package/docs/{spacing.stories.mdx → spacing.mdx} +1 -1
  87. package/docs/{storybook.stories.mdx → storybook.mdx} +1 -1
  88. package/docs/{test-component-without-release.stories.mdx → test-component-without-release.mdx} +1 -1
  89. package/docs/{typography.stories.mdx → typography.mdx} +1 -3
  90. package/docs/{use-component.stories.mdx → use-component.mdx} +1 -1
  91. package/docs/{use-install.stories.mdx → use-install.mdx} +1 -1
  92. package/package.json +17 -20
  93. package/app/stories/pix-checkbox.stories.mdx +0 -73
  94. package/app/stories/pix-collapsible.stories.mdx +0 -36
  95. package/app/stories/pix-message.stories.mdx +0 -64
  96. package/app/stories/pix-return-to.stories.mdx +0 -33
  97. package/app/stories/pix-selectable-tag.stories.mdx +0 -43
  98. package/app/stories/pix-toggle.stories.mdx +0 -36
  99. package/docs/changelog.stories.mdx +0 -6
@@ -1,50 +1,50 @@
1
1
  import { hbs } from 'ember-cli-htmlbars';
2
2
 
3
- const Template = (args) => {
4
- return {
3
+ export default {
4
+ title: 'Basics/Tag',
5
+ render: (args) => ({
5
6
  template: hbs`<PixTag @color={{this.color}} @compact={{this.compact}}>
6
7
  Contenu du tag
7
8
  </PixTag>`,
8
9
  context: args,
9
- };
10
+ }),
11
+ argTypes: {
12
+ color: {
13
+ name: 'color',
14
+ description: 'Couleur du tag',
15
+ type: { name: 'number', required: false },
16
+ table: { defaultValue: { summary: 'blue' } },
17
+ control: {
18
+ type: 'select',
19
+ },
20
+ options: [
21
+ 'blue',
22
+ 'blue-light',
23
+ 'green',
24
+ 'green-light',
25
+ 'grey',
26
+ 'grey-light',
27
+ 'purple',
28
+ 'purple-light',
29
+ 'orange',
30
+ 'orange-light',
31
+ 'yellow',
32
+ 'yellow-light',
33
+ ],
34
+ },
35
+ compact: {
36
+ name: 'compact',
37
+ description: 'Tag compact ou non',
38
+ type: { name: 'boolean', required: false },
39
+ table: { defaultValue: { summary: false } },
40
+ },
41
+ },
10
42
  };
11
43
 
12
- export const tag = Template.bind({});
13
- tag.args = {};
44
+ export const tag = {};
14
45
 
15
- export const compactTag = Template.bind({});
16
- compactTag.args = {
17
- compact: true,
18
- };
19
-
20
- export const argTypes = {
21
- color: {
22
- name: 'color',
23
- description: 'Couleur du tag',
24
- type: { name: 'number', required: false },
25
- table: { defaultValue: { summary: 'blue' } },
26
- control: {
27
- type: 'select',
28
- },
29
- options: [
30
- 'blue',
31
- 'blue-light',
32
- 'green',
33
- 'green-light',
34
- 'grey',
35
- 'grey-light',
36
- 'purple',
37
- 'purple-light',
38
- 'orange',
39
- 'orange-light',
40
- 'yellow',
41
- 'yellow-light',
42
- ],
43
- },
44
- compact: {
45
- name: 'compact',
46
- description: 'Tag compact ou non',
47
- type: { name: 'boolean', required: false },
48
- table: { defaultValue: { summary: false } },
46
+ export const compactTag = {
47
+ args: {
48
+ compact: true,
49
49
  },
50
50
  };
@@ -1,7 +1,7 @@
1
- import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs';
2
- import * as stories from './pix-textarea.stories.js';
1
+ import { Meta, Story, ArgTypes } from '@storybook/blocks';
2
+ import * as ComponentStories from './pix-textarea.stories.js';
3
3
 
4
- <Meta title="Form/Textarea" component="PixTextarea" argTypes={stories.argTypes} />
4
+ <Meta of={ComponentStories} />
5
5
 
6
6
  # PixTextarea
7
7
 
@@ -11,9 +11,8 @@ Optionellement, il peut afficher le nombre de caractères tapés ainsi que le no
11
11
 
12
12
  > A noter qu'un `id` est nécessaire pour attribuer au textarea un label. Par ailleurs, l'attribut `value` permet de traiter son contenu.
13
13
 
14
- <Canvas>
15
- <Story name="PixTextarea" story={stories.textarea} height={100} />
16
- </Canvas>
14
+ <Story of={ComponentStories.textarea} height={100} />
15
+
17
16
 
18
17
  ## Usage
19
18
 
@@ -29,4 +28,4 @@ Optionellement, il peut afficher le nombre de caractères tapés ainsi que le no
29
28
 
30
29
  ## Arguments
31
30
 
32
- <ArgsTable story="PixTextarea" />
31
+ <ArgTypes of={ComponentStories} />
@@ -1,5 +1,42 @@
1
1
  import { hbs } from 'ember-cli-htmlbars';
2
2
 
3
+ export default {
4
+ title: 'Form/Textarea',
5
+ argTypes: {
6
+ id: {
7
+ name: 'id',
8
+ description: 'Identifiant du champ permettant de lui attacher un label',
9
+ type: { name: 'string', required: true },
10
+ },
11
+ value: {
12
+ name: 'value',
13
+ description: 'Valeur du champ',
14
+ type: { name: 'string', required: true },
15
+ },
16
+ maxlength: {
17
+ name: 'maxlength',
18
+ description: 'Nombre de caractères maximal à taper dans le champ',
19
+ type: { name: 'number', required: false },
20
+ },
21
+ label: {
22
+ name: 'label',
23
+ description: 'Donne un label au champ.',
24
+ type: { name: 'string', required: false },
25
+ },
26
+ requiredLabel: {
27
+ name: 'requiredLabel',
28
+ description:
29
+ 'Label indiquant que le champ est requis, le paramètre @label devient obligatoire avec ce paramètre.',
30
+ type: { name: 'string', required: false },
31
+ },
32
+ errorMessage: {
33
+ name: 'errorMessage',
34
+ description: 'Affiche une erreur en dessous du champ.',
35
+ type: { name: 'string', required: false },
36
+ },
37
+ },
38
+ };
39
+
3
40
  const Template = (args) => {
4
41
  return {
5
42
  template: hbs`<PixTextarea
@@ -19,42 +56,3 @@ textarea.args = {
19
56
  id: 'textarea',
20
57
  value: 'Contenu du textarea',
21
58
  };
22
-
23
- export const argTypes = {
24
- id: {
25
- name: 'id',
26
- description: 'Identifiant du champ permettant de lui attacher un label',
27
- type: { name: 'string', required: true },
28
- },
29
-
30
- value: {
31
- name: 'value',
32
- description: 'Valeur du champ',
33
- type: { name: 'string', required: true },
34
- },
35
-
36
- maxlength: {
37
- name: 'maxlength',
38
- description: 'Nombre de caractères maximal à taper dans le champ',
39
- type: { name: 'number', required: false },
40
- },
41
-
42
- label: {
43
- name: 'label',
44
- description: 'Donne un label au champ.',
45
- type: { name: 'string', required: false },
46
- },
47
-
48
- requiredLabel: {
49
- name: 'requiredLabel',
50
- description:
51
- 'Label indiquant que le champ est requis, le paramètre @label devient obligatoire avec ce paramètre.',
52
- type: { name: 'string', required: false },
53
- },
54
-
55
- errorMessage: {
56
- name: 'errorMessage',
57
- description: 'Affiche une erreur en dessous du champ.',
58
- type: { name: 'string', required: false },
59
- },
60
- };
@@ -0,0 +1,28 @@
1
+ import { Meta, Story, ArgTypes } from '@storybook/blocks';
2
+ import * as ComponentStories from './pix-toggle.stories.js';
3
+
4
+ <Meta of={ComponentStories}/>
5
+
6
+ # Pix Toggle
7
+
8
+ Affiche un bouton à deux états.
9
+
10
+ ## Default
11
+
12
+ <Story of={ComponentStories.Default} height={200} />
13
+
14
+ ## Inline
15
+
16
+ <Story of={ComponentStories.Inline} height={200} />
17
+
18
+ ## ScreenReaderOnly
19
+
20
+ <Story of={ComponentStories.ScreenReaderOnly} height={200} />
21
+
22
+ ## WithYields
23
+
24
+ <Story of={ComponentStories.WithYields} height={200} />
25
+
26
+ ## Arguments
27
+
28
+ <ArgTypes of={ComponentStories} />
@@ -1,6 +1,58 @@
1
1
  import { hbs } from 'ember-cli-htmlbars';
2
2
  import { action } from '@storybook/addon-actions';
3
3
 
4
+ export default {
5
+ title: 'Form/Toggle',
6
+ argTypes: {
7
+ label: {
8
+ name: 'label',
9
+ description: 'Le label du PixToggle',
10
+ type: { name: 'string', required: true },
11
+ },
12
+ onLabel: {
13
+ name: 'onLabel',
14
+ description: "Le label de l'état actif du PixToggle",
15
+ type: { name: 'string', required: false },
16
+ },
17
+ offLabel: {
18
+ name: 'offLabel',
19
+ description: "Le label de l'état non actif du PixToggle",
20
+ type: { name: 'string', required: false },
21
+ },
22
+ toggled: {
23
+ name: 'toggled',
24
+ description: 'Détermine si le PixToggle est activé',
25
+ type: { name: 'boolean', required: true },
26
+ },
27
+ onChange: {
28
+ name: 'onChange',
29
+ description: "Fonction à appeler quand le PixToggle change d'état.",
30
+ type: { required: true },
31
+ control: { disable: true },
32
+ },
33
+ inline: {
34
+ name: 'inline',
35
+ description: "Permet d'afficher le PixToggle sur une seule ligne",
36
+ control: { type: 'boolean' },
37
+ type: { name: 'boolean', required: false },
38
+ table: {
39
+ type: { summary: 'boolean' },
40
+ defaultValue: { summary: false },
41
+ },
42
+ },
43
+ screenReaderOnly: {
44
+ name: 'screenReaderOnly',
45
+ description: "Permet de rendre le label lisible uniquement par les lecteurs d'écran",
46
+ control: { type: 'boolean' },
47
+ type: { name: 'boolean', required: false },
48
+ table: {
49
+ type: { summary: 'boolean' },
50
+ defaultValue: { summary: false },
51
+ },
52
+ },
53
+ },
54
+ };
55
+
4
56
  export const Template = (args) => {
5
57
  return {
6
58
  template: hbs`
@@ -69,52 +121,3 @@ WithYields.args = {
69
121
  toggled: false,
70
122
  onChange: action('onChange'),
71
123
  };
72
-
73
- export const argTypes = {
74
- label: {
75
- name: 'label',
76
- description: 'Le label du PixToggle',
77
- type: { name: 'string', required: true },
78
- },
79
- onLabel: {
80
- name: 'onLabel',
81
- description: "Le label de l'état actif du PixToggle",
82
- type: { name: 'string', required: false },
83
- },
84
- offLabel: {
85
- name: 'offLabel',
86
- description: "Le label de l'état non actif du PixToggle",
87
- type: { name: 'string', required: false },
88
- },
89
- toggled: {
90
- name: 'toggled',
91
- description: 'Détermine si le PixToggle est activé',
92
- type: { name: 'boolean', required: true },
93
- },
94
- onChange: {
95
- name: 'onChange',
96
- description: "Fonction à appeler quand le PixToggle change d'état.",
97
- type: { required: true },
98
- control: { disable: true },
99
- },
100
- inline: {
101
- name: 'inline',
102
- description: "Permet d'afficher le PixToggle sur une seule ligne",
103
- control: { type: 'boolean' },
104
- type: { name: 'boolean', required: false },
105
- table: {
106
- type: { summary: 'boolean' },
107
- defaultValue: { summary: false },
108
- },
109
- },
110
- screenReaderOnly: {
111
- name: 'screenReaderOnly',
112
- description: "Permet de rendre le label lisible uniquement par les lecteurs d'écran",
113
- control: { type: 'boolean' },
114
- type: { name: 'boolean', required: false },
115
- table: {
116
- type: { summary: 'boolean' },
117
- defaultValue: { summary: false },
118
- },
119
- },
120
- };
@@ -1,7 +1,7 @@
1
- import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs';
2
- import * as stories from './pix-tooltip.stories.js';
1
+ import { Meta, Story, ArgTypes } from '@storybook/blocks';
2
+ import * as ComponentStories from './pix-tooltip.stories';
3
3
 
4
- <Meta title="Basics/Tooltip" component="PixTooltip" argTypes={stories.argTypes} />
4
+ <Meta of={ComponentStories} />
5
5
 
6
6
  # Pix Tooltip
7
7
 
@@ -59,10 +59,8 @@ Les tooltips doivent prendre un `@id` et être référencées par leur élément
59
59
 
60
60
  Infobulle en position `top`, fond sombre (par défaut).
61
61
 
62
- <Canvas>
63
- <Story name="Default" story={stories.Default} height={200} />
64
- <Story name="WithIcon" story={stories.WithIcon} height={200} />
65
- </Canvas>
62
+ <Story of={ComponentStories.Default} height={200} />
63
+ <Story of={ComponentStories.WithIcon} height={200} />
66
64
 
67
65
  ## Is Light
68
66
 
@@ -70,52 +68,40 @@ Infobulle en mode clair.
70
68
 
71
69
  > ⚠️ le tooltip "light" est à utiliser de préférence sur fond coloré ! Mais ce n'est pas obligatoire.
72
70
 
73
- <Canvas>
74
- <Story name="Is Light" story={stories.isLight} height={200} />
75
- </Canvas>
71
+ <Story of={ComponentStories.isLight} height={200} />
76
72
 
77
73
  ## Position
78
74
 
79
75
  Différentes positions de l'infobulle.
80
76
  Existe aussi `top-left`, `top-right`, `bottom-left` et `bottom-right`.
81
77
 
82
- <Canvas isColumn>
83
- <Story name="Left" story={stories.left} height={100} />
84
- <Story name="Right" story={stories.right} height={100} />
85
- <Story name="Bottom" story={stories.bottom} height={150} />
86
- </Canvas>
78
+ <Story of={ComponentStories.left} height={100} />
79
+ <Story of={ComponentStories.right} height={100} />
80
+ <Story of={ComponentStories.bottom} height={150} />
87
81
 
88
82
  ## Is Wide
89
83
 
90
84
  Infobulle en plus large.
91
85
 
92
- <Canvas>
93
- <Story name="Is Wide" story={stories.isWide} height={200} />
94
- </Canvas>
86
+ <Story of={ComponentStories.isWide} height={200} />
95
87
 
96
88
  ## Is Inline
97
89
 
98
90
  Infobulle dont le contenu reste sur une ligne.
99
91
 
100
- <Canvas>
101
- <Story name="Is Inline" story={stories.isInline} height={200} />
102
- </Canvas>
92
+ <Story of={ComponentStories.isInline} height={200} />
103
93
 
104
94
  ## With HTML
105
95
 
106
96
  Infobulle contenant des éléments HTML
107
97
 
108
- <Canvas>
109
- <Story name="WithHTML" story={stories.WithHTML} height={200} />
110
- </Canvas>
98
+ <Story of={ComponentStories.WithHTML} height={200} />
111
99
 
112
100
  ## Hide
113
101
 
114
102
  Cache la tooltip (par exemple si le contenu est vide).
115
103
 
116
- <Canvas>
117
- <Story name="Hide" story={stories.hide} height={200} />
118
- </Canvas>
104
+ <Story of={ComponentStories.hide} height={200} />
119
105
 
120
106
  ## Usage
121
107
 
@@ -193,4 +179,4 @@ Cache la tooltip (par exemple si le contenu est vide).
193
179
 
194
180
  ## Arguments
195
181
 
196
- <ArgsTable story="Default" />
182
+ <ArgTypes of={ComponentStories} />
@@ -1,5 +1,62 @@
1
1
  import { hbs } from 'ember-cli-htmlbars';
2
2
 
3
+ export default {
4
+ title: 'Basics/Tooltip',
5
+ argTypes: {
6
+ id: {
7
+ name: 'id',
8
+ description: 'Identifiant permettant de référencer le déclencheur via aria-describedby',
9
+ type: { name: 'string', required: true },
10
+ },
11
+ text: {
12
+ name: 'text',
13
+ description: 'Texte à afficher',
14
+ type: { name: 'string', required: false },
15
+ },
16
+ position: {
17
+ name: 'position',
18
+ description: 'Position de la tooltip',
19
+ type: { name: 'string', required: false },
20
+ table: { defaultValue: { summary: 'top' } },
21
+ control: { type: 'select' },
22
+ options: [
23
+ 'top',
24
+ 'top-left',
25
+ 'top-right',
26
+ 'right',
27
+ 'bottom',
28
+ 'bottom-left',
29
+ 'bottom-right',
30
+ 'left',
31
+ ],
32
+ },
33
+ isLight: {
34
+ name: 'isLight',
35
+ description: 'Affichage en mode clair',
36
+ type: { name: 'boolean', required: false },
37
+ table: { defaultValue: { summary: false } },
38
+ },
39
+ isInline: {
40
+ name: 'isInline',
41
+ description: 'Affichage en une seule ligne',
42
+ type: { name: 'boolean', required: false },
43
+ table: { defaultValue: { summary: false } },
44
+ },
45
+ isWide: {
46
+ name: 'isWide',
47
+ description: 'Affichage large',
48
+ type: { name: 'boolean', required: false },
49
+ table: { defaultValue: { summary: false } },
50
+ },
51
+ hide: {
52
+ name: 'hide',
53
+ description: 'Masquer la tooltip',
54
+ type: { name: 'boolean', required: false },
55
+ table: { defaultValue: { summary: false } },
56
+ },
57
+ },
58
+ };
59
+
3
60
  const Template = (args) => {
4
61
  return {
5
62
  template: hbs`<PixTooltip
@@ -131,57 +188,3 @@ hide.args = {
131
188
  text: "Ne devrait pas s'afficher",
132
189
  hide: true,
133
190
  };
134
-
135
- export const argTypes = {
136
- id: {
137
- name: 'id',
138
- description: 'Identifiant permettant de référencer le déclencheur via aria-describedby',
139
- type: { name: 'string', required: true },
140
- },
141
- text: {
142
- name: 'text',
143
- description: 'Texte à afficher',
144
- type: { name: 'string', required: false },
145
- },
146
- position: {
147
- name: 'position',
148
- description: 'Position de la tooltip',
149
- type: { name: 'string', required: false },
150
- table: { defaultValue: { summary: 'top' } },
151
- control: { type: 'select' },
152
- options: [
153
- 'top',
154
- 'top-left',
155
- 'top-right',
156
- 'right',
157
- 'bottom',
158
- 'bottom-left',
159
- 'bottom-right',
160
- 'left',
161
- ],
162
- },
163
- isLight: {
164
- name: 'isLight',
165
- description: 'Affichage en mode clair',
166
- type: { name: 'boolean', required: false },
167
- table: { defaultValue: { summary: false } },
168
- },
169
- isInline: {
170
- name: 'isInline',
171
- description: 'Affichage en une seule ligne',
172
- type: { name: 'boolean', required: false },
173
- table: { defaultValue: { summary: false } },
174
- },
175
- isWide: {
176
- name: 'isWide',
177
- description: 'Affichage large',
178
- type: { name: 'boolean', required: false },
179
- table: { defaultValue: { summary: false } },
180
- },
181
- hide: {
182
- name: 'hide',
183
- description: 'Masquer la tooltip',
184
- type: { name: 'boolean', required: false },
185
- table: { defaultValue: { summary: false } },
186
- },
187
- };
@@ -1,4 +1,4 @@
1
- import { Meta } from '@storybook/addon-docs';
1
+ import { Meta } from '@storybook/blocks';
2
2
 
3
3
  <Meta title="Développement/Architecture" />
4
4
 
@@ -1,4 +1,4 @@
1
- import { Meta } from '@storybook/addon-docs';
1
+ import { Meta } from '@storybook/blocks';
2
2
 
3
3
  <Meta title="Développement/Breaking changes" />
4
4
 
@@ -0,0 +1,6 @@
1
+ import Changelog from '../CHANGELOG.md';
2
+ import { Meta, Markdown } from '@storybook/blocks';
3
+
4
+ <Meta title="CHANGELOG" />
5
+
6
+ <Markdown>{Changelog}</Markdown>
@@ -1,6 +1,4 @@
1
- <!-- Colors.stories.mdx -->
2
-
3
- import { Meta, ColorPalette, ColorItem } from '@storybook/addon-docs';
1
+ import { Meta, ColorPalette, ColorItem } from '@storybook/blocks';
4
2
 
5
3
  <Meta title="Utiliser Pix UI/Design Tokens/Palette de couleurs" />
6
4