@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
|
@@ -41,11 +41,11 @@ exports[`test snackbar given the visual state is DEFAULT return a light blue ba
|
|
|
41
41
|
>
|
|
42
42
|
<RNSVGSvgView
|
|
43
43
|
align="xMidYMid"
|
|
44
|
-
bbHeight=
|
|
45
|
-
bbWidth=
|
|
44
|
+
bbHeight={24}
|
|
45
|
+
bbWidth={24}
|
|
46
46
|
fill="none"
|
|
47
47
|
focusable={false}
|
|
48
|
-
height=
|
|
48
|
+
height={24}
|
|
49
49
|
meetOrSlice={0}
|
|
50
50
|
minX={0}
|
|
51
51
|
minY={0}
|
|
@@ -57,14 +57,14 @@ exports[`test snackbar given the visual state is DEFAULT return a light blue ba
|
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"flex": 0,
|
|
60
|
-
"height":
|
|
61
|
-
"width":
|
|
60
|
+
"height": 24,
|
|
61
|
+
"width": 24,
|
|
62
62
|
},
|
|
63
63
|
]
|
|
64
64
|
}
|
|
65
|
-
vbHeight={
|
|
66
|
-
vbWidth={
|
|
67
|
-
width=
|
|
65
|
+
vbHeight={21}
|
|
66
|
+
vbWidth={23}
|
|
67
|
+
width={24}
|
|
68
68
|
>
|
|
69
69
|
<RNSVGGroup
|
|
70
70
|
fill={null}
|
|
@@ -75,7 +75,7 @@ exports[`test snackbar given the visual state is DEFAULT return a light blue ba
|
|
|
75
75
|
}
|
|
76
76
|
>
|
|
77
77
|
<RNSVGPath
|
|
78
|
-
d="
|
|
78
|
+
d="M11.5 8.125V10.375M11.5 14.875H11.5113M3.70581 19.375H19.2943C21.0263 19.375 22.1088 17.5 21.2428 16L13.4486 2.5C12.5826 1 10.4175 1 9.55148 2.5L1.75725 16C0.891228 17.5 1.97376 19.375 3.70581 19.375Z"
|
|
79
79
|
propList={
|
|
80
80
|
[
|
|
81
81
|
"stroke",
|
|
@@ -169,11 +169,11 @@ exports[`test snackbar given the visual state is ERROR return a red background
|
|
|
169
169
|
>
|
|
170
170
|
<RNSVGSvgView
|
|
171
171
|
align="xMidYMid"
|
|
172
|
-
bbHeight=
|
|
173
|
-
bbWidth=
|
|
172
|
+
bbHeight={24}
|
|
173
|
+
bbWidth={24}
|
|
174
174
|
fill="none"
|
|
175
175
|
focusable={false}
|
|
176
|
-
height=
|
|
176
|
+
height={24}
|
|
177
177
|
meetOrSlice={0}
|
|
178
178
|
minX={0}
|
|
179
179
|
minY={0}
|
|
@@ -185,14 +185,14 @@ exports[`test snackbar given the visual state is ERROR return a red background
|
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
187
|
"flex": 0,
|
|
188
|
-
"height":
|
|
189
|
-
"width":
|
|
188
|
+
"height": 24,
|
|
189
|
+
"width": 24,
|
|
190
190
|
},
|
|
191
191
|
]
|
|
192
192
|
}
|
|
193
|
-
vbHeight={
|
|
194
|
-
vbWidth={
|
|
195
|
-
width=
|
|
193
|
+
vbHeight={21}
|
|
194
|
+
vbWidth={23}
|
|
195
|
+
width={24}
|
|
196
196
|
>
|
|
197
197
|
<RNSVGGroup
|
|
198
198
|
fill={null}
|
|
@@ -203,7 +203,7 @@ exports[`test snackbar given the visual state is ERROR return a red background
|
|
|
203
203
|
}
|
|
204
204
|
>
|
|
205
205
|
<RNSVGPath
|
|
206
|
-
d="
|
|
206
|
+
d="M11.5 8.125V10.375M11.5 14.875H11.5113M3.70581 19.375H19.2943C21.0263 19.375 22.1088 17.5 21.2428 16L13.4486 2.5C12.5826 1 10.4175 1 9.55148 2.5L1.75725 16C0.891228 17.5 1.97376 19.375 3.70581 19.375Z"
|
|
207
207
|
propList={
|
|
208
208
|
[
|
|
209
209
|
"stroke",
|
|
@@ -297,11 +297,11 @@ exports[`test snackbar given the visual state is SUCCESS return a light green b
|
|
|
297
297
|
>
|
|
298
298
|
<RNSVGSvgView
|
|
299
299
|
align="xMidYMid"
|
|
300
|
-
bbHeight=
|
|
301
|
-
bbWidth=
|
|
300
|
+
bbHeight={24}
|
|
301
|
+
bbWidth={24}
|
|
302
302
|
fill="none"
|
|
303
303
|
focusable={false}
|
|
304
|
-
height=
|
|
304
|
+
height={24}
|
|
305
305
|
meetOrSlice={0}
|
|
306
306
|
minX={0}
|
|
307
307
|
minY={0}
|
|
@@ -313,14 +313,14 @@ exports[`test snackbar given the visual state is SUCCESS return a light green b
|
|
|
313
313
|
},
|
|
314
314
|
{
|
|
315
315
|
"flex": 0,
|
|
316
|
-
"height":
|
|
317
|
-
"width":
|
|
316
|
+
"height": 24,
|
|
317
|
+
"width": 24,
|
|
318
318
|
},
|
|
319
319
|
]
|
|
320
320
|
}
|
|
321
|
-
vbHeight={
|
|
322
|
-
vbWidth={
|
|
323
|
-
width=
|
|
321
|
+
vbHeight={21}
|
|
322
|
+
vbWidth={23}
|
|
323
|
+
width={24}
|
|
324
324
|
>
|
|
325
325
|
<RNSVGGroup
|
|
326
326
|
fill={null}
|
|
@@ -331,7 +331,7 @@ exports[`test snackbar given the visual state is SUCCESS return a light green b
|
|
|
331
331
|
}
|
|
332
332
|
>
|
|
333
333
|
<RNSVGPath
|
|
334
|
-
d="
|
|
334
|
+
d="M11.5 8.125V10.375M11.5 14.875H11.5113M3.70581 19.375H19.2943C21.0263 19.375 22.1088 17.5 21.2428 16L13.4486 2.5C12.5826 1 10.4175 1 9.55148 2.5L1.75725 16C0.891228 17.5 1.97376 19.375 3.70581 19.375Z"
|
|
335
335
|
propList={
|
|
336
336
|
[
|
|
337
337
|
"stroke",
|
|
@@ -425,11 +425,11 @@ exports[`test snackbar given the visual state is WARNING return a light orange
|
|
|
425
425
|
>
|
|
426
426
|
<RNSVGSvgView
|
|
427
427
|
align="xMidYMid"
|
|
428
|
-
bbHeight=
|
|
429
|
-
bbWidth=
|
|
428
|
+
bbHeight={24}
|
|
429
|
+
bbWidth={24}
|
|
430
430
|
fill="none"
|
|
431
431
|
focusable={false}
|
|
432
|
-
height=
|
|
432
|
+
height={24}
|
|
433
433
|
meetOrSlice={0}
|
|
434
434
|
minX={0}
|
|
435
435
|
minY={0}
|
|
@@ -441,14 +441,14 @@ exports[`test snackbar given the visual state is WARNING return a light orange
|
|
|
441
441
|
},
|
|
442
442
|
{
|
|
443
443
|
"flex": 0,
|
|
444
|
-
"height":
|
|
445
|
-
"width":
|
|
444
|
+
"height": 24,
|
|
445
|
+
"width": 24,
|
|
446
446
|
},
|
|
447
447
|
]
|
|
448
448
|
}
|
|
449
|
-
vbHeight={
|
|
450
|
-
vbWidth={
|
|
451
|
-
width=
|
|
449
|
+
vbHeight={21}
|
|
450
|
+
vbWidth={23}
|
|
451
|
+
width={24}
|
|
452
452
|
>
|
|
453
453
|
<RNSVGGroup
|
|
454
454
|
fill={null}
|
|
@@ -459,7 +459,7 @@ exports[`test snackbar given the visual state is WARNING return a light orange
|
|
|
459
459
|
}
|
|
460
460
|
>
|
|
461
461
|
<RNSVGPath
|
|
462
|
-
d="
|
|
462
|
+
d="M11.5 8.125V10.375M11.5 14.875H11.5113M3.70581 19.375H19.2943C21.0263 19.375 22.1088 17.5 21.2428 16L13.4486 2.5C12.5826 1 10.4175 1 9.55148 2.5L1.75725 16C0.891228 17.5 1.97376 19.375 3.70581 19.375Z"
|
|
463
463
|
propList={
|
|
464
464
|
[
|
|
465
465
|
"stroke",
|
|
@@ -5,8 +5,8 @@ import {ThemeCtx} from '../../../context/theme.context';
|
|
|
5
5
|
import {View} from 'react-native';
|
|
6
6
|
import {Stylesheet} from './snackbar.styles';
|
|
7
7
|
import {VisualState} from '../../../types/visual-state.enum';
|
|
8
|
-
import {FilterIcon} from '../../../icons/outline/filter/filter.icon';
|
|
9
8
|
import {Paragraph} from '../../atoms/paragraph-components';
|
|
9
|
+
import {Icon} from '../../../icons/index';
|
|
10
10
|
|
|
11
11
|
type SnackbarProps = {
|
|
12
12
|
text: string;
|
|
@@ -17,6 +17,21 @@ const Snackbar = ({text, visualState}: SnackbarProps) => {
|
|
|
17
17
|
const context = useContext(ThemeCtx);
|
|
18
18
|
const styles = Stylesheet(context, visualState);
|
|
19
19
|
|
|
20
|
+
const snackbarIconNameHandler = (visualState: VisualState) => {
|
|
21
|
+
const defaultIcon = 'exclamation-circle';
|
|
22
|
+
const errorWarningIcon = 'exclamation';
|
|
23
|
+
const successIcon = 'thumb-up';
|
|
24
|
+
if (visualState === VisualState.DEFAULT) {
|
|
25
|
+
return defaultIcon;
|
|
26
|
+
} else if (visualState === VisualState.SUCCESS) {
|
|
27
|
+
return successIcon;
|
|
28
|
+
} else if (visualState === VisualState.WARNING || VisualState.ERROR) {
|
|
29
|
+
return errorWarningIcon;
|
|
30
|
+
} else {
|
|
31
|
+
return defaultIcon;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
20
35
|
const snackbarIconTextColorHandler = (visualState: VisualState) => {
|
|
21
36
|
const defaultColor = context.colors.main['0'];
|
|
22
37
|
const errorColor = context.colors.ui.white;
|
|
@@ -33,7 +48,11 @@ const Snackbar = ({text, visualState}: SnackbarProps) => {
|
|
|
33
48
|
return (
|
|
34
49
|
<View style={styles.container}>
|
|
35
50
|
<View style={styles.iconContainer}>
|
|
36
|
-
<
|
|
51
|
+
<Icon
|
|
52
|
+
style={'regular'}
|
|
53
|
+
name={snackbarIconNameHandler(visualState)}
|
|
54
|
+
color={snackbarIconTextColorHandler(visualState)}
|
|
55
|
+
/>
|
|
37
56
|
</View>
|
|
38
57
|
<View style={styles.textContainer}>
|
|
39
58
|
<Paragraph textColor={snackbarIconTextColorHandler(visualState)}>
|
|
@@ -52,8 +52,10 @@ exports[`Test Swipe component should render an swipe component with dots and nav
|
|
|
52
52
|
loadMinimalSize={1}
|
|
53
53
|
loop={false}
|
|
54
54
|
nextButton={
|
|
55
|
-
<
|
|
55
|
+
<Icon
|
|
56
56
|
color="#19216C"
|
|
57
|
+
name="chevron-right"
|
|
58
|
+
style="regular"
|
|
57
59
|
/>
|
|
58
60
|
}
|
|
59
61
|
onIndexChanged={[Function]}
|
|
@@ -67,8 +69,10 @@ exports[`Test Swipe component should render an swipe component with dots and nav
|
|
|
67
69
|
}
|
|
68
70
|
pagingEnabled={true}
|
|
69
71
|
prevButton={
|
|
70
|
-
<
|
|
72
|
+
<Icon
|
|
71
73
|
color="#19216C"
|
|
74
|
+
name="chevron-left"
|
|
75
|
+
style="regular"
|
|
72
76
|
/>
|
|
73
77
|
}
|
|
74
78
|
removeClippedSubviews={true}
|
|
@@ -366,11 +370,11 @@ exports[`Test Swipe component should render an swipe component with dots and nav
|
|
|
366
370
|
<View>
|
|
367
371
|
<RNSVGSvgView
|
|
368
372
|
align="xMidYMid"
|
|
369
|
-
bbHeight=
|
|
370
|
-
bbWidth=
|
|
373
|
+
bbHeight={24}
|
|
374
|
+
bbWidth={24}
|
|
371
375
|
fill="none"
|
|
372
376
|
focusable={false}
|
|
373
|
-
height=
|
|
377
|
+
height={24}
|
|
374
378
|
meetOrSlice={0}
|
|
375
379
|
minX={0}
|
|
376
380
|
minY={0}
|
|
@@ -382,14 +386,14 @@ exports[`Test Swipe component should render an swipe component with dots and nav
|
|
|
382
386
|
},
|
|
383
387
|
{
|
|
384
388
|
"flex": 0,
|
|
385
|
-
"height":
|
|
386
|
-
"width":
|
|
389
|
+
"height": 24,
|
|
390
|
+
"width": 24,
|
|
387
391
|
},
|
|
388
392
|
]
|
|
389
393
|
}
|
|
390
|
-
vbHeight={
|
|
391
|
-
vbWidth={
|
|
392
|
-
width=
|
|
394
|
+
vbHeight={19}
|
|
395
|
+
vbWidth={11}
|
|
396
|
+
width={24}
|
|
393
397
|
>
|
|
394
398
|
<RNSVGGroup
|
|
395
399
|
fill={null}
|
|
@@ -400,7 +404,7 @@ exports[`Test Swipe component should render an swipe component with dots and nav
|
|
|
400
404
|
}
|
|
401
405
|
>
|
|
402
406
|
<RNSVGPath
|
|
403
|
-
d="
|
|
407
|
+
d="M1.75 1.625L9.33333 9.5L1.75 17.375"
|
|
404
408
|
propList={
|
|
405
409
|
[
|
|
406
410
|
"stroke",
|
|
@@ -29,10 +29,18 @@ const Swipe = ({children, onIndexChanged}: SwipeProps) => {
|
|
|
29
29
|
dotColor={context.colors.ui.lightgrey}
|
|
30
30
|
activeDotColor={context.colors.main['7']}
|
|
31
31
|
prevButton={
|
|
32
|
-
<Icon
|
|
32
|
+
<Icon
|
|
33
|
+
style={'regular'}
|
|
34
|
+
name={'chevron-left'}
|
|
35
|
+
color={context.colors.main['0']}
|
|
36
|
+
/>
|
|
33
37
|
}
|
|
34
38
|
nextButton={
|
|
35
|
-
<Icon
|
|
39
|
+
<Icon
|
|
40
|
+
style={'regular'}
|
|
41
|
+
name={'chevron-right'}
|
|
42
|
+
color={context.colors.main['0']}
|
|
43
|
+
/>
|
|
36
44
|
}
|
|
37
45
|
>
|
|
38
46
|
{children}
|
|
@@ -248,11 +248,11 @@ exports[`test child list item component arrow appears when selectable is false 1
|
|
|
248
248
|
>
|
|
249
249
|
<RNSVGSvgView
|
|
250
250
|
align="xMidYMid"
|
|
251
|
-
bbHeight=
|
|
252
|
-
bbWidth=
|
|
251
|
+
bbHeight={20}
|
|
252
|
+
bbWidth={20}
|
|
253
253
|
fill="none"
|
|
254
254
|
focusable={false}
|
|
255
|
-
height=
|
|
255
|
+
height={20}
|
|
256
256
|
meetOrSlice={0}
|
|
257
257
|
minX={0}
|
|
258
258
|
minY={0}
|
|
@@ -264,14 +264,14 @@ exports[`test child list item component arrow appears when selectable is false 1
|
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
266
|
"flex": 0,
|
|
267
|
-
"height":
|
|
268
|
-
"width":
|
|
267
|
+
"height": 20,
|
|
268
|
+
"width": 20,
|
|
269
269
|
},
|
|
270
270
|
]
|
|
271
271
|
}
|
|
272
|
-
vbHeight={
|
|
273
|
-
vbWidth={
|
|
274
|
-
width=
|
|
272
|
+
vbHeight={19}
|
|
273
|
+
vbWidth={11}
|
|
274
|
+
width={20}
|
|
275
275
|
>
|
|
276
276
|
<RNSVGGroup
|
|
277
277
|
fill={null}
|
|
@@ -282,7 +282,7 @@ exports[`test child list item component arrow appears when selectable is false 1
|
|
|
282
282
|
}
|
|
283
283
|
>
|
|
284
284
|
<RNSVGPath
|
|
285
|
-
d="
|
|
285
|
+
d="M1.75 1.625L9.33333 9.5L1.75 17.375"
|
|
286
286
|
propList={
|
|
287
287
|
[
|
|
288
288
|
"stroke",
|
|
@@ -291,7 +291,7 @@ exports[`test child list item component arrow appears when selectable is false 1
|
|
|
291
291
|
"strokeLinejoin",
|
|
292
292
|
]
|
|
293
293
|
}
|
|
294
|
-
stroke={
|
|
294
|
+
stroke={4280232243}
|
|
295
295
|
strokeLinecap={1}
|
|
296
296
|
strokeLinejoin={1}
|
|
297
297
|
strokeWidth="2"
|
|
@@ -7,11 +7,11 @@ import {Initials} from '../../../models/initials.model';
|
|
|
7
7
|
import {Size} from '../../../types/size.enum';
|
|
8
8
|
import {VisualState} from '../../../types/visual-state.enum';
|
|
9
9
|
import {Avatar} from '../../molecules/avatar/avatar.component';
|
|
10
|
-
import {ChevronRightIcon} from '../../../icons/outline/chevron-right/chevron-right.icon';
|
|
11
10
|
import {Stylesheet} from './child-list-item.styles';
|
|
12
11
|
import {SmallText} from '../../atoms/paragraph-components';
|
|
13
12
|
import {Heading2} from '../../atoms/heading-components';
|
|
14
13
|
import {TimeTracker} from '../../molecules/time-tracker/time-tracker.component';
|
|
14
|
+
import {Icon} from '../../../icons/index';
|
|
15
15
|
|
|
16
16
|
type ChildListItemProps = {
|
|
17
17
|
id: string;
|
|
@@ -88,7 +88,12 @@ const ChildListItem = ({
|
|
|
88
88
|
onPress={() => onPressArrow(id)}
|
|
89
89
|
style={styles.iconContainer}
|
|
90
90
|
>
|
|
91
|
-
<
|
|
91
|
+
<Icon
|
|
92
|
+
style={'regular'}
|
|
93
|
+
name={'chevron-right'}
|
|
94
|
+
size={20}
|
|
95
|
+
color={context.colors.ui.black}
|
|
96
|
+
/>
|
|
92
97
|
</Pressable>
|
|
93
98
|
) : null}
|
|
94
99
|
</>
|
|
@@ -72,7 +72,13 @@ export const ChildListItemPreview = ({}: {}) => {
|
|
|
72
72
|
>
|
|
73
73
|
<View style={{alignItems: 'center', marginBottom: 28}}>
|
|
74
74
|
<PressableIcon
|
|
75
|
-
icon={
|
|
75
|
+
icon={
|
|
76
|
+
<Icon
|
|
77
|
+
style={'regular'}
|
|
78
|
+
name={'sm-view-grid-add'}
|
|
79
|
+
key={'unique key'}
|
|
80
|
+
/>
|
|
81
|
+
}
|
|
76
82
|
onPress={selectChildren}
|
|
77
83
|
/>
|
|
78
84
|
</View>
|
|
@@ -127,11 +127,11 @@ exports[`test contact-item renders a contact-item with a red avatar and an extra
|
|
|
127
127
|
>
|
|
128
128
|
<RNSVGSvgView
|
|
129
129
|
align="xMidYMid"
|
|
130
|
-
bbHeight=
|
|
131
|
-
bbWidth=
|
|
130
|
+
bbHeight={20}
|
|
131
|
+
bbWidth={20}
|
|
132
132
|
fill="none"
|
|
133
133
|
focusable={false}
|
|
134
|
-
height=
|
|
134
|
+
height={20}
|
|
135
135
|
meetOrSlice={0}
|
|
136
136
|
minX={0}
|
|
137
137
|
minY={0}
|
|
@@ -143,14 +143,14 @@ exports[`test contact-item renders a contact-item with a red avatar and an extra
|
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
"flex": 0,
|
|
146
|
-
"height":
|
|
147
|
-
"width":
|
|
146
|
+
"height": 20,
|
|
147
|
+
"width": 20,
|
|
148
148
|
},
|
|
149
149
|
]
|
|
150
150
|
}
|
|
151
|
-
vbHeight={
|
|
152
|
-
vbWidth={
|
|
153
|
-
width=
|
|
151
|
+
vbHeight={19}
|
|
152
|
+
vbWidth={11}
|
|
153
|
+
width={20}
|
|
154
154
|
>
|
|
155
155
|
<RNSVGGroup
|
|
156
156
|
fill={null}
|
|
@@ -161,7 +161,7 @@ exports[`test contact-item renders a contact-item with a red avatar and an extra
|
|
|
161
161
|
}
|
|
162
162
|
>
|
|
163
163
|
<RNSVGPath
|
|
164
|
-
d="
|
|
164
|
+
d="M1.75 1.625L9.33333 9.5L1.75 17.375"
|
|
165
165
|
propList={
|
|
166
166
|
[
|
|
167
167
|
"stroke",
|
|
@@ -309,11 +309,11 @@ exports[`test contact-item renders a contact-item, with an avatar 1`] = `
|
|
|
309
309
|
>
|
|
310
310
|
<RNSVGSvgView
|
|
311
311
|
align="xMidYMid"
|
|
312
|
-
bbHeight=
|
|
313
|
-
bbWidth=
|
|
312
|
+
bbHeight={20}
|
|
313
|
+
bbWidth={20}
|
|
314
314
|
fill="none"
|
|
315
315
|
focusable={false}
|
|
316
|
-
height=
|
|
316
|
+
height={20}
|
|
317
317
|
meetOrSlice={0}
|
|
318
318
|
minX={0}
|
|
319
319
|
minY={0}
|
|
@@ -325,14 +325,14 @@ exports[`test contact-item renders a contact-item, with an avatar 1`] = `
|
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
327
|
"flex": 0,
|
|
328
|
-
"height":
|
|
329
|
-
"width":
|
|
328
|
+
"height": 20,
|
|
329
|
+
"width": 20,
|
|
330
330
|
},
|
|
331
331
|
]
|
|
332
332
|
}
|
|
333
|
-
vbHeight={
|
|
334
|
-
vbWidth={
|
|
335
|
-
width=
|
|
333
|
+
vbHeight={19}
|
|
334
|
+
vbWidth={11}
|
|
335
|
+
width={20}
|
|
336
336
|
>
|
|
337
337
|
<RNSVGGroup
|
|
338
338
|
fill={null}
|
|
@@ -343,7 +343,7 @@ exports[`test contact-item renders a contact-item, with an avatar 1`] = `
|
|
|
343
343
|
}
|
|
344
344
|
>
|
|
345
345
|
<RNSVGPath
|
|
346
|
-
d="
|
|
346
|
+
d="M1.75 1.625L9.33333 9.5L1.75 17.375"
|
|
347
347
|
propList={
|
|
348
348
|
[
|
|
349
349
|
"stroke",
|
|
@@ -52,7 +52,12 @@ const ContactItem = ({
|
|
|
52
52
|
<Pill label={'Geblokkeerd'} visualState={VisualState.ERROR} />
|
|
53
53
|
) : null}
|
|
54
54
|
<View style={styles.iconSquare}>
|
|
55
|
-
<Icon
|
|
55
|
+
<Icon
|
|
56
|
+
style={'regular'}
|
|
57
|
+
name={'chevron-right'}
|
|
58
|
+
size={20}
|
|
59
|
+
color={context.colors.main['0']}
|
|
60
|
+
/>
|
|
56
61
|
</View>
|
|
57
62
|
</View>
|
|
58
63
|
</Pressable>
|