@voxel51/voodo 2.8.0-responsive.1 → 2.8.0-responsive.2
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/dist/components/DataTable/DataTable.d.ts +33 -1
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/Stack/Stack.d.ts +1 -1
- package/dist/components/Stack/Stack.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2721 -2649
- package/dist/index.js.map +1 -1
- package/dist/util/useScrollEdges.d.ts +12 -0
- package/dist/util/useScrollEdges.d.ts.map +1 -0
- package/dist/voodo.css +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,12 @@ export type DataTableColumn = {
|
|
|
15
15
|
/** Hides the column (header and cells) on windows narrower than this. Wide mode only. */
|
|
16
16
|
hideBelow?: Breakpoint;
|
|
17
17
|
align?: "start" | "end";
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Column width in wide mode: a length such as `"16rem"`; `"fit"` hugs the
|
|
20
|
+
* content without wrapping; `"fill"` takes the free space and truncates
|
|
21
|
+
* first. Give the `primary` column `"fill"` and the others `"fit"` for a
|
|
22
|
+
* row of one flexible card then compact cells.
|
|
23
|
+
*/
|
|
19
24
|
width?: string;
|
|
20
25
|
};
|
|
21
26
|
/** A row of a {@link DataTable}. */
|
|
@@ -42,6 +47,13 @@ export interface DataTableProps {
|
|
|
42
47
|
/** The table shows cards while it is narrower than this. Defaults to `"sm"`. */
|
|
43
48
|
cardBelow?: Breakpoint;
|
|
44
49
|
className?: string;
|
|
50
|
+
/** Names the table for assistive technology. */
|
|
51
|
+
"aria-label"?: string;
|
|
52
|
+
/**
|
|
53
|
+
* More rows, as {@link DataTableRowItem} elements: for a row which needs
|
|
54
|
+
* hooks or state of its own. They follow `rows`.
|
|
55
|
+
*/
|
|
56
|
+
children?: ReactNode;
|
|
45
57
|
}
|
|
46
58
|
/**
|
|
47
59
|
* A table built from a column model. While the table itself is narrower
|
|
@@ -78,6 +90,26 @@ export interface DataTableProps {
|
|
|
78
90
|
* @param empty Shown in place of the rows when there are none.
|
|
79
91
|
* @param cardBelow Breakpoint under which the table shows cards. Defaults to `"sm"` (640px).
|
|
80
92
|
* @param className Additional CSS class names for the table, or the box holding the cards.
|
|
93
|
+
* @param aria-label Names the table for assistive technology.
|
|
94
|
+
* @param children More rows as {@link DataTableRowItem} elements, for rows with hooks or state.
|
|
81
95
|
*/
|
|
82
96
|
export declare const DataTable: FC<DataTableProps>;
|
|
97
|
+
/**
|
|
98
|
+
* A row of a {@link DataTable}, rendered as a table row or a card to match
|
|
99
|
+
* the table. Use it as a child of `DataTable` when a row needs hooks or state
|
|
100
|
+
* of its own; its props are those of a {@link DataTableRow}, without `id`.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```tsx
|
|
104
|
+
* const RunRow = ({ run }: { run: Run }) => {
|
|
105
|
+
* const [open, setOpen] = useState(false);
|
|
106
|
+
* return <DataTableRowItem cells={{ name: run.name, menu: <Menu open={open} /> }} />;
|
|
107
|
+
* };
|
|
108
|
+
*
|
|
109
|
+
* <DataTable columns={columns} rows={[]}>
|
|
110
|
+
* {runs.map((run) => <RunRow key={run.id} run={run} />)}
|
|
111
|
+
* </DataTable>
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
export declare const DataTableRowItem: FC<Omit<DataTableRow, "id">>;
|
|
83
115
|
//# sourceMappingURL=DataTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,EAAE,EACF,cAAc,EAEd,SAAS,E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C,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1C,4EAA4E;IAC5E,KAAK,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC,CAAC;IAC5C;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,sDAAsD;IACtD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,gFAAgF;IAChF,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAkOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CA+CxC,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAQzD,CAAC"}
|
|
@@ -52,7 +52,7 @@ export interface StackProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
52
52
|
* @param orientation Orientation of the stack. See {@link Orientation}.
|
|
53
53
|
* @param spacing Spacing between child components in the stack. See {@link Spacing}.
|
|
54
54
|
* @param wrap If `true`, children flow onto further lines when they do not fit on one.
|
|
55
|
-
* @param scroll If `true`, children stay on one line that scrolls sideways with a hidden scrollbar, each at its own width (filter pill rows on a phone).
|
|
55
|
+
* @param scroll If `true`, children stay on one line that scrolls sideways with a hidden scrollbar, each at its own width (filter pill rows on a phone). The edge with more content beyond it fades.
|
|
56
56
|
* @param children Content which is wrapped by this component.
|
|
57
57
|
* @param className `class` overrides to apply to the component.
|
|
58
58
|
* @param props Additional HTML properties to apply to the component.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../src/components/Stack/Stack.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,cAAc,
|
|
1
|
+
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../src/components/Stack/Stack.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,cAAc,EAAe,MAAM,OAAO,CAAC;AAEhE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAI/D,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,cAAc,CAAC;IAChE,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yEAAyE;IACzE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,sGAAsG;IACtG,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AA2BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,eAAO,MAAM,KAAK,uGA8CjB,CAAC"}
|
|
@@ -13,7 +13,7 @@ export interface TooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, "cont
|
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* A tooltip which appears when hovering over the wrapped content, or for a
|
|
16
|
-
* moment after a
|
|
16
|
+
* moment after a long press on a touch screen (a tap does not show it). It stays
|
|
17
17
|
* inside the viewport: it flips to the opposite side when its own side has no
|
|
18
18
|
* room, slides along that side near an edge with its arrow still on the
|
|
19
19
|
* content, and follows the content on scroll and resize.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAUA,OAAO,EAEL,KAAK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