@dloizides/ui-tables 1.0.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/CHANGELOG.md +10 -0
- package/LICENSE +21 -0
- package/README.md +35 -0
- package/dist/index.d.mts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +54 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +52 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +108 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
Initial release (Capability Wave C1, batch 3).
|
|
6
|
+
|
|
7
|
+
- `StatCard` — extracted from the proven erevna ↔ katalogos duplication; shares the
|
|
8
|
+
`@dloizides/ui-feedback` UI context (`useUi`).
|
|
9
|
+
- `DataTable` / `StatGrid` intentionally NOT included yet — they exist only in kefi-web (n=1);
|
|
10
|
+
they'll be added when a 2nd consumer appears.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 dloizides
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @dloizides/ui-tables
|
|
2
|
+
|
|
3
|
+
Themable, brand-agnostic React Native (RN-web) **table/stat** components for the dloizides.com
|
|
4
|
+
portfolio. Reads theme + translations from the shared `@dloizides/ui-feedback` UI context (`useUi`).
|
|
5
|
+
|
|
6
|
+
## Components
|
|
7
|
+
|
|
8
|
+
| Component | Status |
|
|
9
|
+
|-----------|--------|
|
|
10
|
+
| `StatCard` | ✅ Available — labelled metric tile (label + locale-formatted value). |
|
|
11
|
+
| `DataTable`, `StatGrid` | ⏳ Deferred — currently exist only in kefi-web (n=1). They move in here when a 2nd consumer appears ("extract on the 2nd use, not the first"). |
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @dloizides/ui-tables @dloizides/ui-feedback
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Peer dependencies: `@dloizides/ui-feedback >= 1.1.0`, `react >= 18`, `react-native >= 0.74`.
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
```tsx
|
|
24
|
+
import { StatCard } from '@dloizides/ui-tables';
|
|
25
|
+
|
|
26
|
+
<StatCard label="Total responses" value={1234} testID="stat-total" />
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Mount a `FeedbackUiProvider` / `UiProvider` (from `@dloizides/ui-feedback`) at your app root so the
|
|
30
|
+
component picks up your theme + translations. The injected `t` is called with `analytics.statHint` and
|
|
31
|
+
`analytics.statCardLabel` (provide these keys in your locale files).
|
|
32
|
+
|
|
33
|
+
## License
|
|
34
|
+
|
|
35
|
+
MIT
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* StatCard — a single labelled metric tile (label + formatted numeric value).
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
interface StatCardProps {
|
|
8
|
+
label: string;
|
|
9
|
+
value: number;
|
|
10
|
+
testID: string;
|
|
11
|
+
}
|
|
12
|
+
declare const StatCard: React.MemoExoticComponent<({ label, value, testID }: StatCardProps) => React.ReactElement>;
|
|
13
|
+
|
|
14
|
+
export { StatCard, type StatCardProps };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* StatCard — a single labelled metric tile (label + formatted numeric value).
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
interface StatCardProps {
|
|
8
|
+
label: string;
|
|
9
|
+
value: number;
|
|
10
|
+
testID: string;
|
|
11
|
+
}
|
|
12
|
+
declare const StatCard: React.MemoExoticComponent<({ label, value, testID }: StatCardProps) => React.ReactElement>;
|
|
13
|
+
|
|
14
|
+
export { StatCard, type StatCardProps };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var react = require('react');
|
|
4
|
+
var reactNative = require('react-native');
|
|
5
|
+
var uiFeedback = require('@dloizides/ui-feedback');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
|
|
8
|
+
// src/StatCard/StatCard.tsx
|
|
9
|
+
var CARD_PADDING = 16;
|
|
10
|
+
var CARD_BORDER_RADIUS = 12;
|
|
11
|
+
var CARD_BORDER_WIDTH = 1;
|
|
12
|
+
var LABEL_FONT_SIZE = 14;
|
|
13
|
+
var VALUE_FONT_SIZE = 28;
|
|
14
|
+
var VALUE_LINE_HEIGHT = 36;
|
|
15
|
+
var styles = reactNative.StyleSheet.create({
|
|
16
|
+
card: {
|
|
17
|
+
padding: CARD_PADDING,
|
|
18
|
+
borderRadius: CARD_BORDER_RADIUS,
|
|
19
|
+
borderWidth: CARD_BORDER_WIDTH
|
|
20
|
+
},
|
|
21
|
+
label: {
|
|
22
|
+
fontSize: LABEL_FONT_SIZE,
|
|
23
|
+
fontWeight: "500"
|
|
24
|
+
},
|
|
25
|
+
value: {
|
|
26
|
+
fontSize: VALUE_FONT_SIZE,
|
|
27
|
+
fontWeight: "700",
|
|
28
|
+
lineHeight: VALUE_LINE_HEIGHT
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
var StatCard = react.memo(({ label, value, testID }) => {
|
|
32
|
+
const { theme, t } = uiFeedback.useUi();
|
|
33
|
+
const { colors } = theme;
|
|
34
|
+
const formattedValue = value.toLocaleString();
|
|
35
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
36
|
+
reactNative.View,
|
|
37
|
+
{
|
|
38
|
+
accessibilityHint: t("analytics.statHint", label),
|
|
39
|
+
accessibilityLabel: t("analytics.statCardLabel", label, formattedValue),
|
|
40
|
+
accessibilityRole: "text",
|
|
41
|
+
style: [styles.card, { backgroundColor: colors.surface, borderColor: colors.border }],
|
|
42
|
+
testID,
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles.label, { color: colors.textSecondary }], children: label }),
|
|
45
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles.value, { color: colors.text }], children: formattedValue })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
});
|
|
50
|
+
StatCard.displayName = "StatCard";
|
|
51
|
+
|
|
52
|
+
exports.StatCard = StatCard;
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/StatCard/StatCard.tsx"],"names":["StyleSheet","memo","useUi","jsxs","View","jsx","Text"],"mappings":";;;;;;;;AASA,IAAM,YAAA,GAAe,EAAA;AACrB,IAAM,kBAAA,GAAqB,EAAA;AAC3B,IAAM,iBAAA,GAAoB,CAAA;AAC1B,IAAM,eAAA,GAAkB,EAAA;AACxB,IAAM,eAAA,GAAkB,EAAA;AACxB,IAAM,iBAAA,GAAoB,EAAA;AAE1B,IAAM,MAAA,GAASA,uBAAW,MAAA,CAAO;AAAA,EAC/B,IAAA,EAAM;AAAA,IACJ,OAAA,EAAS,YAAA;AAAA,IACT,YAAA,EAAc,kBAAA;AAAA,IACd,WAAA,EAAa;AAAA,GACf;AAAA,EACA,KAAA,EAAO;AAAA,IACL,QAAA,EAAU,eAAA;AAAA,IACV,UAAA,EAAY;AAAA,GACd;AAAA,EACA,KAAA,EAAO;AAAA,IACL,QAAA,EAAU,eAAA;AAAA,IACV,UAAA,EAAY,KAAA;AAAA,IACZ,UAAA,EAAY;AAAA;AAEhB,CAAC,CAAA;AAQM,IAAM,WAAWC,UAAA,CAAK,CAAC,EAAE,KAAA,EAAO,KAAA,EAAO,QAAO,KAAyC;AAC5F,EAAA,MAAM,EAAE,KAAA,EAAO,CAAA,EAAE,GAAIC,gBAAA,EAAM;AAC3B,EAAA,MAAM,EAAE,QAAO,GAAI,KAAA;AAEnB,EAAA,MAAM,cAAA,GAAiB,MAAM,cAAA,EAAe;AAE5C,EAAA,uBACEC,eAAA;AAAA,IAACC,gBAAA;AAAA,IAAA;AAAA,MACC,iBAAA,EAAmB,CAAA,CAAE,oBAAA,EAAsB,KAAK,CAAA;AAAA,MAChD,kBAAA,EAAoB,CAAA,CAAE,yBAAA,EAA2B,KAAA,EAAO,cAAc,CAAA;AAAA,MACtE,iBAAA,EAAkB,MAAA;AAAA,MAClB,KAAA,EAAO,CAAC,MAAA,CAAO,IAAA,EAAM,EAAE,eAAA,EAAiB,MAAA,CAAO,OAAA,EAAS,WAAA,EAAa,MAAA,CAAO,MAAA,EAAQ,CAAA;AAAA,MACpF,MAAA;AAAA,MAEA,QAAA,EAAA;AAAA,wBAAAC,cAAA,CAACC,gBAAA,EAAA,EAAK,KAAA,EAAO,CAAC,MAAA,CAAO,KAAA,EAAO,EAAE,KAAA,EAAO,MAAA,CAAO,aAAA,EAAe,CAAA,EACxD,QAAA,EAAA,KAAA,EACH,CAAA;AAAA,wBACAD,cAAA,CAACC,gBAAA,EAAA,EAAK,KAAA,EAAO,CAAC,MAAA,CAAO,KAAA,EAAO,EAAE,KAAA,EAAO,MAAA,CAAO,IAAA,EAAM,CAAA,EAC/C,QAAA,EAAA,cAAA,EACH;AAAA;AAAA;AAAA,GACF;AAEJ,CAAC;AAED,QAAA,CAAS,WAAA,GAAc,UAAA","file":"index.js","sourcesContent":["/**\n * StatCard — a single labelled metric tile (label + formatted numeric value).\n */\nimport React, { memo } from 'react';\n\nimport { StyleSheet, Text, View } from 'react-native';\n\nimport { useUi } from '@dloizides/ui-feedback';\n\nconst CARD_PADDING = 16;\nconst CARD_BORDER_RADIUS = 12;\nconst CARD_BORDER_WIDTH = 1;\nconst LABEL_FONT_SIZE = 14;\nconst VALUE_FONT_SIZE = 28;\nconst VALUE_LINE_HEIGHT = 36;\n\nconst styles = StyleSheet.create({\n card: {\n padding: CARD_PADDING,\n borderRadius: CARD_BORDER_RADIUS,\n borderWidth: CARD_BORDER_WIDTH,\n },\n label: {\n fontSize: LABEL_FONT_SIZE,\n fontWeight: '500',\n },\n value: {\n fontSize: VALUE_FONT_SIZE,\n fontWeight: '700',\n lineHeight: VALUE_LINE_HEIGHT,\n },\n});\n\nexport interface StatCardProps {\n label: string;\n value: number;\n testID: string;\n}\n\nexport const StatCard = memo(({ label, value, testID }: StatCardProps): React.ReactElement => {\n const { theme, t } = useUi();\n const { colors } = theme;\n\n const formattedValue = value.toLocaleString();\n\n return (\n <View\n accessibilityHint={t('analytics.statHint', label)}\n accessibilityLabel={t('analytics.statCardLabel', label, formattedValue)}\n accessibilityRole=\"text\"\n style={[styles.card, { backgroundColor: colors.surface, borderColor: colors.border }]}\n testID={testID}\n >\n <Text style={[styles.label, { color: colors.textSecondary }]}>\n {label}\n </Text>\n <Text style={[styles.value, { color: colors.text }]}>\n {formattedValue}\n </Text>\n </View>\n );\n});\n\nStatCard.displayName = 'StatCard';\n\nexport default StatCard;\n"]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { memo } from 'react';
|
|
2
|
+
import { StyleSheet, View, Text } from 'react-native';
|
|
3
|
+
import { useUi } from '@dloizides/ui-feedback';
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
// src/StatCard/StatCard.tsx
|
|
7
|
+
var CARD_PADDING = 16;
|
|
8
|
+
var CARD_BORDER_RADIUS = 12;
|
|
9
|
+
var CARD_BORDER_WIDTH = 1;
|
|
10
|
+
var LABEL_FONT_SIZE = 14;
|
|
11
|
+
var VALUE_FONT_SIZE = 28;
|
|
12
|
+
var VALUE_LINE_HEIGHT = 36;
|
|
13
|
+
var styles = StyleSheet.create({
|
|
14
|
+
card: {
|
|
15
|
+
padding: CARD_PADDING,
|
|
16
|
+
borderRadius: CARD_BORDER_RADIUS,
|
|
17
|
+
borderWidth: CARD_BORDER_WIDTH
|
|
18
|
+
},
|
|
19
|
+
label: {
|
|
20
|
+
fontSize: LABEL_FONT_SIZE,
|
|
21
|
+
fontWeight: "500"
|
|
22
|
+
},
|
|
23
|
+
value: {
|
|
24
|
+
fontSize: VALUE_FONT_SIZE,
|
|
25
|
+
fontWeight: "700",
|
|
26
|
+
lineHeight: VALUE_LINE_HEIGHT
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
var StatCard = memo(({ label, value, testID }) => {
|
|
30
|
+
const { theme, t } = useUi();
|
|
31
|
+
const { colors } = theme;
|
|
32
|
+
const formattedValue = value.toLocaleString();
|
|
33
|
+
return /* @__PURE__ */ jsxs(
|
|
34
|
+
View,
|
|
35
|
+
{
|
|
36
|
+
accessibilityHint: t("analytics.statHint", label),
|
|
37
|
+
accessibilityLabel: t("analytics.statCardLabel", label, formattedValue),
|
|
38
|
+
accessibilityRole: "text",
|
|
39
|
+
style: [styles.card, { backgroundColor: colors.surface, borderColor: colors.border }],
|
|
40
|
+
testID,
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.label, { color: colors.textSecondary }], children: label }),
|
|
43
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.value, { color: colors.text }], children: formattedValue })
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
});
|
|
48
|
+
StatCard.displayName = "StatCard";
|
|
49
|
+
|
|
50
|
+
export { StatCard };
|
|
51
|
+
//# sourceMappingURL=index.mjs.map
|
|
52
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/StatCard/StatCard.tsx"],"names":[],"mappings":";;;;;;AASA,IAAM,YAAA,GAAe,EAAA;AACrB,IAAM,kBAAA,GAAqB,EAAA;AAC3B,IAAM,iBAAA,GAAoB,CAAA;AAC1B,IAAM,eAAA,GAAkB,EAAA;AACxB,IAAM,eAAA,GAAkB,EAAA;AACxB,IAAM,iBAAA,GAAoB,EAAA;AAE1B,IAAM,MAAA,GAAS,WAAW,MAAA,CAAO;AAAA,EAC/B,IAAA,EAAM;AAAA,IACJ,OAAA,EAAS,YAAA;AAAA,IACT,YAAA,EAAc,kBAAA;AAAA,IACd,WAAA,EAAa;AAAA,GACf;AAAA,EACA,KAAA,EAAO;AAAA,IACL,QAAA,EAAU,eAAA;AAAA,IACV,UAAA,EAAY;AAAA,GACd;AAAA,EACA,KAAA,EAAO;AAAA,IACL,QAAA,EAAU,eAAA;AAAA,IACV,UAAA,EAAY,KAAA;AAAA,IACZ,UAAA,EAAY;AAAA;AAEhB,CAAC,CAAA;AAQM,IAAM,WAAW,IAAA,CAAK,CAAC,EAAE,KAAA,EAAO,KAAA,EAAO,QAAO,KAAyC;AAC5F,EAAA,MAAM,EAAE,KAAA,EAAO,CAAA,EAAE,GAAI,KAAA,EAAM;AAC3B,EAAA,MAAM,EAAE,QAAO,GAAI,KAAA;AAEnB,EAAA,MAAM,cAAA,GAAiB,MAAM,cAAA,EAAe;AAE5C,EAAA,uBACE,IAAA;AAAA,IAAC,IAAA;AAAA,IAAA;AAAA,MACC,iBAAA,EAAmB,CAAA,CAAE,oBAAA,EAAsB,KAAK,CAAA;AAAA,MAChD,kBAAA,EAAoB,CAAA,CAAE,yBAAA,EAA2B,KAAA,EAAO,cAAc,CAAA;AAAA,MACtE,iBAAA,EAAkB,MAAA;AAAA,MAClB,KAAA,EAAO,CAAC,MAAA,CAAO,IAAA,EAAM,EAAE,eAAA,EAAiB,MAAA,CAAO,OAAA,EAAS,WAAA,EAAa,MAAA,CAAO,MAAA,EAAQ,CAAA;AAAA,MACpF,MAAA;AAAA,MAEA,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,IAAA,EAAA,EAAK,KAAA,EAAO,CAAC,MAAA,CAAO,KAAA,EAAO,EAAE,KAAA,EAAO,MAAA,CAAO,aAAA,EAAe,CAAA,EACxD,QAAA,EAAA,KAAA,EACH,CAAA;AAAA,wBACA,GAAA,CAAC,IAAA,EAAA,EAAK,KAAA,EAAO,CAAC,MAAA,CAAO,KAAA,EAAO,EAAE,KAAA,EAAO,MAAA,CAAO,IAAA,EAAM,CAAA,EAC/C,QAAA,EAAA,cAAA,EACH;AAAA;AAAA;AAAA,GACF;AAEJ,CAAC;AAED,QAAA,CAAS,WAAA,GAAc,UAAA","file":"index.mjs","sourcesContent":["/**\n * StatCard — a single labelled metric tile (label + formatted numeric value).\n */\nimport React, { memo } from 'react';\n\nimport { StyleSheet, Text, View } from 'react-native';\n\nimport { useUi } from '@dloizides/ui-feedback';\n\nconst CARD_PADDING = 16;\nconst CARD_BORDER_RADIUS = 12;\nconst CARD_BORDER_WIDTH = 1;\nconst LABEL_FONT_SIZE = 14;\nconst VALUE_FONT_SIZE = 28;\nconst VALUE_LINE_HEIGHT = 36;\n\nconst styles = StyleSheet.create({\n card: {\n padding: CARD_PADDING,\n borderRadius: CARD_BORDER_RADIUS,\n borderWidth: CARD_BORDER_WIDTH,\n },\n label: {\n fontSize: LABEL_FONT_SIZE,\n fontWeight: '500',\n },\n value: {\n fontSize: VALUE_FONT_SIZE,\n fontWeight: '700',\n lineHeight: VALUE_LINE_HEIGHT,\n },\n});\n\nexport interface StatCardProps {\n label: string;\n value: number;\n testID: string;\n}\n\nexport const StatCard = memo(({ label, value, testID }: StatCardProps): React.ReactElement => {\n const { theme, t } = useUi();\n const { colors } = theme;\n\n const formattedValue = value.toLocaleString();\n\n return (\n <View\n accessibilityHint={t('analytics.statHint', label)}\n accessibilityLabel={t('analytics.statCardLabel', label, formattedValue)}\n accessibilityRole=\"text\"\n style={[styles.card, { backgroundColor: colors.surface, borderColor: colors.border }]}\n testID={testID}\n >\n <Text style={[styles.label, { color: colors.textSecondary }]}>\n {label}\n </Text>\n <Text style={[styles.value, { color: colors.text }]}>\n {formattedValue}\n </Text>\n </View>\n );\n});\n\nStatCard.displayName = 'StatCard';\n\nexport default StatCard;\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dloizides/ui-tables",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Themable, brand-agnostic React Native (RN-web) table/stat components for the dloizides.com portfolio. Starts with StatCard; DataTable/StatGrid join when a 2nd consumer appears. Shares the @dloizides/ui-feedback UI context.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"react-native",
|
|
8
|
+
"react-native-web",
|
|
9
|
+
"ui",
|
|
10
|
+
"table",
|
|
11
|
+
"stat-card",
|
|
12
|
+
"dloizides"
|
|
13
|
+
],
|
|
14
|
+
"author": "dloizides",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/openmindednewby/ui-tables.git"
|
|
19
|
+
},
|
|
20
|
+
"homepage": "https://github.com/openmindednewby/ui-tables#readme",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/openmindednewby/ui-tables/issues"
|
|
23
|
+
},
|
|
24
|
+
"main": "./dist/index.js",
|
|
25
|
+
"module": "./dist/index.mjs",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"react-native": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"default": "./dist/index.js"
|
|
32
|
+
},
|
|
33
|
+
"browser": {
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"default": "./dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"require": {
|
|
38
|
+
"types": "./dist/index.d.ts",
|
|
39
|
+
"default": "./dist/index.js"
|
|
40
|
+
},
|
|
41
|
+
"import": {
|
|
42
|
+
"types": "./dist/index.d.mts",
|
|
43
|
+
"default": "./dist/index.mjs"
|
|
44
|
+
},
|
|
45
|
+
"default": {
|
|
46
|
+
"types": "./dist/index.d.ts",
|
|
47
|
+
"default": "./dist/index.js"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"files": [
|
|
52
|
+
"dist",
|
|
53
|
+
"README.md",
|
|
54
|
+
"CHANGELOG.md"
|
|
55
|
+
],
|
|
56
|
+
"sideEffects": false,
|
|
57
|
+
"engines": {
|
|
58
|
+
"node": ">=18.0.0"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "rimraf dist && tsup",
|
|
62
|
+
"build:watch": "tsup --watch",
|
|
63
|
+
"test": "jest",
|
|
64
|
+
"test:watch": "jest --watch",
|
|
65
|
+
"test:coverage": "jest --coverage",
|
|
66
|
+
"lint": "eslint src --ext .ts,.tsx",
|
|
67
|
+
"lint:fix": "eslint src --ext .ts,.tsx --fix",
|
|
68
|
+
"typecheck": "tsc --noEmit",
|
|
69
|
+
"clean": "rimraf dist",
|
|
70
|
+
"security:audit": "npm audit --audit-level=high",
|
|
71
|
+
"deps:outdated": "npm outdated || exit 0",
|
|
72
|
+
"deps:unused": "npx depcheck --ignores \"@types/jest,@types/node,@types/react,@types/react-dom,rimraf,react-native,react-native-web\"",
|
|
73
|
+
"deps:licenses": "npx license-checker --onlyAllow \"MIT;Apache-2.0;ISC;BSD-2-Clause;BSD-3-Clause;0BSD;Unlicense;CC0-1.0\"",
|
|
74
|
+
"deps:health": "npm run deps:outdated && npm run deps:unused",
|
|
75
|
+
"prepublishOnly": "npm run clean && npm run build && npm run test",
|
|
76
|
+
"version": "npm run build"
|
|
77
|
+
},
|
|
78
|
+
"peerDependencies": {
|
|
79
|
+
"@dloizides/ui-feedback": ">=1.1.0",
|
|
80
|
+
"react": ">=18.0.0",
|
|
81
|
+
"react-native": ">=0.74.0"
|
|
82
|
+
},
|
|
83
|
+
"devDependencies": {
|
|
84
|
+
"@dloizides/ui-feedback": "^1.1.0",
|
|
85
|
+
"@testing-library/dom": "^10.4.0",
|
|
86
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
87
|
+
"@testing-library/react": "^16.1.0",
|
|
88
|
+
"@types/jest": "^29.5.0",
|
|
89
|
+
"@types/node": "^20.19.32",
|
|
90
|
+
"@types/react": "^19.0.0",
|
|
91
|
+
"@types/react-dom": "^19.0.0",
|
|
92
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
93
|
+
"@typescript-eslint/parser": "^7.0.0",
|
|
94
|
+
"eslint": "^8.57.0",
|
|
95
|
+
"eslint-plugin-react": "^7.34.0",
|
|
96
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
97
|
+
"jest": "^29.7.0",
|
|
98
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
99
|
+
"react": "^19.2.4",
|
|
100
|
+
"react-dom": "^19.2.4",
|
|
101
|
+
"react-native": "0.81.5",
|
|
102
|
+
"react-native-web": "^0.21.0",
|
|
103
|
+
"rimraf": "^5.0.0",
|
|
104
|
+
"ts-jest": "^29.1.0",
|
|
105
|
+
"tsup": "^8.0.0",
|
|
106
|
+
"typescript": "^5.4.0"
|
|
107
|
+
}
|
|
108
|
+
}
|