strata-react 0.1.6 → 0.1.10
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/README.md +121 -13
- package/bin/strata-visual.js +6 -0
- package/dist/components/active-list.d.ts +46 -0
- package/dist/components/button.d.ts +9 -0
- package/dist/components/checkbox.d.ts +14 -0
- package/dist/components/composition.d.ts +35 -0
- package/dist/components/data-table.d.ts +14 -0
- package/dist/components/hotkeys.d.ts +29 -0
- package/dist/components/infinite-list.d.ts +29 -0
- package/dist/components/line-chart.d.ts +24 -3
- package/dist/components/link-card.d.ts +30 -0
- package/dist/components/meter.d.ts +32 -0
- package/dist/components/selection.d.ts +22 -0
- package/dist/components/theme.d.ts +7 -3
- package/dist/components/undo.d.ts +51 -8
- package/dist/components/virtual-list.d.ts +5 -1
- package/dist/index.d.ts +13 -5
- package/dist/index.js +1130 -81
- package/dist/index.js.map +1 -1
- package/dist/lib/format.d.ts +19 -1
- package/dist/query/index.d.ts +2 -1
- package/dist/query/infinite.d.ts +47 -0
- package/dist/{query-CmdlXVW_.js → query-CkOrBm3w.js} +37 -7
- package/dist/query-CkOrBm3w.js.map +1 -0
- package/dist/run-CLQi924v.js +605 -0
- package/dist/run-CLQi924v.js.map +1 -0
- package/dist/testing.js +1 -1
- package/dist/visual/capture.d.ts +22 -0
- package/dist/visual/cli.d.ts +5 -0
- package/dist/visual/compare.d.ts +31 -0
- package/dist/visual/index.d.ts +17 -0
- package/dist/visual/run.d.ts +22 -0
- package/dist/visual/serve.d.ts +11 -0
- package/dist/visual/targets.d.ts +17 -0
- package/dist/visual/types.d.ts +158 -0
- package/dist/visual-cli.js +118 -0
- package/dist/visual-cli.js.map +1 -0
- package/dist/visual.js +1 -0
- package/package.json +32 -8
- package/dist/query-CmdlXVW_.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,22 +6,30 @@
|
|
|
6
6
|
* @module strata-react
|
|
7
7
|
*/
|
|
8
8
|
export { cn, typeSteps } from './lib/utils';
|
|
9
|
-
export { createFormat, format, NBSP, type Format, type NumberFormatter } from './lib/format';
|
|
9
|
+
export { createFormat, format, NBSP, type ByteUnit, type Format, type NumberFormatter } from './lib/format';
|
|
10
10
|
export type { IconComponent } from './lib/icon';
|
|
11
|
-
export { Button, IconButton, buttonVariants, type ButtonProps, type IconButtonProps } from './components/button';
|
|
11
|
+
export { Button, IconButton, RowAction, buttonVariants, type ButtonProps, type IconButtonProps, type RowActionProps, } from './components/button';
|
|
12
|
+
export { Checkbox, type CheckboxProps } from './components/checkbox';
|
|
12
13
|
export { AsyncButton, useAsyncAction, type Phase, type AsyncLabels, type AsyncAction, type AsyncActionOptions } from './components/async-button';
|
|
13
14
|
export { Field, Input, Textarea, NativeSelect, ChoiceGroup, type FieldProps, type Choice } from './components/field';
|
|
14
15
|
export { Status, type Tone } from './components/status';
|
|
15
16
|
export { Metric, MetricStrip, type MetricProps } from './components/metric';
|
|
17
|
+
export { Meter, crossedThreshold, type MeterProps, type MeterThreshold } from './components/meter';
|
|
18
|
+
export { CompositionBar, type CompositionBarProps, type CompositionPart } from './components/composition';
|
|
19
|
+
export { LinkCard, LinkCardList, type LinkCardProps } from './components/link-card';
|
|
16
20
|
export { DataView, EmptyState, Skeleton, type Load } from './components/data-view';
|
|
17
|
-
export { DataTable, TableSkeleton, parseSort, serialiseSort, type Column, type Sort, type DataTableProps } from './components/data-table';
|
|
21
|
+
export { DataTable, TableSkeleton, parseSort, serialiseSort, type Column, type Sort, type DataTableProps, type RowSelection, } from './components/data-table';
|
|
22
|
+
export { BulkBar, useSelection } from './components/selection';
|
|
18
23
|
export { VirtualList } from './components/virtual-list';
|
|
24
|
+
export { InfiniteList, type InfiniteListProps } from './components/infinite-list';
|
|
19
25
|
export { LineChart, type LineChartProps, type Point } from './components/line-chart';
|
|
20
26
|
export { PageHeader } from './components/page-header';
|
|
21
|
-
export { UndoBar, useUndoable, type PendingRemoval } from './components/undo';
|
|
27
|
+
export { UndoBar, useUndoable, type PendingRemoval, type FailedRemoval, type Undoable, type UndoableOptions, } from './components/undo';
|
|
22
28
|
export { Done } from './components/done';
|
|
23
29
|
export { AppShell, SideNav, Breadcrumb, type NavItem } from './components/app-shell';
|
|
24
30
|
export { Tabs, type TabItem } from './components/tabs';
|
|
31
|
+
export { useHotkeys, KeysLegend, isTypingTarget, type Shortcut } from './components/hotkeys';
|
|
32
|
+
export { useActiveItem, ActiveList, type ActiveItem } from './components/active-list';
|
|
25
33
|
export { ThemeProvider, useColorScheme, useSystemColorScheme, ColorSchemeChoice, colorSchemeScript, COLOR_SCHEME_STORAGE_KEY, type ColorScheme, type ColorSchemePreference, type ColorSchemeLabels, type ColorSchemeState, } from './components/theme';
|
|
26
|
-
export { StrataQueryProvider, createQueryClient, toLoad, useLoad, fetchJson, HttpError, describeHttpError, type DescribeError, } from './query';
|
|
34
|
+
export { StrataQueryProvider, createQueryClient, toLoad, useLoad, useInfiniteLoad, fetchJson, HttpError, describeHttpError, type DescribeError, type InfiniteLoad, type InfiniteLoadOptions, type More, } from './query';
|
|
27
35
|
export { describeActionError } from './lib/errors';
|