@stackone/malachite 2.100.1 → 2.101.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.
@@ -0,0 +1,9 @@
1
+ import { Children as e } from "react";
2
+ const o = (t) => typeof t == "string" || typeof t == "number", i = (t) => {
3
+ const r = e.toArray(t);
4
+ return r.length > 0 && r.every(o) ? r.join("") : void 0;
5
+ };
6
+ export {
7
+ i as textOf
8
+ };
9
+ //# sourceMappingURL=childrenText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"childrenText.js","sources":["../../src/components/childrenText.ts"],"sourcesContent":["import { Children } from 'react';\nimport type React from 'react';\n\nconst isText = (node: React.ReactNode): node is string | number =>\n typeof node === 'string' || typeof node === 'number';\n\n/** The children as one string when every child is text. */\nexport const textOf = (children: React.ReactNode): string | undefined => {\n const parts = Children.toArray(children);\n return parts.length > 0 && parts.every(isText) ? parts.join('') : undefined;\n};\n"],"names":["isText","node","textOf","children","parts","Children"],"mappings":";AAGA,MAAMA,IAAS,CAACC,MACZ,OAAOA,KAAS,YAAY,OAAOA,KAAS,UAGnCC,IAAS,CAACC,MAAkD;AACrE,QAAMC,IAAQC,EAAS,QAAQF,CAAQ;AACvC,SAAOC,EAAM,SAAS,KAAKA,EAAM,MAAMJ,CAAM,IAAII,EAAM,KAAK,EAAE,IAAI;AACtE;"}
package/dist/index.d.ts CHANGED
@@ -1909,6 +1909,10 @@ declare interface EllipsisTextProps {
1909
1909
  */
1910
1910
  tooltipWhenTruncated?: boolean;
1911
1911
  tooltipPlacement?: 'top' | 'bottom' | 'left' | 'right';
1912
+ /** Seconds before the tooltip opens. */
1913
+ tooltipDelay?: number;
1914
+ /** Makes the text a tab stop that opens the tooltip. Ignored with `tooltipWhenTruncated`. */
1915
+ focusableTrigger?: boolean;
1912
1916
  /** A span around the text, for a place a div may not go, such as inside a clickable `Surface.Row`. */
1913
1917
  inline?: boolean;
1914
1918
  className?: string;
@@ -3254,7 +3258,9 @@ declare type InputVariant = 'default' | 'ghost';
3254
3258
 
3255
3259
  export declare const IntegrationsIcon: React.FC<IconProps_65>;
3256
3260
 
3257
- declare const Item: default_2.FC<TimelineItemProps>;
3261
+ declare const Item: default_2.FC<KeyValueStripItemProps>;
3262
+
3263
+ declare const Item_2: default_2.FC<TimelineItemProps>;
3258
3264
 
3259
3265
  export declare const Keycap: default_2.FC<KeycapProps>;
3260
3266
 
@@ -3303,6 +3309,38 @@ export declare interface KeyValueListRowProps {
3303
3309
 
3304
3310
  export declare type KeyValueListSize = 'small' | 'medium';
3305
3311
 
3312
+ /**
3313
+ * Label/value cells in one sunken band, e.g. the facts under a side panel header. Not for table
3314
+ * rows: a given tooltip mounts up front.
3315
+ */
3316
+ export declare const KeyValueStrip: default_2.FC<KeyValueStripProps> & {
3317
+ Item: typeof Item;
3318
+ };
3319
+
3320
+ export declare interface KeyValueStripItemProps {
3321
+ label: default_2.ReactNode;
3322
+ className?: string;
3323
+ children: default_2.ReactNode;
3324
+ /** One line with an ellipsis. Block/flex children clip without one, so use their own truncate. */
3325
+ truncate?: boolean;
3326
+ /**
3327
+ * Needs `truncate`. By default a text value shows in full when cut off; a given tooltip always
3328
+ * shows and makes a text value a tab stop. `null` turns it off.
3329
+ */
3330
+ tooltip?: default_2.ReactNode;
3331
+ /** Before the value, never truncated, e.g. an icon. */
3332
+ prefix?: default_2.ReactNode;
3333
+ /** After the value, never truncated, e.g. a copy button. */
3334
+ suffix?: default_2.ReactNode;
3335
+ }
3336
+
3337
+ export declare interface KeyValueStripProps {
3338
+ className?: string;
3339
+ children: default_2.ReactNode;
3340
+ 'aria-label'?: string;
3341
+ 'aria-labelledby'?: string;
3342
+ }
3343
+
3306
3344
  export declare const LayoutIcon: React.FC<IconProps_67>;
3307
3345
 
3308
3346
  export declare const LevelMeter: default_2.FC<LevelMeterProps>;
@@ -6087,7 +6125,7 @@ declare type TimeInput = string | number | Date;
6087
6125
 
6088
6126
  /** A vertical sequence of steps, each with a dot on a connecting line, a title, its timing and a body. */
6089
6127
  export declare const Timeline: default_2.FC<TimelineProps> & {
6090
- Item: typeof Item;
6128
+ Item: typeof Item_2;
6091
6129
  };
6092
6130
 
6093
6131
  export declare interface TimelineItemProps {