@telegraph/data-list 0.1.4 → 0.2.0
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
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @telegraph/data-list
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#746](https://github.com/knocklabs/telegraph/pull/746) [`a1f2d79`](https://github.com/knocklabs/telegraph/commit/a1f2d79d904ab66c1d9494c0a27dbdd7426984f1) Thanks [@ksorathia](https://github.com/ksorathia)! - Standardize row layouts in `DataList`
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`f9dcbe7`](https://github.com/knocklabs/telegraph/commit/f9dcbe7bd8c79afd3dd25329b1f6ea6df202f85a)]:
|
|
12
|
+
- @telegraph/tooltip@0.2.2
|
|
13
|
+
|
|
3
14
|
## 0.1.4
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`@telegraph/icon`),t=require(`@telegraph/layout`),n=require(`@telegraph/tooltip`),r=require(`@telegraph/typography`);require(`react`);let i=require(`react/jsx-runtime`);var a=({direction:e=`column`,gap:n=`4`,...r})=>(0,i.jsx)(t.Stack,{direction:e,gap:n,...r}),o=({direction:e=`row`,gap:n=`1`,align:r=`baseline`,...a})=>(0,i.jsx)(t.Stack,{direction:e,gap:n,align:r,...a}),s=({maxW:a=`36`,w:o=`full`,icon:s,children:c,textProps:l,description:u,tooltipProps:d,...f})=>{let{color:p=`gray`,weight:m=`medium`,size:h=`1`,...g}=l||{};return(0,i.jsxs)(t.Stack,{direction:`row`,align:`baseline`,gap:`2`,maxW:a,w:o,...f,children:[s&&(0,i.jsx)(t.Stack,{alignSelf:`center`,children:(0,i.jsx)(e.Icon,{size:`0`,color:`gray`,...s})}),(0,i.jsx)(n.Tooltip,{label:u,enabled:!!u,...d,children:(0,i.jsx)(t.Stack,{direction:`row`,align:`center`,minH:`6`,children:(0,i.jsx)(r.Text,{as:`label`,...g,color:p,weight:m,size:h,borderBottom:u?`px`:void 0,borderStyle:u?`dashed`:void 0,children:c})})})]})},c=({w:e=`full`,minW:n=`0`,...r})=>(0,i.jsx)(t.Stack,{w:e,minW:n,...r}),l={List:a,ListItem:o,Label:s,Value:c,Item:({label:e,direction:t,icon:n,children:r,description:a,labelProps:l,valueProps:u,...d})=>(0,i.jsxs)(o,{direction:t,...d,children:[(0,i.jsx)(s,{icon:n,description:a,...l,children:e}),(0,i.jsx)(c,{...u,children:r})]})};exports.DataList=l;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/DataList/DataList.tsx"],"sourcesContent":["import { TgphComponentProps } from \"@telegraph/helpers\";\nimport { Icon } from \"@telegraph/icon\";\nimport { Stack } from \"@telegraph/layout\";\nimport { Tooltip } from \"@telegraph/tooltip\";\nimport { Text } from \"@telegraph/typography\";\nimport React from \"react\";\n\nexport type ListProps = TgphComponentProps<typeof Stack>;\n\nconst List = ({ direction = \"column\", gap = \"4\", ...props }: ListProps) => {\n return <Stack direction={direction} gap={gap} {...props} />;\n};\n\nexport type ListItemProps = TgphComponentProps<typeof Stack>;\n\nconst ListItem = ({\n direction = \"row\",\n gap = \"1\",\n align = \"baseline\",\n ...props\n}: ListItemProps) => {\n return <Stack direction={direction} gap={gap} align={align} {...props} />;\n};\n\nexport type LabelProps = {\n textProps?: TgphComponentProps<typeof Text>;\n icon?: TgphComponentProps<typeof Icon>;\n description?: React.ReactNode;\n tooltipProps?: Omit<\n Partial<TgphComponentProps<typeof Tooltip>>,\n \"enabled\" | \"label\"\n >;\n} & TgphComponentProps<typeof Stack>;\n\nconst Label = ({\n maxW = \"36\",\n
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/DataList/DataList.tsx"],"sourcesContent":["import { TgphComponentProps } from \"@telegraph/helpers\";\nimport { Icon } from \"@telegraph/icon\";\nimport { Stack } from \"@telegraph/layout\";\nimport { Tooltip } from \"@telegraph/tooltip\";\nimport { Text } from \"@telegraph/typography\";\nimport React from \"react\";\n\nexport type ListProps = TgphComponentProps<typeof Stack>;\n\nconst List = ({ direction = \"column\", gap = \"4\", ...props }: ListProps) => {\n return <Stack direction={direction} gap={gap} {...props} />;\n};\n\nexport type ListItemProps = TgphComponentProps<typeof Stack>;\n\nconst ListItem = ({\n direction = \"row\",\n gap = \"1\",\n align = \"baseline\",\n ...props\n}: ListItemProps) => {\n return <Stack direction={direction} gap={gap} align={align} {...props} />;\n};\n\nexport type LabelProps = {\n textProps?: TgphComponentProps<typeof Text>;\n icon?: TgphComponentProps<typeof Icon>;\n description?: React.ReactNode;\n tooltipProps?: Omit<\n Partial<TgphComponentProps<typeof Tooltip>>,\n \"enabled\" | \"label\"\n >;\n} & TgphComponentProps<typeof Stack>;\n\nconst Label = ({\n maxW = \"36\",\n w = \"full\",\n icon,\n children,\n textProps,\n description,\n tooltipProps,\n ...props\n}: LabelProps) => {\n const {\n color = \"gray\",\n weight = \"medium\",\n size = \"1\",\n ...restTextProps\n } = textProps || {};\n\n return (\n <Stack\n direction=\"row\"\n align=\"baseline\"\n gap=\"2\"\n maxW={maxW}\n w={w}\n {...props}\n >\n {icon && (\n <Stack alignSelf=\"center\">\n <Icon size=\"0\" color=\"gray\" {...icon} />\n </Stack>\n )}\n <Tooltip label={description} enabled={!!description} {...tooltipProps}>\n <Stack direction=\"row\" align=\"center\" minH=\"6\">\n <Text\n as=\"label\"\n {...restTextProps}\n color={color}\n weight={weight}\n size={size}\n borderBottom={description ? \"px\" : undefined}\n borderStyle={description ? \"dashed\" : undefined}\n >\n {children}\n </Text>\n </Stack>\n </Tooltip>\n </Stack>\n );\n};\n\nexport type ValueProps = TgphComponentProps<typeof Stack>;\n\nconst Value = ({ w = \"full\", minW = \"0\", ...props }: ValueProps) => {\n return <Stack w={w} minW={minW} {...props} />;\n};\n\nexport type ItemProps = ListItemProps & {\n label: React.ReactNode | string;\n icon?: TgphComponentProps<typeof Icon>;\n description?: React.ReactNode;\n labelProps?: TgphComponentProps<typeof Label>;\n valueProps?: TgphComponentProps<typeof Value>;\n};\n\nconst Item = ({\n label,\n direction,\n icon,\n children,\n description,\n labelProps,\n valueProps,\n ...props\n}: ItemProps) => {\n return (\n <ListItem direction={direction} {...props}>\n <Label icon={icon} description={description} {...labelProps}>\n {label}\n </Label>\n <Value {...valueProps}>{children}</Value>\n </ListItem>\n );\n};\n\nconst DataList = {\n List,\n ListItem,\n Label,\n Value,\n Item,\n};\n\nexport { DataList };\n"],"mappings":"0PASA,IAAM,GAAQ,CAAE,YAAY,SAAU,MAAM,IAAK,GAAG,MAC3C,EAAA,EAAA,KAAC,EAAA,MAAD,CAAkB,YAAgB,MAAK,GAAI,EAAS,CAAA,CAKvD,GAAY,CAChB,YAAY,MACZ,MAAM,IACN,QAAQ,WACR,GAAG,MAEI,EAAA,EAAA,KAAC,EAAA,MAAD,CAAkB,YAAgB,MAAY,QAAO,GAAI,EAAS,CAAA,CAarE,GAAS,CACb,OAAO,KACP,IAAI,OACJ,OACA,WACA,YACA,cACA,eACA,GAAG,KACa,CAChB,GAAM,CACJ,QAAQ,OACR,SAAS,SACT,OAAO,IACP,GAAG,GACD,GAAa,EAAE,CAEnB,OACE,EAAA,EAAA,MAAC,EAAA,MAAD,CACE,UAAU,MACV,MAAM,WACN,IAAI,IACE,OACH,IACH,GAAI,WANN,CAQG,IACC,EAAA,EAAA,KAAC,EAAA,MAAD,CAAO,UAAU,mBACf,EAAA,EAAA,KAAC,EAAA,KAAD,CAAM,KAAK,IAAI,MAAM,O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
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
1
|
+
import { Icon as e } from "@telegraph/icon";
|
|
2
|
+
import { Stack as t } from "@telegraph/layout";
|
|
3
|
+
import { Tooltip as n } from "@telegraph/tooltip";
|
|
4
|
+
import { Text as r } from "@telegraph/typography";
|
|
5
|
+
import "react";
|
|
6
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
|
+
//#region src/DataList/DataList.tsx
|
|
8
|
+
var o = ({ direction: e = "column", gap: n = "4", ...r }) => /* @__PURE__ */ i(t, {
|
|
9
|
+
direction: e,
|
|
10
|
+
gap: n,
|
|
11
|
+
...r
|
|
12
|
+
}), s = ({ direction: e = "row", gap: n = "1", align: r = "baseline", ...a }) => /* @__PURE__ */ i(t, {
|
|
13
|
+
direction: e,
|
|
14
|
+
gap: n,
|
|
15
|
+
align: r,
|
|
16
|
+
...a
|
|
17
|
+
}), c = ({ maxW: o = "36", w: s = "full", icon: c, children: l, textProps: u, description: d, tooltipProps: f, ...p }) => {
|
|
18
|
+
let { color: m = "gray", weight: h = "medium", size: g = "1", ..._ } = u || {};
|
|
19
|
+
return /* @__PURE__ */ a(t, {
|
|
20
|
+
direction: "row",
|
|
21
|
+
align: "baseline",
|
|
22
|
+
gap: "2",
|
|
23
|
+
maxW: o,
|
|
24
|
+
w: s,
|
|
25
|
+
...p,
|
|
26
|
+
children: [c && /* @__PURE__ */ i(t, {
|
|
27
|
+
alignSelf: "center",
|
|
28
|
+
children: /* @__PURE__ */ i(e, {
|
|
29
|
+
size: "0",
|
|
30
|
+
color: "gray",
|
|
31
|
+
...c
|
|
32
|
+
})
|
|
33
|
+
}), /* @__PURE__ */ i(n, {
|
|
34
|
+
label: d,
|
|
35
|
+
enabled: !!d,
|
|
36
|
+
...f,
|
|
37
|
+
children: /* @__PURE__ */ i(t, {
|
|
38
|
+
direction: "row",
|
|
39
|
+
align: "center",
|
|
40
|
+
minH: "6",
|
|
41
|
+
children: /* @__PURE__ */ i(r, {
|
|
42
|
+
as: "label",
|
|
43
|
+
..._,
|
|
44
|
+
color: m,
|
|
45
|
+
weight: h,
|
|
46
|
+
size: g,
|
|
47
|
+
borderBottom: d ? "px" : void 0,
|
|
48
|
+
borderStyle: d ? "dashed" : void 0,
|
|
49
|
+
children: l
|
|
50
|
+
})
|
|
51
|
+
})
|
|
52
|
+
})]
|
|
53
|
+
});
|
|
54
|
+
}, l = ({ w: e = "full", minW: n = "0", ...r }) => /* @__PURE__ */ i(t, {
|
|
55
|
+
w: e,
|
|
56
|
+
minW: n,
|
|
57
|
+
...r
|
|
58
|
+
}), u = {
|
|
59
|
+
List: o,
|
|
60
|
+
ListItem: s,
|
|
61
|
+
Label: c,
|
|
62
|
+
Value: l,
|
|
63
|
+
Item: ({ label: e, direction: t, icon: n, children: r, description: o, labelProps: u, valueProps: d, ...f }) => /* @__PURE__ */ a(s, {
|
|
64
|
+
direction: t,
|
|
65
|
+
...f,
|
|
66
|
+
children: [/* @__PURE__ */ i(c, {
|
|
67
|
+
icon: n,
|
|
68
|
+
description: o,
|
|
69
|
+
...u,
|
|
70
|
+
children: e
|
|
71
|
+
}), /* @__PURE__ */ i(l, {
|
|
72
|
+
...d,
|
|
73
|
+
children: r
|
|
74
|
+
})]
|
|
75
|
+
})
|
|
74
76
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
//# sourceMappingURL=index.mjs.map
|
|
77
|
+
//#endregion
|
|
78
|
+
export { u as DataList };
|
|
79
|
+
|
|
80
|
+
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/DataList/DataList.tsx"],"sourcesContent":["import { TgphComponentProps } from \"@telegraph/helpers\";\nimport { Icon } from \"@telegraph/icon\";\nimport { Stack } from \"@telegraph/layout\";\nimport { Tooltip } from \"@telegraph/tooltip\";\nimport { Text } from \"@telegraph/typography\";\nimport React from \"react\";\n\nexport type ListProps = TgphComponentProps<typeof Stack>;\n\nconst List = ({ direction = \"column\", gap = \"4\", ...props }: ListProps) => {\n return <Stack direction={direction} gap={gap} {...props} />;\n};\n\nexport type ListItemProps = TgphComponentProps<typeof Stack>;\n\nconst ListItem = ({\n direction = \"row\",\n gap = \"1\",\n align = \"baseline\",\n ...props\n}: ListItemProps) => {\n return <Stack direction={direction} gap={gap} align={align} {...props} />;\n};\n\nexport type LabelProps = {\n textProps?: TgphComponentProps<typeof Text>;\n icon?: TgphComponentProps<typeof Icon>;\n description?: React.ReactNode;\n tooltipProps?: Omit<\n Partial<TgphComponentProps<typeof Tooltip>>,\n \"enabled\" | \"label\"\n >;\n} & TgphComponentProps<typeof Stack>;\n\nconst Label = ({\n maxW = \"36\",\n
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/DataList/DataList.tsx"],"sourcesContent":["import { TgphComponentProps } from \"@telegraph/helpers\";\nimport { Icon } from \"@telegraph/icon\";\nimport { Stack } from \"@telegraph/layout\";\nimport { Tooltip } from \"@telegraph/tooltip\";\nimport { Text } from \"@telegraph/typography\";\nimport React from \"react\";\n\nexport type ListProps = TgphComponentProps<typeof Stack>;\n\nconst List = ({ direction = \"column\", gap = \"4\", ...props }: ListProps) => {\n return <Stack direction={direction} gap={gap} {...props} />;\n};\n\nexport type ListItemProps = TgphComponentProps<typeof Stack>;\n\nconst ListItem = ({\n direction = \"row\",\n gap = \"1\",\n align = \"baseline\",\n ...props\n}: ListItemProps) => {\n return <Stack direction={direction} gap={gap} align={align} {...props} />;\n};\n\nexport type LabelProps = {\n textProps?: TgphComponentProps<typeof Text>;\n icon?: TgphComponentProps<typeof Icon>;\n description?: React.ReactNode;\n tooltipProps?: Omit<\n Partial<TgphComponentProps<typeof Tooltip>>,\n \"enabled\" | \"label\"\n >;\n} & TgphComponentProps<typeof Stack>;\n\nconst Label = ({\n maxW = \"36\",\n w = \"full\",\n icon,\n children,\n textProps,\n description,\n tooltipProps,\n ...props\n}: LabelProps) => {\n const {\n color = \"gray\",\n weight = \"medium\",\n size = \"1\",\n ...restTextProps\n } = textProps || {};\n\n return (\n <Stack\n direction=\"row\"\n align=\"baseline\"\n gap=\"2\"\n maxW={maxW}\n w={w}\n {...props}\n >\n {icon && (\n <Stack alignSelf=\"center\">\n <Icon size=\"0\" color=\"gray\" {...icon} />\n </Stack>\n )}\n <Tooltip label={description} enabled={!!description} {...tooltipProps}>\n <Stack direction=\"row\" align=\"center\" minH=\"6\">\n <Text\n as=\"label\"\n {...restTextProps}\n color={color}\n weight={weight}\n size={size}\n borderBottom={description ? \"px\" : undefined}\n borderStyle={description ? \"dashed\" : undefined}\n >\n {children}\n </Text>\n </Stack>\n </Tooltip>\n </Stack>\n );\n};\n\nexport type ValueProps = TgphComponentProps<typeof Stack>;\n\nconst Value = ({ w = \"full\", minW = \"0\", ...props }: ValueProps) => {\n return <Stack w={w} minW={minW} {...props} />;\n};\n\nexport type ItemProps = ListItemProps & {\n label: React.ReactNode | string;\n icon?: TgphComponentProps<typeof Icon>;\n description?: React.ReactNode;\n labelProps?: TgphComponentProps<typeof Label>;\n valueProps?: TgphComponentProps<typeof Value>;\n};\n\nconst Item = ({\n label,\n direction,\n icon,\n children,\n description,\n labelProps,\n valueProps,\n ...props\n}: ItemProps) => {\n return (\n <ListItem direction={direction} {...props}>\n <Label icon={icon} description={description} {...labelProps}>\n {label}\n </Label>\n <Value {...valueProps}>{children}</Value>\n </ListItem>\n );\n};\n\nconst DataList = {\n List,\n ListItem,\n Label,\n Value,\n Item,\n};\n\nexport { DataList };\n"],"mappings":";;;;;;;AASA,IAAM,KAAQ,EAAE,eAAY,UAAU,SAAM,KAAK,GAAG,QAC3C,kBAAC,GAAD;CAAkB;CAAgB;CAAK,GAAI;CAAS,CAAA,EAKvD,KAAY,EAChB,eAAY,OACZ,SAAM,KACN,WAAQ,YACR,GAAG,QAEI,kBAAC,GAAD;CAAkB;CAAgB;CAAY;CAAO,GAAI;CAAS,CAAA,EAarE,KAAS,EACb,UAAO,MACP,OAAI,QACJ,SACA,aACA,cACA,gBACA,iBACA,GAAG,QACa;CAChB,IAAM,EACJ,WAAQ,QACR,YAAS,UACT,UAAO,KACP,GAAG,MACD,KAAa,EAAE;AAEnB,QACE,kBAAC,GAAD;EACE,WAAU;EACV,OAAM;EACN,KAAI;EACE;EACH;EACH,GAAI;YANN,CAQG,KACC,kBAAC,GAAD;GAAO,WAAU;aACf,kBAAC,GAAD;IAAM,MAAK;IAAI,OAAM;IAAO,GAAI;IAAQ,CAAA;GAClC,CAAA,EAEV,kBAAC,GAAD;GAAS,OAAO;GAAa,SAAS,CAAC,CAAC;GAAa,GAAI;aACvD,kBAAC,GAAD;IAAO,WAAU;IAAM,OAAM;IAAS,MAAK;cACzC,kBAAC,GAAD;KACE,IAAG;KACH,GAAI;KACG;KACC;KACF;KACN,cAAc,IAAc,OAAO,KAAA;KACnC,aAAa,IAAc,WAAW,KAAA;KAErC;KACI,CAAA;IACD,CAAA;GACA,CAAA,CACJ;;GAMN,KAAS,EAAE,OAAI,QAAQ,UAAO,KAAK,GAAG,QACnC,kBAAC,GAAD;CAAU;CAAS;CAAM,GAAI;CAAS,CAAA,EA+BzC,IAAW;CACf;CACA;CACA;CACA;CACA,OAzBY,EACZ,UACA,cACA,SACA,aACA,gBACA,eACA,eACA,GAAG,QAGD,kBAAC,GAAD;EAAqB;EAAW,GAAI;YAApC,CACE,kBAAC,GAAD;GAAa;GAAmB;GAAa,GAAI;aAC9C;GACK,CAAA,EACR,kBAAC,GAAD;GAAO,GAAI;GAAa;GAAiB,CAAA,CAChC;;CAUd"}
|
|
@@ -12,9 +12,9 @@ export type LabelProps = {
|
|
|
12
12
|
description?: React.ReactNode;
|
|
13
13
|
tooltipProps?: Omit<Partial<TgphComponentProps<typeof Tooltip>>, "enabled" | "label">;
|
|
14
14
|
} & TgphComponentProps<typeof Stack>;
|
|
15
|
-
declare const Label: ({ maxW,
|
|
15
|
+
declare const Label: ({ maxW, w, icon, children, textProps, description, tooltipProps, ...props }: LabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export type ValueProps = TgphComponentProps<typeof Stack>;
|
|
17
|
-
declare const Value: ({ ...props }: ValueProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare const Value: ({ w, minW, ...props }: ValueProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export type ItemProps = ListItemProps & {
|
|
19
19
|
label: React.ReactNode | string;
|
|
20
20
|
icon?: TgphComponentProps<typeof Icon>;
|
|
@@ -25,8 +25,8 @@ export type ItemProps = ListItemProps & {
|
|
|
25
25
|
declare const DataList: {
|
|
26
26
|
List: ({ direction, gap, ...props }: ListProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
ListItem: ({ direction, gap, align, ...props }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
Label: ({ maxW,
|
|
29
|
-
Value: ({ ...props }: ValueProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
Label: ({ maxW, w, icon, children, textProps, description, tooltipProps, ...props }: LabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
Value: ({ w, minW, ...props }: ValueProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
Item: ({ label, direction, icon, children, description, labelProps, valueProps, ...props }: ItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
31
|
};
|
|
32
32
|
export { DataList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataList.d.ts","sourceRoot":"","sources":["../../../src/DataList/DataList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,SAAS,GAAG,kBAAkB,CAAC,OAAO,KAAK,CAAC,CAAC;AAMzD,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,OAAO,KAAK,CAAC,CAAC;AAW7D,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,CAAC,EAAE,kBAAkB,CAAC,OAAO,IAAI,CAAC,CAAC;IAC5C,IAAI,CAAC,EAAE,kBAAkB,CAAC,OAAO,IAAI,CAAC,CAAC;IACvC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,IAAI,CACjB,OAAO,CAAC,kBAAkB,CAAC,OAAO,OAAO,CAAC,CAAC,EAC3C,SAAS,GAAG,OAAO,CACpB,CAAC;CACH,GAAG,kBAAkB,CAAC,OAAO,KAAK,CAAC,CAAC;AAErC,QAAA,MAAM,KAAK,GAAI,
|
|
1
|
+
{"version":3,"file":"DataList.d.ts","sourceRoot":"","sources":["../../../src/DataList/DataList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAA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KAAK,CAAC,CAAC;CAC/C,CAAC;AAsBF,QAAA,MAAM,QAAQ;yCA7G+C,SAAS;oDAWnE,aAAa;yFAuBb,UAAU;mCA2CwC,UAAU;gGAqB5D,SAAS;CAiBX,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telegraph/data-list",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Flexible data list component for displaying label-value pairs in a structured, composable format.",
|
|
5
5
|
"repository": "https://github.com/knocklabs/telegraph/tree/main/packages/data-list",
|
|
6
6
|
"author": "@knocklabs",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@telegraph/helpers": "^0.0.15",
|
|
34
34
|
"@telegraph/icon": "^0.5.0",
|
|
35
35
|
"@telegraph/layout": "^0.5.0",
|
|
36
|
-
"@telegraph/tooltip": "^0.2.
|
|
36
|
+
"@telegraph/tooltip": "^0.2.2",
|
|
37
37
|
"@telegraph/typography": "^0.4.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"@telegraph/vite-config": "^0.0.15",
|
|
45
45
|
"@types/react": "^19.2.9",
|
|
46
46
|
"eslint": "^10.2.0",
|
|
47
|
-
"react": "^19.2.
|
|
48
|
-
"react-dom": "^19.2.
|
|
49
|
-
"typescript": "^
|
|
50
|
-
"vite": "^
|
|
47
|
+
"react": "^19.2.5",
|
|
48
|
+
"react-dom": "^19.2.5",
|
|
49
|
+
"typescript": "^6.0.2",
|
|
50
|
+
"vite": "^8.0.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": "^18.0.0 || ^19.0.0",
|