@terreno/ui 0.14.0 → 0.14.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/dist/ActionSheet.d.ts +1 -1
- package/dist/ActionSheet.js +17 -29
- package/dist/ActionSheet.js.map +1 -1
- package/dist/Common.d.ts +8 -2
- package/dist/Common.js +4 -4
- package/dist/Common.js.map +1 -1
- package/dist/ConsentFormScreen.js +3 -3
- package/dist/ConsentFormScreen.js.map +1 -1
- package/dist/DateUtilities.d.ts +25 -25
- package/dist/DateUtilities.js +31 -32
- package/dist/DateUtilities.js.map +1 -1
- package/dist/MarkdownView.js +20 -7
- package/dist/MarkdownView.js.map +1 -1
- package/dist/MediaQuery.d.ts +4 -4
- package/dist/MediaQuery.js +8 -8
- package/dist/MediaQuery.js.map +1 -1
- package/dist/Page.d.ts +1 -0
- package/dist/Page.js +6 -2
- package/dist/Page.js.map +1 -1
- package/dist/PickerSelect.d.ts +1 -1
- package/dist/PickerSelect.js +2 -2
- package/dist/PickerSelect.js.map +1 -1
- package/dist/TapToEdit.d.ts +1 -1
- package/dist/TapToEdit.js +2 -3
- package/dist/TapToEdit.js.map +1 -1
- package/dist/ToastNotifications.js +2 -2
- package/dist/ToastNotifications.js.map +1 -1
- package/dist/Tooltip.d.ts +24 -1
- package/dist/Tooltip.js +2 -2
- package/dist/Tooltip.js.map +1 -1
- package/dist/Unifier.d.ts +1 -1
- package/dist/Unifier.js +14 -11
- package/dist/Unifier.js.map +1 -1
- package/dist/Utilities.d.ts +8 -8
- package/dist/Utilities.js +12 -14
- package/dist/Utilities.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/signUp/PasswordRequirements.js +3 -3
- package/dist/signUp/PasswordRequirements.js.map +1 -1
- package/dist/table/TableHeaderCell.js +1 -9
- package/dist/table/TableHeaderCell.js.map +1 -1
- package/dist/table/tableContext.d.ts +1 -1
- package/dist/table/tableContext.js +2 -2
- package/dist/table/tableContext.js.map +1 -1
- package/dist/useConsentHistory.d.ts +6 -1
- package/dist/useConsentHistory.js +2 -1
- package/dist/useConsentHistory.js.map +1 -1
- package/package.json +1 -1
- package/src/ActionSheet.test.tsx +554 -0
- package/src/ActionSheet.tsx +26 -39
- package/src/Banner.test.tsx +107 -1
- package/src/Common.ts +10 -4
- package/src/ConsentFormScreen.test.tsx +22 -0
- package/src/ConsentFormScreen.tsx +9 -3
- package/src/DataTable.test.tsx +393 -1
- package/src/DateTimeField.test.tsx +716 -2
- package/src/DateUtilities.tsx +37 -38
- package/src/HeightActionSheet.test.tsx +17 -1
- package/src/HeightField.test.tsx +141 -1
- package/src/HeightFieldDesktop.test.tsx +19 -0
- package/src/MarkdownView.test.tsx +28 -0
- package/src/MarkdownView.tsx +69 -7
- package/src/MediaQuery.ts +8 -8
- package/src/MobileAddressAutoComplete.test.tsx +26 -3
- package/src/Page.test.tsx +28 -0
- package/src/Page.tsx +17 -2
- package/src/PickerSelect.test.tsx +243 -0
- package/src/PickerSelect.tsx +3 -3
- package/src/SplitPage.test.tsx +299 -43
- package/src/TapToEdit.test.tsx +44 -0
- package/src/TapToEdit.tsx +2 -3
- package/src/ToastNotifications.test.tsx +1412 -0
- package/src/ToastNotifications.tsx +2 -2
- package/src/Tooltip.test.tsx +1294 -3
- package/src/Tooltip.tsx +2 -2
- package/src/Unifier.ts +14 -11
- package/src/Utilities.tsx +14 -16
- package/src/WebAddressAutocomplete.test.tsx +237 -0
- package/src/WebDropdownMenu.test.tsx +51 -2
- package/src/__snapshots__/Banner.test.tsx.snap +125 -0
- package/src/__snapshots__/DataTable.test.tsx.snap +366 -0
- package/src/__snapshots__/MarkdownView.test.tsx.snap +284 -74
- package/src/__snapshots__/SplitPage.test.tsx.snap +698 -46
- package/src/bunSetup.ts +0 -4
- package/src/index.tsx +1 -1
- package/src/login/LoginScreen.test.tsx +35 -1
- package/src/signUp/PasswordRequirements.tsx +9 -6
- package/src/signUp/__snapshots__/PasswordRequirements.test.tsx.snap +50 -2
- package/src/signUp/__snapshots__/SignUpScreen.test.tsx.snap +25 -1
- package/src/table/TableHeaderCell.tsx +8 -11
- package/src/table/TableRow.test.tsx +31 -1
- package/src/table/__snapshots__/TableHeaderCell.test.tsx.snap +2 -0
- package/src/table/tableContext.tsx +2 -2
- package/src/useConsentHistory.test.ts +20 -13
- package/src/useConsentHistory.ts +7 -2
- package/src/useStoredState.test.tsx +47 -0
|
@@ -9498,3 +9498,369 @@ exports[`DataTable renders empty data 1`] = `
|
|
|
9498
9498
|
"type": "View",
|
|
9499
9499
|
}
|
|
9500
9500
|
`;
|
|
9501
|
+
|
|
9502
|
+
exports[`DataTable renders with custom column component map 1`] = `
|
|
9503
|
+
{
|
|
9504
|
+
"$$typeof": Symbol(react.test.json),
|
|
9505
|
+
"children": [
|
|
9506
|
+
{
|
|
9507
|
+
"$$typeof": Symbol(react.test.json),
|
|
9508
|
+
"children": [
|
|
9509
|
+
{
|
|
9510
|
+
"$$typeof": Symbol(react.test.json),
|
|
9511
|
+
"children": [
|
|
9512
|
+
{
|
|
9513
|
+
"$$typeof": Symbol(react.test.json),
|
|
9514
|
+
"children": [
|
|
9515
|
+
{
|
|
9516
|
+
"$$typeof": Symbol(react.test.json),
|
|
9517
|
+
"children": [
|
|
9518
|
+
{
|
|
9519
|
+
"$$typeof": Symbol(react.test.json),
|
|
9520
|
+
"children": [
|
|
9521
|
+
"Custom",
|
|
9522
|
+
],
|
|
9523
|
+
"props": {
|
|
9524
|
+
"aria-label": "Table title: Custom",
|
|
9525
|
+
"aria-role": "header",
|
|
9526
|
+
"ellipsizeMode": "tail",
|
|
9527
|
+
"numberOfLines": 3,
|
|
9528
|
+
"style": {
|
|
9529
|
+
"color": "#1C1C1C",
|
|
9530
|
+
"flexWrap": "wrap",
|
|
9531
|
+
"fontFamily": "text",
|
|
9532
|
+
"fontSize": 10,
|
|
9533
|
+
"fontWeight": "700",
|
|
9534
|
+
"lineHeight": 16,
|
|
9535
|
+
"overflow": "hidden",
|
|
9536
|
+
"textAlign": "left",
|
|
9537
|
+
"textTransform": "uppercase",
|
|
9538
|
+
},
|
|
9539
|
+
},
|
|
9540
|
+
"type": "Text",
|
|
9541
|
+
},
|
|
9542
|
+
{
|
|
9543
|
+
"$$typeof": Symbol(react.test.json),
|
|
9544
|
+
"children": null,
|
|
9545
|
+
"props": {
|
|
9546
|
+
"style": {
|
|
9547
|
+
"alignItems": "center",
|
|
9548
|
+
"flexDirection": "row",
|
|
9549
|
+
},
|
|
9550
|
+
"testID": undefined,
|
|
9551
|
+
},
|
|
9552
|
+
"type": "View",
|
|
9553
|
+
},
|
|
9554
|
+
],
|
|
9555
|
+
"props": {
|
|
9556
|
+
"style": {
|
|
9557
|
+
"alignItems": "center",
|
|
9558
|
+
"backgroundColor": "#FFFFFF",
|
|
9559
|
+
"borderBottomColor": "#CDCDCD",
|
|
9560
|
+
"borderBottomWidth": 1,
|
|
9561
|
+
"flexDirection": "row",
|
|
9562
|
+
"height": 54,
|
|
9563
|
+
"justifyContent": "space-between",
|
|
9564
|
+
"padding": 16,
|
|
9565
|
+
"width": 100,
|
|
9566
|
+
},
|
|
9567
|
+
"testID": undefined,
|
|
9568
|
+
},
|
|
9569
|
+
"type": "View",
|
|
9570
|
+
},
|
|
9571
|
+
{
|
|
9572
|
+
"$$typeof": Symbol(react.test.json),
|
|
9573
|
+
"children": [
|
|
9574
|
+
{
|
|
9575
|
+
"$$typeof": Symbol(react.test.json),
|
|
9576
|
+
"children": [
|
|
9577
|
+
"Name",
|
|
9578
|
+
],
|
|
9579
|
+
"props": {
|
|
9580
|
+
"aria-label": "Table title: Name",
|
|
9581
|
+
"aria-role": "header",
|
|
9582
|
+
"ellipsizeMode": "tail",
|
|
9583
|
+
"numberOfLines": 3,
|
|
9584
|
+
"style": {
|
|
9585
|
+
"color": "#1C1C1C",
|
|
9586
|
+
"flexWrap": "wrap",
|
|
9587
|
+
"fontFamily": "text",
|
|
9588
|
+
"fontSize": 10,
|
|
9589
|
+
"fontWeight": "700",
|
|
9590
|
+
"lineHeight": 16,
|
|
9591
|
+
"overflow": "hidden",
|
|
9592
|
+
"textAlign": "left",
|
|
9593
|
+
"textTransform": "uppercase",
|
|
9594
|
+
},
|
|
9595
|
+
},
|
|
9596
|
+
"type": "Text",
|
|
9597
|
+
},
|
|
9598
|
+
{
|
|
9599
|
+
"$$typeof": Symbol(react.test.json),
|
|
9600
|
+
"children": null,
|
|
9601
|
+
"props": {
|
|
9602
|
+
"style": {
|
|
9603
|
+
"alignItems": "center",
|
|
9604
|
+
"flexDirection": "row",
|
|
9605
|
+
},
|
|
9606
|
+
"testID": undefined,
|
|
9607
|
+
},
|
|
9608
|
+
"type": "View",
|
|
9609
|
+
},
|
|
9610
|
+
],
|
|
9611
|
+
"props": {
|
|
9612
|
+
"style": {
|
|
9613
|
+
"alignItems": "center",
|
|
9614
|
+
"backgroundColor": "#FFFFFF",
|
|
9615
|
+
"borderBottomColor": "#CDCDCD",
|
|
9616
|
+
"borderBottomWidth": 1,
|
|
9617
|
+
"flexDirection": "row",
|
|
9618
|
+
"height": 54,
|
|
9619
|
+
"justifyContent": "space-between",
|
|
9620
|
+
"padding": 16,
|
|
9621
|
+
"width": 100,
|
|
9622
|
+
},
|
|
9623
|
+
"testID": undefined,
|
|
9624
|
+
},
|
|
9625
|
+
"type": "View",
|
|
9626
|
+
},
|
|
9627
|
+
],
|
|
9628
|
+
"props": {
|
|
9629
|
+
"horizontal": true,
|
|
9630
|
+
"onScroll": [Function],
|
|
9631
|
+
"ref": {
|
|
9632
|
+
"current": null,
|
|
9633
|
+
},
|
|
9634
|
+
"scrollEventThrottle": 16,
|
|
9635
|
+
"showsHorizontalScrollIndicator": false,
|
|
9636
|
+
"style": {
|
|
9637
|
+
"marginLeft": 0,
|
|
9638
|
+
},
|
|
9639
|
+
},
|
|
9640
|
+
"type": "ScrollView",
|
|
9641
|
+
},
|
|
9642
|
+
],
|
|
9643
|
+
"props": {
|
|
9644
|
+
"style": {
|
|
9645
|
+
"flexDirection": "row",
|
|
9646
|
+
"position": "relative",
|
|
9647
|
+
},
|
|
9648
|
+
"testID": undefined,
|
|
9649
|
+
},
|
|
9650
|
+
"type": "View",
|
|
9651
|
+
},
|
|
9652
|
+
{
|
|
9653
|
+
"$$typeof": Symbol(react.test.json),
|
|
9654
|
+
"children": [
|
|
9655
|
+
{
|
|
9656
|
+
"$$typeof": Symbol(react.test.json),
|
|
9657
|
+
"children": [
|
|
9658
|
+
{
|
|
9659
|
+
"$$typeof": Symbol(react.test.json),
|
|
9660
|
+
"children": [
|
|
9661
|
+
{
|
|
9662
|
+
"$$typeof": Symbol(react.test.json),
|
|
9663
|
+
"children": [
|
|
9664
|
+
{
|
|
9665
|
+
"$$typeof": Symbol(react.test.json),
|
|
9666
|
+
"children": [
|
|
9667
|
+
{
|
|
9668
|
+
"$$typeof": Symbol(react.test.json),
|
|
9669
|
+
"children": [
|
|
9670
|
+
{
|
|
9671
|
+
"$$typeof": Symbol(react.test.json),
|
|
9672
|
+
"children": [
|
|
9673
|
+
{
|
|
9674
|
+
"$$typeof": Symbol(react.test.json),
|
|
9675
|
+
"children": [
|
|
9676
|
+
{
|
|
9677
|
+
"$$typeof": Symbol(react.test.json),
|
|
9678
|
+
"children": [
|
|
9679
|
+
"Custom",
|
|
9680
|
+
],
|
|
9681
|
+
"props": {
|
|
9682
|
+
"numberOfLines": 0,
|
|
9683
|
+
"selectable": undefined,
|
|
9684
|
+
"style": {
|
|
9685
|
+
"color": "#1C1C1C",
|
|
9686
|
+
"fontFamily": "text-regular",
|
|
9687
|
+
"fontSize": 14,
|
|
9688
|
+
"textAlign": "left",
|
|
9689
|
+
},
|
|
9690
|
+
"testID": undefined,
|
|
9691
|
+
},
|
|
9692
|
+
"type": "Text",
|
|
9693
|
+
},
|
|
9694
|
+
],
|
|
9695
|
+
"props": {},
|
|
9696
|
+
"type": "View",
|
|
9697
|
+
},
|
|
9698
|
+
],
|
|
9699
|
+
"props": {
|
|
9700
|
+
"style": {
|
|
9701
|
+
"backgroundColor": "#FFFFFF",
|
|
9702
|
+
"borderBottomColor": "#CDCDCD",
|
|
9703
|
+
"borderBottomWidth": 1,
|
|
9704
|
+
"height": 54,
|
|
9705
|
+
"justifyContent": "center",
|
|
9706
|
+
"overflow": "hidden",
|
|
9707
|
+
"padding": 16,
|
|
9708
|
+
"position": "relative",
|
|
9709
|
+
"width": 100,
|
|
9710
|
+
"zIndex": 1,
|
|
9711
|
+
},
|
|
9712
|
+
"testID": undefined,
|
|
9713
|
+
},
|
|
9714
|
+
"type": "View",
|
|
9715
|
+
},
|
|
9716
|
+
{
|
|
9717
|
+
"$$typeof": Symbol(react.test.json),
|
|
9718
|
+
"children": [
|
|
9719
|
+
{
|
|
9720
|
+
"$$typeof": Symbol(react.test.json),
|
|
9721
|
+
"children": [
|
|
9722
|
+
{
|
|
9723
|
+
"$$typeof": Symbol(react.test.json),
|
|
9724
|
+
"children": [
|
|
9725
|
+
{
|
|
9726
|
+
"$$typeof": Symbol(react.test.json),
|
|
9727
|
+
"children": [
|
|
9728
|
+
"Alice",
|
|
9729
|
+
],
|
|
9730
|
+
"props": {
|
|
9731
|
+
"numberOfLines": 0,
|
|
9732
|
+
"selectable": undefined,
|
|
9733
|
+
"style": {
|
|
9734
|
+
"color": "#1C1C1C",
|
|
9735
|
+
"fontFamily": "text-regular",
|
|
9736
|
+
"fontSize": 14,
|
|
9737
|
+
"textAlign": "left",
|
|
9738
|
+
},
|
|
9739
|
+
"testID": undefined,
|
|
9740
|
+
},
|
|
9741
|
+
"type": "Text",
|
|
9742
|
+
},
|
|
9743
|
+
],
|
|
9744
|
+
"props": {},
|
|
9745
|
+
"type": "View",
|
|
9746
|
+
},
|
|
9747
|
+
],
|
|
9748
|
+
"props": {
|
|
9749
|
+
"onPointerEnter": [Function: AsyncFunction],
|
|
9750
|
+
"onPointerLeave": [Function: AsyncFunction],
|
|
9751
|
+
"style": {
|
|
9752
|
+
"display": "flex",
|
|
9753
|
+
"flexGrow": 1,
|
|
9754
|
+
"flexShrink": 1,
|
|
9755
|
+
"justifyContent": "center",
|
|
9756
|
+
},
|
|
9757
|
+
"testID": undefined,
|
|
9758
|
+
},
|
|
9759
|
+
"type": "View",
|
|
9760
|
+
},
|
|
9761
|
+
],
|
|
9762
|
+
"props": {
|
|
9763
|
+
"style": {
|
|
9764
|
+
"backgroundColor": "#FFFFFF",
|
|
9765
|
+
"borderBottomColor": "#CDCDCD",
|
|
9766
|
+
"borderBottomWidth": 1,
|
|
9767
|
+
"height": 54,
|
|
9768
|
+
"justifyContent": "center",
|
|
9769
|
+
"overflow": "hidden",
|
|
9770
|
+
"padding": 16,
|
|
9771
|
+
"position": "relative",
|
|
9772
|
+
"width": 100,
|
|
9773
|
+
"zIndex": 1,
|
|
9774
|
+
},
|
|
9775
|
+
"testID": undefined,
|
|
9776
|
+
},
|
|
9777
|
+
"type": "View",
|
|
9778
|
+
},
|
|
9779
|
+
],
|
|
9780
|
+
"props": {
|
|
9781
|
+
"style": {
|
|
9782
|
+
"borderBottomColor": "#CDCDCD",
|
|
9783
|
+
"borderBottomWidth": 1,
|
|
9784
|
+
"flexDirection": "row",
|
|
9785
|
+
"height": 54,
|
|
9786
|
+
},
|
|
9787
|
+
"testID": undefined,
|
|
9788
|
+
},
|
|
9789
|
+
"type": "View",
|
|
9790
|
+
},
|
|
9791
|
+
],
|
|
9792
|
+
"props": {
|
|
9793
|
+
"style": undefined,
|
|
9794
|
+
"testID": undefined,
|
|
9795
|
+
},
|
|
9796
|
+
"type": "View",
|
|
9797
|
+
},
|
|
9798
|
+
],
|
|
9799
|
+
"props": {
|
|
9800
|
+
"horizontal": true,
|
|
9801
|
+
"onScroll": [Function],
|
|
9802
|
+
"ref": {
|
|
9803
|
+
"current": null,
|
|
9804
|
+
},
|
|
9805
|
+
"scrollEventThrottle": 16,
|
|
9806
|
+
"showsHorizontalScrollIndicator": true,
|
|
9807
|
+
"style": {
|
|
9808
|
+
"flex": 1,
|
|
9809
|
+
"marginLeft": 0,
|
|
9810
|
+
},
|
|
9811
|
+
},
|
|
9812
|
+
"type": "ScrollView",
|
|
9813
|
+
},
|
|
9814
|
+
],
|
|
9815
|
+
"props": {
|
|
9816
|
+
"style": {
|
|
9817
|
+
"flexDirection": "row",
|
|
9818
|
+
"position": "relative",
|
|
9819
|
+
},
|
|
9820
|
+
"testID": undefined,
|
|
9821
|
+
},
|
|
9822
|
+
"type": "View",
|
|
9823
|
+
},
|
|
9824
|
+
],
|
|
9825
|
+
"props": {
|
|
9826
|
+
"style": {
|
|
9827
|
+
"flex": 1,
|
|
9828
|
+
},
|
|
9829
|
+
},
|
|
9830
|
+
"type": "ScrollView",
|
|
9831
|
+
},
|
|
9832
|
+
],
|
|
9833
|
+
"props": {
|
|
9834
|
+
"style": {
|
|
9835
|
+
"flex": 1,
|
|
9836
|
+
"minHeight": 0,
|
|
9837
|
+
},
|
|
9838
|
+
"testID": undefined,
|
|
9839
|
+
},
|
|
9840
|
+
"type": "View",
|
|
9841
|
+
},
|
|
9842
|
+
],
|
|
9843
|
+
"props": {
|
|
9844
|
+
"style": {
|
|
9845
|
+
"borderColor": "#CDCDCD",
|
|
9846
|
+
"borderWidth": 1,
|
|
9847
|
+
"flex": 1,
|
|
9848
|
+
"height": "100%",
|
|
9849
|
+
"minHeight": 0,
|
|
9850
|
+
},
|
|
9851
|
+
"testID": undefined,
|
|
9852
|
+
},
|
|
9853
|
+
"type": "View",
|
|
9854
|
+
},
|
|
9855
|
+
],
|
|
9856
|
+
"props": {
|
|
9857
|
+
"style": {
|
|
9858
|
+
"display": "flex",
|
|
9859
|
+
"flexDirection": "column",
|
|
9860
|
+
"height": "100%",
|
|
9861
|
+
},
|
|
9862
|
+
"testID": undefined,
|
|
9863
|
+
},
|
|
9864
|
+
"type": "View",
|
|
9865
|
+
}
|
|
9866
|
+
`;
|