allaw-ui 1.0.103 → 1.0.106
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/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.stories.d.ts +48 -0
- package/dist/components/atoms/buttons/IconButton.stories.js +76 -0
- package/dist/components/atoms/buttons/OAuthProviderButton.stories.d.ts +50 -0
- package/dist/components/atoms/buttons/OAuthProviderButton.stories.js +88 -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.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.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.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.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.stories.d.ts +94 -0
- package/dist/components/atoms/selects/ComboBox.stories.js +122 -0
- 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/tags/AppointementStatusTag.stories.d.ts +17 -0
- package/dist/components/atoms/tags/AppointementStatusTag.stories.js +70 -0
- 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.stories.d.ts +84 -0
- package/dist/components/atoms/tags/OtherStatusTag.stories.js +142 -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.stories.d.ts +45 -0
- package/dist/components/atoms/typography/Heading.stories.js +90 -0
- package/dist/components/atoms/typography/Paragraph.stories.d.ts +53 -0
- package/dist/components/atoms/typography/Paragraph.stories.js +96 -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.stories.d.ts +52 -0
- package/dist/components/atoms/typography/TinyInfo.stories.js +97 -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/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.stories.d.ts +11 -0
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.js +59 -0
- 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/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.stories.d.ts +74 -0
- package/dist/components/molecules/contactCard/ContactCard.stories.js +77 -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/datepickerForm/DatepickerForm.stories.d.ts +164 -0
- package/dist/components/molecules/datepickerForm/DatepickerForm.stories.js +113 -0
- package/dist/components/molecules/documentCard/DocumentCard.js +1 -1
- package/dist/components/molecules/documentCard/DocumentCard.stories.d.ts +65 -0
- package/dist/components/molecules/documentCard/DocumentCard.stories.js +87 -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.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.stories.d.ts +42 -0
- package/dist/components/molecules/stepper/Stepper.stories.js +132 -0
- package/package.json +16 -14
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
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 IconOnly: any;
|
|
48
|
+
import IconButton from "./IconButton";
|