@stackone/malachite 2.87.0 → 2.88.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 +2 -2
- package/dist/components/Accordion.js +206 -179
- package/dist/components/Accordion.js.map +1 -1
- package/dist/components/Button.js +118 -81
- package/dist/components/Button.js.map +1 -1
- package/dist/components/Chat/ChatModelPicker.js +70 -67
- package/dist/components/Chat/ChatModelPicker.js.map +1 -1
- package/dist/components/FilterSearch.js +92 -91
- package/dist/components/FilterSearch.js.map +1 -1
- package/dist/components/MultiSelect.js +190 -189
- package/dist/components/MultiSelect.js.map +1 -1
- package/dist/components/PinnedCornerCap.js +32 -19
- package/dist/components/PinnedCornerCap.js.map +1 -1
- package/dist/components/QueryInput.js +95 -92
- package/dist/components/QueryInput.js.map +1 -1
- package/dist/components/SplitButton.js +62 -61
- package/dist/components/SplitButton.js.map +1 -1
- package/dist/components/Surface.js +98 -94
- package/dist/components/Surface.js.map +1 -1
- package/dist/components/Tooltip.js +93 -90
- package/dist/components/Tooltip.js.map +1 -1
- package/dist/components/activeElement.js +5 -1
- package/dist/components/activeElement.js.map +1 -1
- package/dist/components/useFollowTrigger.js +28 -0
- package/dist/components/useFollowTrigger.js.map +1 -0
- package/dist/index.d.ts +8 -6
- package/dist/tailwind.css.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare type AccessPillsSize = 'default' | 'dense';
|
|
|
32
32
|
/** `'mixed'` is partly on: some, not all, of the effect's actions are allowed. */
|
|
33
33
|
export declare type AccessPillState = boolean | 'mixed';
|
|
34
34
|
|
|
35
|
-
export declare const Accordion: default_2.
|
|
35
|
+
export declare const Accordion: default_2.ForwardRefExoticComponent<AccordionProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
36
36
|
|
|
37
37
|
declare interface AccordionBaseProps {
|
|
38
38
|
className?: string;
|
|
@@ -66,11 +66,13 @@ declare interface AccordionBaseProps {
|
|
|
66
66
|
/** Offset (px) from the top of the scroll container when `stickyHeader` is set. */
|
|
67
67
|
stickyTopOffset?: number;
|
|
68
68
|
/**
|
|
69
|
-
* With `stickyHeader`, rounds the header into its card's top corners once it pins,
|
|
70
|
-
*
|
|
69
|
+
* With `stickyHeader`, rounds the header into its card's top corners once it pins,
|
|
70
|
+
* in a flat, default-tone `<Surface overflow="clip" shadow={false}>`. Set
|
|
71
71
|
* `--malachite-ctx-pinned-surround` on an ancestor when the card sits on another ground.
|
|
72
72
|
*/
|
|
73
73
|
pinnedCorners?: boolean;
|
|
74
|
+
/** Change it after mount to flash an outline around the section. */
|
|
75
|
+
flashKey?: default_2.Key;
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
/**
|
|
@@ -86,7 +88,7 @@ export declare type AccordionProps = AccordionBaseProps & AccordionToggleProps &
|
|
|
86
88
|
});
|
|
87
89
|
|
|
88
90
|
declare interface AccordionToggleProps {
|
|
89
|
-
/** `false` is a section that never closes; the toggle props are then ignored. */
|
|
91
|
+
/** `false` is a section that never closes; the toggle props except `animate` are then ignored. */
|
|
90
92
|
collapsible?: boolean;
|
|
91
93
|
/** `gutter` puts the arrow before `leading` as its own mouse toggle; the title stays the keyboard one. */
|
|
92
94
|
arrowPosition?: 'start' | 'end' | 'gutter';
|
|
@@ -5226,7 +5228,7 @@ export declare interface SurfaceProps {
|
|
|
5226
5228
|
* Content overflow. Defaults to `hidden` so children are clipped to the rounded
|
|
5227
5229
|
* corners. Use `clip` to keep the rounded clipping WITHOUT creating a scroll
|
|
5228
5230
|
* container — so a `position: sticky` descendant still pins (unlike `hidden`,
|
|
5229
|
-
* which traps it). `visible` disables clipping entirely.
|
|
5231
|
+
* which traps it). `visible` disables clipping entirely. A flat, default-tone `clip` card clips at its border.
|
|
5230
5232
|
*/
|
|
5231
5233
|
overflow?: 'hidden' | 'visible' | 'clip';
|
|
5232
5234
|
/**
|
|
@@ -5313,7 +5315,7 @@ export declare interface SurfaceRowProps extends SurfaceRowChromeProps {
|
|
|
5313
5315
|
* which has no hover, always shows it.
|
|
5314
5316
|
*/
|
|
5315
5317
|
revealTrailing?: boolean;
|
|
5316
|
-
/** The row's indicator, before the children. */
|
|
5318
|
+
/** The row's indicator, before the children. With this or `dimmed`, pass one child. */
|
|
5317
5319
|
leading?: default_2.ReactNode;
|
|
5318
5320
|
/** Fades the children, not `leading` or `trailing`. */
|
|
5319
5321
|
dimmed?: boolean;
|