@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
|
@@ -23,11 +23,11 @@ exports[`test split-container renders correctly when A COLORED ICON is provided
|
|
|
23
23
|
>
|
|
24
24
|
<RNSVGSvgView
|
|
25
25
|
align="xMidYMid"
|
|
26
|
-
bbHeight=
|
|
27
|
-
bbWidth=
|
|
26
|
+
bbHeight={24}
|
|
27
|
+
bbWidth={24}
|
|
28
28
|
fill="none"
|
|
29
29
|
focusable={false}
|
|
30
|
-
height=
|
|
30
|
+
height={24}
|
|
31
31
|
meetOrSlice={0}
|
|
32
32
|
minX={0}
|
|
33
33
|
minY={0}
|
|
@@ -39,14 +39,14 @@ exports[`test split-container renders correctly when A COLORED ICON is provided
|
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"flex": 0,
|
|
42
|
-
"height":
|
|
43
|
-
"width":
|
|
42
|
+
"height": 24,
|
|
43
|
+
"width": 24,
|
|
44
44
|
},
|
|
45
45
|
]
|
|
46
46
|
}
|
|
47
|
-
vbHeight={
|
|
48
|
-
vbWidth={
|
|
49
|
-
width=
|
|
47
|
+
vbHeight={21}
|
|
48
|
+
vbWidth={20}
|
|
49
|
+
width={24}
|
|
50
50
|
>
|
|
51
51
|
<RNSVGGroup
|
|
52
52
|
fill={null}
|
|
@@ -57,7 +57,7 @@ exports[`test split-container renders correctly when A COLORED ICON is provided
|
|
|
57
57
|
}
|
|
58
58
|
>
|
|
59
59
|
<RNSVGPath
|
|
60
|
-
d="
|
|
60
|
+
d="M11 1.5C11 0.947715 10.5523 0.5 9.99998 0.5C9.44769 0.5 8.99998 0.947715 8.99998 1.5H11ZM8.99998 2.625C8.99998 3.17728 9.44769 3.625 9.99998 3.625C10.5523 3.625 11 3.17728 11 2.625H8.99998ZM16.5 14C15.9477 14 15.5 14.4477 15.5 15C15.5 15.5523 15.9477 16 16.5 16V14ZM18.6666 16C19.2189 16 19.6666 15.5523 19.6666 15C19.6666 14.4477 19.2189 14 18.6666 14V16ZM9.99998 15V14C9.44769 14 8.99998 14.4477 8.99998 15H9.99998ZM12.1666 16C12.7189 16 13.1666 15.5523 13.1666 15C13.1666 14.4477 12.7189 14 12.1666 14V16ZM8.99998 19.5C8.99998 20.0523 9.44769 20.5 9.99998 20.5C10.5523 20.5 11 20.0523 11 19.5H8.99998ZM11 7.125C11 6.57272 10.5523 6.125 9.99998 6.125C9.44769 6.125 8.99998 6.57272 8.99998 7.125H11ZM9.99998 10.5H8.99998C8.99998 11.0523 9.44769 11.5 9.99998 11.5V10.5ZM14.3333 18.5C13.781 18.5 13.3333 18.9477 13.3333 19.5C13.3333 20.0523 13.781 20.5 14.3333 20.5V18.5ZM18.6666 20.5C19.2189 20.5 19.6666 20.0523 19.6666 19.5C19.6666 18.9477 19.2189 18.5 18.6666 18.5V20.5ZM1.33331 9.5C0.781028 9.5 0.333313 9.94771 0.333313 10.5C0.333313 11.0523 0.781028 11.5 1.33331 11.5V9.5ZM5.66665 11.5C6.21893 11.5 6.66665 11.0523 6.66665 10.5C6.66665 9.94771 6.21893 9.5 5.66665 9.5V11.5ZM10.0108 11.5C10.5631 11.5 11.0108 11.0523 11.0108 10.5C11.0108 9.94771 10.5631 9.5 10.0108 9.5V11.5ZM14.3441 11.5C14.8964 11.5 15.3441 11.0523 15.3441 10.5C15.3441 9.94771 14.8964 9.5 14.3441 9.5V11.5ZM18.6666 9.5C18.1144 9.5 17.6666 9.94771 17.6666 10.5C17.6666 11.0523 18.1144 11.5 18.6666 11.5V9.5ZM18.6775 11.5C19.2298 11.5 19.6775 11.0523 19.6775 10.5C19.6775 9.94771 19.2298 9.5 18.6775 9.5V11.5ZM2.41665 2.5H4.58331V0.5H2.41665V2.5ZM4.66665 2.625V4.875H6.66665V2.625H4.66665ZM4.58331 5H2.41665V7H4.58331V5ZM2.33331 4.875V2.625H0.333313V4.875H2.33331ZM2.41665 5C2.40602 5 2.39043 4.9971 2.37093 4.97685C2.3508 4.95595 2.33331 4.92194 2.33331 4.875H0.333313C0.333313 6.0127 1.23082 7 2.41665 7V5ZM4.66665 4.875C4.66665 4.92194 4.64916 4.95595 4.62902 4.97685C4.60953 4.9971 4.59394 5 4.58331 5V7C5.76914 7 6.66665 6.0127 6.66665 4.875H4.66665ZM4.58331 2.5C4.59394 2.5 4.60953 2.5029 4.62902 2.52315C4.64916 2.54405 4.66665 2.57806 4.66665 2.625H6.66665C6.66665 1.4873 5.76914 0.5 4.58331 0.5V2.5ZM2.41665 0.5C1.23082 0.5 0.333313 1.4873 0.333313 2.625H2.33331C2.33331 2.57806 2.3508 2.54405 2.37093 2.52315C2.39043 2.5029 2.40602 2.5 2.41665 2.5V0.5ZM15.4166 2.5H17.5833V0.5H15.4166V2.5ZM17.6666 2.625V4.875H19.6666V2.625H17.6666ZM17.5833 5H15.4166V7H17.5833V5ZM15.3333 4.875V2.625H13.3333V4.875H15.3333ZM15.4166 5C15.406 5 15.3904 4.9971 15.3709 4.97685C15.3508 4.95595 15.3333 4.92194 15.3333 4.875H13.3333C13.3333 6.0127 14.2308 7 15.4166 7V5ZM17.6666 4.875C17.6666 4.92194 17.6492 4.95595 17.629 4.97685C17.6095 4.9971 17.5939 5 17.5833 5V7C18.7691 7 19.6666 6.0127 19.6666 4.875H17.6666ZM17.5833 2.5C17.5939 2.5 17.6095 2.5029 17.629 2.52315C17.6492 2.54405 17.6666 2.57806 17.6666 2.625H19.6666C19.6666 1.4873 18.7691 0.5 17.5833 0.5V2.5ZM15.4166 0.5C14.2308 0.5 13.3333 1.4873 13.3333 2.625H15.3333C15.3333 2.57806 15.3508 2.54405 15.3709 2.52315C15.3904 2.5029 15.406 2.5 15.4166 2.5V0.5ZM2.41665 16H4.58331V14H2.41665V16ZM4.66665 16.125V18.375H6.66665V16.125H4.66665ZM4.58331 18.5H2.41665V20.5H4.58331V18.5ZM2.33331 18.375V16.125H0.333313V18.375H2.33331ZM2.41665 18.5C2.40602 18.5 2.39043 18.4971 2.37093 18.4769C2.3508 18.4559 2.33331 18.4219 2.33331 18.375H0.333313C0.333313 19.5127 1.23082 20.5 2.41665 20.5V18.5ZM4.66665 18.375C4.66665 18.4219 4.64916 18.4559 4.62902 18.4769C4.60953 18.4971 4.59394 18.5 4.58331 18.5V20.5C5.76914 20.5 6.66665 19.5127 6.66665 18.375H4.66665ZM4.58331 16C4.59394 16 4.60953 16.0029 4.62902 16.0231C4.64916 16.0441 4.66665 16.0781 4.66665 16.125H6.66665C6.66665 14.9873 5.76914 14 4.58331 14V16ZM2.41665 14C1.23082 14 0.333313 14.9873 0.333313 16.125H2.33331C2.33331 16.0781 2.3508 16.0441 2.37093 16.0231C2.39043 16.0029 2.40602 16 2.41665 16V14ZM8.99998 1.5V2.625H11V1.5H8.99998ZM16.5 16H18.6666V14H16.5V16ZM9.99998 16H12.1666V14H9.99998V16ZM8.99998 15V19.5H11V15H8.99998ZM8.99998 7.125V10.5H11V7.125H8.99998ZM14.3333 20.5H18.6666V18.5H14.3333V20.5ZM1.33331 11.5H5.66665V9.5H1.33331V11.5ZM9.99998 11.5H10.0108V9.5H9.99998V11.5ZM18.6666 11.5H18.6775V9.5H18.6666V11.5ZM9.99998 11.5H14.3441V9.5H9.99998V11.5Z"
|
|
61
61
|
fill={4283522924}
|
|
62
62
|
propList={
|
|
63
63
|
[
|
|
@@ -18,11 +18,11 @@ exports[`Blocked message visual test renders a cancel link with label "cancel" t
|
|
|
18
18
|
>
|
|
19
19
|
<RNSVGSvgView
|
|
20
20
|
align="xMidYMid"
|
|
21
|
-
bbHeight=
|
|
22
|
-
bbWidth=
|
|
21
|
+
bbHeight={26}
|
|
22
|
+
bbWidth={26}
|
|
23
23
|
fill="none"
|
|
24
24
|
focusable={false}
|
|
25
|
-
height=
|
|
25
|
+
height={26}
|
|
26
26
|
meetOrSlice={0}
|
|
27
27
|
minX={0}
|
|
28
28
|
minY={0}
|
|
@@ -34,14 +34,14 @@ exports[`Blocked message visual test renders a cancel link with label "cancel" t
|
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"flex": 0,
|
|
37
|
-
"height":
|
|
38
|
-
"width":
|
|
37
|
+
"height": 26,
|
|
38
|
+
"width": 26,
|
|
39
39
|
},
|
|
40
40
|
]
|
|
41
41
|
}
|
|
42
|
-
vbHeight={
|
|
43
|
-
vbWidth={
|
|
44
|
-
width=
|
|
42
|
+
vbHeight={23}
|
|
43
|
+
vbWidth={22}
|
|
44
|
+
width={26}
|
|
45
45
|
>
|
|
46
46
|
<RNSVGGroup
|
|
47
47
|
fill={null}
|
|
@@ -52,7 +52,7 @@ exports[`Blocked message visual test renders a cancel link with label "cancel" t
|
|
|
52
52
|
}
|
|
53
53
|
>
|
|
54
54
|
<RNSVGPath
|
|
55
|
-
d="
|
|
55
|
+
d="M11 7V11.5M11 16H11.0108M20.75 11.5C20.75 17.0919 16.3848 21.625 11 21.625C5.61522 21.625 1.25 17.0919 1.25 11.5C1.25 5.90812 5.61522 1.375 11 1.375C16.3848 1.375 20.75 5.90812 20.75 11.5Z"
|
|
56
56
|
propList={
|
|
57
57
|
[
|
|
58
58
|
"stroke",
|
|
@@ -17,7 +17,12 @@ export const BlockedMessage = ({message}: BlockedMessageProps) => {
|
|
|
17
17
|
|
|
18
18
|
return (
|
|
19
19
|
<View style={styles.container}>
|
|
20
|
-
<Icon
|
|
20
|
+
<Icon
|
|
21
|
+
style={'regular'}
|
|
22
|
+
name={'exclamation-circle'}
|
|
23
|
+
color={context.colors.ui.error.dark}
|
|
24
|
+
size={26}
|
|
25
|
+
/>
|
|
21
26
|
<Paragraph
|
|
22
27
|
textColor={context.colors.ui.error.dark}
|
|
23
28
|
textAlign={'center'}
|
|
@@ -108,14 +108,14 @@ exports[`test button component should render a button component that is disabled
|
|
|
108
108
|
]
|
|
109
109
|
}
|
|
110
110
|
>
|
|
111
|
-
Button
|
|
111
|
+
Button without icon
|
|
112
112
|
</Text>
|
|
113
113
|
</View>
|
|
114
114
|
</View>
|
|
115
115
|
</View>
|
|
116
116
|
`;
|
|
117
117
|
|
|
118
|
-
exports[`test button component should render a button component with
|
|
118
|
+
exports[`test button component should render a button component with a clock icon, since regular is the default the icon will be outlined 1`] = `
|
|
119
119
|
<View
|
|
120
120
|
accessible={true}
|
|
121
121
|
collapsable={false}
|
|
@@ -152,11 +152,11 @@ exports[`test button component should render a button component with an icon 1`]
|
|
|
152
152
|
>
|
|
153
153
|
<RNSVGSvgView
|
|
154
154
|
align="xMidYMid"
|
|
155
|
-
bbHeight=
|
|
156
|
-
bbWidth=
|
|
155
|
+
bbHeight={24}
|
|
156
|
+
bbWidth={24}
|
|
157
157
|
fill="none"
|
|
158
158
|
focusable={false}
|
|
159
|
-
height=
|
|
159
|
+
height={24}
|
|
160
160
|
meetOrSlice={0}
|
|
161
161
|
minX={0}
|
|
162
162
|
minY={0}
|
|
@@ -168,14 +168,14 @@ exports[`test button component should render a button component with an icon 1`]
|
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
"flex": 0,
|
|
171
|
-
"height":
|
|
172
|
-
"width":
|
|
171
|
+
"height": 24,
|
|
172
|
+
"width": 24,
|
|
173
173
|
},
|
|
174
174
|
]
|
|
175
175
|
}
|
|
176
|
-
vbHeight={
|
|
177
|
-
vbWidth={
|
|
178
|
-
width=
|
|
176
|
+
vbHeight={22}
|
|
177
|
+
vbWidth={23}
|
|
178
|
+
width={24}
|
|
179
179
|
>
|
|
180
180
|
<RNSVGGroup
|
|
181
181
|
fill={null}
|
|
@@ -186,7 +186,7 @@ exports[`test button component should render a button component with an icon 1`]
|
|
|
186
186
|
}
|
|
187
187
|
>
|
|
188
188
|
<RNSVGPath
|
|
189
|
-
d="
|
|
189
|
+
d="M11.5 6.66667V11L14.875 14.25M21.625 11C21.625 16.3848 17.0919 20.75 11.5 20.75C5.90812 20.75 1.375 16.3848 1.375 11C1.375 5.61522 5.90812 1.25 11.5 1.25C17.0919 1.25 21.625 5.61522 21.625 11Z"
|
|
190
190
|
propList={
|
|
191
191
|
[
|
|
192
192
|
"stroke",
|
|
@@ -195,7 +195,7 @@ exports[`test button component should render a button component with an icon 1`]
|
|
|
195
195
|
"strokeLinejoin",
|
|
196
196
|
]
|
|
197
197
|
}
|
|
198
|
-
stroke={
|
|
198
|
+
stroke={4292929785}
|
|
199
199
|
strokeLinecap={1}
|
|
200
200
|
strokeLinejoin={1}
|
|
201
201
|
strokeWidth="2"
|
|
@@ -230,7 +230,7 @@ exports[`test button component should render a button component with an icon 1`]
|
|
|
230
230
|
</View>
|
|
231
231
|
`;
|
|
232
232
|
|
|
233
|
-
exports[`test button component should render a button component with
|
|
233
|
+
exports[`test button component should render a button component with a solid icon named eye-off but is also disabled 1`] = `
|
|
234
234
|
<View
|
|
235
235
|
accessibilityState={
|
|
236
236
|
{
|
|
@@ -272,11 +272,11 @@ exports[`test button component should render a button component with an icon but
|
|
|
272
272
|
>
|
|
273
273
|
<RNSVGSvgView
|
|
274
274
|
align="xMidYMid"
|
|
275
|
-
bbHeight=
|
|
276
|
-
bbWidth=
|
|
275
|
+
bbHeight={24}
|
|
276
|
+
bbWidth={24}
|
|
277
277
|
fill="none"
|
|
278
278
|
focusable={false}
|
|
279
|
-
height=
|
|
279
|
+
height={24}
|
|
280
280
|
meetOrSlice={0}
|
|
281
281
|
minX={0}
|
|
282
282
|
minY={0}
|
|
@@ -288,14 +288,14 @@ exports[`test button component should render a button component with an icon but
|
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
290
|
"flex": 0,
|
|
291
|
-
"height":
|
|
292
|
-
"width":
|
|
291
|
+
"height": 24,
|
|
292
|
+
"width": 24,
|
|
293
293
|
},
|
|
294
294
|
]
|
|
295
295
|
}
|
|
296
|
-
vbHeight={
|
|
297
|
-
vbWidth={
|
|
298
|
-
width=
|
|
296
|
+
vbHeight={18}
|
|
297
|
+
vbWidth={22}
|
|
298
|
+
width={24}
|
|
299
299
|
>
|
|
300
300
|
<RNSVGGroup
|
|
301
301
|
fill={null}
|
|
@@ -306,19 +306,25 @@ exports[`test button component should render a button component with an icon but
|
|
|
306
306
|
}
|
|
307
307
|
>
|
|
308
308
|
<RNSVGPath
|
|
309
|
-
|
|
309
|
+
clipRule={0}
|
|
310
|
+
d="M4.07779 0.522134C3.64822 0.092557 2.95174 0.092557 2.52216 0.522134C2.09258 0.95171 2.09258 1.64819 2.52216 2.07777L17.9222 17.4778C18.3517 17.9073 19.0482 17.9073 19.4778 17.4778C19.9074 17.0482 19.9074 16.3517 19.4778 15.9221L17.8573 14.3016C19.5486 12.9516 20.8329 11.1132 21.4966 8.99991C20.0949 4.53712 15.9256 1.29995 11.0002 1.29995C9.21429 1.29995 7.52776 1.72556 6.03654 2.48088L4.07779 0.522134ZM8.76492 5.20926L10.4302 6.87453C10.612 6.82588 10.8031 6.79995 11.0003 6.79995C12.2153 6.79995 13.2003 7.78492 13.2003 8.99995C13.2003 9.19711 13.1743 9.3882 13.1257 9.57002L14.791 11.2353C15.1781 10.5802 15.4003 9.81601 15.4003 8.99995C15.4003 6.5699 13.4303 4.59995 11.0003 4.59995C10.1842 4.59995 9.42002 4.82211 8.76492 5.20926Z"
|
|
311
|
+
fill={4283522924}
|
|
312
|
+
fillRule={0}
|
|
310
313
|
propList={
|
|
311
314
|
[
|
|
312
|
-
"
|
|
313
|
-
"
|
|
314
|
-
|
|
315
|
-
|
|
315
|
+
"fill",
|
|
316
|
+
"fillRule",
|
|
317
|
+
]
|
|
318
|
+
}
|
|
319
|
+
/>
|
|
320
|
+
<RNSVGPath
|
|
321
|
+
d="M13.6995 16.3663L10.7246 13.3915C8.51412 13.2548 6.74539 11.4861 6.60875 9.27561L2.56839 5.23525C1.65067 6.3294 0.941981 7.60481 0.503784 8.99999C1.90549 13.4628 6.0748 16.6999 11.0002 16.6999C11.9315 16.6999 12.8358 16.5842 13.6995 16.3663Z"
|
|
322
|
+
fill={4283522924}
|
|
323
|
+
propList={
|
|
324
|
+
[
|
|
325
|
+
"fill",
|
|
316
326
|
]
|
|
317
327
|
}
|
|
318
|
-
stroke={4279837036}
|
|
319
|
-
strokeLinecap={1}
|
|
320
|
-
strokeLinejoin={1}
|
|
321
|
-
strokeWidth="2"
|
|
322
328
|
/>
|
|
323
329
|
</RNSVGGroup>
|
|
324
330
|
</RNSVGSvgView>
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { IconNameType, IconStyleType } from '../../../types/icontype.type';
|
|
2
2
|
declare type ButtonProps = {
|
|
3
3
|
label: string;
|
|
4
|
-
icon?:
|
|
4
|
+
icon?: boolean;
|
|
5
|
+
iconStyle?: IconStyleType;
|
|
6
|
+
iconName?: IconNameType;
|
|
7
|
+
iconSize?: number;
|
|
5
8
|
disabled?: boolean;
|
|
6
9
|
onPress?: () => void;
|
|
7
10
|
};
|
|
8
|
-
declare const Button: ({ label, icon, disabled, onPress }: ButtonProps) => JSX.Element;
|
|
11
|
+
declare const Button: ({ label, icon, iconStyle, iconName, iconSize, disabled, onPress, }: ButtonProps) => JSX.Element;
|
|
9
12
|
export { Button as Button };
|
|
@@ -5,22 +5,46 @@ import {Pressable, View} from 'react-native';
|
|
|
5
5
|
import {ThemeCtx} from '../../../context/theme.context';
|
|
6
6
|
import {Stylesheet} from './button.styles';
|
|
7
7
|
import {Heading4} from '../../atoms/heading-components';
|
|
8
|
+
import {IconNameType, IconStyleType} from '../../../types/icontype.type';
|
|
9
|
+
import {Icon} from '../../../icons/index';
|
|
8
10
|
|
|
9
11
|
type ButtonProps = {
|
|
10
12
|
label: string;
|
|
11
|
-
icon?:
|
|
13
|
+
icon?: boolean;
|
|
14
|
+
iconStyle?: IconStyleType;
|
|
15
|
+
iconName?: IconNameType;
|
|
16
|
+
iconSize?: number;
|
|
12
17
|
disabled?: boolean;
|
|
13
18
|
onPress?: () => void;
|
|
14
19
|
};
|
|
15
20
|
|
|
16
|
-
const Button = ({
|
|
21
|
+
const Button = ({
|
|
22
|
+
label,
|
|
23
|
+
icon = false,
|
|
24
|
+
iconStyle = 'regular',
|
|
25
|
+
iconName = 'calendar',
|
|
26
|
+
iconSize,
|
|
27
|
+
disabled,
|
|
28
|
+
onPress,
|
|
29
|
+
}: ButtonProps) => {
|
|
17
30
|
const context = useContext(ThemeCtx);
|
|
18
31
|
const styles = Stylesheet(context, disabled);
|
|
19
32
|
|
|
20
33
|
return (
|
|
21
34
|
<Pressable disabled={disabled} onPress={onPress}>
|
|
22
35
|
<View style={styles.container}>
|
|
23
|
-
{icon ?
|
|
36
|
+
{icon ? (
|
|
37
|
+
<View style={styles.iconGap}>
|
|
38
|
+
<Icon
|
|
39
|
+
style={iconStyle}
|
|
40
|
+
name={iconName}
|
|
41
|
+
color={
|
|
42
|
+
disabled ? context.colors.ui.darkgrey : context.colors.main['9']
|
|
43
|
+
}
|
|
44
|
+
size={iconSize}
|
|
45
|
+
/>
|
|
46
|
+
</View>
|
|
47
|
+
) : null}
|
|
24
48
|
<View>
|
|
25
49
|
<Heading4
|
|
26
50
|
textAlign={'center'}
|
|
@@ -15,7 +15,8 @@ export const ButtonPreview = ({}: {}) => {
|
|
|
15
15
|
<Button label="Default button" onPress={() => console.log('clicked')} />
|
|
16
16
|
<Button
|
|
17
17
|
label="Icon button"
|
|
18
|
-
icon={
|
|
18
|
+
icon={true}
|
|
19
|
+
iconName={'eye'}
|
|
19
20
|
onPress={() => console.log('clicked')}
|
|
20
21
|
/>
|
|
21
22
|
<Button
|
|
@@ -25,9 +26,11 @@ export const ButtonPreview = ({}: {}) => {
|
|
|
25
26
|
/>
|
|
26
27
|
<Button
|
|
27
28
|
label="Disabled Icon button"
|
|
28
|
-
icon={<Icon.Solid.DocumentText color="#FF0000" />}
|
|
29
29
|
disabled={true}
|
|
30
|
-
|
|
30
|
+
icon={true}
|
|
31
|
+
iconStyle={'solid'}
|
|
32
|
+
iconName={'document-text'}
|
|
33
|
+
onPress={() => console.log('clicked disabled')}
|
|
31
34
|
/>
|
|
32
35
|
</View>
|
|
33
36
|
);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import render from 'react-test-renderer';
|
|
3
3
|
import {Button} from './button.component';
|
|
4
|
-
import {Icon} from '../../../icons';
|
|
5
4
|
|
|
6
5
|
describe('test button component', () => {
|
|
7
6
|
it('should render a button component', function () {
|
|
@@ -10,22 +9,26 @@ describe('test button component', () => {
|
|
|
10
9
|
});
|
|
11
10
|
it('should render a button component that is disabled', () => {
|
|
12
11
|
const tree = render
|
|
13
|
-
.create(<Button label="Button
|
|
12
|
+
.create(<Button label="Button without icon" disabled={true} />)
|
|
14
13
|
.toJSON();
|
|
15
14
|
expect(tree).toMatchSnapshot();
|
|
16
15
|
});
|
|
17
|
-
it('should render a button component with
|
|
16
|
+
it('should render a button component with a clock icon, since regular is the default the icon will be outlined', () => {
|
|
18
17
|
const tree = render
|
|
19
|
-
.create(
|
|
18
|
+
.create(
|
|
19
|
+
<Button label="Button with icon" icon={true} iconName={'clock'} />
|
|
20
|
+
)
|
|
20
21
|
.toJSON();
|
|
21
22
|
expect(tree).toMatchSnapshot();
|
|
22
23
|
});
|
|
23
|
-
it('should render a button component with
|
|
24
|
+
it('should render a button component with a solid icon named eye-off but is also disabled', () => {
|
|
24
25
|
const tree = render
|
|
25
26
|
.create(
|
|
26
27
|
<Button
|
|
27
28
|
label="Button with icon"
|
|
28
|
-
icon={
|
|
29
|
+
icon={true}
|
|
30
|
+
iconStyle={'solid'}
|
|
31
|
+
iconName={'eye-off'}
|
|
29
32
|
disabled={true}
|
|
30
33
|
/>
|
|
31
34
|
)
|
|
@@ -27,11 +27,11 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
|
|
|
27
27
|
>
|
|
28
28
|
<RNSVGSvgView
|
|
29
29
|
align="xMidYMid"
|
|
30
|
-
bbHeight=
|
|
31
|
-
bbWidth=
|
|
30
|
+
bbHeight={24}
|
|
31
|
+
bbWidth={24}
|
|
32
32
|
fill="none"
|
|
33
33
|
focusable={false}
|
|
34
|
-
height=
|
|
34
|
+
height={24}
|
|
35
35
|
meetOrSlice={0}
|
|
36
36
|
minX={0}
|
|
37
37
|
minY={0}
|
|
@@ -43,14 +43,14 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
|
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"flex": 0,
|
|
46
|
-
"height":
|
|
47
|
-
"width":
|
|
46
|
+
"height": 24,
|
|
47
|
+
"width": 24,
|
|
48
48
|
},
|
|
49
49
|
]
|
|
50
50
|
}
|
|
51
|
-
vbHeight={
|
|
52
|
-
vbWidth={
|
|
53
|
-
width=
|
|
51
|
+
vbHeight={19}
|
|
52
|
+
vbWidth={10}
|
|
53
|
+
width={24}
|
|
54
54
|
>
|
|
55
55
|
<RNSVGGroup
|
|
56
56
|
fill={null}
|
|
@@ -61,7 +61,7 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
|
|
|
61
61
|
}
|
|
62
62
|
>
|
|
63
63
|
<RNSVGPath
|
|
64
|
-
d="
|
|
64
|
+
d="M8.875 17.375L1 9.5L8.875 1.625"
|
|
65
65
|
propList={
|
|
66
66
|
[
|
|
67
67
|
"stroke",
|
|
@@ -97,10 +97,10 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
|
|
|
97
97
|
"backgroundColor": "#19216C",
|
|
98
98
|
"borderRadius": 32,
|
|
99
99
|
"flexDirection": "row",
|
|
100
|
-
"paddingBottom":
|
|
100
|
+
"paddingBottom": 12,
|
|
101
101
|
"paddingLeft": 24,
|
|
102
102
|
"paddingRight": 24,
|
|
103
|
-
"paddingTop":
|
|
103
|
+
"paddingTop": 12,
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
>
|
|
@@ -113,11 +113,11 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
|
|
|
113
113
|
>
|
|
114
114
|
<RNSVGSvgView
|
|
115
115
|
align="xMidYMid"
|
|
116
|
-
bbHeight=
|
|
117
|
-
bbWidth=
|
|
116
|
+
bbHeight={24}
|
|
117
|
+
bbWidth={24}
|
|
118
118
|
fill="none"
|
|
119
119
|
focusable={false}
|
|
120
|
-
height=
|
|
120
|
+
height={24}
|
|
121
121
|
meetOrSlice={0}
|
|
122
122
|
minX={0}
|
|
123
123
|
minY={0}
|
|
@@ -129,14 +129,14 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
|
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
"flex": 0,
|
|
132
|
-
"height":
|
|
133
|
-
"width":
|
|
132
|
+
"height": 24,
|
|
133
|
+
"width": 24,
|
|
134
134
|
},
|
|
135
135
|
]
|
|
136
136
|
}
|
|
137
|
-
vbHeight={
|
|
138
|
-
vbWidth={
|
|
139
|
-
width=
|
|
137
|
+
vbHeight={24}
|
|
138
|
+
vbWidth={24}
|
|
139
|
+
width={24}
|
|
140
140
|
>
|
|
141
141
|
<RNSVGGroup
|
|
142
142
|
fill={null}
|
|
@@ -147,7 +147,7 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
|
|
|
147
147
|
}
|
|
148
148
|
>
|
|
149
149
|
<RNSVGPath
|
|
150
|
-
d="
|
|
150
|
+
d="M7.33333 6.16667V1.5M16.6667 6.16667V1.5M6.16667 10.8333H17.8333M3.83333 22.5H20.1667C21.4553 22.5 22.5 21.4553 22.5 20.1667V6.16667C22.5 4.878 21.4553 3.83333 20.1667 3.83333H3.83333C2.54467 3.83333 1.5 4.878 1.5 6.16667V20.1667C1.5 21.4553 2.54467 22.5 3.83333 22.5Z"
|
|
151
151
|
propList={
|
|
152
152
|
[
|
|
153
153
|
"stroke",
|
|
@@ -204,11 +204,11 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
|
|
|
204
204
|
>
|
|
205
205
|
<RNSVGSvgView
|
|
206
206
|
align="xMidYMid"
|
|
207
|
-
bbHeight=
|
|
208
|
-
bbWidth=
|
|
207
|
+
bbHeight={24}
|
|
208
|
+
bbWidth={24}
|
|
209
209
|
fill="none"
|
|
210
210
|
focusable={false}
|
|
211
|
-
height=
|
|
211
|
+
height={24}
|
|
212
212
|
meetOrSlice={0}
|
|
213
213
|
minX={0}
|
|
214
214
|
minY={0}
|
|
@@ -220,14 +220,14 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
|
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
"flex": 0,
|
|
223
|
-
"height":
|
|
224
|
-
"width":
|
|
223
|
+
"height": 24,
|
|
224
|
+
"width": 24,
|
|
225
225
|
},
|
|
226
226
|
]
|
|
227
227
|
}
|
|
228
|
-
vbHeight={
|
|
229
|
-
vbWidth={
|
|
230
|
-
width=
|
|
228
|
+
vbHeight={19}
|
|
229
|
+
vbWidth={11}
|
|
230
|
+
width={24}
|
|
231
231
|
>
|
|
232
232
|
<RNSVGGroup
|
|
233
233
|
fill={null}
|
|
@@ -238,7 +238,7 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
|
|
|
238
238
|
}
|
|
239
239
|
>
|
|
240
240
|
<RNSVGPath
|
|
241
|
-
d="
|
|
241
|
+
d="M1.75 1.625L9.33333 9.5L1.75 17.375"
|
|
242
242
|
propList={
|
|
243
243
|
[
|
|
244
244
|
"stroke",
|
|
@@ -4,7 +4,6 @@ import {ToddleDateTime} from '../../../utilities/toddle-datetime/toddle-datetime
|
|
|
4
4
|
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
5
|
import {Stylesheet} from './calendar-select.styles';
|
|
6
6
|
import {Pressable, View} from 'react-native';
|
|
7
|
-
import {CalendarIcon} from '../../../icons/outline/calendar/calendar.icon';
|
|
8
7
|
import {Paragraph} from '../../atoms/paragraph-components';
|
|
9
8
|
import {Icon} from '../../../icons/index';
|
|
10
9
|
|
|
@@ -42,7 +41,7 @@ const CalendarSelect = ({
|
|
|
42
41
|
if (pressChevronLeft) pressChevronLeft(visibleDate.minus({days: 1}));
|
|
43
42
|
}}
|
|
44
43
|
>
|
|
45
|
-
<Icon
|
|
44
|
+
<Icon style={'regular'} name={'chevron-left'} />
|
|
46
45
|
</Pressable>
|
|
47
46
|
|
|
48
47
|
<Pressable
|
|
@@ -50,7 +49,11 @@ const CalendarSelect = ({
|
|
|
50
49
|
style={styles.dateContainer}
|
|
51
50
|
>
|
|
52
51
|
<View style={styles.icon}>
|
|
53
|
-
<
|
|
52
|
+
<Icon
|
|
53
|
+
style={'regular'}
|
|
54
|
+
name={'calendar'}
|
|
55
|
+
color={context.colors.main['9']}
|
|
56
|
+
/>
|
|
54
57
|
</View>
|
|
55
58
|
<View>
|
|
56
59
|
<Paragraph textColor={context.colors.main['9']}>
|
|
@@ -65,7 +68,7 @@ const CalendarSelect = ({
|
|
|
65
68
|
if (pressChevronRight) pressChevronRight(visibleDate.plus({days: 1}));
|
|
66
69
|
}}
|
|
67
70
|
>
|
|
68
|
-
<Icon
|
|
71
|
+
<Icon style={'regular'} name={'chevron-right'} />
|
|
69
72
|
</Pressable>
|
|
70
73
|
</View>
|
|
71
74
|
);
|
|
@@ -13,8 +13,8 @@ export const Stylesheet = (context) =>
|
|
|
13
13
|
flexDirection: 'row',
|
|
14
14
|
backgroundColor: context.colors.main[0],
|
|
15
15
|
borderRadius: Scale.xl,
|
|
16
|
-
paddingTop: Scale.
|
|
17
|
-
paddingBottom: Scale.
|
|
16
|
+
paddingTop: Scale.s,
|
|
17
|
+
paddingBottom: Scale.s,
|
|
18
18
|
paddingLeft: Scale.l,
|
|
19
19
|
paddingRight: Scale.l,
|
|
20
20
|
alignItems: 'center',
|