@stackone/malachite 2.20.1 → 2.21.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/{CodeBlockHighlighter-LexFSPf6.js → CodeBlockHighlighter-BJeE32YS.js} +2 -2
- package/dist/{CodeBlockHighlighter-LexFSPf6.js.map → CodeBlockHighlighter-BJeE32YS.js.map} +1 -1
- package/dist/{index-TymfOwWa.js → index-P2H4or4t.js} +4392 -4018
- package/dist/index-P2H4or4t.js.map +1 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.js +55 -54
- package/package.json +1 -1
- package/dist/index-TymfOwWa.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -2416,6 +2416,61 @@ declare interface ProgressValueProps extends ProgressCommonProps {
|
|
|
2416
2416
|
max?: never;
|
|
2417
2417
|
}
|
|
2418
2418
|
|
|
2419
|
+
export declare const QueryInput: default_2.FC<QueryInputProps>;
|
|
2420
|
+
|
|
2421
|
+
export declare interface QueryInputProps {
|
|
2422
|
+
value: string;
|
|
2423
|
+
onChange: (value: string) => void;
|
|
2424
|
+
/** Ranges to colour. Tokens that are out of range, reversed or overlapping are ignored. */
|
|
2425
|
+
tokens?: QueryToken[];
|
|
2426
|
+
/** Rows for the caret menu. Empty or undefined means the menu stays closed. */
|
|
2427
|
+
suggestions?: QuerySuggestion[];
|
|
2428
|
+
/** The span an accepted suggestion replaces. Defaults to a zero-width span at the caret. */
|
|
2429
|
+
activeRange?: {
|
|
2430
|
+
start: number;
|
|
2431
|
+
end: number;
|
|
2432
|
+
};
|
|
2433
|
+
onAccept?: (suggestion: QuerySuggestion) => void;
|
|
2434
|
+
/** Every value change AND every caret move, so the consumer can recompute tokens/suggestions. */
|
|
2435
|
+
onQueryContextChange?: (context: {
|
|
2436
|
+
value: string;
|
|
2437
|
+
caret: number;
|
|
2438
|
+
}) => void;
|
|
2439
|
+
/** Enter with nothing highlighted in the menu. */
|
|
2440
|
+
onSubmit?: (value: string) => void;
|
|
2441
|
+
placeholder?: string;
|
|
2442
|
+
size?: QueryInputSize;
|
|
2443
|
+
disabled?: boolean;
|
|
2444
|
+
/** Suggestions are being fetched: the menu shows a loading row instead of the empty message. */
|
|
2445
|
+
loading?: boolean;
|
|
2446
|
+
emptyMessage?: string;
|
|
2447
|
+
className?: string;
|
|
2448
|
+
style?: default_2.CSSProperties;
|
|
2449
|
+
'aria-label'?: string;
|
|
2450
|
+
'aria-labelledby'?: string;
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
export declare type QueryInputSize = 'small' | 'medium' | 'large';
|
|
2454
|
+
|
|
2455
|
+
export declare interface QuerySuggestion {
|
|
2456
|
+
id: string;
|
|
2457
|
+
label: string;
|
|
2458
|
+
/** Secondary text, right-aligned in the row. */
|
|
2459
|
+
detail?: string;
|
|
2460
|
+
/** What replaces `activeRange` when accepted. Defaults to `label`. */
|
|
2461
|
+
insertText?: string;
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
export declare interface QueryToken {
|
|
2465
|
+
/** Index into `value`. */
|
|
2466
|
+
start: number;
|
|
2467
|
+
/** Exclusive. */
|
|
2468
|
+
end: number;
|
|
2469
|
+
kind: QueryTokenKind;
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
export declare type QueryTokenKind = 'key' | 'value' | 'operator' | 'negation' | 'punctuation' | 'error' | 'plain';
|
|
2473
|
+
|
|
2419
2474
|
export declare const Radio: default_2.FC<RadioProps>;
|
|
2420
2475
|
|
|
2421
2476
|
export declare interface RadioProps {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, c as o, d as t, e as i, f as r, g as n, B as l, h as p, i as d, j as c, k as m, l as S, m as
|
|
1
|
+
import { A as s, c as o, d as t, e as i, f as r, g as n, B as l, h as p, i as d, j as c, k as m, l as S, m as u, n as T, o as g, p as h, q as C, r as y, s as F, t as B, u as w, v as f, D as v, w as x, x as A, y as L, F as P, z as b, E as k, G as D, H as R, I, J as M, K as z, L as H, M as N, N as O, O as G, P as V, Q as E, R as J, S as K, T as Q, U as j, V as q, W, 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 oa, a6 as ta, a7 as ia, a8 as ra, a9 as na, aa as la, ab as pa, ac as da, ad as ca, ae as ma, af as Sa, ag as ua, ah as Ta, ai as ga, aj as ha, ak as Ca, al as ya, am as Fa, an as Ba, ao as wa, ap as fa, aq as va, ar as xa, as as Aa, at as La, au as Pa, av as ba, aw as ka, ax as Da, ay as Ra, az as Ia, aA as Ma, aB as za, aC as Ha, aD as Na, aE as Oa, aF as Ga, aG as Va, aH as Ea, aI as Ja, aJ as Ka, aK as Qa, aL as ja, aM as qa, aN as Wa, aO as Ua, aP as Xa, aQ as Ya, aR as Za } from "./index-P2H4or4t.js";
|
|
2
2
|
export {
|
|
3
3
|
s as Accordion,
|
|
4
4
|
o as ActionBar,
|
|
@@ -12,13 +12,13 @@ export {
|
|
|
12
12
|
c as ButtonList,
|
|
13
13
|
m as Card,
|
|
14
14
|
S as CardStrip,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
u as ChangeReview,
|
|
16
|
+
T as Chat,
|
|
17
17
|
g as Checkbox,
|
|
18
18
|
h as ClampText,
|
|
19
19
|
C as CodeBlock,
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
y as CollapsibleSection,
|
|
21
|
+
F as Confetti,
|
|
22
22
|
B as ConfirmationDialog,
|
|
23
23
|
w as ConnectionHeader,
|
|
24
24
|
f as CustomIcons,
|
|
@@ -30,10 +30,10 @@ export {
|
|
|
30
30
|
b as FieldGroup,
|
|
31
31
|
k as Flex,
|
|
32
32
|
D as FlexAlign,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
R as FlexDirection,
|
|
34
|
+
I as FlexGapSize,
|
|
35
|
+
M as FlexJustify,
|
|
36
|
+
z as FooterLinks,
|
|
37
37
|
H as FooterNav,
|
|
38
38
|
N as Form,
|
|
39
39
|
O as FormItem,
|
|
@@ -42,9 +42,9 @@ export {
|
|
|
42
42
|
E as Input,
|
|
43
43
|
J as KeyValueList,
|
|
44
44
|
K as Link,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
Q as LoadingBar,
|
|
46
|
+
j as MalachiteContext,
|
|
47
|
+
q as Modal,
|
|
48
48
|
W as MultiSelect,
|
|
49
49
|
U as NumberTag,
|
|
50
50
|
X as OverflowRow,
|
|
@@ -56,52 +56,53 @@ export {
|
|
|
56
56
|
ea as PreviewTree,
|
|
57
57
|
sa as PreviewTreeRow,
|
|
58
58
|
oa as Progress,
|
|
59
|
-
ta as
|
|
60
|
-
ia as
|
|
61
|
-
ra as
|
|
62
|
-
na as
|
|
63
|
-
la as
|
|
64
|
-
pa as
|
|
65
|
-
da as
|
|
66
|
-
ca as
|
|
67
|
-
ma as
|
|
68
|
-
Sa as
|
|
59
|
+
ta as QueryInput,
|
|
60
|
+
ia as Radio,
|
|
61
|
+
ra as Search,
|
|
62
|
+
na as SegmentedControl,
|
|
63
|
+
la as SelectableCard,
|
|
64
|
+
pa as SelectionBar,
|
|
65
|
+
da as SettingRow,
|
|
66
|
+
ca as ShadowEscape,
|
|
67
|
+
ma as SidePanel,
|
|
68
|
+
Sa as SidePanelNavFooter,
|
|
69
|
+
ua as Skeleton,
|
|
69
70
|
Ta as Spacer,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
ga as SpacingSize,
|
|
72
|
+
ha as Spinner,
|
|
73
|
+
Ca as SplitScreenLayout,
|
|
74
|
+
ya as StatBadge,
|
|
74
75
|
Fa as Statistic,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
76
|
+
Ba as StatusBadge,
|
|
77
|
+
wa as StepTabs,
|
|
78
|
+
fa as Stepper,
|
|
79
|
+
va as Surface,
|
|
80
|
+
xa as SurfaceRow,
|
|
81
|
+
Aa as Swatch,
|
|
82
|
+
La as Table,
|
|
83
|
+
Pa as Tabs,
|
|
84
|
+
ba as Tag,
|
|
85
|
+
ka as TextArea,
|
|
86
|
+
Da as ThemeScope,
|
|
87
|
+
Ra as Toggle,
|
|
88
|
+
Ia as Toolbar,
|
|
89
|
+
Ma as Tooltip,
|
|
89
90
|
za as TruncatedTooltip,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
91
|
+
Ha as Typography,
|
|
92
|
+
Na as WizardLayout,
|
|
93
|
+
Oa as applyCustomTheme,
|
|
94
|
+
Ga as applyDarkTheme,
|
|
95
|
+
Va as applyLightTheme,
|
|
96
|
+
Ea as applyTheme,
|
|
97
|
+
Ja as applyThemeVars,
|
|
98
|
+
Ka as buildActionBarMenuItems,
|
|
99
|
+
Qa as darkTheme,
|
|
99
100
|
ja as defaultTheme,
|
|
100
101
|
qa as getCurrentTheme,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
Wa as getCurrentThemeMode,
|
|
103
|
+
Ua as initializeTheme,
|
|
104
|
+
Xa as resetTheme,
|
|
105
|
+
Ya as toggleTheme,
|
|
106
|
+
Za as useHasOpenOverlay
|
|
106
107
|
};
|
|
107
108
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED