@stackone/malachite 1.0.0 → 1.2.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/COMPONENTS.md +10 -6
- package/dist/{CodeBlockHighlighter-DHnzIPYG.js → CodeBlockHighlighter-C9cWHdxh.js} +2 -2
- package/dist/{CodeBlockHighlighter-DHnzIPYG.js.map → CodeBlockHighlighter-C9cWHdxh.js.map} +1 -1
- package/dist/{index-Dn8Gk12W.js → index-BRXLHveD.js} +5233 -4667
- package/dist/index-BRXLHveD.js.map +1 -0
- package/dist/index.d.ts +173 -27
- package/dist/index.js +69 -65
- package/package.json +1 -1
- package/dist/index-Dn8Gk12W.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -335,7 +335,6 @@ export declare const CardStrip: default_2.FC<CardStripProps> & {
|
|
|
335
335
|
AddTile: default_2.FC<CardStripAddTileProps>;
|
|
336
336
|
};
|
|
337
337
|
|
|
338
|
-
/** How much weight the add tile's action carries. */
|
|
339
338
|
export declare type CardStripAddTileEmphasis = 'primary' | 'secondary';
|
|
340
339
|
|
|
341
340
|
export declare interface CardStripAddTileProps {
|
|
@@ -353,9 +352,11 @@ export declare interface CardStripAddTileProps {
|
|
|
353
352
|
export declare interface CardStripProps {
|
|
354
353
|
/** The selected card's value, matched against each radio child's `data-value`. */
|
|
355
354
|
value: string;
|
|
355
|
+
/** Overrides the palette the strip reads off the selected card. See `CardStripTone`. */
|
|
356
|
+
tone?: CardStripTone;
|
|
356
357
|
onChange: (value: string) => void;
|
|
357
|
-
/** Cards. Any element with `role="radio"` and a `data-value` joins the group;
|
|
358
|
-
*
|
|
358
|
+
/** Cards. Any element with `role="radio"` and a `data-value` joins the group; an
|
|
359
|
+
* add tile must be a direct child or it scrolls with the cards. */
|
|
359
360
|
children: default_2.ReactNode;
|
|
360
361
|
/** Pinned, non-scrolling slot before the cards (the Library card in the profile picker). */
|
|
361
362
|
leading?: default_2.ReactNode;
|
|
@@ -365,13 +366,11 @@ export declare interface CardStripProps {
|
|
|
365
366
|
fadeEdges?: boolean;
|
|
366
367
|
/** Snap cards to the leading edge as the strip scrolls. */
|
|
367
368
|
snap?: boolean;
|
|
368
|
-
/**
|
|
369
|
-
*
|
|
370
|
-
* an effect inside a layout that publishes its inset (malachite's `PageLayout`). */
|
|
369
|
+
/** Run the bottom rule the full width of the page card while the cards stay on the gutter.
|
|
370
|
+
* Only has an effect inside a layout that publishes its inset (`PageLayout`). */
|
|
371
371
|
bleed?: boolean;
|
|
372
372
|
/** Whether a selection change scrolls the selected card into view. Set `false` when the
|
|
373
|
-
* value comes from a URL
|
|
374
|
-
* deep-linked strip below the fold jumps the page on load. */
|
|
373
|
+
* value comes from a URL, or a deep-linked strip below the fold jumps the page on load. */
|
|
375
374
|
scrollSelectedIntoView?: boolean;
|
|
376
375
|
'aria-label'?: string;
|
|
377
376
|
'aria-labelledby'?: string;
|
|
@@ -379,6 +378,9 @@ export declare interface CardStripProps {
|
|
|
379
378
|
style?: default_2.CSSProperties;
|
|
380
379
|
}
|
|
381
380
|
|
|
381
|
+
/** Palette for the strip's rule. Pass the tone of whatever card is selected. */
|
|
382
|
+
export declare type CardStripTone = 'profile' | 'library' | 'editing';
|
|
383
|
+
|
|
382
384
|
export declare const Checkbox: default_2.FC<CheckboxProps>;
|
|
383
385
|
|
|
384
386
|
export declare interface CheckboxProps {
|
|
@@ -580,6 +582,8 @@ export declare const CustomIcons: {
|
|
|
580
582
|
SliderIcon: FC<IconProps>;
|
|
581
583
|
SortIcon: FC<IconProps>;
|
|
582
584
|
SourceIcon: FC<IconProps>;
|
|
585
|
+
StepCurrentIcon: FC<IconProps>;
|
|
586
|
+
StepUpcomingIcon: FC<IconProps>;
|
|
583
587
|
SyntheticWebhookIcon: FC<IconProps>;
|
|
584
588
|
TrashIcon: FC<IconProps>;
|
|
585
589
|
TriangleDownIcon: FC<IconProps>;
|
|
@@ -607,9 +611,19 @@ declare interface DefinitionRowProps {
|
|
|
607
611
|
|
|
608
612
|
export declare const Divider: default_2.FC<DividerProps>;
|
|
609
613
|
|
|
614
|
+
/** Fixed lengths a rule between inline controls can take. Left unset it spans its container. */
|
|
615
|
+
declare type DividerLength = 'small' | 'medium' | 'large';
|
|
616
|
+
|
|
610
617
|
export declare type DividerLineStyle = 'solid' | 'dashed';
|
|
611
618
|
|
|
619
|
+
declare type DividerOrientation = 'horizontal' | 'vertical';
|
|
620
|
+
|
|
612
621
|
declare interface DividerProps {
|
|
622
|
+
/** `vertical` draws a 1px rule between inline controls, e.g. groups in a toolbar. */
|
|
623
|
+
orientation?: DividerOrientation;
|
|
624
|
+
/** Length along the rule's own axis — height when vertical, width when horizontal.
|
|
625
|
+
* Unset spans the container. */
|
|
626
|
+
length?: DividerLength;
|
|
613
627
|
margin?: SpacingSize;
|
|
614
628
|
padding?: PaddingSize;
|
|
615
629
|
className?: string;
|
|
@@ -624,7 +638,7 @@ export declare enum DividerVariant {
|
|
|
624
638
|
Emphasis = "emphasis"
|
|
625
639
|
}
|
|
626
640
|
|
|
627
|
-
export declare const Dropdown: ({ items, onItemSelected, defaultValue, disabled, error, label, hint, tooltip, name, required, loading, menuLoading, formControl, description, helperText, placeholder, search, size, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: DropdownProps) => JSX_2.Element;
|
|
641
|
+
export declare const Dropdown: ({ items, onItemSelected, defaultValue, value, disabled, error, label, hint, tooltip, name, required, loading, menuLoading, formControl, description, helperText, placeholder, search, size, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: DropdownProps) => JSX_2.Element;
|
|
628
642
|
|
|
629
643
|
export declare interface DropdownItem {
|
|
630
644
|
id: string;
|
|
@@ -652,6 +666,9 @@ export declare interface DropdownProps {
|
|
|
652
666
|
items: DropdownItem[];
|
|
653
667
|
onItemSelected?: (id?: string) => void;
|
|
654
668
|
defaultValue?: string;
|
|
669
|
+
/** Controlled selection. When set, the trigger always reflects this id and the component
|
|
670
|
+
* keeps no selection state of its own. Pass it with `onItemSelected`. */
|
|
671
|
+
value?: string;
|
|
655
672
|
disabled?: boolean;
|
|
656
673
|
error?: boolean;
|
|
657
674
|
className?: string;
|
|
@@ -982,6 +999,8 @@ export declare interface MalachiteTheme {
|
|
|
982
999
|
lg: string;
|
|
983
1000
|
xl: string;
|
|
984
1001
|
default: string;
|
|
1002
|
+
/** Optional so adding a shadow never breaks a consumer building a full theme literal. */
|
|
1003
|
+
accent?: string;
|
|
985
1004
|
success: string;
|
|
986
1005
|
warning: string;
|
|
987
1006
|
error: string;
|
|
@@ -1036,6 +1055,15 @@ export declare interface MalachiteTheme {
|
|
|
1036
1055
|
border: string;
|
|
1037
1056
|
borderHover: string;
|
|
1038
1057
|
};
|
|
1058
|
+
/** Brand accent for interaction states — checked, selected, active. Green today,
|
|
1059
|
+
* but a rebrand repaints it; `success.*` stays status-only and does not follow.
|
|
1060
|
+
* Optional so adding a group never breaks a consumer building a full theme literal. */
|
|
1061
|
+
accent?: {
|
|
1062
|
+
background: string;
|
|
1063
|
+
foreground: string;
|
|
1064
|
+
border: string;
|
|
1065
|
+
backgroundGlass: string;
|
|
1066
|
+
};
|
|
1039
1067
|
control: {
|
|
1040
1068
|
borderHover: string;
|
|
1041
1069
|
};
|
|
@@ -1112,6 +1140,8 @@ export declare interface MalachiteTheme {
|
|
|
1112
1140
|
toggle: {
|
|
1113
1141
|
track: string;
|
|
1114
1142
|
trackChecked: string;
|
|
1143
|
+
/** The checked track while the change it represents has not been saved yet. */
|
|
1144
|
+
trackCheckedPending: string;
|
|
1115
1145
|
knob: string;
|
|
1116
1146
|
};
|
|
1117
1147
|
segmentedControl: {
|
|
@@ -1125,7 +1155,6 @@ export declare interface MalachiteTheme {
|
|
|
1125
1155
|
selectableCard: {
|
|
1126
1156
|
background: string;
|
|
1127
1157
|
border: string;
|
|
1128
|
-
loadingBackground: string;
|
|
1129
1158
|
selectedTint: string;
|
|
1130
1159
|
selectedSurfaceEnd: string;
|
|
1131
1160
|
selectedBorder: string;
|
|
@@ -1134,6 +1163,8 @@ export declare interface MalachiteTheme {
|
|
|
1134
1163
|
librarySelectedTint: string;
|
|
1135
1164
|
librarySelectedBorder: string;
|
|
1136
1165
|
libraryIndicatorFill: string;
|
|
1166
|
+
editingTint: string;
|
|
1167
|
+
editingIndicatorFill: string;
|
|
1137
1168
|
accent: string;
|
|
1138
1169
|
mutedForeground: string;
|
|
1139
1170
|
hoverBackground: string;
|
|
@@ -1144,12 +1175,18 @@ export declare interface MalachiteTheme {
|
|
|
1144
1175
|
background: string;
|
|
1145
1176
|
divider: string;
|
|
1146
1177
|
fade: string;
|
|
1147
|
-
bottomRule: string;
|
|
1148
1178
|
arrowBackground: string;
|
|
1149
1179
|
arrowBorder: string;
|
|
1150
1180
|
addPrimaryBackground: string;
|
|
1151
1181
|
addPrimaryForeground: string;
|
|
1152
1182
|
};
|
|
1183
|
+
selectionBar: {
|
|
1184
|
+
background: string;
|
|
1185
|
+
foreground: string;
|
|
1186
|
+
mutedForeground: string;
|
|
1187
|
+
divider: string;
|
|
1188
|
+
shadow: string;
|
|
1189
|
+
};
|
|
1153
1190
|
dropdown: {
|
|
1154
1191
|
border: string;
|
|
1155
1192
|
borderActive: string;
|
|
@@ -1379,6 +1416,11 @@ export declare const NumberTag: default_2.FC<NumberTagProps>;
|
|
|
1379
1416
|
export declare interface NumberTagProps {
|
|
1380
1417
|
value: number | string;
|
|
1381
1418
|
emphasis?: boolean;
|
|
1419
|
+
/**
|
|
1420
|
+
* Names the bare number for assistive tech — "3 schemas" rather than "3". Rendered as
|
|
1421
|
+
* visually-hidden text, because `aria-label` on a plain span is not honoured.
|
|
1422
|
+
*/
|
|
1423
|
+
'aria-label'?: string;
|
|
1382
1424
|
className?: string;
|
|
1383
1425
|
}
|
|
1384
1426
|
|
|
@@ -1430,6 +1472,16 @@ export declare interface PageAction {
|
|
|
1430
1472
|
dividerBefore?: boolean;
|
|
1431
1473
|
}
|
|
1432
1474
|
|
|
1475
|
+
/**
|
|
1476
|
+
* The page's action buttons, collapsing into an overflow menu as the row narrows. Exported so
|
|
1477
|
+
* a page that renders its own header block — e.g. one that scrolls the title away — keeps the
|
|
1478
|
+
* same behaviour instead of hand-rolling `buttons.map(...)` and losing the collapse, the
|
|
1479
|
+
* dividers and the href handling.
|
|
1480
|
+
*/
|
|
1481
|
+
export declare const PageActions: default_2.FC<{
|
|
1482
|
+
buttons: PageAction[];
|
|
1483
|
+
}>;
|
|
1484
|
+
|
|
1433
1485
|
declare type PageContentGap = 'small' | 'medium' | 'large' | 'xlarge';
|
|
1434
1486
|
|
|
1435
1487
|
export declare const PageLayout: {
|
|
@@ -1454,9 +1506,14 @@ export declare interface PartialMalachiteTheme {
|
|
|
1454
1506
|
shadowOpacity?: number;
|
|
1455
1507
|
card?: Partial<MalachiteTheme['colors']['card']>;
|
|
1456
1508
|
overlay?: Partial<MalachiteTheme['colors']['overlay']>;
|
|
1457
|
-
|
|
1509
|
+
/** Nested-partial: a sub-object may be overridden leaf by leaf. A flat
|
|
1510
|
+
* `Partial<…>` would demand every leaf of any group you touch. */
|
|
1511
|
+
alert?: {
|
|
1512
|
+
[K in keyof MalachiteTheme['colors']['alert']]?: Partial<MalachiteTheme['colors']['alert'][K]>;
|
|
1513
|
+
};
|
|
1458
1514
|
tooltip?: Partial<MalachiteTheme['colors']['tooltip']>;
|
|
1459
1515
|
primary?: Partial<MalachiteTheme['colors']['primary']>;
|
|
1516
|
+
accent?: Partial<NonNullable<MalachiteTheme['colors']['accent']>>;
|
|
1460
1517
|
control?: Partial<MalachiteTheme['colors']['control']>;
|
|
1461
1518
|
outline?: Partial<MalachiteTheme['colors']['outline']>;
|
|
1462
1519
|
secondary?: Partial<MalachiteTheme['colors']['secondary']>;
|
|
@@ -1470,8 +1527,11 @@ export declare interface PartialMalachiteTheme {
|
|
|
1470
1527
|
segmentedControl?: Partial<MalachiteTheme['colors']['segmentedControl']>;
|
|
1471
1528
|
selectableCard?: Partial<MalachiteTheme['colors']['selectableCard']>;
|
|
1472
1529
|
cardStrip?: Partial<MalachiteTheme['colors']['cardStrip']>;
|
|
1530
|
+
selectionBar?: Partial<MalachiteTheme['colors']['selectionBar']>;
|
|
1473
1531
|
dropdown?: Partial<MalachiteTheme['colors']['dropdown']>;
|
|
1474
|
-
tag?:
|
|
1532
|
+
tag?: {
|
|
1533
|
+
[K in keyof MalachiteTheme['colors']['tag']]?: Partial<MalachiteTheme['colors']['tag'][K]>;
|
|
1534
|
+
};
|
|
1475
1535
|
numberTag?: Partial<MalachiteTheme['colors']['numberTag']>;
|
|
1476
1536
|
table?: Partial<Omit<MalachiteTheme['colors']['table'], 'header' | 'row' | 'borderedRow' | 'rowVariant' | 'error'>> & {
|
|
1477
1537
|
header?: Partial<MalachiteTheme['colors']['table']['header']>;
|
|
@@ -1689,8 +1749,6 @@ export declare interface SelectableCardProps {
|
|
|
1689
1749
|
title: string;
|
|
1690
1750
|
/** Leading glyph on the title line, e.g. a library/book icon. */
|
|
1691
1751
|
titleIcon?: default_2.ReactNode;
|
|
1692
|
-
/** `display` is the larger, lighter treatment the design gives the browse card; profile… */
|
|
1693
|
-
titleSize?: 'default' | 'display';
|
|
1694
1752
|
/** Palette only — gradient, borders, indicator and eyebrow; position is settled by the strip. */
|
|
1695
1753
|
variant?: SelectableCardVariant;
|
|
1696
1754
|
/** Small label above the title ("Profile", "Explore"). */
|
|
@@ -1708,7 +1766,7 @@ export declare interface SelectableCardProps {
|
|
|
1708
1766
|
selectedLabel?: string;
|
|
1709
1767
|
/** Wording shown in the same slot on hover, inviting the click. */
|
|
1710
1768
|
hoverLabel?: string;
|
|
1711
|
-
/** Replaces the card's content with a centred in-progress message
|
|
1769
|
+
/** Replaces the card's content with a centred in-progress message. */
|
|
1712
1770
|
loading?: boolean;
|
|
1713
1771
|
loadingLabel?: string;
|
|
1714
1772
|
loadingHint?: string;
|
|
@@ -1731,8 +1789,71 @@ export declare interface SelectableCardStatus {
|
|
|
1731
1789
|
type?: TagType;
|
|
1732
1790
|
}
|
|
1733
1791
|
|
|
1734
|
-
/** The card's palette: `profile` is
|
|
1735
|
-
|
|
1792
|
+
/** The card's palette: `profile` is green, `library` neutral, `editing` amber for a
|
|
1793
|
+
* profile with unsaved changes. */
|
|
1794
|
+
export declare type SelectableCardVariant = 'profile' | 'library' | 'editing';
|
|
1795
|
+
|
|
1796
|
+
/**
|
|
1797
|
+
* A bar reporting a pending, not-yet-written selection and the actions that resolve it. Every
|
|
1798
|
+
* action destroys the button just pressed, so an `onClick` that ends the pending state must
|
|
1799
|
+
* also move focus.
|
|
1800
|
+
*/
|
|
1801
|
+
export declare const SelectionBar: default_2.FC<SelectionBarProps>;
|
|
1802
|
+
|
|
1803
|
+
export declare interface SelectionBarAction {
|
|
1804
|
+
label: string;
|
|
1805
|
+
onClick: () => void;
|
|
1806
|
+
/** 'primary' commits the pending change; 'quiet' reads as a link. */
|
|
1807
|
+
emphasis?: SelectionBarEmphasis;
|
|
1808
|
+
icon?: default_2.ReactNode;
|
|
1809
|
+
iconPosition?: 'start' | 'end';
|
|
1810
|
+
disabled?: boolean;
|
|
1811
|
+
/** Renders a vertical rule before this action. */
|
|
1812
|
+
dividerBefore?: boolean;
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
/** A `value + label` pair, e.g. `{ value: 3, label: 'Added' }`. */
|
|
1816
|
+
export declare interface SelectionBarCount {
|
|
1817
|
+
/** Not `ReactNode`: the live region reads this as text, so a node announces as
|
|
1818
|
+
* "[object Object]". */
|
|
1819
|
+
value: string | number;
|
|
1820
|
+
label: string;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
export declare type SelectionBarEmphasis = 'primary' | 'secondary' | 'quiet';
|
|
1824
|
+
|
|
1825
|
+
export declare interface SelectionBarProps {
|
|
1826
|
+
/** Drives the mount: the bar animates in on true and animates out on false. */
|
|
1827
|
+
open: boolean;
|
|
1828
|
+
counts: SelectionBarCount[];
|
|
1829
|
+
actions: SelectionBarAction[];
|
|
1830
|
+
/** 'sticky' keeps the bar in view while its container scrolls; render it as the last child
|
|
1831
|
+
* of that content, with no `overflow: hidden` on any ancestor. */
|
|
1832
|
+
placement?: 'sticky' | 'inline';
|
|
1833
|
+
'aria-label'?: string;
|
|
1834
|
+
'aria-labelledby'?: string;
|
|
1835
|
+
className?: string;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
export declare const SettingRow: default_2.FC<SettingRowProps>;
|
|
1839
|
+
|
|
1840
|
+
/** The ids a control needs to name and describe itself from the row's own text. */
|
|
1841
|
+
export declare interface SettingRowControlIds {
|
|
1842
|
+
labelId: string;
|
|
1843
|
+
descriptionId?: string;
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
export declare interface SettingRowProps {
|
|
1847
|
+
label: string;
|
|
1848
|
+
/** Small badge after the label, e.g. a `Tag`. */
|
|
1849
|
+
badge?: default_2.ReactNode;
|
|
1850
|
+
/** Explanation rendered under the row, outside its border. */
|
|
1851
|
+
description?: default_2.ReactNode;
|
|
1852
|
+
/** The control on the trailing edge. Passed the row's ids: a control `<label htmlFor>`
|
|
1853
|
+
* cannot reach must name itself with `aria-labelledby`. */
|
|
1854
|
+
control: default_2.ReactNode | ((ids: SettingRowControlIds) => default_2.ReactNode);
|
|
1855
|
+
className?: string;
|
|
1856
|
+
}
|
|
1736
1857
|
|
|
1737
1858
|
/**
|
|
1738
1859
|
* ShadowEscape renders its children OUTSIDE the Shadow DOM to avoid React hook issues.
|
|
@@ -1938,6 +2059,31 @@ export declare interface StepperProps {
|
|
|
1938
2059
|
'aria-labelledby'?: string;
|
|
1939
2060
|
}
|
|
1940
2061
|
|
|
2062
|
+
export declare interface StepTabItem {
|
|
2063
|
+
key: string;
|
|
2064
|
+
label: string;
|
|
2065
|
+
/** Position marker shown at the trailing edge. Defaults to `Step ${index + 1}`. */
|
|
2066
|
+
hint?: string;
|
|
2067
|
+
disabled?: boolean;
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
/**
|
|
2071
|
+
* A horizontal step navigator whose steps are destinations, unlike the read-only `Stepper`.
|
|
2072
|
+
* Each step is a button with `aria-current="step"`, not a tab.
|
|
2073
|
+
*/
|
|
2074
|
+
export declare const StepTabs: default_2.FC<StepTabsProps>;
|
|
2075
|
+
|
|
2076
|
+
export declare interface StepTabsProps {
|
|
2077
|
+
items: StepTabItem[];
|
|
2078
|
+
activeKey: string;
|
|
2079
|
+
/** Steps already satisfied. They render a check and stay reachable, so a user can go back. */
|
|
2080
|
+
completedKeys?: string[];
|
|
2081
|
+
onChange: (key: string) => void;
|
|
2082
|
+
'aria-label'?: string;
|
|
2083
|
+
'aria-labelledby'?: string;
|
|
2084
|
+
className?: string;
|
|
2085
|
+
}
|
|
2086
|
+
|
|
1941
2087
|
export declare const Surface: SurfaceComponent;
|
|
1942
2088
|
|
|
1943
2089
|
declare interface SurfaceComponent extends default_2.FC<SurfaceProps> {
|
|
@@ -2277,6 +2423,7 @@ declare interface ToggleProps {
|
|
|
2277
2423
|
onChange: (checked: boolean) => void;
|
|
2278
2424
|
disabled?: boolean;
|
|
2279
2425
|
size?: ToggleSize;
|
|
2426
|
+
tone?: ToggleTone;
|
|
2280
2427
|
/** Visible text shown before the switch (e.g. a filter label). */
|
|
2281
2428
|
label?: string;
|
|
2282
2429
|
/**
|
|
@@ -2289,6 +2436,7 @@ declare interface ToggleProps {
|
|
|
2289
2436
|
bordered?: boolean;
|
|
2290
2437
|
'aria-label'?: string;
|
|
2291
2438
|
'aria-labelledby'?: string;
|
|
2439
|
+
'aria-describedby'?: string;
|
|
2292
2440
|
className?: string;
|
|
2293
2441
|
id?: string;
|
|
2294
2442
|
}
|
|
@@ -2300,27 +2448,25 @@ export declare type ToggleSize = 'small' | 'medium';
|
|
|
2300
2448
|
*/
|
|
2301
2449
|
export declare function toggleTheme(): 'light' | 'dark';
|
|
2302
2450
|
|
|
2451
|
+
/** What the checked state means. 'pending' paints the track amber, for a switch whose change
|
|
2452
|
+
* has not been written yet. The unchecked track is unaffected. */
|
|
2453
|
+
export declare type ToggleTone = 'default' | 'pending';
|
|
2454
|
+
|
|
2303
2455
|
/**
|
|
2304
2456
|
* Which family of toolbar controls the chrome should match. `pill` matches the
|
|
2305
2457
|
* filter-bar inputs (`Search`, `MultiSelect`); `button` matches the buttons.
|
|
2306
2458
|
*/
|
|
2307
2459
|
export declare type ToggleVariant = 'pill' | 'button';
|
|
2308
2460
|
|
|
2309
|
-
/**
|
|
2310
|
-
* A flat, opaque horizontal bar — e.g. a toolbar/sub-header holding a Search or
|
|
2311
|
-
* filters. Owns its chrome (opaque `card-background` so scrolling content doesn't
|
|
2312
|
-
* bleed through when it's pinned, plus an optional bottom `divider`), so consumers
|
|
2313
|
-
* don't hand-roll `--malachite-*` backgrounds/borders. Positioning (incl.
|
|
2314
|
-
* `position: sticky`) is left to the consumer via `className`/`style`.
|
|
2315
|
-
*/
|
|
2316
2461
|
export declare const Toolbar: default_2.FC<ToolbarProps>;
|
|
2317
2462
|
|
|
2318
2463
|
export declare interface ToolbarProps {
|
|
2319
2464
|
children?: default_2.ReactNode;
|
|
2320
2465
|
/** Draw a bottom divider — for a bar that sits above scrolling/list content. */
|
|
2321
2466
|
divider?: boolean;
|
|
2322
|
-
/** Padding preset (applies to both axes).
|
|
2323
|
-
|
|
2467
|
+
/** Padding preset (applies to both axes). `none` for a bar that must sit flush with
|
|
2468
|
+
* the content it pins over — the consumer then owns the gutter. */
|
|
2469
|
+
padding?: 'none' | 'compact' | 'default';
|
|
2324
2470
|
className?: string;
|
|
2325
2471
|
style?: default_2.CSSProperties;
|
|
2326
2472
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, c as t, d as o, e as r, f as i, g as n, B as l, h as p, i as d, j as c, k as
|
|
1
|
+
import { A as s, c as t, d as o, e as r, f as i, g as n, B as l, h as p, i as d, j as c, k as S, l as T, m, n as u, o as g, p as h, q as C, r as y, s as B, D as w, t as F, u as x, v as A, F as b, w as L, x as P, y as f, z as v, E as k, G as D, H as z, I as R, J as M, K as I, L as N, M as V, N as E, O as G, P as H, Q as j, R as q, S as J, T as K, U as O, V as W, W as Q, X as U, Y as X, Z as Y, $ as Z, a0 as $, a1 as _, a2 as aa, a3 as ea, a4 as sa, a5 as ta, a6 as oa, a7 as ra, a8 as ia, a9 as na, aa as la, ab as pa, ac as da, ad as ca, ae as Sa, af as Ta, ag as ma, ah as ua, ai as ga, aj as ha, ak as Ca, al as ya, am as Ba, an as wa, ao as Fa, ap as xa, aq as Aa, ar as ba, as as La, at as Pa, au as fa, av as va, aw as ka, ax as Da, ay as za, az as Ra, aA as Ma, aB as Ia, aC as Na, aD as Va, aE as Ea, aF as Ga, aG as Ha, aH as ja } from "./index-BRXLHveD.js";
|
|
2
2
|
export {
|
|
3
3
|
s as Accordion,
|
|
4
4
|
t as ActionBar,
|
|
@@ -10,9 +10,9 @@ export {
|
|
|
10
10
|
p as Breadcrumbs,
|
|
11
11
|
d as Button,
|
|
12
12
|
c as ButtonList,
|
|
13
|
-
|
|
13
|
+
S as Card,
|
|
14
14
|
T as CardStrip,
|
|
15
|
-
|
|
15
|
+
m as Checkbox,
|
|
16
16
|
u as ClampText,
|
|
17
17
|
g as CodeBlock,
|
|
18
18
|
h as CollapsibleSection,
|
|
@@ -20,75 +20,79 @@ export {
|
|
|
20
20
|
y as ConnectionHeader,
|
|
21
21
|
B as CustomIcons,
|
|
22
22
|
w as DefinitionRow,
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
F as Divider,
|
|
24
|
+
x as DividerVariant,
|
|
25
25
|
A as Dropdown,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
b as Flex,
|
|
27
|
+
L as FlexAlign,
|
|
28
|
+
P as FlexDirection,
|
|
29
|
+
f as FlexGapSize,
|
|
30
|
+
v as FlexJustify,
|
|
31
31
|
k as FooterLinks,
|
|
32
32
|
D as FooterNav,
|
|
33
33
|
z as Form,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
R as FormItem,
|
|
35
|
+
M as Input,
|
|
36
36
|
I as KeyValueList,
|
|
37
37
|
N as Link,
|
|
38
38
|
V as LoadingBar,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
E as MalachiteContext,
|
|
40
|
+
G as MultiSelect,
|
|
41
|
+
H as NumberTag,
|
|
42
|
+
j as OverflowRow,
|
|
43
|
+
q as Padded,
|
|
44
44
|
J as PaddingSize,
|
|
45
|
-
K as
|
|
46
|
-
O as
|
|
47
|
-
W as
|
|
48
|
-
Q as
|
|
49
|
-
U as
|
|
50
|
-
X as
|
|
51
|
-
Y as
|
|
52
|
-
Z as
|
|
53
|
-
$ as
|
|
54
|
-
_ as
|
|
55
|
-
aa as
|
|
56
|
-
ea as
|
|
57
|
-
sa as
|
|
58
|
-
ta as
|
|
59
|
-
oa as
|
|
60
|
-
ra as
|
|
61
|
-
ia as
|
|
62
|
-
na as
|
|
63
|
-
la as
|
|
64
|
-
pa as
|
|
65
|
-
da as
|
|
66
|
-
ca as
|
|
67
|
-
|
|
68
|
-
Ta as
|
|
69
|
-
|
|
70
|
-
ua as
|
|
71
|
-
ga as
|
|
72
|
-
ha as
|
|
73
|
-
Ca as
|
|
74
|
-
ya as
|
|
75
|
-
Ba as
|
|
76
|
-
wa as
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
Aa as
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
ka as
|
|
86
|
-
Da as
|
|
87
|
-
za as
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
Ia as
|
|
91
|
-
Na as
|
|
92
|
-
Va as
|
|
45
|
+
K as PageActions,
|
|
46
|
+
O as PageLayout,
|
|
47
|
+
W as PillButton,
|
|
48
|
+
Q as PreviewTree,
|
|
49
|
+
U as PreviewTreeRow,
|
|
50
|
+
X as Progress,
|
|
51
|
+
Y as Radio,
|
|
52
|
+
Z as Search,
|
|
53
|
+
$ as SegmentedControl,
|
|
54
|
+
_ as SelectableCard,
|
|
55
|
+
aa as SelectionBar,
|
|
56
|
+
ea as SettingRow,
|
|
57
|
+
sa as ShadowEscape,
|
|
58
|
+
ta as SidePanel,
|
|
59
|
+
oa as SidePanelNavFooter,
|
|
60
|
+
ra as Skeleton,
|
|
61
|
+
ia as Spacer,
|
|
62
|
+
na as SpacingSize,
|
|
63
|
+
la as Spinner,
|
|
64
|
+
pa as SplitScreenLayout,
|
|
65
|
+
da as StatBadge,
|
|
66
|
+
ca as Statistic,
|
|
67
|
+
Sa as StatusBadge,
|
|
68
|
+
Ta as StepTabs,
|
|
69
|
+
ma as Stepper,
|
|
70
|
+
ua as Surface,
|
|
71
|
+
ga as SurfaceRow,
|
|
72
|
+
ha as Swatch,
|
|
73
|
+
Ca as Table,
|
|
74
|
+
ya as Tabs,
|
|
75
|
+
Ba as Tag,
|
|
76
|
+
wa as TextArea,
|
|
77
|
+
Fa as ThemeScope,
|
|
78
|
+
xa as Toggle,
|
|
79
|
+
Aa as Toolbar,
|
|
80
|
+
ba as Tooltip,
|
|
81
|
+
La as TruncatedTooltip,
|
|
82
|
+
Pa as Typography,
|
|
83
|
+
fa as WizardLayout,
|
|
84
|
+
va as applyCustomTheme,
|
|
85
|
+
ka as applyDarkTheme,
|
|
86
|
+
Da as applyLightTheme,
|
|
87
|
+
za as applyTheme,
|
|
88
|
+
Ra as applyThemeVars,
|
|
89
|
+
Ma as buildActionBarMenuItems,
|
|
90
|
+
Ia as darkTheme,
|
|
91
|
+
Na as defaultTheme,
|
|
92
|
+
Va as getCurrentTheme,
|
|
93
|
+
Ea as getCurrentThemeMode,
|
|
94
|
+
Ga as initializeTheme,
|
|
95
|
+
Ha as resetTheme,
|
|
96
|
+
ja as toggleTheme
|
|
93
97
|
};
|
|
94
98
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED