@ktnpm_devops/react-component 0.13.1 → 0.14.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/index.cjs +24 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -22
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +2 -2
- package/dist/index10.js +2 -2
- package/dist/index100.cjs +39 -21
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +40 -22
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +14 -50
- package/dist/index101.cjs.map +1 -1
- package/dist/index101.js +14 -50
- package/dist/index101.js.map +1 -1
- package/dist/index102.cjs +55 -134
- package/dist/index102.cjs.map +1 -1
- package/dist/index102.js +54 -133
- package/dist/index102.js.map +1 -1
- package/dist/index103.cjs +13 -40
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +14 -41
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +9 -35
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +8 -34
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +15 -43
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +14 -42
- package/dist/index105.js.map +1 -1
- package/dist/index106.cjs +33 -24
- package/dist/index106.cjs.map +1 -1
- package/dist/index106.js +32 -23
- package/dist/index106.js.map +1 -1
- package/dist/index107.cjs +58 -20
- package/dist/index107.cjs.map +1 -1
- package/dist/index107.js +57 -19
- package/dist/index107.js.map +1 -1
- package/dist/index108.cjs +34 -14
- package/dist/index108.cjs.map +1 -1
- package/dist/index108.js +33 -13
- package/dist/index108.js.map +1 -1
- package/dist/index109.cjs +19 -55
- package/dist/index109.cjs.map +1 -1
- package/dist/index109.js +20 -56
- package/dist/index109.js.map +1 -1
- package/dist/index11.cjs +2 -2
- package/dist/index11.js +2 -2
- package/dist/index110.cjs +16 -28
- package/dist/index110.cjs.map +1 -1
- package/dist/index110.js +16 -28
- package/dist/index110.js.map +1 -1
- package/dist/index111.cjs +10 -10
- package/dist/index111.js +11 -11
- package/dist/index112.cjs +16 -19
- package/dist/index112.cjs.map +1 -1
- package/dist/index112.js +17 -20
- package/dist/index112.js.map +1 -1
- package/dist/index113.cjs +34 -13
- package/dist/index113.cjs.map +1 -1
- package/dist/index113.js +35 -14
- package/dist/index113.js.map +1 -1
- package/dist/index114.cjs +118 -0
- package/dist/index114.cjs.map +1 -0
- package/dist/index114.js +118 -0
- package/dist/index114.js.map +1 -0
- package/dist/index115.cjs +45 -0
- package/dist/index115.cjs.map +1 -0
- package/dist/index115.js +45 -0
- package/dist/index115.js.map +1 -0
- package/dist/index116.cjs +33 -0
- package/dist/index116.cjs.map +1 -0
- package/dist/index116.js +33 -0
- package/dist/index116.js.map +1 -0
- package/dist/index117.cjs +1166 -0
- package/dist/index117.cjs.map +1 -0
- package/dist/index117.js +1167 -0
- package/dist/index117.js.map +1 -0
- package/dist/index118.cjs +1578 -0
- package/dist/index118.cjs.map +1 -0
- package/dist/index118.js +1579 -0
- package/dist/index118.js.map +1 -0
- package/dist/index12.cjs +2 -2
- package/dist/index12.js +2 -2
- package/dist/index13.cjs +2 -2
- package/dist/index13.js +2 -2
- package/dist/index14.cjs +2 -2
- package/dist/index14.js +2 -2
- package/dist/index15.cjs +2 -2
- package/dist/index15.js +2 -2
- package/dist/index16.cjs +3 -3
- package/dist/index16.js +3 -3
- package/dist/index17.cjs +2 -2
- package/dist/index17.js +2 -2
- package/dist/index18.cjs +2 -2
- package/dist/index18.js +2 -2
- package/dist/index19.cjs +2 -2
- package/dist/index19.js +2 -2
- package/dist/index20.cjs +2 -2
- package/dist/index20.js +2 -2
- package/dist/index21.cjs +2 -2
- package/dist/index21.js +2 -2
- package/dist/index22.cjs +3 -3
- package/dist/index22.js +3 -3
- package/dist/index23.cjs +3 -3
- package/dist/index23.js +3 -3
- package/dist/index24.cjs +3 -3
- package/dist/index24.js +3 -3
- package/dist/index25.cjs +2 -2
- package/dist/index25.js +2 -2
- package/dist/index26.cjs +2 -2
- package/dist/index26.js +2 -2
- package/dist/index27.cjs +2 -2
- package/dist/index27.js +2 -2
- package/dist/index28.cjs +2 -2
- package/dist/index28.js +2 -2
- package/dist/index29.cjs +3 -3
- package/dist/index29.js +3 -3
- package/dist/index30.cjs +8 -8
- package/dist/index30.js +8 -8
- package/dist/index31.cjs +2 -2
- package/dist/index31.js +2 -2
- package/dist/index32.cjs +2 -2
- package/dist/index32.js +2 -2
- package/dist/index33.cjs +3 -3
- package/dist/index33.js +3 -3
- package/dist/index34.cjs +4 -4
- package/dist/index34.js +4 -4
- package/dist/index35.cjs +20 -38
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +21 -39
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +36 -224
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +37 -225
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +220 -28
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +222 -30
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +30 -106
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +31 -107
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +100 -58
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +101 -59
- package/dist/index39.js.map +1 -1
- package/dist/index40.cjs +66 -76
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +67 -77
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +76 -57
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +78 -59
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +56 -150
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +58 -152
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +128 -73
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +123 -68
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +94 -68
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +96 -70
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +71 -7
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +72 -8
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +8 -17
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +9 -18
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +15 -75
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +16 -76
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +68 -134
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +70 -136
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +137 -58
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +138 -59
- package/dist/index49.js.map +1 -1
- package/dist/index50.cjs +61 -102
- package/dist/index50.cjs.map +1 -1
- package/dist/index50.js +62 -103
- package/dist/index50.js.map +1 -1
- package/dist/index51.cjs +102 -44
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +103 -45
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +47 -6
- package/dist/index52.cjs.map +1 -1
- package/dist/index52.js +48 -7
- package/dist/index52.js.map +1 -1
- package/dist/index53.cjs +6 -147
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +7 -148
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +146 -7
- package/dist/index54.cjs.map +1 -1
- package/dist/index54.js +148 -9
- package/dist/index54.js.map +1 -1
- package/dist/index55.cjs +6 -15
- package/dist/index55.cjs.map +1 -1
- package/dist/index55.js +6 -15
- package/dist/index55.js.map +1 -1
- package/dist/index56.cjs +15 -64
- package/dist/index56.cjs.map +1 -1
- package/dist/index56.js +17 -66
- package/dist/index56.js.map +1 -1
- package/dist/index57.cjs +67 -15
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +66 -14
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +15 -18
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +15 -18
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +19 -116
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +17 -114
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +16 -10
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +17 -11
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +22 -10
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +23 -11
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +22 -13
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +22 -13
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +2 -23
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +3 -24
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +2 -35
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +3 -36
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +17 -2
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +18 -3
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +1 -1
- package/dist/index67.cjs +11 -5
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +12 -6
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +2 -20
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +3 -21
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +17 -24
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +16 -23
- package/dist/index69.js.map +1 -1
- package/dist/index70.cjs +2 -17
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +3 -18
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +116 -19
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +114 -17
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +29 -2
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +30 -3
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +18 -30
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +18 -30
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +21 -36
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +21 -36
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +5 -35
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +6 -36
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +2 -23
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +3 -24
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +65 -2
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +66 -3
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +19 -16
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +20 -17
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +13 -10
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +14 -11
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +19 -64
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +20 -65
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +35 -21
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +34 -20
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +43 -51
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +42 -50
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +24 -57
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +23 -56
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +20 -25
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +19 -24
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +14 -25
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +13 -24
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +51 -75
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +51 -75
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +47 -2
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +48 -3
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +34 -16
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +34 -16
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +69 -18
- package/dist/index89.cjs.map +1 -1
- package/dist/index89.js +70 -19
- package/dist/index89.js.map +1 -1
- package/dist/index90.cjs +39 -21
- package/dist/index90.cjs.map +1 -1
- package/dist/index90.js +38 -20
- package/dist/index90.js.map +1 -1
- package/dist/index91.cjs +83 -106
- package/dist/index91.cjs.map +1 -1
- package/dist/index91.js +83 -106
- package/dist/index91.js.map +1 -1
- package/dist/index92.cjs +19 -22
- package/dist/index92.cjs.map +1 -1
- package/dist/index92.js +20 -23
- package/dist/index92.js.map +1 -1
- package/dist/index93.cjs +13 -37
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +14 -38
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +36 -6
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +36 -6
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +15 -18
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +15 -18
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +35 -47
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +35 -47
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +16 -25
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +16 -25
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +129 -35
- package/dist/index98.cjs.map +1 -1
- package/dist/index98.js +129 -35
- package/dist/index98.js.map +1 -1
- package/dist/index99.cjs +45 -92
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +44 -91
- package/dist/index99.js.map +1 -1
- package/dist/primitives/MarkdownContent/MarkdownContent.d.ts +4 -0
- package/dist/primitives/MarkdownContent/MarkdownContent.d.ts.map +1 -0
- package/dist/primitives/MarkdownContent/MarkdownContent.types.d.ts +5 -0
- package/dist/primitives/MarkdownContent/MarkdownContent.types.d.ts.map +1 -0
- package/dist/primitives/MarkdownContent/index.d.ts +3 -0
- package/dist/primitives/MarkdownContent/index.d.ts.map +1 -0
- package/dist/style.css +108 -0
- package/dist/utils/markdown.d.ts +3 -0
- package/dist/utils/markdown.d.ts.map +1 -0
- package/dist/utils/markdown.test.d.ts +2 -0
- package/dist/utils/markdown.test.d.ts.map +1 -0
- package/package.json +23 -4
package/dist/index19.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const clsx = require("./
|
|
6
|
-
const Chip_module = require("./
|
|
5
|
+
const clsx = require("./index58.cjs");
|
|
6
|
+
const Chip_module = require("./index59.cjs");
|
|
7
7
|
const Chip = react.forwardRef(
|
|
8
8
|
({ className, value, selected = false, size = "md", type = "button", onToggle, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
9
|
"button",
|
package/dist/index19.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { clsx } from "./
|
|
4
|
-
import styles from "./
|
|
3
|
+
import { clsx } from "./index58.js";
|
|
4
|
+
import styles from "./index59.js";
|
|
5
5
|
const Chip = forwardRef(
|
|
6
6
|
({ className, value, selected = false, size = "md", type = "button", onToggle, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
7
7
|
"button",
|
package/dist/index20.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const clsx = require("./
|
|
6
|
-
const ChipGroup_module = require("./
|
|
5
|
+
const clsx = require("./index58.cjs");
|
|
6
|
+
const ChipGroup_module = require("./index76.cjs");
|
|
7
7
|
const Chip = require("./index19.cjs");
|
|
8
8
|
const ChipGroup = react.forwardRef(
|
|
9
9
|
({ options, selected, onToggle, size = "md", className, ...props }, ref) => {
|
package/dist/index20.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useMemo } from "react";
|
|
3
|
-
import { clsx } from "./
|
|
4
|
-
import styles from "./
|
|
3
|
+
import { clsx } from "./index58.js";
|
|
4
|
+
import styles from "./index76.js";
|
|
5
5
|
import { Chip } from "./index19.js";
|
|
6
6
|
const ChipGroup = forwardRef(
|
|
7
7
|
({ options, selected, onToggle, size = "md", className, ...props }, ref) => {
|
package/dist/index21.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const clsx = require("./
|
|
6
|
-
const Col_module = require("./
|
|
5
|
+
const clsx = require("./index58.cjs");
|
|
6
|
+
const Col_module = require("./index68.cjs");
|
|
7
7
|
const GRID_COLUMNS = 12;
|
|
8
8
|
function toFlexValue(value) {
|
|
9
9
|
if (value === true) return 1;
|
package/dist/index21.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { clsx } from "./
|
|
4
|
-
import styles from "./
|
|
3
|
+
import { clsx } from "./index58.js";
|
|
4
|
+
import styles from "./index68.js";
|
|
5
5
|
const GRID_COLUMNS = 12;
|
|
6
6
|
function toFlexValue(value) {
|
|
7
7
|
if (value === true) return 1;
|
package/dist/index22.cjs
CHANGED
|
@@ -4,9 +4,9 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const reactDom = require("react-dom");
|
|
6
6
|
const useEscapeKey = require("./index5.cjs");
|
|
7
|
-
const constants = require("./
|
|
8
|
-
const clsx = require("./
|
|
9
|
-
const ContextMenu_module = require("./
|
|
7
|
+
const constants = require("./index71.cjs");
|
|
8
|
+
const clsx = require("./index58.cjs");
|
|
9
|
+
const ContextMenu_module = require("./index103.cjs");
|
|
10
10
|
const ContextMenu = ({ x, y, items, onClose }) => {
|
|
11
11
|
const menuRef = react.useRef(null);
|
|
12
12
|
const [focusedIndex, setFocusedIndex] = react.useState(-1);
|
package/dist/index22.js
CHANGED
|
@@ -2,9 +2,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef, useState, useCallback, useEffect } from "react";
|
|
3
3
|
import { createPortal } from "react-dom";
|
|
4
4
|
import { useEscapeKey } from "./index5.js";
|
|
5
|
-
import { CONTEXT_MENU_MARGIN } from "./
|
|
6
|
-
import { clsx } from "./
|
|
7
|
-
import styles from "./
|
|
5
|
+
import { CONTEXT_MENU_MARGIN } from "./index71.js";
|
|
6
|
+
import { clsx } from "./index58.js";
|
|
7
|
+
import styles from "./index103.js";
|
|
8
8
|
const ContextMenu = ({ x, y, items, onClose }) => {
|
|
9
9
|
const menuRef = useRef(null);
|
|
10
10
|
const [focusedIndex, setFocusedIndex] = useState(-1);
|
package/dist/index23.cjs
CHANGED
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const ReactECharts = require("echarts-for-react");
|
|
6
|
-
const clsx = require("./
|
|
7
|
-
const constants = require("./
|
|
8
|
-
const CounterTimeseriesChart_module = require("./
|
|
6
|
+
const clsx = require("./index58.cjs");
|
|
7
|
+
const constants = require("./index71.cjs");
|
|
8
|
+
const CounterTimeseriesChart_module = require("./index108.cjs");
|
|
9
9
|
const DEFAULT_TIME_RANGE_OPTIONS = ["auto", "1h", "6h", "24h", "7d", "30d"];
|
|
10
10
|
const buildMarkAreas = (annotations) => annotations.filter((a) => a.end).map((a) => [
|
|
11
11
|
{ name: a.label, xAxis: a.start, itemStyle: { color: a.color ?? "rgba(255,107,90,0.12)" } },
|
package/dist/index23.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import ReactECharts from "echarts-for-react";
|
|
4
|
-
import { clsx } from "./
|
|
5
|
-
import { CHART_COLORS } from "./
|
|
6
|
-
import styles from "./
|
|
4
|
+
import { clsx } from "./index58.js";
|
|
5
|
+
import { CHART_COLORS } from "./index71.js";
|
|
6
|
+
import styles from "./index108.js";
|
|
7
7
|
const DEFAULT_TIME_RANGE_OPTIONS = ["auto", "1h", "6h", "24h", "7d", "30d"];
|
|
8
8
|
const buildMarkAreas = (annotations) => annotations.filter((a) => a.end).map((a) => [
|
|
9
9
|
{ name: a.label, xAxis: a.start, itemStyle: { color: a.color ?? "rgba(255,107,90,0.12)" } },
|
package/dist/index24.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const clsx = require("./
|
|
6
|
-
const constants = require("./
|
|
7
|
-
const CountersAnalysisCard_module = require("./
|
|
5
|
+
const clsx = require("./index58.cjs");
|
|
6
|
+
const constants = require("./index71.cjs");
|
|
7
|
+
const CountersAnalysisCard_module = require("./index100.cjs");
|
|
8
8
|
const CounterTimeseriesChart = require("./index23.cjs");
|
|
9
9
|
const COLUMN_HEADERS = [
|
|
10
10
|
{ key: "counter", label: "Counter" },
|
package/dist/index24.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useMemo } from "react";
|
|
3
|
-
import { clsx } from "./
|
|
4
|
-
import { COUNTERS_PAGE_SIZE } from "./
|
|
5
|
-
import styles from "./
|
|
3
|
+
import { clsx } from "./index58.js";
|
|
4
|
+
import { COUNTERS_PAGE_SIZE } from "./index71.js";
|
|
5
|
+
import styles from "./index100.js";
|
|
6
6
|
import { CounterTimeseriesChart } from "./index23.js";
|
|
7
7
|
const COLUMN_HEADERS = [
|
|
8
8
|
{ key: "counter", label: "Counter" },
|
package/dist/index25.cjs
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const clsx = require("./
|
|
5
|
+
const clsx = require("./index58.cjs");
|
|
6
6
|
const useClickOutside = require("./index4.cjs");
|
|
7
7
|
const useEscapeKey = require("./index5.cjs");
|
|
8
8
|
const format = require("./index8.cjs");
|
|
9
|
-
const CustomRangePicker_module = require("./
|
|
9
|
+
const CustomRangePicker_module = require("./index88.cjs");
|
|
10
10
|
const formatInputValue = (iso) => {
|
|
11
11
|
if (!iso) return "";
|
|
12
12
|
const date = new Date(iso);
|
package/dist/index25.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useRef, useCallback, useEffect, useMemo } from "react";
|
|
3
|
-
import { clsx } from "./
|
|
3
|
+
import { clsx } from "./index58.js";
|
|
4
4
|
import { useClickOutside } from "./index4.js";
|
|
5
5
|
import { useEscapeKey } from "./index5.js";
|
|
6
6
|
import { formatLocalISOString } from "./index8.js";
|
|
7
|
-
import styles from "./
|
|
7
|
+
import styles from "./index88.js";
|
|
8
8
|
const formatInputValue = (iso) => {
|
|
9
9
|
if (!iso) return "";
|
|
10
10
|
const date = new Date(iso);
|
package/dist/index26.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const clsx = require("./
|
|
5
|
-
const DashboardLayout_module = require("./
|
|
4
|
+
const clsx = require("./index58.cjs");
|
|
5
|
+
const DashboardLayout_module = require("./index112.cjs");
|
|
6
6
|
const DashboardLayout = ({
|
|
7
7
|
sidebar,
|
|
8
8
|
filterBar,
|
package/dist/index26.js
CHANGED
package/dist/index27.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const clsx = require("./
|
|
5
|
+
const clsx = require("./index58.cjs");
|
|
6
6
|
const useClickOutside = require("./index4.cjs");
|
|
7
7
|
const useEscapeKey = require("./index5.cjs");
|
|
8
|
-
const DatePickerDropdown_module = require("./
|
|
8
|
+
const DatePickerDropdown_module = require("./index87.cjs");
|
|
9
9
|
const MONTHS = [
|
|
10
10
|
"January",
|
|
11
11
|
"February",
|
package/dist/index27.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useRef, useCallback, useEffect, useMemo } from "react";
|
|
3
|
-
import { clsx } from "./
|
|
3
|
+
import { clsx } from "./index58.js";
|
|
4
4
|
import { useClickOutside } from "./index4.js";
|
|
5
5
|
import { useEscapeKey } from "./index5.js";
|
|
6
|
-
import styles from "./
|
|
6
|
+
import styles from "./index87.js";
|
|
7
7
|
const MONTHS = [
|
|
8
8
|
"January",
|
|
9
9
|
"February",
|
package/dist/index28.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const clsx = require("./
|
|
6
|
-
const EmptyState_module = require("./
|
|
5
|
+
const clsx = require("./index58.cjs");
|
|
6
|
+
const EmptyState_module = require("./index101.cjs");
|
|
7
7
|
const EmptyState = react.forwardRef(
|
|
8
8
|
({ title, description, icon, action, variant = "default", className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9
9
|
"div",
|
package/dist/index28.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { clsx } from "./
|
|
4
|
-
import styles from "./
|
|
3
|
+
import { clsx } from "./index58.js";
|
|
4
|
+
import styles from "./index101.js";
|
|
5
5
|
const EmptyState = forwardRef(
|
|
6
6
|
({ title, description, icon, action, variant = "default", className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
7
7
|
"div",
|
package/dist/index29.cjs
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const clsx = require("./
|
|
5
|
+
const clsx = require("./index58.cjs");
|
|
6
6
|
const useClickOutside = require("./index4.cjs");
|
|
7
7
|
const useEscapeKey = require("./index5.cjs");
|
|
8
|
-
const constants = require("./
|
|
9
|
-
const FilterDropdown_module = require("./
|
|
8
|
+
const constants = require("./index71.cjs");
|
|
9
|
+
const FilterDropdown_module = require("./index72.cjs");
|
|
10
10
|
const Chip = require("./index19.cjs");
|
|
11
11
|
const FilterDropdown = ({
|
|
12
12
|
label,
|
package/dist/index29.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useRef, useEffect, useCallback, useMemo } from "react";
|
|
3
|
-
import { clsx } from "./
|
|
3
|
+
import { clsx } from "./index58.js";
|
|
4
4
|
import { useClickOutside } from "./index4.js";
|
|
5
5
|
import { useEscapeKey } from "./index5.js";
|
|
6
|
-
import { SVG_STROKE_WIDTH, SVG_VIEWBOX, ICON_SIZE } from "./
|
|
7
|
-
import styles from "./
|
|
6
|
+
import { SVG_STROKE_WIDTH, SVG_VIEWBOX, ICON_SIZE } from "./index71.js";
|
|
7
|
+
import styles from "./index72.js";
|
|
8
8
|
import { Chip } from "./index19.js";
|
|
9
9
|
const FilterDropdown = ({
|
|
10
10
|
label,
|
package/dist/index30.cjs
CHANGED
|
@@ -3,15 +3,15 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const reactLeaflet = require("react-leaflet");
|
|
6
|
-
const clsx = require("./
|
|
6
|
+
const clsx = require("./index58.cjs");
|
|
7
7
|
const useThemeMode = require("./index7.cjs");
|
|
8
|
-
const constants = require("./
|
|
9
|
-
const normalizePoints = require("./
|
|
10
|
-
const buildMarkerStyle = require("./
|
|
11
|
-
const MapViewport = require("./
|
|
12
|
-
const MapLegend = require("./
|
|
13
|
-
const PointListing = require("./
|
|
14
|
-
const GeoMapCard_module = require("./
|
|
8
|
+
const constants = require("./index71.cjs");
|
|
9
|
+
const normalizePoints = require("./index81.cjs");
|
|
10
|
+
const buildMarkerStyle = require("./index82.cjs");
|
|
11
|
+
const MapViewport = require("./index83.cjs");
|
|
12
|
+
const MapLegend = require("./index84.cjs");
|
|
13
|
+
const PointListing = require("./index85.cjs");
|
|
14
|
+
const GeoMapCard_module = require("./index86.cjs");
|
|
15
15
|
const EmptyState = require("./index28.cjs");
|
|
16
16
|
const buildNotice = (info, maxPoints) => {
|
|
17
17
|
const reasons = [];
|
package/dist/index30.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useMemo, useEffect } from "react";
|
|
3
3
|
import { MapContainer, TileLayer, CircleMarker, Tooltip } from "react-leaflet";
|
|
4
|
-
import { clsx } from "./
|
|
4
|
+
import { clsx } from "./index58.js";
|
|
5
5
|
import { useThemeMode } from "./index7.js";
|
|
6
|
-
import { GEO_MAP, BASEMAP_TILES } from "./
|
|
7
|
-
import { normalizePoints } from "./
|
|
8
|
-
import { buildCategoryColors, buildLegendItems, buildWeightScale, buildMarkerStyle } from "./
|
|
9
|
-
import { MapViewport } from "./
|
|
10
|
-
import { MapLegend } from "./
|
|
11
|
-
import { PointListing } from "./
|
|
12
|
-
import styles from "./
|
|
6
|
+
import { GEO_MAP, BASEMAP_TILES } from "./index71.js";
|
|
7
|
+
import { normalizePoints } from "./index81.js";
|
|
8
|
+
import { buildCategoryColors, buildLegendItems, buildWeightScale, buildMarkerStyle } from "./index82.js";
|
|
9
|
+
import { MapViewport } from "./index83.js";
|
|
10
|
+
import { MapLegend } from "./index84.js";
|
|
11
|
+
import { PointListing } from "./index85.js";
|
|
12
|
+
import styles from "./index86.js";
|
|
13
13
|
import { EmptyState } from "./index28.js";
|
|
14
14
|
const buildNotice = (info, maxPoints) => {
|
|
15
15
|
const reasons = [];
|
package/dist/index31.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const clsx = require("./
|
|
6
|
-
const HeatmapMatrix_module = require("./
|
|
5
|
+
const clsx = require("./index58.cjs");
|
|
6
|
+
const HeatmapMatrix_module = require("./index116.cjs");
|
|
7
7
|
function activateOnKey(event, action) {
|
|
8
8
|
if (event.key === "Enter" || event.key === " ") {
|
|
9
9
|
event.preventDefault();
|
package/dist/index31.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { clsx } from "./
|
|
4
|
-
import styles from "./
|
|
3
|
+
import { clsx } from "./index58.js";
|
|
4
|
+
import styles from "./index116.js";
|
|
5
5
|
function activateOnKey(event, action) {
|
|
6
6
|
if (event.key === "Enter" || event.key === " ") {
|
|
7
7
|
event.preventDefault();
|
package/dist/index32.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const clsx = require("./
|
|
6
|
-
const Input_module = require("./
|
|
5
|
+
const clsx = require("./index58.cjs");
|
|
6
|
+
const Input_module = require("./index63.cjs");
|
|
7
7
|
const Input = react.forwardRef(
|
|
8
8
|
({ className, type = "text", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("input", { ref, type, className: clsx.clsx(Input_module.default.root, className), ...props })
|
|
9
9
|
);
|
package/dist/index32.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { clsx } from "./
|
|
4
|
-
import styles from "./
|
|
3
|
+
import { clsx } from "./index58.js";
|
|
4
|
+
import styles from "./index63.js";
|
|
5
5
|
const Input = forwardRef(
|
|
6
6
|
({ className, type = "text", ...props }, ref) => /* @__PURE__ */ jsx("input", { ref, type, className: clsx(styles.root, className), ...props })
|
|
7
7
|
);
|
package/dist/index33.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const clsx = require("./
|
|
6
|
-
const constants = require("./
|
|
7
|
-
const LiveExplorerTable_module = require("./
|
|
5
|
+
const clsx = require("./index58.cjs");
|
|
6
|
+
const constants = require("./index71.cjs");
|
|
7
|
+
const LiveExplorerTable_module = require("./index102.cjs");
|
|
8
8
|
const SKELETON_ROWS = 5;
|
|
9
9
|
const FULL_PERCENT = 100;
|
|
10
10
|
const LiveExplorerTable = ({
|
package/dist/index33.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useEffect, useCallback } from "react";
|
|
3
|
-
import { clsx } from "./
|
|
4
|
-
import { MIN_COLUMN_WIDTH } from "./
|
|
5
|
-
import styles from "./
|
|
3
|
+
import { clsx } from "./index58.js";
|
|
4
|
+
import { MIN_COLUMN_WIDTH } from "./index71.js";
|
|
5
|
+
import styles from "./index102.js";
|
|
6
6
|
const SKELETON_ROWS = 5;
|
|
7
7
|
const FULL_PERCENT = 100;
|
|
8
8
|
const LiveExplorerTable = ({
|
package/dist/index34.cjs
CHANGED
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const lucideReact = require("lucide-react");
|
|
6
|
-
const clsx = require("./
|
|
7
|
-
const constants = require("./
|
|
8
|
-
const Loading_module = require("./
|
|
9
|
-
const Modal = require("./
|
|
6
|
+
const clsx = require("./index58.cjs");
|
|
7
|
+
const constants = require("./index71.cjs");
|
|
8
|
+
const Loading_module = require("./index94.cjs");
|
|
9
|
+
const Modal = require("./index36.cjs");
|
|
10
10
|
const noop = () => {
|
|
11
11
|
};
|
|
12
12
|
const LoadingBase = react.forwardRef(
|
package/dist/index34.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { memo, forwardRef, useState, useEffect, useImperativeHandle } from "react";
|
|
3
3
|
import { Check } from "lucide-react";
|
|
4
|
-
import { clsx } from "./
|
|
5
|
-
import { ICON_SIZE } from "./
|
|
6
|
-
import styles from "./
|
|
7
|
-
import { Modal } from "./
|
|
4
|
+
import { clsx } from "./index58.js";
|
|
5
|
+
import { ICON_SIZE } from "./index71.js";
|
|
6
|
+
import styles from "./index94.js";
|
|
7
|
+
import { Modal } from "./index36.js";
|
|
8
8
|
const noop = () => {
|
|
9
9
|
};
|
|
10
10
|
const LoadingBase = forwardRef(
|
package/dist/index35.cjs
CHANGED
|
@@ -1,42 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const
|
|
5
|
-
const clsx = require("./
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
title ? /* @__PURE__ */ jsxRuntime.jsx("h2", { className: Modal_module.default.title, children: title }) : /* @__PURE__ */ jsxRuntime.jsx("span", {}),
|
|
25
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
26
|
-
"button",
|
|
27
|
-
{
|
|
28
|
-
type: "button",
|
|
29
|
-
onClick: onClose,
|
|
30
|
-
className: Modal_module.default.closeBtn,
|
|
31
|
-
"aria-label": "Close modal",
|
|
32
|
-
children: closeLabel
|
|
33
|
-
}
|
|
34
|
-
)
|
|
35
|
-
] }),
|
|
36
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx.clsx(Modal_module.default.body, bodyClassName), children }),
|
|
37
|
-
footer && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Modal_module.default.footer, children: footer })
|
|
38
|
-
] }) });
|
|
39
|
-
return reactDom.createPortal(modalContent, portalTarget ?? document.body);
|
|
40
|
-
};
|
|
41
|
-
exports.Modal = Modal;
|
|
4
|
+
const react = require("react");
|
|
5
|
+
const clsx = require("./index58.cjs");
|
|
6
|
+
const markdown = require("./index69.cjs");
|
|
7
|
+
const MarkdownContent_module = require("./index70.cjs");
|
|
8
|
+
const MarkdownContent = react.forwardRef(
|
|
9
|
+
({ markdown: markdown$1, className, ...props }, ref) => {
|
|
10
|
+
const html = react.useMemo(() => markdown.parseMarkdown(markdown$1), [markdown$1]);
|
|
11
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
ref,
|
|
15
|
+
className: clsx.clsx(MarkdownContent_module.default.root, className),
|
|
16
|
+
dangerouslySetInnerHTML: { __html: html },
|
|
17
|
+
...props
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
MarkdownContent.displayName = "MarkdownContent";
|
|
23
|
+
exports.MarkdownContent = MarkdownContent;
|
|
42
24
|
//# sourceMappingURL=index35.cjs.map
|
package/dist/index35.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index35.cjs","sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index35.cjs","sources":["../src/primitives/MarkdownContent/MarkdownContent.tsx"],"sourcesContent":["import { forwardRef, useMemo } from 'react';\nimport clsx from 'clsx';\nimport { parseMarkdown } from '../../utils/markdown';\nimport type { MarkdownContentProps } from './MarkdownContent.types';\nimport styles from './MarkdownContent.module.css';\n\nexport const MarkdownContent = forwardRef<HTMLDivElement, MarkdownContentProps>(\n ({ markdown, className, ...props }, ref) => {\n const html = useMemo(() => parseMarkdown(markdown), [markdown]);\n\n return (\n <div\n ref={ref}\n className={clsx(styles.root, className)}\n dangerouslySetInnerHTML={{ __html: html }}\n {...props}\n />\n );\n },\n);\n\nMarkdownContent.displayName = 'MarkdownContent';\n"],"names":["forwardRef","markdown","useMemo","parseMarkdown","jsx","clsx","styles"],"mappings":";;;;;;;AAMO,MAAM,kBAAkBA,MAAAA;AAAAA,EAC7B,CAAC,EAAA,UAAEC,YAAU,WAAW,GAAG,MAAA,GAAS,QAAQ;AAC1C,UAAM,OAAOC,MAAAA,QAAQ,MAAMC,SAAAA,cAAcF,UAAQ,GAAG,CAACA,UAAQ,CAAC;AAE9D,WACEG,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAWC,KAAAA,KAAKC,+BAAO,MAAM,SAAS;AAAA,QACtC,yBAAyB,EAAE,QAAQ,KAAA;AAAA,QAClC,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEA,gBAAgB,cAAc;;"}
|
package/dist/index35.js
CHANGED
|
@@ -1,42 +1,24 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import {
|
|
3
|
-
import { clsx } from "./
|
|
4
|
-
import {
|
|
5
|
-
import styles from "./
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/* @__PURE__ */ jsxs("div", { className: styles.header, children: [
|
|
22
|
-
title ? /* @__PURE__ */ jsx("h2", { className: styles.title, children: title }) : /* @__PURE__ */ jsx("span", {}),
|
|
23
|
-
/* @__PURE__ */ jsx(
|
|
24
|
-
"button",
|
|
25
|
-
{
|
|
26
|
-
type: "button",
|
|
27
|
-
onClick: onClose,
|
|
28
|
-
className: styles.closeBtn,
|
|
29
|
-
"aria-label": "Close modal",
|
|
30
|
-
children: closeLabel
|
|
31
|
-
}
|
|
32
|
-
)
|
|
33
|
-
] }),
|
|
34
|
-
/* @__PURE__ */ jsx("div", { className: clsx(styles.body, bodyClassName), children }),
|
|
35
|
-
footer && /* @__PURE__ */ jsx("div", { className: styles.footer, children: footer })
|
|
36
|
-
] }) });
|
|
37
|
-
return createPortal(modalContent, portalTarget ?? document.body);
|
|
38
|
-
};
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useMemo } from "react";
|
|
3
|
+
import { clsx } from "./index58.js";
|
|
4
|
+
import { parseMarkdown } from "./index69.js";
|
|
5
|
+
import styles from "./index70.js";
|
|
6
|
+
const MarkdownContent = forwardRef(
|
|
7
|
+
({ markdown, className, ...props }, ref) => {
|
|
8
|
+
const html = useMemo(() => parseMarkdown(markdown), [markdown]);
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
"div",
|
|
11
|
+
{
|
|
12
|
+
ref,
|
|
13
|
+
className: clsx(styles.root, className),
|
|
14
|
+
dangerouslySetInnerHTML: { __html: html },
|
|
15
|
+
...props
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
MarkdownContent.displayName = "MarkdownContent";
|
|
39
21
|
export {
|
|
40
|
-
|
|
22
|
+
MarkdownContent
|
|
41
23
|
};
|
|
42
24
|
//# sourceMappingURL=index35.js.map
|
package/dist/index35.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index35.js","sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index35.js","sources":["../src/primitives/MarkdownContent/MarkdownContent.tsx"],"sourcesContent":["import { forwardRef, useMemo } from 'react';\nimport clsx from 'clsx';\nimport { parseMarkdown } from '../../utils/markdown';\nimport type { MarkdownContentProps } from './MarkdownContent.types';\nimport styles from './MarkdownContent.module.css';\n\nexport const MarkdownContent = forwardRef<HTMLDivElement, MarkdownContentProps>(\n ({ markdown, className, ...props }, ref) => {\n const html = useMemo(() => parseMarkdown(markdown), [markdown]);\n\n return (\n <div\n ref={ref}\n className={clsx(styles.root, className)}\n dangerouslySetInnerHTML={{ __html: html }}\n {...props}\n />\n );\n },\n);\n\nMarkdownContent.displayName = 'MarkdownContent';\n"],"names":[],"mappings":";;;;;AAMO,MAAM,kBAAkB;AAAA,EAC7B,CAAC,EAAE,UAAU,WAAW,GAAG,MAAA,GAAS,QAAQ;AAC1C,UAAM,OAAO,QAAQ,MAAM,cAAc,QAAQ,GAAG,CAAC,QAAQ,CAAC;AAE9D,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,KAAK,OAAO,MAAM,SAAS;AAAA,QACtC,yBAAyB,EAAE,QAAQ,KAAA;AAAA,QAClC,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEA,gBAAgB,cAAc;"}
|