@tactics/toddle-styleguide 0.0.1
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/.expo-shared/assets.json +4 -0
- package/.github/workflows/run-tests.yml +16 -0
- package/.prettierrc.js +9 -0
- package/.yarnrc.yml +1 -0
- package/App.tsx +221 -0
- package/app.json +33 -0
- package/assets/adaptive-icon.png +0 -0
- package/assets/components/avatar/baby.png +0 -0
- package/assets/favicon.png +0 -0
- package/assets/fonts/montserrat/bold.ttf +0 -0
- package/assets/fonts/montserrat/regular.ttf +0 -0
- package/assets/fonts/source-sans-pro/bold.ttf +0 -0
- package/assets/fonts/source-sans-pro/regular.ttf +0 -0
- package/assets/icon.png +0 -0
- package/assets/splash.png +0 -0
- package/babel.config.js +6 -0
- package/jest.config.js +22 -0
- package/package.json +53 -0
- package/src/components/atoms/avatar/__snapshots__/avatar.test.js.snap +85 -0
- package/src/components/atoms/avatar/avatar.component.tsx +35 -0
- package/src/components/atoms/avatar/avatar.preview.tsx +38 -0
- package/src/components/atoms/avatar/avatar.styles.js +55 -0
- package/src/components/atoms/avatar/avatar.test.js +22 -0
- package/src/components/atoms/button/__snapshots__/button.test.js.snap +307 -0
- package/src/components/atoms/button/button.component.tsx +27 -0
- package/src/components/atoms/button/button.preview.tsx +34 -0
- package/src/components/atoms/button/button.styles.js +25 -0
- package/src/components/atoms/button/button.test.js +35 -0
- package/src/components/atoms/cancel-link/__snapshots__/cancel-link.test.js.snap +89 -0
- package/src/components/atoms/cancel-link/cancel-link.component.tsx +24 -0
- package/src/components/atoms/cancel-link/cancel-link.preview.tsx +20 -0
- package/src/components/atoms/cancel-link/cancel-link.styles.js +20 -0
- package/src/components/atoms/cancel-link/cancel-link.test.js +28 -0
- package/src/components/atoms/check-switch/__snapshots__/check-switch.test.js.snap +67 -0
- package/src/components/atoms/check-switch/check-switch.component.tsx +46 -0
- package/src/components/atoms/check-switch/check-switch.preview.tsx +31 -0
- package/src/components/atoms/check-switch/check-switch.styles.js +36 -0
- package/src/components/atoms/check-switch/check-switch.test.js +13 -0
- package/src/components/atoms/checkbox/__snapshots__/checkbox.test.js.snap +120 -0
- package/src/components/atoms/checkbox/checkbox.component.tsx +26 -0
- package/src/components/atoms/checkbox/checkbox.preview.tsx +46 -0
- package/src/components/atoms/checkbox/checkbox.styles.js +35 -0
- package/src/components/atoms/checkbox/checkbox.test.js +30 -0
- package/src/components/atoms/child-list-item/__snapshots__/child-list-item.test.js.snap +635 -0
- package/src/components/atoms/child-list-item/child-list-item.component.tsx +81 -0
- package/src/components/atoms/child-list-item/child-list-item.preview.tsx +65 -0
- package/src/components/atoms/child-list-item/child-list-item.styles.js +82 -0
- package/src/components/atoms/child-list-item/child-list-item.test.js +73 -0
- package/src/components/atoms/contact-item/__snapshots__/contact-item.test.js.snap +321 -0
- package/src/components/atoms/contact-item/contact-item.component.tsx +61 -0
- package/src/components/atoms/contact-item/contact-item.preview.tsx +30 -0
- package/src/components/atoms/contact-item/contact-item.styles.js +26 -0
- package/src/components/atoms/contact-item/contact-item.test.js +20 -0
- package/src/components/atoms/filter-tab/__snapshots__/filter-tab.test.js.snap +415 -0
- package/src/components/atoms/filter-tab/filter-tab.component.tsx +93 -0
- package/src/components/atoms/filter-tab/filter-tab.preview.tsx +37 -0
- package/src/components/atoms/filter-tab/filter-tab.styles.js +64 -0
- package/src/components/atoms/filter-tab/filter-tab.test.js +38 -0
- package/src/components/atoms/form-actions/__snapshots__/form-action.test.js.snap +176 -0
- package/src/components/atoms/form-actions/form-action.component.tsx +25 -0
- package/src/components/atoms/form-actions/form-action.preview.tsx +29 -0
- package/src/components/atoms/form-actions/form-action.styles.js +19 -0
- package/src/components/atoms/form-actions/form-action.test.js +32 -0
- package/src/components/atoms/image-bubble/__snapshots__/image-bubble.test.js.snap +67 -0
- package/src/components/atoms/image-bubble/image-bubble.component.tsx +25 -0
- package/src/components/atoms/image-bubble/image-bubble.preview.tsx +19 -0
- package/src/components/atoms/image-bubble/image-bubble.styles.js +31 -0
- package/src/components/atoms/image-bubble/image-bubble.test.js +20 -0
- package/src/components/atoms/info/__snapshots__/info.test.js.snap +43 -0
- package/src/components/atoms/info/info.component.tsx +22 -0
- package/src/components/atoms/info/info.preview.tsx +20 -0
- package/src/components/atoms/info/info.styles.js +25 -0
- package/src/components/atoms/info/info.test.js +18 -0
- package/src/components/atoms/pill/__snapshots__/pill.test.js.snap +141 -0
- package/src/components/atoms/pill/pill.component.tsx +23 -0
- package/src/components/atoms/pill/pill.preview.tsx +21 -0
- package/src/components/atoms/pill/pill.styles.js +32 -0
- package/src/components/atoms/pill/pill.test.js +34 -0
- package/src/components/atoms/popover/components/backdrop/backdrop.component.tsx +40 -0
- package/src/components/atoms/popover/components/backdrop/backdrop.styles.js +15 -0
- package/src/components/atoms/popover/components/foreground/foreground.component.tsx +17 -0
- package/src/components/atoms/popover/components/foreground/foreground.styles.js +17 -0
- package/src/components/atoms/popover/components/index.js +5 -0
- package/src/components/atoms/popover/components/modal/close/close.component.tsx +21 -0
- package/src/components/atoms/popover/components/modal/close/close.styles.js +13 -0
- package/src/components/atoms/popover/components/modal/heading/heading.component.tsx +22 -0
- package/src/components/atoms/popover/components/modal/heading/heading.styles.js +24 -0
- package/src/components/atoms/popover/components/modal/modal.component.tsx +87 -0
- package/src/components/atoms/popover/components/modal/modal.styles.js +23 -0
- package/src/components/atoms/popover/components/modal/scroll-content/scroll-content.component.tsx +18 -0
- package/src/components/atoms/popover/components/modal/scroll-content/scroll-content.styles.js +10 -0
- package/src/components/atoms/popover/popover.component.tsx +60 -0
- package/src/components/atoms/popover/popover.preview.tsx +135 -0
- package/src/components/atoms/popover/popover.styles.js +12 -0
- package/src/components/atoms/popover-heading/__snapshots__/popover_heading.test.js.snap +35 -0
- package/src/components/atoms/popover-heading/popover-heading.component.tsx +22 -0
- package/src/components/atoms/popover-heading/popover-heading.preview.tsx +18 -0
- package/src/components/atoms/popover-heading/popover-heading.styles.js +19 -0
- package/src/components/atoms/popover-heading/popover_heading.test.js +11 -0
- package/src/components/atoms/pressable-icon/__snapshots__/pressable-icon.test.js.snap +364 -0
- package/src/components/atoms/pressable-icon/pressable-icon.component.tsx +48 -0
- package/src/components/atoms/pressable-icon/pressable-icon.preview.tsx +37 -0
- package/src/components/atoms/pressable-icon/pressable-icon.styles.js +25 -0
- package/src/components/atoms/pressable-icon/pressable-icon.test.js +47 -0
- package/src/components/atoms/quick-filter/__snapshots__/quick-filter.test.js.snap +465 -0
- package/src/components/atoms/quick-filter/quick-filter.component.tsx +32 -0
- package/src/components/atoms/quick-filter/quick-filter.prevriew.tsx +46 -0
- package/src/components/atoms/quick-filter/quick-filter.styles.js +68 -0
- package/src/components/atoms/quick-filter/quick-filter.test.js +127 -0
- package/src/components/atoms/select-list-item/__snapshots__/select-list-item.test.js.snap +391 -0
- package/src/components/atoms/select-list-item/select-list-item-preview.tsx +31 -0
- package/src/components/atoms/select-list-item/select-list-item.test.js +38 -0
- package/src/components/atoms/select-list-item/select-list.component-item.tsx +52 -0
- package/src/components/atoms/select-list-item/select-list.styles-item.js +40 -0
- package/src/components/atoms/snackbar/__snapshots__/snackbar.test.js.snap +493 -0
- package/src/components/atoms/snackbar/snackbar.component.tsx +28 -0
- package/src/components/atoms/snackbar/snackbar.preview.tsx +33 -0
- package/src/components/atoms/snackbar/snackbar.styles.js +82 -0
- package/src/components/atoms/snackbar/snackbar.test.js +35 -0
- package/src/components/atoms/tag/__snapshots__/tag.test.js.snap +87 -0
- package/src/components/atoms/tag/tag.component.tsx +37 -0
- package/src/components/atoms/tag/tag.preview.tsx +27 -0
- package/src/components/atoms/tag/tag.styles.js +22 -0
- package/src/components/atoms/tag/tag.test.js +24 -0
- package/src/components/atoms/text-bubble/__snapshots__/text-bubble.test.js.snap +337 -0
- package/src/components/atoms/text-bubble/text-bubble.component.tsx +32 -0
- package/src/components/atoms/text-bubble/text-bubble.preview.tsx +27 -0
- package/src/components/atoms/text-bubble/text-bubble.styles.js +64 -0
- package/src/components/atoms/text-bubble/text-bubble.test.js +84 -0
- package/src/components/atoms/text-input/__snapshots__/text-input.test.js.snap +68 -0
- package/src/components/atoms/text-input/text-input.component.tsx +32 -0
- package/src/components/atoms/text-input/text-input.preview.tsx +24 -0
- package/src/components/atoms/text-input/text-input.styles.js +26 -0
- package/src/components/atoms/text-input/text-input.test.js +32 -0
- package/src/components/atoms/time-tracker/__snapshots__/time-tracker.test.js.snap +206 -0
- package/src/components/atoms/time-tracker/time-tracker.component.tsx +24 -0
- package/src/components/atoms/time-tracker/time-tracker.preview.tsx +15 -0
- package/src/components/atoms/time-tracker/time-tracker.styles.js +36 -0
- package/src/components/atoms/time-tracker/time-tracker.test.js +37 -0
- package/src/components/atoms/wide-button/__snapshots__/wide-button.test.js.snap +92 -0
- package/src/components/atoms/wide-button/wide-button.component.tsx +23 -0
- package/src/components/atoms/wide-button/wide-button.preview.tsx +18 -0
- package/src/components/atoms/wide-button/wide-button.styles.js +22 -0
- package/src/components/atoms/wide-button/wide-button.test.js +16 -0
- package/src/context/theme.context.ts +49 -0
- package/src/gradients/main/main.gradient.tsx +20 -0
- package/src/gradients/main/main.styles.js +11 -0
- package/src/icons/__snapshots__/icons.test.js.snap +2588 -0
- package/src/icons/icons.test.js +245 -0
- package/src/icons/index.tsx +7 -0
- package/src/icons/outline/calendar/calendar.icon.tsx +20 -0
- package/src/icons/outline/chat/chat.icon.tsx +20 -0
- package/src/icons/outline/chat-alt/chat-alt.icon.tsx +20 -0
- package/src/icons/outline/check-circle/check-circle.icon.tsx +20 -0
- package/src/icons/outline/chevron-left/chevron-left.icon.tsx +20 -0
- package/src/icons/outline/chevron-right/chevron-right.icon.tsx +20 -0
- package/src/icons/outline/clock/clock.icon.tsx +20 -0
- package/src/icons/outline/cloud-download/cloud-download.icon.tsx +20 -0
- package/src/icons/outline/cross/cross.icon.tsx +20 -0
- package/src/icons/outline/currency-euro/currency-euro.icon.tsx +20 -0
- package/src/icons/outline/document-text/document-text.icon.tsx +20 -0
- package/src/icons/outline/exclamation/exclamation.icon.tsx +20 -0
- package/src/icons/outline/exclamation-circle/exclamation-circle.icon.tsx +20 -0
- package/src/icons/outline/eye/eye.icon.tsx +27 -0
- package/src/icons/outline/filter/filter.icon.tsx +59 -0
- package/src/icons/outline/information-circle/information-circle.icon.tsx +20 -0
- package/src/icons/outline/logout/logout.icon.tsx +20 -0
- package/src/icons/outline/mail/mail.icon.tsx +20 -0
- package/src/icons/outline/mail-open/mail-open.icon.tsx +20 -0
- package/src/icons/outline/menu/menu.icon.tsx +20 -0
- package/src/icons/outline/minus-sm/minus-sm.icon.tsx +20 -0
- package/src/icons/outline/office-building/office-building.icon.tsx +20 -0
- package/src/icons/outline/outline-default.preview.tsx +99 -0
- package/src/icons/outline/outline-grey.preview.tsx +100 -0
- package/src/icons/outline/outline-white.preview.tsx +100 -0
- package/src/icons/outline/outline.tsx +81 -0
- package/src/icons/outline/paper-airplane/paper-airplane.icon.tsx +20 -0
- package/src/icons/outline/paperclip/paperclip.icon.tsx +20 -0
- package/src/icons/outline/pencil/pencil.icon.tsx +20 -0
- package/src/icons/outline/phone/phone.icon.tsx +20 -0
- package/src/icons/outline/plus/plus.icon.tsx +20 -0
- package/src/icons/outline/plus-sm/plus-sm.icon.tsx +20 -0
- package/src/icons/outline/qrcode/qrcode.icon.tsx +17 -0
- package/src/icons/outline/refresh/refresh.icon.tsx +20 -0
- package/src/icons/outline/search/search.icon.tsx +20 -0
- package/src/icons/outline/selector/selector.icon.tsx +20 -0
- package/src/icons/outline/sm-view-grid-add/sm-view-grid-add.icon.tsx +20 -0
- package/src/icons/outline/status-online/status-online.icon.tsx +20 -0
- package/src/icons/outline/thumb-up/thumb-up.icon.tsx +20 -0
- package/src/icons/outline/trash/trash.icon.tsx +20 -0
- package/src/icons/outline/user/user.icon.tsx +27 -0
- package/src/icons/outline/user-group/user-group.icon.tsx +20 -0
- package/src/icons/outline/users/users.icon.tsx +20 -0
- package/src/icons/solid/chat-alt/chat-alt-solid.icon.tsx +20 -0
- package/src/icons/solid/clock/clock-solid.icon.tsx +20 -0
- package/src/icons/solid/information-circle/information-circle-solid.icon.tsx +20 -0
- package/src/icons/solid/pencil/pencil-solid.icon.tsx +22 -0
- package/src/icons/solid/phone/phone-solid.icon.tsx +18 -0
- package/src/icons/solid/refresh/refresh-solid.icon.tsx +20 -0
- package/src/icons/solid/solid.preview.tsx +73 -0
- package/src/icons/solid/solid.tsx +19 -0
- package/src/icons/solid/status-online/status-online-solid.icon.tsx +24 -0
- package/src/icons/solid/trash/trash-solid.icon.tsx +20 -0
- package/src/models/hex-color.model.ts +25 -0
- package/src/models/hex-color.test.js +20 -0
- package/src/models/initials.model.ts +32 -0
- package/src/models/initials.test.js +23 -0
- package/src/theme/font/font.ts +72 -0
- package/src/theme/font/index.ts +4 -0
- package/src/theme/font/load-fonts.ts +10 -0
- package/src/theme/provider/index.ts +4 -0
- package/src/theme/provider/parent.theme.ts +45 -0
- package/src/theme/provider/staff-member.theme.ts +45 -0
- package/src/theme/scale/index.ts +14 -0
- package/src/types/bubble-alignment.enum.ts +4 -0
- package/src/types/icontype.type.ts +3 -0
- package/src/types/keyboard-types.enum.ts +9 -0
- package/src/types/size.enum.ts +5 -0
- package/src/types/visual-state.enum.ts +6 -0
- package/tsconfig.json +7 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import render from 'react-test-renderer';
|
|
3
|
+
import {Icon} from './index';
|
|
4
|
+
|
|
5
|
+
describe('test icons', () => {
|
|
6
|
+
const greyColor = 'grey';
|
|
7
|
+
const whiteColor = 'white';
|
|
8
|
+
|
|
9
|
+
it('render an outlined calendar icon in the main color', function () {
|
|
10
|
+
const tree = render.create(<Icon.Outline.Calendar />).toJSON();
|
|
11
|
+
expect(tree).toMatchSnapshot();
|
|
12
|
+
});
|
|
13
|
+
it('render an outlined chat icon in the main color', () => {
|
|
14
|
+
const tree = render.create(<Icon.Outline.Chat />).toJSON();
|
|
15
|
+
expect(tree).toMatchSnapshot();
|
|
16
|
+
});
|
|
17
|
+
it('render an outlined chat-alt icon in a grey color', () => {
|
|
18
|
+
const tree = render
|
|
19
|
+
.create(<Icon.Outline.ChatAlt color={greyColor} />)
|
|
20
|
+
.toJSON();
|
|
21
|
+
expect(tree).toMatchSnapshot();
|
|
22
|
+
});
|
|
23
|
+
it('render an outlined check-circle icon in a grey color', () => {
|
|
24
|
+
const tree = render
|
|
25
|
+
.create(<Icon.Outline.CheckCircle color={greyColor} />)
|
|
26
|
+
.toJSON();
|
|
27
|
+
expect(tree).toMatchSnapshot();
|
|
28
|
+
});
|
|
29
|
+
it('render an outlined chevron-left icon in a white color', () => {
|
|
30
|
+
const tree = render
|
|
31
|
+
.create(<Icon.Outline.ChevronLeft color={whiteColor} />)
|
|
32
|
+
.toJSON();
|
|
33
|
+
expect(tree).toMatchSnapshot();
|
|
34
|
+
});
|
|
35
|
+
it('render an outlined chevron-right icon in a white color', () => {
|
|
36
|
+
const tree = render
|
|
37
|
+
.create(<Icon.Outline.ChevronRight color={whiteColor} />)
|
|
38
|
+
.toJSON();
|
|
39
|
+
expect(tree).toMatchSnapshot();
|
|
40
|
+
});
|
|
41
|
+
it('render an outlined clock icon in the main color', () => {
|
|
42
|
+
const tree = render.create(<Icon.Outline.Clock />).toJSON();
|
|
43
|
+
expect(tree).toMatchSnapshot();
|
|
44
|
+
});
|
|
45
|
+
it('render an outlined cloud-download icon in a grey color', () => {
|
|
46
|
+
const tree = render
|
|
47
|
+
.create(<Icon.Outline.CloudDownload color={greyColor} />)
|
|
48
|
+
.toJSON();
|
|
49
|
+
expect(tree).toMatchSnapshot();
|
|
50
|
+
});
|
|
51
|
+
it('render an outlined currency-euro icon in a red color', () => {
|
|
52
|
+
const tree = render
|
|
53
|
+
.create(<Icon.Outline.CurrencyEuro color={'red'} />)
|
|
54
|
+
.toJSON();
|
|
55
|
+
expect(tree).toMatchSnapshot();
|
|
56
|
+
});
|
|
57
|
+
it('render an outlined document-text icon in a white color', () => {
|
|
58
|
+
const tree = render
|
|
59
|
+
.create(<Icon.Outline.DocumentText color={whiteColor} />)
|
|
60
|
+
.toJSON();
|
|
61
|
+
expect(tree).toMatchSnapshot();
|
|
62
|
+
});
|
|
63
|
+
it('render an outlined exclamation icon in a blue color', () => {
|
|
64
|
+
const tree = render
|
|
65
|
+
.create(<Icon.Outline.Exclamation color={'blue'} />)
|
|
66
|
+
.toJSON();
|
|
67
|
+
expect(tree).toMatchSnapshot();
|
|
68
|
+
});
|
|
69
|
+
it('render an outlined exclamation-circle icon in a pink color', () => {
|
|
70
|
+
const tree = render
|
|
71
|
+
.create(<Icon.Outline.ExclamationCircle color={'pink'} />)
|
|
72
|
+
.toJSON();
|
|
73
|
+
expect(tree).toMatchSnapshot();
|
|
74
|
+
});
|
|
75
|
+
it('render an outlined eye icon in a purple color', () => {
|
|
76
|
+
const tree = render.create(<Icon.Outline.Eye color={'purple'} />).toJSON();
|
|
77
|
+
expect(tree).toMatchSnapshot();
|
|
78
|
+
});
|
|
79
|
+
it('render an outlined filter icon in the main color', () => {
|
|
80
|
+
const tree = render.create(<Icon.Outline.Filter />).toJSON();
|
|
81
|
+
expect(tree).toMatchSnapshot();
|
|
82
|
+
});
|
|
83
|
+
it('render an outlined information-circle icon in the main color', () => {
|
|
84
|
+
const tree = render.create(<Icon.Outline.InformationCircle />).toJSON();
|
|
85
|
+
expect(tree).toMatchSnapshot();
|
|
86
|
+
});
|
|
87
|
+
it('render an outlined logout icon in a red color', () => {
|
|
88
|
+
const tree = render.create(<Icon.Outline.Logout color={'red'} />).toJSON();
|
|
89
|
+
expect(tree).toMatchSnapshot();
|
|
90
|
+
});
|
|
91
|
+
it('render an outlined mail icon in a brown color', () => {
|
|
92
|
+
const tree = render.create(<Icon.Outline.Mail color={'brown'} />).toJSON();
|
|
93
|
+
expect(tree).toMatchSnapshot();
|
|
94
|
+
});
|
|
95
|
+
it('render an outlined mail-open icon in a grey color', () => {
|
|
96
|
+
const tree = render
|
|
97
|
+
.create(<Icon.Outline.MailOpen color={greyColor} />)
|
|
98
|
+
.toJSON();
|
|
99
|
+
expect(tree).toMatchSnapshot();
|
|
100
|
+
});
|
|
101
|
+
it('render an outlined menu icon in the main color', () => {
|
|
102
|
+
const tree = render.create(<Icon.Outline.Menu />).toJSON();
|
|
103
|
+
expect(tree).toMatchSnapshot();
|
|
104
|
+
});
|
|
105
|
+
it('render an outlined minus-sm icon in the main color', () => {
|
|
106
|
+
const tree = render.create(<Icon.Outline.MinusSm />).toJSON();
|
|
107
|
+
expect(tree).toMatchSnapshot();
|
|
108
|
+
});
|
|
109
|
+
it('render an outlined office-building icon in a green color', () => {
|
|
110
|
+
const tree = render
|
|
111
|
+
.create(<Icon.Outline.OfficeBuilding color={'green'} />)
|
|
112
|
+
.toJSON();
|
|
113
|
+
expect(tree).toMatchSnapshot();
|
|
114
|
+
});
|
|
115
|
+
it('render an outlined paper-airplane icon in a white color', () => {
|
|
116
|
+
const tree = render
|
|
117
|
+
.create(<Icon.Outline.PaperAirplane color={whiteColor} />)
|
|
118
|
+
.toJSON();
|
|
119
|
+
expect(tree).toMatchSnapshot();
|
|
120
|
+
});
|
|
121
|
+
it('render an outlined paperclip icon in the main color', () => {
|
|
122
|
+
const tree = render.create(<Icon.Outline.PaperClip />).toJSON();
|
|
123
|
+
expect(tree).toMatchSnapshot();
|
|
124
|
+
});
|
|
125
|
+
it('render an outlined pencil icon in the main color', () => {
|
|
126
|
+
const tree = render.create(<Icon.Outline.Pencil />).toJSON();
|
|
127
|
+
expect(tree).toMatchSnapshot();
|
|
128
|
+
});
|
|
129
|
+
it('render an outlined phone icon in the main color', () => {
|
|
130
|
+
const tree = render.create(<Icon.Outline.Phone />).toJSON();
|
|
131
|
+
expect(tree).toMatchSnapshot();
|
|
132
|
+
});
|
|
133
|
+
it('render an outlined plus icon in a grey color', () => {
|
|
134
|
+
const tree = render
|
|
135
|
+
.create(<Icon.Outline.Plus color={greyColor} />)
|
|
136
|
+
.toJSON();
|
|
137
|
+
expect(tree).toMatchSnapshot();
|
|
138
|
+
});
|
|
139
|
+
it('render an outlined plus-sm icon in a red color', () => {
|
|
140
|
+
const tree = render.create(<Icon.Outline.PlusSm color={'red'} />).toJSON();
|
|
141
|
+
expect(tree).toMatchSnapshot();
|
|
142
|
+
});
|
|
143
|
+
it('render an outlined qrcode icon in a purple color', () => {
|
|
144
|
+
const tree = render
|
|
145
|
+
.create(<Icon.Outline.Qrcode color={'purple'} />)
|
|
146
|
+
.toJSON();
|
|
147
|
+
expect(tree).toMatchSnapshot();
|
|
148
|
+
});
|
|
149
|
+
it('render an outlined refresh icon in a purple color', () => {
|
|
150
|
+
const tree = render
|
|
151
|
+
.create(<Icon.Outline.Refresh color={'purple'} />)
|
|
152
|
+
.toJSON();
|
|
153
|
+
expect(tree).toMatchSnapshot();
|
|
154
|
+
});
|
|
155
|
+
it('render an outlined search icon in a white color', () => {
|
|
156
|
+
const tree = render
|
|
157
|
+
.create(<Icon.Outline.Search color={whiteColor} />)
|
|
158
|
+
.toJSON();
|
|
159
|
+
expect(tree).toMatchSnapshot();
|
|
160
|
+
});
|
|
161
|
+
it('render an outlined selector icon in the main color', () => {
|
|
162
|
+
const tree = render.create(<Icon.Outline.Selector />).toJSON();
|
|
163
|
+
expect(tree).toMatchSnapshot();
|
|
164
|
+
});
|
|
165
|
+
it('render an outlined sm-view-grid-add icon in a yellow color', () => {
|
|
166
|
+
const tree = render
|
|
167
|
+
.create(<Icon.Outline.ViewGridAdd color={'yellow'} />)
|
|
168
|
+
.toJSON();
|
|
169
|
+
expect(tree).toMatchSnapshot();
|
|
170
|
+
});
|
|
171
|
+
it('render an outlined status-online icon in an orange color', () => {
|
|
172
|
+
const tree = render
|
|
173
|
+
.create(<Icon.Outline.StatusOnline color={'orange'} />)
|
|
174
|
+
.toJSON();
|
|
175
|
+
expect(tree).toMatchSnapshot();
|
|
176
|
+
});
|
|
177
|
+
it('render an outlined thumb-up icon in a blue color', () => {
|
|
178
|
+
const tree = render
|
|
179
|
+
.create(<Icon.Outline.ThumbUp color={'blue'} />)
|
|
180
|
+
.toJSON();
|
|
181
|
+
expect(tree).toMatchSnapshot();
|
|
182
|
+
});
|
|
183
|
+
it('render an outlined trash icon in a red color', () => {
|
|
184
|
+
const tree = render.create(<Icon.Outline.Trash color={'red'} />).toJSON();
|
|
185
|
+
expect(tree).toMatchSnapshot();
|
|
186
|
+
});
|
|
187
|
+
it('render an outlined user icon in the main color', () => {
|
|
188
|
+
const tree = render.create(<Icon.Outline.User />).toJSON();
|
|
189
|
+
expect(tree).toMatchSnapshot();
|
|
190
|
+
});
|
|
191
|
+
it('render an outlined user-group icon in a grey color', () => {
|
|
192
|
+
const tree = render
|
|
193
|
+
.create(<Icon.Outline.UserGroup color={greyColor} />)
|
|
194
|
+
.toJSON();
|
|
195
|
+
expect(tree).toMatchSnapshot();
|
|
196
|
+
});
|
|
197
|
+
it('render an outlined users icon in a white color', () => {
|
|
198
|
+
const tree = render
|
|
199
|
+
.create(<Icon.Outline.Users color={whiteColor} />)
|
|
200
|
+
.toJSON();
|
|
201
|
+
expect(tree).toMatchSnapshot();
|
|
202
|
+
});
|
|
203
|
+
it('render an outlined cross icon in the main color', () => {
|
|
204
|
+
const tree = render.create(<Icon.Outline.Cross />).toJSON();
|
|
205
|
+
expect(tree).toMatchSnapshot();
|
|
206
|
+
});
|
|
207
|
+
it('render a solid chat-alt icon in a coral color', () => {
|
|
208
|
+
const tree = render.create(<Icon.Solid.ChatAlt color={'coral'} />).toJSON();
|
|
209
|
+
expect(tree).toMatchSnapshot();
|
|
210
|
+
});
|
|
211
|
+
it('render a solid clock icon in a darkcyan color', () => {
|
|
212
|
+
const tree = render
|
|
213
|
+
.create(<Icon.Solid.Clock color={'darkcyan'} />)
|
|
214
|
+
.toJSON();
|
|
215
|
+
expect(tree).toMatchSnapshot();
|
|
216
|
+
});
|
|
217
|
+
it('render a solid information-circle icon in a gold color', () => {
|
|
218
|
+
const tree = render.create(<Icon.Solid.Clock color={'gold'} />).toJSON();
|
|
219
|
+
expect(tree).toMatchSnapshot();
|
|
220
|
+
});
|
|
221
|
+
it('render a solid pencil icon in a grey color', () => {
|
|
222
|
+
const tree = render
|
|
223
|
+
.create(<Icon.Solid.Pencil color={greyColor} />)
|
|
224
|
+
.toJSON();
|
|
225
|
+
expect(tree).toMatchSnapshot();
|
|
226
|
+
});
|
|
227
|
+
it('render a solid phone icon in an ivory color', () => {
|
|
228
|
+
const tree = render.create(<Icon.Solid.Phone color={'ivory'} />).toJSON();
|
|
229
|
+
expect(tree).toMatchSnapshot();
|
|
230
|
+
});
|
|
231
|
+
it('render a solid refresh icon in the main color', () => {
|
|
232
|
+
const tree = render.create(<Icon.Solid.Refresh />).toJSON();
|
|
233
|
+
expect(tree).toMatchSnapshot();
|
|
234
|
+
});
|
|
235
|
+
it('render a solid status-online icon in a navy color', () => {
|
|
236
|
+
const tree = render
|
|
237
|
+
.create(<Icon.Solid.StatusOnline color={'navy'} />)
|
|
238
|
+
.toJSON();
|
|
239
|
+
expect(tree).toMatchSnapshot();
|
|
240
|
+
});
|
|
241
|
+
it('render a solid trash icon in a tomato color', () => {
|
|
242
|
+
const tree = render.create(<Icon.Solid.Trash color={'tomato'} />).toJSON();
|
|
243
|
+
expect(tree).toMatchSnapshot();
|
|
244
|
+
});
|
|
245
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconType} from '../../../types/icontype.type';
|
|
6
|
+
|
|
7
|
+
export const CalendarIcon = ({color}: IconType) => {
|
|
8
|
+
const context = useContext(ThemeCtx);
|
|
9
|
+
return (
|
|
10
|
+
<Svg width="28" height="28" viewBox="0 0 27 27" fill="none">
|
|
11
|
+
<Path
|
|
12
|
+
stroke={color ? color : context.colors.main['0']}
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
d="M9.16667 7.875V3.375M17.8333 7.875V3.375M8.08333 12.375H18.9167M5.91667 23.625H21.0833C22.28 23.625 23.25 22.6176 23.25 21.375V7.875C23.25 6.63236 22.28 5.625 21.0833 5.625H5.91667C4.72005 5.625 3.75 6.63236 3.75 7.875V21.375C3.75 22.6176 4.72005 23.625 5.91667 23.625Z"
|
|
17
|
+
/>
|
|
18
|
+
</Svg>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconType} from '../../../types/icontype.type';
|
|
6
|
+
|
|
7
|
+
export const ChatIcon = ({color}: IconType) => {
|
|
8
|
+
const context = useContext(ThemeCtx);
|
|
9
|
+
return (
|
|
10
|
+
<Svg width="28" height="28" viewBox="0 0 28 28" fill="none">
|
|
11
|
+
<Path
|
|
12
|
+
stroke={color ? color : context.colors.main['0']}
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
d="M9.5 14H9.51125M14 14H14.0113M18.5 14H18.5113M24.125 14C24.125 18.9706 19.5919 23 14 23C12.2683 23 10.6382 22.6136 9.21275 21.9324L3.875 23L5.44436 18.815C4.45051 17.4226 3.875 15.7711 3.875 14C3.875 9.02944 8.40812 5 14 5C19.5919 5 24.125 9.02944 24.125 14Z"
|
|
17
|
+
/>
|
|
18
|
+
</Svg>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconType} from '../../../types/icontype.type';
|
|
6
|
+
|
|
7
|
+
export const ChatAltIcon = ({color}: IconType) => {
|
|
8
|
+
const context = useContext(ThemeCtx);
|
|
9
|
+
return (
|
|
10
|
+
<Svg width="28" height="28" viewBox="0 0 27 27" fill="none">
|
|
11
|
+
<Path
|
|
12
|
+
stroke={color ? color : context.colors.main['0']}
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
d="M9 11.25H9.01125M13.5 11.25H13.5113M18 11.25H18.0113M10.125 18H5.625C4.38236 18 3.375 16.9926 3.375 15.75V6.75C3.375 5.50736 4.38236 4.5 5.625 4.5H21.375C22.6176 4.5 23.625 5.50736 23.625 6.75V15.75C23.625 16.9926 22.6176 18 21.375 18H15.75L10.125 23.625V18Z"
|
|
17
|
+
/>
|
|
18
|
+
</Svg>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconType} from '../../../types/icontype.type';
|
|
6
|
+
|
|
7
|
+
export const CheckCircleIcon = ({color}: IconType) => {
|
|
8
|
+
const context = useContext(ThemeCtx);
|
|
9
|
+
return (
|
|
10
|
+
<Svg width="28" height="28" viewBox="0 0 27 27" fill="none">
|
|
11
|
+
<Path
|
|
12
|
+
stroke={color ? color : context.colors.main['0']}
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
d="M10.125 13.5L12.375 15.75L16.875 11.25M23.625 13.5C23.625 19.0919 19.0919 23.625 13.5 23.625C7.90812 23.625 3.375 19.0919 3.375 13.5C3.375 7.90812 7.90812 3.375 13.5 3.375C19.0919 3.375 23.625 7.90812 23.625 13.5Z"
|
|
17
|
+
/>
|
|
18
|
+
</Svg>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconType} from '../../../types/icontype.type';
|
|
6
|
+
|
|
7
|
+
export const ChevronLeftIcon = ({color}: IconType) => {
|
|
8
|
+
const context = useContext(ThemeCtx);
|
|
9
|
+
return (
|
|
10
|
+
<Svg width="28" height="28" viewBox="0 0 27 27" fill="none">
|
|
11
|
+
<Path
|
|
12
|
+
stroke={color ? color : context.colors.main['0']}
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
d="M16.875 21.375L9 13.5L16.875 5.625"
|
|
17
|
+
/>
|
|
18
|
+
</Svg>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconType} from '../../../types/icontype.type';
|
|
6
|
+
|
|
7
|
+
export const ChevronRightIcon = ({color}: IconType) => {
|
|
8
|
+
const context = useContext(ThemeCtx);
|
|
9
|
+
return (
|
|
10
|
+
<Svg width="28" height="28" viewBox="0 0 26 27" fill="none">
|
|
11
|
+
<Path
|
|
12
|
+
stroke={color ? color : context.colors.main['0']}
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
d="M9.75 5.625L17.3333 13.5L9.75 21.375"
|
|
17
|
+
/>
|
|
18
|
+
</Svg>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconType} from '../../../types/icontype.type';
|
|
6
|
+
|
|
7
|
+
export const ClockIcon = ({color}: IconType) => {
|
|
8
|
+
const context = useContext(ThemeCtx);
|
|
9
|
+
return (
|
|
10
|
+
<Svg width="28" height="28" viewBox="0 0 27 26" fill="none">
|
|
11
|
+
<Path
|
|
12
|
+
stroke={color ? color : context.colors.main['0']}
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
d="M13.5 8.66667V13L16.875 16.25M23.625 13C23.625 18.3848 19.0919 22.75 13.5 22.75C7.90812 22.75 3.375 18.3848 3.375 13C3.375 7.61522 7.90812 3.25 13.5 3.25C19.0919 3.25 23.625 7.61522 23.625 13Z"
|
|
17
|
+
/>
|
|
18
|
+
</Svg>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconType} from '../../../types/icontype.type';
|
|
6
|
+
|
|
7
|
+
export const CloudDownloadIcon = ({color}: IconType) => {
|
|
8
|
+
const context = useContext(ThemeCtx);
|
|
9
|
+
return (
|
|
10
|
+
<Svg width="28" height="28" viewBox="0 0 27 27" fill="none">
|
|
11
|
+
<Path
|
|
12
|
+
stroke={color ? color : context.colors.main['0']}
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
d="M7.875 18C5.38972 18 3.375 15.9853 3.375 13.5C3.375 11.3546 4.87639 9.5598 6.8858 9.10907C6.7969 8.71194 6.75 8.29895 6.75 7.875C6.75 4.7684 9.2684 2.25 12.375 2.25C15.0967 2.25 17.3669 4.18303 17.8877 6.7511C17.925 6.75037 17.9625 6.75 18 6.75C21.1066 6.75 23.625 9.2684 23.625 12.375C23.625 15.0963 21.6925 17.3663 19.125 17.8875M10.125 21.375L13.5 24.75M13.5 24.75L16.875 21.375M13.5 24.75V11.25"
|
|
17
|
+
/>
|
|
18
|
+
</Svg>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconType} from '../../../types/icontype.type';
|
|
6
|
+
|
|
7
|
+
export const CrossIcon = ({color}: IconType) => {
|
|
8
|
+
const context = useContext(ThemeCtx);
|
|
9
|
+
return (
|
|
10
|
+
<Svg width="28" height="28" viewBox="0 0 27 27" fill="none">
|
|
11
|
+
<Path
|
|
12
|
+
stroke={color ? color : context.colors.main['0']}
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
d="M6.75 20.25L20.25 6.75M6.75 6.75L20.25 20.25"
|
|
17
|
+
/>
|
|
18
|
+
</Svg>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconType} from '../../../types/icontype.type';
|
|
6
|
+
|
|
7
|
+
export const CurrencyEuroIcon = ({color}: IconType) => {
|
|
8
|
+
const context = useContext(ThemeCtx);
|
|
9
|
+
return (
|
|
10
|
+
<Svg width="28" height="28" viewBox="0 0 26 27" fill="none">
|
|
11
|
+
<Path
|
|
12
|
+
stroke={color ? color : context.colors.main['0']}
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
d="M15.2981 17.4775C14.0289 19.6742 11.9711 19.6742 10.7019 17.4775C9.4327 15.2808 9.4327 11.7192 10.7019 9.52252C11.9711 7.32583 14.0289 7.32583 15.2981 9.52252M8.66667 11.8125H13M8.66667 15.1875H13M22.75 13.5C22.75 19.0919 18.3848 23.625 13 23.625C7.61522 23.625 3.25 19.0919 3.25 13.5C3.25 7.90812 7.61522 3.375 13 3.375C18.3848 3.375 22.75 7.90812 22.75 13.5Z"
|
|
17
|
+
/>
|
|
18
|
+
</Svg>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconType} from '../../../types/icontype.type';
|
|
6
|
+
|
|
7
|
+
export const DocumentTextIcon = ({color}: IconType) => {
|
|
8
|
+
const context = useContext(ThemeCtx);
|
|
9
|
+
return (
|
|
10
|
+
<Svg width="28" height="28" viewBox="0 0 32 32" fill="none">
|
|
11
|
+
<Path
|
|
12
|
+
stroke={color ? color : context.colors.main['0']}
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
d="M12 16H20M12 21.3333H20M22.6667 28H9.33332C7.86056 28 6.66666 26.8061 6.66666 25.3333V6.66667C6.66666 5.19391 7.86056 4 9.33332 4H16.781C17.1347 4 17.4738 4.14048 17.7238 4.39052L24.9428 11.6095C25.1928 11.8595 25.3333 12.1987 25.3333 12.5523V25.3333C25.3333 26.8061 24.1394 28 22.6667 28Z"
|
|
17
|
+
/>
|
|
18
|
+
</Svg>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconType} from '../../../types/icontype.type';
|
|
6
|
+
|
|
7
|
+
export const ExclamationIcon = ({color}: IconType) => {
|
|
8
|
+
const context = useContext(ThemeCtx);
|
|
9
|
+
return (
|
|
10
|
+
<Svg width="28" height="28" viewBox="0 0 27 27" fill="none">
|
|
11
|
+
<Path
|
|
12
|
+
stroke={color ? color : context.colors.main['0']}
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
d="M13.4997 10.125V12.375M13.4997 16.875H13.511M5.70551 21.375H21.294C23.026 21.375 24.1085 19.5 23.2425 18L15.4483 4.5C14.5823 3 12.4172 3 11.5512 4.5L3.75695 18C2.89092 19.5 3.97345 21.375 5.70551 21.375Z"
|
|
17
|
+
/>
|
|
18
|
+
</Svg>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconType} from '../../../types/icontype.type';
|
|
6
|
+
|
|
7
|
+
export const ExclamationCircleIcon = ({color}: IconType) => {
|
|
8
|
+
const context = useContext(ThemeCtx);
|
|
9
|
+
return (
|
|
10
|
+
<Svg width="28" height="28" viewBox="0 0 26 27" fill="none">
|
|
11
|
+
<Path
|
|
12
|
+
stroke={color ? color : context.colors.main['0']}
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
d="M13 9V13.5M13 18H13.0108M22.75 13.5C22.75 19.0919 18.3848 23.625 13 23.625C7.61522 23.625 3.25 19.0919 3.25 13.5C3.25 7.90812 7.61522 3.375 13 3.375C18.3848 3.375 22.75 7.90812 22.75 13.5Z"
|
|
17
|
+
/>
|
|
18
|
+
</Svg>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconType} from '../../../types/icontype.type';
|
|
6
|
+
|
|
7
|
+
export const EyeIcon = ({color}: IconType) => {
|
|
8
|
+
const context = useContext(ThemeCtx);
|
|
9
|
+
return (
|
|
10
|
+
<Svg width="28" height="28" viewBox="0 0 27 27" fill="none">
|
|
11
|
+
<Path
|
|
12
|
+
stroke={color ? color : context.colors.main['0']}
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
d="M16.875 13.5C16.875 15.364 15.3639 16.875 13.5 16.875C11.636 16.875 10.125 15.364 10.125 13.5C10.125 11.636 11.636 10.125 13.5 10.125C15.3639 10.125 16.875 11.636 16.875 13.5Z"
|
|
17
|
+
/>
|
|
18
|
+
<Path
|
|
19
|
+
stroke={color ? color : context.colors.main['0']}
|
|
20
|
+
strokeWidth="2"
|
|
21
|
+
strokeLinecap="round"
|
|
22
|
+
strokeLinejoin="round"
|
|
23
|
+
d="M2.7655 13.5C4.19906 8.93574 8.46313 5.625 13.5005 5.625C18.5378 5.625 22.8019 8.93578 24.2354 13.5C22.8019 18.0643 18.5378 21.375 13.5005 21.375C8.46313 21.375 4.19904 18.0642 2.7655 13.5Z"
|
|
24
|
+
/>
|
|
25
|
+
</Svg>
|
|
26
|
+
);
|
|
27
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconType} from '../../../types/icontype.type';
|
|
6
|
+
|
|
7
|
+
export const FilterIcon = ({color}: IconType) => {
|
|
8
|
+
const context = useContext(ThemeCtx);
|
|
9
|
+
|
|
10
|
+
const d = [
|
|
11
|
+
'M3.25',
|
|
12
|
+
'4.25C3.25',
|
|
13
|
+
'3.69772',
|
|
14
|
+
'3.69772',
|
|
15
|
+
'3.25',
|
|
16
|
+
'4.25',
|
|
17
|
+
'3.25H21.75C22.3023',
|
|
18
|
+
'3.25',
|
|
19
|
+
'22.75',
|
|
20
|
+
'3.69772',
|
|
21
|
+
'22.75',
|
|
22
|
+
'4.25V7.16912C22.75',
|
|
23
|
+
'7.43434',
|
|
24
|
+
'22.6446',
|
|
25
|
+
'7.68869',
|
|
26
|
+
'22.4571',
|
|
27
|
+
'7.87623L15.4596',
|
|
28
|
+
'14.8738C15.272',
|
|
29
|
+
'15.0613',
|
|
30
|
+
'15.1667',
|
|
31
|
+
'15.3157',
|
|
32
|
+
'15.1667',
|
|
33
|
+
'15.5809V18.4167L10.8333',
|
|
34
|
+
'22.75V15.5809C10.8333',
|
|
35
|
+
'15.3157',
|
|
36
|
+
'10.728',
|
|
37
|
+
'15.0613',
|
|
38
|
+
'10.5404',
|
|
39
|
+
'14.8738L3.54289',
|
|
40
|
+
'7.87623C3.35536',
|
|
41
|
+
'7.68869',
|
|
42
|
+
'3.25',
|
|
43
|
+
'7.43434',
|
|
44
|
+
'3.25',
|
|
45
|
+
'7.16912V4.25Z',
|
|
46
|
+
];
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<Svg width="28" height="28" viewBox="0 0 26 26" fill="none">
|
|
50
|
+
<Path
|
|
51
|
+
stroke={color ? color : context.colors.main['0']}
|
|
52
|
+
strokeWidth="2"
|
|
53
|
+
strokeLinecap="round"
|
|
54
|
+
strokeLinejoin="round"
|
|
55
|
+
d={d.join(' ')}
|
|
56
|
+
/>
|
|
57
|
+
</Svg>
|
|
58
|
+
);
|
|
59
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconType} from '../../../types/icontype.type';
|
|
6
|
+
|
|
7
|
+
export const InformationCircleIcon = ({color}: IconType) => {
|
|
8
|
+
const context = useContext(ThemeCtx);
|
|
9
|
+
return (
|
|
10
|
+
<Svg width="28" height="28" viewBox="0 0 26 26" fill="none">
|
|
11
|
+
<Path
|
|
12
|
+
stroke={color ? color : context.colors.main['0']}
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
d="M14.0833 17.3333H13V13H11.9167M13 8.66667H13.0108M22.75 13C22.75 18.3848 18.3848 22.75 13 22.75C7.61522 22.75 3.25 18.3848 3.25 13C3.25 7.61522 7.61522 3.25 13 3.25C18.3848 3.25 22.75 7.61522 22.75 13Z"
|
|
17
|
+
/>
|
|
18
|
+
</Svg>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconType} from '../../../types/icontype.type';
|
|
6
|
+
|
|
7
|
+
export const LogoutIcon = ({color}: IconType) => {
|
|
8
|
+
const context = useContext(ThemeCtx);
|
|
9
|
+
return (
|
|
10
|
+
<Svg width="28" height="28" viewBox="0 0 32 34" fill="none">
|
|
11
|
+
<Path
|
|
12
|
+
stroke={color ? color : context.colors.main['0']}
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
d="M17.3333 11.077L22.6667 16.6155M22.6667 16.6155L17.3333 22.1539M22.6667 16.6155L4 16.6155M10.6667 11.077V9.69238C10.6667 7.39828 12.4575 5.53854 14.6667 5.53854H24C26.2091 5.53854 28 7.39828 28 9.69238L28 23.5385C28 25.8326 26.2091 27.6924 24 27.6924H14.6667C12.4575 27.6924 10.6667 25.8326 10.6667 23.5385V22.1539"
|
|
17
|
+
/>
|
|
18
|
+
</Svg>
|
|
19
|
+
);
|
|
20
|
+
};
|