@stackone/malachite 0.69.2 → 0.70.1

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/dist/index.d.ts CHANGED
@@ -335,6 +335,9 @@ 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
+ export declare type CardStripAddTileEmphasis = 'primary' | 'secondary';
340
+
338
341
  export declare interface CardStripAddTileProps {
339
342
  /** Visible label, e.g. "Add Profile". Also names the button for assistive tech. */
340
343
  label: string;
@@ -342,6 +345,8 @@ export declare interface CardStripAddTileProps {
342
345
  icon?: default_2.ReactNode;
343
346
  onClick: () => void;
344
347
  disabled?: boolean;
348
+ /** Leave unset: CardStrip picks `primary` while the strip is empty and `secondary` once cards exist. */
349
+ emphasis?: CardStripAddTileEmphasis;
345
350
  className?: string;
346
351
  }
347
352
 
@@ -360,6 +365,10 @@ export declare interface CardStripProps {
360
365
  fadeEdges?: boolean;
361
366
  /** Snap cards to the leading edge as the strip scrolls. */
362
367
  snap?: boolean;
368
+ /** Stretch the strip past the page layout's horizontal padding so its bottom rule runs
369
+ * the full width of the page card, while the cards stay aligned to the gutter. Only has
370
+ * an effect inside a layout that publishes its inset (malachite's `PageLayout`). */
371
+ bleed?: boolean;
363
372
  /** Whether a selection change scrolls the selected card into view. Set `false` when the
364
373
  * value comes from a URL: `scrollIntoView` walks every scrollable ancestor, so a
365
374
  * deep-linked strip below the fold jumps the page on load. */
@@ -609,11 +618,6 @@ declare interface DividerProps {
609
618
  grow?: boolean;
610
619
  }
611
620
 
612
- /**
613
- * A 1px horizontal divider component that uses the card border style from the theme.
614
- * The divider spans edge to edge of its container.
615
- * Supports configurable margin and padding using predefined spacing sizes.
616
- */
617
621
  export declare enum DividerVariant {
618
622
  Default = "default",
619
623
  Muted = "muted",
@@ -741,7 +745,7 @@ declare interface FlexProps {
741
745
  className?: string;
742
746
  }
743
747
 
744
- /** Which of the three theme typefaces to render in. Defaults to the sans body face. */
748
+ /** Which theme typeface to render in. Defaults to the sans body face. */
745
749
  declare type FontFamily = 'sans' | 'heading' | 'body' | 'mono';
746
750
 
747
751
  export declare type FontSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge';
@@ -957,9 +961,13 @@ export declare interface MalachiteTheme {
957
961
  large: string;
958
962
  };
959
963
  radius: {
964
+ /** Optional so adding a rung never breaks a consumer building a full theme literal. */
965
+ xs?: string;
960
966
  sm: string;
961
967
  md: string;
962
968
  lg: string;
969
+ /** Off-ladder: no rung exists between `lg` (8px) and `xl` (12px). */
970
+ '10'?: string;
963
971
  xl: string;
964
972
  xxl: string;
965
973
  xxxl: string;
@@ -1111,8 +1119,17 @@ export declare interface MalachiteTheme {
1111
1119
  selectedShadow: string;
1112
1120
  };
1113
1121
  selectableCard: {
1114
- selectedBackground: string;
1115
- selectedShadow: string;
1122
+ background: string;
1123
+ border: string;
1124
+ loadingBackground: string;
1125
+ selectedTint: string;
1126
+ selectedSurfaceEnd: string;
1127
+ selectedBorder: string;
1128
+ indicatorFill: string;
1129
+ libraryAccent: string;
1130
+ librarySelectedTint: string;
1131
+ librarySelectedBorder: string;
1132
+ libraryIndicatorFill: string;
1116
1133
  accent: string;
1117
1134
  mutedForeground: string;
1118
1135
  hoverBackground: string;
@@ -1126,6 +1143,8 @@ export declare interface MalachiteTheme {
1126
1143
  bottomRule: string;
1127
1144
  arrowBackground: string;
1128
1145
  arrowBorder: string;
1146
+ addPrimaryBackground: string;
1147
+ addPrimaryForeground: string;
1129
1148
  };
1130
1149
  dropdown: {
1131
1150
  border: string;
@@ -1668,6 +1687,8 @@ export declare interface SelectableCardProps {
1668
1687
  titleIcon?: default_2.ReactNode;
1669
1688
  /** `display` is the larger, lighter treatment the design gives the browse card; profile… */
1670
1689
  titleSize?: 'default' | 'display';
1690
+ /** Palette only — gradient, borders, indicator and eyebrow; position is settled by the strip. */
1691
+ variant?: SelectableCardVariant;
1671
1692
  /** Small label above the title ("Profile", "Explore"). */
1672
1693
  eyebrow?: string;
1673
1694
  /** Status pill rendered next to the eyebrow — or in its place when there is no eyebrow. */
@@ -1687,9 +1708,9 @@ export declare interface SelectableCardProps {
1687
1708
  loading?: boolean;
1688
1709
  loadingLabel?: string;
1689
1710
  loadingHint?: string;
1690
- /** Dims the card and blocks selection. */
1711
+ /** Blocks selection. Draws no dimming of its own — a switched-off profile is signalled by its `status` tag. */
1691
1712
  disabled?: boolean;
1692
- /** Dims the card without blocking selection. */
1713
+ /** Mutes the title without blocking selection. */
1693
1714
  dimmed?: boolean;
1694
1715
  onSelect?: (value: string) => void;
1695
1716
  /** Tab stop for the card. */
@@ -1706,6 +1727,9 @@ export declare interface SelectableCardStatus {
1706
1727
  type?: TagType;
1707
1728
  }
1708
1729
 
1730
+ /** The card's palette: `profile` is the green treatment, `library` the neutral one. */
1731
+ export declare type SelectableCardVariant = 'profile' | 'library';
1732
+
1709
1733
  /**
1710
1734
  * ShadowEscape renders its children OUTSIDE the Shadow DOM to avoid React hook issues.
1711
1735
  * This is used internally by form components to escape Shadow DOM boundaries.
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 m, l as T, m as S, n as u, o as g, p as h, q as C, r as y, s as B, D as w, t as x, u as F, v as A, F as L, w as b, x as f, y as v, z as P, E as k, G as D, H as z, I as M, J as R, K as I, L as N, M as V, N as j, O as q, P as E, Q as G, R as H, 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 ma, af as Ta, ag as Sa, ah as ua, ai as ga, aj as ha, ak as Ca, al as ya, am as Ba, an as wa, ao as xa, ap as Fa, aq as Aa, ar as La, as as ba, at as fa, au as va, av as Pa, aw as ka, ax as Da, ay as za, az as Ma, aA as Ra, aB as Ia, aC as Na, aD as Va } from "./index-C1NtW6zp.js";
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 m, l as T, m as S, n as u, o as g, p as h, q as C, r as y, s as B, D as w, t as x, u as F, v as A, F as L, w as b, x as f, y as v, z as P, E as k, G as D, H as z, I as M, J as R, K as I, L as N, M as V, N as j, O as q, P as E, Q as G, R as H, 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 ma, af as Ta, ag as Sa, ah as ua, ai as ga, aj as ha, ak as Ca, al as ya, am as Ba, an as wa, ao as xa, ap as Fa, aq as Aa, ar as La, as as ba, at as fa, au as va, av as Pa, aw as ka, ax as Da, ay as za, az as Ma, aA as Ra, aB as Ia, aC as Na, aD as Va } from "./index-B4pJB5Hz.js";
2
2
  export {
3
3
  s as Accordion,
4
4
  t as ActionBar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/malachite",
3
- "version": "0.69.2",
3
+ "version": "0.70.1",
4
4
  "description": "StackOne's themeable React component library — Shadow DOM isolated, scoped Tailwind, theme-token driven.",
5
5
  "license": "MIT",
6
6
  "author": "StackOne",