@kjun-ui/native 0.8.0 → 0.8.1
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 +9 -4
- package/dist/index.js +9 -4
- package/dist/index.web.cjs +9 -4
- package/dist/index.web.js +9 -4
- package/dist/styles.css +3 -1
- package/dist/types/packages/native/src/skeletons.d.cts +1 -1
- package/dist/types/packages/native/src/skeletons.d.ts +1 -1
- package/dist/types/shared/package-runtime/chart-skeleton.d.cts +5 -1
- package/dist/types/shared/package-runtime/chart-skeleton.d.ts +5 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -6236,8 +6236,12 @@ function chartSkeletonCount(value) {
|
|
|
6236
6236
|
function chartMatrixMuted(row, column) {
|
|
6237
6237
|
return (row + column + 2) % 3 === 0;
|
|
6238
6238
|
}
|
|
6239
|
+
var chartDonutRatio = 0.8;
|
|
6239
6240
|
function chartDonutHole(height, thickness) {
|
|
6240
|
-
return Math.max(0, height *
|
|
6241
|
+
return Math.max(0, height * chartDonutRatio - 2 * thickness);
|
|
6242
|
+
}
|
|
6243
|
+
function chartSkeletonKind(kind) {
|
|
6244
|
+
return kind === "donut" || kind === "matrix" ? kind : "frame";
|
|
6241
6245
|
}
|
|
6242
6246
|
|
|
6243
6247
|
// packages/native/src/market-skeleton.tsx
|
|
@@ -6399,7 +6403,7 @@ function KjunFormSkeleton({
|
|
|
6399
6403
|
}
|
|
6400
6404
|
var chartPart = (name) => import_react_native42.Platform.OS === "web" ? { dataSet: { kjunChartPart: name } } : {};
|
|
6401
6405
|
function KjunChartSkeleton({
|
|
6402
|
-
kind = "frame",
|
|
6406
|
+
kind: requestedKind = "frame",
|
|
6403
6407
|
height = import_tokens39.tokens.extensions.chartSkeleton.height,
|
|
6404
6408
|
loadingText = "\uCC28\uD2B8\uB97C \uBD88\uB7EC\uC624\uB294 \uC911",
|
|
6405
6409
|
skeleton = true,
|
|
@@ -6407,7 +6411,7 @@ function KjunChartSkeleton({
|
|
|
6407
6411
|
rows = 8,
|
|
6408
6412
|
columns = 14
|
|
6409
6413
|
}) {
|
|
6410
|
-
const { colors } = useKjunStyles(), reduced = useReducedMotion(), opacity = (0, import_react53.useRef)(new import_react_native42.Animated.Value(1)).current, revealed = useLoadingReveal(true, loadingDelay), [measured, setMeasured] = (0, import_react53.useState)(0), thickness = import_tokens39.tokens.extensions.chartSkeleton.donutThickness, boxHeight = typeof height === "number" ? height : measured, hole = boxHeight > 0 ? chartDonutHole(boxHeight, thickness) : void 0, rowCount = chartSkeletonCount(rows), columnCount = chartSkeletonCount(columns), status = revealed && loadingText ? "status" : void 0, hidden = { "aria-hidden": true, importantForAccessibility: "no-hide-descendants" };
|
|
6414
|
+
const kind = chartSkeletonKind(requestedKind), { colors } = useKjunStyles(), reduced = useReducedMotion(), opacity = (0, import_react53.useRef)(new import_react_native42.Animated.Value(1)).current, revealed = useLoadingReveal(true, loadingDelay), [measured, setMeasured] = (0, import_react53.useState)(0), thickness = import_tokens39.tokens.extensions.chartSkeleton.donutThickness, boxHeight = typeof height === "number" ? height : measured, hole = boxHeight > 0 ? chartDonutHole(boxHeight, thickness) : void 0, rowCount = chartSkeletonCount(rows), columnCount = chartSkeletonCount(columns), status = revealed && loadingText ? "status" : void 0, hidden = { "aria-hidden": true, importantForAccessibility: "no-hide-descendants" };
|
|
6411
6415
|
(0, import_react53.useEffect)(() => {
|
|
6412
6416
|
if (reduced || !skeleton) return;
|
|
6413
6417
|
const loop = import_react_native42.Animated.loop(
|
|
@@ -6439,7 +6443,7 @@ function KjunChartSkeleton({
|
|
|
6439
6443
|
{
|
|
6440
6444
|
...chartPart("donut"),
|
|
6441
6445
|
...hidden,
|
|
6442
|
-
style: { height:
|
|
6446
|
+
style: { height: `${chartDonutRatio * 100}%`, aspectRatio: 1, borderWidth: thickness, borderColor: colors.skeleton, borderRadius: import_tokens39.tokens.radius.radius9999 }
|
|
6443
6447
|
}
|
|
6444
6448
|
) : kind === "matrix" ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_native42.View, { ...chartPart("matrix"), ...hidden, style: { alignSelf: "stretch", flex: 1, gap: import_tokens39.tokens.dimension.value4 }, children: Array.from({ length: rowCount }, (_, row) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_native42.View, { style: { flex: 1, flexDirection: "row", gap: import_tokens39.tokens.dimension.value4 }, children: Array.from({ length: columnCount }, (_2, column) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6445
6449
|
import_react_native42.View,
|
|
@@ -6459,6 +6463,7 @@ function KjunChartSkeleton({
|
|
|
6459
6463
|
{
|
|
6460
6464
|
...chartPart("status"),
|
|
6461
6465
|
role: status,
|
|
6466
|
+
accessibilityLiveRegion: status ? "polite" : void 0,
|
|
6462
6467
|
pointerEvents: "none",
|
|
6463
6468
|
style: { position: "absolute", inset: 0, alignItems: "center", justifyContent: "center" },
|
|
6464
6469
|
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
package/dist/index.js
CHANGED
|
@@ -6263,8 +6263,12 @@ function chartSkeletonCount(value) {
|
|
|
6263
6263
|
function chartMatrixMuted(row, column) {
|
|
6264
6264
|
return (row + column + 2) % 3 === 0;
|
|
6265
6265
|
}
|
|
6266
|
+
var chartDonutRatio = 0.8;
|
|
6266
6267
|
function chartDonutHole(height, thickness) {
|
|
6267
|
-
return Math.max(0, height *
|
|
6268
|
+
return Math.max(0, height * chartDonutRatio - 2 * thickness);
|
|
6269
|
+
}
|
|
6270
|
+
function chartSkeletonKind(kind) {
|
|
6271
|
+
return kind === "donut" || kind === "matrix" ? kind : "frame";
|
|
6268
6272
|
}
|
|
6269
6273
|
|
|
6270
6274
|
// packages/native/src/market-skeleton.tsx
|
|
@@ -6426,7 +6430,7 @@ function KjunFormSkeleton({
|
|
|
6426
6430
|
}
|
|
6427
6431
|
var chartPart = (name) => Platform24.OS === "web" ? { dataSet: { kjunChartPart: name } } : {};
|
|
6428
6432
|
function KjunChartSkeleton({
|
|
6429
|
-
kind = "frame",
|
|
6433
|
+
kind: requestedKind = "frame",
|
|
6430
6434
|
height = tokens37.extensions.chartSkeleton.height,
|
|
6431
6435
|
loadingText = "\uCC28\uD2B8\uB97C \uBD88\uB7EC\uC624\uB294 \uC911",
|
|
6432
6436
|
skeleton = true,
|
|
@@ -6434,7 +6438,7 @@ function KjunChartSkeleton({
|
|
|
6434
6438
|
rows = 8,
|
|
6435
6439
|
columns = 14
|
|
6436
6440
|
}) {
|
|
6437
|
-
const { colors } = useKjunStyles(), reduced = useReducedMotion(), opacity = useRef28(new Animated17.Value(1)).current, revealed = useLoadingReveal(true, loadingDelay), [measured, setMeasured] = useState32(0), thickness = tokens37.extensions.chartSkeleton.donutThickness, boxHeight = typeof height === "number" ? height : measured, hole = boxHeight > 0 ? chartDonutHole(boxHeight, thickness) : void 0, rowCount = chartSkeletonCount(rows), columnCount = chartSkeletonCount(columns), status = revealed && loadingText ? "status" : void 0, hidden = { "aria-hidden": true, importantForAccessibility: "no-hide-descendants" };
|
|
6441
|
+
const kind = chartSkeletonKind(requestedKind), { colors } = useKjunStyles(), reduced = useReducedMotion(), opacity = useRef28(new Animated17.Value(1)).current, revealed = useLoadingReveal(true, loadingDelay), [measured, setMeasured] = useState32(0), thickness = tokens37.extensions.chartSkeleton.donutThickness, boxHeight = typeof height === "number" ? height : measured, hole = boxHeight > 0 ? chartDonutHole(boxHeight, thickness) : void 0, rowCount = chartSkeletonCount(rows), columnCount = chartSkeletonCount(columns), status = revealed && loadingText ? "status" : void 0, hidden = { "aria-hidden": true, importantForAccessibility: "no-hide-descendants" };
|
|
6438
6442
|
useEffect22(() => {
|
|
6439
6443
|
if (reduced || !skeleton) return;
|
|
6440
6444
|
const loop = Animated17.loop(
|
|
@@ -6466,7 +6470,7 @@ function KjunChartSkeleton({
|
|
|
6466
6470
|
{
|
|
6467
6471
|
...chartPart("donut"),
|
|
6468
6472
|
...hidden,
|
|
6469
|
-
style: { height:
|
|
6473
|
+
style: { height: `${chartDonutRatio * 100}%`, aspectRatio: 1, borderWidth: thickness, borderColor: colors.skeleton, borderRadius: tokens37.radius.radius9999 }
|
|
6470
6474
|
}
|
|
6471
6475
|
) : kind === "matrix" ? /* @__PURE__ */ jsx39(View32, { ...chartPart("matrix"), ...hidden, style: { alignSelf: "stretch", flex: 1, gap: tokens37.dimension.value4 }, children: Array.from({ length: rowCount }, (_, row) => /* @__PURE__ */ jsx39(View32, { style: { flex: 1, flexDirection: "row", gap: tokens37.dimension.value4 }, children: Array.from({ length: columnCount }, (_2, column) => /* @__PURE__ */ jsx39(
|
|
6472
6476
|
View32,
|
|
@@ -6486,6 +6490,7 @@ function KjunChartSkeleton({
|
|
|
6486
6490
|
{
|
|
6487
6491
|
...chartPart("status"),
|
|
6488
6492
|
role: status,
|
|
6493
|
+
accessibilityLiveRegion: status ? "polite" : void 0,
|
|
6489
6494
|
pointerEvents: "none",
|
|
6490
6495
|
style: { position: "absolute", inset: 0, alignItems: "center", justifyContent: "center" },
|
|
6491
6496
|
children: /* @__PURE__ */ jsx39(
|
package/dist/index.web.cjs
CHANGED
|
@@ -6491,8 +6491,12 @@ function chartSkeletonCount(value) {
|
|
|
6491
6491
|
function chartMatrixMuted(row, column) {
|
|
6492
6492
|
return (row + column + 2) % 3 === 0;
|
|
6493
6493
|
}
|
|
6494
|
+
var chartDonutRatio = 0.8;
|
|
6494
6495
|
function chartDonutHole(height, thickness) {
|
|
6495
|
-
return Math.max(0, height *
|
|
6496
|
+
return Math.max(0, height * chartDonutRatio - 2 * thickness);
|
|
6497
|
+
}
|
|
6498
|
+
function chartSkeletonKind(kind) {
|
|
6499
|
+
return kind === "donut" || kind === "matrix" ? kind : "frame";
|
|
6496
6500
|
}
|
|
6497
6501
|
|
|
6498
6502
|
// packages/native/src/market-skeleton.tsx
|
|
@@ -6654,7 +6658,7 @@ function KjunFormSkeleton({
|
|
|
6654
6658
|
}
|
|
6655
6659
|
var chartPart = (name) => import_react_native42.Platform.OS === "web" ? { dataSet: { kjunChartPart: name } } : {};
|
|
6656
6660
|
function KjunChartSkeleton({
|
|
6657
|
-
kind = "frame",
|
|
6661
|
+
kind: requestedKind = "frame",
|
|
6658
6662
|
height = import_tokens40.tokens.extensions.chartSkeleton.height,
|
|
6659
6663
|
loadingText = "\uCC28\uD2B8\uB97C \uBD88\uB7EC\uC624\uB294 \uC911",
|
|
6660
6664
|
skeleton = true,
|
|
@@ -6662,7 +6666,7 @@ function KjunChartSkeleton({
|
|
|
6662
6666
|
rows = 8,
|
|
6663
6667
|
columns = 14
|
|
6664
6668
|
}) {
|
|
6665
|
-
const { colors } = useKjunStyles(), reduced = useReducedMotion(), opacity = (0, import_react57.useRef)(new import_react_native42.Animated.Value(1)).current, revealed = useLoadingReveal(true, loadingDelay), [measured, setMeasured] = (0, import_react57.useState)(0), thickness = import_tokens40.tokens.extensions.chartSkeleton.donutThickness, boxHeight = typeof height === "number" ? height : measured, hole = boxHeight > 0 ? chartDonutHole(boxHeight, thickness) : void 0, rowCount = chartSkeletonCount(rows), columnCount = chartSkeletonCount(columns), status = revealed && loadingText ? "status" : void 0, hidden = { "aria-hidden": true, importantForAccessibility: "no-hide-descendants" };
|
|
6669
|
+
const kind = chartSkeletonKind(requestedKind), { colors } = useKjunStyles(), reduced = useReducedMotion(), opacity = (0, import_react57.useRef)(new import_react_native42.Animated.Value(1)).current, revealed = useLoadingReveal(true, loadingDelay), [measured, setMeasured] = (0, import_react57.useState)(0), thickness = import_tokens40.tokens.extensions.chartSkeleton.donutThickness, boxHeight = typeof height === "number" ? height : measured, hole = boxHeight > 0 ? chartDonutHole(boxHeight, thickness) : void 0, rowCount = chartSkeletonCount(rows), columnCount = chartSkeletonCount(columns), status = revealed && loadingText ? "status" : void 0, hidden = { "aria-hidden": true, importantForAccessibility: "no-hide-descendants" };
|
|
6666
6670
|
(0, import_react57.useEffect)(() => {
|
|
6667
6671
|
if (reduced || !skeleton) return;
|
|
6668
6672
|
const loop = import_react_native42.Animated.loop(
|
|
@@ -6694,7 +6698,7 @@ function KjunChartSkeleton({
|
|
|
6694
6698
|
{
|
|
6695
6699
|
...chartPart("donut"),
|
|
6696
6700
|
...hidden,
|
|
6697
|
-
style: { height:
|
|
6701
|
+
style: { height: `${chartDonutRatio * 100}%`, aspectRatio: 1, borderWidth: thickness, borderColor: colors.skeleton, borderRadius: import_tokens40.tokens.radius.radius9999 }
|
|
6698
6702
|
}
|
|
6699
6703
|
) : kind === "matrix" ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_native42.View, { ...chartPart("matrix"), ...hidden, style: { alignSelf: "stretch", flex: 1, gap: import_tokens40.tokens.dimension.value4 }, children: Array.from({ length: rowCount }, (_, row) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_native42.View, { style: { flex: 1, flexDirection: "row", gap: import_tokens40.tokens.dimension.value4 }, children: Array.from({ length: columnCount }, (_2, column) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6700
6704
|
import_react_native42.View,
|
|
@@ -6714,6 +6718,7 @@ function KjunChartSkeleton({
|
|
|
6714
6718
|
{
|
|
6715
6719
|
...chartPart("status"),
|
|
6716
6720
|
role: status,
|
|
6721
|
+
accessibilityLiveRegion: status ? "polite" : void 0,
|
|
6717
6722
|
pointerEvents: "none",
|
|
6718
6723
|
style: { position: "absolute", inset: 0, alignItems: "center", justifyContent: "center" },
|
|
6719
6724
|
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
package/dist/index.web.js
CHANGED
|
@@ -6518,8 +6518,12 @@ function chartSkeletonCount(value) {
|
|
|
6518
6518
|
function chartMatrixMuted(row, column) {
|
|
6519
6519
|
return (row + column + 2) % 3 === 0;
|
|
6520
6520
|
}
|
|
6521
|
+
var chartDonutRatio = 0.8;
|
|
6521
6522
|
function chartDonutHole(height, thickness) {
|
|
6522
|
-
return Math.max(0, height *
|
|
6523
|
+
return Math.max(0, height * chartDonutRatio - 2 * thickness);
|
|
6524
|
+
}
|
|
6525
|
+
function chartSkeletonKind(kind) {
|
|
6526
|
+
return kind === "donut" || kind === "matrix" ? kind : "frame";
|
|
6523
6527
|
}
|
|
6524
6528
|
|
|
6525
6529
|
// packages/native/src/market-skeleton.tsx
|
|
@@ -6681,7 +6685,7 @@ function KjunFormSkeleton({
|
|
|
6681
6685
|
}
|
|
6682
6686
|
var chartPart = (name) => Platform24.OS === "web" ? { dataSet: { kjunChartPart: name } } : {};
|
|
6683
6687
|
function KjunChartSkeleton({
|
|
6684
|
-
kind = "frame",
|
|
6688
|
+
kind: requestedKind = "frame",
|
|
6685
6689
|
height = tokens38.extensions.chartSkeleton.height,
|
|
6686
6690
|
loadingText = "\uCC28\uD2B8\uB97C \uBD88\uB7EC\uC624\uB294 \uC911",
|
|
6687
6691
|
skeleton = true,
|
|
@@ -6689,7 +6693,7 @@ function KjunChartSkeleton({
|
|
|
6689
6693
|
rows = 8,
|
|
6690
6694
|
columns = 14
|
|
6691
6695
|
}) {
|
|
6692
|
-
const { colors } = useKjunStyles(), reduced = useReducedMotion(), opacity = useRef30(new Animated17.Value(1)).current, revealed = useLoadingReveal(true, loadingDelay), [measured, setMeasured] = useState33(0), thickness = tokens38.extensions.chartSkeleton.donutThickness, boxHeight = typeof height === "number" ? height : measured, hole = boxHeight > 0 ? chartDonutHole(boxHeight, thickness) : void 0, rowCount = chartSkeletonCount(rows), columnCount = chartSkeletonCount(columns), status = revealed && loadingText ? "status" : void 0, hidden = { "aria-hidden": true, importantForAccessibility: "no-hide-descendants" };
|
|
6696
|
+
const kind = chartSkeletonKind(requestedKind), { colors } = useKjunStyles(), reduced = useReducedMotion(), opacity = useRef30(new Animated17.Value(1)).current, revealed = useLoadingReveal(true, loadingDelay), [measured, setMeasured] = useState33(0), thickness = tokens38.extensions.chartSkeleton.donutThickness, boxHeight = typeof height === "number" ? height : measured, hole = boxHeight > 0 ? chartDonutHole(boxHeight, thickness) : void 0, rowCount = chartSkeletonCount(rows), columnCount = chartSkeletonCount(columns), status = revealed && loadingText ? "status" : void 0, hidden = { "aria-hidden": true, importantForAccessibility: "no-hide-descendants" };
|
|
6693
6697
|
useEffect22(() => {
|
|
6694
6698
|
if (reduced || !skeleton) return;
|
|
6695
6699
|
const loop = Animated17.loop(
|
|
@@ -6721,7 +6725,7 @@ function KjunChartSkeleton({
|
|
|
6721
6725
|
{
|
|
6722
6726
|
...chartPart("donut"),
|
|
6723
6727
|
...hidden,
|
|
6724
|
-
style: { height:
|
|
6728
|
+
style: { height: `${chartDonutRatio * 100}%`, aspectRatio: 1, borderWidth: thickness, borderColor: colors.skeleton, borderRadius: tokens38.radius.radius9999 }
|
|
6725
6729
|
}
|
|
6726
6730
|
) : kind === "matrix" ? /* @__PURE__ */ jsx39(View33, { ...chartPart("matrix"), ...hidden, style: { alignSelf: "stretch", flex: 1, gap: tokens38.dimension.value4 }, children: Array.from({ length: rowCount }, (_, row) => /* @__PURE__ */ jsx39(View33, { style: { flex: 1, flexDirection: "row", gap: tokens38.dimension.value4 }, children: Array.from({ length: columnCount }, (_2, column) => /* @__PURE__ */ jsx39(
|
|
6727
6731
|
View33,
|
|
@@ -6741,6 +6745,7 @@ function KjunChartSkeleton({
|
|
|
6741
6745
|
{
|
|
6742
6746
|
...chartPart("status"),
|
|
6743
6747
|
role: status,
|
|
6748
|
+
accessibilityLiveRegion: status ? "polite" : void 0,
|
|
6744
6749
|
pointerEvents: "none",
|
|
6745
6750
|
style: { position: "absolute", inset: 0, alignItems: "center", justifyContent: "center" },
|
|
6746
6751
|
children: /* @__PURE__ */ jsx39(
|
package/dist/styles.css
CHANGED
|
@@ -3100,6 +3100,8 @@
|
|
|
3100
3100
|
height: 100%;
|
|
3101
3101
|
}
|
|
3102
3102
|
.kjun-chart-skeleton-donut {
|
|
3103
|
+
/* The hole is 80% − 2 × thickness only in border-box, whatever the app's reset. */
|
|
3104
|
+
box-sizing: border-box;
|
|
3103
3105
|
height: 80%;
|
|
3104
3106
|
aspect-ratio: 1;
|
|
3105
3107
|
border: var(--_kjun-extension-chart-skeleton-donut-thickness) solid var(--_kjun-color-skeleton);
|
|
@@ -3135,7 +3137,7 @@
|
|
|
3135
3137
|
|
|
3136
3138
|
.kjun-chart-skeleton-status { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:var(--_kjun-extension-skeleton-gap); pointer-events:none; }
|
|
3137
3139
|
.kjun-chart-skeleton-status>span { max-width:90%; padding:var(--_kjun-geometry-dimension-value4) var(--_kjun-geometry-dimension-value12); border-radius:var(--_kjun-geometry-radius-radius6); font-size:var(--_kjun-type-body-size); text-align:center; overflow-wrap:anywhere; background:var(--_kjun-color-surface); color:var(--_kjun-color-text-secondary); line-height: var(--_kjun-type-body-line); font-weight: var(--_kjun-type-body-weight); letter-spacing: var(--_kjun-type-body-tracking); border:var(--_kjun-border-default-width) solid var(--_kjun-color-chart-grid); }
|
|
3138
|
-
.kjun-chart-skeleton[data-kjun-chart-kind="donut"] .kjun-chart-skeleton-status>span { border:0; max-width:calc(80cqh - 2 * var(--_kjun-extension-chart-skeleton-donut-thickness)); }
|
|
3140
|
+
.kjun-chart-skeleton[data-kjun-chart-kind="donut"] .kjun-chart-skeleton-status>span { box-sizing:border-box; border:0; max-width:calc(80cqh - 2 * var(--_kjun-extension-chart-skeleton-donut-thickness)); }
|
|
3139
3141
|
|
|
3140
3142
|
.kjun-data-status > .kjun-spinner { flex-shrink: 0; }
|
|
3141
3143
|
.kjun-data-status > span:last-child { min-width: 0; overflow-wrap: anywhere; }
|
|
@@ -28,6 +28,6 @@ export interface KjunChartSkeletonProps {
|
|
|
28
28
|
rows?: number;
|
|
29
29
|
columns?: number;
|
|
30
30
|
}
|
|
31
|
-
export declare function KjunChartSkeleton({ kind, height, loadingText, skeleton, loadingDelay, rows, columns, }: KjunChartSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare function KjunChartSkeleton({ kind: requestedKind, height, loadingText, skeleton, loadingDelay, rows, columns, }: KjunChartSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
export { KjunMarketTableSkeleton } from "./market-skeleton.cjs";
|
|
33
33
|
export type { KjunMarketTableSkeletonProps } from "./market-skeleton.cjs";
|
|
@@ -28,6 +28,6 @@ export interface KjunChartSkeletonProps {
|
|
|
28
28
|
rows?: number;
|
|
29
29
|
columns?: number;
|
|
30
30
|
}
|
|
31
|
-
export declare function KjunChartSkeleton({ kind, height, loadingText, skeleton, loadingDelay, rows, columns, }: KjunChartSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare function KjunChartSkeleton({ kind: requestedKind, height, loadingText, skeleton, loadingDelay, rows, columns, }: KjunChartSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
export { KjunMarketTableSkeleton } from "./market-skeleton.js";
|
|
33
33
|
export type { KjunMarketTableSkeletonProps } from "./market-skeleton.js";
|
|
@@ -8,5 +8,9 @@ export declare const chartSkeletonMaxCount = 100;
|
|
|
8
8
|
export declare function chartSkeletonCount(value: number): number;
|
|
9
9
|
/** Every third diagonal cell is drawn at the pending opacity so the matrix reads as a heatmap. */
|
|
10
10
|
export declare function chartMatrixMuted(row: number, column: number): boolean;
|
|
11
|
-
/**
|
|
11
|
+
/** Donut ring diameter as a share of the skeleton height; data-state.css repeats it as 80% and 80cqh. */
|
|
12
|
+
export declare const chartDonutRatio = 0.8;
|
|
13
|
+
/** Inner diameter of the donut ring. */
|
|
12
14
|
export declare function chartDonutHole(height: number, thickness: number): number;
|
|
15
|
+
/** Kinds removed in 0.8.0 (line, bar, candle, grid) or any other value draw, and are named, frame. */
|
|
16
|
+
export declare function chartSkeletonKind(kind: unknown): KjunChartSkeletonKind;
|
|
@@ -8,5 +8,9 @@ export declare const chartSkeletonMaxCount = 100;
|
|
|
8
8
|
export declare function chartSkeletonCount(value: number): number;
|
|
9
9
|
/** Every third diagonal cell is drawn at the pending opacity so the matrix reads as a heatmap. */
|
|
10
10
|
export declare function chartMatrixMuted(row: number, column: number): boolean;
|
|
11
|
-
/**
|
|
11
|
+
/** Donut ring diameter as a share of the skeleton height; data-state.css repeats it as 80% and 80cqh. */
|
|
12
|
+
export declare const chartDonutRatio = 0.8;
|
|
13
|
+
/** Inner diameter of the donut ring. */
|
|
12
14
|
export declare function chartDonutHole(height: number, thickness: number): number;
|
|
15
|
+
/** Kinds removed in 0.8.0 (line, bar, candle, grid) or any other value draw, and are named, frame. */
|
|
16
|
+
export declare function chartSkeletonKind(kind: unknown): KjunChartSkeletonKind;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kjun-ui/native",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://ui.kjun.dev",
|
|
6
6
|
"repository": {
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"./package.json": "./package.json"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@kjun-ui/tokens": "0.8.
|
|
51
|
-
"@kjun-ui/icons": "0.8.
|
|
50
|
+
"@kjun-ui/tokens": "0.8.1",
|
|
51
|
+
"@kjun-ui/icons": "0.8.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": "^19.2.3",
|