@rttui/skin-anocca 1.0.35 → 1.0.36
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/README.md +62 -1
- package/dist/cjs/cell.cjs +102 -0
- package/dist/cjs/cell.cjs.map +10 -0
- package/dist/cjs/cell_avatar.cjs +62 -0
- package/dist/cjs/cell_avatar.cjs.map +10 -0
- package/dist/cjs/cell_avatar_with_text.cjs +80 -0
- package/dist/cjs/cell_avatar_with_text.cjs.map +10 -0
- package/dist/cjs/cell_badge.cjs +66 -0
- package/dist/cjs/cell_badge.cjs.map +10 -0
- package/dist/cjs/cell_currency.cjs +57 -0
- package/dist/cjs/cell_currency.cjs.map +10 -0
- package/dist/cjs/cell_link.cjs +78 -0
- package/dist/cjs/cell_link.cjs.map +10 -0
- package/dist/cjs/cell_number.cjs +48 -0
- package/dist/cjs/cell_number.cjs.map +10 -0
- package/dist/cjs/cell_percent.cjs +56 -0
- package/dist/cjs/cell_percent.cjs.map +10 -0
- package/dist/cjs/cell_tag.cjs +53 -0
- package/dist/cjs/cell_tag.cjs.map +10 -0
- package/dist/cjs/cell_text.cjs +47 -0
- package/dist/cjs/cell_text.cjs.map +10 -0
- package/dist/cjs/cell_text_bold.cjs +51 -0
- package/dist/cjs/cell_text_bold.cjs.map +10 -0
- package/dist/cjs/checkbox.cjs +80 -0
- package/dist/cjs/checkbox.cjs.map +10 -0
- package/dist/cjs/expand_button.cjs +84 -0
- package/dist/cjs/expand_button.cjs.map +10 -0
- package/dist/cjs/index.cjs +27 -1
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/package.json +1 -1
- package/dist/cjs/resizer.cjs +8 -1
- package/dist/cjs/resizer.cjs.map +3 -3
- package/dist/mjs/cell.mjs +72 -0
- package/dist/mjs/cell.mjs.map +10 -0
- package/dist/mjs/cell_avatar.mjs +32 -0
- package/dist/mjs/cell_avatar.mjs.map +10 -0
- package/dist/mjs/cell_avatar_with_text.mjs +50 -0
- package/dist/mjs/cell_avatar_with_text.mjs.map +10 -0
- package/dist/mjs/cell_badge.mjs +36 -0
- package/dist/mjs/cell_badge.mjs.map +10 -0
- package/dist/mjs/cell_currency.mjs +27 -0
- package/dist/mjs/cell_currency.mjs.map +10 -0
- package/dist/mjs/cell_link.mjs +48 -0
- package/dist/mjs/cell_link.mjs.map +10 -0
- package/dist/mjs/cell_number.mjs +18 -0
- package/dist/mjs/cell_number.mjs.map +10 -0
- package/dist/mjs/cell_percent.mjs +26 -0
- package/dist/mjs/cell_percent.mjs.map +10 -0
- package/dist/mjs/cell_tag.mjs +23 -0
- package/dist/mjs/cell_tag.mjs.map +10 -0
- package/dist/mjs/cell_text.mjs +17 -0
- package/dist/mjs/cell_text.mjs.map +10 -0
- package/dist/mjs/cell_text_bold.mjs +21 -0
- package/dist/mjs/cell_text_bold.mjs.map +10 -0
- package/dist/mjs/checkbox.mjs +50 -0
- package/dist/mjs/checkbox.mjs.map +10 -0
- package/dist/mjs/expand_button.mjs +54 -0
- package/dist/mjs/expand_button.mjs.map +10 -0
- package/dist/mjs/index.mjs +27 -1
- package/dist/mjs/index.mjs.map +3 -3
- package/dist/mjs/package.json +1 -1
- package/dist/mjs/resizer.mjs +8 -1
- package/dist/mjs/resizer.mjs.map +3 -3
- package/dist/types/cell.d.ts +3 -0
- package/dist/types/cell_avatar.d.ts +3 -0
- package/dist/types/cell_avatar_with_text.d.ts +3 -0
- package/dist/types/cell_badge.d.ts +3 -0
- package/dist/types/cell_currency.d.ts +3 -0
- package/dist/types/cell_link.d.ts +8 -0
- package/dist/types/cell_number.d.ts +6 -0
- package/dist/types/cell_percent.d.ts +7 -0
- package/dist/types/cell_tag.d.ts +6 -0
- package/dist/types/cell_text.d.ts +6 -0
- package/dist/types/cell_text_bold.d.ts +7 -0
- package/dist/types/checkbox.d.ts +3 -0
- package/dist/types/expand_button.d.ts +2 -0
- package/dist/types/index.d.ts +13 -0
- package/package.json +2 -2
package/README.md
CHANGED
@@ -1 +1,62 @@
|
|
1
|
-
#
|
1
|
+
# Virtualized Table - Anocca Skin
|
2
|
+
|
3
|
+
This package provides an Anocca-styled skin for the `@rttui/core` virtualized table.
|
4
|
+
|
5
|
+
## Dependencies
|
6
|
+
|
7
|
+
- `@rttui/core`: The core table logic.
|
8
|
+
- `react` (peer)
|
9
|
+
- `react-dom` (peer)
|
10
|
+
- `@emotion/react` (peer/dev)
|
11
|
+
- `@emotion/styled` (peer/dev)
|
12
|
+
- `@mui/material` (peer/dev - Check if truly needed or leftover)
|
13
|
+
- `react-icons` (peer/dev)
|
14
|
+
|
15
|
+
Ensure peer dependencies are installed in your project.
|
16
|
+
|
17
|
+
## Setup
|
18
|
+
|
19
|
+
```bash
|
20
|
+
npm install @rttui/skin-anocca @rttui/core react react-dom @emotion/react @emotion/styled react-icons
|
21
|
+
# or
|
22
|
+
yarn add @rttui/skin-anocca @rttui/core react react-dom @emotion/react @emotion/styled react-icons
|
23
|
+
```
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
Import the `AnoccaSkin` object and pass it to the `VirtualizedTable` component:
|
28
|
+
|
29
|
+
```tsx
|
30
|
+
import { VirtualizedTable } from '@rttui/core';
|
31
|
+
import { AnoccaSkin } from '@rttui/skin-anocca';
|
32
|
+
|
33
|
+
// ... component setup ...
|
34
|
+
|
35
|
+
<VirtualizedTable
|
36
|
+
{/* ... other props ... */}
|
37
|
+
skin={AnoccaSkin}
|
38
|
+
/>
|
39
|
+
```
|
40
|
+
|
41
|
+
## Exported Components
|
42
|
+
|
43
|
+
The following components are exported:
|
44
|
+
|
45
|
+
- `AnoccaSkin`: The main skin object to pass to the table.
|
46
|
+
- `TableHeaderRow`
|
47
|
+
- `HeaderPinButtons`
|
48
|
+
- `RowPinButtons`
|
49
|
+
- `Resizer`
|
50
|
+
- `CellAvatar`
|
51
|
+
- `CellAvatarWithText`
|
52
|
+
- `CellNumber`
|
53
|
+
- `CellTag`
|
54
|
+
- `CellText`
|
55
|
+
- `ExpandButton`
|
56
|
+
- `Checkbox`
|
57
|
+
- `CellTextBold`
|
58
|
+
- `CellCurrency`
|
59
|
+
- `CellBadge`
|
60
|
+
- `Cell`
|
61
|
+
- `CellLink`
|
62
|
+
- `CellPercent`
|
@@ -0,0 +1,102 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
6
|
+
var __toCommonJS = (from) => {
|
7
|
+
var entry = __moduleCache.get(from), desc;
|
8
|
+
if (entry)
|
9
|
+
return entry;
|
10
|
+
entry = __defProp({}, "__esModule", { value: true });
|
11
|
+
if (from && typeof from === "object" || typeof from === "function")
|
12
|
+
__getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
|
13
|
+
get: () => from[key],
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
15
|
+
}));
|
16
|
+
__moduleCache.set(from, entry);
|
17
|
+
return entry;
|
18
|
+
};
|
19
|
+
var __export = (target, all) => {
|
20
|
+
for (var name in all)
|
21
|
+
__defProp(target, name, {
|
22
|
+
get: all[name],
|
23
|
+
enumerable: true,
|
24
|
+
configurable: true,
|
25
|
+
set: (newValue) => all[name] = () => newValue
|
26
|
+
});
|
27
|
+
};
|
28
|
+
|
29
|
+
// packages/skin-anocca/src/cell.tsx
|
30
|
+
var exports_cell = {};
|
31
|
+
__export(exports_cell, {
|
32
|
+
Cell: () => Cell
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(exports_cell);
|
35
|
+
var import_core = require("@rttui/core");
|
36
|
+
var import_cell_text = require("./cell_text.cjs");
|
37
|
+
var import_cell_text_bold = require("./cell_text_bold.cjs");
|
38
|
+
var import_checkbox = require("./checkbox.cjs");
|
39
|
+
var import_expand_button = require("./expand_button.cjs");
|
40
|
+
var jsx_runtime = require("react/jsx-runtime");
|
41
|
+
var Cell = ({
|
42
|
+
children,
|
43
|
+
checkbox = false,
|
44
|
+
expandButton = false,
|
45
|
+
pinButtons = false,
|
46
|
+
highlightSelected = false
|
47
|
+
}) => {
|
48
|
+
const { depth, isSelected } = import_core.useRowProps({
|
49
|
+
callback: (vrow) => {
|
50
|
+
const row = vrow.row;
|
51
|
+
return {
|
52
|
+
depth: row.depth,
|
53
|
+
isSelected: row.getIsSelected()
|
54
|
+
};
|
55
|
+
},
|
56
|
+
areCallbackOutputEqual: import_core.shallowEqual,
|
57
|
+
dependencies: [{ type: "tanstack_table" }]
|
58
|
+
});
|
59
|
+
const rowRef = import_core.useRowRef();
|
60
|
+
const containerStyle = {
|
61
|
+
display: "flex",
|
62
|
+
alignItems: "center",
|
63
|
+
gap: "8px",
|
64
|
+
paddingLeft: `${depth * 20}px`
|
65
|
+
};
|
66
|
+
const useBold = highlightSelected && isSelected;
|
67
|
+
return /* @__PURE__ */ jsx_runtime.jsxs("div", {
|
68
|
+
style: containerStyle,
|
69
|
+
children: [
|
70
|
+
checkbox && /* @__PURE__ */ jsx_runtime.jsx(import_checkbox.Checkbox, {
|
71
|
+
getProps: () => {
|
72
|
+
const row = rowRef()?.row;
|
73
|
+
if (!row)
|
74
|
+
return {};
|
75
|
+
return {
|
76
|
+
checked: row.getIsSelected(),
|
77
|
+
disabled: !row.getCanSelect(),
|
78
|
+
indeterminate: row.getIsSomeSelected()
|
79
|
+
};
|
80
|
+
},
|
81
|
+
onChange: () => {
|
82
|
+
return (event) => {
|
83
|
+
rowRef()?.row.toggleSelected(event.target.checked);
|
84
|
+
};
|
85
|
+
}
|
86
|
+
}),
|
87
|
+
expandButton && /* @__PURE__ */ jsx_runtime.jsx(import_expand_button.ExpandButton, {}),
|
88
|
+
pinButtons && /* @__PURE__ */ jsx_runtime.jsx("span", {
|
89
|
+
style: { fontStyle: "italic", fontSize: "0.8em" },
|
90
|
+
children: "(Pin)"
|
91
|
+
}),
|
92
|
+
useBold ? /* @__PURE__ */ jsx_runtime.jsx(import_cell_text_bold.CellTextBold, {
|
93
|
+
className: "anocca-selected-cell-text",
|
94
|
+
children
|
95
|
+
}) : /* @__PURE__ */ jsx_runtime.jsx(import_cell_text.CellText, {
|
96
|
+
children
|
97
|
+
})
|
98
|
+
]
|
99
|
+
});
|
100
|
+
};
|
101
|
+
|
102
|
+
//# debugId=B3C709EFE95E8E0A64756E2164756E21
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/cell.tsx"],
|
4
|
+
"sourcesContent": [
|
5
|
+
"import React from \"react\";\nimport { CellProps, shallowEqual, useRowProps, useRowRef } from \"@rttui/core\";\nimport { CellText } from \"./cell_text.cjs\";\nimport { CellTextBold } from \"./cell_text_bold.cjs\";\nimport { Checkbox } from \"./checkbox.cjs\";\nimport { ExpandButton } from \"./expand_button.cjs\";\n\nexport const Cell: React.FC<CellProps> = ({\n children,\n checkbox = false,\n expandButton = false,\n pinButtons = false,\n highlightSelected = false,\n}) => {\n const { depth, isSelected } = useRowProps({\n callback: (vrow) => {\n const row = vrow.row;\n return {\n depth: row.depth,\n isSelected: row.getIsSelected(),\n };\n },\n areCallbackOutputEqual: shallowEqual,\n dependencies: [{ type: \"tanstack_table\" }],\n });\n\n const rowRef = useRowRef();\n\n const containerStyle: React.CSSProperties = {\n display: \"flex\",\n alignItems: \"center\",\n gap: \"8px\",\n paddingLeft: `${depth * 20}px`,\n };\n\n const useBold = highlightSelected && isSelected;\n\n return (\n <div style={containerStyle}>\n {checkbox && (\n <Checkbox\n getProps={() => {\n const row = rowRef()?.row;\n if (!row) return {};\n return {\n checked: row.getIsSelected(),\n disabled: !row.getCanSelect(),\n indeterminate: row.getIsSomeSelected(),\n };\n }}\n onChange={() => {\n // Return the actual handler function\n return (event: React.ChangeEvent<HTMLInputElement>) => {\n rowRef()?.row.toggleSelected(event.target.checked);\n };\n }}\n />\n )}\n {expandButton && <ExpandButton />}\n {pinButtons && (\n <span style={{ fontStyle: \"italic\", fontSize: \"0.8em\" }}>(Pin)</span>\n )}\n {useBold ? (\n <CellTextBold className=\"anocca-selected-cell-text\">\n {children}\n </CellTextBold>\n ) : (\n <CellText>{children}</CellText>\n )}\n </div>\n );\n};\n"
|
6
|
+
],
|
7
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACgE,IAAhE;AACyB,IAAzB;AAC6B,IAA7B;AACyB,IAAzB;AAC6B,IAA7B;AAAA;AAEO,IAAM,OAA4B;AAAA,EACvC;AAAA,EACA,WAAW;AAAA,EACX,eAAe;AAAA,EACf,aAAa;AAAA,EACb,oBAAoB;AAAA,MAChB;AAAA,EACJ,QAAQ,OAAO,eAAe,wBAAY;AAAA,IACxC,UAAU,CAAC,SAAS;AAAA,MAClB,MAAM,MAAM,KAAK;AAAA,MACjB,OAAO;AAAA,QACL,OAAO,IAAI;AAAA,QACX,YAAY,IAAI,cAAc;AAAA,MAChC;AAAA;AAAA,IAEF,wBAAwB;AAAA,IACxB,cAAc,CAAC,EAAE,MAAM,iBAAiB,CAAC;AAAA,EAC3C,CAAC;AAAA,EAED,MAAM,SAAS,sBAAU;AAAA,EAEzB,MAAM,iBAAsC;AAAA,IAC1C,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,KAAK;AAAA,IACL,aAAa,GAAG,QAAQ;AAAA,EAC1B;AAAA,EAEA,MAAM,UAAU,qBAAqB;AAAA,EAErC,uBACE,iBA+BE,OA/BF;AAAA,IAAK,OAAO;AAAA,IAAZ,UA+BE;AAAA,MA9BC,4BACC,gBAAC,0BAAD;AAAA,QACE,UAAU,MAAM;AAAA,UACd,MAAM,MAAM,OAAO,GAAG;AAAA,UACtB,KAAK;AAAA,YAAK,OAAO,CAAC;AAAA,UAClB,OAAO;AAAA,YACL,SAAS,IAAI,cAAc;AAAA,YAC3B,WAAW,IAAI,aAAa;AAAA,YAC5B,eAAe,IAAI,kBAAkB;AAAA,UACvC;AAAA;AAAA,QAEF,UAAU,MAAM;AAAA,UAEd,OAAO,CAAC,UAA+C;AAAA,YACrD,OAAO,GAAG,IAAI,eAAe,MAAM,OAAO,OAAO;AAAA;AAAA;AAAA,OAGvD;AAAA,MAED,gCAAgB,gBAAC,mCAAD,EAAc;AAAA,MAC9B,8BACC,gBAAgE,QAAhE;AAAA,QAAM,OAAO,EAAE,WAAW,UAAU,UAAU,QAAQ;AAAA,QAAtD;AAAA,OAAgE;AAAA,MAEjE,0BACC,gBAEE,oCAFF;AAAA,QAAc,WAAU;AAAA,QAAxB;AAAA,OAEE,oBAEF,gBAAsB,2BAAtB;AAAA;AAAA,OAAsB;AAAA;AAAA,GAExB;AAAA;",
|
8
|
+
"debugId": "B3C709EFE95E8E0A64756E2164756E21",
|
9
|
+
"names": []
|
10
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
6
|
+
var __toCommonJS = (from) => {
|
7
|
+
var entry = __moduleCache.get(from), desc;
|
8
|
+
if (entry)
|
9
|
+
return entry;
|
10
|
+
entry = __defProp({}, "__esModule", { value: true });
|
11
|
+
if (from && typeof from === "object" || typeof from === "function")
|
12
|
+
__getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
|
13
|
+
get: () => from[key],
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
15
|
+
}));
|
16
|
+
__moduleCache.set(from, entry);
|
17
|
+
return entry;
|
18
|
+
};
|
19
|
+
var __export = (target, all) => {
|
20
|
+
for (var name in all)
|
21
|
+
__defProp(target, name, {
|
22
|
+
get: all[name],
|
23
|
+
enumerable: true,
|
24
|
+
configurable: true,
|
25
|
+
set: (newValue) => all[name] = () => newValue
|
26
|
+
});
|
27
|
+
};
|
28
|
+
|
29
|
+
// packages/skin-anocca/src/cell_avatar.tsx
|
30
|
+
var exports_cell_avatar = {};
|
31
|
+
__export(exports_cell_avatar, {
|
32
|
+
CellAvatar: () => CellAvatar
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(exports_cell_avatar);
|
35
|
+
var jsx_runtime = require("react/jsx-runtime");
|
36
|
+
var sizeMap = {
|
37
|
+
sm: 24,
|
38
|
+
md: 32,
|
39
|
+
lg: 40
|
40
|
+
};
|
41
|
+
var CellAvatar = ({
|
42
|
+
src,
|
43
|
+
alt = "",
|
44
|
+
size = "md"
|
45
|
+
}) => {
|
46
|
+
const dimension = sizeMap[size];
|
47
|
+
const style = {
|
48
|
+
width: `${dimension}px`,
|
49
|
+
height: `${dimension}px`,
|
50
|
+
borderRadius: "50%",
|
51
|
+
objectFit: "cover",
|
52
|
+
backgroundColor: "#f9fafb"
|
53
|
+
};
|
54
|
+
const effectiveAlt = alt || `Avatar image`;
|
55
|
+
return /* @__PURE__ */ jsx_runtime.jsx("img", {
|
56
|
+
src,
|
57
|
+
alt: effectiveAlt,
|
58
|
+
style
|
59
|
+
});
|
60
|
+
};
|
61
|
+
|
62
|
+
//# debugId=69093E2BE09E547364756E2164756E21
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/cell_avatar.tsx"],
|
4
|
+
"sourcesContent": [
|
5
|
+
"import { CellAvatarProps } from \"@rttui/core\";\nimport React from \"react\";\n\n// Define the size mapping for styling\nconst sizeMap = {\n sm: 24, // Corresponds to Tailwind's size-6 (6 * 4px = 24px)\n md: 32, // Corresponds to Tailwind's size-8 (8 * 4px = 32px)\n lg: 40, // Corresponds to Tailwind's size-10 (10 * 4px = 40px)\n};\n\n// Implement the CellAvatar component for the Anocca skin\nexport const CellAvatar: React.FC<CellAvatarProps> = ({\n src,\n alt = \"\",\n size = \"md\",\n}) => {\n const dimension = sizeMap[size];\n\n // Basic styling for the avatar image\n const style: React.CSSProperties = {\n width: `${dimension}px`,\n height: `${dimension}px`,\n borderRadius: \"50%\", // Equivalent to rounded-full\n objectFit: \"cover\", // Ensures the image covers the area nicely\n // Placeholder background - Anocca skin might provide specific colors\n backgroundColor: \"#f9fafb\", // Equivalent to bg-gray-50\n };\n\n // It's generally good practice to provide an alt attribute for accessibility\n const effectiveAlt = alt || `Avatar image`;\n\n return <img src={src} alt={effectiveAlt} style={style} />;\n};\n"
|
6
|
+
],
|
7
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,UAAU;AAAA,EACd,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAGO,IAAM,aAAwC;AAAA,EACnD;AAAA,EACA,MAAM;AAAA,EACN,OAAO;AAAA,MACH;AAAA,EACJ,MAAM,YAAY,QAAQ;AAAA,EAG1B,MAAM,QAA6B;AAAA,IACjC,OAAO,GAAG;AAAA,IACV,QAAQ,GAAG;AAAA,IACX,cAAc;AAAA,IACd,WAAW;AAAA,IAEX,iBAAiB;AAAA,EACnB;AAAA,EAGA,MAAM,eAAe,OAAO;AAAA,EAE5B,uBAAO,gBAAC,OAAD;AAAA,IAAK;AAAA,IAAU,KAAK;AAAA,IAAc;AAAA,GAAc;AAAA;",
|
8
|
+
"debugId": "69093E2BE09E547364756E2164756E21",
|
9
|
+
"names": []
|
10
|
+
}
|
@@ -0,0 +1,80 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
6
|
+
var __toCommonJS = (from) => {
|
7
|
+
var entry = __moduleCache.get(from), desc;
|
8
|
+
if (entry)
|
9
|
+
return entry;
|
10
|
+
entry = __defProp({}, "__esModule", { value: true });
|
11
|
+
if (from && typeof from === "object" || typeof from === "function")
|
12
|
+
__getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
|
13
|
+
get: () => from[key],
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
15
|
+
}));
|
16
|
+
__moduleCache.set(from, entry);
|
17
|
+
return entry;
|
18
|
+
};
|
19
|
+
var __export = (target, all) => {
|
20
|
+
for (var name in all)
|
21
|
+
__defProp(target, name, {
|
22
|
+
get: all[name],
|
23
|
+
enumerable: true,
|
24
|
+
configurable: true,
|
25
|
+
set: (newValue) => all[name] = () => newValue
|
26
|
+
});
|
27
|
+
};
|
28
|
+
|
29
|
+
// packages/skin-anocca/src/cell_avatar_with_text.tsx
|
30
|
+
var exports_cell_avatar_with_text = {};
|
31
|
+
__export(exports_cell_avatar_with_text, {
|
32
|
+
CellAvatarWithText: () => CellAvatarWithText
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(exports_cell_avatar_with_text);
|
35
|
+
var import_cell_avatar = require("./cell_avatar.cjs");
|
36
|
+
var jsx_runtime = require("react/jsx-runtime");
|
37
|
+
var CellAvatarWithText = ({
|
38
|
+
src,
|
39
|
+
alt,
|
40
|
+
size = "md",
|
41
|
+
primary,
|
42
|
+
secondary,
|
43
|
+
fallback
|
44
|
+
}) => {
|
45
|
+
const containerStyle = {
|
46
|
+
display: "flex",
|
47
|
+
alignItems: "center",
|
48
|
+
gap: "16px"
|
49
|
+
};
|
50
|
+
const textStyle = {
|
51
|
+
fontSize: "0.875rem",
|
52
|
+
fontWeight: 500,
|
53
|
+
color: "#111827",
|
54
|
+
overflow: "hidden",
|
55
|
+
textOverflow: "ellipsis",
|
56
|
+
whiteSpace: "nowrap"
|
57
|
+
};
|
58
|
+
const effectiveAlt = alt;
|
59
|
+
return /* @__PURE__ */ jsx_runtime.jsxs("div", {
|
60
|
+
style: containerStyle,
|
61
|
+
children: [
|
62
|
+
/* @__PURE__ */ jsx_runtime.jsx(import_cell_avatar.CellAvatar, {
|
63
|
+
src,
|
64
|
+
alt: effectiveAlt,
|
65
|
+
size,
|
66
|
+
fallback
|
67
|
+
}),
|
68
|
+
/* @__PURE__ */ jsx_runtime.jsx("div", {
|
69
|
+
style: textStyle,
|
70
|
+
children: primary
|
71
|
+
}),
|
72
|
+
secondary && /* @__PURE__ */ jsx_runtime.jsx("div", {
|
73
|
+
style: textStyle,
|
74
|
+
children: secondary
|
75
|
+
})
|
76
|
+
]
|
77
|
+
});
|
78
|
+
};
|
79
|
+
|
80
|
+
//# debugId=AEC0EDD2ED46CF2A64756E2164756E21
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/cell_avatar_with_text.tsx"],
|
4
|
+
"sourcesContent": [
|
5
|
+
"import React from \"react\";\nimport { CellAvatar } from \"./cell_avatar.cjs\"; // Import the existing CellAvatar and its props\nimport { CellAvatarWithTextProps } from \"@rttui/core\";\n\n// Implement the CellAvatarWithText component for the Anocca skin\nexport const CellAvatarWithText: React.FC<CellAvatarWithTextProps> = ({\n src,\n alt,\n size = \"md\", // Default size consistent with CellAvatar\n primary,\n secondary,\n fallback,\n}) => {\n // Basic styles for the container div\n const containerStyle: React.CSSProperties = {\n display: \"flex\",\n alignItems: \"center\",\n gap: \"16px\", // Equivalent to Tailwind's gap-x-4 (4 * 4px = 16px)\n };\n\n // Basic styles for the text div\n const textStyle: React.CSSProperties = {\n fontSize: \"0.875rem\", // Equivalent to text-sm (14px)\n fontWeight: 500, // Equivalent to font-medium\n color: \"#111827\", // Equivalent to text-gray-900 (Placeholder, Anocca might have specific colors)\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\", // Equivalent to truncate\n };\n\n // Generate a meaningful alt text if none provided\n const effectiveAlt = alt;\n\n return (\n <div style={containerStyle}>\n <CellAvatar\n src={src}\n alt={effectiveAlt}\n size={size}\n fallback={fallback}\n />\n <div style={textStyle}>{primary}</div>\n {secondary && <div style={textStyle}>{secondary}</div>}\n </div>\n );\n};\n"
|
6
|
+
],
|
7
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAC2B,IAA3B;AAAA;AAIO,IAAM,qBAAwD;AAAA,EACnE;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA;AAAA,MACI;AAAA,EAEJ,MAAM,iBAAsC;AAAA,IAC1C,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,KAAK;AAAA,EACP;AAAA,EAGA,MAAM,YAAiC;AAAA,IACrC,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,UAAU;AAAA,IACV,cAAc;AAAA,IACd,YAAY;AAAA,EACd;AAAA,EAGA,MAAM,eAAe;AAAA,EAErB,uBACE,iBASE,OATF;AAAA,IAAK,OAAO;AAAA,IAAZ,UASE;AAAA,sBARA,gBAAC,+BAAD;AAAA,QACE;AAAA,QACA,KAAK;AAAA,QACL;AAAA,QACA;AAAA,OACF;AAAA,sBACA,gBAAkC,OAAlC;AAAA,QAAK,OAAO;AAAA,QAAZ,UAAwB;AAAA,OAAU;AAAA,MACjC,6BAAa,gBAAoC,OAApC;AAAA,QAAK,OAAO;AAAA,QAAZ,UAAwB;AAAA,OAAY;AAAA;AAAA,GAClD;AAAA;",
|
8
|
+
"debugId": "AEC0EDD2ED46CF2A64756E2164756E21",
|
9
|
+
"names": []
|
10
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
6
|
+
var __toCommonJS = (from) => {
|
7
|
+
var entry = __moduleCache.get(from), desc;
|
8
|
+
if (entry)
|
9
|
+
return entry;
|
10
|
+
entry = __defProp({}, "__esModule", { value: true });
|
11
|
+
if (from && typeof from === "object" || typeof from === "function")
|
12
|
+
__getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
|
13
|
+
get: () => from[key],
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
15
|
+
}));
|
16
|
+
__moduleCache.set(from, entry);
|
17
|
+
return entry;
|
18
|
+
};
|
19
|
+
var __export = (target, all) => {
|
20
|
+
for (var name in all)
|
21
|
+
__defProp(target, name, {
|
22
|
+
get: all[name],
|
23
|
+
enumerable: true,
|
24
|
+
configurable: true,
|
25
|
+
set: (newValue) => all[name] = () => newValue
|
26
|
+
});
|
27
|
+
};
|
28
|
+
|
29
|
+
// packages/skin-anocca/src/cell_badge.tsx
|
30
|
+
var exports_cell_badge = {};
|
31
|
+
__export(exports_cell_badge, {
|
32
|
+
CellBadge: () => CellBadge
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(exports_cell_badge);
|
35
|
+
var jsx_runtime = require("react/jsx-runtime");
|
36
|
+
var colorStyles = {
|
37
|
+
gray: { backgroundColor: "#f3f4f6", color: "#1f2937" },
|
38
|
+
red: { backgroundColor: "#fee2e2", color: "#991b1b" },
|
39
|
+
yellow: { backgroundColor: "#fef9c3", color: "#854d0e" },
|
40
|
+
green: { backgroundColor: "#dcfce7", color: "#166534" },
|
41
|
+
blue: { backgroundColor: "#dbeafe", color: "#1e40af" },
|
42
|
+
indigo: { backgroundColor: "#e0e7ff", color: "#3730a3" },
|
43
|
+
purple: { backgroundColor: "#f3e8ff", color: "#581c87" },
|
44
|
+
pink: { backgroundColor: "#fce7f3", color: "#831843" }
|
45
|
+
};
|
46
|
+
var CellBadge = ({
|
47
|
+
children,
|
48
|
+
color = "gray"
|
49
|
+
}) => {
|
50
|
+
const baseStyle = {
|
51
|
+
display: "inline-flex",
|
52
|
+
alignItems: "center",
|
53
|
+
borderRadius: "9999px",
|
54
|
+
padding: "0.125rem 0.625rem",
|
55
|
+
fontSize: "0.75rem",
|
56
|
+
fontWeight: 500,
|
57
|
+
whiteSpace: "nowrap"
|
58
|
+
};
|
59
|
+
const finalStyle = { ...baseStyle, ...colorStyles[color] };
|
60
|
+
return /* @__PURE__ */ jsx_runtime.jsx("span", {
|
61
|
+
style: finalStyle,
|
62
|
+
children
|
63
|
+
});
|
64
|
+
};
|
65
|
+
|
66
|
+
//# debugId=BFD3F55FA14D68F364756E2164756E21
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/cell_badge.tsx"],
|
4
|
+
"sourcesContent": [
|
5
|
+
"import React from \"react\";\nimport { CellBadgeProps, BadgeColor } from \"@rttui/core\";\n// Map badge colors to basic CSS style objects (placeholders)\nconst colorStyles: Record<BadgeColor, React.CSSProperties> = {\n gray: { backgroundColor: \"#f3f4f6\", color: \"#1f2937\" }, // bg-gray-100, text-gray-800\n red: { backgroundColor: \"#fee2e2\", color: \"#991b1b\" }, // bg-red-100, text-red-800\n yellow: { backgroundColor: \"#fef9c3\", color: \"#854d0e\" }, // bg-yellow-100, text-yellow-800\n green: { backgroundColor: \"#dcfce7\", color: \"#166534\" }, // bg-green-100, text-green-800\n blue: { backgroundColor: \"#dbeafe\", color: \"#1e40af\" }, // bg-blue-100, text-blue-800\n indigo: { backgroundColor: \"#e0e7ff\", color: \"#3730a3\" }, // bg-indigo-100, text-indigo-800\n purple: { backgroundColor: \"#f3e8ff\", color: \"#581c87\" }, // bg-purple-100, text-purple-800\n pink: { backgroundColor: \"#fce7f3\", color: \"#831843\" }, // bg-pink-100, text-pink-800\n};\n\n// Implement the CellBadge component for the Anocca skin\nexport const CellBadge: React.FC<CellBadgeProps> = ({\n children,\n color = \"gray\", // Default to gray if no color is provided\n}) => {\n // Base styles for the badge\n const baseStyle: React.CSSProperties = {\n display: \"inline-flex\",\n alignItems: \"center\",\n borderRadius: \"9999px\", // Equivalent to rounded-full\n padding: \"0.125rem 0.625rem\", // Equivalent to py-0.5 px-2.5\n fontSize: \"0.75rem\", // Equivalent to text-xs\n fontWeight: 500, // Equivalent to font-medium\n whiteSpace: \"nowrap\", // Prevent wrapping\n };\n\n // Merge base styles with color-specific styles\n const finalStyle = { ...baseStyle, ...colorStyles[color] };\n\n return <span style={finalStyle}>{children}</span>;\n};\n"
|
6
|
+
],
|
7
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAM,cAAuD;AAAA,EAC3D,MAAM,EAAE,iBAAiB,WAAW,OAAO,UAAU;AAAA,EACrD,KAAK,EAAE,iBAAiB,WAAW,OAAO,UAAU;AAAA,EACpD,QAAQ,EAAE,iBAAiB,WAAW,OAAO,UAAU;AAAA,EACvD,OAAO,EAAE,iBAAiB,WAAW,OAAO,UAAU;AAAA,EACtD,MAAM,EAAE,iBAAiB,WAAW,OAAO,UAAU;AAAA,EACrD,QAAQ,EAAE,iBAAiB,WAAW,OAAO,UAAU;AAAA,EACvD,QAAQ,EAAE,iBAAiB,WAAW,OAAO,UAAU;AAAA,EACvD,MAAM,EAAE,iBAAiB,WAAW,OAAO,UAAU;AACvD;AAGO,IAAM,YAAsC;AAAA,EACjD;AAAA,EACA,QAAQ;AAAA,MACJ;AAAA,EAEJ,MAAM,YAAiC;AAAA,IACrC,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,SAAS;AAAA,IACT,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,YAAY;AAAA,EACd;AAAA,EAGA,MAAM,aAAa,KAAK,cAAc,YAAY,OAAO;AAAA,EAEzD,uBAAO,gBAAqC,QAArC;AAAA,IAAM,OAAO;AAAA,IAAb;AAAA,GAAqC;AAAA;",
|
8
|
+
"debugId": "BFD3F55FA14D68F364756E2164756E21",
|
9
|
+
"names": []
|
10
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
6
|
+
var __toCommonJS = (from) => {
|
7
|
+
var entry = __moduleCache.get(from), desc;
|
8
|
+
if (entry)
|
9
|
+
return entry;
|
10
|
+
entry = __defProp({}, "__esModule", { value: true });
|
11
|
+
if (from && typeof from === "object" || typeof from === "function")
|
12
|
+
__getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
|
13
|
+
get: () => from[key],
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
15
|
+
}));
|
16
|
+
__moduleCache.set(from, entry);
|
17
|
+
return entry;
|
18
|
+
};
|
19
|
+
var __export = (target, all) => {
|
20
|
+
for (var name in all)
|
21
|
+
__defProp(target, name, {
|
22
|
+
get: all[name],
|
23
|
+
enumerable: true,
|
24
|
+
configurable: true,
|
25
|
+
set: (newValue) => all[name] = () => newValue
|
26
|
+
});
|
27
|
+
};
|
28
|
+
|
29
|
+
// packages/skin-anocca/src/cell_currency.tsx
|
30
|
+
var exports_cell_currency = {};
|
31
|
+
__export(exports_cell_currency, {
|
32
|
+
CellCurrency: () => CellCurrency
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(exports_cell_currency);
|
35
|
+
var jsx_runtime = require("react/jsx-runtime");
|
36
|
+
var CellCurrency = ({
|
37
|
+
value,
|
38
|
+
currency = "USD"
|
39
|
+
}) => {
|
40
|
+
const formatter = new Intl.NumberFormat("en-US", {
|
41
|
+
style: "currency",
|
42
|
+
currency,
|
43
|
+
minimumFractionDigits: 2,
|
44
|
+
maximumFractionDigits: 2
|
45
|
+
});
|
46
|
+
const style = {
|
47
|
+
fontSize: "0.875rem",
|
48
|
+
color: "#6b7280",
|
49
|
+
fontVariantNumeric: "tabular-nums"
|
50
|
+
};
|
51
|
+
return /* @__PURE__ */ jsx_runtime.jsx("span", {
|
52
|
+
style,
|
53
|
+
children: formatter.format(value)
|
54
|
+
});
|
55
|
+
};
|
56
|
+
|
57
|
+
//# debugId=4D157CC0D2EE1D0764756E2164756E21
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/cell_currency.tsx"],
|
4
|
+
"sourcesContent": [
|
5
|
+
"import { CellCurrencyProps } from \"@rttui/core\";\nimport React from \"react\";\n\n// Implement the CellCurrency component for the Anocca skin\nexport const CellCurrency: React.FC<CellCurrencyProps> = ({\n value,\n currency = \"USD\", // Default to USD if no currency is provided\n}) => {\n // Use Intl.NumberFormat for robust currency formatting\n // The locale ('en-US') can be adjusted if needed, or made dynamic\n const formatter = new Intl.NumberFormat(\"en-US\", {\n style: \"currency\",\n currency: currency,\n minimumFractionDigits: 2, // Standard practice for currency\n maximumFractionDigits: 2,\n });\n\n // Apply styling similar to CellNumber for consistency\n const style: React.CSSProperties = {\n fontSize: \"0.875rem\", // Equivalent to text-sm\n color: \"#6b7280\", // Equivalent to text-gray-500 (Placeholder)\n fontVariantNumeric: \"tabular-nums\", // Align numbers\n // Anocca skin might specify different colors, alignment, etc.\n };\n\n return <span style={style}>{formatter.format(value)}</span>;\n}; "
|
6
|
+
],
|
7
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIO,IAAM,eAA4C;AAAA,EACvD;AAAA,EACA,WAAW;AAAA,MACP;AAAA,EAGJ,MAAM,YAAY,IAAI,KAAK,aAAa,SAAS;AAAA,IAC/C,OAAO;AAAA,IACP;AAAA,IACA,uBAAuB;AAAA,IACvB,uBAAuB;AAAA,EACzB,CAAC;AAAA,EAGD,MAAM,QAA6B;AAAA,IACjC,UAAU;AAAA,IACV,OAAO;AAAA,IACP,oBAAoB;AAAA,EAEtB;AAAA,EAEA,uBAAO,gBAA+C,QAA/C;AAAA,IAAM;AAAA,IAAN,UAAqB,UAAU,OAAO,KAAK;AAAA,GAAI;AAAA;",
|
8
|
+
"debugId": "4D157CC0D2EE1D0764756E2164756E21",
|
9
|
+
"names": []
|
10
|
+
}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
6
|
+
var __toCommonJS = (from) => {
|
7
|
+
var entry = __moduleCache.get(from), desc;
|
8
|
+
if (entry)
|
9
|
+
return entry;
|
10
|
+
entry = __defProp({}, "__esModule", { value: true });
|
11
|
+
if (from && typeof from === "object" || typeof from === "function")
|
12
|
+
__getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
|
13
|
+
get: () => from[key],
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
15
|
+
}));
|
16
|
+
__moduleCache.set(from, entry);
|
17
|
+
return entry;
|
18
|
+
};
|
19
|
+
var __export = (target, all) => {
|
20
|
+
for (var name in all)
|
21
|
+
__defProp(target, name, {
|
22
|
+
get: all[name],
|
23
|
+
enumerable: true,
|
24
|
+
configurable: true,
|
25
|
+
set: (newValue) => all[name] = () => newValue
|
26
|
+
});
|
27
|
+
};
|
28
|
+
|
29
|
+
// packages/skin-anocca/src/cell_link.tsx
|
30
|
+
var exports_cell_link = {};
|
31
|
+
__export(exports_cell_link, {
|
32
|
+
CellLink: () => CellLink
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(exports_cell_link);
|
35
|
+
var jsx_runtime = require("react/jsx-runtime");
|
36
|
+
var CellLink = ({
|
37
|
+
href,
|
38
|
+
children,
|
39
|
+
srText,
|
40
|
+
style,
|
41
|
+
...props
|
42
|
+
}) => {
|
43
|
+
const baseStyle = {
|
44
|
+
fontSize: "0.875rem",
|
45
|
+
fontWeight: 500,
|
46
|
+
color: "#4f46e5",
|
47
|
+
textDecoration: "none",
|
48
|
+
cursor: "pointer"
|
49
|
+
};
|
50
|
+
const srOnlyStyle = {
|
51
|
+
position: "absolute",
|
52
|
+
width: "1px",
|
53
|
+
height: "1px",
|
54
|
+
padding: 0,
|
55
|
+
margin: "-1px",
|
56
|
+
overflow: "hidden",
|
57
|
+
clip: "rect(0, 0, 0, 0)",
|
58
|
+
whiteSpace: "nowrap",
|
59
|
+
borderWidth: 0
|
60
|
+
};
|
61
|
+
return /* @__PURE__ */ jsx_runtime.jsxs("a", {
|
62
|
+
href,
|
63
|
+
style: { ...baseStyle, ...style },
|
64
|
+
...props,
|
65
|
+
children: [
|
66
|
+
children,
|
67
|
+
srText && /* @__PURE__ */ jsx_runtime.jsxs("span", {
|
68
|
+
style: srOnlyStyle,
|
69
|
+
children: [
|
70
|
+
", ",
|
71
|
+
srText
|
72
|
+
]
|
73
|
+
})
|
74
|
+
]
|
75
|
+
});
|
76
|
+
};
|
77
|
+
|
78
|
+
//# debugId=536828AD645669D764756E2164756E21
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/cell_link.tsx"],
|
4
|
+
"sourcesContent": [
|
5
|
+
"import React from \"react\";\n\n// Define the props for CellLink, extending standard Anchor attributes\ninterface CellLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {\n href: string; // The URL the link points to (required)\n children: React.ReactNode; // The visible content of the link (required)\n srText?: string; // Additional text for screen readers\n}\n\n// Implement the CellLink component for the Anocca skin\nexport const CellLink: React.FC<CellLinkProps> = ({\n href,\n children,\n srText,\n style, // Allow consuming style prop\n ...props // Pass through other anchor attributes (target, rel, etc.)\n}) => {\n // Basic link styling - Anocca will likely provide specific link styles\n const baseStyle: React.CSSProperties = {\n fontSize: \"0.875rem\", // Equivalent to text-sm\n fontWeight: 500, // Equivalent to font-medium\n color: \"#4f46e5\", // Equivalent to text-indigo-600 (Placeholder)\n textDecoration: \"none\", // Common practice, hover effect can add underline\n cursor: \"pointer\",\n // Add hover effect (though direct inline hover isn't possible)\n // Anocca would likely use CSS classes for this\n };\n\n // Style for screen reader only text\n const srOnlyStyle: React.CSSProperties = {\n position: \"absolute\",\n width: \"1px\",\n height: \"1px\",\n padding: 0,\n margin: \"-1px\",\n overflow: \"hidden\",\n clip: \"rect(0, 0, 0, 0)\",\n whiteSpace: \"nowrap\",\n borderWidth: 0,\n };\n\n return (\n <a href={href} style={{ ...baseStyle, ...style }} {...props}>\n {children}\n {srText && <span style={srOnlyStyle}>, {srText}</span>}\n </a>\n );\n};\n"
|
6
|
+
],
|
7
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUO,IAAM,WAAoC;AAAA,EAC/C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,KACG;AAAA,MACC;AAAA,EAEJ,MAAM,YAAiC;AAAA,IACrC,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,gBAAgB;AAAA,IAChB,QAAQ;AAAA,EAGV;AAAA,EAGA,MAAM,cAAmC;AAAA,IACvC,UAAU;AAAA,IACV,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,aAAa;AAAA,EACf;AAAA,EAEA,uBACE,iBAGE,KAHF;AAAA,IAAG;AAAA,IAAY,OAAO,KAAK,cAAc,MAAM;AAAA,OAAO;AAAA,IAAtD,UAGE;AAAA,MAFC;AAAA,MACA,0BAAU,iBAAsC,QAAtC;AAAA,QAAM,OAAO;AAAA,QAAb,UAAsC;AAAA,UAAtC;AAAA,UAA6B;AAAA;AAAA,OAAS;AAAA;AAAA,GACjD;AAAA;",
|
8
|
+
"debugId": "536828AD645669D764756E2164756E21",
|
9
|
+
"names": []
|
10
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
6
|
+
var __toCommonJS = (from) => {
|
7
|
+
var entry = __moduleCache.get(from), desc;
|
8
|
+
if (entry)
|
9
|
+
return entry;
|
10
|
+
entry = __defProp({}, "__esModule", { value: true });
|
11
|
+
if (from && typeof from === "object" || typeof from === "function")
|
12
|
+
__getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
|
13
|
+
get: () => from[key],
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
15
|
+
}));
|
16
|
+
__moduleCache.set(from, entry);
|
17
|
+
return entry;
|
18
|
+
};
|
19
|
+
var __export = (target, all) => {
|
20
|
+
for (var name in all)
|
21
|
+
__defProp(target, name, {
|
22
|
+
get: all[name],
|
23
|
+
enumerable: true,
|
24
|
+
configurable: true,
|
25
|
+
set: (newValue) => all[name] = () => newValue
|
26
|
+
});
|
27
|
+
};
|
28
|
+
|
29
|
+
// packages/skin-anocca/src/cell_number.tsx
|
30
|
+
var exports_cell_number = {};
|
31
|
+
__export(exports_cell_number, {
|
32
|
+
CellNumber: () => CellNumber
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(exports_cell_number);
|
35
|
+
var jsx_runtime = require("react/jsx-runtime");
|
36
|
+
var CellNumber = ({ children }) => {
|
37
|
+
const style = {
|
38
|
+
fontSize: "0.875rem",
|
39
|
+
color: "#6b7280",
|
40
|
+
fontVariantNumeric: "tabular-nums"
|
41
|
+
};
|
42
|
+
return /* @__PURE__ */ jsx_runtime.jsx("span", {
|
43
|
+
style,
|
44
|
+
children
|
45
|
+
});
|
46
|
+
};
|
47
|
+
|
48
|
+
//# debugId=D30B8EE50876B6AB64756E2164756E21
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/cell_number.tsx"],
|
4
|
+
"sourcesContent": [
|
5
|
+
"import React from \"react\";\n\ntype CellNumberProps = {\n children: React.ReactNode;\n};\n\nexport const CellNumber: React.FC<CellNumberProps> = ({ children }) => {\n const style: React.CSSProperties = {\n fontSize: \"0.875rem\",\n color: \"#6b7280\",\n fontVariantNumeric: \"tabular-nums\",\n };\n\n return <span style={style}>{children}</span>;\n};\n"
|
6
|
+
],
|
7
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAM,aAAwC,GAAG,eAAe;AAAA,EACrE,MAAM,QAA6B;AAAA,IACjC,UAAU;AAAA,IACV,OAAO;AAAA,IACP,oBAAoB;AAAA,EACtB;AAAA,EAEA,uBAAO,gBAAgC,QAAhC;AAAA,IAAM;AAAA,IAAN;AAAA,GAAgC;AAAA;",
|
8
|
+
"debugId": "D30B8EE50876B6AB64756E2164756E21",
|
9
|
+
"names": []
|
10
|
+
}
|