@silverpoint/react 0.2.0 → 0.3.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/dist/activity-grid.js +3 -2
- package/dist/area-chart.js +3 -2
- package/dist/bar-chart.js +3 -2
- package/dist/base-C6zY78Va.d.ts +8 -0
- package/dist/bubble-chart.js +3 -2
- package/dist/bullet-chart.js +3 -2
- package/dist/candlestick-chart.js +3 -2
- package/dist/chord-ring.js +3 -2
- package/dist/chunk-2JWLXUY5.js +16 -0
- package/dist/chunk-2JWLXUY5.js.map +1 -0
- package/dist/{chunk-74ONV2GE.js → chunk-3BREGZ7C.js} +2 -2
- package/dist/{chunk-J5OOZDFF.js → chunk-3U3Z5U6H.js} +2 -2
- package/dist/chunk-3WUPWJP2.js +17 -0
- package/dist/chunk-3WUPWJP2.js.map +1 -0
- package/dist/chunk-43AIURD6.js +21 -0
- package/dist/chunk-43AIURD6.js.map +1 -0
- package/dist/chunk-5FKONGCL.js +16 -0
- package/dist/chunk-5FKONGCL.js.map +1 -0
- package/dist/chunk-67FND3TB.js +26 -0
- package/dist/chunk-67FND3TB.js.map +1 -0
- package/dist/{chunk-X2ACXB2U.js → chunk-6EFRIK7Q.js} +2 -2
- package/dist/{chunk-6KPX5HYV.js → chunk-6M4REUJE.js} +2 -2
- package/dist/chunk-6NXL245Z.js +16 -0
- package/dist/chunk-6NXL245Z.js.map +1 -0
- package/dist/{chunk-WOKDS6AK.js → chunk-6S6VKQ3E.js} +2 -2
- package/dist/{chunk-DTBEXYYC.js → chunk-AEU6UHVG.js} +2 -2
- package/dist/chunk-ART7CMBL.js +16 -0
- package/dist/chunk-ART7CMBL.js.map +1 -0
- package/dist/{chunk-A42AKCPS.js → chunk-C3NHZ4N5.js} +2 -2
- package/dist/chunk-CWFUPKSS.js +20 -0
- package/dist/chunk-CWFUPKSS.js.map +1 -0
- package/dist/chunk-DO4VUIUU.js +61 -0
- package/dist/chunk-DO4VUIUU.js.map +1 -0
- package/dist/{chunk-2NQ4DXLT.js → chunk-ESFN6FJY.js} +2 -2
- package/dist/{chunk-WNX4XCL6.js → chunk-FBJLA3P7.js} +11 -45
- package/dist/chunk-FBJLA3P7.js.map +1 -0
- package/dist/{chunk-NW2SQ6QW.js → chunk-FHX2HWN3.js} +2 -2
- package/dist/{chunk-KDQHOND7.js → chunk-FZ46YSJA.js} +2 -2
- package/dist/chunk-G7C4CH54.js +17 -0
- package/dist/chunk-G7C4CH54.js.map +1 -0
- package/dist/{chunk-GYUTG5R2.js → chunk-GSJYA76X.js} +2 -2
- package/dist/{chunk-TKQ2PQDW.js → chunk-GUKXFITX.js} +2 -2
- package/dist/{chunk-TAQOBBF7.js → chunk-I72JGA6Q.js} +2 -2
- package/dist/{chunk-H4NCK6RE.js → chunk-J3E6IUUQ.js} +2 -2
- package/dist/{chunk-4LS7B7CK.js → chunk-JPTK2AAT.js} +2 -2
- package/dist/{chunk-WHZ4ALRI.js → chunk-JWCVL7VE.js} +2 -2
- package/dist/{chunk-XWSCKTPG.js → chunk-KVOBNPDN.js} +2 -2
- package/dist/chunk-LSA5XU52.js +18 -0
- package/dist/chunk-LSA5XU52.js.map +1 -0
- package/dist/chunk-M56MDRNT.js +17 -0
- package/dist/chunk-M56MDRNT.js.map +1 -0
- package/dist/{chunk-FZMY6NWJ.js → chunk-MC7N4KQA.js} +2 -2
- package/dist/{chunk-UXVYCPFL.js → chunk-MYKZWY2E.js} +2 -2
- package/dist/{chunk-GBTH55AM.js → chunk-NA6K372D.js} +2 -2
- package/dist/{chunk-E5LIZKJT.js → chunk-NWK6VBCJ.js} +2 -2
- package/dist/{chunk-WICFKWEZ.js → chunk-NWRCFNYB.js} +2 -2
- package/dist/{chunk-CERHTEML.js → chunk-OAH7AEGE.js} +2 -2
- package/dist/chunk-OP2WE7MA.js +31 -0
- package/dist/chunk-OP2WE7MA.js.map +1 -0
- package/dist/{chunk-OFDVE64G.js → chunk-PRVJKYEQ.js} +2 -2
- package/dist/chunk-QRYI7BEO.js +21 -0
- package/dist/chunk-QRYI7BEO.js.map +1 -0
- package/dist/{chunk-P53KSCPE.js → chunk-RAATAHXZ.js} +2 -2
- package/dist/{chunk-FQHAHZBR.js → chunk-RIGQTEKW.js} +2 -2
- package/dist/{chunk-NHUVAE4Z.js → chunk-RMIIFPXA.js} +2 -2
- package/dist/chunk-SQ6GWXDK.js +48 -0
- package/dist/chunk-SQ6GWXDK.js.map +1 -0
- package/dist/chunk-TH6Q4E7C.js +21 -0
- package/dist/chunk-TH6Q4E7C.js.map +1 -0
- package/dist/{chunk-H3UH7F5S.js → chunk-TSQWTDBK.js} +2 -2
- package/dist/{chunk-7KED5KUU.js → chunk-U3LT444G.js} +2 -2
- package/dist/{chunk-JRAHTS5O.js → chunk-UOOHQAJU.js} +2 -2
- package/dist/{chunk-VISNFHPM.js → chunk-VKNGQ4NW.js} +2 -2
- package/dist/{chunk-ZKLVP4JE.js → chunk-WFO6BICV.js} +2 -2
- package/dist/chunk-WMU6O6KZ.js +21 -0
- package/dist/chunk-WMU6O6KZ.js.map +1 -0
- package/dist/chunk-WZZA2IGN.js +44 -0
- package/dist/chunk-WZZA2IGN.js.map +1 -0
- package/dist/{chunk-PWFDYIXV.js → chunk-X2F56RYM.js} +2 -2
- package/dist/chunk-ZBSCLF56.js +33 -0
- package/dist/chunk-ZBSCLF56.js.map +1 -0
- package/dist/chunk-ZOB6BH7H.js +21 -0
- package/dist/chunk-ZOB6BH7H.js.map +1 -0
- package/dist/composed-chart.js +3 -2
- package/dist/coxcomb-chart.js +3 -2
- package/dist/donut-chart.js +3 -2
- package/dist/funnel-chart.js +3 -2
- package/dist/gauge-arc.js +3 -2
- package/dist/heatmap-chart.js +3 -2
- package/dist/index.js +36 -35
- package/dist/index.js.map +1 -1
- package/dist/kpi-card.js +3 -2
- package/dist/line-chart.js +3 -2
- package/dist/meter-chart.js +3 -2
- package/dist/orbit-chart.js +3 -2
- package/dist/polar-bar-chart.js +3 -2
- package/dist/pyramid-chart.js +3 -2
- package/dist/radar-chart.js +3 -2
- package/dist/radial-arc-group.js +3 -2
- package/dist/radial-rings.js +3 -2
- package/dist/range-band-chart.js +3 -2
- package/dist/sankey-chart.js +3 -2
- package/dist/scatter-chart.js +3 -2
- package/dist/server/ui/alert.d.ts +17 -0
- package/dist/server/ui/alert.js +13 -0
- package/dist/server/ui/alert.js.map +1 -0
- package/dist/server/ui/badge.d.ts +15 -0
- package/dist/server/ui/badge.js +14 -0
- package/dist/server/ui/badge.js.map +1 -0
- package/dist/server/ui/card.d.ts +18 -0
- package/dist/server/ui/card.js +14 -0
- package/dist/server/ui/card.js.map +1 -0
- package/dist/server/ui/divider.d.ts +12 -0
- package/dist/server/ui/divider.js +13 -0
- package/dist/server/ui/divider.js.map +1 -0
- package/dist/server/ui/progress.d.ts +14 -0
- package/dist/server/ui/progress.js +13 -0
- package/dist/server/ui/progress.js.map +1 -0
- package/dist/server/ui/skeleton.d.ts +14 -0
- package/dist/server/ui/skeleton.js +13 -0
- package/dist/server/ui/skeleton.js.map +1 -0
- package/dist/server/ui/steps.d.ts +14 -0
- package/dist/server/ui/steps.js +13 -0
- package/dist/server/ui/steps.js.map +1 -0
- package/dist/server/ui/tag.d.ts +17 -0
- package/dist/server/ui/tag.js +14 -0
- package/dist/server/ui/tag.js.map +1 -0
- package/dist/sparkline-rows.js +3 -2
- package/dist/stacked-bar-chart.js +3 -2
- package/dist/step-chart.js +3 -2
- package/dist/stream-chart.js +3 -2
- package/dist/treemap-chart.js +3 -2
- package/dist/ui/alert.d.ts +14 -0
- package/dist/ui/alert.js +10 -0
- package/dist/ui/alert.js.map +1 -0
- package/dist/ui/badge.d.ts +12 -0
- package/dist/ui/badge.js +10 -0
- package/dist/ui/badge.js.map +1 -0
- package/dist/ui/button.d.ts +14 -0
- package/dist/ui/button.js +10 -0
- package/dist/ui/button.js.map +1 -0
- package/dist/ui/card.d.ts +14 -0
- package/dist/ui/card.js +10 -0
- package/dist/ui/card.js.map +1 -0
- package/dist/ui/checkbox.d.ts +14 -0
- package/dist/ui/checkbox.js +10 -0
- package/dist/ui/checkbox.js.map +1 -0
- package/dist/ui/divider.d.ts +11 -0
- package/dist/ui/divider.js +10 -0
- package/dist/ui/divider.js.map +1 -0
- package/dist/ui/input.d.ts +19 -0
- package/dist/ui/input.js +10 -0
- package/dist/ui/input.js.map +1 -0
- package/dist/ui/progress.d.ts +11 -0
- package/dist/ui/progress.js +10 -0
- package/dist/ui/progress.js.map +1 -0
- package/dist/ui/radio-group.d.ts +16 -0
- package/dist/ui/radio-group.js +10 -0
- package/dist/ui/radio-group.js.map +1 -0
- package/dist/ui/rate.d.ts +15 -0
- package/dist/ui/rate.js +10 -0
- package/dist/ui/rate.js.map +1 -0
- package/dist/ui/segmented.d.ts +16 -0
- package/dist/ui/segmented.js +10 -0
- package/dist/ui/segmented.js.map +1 -0
- package/dist/ui/skeleton.d.ts +11 -0
- package/dist/ui/skeleton.js +10 -0
- package/dist/ui/skeleton.js.map +1 -0
- package/dist/ui/slider.d.ts +15 -0
- package/dist/ui/slider.js +10 -0
- package/dist/ui/slider.js.map +1 -0
- package/dist/ui/steps.d.ts +11 -0
- package/dist/ui/steps.js +10 -0
- package/dist/ui/steps.js.map +1 -0
- package/dist/ui/switch.d.ts +14 -0
- package/dist/ui/switch.js +10 -0
- package/dist/ui/switch.js.map +1 -0
- package/dist/ui/tabs.d.ts +25 -0
- package/dist/ui/tabs.js +12 -0
- package/dist/ui/tabs.js.map +1 -0
- package/dist/ui/tag.d.ts +14 -0
- package/dist/ui/tag.js +10 -0
- package/dist/ui/tag.js.map +1 -0
- package/dist/ui.d.ts +21 -0
- package/dist/ui.js +76 -0
- package/dist/ui.js.map +1 -0
- package/dist/volvelle-chart.js +3 -2
- package/dist/waterfall-chart.js +3 -2
- package/dist/wind-rose.js +3 -2
- package/package.json +159 -3
- package/dist/chunk-WNX4XCL6.js.map +0 -1
- /package/dist/{chunk-74ONV2GE.js.map → chunk-3BREGZ7C.js.map} +0 -0
- /package/dist/{chunk-J5OOZDFF.js.map → chunk-3U3Z5U6H.js.map} +0 -0
- /package/dist/{chunk-X2ACXB2U.js.map → chunk-6EFRIK7Q.js.map} +0 -0
- /package/dist/{chunk-6KPX5HYV.js.map → chunk-6M4REUJE.js.map} +0 -0
- /package/dist/{chunk-WOKDS6AK.js.map → chunk-6S6VKQ3E.js.map} +0 -0
- /package/dist/{chunk-DTBEXYYC.js.map → chunk-AEU6UHVG.js.map} +0 -0
- /package/dist/{chunk-A42AKCPS.js.map → chunk-C3NHZ4N5.js.map} +0 -0
- /package/dist/{chunk-2NQ4DXLT.js.map → chunk-ESFN6FJY.js.map} +0 -0
- /package/dist/{chunk-NW2SQ6QW.js.map → chunk-FHX2HWN3.js.map} +0 -0
- /package/dist/{chunk-KDQHOND7.js.map → chunk-FZ46YSJA.js.map} +0 -0
- /package/dist/{chunk-GYUTG5R2.js.map → chunk-GSJYA76X.js.map} +0 -0
- /package/dist/{chunk-TKQ2PQDW.js.map → chunk-GUKXFITX.js.map} +0 -0
- /package/dist/{chunk-TAQOBBF7.js.map → chunk-I72JGA6Q.js.map} +0 -0
- /package/dist/{chunk-H4NCK6RE.js.map → chunk-J3E6IUUQ.js.map} +0 -0
- /package/dist/{chunk-4LS7B7CK.js.map → chunk-JPTK2AAT.js.map} +0 -0
- /package/dist/{chunk-WHZ4ALRI.js.map → chunk-JWCVL7VE.js.map} +0 -0
- /package/dist/{chunk-XWSCKTPG.js.map → chunk-KVOBNPDN.js.map} +0 -0
- /package/dist/{chunk-FZMY6NWJ.js.map → chunk-MC7N4KQA.js.map} +0 -0
- /package/dist/{chunk-UXVYCPFL.js.map → chunk-MYKZWY2E.js.map} +0 -0
- /package/dist/{chunk-GBTH55AM.js.map → chunk-NA6K372D.js.map} +0 -0
- /package/dist/{chunk-E5LIZKJT.js.map → chunk-NWK6VBCJ.js.map} +0 -0
- /package/dist/{chunk-WICFKWEZ.js.map → chunk-NWRCFNYB.js.map} +0 -0
- /package/dist/{chunk-CERHTEML.js.map → chunk-OAH7AEGE.js.map} +0 -0
- /package/dist/{chunk-OFDVE64G.js.map → chunk-PRVJKYEQ.js.map} +0 -0
- /package/dist/{chunk-P53KSCPE.js.map → chunk-RAATAHXZ.js.map} +0 -0
- /package/dist/{chunk-FQHAHZBR.js.map → chunk-RIGQTEKW.js.map} +0 -0
- /package/dist/{chunk-NHUVAE4Z.js.map → chunk-RMIIFPXA.js.map} +0 -0
- /package/dist/{chunk-H3UH7F5S.js.map → chunk-TSQWTDBK.js.map} +0 -0
- /package/dist/{chunk-7KED5KUU.js.map → chunk-U3LT444G.js.map} +0 -0
- /package/dist/{chunk-JRAHTS5O.js.map → chunk-UOOHQAJU.js.map} +0 -0
- /package/dist/{chunk-VISNFHPM.js.map → chunk-VKNGQ4NW.js.map} +0 -0
- /package/dist/{chunk-ZKLVP4JE.js.map → chunk-WFO6BICV.js.map} +0 -0
- /package/dist/{chunk-PWFDYIXV.js.map → chunk-X2F56RYM.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
5
|
|
|
6
6
|
// src/radial-rings.tsx
|
|
7
7
|
import { radialRings } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var RadialRings = createClientChart(radialRings);
|
|
|
10
10
|
export {
|
|
11
11
|
RadialRings
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-WFO6BICV.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
renderUi,
|
|
4
|
+
useUi,
|
|
5
|
+
useValue
|
|
6
|
+
} from "./chunk-DO4VUIUU.js";
|
|
7
|
+
|
|
8
|
+
// src/ui/slider.tsx
|
|
9
|
+
import { uiSliderView } from "@silverpoint/core/ui";
|
|
10
|
+
import { forwardRef } from "react";
|
|
11
|
+
var SpSlider = forwardRef(function SpSlider2({ value, defaultValue, onChange, dashboardCell, ...props }, ref) {
|
|
12
|
+
const [current, set] = useValue(value, defaultValue ?? props.min ?? 0, onChange);
|
|
13
|
+
const view = uiSliderView(props, useUi(props, dashboardCell), { value: current });
|
|
14
|
+
const native = { ref, onChange: (event) => set(event.target.valueAsNumber) };
|
|
15
|
+
return renderUi(view, { native });
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
SpSlider
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=chunk-WMU6O6KZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/slider.tsx"],"sourcesContent":["import { uiSliderView, type SpSliderProps as CoreProps } from '@silverpoint/core/ui';\nimport { forwardRef, type ChangeEvent, type ReactElement } from 'react';\nimport { useUi, useValue, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpSliderProps extends CoreProps, UiCellProps {\n readonly value?: number;\n readonly defaultValue?: number;\n /** The number, not the DOM event (REQ-322). */\n readonly onChange?: (value: number) => void;\n}\n\n/** `SpSlider`: a native range over the exact drawing; its ref is the input (REQ-314, DD-025). */\nexport const SpSlider = forwardRef<HTMLInputElement, SpSliderProps>(function SpSlider({ value, defaultValue, onChange, dashboardCell, ...props }, ref) {\n const [current, set] = useValue(value, defaultValue ?? props.min ?? 0, onChange);\n const view = uiSliderView(props, useUi(props, dashboardCell), { value: current });\n const native = { ref, onChange: (event: ChangeEvent<HTMLInputElement>) => set(event.target.valueAsNumber) };\n return renderUi(view, { native }) as ReactElement;\n});\n"],"mappings":";;;;;;;;AAAA,SAAS,oBAAqD;AAC9D,SAAS,kBAAuD;AAYzD,IAAM,WAAW,WAA4C,SAASA,UAAS,EAAE,OAAO,cAAc,UAAU,eAAe,GAAG,MAAM,GAAG,KAAK;AACrJ,QAAM,CAAC,SAAS,GAAG,IAAI,SAAS,OAAO,gBAAgB,MAAM,OAAO,GAAG,QAAQ;AAC/E,QAAM,OAAO,aAAa,OAAO,MAAM,OAAO,aAAa,GAAG,EAAE,OAAO,QAAQ,CAAC;AAChF,QAAM,SAAS,EAAE,KAAK,UAAU,CAAC,UAAyC,IAAI,MAAM,OAAO,aAAa,EAAE;AAC1G,SAAO,SAAS,MAAM,EAAE,OAAO,CAAC;AAClC,CAAC;","names":["SpSlider"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
renderUi,
|
|
4
|
+
useUi,
|
|
5
|
+
useValue
|
|
6
|
+
} from "./chunk-DO4VUIUU.js";
|
|
7
|
+
|
|
8
|
+
// src/ui/checkbox.tsx
|
|
9
|
+
import { uiCheckboxView } from "@silverpoint/core/ui";
|
|
10
|
+
import { forwardRef } from "react";
|
|
11
|
+
|
|
12
|
+
// src/ui/checkable.ts
|
|
13
|
+
import { useCallback, useEffect, useRef } from "react";
|
|
14
|
+
function useNativeRef(forwarded, indeterminate) {
|
|
15
|
+
const own = useRef(null);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
if (own.current) own.current.indeterminate = indeterminate;
|
|
18
|
+
}, [indeterminate]);
|
|
19
|
+
return useCallback(
|
|
20
|
+
(node) => {
|
|
21
|
+
own.current = node;
|
|
22
|
+
if (typeof forwarded === "function") forwarded(node);
|
|
23
|
+
else if (forwarded) forwarded.current = node;
|
|
24
|
+
},
|
|
25
|
+
[forwarded]
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// src/ui/checkbox.tsx
|
|
30
|
+
var SpCheckbox = forwardRef(function SpCheckbox2({ checked, defaultChecked, onChange, dashboardCell, ...props }, ref) {
|
|
31
|
+
const [current, set] = useValue(checked, defaultChecked ?? false, onChange);
|
|
32
|
+
const view = uiCheckboxView(props, useUi(props, dashboardCell), { checked: current });
|
|
33
|
+
const native = {
|
|
34
|
+
ref: useNativeRef(ref, props.indeterminate === true),
|
|
35
|
+
checked: current,
|
|
36
|
+
onChange: (event) => set(event.target.checked)
|
|
37
|
+
};
|
|
38
|
+
return renderUi(view, { native });
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
SpCheckbox
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=chunk-WZZA2IGN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/checkbox.tsx","../src/ui/checkable.ts"],"sourcesContent":["import { uiCheckboxView, type SpCheckboxProps as CoreProps } from '@silverpoint/core/ui';\nimport { forwardRef, type ChangeEvent, type ReactElement } from 'react';\nimport { useUi, useValue, type UiCellProps } from './base';\nimport { useNativeRef } from './checkable';\nimport { renderUi } from './render';\n\nexport interface SpCheckboxProps extends CoreProps, UiCellProps {\n readonly checked?: boolean;\n readonly defaultChecked?: boolean;\n readonly onChange?: (checked: boolean) => void;\n}\n\n/** `SpCheckbox`: a native checkbox, hidden for sight, in its `<label>`; its ref is the input. */\nexport const SpCheckbox = forwardRef<HTMLInputElement, SpCheckboxProps>(function SpCheckbox(\n { checked, defaultChecked, onChange, dashboardCell, ...props },\n ref,\n) {\n const [current, set] = useValue(checked, defaultChecked ?? false, onChange);\n const view = uiCheckboxView(props, useUi(props, dashboardCell), { checked: current });\n const native = {\n ref: useNativeRef(ref, props.indeterminate === true),\n checked: current,\n onChange: (event: ChangeEvent<HTMLInputElement>) => set(event.target.checked),\n };\n return renderUi(view, { native }) as ReactElement;\n});\n","import { useCallback, useEffect, useRef, type ForwardedRef } from 'react';\n\n/** One ref for the native checkbox: the consumer's, and ours for the `indeterminate` property. */\nexport function useNativeRef(forwarded: ForwardedRef<HTMLInputElement>, indeterminate: boolean): (node: HTMLInputElement | null) => void {\n const own = useRef<HTMLInputElement | null>(null);\n // `indeterminate` is a property, not an attribute: set after hydration, so both renders agree.\n useEffect(() => {\n if (own.current) own.current.indeterminate = indeterminate;\n }, [indeterminate]);\n return useCallback(\n (node: HTMLInputElement | null) => {\n own.current = node;\n if (typeof forwarded === 'function') forwarded(node);\n else if (forwarded) forwarded.current = node;\n },\n [forwarded],\n );\n}\n"],"mappings":";;;;;;;;AAAA,SAAS,sBAAyD;AAClE,SAAS,kBAAuD;;;ACDhE,SAAS,aAAa,WAAW,cAAiC;AAG3D,SAAS,aAAa,WAA2C,eAAiE;AACvI,QAAM,MAAM,OAAgC,IAAI;AAEhD,YAAU,MAAM;AACd,QAAI,IAAI,QAAS,KAAI,QAAQ,gBAAgB;AAAA,EAC/C,GAAG,CAAC,aAAa,CAAC;AAClB,SAAO;AAAA,IACL,CAAC,SAAkC;AACjC,UAAI,UAAU;AACd,UAAI,OAAO,cAAc,WAAY,WAAU,IAAI;AAAA,eAC1C,UAAW,WAAU,UAAU;AAAA,IAC1C;AAAA,IACA,CAAC,SAAS;AAAA,EACZ;AACF;;;ADJO,IAAM,aAAa,WAA8C,SAASA,YAC/E,EAAE,SAAS,gBAAgB,UAAU,eAAe,GAAG,MAAM,GAC7D,KACA;AACA,QAAM,CAAC,SAAS,GAAG,IAAI,SAAS,SAAS,kBAAkB,OAAO,QAAQ;AAC1E,QAAM,OAAO,eAAe,OAAO,MAAM,OAAO,aAAa,GAAG,EAAE,SAAS,QAAQ,CAAC;AACpF,QAAM,SAAS;AAAA,IACb,KAAK,aAAa,KAAK,MAAM,kBAAkB,IAAI;AAAA,IACnD,SAAS;AAAA,IACT,UAAU,CAAC,UAAyC,IAAI,MAAM,OAAO,OAAO;AAAA,EAC9E;AACA,SAAO,SAAS,MAAM,EAAE,OAAO,CAAC;AAClC,CAAC;","names":["SpCheckbox"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
5
|
|
|
6
6
|
// src/chord-ring.tsx
|
|
7
7
|
import { chordRing } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var ChordRing = createClientChart(chordRing);
|
|
|
10
10
|
export {
|
|
11
11
|
ChordRing
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-X2F56RYM.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// src/ui/render.tsx
|
|
2
|
+
import { createElement } from "react";
|
|
3
|
+
var PROPS = { class: "className", for: "htmlFor", readonly: "readOnly", tabindex: "tabIndex" };
|
|
4
|
+
function styleObject(value) {
|
|
5
|
+
const out = {};
|
|
6
|
+
for (const declaration of value.split(";")) {
|
|
7
|
+
const at = declaration.indexOf(":");
|
|
8
|
+
if (at > 0) out[declaration.slice(0, at).trim()] = declaration.slice(at + 1).trim();
|
|
9
|
+
}
|
|
10
|
+
return out;
|
|
11
|
+
}
|
|
12
|
+
function renderUi(node, bindings, root = true) {
|
|
13
|
+
if ("text" in node) return node.text;
|
|
14
|
+
if ("slot" in node) return bindings.slots?.[node.slot] ?? null;
|
|
15
|
+
const props = {};
|
|
16
|
+
for (const [name, value] of Object.entries(node.attrs)) {
|
|
17
|
+
props[PROPS[name] ?? name] = name === "style" && typeof value === "string" ? styleObject(value) : value;
|
|
18
|
+
}
|
|
19
|
+
if (root) Object.assign(props, bindings.root);
|
|
20
|
+
if (node.bind === "native") Object.assign(props, typeof bindings.native === "function" ? bindings.native(node) : bindings.native);
|
|
21
|
+
if (node.bind === "close") Object.assign(props, bindings.close);
|
|
22
|
+
return createElement(node.tag, props, ...node.children.map((child) => renderUi(child, bindings, false)));
|
|
23
|
+
}
|
|
24
|
+
function textOf(children) {
|
|
25
|
+
if (typeof children === "string" || typeof children === "number") return String(children);
|
|
26
|
+
return children === void 0 || children === null || children === false ? void 0 : "\xB7";
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
renderUi,
|
|
31
|
+
textOf
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=chunk-ZBSCLF56.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/render.tsx"],"sourcesContent":["import type { UiElement, UiNode, UiSlot } from '@silverpoint/core/ui';\nimport { createElement, type ReactNode } from 'react';\n\n/** HTML attribute names React spells differently. */\nconst PROPS: Readonly<Record<string, string>> = { class: 'className', for: 'htmlFor', readonly: 'readOnly', tabindex: 'tabIndex' };\n\n/** `--a:1;b:2` as React's style object; custom properties keep their names. */\nfunction styleObject(value: string): Record<string, string> {\n const out: Record<string, string> = {};\n for (const declaration of value.split(';')) {\n const at = declaration.indexOf(':');\n if (at > 0) out[declaration.slice(0, at).trim()] = declaration.slice(at + 1).trim();\n }\n return out;\n}\n\nexport interface UiBindings {\n /** Props added to the root element: a ref, a click handler. */\n readonly root?: Readonly<Record<string, unknown>>;\n /**\n * Props added to each element the core marks `native`: value, handlers, a ref. A function when a\n * composite has several (one radio per item), each told apart by its own attributes.\n */\n readonly native?: Readonly<Record<string, unknown>> | ((node: UiElement) => Readonly<Record<string, unknown>>);\n /** Props added to the close button of a Tag or an Alert. */\n readonly close?: Readonly<Record<string, unknown>>;\n readonly slots?: Partial<Record<UiSlot, ReactNode>>;\n}\n\n/**\n * Writes the core's view tree as React elements (API delta §4): the markup is the core's, attribute\n * for attribute; this adds only the bindings. No hooks, so a server entry uses it as well (REQ-104).\n */\nexport function renderUi(node: UiNode, bindings: UiBindings, root = true): ReactNode {\n if ('text' in node) return node.text;\n if ('slot' in node) return bindings.slots?.[node.slot] ?? null;\n const props: Record<string, unknown> = {};\n for (const [name, value] of Object.entries(node.attrs)) {\n props[PROPS[name] ?? name] = name === 'style' && typeof value === 'string' ? styleObject(value) : value;\n }\n if (root) Object.assign(props, bindings.root);\n if (node.bind === 'native') Object.assign(props, typeof bindings.native === 'function' ? bindings.native(node) : bindings.native);\n if (node.bind === 'close') Object.assign(props, bindings.close);\n return createElement(node.tag, props, ...node.children.map((child) => renderUi(child, bindings, false)));\n}\n\n/** Text content, when the children are text: what the accessible-name check reads (REQ-319). */\nexport function textOf(children: unknown): string | undefined {\n if (typeof children === 'string' || typeof children === 'number') return String(children);\n return children === undefined || children === null || children === false ? undefined : '·';\n}\n"],"mappings":";AACA,SAAS,qBAAqC;AAG9C,IAAM,QAA0C,EAAE,OAAO,aAAa,KAAK,WAAW,UAAU,YAAY,UAAU,WAAW;AAGjI,SAAS,YAAY,OAAuC;AAC1D,QAAM,MAA8B,CAAC;AACrC,aAAW,eAAe,MAAM,MAAM,GAAG,GAAG;AAC1C,UAAM,KAAK,YAAY,QAAQ,GAAG;AAClC,QAAI,KAAK,EAAG,KAAI,YAAY,MAAM,GAAG,EAAE,EAAE,KAAK,CAAC,IAAI,YAAY,MAAM,KAAK,CAAC,EAAE,KAAK;AAAA,EACpF;AACA,SAAO;AACT;AAmBO,SAAS,SAAS,MAAc,UAAsB,OAAO,MAAiB;AACnF,MAAI,UAAU,KAAM,QAAO,KAAK;AAChC,MAAI,UAAU,KAAM,QAAO,SAAS,QAAQ,KAAK,IAAI,KAAK;AAC1D,QAAM,QAAiC,CAAC;AACxC,aAAW,CAAC,MAAM,KAAK,KAAK,OAAO,QAAQ,KAAK,KAAK,GAAG;AACtD,UAAM,MAAM,IAAI,KAAK,IAAI,IAAI,SAAS,WAAW,OAAO,UAAU,WAAW,YAAY,KAAK,IAAI;AAAA,EACpG;AACA,MAAI,KAAM,QAAO,OAAO,OAAO,SAAS,IAAI;AAC5C,MAAI,KAAK,SAAS,SAAU,QAAO,OAAO,OAAO,OAAO,SAAS,WAAW,aAAa,SAAS,OAAO,IAAI,IAAI,SAAS,MAAM;AAChI,MAAI,KAAK,SAAS,QAAS,QAAO,OAAO,OAAO,SAAS,KAAK;AAC9D,SAAO,cAAc,KAAK,KAAK,OAAO,GAAG,KAAK,SAAS,IAAI,CAAC,UAAU,SAAS,OAAO,UAAU,KAAK,CAAC,CAAC;AACzG;AAGO,SAAS,OAAO,UAAuC;AAC5D,MAAI,OAAO,aAAa,YAAY,OAAO,aAAa,SAAU,QAAO,OAAO,QAAQ;AACxF,SAAO,aAAa,UAAa,aAAa,QAAQ,aAAa,QAAQ,SAAY;AACzF;","names":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
renderUi,
|
|
4
|
+
useUi,
|
|
5
|
+
useValue
|
|
6
|
+
} from "./chunk-DO4VUIUU.js";
|
|
7
|
+
|
|
8
|
+
// src/ui/radio-group.tsx
|
|
9
|
+
import { uiRadioGroupView, uiRovingFocus } from "@silverpoint/core/ui";
|
|
10
|
+
function SpRadioGroup({ value, defaultValue, onChange, dashboardCell, ...props }) {
|
|
11
|
+
const [current, set] = useValue(value, defaultValue ?? null, onChange);
|
|
12
|
+
const view = uiRadioGroupView(props, useUi(props, dashboardCell), { value: current });
|
|
13
|
+
const native = (node) => ({ checked: node.attrs.checked === true, onChange: (event) => set(event.target.value) });
|
|
14
|
+
const onKeyDown = (event) => uiRovingFocus(event, event.currentTarget, "input.sp-ui-native", "both", true);
|
|
15
|
+
return renderUi(view, { root: { onKeyDown }, native });
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
SpRadioGroup
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=chunk-ZOB6BH7H.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/radio-group.tsx"],"sourcesContent":["import { uiRadioGroupView, uiRovingFocus, type SpRadioGroupProps as CoreProps, type UiElement } from '@silverpoint/core/ui';\nimport type { ChangeEvent, KeyboardEvent, ReactElement } from 'react';\nimport { useUi, useValue, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpRadioGroupProps extends CoreProps, UiCellProps {\n /** Controlled key; `null` checks none. */\n readonly value?: string | null;\n readonly defaultValue?: string | null;\n /** The key checked, not the DOM event (REQ-322). */\n readonly onChange?: (value: string) => void;\n}\n\n/** `SpRadioGroup`: a `<fieldset>` of native radios; arrows move and select through the core (REQ-315). */\nexport function SpRadioGroup({ value, defaultValue, onChange, dashboardCell, ...props }: SpRadioGroupProps) {\n const [current, set] = useValue<string | null>(value, defaultValue ?? null, onChange as (next: string | null) => void);\n const view = uiRadioGroupView(props, useUi(props, dashboardCell), { value: current });\n const native = (node: UiElement) => ({ checked: node.attrs.checked === true, onChange: (event: ChangeEvent<HTMLInputElement>) => set(event.target.value) });\n const onKeyDown = (event: KeyboardEvent<HTMLElement>) => uiRovingFocus(event, event.currentTarget, 'input.sp-ui-native', 'both', true);\n return renderUi(view, { root: { onKeyDown }, native }) as ReactElement;\n}\n"],"mappings":";;;;;;;;AAAA,SAAS,kBAAkB,qBAA0E;AAc9F,SAAS,aAAa,EAAE,OAAO,cAAc,UAAU,eAAe,GAAG,MAAM,GAAsB;AAC1G,QAAM,CAAC,SAAS,GAAG,IAAI,SAAwB,OAAO,gBAAgB,MAAM,QAAyC;AACrH,QAAM,OAAO,iBAAiB,OAAO,MAAM,OAAO,aAAa,GAAG,EAAE,OAAO,QAAQ,CAAC;AACpF,QAAM,SAAS,CAAC,UAAqB,EAAE,SAAS,KAAK,MAAM,YAAY,MAAM,UAAU,CAAC,UAAyC,IAAI,MAAM,OAAO,KAAK,EAAE;AACzJ,QAAM,YAAY,CAAC,UAAsC,cAAc,OAAO,MAAM,eAAe,sBAAsB,QAAQ,IAAI;AACrI,SAAO,SAAS,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC;AACvD;","names":[]}
|
package/dist/composed-chart.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
ComposedChart
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-C3NHZ4N5.js";
|
|
5
|
+
import "./chunk-FBJLA3P7.js";
|
|
6
6
|
import "./chunk-4GQ5X2WK.js";
|
|
7
|
+
import "./chunk-SQ6GWXDK.js";
|
|
7
8
|
export {
|
|
8
9
|
ComposedChart
|
|
9
10
|
};
|
package/dist/coxcomb-chart.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
CoxcombChart
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-RMIIFPXA.js";
|
|
5
|
+
import "./chunk-FBJLA3P7.js";
|
|
6
6
|
import "./chunk-4GQ5X2WK.js";
|
|
7
|
+
import "./chunk-SQ6GWXDK.js";
|
|
7
8
|
export {
|
|
8
9
|
CoxcombChart
|
|
9
10
|
};
|
package/dist/donut-chart.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
DonutChart
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-JWCVL7VE.js";
|
|
5
|
+
import "./chunk-FBJLA3P7.js";
|
|
6
6
|
import "./chunk-4GQ5X2WK.js";
|
|
7
|
+
import "./chunk-SQ6GWXDK.js";
|
|
7
8
|
export {
|
|
8
9
|
DonutChart
|
|
9
10
|
};
|
package/dist/funnel-chart.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
FunnelChart
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-RIGQTEKW.js";
|
|
5
|
+
import "./chunk-FBJLA3P7.js";
|
|
6
6
|
import "./chunk-4GQ5X2WK.js";
|
|
7
|
+
import "./chunk-SQ6GWXDK.js";
|
|
7
8
|
export {
|
|
8
9
|
FunnelChart
|
|
9
10
|
};
|
package/dist/gauge-arc.js
CHANGED
package/dist/heatmap-chart.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
HeatmapChart
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-GSJYA76X.js";
|
|
5
|
+
import "./chunk-FBJLA3P7.js";
|
|
6
6
|
import "./chunk-4GQ5X2WK.js";
|
|
7
|
+
import "./chunk-SQ6GWXDK.js";
|
|
7
8
|
export {
|
|
8
9
|
HeatmapChart
|
|
9
10
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,107 +1,108 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
ChordRing
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-X2F56RYM.js";
|
|
5
5
|
import {
|
|
6
6
|
OrbitChart
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TSQWTDBK.js";
|
|
8
8
|
import {
|
|
9
9
|
PolarBarChart
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NA6K372D.js";
|
|
11
11
|
import {
|
|
12
12
|
RadialArcGroup
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OAH7AEGE.js";
|
|
14
14
|
import {
|
|
15
15
|
RadialRings
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WFO6BICV.js";
|
|
17
17
|
import {
|
|
18
18
|
GaugeArc
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-J3E6IUUQ.js";
|
|
20
20
|
import {
|
|
21
21
|
MeterChart
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3U3Z5U6H.js";
|
|
23
23
|
import {
|
|
24
24
|
CoxcombChart
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RMIIFPXA.js";
|
|
26
26
|
import {
|
|
27
27
|
WindRose
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-MYKZWY2E.js";
|
|
29
29
|
import {
|
|
30
30
|
VolvelleChart
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-I72JGA6Q.js";
|
|
32
32
|
import {
|
|
33
33
|
CandlestickChart
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-KVOBNPDN.js";
|
|
35
35
|
import {
|
|
36
36
|
AreaChart
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-U3LT444G.js";
|
|
38
38
|
import {
|
|
39
39
|
RangeBandChart
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-NWRCFNYB.js";
|
|
41
41
|
import {
|
|
42
42
|
StreamChart
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-UOOHQAJU.js";
|
|
44
44
|
import {
|
|
45
45
|
ScatterChart
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-GUKXFITX.js";
|
|
47
47
|
import {
|
|
48
48
|
BubbleChart
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-3BREGZ7C.js";
|
|
50
50
|
import {
|
|
51
51
|
DonutChart
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-JWCVL7VE.js";
|
|
53
53
|
import {
|
|
54
54
|
RadarChart
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-PRVJKYEQ.js";
|
|
56
56
|
import {
|
|
57
57
|
StepChart
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-ESFN6FJY.js";
|
|
59
59
|
import {
|
|
60
60
|
SparklineRows
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-NWK6VBCJ.js";
|
|
62
62
|
import {
|
|
63
63
|
KpiCard
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-VKNGQ4NW.js";
|
|
65
65
|
import {
|
|
66
66
|
BarChart
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-JPTK2AAT.js";
|
|
68
68
|
import {
|
|
69
69
|
StackedBarChart
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-AEU6UHVG.js";
|
|
71
71
|
import {
|
|
72
72
|
ComposedChart
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-C3NHZ4N5.js";
|
|
74
74
|
import {
|
|
75
75
|
WaterfallChart
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-FHX2HWN3.js";
|
|
77
77
|
import {
|
|
78
78
|
FunnelChart
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-RIGQTEKW.js";
|
|
80
80
|
import {
|
|
81
81
|
LineChart
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-6M4REUJE.js";
|
|
83
83
|
import {
|
|
84
84
|
BulletChart
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-6S6VKQ3E.js";
|
|
86
86
|
import {
|
|
87
87
|
PyramidChart
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-FZ46YSJA.js";
|
|
89
89
|
import {
|
|
90
90
|
HeatmapChart
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-GSJYA76X.js";
|
|
92
92
|
import {
|
|
93
93
|
TreemapChart
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-MC7N4KQA.js";
|
|
95
95
|
import {
|
|
96
96
|
SankeyChart
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-RAATAHXZ.js";
|
|
98
98
|
import {
|
|
99
99
|
ActivityGrid
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-6EFRIK7Q.js";
|
|
101
|
+
import "./chunk-FBJLA3P7.js";
|
|
102
|
+
import "./chunk-4GQ5X2WK.js";
|
|
101
103
|
import {
|
|
102
104
|
SilverpointContext
|
|
103
|
-
} from "./chunk-
|
|
104
|
-
import "./chunk-4GQ5X2WK.js";
|
|
105
|
+
} from "./chunk-SQ6GWXDK.js";
|
|
105
106
|
|
|
106
107
|
// src/provider.tsx
|
|
107
108
|
import { jsx } from "react/jsx-runtime";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/provider.tsx"],"sourcesContent":["import type { ProviderConfig } from '@silverpoint/core';\nimport type { ReactNode } from 'react';\nimport { SilverpointContext } from './context';\n\nexport interface SilverpointProviderProps extends ProviderConfig {\n readonly children?: ReactNode;\n}\n\n/** Sets ground, substrate, mode and locale once for every chart below it (API Spec §8.1). */\nexport function SilverpointProvider({ children, ...config }: SilverpointProviderProps) {\n return <SilverpointContext.Provider value={config}>{children}</SilverpointContext.Provider>;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/provider.tsx"],"sourcesContent":["import type { ProviderConfig } from '@silverpoint/core';\nimport type { ReactNode } from 'react';\nimport { SilverpointContext } from './context';\n\nexport interface SilverpointProviderProps extends ProviderConfig {\n readonly children?: ReactNode;\n}\n\n/** Sets ground, substrate, mode and locale once for every chart below it (API Spec §8.1). */\nexport function SilverpointProvider({ children, ...config }: SilverpointProviderProps) {\n return <SilverpointContext.Provider value={config}>{children}</SilverpointContext.Provider>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUS;AADF,SAAS,oBAAoB,EAAE,UAAU,GAAG,OAAO,GAA6B;AACrF,SAAO,oBAAC,mBAAmB,UAAnB,EAA4B,OAAO,QAAS,UAAS;AAC/D;","names":[]}
|
package/dist/kpi-card.js
CHANGED
package/dist/line-chart.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
LineChart
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-6M4REUJE.js";
|
|
5
|
+
import "./chunk-FBJLA3P7.js";
|
|
6
6
|
import "./chunk-4GQ5X2WK.js";
|
|
7
|
+
import "./chunk-SQ6GWXDK.js";
|
|
7
8
|
export {
|
|
8
9
|
LineChart
|
|
9
10
|
};
|
package/dist/meter-chart.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
MeterChart
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-3U3Z5U6H.js";
|
|
5
|
+
import "./chunk-FBJLA3P7.js";
|
|
6
6
|
import "./chunk-4GQ5X2WK.js";
|
|
7
|
+
import "./chunk-SQ6GWXDK.js";
|
|
7
8
|
export {
|
|
8
9
|
MeterChart
|
|
9
10
|
};
|
package/dist/orbit-chart.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
OrbitChart
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TSQWTDBK.js";
|
|
5
|
+
import "./chunk-FBJLA3P7.js";
|
|
6
6
|
import "./chunk-4GQ5X2WK.js";
|
|
7
|
+
import "./chunk-SQ6GWXDK.js";
|
|
7
8
|
export {
|
|
8
9
|
OrbitChart
|
|
9
10
|
};
|
package/dist/polar-bar-chart.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
PolarBarChart
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-NA6K372D.js";
|
|
5
|
+
import "./chunk-FBJLA3P7.js";
|
|
6
6
|
import "./chunk-4GQ5X2WK.js";
|
|
7
|
+
import "./chunk-SQ6GWXDK.js";
|
|
7
8
|
export {
|
|
8
9
|
PolarBarChart
|
|
9
10
|
};
|
package/dist/pyramid-chart.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
PyramidChart
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-FZ46YSJA.js";
|
|
5
|
+
import "./chunk-FBJLA3P7.js";
|
|
6
6
|
import "./chunk-4GQ5X2WK.js";
|
|
7
|
+
import "./chunk-SQ6GWXDK.js";
|
|
7
8
|
export {
|
|
8
9
|
PyramidChart
|
|
9
10
|
};
|
package/dist/radar-chart.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
RadarChart
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-PRVJKYEQ.js";
|
|
5
|
+
import "./chunk-FBJLA3P7.js";
|
|
6
6
|
import "./chunk-4GQ5X2WK.js";
|
|
7
|
+
import "./chunk-SQ6GWXDK.js";
|
|
7
8
|
export {
|
|
8
9
|
RadarChart
|
|
9
10
|
};
|
package/dist/radial-arc-group.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
RadialArcGroup
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-OAH7AEGE.js";
|
|
5
|
+
import "./chunk-FBJLA3P7.js";
|
|
6
6
|
import "./chunk-4GQ5X2WK.js";
|
|
7
|
+
import "./chunk-SQ6GWXDK.js";
|
|
7
8
|
export {
|
|
8
9
|
RadialArcGroup
|
|
9
10
|
};
|
package/dist/radial-rings.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
RadialRings
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-WFO6BICV.js";
|
|
5
|
+
import "./chunk-FBJLA3P7.js";
|
|
6
6
|
import "./chunk-4GQ5X2WK.js";
|
|
7
|
+
import "./chunk-SQ6GWXDK.js";
|
|
7
8
|
export {
|
|
8
9
|
RadialRings
|
|
9
10
|
};
|
package/dist/range-band-chart.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
RangeBandChart
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-NWRCFNYB.js";
|
|
5
|
+
import "./chunk-FBJLA3P7.js";
|
|
6
6
|
import "./chunk-4GQ5X2WK.js";
|
|
7
|
+
import "./chunk-SQ6GWXDK.js";
|
|
7
8
|
export {
|
|
8
9
|
RangeBandChart
|
|
9
10
|
};
|
package/dist/sankey-chart.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
SankeyChart
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-RAATAHXZ.js";
|
|
5
|
+
import "./chunk-FBJLA3P7.js";
|
|
6
6
|
import "./chunk-4GQ5X2WK.js";
|
|
7
|
+
import "./chunk-SQ6GWXDK.js";
|
|
7
8
|
export {
|
|
8
9
|
SankeyChart
|
|
9
10
|
};
|
package/dist/scatter-chart.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
ScatterChart
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-GUKXFITX.js";
|
|
5
|
+
import "./chunk-FBJLA3P7.js";
|
|
6
6
|
import "./chunk-4GQ5X2WK.js";
|
|
7
|
+
import "./chunk-SQ6GWXDK.js";
|
|
7
8
|
export {
|
|
8
9
|
ScatterChart
|
|
9
10
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode, MouseEvent, ReactElement } from 'react';
|
|
2
|
+
import { SpAlertProps as SpAlertProps$2 } from '@silverpoint/core/ui';
|
|
3
|
+
import { U as UiCellProps } from '../../base-C6zY78Va.js';
|
|
4
|
+
import '@silverpoint/core';
|
|
5
|
+
|
|
6
|
+
interface SpAlertProps$1 extends SpAlertProps$2, UiCellProps {
|
|
7
|
+
readonly children?: ReactNode;
|
|
8
|
+
/** From the close button of a closable alert. */
|
|
9
|
+
readonly onClose?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Props and dashboard cell only: a Server Component reads no provider. It closes nothing: a closable alert is a client component. */
|
|
13
|
+
type SpAlertProps = Omit<SpAlertProps$1, 'closable' | 'closeLabel' | 'onClose'>;
|
|
14
|
+
/** `SpAlert` for React Server Components (REQ-104): no hook and no client boundary. */
|
|
15
|
+
declare function SpAlert({ children, dashboardCell, ...props }: SpAlertProps): ReactElement;
|
|
16
|
+
|
|
17
|
+
export { SpAlert, type SpAlertProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
renderUi
|
|
3
|
+
} from "../../chunk-ZBSCLF56.js";
|
|
4
|
+
|
|
5
|
+
// src/server/ui/alert.tsx
|
|
6
|
+
import { resolveUi, uiAlertView } from "@silverpoint/core/ui";
|
|
7
|
+
function SpAlert({ children, dashboardCell, ...props }) {
|
|
8
|
+
return renderUi(uiAlertView(props, resolveUi(props, { cell: dashboardCell?.config }), { closable: false }), { slots: { content: children } });
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
SpAlert
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=alert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/server/ui/alert.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport { resolveUi, uiAlertView } from '@silverpoint/core/ui';\nimport type { SpAlertProps as ClientProps } from '../../ui/alert';\nimport { renderUi } from '../../ui/render';\n\n/** Props and dashboard cell only: a Server Component reads no provider. It closes nothing: a closable alert is a client component. */\nexport type SpAlertProps = Omit<ClientProps, 'closable' | 'closeLabel' | 'onClose'>;\n\n/** `SpAlert` for React Server Components (REQ-104): no hook and no client boundary. */\nexport function SpAlert({ children, dashboardCell, ...props }: SpAlertProps) {\n return renderUi(uiAlertView(props, resolveUi(props, { cell: dashboardCell?.config }), { closable: false }), { slots: { content: children } }) as ReactElement;\n}\n"],"mappings":";;;;;AACA,SAAS,WAAW,mBAAmB;AAQhC,SAAS,QAAQ,EAAE,UAAU,eAAe,GAAG,MAAM,GAAiB;AAC3E,SAAO,SAAS,YAAY,OAAO,UAAU,OAAO,EAAE,MAAM,eAAe,OAAO,CAAC,GAAG,EAAE,UAAU,MAAM,CAAC,GAAG,EAAE,OAAO,EAAE,SAAS,SAAS,EAAE,CAAC;AAC9I;","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode, ReactElement } from 'react';
|
|
2
|
+
import { SpBadgeProps as SpBadgeProps$2 } from '@silverpoint/core/ui';
|
|
3
|
+
import { U as UiCellProps } from '../../base-C6zY78Va.js';
|
|
4
|
+
import '@silverpoint/core';
|
|
5
|
+
|
|
6
|
+
interface SpBadgeProps$1 extends SpBadgeProps$2, UiCellProps {
|
|
7
|
+
readonly children?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/** Props and dashboard cell only: a Server Component reads no provider. */
|
|
11
|
+
type SpBadgeProps = SpBadgeProps$1;
|
|
12
|
+
/** `SpBadge` for React Server Components (REQ-104): no hook and no client boundary. */
|
|
13
|
+
declare function SpBadge({ children, dashboardCell, ...props }: SpBadgeProps): ReactElement;
|
|
14
|
+
|
|
15
|
+
export { SpBadge, type SpBadgeProps };
|