@stackone/malachite 1.0.1 → 1.3.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 +10 -6
- package/dist/{CodeBlockHighlighter-NaOLJy7k.js → CodeBlockHighlighter-BP8uRN_Y.js} +2 -2
- package/dist/{CodeBlockHighlighter-NaOLJy7k.js.map → CodeBlockHighlighter-BP8uRN_Y.js.map} +1 -1
- package/dist/{index-6sd_d7t_.js → index-9iikfmDP.js} +5405 -4755
- package/dist/index-9iikfmDP.js.map +1 -0
- package/dist/index.d.ts +167 -25
- package/dist/index.js +69 -65
- package/package.json +1 -1
- package/dist/index-6sd_d7t_.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, clearable, 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;
|
|
@@ -661,6 +678,8 @@ export declare interface DropdownProps {
|
|
|
661
678
|
helperText?: default_2.ReactNode;
|
|
662
679
|
placeholder?: string;
|
|
663
680
|
search?: boolean;
|
|
681
|
+
/** Adds a clear control to the trigger, reported as `onItemSelected(undefined)`. */
|
|
682
|
+
clearable?: boolean;
|
|
664
683
|
/** 'large' (42px) for form inputs; 'medium' (32px) for toolbar chips; 'small' (28px) beside a title. */
|
|
665
684
|
size?: DropdownSize;
|
|
666
685
|
/** Names the trigger from the light DOM, where `htmlFor` cannot reach into the shadow root. */
|
|
@@ -982,6 +1001,8 @@ export declare interface MalachiteTheme {
|
|
|
982
1001
|
lg: string;
|
|
983
1002
|
xl: string;
|
|
984
1003
|
default: string;
|
|
1004
|
+
/** Optional so adding a shadow never breaks a consumer building a full theme literal. */
|
|
1005
|
+
accent?: string;
|
|
985
1006
|
success: string;
|
|
986
1007
|
warning: string;
|
|
987
1008
|
error: string;
|
|
@@ -1036,6 +1057,15 @@ export declare interface MalachiteTheme {
|
|
|
1036
1057
|
border: string;
|
|
1037
1058
|
borderHover: string;
|
|
1038
1059
|
};
|
|
1060
|
+
/** Brand accent for interaction states — checked, selected, active. Green today,
|
|
1061
|
+
* but a rebrand repaints it; `success.*` stays status-only and does not follow.
|
|
1062
|
+
* Optional so adding a group never breaks a consumer building a full theme literal. */
|
|
1063
|
+
accent?: {
|
|
1064
|
+
background: string;
|
|
1065
|
+
foreground: string;
|
|
1066
|
+
border: string;
|
|
1067
|
+
backgroundGlass: string;
|
|
1068
|
+
};
|
|
1039
1069
|
control: {
|
|
1040
1070
|
borderHover: string;
|
|
1041
1071
|
};
|
|
@@ -1112,6 +1142,8 @@ export declare interface MalachiteTheme {
|
|
|
1112
1142
|
toggle: {
|
|
1113
1143
|
track: string;
|
|
1114
1144
|
trackChecked: string;
|
|
1145
|
+
/** The checked track while the change it represents has not been saved yet. */
|
|
1146
|
+
trackCheckedPending: string;
|
|
1115
1147
|
knob: string;
|
|
1116
1148
|
};
|
|
1117
1149
|
segmentedControl: {
|
|
@@ -1125,7 +1157,6 @@ export declare interface MalachiteTheme {
|
|
|
1125
1157
|
selectableCard: {
|
|
1126
1158
|
background: string;
|
|
1127
1159
|
border: string;
|
|
1128
|
-
loadingBackground: string;
|
|
1129
1160
|
selectedTint: string;
|
|
1130
1161
|
selectedSurfaceEnd: string;
|
|
1131
1162
|
selectedBorder: string;
|
|
@@ -1134,6 +1165,8 @@ export declare interface MalachiteTheme {
|
|
|
1134
1165
|
librarySelectedTint: string;
|
|
1135
1166
|
librarySelectedBorder: string;
|
|
1136
1167
|
libraryIndicatorFill: string;
|
|
1168
|
+
editingTint: string;
|
|
1169
|
+
editingIndicatorFill: string;
|
|
1137
1170
|
accent: string;
|
|
1138
1171
|
mutedForeground: string;
|
|
1139
1172
|
hoverBackground: string;
|
|
@@ -1144,12 +1177,18 @@ export declare interface MalachiteTheme {
|
|
|
1144
1177
|
background: string;
|
|
1145
1178
|
divider: string;
|
|
1146
1179
|
fade: string;
|
|
1147
|
-
bottomRule: string;
|
|
1148
1180
|
arrowBackground: string;
|
|
1149
1181
|
arrowBorder: string;
|
|
1150
1182
|
addPrimaryBackground: string;
|
|
1151
1183
|
addPrimaryForeground: string;
|
|
1152
1184
|
};
|
|
1185
|
+
selectionBar: {
|
|
1186
|
+
background: string;
|
|
1187
|
+
foreground: string;
|
|
1188
|
+
mutedForeground: string;
|
|
1189
|
+
divider: string;
|
|
1190
|
+
shadow: string;
|
|
1191
|
+
};
|
|
1153
1192
|
dropdown: {
|
|
1154
1193
|
border: string;
|
|
1155
1194
|
borderActive: string;
|
|
@@ -1379,6 +1418,11 @@ export declare const NumberTag: default_2.FC<NumberTagProps>;
|
|
|
1379
1418
|
export declare interface NumberTagProps {
|
|
1380
1419
|
value: number | string;
|
|
1381
1420
|
emphasis?: boolean;
|
|
1421
|
+
/**
|
|
1422
|
+
* Names the bare number for assistive tech — "3 schemas" rather than "3". Rendered as
|
|
1423
|
+
* visually-hidden text, because `aria-label` on a plain span is not honoured.
|
|
1424
|
+
*/
|
|
1425
|
+
'aria-label'?: string;
|
|
1382
1426
|
className?: string;
|
|
1383
1427
|
}
|
|
1384
1428
|
|
|
@@ -1430,6 +1474,16 @@ export declare interface PageAction {
|
|
|
1430
1474
|
dividerBefore?: boolean;
|
|
1431
1475
|
}
|
|
1432
1476
|
|
|
1477
|
+
/**
|
|
1478
|
+
* The page's action buttons, collapsing into an overflow menu as the row narrows. Exported so
|
|
1479
|
+
* a page that renders its own header block — e.g. one that scrolls the title away — keeps the
|
|
1480
|
+
* same behaviour instead of hand-rolling `buttons.map(...)` and losing the collapse, the
|
|
1481
|
+
* dividers and the href handling.
|
|
1482
|
+
*/
|
|
1483
|
+
export declare const PageActions: default_2.FC<{
|
|
1484
|
+
buttons: PageAction[];
|
|
1485
|
+
}>;
|
|
1486
|
+
|
|
1433
1487
|
declare type PageContentGap = 'small' | 'medium' | 'large' | 'xlarge';
|
|
1434
1488
|
|
|
1435
1489
|
export declare const PageLayout: {
|
|
@@ -1461,6 +1515,7 @@ export declare interface PartialMalachiteTheme {
|
|
|
1461
1515
|
};
|
|
1462
1516
|
tooltip?: Partial<MalachiteTheme['colors']['tooltip']>;
|
|
1463
1517
|
primary?: Partial<MalachiteTheme['colors']['primary']>;
|
|
1518
|
+
accent?: Partial<NonNullable<MalachiteTheme['colors']['accent']>>;
|
|
1464
1519
|
control?: Partial<MalachiteTheme['colors']['control']>;
|
|
1465
1520
|
outline?: Partial<MalachiteTheme['colors']['outline']>;
|
|
1466
1521
|
secondary?: Partial<MalachiteTheme['colors']['secondary']>;
|
|
@@ -1474,6 +1529,7 @@ export declare interface PartialMalachiteTheme {
|
|
|
1474
1529
|
segmentedControl?: Partial<MalachiteTheme['colors']['segmentedControl']>;
|
|
1475
1530
|
selectableCard?: Partial<MalachiteTheme['colors']['selectableCard']>;
|
|
1476
1531
|
cardStrip?: Partial<MalachiteTheme['colors']['cardStrip']>;
|
|
1532
|
+
selectionBar?: Partial<MalachiteTheme['colors']['selectionBar']>;
|
|
1477
1533
|
dropdown?: Partial<MalachiteTheme['colors']['dropdown']>;
|
|
1478
1534
|
tag?: {
|
|
1479
1535
|
[K in keyof MalachiteTheme['colors']['tag']]?: Partial<MalachiteTheme['colors']['tag'][K]>;
|
|
@@ -1695,8 +1751,6 @@ export declare interface SelectableCardProps {
|
|
|
1695
1751
|
title: string;
|
|
1696
1752
|
/** Leading glyph on the title line, e.g. a library/book icon. */
|
|
1697
1753
|
titleIcon?: default_2.ReactNode;
|
|
1698
|
-
/** `display` is the larger, lighter treatment the design gives the browse card; profile… */
|
|
1699
|
-
titleSize?: 'default' | 'display';
|
|
1700
1754
|
/** Palette only — gradient, borders, indicator and eyebrow; position is settled by the strip. */
|
|
1701
1755
|
variant?: SelectableCardVariant;
|
|
1702
1756
|
/** Small label above the title ("Profile", "Explore"). */
|
|
@@ -1714,7 +1768,7 @@ export declare interface SelectableCardProps {
|
|
|
1714
1768
|
selectedLabel?: string;
|
|
1715
1769
|
/** Wording shown in the same slot on hover, inviting the click. */
|
|
1716
1770
|
hoverLabel?: string;
|
|
1717
|
-
/** Replaces the card's content with a centred in-progress message
|
|
1771
|
+
/** Replaces the card's content with a centred in-progress message. */
|
|
1718
1772
|
loading?: boolean;
|
|
1719
1773
|
loadingLabel?: string;
|
|
1720
1774
|
loadingHint?: string;
|
|
@@ -1737,8 +1791,71 @@ export declare interface SelectableCardStatus {
|
|
|
1737
1791
|
type?: TagType;
|
|
1738
1792
|
}
|
|
1739
1793
|
|
|
1740
|
-
/** The card's palette: `profile` is
|
|
1741
|
-
|
|
1794
|
+
/** The card's palette: `profile` is green, `library` neutral, `editing` amber for a
|
|
1795
|
+
* profile with unsaved changes. */
|
|
1796
|
+
export declare type SelectableCardVariant = 'profile' | 'library' | 'editing';
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* A bar reporting a pending, not-yet-written selection and the actions that resolve it. Every
|
|
1800
|
+
* action destroys the button just pressed, so an `onClick` that ends the pending state must
|
|
1801
|
+
* also move focus.
|
|
1802
|
+
*/
|
|
1803
|
+
export declare const SelectionBar: default_2.FC<SelectionBarProps>;
|
|
1804
|
+
|
|
1805
|
+
export declare interface SelectionBarAction {
|
|
1806
|
+
label: string;
|
|
1807
|
+
onClick: () => void;
|
|
1808
|
+
/** 'primary' commits the pending change; 'quiet' reads as a link. */
|
|
1809
|
+
emphasis?: SelectionBarEmphasis;
|
|
1810
|
+
icon?: default_2.ReactNode;
|
|
1811
|
+
iconPosition?: 'start' | 'end';
|
|
1812
|
+
disabled?: boolean;
|
|
1813
|
+
/** Renders a vertical rule before this action. */
|
|
1814
|
+
dividerBefore?: boolean;
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
/** A `value + label` pair, e.g. `{ value: 3, label: 'Added' }`. */
|
|
1818
|
+
export declare interface SelectionBarCount {
|
|
1819
|
+
/** Not `ReactNode`: the live region reads this as text, so a node announces as
|
|
1820
|
+
* "[object Object]". */
|
|
1821
|
+
value: string | number;
|
|
1822
|
+
label: string;
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
export declare type SelectionBarEmphasis = 'primary' | 'secondary' | 'quiet';
|
|
1826
|
+
|
|
1827
|
+
export declare interface SelectionBarProps {
|
|
1828
|
+
/** Drives the mount: the bar animates in on true and animates out on false. */
|
|
1829
|
+
open: boolean;
|
|
1830
|
+
counts: SelectionBarCount[];
|
|
1831
|
+
actions: SelectionBarAction[];
|
|
1832
|
+
/** 'sticky' keeps the bar in view while its container scrolls; render it as the last child
|
|
1833
|
+
* of that content, with no `overflow: hidden` on any ancestor. */
|
|
1834
|
+
placement?: 'sticky' | 'inline';
|
|
1835
|
+
'aria-label'?: string;
|
|
1836
|
+
'aria-labelledby'?: string;
|
|
1837
|
+
className?: string;
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
export declare const SettingRow: default_2.FC<SettingRowProps>;
|
|
1841
|
+
|
|
1842
|
+
/** The ids a control needs to name and describe itself from the row's own text. */
|
|
1843
|
+
export declare interface SettingRowControlIds {
|
|
1844
|
+
labelId: string;
|
|
1845
|
+
descriptionId?: string;
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
export declare interface SettingRowProps {
|
|
1849
|
+
label: string;
|
|
1850
|
+
/** Small badge after the label, e.g. a `Tag`. */
|
|
1851
|
+
badge?: default_2.ReactNode;
|
|
1852
|
+
/** Explanation rendered under the row, outside its border. */
|
|
1853
|
+
description?: default_2.ReactNode;
|
|
1854
|
+
/** The control on the trailing edge. Passed the row's ids: a control `<label htmlFor>`
|
|
1855
|
+
* cannot reach must name itself with `aria-labelledby`. */
|
|
1856
|
+
control: default_2.ReactNode | ((ids: SettingRowControlIds) => default_2.ReactNode);
|
|
1857
|
+
className?: string;
|
|
1858
|
+
}
|
|
1742
1859
|
|
|
1743
1860
|
/**
|
|
1744
1861
|
* ShadowEscape renders its children OUTSIDE the Shadow DOM to avoid React hook issues.
|
|
@@ -1944,6 +2061,31 @@ export declare interface StepperProps {
|
|
|
1944
2061
|
'aria-labelledby'?: string;
|
|
1945
2062
|
}
|
|
1946
2063
|
|
|
2064
|
+
export declare interface StepTabItem {
|
|
2065
|
+
key: string;
|
|
2066
|
+
label: string;
|
|
2067
|
+
/** Position marker shown at the trailing edge. Defaults to `Step ${index + 1}`. */
|
|
2068
|
+
hint?: string;
|
|
2069
|
+
disabled?: boolean;
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
/**
|
|
2073
|
+
* A horizontal step navigator whose steps are destinations, unlike the read-only `Stepper`.
|
|
2074
|
+
* Each step is a button with `aria-current="step"`, not a tab.
|
|
2075
|
+
*/
|
|
2076
|
+
export declare const StepTabs: default_2.FC<StepTabsProps>;
|
|
2077
|
+
|
|
2078
|
+
export declare interface StepTabsProps {
|
|
2079
|
+
items: StepTabItem[];
|
|
2080
|
+
activeKey: string;
|
|
2081
|
+
/** Steps already satisfied. They render a check and stay reachable, so a user can go back. */
|
|
2082
|
+
completedKeys?: string[];
|
|
2083
|
+
onChange: (key: string) => void;
|
|
2084
|
+
'aria-label'?: string;
|
|
2085
|
+
'aria-labelledby'?: string;
|
|
2086
|
+
className?: string;
|
|
2087
|
+
}
|
|
2088
|
+
|
|
1947
2089
|
export declare const Surface: SurfaceComponent;
|
|
1948
2090
|
|
|
1949
2091
|
declare interface SurfaceComponent extends default_2.FC<SurfaceProps> {
|
|
@@ -2283,6 +2425,7 @@ declare interface ToggleProps {
|
|
|
2283
2425
|
onChange: (checked: boolean) => void;
|
|
2284
2426
|
disabled?: boolean;
|
|
2285
2427
|
size?: ToggleSize;
|
|
2428
|
+
tone?: ToggleTone;
|
|
2286
2429
|
/** Visible text shown before the switch (e.g. a filter label). */
|
|
2287
2430
|
label?: string;
|
|
2288
2431
|
/**
|
|
@@ -2295,6 +2438,7 @@ declare interface ToggleProps {
|
|
|
2295
2438
|
bordered?: boolean;
|
|
2296
2439
|
'aria-label'?: string;
|
|
2297
2440
|
'aria-labelledby'?: string;
|
|
2441
|
+
'aria-describedby'?: string;
|
|
2298
2442
|
className?: string;
|
|
2299
2443
|
id?: string;
|
|
2300
2444
|
}
|
|
@@ -2306,27 +2450,25 @@ export declare type ToggleSize = 'small' | 'medium';
|
|
|
2306
2450
|
*/
|
|
2307
2451
|
export declare function toggleTheme(): 'light' | 'dark';
|
|
2308
2452
|
|
|
2453
|
+
/** What the checked state means. 'pending' paints the track amber, for a switch whose change
|
|
2454
|
+
* has not been written yet. The unchecked track is unaffected. */
|
|
2455
|
+
export declare type ToggleTone = 'default' | 'pending';
|
|
2456
|
+
|
|
2309
2457
|
/**
|
|
2310
2458
|
* Which family of toolbar controls the chrome should match. `pill` matches the
|
|
2311
2459
|
* filter-bar inputs (`Search`, `MultiSelect`); `button` matches the buttons.
|
|
2312
2460
|
*/
|
|
2313
2461
|
export declare type ToggleVariant = 'pill' | 'button';
|
|
2314
2462
|
|
|
2315
|
-
/**
|
|
2316
|
-
* A flat, opaque horizontal bar — e.g. a toolbar/sub-header holding a Search or
|
|
2317
|
-
* filters. Owns its chrome (opaque `card-background` so scrolling content doesn't
|
|
2318
|
-
* bleed through when it's pinned, plus an optional bottom `divider`), so consumers
|
|
2319
|
-
* don't hand-roll `--malachite-*` backgrounds/borders. Positioning (incl.
|
|
2320
|
-
* `position: sticky`) is left to the consumer via `className`/`style`.
|
|
2321
|
-
*/
|
|
2322
2463
|
export declare const Toolbar: default_2.FC<ToolbarProps>;
|
|
2323
2464
|
|
|
2324
2465
|
export declare interface ToolbarProps {
|
|
2325
2466
|
children?: default_2.ReactNode;
|
|
2326
2467
|
/** Draw a bottom divider — for a bar that sits above scrolling/list content. */
|
|
2327
2468
|
divider?: boolean;
|
|
2328
|
-
/** Padding preset (applies to both axes).
|
|
2329
|
-
|
|
2469
|
+
/** Padding preset (applies to both axes). `none` for a bar that must sit flush with
|
|
2470
|
+
* the content it pins over — the consumer then owns the gutter. */
|
|
2471
|
+
padding?: 'none' | 'compact' | 'default';
|
|
2330
2472
|
className?: string;
|
|
2331
2473
|
style?: default_2.CSSProperties;
|
|
2332
2474
|
}
|
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-9iikfmDP.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