@telia/teddy 0.4.19 → 0.5.0

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.
Files changed (69) hide show
  1. package/dist/components/channel-button/channel-button-root.d.ts +3 -3
  2. package/dist/components/channel-button/index.d.ts +3 -3
  3. package/dist/components/checkbox/checkbox-group-list.d.ts +1 -1
  4. package/dist/components/checkbox/index.d.ts +1 -1
  5. package/dist/components/chip/chip-indicator.d.ts +2 -2
  6. package/dist/components/chip/index.d.ts +2 -2
  7. package/dist/components/color-dot/index.d.ts +1 -1
  8. package/dist/components/expandable-card/expandable-card-button.d.ts +2 -2
  9. package/dist/components/expandable-card/index.d.ts +3 -3
  10. package/dist/components/flip-card/flip-card-trigger.d.ts +2 -2
  11. package/dist/components/icon/utils.d.ts +1 -1
  12. package/dist/components/index.cjs +2 -0
  13. package/dist/components/index.d.ts +1 -0
  14. package/dist/components/index.js +2 -0
  15. package/dist/components/modal/modal-close.cjs +1 -0
  16. package/dist/components/modal/modal-close.js +1 -0
  17. package/dist/components/modal/modal-title.d.ts +1 -1
  18. package/dist/components/navigation-menu/navigation-menu.cjs +1 -0
  19. package/dist/components/navigation-menu/navigation-menu.js +1 -0
  20. package/dist/components/notabene/notabene-icon.d.ts +2 -2
  21. package/dist/components/notification/index.d.ts +1 -1
  22. package/dist/components/notification/notification-icon.d.ts +2 -2
  23. package/dist/components/notification/notification-root.d.ts +1 -1
  24. package/dist/components/radio-card-group/radio-card-group-content.cjs +1 -0
  25. package/dist/components/radio-card-group/radio-card-group-content.js +1 -0
  26. package/dist/components/radio-card-group/radio-card-group-item-title.cjs +1 -0
  27. package/dist/components/radio-card-group/radio-card-group-item-title.js +1 -0
  28. package/dist/components/radio-card-group/radio-card-group-item.cjs +1 -0
  29. package/dist/components/radio-card-group/radio-card-group-item.js +1 -0
  30. package/dist/components/ribbon/ribbon-root.cjs +7 -6
  31. package/dist/components/ribbon/ribbon-root.d.ts +2 -2
  32. package/dist/components/ribbon/ribbon-root.js +7 -6
  33. package/dist/components/scroll-area/index.d.ts +2 -2
  34. package/dist/components/scroll-area/scroll-area-button.d.ts +2 -2
  35. package/dist/components/table/index.cjs +24 -0
  36. package/dist/components/table/index.d.ts +121 -0
  37. package/dist/components/table/index.js +24 -0
  38. package/dist/components/table/table-body.cjs +26 -0
  39. package/dist/components/table/table-body.d.ts +3 -0
  40. package/dist/components/table/table-body.js +9 -0
  41. package/dist/components/table/table-cell.cjs +44 -0
  42. package/dist/components/table/table-cell.d.ts +21 -0
  43. package/dist/components/table/table-cell.js +27 -0
  44. package/dist/components/table/table-footer.cjs +26 -0
  45. package/dist/components/table/table-footer.d.ts +3 -0
  46. package/dist/components/table/table-footer.js +9 -0
  47. package/dist/components/table/table-head.cjs +47 -0
  48. package/dist/components/table/table-head.d.ts +18 -0
  49. package/dist/components/table/table-head.js +30 -0
  50. package/dist/components/table/table-header.cjs +36 -0
  51. package/dist/components/table/table-header.d.ts +3 -0
  52. package/dist/components/table/table-header.js +19 -0
  53. package/dist/components/table/table-root.cjs +51 -0
  54. package/dist/components/table/table-root.d.ts +10 -0
  55. package/dist/components/table/table-root.js +34 -0
  56. package/dist/components/table/table-row.cjs +26 -0
  57. package/dist/components/table/table-row.d.ts +3 -0
  58. package/dist/components/table/table-row.js +9 -0
  59. package/dist/components/tabs/tabs-scroll-button.d.ts +2 -2
  60. package/dist/components/text-field/index.d.ts +2 -2
  61. package/dist/components/text-field/text-field-button.d.ts +2 -2
  62. package/dist/components/toggle/toggle.d.ts +2 -2
  63. package/dist/main.cjs +2 -0
  64. package/dist/main.js +2 -0
  65. package/dist/style.css +960 -871
  66. package/dist/utils/generate-styling/grid.d.ts +24 -24
  67. package/dist/utils/generate-styling/index.d.ts +16 -16
  68. package/dist/utils/generate-styling/util.d.ts +2 -2
  69. package/package.json +1 -1
@@ -3,12 +3,13 @@ import React__default from "react";
3
3
  import clsx from "clsx";
4
4
  import { Flex } from "../flex/flex.js";
5
5
  const styles = {
6
- "teddy-ribbon": "_teddy-ribbon_14u2k_2",
7
- "teddy-ribbon--rounded": "_teddy-ribbon--rounded_14u2k_6",
8
- "teddy-ribbon--backgroundColor-orange-100": "_teddy-ribbon--backgroundColor-orange-100_14u2k_9",
9
- "teddy-ribbon--backgroundColor-green-50": "_teddy-ribbon--backgroundColor-green-50_14u2k_12",
10
- "teddy-ribbon--iconPlacement-top": "_teddy-ribbon--iconPlacement-top_14u2k_19",
11
- "teddy-ribbon--iconPlacement-center": "_teddy-ribbon--iconPlacement-center_14u2k_22"
6
+ "teddy-ribbon": "_teddy-ribbon_4vjnf_2",
7
+ "teddy-ribbon--rounded": "_teddy-ribbon--rounded_4vjnf_6",
8
+ "teddy-ribbon--backgroundColor-orange-50": "_teddy-ribbon--backgroundColor-orange-50_4vjnf_9",
9
+ "teddy-ribbon--backgroundColor-orange-100": "_teddy-ribbon--backgroundColor-orange-100_4vjnf_12",
10
+ "teddy-ribbon--backgroundColor-green-50": "_teddy-ribbon--backgroundColor-green-50_4vjnf_15",
11
+ "teddy-ribbon--iconPlacement-top": "_teddy-ribbon--iconPlacement-top_4vjnf_22",
12
+ "teddy-ribbon--iconPlacement-center": "_teddy-ribbon--iconPlacement-center_4vjnf_25"
12
13
  };
13
14
  const rootClassName = "teddy-ribbon";
14
15
  const Root = React__default.forwardRef(
@@ -21,7 +21,7 @@ export declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<
21
21
  loading?: boolean | undefined;
22
22
  fullWidth?: boolean | undefined;
23
23
  size?: "sm" | "md" | "lg" | undefined;
24
- variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
24
+ variant?: "text" | "primary" | "list-item" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
25
25
  borderStyle?: ("default" | "dashed") | undefined;
26
26
  } & {
27
27
  iconOnly: true;
@@ -33,7 +33,7 @@ export declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<
33
33
  loading?: boolean | undefined;
34
34
  fullWidth?: boolean | undefined;
35
35
  size?: "sm" | "md" | "lg" | undefined;
36
- variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
36
+ variant?: "text" | "primary" | "list-item" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
37
37
  borderStyle?: ("default" | "dashed") | undefined;
38
38
  } & {
39
39
  iconOnly?: false | undefined;
@@ -17,7 +17,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
17
17
  loading?: boolean | undefined;
18
18
  fullWidth?: boolean | undefined;
19
19
  size?: "sm" | "md" | "lg" | undefined;
20
- variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
20
+ variant?: "text" | "primary" | "list-item" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
21
21
  borderStyle?: ("default" | "dashed") | undefined;
22
22
  } & {
23
23
  iconOnly: true;
@@ -29,7 +29,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
29
29
  loading?: boolean | undefined;
30
30
  fullWidth?: boolean | undefined;
31
31
  size?: "sm" | "md" | "lg" | undefined;
32
- variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
32
+ variant?: "text" | "primary" | "list-item" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
33
33
  borderStyle?: ("default" | "dashed") | undefined;
34
34
  } & {
35
35
  iconOnly?: false | undefined;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const components_table_tableBody = require("./table-body.cjs");
4
+ const components_table_tableCell = require("./table-cell.cjs");
5
+ const components_table_tableFooter = require("./table-footer.cjs");
6
+ const components_table_tableHead = require("./table-head.cjs");
7
+ const components_table_tableHeader = require("./table-header.cjs");
8
+ const components_table_tableRoot = require("./table-root.cjs");
9
+ const components_table_tableRow = require("./table-row.cjs");
10
+ const Table = components_table_tableRoot.Root;
11
+ Table.displayName = "Table";
12
+ Table.Header = components_table_tableHeader.Header;
13
+ Table.Header.displayName = "Table.Header";
14
+ Table.Body = components_table_tableBody.Body;
15
+ Table.Body.displayName = "Table.Body";
16
+ Table.Footer = components_table_tableFooter.Footer;
17
+ Table.Footer.displayName = "Table.Footer";
18
+ Table.Row = components_table_tableRow.Row;
19
+ Table.Row.displayName = "Table.Row";
20
+ Table.Head = components_table_tableHead.Head;
21
+ Table.Head.displayName = "Table.Head";
22
+ Table.Cell = components_table_tableCell.Cell;
23
+ Table.Cell.displayName = "Table.Cell";
24
+ exports.Table = Table;
@@ -0,0 +1,121 @@
1
+ import { Body, BodyProps } from './table-body';
2
+ import { Cell, CellProps } from './table-cell';
3
+ import { Footer, FooterProps } from './table-footer';
4
+ import { Head, HeadProps } from './table-head';
5
+ import { Header, HeaderProps } from './table-header';
6
+ import { RootProps } from './table-root';
7
+ import { Row, RowProps } from './table-row';
8
+
9
+ type TableProps = {
10
+ Root: RootProps;
11
+ Header: HeaderProps;
12
+ Body: BodyProps;
13
+ Footer: FooterProps;
14
+ Row: RowProps;
15
+ Head: HeadProps;
16
+ Cell: CellProps;
17
+ };
18
+ /**
19
+ * Table is a component for displaying data in a tabular format.
20
+ * It provides a set of composable components to build tables with headers, footers,
21
+ * rows, and cells.
22
+ *
23
+ * @component
24
+ *
25
+ * @example
26
+ * // Basic usage
27
+ * <Table>
28
+ * <Table.Header>
29
+ * <Table.Row>
30
+ * <Table.Head>Name</Table.Head>
31
+ * <Table.Head>Email</Table.Head>
32
+ * <Table.Head>Role</Table.Head>
33
+ * </Table.Row>
34
+ * </Table.Header>
35
+ * <Table.Body>
36
+ * <Table.Row>
37
+ * <Table.Cell>John Doe</Table.Cell>
38
+ * <Table.Cell>john@example.com</Table.Cell>
39
+ * <Table.Cell>Admin</Table.Cell>
40
+ * </Table.Row>
41
+ * </Table.Body>
42
+ * </Table>
43
+ */
44
+ declare const Table: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLTableElement> & {
45
+ height?: string | number | undefined;
46
+ width?: string | number | undefined;
47
+ } & import('react').RefAttributes<HTMLTableElement>> & {
48
+ /**
49
+ * Header component for the table. Contains header rows and cells.
50
+ *
51
+ * @component
52
+ *
53
+ * @example
54
+ * <Table.Header>
55
+ * <Table.Row>
56
+ * <Table.Head>Name</Table.Head>
57
+ * <Table.Head>Email</Table.Head>
58
+ * </Table.Row>
59
+ * </Table.Header>
60
+ */
61
+ Header: typeof Header;
62
+ /**
63
+ * Body component for the table. Contains the main data rows and cells.
64
+ *
65
+ * @component
66
+ *
67
+ * @example
68
+ * <Table.Body>
69
+ * <Table.Row>
70
+ * <Table.Cell>John Doe</Table.Cell>
71
+ * <Table.Cell>john@example.com</Table.Cell>
72
+ * </Table.Row>
73
+ * </Table.Body>
74
+ */
75
+ Body: typeof Body;
76
+ /**
77
+ * Footer component for the table. Contains footer rows and cells.
78
+ *
79
+ * @component
80
+ *
81
+ * @example
82
+ * <Table.Footer>
83
+ * <Table.Row>
84
+ * <Table.Cell colSpan={2}>Total: 3 users</Table.Cell>
85
+ * </Table.Row>
86
+ * </Table.Footer>
87
+ */
88
+ Footer: typeof Footer;
89
+ /**
90
+ * Row component for organizing cells horizontally in the table.
91
+ *
92
+ * @component
93
+ *
94
+ * @example
95
+ * <Table.Row>
96
+ * <Table.Cell>John Doe</Table.Cell>
97
+ * <Table.Cell>john@example.com</Table.Cell>
98
+ * </Table.Row>
99
+ */
100
+ Row: typeof Row;
101
+ /**
102
+ * Head component for table header cells. Used within Table.Header rows.
103
+ *
104
+ * @component
105
+ *
106
+ * @example
107
+ * <Table.Head>Name</Table.Head>
108
+ */
109
+ Head: typeof Head;
110
+ /**
111
+ * Cell component for displaying data in the table. Used within Table.Row.
112
+ *
113
+ * @component
114
+ *
115
+ * @example
116
+ * <Table.Cell>John Doe</Table.Cell>
117
+ */
118
+ Cell: typeof Cell;
119
+ };
120
+ export { Table };
121
+ export type { TableProps };
@@ -0,0 +1,24 @@
1
+ import { Body } from "./table-body.js";
2
+ import { Cell } from "./table-cell.js";
3
+ import { Footer } from "./table-footer.js";
4
+ import { Head } from "./table-head.js";
5
+ import { Header } from "./table-header.js";
6
+ import { Root } from "./table-root.js";
7
+ import { Row } from "./table-row.js";
8
+ const Table = Root;
9
+ Table.displayName = "Table";
10
+ Table.Header = Header;
11
+ Table.Header.displayName = "Table.Header";
12
+ Table.Body = Body;
13
+ Table.Body.displayName = "Table.Body";
14
+ Table.Footer = Footer;
15
+ Table.Footer.displayName = "Table.Footer";
16
+ Table.Row = Row;
17
+ Table.Row.displayName = "Table.Row";
18
+ Table.Head = Head;
19
+ Table.Head.displayName = "Table.Head";
20
+ Table.Cell = Cell;
21
+ Table.Cell.displayName = "Table.Cell";
22
+ export {
23
+ Table
24
+ };
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const React = require("react");
5
+ const clsx = require("clsx");
6
+ const components_table_tableRoot = require("./table-root.cjs");
7
+ function _interopNamespaceDefault(e) {
8
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
9
+ if (e) {
10
+ for (const k in e) {
11
+ if (k !== "default") {
12
+ const d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: () => e[k]
16
+ });
17
+ }
18
+ }
19
+ }
20
+ n.default = e;
21
+ return Object.freeze(n);
22
+ }
23
+ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
24
+ const Body = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tbody", { ref, className: clsx(components_table_tableRoot.styles[`${components_table_tableRoot.rootClassName}__body`], className), ...props }));
25
+ Body.displayName = "Body";
26
+ exports.Body = Body;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export type BodyProps = React.HTMLAttributes<HTMLTableSectionElement>;
3
+ export declare const Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttributes<HTMLTableSectionElement>>;
@@ -0,0 +1,9 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import clsx from "clsx";
4
+ import { s as styles, rootClassName } from "./table-root.js";
5
+ const Body = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tbody", { ref, className: clsx(styles[`${rootClassName}__body`], className), ...props }));
6
+ Body.displayName = "Body";
7
+ export {
8
+ Body
9
+ };
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const React = require("react");
5
+ const clsx = require("clsx");
6
+ const components_table_tableRoot = require("./table-root.cjs");
7
+ function _interopNamespaceDefault(e) {
8
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
9
+ if (e) {
10
+ for (const k in e) {
11
+ if (k !== "default") {
12
+ const d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: () => e[k]
16
+ });
17
+ }
18
+ }
19
+ }
20
+ n.default = e;
21
+ return Object.freeze(n);
22
+ }
23
+ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
24
+ const Cell = React__namespace.forwardRef(
25
+ ({ className, numeric, stickyLeft, stickyRight, stickyTop, stickyBottom, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
26
+ "td",
27
+ {
28
+ ref,
29
+ className: clsx(
30
+ components_table_tableRoot.styles[`${components_table_tableRoot.rootClassName}__cell`],
31
+ { [components_table_tableRoot.styles[`${components_table_tableRoot.rootClassName}__cell--numeric`]]: numeric },
32
+ { [components_table_tableRoot.styles[`${components_table_tableRoot.rootClassName}__cell--sticky`]]: stickyLeft || stickyRight || stickyTop || stickyBottom },
33
+ { [components_table_tableRoot.styles[`${components_table_tableRoot.rootClassName}__cell--sticky-left`]]: stickyLeft },
34
+ { [components_table_tableRoot.styles[`${components_table_tableRoot.rootClassName}__cell--sticky-right`]]: stickyRight },
35
+ { [components_table_tableRoot.styles[`${components_table_tableRoot.rootClassName}__cell--sticky-top`]]: stickyTop },
36
+ { [components_table_tableRoot.styles[`${components_table_tableRoot.rootClassName}__cell--sticky-bottom`]]: stickyBottom },
37
+ className
38
+ ),
39
+ ...props
40
+ }
41
+ )
42
+ );
43
+ Cell.displayName = "Cell";
44
+ exports.Cell = Cell;
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ export type CellProps = React.TdHTMLAttributes<HTMLTableCellElement> & {
3
+ /**
4
+ * Whether this cell contains numeric data (will be right-aligned)
5
+ */
6
+ numeric?: boolean;
7
+ stickyLeft?: boolean;
8
+ stickyRight?: boolean;
9
+ stickyTop?: boolean;
10
+ stickyBottom?: boolean;
11
+ };
12
+ export declare const Cell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & {
13
+ /**
14
+ * Whether this cell contains numeric data (will be right-aligned)
15
+ */
16
+ numeric?: boolean | undefined;
17
+ stickyLeft?: boolean | undefined;
18
+ stickyRight?: boolean | undefined;
19
+ stickyTop?: boolean | undefined;
20
+ stickyBottom?: boolean | undefined;
21
+ } & React.RefAttributes<HTMLTableCellElement>>;
@@ -0,0 +1,27 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import clsx from "clsx";
4
+ import { s as styles, rootClassName } from "./table-root.js";
5
+ const Cell = React.forwardRef(
6
+ ({ className, numeric, stickyLeft, stickyRight, stickyTop, stickyBottom, ...props }, ref) => /* @__PURE__ */ jsx(
7
+ "td",
8
+ {
9
+ ref,
10
+ className: clsx(
11
+ styles[`${rootClassName}__cell`],
12
+ { [styles[`${rootClassName}__cell--numeric`]]: numeric },
13
+ { [styles[`${rootClassName}__cell--sticky`]]: stickyLeft || stickyRight || stickyTop || stickyBottom },
14
+ { [styles[`${rootClassName}__cell--sticky-left`]]: stickyLeft },
15
+ { [styles[`${rootClassName}__cell--sticky-right`]]: stickyRight },
16
+ { [styles[`${rootClassName}__cell--sticky-top`]]: stickyTop },
17
+ { [styles[`${rootClassName}__cell--sticky-bottom`]]: stickyBottom },
18
+ className
19
+ ),
20
+ ...props
21
+ }
22
+ )
23
+ );
24
+ Cell.displayName = "Cell";
25
+ export {
26
+ Cell
27
+ };
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const React = require("react");
5
+ const clsx = require("clsx");
6
+ const components_table_tableRoot = require("./table-root.cjs");
7
+ function _interopNamespaceDefault(e) {
8
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
9
+ if (e) {
10
+ for (const k in e) {
11
+ if (k !== "default") {
12
+ const d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: () => e[k]
16
+ });
17
+ }
18
+ }
19
+ }
20
+ n.default = e;
21
+ return Object.freeze(n);
22
+ }
23
+ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
24
+ const Footer = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tfoot", { ref, className: clsx(components_table_tableRoot.styles[`${components_table_tableRoot.rootClassName}__footer`], className), ...props }));
25
+ Footer.displayName = "Footer";
26
+ exports.Footer = Footer;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export type FooterProps = React.HTMLAttributes<HTMLTableSectionElement>;
3
+ export declare const Footer: React.ForwardRefExoticComponent<FooterProps & React.RefAttributes<HTMLTableSectionElement>>;
@@ -0,0 +1,9 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import clsx from "clsx";
4
+ import { s as styles, rootClassName } from "./table-root.js";
5
+ const Footer = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tfoot", { ref, className: clsx(styles[`${rootClassName}__footer`], className), ...props }));
6
+ Footer.displayName = "Footer";
7
+ export {
8
+ Footer
9
+ };
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const React = require("react");
5
+ const clsx = require("clsx");
6
+ const components_table_tableRoot = require("./table-root.cjs");
7
+ const components_heading_heading = require("../heading/heading.cjs");
8
+ function _interopNamespaceDefault(e) {
9
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
10
+ if (e) {
11
+ for (const k in e) {
12
+ if (k !== "default") {
13
+ const d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: () => e[k]
17
+ });
18
+ }
19
+ }
20
+ }
21
+ n.default = e;
22
+ return Object.freeze(n);
23
+ }
24
+ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
25
+ const Head = React__namespace.forwardRef(
26
+ ({ className, stickyLeft, stickyRight, stickyTop, stickyBottom, numeric, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(components_heading_heading.Heading, { variant: "title-100", asChild: true, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
27
+ "th",
28
+ {
29
+ ref,
30
+ className: clsx(
31
+ components_table_tableRoot.styles[`${components_table_tableRoot.rootClassName}__head`],
32
+ {
33
+ [components_table_tableRoot.styles[`${components_table_tableRoot.rootClassName}__head--sticky`]]: stickyLeft || stickyRight || stickyTop || stickyBottom,
34
+ [components_table_tableRoot.styles[`${components_table_tableRoot.rootClassName}__head--sticky-left`]]: stickyLeft,
35
+ [components_table_tableRoot.styles[`${components_table_tableRoot.rootClassName}__head--sticky-right`]]: stickyRight,
36
+ [components_table_tableRoot.styles[`${components_table_tableRoot.rootClassName}__head--sticky-top`]]: stickyTop,
37
+ [components_table_tableRoot.styles[`${components_table_tableRoot.rootClassName}__head--sticky-bottom`]]: stickyBottom,
38
+ [components_table_tableRoot.styles[`${components_table_tableRoot.rootClassName}__head--numeric`]]: numeric
39
+ },
40
+ className
41
+ ),
42
+ children
43
+ }
44
+ ) })
45
+ );
46
+ Head.displayName = "Head";
47
+ exports.Head = Head;
@@ -0,0 +1,18 @@
1
+ import { ChildrenLayoutProps } from '../../utils/generate-styling';
2
+ import * as React from 'react';
3
+ export type HeadProps = React.ThHTMLAttributes<HTMLTableCellElement> & ChildrenLayoutProps & {
4
+ stickyLeft?: boolean;
5
+ stickyRight?: boolean;
6
+ stickyTop?: boolean;
7
+ stickyBottom?: boolean;
8
+ numeric?: boolean;
9
+ };
10
+ export declare const Head: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & import('../../utils/generate-styling/flex').FlexChildren & import('../../utils/generate-styling/grid').GridChildren & import('../../utils/generate-styling/position').PositionProps & import('../../utils/generate-styling/inset').InsetProps & import('../../utils/generate-styling/radius').RadiusProps & import('../../utils/generate-styling/margin').MarginProps & import('../../utils/generate-styling/padding').PaddingProps & import('../../utils/generate-styling/width').WidthProps & import('../../utils/generate-styling/height').HeightProps & import('../../utils/generate-styling/color').ColorProps & {
11
+ display?: import('../../utils/generate-styling').DisplayChildren | undefined;
12
+ } & {
13
+ stickyLeft?: boolean | undefined;
14
+ stickyRight?: boolean | undefined;
15
+ stickyTop?: boolean | undefined;
16
+ stickyBottom?: boolean | undefined;
17
+ numeric?: boolean | undefined;
18
+ } & React.RefAttributes<HTMLTableCellElement>>;
@@ -0,0 +1,30 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import clsx from "clsx";
4
+ import { s as styles, rootClassName } from "./table-root.js";
5
+ import { Heading } from "../heading/heading.js";
6
+ const Head = React.forwardRef(
7
+ ({ className, stickyLeft, stickyRight, stickyTop, stickyBottom, numeric, children, ...props }, ref) => /* @__PURE__ */ jsx(Heading, { variant: "title-100", asChild: true, ...props, children: /* @__PURE__ */ jsx(
8
+ "th",
9
+ {
10
+ ref,
11
+ className: clsx(
12
+ styles[`${rootClassName}__head`],
13
+ {
14
+ [styles[`${rootClassName}__head--sticky`]]: stickyLeft || stickyRight || stickyTop || stickyBottom,
15
+ [styles[`${rootClassName}__head--sticky-left`]]: stickyLeft,
16
+ [styles[`${rootClassName}__head--sticky-right`]]: stickyRight,
17
+ [styles[`${rootClassName}__head--sticky-top`]]: stickyTop,
18
+ [styles[`${rootClassName}__head--sticky-bottom`]]: stickyBottom,
19
+ [styles[`${rootClassName}__head--numeric`]]: numeric
20
+ },
21
+ className
22
+ ),
23
+ children
24
+ }
25
+ ) })
26
+ );
27
+ Head.displayName = "Head";
28
+ export {
29
+ Head
30
+ };
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const React = require("react");
5
+ const clsx = require("clsx");
6
+ const components_table_tableRoot = require("./table-root.cjs");
7
+ function _interopNamespaceDefault(e) {
8
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
9
+ if (e) {
10
+ for (const k in e) {
11
+ if (k !== "default") {
12
+ const d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: () => e[k]
16
+ });
17
+ }
18
+ }
19
+ }
20
+ n.default = e;
21
+ return Object.freeze(n);
22
+ }
23
+ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
24
+ const Header = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
25
+ "thead",
26
+ {
27
+ ref,
28
+ className: clsx(
29
+ components_table_tableRoot.styles[`${components_table_tableRoot.rootClassName}__header`],
30
+ className
31
+ ),
32
+ ...props
33
+ }
34
+ ));
35
+ Header.displayName = "Header";
36
+ exports.Header = Header;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export type HeaderProps = React.HTMLAttributes<HTMLTableSectionElement>;
3
+ export declare const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLTableSectionElement>>;
@@ -0,0 +1,19 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import clsx from "clsx";
4
+ import { s as styles, rootClassName } from "./table-root.js";
5
+ const Header = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6
+ "thead",
7
+ {
8
+ ref,
9
+ className: clsx(
10
+ styles[`${rootClassName}__header`],
11
+ className
12
+ ),
13
+ ...props
14
+ }
15
+ ));
16
+ Header.displayName = "Header";
17
+ export {
18
+ Header
19
+ };
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const React = require("react");
5
+ const clsx = require("clsx");
6
+ const components_scrollArea_index = require("../scroll-area/index.cjs");
7
+ function _interopNamespaceDefault(e) {
8
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
9
+ if (e) {
10
+ for (const k in e) {
11
+ if (k !== "default") {
12
+ const d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: () => e[k]
16
+ });
17
+ }
18
+ }
19
+ }
20
+ n.default = e;
21
+ return Object.freeze(n);
22
+ }
23
+ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
24
+ const styles = {
25
+ "teddy-table": "_teddy-table_uodq1_1",
26
+ "teddy-table-wrapper": "_teddy-table-wrapper_uodq1_7",
27
+ "teddy-table__header": "_teddy-table__header_uodq1_15",
28
+ "teddy-table__body": "_teddy-table__body_uodq1_22",
29
+ "teddy-table__footer": "_teddy-table__footer_uodq1_25",
30
+ "teddy-table__row": "_teddy-table__row_uodq1_28",
31
+ "teddy-table__head": "_teddy-table__head_uodq1_15",
32
+ "teddy-table__head--numeric": "_teddy-table__head--numeric_uodq1_46",
33
+ "teddy-table__head--sticky": "_teddy-table__head--sticky_uodq1_49",
34
+ "teddy-table__head--sticky-left": "_teddy-table__head--sticky-left_uodq1_53",
35
+ "teddy-table__head--sticky-right": "_teddy-table__head--sticky-right_uodq1_56",
36
+ "teddy-table__head--sticky-top": "_teddy-table__head--sticky-top_uodq1_59",
37
+ "teddy-table__head--sticky-bottom": "_teddy-table__head--sticky-bottom_uodq1_62",
38
+ "teddy-table__cell": "_teddy-table__cell_uodq1_65",
39
+ "teddy-table__cell--numeric": "_teddy-table__cell--numeric_uodq1_69",
40
+ "teddy-table__cell--sticky": "_teddy-table__cell--sticky_uodq1_72",
41
+ "teddy-table__cell--sticky-left": "_teddy-table__cell--sticky-left_uodq1_76",
42
+ "teddy-table__cell--sticky-right": "_teddy-table__cell--sticky-right_uodq1_79",
43
+ "teddy-table__cell--sticky-top": "_teddy-table__cell--sticky-top_uodq1_82",
44
+ "teddy-table__cell--sticky-bottom": "_teddy-table__cell--sticky-bottom_uodq1_85"
45
+ };
46
+ const rootClassName = "teddy-table";
47
+ const Root = React__namespace.forwardRef(({ className, height, width, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(components_scrollArea_index.ScrollArea, { className: styles[`${rootClassName}-wrapper`], style: { height, width }, children: /* @__PURE__ */ jsxRuntime.jsx("table", { ref, className: clsx(styles[rootClassName], className), ...props }) }));
48
+ Root.displayName = "Root";
49
+ exports.Root = Root;
50
+ exports.rootClassName = rootClassName;
51
+ exports.styles = styles;
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ export declare const rootClassName = "teddy-table";
3
+ export type RootProps = React.HTMLAttributes<HTMLTableElement> & {
4
+ height?: string | number;
5
+ width?: string | number;
6
+ };
7
+ export declare const Root: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & {
8
+ height?: string | number | undefined;
9
+ width?: string | number | undefined;
10
+ } & React.RefAttributes<HTMLTableElement>>;