@alveole/components 0.31.1 → 0.31.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"PageBackground.d.ts","sourceRoot":"","sources":["../../../src/core/Page/PageBackground.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,cAAc,mBAAmB,4CAa/D,CAAC"}
1
+ {"version":3,"file":"PageBackground.d.ts","sourceRoot":"","sources":["../../../src/core/Page/PageBackground.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,cAAc,mBAAmB,4CAa/D,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Colors } from '@alveole/theme';
2
3
  import { LinearGradient } from 'expo-linear-gradient';
3
4
  import { useStyles } from './Page.styles';
4
- import { Colors } from '@alveole/theme';
5
5
  export const PageBackground = ({ children }) => {
6
6
  const styles = useStyles();
7
7
  return (_jsx(LinearGradient, { colors: [Colors.Neutre['1000'], Colors.Neutre['975']], start: { x: 0.5, y: 0 }, end: { x: 0.5, y: 1 }, style: styles.gradientBackground, children: children }));
@@ -1 +1 @@
1
- {"version":3,"file":"ActionMenuItem.d.ts","sourceRoot":"","sources":["../../../src/ui/ActionMenu/ActionMenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,QAAQ,EAAc,MAAM,YAAY,CAAC;AACvD,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAI5D,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG;IAC7D,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,4CAmCxD,CAAC"}
1
+ {"version":3,"file":"ActionMenuItem.d.ts","sourceRoot":"","sources":["../../../src/ui/ActionMenu/ActionMenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,QAAQ,EAAc,MAAM,YAAY,CAAC;AACvD,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAI5D,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG;IAC7D,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,4CA2CxD,CAAC"}
@@ -11,5 +11,5 @@ export const ActionMenuItem = (props) => {
11
11
  const titleStyleSelected = selected ? styles.sidebarItemTitleSelectedDesktop : {};
12
12
  const sidebarItemHover = selected ? styles.sidebarItemCurrentHover : styles.sidebarItemHover;
13
13
  const sidebarItemTitleDesktop = selected ? styles.sidebarItemTitleCurrentHoverDesktop : {};
14
- return (_jsx(Box, { tag: "action-menu-item", onPress: onPress, style: style, ...boxProps, children: _jsxs(Box, { style: { ...styles.sidebarItemContainerDesktop, ...actionMenuItemStyles.actionMenuItemContainerDesktop }, children: [selected && (_jsx(Box, { tag: "sidebar-item-indicator", style: styles.sidebarItemSelectedIndicator, children: _jsx(Box, { style: styles.sidebarItemSelectedIndicatorContent }) })), _jsxs(Box, { tag: "sidebar-item", style: { ...styles.sidebarItemDesktop, ...itemStyleSelected }, hoverStyle: { ...sidebarItemHover }, children: [icon && _jsx(LucideIcon, { size: "md", name: icon }), _jsx(Typography, { style: { ...styles.sidebarItemTitleDesktop, ...titleStyleSelected }, hoverStyle: { ...sidebarItemTitleDesktop }, children: title })] })] }) }));
14
+ return (_jsx(Box, { tag: "action-menu-item", onPress: onPress, style: style, ...boxProps, children: _jsxs(Box, { style: { ...styles.sidebarItemContainerDesktop, ...actionMenuItemStyles.actionMenuItemContainerDesktop }, children: [selected && (_jsx(Box, { tag: "sidebar-item-indicator", style: styles.sidebarItemSelectedIndicator, children: _jsx(Box, { style: styles.sidebarItemSelectedIndicatorContent }) })), _jsxs(Box, { tag: "sidebar-item", style: { ...styles.sidebarItemDesktop, ...itemStyleSelected }, hoverStyle: { ...sidebarItemHover }, children: [icon && (_jsx(LucideIcon, { size: "md", name: icon, color: selected ? styles.sidebarItemTitleSelectedDesktop.color : styles.sidebarItemTitleSelectedDesktop.stroke })), _jsx(Typography, { style: { ...styles.sidebarItemTitleDesktop, ...titleStyleSelected }, hoverStyle: { ...sidebarItemTitleDesktop }, children: title })] })] }) }));
15
15
  };
@@ -15,6 +15,7 @@ export type ButtonProps = Omit<PressableProps, 'children' | 'style'> & {
15
15
  borderNone?: boolean;
16
16
  leftAlign?: boolean;
17
17
  type?: 'button' | 'submit';
18
+ active?: boolean;
18
19
  isLoading?: boolean;
19
20
  };
20
21
  export declare const Button: React.ForwardRefExoticComponent<Omit<PressableProps, "children" | "style"> & {
@@ -30,6 +31,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<PressableProps
30
31
  borderNone?: boolean;
31
32
  leftAlign?: boolean;
32
33
  type?: "button" | "submit";
34
+ active?: boolean;
33
35
  isLoading?: boolean;
34
36
  } & React.RefAttributes<View>>;
35
37
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","source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;cACnB,SAAS,CAAC,MAAM,CAAC;eAChB,OAAO;qBACD,QAAQ;gBACb,OAAO;gBACP,OAAO;iBACN,OAAO;gBACR,OAAO;WACZ,QAAQ,GAAG,QAAQ;aACjB,OAAO;gBACJ,OAAO;8BA4MnB,CAAC"}
@@ -5,7 +5,7 @@ import { Box, Typography } from '../../core';
5
5
  import { LucideIcon } from '../LucideIcon';
6
6
  import { useStyles } from './Button.styles';
7
7
  export const Button = React.forwardRef(function Button(props, ref) {
8
- const { title, type, size, variant, disabled, startIcon, endIcon, noPadding, borderNone, leftAlign, isLoading, selected, fullWidth = false, ContainerProps = {}, ...buttonProps } = props;
8
+ const { title, type, size, variant, disabled, startIcon, endIcon, noPadding, borderNone, leftAlign, isLoading, selected, fullWidth = false, ContainerProps = {}, active = false, ...buttonProps } = props;
9
9
  const { style, hoverStyle, ...containerProps } = ContainerProps;
10
10
  const styles = useStyles();
11
11
  const containerSize = size === 'sm'
@@ -42,35 +42,35 @@ export const Button = React.forwardRef(function Button(props, ref) {
42
42
  applicableStyles = { ...applicableStyles, ...styles.primaryContainer };
43
43
  if (disabled)
44
44
  applicableStyles = { ...applicableStyles, ...styles.primaryContainerDisabled };
45
- else if (state?.pressed)
45
+ else if (state?.pressed || active)
46
46
  applicableStyles = { ...applicableStyles, ...styles.primaryContainerPressed };
47
47
  }
48
48
  else if (variant === 'secondary') {
49
49
  applicableStyles = { ...applicableStyles, ...styles.secondaryContainer };
50
50
  if (disabled)
51
51
  applicableStyles = { ...applicableStyles, ...styles.secondaryContainerDisabled };
52
- else if (state?.pressed)
52
+ else if (state?.pressed || active)
53
53
  applicableStyles = { ...applicableStyles, ...styles.secondaryContainerPressed };
54
54
  }
55
55
  else if (variant === 'tertiary') {
56
56
  applicableStyles = { ...applicableStyles, ...styles.tertiaryContainer };
57
57
  if (disabled)
58
58
  applicableStyles = { ...applicableStyles, ...styles.tertiaryContainerDisabled };
59
- else if (state?.pressed)
59
+ else if (state?.pressed || active)
60
60
  applicableStyles = { ...applicableStyles, ...styles.tertiaryContainerPressed };
61
61
  }
62
62
  else if (variant === 'danger') {
63
63
  applicableStyles = { ...applicableStyles, ...styles.dangerContainer };
64
64
  if (disabled)
65
65
  applicableStyles = { ...applicableStyles, ...styles.dangerContainerDisabled };
66
- else if (state?.pressed)
66
+ else if (state?.pressed || active)
67
67
  applicableStyles = { ...applicableStyles, ...styles.dangerContainerPressed };
68
68
  }
69
69
  else if (variant === 'link') {
70
70
  applicableStyles = { ...applicableStyles, ...styles.linkContainer };
71
71
  if (disabled)
72
72
  applicableStyles = { ...applicableStyles, ...styles.tertiaryContainerDisabled };
73
- else if (state?.pressed)
73
+ else if (state?.pressed || active)
74
74
  applicableStyles = { ...applicableStyles, ...styles.linkContainerPressed };
75
75
  }
76
76
  return {
@@ -17,6 +17,7 @@ declare const _default: {
17
17
  borderNone?: boolean;
18
18
  leftAlign?: boolean;
19
19
  type?: "button" | "submit";
20
+ active?: boolean;
20
21
  isLoading?: boolean;
21
22
  } & import("react").RefAttributes<import("react-native").View>>;
22
23
  styleFn: () => {
@@ -308,4 +309,5 @@ export declare const Link: () => import("react/jsx-runtime").JSX.Element;
308
309
  export declare const Icons: () => import("react/jsx-runtime").JSX.Element;
309
310
  export declare const FullWidth: () => import("react/jsx-runtime").JSX.Element;
310
311
  export declare const Selected: () => import("react/jsx-runtime").JSX.Element;
312
+ export declare const Active: () => import("react/jsx-runtime").JSX.Element;
311
313
  //# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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QjB,CAAC;AAEF,eAAO,MAAM,SAAS,+CAAkE,CAAC;AAEzF,eAAO,MAAM,QAAQ,+CAIpB,CAAC;AAEF,eAAO,MAAM,MAAM,+CAKlB,CAAC"}
@@ -21,3 +21,4 @@ export const Link = () => (_jsxs(_Fragment, { children: [_jsx(Typography, { chil
21
21
  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
22
  export const FullWidth = () => _jsx(Button, { variant: "primary", title: "Full Width", fullWidth: true });
23
23
  export const Selected = () => (_jsx(Box, { display: "flex", flexDirection: "row", gap: 4, children: _jsx(Button, { variant: "secondary", title: "Selected", selected: true }) }));
24
+ export const Active = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 4, children: [_jsx(Typography, { children: "Utilis\u00E9 quand le bouton est actif (ex: quand un menu est ouvert)" }), _jsx(Button, { variant: "secondary", title: "Active", active: true })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/ui/Popover/Popover.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAyC,YAAY,IAAI,mBAAmB,EAAU,MAAM,SAAS,CAAC;AAG7G,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC7D,MAAM,MAAM,YAAY,GAAG,aAAa,GACtC,KAAK,CAAC,iBAAiB,CAAC;IACtB,SAAS,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAC;IAC5C,aAAa,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAC;IAC/D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACnC,CAAC,CAAC;AAEL,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,4CA4D1C,CAAC"}
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/ui/Popover/Popover.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAyC,YAAY,IAAI,mBAAmB,EAAU,MAAM,SAAS,CAAC;AAG7G,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC7D,MAAM,MAAM,YAAY,GAAG,aAAa,GACtC,KAAK,CAAC,iBAAiB,CAAC;IACtB,SAAS,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAC;IAC5C,aAAa,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAC;IAC/D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACnC,CAAC,CAAC;AAEL,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,4CA2D1C,CAAC"}
@@ -25,5 +25,7 @@ export const Popover = (props) => {
25
25
  };
26
26
  const maxH = popoverStyles.maxH ?? 500;
27
27
  const maxW = popoverStyles.maxW ?? '100%';
28
- return (_jsxs(TamaguiPopover, { placement: placement, disableFocus: true, open: open, onOpenChange: setOpen, children: [_jsx(TamaguiPopover.Trigger, { asChild: true, children: renderTrigger({ open }) }), _jsx(TamaguiPopover.Content, { trapFocus: false, disableFocusScope: true, overflow: "hidden", style: { maxHeight: scrollable ? maxH : undefined, maxWidth: maxW }, ...spacings, ...styles.content, children: scrollable ? (_jsx(YStack, { style: { overflow: 'hidden' }, children: _jsx(ScrollView, { style: { maxHeight: maxH - spacing('025') }, children: children }) })) : (children) })] }));
28
+ return (_jsxs(TamaguiPopover, { placement: placement, disableFocus: true, open: open, onOpenChange: setOpen, children: [_jsx(TamaguiPopover.Trigger, { asChild: true, children: renderTrigger({ open }) }), _jsx(TamaguiPopover.Content, { trapFocus: false, disableFocusScope: true, ...spacings,
29
+ // {...styles.tamaguiPopoverContent}
30
+ style: [{ maxHeight: scrollable ? maxH : undefined, maxWidth: scrollable ? maxW : undefined }, styles.content], children: scrollable ? (_jsx(YStack, { style: { overflow: 'hidden' }, children: _jsx(ScrollView, { style: { maxHeight: maxH - spacing('025') }, children: children }) })) : (children) })] }));
29
31
  };
@@ -8,9 +8,12 @@ declare const _default: {
8
8
  styleFn: () => {
9
9
  content: {
10
10
  display: "flex";
11
- padding: import("@alveole/theme").Spacing;
11
+ paddingTop: import("@alveole/theme").Spacing;
12
+ paddingBottom: import("@alveole/theme").Spacing;
13
+ paddingLeft: import("@alveole/theme").Spacing;
14
+ paddingRight: import("@alveole/theme").Spacing;
12
15
  flexDirection: "column";
13
- alignItems: "flex-start";
16
+ alignItems: "flex-end";
14
17
  borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
15
18
  borderWidth: number;
16
19
  borderStyle: "solid";
@@ -26,9 +29,12 @@ declare const _default: {
26
29
  shadowRadius: number;
27
30
  elevation: number;
28
31
  display: "flex";
29
- padding: import("@alveole/theme").Spacing;
32
+ paddingTop: import("@alveole/theme").Spacing;
33
+ paddingBottom: import("@alveole/theme").Spacing;
34
+ paddingLeft: import("@alveole/theme").Spacing;
35
+ paddingRight: import("@alveole/theme").Spacing;
30
36
  flexDirection: "column";
31
- alignItems: "flex-start";
37
+ alignItems: "flex-end";
32
38
  borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
33
39
  borderWidth: number;
34
40
  borderStyle: "solid";
@@ -37,9 +43,12 @@ declare const _default: {
37
43
  } | {
38
44
  boxShadow: string;
39
45
  display: "flex";
40
- padding: import("@alveole/theme").Spacing;
46
+ paddingTop: import("@alveole/theme").Spacing;
47
+ paddingBottom: import("@alveole/theme").Spacing;
48
+ paddingLeft: import("@alveole/theme").Spacing;
49
+ paddingRight: import("@alveole/theme").Spacing;
41
50
  flexDirection: "column";
42
- alignItems: "flex-start";
51
+ alignItems: "flex-end";
43
52
  borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
44
53
  borderWidth: number;
45
54
  borderStyle: "solid";
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Popover/Popover.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBASkB;AAElB,eAAO,MAAM,OAAO,+CAqCnB,CAAC"}
1
+ {"version":3,"file":"Popover.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Popover/Popover.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBASkB;AAElB,eAAO,MAAM,OAAO,+CAqCnB,CAAC"}
@@ -1,9 +1,12 @@
1
1
  export declare const useStyles: () => {
2
2
  content: {
3
3
  display: "flex";
4
- padding: import("@alveole/theme").Spacing;
4
+ paddingTop: import("@alveole/theme").Spacing;
5
+ paddingBottom: import("@alveole/theme").Spacing;
6
+ paddingLeft: import("@alveole/theme").Spacing;
7
+ paddingRight: import("@alveole/theme").Spacing;
5
8
  flexDirection: "column";
6
- alignItems: "flex-start";
9
+ alignItems: "flex-end";
7
10
  borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
8
11
  borderWidth: number;
9
12
  borderStyle: "solid";
@@ -19,9 +22,12 @@ export declare const useStyles: () => {
19
22
  shadowRadius: number;
20
23
  elevation: number;
21
24
  display: "flex";
22
- padding: import("@alveole/theme").Spacing;
25
+ paddingTop: import("@alveole/theme").Spacing;
26
+ paddingBottom: import("@alveole/theme").Spacing;
27
+ paddingLeft: import("@alveole/theme").Spacing;
28
+ paddingRight: import("@alveole/theme").Spacing;
23
29
  flexDirection: "column";
24
- alignItems: "flex-start";
30
+ alignItems: "flex-end";
25
31
  borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
26
32
  borderWidth: number;
27
33
  borderStyle: "solid";
@@ -30,9 +36,12 @@ export declare const useStyles: () => {
30
36
  } | {
31
37
  boxShadow: string;
32
38
  display: "flex";
33
- padding: import("@alveole/theme").Spacing;
39
+ paddingTop: import("@alveole/theme").Spacing;
40
+ paddingBottom: import("@alveole/theme").Spacing;
41
+ paddingLeft: import("@alveole/theme").Spacing;
42
+ paddingRight: import("@alveole/theme").Spacing;
34
43
  flexDirection: "column";
35
- alignItems: "flex-start";
44
+ alignItems: "flex-end";
36
45
  borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
37
46
  borderWidth: number;
38
47
  borderStyle: "solid";
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Popover/Popover.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAanB,CAAC"}
1
+ {"version":3,"file":"Popover.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Popover/Popover.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBnB,CAAC"}
@@ -2,9 +2,12 @@ import { makeStyles } from '@alveole/theme';
2
2
  export const useStyles = makeStyles(({ color, spacing, shadows, radius }) => ({
3
3
  content: {
4
4
  display: 'flex',
5
- padding: spacing('1W'),
5
+ paddingTop: spacing('1W'),
6
+ paddingBottom: spacing('1W'),
7
+ paddingLeft: spacing('1W'),
8
+ paddingRight: spacing('1W'),
6
9
  flexDirection: 'column',
7
- alignItems: 'flex-start',
10
+ alignItems: 'flex-end',
8
11
  borderRadius: radius('lg'),
9
12
  borderWidth: 1,
10
13
  borderStyle: 'solid',
@@ -123,16 +123,13 @@ declare const _default: {
123
123
  letterSpacing: 0;
124
124
  };
125
125
  sidebarItemTitleSelectedMobile: {
126
- color: "#D81B38";
127
- stroke: "#D81B38";
126
+ color: "#373A3F";
127
+ stroke: "#5F6571";
128
128
  fontFamily: "Barlow-Light" | "Barlow-Regular" | "Barlow-Medium" | "Barlow-SemiBold" | "Barlow-Bold" | "Inter-Light" | "Inter-Regular" | "Inter-Medium" | "Inter-SemiBold" | "Inter-Bold";
129
129
  fontSize: 16;
130
130
  lineHeight: 24;
131
131
  letterSpacing: 0;
132
132
  };
133
- sidebarItemIconSelectedMobile: {
134
- color: "#D81B38";
135
- };
136
133
  sidebarItemTitleDesktop: {
137
134
  color: "#151617";
138
135
  stroke: "#151617";
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Sidebar/Sidebar.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBASkB;AAgBlB,eAAO,MAAM,YAAY,+CAA+C,CAAC"}
1
+ {"version":3,"file":"Sidebar.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Sidebar/Sidebar.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBASkB;AAgBlB,eAAO,MAAM,YAAY,+CAA+C,CAAC"}
@@ -116,16 +116,13 @@ export declare const useStyles: () => {
116
116
  letterSpacing: 0;
117
117
  };
118
118
  sidebarItemTitleSelectedMobile: {
119
- color: "#D81B38";
120
- stroke: "#D81B38";
119
+ color: "#373A3F";
120
+ stroke: "#5F6571";
121
121
  fontFamily: "Barlow-Light" | "Barlow-Regular" | "Barlow-Medium" | "Barlow-SemiBold" | "Barlow-Bold" | "Inter-Light" | "Inter-Regular" | "Inter-Medium" | "Inter-SemiBold" | "Inter-Bold";
122
122
  fontSize: 16;
123
123
  lineHeight: 24;
124
124
  letterSpacing: 0;
125
125
  };
126
- sidebarItemIconSelectedMobile: {
127
- color: "#D81B38";
128
- };
129
126
  sidebarItemTitleDesktop: {
130
127
  color: "#151617";
131
128
  stroke: "#151617";
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Sidebar/Sidebar.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoJnB,CAAC"}
1
+ {"version":3,"file":"Sidebar.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Sidebar/Sidebar.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiJnB,CAAC"}
@@ -109,11 +109,8 @@ export const useStyles = makeStyles(({ text, color, spacing, isVariant, radius }
109
109
  },
110
110
  sidebarItemTitleSelectedMobile: {
111
111
  ...text['Corps de texte'].MD.Medium,
112
- color: '#D81B38',
113
- stroke: '#D81B38',
114
- },
115
- sidebarItemIconSelectedMobile: {
116
- color: '#D81B38',
112
+ color: color.light.text['default-grey'],
113
+ stroke: color.light.text['mention-grey'],
117
114
  },
118
115
  sidebarItemTitleDesktop: {
119
116
  ...text['Corps de texte'].MD.Regular,
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarItem.d.ts","sourceRoot":"","sources":["../../../src/ui/Sidebar/SidebarItem.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAK,MAAM,EAAmB,MAAM,YAAY,CAAC;AACxD,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAG5D,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,IAAI,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,oBAAoB,CAAC;AA0G3E,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,4CAIlD,CAAC"}
1
+ {"version":3,"file":"SidebarItem.d.ts","sourceRoot":"","sources":["../../../src/ui/Sidebar/SidebarItem.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAK,MAAM,EAAmB,MAAM,YAAY,CAAC;AACxD,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAG5D,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,IAAI,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,oBAAoB,CAAC;AA4G3E,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,4CAIlD,CAAC"}
@@ -39,7 +39,7 @@ const SidebarItemMobile = (props) => {
39
39
  else
40
40
  return (_jsx(A, { href: props.href, direction: props.direction, children: content }));
41
41
  };
42
- return renderItem(_jsxs(Box, { children: [isCurrentPage && (_jsx(Box, { tag: "sidebar-item-indicator", style: styles.sidebarItemSelectedIndicator, children: _jsx(Box, { style: styles.sidebarItemSelectedIndicatorContent }) })), _jsxs(Box, { tag: "sidebar-item", style: { ...styles.sidebarItemMobile, ...itemStyleSelected }, hoverStyle: { ...sidebarItemHover }, children: [icon && (_jsx(LucideIcon, { size: "md", name: icon, color: isCurrentPage ? styles.sidebarItemIconSelectedMobile.color : undefined })), _jsx(Typography, { style: { ...styles.sidebarItemTitleMobile, ...titleStyleSelected }, hoverStyle: { ...sidebarItemTitleMobile }, children: title })] })] }));
42
+ return renderItem(_jsxs(Box, { children: [isCurrentPage && (_jsx(Box, { tag: "sidebar-item-indicator", style: styles.sidebarItemSelectedIndicator, children: _jsx(Box, { style: styles.sidebarItemSelectedIndicatorContent }) })), _jsxs(Box, { tag: "sidebar-item", style: { ...styles.sidebarItemMobile, ...itemStyleSelected }, hoverStyle: { ...sidebarItemHover }, children: [icon && (_jsx(LucideIcon, { size: "md", name: icon, color: isCurrentPage ? styles.sidebarItemTitleSelectedMobile.color : styles.sidebarItemTitleSelectedMobile.stroke })), _jsx(Typography, { style: { ...styles.sidebarItemTitleMobile, ...titleStyleSelected }, hoverStyle: { ...sidebarItemTitleMobile }, children: title })] })] }));
43
43
  };
44
44
  export const SidebarItem = (props) => {
45
45
  const { isVariant } = useTheme();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alveole/components",
3
- "version": "0.31.1",
3
+ "version": "0.31.4",
4
4
  "description": "Shared UI components.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",