jcicl 1.2.4 → 1.2.6
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/Pill/Pill.d.ts +1 -0
- package/Pill/Pill.js +23 -21
- package/Table/Table.d.ts +2 -1
- package/Table/Table.js +5616 -5605
- package/assets/style.css +1 -1
- package/assets/tailwind.css +2 -2
- package/package.json +1 -1
- package/theme.d.ts +2 -0
- package/theme.js +2 -0
- package/utils.d.ts +1 -0
- package/utils.js +38 -33
package/Pill/Pill.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export interface PillProps {
|
|
|
16
16
|
* Use `true` for the default textColor-based ring, or pass a CSS color for a custom ring.
|
|
17
17
|
*/
|
|
18
18
|
ring?: boolean | string;
|
|
19
|
+
className?: string;
|
|
19
20
|
}
|
|
20
21
|
export declare const Pill: React.FC<PillProps & {
|
|
21
22
|
children: React.ReactNode;
|
package/Pill/Pill.js
CHANGED
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { useThemeColors as
|
|
4
|
-
import { cn as
|
|
5
|
-
const
|
|
6
|
-
const o =
|
|
1
|
+
import { jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import f from "../theme.js";
|
|
3
|
+
import { useThemeColors as h } from "../ThemeContext.js";
|
|
4
|
+
import { cn as C } from "../cn.js";
|
|
5
|
+
const y = "font-['Roboto',sans-serif] font-medium cursor-default bg-[var(--pill-bg)] text-[var(--pill-color)]", b = "text-[13px] leading-[normal] px-[13px] py-[3px]", v = "text-base leading-none px-3.5 py-2", B = "inline-flex items-center gap-2", k = "shadow-[0_0_0_1px_var(--pill-ring)]", w = (n) => {
|
|
6
|
+
const o = h(), {
|
|
7
7
|
backgroundColor: t,
|
|
8
8
|
textColor: c,
|
|
9
9
|
type: r = "primary",
|
|
10
|
-
squared:
|
|
10
|
+
squared: a = !1,
|
|
11
11
|
icon: l,
|
|
12
|
-
size:
|
|
12
|
+
size: i = "sm",
|
|
13
13
|
ring: e,
|
|
14
|
+
className: m,
|
|
14
15
|
children: p
|
|
15
|
-
} = n,
|
|
16
|
-
"--pill-bg":
|
|
17
|
-
"--pill-color":
|
|
16
|
+
} = n, d = t ?? (r === "secondary" ? o.themeIconBackgroundB : o.themeIconBackgroundA), u = c ?? (r === "secondary" ? o.themeIconColorB : f.colors.white), s = e === !0 ? o.themeColor : typeof e == "string" ? e : null, g = {
|
|
17
|
+
"--pill-bg": d,
|
|
18
|
+
"--pill-color": u,
|
|
18
19
|
...s && { "--pill-ring": s }
|
|
19
20
|
};
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ x(
|
|
21
22
|
"span",
|
|
22
23
|
{
|
|
23
|
-
className:
|
|
24
|
+
className: C(
|
|
24
25
|
"jciclPillWrapper",
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
l !== void 0 &&
|
|
29
|
-
s &&
|
|
26
|
+
y,
|
|
27
|
+
i === "md" ? v : b,
|
|
28
|
+
a ? "rounded" : "rounded-full",
|
|
29
|
+
l !== void 0 && B,
|
|
30
|
+
s && k,
|
|
31
|
+
m
|
|
30
32
|
),
|
|
31
|
-
style:
|
|
33
|
+
style: g,
|
|
32
34
|
children: [
|
|
33
35
|
l,
|
|
34
36
|
p
|
|
@@ -37,6 +39,6 @@ const C = "font-['Roboto',sans-serif] font-medium cursor-default bg-[var(--pill-
|
|
|
37
39
|
);
|
|
38
40
|
};
|
|
39
41
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
w as Pill,
|
|
43
|
+
w as default
|
|
42
44
|
};
|
package/Table/Table.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export interface TableProps<T extends TableRow = TableRow> {
|
|
|
57
57
|
cellRenderers?: Record<string, (value: unknown, row: T) => React.ReactNode>;
|
|
58
58
|
hideTitleAndActions?: boolean;
|
|
59
59
|
hideShadow?: boolean;
|
|
60
|
+
cellNoWrap?: boolean;
|
|
60
61
|
}
|
|
61
|
-
declare function DataTable<T extends TableRow = TableRow>({ data, columnTitles, rowsPerPage, title, onRowClick, hiddenColumns, defaultSort, extraActions, notSearchableColumns, notSortableColumns, notExportableColumns, scrollable, scrollableMinWidth, stickyColumns, columnOrder, persistKey, cellRenderers, hideTitleAndActions, hideShadow, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
declare function DataTable<T extends TableRow = TableRow>({ data, columnTitles, rowsPerPage, title, onRowClick, hiddenColumns, defaultSort, extraActions, notSearchableColumns, notSortableColumns, notExportableColumns, scrollable, scrollableMinWidth, stickyColumns, columnOrder, persistKey, cellRenderers, hideTitleAndActions, hideShadow, cellNoWrap, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
62
63
|
export default DataTable;
|