allaw-ui 1.1.1 → 2.0.1
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.
- package/dist/assets/allaw-font.eot +0 -0
- package/dist/assets/allaw-font.svg +15 -0
- package/dist/assets/allaw-font.ttf +0 -0
- package/dist/assets/allaw-font.woff +0 -0
- package/dist/components/atoms/buttons/ActionCircleButton.stories.d.ts +35 -0
- package/dist/components/atoms/buttons/ActionCircleButton.stories.js +54 -0
- package/dist/components/atoms/buttons/AgendaSlot.stories.d.ts +41 -0
- package/dist/components/atoms/buttons/AgendaSlot.stories.js +77 -0
- package/dist/components/atoms/buttons/FavoriteToggle.stories.d.ts +23 -0
- package/dist/components/atoms/buttons/FavoriteToggle.stories.js +61 -0
- package/dist/components/atoms/buttons/FilterButton.stories.d.ts +36 -0
- package/dist/components/atoms/buttons/FilterButton.stories.js +56 -0
- package/dist/components/atoms/buttons/FilterButtonPrimary.stories.d.ts +7 -0
- package/dist/components/atoms/buttons/FilterButtonPrimary.stories.js +26 -0
- package/dist/components/atoms/buttons/GhostButton.stories.d.ts +79 -0
- package/dist/components/atoms/buttons/GhostButton.stories.js +95 -0
- package/dist/components/atoms/buttons/IconButton.js +2 -2
- package/dist/components/atoms/buttons/IconButton.stories.d.ts +48 -0
- package/dist/components/atoms/buttons/IconButton.stories.js +76 -0
- package/dist/components/atoms/buttons/OAuthProviderButton.css +25 -23
- package/dist/components/atoms/buttons/OAuthProviderButton.d.ts +2 -2
- package/dist/components/atoms/buttons/OAuthProviderButton.js +43 -10
- package/dist/components/atoms/buttons/OAuthProviderButton.stories.d.ts +56 -0
- package/dist/components/atoms/buttons/OAuthProviderButton.stories.js +130 -0
- package/dist/components/atoms/buttons/PendingDocuments.d.ts +0 -1
- package/dist/components/atoms/buttons/PendingDocuments.js +6 -4
- package/dist/components/atoms/buttons/PendingDocuments.stories.d.ts +52 -0
- package/dist/components/atoms/buttons/PendingDocuments.stories.js +67 -0
- package/dist/components/atoms/buttons/PrimaryButton.css +1 -0
- package/dist/components/atoms/buttons/PrimaryButton.stories.d.ts +86 -0
- package/dist/components/atoms/buttons/PrimaryButton.stories.js +147 -0
- package/dist/components/atoms/buttons/SecondaryButton.stories.d.ts +72 -0
- package/dist/components/atoms/buttons/SecondaryButton.stories.js +149 -0
- package/dist/components/atoms/buttons/TabNavigation.css +2 -0
- package/dist/components/atoms/buttons/TabNavigation.stories.d.ts +44 -0
- package/dist/components/atoms/buttons/TabNavigation.stories.js +66 -0
- package/dist/components/atoms/buttons/TertiaryButton.stories.d.ts +42 -0
- package/dist/components/atoms/buttons/TertiaryButton.stories.js +60 -0
- package/dist/components/atoms/buttons/{PendingDocuments.css → pendingDocuments.module.css} +9 -8
- package/dist/components/atoms/checkboxes/Checkbox.stories.d.ts +77 -0
- package/dist/components/atoms/checkboxes/Checkbox.stories.js +123 -0
- package/dist/components/atoms/datepickers/Datepicker.js +1 -0
- package/dist/components/atoms/datepickers/Datepicker.stories.d.ts +90 -0
- package/dist/components/atoms/datepickers/Datepicker.stories.js +67 -0
- package/dist/components/atoms/filter/Filter.stories.d.ts +9 -0
- package/dist/components/atoms/filter/Filter.stories.js +77 -0
- package/dist/components/atoms/filters/SingleFilter.stories.d.ts +7 -0
- package/dist/components/atoms/filters/SingleFilter.stories.js +34 -0
- package/dist/components/atoms/inputs/Input.stories.d.ts +62 -0
- package/dist/components/atoms/inputs/Input.stories.js +101 -0
- package/dist/components/atoms/inputs/SearchBar.stories.d.ts +54 -0
- package/dist/components/atoms/inputs/SearchBar.stories.js +67 -0
- package/dist/components/atoms/inputs/TextArea.stories.d.ts +70 -0
- package/dist/components/atoms/inputs/TextArea.stories.js +113 -0
- package/dist/components/atoms/progressBars/ProgressBar.css +2 -3
- package/dist/components/atoms/progressBars/ProgressBar.js +2 -3
- package/dist/components/atoms/progressBars/ProgressBar.stories.d.ts +83 -0
- package/dist/components/atoms/progressBars/ProgressBar.stories.js +88 -0
- package/dist/components/atoms/radios/RadioButton.stories.d.ts +36 -0
- package/dist/components/atoms/radios/RadioButton.stories.js +75 -0
- package/dist/components/atoms/selects/ComboBox.css +1 -1
- package/dist/components/atoms/selects/ComboBox.stories.d.ts +94 -0
- package/dist/components/atoms/selects/ComboBox.stories.js +122 -0
- package/dist/components/atoms/selects/Select.d.ts +0 -1
- package/dist/components/atoms/selects/Select.js +47 -20
- package/dist/components/atoms/selects/{Select.css → Select.module.css} +12 -13
- package/dist/components/atoms/selects/Select.stories.d.ts +86 -0
- package/dist/components/atoms/selects/Select.stories.js +154 -0
- package/dist/components/atoms/selects/SelectableListItem.d.ts +13 -0
- package/dist/components/atoms/selects/SelectableListItem.js +18 -0
- package/dist/components/atoms/selects/SelectableListItem.module.css +157 -0
- package/dist/components/atoms/selects/SelectableListItem.stories.d.ts +33 -0
- package/dist/components/atoms/selects/SelectableListItem.stories.js +53 -0
- package/dist/components/atoms/selects/index.d.ts +2 -0
- package/dist/components/atoms/selects/index.js +1 -0
- package/dist/components/atoms/tags/AppointementStatusTag.stories.d.ts +17 -0
- package/dist/components/atoms/tags/AppointementStatusTag.stories.js +70 -0
- package/dist/components/atoms/tags/FolderStatusTag.css +4 -4
- package/dist/components/atoms/tags/FolderStatusTag.stories.d.ts +28 -0
- package/dist/components/atoms/tags/FolderStatusTag.stories.js +51 -0
- package/dist/components/atoms/tags/OtherStatusTag.css +20 -1
- package/dist/components/atoms/tags/OtherStatusTag.d.ts +1 -0
- package/dist/components/atoms/tags/OtherStatusTag.js +2 -2
- package/dist/components/atoms/tags/OtherStatusTag.stories.d.ts +97 -0
- package/dist/components/atoms/tags/OtherStatusTag.stories.js +151 -0
- package/dist/components/atoms/typography/CardDate.stories.d.ts +119 -0
- package/dist/components/atoms/typography/CardDate.stories.js +103 -0
- package/dist/components/atoms/typography/Heading.js +1 -1
- package/dist/components/atoms/typography/Heading.stories.d.ts +45 -0
- package/dist/components/atoms/typography/Heading.stories.js +90 -0
- package/dist/components/atoms/typography/Link.d.ts +13 -0
- package/dist/components/atoms/typography/Link.js +35 -0
- package/dist/components/atoms/typography/Link.module.css +60 -0
- package/dist/components/atoms/typography/Link.stories.d.ts +57 -0
- package/dist/components/atoms/typography/Link.stories.js +105 -0
- package/dist/components/atoms/typography/Paragraph.d.ts +2 -0
- package/dist/components/atoms/typography/Paragraph.js +3 -3
- package/dist/components/atoms/typography/Paragraph.stories.d.ts +56 -0
- package/dist/components/atoms/typography/Paragraph.stories.js +97 -0
- package/dist/components/atoms/typography/SmallTitle.stories.d.ts +42 -0
- package/dist/components/atoms/typography/SmallTitle.stories.js +72 -0
- package/dist/components/atoms/typography/Subtitle.stories.d.ts +40 -0
- package/dist/components/atoms/typography/Subtitle.stories.js +60 -0
- package/dist/components/atoms/typography/TinyInfo.d.ts +1 -0
- package/dist/components/atoms/typography/TinyInfo.js +2 -2
- package/dist/components/atoms/typography/TinyInfo.stories.d.ts +52 -0
- package/dist/components/atoms/typography/TinyInfo.stories.js +97 -0
- package/dist/components/atoms/typography/index.d.ts +2 -0
- package/dist/components/atoms/typography/index.js +1 -0
- package/dist/components/atoms/uiVariables/AnimatedBorder.css +55 -0
- package/dist/components/atoms/uiVariables/AnimatedBorder.d.ts +4 -0
- package/dist/components/atoms/uiVariables/AnimatedBorder.js +11 -0
- package/dist/components/atoms/uiVariables/AnimatedBorder.stories.d.ts +17 -0
- package/dist/components/atoms/uiVariables/AnimatedBorder.stories.js +20 -0
- package/dist/components/atoms/uiVariables/BorderRadius.stories.d.ts +18 -0
- package/dist/components/atoms/uiVariables/BorderRadius.stories.js +34 -0
- package/dist/components/atoms/uiVariables/Shadows.stories.d.ts +18 -0
- package/dist/components/atoms/uiVariables/Shadows.stories.js +34 -0
- package/dist/components/atoms/uiVariables/Strokes.stories.d.ts +18 -0
- package/dist/components/atoms/uiVariables/Strokes.stories.js +34 -0
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.d.ts +70 -0
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.js +186 -0
- package/dist/components/molecules/billingCount/BillingCount.stories.d.ts +21 -0
- package/dist/components/molecules/billingCount/BillingCount.stories.js +44 -0
- package/dist/components/molecules/blogCard/BlogCard.d.ts +13 -0
- package/dist/components/molecules/blogCard/BlogCard.js +33 -0
- package/dist/components/molecules/blogCard/BlogCard.module.css +148 -0
- package/dist/components/molecules/blogCard/BlogCard.stories.d.ts +10 -0
- package/dist/components/molecules/blogCard/BlogCard.stories.js +33 -0
- package/dist/components/molecules/blogCard/index.d.ts +2 -0
- package/dist/components/molecules/blogCard/index.js +1 -0
- package/dist/components/molecules/blogFooter/BlogFooter.d.ts +12 -0
- package/dist/components/molecules/blogFooter/BlogFooter.js +14 -0
- package/dist/components/molecules/blogFooter/BlogFooter.module.css +48 -0
- package/dist/components/molecules/blogFooter/BlogFooter.stories.d.ts +60 -0
- package/dist/components/molecules/blogFooter/BlogFooter.stories.js +67 -0
- package/dist/components/molecules/blogFooter/index.d.ts +2 -0
- package/dist/components/molecules/blogFooter/index.js +1 -0
- package/dist/components/molecules/blogHeader/BlogHeader.d.ts +11 -0
- package/dist/components/molecules/blogHeader/BlogHeader.js +21 -0
- package/dist/components/molecules/blogHeader/BlogHeader.module.css +150 -0
- package/dist/components/molecules/blogHeader/BlogHeader.stories.d.ts +49 -0
- package/dist/components/molecules/blogHeader/BlogHeader.stories.js +63 -0
- package/dist/components/molecules/blogHeader/index.d.ts +2 -0
- package/dist/components/molecules/blogHeader/index.js +1 -0
- package/dist/components/molecules/blogText/BlogText.d.ts +7 -0
- package/dist/components/molecules/blogText/BlogText.js +11 -0
- package/dist/components/molecules/blogText/BlogText.module.css +59 -0
- package/dist/components/molecules/blogText/BlogText.stories.d.ts +31 -0
- package/dist/components/molecules/blogText/BlogText.stories.js +51 -0
- package/dist/components/molecules/blogText/index.d.ts +2 -0
- package/dist/components/molecules/blogText/index.js +1 -0
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.d.ts +8 -0
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.js +15 -0
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.module.css +108 -0
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.d.ts +37 -0
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.js +58 -0
- package/dist/components/molecules/blogTextImageBlock/index.d.ts +2 -0
- package/dist/components/molecules/blogTextImageBlock/index.js +1 -0
- package/dist/components/molecules/breadcrumb/Breadcrumb.stories.d.ts +24 -0
- package/dist/components/molecules/breadcrumb/Breadcrumb.stories.js +54 -0
- package/dist/components/molecules/caseCard/CaseCard.stories.d.ts +114 -0
- package/dist/components/molecules/caseCard/CaseCard.stories.js +200 -0
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.js +2 -1
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.d.ts +11 -0
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.js +59 -0
- package/dist/components/molecules/caseCardCompact/caseCardCompact.css +5 -2
- package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.d.ts +9 -0
- package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.js +37 -0
- package/dist/components/molecules/caseLinkCard/CaseLinkCard.css +2 -4
- package/dist/components/molecules/checkboxForm/CheckboxForm.d.ts +1 -0
- package/dist/components/molecules/checkboxForm/CheckboxForm.js +2 -2
- package/dist/components/molecules/checkboxForm/CheckboxForm.stories.d.ts +90 -0
- package/dist/components/molecules/checkboxForm/CheckboxForm.stories.js +149 -0
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.d.ts +11 -0
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.js +59 -0
- package/dist/components/molecules/contactCard/ContactCard.d.ts +3 -2
- package/dist/components/molecules/contactCard/ContactCard.js +23 -24
- package/dist/components/molecules/contactCard/ContactCard.stories.d.ts +68 -0
- package/dist/components/molecules/contactCard/ContactCard.stories.js +80 -0
- package/dist/components/molecules/contactCard/DetailedContactCard.stories.d.ts +94 -0
- package/dist/components/molecules/contactCard/DetailedContactCard.stories.js +83 -0
- package/dist/components/molecules/contactCard/{ContactCard.css → contactCard.module.css} +34 -28
- package/dist/components/molecules/datepickerForm/DatepickerForm.stories.d.ts +164 -0
- package/dist/components/molecules/datepickerForm/DatepickerForm.stories.js +113 -0
- package/dist/components/molecules/documentCard/DocumentCard.css +4 -1
- package/dist/components/molecules/documentCard/DocumentCard.d.ts +3 -2
- package/dist/components/molecules/documentCard/DocumentCard.js +45 -7
- package/dist/components/molecules/documentCard/DocumentCard.stories.d.ts +71 -0
- package/dist/components/molecules/documentCard/DocumentCard.stories.js +100 -0
- package/dist/components/molecules/employeeCard/EmployeeCard.stories.d.ts +74 -0
- package/dist/components/molecules/employeeCard/EmployeeCard.stories.js +65 -0
- package/dist/components/molecules/loadingBox/LoadingBox.stories.d.ts +54 -0
- package/dist/components/molecules/loadingBox/LoadingBox.stories.js +128 -0
- package/dist/components/molecules/pagination/Pagination.stories.d.ts +44 -0
- package/dist/components/molecules/pagination/Pagination.stories.js +59 -0
- package/dist/components/molecules/proCard/ProCard.js +0 -4
- package/dist/components/molecules/proCard/ProCard.stories.d.ts +49 -0
- package/dist/components/molecules/proCard/ProCard.stories.js +69 -0
- package/dist/components/molecules/radioForm/RadioForm.stories.d.ts +27 -0
- package/dist/components/molecules/radioForm/RadioForm.stories.js +52 -0
- package/dist/components/molecules/selectForm/SelectForm.stories.d.ts +58 -0
- package/dist/components/molecules/selectForm/SelectForm.stories.js +96 -0
- package/dist/components/molecules/stepper/Stepper.css +17 -4
- package/dist/components/molecules/stepper/Stepper.stories.d.ts +42 -0
- package/dist/components/molecules/stepper/Stepper.stories.js +132 -0
- package/dist/index.d.ts +14 -1
- package/dist/index.js +8 -1
- package/dist/stories/Header.d.ts +13 -0
- package/dist/stories/Header.js +20 -0
- package/dist/stories/Header.stories.d.ts +18 -0
- package/dist/stories/Header.stories.js +26 -0
- package/dist/stories/Page.d.ts +3 -0
- package/dist/stories/Page.js +37 -0
- package/dist/stories/Page.stories.d.ts +12 -0
- package/dist/stories/Page.stories.js +76 -0
- package/dist/stories/header.css +32 -0
- package/dist/stories/page.css +69 -0
- package/dist/styles/colors.css +2 -0
- package/dist/styles/colors.module.css +107 -0
- package/dist/styles/icons.css +76 -107
- package/package.json +16 -14
|
Binary file
|
|
@@ -103,4 +103,19 @@
|
|
|
103
103
|
<glyph unicode="" 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
104
|
<glyph unicode="" 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
105
|
<glyph unicode="" 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" />
|
|
106
|
+
<glyph unicode="" glyph-name="microsoft-outlook" data-tags="microsoft-outlook" d="M1024 644.821v-447.061c0-9.813-3.413-18.091-10.155-24.576-6.741-6.571-15.019-9.813-24.747-9.813h-364.672v296.917l68.267-52.437c4.352-3.627 9.771-5.376 16.171-5.376 6.315 0 11.819 1.749 16.597 5.419zM624.427 731.051h364.672c9.003 0 16.768-2.688 23.168-8.192 6.4-5.461 9.984-12.8 10.581-21.76l-314.411-250.709-84.011 66.091zM571.904 923.136v-950.229l-571.904 98.816v749.867l571.989 101.547zM399.147 446.123c-0.853 48.341-13.355 88.405-37.504 120.064-23.68 31.573-54.4 48.256-90.923 49.664-35.157-1.408-65.237-18.048-89.6-49.664-24.32-31.659-36.48-71.765-37.12-120.064 0.64-47.659 13.44-87.339 37.76-119.083 24.363-31.573 54.357-48.341 89.643-50.176 36.48 1.493 67.157 18.091 91.52 49.92 24.32 31.915 37.12 71.68 37.76 119.339zM266.027 552.021c18.389-0.853 33.877-10.923 46.208-30.592 12.16-19.669 18.56-44.587 18.56-74.752 0-30.763-6.357-55.765-18.56-75.563-12.843-19.797-28.16-30.037-46.763-30.037s-33.92 9.643-46.72 29.44-18.56 44.8-18.56 74.837c0 30.080 5.76 55.083 18.56 74.24 12.117 19.2 27.563 29.44 46.123 30.763z" />
|
|
107
|
+
<glyph unicode="" d="M277.333 682.667h469.333v-469.333h-469.333v469.333z" />
|
|
108
|
+
<glyph unicode="" d="M547.84 513.707l21.504-30.72 33.792 24.576v-178.176h36.864v233.472h-30.72z" />
|
|
109
|
+
<glyph unicode="" glyph-name="microsoftoutlook" data-tags="microsoft-outlook" d="M1024 644.821v-447.061c0-9.813-3.413-18.091-10.155-24.576-6.741-6.571-15.019-9.813-24.747-9.813h-364.672v296.917l68.267-52.437c4.352-3.627 9.771-5.376 16.171-5.376 6.315 0 11.819 1.749 16.597 5.419zM624.427 731.051h364.672c9.003 0 16.768-2.688 23.168-8.192 6.4-5.461 9.984-12.8 10.581-21.76l-314.411-250.709-84.011 66.091zM571.904 923.136v-950.229l-571.904 98.816v749.867l571.989 101.547zM399.147 446.123c-0.853 48.341-13.355 88.405-37.504 120.064-23.68 31.573-54.4 48.256-90.923 49.664-35.157-1.408-65.237-18.048-89.6-49.664-24.32-31.659-36.48-71.765-37.12-120.064 0.64-47.659 13.44-87.339 37.76-119.083 24.363-31.573 54.357-48.341 89.643-50.176 36.48 1.493 67.157 18.091 91.52 49.92 24.32 31.915 37.12 71.68 37.76 119.339zM266.027 552.021c18.389-0.853 33.877-10.923 46.208-30.592 12.16-19.669 18.56-44.587 18.56-74.752 0-30.763-6.357-55.765-18.56-75.563-12.843-19.797-28.16-30.037-46.763-30.037s-33.92 9.643-46.72 29.44-18.56 44.8-18.56 74.837c0 30.080 5.76 55.083 18.56 74.24 12.117 19.2 27.563 29.44 46.123 30.763z" />
|
|
110
|
+
<glyph unicode="" d="M489.451 453.44c13.333 12.245 21.611 29.227 21.611 47.979 0 37.269-32.704 67.584-72.896 67.584-34.176 0-63.403-21.525-71.040-52.331l35.349-8.981c3.52 14.165 18.517 24.448 35.691 24.448 20.096 0 36.459-13.781 36.459-30.72s-16.363-30.72-36.459-30.72h-21.269v-36.864h21.269c23.061 0 42.517-16.021 42.517-34.987 0-19.285-18.475-34.987-41.195-34.987-20.523 0-38.059 13.013-40.832 30.251l-35.989-5.888c5.589-34.901 38.613-61.227 76.8-61.227 42.816 0 77.653 32.235 77.653 71.851 0 21.824-10.752 41.408-27.669 54.592z" />
|
|
111
|
+
<glyph unicode="" d="M725.333 64h-426.667l-21.333 85.333 21.333 85.333h426.667l21.333-85.333z" />
|
|
112
|
+
<glyph unicode="" d="M810.667 213.333l85.333 21.333v426.667l-85.333 21.333-85.333-21.333v-426.667z" />
|
|
113
|
+
<glyph unicode="" d="M725.333 661.333l21.333 85.333-21.333 85.333h-533.333c-35.349 0-64-28.651-64-64v-533.333l85.333-21.333 85.333 21.333v426.667h426.667z" />
|
|
114
|
+
<glyph unicode="" d="M725.333 234.667v-170.667l170.667 170.667z" />
|
|
115
|
+
<glyph unicode="" d="M832 832h-106.667v-170.667h170.667v106.667c0 35.349-28.651 64-64 64z" />
|
|
116
|
+
<glyph unicode="" d="M48.762 911.238h438.857v-438.857h-438.857v438.857z" />
|
|
117
|
+
<glyph unicode="" d="M48.762 423.619h438.857v-438.857h-438.857v438.857z" />
|
|
118
|
+
<glyph unicode="" d="M536.381 911.238h438.857v-438.857h-438.857v438.857z" />
|
|
119
|
+
<glyph unicode="" d="M536.381 423.619h438.857v-438.857h-438.857v438.857z" />
|
|
120
|
+
<glyph unicode="" d="M192 64h106.667v170.667h-170.667v-106.667c0-35.349 28.651-64 64-64z" />
|
|
106
121
|
</font></defs></svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { ActionCircleButton as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
export namespace argTypes {
|
|
6
|
+
namespace status {
|
|
7
|
+
namespace control {
|
|
8
|
+
let type: string;
|
|
9
|
+
let options: string[];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
namespace onApprove {
|
|
13
|
+
let action: string;
|
|
14
|
+
}
|
|
15
|
+
namespace onReject {
|
|
16
|
+
let action_1: string;
|
|
17
|
+
export { action_1 as action };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export namespace parameters {
|
|
21
|
+
namespace backgrounds {
|
|
22
|
+
let _default: string;
|
|
23
|
+
export { _default as default };
|
|
24
|
+
export let values: {
|
|
25
|
+
name: string;
|
|
26
|
+
value: string;
|
|
27
|
+
}[];
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export default _default;
|
|
32
|
+
export const Approved: any;
|
|
33
|
+
export const Rejected: any;
|
|
34
|
+
export const Dual: any;
|
|
35
|
+
import ActionCircleButton from "./ActionCircleButton";
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
import React from "react";
|
|
13
|
+
import ActionCircleButton from "./ActionCircleButton";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export default {
|
|
16
|
+
title: "Components/Atoms/Buttons/ActionCircleButton",
|
|
17
|
+
component: ActionCircleButton,
|
|
18
|
+
tags: ["autodocs"],
|
|
19
|
+
argTypes: {
|
|
20
|
+
status: {
|
|
21
|
+
control: {
|
|
22
|
+
type: "select",
|
|
23
|
+
options: ["approved", "rejected", "dual"],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
onApprove: { action: "approved" },
|
|
27
|
+
onReject: { action: "rejected" },
|
|
28
|
+
},
|
|
29
|
+
parameters: {
|
|
30
|
+
backgrounds: {
|
|
31
|
+
default: "light",
|
|
32
|
+
values: [
|
|
33
|
+
{ name: "light", value: "#ffffff" },
|
|
34
|
+
{ name: "grey", value: "#728ea7" },
|
|
35
|
+
{ name: "figma", value: "#404040" },
|
|
36
|
+
{ name: "dark", value: "#171e25" },
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
var Template = function (args) { return React.createElement(ActionCircleButton, __assign({}, args)); };
|
|
42
|
+
export var Approved = Template.bind({});
|
|
43
|
+
Approved.args = {
|
|
44
|
+
status: "approved",
|
|
45
|
+
};
|
|
46
|
+
export var Rejected = Template.bind({});
|
|
47
|
+
Rejected.args = {
|
|
48
|
+
status: "rejected",
|
|
49
|
+
};
|
|
50
|
+
export var Dual = Template.bind({});
|
|
51
|
+
Dual.args = {
|
|
52
|
+
status: "dual",
|
|
53
|
+
};
|
|
54
|
+
//
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { AgendaSlot as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
export namespace argTypes {
|
|
6
|
+
namespace appearance {
|
|
7
|
+
namespace control {
|
|
8
|
+
let type: string;
|
|
9
|
+
let options: string[];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
namespace isDisabled {
|
|
13
|
+
export namespace control_1 {
|
|
14
|
+
let type_1: string;
|
|
15
|
+
export { type_1 as type };
|
|
16
|
+
}
|
|
17
|
+
export { control_1 as control };
|
|
18
|
+
}
|
|
19
|
+
namespace onClick {
|
|
20
|
+
namespace table {
|
|
21
|
+
let disable: boolean;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export namespace parameters {
|
|
26
|
+
namespace backgrounds {
|
|
27
|
+
let _default: string;
|
|
28
|
+
export { _default as default };
|
|
29
|
+
export let values: {
|
|
30
|
+
name: string;
|
|
31
|
+
value: string;
|
|
32
|
+
}[];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export default _default;
|
|
37
|
+
export const Default: any;
|
|
38
|
+
export const Hybride: any;
|
|
39
|
+
export const User: any;
|
|
40
|
+
export const Disabled: any;
|
|
41
|
+
import AgendaSlot from "./AgendaSlot";
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
import React from "react";
|
|
13
|
+
import AgendaSlot from "./AgendaSlot";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export default {
|
|
16
|
+
title: "Components/Atoms/Buttons/AgendaSlot",
|
|
17
|
+
component: AgendaSlot,
|
|
18
|
+
tags: ["autodocs"],
|
|
19
|
+
argTypes: {
|
|
20
|
+
appearance: {
|
|
21
|
+
control: {
|
|
22
|
+
type: "select",
|
|
23
|
+
options: ["pro", "hybride", "user"],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
isDisabled: {
|
|
27
|
+
control: {
|
|
28
|
+
type: "boolean",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
onClick: {
|
|
32
|
+
table: {
|
|
33
|
+
disable: true,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
parameters: {
|
|
38
|
+
backgrounds: {
|
|
39
|
+
default: "light",
|
|
40
|
+
values: [
|
|
41
|
+
{ name: "light", value: "#ffffff" },
|
|
42
|
+
{ name: "grey", value: "#728ea7" },
|
|
43
|
+
{ name: "figma", value: "#404040" },
|
|
44
|
+
{ name: "dark", value: "#171e25" },
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
var Template = function (args) { return React.createElement(AgendaSlot, __assign({}, args)); };
|
|
50
|
+
export var Default = Template.bind({});
|
|
51
|
+
Default.args = {
|
|
52
|
+
time: "8:00 - 8:45",
|
|
53
|
+
appearance: "pro",
|
|
54
|
+
isDisabled: false,
|
|
55
|
+
onClick: function () { return console.log("Slot clicked"); },
|
|
56
|
+
};
|
|
57
|
+
export var Hybride = Template.bind({});
|
|
58
|
+
Hybride.args = {
|
|
59
|
+
time: "8:00",
|
|
60
|
+
appearance: "hybride",
|
|
61
|
+
isDisabled: false,
|
|
62
|
+
onClick: function () { return console.log("Slot clicked"); },
|
|
63
|
+
};
|
|
64
|
+
export var User = Template.bind({});
|
|
65
|
+
User.args = {
|
|
66
|
+
time: "9:00",
|
|
67
|
+
appearance: "user",
|
|
68
|
+
isDisabled: false,
|
|
69
|
+
onClick: function () { return console.log("Slot clicked"); },
|
|
70
|
+
};
|
|
71
|
+
export var Disabled = Template.bind({});
|
|
72
|
+
Disabled.args = {
|
|
73
|
+
time: "8:00 - 8:45",
|
|
74
|
+
appearance: "pro",
|
|
75
|
+
isDisabled: true,
|
|
76
|
+
onClick: undefined, // Disabled state
|
|
77
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { FavoriteToggle as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
export namespace argTypes {
|
|
6
|
+
namespace isFavorite {
|
|
7
|
+
let control: string;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export namespace parameters {
|
|
11
|
+
namespace backgrounds {
|
|
12
|
+
let _default: string;
|
|
13
|
+
export { _default as default };
|
|
14
|
+
export let values: {
|
|
15
|
+
name: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}[];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export default _default;
|
|
22
|
+
export const Default: any;
|
|
23
|
+
import FavoriteToggle from "./FavoriteToggle";
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
import { useArgs } from "@storybook/client-api";
|
|
25
|
+
import FavoriteToggle from "./FavoriteToggle";
|
|
26
|
+
import "../../../styles/global.css";
|
|
27
|
+
export default {
|
|
28
|
+
title: "Components/Atoms/Buttons/FavoriteToggle",
|
|
29
|
+
component: FavoriteToggle,
|
|
30
|
+
tags: ["autodocs"],
|
|
31
|
+
argTypes: {
|
|
32
|
+
isFavorite: {
|
|
33
|
+
control: "boolean",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
parameters: {
|
|
37
|
+
backgrounds: {
|
|
38
|
+
default: "light",
|
|
39
|
+
values: [
|
|
40
|
+
{ name: "light", value: "#ffffff" },
|
|
41
|
+
{ name: "grey", value: "#728ea7" },
|
|
42
|
+
{ name: "figma", value: "#404040" },
|
|
43
|
+
{ name: "dark", value: "#171e25" },
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
var Template = function (_a) {
|
|
49
|
+
var args = __rest(_a, []);
|
|
50
|
+
var _b = useArgs(), isFavorite = _b[0].isFavorite, updateArgs = _b[1];
|
|
51
|
+
var handleToggle = function (newValue) {
|
|
52
|
+
updateArgs({ isFavorite: newValue });
|
|
53
|
+
args.onToggle(newValue);
|
|
54
|
+
};
|
|
55
|
+
return (React.createElement(FavoriteToggle, __assign({}, args, { isFavorite: isFavorite, onToggle: handleToggle })));
|
|
56
|
+
};
|
|
57
|
+
export var Default = Template.bind({});
|
|
58
|
+
Default.args = {
|
|
59
|
+
isFavorite: false,
|
|
60
|
+
onToggle: function (isFavorite) { return console.log("Toggled to:", isFavorite); },
|
|
61
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export const ActionsData: {};
|
|
2
|
+
declare namespace _default {
|
|
3
|
+
export let title: string;
|
|
4
|
+
export { FilterButton as component };
|
|
5
|
+
export let tags: string[];
|
|
6
|
+
export let excludeStories: RegExp;
|
|
7
|
+
export let args: {};
|
|
8
|
+
export namespace argTypes {
|
|
9
|
+
namespace label {
|
|
10
|
+
namespace control {
|
|
11
|
+
let type: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
namespace isActive {
|
|
15
|
+
export namespace control_1 {
|
|
16
|
+
let type_1: string;
|
|
17
|
+
export { type_1 as type };
|
|
18
|
+
}
|
|
19
|
+
export { control_1 as control };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export namespace parameters {
|
|
23
|
+
namespace backgrounds {
|
|
24
|
+
let _default: string;
|
|
25
|
+
export { _default as default };
|
|
26
|
+
export let values: {
|
|
27
|
+
name: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}[];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export default _default;
|
|
34
|
+
export const Active: any;
|
|
35
|
+
export const Inactive: any;
|
|
36
|
+
import FilterButton from "./FilterButton";
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
import React from "react";
|
|
13
|
+
import FilterButton from "./FilterButton";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export var ActionsData = {};
|
|
16
|
+
export default {
|
|
17
|
+
title: "Components/Atoms/Buttons/FilterButton",
|
|
18
|
+
component: FilterButton,
|
|
19
|
+
tags: ["autodocs"],
|
|
20
|
+
excludeStories: /.*Data$/,
|
|
21
|
+
args: __assign({}, ActionsData),
|
|
22
|
+
argTypes: {
|
|
23
|
+
label: {
|
|
24
|
+
control: {
|
|
25
|
+
type: "text",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
isActive: {
|
|
29
|
+
control: {
|
|
30
|
+
type: "boolean",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
parameters: {
|
|
35
|
+
backgrounds: {
|
|
36
|
+
default: "light",
|
|
37
|
+
values: [
|
|
38
|
+
{ name: "light", value: "#ffffff" },
|
|
39
|
+
{ name: "grey", value: "#728ea7" },
|
|
40
|
+
{ name: "figma", value: "#404040" },
|
|
41
|
+
{ name: "dark", value: "#171e25" },
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
var Template = function (args) { return React.createElement(FilterButton, __assign({}, args)); };
|
|
47
|
+
export var Active = Template.bind({});
|
|
48
|
+
Active.args = {
|
|
49
|
+
label: "Filtre",
|
|
50
|
+
isActive: true,
|
|
51
|
+
};
|
|
52
|
+
export var Inactive = Template.bind({});
|
|
53
|
+
Inactive.args = {
|
|
54
|
+
label: "Filtre",
|
|
55
|
+
isActive: false,
|
|
56
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
// FilterButtonPrimary.stories.js
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import FilterButtonPrimary from './FilterButtonPrimary';
|
|
15
|
+
import "../../../styles/global.css";
|
|
16
|
+
export default {
|
|
17
|
+
title: 'Components/Atoms/Buttons/FilterButtonPrimary',
|
|
18
|
+
component: FilterButtonPrimary,
|
|
19
|
+
};
|
|
20
|
+
var Template = function (args) { return React.createElement(FilterButtonPrimary, __assign({}, args)); };
|
|
21
|
+
export var Default = Template.bind({});
|
|
22
|
+
Default.args = {
|
|
23
|
+
onClick: function () { return alert('Button clicked!'); },
|
|
24
|
+
zIndex: '100',
|
|
25
|
+
children: 'Filter Button',
|
|
26
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export namespace ActionsData {
|
|
2
|
+
namespace onClick {
|
|
3
|
+
let action: string;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
declare namespace _default {
|
|
7
|
+
export let title: string;
|
|
8
|
+
export { GhostButton as component };
|
|
9
|
+
export let tags: string[];
|
|
10
|
+
export let excludeStories: RegExp;
|
|
11
|
+
export namespace args { }
|
|
12
|
+
export namespace argTypes {
|
|
13
|
+
export namespace startIcon {
|
|
14
|
+
namespace control {
|
|
15
|
+
let type: string;
|
|
16
|
+
}
|
|
17
|
+
namespace mapping {
|
|
18
|
+
let _true: string;
|
|
19
|
+
export { _true as true };
|
|
20
|
+
let _false: null;
|
|
21
|
+
export { _false as false };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export namespace endIcon {
|
|
25
|
+
export namespace control_1 {
|
|
26
|
+
let type_1: string;
|
|
27
|
+
export { type_1 as type };
|
|
28
|
+
}
|
|
29
|
+
export { control_1 as control };
|
|
30
|
+
export namespace mapping_1 {
|
|
31
|
+
let _true_1: string;
|
|
32
|
+
export { _true_1 as true };
|
|
33
|
+
let _false_1: null;
|
|
34
|
+
export { _false_1 as false };
|
|
35
|
+
}
|
|
36
|
+
export { mapping_1 as mapping };
|
|
37
|
+
}
|
|
38
|
+
export namespace variant {
|
|
39
|
+
export namespace control_2 {
|
|
40
|
+
let type_2: string;
|
|
41
|
+
export { type_2 as type };
|
|
42
|
+
}
|
|
43
|
+
export { control_2 as control };
|
|
44
|
+
}
|
|
45
|
+
export namespace startIconName {
|
|
46
|
+
export namespace control_3 {
|
|
47
|
+
let type_3: string;
|
|
48
|
+
export { type_3 as type };
|
|
49
|
+
}
|
|
50
|
+
export { control_3 as control };
|
|
51
|
+
}
|
|
52
|
+
export namespace endIconName {
|
|
53
|
+
export namespace control_4 {
|
|
54
|
+
let type_4: string;
|
|
55
|
+
export { type_4 as type };
|
|
56
|
+
}
|
|
57
|
+
export { control_4 as control };
|
|
58
|
+
}
|
|
59
|
+
export namespace onClick_1 {
|
|
60
|
+
let action_1: string;
|
|
61
|
+
export { action_1 as action };
|
|
62
|
+
}
|
|
63
|
+
export { onClick_1 as onClick };
|
|
64
|
+
}
|
|
65
|
+
export namespace parameters {
|
|
66
|
+
namespace backgrounds {
|
|
67
|
+
let _default: string;
|
|
68
|
+
export { _default as default };
|
|
69
|
+
export let values: {
|
|
70
|
+
name: string;
|
|
71
|
+
value: string;
|
|
72
|
+
}[];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export default _default;
|
|
77
|
+
export const Default: any;
|
|
78
|
+
export const Variant: any;
|
|
79
|
+
import GhostButton from "./GhostButton";
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
import React from "react";
|
|
13
|
+
import GhostButton from "./GhostButton";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export var ActionsData = {
|
|
16
|
+
onClick: { action: "clicked" },
|
|
17
|
+
};
|
|
18
|
+
export default {
|
|
19
|
+
title: "Components/Atoms/Buttons/GhostButton",
|
|
20
|
+
component: GhostButton,
|
|
21
|
+
tags: ["autodocs"],
|
|
22
|
+
excludeStories: /.*Data$/,
|
|
23
|
+
args: __assign({}, ActionsData),
|
|
24
|
+
argTypes: {
|
|
25
|
+
startIcon: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "boolean",
|
|
28
|
+
},
|
|
29
|
+
mapping: {
|
|
30
|
+
true: "allaw-icon-deconnexion",
|
|
31
|
+
false: null,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
endIcon: {
|
|
35
|
+
control: {
|
|
36
|
+
type: "boolean",
|
|
37
|
+
},
|
|
38
|
+
mapping: {
|
|
39
|
+
true: "allaw-icon-deconnexion",
|
|
40
|
+
false: null,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
variant: {
|
|
44
|
+
control: {
|
|
45
|
+
type: "boolean",
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
startIconName: {
|
|
49
|
+
control: {
|
|
50
|
+
type: "text",
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
endIconName: {
|
|
54
|
+
control: {
|
|
55
|
+
type: "text",
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
onClick: {
|
|
59
|
+
// Ajouté
|
|
60
|
+
action: "clicked",
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
parameters: {
|
|
64
|
+
backgrounds: {
|
|
65
|
+
default: "dark",
|
|
66
|
+
values: [
|
|
67
|
+
{ name: "light", value: "#ffffff" },
|
|
68
|
+
{ name: "grey", value: "#728ea7" },
|
|
69
|
+
{ name: "figma", value: "#404040" },
|
|
70
|
+
{ name: "dark", value: "#171e25" },
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
var Template = function (args) { return React.createElement(GhostButton, __assign({}, args)); };
|
|
76
|
+
export var Default = Template.bind({});
|
|
77
|
+
Default.args = {
|
|
78
|
+
label: "Ghost button",
|
|
79
|
+
startIcon: true,
|
|
80
|
+
endIcon: true,
|
|
81
|
+
variant: false,
|
|
82
|
+
startIconName: "allaw-icon-deconnexion",
|
|
83
|
+
endIconName: "allaw-icon-deconnexion",
|
|
84
|
+
onClick: function () { return console.log("Button clicked!"); },
|
|
85
|
+
};
|
|
86
|
+
export var Variant = Template.bind({});
|
|
87
|
+
Variant.args = {
|
|
88
|
+
label: "Ghost button",
|
|
89
|
+
startIcon: true,
|
|
90
|
+
endIcon: true,
|
|
91
|
+
variant: true,
|
|
92
|
+
startIconName: "allaw-icon-deconnexion",
|
|
93
|
+
endIconName: "allaw-icon-deconnexion",
|
|
94
|
+
onClick: function () { return console.log("Button clicked!"); },
|
|
95
|
+
};
|
|
@@ -8,8 +8,8 @@ var IconButton = function (_a) {
|
|
|
8
8
|
"--custom-background-color": color,
|
|
9
9
|
}
|
|
10
10
|
: {};
|
|
11
|
-
return (React.createElement("button", { className: "icon-button ".concat(style
|
|
12
|
-
React.createElement("i", { className: "icon ".concat(iconName) })));
|
|
11
|
+
return (React.createElement("button", { className: "icon-button ".concat(style), onClick: onClick, style: customStyle },
|
|
12
|
+
React.createElement("i", { className: "icon ".concat(iconName), style: { color: color ? color : "inherit" } })));
|
|
13
13
|
};
|
|
14
14
|
IconButton.defaultProps = {
|
|
15
15
|
style: "smallFilled",
|