allaw-ui 0.0.18 → 0.0.293

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 (162) hide show
  1. package/README.md +51 -2
  2. package/dist/app/globals.css +5 -0
  3. package/dist/components/atoms/buttons/ActionCircleButton.css +143 -0
  4. package/dist/components/atoms/buttons/ActionCircleButton.d.ts +9 -0
  5. package/dist/components/atoms/buttons/ActionCircleButton.js +23 -0
  6. package/dist/components/atoms/buttons/AgendaSlot.css +116 -0
  7. package/dist/components/atoms/buttons/AgendaSlot.d.ts +10 -0
  8. package/dist/components/atoms/buttons/AgendaSlot.js +7 -0
  9. package/dist/components/atoms/buttons/FavoriteToggle.css +35 -0
  10. package/dist/components/atoms/buttons/FavoriteToggle.d.ts +8 -0
  11. package/dist/components/atoms/buttons/FavoriteToggle.js +11 -0
  12. package/dist/components/atoms/buttons/FilterButton.css +55 -0
  13. package/dist/components/atoms/buttons/FilterButton.d.ts +9 -0
  14. package/dist/components/atoms/buttons/FilterButton.js +9 -0
  15. package/dist/components/atoms/buttons/GhostButton.css +63 -0
  16. package/dist/components/atoms/buttons/GhostButton.d.ts +14 -0
  17. package/dist/components/atoms/buttons/GhostButton.js +11 -0
  18. package/dist/components/atoms/buttons/IconButton.css +111 -0
  19. package/dist/components/atoms/buttons/IconButton.d.ts +10 -0
  20. package/dist/components/atoms/buttons/IconButton.js +14 -0
  21. package/dist/components/atoms/buttons/PendingDocuments.css +53 -0
  22. package/dist/components/atoms/buttons/PendingDocuments.d.ts +10 -0
  23. package/dist/components/atoms/buttons/PendingDocuments.js +13 -0
  24. package/dist/components/{buttons/ButtonPrimary.css → atoms/buttons/PrimaryButton.css} +11 -7
  25. package/dist/components/atoms/buttons/PrimaryButton.d.ts +15 -0
  26. package/dist/components/atoms/buttons/PrimaryButton.js +11 -0
  27. package/dist/components/atoms/buttons/SecondaryButton.css +123 -0
  28. package/dist/components/atoms/buttons/SecondaryButton.d.ts +14 -0
  29. package/dist/components/atoms/buttons/SecondaryButton.js +11 -0
  30. package/dist/components/atoms/buttons/TabNavigation.css +43 -0
  31. package/dist/components/atoms/buttons/TabNavigation.d.ts +13 -0
  32. package/dist/components/atoms/buttons/TabNavigation.js +10 -0
  33. package/dist/components/atoms/buttons/TertiaryButton.css +63 -0
  34. package/dist/components/atoms/buttons/TertiaryButton.d.ts +10 -0
  35. package/dist/components/atoms/buttons/TertiaryButton.js +10 -0
  36. package/dist/components/atoms/buttons/index.d.ts +18 -0
  37. package/dist/components/atoms/buttons/index.js +9 -0
  38. package/dist/components/atoms/checkboxes/Checkbox.css +50 -0
  39. package/dist/components/atoms/checkboxes/Checkbox.d.ts +10 -0
  40. package/dist/components/atoms/checkboxes/Checkbox.js +19 -0
  41. package/dist/components/atoms/checkboxes/index.d.ts +2 -0
  42. package/dist/components/atoms/checkboxes/index.js +1 -0
  43. package/dist/components/atoms/inputs/Input.css +185 -0
  44. package/dist/components/atoms/inputs/Input.d.ts +22 -0
  45. package/dist/components/atoms/inputs/Input.js +86 -0
  46. package/dist/components/atoms/inputs/SearchBar.css +54 -0
  47. package/dist/components/atoms/inputs/SearchBar.d.ts +12 -0
  48. package/dist/components/atoms/inputs/SearchBar.js +20 -0
  49. package/dist/components/atoms/inputs/index.d.ts +4 -0
  50. package/dist/components/atoms/inputs/index.js +2 -0
  51. package/dist/components/atoms/progressBars/ProgressBar.css +108 -0
  52. package/dist/components/atoms/progressBars/ProgressBar.d.ts +15 -0
  53. package/dist/components/atoms/progressBars/ProgressBar.js +17 -0
  54. package/dist/components/atoms/progressBars/index.d.ts +2 -0
  55. package/dist/components/atoms/progressBars/index.js +1 -0
  56. package/dist/components/atoms/radios/RadioButton.css +98 -0
  57. package/dist/components/atoms/radios/RadioButton.d.ts +11 -0
  58. package/dist/components/atoms/radios/RadioButton.js +10 -0
  59. package/dist/components/atoms/radios/index.d.ts +2 -0
  60. package/dist/components/atoms/radios/index.js +1 -0
  61. package/dist/components/atoms/selects/Select.css +103 -0
  62. package/dist/components/atoms/selects/Select.d.ts +22 -0
  63. package/dist/components/atoms/selects/Select.js +86 -0
  64. package/dist/components/atoms/selects/index.d.ts +2 -0
  65. package/dist/components/atoms/selects/index.js +1 -0
  66. package/dist/components/atoms/tags/AppointementStatusTag.css +158 -0
  67. package/dist/{tags → components/atoms/tags}/AppointementStatusTag.d.ts +1 -1
  68. package/dist/components/atoms/tags/FolderStatusTag.css +26 -0
  69. package/dist/components/atoms/tags/FolderStatusTag.d.ts +7 -0
  70. package/dist/components/atoms/tags/FolderStatusTag.js +8 -0
  71. package/dist/components/atoms/tags/OtherStatusTag.css +72 -0
  72. package/dist/components/atoms/tags/OtherStatusTag.d.ts +10 -0
  73. package/dist/components/atoms/tags/OtherStatusTag.js +10 -0
  74. package/dist/components/atoms/tags/index.d.ts +6 -0
  75. package/dist/components/atoms/tags/index.js +3 -0
  76. package/dist/components/atoms/typography/Heading.css +68 -0
  77. package/dist/components/atoms/typography/Heading.d.ts +9 -0
  78. package/dist/components/atoms/typography/Heading.js +7 -0
  79. package/dist/components/atoms/typography/Paragraph.css +43 -0
  80. package/dist/components/atoms/typography/Paragraph.d.ts +9 -0
  81. package/dist/components/atoms/typography/Paragraph.js +7 -0
  82. package/dist/components/atoms/typography/SmallTitle.css +53 -0
  83. package/dist/components/atoms/typography/SmallTitle.d.ts +9 -0
  84. package/dist/components/atoms/typography/SmallTitle.js +7 -0
  85. package/dist/components/atoms/typography/Subtitle.css +40 -0
  86. package/dist/components/atoms/typography/Subtitle.d.ts +9 -0
  87. package/dist/components/atoms/typography/Subtitle.js +7 -0
  88. package/dist/components/atoms/typography/TinyInfo.css +56 -0
  89. package/dist/components/atoms/typography/TinyInfo.d.ts +9 -0
  90. package/dist/components/atoms/typography/TinyInfo.js +8 -0
  91. package/dist/components/atoms/typography/index.d.ts +10 -0
  92. package/dist/components/atoms/typography/index.js +5 -0
  93. package/dist/components/atoms/uiVariables/BorderRadius.d.ts +6 -0
  94. package/dist/components/atoms/uiVariables/BorderRadius.js +12 -0
  95. package/dist/components/atoms/uiVariables/BorderRadiusExample.css +31 -0
  96. package/dist/components/atoms/uiVariables/Shadows.d.ts +6 -0
  97. package/dist/components/atoms/uiVariables/Shadows.js +11 -0
  98. package/dist/components/atoms/uiVariables/ShadowsExample.css +27 -0
  99. package/dist/components/atoms/uiVariables/Strokes.d.ts +6 -0
  100. package/dist/components/atoms/uiVariables/Strokes.js +10 -0
  101. package/dist/components/atoms/uiVariables/StrokesExample.css +22 -0
  102. package/dist/components/atoms/uiVariables/index.d.ts +3 -0
  103. package/dist/components/atoms/uiVariables/index.js +3 -0
  104. package/dist/components/molecules/appointmentSlot/AppointmentSlot.css +366 -0
  105. package/dist/components/molecules/appointmentSlot/AppointmentSlot.d.ts +25 -0
  106. package/dist/components/molecules/appointmentSlot/AppointmentSlot.js +109 -0
  107. package/dist/components/molecules/appointmentSlot/TestClic.css +19 -0
  108. package/dist/components/molecules/appointmentSlot/TestClic.d.ts +4 -0
  109. package/dist/components/molecules/appointmentSlot/TestClic.js +28 -0
  110. package/dist/components/molecules/appointmentSlot/index.d.ts +2 -0
  111. package/dist/components/molecules/appointmentSlot/index.js +1 -0
  112. package/dist/components/molecules/caseCard/CaseCard.css +119 -0
  113. package/dist/components/molecules/caseCard/CaseCard.d.ts +14 -0
  114. package/dist/components/molecules/caseCard/CaseCard.js +20 -0
  115. package/dist/components/molecules/caseCard/index.d.ts +2 -0
  116. package/dist/components/molecules/caseCard/index.js +1 -0
  117. package/dist/components/molecules/checkboxForm/CheckboxForm.css +22 -0
  118. package/dist/components/molecules/checkboxForm/CheckboxForm.d.ts +11 -0
  119. package/dist/components/molecules/checkboxForm/CheckboxForm.js +15 -0
  120. package/dist/components/molecules/checkboxForm/index.d.ts +2 -0
  121. package/dist/components/molecules/checkboxForm/index.js +1 -0
  122. package/dist/components/molecules/contactCard/ContactCard.css +386 -0
  123. package/dist/components/molecules/contactCard/ContactCard.d.ts +17 -0
  124. package/dist/components/molecules/contactCard/ContactCard.js +80 -0
  125. package/dist/components/molecules/contactCard/index.d.ts +2 -0
  126. package/dist/components/molecules/contactCard/index.js +1 -0
  127. package/dist/components/molecules/documentCard/DocumentCard.css +130 -0
  128. package/dist/components/molecules/documentCard/DocumentCard.d.ts +14 -0
  129. package/dist/components/molecules/documentCard/DocumentCard.js +59 -0
  130. package/dist/components/molecules/documentCard/index.d.ts +2 -0
  131. package/dist/components/molecules/documentCard/index.js +1 -0
  132. package/dist/components/molecules/employeeCard/EmployeeCard.css +187 -0
  133. package/dist/components/molecules/employeeCard/EmployeeCard.d.ts +15 -0
  134. package/dist/components/molecules/employeeCard/EmployeeCard.js +34 -0
  135. package/dist/components/molecules/employeeCard/index.d.ts +2 -0
  136. package/dist/components/molecules/employeeCard/index.js +1 -0
  137. package/dist/components/molecules/stepper/Stepper.css +80 -0
  138. package/dist/components/molecules/stepper/Stepper.d.ts +27 -0
  139. package/dist/components/molecules/stepper/Stepper.js +66 -0
  140. package/dist/components/molecules/stepper/index.d.ts +2 -0
  141. package/dist/components/molecules/stepper/index.js +1 -0
  142. package/dist/index.d.ts +36 -2
  143. package/dist/index.js +52 -2
  144. package/dist/styles/colors.css +2 -0
  145. package/dist/styles/global.css +9 -0
  146. package/dist/styles/ui-variables/border-radius.css +6 -0
  147. package/dist/styles/ui-variables/shadows.css +5 -0
  148. package/dist/styles/ui-variables/stroke.css +4 -0
  149. package/dist/utils/regex.d.ts +5 -0
  150. package/dist/utils/regex.js +7 -0
  151. package/package.json +36 -16
  152. package/dist/buttons/ButtonPrimary.d.ts +0 -10
  153. package/dist/buttons/ButtonPrimary.js +0 -10
  154. package/dist/components/buttons/ButtonPrimary.d.ts +0 -11
  155. package/dist/components/buttons/ButtonPrimary.js +0 -11
  156. package/dist/components/tags/AppointementStatusTag.css +0 -58
  157. package/dist/components/tags/AppointementStatusTag.d.ts +0 -8
  158. package/dist/stories/button.css +0 -30
  159. package/dist/stories/header.css +0 -32
  160. package/dist/stories/page.css +0 -69
  161. package/dist/tags/AppointementStatusTag.js +0 -41
  162. /package/dist/components/{tags → atoms/tags}/AppointementStatusTag.js +0 -0
package/dist/index.js CHANGED
@@ -1,2 +1,52 @@
1
- export { default as Button } from "./components/buttons/ButtonPrimary";
2
- export { default as Tag } from "./components/tags/AppointementStatusTag";
1
+ // Atoms
2
+ // Buttons
3
+ export { default as Button } from "./components/atoms/buttons/PrimaryButton";
4
+ export { default as FavoriteToggle } from "./components/atoms/buttons/FavoriteToggle";
5
+ export { default as FilterButton } from "./components/atoms/buttons/FilterButton";
6
+ export { default as GhostButton } from "./components/atoms/buttons/GhostButton";
7
+ export { default as IconButton } from "./components/atoms/buttons/IconButton";
8
+ export { default as PendingDocuments } from "./components/atoms/buttons/PendingDocuments";
9
+ export { default as PrimaryButton } from "./components/atoms/buttons/PrimaryButton";
10
+ export { default as SecondaryButton } from "./components/atoms/buttons/SecondaryButton";
11
+ export { default as TabNavigation } from "./components/atoms/buttons/TabNavigation";
12
+ export { default as TertiaryButton } from "./components/atoms/buttons/TertiaryButton";
13
+ // Checkboxes
14
+ export { default as Checkbox } from "./components/atoms/checkboxes/Checkbox";
15
+ // Inputs
16
+ export { default as Input } from "./components/atoms/inputs/Input";
17
+ export { default as SearchBar } from "./components/atoms/inputs/SearchBar";
18
+ // Progress Bars
19
+ export { default as ProgressBar } from "./components/atoms/progressBars/ProgressBar";
20
+ // Radios
21
+ export { default as RadioButton } from "./components/atoms/radios/RadioButton";
22
+ // Selects
23
+ export { default as Select } from "./components/atoms/selects/Select";
24
+ // Tags
25
+ export { default as AppointementStatusTag } from "./components/atoms/tags/AppointementStatusTag";
26
+ export { default as FolderStatusTag } from "./components/atoms/tags/FolderStatusTag";
27
+ export { default as OtherStatusTag } from "./components/atoms/tags/OtherStatusTag";
28
+ // Typography
29
+ export { default as Heading } from "./components/atoms/typography/Heading";
30
+ export { default as Paragraph } from "./components/atoms/typography/Paragraph";
31
+ export { default as SmallTitle } from "./components/atoms/typography/SmallTitle";
32
+ export { default as Subtitle } from "./components/atoms/typography/Subtitle";
33
+ export { default as TinyInfo } from "./components/atoms/typography/TinyInfo";
34
+ // UI Variables
35
+ export { default as BorderRadius } from "./components/atoms/uiVariables/BorderRadius";
36
+ export { default as Shadows } from "./components/atoms/uiVariables/Shadows";
37
+ export { default as Strokes } from "./components/atoms/uiVariables/Strokes";
38
+ // Molecules
39
+ // Appointment Slot
40
+ export { default as AppointmentSlot } from "./components/molecules/appointmentSlot/AppointmentSlot";
41
+ // Case Card
42
+ export { default as CaseCard } from "./components/molecules/caseCard/CaseCard";
43
+ // Contact Card
44
+ export { default as ContactCard } from "./components/molecules/contactCard/ContactCard";
45
+ // Document Card
46
+ export { default as DocumentCard } from "./components/molecules/documentCard/DocumentCard";
47
+ // Employee Card
48
+ export { default as EmployeeCard } from "./components/molecules/employeeCard/EmployeeCard";
49
+ // Stepper
50
+ export { default as Stepper } from "./components/molecules/stepper/Stepper";
51
+ // CheckboxForm
52
+ export { default as CheckboxForm } from "./components/molecules/checkboxForm/CheckboxForm";
@@ -8,7 +8,9 @@
8
8
 
9
9
  /* Greyscale */
10
10
  --grey-venom: #e6edf5;
11
+ --venom-grey-dark: #d1dce8;
11
12
  --grey-light: #f6fcfe;
13
+ --active-grey: #e9eef5;
12
14
  --blue-lightning: #f6fcfe;
13
15
  --fond-de-selection: #f6fcfe;
14
16
 
@@ -0,0 +1,9 @@
1
+ @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
2
+ @import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");
3
+ @import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800;900&display=swap");
4
+ @import "~typeface-open-sans/index.css";
5
+ @import "./colors.css";
6
+ @import "./icons.css";
7
+ @import "./ui-variables/border-radius.css";
8
+ @import "./ui-variables/stroke.css";
9
+ @import "./ui-variables/shadows.css";
@@ -0,0 +1,6 @@
1
+ :root {
2
+ --border-radius-card: 16px;
3
+ --border-radius-buttons: 100px;
4
+ --border-radius-tags: 8px;
5
+ --border-radius-inputs: 8px;
6
+ }
@@ -0,0 +1,5 @@
1
+ :root {
2
+ --shadow-cartes-rdv: 0 1px 20px rgba(213, 233, 246, 0.8);
3
+ --shadow-nav-bar: 0 1px 9px rgba(15, 133, 168, 0.08);
4
+ --shadow-carte-pro: 0 1px 20px rgba(213, 233, 246, 0.2);
5
+ }
@@ -0,0 +1,4 @@
1
+ :root {
2
+ --stroke-card-default: 2px solid #e6edf5;
3
+ --stroke-card-active: 2px solid #25beeb;
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare const commonRegex: {
2
+ email: RegExp;
3
+ phone: RegExp;
4
+ name: RegExp;
5
+ };
@@ -0,0 +1,7 @@
1
+ export var commonRegex = {
2
+ email: /^[^\s@]+@[^\s@]+\.[^\s@]+$/,
3
+ // Cette regex couvre les numéros de téléphone français incluant la France métropolitaine, les départements et territoires d'outre-mer (Guadeloupe, Martinique, Guyane, Réunion, Mayotte, et Nouvelle-Calédonie) en formats national et international.
4
+ phone: /^(?:\+33\s?[1-9](?:[\s.-]?\d{2}){4}|0[1-9](?:[\s.-]?\d{2}){4}|0[1-9]\d{8}|(?:\+590|0|0590)[\s.-]?\d{2}[\s.-]?\d{2}[\s.-]?\d{2}|(?:\+596|0|0596)[\s.-]?\d{2}[\s.-]?\d{2}[\s.-]?\d{2}|(?:\+594|0|0594)[\s.-]?\d{2}[\s.-]?\d{2}[\s.-]?\d{2}|(?:\+262|0|0262)[\s.-]?\d{2}[\s.-]?\d{2}[\s.-]?\d{2}|(?:\+687)[\s.-]?\d{2}[\s.-]?\d{2}[\s.-]?\d{2})$/,
5
+ // Cette regex permet de valider les noms et prénoms français, incluant les accents, cédilles, traits d'union, espaces et apostrophes.
6
+ name: /^[A-Za-zÀ-ÖØ-öø-ÿ'\- ]+$/,
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "0.0.18",
3
+ "version": "0.0.293",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -10,11 +10,17 @@
10
10
  "README.md"
11
11
  ],
12
12
  "scripts": {
13
- "build": "tsc && node copy-css.js",
13
+ "dev": "next dev",
14
+ "start": "next start",
15
+ "lint": "next lint",
16
+ "increment-version": "node increment-version.js",
17
+ "clean": "rm -rf dist",
18
+ "build": "npm run clean && tsc && node copy-css.js",
14
19
  "test": "jest",
15
20
  "storybook": "storybook dev -p 6006",
16
21
  "build-storybook": "storybook build",
17
- "prepare": "npm run build"
22
+ "prepare": "npm run build",
23
+ "count-lines": "cloc . --exclude-dir=node_modules,dist,build --not-match-f='(package-lock\\.json|yarn\\.lock|\\.svg)'"
18
24
  },
19
25
  "keywords": [
20
26
  "allaw",
@@ -33,23 +39,37 @@
33
39
  "publishConfig": {
34
40
  "access": "public"
35
41
  },
42
+ "dependencies": {
43
+ "next": "14.2.5",
44
+ "react": "^17.0.0 || ^18.0.0",
45
+ "react-dom": "^17.0.0 || ^18.0.0",
46
+ "typeface-open-sans": "^1.1.13"
47
+ },
36
48
  "devDependencies": {
37
49
  "@chromatic-com/storybook": "^1.6.1",
38
- "@storybook/addon-essentials": "^8.2.4",
39
- "@storybook/addon-interactions": "^8.2.4",
40
- "@storybook/addon-links": "^8.2.4",
41
- "@storybook/addon-onboarding": "^8.2.4",
42
- "@storybook/blocks": "^8.2.4",
43
- "@storybook/nextjs": "^8.2.4",
44
- "@storybook/react": "^8.2.4",
45
- "@storybook/test": "^8.2.4",
46
- "storybook": "^8.2.4"
50
+ "@storybook/addon-backgrounds": "^8.2.8",
51
+ "@storybook/addon-essentials": "^8.2.8",
52
+ "@storybook/addon-interactions": "^8.2.8",
53
+ "@storybook/addon-links": "^8.2.8",
54
+ "@storybook/addon-mdx-gfm": "^8.2.8",
55
+ "@storybook/addon-onboarding": "^8.2.8",
56
+ "@storybook/blocks": "^8.2.8",
57
+ "@storybook/client-api": "^7.6.17",
58
+ "@storybook/nextjs": "^8.2.8",
59
+ "@storybook/react": "^8.2.8",
60
+ "@storybook/test": "^8.2.8",
61
+ "@types/node": "^20",
62
+ "@types/react": "^18",
63
+ "@types/react-dom": "^18",
64
+ "cloc": "^2.0.0-cloc",
65
+ "eslint": "^8",
66
+ "eslint-config-next": "14.2.5",
67
+ "eslint-plugin-storybook": "^0.8.0",
68
+ "storybook": "^8.2.8",
69
+ "typescript": "^5"
47
70
  },
48
71
  "peerDependencies": {
49
72
  "react": "^17.0.0 || ^18.0.0",
50
73
  "react-dom": "^17.0.0 || ^18.0.0"
51
- },
52
- "dependencies": {
53
- "allaw-ui": "^0.0.6"
54
74
  }
55
- }
75
+ }
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import "./ButtonPrimary.css";
3
- interface ButtonPrimaryProps {
4
- startIcon?: React.ReactNode;
5
- endIcon?: React.ReactNode;
6
- label: string;
7
- disabled?: boolean;
8
- }
9
- declare const ButtonPrimary: React.FC<ButtonPrimaryProps>;
10
- export default ButtonPrimary;
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import "./ButtonPrimary.css";
3
- var ButtonPrimary = function (_a) {
4
- var startIcon = _a.startIcon, endIcon = _a.endIcon, label = _a.label, _b = _a.disabled, disabled = _b === void 0 ? false : _b;
5
- return (React.createElement("button", { className: "button-primary ".concat(disabled ? "button-primary-disabled" : "button-primary-enabled"), disabled: disabled },
6
- startIcon && React.createElement("span", { className: "button-primary-icon" }, startIcon),
7
- React.createElement("span", { className: "button-primary-label" }, label),
8
- endIcon && React.createElement("span", { className: "button-primary-icon" }, endIcon)));
9
- };
10
- export default ButtonPrimary;
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import "./ButtonPrimary.css";
3
- import "../../styles/icons.css";
4
- interface ButtonPrimaryProps {
5
- startIcon?: React.ReactNode;
6
- endIcon?: React.ReactNode;
7
- label: string;
8
- disabled?: boolean;
9
- }
10
- declare const ButtonPrimary: React.FC<ButtonPrimaryProps>;
11
- export default ButtonPrimary;
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import "./ButtonPrimary.css";
3
- import "../../styles/icons.css";
4
- var ButtonPrimary = function (_a) {
5
- var startIcon = _a.startIcon, endIcon = _a.endIcon, label = _a.label, _b = _a.disabled, disabled = _b === void 0 ? false : _b;
6
- return (React.createElement("button", { className: "button-primary ".concat(disabled ? "button-primary-disabled" : "button-primary-enabled"), disabled: disabled },
7
- startIcon && React.createElement("span", { className: "button-primary-icon ".concat(startIcon) }),
8
- React.createElement("span", { className: "button-primary-label" }, label),
9
- endIcon && React.createElement("span", { className: "button-primary-icon ".concat(endIcon) })));
10
- };
11
- export default ButtonPrimary;
@@ -1,58 +0,0 @@
1
- .appointement-status-tag {
2
- display: inline-block;
3
- border-radius: 8px;
4
- text-align: center;
5
- font-family: "Open Sans", sans-serif;
6
- padding: 4px 8px;
7
- }
8
-
9
- .variant-big {
10
- font-weight: 700;
11
- font-size: 14px;
12
- letter-spacing: normal;
13
- padding: 4px 8px;
14
- line-height: 19.07px;
15
- letter-spacing: -0.02em;
16
- }
17
-
18
- .variant-default {
19
- font-weight: 500;
20
- font-size: 12px;
21
- line-height: 16.34px;
22
- }
23
-
24
- .status-confirmed {
25
- background-color: #daf6e9;
26
- color: #29a36a;
27
- }
28
-
29
- .status-pending {
30
- background-color: #fdf2f2;
31
- color: #e15151;
32
- }
33
-
34
- .status-available {
35
- background-color: #daebfb;
36
- color: #1985e8;
37
- }
38
-
39
- .status-unavailable,
40
- .status-cancelled {
41
- background-color: #f4f7fb;
42
- color: #728ea7;
43
- }
44
-
45
- .status-passed {
46
- background-color: #dee8f2;
47
- color: #728ea7;
48
- }
49
-
50
- .status-refused {
51
- background-color: #646464;
52
- color: white;
53
- }
54
-
55
- .status-cancelled-big {
56
- background-color: #fdf2f2;
57
- color: #e15151;
58
- }
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import "./AppointementStatusTag.css";
3
- interface AppointementStatusTagProps {
4
- status: "confirmed" | "pending" | "available" | "unavailable" | "cancelled" | "passed" | "refused";
5
- variant?: "default" | "big";
6
- }
7
- declare const AppointementStatusTag: ({ status, variant, }: AppointementStatusTagProps) => React.JSX.Element;
8
- export default AppointementStatusTag;
@@ -1,30 +0,0 @@
1
- .storybook-button {
2
- font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
3
- font-weight: 700;
4
- border: 0;
5
- border-radius: 3em;
6
- cursor: pointer;
7
- display: inline-block;
8
- line-height: 1;
9
- }
10
- .storybook-button--primary {
11
- color: white;
12
- background-color: #1ea7fd;
13
- }
14
- .storybook-button--secondary {
15
- color: #333;
16
- background-color: transparent;
17
- box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;
18
- }
19
- .storybook-button--small {
20
- font-size: 12px;
21
- padding: 10px 16px;
22
- }
23
- .storybook-button--medium {
24
- font-size: 14px;
25
- padding: 11px 20px;
26
- }
27
- .storybook-button--large {
28
- font-size: 16px;
29
- padding: 12px 24px;
30
- }
@@ -1,32 +0,0 @@
1
- .storybook-header {
2
- font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
3
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
4
- padding: 15px 20px;
5
- display: flex;
6
- align-items: center;
7
- justify-content: space-between;
8
- }
9
-
10
- .storybook-header svg {
11
- display: inline-block;
12
- vertical-align: top;
13
- }
14
-
15
- .storybook-header h1 {
16
- font-weight: 700;
17
- font-size: 20px;
18
- line-height: 1;
19
- margin: 6px 0 6px 10px;
20
- display: inline-block;
21
- vertical-align: top;
22
- }
23
-
24
- .storybook-header button + button {
25
- margin-left: 10px;
26
- }
27
-
28
- .storybook-header .welcome {
29
- color: #333;
30
- font-size: 14px;
31
- margin-right: 10px;
32
- }
@@ -1,69 +0,0 @@
1
- .storybook-page {
2
- font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
3
- font-size: 14px;
4
- line-height: 24px;
5
- padding: 48px 20px;
6
- margin: 0 auto;
7
- max-width: 600px;
8
- color: #333;
9
- }
10
-
11
- .storybook-page h2 {
12
- font-weight: 700;
13
- font-size: 32px;
14
- line-height: 1;
15
- margin: 0 0 4px;
16
- display: inline-block;
17
- vertical-align: top;
18
- }
19
-
20
- .storybook-page p {
21
- margin: 1em 0;
22
- }
23
-
24
- .storybook-page a {
25
- text-decoration: none;
26
- color: #1ea7fd;
27
- }
28
-
29
- .storybook-page ul {
30
- padding-left: 30px;
31
- margin: 1em 0;
32
- }
33
-
34
- .storybook-page li {
35
- margin-bottom: 8px;
36
- }
37
-
38
- .storybook-page .tip {
39
- display: inline-block;
40
- border-radius: 1em;
41
- font-size: 11px;
42
- line-height: 12px;
43
- font-weight: 700;
44
- background: #e7fdd8;
45
- color: #66bf3c;
46
- padding: 4px 12px;
47
- margin-right: 10px;
48
- vertical-align: top;
49
- }
50
-
51
- .storybook-page .tip-wrapper {
52
- font-size: 13px;
53
- line-height: 20px;
54
- margin-top: 40px;
55
- margin-bottom: 40px;
56
- }
57
-
58
- .storybook-page .tip-wrapper svg {
59
- display: inline-block;
60
- height: 12px;
61
- width: 12px;
62
- margin-right: 4px;
63
- vertical-align: top;
64
- margin-top: 3px;
65
- }
66
-
67
- .storybook-page .tip-wrapper svg path {
68
- fill: #1ea7fd;
69
- }
@@ -1,41 +0,0 @@
1
- import React from "react";
2
- import "./AppointementStatusTag.css";
3
- var statusStyles = {
4
- confirmed: "status-confirmed",
5
- pending: "status-pending",
6
- available: "status-available",
7
- unavailable: "status-unavailable",
8
- cancelled: "status-cancelled",
9
- passed: "status-passed",
10
- refused: "status-refused",
11
- };
12
- var statusLabels = {
13
- confirmed: "CONFIRMÉ",
14
- pending: "EN ATTENTE",
15
- available: "DISPONIBLE",
16
- unavailable: "INDISPONIBLE",
17
- cancelled: "ANNULÉ",
18
- passed: "PASSÉ",
19
- refused: "REFUSÉ",
20
- };
21
- var variantLabels = {
22
- confirmed: "RDV CONFIRMÉ",
23
- passed: "RDV PASSÉ",
24
- cancelled: "RDV ANNULÉ",
25
- };
26
- var variantStyles = {
27
- big: "variant-big",
28
- default: "variant-default",
29
- };
30
- var AppointementStatusTag = function (_a) {
31
- var status = _a.status, _b = _a.variant, variant = _b === void 0 ? "default" : _b;
32
- var label = variant === "big" && variantLabels[status]
33
- ? variantLabels[status]
34
- : statusLabels[status];
35
- var variantClass = variantStyles[variant];
36
- var specificStyles = status === "cancelled" && variant === "big"
37
- ? "status-cancelled-big"
38
- : statusStyles[status];
39
- return (React.createElement("span", { className: "appointement-status-tag ".concat(variantClass, " ").concat(specificStyles) }, label));
40
- };
41
- export default AppointementStatusTag;