@tactics/toddle-styleguide 0.1.8 → 0.1.10
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/index.d.ts +3 -1
- package/index.tsx +4 -0
- package/package.json +1 -1
- package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +51 -39
- package/src/components/atoms/filter-tab/__snapshots__/filter-tab.test.js.snap +11 -11
- package/src/components/atoms/filter-tab/filter-tab.styles.js +3 -3
- package/src/components/atoms/message-input/__snapshots__/message-input.test.js.snap +16 -12
- package/src/components/atoms/message-input/message-input.component.tsx +2 -0
- package/src/components/atoms/message-input/message-input.styles.js +3 -3
- package/src/components/atoms/password-input/__snapshots__/password-input.test.js.snap +9 -3
- package/src/components/atoms/password-input/password-input.component.tsx +1 -0
- package/src/components/atoms/password-input/password-input.styles.js +2 -1
- package/src/components/atoms/search/__snapshots__/search.test.js.snap +87 -53
- package/src/components/atoms/search/search.component.tsx +13 -8
- package/src/components/atoms/search/search.styles.d.ts +20 -9
- package/src/components/atoms/search/search.styles.js +20 -8
- package/src/components/atoms/swipe/Swipe.styles.d.ts +5 -5
- package/src/components/atoms/swipe/__snapshots__/swipe.test.js.snap +2 -189
- package/src/components/atoms/swipe/swipe.component.tsx +1 -0
- package/src/components/atoms/text-input/__snapshots__/text-input.test.js.snap +125 -30
- package/src/components/atoms/text-input/text-input.component.d.ts +2 -1
- package/src/components/atoms/text-input/text-input.component.tsx +4 -1
- package/src/components/atoms/text-input/text-input.preview.tsx +12 -1
- package/src/components/atoms/text-input/text-input.styles.d.ts +49 -21
- package/src/components/atoms/text-input/text-input.styles.js +24 -15
- package/src/components/atoms/text-input/text-input.test.js +28 -1
package/index.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ import { DateInput } from './src/components/atoms/date-input/date-input.componen
|
|
|
39
39
|
import { FilterRange } from './src/components/atoms/filter-range/filter-range.component';
|
|
40
40
|
import { Footer } from './src/components/atoms/footer/footer.component';
|
|
41
41
|
import { DefaultSelect } from './src/components/atoms/default-select/default-select.component';
|
|
42
|
+
import { PasswordInput } from './src/components/atoms/password-input/password-input.component';
|
|
43
|
+
import { MessageInput } from './src/components/atoms/message-input/message-input.component';
|
|
42
44
|
import { BubbleAlignment } from './src/types/bubble-alignment.enum';
|
|
43
45
|
import { KeyBoardTypes } from './src/types/keyboard-types.enum';
|
|
44
46
|
import { Size } from './src/types/size.enum';
|
|
@@ -46,4 +48,4 @@ import { VisualState } from './src/types/visual-state.enum';
|
|
|
46
48
|
import { Initials } from './src/models/initials.model';
|
|
47
49
|
import { ThemeCtx } from './src/context/theme.context';
|
|
48
50
|
import { Scale } from './src/theme/scale/index';
|
|
49
|
-
export { Initials, BubbleAlignment, KeyBoardTypes, Size, Scale, VisualState, ThemeCtx, Avatar, Button, CancelLink, Check, Checkbox, ChildListItem, ContactItem, FilterTab, SplitContainer, ImageBubble, Info, Pill, Popover, PressableIcon, QuickFilter, Search, SelectListItem, Snackbar, Tag, TextBubble, TextInput, TimeTracker, WideButton, Icon, Calendar, IncrementInput, Swipe, Logo, DaySelect, BlockedMessage, DepartmentLogo, ContactRole, Timeline, SelectPicker, CalendarSelect, DateInput, FilterRange, Footer, DefaultSelect, };
|
|
51
|
+
export { Initials, BubbleAlignment, KeyBoardTypes, Size, Scale, VisualState, ThemeCtx, Avatar, Button, CancelLink, Check, Checkbox, ChildListItem, ContactItem, FilterTab, SplitContainer, ImageBubble, Info, Pill, Popover, PressableIcon, QuickFilter, Search, SelectListItem, Snackbar, Tag, TextBubble, TextInput, TimeTracker, WideButton, Icon, Calendar, IncrementInput, Swipe, Logo, DaySelect, BlockedMessage, DepartmentLogo, ContactRole, Timeline, SelectPicker, CalendarSelect, DateInput, FilterRange, Footer, DefaultSelect, PasswordInput, MessageInput, };
|
package/index.tsx
CHANGED
|
@@ -47,6 +47,8 @@ import {DateInput} from './src/components/atoms/date-input/date-input.component'
|
|
|
47
47
|
import {FilterRange} from './src/components/atoms/filter-range/filter-range.component';
|
|
48
48
|
import {Footer} from './src/components/atoms/footer/footer.component';
|
|
49
49
|
import {DefaultSelect} from './src/components/atoms/default-select/default-select.component';
|
|
50
|
+
import {PasswordInput} from './src/components/atoms/password-input/password-input.component';
|
|
51
|
+
import {MessageInput} from './src/components/atoms/message-input/message-input.component';
|
|
50
52
|
|
|
51
53
|
// Exports of enums
|
|
52
54
|
import {BubbleAlignment} from './src/types/bubble-alignment.enum';
|
|
@@ -110,4 +112,6 @@ export {
|
|
|
110
112
|
FilterRange,
|
|
111
113
|
Footer,
|
|
112
114
|
DefaultSelect,
|
|
115
|
+
PasswordInput,
|
|
116
|
+
MessageInput,
|
|
113
117
|
};
|
package/package.json
CHANGED
|
@@ -2132,7 +2132,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2132
2132
|
}
|
|
2133
2133
|
>
|
|
2134
2134
|
<View
|
|
2135
|
-
accessibilityLabel="
|
|
2135
|
+
accessibilityLabel=" Donderdag 19 Januari 2023 "
|
|
2136
2136
|
accessibilityRole="button"
|
|
2137
2137
|
accessibilityState={
|
|
2138
2138
|
{
|
|
@@ -2152,10 +2152,6 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2152
2152
|
style={
|
|
2153
2153
|
{
|
|
2154
2154
|
"alignItems": "center",
|
|
2155
|
-
"borderColor": "#7B93DB",
|
|
2156
|
-
"borderRadius": 21,
|
|
2157
|
-
"borderStyle": "solid",
|
|
2158
|
-
"borderWidth": 1,
|
|
2159
2155
|
"height": 42,
|
|
2160
2156
|
"justifyContent": "center",
|
|
2161
2157
|
"opacity": 1,
|
|
@@ -2175,9 +2171,6 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2175
2171
|
"lineHeight": 22.4,
|
|
2176
2172
|
"marginTop": 4,
|
|
2177
2173
|
},
|
|
2178
|
-
{
|
|
2179
|
-
"color": "#7B93DB",
|
|
2180
|
-
},
|
|
2181
2174
|
]
|
|
2182
2175
|
}
|
|
2183
2176
|
>
|
|
@@ -2208,7 +2201,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2208
2201
|
}
|
|
2209
2202
|
>
|
|
2210
2203
|
<View
|
|
2211
|
-
accessibilityLabel="
|
|
2204
|
+
accessibilityLabel=" Vrijdag 20 Januari 2023 "
|
|
2212
2205
|
accessibilityRole="button"
|
|
2213
2206
|
accessibilityState={
|
|
2214
2207
|
{
|
|
@@ -2228,10 +2221,6 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2228
2221
|
style={
|
|
2229
2222
|
{
|
|
2230
2223
|
"alignItems": "center",
|
|
2231
|
-
"borderColor": "#7B93DB",
|
|
2232
|
-
"borderRadius": 21,
|
|
2233
|
-
"borderStyle": "solid",
|
|
2234
|
-
"borderWidth": 1,
|
|
2235
2224
|
"height": 42,
|
|
2236
2225
|
"justifyContent": "center",
|
|
2237
2226
|
"opacity": 1,
|
|
@@ -2251,9 +2240,6 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2251
2240
|
"lineHeight": 22.4,
|
|
2252
2241
|
"marginTop": 4,
|
|
2253
2242
|
},
|
|
2254
|
-
{
|
|
2255
|
-
"color": "#7B93DB",
|
|
2256
|
-
},
|
|
2257
2243
|
]
|
|
2258
2244
|
}
|
|
2259
2245
|
>
|
|
@@ -2432,7 +2418,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2432
2418
|
}
|
|
2433
2419
|
>
|
|
2434
2420
|
<View
|
|
2435
|
-
accessibilityLabel=" Maandag 23 Januari 2023 "
|
|
2421
|
+
accessibilityLabel="today Maandag 23 Januari 2023 "
|
|
2436
2422
|
accessibilityRole="button"
|
|
2437
2423
|
accessibilityState={
|
|
2438
2424
|
{
|
|
@@ -2452,6 +2438,10 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2452
2438
|
style={
|
|
2453
2439
|
{
|
|
2454
2440
|
"alignItems": "center",
|
|
2441
|
+
"borderColor": "#7B93DB",
|
|
2442
|
+
"borderRadius": 21,
|
|
2443
|
+
"borderStyle": "solid",
|
|
2444
|
+
"borderWidth": 1,
|
|
2455
2445
|
"height": 42,
|
|
2456
2446
|
"justifyContent": "center",
|
|
2457
2447
|
"opacity": 1,
|
|
@@ -2471,6 +2461,9 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2471
2461
|
"lineHeight": 22.4,
|
|
2472
2462
|
"marginTop": 4,
|
|
2473
2463
|
},
|
|
2464
|
+
{
|
|
2465
|
+
"color": "#7B93DB",
|
|
2466
|
+
},
|
|
2474
2467
|
]
|
|
2475
2468
|
}
|
|
2476
2469
|
>
|
|
@@ -2501,7 +2494,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2501
2494
|
}
|
|
2502
2495
|
>
|
|
2503
2496
|
<View
|
|
2504
|
-
accessibilityLabel=" Dinsdag 24 Januari 2023 "
|
|
2497
|
+
accessibilityLabel="today Dinsdag 24 Januari 2023 "
|
|
2505
2498
|
accessibilityRole="button"
|
|
2506
2499
|
accessibilityState={
|
|
2507
2500
|
{
|
|
@@ -2521,6 +2514,10 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2521
2514
|
style={
|
|
2522
2515
|
{
|
|
2523
2516
|
"alignItems": "center",
|
|
2517
|
+
"borderColor": "#7B93DB",
|
|
2518
|
+
"borderRadius": 21,
|
|
2519
|
+
"borderStyle": "solid",
|
|
2520
|
+
"borderWidth": 1,
|
|
2524
2521
|
"height": 42,
|
|
2525
2522
|
"justifyContent": "center",
|
|
2526
2523
|
"opacity": 1,
|
|
@@ -2540,6 +2537,9 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2540
2537
|
"lineHeight": 22.4,
|
|
2541
2538
|
"marginTop": 4,
|
|
2542
2539
|
},
|
|
2540
|
+
{
|
|
2541
|
+
"color": "#7B93DB",
|
|
2542
|
+
},
|
|
2543
2543
|
]
|
|
2544
2544
|
}
|
|
2545
2545
|
>
|
|
@@ -2639,7 +2639,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2639
2639
|
}
|
|
2640
2640
|
>
|
|
2641
2641
|
<View
|
|
2642
|
-
accessibilityLabel=" Donderdag 26 Januari 2023 "
|
|
2642
|
+
accessibilityLabel="today Donderdag 26 Januari 2023 "
|
|
2643
2643
|
accessibilityRole="button"
|
|
2644
2644
|
accessibilityState={
|
|
2645
2645
|
{
|
|
@@ -2659,6 +2659,10 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2659
2659
|
style={
|
|
2660
2660
|
{
|
|
2661
2661
|
"alignItems": "center",
|
|
2662
|
+
"borderColor": "#7B93DB",
|
|
2663
|
+
"borderRadius": 21,
|
|
2664
|
+
"borderStyle": "solid",
|
|
2665
|
+
"borderWidth": 1,
|
|
2662
2666
|
"height": 42,
|
|
2663
2667
|
"justifyContent": "center",
|
|
2664
2668
|
"opacity": 1,
|
|
@@ -2678,6 +2682,9 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2678
2682
|
"lineHeight": 22.4,
|
|
2679
2683
|
"marginTop": 4,
|
|
2680
2684
|
},
|
|
2685
|
+
{
|
|
2686
|
+
"color": "#7B93DB",
|
|
2687
|
+
},
|
|
2681
2688
|
]
|
|
2682
2689
|
}
|
|
2683
2690
|
>
|
|
@@ -5583,8 +5590,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5583
5590
|
}
|
|
5584
5591
|
>
|
|
5585
5592
|
<View
|
|
5586
|
-
accessibilityLabel="
|
|
5587
|
-
accessibilityRole="button"
|
|
5593
|
+
accessibilityLabel=" Donderdag 19 Januari 2023 "
|
|
5588
5594
|
accessibilityState={
|
|
5589
5595
|
{
|
|
5590
5596
|
"disabled": false,
|
|
@@ -5603,10 +5609,6 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5603
5609
|
style={
|
|
5604
5610
|
{
|
|
5605
5611
|
"alignItems": "center",
|
|
5606
|
-
"borderColor": "#7B93DB",
|
|
5607
|
-
"borderRadius": 21,
|
|
5608
|
-
"borderStyle": "solid",
|
|
5609
|
-
"borderWidth": 1,
|
|
5610
5612
|
"height": 42,
|
|
5611
5613
|
"justifyContent": "center",
|
|
5612
5614
|
"opacity": 1,
|
|
@@ -5627,7 +5629,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5627
5629
|
"marginTop": 4,
|
|
5628
5630
|
},
|
|
5629
5631
|
{
|
|
5630
|
-
"color": "#
|
|
5632
|
+
"color": "#9AA5B1",
|
|
5631
5633
|
},
|
|
5632
5634
|
]
|
|
5633
5635
|
}
|
|
@@ -5659,8 +5661,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5659
5661
|
}
|
|
5660
5662
|
>
|
|
5661
5663
|
<View
|
|
5662
|
-
accessibilityLabel="
|
|
5663
|
-
accessibilityRole="button"
|
|
5664
|
+
accessibilityLabel=" Vrijdag 20 Januari 2023 "
|
|
5664
5665
|
accessibilityState={
|
|
5665
5666
|
{
|
|
5666
5667
|
"disabled": false,
|
|
@@ -5679,10 +5680,6 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5679
5680
|
style={
|
|
5680
5681
|
{
|
|
5681
5682
|
"alignItems": "center",
|
|
5682
|
-
"borderColor": "#7B93DB",
|
|
5683
|
-
"borderRadius": 21,
|
|
5684
|
-
"borderStyle": "solid",
|
|
5685
|
-
"borderWidth": 1,
|
|
5686
5683
|
"height": 42,
|
|
5687
5684
|
"justifyContent": "center",
|
|
5688
5685
|
"opacity": 1,
|
|
@@ -5703,7 +5700,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5703
5700
|
"marginTop": 4,
|
|
5704
5701
|
},
|
|
5705
5702
|
{
|
|
5706
|
-
"color": "#
|
|
5703
|
+
"color": "#9AA5B1",
|
|
5707
5704
|
},
|
|
5708
5705
|
]
|
|
5709
5706
|
}
|
|
@@ -5887,7 +5884,8 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5887
5884
|
}
|
|
5888
5885
|
>
|
|
5889
5886
|
<View
|
|
5890
|
-
accessibilityLabel=" Maandag 23 Januari 2023 "
|
|
5887
|
+
accessibilityLabel="today Maandag 23 Januari 2023 "
|
|
5888
|
+
accessibilityRole="button"
|
|
5891
5889
|
accessibilityState={
|
|
5892
5890
|
{
|
|
5893
5891
|
"disabled": false,
|
|
@@ -5906,6 +5904,10 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5906
5904
|
style={
|
|
5907
5905
|
{
|
|
5908
5906
|
"alignItems": "center",
|
|
5907
|
+
"borderColor": "#7B93DB",
|
|
5908
|
+
"borderRadius": 21,
|
|
5909
|
+
"borderStyle": "solid",
|
|
5910
|
+
"borderWidth": 1,
|
|
5909
5911
|
"height": 42,
|
|
5910
5912
|
"justifyContent": "center",
|
|
5911
5913
|
"opacity": 1,
|
|
@@ -5926,7 +5928,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5926
5928
|
"marginTop": 4,
|
|
5927
5929
|
},
|
|
5928
5930
|
{
|
|
5929
|
-
"color": "#
|
|
5931
|
+
"color": "#7B93DB",
|
|
5930
5932
|
},
|
|
5931
5933
|
]
|
|
5932
5934
|
}
|
|
@@ -5958,7 +5960,8 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5958
5960
|
}
|
|
5959
5961
|
>
|
|
5960
5962
|
<View
|
|
5961
|
-
accessibilityLabel=" Dinsdag 24 Januari 2023 "
|
|
5963
|
+
accessibilityLabel="today Dinsdag 24 Januari 2023 "
|
|
5964
|
+
accessibilityRole="button"
|
|
5962
5965
|
accessibilityState={
|
|
5963
5966
|
{
|
|
5964
5967
|
"disabled": false,
|
|
@@ -5977,6 +5980,10 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5977
5980
|
style={
|
|
5978
5981
|
{
|
|
5979
5982
|
"alignItems": "center",
|
|
5983
|
+
"borderColor": "#7B93DB",
|
|
5984
|
+
"borderRadius": 21,
|
|
5985
|
+
"borderStyle": "solid",
|
|
5986
|
+
"borderWidth": 1,
|
|
5980
5987
|
"height": 42,
|
|
5981
5988
|
"justifyContent": "center",
|
|
5982
5989
|
"opacity": 1,
|
|
@@ -5997,7 +6004,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5997
6004
|
"marginTop": 4,
|
|
5998
6005
|
},
|
|
5999
6006
|
{
|
|
6000
|
-
"color": "#
|
|
6007
|
+
"color": "#7B93DB",
|
|
6001
6008
|
},
|
|
6002
6009
|
]
|
|
6003
6010
|
}
|
|
@@ -6100,7 +6107,8 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
6100
6107
|
}
|
|
6101
6108
|
>
|
|
6102
6109
|
<View
|
|
6103
|
-
accessibilityLabel=" Donderdag 26 Januari 2023 "
|
|
6110
|
+
accessibilityLabel="today Donderdag 26 Januari 2023 "
|
|
6111
|
+
accessibilityRole="button"
|
|
6104
6112
|
accessibilityState={
|
|
6105
6113
|
{
|
|
6106
6114
|
"disabled": false,
|
|
@@ -6119,6 +6127,10 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
6119
6127
|
style={
|
|
6120
6128
|
{
|
|
6121
6129
|
"alignItems": "center",
|
|
6130
|
+
"borderColor": "#7B93DB",
|
|
6131
|
+
"borderRadius": 21,
|
|
6132
|
+
"borderStyle": "solid",
|
|
6133
|
+
"borderWidth": 1,
|
|
6122
6134
|
"height": 42,
|
|
6123
6135
|
"justifyContent": "center",
|
|
6124
6136
|
"opacity": 1,
|
|
@@ -6139,7 +6151,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
6139
6151
|
"marginTop": 4,
|
|
6140
6152
|
},
|
|
6141
6153
|
{
|
|
6142
|
-
"color": "#
|
|
6154
|
+
"color": "#7B93DB",
|
|
6143
6155
|
},
|
|
6144
6156
|
]
|
|
6145
6157
|
}
|
|
@@ -8,8 +8,8 @@ exports[`Filter tab test renders a filter tab with 2 tabs 1`] = `
|
|
|
8
8
|
"borderRadius": 16,
|
|
9
9
|
"display": "flex",
|
|
10
10
|
"paddingBottom": 4,
|
|
11
|
-
"paddingLeft":
|
|
12
|
-
"paddingRight":
|
|
11
|
+
"paddingLeft": 8,
|
|
12
|
+
"paddingRight": 8,
|
|
13
13
|
"paddingTop": 4,
|
|
14
14
|
"width": "100%",
|
|
15
15
|
}
|
|
@@ -65,7 +65,7 @@ exports[`Filter tab test renders a filter tab with 2 tabs 1`] = `
|
|
|
65
65
|
style={
|
|
66
66
|
[
|
|
67
67
|
{
|
|
68
|
-
"color": "#
|
|
68
|
+
"color": "#19216C",
|
|
69
69
|
"fontFamily": "SourceSansPro",
|
|
70
70
|
"fontSize": 16,
|
|
71
71
|
"lineHeight": 22.4,
|
|
@@ -115,7 +115,7 @@ exports[`Filter tab test renders a filter tab with 2 tabs 1`] = `
|
|
|
115
115
|
style={
|
|
116
116
|
[
|
|
117
117
|
{
|
|
118
|
-
"color": "#
|
|
118
|
+
"color": "#19216C",
|
|
119
119
|
"fontFamily": "SourceSansPro",
|
|
120
120
|
"fontSize": 16,
|
|
121
121
|
"lineHeight": 22.4,
|
|
@@ -161,7 +161,7 @@ exports[`Filter tab test renders a filter tab with 2 tabs 1`] = `
|
|
|
161
161
|
style={
|
|
162
162
|
[
|
|
163
163
|
{
|
|
164
|
-
"color": "#
|
|
164
|
+
"color": "#19216C",
|
|
165
165
|
"fontFamily": "SourceSansPro",
|
|
166
166
|
"fontSize": 16,
|
|
167
167
|
"lineHeight": 22.4,
|
|
@@ -194,8 +194,8 @@ exports[`Filter tab test renders a filter tab with 3 tabs 1`] = `
|
|
|
194
194
|
"borderRadius": 16,
|
|
195
195
|
"display": "flex",
|
|
196
196
|
"paddingBottom": 4,
|
|
197
|
-
"paddingLeft":
|
|
198
|
-
"paddingRight":
|
|
197
|
+
"paddingLeft": 8,
|
|
198
|
+
"paddingRight": 8,
|
|
199
199
|
"paddingTop": 4,
|
|
200
200
|
"width": "100%",
|
|
201
201
|
}
|
|
@@ -251,7 +251,7 @@ exports[`Filter tab test renders a filter tab with 3 tabs 1`] = `
|
|
|
251
251
|
style={
|
|
252
252
|
[
|
|
253
253
|
{
|
|
254
|
-
"color": "#
|
|
254
|
+
"color": "#19216C",
|
|
255
255
|
"fontFamily": "SourceSansPro",
|
|
256
256
|
"fontSize": 16,
|
|
257
257
|
"lineHeight": 22.4,
|
|
@@ -301,7 +301,7 @@ exports[`Filter tab test renders a filter tab with 3 tabs 1`] = `
|
|
|
301
301
|
style={
|
|
302
302
|
[
|
|
303
303
|
{
|
|
304
|
-
"color": "#
|
|
304
|
+
"color": "#19216C",
|
|
305
305
|
"fontFamily": "SourceSansPro",
|
|
306
306
|
"fontSize": 16,
|
|
307
307
|
"lineHeight": 22.4,
|
|
@@ -349,7 +349,7 @@ exports[`Filter tab test renders a filter tab with 3 tabs 1`] = `
|
|
|
349
349
|
style={
|
|
350
350
|
[
|
|
351
351
|
{
|
|
352
|
-
"color": "#
|
|
352
|
+
"color": "#19216C",
|
|
353
353
|
"fontFamily": "SourceSansPro",
|
|
354
354
|
"fontSize": 16,
|
|
355
355
|
"lineHeight": 22.4,
|
|
@@ -395,7 +395,7 @@ exports[`Filter tab test renders a filter tab with 3 tabs 1`] = `
|
|
|
395
395
|
style={
|
|
396
396
|
[
|
|
397
397
|
{
|
|
398
|
-
"color": "#
|
|
398
|
+
"color": "#19216C",
|
|
399
399
|
"fontFamily": "SourceSansPro",
|
|
400
400
|
"fontSize": 16,
|
|
401
401
|
"lineHeight": 22.4,
|
|
@@ -7,8 +7,8 @@ export const Stylesheet = (Context, inRow, ElementWidth, ItemWidth) =>
|
|
|
7
7
|
container: {
|
|
8
8
|
width: '100%',
|
|
9
9
|
display: 'flex',
|
|
10
|
-
paddingRight: Scale.
|
|
11
|
-
paddingLeft: Scale.
|
|
10
|
+
paddingRight: Scale.xs,
|
|
11
|
+
paddingLeft: Scale.xs,
|
|
12
12
|
paddingTop: Scale.xxs,
|
|
13
13
|
paddingBottom: Scale.xxs,
|
|
14
14
|
borderRadius: inRow ? 50 : Scale.m,
|
|
@@ -55,7 +55,7 @@ export const Stylesheet = (Context, inRow, ElementWidth, ItemWidth) =>
|
|
|
55
55
|
...Font.medium,
|
|
56
56
|
width: '100%',
|
|
57
57
|
textAlign: 'center',
|
|
58
|
-
color: Context.colors.
|
|
58
|
+
color: Context.colors.main['0'],
|
|
59
59
|
maxHeight: 32,
|
|
60
60
|
overflow: 'hidden',
|
|
61
61
|
whiteSpace: 'nowrap',
|
|
@@ -11,10 +11,10 @@ exports[`Message Input test render a message text input component with placehold
|
|
|
11
11
|
"borderStyle": "solid",
|
|
12
12
|
"borderWidth": 1,
|
|
13
13
|
"flexDirection": "row",
|
|
14
|
-
"paddingBottom":
|
|
14
|
+
"paddingBottom": 7,
|
|
15
15
|
"paddingLeft": 16,
|
|
16
16
|
"paddingRight": 16,
|
|
17
|
-
"paddingTop":
|
|
17
|
+
"paddingTop": 7,
|
|
18
18
|
"width": "100%",
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -91,9 +91,10 @@ exports[`Message Input test render a message text input component with placehold
|
|
|
91
91
|
multiline={true}
|
|
92
92
|
onChangeText={[Function]}
|
|
93
93
|
placeholder="Placeholder"
|
|
94
|
+
placeholderTextColor="#9AA5B1"
|
|
94
95
|
style={
|
|
95
96
|
{
|
|
96
|
-
"color": "#
|
|
97
|
+
"color": "#1F2933",
|
|
97
98
|
"flex": 1,
|
|
98
99
|
"fontFamily": "SourceSansPro",
|
|
99
100
|
"fontSize": 16,
|
|
@@ -186,10 +187,10 @@ exports[`Message Input test render a message text input component with placehold
|
|
|
186
187
|
"borderStyle": "solid",
|
|
187
188
|
"borderWidth": 1,
|
|
188
189
|
"flexDirection": "row",
|
|
189
|
-
"paddingBottom":
|
|
190
|
+
"paddingBottom": 7,
|
|
190
191
|
"paddingLeft": 16,
|
|
191
192
|
"paddingRight": 16,
|
|
192
|
-
"paddingTop":
|
|
193
|
+
"paddingTop": 7,
|
|
193
194
|
"width": "100%",
|
|
194
195
|
}
|
|
195
196
|
}
|
|
@@ -266,9 +267,10 @@ exports[`Message Input test render a message text input component with placehold
|
|
|
266
267
|
multiline={true}
|
|
267
268
|
onChangeText={[Function]}
|
|
268
269
|
placeholder="Placeholder"
|
|
270
|
+
placeholderTextColor="#9AA5B1"
|
|
269
271
|
style={
|
|
270
272
|
{
|
|
271
|
-
"color": "#
|
|
273
|
+
"color": "#1F2933",
|
|
272
274
|
"flex": 1,
|
|
273
275
|
"fontFamily": "SourceSansPro",
|
|
274
276
|
"fontSize": 16,
|
|
@@ -361,10 +363,10 @@ exports[`Message Input test render a message text input component without placeh
|
|
|
361
363
|
"borderStyle": "solid",
|
|
362
364
|
"borderWidth": 1,
|
|
363
365
|
"flexDirection": "row",
|
|
364
|
-
"paddingBottom":
|
|
366
|
+
"paddingBottom": 7,
|
|
365
367
|
"paddingLeft": 16,
|
|
366
368
|
"paddingRight": 16,
|
|
367
|
-
"paddingTop":
|
|
369
|
+
"paddingTop": 7,
|
|
368
370
|
"width": "100%",
|
|
369
371
|
}
|
|
370
372
|
}
|
|
@@ -440,9 +442,10 @@ exports[`Message Input test render a message text input component without placeh
|
|
|
440
442
|
keyboardType="default"
|
|
441
443
|
multiline={true}
|
|
442
444
|
onChangeText={[Function]}
|
|
445
|
+
placeholderTextColor="#9AA5B1"
|
|
443
446
|
style={
|
|
444
447
|
{
|
|
445
|
-
"color": "#
|
|
448
|
+
"color": "#1F2933",
|
|
446
449
|
"flex": 1,
|
|
447
450
|
"fontFamily": "SourceSansPro",
|
|
448
451
|
"fontSize": 16,
|
|
@@ -535,10 +538,10 @@ exports[`Message Input test render a message text input component without placeh
|
|
|
535
538
|
"borderStyle": "solid",
|
|
536
539
|
"borderWidth": 1,
|
|
537
540
|
"flexDirection": "row",
|
|
538
|
-
"paddingBottom":
|
|
541
|
+
"paddingBottom": 7,
|
|
539
542
|
"paddingLeft": 16,
|
|
540
543
|
"paddingRight": 16,
|
|
541
|
-
"paddingTop":
|
|
544
|
+
"paddingTop": 7,
|
|
542
545
|
"width": "100%",
|
|
543
546
|
}
|
|
544
547
|
}
|
|
@@ -614,9 +617,10 @@ exports[`Message Input test render a message text input component without placeh
|
|
|
614
617
|
keyboardType="email-address"
|
|
615
618
|
multiline={true}
|
|
616
619
|
onChangeText={[Function]}
|
|
620
|
+
placeholderTextColor="#9AA5B1"
|
|
617
621
|
style={
|
|
618
622
|
{
|
|
619
|
-
"color": "#
|
|
623
|
+
"color": "#1F2933",
|
|
620
624
|
"flex": 1,
|
|
621
625
|
"fontFamily": "SourceSansPro",
|
|
622
626
|
"fontSize": 16,
|
|
@@ -23,6 +23,7 @@ const MessageInput = ({
|
|
|
23
23
|
}: MessageInputProps) => {
|
|
24
24
|
const Context = useContext(ThemeCtx);
|
|
25
25
|
const styles = Stylesheet(Context);
|
|
26
|
+
|
|
26
27
|
return (
|
|
27
28
|
<View style={styles.rootContainer}>
|
|
28
29
|
<Pressable onPress={() => console.log('pressed add attachment')}>
|
|
@@ -32,6 +33,7 @@ const MessageInput = ({
|
|
|
32
33
|
style={styles.textInput}
|
|
33
34
|
multiline={true}
|
|
34
35
|
placeholder={placeholder}
|
|
36
|
+
placeholderTextColor={Context.colors.ui.grey}
|
|
35
37
|
onChangeText={onChangeText}
|
|
36
38
|
value={value}
|
|
37
39
|
keyboardType={keyboardType ? keyboardType : KeyBoardTypes.DEFAULT}
|
|
@@ -14,15 +14,15 @@ export const Stylesheet = (context) =>
|
|
|
14
14
|
borderColor: context.colors.ui.lightgrey,
|
|
15
15
|
borderRadius: Scale.xs,
|
|
16
16
|
paddingLeft: Scale.m,
|
|
17
|
-
paddingTop: Scale.xs,
|
|
17
|
+
paddingTop: Scale.xs - 1,
|
|
18
18
|
paddingRight: Scale.m,
|
|
19
|
-
paddingBottom: Scale.xs,
|
|
19
|
+
paddingBottom: Scale.xs - 1,
|
|
20
20
|
},
|
|
21
21
|
textInput: {
|
|
22
22
|
maxHeight: 100,
|
|
23
23
|
flex: 1,
|
|
24
24
|
...Font.medium,
|
|
25
|
-
color: context.colors.ui.
|
|
25
|
+
color: context.colors.ui.black,
|
|
26
26
|
marginLeft: Scale.m,
|
|
27
27
|
marginRight: Scale.m,
|
|
28
28
|
},
|
|
@@ -8,6 +8,7 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
8
8
|
"backgroundColor": "#FFFFFF",
|
|
9
9
|
"borderRadius": 8,
|
|
10
10
|
"flexDirection": "row",
|
|
11
|
+
"height": 44,
|
|
11
12
|
"width": "100%",
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -22,10 +23,11 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
22
23
|
<TextInput
|
|
23
24
|
keyboardType="default"
|
|
24
25
|
onChangeText={[Function]}
|
|
26
|
+
placeholderTextColor="#9AA5B1"
|
|
25
27
|
secureTextEntry={true}
|
|
26
28
|
style={
|
|
27
29
|
{
|
|
28
|
-
"color": "#
|
|
30
|
+
"color": "#1F2933",
|
|
29
31
|
"fontFamily": "SourceSansPro",
|
|
30
32
|
"fontSize": 16,
|
|
31
33
|
"lineHeight": 20,
|
|
@@ -139,6 +141,7 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
139
141
|
"backgroundColor": "#FFFFFF",
|
|
140
142
|
"borderRadius": 8,
|
|
141
143
|
"flexDirection": "row",
|
|
144
|
+
"height": 44,
|
|
142
145
|
"width": "100%",
|
|
143
146
|
}
|
|
144
147
|
}
|
|
@@ -154,10 +157,11 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
154
157
|
keyboardType="default"
|
|
155
158
|
onChangeText={[Function]}
|
|
156
159
|
placeholder="password"
|
|
160
|
+
placeholderTextColor="#9AA5B1"
|
|
157
161
|
secureTextEntry={true}
|
|
158
162
|
style={
|
|
159
163
|
{
|
|
160
|
-
"color": "#
|
|
164
|
+
"color": "#1F2933",
|
|
161
165
|
"fontFamily": "SourceSansPro",
|
|
162
166
|
"fontSize": 16,
|
|
163
167
|
"lineHeight": 20,
|
|
@@ -271,6 +275,7 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
271
275
|
"backgroundColor": "#FFFFFF",
|
|
272
276
|
"borderRadius": 8,
|
|
273
277
|
"flexDirection": "row",
|
|
278
|
+
"height": 44,
|
|
274
279
|
"width": "100%",
|
|
275
280
|
}
|
|
276
281
|
}
|
|
@@ -286,10 +291,11 @@ exports[`Visual test for the password input field shows a password input field w
|
|
|
286
291
|
keyboardType="number-pad"
|
|
287
292
|
onChangeText={[Function]}
|
|
288
293
|
placeholder="number password"
|
|
294
|
+
placeholderTextColor="#9AA5B1"
|
|
289
295
|
secureTextEntry={true}
|
|
290
296
|
style={
|
|
291
297
|
{
|
|
292
|
-
"color": "#
|
|
298
|
+
"color": "#1F2933",
|
|
293
299
|
"fontFamily": "SourceSansPro",
|
|
294
300
|
"fontSize": 16,
|
|
295
301
|
"lineHeight": 20,
|
|
@@ -6,6 +6,7 @@ export const Stylesheet = (Context) =>
|
|
|
6
6
|
StyleSheet.create({
|
|
7
7
|
container: {
|
|
8
8
|
width: '100%',
|
|
9
|
+
height: 44,
|
|
9
10
|
flexDirection: 'row',
|
|
10
11
|
backgroundColor: Context.colors.ui.white,
|
|
11
12
|
borderRadius: Scale.xs,
|
|
@@ -21,7 +22,7 @@ export const Stylesheet = (Context) =>
|
|
|
21
22
|
paddingRight: Scale.m,
|
|
22
23
|
...Font.medium,
|
|
23
24
|
lineHeight: 20,
|
|
24
|
-
color: Context.colors.ui.
|
|
25
|
+
color: Context.colors.ui.black,
|
|
25
26
|
},
|
|
26
27
|
iconContainer: {
|
|
27
28
|
paddingLeft: Scale.m,
|