@tactics/toddle-styleguide 1.7.21 → 1.7.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tactics/toddle-styleguide",
3
- "version": "1.7.21",
3
+ "version": "1.7.22",
4
4
  "main": "index.tsx",
5
5
  "types": "index.d.ts",
6
6
  "prepublish": "tsc",
@@ -8,20 +8,20 @@ import {SmallText} from '../../atoms/paragraph-components';
8
8
  import { Icon } from '../../../icons';
9
9
 
10
10
  type InlineNoticeProps = {
11
- label: string;
11
+ label: string;
12
12
  };
13
13
 
14
14
  const InlineNotice = ({label}: InlineNoticeProps) => {
15
- const context = useContext(ThemeCtx);
16
- const styles = Stylesheet(context);
15
+ const context = useContext(ThemeCtx);
16
+ const styles = Stylesheet(context);
17
17
 
18
- return (
19
- <View style={styles.container}>
20
- <Icon name='exclamation-circle' style='regular' color={context.colors.ui.warning.dark} />
21
- <SmallText addStyle={styles.label} textColor={context.colors.ui.warning.dark}>
22
- {label}
23
- </SmallText>
24
- </View>
25
- );
18
+ return (
19
+ <View style={styles.container}>
20
+ <Icon name='exclamation-circle' style='regular' color={context.colors.main[0]} />
21
+ <SmallText addStyle={styles.label} textColor={context.colors.main[0]}>
22
+ {label}
23
+ </SmallText>
24
+ </View>
25
+ );
26
26
  };
27
27
  export {InlineNotice as InlineNotice};
@@ -2,21 +2,21 @@ import {StyleSheet} from 'react-native';
2
2
  import {Scale} from '../../../theme/scale';
3
3
 
4
4
  export const Stylesheet = (context) =>
5
- StyleSheet.create({
6
- container: {
7
- flexDirection: 'row',
8
- gap: Scale.m,
9
- width: '100%',
10
- backgroundColor: context.colors.ui.warning.xlight,
11
- borderRadius: Scale.s,
12
- alignItems: 'center',
13
- justifyContent: 'flex-start',
14
- paddingLeft: Scale.m,
15
- paddingTop: Scale.m,
16
- paddingRight: Scale.m,
17
- paddingBottom: Scale.m,
18
- },
19
- label: {
20
- flex: 1
21
- }
22
- });
5
+ StyleSheet.create({
6
+ container: {
7
+ flexDirection: 'row',
8
+ gap: Scale.m,
9
+ width: '100%',
10
+ backgroundColor: context.colors.main[9],
11
+ borderRadius: Scale.s,
12
+ alignItems: 'center',
13
+ justifyContent: 'flex-start',
14
+ paddingLeft: Scale.m,
15
+ paddingTop: Scale.m,
16
+ paddingRight: Scale.m,
17
+ paddingBottom: Scale.m,
18
+ },
19
+ label: {
20
+ flex: 1
21
+ }
22
+ });