@1024pix/pix-ui 11.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 (196) hide show
  1. package/.buildpacks +2 -0
  2. package/.circleci/config.yml +22 -0
  3. package/.gitattributes +7 -0
  4. package/.github/workflows/auto-merge.yml +26 -0
  5. package/.github/workflows/deploy-storybook.yml +21 -0
  6. package/.github/workflows/npm-publish.yml +23 -0
  7. package/.github/workflows/on-dev-merge.yml +33 -0
  8. package/.nvmrc +1 -0
  9. package/.prettierignore +1 -0
  10. package/.prettierrc.json +12 -0
  11. package/.storybook/fonts.css +1 -0
  12. package/.storybook/main.js +10 -0
  13. package/.storybook/manager.js +6 -0
  14. package/.storybook/preview.js +37 -0
  15. package/.storybook/storybook-custom-theme.js +37 -0
  16. package/CHANGELOG.md +469 -0
  17. package/CNAME +1 -0
  18. package/LICENSE.md +9 -0
  19. package/README.md +58 -0
  20. package/addon/components/pix-background-header.hbs +7 -0
  21. package/addon/components/pix-background-header.js +5 -0
  22. package/addon/components/pix-banner.hbs +16 -0
  23. package/addon/components/pix-banner.js +43 -0
  24. package/addon/components/pix-block.hbs +5 -0
  25. package/addon/components/pix-block.js +11 -0
  26. package/addon/components/pix-button-base.js +27 -0
  27. package/addon/components/pix-button-link.hbs +16 -0
  28. package/addon/components/pix-button-link.js +10 -0
  29. package/addon/components/pix-button-upload.hbs +11 -0
  30. package/addon/components/pix-button-upload.js +20 -0
  31. package/addon/components/pix-button.hbs +43 -0
  32. package/addon/components/pix-button.js +54 -0
  33. package/addon/components/pix-collapsible.hbs +29 -0
  34. package/addon/components/pix-collapsible.js +27 -0
  35. package/addon/components/pix-filter-banner.hbs +28 -0
  36. package/addon/components/pix-filter-banner.js +13 -0
  37. package/addon/components/pix-icon-button.hbs +11 -0
  38. package/addon/components/pix-icon-button.js +33 -0
  39. package/addon/components/pix-input-code.hbs +24 -0
  40. package/addon/components/pix-input-code.js +133 -0
  41. package/addon/components/pix-input-password.hbs +43 -0
  42. package/addon/components/pix-input-password.js +34 -0
  43. package/addon/components/pix-input.hbs +30 -0
  44. package/addon/components/pix-input.js +26 -0
  45. package/addon/components/pix-message.hbs +8 -0
  46. package/addon/components/pix-message.js +30 -0
  47. package/addon/components/pix-multi-select.hbs +70 -0
  48. package/addon/components/pix-multi-select.js +162 -0
  49. package/addon/components/pix-progress-gauge.hbs +19 -0
  50. package/addon/components/pix-progress-gauge.js +29 -0
  51. package/addon/components/pix-radio-button.hbs +12 -0
  52. package/addon/components/pix-radio-button.js +5 -0
  53. package/addon/components/pix-return-to.hbs +15 -0
  54. package/addon/components/pix-return-to.js +20 -0
  55. package/addon/components/pix-select.hbs +55 -0
  56. package/addon/components/pix-select.js +58 -0
  57. package/addon/components/pix-selectable-tag.hbs +10 -0
  58. package/addon/components/pix-selectable-tag.js +13 -0
  59. package/addon/components/pix-stars.hbs +16 -0
  60. package/addon/components/pix-stars.js +27 -0
  61. package/addon/components/pix-tag.hbs +3 -0
  62. package/addon/components/pix-tag.js +11 -0
  63. package/addon/components/pix-textarea.hbs +21 -0
  64. package/addon/components/pix-textarea.js +17 -0
  65. package/addon/components/pix-tooltip-deprecated.hbs +18 -0
  66. package/addon/components/pix-tooltip-deprecated.js +26 -0
  67. package/addon/components/pix-tooltip.hbs +18 -0
  68. package/addon/components/pix-tooltip.js +17 -0
  69. package/addon/styles/_breakpoints.scss +17 -0
  70. package/addon/styles/_colors.scss +87 -0
  71. package/addon/styles/_fonts.scss +10 -0
  72. package/addon/styles/_form.scss +68 -0
  73. package/addon/styles/_pix-background-header.scss +20 -0
  74. package/addon/styles/_pix-banner.scss +67 -0
  75. package/addon/styles/_pix-block.scss +29 -0
  76. package/addon/styles/_pix-button-base.scss +137 -0
  77. package/addon/styles/_pix-button-link.scss +4 -0
  78. package/addon/styles/_pix-button-upload.scss +5 -0
  79. package/addon/styles/_pix-button.scss +40 -0
  80. package/addon/styles/_pix-collapsible.scss +82 -0
  81. package/addon/styles/_pix-filter-banner.scss +74 -0
  82. package/addon/styles/_pix-icon-button.scss +60 -0
  83. package/addon/styles/_pix-input-code.scss +71 -0
  84. package/addon/styles/_pix-input-password.scss +68 -0
  85. package/addon/styles/_pix-input.scss +93 -0
  86. package/addon/styles/_pix-message.scss +35 -0
  87. package/addon/styles/_pix-multi-select.scss +182 -0
  88. package/addon/styles/_pix-progress-gauge.scss +119 -0
  89. package/addon/styles/_pix-radio-button.scss +72 -0
  90. package/addon/styles/_pix-return-to.scss +64 -0
  91. package/addon/styles/_pix-select.scss +71 -0
  92. package/addon/styles/_pix-selectable-tag.scss +86 -0
  93. package/addon/styles/_pix-stars.scss +43 -0
  94. package/addon/styles/_pix-tag.scss +69 -0
  95. package/addon/styles/_pix-textarea.scss +39 -0
  96. package/addon/styles/_pix-tooltip.scss +196 -0
  97. package/addon/styles/_reset-css.scss +36 -0
  98. package/addon/styles/_spacing.scss +9 -0
  99. package/addon/styles/addon.scss +41 -0
  100. package/app/components/pix-background-header.js +1 -0
  101. package/app/components/pix-banner.js +1 -0
  102. package/app/components/pix-block.js +1 -0
  103. package/app/components/pix-button-link.js +1 -0
  104. package/app/components/pix-button-upload.js +1 -0
  105. package/app/components/pix-button.js +1 -0
  106. package/app/components/pix-collapsible.js +1 -0
  107. package/app/components/pix-filter-banner.js +1 -0
  108. package/app/components/pix-icon-button.js +1 -0
  109. package/app/components/pix-input-code.js +1 -0
  110. package/app/components/pix-input-password.js +1 -0
  111. package/app/components/pix-input.js +1 -0
  112. package/app/components/pix-message.js +1 -0
  113. package/app/components/pix-multi-select.js +1 -0
  114. package/app/components/pix-progress-gauge.js +1 -0
  115. package/app/components/pix-radio-button.js +1 -0
  116. package/app/components/pix-return-to.js +1 -0
  117. package/app/components/pix-select.js +1 -0
  118. package/app/components/pix-selectable-tag.js +1 -0
  119. package/app/components/pix-stars.js +1 -0
  120. package/app/components/pix-tag.js +1 -0
  121. package/app/components/pix-textarea.js +1 -0
  122. package/app/components/pix-tooltip-deprecated.js +1 -0
  123. package/app/components/pix-tooltip.js +1 -0
  124. package/app/stories/form.stories.js +91 -0
  125. package/app/stories/form.stories.mdx +16 -0
  126. package/app/stories/pix-background-header.stories.js +19 -0
  127. package/app/stories/pix-background-header.stories.mdx +36 -0
  128. package/app/stories/pix-banner.stories.js +89 -0
  129. package/app/stories/pix-banner.stories.mdx +107 -0
  130. package/app/stories/pix-block.stories.js +20 -0
  131. package/app/stories/pix-block.stories.mdx +44 -0
  132. package/app/stories/pix-button-link.stories.js +125 -0
  133. package/app/stories/pix-button-link.stories.mdx +57 -0
  134. package/app/stories/pix-button-upload.stories.js +85 -0
  135. package/app/stories/pix-button-upload.stories.mdx +39 -0
  136. package/app/stories/pix-button.stories.js +253 -0
  137. package/app/stories/pix-button.stories.mdx +99 -0
  138. package/app/stories/pix-collapsible.stories.js +56 -0
  139. package/app/stories/pix-collapsible.stories.mdx +39 -0
  140. package/app/stories/pix-filter-banner.stories.js +51 -0
  141. package/app/stories/pix-filter-banner.stories.mdx +33 -0
  142. package/app/stories/pix-icon-button.stories.js +95 -0
  143. package/app/stories/pix-icon-button.stories.mdx +90 -0
  144. package/app/stories/pix-input-code.stories.js +74 -0
  145. package/app/stories/pix-input-code.stories.mdx +46 -0
  146. package/app/stories/pix-input-password.stories.js +89 -0
  147. package/app/stories/pix-input-password.stories.mdx +69 -0
  148. package/app/stories/pix-input.stories.js +94 -0
  149. package/app/stories/pix-input.stories.mdx +57 -0
  150. package/app/stories/pix-message.stories.js +57 -0
  151. package/app/stories/pix-message.stories.mdx +71 -0
  152. package/app/stories/pix-multi-select.stories.js +199 -0
  153. package/app/stories/pix-multi-select.stories.mdx +55 -0
  154. package/app/stories/pix-progress-gauge.stories.js +78 -0
  155. package/app/stories/pix-progress-gauge.stories.mdx +43 -0
  156. package/app/stories/pix-radio-button.stories.js +71 -0
  157. package/app/stories/pix-radio-button.stories.mdx +49 -0
  158. package/app/stories/pix-return-to.stories.js +45 -0
  159. package/app/stories/pix-return-to.stories.mdx +41 -0
  160. package/app/stories/pix-select.stories.js +140 -0
  161. package/app/stories/pix-select.stories.mdx +57 -0
  162. package/app/stories/pix-selectable-tag.stories.js +91 -0
  163. package/app/stories/pix-selectable-tag.stories.mdx +55 -0
  164. package/app/stories/pix-stars.stories.js +43 -0
  165. package/app/stories/pix-stars.stories.mdx +35 -0
  166. package/app/stories/pix-tag.stories.js +56 -0
  167. package/app/stories/pix-tag.stories.mdx +46 -0
  168. package/app/stories/pix-textarea.stories.js +59 -0
  169. package/app/stories/pix-textarea.stories.mdx +36 -0
  170. package/app/stories/pix-tooltip-deprecated.stories.js +136 -0
  171. package/app/stories/pix-tooltip-deprecated.stories.mdx +143 -0
  172. package/app/stories/pix-tooltip.stories.js +157 -0
  173. package/app/stories/pix-tooltip.stories.mdx +183 -0
  174. package/app/styles/app.scss +0 -0
  175. package/config/environment.js +5 -0
  176. package/docs/architecture.stories.mdx +106 -0
  177. package/docs/assets/accessibility-storybook.png +0 -0
  178. package/docs/assets/screen-pix-storybook.png +0 -0
  179. package/docs/breaking-changes.stories.mdx +90 -0
  180. package/docs/changelog.stories.mdx +6 -0
  181. package/docs/create-component.stories.mdx +118 -0
  182. package/docs/design-system.stories.mdx +20 -0
  183. package/docs/good-practices-a11y.stories.mdx +48 -0
  184. package/docs/good-practices-design.stories.mdx +71 -0
  185. package/docs/good-practices-responsive.stories.mdx +51 -0
  186. package/docs/good-practices-style-css.stories.mdx +40 -0
  187. package/docs/good-practices-tests.stories.mdx +9 -0
  188. package/docs/make-a-release.stories.mdx +66 -0
  189. package/docs/pull_request_template.md +14 -0
  190. package/docs/storybook.stories.mdx +44 -0
  191. package/docs/use-component.stories.mdx +89 -0
  192. package/docs/use-install.stories.mdx +37 -0
  193. package/index.js +5 -0
  194. package/package.json +121 -0
  195. package/scalingo.json +17 -0
  196. package/servers.conf.erb +30 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,469 @@
1
+ # Pix-UI Changelog
2
+
3
+ ## v11.1.0 (16/12/2021)
4
+
5
+
6
+ ### :building_construction: Tech
7
+ - [#175](https://github.com/1024pix/pix-ui/pull/175) [TECH] Faire en sorte que le message d'erreur soit situé à l'intérieur de l'élément qui le compose (PIX-3829)
8
+
9
+ ## v11.0.1 (08/12/2021)
10
+
11
+
12
+ ### :bug: Bug fix
13
+ - [#181](https://github.com/1024pix/pix-ui/pull/181) [BUGFIX] Corriger les explications d'utilisations du PixInputCode
14
+
15
+ ### :coffee: Various
16
+ - [#171](https://github.com/1024pix/pix-ui/pull/171) [DOC] Améliorer l'information sur l'accessibilité dans la doc de PixTooltip
17
+
18
+ ## v11.0.0 (03/12/2021)
19
+
20
+
21
+ ### :rocket: Enhancement
22
+ - [#177](https://github.com/1024pix/pix-ui/pull/177) [FEATURE] Création du composant Tag sélectionnable dans Pix UI (PIX-3757)
23
+
24
+ ### :building_construction: Tech
25
+ - [#180](https://github.com/1024pix/pix-ui/pull/180) [TECH] Ajouter la possibilité d'utiliser des composants Ember à l'intérieur de la tooltip (Pix-3925)
26
+ - [#179](https://github.com/1024pix/pix-ui/pull/179) [TECH] Mise à jour du template de pull request pour faire apparaître plus clairement les BREAKING_CHANGES
27
+ - [#148](https://github.com/1024pix/pix-ui/pull/148) [TECH] Formatter les fichiers avec prettier (PIX-3469)
28
+
29
+ ### :bug: Bug fix
30
+ - [#147](https://github.com/1024pix/pix-ui/pull/147) [BUGFIX] Ajout de l'évènement onChange afin de supprimer le message d'erreur lorsque l'utilisateur modifie sa saisie (PIX-3476)
31
+
32
+ ### :coffee: Various
33
+ - [#178](https://github.com/1024pix/pix-ui/pull/178) [DOC] Améliorer l'information sur les breaking changes dans Pix UI
34
+ - [#174](https://github.com/1024pix/pix-ui/pull/174) [DOC] Mise a jour de la la méthode d'installation dans la documentation
35
+ - [#158](https://github.com/1024pix/pix-ui/pull/158) [DOC] Suivre le déploiement de la release.
36
+
37
+ ## v10.2.1 (10/11/2021)
38
+
39
+
40
+ ### :building_construction: Tech
41
+ - [#173](https://github.com/1024pix/pix-ui/pull/173) [TECH] Mise a jour du nom de domaine.
42
+
43
+ ## v10.2.0 (10/11/2021)
44
+
45
+
46
+ ### :building_construction: Tech
47
+ - [#172](https://github.com/1024pix/pix-ui/pull/172) [TECH] Monter node de version a 16.13.0
48
+
49
+ ## v10.1.0 (10/11/2021)
50
+
51
+
52
+ ### :coffee: Various
53
+ - [#164](https://github.com/1024pix/pix-ui/pull/164) [INFRA] Release npm @1024pix/pix-ui automatisée
54
+
55
+ ## v10.0.2 (08/11/2021)
56
+
57
+
58
+ ### :coffee: Various
59
+ - [#165](https://github.com/1024pix/pix-ui/pull/165) [FIXBUG] Problème de sélection des statuts sur Firefox (PIX-3636)
60
+
61
+ ## v10.0.1 (03/11/2021)
62
+
63
+
64
+ ### :building_construction: Tech
65
+ - [#163](https://github.com/1024pix/pix-ui/pull/163) [TECH] Ne plus inclure les stories dans le bundle de Pix-UI
66
+ - [#162](https://github.com/1024pix/pix-ui/pull/162) [TECH] Donner toutes les permissions à l'auto-merge
67
+ - [#161](https://github.com/1024pix/pix-ui/pull/161) [TECH] Ajout de la permission pour l'auto merge d'écrire sur les status
68
+ - [#160](https://github.com/1024pix/pix-ui/pull/160) [TECH] Restaurer la version initiale de automerge.
69
+ - [#159](https://github.com/1024pix/pix-ui/pull/159) [TECH] Ajout d'une permission d'écriture pour l'auto merge
70
+
71
+ ### :bug: Bug fix
72
+ - [#166](https://github.com/1024pix/pix-ui/pull/166) [BUGFIX] Empêcher PixSelect de déborder de l'élément parent
73
+
74
+ ## v10.0.0 (20/10/2021)
75
+
76
+ - [#156](https://github.com/1024pix/pix-ui/pull/156) [TECH] Enlever les règles bloquantes et non utiles du reset CSS [BREAKING_CHANGES]
77
+
78
+ ## v9.2.0 (20/10/2021)
79
+
80
+ - [#157](https://github.com/1024pix/pix-ui/pull/157) [FEATURE] Afficher un préfixe optionnel dans le composant PixInputPassword.
81
+
82
+ ## v9.1.0 (18/10/2021)
83
+
84
+ - [#155](https://github.com/1024pix/pix-ui/pull/155) [FEATURE] Ajouter le chargement asynchrone des options sur PixMultiSelect
85
+ - [#154](https://github.com/1024pix/pix-ui/pull/154) [BUGFIX] Les options du select n'apparaissent pas complètement (PIX-3608).
86
+ - [#135](https://github.com/1024pix/pix-ui/pull/135) [TECH] Exclure des fichiers de l'archive pix-ui
87
+
88
+ ## v9.0.1 (12/10/2021)
89
+
90
+ - [#153](https://github.com/1024pix/pix-ui/pull/153) [BUGFIX] Améliorer l'ordre des explications d'accessibilité du PixInputCode
91
+
92
+ ## v9.0.0 (08/10/2021)
93
+
94
+ - [#152](https://github.com/1024pix/pix-ui/pull/152) [BUGFIX] Mettre à jour le PixInputCode [BREAKING_CHANGES]
95
+
96
+ ## v8.4.0 (05/10/2021)
97
+
98
+ - [#149](https://github.com/1024pix/pix-ui/pull/149) [FEATURE] Permettre de tracker les values des PixInput et PixInputPassword
99
+ - [#151](https://github.com/1024pix/pix-ui/pull/151) [TECH] Ajout du helper getByLabel
100
+ - [#144](https://github.com/1024pix/pix-ui/pull/144) [TECH] Ajout du helper fillInByLabel (PIX-3470)
101
+ - [#146](https://github.com/1024pix/pix-ui/pull/146) [TECH] Ajout du helper clickByLabel (PIX-3470)
102
+ - [#143](https://github.com/1024pix/pix-ui/pull/143) [TECH] Ajout du helper notContains (PIX-3470)
103
+
104
+ ## v8.3.0 (04/10/2021)
105
+
106
+ - [#145](https://github.com/1024pix/pix-ui/pull/145) [BUGFIX] Correction de l'id requis quand le label est renseigné
107
+ - [#150](https://github.com/1024pix/pix-ui/pull/150) [TECH] Mettre à jour la version de l'auto merge et donner les permissions nécessaires au github token
108
+ - [#142](https://github.com/1024pix/pix-ui/pull/142) [TECH] Ajout du helper contains
109
+ - [#140](https://github.com/1024pix/pix-ui/pull/140) [TECH] Restreindre les permissions par défaut du github token
110
+ - [#141](https://github.com/1024pix/pix-ui/pull/141) [DOC] Ajouter comment créer un composant dans le README
111
+
112
+ ## v8.2.0 (17/09/2021)
113
+
114
+ - [#137](https://github.com/1024pix/pix-ui/pull/137) [FEATURE] Création du composant PixInputCode (PIX-3172).
115
+
116
+ ## v8.1.2 (16/09/2021)
117
+
118
+ - [#138](https://github.com/1024pix/pix-ui/pull/138) [BUGFIX] Modifier l'évènement utilisé dans PixButtonUpload
119
+
120
+ ## v8.1.1 (14/09/2021)
121
+
122
+ - [#136](https://github.com/1024pix/pix-ui/pull/136) [BUGFIX] Pouvoir uploader le même nom de fichier 2 fois de suite
123
+
124
+ ## v8.1.0 (14/09/2021)
125
+
126
+ - [#130](https://github.com/1024pix/pix-ui/pull/130) [FEATURE] Création du composant PixRadioButton (PIX-3031).
127
+ - [#126](https://github.com/1024pix/pix-ui/pull/126) [FEATURE] Permettre d'afficher du code formatté HTML dans la tooltip
128
+ - [#132](https://github.com/1024pix/pix-ui/pull/132) [FEATURE] Création du composant PixInputPassword (PIX-3089).
129
+
130
+ ## v8.0.1 (03/09/2021)
131
+
132
+ - [#131](https://github.com/1024pix/pix-ui/pull/131) [FEATURE] Centrer les boutons d'un formulaire par défaut
133
+ - [#133](https://github.com/1024pix/pix-ui/pull/133) [TECH] Enlever le padding des section mis globalement
134
+
135
+ ## v8.0.0 (01/09/2021)
136
+
137
+ - [#129](https://github.com/1024pix/pix-ui/pull/129) [FEATURE] Aligner le style du PixTooltip avec le design system (PIX-3019).
138
+
139
+ ## v7.0.0 (31/08/2021)
140
+
141
+ - [#122](https://github.com/1024pix/pix-ui/pull/122) [TECH] Aligner le style des composants de formulaire avec le design system (PIX-3052).
142
+
143
+ ## v6.2.0 (31/08/2021)
144
+
145
+ - [#128](https://github.com/1024pix/pix-ui/pull/128) [FEATURE] Aligner le style du PixBanner avec le design system (PIX-3022).
146
+
147
+ ## v6.1.0 (27/08/2021)
148
+
149
+ - [#124](https://github.com/1024pix/pix-ui/pull/124) [FEATURE] Aligner le style du PixMessage avec le design system (PIX-3021).
150
+
151
+ ## v6.0.0 (27/08/2021)
152
+
153
+ - [#123](https://github.com/1024pix/pix-ui/pull/123) [FEATURE] Aligner le style du PixIconButton avec le design system - BREAKING CHANGES (PIX-3017).
154
+ - [#127](https://github.com/1024pix/pix-ui/pull/127) [TECH] Faire en sorte d'ajouter des arguments de manière dynamique
155
+
156
+ ## v5.5.0 (25/08/2021)
157
+
158
+ - [#121](https://github.com/1024pix/pix-ui/pull/121) [FEATURE] Création du composant PixInput (PIX-3014).
159
+
160
+ ## v5.4.1 (25/08/2021)
161
+
162
+ - [#125](https://github.com/1024pix/pix-ui/pull/125) [FEATURE] Ne pas afficher la tooltip si le texte est vide
163
+
164
+ ## v5.4.0 (20/08/2021)
165
+
166
+ - [#120](https://github.com/1024pix/pix-ui/pull/120) [FEATURE] Ajout du composant PixButtonUpload
167
+ - [#119](https://github.com/1024pix/pix-ui/pull/119) [FEATURE] Ajout du composant PixButtonLink
168
+ - [#118](https://github.com/1024pix/pix-ui/pull/118) [FEATURE] Alignement du PixButton avec le design system
169
+ - [#114](https://github.com/1024pix/pix-ui/pull/114) [TECH] Mise a jour des dépendances et fix des vulnérabilités (PIX-2961).
170
+ - [#116](https://github.com/1024pix/pix-ui/pull/116) [TECH] S'assurer des règles d'a11y du linter (PIX-3033)
171
+
172
+ ## v5.3.1 (16/08/2021)
173
+
174
+ - [#117](https://github.com/1024pix/pix-ui/pull/117) [BUGFIX] Permettre de passer des paramètres au PixButton de type lien (PIX-3036).
175
+ - [#115](https://github.com/1024pix/pix-ui/pull/115) [TECH] Réparer le merge automatique (PIX-3001).
176
+ - [#113](https://github.com/1024pix/pix-ui/pull/113) [TECH] Automerge la PR à l'ajout du label (PIX-3001).
177
+
178
+ ## v5.3.0 (13/08/2021)
179
+
180
+ - [#111](https://github.com/1024pix/pix-ui/pull/111) [FEATURE] Refacto des stories
181
+ - [#110](https://github.com/1024pix/pix-ui/pull/110) [FEATURE] Centrer le contenu de Pix-Button par défaut
182
+ - [#109](https://github.com/1024pix/pix-ui/pull/109) [FEATURE] Enlever les effets visuels au survol d'un bouton disabled
183
+ - [#112](https://github.com/1024pix/pix-ui/pull/112) [TECH] Ajout des actions dans storybook (PIX-2995)
184
+ - [#108](https://github.com/1024pix/pix-ui/pull/108) [TECH] Ajuster la taille des apperçus des composants dans les stories
185
+ - [#104](https://github.com/1024pix/pix-ui/pull/104) [TECH] Bump des packages Storybook de 6.1.21 à 6.2.9.
186
+ - [#106](https://github.com/1024pix/pix-ui/pull/106) [TECH] Voir le changelog dans storybook
187
+
188
+ ## v5.2.2 (04/08/2021)
189
+
190
+ - [#105](https://github.com/1024pix/pix-ui/pull/105) [FEATURE] Ne pas pouvoir sélectionner la valeur vide du PixSelect.
191
+ - [#103](https://github.com/1024pix/pix-ui/pull/103) [TECH] Initialize Pix UI doc summary
192
+
193
+ ## v5.2.1 (18/06/2021)
194
+
195
+ - [#102](https://github.com/1024pix/pix-ui/pull/102) [CLEAN] Corriger une petite coquille dans la doc de Pix-Tooltip
196
+
197
+ ## v5.2.0 (15/06/2021)
198
+
199
+ - [#101](https://github.com/1024pix/pix-ui/pull/101) Permettre l'absence de trigger action sur PixButton de type submit
200
+
201
+ ## v5.1.0 (02/06/2021)
202
+
203
+ - [#95](https://github.com/1024pix/pix-ui/pull/95) [FEATURE] Ajout du composant PixCollapsible
204
+ - [#96](https://github.com/1024pix/pix-ui/pull/96) [FEATURE] Ajout d'une bordure sur les boutons colorés lors des focus.
205
+ - [#100](https://github.com/1024pix/pix-ui/pull/100) Ne pas changer la taille du bouton lors du loading.
206
+
207
+ ## v5.0.0 (21/05/2021)
208
+
209
+ - [#99](https://github.com/1024pix/pix-ui/pull/99) [BUGFIX] La bonne version de PixBanner-BREAKING-CHANGES (PIX-2563)
210
+
211
+ ## v4.0.0 (21/05/2021)
212
+
213
+ - [#97](https://github.com/1024pix/pix-ui/pull/97) [FEATURE] Harmonisation du composant PixBanner (pix-2563)
214
+ - [#98](https://github.com/1024pix/pix-ui/pull/98) [BUGFIX] Corriger la taille de la police du composant Pix Tag
215
+
216
+ ## v3.5.0 (28/04/2021)
217
+
218
+ - [#81](https://github.com/1024pix/pix-ui/pull/81) [TECH] Enrichir Pix Button.
219
+
220
+ ## v3.4.0 (09/04/2021)
221
+
222
+ - [#85](https://github.com/1024pix/pix-ui/pull/85) [TECH] Installation du pack "essentiels" des addons storybook
223
+
224
+ ## v3.3.0 (01/04/2021)
225
+
226
+ - [#91](https://github.com/1024pix/pix-ui/pull/91) [TECH] Ajout de review app pour Storybook
227
+ - [#89](https://github.com/1024pix/pix-ui/pull/89) [TECH] Déployer Storybook avec une GitHub action
228
+ - [#88](https://github.com/1024pix/pix-ui/pull/88) [TECH] Corrige la doc de l'attribute type du bouton
229
+ - [#92](https://github.com/1024pix/pix-ui/pull/92) [ProgressGauge] Ajout du composant barre de progression (Pix-2332).
230
+
231
+ ## v3.2.0 (08/03/2021)
232
+
233
+ - [#83](https://github.com/1024pix/pix-ui/pull/83) [FEATURE] Rendre PixSelect cherchable (PIX-2306)
234
+ - [#84](https://github.com/1024pix/pix-ui/pull/84) [TECH] Mettre à jour les dépendances de Pix-UI
235
+
236
+ ## v3.1.1 (04/03/2021)
237
+
238
+ - [#86](https://github.com/1024pix/pix-ui/pull/86) Informer tout le monde que l'apperçu du multiselect dans storybook ne fonctionne pas
239
+
240
+ ## v3.1.0 (16/02/2021)
241
+
242
+ - [#78](https://github.com/1024pix/pix-ui/pull/78) [FEAT] Mise à jour de la couleur de l'élément bannière.
243
+
244
+ ## v3.0.0 (15/02/2021)
245
+
246
+ - [#79](https://github.com/1024pix/pix-ui/pull/79) [TECH] Enrichir PixActionButton et la renommer en PixIconButton pour que cela reflète plus son utilisation - BREAKING CHANGES.
247
+
248
+ ## v2.2.0 (12/02/2021)
249
+
250
+ - [#74](https://github.com/1024pix/pix-ui/pull/74) [FEATURE] Ajout d'un bouton permettant de supprimer tous les éléments filtrés d'un seul clic dans le filter banner(PIX-2032).
251
+ - [#76](https://github.com/1024pix/pix-ui/pull/76) [FIX] Multi-select: le composant ne se met pas a jour quand on modifie l'argument '@selected' (PIX-2141)
252
+
253
+ ## v2.1.0 (11/02/2021)
254
+
255
+ - [#77](https://github.com/1024pix/pix-ui/pull/77) [TECH] Pouvoir désactiver le PixButton
256
+
257
+ ## v2.0.3 (03/02/2021)
258
+
259
+ - [#75](https://github.com/1024pix/pix-ui/pull/75) [TECH] Permettre le redimensionnement de la textarea seulement vertical
260
+
261
+ ## v2.0.2 (02/02/2021)
262
+
263
+ - [#71](https://github.com/1024pix/pix-ui/pull/71) [STYLE] Corriger l'affichage d'un texte sur deux lignes avec une icone dans PixMessage
264
+
265
+ ## v2.0.1 (01/02/2021)
266
+
267
+ - [#72](https://github.com/1024pix/pix-ui/pull/72) [FEATURE] Ajout du nombre d'éléments filtrés dans le composant filter banner sur Pix-UI(pix-2031).
268
+ - [#73](https://github.com/1024pix/pix-ui/pull/73) [TECH] Toujours passer ...attributes à la PixTextarea
269
+
270
+ ## v2.0.0 (27/01/2021)
271
+
272
+ - [#68](https://github.com/1024pix/pix-ui/pull/68) [TECH] Enrichir la Pix Tooltip - BREAKING CHANGES (Pix-2000).
273
+ - [#67](https://github.com/1024pix/pix-ui/pull/67) [TECH] Enrichir la PixActionButton - BREAKING CHANGES.
274
+
275
+ ## v1.6.1 (27/01/2021)
276
+
277
+ - [#70](https://github.com/1024pix/pix-ui/pull/70) [TECH] Corriger les attributs pour la PixTextarea
278
+
279
+ ## v1.6.0 (26/01/2021)
280
+
281
+ - [#69](https://github.com/1024pix/pix-ui/pull/69) [TECH] Ajout d'une icone facultative pour PixMessage
282
+
283
+ ## v1.5.0 (26/01/2021)
284
+
285
+ - [#66](https://github.com/1024pix/pix-ui/pull/66) [TECH] Pouvoir modifier les bords et la couleur de PixButton
286
+
287
+ ## v1.4.2 (21/01/2021)
288
+
289
+ - [#65](https://github.com/1024pix/pix-ui/pull/65) [STYLE] Correction du style FilterBanner et MultiSelect
290
+
291
+ ## v1.4.1 (15/01/2021)
292
+
293
+ - [#64](https://github.com/1024pix/pix-ui/pull/64) [FIX] Problème de CSS et de propagation sur le multiselect (PIX-1981)
294
+
295
+ ## v1.4.0 (08/01/2021)
296
+
297
+ - [#63](https://github.com/1024pix/pix-ui/pull/63) [FEATURE] Ajout du composant PixTextarea
298
+ - [#62](https://github.com/1024pix/pix-ui/pull/62) [FEATURE] Ajout du tri des éléments dans le multi-select (PIX-1685)
299
+ - [#60](https://github.com/1024pix/pix-ui/pull/60) [TECH] Passer les stories à MDX
300
+
301
+ ## v1.3.0 (17/12/2020)
302
+
303
+ - [#59](https://github.com/1024pix/pix-ui/pull/59) [FEATURE] Ajout du PixTag compact
304
+ - [#55](https://github.com/1024pix/pix-ui/pull/55) [FEATURE] Modification des addons dépréciés
305
+
306
+ ## v1.2.1 (15/12/2020)
307
+
308
+ - [#58](https://github.com/1024pix/pix-ui/pull/58) [TECH] Donner un id fixe directement au mutliselect cherchable
309
+
310
+ ## v1.2.0 (15/12/2020)
311
+
312
+ - [#48](https://github.com/1024pix/pix-ui/pull/48) [FEATURE] Donner la possibilité de faire une recherche sur un multi-select (Pix-1677)
313
+ - [#56](https://github.com/1024pix/pix-ui/pull/56) [FEATURE] Ajout des variantes jaunes et grises pour le composant PixTag
314
+ - [#46](https://github.com/1024pix/pix-ui/pull/46) [FEATURE] Création du composant multi-select (PIX-1674).
315
+ - [#45](https://github.com/1024pix/pix-ui/pull/45) [FEATURE] Création du composant de bannière de filtres (PIX-1675).
316
+ - [#41](https://github.com/1024pix/pix-ui/pull/41) [FEATURE] Ajout du composant pix-select
317
+ - [#38](https://github.com/1024pix/pix-ui/pull/38) [BUGFIX] Amélioration du Pix-Button pour les formulaire
318
+ - [#54](https://github.com/1024pix/pix-ui/pull/54) [TECH] Envoyer un message d'erreur plus explicite pour le PixButton
319
+ - [#53](https://github.com/1024pix/pix-ui/pull/53) [TECH] Ajouter knobs au projet
320
+ - [#52](https://github.com/1024pix/pix-ui/pull/52) [TECH] Organisation des composants en categories
321
+ - [#50](https://github.com/1024pix/pix-ui/pull/50) [TECH] Mise à jour des dépendances pix-ui
322
+ - [#47](https://github.com/1024pix/pix-ui/pull/47) [TECH] Corriger les erreurs eslint
323
+ - [#49](https://github.com/1024pix/pix-ui/pull/49) [TECH] Ajouter le linter aux build circle-ci
324
+ - [#51](https://github.com/1024pix/pix-ui/pull/51) [TECH] Ne pas utiliser de mot clé ember comme nom de paramètre
325
+ - [#44](https://github.com/1024pix/pix-ui/pull/44) [TECH] Skip la CI sur les gh-pages
326
+ - [#43](https://github.com/1024pix/pix-ui/pull/43) [TECH] Ne pas lancer circle-ci sur la branche gh-pages
327
+ - [#40](https://github.com/1024pix/pix-ui/pull/40) [TECH] Afficher l'erreur levée par un bouton.
328
+ - [#57](https://github.com/1024pix/pix-ui/pull/57) [Feature] Ajout de l'argument uppercase sur le composant PixTag
329
+ - [#42](https://github.com/1024pix/pix-ui/pull/42) [DOC] Mise à jour de la documentation pour faire un déploiement de Pix-UI
330
+ - [#39](https://github.com/1024pix/pix-ui/pull/39) [DesignFix] Corriger le design de la PixReturnTo
331
+
332
+ ## v1.1.0 (15/12/2020)
333
+
334
+ - [#48](https://github.com/1024pix/pix-ui/pull/48) [FEATURE] Donner la possibilité de faire une recherche sur un multi-select (Pix-1677)
335
+ - [#56](https://github.com/1024pix/pix-ui/pull/56) [FEATURE] Ajout des variantes jaunes et grises pour le composant PixTag
336
+
337
+ ## v1.0.1 (11/12/2020)
338
+
339
+ - [#54](https://github.com/1024pix/pix-ui/pull/54) [TECH] Envoyer un message d'erreur plus explicite pour le PixButton
340
+ - [#53](https://github.com/1024pix/pix-ui/pull/53) [TECH] Ajouter knobs au projet
341
+ - [#52](https://github.com/1024pix/pix-ui/pull/52) [TECH] Organisation des composants en categories
342
+ - [#50](https://github.com/1024pix/pix-ui/pull/50) [TECH] Mise à jour des dépendances pix-ui
343
+ - [#49](https://github.com/1024pix/pix-ui/pull/49) [TECH] Ajouter le linter aux build circle-ci
344
+ - [#47](https://github.com/1024pix/pix-ui/pull/47) [TECH] Corriger les erreurs eslint
345
+
346
+ ## v1.0.0 (10/12/2020)
347
+
348
+ - [#46](https://github.com/1024pix/pix-ui/pull/46) [FEATURE] Création du composant multi-select (PIX-1674).
349
+ - [#45](https://github.com/1024pix/pix-ui/pull/45) [FEATURE] Création du composant de bannière de filtres (PIX-1675).
350
+ - [#51](https://github.com/1024pix/pix-ui/pull/51) [TECH] Ne pas utiliser de mot clé ember comme nom de paramètre
351
+
352
+ ## v0.18.2 (01/12/2020)
353
+
354
+ - [#44](https://github.com/1024pix/pix-ui/pull/44) [TECH] Skip la CI sur les gh-pages
355
+
356
+ ## v0.18.1 (18/11/2020)
357
+
358
+ - [#43](https://github.com/1024pix/pix-ui/pull/43) [TECH] Ne pas lancer circle-ci sur la branche gh-pages
359
+
360
+ ## v0.18.0 (18/11/2020)
361
+
362
+ - [#41](https://github.com/1024pix/pix-ui/pull/41) [FEATURE] Ajout du composant pix-select
363
+ - [#42](https://github.com/1024pix/pix-ui/pull/42) [DOC] Mise à jour de la documentation pour faire un déploiement de Pix-UI
364
+
365
+ ## v0.17.0 (16/11/2020)
366
+
367
+ - [#39](https://github.com/1024pix/pix-ui/pull/39) [DesignFix] Corriger le design de la PixReturnTo
368
+
369
+ ## v0.16.0 (16/11/2020)
370
+
371
+ - [#40](https://github.com/1024pix/pix-ui/pull/40) [TECH] Afficher l'erreur levée par un bouton.
372
+
373
+ ## v0.15.1 (27/10/2020)
374
+
375
+ - [#38](https://github.com/1024pix/pix-ui/pull/38) [BUGFIX] Amélioration du Pix-Button pour les formulaire
376
+
377
+ ## v0.15.0 (26/10/2020)
378
+
379
+ - [#37](https://github.com/1024pix/pix-ui/pull/37) [STYLE] Les étoiles bleues "vides" de PixStars ne doivent pas avoir de bordure
380
+
381
+ ## v0.14.0 (22/10/2020)
382
+
383
+ - [#36](https://github.com/1024pix/pix-ui/pull/36) [FEATURE] Ajout du composant PixStars (pix-1448)
384
+
385
+ ## v0.13.0 (19/10/2020)
386
+
387
+ - [#35](https://github.com/1024pix/pix-ui/pull/35) [FEATURE] Ajout du composant Bouton.
388
+
389
+ ## v0.12.0 (30/09/2020)
390
+
391
+
392
+ ## v0.11.0 (29/09/2020)
393
+
394
+
395
+ ## v0.10.0 (24/09/2020)
396
+
397
+ - [#33](https://github.com/1024pix/pix-ui/pull/33) [FEATURE] Créer le composant PixActionButton
398
+
399
+ ## v0.9.0 (18/09/2020)
400
+
401
+ - [#34](https://github.com/1024pix/pix-ui/pull/34) [TECH] Upgrade Ember-cli and font-awesome.
402
+ - [#32](https://github.com/1024pix/pix-ui/pull/32) [TECH] Eviter de jouer circle-ci sur la branche gh-pages
403
+ - [#31](https://github.com/1024pix/pix-ui/pull/31) [TECH] Ajout de ...attributes à la PixTooltip
404
+
405
+ ## v0.8.1 (27/08/2020)
406
+
407
+ - [#31](https://github.com/1024pix/pix-ui/pull/31) [TECH] Ajout de ...attributes à la PixTooltip
408
+
409
+ ## v0.8.0 (24/08/2020)
410
+
411
+ - [#30](https://github.com/1024pix/pix-ui/pull/30) [FEATURE] Add support for ember app internal links in PixBanner (PIX-1085).
412
+
413
+ ## v0.7.0 (21/08/2020)
414
+
415
+ - [#24](https://github.com/1024pix/pix-ui/pull/24) [TECH] Ajout d'une commande custom pour créer un composant Pix UI
416
+
417
+ ## v0.6.0 (17/08/2020)
418
+
419
+ - [#29](https://github.com/1024pix/pix-ui/pull/29) [FEATURE] Ajout du composant PixBanner (PIX-1114).
420
+ - [#28](https://github.com/1024pix/pix-ui/pull/28) [TECH] Correction des warnings de storybook
421
+ - [#23](https://github.com/1024pix/pix-ui/pull/23) [TECH] Ajout d'un reset CSS
422
+
423
+ ## v0.5.0 (22/07/2020)
424
+
425
+ - [#27](https://github.com/1024pix/pix-ui/pull/27) [BUGFIX] Corrections de la PixLinkBack renommée en PixReturnTo
426
+
427
+ ## v0.4.0 (17/07/2020)
428
+
429
+ - [#25](https://github.com/1024pix/pix-ui/pull/25) [FEATURE] Ajout du composant PixLinkBack
430
+ - [#26](https://github.com/1024pix/pix-ui/pull/26) [TECH] Changer le port de l'app Ember Pix UI
431
+ - [#19](https://github.com/1024pix/pix-ui/pull/19) [TECH] Ajout du addon-a11y pour vérifier des points d'accessibilité sur les add-on pix.
432
+
433
+ ## v0.3.0 (03/07/2020)
434
+
435
+ - [#22](https://github.com/1024pix/pix-ui/pull/22) [FEATURE] Ajout d'un PixBackgroundBlue & PixBlocShadow
436
+
437
+ ## v0.2.2 (18/06/2020)
438
+
439
+ - [#21](https://github.com/1024pix/pix-ui/pull/21) [TECH] Correction du déploiment automatique de storybook en ligne
440
+
441
+ ## v0.2.1 (17/06/2020)
442
+
443
+ - [#20](https://github.com/1024pix/pix-ui/pull/20) [TECH] Mettre des dépendances en "devDependancies"
444
+
445
+ ## v0.2.0 (12/06/2020)
446
+
447
+ - [#18](https://github.com/1024pix/pix-ui/pull/18) [FEATURE] Ajout du composant Message
448
+ - [#17](https://github.com/1024pix/pix-ui/pull/17) [FEATURE] Ajout du composant PixTag
449
+ - [#16](https://github.com/1024pix/pix-ui/pull/16) [DOCS] Ajout de documentations (readme, bonne pratiques ...)
450
+ - [#14](https://github.com/1024pix/pix-ui/pull/14) [DOCS] Documentation sur le déploiement de Storybook en ligne
451
+
452
+ ## v0.1.2 (04/06/2020)
453
+
454
+ - [#13](https://github.com/1024pix/pix-ui/pull/13) [TECH] Correction de l'ordre des titres du Changelog
455
+
456
+ ## v0.1.1 (03/06/2020)
457
+
458
+ - [#12](https://github.com/1024pix/pix-ui/pull/12) [BUGFIX] Ajustements sur le script de déploiement.
459
+
460
+ ## v0.1.0 (03/06/2020)
461
+
462
+ - [#2](https://github.com/1024pix/pix-ui/pull/2) [FEATURE] Création d'un composant Tooltip
463
+ - [#1](https://github.com/1024pix/pix-ui/pull/1) [FEATURE] Ajout de style commun avec sass
464
+ - [#11](https://github.com/1024pix/pix-ui/pull/11) [TECH] Ajout des scripts de déploiement.
465
+ - [#10](https://github.com/1024pix/pix-ui/pull/10) [TECH] Ajout d'un script de déploiement de storybook sur GitHub Pages
466
+ - [#9](https://github.com/1024pix/pix-ui/pull/9) [TECH] Correction d'un bug venant du theme et centrer les stories
467
+ - [#8](https://github.com/1024pix/pix-ui/pull/8) [TECH] Customiser storybook
468
+ - [#4](https://github.com/1024pix/pix-ui/pull/4) [TECH] Paramétrer circleCI
469
+ - [#3](https://github.com/1024pix/pix-ui/pull/3) Add a new PR template
package/CNAME ADDED
@@ -0,0 +1 @@
1
+ ui.pix.fr
package/LICENSE.md ADDED
@@ -0,0 +1,9 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,58 @@
1
+ - [Présentation de Pix-UI](#Pix-UI)
2
+ - [Installation de l'addon Pix-UI](#Addon)
3
+ - [Développment de Pix-UI](#Developpement)
4
+ - [Lancement de storybook en local](#Storybook)
5
+
6
+
7
+ Pix-UI <a id="Pix-UI"></a>
8
+ ==============================================================================
9
+
10
+ Pix-UI c'est l'implémentation des principes du design system de Pix. Cela se matérialise par :
11
+ - **un addon ember**, permettant l'utilisation composants UI Pix sur des applications ember externes
12
+ - **un site statique**, présentant les composants UI Pix : https://1024pix.github.io/pix-ui/
13
+
14
+ ![Capture d'écran du storybook en ligne](./docs/assets/screen-pix-storybook.png)
15
+
16
+ ##### Version du projet :
17
+
18
+ * Ember CLI v3.25.1
19
+ * Node 14.16.0
20
+
21
+
22
+ ## Installation de l'addon Pix-UI <a id="Addon"></a>
23
+
24
+ Pour utiliser les composants sur une application Ember externe, il faut installer l'addon ember Pix-UI avec la commande :
25
+ - `npm install @1024pix/pix-ui@<tag_souhaité>`
26
+
27
+ ##### Quel tag choisir ?
28
+
29
+ `<tag_souhaité>` doit correspondre au numéro de version à installer. Ce numéro de version correspond à une release.
30
+ *Par exemple, on peut remplacer `<tag_souhaité>` par `v0.1.1`.*
31
+ Pour voir la liste des tags de Pix-UI, [c'est par ici.](https://github.com/1024pix/pix-ui/tags)
32
+
33
+ ##### Installation par défaut
34
+
35
+ Il est possible d'installer Pix UI sans `#<tag_souhaité>`, auquel cas ce sera la dernière version qui sera installée.
36
+
37
+ Plus d'informations sur les [tags git ici](https://git-scm.com/book/fr/v2/Les-bases-de-Git-%C3%89tiquetage).
38
+
39
+
40
+ ## Développement de Pix-UI <a id="Developpement"></a>
41
+
42
+ * `git clone https://github.com/1024pix/pix-ui.git`
43
+ * `cd pix-ui`
44
+ * `npm install`
45
+
46
+ ##### Création d'un composant Pix-UI
47
+
48
+ * `ember g pix-component <nom_du_composant>`
49
+
50
+ Plus d'informations sur [la création de composant ici](/?path=/docs/create-component.stories.mdx).
51
+
52
+
53
+ ##### Lancement de storybook en local <a id="Storybook"></a>
54
+
55
+ Pour visualiser les composants créés, il faut lancer storybook :
56
+ * `npm run storybook`
57
+
58
+
@@ -0,0 +1,7 @@
1
+ <div class="pix-background-header" ...attributes>
2
+
3
+ <div class="pix-background-header__background"></div>
4
+
5
+ {{yield}}
6
+
7
+ </div>
@@ -0,0 +1,5 @@
1
+ import Component from '@glimmer/component';
2
+
3
+ export default class PixBackgroundHeaderComponent extends Component {
4
+ text = 'pix-background-header';
5
+ }
@@ -0,0 +1,16 @@
1
+ <div class="pix-banner pix-banner--{{this.type}}" ...attributes>
2
+ <FaIcon @icon={{this.icon}} class="pix-banner__icon" />
3
+ <div>
4
+ {{yield}}
5
+ {{#if this.displayAction}}
6
+ {{#if this.isExternalLink}}
7
+ <a class="pix-banner__action" href={{@actionUrl}} target="_blank" rel="noopener noreferrer">
8
+ {{@actionLabel}}
9
+ <FaIcon class="external-link" @icon="external-link-alt" />
10
+ </a>
11
+ {{else}}
12
+ <LinkTo class="pix-banner__action" @route={{@actionUrl}}>{{@actionLabel}}</LinkTo>
13
+ {{/if}}
14
+ {{/if}}
15
+ </div>
16
+ </div>
@@ -0,0 +1,43 @@
1
+ import Component from '@glimmer/component';
2
+ const TYPE_INFO = 'information';
3
+ const TYPE_ERROR = 'error';
4
+ const TYPE_WARNING = 'warning';
5
+ const TYPE_COMMUNICATION = 'communication';
6
+ const TYPE_COMMUNICATION_ORGA = 'communication-orga';
7
+ const TYPE_COMMUNICATION_CERTIF = 'communication-certif';
8
+
9
+ const types = [
10
+ TYPE_INFO,
11
+ TYPE_ERROR,
12
+ TYPE_WARNING,
13
+ TYPE_COMMUNICATION,
14
+ TYPE_COMMUNICATION_ORGA,
15
+ TYPE_COMMUNICATION_CERTIF,
16
+ ];
17
+
18
+ const icons = {
19
+ [TYPE_INFO]: 'info-circle',
20
+ [TYPE_ERROR]: 'exclamation-triangle',
21
+ [TYPE_WARNING]: 'exclamation-circle',
22
+ [TYPE_COMMUNICATION]: 'bullhorn',
23
+ [TYPE_COMMUNICATION_ORGA]: 'bullhorn',
24
+ [TYPE_COMMUNICATION_CERTIF]: 'bullhorn',
25
+ };
26
+
27
+ export default class PixBanner extends Component {
28
+ get type() {
29
+ return types.includes(this.args.type) ? this.args.type : TYPE_INFO;
30
+ }
31
+
32
+ get icon() {
33
+ return icons[this.type];
34
+ }
35
+
36
+ get displayAction() {
37
+ return this.args.actionLabel && this.args.actionUrl;
38
+ }
39
+
40
+ get isExternalLink() {
41
+ return this.args.actionUrl.includes('/');
42
+ }
43
+ }
@@ -0,0 +1,5 @@
1
+ <div class="pix-block {{concat "pix-block--shadow-" this.getShadowWeight}}" ...attributes>
2
+
3
+ {{yield}}
4
+
5
+ </div>
@@ -0,0 +1,11 @@
1
+ import Component from '@glimmer/component';
2
+
3
+ export default class PixBlockComponent extends Component {
4
+ text = 'pix-block';
5
+
6
+ get getShadowWeight() {
7
+ const shadowParam = this.args.shadow;
8
+ const correctsWeight = ['light', 'heavy'];
9
+ return correctsWeight.includes(shadowParam) ? shadowParam : 'light';
10
+ }
11
+ }