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,88 +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 ProgressBar from "./ProgressBar";
|
|
14
|
-
import "../../../styles/global.css";
|
|
15
|
-
import "../../../styles/icons.css";
|
|
16
|
-
export var ActionsData = {};
|
|
17
|
-
export default {
|
|
18
|
-
title: "Components/Atoms/ProgressBars/ProgressBar",
|
|
19
|
-
component: ProgressBar,
|
|
20
|
-
tags: ["autodocs"],
|
|
21
|
-
excludeStories: /.*Data$/,
|
|
22
|
-
args: __assign(__assign({}, ActionsData), { steps: 5, currentStep: 2, startIcon: true, endIcon: true, showProgressBar: true, barColor: "blue" }),
|
|
23
|
-
argTypes: {
|
|
24
|
-
steps: {
|
|
25
|
-
control: {
|
|
26
|
-
type: "number",
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
currentStep: {
|
|
30
|
-
control: {
|
|
31
|
-
type: "number",
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
startIcon: {
|
|
35
|
-
control: {
|
|
36
|
-
type: "boolean",
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
endIcon: {
|
|
40
|
-
control: {
|
|
41
|
-
type: "boolean",
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
showProgressBar: {
|
|
45
|
-
control: {
|
|
46
|
-
type: "boolean",
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
barColor: {
|
|
50
|
-
control: {
|
|
51
|
-
type: "select",
|
|
52
|
-
options: ["blue", "red", "green", "grey"],
|
|
53
|
-
},
|
|
54
|
-
description: "Couleur de la barre de progression",
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
parameters: {
|
|
58
|
-
backgrounds: {
|
|
59
|
-
default: "light",
|
|
60
|
-
values: [
|
|
61
|
-
{ name: "light", value: "#ffffff" },
|
|
62
|
-
{ name: "grey", value: "#728ea7" },
|
|
63
|
-
{ name: "figma", value: "#404040" },
|
|
64
|
-
{ name: "dark", value: "#171e25" },
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
var Template = function (args) { return React.createElement(ProgressBar, __assign({}, args)); };
|
|
70
|
-
export var Default = Template.bind({});
|
|
71
|
-
Default.args = {
|
|
72
|
-
steps: 5,
|
|
73
|
-
currentStep: 2,
|
|
74
|
-
startIcon: true,
|
|
75
|
-
endIcon: true,
|
|
76
|
-
showProgressBar: true,
|
|
77
|
-
barColor: "blue",
|
|
78
|
-
};
|
|
79
|
-
export var FirstStep = Template.bind({});
|
|
80
|
-
FirstStep.args = __assign(__assign({}, Default.args), { currentStep: 1 });
|
|
81
|
-
export var Hidden = Template.bind({});
|
|
82
|
-
Hidden.args = __assign(__assign({}, Default.args), { showProgressBar: false });
|
|
83
|
-
export var RedProgress = Template.bind({});
|
|
84
|
-
RedProgress.args = __assign(__assign({}, Default.args), { barColor: "red" });
|
|
85
|
-
export var GreenProgress = Template.bind({});
|
|
86
|
-
GreenProgress.args = __assign(__assign({}, Default.args), { barColor: "green" });
|
|
87
|
-
export var GreyProgress = Template.bind({});
|
|
88
|
-
GreyProgress.args = __assign(__assign({}, Default.args), { barColor: "grey" });
|
|
@@ -1,38 +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 { RadioButton as component };
|
|
9
|
-
export let tags: string[];
|
|
10
|
-
export let excludeStories: RegExp;
|
|
11
|
-
export namespace args { }
|
|
12
|
-
export namespace argTypes {
|
|
13
|
-
namespace style {
|
|
14
|
-
namespace control {
|
|
15
|
-
let type: string;
|
|
16
|
-
let options: string[];
|
|
17
|
-
}
|
|
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 UserDefault: any;
|
|
33
|
-
export const UserActive: any;
|
|
34
|
-
export const HybrideDefault: any;
|
|
35
|
-
export const HybrideActive: any;
|
|
36
|
-
export const ModernDefault: any;
|
|
37
|
-
export const ModernActive: any;
|
|
38
|
-
import RadioButton from "./RadioButton";
|
|
@@ -1,87 +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, { useState } from "react";
|
|
13
|
-
import RadioButton from "./RadioButton";
|
|
14
|
-
import "../../../styles/global.css";
|
|
15
|
-
export var ActionsData = {
|
|
16
|
-
onClick: { action: "clicked" },
|
|
17
|
-
};
|
|
18
|
-
export default {
|
|
19
|
-
title: "Components/Atoms/Radios/RadioButton",
|
|
20
|
-
component: RadioButton,
|
|
21
|
-
tags: ["autodocs"],
|
|
22
|
-
excludeStories: /.*Data$/,
|
|
23
|
-
args: __assign({}, ActionsData),
|
|
24
|
-
argTypes: {
|
|
25
|
-
style: {
|
|
26
|
-
control: {
|
|
27
|
-
type: "radio",
|
|
28
|
-
options: ["user", "hybride", "modern"],
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
parameters: {
|
|
33
|
-
backgrounds: {
|
|
34
|
-
default: "light",
|
|
35
|
-
values: [
|
|
36
|
-
{ name: "light", value: "#ffffff" },
|
|
37
|
-
{ name: "grey", value: "#728ea7" },
|
|
38
|
-
{ name: "figma", value: "#404040" },
|
|
39
|
-
{ name: "dark", value: "#171e25" },
|
|
40
|
-
],
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
var Template = function (args) {
|
|
45
|
-
var _a = useState(false), isActive = _a[0], setIsActive = _a[1];
|
|
46
|
-
var handleClick = function () {
|
|
47
|
-
setIsActive(!isActive);
|
|
48
|
-
args.onClick();
|
|
49
|
-
};
|
|
50
|
-
return React.createElement(RadioButton, __assign({}, args, { isActive: isActive, onClick: handleClick }));
|
|
51
|
-
};
|
|
52
|
-
export var UserDefault = Template.bind({});
|
|
53
|
-
UserDefault.args = {
|
|
54
|
-
label: "Option 2",
|
|
55
|
-
style: "user",
|
|
56
|
-
isActive: false,
|
|
57
|
-
};
|
|
58
|
-
export var UserActive = Template.bind({});
|
|
59
|
-
UserActive.args = {
|
|
60
|
-
label: "Option 2",
|
|
61
|
-
style: "user",
|
|
62
|
-
isActive: true,
|
|
63
|
-
};
|
|
64
|
-
export var HybrideDefault = Template.bind({});
|
|
65
|
-
HybrideDefault.args = {
|
|
66
|
-
label: "Option 2",
|
|
67
|
-
style: "hybride",
|
|
68
|
-
isActive: false,
|
|
69
|
-
};
|
|
70
|
-
export var HybrideActive = Template.bind({});
|
|
71
|
-
HybrideActive.args = {
|
|
72
|
-
label: "Option 2",
|
|
73
|
-
style: "hybride",
|
|
74
|
-
isActive: true,
|
|
75
|
-
};
|
|
76
|
-
export var ModernDefault = Template.bind({});
|
|
77
|
-
ModernDefault.args = {
|
|
78
|
-
label: "Option moderne",
|
|
79
|
-
style: "modern",
|
|
80
|
-
isActive: false,
|
|
81
|
-
};
|
|
82
|
-
export var ModernActive = Template.bind({});
|
|
83
|
-
ModernActive.args = {
|
|
84
|
-
label: "Option moderne",
|
|
85
|
-
style: "modern",
|
|
86
|
-
isActive: true,
|
|
87
|
-
};
|
|
@@ -1,92 +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 { SelectCard as component };
|
|
9
|
-
export let tags: string[];
|
|
10
|
-
export let excludeStories: RegExp;
|
|
11
|
-
export namespace args { }
|
|
12
|
-
export namespace argTypes {
|
|
13
|
-
namespace iconName {
|
|
14
|
-
let control: string;
|
|
15
|
-
let description: string;
|
|
16
|
-
}
|
|
17
|
-
namespace iconUrl {
|
|
18
|
-
let control_1: string;
|
|
19
|
-
export { control_1 as control };
|
|
20
|
-
let description_1: string;
|
|
21
|
-
export { description_1 as description };
|
|
22
|
-
}
|
|
23
|
-
namespace label {
|
|
24
|
-
let control_2: string;
|
|
25
|
-
export { control_2 as control };
|
|
26
|
-
let description_2: string;
|
|
27
|
-
export { description_2 as description };
|
|
28
|
-
}
|
|
29
|
-
namespace isActive {
|
|
30
|
-
let control_3: string;
|
|
31
|
-
export { control_3 as control };
|
|
32
|
-
let description_3: string;
|
|
33
|
-
export { description_3 as description };
|
|
34
|
-
}
|
|
35
|
-
namespace isDisabled {
|
|
36
|
-
let control_4: string;
|
|
37
|
-
export { control_4 as control };
|
|
38
|
-
let description_4: string;
|
|
39
|
-
export { description_4 as description };
|
|
40
|
-
}
|
|
41
|
-
namespace size {
|
|
42
|
-
export namespace control_5 {
|
|
43
|
-
let type: string;
|
|
44
|
-
let options: string[];
|
|
45
|
-
}
|
|
46
|
-
export { control_5 as control };
|
|
47
|
-
let description_5: string;
|
|
48
|
-
export { description_5 as description };
|
|
49
|
-
}
|
|
50
|
-
namespace maxWidth {
|
|
51
|
-
let control_6: string;
|
|
52
|
-
export { control_6 as control };
|
|
53
|
-
let description_6: string;
|
|
54
|
-
export { description_6 as description };
|
|
55
|
-
}
|
|
56
|
-
namespace imageVerticalOffset {
|
|
57
|
-
let control_7: string;
|
|
58
|
-
export { control_7 as control };
|
|
59
|
-
let description_7: string;
|
|
60
|
-
export { description_7 as description };
|
|
61
|
-
}
|
|
62
|
-
namespace responsiveConfig {
|
|
63
|
-
let control_8: string;
|
|
64
|
-
export { control_8 as control };
|
|
65
|
-
let description_8: string;
|
|
66
|
-
export { description_8 as description };
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
export namespace parameters {
|
|
70
|
-
namespace backgrounds {
|
|
71
|
-
let _default: string;
|
|
72
|
-
export { _default as default };
|
|
73
|
-
export let values: {
|
|
74
|
-
name: string;
|
|
75
|
-
value: string;
|
|
76
|
-
}[];
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
export default _default;
|
|
81
|
-
export const Default: any;
|
|
82
|
-
export const Active: any;
|
|
83
|
-
export const Disabled: any;
|
|
84
|
-
export const Small: any;
|
|
85
|
-
export const Large: any;
|
|
86
|
-
export const WithImageUrl: any;
|
|
87
|
-
export const WithLongText: any;
|
|
88
|
-
export const WithCustomMaxWidth: any;
|
|
89
|
-
export const WithImageOffset: any;
|
|
90
|
-
export const WithNegativeImageOffset: any;
|
|
91
|
-
export const WithResponsiveConfig: any;
|
|
92
|
-
import SelectCard from "./SelectCard";
|
|
@@ -1,192 +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, { useState } from "react";
|
|
13
|
-
import SelectCard from "./SelectCard";
|
|
14
|
-
export var ActionsData = {
|
|
15
|
-
onClick: { action: "clicked" },
|
|
16
|
-
};
|
|
17
|
-
export default {
|
|
18
|
-
title: "Components/Atoms/Radios/SelectCard",
|
|
19
|
-
component: SelectCard,
|
|
20
|
-
tags: ["autodocs"],
|
|
21
|
-
excludeStories: /.*Data$/,
|
|
22
|
-
args: __assign({}, ActionsData),
|
|
23
|
-
argTypes: {
|
|
24
|
-
iconName: {
|
|
25
|
-
control: "text",
|
|
26
|
-
description: "Nom de l'icône à afficher (utilise la font allaw-font)",
|
|
27
|
-
},
|
|
28
|
-
iconUrl: {
|
|
29
|
-
control: "text",
|
|
30
|
-
description: "URL de l'image à afficher (alternative à iconName)",
|
|
31
|
-
},
|
|
32
|
-
label: {
|
|
33
|
-
control: "text",
|
|
34
|
-
description: "Texte du bouton",
|
|
35
|
-
},
|
|
36
|
-
isActive: {
|
|
37
|
-
control: "boolean",
|
|
38
|
-
description: "État actif du bouton",
|
|
39
|
-
},
|
|
40
|
-
isDisabled: {
|
|
41
|
-
control: "boolean",
|
|
42
|
-
description: "État désactivé du bouton",
|
|
43
|
-
},
|
|
44
|
-
size: {
|
|
45
|
-
control: {
|
|
46
|
-
type: "select",
|
|
47
|
-
options: ["small", "medium", "large"],
|
|
48
|
-
},
|
|
49
|
-
description: "Taille du bouton",
|
|
50
|
-
},
|
|
51
|
-
maxWidth: {
|
|
52
|
-
control: "number",
|
|
53
|
-
description: "Largeur maximale du bouton en pixels",
|
|
54
|
-
},
|
|
55
|
-
imageVerticalOffset: {
|
|
56
|
-
control: "number",
|
|
57
|
-
description: "Décalage vertical de l'icône en pixels (positif = vers le bas, négatif = vers le haut)",
|
|
58
|
-
},
|
|
59
|
-
responsiveConfig: {
|
|
60
|
-
control: "object",
|
|
61
|
-
description: "Configuration responsive du bouton",
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
parameters: {
|
|
65
|
-
backgrounds: {
|
|
66
|
-
default: "light",
|
|
67
|
-
values: [
|
|
68
|
-
{ name: "light", value: "#ffffff" },
|
|
69
|
-
{ name: "grey", value: "#728ea7" },
|
|
70
|
-
{ name: "figma", value: "#404040" },
|
|
71
|
-
{ name: "dark", value: "#171e25" },
|
|
72
|
-
],
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
var Template = function (args) {
|
|
77
|
-
var _a = useState(args.isActive || false), isActive = _a[0], setIsActive = _a[1];
|
|
78
|
-
var handleClick = function () {
|
|
79
|
-
if (!args.isDisabled) {
|
|
80
|
-
setIsActive(!isActive);
|
|
81
|
-
args.onClick();
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
return React.createElement(SelectCard, __assign({}, args, { isActive: isActive, onClick: handleClick }));
|
|
85
|
-
};
|
|
86
|
-
export var Default = Template.bind({});
|
|
87
|
-
Default.args = {
|
|
88
|
-
label: "Utiliser la convention type d'allaw",
|
|
89
|
-
iconName: "allaw-icon-upload-file",
|
|
90
|
-
isActive: false,
|
|
91
|
-
isDisabled: false,
|
|
92
|
-
size: "medium",
|
|
93
|
-
};
|
|
94
|
-
export var Active = Template.bind({});
|
|
95
|
-
Active.args = {
|
|
96
|
-
label: "Choix 1",
|
|
97
|
-
iconName: "allaw-icon-upload-file",
|
|
98
|
-
isActive: true,
|
|
99
|
-
isDisabled: false,
|
|
100
|
-
size: "medium",
|
|
101
|
-
};
|
|
102
|
-
export var Disabled = Template.bind({});
|
|
103
|
-
Disabled.args = {
|
|
104
|
-
label: "Choix 1",
|
|
105
|
-
iconName: "allaw-icon-upload-file",
|
|
106
|
-
isActive: false,
|
|
107
|
-
isDisabled: true,
|
|
108
|
-
size: "medium",
|
|
109
|
-
};
|
|
110
|
-
export var Small = Template.bind({});
|
|
111
|
-
Small.args = {
|
|
112
|
-
label: "Choix 1",
|
|
113
|
-
iconName: "allaw-icon-upload-file",
|
|
114
|
-
isActive: false,
|
|
115
|
-
isDisabled: false,
|
|
116
|
-
size: "small",
|
|
117
|
-
};
|
|
118
|
-
export var Large = Template.bind({});
|
|
119
|
-
Large.args = {
|
|
120
|
-
label: "Choix 1",
|
|
121
|
-
iconName: "allaw-icon-upload-file",
|
|
122
|
-
isActive: false,
|
|
123
|
-
isDisabled: false,
|
|
124
|
-
size: "large",
|
|
125
|
-
};
|
|
126
|
-
export var WithImageUrl = Template.bind({});
|
|
127
|
-
WithImageUrl.args = {
|
|
128
|
-
label: "Choix 1",
|
|
129
|
-
iconUrl: "https://www.svgrepo.com/show/428478/file-choose.svg",
|
|
130
|
-
isActive: false,
|
|
131
|
-
isDisabled: false,
|
|
132
|
-
size: "medium",
|
|
133
|
-
};
|
|
134
|
-
export var WithLongText = Template.bind({});
|
|
135
|
-
WithLongText.args = {
|
|
136
|
-
label: "Texte très long qui devrait être tronqué avec des points de suspension",
|
|
137
|
-
iconUrl: "https://www.svgrepo.com/show/428478/file-choose.svg",
|
|
138
|
-
isActive: false,
|
|
139
|
-
isDisabled: false,
|
|
140
|
-
size: "medium",
|
|
141
|
-
};
|
|
142
|
-
export var WithCustomMaxWidth = Template.bind({});
|
|
143
|
-
WithCustomMaxWidth.args = {
|
|
144
|
-
label: "Bouton avec largeur maximale personnalisée",
|
|
145
|
-
iconName: "allaw-icon-upload-file",
|
|
146
|
-
isActive: false,
|
|
147
|
-
isDisabled: false,
|
|
148
|
-
size: "medium",
|
|
149
|
-
maxWidth: 200,
|
|
150
|
-
};
|
|
151
|
-
export var WithImageOffset = Template.bind({});
|
|
152
|
-
WithImageOffset.args = {
|
|
153
|
-
label: "Icône décalée vers le bas",
|
|
154
|
-
iconName: "allaw-icon-upload-file",
|
|
155
|
-
isActive: false,
|
|
156
|
-
isDisabled: false,
|
|
157
|
-
size: "medium",
|
|
158
|
-
imageVerticalOffset: 10,
|
|
159
|
-
};
|
|
160
|
-
export var WithNegativeImageOffset = Template.bind({});
|
|
161
|
-
WithNegativeImageOffset.args = {
|
|
162
|
-
label: "Icône décalée vers le haut",
|
|
163
|
-
iconName: "allaw-icon-upload-file",
|
|
164
|
-
isActive: false,
|
|
165
|
-
isDisabled: false,
|
|
166
|
-
size: "medium",
|
|
167
|
-
imageVerticalOffset: -10,
|
|
168
|
-
};
|
|
169
|
-
export var WithResponsiveConfig = Template.bind({});
|
|
170
|
-
WithResponsiveConfig.args = {
|
|
171
|
-
label: "Version Desktop",
|
|
172
|
-
iconName: "allaw-icon-upload-file",
|
|
173
|
-
isActive: false,
|
|
174
|
-
isDisabled: false,
|
|
175
|
-
size: "medium",
|
|
176
|
-
responsiveConfig: {
|
|
177
|
-
768: {
|
|
178
|
-
label: "Version Tablette",
|
|
179
|
-
width: 100,
|
|
180
|
-
height: 100,
|
|
181
|
-
maxWidth: 150,
|
|
182
|
-
imageVerticalOffset: 5,
|
|
183
|
-
},
|
|
184
|
-
480: {
|
|
185
|
-
label: "Mobile",
|
|
186
|
-
width: 80,
|
|
187
|
-
height: 80,
|
|
188
|
-
maxWidth: 100,
|
|
189
|
-
imageVerticalOffset: -5,
|
|
190
|
-
},
|
|
191
|
-
},
|
|
192
|
-
};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
export const ActionsData: {};
|
|
2
|
-
declare namespace _default {
|
|
3
|
-
export let title: string;
|
|
4
|
-
export { ComboBox as component };
|
|
5
|
-
export let tags: string[];
|
|
6
|
-
export let excludeStories: RegExp;
|
|
7
|
-
export let args: {};
|
|
8
|
-
export namespace argTypes {
|
|
9
|
-
export namespace items {
|
|
10
|
-
namespace control {
|
|
11
|
-
let type: string;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export namespace placeholder {
|
|
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
|
-
export namespace isRequired {
|
|
22
|
-
export namespace control_2 {
|
|
23
|
-
let type_2: string;
|
|
24
|
-
export { type_2 as type };
|
|
25
|
-
}
|
|
26
|
-
export { control_2 as control };
|
|
27
|
-
}
|
|
28
|
-
export namespace selectedItem {
|
|
29
|
-
export namespace control_3 {
|
|
30
|
-
let type_3: string;
|
|
31
|
-
export { type_3 as type };
|
|
32
|
-
}
|
|
33
|
-
export { control_3 as control };
|
|
34
|
-
}
|
|
35
|
-
export namespace onChange {
|
|
36
|
-
namespace table {
|
|
37
|
-
let disable: boolean;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
export namespace width {
|
|
41
|
-
export namespace control_4 {
|
|
42
|
-
let type_4: string;
|
|
43
|
-
export { type_4 as type };
|
|
44
|
-
export let min: number;
|
|
45
|
-
export let max: number;
|
|
46
|
-
}
|
|
47
|
-
export { control_4 as control };
|
|
48
|
-
}
|
|
49
|
-
export namespace openOnMount {
|
|
50
|
-
export namespace control_5 {
|
|
51
|
-
let type_5: string;
|
|
52
|
-
export { type_5 as type };
|
|
53
|
-
}
|
|
54
|
-
export { control_5 as control };
|
|
55
|
-
}
|
|
56
|
-
export namespace title_1 {
|
|
57
|
-
export namespace control_6 {
|
|
58
|
-
let type_6: string;
|
|
59
|
-
export { type_6 as type };
|
|
60
|
-
}
|
|
61
|
-
export { control_6 as control };
|
|
62
|
-
}
|
|
63
|
-
export { title_1 as title };
|
|
64
|
-
export namespace titleStyle {
|
|
65
|
-
export let options: string[];
|
|
66
|
-
export namespace control_7 {
|
|
67
|
-
let type_7: string;
|
|
68
|
-
export { type_7 as type };
|
|
69
|
-
}
|
|
70
|
-
export { control_7 as control };
|
|
71
|
-
export let description: string;
|
|
72
|
-
export namespace table_1 {
|
|
73
|
-
export namespace type_8 {
|
|
74
|
-
let summary: string;
|
|
75
|
-
}
|
|
76
|
-
export { type_8 as type };
|
|
77
|
-
export namespace defaultValue {
|
|
78
|
-
let summary_1: string;
|
|
79
|
-
export { summary_1 as summary };
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
export { table_1 as table };
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
export namespace parameters {
|
|
86
|
-
namespace backgrounds {
|
|
87
|
-
let _default: string;
|
|
88
|
-
export { _default as default };
|
|
89
|
-
export let values: {
|
|
90
|
-
name: string;
|
|
91
|
-
value: string;
|
|
92
|
-
}[];
|
|
93
|
-
}
|
|
94
|
-
let layout: string;
|
|
95
|
-
namespace viewport {
|
|
96
|
-
namespace viewports {
|
|
97
|
-
namespace responsive {
|
|
98
|
-
let name: string;
|
|
99
|
-
namespace styles {
|
|
100
|
-
let height: string;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
let defaultViewport: string;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
export default _default;
|
|
109
|
-
export const Default: any;
|
|
110
|
-
export const Pressed: any;
|
|
111
|
-
export const Required: any;
|
|
112
|
-
export const CustomWidth: any;
|
|
113
|
-
export const OpenOnMount: any;
|
|
114
|
-
export const TitleMedium: any;
|
|
115
|
-
export const TitleBold: any;
|
|
116
|
-
import ComboBox from "./ComboBox";
|