allaw-ui 5.4.1 → 5.4.3
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/components/atoms/buttons/ActionButton.d.ts +1 -1
- package/dist/components/atoms/buttons/ActionButton.js +2 -2
- package/dist/components/molecules/proSwitch/ProSwitchModal.js +0 -2
- package/package.json +12 -19
- package/dist/components/atoms/buttons/ActionButton.stories.d.ts +0 -110
- package/dist/components/atoms/buttons/ActionButton.stories.js +0 -171
- package/dist/components/atoms/buttons/ActionCircleButton.stories.d.ts +0 -35
- package/dist/components/atoms/buttons/ActionCircleButton.stories.js +0 -54
- package/dist/components/atoms/buttons/AgendaSlot.stories.d.ts +0 -41
- package/dist/components/atoms/buttons/AgendaSlot.stories.js +0 -77
- package/dist/components/atoms/buttons/FavoriteToggle.stories.d.ts +0 -23
- package/dist/components/atoms/buttons/FavoriteToggle.stories.js +0 -61
- package/dist/components/atoms/buttons/FilterButton.stories.d.ts +0 -36
- package/dist/components/atoms/buttons/FilterButton.stories.js +0 -56
- package/dist/components/atoms/buttons/FilterButtonPrimary.stories.d.ts +0 -7
- package/dist/components/atoms/buttons/FilterButtonPrimary.stories.js +0 -26
- package/dist/components/atoms/buttons/GhostButton.stories.d.ts +0 -79
- package/dist/components/atoms/buttons/GhostButton.stories.js +0 -95
- package/dist/components/atoms/buttons/IconButton.stories.d.ts +0 -51
- package/dist/components/atoms/buttons/IconButton.stories.js +0 -100
- package/dist/components/atoms/buttons/InboxButton.stories.d.ts +0 -68
- package/dist/components/atoms/buttons/InboxButton.stories.js +0 -143
- package/dist/components/atoms/buttons/OAuthProviderButton.stories.d.ts +0 -67
- package/dist/components/atoms/buttons/OAuthProviderButton.stories.js +0 -168
- package/dist/components/atoms/buttons/PendingDocuments.stories.d.ts +0 -52
- package/dist/components/atoms/buttons/PendingDocuments.stories.js +0 -67
- package/dist/components/atoms/buttons/PrimaryButton.stories.d.ts +0 -121
- package/dist/components/atoms/buttons/PrimaryButton.stories.js +0 -187
- package/dist/components/atoms/buttons/SecondaryButton.stories.d.ts +0 -97
- package/dist/components/atoms/buttons/SecondaryButton.stories.js +0 -177
- package/dist/components/atoms/buttons/TabNavigation.stories.d.ts +0 -81
- package/dist/components/atoms/buttons/TabNavigation.stories.js +0 -178
- package/dist/components/atoms/buttons/TertiaryButton.stories.d.ts +0 -70
- package/dist/components/atoms/buttons/TertiaryButton.stories.js +0 -128
- package/dist/components/atoms/checkboxes/Checkbox.stories.d.ts +0 -77
- package/dist/components/atoms/checkboxes/Checkbox.stories.js +0 -123
- package/dist/components/atoms/datepickers/Datepicker.stories.d.ts +0 -167
- package/dist/components/atoms/datepickers/Datepicker.stories.js +0 -113
- package/dist/components/atoms/featureCard/featureCard.stories.d.ts +0 -21
- package/dist/components/atoms/featureCard/featureCard.stories.js +0 -101
- package/dist/components/atoms/filter/Filter.stories.d.ts +0 -9
- package/dist/components/atoms/filter/Filter.stories.js +0 -77
- package/dist/components/atoms/filters/SingleFilter.stories.d.ts +0 -10
- package/dist/components/atoms/filters/SingleFilter.stories.js +0 -84
- package/dist/components/atoms/inputs/Input.stories.d.ts +0 -85
- package/dist/components/atoms/inputs/Input.stories.js +0 -169
- package/dist/components/atoms/inputs/SearchBar.stories.d.ts +0 -142
- package/dist/components/atoms/inputs/SearchBar.stories.js +0 -197
- package/dist/components/atoms/inputs/TextArea.stories.d.ts +0 -95
- package/dist/components/atoms/inputs/TextArea.stories.js +0 -141
- package/dist/components/atoms/inputs/VerificationCodeInput.stories.d.ts +0 -81
- package/dist/components/atoms/inputs/VerificationCodeInput.stories.js +0 -89
- package/dist/components/atoms/progressBars/ProgressBar.stories.d.ts +0 -83
- package/dist/components/atoms/progressBars/ProgressBar.stories.js +0 -88
- package/dist/components/atoms/radios/RadioButton.stories.d.ts +0 -38
- package/dist/components/atoms/radios/RadioButton.stories.js +0 -87
- package/dist/components/atoms/radios/SelectCard.stories.d.ts +0 -92
- package/dist/components/atoms/radios/SelectCard.stories.js +0 -192
- package/dist/components/atoms/selects/ComboBox.stories.d.ts +0 -116
- package/dist/components/atoms/selects/ComboBox.stories.js +0 -136
- package/dist/components/atoms/selects/Select.stories.d.ts +0 -133
- package/dist/components/atoms/selects/Select.stories.js +0 -299
- package/dist/components/atoms/selects/SelectableListItem.stories.d.ts +0 -33
- package/dist/components/atoms/selects/SelectableListItem.stories.js +0 -53
- package/dist/components/atoms/tags/AppointementStatusTag.stories.d.ts +0 -17
- package/dist/components/atoms/tags/AppointementStatusTag.stories.js +0 -70
- package/dist/components/atoms/tags/FolderStatusTag.stories.d.ts +0 -28
- package/dist/components/atoms/tags/FolderStatusTag.stories.js +0 -51
- package/dist/components/atoms/tags/InlineTag.stories.d.ts +0 -109
- package/dist/components/atoms/tags/InlineTag.stories.js +0 -159
- package/dist/components/atoms/tags/OtherStatusTag.stories.d.ts +0 -99
- package/dist/components/atoms/tags/OtherStatusTag.stories.js +0 -160
- package/dist/components/atoms/typography/CardDate.stories.d.ts +0 -119
- package/dist/components/atoms/typography/CardDate.stories.js +0 -103
- package/dist/components/atoms/typography/Heading.stories.d.ts +0 -79
- package/dist/components/atoms/typography/Heading.stories.js +0 -150
- package/dist/components/atoms/typography/Link.stories.d.ts +0 -72
- package/dist/components/atoms/typography/Link.stories.js +0 -164
- package/dist/components/atoms/typography/Paragraph.stories.d.ts +0 -56
- package/dist/components/atoms/typography/Paragraph.stories.js +0 -97
- package/dist/components/atoms/typography/SmallTitle.stories.d.ts +0 -42
- package/dist/components/atoms/typography/SmallTitle.stories.js +0 -72
- package/dist/components/atoms/typography/Subtitle.stories.d.ts +0 -40
- package/dist/components/atoms/typography/Subtitle.stories.js +0 -60
- package/dist/components/atoms/typography/TinyInfo.stories.d.ts +0 -58
- package/dist/components/atoms/typography/TinyInfo.stories.js +0 -117
- package/dist/components/atoms/uiVariables/AnimatedBorder.stories.d.ts +0 -17
- package/dist/components/atoms/uiVariables/AnimatedBorder.stories.js +0 -20
- package/dist/components/atoms/uiVariables/BorderRadius.stories.d.ts +0 -18
- package/dist/components/atoms/uiVariables/BorderRadius.stories.js +0 -34
- package/dist/components/atoms/uiVariables/Shadows.stories.d.ts +0 -18
- package/dist/components/atoms/uiVariables/Shadows.stories.js +0 -34
- package/dist/components/atoms/uiVariables/Strokes.stories.d.ts +0 -18
- package/dist/components/atoms/uiVariables/Strokes.stories.js +0 -34
- package/dist/components/molecules/AiText/aiText.stories.d.ts +0 -43
- package/dist/components/molecules/AiText/aiText.stories.js +0 -216
- package/dist/components/molecules/DataStepper/Stepper.stories.d.ts +0 -8
- package/dist/components/molecules/DataStepper/Stepper.stories.js +0 -248
- package/dist/components/molecules/appointmentCard/AppointmentCard.stories.d.ts +0 -37
- package/dist/components/molecules/appointmentCard/AppointmentCard.stories.js +0 -106
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.d.ts +0 -95
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.js +0 -204
- package/dist/components/molecules/banner/Banner.stories.d.ts +0 -31
- package/dist/components/molecules/banner/Banner.stories.js +0 -123
- package/dist/components/molecules/billingCount/BillingCount.stories.d.ts +0 -22
- package/dist/components/molecules/billingCount/BillingCount.stories.js +0 -49
- package/dist/components/molecules/blogCard/BlogCard.stories.d.ts +0 -10
- package/dist/components/molecules/blogCard/BlogCard.stories.js +0 -33
- package/dist/components/molecules/blogFooter/BlogFooter.stories.d.ts +0 -60
- package/dist/components/molecules/blogFooter/BlogFooter.stories.js +0 -67
- package/dist/components/molecules/blogHeader/BlogHeader.stories.d.ts +0 -49
- package/dist/components/molecules/blogHeader/BlogHeader.stories.js +0 -63
- package/dist/components/molecules/blogText/BlogText.stories.d.ts +0 -31
- package/dist/components/molecules/blogText/BlogText.stories.js +0 -51
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.d.ts +0 -37
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.js +0 -58
- package/dist/components/molecules/brands/Brands.stories.d.ts +0 -8
- package/dist/components/molecules/brands/Brands.stories.js +0 -66
- package/dist/components/molecules/breadcrumb/Breadcrumb.stories.d.ts +0 -24
- package/dist/components/molecules/breadcrumb/Breadcrumb.stories.js +0 -54
- package/dist/components/molecules/caseCard/CaseCard.stories.d.ts +0 -114
- package/dist/components/molecules/caseCard/CaseCard.stories.js +0 -200
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.d.ts +0 -11
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.js +0 -59
- package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.d.ts +0 -9
- package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.js +0 -37
- package/dist/components/molecules/checkboxForm/CheckboxForm.stories.d.ts +0 -94
- package/dist/components/molecules/checkboxForm/CheckboxForm.stories.js +0 -157
- package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.d.ts +0 -108
- package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.js +0 -141
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.d.ts +0 -11
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.js +0 -59
- package/dist/components/molecules/contactCard/ContactCard.stories.d.ts +0 -69
- package/dist/components/molecules/contactCard/ContactCard.stories.js +0 -84
- package/dist/components/molecules/contactCard/ContactCardEdit.stories.d.ts +0 -88
- package/dist/components/molecules/contactCard/ContactCardEdit.stories.js +0 -106
- package/dist/components/molecules/contactCard/DetailedContactCard.stories.d.ts +0 -94
- package/dist/components/molecules/contactCard/DetailedContactCard.stories.js +0 -83
- package/dist/components/molecules/datepickerForm/DatepickerForm.stories.d.ts +0 -291
- package/dist/components/molecules/datepickerForm/DatepickerForm.stories.js +0 -185
- package/dist/components/molecules/documentCard/DocumentCard.stories.d.ts +0 -72
- package/dist/components/molecules/documentCard/DocumentCard.stories.js +0 -108
- package/dist/components/molecules/employeeCard/EmployeeCard.stories.d.ts +0 -74
- package/dist/components/molecules/employeeCard/EmployeeCard.stories.js +0 -65
- package/dist/components/molecules/emptyMessage/EmptyMessage.stories.d.ts +0 -75
- package/dist/components/molecules/emptyMessage/EmptyMessage.stories.js +0 -115
- package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.d.ts +0 -10
- package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.js +0 -50
- package/dist/components/molecules/entityCard/EntityCard.stories.d.ts +0 -22
- package/dist/components/molecules/entityCard/EntityCard.stories.js +0 -63
- package/dist/components/molecules/featureGrid/FeatureGrid.stories.d.ts +0 -7
- package/dist/components/molecules/featureGrid/FeatureGrid.stories.js +0 -97
- package/dist/components/molecules/fileCard/FileCard.stories.d.ts +0 -42
- package/dist/components/molecules/fileCard/FileCard.stories.js +0 -185
- package/dist/components/molecules/fileUploader/FileUploader.stories.d.ts +0 -120
- package/dist/components/molecules/fileUploader/FileUploader.stories.js +0 -269
- package/dist/components/molecules/flexContent/FlexContent.stories.d.ts +0 -9
- package/dist/components/molecules/flexContent/FlexContent.stories.js +0 -47
- package/dist/components/molecules/frameCTA/FrameCTA.stories.d.ts +0 -8
- package/dist/components/molecules/frameCTA/FrameCTA.stories.js +0 -58
- package/dist/components/molecules/heroSection/HeroSection.stories.d.ts +0 -46
- package/dist/components/molecules/heroSection/HeroSection.stories.js +0 -100
- package/dist/components/molecules/loadingBox/LoadingBox.stories.d.ts +0 -54
- package/dist/components/molecules/loadingBox/LoadingBox.stories.js +0 -128
- package/dist/components/molecules/modal/Modal.stories.d.ts +0 -128
- package/dist/components/molecules/modal/Modal.stories.js +0 -373
- package/dist/components/molecules/notification/Notification.stories.d.ts +0 -377
- package/dist/components/molecules/notification/Notification.stories.js +0 -205
- package/dist/components/molecules/pagination/Pagination.stories.d.ts +0 -44
- package/dist/components/molecules/pagination/Pagination.stories.js +0 -59
- package/dist/components/molecules/proCard/ProCard.stories.d.ts +0 -49
- package/dist/components/molecules/proCard/ProCard.stories.js +0 -69
- package/dist/components/molecules/proSwitch/AvatarBubble.stories.d.ts +0 -112
- package/dist/components/molecules/proSwitch/AvatarBubble.stories.js +0 -255
- package/dist/components/molecules/proSwitch/AvatarToggleGroup.stories.d.ts +0 -88
- package/dist/components/molecules/proSwitch/AvatarToggleGroup.stories.js +0 -328
- package/dist/components/molecules/proSwitch/ProSwitch.stories.d.ts +0 -9
- package/dist/components/molecules/proSwitch/ProSwitch.stories.js +0 -152
- package/dist/components/molecules/proSwitch/ProSwitchModal.stories.d.ts +0 -62
- package/dist/components/molecules/proSwitch/ProSwitchModal.stories.js +0 -269
- package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.d.ts +0 -17
- package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.js +0 -48
- package/dist/components/molecules/radioForm/RadioForm.stories.d.ts +0 -37
- package/dist/components/molecules/radioForm/RadioForm.stories.js +0 -75
- package/dist/components/molecules/rangeSlider/RangeSlider.stories.d.ts +0 -96
- package/dist/components/molecules/rangeSlider/RangeSlider.stories.js +0 -162
- package/dist/components/molecules/section/Section.stories.d.ts +0 -42
- package/dist/components/molecules/section/Section.stories.js +0 -162
- package/dist/components/molecules/segmentedControl/segmentedControl.stories.d.ts +0 -70
- package/dist/components/molecules/segmentedControl/segmentedControl.stories.js +0 -185
- package/dist/components/molecules/selectForm/SelectForm.stories.d.ts +0 -79
- package/dist/components/molecules/selectForm/SelectForm.stories.js +0 -113
- package/dist/components/molecules/stepper/Stepper.stories.d.ts +0 -62
- package/dist/components/molecules/stepper/Stepper.stories.js +0 -215
- package/dist/stories/Header.d.ts +0 -13
- package/dist/stories/Header.js +0 -20
- package/dist/stories/Header.stories.d.ts +0 -18
- package/dist/stories/Header.stories.js +0 -26
- package/dist/stories/Page.d.ts +0 -3
- package/dist/stories/Page.js +0 -37
- package/dist/stories/Page.stories.d.ts +0 -12
- package/dist/stories/Page.stories.js +0 -76
|
@@ -1,36 +0,0 @@
|
|
|
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";
|
|
@@ -1,56 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,79 +0,0 @@
|
|
|
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";
|
|
@@ -1,95 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export namespace ActionsData {
|
|
2
|
-
namespace onClick {
|
|
3
|
-
let action: string;
|
|
4
|
-
}
|
|
5
|
-
}
|
|
6
|
-
declare namespace _default {
|
|
7
|
-
export let title: string;
|
|
8
|
-
export { IconButton as component };
|
|
9
|
-
export let tags: string[];
|
|
10
|
-
export let excludeStories: RegExp;
|
|
11
|
-
export namespace args { }
|
|
12
|
-
export namespace argTypes {
|
|
13
|
-
export namespace style {
|
|
14
|
-
namespace control {
|
|
15
|
-
let type: string;
|
|
16
|
-
let options: string[];
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export namespace iconName {
|
|
20
|
-
export namespace control_1 {
|
|
21
|
-
let type_1: string;
|
|
22
|
-
export { type_1 as type };
|
|
23
|
-
}
|
|
24
|
-
export { control_1 as control };
|
|
25
|
-
}
|
|
26
|
-
export namespace onClick_1 {
|
|
27
|
-
let action_1: string;
|
|
28
|
-
export { action_1 as action };
|
|
29
|
-
}
|
|
30
|
-
export { onClick_1 as onClick };
|
|
31
|
-
}
|
|
32
|
-
export namespace parameters {
|
|
33
|
-
namespace backgrounds {
|
|
34
|
-
let _default: string;
|
|
35
|
-
export { _default as default };
|
|
36
|
-
export let values: {
|
|
37
|
-
name: string;
|
|
38
|
-
value: string;
|
|
39
|
-
}[];
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
export default _default;
|
|
44
|
-
export const SmallFilled: any;
|
|
45
|
-
export const LargeFilled: any;
|
|
46
|
-
export const MediumOutline: any;
|
|
47
|
-
export const MediumOutlineDocument: any;
|
|
48
|
-
export const MediumOutlineArrow: any;
|
|
49
|
-
export const IconOnly: any;
|
|
50
|
-
export const IconCircle: any;
|
|
51
|
-
import IconButton from "./IconButton";
|
|
@@ -1,100 +0,0 @@
|
|
|
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 IconButton from "./IconButton";
|
|
14
|
-
import "../../../styles/global.css";
|
|
15
|
-
export var ActionsData = {
|
|
16
|
-
onClick: { action: "clicked" },
|
|
17
|
-
};
|
|
18
|
-
export default {
|
|
19
|
-
title: "Components/Atoms/Buttons/IconButton",
|
|
20
|
-
component: IconButton,
|
|
21
|
-
tags: ["autodocs"],
|
|
22
|
-
excludeStories: /.*Data$/,
|
|
23
|
-
args: __assign({}, ActionsData),
|
|
24
|
-
argTypes: {
|
|
25
|
-
style: {
|
|
26
|
-
control: {
|
|
27
|
-
type: "select",
|
|
28
|
-
options: [
|
|
29
|
-
"smallFilled",
|
|
30
|
-
"largeFilled",
|
|
31
|
-
"mediumOutline",
|
|
32
|
-
"iconOnly",
|
|
33
|
-
"iconCircle",
|
|
34
|
-
],
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
iconName: {
|
|
38
|
-
control: {
|
|
39
|
-
type: "text",
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
onClick: {
|
|
43
|
-
action: "clicked",
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
parameters: {
|
|
47
|
-
backgrounds: {
|
|
48
|
-
default: "light",
|
|
49
|
-
values: [
|
|
50
|
-
{ name: "light", value: "#ffffff" },
|
|
51
|
-
{ name: "grey", value: "#728ea7" },
|
|
52
|
-
{ name: "figma", value: "#404040" },
|
|
53
|
-
{ name: "dark", value: "#171e25" },
|
|
54
|
-
],
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
var Template = function (args) { return React.createElement(IconButton, __assign({}, args)); };
|
|
59
|
-
export var SmallFilled = Template.bind({});
|
|
60
|
-
SmallFilled.args = {
|
|
61
|
-
style: "smallFilled",
|
|
62
|
-
iconName: "allaw-icon-document",
|
|
63
|
-
onClick: function () { return console.log("SmallFilled button clicked"); },
|
|
64
|
-
};
|
|
65
|
-
export var LargeFilled = Template.bind({});
|
|
66
|
-
LargeFilled.args = {
|
|
67
|
-
style: "largeFilled",
|
|
68
|
-
iconName: "allaw-icon-document",
|
|
69
|
-
onClick: function () { return console.log("LargeFilled button clicked"); },
|
|
70
|
-
};
|
|
71
|
-
export var MediumOutline = Template.bind({});
|
|
72
|
-
MediumOutline.args = {
|
|
73
|
-
style: "mediumOutline",
|
|
74
|
-
iconName: "allaw-icon-calendar",
|
|
75
|
-
onClick: function () { return console.log("MediumOutline button clicked"); },
|
|
76
|
-
};
|
|
77
|
-
export var MediumOutlineDocument = Template.bind({});
|
|
78
|
-
MediumOutlineDocument.args = {
|
|
79
|
-
style: "mediumOutline",
|
|
80
|
-
iconName: "allaw-icon-document",
|
|
81
|
-
onClick: function () { return console.log("MediumOutline document button clicked"); },
|
|
82
|
-
};
|
|
83
|
-
export var MediumOutlineArrow = Template.bind({});
|
|
84
|
-
MediumOutlineArrow.args = {
|
|
85
|
-
style: "mediumOutline",
|
|
86
|
-
iconName: "allaw-icon-arrow-left",
|
|
87
|
-
onClick: function () { return console.log("MediumOutline arrow button clicked"); },
|
|
88
|
-
};
|
|
89
|
-
export var IconOnly = Template.bind({});
|
|
90
|
-
IconOnly.args = {
|
|
91
|
-
style: "iconOnly",
|
|
92
|
-
iconName: "allaw-icon-user",
|
|
93
|
-
onClick: function () { return console.log("IconOnly button clicked"); },
|
|
94
|
-
};
|
|
95
|
-
export var IconCircle = Template.bind({});
|
|
96
|
-
IconCircle.args = {
|
|
97
|
-
style: "iconCircle",
|
|
98
|
-
iconName: "allaw-icon-arrow-left",
|
|
99
|
-
onClick: function () { return console.log("IconCircle button clicked"); },
|
|
100
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { InboxButton as component };
|
|
4
|
-
export let tags: string[];
|
|
5
|
-
export namespace argTypes {
|
|
6
|
-
namespace labels {
|
|
7
|
-
let control: string;
|
|
8
|
-
let description: string;
|
|
9
|
-
}
|
|
10
|
-
namespace count {
|
|
11
|
-
export namespace control_1 {
|
|
12
|
-
let type: string;
|
|
13
|
-
}
|
|
14
|
-
export { control_1 as control };
|
|
15
|
-
let description_1: string;
|
|
16
|
-
export { description_1 as description };
|
|
17
|
-
export let defaultValue: number;
|
|
18
|
-
}
|
|
19
|
-
namespace scheme {
|
|
20
|
-
export namespace control_2 {
|
|
21
|
-
let type_1: string;
|
|
22
|
-
export { type_1 as type };
|
|
23
|
-
export let options: string[];
|
|
24
|
-
}
|
|
25
|
-
export { control_2 as control };
|
|
26
|
-
let description_2: string;
|
|
27
|
-
export { description_2 as description };
|
|
28
|
-
}
|
|
29
|
-
namespace iconClassName {
|
|
30
|
-
export namespace control_3 {
|
|
31
|
-
let type_2: string;
|
|
32
|
-
export { type_2 as type };
|
|
33
|
-
}
|
|
34
|
-
export { control_3 as control };
|
|
35
|
-
let description_3: string;
|
|
36
|
-
export { description_3 as description };
|
|
37
|
-
}
|
|
38
|
-
namespace iconAriaLabel {
|
|
39
|
-
export namespace control_4 {
|
|
40
|
-
let type_3: string;
|
|
41
|
-
export { type_3 as type };
|
|
42
|
-
}
|
|
43
|
-
export { control_4 as control };
|
|
44
|
-
let description_4: string;
|
|
45
|
-
export { description_4 as description };
|
|
46
|
-
}
|
|
47
|
-
namespace onClick {
|
|
48
|
-
let action: string;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
export namespace parameters {
|
|
52
|
-
namespace docs {
|
|
53
|
-
export namespace description_5 {
|
|
54
|
-
let component: string;
|
|
55
|
-
}
|
|
56
|
-
export { description_5 as description };
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
export default _default;
|
|
61
|
-
export const NotificationZero: any;
|
|
62
|
-
export const NotificationOne: any;
|
|
63
|
-
export const NotificationMultiple: any;
|
|
64
|
-
export const QualificationZero: any;
|
|
65
|
-
export const QualificationOne: any;
|
|
66
|
-
export const QualificationMultiple: any;
|
|
67
|
-
export const SansIcone: any;
|
|
68
|
-
import InboxButton from "./InboxButton";
|
|
@@ -1,143 +0,0 @@
|
|
|
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 "../../../styles/global.css";
|
|
14
|
-
import InboxButton from "./InboxButton";
|
|
15
|
-
export default {
|
|
16
|
-
title: "Components/Atoms/Buttons/InboxButton",
|
|
17
|
-
component: InboxButton,
|
|
18
|
-
tags: ["autodocs"],
|
|
19
|
-
argTypes: {
|
|
20
|
-
labels: {
|
|
21
|
-
control: "object",
|
|
22
|
-
description: "Textes à afficher selon le count",
|
|
23
|
-
},
|
|
24
|
-
count: {
|
|
25
|
-
control: { type: "number" },
|
|
26
|
-
description: "Nombre d'éléments à traiter",
|
|
27
|
-
defaultValue: 0,
|
|
28
|
-
},
|
|
29
|
-
scheme: {
|
|
30
|
-
control: { type: "select", options: ["notification", "qualification"] },
|
|
31
|
-
description: "Thème visuel du bouton",
|
|
32
|
-
},
|
|
33
|
-
iconClassName: {
|
|
34
|
-
control: { type: "text" },
|
|
35
|
-
description: "Classe CSS de l'icône à afficher",
|
|
36
|
-
},
|
|
37
|
-
iconAriaLabel: {
|
|
38
|
-
control: { type: "text" },
|
|
39
|
-
description: "Label accessible pour l'icône",
|
|
40
|
-
},
|
|
41
|
-
onClick: { action: "clicked" },
|
|
42
|
-
},
|
|
43
|
-
parameters: {
|
|
44
|
-
docs: {
|
|
45
|
-
description: {
|
|
46
|
-
component: "Bouton avec compteur dynamique et thèmes visuels configurables pour notifications et qualifications.",
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
var Template = function (args) { return (React.createElement("div", { style: { padding: "20px", maxWidth: "300px" } },
|
|
52
|
-
React.createElement(InboxButton, __assign({}, args)))); };
|
|
53
|
-
// ===========================================
|
|
54
|
-
// NOTIFICATION SCHEME
|
|
55
|
-
// ===========================================
|
|
56
|
-
export var NotificationZero = Template.bind({});
|
|
57
|
-
NotificationZero.args = {
|
|
58
|
-
count: 0,
|
|
59
|
-
scheme: "notification",
|
|
60
|
-
labels: {
|
|
61
|
-
none: "Aucune notification",
|
|
62
|
-
one: "1 notification",
|
|
63
|
-
multiple: "{{count}} notifications",
|
|
64
|
-
},
|
|
65
|
-
iconClassName: "allaw-icon-inbox",
|
|
66
|
-
iconAriaLabel: "Notifications",
|
|
67
|
-
};
|
|
68
|
-
export var NotificationOne = Template.bind({});
|
|
69
|
-
NotificationOne.args = {
|
|
70
|
-
count: 1,
|
|
71
|
-
scheme: "notification",
|
|
72
|
-
labels: {
|
|
73
|
-
none: "Aucune notification",
|
|
74
|
-
one: "1 notification",
|
|
75
|
-
multiple: "{{count}} notifications",
|
|
76
|
-
},
|
|
77
|
-
iconClassName: "allaw-icon-inbox",
|
|
78
|
-
iconAriaLabel: "Notifications",
|
|
79
|
-
};
|
|
80
|
-
export var NotificationMultiple = Template.bind({});
|
|
81
|
-
NotificationMultiple.args = {
|
|
82
|
-
count: 5,
|
|
83
|
-
scheme: "notification",
|
|
84
|
-
labels: {
|
|
85
|
-
none: "Aucune notification",
|
|
86
|
-
one: "1 notification",
|
|
87
|
-
multiple: "{{count}} notifications",
|
|
88
|
-
},
|
|
89
|
-
iconClassName: "allaw-icon-inbox",
|
|
90
|
-
iconAriaLabel: "Notifications",
|
|
91
|
-
};
|
|
92
|
-
// ===========================================
|
|
93
|
-
// QUALIFICATION SCHEME
|
|
94
|
-
// ===========================================
|
|
95
|
-
export var QualificationZero = Template.bind({});
|
|
96
|
-
QualificationZero.args = {
|
|
97
|
-
count: 0,
|
|
98
|
-
scheme: "qualification",
|
|
99
|
-
labels: {
|
|
100
|
-
none: "Aucune qualification",
|
|
101
|
-
one: "1 contact à qualifier",
|
|
102
|
-
multiple: "{{count}} contacts à qualifier",
|
|
103
|
-
},
|
|
104
|
-
iconClassName: "allaw-icon-check-circle",
|
|
105
|
-
iconAriaLabel: "Qualification",
|
|
106
|
-
};
|
|
107
|
-
export var QualificationOne = Template.bind({});
|
|
108
|
-
QualificationOne.args = {
|
|
109
|
-
count: 1,
|
|
110
|
-
scheme: "qualification",
|
|
111
|
-
labels: {
|
|
112
|
-
none: "Aucune qualification",
|
|
113
|
-
one: "1 contact à qualifier",
|
|
114
|
-
multiple: "{{count}} contacts à qualifier",
|
|
115
|
-
},
|
|
116
|
-
iconClassName: "allaw-icon-check-circle",
|
|
117
|
-
iconAriaLabel: "Qualification",
|
|
118
|
-
};
|
|
119
|
-
export var QualificationMultiple = Template.bind({});
|
|
120
|
-
QualificationMultiple.args = {
|
|
121
|
-
count: 3,
|
|
122
|
-
scheme: "qualification",
|
|
123
|
-
labels: {
|
|
124
|
-
none: "Aucune qualification",
|
|
125
|
-
one: "1 contact à qualifier",
|
|
126
|
-
multiple: "{{count}} contacts à qualifier",
|
|
127
|
-
},
|
|
128
|
-
iconClassName: "allaw-icon-check-circle",
|
|
129
|
-
iconAriaLabel: "Qualification",
|
|
130
|
-
};
|
|
131
|
-
// ===========================================
|
|
132
|
-
// SANS ICÔNE
|
|
133
|
-
// ===========================================
|
|
134
|
-
export var SansIcone = Template.bind({});
|
|
135
|
-
SansIcone.args = {
|
|
136
|
-
count: 2,
|
|
137
|
-
scheme: "qualification",
|
|
138
|
-
labels: {
|
|
139
|
-
none: "Aucun élément",
|
|
140
|
-
one: "1 élément",
|
|
141
|
-
multiple: "{{count}} éléments",
|
|
142
|
-
},
|
|
143
|
-
};
|