@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
package/src/icons/icons.test.js
CHANGED
|
@@ -7,247 +7,322 @@ describe('test icons', () => {
|
|
|
7
7
|
const whiteColor = '#ffffff';
|
|
8
8
|
|
|
9
9
|
it('render an outlined calendar icon in the main color', function () {
|
|
10
|
-
const tree = render
|
|
10
|
+
const tree = render
|
|
11
|
+
.create(<Icon style={'regular'} name={'calendar'} />)
|
|
12
|
+
.toJSON();
|
|
11
13
|
expect(tree).toMatchSnapshot();
|
|
12
14
|
});
|
|
13
15
|
it('render an outlined chat icon in the main color', () => {
|
|
14
|
-
const tree = render
|
|
16
|
+
const tree = render
|
|
17
|
+
.create(<Icon style={'regular'} name={'chat'} />)
|
|
18
|
+
.toJSON();
|
|
15
19
|
expect(tree).toMatchSnapshot();
|
|
16
20
|
});
|
|
17
|
-
it('render an outlined chat-alt icon in a grey color', () => {
|
|
21
|
+
it('render an outlined chat-alt icon in a grey color and a size of 20px', () => {
|
|
18
22
|
const tree = render
|
|
19
|
-
.create(
|
|
23
|
+
.create(
|
|
24
|
+
<Icon style={'regular'} name={'chat-alt'} color={greyColor} size={20} />
|
|
25
|
+
)
|
|
20
26
|
.toJSON();
|
|
21
27
|
expect(tree).toMatchSnapshot();
|
|
22
28
|
});
|
|
23
29
|
it('render an outlined check-circle icon in a grey color', () => {
|
|
24
30
|
const tree = render
|
|
25
|
-
.create(
|
|
31
|
+
.create(
|
|
32
|
+
<Icon style={'regular'} name={'check-circle'} color={greyColor} />
|
|
33
|
+
)
|
|
26
34
|
.toJSON();
|
|
27
35
|
expect(tree).toMatchSnapshot();
|
|
28
36
|
});
|
|
29
37
|
it('render an outlined chevron-left icon in a white color', () => {
|
|
30
38
|
const tree = render
|
|
31
|
-
.create(
|
|
39
|
+
.create(
|
|
40
|
+
<Icon style={'regular'} name={'chevron-left'} color={whiteColor} />
|
|
41
|
+
)
|
|
32
42
|
.toJSON();
|
|
33
43
|
expect(tree).toMatchSnapshot();
|
|
34
44
|
});
|
|
35
45
|
it('render an outlined chevron-right icon in a white color', () => {
|
|
36
46
|
const tree = render
|
|
37
|
-
.create(
|
|
47
|
+
.create(
|
|
48
|
+
<Icon style={'regular'} name={'chevron-right'} color={whiteColor} />
|
|
49
|
+
)
|
|
38
50
|
.toJSON();
|
|
39
51
|
expect(tree).toMatchSnapshot();
|
|
40
52
|
});
|
|
41
53
|
it('render an outlined clock icon in the main color', () => {
|
|
42
|
-
const tree = render
|
|
54
|
+
const tree = render
|
|
55
|
+
.create(<Icon style={'regular'} name={'clock'} />)
|
|
56
|
+
.toJSON();
|
|
43
57
|
expect(tree).toMatchSnapshot();
|
|
44
58
|
});
|
|
45
|
-
it('render an outlined cloud-download icon in a grey color', () => {
|
|
59
|
+
it('render an outlined cloud-download icon in a grey color with a size of 16px', () => {
|
|
46
60
|
const tree = render
|
|
47
|
-
.create(
|
|
61
|
+
.create(
|
|
62
|
+
<Icon
|
|
63
|
+
style={'regular'}
|
|
64
|
+
name={'cloud-download'}
|
|
65
|
+
color={greyColor}
|
|
66
|
+
size={16}
|
|
67
|
+
/>
|
|
68
|
+
)
|
|
48
69
|
.toJSON();
|
|
49
70
|
expect(tree).toMatchSnapshot();
|
|
50
71
|
});
|
|
51
72
|
it('render an outlined currency-euro icon in a red color', () => {
|
|
52
73
|
const tree = render
|
|
53
|
-
.create(
|
|
74
|
+
.create(
|
|
75
|
+
<Icon style={'regular'} name={'currency-euro'} color={'#FF0000'} />
|
|
76
|
+
)
|
|
54
77
|
.toJSON();
|
|
55
78
|
expect(tree).toMatchSnapshot();
|
|
56
79
|
});
|
|
57
|
-
it('render
|
|
80
|
+
it('render a solid document-text icon in a white color', () => {
|
|
58
81
|
const tree = render
|
|
59
|
-
.create(
|
|
82
|
+
.create(
|
|
83
|
+
<Icon style={'solid'} name={'document-text'} color={whiteColor} />
|
|
84
|
+
)
|
|
60
85
|
.toJSON();
|
|
61
86
|
expect(tree).toMatchSnapshot();
|
|
62
87
|
});
|
|
63
88
|
it('render an outlined exclamation icon in a blue color', () => {
|
|
64
89
|
const tree = render
|
|
65
|
-
.create(<Icon
|
|
90
|
+
.create(<Icon style={'regular'} name={'exclamation'} color={'#0000FF'} />)
|
|
66
91
|
.toJSON();
|
|
67
92
|
expect(tree).toMatchSnapshot();
|
|
68
93
|
});
|
|
69
94
|
it('render an outlined exclamation-circle icon in a pink color', () => {
|
|
70
95
|
const tree = render
|
|
71
|
-
.create(
|
|
96
|
+
.create(
|
|
97
|
+
<Icon style={'regular'} name={'exclamation-circle'} color={'#FFC0CB'} />
|
|
98
|
+
)
|
|
72
99
|
.toJSON();
|
|
73
100
|
expect(tree).toMatchSnapshot();
|
|
74
101
|
});
|
|
75
102
|
it('render an outlined eye icon in a purple color', () => {
|
|
76
|
-
const tree = render
|
|
103
|
+
const tree = render
|
|
104
|
+
.create(<Icon style={'regular'} name={'eye'} color={'#A020F0'} />)
|
|
105
|
+
.toJSON();
|
|
77
106
|
expect(tree).toMatchSnapshot();
|
|
78
107
|
});
|
|
79
108
|
it('render an outlined filter icon in the main color', () => {
|
|
80
|
-
const tree = render
|
|
109
|
+
const tree = render
|
|
110
|
+
.create(<Icon style={'regular'} name={'filter'} />)
|
|
111
|
+
.toJSON();
|
|
81
112
|
expect(tree).toMatchSnapshot();
|
|
82
113
|
});
|
|
83
114
|
it('render an outlined information-circle icon in the main color', () => {
|
|
84
|
-
const tree = render
|
|
115
|
+
const tree = render
|
|
116
|
+
.create(<Icon style={'regular'} name={'information-circle'} />)
|
|
117
|
+
.toJSON();
|
|
85
118
|
expect(tree).toMatchSnapshot();
|
|
86
119
|
});
|
|
87
120
|
it('render an outlined logout icon in a red color', () => {
|
|
88
121
|
const tree = render
|
|
89
|
-
.create(<Icon
|
|
122
|
+
.create(<Icon style={'regular'} name={'logout'} color={'#FF0000'} />)
|
|
90
123
|
.toJSON();
|
|
91
124
|
expect(tree).toMatchSnapshot();
|
|
92
125
|
});
|
|
93
126
|
it('render an outlined mail icon in a brown color', () => {
|
|
94
127
|
const tree = render
|
|
95
|
-
.create(<Icon
|
|
128
|
+
.create(<Icon style={'regular'} name={'mail'} color={'#964B00'} />)
|
|
96
129
|
.toJSON();
|
|
97
130
|
expect(tree).toMatchSnapshot();
|
|
98
131
|
});
|
|
99
132
|
it('render an outlined mail-open icon in a grey color', () => {
|
|
100
133
|
const tree = render
|
|
101
|
-
.create(<Icon
|
|
134
|
+
.create(<Icon style={'regular'} name={'mail-open'} color={greyColor} />)
|
|
102
135
|
.toJSON();
|
|
103
136
|
expect(tree).toMatchSnapshot();
|
|
104
137
|
});
|
|
105
138
|
it('render an outlined menu icon in the main color', () => {
|
|
106
|
-
const tree = render
|
|
139
|
+
const tree = render
|
|
140
|
+
.create(<Icon style={'regular'} name={'menu'} />)
|
|
141
|
+
.toJSON();
|
|
107
142
|
expect(tree).toMatchSnapshot();
|
|
108
143
|
});
|
|
109
144
|
it('render an outlined minus-sm icon in the main color', () => {
|
|
110
|
-
const tree = render
|
|
145
|
+
const tree = render
|
|
146
|
+
.create(<Icon style={'regular'} name={'minus-sm'} />)
|
|
147
|
+
.toJSON();
|
|
111
148
|
expect(tree).toMatchSnapshot();
|
|
112
149
|
});
|
|
113
150
|
it('render an outlined office-building icon in a green color', () => {
|
|
114
151
|
const tree = render
|
|
115
|
-
.create(
|
|
152
|
+
.create(
|
|
153
|
+
<Icon style={'regular'} name={'office-building'} color={'#00FF00'} />
|
|
154
|
+
)
|
|
116
155
|
.toJSON();
|
|
117
156
|
expect(tree).toMatchSnapshot();
|
|
118
157
|
});
|
|
119
158
|
it('render an outlined paper-airplane icon in a white color', () => {
|
|
120
159
|
const tree = render
|
|
121
|
-
.create(
|
|
160
|
+
.create(
|
|
161
|
+
<Icon style={'regular'} name={'paper-airplane'} color={whiteColor} />
|
|
162
|
+
)
|
|
122
163
|
.toJSON();
|
|
123
164
|
expect(tree).toMatchSnapshot();
|
|
124
165
|
});
|
|
125
166
|
it('render an outlined paperclip icon in the main color', () => {
|
|
126
|
-
const tree = render
|
|
167
|
+
const tree = render
|
|
168
|
+
.create(<Icon style={'regular'} name={'paper-clip'} />)
|
|
169
|
+
.toJSON();
|
|
127
170
|
expect(tree).toMatchSnapshot();
|
|
128
171
|
});
|
|
129
172
|
it('render an outlined pencil icon in the main color', () => {
|
|
130
|
-
const tree = render
|
|
173
|
+
const tree = render
|
|
174
|
+
.create(<Icon style={'regular'} name={'pencil'} />)
|
|
175
|
+
.toJSON();
|
|
131
176
|
expect(tree).toMatchSnapshot();
|
|
132
177
|
});
|
|
133
178
|
it('render an outlined phone icon in the main color', () => {
|
|
134
|
-
const tree = render
|
|
179
|
+
const tree = render
|
|
180
|
+
.create(<Icon style={'regular'} name={'phone'} />)
|
|
181
|
+
.toJSON();
|
|
135
182
|
expect(tree).toMatchSnapshot();
|
|
136
183
|
});
|
|
137
184
|
it('render an outlined plus icon in a grey color', () => {
|
|
138
185
|
const tree = render
|
|
139
|
-
.create(<Icon
|
|
186
|
+
.create(<Icon style={'regular'} name={'plus'} color={greyColor} />)
|
|
140
187
|
.toJSON();
|
|
141
188
|
expect(tree).toMatchSnapshot();
|
|
142
189
|
});
|
|
143
190
|
it('render an outlined plus-sm icon in a red color', () => {
|
|
144
191
|
const tree = render
|
|
145
|
-
.create(<Icon
|
|
192
|
+
.create(<Icon style={'regular'} name={'plus-sm'} color={'#FF0000'} />)
|
|
146
193
|
.toJSON();
|
|
147
194
|
expect(tree).toMatchSnapshot();
|
|
148
195
|
});
|
|
149
196
|
it('render an outlined qrcode icon in a purple color', () => {
|
|
150
197
|
const tree = render
|
|
151
|
-
.create(<Icon
|
|
198
|
+
.create(<Icon style={'regular'} name={'qrcode'} color={'#A020F0'} />)
|
|
152
199
|
.toJSON();
|
|
153
200
|
expect(tree).toMatchSnapshot();
|
|
154
201
|
});
|
|
155
202
|
it('render an outlined refresh icon in a purple color', () => {
|
|
156
203
|
const tree = render
|
|
157
|
-
.create(<Icon
|
|
204
|
+
.create(<Icon style={'regular'} name={'refresh'} color={'#A020F0'} />)
|
|
158
205
|
.toJSON();
|
|
159
206
|
expect(tree).toMatchSnapshot();
|
|
160
207
|
});
|
|
161
208
|
it('render an outlined search icon in a white color', () => {
|
|
162
209
|
const tree = render
|
|
163
|
-
.create(<Icon
|
|
210
|
+
.create(<Icon style={'regular'} name={'search'} color={whiteColor} />)
|
|
164
211
|
.toJSON();
|
|
165
212
|
expect(tree).toMatchSnapshot();
|
|
166
213
|
});
|
|
167
214
|
it('render an outlined selector icon in the main color', () => {
|
|
168
|
-
const tree = render
|
|
215
|
+
const tree = render
|
|
216
|
+
.create(<Icon style={'regular'} name={'selector'} />)
|
|
217
|
+
.toJSON();
|
|
169
218
|
expect(tree).toMatchSnapshot();
|
|
170
219
|
});
|
|
171
220
|
it('render an outlined sm-view-grid-add icon in a yellow color', () => {
|
|
172
221
|
const tree = render
|
|
173
|
-
.create(
|
|
222
|
+
.create(
|
|
223
|
+
<Icon style={'regular'} name={'sm-view-grid-add'} color={'#FFFF00'} />
|
|
224
|
+
)
|
|
174
225
|
.toJSON();
|
|
175
226
|
expect(tree).toMatchSnapshot();
|
|
176
227
|
});
|
|
177
228
|
it('render an outlined status-online icon in an orange color', () => {
|
|
178
229
|
const tree = render
|
|
179
|
-
.create(
|
|
230
|
+
.create(
|
|
231
|
+
<Icon style={'regular'} name={'status-online'} color={'#FFA500'} />
|
|
232
|
+
)
|
|
180
233
|
.toJSON();
|
|
181
234
|
expect(tree).toMatchSnapshot();
|
|
182
235
|
});
|
|
183
236
|
it('render an outlined thumb-up icon in a blue color', () => {
|
|
184
237
|
const tree = render
|
|
185
|
-
.create(<Icon
|
|
238
|
+
.create(<Icon style={'regular'} name={'thumb-up'} color={'#0000FF'} />)
|
|
186
239
|
.toJSON();
|
|
187
240
|
expect(tree).toMatchSnapshot();
|
|
188
241
|
});
|
|
189
242
|
it('render an outlined trash icon in a red color', () => {
|
|
190
243
|
const tree = render
|
|
191
|
-
.create(<Icon
|
|
244
|
+
.create(<Icon style={'regular'} name={'trash'} color={'#FF0000'} />)
|
|
192
245
|
.toJSON();
|
|
193
246
|
expect(tree).toMatchSnapshot();
|
|
194
247
|
});
|
|
195
248
|
it('render an outlined user icon in the main color', () => {
|
|
196
|
-
const tree = render
|
|
249
|
+
const tree = render
|
|
250
|
+
.create(<Icon style={'regular'} name={'user'} />)
|
|
251
|
+
.toJSON();
|
|
197
252
|
expect(tree).toMatchSnapshot();
|
|
198
253
|
});
|
|
199
254
|
it('render an outlined user-group icon in a grey color', () => {
|
|
200
255
|
const tree = render
|
|
201
|
-
.create(<Icon
|
|
256
|
+
.create(<Icon style={'regular'} name={'user-group'} color={greyColor} />)
|
|
202
257
|
.toJSON();
|
|
203
258
|
expect(tree).toMatchSnapshot();
|
|
204
259
|
});
|
|
205
260
|
it('render an outlined users icon in a white color', () => {
|
|
206
261
|
const tree = render
|
|
207
|
-
.create(<Icon
|
|
262
|
+
.create(<Icon style={'regular'} name={'users'} color={whiteColor} />)
|
|
208
263
|
.toJSON();
|
|
209
264
|
expect(tree).toMatchSnapshot();
|
|
210
265
|
});
|
|
211
|
-
it('render an outlined
|
|
212
|
-
const tree = render
|
|
266
|
+
it('render an outlined xmark icon in the main color', () => {
|
|
267
|
+
const tree = render
|
|
268
|
+
.create(<Icon style={'regular'} name={'xmark'} />)
|
|
269
|
+
.toJSON();
|
|
213
270
|
expect(tree).toMatchSnapshot();
|
|
214
271
|
});
|
|
215
272
|
it('render a solid chat-alt icon in a coral color', () => {
|
|
216
273
|
const tree = render
|
|
217
|
-
.create(<Icon
|
|
274
|
+
.create(<Icon style={'solid'} name={'chat-alt'} color={'#FF7F50'} />)
|
|
218
275
|
.toJSON();
|
|
219
276
|
expect(tree).toMatchSnapshot();
|
|
220
277
|
});
|
|
221
278
|
it('render a solid clock icon in a darkcyan color', () => {
|
|
222
|
-
const tree = render
|
|
279
|
+
const tree = render
|
|
280
|
+
.create(<Icon style={'solid'} name={'clock'} color={'#008b8b'} />)
|
|
281
|
+
.toJSON();
|
|
223
282
|
expect(tree).toMatchSnapshot();
|
|
224
283
|
});
|
|
225
284
|
it('render a solid information-circle icon in a gold color', () => {
|
|
226
|
-
const tree = render
|
|
285
|
+
const tree = render
|
|
286
|
+
.create(
|
|
287
|
+
<Icon style={'solid'} name={'information-circle'} color={'#FFD700'} />
|
|
288
|
+
)
|
|
289
|
+
.toJSON();
|
|
227
290
|
expect(tree).toMatchSnapshot();
|
|
228
291
|
});
|
|
229
292
|
it('render a solid pencil icon in a grey color', () => {
|
|
230
293
|
const tree = render
|
|
231
|
-
.create(<Icon
|
|
294
|
+
.create(<Icon style={'solid'} name={'pencil'} color={greyColor} />)
|
|
232
295
|
.toJSON();
|
|
233
296
|
expect(tree).toMatchSnapshot();
|
|
234
297
|
});
|
|
235
298
|
it('render a solid phone icon in an ivory color', () => {
|
|
236
|
-
const tree = render
|
|
299
|
+
const tree = render
|
|
300
|
+
.create(<Icon style={'solid'} name={'phone'} color={'#FFFFF0'} />)
|
|
301
|
+
.toJSON();
|
|
237
302
|
expect(tree).toMatchSnapshot();
|
|
238
303
|
});
|
|
239
304
|
it('render a solid refresh icon in the main color', () => {
|
|
240
|
-
const tree = render
|
|
305
|
+
const tree = render
|
|
306
|
+
.create(<Icon style={'solid'} name={'refresh'} />)
|
|
307
|
+
.toJSON();
|
|
241
308
|
expect(tree).toMatchSnapshot();
|
|
242
309
|
});
|
|
243
310
|
it('render a solid status-online icon in a navy color', () => {
|
|
244
311
|
const tree = render
|
|
245
|
-
.create(<Icon
|
|
312
|
+
.create(<Icon style={'solid'} name={'status-online'} color={'#000080'} />)
|
|
246
313
|
.toJSON();
|
|
247
314
|
expect(tree).toMatchSnapshot();
|
|
248
315
|
});
|
|
249
316
|
it('render a solid trash icon in a tomato color', () => {
|
|
250
|
-
const tree = render
|
|
317
|
+
const tree = render
|
|
318
|
+
.create(<Icon style={'solid'} name={'trash'} color={'#FF6347'} />)
|
|
319
|
+
.toJSON();
|
|
320
|
+
expect(tree).toMatchSnapshot();
|
|
321
|
+
});
|
|
322
|
+
it('render a solid eye off icon in a tomato color', () => {
|
|
323
|
+
const tree = render
|
|
324
|
+
.create(<Icon style={'solid'} name={'eye-off'} color={'#FF6347'} />)
|
|
325
|
+
.toJSON();
|
|
251
326
|
expect(tree).toMatchSnapshot();
|
|
252
327
|
});
|
|
253
328
|
});
|
package/src/icons/index.d.ts
CHANGED
|
@@ -1,56 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Calendar: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
4
|
-
Chat: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
5
|
-
ChatAlt: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
6
|
-
CheckCircle: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
7
|
-
ChevronLeft: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
8
|
-
ChevronRight: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
9
|
-
Clock: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
10
|
-
CloudDownload: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
11
|
-
CurrencyEuro: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
12
|
-
DocumentText: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
13
|
-
Exclamation: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
14
|
-
ExclamationCircle: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
15
|
-
Eye: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
16
|
-
EyeOff: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
17
|
-
Filter: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
18
|
-
InformationCircle: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
19
|
-
Logout: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
20
|
-
Mail: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
21
|
-
MailOpen: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
22
|
-
Menu: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
23
|
-
MinusSm: ({ color, size }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
24
|
-
OfficeBuilding: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
25
|
-
PaperAirplane: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
26
|
-
PaperClip: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
27
|
-
Pencil: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
28
|
-
Phone: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
29
|
-
Plus: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
30
|
-
PlusSm: ({ color, size }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
31
|
-
Qrcode: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
32
|
-
Refresh: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
33
|
-
Search: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
34
|
-
Selector: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
35
|
-
ViewGridAdd: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
36
|
-
StatusOnline: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
37
|
-
ThumbUp: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
38
|
-
Trash: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
39
|
-
User: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
40
|
-
UserGroup: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
41
|
-
Users: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
42
|
-
Cross: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
43
|
-
};
|
|
44
|
-
Solid: {
|
|
45
|
-
ChatAlt: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
46
|
-
Clock: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
47
|
-
DocumentText: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
48
|
-
InformationCircle: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
49
|
-
Pencil: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
50
|
-
Phone: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
51
|
-
Refresh: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
52
|
-
StatusOnline: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
53
|
-
Trash: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
54
|
-
Users: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
1
|
+
import { IconInterface } from '../interfaces/icon.interface';
|
|
2
|
+
export declare const Icon: ({ style, name, size, color }: IconInterface) => JSX.Element;
|
package/src/icons/index.tsx
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
import {IconInterface} from '../interfaces/icon.interface';
|
|
1
2
|
import {Outline} from './outline/outline';
|
|
2
3
|
import {Solid} from './solid/solid';
|
|
3
4
|
|
|
4
|
-
export const Icon = {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
export const Icon = ({style, name, size, color}: IconInterface) => {
|
|
6
|
+
const renderIconStyle = () => {
|
|
7
|
+
switch (style) {
|
|
8
|
+
case 'regular':
|
|
9
|
+
return <Outline name={name} size={size} color={color} />;
|
|
10
|
+
case 'solid':
|
|
11
|
+
return <Solid name={name} size={size} color={color} />;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
return renderIconStyle();
|
|
7
15
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const CalendarIcon: ({ color }:
|
|
1
|
+
import { IconSVGProps } from '../../../interfaces/icon.interface';
|
|
2
|
+
export declare const CalendarIcon: ({ color, size }: IconSVGProps) => JSX.Element;
|
|
@@ -2,13 +2,14 @@ import * as React from 'react';
|
|
|
2
2
|
import {useContext} from 'react';
|
|
3
3
|
import Svg, {Path} from 'react-native-svg';
|
|
4
4
|
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
-
import {
|
|
5
|
+
import {IconSVGProps} from '../../../interfaces/icon.interface';
|
|
6
6
|
import {HexColor} from '../../../models/hex-color.model';
|
|
7
|
+
import {Scale} from '../../../theme/scale/index';
|
|
7
8
|
|
|
8
|
-
export const CalendarIcon = ({color}:
|
|
9
|
+
export const CalendarIcon = ({color, size = Scale.l}: IconSVGProps) => {
|
|
9
10
|
const context = useContext(ThemeCtx);
|
|
10
11
|
return (
|
|
11
|
-
<Svg width=
|
|
12
|
+
<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
12
13
|
<Path
|
|
13
14
|
stroke={
|
|
14
15
|
color ? HexColor.of(color).toString() : context.colors.main['0']
|
|
@@ -16,7 +17,7 @@ export const CalendarIcon = ({color}: IconType) => {
|
|
|
16
17
|
strokeWidth="2"
|
|
17
18
|
strokeLinecap="round"
|
|
18
19
|
strokeLinejoin="round"
|
|
19
|
-
d="
|
|
20
|
+
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"
|
|
20
21
|
/>
|
|
21
22
|
</Svg>
|
|
22
23
|
);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ChatIcon: ({ color }:
|
|
1
|
+
import { IconSVGProps } from '../../../interfaces/icon.interface';
|
|
2
|
+
export declare const ChatIcon: ({ color, size }: IconSVGProps) => JSX.Element;
|
|
@@ -2,13 +2,14 @@ import * as React from 'react';
|
|
|
2
2
|
import {useContext} from 'react';
|
|
3
3
|
import Svg, {Path} from 'react-native-svg';
|
|
4
4
|
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
-
import {
|
|
5
|
+
import {IconSVGProps} from '../../../interfaces/icon.interface';
|
|
6
6
|
import {HexColor} from '../../../models/hex-color.model';
|
|
7
|
+
import {Scale} from '../../../theme/scale/index';
|
|
7
8
|
|
|
8
|
-
export const ChatIcon = ({color}:
|
|
9
|
+
export const ChatIcon = ({color, size = Scale.l}: IconSVGProps) => {
|
|
9
10
|
const context = useContext(ThemeCtx);
|
|
10
11
|
return (
|
|
11
|
-
<Svg width=
|
|
12
|
+
<Svg width={size} height={size} viewBox="0 0 23 21" fill="none">
|
|
12
13
|
<Path
|
|
13
14
|
stroke={
|
|
14
15
|
color ? HexColor.of(color).toString() : context.colors.main['0']
|
|
@@ -16,7 +17,7 @@ export const ChatIcon = ({color}: IconType) => {
|
|
|
16
17
|
strokeWidth="2"
|
|
17
18
|
strokeLinecap="round"
|
|
18
19
|
strokeLinejoin="round"
|
|
19
|
-
d="
|
|
20
|
+
d="M7 10.5H7.01125M11.5 10.5H11.5113M16 10.5H16.0113M21.625 10.5C21.625 15.4706 17.0919 19.5 11.5 19.5C9.76832 19.5 8.13818 19.1136 6.71275 18.4324L1.375 19.5L2.94436 15.315C1.95051 13.9226 1.375 12.2711 1.375 10.5C1.375 5.52944 5.90812 1.5 11.5 1.5C17.0919 1.5 21.625 5.52944 21.625 10.5Z"
|
|
20
21
|
/>
|
|
21
22
|
</Svg>
|
|
22
23
|
);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ChatAltIcon: ({ color }:
|
|
1
|
+
import { IconSVGProps } from '../../../interfaces/icon.interface';
|
|
2
|
+
export declare const ChatAltIcon: ({ color, size }: IconSVGProps) => JSX.Element;
|
|
@@ -2,13 +2,14 @@ import * as React from 'react';
|
|
|
2
2
|
import {useContext} from 'react';
|
|
3
3
|
import Svg, {Path} from 'react-native-svg';
|
|
4
4
|
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
-
import {
|
|
5
|
+
import {IconSVGProps} from '../../../interfaces/icon.interface';
|
|
6
6
|
import {HexColor} from '../../../models/hex-color.model';
|
|
7
|
+
import {Scale} from '../../../theme/scale/index';
|
|
7
8
|
|
|
8
|
-
export const ChatAltIcon = ({color}:
|
|
9
|
+
export const ChatAltIcon = ({color, size = Scale.l}: IconSVGProps) => {
|
|
9
10
|
const context = useContext(ThemeCtx);
|
|
10
11
|
return (
|
|
11
|
-
<Svg width=
|
|
12
|
+
<Svg width={size} height={size} viewBox="0 0 23 22" fill="none">
|
|
12
13
|
<Path
|
|
13
14
|
stroke={
|
|
14
15
|
color ? HexColor.of(color).toString() : context.colors.main['0']
|
|
@@ -16,7 +17,7 @@ export const ChatAltIcon = ({color}: IconType) => {
|
|
|
16
17
|
strokeWidth="2"
|
|
17
18
|
strokeLinecap="round"
|
|
18
19
|
strokeLinejoin="round"
|
|
19
|
-
d="
|
|
20
|
+
d="M7 8.25H7.01125M11.5 8.25H11.5113M16 8.25H16.0113M8.125 15H3.625C2.38236 15 1.375 13.9926 1.375 12.75V3.75C1.375 2.50736 2.38236 1.5 3.625 1.5H19.375C20.6176 1.5 21.625 2.50736 21.625 3.75V12.75C21.625 13.9926 20.6176 15 19.375 15H13.75L8.125 20.625V15Z"
|
|
20
21
|
/>
|
|
21
22
|
</Svg>
|
|
22
23
|
);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const CheckCircleIcon: ({ color }:
|
|
1
|
+
import { IconSVGProps } from '../../../interfaces/icon.interface';
|
|
2
|
+
export declare const CheckCircleIcon: ({ color, size }: IconSVGProps) => JSX.Element;
|
|
@@ -2,13 +2,14 @@ import * as React from 'react';
|
|
|
2
2
|
import {useContext} from 'react';
|
|
3
3
|
import Svg, {Path} from 'react-native-svg';
|
|
4
4
|
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
-
import {
|
|
5
|
+
import {IconSVGProps} from '../../../interfaces/icon.interface';
|
|
6
6
|
import {HexColor} from '../../../models/hex-color.model';
|
|
7
|
+
import {Scale} from '../../../theme/scale/index';
|
|
7
8
|
|
|
8
|
-
export const CheckCircleIcon = ({color}:
|
|
9
|
+
export const CheckCircleIcon = ({color, size = Scale.l}: IconSVGProps) => {
|
|
9
10
|
const context = useContext(ThemeCtx);
|
|
10
11
|
return (
|
|
11
|
-
<Svg width=
|
|
12
|
+
<Svg width={size} height={size} viewBox="0 0 23 23" fill="none">
|
|
12
13
|
<Path
|
|
13
14
|
stroke={
|
|
14
15
|
color ? HexColor.of(color).toString() : context.colors.main['0']
|
|
@@ -16,7 +17,7 @@ export const CheckCircleIcon = ({color}: IconType) => {
|
|
|
16
17
|
strokeWidth="2"
|
|
17
18
|
strokeLinecap="round"
|
|
18
19
|
strokeLinejoin="round"
|
|
19
|
-
d="
|
|
20
|
+
d="M8.125 11.5L10.375 13.75L14.875 9.25M21.625 11.5C21.625 17.0919 17.0919 21.625 11.5 21.625C5.90812 21.625 1.375 17.0919 1.375 11.5C1.375 5.90812 5.90812 1.375 11.5 1.375C17.0919 1.375 21.625 5.90812 21.625 11.5Z"
|
|
20
21
|
/>
|
|
21
22
|
</Svg>
|
|
22
23
|
);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ChevronLeftIcon: ({ color }:
|
|
1
|
+
import { IconSVGProps } from '../../../interfaces/icon.interface';
|
|
2
|
+
export declare const ChevronLeftIcon: ({ color, size }: IconSVGProps) => JSX.Element;
|
|
@@ -2,13 +2,14 @@ import * as React from 'react';
|
|
|
2
2
|
import {useContext} from 'react';
|
|
3
3
|
import Svg, {Path} from 'react-native-svg';
|
|
4
4
|
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
-
import {
|
|
5
|
+
import {IconSVGProps} from '../../../interfaces/icon.interface';
|
|
6
6
|
import {HexColor} from '../../../models/hex-color.model';
|
|
7
|
+
import {Scale} from '../../../theme/scale/index';
|
|
7
8
|
|
|
8
|
-
export const ChevronLeftIcon = ({color}:
|
|
9
|
+
export const ChevronLeftIcon = ({color, size = Scale.l}: IconSVGProps) => {
|
|
9
10
|
const context = useContext(ThemeCtx);
|
|
10
11
|
return (
|
|
11
|
-
<Svg width=
|
|
12
|
+
<Svg width={size} height={size} viewBox="0 0 10 19" fill="none">
|
|
12
13
|
<Path
|
|
13
14
|
stroke={
|
|
14
15
|
color ? HexColor.of(color).toString() : context.colors.main['0']
|
|
@@ -16,7 +17,7 @@ export const ChevronLeftIcon = ({color}: IconType) => {
|
|
|
16
17
|
strokeWidth="2"
|
|
17
18
|
strokeLinecap="round"
|
|
18
19
|
strokeLinejoin="round"
|
|
19
|
-
d="
|
|
20
|
+
d="M8.875 17.375L1 9.5L8.875 1.625"
|
|
20
21
|
/>
|
|
21
22
|
</Svg>
|
|
22
23
|
);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ChevronRightIcon: ({ color }:
|
|
1
|
+
import { IconSVGProps } from '../../../interfaces/icon.interface';
|
|
2
|
+
export declare const ChevronRightIcon: ({ color, size }: IconSVGProps) => JSX.Element;
|