@alveole/components 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/A/A.stories.d.ts +1 -0
- package/dist/core/A/A.stories.d.ts.map +1 -1
- package/dist/core/A/A.stories.js +2 -1
- package/dist/core/Box/Box.stories.d.ts +1 -0
- package/dist/core/Box/Box.stories.d.ts.map +1 -1
- package/dist/core/Box/Box.stories.js +2 -1
- package/dist/core/Code/Code.d.ts +5 -0
- package/dist/core/Code/Code.d.ts.map +1 -0
- package/dist/core/Code/Code.js +9 -0
- package/dist/core/Code/Code.stories.d.ts +24 -0
- package/dist/core/Code/Code.stories.d.ts.map +1 -0
- package/dist/core/Code/Code.stories.js +16 -0
- package/dist/core/Code/Code.stories.sources.d.ts +8 -0
- package/dist/core/Code/Code.stories.sources.d.ts.map +1 -0
- package/dist/core/Code/Code.stories.sources.js +8 -0
- package/dist/core/Code/Code.styles.d.ts +13 -0
- package/dist/core/Code/Code.styles.d.ts.map +1 -0
- package/dist/core/Code/Code.styles.js +13 -0
- package/dist/core/Code/index.d.ts +2 -0
- package/dist/core/Code/index.d.ts.map +1 -0
- package/dist/core/Code/index.js +1 -0
- package/dist/core/Form/Form.stories.d.ts +2 -0
- package/dist/core/Form/Form.stories.d.ts.map +1 -1
- package/dist/core/Form/Form.stories.js +4 -3
- package/dist/core/Form/Form.stories.sources.d.ts +1 -0
- package/dist/core/Form/Form.stories.sources.d.ts.map +1 -1
- package/dist/core/Form/Form.stories.sources.js +4 -1
- package/dist/core/Image/Image.stories.d.ts +1 -0
- package/dist/core/Image/Image.stories.d.ts.map +1 -1
- package/dist/core/Image/Image.stories.js +2 -1
- package/dist/core/MarkdownDescription/MarkdownDescription.d.ts +6 -0
- package/dist/core/MarkdownDescription/MarkdownDescription.d.ts.map +1 -0
- package/dist/core/MarkdownDescription/MarkdownDescription.js +59 -0
- package/dist/core/MarkdownDescription/index.d.ts +2 -0
- package/dist/core/MarkdownDescription/index.d.ts.map +1 -0
- package/dist/core/MarkdownDescription/index.js +1 -0
- package/dist/core/Metabase/Metabase.stories.d.ts +1 -1
- package/dist/core/Metabase/Metabase.styles.d.ts +1 -1
- package/dist/core/Page/Page.stories.d.ts +38 -2
- package/dist/core/Page/Page.stories.d.ts.map +1 -1
- package/dist/core/Page/Page.stories.js +38 -26
- package/dist/core/Page/Page.stories.sources.d.ts +1 -0
- package/dist/core/Page/Page.stories.sources.d.ts.map +1 -1
- package/dist/core/Page/Page.stories.sources.js +6 -2
- package/dist/core/Section/Section.stories.d.ts +5 -5
- package/dist/core/Section/Section.stories.js +1 -1
- package/dist/core/Section/Section.stories.sources.d.ts.map +1 -1
- package/dist/core/Section/Section.stories.sources.js +1 -1
- package/dist/core/Section/Section.styles.d.ts +5 -5
- package/dist/core/ThemeProvider/ThemeProvider.stories.d.ts +64 -0
- package/dist/core/ThemeProvider/ThemeProvider.stories.d.ts.map +1 -0
- package/dist/core/ThemeProvider/ThemeProvider.stories.js +109 -0
- package/dist/core/ThemeProvider/ThemeProvider.stories.sources.d.ts +9 -0
- package/dist/core/ThemeProvider/ThemeProvider.stories.sources.d.ts.map +1 -0
- package/dist/core/ThemeProvider/ThemeProvider.stories.sources.js +12 -0
- package/dist/core/Version/Version.stories.d.ts +1 -1
- package/dist/core/Version/Version.styles.d.ts +1 -1
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +2 -0
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/stories/index.d.ts +6 -0
- package/dist/stories/index.d.ts.map +1 -1
- package/dist/stories/index.js +6 -0
- package/dist/type/Story.d.ts +1 -0
- package/dist/type/Story.d.ts.map +1 -1
- package/dist/ui/Accordion/Accordion.stories.d.ts +17 -17
- package/dist/ui/Accordion/Accordion.styles.d.ts +17 -17
- package/dist/ui/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/ui/Autocomplete/Autocomplete.js +1 -1
- package/dist/ui/Autocomplete/Autocomplete.stories.d.ts +28 -28
- package/dist/ui/Autocomplete/Autocomplete.styles.d.ts +28 -28
- package/dist/ui/Autocomplete/Autocomplete.web.d.ts.map +1 -1
- package/dist/ui/Avatar/Avatar.js +5 -5
- package/dist/ui/Badge/Badge.d.ts.map +1 -1
- package/dist/ui/Badge/Badge.stories.d.ts +6 -6
- package/dist/ui/Badge/Badge.styles.d.ts +6 -6
- package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.styles.d.ts +1 -1
- package/dist/ui/Button/Button.stories.d.ts +26 -24
- package/dist/ui/Button/Button.stories.d.ts.map +1 -1
- package/dist/ui/Button/Button.stories.js +5 -3
- package/dist/ui/Button/Button.stories.sources.d.ts +1 -0
- package/dist/ui/Button/Button.stories.sources.d.ts.map +1 -1
- package/dist/ui/Button/Button.stories.sources.js +6 -2
- package/dist/ui/Button/Button.styles.d.ts +24 -24
- package/dist/ui/Button/Button.styles.js +2 -2
- package/dist/ui/Card/Card.stories.d.ts +4 -3
- package/dist/ui/Card/Card.stories.d.ts.map +1 -1
- package/dist/ui/Card/Card.stories.js +3 -2
- package/dist/ui/Card/Card.stories.sources.d.ts +1 -0
- package/dist/ui/Card/Card.stories.sources.d.ts.map +1 -1
- package/dist/ui/Card/Card.stories.sources.js +4 -1
- package/dist/ui/Card/Card.styles.d.ts +2 -2
- package/dist/ui/Card/CardActions.styles.d.ts +1 -1
- package/dist/ui/Card/CardHeader.styles.d.ts +1 -1
- package/dist/ui/Card/CardSection.styles.d.ts +3 -3
- package/dist/ui/Checkbox/Checkbox.js +2 -2
- package/dist/ui/Checkbox/Checkbox.stories.d.ts +1 -1
- package/dist/ui/Checkbox/Checkbox.styles.d.ts +1 -1
- package/dist/ui/Checkbox/Checkbox.styles.js +7 -7
- package/dist/ui/Counter/Counter.stories.d.ts +2 -2
- package/dist/ui/Counter/Counter.styles.d.ts +2 -2
- package/dist/ui/DateInput/DateInput.d.ts +36 -0
- package/dist/ui/DateInput/DateInput.d.ts.map +1 -0
- package/dist/ui/DateInput/DateInput.ios.d.ts +23 -0
- package/dist/ui/DateInput/DateInput.ios.d.ts.map +1 -0
- package/dist/ui/DateInput/DateInput.ios.js +45 -0
- package/dist/ui/DateInput/DateInput.js +70 -0
- package/dist/ui/DateInput/DateInput.stories.d.ts +36 -0
- package/dist/ui/DateInput/DateInput.stories.d.ts.map +1 -0
- package/dist/ui/DateInput/DateInput.stories.js +21 -0
- package/dist/ui/DateInput/DateInput.stories.sources.d.ts +8 -0
- package/dist/ui/DateInput/DateInput.stories.sources.d.ts.map +1 -0
- package/dist/ui/DateInput/DateInput.stories.sources.js +8 -0
- package/dist/ui/DateInput/DateInput.styles.d.ts +4 -0
- package/dist/ui/DateInput/DateInput.styles.d.ts.map +1 -0
- package/dist/ui/DateInput/DateInput.styles.js +4 -0
- package/dist/ui/DateInput/DateInput.web.d.ts +23 -0
- package/dist/ui/DateInput/DateInput.web.d.ts.map +1 -0
- package/dist/ui/DateInput/DateInput.web.js +9 -0
- package/dist/ui/DateInput/dateUtils.d.ts +23 -0
- package/dist/ui/DateInput/dateUtils.d.ts.map +1 -0
- package/dist/ui/DateInput/dateUtils.js +47 -0
- package/dist/ui/DateInput/index.d.ts +2 -0
- package/dist/ui/DateInput/index.d.ts.map +1 -0
- package/dist/ui/DateInput/index.js +1 -0
- package/dist/ui/Divider/Divider.stories.d.ts +1 -0
- package/dist/ui/Divider/Divider.stories.d.ts.map +1 -1
- package/dist/ui/Divider/Divider.stories.js +2 -1
- package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts +6 -6
- package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts +6 -6
- package/dist/ui/DocumentViewer/DocumentViewer.styles.js +1 -1
- package/dist/ui/DragAndDropFile/DragAndDropFile.stories.d.ts +10 -10
- package/dist/ui/DragAndDropFile/DragAndDropFile.styles.d.ts +10 -10
- package/dist/ui/DragAndDropFile/DragAndDropFile.styles.js +3 -3
- package/dist/ui/DurationInput/DurationInput.d.ts +19 -0
- package/dist/ui/DurationInput/DurationInput.d.ts.map +1 -0
- package/dist/ui/DurationInput/DurationInput.js +22 -0
- package/dist/ui/DurationInput/DurationInput.stories.d.ts +23 -0
- package/dist/ui/DurationInput/DurationInput.stories.d.ts.map +1 -0
- package/dist/ui/DurationInput/DurationInput.stories.js +29 -0
- package/dist/ui/DurationInput/DurationInput.stories.sources.d.ts +8 -0
- package/dist/ui/DurationInput/DurationInput.stories.sources.d.ts.map +1 -0
- package/dist/ui/DurationInput/DurationInput.stories.sources.js +8 -0
- package/dist/ui/DurationInput/index.d.ts +2 -0
- package/dist/ui/DurationInput/index.d.ts.map +1 -0
- package/dist/ui/DurationInput/index.js +1 -0
- package/dist/ui/EmptyState/EmptyState.stories.d.ts +9 -9
- package/dist/ui/EmptyState/EmptyState.styles.d.ts +9 -9
- package/dist/ui/FormControl/FormControl.stories.d.ts +17 -17
- package/dist/ui/FormControl/FormControl.styles.d.ts +17 -17
- package/dist/ui/FormControl/FormControlFileInput.styles.d.ts +5 -5
- package/dist/ui/FormControl/TextInput.d.ts.map +1 -1
- package/dist/ui/Grid/Grid.d.ts +17 -0
- package/dist/ui/Grid/Grid.d.ts.map +1 -0
- package/dist/ui/Grid/Grid.js +40 -0
- package/dist/ui/Grid/Grid.stories.d.ts +24 -0
- package/dist/ui/Grid/Grid.stories.d.ts.map +1 -0
- package/dist/ui/Grid/Grid.stories.js +24 -0
- package/dist/ui/Grid/Grid.stories.sources.d.ts +8 -0
- package/dist/ui/Grid/Grid.stories.sources.d.ts.map +1 -0
- package/dist/ui/Grid/Grid.stories.sources.js +8 -0
- package/dist/ui/Grid/Grid.styles.d.ts +10 -0
- package/dist/ui/Grid/Grid.styles.d.ts.map +1 -0
- package/dist/ui/Grid/Grid.styles.js +10 -0
- package/dist/ui/Grid/index.d.ts +2 -0
- package/dist/ui/Grid/index.d.ts.map +1 -0
- package/dist/ui/Grid/index.js +1 -0
- package/dist/ui/Header/Header.stories.d.ts +6 -6
- package/dist/ui/Header/Header.styles.d.ts +6 -6
- package/dist/ui/InputHeading/InputHeading.stories.d.ts +1 -1
- package/dist/ui/InputHeading/InputHeading.styles.d.ts +1 -1
- package/dist/ui/ListItem/ListItem.stories.d.ts +9 -8
- package/dist/ui/ListItem/ListItem.stories.d.ts.map +1 -1
- package/dist/ui/ListItem/ListItem.stories.js +3 -3
- package/dist/ui/ListItem/ListItem.stories.sources.d.ts +1 -0
- package/dist/ui/ListItem/ListItem.stories.sources.d.ts.map +1 -1
- package/dist/ui/ListItem/ListItem.stories.sources.js +4 -1
- package/dist/ui/ListItem/ListItem.styles.d.ts +8 -8
- package/dist/ui/LucideIcon/LucideIcon.props.d.ts +2 -2
- package/dist/ui/LucideIcon/LucideIcon.stories.d.ts +6 -1
- package/dist/ui/LucideIcon/LucideIcon.stories.d.ts.map +1 -1
- package/dist/ui/LucideIcon/LucideIcon.stories.js +8 -4
- package/dist/ui/LucideIcon/LucideIcon.stories.sources.d.ts +1 -0
- package/dist/ui/LucideIcon/LucideIcon.stories.sources.d.ts.map +1 -1
- package/dist/ui/LucideIcon/LucideIcon.stories.sources.js +4 -1
- package/dist/ui/OtpField/OtpField.d.ts.map +1 -1
- package/dist/ui/OtpField/OtpField.stories.d.ts +2 -2
- package/dist/ui/OtpField/OtpField.styles.d.ts +2 -2
- package/dist/ui/OtpField/OtpField.styles.js +3 -3
- package/dist/ui/PageHeader/PageHeader.stories.d.ts +3 -3
- package/dist/ui/PageHeader/PageHeader.styles.d.ts +3 -3
- package/dist/ui/Popover/Popover.js +2 -2
- package/dist/ui/Popover/Popover.stories.d.ts +12 -12
- package/dist/ui/Popover/Popover.styles.d.ts +12 -12
- package/dist/ui/PriceInput/PriceInput.stories.d.ts +1 -1
- package/dist/ui/PriceInput/PriceInput.styles.d.ts +1 -1
- package/dist/ui/ProgressBar/ProgressBar.stories.d.ts +1 -1
- package/dist/ui/ProgressBar/ProgressBar.styles.d.ts +1 -1
- package/dist/ui/RadioGroup/RadioGroup.stories.d.ts +13 -13
- package/dist/ui/RadioGroup/RadioGroup.styles.d.ts +13 -13
- package/dist/ui/RadioGroup/RadioGroup.styles.js +7 -7
- package/dist/ui/RadioGroup/RadioGroupItem.styles.d.ts +1 -1
- package/dist/ui/ResourceList/ResourceList.stories.d.ts +4 -4
- package/dist/ui/ResourceList/ResourceList.styles.d.ts +4 -4
- package/dist/ui/Select/Select.stories.d.ts +7 -7
- package/dist/ui/Select/Select.styles.d.ts +7 -7
- package/dist/ui/SelectMultiple/SelectMultiple.stories.d.ts +9 -9
- package/dist/ui/SelectMultiple/SelectMultiple.styles.d.ts +9 -9
- package/dist/ui/Sidebar/Sidebar.stories.d.ts +51 -31
- package/dist/ui/Sidebar/Sidebar.stories.d.ts.map +1 -1
- package/dist/ui/Sidebar/Sidebar.stories.js +22 -17
- package/dist/ui/Sidebar/Sidebar.stories.sources.d.ts +1 -0
- package/dist/ui/Sidebar/Sidebar.stories.sources.d.ts.map +1 -1
- package/dist/ui/Sidebar/Sidebar.stories.sources.js +4 -1
- package/dist/ui/Sidebar/Sidebar.styles.d.ts +30 -30
- package/dist/ui/Sidebar/Sidebar.styles.js +3 -3
- package/dist/ui/Signature/Signature.js +2 -2
- package/dist/ui/Switch/Switch.js +2 -2
- package/dist/ui/Switch/Switch.stories.d.ts +3 -3
- package/dist/ui/Switch/Switch.styles.d.ts +3 -3
- package/dist/ui/Tabs/Tabs.stories.d.ts +12 -12
- package/dist/ui/Tabs/Tabs.styles.d.ts +12 -12
- package/dist/ui/Tag/Tag.d.ts.map +1 -1
- package/dist/ui/Tag/Tag.stories.d.ts +6 -6
- package/dist/ui/Tag/Tag.styles.d.ts +6 -6
- package/dist/ui/TimeInput/TimeInput.d.ts +19 -0
- package/dist/ui/TimeInput/TimeInput.d.ts.map +1 -0
- package/dist/ui/TimeInput/TimeInput.js +32 -0
- package/dist/ui/TimeInput/TimeInput.stories.d.ts +25 -0
- package/dist/ui/TimeInput/TimeInput.stories.d.ts.map +1 -0
- package/dist/ui/TimeInput/TimeInput.stories.js +26 -0
- package/dist/ui/TimeInput/TimeInput.stories.sources.d.ts +8 -0
- package/dist/ui/TimeInput/TimeInput.stories.sources.d.ts.map +1 -0
- package/dist/ui/TimeInput/TimeInput.stories.sources.js +8 -0
- package/dist/ui/TimeInput/TimeInput.styles.d.ts +4 -0
- package/dist/ui/TimeInput/TimeInput.styles.d.ts.map +1 -0
- package/dist/ui/TimeInput/TimeInput.styles.js +4 -0
- package/dist/ui/TimeInput/TimeInput.web.d.ts +12 -0
- package/dist/ui/TimeInput/TimeInput.web.d.ts.map +1 -0
- package/dist/ui/TimeInput/TimeInput.web.js +9 -0
- package/dist/ui/TimeInput/index.d.ts +2 -0
- package/dist/ui/TimeInput/index.d.ts.map +1 -0
- package/dist/ui/TimeInput/index.js +1 -0
- package/dist/ui/Toast/Toast.stories.d.ts +33 -9
- package/dist/ui/Toast/Toast.stories.d.ts.map +1 -1
- package/dist/ui/Toast/Toast.stories.js +27 -22
- package/dist/ui/Toast/Toast.stories.sources.d.ts +1 -0
- package/dist/ui/Toast/Toast.stories.sources.d.ts.map +1 -1
- package/dist/ui/Toast/Toast.stories.sources.js +4 -1
- package/dist/ui/Toast/Toast.styles.d.ts +9 -9
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts +18 -1
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts.map +1 -1
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.js +19 -8
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.sources.d.ts +1 -0
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.sources.d.ts.map +1 -1
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.sources.js +4 -1
- package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts +14 -10
- package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts.map +1 -1
- package/dist/ui/ToolbarTop/ToolbarTop.stories.js +5 -2
- package/dist/ui/ToolbarTop/ToolbarTop.stories.sources.d.ts +1 -0
- package/dist/ui/ToolbarTop/ToolbarTop.stories.sources.d.ts.map +1 -1
- package/dist/ui/ToolbarTop/ToolbarTop.stories.sources.js +4 -1
- package/dist/ui/ToolbarTop/ToolbarTop.styles.d.ts +10 -10
- package/dist/ui/index.d.ts +4 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +4 -0
- package/package.json +12 -6
|
@@ -4,18 +4,18 @@ export declare const useStyles: () => {
|
|
|
4
4
|
flexDirection: "column";
|
|
5
5
|
alignItems: "center";
|
|
6
6
|
justifyContent: "center";
|
|
7
|
-
gap:
|
|
8
|
-
paddingTop:
|
|
9
|
-
paddingBottom:
|
|
10
|
-
paddingLeft:
|
|
11
|
-
paddingRight:
|
|
7
|
+
gap: string | number;
|
|
8
|
+
paddingTop: string | number;
|
|
9
|
+
paddingBottom: string | number;
|
|
10
|
+
paddingLeft: string | number;
|
|
11
|
+
paddingRight: string | number;
|
|
12
12
|
textAlign: "center";
|
|
13
13
|
height: "100%" | undefined;
|
|
14
14
|
width: "100%";
|
|
15
15
|
};
|
|
16
16
|
contenu: {
|
|
17
17
|
display: "flex";
|
|
18
|
-
gap:
|
|
18
|
+
gap: string | number;
|
|
19
19
|
alignItems: "center";
|
|
20
20
|
textAlign: "center";
|
|
21
21
|
flex: number | undefined;
|
|
@@ -29,12 +29,12 @@ export declare const useStyles: () => {
|
|
|
29
29
|
color: string;
|
|
30
30
|
backgroundColor: string;
|
|
31
31
|
borderRadius: import("@alveole/theme").Radius;
|
|
32
|
-
padding:
|
|
32
|
+
padding: string | number;
|
|
33
33
|
};
|
|
34
34
|
messageEtDescription: {
|
|
35
35
|
display: "flex";
|
|
36
36
|
flexDirection: "column";
|
|
37
|
-
gap:
|
|
37
|
+
gap: string | number;
|
|
38
38
|
width: "100%";
|
|
39
39
|
justifyContent: "center";
|
|
40
40
|
};
|
|
@@ -60,7 +60,7 @@ export declare const useStyles: () => {
|
|
|
60
60
|
width: "100%" | undefined;
|
|
61
61
|
display: "flex";
|
|
62
62
|
flexDirection: "column";
|
|
63
|
-
gap:
|
|
63
|
+
gap: string | number;
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
//# sourceMappingURL=EmptyState.styles.d.ts.map
|
|
@@ -12,7 +12,7 @@ declare const _default: {
|
|
|
12
12
|
formControl: {
|
|
13
13
|
display: "flex";
|
|
14
14
|
flexDirection: "column";
|
|
15
|
-
gap:
|
|
15
|
+
gap: string | number;
|
|
16
16
|
width: "100%";
|
|
17
17
|
};
|
|
18
18
|
labelContainer: {
|
|
@@ -53,7 +53,7 @@ declare const _default: {
|
|
|
53
53
|
inputInner: {
|
|
54
54
|
display: "flex";
|
|
55
55
|
flexDirection: "row";
|
|
56
|
-
gap:
|
|
56
|
+
gap: string | number;
|
|
57
57
|
padding: number;
|
|
58
58
|
borderRadius: number;
|
|
59
59
|
borderWidth: number;
|
|
@@ -70,10 +70,10 @@ declare const _default: {
|
|
|
70
70
|
color: string;
|
|
71
71
|
fontFamily: string;
|
|
72
72
|
fontSize: 14;
|
|
73
|
-
marginTop:
|
|
74
|
-
marginBottom:
|
|
75
|
-
paddingLeft:
|
|
76
|
-
paddingRight:
|
|
73
|
+
marginTop: string | number;
|
|
74
|
+
marginBottom: string | number;
|
|
75
|
+
paddingLeft: string | number;
|
|
76
|
+
paddingRight: string | number;
|
|
77
77
|
minHeight: number | undefined;
|
|
78
78
|
flex: number;
|
|
79
79
|
};
|
|
@@ -132,16 +132,16 @@ declare const _default: {
|
|
|
132
132
|
backgroundColor: "#FFFFFF";
|
|
133
133
|
borderTopLeftRadius: number;
|
|
134
134
|
borderTopRightRadius: number;
|
|
135
|
-
padding:
|
|
136
|
-
paddingTop:
|
|
137
|
-
paddingBottom:
|
|
135
|
+
padding: string | number;
|
|
136
|
+
paddingTop: string | number;
|
|
137
|
+
paddingBottom: string | number;
|
|
138
138
|
};
|
|
139
139
|
modalHeader: {
|
|
140
140
|
display: "flex";
|
|
141
141
|
flexDirection: "row";
|
|
142
142
|
justifyContent: "space-between";
|
|
143
143
|
alignItems: "center";
|
|
144
|
-
marginBottom:
|
|
144
|
+
marginBottom: string | number;
|
|
145
145
|
};
|
|
146
146
|
modalHeaderLeft: {
|
|
147
147
|
display: "flex";
|
|
@@ -154,7 +154,7 @@ declare const _default: {
|
|
|
154
154
|
alignItems: "center";
|
|
155
155
|
};
|
|
156
156
|
modalFooter: {
|
|
157
|
-
marginTop:
|
|
157
|
+
marginTop: string | number;
|
|
158
158
|
};
|
|
159
159
|
modalInputContainer: {
|
|
160
160
|
borderRadius: number;
|
|
@@ -165,10 +165,10 @@ declare const _default: {
|
|
|
165
165
|
};
|
|
166
166
|
modalInput: {
|
|
167
167
|
color: string;
|
|
168
|
-
paddingLeft:
|
|
169
|
-
paddingRight:
|
|
170
|
-
paddingTop:
|
|
171
|
-
paddingBottom:
|
|
168
|
+
paddingLeft: string | number;
|
|
169
|
+
paddingRight: string | number;
|
|
170
|
+
paddingTop: string | number;
|
|
171
|
+
paddingBottom: string | number;
|
|
172
172
|
minHeight: number;
|
|
173
173
|
flex: number;
|
|
174
174
|
fontSize: 14;
|
|
@@ -180,9 +180,9 @@ declare const _default: {
|
|
|
180
180
|
caption: {
|
|
181
181
|
display: "flex";
|
|
182
182
|
flexDirection: "row";
|
|
183
|
-
gap:
|
|
183
|
+
gap: string | number;
|
|
184
184
|
alignItems: "flex-start";
|
|
185
|
-
marginTop:
|
|
185
|
+
marginTop: string | number;
|
|
186
186
|
width: "100%";
|
|
187
187
|
};
|
|
188
188
|
captionIcon: {
|
|
@@ -2,7 +2,7 @@ export declare const useStyles: () => {
|
|
|
2
2
|
formControl: {
|
|
3
3
|
display: "flex";
|
|
4
4
|
flexDirection: "column";
|
|
5
|
-
gap:
|
|
5
|
+
gap: string | number;
|
|
6
6
|
width: "100%";
|
|
7
7
|
};
|
|
8
8
|
labelContainer: {
|
|
@@ -43,7 +43,7 @@ export declare const useStyles: () => {
|
|
|
43
43
|
inputInner: {
|
|
44
44
|
display: "flex";
|
|
45
45
|
flexDirection: "row";
|
|
46
|
-
gap:
|
|
46
|
+
gap: string | number;
|
|
47
47
|
padding: number;
|
|
48
48
|
borderRadius: number;
|
|
49
49
|
borderWidth: number;
|
|
@@ -60,10 +60,10 @@ export declare const useStyles: () => {
|
|
|
60
60
|
color: string;
|
|
61
61
|
fontFamily: string;
|
|
62
62
|
fontSize: 14;
|
|
63
|
-
marginTop:
|
|
64
|
-
marginBottom:
|
|
65
|
-
paddingLeft:
|
|
66
|
-
paddingRight:
|
|
63
|
+
marginTop: string | number;
|
|
64
|
+
marginBottom: string | number;
|
|
65
|
+
paddingLeft: string | number;
|
|
66
|
+
paddingRight: string | number;
|
|
67
67
|
minHeight: number | undefined;
|
|
68
68
|
flex: number;
|
|
69
69
|
};
|
|
@@ -122,16 +122,16 @@ export declare const useStyles: () => {
|
|
|
122
122
|
backgroundColor: "#FFFFFF";
|
|
123
123
|
borderTopLeftRadius: number;
|
|
124
124
|
borderTopRightRadius: number;
|
|
125
|
-
padding:
|
|
126
|
-
paddingTop:
|
|
127
|
-
paddingBottom:
|
|
125
|
+
padding: string | number;
|
|
126
|
+
paddingTop: string | number;
|
|
127
|
+
paddingBottom: string | number;
|
|
128
128
|
};
|
|
129
129
|
modalHeader: {
|
|
130
130
|
display: "flex";
|
|
131
131
|
flexDirection: "row";
|
|
132
132
|
justifyContent: "space-between";
|
|
133
133
|
alignItems: "center";
|
|
134
|
-
marginBottom:
|
|
134
|
+
marginBottom: string | number;
|
|
135
135
|
};
|
|
136
136
|
modalHeaderLeft: {
|
|
137
137
|
display: "flex";
|
|
@@ -144,7 +144,7 @@ export declare const useStyles: () => {
|
|
|
144
144
|
alignItems: "center";
|
|
145
145
|
};
|
|
146
146
|
modalFooter: {
|
|
147
|
-
marginTop:
|
|
147
|
+
marginTop: string | number;
|
|
148
148
|
};
|
|
149
149
|
modalInputContainer: {
|
|
150
150
|
borderRadius: number;
|
|
@@ -155,10 +155,10 @@ export declare const useStyles: () => {
|
|
|
155
155
|
};
|
|
156
156
|
modalInput: {
|
|
157
157
|
color: string;
|
|
158
|
-
paddingLeft:
|
|
159
|
-
paddingRight:
|
|
160
|
-
paddingTop:
|
|
161
|
-
paddingBottom:
|
|
158
|
+
paddingLeft: string | number;
|
|
159
|
+
paddingRight: string | number;
|
|
160
|
+
paddingTop: string | number;
|
|
161
|
+
paddingBottom: string | number;
|
|
162
162
|
minHeight: number;
|
|
163
163
|
flex: number;
|
|
164
164
|
fontSize: 14;
|
|
@@ -170,9 +170,9 @@ export declare const useStyles: () => {
|
|
|
170
170
|
caption: {
|
|
171
171
|
display: "flex";
|
|
172
172
|
flexDirection: "row";
|
|
173
|
-
gap:
|
|
173
|
+
gap: string | number;
|
|
174
174
|
alignItems: "flex-start";
|
|
175
|
-
marginTop:
|
|
175
|
+
marginTop: string | number;
|
|
176
176
|
width: "100%";
|
|
177
177
|
};
|
|
178
178
|
captionIcon: {
|
|
@@ -2,7 +2,7 @@ export declare const useStyles: () => {
|
|
|
2
2
|
fileInputContainer: {
|
|
3
3
|
display: "flex";
|
|
4
4
|
flexDirection: "row";
|
|
5
|
-
gap:
|
|
5
|
+
gap: string | number;
|
|
6
6
|
alignItems: "center";
|
|
7
7
|
};
|
|
8
8
|
fileInputButton: {
|
|
@@ -13,10 +13,10 @@ export declare const useStyles: () => {
|
|
|
13
13
|
display: "flex";
|
|
14
14
|
alignItems: "center";
|
|
15
15
|
justifyContent: "center";
|
|
16
|
-
paddingLeft:
|
|
17
|
-
paddingRight:
|
|
18
|
-
paddingTop:
|
|
19
|
-
paddingBottom:
|
|
16
|
+
paddingLeft: string | number;
|
|
17
|
+
paddingRight: string | number;
|
|
18
|
+
paddingTop: string | number;
|
|
19
|
+
paddingBottom: string | number;
|
|
20
20
|
};
|
|
21
21
|
fileInputButtonHovered: {
|
|
22
22
|
backgroundColor: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/TextInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAML,SAAS,IAAI,oBAAoB,EACjC,cAAc,IAAI,yBAAyB,
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/TextInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAML,SAAS,IAAI,oBAAoB,EACjC,cAAc,IAAI,yBAAyB,EAG5C,MAAM,cAAc,CAAC;AAKtB,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AACpD,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,GAAG;IACtE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,SAAS;eART,OAAO;qBACD,KAAK,CAAC,SAAS;mBACjB,KAAK,CAAC,SAAS;gBAClB,OAAO;uBACA,MAAM;oBACT,MAAM,IAAI;8CA0N1B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BoxAdvancedStyle, BoxProps } from '@alveole/components';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const GridGapContext: React.Context<number>;
|
|
4
|
+
type GridProps = Pick<BoxProps, 'children' | 'gap'> & BoxAdvancedStyle;
|
|
5
|
+
type GridColumnSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
6
|
+
export type GridColumnProps = Pick<BoxProps, 'children' | 'style'> & {
|
|
7
|
+
size: GridColumnSize | {
|
|
8
|
+
mobile: GridColumnSize;
|
|
9
|
+
desktop: GridColumnSize;
|
|
10
|
+
tablet?: GridColumnSize;
|
|
11
|
+
};
|
|
12
|
+
} & BoxAdvancedStyle;
|
|
13
|
+
export declare const Grid: ((props: GridProps) => React.JSX.Element) & {
|
|
14
|
+
Column: (props: GridColumnProps) => React.JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=Grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/ui/Grid/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,gBAAgB,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEtE,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,cAAc,uBAAiC,CAAC;AAE7D,KAAK,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,KAAK,CAAC,GAAG,gBAAgB,CAAC;AACvE,KAAK,cAAc,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEvE,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG;IACnE,IAAI,EAAE,cAAc,GAAG;QAAE,MAAM,EAAE,cAAc,CAAC;QAAC,OAAO,EAAE,cAAc,CAAC;QAAC,MAAM,CAAC,EAAE,cAAc,CAAA;KAAE,CAAC;CACrG,GAAG,gBAAgB,CAAC;AAgErB,eAAO,MAAM,IAAI,WA9Da,SAAS;oBA4BZ,eAAe;CAoCxC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box } from '@alveole/components';
|
|
3
|
+
import { isSpacingKey, Spacings, useTheme } from '@alveole/theme';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { useStyles } from './Grid.styles';
|
|
6
|
+
export const GridGapContext = React.createContext(0);
|
|
7
|
+
const GridContainer = (props) => {
|
|
8
|
+
const { children, gap = 0, ...advancedStyles } = props;
|
|
9
|
+
const styles = useStyles();
|
|
10
|
+
const spacing = isSpacingKey(gap) ? Spacings[gap] : gap;
|
|
11
|
+
return (_jsx(GridGapContext.Provider, { value: spacing, children: _jsx(Box, { tag: "grid", style: styles.grid, ...advancedStyles, children: _jsx(Box, { tag: "grid-container", style: [
|
|
12
|
+
styles.container,
|
|
13
|
+
{
|
|
14
|
+
marginLeft: -spacing / 2,
|
|
15
|
+
marginRight: -spacing / 2,
|
|
16
|
+
marginBottom: -spacing,
|
|
17
|
+
},
|
|
18
|
+
], children: children }) }) }));
|
|
19
|
+
};
|
|
20
|
+
const GridColumn = (props) => {
|
|
21
|
+
const { children, style, size, ...advancedStyles } = props;
|
|
22
|
+
const { isVariant } = useTheme();
|
|
23
|
+
const gap = React.useContext(GridGapContext);
|
|
24
|
+
const desktopSize = typeof size === 'number' ? size : size.desktop;
|
|
25
|
+
const mobileSize = typeof size === 'number' ? size : size.mobile;
|
|
26
|
+
const tabletSize = typeof size === 'number' ? size : (size.tablet ?? size.desktop);
|
|
27
|
+
const widthPercent = `${(isVariant('mobile') ? mobileSize / 12 : isVariant('tablet') ? tabletSize / 12 : desktopSize / 12) * 100}%`;
|
|
28
|
+
return (_jsx(Box, { tag: "grid-column", style: [
|
|
29
|
+
{
|
|
30
|
+
width: widthPercent,
|
|
31
|
+
paddingLeft: gap / 2,
|
|
32
|
+
paddingRight: gap / 2,
|
|
33
|
+
paddingBottom: gap,
|
|
34
|
+
},
|
|
35
|
+
style,
|
|
36
|
+
], ...advancedStyles, children: children }));
|
|
37
|
+
};
|
|
38
|
+
export const Grid = Object.assign(GridContainer, {
|
|
39
|
+
Column: GridColumn,
|
|
40
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: "ui"[];
|
|
4
|
+
experimental: false;
|
|
5
|
+
description: string;
|
|
6
|
+
shortDescription: string;
|
|
7
|
+
component: ((props: Pick<import("../..").BoxProps, "children" | "gap"> & import("../..").BoxAdvancedStyle) => import("react").JSX.Element) & {
|
|
8
|
+
Column: (props: import("./Grid").GridColumnProps) => import("react").JSX.Element;
|
|
9
|
+
};
|
|
10
|
+
styleFn: () => {
|
|
11
|
+
grid: {
|
|
12
|
+
flexDirection: "column";
|
|
13
|
+
};
|
|
14
|
+
container: {
|
|
15
|
+
flexDirection: "row";
|
|
16
|
+
flexWrap: "wrap";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
21
|
+
export declare const ExampleUsage: () => import("react").JSX.Element;
|
|
22
|
+
export declare const ExampleUsageWithVariant: () => import("react").JSX.Element;
|
|
23
|
+
export * as Sources from './Grid.stories.sources';
|
|
24
|
+
//# sourceMappingURL=Grid.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Grid.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Grid/Grid.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAKA,wBASkB;AAYlB,eAAO,MAAM,YAAY,mCAAmE,CAAC;AAE7F,eAAO,MAAM,uBAAuB,mCAA0E,CAAC;AAE/G,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Highlight } from '../../core';
|
|
3
|
+
import { Grid } from './Grid';
|
|
4
|
+
import { useStyles } from './Grid.styles';
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Grid',
|
|
7
|
+
tags: ['ui'],
|
|
8
|
+
experimental: false,
|
|
9
|
+
description: 'Grille basique sur 12 colonnes (mobile et sur web). Composant de type Box à utiliser avec `<Grid.Column>`.',
|
|
10
|
+
shortDescription: 'Grille basique sur 12 colonnes (mobile et web). À utiliser avec Grid.Column.',
|
|
11
|
+
component: Grid,
|
|
12
|
+
styleFn: useStyles,
|
|
13
|
+
};
|
|
14
|
+
const codeExample = `<Grid gap={8}>
|
|
15
|
+
<Grid.Column size={6}>{/* ... */}</Grid.Column>
|
|
16
|
+
<Grid.Column size={6}>{/* ... */}</Grid.Column>
|
|
17
|
+
</Grid>`;
|
|
18
|
+
const codeExampleVariant = `<Grid gap={8}>
|
|
19
|
+
<Grid.Column size={{ mobile: 12, desktop: 6 }}>{/* ... */}</Grid.Column>
|
|
20
|
+
<Grid.Column size={{ mobile: 12, desktop: 6 }}>{/* ... */}</Grid.Column>
|
|
21
|
+
</Grid>`;
|
|
22
|
+
export const ExampleUsage = () => _jsx(Highlight, { language: "typescript", children: codeExample });
|
|
23
|
+
export const ExampleUsageWithVariant = () => _jsx(Highlight, { language: "typescript", children: codeExampleVariant });
|
|
24
|
+
export * as Sources from './Grid.stories.sources';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const ExampleUsage: () => string;
|
|
2
|
+
export declare const ExampleUsageWithVariant: () => string;
|
|
3
|
+
export declare const storySources: {
|
|
4
|
+
readonly ExampleUsage: () => string;
|
|
5
|
+
readonly ExampleUsageWithVariant: () => string;
|
|
6
|
+
};
|
|
7
|
+
export type StorySourceName = keyof typeof storySources;
|
|
8
|
+
//# sourceMappingURL=Grid.stories.sources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Grid.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Grid/Grid.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,cAA0G,CAAC;AAEpI,eAAO,MAAM,uBAAuB,cAA4H,CAAC;AAEjK,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file is generated. Do not edit manually.
|
|
2
|
+
// Source: src/ui/Grid/Grid.stories.tsx
|
|
3
|
+
export const ExampleUsage = () => "export const ExampleUsage = () => <Highlight language=\"typescript\">{codeExample}</Highlight>;";
|
|
4
|
+
export const ExampleUsageWithVariant = () => "export const ExampleUsageWithVariant = () => <Highlight language=\"typescript\">{codeExampleVariant}</Highlight>;";
|
|
5
|
+
export const storySources = {
|
|
6
|
+
ExampleUsage,
|
|
7
|
+
ExampleUsageWithVariant,
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Grid.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Grid/Grid.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;CAQnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Grid/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Grid';
|
|
@@ -48,17 +48,17 @@ declare const _default: {
|
|
|
48
48
|
flexDirection: "row";
|
|
49
49
|
alignItems: "center";
|
|
50
50
|
justifyContent: "space-between";
|
|
51
|
-
gap:
|
|
52
|
-
paddingLeft:
|
|
53
|
-
paddingRight:
|
|
54
|
-
paddingTop:
|
|
55
|
-
paddingBottom:
|
|
51
|
+
gap: string | number;
|
|
52
|
+
paddingLeft: string | number;
|
|
53
|
+
paddingRight: string | number;
|
|
54
|
+
paddingTop: string | number;
|
|
55
|
+
paddingBottom: string | number;
|
|
56
56
|
};
|
|
57
57
|
identity: {
|
|
58
58
|
display: "flex";
|
|
59
59
|
flexDirection: "row";
|
|
60
60
|
alignItems: "center";
|
|
61
|
-
gap:
|
|
61
|
+
gap: string | number;
|
|
62
62
|
};
|
|
63
63
|
titleText: {
|
|
64
64
|
color: string;
|
|
@@ -40,17 +40,17 @@ export declare const useStyles: () => {
|
|
|
40
40
|
flexDirection: "row";
|
|
41
41
|
alignItems: "center";
|
|
42
42
|
justifyContent: "space-between";
|
|
43
|
-
gap:
|
|
44
|
-
paddingLeft:
|
|
45
|
-
paddingRight:
|
|
46
|
-
paddingTop:
|
|
47
|
-
paddingBottom:
|
|
43
|
+
gap: string | number;
|
|
44
|
+
paddingLeft: string | number;
|
|
45
|
+
paddingRight: string | number;
|
|
46
|
+
paddingTop: string | number;
|
|
47
|
+
paddingBottom: string | number;
|
|
48
48
|
};
|
|
49
49
|
identity: {
|
|
50
50
|
display: "flex";
|
|
51
51
|
flexDirection: "row";
|
|
52
52
|
alignItems: "center";
|
|
53
|
-
gap:
|
|
53
|
+
gap: string | number;
|
|
54
54
|
};
|
|
55
55
|
titleText: {
|
|
56
56
|
color: string;
|
|
@@ -9,10 +9,10 @@ declare const _default: {
|
|
|
9
9
|
item: {
|
|
10
10
|
display: "flex";
|
|
11
11
|
flexDirection: "row";
|
|
12
|
-
paddingLeft:
|
|
13
|
-
paddingRight:
|
|
12
|
+
paddingLeft: string | number;
|
|
13
|
+
paddingRight: string | number;
|
|
14
14
|
alignItems: "center";
|
|
15
|
-
gap:
|
|
15
|
+
gap: string | number;
|
|
16
16
|
alignSelf: "stretch";
|
|
17
17
|
};
|
|
18
18
|
itemHover: {
|
|
@@ -23,17 +23,17 @@ declare const _default: {
|
|
|
23
23
|
container: {
|
|
24
24
|
display: "flex";
|
|
25
25
|
flexDirection: "row";
|
|
26
|
-
gap:
|
|
26
|
+
gap: string | number;
|
|
27
27
|
};
|
|
28
28
|
detail: {
|
|
29
|
-
paddingTop:
|
|
30
|
-
paddingBottom:
|
|
29
|
+
paddingTop: string | number;
|
|
30
|
+
paddingBottom: string | number;
|
|
31
31
|
flex: number;
|
|
32
32
|
display: "flex";
|
|
33
33
|
flexDirection: "row";
|
|
34
34
|
alignItems: "center";
|
|
35
35
|
alignSelf: "stretch";
|
|
36
|
-
gap:
|
|
36
|
+
gap: string | number;
|
|
37
37
|
position: "relative";
|
|
38
38
|
};
|
|
39
39
|
separateur: {
|
|
@@ -88,7 +88,7 @@ declare const _default: {
|
|
|
88
88
|
alignItems: "center";
|
|
89
89
|
justifyContent: "center";
|
|
90
90
|
overflow: "hidden";
|
|
91
|
-
borderRadius:
|
|
91
|
+
borderRadius: string | number;
|
|
92
92
|
};
|
|
93
93
|
preview: {
|
|
94
94
|
width: number;
|
|
@@ -104,6 +104,7 @@ export declare const WithoutSeparator: () => import("react").JSX.Element;
|
|
|
104
104
|
export declare const WithIcon: () => import("react").JSX.Element;
|
|
105
105
|
export declare const WithAvatar: () => import("react").JSX.Element;
|
|
106
106
|
export declare const WithPreviewImage: () => import("react").JSX.Element;
|
|
107
|
+
/** Sans prop `onPress`, l’effet de hover n’apparaît pas. */
|
|
107
108
|
export declare const withoutHover: () => import("react").JSX.Element;
|
|
108
109
|
export * as Sources from './ListItem.stories.sources';
|
|
109
110
|
//# sourceMappingURL=ListItem.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/ListItem/ListItem.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ListItem.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/ListItem/ListItem.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAQkB;AAElB,eAAO,MAAM,OAAO,mCAQnB,CAAC;AAEF,eAAO,MAAM,YAAY,mCASxB,CAAC;AAEF,eAAO,MAAM,WAAW,mCASvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,mCAS5B,CAAC;AAEF,eAAO,MAAM,QAAQ,mCASpB,CAAC;AAEF,eAAO,MAAM,UAAU,mCAYtB,CAAC;AAEF,eAAO,MAAM,gBAAgB,mCAS5B,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,YAAY,mCAA6D,CAAC;AAEvF,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
2
|
-
import { Box, Typography } from '../../core';
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
2
|
import { ButtonIcon } from '../Button';
|
|
4
3
|
import { ListItem } from './ListItem';
|
|
5
4
|
import { useStyles } from './ListItem.styles';
|
|
@@ -36,5 +35,6 @@ export const WithAvatar = () => (_jsx(ListItem, { title: "Titre", description: "
|
|
|
36
35
|
export const WithPreviewImage = () => (_jsx(ListItem, { title: "Titre", description: "Description", preview_url: "https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=400", onPress: () => {
|
|
37
36
|
window.alert('click !');
|
|
38
37
|
} }));
|
|
39
|
-
|
|
38
|
+
/** Sans prop `onPress`, l’effet de hover n’apparaît pas. */
|
|
39
|
+
export const withoutHover = () => _jsx(ListItem, { title: "Titre", description: "Description" });
|
|
40
40
|
export * as Sources from './ListItem.stories.sources';
|
|
@@ -17,4 +17,5 @@ export declare const storySources: {
|
|
|
17
17
|
readonly withoutHover: () => string;
|
|
18
18
|
};
|
|
19
19
|
export type StorySourceName = keyof typeof storySources;
|
|
20
|
+
export declare const storyDescriptions: Partial<Record<StorySourceName, string>>;
|
|
20
21
|
//# sourceMappingURL=ListItem.stories.sources.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/ListItem/ListItem.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAoL,CAAC;AAEzM,eAAO,MAAM,YAAY,cAA0S,CAAC;AAEpU,eAAO,MAAM,WAAW,cAA4M,CAAC;AAErO,eAAO,MAAM,gBAAgB,cAAyN,CAAC;AAEvP,eAAO,MAAM,QAAQ,cAA6O,CAAC;AAEnQ,eAAO,MAAM,UAAU,cAAyU,CAAC;AAEjW,eAAO,MAAM,gBAAgB,cAAqR,CAAC;AAEnT,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"ListItem.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/ListItem/ListItem.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAoL,CAAC;AAEzM,eAAO,MAAM,YAAY,cAA0S,CAAC;AAEpU,eAAO,MAAM,WAAW,cAA4M,CAAC;AAErO,eAAO,MAAM,gBAAgB,cAAyN,CAAC;AAEvP,eAAO,MAAM,QAAQ,cAA6O,CAAC;AAEnQ,eAAO,MAAM,UAAU,cAAyU,CAAC;AAEjW,eAAO,MAAM,gBAAgB,cAAqR,CAAC;AAEnT,eAAO,MAAM,YAAY,cAAsG,CAAC;AAEhI,eAAO,MAAM,YAAY;;;;;;;;;CASf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAEtE,CAAC"}
|
|
@@ -7,7 +7,7 @@ export const WithoutSeparator = () => "export const WithoutSeparator = () => (\n
|
|
|
7
7
|
export const WithIcon = () => "export const WithIcon = () => (\n <ListItem\n title=\"Titre\"\n description=\"Description\"\n IconProps={{ name: 'Settings', color: 'primary' }}\n onPress={() => {\n window.alert('click !');\n }}\n />\n);";
|
|
8
8
|
export const WithAvatar = () => "export const WithAvatar = () => (\n <ListItem\n title=\"Titre\"\n description=\"Description\"\n AvatarProps={{\n fallbackText: 'Jean Pierre',\n src: 'https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=400',\n }}\n onPress={() => {\n window.alert('click !');\n }}\n />\n);";
|
|
9
9
|
export const WithPreviewImage = () => "export const WithPreviewImage = () => (\n <ListItem\n title=\"Titre\"\n description=\"Description\"\n preview_url=\"https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=400\"\n onPress={() => {\n window.alert('click !');\n }}\n />\n);";
|
|
10
|
-
export const withoutHover = () => "export const withoutHover = () =>
|
|
10
|
+
export const withoutHover = () => "export const withoutHover = () => <ListItem title=\"Titre\" description=\"Description\" />;";
|
|
11
11
|
export const storySources = {
|
|
12
12
|
Default,
|
|
13
13
|
WithTrailing,
|
|
@@ -18,3 +18,6 @@ export const storySources = {
|
|
|
18
18
|
WithPreviewImage,
|
|
19
19
|
withoutHover,
|
|
20
20
|
};
|
|
21
|
+
export const storyDescriptions = {
|
|
22
|
+
withoutHover: "Sans prop `onPress`, l’effet de hover n’apparaît pas.",
|
|
23
|
+
};
|