@public-ui/sample-react 3.0.0-rc.1 → 3.0.0-rc.3
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/1055.js +2 -0
- package/dist/1068.js +2 -0
- package/dist/1219.js +2 -0
- package/dist/136.js +2 -0
- package/dist/1416.js +2 -0
- package/dist/1657.js +2 -0
- package/dist/1676.js +2 -0
- package/dist/{4288.js → 1714.js} +2 -2
- 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/364.js +2 -0
- package/dist/{2450.js → 3758.js} +2 -2
- package/dist/3836.js +2 -0
- 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/4566.js +2 -0
- 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/5792.js +2 -0
- package/dist/5876.js +2 -0
- package/dist/597.js +2 -0
- package/dist/6018.js +2 -0
- package/dist/6203.js +2 -0
- package/dist/6420.js +2 -0
- package/dist/6451.js +2 -0
- package/dist/6480.js +2 -0
- package/dist/6577.js +2 -0
- 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/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/9929.js +2 -0
- 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/dist/main.js.LICENSE.txt +2 -2
- package/package.json +19 -19
- package/public/index.html +0 -1
- package/src/App.tsx +1 -3
- package/src/components/drawer/basic.tsx +2 -20
- package/src/components/drawer/controlled.tsx +0 -8
- package/src/components/form/error-list.tsx +38 -24
- package/src/components/handout/basic.tsx +18 -23
- package/src/components/input-color/partials/cases.tsx +4 -2
- package/src/components/input-date/partials/cases.tsx +6 -3
- 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-email/partials/cases.tsx +6 -3
- package/src/components/input-file/partials/cases.tsx +6 -3
- package/src/components/input-password/partials/cases.tsx +8 -5
- package/src/components/input-range/partials/cases.tsx +6 -3
- 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/components/textarea/partials/cases.tsx +9 -4
- package/src/react.main.tsx +4 -9
- 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/src/shares/theme.ts +4 -8
- package/dist/1073.js +0 -2
- package/dist/1325.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/2986.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/6740.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/7141.js +0 -2
- package/dist/7146.js +0 -2
- package/dist/7287.js +0 -2
- package/dist/7599.js +0 -2
- package/dist/7648.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/9148.js +0 -2
- package/dist/9522.js +0 -2
- package/dist/9625.js +0 -2
- 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 → 1055.js.LICENSE.txt} +0 -0
- /package/dist/{1325.js.LICENSE.txt → 1068.js.LICENSE.txt} +0 -0
- /package/dist/{1392.js.LICENSE.txt → 1219.js.LICENSE.txt} +0 -0
- /package/dist/{1604.js.LICENSE.txt → 136.js.LICENSE.txt} +0 -0
- /package/dist/{175.js.LICENSE.txt → 1416.js.LICENSE.txt} +0 -0
- /package/dist/{178.js.LICENSE.txt → 1657.js.LICENSE.txt} +0 -0
- /package/dist/{2220.js.LICENSE.txt → 1676.js.LICENSE.txt} +0 -0
- /package/dist/{2444.js.LICENSE.txt → 1714.js.LICENSE.txt} +0 -0
- /package/dist/{2450.js.LICENSE.txt → 1718.js.LICENSE.txt} +0 -0
- /package/dist/{2671.js.LICENSE.txt → 1744.js.LICENSE.txt} +0 -0
- /package/dist/{2986.js.LICENSE.txt → 2078.js.LICENSE.txt} +0 -0
- /package/dist/{3030.js.LICENSE.txt → 2115.js.LICENSE.txt} +0 -0
- /package/dist/{3270.js.LICENSE.txt → 2195.js.LICENSE.txt} +0 -0
- /package/dist/{3340.js.LICENSE.txt → 3021.js.LICENSE.txt} +0 -0
- /package/dist/{3392.js.LICENSE.txt → 3027.js.LICENSE.txt} +0 -0
- /package/dist/{3529.js.LICENSE.txt → 3186.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 → 6018.js.LICENSE.txt} +0 -0
- /package/dist/{6005.js.LICENSE.txt → 6203.js.LICENSE.txt} +0 -0
- /package/dist/{618.js.LICENSE.txt → 6420.js.LICENSE.txt} +0 -0
- /package/dist/{623.js.LICENSE.txt → 6451.js.LICENSE.txt} +0 -0
- /package/dist/{643.js.LICENSE.txt → 6480.js.LICENSE.txt} +0 -0
- /package/dist/{6610.js.LICENSE.txt → 6577.js.LICENSE.txt} +0 -0
- /package/dist/{6618.js.LICENSE.txt → 6983.js.LICENSE.txt} +0 -0
- /package/dist/{6711.js.LICENSE.txt → 7084.js.LICENSE.txt} +0 -0
- /package/dist/{6740.js.LICENSE.txt → 7225.js.LICENSE.txt} +0 -0
- /package/dist/{6786.js.LICENSE.txt → 7267.js.LICENSE.txt} +0 -0
- /package/dist/{685.js.LICENSE.txt → 7958.js.LICENSE.txt} +0 -0
- /package/dist/{6950.js.LICENSE.txt → 7997.js.LICENSE.txt} +0 -0
- /package/dist/{7055.js.LICENSE.txt → 8069.js.LICENSE.txt} +0 -0
- /package/dist/{7106.js.LICENSE.txt → 8212.js.LICENSE.txt} +0 -0
- /package/dist/{7141.js.LICENSE.txt → 8243.js.LICENSE.txt} +0 -0
- /package/dist/{7146.js.LICENSE.txt → 8283.js.LICENSE.txt} +0 -0
- /package/dist/{7287.js.LICENSE.txt → 8478.js.LICENSE.txt} +0 -0
- /package/dist/{7599.js.LICENSE.txt → 851.js.LICENSE.txt} +0 -0
- /package/dist/{7648.js.LICENSE.txt → 8573.js.LICENSE.txt} +0 -0
- /package/dist/{7668.js.LICENSE.txt → 8728.js.LICENSE.txt} +0 -0
- /package/dist/{7855.js.LICENSE.txt → 8808.js.LICENSE.txt} +0 -0
- /package/dist/{8165.js.LICENSE.txt → 8999.js.LICENSE.txt} +0 -0
- /package/dist/{8306.js.LICENSE.txt → 9068.js.LICENSE.txt} +0 -0
- /package/dist/{8543.js.LICENSE.txt → 9130.js.LICENSE.txt} +0 -0
- /package/dist/{866.js.LICENSE.txt → 9162.js.LICENSE.txt} +0 -0
- /package/dist/{8859.js.LICENSE.txt → 9219.js.LICENSE.txt} +0 -0
- /package/dist/{904.js.LICENSE.txt → 9423.js.LICENSE.txt} +0 -0
- /package/dist/{9148.js.LICENSE.txt → 9430.js.LICENSE.txt} +0 -0
- /package/dist/{9522.js.LICENSE.txt → 9929.js.LICENSE.txt} +0 -0
- /package/dist/{9625.js.LICENSE.txt → 993.js.LICENSE.txt} +0 -0
package/dist/main.js.LICENSE.txt
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @remix-run/router v1.21.
|
|
36
|
+
* @remix-run/router v1.21.1
|
|
37
37
|
*
|
|
38
38
|
* Copyright (c) Remix Software Inc.
|
|
39
39
|
*
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
*/
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* React Router v6.28.
|
|
47
|
+
* React Router v6.28.2
|
|
48
48
|
*
|
|
49
49
|
* Copyright (c) Remix Software Inc.
|
|
50
50
|
*
|
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.3",
|
|
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.2",
|
|
20
|
+
"@typescript-eslint/parser": "8.18.2",
|
|
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",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"eslint-plugin-html": "8.1.2",
|
|
32
32
|
"eslint-plugin-json": "^3",
|
|
33
33
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
34
|
-
"eslint-plugin-react": "7.37.
|
|
34
|
+
"eslint-plugin-react": "7.37.4",
|
|
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",
|
|
@@ -43,22 +43,22 @@
|
|
|
43
43
|
"prettier": "3.4.2",
|
|
44
44
|
"react": "18.3.1",
|
|
45
45
|
"react-dom": "18.3.1",
|
|
46
|
-
"react-number-format": "5.4.
|
|
47
|
-
"react-router": "6.28.
|
|
48
|
-
"react-router-dom": "6.28.
|
|
46
|
+
"react-number-format": "5.4.3",
|
|
47
|
+
"react-router": "6.28.2",
|
|
48
|
+
"react-router-dom": "6.28.2",
|
|
49
49
|
"rimraf": "6.0.1",
|
|
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.3",
|
|
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/
|
|
60
|
-
"@public-ui/
|
|
61
|
-
"@public-ui/themes": "3.0.0-rc.
|
|
58
|
+
"yup": "1.5.0",
|
|
59
|
+
"@public-ui/react": "3.0.0-rc.3",
|
|
60
|
+
"@public-ui/components": "3.0.0-rc.3",
|
|
61
|
+
"@public-ui/themes": "3.0.0-rc.3"
|
|
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('/');
|
|
@@ -139,7 +137,7 @@ export const App: FC = () => {
|
|
|
139
137
|
)}
|
|
140
138
|
|
|
141
139
|
<main className="flex flex-col items-stretch p-4" id="route-container">
|
|
142
|
-
{!hideMenus && isDraftTheme(theme) && <KolBadge className="block mb-3" _label="
|
|
140
|
+
{!hideMenus && isDraftTheme(theme) && <KolBadge className="block mb-3" _label="In progress" _color="#db5461" />}
|
|
143
141
|
<Routes>
|
|
144
142
|
{ROUTE_TREE}
|
|
145
143
|
<Route path="*" element={<Navigate to={ROUTE_LIST[0]} replace />} />
|
|
@@ -14,21 +14,17 @@ export const DrawerBasic: FC = () => {
|
|
|
14
14
|
const defaultAlign = searchParams.get('align') as AlignPropType;
|
|
15
15
|
const hideMenus = useContext(HideMenusContext);
|
|
16
16
|
const drawerElement = useRef<HTMLKolDrawerElement>(null);
|
|
17
|
-
const drawerModalElement = useRef<HTMLKolDrawerElement>(null);
|
|
18
17
|
const [align, setAlign] = useState<AlignPropType>(defaultAlign || 'left');
|
|
19
18
|
useEffect(() => {
|
|
20
19
|
if (defaultAlign) {
|
|
21
|
-
|
|
20
|
+
drawerElement.current?.open();
|
|
22
21
|
}
|
|
23
22
|
}, [defaultAlign]);
|
|
24
23
|
return (
|
|
25
24
|
<>
|
|
26
25
|
{!hideMenus && <KolBadge className="block mb-3" _label="Component is a DRAFT - Don't use in production yet." _color="#db5461" />}
|
|
27
26
|
<SampleDescription>
|
|
28
|
-
<p>
|
|
29
|
-
KolDrawer shows a dialog attached to one of the sides of the viewport, when opened. This sample illustrates the four alignments and the modal- and
|
|
30
|
-
non-modal modes.
|
|
31
|
-
</p>
|
|
27
|
+
<p>KolDrawer shows a dialog attached to one of the sides of the viewport, when opened. This sample illustrates the four alignments.</p>
|
|
32
28
|
</SampleDescription>
|
|
33
29
|
|
|
34
30
|
<DrawerRadioAlign value={align} onChange={(_, value) => setAlign(value as AlignPropType)} />
|
|
@@ -41,20 +37,6 @@ export const DrawerBasic: FC = () => {
|
|
|
41
37
|
<KolButton _label="Close drawer" _on={{ onClick: () => drawerElement.current?.close() }} />
|
|
42
38
|
</KolDrawer>
|
|
43
39
|
<KolButton _label="Open drawer" _on={{ onClick: () => drawerElement.current?.open() }} />
|
|
44
|
-
<KolDrawer
|
|
45
|
-
ref={drawerModalElement}
|
|
46
|
-
_modal
|
|
47
|
-
_align={align}
|
|
48
|
-
_label="I am a Drawer Modal"
|
|
49
|
-
_on={{ onClose: () => console.log('Drawer Modal onClose triggered!') }}
|
|
50
|
-
>
|
|
51
|
-
<p>
|
|
52
|
-
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
|
53
|
-
voluptua.
|
|
54
|
-
</p>
|
|
55
|
-
<KolButton _label="Close drawer modal" _on={{ onClick: () => drawerModalElement.current?.close() }} />
|
|
56
|
-
</KolDrawer>
|
|
57
|
-
<KolButton _label="Open drawer as modal" _on={{ onClick: () => drawerModalElement.current?.open() }} />
|
|
58
40
|
</div>
|
|
59
41
|
</>
|
|
60
42
|
);
|
|
@@ -14,7 +14,6 @@ export const DrawerControlled: FC = () => {
|
|
|
14
14
|
const defaultAlign = searchParams.get('align') as AlignPropType;
|
|
15
15
|
const hideMenus = useContext(HideMenusContext);
|
|
16
16
|
const [open, setOpen] = useState(false);
|
|
17
|
-
const [modalOpen, setModalOpen] = useState(false);
|
|
18
17
|
const [align, setAlign] = useState<AlignPropType>(defaultAlign || 'left');
|
|
19
18
|
return (
|
|
20
19
|
<div>
|
|
@@ -34,13 +33,6 @@ export const DrawerControlled: FC = () => {
|
|
|
34
33
|
</div>
|
|
35
34
|
</KolDrawer>
|
|
36
35
|
<KolButton _label="Open drawer" _on={{ onClick: () => setOpen(true) }} />
|
|
37
|
-
<KolDrawer _open={modalOpen} _modal _align={align} _label="I'm a controlled modal drawer" _on={{ onClose: () => setModalOpen(false) }}>
|
|
38
|
-
<div>
|
|
39
|
-
<p>Lorem ipsum dolor sit amet,</p>
|
|
40
|
-
<KolButton _label="Close drawer" _on={{ onClick: () => setModalOpen(false) }} />
|
|
41
|
-
</div>
|
|
42
|
-
</KolDrawer>
|
|
43
|
-
<KolButton _label="Open drawer as modal" _on={{ onClick: () => setModalOpen(true) }} />
|
|
44
36
|
</div>
|
|
45
37
|
</div>
|
|
46
38
|
);
|
|
@@ -1,28 +1,42 @@
|
|
|
1
|
+
import { KolButton, KolForm, KolInputText } from '@public-ui/react';
|
|
1
2
|
import type { FC } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
+
import React, { useRef } from 'react';
|
|
3
4
|
import { SampleDescription } from '../SampleDescription';
|
|
4
|
-
import { KolForm, KolInputText } from '@public-ui/react';
|
|
5
5
|
|
|
6
|
-
export const FormErrorList: FC = () =>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
export const FormErrorList: FC = () => {
|
|
7
|
+
const formRef = useRef<HTMLKolFormElement | null>(null);
|
|
8
|
+
return (
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>This sample shows a form with error messages.</p>
|
|
12
|
+
</SampleDescription>
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
<KolForm
|
|
15
|
+
className="w-full"
|
|
16
|
+
ref={formRef}
|
|
17
|
+
_errorList={[
|
|
18
|
+
{
|
|
19
|
+
message: 'Error in Input 2',
|
|
20
|
+
selector: '#input2',
|
|
21
|
+
},
|
|
22
|
+
]}
|
|
23
|
+
>
|
|
24
|
+
<div className="grid gap-2">
|
|
25
|
+
<KolInputText id="input1" _label="Input 1" />
|
|
26
|
+
<KolInputText id="input2" _label="Input 2" _touched _msg={{ _description: 'Input error', _type: 'error' }} />
|
|
27
|
+
<KolInputText id="input3" _label="Input 3" />
|
|
28
|
+
<div>
|
|
29
|
+
<KolButton
|
|
30
|
+
_label="ScrollTo"
|
|
31
|
+
_on={{
|
|
32
|
+
onClick: () => {
|
|
33
|
+
formRef.current?.focusErrorList();
|
|
34
|
+
},
|
|
35
|
+
}}
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</KolForm>
|
|
40
|
+
</>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
@@ -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,10 +1,9 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
|
|
3
2
|
import { KolInputColor } from '@public-ui/react';
|
|
3
|
+
import type { Components } from '@public-ui/components';
|
|
4
4
|
|
|
5
5
|
import { ERROR_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type { Components } from '@public-ui/components';
|
|
8
7
|
export const InputColorCases = forwardRef<HTMLKolInputColorElement, Components.KolInputColor>(function InputColorCases(props, ref) {
|
|
9
8
|
return (
|
|
10
9
|
<div className="grid gap-4">
|
|
@@ -26,6 +25,9 @@ export const InputColorCases = forwardRef<HTMLKolInputColorElement, Components.K
|
|
|
26
25
|
_suggestions="['#000000','#f08080', '#0000ff','#00ff00']"
|
|
27
26
|
_touched
|
|
28
27
|
/>
|
|
28
|
+
<KolInputColor {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Color" />
|
|
29
|
+
<KolInputColor {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Color" />
|
|
30
|
+
<KolInputColor {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="Color" />
|
|
29
31
|
<KolInputColor {...props} ref={ref} _accessKey="C" _hint="Hint text" _label="Color with hint" _value="#f08080" />
|
|
30
32
|
<KolInputColor {...props} _disabled _label="Color (Disabled)" _value="#f08080" />
|
|
31
33
|
<KolInputColor {...props} _label="With access key" _accessKey="c"></KolInputColor>
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
|
|
3
2
|
import { KolInputDate } from '@public-ui/react';
|
|
3
|
+
import type { Components } from '@public-ui/components';
|
|
4
4
|
|
|
5
|
-
import { ERROR_MSG } from '../../../shares/constants';
|
|
5
|
+
import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type { Components } from '@public-ui/components';
|
|
8
7
|
export const InputDateCases = forwardRef<HTMLKolInputDateElement, Components.KolInputDate>(function InputDateCases(props, ref) {
|
|
9
8
|
return (
|
|
10
9
|
<div className="grid gap-4">
|
|
@@ -16,11 +15,15 @@ export const InputDateCases = forwardRef<HTMLKolInputDateElement, Components.Kol
|
|
|
16
15
|
{...props}
|
|
17
16
|
_step={1}
|
|
18
17
|
_type="datetime-local"
|
|
18
|
+
_hint={HINT_MSG}
|
|
19
19
|
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
20
20
|
_label="Local datetime (with seconds)"
|
|
21
21
|
_required
|
|
22
22
|
_touched
|
|
23
23
|
/>
|
|
24
|
+
<KolInputDate {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Color" />
|
|
25
|
+
<KolInputDate {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Color" />
|
|
26
|
+
<KolInputDate {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="Color" />
|
|
24
27
|
<KolInputDate {...props} _type="month" _label="Month" _required />
|
|
25
28
|
<KolInputDate {...props} ref={ref} _accessKey="W" _type="week" _label="Week" _required />
|
|
26
29
|
<KolInputDate {...props} _type="time" _label="Time (standard)" _required />
|
|
@@ -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}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
|
|
3
2
|
import { KolInputEmail } from '@public-ui/react';
|
|
3
|
+
import type { Components } from '@public-ui/components';
|
|
4
4
|
|
|
5
|
-
import { ERROR_MSG } from '../../../shares/constants';
|
|
5
|
+
import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type { Components } from '@public-ui/components';
|
|
8
7
|
export const InputEmailCases = forwardRef<HTMLKolInputEmailElement, Components.KolInputEmail>(function InputEmailCases(props, ref) {
|
|
9
8
|
return (
|
|
10
9
|
<div className="grid gap-4">
|
|
@@ -18,6 +17,7 @@ export const InputEmailCases = forwardRef<HTMLKolInputEmailElement, Components.K
|
|
|
18
17
|
_placeholder="elke@mustermann.de"
|
|
19
18
|
_suggestions="['test1@mail.de', 'test2@mail.de', 'test3@mail.de']"
|
|
20
19
|
_label="E-Mail (list)"
|
|
20
|
+
_hint={HINT_MSG}
|
|
21
21
|
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
22
22
|
_touched
|
|
23
23
|
_icons={{
|
|
@@ -29,6 +29,9 @@ export const InputEmailCases = forwardRef<HTMLKolInputEmailElement, Components.K
|
|
|
29
29
|
},
|
|
30
30
|
}}
|
|
31
31
|
/>
|
|
32
|
+
<KolInputEmail {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="E-Mail" />
|
|
33
|
+
<KolInputEmail {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="E-Mail" />
|
|
34
|
+
<KolInputEmail {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="E-Mail" />
|
|
32
35
|
<KolInputEmail {...props} _disabled _value="test@mail.de" _label="E-Mail (Disabled)" />
|
|
33
36
|
<KolInputEmail {...props} _readOnly _value="test@mail.de" _label="E-Mail (Readonly)" />
|
|
34
37
|
<KolInputEmail {...props} _value="test@mail.de" _label="With access key" _accessKey="c" />
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
|
|
3
2
|
import { KolInputFile } from '@public-ui/react';
|
|
3
|
+
import type { Components } from '@public-ui/components';
|
|
4
4
|
|
|
5
|
-
import { ERROR_MSG } from '../../../shares/constants';
|
|
5
|
+
import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type { Components } from '@public-ui/components';
|
|
8
7
|
export const InputFileCases = forwardRef<HTMLKolInputFileElement, Components.KolInputFile>(function InputFileCases(props, ref) {
|
|
9
8
|
return (
|
|
10
9
|
<div className="grid gap-4">
|
|
@@ -23,6 +22,7 @@ export const InputFileCases = forwardRef<HTMLKolInputFileElement, Components.Kol
|
|
|
23
22
|
<KolInputFile
|
|
24
23
|
{...props}
|
|
25
24
|
_required
|
|
25
|
+
_hint={HINT_MSG}
|
|
26
26
|
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
27
27
|
_label="Upload file (Black background test)"
|
|
28
28
|
_icons={{
|
|
@@ -32,6 +32,9 @@ export const InputFileCases = forwardRef<HTMLKolInputFileElement, Components.Kol
|
|
|
32
32
|
}}
|
|
33
33
|
_touched
|
|
34
34
|
/>
|
|
35
|
+
<KolInputFile {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Upload file" />
|
|
36
|
+
<KolInputFile {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Upload file" />
|
|
37
|
+
<KolInputFile {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="Upload file" />
|
|
35
38
|
<KolInputFile {...props} ref={ref} _accessKey="h" _multiple _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Upload file (Multiple)" />
|
|
36
39
|
<KolInputFile {...props} _disabled _label="Upload file (Disabled)" />
|
|
37
40
|
<KolInputFile {...props} _label="With access key" _accessKey="c" />
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
|
|
3
2
|
import { KolInputPassword } from '@public-ui/react';
|
|
3
|
+
import type { Components } from '@public-ui/components';
|
|
4
4
|
|
|
5
|
-
import { ERROR_MSG } from '../../../shares/constants';
|
|
5
|
+
import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type { Components } from '@public-ui/components';
|
|
8
7
|
export const InputPasswordCases = forwardRef<HTMLKolInputPasswordElement, Components.KolInputPassword>(function InputPasswordCases(props, ref) {
|
|
9
8
|
return (
|
|
10
9
|
<div className="grid gap-4">
|
|
11
10
|
<div className="black-background">
|
|
12
11
|
<KolInputPassword {...props} _label="Passwort (Black background test)" />
|
|
13
12
|
</div>
|
|
14
|
-
<KolInputPassword {...props} _disabled _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Passwort (Disabled)" _touched />
|
|
15
|
-
<KolInputPassword {...props} _readOnly _label="Passwort (Readonly)" />
|
|
16
13
|
<KolInputPassword
|
|
17
14
|
{...props}
|
|
18
15
|
ref={ref}
|
|
19
16
|
_accessKey="P"
|
|
20
17
|
_required
|
|
18
|
+
_hint={HINT_MSG}
|
|
21
19
|
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
22
20
|
_placeholder="Mit Icons"
|
|
23
21
|
_label="Passwort"
|
|
@@ -31,6 +29,11 @@ export const InputPasswordCases = forwardRef<HTMLKolInputPasswordElement, Compon
|
|
|
31
29
|
}}
|
|
32
30
|
_touched
|
|
33
31
|
/>
|
|
32
|
+
<KolInputPassword {...props} _placeholder="Placeholder" _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Password" />
|
|
33
|
+
<KolInputPassword {...props} _placeholder="Placeholder" _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Password" />
|
|
34
|
+
<KolInputPassword {...props} _placeholder="Placeholder" _msg={{ _type: 'success', _description: 'Success message' }} _label="Password" />
|
|
35
|
+
<KolInputPassword {...props} _disabled _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Passwort (Disabled)" _touched />
|
|
36
|
+
<KolInputPassword {...props} _readOnly _label="Passwort (Readonly)" />
|
|
34
37
|
<KolInputPassword {...props} ref={ref} _shortKey="c" _label="With access key" />
|
|
35
38
|
<KolInputPassword {...props} ref={ref} _shortKey="s" _label="With short key" />
|
|
36
39
|
</div>
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
|
|
3
2
|
import { KolInputRange } from '@public-ui/react';
|
|
3
|
+
import type { Components } from '@public-ui/components';
|
|
4
4
|
|
|
5
|
-
import { ERROR_MSG } from '../../../shares/constants';
|
|
5
|
+
import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type { Components } from '@public-ui/components';
|
|
8
7
|
export const InputRangeCases = forwardRef<HTMLKolInputRangeElement, Components.KolInputRange>(function InputRangeCases(props, ref) {
|
|
9
8
|
return (
|
|
10
9
|
<div className="grid gap-4">
|
|
@@ -33,10 +32,14 @@ export const InputRangeCases = forwardRef<HTMLKolInputRangeElement, Components.K
|
|
|
33
32
|
_min={0}
|
|
34
33
|
_max={50}
|
|
35
34
|
_step={10}
|
|
35
|
+
_hint={HINT_MSG}
|
|
36
36
|
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
37
37
|
_label="Slider with error"
|
|
38
38
|
_touched
|
|
39
39
|
/>
|
|
40
|
+
<KolInputRange {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Slider" />
|
|
41
|
+
<KolInputRange {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Slider" />
|
|
42
|
+
<KolInputRange {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="Slider" />
|
|
40
43
|
<KolInputRange {...props} _disabled _min={0} _max={50} _label="Slider (disabled)" />
|
|
41
44
|
<KolInputRange {...props} _min={0} _max={50} _label="With access key" _accessKey="c" />
|
|
42
45
|
<KolInputRange {...props} _min={0} _max={50} _label="With short key" _shortKey="s" />
|
|
@@ -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
|
</>
|