@terreno/ui 56.0.0-beta.2 → 57.0.0-beta.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.
Files changed (69) hide show
  1. package/dist/Badge.d.ts +1 -1
  2. package/dist/Badge.js +37 -1
  3. package/dist/Badge.js.map +1 -1
  4. package/dist/Common.d.ts +110 -3
  5. package/dist/Common.js.map +1 -1
  6. package/dist/Filter.d.ts +13 -0
  7. package/dist/Filter.js +120 -0
  8. package/dist/Filter.js.map +1 -0
  9. package/dist/FilterAccordion.d.ts +8 -0
  10. package/dist/FilterAccordion.js +59 -0
  11. package/dist/FilterAccordion.js.map +1 -0
  12. package/dist/FilterBoolean.d.ts +8 -0
  13. package/dist/FilterBoolean.js +74 -0
  14. package/dist/FilterBoolean.js.map +1 -0
  15. package/dist/FilterChangesBadge.d.ts +8 -0
  16. package/dist/FilterChangesBadge.js +11 -0
  17. package/dist/FilterChangesBadge.js.map +1 -0
  18. package/dist/FilterSelectMenu.d.ts +8 -0
  19. package/dist/FilterSelectMenu.js +37 -0
  20. package/dist/FilterSelectMenu.js.map +1 -0
  21. package/dist/IconRegistry.js +11 -6
  22. package/dist/IconRegistry.js.map +1 -1
  23. package/dist/PickerSelect.d.ts +8 -1
  24. package/dist/PickerSelect.js +2 -2
  25. package/dist/PickerSelect.js.map +1 -1
  26. package/dist/SelectField.js +2 -2
  27. package/dist/SelectField.js.map +1 -1
  28. package/dist/Theme.js +2 -0
  29. package/dist/Theme.js.map +1 -1
  30. package/dist/WebDropdownMenu.d.ts +5 -1
  31. package/dist/WebDropdownMenu.js +24 -10
  32. package/dist/WebDropdownMenu.js.map +1 -1
  33. package/dist/icons/BarsFilterIcon.d.ts +9 -0
  34. package/dist/icons/BarsFilterIcon.js +12 -0
  35. package/dist/icons/BarsFilterIcon.js.map +1 -0
  36. package/dist/index.d.ts +6 -0
  37. package/dist/index.js +6 -0
  38. package/dist/index.js.map +1 -1
  39. package/package.json +23 -23
  40. package/src/Badge.test.tsx +22 -1
  41. package/src/Badge.tsx +43 -0
  42. package/src/Common.ts +120 -5
  43. package/src/DateTimeField.test.tsx +16 -18
  44. package/src/Filter.test.tsx +94 -0
  45. package/src/Filter.tsx +257 -0
  46. package/src/FilterAccordion.test.tsx +58 -0
  47. package/src/FilterAccordion.tsx +113 -0
  48. package/src/FilterBoolean.test.tsx +65 -0
  49. package/src/FilterBoolean.tsx +130 -0
  50. package/src/FilterChangesBadge.test.tsx +16 -0
  51. package/src/FilterChangesBadge.tsx +13 -0
  52. package/src/FilterSelectMenu.test.tsx +56 -0
  53. package/src/FilterSelectMenu.tsx +76 -0
  54. package/src/IconRegistry.test.tsx +6 -4
  55. package/src/IconRegistry.tsx +13 -8
  56. package/src/PickerSelect.test.tsx +20 -0
  57. package/src/PickerSelect.tsx +10 -0
  58. package/src/SelectField.tsx +2 -0
  59. package/src/Theme.tsx +2 -0
  60. package/src/WebDropdownMenu.test.tsx +86 -1
  61. package/src/WebDropdownMenu.tsx +43 -21
  62. package/src/__snapshots__/Filter.test.tsx.snap +161 -0
  63. package/src/__snapshots__/FilterAccordion.test.tsx.snap +83 -0
  64. package/src/__snapshots__/FilterBoolean.test.tsx.snap +109 -0
  65. package/src/__snapshots__/FilterChangesBadge.test.tsx.snap +18 -0
  66. package/src/__snapshots__/FilterSelectMenu.test.tsx.snap +359 -0
  67. package/src/conflictFieldDiff.test.ts +43 -0
  68. package/src/icons/BarsFilterIcon.tsx +18 -0
  69. package/src/index.tsx +6 -0
@@ -0,0 +1,161 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`Filter renders correctly with default props 1`] = `
4
+ {
5
+ "$$typeof": Symbol(react.test.json),
6
+ "children": [
7
+ {
8
+ "$$typeof": Symbol(react.test.json),
9
+ "children": [
10
+ {
11
+ "$$typeof": Symbol(react.test.json),
12
+ "children": [
13
+ {
14
+ "$$typeof": Symbol(react.test.json),
15
+ "children": [
16
+ {
17
+ "$$typeof": Symbol(react.test.json),
18
+ "children": [
19
+ {
20
+ "$$typeof": Symbol(react.test.json),
21
+ "children": [
22
+ {
23
+ "$$typeof": Symbol(react.test.json),
24
+ "children": [
25
+ {
26
+ "$$typeof": Symbol(react.test.json),
27
+ "children": null,
28
+ "props": {
29
+ "height": 56,
30
+ "rx": 28,
31
+ "width": 512,
32
+ "x": 0,
33
+ "y": 120,
34
+ },
35
+ "type": "Rect",
36
+ },
37
+ {
38
+ "$$typeof": Symbol(react.test.json),
39
+ "children": null,
40
+ "props": {
41
+ "height": 56,
42
+ "rx": 28,
43
+ "width": 320,
44
+ "x": 96,
45
+ "y": 228,
46
+ },
47
+ "type": "Rect",
48
+ },
49
+ {
50
+ "$$typeof": Symbol(react.test.json),
51
+ "children": null,
52
+ "props": {
53
+ "height": 56,
54
+ "rx": 28,
55
+ "width": 160,
56
+ "x": 176,
57
+ "y": 336,
58
+ },
59
+ "type": "Rect",
60
+ },
61
+ ],
62
+ "props": {
63
+ "fill": "#FFFFFF",
64
+ "height": 16,
65
+ "testID": undefined,
66
+ "viewBox": "0 0 512 512",
67
+ "width": 16,
68
+ },
69
+ "type": "Svg",
70
+ },
71
+ ],
72
+ "props": {
73
+ "style": {
74
+ "alignSelf": "center",
75
+ "marginLeft": 0,
76
+ "marginRight": 8,
77
+ },
78
+ "testID": undefined,
79
+ },
80
+ "type": "View",
81
+ },
82
+ {
83
+ "$$typeof": Symbol(react.test.json),
84
+ "children": [
85
+ "Filter",
86
+ ],
87
+ "props": {
88
+ "style": {
89
+ "color": "#FFFFFF",
90
+ "fontSize": 16,
91
+ "fontWeight": "700",
92
+ },
93
+ },
94
+ "type": "Text",
95
+ },
96
+ ],
97
+ "props": {
98
+ "style": {
99
+ "flexDirection": "row",
100
+ },
101
+ "testID": undefined,
102
+ },
103
+ "type": "View",
104
+ },
105
+ ],
106
+ "props": {
107
+ "style": {
108
+ "flexDirection": "row",
109
+ },
110
+ "testID": undefined,
111
+ },
112
+ "type": "View",
113
+ },
114
+ ],
115
+ "props": {
116
+ "accessibilityHint": "Press to perform action",
117
+ "accessibilityLabel": "Filter",
118
+ "accessibilityRole": "button",
119
+ "accessibilityState": {
120
+ "disabled": false,
121
+ },
122
+ "disabled": false,
123
+ "onPress": [Function: debounced],
124
+ "style": {
125
+ "alignItems": "center",
126
+ "alignSelf": "flex-start",
127
+ "backgroundColor": "#0E9DCD",
128
+ "borderColor": undefined,
129
+ "borderRadius": 360,
130
+ "borderWidth": undefined,
131
+ "flexDirection": "column",
132
+ "height": undefined,
133
+ "justifyContent": "center",
134
+ "paddingHorizontal": 20,
135
+ "paddingVertical": 8,
136
+ "width": "auto",
137
+ },
138
+ "testID": undefined,
139
+ },
140
+ "type": "PressableScale",
141
+ },
142
+ ],
143
+ "props": {
144
+ "ref": {
145
+ "current": null,
146
+ },
147
+ "style": undefined,
148
+ "testID": undefined,
149
+ },
150
+ "type": "View",
151
+ },
152
+ ],
153
+ "props": {
154
+ "style": {
155
+ "position": "relative",
156
+ },
157
+ "testID": undefined,
158
+ },
159
+ "type": "View",
160
+ }
161
+ `;
@@ -0,0 +1,83 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`FilterAccordion renders correctly with default props 1`] = `
4
+ {
5
+ "$$typeof": Symbol(react.test.json),
6
+ "children": [
7
+ {
8
+ "$$typeof": Symbol(react.test.json),
9
+ "children": [
10
+ {
11
+ "$$typeof": Symbol(react.test.json),
12
+ "children": [
13
+ {
14
+ "$$typeof": Symbol(react.test.json),
15
+ "children": [
16
+ {
17
+ "$$typeof": Symbol(react.test.json),
18
+ "children": [
19
+ "Status",
20
+ ],
21
+ "props": {
22
+ "numberOfLines": 0,
23
+ "selectable": undefined,
24
+ "style": {
25
+ "color": "#1C1C1C",
26
+ "fontFamily": "text-regular",
27
+ "fontSize": 14,
28
+ "textAlign": "left",
29
+ },
30
+ "testID": undefined,
31
+ },
32
+ "type": "Text",
33
+ },
34
+ ],
35
+ "props": {},
36
+ "type": "View",
37
+ },
38
+ ],
39
+ "props": {
40
+ "style": {
41
+ "alignItems": "center",
42
+ "flex": 1,
43
+ "flexDirection": "row",
44
+ "gap": 6,
45
+ },
46
+ "testID": undefined,
47
+ },
48
+ "type": "View",
49
+ },
50
+ ],
51
+ "props": {
52
+ "accessibilityRole": "button",
53
+ "accessibilityState": {
54
+ "expanded": false,
55
+ },
56
+ "aria-expanded": false,
57
+ "onHoverIn": [Function],
58
+ "onHoverOut": [Function],
59
+ "onKeyDown": [Function],
60
+ "onPress": [Function],
61
+ "style": {
62
+ "alignItems": "center",
63
+ "flexDirection": "row",
64
+ "justifyContent": "space-between",
65
+ },
66
+ "testID": undefined,
67
+ },
68
+ "type": "Pressable",
69
+ },
70
+ ],
71
+ "props": {
72
+ "style": {
73
+ "backgroundColor": "#FFFFFF",
74
+ "borderRadius": 4,
75
+ "gap": 16,
76
+ "paddingHorizontal": 8,
77
+ "paddingVertical": 12,
78
+ },
79
+ "testID": undefined,
80
+ },
81
+ "type": "View",
82
+ }
83
+ `;
@@ -0,0 +1,109 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`FilterBoolean renders correctly with default props 1`] = `
4
+ {
5
+ "$$typeof": Symbol(react.test.json),
6
+ "children": [
7
+ {
8
+ "$$typeof": Symbol(react.test.json),
9
+ "children": [
10
+ {
11
+ "$$typeof": Symbol(react.test.json),
12
+ "children": [
13
+ {
14
+ "$$typeof": Symbol(react.test.json),
15
+ "children": [
16
+ "Urgent only",
17
+ ],
18
+ "props": {
19
+ "numberOfLines": 0,
20
+ "selectable": undefined,
21
+ "style": {
22
+ "color": "#1C1C1C",
23
+ "fontFamily": "text-regular",
24
+ "fontSize": 14,
25
+ "textAlign": "left",
26
+ },
27
+ "testID": undefined,
28
+ },
29
+ "type": "Text",
30
+ },
31
+ ],
32
+ "props": {},
33
+ "type": "View",
34
+ },
35
+ ],
36
+ "props": {
37
+ "style": {
38
+ "alignItems": "center",
39
+ "flexDirection": "row",
40
+ "gap": 6,
41
+ },
42
+ "testID": undefined,
43
+ },
44
+ "type": "View",
45
+ },
46
+ {
47
+ "$$typeof": Symbol(react.test.json),
48
+ "children": [
49
+ {
50
+ "$$typeof": Symbol(react.test.json),
51
+ "children": null,
52
+ "props": {
53
+ "style": {
54
+ "backgroundColor": "#FFFFFF",
55
+ "borderColor": "#2B6072",
56
+ "borderRadius": 8,
57
+ "borderWidth": 1,
58
+ "height": 16,
59
+ "width": 16,
60
+ },
61
+ "testID": undefined,
62
+ },
63
+ "type": "View",
64
+ },
65
+ ],
66
+ "props": {
67
+ "style": {
68
+ "alignItems": "flex-start",
69
+ "backgroundColor": "#FFFFFF",
70
+ "borderColor": "#2B6072",
71
+ "borderRadius": 20,
72
+ "borderWidth": 1,
73
+ "height": 20,
74
+ "justifyContent": "center",
75
+ "paddingHorizontal": 1,
76
+ "width": 36,
77
+ },
78
+ "testID": undefined,
79
+ },
80
+ "type": "View",
81
+ },
82
+ ],
83
+ "props": {
84
+ "accessibilityRole": "switch",
85
+ "accessibilityState": {
86
+ "checked": false,
87
+ "disabled": false,
88
+ },
89
+ "aria-checked": false,
90
+ "aria-disabled": false,
91
+ "disabled": false,
92
+ "onHoverIn": [Function],
93
+ "onHoverOut": [Function],
94
+ "onKeyDown": [Function],
95
+ "onPress": [Function],
96
+ "style": {
97
+ "alignItems": "center",
98
+ "backgroundColor": "#FFFFFF",
99
+ "borderRadius": 4,
100
+ "flexDirection": "row",
101
+ "justifyContent": "space-between",
102
+ "paddingHorizontal": 8,
103
+ "paddingVertical": 12,
104
+ },
105
+ "testID": undefined,
106
+ },
107
+ "type": "Pressable",
108
+ }
109
+ `;
@@ -0,0 +1,18 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`FilterChangesBadge renders correctly 1`] = `
4
+ {
5
+ "$$typeof": Symbol(react.test.json),
6
+ "children": null,
7
+ "props": {
8
+ "style": {
9
+ "backgroundColor": "#0E9DCD",
10
+ "borderRadius": 8,
11
+ "height": 8,
12
+ "width": 8,
13
+ },
14
+ "testID": undefined,
15
+ },
16
+ "type": "View",
17
+ }
18
+ `;