playbook_ui_docs 14.6.2.pre.alpha.PBNTR633dropdownavailablepropstable4380 → 14.6.2.pre.alpha.PBNTR666advancedtablefirstcolumn4406

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4fa90c698cd24c29959cf0f38b1e9e4151129d5377098f12d40f675656b295c6
4
- data.tar.gz: 8c1ddadce4e3f95a44224eec0736a6f09bbce1a24d1d729888ec27f137d47e1e
3
+ metadata.gz: 72bed13556b805b2995e8a978211fe659df2d0189dac7889d79b812ffb3ca12c
4
+ data.tar.gz: 34cf225a734a6a137713d9b12102956f95fd1b5f08a631d67179a2c27cf22b18
5
5
  SHA512:
6
- metadata.gz: bf91282d845229239f7675c4f4976627086a9b708a6bafebaa78c6db39a5f8cc620fd5e14a995ba6f5bf1a01d50fc87f86f9cd6a4f1a31a91cd68a436862299a
7
- data.tar.gz: e1bf87c40f11c7dbb3a7fa0c06150212e862b7357598d7a0eef1191f6806e0efbc1023f1f3a54dadb41e6daec2f87e8417b096952623f59b539519fc3e7ab2d9
6
+ metadata.gz: 58f042df83af9fe5ae8753542f1af67077985f715e8946e1cb587ca7ade659c4190d6fb2ffadb3446b2f8508fa21eda7eda9793e0403ee6c5ee1d8f36aba3214
7
+ data.tar.gz: 844df3bf7b1eec78f0a5f32e731bf18956db6d4216979533cd8d413e15fed5fff6ba37f753fcb5564aa0159c1218427a3cbd91a051d44f26930e3f2c912337fc
@@ -1,5 +1,5 @@
1
1
  import React from "react"
2
- import { AdvancedTable, Pill, Body, Flex, Detail, Caption } from "playbook-ui"
2
+ import { AdvancedTable, Pill, Body, Flex, Detail, Caption, Badge, Title } from "playbook-ui"
3
3
  import MOCK_DATA from "./advanced_table_mock_data.json"
4
4
 
5
5
  const AdvancedTableCustomCell = (props) => {
@@ -8,7 +8,18 @@ const AdvancedTableCustomCell = (props) => {
8
8
  accessor: "year",
9
9
  label: "Year",
10
10
  cellAccessors: ["quarter", "month", "day"],
11
-
11
+ customRenderer: (row, value) => (
12
+ <Flex>
13
+ <Title size={4}
14
+ text={value}
15
+ />
16
+ <Badge
17
+ marginLeft="sm"
18
+ text={row.original.newEnrollments > 20 ? "High" : "Low"}
19
+ variant="neutral"
20
+ />
21
+ </Flex>
22
+ ),
12
23
  },
13
24
  {
14
25
  accessor: "newEnrollments",