allaw-ui 1.1.1 → 2.0.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 (222) hide show
  1. package/dist/assets/allaw-font.eot +0 -0
  2. package/dist/assets/allaw-font.svg +15 -0
  3. package/dist/assets/allaw-font.ttf +0 -0
  4. package/dist/assets/allaw-font.woff +0 -0
  5. package/dist/components/atoms/buttons/ActionCircleButton.stories.d.ts +35 -0
  6. package/dist/components/atoms/buttons/ActionCircleButton.stories.js +54 -0
  7. package/dist/components/atoms/buttons/AgendaSlot.stories.d.ts +41 -0
  8. package/dist/components/atoms/buttons/AgendaSlot.stories.js +77 -0
  9. package/dist/components/atoms/buttons/FavoriteToggle.stories.d.ts +23 -0
  10. package/dist/components/atoms/buttons/FavoriteToggle.stories.js +61 -0
  11. package/dist/components/atoms/buttons/FilterButton.stories.d.ts +36 -0
  12. package/dist/components/atoms/buttons/FilterButton.stories.js +56 -0
  13. package/dist/components/atoms/buttons/FilterButtonPrimary.stories.d.ts +7 -0
  14. package/dist/components/atoms/buttons/FilterButtonPrimary.stories.js +26 -0
  15. package/dist/components/atoms/buttons/GhostButton.stories.d.ts +79 -0
  16. package/dist/components/atoms/buttons/GhostButton.stories.js +95 -0
  17. package/dist/components/atoms/buttons/IconButton.js +2 -2
  18. package/dist/components/atoms/buttons/IconButton.stories.d.ts +48 -0
  19. package/dist/components/atoms/buttons/IconButton.stories.js +76 -0
  20. package/dist/components/atoms/buttons/OAuthProviderButton.css +25 -23
  21. package/dist/components/atoms/buttons/OAuthProviderButton.d.ts +2 -2
  22. package/dist/components/atoms/buttons/OAuthProviderButton.js +43 -10
  23. package/dist/components/atoms/buttons/OAuthProviderButton.stories.d.ts +56 -0
  24. package/dist/components/atoms/buttons/OAuthProviderButton.stories.js +130 -0
  25. package/dist/components/atoms/buttons/PendingDocuments.d.ts +0 -1
  26. package/dist/components/atoms/buttons/PendingDocuments.js +6 -4
  27. package/dist/components/atoms/buttons/PendingDocuments.stories.d.ts +52 -0
  28. package/dist/components/atoms/buttons/PendingDocuments.stories.js +67 -0
  29. package/dist/components/atoms/buttons/PrimaryButton.css +1 -0
  30. package/dist/components/atoms/buttons/PrimaryButton.stories.d.ts +86 -0
  31. package/dist/components/atoms/buttons/PrimaryButton.stories.js +147 -0
  32. package/dist/components/atoms/buttons/SecondaryButton.stories.d.ts +72 -0
  33. package/dist/components/atoms/buttons/SecondaryButton.stories.js +149 -0
  34. package/dist/components/atoms/buttons/TabNavigation.css +2 -0
  35. package/dist/components/atoms/buttons/TabNavigation.stories.d.ts +44 -0
  36. package/dist/components/atoms/buttons/TabNavigation.stories.js +66 -0
  37. package/dist/components/atoms/buttons/TertiaryButton.stories.d.ts +42 -0
  38. package/dist/components/atoms/buttons/TertiaryButton.stories.js +60 -0
  39. package/dist/components/atoms/buttons/{PendingDocuments.css → pendingDocuments.module.css} +9 -8
  40. package/dist/components/atoms/checkboxes/Checkbox.stories.d.ts +77 -0
  41. package/dist/components/atoms/checkboxes/Checkbox.stories.js +123 -0
  42. package/dist/components/atoms/datepickers/Datepicker.js +1 -0
  43. package/dist/components/atoms/datepickers/Datepicker.stories.d.ts +90 -0
  44. package/dist/components/atoms/datepickers/Datepicker.stories.js +67 -0
  45. package/dist/components/atoms/filter/Filter.stories.d.ts +9 -0
  46. package/dist/components/atoms/filter/Filter.stories.js +77 -0
  47. package/dist/components/atoms/filters/SingleFilter.stories.d.ts +7 -0
  48. package/dist/components/atoms/filters/SingleFilter.stories.js +34 -0
  49. package/dist/components/atoms/inputs/Input.stories.d.ts +62 -0
  50. package/dist/components/atoms/inputs/Input.stories.js +101 -0
  51. package/dist/components/atoms/inputs/SearchBar.stories.d.ts +54 -0
  52. package/dist/components/atoms/inputs/SearchBar.stories.js +67 -0
  53. package/dist/components/atoms/inputs/TextArea.stories.d.ts +70 -0
  54. package/dist/components/atoms/inputs/TextArea.stories.js +113 -0
  55. package/dist/components/atoms/progressBars/ProgressBar.css +2 -3
  56. package/dist/components/atoms/progressBars/ProgressBar.js +2 -3
  57. package/dist/components/atoms/progressBars/ProgressBar.stories.d.ts +83 -0
  58. package/dist/components/atoms/progressBars/ProgressBar.stories.js +88 -0
  59. package/dist/components/atoms/radios/RadioButton.stories.d.ts +36 -0
  60. package/dist/components/atoms/radios/RadioButton.stories.js +75 -0
  61. package/dist/components/atoms/selects/ComboBox.css +1 -1
  62. package/dist/components/atoms/selects/ComboBox.stories.d.ts +94 -0
  63. package/dist/components/atoms/selects/ComboBox.stories.js +122 -0
  64. package/dist/components/atoms/selects/Select.d.ts +0 -1
  65. package/dist/components/atoms/selects/Select.js +47 -20
  66. package/dist/components/atoms/selects/{Select.css → Select.module.css} +12 -13
  67. package/dist/components/atoms/selects/Select.stories.d.ts +86 -0
  68. package/dist/components/atoms/selects/Select.stories.js +154 -0
  69. package/dist/components/atoms/selects/SelectableListItem.d.ts +13 -0
  70. package/dist/components/atoms/selects/SelectableListItem.js +18 -0
  71. package/dist/components/atoms/selects/SelectableListItem.module.css +157 -0
  72. package/dist/components/atoms/selects/SelectableListItem.stories.d.ts +33 -0
  73. package/dist/components/atoms/selects/SelectableListItem.stories.js +53 -0
  74. package/dist/components/atoms/selects/index.d.ts +2 -0
  75. package/dist/components/atoms/selects/index.js +1 -0
  76. package/dist/components/atoms/tags/AppointementStatusTag.stories.d.ts +17 -0
  77. package/dist/components/atoms/tags/AppointementStatusTag.stories.js +70 -0
  78. package/dist/components/atoms/tags/FolderStatusTag.css +4 -4
  79. package/dist/components/atoms/tags/FolderStatusTag.stories.d.ts +28 -0
  80. package/dist/components/atoms/tags/FolderStatusTag.stories.js +51 -0
  81. package/dist/components/atoms/tags/OtherStatusTag.css +20 -1
  82. package/dist/components/atoms/tags/OtherStatusTag.d.ts +1 -0
  83. package/dist/components/atoms/tags/OtherStatusTag.js +2 -2
  84. package/dist/components/atoms/tags/OtherStatusTag.stories.d.ts +97 -0
  85. package/dist/components/atoms/tags/OtherStatusTag.stories.js +151 -0
  86. package/dist/components/atoms/typography/CardDate.stories.d.ts +119 -0
  87. package/dist/components/atoms/typography/CardDate.stories.js +103 -0
  88. package/dist/components/atoms/typography/Heading.js +1 -1
  89. package/dist/components/atoms/typography/Heading.stories.d.ts +45 -0
  90. package/dist/components/atoms/typography/Heading.stories.js +90 -0
  91. package/dist/components/atoms/typography/Link.d.ts +13 -0
  92. package/dist/components/atoms/typography/Link.js +35 -0
  93. package/dist/components/atoms/typography/Link.module.css +60 -0
  94. package/dist/components/atoms/typography/Link.stories.d.ts +57 -0
  95. package/dist/components/atoms/typography/Link.stories.js +105 -0
  96. package/dist/components/atoms/typography/Paragraph.d.ts +2 -0
  97. package/dist/components/atoms/typography/Paragraph.js +3 -3
  98. package/dist/components/atoms/typography/Paragraph.stories.d.ts +56 -0
  99. package/dist/components/atoms/typography/Paragraph.stories.js +97 -0
  100. package/dist/components/atoms/typography/SmallTitle.stories.d.ts +42 -0
  101. package/dist/components/atoms/typography/SmallTitle.stories.js +72 -0
  102. package/dist/components/atoms/typography/Subtitle.stories.d.ts +40 -0
  103. package/dist/components/atoms/typography/Subtitle.stories.js +60 -0
  104. package/dist/components/atoms/typography/TinyInfo.d.ts +1 -0
  105. package/dist/components/atoms/typography/TinyInfo.js +2 -2
  106. package/dist/components/atoms/typography/TinyInfo.stories.d.ts +52 -0
  107. package/dist/components/atoms/typography/TinyInfo.stories.js +97 -0
  108. package/dist/components/atoms/typography/index.d.ts +2 -0
  109. package/dist/components/atoms/typography/index.js +1 -0
  110. package/dist/components/atoms/uiVariables/AnimatedBorder.css +55 -0
  111. package/dist/components/atoms/uiVariables/AnimatedBorder.d.ts +4 -0
  112. package/dist/components/atoms/uiVariables/AnimatedBorder.js +11 -0
  113. package/dist/components/atoms/uiVariables/AnimatedBorder.stories.d.ts +17 -0
  114. package/dist/components/atoms/uiVariables/AnimatedBorder.stories.js +20 -0
  115. package/dist/components/atoms/uiVariables/BorderRadius.stories.d.ts +18 -0
  116. package/dist/components/atoms/uiVariables/BorderRadius.stories.js +34 -0
  117. package/dist/components/atoms/uiVariables/Shadows.stories.d.ts +18 -0
  118. package/dist/components/atoms/uiVariables/Shadows.stories.js +34 -0
  119. package/dist/components/atoms/uiVariables/Strokes.stories.d.ts +18 -0
  120. package/dist/components/atoms/uiVariables/Strokes.stories.js +34 -0
  121. package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.d.ts +70 -0
  122. package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.js +186 -0
  123. package/dist/components/molecules/billingCount/BillingCount.stories.d.ts +21 -0
  124. package/dist/components/molecules/billingCount/BillingCount.stories.js +44 -0
  125. package/dist/components/molecules/blogCard/BlogCard.d.ts +13 -0
  126. package/dist/components/molecules/blogCard/BlogCard.js +33 -0
  127. package/dist/components/molecules/blogCard/BlogCard.module.css +148 -0
  128. package/dist/components/molecules/blogCard/BlogCard.stories.d.ts +10 -0
  129. package/dist/components/molecules/blogCard/BlogCard.stories.js +33 -0
  130. package/dist/components/molecules/blogCard/index.d.ts +2 -0
  131. package/dist/components/molecules/blogCard/index.js +1 -0
  132. package/dist/components/molecules/blogFooter/BlogFooter.d.ts +12 -0
  133. package/dist/components/molecules/blogFooter/BlogFooter.js +14 -0
  134. package/dist/components/molecules/blogFooter/BlogFooter.module.css +48 -0
  135. package/dist/components/molecules/blogFooter/BlogFooter.stories.d.ts +60 -0
  136. package/dist/components/molecules/blogFooter/BlogFooter.stories.js +67 -0
  137. package/dist/components/molecules/blogFooter/index.d.ts +2 -0
  138. package/dist/components/molecules/blogFooter/index.js +1 -0
  139. package/dist/components/molecules/blogHeader/BlogHeader.d.ts +11 -0
  140. package/dist/components/molecules/blogHeader/BlogHeader.js +21 -0
  141. package/dist/components/molecules/blogHeader/BlogHeader.module.css +150 -0
  142. package/dist/components/molecules/blogHeader/BlogHeader.stories.d.ts +49 -0
  143. package/dist/components/molecules/blogHeader/BlogHeader.stories.js +63 -0
  144. package/dist/components/molecules/blogHeader/index.d.ts +2 -0
  145. package/dist/components/molecules/blogHeader/index.js +1 -0
  146. package/dist/components/molecules/blogText/BlogText.d.ts +7 -0
  147. package/dist/components/molecules/blogText/BlogText.js +11 -0
  148. package/dist/components/molecules/blogText/BlogText.module.css +59 -0
  149. package/dist/components/molecules/blogText/BlogText.stories.d.ts +31 -0
  150. package/dist/components/molecules/blogText/BlogText.stories.js +51 -0
  151. package/dist/components/molecules/blogText/index.d.ts +2 -0
  152. package/dist/components/molecules/blogText/index.js +1 -0
  153. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.d.ts +8 -0
  154. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.js +15 -0
  155. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.module.css +108 -0
  156. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.d.ts +37 -0
  157. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.js +58 -0
  158. package/dist/components/molecules/blogTextImageBlock/index.d.ts +2 -0
  159. package/dist/components/molecules/blogTextImageBlock/index.js +1 -0
  160. package/dist/components/molecules/breadcrumb/Breadcrumb.stories.d.ts +24 -0
  161. package/dist/components/molecules/breadcrumb/Breadcrumb.stories.js +54 -0
  162. package/dist/components/molecules/caseCard/CaseCard.stories.d.ts +114 -0
  163. package/dist/components/molecules/caseCard/CaseCard.stories.js +200 -0
  164. package/dist/components/molecules/caseCardCompact/CaseCardCompact.js +2 -1
  165. package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.d.ts +11 -0
  166. package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.js +59 -0
  167. package/dist/components/molecules/caseCardCompact/caseCardCompact.css +5 -2
  168. package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.d.ts +9 -0
  169. package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.js +37 -0
  170. package/dist/components/molecules/caseLinkCard/CaseLinkCard.css +2 -4
  171. package/dist/components/molecules/checkboxForm/CheckboxForm.d.ts +1 -0
  172. package/dist/components/molecules/checkboxForm/CheckboxForm.js +2 -2
  173. package/dist/components/molecules/checkboxForm/CheckboxForm.stories.d.ts +90 -0
  174. package/dist/components/molecules/checkboxForm/CheckboxForm.stories.js +149 -0
  175. package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.d.ts +11 -0
  176. package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.js +59 -0
  177. package/dist/components/molecules/contactCard/ContactCard.d.ts +3 -2
  178. package/dist/components/molecules/contactCard/ContactCard.js +25 -23
  179. package/dist/components/molecules/contactCard/ContactCard.stories.d.ts +83 -0
  180. package/dist/components/molecules/contactCard/ContactCard.stories.js +86 -0
  181. package/dist/components/molecules/contactCard/DetailedContactCard.stories.d.ts +94 -0
  182. package/dist/components/molecules/contactCard/DetailedContactCard.stories.js +83 -0
  183. package/dist/components/molecules/contactCard/{ContactCard.css → contactCard.module.css} +34 -28
  184. package/dist/components/molecules/datepickerForm/DatepickerForm.stories.d.ts +164 -0
  185. package/dist/components/molecules/datepickerForm/DatepickerForm.stories.js +113 -0
  186. package/dist/components/molecules/documentCard/DocumentCard.css +4 -1
  187. package/dist/components/molecules/documentCard/DocumentCard.d.ts +3 -2
  188. package/dist/components/molecules/documentCard/DocumentCard.js +45 -7
  189. package/dist/components/molecules/documentCard/DocumentCard.stories.d.ts +71 -0
  190. package/dist/components/molecules/documentCard/DocumentCard.stories.js +100 -0
  191. package/dist/components/molecules/employeeCard/EmployeeCard.stories.d.ts +74 -0
  192. package/dist/components/molecules/employeeCard/EmployeeCard.stories.js +65 -0
  193. package/dist/components/molecules/loadingBox/LoadingBox.stories.d.ts +54 -0
  194. package/dist/components/molecules/loadingBox/LoadingBox.stories.js +128 -0
  195. package/dist/components/molecules/pagination/Pagination.stories.d.ts +44 -0
  196. package/dist/components/molecules/pagination/Pagination.stories.js +59 -0
  197. package/dist/components/molecules/proCard/ProCard.js +0 -4
  198. package/dist/components/molecules/proCard/ProCard.stories.d.ts +49 -0
  199. package/dist/components/molecules/proCard/ProCard.stories.js +69 -0
  200. package/dist/components/molecules/radioForm/RadioForm.stories.d.ts +27 -0
  201. package/dist/components/molecules/radioForm/RadioForm.stories.js +52 -0
  202. package/dist/components/molecules/selectForm/SelectForm.stories.d.ts +58 -0
  203. package/dist/components/molecules/selectForm/SelectForm.stories.js +96 -0
  204. package/dist/components/molecules/stepper/Stepper.css +17 -4
  205. package/dist/components/molecules/stepper/Stepper.stories.d.ts +42 -0
  206. package/dist/components/molecules/stepper/Stepper.stories.js +132 -0
  207. package/dist/index.d.ts +14 -1
  208. package/dist/index.js +8 -1
  209. package/dist/stories/Header.d.ts +13 -0
  210. package/dist/stories/Header.js +20 -0
  211. package/dist/stories/Header.stories.d.ts +18 -0
  212. package/dist/stories/Header.stories.js +26 -0
  213. package/dist/stories/Page.d.ts +3 -0
  214. package/dist/stories/Page.js +37 -0
  215. package/dist/stories/Page.stories.d.ts +12 -0
  216. package/dist/stories/Page.stories.js +76 -0
  217. package/dist/stories/header.css +32 -0
  218. package/dist/stories/page.css +69 -0
  219. package/dist/styles/colors.css +2 -0
  220. package/dist/styles/colors.module.css +107 -0
  221. package/dist/styles/icons.css +76 -107
  222. package/package.json +16 -14
@@ -0,0 +1,26 @@
1
+ import { fn } from '@storybook/test';
2
+ import { Header } from './Header';
3
+ var meta = {
4
+ title: 'Example/Header',
5
+ component: Header,
6
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
7
+ tags: ['autodocs'],
8
+ parameters: {
9
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
10
+ layout: 'fullscreen',
11
+ },
12
+ args: {
13
+ onLogin: fn(),
14
+ onLogout: fn(),
15
+ onCreateAccount: fn(),
16
+ },
17
+ };
18
+ export default meta;
19
+ export var LoggedIn = {
20
+ args: {
21
+ user: {
22
+ name: 'Jane Doe',
23
+ },
24
+ },
25
+ };
26
+ export var LoggedOut = {};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import './page.css';
3
+ export declare const Page: React.FC;
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import { Header } from './Header';
3
+ import './page.css';
4
+ export var Page = function () {
5
+ var _a = React.useState(), user = _a[0], setUser = _a[1];
6
+ return (React.createElement("article", null,
7
+ React.createElement(Header, { user: user, onLogin: function () { return setUser({ name: 'Jane Doe' }); }, onLogout: function () { return setUser(undefined); }, onCreateAccount: function () { return setUser({ name: 'Jane Doe' }); } }),
8
+ React.createElement("section", { className: "storybook-page" },
9
+ React.createElement("h2", null, "Pages in Storybook"),
10
+ React.createElement("p", null,
11
+ "We recommend building UIs with a",
12
+ ' ',
13
+ React.createElement("a", { href: "https://componentdriven.org", target: "_blank", rel: "noopener noreferrer" },
14
+ React.createElement("strong", null, "component-driven")),
15
+ ' ',
16
+ "process starting with atomic components and ending with pages."),
17
+ React.createElement("p", null, "Render pages with mock data. This makes it easy to build and review page states without needing to navigate to them in your app. Here are some handy patterns for managing page data in Storybook:"),
18
+ React.createElement("ul", null,
19
+ React.createElement("li", null, "Use a higher-level connected component. Storybook helps you compose such data from the \"args\" of child component stories"),
20
+ React.createElement("li", null, "Assemble data in the page component from your services. You can mock these services out using Storybook.")),
21
+ React.createElement("p", null,
22
+ "Get a guided tutorial on component-driven development at",
23
+ ' ',
24
+ React.createElement("a", { href: "https://storybook.js.org/tutorials/", target: "_blank", rel: "noopener noreferrer" }, "Storybook tutorials"),
25
+ ". Read more in the",
26
+ ' ',
27
+ React.createElement("a", { href: "https://storybook.js.org/docs", target: "_blank", rel: "noopener noreferrer" }, "docs"),
28
+ "."),
29
+ React.createElement("div", { className: "tip-wrapper" },
30
+ React.createElement("span", { className: "tip" }, "Tip"),
31
+ " Adjust the width of the canvas with the",
32
+ ' ',
33
+ React.createElement("svg", { width: "10", height: "10", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg" },
34
+ React.createElement("g", { fill: "none", fillRule: "evenodd" },
35
+ React.createElement("path", { d: "M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z", id: "a", fill: "#999" }))),
36
+ "Viewports addon in the toolbar"))));
37
+ };
@@ -0,0 +1,12 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import("react").FC<{}>;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ };
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ export declare const LoggedOut: Story;
12
+ export declare const LoggedIn: Story;
@@ -0,0 +1,76 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
12
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ import { within, userEvent, expect } from '@storybook/test';
38
+ import { Page } from './Page';
39
+ var meta = {
40
+ title: 'Example/Page',
41
+ component: Page,
42
+ parameters: {
43
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
44
+ layout: 'fullscreen',
45
+ },
46
+ };
47
+ export default meta;
48
+ export var LoggedOut = {};
49
+ // More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
50
+ export var LoggedIn = {
51
+ play: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
52
+ var canvas, loginButton, logoutButton;
53
+ var canvasElement = _b.canvasElement;
54
+ return __generator(this, function (_c) {
55
+ switch (_c.label) {
56
+ case 0:
57
+ canvas = within(canvasElement);
58
+ loginButton = canvas.getByRole('button', { name: /Log in/i });
59
+ return [4 /*yield*/, expect(loginButton).toBeInTheDocument()];
60
+ case 1:
61
+ _c.sent();
62
+ return [4 /*yield*/, userEvent.click(loginButton)];
63
+ case 2:
64
+ _c.sent();
65
+ return [4 /*yield*/, expect(loginButton).not.toBeInTheDocument()];
66
+ case 3:
67
+ _c.sent();
68
+ logoutButton = canvas.getByRole('button', { name: /Log out/i });
69
+ return [4 /*yield*/, expect(logoutButton).toBeInTheDocument()];
70
+ case 4:
71
+ _c.sent();
72
+ return [2 /*return*/];
73
+ }
74
+ });
75
+ }); },
76
+ };
@@ -0,0 +1,32 @@
1
+ .storybook-header {
2
+ display: flex;
3
+ justify-content: space-between;
4
+ align-items: center;
5
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
6
+ padding: 15px 20px;
7
+ font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
8
+ }
9
+
10
+ .storybook-header svg {
11
+ display: inline-block;
12
+ vertical-align: top;
13
+ }
14
+
15
+ .storybook-header h1 {
16
+ display: inline-block;
17
+ vertical-align: top;
18
+ margin: 6px 0 6px 10px;
19
+ font-weight: 700;
20
+ font-size: 20px;
21
+ line-height: 1;
22
+ }
23
+
24
+ .storybook-header button + button {
25
+ margin-left: 10px;
26
+ }
27
+
28
+ .storybook-header .welcome {
29
+ margin-right: 10px;
30
+ color: #333;
31
+ font-size: 14px;
32
+ }
@@ -0,0 +1,69 @@
1
+ .storybook-page {
2
+ margin: 0 auto;
3
+ padding: 48px 20px;
4
+ max-width: 600px;
5
+ color: #333;
6
+ font-size: 14px;
7
+ line-height: 24px;
8
+ font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
9
+ }
10
+
11
+ .storybook-page h2 {
12
+ display: inline-block;
13
+ vertical-align: top;
14
+ margin: 0 0 4px;
15
+ font-weight: 700;
16
+ font-size: 32px;
17
+ line-height: 1;
18
+ }
19
+
20
+ .storybook-page p {
21
+ margin: 1em 0;
22
+ }
23
+
24
+ .storybook-page a {
25
+ color: #1ea7fd;
26
+ text-decoration: none;
27
+ }
28
+
29
+ .storybook-page ul {
30
+ margin: 1em 0;
31
+ padding-left: 30px;
32
+ }
33
+
34
+ .storybook-page li {
35
+ margin-bottom: 8px;
36
+ }
37
+
38
+ .storybook-page .tip {
39
+ display: inline-block;
40
+ vertical-align: top;
41
+ margin-right: 10px;
42
+ border-radius: 1em;
43
+ background: #e7fdd8;
44
+ padding: 4px 12px;
45
+ color: #66bf3c;
46
+ font-weight: 700;
47
+ font-size: 11px;
48
+ line-height: 12px;
49
+ }
50
+
51
+ .storybook-page .tip-wrapper {
52
+ margin-top: 40px;
53
+ margin-bottom: 40px;
54
+ font-size: 13px;
55
+ line-height: 20px;
56
+ }
57
+
58
+ .storybook-page .tip-wrapper svg {
59
+ display: inline-block;
60
+ vertical-align: top;
61
+ margin-top: 3px;
62
+ margin-right: 4px;
63
+ width: 12px;
64
+ height: 12px;
65
+ }
66
+
67
+ .storybook-page .tip-wrapper svg path {
68
+ fill: #1ea7fd;
69
+ }
@@ -25,10 +25,12 @@
25
25
  --blue-tag-dark: #1985e8;
26
26
  --blue-tag-light: #daebfb;
27
27
  --gris-clair: #dee8f2;
28
+ --orange-tag-dark: #ff9f43;
28
29
 
29
30
  /* Actions */
30
31
  --actions-valid: #29a36a;
31
32
  --actions-error: #e15151;
33
+ --actions-warning: #ffc857;
32
34
 
33
35
  /* Background */
34
36
  --background-pro: #fcfdfd;
@@ -0,0 +1,107 @@
1
+ .bgBleuAllaw {
2
+ background-color: var(--bleu-allaw);
3
+ }
4
+
5
+ .textMidGrey {
6
+ color: var(--mid-grey);
7
+ }
8
+
9
+ .bleuAllaw {
10
+ --bleu-allaw: #25beeb;
11
+ }
12
+
13
+ .midGrey {
14
+ --mid-grey: #728ea7;
15
+ }
16
+
17
+ .darkGrey {
18
+ --dark-grey: #456073;
19
+ }
20
+
21
+ .noir {
22
+ --noir: #171e25;
23
+ }
24
+
25
+ .pureWhite {
26
+ --pure-white: #ffffff;
27
+ }
28
+
29
+ .greyVenom {
30
+ --grey-venom: #e6edf5;
31
+ }
32
+
33
+ .venomGreyDark {
34
+ --venom-grey-dark: #d1dce8;
35
+ }
36
+
37
+ .greyLight {
38
+ --grey-light: #f6fcfe;
39
+ }
40
+
41
+ .greyLight2 {
42
+ --grey-light-2: #f2f8fc;
43
+ }
44
+
45
+ .activeGrey {
46
+ --active-grey: #e9eef5;
47
+ }
48
+
49
+ .blueLightning {
50
+ --blue-lightning: #f6fcfe;
51
+ }
52
+
53
+ .fondDeSelection {
54
+ --fond-de-selection: #f6fcfe;
55
+ }
56
+
57
+ .lightSteelBlue {
58
+ --lightSteelBlue: #a2b5c8;
59
+ }
60
+
61
+ .tagWhite {
62
+ --tag-white: #eef5fc;
63
+ }
64
+
65
+ .greenTagDark {
66
+ --green-tag-dark: #29a36a;
67
+ }
68
+
69
+ .greenTagLight {
70
+ --green-tag-light: #daf6e9;
71
+ }
72
+
73
+ .redTagDark {
74
+ --red-tag-dark: #e15151;
75
+ }
76
+
77
+ .redTagLight {
78
+ --red-tag-light: #fdf2f2;
79
+ }
80
+
81
+ .blueTagDark {
82
+ --blue-tag-dark: #1985e8;
83
+ }
84
+
85
+ .blueTagLight {
86
+ --blue-tag-light: #daebfb;
87
+ }
88
+
89
+ .grisClair {
90
+ --gris-clair: #dee8f2;
91
+ }
92
+
93
+ .actionsValid {
94
+ --actions-valid: #29a36a;
95
+ }
96
+
97
+ .actionsError {
98
+ --actions-error: #e15151;
99
+ }
100
+
101
+ .backgroundPro {
102
+ --background-pro: #fcfdfd;
103
+ }
104
+
105
+ .backgroundUsager {
106
+ --background-usager: #ffffff;
107
+ }