@graphty/compact-mantine 0.9.31 → 0.9.33

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.cts CHANGED
@@ -1636,7 +1636,7 @@ export declare interface CompoundSegment {
1636
1636
  }
1637
1637
 
1638
1638
  /**
1639
- * A dark menu opened at the pointer by a right-click (design/figma-spec.md 8.2):
1639
+ * A menu opened at the pointer by a right-click (design/figma-spec.md 8.2):
1640
1640
  * its top-left corner 3px right of and 5px above the pointer, flipping and
1641
1641
  * shifting to stay on screen, with the first enabled row highlighted so Enter
1642
1642
  * acts on it at once. It also opens from the keyboard (Shift+F10, the
@@ -2894,10 +2894,9 @@ export declare type GestureStartHandler = (event: default_2.PointerEvent) => voi
2894
2894
  /**
2895
2895
  * Works out whether an activation came from a pointer or from the keyboard.
2896
2896
  *
2897
- * A keyboard activation is recognized three ways: the event is a keyboard event;
2898
- * or it is a pointer event with no pointer type; or it is a mouse event with a
2899
- * click count of zero, which is how a browser reports the click it synthesizes
2900
- * from Enter or Space on a button.
2897
+ * A keyboard activation is either a keyboard event, or a click with a click
2898
+ * count of zero and no pointer type, which is how a browser reports the click it
2899
+ * synthesizes from Enter or Space on a button.
2901
2900
  * @param event - The event that activated the control
2902
2901
  * @returns The activation source, ready to hand to an {@link ActivationHandlerWithMeta}
2903
2902
  */
@@ -3043,7 +3042,7 @@ export declare interface GradientEditorProps {
3043
3042
  /**
3044
3043
  * Figma's floating help button: a 32 x 32 circle on `--cm-bg` with the 200 elevation and no hover
3045
3044
  * change. Its tooltip shows and hides at once outside a Tooltip.Group; its focus ring (1px at -2px) fades in over 200ms.
3046
- * It opens a dark menu of the caller's items, 4px above and end-aligned.
3045
+ * It opens a menu of the caller's items, 4px above and end-aligned.
3047
3046
  * @param props - Component props
3048
3047
  * @param props.label - Accessible name and tooltip
3049
3048
  * @param props.children - The menu's items
@@ -3864,11 +3863,11 @@ export declare const PANEL_INK: {
3864
3863
  readonly ACCENT_GRAPHIC: "var(--cm-graphic-brand)";
3865
3864
  /** the white label on the danger, success and inverse fills, which no accent changes */
3866
3865
  readonly ON_SOLID: "var(--cm-text-onsolid)";
3867
- /** warning (#ffcd29 / #f3c11b) */
3866
+ /** a warning fill, dot or glyph (#ffcd29 / #f3c11b); text uses WARNING_TEXT */
3868
3867
  readonly WARNING: "var(--cm-bg-warning)";
3869
- /** success (#14ae5c / #198f51) */
3868
+ /** a success fill or dot (#14ae5c / #198f51); text and glyphs use SUCCESS_TEXT */
3870
3869
  readonly SUCCESS: "var(--cm-bg-success)";
3871
- /** danger (#f24822 / #e03e1a) */
3870
+ /** a danger fill, dot or glyph (#f24822 / #e03e1a); text uses DANGER_TEXT */
3872
3871
  readonly DANGER: "var(--cm-bg-danger)";
3873
3872
  /** a row, tab or tool under the pointer (#f5f5f5 / #383838) */
3874
3873
  readonly HOVER: "var(--cm-bg-hover)";
@@ -3882,6 +3881,12 @@ export declare const PANEL_INK: {
3882
3881
  readonly SELECTED_HOVER: "var(--cm-bg-selected-hover)";
3883
3882
  /** the children of a selected item (#f2f9ff / #32394d) */
3884
3883
  readonly SELECTED_SECONDARY: "var(--cm-bg-selected-secondary)";
3884
+ /** danger text: an error message, a destructive verb (#dc3412 / #fca397; #c4381c light in the AA mode). DANGER is a fill */
3885
+ readonly DANGER_TEXT: "var(--cm-text-danger)";
3886
+ /** warning text (#a65900 / #f7d15f). WARNING is a fill */
3887
+ readonly WARNING_TEXT: "var(--cm-text-warning)";
3888
+ /** success text and glyphs: a passed check's tick (#008043 / #79d297). SUCCESS is a fill */
3889
+ readonly SUCCESS_TEXT: "var(--cm-text-success)";
3885
3890
  /** links and brand text (#007be5 / #7cc4f8) */
3886
3891
  readonly BRAND_TEXT: "var(--cm-text-brand)";
3887
3892
  /** tertiary glyphs (#0000004d / #ffffff66) */
@@ -3892,11 +3897,11 @@ export declare const PANEL_INK: {
3892
3897
  readonly TRANSLUCENT: "var(--cm-border-translucent)";
3893
3898
  /** a stronger translucent edge: checkbox, switch track (#00000033 / #ffffff33) */
3894
3899
  readonly TRANSLUCENT_STRONG: "var(--cm-border-translucent-strong)";
3895
- /** the dark menu surface, the same in both schemes (#1e1e1e) */
3900
+ /** the menu surface: inside a menu it follows the page (#fff / #1e1e1e), elsewhere #1e1e1e */
3896
3901
  readonly MENU: "var(--cm-bg-menu)";
3897
- /** text on the menu (#fff) */
3902
+ /** text on the menu: inside a menu #000000e5 / #fff, elsewhere #fff */
3898
3903
  readonly ON_MENU: "var(--cm-text-menu)";
3899
- /** secondary text on the menu: shortcuts (#ffffffb2) */
3904
+ /** secondary text on the menu, shortcuts: inside a menu #0000008c / #ffffffb2, elsewhere #ffffffb2 */
3900
3905
  readonly ON_MENU_SECONDARY: "var(--cm-text-menu-secondary)";
3901
3906
  /** component (purple) text (#8638e5 / #d1a8ff) */
3902
3907
  readonly COMPONENT: "var(--cm-text-component)";
@@ -6541,7 +6546,7 @@ export declare interface ToolButtonProps extends Omit<UnstyledButtonProps, "chil
6541
6546
 
6542
6547
  /**
6543
6548
  * A tool and its flyout (Figma's tool group): the face is the LAST tool picked from the flyout,
6544
- * and a 16 x 32 chevron 1px after it opens a dark menu 4px above, start-aligned to the chevron,
6549
+ * and a 16 x 32 chevron 1px after it opens a menu 4px above, start-aligned to the chevron,
6545
6550
  * whose rows are radios with a check on the current face. Picking a row selects the tool, makes
6546
6551
  * it the face and closes the menu.
6547
6552
  * @param props - Component props
package/dist/index.d.ts CHANGED
@@ -1636,7 +1636,7 @@ export declare interface CompoundSegment {
1636
1636
  }
1637
1637
 
1638
1638
  /**
1639
- * A dark menu opened at the pointer by a right-click (design/figma-spec.md 8.2):
1639
+ * A menu opened at the pointer by a right-click (design/figma-spec.md 8.2):
1640
1640
  * its top-left corner 3px right of and 5px above the pointer, flipping and
1641
1641
  * shifting to stay on screen, with the first enabled row highlighted so Enter
1642
1642
  * acts on it at once. It also opens from the keyboard (Shift+F10, the
@@ -2894,10 +2894,9 @@ export declare type GestureStartHandler = (event: default_2.PointerEvent) => voi
2894
2894
  /**
2895
2895
  * Works out whether an activation came from a pointer or from the keyboard.
2896
2896
  *
2897
- * A keyboard activation is recognized three ways: the event is a keyboard event;
2898
- * or it is a pointer event with no pointer type; or it is a mouse event with a
2899
- * click count of zero, which is how a browser reports the click it synthesizes
2900
- * from Enter or Space on a button.
2897
+ * A keyboard activation is either a keyboard event, or a click with a click
2898
+ * count of zero and no pointer type, which is how a browser reports the click it
2899
+ * synthesizes from Enter or Space on a button.
2901
2900
  * @param event - The event that activated the control
2902
2901
  * @returns The activation source, ready to hand to an {@link ActivationHandlerWithMeta}
2903
2902
  */
@@ -3043,7 +3042,7 @@ export declare interface GradientEditorProps {
3043
3042
  /**
3044
3043
  * Figma's floating help button: a 32 x 32 circle on `--cm-bg` with the 200 elevation and no hover
3045
3044
  * change. Its tooltip shows and hides at once outside a Tooltip.Group; its focus ring (1px at -2px) fades in over 200ms.
3046
- * It opens a dark menu of the caller's items, 4px above and end-aligned.
3045
+ * It opens a menu of the caller's items, 4px above and end-aligned.
3047
3046
  * @param props - Component props
3048
3047
  * @param props.label - Accessible name and tooltip
3049
3048
  * @param props.children - The menu's items
@@ -3864,11 +3863,11 @@ export declare const PANEL_INK: {
3864
3863
  readonly ACCENT_GRAPHIC: "var(--cm-graphic-brand)";
3865
3864
  /** the white label on the danger, success and inverse fills, which no accent changes */
3866
3865
  readonly ON_SOLID: "var(--cm-text-onsolid)";
3867
- /** warning (#ffcd29 / #f3c11b) */
3866
+ /** a warning fill, dot or glyph (#ffcd29 / #f3c11b); text uses WARNING_TEXT */
3868
3867
  readonly WARNING: "var(--cm-bg-warning)";
3869
- /** success (#14ae5c / #198f51) */
3868
+ /** a success fill or dot (#14ae5c / #198f51); text and glyphs use SUCCESS_TEXT */
3870
3869
  readonly SUCCESS: "var(--cm-bg-success)";
3871
- /** danger (#f24822 / #e03e1a) */
3870
+ /** a danger fill, dot or glyph (#f24822 / #e03e1a); text uses DANGER_TEXT */
3872
3871
  readonly DANGER: "var(--cm-bg-danger)";
3873
3872
  /** a row, tab or tool under the pointer (#f5f5f5 / #383838) */
3874
3873
  readonly HOVER: "var(--cm-bg-hover)";
@@ -3882,6 +3881,12 @@ export declare const PANEL_INK: {
3882
3881
  readonly SELECTED_HOVER: "var(--cm-bg-selected-hover)";
3883
3882
  /** the children of a selected item (#f2f9ff / #32394d) */
3884
3883
  readonly SELECTED_SECONDARY: "var(--cm-bg-selected-secondary)";
3884
+ /** danger text: an error message, a destructive verb (#dc3412 / #fca397; #c4381c light in the AA mode). DANGER is a fill */
3885
+ readonly DANGER_TEXT: "var(--cm-text-danger)";
3886
+ /** warning text (#a65900 / #f7d15f). WARNING is a fill */
3887
+ readonly WARNING_TEXT: "var(--cm-text-warning)";
3888
+ /** success text and glyphs: a passed check's tick (#008043 / #79d297). SUCCESS is a fill */
3889
+ readonly SUCCESS_TEXT: "var(--cm-text-success)";
3885
3890
  /** links and brand text (#007be5 / #7cc4f8) */
3886
3891
  readonly BRAND_TEXT: "var(--cm-text-brand)";
3887
3892
  /** tertiary glyphs (#0000004d / #ffffff66) */
@@ -3892,11 +3897,11 @@ export declare const PANEL_INK: {
3892
3897
  readonly TRANSLUCENT: "var(--cm-border-translucent)";
3893
3898
  /** a stronger translucent edge: checkbox, switch track (#00000033 / #ffffff33) */
3894
3899
  readonly TRANSLUCENT_STRONG: "var(--cm-border-translucent-strong)";
3895
- /** the dark menu surface, the same in both schemes (#1e1e1e) */
3900
+ /** the menu surface: inside a menu it follows the page (#fff / #1e1e1e), elsewhere #1e1e1e */
3896
3901
  readonly MENU: "var(--cm-bg-menu)";
3897
- /** text on the menu (#fff) */
3902
+ /** text on the menu: inside a menu #000000e5 / #fff, elsewhere #fff */
3898
3903
  readonly ON_MENU: "var(--cm-text-menu)";
3899
- /** secondary text on the menu: shortcuts (#ffffffb2) */
3904
+ /** secondary text on the menu, shortcuts: inside a menu #0000008c / #ffffffb2, elsewhere #ffffffb2 */
3900
3905
  readonly ON_MENU_SECONDARY: "var(--cm-text-menu-secondary)";
3901
3906
  /** component (purple) text (#8638e5 / #d1a8ff) */
3902
3907
  readonly COMPONENT: "var(--cm-text-component)";
@@ -6541,7 +6546,7 @@ export declare interface ToolButtonProps extends Omit<UnstyledButtonProps, "chil
6541
6546
 
6542
6547
  /**
6543
6548
  * A tool and its flyout (Figma's tool group): the face is the LAST tool picked from the flyout,
6544
- * and a 16 x 32 chevron 1px after it opens a dark menu 4px above, start-aligned to the chevron,
6549
+ * and a 16 x 32 chevron 1px after it opens a menu 4px above, start-aligned to the chevron,
6545
6550
  * whose rows are radios with a check on the current face. Picking a row selects the tool, makes
6546
6551
  * it the face and closes the menu.
6547
6552
  * @param props - Component props