@oslokommune/punkt-react 11.12.4 → 11.13.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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,40 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [11.13.0](https://github.com/oslokommune/punkt/compare/11.12.8...11.13.0) (2024-05-22)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ Ingen
15
+
16
+ ### Bug Fixes
17
+ Ingen
18
+
19
+ ### Chores
20
+ Ingen
21
+
22
+ ---
23
+
24
+
25
+ ## [11.13.0](https://github.com/oslokommune/punkt/compare/11.12.7...11.13.0) (2024-05-14)
26
+
27
+ ### ⚠ BREAKING CHANGES
28
+ Ingen
29
+
30
+ ### Features
31
+ Ingen
32
+
33
+ ### Bug Fixes
34
+ Ingen
35
+
36
+ ### Chores
37
+ Ingen
38
+
39
+ ---
40
+
41
+
8
42
  ## [11.12.4](https://github.com/oslokommune/punkt/compare/11.12.3...11.12.4) (2024-05-08)
9
43
 
10
44
  ### ⚠ BREAKING CHANGES
@@ -1,5 +1,5 @@
1
1
  import { IconFetcher } from './IconContext';
2
2
 
3
- export declare const defaultSvgPath = "https://punkt-cdn.oslo.kommune.no/11.12/icons/";
3
+ export declare const defaultSvgPath = "https://punkt-cdn.oslo.kommune.no/11.13/icons/";
4
4
  declare const defaultIconFetcher: IconFetcher;
5
5
  export default defaultIconFetcher;
@@ -17,8 +17,11 @@ export { PktRadioButton } from './radio/RadioButton';
17
17
  export { PktSearchInput } from './searchinput/SearchInput';
18
18
  export { PktSelect } from './select/Select';
19
19
  export { PktTable } from './table/Table';
20
- export { PktTableData } from './table/TableData';
20
+ export { PktTableDataCell } from './table/TableDataCell';
21
+ export { PktTableHeaderCell } from './table/TableHeaderCell';
21
22
  export { PktTableHeader } from './table/TableHeader';
23
+ export { PktTableRow } from './table/TableRow';
24
+ export { PktTableBody } from './table/TableBody';
22
25
  export { PktTabs } from './tabs/Tabs';
23
26
  export { PktTag } from './tag/Tag';
24
27
  export { PktTextarea } from './textarea/Textarea';
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
- export type ModifierName = 'info' | 'success' | 'strong' | 'shadow';
3
- interface TableProps {
4
- isResponsive?: boolean;
5
- modifiers?: {
6
- [key in ModifierName]?: boolean;
7
- };
8
- children: React.ReactNode | React.ReactNode[];
2
+ export type TTableSkin = 'basic' | 'zebra-blue';
3
+ interface ITableProps {
4
+ compact?: boolean;
5
+ skin?: 'basic' | 'zebra-blue';
6
+ responsiveView?: boolean;
7
+ className?: string;
8
+ children: React.ReactNode;
9
9
  }
10
- export declare const PktTable: ({ isResponsive, modifiers: { info, success, strong, shadow }, children, }: TableProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const PktTable: ({ className, compact, skin, responsiveView, children, }: ITableProps) => import("react/jsx-runtime").JSX.Element;
11
11
  export {};
@@ -1 +1 @@
1
- export {};
1
+
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface ITableBodyProps {
3
+ className?: string;
4
+ children: React.ReactNode;
5
+ }
6
+ export declare const PktTableBody: ({ children, className }: ITableBodyProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ interface ITableDataCellProps {
3
+ className?: string;
4
+ children: React.ReactNode;
5
+ dataLabel?: string;
6
+ }
7
+ export declare const PktTableDataCell: ({ children, className, dataLabel }: ITableDataCellProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
- interface TableHeaderProps {
3
- children: React.ReactNode | React.ReactNode[];
2
+ interface ITableHeaderProps {
3
+ className?: string;
4
+ children: React.ReactNode;
4
5
  }
5
- export declare const PktTableHeader: ({ children }: TableHeaderProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const PktTableHeader: ({ className, children }: ITableHeaderProps) => import("react/jsx-runtime").JSX.Element;
6
7
  export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface ITableHeaderCellProps {
3
+ className?: string;
4
+ children: React.ReactNode;
5
+ }
6
+ export declare const PktTableHeaderCell: ({ className, children }: ITableHeaderCellProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface ITableRowProps {
3
+ className?: string;
4
+ children: React.ReactNode;
5
+ }
6
+ export declare const PktTableRow: ({ className, children }: ITableRowProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};