@ltht-react/flag-summary 1.3.13
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/CHANGELOG.md +280 -0
- package/README.md +21 -0
- package/lib/atoms/flag-description.d.ts +7 -0
- package/lib/atoms/flag-description.js +50 -0
- package/lib/atoms/flag-description.js.map +1 -0
- package/lib/atoms/flag-icon.d.ts +7 -0
- package/lib/atoms/flag-icon.js +11 -0
- package/lib/atoms/flag-icon.js.map +1 -0
- package/lib/atoms/flag-source.d.ts +7 -0
- package/lib/atoms/flag-source.js +43 -0
- package/lib/atoms/flag-source.js.map +1 -0
- package/lib/atoms/flag-status.d.ts +7 -0
- package/lib/atoms/flag-status.js +43 -0
- package/lib/atoms/flag-status.js.map +1 -0
- package/lib/atoms/flag-title.d.ts +7 -0
- package/lib/atoms/flag-title.js +43 -0
- package/lib/atoms/flag-title.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +8 -0
- package/lib/index.js.map +1 -0
- package/lib/molecules/flag-redacted.d.ts +7 -0
- package/lib/molecules/flag-redacted.js +22 -0
- package/lib/molecules/flag-redacted.js.map +1 -0
- package/lib/organisms/flag-summary.d.ts +7 -0
- package/lib/organisms/flag-summary.js +54 -0
- package/lib/organisms/flag-summary.js.map +1 -0
- package/package.json +36 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## 1.3.13 (2021-09-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 1.3.12 (2021-08-26)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## 1.3.11 (2021-08-23)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [1.3.10](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@1.3.9...@ltht-react/flag-summary@1.3.10) (2021-08-02)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [1.3.9](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@1.3.8...@ltht-react/flag-summary@1.3.9) (2021-07-14)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## [1.3.8](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@1.3.7...@ltht-react/flag-summary@1.3.8) (2021-07-12)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## [1.3.7](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@1.3.6...@ltht-react/flag-summary@1.3.7) (2021-07-07)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## [1.3.6](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@1.3.5...@ltht-react/flag-summary@1.3.6) (2021-07-06)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## [1.3.5](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@1.3.4...@ltht-react/flag-summary@1.3.5) (2021-06-29)
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## [1.3.4](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@1.3.3...@ltht-react/flag-summary@1.3.4) (2021-06-21)
|
|
79
|
+
|
|
80
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## [1.3.3](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@1.3.2...@ltht-react/flag-summary@1.3.3) (2021-06-03)
|
|
87
|
+
|
|
88
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
## [1.3.1](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@1.3.0...@ltht-react/flag-summary@1.3.1) (2021-04-23)
|
|
95
|
+
|
|
96
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
## [0.1.31](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.29...@ltht-react/flag-summary@0.1.31) (2020-11-19)
|
|
103
|
+
|
|
104
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
105
|
+
|
|
106
|
+
## [0.1.30](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.29...@ltht-react/flag-summary@0.1.30) (2020-10-29)
|
|
107
|
+
|
|
108
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
109
|
+
|
|
110
|
+
## [0.1.29](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.28...@ltht-react/flag-summary@0.1.29) (2020-09-10)
|
|
111
|
+
|
|
112
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
113
|
+
|
|
114
|
+
## [0.1.28](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.27...@ltht-react/flag-summary@0.1.28) (2020-09-01)
|
|
115
|
+
|
|
116
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
117
|
+
|
|
118
|
+
## [0.1.27](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.26...@ltht-react/flag-summary@0.1.27) (2020-08-21)
|
|
119
|
+
|
|
120
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
121
|
+
|
|
122
|
+
## [0.1.26](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.25...@ltht-react/flag-summary@0.1.26) (2020-08-19)
|
|
123
|
+
|
|
124
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
125
|
+
|
|
126
|
+
## [0.1.25](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.24...@ltht-react/flag-summary@0.1.25) (2020-08-19)
|
|
127
|
+
|
|
128
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
129
|
+
|
|
130
|
+
## [0.1.24](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.23...@ltht-react/flag-summary@0.1.24) (2020-08-18)
|
|
131
|
+
|
|
132
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
133
|
+
|
|
134
|
+
## [0.1.23](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.22...@ltht-react/flag-summary@0.1.23) (2020-08-11)
|
|
135
|
+
|
|
136
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
137
|
+
|
|
138
|
+
## [0.1.22](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.21...@ltht-react/flag-summary@0.1.22) (2020-08-10)
|
|
139
|
+
|
|
140
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
141
|
+
|
|
142
|
+
## [0.1.21](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.20...@ltht-react/flag-summary@0.1.21) (2020-08-05)
|
|
143
|
+
|
|
144
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
145
|
+
|
|
146
|
+
## [0.1.20](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.19...@ltht-react/flag-summary@0.1.20) (2020-08-05)
|
|
147
|
+
|
|
148
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
149
|
+
|
|
150
|
+
## [0.1.19](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.18...@ltht-react/flag-summary@0.1.19) (2020-08-05)
|
|
151
|
+
|
|
152
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
153
|
+
|
|
154
|
+
## [0.1.17](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.16...@ltht-react/flag-summary@0.1.17) (2020-08-04)
|
|
155
|
+
|
|
156
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
157
|
+
|
|
158
|
+
## [0.1.16](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.15...@ltht-react/flag-summary@0.1.16) (2020-05-06)
|
|
159
|
+
|
|
160
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
161
|
+
|
|
162
|
+
## [0.1.15](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.14...@ltht-react/flag-summary@0.1.15) (2020-05-01)
|
|
163
|
+
|
|
164
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
165
|
+
|
|
166
|
+
## [0.1.14](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.13...@ltht-react/flag-summary@0.1.14) (2020-05-01)
|
|
167
|
+
|
|
168
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
169
|
+
|
|
170
|
+
## [0.1.13](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.12...@ltht-react/flag-summary@0.1.13) (2020-04-29)
|
|
171
|
+
|
|
172
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
173
|
+
|
|
174
|
+
## [0.1.12](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.11...@ltht-react/flag-summary@0.1.12) (2020-04-28)
|
|
175
|
+
|
|
176
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
177
|
+
|
|
178
|
+
## [0.1.11](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.10...@ltht-react/flag-summary@0.1.11) (2020-04-21)
|
|
179
|
+
|
|
180
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
181
|
+
|
|
182
|
+
## [0.1.10](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.9...@ltht-react/flag-summary@0.1.10) (2020-04-14)
|
|
183
|
+
|
|
184
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
185
|
+
|
|
186
|
+
## [0.1.9](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.8...@ltht-react/flag-summary@0.1.9) (2020-04-09)
|
|
187
|
+
|
|
188
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
189
|
+
|
|
190
|
+
## [0.1.8](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.7...@ltht-react/flag-summary@0.1.8) (2020-04-08)
|
|
191
|
+
|
|
192
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
193
|
+
|
|
194
|
+
## [0.1.7](https://ssh.github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.6...@ltht-react/flag-summary@0.1.7) (2020-04-03)
|
|
195
|
+
|
|
196
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
197
|
+
|
|
198
|
+
## [0.1.6](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.5...@ltht-react/flag-summary@0.1.6) (2020-03-16)
|
|
199
|
+
|
|
200
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
201
|
+
|
|
202
|
+
## [0.1.5](https://ssh.github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.4...@ltht-react/flag-summary@0.1.5) (2020-03-12)
|
|
203
|
+
|
|
204
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
205
|
+
|
|
206
|
+
## [0.1.4](https://ssh.github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.3...@ltht-react/flag-summary@0.1.4) (2020-03-06)
|
|
207
|
+
|
|
208
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
209
|
+
|
|
210
|
+
## [0.1.3](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.2...@ltht-react/flag-summary@0.1.3) (2020-03-02)
|
|
211
|
+
|
|
212
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
213
|
+
|
|
214
|
+
## [0.1.2](https://ssh.github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.1...@ltht-react/flag-summary@0.1.2) (2020-02-27)
|
|
215
|
+
|
|
216
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
217
|
+
|
|
218
|
+
## [0.1.1](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.0...@ltht-react/flag-summary@0.1.1) (2020-02-26)
|
|
219
|
+
|
|
220
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
221
|
+
|
|
222
|
+
## [0.0.16](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.15...@ltht-react/flag-summary@0.0.16) (2020-02-07)
|
|
223
|
+
|
|
224
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
225
|
+
|
|
226
|
+
## [0.0.15](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.14...@ltht-react/flag-summary@0.0.15) (2020-02-07)
|
|
227
|
+
|
|
228
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
229
|
+
|
|
230
|
+
## [0.0.14](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.13...@ltht-react/flag-summary@0.0.14) (2020-01-30)
|
|
231
|
+
|
|
232
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
233
|
+
|
|
234
|
+
## [0.0.13](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.12...@ltht-react/flag-summary@0.0.13) (2020-01-23)
|
|
235
|
+
|
|
236
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
237
|
+
|
|
238
|
+
## [0.0.12](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.11...@ltht-react/flag-summary@0.0.12) (2020-01-21)
|
|
239
|
+
|
|
240
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
241
|
+
|
|
242
|
+
## [0.0.11](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.10...@ltht-react/flag-summary@0.0.11) (2020-01-21)
|
|
243
|
+
|
|
244
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
245
|
+
|
|
246
|
+
## [0.0.10](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.9...@ltht-react/flag-summary@0.0.10) (2020-01-20)
|
|
247
|
+
|
|
248
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
249
|
+
|
|
250
|
+
## [0.0.9](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.8...@ltht-react/flag-summary@0.0.9) (2020-01-17)
|
|
251
|
+
|
|
252
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
253
|
+
|
|
254
|
+
## [0.0.8](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.7...@ltht-react/flag-summary@0.0.8) (2020-01-17)
|
|
255
|
+
|
|
256
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
257
|
+
|
|
258
|
+
## [0.0.6](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.5...@ltht-react/flag-summary@0.0.6) (2020-01-07)
|
|
259
|
+
|
|
260
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
261
|
+
|
|
262
|
+
## [0.0.5](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.4...@ltht-react/flag-summary@0.0.5) (2020-01-07)
|
|
263
|
+
|
|
264
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
265
|
+
|
|
266
|
+
## [0.0.4](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.3...@ltht-react/flag-summary@0.0.4) (2020-01-07)
|
|
267
|
+
|
|
268
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
269
|
+
|
|
270
|
+
## [0.0.3](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.2...@ltht-react/flag-summary@0.0.3) (2020-01-07)
|
|
271
|
+
|
|
272
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
273
|
+
|
|
274
|
+
## [0.0.2](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.1...@ltht-react/flag-summary@0.0.2) (2020-01-06)
|
|
275
|
+
|
|
276
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
|
277
|
+
|
|
278
|
+
## 0.0.1 (2020-01-03)
|
|
279
|
+
|
|
280
|
+
**Note:** Version bump only for package @ltht-react/flag-summary
|
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Flag Summary
|
|
2
|
+
|
|
3
|
+
### Import
|
|
4
|
+
|
|
5
|
+
```js
|
|
6
|
+
import FlagSummary from '@ltht-react/flag-summary'
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
### Usage
|
|
10
|
+
|
|
11
|
+
```jsx
|
|
12
|
+
<FlagSummary title="Alerts" flags={flags} clickHandler={handleClick} />
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Properties
|
|
16
|
+
|
|
17
|
+
| Prop | Required | Default | Type | Description |
|
|
18
|
+
| :------------- | :------- | :----------- | :------- | :------------------------------------------------------- |
|
|
19
|
+
| `title` | No | Flag Summary | string | Header text |
|
|
20
|
+
| `flags` | Yes | | Flag[] | Array of flags to display |
|
|
21
|
+
| `clickHandler` | No | undefined | Function | Callback click handler containing the selected flag item |
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
33
|
+
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
34
|
+
var styles_1 = require("@ltht-react/styles");
|
|
35
|
+
var utils_1 = require("@ltht-react/utils");
|
|
36
|
+
var StyledFlagDescription = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n text-align: left;\n font-size: smaller;\n padding-top: 0.25rem;\n"], ["\n color: ", ";\n text-align: left;\n font-size: smaller;\n padding-top: 0.25rem;\n"])), styles_1.TEXT_COLOURS.SECONDARY.VALUE);
|
|
37
|
+
var FlagDescription = function (_a) {
|
|
38
|
+
var _b = _a.flag, code = _b.code, category = _b.category, rest = __rest(_a, ["flag"]);
|
|
39
|
+
var values = [];
|
|
40
|
+
var codeSummary = utils_1.codeableConceptCodeSummary(code);
|
|
41
|
+
if (codeSummary && codeSummary.length > 0)
|
|
42
|
+
values.push(codeSummary);
|
|
43
|
+
var categorySummary = category && utils_1.codeableConceptDisplaySummary(category);
|
|
44
|
+
if (categorySummary && categorySummary.length > 0)
|
|
45
|
+
values.push(categorySummary);
|
|
46
|
+
return jsx_runtime_1.jsx(StyledFlagDescription, __assign({}, rest, { children: values.join(' - ') }), void 0);
|
|
47
|
+
};
|
|
48
|
+
exports.default = FlagDescription;
|
|
49
|
+
var templateObject_1;
|
|
50
|
+
//# sourceMappingURL=flag-description.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flag-description.js","sourceRoot":"","sources":["../../src/atoms/flag-description.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2DAAoC;AACpC,6CAAiD;AAEjD,2CAA6F;AAE7F,IAAM,qBAAqB,GAAG,gBAAM,CAAC,GAAG,4JAAA,aAC7B,EAA4B,0EAItC,KAJU,qBAAY,CAAC,SAAS,CAAC,KAAK,CAItC,CAAA;AAED,IAAM,eAAe,GAAc,UAAC,EAAqC;IAAnC,IAAA,YAAwB,EAAhB,IAAI,UAAA,EAAE,QAAQ,cAAA,EAAO,IAAI,cAAnC,QAAqC,CAAF;IACrE,IAAM,MAAM,GAAG,EAAE,CAAA;IAEjB,IAAM,WAAW,GAAG,kCAA0B,CAAC,IAAI,CAAC,CAAA;IACpD,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC;QAAE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;IAEnE,IAAM,eAAe,GAAG,QAAQ,IAAI,qCAA6B,CAAC,QAAQ,CAAC,CAAA;IAC3E,IAAI,eAAe,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC;QAAE,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;IAE/E,OAAO,kBAAC,qBAAqB,eAAK,IAAI,cAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,YAAyB,CAAA;AACtF,CAAC,CAAA;AAMD,kBAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
var icon_1 = require("@ltht-react/icon");
|
|
5
|
+
var types_1 = require("@ltht-react/types");
|
|
6
|
+
var FlagIcon = function (_a) {
|
|
7
|
+
var flag = _a.flag;
|
|
8
|
+
return (jsx_runtime_1.jsx(icon_1.ExclamationIcon, { status: flag.status === types_1.FlagStatusCode.Active ? 'red' : 'amber', size: "medium" }, void 0));
|
|
9
|
+
};
|
|
10
|
+
exports.default = FlagIcon;
|
|
11
|
+
//# sourceMappingURL=flag-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flag-icon.js","sourceRoot":"","sources":["../../src/atoms/flag-icon.tsx"],"names":[],"mappings":";;;AACA,yCAAkD;AAClD,2CAAwD;AAExD,IAAM,QAAQ,GAAc,UAAC,EAAQ;QAAN,IAAI,UAAA;IAAO,OAAA,CACxC,kBAAC,sBAAe,IAAC,MAAM,EAAE,IAAI,CAAC,MAAM,KAAK,sBAAc,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,IAAI,EAAC,QAAQ,WAAG,CACnG;AAFyC,CAEzC,CAAA;AAMD,kBAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
33
|
+
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
34
|
+
var styles_1 = require("@ltht-react/styles");
|
|
35
|
+
var utils_1 = require("@ltht-react/utils");
|
|
36
|
+
var StyledFlagSource = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n text-align: right;\n"], ["\n color: ", ";\n text-align: right;\n"])), styles_1.TEXT_COLOURS.SECONDARY);
|
|
37
|
+
var FlagSource = function (_a) {
|
|
38
|
+
var metadata = _a.flag.metadata, rest = __rest(_a, ["flag"]);
|
|
39
|
+
return (jsx_runtime_1.jsx(StyledFlagSource, __assign({}, rest, { children: utils_1.metadataSourceSummaryText(metadata) }), void 0));
|
|
40
|
+
};
|
|
41
|
+
exports.default = FlagSource;
|
|
42
|
+
var templateObject_1;
|
|
43
|
+
//# sourceMappingURL=flag-source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flag-source.js","sourceRoot":"","sources":["../../src/atoms/flag-source.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2DAAoC;AACpC,6CAAiD;AAEjD,2CAA6D;AAE7D,IAAM,gBAAgB,GAAG,gBAAM,CAAC,GAAG,6GAAA,aACxB,EAAsB,2BAEhC,KAFU,qBAAY,CAAC,SAAS,CAEhC,CAAA;AAED,IAAM,UAAU,GAAc,UAAC,EAA+B;IAArB,IAAA,QAAQ,mBAAA,EAAO,IAAI,cAA7B,QAA+B,CAAF;IAAO,OAAA,CACjE,kBAAC,gBAAgB,eAAK,IAAI,cAAG,iCAAyB,CAAC,QAAQ,CAAC,YAAoB,CACrF,CAAA;CAAA,CAAA;AAMD,kBAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
33
|
+
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
34
|
+
var styles_1 = require("@ltht-react/styles");
|
|
35
|
+
var utils_1 = require("@ltht-react/utils");
|
|
36
|
+
var StyledFlagStatus = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n text-align: right;\n font-size: smaller;\n padding-top: 0.25rem;\n"], ["\n color: ", ";\n text-align: right;\n font-size: smaller;\n padding-top: 0.25rem;\n"])), styles_1.TEXT_COLOURS.SECONDARY.VALUE);
|
|
37
|
+
var FlagStatus = function (_a) {
|
|
38
|
+
var status = _a.flag.status, rest = __rest(_a, ["flag"]);
|
|
39
|
+
return (jsx_runtime_1.jsx(StyledFlagStatus, __assign({}, rest, { children: utils_1.titleCase(status) }), void 0));
|
|
40
|
+
};
|
|
41
|
+
exports.default = FlagStatus;
|
|
42
|
+
var templateObject_1;
|
|
43
|
+
//# sourceMappingURL=flag-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flag-status.js","sourceRoot":"","sources":["../../src/atoms/flag-status.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2DAAoC;AACpC,6CAAiD;AAEjD,2CAA6C;AAE7C,IAAM,gBAAgB,GAAG,gBAAM,CAAC,GAAG,6JAAA,aACxB,EAA4B,2EAItC,KAJU,qBAAY,CAAC,SAAS,CAAC,KAAK,CAItC,CAAA;AAED,IAAM,UAAU,GAAc,UAAC,EAA6B;IAAnB,IAAA,MAAM,iBAAA,EAAO,IAAI,cAA3B,QAA6B,CAAF;IAAO,OAAA,CAC/D,kBAAC,gBAAgB,eAAK,IAAI,cAAG,iBAAS,CAAC,MAAM,CAAC,YAAoB,CACnE,CAAA;CAAA,CAAA;AAMD,kBAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
33
|
+
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
34
|
+
var styles_1 = require("@ltht-react/styles");
|
|
35
|
+
var utils_1 = require("@ltht-react/utils");
|
|
36
|
+
var StyledFlagTitle = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n text-align: left;\n"], ["\n color: ", ";\n text-align: left;\n"])), styles_1.TEXT_COLOURS.PRIMARY);
|
|
37
|
+
var FlagTitle = function (_a) {
|
|
38
|
+
var code = _a.flag.code, rest = __rest(_a, ["flag"]);
|
|
39
|
+
return (jsx_runtime_1.jsx(StyledFlagTitle, __assign({}, rest, { children: utils_1.codeableConceptDisplaySummary(code) }), void 0));
|
|
40
|
+
};
|
|
41
|
+
exports.default = FlagTitle;
|
|
42
|
+
var templateObject_1;
|
|
43
|
+
//# sourceMappingURL=flag-title.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flag-title.js","sourceRoot":"","sources":["../../src/atoms/flag-title.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2DAAoC;AACpC,6CAAiD;AAEjD,2CAAiE;AAEjE,IAAM,eAAe,GAAG,gBAAM,CAAC,GAAG,4GAAA,aACvB,EAAoB,0BAE9B,KAFU,qBAAY,CAAC,OAAO,CAE9B,CAAA;AAED,IAAM,SAAS,GAAc,UAAC,EAA2B;IAAjB,IAAA,IAAI,eAAA,EAAO,IAAI,cAAzB,QAA2B,CAAF;IAAO,OAAA,CAC5D,kBAAC,eAAe,eAAK,IAAI,cAAG,qCAA6B,CAAC,IAAI,CAAC,YAAmB,CACnF,CAAA;CAAA,CAAA;AAMD,kBAAe,SAAS,CAAA"}
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var flag_summary_1 = __importDefault(require("./organisms/flag-summary"));
|
|
7
|
+
exports.default = flag_summary_1.default;
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;AAAA,0EAAkD;AAElD,kBAAe,sBAAW,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
12
|
+
var summary_1 = require("@ltht-react/summary");
|
|
13
|
+
var StyledRedactedDescription = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-grow: 1;\n text-align: left;\n"], ["\n flex-grow: 1;\n text-align: left;\n"])));
|
|
14
|
+
var StyledPeriodSummary = styled_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n text-align: right;\n"], ["\n text-align: right;\n"])));
|
|
15
|
+
var FlagRedacted = function (_a) {
|
|
16
|
+
var period = _a.flag.period;
|
|
17
|
+
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [jsx_runtime_1.jsx(StyledRedactedDescription, { children: jsx_runtime_1.jsx(summary_1.RedactedDescription, {}, void 0) }, void 0),
|
|
18
|
+
jsx_runtime_1.jsx(StyledPeriodSummary, { children: jsx_runtime_1.jsx(summary_1.PeriodSummary, { period: period }, void 0) }, void 0)] }, void 0));
|
|
19
|
+
};
|
|
20
|
+
exports.default = FlagRedacted;
|
|
21
|
+
var templateObject_1, templateObject_2;
|
|
22
|
+
//# sourceMappingURL=flag-redacted.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flag-redacted.js","sourceRoot":"","sources":["../../src/molecules/flag-redacted.tsx"],"names":[],"mappings":";;;;;;;;;;AACA,2DAAoC;AAEpC,+CAAwE;AAExE,IAAM,yBAAyB,GAAG,gBAAM,CAAC,GAAG,6GAAA,0CAG3C,IAAA,CAAA;AAED,IAAM,mBAAmB,GAAG,gBAAM,CAAC,GAAG,6FAAA,0BAErC,IAAA,CAAA;AAED,IAAM,YAAY,GAAc,UAAC,EAAoB;QAAV,MAAM,iBAAA;IAAS,OAAA,CACxD,wDACE,kBAAC,yBAAyB,cACxB,kBAAC,6BAAmB,aAAG,WACG;YAC5B,kBAAC,mBAAmB,cAClB,kBAAC,uBAAa,IAAC,MAAM,EAAE,MAAM,WAAI,WACb,YACrB,CACJ;AATyD,CASzD,CAAA;AAMD,kBAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
33
|
+
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
34
|
+
var summary_1 = require("@ltht-react/summary");
|
|
35
|
+
var flag_title_1 = __importDefault(require("../atoms/flag-title"));
|
|
36
|
+
var flag_description_1 = __importDefault(require("../atoms/flag-description"));
|
|
37
|
+
var flag_status_1 = __importDefault(require("../atoms/flag-status"));
|
|
38
|
+
var flag_redacted_1 = __importDefault(require("../molecules/flag-redacted"));
|
|
39
|
+
var StyledSummary = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n"], ["\n display: flex;\n justify-content: center;\n"])));
|
|
40
|
+
var StyledDescription = styled_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex-grow: 1;\n"], ["\n flex-grow: 1;\n"])));
|
|
41
|
+
var StyledDate = styled_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n text-align: right;\n"], ["\n text-align: right;\n"])));
|
|
42
|
+
var FlagSummary = function (_a) {
|
|
43
|
+
var flag = _a.flag, rest = __rest(_a, ["flag"]);
|
|
44
|
+
if (flag.metadata.isRedacted) {
|
|
45
|
+
return (jsx_runtime_1.jsx(StyledSummary, __assign({}, rest, { children: jsx_runtime_1.jsx(flag_redacted_1.default, { flag: flag }, void 0) }), void 0));
|
|
46
|
+
}
|
|
47
|
+
return (jsx_runtime_1.jsxs(StyledSummary, __assign({}, rest, { children: [jsx_runtime_1.jsxs(StyledDescription, { children: [jsx_runtime_1.jsx(flag_title_1.default, { flag: flag }, void 0),
|
|
48
|
+
jsx_runtime_1.jsx(flag_description_1.default, { flag: flag }, void 0)] }, void 0),
|
|
49
|
+
jsx_runtime_1.jsxs(StyledDate, { children: [jsx_runtime_1.jsx(summary_1.PeriodSummary, { period: flag.period }, void 0),
|
|
50
|
+
jsx_runtime_1.jsx(flag_status_1.default, { flag: flag }, void 0)] }, void 0)] }), void 0));
|
|
51
|
+
};
|
|
52
|
+
exports.default = FlagSummary;
|
|
53
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
54
|
+
//# sourceMappingURL=flag-summary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flag-summary.js","sourceRoot":"","sources":["../../src/organisms/flag-summary.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2DAAoC;AAGpC,+CAAmD;AAEnD,mEAAuC;AACvC,+EAAmD;AACnD,qEAAyC;AACzC,6EAAiD;AAEjD,IAAM,aAAa,GAAG,gBAAM,CAAC,GAAG,qHAAA,kDAG/B,IAAA,CAAA;AACD,IAAM,iBAAiB,GAAG,gBAAM,CAAC,GAAG,wFAAA,qBAEnC,IAAA,CAAA;AACD,IAAM,UAAU,GAAG,gBAAM,CAAC,GAAG,6FAAA,0BAE5B,IAAA,CAAA;AAED,IAAM,WAAW,GAAc,UAAC,EAAiB;IAAf,IAAA,IAAI,UAAA,EAAK,IAAI,cAAf,QAAiB,CAAF;IAC7C,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE;QAC5B,OAAO,CACL,kBAAC,aAAa,eAAK,IAAI,cACrB,kBAAC,uBAAQ,IAAC,IAAI,EAAE,IAAI,WAAI,YACV,CACjB,CAAA;KACF;IAED,OAAO,CACL,mBAAC,aAAa,eAAK,IAAI,eACrB,mBAAC,iBAAiB,eAChB,kBAAC,oBAAK,IAAC,IAAI,EAAE,IAAI,WAAI;oBACrB,kBAAC,0BAAW,IAAC,IAAI,EAAE,IAAI,WAAI,YACT;YACpB,mBAAC,UAAU,eACT,kBAAC,uBAAa,IAAC,MAAM,EAAE,IAAI,CAAC,MAAM,WAAI;oBACtC,kBAAC,qBAAM,IAAC,IAAI,EAAE,IAAI,WAAI,YACX,aACC,CACjB,CAAA;AACH,CAAC,CAAA;AAMD,kBAAe,WAAW,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ltht-react/flag-summary",
|
|
3
|
+
"version": "1.3.13",
|
|
4
|
+
"description": "> TODO: description",
|
|
5
|
+
"author": "Jonny Smith <jonny.asmith@gmail.com>",
|
|
6
|
+
"homepage": "",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"main": "lib/index.js",
|
|
9
|
+
"typings": "lib/index.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"lib"
|
|
12
|
+
],
|
|
13
|
+
"directories": {
|
|
14
|
+
"lib": "lib",
|
|
15
|
+
"test": "__tests__"
|
|
16
|
+
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"clean": "rimraf lib && rimraf node_modules",
|
|
22
|
+
"build": "tsc"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@emotion/react": "^11.0.0",
|
|
26
|
+
"@emotion/styled": "^11.0.0",
|
|
27
|
+
"@ltht-react/icon": "^1.3.13",
|
|
28
|
+
"@ltht-react/list": "^1.3.11",
|
|
29
|
+
"@ltht-react/styles": "^1.3.5",
|
|
30
|
+
"@ltht-react/summary": "^1.3.13",
|
|
31
|
+
"@ltht-react/types": "^1.0.9",
|
|
32
|
+
"@ltht-react/utils": "^1.1.11",
|
|
33
|
+
"react": "^17.0.0"
|
|
34
|
+
},
|
|
35
|
+
"gitHead": "2fb4ee694529d51759e27b2201553e35b9aa5f2f"
|
|
36
|
+
}
|