@public-ui/sample-react 2.1.9-rc.0 → 2.1.9
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/1266.js +1 -1
- package/dist/1601.js +1 -1
- package/dist/1786.js +1 -1
- package/dist/1797.js +1 -1
- package/dist/1832.js +1 -1
- package/dist/1908.js +2 -0
- package/dist/2441.js +1 -1
- package/dist/2462.js +1 -1
- package/dist/2605.js +1 -1
- package/dist/2728.js +1 -1
- package/dist/2875.js +2 -0
- package/dist/2960.js +1 -1
- package/dist/{1746.js → 3254.js} +2 -2
- package/dist/3440.js +1 -1
- package/dist/3460.js +1 -1
- package/dist/3492.js +1 -1
- package/dist/3503.js +1 -1
- package/dist/3845.js +1 -1
- package/dist/3882.js +1 -1
- package/dist/3965.js +1 -1
- package/dist/4181.js +1 -1
- package/dist/4294.js +1 -1
- package/dist/4604.js +1 -1
- package/dist/4737.js +1 -1
- package/dist/4804.js +1 -1
- package/dist/4972.js +1 -1
- package/dist/5076.js +1 -1
- package/dist/5204.js +1 -1
- package/dist/5399.js +1 -1
- package/dist/5431.js +1 -1
- package/dist/5514.js +1 -1
- package/dist/5522.js +1 -1
- package/dist/5677.js +1 -1
- package/dist/5781.js +1 -1
- package/dist/5813.js +1 -1
- package/dist/5829.js +1 -1
- package/dist/6199.js +1 -1
- package/dist/6320.js +1 -1
- package/dist/6473.js +1 -1
- package/dist/6567.js +1 -1
- package/dist/6649.js +1 -1
- package/dist/6705.js +1 -1
- package/dist/6717.js +1 -1
- package/dist/6731.js +1 -1
- package/dist/6974.js +1 -1
- package/dist/7157.js +1 -1
- package/dist/7162.js +1 -1
- package/dist/7163.js +1 -1
- package/dist/7183.js +1 -1
- package/dist/7310.js +1 -1
- package/dist/7391.js +1 -1
- package/dist/7461.js +1 -1
- package/dist/7560.js +1 -1
- package/dist/7582.js +1 -1
- package/dist/7609.js +2 -0
- package/dist/7609.js.LICENSE.txt +3 -0
- package/dist/8100.js +1 -1
- package/dist/8116.js +1 -1
- package/dist/8126.js +1 -1
- package/dist/8191.js +1 -1
- package/dist/8210.js +1 -1
- package/dist/8286.js +1 -1
- package/dist/8471.js +1 -1
- package/dist/85.js +1 -1
- package/dist/8799.js +1 -1
- package/dist/8902.js +1 -1
- package/dist/8956.js +1 -1
- package/dist/92.js +1 -1
- package/dist/9558.js +1 -1
- package/dist/9768.js +1 -1
- package/dist/9818.js +1 -1
- package/dist/989.js +1 -1
- package/dist/9980.js +1 -1
- package/dist/assets/material-icons/iconfont/_variables.scss +1 -1
- package/dist/assets/material-symbols/_core.scss +6 -7
- package/dist/main.css +2 -2
- package/dist/main.js +1 -1
- package/package.json +4 -4
- package/public/assets/material-icons/iconfont/_variables.scss +1 -1
- package/public/assets/material-symbols/_core.scss +6 -7
- package/src/App.tsx +1 -1
- package/src/components/alert/basic.tsx +2 -2
- package/src/components/button/icons.tsx +19 -17
- package/src/components/input-date/partials/minMax.tsx +41 -0
- package/src/components/input-date/partials/variants.tsx +5 -0
- package/src/components/modal/basic.tsx +10 -1
- package/src/components/table/horizontal-scrollbar.tsx +15 -2
- package/src/components/tabs/align.tsx +57 -0
- package/src/components/tabs/routes.ts +2 -0
- package/src/components/toast/basic.tsx +31 -2
- package/src/hooks/useToasterService.ts +8 -2
- package/src/scenarios/change-tabindex.tsx +256 -0
- package/src/scenarios/focus-elements.tsx +14 -6
- package/src/scenarios/horizontal-scrollbar-advanced/TableHorizontalScrollbarAdvanced.tsx +15 -11
- package/src/scenarios/routes.ts +2 -0
- package/src/style.scss +5 -5
- package/dist/1163.js +0 -2
- package/dist/633.js +0 -2
- package/dist/assets/bundes/LICENSE.md +0 -1
- package/dist/assets/bundes/sans/BundesSans-Web-Black.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Black.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Black.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-BlackItalic.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-BlackItalic.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-BlackItalic.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Bold.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Bold.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Bold.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-BoldItalic.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-BoldItalic.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-BoldItalic.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Light.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Light.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Light.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-LightItalic.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-LightItalic.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-LightItalic.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Medium.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Medium.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Medium.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-MediumItalic.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-MediumItalic.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-MediumItalic.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Regular.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Regular.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Regular.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-RegularItalic.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-RegularItalic.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-RegularItalic.woff2 +0 -0
- package/dist/assets/bundes/sans-cond/BundesSansCond-Web-Regular.ttf +0 -0
- package/dist/assets/bundes/sans-cond/BundesSansCond-Web-Regular.woff +0 -0
- package/dist/assets/bundes/sans-cond/BundesSansCond-Web-Regular.woff2 +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Bold.ttf +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Bold.woff +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Bold.woff2 +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-BoldItalic.ttf +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-BoldItalic.woff +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-BoldItalic.woff2 +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Italic.ttf +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Italic.woff +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Italic.woff2 +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Regular.ttf +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Regular.woff +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Regular.woff2 +0 -0
- package/dist/assets/bundes/style.css +0 -84
- package/public/assets/bundes/LICENSE.md +0 -1
- package/public/assets/bundes/sans/BundesSans-Web-Black.ttf +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-Black.woff +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-Black.woff2 +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-BlackItalic.ttf +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-BlackItalic.woff +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-BlackItalic.woff2 +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-Bold.ttf +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-Bold.woff +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-Bold.woff2 +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-BoldItalic.ttf +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-BoldItalic.woff +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-BoldItalic.woff2 +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-Light.ttf +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-Light.woff +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-Light.woff2 +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-LightItalic.ttf +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-LightItalic.woff +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-LightItalic.woff2 +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-Medium.ttf +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-Medium.woff +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-Medium.woff2 +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-MediumItalic.ttf +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-MediumItalic.woff +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-MediumItalic.woff2 +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-Regular.ttf +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-Regular.woff +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-Regular.woff2 +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-RegularItalic.ttf +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-RegularItalic.woff +0 -0
- package/public/assets/bundes/sans/BundesSans-Web-RegularItalic.woff2 +0 -0
- package/public/assets/bundes/sans-cond/BundesSansCond-Web-Regular.ttf +0 -0
- package/public/assets/bundes/sans-cond/BundesSansCond-Web-Regular.woff +0 -0
- package/public/assets/bundes/sans-cond/BundesSansCond-Web-Regular.woff2 +0 -0
- package/public/assets/bundes/serif/BundesSerif-Web-Bold.ttf +0 -0
- package/public/assets/bundes/serif/BundesSerif-Web-Bold.woff +0 -0
- package/public/assets/bundes/serif/BundesSerif-Web-Bold.woff2 +0 -0
- package/public/assets/bundes/serif/BundesSerif-Web-BoldItalic.ttf +0 -0
- package/public/assets/bundes/serif/BundesSerif-Web-BoldItalic.woff +0 -0
- package/public/assets/bundes/serif/BundesSerif-Web-BoldItalic.woff2 +0 -0
- package/public/assets/bundes/serif/BundesSerif-Web-Italic.ttf +0 -0
- package/public/assets/bundes/serif/BundesSerif-Web-Italic.woff +0 -0
- package/public/assets/bundes/serif/BundesSerif-Web-Italic.woff2 +0 -0
- package/public/assets/bundes/serif/BundesSerif-Web-Regular.ttf +0 -0
- package/public/assets/bundes/serif/BundesSerif-Web-Regular.woff +0 -0
- package/public/assets/bundes/serif/BundesSerif-Web-Regular.woff2 +0 -0
- package/public/assets/bundes/style.css +0 -84
- /package/dist/{1163.js.LICENSE.txt → 1908.js.LICENSE.txt} +0 -0
- /package/dist/{1746.js.LICENSE.txt → 2875.js.LICENSE.txt} +0 -0
- /package/dist/{633.js.LICENSE.txt → 3254.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/sample-react",
|
|
3
|
-
"version": "2.1.9
|
|
3
|
+
"version": "2.1.9",
|
|
4
4
|
"description": "This app contains samples for the KoliBri/Public UI",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
6
6
|
"repository": {
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"typescript": "5.6.2",
|
|
37
37
|
"world_countries_lists": "2.9.0",
|
|
38
38
|
"yup": "1.4.0",
|
|
39
|
-
"@public-ui/components": "2.1.9
|
|
40
|
-
"@public-ui/themes": "2.1.9
|
|
41
|
-
"@public-ui/react": "2.1.9
|
|
39
|
+
"@public-ui/components": "2.1.9",
|
|
40
|
+
"@public-ui/themes": "2.1.9",
|
|
41
|
+
"@public-ui/react": "2.1.9"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
".eslintignore",
|
|
@@ -3,14 +3,13 @@ $material-symbols-font-path: './' !default;
|
|
|
3
3
|
// @see https://github.com/twbs/bootstrap/blob/main/scss/_functions.scss
|
|
4
4
|
@function material-symbols-str-replace($string, $search, $replace: '') {
|
|
5
5
|
$index: str-index($string, $search);
|
|
6
|
+
|
|
6
7
|
@if $index {
|
|
7
|
-
@return str-slice($string, 1, $index - 1) + $
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
$search,
|
|
11
|
-
$replace
|
|
12
|
-
);
|
|
8
|
+
@return str-slice($string, 1, $index - 1)+$replace +material-symbols-str-replace(str-slice($string, $index + str-length($search)),
|
|
9
|
+
$search,
|
|
10
|
+
$replace );
|
|
13
11
|
}
|
|
12
|
+
|
|
14
13
|
@return $string;
|
|
15
14
|
}
|
|
16
15
|
|
|
@@ -31,7 +30,7 @@ $material-symbols-font-path: './' !default;
|
|
|
31
30
|
font-family: $font-family;
|
|
32
31
|
font-weight: normal;
|
|
33
32
|
font-style: normal;
|
|
34
|
-
font-size:
|
|
33
|
+
font-size: rem(24);
|
|
35
34
|
line-height: 1;
|
|
36
35
|
letter-spacing: normal;
|
|
37
36
|
text-transform: none;
|
package/src/App.tsx
CHANGED
|
@@ -138,7 +138,7 @@ export const App: FC = () => {
|
|
|
138
138
|
/>
|
|
139
139
|
)}
|
|
140
140
|
|
|
141
|
-
<main className="flex flex-col items-
|
|
141
|
+
<main className="flex flex-col items-stretch p-4" id="route-container">
|
|
142
142
|
{!hideMenus && isDraftTheme(theme) && <KolBadge className="block mb-3" _label="DRAFT" _color="#db5461" />}
|
|
143
143
|
<Routes>
|
|
144
144
|
{ROUTE_TREE}
|
|
@@ -15,13 +15,13 @@ type PropsBasic = {
|
|
|
15
15
|
|
|
16
16
|
const AlertByType: FC<PropsByType> = ({ level, type, variant }) => (
|
|
17
17
|
<>
|
|
18
|
-
<KolAlert _label=
|
|
18
|
+
<KolAlert _label={`This is the headline level ${level} of the alert.`} _level={level} _type={type} _variant={variant}>
|
|
19
19
|
This is the text of the alert.
|
|
20
20
|
</KolAlert>
|
|
21
21
|
<KolAlert _type={type} _variant={variant}>
|
|
22
22
|
In this alert, only the text without the heading is used.
|
|
23
23
|
</KolAlert>
|
|
24
|
-
<KolAlert _label=
|
|
24
|
+
<KolAlert _label={`This is the headline level ${level} of the alert.`} _level={level} _type={type} _variant={variant} _hasCloser>
|
|
25
25
|
This is the text of the alert. With close button.
|
|
26
26
|
</KolAlert>
|
|
27
27
|
<KolAlert _type={type} _variant={variant} _hasCloser>
|
|
@@ -19,24 +19,26 @@ export const ButtonIcons: FC = () => {
|
|
|
19
19
|
<p>This sample shows KolButton with icons in all alignments.</p>
|
|
20
20
|
</SampleDescription>
|
|
21
21
|
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
top: {
|
|
29
|
-
style: {
|
|
30
|
-
'font-size': '200%',
|
|
31
|
-
transform: 'rotate(45deg)',
|
|
22
|
+
<div>
|
|
23
|
+
<KolButton
|
|
24
|
+
_icons={{
|
|
25
|
+
bottom: 'codicon codicon-arrow-down',
|
|
26
|
+
left: {
|
|
27
|
+
icon: 'codicon codicon-arrow-left',
|
|
32
28
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
29
|
+
top: {
|
|
30
|
+
style: {
|
|
31
|
+
'font-size': '200%',
|
|
32
|
+
transform: 'rotate(45deg)',
|
|
33
|
+
},
|
|
34
|
+
icon: 'codicon codicon-arrow-up',
|
|
35
|
+
},
|
|
36
|
+
right: 'codicon codicon-arrow-right',
|
|
37
|
+
}}
|
|
38
|
+
_label="Label"
|
|
39
|
+
_on={dummyEventHandler}
|
|
40
|
+
/>
|
|
41
|
+
</div>
|
|
40
42
|
</>
|
|
41
43
|
);
|
|
42
44
|
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { KolInputDate } from '@public-ui/react';
|
|
3
|
+
import type { Components } from '@public-ui/components';
|
|
4
|
+
|
|
5
|
+
export const InputDateMinMaxCases = forwardRef<HTMLKolInputDateElement, Components.KolInputDate>(function InputDateCases(props) {
|
|
6
|
+
const minDateIso = '2024-09-26';
|
|
7
|
+
const maxDateIso = '2024-09-27';
|
|
8
|
+
|
|
9
|
+
const minTimeIso = '12:00';
|
|
10
|
+
const maxTimeIso = '15:00';
|
|
11
|
+
|
|
12
|
+
const minDayTimeIso = '2024-09-26T12:00';
|
|
13
|
+
const maxDaytimeIso = '2024-09-27T15:00';
|
|
14
|
+
|
|
15
|
+
const minWeekIso = '2024-W10';
|
|
16
|
+
const maxWeekIso = '2024-W50';
|
|
17
|
+
|
|
18
|
+
const minMonthIso = '2024-02';
|
|
19
|
+
const maxMonthIso = '2024-10';
|
|
20
|
+
|
|
21
|
+
const minDate = new Date('January 10, 2024, 12:00');
|
|
22
|
+
const maxDate = new Date('October 20, 2024, 15:00');
|
|
23
|
+
return (
|
|
24
|
+
<div className="grid gap-4">
|
|
25
|
+
<KolInputDate {...props} _type="date" _label="Date with Iso" _min={minDateIso} _max={maxDateIso} />
|
|
26
|
+
<KolInputDate {...props} _type="date" _label="Date with Date" _min={minDate} _max={maxDate} />
|
|
27
|
+
|
|
28
|
+
<KolInputDate {...props} _type="time" _label="Time with Iso" _min={minTimeIso} _max={maxTimeIso} />
|
|
29
|
+
<KolInputDate {...props} _type="time" _label="Time with Date" _min={minDate} _max={maxDate} />
|
|
30
|
+
|
|
31
|
+
<KolInputDate {...props} _type="datetime-local" _label="DayTime with Iso" _min={minDayTimeIso} _max={maxDaytimeIso} />
|
|
32
|
+
<KolInputDate {...props} _type="datetime-local" _label="DayTime with Date" _min={minDate} _max={maxDate} />
|
|
33
|
+
|
|
34
|
+
<KolInputDate {...props} _type="week" _label="Week with Iso" _min={minWeekIso} _max={maxWeekIso} />
|
|
35
|
+
<KolInputDate {...props} _type="week" _label="Week with Date" _min={minDate} _max={maxDate} />
|
|
36
|
+
|
|
37
|
+
<KolInputDate {...props} _type="month" _label="Month with Iso" _min={minMonthIso} _max={maxMonthIso} />
|
|
38
|
+
<KolInputDate {...props} _type="month" _label="Month with Date" _min={minDate} _max={maxDate} />
|
|
39
|
+
</div>
|
|
40
|
+
);
|
|
41
|
+
});
|
|
@@ -3,6 +3,7 @@ import React, { forwardRef } from 'react';
|
|
|
3
3
|
import { InputDateCases } from './cases';
|
|
4
4
|
|
|
5
5
|
import type { Components } from '@public-ui/components';
|
|
6
|
+
import { InputDateMinMaxCases } from './minMax';
|
|
6
7
|
export const InputDateVariants = forwardRef<HTMLKolInputDateElement, Components.KolInputDate>(function InputDateVariant(props, ref) {
|
|
7
8
|
return (
|
|
8
9
|
<div className="grid md:grid-cols-2 gap-4">
|
|
@@ -14,6 +15,10 @@ export const InputDateVariants = forwardRef<HTMLKolInputDateElement, Components.
|
|
|
14
15
|
<legend>Date (hideLabel)</legend>
|
|
15
16
|
<InputDateCases ref={ref} {...props} _hideLabel />
|
|
16
17
|
</fieldset>
|
|
18
|
+
<fieldset>
|
|
19
|
+
<legend>Date (with min/max)</legend>
|
|
20
|
+
<InputDateMinMaxCases ref={ref} {...props} />
|
|
21
|
+
</fieldset>
|
|
17
22
|
</div>
|
|
18
23
|
);
|
|
19
24
|
});
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
|
-
import React, { useRef } from 'react';
|
|
2
|
+
import React, { useEffect, useRef } from 'react';
|
|
3
|
+
import { useSearchParams } from 'react-router-dom';
|
|
3
4
|
|
|
4
5
|
import { KolButton, KolCard, KolModal } from '@public-ui/react';
|
|
5
6
|
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
8
|
export const ModalBasic: FC = () => {
|
|
9
|
+
const [searchParams] = useSearchParams();
|
|
10
|
+
const modalState = searchParams.get('show-modal') as string;
|
|
8
11
|
const modalElement = useRef<HTMLKolModalElement>(null);
|
|
9
12
|
const stackedModalElement = useRef<HTMLKolModalElement>(null);
|
|
10
13
|
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
if (modalState === 'true') {
|
|
16
|
+
modalElement.current?.openModal();
|
|
17
|
+
}
|
|
18
|
+
}, [modalState]);
|
|
19
|
+
|
|
11
20
|
return (
|
|
12
21
|
<>
|
|
13
22
|
<SampleDescription>
|
|
@@ -11,8 +11,10 @@ const DATA = [{ small: 'Small Example', large: 'Larger Example' }];
|
|
|
11
11
|
const HEADERS: KoliBriTableHeaders = {
|
|
12
12
|
horizontal: [
|
|
13
13
|
[
|
|
14
|
-
{ label: 'Large Column', key: 'large', textAlign: 'left', width: '
|
|
14
|
+
{ label: 'Large Column', key: 'large', textAlign: 'left', width: '300px' },
|
|
15
15
|
{ label: 'Small Column', key: 'small', textAlign: 'left', width: '200px' },
|
|
16
|
+
{ label: 'Larger Column', key: 'large', textAlign: 'left', width: '400px' },
|
|
17
|
+
{ label: 'Larger Column', key: 'large', textAlign: 'left', width: '400px' },
|
|
16
18
|
],
|
|
17
19
|
],
|
|
18
20
|
};
|
|
@@ -29,7 +31,7 @@ export const TableHorizontalScrollbar: FC = () => {
|
|
|
29
31
|
</p>
|
|
30
32
|
</SampleDescription>
|
|
31
33
|
|
|
32
|
-
<section className="w-full flex flex-col">
|
|
34
|
+
<section className="w-full flex flex-col gap-4">
|
|
33
35
|
<KolHeading _label="Table with scrollbar" _level={2} />
|
|
34
36
|
|
|
35
37
|
<KolTable
|
|
@@ -41,6 +43,17 @@ export const TableHorizontalScrollbar: FC = () => {
|
|
|
41
43
|
style={{ width: '400px' }}
|
|
42
44
|
/>
|
|
43
45
|
|
|
46
|
+
<KolHeading _label="Empty Table with scrollbar" _level={3} />
|
|
47
|
+
|
|
48
|
+
<KolTable
|
|
49
|
+
_label="Table for demonstration purposes with horizontal scrollbar with auto minWidth."
|
|
50
|
+
_minWidth={hasWidthRestriction ? '600px' : 'auto'}
|
|
51
|
+
_headers={HEADERS}
|
|
52
|
+
_data={[]}
|
|
53
|
+
className="block"
|
|
54
|
+
style={{ width: '400px' }}
|
|
55
|
+
/>
|
|
56
|
+
|
|
44
57
|
<KolInputCheckbox
|
|
45
58
|
_checked={hasWidthRestriction}
|
|
46
59
|
_label="Toggle width restriction"
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
import { KolHeading, KolTabs } from '@public-ui/react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
|
+
import type { AlignPropType } from '@public-ui/components';
|
|
7
|
+
|
|
8
|
+
const tabs = [
|
|
9
|
+
{
|
|
10
|
+
_icons: 'codicon codicon-pie-chart',
|
|
11
|
+
_label: 'First tab',
|
|
12
|
+
_on: {
|
|
13
|
+
onSelect: (event: Event) => {
|
|
14
|
+
console.log('First tab selected', event);
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
_icons: 'codicon codicon-calendar',
|
|
20
|
+
_label: 'Second Tab',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
_disabled: true,
|
|
24
|
+
_icons: 'codicon codicon-briefcase',
|
|
25
|
+
_label: 'Disabled Tab',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
_icons: 'codicon codicon-telescope',
|
|
29
|
+
_label: 'Last tab',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
export const TabsAlign: FC = () => (
|
|
34
|
+
<>
|
|
35
|
+
<SampleDescription>
|
|
36
|
+
<p>
|
|
37
|
+
This sample shows KolTabs with the property <code>_align</code> set to <code>left</code>, <code>right</code>, <code>top</code> and <code>bottom</code>.
|
|
38
|
+
</p>
|
|
39
|
+
</SampleDescription>
|
|
40
|
+
<div className="grid gap-8">
|
|
41
|
+
{(['left', 'right', 'top', 'bottom'] as AlignPropType[]).map((align) => {
|
|
42
|
+
const text = `Tabs with ${align} align`;
|
|
43
|
+
return (
|
|
44
|
+
<div key={align} className="grid gap-4">
|
|
45
|
+
<KolHeading _level={2} _label={text} />
|
|
46
|
+
<KolTabs _tabs={tabs} _align={align} _label={text}>
|
|
47
|
+
<div slot="tab-0">Contents of Tab 1</div>
|
|
48
|
+
<div slot="tab-1">Contents of Tab 2</div>
|
|
49
|
+
<div slot="tab-2">Contents of Tab 3</div>
|
|
50
|
+
<div slot="tab-3">Contents of Tab 4</div>
|
|
51
|
+
</KolTabs>
|
|
52
|
+
</div>
|
|
53
|
+
);
|
|
54
|
+
})}
|
|
55
|
+
</div>
|
|
56
|
+
</>
|
|
57
|
+
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Routes } from '../../shares/types';
|
|
2
2
|
import { TabsBasic } from './basic';
|
|
3
|
+
import { TabsAlign } from './align';
|
|
3
4
|
import { TabsIconsOnly } from './icons-only';
|
|
4
5
|
import { TabsBehavior } from './behavior';
|
|
5
6
|
|
|
@@ -8,5 +9,6 @@ export const TABS_ROUTES: Routes = {
|
|
|
8
9
|
basic: TabsBasic,
|
|
9
10
|
'icons-only': TabsIconsOnly,
|
|
10
11
|
behavior: TabsBehavior,
|
|
12
|
+
align: TabsAlign,
|
|
11
13
|
},
|
|
12
14
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
|
+
import { useSearchParams } from 'react-router-dom';
|
|
2
3
|
|
|
3
4
|
import { ToasterService } from '@public-ui/components';
|
|
4
5
|
import { KolButton } from '@public-ui/react';
|
|
6
|
+
import type { AlertType, AlertVariant } from '@public-ui/components';
|
|
5
7
|
|
|
6
8
|
import { getRoot } from '../../shares/react-roots';
|
|
7
9
|
import { SampleDescription } from '../SampleDescription';
|
|
@@ -9,6 +11,9 @@ import { SampleDescription } from '../SampleDescription';
|
|
|
9
11
|
import type { FC } from 'react';
|
|
10
12
|
|
|
11
13
|
export const ToastBasic: FC = () => {
|
|
14
|
+
const [searchParams] = useSearchParams();
|
|
15
|
+
const defaultType = searchParams.get('type') as AlertType;
|
|
16
|
+
const defaultVariant = searchParams.get('variant') as AlertVariant;
|
|
12
17
|
const toaster = ToasterService.getInstance(document);
|
|
13
18
|
const handleButtonClickSimple = () => {
|
|
14
19
|
void toaster.enqueue({
|
|
@@ -23,10 +28,34 @@ export const ToastBasic: FC = () => {
|
|
|
23
28
|
description: 'Toasty',
|
|
24
29
|
label: `Toast with variant 'msg'`,
|
|
25
30
|
type: 'warning',
|
|
26
|
-
|
|
31
|
+
variant: 'msg',
|
|
27
32
|
});
|
|
28
33
|
};
|
|
29
34
|
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
if (defaultType && defaultVariant) {
|
|
37
|
+
void toaster.enqueue({
|
|
38
|
+
description: 'Toasty',
|
|
39
|
+
label: `Toast with variant 'msg'`,
|
|
40
|
+
type: defaultType,
|
|
41
|
+
variant: defaultVariant,
|
|
42
|
+
});
|
|
43
|
+
} else if (defaultType) {
|
|
44
|
+
void toaster.enqueue({
|
|
45
|
+
description: 'Toasty',
|
|
46
|
+
label: `Initial Toast`,
|
|
47
|
+
type: defaultType,
|
|
48
|
+
});
|
|
49
|
+
} else if (defaultVariant) {
|
|
50
|
+
void toaster.enqueue({
|
|
51
|
+
description: 'Toasty',
|
|
52
|
+
label: `Initial Toast`,
|
|
53
|
+
type: 'default',
|
|
54
|
+
variant: defaultVariant,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}, [defaultType, defaultVariant]);
|
|
58
|
+
|
|
30
59
|
const handleButtonClickComplex = () => {
|
|
31
60
|
void toaster.enqueue({
|
|
32
61
|
render: (element: HTMLElement, { close }) => {
|
|
@@ -3,9 +3,9 @@ import { ToasterService } from '@public-ui/components';
|
|
|
3
3
|
export function useToasterService() {
|
|
4
4
|
const toaster = ToasterService.getInstance(document);
|
|
5
5
|
|
|
6
|
-
const message = () => {
|
|
6
|
+
const message = (message?: string) => {
|
|
7
7
|
void toaster.enqueue({
|
|
8
|
-
description: 'Hello',
|
|
8
|
+
description: message || 'Hello',
|
|
9
9
|
label: `Hello`,
|
|
10
10
|
type: 'info',
|
|
11
11
|
});
|
|
@@ -15,7 +15,13 @@ export function useToasterService() {
|
|
|
15
15
|
message();
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
+
const buttonWithTextClickEventHandler = (e: Event) => {
|
|
19
|
+
const text = (e.currentTarget as { textContent?: string }).textContent;
|
|
20
|
+
message(text);
|
|
21
|
+
};
|
|
22
|
+
|
|
18
23
|
return {
|
|
19
24
|
dummyClickEventHandler,
|
|
25
|
+
buttonWithTextClickEventHandler,
|
|
20
26
|
};
|
|
21
27
|
}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
/* eslint-disable jsx-a11y/tabindex-no-positive */
|
|
2
|
+
|
|
3
|
+
import { SampleDescription } from '../components/SampleDescription';
|
|
4
|
+
import {
|
|
5
|
+
KolButton,
|
|
6
|
+
KolButtonLink,
|
|
7
|
+
KolCard,
|
|
8
|
+
KolCombobox,
|
|
9
|
+
KolInputCheckbox,
|
|
10
|
+
KolInputDate,
|
|
11
|
+
KolInputEmail,
|
|
12
|
+
KolInputFile,
|
|
13
|
+
KolInputColor,
|
|
14
|
+
KolInputNumber,
|
|
15
|
+
KolInputPassword,
|
|
16
|
+
KolInputRadio,
|
|
17
|
+
KolInputRange,
|
|
18
|
+
KolInputText,
|
|
19
|
+
KolLinkButton,
|
|
20
|
+
KolLink,
|
|
21
|
+
KolSingleSelect,
|
|
22
|
+
KolSplitButton,
|
|
23
|
+
KolTextarea,
|
|
24
|
+
} from '@public-ui/react';
|
|
25
|
+
import React from 'react';
|
|
26
|
+
import type { FC } from 'react';
|
|
27
|
+
import { ERROR_MSG, HINT_MSG } from '../shares/constants';
|
|
28
|
+
import { COUNTRY_OPTIONS, COUNTRY_SUGGESTIONS } from '../shares/country';
|
|
29
|
+
import type { Option, StencilUnknown } from '@public-ui/components';
|
|
30
|
+
|
|
31
|
+
export const ChangeTabindex: FC = () => {
|
|
32
|
+
return (
|
|
33
|
+
<>
|
|
34
|
+
<SampleDescription>
|
|
35
|
+
<p>This example show how different components works with tabIndex.</p>
|
|
36
|
+
</SampleDescription>
|
|
37
|
+
|
|
38
|
+
<div className="w-full grid gap-4">
|
|
39
|
+
<KolCard _label="Button" _level={0}>
|
|
40
|
+
<div className="flex flex-wrap gap-4">
|
|
41
|
+
<KolButton _label="Button 1, Tabindex 4" _variant="primary" tabIndex={4} />
|
|
42
|
+
<KolButton _disabled _label="Button 2, Tabindex 3" _variant="primary" tabIndex={3} />
|
|
43
|
+
<KolButton _label="Button 3, Tabindex 2" _variant="primary" tabIndex={2} />
|
|
44
|
+
<KolButton _label="Button 4, Tabindex 1" _variant="primary" tabIndex={1} />
|
|
45
|
+
</div>
|
|
46
|
+
</KolCard>
|
|
47
|
+
|
|
48
|
+
<KolCard _label="ButtonLink" _level={0}>
|
|
49
|
+
<div className="flex flex-wrap gap-4">
|
|
50
|
+
<KolButtonLink _label="ButtonLink 1, Tabindex 4" tabIndex={4} />
|
|
51
|
+
<KolButtonLink _disabled _label="ButtonLink 2, Tabindex 3" tabIndex={3} />
|
|
52
|
+
<KolButtonLink _label="ButtonLink 3, Tabindex 2" tabIndex={2} />
|
|
53
|
+
<KolButtonLink _label="ButtonLink 4, Tabindex 1" tabIndex={1} />
|
|
54
|
+
</div>
|
|
55
|
+
</KolCard>
|
|
56
|
+
|
|
57
|
+
<KolCard _label="Combobox" _level={0}>
|
|
58
|
+
<div className="flex flex-wrap gap-4">
|
|
59
|
+
<KolCombobox _hint={HINT_MSG} _label="Combobox 1, Tabindex 4" _suggestions={COUNTRY_SUGGESTIONS} _value={'Deutschland'} tabIndex={4} />
|
|
60
|
+
<KolCombobox _disabled _hint={HINT_MSG} _label="Combobox 2, Tabindex 3" _suggestions={COUNTRY_SUGGESTIONS} _value={'Deutschland'} tabIndex={3} />
|
|
61
|
+
<KolCombobox
|
|
62
|
+
_touched
|
|
63
|
+
_hint={HINT_MSG}
|
|
64
|
+
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
65
|
+
_label="Combobox 3, Tabindex 2"
|
|
66
|
+
_suggestions={COUNTRY_SUGGESTIONS}
|
|
67
|
+
_value={'Deutschland'}
|
|
68
|
+
tabIndex={2}
|
|
69
|
+
/>
|
|
70
|
+
<KolCombobox _hint={HINT_MSG} _label="Combobox 4, Tabindex 1" _suggestions={COUNTRY_SUGGESTIONS} _value={'Deutschland'} tabIndex={1} />
|
|
71
|
+
</div>
|
|
72
|
+
</KolCard>
|
|
73
|
+
|
|
74
|
+
<KolCard _label="InputCheckbox" _level={0}>
|
|
75
|
+
<div className="flex flex-wrap gap-4">
|
|
76
|
+
<KolInputCheckbox _label="InputCheckbox 4, Tabindex 1" _value={false} tabIndex={4} />
|
|
77
|
+
<KolInputCheckbox _disabled _label="InputCheckbox 3, Tabindex 2" _value={false} tabIndex={3} />
|
|
78
|
+
<KolInputCheckbox _touched _label="InputCheckbox 2, Tabindex 3" _msg={{ _type: 'error', _description: ERROR_MSG }} _value={false} tabIndex={2} />
|
|
79
|
+
<KolInputCheckbox _label="InputCheckbox 1, Tabindex 4" _value={false} tabIndex={1} />
|
|
80
|
+
</div>
|
|
81
|
+
</KolCard>
|
|
82
|
+
|
|
83
|
+
<KolCard _label="InputColor" _level={0}>
|
|
84
|
+
<div className="flex flex-wrap gap-4">
|
|
85
|
+
<KolInputColor _value="#f08080" _label="InputCheckbox 1, Tabindex 4" tabIndex={4} />
|
|
86
|
+
<KolInputColor _disabled _value="#f08080" _label="InputCheckbox 2, Tabindex 3" tabIndex={3} />
|
|
87
|
+
<KolInputColor _touched _value="#f08080" _label="InputCheckbox 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
|
|
88
|
+
<KolInputColor _value="#f08080" _label="InputCheckbox 4, Tabindex 1" tabIndex={1} />
|
|
89
|
+
</div>
|
|
90
|
+
</KolCard>
|
|
91
|
+
|
|
92
|
+
<KolCard _label="InputDate" _level={0}>
|
|
93
|
+
<div className="flex flex-wrap gap-4">
|
|
94
|
+
<KolInputDate _type="datetime-local" _label="InputCheckbox 1, Tabindex 4" tabIndex={4} />
|
|
95
|
+
<KolInputDate _disabled _type="datetime-local" _label="InputCheckbox 2, Tabindex 3" tabIndex={3} />
|
|
96
|
+
<KolInputDate
|
|
97
|
+
_touched
|
|
98
|
+
_type="datetime-local"
|
|
99
|
+
_label="InputCheckbox 3, Tabindex 2"
|
|
100
|
+
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
101
|
+
tabIndex={2}
|
|
102
|
+
/>
|
|
103
|
+
<KolInputDate _type="datetime-local" _label="InputCheckbox 4, Tabindex 1" tabIndex={1} />
|
|
104
|
+
</div>
|
|
105
|
+
</KolCard>
|
|
106
|
+
|
|
107
|
+
<KolCard _label="InputEmail" _level={0}>
|
|
108
|
+
<div className="flex flex-wrap gap-4">
|
|
109
|
+
<KolInputEmail _label="InputEmail 1, Tabindex 4" tabIndex={4} />
|
|
110
|
+
<KolInputEmail _disabled _label="InputEmail 2, Tabindex 3" tabIndex={3} />
|
|
111
|
+
<KolInputEmail _touched _label="InputEmail 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
|
|
112
|
+
<KolInputEmail _label="InputEmail 4, Tabindex 1" tabIndex={1} />
|
|
113
|
+
</div>
|
|
114
|
+
</KolCard>
|
|
115
|
+
|
|
116
|
+
<KolCard _label="InputFile" _level={0}>
|
|
117
|
+
<div className="flex flex-wrap gap-4">
|
|
118
|
+
<KolInputFile _label="InputFile 1, Tabindex 4" tabIndex={4} />
|
|
119
|
+
<KolInputFile _disabled _label="InputFile 2, Tabindex 3" tabIndex={3} />
|
|
120
|
+
<KolInputFile _touched _label="InputFile 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
|
|
121
|
+
<KolInputFile _label="InputFile 4, Tabindex 1" tabIndex={1} />
|
|
122
|
+
</div>
|
|
123
|
+
</KolCard>
|
|
124
|
+
|
|
125
|
+
<KolCard _label="InputNumber" _level={0}>
|
|
126
|
+
<div className="flex flex-wrap gap-4">
|
|
127
|
+
<KolInputNumber _label="InputNumber 1, Tabindex 4" tabIndex={4} />
|
|
128
|
+
<KolInputNumber _disabled _label="InputNumber 2, Tabindex 3" tabIndex={3} />
|
|
129
|
+
<KolInputNumber _touched _label="InputNumber 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
|
|
130
|
+
<KolInputNumber _label="InputNumber 4, Tabindex 1" tabIndex={1} />
|
|
131
|
+
</div>
|
|
132
|
+
</KolCard>
|
|
133
|
+
|
|
134
|
+
<KolCard _label="InputPassword" _level={0}>
|
|
135
|
+
<div className="flex flex-wrap gap-4">
|
|
136
|
+
<KolInputPassword _label="InputPassword 1, Tabindex 4" tabIndex={4} />
|
|
137
|
+
<KolInputPassword _disabled _label="InputPassword 2, Tabindex 3" tabIndex={3} />
|
|
138
|
+
<KolInputPassword _touched _label="InputPassword 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
|
|
139
|
+
<KolInputPassword _label="InputPassword 4, Tabindex 1" tabIndex={1} />
|
|
140
|
+
</div>
|
|
141
|
+
</KolCard>
|
|
142
|
+
|
|
143
|
+
<KolCard _label="InputRadio" _level={0}>
|
|
144
|
+
<div className="flex flex-wrap gap-4">
|
|
145
|
+
<KolInputRadio
|
|
146
|
+
_options="[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]"
|
|
147
|
+
_label="InputRadio 1, Tabindex 4"
|
|
148
|
+
tabIndex={4}
|
|
149
|
+
/>
|
|
150
|
+
<KolInputRadio
|
|
151
|
+
_options="[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]"
|
|
152
|
+
_label="InputRadio 2, Tabindex 3"
|
|
153
|
+
_disabled
|
|
154
|
+
tabIndex={3}
|
|
155
|
+
/>
|
|
156
|
+
<KolInputRadio
|
|
157
|
+
_touched
|
|
158
|
+
_options="[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]"
|
|
159
|
+
_label="InputRadio 3, Tabindex 2"
|
|
160
|
+
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
161
|
+
tabIndex={2}
|
|
162
|
+
/>{' '}
|
|
163
|
+
<KolInputRadio
|
|
164
|
+
_options="[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]"
|
|
165
|
+
_label="InputRadio 4, Tabindex 1"
|
|
166
|
+
tabIndex={1}
|
|
167
|
+
/>
|
|
168
|
+
</div>
|
|
169
|
+
</KolCard>
|
|
170
|
+
|
|
171
|
+
<KolCard _label="InputRange" _level={0}>
|
|
172
|
+
<div className="flex flex-wrap gap-4">
|
|
173
|
+
<KolInputRange _label="InputRange 1, Tabindex 4" _min={0} _max={50} tabIndex={4} />
|
|
174
|
+
<KolInputRange _disabled _label="InputRange 2, Tabindex 3" _min={0} _max={50} tabIndex={3} />
|
|
175
|
+
<KolInputRange _touched _label="InputRange 3, Tabindex 2" _min={0} _max={50} _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
|
|
176
|
+
<KolInputRange _label="InputRange 4, Tabindex 1" _min={0} _max={50} tabIndex={1} />
|
|
177
|
+
</div>
|
|
178
|
+
</KolCard>
|
|
179
|
+
|
|
180
|
+
<KolCard _label="InputText" _level={0}>
|
|
181
|
+
<div className="flex flex-wrap gap-4">
|
|
182
|
+
<KolInputText _label="InputText 1, Tabindex 4" tabIndex={4} />
|
|
183
|
+
<KolInputText _disabled _label="InputText 2, Tabindex 3" tabIndex={3} />
|
|
184
|
+
<KolInputText _touched _label="InputText 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
|
|
185
|
+
<KolInputText _label="InputText 4, Tabindex 1" tabIndex={1} />
|
|
186
|
+
</div>
|
|
187
|
+
</KolCard>
|
|
188
|
+
|
|
189
|
+
<KolCard _label="LinkButton" _level={0}>
|
|
190
|
+
<div className="flex flex-wrap gap-4">
|
|
191
|
+
<KolLinkButton _href={'#/back-page'} _label="InputText 1, Tabindex 4" _variant="primary" tabIndex={4}></KolLinkButton>
|
|
192
|
+
<KolLinkButton _disabled _href={'#/back-page'} _label="InputText 2, Tabindex 3" _variant="primary" tabIndex={3}></KolLinkButton>
|
|
193
|
+
<KolLinkButton _href={'#/back-page'} _label="InputText 3, Tabindex 2" _variant="primary" tabIndex={2}></KolLinkButton>
|
|
194
|
+
<KolLinkButton _href={'#/back-page'} _label="InputText 4, Tabindex 1" _variant="primary" tabIndex={1}></KolLinkButton>
|
|
195
|
+
</div>
|
|
196
|
+
</KolCard>
|
|
197
|
+
|
|
198
|
+
<KolCard _label="Link" _level={0}>
|
|
199
|
+
<KolLink _href="#/back-page" _label="InputText 1, Tabindex 4" tabIndex={4} />
|
|
200
|
+
<KolLink _disabled _href="#/back-page" _label="InputText 2, Tabindex 3" tabIndex={3} />
|
|
201
|
+
<KolLink _href="#/back-page" _label="InputText 3, Tabindex 2" tabIndex={2} />
|
|
202
|
+
<KolLink _href="#/back-page" _label="InputText 4, Tabindex 1" tabIndex={1} />
|
|
203
|
+
</KolCard>
|
|
204
|
+
|
|
205
|
+
<KolCard _label="SingleSelect" _level={0}>
|
|
206
|
+
<div className="flex flex-wrap gap-4">
|
|
207
|
+
<KolSingleSelect _label="InputText 1, Tabindex 4" _options={COUNTRY_OPTIONS as Option<StencilUnknown>[]} _value={'de'} tabIndex={4} />
|
|
208
|
+
<KolSingleSelect _disabled _label="InputText 2, Tabindex 3" _options={COUNTRY_OPTIONS as Option<StencilUnknown>[]} _value={'de'} tabIndex={3} />
|
|
209
|
+
<KolSingleSelect
|
|
210
|
+
_touched
|
|
211
|
+
_label="InputText 3, Tabindex 2"
|
|
212
|
+
_options={COUNTRY_OPTIONS as Option<StencilUnknown>[]}
|
|
213
|
+
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
214
|
+
_value={'de'}
|
|
215
|
+
tabIndex={2}
|
|
216
|
+
/>
|
|
217
|
+
<KolSingleSelect _label="InputText 4, Tabindex 1" _options={COUNTRY_OPTIONS as Option<StencilUnknown>[]} _value={'de'} tabIndex={1} />
|
|
218
|
+
</div>
|
|
219
|
+
</KolCard>
|
|
220
|
+
|
|
221
|
+
<KolCard _label="SplitButton" _level={0}>
|
|
222
|
+
<div className="flex flex-wrap gap-4">
|
|
223
|
+
<KolSplitButton _label="InputText 1, Tabindex 4" tabIndex={4}>
|
|
224
|
+
Dropdown-Inhalt
|
|
225
|
+
</KolSplitButton>
|
|
226
|
+
<KolSplitButton _label="InputText 2, Tabindex 3" tabIndex={3} _disabled>
|
|
227
|
+
Dropdown-Inhalt
|
|
228
|
+
</KolSplitButton>
|
|
229
|
+
<KolSplitButton _label="InputText 3, Tabindex 2" tabIndex={2}>
|
|
230
|
+
Dropdown-Inhalt
|
|
231
|
+
</KolSplitButton>{' '}
|
|
232
|
+
<KolSplitButton _label="InputText 4, Tabindex 1" tabIndex={1}>
|
|
233
|
+
Dropdown-Inhalt
|
|
234
|
+
</KolSplitButton>
|
|
235
|
+
</div>
|
|
236
|
+
</KolCard>
|
|
237
|
+
|
|
238
|
+
<KolCard _label="Textarea" _level={0}>
|
|
239
|
+
<div className="flex flex-wrap gap-4">
|
|
240
|
+
<KolTextarea _label="Textarea 1, Tabindex 4" _rows={3} _placeholder="Placeholder" tabIndex={4} />
|
|
241
|
+
<KolTextarea _disabled _label="Textarea 2, Tabindex 3" _rows={3} _placeholder="Placeholder" tabIndex={3} />
|
|
242
|
+
<KolTextarea
|
|
243
|
+
_touched
|
|
244
|
+
_label="Textarea 3, Tabindex 2"
|
|
245
|
+
_rows={3}
|
|
246
|
+
_placeholder="Placeholder"
|
|
247
|
+
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
248
|
+
tabIndex={2}
|
|
249
|
+
/>
|
|
250
|
+
<KolTextarea _label="Textarea 4, Tabindex 1" _rows={3} _placeholder="Placeholder" tabIndex={1} />
|
|
251
|
+
</div>
|
|
252
|
+
</KolCard>
|
|
253
|
+
</div>
|
|
254
|
+
</>
|
|
255
|
+
);
|
|
256
|
+
};
|