@tactics/toddle-styleguide 1.0.0 → 1.0.2
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 +27 -0
- package/index.d.ts +5 -1
- package/index.tsx +8 -0
- package/package.json +1 -1
- package/src/components/{templates/popover/components → atoms}/backdrop/backdrop.component.tsx +1 -1
- package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +54 -54
- package/src/components/atoms/calendar/calendar.component.tsx +4 -2
- package/src/components/atoms/footer/__snapshots__/footer.test.js.snap +9 -9
- package/src/components/atoms/increment-input/__snapshots__/increment-input.test.js.snap +18 -18
- package/src/components/atoms/increment-input/increment-input.component.tsx +12 -2
- package/src/components/atoms/split-container/__snapshots__/split-container.test.js.snap +9 -9
- package/src/components/molecules/blocked-message/__snapshots__/blocked-message.test.js.snap +9 -9
- package/src/components/molecules/blocked-message/blocked-message.component.tsx +6 -1
- package/src/components/molecules/button/__snapshots__/button.test.js.snap +36 -30
- package/src/components/molecules/button/button.component.d.ts +6 -3
- package/src/components/molecules/button/button.component.tsx +27 -3
- package/src/components/molecules/button/button.preview.tsx +6 -3
- package/src/components/molecules/button/button.test.js +9 -6
- package/src/components/molecules/calendar-select/__snapshots__/calendar-select.test.js.snap +29 -29
- package/src/components/molecules/calendar-select/calendar-select.component.tsx +7 -4
- package/src/components/molecules/calendar-select/calendar-select.styles.js +2 -2
- package/src/components/molecules/date-input/__snapshots__/date-input.test.js.snap +9 -9
- package/src/components/molecules/date-input/date-input.component.tsx +5 -1
- package/src/components/molecules/default-select/__snapshots__/default-select.test.js.snap +9 -9
- package/src/components/molecules/default-select/default-select.component.tsx +5 -1
- package/src/components/molecules/failed-to-send/__snapshots__/failed-bubble.test.js.snap +27 -27
- package/src/components/molecules/failed-to-send/failed-bubble.component.tsx +14 -3
- package/src/components/molecules/language-button/__snapshots__/language-button.test.js.snap +95 -0
- package/src/components/molecules/language-button/language-button.component.d.ts +7 -0
- package/src/components/molecules/language-button/language-button.component.tsx +33 -0
- package/src/components/molecules/language-button/language-button.preview.d.ts +1 -0
- package/src/components/molecules/language-button/language-button.preview.tsx +29 -0
- package/src/components/molecules/language-button/language-button.styles.d.ts +8 -0
- package/src/components/molecules/language-button/language-button.styles.js +12 -0
- package/src/components/molecules/language-button/language-button.test.js +29 -0
- package/src/components/molecules/message-input/__snapshots__/message-input.test.js.snap +140 -72
- package/src/components/molecules/message-input/message-input.component.tsx +10 -2
- package/src/components/molecules/more-info-button/__snapshots__/more-info-button.test.js.snap +99 -0
- package/src/components/molecules/more-info-button/more-info-button.component.d.ts +7 -0
- package/src/components/molecules/more-info-button/more-info-button.component.tsx +33 -0
- package/src/components/molecules/more-info-button/more-info-button.preview.d.ts +1 -0
- package/src/components/molecules/more-info-button/more-info-button.preview.tsx +29 -0
- package/src/components/molecules/more-info-button/more-info-button.styles.d.ts +10 -0
- package/src/components/molecules/more-info-button/more-info-button.styles.js +15 -0
- package/src/components/molecules/more-info-button/more-info-button.test.js +29 -0
- package/src/components/molecules/password-input/__snapshots__/password-input.test.js.snap +30 -30
- package/src/components/molecules/password-input/password-input.component.tsx +10 -2
- package/src/components/molecules/pressable-icon/__snapshots__/pressable-icon.test.js.snap +36 -36
- package/src/components/molecules/pressable-icon/pressable-icon.preview.tsx +4 -4
- package/src/components/molecules/pressable-icon/pressable-icon.test.js +8 -4
- package/src/components/molecules/search-input/__snapshots__/search.test.js.snap +15 -18
- package/src/components/molecules/search-input/search.component.tsx +6 -2
- package/src/components/molecules/search-input/search.styles.js +5 -8
- package/src/components/molecules/select-list-item/__snapshots__/select-list-item.test.js.snap +431 -431
- package/src/components/molecules/select-list-item/select-list-item-preview.tsx +3 -4
- package/src/components/molecules/select-list-item/select-list-item.component.tsx +21 -18
- package/src/components/molecules/select-list-item/select-list-item.styles.js +10 -7
- package/src/components/molecules/select-picker/__snapshots__/select-picker.test.js.snap +18 -20
- package/src/components/molecules/select-picker/select-picker.component.tsx +6 -1
- package/src/components/molecules/select-picker/select-picker.styles.js +2 -2
- package/src/components/molecules/send-bubble/__snapshots__/send-text-bubble.test.js.snap +108 -108
- package/src/components/molecules/send-bubble/send-text-bubble.component.tsx +2 -2
- package/src/components/molecules/snackbar/__snapshots__/snackbar.test.js.snap +36 -36
- package/src/components/molecules/snackbar/snackbar.component.tsx +21 -2
- package/src/components/molecules/swipe/__snapshots__/swipe.test.js.snap +15 -11
- package/src/components/molecules/swipe/swipe.component.tsx +10 -2
- package/src/components/organisms/child-list-item/__snapshots__/child-list-item.test.js.snap +10 -10
- package/src/components/organisms/child-list-item/child-list-item.component.tsx +7 -2
- package/src/components/organisms/child-list-item/child-list-item.preview.tsx +7 -1
- package/src/components/organisms/contact-item/__snapshots__/contact-item.test.js.snap +18 -18
- package/src/components/organisms/contact-item/contact-item.component.tsx +6 -1
- package/src/components/organisms/loading-indicator/__snapshots__/loading-indicator.test.js.snap +474 -0
- package/src/components/organisms/loading-indicator/animation-style.animate.d.ts +3 -0
- package/src/components/organisms/loading-indicator/animation-style.animate.ts +164 -0
- package/src/components/organisms/loading-indicator/container.component.d.ts +1 -0
- package/src/components/organisms/loading-indicator/container.component.tsx +65 -0
- package/src/components/organisms/loading-indicator/dot.component.d.ts +6 -0
- package/src/components/organisms/loading-indicator/dot.component.tsx +27 -0
- package/src/components/organisms/loading-indicator/loading-indicator.component.d.ts +2 -0
- package/src/components/organisms/loading-indicator/loading-indicator.component.tsx +21 -0
- package/src/components/organisms/loading-indicator/loading-indicator.preview.d.ts +1 -0
- package/src/components/organisms/loading-indicator/loading-indicator.preview.tsx +100 -0
- package/src/components/organisms/loading-indicator/loading-indicator.test.js +40 -0
- package/src/components/organisms/my-child-list-item/__snapshots__/my-child-list-item.test.js.snap +18 -18
- package/src/components/organisms/my-child-list-item/my-child-list-item.component.tsx +12 -2
- package/src/components/organisms/text-bubble/__snapshots__/text-bubble.test.js.snap +135 -135
- package/src/components/organisms/text-bubble/text-bubble.test.js +0 -1
- package/src/components/templates/modal/components/fade-panel.component.d.ts +11 -0
- package/src/components/templates/modal/components/fade-panel.component.tsx +53 -0
- package/src/components/templates/modal/components/fade-panel.styles.d.ts +16 -0
- package/src/components/templates/modal/components/fade-panel.styles.js +17 -0
- package/src/components/templates/modal/modal-preview.styles.d.ts +13 -0
- package/src/components/templates/modal/modal-preview.styles.js +17 -0
- package/src/components/templates/modal/modal.component.d.ts +10 -0
- package/src/components/templates/modal/modal.component.tsx +56 -0
- package/src/components/templates/modal/modal.preview.d.ts +1 -0
- package/src/components/templates/modal/modal.preview.tsx +73 -0
- package/src/components/templates/modal/modal.styles.d.ts +21 -0
- package/src/components/templates/modal/modal.styles.js +23 -0
- package/src/components/templates/popover/components/index.js +1 -1
- package/src/components/templates/popover/components/modal/close/close.component.tsx +9 -4
- package/src/components/templates/popover/components/modal/close/close.styles.d.ts +4 -3
- package/src/components/templates/popover/components/modal/close/close.styles.js +8 -5
- package/src/components/templates/popover/components/modal/heading/heading.styles.js +1 -1
- package/src/components/templates/popover/components/modal/modal.component.tsx +1 -1
- package/src/components/templates/popover/components/modal/modal.styles.js +1 -1
- package/src/components/templates/popover/popover.component.tsx +2 -1
- package/src/context/loading-dots.context.d.ts +8 -0
- package/src/context/loading-dots.context.tsx +33 -0
- package/src/icons/__snapshots__/icons.test.js.snap +572 -482
- package/src/icons/icons.test.js +126 -51
- package/src/icons/index.d.ts +2 -56
- package/src/icons/index.tsx +11 -3
- package/src/icons/outline/calendar/calendar.icon.d.ts +2 -2
- package/src/icons/outline/calendar/calendar.icon.tsx +5 -4
- package/src/icons/outline/chat/chat.icon.d.ts +2 -2
- package/src/icons/outline/chat/chat.icon.tsx +5 -4
- package/src/icons/outline/chat-alt/chat-alt.icon.d.ts +2 -2
- package/src/icons/outline/chat-alt/chat-alt.icon.tsx +5 -4
- package/src/icons/outline/check-circle/check-circle.icon.d.ts +2 -2
- package/src/icons/outline/check-circle/check-circle.icon.tsx +5 -4
- package/src/icons/outline/chevron-left/chevron-left.icon.d.ts +2 -2
- package/src/icons/outline/chevron-left/chevron-left.icon.tsx +5 -4
- package/src/icons/outline/chevron-right/chevron-right.icon.d.ts +2 -2
- package/src/icons/outline/chevron-right/chevron-right.icon.tsx +5 -4
- package/src/icons/outline/clock/clock.icon.d.ts +2 -2
- package/src/icons/outline/clock/clock.icon.tsx +5 -4
- package/src/icons/outline/cloud-download/cloud-download.icon.d.ts +2 -2
- package/src/icons/outline/cloud-download/cloud-download.icon.tsx +5 -4
- package/src/icons/outline/currency-euro/currency-euro.icon.d.ts +2 -2
- package/src/icons/outline/currency-euro/currency-euro.icon.tsx +5 -4
- package/src/icons/outline/document-text/document-text.icon.d.ts +2 -2
- package/src/icons/outline/document-text/document-text.icon.tsx +5 -4
- package/src/icons/outline/exclamation/exclamation.icon.d.ts +2 -2
- package/src/icons/outline/exclamation/exclamation.icon.tsx +5 -4
- package/src/icons/outline/exclamation-circle/exclamation-circle.icon.d.ts +2 -2
- package/src/icons/outline/exclamation-circle/exclamation-circle.icon.tsx +8 -4
- package/src/icons/outline/eye/eye.icon.d.ts +2 -2
- package/src/icons/outline/eye/eye.icon.tsx +6 -5
- package/src/icons/outline/eye-off/eye-off.icon.d.ts +2 -2
- package/src/icons/outline/eye-off/eye-off.icon.tsx +4 -3
- package/src/icons/outline/filter/filter.icon.d.ts +2 -2
- package/src/icons/outline/filter/filter.icon.tsx +5 -42
- package/src/icons/outline/information-circle/information-circle.icon.d.ts +2 -2
- package/src/icons/outline/information-circle/information-circle.icon.tsx +8 -4
- package/src/icons/outline/logout/logout.icon.d.ts +2 -2
- package/src/icons/outline/logout/logout.icon.tsx +11 -4
- package/src/icons/outline/mail/mail.icon.d.ts +2 -2
- package/src/icons/outline/mail/mail.icon.tsx +5 -4
- package/src/icons/outline/mail-open/mail-open.icon.d.ts +2 -2
- package/src/icons/outline/mail-open/mail-open.icon.tsx +5 -4
- package/src/icons/outline/menu/menu.icon.d.ts +2 -2
- package/src/icons/outline/menu/menu.icon.tsx +5 -4
- package/src/icons/outline/minus-sm/minus-sm.icon.d.ts +2 -2
- package/src/icons/outline/minus-sm/minus-sm.icon.tsx +5 -9
- package/src/icons/outline/office-building/office-building.icon.d.ts +2 -2
- package/src/icons/outline/office-building/office-building.icon.tsx +5 -4
- package/src/icons/outline/outline-default.preview.tsx +49 -45
- package/src/icons/outline/outline-grey.preview.tsx +56 -40
- package/src/icons/outline/outline-white.preview.tsx +61 -41
- package/src/icons/outline/outline.d.ts +2 -42
- package/src/icons/outline/outline.tsx +99 -42
- package/src/icons/outline/paper-airplane/paper-airplane.icon.d.ts +2 -2
- package/src/icons/outline/paper-airplane/paper-airplane.icon.tsx +11 -4
- package/src/icons/outline/paperclip/paperclip.icon.d.ts +2 -2
- package/src/icons/outline/paperclip/paperclip.icon.tsx +5 -4
- package/src/icons/outline/pencil/pencil.icon.d.ts +2 -2
- package/src/icons/outline/pencil/pencil.icon.tsx +5 -4
- package/src/icons/outline/phone/phone.icon.d.ts +2 -2
- package/src/icons/outline/phone/phone.icon.tsx +5 -4
- package/src/icons/outline/plus/plus.icon.d.ts +2 -2
- package/src/icons/outline/plus/plus.icon.tsx +5 -4
- package/src/icons/outline/plus-sm/plus-sm.icon.d.ts +2 -2
- package/src/icons/outline/plus-sm/plus-sm.icon.tsx +5 -9
- package/src/icons/outline/qrcode/qrcode.icon.d.ts +2 -2
- package/src/icons/outline/qrcode/qrcode.icon.tsx +5 -4
- package/src/icons/outline/refresh/refresh.icon.d.ts +2 -2
- package/src/icons/outline/refresh/refresh.icon.tsx +5 -4
- package/src/icons/outline/search/search.icon.d.ts +2 -2
- package/src/icons/outline/search/search.icon.tsx +5 -4
- package/src/icons/outline/selector/selector.icon.d.ts +2 -2
- package/src/icons/outline/selector/selector.icon.tsx +5 -4
- package/src/icons/outline/sm-view-grid-add/sm-view-grid-add.icon.d.ts +2 -2
- package/src/icons/outline/sm-view-grid-add/sm-view-grid-add.icon.tsx +5 -4
- package/src/icons/outline/status-online/status-online.icon.d.ts +2 -2
- package/src/icons/outline/status-online/status-online.icon.tsx +5 -4
- package/src/icons/outline/thumb-up/thumb-up.icon.d.ts +2 -2
- package/src/icons/outline/thumb-up/thumb-up.icon.tsx +5 -4
- package/src/icons/outline/trash/trash.icon.d.ts +2 -2
- package/src/icons/outline/trash/trash.icon.tsx +5 -4
- package/src/icons/outline/user/user.icon.d.ts +2 -2
- package/src/icons/outline/user/user.icon.tsx +6 -5
- package/src/icons/outline/user-group/user-group.icon.d.ts +2 -2
- package/src/icons/outline/user-group/user-group.icon.tsx +5 -4
- package/src/icons/outline/users/users.icon.d.ts +2 -2
- package/src/icons/outline/users/users.icon.tsx +5 -4
- package/src/icons/outline/xmark/xmark.icon.d.ts +2 -0
- package/src/icons/outline/{cross/cross.icon.tsx → xmark/xmark.icon.tsx} +5 -4
- package/src/icons/solid/calendar/calendar.icon.d.ts +2 -0
- package/src/icons/solid/calendar/calendar.icon.tsx +21 -0
- package/src/icons/solid/chat/chat.icon.d.ts +2 -0
- package/src/icons/solid/chat/chat.icon.tsx +21 -0
- package/src/icons/solid/chat-alt/chat-alt-solid.icon.d.ts +2 -2
- package/src/icons/solid/chat-alt/chat-alt-solid.icon.tsx +5 -4
- package/src/icons/solid/check-circle/check-circle.icon.d.ts +2 -0
- package/src/icons/solid/check-circle/check-circle.icon.tsx +21 -0
- package/src/icons/solid/chevron-left/chevron-left.icon.d.ts +2 -0
- package/src/icons/solid/chevron-left/chevron-left.icon.tsx +21 -0
- package/src/icons/solid/chevron-right/chevron-right.icon.d.ts +2 -0
- package/src/icons/solid/chevron-right/chevron-right.icon.tsx +21 -0
- package/src/icons/solid/clock/clock-solid.icon.d.ts +2 -2
- package/src/icons/solid/clock/clock-solid.icon.tsx +5 -4
- package/src/icons/solid/cloud-download/cloud-download.icon.d.ts +2 -0
- package/src/icons/solid/cloud-download/cloud-download.icon.tsx +21 -0
- package/src/icons/solid/currency-euro/currency-euro.icon.d.ts +2 -0
- package/src/icons/solid/currency-euro/currency-euro.icon.tsx +21 -0
- package/src/icons/solid/document-text/document-text-solid.icon.d.ts +2 -2
- package/src/icons/solid/document-text/document-text-solid.icon.tsx +4 -3
- package/src/icons/solid/exclamation/exclamation.icon.d.ts +2 -0
- package/src/icons/solid/exclamation/exclamation.icon.tsx +20 -0
- package/src/icons/solid/exclamation-circle/exclamation-circle.icon.d.ts +2 -0
- package/src/icons/solid/exclamation-circle/exclamation-circle.icon.tsx +23 -0
- package/src/icons/solid/eye/eye.icon.d.ts +2 -0
- package/src/icons/solid/eye/eye.icon.tsx +24 -0
- package/src/icons/solid/eye-off/eye-off.icon.d.ts +2 -0
- package/src/icons/solid/eye-off/eye-off.icon.tsx +24 -0
- package/src/icons/solid/filter/filter.icon.d.ts +2 -0
- package/src/icons/solid/filter/filter.icon.tsx +21 -0
- package/src/icons/solid/information-circle/information-circle-solid.icon.d.ts +2 -2
- package/src/icons/solid/information-circle/information-circle-solid.icon.tsx +8 -4
- package/src/icons/solid/logout/logout.icon.d.ts +2 -0
- package/src/icons/solid/logout/logout.icon.tsx +26 -0
- package/src/icons/solid/mail/mail.icon.d.ts +2 -0
- package/src/icons/solid/mail/mail.icon.tsx +23 -0
- package/src/icons/solid/mail-open/mail-open.icon.d.ts +2 -0
- package/src/icons/solid/mail-open/mail-open.icon.tsx +21 -0
- package/src/icons/solid/menu/menu.icon.d.ts +2 -0
- package/src/icons/solid/menu/menu.icon.tsx +33 -0
- package/src/icons/solid/minus-sm/minus-sm.icon.d.ts +2 -0
- package/src/icons/solid/minus-sm/minus-sm.icon.tsx +21 -0
- package/src/icons/solid/office-building/office-building.icon.d.ts +2 -0
- package/src/icons/solid/office-building/office-building.icon.tsx +21 -0
- package/src/icons/solid/paper-airplane/paper-airplane.icon.d.ts +2 -0
- package/src/icons/solid/paper-airplane/paper-airplane.icon.tsx +25 -0
- package/src/icons/solid/paperclip/paperclip.icon.d.ts +2 -0
- package/src/icons/solid/paperclip/paperclip.icon.tsx +21 -0
- package/src/icons/solid/pencil/pencil-solid.icon.d.ts +2 -2
- package/src/icons/solid/pencil/pencil-solid.icon.tsx +6 -5
- package/src/icons/solid/phone/phone-solid.icon.d.ts +2 -2
- package/src/icons/solid/phone/phone-solid.icon.tsx +5 -4
- package/src/icons/solid/plus/plus.icon.d.ts +2 -0
- package/src/icons/solid/plus/plus.icon.tsx +21 -0
- package/src/icons/solid/plus-sm/plus-sm.icon.d.ts +2 -0
- package/src/icons/solid/plus-sm/plus-sm.icon.tsx +21 -0
- package/src/icons/solid/qrcode/qrcode.icon.d.ts +2 -0
- package/src/icons/solid/qrcode/qrcode.icon.tsx +60 -0
- package/src/icons/solid/refresh/refresh-solid.icon.d.ts +2 -2
- package/src/icons/solid/refresh/refresh-solid.icon.tsx +5 -4
- package/src/icons/solid/search/search.icon.d.ts +2 -0
- package/src/icons/solid/search/search.icon.tsx +21 -0
- package/src/icons/solid/selector/selector.icon.d.ts +2 -0
- package/src/icons/solid/selector/selector.icon.tsx +21 -0
- package/src/icons/solid/sm-view-grid-add/sm-view-grid-add.icon.d.ts +2 -0
- package/src/icons/solid/sm-view-grid-add/sm-view-grid-add.icon.tsx +31 -0
- package/src/icons/solid/solid.d.ts +2 -12
- package/src/icons/solid/solid.preview.tsx +95 -30
- package/src/icons/solid/solid.tsx +133 -21
- package/src/icons/solid/status-online/status-online-solid.icon.d.ts +2 -2
- package/src/icons/solid/status-online/status-online-solid.icon.tsx +5 -10
- package/src/icons/solid/thumb-up/thumb-up.icon.d.ts +2 -0
- package/src/icons/solid/thumb-up/thumb-up.icon.tsx +23 -0
- package/src/icons/solid/trash/trash-solid.icon.d.ts +2 -2
- package/src/icons/solid/trash/trash-solid.icon.tsx +5 -4
- package/src/icons/solid/user/user.icon.d.ts +2 -0
- package/src/icons/solid/user/user.icon.tsx +23 -0
- package/src/icons/solid/user-group/user-group.icon.d.ts +2 -0
- package/src/icons/solid/user-group/user-group.icon.tsx +72 -0
- package/src/icons/solid/users/users-solid.icon.d.ts +2 -2
- package/src/icons/solid/users/users-solid.icon.tsx +29 -3
- package/src/icons/solid/xmark/xmark.icon.d.ts +2 -0
- package/src/icons/solid/xmark/xmark.icon.tsx +21 -0
- package/src/interfaces/icon.interface.d.ts +11 -0
- package/src/interfaces/icon.interface.ts +12 -0
- package/src/theme/provider/parent.theme.ts +1 -1
- package/src/types/icontype.type.d.ts +2 -4
- package/src/types/icontype.type.ts +43 -4
- package/src/types/loading-dots.type.d.ts +8 -0
- package/src/types/loading-dots.type.ts +8 -0
- package/src/icons/outline/cross/cross.icon.d.ts +0 -2
- /package/src/components/{templates/popover/components → atoms}/backdrop/backdrop.component.d.ts +0 -0
- /package/src/components/{templates/popover/components → atoms}/backdrop/backdrop.styles.d.ts +0 -0
- /package/src/components/{templates/popover/components → atoms}/backdrop/backdrop.styles.js +0 -0
|
@@ -58,11 +58,11 @@ exports[`Test date input component renders a date input component 1`] = `
|
|
|
58
58
|
</View>
|
|
59
59
|
<RNSVGSvgView
|
|
60
60
|
align="xMidYMid"
|
|
61
|
-
bbHeight=
|
|
62
|
-
bbWidth=
|
|
61
|
+
bbHeight={24}
|
|
62
|
+
bbWidth={24}
|
|
63
63
|
fill="none"
|
|
64
64
|
focusable={false}
|
|
65
|
-
height=
|
|
65
|
+
height={24}
|
|
66
66
|
meetOrSlice={0}
|
|
67
67
|
minX={0}
|
|
68
68
|
minY={0}
|
|
@@ -74,14 +74,14 @@ exports[`Test date input component renders a date input component 1`] = `
|
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"flex": 0,
|
|
77
|
-
"height":
|
|
78
|
-
"width":
|
|
77
|
+
"height": 24,
|
|
78
|
+
"width": 24,
|
|
79
79
|
},
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
|
-
vbHeight={
|
|
83
|
-
vbWidth={
|
|
84
|
-
width=
|
|
82
|
+
vbHeight={24}
|
|
83
|
+
vbWidth={24}
|
|
84
|
+
width={24}
|
|
85
85
|
>
|
|
86
86
|
<RNSVGGroup
|
|
87
87
|
fill={null}
|
|
@@ -92,7 +92,7 @@ exports[`Test date input component renders a date input component 1`] = `
|
|
|
92
92
|
}
|
|
93
93
|
>
|
|
94
94
|
<RNSVGPath
|
|
95
|
-
d="
|
|
95
|
+
d="M7.33333 6.16667V1.5M16.6667 6.16667V1.5M6.16667 10.8333H17.8333M3.83333 22.5H20.1667C21.4553 22.5 22.5 21.4553 22.5 20.1667V6.16667C22.5 4.878 21.4553 3.83333 20.1667 3.83333H3.83333C2.54467 3.83333 1.5 4.878 1.5 6.16667V20.1667C1.5 21.4553 2.54467 22.5 3.83333 22.5Z"
|
|
96
96
|
propList={
|
|
97
97
|
[
|
|
98
98
|
"stroke",
|
|
@@ -22,7 +22,11 @@ export const DateInput = ({onPress, value}: DateInputProps) => {
|
|
|
22
22
|
{value.toISODate()}
|
|
23
23
|
</Heading4>
|
|
24
24
|
</View>
|
|
25
|
-
<Icon
|
|
25
|
+
<Icon
|
|
26
|
+
style={'regular'}
|
|
27
|
+
name={'calendar'}
|
|
28
|
+
color={context.colors.ui.black}
|
|
29
|
+
/>
|
|
26
30
|
</Pressable>
|
|
27
31
|
);
|
|
28
32
|
};
|
|
@@ -58,11 +58,11 @@ exports[`test default select component should render a default select component
|
|
|
58
58
|
</View>
|
|
59
59
|
<RNSVGSvgView
|
|
60
60
|
align="xMidYMid"
|
|
61
|
-
bbHeight=
|
|
62
|
-
bbWidth=
|
|
61
|
+
bbHeight={24}
|
|
62
|
+
bbWidth={24}
|
|
63
63
|
fill="none"
|
|
64
64
|
focusable={false}
|
|
65
|
-
height=
|
|
65
|
+
height={24}
|
|
66
66
|
meetOrSlice={0}
|
|
67
67
|
minX={0}
|
|
68
68
|
minY={0}
|
|
@@ -74,14 +74,14 @@ exports[`test default select component should render a default select component
|
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"flex": 0,
|
|
77
|
-
"height":
|
|
78
|
-
"width":
|
|
77
|
+
"height": 24,
|
|
78
|
+
"width": 24,
|
|
79
79
|
},
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
|
-
vbHeight={
|
|
83
|
-
vbWidth={
|
|
84
|
-
width=
|
|
82
|
+
vbHeight={19}
|
|
83
|
+
vbWidth={11}
|
|
84
|
+
width={24}
|
|
85
85
|
>
|
|
86
86
|
<RNSVGGroup
|
|
87
87
|
fill={null}
|
|
@@ -92,7 +92,7 @@ exports[`test default select component should render a default select component
|
|
|
92
92
|
}
|
|
93
93
|
>
|
|
94
94
|
<RNSVGPath
|
|
95
|
-
d="
|
|
95
|
+
d="M1.75 1.625L9.33333 9.5L1.75 17.375"
|
|
96
96
|
propList={
|
|
97
97
|
[
|
|
98
98
|
"stroke",
|
|
@@ -32,7 +32,11 @@ export const DefaultSelect = ({label, onPress}: DefaultSelectProps) => {
|
|
|
32
32
|
{label}
|
|
33
33
|
</Heading3>
|
|
34
34
|
</View>
|
|
35
|
-
<Icon
|
|
35
|
+
<Icon
|
|
36
|
+
style={'regular'}
|
|
37
|
+
name={'chevron-right'}
|
|
38
|
+
color={Context.colors.ui.white}
|
|
39
|
+
/>
|
|
36
40
|
</Pressable>
|
|
37
41
|
);
|
|
38
42
|
};
|
|
@@ -19,11 +19,11 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
|
|
|
19
19
|
>
|
|
20
20
|
<RNSVGSvgView
|
|
21
21
|
align="xMidYMid"
|
|
22
|
-
bbHeight=
|
|
23
|
-
bbWidth=
|
|
22
|
+
bbHeight={26}
|
|
23
|
+
bbWidth={26}
|
|
24
24
|
fill="none"
|
|
25
25
|
focusable={false}
|
|
26
|
-
height=
|
|
26
|
+
height={26}
|
|
27
27
|
meetOrSlice={0}
|
|
28
28
|
minX={0}
|
|
29
29
|
minY={0}
|
|
@@ -35,14 +35,14 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
|
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"flex": 0,
|
|
38
|
-
"height":
|
|
39
|
-
"width":
|
|
38
|
+
"height": 26,
|
|
39
|
+
"width": 26,
|
|
40
40
|
},
|
|
41
41
|
]
|
|
42
42
|
}
|
|
43
|
-
vbHeight={
|
|
44
|
-
vbWidth={
|
|
45
|
-
width=
|
|
43
|
+
vbHeight={23}
|
|
44
|
+
vbWidth={22}
|
|
45
|
+
width={26}
|
|
46
46
|
>
|
|
47
47
|
<RNSVGGroup
|
|
48
48
|
fill={null}
|
|
@@ -53,7 +53,7 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
|
|
|
53
53
|
}
|
|
54
54
|
>
|
|
55
55
|
<RNSVGPath
|
|
56
|
-
d="
|
|
56
|
+
d="M11 7V11.5M11 16H11.0108M20.75 11.5C20.75 17.0919 16.3848 21.625 11 21.625C5.61522 21.625 1.25 17.0919 1.25 11.5C1.25 5.90812 5.61522 1.375 11 1.375C16.3848 1.375 20.75 5.90812 20.75 11.5Z"
|
|
57
57
|
propList={
|
|
58
58
|
[
|
|
59
59
|
"stroke",
|
|
@@ -155,11 +155,11 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
|
|
|
155
155
|
>
|
|
156
156
|
<RNSVGSvgView
|
|
157
157
|
align="xMidYMid"
|
|
158
|
-
bbHeight=
|
|
159
|
-
bbWidth=
|
|
158
|
+
bbHeight={24}
|
|
159
|
+
bbWidth={24}
|
|
160
160
|
fill="none"
|
|
161
161
|
focusable={false}
|
|
162
|
-
height=
|
|
162
|
+
height={24}
|
|
163
163
|
meetOrSlice={0}
|
|
164
164
|
minX={0}
|
|
165
165
|
minY={0}
|
|
@@ -171,14 +171,14 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
|
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
"flex": 0,
|
|
174
|
-
"height":
|
|
175
|
-
"width":
|
|
174
|
+
"height": 24,
|
|
175
|
+
"width": 24,
|
|
176
176
|
},
|
|
177
177
|
]
|
|
178
178
|
}
|
|
179
|
-
vbHeight={
|
|
180
|
-
vbWidth={
|
|
181
|
-
width=
|
|
179
|
+
vbHeight={21}
|
|
180
|
+
vbWidth={20}
|
|
181
|
+
width={24}
|
|
182
182
|
>
|
|
183
183
|
<RNSVGGroup
|
|
184
184
|
fill={null}
|
|
@@ -189,7 +189,7 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
|
|
|
189
189
|
}
|
|
190
190
|
>
|
|
191
191
|
<RNSVGPath
|
|
192
|
-
d="
|
|
192
|
+
d="M1.33337 1.5V7.125H1.96335M18.5997 9.375C18.0665 4.9354 14.4196 1.5 10 1.5C6.36288 1.5 3.24902 3.82669 1.96335 7.125M1.96335 7.125H6.75004M18.6667 19.5V13.875H18.0367M18.0367 13.875C16.7511 17.1733 13.6372 19.5 10 19.5C5.58045 19.5 1.93353 16.0646 1.40043 11.625M18.0367 13.875H13.25"
|
|
193
193
|
propList={
|
|
194
194
|
[
|
|
195
195
|
"stroke",
|
|
@@ -233,11 +233,11 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
|
|
|
233
233
|
>
|
|
234
234
|
<RNSVGSvgView
|
|
235
235
|
align="xMidYMid"
|
|
236
|
-
bbHeight=
|
|
237
|
-
bbWidth=
|
|
236
|
+
bbHeight={24}
|
|
237
|
+
bbWidth={24}
|
|
238
238
|
fill="none"
|
|
239
239
|
focusable={false}
|
|
240
|
-
height=
|
|
240
|
+
height={24}
|
|
241
241
|
meetOrSlice={0}
|
|
242
242
|
minX={0}
|
|
243
243
|
minY={0}
|
|
@@ -249,14 +249,14 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
|
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
"flex": 0,
|
|
252
|
-
"height":
|
|
253
|
-
"width":
|
|
252
|
+
"height": 24,
|
|
253
|
+
"width": 24,
|
|
254
254
|
},
|
|
255
255
|
]
|
|
256
256
|
}
|
|
257
|
-
vbHeight={
|
|
258
|
-
vbWidth={
|
|
259
|
-
width=
|
|
257
|
+
vbHeight={22}
|
|
258
|
+
vbWidth={21}
|
|
259
|
+
width={24}
|
|
260
260
|
>
|
|
261
261
|
<RNSVGGroup
|
|
262
262
|
fill={null}
|
|
@@ -267,7 +267,7 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
|
|
|
267
267
|
}
|
|
268
268
|
>
|
|
269
269
|
<RNSVGPath
|
|
270
|
-
d="
|
|
270
|
+
d="M18.375 5.58333L17.3993 18.7377C17.3152 19.8715 16.3354 20.75 15.155 20.75H5.84502C4.66458 20.75 3.68484 19.8715 3.60074 18.7377L2.625 5.58333M8.25 9.91667V16.4167M12.75 9.91667V16.4167M13.875 5.58333V2.33333C13.875 1.73502 13.3713 1.25 12.75 1.25H8.25C7.62868 1.25 7.125 1.73502 7.125 2.33333V5.58333M1.5 5.58333H19.5"
|
|
271
271
|
propList={
|
|
272
272
|
[
|
|
273
273
|
"stroke",
|
|
@@ -37,12 +37,20 @@ const FailedTextBubble = ({
|
|
|
37
37
|
<View style={styles.swipedRow}>
|
|
38
38
|
<Animated.View style={[styles.swipedIcon, {opacity}]}>
|
|
39
39
|
<Pressable onPress={onPressRefresh}>
|
|
40
|
-
<Icon
|
|
40
|
+
<Icon
|
|
41
|
+
style={'regular'}
|
|
42
|
+
name={'refresh'}
|
|
43
|
+
color={context.colors.ui.error.xlight}
|
|
44
|
+
/>
|
|
41
45
|
</Pressable>
|
|
42
46
|
</Animated.View>
|
|
43
47
|
<Animated.View style={[styles.swipedIcon, {opacity}]}>
|
|
44
48
|
<Pressable onPress={onPressDelete}>
|
|
45
|
-
<Icon
|
|
49
|
+
<Icon
|
|
50
|
+
style={'regular'}
|
|
51
|
+
name={'trash'}
|
|
52
|
+
color={context.colors.ui.error.xlight}
|
|
53
|
+
/>
|
|
46
54
|
</Pressable>
|
|
47
55
|
</Animated.View>
|
|
48
56
|
</View>
|
|
@@ -52,8 +60,11 @@ const FailedTextBubble = ({
|
|
|
52
60
|
return (
|
|
53
61
|
<GestureHandlerRootView style={{flexDirection: 'row'}}>
|
|
54
62
|
<View style={styles.iconContainer}>
|
|
55
|
-
<Icon
|
|
63
|
+
<Icon
|
|
64
|
+
style={'regular'}
|
|
65
|
+
name={'exclamation-circle'}
|
|
56
66
|
color={context.colors.ui.error.default}
|
|
67
|
+
size={26}
|
|
57
68
|
/>
|
|
58
69
|
</View>
|
|
59
70
|
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`language button should render a language button in a black text color, medium bold 1`] = `
|
|
4
|
+
<View
|
|
5
|
+
accessible={true}
|
|
6
|
+
collapsable={false}
|
|
7
|
+
focusable={true}
|
|
8
|
+
onBlur={[Function]}
|
|
9
|
+
onClick={[Function]}
|
|
10
|
+
onFocus={[Function]}
|
|
11
|
+
onResponderGrant={[Function]}
|
|
12
|
+
onResponderMove={[Function]}
|
|
13
|
+
onResponderRelease={[Function]}
|
|
14
|
+
onResponderTerminate={[Function]}
|
|
15
|
+
onResponderTerminationRequest={[Function]}
|
|
16
|
+
onStartShouldSetResponder={[Function]}
|
|
17
|
+
style={
|
|
18
|
+
{
|
|
19
|
+
"alignItems": "center",
|
|
20
|
+
"justifyContent": "center",
|
|
21
|
+
"minHeight": 42,
|
|
22
|
+
"minWidth": 42,
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
>
|
|
26
|
+
<Text
|
|
27
|
+
style={
|
|
28
|
+
[
|
|
29
|
+
[
|
|
30
|
+
{
|
|
31
|
+
"fontFamily": "SourceSansProBold",
|
|
32
|
+
"fontSize": 16,
|
|
33
|
+
"lineHeight": 22.4,
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
{
|
|
37
|
+
"color": "#000000",
|
|
38
|
+
"textAlign": "center",
|
|
39
|
+
"width": "100%",
|
|
40
|
+
},
|
|
41
|
+
undefined,
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
>
|
|
45
|
+
FR
|
|
46
|
+
</Text>
|
|
47
|
+
</View>
|
|
48
|
+
`;
|
|
49
|
+
|
|
50
|
+
exports[`language button should render a language button in a white text color, medium bold 1`] = `
|
|
51
|
+
<View
|
|
52
|
+
accessible={true}
|
|
53
|
+
collapsable={false}
|
|
54
|
+
focusable={true}
|
|
55
|
+
onBlur={[Function]}
|
|
56
|
+
onClick={[Function]}
|
|
57
|
+
onFocus={[Function]}
|
|
58
|
+
onResponderGrant={[Function]}
|
|
59
|
+
onResponderMove={[Function]}
|
|
60
|
+
onResponderRelease={[Function]}
|
|
61
|
+
onResponderTerminate={[Function]}
|
|
62
|
+
onResponderTerminationRequest={[Function]}
|
|
63
|
+
onStartShouldSetResponder={[Function]}
|
|
64
|
+
style={
|
|
65
|
+
{
|
|
66
|
+
"alignItems": "center",
|
|
67
|
+
"justifyContent": "center",
|
|
68
|
+
"minHeight": 42,
|
|
69
|
+
"minWidth": 42,
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
>
|
|
73
|
+
<Text
|
|
74
|
+
style={
|
|
75
|
+
[
|
|
76
|
+
[
|
|
77
|
+
{
|
|
78
|
+
"fontFamily": "SourceSansProBold",
|
|
79
|
+
"fontSize": 16,
|
|
80
|
+
"lineHeight": 22.4,
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
{
|
|
84
|
+
"color": "#FFFFFF",
|
|
85
|
+
"textAlign": "center",
|
|
86
|
+
"width": "100%",
|
|
87
|
+
},
|
|
88
|
+
undefined,
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
>
|
|
92
|
+
NL
|
|
93
|
+
</Text>
|
|
94
|
+
</View>
|
|
95
|
+
`;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import {Pressable} from 'react-native';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {Stylesheet} from './language-button.styles';
|
|
6
|
+
import {Heading4} from '../../atoms/heading-components';
|
|
7
|
+
|
|
8
|
+
type LanguageButtonProps = {
|
|
9
|
+
label: string;
|
|
10
|
+
onPress?: () => void;
|
|
11
|
+
textColor?: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const LanguageButton = ({
|
|
15
|
+
label,
|
|
16
|
+
onPress,
|
|
17
|
+
textColor,
|
|
18
|
+
}: LanguageButtonProps) => {
|
|
19
|
+
const Context = useContext(ThemeCtx);
|
|
20
|
+
const styles = Stylesheet();
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<Pressable onPress={onPress} style={styles.container}>
|
|
24
|
+
<Heading4
|
|
25
|
+
bold={true}
|
|
26
|
+
textAlign={'center'}
|
|
27
|
+
textColor={textColor ? textColor : Context.colors.ui.white}
|
|
28
|
+
>
|
|
29
|
+
{label}
|
|
30
|
+
</Heading4>
|
|
31
|
+
</Pressable>
|
|
32
|
+
);
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LanguageButtonPreview: ({}: {}) => JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, {useContext} from 'react';
|
|
2
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
3
|
+
import {LanguageButton} from './language-button.component';
|
|
4
|
+
|
|
5
|
+
const {View} = require('react-native');
|
|
6
|
+
|
|
7
|
+
export const LanguageButtonPreview = ({}: {}) => {
|
|
8
|
+
const Context = useContext(ThemeCtx);
|
|
9
|
+
return (
|
|
10
|
+
<View
|
|
11
|
+
style={{
|
|
12
|
+
flex: 1,
|
|
13
|
+
alignItems: 'center',
|
|
14
|
+
justifyContent: 'center',
|
|
15
|
+
backgroundColor: Context.colors.main['0'],
|
|
16
|
+
}}
|
|
17
|
+
>
|
|
18
|
+
<LanguageButton
|
|
19
|
+
label={'NL'}
|
|
20
|
+
onPress={() => console.log('change language')}
|
|
21
|
+
/>
|
|
22
|
+
<LanguageButton
|
|
23
|
+
label={'FR'}
|
|
24
|
+
onPress={() => console.log('change language')}
|
|
25
|
+
textColor={'#FF0000'}
|
|
26
|
+
/>
|
|
27
|
+
</View>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {StyleSheet} from 'react-native';
|
|
2
|
+
import {Scale} from '../../../theme/scale';
|
|
3
|
+
|
|
4
|
+
export const Stylesheet = () =>
|
|
5
|
+
StyleSheet.create({
|
|
6
|
+
container: {
|
|
7
|
+
minWidth: Scale.m * 2.625,
|
|
8
|
+
minHeight: Scale.m * 2.625,
|
|
9
|
+
justifyContent: 'center',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
},
|
|
12
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import render from 'react-test-renderer';
|
|
3
|
+
import {LanguageButton} from './language-button.component';
|
|
4
|
+
|
|
5
|
+
describe('language button', () => {
|
|
6
|
+
it('should render a language button in a white text color, medium bold', function () {
|
|
7
|
+
const tree = render
|
|
8
|
+
.create(
|
|
9
|
+
<LanguageButton
|
|
10
|
+
label="NL"
|
|
11
|
+
onPress={() => console.log('choose language')}
|
|
12
|
+
/>
|
|
13
|
+
)
|
|
14
|
+
.toJSON();
|
|
15
|
+
expect(tree).toMatchSnapshot();
|
|
16
|
+
});
|
|
17
|
+
it('should render a language button in a black text color, medium bold', () => {
|
|
18
|
+
const tree = render
|
|
19
|
+
.create(
|
|
20
|
+
<LanguageButton
|
|
21
|
+
label="FR"
|
|
22
|
+
onPress={() => console.log('choose language')}
|
|
23
|
+
textColor={'#000000'}
|
|
24
|
+
/>
|
|
25
|
+
)
|
|
26
|
+
.toJSON();
|
|
27
|
+
expect(tree).toMatchSnapshot();
|
|
28
|
+
});
|
|
29
|
+
});
|