@public-ui/sample-react 2.0.8 → 2.0.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/1090.js +2 -0
- package/dist/1181.js +2 -0
- package/dist/1218.js +2 -0
- package/dist/1280.js +2 -0
- package/dist/1338.js +2 -0
- package/dist/1517.js +2 -0
- package/dist/1596.js +2 -0
- package/dist/{9224.js → 2079.js} +2 -2
- package/dist/2163.js +2 -0
- package/dist/2415.js +2 -0
- package/dist/2594.js +2 -0
- package/dist/2611.js +2 -0
- package/dist/2643.js +2 -0
- package/dist/{3384.js → 3034.js} +2 -2
- package/dist/3099.js +2 -0
- package/dist/3145.js +2 -0
- package/dist/3345.js +2 -0
- package/dist/3388.js +2 -0
- package/dist/3466.js +2 -0
- package/dist/3580.js +2 -0
- package/dist/{6112.js → 3600.js} +2 -2
- package/dist/3619.js +2 -0
- package/dist/3776.js +2 -0
- package/dist/{2984.js → 3845.js} +2 -2
- package/dist/4150.js +2 -0
- package/dist/42.js +2 -0
- package/dist/4279.js +2 -0
- package/dist/4463.js +2 -0
- package/dist/4669.js +2 -0
- package/dist/4686.js +2 -0
- package/dist/4689.js +2 -0
- package/dist/4756.js +2 -0
- package/dist/5027.js +2 -0
- package/dist/521.js +2 -0
- package/dist/5324.js +2 -0
- package/dist/5373.js +2 -0
- package/dist/5518.js +2 -0
- package/dist/5615.js +1 -1
- package/dist/5853.js +2 -0
- package/dist/6010.js +2 -0
- package/dist/6308.js +2 -0
- package/dist/6826.js +2 -0
- package/dist/7170.js +2 -0
- package/dist/755.js +2 -0
- package/dist/7654.js +2 -0
- package/dist/8037.js +2 -0
- package/dist/817.js +2 -0
- package/dist/8180.js +2 -0
- package/dist/8341.js +2 -0
- package/dist/8612.js +2 -0
- package/dist/8734.js +2 -0
- package/dist/881.js +2 -0
- package/dist/8869.js +2 -0
- package/dist/892.js +2 -0
- package/dist/8948.js +2 -0
- package/dist/8951.js +2 -0
- package/dist/9150.js +2 -0
- package/dist/9317.js +2 -0
- package/dist/9330.js +2 -0
- package/dist/{9340.js → 9681.js} +2 -2
- package/dist/9700.js +2 -0
- package/dist/9727.js +2 -0
- package/dist/9797.js +2 -0
- package/dist/9865.js +2 -0
- package/dist/9886.js +2 -0
- package/dist/9912.js +2 -0
- package/dist/9912.js.LICENSE.txt +3 -0
- package/dist/9984.js +1 -1
- package/dist/main.css +1 -1
- package/dist/main.js +1 -17750
- package/dist/main.js.LICENSE.txt +2 -2
- package/package.json +13 -13
- package/src/App.tsx +1 -1
- package/src/components/Sidebar.tsx +1 -1
- package/src/components/abbr/basic.tsx +9 -5
- package/src/components/accordion/basic.tsx +17 -11
- package/src/components/accordion/headlines.tsx +26 -20
- package/src/components/accordion/list.tsx +13 -7
- package/src/components/alert/basic.tsx +16 -9
- package/src/components/alert/html.tsx +26 -21
- package/src/components/avatar/basic.tsx +14 -9
- package/src/components/badge/basic.tsx +13 -7
- package/src/components/badge/button.tsx +19 -10
- package/src/components/breadcrumb/basic.tsx +52 -46
- package/src/components/button/access-key.tsx +22 -17
- package/src/components/button/baselined.tsx +12 -6
- package/src/components/button/basic.tsx +9 -1
- package/src/components/button/hide-label.tsx +24 -15
- package/src/components/button/icons.tsx +25 -19
- package/src/components/button/width.tsx +21 -15
- package/src/components/button-group/basic.tsx +12 -6
- package/src/components/button-link/icons.tsx +36 -30
- package/src/components/button-link/image.tsx +13 -7
- package/src/components/card/basic.tsx +9 -3
- package/src/components/card/confirm.tsx +19 -13
- package/src/components/card/flex.tsx +36 -27
- package/src/components/card/routes.ts +2 -0
- package/src/components/card/selection.tsx +53 -47
- package/src/components/details/basic.tsx +26 -17
- package/src/components/handout/basic.tsx +9 -9
- package/src/components/heading/badged.tsx +38 -32
- package/src/components/heading/basic.tsx +14 -8
- package/src/components/heading/paragraph.tsx +47 -38
- package/src/components/icon/basic.tsx +16 -10
- package/src/components/image/basic.tsx +9 -2
- package/src/components/indented-text/basic.tsx +23 -17
- package/src/components/input-checkbox/basic.tsx +13 -1
- package/src/components/input-checkbox/button.tsx +14 -1
- package/src/components/input-checkbox/switch.tsx +16 -3
- package/src/components/input-color/basic.tsx +12 -1
- package/src/components/input-date/basic.tsx +14 -1
- package/src/components/input-email/basic.tsx +9 -1
- package/src/components/input-file/basic.tsx +12 -1
- package/src/components/input-password/basic.tsx +9 -1
- package/src/components/input-password/show-password.tsx +28 -19
- package/src/components/input-radio/basic.tsx +9 -1
- package/src/components/input-radio/select.tsx +9 -3
- package/src/components/input-range/basic.tsx +9 -1
- package/src/components/input-text/basic.tsx +9 -1
- package/src/components/input-text/blur.tsx +17 -12
- package/src/components/input-text/focus.tsx +14 -8
- package/src/components/link/basic.tsx +25 -19
- package/src/components/link/icons.tsx +40 -34
- package/src/components/link/image.tsx +18 -12
- package/src/components/link/target.tsx +14 -8
- package/src/components/link-button/basic.tsx +14 -8
- package/src/components/link-group/basic.tsx +9 -1
- package/src/components/link-group/horizontal.tsx +9 -1
- package/src/components/logo/basic.tsx +9 -1
- package/src/components/modal/basic.tsx +37 -28
- package/src/components/nav/basic.tsx +7 -1
- package/src/components/nav/horizontal.tsx +12 -3
- package/src/components/pagination/basic.tsx +24 -16
- package/src/components/progress/basic.tsx +10 -4
- package/src/components/quote/basic.tsx +7 -1
- package/src/components/quote/block.tsx +15 -6
- package/src/components/select/basic.tsx +12 -1
- package/src/components/spin/basic.tsx +9 -1
- package/src/components/spin/custom.tsx +9 -3
- package/src/components/spin/cycle.tsx +9 -1
- package/src/components/split-button/basic.tsx +17 -8
- package/src/components/table/badge-size.tsx +12 -1
- package/src/components/table/sort-data.tsx +14 -4
- package/src/components/table/with-pagination.tsx +12 -3
- package/src/components/tabs/basic.tsx +18 -12
- package/src/components/tabs/icons-only.tsx +12 -6
- package/src/components/textarea/adjust-height.tsx +14 -8
- package/src/components/textarea/basic.tsx +9 -1
- package/src/components/textarea/counter.tsx +7 -1
- package/src/components/textarea/disabled.tsx +9 -3
- package/src/components/textarea/placeholder.tsx +9 -3
- package/src/components/textarea/readonly.tsx +9 -3
- package/src/components/textarea/resize.tsx +13 -7
- package/src/components/textarea/rows.tsx +9 -3
- package/src/components/toast/basic.tsx +17 -11
- package/src/components/version/basic.tsx +9 -2
- package/src/components/version/context.tsx +11 -5
- package/src/react.main.tsx +11 -3
- package/src/scenarios/complex-form/component.tsx +2 -1
- package/src/scenarios/complex-form/kopfdaten/component.tsx +2 -1
- package/src/scenarios/complex-form/location/component.tsx +2 -1
- package/src/scenarios/complex-form/schedule/component.tsx +2 -1
- package/src/scenarios/static-form.tsx +15 -0
- package/src/shares/types.ts +1 -1
- package/dist/104.js +0 -2
- package/dist/1296.js +0 -2
- package/dist/1461.js +0 -2
- package/dist/1684.js +0 -2
- package/dist/1685.js +0 -2
- package/dist/1888.js +0 -2
- package/dist/2120.js +0 -2
- package/dist/2240.js +0 -2
- package/dist/2364.js +0 -2
- package/dist/2392.js +0 -2
- package/dist/2444.js +0 -2
- package/dist/2628.js +0 -2
- package/dist/2740.js +0 -2
- package/dist/2764.js +0 -2
- package/dist/2782.js +0 -2
- package/dist/2812.js +0 -2
- package/dist/3200.js +0 -2
- package/dist/3204.js +0 -2
- package/dist/352.js +0 -2
- package/dist/3564.js +0 -2
- package/dist/3920.js +0 -2
- package/dist/4064.js +0 -2
- package/dist/4136.js +0 -1
- package/dist/4544.js +0 -2
- package/dist/4728.js +0 -2
- package/dist/4915.js +0 -2
- package/dist/4988.js +0 -2
- package/dist/5376.js +0 -2
- package/dist/5456.js +0 -2
- package/dist/5628.js +0 -2
- package/dist/5744.js +0 -2
- package/dist/5768.js +0 -2
- package/dist/5839.js +0 -2
- package/dist/5956.js +0 -2
- package/dist/5972.js +0 -2
- package/dist/6040.js +0 -2
- package/dist/6476.js +0 -2
- package/dist/7192.js +0 -2
- package/dist/72.js +0 -2
- package/dist/7312.js +0 -2
- package/dist/736.js +0 -2
- package/dist/7496.js +0 -2
- package/dist/7508.js +0 -2
- package/dist/7596.js +0 -2
- package/dist/7712.js +0 -2
- package/dist/7804.js +0 -2
- package/dist/7808.js +0 -2
- package/dist/8188.js +0 -2
- package/dist/8232.js +0 -2
- package/dist/8248.js +0 -2
- package/dist/828.js +0 -2
- package/dist/8476.js +0 -2
- package/dist/8524.js +0 -2
- package/dist/9072.js +0 -2
- package/dist/9088.js +0 -2
- package/dist/9200.js +0 -2
- package/dist/9404.js +0 -2
- package/dist/9424.js +0 -2
- package/dist/9680.js +0 -2
- package/dist/9888.js +0 -2
- /package/dist/{104.js.LICENSE.txt → 1090.js.LICENSE.txt} +0 -0
- /package/dist/{1296.js.LICENSE.txt → 1181.js.LICENSE.txt} +0 -0
- /package/dist/{1461.js.LICENSE.txt → 1218.js.LICENSE.txt} +0 -0
- /package/dist/{1684.js.LICENSE.txt → 1280.js.LICENSE.txt} +0 -0
- /package/dist/{1685.js.LICENSE.txt → 1338.js.LICENSE.txt} +0 -0
- /package/dist/{1888.js.LICENSE.txt → 1517.js.LICENSE.txt} +0 -0
- /package/dist/{2120.js.LICENSE.txt → 1596.js.LICENSE.txt} +0 -0
- /package/dist/{2240.js.LICENSE.txt → 2079.js.LICENSE.txt} +0 -0
- /package/dist/{2364.js.LICENSE.txt → 2163.js.LICENSE.txt} +0 -0
- /package/dist/{2392.js.LICENSE.txt → 2415.js.LICENSE.txt} +0 -0
- /package/dist/{2444.js.LICENSE.txt → 2594.js.LICENSE.txt} +0 -0
- /package/dist/{2628.js.LICENSE.txt → 2611.js.LICENSE.txt} +0 -0
- /package/dist/{2740.js.LICENSE.txt → 2643.js.LICENSE.txt} +0 -0
- /package/dist/{2764.js.LICENSE.txt → 3034.js.LICENSE.txt} +0 -0
- /package/dist/{2782.js.LICENSE.txt → 3099.js.LICENSE.txt} +0 -0
- /package/dist/{2812.js.LICENSE.txt → 3145.js.LICENSE.txt} +0 -0
- /package/dist/{2984.js.LICENSE.txt → 3345.js.LICENSE.txt} +0 -0
- /package/dist/{3200.js.LICENSE.txt → 3388.js.LICENSE.txt} +0 -0
- /package/dist/{3204.js.LICENSE.txt → 3466.js.LICENSE.txt} +0 -0
- /package/dist/{3384.js.LICENSE.txt → 3580.js.LICENSE.txt} +0 -0
- /package/dist/{352.js.LICENSE.txt → 3600.js.LICENSE.txt} +0 -0
- /package/dist/{3564.js.LICENSE.txt → 3619.js.LICENSE.txt} +0 -0
- /package/dist/{3920.js.LICENSE.txt → 3776.js.LICENSE.txt} +0 -0
- /package/dist/{4064.js.LICENSE.txt → 3845.js.LICENSE.txt} +0 -0
- /package/dist/{4544.js.LICENSE.txt → 4150.js.LICENSE.txt} +0 -0
- /package/dist/{4728.js.LICENSE.txt → 42.js.LICENSE.txt} +0 -0
- /package/dist/{4915.js.LICENSE.txt → 4279.js.LICENSE.txt} +0 -0
- /package/dist/{4988.js.LICENSE.txt → 4463.js.LICENSE.txt} +0 -0
- /package/dist/{5376.js.LICENSE.txt → 4669.js.LICENSE.txt} +0 -0
- /package/dist/{5456.js.LICENSE.txt → 4686.js.LICENSE.txt} +0 -0
- /package/dist/{5628.js.LICENSE.txt → 4689.js.LICENSE.txt} +0 -0
- /package/dist/{5744.js.LICENSE.txt → 4756.js.LICENSE.txt} +0 -0
- /package/dist/{5768.js.LICENSE.txt → 5027.js.LICENSE.txt} +0 -0
- /package/dist/{5839.js.LICENSE.txt → 521.js.LICENSE.txt} +0 -0
- /package/dist/{5956.js.LICENSE.txt → 5324.js.LICENSE.txt} +0 -0
- /package/dist/{5972.js.LICENSE.txt → 5373.js.LICENSE.txt} +0 -0
- /package/dist/{6040.js.LICENSE.txt → 5518.js.LICENSE.txt} +0 -0
- /package/dist/{6112.js.LICENSE.txt → 5853.js.LICENSE.txt} +0 -0
- /package/dist/{6476.js.LICENSE.txt → 6010.js.LICENSE.txt} +0 -0
- /package/dist/{7192.js.LICENSE.txt → 6308.js.LICENSE.txt} +0 -0
- /package/dist/{72.js.LICENSE.txt → 6826.js.LICENSE.txt} +0 -0
- /package/dist/{7312.js.LICENSE.txt → 7170.js.LICENSE.txt} +0 -0
- /package/dist/{736.js.LICENSE.txt → 755.js.LICENSE.txt} +0 -0
- /package/dist/{7496.js.LICENSE.txt → 7654.js.LICENSE.txt} +0 -0
- /package/dist/{7508.js.LICENSE.txt → 8037.js.LICENSE.txt} +0 -0
- /package/dist/{7596.js.LICENSE.txt → 817.js.LICENSE.txt} +0 -0
- /package/dist/{7712.js.LICENSE.txt → 8180.js.LICENSE.txt} +0 -0
- /package/dist/{7804.js.LICENSE.txt → 8341.js.LICENSE.txt} +0 -0
- /package/dist/{7808.js.LICENSE.txt → 8612.js.LICENSE.txt} +0 -0
- /package/dist/{8188.js.LICENSE.txt → 8734.js.LICENSE.txt} +0 -0
- /package/dist/{8232.js.LICENSE.txt → 881.js.LICENSE.txt} +0 -0
- /package/dist/{8248.js.LICENSE.txt → 8869.js.LICENSE.txt} +0 -0
- /package/dist/{828.js.LICENSE.txt → 892.js.LICENSE.txt} +0 -0
- /package/dist/{8476.js.LICENSE.txt → 8948.js.LICENSE.txt} +0 -0
- /package/dist/{8524.js.LICENSE.txt → 8951.js.LICENSE.txt} +0 -0
- /package/dist/{9072.js.LICENSE.txt → 9150.js.LICENSE.txt} +0 -0
- /package/dist/{9088.js.LICENSE.txt → 9317.js.LICENSE.txt} +0 -0
- /package/dist/{9200.js.LICENSE.txt → 9330.js.LICENSE.txt} +0 -0
- /package/dist/{9224.js.LICENSE.txt → 9681.js.LICENSE.txt} +0 -0
- /package/dist/{9340.js.LICENSE.txt → 9700.js.LICENSE.txt} +0 -0
- /package/dist/{9404.js.LICENSE.txt → 9727.js.LICENSE.txt} +0 -0
- /package/dist/{9424.js.LICENSE.txt → 9797.js.LICENSE.txt} +0 -0
- /package/dist/{9680.js.LICENSE.txt → 9865.js.LICENSE.txt} +0 -0
- /package/dist/{9888.js.LICENSE.txt → 9886.js.LICENSE.txt} +0 -0
|
@@ -3,5 +3,13 @@ import React from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { FocusElement } from '../FocusInput';
|
|
5
5
|
import { ButtonVariants } from './partials/variants';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
|
-
export const ButtonBasic: FC = () =>
|
|
8
|
+
export const ButtonBasic: FC = () => (
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>Hier sind anklickbare und nicht anklickbare Buttons. Es gibt außerdem Buttons mit Label und ohne Label.</p>
|
|
12
|
+
</SampleDescription>
|
|
13
|
+
<FocusElement RefComponent={ButtonVariants} />
|
|
14
|
+
</>
|
|
15
|
+
);
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { KolButton } from '@public-ui/react';
|
|
4
4
|
|
|
5
5
|
import type { FC } from 'react';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
8
|
const ARGS = {
|
|
8
9
|
_icons: 'codicon codicon-home',
|
|
@@ -13,20 +14,28 @@ const ARGS = {
|
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
export const ButtonIconOnly: FC = () => (
|
|
16
|
-
|
|
17
|
-
<
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
<>
|
|
18
|
+
<SampleDescription>
|
|
19
|
+
<p>
|
|
20
|
+
Hier sind Buttons aktiviert und deaktiviert. Sie beinhalten kein Label. Das Label wird beim anklicken oder als Tooltip angezeigt. Beim anklicken wird
|
|
21
|
+
ein alert als Popup ausgeführt.
|
|
22
|
+
</p>
|
|
23
|
+
</SampleDescription>
|
|
24
|
+
<div className="grid gap-14">
|
|
25
|
+
<div className="flex flex-wrap gap-14">
|
|
26
|
+
<KolButton _label="Primary" _variant="primary" _tooltipAlign="top" {...ARGS}></KolButton>
|
|
27
|
+
<KolButton _label="Secondary" _variant="secondary" _tooltipAlign="right" {...ARGS}></KolButton>
|
|
28
|
+
<KolButton _label="Normal" _variant="normal" _tooltipAlign="bottom" {...ARGS}></KolButton>
|
|
29
|
+
<KolButton _label="Danger" _variant="danger" _tooltipAlign="left" {...ARGS}></KolButton>
|
|
30
|
+
<KolButton _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
|
|
31
|
+
</div>
|
|
32
|
+
<div className="flex flex-wrap gap-14">
|
|
33
|
+
<KolButton _disabled _label="Primary" _variant="primary" {...ARGS}></KolButton>
|
|
34
|
+
<KolButton _disabled _label="Secondary" _variant="secondary" {...ARGS}></KolButton>
|
|
35
|
+
<KolButton _disabled _label="Normal" _variant="normal" {...ARGS}></KolButton>
|
|
36
|
+
<KolButton _disabled _label="Danger" _variant="danger" {...ARGS}></KolButton>
|
|
37
|
+
<KolButton _disabled _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
|
|
38
|
+
</div>
|
|
23
39
|
</div>
|
|
24
|
-
|
|
25
|
-
<KolButton _disabled _label="Primary" _variant="primary" {...ARGS}></KolButton>
|
|
26
|
-
<KolButton _disabled _label="Secondary" _variant="secondary" {...ARGS}></KolButton>
|
|
27
|
-
<KolButton _disabled _label="Normal" _variant="normal" {...ARGS}></KolButton>
|
|
28
|
-
<KolButton _disabled _label="Danger" _variant="danger" {...ARGS}></KolButton>
|
|
29
|
-
<KolButton _disabled _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
40
|
+
</>
|
|
32
41
|
);
|
|
@@ -3,26 +3,32 @@ import React from 'react';
|
|
|
3
3
|
import { KolButton } from '@public-ui/react';
|
|
4
4
|
|
|
5
5
|
import type { FC } from 'react';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
8
|
export const ButtonIcons: FC = () => (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
transform: 'rotate(45deg)',
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>Hier wird ein Button mit dem Label 'Label' angezeigt. Beim anklicken wird ein alert als Popup ausgeführt. </p>
|
|
12
|
+
</SampleDescription>
|
|
13
|
+
<KolButton
|
|
14
|
+
_icons={{
|
|
15
|
+
bottom: 'codicon codicon-arrow-down',
|
|
16
|
+
left: {
|
|
17
|
+
icon: 'codicon codicon-arrow-left',
|
|
18
18
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
top: {
|
|
20
|
+
style: {
|
|
21
|
+
'font-size': '200%',
|
|
22
|
+
transform: 'rotate(45deg)',
|
|
23
|
+
},
|
|
24
|
+
icon: 'codicon codicon-arrow-up',
|
|
25
|
+
},
|
|
26
|
+
right: 'codicon codicon-arrow-right',
|
|
27
|
+
}}
|
|
28
|
+
_label="Label"
|
|
29
|
+
_on={{
|
|
30
|
+
onClick: (_event, _value) => alert('Klick!'),
|
|
31
|
+
}}
|
|
32
|
+
/>
|
|
33
|
+
</>
|
|
28
34
|
);
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { KolButton } from '@public-ui/react';
|
|
4
4
|
|
|
5
5
|
import type { FC } from 'react';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
8
|
const ARGS = {
|
|
8
9
|
className: 'w-8rem',
|
|
@@ -12,20 +13,25 @@ const ARGS = {
|
|
|
12
13
|
};
|
|
13
14
|
|
|
14
15
|
export const ButtonWidth: FC = () => (
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
16
|
+
<>
|
|
17
|
+
<SampleDescription>
|
|
18
|
+
<p>Hier werden breite Buttons angezeigt. Beim anklicken wird ein alert als Popup ausgeführt.</p>
|
|
19
|
+
</SampleDescription>
|
|
20
|
+
<div className="grid gap-14">
|
|
21
|
+
<div className="flex flex-wrap 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-wrap 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>
|
|
22
35
|
</div>
|
|
23
|
-
|
|
24
|
-
<KolButton _disabled _label="Primary" _variant="primary" {...ARGS}></KolButton>
|
|
25
|
-
<KolButton _disabled _label="Secondary" _variant="secondary" {...ARGS}></KolButton>
|
|
26
|
-
<KolButton _disabled _label="Normal" _variant="normal" {...ARGS}></KolButton>
|
|
27
|
-
<KolButton _disabled _label="Danger" _variant="danger" {...ARGS}></KolButton>
|
|
28
|
-
<KolButton _disabled _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
36
|
+
</>
|
|
31
37
|
);
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import { KolButton, KolButtonGroup } from '@public-ui/react';
|
|
4
|
+
import { SampleDescription } from '../SampleDescription';
|
|
4
5
|
|
|
5
6
|
import type { FC } from 'react';
|
|
6
7
|
|
|
7
8
|
export const ButtonGroupBasic: FC = () => (
|
|
8
|
-
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<
|
|
13
|
-
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>Hier werden Vier verschiedene Buttons angezeigt. Drei davon lassen sich anklicken und in den Status Active versetzen.</p>
|
|
12
|
+
</SampleDescription>
|
|
13
|
+
<KolButtonGroup>
|
|
14
|
+
<KolButton _label="Active" _variant="primary"></KolButton>
|
|
15
|
+
<KolButton _label="Not active" _disabled></KolButton>
|
|
16
|
+
<KolButton _label="Active" _icons="codicon codicon-home" _variant="danger"></KolButton>
|
|
17
|
+
<KolButton _label="Active" _icons="codicon codicon-trash" _hideLabel _variant="ghost"></KolButton>
|
|
18
|
+
</KolButtonGroup>
|
|
19
|
+
</>
|
|
14
20
|
);
|
|
@@ -3,36 +3,42 @@ import React from 'react';
|
|
|
3
3
|
import { KolButtonLink } from '@public-ui/react';
|
|
4
4
|
|
|
5
5
|
import type { FC } from 'react';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
8
|
export const ButtonLinkIcons: FC = () => (
|
|
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
|
-
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>Hier werden verschiedene Links mit Icons angezeigt. Die Links führen zu keinem Ziel.</p>
|
|
12
|
+
</SampleDescription>
|
|
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
|
+
</>
|
|
38
44
|
);
|
|
@@ -3,13 +3,19 @@ import React from 'react';
|
|
|
3
3
|
import { KolButtonLink } from '@public-ui/react';
|
|
4
4
|
|
|
5
5
|
import type { FC } from 'react';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
8
|
export const ButtonLinkImage: FC = () => (
|
|
8
|
-
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>Hier wird ein Link angezeigt, der als Text gerendert wird. Nach klicken auf den Link wird das Bild abgrenzung.jpg angezeigt.</p>
|
|
12
|
+
</SampleDescription>
|
|
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
|
+
</>
|
|
15
21
|
);
|
|
@@ -3,9 +3,15 @@ import React from 'react';
|
|
|
3
3
|
import { KolCard } from '@public-ui/react';
|
|
4
4
|
|
|
5
5
|
import type { FC } from 'react';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
8
|
export const CardBasic: FC = () => (
|
|
8
|
-
|
|
9
|
-
<
|
|
10
|
-
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>Hier wird eine Card mit Titel und 'Inhalt' angezeigt. Es gibt keine Interaktionsmöglichkeit.</p>
|
|
12
|
+
</SampleDescription>
|
|
13
|
+
<KolCard _label="Titel">
|
|
14
|
+
<div slot="">Inhalt</div>
|
|
15
|
+
</KolCard>
|
|
16
|
+
</>
|
|
11
17
|
);
|
|
@@ -3,20 +3,26 @@ import React from 'react';
|
|
|
3
3
|
import { KolButton, KolCard } from '@public-ui/react';
|
|
4
4
|
|
|
5
5
|
import type { FC } from 'react';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
8
|
export const CardConfirm: FC = () => (
|
|
8
|
-
|
|
9
|
-
<
|
|
10
|
-
<p
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>Hier wird eine Karte mit Beispieltext und zwei Knöpfen 'Speichern' und 'Abbrechen'.</p>
|
|
12
|
+
</SampleDescription>
|
|
13
|
+
<KolCard _has-footer _label="Überschrift">
|
|
14
|
+
<div>
|
|
15
|
+
<p className="p-2">
|
|
16
|
+
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Soluta pariatur laudantium saepe ipsa atque officia cupiditate repudiandae harum earum aut
|
|
17
|
+
doloribus autem libero exercitationem dolor ad, magni dignissimos ratione fuga. Lorem ipsum dolor sit amet consectetur adipisicing elit. Officiis
|
|
18
|
+
perferendis qui animi nesciunt illo facere, doloribus sint cupiditate nihil dolorem voluptate ab esse! Ducimus ad est commodi molestias voluptas
|
|
19
|
+
reiciendis.
|
|
20
|
+
</p>
|
|
21
|
+
<div className="flex gap-2 flex-justify-end">
|
|
22
|
+
<KolButton className="w-12rem" _variant="primary" _label="Speichern"></KolButton>
|
|
23
|
+
<KolButton className="w-12rem" _variant="secondary" _label="Abbrechen"></KolButton>
|
|
24
|
+
</div>
|
|
19
25
|
</div>
|
|
20
|
-
</
|
|
21
|
-
|
|
26
|
+
</KolCard>
|
|
27
|
+
</>
|
|
22
28
|
);
|
|
@@ -3,33 +3,42 @@ import React from 'react';
|
|
|
3
3
|
import { KolCard } from '@public-ui/react';
|
|
4
4
|
|
|
5
5
|
import type { FC } from 'react';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
8
|
export const CardFlex: FC = () => (
|
|
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
|
-
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>
|
|
12
|
+
Hier werden mehrere Karten mit unterschiedlichen Inhalten angezeigt. Beim anklicken des 'x' wird ein Label mit 'Schließen'
|
|
13
|
+
angezeigt.
|
|
14
|
+
</p>
|
|
15
|
+
</SampleDescription>
|
|
16
|
+
<div className="grid grid-cols-2 gap-4">
|
|
17
|
+
<KolCard _label="Titel">
|
|
18
|
+
<div>Inhalt</div>
|
|
19
|
+
</KolCard>
|
|
20
|
+
<KolCard _label="Titel" _hasCloser>
|
|
21
|
+
<div>
|
|
22
|
+
Inhalt
|
|
23
|
+
<br />
|
|
24
|
+
Inhalt
|
|
25
|
+
</div>
|
|
26
|
+
</KolCard>
|
|
27
|
+
<KolCard _label="Titel">
|
|
28
|
+
<div>
|
|
29
|
+
Inhalt
|
|
30
|
+
<br />
|
|
31
|
+
Inhalt
|
|
32
|
+
<br />
|
|
33
|
+
Inhalt
|
|
34
|
+
</div>
|
|
35
|
+
</KolCard>
|
|
36
|
+
<KolCard _label="Titel">
|
|
37
|
+
<div>Inhalt</div>
|
|
38
|
+
</KolCard>
|
|
39
|
+
<KolCard _label="Titel">
|
|
40
|
+
<div>Inhalt</div>
|
|
41
|
+
</KolCard>
|
|
42
|
+
</div>
|
|
43
|
+
</>
|
|
35
44
|
);
|
|
@@ -3,8 +3,10 @@ import { CardBasic } from './basic';
|
|
|
3
3
|
import { CardConfirm } from './confirm';
|
|
4
4
|
import { CardFlex } from './flex';
|
|
5
5
|
import { CardSelection } from './selection';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
8
|
export const CARD_ROUTES: Routes = {
|
|
9
|
+
//SYNTAXERROR
|
|
8
10
|
card: {
|
|
9
11
|
basic: CardBasic,
|
|
10
12
|
confirm: CardConfirm,
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { KolButton, KolCard, KolInputCheckbox } from '@public-ui/react';
|
|
4
4
|
|
|
5
5
|
import type { FC } from 'react';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
8
|
const STYLE = {
|
|
8
9
|
display: 'flex',
|
|
@@ -12,66 +13,71 @@ const STYLE = {
|
|
|
12
13
|
};
|
|
13
14
|
|
|
14
15
|
export const CardSelection: FC = () => (
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
VZTA
|
|
22
|
-
</div>
|
|
16
|
+
<>
|
|
17
|
+
<SampleDescription>
|
|
18
|
+
<p>Hier werden drei Beispielbilder nach klicken auf 'Öffnen' angezeigt. Die Checkboxen 'Auswählen' können an und abgewählt werden.</p>
|
|
19
|
+
</SampleDescription>
|
|
20
|
+
<div className="flex flex-wrap gap-2">
|
|
21
|
+
<KolCard _label="DEBTI-25437/17-1" className="lg:w-[calc(33.33%-16px)] md:w-[calc(50%-16px)] sm:w-full">
|
|
23
22
|
<div>
|
|
24
23
|
<div>
|
|
25
|
-
|
|
24
|
+
TeCorp Endplatte
|
|
25
|
+
<br />
|
|
26
|
+
VZTA
|
|
26
27
|
</div>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<KolButton _variant="primary" _label="Öffnen"></KolButton>
|
|
28
|
+
<div>
|
|
29
|
+
<div>
|
|
30
|
+
<img alt="Darstellung des KoliBri-Theming" src="abgrenzung.jpg" width="100%" />
|
|
31
|
+
</div>
|
|
32
32
|
</div>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</KolCard>
|
|
36
|
-
<KolCard _label="DEBTI-25437/17-1" className="lg:w-[calc(33.33%-16px)] md:w-[calc(50%-16px)] sm:w-full">
|
|
37
|
-
<div>
|
|
38
|
-
<div>
|
|
39
|
-
TeCorp Endplatte
|
|
40
|
-
<br />
|
|
41
|
-
VZTA
|
|
42
|
-
</div>
|
|
43
|
-
<div>
|
|
44
33
|
<div>
|
|
45
|
-
<
|
|
34
|
+
<div style={STYLE}>
|
|
35
|
+
<KolInputCheckbox _label={`Auswählen`} />
|
|
36
|
+
<KolButton _variant="primary" _label="Öffnen"></KolButton>
|
|
37
|
+
</div>
|
|
46
38
|
</div>
|
|
47
39
|
</div>
|
|
40
|
+
</KolCard>
|
|
41
|
+
<KolCard _label="DEBTI-25437/17-1" className="lg:w-[calc(33.33%-16px)] md:w-[calc(50%-16px)] sm:w-full">
|
|
48
42
|
<div>
|
|
49
|
-
<div
|
|
50
|
-
|
|
51
|
-
<
|
|
43
|
+
<div>
|
|
44
|
+
TeCorp Endplatte
|
|
45
|
+
<br />
|
|
46
|
+
VZTA
|
|
47
|
+
</div>
|
|
48
|
+
<div>
|
|
49
|
+
<div>
|
|
50
|
+
<img alt="Darstellung des KoliBri-Theming" src="abgrenzung.jpg" width="100%" />
|
|
51
|
+
</div>
|
|
52
52
|
</div>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
</KolCard>
|
|
56
|
-
<KolCard _label="DEBTI-25437/17-1" className="lg:w-[calc(33.33%-16px)] md:w-[calc(50%-16px)] sm:w-full">
|
|
57
|
-
<div>
|
|
58
|
-
<div>
|
|
59
|
-
TeCorp Endplatte
|
|
60
|
-
<br />
|
|
61
|
-
VZTA
|
|
62
|
-
</div>
|
|
63
|
-
<div>
|
|
64
53
|
<div>
|
|
65
|
-
<
|
|
54
|
+
<div style={STYLE}>
|
|
55
|
+
<KolInputCheckbox _label={`Auswählen`} />
|
|
56
|
+
<KolButton _variant="primary" _label="Öffnen"></KolButton>
|
|
57
|
+
</div>
|
|
66
58
|
</div>
|
|
67
59
|
</div>
|
|
60
|
+
</KolCard>
|
|
61
|
+
<KolCard _label="DEBTI-25437/17-1" className="lg:w-[calc(33.33%-16px)] md:w-[calc(50%-16px)] sm:w-full">
|
|
68
62
|
<div>
|
|
69
|
-
<div
|
|
70
|
-
|
|
71
|
-
<
|
|
63
|
+
<div>
|
|
64
|
+
TeCorp Endplatte
|
|
65
|
+
<br />
|
|
66
|
+
VZTA
|
|
67
|
+
</div>
|
|
68
|
+
<div>
|
|
69
|
+
<div>
|
|
70
|
+
<img alt="Darstellung des KoliBri-Theming" src="abgrenzung.jpg" width="100%" />
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
<div>
|
|
74
|
+
<div style={STYLE}>
|
|
75
|
+
<KolInputCheckbox _label={`Auswählen`} />
|
|
76
|
+
<KolButton _variant="primary" _label="Öffnen"></KolButton>
|
|
77
|
+
</div>
|
|
72
78
|
</div>
|
|
73
79
|
</div>
|
|
74
|
-
</
|
|
75
|
-
</
|
|
76
|
-
|
|
80
|
+
</KolCard>
|
|
81
|
+
</div>
|
|
82
|
+
</>
|
|
77
83
|
);
|
|
@@ -3,23 +3,32 @@ import React from 'react';
|
|
|
3
3
|
import { KolDetails } from '@public-ui/react';
|
|
4
4
|
|
|
5
5
|
import type { FC } from 'react';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
8
|
export const DetailsBasic: FC = () => (
|
|
8
|
-
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>
|
|
12
|
+
Hier sind zwei Texte und ein deaktivierter Text. Beide aktivierten Texte können durch das klicken auf den 'Titel' geöffnet und wieder
|
|
13
|
+
geschlossen werden. Der untere Text ist nach laden der Seite bereits geöffnet, während der obere Text nach laden der Seite geschlossen ist.{' '}
|
|
14
|
+
</p>
|
|
15
|
+
</SampleDescription>
|
|
16
|
+
<p className="grid gap-4">
|
|
17
|
+
<KolDetails _label="Nach Laden der Seite geschlossen">
|
|
18
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
|
19
|
+
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.
|
|
20
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
|
|
21
|
+
</KolDetails>
|
|
22
|
+
<KolDetails _disabled _label="Nach Laden der Seite geöffnet (deaktiviert)" _open>
|
|
23
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
|
24
|
+
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.
|
|
25
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
|
|
26
|
+
</KolDetails>
|
|
27
|
+
<KolDetails _label="Nach Laden der Seite geöffnet" _open>
|
|
28
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
|
29
|
+
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.
|
|
30
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
|
|
31
|
+
</KolDetails>
|
|
32
|
+
</p>
|
|
33
|
+
</>
|
|
25
34
|
);
|