allaw-ui 0.0.19 → 0.0.35

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 (202) hide show
  1. package/README.md +30 -10
  2. package/dist/app/globals.css +5 -0
  3. package/dist/app/layout.d.ts +0 -0
  4. package/dist/app/layout.js +0 -0
  5. package/dist/assets/NoPhoto.png +0 -0
  6. package/dist/assets/NoPhoto.svg +22 -0
  7. package/dist/assets/allaw-font.eot +0 -0
  8. package/dist/assets/allaw-font.svg +8 -2
  9. package/dist/assets/allaw-font.ttf +0 -0
  10. package/dist/assets/allaw-font.woff +0 -0
  11. package/dist/components/atoms/buttons/ActionCircleButton.css +143 -0
  12. package/dist/components/atoms/buttons/ActionCircleButton.d.ts +9 -0
  13. package/dist/components/atoms/buttons/ActionCircleButton.js +23 -0
  14. package/dist/components/atoms/buttons/AgendaSlot.css +116 -0
  15. package/dist/components/atoms/buttons/AgendaSlot.d.ts +10 -0
  16. package/dist/components/atoms/buttons/AgendaSlot.js +7 -0
  17. package/dist/components/atoms/buttons/FavoriteToggle.css +35 -0
  18. package/dist/components/atoms/buttons/FavoriteToggle.d.ts +8 -0
  19. package/dist/components/atoms/buttons/FavoriteToggle.js +11 -0
  20. package/dist/components/atoms/buttons/FilterButton.css +55 -0
  21. package/dist/components/atoms/buttons/FilterButton.d.ts +9 -0
  22. package/dist/components/atoms/buttons/FilterButton.js +9 -0
  23. package/dist/components/atoms/buttons/FilterButtonPrimary.d.ts +9 -0
  24. package/dist/components/atoms/buttons/FilterButtonPrimary.js +46 -0
  25. package/dist/components/atoms/buttons/GhostButton.css +63 -0
  26. package/dist/components/atoms/buttons/GhostButton.d.ts +14 -0
  27. package/dist/components/atoms/buttons/GhostButton.js +11 -0
  28. package/dist/components/atoms/buttons/IconButton.css +111 -0
  29. package/dist/components/atoms/buttons/IconButton.d.ts +10 -0
  30. package/dist/components/atoms/buttons/IconButton.js +14 -0
  31. package/dist/components/atoms/buttons/OAuthProviderButton.css +117 -0
  32. package/dist/components/atoms/buttons/OAuthProviderButton.d.ts +12 -0
  33. package/dist/components/atoms/buttons/OAuthProviderButton.js +143 -0
  34. package/dist/components/atoms/buttons/PendingDocuments.css +53 -0
  35. package/dist/components/atoms/buttons/PendingDocuments.d.ts +10 -0
  36. package/dist/components/atoms/buttons/PendingDocuments.js +13 -0
  37. package/dist/components/{buttons/ButtonPrimary.css → atoms/buttons/PrimaryButton.css} +12 -7
  38. package/dist/components/atoms/buttons/PrimaryButton.d.ts +16 -0
  39. package/dist/components/atoms/buttons/PrimaryButton.js +11 -0
  40. package/dist/components/atoms/buttons/SecondaryButton.css +124 -0
  41. package/dist/components/atoms/buttons/SecondaryButton.d.ts +14 -0
  42. package/dist/components/atoms/buttons/SecondaryButton.js +11 -0
  43. package/dist/components/atoms/buttons/TabNavigation.css +43 -0
  44. package/dist/components/atoms/buttons/TabNavigation.d.ts +13 -0
  45. package/dist/components/atoms/buttons/TabNavigation.js +10 -0
  46. package/dist/components/atoms/buttons/TertiaryButton.css +63 -0
  47. package/dist/components/atoms/buttons/TertiaryButton.d.ts +10 -0
  48. package/dist/components/atoms/buttons/TertiaryButton.js +10 -0
  49. package/dist/components/atoms/buttons/index.d.ts +22 -0
  50. package/dist/components/atoms/buttons/index.js +11 -0
  51. package/dist/components/atoms/checkboxes/Checkbox.css +50 -0
  52. package/dist/components/atoms/checkboxes/Checkbox.d.ts +11 -0
  53. package/dist/components/atoms/checkboxes/Checkbox.js +15 -0
  54. package/dist/components/atoms/checkboxes/index.d.ts +2 -0
  55. package/dist/components/atoms/checkboxes/index.js +1 -0
  56. package/dist/components/atoms/filter/Basefiler.css +80 -0
  57. package/dist/components/atoms/filter/Filter.d.ts +23 -0
  58. package/dist/components/atoms/filter/Filter.js +87 -0
  59. package/dist/components/atoms/filter/index.d.ts +2 -0
  60. package/dist/components/atoms/filter/index.js +1 -0
  61. package/dist/components/atoms/inputs/Input.css +184 -0
  62. package/dist/components/atoms/inputs/Input.d.ts +22 -0
  63. package/dist/components/atoms/inputs/Input.js +86 -0
  64. package/dist/components/atoms/inputs/SearchBar.css +54 -0
  65. package/dist/components/atoms/inputs/SearchBar.d.ts +12 -0
  66. package/dist/components/atoms/inputs/SearchBar.js +20 -0
  67. package/dist/components/atoms/inputs/index.d.ts +4 -0
  68. package/dist/components/atoms/inputs/index.js +2 -0
  69. package/dist/components/atoms/progressBars/ProgressBar.css +109 -0
  70. package/dist/components/atoms/progressBars/ProgressBar.d.ts +15 -0
  71. package/dist/components/atoms/progressBars/ProgressBar.js +17 -0
  72. package/dist/components/atoms/progressBars/index.d.ts +2 -0
  73. package/dist/components/atoms/progressBars/index.js +1 -0
  74. package/dist/components/atoms/radios/RadioButton.css +98 -0
  75. package/dist/components/atoms/radios/RadioButton.d.ts +11 -0
  76. package/dist/components/atoms/radios/RadioButton.js +10 -0
  77. package/dist/components/atoms/radios/index.d.ts +2 -0
  78. package/dist/components/atoms/radios/index.js +1 -0
  79. package/dist/components/atoms/selects/Select.css +103 -0
  80. package/dist/components/atoms/selects/Select.d.ts +24 -0
  81. package/dist/components/atoms/selects/Select.js +84 -0
  82. package/dist/components/atoms/selects/index.d.ts +2 -0
  83. package/dist/components/atoms/selects/index.js +1 -0
  84. package/dist/components/atoms/tags/AppointementStatusTag.css +113 -13
  85. package/dist/components/atoms/tags/AppointementStatusTag.d.ts +1 -1
  86. package/dist/components/atoms/tags/FolderStatusTag.css +26 -0
  87. package/dist/components/atoms/tags/FolderStatusTag.d.ts +7 -0
  88. package/dist/components/atoms/tags/FolderStatusTag.js +8 -0
  89. package/dist/components/atoms/tags/OtherStatusTag.css +72 -0
  90. package/dist/components/atoms/tags/OtherStatusTag.d.ts +10 -0
  91. package/dist/components/atoms/tags/OtherStatusTag.js +10 -0
  92. package/dist/components/atoms/tags/index.d.ts +6 -0
  93. package/dist/components/atoms/tags/index.js +3 -0
  94. package/dist/components/atoms/typography/Heading.css +77 -0
  95. package/dist/components/atoms/typography/Heading.d.ts +10 -0
  96. package/dist/components/atoms/typography/Heading.js +7 -0
  97. package/dist/components/atoms/typography/Paragraph.css +43 -0
  98. package/dist/components/atoms/typography/Paragraph.d.ts +11 -0
  99. package/dist/components/atoms/typography/Paragraph.js +24 -0
  100. package/dist/components/atoms/typography/SmallTitle.css +53 -0
  101. package/dist/components/atoms/typography/SmallTitle.d.ts +9 -0
  102. package/dist/components/atoms/typography/SmallTitle.js +7 -0
  103. package/dist/components/atoms/typography/Subtitle.css +40 -0
  104. package/dist/components/atoms/typography/Subtitle.d.ts +9 -0
  105. package/dist/components/atoms/typography/Subtitle.js +7 -0
  106. package/dist/components/atoms/typography/TinyInfo.css +56 -0
  107. package/dist/components/atoms/typography/TinyInfo.d.ts +12 -0
  108. package/dist/components/atoms/typography/TinyInfo.js +15 -0
  109. package/dist/components/atoms/typography/index.d.ts +10 -0
  110. package/dist/components/atoms/typography/index.js +5 -0
  111. package/dist/components/atoms/uiVariables/BorderRadius.d.ts +6 -0
  112. package/dist/components/atoms/uiVariables/BorderRadius.js +12 -0
  113. package/dist/components/atoms/uiVariables/BorderRadiusExample.css +31 -0
  114. package/dist/components/atoms/uiVariables/Shadows.d.ts +6 -0
  115. package/dist/components/atoms/uiVariables/Shadows.js +11 -0
  116. package/dist/components/atoms/uiVariables/ShadowsExample.css +27 -0
  117. package/dist/components/atoms/uiVariables/Strokes.d.ts +6 -0
  118. package/dist/components/atoms/uiVariables/Strokes.js +10 -0
  119. package/dist/components/atoms/uiVariables/StrokesExample.css +22 -0
  120. package/dist/components/atoms/uiVariables/index.d.ts +3 -0
  121. package/dist/components/atoms/uiVariables/index.js +3 -0
  122. package/dist/components/molecules/appointmentSlot/AppointmentSlot.css +366 -0
  123. package/dist/components/molecules/appointmentSlot/AppointmentSlot.d.ts +25 -0
  124. package/dist/components/molecules/appointmentSlot/AppointmentSlot.js +109 -0
  125. package/dist/components/molecules/appointmentSlot/index.d.ts +2 -0
  126. package/dist/components/molecules/appointmentSlot/index.js +1 -0
  127. package/dist/components/molecules/breadcrumb/Breadcrumb.css +32 -0
  128. package/dist/components/molecules/breadcrumb/Breadcrumb.d.ts +12 -0
  129. package/dist/components/molecules/breadcrumb/Breadcrumb.js +12 -0
  130. package/dist/components/molecules/breadcrumb/index.d.ts +2 -0
  131. package/dist/components/molecules/breadcrumb/index.js +1 -0
  132. package/dist/components/molecules/caseCard/CaseCard.css +119 -0
  133. package/dist/components/molecules/caseCard/CaseCard.d.ts +14 -0
  134. package/dist/components/molecules/caseCard/CaseCard.js +20 -0
  135. package/dist/components/molecules/caseCard/index.d.ts +2 -0
  136. package/dist/components/molecules/caseCard/index.js +1 -0
  137. package/dist/components/molecules/checkboxForm/CheckboxForm.css +60 -0
  138. package/dist/components/molecules/checkboxForm/CheckboxForm.d.ts +15 -0
  139. package/dist/components/molecules/checkboxForm/CheckboxForm.js +28 -0
  140. package/dist/components/molecules/checkboxForm/index.d.ts +2 -0
  141. package/dist/components/molecules/checkboxForm/index.js +1 -0
  142. package/dist/components/molecules/contactCard/ContactCard.css +386 -0
  143. package/dist/components/molecules/contactCard/ContactCard.d.ts +17 -0
  144. package/dist/components/molecules/contactCard/ContactCard.js +80 -0
  145. package/dist/components/molecules/contactCard/index.d.ts +2 -0
  146. package/dist/components/molecules/contactCard/index.js +1 -0
  147. package/dist/components/molecules/documentCard/DocumentCard.css +130 -0
  148. package/dist/components/molecules/documentCard/DocumentCard.d.ts +14 -0
  149. package/dist/components/molecules/documentCard/DocumentCard.js +59 -0
  150. package/dist/components/molecules/documentCard/index.d.ts +2 -0
  151. package/dist/components/molecules/documentCard/index.js +1 -0
  152. package/dist/components/molecules/employeeCard/EmployeeCard.css +187 -0
  153. package/dist/components/molecules/employeeCard/EmployeeCard.d.ts +15 -0
  154. package/dist/components/molecules/employeeCard/EmployeeCard.js +34 -0
  155. package/dist/components/molecules/employeeCard/index.d.ts +2 -0
  156. package/dist/components/molecules/employeeCard/index.js +1 -0
  157. package/dist/components/molecules/proCard/ProCard.css +117 -0
  158. package/dist/components/molecules/proCard/ProCard.d.ts +13 -0
  159. package/dist/components/molecules/proCard/ProCard.js +25 -0
  160. package/dist/components/molecules/proCard/index.d.ts +2 -0
  161. package/dist/components/molecules/proCard/index.js +1 -0
  162. package/dist/components/molecules/stepper/Stepper.css +80 -0
  163. package/dist/components/molecules/stepper/Stepper.d.ts +27 -0
  164. package/dist/components/molecules/stepper/Stepper.js +68 -0
  165. package/dist/components/molecules/stepper/index.d.ts +2 -0
  166. package/dist/components/molecules/stepper/index.js +1 -0
  167. package/dist/index.d.ts +40 -2
  168. package/dist/index.js +59 -2
  169. package/dist/stories/assets/accessibility.png +0 -0
  170. package/dist/stories/assets/addon-library.png +0 -0
  171. package/dist/stories/assets/assets.png +0 -0
  172. package/dist/stories/assets/context.png +0 -0
  173. package/dist/stories/assets/docs.png +0 -0
  174. package/dist/stories/assets/figma-plugin.png +0 -0
  175. package/dist/stories/assets/share.png +0 -0
  176. package/dist/stories/assets/styling.png +0 -0
  177. package/dist/stories/assets/testing.png +0 -0
  178. package/dist/stories/assets/theming.png +0 -0
  179. package/dist/styles/colors.css +2 -0
  180. package/dist/styles/global.css +25 -0
  181. package/dist/styles/icons.css +32 -0
  182. package/dist/styles/ui-variables/border-radius.css +6 -0
  183. package/dist/styles/ui-variables/shadows.css +5 -0
  184. package/dist/styles/ui-variables/stroke.css +4 -0
  185. package/dist/utils/regex.d.ts +5 -0
  186. package/dist/utils/regex.js +7 -0
  187. package/package.json +37 -16
  188. package/dist/buttons/ButtonPrimary.d.ts +0 -10
  189. package/dist/buttons/ButtonPrimary.js +0 -10
  190. package/dist/components/atoms/buttons/ButtonPrimary.css +0 -52
  191. package/dist/components/atoms/buttons/ButtonPrimary.d.ts +0 -11
  192. package/dist/components/atoms/buttons/ButtonPrimary.js +0 -11
  193. package/dist/components/buttons/ButtonPrimary.d.ts +0 -11
  194. package/dist/components/buttons/ButtonPrimary.js +0 -11
  195. package/dist/components/tags/AppointementStatusTag.css +0 -58
  196. package/dist/components/tags/AppointementStatusTag.d.ts +0 -8
  197. package/dist/components/tags/AppointementStatusTag.js +0 -41
  198. package/dist/stories/button.css +0 -30
  199. package/dist/stories/header.css +0 -32
  200. package/dist/stories/page.css +0 -69
  201. package/dist/tags/AppointementStatusTag.d.ts +0 -8
  202. package/dist/tags/AppointementStatusTag.js +0 -41
package/README.md CHANGED
@@ -15,6 +15,21 @@ Importez les composants dont vous avez besoin dans votre application React.
15
15
  - Button
16
16
  - Icon
17
17
  - Tag
18
+ - EmployeeCard
19
+ - CaseCard
20
+ - DocumentCard
21
+ - ContactCard
22
+ - Stepper
23
+ - ProgressBar
24
+ - Input
25
+ - SearchBar
26
+ - Typography (Heading, Subtitle, Paragraph, TinyInfo, SmallTitle)
27
+ - AppointementStatusTag
28
+ - FolderStatusTag
29
+ - PendingDocuments
30
+ - ActionCircleButton
31
+ - GhostButton
32
+ - Checkbox
18
33
 
19
34
  Pour une documentation complète de chaque composant, veuillez consulter notre Storybook.
20
35
 
@@ -28,7 +43,7 @@ Pour une documentation complète de chaque composant, veuillez consulter notre S
28
43
 
29
44
  ### Installation des dépendances
30
45
 
31
- npm install
46
+ npm install
32
47
 
33
48
  Storybook sera disponible à l'adresse [http://localhost:6006](http://localhost:6006).
34
49
 
@@ -36,9 +51,9 @@ Storybook sera disponible à l'adresse [http://localhost:6006](http://localhost:
36
51
 
37
52
  import "../node_modules/allaw-ui/dist/styles/colors.css";
38
53
 
39
- <div className={styles.testCouleur}>
40
- Test couleur variable --bleu-allaw
41
- </div>
54
+ <div className={styles.testCouleur}>
55
+ Test couleur variable --bleu-allaw
56
+ </div>
42
57
 
43
58
  Fichier page.modules.css :
44
59
  .testCouleur {
@@ -47,9 +62,9 @@ color: var(--bleu-allaw);
47
62
 
48
63
  ### Utilisation des Boutons
49
64
 
50
- import { Button } from "allaw-ui";
65
+ import PrimaryButton from "allaw-ui/dist/components/atoms/buttons/PrimaryButton";
51
66
 
52
- <Button
67
+ <Button
53
68
  label="click me"
54
69
  startIcon="allaw-icon-arrow-right"
55
70
  endIcon="allaw-icon-arrow-left"
@@ -57,15 +72,20 @@ import { Button } from "allaw-ui";
57
72
 
58
73
  ### Utilisation des Tags
59
74
 
60
- import { Tag } from "allaw-ui";
61
-
62
- <Tag status="passed" variant="big" />
75
+ import { Tag } from "allaw-ui";
76
+ <Tag status="passed" variant="big" />
63
77
 
64
78
  ### Build
65
79
 
66
80
  Pour construire la bibliothèque :
67
81
 
68
- npm run build
82
+ npm run build
83
+
84
+ ### Storybook
85
+
86
+ Pour lancer Storybook en mode développement :
87
+
88
+ npm run build-storybook
69
89
 
70
90
  ## Contribution
71
91
 
@@ -0,0 +1,5 @@
1
+ * {
2
+ box-sizing: border-box;
3
+ padding: 0;
4
+ margin: 0;
5
+ }
File without changes
File without changes
Binary file
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
3
+ "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
+ <svg version="1.0" xmlns="http://www.w3.org/2000/svg"
5
+ width="512.000000pt" height="512.000000pt" viewBox="0 0 512.000000 512.000000"
6
+ preserveAspectRatio="xMidYMid meet">
7
+
8
+ <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"
9
+ fill="#000000" stroke="none">
10
+ <path d="M2415 5113 c-534 -33 -1032 -223 -1444 -551 -919 -730 -1223 -1988
11
+ -739 -3059 135 -298 363 -612 601 -826 l78 -70 27 21 c38 30 165 103 547 310
12
+ 182 99 349 196 372 216 23 20 54 62 70 94 27 55 28 62 31 248 l4 191 -46 63
13
+ c-97 131 -197 334 -242 489 -20 68 -33 94 -63 126 -75 78 -76 81 -76 355 0
14
+ 261 2 276 55 335 17 18 19 50 23 355 4 376 7 393 78 539 121 246 391 381 799
15
+ 398 466 19 805 -125 940 -400 71 -145 73 -160 71 -532 -2 -328 -2 -331 19
16
+ -350 12 -11 32 -38 44 -60 20 -38 21 -54 21 -285 0 -233 -1 -247 -22 -286 -25
17
+ -47 -82 -101 -128 -120 -26 -10 -34 -23 -49 -71 -29 -97 -162 -352 -236 -455
18
+ l-70 -97 0 -189 c0 -221 8 -255 78 -333 42 -47 79 -67 486 -271 243 -121 467
19
+ -238 499 -259 l58 -40 66 58 c173 152 366 388 494 605 329 554 434 1223 293
20
+ 1858 -191 859 -820 1565 -1653 1854 -311 108 -671 159 -986 139z"/>
21
+ </g>
22
+ </svg>
Binary file
@@ -7,8 +7,8 @@
7
7
  {
8
8
  "fontFamily": "allaw-font",
9
9
  "majorVersion": 1,
10
- "minorVersion": 1,
11
- "version": "Version 1.1",
10
+ "minorVersion": 3,
11
+ "version": "Version 1.3",
12
12
  "fontId": "allaw-font",
13
13
  "psName": "allaw-font",
14
14
  "subFamily": "Regular",
@@ -97,4 +97,10 @@
97
97
  <glyph unicode="&#xe947;" glyph-name="micOutline" data-tags="micOutline" d="M485.803 925.909c-59.872-10.823-107.673-53.325-125.927-109.19l-0.324-1.146c-8.021-25.387-8.192-30.464-7.552-232.747 0.555-177.963 0.811-191.061 3.712-202.197 15.36-58.411 56.363-101.888 111.019-117.76 13.452-4.073 28.912-6.417 44.92-6.417 68.519 0 127.005 42.956 149.998 103.406l0.368 1.102c9.899 26.795 9.344 14.933 9.984 221.867 0.427 131.712 0 194.688-1.28 204.587-4.676 36.561-21.192 68.599-45.518 92.793l-0.007 0.007c-11.818 12.248-25.672 22.435-41.034 30.034l-0.865 0.387c-22.101 11.221-39.509 15.445-66.176 16.171-2.731 0.117-5.935 0.184-9.154 0.184-7.805 0-15.518-0.392-23.121-1.158l0.958 0.078zM541.099 859.264c30.336-8.832 59.051-40.491 64.768-71.424 2.219-11.989 2.304-378.837 0.128-390.443-7.233-33.917-31.28-60.917-62.805-72.192l-0.683-0.213c-9.235-2.77-19.848-4.364-30.833-4.364-10.544 0-20.745 1.469-30.409 4.213l0.783-0.19c-22.528 7.083-45.483 27.136-56.235 49.109-9.685 19.84-9.387 12.715-9.387 216.875 0 117.248 0.64 191.445 1.707 197.205 4.053 21.973 21.717 47.317 42.667 61.269 21.888 14.549 52.053 18.347 80.299 10.155zM239.488 506.837c-4.424-2.828-8.117-6.385-11.010-10.541l-0.083-0.126c-3.925-6.272-3.968-6.997-3.925-55.851 0.043-50.944 1.28-65.536 7.808-92.16 23.787-94.697 91.918-169.597 180.483-202.36l2.002-0.648c15.486-5.566 33.995-10.372 53.054-13.556l1.943-0.268 9.813-1.152v-98.475l-139.648-0.981-6.528-5.291c-9.344-7.552-13.013-14.677-13.013-25.173 0-13.312 8.064-25.6 19.797-29.995 3.243-1.237 57.984-1.835 171.989-1.835 138.155 0 168.149 0.427 172.672 2.347 13.013 5.589 21.12 21.803 17.963 35.968-1.963 8.832-4.864 13.184-12.715 19.157l-6.315 4.821-139.349 0.981v98.475l9.813 1.152c21.002 3.452 39.511 8.258 57.325 14.539l-2.328-0.715c80.558 29.644 143.020 91.883 172.319 170.297l0.652 1.991c14.464 40.107 17.28 60.203 17.323 122.88 0.043 48.939 0 49.579-3.925 55.893-12.331 19.84-42.88 19.84-55.211 0-3.883-6.229-4.011-7.723-4.949-58.453-0.768-40.32-1.664-55.125-3.968-65.707-8.661-39.723-25.131-73.173-50.389-102.4-74.027-85.76-199.211-102.485-294.272-39.339-38.315 25.472-71.765 69.163-86.229 112.725-9.899 29.781-10.965 38.4-12.032 94.72-0.939 50.731-1.067 52.224-4.949 58.453-6.014 9.068-16.177 14.964-27.718 14.964-6.032 0-11.687-1.611-16.56-4.426l0.16 0.085z" />
98
98
  <glyph unicode="&#xe948;" glyph-name="presIcon" data-tags="presIcon" d="M89.344 862.805c-14.295-3.097-24.847-15.637-24.847-30.642 0-6.201 1.802-11.981 4.911-16.844l-0.075 0.126c7.552-12.117 14.421-14.891 38.571-15.573l20.011-0.597 0.512-234.923c0.469-220.331 0.725-235.605 3.584-245.205 12.421-42.857 44.917-76.141 86.365-89.427l0.931-0.258c10.624-3.456 16.213-4.011 50.048-4.651 27.776-0.512 37.888-1.237 37.333-2.688-9.984-26.923-50.688-154.027-50.645-158.251 0.085-13.568 10.752-27.051 24.363-30.763 12.843-3.499 28.971 3.157 34.773 14.379 1.536 2.987 6.016 15.019 9.941 26.752l7.125 21.333h359.424l7.979-23.424c8.405-24.704 11.819-30.080 22.613-35.627 3.914-1.937 8.522-3.070 13.395-3.070 9.089 0 17.258 3.942 22.889 10.209l0.025 0.028c5.268 5.959 8.719 13.635 9.42 22.091l0.009 0.139c0 2.091-46.123 144.299-50.56 155.861-0.725 1.877 6.059 2.432 37.205 3.029 33.749 0.64 39.467 1.195 50.048 4.608 42.343 13.628 74.81 46.897 87.062 88.795l0.234 0.933c2.859 9.6 3.115 24.875 3.584 245.205l0.512 234.923 20.011 0.597c24.149 0.683 31.019 3.456 38.571 15.573 3.064 4.726 4.885 10.505 4.885 16.709 0 11.627-6.398 21.761-15.865 27.071l-0.156 0.081-7.424 4.267-420.693 0.256c-231.381 0.128-423.125-0.299-426.069-1.024zM718.507 663.808c10.251-5.505 17.102-16.151 17.102-28.398 0-5.913-1.598-11.453-4.385-16.212l0.082 0.152c-3.371-5.717-8.405-9.856-23.467-19.243-52.139-32.512-94.037-70.912-132.736-121.557-16.427-21.547-22.101-25.728-34.773-25.728-13.525 0-18.731 3.84-56.363 41.216l-35.968 35.755-54.741-54.528c-35.627-35.499-56.875-55.381-60.928-57.088-3.763-1.728-8.164-2.736-12.801-2.736-9.509 0-18.028 4.238-23.772 10.929l-0.035 0.042c-5.589 6.357-9.771 17.792-8.405 22.955 0.427 1.579 1.28 5.205 1.92 8.021 0.811 3.755 19.328 23.424 70.571 74.795 38.187 38.315 71.723 70.869 74.496 72.363 6.784 3.584 20.864 3.413 28.245-0.384 3.243-1.664 21.291-18.261 40.107-36.864l34.133-33.835 8.533 10.539c13.696 16.981 51.371 53.845 71.637 70.059 29.995 24.021 69.632 50.005 80 52.48 1.972 0.392 4.239 0.616 6.558 0.616 5.443 0 10.598-1.234 15.201-3.438l-0.212 0.092zM659.072 193.749c5.461-16.427 9.941-30.805 9.941-32 0-1.749-31.232-2.176-157.739-2.176h-157.739l10.112 30.293c5.547 16.64 10.453 31.275 10.923 32.427 0.64 1.707 29.056 2.048 137.643 1.707l136.875-0.427 9.984-29.824z" />
99
99
  <glyph unicode="&#xe949;" glyph-name="presIconOutline" data-tags="presIconOutline" d="M88.875 863.189c-7.467-1.408-17.067-8.875-20.779-16.128-2.193-4.311-3.478-9.402-3.478-14.793 0-11.633 5.984-21.869 15.042-27.796l0.127-0.078c5.589-3.456 8.96-4.053 27.264-4.565l20.864-0.597 0.939-471.552 4.053-11.947c8.661-25.685 22.4-46.336 41.045-61.739 14.421-11.947 25.003-17.92 41.941-23.808 13.056-4.565 15.317-4.779 52.608-5.419 28.459-0.469 38.741-1.195 38.187-2.645-10.539-28.459-50.688-154.112-50.688-158.72 0-13.141 10.837-26.581 24.405-30.293 12.843-3.499 28.971 3.157 34.773 14.379 1.536 2.987 6.016 15.019 9.941 26.752l7.125 21.333h359.509l7.125-21.333c3.925-11.733 8.405-23.765 9.941-26.752 5.803-11.221 21.931-17.877 34.773-14.379 13.568 3.712 24.405 17.152 24.405 30.293 0 4.608-40.149 130.261-50.688 158.72-0.555 1.451 9.728 2.176 38.187 2.645 37.248 0.64 39.552 0.896 52.608 5.376 39.723 13.781 69.077 43.989 83.029 85.589l4.011 11.947 0.939 471.552 20.864 0.597c18.304 0.512 21.675 1.109 27.264 4.565 9.175 5.743 15.186 15.795 15.186 27.251 0 11.736-6.309 21.998-15.721 27.58l-0.148 0.081-7.424 4.267-421.547 0.213c-231.851 0.085-423.381-0.171-425.685-0.597zM830.72 567.040l-0.427-232.533-4.395-9.387c-9.042-17.976-25.456-31.113-45.165-35.542l-0.446-0.084c-12.843-2.731-523.733-2.731-536.576 0-20.154 4.513-36.569 17.651-45.436 35.243l-0.175 0.383-4.395 9.387-0.427 232.533-0.469 232.533h638.379l-0.469-232.533zM697.899 666.411c-10.923-1.835-51.968-28.715-85.205-55.723-18.219-14.805-54.485-50.688-67.371-66.688l-8.533-10.539-34.133 33.835c-18.816 18.603-36.864 35.2-40.107 36.864-4.31 1.864-9.328 2.948-14.6 2.948-5.233 0-10.216-1.068-14.744-2.998l0.246 0.093c-6.571-3.328-132.309-127.701-139.349-137.899-3.424-5.43-5.456-12.037-5.456-19.118 0-3.555 0.512-6.991 1.467-10.237l-0.065 0.256c4.139-12.587 21.931-23.339 34.645-20.949 10.453 1.92 19.968 10.197 72.064 62.336l51.157 51.243 35.883-35.584c19.712-19.541 38.443-36.864 41.515-38.443 4.167-1.809 9.021-2.862 14.121-2.862 5.363 0 10.454 1.164 15.034 3.253l-0.227-0.093c4.267 2.176 11.093 9.472 20.48 21.931 36.456 48.658 80.549 89.3 130.896 120.893l2.010 1.177c20.736 12.928 25.899 18.645 27.477 30.464 1.365 10.069-0.853 18.261-6.656 24.875-5.668 7.128-14.34 11.657-24.070 11.657-2.296 0-4.532-0.252-6.684-0.73l0.204 0.038zM659.072 193.749c5.461-16.427 9.941-30.805 9.941-32 0-1.749-31.104-2.176-157.013-2.176-126.677 0-157.013 0.427-157.013 2.176 0 1.707 15.573 49.835 19.584 60.544 0.64 1.707 29.056 2.048 137.643 1.707l136.875-0.427 9.984-29.824z" />
100
+ <glyph unicode="&#xe94a;" d="M1011.798 438.421c0 41.953-3.404 72.567-10.772 104.315h-479.060v-189.354h281.197c-5.667-47.057-36.282-117.924-104.315-165.544l-0.954-6.339 151.47-117.342 10.494-1.047c96.377 89.010 151.939 219.972 151.939 375.312z" />
101
+ <glyph unicode="&#xe94b;" d="M521.966-60.482c137.763 0 253.417 45.357 337.893 123.591l-161.010 124.729c-43.086-30.048-100.915-51.024-176.882-51.024-134.93 0-249.45 89.006-290.273 212.031l-5.984-0.508-157.501-121.891-2.060-5.726c83.905-166.677 256.254-281.201 455.817-281.201z" />
102
+ <glyph unicode="&#xe94c;" d="M231.694 348.844c-10.772 31.748-17.005 65.767-17.005 100.915 0 35.152 6.234 69.167 16.439 100.915l-0.285 6.762-159.474 123.849-5.218-2.482c-34.581-69.167-54.424-146.838-54.424-229.044s19.843-159.873 54.424-229.040l165.544 128.125z" />
103
+ <glyph unicode="&#xe94d;" d="M521.966 762.708c95.81 0 160.44-41.386 197.292-75.971l144.001 140.601c-88.439 82.205-203.53 132.663-341.293 132.663-199.563 0-371.911-114.52-455.817-281.197l164.977-128.129c41.39 123.025 155.91 212.034 290.839 212.034z" />
104
+ <glyph unicode="&#xe94e;" glyph-name="apple" data-tags="apple" d="M798.293 128c-35.413-52.907-72.96-104.533-130.133-105.387-57.173-1.28-75.52 33.707-140.373 33.707-65.28 0-85.333-32.853-139.521-34.987-55.893-2.133-98.133 56.32-133.973 107.947-72.96 105.387-128.853 299.52-53.76 430.080 37.12 64.853 103.68 105.813 175.787 107.093 54.615 0.853 106.668-37.12 140.375-37.12 33.28 0 96.427 45.653 162.56 38.827 27.733-1.28 105.387-11.093 155.307-84.48-3.84-2.56-92.587-54.613-91.733-162.56 1.28-128.853 113.067-171.947 114.347-172.373-1.28-2.987-17.92-61.44-58.88-120.747zM554.667 810.667c31.147 35.413 82.773 62.293 125.44 64 5.547-49.92-14.507-100.267-44.373-136.107-29.44-36.267-78.080-64.427-125.867-60.587-6.4 49.067 17.493 100.267 44.8 132.693z" />
105
+ <glyph unicode="&#xe94f;" glyph-name="linkedin" data-tags="linkedin" d="M1024-64h-204.8v358.349c0 98.304-43.366 153.139-121.139 153.139-84.634 0-134.861-57.139-134.861-153.139v-358.349h-204.8v665.6h204.8v-74.854c0 0 64.256 112.742 209.050 112.742 144.845 0 251.75-88.371 251.75-271.258v-432.23zM125.030 708.045c-69.069 0-125.030 56.422-125.030 126.003 0 69.53 55.962 125.952 125.030 125.952 69.018 0 124.979-56.422 124.979-125.952 0.051-69.581-55.962-126.003-124.979-126.003v0zM0-64h256v665.6h-256v-665.6z" />
100
106
  </font></defs></svg>
Binary file
Binary file
@@ -0,0 +1,143 @@
1
+ .approved-circle {
2
+ width: 32px;
3
+ height: 32px;
4
+ display: flex;
5
+ flex-direction: row;
6
+ align-items: center;
7
+ justify-content: center;
8
+ border-radius: 16px;
9
+ border: 1px solid var(--Tags-Vert, #29a36a);
10
+ background: var(--tag-green-light, #daf6e9);
11
+ cursor: pointer;
12
+ }
13
+
14
+ .approved-icon {
15
+ width: 16px;
16
+ height: 16px;
17
+ display: flex;
18
+ flex-direction: row;
19
+ align-items: center;
20
+ justify-content: center;
21
+ color: var(--Tags-Vert, #29a36a);
22
+ font-size: 14px;
23
+ transition: transform 0.15s ease;
24
+ }
25
+
26
+ .approved-circle:hover .approved-icon {
27
+ transform: scale(1.1);
28
+ transform-origin: center;
29
+ cursor: pointer;
30
+ }
31
+
32
+ .approved-circle:active .approved-icon {
33
+ transform: scale(1.2);
34
+ transform-origin: center;
35
+ }
36
+
37
+ /* Styles pour le bouton rejeté */
38
+ .rejected-circle {
39
+ width: 32px;
40
+ height: 32px;
41
+ display: flex;
42
+ flex-direction: row;
43
+ align-items: center;
44
+ justify-content: center;
45
+ border-radius: 16px;
46
+ border: 1px solid var(--red-tag-dark, #e15151);
47
+ background: var(--red-tag-light, #fdf2f2);
48
+ cursor: pointer;
49
+ }
50
+
51
+ .rejected-icon {
52
+ width: 16px;
53
+ height: 16px;
54
+ display: flex;
55
+ flex-direction: row;
56
+ align-items: center;
57
+ justify-content: center;
58
+ color: var(--red-tag-dark, #e15151);
59
+ font-size: 9px;
60
+ transition: transform 0.15s ease;
61
+ }
62
+
63
+ .rejected-circle:hover .rejected-icon {
64
+ transform: scale(1.1);
65
+ transform-origin: center;
66
+ cursor: pointer;
67
+ }
68
+
69
+ .rejected-circle:active .rejected-icon {
70
+ transform: scale(1.2);
71
+ transform-origin: center;
72
+ }
73
+
74
+ /* Styles pour le bouton dual */
75
+ .dual-button {
76
+ display: flex;
77
+ height: 32px;
78
+ width: 64px;
79
+ display: flex;
80
+ flex-direction: row;
81
+ align-items: center;
82
+ justify-content: center;
83
+ border-radius: 16px;
84
+ background: var(--secondary-light-grey, #f4f7fb);
85
+ }
86
+
87
+ .dual-rejected-icon {
88
+ width: 24px;
89
+ height: 24px;
90
+ color: #e15151;
91
+ background: none;
92
+ font-size: 9px;
93
+ display: flex;
94
+ flex-direction: row;
95
+ align-items: center;
96
+ justify-content: center;
97
+ padding-right: 4px;
98
+ transition: transform 0.15s ease;
99
+ }
100
+
101
+ .dual-rejected-icon:hover {
102
+ transform: scale(1.1);
103
+ transform-origin: center;
104
+ cursor: pointer;
105
+ }
106
+
107
+ .dual-rejected-icon:active {
108
+ transform: scale(1.2);
109
+ transform-origin: center;
110
+ }
111
+
112
+ .separator {
113
+ width: 1px;
114
+ height: 18px;
115
+ background-color: var(--light-grey, #728ea7);
116
+ opacity: 0.4;
117
+ }
118
+
119
+ .dual-approved-icon {
120
+ width: 24px;
121
+ height: 24px;
122
+ display: flex;
123
+ flex-direction: row;
124
+ align-items: center;
125
+ justify-content: center;
126
+ flex-shrink: 0;
127
+ font-size: 14px;
128
+ color: var(--Tags-Vert, #29a36a);
129
+ background: none;
130
+ padding-left: 4px;
131
+ transition: transform 0.15s ease;
132
+ }
133
+
134
+ .dual-approved-icon:hover {
135
+ transform: scale(1.1);
136
+ transform-origin: center;
137
+ cursor: pointer;
138
+ }
139
+
140
+ .dual-approved-icon:active {
141
+ transform: scale(1.2);
142
+ transform-origin: center;
143
+ }
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import "./ActionCircleButton.css";
3
+ interface ActionCircleButtonProps {
4
+ status: "approved" | "rejected" | "dual";
5
+ onApprove?: () => void;
6
+ onReject?: () => void;
7
+ }
8
+ declare const ActionCircleButton: React.FC<ActionCircleButtonProps>;
9
+ export default ActionCircleButton;
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ import "./ActionCircleButton.css";
3
+ var ActionCircleButton = function (_a) {
4
+ var status = _a.status, onApprove = _a.onApprove, onReject = _a.onReject;
5
+ if (status === "approved") {
6
+ return (React.createElement("button", { className: "approved-circle", onClick: onApprove },
7
+ React.createElement("span", { className: "allaw-icon-check approved-icon" })));
8
+ }
9
+ if (status === "rejected") {
10
+ return (React.createElement("button", { className: "rejected-circle", onClick: onReject },
11
+ React.createElement("span", { className: "allaw-icon-close rejected-icon" })));
12
+ }
13
+ if (status === "dual") {
14
+ return (React.createElement("div", { className: "dual-button" },
15
+ React.createElement("button", { className: "dual-rejected-icon", onClick: onReject },
16
+ React.createElement("span", { className: "allaw-icon-close" })),
17
+ React.createElement("span", { className: "separator" }),
18
+ React.createElement("button", { className: "dual-approved-icon", onClick: onApprove },
19
+ React.createElement("span", { className: "allaw-icon-check" }))));
20
+ }
21
+ return null;
22
+ };
23
+ export default ActionCircleButton;
@@ -0,0 +1,116 @@
1
+ .agenda-slot {
2
+ display: flex;
3
+ width: 149.333px;
4
+ padding: 16px;
5
+ justify-content: center;
6
+ align-items: center;
7
+ gap: 8px;
8
+ border-radius: 8px;
9
+ cursor: pointer;
10
+ font-family: "Inter", sans-serif;
11
+ font-size: 14px;
12
+ font-style: normal;
13
+ font-weight: 600;
14
+ line-height: normal;
15
+ text-align: center;
16
+ }
17
+
18
+ .agenda-slot.pro {
19
+ background: var(--secondary-light-grey, #f4f7fb);
20
+ color: var(--Primary-Mid-black, var(--primary-black, #171e25));
21
+ }
22
+
23
+ .agenda-slot.pro:hover {
24
+ background: #cfdeec;
25
+ color: var(--Primary-Mid-black, var(--primary-black, #171e25));
26
+ }
27
+
28
+ .agenda-slot.pro:active {
29
+ background: #cfdeec;
30
+ color: var(--Primary-Mid-black, var(--primary-black, #171e25));
31
+ }
32
+
33
+ .agenda-slot.pro.disabled {
34
+ background: var(--venom-grey, #e6edf5);
35
+ color: var(--Primary-Mid-black, var(--primary-black, #171e25));
36
+ font-weight: 700;
37
+ cursor: not-allowed;
38
+ }
39
+
40
+ .agenda-slot.hybride {
41
+ width: 104px;
42
+ height: 48px;
43
+ padding: 16px;
44
+ justify-content: center;
45
+ align-items: center;
46
+ gap: 8px;
47
+ flex-shrink: 0;
48
+ border-radius: 8px;
49
+ background: var(--tag-blue-light, #daebfb);
50
+ color: var(--Tags-Bleu-fonc, var(--tag-blue, #1985e8));
51
+ font-family: "Open Sans", sans-serif;
52
+ font-size: 16px;
53
+ font-style: normal;
54
+ font-weight: 600;
55
+ line-height: normal;
56
+ }
57
+
58
+ .agenda-slot.hybride:active {
59
+ background: var(--tag-blue, #1985e8);
60
+ color: var(--Tags-Bleu-clair, var(--tag-blue-light, #daebfb));
61
+ }
62
+
63
+ .agenda-slot.hybride.disabled {
64
+ background: var(--secondary-light-grey, #f4f7fb);
65
+ color: #bfd5e9;
66
+ cursor: not-allowed;
67
+ font-family: "Open Sans", sans-serif;
68
+ font-size: 16px;
69
+ font-style: normal;
70
+ font-weight: 600;
71
+ line-height: normal;
72
+ }
73
+
74
+ .agenda-slot.user {
75
+ width: 64px;
76
+ height: 40px;
77
+ padding: 8px;
78
+ justify-content: center;
79
+ align-items: center;
80
+ gap: 8px;
81
+ flex-shrink: 0;
82
+ border-radius: 8px;
83
+ background: var(--tag-blue-light, #daebfb);
84
+ color: var(--Tags-Bleu-fonc, var(--tag-blue, #1985e8));
85
+ font-family: "Inter", sans-serif;
86
+ font-size: 16px;
87
+ font-style: normal;
88
+ font-weight: 500;
89
+ line-height: 21px;
90
+ text-transform: uppercase;
91
+ text-align: center;
92
+ }
93
+
94
+ .agenda-slot.user:active {
95
+ background: var(--tag-blue, #1985e8);
96
+ color: var(--Tags-Bleu-clair, var(--tag-blue-light, #daebfb));
97
+ }
98
+
99
+ .agenda-slot.user.disabled {
100
+ background: var(--secondary-light-grey, #f4f7fb);
101
+ color: var(--Tags-Mid-grey, var(--light-grey, #728ea7));
102
+ cursor: not-allowed;
103
+ font-family: "Inter", sans-serif;
104
+ font-size: 16px;
105
+ font-style: normal;
106
+ font-weight: 500;
107
+ line-height: 21px;
108
+ text-transform: uppercase;
109
+ text-align: center;
110
+ }
111
+
112
+ .agenda-slot.disabled {
113
+ background-color: var(--disabled-bg, #e0e0e0);
114
+ color: #a0a0a0;
115
+ cursor: not-allowed;
116
+ }
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import "./AgendaSlot.css";
3
+ interface AgendaSlotProps {
4
+ time: string;
5
+ appearance: "pro" | "hybride" | "user";
6
+ isDisabled?: boolean;
7
+ onClick?: () => void;
8
+ }
9
+ declare const AgendaSlot: React.FC<AgendaSlotProps>;
10
+ export default AgendaSlot;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "./AgendaSlot.css";
3
+ var AgendaSlot = function (_a) {
4
+ var time = _a.time, appearance = _a.appearance, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, onClick = _a.onClick;
5
+ return (React.createElement("div", { className: "agenda-slot ".concat(appearance, " ").concat(isDisabled ? "disabled" : ""), onClick: !isDisabled ? onClick : undefined }, time));
6
+ };
7
+ export default AgendaSlot;
@@ -0,0 +1,35 @@
1
+ @import "../../../styles/colors.css";
2
+
3
+ .favorite-toggle {
4
+ width: 28px;
5
+ height: 28px;
6
+ display: flex;
7
+ flex-direction: row;
8
+ justify-content: center;
9
+ align-items: center;
10
+ cursor: pointer;
11
+ }
12
+
13
+ .favorite-toggle .icon {
14
+ width: 24px;
15
+ height: 24px;
16
+ flex-shrink: 0;
17
+ font-size: 24px;
18
+ display: flex;
19
+ flex-direction: row;
20
+ justify-content: center;
21
+ align-items: center;
22
+ transition: transform 0.15s ease;
23
+ }
24
+
25
+ .favorite-toggle .icon.favorite {
26
+ color: #fcc812;
27
+ }
28
+
29
+ .favorite-toggle .icon.not-favorite {
30
+ color: #000000;
31
+ }
32
+
33
+ .favorite-toggle .icon:active {
34
+ transform: scale(1.05);
35
+ }
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import "./FavoriteToggle.css";
3
+ export interface FavoriteToggleProps {
4
+ isFavorite: boolean;
5
+ onToggle: (isFavorite: boolean) => void;
6
+ }
7
+ declare const FavoriteToggle: React.FC<FavoriteToggleProps>;
8
+ export default FavoriteToggle;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import "./FavoriteToggle.css";
3
+ var FavoriteToggle = function (_a) {
4
+ var isFavorite = _a.isFavorite, onToggle = _a.onToggle;
5
+ var handleToggle = function () {
6
+ onToggle(!isFavorite);
7
+ };
8
+ return (React.createElement("div", { className: "favorite-toggle", onClick: handleToggle },
9
+ React.createElement("i", { className: "icon ".concat(isFavorite ? "favorite allaw-icon-star-fill" : "not-favorite allaw-icon-star-unfill") })));
10
+ };
11
+ export default FavoriteToggle;
@@ -0,0 +1,55 @@
1
+ @import "../../../styles/colors.css";
2
+
3
+ /* Styles pour le bouton actif */
4
+ .filter-button-active {
5
+ display: inline-flex;
6
+ height: 35px;
7
+ padding: 12px 24px;
8
+ justify-content: center;
9
+ align-items: center;
10
+ gap: 8px;
11
+ flex-shrink: 0;
12
+ border-radius: 56px;
13
+ background: var(--dark-grey, #456073);
14
+ }
15
+
16
+ .filter-button-active .filter-button-label {
17
+ color: var(--Primary-Blanc, #fff);
18
+ font-family: "Open Sans";
19
+ font-size: 14px;
20
+ font-style: normal;
21
+ font-weight: 400;
22
+ line-height: normal;
23
+ }
24
+
25
+ /* Styles pour le bouton inactif */
26
+ .filter-button-inactive {
27
+ display: inline-flex;
28
+ height: 35px;
29
+ padding: 12px 24px;
30
+ justify-content: center;
31
+ align-items: center;
32
+ gap: 8px;
33
+ flex-shrink: 0;
34
+ border-radius: 56px;
35
+ border: 1px solid var(--venom-grey, #e6edf5);
36
+ background: var(--secondary-light-grey, #f4f7fb);
37
+ }
38
+
39
+ .filter-button-inactive:hover {
40
+ background: var(--grey-venom, #e6edf5);
41
+ cursor: pointer;
42
+ }
43
+
44
+ .filter-button-inactive:active {
45
+ background: #d8e1eb;
46
+ }
47
+
48
+ .filter-button-inactive .filter-button-label {
49
+ color: var(--Primary-Mid-black, var(--primary-black, #171e25));
50
+ font-family: "Open Sans";
51
+ font-size: 14px;
52
+ font-style: normal;
53
+ font-weight: 400;
54
+ line-height: normal;
55
+ }
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import "./FilterButton.css";
3
+ import "../../../styles/global.css";
4
+ export interface FilterButtonProps {
5
+ label: string;
6
+ isActive: boolean;
7
+ }
8
+ declare const FilterButton: React.FC<FilterButtonProps>;
9
+ export default FilterButton;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import "./FilterButton.css";
3
+ import "../../../styles/global.css";
4
+ var FilterButton = function (_a) {
5
+ var label = _a.label, isActive = _a.isActive;
6
+ return (React.createElement("button", { className: "filter-button ".concat(isActive ? "filter-button-active" : "filter-button-inactive") },
7
+ React.createElement("span", { className: "filter-button-label" }, label)));
8
+ };
9
+ export default FilterButton;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ export type FilterButtonPrimaryProps = {
3
+ onClick: any;
4
+ zIndex?: string;
5
+ children: any;
6
+ props?: any;
7
+ };
8
+ declare function FilterButtonPrimary({ onClick, zIndex, children, ...props }: FilterButtonPrimaryProps | any): React.JSX.Element;
9
+ export default FilterButtonPrimary;
@@ -0,0 +1,46 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import React from "react";
24
+ function FilterButtonPrimary(_a) {
25
+ var onClick = _a.onClick, _b = _a.zIndex, zIndex = _b === void 0 ? "100" : _b, children = _a.children, props = __rest(_a, ["onClick", "zIndex", "children"]);
26
+ return (React.createElement("button", __assign({ style: {
27
+ fontWeight: "600",
28
+ backgroundColor: "var(--primary-light-grey, #F4F7FB)",
29
+ padding: "10px",
30
+ borderRadius: "5px",
31
+ fontSize: "14px",
32
+ textWrap: "nowrap",
33
+ border: "1px solid var(--primary-venom-grey, #E6EDF5)",
34
+ position: "sticky",
35
+ color: "#000",
36
+ display: "flex",
37
+ cursor: "pointer",
38
+ flexDirection: "row",
39
+ gap: "0.5rem",
40
+ alignItems: "center",
41
+ zIndex: zIndex,
42
+ }, onClick: function () { return onClick && onClick(); } }, props),
43
+ React.createElement("i", { className: "allaw-icon-filter", style: { fontSize: "14px", color: "#25BEEB" } }),
44
+ children));
45
+ }
46
+ export default FilterButtonPrimary;