@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
|
@@ -25,11 +25,11 @@ declare const _default: {
|
|
|
25
25
|
inputInner: {
|
|
26
26
|
display: "flex";
|
|
27
27
|
flexDirection: "row";
|
|
28
|
-
gap:
|
|
29
|
-
paddingLeft:
|
|
30
|
-
paddingRight:
|
|
31
|
-
paddingTop:
|
|
32
|
-
paddingBottom:
|
|
28
|
+
gap: string | number;
|
|
29
|
+
paddingLeft: string | number;
|
|
30
|
+
paddingRight: string | number;
|
|
31
|
+
paddingTop: string | number;
|
|
32
|
+
paddingBottom: string | number;
|
|
33
33
|
borderRadius: number;
|
|
34
34
|
borderWidth: number;
|
|
35
35
|
borderColor: string;
|
|
@@ -45,29 +45,29 @@ declare const _default: {
|
|
|
45
45
|
backgroundColor: string;
|
|
46
46
|
};
|
|
47
47
|
control: {
|
|
48
|
-
minHeight:
|
|
48
|
+
minHeight: string | number;
|
|
49
49
|
flexWrap: "inherit";
|
|
50
50
|
borderColor: string;
|
|
51
|
-
paddingTop:
|
|
52
|
-
paddingBottom:
|
|
51
|
+
paddingTop: string | number;
|
|
52
|
+
paddingBottom: string | number;
|
|
53
53
|
borderRadius: number;
|
|
54
54
|
};
|
|
55
55
|
controlDisabled: {
|
|
56
56
|
backgroundColor: string;
|
|
57
57
|
};
|
|
58
58
|
multiValue: {
|
|
59
|
-
borderRadius:
|
|
59
|
+
borderRadius: string | number;
|
|
60
60
|
backgroundColor: string;
|
|
61
|
-
paddingLeft:
|
|
61
|
+
paddingLeft: string | number;
|
|
62
62
|
};
|
|
63
63
|
multiValueDisabled: {
|
|
64
64
|
backgroundColor: "#FFFFFF";
|
|
65
65
|
borderColor: string;
|
|
66
66
|
borderWidth: number;
|
|
67
|
-
borderRadius:
|
|
67
|
+
borderRadius: string | number;
|
|
68
68
|
borderStyle: "solid";
|
|
69
|
-
paddingLeft:
|
|
70
|
-
paddingRight:
|
|
69
|
+
paddingLeft: string | number;
|
|
70
|
+
paddingRight: string | number;
|
|
71
71
|
};
|
|
72
72
|
multiValueRemoveHover: {
|
|
73
73
|
backgroundColor: string;
|
|
@@ -78,7 +78,7 @@ declare const _default: {
|
|
|
78
78
|
};
|
|
79
79
|
dropdownIndicator: {
|
|
80
80
|
color: string;
|
|
81
|
-
padding:
|
|
81
|
+
padding: string | number;
|
|
82
82
|
};
|
|
83
83
|
dropdownIndicatorDisabled: {
|
|
84
84
|
display: "none";
|
|
@@ -91,7 +91,7 @@ declare const _default: {
|
|
|
91
91
|
};
|
|
92
92
|
clearIndicator: {
|
|
93
93
|
color: string;
|
|
94
|
-
padding:
|
|
94
|
+
padding: string | number;
|
|
95
95
|
};
|
|
96
96
|
nativeLabel: {
|
|
97
97
|
color: string;
|
|
@@ -118,10 +118,10 @@ declare const _default: {
|
|
|
118
118
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
119
119
|
};
|
|
120
120
|
nativeItem: {
|
|
121
|
-
paddingTop:
|
|
122
|
-
paddingRight:
|
|
123
|
-
paddingBottom:
|
|
124
|
-
paddingLeft:
|
|
121
|
+
paddingTop: string | number;
|
|
122
|
+
paddingRight: string | number;
|
|
123
|
+
paddingBottom: string | number;
|
|
124
|
+
paddingLeft: string | number;
|
|
125
125
|
backgroundColor: string;
|
|
126
126
|
};
|
|
127
127
|
nativeItemText: {
|
|
@@ -163,7 +163,7 @@ declare const _default: {
|
|
|
163
163
|
};
|
|
164
164
|
autocompleteIcon: {
|
|
165
165
|
position: "absolute";
|
|
166
|
-
right:
|
|
166
|
+
right: string | number;
|
|
167
167
|
top: string;
|
|
168
168
|
};
|
|
169
169
|
modalOverlay: {
|
|
@@ -176,22 +176,22 @@ declare const _default: {
|
|
|
176
176
|
backgroundColor: "white";
|
|
177
177
|
borderTopLeftRadius: import("@alveole/theme").Radius;
|
|
178
178
|
borderTopRightRadius: import("@alveole/theme").Radius;
|
|
179
|
-
paddingTop:
|
|
179
|
+
paddingTop: string | number;
|
|
180
180
|
};
|
|
181
181
|
modalHeader: {
|
|
182
182
|
display: "flex";
|
|
183
183
|
flexDirection: "row";
|
|
184
184
|
justifyContent: "space-between";
|
|
185
185
|
alignItems: "center";
|
|
186
|
-
paddingLeft:
|
|
186
|
+
paddingLeft: string | number;
|
|
187
187
|
};
|
|
188
188
|
groupHeader: {
|
|
189
189
|
color: string;
|
|
190
190
|
textTransform: "uppercase";
|
|
191
|
-
paddingTop:
|
|
192
|
-
paddingBottom:
|
|
193
|
-
paddingLeft:
|
|
194
|
-
paddingRight:
|
|
191
|
+
paddingTop: string | number;
|
|
192
|
+
paddingBottom: string | number;
|
|
193
|
+
paddingLeft: string | number;
|
|
194
|
+
paddingRight: string | number;
|
|
195
195
|
backgroundColor: string;
|
|
196
196
|
fontSize: 12;
|
|
197
197
|
lineHeight: 20;
|
|
@@ -201,8 +201,8 @@ declare const _default: {
|
|
|
201
201
|
};
|
|
202
202
|
groupHeading: {
|
|
203
203
|
backgroundColor: string;
|
|
204
|
-
paddingTop:
|
|
205
|
-
paddingBottom:
|
|
204
|
+
paddingTop: string | number;
|
|
205
|
+
paddingBottom: string | number;
|
|
206
206
|
color: string;
|
|
207
207
|
textTransform: "uppercase";
|
|
208
208
|
marginBottom: number;
|
|
@@ -17,11 +17,11 @@ export declare const useStyles: () => {
|
|
|
17
17
|
inputInner: {
|
|
18
18
|
display: "flex";
|
|
19
19
|
flexDirection: "row";
|
|
20
|
-
gap:
|
|
21
|
-
paddingLeft:
|
|
22
|
-
paddingRight:
|
|
23
|
-
paddingTop:
|
|
24
|
-
paddingBottom:
|
|
20
|
+
gap: string | number;
|
|
21
|
+
paddingLeft: string | number;
|
|
22
|
+
paddingRight: string | number;
|
|
23
|
+
paddingTop: string | number;
|
|
24
|
+
paddingBottom: string | number;
|
|
25
25
|
borderRadius: number;
|
|
26
26
|
borderWidth: number;
|
|
27
27
|
borderColor: string;
|
|
@@ -37,29 +37,29 @@ export declare const useStyles: () => {
|
|
|
37
37
|
backgroundColor: string;
|
|
38
38
|
};
|
|
39
39
|
control: {
|
|
40
|
-
minHeight:
|
|
40
|
+
minHeight: string | number;
|
|
41
41
|
flexWrap: "inherit";
|
|
42
42
|
borderColor: string;
|
|
43
|
-
paddingTop:
|
|
44
|
-
paddingBottom:
|
|
43
|
+
paddingTop: string | number;
|
|
44
|
+
paddingBottom: string | number;
|
|
45
45
|
borderRadius: number;
|
|
46
46
|
};
|
|
47
47
|
controlDisabled: {
|
|
48
48
|
backgroundColor: string;
|
|
49
49
|
};
|
|
50
50
|
multiValue: {
|
|
51
|
-
borderRadius:
|
|
51
|
+
borderRadius: string | number;
|
|
52
52
|
backgroundColor: string;
|
|
53
|
-
paddingLeft:
|
|
53
|
+
paddingLeft: string | number;
|
|
54
54
|
};
|
|
55
55
|
multiValueDisabled: {
|
|
56
56
|
backgroundColor: "#FFFFFF";
|
|
57
57
|
borderColor: string;
|
|
58
58
|
borderWidth: number;
|
|
59
|
-
borderRadius:
|
|
59
|
+
borderRadius: string | number;
|
|
60
60
|
borderStyle: "solid";
|
|
61
|
-
paddingLeft:
|
|
62
|
-
paddingRight:
|
|
61
|
+
paddingLeft: string | number;
|
|
62
|
+
paddingRight: string | number;
|
|
63
63
|
};
|
|
64
64
|
multiValueRemoveHover: {
|
|
65
65
|
backgroundColor: string;
|
|
@@ -70,7 +70,7 @@ export declare const useStyles: () => {
|
|
|
70
70
|
};
|
|
71
71
|
dropdownIndicator: {
|
|
72
72
|
color: string;
|
|
73
|
-
padding:
|
|
73
|
+
padding: string | number;
|
|
74
74
|
};
|
|
75
75
|
dropdownIndicatorDisabled: {
|
|
76
76
|
display: "none";
|
|
@@ -83,7 +83,7 @@ export declare const useStyles: () => {
|
|
|
83
83
|
};
|
|
84
84
|
clearIndicator: {
|
|
85
85
|
color: string;
|
|
86
|
-
padding:
|
|
86
|
+
padding: string | number;
|
|
87
87
|
};
|
|
88
88
|
nativeLabel: {
|
|
89
89
|
color: string;
|
|
@@ -110,10 +110,10 @@ export declare const useStyles: () => {
|
|
|
110
110
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
111
111
|
};
|
|
112
112
|
nativeItem: {
|
|
113
|
-
paddingTop:
|
|
114
|
-
paddingRight:
|
|
115
|
-
paddingBottom:
|
|
116
|
-
paddingLeft:
|
|
113
|
+
paddingTop: string | number;
|
|
114
|
+
paddingRight: string | number;
|
|
115
|
+
paddingBottom: string | number;
|
|
116
|
+
paddingLeft: string | number;
|
|
117
117
|
backgroundColor: string;
|
|
118
118
|
};
|
|
119
119
|
nativeItemText: {
|
|
@@ -155,7 +155,7 @@ export declare const useStyles: () => {
|
|
|
155
155
|
};
|
|
156
156
|
autocompleteIcon: {
|
|
157
157
|
position: "absolute";
|
|
158
|
-
right:
|
|
158
|
+
right: string | number;
|
|
159
159
|
top: string;
|
|
160
160
|
};
|
|
161
161
|
modalOverlay: {
|
|
@@ -168,22 +168,22 @@ export declare const useStyles: () => {
|
|
|
168
168
|
backgroundColor: "white";
|
|
169
169
|
borderTopLeftRadius: import("@alveole/theme").Radius;
|
|
170
170
|
borderTopRightRadius: import("@alveole/theme").Radius;
|
|
171
|
-
paddingTop:
|
|
171
|
+
paddingTop: string | number;
|
|
172
172
|
};
|
|
173
173
|
modalHeader: {
|
|
174
174
|
display: "flex";
|
|
175
175
|
flexDirection: "row";
|
|
176
176
|
justifyContent: "space-between";
|
|
177
177
|
alignItems: "center";
|
|
178
|
-
paddingLeft:
|
|
178
|
+
paddingLeft: string | number;
|
|
179
179
|
};
|
|
180
180
|
groupHeader: {
|
|
181
181
|
color: string;
|
|
182
182
|
textTransform: "uppercase";
|
|
183
|
-
paddingTop:
|
|
184
|
-
paddingBottom:
|
|
185
|
-
paddingLeft:
|
|
186
|
-
paddingRight:
|
|
183
|
+
paddingTop: string | number;
|
|
184
|
+
paddingBottom: string | number;
|
|
185
|
+
paddingLeft: string | number;
|
|
186
|
+
paddingRight: string | number;
|
|
187
187
|
backgroundColor: string;
|
|
188
188
|
fontSize: 12;
|
|
189
189
|
lineHeight: 20;
|
|
@@ -193,8 +193,8 @@ export declare const useStyles: () => {
|
|
|
193
193
|
};
|
|
194
194
|
groupHeading: {
|
|
195
195
|
backgroundColor: string;
|
|
196
|
-
paddingTop:
|
|
197
|
-
paddingBottom:
|
|
196
|
+
paddingTop: string | number;
|
|
197
|
+
paddingBottom: string | number;
|
|
198
198
|
color: string;
|
|
199
199
|
textTransform: "uppercase";
|
|
200
200
|
marginBottom: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Autocomplete.web.d.ts","sourceRoot":"","sources":["../../../src/ui/Autocomplete/Autocomplete.web.tsx"],"names":[],"mappings":"AASA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAqB,MAAM,gBAAgB,CAAC;AAGvE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Autocomplete.web.d.ts","sourceRoot":"","sources":["../../../src/ui/Autocomplete/Autocomplete.web.tsx"],"names":[],"mappings":"AASA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAqB,MAAM,gBAAgB,CAAC;AAGvE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;iDAmDnB,CAAF;;;;;;;;;;6BA0GF,CAAC"}
|
package/dist/ui/Avatar/Avatar.js
CHANGED
|
@@ -14,14 +14,14 @@ const getInitials = (name) => {
|
|
|
14
14
|
export const Avatar = (props) => {
|
|
15
15
|
const { style, fallbackText, src, size, carre, ...avatarProps } = props;
|
|
16
16
|
const initials = getInitials(fallbackText ?? '');
|
|
17
|
-
const {
|
|
17
|
+
const { spacingValue } = useTheme();
|
|
18
18
|
const styles = useStyles();
|
|
19
19
|
const avatarSize = {
|
|
20
20
|
xs: 20,
|
|
21
|
-
sm:
|
|
22
|
-
md:
|
|
23
|
-
lg:
|
|
24
|
-
xl:
|
|
21
|
+
sm: spacingValue('3W'),
|
|
22
|
+
md: spacingValue('4W'),
|
|
23
|
+
lg: spacingValue('5W'),
|
|
24
|
+
xl: spacingValue('8W'),
|
|
25
25
|
};
|
|
26
26
|
return (_jsxs(TamaguiAvatar, { style: { ...styles.avatar, ...(carre ? styles.carre : {}), ...style }, circular: !carre, size: avatarSize[size], ...avatarProps, children: [_jsx(TamaguiAvatar.Image, { src: src }), _jsx(Typography, { style: styles.fallbackText, children: initials })] }));
|
|
27
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/ui/Badge/Badge.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/ui/Badge/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAG5D,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG;IACzC,OAAO,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAC;IACtE,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;CAChC,CAAC;AACF,eAAO,MAAM,KAAK,GAAI,OAAO,UAAU,gCAoCtC,CAAC"}
|
|
@@ -45,9 +45,9 @@ declare const _default: {
|
|
|
45
45
|
textTransform: "uppercase";
|
|
46
46
|
fontFamily: string;
|
|
47
47
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
48
|
-
paddingLeft:
|
|
49
|
-
paddingRight:
|
|
50
|
-
gap:
|
|
48
|
+
paddingLeft: string | number;
|
|
49
|
+
paddingRight: string | number;
|
|
50
|
+
gap: string | number;
|
|
51
51
|
};
|
|
52
52
|
badgeMd: {
|
|
53
53
|
fontSize: 14;
|
|
@@ -56,9 +56,9 @@ declare const _default: {
|
|
|
56
56
|
textTransform: "uppercase";
|
|
57
57
|
fontFamily: string;
|
|
58
58
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
59
|
-
paddingLeft:
|
|
60
|
-
paddingRight:
|
|
61
|
-
gap:
|
|
59
|
+
paddingLeft: string | number;
|
|
60
|
+
paddingRight: string | number;
|
|
61
|
+
gap: string | number;
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
64
|
};
|
|
@@ -38,9 +38,9 @@ export declare const useStyles: () => {
|
|
|
38
38
|
textTransform: "uppercase";
|
|
39
39
|
fontFamily: string;
|
|
40
40
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
41
|
-
paddingLeft:
|
|
42
|
-
paddingRight:
|
|
43
|
-
gap:
|
|
41
|
+
paddingLeft: string | number;
|
|
42
|
+
paddingRight: string | number;
|
|
43
|
+
gap: string | number;
|
|
44
44
|
};
|
|
45
45
|
badgeMd: {
|
|
46
46
|
fontSize: 14;
|
|
@@ -49,9 +49,9 @@ export declare const useStyles: () => {
|
|
|
49
49
|
textTransform: "uppercase";
|
|
50
50
|
fontFamily: string;
|
|
51
51
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
52
|
-
paddingLeft:
|
|
53
|
-
paddingRight:
|
|
54
|
-
gap:
|
|
52
|
+
paddingLeft: string | number;
|
|
53
|
+
paddingRight: string | number;
|
|
54
|
+
gap: string | number;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
//# sourceMappingURL=Badge.styles.d.ts.map
|
|
@@ -30,7 +30,7 @@ declare const _default: {
|
|
|
30
30
|
flexDirection: "row";
|
|
31
31
|
justifyContent: "center";
|
|
32
32
|
alignItems: "center";
|
|
33
|
-
gap:
|
|
33
|
+
gap: string | number;
|
|
34
34
|
transitionProperty: "all";
|
|
35
35
|
transitionDuration: "150ms";
|
|
36
36
|
transitionTimingFunction: "ease";
|
|
@@ -141,45 +141,45 @@ declare const _default: {
|
|
|
141
141
|
color: string;
|
|
142
142
|
};
|
|
143
143
|
xsContainer: {
|
|
144
|
-
paddingLeft:
|
|
145
|
-
paddingRight:
|
|
146
|
-
paddingTop:
|
|
147
|
-
paddingBottom:
|
|
144
|
+
paddingLeft: string | number;
|
|
145
|
+
paddingRight: string | number;
|
|
146
|
+
paddingTop: string | number;
|
|
147
|
+
paddingBottom: string | number;
|
|
148
148
|
borderTopLeftRadius: import("@alveole/theme").Radius;
|
|
149
149
|
borderBottomLeftRadius: import("@alveole/theme").Radius;
|
|
150
150
|
borderTopRightRadius: import("@alveole/theme").Radius;
|
|
151
151
|
borderBottomRightRadius: import("@alveole/theme").Radius;
|
|
152
152
|
};
|
|
153
153
|
smContainer: {
|
|
154
|
-
paddingLeft:
|
|
155
|
-
paddingRight:
|
|
156
|
-
paddingTop:
|
|
157
|
-
paddingBottom:
|
|
154
|
+
paddingLeft: string | number;
|
|
155
|
+
paddingRight: string | number;
|
|
156
|
+
paddingTop: string | number;
|
|
157
|
+
paddingBottom: string | number;
|
|
158
158
|
borderTopLeftRadius: import("@alveole/theme").Radius;
|
|
159
159
|
borderBottomLeftRadius: import("@alveole/theme").Radius;
|
|
160
160
|
borderTopRightRadius: import("@alveole/theme").Radius;
|
|
161
161
|
borderBottomRightRadius: import("@alveole/theme").Radius;
|
|
162
162
|
};
|
|
163
163
|
mdContainer: {
|
|
164
|
-
paddingLeft:
|
|
165
|
-
paddingRight:
|
|
164
|
+
paddingLeft: string | number;
|
|
165
|
+
paddingRight: string | number;
|
|
166
166
|
paddingTop: number;
|
|
167
167
|
paddingBottom: number;
|
|
168
168
|
};
|
|
169
169
|
lgContainer: {
|
|
170
|
-
paddingLeft:
|
|
171
|
-
paddingRight:
|
|
172
|
-
paddingTop:
|
|
173
|
-
paddingBottom:
|
|
170
|
+
paddingLeft: string | number;
|
|
171
|
+
paddingRight: string | number;
|
|
172
|
+
paddingTop: string | number;
|
|
173
|
+
paddingBottom: string | number;
|
|
174
174
|
};
|
|
175
175
|
smContainerIconOnly: {
|
|
176
|
-
padding:
|
|
176
|
+
padding: string | number;
|
|
177
177
|
};
|
|
178
178
|
mdContainerIconOnly: {
|
|
179
|
-
padding:
|
|
179
|
+
padding: string | number;
|
|
180
180
|
};
|
|
181
181
|
lgContainerIconOnly: {
|
|
182
|
-
padding:
|
|
182
|
+
padding: string | number;
|
|
183
183
|
};
|
|
184
184
|
xsTitle: {
|
|
185
185
|
readonly fontSize: 12;
|
|
@@ -210,22 +210,22 @@ declare const _default: {
|
|
|
210
210
|
readonly fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
211
211
|
};
|
|
212
212
|
smContainerStartIcon: {
|
|
213
|
-
paddingLeft:
|
|
213
|
+
paddingLeft: string | number;
|
|
214
214
|
};
|
|
215
215
|
mdContainerStartIcon: {
|
|
216
|
-
paddingLeft:
|
|
216
|
+
paddingLeft: string | number;
|
|
217
217
|
};
|
|
218
218
|
lgContainerStartIcon: {
|
|
219
|
-
paddingLeft:
|
|
219
|
+
paddingLeft: string | number;
|
|
220
220
|
};
|
|
221
221
|
smContainerEndIcon: {
|
|
222
|
-
paddingRight:
|
|
222
|
+
paddingRight: string | number;
|
|
223
223
|
};
|
|
224
224
|
mdContainerEndIcon: {
|
|
225
|
-
paddingRight:
|
|
225
|
+
paddingRight: string | number;
|
|
226
226
|
};
|
|
227
227
|
lgContainerEndIcon: {
|
|
228
|
-
paddingRight:
|
|
228
|
+
paddingRight: string | number;
|
|
229
229
|
};
|
|
230
230
|
primaryTitleDisabled: {
|
|
231
231
|
cursor: "not-allowed";
|
|
@@ -309,10 +309,12 @@ export declare const Primary: () => import("react").JSX.Element;
|
|
|
309
309
|
export declare const Secondary: () => import("react").JSX.Element;
|
|
310
310
|
export declare const Tertiary: () => import("react").JSX.Element;
|
|
311
311
|
export declare const Danger: () => import("react").JSX.Element;
|
|
312
|
+
/** @deprecated Préférer les variants `primary`, `secondary` ou `tertiary`. */
|
|
312
313
|
export declare const Link: () => import("react").JSX.Element;
|
|
313
314
|
export declare const Icons: () => import("react").JSX.Element;
|
|
314
315
|
export declare const FullWidth: () => import("react").JSX.Element;
|
|
315
316
|
export declare const Selected: () => import("react").JSX.Element;
|
|
317
|
+
/** Utilisé quand le bouton est actif (ex : quand un menu est ouvert). */
|
|
316
318
|
export declare const Active: () => import("react").JSX.Element;
|
|
317
319
|
export * as Sources from './Button.stories.sources';
|
|
318
320
|
//# sourceMappingURL=Button.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Button/Button.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAQkB;AAElB,eAAO,MAAM,KAAK,mCAMjB,CAAC;AAEF,eAAO,MAAM,OAAO,mCAKnB,CAAC;AAEF,eAAO,MAAM,SAAS,mCAKrB,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAKpB,CAAC;AAEF,eAAO,MAAM,MAAM,mCAKlB,CAAC;AAEF,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Button/Button.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAQkB;AAElB,eAAO,MAAM,KAAK,mCAMjB,CAAC;AAEF,eAAO,MAAM,OAAO,mCAKnB,CAAC;AAEF,eAAO,MAAM,SAAS,mCAKrB,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAKpB,CAAC;AAEF,eAAO,MAAM,MAAM,mCAKlB,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,IAAI,mCAMhB,CAAC;AAEF,eAAO,MAAM,KAAK,mCAQjB,CAAC;AAEF,eAAO,MAAM,SAAS,mCAAkE,CAAC;AAEzF,eAAO,MAAM,QAAQ,mCAIpB,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,MAAM,mCAIlB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box
|
|
2
|
+
import { Box } from '../../core';
|
|
3
3
|
import { Button } from './Button';
|
|
4
4
|
import { useStyles } from './Button.styles';
|
|
5
5
|
import { ButtonIcon } from './ButtonIcon';
|
|
@@ -17,9 +17,11 @@ export const Primary = () => (_jsxs(Box, { display: "flex", flexDirection: "row"
|
|
|
17
17
|
export const Secondary = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 4, children: [_jsx(Button, { variant: "secondary", title: "Bouton secondary" }), _jsx(Button, { variant: "secondary", title: "Disabled", disabled: true })] }));
|
|
18
18
|
export const Tertiary = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 4, children: [_jsx(Button, { variant: "tertiary", title: "Bouton tertiary" }), _jsx(Button, { variant: "tertiary", title: "Disabled", disabled: true })] }));
|
|
19
19
|
export const Danger = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 4, children: [_jsx(Button, { variant: "danger", title: "Bouton danger" }), _jsx(Button, { variant: "danger", title: "Disabled", disabled: true })] }));
|
|
20
|
-
|
|
20
|
+
/** @deprecated Préférer les variants `primary`, `secondary` ou `tertiary`. */
|
|
21
|
+
export const Link = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 4, children: [_jsx(Button, { variant: "link", title: "Bouton link" }), _jsx(Button, { variant: "link", title: "Disabled", disabled: true }), _jsx(Button, { variant: "link", title: "Disabled", disabled: true, startIcon: "Pen" })] }));
|
|
21
22
|
export const Icons = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 4, children: [_jsx(Button, { variant: "primary", title: "Start Icon", startIcon: "Plus" }), _jsx(Button, { variant: "primary", title: "End Icon", endIcon: "Plus" }), _jsx(Button, { variant: "primary", title: "End Icon", endIcon: "Plus" }), _jsx(ButtonIcon, { variant: "primary", icon: "CircleUser" }), _jsx(ButtonIcon, { variant: "primary", icon: "CircleUser" })] }));
|
|
22
23
|
export const FullWidth = () => _jsx(Button, { variant: "primary", title: "Full Width", fullWidth: true });
|
|
23
24
|
export const Selected = () => (_jsx(Box, { display: "flex", flexDirection: "row", gap: 4, children: _jsx(Button, { variant: "secondary", title: "Selected", selected: true }) }));
|
|
24
|
-
|
|
25
|
+
/** Utilisé quand le bouton est actif (ex : quand un menu est ouvert). */
|
|
26
|
+
export const Active = () => (_jsx(Box, { display: "block", children: _jsx(Button, { variant: "secondary", title: "Active", active: true }) }));
|
|
25
27
|
export * as Sources from './Button.stories.sources';
|
|
@@ -21,4 +21,5 @@ export declare const storySources: {
|
|
|
21
21
|
readonly Active: () => string;
|
|
22
22
|
};
|
|
23
23
|
export type StorySourceName = keyof typeof storySources;
|
|
24
|
+
export declare const storyDescriptions: Partial<Record<StorySourceName, string>>;
|
|
24
25
|
//# sourceMappingURL=Button.stories.sources.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Button/Button.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,cAAoW,CAAC;AAEvX,eAAO,MAAM,OAAO,cAA4O,CAAC;AAEjQ,eAAO,MAAM,SAAS,cAAoP,CAAC;AAE3Q,eAAO,MAAM,QAAQ,cAAgP,CAAC;AAEtQ,eAAO,MAAM,MAAM,cAAwO,CAAC;AAE5P,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Button.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Button/Button.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,cAAoW,CAAC;AAEvX,eAAO,MAAM,OAAO,cAA4O,CAAC;AAEjQ,eAAO,MAAM,SAAS,cAAoP,CAAC;AAE3Q,eAAO,MAAM,QAAQ,cAAgP,CAAC;AAEtQ,eAAO,MAAM,MAAM,cAAwO,CAAC;AAE5P,eAAO,MAAM,IAAI,cAA+S,CAAC;AAEjU,eAAO,MAAM,KAAK,cAAic,CAAC;AAEpd,eAAO,MAAM,SAAS,cAAwG,CAAC;AAE/H,eAAO,MAAM,QAAQ,cAAkL,CAAC;AAExM,eAAO,MAAM,MAAM,cAA+I,CAAC;AAEnK,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAGtE,CAAC"}
|
|
@@ -5,11 +5,11 @@ export const Primary = () => "export const Primary = () => (\n <Box display=\"f
|
|
|
5
5
|
export const Secondary = () => "export const Secondary = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap={4}>\n <Button variant=\"secondary\" title=\"Bouton secondary\" />\n <Button variant=\"secondary\" title=\"Disabled\" disabled />\n </Box>\n);";
|
|
6
6
|
export const Tertiary = () => "export const Tertiary = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap={4}>\n <Button variant=\"tertiary\" title=\"Bouton tertiary\" />\n <Button variant=\"tertiary\" title=\"Disabled\" disabled />\n </Box>\n);";
|
|
7
7
|
export const Danger = () => "export const Danger = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap={4}>\n <Button variant=\"danger\" title=\"Bouton danger\" />\n <Button variant=\"danger\" title=\"Disabled\" disabled />\n </Box>\n);";
|
|
8
|
-
export const Link = () => "export const Link = () => (\n <Box display=\"flex\" flexDirection=\"
|
|
8
|
+
export const Link = () => "export const Link = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap={4}>\n <Button variant=\"link\" title=\"Bouton link\" />\n <Button variant=\"link\" title=\"Disabled\" disabled />\n <Button variant=\"link\" title=\"Disabled\" disabled startIcon=\"Pen\" />\n </Box>\n);";
|
|
9
9
|
export const Icons = () => "export const Icons = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap={4}>\n <Button variant=\"primary\" title=\"Start Icon\" startIcon=\"Plus\" />\n <Button variant=\"primary\" title=\"End Icon\" endIcon=\"Plus\" />\n <Button variant=\"primary\" title=\"End Icon\" endIcon=\"Plus\" />\n <ButtonIcon variant=\"primary\" icon=\"CircleUser\" />\n <ButtonIcon variant=\"primary\" icon=\"CircleUser\" />\n </Box>\n);";
|
|
10
10
|
export const FullWidth = () => "export const FullWidth = () => <Button variant=\"primary\" title=\"Full Width\" fullWidth />;";
|
|
11
11
|
export const Selected = () => "export const Selected = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap={4}>\n <Button variant=\"secondary\" title=\"Selected\" selected />\n </Box>\n);";
|
|
12
|
-
export const Active = () => "export const Active = () => (\n <Box display=\"
|
|
12
|
+
export const Active = () => "export const Active = () => (\n <Box display=\"block\">\n <Button variant=\"secondary\" title=\"Active\" active />\n </Box>\n);";
|
|
13
13
|
export const storySources = {
|
|
14
14
|
Sizes,
|
|
15
15
|
Primary,
|
|
@@ -22,3 +22,7 @@ export const storySources = {
|
|
|
22
22
|
Selected,
|
|
23
23
|
Active,
|
|
24
24
|
};
|
|
25
|
+
export const storyDescriptions = {
|
|
26
|
+
Link: "@deprecated Préférer les variants `primary`, `secondary` ou `tertiary`.",
|
|
27
|
+
Active: "Utilisé quand le bouton est actif (ex : quand un menu est ouvert).",
|
|
28
|
+
};
|