@stackone/malachite 0.63.0 → 0.63.2
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/{CodeBlockHighlighter-BZ_7PUqo.js → CodeBlockHighlighter--Mni7rlP.js} +418 -403
- package/dist/{CodeBlockHighlighter-BZ_7PUqo.js.map → CodeBlockHighlighter--Mni7rlP.js.map} +1 -1
- package/dist/{index-Bi3n5zTv.js → index-CKORcSj4.js} +2222 -1991
- package/dist/index-CKORcSj4.js.map +1 -0
- package/dist/index.d.ts +25 -10
- package/dist/index.js +11 -11
- package/package.json +1 -1
- package/dist/index-Bi3n5zTv.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { FC } from 'react';
|
|
|
5
5
|
import { FieldPath } from 'react-hook-form';
|
|
6
6
|
import { FieldValues } from 'react-hook-form';
|
|
7
7
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
8
|
+
import { NamedExoticComponent } from 'react';
|
|
8
9
|
import { ReactNode } from 'react';
|
|
9
10
|
import { UseFormReturn } from 'react-hook-form';
|
|
10
11
|
|
|
@@ -279,9 +280,16 @@ export declare interface CheckboxProps {
|
|
|
279
280
|
|
|
280
281
|
/**
|
|
281
282
|
* Text clamped to `lines`, revealing the full text on hover / keyboard focus when
|
|
282
|
-
* `expandOnHover`. Pure CSS
|
|
283
|
-
*
|
|
284
|
-
* is
|
|
283
|
+
* `expandOnHover`. Pure CSS. The expanded state caps at 1000px, so this is for short blurbs.
|
|
284
|
+
*
|
|
285
|
+
* `line-height` is `1.5em`, NOT the bare `1.5`, and that unit is what makes the cap exact: a
|
|
286
|
+
* `<number>` inherits as a FACTOR, so each descendant re-resolves it against its own
|
|
287
|
+
* font-size, while `max-height: calc(1.5em * lines)` resolves against THIS element's. With
|
|
288
|
+
* the bare number they disagreed — 14px text in a 13px row gave 21px line boxes against a
|
|
289
|
+
* 19.5px allowance and the last line was sliced. As a `<length>` both share one basis.
|
|
290
|
+
*
|
|
291
|
+
* The cap also bounds block children, which `-webkit-line-clamp` counts as one "line" each —
|
|
292
|
+
* so a MarkdownBlock in `block` variant relies on it. (Prefer `variant="flow"` there.)
|
|
285
293
|
*/
|
|
286
294
|
export declare const ClampText: default_2.FC<ClampTextProps>;
|
|
287
295
|
|
|
@@ -318,10 +326,11 @@ declare interface CodeBlockProps {
|
|
|
318
326
|
language?: 'yaml';
|
|
319
327
|
}
|
|
320
328
|
|
|
321
|
-
declare interface CodeTextProps {
|
|
329
|
+
export declare interface CodeTextProps {
|
|
322
330
|
bold?: boolean;
|
|
323
331
|
size?: FontSize;
|
|
324
332
|
hasBorder?: boolean;
|
|
333
|
+
variant?: CodeTextVariant;
|
|
325
334
|
color?: string;
|
|
326
335
|
backgroundColor?: string;
|
|
327
336
|
children: default_2.ReactNode;
|
|
@@ -329,6 +338,8 @@ declare interface CodeTextProps {
|
|
|
329
338
|
style?: default_2.CSSProperties;
|
|
330
339
|
}
|
|
331
340
|
|
|
341
|
+
export declare type CodeTextVariant = 'block' | 'inline';
|
|
342
|
+
|
|
332
343
|
export declare const CollapsibleSection: default_2.FC<CollapsibleSectionProps>;
|
|
333
344
|
|
|
334
345
|
export declare interface CollapsibleSectionProps {
|
|
@@ -591,9 +602,9 @@ declare interface FlexProps {
|
|
|
591
602
|
className?: string;
|
|
592
603
|
}
|
|
593
604
|
|
|
594
|
-
declare type FontSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
605
|
+
export declare type FontSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
595
606
|
|
|
596
|
-
declare type FontWeight = 'normal' | 'semi-bold' | 'bold';
|
|
607
|
+
export declare type FontWeight = 'normal' | 'semi-bold' | 'bold';
|
|
597
608
|
|
|
598
609
|
export declare const FooterLinks: default_2.FC<FooterLinksProps>;
|
|
599
610
|
|
|
@@ -1088,13 +1099,17 @@ export declare interface MalachiteTheme {
|
|
|
1088
1099
|
};
|
|
1089
1100
|
}
|
|
1090
1101
|
|
|
1091
|
-
declare interface MarkdownProps {
|
|
1102
|
+
export declare interface MarkdownProps {
|
|
1092
1103
|
text: string;
|
|
1093
1104
|
color?: TextColor;
|
|
1094
1105
|
size?: FontSize;
|
|
1095
1106
|
omitMargin?: boolean;
|
|
1107
|
+
variant?: MarkdownVariant;
|
|
1108
|
+
normalizeSource?: boolean;
|
|
1096
1109
|
}
|
|
1097
1110
|
|
|
1111
|
+
export declare type MarkdownVariant = 'block' | 'flow';
|
|
1112
|
+
|
|
1098
1113
|
export declare const MultiSelect: default_2.FC<MultiSelectProps>;
|
|
1099
1114
|
|
|
1100
1115
|
declare interface MultiSelectBaseProps {
|
|
@@ -1871,9 +1886,9 @@ declare interface TextAreaProps {
|
|
|
1871
1886
|
|
|
1872
1887
|
declare type TextAreaSize = 'small' | 'medium' | 'large';
|
|
1873
1888
|
|
|
1874
|
-
declare type TextColor = 'primary' | 'secondary' | 'dimmed' | 'placeholder' | 'emphasis' | 'muted' | 'destructive' | 'success' | 'highlight' | 'warning' | 'error' | 'link';
|
|
1889
|
+
export declare type TextColor = 'primary' | 'secondary' | 'dimmed' | 'placeholder' | 'emphasis' | 'muted' | 'destructive' | 'success' | 'highlight' | 'warning' | 'error' | 'link';
|
|
1875
1890
|
|
|
1876
|
-
declare interface TextProps {
|
|
1891
|
+
export declare interface TextProps {
|
|
1877
1892
|
color?: TextColor;
|
|
1878
1893
|
size?: FontSize;
|
|
1879
1894
|
underline?: boolean;
|
|
@@ -2000,7 +2015,7 @@ export declare const Typography: {
|
|
|
2000
2015
|
EllipsisText: FC<EllipsisTextProps>;
|
|
2001
2016
|
FormSectionTitle: FC<FormSectionTitleProps>;
|
|
2002
2017
|
LinkText: FC<LinkProps_2>;
|
|
2003
|
-
MarkdownBlock:
|
|
2018
|
+
MarkdownBlock: NamedExoticComponent<MarkdownProps>;
|
|
2004
2019
|
PageTitle: FC<PageTitleProps>;
|
|
2005
2020
|
SecondaryText: FC<SecondaryTextProps>;
|
|
2006
2021
|
SectionTitle: FC<SectionTitleProps>;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s,
|
|
1
|
+
import { A as s, c as t, d as o, e as i, B as r, f as n, g as l, h as p, i as T, j as d, k as m, l as S, m as c, n as h, o as u, D as g, p as C, q as w, r as y, F, s as x, t as f, u as v, v as k, w as B, x as L, y as P, z as b, I as A, K as D, L as z, E as R, M, G as I, N, O as V, P as j, H as q, J 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 ia, a8 as ra, a9 as na, aa as la, ab as pa, ac as Ta, ad as da, ae as ma, af as Sa, ag as ca, ah as ha, ai as ua, aj as ga, ak as Ca, al as wa, am as ya, an as Fa, ao as xa, ap as fa, aq as va, ar as ka, as as Ba, at as La, au as Pa, av as ba, aw as Aa } from "./index-CKORcSj4.js";
|
|
2
2
|
export {
|
|
3
3
|
s as Accordion,
|
|
4
4
|
t as ActionMenu,
|
|
@@ -17,13 +17,13 @@ export {
|
|
|
17
17
|
u as CustomIcons,
|
|
18
18
|
g as DefinitionRow,
|
|
19
19
|
C as Divider,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
w as DividerVariant,
|
|
21
|
+
y as Dropdown,
|
|
22
|
+
F as Flex,
|
|
23
23
|
x as FlexAlign,
|
|
24
24
|
f as FlexDirection,
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
v as FlexGapSize,
|
|
26
|
+
k as FlexJustify,
|
|
27
27
|
B as FooterLinks,
|
|
28
28
|
L as FooterNav,
|
|
29
29
|
P as Form,
|
|
@@ -71,13 +71,13 @@ export {
|
|
|
71
71
|
ua as TruncatedTooltip,
|
|
72
72
|
ga as Typography,
|
|
73
73
|
Ca as WizardLayout,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
wa as applyCustomTheme,
|
|
75
|
+
ya as applyDarkTheme,
|
|
76
|
+
Fa as applyLightTheme,
|
|
77
77
|
xa as applyTheme,
|
|
78
78
|
fa as applyThemeVars,
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
va as darkTheme,
|
|
80
|
+
ka as defaultTheme,
|
|
81
81
|
Ba as getCurrentTheme,
|
|
82
82
|
La as getCurrentThemeMode,
|
|
83
83
|
Pa as initializeTheme,
|