@stackone/malachite 2.89.1 → 2.91.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 +4 -3
- package/dist/components/CodeBlock.js +112 -107
- package/dist/components/CodeBlock.js.map +1 -1
- package/dist/components/ConfirmationDialog.js +72 -71
- package/dist/components/ConfirmationDialog.js.map +1 -1
- package/dist/components/FormActions.js +40 -0
- package/dist/components/FormActions.js.map +1 -0
- package/dist/components/SidePanel.js +124 -104
- package/dist/components/SidePanel.js.map +1 -1
- package/dist/components/Tabs.js +55 -28
- package/dist/components/Tabs.js.map +1 -1
- package/dist/index.d.ts +57 -0
- package/dist/index.js +368 -366
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/components/Tabs.js
CHANGED
|
@@ -1,56 +1,83 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx as o, Fragment as v, jsxs as k } from "react/jsx-runtime";
|
|
2
|
+
import { useId as $, useState as I } from "react";
|
|
3
|
+
import { FOCUS_RING as C } from "./focusRing.js";
|
|
4
|
+
const R = ({
|
|
5
|
+
items: a,
|
|
6
|
+
activeKey: t,
|
|
7
|
+
onChange: y,
|
|
8
|
+
trailing: c,
|
|
9
|
+
destroyInactivePanels: i = !1,
|
|
10
|
+
className: b = "",
|
|
11
|
+
style: p
|
|
10
12
|
}) => {
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
const h = $(), s = a.some((e) => e.content !== void 0), [n, g] = I([t]), d = i ? [t] : [
|
|
14
|
+
...n.filter(
|
|
15
|
+
(e) => e !== t && a.some((r) => r.key === e)
|
|
16
|
+
),
|
|
17
|
+
t
|
|
18
|
+
];
|
|
19
|
+
s && (d.length !== n.length || d.some((e) => !n.includes(e))) && g(d);
|
|
20
|
+
const x = (e) => `${h}tab-${encodeURIComponent(e)}`, u = (e) => `${h}panel-${encodeURIComponent(e)}`, m = /* @__PURE__ */ o(v, { children: a.map((e) => {
|
|
21
|
+
const r = e.key === t, l = e.disabled ? "text-[var(--malachite-text-dimmed)] cursor-not-allowed" : r ? "text-[var(--malachite-accent-foreground)]" : "text-[var(--malachite-text-secondary)] cursor-pointer hover:text-[var(--malachite-accent-foreground)]";
|
|
22
|
+
return /* @__PURE__ */ o(
|
|
14
23
|
"button",
|
|
15
24
|
{
|
|
16
25
|
type: "button",
|
|
17
26
|
role: "tab",
|
|
18
|
-
|
|
27
|
+
id: s ? x(e.key) : void 0,
|
|
28
|
+
"aria-controls": s ? u(e.key) : void 0,
|
|
29
|
+
"aria-selected": r,
|
|
19
30
|
disabled: e.disabled,
|
|
20
31
|
onClick: () => {
|
|
21
|
-
e.disabled ||
|
|
32
|
+
e.disabled || y(e.key);
|
|
22
33
|
},
|
|
23
|
-
className: `relative bg-transparent border-0 px-0 pt-2 pb-[14px] -mb-px text-[13px] leading-4 font-medium tracking-[0.13px] whitespace-nowrap transition-colors duration-150 ${
|
|
34
|
+
className: `relative bg-transparent border-0 px-0 pt-2 pb-[14px] -mb-px text-[13px] leading-4 font-medium tracking-[0.13px] whitespace-nowrap transition-colors duration-150 ${C} ${l}`,
|
|
24
35
|
style: {
|
|
25
|
-
borderBottom:
|
|
36
|
+
borderBottom: r ? "2px solid var(--malachite-accent-foreground)" : "2px solid transparent"
|
|
26
37
|
},
|
|
27
38
|
children: e.label
|
|
28
39
|
},
|
|
29
40
|
e.key
|
|
30
41
|
);
|
|
31
|
-
}) })
|
|
32
|
-
|
|
33
|
-
/* @__PURE__ */ r(
|
|
42
|
+
}) }), f = c ? /* @__PURE__ */ k("div", { className: "flex items-stretch border-b border-solid border-[var(--malachite-card-border)]", children: [
|
|
43
|
+
/* @__PURE__ */ o(
|
|
34
44
|
"div",
|
|
35
45
|
{
|
|
36
46
|
role: "tablist",
|
|
37
|
-
className: `flex items-stretch gap-5 shrink-0 ${
|
|
38
|
-
style:
|
|
39
|
-
children:
|
|
47
|
+
className: `flex items-stretch gap-5 shrink-0 ${b}`,
|
|
48
|
+
style: p,
|
|
49
|
+
children: m
|
|
40
50
|
}
|
|
41
51
|
),
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
] }) : /* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ o("div", { className: "flex min-w-0 flex-1 items-center justify-end pl-4", children: c })
|
|
53
|
+
] }) : /* @__PURE__ */ o(
|
|
44
54
|
"div",
|
|
45
55
|
{
|
|
46
56
|
role: "tablist",
|
|
47
|
-
className: `flex items-stretch gap-5 border-b border-solid border-[var(--malachite-card-border)] ${
|
|
48
|
-
style:
|
|
49
|
-
children:
|
|
57
|
+
className: `flex items-stretch gap-5 border-b border-solid border-[var(--malachite-card-border)] ${b}`,
|
|
58
|
+
style: p,
|
|
59
|
+
children: m
|
|
50
60
|
}
|
|
51
61
|
);
|
|
62
|
+
return s ? /* @__PURE__ */ k(v, { children: [
|
|
63
|
+
f,
|
|
64
|
+
a.map((e) => {
|
|
65
|
+
const r = e.key === t, l = r || !i && n.includes(e.key);
|
|
66
|
+
return /* @__PURE__ */ o(
|
|
67
|
+
"div",
|
|
68
|
+
{
|
|
69
|
+
id: u(e.key),
|
|
70
|
+
role: "tabpanel",
|
|
71
|
+
"aria-labelledby": x(e.key),
|
|
72
|
+
hidden: !r,
|
|
73
|
+
children: l ? e.content : null
|
|
74
|
+
},
|
|
75
|
+
e.key
|
|
76
|
+
);
|
|
77
|
+
})
|
|
78
|
+
] }) : f;
|
|
52
79
|
};
|
|
53
80
|
export {
|
|
54
|
-
|
|
81
|
+
R as default
|
|
55
82
|
};
|
|
56
83
|
//# sourceMappingURL=Tabs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","sources":["../../src/components/Tabs.tsx"],"sourcesContent":["import React from 'react';\nimport { FOCUS_RING } from './focusRing';\n\nexport interface TabItem {\n key: string;\n label: React.ReactNode;\n disabled?: boolean;\n}\n\nexport interface TabsProps {\n items: TabItem[];\n activeKey: string;\n onChange: (key: string) => void;\n trailing?: React.ReactNode;\n className?: string;\n style?: React.CSSProperties;\n}\n\nconst Tabs: React.FC<TabsProps> = ({\n items,\n activeKey,\n onChange,\n trailing,\n className = '',\n style,\n}) => {\n const tabs = (\n <>\n {items.map((item) => {\n const isActive = item.key === activeKey;\n const colorClass = item.disabled\n ? 'text-[var(--malachite-text-dimmed)] cursor-not-allowed'\n : isActive\n ? 'text-[var(--malachite-accent-foreground)]'\n : 'text-[var(--malachite-text-secondary)] cursor-pointer hover:text-[var(--malachite-accent-foreground)]';\n\n return (\n <button\n key={item.key}\n type=\"button\"\n role=\"tab\"\n aria-selected={isActive}\n disabled={item.disabled}\n onClick={() => {\n if (!item.disabled) {\n onChange(item.key);\n }\n }}\n // 8 (pt) + 16 (leading-4 label) + 14 (pb) + 2 (the underline) = 40, the height the design…\n className={`relative bg-transparent border-0 px-0 pt-2 pb-[14px] -mb-px text-[13px] leading-4 font-medium tracking-[0.13px] whitespace-nowrap transition-colors duration-150 ${FOCUS_RING} ${colorClass}`}\n style={{\n borderBottom: isActive\n ? '2px solid var(--malachite-accent-foreground)'\n : '2px solid transparent',\n }}\n >\n {item.label}\n </button>\n );\n })}\n </>\n );\n\n
|
|
1
|
+
{"version":3,"file":"Tabs.js","sources":["../../src/components/Tabs.tsx"],"sourcesContent":["import React, { useId, useState } from 'react';\nimport { FOCUS_RING } from './focusRing';\n\nexport interface TabItem {\n key: string;\n label: React.ReactNode;\n disabled?: boolean;\n /**\n * The tab's panel. Give it on any item and `Tabs` renders a `tabpanel` per item below the\n * strip; leave it off every item and the strip is all it renders, for a consumer that\n * switches its own content.\n */\n content?: React.ReactNode;\n}\n\nexport interface TabsProps {\n items: TabItem[];\n activeKey: string;\n onChange: (key: string) => void;\n trailing?: React.ReactNode;\n /**\n * Unmount a panel when its tab is left. By default a panel mounts the first time its tab is\n * opened and then stays mounted, hidden, so a filter, a search or a scroll position survives\n * a round trip and its data is not fetched again.\n */\n destroyInactivePanels?: boolean;\n className?: string;\n style?: React.CSSProperties;\n}\n\nconst Tabs: React.FC<TabsProps> = ({\n items,\n activeKey,\n onChange,\n trailing,\n destroyInactivePanels = false,\n className = '',\n style,\n}) => {\n const baseId = useId();\n const hasPanels = items.some((item) => item.content !== undefined);\n const [visitedKeys, setVisitedKeys] = useState<string[]>([activeKey]);\n // Only what is mounted now, so a removed tab or a stretch of destroyInactivePanels leaves no\n // history to remount from. Recorded during render rather than in an effect, so a newly opened\n // panel and the record of it arrive in the same commit.\n const nextVisitedKeys = destroyInactivePanels\n ? [activeKey]\n : [\n ...visitedKeys.filter(\n (key) => key !== activeKey && items.some((item) => item.key === key),\n ),\n activeKey,\n ];\n if (\n hasPanels &&\n (nextVisitedKeys.length !== visitedKeys.length ||\n nextVisitedKeys.some((key) => !visitedKeys.includes(key)))\n ) {\n setVisitedKeys(nextVisitedKeys);\n }\n // aria-controls and aria-labelledby are space-separated id lists, so a key with a space in it\n // would name two ids.\n const tabId = (key: string) => `${baseId}tab-${encodeURIComponent(key)}`;\n const panelId = (key: string) => `${baseId}panel-${encodeURIComponent(key)}`;\n\n const tabs = (\n <>\n {items.map((item) => {\n const isActive = item.key === activeKey;\n const colorClass = item.disabled\n ? 'text-[var(--malachite-text-dimmed)] cursor-not-allowed'\n : isActive\n ? 'text-[var(--malachite-accent-foreground)]'\n : 'text-[var(--malachite-text-secondary)] cursor-pointer hover:text-[var(--malachite-accent-foreground)]';\n\n return (\n <button\n key={item.key}\n type=\"button\"\n role=\"tab\"\n id={hasPanels ? tabId(item.key) : undefined}\n aria-controls={hasPanels ? panelId(item.key) : undefined}\n aria-selected={isActive}\n disabled={item.disabled}\n onClick={() => {\n if (!item.disabled) {\n onChange(item.key);\n }\n }}\n // 8 (pt) + 16 (leading-4 label) + 14 (pb) + 2 (the underline) = 40, the height the design…\n className={`relative bg-transparent border-0 px-0 pt-2 pb-[14px] -mb-px text-[13px] leading-4 font-medium tracking-[0.13px] whitespace-nowrap transition-colors duration-150 ${FOCUS_RING} ${colorClass}`}\n style={{\n borderBottom: isActive\n ? '2px solid var(--malachite-accent-foreground)'\n : '2px solid transparent',\n }}\n >\n {item.label}\n </button>\n );\n })}\n </>\n );\n\n const strip = trailing ? (\n <div className=\"flex items-stretch border-b border-solid border-[var(--malachite-card-border)]\">\n {/* `className`/`style` stay on the tablist in both branches, so a consumer's spacing\n still spaces tab against tab and a `[role=tablist]` selector still finds them. */}\n <div\n role=\"tablist\"\n className={`flex items-stretch gap-5 shrink-0 ${className}`}\n style={style}\n >\n {tabs}\n </div>\n <div className=\"flex min-w-0 flex-1 items-center justify-end pl-4\">{trailing}</div>\n </div>\n ) : (\n <div\n role=\"tablist\"\n className={`flex items-stretch gap-5 border-b border-solid border-[var(--malachite-card-border)] ${className}`}\n style={style}\n >\n {tabs}\n </div>\n );\n\n if (!hasPanels) {\n return strip;\n }\n\n // Panels are plain siblings of the strip with no overflow of their own, so a sticky toolbar or\n // table header inside one still pins to the page's scroll container. Every tab gets a panel\n // element, empty until first opened, so each tab's aria-controls always resolves.\n return (\n <>\n {strip}\n {items.map((item) => {\n const isActive = item.key === activeKey;\n const isMounted =\n isActive || (!destroyInactivePanels && visitedKeys.includes(item.key));\n return (\n <div\n key={item.key}\n id={panelId(item.key)}\n role=\"tabpanel\"\n aria-labelledby={tabId(item.key)}\n hidden={!isActive}\n >\n {isMounted ? item.content : null}\n </div>\n );\n })}\n </>\n );\n};\n\nexport default Tabs;\n"],"names":["Tabs","items","activeKey","onChange","trailing","destroyInactivePanels","className","style","baseId","useId","hasPanels","item","visitedKeys","setVisitedKeys","useState","nextVisitedKeys","key","tabId","panelId","tabs","jsx","Fragment","isActive","colorClass","FOCUS_RING","strip","jsxs","isMounted"],"mappings":"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"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1305,6 +1305,12 @@ export declare interface ConfirmationDialogProps {
|
|
|
1305
1305
|
* routes — but never ESC, which always reaches `onClose`.
|
|
1306
1306
|
*/
|
|
1307
1307
|
loading?: boolean;
|
|
1308
|
+
/**
|
|
1309
|
+
* Holds the confirm action back while the consequence is not yet known, say while a check
|
|
1310
|
+
* the callout reports on is still running. Cancel and every dismissal route stay live. The
|
|
1311
|
+
* held button has no tooltip, so pair it with a callout that says why.
|
|
1312
|
+
*/
|
|
1313
|
+
confirmDisabled?: boolean;
|
|
1308
1314
|
tip?: {
|
|
1309
1315
|
label?: string;
|
|
1310
1316
|
message: string;
|
|
@@ -2046,6 +2052,26 @@ export declare const ForbiddenIcon: React.FC<IconProps_57>;
|
|
|
2046
2052
|
|
|
2047
2053
|
export declare const Form: default_2.FC<FormProps>;
|
|
2048
2054
|
|
|
2055
|
+
export declare interface FormAction {
|
|
2056
|
+
label: string;
|
|
2057
|
+
onClick?: () => void;
|
|
2058
|
+
disabled?: boolean;
|
|
2059
|
+
loading?: boolean;
|
|
2060
|
+
tooltip?: string;
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
/** A form's Cancel and primary pair, end-aligned: a side panel's footer, or under a settings section. */
|
|
2064
|
+
export declare const FormActions: default_2.FC<FormActionsProps>;
|
|
2065
|
+
|
|
2066
|
+
export declare interface FormActionsProps {
|
|
2067
|
+
/** The filled action, last in the row. */
|
|
2068
|
+
primary?: FormPrimaryAction;
|
|
2069
|
+
/** The outline action before it, usually Cancel. */
|
|
2070
|
+
secondary?: FormAction;
|
|
2071
|
+
size?: 'small' | 'medium';
|
|
2072
|
+
className?: string;
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2049
2075
|
export declare const FormItem: default_2.FC<FormItemProps>;
|
|
2050
2076
|
|
|
2051
2077
|
export declare type FormItemChildren = default_2.ReactNode | ((state: FieldErrorState) => default_2.ReactNode);
|
|
@@ -2056,6 +2082,16 @@ declare interface FormItemProps {
|
|
|
2056
2082
|
children: FormItemChildren;
|
|
2057
2083
|
}
|
|
2058
2084
|
|
|
2085
|
+
export declare interface FormPrimaryAction extends FormAction {
|
|
2086
|
+
/** `destructive` for an action that deletes or revokes. */
|
|
2087
|
+
tone?: 'default' | 'destructive';
|
|
2088
|
+
/**
|
|
2089
|
+
* `submit` makes it the form's submit button, so Enter in a field presses it. Leave `onClick`
|
|
2090
|
+
* off then and handle the form's `onSubmit` (a `SidePanel`'s, say), or a click runs both.
|
|
2091
|
+
*/
|
|
2092
|
+
type?: 'button' | 'submit';
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2059
2095
|
declare interface FormProps {
|
|
2060
2096
|
children: default_2.ReactNode;
|
|
2061
2097
|
onFinish?: (data: FieldValues) => void;
|
|
@@ -4901,6 +4937,15 @@ export declare interface SidePanelProps {
|
|
|
4901
4937
|
/** Content pinned right in the header, before the close button. */
|
|
4902
4938
|
headerExtra?: default_2.ReactNode;
|
|
4903
4939
|
footer?: default_2.ReactNode;
|
|
4940
|
+
/**
|
|
4941
|
+
* Makes the panel's header, body and footer one form. Enter in a field then submits through
|
|
4942
|
+
* a `type="submit"` button in the footer (see `FormActions`), the way a browser form does:
|
|
4943
|
+
* not from a textarea, not mid-composition, and not while that button is disabled. The
|
|
4944
|
+
* event's default is prevented and validation is the caller's, so the form is `noValidate`.
|
|
4945
|
+
* Enter in the `toolbar` never submits. A field inside its own `MalachiteContext` sits in
|
|
4946
|
+
* another shadow root and is outside the form.
|
|
4947
|
+
*/
|
|
4948
|
+
onSubmit?: (event: default_2.FormEvent<HTMLFormElement>) => void;
|
|
4904
4949
|
/** Renders a back button before the header icon. */
|
|
4905
4950
|
onBack?: () => void;
|
|
4906
4951
|
/** Maximum panel width. Default: 1080. */
|
|
@@ -5353,6 +5398,12 @@ export declare interface TabItem {
|
|
|
5353
5398
|
key: string;
|
|
5354
5399
|
label: default_2.ReactNode;
|
|
5355
5400
|
disabled?: boolean;
|
|
5401
|
+
/**
|
|
5402
|
+
* The tab's panel. Give it on any item and `Tabs` renders a `tabpanel` per item below the
|
|
5403
|
+
* strip; leave it off every item and the strip is all it renders, for a consumer that
|
|
5404
|
+
* switches its own content.
|
|
5405
|
+
*/
|
|
5406
|
+
content?: default_2.ReactNode;
|
|
5356
5407
|
}
|
|
5357
5408
|
|
|
5358
5409
|
export declare const Table: <T = Record<string, unknown>>({ columns, data, loading, error, errorTitle, errorSubTitle, emptyTitle, emptySubTitle, bordered, showHeader, rowKey, scrollHeight, size, rowDensity, layout, headerVariant, title, subtitle, extra, rowClassName, rowVariant, onRow, onClickRow, selectedRowKey, scrollSelectedIntoView, rowSelection, pagination, className, style, stickyHeaderTop, scrollX, rowSection, renderSectionDivider, onVisibleOrderChange, virtual, virtualRowHeightEstimate, virtualScrollElement, }: TableProps<T>) => JSX_2.Element;
|
|
@@ -5530,6 +5581,12 @@ export declare interface TabsProps {
|
|
|
5530
5581
|
activeKey: string;
|
|
5531
5582
|
onChange: (key: string) => void;
|
|
5532
5583
|
trailing?: default_2.ReactNode;
|
|
5584
|
+
/**
|
|
5585
|
+
* Unmount a panel when its tab is left. By default a panel mounts the first time its tab is
|
|
5586
|
+
* opened and then stays mounted, hidden, so a filter, a search or a scroll position survives
|
|
5587
|
+
* a round trip and its data is not fetched again.
|
|
5588
|
+
*/
|
|
5589
|
+
destroyInactivePanels?: boolean;
|
|
5533
5590
|
className?: string;
|
|
5534
5591
|
style?: default_2.CSSProperties;
|
|
5535
5592
|
}
|