@stackone/malachite 2.124.0 → 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 +6 -5
- package/dist/components/Card.js +17 -17
- package/dist/components/Card.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/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/Timeline.js +88 -77
- package/dist/components/Timeline.js.map +1 -1
- package/dist/index.d.ts +31 -2
- package/dist/index.js +293 -291
- 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
|
@@ -2583,6 +2583,8 @@ export declare interface HexagonScaleProps {
|
|
|
2583
2583
|
current?: number;
|
|
2584
2584
|
/** Only when it stands alone; beside text naming the step it is decorative. */
|
|
2585
2585
|
label?: string;
|
|
2586
|
+
stepLabels?: readonly string[];
|
|
2587
|
+
currentNote?: string;
|
|
2586
2588
|
className?: string;
|
|
2587
2589
|
}
|
|
2588
2590
|
|
|
@@ -3664,6 +3666,7 @@ export declare const KeyValueStrip: default_2.FC<KeyValueStripProps> & {
|
|
|
3664
3666
|
|
|
3665
3667
|
export declare interface KeyValueStripItemProps {
|
|
3666
3668
|
label: default_2.ReactNode;
|
|
3669
|
+
tone?: KeyValueStripTone;
|
|
3667
3670
|
className?: string;
|
|
3668
3671
|
children: default_2.ReactNode;
|
|
3669
3672
|
/** One line with an ellipsis. Block/flex children clip without one, so use their own truncate. */
|
|
@@ -3686,6 +3689,8 @@ export declare interface KeyValueStripProps {
|
|
|
3686
3689
|
'aria-labelledby'?: string;
|
|
3687
3690
|
}
|
|
3688
3691
|
|
|
3692
|
+
export declare type KeyValueStripTone = 'neutral' | 'success' | 'warning' | 'error';
|
|
3693
|
+
|
|
3689
3694
|
export declare const LayoutIcon: React.FC<IconProps_71>;
|
|
3690
3695
|
|
|
3691
3696
|
export declare const LevelMeter: default_2.FC<LevelMeterProps>;
|
|
@@ -4779,7 +4784,7 @@ declare type PhraseLabel = string | {
|
|
|
4779
4784
|
|
|
4780
4785
|
export declare const PillButton: default_2.FC<PillButtonProps>;
|
|
4781
4786
|
|
|
4782
|
-
declare interface
|
|
4787
|
+
declare interface PillButtonBaseProps {
|
|
4783
4788
|
label: string;
|
|
4784
4789
|
icon?: default_2.ReactNode;
|
|
4785
4790
|
className?: string;
|
|
@@ -4789,7 +4794,6 @@ declare interface PillButtonProps {
|
|
|
4789
4794
|
size?: PillButtonSize;
|
|
4790
4795
|
variant?: PillButtonVariant;
|
|
4791
4796
|
shape?: PillButtonShape;
|
|
4792
|
-
tone?: PillButtonTone;
|
|
4793
4797
|
/** Sits after the label — a caret on a pill that opens a menu. */
|
|
4794
4798
|
trailingIcon?: default_2.ReactNode;
|
|
4795
4799
|
onClick?: (event: default_2.MouseEvent<HTMLElement>) => void;
|
|
@@ -4799,6 +4803,14 @@ declare interface PillButtonProps {
|
|
|
4799
4803
|
rel?: string;
|
|
4800
4804
|
}
|
|
4801
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
|
+
|
|
4802
4814
|
/**
|
|
4803
4815
|
* `tab` squares the top corners so the pill reads as attached to whatever sits above it —
|
|
4804
4816
|
* a row of controls hanging under an input, rather than free-floating pills.
|
|
@@ -5204,6 +5216,22 @@ declare const Row: default_2.FC<KeyValueListRowProps>;
|
|
|
5204
5216
|
|
|
5205
5217
|
export declare type RowVariant = 'success' | 'warning' | 'error' | 'info';
|
|
5206
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
|
+
|
|
5207
5235
|
/** Forwards a ref to the input, so a consumer can focus the field. */
|
|
5208
5236
|
export declare const Search: default_2.ForwardRefExoticComponent<SearchProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
5209
5237
|
|
|
@@ -6637,6 +6665,7 @@ export declare const Timeline: default_2.FC<TimelineProps> & {
|
|
|
6637
6665
|
|
|
6638
6666
|
export declare interface TimelineItemProps {
|
|
6639
6667
|
title: default_2.ReactNode;
|
|
6668
|
+
eyebrow?: default_2.ReactNode;
|
|
6640
6669
|
/**
|
|
6641
6670
|
* Code set after the title in the mono face, as one phrase with it, e.g. `title="n8n called"`
|
|
6642
6671
|
* with `titleCode="Salesforce | Delete contact"`.
|