@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
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import render from 'react-test-renderer';
|
|
3
|
+
import {MoreInfoButton} from './more-info-button.component';
|
|
4
|
+
|
|
5
|
+
describe('more info button', () => {
|
|
6
|
+
it('should render a more info button in a white text color, underlined', function () {
|
|
7
|
+
const tree = render
|
|
8
|
+
.create(
|
|
9
|
+
<MoreInfoButton
|
|
10
|
+
label="More info"
|
|
11
|
+
onPress={() => console.log('do something')}
|
|
12
|
+
/>
|
|
13
|
+
)
|
|
14
|
+
.toJSON();
|
|
15
|
+
expect(tree).toMatchSnapshot();
|
|
16
|
+
});
|
|
17
|
+
it('should render a more info button in a black text color, underlined', () => {
|
|
18
|
+
const tree = render
|
|
19
|
+
.create(
|
|
20
|
+
<MoreInfoButton
|
|
21
|
+
label="Meer info"
|
|
22
|
+
onPress={() => console.log('do something')}
|
|
23
|
+
textColor={'#000000'}
|
|
24
|
+
/>
|
|
25
|
+
)
|
|
26
|
+
.toJSON();
|
|
27
|
+
expect(tree).toMatchSnapshot();
|
|
28
|
+
});
|
|
29
|
+
});
|
|
@@ -64,11 +64,11 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
64
64
|
>
|
|
65
65
|
<RNSVGSvgView
|
|
66
66
|
align="xMidYMid"
|
|
67
|
-
bbHeight=
|
|
68
|
-
bbWidth=
|
|
67
|
+
bbHeight={24}
|
|
68
|
+
bbWidth={24}
|
|
69
69
|
fill="none"
|
|
70
70
|
focusable={false}
|
|
71
|
-
height=
|
|
71
|
+
height={24}
|
|
72
72
|
meetOrSlice={0}
|
|
73
73
|
minX={0}
|
|
74
74
|
minY={0}
|
|
@@ -80,14 +80,14 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
"flex": 0,
|
|
83
|
-
"height":
|
|
84
|
-
"width":
|
|
83
|
+
"height": 24,
|
|
84
|
+
"width": 24,
|
|
85
85
|
},
|
|
86
86
|
]
|
|
87
87
|
}
|
|
88
|
-
vbHeight={
|
|
89
|
-
vbWidth={
|
|
90
|
-
width=
|
|
88
|
+
vbHeight={19}
|
|
89
|
+
vbWidth={25}
|
|
90
|
+
width={24}
|
|
91
91
|
>
|
|
92
92
|
<RNSVGGroup
|
|
93
93
|
fill={null}
|
|
@@ -98,7 +98,7 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
98
98
|
}
|
|
99
99
|
>
|
|
100
100
|
<RNSVGPath
|
|
101
|
-
d="
|
|
101
|
+
d="M15.875 9.5C15.875 11.364 14.3639 12.875 12.5 12.875C10.636 12.875 9.12497 11.364 9.12497 9.5C9.12497 7.63604 10.636 6.125 12.5 6.125C14.3639 6.125 15.875 7.63604 15.875 9.5Z"
|
|
102
102
|
propList={
|
|
103
103
|
[
|
|
104
104
|
"stroke",
|
|
@@ -113,7 +113,7 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
113
113
|
strokeWidth="2"
|
|
114
114
|
/>
|
|
115
115
|
<RNSVGPath
|
|
116
|
-
d="
|
|
116
|
+
d="M1.7655 9.49996C3.19906 4.93574 7.46313 1.625 12.5005 1.625C17.5378 1.625 21.8019 4.93578 23.2354 9.50004C21.8019 14.0643 17.5378 17.375 12.5005 17.375C7.46313 17.375 3.19904 14.0642 1.7655 9.49996Z"
|
|
117
117
|
propList={
|
|
118
118
|
[
|
|
119
119
|
"stroke",
|
|
@@ -198,11 +198,11 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
198
198
|
>
|
|
199
199
|
<RNSVGSvgView
|
|
200
200
|
align="xMidYMid"
|
|
201
|
-
bbHeight=
|
|
202
|
-
bbWidth=
|
|
201
|
+
bbHeight={24}
|
|
202
|
+
bbWidth={24}
|
|
203
203
|
fill="none"
|
|
204
204
|
focusable={false}
|
|
205
|
-
height=
|
|
205
|
+
height={24}
|
|
206
206
|
meetOrSlice={0}
|
|
207
207
|
minX={0}
|
|
208
208
|
minY={0}
|
|
@@ -214,14 +214,14 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
"flex": 0,
|
|
217
|
-
"height":
|
|
218
|
-
"width":
|
|
217
|
+
"height": 24,
|
|
218
|
+
"width": 24,
|
|
219
219
|
},
|
|
220
220
|
]
|
|
221
221
|
}
|
|
222
|
-
vbHeight={
|
|
223
|
-
vbWidth={
|
|
224
|
-
width=
|
|
222
|
+
vbHeight={19}
|
|
223
|
+
vbWidth={25}
|
|
224
|
+
width={24}
|
|
225
225
|
>
|
|
226
226
|
<RNSVGGroup
|
|
227
227
|
fill={null}
|
|
@@ -232,7 +232,7 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
232
232
|
}
|
|
233
233
|
>
|
|
234
234
|
<RNSVGPath
|
|
235
|
-
d="
|
|
235
|
+
d="M15.875 9.5C15.875 11.364 14.3639 12.875 12.5 12.875C10.636 12.875 9.12497 11.364 9.12497 9.5C9.12497 7.63604 10.636 6.125 12.5 6.125C14.3639 6.125 15.875 7.63604 15.875 9.5Z"
|
|
236
236
|
propList={
|
|
237
237
|
[
|
|
238
238
|
"stroke",
|
|
@@ -247,7 +247,7 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
247
247
|
strokeWidth="2"
|
|
248
248
|
/>
|
|
249
249
|
<RNSVGPath
|
|
250
|
-
d="
|
|
250
|
+
d="M1.7655 9.49996C3.19906 4.93574 7.46313 1.625 12.5005 1.625C17.5378 1.625 21.8019 4.93578 23.2354 9.50004C21.8019 14.0643 17.5378 17.375 12.5005 17.375C7.46313 17.375 3.19904 14.0642 1.7655 9.49996Z"
|
|
251
251
|
propList={
|
|
252
252
|
[
|
|
253
253
|
"stroke",
|
|
@@ -332,11 +332,11 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
332
332
|
>
|
|
333
333
|
<RNSVGSvgView
|
|
334
334
|
align="xMidYMid"
|
|
335
|
-
bbHeight=
|
|
336
|
-
bbWidth=
|
|
335
|
+
bbHeight={24}
|
|
336
|
+
bbWidth={24}
|
|
337
337
|
fill="none"
|
|
338
338
|
focusable={false}
|
|
339
|
-
height=
|
|
339
|
+
height={24}
|
|
340
340
|
meetOrSlice={0}
|
|
341
341
|
minX={0}
|
|
342
342
|
minY={0}
|
|
@@ -348,14 +348,14 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
350
|
"flex": 0,
|
|
351
|
-
"height":
|
|
352
|
-
"width":
|
|
351
|
+
"height": 24,
|
|
352
|
+
"width": 24,
|
|
353
353
|
},
|
|
354
354
|
]
|
|
355
355
|
}
|
|
356
|
-
vbHeight={
|
|
357
|
-
vbWidth={
|
|
358
|
-
width=
|
|
356
|
+
vbHeight={19}
|
|
357
|
+
vbWidth={25}
|
|
358
|
+
width={24}
|
|
359
359
|
>
|
|
360
360
|
<RNSVGGroup
|
|
361
361
|
fill={null}
|
|
@@ -366,7 +366,7 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
366
366
|
}
|
|
367
367
|
>
|
|
368
368
|
<RNSVGPath
|
|
369
|
-
d="
|
|
369
|
+
d="M15.875 9.5C15.875 11.364 14.3639 12.875 12.5 12.875C10.636 12.875 9.12497 11.364 9.12497 9.5C9.12497 7.63604 10.636 6.125 12.5 6.125C14.3639 6.125 15.875 7.63604 15.875 9.5Z"
|
|
370
370
|
propList={
|
|
371
371
|
[
|
|
372
372
|
"stroke",
|
|
@@ -381,7 +381,7 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
381
381
|
strokeWidth="2"
|
|
382
382
|
/>
|
|
383
383
|
<RNSVGPath
|
|
384
|
-
d="
|
|
384
|
+
d="M1.7655 9.49996C3.19906 4.93574 7.46313 1.625 12.5005 1.625C17.5378 1.625 21.8019 4.93578 23.2354 9.50004C21.8019 14.0643 17.5378 17.375 12.5005 17.375C7.46313 17.375 3.19904 14.0642 1.7655 9.49996Z"
|
|
385
385
|
propList={
|
|
386
386
|
[
|
|
387
387
|
"stroke",
|
|
@@ -42,9 +42,17 @@ export const PasswordInput = ({
|
|
|
42
42
|
onPress={() => setSecure(!secure)}
|
|
43
43
|
>
|
|
44
44
|
{secure ? (
|
|
45
|
-
<Icon
|
|
45
|
+
<Icon
|
|
46
|
+
style={'regular'}
|
|
47
|
+
name={'eye'}
|
|
48
|
+
color={Context.colors.main['3']}
|
|
49
|
+
/>
|
|
46
50
|
) : (
|
|
47
|
-
<Icon
|
|
51
|
+
<Icon
|
|
52
|
+
style={'regular'}
|
|
53
|
+
name={'eye-off'}
|
|
54
|
+
color={Context.colors.main['3']}
|
|
55
|
+
/>
|
|
48
56
|
)}
|
|
49
57
|
</Pressable>
|
|
50
58
|
</View>
|
|
@@ -40,11 +40,11 @@ exports[`pressable-icon test render a default disabled pressable icon 1`] = `
|
|
|
40
40
|
>
|
|
41
41
|
<RNSVGSvgView
|
|
42
42
|
align="xMidYMid"
|
|
43
|
-
bbHeight=
|
|
44
|
-
bbWidth=
|
|
43
|
+
bbHeight={24}
|
|
44
|
+
bbWidth={24}
|
|
45
45
|
fill="none"
|
|
46
46
|
focusable={false}
|
|
47
|
-
height=
|
|
47
|
+
height={24}
|
|
48
48
|
meetOrSlice={0}
|
|
49
49
|
minX={0}
|
|
50
50
|
minY={0}
|
|
@@ -56,14 +56,14 @@ exports[`pressable-icon test render a default disabled pressable icon 1`] = `
|
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
"flex": 0,
|
|
59
|
-
"height":
|
|
60
|
-
"width":
|
|
59
|
+
"height": 24,
|
|
60
|
+
"width": 24,
|
|
61
61
|
},
|
|
62
62
|
]
|
|
63
63
|
}
|
|
64
|
-
vbHeight={
|
|
65
|
-
vbWidth={
|
|
66
|
-
width=
|
|
64
|
+
vbHeight={19}
|
|
65
|
+
vbWidth={23}
|
|
66
|
+
width={24}
|
|
67
67
|
>
|
|
68
68
|
<RNSVGGroup
|
|
69
69
|
fill={null}
|
|
@@ -74,7 +74,7 @@ exports[`pressable-icon test render a default disabled pressable icon 1`] = `
|
|
|
74
74
|
}
|
|
75
75
|
>
|
|
76
76
|
<RNSVGPath
|
|
77
|
-
d="
|
|
77
|
+
d="M1.375 5L10.2519 10.9179C11.0077 11.4218 11.9923 11.4218 12.7481 10.9179L21.625 5M3.625 17.375H19.375C20.6176 17.375 21.625 16.3676 21.625 15.125V3.875C21.625 2.63236 20.6176 1.625 19.375 1.625H3.625C2.38236 1.625 1.375 2.63236 1.375 3.875V15.125C1.375 16.3676 2.38236 17.375 3.625 17.375Z"
|
|
78
78
|
propList={
|
|
79
79
|
[
|
|
80
80
|
"stroke",
|
|
@@ -129,11 +129,11 @@ exports[`pressable-icon test render a default pressable icon 1`] = `
|
|
|
129
129
|
>
|
|
130
130
|
<RNSVGSvgView
|
|
131
131
|
align="xMidYMid"
|
|
132
|
-
bbHeight=
|
|
133
|
-
bbWidth=
|
|
132
|
+
bbHeight={24}
|
|
133
|
+
bbWidth={24}
|
|
134
134
|
fill="none"
|
|
135
135
|
focusable={false}
|
|
136
|
-
height=
|
|
136
|
+
height={24}
|
|
137
137
|
meetOrSlice={0}
|
|
138
138
|
minX={0}
|
|
139
139
|
minY={0}
|
|
@@ -145,14 +145,14 @@ exports[`pressable-icon test render a default pressable icon 1`] = `
|
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
"flex": 0,
|
|
148
|
-
"height":
|
|
149
|
-
"width":
|
|
148
|
+
"height": 24,
|
|
149
|
+
"width": 24,
|
|
150
150
|
},
|
|
151
151
|
]
|
|
152
152
|
}
|
|
153
|
-
vbHeight={
|
|
154
|
-
vbWidth={
|
|
155
|
-
width=
|
|
153
|
+
vbHeight={23}
|
|
154
|
+
vbWidth={23}
|
|
155
|
+
width={24}
|
|
156
156
|
>
|
|
157
157
|
<RNSVGGroup
|
|
158
158
|
fill={null}
|
|
@@ -163,7 +163,7 @@ exports[`pressable-icon test render a default pressable icon 1`] = `
|
|
|
163
163
|
}
|
|
164
164
|
>
|
|
165
165
|
<RNSVGPath
|
|
166
|
-
d="
|
|
166
|
+
d="M13.75 9.25H19.1094C20.782 9.25 21.8699 11.0102 21.1219 12.5062L17.1844 20.3812C16.8033 21.1435 16.0242 21.625 15.1719 21.625H10.652C10.468 21.625 10.2848 21.6024 10.1063 21.5578L5.875 20.5M13.75 9.25V3.625C13.75 2.38236 12.7426 1.375 11.5 1.375H11.3926C10.8306 1.375 10.375 1.83059 10.375 2.39259C10.375 3.19618 10.1371 3.9818 9.69138 4.65043L5.875 10.375V20.5M13.75 9.25H11.5M5.875 20.5H3.625C2.38236 20.5 1.375 19.4926 1.375 18.25V11.5C1.375 10.2574 2.38236 9.25 3.625 9.25H6.4375"
|
|
167
167
|
propList={
|
|
168
168
|
[
|
|
169
169
|
"stroke",
|
|
@@ -218,11 +218,11 @@ exports[`pressable-icon test render an inverted pressable icon 1`] = `
|
|
|
218
218
|
>
|
|
219
219
|
<RNSVGSvgView
|
|
220
220
|
align="xMidYMid"
|
|
221
|
-
bbHeight=
|
|
222
|
-
bbWidth=
|
|
221
|
+
bbHeight={24}
|
|
222
|
+
bbWidth={24}
|
|
223
223
|
fill="none"
|
|
224
224
|
focusable={false}
|
|
225
|
-
height=
|
|
225
|
+
height={24}
|
|
226
226
|
meetOrSlice={0}
|
|
227
227
|
minX={0}
|
|
228
228
|
minY={0}
|
|
@@ -234,14 +234,14 @@ exports[`pressable-icon test render an inverted pressable icon 1`] = `
|
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
236
|
"flex": 0,
|
|
237
|
-
"height":
|
|
238
|
-
"width":
|
|
237
|
+
"height": 24,
|
|
238
|
+
"width": 24,
|
|
239
239
|
},
|
|
240
240
|
]
|
|
241
241
|
}
|
|
242
|
-
vbHeight={
|
|
243
|
-
vbWidth={
|
|
244
|
-
width=
|
|
242
|
+
vbHeight={22}
|
|
243
|
+
vbWidth={22}
|
|
244
|
+
width={24}
|
|
245
245
|
>
|
|
246
246
|
<RNSVGGroup
|
|
247
247
|
fill={null}
|
|
@@ -252,7 +252,7 @@ exports[`pressable-icon test render an inverted pressable icon 1`] = `
|
|
|
252
252
|
}
|
|
253
253
|
>
|
|
254
254
|
<RNSVGPath
|
|
255
|
-
d="
|
|
255
|
+
d="M1.25 2.25C1.25 1.69772 1.69772 1.25 2.25 1.25H19.75C20.3023 1.25 20.75 1.69772 20.75 2.25V5.16912C20.75 5.43434 20.6446 5.68869 20.4571 5.87623L13.4596 12.8738C13.272 13.0613 13.1667 13.3157 13.1667 13.5809V16.4167L8.83333 20.75V13.5809C8.83333 13.3157 8.72798 13.0613 8.54044 12.8738L1.54289 5.87623C1.35536 5.68869 1.25 5.43434 1.25 5.16912V2.25Z"
|
|
256
256
|
propList={
|
|
257
257
|
[
|
|
258
258
|
"stroke",
|
|
@@ -312,11 +312,11 @@ exports[`pressable-icon test render an inverted pressable icon that is disabled
|
|
|
312
312
|
>
|
|
313
313
|
<RNSVGSvgView
|
|
314
314
|
align="xMidYMid"
|
|
315
|
-
bbHeight=
|
|
316
|
-
bbWidth=
|
|
315
|
+
bbHeight={24}
|
|
316
|
+
bbWidth={24}
|
|
317
317
|
fill="none"
|
|
318
318
|
focusable={false}
|
|
319
|
-
height=
|
|
319
|
+
height={24}
|
|
320
320
|
meetOrSlice={0}
|
|
321
321
|
minX={0}
|
|
322
322
|
minY={0}
|
|
@@ -328,14 +328,14 @@ exports[`pressable-icon test render an inverted pressable icon that is disabled
|
|
|
328
328
|
},
|
|
329
329
|
{
|
|
330
330
|
"flex": 0,
|
|
331
|
-
"height":
|
|
332
|
-
"width":
|
|
331
|
+
"height": 24,
|
|
332
|
+
"width": 24,
|
|
333
333
|
},
|
|
334
334
|
]
|
|
335
335
|
}
|
|
336
|
-
vbHeight={
|
|
337
|
-
vbWidth={
|
|
338
|
-
width=
|
|
336
|
+
vbHeight={18}
|
|
337
|
+
vbWidth={17}
|
|
338
|
+
width={24}
|
|
339
339
|
>
|
|
340
340
|
<RNSVGGroup
|
|
341
341
|
fill={null}
|
|
@@ -347,7 +347,7 @@ exports[`pressable-icon test render an inverted pressable icon that is disabled
|
|
|
347
347
|
>
|
|
348
348
|
<RNSVGPath
|
|
349
349
|
clipRule={0}
|
|
350
|
-
d="
|
|
350
|
+
d="M7.34995 0.200012C6.91436 0.200012 6.51616 0.435415 6.32136 0.808077L5.48921 2.40001H1.59995C0.964824 2.40001 0.449951 2.8925 0.449951 3.50001C0.449951 4.10753 0.964824 4.60001 1.59995 4.60001L1.59995 15.6C1.59995 16.815 2.6297 17.8 3.89995 17.8H13.1C14.3702 17.8 15.4 16.815 15.4 15.6V4.60001C16.0351 4.60001 16.55 4.10753 16.55 3.50001C16.55 2.8925 16.0351 2.40001 15.4 2.40001H11.5107L10.6785 0.808077C10.4837 0.435415 10.0855 0.200012 9.64995 0.200012H7.34995ZM5.04995 6.80001C5.04995 6.1925 5.56482 5.70001 6.19995 5.70001C6.83508 5.70001 7.34995 6.1925 7.34995 6.80001V13.4C7.34995 14.0075 6.83508 14.5 6.19995 14.5C5.56482 14.5 5.04995 14.0075 5.04995 13.4V6.80001ZM10.8 5.70001C10.1648 5.70001 9.64995 6.1925 9.64995 6.80001V13.4C9.64995 14.0075 10.1648 14.5 10.8 14.5C11.4351 14.5 11.95 14.0075 11.95 13.4V6.80001C11.95 6.1925 11.4351 5.70001 10.8 5.70001Z"
|
|
351
351
|
fill={4283522924}
|
|
352
352
|
fillRule={0}
|
|
353
353
|
propList={
|
|
@@ -13,22 +13,22 @@ export const PressableIconPreview = ({}: {}) => {
|
|
|
13
13
|
}}
|
|
14
14
|
>
|
|
15
15
|
<PressableIcon
|
|
16
|
-
icon={<Icon
|
|
16
|
+
icon={<Icon style={'regular'} name={'mail'} key={'random'} />}
|
|
17
17
|
onPress={() => console.log('Pressed')}
|
|
18
18
|
/>
|
|
19
19
|
<PressableIcon
|
|
20
|
-
icon={<Icon
|
|
20
|
+
icon={<Icon style={'regular'} name={'phone'} key={'test'} />}
|
|
21
21
|
inverted={true}
|
|
22
22
|
disabled={true}
|
|
23
23
|
onPress={() => console.log('Pressed')}
|
|
24
24
|
/>
|
|
25
25
|
<PressableIcon
|
|
26
|
-
icon={<Icon
|
|
26
|
+
icon={<Icon style={'solid'} name={'chat-alt'} key={'testen'} />}
|
|
27
27
|
inverted={true}
|
|
28
28
|
onPress={() => console.log('Pressed')}
|
|
29
29
|
/>
|
|
30
30
|
<PressableIcon
|
|
31
|
-
icon={<Icon
|
|
31
|
+
icon={<Icon style={'regular'} name={'plus'} key={'hello'} />}
|
|
32
32
|
disabled={true}
|
|
33
33
|
onPress={() => console.log('Pressed')}
|
|
34
34
|
/>
|
|
@@ -6,7 +6,11 @@ import {Icon} from '../../../icons';
|
|
|
6
6
|
describe('pressable-icon test', () => {
|
|
7
7
|
it('render a default pressable icon', function () {
|
|
8
8
|
const tree = render
|
|
9
|
-
.create(
|
|
9
|
+
.create(
|
|
10
|
+
<PressableIcon
|
|
11
|
+
icon={<Icon style={'regular'} name={'thumb-up'} key="default" />}
|
|
12
|
+
/>
|
|
13
|
+
)
|
|
10
14
|
.toJSON();
|
|
11
15
|
expect(tree).toMatchSnapshot();
|
|
12
16
|
});
|
|
@@ -14,7 +18,7 @@ describe('pressable-icon test', () => {
|
|
|
14
18
|
const tree = render
|
|
15
19
|
.create(
|
|
16
20
|
<PressableIcon
|
|
17
|
-
icon={<Icon
|
|
21
|
+
icon={<Icon style={'regular'} name={'mail'} key="disabled" />}
|
|
18
22
|
disabled={true}
|
|
19
23
|
/>
|
|
20
24
|
)
|
|
@@ -25,7 +29,7 @@ describe('pressable-icon test', () => {
|
|
|
25
29
|
const tree = render
|
|
26
30
|
.create(
|
|
27
31
|
<PressableIcon
|
|
28
|
-
icon={<Icon
|
|
32
|
+
icon={<Icon style={'regular'} name={'filter'} key="inverted" />}
|
|
29
33
|
inverted={true}
|
|
30
34
|
/>
|
|
31
35
|
)
|
|
@@ -36,7 +40,7 @@ describe('pressable-icon test', () => {
|
|
|
36
40
|
const tree = render
|
|
37
41
|
.create(
|
|
38
42
|
<PressableIcon
|
|
39
|
-
icon={<Icon
|
|
43
|
+
icon={<Icon style={'solid'} name={'trash'} key="disabled inverted" />}
|
|
40
44
|
inverted={true}
|
|
41
45
|
disabled={true}
|
|
42
46
|
/>
|
|
@@ -12,6 +12,10 @@ exports[`test search shows search field 1`] = `
|
|
|
12
12
|
"borderWidth": 1,
|
|
13
13
|
"flexDirection": "row",
|
|
14
14
|
"overflow": "hidden",
|
|
15
|
+
"paddingBottom": 8,
|
|
16
|
+
"paddingLeft": 16,
|
|
17
|
+
"paddingRight": 16,
|
|
18
|
+
"paddingTop": 8,
|
|
15
19
|
"width": "100%",
|
|
16
20
|
}
|
|
17
21
|
}
|
|
@@ -34,10 +38,6 @@ exports[`test search shows search field 1`] = `
|
|
|
34
38
|
"fontFamily": "SourceSansPro",
|
|
35
39
|
"fontSize": 16,
|
|
36
40
|
"lineHeight": 20,
|
|
37
|
-
"paddingBottom": 0,
|
|
38
|
-
"paddingLeft": 16,
|
|
39
|
-
"paddingRight": 16,
|
|
40
|
-
"paddingTop": 0,
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
/>
|
|
@@ -57,20 +57,17 @@ exports[`test search shows search field 1`] = `
|
|
|
57
57
|
onStartShouldSetResponder={[Function]}
|
|
58
58
|
style={
|
|
59
59
|
{
|
|
60
|
-
"
|
|
61
|
-
"paddingLeft": 16,
|
|
62
|
-
"paddingRight": 16,
|
|
63
|
-
"paddingTop": 7,
|
|
60
|
+
"marginLeft": 16,
|
|
64
61
|
}
|
|
65
62
|
}
|
|
66
63
|
>
|
|
67
64
|
<RNSVGSvgView
|
|
68
65
|
align="xMidYMid"
|
|
69
|
-
bbHeight=
|
|
70
|
-
bbWidth=
|
|
66
|
+
bbHeight={24}
|
|
67
|
+
bbWidth={24}
|
|
71
68
|
fill="none"
|
|
72
69
|
focusable={false}
|
|
73
|
-
height=
|
|
70
|
+
height={24}
|
|
74
71
|
meetOrSlice={0}
|
|
75
72
|
minX={0}
|
|
76
73
|
minY={0}
|
|
@@ -82,14 +79,14 @@ exports[`test search shows search field 1`] = `
|
|
|
82
79
|
},
|
|
83
80
|
{
|
|
84
81
|
"flex": 0,
|
|
85
|
-
"height":
|
|
86
|
-
"width":
|
|
82
|
+
"height": 24,
|
|
83
|
+
"width": 24,
|
|
87
84
|
},
|
|
88
85
|
]
|
|
89
86
|
}
|
|
90
|
-
vbHeight={
|
|
91
|
-
vbWidth={
|
|
92
|
-
width=
|
|
87
|
+
vbHeight={23}
|
|
88
|
+
vbWidth={23}
|
|
89
|
+
width={24}
|
|
93
90
|
>
|
|
94
91
|
<RNSVGGroup
|
|
95
92
|
fill={null}
|
|
@@ -100,7 +97,7 @@ exports[`test search shows search field 1`] = `
|
|
|
100
97
|
}
|
|
101
98
|
>
|
|
102
99
|
<RNSVGPath
|
|
103
|
-
d="
|
|
100
|
+
d="M21.625 21.625L14.875 14.875M17.125 9.25C17.125 13.5992 13.5992 17.125 9.25 17.125C4.90076 17.125 1.375 13.5992 1.375 9.25C1.375 4.90076 4.90076 1.375 9.25 1.375C13.5992 1.375 17.125 4.90076 17.125 9.25Z"
|
|
104
101
|
propList={
|
|
105
102
|
[
|
|
106
103
|
"stroke",
|
|
@@ -109,7 +106,7 @@ exports[`test search shows search field 1`] = `
|
|
|
109
106
|
"strokeLinejoin",
|
|
110
107
|
]
|
|
111
108
|
}
|
|
112
|
-
stroke={
|
|
109
|
+
stroke={4280232243}
|
|
113
110
|
strokeLinecap={1}
|
|
114
111
|
strokeLinejoin={1}
|
|
115
112
|
strokeWidth="2"
|
|
@@ -5,7 +5,7 @@ import {View, TextInput as NativeTextInput, Pressable} from 'react-native';
|
|
|
5
5
|
import {ThemeCtx} from '../../../context/theme.context';
|
|
6
6
|
import {Stylesheet} from './search.styles';
|
|
7
7
|
import {KeyBoardTypes} from '../../../types/keyboard-types.enum';
|
|
8
|
-
import {
|
|
8
|
+
import {Icon} from '../../../icons/index';
|
|
9
9
|
|
|
10
10
|
type SearchProps = {
|
|
11
11
|
placeholder?: string;
|
|
@@ -41,7 +41,11 @@ const Search = ({
|
|
|
41
41
|
onPress={() => onPressSearch(value)}
|
|
42
42
|
style={styles.iconContainer}
|
|
43
43
|
>
|
|
44
|
-
<
|
|
44
|
+
<Icon
|
|
45
|
+
style={'regular'}
|
|
46
|
+
name={'search'}
|
|
47
|
+
color={context.colors.ui.black}
|
|
48
|
+
/>
|
|
45
49
|
</Pressable>
|
|
46
50
|
</View>
|
|
47
51
|
);
|
|
@@ -16,23 +16,20 @@ export const Stylesheet = (context) =>
|
|
|
16
16
|
backgroundColor: context.colors.ui.white,
|
|
17
17
|
overflow: 'hidden',
|
|
18
18
|
alignItems: 'center',
|
|
19
|
+
paddingLeft: Scale.m,
|
|
20
|
+
paddingTop: Scale.xs,
|
|
21
|
+
paddingRight: Scale.m,
|
|
22
|
+
paddingBottom: Scale.xs,
|
|
19
23
|
},
|
|
20
24
|
textInputContainer: {
|
|
21
25
|
flex: 1,
|
|
22
26
|
},
|
|
23
27
|
input: {
|
|
24
|
-
paddingLeft: Scale.m,
|
|
25
|
-
paddingTop: 0,
|
|
26
|
-
paddingBottom: 0,
|
|
27
|
-
paddingRight: Scale.m,
|
|
28
28
|
...Font.medium,
|
|
29
29
|
lineHeight: 20,
|
|
30
30
|
color: context.colors.ui.black,
|
|
31
31
|
},
|
|
32
32
|
iconContainer: {
|
|
33
|
-
|
|
34
|
-
paddingTop: Scale.xs - 1,
|
|
35
|
-
paddingRight: Scale.m,
|
|
36
|
-
paddingBottom: Scale.xs - 1,
|
|
33
|
+
marginLeft: Scale.m,
|
|
37
34
|
},
|
|
38
35
|
});
|