@alveole/components 0.13.2 → 0.14.1

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 (91) hide show
  1. package/dist/core/Image/Image.d.ts +11 -0
  2. package/dist/core/Image/Image.d.ts.map +1 -0
  3. package/dist/core/Image/Image.js +79 -0
  4. package/dist/core/Image/Image.stories.d.ts +21 -0
  5. package/dist/core/Image/Image.stories.d.ts.map +1 -0
  6. package/dist/core/Image/Image.stories.js +45 -0
  7. package/dist/core/Image/Image.style.d.ts +6 -0
  8. package/dist/core/Image/Image.style.d.ts.map +1 -0
  9. package/dist/core/Image/Image.style.js +6 -0
  10. package/dist/core/Image/index.d.ts +2 -0
  11. package/dist/core/Image/index.d.ts.map +1 -0
  12. package/dist/core/Image/index.js +1 -0
  13. package/dist/core/Metabase/Metabase.d.ts +11 -0
  14. package/dist/core/Metabase/Metabase.d.ts.map +1 -0
  15. package/dist/core/Metabase/Metabase.js +17 -0
  16. package/dist/core/Metabase/Metabase.stories.d.ts +20 -0
  17. package/dist/core/Metabase/Metabase.stories.d.ts.map +1 -0
  18. package/dist/core/Metabase/Metabase.stories.js +12 -0
  19. package/dist/core/Metabase/Metabase.styles.d.ts +11 -0
  20. package/dist/core/Metabase/Metabase.styles.d.ts.map +1 -0
  21. package/dist/core/Metabase/Metabase.styles.js +12 -0
  22. package/dist/core/Metabase/Metabase.web.d.ts +20 -0
  23. package/dist/core/Metabase/Metabase.web.d.ts.map +1 -0
  24. package/dist/core/Metabase/Metabase.web.js +53 -0
  25. package/dist/core/Metabase/index.d.ts +2 -0
  26. package/dist/core/Metabase/index.d.ts.map +1 -0
  27. package/dist/core/Metabase/index.js +1 -0
  28. package/dist/core/Version/Version.d.ts +5 -0
  29. package/dist/core/Version/Version.d.ts.map +1 -0
  30. package/dist/core/Version/Version.js +15 -0
  31. package/dist/core/Version/Version.stories.d.ts +21 -0
  32. package/dist/core/Version/Version.stories.d.ts.map +1 -0
  33. package/dist/core/Version/Version.stories.js +12 -0
  34. package/dist/core/Version/Version.styles.d.ts +12 -0
  35. package/dist/core/Version/Version.styles.d.ts.map +1 -0
  36. package/dist/core/Version/Version.styles.js +9 -0
  37. package/dist/core/Version/index.d.ts +2 -0
  38. package/dist/core/Version/index.d.ts.map +1 -0
  39. package/dist/core/Version/index.js +1 -0
  40. package/dist/core/index.d.ts +3 -0
  41. package/dist/core/index.d.ts.map +1 -1
  42. package/dist/core/index.js +3 -0
  43. package/dist/index.d.ts +1 -0
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +1 -0
  46. package/dist/stories/index.d.ts +6 -0
  47. package/dist/stories/index.d.ts.map +1 -1
  48. package/dist/stories/index.js +8 -0
  49. package/dist/ui/Button/Button.d.ts +31 -0
  50. package/dist/ui/Button/Button.d.ts.map +1 -0
  51. package/dist/ui/Button/Button.js +141 -0
  52. package/dist/ui/Button/Button.stories.d.ts +249 -0
  53. package/dist/ui/Button/Button.stories.d.ts.map +1 -0
  54. package/dist/ui/Button/Button.stories.js +20 -0
  55. package/dist/ui/Button/Button.styles.d.ts +222 -0
  56. package/dist/ui/Button/Button.styles.d.ts.map +1 -0
  57. package/dist/ui/Button/Button.styles.js +194 -0
  58. package/dist/ui/Button/ButtonIcon.d.ts +26 -0
  59. package/dist/ui/Button/ButtonIcon.d.ts.map +1 -0
  60. package/dist/ui/Button/ButtonIcon.js +100 -0
  61. package/dist/ui/Button/index.d.ts +3 -0
  62. package/dist/ui/Button/index.d.ts.map +1 -0
  63. package/dist/ui/Button/index.js +2 -0
  64. package/dist/ui/Divider/Divider.d.ts +4 -0
  65. package/dist/ui/Divider/Divider.d.ts.map +1 -0
  66. package/dist/ui/Divider/Divider.js +7 -0
  67. package/dist/ui/Divider/Divider.stories.d.ts +18 -0
  68. package/dist/ui/Divider/Divider.stories.d.ts.map +1 -0
  69. package/dist/ui/Divider/Divider.stories.js +13 -0
  70. package/dist/ui/Divider/Divider.styles.d.ts +8 -0
  71. package/dist/ui/Divider/Divider.styles.d.ts.map +1 -0
  72. package/dist/ui/Divider/Divider.styles.js +8 -0
  73. package/dist/ui/Divider/index.d.ts +2 -0
  74. package/dist/ui/Divider/index.d.ts.map +1 -0
  75. package/dist/ui/Divider/index.js +1 -0
  76. package/dist/ui/LucideIcon/LucideIcon.d.ts +5 -0
  77. package/dist/ui/LucideIcon/LucideIcon.d.ts.map +1 -0
  78. package/dist/ui/LucideIcon/LucideIcon.js +23 -0
  79. package/dist/ui/LucideIcon/LucideIcon.props.d.ts +4135 -0
  80. package/dist/ui/LucideIcon/LucideIcon.props.d.ts.map +1 -0
  81. package/dist/ui/LucideIcon/LucideIcon.props.js +9 -0
  82. package/dist/ui/LucideIcon/LucideIcon.stories.d.ts +2073 -0
  83. package/dist/ui/LucideIcon/LucideIcon.stories.d.ts.map +1 -0
  84. package/dist/ui/LucideIcon/LucideIcon.stories.js +16 -0
  85. package/dist/ui/LucideIcon/index.d.ts +3 -0
  86. package/dist/ui/LucideIcon/index.d.ts.map +1 -0
  87. package/dist/ui/LucideIcon/index.js +2 -0
  88. package/dist/ui/index.d.ts +4 -0
  89. package/dist/ui/index.d.ts.map +1 -0
  90. package/dist/ui/index.js +3 -0
  91. package/package.json +7 -2
@@ -0,0 +1,194 @@
1
+ import { makeStyles } from '@alveole/theme';
2
+ export const useStyles = makeStyles(({ text, color, spacing, shadows, radius }) => ({
3
+ container: {
4
+ borderTopLeftRadius: radius('md'),
5
+ borderBottomLeftRadius: radius('md'),
6
+ borderTopRightRadius: radius('md'),
7
+ borderBottomRightRadius: radius('md'),
8
+ display: 'flex',
9
+ flexDirection: 'row',
10
+ justifyContent: 'center',
11
+ alignItems: 'center',
12
+ gap: spacing('050'),
13
+ marginTop: 'auto',
14
+ marginBottom: 'auto',
15
+ },
16
+ buttonLoader: {
17
+ position: 'absolute',
18
+ right: spacing('075'),
19
+ },
20
+ title: {
21
+ cursor: 'pointer',
22
+ minWidth: spacing('200'),
23
+ textAlign: 'center',
24
+ },
25
+ // Variants
26
+ primaryTitle: {
27
+ color: color.light.text['inverted-primary'],
28
+ },
29
+ primaryContainer: {
30
+ backgroundColor: color.light.background['action-high-primary'],
31
+ ...shadows(2),
32
+ },
33
+ primaryTitleHover: {
34
+ color: color.light.text['inverted-primary'],
35
+ },
36
+ primaryContainerHover: {
37
+ backgroundColor: color.light.background['action-high-primary-hover'],
38
+ },
39
+ secondaryTitle: {
40
+ color: color.light.text['action-high-grey'],
41
+ },
42
+ secondaryContainer: {
43
+ borderWidth: 1,
44
+ borderColor: color.light.border['default-grey'],
45
+ backgroundColor: color.light.background['default-grey'],
46
+ },
47
+ secondaryTitleHover: {
48
+ color: color.light.text['action-high-grey'],
49
+ },
50
+ secondaryContainerHover: {
51
+ borderColor: color.light.border['default-grey'],
52
+ backgroundColor: color.light.background['transparent-hover'],
53
+ },
54
+ tertiaryTitle: {
55
+ color: color.light.text['action-high-grey'],
56
+ },
57
+ tertiaryContainer: {},
58
+ tertiaryTitleHover: {
59
+ color: color.light.text['action-high-grey'],
60
+ },
61
+ tertiaryContainerHover: {
62
+ backgroundColor: color.light.background['transparent-hover'],
63
+ },
64
+ linkTitle: {
65
+ color: color.text.link.default,
66
+ },
67
+ linkContainer: {
68
+ backgroundColor: color.background.button.tertiary.default,
69
+ },
70
+ linkTitleHover: {
71
+ color: color.text.link.hover,
72
+ },
73
+ linkContainerHover: {
74
+ backgroundColor: color.background.button.tertiary.default,
75
+ },
76
+ // Sizes
77
+ xsContainer: {
78
+ paddingLeft: spacing('075'),
79
+ paddingRight: spacing('075'),
80
+ paddingTop: spacing('050'),
81
+ paddingBottom: spacing('050'),
82
+ borderTopLeftRadius: radius('sm'),
83
+ borderBottomLeftRadius: radius('sm'),
84
+ borderTopRightRadius: radius('sm'),
85
+ borderBottomRightRadius: radius('sm'),
86
+ },
87
+ smContainer: {
88
+ paddingLeft: spacing('3V'),
89
+ paddingRight: spacing('3V'),
90
+ paddingTop: spacing('1,5V'),
91
+ paddingBottom: spacing('1,5V'),
92
+ borderTopLeftRadius: radius('sm'),
93
+ borderBottomLeftRadius: radius('sm'),
94
+ borderTopRightRadius: radius('sm'),
95
+ borderBottomRightRadius: radius('sm'),
96
+ },
97
+ mdContainer: {
98
+ paddingLeft: spacing('2W'),
99
+ paddingRight: spacing('2W'),
100
+ paddingTop: 10, // valeur mise en dure dans le Figma
101
+ paddingBottom: 10, // valeur mise en dure dans le Figma
102
+ },
103
+ lgContainer: {
104
+ paddingLeft: spacing('3W'),
105
+ paddingRight: spacing('3W'),
106
+ paddingTop: spacing('3V'),
107
+ paddingBottom: spacing('3V'),
108
+ },
109
+ smContainerIconOnly: {
110
+ padding: spacing('1W'),
111
+ },
112
+ mdContainerIconOnly: {
113
+ padding: spacing('1W'),
114
+ },
115
+ lgContainerIconOnly: {
116
+ padding: spacing('3V'),
117
+ },
118
+ xsTitle: text['Corps de texte'].XS.Regular,
119
+ smTitle: text['Corps de texte'].SM.Medium,
120
+ mdTitle: text['Corps de texte'].SM.Medium,
121
+ lgTitle: text['Corps de texte'].MD.Medium,
122
+ smContainerStartIcon: {
123
+ paddingLeft: spacing('050'),
124
+ },
125
+ mdContainerStartIcon: {
126
+ paddingLeft: spacing('075'),
127
+ },
128
+ lgContainerStartIcon: {
129
+ paddingLeft: spacing('100'),
130
+ },
131
+ smContainerEndIcon: {
132
+ paddingRight: spacing('050'),
133
+ },
134
+ mdContainerEndIcon: {
135
+ paddingRight: spacing('075'),
136
+ },
137
+ lgContainerEndIcon: {
138
+ paddingRight: spacing('100'),
139
+ },
140
+ // Disabled
141
+ primaryTitleDisabled: {
142
+ cursor: 'not-allowed',
143
+ color: color.light.text['disabled-grey'],
144
+ },
145
+ primaryContainerDisabled: {
146
+ cursor: 'not-allowed',
147
+ backgroundColor: color.light.background['disabled-grey'],
148
+ },
149
+ secondaryTitleDisabled: {
150
+ cursor: 'not-allowed',
151
+ color: color.light.text['disabled-grey'],
152
+ },
153
+ secondaryContainerDisabled: {
154
+ cursor: 'not-allowed',
155
+ },
156
+ tertiaryTitleDisabled: {
157
+ cursor: 'not-allowed',
158
+ color: color.light.text['disabled-grey'],
159
+ },
160
+ tertiaryContainerDisabled: {
161
+ cursor: 'not-allowed',
162
+ },
163
+ // Icons
164
+ primaryIcon: {
165
+ color: color.light.text['inverted-primary'],
166
+ },
167
+ primaryIconHover: {
168
+ color: color.light.text['inverted-primary'],
169
+ },
170
+ primaryIconDisabled: {
171
+ color: color.light.text['disabled-grey'],
172
+ },
173
+ secondaryIcon: {
174
+ color: color.light.text['action-high-grey'],
175
+ },
176
+ secondaryIconHover: {
177
+ color: color.light.text['action-high-grey'],
178
+ },
179
+ secondaryIconDisabled: {
180
+ color: color.light.text['disabled-grey'],
181
+ },
182
+ tertiaryIcon: {
183
+ color: color.light.text['action-high-grey'],
184
+ },
185
+ tertiaryIconHover: {
186
+ color: color.light.text['action-high-grey'],
187
+ },
188
+ tertiaryIconDisabled: {
189
+ color: color.light.text['disabled-grey'],
190
+ },
191
+ linkIcon: {
192
+ color: color.text.link.default,
193
+ },
194
+ }));
@@ -0,0 +1,26 @@
1
+ import { PressableProps } from 'react-native';
2
+ import { IconProps } from '../LucideIcon';
3
+ export type ButtonIconProps = Omit<PressableProps, 'children' | 'style'> & {
4
+ size?: 'sm' | 'md' | 'lg';
5
+ iconSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
6
+ variant: 'primary' | 'secondary' | 'tertiary';
7
+ } & {
8
+ style?: {
9
+ width?: number | string;
10
+ height?: number | string;
11
+ borderTop?: string;
12
+ borderBottom?: string;
13
+ borderLeft?: string;
14
+ borderRight?: string;
15
+ borderRadius?: number;
16
+ borderTopLeftRadius?: number;
17
+ borderBottomLeftRadius?: number;
18
+ borderTopRightRadius?: number;
19
+ borderBottomRightRadius?: number;
20
+ backgroundColor?: string;
21
+ };
22
+ } & {
23
+ icon: IconProps['name'] | number;
24
+ };
25
+ export declare const ButtonIcon: (props: ButtonIconProps) => import("react/jsx-runtime").JSX.Element;
26
+ //# sourceMappingURL=ButtonIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonIcon.d.ts","sourceRoot":"","sources":["../../../src/ui/Button/ButtonIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,cAAc,EAA8B,MAAM,cAAc,CAAC;AAErF,OAAO,EAAE,SAAS,EAAc,MAAM,eAAe,CAAC;AAOtD,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG;IACzE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC5C,OAAO,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;CAC/C,GAAG;IAEF,KAAK,CAAC,EAAE;QACN,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACzB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,sBAAsB,CAAC,EAAE,MAAM,CAAC;QAChC,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,uBAAuB,CAAC,EAAE,MAAM,CAAC;QACjC,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;CACH,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,MAAM,CAAA;CAAE,CAAC;AAEzC,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,4CAyFhD,CAAC"}
@@ -0,0 +1,100 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Pressable } from 'react-native';
3
+ import { Typography } from '../../core';
4
+ import { LucideIcon } from '../LucideIcon';
5
+ import { useStyles } from './Button.styles';
6
+ export const ButtonIcon = (props) => {
7
+ const { size, variant, disabled, style, ...buttonProps } = props;
8
+ let { iconSize } = props;
9
+ const styles = useStyles();
10
+ const containerSize = size === 'sm'
11
+ ? styles.smContainerIconOnly
12
+ : size === 'lg'
13
+ ? styles.lgContainerIconOnly
14
+ : styles.mdContainerIconOnly;
15
+ const containerStyle = (state) => {
16
+ let applicableStyles = styles.container;
17
+ if (variant === 'primary') {
18
+ applicableStyles = { ...applicableStyles, ...styles.primaryContainer };
19
+ if (disabled)
20
+ applicableStyles = { ...applicableStyles, ...styles.primaryContainerDisabled };
21
+ else if (!!state.hovered)
22
+ applicableStyles = { ...applicableStyles, ...styles.primaryContainerHover };
23
+ }
24
+ else if (variant === 'secondary') {
25
+ applicableStyles = { ...applicableStyles, ...styles.secondaryContainer };
26
+ if (disabled)
27
+ applicableStyles = { ...applicableStyles, ...styles.secondaryContainerDisabled };
28
+ else if (!!state.hovered)
29
+ applicableStyles = { ...applicableStyles, ...styles.secondaryContainerHover };
30
+ }
31
+ else if (variant === 'tertiary') {
32
+ applicableStyles = { ...applicableStyles, ...styles.tertiaryContainer };
33
+ if (disabled)
34
+ applicableStyles = { ...applicableStyles, ...styles.tertiaryContainerDisabled };
35
+ else if (!!state.hovered)
36
+ applicableStyles = { ...applicableStyles, ...styles.tertiaryContainerHover };
37
+ }
38
+ return { ...applicableStyles, ...containerSize, ...(style ?? {}) };
39
+ };
40
+ const iconStyle = (state) => {
41
+ if (!iconSize) {
42
+ iconSize = size === 'lg' ? 'lg' : size === 'sm' ? 'sm' : 'md';
43
+ }
44
+ if (variant === 'primary') {
45
+ if (disabled)
46
+ return { size: iconSize, color: styles.primaryIconDisabled.color };
47
+ else if (state.hovered)
48
+ return { size: iconSize, color: styles.primaryIconHover.color };
49
+ return { size: iconSize, color: styles.primaryIcon.color };
50
+ }
51
+ else if (variant === 'secondary') {
52
+ if (disabled)
53
+ return { size: iconSize, color: styles.secondaryIconDisabled.color };
54
+ else if (state.hovered)
55
+ return { size: iconSize, color: styles.secondaryIconHover.color };
56
+ return { size: iconSize, color: styles.secondaryIcon.color };
57
+ }
58
+ else if (variant === 'tertiary') {
59
+ if (disabled)
60
+ return { size: iconSize, color: styles.tertiaryIconDisabled.color };
61
+ else if (state.hovered)
62
+ return { size: iconSize, color: styles.tertiaryIconHover.color };
63
+ return { size: iconSize, color: styles.tertiaryIcon.color };
64
+ }
65
+ return { size: iconSize };
66
+ };
67
+ const textStyle = (state) => {
68
+ let applicableStyles = styles.title;
69
+ if (variant === 'primary') {
70
+ applicableStyles = { ...applicableStyles, ...styles.primaryTitle };
71
+ if (disabled)
72
+ applicableStyles = { ...applicableStyles, ...styles.primaryTitleDisabled };
73
+ else if (state.hovered)
74
+ applicableStyles = { ...applicableStyles, ...styles.primaryTitleHover };
75
+ }
76
+ else if (variant === 'secondary') {
77
+ applicableStyles = { ...applicableStyles, ...styles.secondaryTitle };
78
+ if (disabled)
79
+ applicableStyles = { ...applicableStyles, ...styles.secondaryTitleDisabled };
80
+ else if (state.hovered)
81
+ applicableStyles = { ...applicableStyles, ...styles.secondaryTitleHover };
82
+ }
83
+ else if (variant === 'tertiary') {
84
+ applicableStyles = { ...applicableStyles, ...styles.tertiaryTitle };
85
+ if (disabled)
86
+ applicableStyles = { ...applicableStyles, ...styles.tertiaryTitleDisabled };
87
+ else if (state.hovered)
88
+ applicableStyles = { ...applicableStyles, ...styles.tertiaryTitleHover };
89
+ }
90
+ else if (variant === 'link') {
91
+ applicableStyles = { ...applicableStyles, ...styles.linkTitle };
92
+ if (disabled)
93
+ applicableStyles = { ...applicableStyles, ...styles.tertiaryTitleDisabled };
94
+ else if (state.hovered)
95
+ applicableStyles = { ...applicableStyles, ...styles.linkTitleHover };
96
+ }
97
+ return { ...applicableStyles, minWidth: 16 };
98
+ };
99
+ return (_jsx(Pressable, { style: containerStyle, disabled: disabled, ...buttonProps, children: (state) => typeof props.icon === 'number' ? (_jsx(Typography, { style: { ...textStyle({ hovered: !!state.hovered }) }, children: props.icon })) : (_jsx(LucideIcon, { name: props.icon, ...iconStyle({ hovered: !!state.hovered }) })) }));
100
+ };
@@ -0,0 +1,3 @@
1
+ export * from './Button';
2
+ export * from './ButtonIcon';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Button';
2
+ export * from './ButtonIcon';
@@ -0,0 +1,4 @@
1
+ import { BoxProps } from '../../core';
2
+ export type DividerProps = Omit<BoxProps, 'children'>;
3
+ export declare const Divider: (props: DividerProps) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=Divider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/ui/Divider/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;AAEtD,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,4CAG1C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Box } from '../../core';
3
+ import { useStyles } from './Divider.styles';
4
+ export const Divider = (props) => {
5
+ const styles = useStyles();
6
+ return _jsx(Box, { tag: "divider", style: styles.divider, ...props });
7
+ };
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ title: string;
3
+ tags: ["Kit"];
4
+ experimental: false;
5
+ figmaURL: string;
6
+ description: string;
7
+ component: (props: import("./Divider").DividerProps) => import("react/jsx-runtime").JSX.Element;
8
+ styleFn: () => {
9
+ divider: {
10
+ width: "100%";
11
+ height: number;
12
+ backgroundColor: "#DEE3EC";
13
+ };
14
+ };
15
+ };
16
+ export default _default;
17
+ export declare const Default: () => import("react/jsx-runtime").JSX.Element;
18
+ //# sourceMappingURL=Divider.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Divider.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Divider/Divider.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAIA,wBAQkB;AAElB,eAAO,MAAM,OAAO,+CAAmC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Divider } from './Divider';
3
+ import { useStyles } from './Divider.styles';
4
+ export default {
5
+ title: 'Divider',
6
+ tags: ['Kit'],
7
+ experimental: false,
8
+ figmaURL: 'https://www.figma.com/design/xJz8Z6vfrnZPKTtRbuT2W8/Composants?node-id=1002-15729',
9
+ description: 'Sérateur. Composant de type Box - Equivalent <hr/>.',
10
+ component: Divider,
11
+ styleFn: useStyles,
12
+ };
13
+ export const Default = () => _jsx(Divider, { mt: 8, mb: 16 });
@@ -0,0 +1,8 @@
1
+ export declare const useStyles: () => {
2
+ divider: {
3
+ width: "100%";
4
+ height: number;
5
+ backgroundColor: "#DEE3EC";
6
+ };
7
+ };
8
+ //# sourceMappingURL=Divider.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Divider.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Divider/Divider.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;CAMnB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { makeStyles } from '@alveole/theme';
2
+ export const useStyles = makeStyles(({ color }) => ({
3
+ divider: {
4
+ width: '100%',
5
+ height: 1,
6
+ backgroundColor: color.light.border['default-grey'],
7
+ },
8
+ }));
@@ -0,0 +1,2 @@
1
+ export * from './Divider';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Divider/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './Divider';
@@ -0,0 +1,5 @@
1
+ import { LucideIconProps } from './LucideIcon.props';
2
+ export declare const strokeWidth = 1.5;
3
+ export type IconProps = LucideIconProps;
4
+ export declare const LucideIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=LucideIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LucideIcon.d.ts","sourceRoot":"","sources":["../../../src/ui/LucideIcon/LucideIcon.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAoC,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEvF,eAAO,MAAM,WAAW,MAAM,CAAC;AAE/B,MAAM,MAAM,SAAS,GAAG,eAAe,CAAC;AAExC,eAAO,MAAM,UAAU,GAAI,OAAO,SAAS,4CAqC1C,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as LabIcons from '@lucide/lab';
3
+ import { Icon as BaseIcon, icons } from 'lucide-react-native';
4
+ import { isLucideIconName } from './LucideIcon.props';
5
+ export const strokeWidth = 1.5;
6
+ export const LucideIcon = (props) => {
7
+ const { style, size, color } = props;
8
+ const iconMap = icons;
9
+ const sizeMap = {
10
+ xs: 12,
11
+ sm: 16,
12
+ md: 24,
13
+ lg: 32,
14
+ xl: 64,
15
+ };
16
+ const defaultStyle = { stroke: color ?? 'currentColor' };
17
+ const mergedStyle = [defaultStyle, style];
18
+ if (isLucideIconName(props.name)) {
19
+ const IconComponent = iconMap[props.name];
20
+ return (_jsx(IconComponent, { style: mergedStyle, strokeWidth: strokeWidth, color: color, size: sizeMap[size] }));
21
+ }
22
+ return (_jsx(BaseIcon, { iconNode: LabIcons?.[props.name], style: mergedStyle, strokeWidth: strokeWidth, color: color, size: sizeMap[size] }));
23
+ };