@alveole/components 1.0.0 → 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.
Files changed (279) hide show
  1. package/dist/core/A/A.stories.d.ts +1 -0
  2. package/dist/core/A/A.stories.d.ts.map +1 -1
  3. package/dist/core/A/A.stories.js +2 -1
  4. package/dist/core/Box/Box.stories.d.ts +1 -0
  5. package/dist/core/Box/Box.stories.d.ts.map +1 -1
  6. package/dist/core/Box/Box.stories.js +2 -1
  7. package/dist/core/Code/Code.d.ts +5 -0
  8. package/dist/core/Code/Code.d.ts.map +1 -0
  9. package/dist/core/Code/Code.js +9 -0
  10. package/dist/core/Code/Code.stories.d.ts +24 -0
  11. package/dist/core/Code/Code.stories.d.ts.map +1 -0
  12. package/dist/core/Code/Code.stories.js +16 -0
  13. package/dist/core/Code/Code.stories.sources.d.ts +8 -0
  14. package/dist/core/Code/Code.stories.sources.d.ts.map +1 -0
  15. package/dist/core/Code/Code.stories.sources.js +8 -0
  16. package/dist/core/Code/Code.styles.d.ts +13 -0
  17. package/dist/core/Code/Code.styles.d.ts.map +1 -0
  18. package/dist/core/Code/Code.styles.js +13 -0
  19. package/dist/core/Code/index.d.ts +2 -0
  20. package/dist/core/Code/index.d.ts.map +1 -0
  21. package/dist/core/Code/index.js +1 -0
  22. package/dist/core/Form/Form.stories.d.ts +2 -0
  23. package/dist/core/Form/Form.stories.d.ts.map +1 -1
  24. package/dist/core/Form/Form.stories.js +4 -3
  25. package/dist/core/Form/Form.stories.sources.d.ts +1 -0
  26. package/dist/core/Form/Form.stories.sources.d.ts.map +1 -1
  27. package/dist/core/Form/Form.stories.sources.js +4 -1
  28. package/dist/core/Image/Image.stories.d.ts +1 -0
  29. package/dist/core/Image/Image.stories.d.ts.map +1 -1
  30. package/dist/core/Image/Image.stories.js +2 -1
  31. package/dist/core/MarkdownDescription/MarkdownDescription.d.ts +6 -0
  32. package/dist/core/MarkdownDescription/MarkdownDescription.d.ts.map +1 -0
  33. package/dist/core/MarkdownDescription/MarkdownDescription.js +59 -0
  34. package/dist/core/MarkdownDescription/index.d.ts +2 -0
  35. package/dist/core/MarkdownDescription/index.d.ts.map +1 -0
  36. package/dist/core/MarkdownDescription/index.js +1 -0
  37. package/dist/core/Metabase/Metabase.stories.d.ts +1 -1
  38. package/dist/core/Metabase/Metabase.styles.d.ts +1 -1
  39. package/dist/core/Page/Page.stories.d.ts +38 -1
  40. package/dist/core/Page/Page.stories.d.ts.map +1 -1
  41. package/dist/core/Page/Page.stories.js +38 -11
  42. package/dist/core/Page/Page.stories.sources.d.ts +3 -0
  43. package/dist/core/Page/Page.stories.sources.d.ts.map +1 -1
  44. package/dist/core/Page/Page.stories.sources.js +7 -1
  45. package/dist/core/Page/PageContentScrollable.d.ts.map +1 -1
  46. package/dist/core/Page/PageContentScrollable.js +1 -1
  47. package/dist/core/Page/PageMetaContext.d.ts +13 -0
  48. package/dist/core/Page/PageMetaContext.d.ts.map +1 -1
  49. package/dist/core/Page/PageMetaContext.js +13 -0
  50. package/dist/core/Section/Section.stories.d.ts +5 -5
  51. package/dist/core/Section/Section.stories.js +1 -1
  52. package/dist/core/Section/Section.stories.sources.d.ts.map +1 -1
  53. package/dist/core/Section/Section.stories.sources.js +1 -1
  54. package/dist/core/Section/Section.styles.d.ts +5 -5
  55. package/dist/core/ThemeProvider/ThemeProvider.stories.d.ts +64 -0
  56. package/dist/core/ThemeProvider/ThemeProvider.stories.d.ts.map +1 -0
  57. package/dist/core/ThemeProvider/ThemeProvider.stories.js +109 -0
  58. package/dist/core/ThemeProvider/ThemeProvider.stories.sources.d.ts +9 -0
  59. package/dist/core/ThemeProvider/ThemeProvider.stories.sources.d.ts.map +1 -0
  60. package/dist/core/ThemeProvider/ThemeProvider.stories.sources.js +12 -0
  61. package/dist/core/Version/Version.stories.d.ts +1 -1
  62. package/dist/core/Version/Version.styles.d.ts +1 -1
  63. package/dist/core/index.d.ts +2 -0
  64. package/dist/core/index.d.ts.map +1 -1
  65. package/dist/core/index.js +2 -0
  66. package/dist/generated/version.d.ts +1 -1
  67. package/dist/generated/version.js +1 -1
  68. package/dist/stories/index.d.ts +6 -0
  69. package/dist/stories/index.d.ts.map +1 -1
  70. package/dist/stories/index.js +6 -0
  71. package/dist/type/Story.d.ts +1 -0
  72. package/dist/type/Story.d.ts.map +1 -1
  73. package/dist/ui/Accordion/Accordion.stories.d.ts +17 -17
  74. package/dist/ui/Accordion/Accordion.styles.d.ts +17 -17
  75. package/dist/ui/Autocomplete/Autocomplete.d.ts.map +1 -1
  76. package/dist/ui/Autocomplete/Autocomplete.js +1 -1
  77. package/dist/ui/Autocomplete/Autocomplete.stories.d.ts +30 -30
  78. package/dist/ui/Autocomplete/Autocomplete.styles.d.ts +30 -30
  79. package/dist/ui/Autocomplete/Autocomplete.web.d.ts.map +1 -1
  80. package/dist/ui/Avatar/Avatar.js +5 -5
  81. package/dist/ui/Avatar/Avatar.stories.d.ts +1 -1
  82. package/dist/ui/Avatar/Avatar.styles.d.ts +1 -1
  83. package/dist/ui/Badge/Badge.d.ts.map +1 -1
  84. package/dist/ui/Badge/Badge.stories.d.ts +7 -7
  85. package/dist/ui/Badge/Badge.styles.d.ts +7 -7
  86. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
  87. package/dist/ui/Breadcrumbs/Breadcrumbs.styles.d.ts +1 -1
  88. package/dist/ui/Button/Button.stories.d.ts +38 -36
  89. package/dist/ui/Button/Button.stories.d.ts.map +1 -1
  90. package/dist/ui/Button/Button.stories.js +5 -3
  91. package/dist/ui/Button/Button.stories.sources.d.ts +1 -0
  92. package/dist/ui/Button/Button.stories.sources.d.ts.map +1 -1
  93. package/dist/ui/Button/Button.stories.sources.js +6 -2
  94. package/dist/ui/Button/Button.styles.d.ts +36 -36
  95. package/dist/ui/Button/Button.styles.js +2 -2
  96. package/dist/ui/Card/Card.stories.d.ts +4 -3
  97. package/dist/ui/Card/Card.stories.d.ts.map +1 -1
  98. package/dist/ui/Card/Card.stories.js +3 -2
  99. package/dist/ui/Card/Card.stories.sources.d.ts +1 -0
  100. package/dist/ui/Card/Card.stories.sources.d.ts.map +1 -1
  101. package/dist/ui/Card/Card.stories.sources.js +4 -1
  102. package/dist/ui/Card/Card.styles.d.ts +3 -3
  103. package/dist/ui/Card/CardActions.styles.d.ts +1 -1
  104. package/dist/ui/Card/CardHeader.styles.d.ts +1 -1
  105. package/dist/ui/Card/CardSection.styles.d.ts +3 -3
  106. package/dist/ui/Checkbox/Checkbox.js +2 -2
  107. package/dist/ui/Checkbox/Checkbox.stories.d.ts +1 -1
  108. package/dist/ui/Checkbox/Checkbox.styles.d.ts +1 -1
  109. package/dist/ui/Checkbox/Checkbox.styles.js +7 -7
  110. package/dist/ui/Counter/Counter.stories.d.ts +3 -3
  111. package/dist/ui/Counter/Counter.styles.d.ts +3 -3
  112. package/dist/ui/DateInput/DateInput.d.ts +36 -0
  113. package/dist/ui/DateInput/DateInput.d.ts.map +1 -0
  114. package/dist/ui/DateInput/DateInput.ios.d.ts +23 -0
  115. package/dist/ui/DateInput/DateInput.ios.d.ts.map +1 -0
  116. package/dist/ui/DateInput/DateInput.ios.js +45 -0
  117. package/dist/ui/DateInput/DateInput.js +70 -0
  118. package/dist/ui/DateInput/DateInput.stories.d.ts +36 -0
  119. package/dist/ui/DateInput/DateInput.stories.d.ts.map +1 -0
  120. package/dist/ui/DateInput/DateInput.stories.js +21 -0
  121. package/dist/ui/DateInput/DateInput.stories.sources.d.ts +8 -0
  122. package/dist/ui/DateInput/DateInput.stories.sources.d.ts.map +1 -0
  123. package/dist/ui/DateInput/DateInput.stories.sources.js +8 -0
  124. package/dist/ui/DateInput/DateInput.styles.d.ts +4 -0
  125. package/dist/ui/DateInput/DateInput.styles.d.ts.map +1 -0
  126. package/dist/ui/DateInput/DateInput.styles.js +4 -0
  127. package/dist/ui/DateInput/DateInput.web.d.ts +23 -0
  128. package/dist/ui/DateInput/DateInput.web.d.ts.map +1 -0
  129. package/dist/ui/DateInput/DateInput.web.js +9 -0
  130. package/dist/ui/DateInput/dateUtils.d.ts +23 -0
  131. package/dist/ui/DateInput/dateUtils.d.ts.map +1 -0
  132. package/dist/ui/DateInput/dateUtils.js +47 -0
  133. package/dist/ui/DateInput/index.d.ts +2 -0
  134. package/dist/ui/DateInput/index.d.ts.map +1 -0
  135. package/dist/ui/DateInput/index.js +1 -0
  136. package/dist/ui/Divider/Divider.stories.d.ts +1 -0
  137. package/dist/ui/Divider/Divider.stories.d.ts.map +1 -1
  138. package/dist/ui/Divider/Divider.stories.js +2 -1
  139. package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts +12 -12
  140. package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts +12 -12
  141. package/dist/ui/DocumentViewer/DocumentViewer.styles.js +1 -1
  142. package/dist/ui/DragAndDropFile/DragAndDropFile.stories.d.ts +10 -10
  143. package/dist/ui/DragAndDropFile/DragAndDropFile.styles.d.ts +10 -10
  144. package/dist/ui/DragAndDropFile/DragAndDropFile.styles.js +3 -3
  145. package/dist/ui/DurationInput/DurationInput.d.ts +19 -0
  146. package/dist/ui/DurationInput/DurationInput.d.ts.map +1 -0
  147. package/dist/ui/DurationInput/DurationInput.js +22 -0
  148. package/dist/ui/DurationInput/DurationInput.stories.d.ts +23 -0
  149. package/dist/ui/DurationInput/DurationInput.stories.d.ts.map +1 -0
  150. package/dist/ui/DurationInput/DurationInput.stories.js +29 -0
  151. package/dist/ui/DurationInput/DurationInput.stories.sources.d.ts +8 -0
  152. package/dist/ui/DurationInput/DurationInput.stories.sources.d.ts.map +1 -0
  153. package/dist/ui/DurationInput/DurationInput.stories.sources.js +8 -0
  154. package/dist/ui/DurationInput/index.d.ts +2 -0
  155. package/dist/ui/DurationInput/index.d.ts.map +1 -0
  156. package/dist/ui/DurationInput/index.js +1 -0
  157. package/dist/ui/EmptyState/EmptyState.stories.d.ts +10 -10
  158. package/dist/ui/EmptyState/EmptyState.styles.d.ts +10 -10
  159. package/dist/ui/FormControl/FormControl.stories.d.ts +17 -17
  160. package/dist/ui/FormControl/FormControl.styles.d.ts +17 -17
  161. package/dist/ui/FormControl/FormControlFileInput.styles.d.ts +5 -5
  162. package/dist/ui/FormControl/TextInput.d.ts.map +1 -1
  163. package/dist/ui/Grid/Grid.d.ts +17 -0
  164. package/dist/ui/Grid/Grid.d.ts.map +1 -0
  165. package/dist/ui/Grid/Grid.js +40 -0
  166. package/dist/ui/Grid/Grid.stories.d.ts +24 -0
  167. package/dist/ui/Grid/Grid.stories.d.ts.map +1 -0
  168. package/dist/ui/Grid/Grid.stories.js +24 -0
  169. package/dist/ui/Grid/Grid.stories.sources.d.ts +8 -0
  170. package/dist/ui/Grid/Grid.stories.sources.d.ts.map +1 -0
  171. package/dist/ui/Grid/Grid.stories.sources.js +8 -0
  172. package/dist/ui/Grid/Grid.styles.d.ts +10 -0
  173. package/dist/ui/Grid/Grid.styles.d.ts.map +1 -0
  174. package/dist/ui/Grid/Grid.styles.js +10 -0
  175. package/dist/ui/Grid/index.d.ts +2 -0
  176. package/dist/ui/Grid/index.d.ts.map +1 -0
  177. package/dist/ui/Grid/index.js +1 -0
  178. package/dist/ui/Header/Header.stories.d.ts +6 -6
  179. package/dist/ui/Header/Header.styles.d.ts +6 -6
  180. package/dist/ui/InputHeading/InputHeading.stories.d.ts +1 -1
  181. package/dist/ui/InputHeading/InputHeading.styles.d.ts +1 -1
  182. package/dist/ui/ListItem/ListItem.stories.d.ts +10 -9
  183. package/dist/ui/ListItem/ListItem.stories.d.ts.map +1 -1
  184. package/dist/ui/ListItem/ListItem.stories.js +3 -3
  185. package/dist/ui/ListItem/ListItem.stories.sources.d.ts +1 -0
  186. package/dist/ui/ListItem/ListItem.stories.sources.d.ts.map +1 -1
  187. package/dist/ui/ListItem/ListItem.stories.sources.js +4 -1
  188. package/dist/ui/ListItem/ListItem.styles.d.ts +9 -9
  189. package/dist/ui/LucideIcon/LucideIcon.props.d.ts +2 -2
  190. package/dist/ui/LucideIcon/LucideIcon.stories.d.ts +6 -1
  191. package/dist/ui/LucideIcon/LucideIcon.stories.d.ts.map +1 -1
  192. package/dist/ui/LucideIcon/LucideIcon.stories.js +8 -4
  193. package/dist/ui/LucideIcon/LucideIcon.stories.sources.d.ts +1 -0
  194. package/dist/ui/LucideIcon/LucideIcon.stories.sources.d.ts.map +1 -1
  195. package/dist/ui/LucideIcon/LucideIcon.stories.sources.js +4 -1
  196. package/dist/ui/OtpField/OtpField.d.ts.map +1 -1
  197. package/dist/ui/OtpField/OtpField.stories.d.ts +2 -2
  198. package/dist/ui/OtpField/OtpField.styles.d.ts +2 -2
  199. package/dist/ui/OtpField/OtpField.styles.js +3 -3
  200. package/dist/ui/PageHeader/PageHeader.stories.d.ts +3 -3
  201. package/dist/ui/PageHeader/PageHeader.styles.d.ts +3 -3
  202. package/dist/ui/Popover/Popover.js +2 -2
  203. package/dist/ui/Popover/Popover.stories.d.ts +15 -15
  204. package/dist/ui/Popover/Popover.styles.d.ts +15 -15
  205. package/dist/ui/PriceInput/PriceInput.stories.d.ts +1 -1
  206. package/dist/ui/PriceInput/PriceInput.styles.d.ts +1 -1
  207. package/dist/ui/ProgressBar/ProgressBar.stories.d.ts +7 -7
  208. package/dist/ui/ProgressBar/ProgressBar.styles.d.ts +7 -7
  209. package/dist/ui/RadioGroup/RadioGroup.stories.d.ts +15 -15
  210. package/dist/ui/RadioGroup/RadioGroup.styles.d.ts +15 -15
  211. package/dist/ui/RadioGroup/RadioGroup.styles.js +7 -7
  212. package/dist/ui/RadioGroup/RadioGroupItem.styles.d.ts +1 -1
  213. package/dist/ui/ResourceList/ResourceList.stories.d.ts +5 -5
  214. package/dist/ui/ResourceList/ResourceList.styles.d.ts +5 -5
  215. package/dist/ui/Select/Select.stories.d.ts +7 -7
  216. package/dist/ui/Select/Select.styles.d.ts +7 -7
  217. package/dist/ui/SelectMultiple/SelectMultiple.stories.d.ts +9 -9
  218. package/dist/ui/SelectMultiple/SelectMultiple.styles.d.ts +9 -9
  219. package/dist/ui/Sidebar/Sidebar.stories.d.ts +53 -33
  220. package/dist/ui/Sidebar/Sidebar.stories.d.ts.map +1 -1
  221. package/dist/ui/Sidebar/Sidebar.stories.js +22 -17
  222. package/dist/ui/Sidebar/Sidebar.stories.sources.d.ts +1 -0
  223. package/dist/ui/Sidebar/Sidebar.stories.sources.d.ts.map +1 -1
  224. package/dist/ui/Sidebar/Sidebar.stories.sources.js +4 -1
  225. package/dist/ui/Sidebar/Sidebar.styles.d.ts +32 -32
  226. package/dist/ui/Sidebar/Sidebar.styles.js +3 -3
  227. package/dist/ui/Signature/Signature.js +2 -2
  228. package/dist/ui/Signature/Signature.stories.d.ts +1 -1
  229. package/dist/ui/Signature/Signature.styles.d.ts +1 -1
  230. package/dist/ui/Switch/Switch.js +2 -2
  231. package/dist/ui/Switch/Switch.stories.d.ts +3 -3
  232. package/dist/ui/Switch/Switch.styles.d.ts +3 -3
  233. package/dist/ui/Tabs/Tabs.stories.d.ts +13 -13
  234. package/dist/ui/Tabs/Tabs.styles.d.ts +13 -13
  235. package/dist/ui/Tag/Tag.d.ts.map +1 -1
  236. package/dist/ui/Tag/Tag.stories.d.ts +7 -7
  237. package/dist/ui/Tag/Tag.styles.d.ts +7 -7
  238. package/dist/ui/TimeInput/TimeInput.d.ts +19 -0
  239. package/dist/ui/TimeInput/TimeInput.d.ts.map +1 -0
  240. package/dist/ui/TimeInput/TimeInput.js +32 -0
  241. package/dist/ui/TimeInput/TimeInput.stories.d.ts +25 -0
  242. package/dist/ui/TimeInput/TimeInput.stories.d.ts.map +1 -0
  243. package/dist/ui/TimeInput/TimeInput.stories.js +26 -0
  244. package/dist/ui/TimeInput/TimeInput.stories.sources.d.ts +8 -0
  245. package/dist/ui/TimeInput/TimeInput.stories.sources.d.ts.map +1 -0
  246. package/dist/ui/TimeInput/TimeInput.stories.sources.js +8 -0
  247. package/dist/ui/TimeInput/TimeInput.styles.d.ts +4 -0
  248. package/dist/ui/TimeInput/TimeInput.styles.d.ts.map +1 -0
  249. package/dist/ui/TimeInput/TimeInput.styles.js +4 -0
  250. package/dist/ui/TimeInput/TimeInput.web.d.ts +12 -0
  251. package/dist/ui/TimeInput/TimeInput.web.d.ts.map +1 -0
  252. package/dist/ui/TimeInput/TimeInput.web.js +9 -0
  253. package/dist/ui/TimeInput/index.d.ts +2 -0
  254. package/dist/ui/TimeInput/index.d.ts.map +1 -0
  255. package/dist/ui/TimeInput/index.js +1 -0
  256. package/dist/ui/Toast/Toast.stories.d.ts +36 -12
  257. package/dist/ui/Toast/Toast.stories.d.ts.map +1 -1
  258. package/dist/ui/Toast/Toast.stories.js +27 -22
  259. package/dist/ui/Toast/Toast.stories.sources.d.ts +1 -0
  260. package/dist/ui/Toast/Toast.stories.sources.d.ts.map +1 -1
  261. package/dist/ui/Toast/Toast.stories.sources.js +4 -1
  262. package/dist/ui/Toast/Toast.styles.d.ts +12 -12
  263. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts +18 -1
  264. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts.map +1 -1
  265. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.js +19 -8
  266. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.sources.d.ts +1 -0
  267. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.sources.d.ts.map +1 -1
  268. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.sources.js +4 -1
  269. package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts +14 -10
  270. package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts.map +1 -1
  271. package/dist/ui/ToolbarTop/ToolbarTop.stories.js +5 -2
  272. package/dist/ui/ToolbarTop/ToolbarTop.stories.sources.d.ts +1 -0
  273. package/dist/ui/ToolbarTop/ToolbarTop.stories.sources.d.ts.map +1 -1
  274. package/dist/ui/ToolbarTop/ToolbarTop.stories.sources.js +4 -1
  275. package/dist/ui/ToolbarTop/ToolbarTop.styles.d.ts +10 -10
  276. package/dist/ui/index.d.ts +4 -0
  277. package/dist/ui/index.d.ts.map +1 -1
  278. package/dist/ui/index.js +4 -0
  279. package/package.json +12 -6
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box } from '../../core';
3
+ import { Grid } from '../Grid';
4
+ import { DurationInput } from './DurationInput';
5
+ const useStyles = () => ({});
6
+ export default {
7
+ title: 'DurationInput',
8
+ tags: ['ui'],
9
+ experimental: false,
10
+ shortDescription: "Saisie d'une durée au format HH:MM (ex. 06:15 pour 6 heures 15 minutes).",
11
+ description: `Saisie d'une **durée** au format HH:MM (ex. \`06:15\` pour 6 heures 15 minutes).
12
+
13
+ À ne pas confondre avec **TimeInput**, qui représente une **heure d'horloge** (ex. \`09:30\` du matin).
14
+
15
+ | | DurationInput |
16
+ |---|---|---|
17
+ | Sémantique | Durée écoulée |
18
+ | Exemple | \`35:00\` (35h00 de travail) |
19
+ | Heures valides | 00–99 |
20
+ | HTML web | \`<input type="text">\` |
21
+
22
+ > Il n'existe pas de \`<input type="duration">\` en HTML.
23
+ > Voir [whatwg/html#5488](https://github.com/whatwg/html/issues/5488).`,
24
+ component: DurationInput,
25
+ styleFn: useStyles,
26
+ };
27
+ export const Default = () => (_jsx(Box, { width: "100%", p: 8, children: _jsxs(Grid, { gap: 8, children: [_jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(DurationInput, { label: "Dur\u00E9e" }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(DurationInput, { label: "Dur\u00E9e", value: "06:15" }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(DurationInput, { label: "Dur\u00E9e", value: "01:30", hint: "Temps pass\u00E9 sur le terrain" }) })] }) }));
28
+ export const States = () => (_jsx(Box, { width: "100%", p: 8, children: _jsxs(Grid, { gap: 8, children: [_jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(DurationInput, { label: "Erreur", value: "25:70", error: "Heure invalide (minutes 00\u201359)" }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(DurationInput, { label: "Succ\u00E8s", value: "06:15", success: "Enregistr\u00E9" }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(DurationInput, { label: "D\u00E9sactiv\u00E9", value: "06:15", disabled: true }) })] }) }));
29
+ export * as Sources from './DurationInput.stories.sources';
@@ -0,0 +1,8 @@
1
+ export declare const Default: () => string;
2
+ export declare const States: () => string;
3
+ export declare const storySources: {
4
+ readonly Default: () => string;
5
+ readonly States: () => string;
6
+ };
7
+ export type StorySourceName = keyof typeof storySources;
8
+ //# sourceMappingURL=DurationInput.stories.sources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DurationInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/DurationInput/DurationInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAkiB,CAAC;AAEvjB,eAAO,MAAM,MAAM,cAA4lB,CAAC;AAEhnB,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/DurationInput/DurationInput.stories.tsx
3
+ export const Default = () => "export const Default = () => (\n <Box width=\"100%\" p={8}>\n <Grid gap={8}>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <DurationInput label=\"Durée\" />\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <DurationInput label=\"Durée\" value=\"06:15\" />\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <DurationInput label=\"Durée\" value=\"01:30\" hint=\"Temps passé sur le terrain\" />\n </Grid.Column>\n </Grid>\n </Box>\n);";
4
+ export const States = () => "export const States = () => (\n <Box width=\"100%\" p={8}>\n <Grid gap={8}>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <DurationInput label=\"Erreur\" value=\"25:70\" error=\"Heure invalide (minutes 00–59)\" />\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <DurationInput label=\"Succès\" value=\"06:15\" success=\"Enregistré\" />\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <DurationInput label=\"Désactivé\" value=\"06:15\" disabled />\n </Grid.Column>\n </Grid>\n </Box>\n);";
5
+ export const storySources = {
6
+ Default,
7
+ States,
8
+ };
@@ -0,0 +1,2 @@
1
+ export * from './DurationInput';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/DurationInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './DurationInput';
@@ -11,18 +11,18 @@ declare const _default: {
11
11
  flexDirection: "column";
12
12
  alignItems: "center";
13
13
  justifyContent: "center";
14
- gap: import("@alveole/theme").Spacing;
15
- paddingTop: import("@alveole/theme").Spacing;
16
- paddingBottom: import("@alveole/theme").Spacing;
17
- paddingLeft: import("@alveole/theme").Spacing;
18
- paddingRight: import("@alveole/theme").Spacing;
14
+ gap: string | number;
15
+ paddingTop: string | number;
16
+ paddingBottom: string | number;
17
+ paddingLeft: string | number;
18
+ paddingRight: string | number;
19
19
  textAlign: "center";
20
20
  height: "100%" | undefined;
21
21
  width: "100%";
22
22
  };
23
23
  contenu: {
24
24
  display: "flex";
25
- gap: import("@alveole/theme").Spacing;
25
+ gap: string | number;
26
26
  alignItems: "center";
27
27
  textAlign: "center";
28
28
  flex: number | undefined;
@@ -35,13 +35,13 @@ declare const _default: {
35
35
  justifyContent: "center";
36
36
  color: string;
37
37
  backgroundColor: string;
38
- borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
39
- padding: import("@alveole/theme").Spacing;
38
+ borderRadius: import("@alveole/theme").Radius;
39
+ padding: string | number;
40
40
  };
41
41
  messageEtDescription: {
42
42
  display: "flex";
43
43
  flexDirection: "column";
44
- gap: import("@alveole/theme").Spacing;
44
+ gap: string | number;
45
45
  width: "100%";
46
46
  justifyContent: "center";
47
47
  };
@@ -67,7 +67,7 @@ declare const _default: {
67
67
  width: "100%" | undefined;
68
68
  display: "flex";
69
69
  flexDirection: "column";
70
- gap: import("@alveole/theme").Spacing;
70
+ gap: string | number;
71
71
  };
72
72
  };
73
73
  };
@@ -4,18 +4,18 @@ export declare const useStyles: () => {
4
4
  flexDirection: "column";
5
5
  alignItems: "center";
6
6
  justifyContent: "center";
7
- gap: import("@alveole/theme").Spacing;
8
- paddingTop: import("@alveole/theme").Spacing;
9
- paddingBottom: import("@alveole/theme").Spacing;
10
- paddingLeft: import("@alveole/theme").Spacing;
11
- paddingRight: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
18
+ gap: string | number;
19
19
  alignItems: "center";
20
20
  textAlign: "center";
21
21
  flex: number | undefined;
@@ -28,13 +28,13 @@ export declare const useStyles: () => {
28
28
  justifyContent: "center";
29
29
  color: string;
30
30
  backgroundColor: string;
31
- borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
32
- padding: import("@alveole/theme").Spacing;
31
+ borderRadius: import("@alveole/theme").Radius;
32
+ padding: string | number;
33
33
  };
34
34
  messageEtDescription: {
35
35
  display: "flex";
36
36
  flexDirection: "column";
37
- gap: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
74
- marginBottom: import("@alveole/theme").Spacing;
75
- paddingLeft: import("@alveole/theme").Spacing;
76
- paddingRight: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
136
- paddingTop: import("@alveole/theme").Spacing;
137
- paddingBottom: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
169
- paddingRight: import("@alveole/theme").Spacing;
170
- paddingTop: import("@alveole/theme").Spacing;
171
- paddingBottom: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
183
+ gap: string | number;
184
184
  alignItems: "flex-start";
185
- marginTop: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
64
- marginBottom: import("@alveole/theme").Spacing;
65
- paddingLeft: import("@alveole/theme").Spacing;
66
- paddingRight: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
126
- paddingTop: import("@alveole/theme").Spacing;
127
- paddingBottom: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
159
- paddingRight: import("@alveole/theme").Spacing;
160
- paddingTop: import("@alveole/theme").Spacing;
161
- paddingBottom: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
173
+ gap: string | number;
174
174
  alignItems: "flex-start";
175
- marginTop: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
17
- paddingRight: import("@alveole/theme").Spacing;
18
- paddingTop: import("@alveole/theme").Spacing;
19
- paddingBottom: import("@alveole/theme").Spacing;
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,EAC5C,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;8CAsN1B,CAAC"}
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,10 @@
1
+ export declare const useStyles: () => {
2
+ grid: {
3
+ flexDirection: "column";
4
+ };
5
+ container: {
6
+ flexDirection: "row";
7
+ flexWrap: "wrap";
8
+ };
9
+ };
10
+ //# sourceMappingURL=Grid.styles.d.ts.map
@@ -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,10 @@
1
+ import { makeStyles } from '@alveole/theme';
2
+ export const useStyles = makeStyles(() => ({
3
+ grid: {
4
+ flexDirection: 'column',
5
+ },
6
+ container: {
7
+ flexDirection: 'row',
8
+ flexWrap: 'wrap',
9
+ },
10
+ }));
@@ -0,0 +1,2 @@
1
+ export * from './Grid';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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: import("@alveole/theme").Spacing;
52
- paddingLeft: import("@alveole/theme").Spacing;
53
- paddingRight: import("@alveole/theme").Spacing;
54
- paddingTop: import("@alveole/theme").Spacing;
55
- paddingBottom: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
44
- paddingLeft: import("@alveole/theme").Spacing;
45
- paddingRight: import("@alveole/theme").Spacing;
46
- paddingTop: import("@alveole/theme").Spacing;
47
- paddingBottom: import("@alveole/theme").Spacing;
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: import("@alveole/theme").Spacing;
53
+ gap: string | number;
54
54
  };
55
55
  titleText: {
56
56
  color: string;
@@ -7,7 +7,7 @@ declare const _default: {
7
7
  styleFn: () => {
8
8
  inputHeading: {
9
9
  display: "flex";
10
- gap: import("@alveole/theme").Spacing;
10
+ gap: string | number;
11
11
  flexDirection: "column";
12
12
  };
13
13
  };
@@ -1,7 +1,7 @@
1
1
  export declare const useStyles: () => {
2
2
  inputHeading: {
3
3
  display: "flex";
4
- gap: import("@alveole/theme").Spacing;
4
+ gap: string | number;
5
5
  flexDirection: "column";
6
6
  };
7
7
  };