@tactics/toddle-styleguide 2.0.3 → 3.0.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.
- package/App.tsx +0 -12
- package/app.json +1 -0
- package/babel.config.js +14 -1
- package/index.d.ts +2 -5
- package/index.tsx +0 -8
- package/metro.config.js +11 -0
- package/package.json +1 -1
- package/src/components/atoms/animated-wave/animated-wave.styles.d.ts +19 -19
- package/src/components/atoms/backdrop/backdrop.styles.d.ts +9 -9
- package/src/components/atoms/background-gradient/background-gradient.styles.d.ts +6 -6
- package/src/components/atoms/count/count.component.d.ts +1 -1
- package/src/components/atoms/count/count.component.tsx +12 -13
- package/src/components/atoms/count/count.preview.tsx +5 -5
- package/src/components/atoms/count/count.styles.d.ts +23 -20
- package/src/components/atoms/count/count.styles.js +25 -17
- package/src/components/atoms/footer/footer.component.d.ts +1 -4
- package/src/components/atoms/footer/footer.component.tsx +9 -13
- package/src/components/atoms/footer/footer.preview.tsx +0 -17
- package/src/components/atoms/footer/footer.styles.d.ts +16 -13
- package/src/components/atoms/footer/footer.styles.js +1 -1
- package/src/components/atoms/increment-input/increment-input.styles.d.ts +33 -33
- package/src/components/atoms/quick-message/quick-message.styles.d.ts +16 -13
- package/src/components/atoms/split-container/split-container.styles.d.ts +12 -12
- package/src/components/molecules/amount/amount.component.d.ts +3 -3
- package/src/components/molecules/amount/amount.component.tsx +125 -100
- package/src/components/molecules/amount/amount.preview.tsx +59 -11
- package/src/components/molecules/amount/amount.styles.d.ts +34 -34
- package/src/components/molecules/amount/amount.styles.js +7 -7
- package/src/components/molecules/avatar/avatar.component.d.ts +1 -1
- package/src/components/molecules/avatar/avatar.component.tsx +8 -6
- package/src/components/molecules/avatar/avatar.styles.d.ts +96 -78
- package/src/components/molecules/avatar/avatar.styles.js +18 -16
- package/src/components/molecules/bare-time-picker/bare-time-picker.component.d.ts +1 -1
- package/src/components/molecules/bare-time-picker/bare-time-picker.component.native.tsx +78 -0
- package/src/components/molecules/bare-time-picker/bare-time-picker.component.tsx +39 -67
- package/src/components/molecules/bare-time-picker/bare-time-picker.preview.tsx +1 -1
- package/src/components/molecules/bare-time-picker/bare-time-picker.styles.d.ts +6 -0
- package/src/components/molecules/bare-time-picker/bare-time-picker.styles.js +14 -8
- package/src/components/molecules/calendar-select/calendar-select.component.d.ts +2 -1
- package/src/components/molecules/calendar-select/calendar-select.component.tsx +76 -73
- package/src/components/molecules/calendar-select/calendar-select.styles.d.ts +31 -31
- package/src/components/molecules/calendar-select/calendar-select.styles.js +33 -33
- package/src/components/molecules/context-label/context-label.component.tsx +21 -23
- package/src/components/molecules/context-label/context-label.preview.tsx +45 -30
- package/src/components/molecules/context-label/context-label.styles.d.ts +7 -5
- package/src/components/molecules/date-input/date-input.styles.d.ts +16 -16
- package/src/components/molecules/day/day.component.d.ts +10 -6
- package/src/components/molecules/default-select/default-select.styles.d.ts +11 -11
- package/src/components/molecules/filter-range/filter-range.styles.d.ts +20 -20
- package/src/components/molecules/filter-tab/filter-tab.styles.d.ts +58 -53
- package/src/components/molecules/info/info.component.tsx +13 -5
- package/src/components/molecules/info/info.preview.tsx +4 -5
- package/src/components/molecules/info/info.styles.d.ts +14 -14
- package/src/components/molecules/inline-error/inline-error.component.tsx +10 -3
- package/src/components/molecules/inline-error/inline-error.preview.tsx +4 -2
- package/src/components/molecules/inline-error/inline-error.styles.d.ts +16 -16
- package/src/components/molecules/inline-error/inline-error.styles.js +2 -2
- package/src/components/molecules/inline-notice/inline-notice.component.tsx +16 -12
- package/src/components/molecules/inline-notice/inline-notice.preview.tsx +4 -2
- package/src/components/molecules/inline-notice/inline-notice.styles.d.ts +16 -16
- package/src/components/molecules/inline-notice/inline-notice.styles.js +18 -18
- package/src/components/molecules/message-input/message-input.styles.d.ts +31 -31
- package/src/components/molecules/password-input/password-input.component.tsx +1 -1
- package/src/components/molecules/password-input/password-input.styles.d.ts +27 -27
- package/src/components/molecules/quick-filter/quick-filter.component.tsx +1 -1
- package/src/components/molecules/quick-filter/quick-filter.preview.tsx +1 -1
- package/src/components/molecules/quick-filter/quick-filter.styles.js +1 -1
- package/src/components/molecules/search-input/search.styles.d.ts +31 -31
- package/src/components/molecules/select-list-item/select-list-item.component.d.ts +1 -1
- package/src/components/molecules/select-list-item/select-list-item.component.tsx +13 -9
- package/src/components/molecules/select-list-item/select-list-item.styles.d.ts +27 -22
- package/src/components/molecules/select-picker/select-picker.styles.d.ts +30 -30
- package/src/components/molecules/selectable-list-item/selectable-list-item-preview.tsx +1 -1
- package/src/components/molecules/selectable-list-item/selectable-list-item.component.d.ts +1 -1
- package/src/components/molecules/selectable-list-item/selectable-list-item.component.tsx +17 -5
- package/src/components/molecules/selectable-list-item/selectable-list-item.styles.d.ts +31 -27
- package/src/components/molecules/swipe/swipe.component.native.tsx +78 -0
- package/src/components/molecules/swipe/swipe.component.tsx +5 -63
- package/src/components/molecules/time-picker/time-picker.component.tsx +8 -2
- package/src/components/molecules/time-picker/time-picker.styles.d.ts +25 -25
- package/src/components/molecules/wide-button/wide-button.styles.d.ts +14 -10
- package/src/components/organisms/child-list-item/child-list-item.component.d.ts +1 -1
- package/src/components/organisms/child-list-item/child-list-item.component.tsx +29 -26
- package/src/components/organisms/child-list-item/child-list-item.styles.d.ts +56 -53
- package/src/components/organisms/child-list-item/child-list-item.styles.js +5 -5
- package/src/components/organisms/contact-item/contact-item.styles.d.ts +13 -13
- package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.d.ts +1 -1
- package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.tsx +5 -4
- package/src/components/organisms/journal-entry/journal-entry.component.d.ts +1 -1
- package/src/components/organisms/journal-entry/journal-entry.styles.d.ts +25 -22
- package/src/components/organisms/my-child-list-item/my-child-list-item.styles.d.ts +31 -31
- package/src/components/organisms/text-bubble/text-bubble.styles.d.ts +14 -14
- package/src/components/organisms/timetable-edit/timetable-edit.component.d.ts +1 -1
- package/src/components/organisms/timetable-edit/timetable-edit.component.tsx +58 -56
- package/src/components/organisms/timetable-edit/timetable-edit.preview.tsx +20 -18
- package/src/components/organisms/timetable-edit/timetable-edit.styles.d.ts +19 -19
- package/src/components/organisms/timetable-edit/timetable-edit.styles.js +21 -21
- package/src/components/organisms/timetable-editor/components/timetable-edit-wrapper.d.ts +4 -4
- package/src/components/organisms/timetable-editor/components/timetable-edit-wrapper.tsx +65 -58
- package/src/components/organisms/timetable-editor/timetable-editor-staff.component.d.ts +8 -0
- package/src/components/organisms/timetable-editor/timetable-editor-staff.component.tsx +66 -47
- package/src/components/organisms/timetable-editor/timetable-editor.component.d.ts +2 -2
- package/src/components/organisms/timetable-editor/timetable-editor.component.tsx +76 -53
- package/src/components/organisms/timetable-editor/timetable-editor.preview.tsx +7 -7
- package/src/components/organisms/timetable-editor/timetable-editor.styles.d.ts +6 -6
- package/src/components/organisms/timetable-editor/timetable-editor.styles.js +8 -8
- package/src/components/templates/modal/components/fade-panel.styles.d.ts +17 -13
- package/src/components/templates/modal/modal.styles.d.ts +21 -21
- package/src/components/templates/popover/components/foreground/foreground.styles.d.ts +10 -10
- package/src/components/templates/popover/components/modal/heading/heading.styles.d.ts +12 -12
- package/src/components/templates/popover/components/modal/modal.styles.d.ts +17 -17
- package/src/components/templates/popover/popover.styles.d.ts +9 -9
- package/src/components/templates/popover-action/popover-action.component.d.ts +8 -4
- package/src/components/templates/popover-action/popover-action.component.tsx +7 -4
- package/src/components/templates/popover-action/popover-action.styles.d.ts +26 -26
- package/src/context/theme.context.ts +4 -4
- package/src/hooks/use-debounce.ts +8 -8
- package/src/icons/crown.icon.tsx +18 -5
- package/src/icons/outline/outline-default.preview.tsx +2 -2
- package/src/icons/outline/outline.tsx +4 -4
- package/src/icons/outline/photograph/photograph.icon.tsx +3 -6
- package/src/icons/solid/photograph/photograph-solid.icon.tsx +4 -4
- package/src/icons/solid/share/share.icon.tsx +1 -3
- package/src/icons/solid/solid.tsx +4 -4
- package/src/models/time-slot-sequence.ts +13 -9
- package/src/theme/provider/parent.theme.ts +4 -4
- package/src/theme/provider/staff-member.theme.ts +4 -4
- package/src/types/state.enum.ts +5 -5
- package/src/utilities/color-handler/color-handler.ts +2 -3
- package/tsconfig.json +2 -1
- package/src/components/organisms/day-select/day-select.component.d.ts +0 -9
- package/src/components/organisms/day-select/day-select.component.tsx +0 -108
- package/src/components/organisms/day-select/day-select.preview.d.ts +0 -2
- package/src/components/organisms/day-select/day-select.preview.tsx +0 -23
- package/src/components/organisms/day-select/day-select.styles.d.ts +0 -18
- package/src/components/organisms/day-select/day-select.styles.js +0 -22
- package/src/components/organisms/tab-view/__snapshots__/tab-view.test.js.snap +0 -421
- package/src/components/organisms/tab-view/tab-view.component.d.ts +0 -12
- package/src/components/organisms/tab-view/tab-view.component.tsx +0 -49
- package/src/components/organisms/tab-view/tab-view.preview.d.ts +0 -2
- package/src/components/organisms/tab-view/tab-view.preview.tsx +0 -37
- package/src/components/organisms/tab-view/tab-view.styles.d.ts +0 -10
- package/src/components/organisms/tab-view/tab-view.styles.js +0 -14
- package/src/components/organisms/tab-view/tab-view.test.js +0 -37
package/App.tsx
CHANGED
|
@@ -42,7 +42,6 @@ import {ChildListItemPreview} from './src/components/organisms/child-list-item/c
|
|
|
42
42
|
import {TimeLinePreview} from './src/components/molecules/timeline/timeline.preview';
|
|
43
43
|
import {SelectPickerPreview} from './src/components/molecules/select-picker/select-picker.preview';
|
|
44
44
|
import {FilterRangePreview} from './src/components/molecules/filter-range/filter-range.preview';
|
|
45
|
-
import {DaySelectPreview} from './src/components/organisms/day-select/day-select.preview';
|
|
46
45
|
import {IncrementInputPreview} from './src/components/atoms/increment-input/increment-input.preview';
|
|
47
46
|
import {SwipePreview} from './src/components/molecules/swipe/swipe.preview';
|
|
48
47
|
import {LogoPreview} from './src/components/atoms/logo/logo.preview';
|
|
@@ -68,9 +67,7 @@ import {ToddleDateTimePreview} from './src/utilities/toddle-datetime/toddle-date
|
|
|
68
67
|
import {BackgroundGradientPreview} from './src/components/atoms/background-gradient/background-gradient.preview';
|
|
69
68
|
import {PersonInfoCardPreview} from './src/components/organisms/person-info-card/person-info-card.preview';
|
|
70
69
|
import {TimePickerPreview} from './src/components/molecules/time-picker/time-picker.preview';
|
|
71
|
-
import {PopOverActionPreview} from './src/components/templates/popover-action/popover-action.preview';
|
|
72
70
|
import {QuickMessagePreview} from './src/components/atoms/quick-message/quick-message.preview';
|
|
73
|
-
import {TabViewPreview} from './src/components/organisms/tab-view/tab-view.preview';
|
|
74
71
|
import {LinePreview} from './src/components/atoms/line/line.preview';
|
|
75
72
|
import {JournalEntryPreview} from './src/components/organisms/journal-entry/journal-entry.preview';
|
|
76
73
|
import { ContextLabelPreview } from './src/components/molecules/context-label/context-label.preview';
|
|
@@ -384,9 +381,6 @@ function App() {
|
|
|
384
381
|
<Stack.Screen name="date-input">
|
|
385
382
|
{() => <DateInputPreview />}
|
|
386
383
|
</Stack.Screen>
|
|
387
|
-
<Stack.Screen name="day-select">
|
|
388
|
-
{() => <DaySelectPreview />}
|
|
389
|
-
</Stack.Screen>
|
|
390
384
|
<Stack.Screen name="default-select">
|
|
391
385
|
{() => <DefaultSelectPreview />}
|
|
392
386
|
</Stack.Screen>
|
|
@@ -458,9 +452,6 @@ function App() {
|
|
|
458
452
|
<Stack.Screen name="popover" options={{headerShown: false}}>
|
|
459
453
|
{() => <PopoverPreview />}
|
|
460
454
|
</Stack.Screen>
|
|
461
|
-
<Stack.Screen name="popover-action" options={{headerShown: false}}>
|
|
462
|
-
{() => <PopOverActionPreview />}
|
|
463
|
-
</Stack.Screen>
|
|
464
455
|
<Stack.Screen name="pressable-icon">
|
|
465
456
|
{() => <PressableIconPreview />}
|
|
466
457
|
</Stack.Screen>
|
|
@@ -487,9 +478,6 @@ function App() {
|
|
|
487
478
|
{() => <SplitContainerPreview />}
|
|
488
479
|
</Stack.Screen>
|
|
489
480
|
<Stack.Screen name="swiper">{() => <SwipePreview />}</Stack.Screen>
|
|
490
|
-
<Stack.Screen name="tab-view">
|
|
491
|
-
{() => <TabViewPreview />}
|
|
492
|
-
</Stack.Screen>
|
|
493
481
|
<Stack.Screen name="tag">{() => <TagPreview />}</Stack.Screen>
|
|
494
482
|
<Stack.Screen name="textBubble">
|
|
495
483
|
{() => <TextBubblePreview />}
|
package/app.json
CHANGED
package/babel.config.js
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
module.exports = function (api) {
|
|
2
2
|
api.cache(true);
|
|
3
|
+
const disableImportExportTransform = true;
|
|
3
4
|
return {
|
|
4
|
-
presets: [
|
|
5
|
+
presets: [
|
|
6
|
+
[
|
|
7
|
+
'babel-preset-expo',
|
|
8
|
+
{
|
|
9
|
+
native: {
|
|
10
|
+
disableImportExportTransform,
|
|
11
|
+
},
|
|
12
|
+
web: {
|
|
13
|
+
disableImportExportTransform,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
],
|
|
5
18
|
plugins: ['react-native-reanimated/plugin'],
|
|
6
19
|
};
|
|
7
20
|
};
|
package/index.d.ts
CHANGED
|
@@ -25,9 +25,7 @@ import { WideButton } from './src/components/molecules/wide-button/wide-button.c
|
|
|
25
25
|
import { Icon } from './src/icons';
|
|
26
26
|
import { Calendar } from './src/components/atoms/calendar/calendar.component';
|
|
27
27
|
import { IncrementInput } from './src/components/atoms/increment-input/increment-input.component';
|
|
28
|
-
import { Swipe } from './src/components/molecules/swipe/swipe.component';
|
|
29
28
|
import { Logo } from './src/components/atoms/logo/logo.component';
|
|
30
|
-
import { DaySelect } from './src/components/organisms/day-select/day-select.component';
|
|
31
29
|
import { Search } from './src/components/molecules/search-input/search.component';
|
|
32
30
|
import { BlockedMessage } from './src/components/molecules/blocked-message/blocked-message.component';
|
|
33
31
|
import { DepartmentLogo } from './src/components/molecules/department_logo/department-logo.component';
|
|
@@ -53,9 +51,7 @@ import { WaveBackground } from './src/components/molecules/wave-background/wave.
|
|
|
53
51
|
import { BackgroundGradient } from './src/components/atoms/background-gradient/background-gradient.component';
|
|
54
52
|
import { PersonInfoCard } from './src/components/organisms/person-info-card/person-info-card.component';
|
|
55
53
|
import { TimePicker } from './src/components/molecules/time-picker/time-picker.component';
|
|
56
|
-
import { PopOverAction } from './src/components/templates/popover-action/popover-action.component';
|
|
57
54
|
import { QuickMessage } from './src/components/atoms/quick-message/quick-message.component';
|
|
58
|
-
import { TabView } from './src/components/organisms/tab-view/tab-view.component';
|
|
59
55
|
import { Line } from './src/components/atoms/line/line.component';
|
|
60
56
|
import { JournalEntry } from './src/components/organisms/journal-entry/journal-entry.component';
|
|
61
57
|
import { TimetableEdit } from './src/components/organisms/timetable-edit/timetable-edit.component';
|
|
@@ -63,6 +59,7 @@ import { ContextLabel } from './src/components/molecules/context-label/context-l
|
|
|
63
59
|
import { Count } from './src/components/atoms/count/count.component';
|
|
64
60
|
import { Amount } from './src/components/molecules/amount/amount.component';
|
|
65
61
|
import { TimetableEditor } from './src/components/organisms/timetable-editor/timetable-editor.component';
|
|
62
|
+
import { TimetableEditorStaff } from './src/components/organisms/timetable-editor/timetable-editor-staff.component';
|
|
66
63
|
import { InlineError } from './src/components/molecules/inline-error/inline-error.component';
|
|
67
64
|
import { InlineNotice } from './src/components/molecules/inline-notice/inline-notice.component';
|
|
68
65
|
import { SelectableListItem } from './src/components/molecules/selectable-list-item/selectable-list-item.component';
|
|
@@ -77,4 +74,4 @@ import { ToddleDateTime } from './src/utilities/toddle-datetime/toddle-datetime.
|
|
|
77
74
|
import { ThemeCtx } from './src/context/theme.context';
|
|
78
75
|
import { Scale } from './src/theme/scale/index';
|
|
79
76
|
import CreateResponsiveStyle from './src/theme/responsive/index';
|
|
80
|
-
export { AllCapsHeading, Avatar, BackgroundGradient, BlockedMessage, Button, Calendar, CalendarSelect, CancelLink, Check, Checkbox, ChildListItem, ContactItem, ContactRole, DateInput,
|
|
77
|
+
export { AllCapsHeading, Avatar, BackgroundGradient, BlockedMessage, Button, Calendar, CalendarSelect, CancelLink, Check, Checkbox, ChildListItem, ContactItem, ContactRole, DateInput, 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, PressableIcon, QuickFilter, QuickMessage, Search, SelectLink, SelectListItem, SelectPicker, SmallText, Snackbar, SplitContainer, Tag, TextBubble, TextInput, TimeLine, TimePicker, TimeTracker, TinyText, WaveBackground, WideButton, BubbleAlignment, Initials, KeyBoardTypes, Size, ThemeCtx, ToddleDateTime, VisualState, CreateResponsiveStyle, Scale, TimetableEdit, ContextLabel, Count, Amount, TimetableEditor, TimetableEditorStaff, TimeSlotRecord, TimeSlotSequence, InlineError, InlineNotice, SelectableListItem };
|
package/index.tsx
CHANGED
|
@@ -33,9 +33,7 @@ import {WideButton} from './src/components/molecules/wide-button/wide-button.com
|
|
|
33
33
|
import {Icon} from './src/icons';
|
|
34
34
|
import {Calendar} from './src/components/atoms/calendar/calendar.component';
|
|
35
35
|
import {IncrementInput} from './src/components/atoms/increment-input/increment-input.component';
|
|
36
|
-
import {Swipe} from './src/components/molecules/swipe/swipe.component';
|
|
37
36
|
import {Logo} from './src/components/atoms/logo/logo.component';
|
|
38
|
-
import {DaySelect} from './src/components/organisms/day-select/day-select.component';
|
|
39
37
|
import {Search} from './src/components/molecules/search-input/search.component';
|
|
40
38
|
import {BlockedMessage} from './src/components/molecules/blocked-message/blocked-message.component';
|
|
41
39
|
import {DepartmentLogo} from './src/components/molecules/department_logo/department-logo.component';
|
|
@@ -71,9 +69,7 @@ import {WaveBackground} from './src/components/molecules/wave-background/wave.co
|
|
|
71
69
|
import {BackgroundGradient} from './src/components/atoms/background-gradient/background-gradient.component';
|
|
72
70
|
import {PersonInfoCard} from './src/components/organisms/person-info-card/person-info-card.component';
|
|
73
71
|
import {TimePicker} from './src/components/molecules/time-picker/time-picker.component';
|
|
74
|
-
import {PopOverAction} from './src/components/templates/popover-action/popover-action.component';
|
|
75
72
|
import {QuickMessage} from './src/components/atoms/quick-message/quick-message.component';
|
|
76
|
-
import {TabView} from './src/components/organisms/tab-view/tab-view.component';
|
|
77
73
|
import {Line} from './src/components/atoms/line/line.component';
|
|
78
74
|
import {JournalEntry} from './src/components/organisms/journal-entry/journal-entry.component';
|
|
79
75
|
import {TimetableEdit} from './src/components/organisms/timetable-edit/timetable-edit.component';
|
|
@@ -124,7 +120,6 @@ export {
|
|
|
124
120
|
ContactItem,
|
|
125
121
|
ContactRole,
|
|
126
122
|
DateInput,
|
|
127
|
-
DaySelect,
|
|
128
123
|
DefaultSelect,
|
|
129
124
|
DepartmentLogo,
|
|
130
125
|
FilterRange,
|
|
@@ -152,7 +147,6 @@ export {
|
|
|
152
147
|
PersonInfoCard,
|
|
153
148
|
Pill,
|
|
154
149
|
Popover,
|
|
155
|
-
PopOverAction,
|
|
156
150
|
PressableIcon,
|
|
157
151
|
QuickFilter,
|
|
158
152
|
QuickMessage,
|
|
@@ -163,8 +157,6 @@ export {
|
|
|
163
157
|
SmallText,
|
|
164
158
|
Snackbar,
|
|
165
159
|
SplitContainer,
|
|
166
|
-
Swipe,
|
|
167
|
-
TabView,
|
|
168
160
|
Tag,
|
|
169
161
|
TextBubble,
|
|
170
162
|
TextInput,
|
package/metro.config.js
ADDED
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export function Stylesheet(Context: any): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
container: {
|
|
3
|
+
flex: number;
|
|
4
|
+
alignItems: 'center';
|
|
5
|
+
justifyContent: 'flex-start';
|
|
6
|
+
};
|
|
7
|
+
animationContainer: {
|
|
8
|
+
width: '100%';
|
|
9
|
+
alignItems: 'center';
|
|
10
|
+
position: 'absolute';
|
|
11
|
+
top: '-1%';
|
|
12
|
+
zIndex: number;
|
|
13
|
+
};
|
|
14
|
+
overlay: {
|
|
15
|
+
width: '100%';
|
|
16
|
+
height: '30%';
|
|
17
|
+
position: 'absolute';
|
|
18
|
+
top: '38%';
|
|
19
|
+
backgroundColor: any;
|
|
20
|
+
};
|
|
21
21
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export function Stylesheet(Context: any): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
element: {
|
|
3
|
+
width: '100%';
|
|
4
|
+
height: '100%';
|
|
5
|
+
backgroundColor: any;
|
|
6
|
+
zIndex: number;
|
|
7
|
+
position: 'absolute';
|
|
8
|
+
top: number;
|
|
9
|
+
left: number;
|
|
10
|
+
};
|
|
11
11
|
};
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {View} from 'react-native';
|
|
3
3
|
import {useContext} from 'react';
|
|
4
4
|
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import {Stylesheet} from './count.styles';
|
|
6
|
+
import {Paragraph} from '../paragraph-components';
|
|
7
7
|
|
|
8
8
|
interface CountProps {
|
|
9
9
|
count: number;
|
|
10
|
-
disabled?: boolean
|
|
10
|
+
disabled?: boolean;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export const Count = ({
|
|
14
|
-
count,
|
|
15
|
-
disabled
|
|
16
|
-
}: CountProps) => {
|
|
13
|
+
export const Count = ({count, disabled}: CountProps) => {
|
|
17
14
|
const context = useContext(ThemeCtx);
|
|
18
15
|
const styles = Stylesheet(context, disabled);
|
|
19
|
-
return
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
return (
|
|
17
|
+
<View style={styles.container}>
|
|
18
|
+
<Paragraph addStyle={styles.text}>{count}</Paragraph>
|
|
19
|
+
</View>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
@@ -2,15 +2,15 @@ import {View} from 'react-native';
|
|
|
2
2
|
import {useContext} from 'react';
|
|
3
3
|
import {ThemeCtx} from '../../../context/theme.context';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import {Count} from './count.component';
|
|
6
6
|
|
|
7
7
|
export const CountPreview = () => {
|
|
8
8
|
const context = useContext(ThemeCtx);
|
|
9
9
|
return (
|
|
10
10
|
<View style={{alignItems: 'center', gap: 8}}>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
<Count count={2} />
|
|
12
|
+
<Count count={99} />
|
|
13
|
+
<Count count={999999} />
|
|
14
14
|
</View>
|
|
15
15
|
);
|
|
16
|
-
}
|
|
16
|
+
};
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
export function Stylesheet(
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
export function Stylesheet(
|
|
2
|
+
context: any,
|
|
3
|
+
disabled: any
|
|
4
|
+
): {
|
|
5
|
+
container: {
|
|
6
|
+
borderWidth: number;
|
|
7
|
+
borderColor: any;
|
|
8
|
+
borderRadius: number;
|
|
9
|
+
paddingVertical: number;
|
|
10
|
+
paddingHorizontal: number;
|
|
11
|
+
minWidth: number;
|
|
12
|
+
color: any;
|
|
13
|
+
display: 'flex';
|
|
14
|
+
alignItems: 'center';
|
|
15
|
+
justifyContent: 'center';
|
|
16
|
+
flex: number;
|
|
17
|
+
backgroundColor: any;
|
|
18
|
+
};
|
|
19
|
+
text: {
|
|
20
|
+
width: 'auto';
|
|
21
|
+
fontSize: number;
|
|
22
|
+
color: any;
|
|
23
|
+
};
|
|
21
24
|
};
|
|
@@ -1,25 +1,33 @@
|
|
|
1
1
|
import {StyleSheet} from 'react-native';
|
|
2
|
-
import {
|
|
2
|
+
import {Scale} from '../../../theme/scale';
|
|
3
3
|
|
|
4
4
|
export const Stylesheet = (context, disabled) =>
|
|
5
5
|
StyleSheet.create({
|
|
6
6
|
container: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
borderWidth: 1,
|
|
8
|
+
borderColor:
|
|
9
|
+
disabled === true
|
|
10
|
+
? context.colors.ui.xlightgrey
|
|
11
|
+
: context.colors.main['1'],
|
|
12
|
+
borderRadius: 20,
|
|
13
|
+
paddingVertical: Scale.xs,
|
|
14
|
+
paddingHorizontal: Scale.m,
|
|
15
|
+
minWidth: Scale.xxxl,
|
|
16
|
+
color:
|
|
17
|
+
disabled === true ? context.colors.ui.grey : context.colors.main['2'],
|
|
18
|
+
display: 'flex',
|
|
19
|
+
alignItems: 'center',
|
|
20
|
+
justifyContent: 'center',
|
|
21
|
+
flex: 0,
|
|
22
|
+
backgroundColor:
|
|
23
|
+
disabled === true
|
|
24
|
+
? context.colors.ui.xlightgrey
|
|
25
|
+
: context.colors.ui.white,
|
|
19
26
|
},
|
|
20
27
|
text: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
28
|
+
width: 'auto',
|
|
29
|
+
fontSize: Scale.m,
|
|
30
|
+
color:
|
|
31
|
+
disabled === true ? context.colors.ui.grey : context.colors.main['2'],
|
|
32
|
+
},
|
|
25
33
|
});
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ViewStyle } from 'react-native';
|
|
3
|
-
import { AnimateStyle } from 'react-native-reanimated';
|
|
4
2
|
type FooterProps = {
|
|
5
3
|
children: React.ReactNode;
|
|
6
|
-
animatedStyle?: AnimateStyle<ViewStyle>;
|
|
7
4
|
};
|
|
8
|
-
declare const Footer: ({ children
|
|
5
|
+
declare const Footer: ({ children }: FooterProps) => React.JSX.Element;
|
|
9
6
|
export { Footer as Footer };
|
|
@@ -1,31 +1,27 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {useContext} from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import {View} from 'react-native';
|
|
4
4
|
|
|
5
5
|
import {ThemeCtx} from '../../../context/theme.context';
|
|
6
6
|
import {Stylesheet} from './footer.styles';
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
useSafeAreaInsets,
|
|
10
|
-
} from 'react-native-safe-area-context';
|
|
7
|
+
import {useSafeAreaInsets} from 'react-native-safe-area-context';
|
|
11
8
|
|
|
12
9
|
type FooterProps = {
|
|
13
10
|
children: React.ReactNode;
|
|
14
|
-
animatedStyle?: AnimateStyle<ViewStyle>;
|
|
15
11
|
};
|
|
16
12
|
|
|
17
|
-
const Footer = ({children
|
|
13
|
+
const Footer = ({children}: FooterProps) => {
|
|
18
14
|
const context = useContext(ThemeCtx);
|
|
19
15
|
const insets = useSafeAreaInsets();
|
|
20
16
|
const styles = Stylesheet(context, insets);
|
|
21
17
|
|
|
22
18
|
return (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
<View
|
|
20
|
+
style={styles.container}
|
|
21
|
+
testID="footer-container"
|
|
22
|
+
>
|
|
23
|
+
{children}
|
|
24
|
+
</View>
|
|
29
25
|
);
|
|
30
26
|
};
|
|
31
27
|
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {Footer} from './footer.component';
|
|
3
|
-
import {SplitContainer} from '../split-container/split-container.component';
|
|
4
|
-
import {SelectLink} from '../../molecules/select-link/select-link.component';
|
|
5
|
-
import {Button} from '../../molecules/button/button.component';
|
|
6
3
|
import {Icon} from '../../../icons/index';
|
|
7
4
|
import {Pressable, View} from 'react-native';
|
|
8
5
|
|
|
@@ -10,20 +7,6 @@ export const FooterPreview = ({}: {}) => {
|
|
|
10
7
|
return (
|
|
11
8
|
<View style={{flex: 1, justifyContent: 'flex-end'}}>
|
|
12
9
|
<Footer>
|
|
13
|
-
{/*<SplitContainer*/}
|
|
14
|
-
{/* element1={*/}
|
|
15
|
-
{/* <SelectLink*/}
|
|
16
|
-
{/* label={'Selecteer alle'}*/}
|
|
17
|
-
{/* onPress={() => console.log('selecteer alle')}*/}
|
|
18
|
-
{/* />*/}
|
|
19
|
-
{/* }*/}
|
|
20
|
-
{/* element2={*/}
|
|
21
|
-
{/* <Button*/}
|
|
22
|
-
{/* label="Kies actie"*/}
|
|
23
|
-
{/* onPress={() => console.log('element 2 pressed')}*/}
|
|
24
|
-
{/* />*/}
|
|
25
|
-
{/* }*/}
|
|
26
|
-
{/*/>*/}
|
|
27
10
|
<Pressable
|
|
28
11
|
style={{
|
|
29
12
|
width: 42,
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
export function Stylesheet(
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
export function Stylesheet(
|
|
2
|
+
context: any,
|
|
3
|
+
insets: any
|
|
4
|
+
): {
|
|
5
|
+
container: {
|
|
6
|
+
flexDirection: 'row';
|
|
7
|
+
alignItems: 'center';
|
|
8
|
+
justifyContent: 'center';
|
|
9
|
+
backgroundColor: any;
|
|
10
|
+
borderTopColor: any;
|
|
11
|
+
borderStyle: 'solid';
|
|
12
|
+
borderTopWidth: number;
|
|
13
|
+
minHeight: any;
|
|
14
|
+
paddingBottom: any;
|
|
15
|
+
width: '100%';
|
|
16
|
+
};
|
|
14
17
|
};
|
|
@@ -11,7 +11,7 @@ export const Stylesheet = (context, insets) =>
|
|
|
11
11
|
borderTopColor: context.colors.ui.lightgrey,
|
|
12
12
|
borderStyle: 'solid',
|
|
13
13
|
borderTopWidth: 1,
|
|
14
|
-
minHeight:
|
|
14
|
+
minHeight: Scale.xxxl + insets.bottom,
|
|
15
15
|
paddingBottom: insets.bottom,
|
|
16
16
|
width: '100%',
|
|
17
17
|
},
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
export function Stylesheet(Context: any): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
2
|
+
container: {
|
|
3
|
+
width: '100%';
|
|
4
|
+
flexDirection: 'row';
|
|
5
|
+
alignItems: 'center';
|
|
6
|
+
};
|
|
7
|
+
buttonContainer: {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
backgroundColor: any;
|
|
11
|
+
alignItems: 'center';
|
|
12
|
+
justifyContent: 'center';
|
|
13
|
+
borderRadius: number;
|
|
14
|
+
};
|
|
15
|
+
numberContainer: {
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
display: 'flex';
|
|
19
|
+
justifyContent: 'center';
|
|
20
|
+
alignItems: 'center';
|
|
21
|
+
marginRight: number;
|
|
22
|
+
marginLeft: number;
|
|
23
|
+
backgroundColor: any;
|
|
24
|
+
borderWidth: number;
|
|
25
|
+
borderStyle: 'solid';
|
|
26
|
+
borderColor: any;
|
|
27
|
+
borderRadius: number;
|
|
28
|
+
};
|
|
29
|
+
number: {
|
|
30
|
+
textAlignVertical: 'center';
|
|
31
|
+
justifyContent: 'center';
|
|
32
|
+
alignItems: 'center';
|
|
33
|
+
display: 'flex';
|
|
34
|
+
};
|
|
35
35
|
};
|