@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
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {SelectListItem} from './select-list-item.component';
|
|
3
|
-
import {
|
|
4
|
-
import {OfficeBuildingIcon} from '../../../icons/outline/office-building/office-building.icon';
|
|
3
|
+
import {Icon} from '../../../icons/index';
|
|
5
4
|
|
|
6
5
|
const {View} = require('react-native');
|
|
7
6
|
|
|
@@ -18,13 +17,13 @@ export const SelectListItemPreview = ({}: {}) => {
|
|
|
18
17
|
<SelectListItem
|
|
19
18
|
title="Vlindertjes"
|
|
20
19
|
subtitle={'Leeftijd 2 tot 4 jaar'}
|
|
21
|
-
icon={<
|
|
20
|
+
icon={<Icon style={'regular'} name={'user-group'} size={27} />}
|
|
22
21
|
onPress={() => console.log('clicked')}
|
|
23
22
|
/>
|
|
24
23
|
<SelectListItem
|
|
25
24
|
title="Vlindertjes"
|
|
26
25
|
subtitle={'Leeftijd 2 tot 4 jaar'}
|
|
27
|
-
icon={<
|
|
26
|
+
icon={<Icon style={'regular'} name={'office-building'} size={27} />}
|
|
28
27
|
inverse={true}
|
|
29
28
|
onPress={() => console.log('clicked')}
|
|
30
29
|
/>
|
|
@@ -33,27 +33,30 @@ const SelectListItem = ({
|
|
|
33
33
|
);
|
|
34
34
|
|
|
35
35
|
return (
|
|
36
|
-
<Pressable onPress={onPress}>
|
|
37
|
-
<View style={styles.
|
|
38
|
-
<View
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<View
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
</Heading2>
|
|
46
|
-
</View>
|
|
47
|
-
<View>
|
|
48
|
-
<Paragraph textColor={context.colors.ui.lightgrey}>
|
|
49
|
-
{subtitle}
|
|
50
|
-
</Paragraph>
|
|
51
|
-
</View>
|
|
36
|
+
<Pressable onPress={onPress} style={styles.container}>
|
|
37
|
+
<View style={styles.iconCircle}>
|
|
38
|
+
<View>{inverse ? invertedIcon : icon}</View>
|
|
39
|
+
</View>
|
|
40
|
+
<View style={styles.textContainer}>
|
|
41
|
+
<View>
|
|
42
|
+
<Heading2 bold={true} textColor={context.colors.ui.white}>
|
|
43
|
+
{title}
|
|
44
|
+
</Heading2>
|
|
52
45
|
</View>
|
|
53
|
-
<View
|
|
54
|
-
<
|
|
46
|
+
<View>
|
|
47
|
+
<Paragraph textColor={context.colors.ui.lightgrey}>
|
|
48
|
+
{subtitle}
|
|
49
|
+
</Paragraph>
|
|
55
50
|
</View>
|
|
56
51
|
</View>
|
|
52
|
+
<View style={styles.iconSquare}>
|
|
53
|
+
<Icon
|
|
54
|
+
style={'regular'}
|
|
55
|
+
name={'chevron-right'}
|
|
56
|
+
size={20}
|
|
57
|
+
color={context.colors.ui.white}
|
|
58
|
+
/>
|
|
59
|
+
</View>
|
|
57
60
|
</Pressable>
|
|
58
61
|
);
|
|
59
62
|
};
|
|
@@ -14,19 +14,22 @@ export const Stylesheet = (context, inverse) =>
|
|
|
14
14
|
backgroundColor: inverse
|
|
15
15
|
? context.colors.main['3']
|
|
16
16
|
: context.colors.main['6'],
|
|
17
|
-
width:
|
|
18
|
-
height:
|
|
19
|
-
borderRadius:
|
|
20
|
-
marginRight: Scale.
|
|
17
|
+
width: 62,
|
|
18
|
+
height: 62,
|
|
19
|
+
borderRadius: 62 / 2,
|
|
20
|
+
marginRight: Scale.m,
|
|
21
21
|
},
|
|
22
22
|
textContainer: {
|
|
23
23
|
flex: 1,
|
|
24
24
|
flexDirection: 'column',
|
|
25
|
+
justifyContent: 'center',
|
|
26
|
+
paddingTop: Scale.xxxs,
|
|
27
|
+
paddingBottom: Scale.xxxs,
|
|
25
28
|
},
|
|
26
29
|
iconSquare: {
|
|
27
|
-
|
|
30
|
+
justifyContent: 'center',
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
marginLeft: Scale.m,
|
|
28
33
|
marginRight: Scale.m,
|
|
29
|
-
width: Scale.xl,
|
|
30
|
-
height: Scale.xl,
|
|
31
34
|
},
|
|
32
35
|
});
|
|
@@ -24,7 +24,6 @@ exports[`Select Picker test renders a picker with placeholder text 1`] = `
|
|
|
24
24
|
<View
|
|
25
25
|
style={
|
|
26
26
|
{
|
|
27
|
-
"alignItems": "center",
|
|
28
27
|
"height": "100%",
|
|
29
28
|
"justifyContent": "center",
|
|
30
29
|
"width": "100%",
|
|
@@ -123,11 +122,11 @@ exports[`Select Picker test renders a picker with placeholder text 1`] = `
|
|
|
123
122
|
>
|
|
124
123
|
<RNSVGSvgView
|
|
125
124
|
align="xMidYMid"
|
|
126
|
-
bbHeight=
|
|
127
|
-
bbWidth=
|
|
125
|
+
bbHeight={20}
|
|
126
|
+
bbWidth={20}
|
|
128
127
|
fill="none"
|
|
129
128
|
focusable={false}
|
|
130
|
-
height=
|
|
129
|
+
height={20}
|
|
131
130
|
meetOrSlice={0}
|
|
132
131
|
minX={0}
|
|
133
132
|
minY={0}
|
|
@@ -139,14 +138,14 @@ exports[`Select Picker test renders a picker with placeholder text 1`] = `
|
|
|
139
138
|
},
|
|
140
139
|
{
|
|
141
140
|
"flex": 0,
|
|
142
|
-
"height":
|
|
143
|
-
"width":
|
|
141
|
+
"height": 20,
|
|
142
|
+
"width": 20,
|
|
144
143
|
},
|
|
145
144
|
]
|
|
146
145
|
}
|
|
147
|
-
vbHeight={
|
|
148
|
-
vbWidth={
|
|
149
|
-
width=
|
|
146
|
+
vbHeight={19}
|
|
147
|
+
vbWidth={12}
|
|
148
|
+
width={20}
|
|
150
149
|
>
|
|
151
150
|
<RNSVGGroup
|
|
152
151
|
fill={null}
|
|
@@ -157,7 +156,7 @@ exports[`Select Picker test renders a picker with placeholder text 1`] = `
|
|
|
157
156
|
}
|
|
158
157
|
>
|
|
159
158
|
<RNSVGPath
|
|
160
|
-
d="
|
|
159
|
+
d="M1.66663 6.125L5.99996 1.625L10.3333 6.125M10.3333 12.875L5.99996 17.375L1.66663 12.875"
|
|
161
160
|
propList={
|
|
162
161
|
[
|
|
163
162
|
"stroke",
|
|
@@ -201,7 +200,6 @@ exports[`Select Picker test renders a picker without placeholder text 1`] = `
|
|
|
201
200
|
<View
|
|
202
201
|
style={
|
|
203
202
|
{
|
|
204
|
-
"alignItems": "center",
|
|
205
203
|
"height": "100%",
|
|
206
204
|
"justifyContent": "center",
|
|
207
205
|
"width": "100%",
|
|
@@ -298,11 +296,11 @@ exports[`Select Picker test renders a picker without placeholder text 1`] = `
|
|
|
298
296
|
>
|
|
299
297
|
<RNSVGSvgView
|
|
300
298
|
align="xMidYMid"
|
|
301
|
-
bbHeight=
|
|
302
|
-
bbWidth=
|
|
299
|
+
bbHeight={20}
|
|
300
|
+
bbWidth={20}
|
|
303
301
|
fill="none"
|
|
304
302
|
focusable={false}
|
|
305
|
-
height=
|
|
303
|
+
height={20}
|
|
306
304
|
meetOrSlice={0}
|
|
307
305
|
minX={0}
|
|
308
306
|
minY={0}
|
|
@@ -314,14 +312,14 @@ exports[`Select Picker test renders a picker without placeholder text 1`] = `
|
|
|
314
312
|
},
|
|
315
313
|
{
|
|
316
314
|
"flex": 0,
|
|
317
|
-
"height":
|
|
318
|
-
"width":
|
|
315
|
+
"height": 20,
|
|
316
|
+
"width": 20,
|
|
319
317
|
},
|
|
320
318
|
]
|
|
321
319
|
}
|
|
322
|
-
vbHeight={
|
|
323
|
-
vbWidth={
|
|
324
|
-
width=
|
|
320
|
+
vbHeight={19}
|
|
321
|
+
vbWidth={12}
|
|
322
|
+
width={20}
|
|
325
323
|
>
|
|
326
324
|
<RNSVGGroup
|
|
327
325
|
fill={null}
|
|
@@ -332,7 +330,7 @@ exports[`Select Picker test renders a picker without placeholder text 1`] = `
|
|
|
332
330
|
}
|
|
333
331
|
>
|
|
334
332
|
<RNSVGPath
|
|
335
|
-
d="
|
|
333
|
+
d="M1.66663 6.125L5.99996 1.625L10.3333 6.125M10.3333 12.875L5.99996 17.375L1.66663 12.875"
|
|
336
334
|
propList={
|
|
337
335
|
[
|
|
338
336
|
"stroke",
|
|
@@ -63,7 +63,12 @@ export const SelectPicker = ({
|
|
|
63
63
|
/>
|
|
64
64
|
</View>
|
|
65
65
|
<View style={styles.iconContainer}>
|
|
66
|
-
<Icon
|
|
66
|
+
<Icon
|
|
67
|
+
style={'regular'}
|
|
68
|
+
name={'selector'}
|
|
69
|
+
color={context.colors.ui.black}
|
|
70
|
+
size={20}
|
|
71
|
+
/>
|
|
67
72
|
</View>
|
|
68
73
|
</View>
|
|
69
74
|
);
|
|
@@ -24,13 +24,13 @@ export const Stylesheet = (Context) =>
|
|
|
24
24
|
width: '100%',
|
|
25
25
|
height: '100%',
|
|
26
26
|
justifyContent: 'center',
|
|
27
|
-
alignItems: 'center',
|
|
27
|
+
// alignItems: 'center',
|
|
28
28
|
zIndex: 1,
|
|
29
29
|
},
|
|
30
30
|
iconContainer: {
|
|
31
31
|
width: '10%',
|
|
32
32
|
height: '100%',
|
|
33
|
-
right:
|
|
33
|
+
right: Scale.m,
|
|
34
34
|
justifyContent: 'center',
|
|
35
35
|
alignItems: 'center',
|
|
36
36
|
position: 'absolute',
|