@openmrs/esm-framework 5.8.2-pre.2524 → 5.8.2-pre.2526

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/docs/API.md CHANGED
@@ -587,7 +587,7 @@ ___
587
587
 
588
588
  #### Defined in
589
589
 
590
- [packages/framework/esm-styleguide/src/icons/icons.tsx:6](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L6)
590
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:7](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L7)
591
591
 
592
592
  ___
593
593
 
@@ -651,7 +651,7 @@ ___
651
651
 
652
652
  #### Defined in
653
653
 
654
- [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:5](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L5)
654
+ [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:7](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L7)
655
655
 
656
656
  ___
657
657
 
@@ -695,7 +695,7 @@ ___
695
695
 
696
696
  #### Defined in
697
697
 
698
- [packages/framework/esm-styleguide/src/icons/icons.tsx:701](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L701)
698
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:744](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L744)
699
699
 
700
700
  ___
701
701
 
@@ -712,7 +712,7 @@ ___
712
712
 
713
713
  #### Defined in
714
714
 
715
- [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:10](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L10)
715
+ [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:102](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L102)
716
716
 
717
717
  ___
718
718
 
@@ -994,9 +994,38 @@ ___
994
994
 
995
995
  • `Const` **UserHasAccess**: `React.FC`<[`UserHasAccessProps`](interfaces/UserHasAccessProps.md)\>
996
996
 
997
+ A React component that renders its children only if the current user exists and has the privilege(s)
998
+ specified by the `privilege` prop. This can be used not to render certain components when the user
999
+ doesn't have the permission to use this.
1000
+
1001
+ Note that for top-level extensions (i.e., the component that's the root of the extension), you don't
1002
+ need to use this component. Instead, when registering the extension, declare the required privileges
1003
+ as part of the extension registration. This is for use deeper in extensions or other components where
1004
+ a separate permission check might be needed.
1005
+
1006
+ This can also be used to hide components when the current user is not logged in.
1007
+
1008
+ **`example`**
1009
+ ```ts
1010
+ <Form>
1011
+ <UserHasAccess privilege='Form Finallizer'>
1012
+ <Checkbox id="finalize-form" value={formFinalized} onChange={handleChange} />
1013
+ </UserHasAccess>
1014
+ </Form>
1015
+ ````
1016
+
1017
+ **`param`** Either a string for a single required privilege or an array of strings for a
1018
+ set of required privileges. Note that sets of required privileges must all be matched.
1019
+
1020
+ **`param`** What to render if the user does not have access or if the user is not currently
1021
+ logged in. If not provided, nothing will be rendered
1022
+
1023
+ **`param`** The children to be rendered only if the user is logged in and has the required
1024
+ privileges.
1025
+
997
1026
  #### Defined in
998
1027
 
999
- [packages/framework/esm-react-utils/src/UserHasAccess.tsx:12](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/UserHasAccess.tsx#L12)
1028
+ [packages/framework/esm-react-utils/src/UserHasAccess.tsx:40](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/UserHasAccess.tsx#L40)
1000
1029
 
1001
1030
  ___
1002
1031
 
@@ -1153,7 +1182,7 @@ ___
1153
1182
 
1154
1183
  #### Defined in
1155
1184
 
1156
- [packages/framework/esm-styleguide/src/icons/icons.tsx:14](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L14)
1185
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:15](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L15)
1157
1186
 
1158
1187
  ___
1159
1188
 
@@ -1163,7 +1192,7 @@ ___
1163
1192
 
1164
1193
  #### Defined in
1165
1194
 
1166
- [packages/framework/esm-styleguide/src/icons/icons.tsx:22](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L22)
1195
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:23](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L23)
1167
1196
 
1168
1197
  ___
1169
1198
 
@@ -1173,7 +1202,7 @@ ___
1173
1202
 
1174
1203
  #### Defined in
1175
1204
 
1176
- [packages/framework/esm-styleguide/src/icons/icons.tsx:675](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L675)
1205
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:676](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L676)
1177
1206
 
1178
1207
  ___
1179
1208
 
@@ -1183,7 +1212,7 @@ ___
1183
1212
 
1184
1213
  #### Defined in
1185
1214
 
1186
- [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:36](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L36)
1215
+ [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:12](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L12)
1187
1216
 
1188
1217
  ___
1189
1218
 
@@ -1193,7 +1222,7 @@ ___
1193
1222
 
1194
1223
  #### Defined in
1195
1224
 
1196
- [packages/framework/esm-styleguide/src/icons/icons.tsx:30](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L30)
1225
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:31](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L31)
1197
1226
 
1198
1227
  ___
1199
1228
 
@@ -1203,7 +1232,7 @@ ___
1203
1232
 
1204
1233
  #### Defined in
1205
1234
 
1206
- [packages/framework/esm-styleguide/src/icons/icons.tsx:38](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L38)
1235
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:39](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L39)
1207
1236
 
1208
1237
  ___
1209
1238
 
@@ -1213,7 +1242,7 @@ ___
1213
1242
 
1214
1243
  #### Defined in
1215
1244
 
1216
- [packages/framework/esm-styleguide/src/icons/icons.tsx:46](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L46)
1245
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:47](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L47)
1217
1246
 
1218
1247
  ___
1219
1248
 
@@ -1223,7 +1252,7 @@ ___
1223
1252
 
1224
1253
  #### Defined in
1225
1254
 
1226
- [packages/framework/esm-styleguide/src/icons/icons.tsx:54](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L54)
1255
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:55](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L55)
1227
1256
 
1228
1257
  ___
1229
1258
 
@@ -1233,7 +1262,7 @@ ___
1233
1262
 
1234
1263
  #### Defined in
1235
1264
 
1236
- [packages/framework/esm-styleguide/src/icons/icons.tsx:680](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L680)
1265
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:681](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L681)
1237
1266
 
1238
1267
  ___
1239
1268
 
@@ -1243,7 +1272,7 @@ ___
1243
1272
 
1244
1273
  #### Defined in
1245
1274
 
1246
- [packages/framework/esm-styleguide/src/icons/icons.tsx:62](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L62)
1275
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:63](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L63)
1247
1276
 
1248
1277
  ___
1249
1278
 
@@ -1253,7 +1282,7 @@ ___
1253
1282
 
1254
1283
  #### Defined in
1255
1284
 
1256
- [packages/framework/esm-styleguide/src/icons/icons.tsx:70](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L70)
1285
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:71](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L71)
1257
1286
 
1258
1287
  ___
1259
1288
 
@@ -1263,7 +1292,7 @@ ___
1263
1292
 
1264
1293
  #### Defined in
1265
1294
 
1266
- [packages/framework/esm-styleguide/src/icons/icons.tsx:78](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L78)
1295
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:79](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L79)
1267
1296
 
1268
1297
  ___
1269
1298
 
@@ -1273,7 +1302,7 @@ ___
1273
1302
 
1274
1303
  #### Defined in
1275
1304
 
1276
- [packages/framework/esm-styleguide/src/icons/icons.tsx:86](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L86)
1305
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:87](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L87)
1277
1306
 
1278
1307
  ___
1279
1308
 
@@ -1283,7 +1312,7 @@ ___
1283
1312
 
1284
1313
  #### Defined in
1285
1314
 
1286
- [packages/framework/esm-styleguide/src/icons/icons.tsx:94](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L94)
1315
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:95](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L95)
1287
1316
 
1288
1317
  ___
1289
1318
 
@@ -1293,7 +1322,7 @@ ___
1293
1322
 
1294
1323
  #### Defined in
1295
1324
 
1296
- [packages/framework/esm-styleguide/src/icons/icons.tsx:102](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L102)
1325
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:103](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L103)
1297
1326
 
1298
1327
  ___
1299
1328
 
@@ -1303,7 +1332,7 @@ ___
1303
1332
 
1304
1333
  #### Defined in
1305
1334
 
1306
- [packages/framework/esm-styleguide/src/icons/icons.tsx:110](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L110)
1335
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:111](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L111)
1307
1336
 
1308
1337
  ___
1309
1338
 
@@ -1313,7 +1342,7 @@ ___
1313
1342
 
1314
1343
  #### Defined in
1315
1344
 
1316
- [packages/framework/esm-styleguide/src/icons/icons.tsx:134](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L134)
1345
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:135](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L135)
1317
1346
 
1318
1347
  ___
1319
1348
 
@@ -1323,7 +1352,7 @@ ___
1323
1352
 
1324
1353
  #### Defined in
1325
1354
 
1326
- [packages/framework/esm-styleguide/src/icons/icons.tsx:118](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L118)
1355
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:119](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L119)
1327
1356
 
1328
1357
  ___
1329
1358
 
@@ -1333,7 +1362,7 @@ ___
1333
1362
 
1334
1363
  #### Defined in
1335
1364
 
1336
- [packages/framework/esm-styleguide/src/icons/icons.tsx:126](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L126)
1365
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:127](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L127)
1337
1366
 
1338
1367
  ___
1339
1368
 
@@ -1343,7 +1372,7 @@ ___
1343
1372
 
1344
1373
  #### Defined in
1345
1374
 
1346
- [packages/framework/esm-styleguide/src/icons/icons.tsx:142](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L142)
1375
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:143](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L143)
1347
1376
 
1348
1377
  ___
1349
1378
 
@@ -1353,7 +1382,7 @@ ___
1353
1382
 
1354
1383
  #### Defined in
1355
1384
 
1356
- [packages/framework/esm-styleguide/src/icons/icons.tsx:150](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L150)
1385
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:151](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L151)
1357
1386
 
1358
1387
  ___
1359
1388
 
@@ -1363,7 +1392,7 @@ ___
1363
1392
 
1364
1393
  #### Defined in
1365
1394
 
1366
- [packages/framework/esm-styleguide/src/icons/icons.tsx:158](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L158)
1395
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:159](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L159)
1367
1396
 
1368
1397
  ___
1369
1398
 
@@ -1373,7 +1402,7 @@ ___
1373
1402
 
1374
1403
  #### Defined in
1375
1404
 
1376
- [packages/framework/esm-styleguide/src/icons/icons.tsx:166](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L166)
1405
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:167](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L167)
1377
1406
 
1378
1407
  ___
1379
1408
 
@@ -1383,7 +1412,7 @@ ___
1383
1412
 
1384
1413
  #### Defined in
1385
1414
 
1386
- [packages/framework/esm-styleguide/src/icons/icons.tsx:174](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L174)
1415
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:175](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L175)
1387
1416
 
1388
1417
  ___
1389
1418
 
@@ -1393,7 +1422,7 @@ ___
1393
1422
 
1394
1423
  #### Defined in
1395
1424
 
1396
- [packages/framework/esm-styleguide/src/icons/icons.tsx:182](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L182)
1425
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:183](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L183)
1397
1426
 
1398
1427
  ___
1399
1428
 
@@ -1403,7 +1432,7 @@ ___
1403
1432
 
1404
1433
  #### Defined in
1405
1434
 
1406
- [packages/framework/esm-styleguide/src/icons/icons.tsx:198](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L198)
1435
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:199](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L199)
1407
1436
 
1408
1437
  ___
1409
1438
 
@@ -1413,7 +1442,7 @@ ___
1413
1442
 
1414
1443
  #### Defined in
1415
1444
 
1416
- [packages/framework/esm-styleguide/src/icons/icons.tsx:190](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L190)
1445
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:191](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L191)
1417
1446
 
1418
1447
  ___
1419
1448
 
@@ -1427,7 +1456,7 @@ Note this is an alias for ListCheckedIcon
1427
1456
 
1428
1457
  #### Defined in
1429
1458
 
1430
- [packages/framework/esm-styleguide/src/icons/icons.tsx:687](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L687)
1459
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:688](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L688)
1431
1460
 
1432
1461
  ___
1433
1462
 
@@ -1437,7 +1466,7 @@ ___
1437
1466
 
1438
1467
  #### Defined in
1439
1468
 
1440
- [packages/framework/esm-styleguide/src/icons/icons.tsx:206](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L206)
1469
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:207](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L207)
1441
1470
 
1442
1471
  ___
1443
1472
 
@@ -1447,7 +1476,7 @@ ___
1447
1476
 
1448
1477
  #### Defined in
1449
1478
 
1450
- [packages/framework/esm-styleguide/src/icons/icons.tsx:214](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L214)
1479
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:215](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L215)
1451
1480
 
1452
1481
  ___
1453
1482
 
@@ -1457,7 +1486,7 @@ ___
1457
1486
 
1458
1487
  #### Defined in
1459
1488
 
1460
- [packages/framework/esm-styleguide/src/icons/icons.tsx:222](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L222)
1489
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:223](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L223)
1461
1490
 
1462
1491
  ___
1463
1492
 
@@ -1467,7 +1496,7 @@ ___
1467
1496
 
1468
1497
  #### Defined in
1469
1498
 
1470
- [packages/framework/esm-styleguide/src/icons/icons.tsx:230](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L230)
1499
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:231](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L231)
1471
1500
 
1472
1501
  ___
1473
1502
 
@@ -1487,7 +1516,7 @@ ___
1487
1516
 
1488
1517
  #### Defined in
1489
1518
 
1490
- [packages/framework/esm-styleguide/src/icons/icons.tsx:238](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L238)
1519
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:239](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L239)
1491
1520
 
1492
1521
  ___
1493
1522
 
@@ -1497,7 +1526,7 @@ ___
1497
1526
 
1498
1527
  #### Defined in
1499
1528
 
1500
- [packages/framework/esm-styleguide/src/icons/icons.tsx:246](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L246)
1529
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:247](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L247)
1501
1530
 
1502
1531
  ___
1503
1532
 
@@ -1507,7 +1536,7 @@ ___
1507
1536
 
1508
1537
  #### Defined in
1509
1538
 
1510
- [packages/framework/esm-styleguide/src/icons/icons.tsx:254](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L254)
1539
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:255](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L255)
1511
1540
 
1512
1541
  ___
1513
1542
 
@@ -1517,7 +1546,7 @@ ___
1517
1546
 
1518
1547
  #### Defined in
1519
1548
 
1520
- [packages/framework/esm-styleguide/src/icons/icons.tsx:261](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L261)
1549
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:262](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L262)
1521
1550
 
1522
1551
  ___
1523
1552
 
@@ -1527,7 +1556,7 @@ ___
1527
1556
 
1528
1557
  #### Defined in
1529
1558
 
1530
- [packages/framework/esm-styleguide/src/icons/icons.tsx:268](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L268)
1559
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:269](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L269)
1531
1560
 
1532
1561
  ___
1533
1562
 
@@ -1537,7 +1566,7 @@ ___
1537
1566
 
1538
1567
  #### Defined in
1539
1568
 
1540
- [packages/framework/esm-styleguide/src/icons/icons.tsx:275](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L275)
1569
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:276](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L276)
1541
1570
 
1542
1571
  ___
1543
1572
 
@@ -1547,7 +1576,7 @@ ___
1547
1576
 
1548
1577
  #### Defined in
1549
1578
 
1550
- [packages/framework/esm-styleguide/src/icons/icons.tsx:291](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L291)
1579
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:292](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L292)
1551
1580
 
1552
1581
  ___
1553
1582
 
@@ -1557,7 +1586,7 @@ ___
1557
1586
 
1558
1587
  #### Defined in
1559
1588
 
1560
- [packages/framework/esm-styleguide/src/icons/icons.tsx:283](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L283)
1589
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:284](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L284)
1561
1590
 
1562
1591
  ___
1563
1592
 
@@ -1567,7 +1596,7 @@ ___
1567
1596
 
1568
1597
  #### Defined in
1569
1598
 
1570
- [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:42](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L42)
1599
+ [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:18](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L18)
1571
1600
 
1572
1601
  ___
1573
1602
 
@@ -1577,7 +1606,7 @@ ___
1577
1606
 
1578
1607
  #### Defined in
1579
1608
 
1580
- [packages/framework/esm-styleguide/src/icons/icons.tsx:299](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L299)
1609
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:300](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L300)
1581
1610
 
1582
1611
  ___
1583
1612
 
@@ -1589,7 +1618,7 @@ This is a utility type for custom icons that use the svg-sprite-loader to bundle
1589
1618
 
1590
1619
  #### Defined in
1591
1620
 
1592
- [packages/framework/esm-styleguide/src/icons/icons.tsx:709](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L709)
1621
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:752](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L752)
1593
1622
 
1594
1623
  ___
1595
1624
 
@@ -1599,7 +1628,7 @@ ___
1599
1628
 
1600
1629
  #### Defined in
1601
1630
 
1602
- [packages/framework/esm-styleguide/src/icons/icons.tsx:307](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L307)
1631
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:308](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L308)
1603
1632
 
1604
1633
  ___
1605
1634
 
@@ -1609,7 +1638,7 @@ ___
1609
1638
 
1610
1639
  #### Defined in
1611
1640
 
1612
- [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:48](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L48)
1641
+ [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:24](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L24)
1613
1642
 
1614
1643
  ___
1615
1644
 
@@ -1619,7 +1648,7 @@ ___
1619
1648
 
1620
1649
  #### Defined in
1621
1650
 
1622
- [packages/framework/esm-styleguide/src/icons/icons.tsx:331](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L331)
1651
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:332](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L332)
1623
1652
 
1624
1653
  ___
1625
1654
 
@@ -1629,7 +1658,7 @@ ___
1629
1658
 
1630
1659
  #### Defined in
1631
1660
 
1632
- [packages/framework/esm-styleguide/src/icons/icons.tsx:323](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L323)
1661
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:324](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L324)
1633
1662
 
1634
1663
  ___
1635
1664
 
@@ -1639,7 +1668,7 @@ ___
1639
1668
 
1640
1669
  #### Defined in
1641
1670
 
1642
- [packages/framework/esm-styleguide/src/icons/icons.tsx:339](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L339)
1671
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:340](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L340)
1643
1672
 
1644
1673
  ___
1645
1674
 
@@ -1649,7 +1678,7 @@ ___
1649
1678
 
1650
1679
  #### Defined in
1651
1680
 
1652
- [packages/framework/esm-styleguide/src/icons/icons.tsx:315](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L315)
1681
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:316](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L316)
1653
1682
 
1654
1683
  ___
1655
1684
 
@@ -1659,7 +1688,7 @@ ___
1659
1688
 
1660
1689
  #### Defined in
1661
1690
 
1662
- [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:54](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L54)
1691
+ [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:30](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L30)
1663
1692
 
1664
1693
  ___
1665
1694
 
@@ -1669,7 +1698,7 @@ ___
1669
1698
 
1670
1699
  #### Defined in
1671
1700
 
1672
- [packages/framework/esm-styleguide/src/icons/icons.tsx:347](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L347)
1701
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:348](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L348)
1673
1702
 
1674
1703
  ___
1675
1704
 
@@ -1679,7 +1708,7 @@ ___
1679
1708
 
1680
1709
  #### Defined in
1681
1710
 
1682
- [packages/framework/esm-styleguide/src/icons/icons.tsx:355](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L355)
1711
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:356](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L356)
1683
1712
 
1684
1713
  ___
1685
1714
 
@@ -1699,7 +1728,43 @@ ___
1699
1728
 
1700
1729
  #### Defined in
1701
1730
 
1702
- [packages/framework/esm-styleguide/src/icons/icons.tsx:363](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L363)
1731
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:364](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L364)
1732
+
1733
+ ___
1734
+
1735
+ ### MaybeIcon
1736
+
1737
+ • `Const` **MaybeIcon**: `MemoExoticComponent`<`ForwardRefExoticComponent`<{ `fallback?`: `ReactNode` ; `icon`: `string` } & [`IconProps`](API.md#iconprops) & `RefAttributes`<`SVGSVGElement`\>\>\>
1738
+
1739
+ This is a utility component that takes an `icon` and render it if the sprite for the icon
1740
+ is available. The goal is to make it easier to conditionally render configuration-specified icons.
1741
+
1742
+ **`example`**
1743
+ ```tsx
1744
+ <MaybeIcon icon='omrs-icon-baby' className={styles.myIconStyles} />
1745
+ ```
1746
+
1747
+ #### Defined in
1748
+
1749
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:711](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L711)
1750
+
1751
+ ___
1752
+
1753
+ ### MaybePictogram
1754
+
1755
+ • `Const` **MaybePictogram**: `MemoExoticComponent`<`ForwardRefExoticComponent`<{ `fallback?`: `ReactNode` ; `pictogram`: `string` } & [`PictogramProps`](API.md#pictogramprops) & `RefAttributes`<`SVGSVGElement`\>\>\>
1756
+
1757
+ This is a utility component that takes an `icon` and render it if the sprite for the icon
1758
+ is available. The goal is to make it easier to conditionally render configuration-specified icons.
1759
+
1760
+ **`example`**
1761
+ ```tsx
1762
+ <MaybeIcon icon='omrs-icon-baby' className={styles.myIconStyles} />
1763
+ ```
1764
+
1765
+ #### Defined in
1766
+
1767
+ [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:69](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L69)
1703
1768
 
1704
1769
  ___
1705
1770
 
@@ -1709,7 +1774,7 @@ ___
1709
1774
 
1710
1775
  #### Defined in
1711
1776
 
1712
- [packages/framework/esm-styleguide/src/icons/icons.tsx:371](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L371)
1777
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:372](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L372)
1713
1778
 
1714
1779
  ___
1715
1780
 
@@ -1719,7 +1784,7 @@ ___
1719
1784
 
1720
1785
  #### Defined in
1721
1786
 
1722
- [packages/framework/esm-styleguide/src/icons/icons.tsx:379](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L379)
1787
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:380](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L380)
1723
1788
 
1724
1789
  ___
1725
1790
 
@@ -1729,7 +1794,7 @@ ___
1729
1794
 
1730
1795
  #### Defined in
1731
1796
 
1732
- [packages/framework/esm-styleguide/src/icons/icons.tsx:387](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L387)
1797
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:388](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L388)
1733
1798
 
1734
1799
  ___
1735
1800
 
@@ -1741,7 +1806,7 @@ Billing
1741
1806
 
1742
1807
  #### Defined in
1743
1808
 
1744
- [packages/framework/esm-styleguide/src/icons/icons.tsx:396](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L396)
1809
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:397](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L397)
1745
1810
 
1746
1811
  ___
1747
1812
 
@@ -1751,7 +1816,7 @@ ___
1751
1816
 
1752
1817
  #### Defined in
1753
1818
 
1754
- [packages/framework/esm-styleguide/src/icons/icons.tsx:404](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L404)
1819
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:405](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L405)
1755
1820
 
1756
1821
  ___
1757
1822
 
@@ -1761,7 +1826,7 @@ ___
1761
1826
 
1762
1827
  #### Defined in
1763
1828
 
1764
- [packages/framework/esm-styleguide/src/icons/icons.tsx:412](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L412)
1829
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:413](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L413)
1765
1830
 
1766
1831
  ___
1767
1832
 
@@ -1783,7 +1848,7 @@ ___
1783
1848
 
1784
1849
  #### Defined in
1785
1850
 
1786
- [packages/framework/esm-styleguide/src/icons/icons.tsx:420](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L420)
1851
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:421](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L421)
1787
1852
 
1788
1853
  ___
1789
1854
 
@@ -1793,7 +1858,7 @@ ___
1793
1858
 
1794
1859
  #### Defined in
1795
1860
 
1796
- [packages/framework/esm-styleguide/src/icons/icons.tsx:428](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L428)
1861
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:429](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L429)
1797
1862
 
1798
1863
  ___
1799
1864
 
@@ -1803,7 +1868,7 @@ ___
1803
1868
 
1804
1869
  #### Defined in
1805
1870
 
1806
- [packages/framework/esm-styleguide/src/icons/icons.tsx:632](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L632)
1871
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:633](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L633)
1807
1872
 
1808
1873
  ___
1809
1874
 
@@ -1813,7 +1878,7 @@ ___
1813
1878
 
1814
1879
  #### Defined in
1815
1880
 
1816
- [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:60](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L60)
1881
+ [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:36](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L36)
1817
1882
 
1818
1883
  ___
1819
1884
 
@@ -1823,7 +1888,7 @@ ___
1823
1888
 
1824
1889
  #### Defined in
1825
1890
 
1826
- [packages/framework/esm-styleguide/src/icons/icons.tsx:436](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L436)
1891
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:437](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L437)
1827
1892
 
1828
1893
  ___
1829
1894
 
@@ -1833,7 +1898,7 @@ ___
1833
1898
 
1834
1899
  #### Defined in
1835
1900
 
1836
- [packages/framework/esm-styleguide/src/icons/icons.tsx:444](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L444)
1901
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:445](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L445)
1837
1902
 
1838
1903
  ___
1839
1904
 
@@ -1843,7 +1908,7 @@ ___
1843
1908
 
1844
1909
  #### Defined in
1845
1910
 
1846
- [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:66](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L66)
1911
+ [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:42](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L42)
1847
1912
 
1848
1913
  ___
1849
1914
 
@@ -1855,7 +1920,7 @@ This is a utility type for custom pictograms. Please maintain alphabetical order
1855
1920
 
1856
1921
  #### Defined in
1857
1922
 
1858
- [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:20](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L20)
1923
+ [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:112](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L112)
1859
1924
 
1860
1925
  ___
1861
1926
 
@@ -1865,7 +1930,7 @@ ___
1865
1930
 
1866
1931
  #### Defined in
1867
1932
 
1868
- [packages/framework/esm-styleguide/src/icons/icons.tsx:452](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L452)
1933
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:453](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L453)
1869
1934
 
1870
1935
  ___
1871
1936
 
@@ -1875,7 +1940,7 @@ ___
1875
1940
 
1876
1941
  #### Defined in
1877
1942
 
1878
- [packages/framework/esm-styleguide/src/icons/icons.tsx:460](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L460)
1943
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:461](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L461)
1879
1944
 
1880
1945
  ___
1881
1946
 
@@ -1885,7 +1950,7 @@ ___
1885
1950
 
1886
1951
  #### Defined in
1887
1952
 
1888
- [packages/framework/esm-styleguide/src/icons/icons.tsx:692](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L692)
1953
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:693](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L693)
1889
1954
 
1890
1955
  ___
1891
1956
 
@@ -1895,7 +1960,32 @@ ___
1895
1960
 
1896
1961
  #### Defined in
1897
1962
 
1898
- [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:72](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L72)
1963
+ [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:48](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L48)
1964
+
1965
+ ___
1966
+
1967
+ ### RenderIfValueIsTruthy
1968
+
1969
+ • `Const` **RenderIfValueIsTruthy**: `React.FC`<`PropsWithChildren`<{ `fallback?`: `React.ReactNode` ; `value`: `unknown` }\>\>
1970
+
1971
+ A really simple component that renders its children if the prop named `value` has a truthy value
1972
+
1973
+ **`example`**
1974
+ ```tsx
1975
+ <RenderIfValueIsTruthy value={variable}>
1976
+ <Component value={variable} />
1977
+ </RenderIfValueIsTruthy>
1978
+ ````
1979
+
1980
+ **`param`** The value to check whether or not its truthy
1981
+
1982
+ **`param`** What to render if the value is not truthy. If not specified, nothing will be rendered
1983
+
1984
+ **`param`** The components to render if the `value` is truthy
1985
+
1986
+ #### Defined in
1987
+
1988
+ [packages/framework/esm-react-utils/src/RenderIfValueIsTruthy.tsx:17](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/RenderIfValueIsTruthy.tsx#L17)
1899
1989
 
1900
1990
  ___
1901
1991
 
@@ -1905,7 +1995,7 @@ ___
1905
1995
 
1906
1996
  #### Defined in
1907
1997
 
1908
- [packages/framework/esm-styleguide/src/icons/icons.tsx:468](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L468)
1998
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:469](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L469)
1909
1999
 
1910
2000
  ___
1911
2001
 
@@ -1915,7 +2005,7 @@ ___
1915
2005
 
1916
2006
  #### Defined in
1917
2007
 
1918
- [packages/framework/esm-styleguide/src/icons/icons.tsx:476](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L476)
2008
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:477](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L477)
1919
2009
 
1920
2010
  ___
1921
2011
 
@@ -1925,7 +2015,7 @@ ___
1925
2015
 
1926
2016
  #### Defined in
1927
2017
 
1928
- [packages/framework/esm-styleguide/src/icons/icons.tsx:484](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L484)
2018
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:485](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L485)
1929
2019
 
1930
2020
  ___
1931
2021
 
@@ -1935,7 +2025,7 @@ ___
1935
2025
 
1936
2026
  #### Defined in
1937
2027
 
1938
- [packages/framework/esm-styleguide/src/icons/icons.tsx:500](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L500)
2028
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:501](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L501)
1939
2029
 
1940
2030
  ___
1941
2031
 
@@ -1945,7 +2035,7 @@ ___
1945
2035
 
1946
2036
  #### Defined in
1947
2037
 
1948
- [packages/framework/esm-styleguide/src/icons/icons.tsx:508](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L508)
2038
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:509](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L509)
1949
2039
 
1950
2040
  ___
1951
2041
 
@@ -1955,7 +2045,7 @@ ___
1955
2045
 
1956
2046
  #### Defined in
1957
2047
 
1958
- [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:78](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L78)
2048
+ [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:54](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L54)
1959
2049
 
1960
2050
  ___
1961
2051
 
@@ -1969,7 +2059,7 @@ Note this is an alias for ShoppingCartArrowDownIcon
1969
2059
 
1970
2060
  #### Defined in
1971
2061
 
1972
- [packages/framework/esm-styleguide/src/icons/icons.tsx:699](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L699)
2062
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:700](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L700)
1973
2063
 
1974
2064
  ___
1975
2065
 
@@ -1981,7 +2071,7 @@ Used as a button to add an item to the Order basket from a search
1981
2071
 
1982
2072
  #### Defined in
1983
2073
 
1984
- [packages/framework/esm-styleguide/src/icons/icons.tsx:534](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L534)
2074
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:535](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L535)
1985
2075
 
1986
2076
  ___
1987
2077
 
@@ -1993,7 +2083,7 @@ Order Basket, the UI to enter Orders for Medications, Referrals, Labs, Procedure
1993
2083
 
1994
2084
  #### Defined in
1995
2085
 
1996
- [packages/framework/esm-styleguide/src/icons/icons.tsx:525](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L525)
2086
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:526](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L526)
1997
2087
 
1998
2088
  ___
1999
2089
 
@@ -2005,7 +2095,7 @@ Used as action button to open ward in-patient note workspace
2005
2095
 
2006
2096
  #### Defined in
2007
2097
 
2008
- [packages/framework/esm-styleguide/src/icons/icons.tsx:543](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L543)
2098
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:544](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L544)
2009
2099
 
2010
2100
  ___
2011
2101
 
@@ -2015,7 +2105,7 @@ ___
2015
2105
 
2016
2106
  #### Defined in
2017
2107
 
2018
- [packages/framework/esm-styleguide/src/icons/icons.tsx:516](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L516)
2108
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:517](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L517)
2019
2109
 
2020
2110
  ___
2021
2111
 
@@ -2025,7 +2115,7 @@ ___
2025
2115
 
2026
2116
  #### Defined in
2027
2117
 
2028
- [packages/framework/esm-styleguide/src/icons/icons.tsx:551](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L551)
2118
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:552](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L552)
2029
2119
 
2030
2120
  ___
2031
2121
 
@@ -2035,7 +2125,7 @@ ___
2035
2125
 
2036
2126
  #### Defined in
2037
2127
 
2038
- [packages/framework/esm-styleguide/src/icons/icons.tsx:568](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L568)
2128
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:569](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L569)
2039
2129
 
2040
2130
  ___
2041
2131
 
@@ -2047,7 +2137,7 @@ Used as a button to add an item to the Order basket from a search
2047
2137
 
2048
2138
  #### Defined in
2049
2139
 
2050
- [packages/framework/esm-styleguide/src/icons/icons.tsx:560](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L560)
2140
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:561](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L561)
2051
2141
 
2052
2142
  ___
2053
2143
 
@@ -2059,7 +2149,7 @@ Lab investigations
2059
2149
 
2060
2150
  #### Defined in
2061
2151
 
2062
- [packages/framework/esm-styleguide/src/icons/icons.tsx:577](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L577)
2152
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:578](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L578)
2063
2153
 
2064
2154
  ___
2065
2155
 
@@ -2069,7 +2159,7 @@ ___
2069
2159
 
2070
2160
  #### Defined in
2071
2161
 
2072
- [packages/framework/esm-styleguide/src/icons/icons.tsx:585](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L585)
2162
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:586](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L586)
2073
2163
 
2074
2164
  ___
2075
2165
 
@@ -2079,7 +2169,7 @@ ___
2079
2169
 
2080
2170
  #### Defined in
2081
2171
 
2082
- [packages/framework/esm-styleguide/src/icons/icons.tsx:492](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L492)
2172
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:493](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L493)
2083
2173
 
2084
2174
  ___
2085
2175
 
@@ -2089,7 +2179,7 @@ ___
2089
2179
 
2090
2180
  #### Defined in
2091
2181
 
2092
- [packages/framework/esm-styleguide/src/icons/icons.tsx:593](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L593)
2182
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:594](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L594)
2093
2183
 
2094
2184
  ___
2095
2185
 
@@ -2099,7 +2189,7 @@ ___
2099
2189
 
2100
2190
  #### Defined in
2101
2191
 
2102
- [packages/framework/esm-styleguide/src/icons/icons.tsx:601](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L601)
2192
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:602](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L602)
2103
2193
 
2104
2194
  ___
2105
2195
 
@@ -2111,7 +2201,7 @@ User of OpenMRS e.g. My Account
2111
2201
 
2112
2202
  #### Defined in
2113
2203
 
2114
- [packages/framework/esm-styleguide/src/icons/icons.tsx:610](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L610)
2204
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:611](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L611)
2115
2205
 
2116
2206
  ___
2117
2207
 
@@ -2121,7 +2211,7 @@ ___
2121
2211
 
2122
2212
  #### Defined in
2123
2213
 
2124
- [packages/framework/esm-styleguide/src/icons/icons.tsx:618](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L618)
2214
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:619](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L619)
2125
2215
 
2126
2216
  ___
2127
2217
 
@@ -2131,7 +2221,7 @@ ___
2131
2221
 
2132
2222
  #### Defined in
2133
2223
 
2134
- [packages/framework/esm-styleguide/src/icons/icons.tsx:640](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L640)
2224
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:641](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L641)
2135
2225
 
2136
2226
  ___
2137
2227
 
@@ -2141,7 +2231,7 @@ ___
2141
2231
 
2142
2232
  #### Defined in
2143
2233
 
2144
- [packages/framework/esm-styleguide/src/icons/icons.tsx:626](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L626)
2234
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:627](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L627)
2145
2235
 
2146
2236
  ___
2147
2237
 
@@ -2151,7 +2241,7 @@ ___
2151
2241
 
2152
2242
  #### Defined in
2153
2243
 
2154
- [packages/framework/esm-styleguide/src/icons/icons.tsx:656](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L656)
2244
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:657](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L657)
2155
2245
 
2156
2246
  ___
2157
2247
 
@@ -2161,7 +2251,7 @@ ___
2161
2251
 
2162
2252
  #### Defined in
2163
2253
 
2164
- [packages/framework/esm-styleguide/src/icons/icons.tsx:648](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L648)
2254
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:649](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L649)
2165
2255
 
2166
2256
  ___
2167
2257
 
@@ -2171,7 +2261,7 @@ ___
2171
2261
 
2172
2262
  #### Defined in
2173
2263
 
2174
- [packages/framework/esm-styleguide/src/icons/icons.tsx:664](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L664)
2264
+ [packages/framework/esm-styleguide/src/icons/icons.tsx:665](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/icons/icons.tsx#L665)
2175
2265
 
2176
2266
  ___
2177
2267