@lmb-it/kitsconcerto-native 0.1.245 → 0.1.246
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ActionCard/index.cjs +10 -0
- package/components/ActionCard/index.cjs.map +1 -0
- package/components/ActionCard/index.js +6 -0
- package/components/ActionCard/index.js.map +1 -0
- package/components/BarChart/index.cjs +10 -0
- package/components/BarChart/index.cjs.map +1 -0
- package/components/BarChart/index.js +6 -0
- package/components/BarChart/index.js.map +1 -0
- package/components/Delta/index.cjs +10 -0
- package/components/Delta/index.cjs.map +1 -0
- package/components/Delta/index.js +6 -0
- package/components/Delta/index.js.map +1 -0
- package/components/Donut/index.cjs +10 -0
- package/components/Donut/index.cjs.map +1 -0
- package/components/Donut/index.js +6 -0
- package/components/Donut/index.js.map +1 -0
- package/components/Gauge/index.cjs +10 -0
- package/components/Gauge/index.cjs.map +1 -0
- package/components/Gauge/index.js +6 -0
- package/components/Gauge/index.js.map +1 -0
- package/components/GroupedBars/index.cjs +10 -0
- package/components/GroupedBars/index.cjs.map +1 -0
- package/components/GroupedBars/index.js +6 -0
- package/components/GroupedBars/index.js.map +1 -0
- package/components/Legend/index.cjs +10 -0
- package/components/Legend/index.cjs.map +1 -0
- package/components/Legend/index.js +6 -0
- package/components/Legend/index.js.map +1 -0
- package/components/LineChart/index.cjs +10 -0
- package/components/LineChart/index.cjs.map +1 -0
- package/components/LineChart/index.js +6 -0
- package/components/LineChart/index.js.map +1 -0
- package/components/MapTile/index.cjs +10 -0
- package/components/MapTile/index.cjs.map +1 -0
- package/components/MapTile/index.js +6 -0
- package/components/MapTile/index.js.map +1 -0
- package/components/MetricCard/index.cjs +10 -0
- package/components/MetricCard/index.cjs.map +1 -0
- package/components/MetricCard/index.js +6 -0
- package/components/MetricCard/index.js.map +1 -0
- package/components/Radar/index.cjs +10 -0
- package/components/Radar/index.cjs.map +1 -0
- package/components/Radar/index.js +6 -0
- package/components/Radar/index.js.map +1 -0
- package/components/RankedList/index.cjs +10 -0
- package/components/RankedList/index.cjs.map +1 -0
- package/components/RankedList/index.js +6 -0
- package/components/RankedList/index.js.map +1 -0
- package/components/Rise/index.cjs +12 -0
- package/components/Rise/index.cjs.map +1 -0
- package/components/Rise/index.js +8 -0
- package/components/Rise/index.js.map +1 -0
- package/components/Sparkline/index.cjs +10 -0
- package/components/Sparkline/index.cjs.map +1 -0
- package/components/Sparkline/index.js +6 -0
- package/components/Sparkline/index.js.map +1 -0
- package/components/StackedBars/index.cjs +10 -0
- package/components/StackedBars/index.cjs.map +1 -0
- package/components/StackedBars/index.js +6 -0
- package/components/StackedBars/index.js.map +1 -0
- package/components/StatusCard/index.cjs +10 -0
- package/components/StatusCard/index.cjs.map +1 -0
- package/components/StatusCard/index.js +6 -0
- package/components/StatusCard/index.js.map +1 -0
- package/components/Tip/index.cjs +10 -0
- package/components/Tip/index.cjs.map +1 -0
- package/components/Tip/index.js +6 -0
- package/components/Tip/index.js.map +1 -0
- package/components/WidgetPanel/index.cjs +10 -0
- package/components/WidgetPanel/index.cjs.map +1 -0
- package/components/WidgetPanel/index.js +6 -0
- package/components/WidgetPanel/index.js.map +1 -0
- package/hooks/useCountUp.cjs +49 -0
- package/hooks/useCountUp.cjs.map +1 -0
- package/hooks/useCountUp.js +44 -0
- package/hooks/useCountUp.js.map +1 -0
- package/hooks/useEnter.cjs +25 -0
- package/hooks/useEnter.cjs.map +1 -0
- package/hooks/useEnter.js +20 -0
- package/hooks/useEnter.js.map +1 -0
- package/hooks/useMeasuredWidth.cjs +14 -0
- package/hooks/useMeasuredWidth.cjs.map +1 -0
- package/hooks/useMeasuredWidth.js +9 -0
- package/hooks/useMeasuredWidth.js.map +1 -0
- package/hooks/useReducedMotion/context.cjs +10 -0
- package/hooks/useReducedMotion/context.cjs.map +1 -0
- package/hooks/useReducedMotion/context.js +7 -0
- package/hooks/useReducedMotion/context.js.map +1 -0
- package/hooks/useReducedMotion/index.cjs +13 -0
- package/hooks/useReducedMotion/index.cjs.map +1 -0
- package/hooks/useReducedMotion/index.js +11 -0
- package/hooks/useReducedMotion/index.js.map +1 -0
- package/index.cjs +200 -140
- package/index.cjs.map +1 -1
- package/index.d.ts +597 -2
- package/index.js +30 -0
- package/index.js.map +1 -1
- package/motion/index.cjs +53 -0
- package/motion/index.cjs.map +1 -0
- package/motion/index.js +51 -0
- package/motion/index.js.map +1 -0
- package/package.json +1 -1
- package/primitives/AccentEdge/index.cjs +10 -0
- package/primitives/AccentEdge/index.cjs.map +1 -0
- package/primitives/AccentEdge/index.js +6 -0
- package/primitives/AccentEdge/index.js.map +1 -0
- package/primitives/DotGrid/index.cjs +10 -0
- package/primitives/DotGrid/index.cjs.map +1 -0
- package/primitives/DotGrid/index.js +6 -0
- package/primitives/DotGrid/index.js.map +1 -0
- package/primitives/Striped/index.cjs +10 -0
- package/primitives/Striped/index.cjs.map +1 -0
- package/primitives/Striped/index.js +6 -0
- package/primitives/Striped/index.js.map +1 -0
- package/primitives/Wash/index.cjs +10 -0
- package/primitives/Wash/index.cjs.map +1 -0
- package/primitives/Wash/index.js +6 -0
- package/primitives/Wash/index.js.map +1 -0
- package/utils/Color.cjs +8 -0
- package/utils/Color.cjs.map +1 -0
- package/utils/Color.js +6 -0
- package/utils/Color.js.map +1 -0
- package/utils/Number.cjs +8 -0
- package/utils/Number.cjs.map +1 -0
- package/utils/Number.js +6 -0
- package/utils/Number.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/ActionCard/index.native.tsx"],"sourcesContent":["import type {IActionCardProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction ActionCard(_props: IActionCardProps) {\n return null;\n}\n\nexport default ActionCard;\n"],"names":[],"mappings":";;;;AAGA,SAAS,WAAW,MAAA,EAA0B;AAC1C,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/ActionCard/index.native.tsx"],"sourcesContent":["import type {IActionCardProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction ActionCard(_props: IActionCardProps) {\n return null;\n}\n\nexport default ActionCard;\n"],"names":[],"mappings":"AAGA,SAAS,WAAW,MAAA,EAA0B;AAC1C,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/BarChart/index.native.tsx"],"sourcesContent":["import type {IKitsBarChartProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction KitsBarChart(_props: IKitsBarChartProps) {\n return null;\n}\n\nexport default KitsBarChart;\n"],"names":[],"mappings":";;;;AAGA,SAAS,aAAa,MAAA,EAA4B;AAC9C,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/BarChart/index.native.tsx"],"sourcesContent":["import type {IKitsBarChartProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction KitsBarChart(_props: IKitsBarChartProps) {\n return null;\n}\n\nexport default KitsBarChart;\n"],"names":[],"mappings":"AAGA,SAAS,aAAa,MAAA,EAA4B;AAC9C,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/Delta/index.native.tsx"],"sourcesContent":["import type {IDeltaProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction Delta(_props: IDeltaProps) {\n return null;\n}\n\nexport default Delta;\n"],"names":[],"mappings":";;;;AAGA,SAAS,MAAM,MAAA,EAAqB;AAChC,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Delta/index.native.tsx"],"sourcesContent":["import type {IDeltaProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction Delta(_props: IDeltaProps) {\n return null;\n}\n\nexport default Delta;\n"],"names":[],"mappings":"AAGA,SAAS,MAAM,MAAA,EAAqB;AAChC,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/Donut/index.native.tsx"],"sourcesContent":["import type {IDonutProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction Donut(_props: IDonutProps) {\n return null;\n}\n\nexport default Donut;\n"],"names":[],"mappings":";;;;AAGA,SAAS,MAAM,MAAA,EAAqB;AAChC,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Donut/index.native.tsx"],"sourcesContent":["import type {IDonutProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction Donut(_props: IDonutProps) {\n return null;\n}\n\nexport default Donut;\n"],"names":[],"mappings":"AAGA,SAAS,MAAM,MAAA,EAAqB;AAChC,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/Gauge/index.native.tsx"],"sourcesContent":["import type {IGaugeProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction Gauge(_props: IGaugeProps) {\n return null;\n}\n\nexport default Gauge;\n"],"names":[],"mappings":";;;;AAGA,SAAS,MAAM,MAAA,EAAqB;AAChC,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Gauge/index.native.tsx"],"sourcesContent":["import type {IGaugeProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction Gauge(_props: IGaugeProps) {\n return null;\n}\n\nexport default Gauge;\n"],"names":[],"mappings":"AAGA,SAAS,MAAM,MAAA,EAAqB;AAChC,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/GroupedBars/index.native.tsx"],"sourcesContent":["import type {IGroupedBarsProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction GroupedBars(_props: IGroupedBarsProps) {\n return null;\n}\n\nexport default GroupedBars;\n"],"names":[],"mappings":";;;;AAGA,SAAS,YAAY,MAAA,EAA2B;AAC5C,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/GroupedBars/index.native.tsx"],"sourcesContent":["import type {IGroupedBarsProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction GroupedBars(_props: IGroupedBarsProps) {\n return null;\n}\n\nexport default GroupedBars;\n"],"names":[],"mappings":"AAGA,SAAS,YAAY,MAAA,EAA2B;AAC5C,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/Legend/index.native.tsx"],"sourcesContent":["import type {ILegendProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction Legend(_props: ILegendProps) {\n return null;\n}\n\nexport default Legend;\n"],"names":[],"mappings":";;;;AAGA,SAAS,OAAO,MAAA,EAAsB;AAClC,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Legend/index.native.tsx"],"sourcesContent":["import type {ILegendProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction Legend(_props: ILegendProps) {\n return null;\n}\n\nexport default Legend;\n"],"names":[],"mappings":"AAGA,SAAS,OAAO,MAAA,EAAsB;AAClC,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/LineChart/index.native.tsx"],"sourcesContent":["import type {IKitsLineChartProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction KitsLineChart(_props: IKitsLineChartProps) {\n return null;\n}\n\nexport default KitsLineChart;\n"],"names":[],"mappings":";;;;AAGA,SAAS,cAAc,MAAA,EAA6B;AAChD,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/LineChart/index.native.tsx"],"sourcesContent":["import type {IKitsLineChartProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction KitsLineChart(_props: IKitsLineChartProps) {\n return null;\n}\n\nexport default KitsLineChart;\n"],"names":[],"mappings":"AAGA,SAAS,cAAc,MAAA,EAA6B;AAChD,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/MapTile/index.native.tsx"],"sourcesContent":["import type {IMapTileProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction MapTile(_props: IMapTileProps) {\n return null;\n}\n\nexport default MapTile;\n"],"names":[],"mappings":";;;;AAGA,SAAS,QAAQ,MAAA,EAAuB;AACpC,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/MapTile/index.native.tsx"],"sourcesContent":["import type {IMapTileProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction MapTile(_props: IMapTileProps) {\n return null;\n}\n\nexport default MapTile;\n"],"names":[],"mappings":"AAGA,SAAS,QAAQ,MAAA,EAAuB;AACpC,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/MetricCard/index.native.tsx"],"sourcesContent":["import type {IMetricCardProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction MetricCard(_props: IMetricCardProps) {\n return null;\n}\n\nexport default MetricCard;\n"],"names":[],"mappings":";;;;AAGA,SAAS,WAAW,MAAA,EAA0B;AAC1C,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/MetricCard/index.native.tsx"],"sourcesContent":["import type {IMetricCardProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction MetricCard(_props: IMetricCardProps) {\n return null;\n}\n\nexport default MetricCard;\n"],"names":[],"mappings":"AAGA,SAAS,WAAW,MAAA,EAA0B;AAC1C,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/Radar/index.native.tsx"],"sourcesContent":["import type {IRadarProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction KitsRadar(_props: IRadarProps) {\n return null;\n}\n\nexport default KitsRadar;\n"],"names":[],"mappings":";;;;AAGA,SAAS,UAAU,MAAA,EAAqB;AACpC,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Radar/index.native.tsx"],"sourcesContent":["import type {IRadarProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction KitsRadar(_props: IRadarProps) {\n return null;\n}\n\nexport default KitsRadar;\n"],"names":[],"mappings":"AAGA,SAAS,UAAU,MAAA,EAAqB;AACpC,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/RankedList/index.native.tsx"],"sourcesContent":["import type {IRankedListProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction RankedList(_props: IRankedListProps) {\n return null;\n}\n\nexport default RankedList;\n"],"names":[],"mappings":";;;;AAGA,SAAS,WAAW,MAAA,EAA0B;AAC1C,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/RankedList/index.native.tsx"],"sourcesContent":["import type {IRankedListProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction RankedList(_props: IRankedListProps) {\n return null;\n}\n\nexport default RankedList;\n"],"names":[],"mappings":"AAGA,SAAS,WAAW,MAAA,EAA0B;AAC1C,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
function Rise({ children }) {
|
|
8
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
exports.default = Rise;
|
|
12
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/Rise/index.native.tsx"],"sourcesContent":["import React from \"react\";\nimport type {IRiseProps} from \"@lmb-it/kitsconcerto-types\";\n\n/**\n * Native stub — the widget family is web-only for now. Renders children\n * unanimated (a null stub would swallow wrapped card content).\n */\nfunction Rise({children}: IRiseProps) {\n return <>{children}</>;\n}\n\nexport default Rise;\n"],"names":[],"mappings":";;;;;;AAOA,SAAS,IAAA,CAAK,EAAC,QAAA,EAAQ,EAAe;AAClC,EAAA,6DAAU,QAAA,EAAS,CAAA;AACvB;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Rise/index.native.tsx"],"sourcesContent":["import React from \"react\";\nimport type {IRiseProps} from \"@lmb-it/kitsconcerto-types\";\n\n/**\n * Native stub — the widget family is web-only for now. Renders children\n * unanimated (a null stub would swallow wrapped card content).\n */\nfunction Rise({children}: IRiseProps) {\n return <>{children}</>;\n}\n\nexport default Rise;\n"],"names":[],"mappings":";;AAOA,SAAS,IAAA,CAAK,EAAC,QAAA,EAAQ,EAAe;AAClC,EAAA,uCAAU,QAAA,EAAS,CAAA;AACvB;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/Sparkline/index.native.tsx"],"sourcesContent":["import type {ISparklineProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction Sparkline(_props: ISparklineProps) {\n return null;\n}\n\nexport default Sparkline;\n"],"names":[],"mappings":";;;;AAGA,SAAS,UAAU,MAAA,EAAyB;AACxC,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Sparkline/index.native.tsx"],"sourcesContent":["import type {ISparklineProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction Sparkline(_props: ISparklineProps) {\n return null;\n}\n\nexport default Sparkline;\n"],"names":[],"mappings":"AAGA,SAAS,UAAU,MAAA,EAAyB;AACxC,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/StackedBars/index.native.tsx"],"sourcesContent":["import type {IStackedBarsProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction StackedBars(_props: IStackedBarsProps) {\n return null;\n}\n\nexport default StackedBars;\n"],"names":[],"mappings":";;;;AAGA,SAAS,YAAY,MAAA,EAA2B;AAC5C,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/StackedBars/index.native.tsx"],"sourcesContent":["import type {IStackedBarsProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction StackedBars(_props: IStackedBarsProps) {\n return null;\n}\n\nexport default StackedBars;\n"],"names":[],"mappings":"AAGA,SAAS,YAAY,MAAA,EAA2B;AAC5C,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/StatusCard/index.native.tsx"],"sourcesContent":["import type {IStatusCardProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction StatusCard(_props: IStatusCardProps) {\n return null;\n}\n\nexport default StatusCard;\n"],"names":[],"mappings":";;;;AAGA,SAAS,WAAW,MAAA,EAA0B;AAC1C,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/StatusCard/index.native.tsx"],"sourcesContent":["import type {IStatusCardProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction StatusCard(_props: IStatusCardProps) {\n return null;\n}\n\nexport default StatusCard;\n"],"names":[],"mappings":"AAGA,SAAS,WAAW,MAAA,EAA0B;AAC1C,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/Tip/index.native.tsx"],"sourcesContent":["import type {ITipProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction Tip(_props: ITipProps) {\n return null;\n}\n\nexport default Tip;\n"],"names":[],"mappings":";;;;AAGA,SAAS,IAAI,MAAA,EAAmB;AAC5B,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Tip/index.native.tsx"],"sourcesContent":["import type {ITipProps} from \"@lmb-it/kitsconcerto-types\";\n\n/** Native stub — the widget family is web-only (matches the Widgets.* precedent). */\nfunction Tip(_props: ITipProps) {\n return null;\n}\n\nexport default Tip;\n"],"names":[],"mappings":"AAGA,SAAS,IAAI,MAAA,EAAmB;AAC5B,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/WidgetPanel/index.native.tsx"],"sourcesContent":["import type {IWidgetPanelProps} from \"@lmb-it/kitsconcerto-types\";\n\n/**\n * Native stub — the widget family is web-only (matches the Widgets.*\n * precedent). NOTE: this swallows `children` on native by design; panel\n * content is itself web-only chart/widget material.\n */\nfunction WidgetPanel(_props: IWidgetPanelProps) {\n return null;\n}\n\nexport default WidgetPanel;\n"],"names":[],"mappings":";;;;AAOA,SAAS,YAAY,MAAA,EAA2B;AAC5C,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/WidgetPanel/index.native.tsx"],"sourcesContent":["import type {IWidgetPanelProps} from \"@lmb-it/kitsconcerto-types\";\n\n/**\n * Native stub — the widget family is web-only (matches the Widgets.*\n * precedent). NOTE: this swallows `children` on native by design; panel\n * content is itself web-only chart/widget material.\n */\nfunction WidgetPanel(_props: IWidgetPanelProps) {\n return null;\n}\n\nexport default WidgetPanel;\n"],"names":[],"mappings":"AAOA,SAAS,YAAY,MAAA,EAA2B;AAC5C,EAAA,OAAO,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var index_native = require('./useReducedMotion/index.cjs');
|
|
7
|
+
var index = require('../motion/index.cjs');
|
|
8
|
+
|
|
9
|
+
function useCountUp(target, {
|
|
10
|
+
duration = index.kitsMotion.duration.countUp,
|
|
11
|
+
delay = 0,
|
|
12
|
+
run = true,
|
|
13
|
+
decimals = 0
|
|
14
|
+
} = {}) {
|
|
15
|
+
const reduced = index_native.useReducedMotion();
|
|
16
|
+
const [value, setValue] = React.useState(reduced ? target : 0);
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
if (reduced) {
|
|
19
|
+
setValue(target);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (!run) {
|
|
23
|
+
setValue(0);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
let raf = 0;
|
|
27
|
+
let start = null;
|
|
28
|
+
const step = (now) => {
|
|
29
|
+
if (start === null) start = now;
|
|
30
|
+
const progress = Math.min(1, (now - start) / duration);
|
|
31
|
+
const eased = 1 - Math.pow(1 - progress, 3);
|
|
32
|
+
setValue(target * eased);
|
|
33
|
+
if (progress < 1) raf = requestAnimationFrame(step);
|
|
34
|
+
else setValue(target);
|
|
35
|
+
};
|
|
36
|
+
const timer = setTimeout(() => {
|
|
37
|
+
raf = requestAnimationFrame(step);
|
|
38
|
+
}, delay);
|
|
39
|
+
return () => {
|
|
40
|
+
clearTimeout(timer);
|
|
41
|
+
cancelAnimationFrame(raf);
|
|
42
|
+
};
|
|
43
|
+
}, [target, run, duration, delay, reduced]);
|
|
44
|
+
return decimals > 0 ? value.toFixed(decimals) : Math.round(value);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
exports.default = useCountUp;
|
|
48
|
+
exports.useCountUp = useCountUp;
|
|
49
|
+
//# sourceMappingURL=useCountUp.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCountUp.cjs","sources":["../../../src/hooks/useCountUp.ts"],"sourcesContent":["import {useEffect, useState} from \"react\";\nimport {useReducedMotion} from \"./useReducedMotion\";\nimport {kitsMotion} from \"../motion\";\n\nexport interface IUseCountUpOptions {\n /** Animation duration in ms. @default kitsMotion.duration.countUp */\n duration?: number;\n /** Delay before the count starts, in ms. @default 0 */\n delay?: number;\n /** Gate: the count runs only while true (pair with `useEnter`). While false the value stays at 0. @default true */\n run?: boolean;\n /** Decimal places; when > 0 the hook returns a fixed-point string. @default 0 */\n decimals?: number;\n}\n\n/**\n * Animates a number from 0 to `target` (ease-out cubic, rAF), landing\n * exactly on `target`. With reduced motion the target is returned\n * immediately — no animation. Formatting and locale are the caller's\n * concern (see `formatNumber`).\n */\nexport function useCountUp(\n target: number,\n {\n duration = kitsMotion.duration.countUp,\n delay = 0,\n run = true,\n decimals = 0,\n }: IUseCountUpOptions = {},\n): number | string {\n const reduced = useReducedMotion();\n const [value, setValue] = useState(reduced ? target : 0);\n\n useEffect(() => {\n if (reduced) {\n setValue(target);\n return;\n }\n if (!run) {\n setValue(0);\n return;\n }\n let raf = 0;\n let start: number | null = null;\n const step = (now: number) => {\n if (start === null) start = now;\n const progress = Math.min(1, (now - start) / duration);\n const eased = 1 - Math.pow(1 - progress, 3);\n setValue(target * eased);\n if (progress < 1) raf = requestAnimationFrame(step);\n else setValue(target);\n };\n const timer = setTimeout(() => {\n raf = requestAnimationFrame(step);\n }, delay);\n return () => {\n clearTimeout(timer);\n cancelAnimationFrame(raf);\n };\n }, [target, run, duration, delay, reduced]);\n\n return decimals > 0 ? value.toFixed(decimals) : Math.round(value);\n}\n\nexport default useCountUp;\n"],"names":["kitsMotion","useReducedMotion","useState","useEffect"],"mappings":";;;;;;;;AAqBO,SAAS,WACZ,MAAA,EACA;AAAA,EACI,QAAA,GAAWA,iBAAW,QAAA,CAAS,OAAA;AAAA,EAC/B,KAAA,GAAQ,CAAA;AAAA,EACR,GAAA,GAAM,IAAA;AAAA,EACN,QAAA,GAAW;AACf,CAAA,GAAwB,EAAC,EACV;AACf,EAAA,MAAM,UAAUC,6BAAA,EAAiB;AACjC,EAAA,MAAM,CAAC,KAAA,EAAO,QAAQ,IAAIC,cAAA,CAAS,OAAA,GAAU,SAAS,CAAC,CAAA;AAEvD,EAAAC,eAAA,CAAU,MAAM;AACZ,IAAA,IAAI,OAAA,EAAS;AACT,MAAA,QAAA,CAAS,MAAM,CAAA;AACf,MAAA;AAAA,IACJ;AACA,IAAA,IAAI,CAAC,GAAA,EAAK;AACN,MAAA,QAAA,CAAS,CAAC,CAAA;AACV,MAAA;AAAA,IACJ;AACA,IAAA,IAAI,GAAA,GAAM,CAAA;AACV,IAAA,IAAI,KAAA,GAAuB,IAAA;AAC3B,IAAA,MAAM,IAAA,GAAO,CAAC,GAAA,KAAgB;AAC1B,MAAA,IAAI,KAAA,KAAU,MAAM,KAAA,GAAQ,GAAA;AAC5B,MAAA,MAAM,WAAW,IAAA,CAAK,GAAA,CAAI,CAAA,EAAA,CAAI,GAAA,GAAM,SAAS,QAAQ,CAAA;AACrD,MAAA,MAAM,QAAQ,CAAA,GAAI,IAAA,CAAK,GAAA,CAAI,CAAA,GAAI,UAAU,CAAC,CAAA;AAC1C,MAAA,QAAA,CAAS,SAAS,KAAK,CAAA;AACvB,MAAA,IAAI,QAAA,GAAW,CAAA,EAAG,GAAA,GAAM,qBAAA,CAAsB,IAAI,CAAA;AAAA,oBACpC,MAAM,CAAA;AAAA,IACxB,CAAA;AACA,IAAA,MAAM,KAAA,GAAQ,WAAW,MAAM;AAC3B,MAAA,GAAA,GAAM,sBAAsB,IAAI,CAAA;AAAA,IACpC,GAAG,KAAK,CAAA;AACR,IAAA,OAAO,MAAM;AACT,MAAA,YAAA,CAAa,KAAK,CAAA;AAClB,MAAA,oBAAA,CAAqB,GAAG,CAAA;AAAA,IAC5B,CAAA;AAAA,EACJ,GAAG,CAAC,MAAA,EAAQ,KAAK,QAAA,EAAU,KAAA,EAAO,OAAO,CAAC,CAAA;AAE1C,EAAA,OAAO,QAAA,GAAW,IAAI,KAAA,CAAM,OAAA,CAAQ,QAAQ,CAAA,GAAI,IAAA,CAAK,MAAM,KAAK,CAAA;AACpE;;;;;"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
|
+
import { useReducedMotion } from './useReducedMotion/index.js';
|
|
3
|
+
import { kitsMotion } from '../motion/index.js';
|
|
4
|
+
|
|
5
|
+
function useCountUp(target, {
|
|
6
|
+
duration = kitsMotion.duration.countUp,
|
|
7
|
+
delay = 0,
|
|
8
|
+
run = true,
|
|
9
|
+
decimals = 0
|
|
10
|
+
} = {}) {
|
|
11
|
+
const reduced = useReducedMotion();
|
|
12
|
+
const [value, setValue] = useState(reduced ? target : 0);
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
if (reduced) {
|
|
15
|
+
setValue(target);
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (!run) {
|
|
19
|
+
setValue(0);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
let raf = 0;
|
|
23
|
+
let start = null;
|
|
24
|
+
const step = (now) => {
|
|
25
|
+
if (start === null) start = now;
|
|
26
|
+
const progress = Math.min(1, (now - start) / duration);
|
|
27
|
+
const eased = 1 - Math.pow(1 - progress, 3);
|
|
28
|
+
setValue(target * eased);
|
|
29
|
+
if (progress < 1) raf = requestAnimationFrame(step);
|
|
30
|
+
else setValue(target);
|
|
31
|
+
};
|
|
32
|
+
const timer = setTimeout(() => {
|
|
33
|
+
raf = requestAnimationFrame(step);
|
|
34
|
+
}, delay);
|
|
35
|
+
return () => {
|
|
36
|
+
clearTimeout(timer);
|
|
37
|
+
cancelAnimationFrame(raf);
|
|
38
|
+
};
|
|
39
|
+
}, [target, run, duration, delay, reduced]);
|
|
40
|
+
return decimals > 0 ? value.toFixed(decimals) : Math.round(value);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { useCountUp as default, useCountUp };
|
|
44
|
+
//# sourceMappingURL=useCountUp.js.map
|