@stackone/malachite 2.123.1 → 2.125.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 +9 -7
- package/dist/components/ActionMenu.js +4 -3
- package/dist/components/ActionMenu.js.map +1 -1
- package/dist/components/Card.js +85 -75
- package/dist/components/Card.js.map +1 -1
- package/dist/components/Flex.js +10 -8
- package/dist/components/Flex.js.map +1 -1
- package/dist/components/FrameHeader.js +26 -19
- package/dist/components/FrameHeader.js.map +1 -1
- package/dist/components/HexagonScale.js +25 -10
- package/dist/components/HexagonScale.js.map +1 -1
- package/dist/components/KeyValueStrip.js +57 -41
- package/dist/components/KeyValueStrip.js.map +1 -1
- package/dist/components/PageLayout/index.js +8 -7
- package/dist/components/PageLayout/index.js.map +1 -1
- package/dist/components/PageLayout/pageColumns.js +23 -0
- package/dist/components/PageLayout/pageColumns.js.map +1 -0
- package/dist/components/PillButton.js +68 -45
- package/dist/components/PillButton.js.map +1 -1
- package/dist/components/ScoreMeter.js +79 -0
- package/dist/components/ScoreMeter.js.map +1 -0
- package/dist/components/Table/Table.js +491 -472
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/components/Timeline.js +88 -77
- package/dist/components/Timeline.js.map +1 -1
- package/dist/components/ToastProvider.js +32 -42
- package/dist/components/ToastProvider.js.map +1 -1
- package/dist/components/Typography/PathText.js +48 -55
- package/dist/components/Typography/PathText.js.map +1 -1
- package/dist/components/VisuallyHidden.js +8 -0
- package/dist/components/VisuallyHidden.js.map +1 -0
- package/dist/components/actionMenuStyles.js +33 -42
- package/dist/components/actionMenuStyles.js.map +1 -1
- package/dist/components/flexTypes.js +1 -1
- package/dist/components/flexTypes.js.map +1 -1
- package/dist/components/visuallyHiddenStyle.js +16 -0
- package/dist/components/visuallyHiddenStyle.js.map +1 -0
- package/dist/index.d.ts +63 -2
- package/dist/index.js +396 -392
- package/dist/index.js.map +1 -1
- package/dist/tailwind.css.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -585,6 +585,15 @@ export declare interface CardProps {
|
|
|
585
585
|
subtitle?: default_2.ReactNode;
|
|
586
586
|
/** Actions at the right of the title row. */
|
|
587
587
|
extra?: default_2.ReactNode;
|
|
588
|
+
/**
|
|
589
|
+
* Move `extra` onto a line of its own, under the title and still at the right, when the title
|
|
590
|
+
* and subtitle do not fit on one line beside it, rather than shrinking the title to fit, which
|
|
591
|
+
* on a framed card cuts it short. The header grows by that line, so leave room for it in a card
|
|
592
|
+
* of fixed height. On a framed card it also adds 6px above and below the title row, so an
|
|
593
|
+
* `extra` taller than 32px makes the header taller than 44px; use a small or medium control.
|
|
594
|
+
* Keep text that changes width, such as a live save status, out of a wrapping `extra`.
|
|
595
|
+
*/
|
|
596
|
+
wrapExtra?: boolean;
|
|
588
597
|
padding?: string;
|
|
589
598
|
children?: default_2.ReactNode;
|
|
590
599
|
size?: 'default' | 'small';
|
|
@@ -2264,6 +2273,7 @@ export declare enum FlexDirection {
|
|
|
2264
2273
|
}
|
|
2265
2274
|
|
|
2266
2275
|
export declare enum FlexGapSize {
|
|
2276
|
+
XXSmall = "xxsmall",
|
|
2267
2277
|
XSmall = "xsmall",
|
|
2268
2278
|
Small = "small",
|
|
2269
2279
|
Medium = "medium",
|
|
@@ -2573,6 +2583,8 @@ export declare interface HexagonScaleProps {
|
|
|
2573
2583
|
current?: number;
|
|
2574
2584
|
/** Only when it stands alone; beside text naming the step it is decorative. */
|
|
2575
2585
|
label?: string;
|
|
2586
|
+
stepLabels?: readonly string[];
|
|
2587
|
+
currentNote?: string;
|
|
2576
2588
|
className?: string;
|
|
2577
2589
|
}
|
|
2578
2590
|
|
|
@@ -3654,6 +3666,7 @@ export declare const KeyValueStrip: default_2.FC<KeyValueStripProps> & {
|
|
|
3654
3666
|
|
|
3655
3667
|
export declare interface KeyValueStripItemProps {
|
|
3656
3668
|
label: default_2.ReactNode;
|
|
3669
|
+
tone?: KeyValueStripTone;
|
|
3657
3670
|
className?: string;
|
|
3658
3671
|
children: default_2.ReactNode;
|
|
3659
3672
|
/** One line with an ellipsis. Block/flex children clip without one, so use their own truncate. */
|
|
@@ -3676,6 +3689,8 @@ export declare interface KeyValueStripProps {
|
|
|
3676
3689
|
'aria-labelledby'?: string;
|
|
3677
3690
|
}
|
|
3678
3691
|
|
|
3692
|
+
export declare type KeyValueStripTone = 'neutral' | 'success' | 'warning' | 'error';
|
|
3693
|
+
|
|
3679
3694
|
export declare const LayoutIcon: React.FC<IconProps_71>;
|
|
3680
3695
|
|
|
3681
3696
|
export declare const LevelMeter: default_2.FC<LevelMeterProps>;
|
|
@@ -4652,6 +4667,14 @@ export declare interface PageColumnProps {
|
|
|
4652
4667
|
className?: string;
|
|
4653
4668
|
}
|
|
4654
4669
|
|
|
4670
|
+
export declare interface PageColumnsProps {
|
|
4671
|
+
/** Space between the columns, and between them once stacked. Defaults to `xlarge`. */
|
|
4672
|
+
gap?: PageContentGap;
|
|
4673
|
+
/** Exactly two children, one per column; a third wraps onto a new row. */
|
|
4674
|
+
children: default_2.ReactNode;
|
|
4675
|
+
className?: string;
|
|
4676
|
+
}
|
|
4677
|
+
|
|
4655
4678
|
export declare type PageContentGap = 'small' | 'medium' | 'large' | 'xlarge';
|
|
4656
4679
|
|
|
4657
4680
|
export declare type PageContentWidth = 'narrow';
|
|
@@ -4660,6 +4683,7 @@ export declare const PageLayout: {
|
|
|
4660
4683
|
Regular: FC<RegularLayoutProps>;
|
|
4661
4684
|
Empty: FC<EmptyLayoutProps>;
|
|
4662
4685
|
Column: FC<PageColumnProps>;
|
|
4686
|
+
Columns: FC<PageColumnsProps>;
|
|
4663
4687
|
};
|
|
4664
4688
|
|
|
4665
4689
|
declare interface PageTitleProps {
|
|
@@ -4760,7 +4784,7 @@ declare type PhraseLabel = string | {
|
|
|
4760
4784
|
|
|
4761
4785
|
export declare const PillButton: default_2.FC<PillButtonProps>;
|
|
4762
4786
|
|
|
4763
|
-
declare interface
|
|
4787
|
+
declare interface PillButtonBaseProps {
|
|
4764
4788
|
label: string;
|
|
4765
4789
|
icon?: default_2.ReactNode;
|
|
4766
4790
|
className?: string;
|
|
@@ -4770,7 +4794,6 @@ declare interface PillButtonProps {
|
|
|
4770
4794
|
size?: PillButtonSize;
|
|
4771
4795
|
variant?: PillButtonVariant;
|
|
4772
4796
|
shape?: PillButtonShape;
|
|
4773
|
-
tone?: PillButtonTone;
|
|
4774
4797
|
/** Sits after the label — a caret on a pill that opens a menu. */
|
|
4775
4798
|
trailingIcon?: default_2.ReactNode;
|
|
4776
4799
|
onClick?: (event: default_2.MouseEvent<HTMLElement>) => void;
|
|
@@ -4780,6 +4803,14 @@ declare interface PillButtonProps {
|
|
|
4780
4803
|
rel?: string;
|
|
4781
4804
|
}
|
|
4782
4805
|
|
|
4806
|
+
declare type PillButtonProps = PillButtonBaseProps & ({
|
|
4807
|
+
tone?: Extract<PillButtonTone, 'default'>;
|
|
4808
|
+
pressed?: boolean;
|
|
4809
|
+
} | {
|
|
4810
|
+
tone: Extract<PillButtonTone, 'assistant'>;
|
|
4811
|
+
pressed?: never;
|
|
4812
|
+
});
|
|
4813
|
+
|
|
4783
4814
|
/**
|
|
4784
4815
|
* `tab` squares the top corners so the pill reads as attached to whatever sits above it —
|
|
4785
4816
|
* a row of controls hanging under an input, rather than free-floating pills.
|
|
@@ -5185,6 +5216,22 @@ declare const Row: default_2.FC<KeyValueListRowProps>;
|
|
|
5185
5216
|
|
|
5186
5217
|
export declare type RowVariant = 'success' | 'warning' | 'error' | 'info';
|
|
5187
5218
|
|
|
5219
|
+
export declare const ScoreMeter: default_2.FC<ScoreMeterProps>;
|
|
5220
|
+
|
|
5221
|
+
export declare interface ScoreMeterProps {
|
|
5222
|
+
value: number;
|
|
5223
|
+
label: string;
|
|
5224
|
+
valueText?: string;
|
|
5225
|
+
threshold?: number;
|
|
5226
|
+
thresholdLabel?: string;
|
|
5227
|
+
lowLabel?: string;
|
|
5228
|
+
highLabel?: string;
|
|
5229
|
+
tone?: ScoreMeterTone;
|
|
5230
|
+
className?: string;
|
|
5231
|
+
}
|
|
5232
|
+
|
|
5233
|
+
export declare type ScoreMeterTone = 'neutral' | 'success' | 'warning' | 'error';
|
|
5234
|
+
|
|
5188
5235
|
/** Forwards a ref to the input, so a consumer can focus the field. */
|
|
5189
5236
|
export declare const Search: default_2.ForwardRefExoticComponent<SearchProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
5190
5237
|
|
|
@@ -6290,6 +6337,8 @@ declare type TableProps<T = Record<string, unknown>> = {
|
|
|
6290
6337
|
* page-level scroll container with other sticky elements (e.g. tabs + toolbar)
|
|
6291
6338
|
* stacked above. */
|
|
6292
6339
|
stickyHeaderTop?: number;
|
|
6340
|
+
/** Scrolls sideways instead of squeezing columns. Default header, fixed layout with only px
|
|
6341
|
+
* or unset widths: unset ones get the largest unset `minWidth`; auto layout: each its own. */
|
|
6293
6342
|
scrollX?: boolean;
|
|
6294
6343
|
rowSection?: (record: T) => string;
|
|
6295
6344
|
renderSectionDivider?: (sectionKey: string, records: T[]) => default_2.ReactNode;
|
|
@@ -6616,6 +6665,7 @@ export declare const Timeline: default_2.FC<TimelineProps> & {
|
|
|
6616
6665
|
|
|
6617
6666
|
export declare interface TimelineItemProps {
|
|
6618
6667
|
title: default_2.ReactNode;
|
|
6668
|
+
eyebrow?: default_2.ReactNode;
|
|
6619
6669
|
/**
|
|
6620
6670
|
* Code set after the title in the mono face, as one phrase with it, e.g. `title="n8n called"`
|
|
6621
6671
|
* with `titleCode="Salesforce | Delete contact"`.
|
|
@@ -6900,6 +6950,17 @@ export declare const useSidebarCollapsed: () => boolean;
|
|
|
6900
6950
|
/** Shows a toast from anywhere under a `ToastProvider`. Throws outside one. */
|
|
6901
6951
|
export declare const useToast: () => ToastApi;
|
|
6902
6952
|
|
|
6953
|
+
/**
|
|
6954
|
+
* Text for assistive technology only: painted nowhere, in the light DOM or a shadow root, and
|
|
6955
|
+
* still read as ordinary content. Prefer it to `aria-label` on a plain span, whose generic role
|
|
6956
|
+
* prohibits an accessible name.
|
|
6957
|
+
*/
|
|
6958
|
+
export declare const VisuallyHidden: default_2.FC<VisuallyHiddenProps>;
|
|
6959
|
+
|
|
6960
|
+
export declare interface VisuallyHiddenProps {
|
|
6961
|
+
children: default_2.ReactNode;
|
|
6962
|
+
}
|
|
6963
|
+
|
|
6903
6964
|
export declare const WarningCircleFilled: React.FC<IconProps_123>;
|
|
6904
6965
|
|
|
6905
6966
|
export declare const WarningTriangleIcon: React.FC<IconProps_124>;
|