@tactics/toddle-styleguide 1.7.8 → 1.7.9

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/index.d.ts CHANGED
@@ -64,6 +64,7 @@ import { Count } from './src/components/atoms/count/count.component';
64
64
  import { Amount } from './src/components/molecules/amount/amount.component';
65
65
  import { TimetableEditor } from './src/components/organisms/timetable-editor/timetable-editor.component';
66
66
  import { InlineError } from './src/components/molecules/inline-error/inline-error.component';
67
+ import { InlineNotice } from './src/components/molecules/inline-notice/inline-notice.component';
67
68
  import { BubbleAlignment } from './src/types/bubble-alignment.enum';
68
69
  import { KeyBoardTypes } from './src/types/keyboard-types.enum';
69
70
  import { Size } from './src/types/size.enum';
@@ -75,4 +76,4 @@ import { ToddleDateTime } from './src/utilities/toddle-datetime/toddle-datetime.
75
76
  import { ThemeCtx } from './src/context/theme.context';
76
77
  import { Scale } from './src/theme/scale/index';
77
78
  import CreateResponsiveStyle from './src/theme/responsive/index';
78
- export { AllCapsHeading, Avatar, BackgroundGradient, BlockedMessage, Button, Calendar, CalendarSelect, CancelLink, Check, Checkbox, ChildListItem, ContactItem, ContactRole, DateInput, DaySelect, DefaultSelect, DepartmentLogo, FilterRange, FilterTab, Footer, Heading1, Heading2, Heading3, Heading4, Icon, ImageBubble, IncrementInput, Info, JournalEntry, LanguageButton, Line, LoadingIndicator, Logo, MessageInput, Modal, MoreInfoButton, MyChildListItem, Paragraph, PasswordInput, PersonInfoCard, Pill, Popover, PopOverAction, PressableIcon, QuickFilter, QuickMessage, Search, SelectLink, SelectListItem, SelectPicker, SmallText, Snackbar, SplitContainer, Swipe, TabView, Tag, TextBubble, TextInput, TimeLine, TimePicker, TimeTracker, TinyText, WaveBackground, WideButton, BubbleAlignment, Initials, KeyBoardTypes, Size, ThemeCtx, ToddleDateTime, VisualState, CreateResponsiveStyle, Scale, TimetableEdit, ContextLabel, Count, Amount, TimetableEditor, TimeSlotRecord, TimeSlotSequence, InlineError };
79
+ export { AllCapsHeading, Avatar, BackgroundGradient, BlockedMessage, Button, Calendar, CalendarSelect, CancelLink, Check, Checkbox, ChildListItem, ContactItem, ContactRole, DateInput, DaySelect, DefaultSelect, DepartmentLogo, FilterRange, FilterTab, Footer, Heading1, Heading2, Heading3, Heading4, Icon, ImageBubble, IncrementInput, Info, JournalEntry, LanguageButton, Line, LoadingIndicator, Logo, MessageInput, Modal, MoreInfoButton, MyChildListItem, Paragraph, PasswordInput, PersonInfoCard, Pill, Popover, PopOverAction, PressableIcon, QuickFilter, QuickMessage, Search, SelectLink, SelectListItem, SelectPicker, SmallText, Snackbar, SplitContainer, Swipe, TabView, Tag, TextBubble, TextInput, TimeLine, TimePicker, TimeTracker, TinyText, WaveBackground, WideButton, BubbleAlignment, Initials, KeyBoardTypes, Size, ThemeCtx, ToddleDateTime, VisualState, CreateResponsiveStyle, Scale, TimetableEdit, ContextLabel, Count, Amount, TimetableEditor, TimeSlotRecord, TimeSlotSequence, InlineError, InlineNotice };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tactics/toddle-styleguide",
3
- "version": "1.7.8",
3
+ "version": "1.7.9",
4
4
  "main": "index.tsx",
5
5
  "types": "index.d.ts",
6
6
  "prepublish": "tsc",
@@ -44,7 +44,11 @@ const CalendarSelect = ({
44
44
  }}
45
45
  style={styles.arrowContainer}
46
46
  >
47
- <Icon style={'regular'} name={'chevron-left'} />
47
+ <Icon
48
+ style={'regular'}
49
+ name={'chevron-left'}
50
+ color={context.colors.main['9']}
51
+ />
48
52
  </Pressable>
49
53
 
50
54
  <Pressable
@@ -60,7 +64,7 @@ const CalendarSelect = ({
60
64
  </View>
61
65
  <View>
62
66
  <Paragraph textColor={context.colors.main['9']}>
63
- {visibleDate.toLocaleString(ToddleDateTime.DATE_MED)}
67
+ {visibleDate.toLocaleString({weekday: 'short', day: 'numeric', month: 'short', year: 'numeric'})}
64
68
  </Paragraph>
65
69
  </View>
66
70
  </Pressable>
@@ -71,7 +75,11 @@ const CalendarSelect = ({
71
75
  }}
72
76
  style={styles.arrowContainer}
73
77
  >
74
- <Icon style={'regular'} name={'chevron-right'} />
78
+ <Icon
79
+ style={'regular'}
80
+ name={'chevron-right'}
81
+ color={context.colors.main['9']}
82
+ />
75
83
  </Pressable>
76
84
  </View>
77
85
  );
@@ -9,7 +9,7 @@ export const CalendarSelectPreview = ({}: {}) => {
9
9
  );
10
10
  console.log(date);
11
11
  return (
12
- <View>
12
+ <View style={{alignItems: 'center'}}>
13
13
  <CalendarSelect
14
14
  onPressDate={() => console.log('open modal')}
15
15
  startDate={date}
@@ -1,9 +1,13 @@
1
1
  export function Stylesheet(context: any): {
2
2
  container: {
3
+ width: "auto";
3
4
  color: any;
4
5
  flexDirection: "row";
5
6
  alignItems: "center";
6
- justifyContent: "space-between";
7
+ justifyContent: "center";
8
+ backgroundColor: any;
9
+ borderRadius: number;
10
+ gap: number;
7
11
  };
8
12
  dateContainer: {
9
13
  flexDirection: "row";
@@ -13,7 +17,9 @@ export function Stylesheet(context: any): {
13
17
  paddingBottom: number;
14
18
  paddingLeft: number;
15
19
  paddingRight: number;
20
+ justifyContent: "space-between";
16
21
  alignItems: "center";
22
+ width: number;
17
23
  };
18
24
  arrowContainer: {
19
25
  width: number;
@@ -4,10 +4,14 @@ import {Scale} from '../../../theme/scale/index';
4
4
  export const Stylesheet = (context) =>
5
5
  StyleSheet.create({
6
6
  container: {
7
+ width: 'auto',
7
8
  color: context.colors.ui.white,
8
9
  flexDirection: 'row',
9
10
  alignItems: 'center',
10
- justifyContent: 'space-between',
11
+ justifyContent: 'center',
12
+ backgroundColor: context.colors.main[0],
13
+ borderRadius: Scale.xl,
14
+ gap: Scale.s
11
15
  },
12
16
  dateContainer: {
13
17
  flexDirection: 'row',
@@ -15,9 +19,11 @@ export const Stylesheet = (context) =>
15
19
  borderRadius: Scale.xl,
16
20
  paddingTop: Scale.s,
17
21
  paddingBottom: Scale.s,
18
- paddingLeft: Scale.l,
19
- paddingRight: Scale.l,
22
+ paddingLeft: Scale.m,
23
+ paddingRight: Scale.m,
24
+ justifyContent: 'space-between',
20
25
  alignItems: 'center',
26
+ width: 185
21
27
  },
22
28
  arrowContainer: {
23
29
  width: Scale.xxl,
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ type InlineNoticeProps = {
3
+ label: string;
4
+ };
5
+ declare const InlineNotice: ({ label }: InlineNoticeProps) => React.JSX.Element;
6
+ export { InlineNotice as InlineNotice };
@@ -9,6 +9,7 @@ export declare class TimeSlotRecord {
9
9
  static fromJson(json: TimeSlotRecordJSON): TimeSlotRecord;
10
10
  static fromEmpty(): TimeSlotRecord;
11
11
  static fromRecord(seq: TimeSlotRecord): TimeSlotRecord;
12
+ isEmpty(): boolean;
12
13
  isComplete(): boolean;
13
14
  toJson(): TimeSlotRecordJSON;
14
15
  }
@@ -12,4 +12,5 @@ export declare class TimeSlotSequence {
12
12
  toJson(): TimeSlotRecord[];
13
13
  addToNextSlot(checkInOutTime: string): void;
14
14
  isComplete(): boolean;
15
+ isEmpty(): boolean;
15
16
  }