@public-ui/sample-react 4.3.1-rc.0 → 4.3.1-rc.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/sample-react",
|
|
3
|
-
"version": "4.3.1-rc.
|
|
3
|
+
"version": "4.3.1-rc.1",
|
|
4
4
|
"description": "This app contains samples for the KoliBri/Public UI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "EUPL-1.2",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"typescript": "5.9.3",
|
|
21
21
|
"world_countries_lists": "3.3.0",
|
|
22
22
|
"zod": "4.4.3",
|
|
23
|
-
"@public-ui/react-hook-form-adapter": "4.3.1-rc.
|
|
24
|
-
"@public-ui/react-v19": "4.3.1-rc.
|
|
23
|
+
"@public-ui/react-hook-form-adapter": "4.3.1-rc.1",
|
|
24
|
+
"@public-ui/react-v19": "4.3.1-rc.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/react": "19.2.18",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"react": "19.2.8",
|
|
38
38
|
"react-dom": "19.2.8",
|
|
39
39
|
"react-router": "8.3.0",
|
|
40
|
-
"@public-ui/components": "4.3.1-rc.
|
|
40
|
+
"@public-ui/components": "4.3.1-rc.1"
|
|
41
41
|
},
|
|
42
42
|
"files": [
|
|
43
43
|
"assets",
|
package/src/scenarios/routes.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { InputsGetValue } from './inputs-get-value';
|
|
|
12
12
|
import { PerformanceTest } from './performance-test';
|
|
13
13
|
import { RHFBasic } from './react-hook-form/basic';
|
|
14
14
|
import { RHFDisabled } from './react-hook-form/disabled';
|
|
15
|
+
import { SameHeightOfAllFormElements } from './same-height-of-all-form-elements-with-label';
|
|
15
16
|
import { SameHeightOfAllInteractiveElements } from './same-height-of-all-interactive-elements';
|
|
16
17
|
import { SampleFormWithValidation } from './sample-form-with-validation';
|
|
17
18
|
import { Skeleton } from './skeleton';
|
|
@@ -33,6 +34,7 @@ export const SCENARIO_ROUTES: Routes = {
|
|
|
33
34
|
'react-hook-form-adapter': RHFBasic,
|
|
34
35
|
'react-hook-form-adapter-disabled': RHFDisabled,
|
|
35
36
|
'same-height-of-all-interactive-elements': SameHeightOfAllInteractiveElements,
|
|
37
|
+
'same-height-of-all-form-elements-with-label': SameHeightOfAllFormElements,
|
|
36
38
|
'static-form': StaticForm,
|
|
37
39
|
'sample-form-with-validation': SampleFormWithValidation,
|
|
38
40
|
'table-horizontal-scrollbar-advanced': TableHorizontalScrollAdvanced,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
KolCombobox,
|
|
3
|
+
KolInputColor,
|
|
4
|
+
KolInputDate,
|
|
5
|
+
KolInputEmail,
|
|
6
|
+
KolInputFile,
|
|
7
|
+
KolInputNumber,
|
|
8
|
+
KolInputPassword,
|
|
9
|
+
KolInputRange,
|
|
10
|
+
KolInputText,
|
|
11
|
+
KolSelect,
|
|
12
|
+
KolSingleSelect,
|
|
13
|
+
KolTextarea,
|
|
14
|
+
} from '@public-ui/react-v19';
|
|
15
|
+
import type { FC } from 'react';
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import { SampleDescription } from '../components/SampleDescription';
|
|
18
|
+
|
|
19
|
+
export const SameHeightOfAllFormElements: FC = () => {
|
|
20
|
+
return (
|
|
21
|
+
<>
|
|
22
|
+
<SampleDescription>
|
|
23
|
+
<p>All form elements with labels, should have the same height and gaps to ensure a consistent and visually balanced user interface.</p>
|
|
24
|
+
</SampleDescription>
|
|
25
|
+
<div className="w-full flex flex-wrap gap-4">
|
|
26
|
+
<KolCombobox _icons="kolicon-house" _label="Combobox" _suggestions={[]} />
|
|
27
|
+
<KolInputColor
|
|
28
|
+
_icons={{
|
|
29
|
+
left: 'kolicon-house',
|
|
30
|
+
}}
|
|
31
|
+
_label="Input-Color"
|
|
32
|
+
/>
|
|
33
|
+
<KolInputFile _icons="kolicon-house" _label="Input-File" />
|
|
34
|
+
<KolInputDate _icons="kolicon-house" _label="Input-Date" />
|
|
35
|
+
<KolInputEmail _icons="kolicon-house" _label="Input-Email" />
|
|
36
|
+
<KolInputNumber _icons="kolicon-house" _label="Input-Number" />
|
|
37
|
+
<KolInputPassword _icons="kolicon-house" _label="Input-Password" />
|
|
38
|
+
<KolInputRange _icons="kolicon-house" _label="Input-Range" />
|
|
39
|
+
<KolInputText _icons="kolicon-house" _label="Input-Text" />
|
|
40
|
+
<KolSelect _icons="kolicon-house" _label="Select" _options={[]} />
|
|
41
|
+
<KolSingleSelect _icons="kolicon-house" _label="Single Select" _options={[]} />
|
|
42
|
+
<KolTextarea _icons="kolicon-house" _label="Textarea" />
|
|
43
|
+
</div>
|
|
44
|
+
</>
|
|
45
|
+
);
|
|
46
|
+
};
|