@public-ui/sample-react 2.1.8-rc.0 → 2.1.8
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/1487.js +1 -1
- package/dist/1636.js +1 -1
- package/dist/1792.js +1 -1
- package/dist/1795.js +1 -1
- package/dist/2017.js +1 -1
- package/dist/2322.js +1 -1
- package/dist/2538.js +1 -1
- package/dist/2567.js +1 -1
- package/dist/263.js +1 -1
- package/dist/2719.js +1 -1
- package/dist/3064.js +1 -1
- package/dist/3077.js +1 -1
- package/dist/3238.js +1 -1
- package/dist/3301.js +2 -0
- package/dist/3395.js +1 -1
- package/dist/35.js +1 -1
- package/dist/3521.js +1 -1
- package/dist/356.js +1 -1
- package/dist/3714.js +1 -1
- package/dist/3735.js +1 -1
- package/dist/3766.js +1 -1
- package/dist/3994.js +1 -1
- package/dist/4025.js +1 -1
- package/dist/4065.js +2 -0
- package/dist/4118.js +1 -1
- package/dist/4182.js +1 -1
- package/dist/4188.js +1 -1
- package/dist/4332.js +1 -1
- package/dist/4402.js +1 -1
- package/dist/4795.js +2 -0
- package/dist/4818.js +1 -1
- package/dist/4892.js +1 -1
- package/dist/4933.js +1 -1
- package/dist/4943.js +1 -1
- package/dist/495.js +1 -1
- package/dist/5034.js +1 -1
- package/dist/5056.js +1 -1
- package/dist/5138.js +1 -1
- package/dist/5296.js +1 -1
- package/dist/5356.js +1 -1
- package/dist/5551.js +1 -1
- package/dist/5835.js +1 -1
- package/dist/5840.js +1 -1
- package/dist/5889.js +1 -1
- package/dist/5912.js +1 -1
- package/dist/6082.js +1 -1
- package/dist/6099.js +1 -1
- package/dist/6181.js +1 -1
- package/dist/619.js +1 -1
- package/dist/6671.js +1 -1
- package/dist/6775.js +1 -1
- package/dist/7274.js +1 -1
- package/dist/{6812.js → 7440.js} +2 -2
- package/dist/7795.js +1 -1
- package/dist/7802.js +1 -1
- package/dist/7860.js +1 -1
- package/dist/8092.js +1 -1
- package/dist/8111.js +1 -1
- package/dist/8146.js +1 -1
- package/dist/8427.js +1 -1
- package/dist/8495.js +1 -1
- package/dist/8672.js +1 -1
- package/dist/8737.js +1 -1
- package/dist/8786.js +1 -1
- package/dist/8796.js +1 -1
- package/dist/8977.js +1 -1
- package/dist/9333.js +1 -1
- package/dist/9389.js +1 -1
- package/dist/9561.js +1 -1
- package/dist/9599.js +1 -1
- package/dist/9612.js +1 -1
- package/dist/9890.js +1 -1
- package/dist/main.js +1 -1
- package/package.json +9 -8
- package/src/components/button/access-key.tsx +34 -25
- package/src/components/button/aria-description.tsx +20 -11
- package/src/components/button/baselined.tsx +22 -13
- package/src/components/button/icons.tsx +33 -26
- package/src/components/button/partials/cases.tsx +13 -6
- package/src/components/button/width.tsx +33 -28
- package/src/components/button-group/basic.tsx +25 -16
- package/src/components/handout/basic.tsx +304 -279
- package/src/components/input-text/routes.ts +2 -0
- package/src/components/input-text/smart-button.tsx +33 -0
- package/src/components/input-text/text-formatter.tsx +55 -4
- package/src/components/table/interactive-child-elements.tsx +13 -2
- package/src/components/table/render-cell.tsx +13 -2
- package/src/components/table/stateful-with-selection.tsx +12 -1
- package/src/components/table/stateful-with-single-selection.tsx +12 -1
- package/src/components/table/stateless-with-selection.tsx +12 -1
- package/src/components/table/stateless-with-single-selection.tsx +12 -1
- package/src/hooks/useToasterService.ts +21 -0
- package/src/scenarios/custom-tooltip-width.tsx +26 -11
- package/src/scenarios/disabled-interactive-elements.tsx +123 -114
- package/dist/1938.js +0 -2
- package/dist/4556.js +0 -2
- package/dist/8853.js +0 -2
- /package/dist/{1938.js.LICENSE.txt → 3301.js.LICENSE.txt} +0 -0
- /package/dist/{4556.js.LICENSE.txt → 4065.js.LICENSE.txt} +0 -0
- /package/dist/{6812.js.LICENSE.txt → 4795.js.LICENSE.txt} +0 -0
- /package/dist/{8853.js.LICENSE.txt → 7440.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.8
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"description": "This app contains samples for the KoliBri/Public UI",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
6
6
|
"repository": {
|
|
@@ -11,15 +11,15 @@
|
|
|
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.47.
|
|
14
|
+
"@playwright/test": "1.47.2",
|
|
15
15
|
"@types/node": "ts5.6",
|
|
16
16
|
"@types/react": "18.3.4",
|
|
17
17
|
"@types/react-dom": "18.3.0",
|
|
18
18
|
"@unocss/preset-uno": "0.58.9",
|
|
19
19
|
"@unocss/webpack": "0.58.9",
|
|
20
|
-
"adopted-style-sheets": "1.1.5-rc.
|
|
20
|
+
"adopted-style-sheets": "1.1.5-rc.4",
|
|
21
21
|
"ajv": "8.17.1",
|
|
22
|
-
"chromedriver": "
|
|
22
|
+
"chromedriver": "129.0.0",
|
|
23
23
|
"cpy-cli": "5.0.0",
|
|
24
24
|
"eslint-plugin-jsx-a11y": "6.10.0",
|
|
25
25
|
"eslint-plugin-react": "7.36.1",
|
|
@@ -28,16 +28,17 @@
|
|
|
28
28
|
"npm-run-all": "4.1.5",
|
|
29
29
|
"react": "18.3.1",
|
|
30
30
|
"react-dom": "18.3.1",
|
|
31
|
+
"react-number-format": "5.4.2",
|
|
31
32
|
"react-router": "6.26.2",
|
|
32
33
|
"react-router-dom": "6.26.2",
|
|
33
|
-
"rimraf": "
|
|
34
|
+
"rimraf": "6.0.1",
|
|
34
35
|
"ts-prune": "0.10.3",
|
|
35
36
|
"typescript": "5.6.2",
|
|
36
37
|
"world_countries_lists": "2.9.0",
|
|
37
38
|
"yup": "1.4.0",
|
|
38
|
-
"@public-ui/components": "2.1.8
|
|
39
|
-
"@public-ui/react": "2.1.8
|
|
40
|
-
"@public-ui/themes": "2.1.8
|
|
39
|
+
"@public-ui/components": "2.1.8",
|
|
40
|
+
"@public-ui/react": "2.1.8",
|
|
41
|
+
"@public-ui/themes": "2.1.8"
|
|
41
42
|
},
|
|
42
43
|
"files": [
|
|
43
44
|
".eslintignore",
|
|
@@ -2,30 +2,39 @@ import { KolButton, KolLink } from '@public-ui/react';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { FC } from 'react';
|
|
4
4
|
import { SampleDescription } from '../SampleDescription';
|
|
5
|
+
import { useToasterService } from '../../hooks/useToasterService';
|
|
5
6
|
|
|
6
|
-
export const ButtonAccessKey: FC = () =>
|
|
7
|
-
|
|
8
|
-
<SampleDescription>
|
|
9
|
-
<p>
|
|
10
|
-
This sample shows KolButton with{' '}
|
|
11
|
-
<KolLink _label="access keys" _href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey" _target="blank" />. The access keys
|
|
12
|
-
can be used to trigger the buttons using the keyboard.
|
|
13
|
-
</p>
|
|
14
|
-
</SampleDescription>
|
|
7
|
+
export const ButtonAccessKey: FC = () => {
|
|
8
|
+
const { dummyClickEventHandler } = useToasterService();
|
|
15
9
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
10
|
+
const dummyEventHandler = {
|
|
11
|
+
onClick: dummyClickEventHandler,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<>
|
|
16
|
+
<SampleDescription>
|
|
17
|
+
<p>
|
|
18
|
+
This sample shows KolButton with{' '}
|
|
19
|
+
<KolLink _label="access keys" _href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey" _target="blank" />. The access
|
|
20
|
+
keys can be used to trigger the buttons using the keyboard.
|
|
21
|
+
</p>
|
|
22
|
+
</SampleDescription>
|
|
23
|
+
|
|
24
|
+
<div className="flex flex-wrap gap-4">
|
|
25
|
+
<KolButton _label="With S access key" _accessKey="S" _on={dummyEventHandler}></KolButton>
|
|
26
|
+
<KolButton _label="Very small s" _accessKey="s" _on={dummyEventHandler}></KolButton>
|
|
27
|
+
<KolButton _label="Access key does not appear in label" _accessKey="x" _on={dummyEventHandler}></KolButton>
|
|
28
|
+
<KolButton _label="access key without label" _hideLabel _accessKey="s" _icons="codicon codicon-dashboard" _on={dummyEventHandler}></KolButton>
|
|
29
|
+
<KolButton
|
|
30
|
+
_label="with inline icons"
|
|
31
|
+
_icons={{
|
|
32
|
+
left: 'codicon codicon-dashboard',
|
|
33
|
+
right: 'codicon codicon-dashboard',
|
|
34
|
+
}}
|
|
35
|
+
_accessKey="s"
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
</>
|
|
39
|
+
);
|
|
40
|
+
};
|
|
@@ -2,16 +2,25 @@ import { KolButton } from '@public-ui/react';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { FC } from 'react';
|
|
4
4
|
import { SampleDescription } from '../SampleDescription';
|
|
5
|
+
import { useToasterService } from '../../hooks/useToasterService';
|
|
5
6
|
|
|
6
|
-
export const ButtonAriaDescription: FC = () =>
|
|
7
|
-
|
|
8
|
-
<SampleDescription>
|
|
9
|
-
<p>This sample shows KolButton with aria-description</p>
|
|
10
|
-
</SampleDescription>
|
|
7
|
+
export const ButtonAriaDescription: FC = () => {
|
|
8
|
+
const { dummyClickEventHandler } = useToasterService();
|
|
11
9
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
const dummyEventHandler = {
|
|
11
|
+
onClick: dummyClickEventHandler,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<>
|
|
16
|
+
<SampleDescription>
|
|
17
|
+
<p>This sample shows KolButton with aria-description</p>
|
|
18
|
+
</SampleDescription>
|
|
19
|
+
|
|
20
|
+
<div className="flex flex-wrap gap-4">
|
|
21
|
+
<KolButton _label="Button Text without area description" _on={dummyEventHandler}></KolButton>
|
|
22
|
+
<KolButton _label="Button Text" _ariaDescription="Button Area Description" _on={dummyEventHandler}></KolButton>
|
|
23
|
+
</div>
|
|
24
|
+
</>
|
|
25
|
+
);
|
|
26
|
+
};
|
|
@@ -4,18 +4,27 @@ import { KolButton } from '@public-ui/react';
|
|
|
4
4
|
|
|
5
5
|
import type { FC } from 'react';
|
|
6
6
|
import { SampleDescription } from '../SampleDescription';
|
|
7
|
+
import { useToasterService } from '../../hooks/useToasterService';
|
|
7
8
|
|
|
8
|
-
export const ButtonBaselined: FC = () =>
|
|
9
|
-
|
|
10
|
-
<SampleDescription>
|
|
11
|
-
<p>This KolButton sample is used for internal testing purposes: It features multiple buttons with and without icons which are vertically aligned.</p>
|
|
12
|
-
</SampleDescription>
|
|
9
|
+
export const ButtonBaselined: FC = () => {
|
|
10
|
+
const { dummyClickEventHandler } = useToasterService();
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
const dummyEventHandler = {
|
|
13
|
+
onClick: dummyClickEventHandler,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<>
|
|
18
|
+
<SampleDescription>
|
|
19
|
+
<p>This KolButton sample is used for internal testing purposes: It features multiple buttons with and without icons which are vertically aligned.</p>
|
|
20
|
+
</SampleDescription>
|
|
21
|
+
|
|
22
|
+
<div className="flex">
|
|
23
|
+
<KolButton _label="Label-Text" _on={dummyEventHandler}></KolButton>
|
|
24
|
+
<KolButton _label="Label-Text" _on={dummyEventHandler}></KolButton>
|
|
25
|
+
<KolButton _label="Label-Text" _on={dummyEventHandler}></KolButton>
|
|
26
|
+
<KolButton _icons="codicon codicon-reactions" _label="Label-Text with Icon" _on={dummyEventHandler}></KolButton>
|
|
27
|
+
</div>
|
|
28
|
+
</>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
@@ -4,32 +4,39 @@ import { KolButton } from '@public-ui/react';
|
|
|
4
4
|
|
|
5
5
|
import type { FC } from 'react';
|
|
6
6
|
import { SampleDescription } from '../SampleDescription';
|
|
7
|
+
import { useToasterService } from '../../hooks/useToasterService';
|
|
7
8
|
|
|
8
|
-
export const ButtonIcons: FC = () =>
|
|
9
|
-
|
|
10
|
-
<SampleDescription>
|
|
11
|
-
<p>This sample shows KolButton with icons in all alignments.</p>
|
|
12
|
-
</SampleDescription>
|
|
9
|
+
export const ButtonIcons: FC = () => {
|
|
10
|
+
const { dummyClickEventHandler } = useToasterService();
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
const dummyEventHandler = {
|
|
13
|
+
onClick: dummyClickEventHandler,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<>
|
|
18
|
+
<SampleDescription>
|
|
19
|
+
<p>This sample shows KolButton with icons in all alignments.</p>
|
|
20
|
+
</SampleDescription>
|
|
21
|
+
|
|
22
|
+
<KolButton
|
|
23
|
+
_icons={{
|
|
24
|
+
bottom: 'codicon codicon-arrow-down',
|
|
25
|
+
left: {
|
|
26
|
+
icon: 'codicon codicon-arrow-left',
|
|
27
|
+
},
|
|
28
|
+
top: {
|
|
29
|
+
style: {
|
|
30
|
+
'font-size': '200%',
|
|
31
|
+
transform: 'rotate(45deg)',
|
|
32
|
+
},
|
|
33
|
+
icon: 'codicon codicon-arrow-up',
|
|
24
34
|
},
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/>
|
|
34
|
-
</>
|
|
35
|
-
);
|
|
35
|
+
right: 'codicon codicon-arrow-right',
|
|
36
|
+
}}
|
|
37
|
+
_label="Label"
|
|
38
|
+
_on={dummyEventHandler}
|
|
39
|
+
/>
|
|
40
|
+
</>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
@@ -2,16 +2,23 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { KolButton } from '@public-ui/react';
|
|
4
4
|
import type { Components } from '@public-ui/components';
|
|
5
|
+
import { useToasterService } from '../../../hooks/useToasterService';
|
|
5
6
|
|
|
6
7
|
export const ButtonCases = function ButtonCases(props: Partial<Components.KolButton>) {
|
|
8
|
+
const { dummyClickEventHandler } = useToasterService();
|
|
9
|
+
|
|
10
|
+
const dummyEventHandler = {
|
|
11
|
+
onClick: dummyClickEventHandler,
|
|
12
|
+
};
|
|
13
|
+
|
|
7
14
|
return (
|
|
8
15
|
<div className="flex flex-wrap gap-4">
|
|
9
|
-
<KolButton {...props} _icons="codicon codicon-home" _label="Primary" _variant="primary"></KolButton>
|
|
10
|
-
<KolButton {...props} _icons="codicon codicon-heart" _label="Secondary" _variant="secondary"></KolButton>
|
|
11
|
-
<KolButton {...props} _icons="codicon codicon-hubot" _label="Normal" _variant="normal"></KolButton>
|
|
12
|
-
<KolButton {...props} _icons="codicon codicon-hubot" _label="Tertiary" _variant="tertiary"></KolButton>
|
|
13
|
-
<KolButton {...props} _icons="codicon codicon-trash" _label="Danger" _variant="danger"></KolButton>
|
|
14
|
-
<KolButton {...props} _icons="codicon codicon-reactions" _label="Ghost" _variant="ghost"></KolButton>
|
|
16
|
+
<KolButton {...props} _icons="codicon codicon-home" _label="Primary" _variant="primary" _on={dummyEventHandler}></KolButton>
|
|
17
|
+
<KolButton {...props} _icons="codicon codicon-heart" _label="Secondary" _variant="secondary" _on={dummyEventHandler}></KolButton>
|
|
18
|
+
<KolButton {...props} _icons="codicon codicon-hubot" _label="Normal" _variant="normal" _on={dummyEventHandler}></KolButton>
|
|
19
|
+
<KolButton {...props} _icons="codicon codicon-hubot" _label="Tertiary" _variant="tertiary" _on={dummyEventHandler}></KolButton>
|
|
20
|
+
<KolButton {...props} _icons="codicon codicon-trash" _label="Danger" _variant="danger" _on={dummyEventHandler}></KolButton>
|
|
21
|
+
<KolButton {...props} _icons="codicon codicon-reactions" _label="Ghost" _variant="ghost" _on={dummyEventHandler}></KolButton>
|
|
15
22
|
</div>
|
|
16
23
|
);
|
|
17
24
|
};
|
|
@@ -4,35 +4,40 @@ import { KolButton } from '@public-ui/react';
|
|
|
4
4
|
|
|
5
5
|
import type { FC } from 'react';
|
|
6
6
|
import { SampleDescription } from '../SampleDescription';
|
|
7
|
+
import { useToasterService } from '../../hooks/useToasterService';
|
|
7
8
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
_on: {
|
|
11
|
-
onClick: () => alert('Click!'),
|
|
12
|
-
},
|
|
13
|
-
};
|
|
9
|
+
export const ButtonWidth: FC = () => {
|
|
10
|
+
const { dummyClickEventHandler } = useToasterService();
|
|
14
11
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
const ARGS = {
|
|
13
|
+
className: 'w-8rem',
|
|
14
|
+
_on: {
|
|
15
|
+
onClick: dummyClickEventHandler,
|
|
16
|
+
},
|
|
17
|
+
};
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<KolButton
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
19
|
+
return (
|
|
20
|
+
<>
|
|
21
|
+
<SampleDescription>
|
|
22
|
+
<p>This sample shows KolButton with adjusted widths.</p>
|
|
23
|
+
</SampleDescription>
|
|
24
|
+
|
|
25
|
+
<div className="grid gap-14">
|
|
26
|
+
<div className="flex flex-wrap gap-4">
|
|
27
|
+
<KolButton _label="Primary" _variant="primary" {...ARGS}></KolButton>
|
|
28
|
+
<KolButton _label="Secondary" _variant="secondary" {...ARGS}></KolButton>
|
|
29
|
+
<KolButton _label="Normal" _variant="normal" {...ARGS}></KolButton>
|
|
30
|
+
<KolButton _label="Danger" _variant="danger" {...ARGS}></KolButton>
|
|
31
|
+
<KolButton _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
|
|
32
|
+
</div>
|
|
33
|
+
<div className="flex flex-wrap gap-4">
|
|
34
|
+
<KolButton _disabled _label="Primary" _variant="primary" {...ARGS}></KolButton>
|
|
35
|
+
<KolButton _disabled _label="Secondary" _variant="secondary" {...ARGS}></KolButton>
|
|
36
|
+
<KolButton _disabled _label="Normal" _variant="normal" {...ARGS}></KolButton>
|
|
37
|
+
<KolButton _disabled _label="Danger" _variant="danger" {...ARGS}></KolButton>
|
|
38
|
+
<KolButton _disabled _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
|
|
39
|
+
</div>
|
|
35
40
|
</div>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
</>
|
|
42
|
+
);
|
|
43
|
+
};
|
|
@@ -4,22 +4,31 @@ import { KolBadge, KolButton, KolButtonGroup } from '@public-ui/react';
|
|
|
4
4
|
import { SampleDescription } from '../SampleDescription';
|
|
5
5
|
|
|
6
6
|
import type { FC } from 'react';
|
|
7
|
+
import { useToasterService } from '../../hooks/useToasterService';
|
|
7
8
|
|
|
8
|
-
export const ButtonGroupBasic: FC = () =>
|
|
9
|
-
|
|
10
|
-
<SampleDescription>
|
|
11
|
-
<p>KolButtonGroup shows multiple KolButton-elements visually grouped together.</p>
|
|
9
|
+
export const ButtonGroupBasic: FC = () => {
|
|
10
|
+
const { dummyClickEventHandler } = useToasterService();
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
</SampleDescription>
|
|
12
|
+
const dummyEventHandler = {
|
|
13
|
+
onClick: dummyClickEventHandler,
|
|
14
|
+
};
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
return (
|
|
17
|
+
<>
|
|
18
|
+
<SampleDescription>
|
|
19
|
+
<p>KolButtonGroup shows multiple KolButton-elements visually grouped together.</p>
|
|
20
|
+
|
|
21
|
+
<p>
|
|
22
|
+
<KolBadge _label="The component is deprecated and won't be available anymore in KoliBri version 3." _color="#db5461" />
|
|
23
|
+
</p>
|
|
24
|
+
</SampleDescription>
|
|
25
|
+
|
|
26
|
+
<KolButtonGroup>
|
|
27
|
+
<KolButton _label="Active" _variant="primary" _on={dummyEventHandler}></KolButton>
|
|
28
|
+
<KolButton _label="Not active" _disabled></KolButton>
|
|
29
|
+
<KolButton _label="Active" _icons="codicon codicon-home" _variant="danger" _on={dummyEventHandler}></KolButton>
|
|
30
|
+
<KolButton _label="Active" _icons="codicon codicon-trash" _hideLabel _variant="ghost" _on={dummyEventHandler}></KolButton>
|
|
31
|
+
</KolButtonGroup>
|
|
32
|
+
</>
|
|
33
|
+
);
|
|
34
|
+
};
|