@public-ui/sample-react 3.0.0-rc.1 → 3.0.0-rc.2
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/dist/1068.js +2 -0
- package/dist/1219.js +2 -0
- package/dist/1258.js +2 -0
- package/dist/1298.js +2 -0
- package/dist/136.js +2 -0
- package/dist/1416.js +2 -0
- package/dist/1676.js +2 -0
- package/dist/1718.js +2 -0
- package/dist/1744.js +2 -0
- package/dist/1791.js +1 -1
- package/dist/2078.js +2 -0
- package/dist/2115.js +2 -0
- package/dist/2195.js +2 -0
- package/dist/3021.js +2 -0
- package/dist/3027.js +2 -0
- package/dist/3186.js +2 -0
- package/dist/{4288.js → 3241.js} +2 -2
- package/dist/364.js +2 -0
- package/dist/{2450.js → 3758.js} +2 -2
- package/dist/{7648.js → 3836.js} +2 -2
- package/dist/3872.js +2 -0
- package/dist/3879.js +2 -0
- package/dist/3949.js +2 -0
- package/dist/4211.js +2 -0
- package/dist/4350.js +2 -0
- package/dist/4390.js +2 -0
- package/dist/{2986.js → 4566.js} +2 -2
- package/dist/4662.js +2 -0
- package/dist/4928.js +2 -0
- package/dist/5000.js +2 -0
- package/dist/5151.js +2 -0
- package/dist/5171.js +2 -0
- package/dist/{6740.js → 5792.js} +2 -2
- package/dist/5876.js +2 -0
- package/dist/597.js +2 -0
- package/dist/6451.js +2 -0
- package/dist/{9148.js → 6480.js} +2 -2
- package/dist/{1325.js → 6577.js} +2 -2
- package/dist/6983.js +2 -0
- package/dist/7084.js +2 -0
- package/dist/7225.js +2 -0
- package/dist/7267.js +2 -0
- package/dist/7779.js +2 -0
- package/dist/7958.js +2 -0
- package/dist/7997.js +2 -0
- package/dist/8069.js +2 -0
- package/dist/8177.js +1 -1
- package/dist/8212.js +2 -0
- package/dist/8243.js +2 -0
- package/dist/8283.js +2 -0
- package/dist/8478.js +2 -0
- package/dist/851.js +2 -0
- package/dist/8573.js +2 -0
- package/dist/8728.js +2 -0
- package/dist/8808.js +2 -0
- package/dist/8999.js +2 -0
- package/dist/9068.js +2 -0
- package/dist/9130.js +2 -0
- package/dist/9162.js +2 -0
- package/dist/9219.js +2 -0
- package/dist/9423.js +2 -0
- package/dist/9430.js +2 -0
- package/dist/9542.js +2 -0
- package/dist/{7141.js → 9929.js} +2 -2
- package/dist/993.js +2 -0
- package/dist/index.html +0 -1
- package/dist/main.css +1 -1
- package/dist/main.js +1 -1
- package/package.json +15 -15
- package/public/index.html +0 -1
- package/src/App.tsx +0 -2
- package/src/components/handout/basic.tsx +18 -23
- package/src/components/input-date/partials/minMax.tsx +3 -3
- package/src/components/input-date/partials/variants.tsx +1 -1
- package/src/components/input-date/show-hide-msg.tsx +0 -1
- package/src/components/input-text/partials/cases.tsx +1 -1
- package/src/components/input-text/smart-button.tsx +14 -1
- package/src/components/input-text/text-formatter.tsx +1 -2
- package/src/components/link/access-key.tsx +1 -3
- package/src/components/nav/basic.tsx +8 -2
- package/src/components/nav/horizontal.tsx +2 -2
- package/src/components/pagination/basic.tsx +1 -1
- package/src/components/select/partials/cases.tsx +16 -1
- package/src/components/single-select/partials/cases.tsx +5 -4
- package/src/components/single-select/partials/variants.tsx +5 -5
- package/src/components/split-button/basic.tsx +2 -2
- package/src/components/table/column-alignment.tsx +12 -12
- package/src/components/table/complex-headers.tsx +3 -3
- package/src/components/table/horizontal-scrollbar.tsx +12 -6
- package/src/components/table/multi-sort.tsx +4 -4
- package/src/components/table/pagination-position.tsx +23 -5
- package/src/components/table/render-cell.tsx +4 -4
- package/src/components/table/sort-data.tsx +14 -16
- package/src/components/table/stateful-with-selection.tsx +5 -5
- package/src/components/table/stateful-with-single-selection.tsx +5 -5
- package/src/components/table/stateless-with-selection.tsx +6 -6
- package/src/components/table/stateless-with-single-selection.tsx +6 -6
- package/src/components/table/with-footer.tsx +3 -3
- package/src/components/table/with-pagination.tsx +3 -3
- package/src/react.main.tsx +2 -7
- package/src/scenarios/appointment-form/PersonalInformationForm.tsx +4 -1
- package/src/scenarios/horizontal-scrollbar-advanced/TableHorizontalScrollbarAdvanced.tsx +2 -2
- package/src/shares/routes.ts +0 -6
- package/dist/1073.js +0 -2
- package/dist/1392.js +0 -2
- package/dist/1604.js +0 -2
- package/dist/175.js +0 -2
- package/dist/178.js +0 -2
- package/dist/2220.js +0 -2
- package/dist/2444.js +0 -2
- package/dist/2671.js +0 -2
- package/dist/3030.js +0 -2
- package/dist/3270.js +0 -2
- package/dist/3340.js +0 -2
- package/dist/3392.js +0 -2
- package/dist/3529.js +0 -2
- package/dist/3756.js +0 -2
- package/dist/3960.js +0 -2
- package/dist/399.js +0 -2
- package/dist/4145.js +0 -2
- package/dist/4539.js +0 -2
- package/dist/4563.js +0 -2
- package/dist/4571.js +0 -2
- package/dist/5260.js +0 -2
- package/dist/5301.js +0 -2
- package/dist/5333.js +0 -2
- package/dist/5523.js +0 -2
- package/dist/5551.js +0 -2
- package/dist/5575.js +0 -2
- package/dist/5665.js +0 -2
- package/dist/572.js +0 -2
- package/dist/5873.js +0 -2
- package/dist/5879.js +0 -2
- package/dist/5964.js +0 -2
- package/dist/6005.js +0 -2
- package/dist/618.js +0 -2
- package/dist/623.js +0 -2
- package/dist/643.js +0 -2
- package/dist/6610.js +0 -2
- package/dist/6618.js +0 -2
- package/dist/6711.js +0 -2
- package/dist/6786.js +0 -2
- package/dist/685.js +0 -2
- package/dist/6950.js +0 -2
- package/dist/7055.js +0 -2
- package/dist/7106.js +0 -2
- package/dist/7146.js +0 -2
- package/dist/7287.js +0 -2
- package/dist/7599.js +0 -2
- package/dist/7668.js +0 -2
- package/dist/7855.js +0 -2
- package/dist/8165.js +0 -2
- package/dist/8306.js +0 -2
- package/dist/8543.js +0 -2
- package/dist/866.js +0 -2
- package/dist/8859.js +0 -2
- package/dist/904.js +0 -2
- package/dist/9522.js +0 -2
- package/dist/9625.js +0 -2
- package/dist/9625.js.LICENSE.txt +0 -3
- package/dist/971.js +0 -2
- package/dist/971.js.LICENSE.txt +0 -3
- package/dist/9712.js +0 -2
- package/dist/9712.js.LICENSE.txt +0 -3
- package/dist/976.js +0 -2
- package/dist/976.js.LICENSE.txt +0 -3
- package/dist/982.js +0 -2
- package/dist/982.js.LICENSE.txt +0 -3
- package/dist/986.js +0 -2
- package/dist/986.js.LICENSE.txt +0 -3
- package/src/components/button-group/basic.tsx +0 -34
- package/src/components/button-group/routes.ts +0 -8
- package/src/components/indented-text/basic.tsx +0 -37
- package/src/components/indented-text/routes.ts +0 -8
- package/src/components/link-group/basic.tsx +0 -23
- package/src/components/link-group/horizontal.tsx +0 -23
- package/src/components/link-group/routes.ts +0 -10
- /package/dist/{1073.js.LICENSE.txt → 1068.js.LICENSE.txt} +0 -0
- /package/dist/{1325.js.LICENSE.txt → 1219.js.LICENSE.txt} +0 -0
- /package/dist/{1392.js.LICENSE.txt → 1258.js.LICENSE.txt} +0 -0
- /package/dist/{1604.js.LICENSE.txt → 1298.js.LICENSE.txt} +0 -0
- /package/dist/{175.js.LICENSE.txt → 136.js.LICENSE.txt} +0 -0
- /package/dist/{178.js.LICENSE.txt → 1416.js.LICENSE.txt} +0 -0
- /package/dist/{2220.js.LICENSE.txt → 1676.js.LICENSE.txt} +0 -0
- /package/dist/{2444.js.LICENSE.txt → 1718.js.LICENSE.txt} +0 -0
- /package/dist/{2450.js.LICENSE.txt → 1744.js.LICENSE.txt} +0 -0
- /package/dist/{2671.js.LICENSE.txt → 2078.js.LICENSE.txt} +0 -0
- /package/dist/{2986.js.LICENSE.txt → 2115.js.LICENSE.txt} +0 -0
- /package/dist/{3030.js.LICENSE.txt → 2195.js.LICENSE.txt} +0 -0
- /package/dist/{3270.js.LICENSE.txt → 3021.js.LICENSE.txt} +0 -0
- /package/dist/{3340.js.LICENSE.txt → 3027.js.LICENSE.txt} +0 -0
- /package/dist/{3392.js.LICENSE.txt → 3186.js.LICENSE.txt} +0 -0
- /package/dist/{3529.js.LICENSE.txt → 3241.js.LICENSE.txt} +0 -0
- /package/dist/{3756.js.LICENSE.txt → 364.js.LICENSE.txt} +0 -0
- /package/dist/{3960.js.LICENSE.txt → 3758.js.LICENSE.txt} +0 -0
- /package/dist/{399.js.LICENSE.txt → 3836.js.LICENSE.txt} +0 -0
- /package/dist/{4145.js.LICENSE.txt → 3872.js.LICENSE.txt} +0 -0
- /package/dist/{4288.js.LICENSE.txt → 3879.js.LICENSE.txt} +0 -0
- /package/dist/{4539.js.LICENSE.txt → 3949.js.LICENSE.txt} +0 -0
- /package/dist/{4563.js.LICENSE.txt → 4211.js.LICENSE.txt} +0 -0
- /package/dist/{4571.js.LICENSE.txt → 4350.js.LICENSE.txt} +0 -0
- /package/dist/{5260.js.LICENSE.txt → 4390.js.LICENSE.txt} +0 -0
- /package/dist/{5301.js.LICENSE.txt → 4566.js.LICENSE.txt} +0 -0
- /package/dist/{5333.js.LICENSE.txt → 4662.js.LICENSE.txt} +0 -0
- /package/dist/{5523.js.LICENSE.txt → 4928.js.LICENSE.txt} +0 -0
- /package/dist/{5551.js.LICENSE.txt → 5000.js.LICENSE.txt} +0 -0
- /package/dist/{5575.js.LICENSE.txt → 5151.js.LICENSE.txt} +0 -0
- /package/dist/{5665.js.LICENSE.txt → 5171.js.LICENSE.txt} +0 -0
- /package/dist/{572.js.LICENSE.txt → 5792.js.LICENSE.txt} +0 -0
- /package/dist/{5873.js.LICENSE.txt → 5876.js.LICENSE.txt} +0 -0
- /package/dist/{5879.js.LICENSE.txt → 597.js.LICENSE.txt} +0 -0
- /package/dist/{5964.js.LICENSE.txt → 6451.js.LICENSE.txt} +0 -0
- /package/dist/{6005.js.LICENSE.txt → 6480.js.LICENSE.txt} +0 -0
- /package/dist/{618.js.LICENSE.txt → 6577.js.LICENSE.txt} +0 -0
- /package/dist/{623.js.LICENSE.txt → 6983.js.LICENSE.txt} +0 -0
- /package/dist/{643.js.LICENSE.txt → 7084.js.LICENSE.txt} +0 -0
- /package/dist/{6610.js.LICENSE.txt → 7225.js.LICENSE.txt} +0 -0
- /package/dist/{6618.js.LICENSE.txt → 7267.js.LICENSE.txt} +0 -0
- /package/dist/{6711.js.LICENSE.txt → 7779.js.LICENSE.txt} +0 -0
- /package/dist/{6740.js.LICENSE.txt → 7958.js.LICENSE.txt} +0 -0
- /package/dist/{6786.js.LICENSE.txt → 7997.js.LICENSE.txt} +0 -0
- /package/dist/{685.js.LICENSE.txt → 8069.js.LICENSE.txt} +0 -0
- /package/dist/{6950.js.LICENSE.txt → 8212.js.LICENSE.txt} +0 -0
- /package/dist/{7055.js.LICENSE.txt → 8243.js.LICENSE.txt} +0 -0
- /package/dist/{7106.js.LICENSE.txt → 8283.js.LICENSE.txt} +0 -0
- /package/dist/{7141.js.LICENSE.txt → 8478.js.LICENSE.txt} +0 -0
- /package/dist/{7146.js.LICENSE.txt → 851.js.LICENSE.txt} +0 -0
- /package/dist/{7287.js.LICENSE.txt → 8573.js.LICENSE.txt} +0 -0
- /package/dist/{7599.js.LICENSE.txt → 8728.js.LICENSE.txt} +0 -0
- /package/dist/{7648.js.LICENSE.txt → 8808.js.LICENSE.txt} +0 -0
- /package/dist/{7668.js.LICENSE.txt → 8999.js.LICENSE.txt} +0 -0
- /package/dist/{7855.js.LICENSE.txt → 9068.js.LICENSE.txt} +0 -0
- /package/dist/{8165.js.LICENSE.txt → 9130.js.LICENSE.txt} +0 -0
- /package/dist/{8306.js.LICENSE.txt → 9162.js.LICENSE.txt} +0 -0
- /package/dist/{8543.js.LICENSE.txt → 9219.js.LICENSE.txt} +0 -0
- /package/dist/{866.js.LICENSE.txt → 9423.js.LICENSE.txt} +0 -0
- /package/dist/{8859.js.LICENSE.txt → 9430.js.LICENSE.txt} +0 -0
- /package/dist/{904.js.LICENSE.txt → 9542.js.LICENSE.txt} +0 -0
- /package/dist/{9148.js.LICENSE.txt → 9929.js.LICENSE.txt} +0 -0
- /package/dist/{9522.js.LICENSE.txt → 993.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/sample-react",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.2",
|
|
4
4
|
"description": "This app contains samples for the KoliBri/Public UI",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
6
6
|
"repository": {
|
|
@@ -11,16 +11,16 @@
|
|
|
11
11
|
"@leanup/stack": "1.3.54",
|
|
12
12
|
"@leanup/stack-react": "1.3.54",
|
|
13
13
|
"@leanup/stack-webpack": "1.3.54",
|
|
14
|
-
"@playwright/test": "1.49.
|
|
14
|
+
"@playwright/test": "1.49.1",
|
|
15
15
|
"@stencil/core": "4.22.3",
|
|
16
|
-
"@types/node": "ts5.
|
|
16
|
+
"@types/node": "ts5.7",
|
|
17
17
|
"@types/react": "18.3.4",
|
|
18
|
-
"@types/react-dom": "18.3.
|
|
19
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
20
|
-
"@typescript-eslint/parser": "8.
|
|
18
|
+
"@types/react-dom": "18.3.5",
|
|
19
|
+
"@typescript-eslint/eslint-plugin": "8.18.0",
|
|
20
|
+
"@typescript-eslint/parser": "8.18.0",
|
|
21
21
|
"@unocss/preset-uno": "0.58.9",
|
|
22
22
|
"@unocss/webpack": "0.58.9",
|
|
23
|
-
"adopted-style-sheets": "1.1.
|
|
23
|
+
"adopted-style-sheets": "1.1.7",
|
|
24
24
|
"ajv": "8.17.1",
|
|
25
25
|
"chromedriver": "130.0.4",
|
|
26
26
|
"cpy-cli": "5.0.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"eslint-plugin-react": "7.37.2",
|
|
35
35
|
"file-loader": "6.2.0",
|
|
36
36
|
"formik": "2.4.6",
|
|
37
|
-
"knip": "5.
|
|
37
|
+
"knip": "5.40.0",
|
|
38
38
|
"less-loader": "12.2.0",
|
|
39
39
|
"mini-css-extract-plugin": "2.9.2",
|
|
40
40
|
"nightwatch-axe-verbose": "2.3.1",
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"sass-loader": "16.0.4",
|
|
51
51
|
"string-replace-loader": "3.1.0",
|
|
52
52
|
"tslib": "2.8.1",
|
|
53
|
-
"typescript": "5.
|
|
54
|
-
"webpack": "5.97.
|
|
53
|
+
"typescript": "5.7.2",
|
|
54
|
+
"webpack": "5.97.1",
|
|
55
55
|
"webpack-cli": "5.1.4",
|
|
56
|
-
"webpack-dev-server": "5.
|
|
56
|
+
"webpack-dev-server": "5.2.0",
|
|
57
57
|
"world_countries_lists": "2.9.0",
|
|
58
|
-
"yup": "1.
|
|
59
|
-
"@public-ui/components": "3.0.0-rc.
|
|
60
|
-
"@public-ui/
|
|
61
|
-
"@public-ui/
|
|
58
|
+
"yup": "1.5.0",
|
|
59
|
+
"@public-ui/components": "3.0.0-rc.2",
|
|
60
|
+
"@public-ui/themes": "3.0.0-rc.2",
|
|
61
|
+
"@public-ui/react": "3.0.0-rc.2"
|
|
62
62
|
},
|
|
63
63
|
"files": [
|
|
64
64
|
".eslintignore",
|
package/public/index.html
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
<meta name="description" content="Webapp demonstrating KolBri-components with React." />
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
8
|
<link rel="shortcut icon" type="image/x-icon" href="assets/kolibri.ico" />
|
|
9
|
-
<link rel="stylesheet" href="assets/bundes/style.css" />
|
|
10
9
|
<link rel="stylesheet" href="assets/codicons/codicon.css" />
|
|
11
10
|
<link rel="stylesheet" href="assets/fontawesome-free/css/all.min.css" />
|
|
12
11
|
<link rel="stylesheet" href="assets/icofont/icofont.min.css" />
|
package/src/App.tsx
CHANGED
|
@@ -91,8 +91,6 @@ const getRouteTree = (routes: MyRoutes): ReturnType<typeof Route>[] => {
|
|
|
91
91
|
const ROUTE_LIST = getRouteList(ROUTES);
|
|
92
92
|
const ROUTE_TREE = getRouteTree(ROUTES);
|
|
93
93
|
|
|
94
|
-
console.log('ROUTE_LIST', ROUTE_LIST);
|
|
95
|
-
|
|
96
94
|
const componentList: Map<string, Option<string>> = new Map();
|
|
97
95
|
ROUTE_LIST.forEach((route) => {
|
|
98
96
|
const routeSplit = route.split('/');
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
KolNav,
|
|
30
30
|
KolProgress,
|
|
31
31
|
KolSelect,
|
|
32
|
-
|
|
32
|
+
KolTableStateful,
|
|
33
33
|
KolTabs,
|
|
34
34
|
KolTextarea,
|
|
35
35
|
KolVersion,
|
|
@@ -73,16 +73,14 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
|
|
|
73
73
|
el.appendChild(renderElement);
|
|
74
74
|
getRoot(renderElement).render(<KolButtonWrapper _label={cell.label} style={{ fontSize: '75%' }} />);
|
|
75
75
|
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return 0;
|
|
85
|
-
});
|
|
76
|
+
compareFn: (first, second) => {
|
|
77
|
+
if ((first as TableDataType).monday < (second as TableDataType).monday) {
|
|
78
|
+
return -1;
|
|
79
|
+
}
|
|
80
|
+
if ((first as TableDataType).monday > (second as TableDataType).monday) {
|
|
81
|
+
return 1;
|
|
82
|
+
}
|
|
83
|
+
return 0;
|
|
86
84
|
},
|
|
87
85
|
sortDirection: 'ASC',
|
|
88
86
|
textAlign: 'right',
|
|
@@ -97,16 +95,14 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
|
|
|
97
95
|
el.appendChild(renderElement);
|
|
98
96
|
getRoot(renderElement).render(<KolBadge _color="#060" _label={cell.label}></KolBadge>);
|
|
99
97
|
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
return 0;
|
|
109
|
-
});
|
|
98
|
+
compareFn: (first, second) => {
|
|
99
|
+
if ((first as TableDataType).tuesday < (second as TableDataType).tuesday) {
|
|
100
|
+
return -1;
|
|
101
|
+
}
|
|
102
|
+
if ((first as TableDataType).tuesday > (second as TableDataType).tuesday) {
|
|
103
|
+
return 1;
|
|
104
|
+
}
|
|
105
|
+
return 0;
|
|
110
106
|
},
|
|
111
107
|
sortDirection: 'DESC',
|
|
112
108
|
},
|
|
@@ -430,7 +426,6 @@ export const HandoutBasic: FC = () => {
|
|
|
430
426
|
/>
|
|
431
427
|
</div>
|
|
432
428
|
{/* <KolSkipNav></KolSkipNav> */}
|
|
433
|
-
{/* <KolLinkGroup _label=""></KolLinkGroup> */}
|
|
434
429
|
<div>
|
|
435
430
|
<KolBreadcrumb
|
|
436
431
|
_label="Breadcrumb aus Text-Links"
|
|
@@ -476,7 +471,7 @@ export const HandoutBasic: FC = () => {
|
|
|
476
471
|
</KolCard>
|
|
477
472
|
<KolCard className="col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5" _label="Table with Pagination" _level={2}>
|
|
478
473
|
<div slot="" className="grid gap-2 p-2">
|
|
479
|
-
<
|
|
474
|
+
<KolTableStateful _label="Table" _headers={TABLE_HEADERS} _data={TABLE_DATA} _pagination></KolTableStateful>
|
|
480
475
|
</div>
|
|
481
476
|
</KolCard>
|
|
482
477
|
</div>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { KolInputDate } from '@public-ui/react';
|
|
3
3
|
import type { Components } from '@public-ui/components';
|
|
4
4
|
|
|
5
|
-
export const InputDateMinMaxCases =
|
|
5
|
+
export const InputDateMinMaxCases = (props: Components.KolInputDate) => {
|
|
6
6
|
const minDateIso = '2024-09-26';
|
|
7
7
|
const maxDateIso = '2024-09-27';
|
|
8
8
|
|
|
@@ -38,4 +38,4 @@ export const InputDateMinMaxCases = forwardRef<HTMLKolInputDateElement, Componen
|
|
|
38
38
|
<KolInputDate {...props} _type="month" _label="Month with Date" _min={minDate} _max={maxDate} />
|
|
39
39
|
</div>
|
|
40
40
|
);
|
|
41
|
-
}
|
|
41
|
+
};
|
|
@@ -17,7 +17,7 @@ export const InputDateVariants = forwardRef<HTMLKolInputDateElement, Components.
|
|
|
17
17
|
</fieldset>
|
|
18
18
|
<fieldset>
|
|
19
19
|
<legend>Date (with min/max)</legend>
|
|
20
|
-
<InputDateMinMaxCases
|
|
20
|
+
<InputDateMinMaxCases {...props} />
|
|
21
21
|
</fieldset>
|
|
22
22
|
</div>
|
|
23
23
|
);
|
|
@@ -37,7 +37,6 @@ export const InputDateShowHideMsg = () => {
|
|
|
37
37
|
Error-Message visible: {showMsg && isTouched && !hideMsg ? 'Yes' : 'No'} (showMsg: {showMsg ? 'Yes' : 'No'}, isTouched: {isTouched ? 'Yes' : 'No'},
|
|
38
38
|
hideMsg: {hideMsg ? 'Yes' : 'No'})
|
|
39
39
|
</pre>
|
|
40
|
-
<KolInputDate _error={showMsg ? 'error message' : undefined} _hideError={hideMsg} _label="Date (_error)" _touched={isTouched} />
|
|
41
40
|
{msgTypes.map((type) => (
|
|
42
41
|
<KolInputDate
|
|
43
42
|
key={type}
|
|
@@ -21,6 +21,7 @@ export const InputTextCases = forwardRef<HTMLKolInputTextElement, Components.Kol
|
|
|
21
21
|
icon: 'codicon codicon-arrow-right',
|
|
22
22
|
style: {
|
|
23
23
|
'font-size': '200%',
|
|
24
|
+
'margin-right': 'calc(-8rem / var(--kolibri-root-font-size, 16))',
|
|
24
25
|
},
|
|
25
26
|
},
|
|
26
27
|
}}
|
|
@@ -48,7 +49,6 @@ export const InputTextCases = forwardRef<HTMLKolInputTextElement, Components.Kol
|
|
|
48
49
|
<KolInputText {...props} _value="Value" _disabled _label="First name (text, disabled)" />
|
|
49
50
|
<KolInputText {...props} _value="Value" _label="With access key" _accessKey="c" />
|
|
50
51
|
<KolInputText {...props} _value="Value" _label="With short key" _shortKey="s" />
|
|
51
|
-
<KolInputText {...props} _value="Value" _label="With both key" _shortKey="d" _accessKey="e" />
|
|
52
52
|
</div>
|
|
53
53
|
);
|
|
54
54
|
});
|
|
@@ -21,13 +21,26 @@ export const InputTextSmartButton = () => {
|
|
|
21
21
|
},
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
+
const icons = {
|
|
25
|
+
left: {
|
|
26
|
+
icon: 'codicon codicon-arrow-left',
|
|
27
|
+
},
|
|
28
|
+
right: {
|
|
29
|
+
icon: 'codicon codicon-arrow-right',
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
24
33
|
return (
|
|
25
34
|
<>
|
|
26
35
|
<SampleDescription>
|
|
27
36
|
<p>This sample shows the smart button feature for KolInputText. It allows the usage of a button inside the bnput.</p>
|
|
28
37
|
</SampleDescription>
|
|
29
38
|
|
|
30
|
-
<
|
|
39
|
+
<div className="grid gap-4">
|
|
40
|
+
<KolInputText _label="With Smart Button" _type="text" _smartButton={smartButton}></KolInputText>
|
|
41
|
+
<KolInputText _label="With Smart Button (disabled)" _disabled _type="text" _smartButton={smartButton}></KolInputText>
|
|
42
|
+
<KolInputText _label="With Smart Button and Icons" _type="text" _smartButton={smartButton} _icons={icons}></KolInputText>
|
|
43
|
+
</div>
|
|
31
44
|
</>
|
|
32
45
|
);
|
|
33
46
|
};
|
|
@@ -111,8 +111,7 @@ export function InputTextFormatterDemo() {
|
|
|
111
111
|
{({ field }: FieldProps<CurrencyExampleFormValues['currency']>) => (
|
|
112
112
|
<div className="block mt-2">
|
|
113
113
|
<NumericFormat
|
|
114
|
-
customInput={({ type, value, onBlur, onChange, onFocus
|
|
115
|
-
console.log('OTHER: ', other);
|
|
114
|
+
customInput={({ type, value, onBlur, onChange, onFocus }: any) => {
|
|
116
115
|
return <KolInputText _label="Currency" _type={type} _value={value} _on={{ onBlur, onChange, onFocus }} />;
|
|
117
116
|
}}
|
|
118
117
|
displayType="input"
|
|
@@ -7,9 +7,7 @@ import { SampleDescription } from '../SampleDescription';
|
|
|
7
7
|
export const LinkAccessKey: FC = () => (
|
|
8
8
|
<>
|
|
9
9
|
<SampleDescription>
|
|
10
|
-
<p>
|
|
11
|
-
<p>This sample shows KolLink with access key. The access keys can be used to trigger the buttons using the keyboard.</p>
|
|
12
|
-
</p>
|
|
10
|
+
<p>This sample shows KolLink with access key. The access keys can be used to trigger the buttons using the keyboard.</p>
|
|
13
11
|
</SampleDescription>
|
|
14
12
|
|
|
15
13
|
<div className="grid gap-4">
|
|
@@ -31,11 +31,17 @@ export const NavBasic: FC = () => {
|
|
|
31
31
|
</section>
|
|
32
32
|
<section className="grid gap-4">
|
|
33
33
|
<KolHeading _level={2} _label="Navigation without submenu" />
|
|
34
|
-
<KolNav
|
|
34
|
+
<KolNav
|
|
35
|
+
class="block w-fit"
|
|
36
|
+
_label="Navigation without submenu"
|
|
37
|
+
_links={LINKS_WITHOUT_SUBMENU}
|
|
38
|
+
_hasCompactButton
|
|
39
|
+
_hasIconsWhenExpanded={hasIconsWhenExpanded}
|
|
40
|
+
/>
|
|
35
41
|
</section>
|
|
36
42
|
<section className="grid gap-4">
|
|
37
43
|
<KolHeading _level={2} _label="Navigation with submenu" />
|
|
38
|
-
<KolNav class="block w-fit" _label="
|
|
44
|
+
<KolNav class="block w-fit" _label="Navigation with submenu" _links={LINKS} _hasCompactButton _hasIconsWhenExpanded={hasIconsWhenExpanded} />
|
|
39
45
|
</section>
|
|
40
46
|
</section>
|
|
41
47
|
</>
|
|
@@ -13,11 +13,11 @@ export const NavHorizontal: FC = () => (
|
|
|
13
13
|
<section className="grid gap-8">
|
|
14
14
|
<section className="grid gap-4">
|
|
15
15
|
<KolHeading _level={2} _label="Navigation without submenu" />
|
|
16
|
-
<KolNav _label="
|
|
16
|
+
<KolNav _label="Navigation without submenu" _links={LINKS_WITHOUT_SUBMENU} _orientation="horizontal" />
|
|
17
17
|
</section>
|
|
18
18
|
<section className="grid gap-4">
|
|
19
19
|
<KolHeading _level={2} _label="Navigation with submenu" />
|
|
20
|
-
<KolNav _label="
|
|
20
|
+
<KolNav _label="Navigation with submenu" _links={LINKS} _orientation="horizontal" />
|
|
21
21
|
</section>
|
|
22
22
|
</section>
|
|
23
23
|
</>
|
|
@@ -4,7 +4,7 @@ import { KolSelect } from '@public-ui/react';
|
|
|
4
4
|
|
|
5
5
|
import { ERROR_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type { Components, SelectOption } from '@public-ui/components';
|
|
7
|
+
import type { Components, Optgroup, SelectOption, StencilUnknown } from '@public-ui/components';
|
|
8
8
|
import { COUNTRY_OPTIONS } from '../../../shares/country';
|
|
9
9
|
|
|
10
10
|
const SALUTATION_OPTIONS: SelectOption<string>[] = [
|
|
@@ -27,6 +27,19 @@ const SALUTATION_OPTIONS: SelectOption<string>[] = [
|
|
|
27
27
|
},
|
|
28
28
|
];
|
|
29
29
|
|
|
30
|
+
type GroupedOptionsType = Record<string, Optgroup<StencilUnknown>>;
|
|
31
|
+
|
|
32
|
+
const groupedOptions: GroupedOptionsType = COUNTRY_OPTIONS.reduce((acc, option) => {
|
|
33
|
+
const firstLetter = (option.label as string).charAt(0).toUpperCase();
|
|
34
|
+
if (!acc[firstLetter]) {
|
|
35
|
+
acc[firstLetter] = { label: firstLetter, options: [] };
|
|
36
|
+
}
|
|
37
|
+
acc[firstLetter].options.push({ label: option.label, value: option.label });
|
|
38
|
+
return acc;
|
|
39
|
+
}, {} as GroupedOptionsType);
|
|
40
|
+
|
|
41
|
+
const groupedOptionsArray = Object.values(groupedOptions);
|
|
42
|
+
|
|
30
43
|
export const SelectCases = forwardRef<HTMLKolSelectElement, Components.KolSelect>(function SelectCases(props, ref) {
|
|
31
44
|
return (
|
|
32
45
|
<div className="grid gap-4">
|
|
@@ -59,6 +72,8 @@ export const SelectCases = forwardRef<HTMLKolSelectElement, Components.KolSelect
|
|
|
59
72
|
/>
|
|
60
73
|
<KolSelect {...props} _options={SALUTATION_OPTIONS} _label="With access key" _accessKey="c" />
|
|
61
74
|
<KolSelect {...props} _options={SALUTATION_OPTIONS} _label="With short key" _shortKey="s" />
|
|
75
|
+
<KolSelect {...props} _options={groupedOptionsArray} _label="With grouped by first letter" _value={['Albanien']} />
|
|
76
|
+
<KolSelect {...props} _options={groupedOptionsArray} _label="With grouped by first letter (multiple)" _multiple _value={['Albanien']} />
|
|
62
77
|
</div>
|
|
63
78
|
);
|
|
64
79
|
});
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import { KolSingleSelect } from '@public-ui/react';
|
|
4
4
|
|
|
5
5
|
import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type {
|
|
7
|
+
import type { Option, StencilUnknown } from '@public-ui/components';
|
|
8
8
|
import { COUNTRY_OPTIONS } from '../../../shares/country';
|
|
9
|
+
import type { Components } from '@public-ui/components';
|
|
9
10
|
|
|
10
|
-
export const SingleSelectCases =
|
|
11
|
+
export const SingleSelectCases = (props: Components.KolSingleSelect) => {
|
|
11
12
|
return (
|
|
12
13
|
<div className="grid gap-4">
|
|
13
14
|
<KolSingleSelect
|
|
@@ -38,4 +39,4 @@ export const SingleSelectCases = forwardRef<HTMLKolSingleSelectElement, Componen
|
|
|
38
39
|
<KolSingleSelect {...props} _label="With short key" _options={COUNTRY_OPTIONS as Option<StencilUnknown>[]} _value={'de'} _shortKey="s" />
|
|
39
40
|
</div>
|
|
40
41
|
);
|
|
41
|
-
}
|
|
42
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import { SingleSelectCases } from './cases';
|
|
4
|
-
|
|
5
4
|
import type { Components } from '@public-ui/components';
|
|
6
|
-
|
|
5
|
+
|
|
6
|
+
export const SingleSelectVariants = (props: Components.KolSingleSelect) => {
|
|
7
7
|
return (
|
|
8
8
|
<div className="grid md:grid-cols-2 gap-4">
|
|
9
9
|
<fieldset>
|
|
@@ -12,8 +12,8 @@ export const SingleSelectVariants = forwardRef<HTMLKolSingleSelectElement, Compo
|
|
|
12
12
|
</fieldset>
|
|
13
13
|
<fieldset>
|
|
14
14
|
<legend>Text (hideLabel)</legend>
|
|
15
|
-
<SingleSelectCases
|
|
15
|
+
<SingleSelectCases {...props} _hideLabel />
|
|
16
16
|
</fieldset>
|
|
17
17
|
</div>
|
|
18
18
|
);
|
|
19
|
-
}
|
|
19
|
+
};
|
|
@@ -27,10 +27,10 @@ export const SplitButtonBasic: FC = () => {
|
|
|
27
27
|
|
|
28
28
|
<div className="flex gap-4">
|
|
29
29
|
<KolSplitButton _label="Only the arrow opens" _on={{ onClick: handleButtonClick }}>
|
|
30
|
-
Dropdown
|
|
30
|
+
Dropdown contents
|
|
31
31
|
</KolSplitButton>
|
|
32
32
|
<KolSplitButton _label="Button without visible label" _hideLabel _icons="codicon codicon-git-pull-request">
|
|
33
|
-
Dropdown
|
|
33
|
+
Dropdown contents
|
|
34
34
|
</KolSplitButton>
|
|
35
35
|
</div>
|
|
36
36
|
</>
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import { KolHeading,
|
|
4
|
+
import { KolHeading, KolTableStateful } from '@public-ui/react';
|
|
5
5
|
|
|
6
6
|
import { SampleDescription } from '../SampleDescription';
|
|
7
7
|
|
|
8
8
|
const DATA = [{ left: 'Left Example', center: 'Center Example', right: 'Right Example' }];
|
|
9
|
-
const genericNonSorter =
|
|
9
|
+
const genericNonSorter = () => 0;
|
|
10
10
|
|
|
11
11
|
export const TableColumnAlignment: FC = () => (
|
|
12
12
|
<>
|
|
13
13
|
<SampleDescription>
|
|
14
|
-
<p>This sample shows
|
|
14
|
+
<p>This sample shows KolTableStateful with columns headers and data in different text alignments.</p>
|
|
15
15
|
</SampleDescription>
|
|
16
16
|
|
|
17
17
|
<section className="w-full flex flex-col">
|
|
18
18
|
<KolHeading _label="Simple table" _level={3}></KolHeading>
|
|
19
|
-
<
|
|
19
|
+
<KolTableStateful
|
|
20
20
|
_label="Table for demonstration purposes with different text align properties"
|
|
21
21
|
_headers={{
|
|
22
22
|
horizontal: [
|
|
@@ -33,14 +33,14 @@ export const TableColumnAlignment: FC = () => (
|
|
|
33
33
|
/>
|
|
34
34
|
|
|
35
35
|
<KolHeading _label="Table with sortable columns" _level={3} className="block mt-6"></KolHeading>
|
|
36
|
-
<
|
|
36
|
+
<KolTableStateful
|
|
37
37
|
_label="Table for demonstration purposes with sortable columns"
|
|
38
38
|
_headers={{
|
|
39
39
|
horizontal: [
|
|
40
40
|
[
|
|
41
|
-
{ label: 'left', key: 'left', textAlign: 'left',
|
|
42
|
-
{ label: 'center', key: 'center', textAlign: 'center',
|
|
43
|
-
{ label: 'right', key: 'right', textAlign: 'right',
|
|
41
|
+
{ label: 'left', key: 'left', textAlign: 'left', compareFn: genericNonSorter },
|
|
42
|
+
{ label: 'center', key: 'center', textAlign: 'center', compareFn: genericNonSorter },
|
|
43
|
+
{ label: 'right', key: 'right', textAlign: 'right', compareFn: genericNonSorter },
|
|
44
44
|
],
|
|
45
45
|
],
|
|
46
46
|
}}
|
|
@@ -50,13 +50,13 @@ export const TableColumnAlignment: FC = () => (
|
|
|
50
50
|
/>
|
|
51
51
|
|
|
52
52
|
<KolHeading _label="Table some sortable columns" _level={3} className="block mt-6"></KolHeading>
|
|
53
|
-
<
|
|
53
|
+
<KolTableStateful
|
|
54
54
|
_label="Table for demonstration purposes with some but not all columns sortable"
|
|
55
55
|
_headers={{
|
|
56
56
|
horizontal: [
|
|
57
57
|
[
|
|
58
|
-
{ label: 'left', key: 'left', textAlign: 'left',
|
|
59
|
-
{ label: 'center', key: 'center', textAlign: 'center',
|
|
58
|
+
{ label: 'left', key: 'left', textAlign: 'left', compareFn: genericNonSorter },
|
|
59
|
+
{ label: 'center', key: 'center', textAlign: 'center', compareFn: genericNonSorter },
|
|
60
60
|
{ label: 'right', key: 'right', textAlign: 'right' },
|
|
61
61
|
],
|
|
62
62
|
],
|
|
@@ -67,7 +67,7 @@ export const TableColumnAlignment: FC = () => (
|
|
|
67
67
|
/>
|
|
68
68
|
|
|
69
69
|
<KolHeading _label="Table with vertical heading" _level={3} className="block mt-6"></KolHeading>
|
|
70
|
-
<
|
|
70
|
+
<KolTableStateful
|
|
71
71
|
_label="Table for demonstration purposes with vertical heading"
|
|
72
72
|
_headers={{
|
|
73
73
|
horizontal: [
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { KolTableStateful } from '@public-ui/react';
|
|
4
4
|
import { SampleDescription } from '../SampleDescription';
|
|
5
5
|
|
|
6
6
|
export const TableComplexHeaders: FC = () => (
|
|
7
7
|
<>
|
|
8
8
|
<SampleDescription>
|
|
9
|
-
<p>This sample shows
|
|
9
|
+
<p>This sample shows KolTableStateful using vertical and horizontal headers, applying colspan and rowspan.</p>
|
|
10
10
|
</SampleDescription>
|
|
11
11
|
|
|
12
12
|
<section className="w-full flex flex-col">
|
|
13
|
-
<
|
|
13
|
+
<KolTableStateful
|
|
14
14
|
_label="Business hours"
|
|
15
15
|
_data={[
|
|
16
16
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
|
|
4
|
-
import { KolHeading, KolInputCheckbox,
|
|
4
|
+
import { KolHeading, KolInputCheckbox, KolTableStateful } from '@public-ui/react';
|
|
5
5
|
|
|
6
6
|
import { SampleDescription } from '../SampleDescription';
|
|
7
7
|
|
|
@@ -26,15 +26,15 @@ export const TableHorizontalScrollbar: FC = () => {
|
|
|
26
26
|
<>
|
|
27
27
|
<SampleDescription>
|
|
28
28
|
<p>
|
|
29
|
-
This sample shows
|
|
30
|
-
to scroll it using arrow keys.
|
|
29
|
+
This sample shows KolTableStateful with and without horizontal scrollbars. When a scrollbar is present, it should be possible to focus the table
|
|
30
|
+
container and to scroll it using arrow keys.
|
|
31
31
|
</p>
|
|
32
32
|
</SampleDescription>
|
|
33
33
|
|
|
34
34
|
<section className="w-full flex flex-col gap-4">
|
|
35
35
|
<KolHeading _label="Table with scrollbar" _level={2} />
|
|
36
36
|
|
|
37
|
-
<
|
|
37
|
+
<KolTableStateful
|
|
38
38
|
_label="Table for demonstration purposes with horizontal scrollbar."
|
|
39
39
|
_minWidth={hasWidthRestriction ? '600px' : 'auto'}
|
|
40
40
|
_headers={HEADERS}
|
|
@@ -45,7 +45,7 @@ export const TableHorizontalScrollbar: FC = () => {
|
|
|
45
45
|
|
|
46
46
|
<KolHeading _label="Empty Table with scrollbar" _level={3} />
|
|
47
47
|
|
|
48
|
-
<
|
|
48
|
+
<KolTableStateful
|
|
49
49
|
_label="Table for demonstration purposes with horizontal scrollbar with auto minWidth."
|
|
50
50
|
_minWidth={hasWidthRestriction ? '600px' : 'auto'}
|
|
51
51
|
_headers={HEADERS}
|
|
@@ -70,7 +70,13 @@ export const TableHorizontalScrollbar: FC = () => {
|
|
|
70
70
|
<i>Scrollbar appears on very small viewport sizes</i>
|
|
71
71
|
</p>
|
|
72
72
|
|
|
73
|
-
<
|
|
73
|
+
<KolTableStateful
|
|
74
|
+
_label="Table for demonstration purposes without horizontal scrollbar"
|
|
75
|
+
_minWidth="600px"
|
|
76
|
+
_headers={HEADERS}
|
|
77
|
+
_data={DATA}
|
|
78
|
+
className="block"
|
|
79
|
+
/>
|
|
74
80
|
</section>
|
|
75
81
|
</>
|
|
76
82
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
|
|
4
|
-
import { KolHeading, KolInputCheckbox,
|
|
4
|
+
import { KolHeading, KolInputCheckbox, KolTableStateful } from '@public-ui/react';
|
|
5
5
|
import type { KoliBriTableHeaders, KoliBriTableDataType } from '@public-ui/components';
|
|
6
6
|
import type { Data } from './test-data';
|
|
7
7
|
import { DATA } from './test-data';
|
|
@@ -74,7 +74,7 @@ export const MultiSortTable: FC = () => {
|
|
|
74
74
|
return (
|
|
75
75
|
<>
|
|
76
76
|
<SampleDescription>
|
|
77
|
-
<p>This sample shows
|
|
77
|
+
<p>This sample shows KolTableStateful with multi-sort functionality, allowing sorting by both "order" and "date" columns.</p>
|
|
78
78
|
</SampleDescription>
|
|
79
79
|
|
|
80
80
|
<section className="w-full grid gap-4">
|
|
@@ -86,7 +86,7 @@ export const MultiSortTable: FC = () => {
|
|
|
86
86
|
_variant="switch"
|
|
87
87
|
_on={{ onChange: (_, value) => setAllowMultiSortVertical(Boolean(value)) }}
|
|
88
88
|
></KolInputCheckbox>
|
|
89
|
-
<
|
|
89
|
+
<KolTableStateful
|
|
90
90
|
_label="Sort Table with Order and Date"
|
|
91
91
|
_data={DATA.slice(0, 10)}
|
|
92
92
|
_headers={HEADERS_VERTICAL}
|
|
@@ -102,7 +102,7 @@ export const MultiSortTable: FC = () => {
|
|
|
102
102
|
_variant="switch"
|
|
103
103
|
_on={{ onChange: (_, value) => setAllowMultiSortHorizontal(Boolean(value)) }}
|
|
104
104
|
></KolInputCheckbox>
|
|
105
|
-
<
|
|
105
|
+
<KolTableStateful
|
|
106
106
|
_label="Sort Table with Order and Date"
|
|
107
107
|
_data={DATA}
|
|
108
108
|
_headers={HEADERS_HORIZONTAL}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import { KolHeading,
|
|
4
|
+
import { KolHeading, KolTableStateful } from '@public-ui/react';
|
|
5
5
|
|
|
6
6
|
import { SampleDescription } from '../SampleDescription';
|
|
7
7
|
import { DATE_FORMATTER } from './formatter';
|
|
@@ -23,21 +23,39 @@ const PAGINATION: KoliBriTablePaginationProps = { _page: 2 };
|
|
|
23
23
|
export const PaginationPosition: FC = () => (
|
|
24
24
|
<div className="w-full grid gap-14">
|
|
25
25
|
<SampleDescription>
|
|
26
|
-
<p>This sample shows
|
|
26
|
+
<p>This sample shows KolTableStateful with different pagination positions.</p>
|
|
27
27
|
</SampleDescription>
|
|
28
28
|
|
|
29
29
|
<section className="w-full flex flex-col gap-14">
|
|
30
30
|
<section className="grid gap-4">
|
|
31
31
|
<KolHeading _level={2} _label="Table with pagination at the bottom."></KolHeading>
|
|
32
|
-
<
|
|
32
|
+
<KolTableStateful
|
|
33
|
+
_label="Sample table with pagination at the bottom"
|
|
34
|
+
_data={DATA}
|
|
35
|
+
_headers={HEADERS}
|
|
36
|
+
_pagination={PAGINATION}
|
|
37
|
+
_paginationPosition="bottom"
|
|
38
|
+
></KolTableStateful>
|
|
33
39
|
</section>
|
|
34
40
|
<section className="grid gap-4">
|
|
35
41
|
<KolHeading _level={2} _label="Table with pagination at the top."></KolHeading>
|
|
36
|
-
<
|
|
42
|
+
<KolTableStateful
|
|
43
|
+
_label="Sample table with pagination at the top"
|
|
44
|
+
_data={DATA}
|
|
45
|
+
_headers={HEADERS}
|
|
46
|
+
_pagination={PAGINATION}
|
|
47
|
+
_paginationPosition="top"
|
|
48
|
+
></KolTableStateful>
|
|
37
49
|
</section>
|
|
38
50
|
<section className="grid gap-4">
|
|
39
51
|
<KolHeading _level={2} _label="Table with pagination at both top and bottom."></KolHeading>
|
|
40
|
-
<
|
|
52
|
+
<KolTableStateful
|
|
53
|
+
_label="Sample table with pagination at both top and bottom"
|
|
54
|
+
_data={DATA}
|
|
55
|
+
_headers={HEADERS}
|
|
56
|
+
_pagination={PAGINATION}
|
|
57
|
+
_paginationPosition="both"
|
|
58
|
+
></KolTableStateful>
|
|
41
59
|
</section>
|
|
42
60
|
</section>
|
|
43
61
|
</div>
|