@stackone/malachite 2.85.0 → 2.87.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/COMPONENTS.md +6 -5
- package/dist/components/Accordion.js +130 -103
- package/dist/components/Accordion.js.map +1 -1
- package/dist/components/Button.js.map +1 -1
- package/dist/components/Card.js +128 -75
- package/dist/components/Card.js.map +1 -1
- package/dist/components/FilterSearch.js +228 -224
- package/dist/components/FilterSearch.js.map +1 -1
- package/dist/components/FrameHeader.js +36 -0
- package/dist/components/FrameHeader.js.map +1 -0
- package/dist/components/LoadingBar.js +5 -5
- package/dist/components/LoadingBar.js.map +1 -1
- package/dist/components/MultiSelect.js +431 -382
- package/dist/components/MultiSelect.js.map +1 -1
- package/dist/components/SplitButton.js.map +1 -1
- package/dist/components/Surface.js +211 -159
- package/dist/components/Surface.js.map +1 -1
- package/dist/components/Table/Table.js +630 -606
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/components/TimeBarChart/TimeBarChart.js +241 -0
- package/dist/components/TimeBarChart/TimeBarChart.js.map +1 -0
- package/dist/components/TimeBarChart/TimeBarChartAxes.js +49 -0
- package/dist/components/TimeBarChart/TimeBarChartAxes.js.map +1 -0
- package/dist/components/TimeBarChart/TimeBarChartBars.js +58 -0
- package/dist/components/TimeBarChart/TimeBarChartBars.js.map +1 -0
- package/dist/components/TimeBarChart/TimeBarChartLegend.js +29 -0
- package/dist/components/TimeBarChart/TimeBarChartLegend.js.map +1 -0
- package/dist/components/TimeBarChart/TimeBarChartTable.js +33 -0
- package/dist/components/TimeBarChart/TimeBarChartTable.js.map +1 -0
- package/dist/components/TimeBarChart/TimeBarChartTooltip.js +77 -0
- package/dist/components/TimeBarChart/TimeBarChartTooltip.js.map +1 -0
- package/dist/components/TimeBarChart/stackLayout.js +25 -0
- package/dist/components/TimeBarChart/stackLayout.js.map +1 -0
- package/dist/components/TimeBarChart/timeBuckets.js +133 -0
- package/dist/components/TimeBarChart/timeBuckets.js.map +1 -0
- package/dist/components/TimeBarChart/tones.js +10 -0
- package/dist/components/TimeBarChart/tones.js.map +1 -0
- package/dist/components/buttonStyles.js +2 -0
- package/dist/components/buttonStyles.js.map +1 -1
- package/dist/components/dateMath.js +1 -0
- package/dist/components/dateMath.js.map +1 -1
- package/dist/components/filterSearchModel.js +53 -45
- package/dist/components/filterSearchModel.js.map +1 -1
- package/dist/components/focusRing.js +8 -7
- package/dist/components/focusRing.js.map +1 -1
- package/dist/components/frameStyles.js +14 -0
- package/dist/components/frameStyles.js.map +1 -0
- package/dist/components/headerContent.js +10 -0
- package/dist/components/headerContent.js.map +1 -0
- package/dist/index.d.ts +149 -18
- package/dist/index.js +24 -22
- package/dist/index.js.map +1 -1
- package/dist/tailwind.css.js +1 -1
- package/dist/theme.js +340 -340
- package/dist/theme.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frameStyles.js","sources":["../../src/components/frameStyles.ts"],"sourcesContent":["import type React from 'react';\n\n/**\n * The grey frame the detached Table draws around its header and rows, shared with Card's\n * `framed` variant so a card and the table beside it read as one set in both themes.\n */\nexport const FRAME_CLASS = 'bg-[var(--malachite-table-background,#f7f7f7)] p-[4px] rounded-xl';\n/** The `p-[4px]` in `FRAME_CLASS`, for geometry that has to offset it. */\nexport const FRAME_PADDING = 4;\n/** The radius `rounded-xl` in `FRAME_CLASS` resolves to. Read from the same token, or overriding\n * `radius.xl` pinches the corners of anything drawn to match them. */\nexport const FRAME_RADIUS = 'var(--malachite-radius-xl, 12px)';\n\n/** The bordered section inside the frame is clipped to this radius. The detached Table's first\n * and last rows echo it, so a selected row's accent bar curves into the corner instead of\n * being cut off by the clip. */\nexport const FRAME_SECTION_RADIUS = 8;\nexport const FRAME_SECTION_BORDER = '1px solid var(--malachite-card-border, #e8e8e8)';\n\n/** The bordered section a framed Card's children sit in, as the detached Table's rows do. */\nexport const FRAME_SECTION_STYLE: React.CSSProperties = {\n background: 'var(--malachite-table-row-background, #fff)',\n border: FRAME_SECTION_BORDER,\n borderRadius: FRAME_SECTION_RADIUS,\n};\n"],"names":["FRAME_CLASS","FRAME_PADDING","FRAME_RADIUS","FRAME_SECTION_RADIUS","FRAME_SECTION_BORDER","FRAME_SECTION_STYLE"],"mappings":"AAMO,MAAMA,IAAc,qEAEdC,IAAgB,GAGhBC,IAAe,oCAKfC,IAAuB,GACvBC,IAAuB,mDAGvBC,IAA2C;AAAA,EACpD,YAAY;AAAA,EACZ,QAAQD;AAAA,EACR,cAAc;AAClB;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"headerContent.js","sources":["../../src/components/headerContent.ts"],"sourcesContent":["import type React from 'react';\n\n/** Whether a header slot has something to draw: `0` does, `null`, `false` and `''` do not. */\nexport const isShown = (node: React.ReactNode): boolean =>\n node !== undefined && node !== null && node !== false && node !== '';\n\nexport const hasHeaderContent = ({\n title,\n subtitle,\n extra,\n}: {\n title?: React.ReactNode;\n subtitle?: React.ReactNode;\n extra?: React.ReactNode;\n}): boolean => isShown(title) || isShown(subtitle) || isShown(extra);\n"],"names":["isShown","node","hasHeaderContent","title","subtitle","extra"],"mappings":"AAGO,MAAMA,IAAU,CAACC,MACEA,KAAS,QAAQA,MAAS,MAASA,MAAS,IAEzDC,IAAmB,CAAC;AAAA,EAC7B,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AACJ,MAIeL,EAAQG,CAAK,KAAKH,EAAQI,CAAQ,KAAKJ,EAAQK,CAAK;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -53,17 +53,10 @@ declare interface AccordionBaseProps {
|
|
|
53
53
|
trailing?: default_2.ReactNode;
|
|
54
54
|
/** Before the title, outside the toggle button. */
|
|
55
55
|
leading?: default_2.ReactNode;
|
|
56
|
-
/** `gutter` puts the arrow before `leading` as its own mouse toggle; the title stays the keyboard one. */
|
|
57
|
-
arrowPosition?: 'start' | 'end' | 'gutter';
|
|
58
56
|
/** `false` keeps an open row on the card ground. */
|
|
59
57
|
highlightExpanded?: boolean;
|
|
60
58
|
/** `title` starts the body under the title, 16px short of it for a compact `Surface.Row`. */
|
|
61
59
|
bodyIndent?: 'none' | 'title';
|
|
62
|
-
defaultExpanded?: boolean;
|
|
63
|
-
isExpanded?: boolean;
|
|
64
|
-
onToggle?: (expanded: boolean) => void;
|
|
65
|
-
/** Disables the toggle (and its hover). Trailing controls manage their own state. */
|
|
66
|
-
disabled?: boolean;
|
|
67
60
|
/**
|
|
68
61
|
* Pin the header row to the top of the nearest scroll container so it stays
|
|
69
62
|
* reachable while the body scrolls. Needs a scroll ancestor that clips without
|
|
@@ -78,19 +71,13 @@ declare interface AccordionBaseProps {
|
|
|
78
71
|
* `--malachite-ctx-pinned-surround` on an ancestor when the card sits on another ground.
|
|
79
72
|
*/
|
|
80
73
|
pinnedCorners?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Animate the expand/collapse height (default `true`). Set `false` for an instant
|
|
83
|
-
* open — the body isn't clipped, so a `position: sticky` child pins immediately with
|
|
84
|
-
* no post-animation settle.
|
|
85
|
-
*/
|
|
86
|
-
animate?: boolean;
|
|
87
74
|
}
|
|
88
75
|
|
|
89
76
|
/**
|
|
90
77
|
* Requires at least one of `title` (simple text header) or `header` (rich ReactNode
|
|
91
78
|
* content for the toggle area, e.g. avatar + badges) so the toggle is never empty.
|
|
92
79
|
*/
|
|
93
|
-
export declare type AccordionProps = AccordionBaseProps & ({
|
|
80
|
+
export declare type AccordionProps = AccordionBaseProps & AccordionToggleProps & ({
|
|
94
81
|
title: string;
|
|
95
82
|
header?: default_2.ReactNode;
|
|
96
83
|
} | {
|
|
@@ -98,6 +85,24 @@ export declare type AccordionProps = AccordionBaseProps & ({
|
|
|
98
85
|
header: default_2.ReactNode;
|
|
99
86
|
});
|
|
100
87
|
|
|
88
|
+
declare interface AccordionToggleProps {
|
|
89
|
+
/** `false` is a section that never closes; the toggle props are then ignored. */
|
|
90
|
+
collapsible?: boolean;
|
|
91
|
+
/** `gutter` puts the arrow before `leading` as its own mouse toggle; the title stays the keyboard one. */
|
|
92
|
+
arrowPosition?: 'start' | 'end' | 'gutter';
|
|
93
|
+
defaultExpanded?: boolean;
|
|
94
|
+
isExpanded?: boolean;
|
|
95
|
+
onToggle?: (expanded: boolean) => void;
|
|
96
|
+
/** Disables the toggle (and its hover). Trailing controls manage their own state. */
|
|
97
|
+
disabled?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Animate the expand/collapse height (default `true`). Set `false` for an instant
|
|
100
|
+
* open — the body isn't clipped, so a `position: sticky` child pins immediately with
|
|
101
|
+
* no post-animation settle.
|
|
102
|
+
*/
|
|
103
|
+
animate?: boolean;
|
|
104
|
+
}
|
|
105
|
+
|
|
101
106
|
export declare const AccountIcon: React.FC<IconProps>;
|
|
102
107
|
|
|
103
108
|
export declare const AccountsIcon: React.FC<IconProps_2>;
|
|
@@ -511,6 +516,8 @@ export declare type ButtonVariant = 'filled' | 'outline'
|
|
|
511
516
|
* that anything is wrong.
|
|
512
517
|
*/
|
|
513
518
|
| 'assistant' | 'destructive' | 'success' | 'warning' | 'error' | 'ghost'
|
|
519
|
+
/** `ghost` until its `Surface.Row` is hovered or focused, or its menu opens. For `trailing` only. */
|
|
520
|
+
| 'row-outline'
|
|
514
521
|
/** Text only, in the accent colour, for a secondary action beside a primary one. */
|
|
515
522
|
| 'quiet'
|
|
516
523
|
/**
|
|
@@ -524,7 +531,17 @@ export declare const Card: default_2.FC<CardProps>;
|
|
|
524
531
|
export declare const CardIcon: React.FC<IconProps_15>;
|
|
525
532
|
|
|
526
533
|
declare interface CardProps {
|
|
534
|
+
/**
|
|
535
|
+
* `framed` draws the detached Table's frame: the title row sits on a grey frame and the
|
|
536
|
+
* children in a bordered section inside it, so a card above a table reads as part of the
|
|
537
|
+
* same set. `dimmed`, `border`, `size`, `glassFooter` and `headerConfig` do not apply to it.
|
|
538
|
+
*/
|
|
539
|
+
variant?: CardVariant;
|
|
527
540
|
title?: string | default_2.ReactNode;
|
|
541
|
+
/** Dimmed text beside the title, such as a count or a unit. */
|
|
542
|
+
subtitle?: default_2.ReactNode;
|
|
543
|
+
/** Actions at the right of the title row. */
|
|
544
|
+
extra?: default_2.ReactNode;
|
|
528
545
|
padding?: string;
|
|
529
546
|
children?: default_2.ReactNode;
|
|
530
547
|
size?: 'default' | 'small';
|
|
@@ -600,6 +617,8 @@ export declare interface CardStripProps {
|
|
|
600
617
|
/** Palette for the strip's rule. Pass the tone of whatever card is selected. */
|
|
601
618
|
export declare type CardStripTone = 'profile' | 'library' | 'editing';
|
|
602
619
|
|
|
620
|
+
export declare type CardVariant = 'default' | 'framed';
|
|
621
|
+
|
|
603
622
|
export declare const CaretDoubleLeftIcon: React.FC<IconProps_16>;
|
|
604
623
|
|
|
605
624
|
export declare const CaretDoubleRightIcon: React.FC<IconProps_17>;
|
|
@@ -1900,6 +1919,12 @@ export declare interface FilterSearchItem {
|
|
|
1900
1919
|
|
|
1901
1920
|
export declare interface FilterSearchProps {
|
|
1902
1921
|
filters: FilterSearchFilter[];
|
|
1922
|
+
/**
|
|
1923
|
+
* What a query typed before a filter is picked searches, when it should differ from
|
|
1924
|
+
* `filters`: every value, say, while `filters` holds only those the applied filters leave.
|
|
1925
|
+
* Memoise it: a new array on each render rebuilds the chip labels over every value it holds.
|
|
1926
|
+
*/
|
|
1927
|
+
searchFilters?: FilterSearchFilter[];
|
|
1903
1928
|
/** Controlled: the bar always shows `value`, so a URL-backed selection needs no syncing. */
|
|
1904
1929
|
value: FilterSearchSelection[];
|
|
1905
1930
|
/** `changes` lists only the filters that moved; an empty `items` means that filter was removed. */
|
|
@@ -4975,7 +5000,7 @@ declare interface SpinnerProps {
|
|
|
4975
5000
|
export declare const SplitButton: default_2.ForwardRefExoticComponent<SplitButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
4976
5001
|
|
|
4977
5002
|
export declare interface SplitButtonProps {
|
|
4978
|
-
variant?: ButtonVariant
|
|
5003
|
+
variant?: Exclude<ButtonVariant, 'row-outline'>;
|
|
4979
5004
|
size?: ButtonSize;
|
|
4980
5005
|
children?: default_2.ReactNode;
|
|
4981
5006
|
leading?: default_2.ReactNode;
|
|
@@ -5288,6 +5313,10 @@ export declare interface SurfaceRowProps extends SurfaceRowChromeProps {
|
|
|
5288
5313
|
* which has no hover, always shows it.
|
|
5289
5314
|
*/
|
|
5290
5315
|
revealTrailing?: boolean;
|
|
5316
|
+
/** The row's indicator, before the children. */
|
|
5317
|
+
leading?: default_2.ReactNode;
|
|
5318
|
+
/** Fades the children, not `leading` or `trailing`. */
|
|
5319
|
+
dimmed?: boolean;
|
|
5291
5320
|
/** ARIA role for a clickable row, e.g. `radio`/`checkbox` (wrap the list in a `radiogroup`). */
|
|
5292
5321
|
role?: default_2.AriaRole;
|
|
5293
5322
|
'aria-label'?: string;
|
|
@@ -5321,7 +5350,7 @@ export declare interface TabItem {
|
|
|
5321
5350
|
disabled?: boolean;
|
|
5322
5351
|
}
|
|
5323
5352
|
|
|
5324
|
-
export declare const Table: <T = Record<string, unknown>>({ columns, data, loading, error, errorTitle, errorSubTitle, emptyTitle, emptySubTitle, bordered, showHeader, rowKey, scrollHeight, size, rowDensity, layout, headerVariant, rowClassName, rowVariant, onRow, onClickRow, selectedRowKey, scrollSelectedIntoView, rowSelection, pagination, className, style, stickyHeaderTop, scrollX, rowSection, renderSectionDivider, onVisibleOrderChange, virtual, virtualRowHeightEstimate, virtualScrollElement, }: TableProps<T>) => JSX_2.Element;
|
|
5353
|
+
export declare const Table: <T = Record<string, unknown>>({ columns, data, loading, error, errorTitle, errorSubTitle, emptyTitle, emptySubTitle, bordered, showHeader, rowKey, scrollHeight, size, rowDensity, layout, headerVariant, title, subtitle, extra, rowClassName, rowVariant, onRow, onClickRow, selectedRowKey, scrollSelectedIntoView, rowSelection, pagination, className, style, stickyHeaderTop, scrollX, rowSection, renderSectionDivider, onVisibleOrderChange, virtual, virtualRowHeightEstimate, virtualScrollElement, }: TableProps<T>) => JSX_2.Element;
|
|
5325
5354
|
|
|
5326
5355
|
export declare type TableColumnDefinition<T = Record<string, unknown>> = {
|
|
5327
5356
|
title: string | default_2.ReactNode;
|
|
@@ -5333,12 +5362,24 @@ export declare type TableColumnDefinition<T = Record<string, unknown>> = {
|
|
|
5333
5362
|
minWidth?: number;
|
|
5334
5363
|
ellipsis?: boolean;
|
|
5335
5364
|
render?: (value: unknown, record?: T, index?: number) => default_2.ReactNode;
|
|
5336
|
-
|
|
5365
|
+
/**
|
|
5366
|
+
* `true` sorts the rows by `dataIndex`, a function sorts them with it, and `'server'` leaves
|
|
5367
|
+
* them in the order given: the arrow still moves and `onHeaderCell` still runs, for a page
|
|
5368
|
+
* the server has already sorted.
|
|
5369
|
+
*/
|
|
5370
|
+
sorter?: boolean | 'server' | ((a: T, b: T) => number);
|
|
5337
5371
|
sortIcon?: (props: {
|
|
5338
5372
|
sortOrder: 'desc' | 'asc' | null;
|
|
5339
5373
|
}) => default_2.ReactNode;
|
|
5340
|
-
|
|
5374
|
+
/**
|
|
5375
|
+
* Its `onClick` runs when a sortable column's header is clicked, as the table moves its
|
|
5376
|
+
* arrow: the hook for a sort the server does, with `sorter: 'server'`. The arrow cycles
|
|
5377
|
+
* ascending, descending, none, and the handler runs on each click, the clearing one too.
|
|
5378
|
+
*/
|
|
5379
|
+
onHeaderCell?: (column: TableColumnDefinition<T>, index?: number) => TableHeaderCellHandlers;
|
|
5380
|
+
/** The arrow the column starts with, and for a `sorter` function the order it starts in. */
|
|
5341
5381
|
defaultSortOrder?: 'ascend' | 'descend';
|
|
5382
|
+
/** Not read: the header always cycles ascending, descending, none. */
|
|
5342
5383
|
sortDirections?: ('ascend' | 'descend')[];
|
|
5343
5384
|
fixed?: 'left' | 'right';
|
|
5344
5385
|
align?: 'left' | 'center' | 'right';
|
|
@@ -5346,6 +5387,11 @@ export declare type TableColumnDefinition<T = Record<string, unknown>> = {
|
|
|
5346
5387
|
|
|
5347
5388
|
export declare type TableColumns<T = Record<string, unknown>> = TableColumnDefinition<T>[];
|
|
5348
5389
|
|
|
5390
|
+
/** What the table reads from a column's `onHeaderCell`: `onClick`, run from the sort button. */
|
|
5391
|
+
export declare interface TableHeaderCellHandlers {
|
|
5392
|
+
onClick?: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
|
|
5393
|
+
}
|
|
5394
|
+
|
|
5349
5395
|
declare type TableHeaderVariant = 'inline' | 'detached';
|
|
5350
5396
|
|
|
5351
5397
|
export declare type TablePaginationPosition = 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
|
@@ -5371,6 +5417,15 @@ declare type TableProps<T = Record<string, unknown>> = {
|
|
|
5371
5417
|
rowDensity?: 'default' | 'compact';
|
|
5372
5418
|
layout?: 'fixed' | 'auto';
|
|
5373
5419
|
headerVariant?: TableHeaderVariant;
|
|
5420
|
+
/** A title row on the detached frame, above the column headers, as on Card's `framed`
|
|
5421
|
+
* variant. With `stickyHeaderTop` it docks with the column headers; with
|
|
5422
|
+
* `showHeader={false}` nothing docks and it scrolls with the rows. Detached only: the inline
|
|
5423
|
+
* header has no frame, and warns in development when given one. */
|
|
5424
|
+
title?: default_2.ReactNode;
|
|
5425
|
+
/** Dimmed text beside `title`, such as a count. */
|
|
5426
|
+
subtitle?: default_2.ReactNode;
|
|
5427
|
+
/** Actions at the right of the title row. */
|
|
5428
|
+
extra?: default_2.ReactNode;
|
|
5374
5429
|
rowClassName?: (record: T, index: number) => string;
|
|
5375
5430
|
rowVariant?: (record: T, index: number) => RowVariant | undefined;
|
|
5376
5431
|
onRow?: (record: T, index: number) => TableRowActions<T>;
|
|
@@ -5632,6 +5687,82 @@ export declare const ThumbsDownIcon: React.FC<IconProps_109>;
|
|
|
5632
5687
|
|
|
5633
5688
|
export declare const ThumbsUpIcon: React.FC<IconProps_110>;
|
|
5634
5689
|
|
|
5690
|
+
export declare const TimeBarChart: default_2.FC<TimeBarChartProps>;
|
|
5691
|
+
|
|
5692
|
+
export declare interface TimeBarChartBucket {
|
|
5693
|
+
/** The bucket's start. A string with no zone is read as UTC. */
|
|
5694
|
+
start: TimeInput;
|
|
5695
|
+
/** Each series' count in this bucket, by series key. A missing key counts as 0. */
|
|
5696
|
+
values: Record<string, number>;
|
|
5697
|
+
}
|
|
5698
|
+
|
|
5699
|
+
export declare interface TimeBarChartInterval {
|
|
5700
|
+
unit: TimeBarChartUnit;
|
|
5701
|
+
/** How many `unit`s one bucket spans, e.g. 3 with `hour` for 3-hour buckets. Default 1. */
|
|
5702
|
+
step?: number;
|
|
5703
|
+
}
|
|
5704
|
+
|
|
5705
|
+
export declare interface TimeBarChartProps {
|
|
5706
|
+
/** Stacked by tone, failures on top (`neutral`, `success`, `error`), and in the order given
|
|
5707
|
+
* within a tone. The legend, tooltip and table keep the order given. */
|
|
5708
|
+
series: TimeBarChartSeries[];
|
|
5709
|
+
/** Only the buckets that have values; empty buckets in `range` are laid out regardless. */
|
|
5710
|
+
buckets: TimeBarChartBucket[];
|
|
5711
|
+
interval: TimeBarChartInterval;
|
|
5712
|
+
/** The window the axis covers, `end` exclusive as `onRangeSelect` reports it, so a selection
|
|
5713
|
+
* fed back in shows exactly the buckets selected. Without it the axis spans the buckets
|
|
5714
|
+
* given. At most 2,000 buckets are laid out; past that the newest are kept, so a live window
|
|
5715
|
+
* still ends at now. */
|
|
5716
|
+
range?: {
|
|
5717
|
+
start: TimeInput;
|
|
5718
|
+
end: TimeInput;
|
|
5719
|
+
};
|
|
5720
|
+
/** The plot's height, axis labels included: 120, 160 or 240px. */
|
|
5721
|
+
size?: TimeBarChartSize;
|
|
5722
|
+
/** With buckets already drawn, they stay and dim while new ones load. */
|
|
5723
|
+
loading?: boolean;
|
|
5724
|
+
error?: boolean;
|
|
5725
|
+
errorTitle?: string;
|
|
5726
|
+
errorSubTitle?: string;
|
|
5727
|
+
/** What the stacked total counts, shown in the tooltip, e.g. "Requests". */
|
|
5728
|
+
valueLabel?: string;
|
|
5729
|
+
/** A legend naming each series. Leave it off only where the page labels the series itself. */
|
|
5730
|
+
legend?: boolean;
|
|
5731
|
+
/** A time whose bucket is shaded behind the bars, e.g. the row under the pointer in a list. */
|
|
5732
|
+
highlightTime?: TimeInput;
|
|
5733
|
+
/** Turns on click-and-drag selection of whole buckets. */
|
|
5734
|
+
onRangeSelect?: (selection: TimeBarChartRangeSelection) => void;
|
|
5735
|
+
/** Names the chart. Pass this or `aria-labelledby`; the hidden table takes it as its caption. */
|
|
5736
|
+
'aria-label'?: string;
|
|
5737
|
+
/** Names the chart from a visible heading instead, and the hidden table with it. */
|
|
5738
|
+
'aria-labelledby'?: string;
|
|
5739
|
+
className?: string;
|
|
5740
|
+
style?: default_2.CSSProperties;
|
|
5741
|
+
}
|
|
5742
|
+
|
|
5743
|
+
export declare interface TimeBarChartRangeSelection {
|
|
5744
|
+
/** UTC ISO start of the first selected bucket. */
|
|
5745
|
+
start: string;
|
|
5746
|
+
/** UTC ISO end of the last selected bucket, exclusive: the start of the bucket after it. */
|
|
5747
|
+
end: string;
|
|
5748
|
+
/** Whether the selection takes in the last bucket, i.e. "up to now" on a live window. */
|
|
5749
|
+
reachesEnd: boolean;
|
|
5750
|
+
}
|
|
5751
|
+
|
|
5752
|
+
export declare interface TimeBarChartSeries {
|
|
5753
|
+
key: string;
|
|
5754
|
+
label: string;
|
|
5755
|
+
tone: TimeBarChartTone;
|
|
5756
|
+
}
|
|
5757
|
+
|
|
5758
|
+
export declare type TimeBarChartSize = 'small' | 'medium' | 'large';
|
|
5759
|
+
|
|
5760
|
+
export declare type TimeBarChartTone = 'success' | 'error' | 'neutral';
|
|
5761
|
+
|
|
5762
|
+
export declare type TimeBarChartUnit = 'minute' | 'hour' | 'day' | 'week' | 'month';
|
|
5763
|
+
|
|
5764
|
+
declare type TimeInput = string | number | Date;
|
|
5765
|
+
|
|
5635
5766
|
export declare interface ToastApi {
|
|
5636
5767
|
show: (options: ToastOptions) => void;
|
|
5637
5768
|
}
|
package/dist/index.js
CHANGED
|
@@ -216,17 +216,18 @@ import { default as Rm } from "./components/Table/Table.js";
|
|
|
216
216
|
import { default as km } from "./components/TextArea/TextArea.js";
|
|
217
217
|
import { default as _m } from "./components/CustomIcons/ThumbsDownIcon.js";
|
|
218
218
|
import { default as vm } from "./components/CustomIcons/ThumbsUpIcon.js";
|
|
219
|
-
import {
|
|
220
|
-
import { default as Wm } from "./components/CustomIcons/
|
|
221
|
-
import { default as Um } from "./components/CustomIcons/
|
|
222
|
-
import { default as Xm } from "./components/CustomIcons/
|
|
223
|
-
import { default as Km } from "./components/CustomIcons/
|
|
224
|
-
import { default as Gm } from "./components/CustomIcons/
|
|
225
|
-
import { default as jm } from "./components/CustomIcons/
|
|
226
|
-
import { default as Jm } from "./components/CustomIcons/
|
|
227
|
-
import { default as Zm } from "./components/CustomIcons/
|
|
228
|
-
import { default as ol } from "./components/CustomIcons/
|
|
229
|
-
import {
|
|
219
|
+
import { TimeBarChart as Om } from "./components/TimeBarChart/TimeBarChart.js";
|
|
220
|
+
import { default as Wm } from "./components/CustomIcons/TrashIcon.js";
|
|
221
|
+
import { default as Um } from "./components/CustomIcons/TriangleDownIcon.js";
|
|
222
|
+
import { default as Xm } from "./components/CustomIcons/TriangleRightIcon.js";
|
|
223
|
+
import { default as Km } from "./components/CustomIcons/UnarchiveIcon.js";
|
|
224
|
+
import { default as Gm } from "./components/CustomIcons/UploadIcon.js";
|
|
225
|
+
import { default as jm } from "./components/CustomIcons/WarningCircleFilled.js";
|
|
226
|
+
import { default as Jm } from "./components/CustomIcons/WarningTriangleIcon.js";
|
|
227
|
+
import { default as Zm } from "./components/CustomIcons/WebhookEventsIcon.js";
|
|
228
|
+
import { default as ol } from "./components/CustomIcons/WebhookIcon.js";
|
|
229
|
+
import { default as rl } from "./components/CustomIcons/WebhookSigningSecretIcon.js";
|
|
230
|
+
import { PageActions as al } from "./components/PageLayout/regularLayout.js";
|
|
230
231
|
export {
|
|
231
232
|
lt as AccessPills,
|
|
232
233
|
r as Accordion,
|
|
@@ -375,7 +376,7 @@ export {
|
|
|
375
376
|
Pr as OverflowRow,
|
|
376
377
|
Ie as Padded,
|
|
377
378
|
Po as PaddingSize,
|
|
378
|
-
|
|
379
|
+
al as PageActions,
|
|
379
380
|
Zr as PageLayout,
|
|
380
381
|
Ir as PillButton,
|
|
381
382
|
_p as PinIcon,
|
|
@@ -450,23 +451,24 @@ export {
|
|
|
450
451
|
Jr as ThemeScope,
|
|
451
452
|
_m as ThumbsDownIcon,
|
|
452
453
|
vm as ThumbsUpIcon,
|
|
454
|
+
Om as TimeBarChart,
|
|
453
455
|
He as ToastProvider,
|
|
454
456
|
Cr as Toggle,
|
|
455
457
|
No as Toolbar,
|
|
456
458
|
Ve as Tooltip,
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
459
|
+
Wm as TrashIcon,
|
|
460
|
+
Um as TriangleDownIcon,
|
|
461
|
+
Xm as TriangleRightIcon,
|
|
460
462
|
Ye as TruncatedTooltip,
|
|
461
463
|
ur as Typography,
|
|
462
|
-
|
|
463
|
-
|
|
464
|
+
Km as UnarchiveIcon,
|
|
465
|
+
Gm as UploadIcon,
|
|
464
466
|
$e as UsageCard,
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
467
|
+
jm as WarningCircleFilled,
|
|
468
|
+
Jm as WarningTriangleIcon,
|
|
469
|
+
Zm as WebhookEventsIcon,
|
|
470
|
+
ol as WebhookIcon,
|
|
471
|
+
rl as WebhookSigningSecretIcon,
|
|
470
472
|
Ho as WizardLayout,
|
|
471
473
|
zo as ZoomableImage,
|
|
472
474
|
st as applyCustomTheme,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|