@stackone/malachite 0.42.2 → 0.44.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 +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1877 -1866
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/COMPONENTS.md
CHANGED
|
@@ -80,5 +80,6 @@ The catalog of components exported from `@stackone/malachite`. **Reach for one o
|
|
|
80
80
|
## Theming & utility
|
|
81
81
|
|
|
82
82
|
- **`MalachiteContext`** — Wraps a subtree in the shadow root + theme context. Wrap groups of components in this.
|
|
83
|
+
- **`ThemeScope`** — Pins a subtree to a fixed theme (e.g. a dark island in a light app) via its own shadow root, since theme tokens are scoped per shadow root.
|
|
83
84
|
- **`CustomIcons`** — Namespace of all built-in icons (`CustomIcons.<Name>Icon`), coloured via `currentColor`.
|
|
84
85
|
- **`ShadowEscape`** — Renders children into the document (escaping the shadow root) for portals/overlays.
|
package/dist/index.d.ts
CHANGED
|
@@ -433,6 +433,7 @@ export declare const Dropdown: ({ items, onItemSelected, defaultValue, disabled,
|
|
|
433
433
|
export declare interface DropdownItem {
|
|
434
434
|
id: string;
|
|
435
435
|
label: string;
|
|
436
|
+
icon?: default_2.ReactNode;
|
|
436
437
|
/** Alternate label shown in the trigger when selected (falls back to `label`). */
|
|
437
438
|
triggerLabel?: string;
|
|
438
439
|
/** Items sharing a `group` render under a section header, in first-seen order. */
|
|
@@ -515,6 +516,7 @@ declare interface FlexProps {
|
|
|
515
516
|
direction?: FlexDirection;
|
|
516
517
|
fullHeight?: boolean;
|
|
517
518
|
grow?: boolean;
|
|
519
|
+
shrink?: boolean;
|
|
518
520
|
wrap?: boolean;
|
|
519
521
|
width?: string;
|
|
520
522
|
id?: string;
|
|
@@ -1340,6 +1342,10 @@ declare interface SurfaceComponent extends default_2.FC<SurfaceProps> {
|
|
|
1340
1342
|
|
|
1341
1343
|
export declare interface SurfaceProps {
|
|
1342
1344
|
children?: default_2.ReactNode;
|
|
1345
|
+
padding?: boolean;
|
|
1346
|
+
role?: default_2.AriaRole;
|
|
1347
|
+
'aria-label'?: string;
|
|
1348
|
+
'aria-labelledby'?: string;
|
|
1343
1349
|
className?: string;
|
|
1344
1350
|
style?: default_2.CSSProperties;
|
|
1345
1351
|
}
|