@lmb-it/kitsconcerto-native 0.1.244 → 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/components/overlay/Toast/index.cjs +40 -6
- package/components/overlay/Toast/index.cjs.map +1 -1
- package/components/overlay/Toast/index.js +40 -6
- package/components/overlay/Toast/index.js.map +1 -1
- 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 +624 -3
- 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;;;;"}
|
|
@@ -14,9 +14,9 @@ var index_native = require('../../../primitives/Text/index.cjs');
|
|
|
14
14
|
let toastIdCounter = 0;
|
|
15
15
|
const LIFE = 3e3;
|
|
16
16
|
const SIZE_CONFIG = {
|
|
17
|
-
sm: { paddingV: 8, paddingH: 10, summarySize: 12, bodySize: 10, accentWidth: 3, closeSize: 14, minW: 200 },
|
|
18
|
-
md: { paddingV: 12, paddingH: 14, summarySize: 14, bodySize: 12, accentWidth: 4, closeSize: 16, minW: 280 },
|
|
19
|
-
lg: { paddingV: 16, paddingH: 18, summarySize: 16, bodySize: 14, accentWidth: 5, closeSize: 18, minW: 320 }
|
|
17
|
+
sm: { paddingV: 8, paddingH: 10, summarySize: 12, bodySize: 10, accentWidth: 3, closeSize: 14, actionSize: 12, minW: 200 },
|
|
18
|
+
md: { paddingV: 12, paddingH: 14, summarySize: 14, bodySize: 12, accentWidth: 4, closeSize: 16, actionSize: 13, minW: 280 },
|
|
19
|
+
lg: { paddingV: 16, paddingH: 18, summarySize: 16, bodySize: 14, accentWidth: 5, closeSize: 18, actionSize: 15, minW: 320 }
|
|
20
20
|
};
|
|
21
21
|
const KitsToast = ({ ref }) => {
|
|
22
22
|
const [toasts, setToasts] = React.useState([]);
|
|
@@ -48,9 +48,20 @@ const KitsToast = ({ ref }) => {
|
|
|
48
48
|
}
|
|
49
49
|
setToasts((prev) => prev.filter((t) => t.id !== id));
|
|
50
50
|
}, []);
|
|
51
|
-
const toast = React.useCallback((severity, summary, body = "", position = "bottom-center", isUpdate = false, size = "md", onPress) => {
|
|
51
|
+
const toast = React.useCallback((severity, summary, body = "", position = "bottom-center", isUpdate = false, size = "md", onPress, options) => {
|
|
52
52
|
const id = ++toastIdCounter;
|
|
53
|
-
const item = {
|
|
53
|
+
const item = {
|
|
54
|
+
id,
|
|
55
|
+
severity,
|
|
56
|
+
summary,
|
|
57
|
+
body,
|
|
58
|
+
position,
|
|
59
|
+
size,
|
|
60
|
+
sticky: severity === "loading",
|
|
61
|
+
onPress,
|
|
62
|
+
action: options?.action,
|
|
63
|
+
offset: options?.offset
|
|
64
|
+
};
|
|
54
65
|
setToasts((prev) => {
|
|
55
66
|
if (!isUpdate) return [...prev, item];
|
|
56
67
|
const lastAtPos = [...prev].reverse().find((t) => t.position === position);
|
|
@@ -112,7 +123,10 @@ const KitsToast = ({ ref }) => {
|
|
|
112
123
|
styles.toastWrapper,
|
|
113
124
|
{
|
|
114
125
|
alignItems: align,
|
|
115
|
-
|
|
126
|
+
// `offset` is consumer chrome KitsConcerto cannot see
|
|
127
|
+
// (a bottom tab bar, a sticky header). It stacks ON TOP
|
|
128
|
+
// of the safe-area inset; absent, the gap is unchanged.
|
|
129
|
+
...top ? { top: insets.top + 8 + (item.offset ?? 0) } : { bottom: insets.bottom + 8 + (item.offset ?? 0) }
|
|
116
130
|
},
|
|
117
131
|
// Bottom toasts lift with the keyboard; top toasts never move.
|
|
118
132
|
top ? null : keyboardOffsetStyle
|
|
@@ -149,6 +163,20 @@ const KitsToast = ({ ref }) => {
|
|
|
149
163
|
/* @__PURE__ */ jsxRuntime.jsx(index_native.default, { style: { fontWeight: "600", fontSize: s.summarySize, color: textColor }, children: item.summary }),
|
|
150
164
|
!!item.body && /* @__PURE__ */ jsxRuntime.jsx(index_native.default, { style: { fontSize: s.bodySize, marginTop: 2, color: textColor, opacity: 0.7 }, children: item.body })
|
|
151
165
|
] }),
|
|
166
|
+
!!item.action && /* @__PURE__ */ jsxRuntime.jsx(
|
|
167
|
+
reactNative.Pressable,
|
|
168
|
+
{
|
|
169
|
+
accessibilityRole: "button",
|
|
170
|
+
accessibilityLabel: item.action.label,
|
|
171
|
+
hitSlop: 8,
|
|
172
|
+
onPress: () => {
|
|
173
|
+
item.action?.onPress();
|
|
174
|
+
removeToast(item.id);
|
|
175
|
+
},
|
|
176
|
+
style: [styles.action, { borderColor: accentColor }],
|
|
177
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(index_native.default, { style: { fontSize: s.actionSize, fontWeight: "600", color: accentColor }, children: item.action.label })
|
|
178
|
+
}
|
|
179
|
+
),
|
|
152
180
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { onPress: () => removeToast(item.id), hitSlop: 8, children: /* @__PURE__ */ jsxRuntime.jsx(index_native.default, { style: { fontSize: s.closeSize, fontWeight: "bold", color: textColor, opacity: 0.4 }, children: "\u2715" }) })
|
|
153
181
|
] })
|
|
154
182
|
]
|
|
@@ -185,6 +213,12 @@ const styles = reactNative.StyleSheet.create({
|
|
|
185
213
|
shadowRadius: 6
|
|
186
214
|
},
|
|
187
215
|
accentBar: {},
|
|
216
|
+
action: {
|
|
217
|
+
borderWidth: 1,
|
|
218
|
+
borderRadius: 6,
|
|
219
|
+
paddingHorizontal: 10,
|
|
220
|
+
paddingVertical: 4
|
|
221
|
+
},
|
|
188
222
|
pressArea: {
|
|
189
223
|
flex: 1,
|
|
190
224
|
flexDirection: "row"
|