@public-ui/sample-react 1.7.25 → 1.7.26-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/dist/1069.js +1 -1
- package/dist/1085.js +1 -1
- package/dist/1184.js +1 -1
- package/dist/1222.js +1 -1
- package/dist/1237.js +2 -0
- package/dist/1278.js +1 -1
- package/dist/1325.js +1 -1
- package/dist/1333.js +1 -1
- package/dist/1661.js +1 -1
- package/dist/1703.js +1 -1
- package/dist/1711.js +1 -1
- package/dist/1792.js +1 -1
- package/dist/1793.js +1 -1
- package/dist/1878.js +1 -1
- package/dist/1957.js +1 -1
- package/dist/2195.js +1 -1
- package/dist/2305.js +1 -1
- package/dist/2538.js +1 -1
- package/dist/279.js +1 -1
- package/dist/2830.js +1 -1
- package/dist/3180.js +1 -1
- package/dist/3332.js +1 -1
- package/dist/3344.js +1 -1
- package/dist/3596.js +1 -1
- package/dist/3714.js +1 -1
- package/dist/3974.js +1 -1
- package/dist/4014.js +1 -1
- package/dist/4102.js +1 -1
- package/dist/4218.js +1 -1
- package/dist/4404.js +1 -1
- package/dist/{2214.js → 4614.js} +2 -2
- package/dist/4941.js +1 -1
- package/dist/500.js +1 -1
- package/dist/5139.js +1 -1
- package/dist/5164.js +1 -1
- package/dist/5484.js +1 -1
- package/dist/5540.js +1 -1
- package/dist/5756.js +1 -1
- package/dist/6682.js +1 -1
- package/dist/6781.js +1 -1
- package/dist/7245.js +1 -1
- package/dist/7263.js +1 -1
- package/dist/{2328.js → 7300.js} +1 -1
- package/dist/7512.js +1 -1
- package/dist/7856.js +1 -1
- package/dist/8002.js +1 -1
- package/dist/8049.js +1 -1
- package/dist/8189.js +1 -1
- package/dist/8264.js +1 -1
- package/dist/8389.js +1 -1
- package/dist/8515.js +1 -1
- package/dist/8557.js +1 -1
- package/dist/8588.js +1 -1
- package/dist/8724.js +1 -1
- package/dist/882.js +1 -1
- package/dist/895.js +1 -1
- package/dist/8993.js +1 -1
- package/dist/902.js +1 -1
- package/dist/9175.js +1 -1
- package/dist/9202.js +1 -1
- package/dist/9460.js +2 -0
- package/dist/9558.js +1 -1
- package/dist/9567.js +1 -1
- package/dist/9833.js +1 -1
- package/dist/9961.js +1 -1
- package/dist/9962.js +1 -1
- package/dist/index.html +2 -2
- package/dist/main.css +1 -1
- package/dist/main.js +1 -1
- package/package.json +8 -4
- package/public/index.html +2 -2
- package/src/components/SampleDescription.tsx +16 -9
- package/src/components/Sidebar.tsx +4 -4
- package/src/components/abbr/basic.tsx +5 -0
- package/src/components/accordion/basic.tsx +21 -11
- package/src/components/accordion/headlines.tsx +26 -20
- package/src/components/accordion/routes.ts +0 -5
- package/src/components/alert/basic.tsx +15 -1
- package/src/components/alert/card-msg.tsx +15 -6
- package/src/components/alert/html.tsx +7 -3
- package/src/components/avatar/basic.tsx +13 -6
- package/src/components/badge/basic.tsx +14 -7
- package/src/components/badge/button.tsx +7 -0
- package/src/components/breadcrumb/basic.tsx +53 -46
- package/src/components/button/basic.tsx +13 -2
- package/src/components/button/icons.tsx +26 -19
- package/src/components/button/routes.ts +0 -3
- package/src/components/button/width.tsx +22 -15
- package/src/components/button-group/basic.tsx +18 -7
- package/src/components/button-link/basic.tsx +26 -16
- package/src/components/button-link/icons.tsx +37 -30
- package/src/components/button-link/image.tsx +14 -7
- package/src/components/card/basic.tsx +12 -5
- package/src/components/card/routes.ts +0 -9
- package/src/components/details/basic.tsx +21 -12
- package/src/components/heading/badged.tsx +28 -20
- package/src/components/heading/basic.tsx +14 -8
- package/src/components/heading/paragraph.tsx +44 -38
- package/src/components/icon/basic.tsx +16 -10
- package/src/components/image/basic.tsx +9 -1
- package/src/components/indented-text/basic.tsx +25 -17
- package/src/components/input-checkbox/basic.tsx +9 -1
- package/src/components/input-checkbox/button.tsx +9 -1
- package/src/components/input-checkbox/switch.tsx +9 -1
- package/src/components/input-color/basic.tsx +9 -1
- package/src/components/input-date/basic.tsx +9 -1
- package/src/components/input-email/basic.tsx +9 -1
- package/src/components/input-file/basic.tsx +9 -1
- package/src/components/input-number/basic.tsx +13 -1
- package/src/components/input-password/basic.tsx +9 -1
- package/src/components/input-password/show-password.tsx +26 -19
- package/src/components/input-radio/basic.tsx +9 -1
- package/src/components/input-radio/horizontal.tsx +5 -5
- package/src/components/input-radio/routes.ts +0 -3
- package/src/components/input-range/basic.tsx +12 -1
- package/src/components/input-text/basic.tsx +9 -1
- package/src/components/input-text/focus.tsx +14 -8
- package/src/components/input-text/hide-errors.tsx +4 -1
- package/src/components/input-text/routes.ts +0 -2
- package/src/components/kolibri/basic.tsx +5 -0
- package/src/components/link/basic.tsx +25 -17
- package/src/components/link/icons.tsx +40 -34
- package/src/components/link/image.tsx +18 -12
- package/src/components/link/target.tsx +16 -8
- package/src/components/link-button/basic.tsx +14 -8
- package/src/components/link-group/basic.tsx +13 -2
- package/src/components/link-group/horizontal.tsx +13 -2
- package/src/components/logo/basic.tsx +13 -2
- package/src/components/modal/basic.tsx +9 -2
- package/src/components/nav/aria-current.tsx +24 -15
- package/src/components/nav/basic.tsx +64 -55
- package/src/components/nav/horizontal.tsx +58 -52
- package/src/components/nav/routes.ts +0 -3
- package/src/components/pagination/basic.tsx +15 -6
- package/src/components/progress/basic.tsx +10 -4
- package/src/components/quote/basic.tsx +7 -1
- package/src/components/quote/block.tsx +12 -6
- package/src/components/select/basic.tsx +9 -1
- package/src/components/skip-nav/basic.tsx +7 -11
- package/src/components/spin/basic.tsx +10 -1
- package/src/components/spin/custom.tsx +13 -3
- package/src/components/spin/cycle.tsx +10 -1
- package/src/components/split-button/basic.tsx +9 -2
- package/src/components/table/column-alignment.tsx +4 -0
- package/src/components/table/horizontal-scrollbar.tsx +7 -0
- package/src/components/table/render-cell.tsx +9 -1
- package/src/components/table/routes.ts +0 -3
- package/src/components/table/sort-date.tsx +9 -1
- package/src/components/table/with-pagination.tsx +1 -4
- package/src/components/tabs/basic.tsx +4 -0
- package/src/components/tabs/icons-only.tsx +12 -6
- package/src/components/textarea/adjust-height.tsx +12 -8
- package/src/components/textarea/basic.tsx +10 -1
- package/src/components/textarea/counter.tsx +10 -1
- package/src/components/textarea/resize.tsx +15 -6
- package/src/components/textarea/routes.ts +0 -9
- package/src/components/textarea/rows.tsx +12 -3
- package/src/components/toast/basic.tsx +17 -10
- package/src/components/toast-legacy/basic.tsx +17 -8
- package/src/components/version/basic.tsx +10 -1
- package/src/components/version/context.tsx +12 -5
- package/src/react.main.tsx +1 -1
- package/src/scenarios/appointment-form/AppointmentForm.tsx +53 -43
- package/src/scenarios/custom-tooltip-width.tsx +10 -1
- package/src/scenarios/static-form.tsx +1 -1
- package/src/shares/constants.ts +1 -0
- package/dist/3454.js +0 -2
- package/dist/4689.js +0 -2
- package/dist/9192.js +0 -2
- package/dist/9192.js.LICENSE.txt +0 -3
- package/src/components/accordion/header.tsx +0 -17
- package/src/components/accordion/list.tsx +0 -32
- package/src/components/button/hide-label.tsx +0 -31
- package/src/components/card/confirm.tsx +0 -19
- package/src/components/card/flex.tsx +0 -44
- package/src/components/card/selection.tsx +0 -70
- package/src/components/input-radio/select.tsx +0 -18
- package/src/components/input-text/blur.tsx +0 -14
- package/src/components/nav/active.tsx +0 -89
- package/src/components/table/badge-size.tsx +0 -51
- package/src/components/textarea/disabled.tsx +0 -10
- package/src/components/textarea/placeholder.tsx +0 -10
- package/src/components/textarea/readonly.tsx +0 -10
- /package/dist/{2214.js.LICENSE.txt → 1237.js.LICENSE.txt} +0 -0
- /package/dist/{3454.js.LICENSE.txt → 4614.js.LICENSE.txt} +0 -0
- /package/dist/{4689.js.LICENSE.txt → 9460.js.LICENSE.txt} +0 -0
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { KolButton } from '@public-ui/react';
|
|
3
3
|
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
const ARGS = {
|
|
7
8
|
className: 'w-8rem',
|
|
@@ -11,20 +12,26 @@ const ARGS = {
|
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
export const ButtonWidth: FC = () => (
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
<KolButton
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<
|
|
15
|
+
<>
|
|
16
|
+
<SampleDescription>
|
|
17
|
+
<p>This sample shows KolButton with adjusted widths.</p>
|
|
18
|
+
</SampleDescription>
|
|
19
|
+
|
|
20
|
+
<div className="grid gap-14">
|
|
21
|
+
<div className="flex flex-warp gap-14">
|
|
22
|
+
<KolButton _label="Primary" _variant="primary" {...ARGS}></KolButton>
|
|
23
|
+
<KolButton _label="Secondary" _variant="secondary" {...ARGS}></KolButton>
|
|
24
|
+
<KolButton _label="Normal" _variant="normal" {...ARGS}></KolButton>
|
|
25
|
+
<KolButton _label="Danger" _variant="danger" {...ARGS}></KolButton>
|
|
26
|
+
<KolButton _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
|
|
27
|
+
</div>
|
|
28
|
+
<div className="flex flex-warp gap-14">
|
|
29
|
+
<KolButton _disabled _label="Primary" _variant="primary" {...ARGS}></KolButton>
|
|
30
|
+
<KolButton _disabled _label="Secondary" _variant="secondary" {...ARGS}></KolButton>
|
|
31
|
+
<KolButton _disabled _label="Normal" _variant="normal" {...ARGS}></KolButton>
|
|
32
|
+
<KolButton _disabled _label="Danger" _variant="danger" {...ARGS}></KolButton>
|
|
33
|
+
<KolButton _disabled _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
|
|
34
|
+
</div>
|
|
28
35
|
</div>
|
|
29
|
-
|
|
36
|
+
</>
|
|
30
37
|
);
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { KolButton, KolButtonGroup } from '@public-ui/react';
|
|
2
|
+
import { KolBadge, KolButton, KolButtonGroup } from '@public-ui/react';
|
|
3
3
|
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const ButtonGroupBasic: FC = () => (
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>KolButtonGroup shows multiple KolButton-elements visually grouped together.</p>
|
|
11
|
+
|
|
12
|
+
<p>
|
|
13
|
+
<KolBadge _label="The component is deprecated and won't be available anymore in KoliBri version 3." _color="#db5461" />
|
|
14
|
+
</p>
|
|
15
|
+
</SampleDescription>
|
|
16
|
+
|
|
17
|
+
<KolButtonGroup>
|
|
18
|
+
<KolButton _label="Active" _variant="primary"></KolButton>
|
|
19
|
+
<KolButton _label="Not active" _disabled></KolButton>
|
|
20
|
+
<KolButton _label="Active" _icons="codicon codicon-home" _variant="danger"></KolButton>
|
|
21
|
+
<KolButton _label="Active" _icons="codicon codicon-trash" _hideLabel _variant="ghost"></KolButton>
|
|
22
|
+
</KolButtonGroup>
|
|
23
|
+
</>
|
|
13
24
|
);
|
|
@@ -2,22 +2,32 @@ import React from 'react';
|
|
|
2
2
|
import { KolButtonLink } from '@public-ui/react';
|
|
3
3
|
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const ButtonLinkBasic: FC = () => (
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>
|
|
11
|
+
KolButtonLink shows an element, that behaves like a button but looks like a link. The sample illustrates KolButtonLink with different display-properties
|
|
12
|
+
such as <code>block</code>, <code>inline-block</code> and <code>inline</code>. It also demonstrates the disabled-state.
|
|
13
|
+
</p>
|
|
14
|
+
</SampleDescription>
|
|
15
|
+
|
|
16
|
+
<div className="grid gap-4">
|
|
17
|
+
<p>
|
|
18
|
+
In diesem Absatz wird ein Link gesetzt, der keine weiteren Attribute enthält. <KolButtonLink _label="Simple Link" /> Er wird standardmäßig als{' '}
|
|
19
|
+
<strong>inline-Element</strong> ausgegeben.
|
|
20
|
+
</p>
|
|
21
|
+
<p>
|
|
22
|
+
In diesem Absatz wird ein Link gesetzt, der einmal als inline-block-Element ausgegeben wird.{' '}
|
|
23
|
+
<KolButtonLink style={{ display: 'inline-block', margin: '1rem', border: '1px dotted' }} _label="Simple Link" />. Damit kann man mir per CSS-Styles eine
|
|
24
|
+
Breite, eine Höhe und andere Eigenschaften zuweisen.
|
|
25
|
+
<br />
|
|
26
|
+
<br />
|
|
27
|
+
Danach folgt ein Link, der als block-Element ausgegeben wird.
|
|
28
|
+
<KolButtonLink style={{ display: 'block' }} _label="Simple Link" />
|
|
29
|
+
Daher gehe ich über die ganze Breite des Eltern-Elements erzeuge so einen Zeilenumbruch.
|
|
30
|
+
</p>
|
|
31
|
+
</div>
|
|
32
|
+
</>
|
|
23
33
|
);
|
|
@@ -2,36 +2,43 @@ import React from 'react';
|
|
|
2
2
|
import { KolButtonLink } from '@public-ui/react';
|
|
3
3
|
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const ButtonLinkIcons: FC = () => (
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
_label="Ich bin ein Link mit Icon
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>This sample shows KolButtonLink with icons in different locations.</p>
|
|
11
|
+
</SampleDescription>
|
|
12
|
+
|
|
13
|
+
<div className="grid gap-4">
|
|
14
|
+
<KolButtonLink _icons="codicon codicon-home" _label="Ich bin ein Link mit Icon links" />
|
|
15
|
+
<KolButtonLink
|
|
16
|
+
_icons={{
|
|
17
|
+
right: 'codicon codicon-home',
|
|
18
|
+
}}
|
|
19
|
+
_label="Ich bin ein Link mit Icon rechts"
|
|
20
|
+
/>
|
|
21
|
+
<KolButtonLink
|
|
22
|
+
_icons={{
|
|
23
|
+
top: 'codicon codicon-home',
|
|
24
|
+
}}
|
|
25
|
+
_label="Ich bin ein Link mit Icon oben"
|
|
26
|
+
/>
|
|
27
|
+
<KolButtonLink
|
|
28
|
+
_icons={{
|
|
29
|
+
bottom: 'codicon codicon-home',
|
|
30
|
+
}}
|
|
31
|
+
_label="Ich bin ein Link mit Icon unten"
|
|
32
|
+
/>
|
|
33
|
+
<KolButtonLink
|
|
34
|
+
_icons={{
|
|
35
|
+
top: 'codicon codicon-home',
|
|
36
|
+
right: 'codicon codicon-home',
|
|
37
|
+
bottom: 'codicon codicon-home',
|
|
38
|
+
left: 'codicon codicon-home',
|
|
39
|
+
}}
|
|
40
|
+
_label="Ich bin ein Link mit allen Icons"
|
|
41
|
+
/>
|
|
42
|
+
</div>
|
|
43
|
+
</>
|
|
37
44
|
);
|
|
@@ -2,13 +2,20 @@ import React from 'react';
|
|
|
2
2
|
import { KolButtonLink } from '@public-ui/react';
|
|
3
3
|
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const ButtonLinkImage: FC = () => (
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>This sample shows KolButtonLink with slot-content instead of a label. The sample uses an image as content.</p>
|
|
11
|
+
</SampleDescription>
|
|
12
|
+
|
|
13
|
+
<div className="grid gap-4">
|
|
14
|
+
<KolButtonLink _label="Ich bin ein Link, der als Text gerendert wird" />
|
|
15
|
+
<br />
|
|
16
|
+
<KolButtonLink _label="">
|
|
17
|
+
<img alt="Darstellung des KoliBri-Theming" slot="expert" src="abgrenzung.jpg" width="300" />
|
|
18
|
+
</KolButtonLink>
|
|
19
|
+
</div>
|
|
20
|
+
</>
|
|
14
21
|
);
|
|
@@ -2,11 +2,18 @@ import React from 'react';
|
|
|
2
2
|
import { KolCard } from '@public-ui/react';
|
|
3
3
|
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const CardBasic: FC = () => (
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>KolCard shows a card with title and slot content. The second sample features a close button.</p>
|
|
11
|
+
</SampleDescription>
|
|
12
|
+
|
|
13
|
+
<KolCard _heading="Titel" _hasFooter>
|
|
14
|
+
<div slot="header">Zusätzlicher Header</div>
|
|
15
|
+
<div slot="content">Inhalt</div>
|
|
16
|
+
<div slot="footer">Fusszeile</div>
|
|
17
|
+
</KolCard>
|
|
18
|
+
</>
|
|
12
19
|
);
|
|
@@ -2,17 +2,8 @@ import { Routes } from '../../shares/types';
|
|
|
2
2
|
|
|
3
3
|
import { CardBasic } from './basic';
|
|
4
4
|
|
|
5
|
-
import { CardConfirm } from './confirm';
|
|
6
|
-
|
|
7
|
-
import { CardFlex } from './flex';
|
|
8
|
-
|
|
9
|
-
import { CardSelection } from './selection';
|
|
10
|
-
|
|
11
5
|
export const CARD_ROUTES: Routes = {
|
|
12
6
|
card: {
|
|
13
7
|
basic: CardBasic,
|
|
14
|
-
confirm: CardConfirm,
|
|
15
|
-
flex: CardFlex,
|
|
16
|
-
selection: CardSelection,
|
|
17
8
|
},
|
|
18
9
|
};
|
|
@@ -2,18 +2,27 @@ import React from 'react';
|
|
|
2
2
|
import { KolDetails } from '@public-ui/react';
|
|
3
3
|
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const DetailsBasic: FC = () => (
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>
|
|
11
|
+
KolDetails hides its content until opened. The open state can be toggled either by clicking the label or by setting the <code>_open</code>-prop
|
|
12
|
+
programmatically. The sample includes an initially open state and a disabled but open Details component.
|
|
13
|
+
</p>
|
|
14
|
+
</SampleDescription>
|
|
15
|
+
<p className="grid gap-4">
|
|
16
|
+
<KolDetails _summary="Nach Laden der Seite geschlossen">
|
|
17
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
|
18
|
+
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
|
19
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
|
|
20
|
+
</KolDetails>
|
|
21
|
+
<KolDetails _summary="Nach Laden der Seite geöffnet" _open>
|
|
22
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
|
23
|
+
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
|
24
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
|
|
25
|
+
</KolDetails>
|
|
26
|
+
</p>
|
|
27
|
+
</>
|
|
19
28
|
);
|
|
@@ -2,26 +2,34 @@ import React from 'react';
|
|
|
2
2
|
import { KolBadge, KolHeading } from '@public-ui/react';
|
|
3
3
|
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const HeadingBadged: FC = () => (
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>
|
|
11
|
+
This sample shows KolHeading with its different levels and content provided using the export slot instead of the <code>_label</code>-property.
|
|
12
|
+
</p>
|
|
13
|
+
</SampleDescription>
|
|
14
|
+
<div className="grid gap-4">
|
|
15
|
+
<KolHeading _label="" _level={1}>
|
|
16
|
+
Eine Überschrift mit einem <KolBadge _color="#f00" _label="Label"></KolBadge>
|
|
17
|
+
</KolHeading>
|
|
18
|
+
<KolHeading _label="" _level={2}>
|
|
19
|
+
Eine Überschrift mit einem <KolBadge _color="#0f0" _label="Label"></KolBadge>
|
|
20
|
+
</KolHeading>
|
|
21
|
+
<KolHeading _label="" _level={3}>
|
|
22
|
+
Eine Überschrift mit einem <KolBadge _color="#00f" _label="Label"></KolBadge>
|
|
23
|
+
</KolHeading>
|
|
24
|
+
<KolHeading _label="" _level={4}>
|
|
25
|
+
Eine Überschrift mit einem <KolBadge _color="#800080" _label="Label"></KolBadge>
|
|
26
|
+
</KolHeading>
|
|
27
|
+
<KolHeading _label="" _level={5}>
|
|
28
|
+
Eine Überschrift mit einem <KolBadge _color="#ff0" _label="Label"></KolBadge>
|
|
29
|
+
</KolHeading>
|
|
30
|
+
<KolHeading _label="" _level={6}>
|
|
31
|
+
Eine Überschrift mit einem <KolBadge _color="#ffc0cb" _label="Label"></KolBadge>
|
|
32
|
+
</KolHeading>
|
|
33
|
+
</div>
|
|
34
|
+
</>
|
|
27
35
|
);
|
|
@@ -2,14 +2,20 @@ import React from 'react';
|
|
|
2
2
|
import { KolHeading } from '@public-ui/react';
|
|
3
3
|
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const HeadingBasic: FC = () => (
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>KolHeading renders a heading with the given level.</p>
|
|
11
|
+
</SampleDescription>
|
|
12
|
+
<div className="grid gap-4">
|
|
13
|
+
<KolHeading _label="Ich bin eine H1-Überschrift" _level={1} />
|
|
14
|
+
<KolHeading _label="Ich bin eine H2-Überschrift" _level={2} />
|
|
15
|
+
<KolHeading _label="Ich bin eine H3-Überschrift" _level={3} />
|
|
16
|
+
<KolHeading _label="Ich bin eine H4-Überschrift" _level={4} />
|
|
17
|
+
<KolHeading _label="Ich bin eine H5-Überschrift" _level={5} />
|
|
18
|
+
<KolHeading _label="Ich bin eine H6-Überschrift" _level={6} />
|
|
19
|
+
</div>
|
|
20
|
+
</>
|
|
15
21
|
);
|
|
@@ -2,44 +2,50 @@ import React from 'react';
|
|
|
2
2
|
import { KolHeading } from '@public-ui/react';
|
|
3
3
|
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const HeadingParagraph: FC = () => (
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>This sample shows KolHeading with its different levels combined with some text content each.</p>
|
|
11
|
+
</SampleDescription>
|
|
12
|
+
<div className="grid gap-4">
|
|
13
|
+
<KolHeading _label="Ich bin eine H1-Überschrift" _level={1} />
|
|
14
|
+
<p>
|
|
15
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
|
16
|
+
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
|
17
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
|
|
18
|
+
</p>
|
|
19
|
+
<KolHeading _label="Ich bin eine H2-Überschrift" _level={2} />
|
|
20
|
+
<p>
|
|
21
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
|
22
|
+
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
|
23
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
|
|
24
|
+
</p>
|
|
25
|
+
<KolHeading _label="Ich bin eine H3-Überschrift" _level={3} />
|
|
26
|
+
<p>
|
|
27
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
|
28
|
+
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
|
29
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
|
|
30
|
+
</p>
|
|
31
|
+
<KolHeading _label="Ich bin eine H4-Überschrift" _level={4} />
|
|
32
|
+
<p>
|
|
33
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
|
34
|
+
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
|
35
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
|
|
36
|
+
</p>
|
|
37
|
+
<KolHeading _label="Ich bin eine H5-Überschrift" _level={5} />
|
|
38
|
+
<p>
|
|
39
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
|
40
|
+
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
|
41
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
|
|
42
|
+
</p>
|
|
43
|
+
<KolHeading _label="Ich bin eine H6-Überschrift" _level={6} />
|
|
44
|
+
<p>
|
|
45
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
|
46
|
+
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
|
47
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
|
|
48
|
+
</p>
|
|
49
|
+
</div>
|
|
50
|
+
</>
|
|
45
51
|
);
|
|
@@ -2,16 +2,22 @@ import React from 'react';
|
|
|
2
2
|
import { KolIcon } from '@public-ui/react';
|
|
3
3
|
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const IconBasic: FC = () => (
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>KolIcon renders an icon. This sample shows one regular icon and one with a custom style-property, changing the icon color.</p>
|
|
11
|
+
</SampleDescription>
|
|
12
|
+
<div className="grid gap-4">
|
|
13
|
+
<KolIcon _ariaLabel="" _icons="codicon codicon-home" />
|
|
14
|
+
<KolIcon
|
|
15
|
+
style={{
|
|
16
|
+
color: 'red',
|
|
17
|
+
}}
|
|
18
|
+
_ariaLabel=""
|
|
19
|
+
_icons="codicon codicon-home"
|
|
20
|
+
/>
|
|
21
|
+
</div>
|
|
22
|
+
</>
|
|
17
23
|
);
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { KolImage } from '@public-ui/react';
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import { SampleDescription } from '../SampleDescription';
|
|
4
5
|
|
|
5
|
-
export const ImageBasic: FC = () =>
|
|
6
|
+
export const ImageBasic: FC = () => (
|
|
7
|
+
<>
|
|
8
|
+
<SampleDescription>
|
|
9
|
+
<p>KolImage renders an image. The sample shows an image with alternative text.</p>
|
|
10
|
+
</SampleDescription>
|
|
11
|
+
<KolImage className="w-80%" _src="abgrenzung.jpg" _alt="Darstellung des KoliBri-Theming" />
|
|
12
|
+
</>
|
|
13
|
+
);
|
|
@@ -2,23 +2,31 @@ import React from 'react';
|
|
|
2
2
|
import { KolIndentedText } from '@public-ui/react';
|
|
3
3
|
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const IndentedTextBasic: FC = () => (
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>
|
|
11
|
+
KolIndentedText renders the given slot content, styled as indented text. The sample shows two regular paragraphs with an indented paragraph in between.
|
|
12
|
+
</p>
|
|
13
|
+
</SampleDescription>
|
|
14
|
+
<div className="grid gap-4">
|
|
15
|
+
<p>
|
|
16
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
|
17
|
+
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
|
18
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
|
|
19
|
+
</p>
|
|
20
|
+
<KolIndentedText>
|
|
21
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
|
22
|
+
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
|
23
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
|
|
24
|
+
</KolIndentedText>
|
|
25
|
+
<p>
|
|
26
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
|
27
|
+
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
|
28
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
|
|
29
|
+
</p>
|
|
30
|
+
</div>
|
|
31
|
+
</>
|
|
24
32
|
);
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
import { FormWrap } from '../FormWrap';
|
|
3
3
|
import { InputCheckboxVariants } from './partials/variants';
|
|
4
|
+
import { SampleDescription } from '../SampleDescription';
|
|
4
5
|
|
|
5
|
-
export const InputCheckboxBasic: FC = () =>
|
|
6
|
+
export const InputCheckboxBasic: FC = () => (
|
|
7
|
+
<>
|
|
8
|
+
<SampleDescription>
|
|
9
|
+
<p>KolInputCheckbox renders a checkbox. The sample shows KolInputCheckbox in a form context with all variations and states.</p>
|
|
10
|
+
</SampleDescription>
|
|
11
|
+
<FormWrap RefComponent={InputCheckboxVariants} />
|
|
12
|
+
</>
|
|
13
|
+
);
|