@public-ui/sample-react 2.1.4 → 2.1.5-rc.2
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/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/2305.js +1 -1
- package/dist/2471.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/3596.js +1 -1
- package/dist/3714.js +1 -1
- package/dist/3797.js +1 -1
- package/dist/3974.js +1 -1
- package/dist/3990.js +1 -1
- package/dist/4014.js +1 -1
- package/dist/4102.js +1 -1
- package/dist/4218.js +1 -1
- package/dist/4303.js +1 -1
- package/dist/4404.js +1 -1
- package/dist/453.js +1 -1
- 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/5365.js +1 -1
- package/dist/5540.js +1 -1
- package/dist/5756.js +1 -1
- package/dist/6393.js +1 -1
- package/dist/6682.js +1 -1
- package/dist/6781.js +1 -1
- package/dist/{5168.js → 6787.js} +2 -2
- package/dist/7100.js +1 -1
- package/dist/7245.js +1 -1
- package/dist/7263.js +1 -1
- package/dist/7512.js +1 -1
- package/dist/7856.js +1 -1
- package/dist/{445.js → 788.js} +2 -2
- package/dist/8002.js +1 -1
- package/dist/8189.js +1 -1
- package/dist/8264.js +1 -1
- package/dist/8384.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/8791.js +1 -1
- package/dist/882.js +1 -1
- package/dist/8823.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/9833.js +1 -1
- package/dist/9961.js +1 -1
- package/dist/index.html +2 -2
- package/dist/main.css +1 -1
- package/dist/main.js +1 -1
- package/package.json +4 -4
- package/public/index.html +2 -2
- package/src/components/SampleDescription.tsx +10 -6
- package/src/components/Sidebar.tsx +4 -4
- package/src/components/abbr/basic.tsx +2 -1
- package/src/components/accordion/basic.tsx +10 -9
- package/src/components/accordion/headlines.tsx +9 -9
- package/src/components/accordion/routes.ts +0 -2
- package/src/components/alert/basic.tsx +15 -10
- package/src/components/alert/card-msg.tsx +13 -6
- package/src/components/alert/html.tsx +2 -1
- package/src/components/avatar/basic.tsx +2 -1
- package/src/components/badge/basic.tsx +7 -6
- package/src/components/badge/button.tsx +13 -18
- package/src/components/breadcrumb/basic.tsx +2 -1
- package/src/components/button/access-key.tsx +7 -2
- package/src/components/button/baselined.tsx +2 -1
- package/src/components/button/basic.tsx +3 -1
- package/src/components/button/icons.tsx +2 -1
- package/src/components/button/partials/variants.tsx +0 -1
- package/src/components/button/routes.ts +0 -2
- package/src/components/button/width.tsx +2 -1
- package/src/components/button-group/basic.tsx +7 -2
- package/src/components/button-link/basic.tsx +28 -19
- package/src/components/button-link/icons.tsx +2 -1
- package/src/components/button-link/image.tsx +2 -1
- package/src/components/card/basic.tsx +11 -4
- package/src/components/card/routes.ts +0 -6
- package/src/components/combobox/basic.tsx +5 -4
- package/src/components/details/basic.tsx +6 -5
- package/src/components/drawer/basic.tsx +4 -4
- package/src/components/drawer/controlled.tsx +4 -4
- package/src/components/form/basic.tsx +5 -4
- package/src/components/form/error-list.tsx +6 -5
- package/src/components/heading/badged.tsx +4 -1
- package/src/components/heading/basic.tsx +8 -7
- package/src/components/heading/paragraph.tsx +2 -4
- package/src/components/heading/routes.ts +1 -1
- package/src/components/icon/basic.tsx +2 -1
- package/src/components/image/basic.tsx +2 -1
- package/src/components/indented-text/basic.tsx +4 -1
- package/src/components/input-checkbox/basic.tsx +2 -5
- package/src/components/input-checkbox/button.tsx +2 -6
- package/src/components/input-checkbox/switch.tsx +2 -7
- package/src/components/input-color/basic.tsx +2 -4
- package/src/components/input-date/basic.tsx +2 -6
- package/src/components/input-email/basic.tsx +2 -1
- package/src/components/input-file/basic.tsx +2 -4
- package/src/components/input-number/basic.tsx +3 -4
- package/src/components/input-password/basic.tsx +2 -1
- package/src/components/input-password/show-password.tsx +3 -2
- package/src/components/input-radio/basic.tsx +2 -1
- package/src/components/input-radio/horizontal.tsx +2 -2
- package/src/components/input-radio/objectValue.tsx +11 -11
- package/src/components/input-radio/routes.ts +0 -2
- package/src/components/input-range/basic.tsx +5 -1
- package/src/components/input-text/basic.tsx +2 -1
- package/src/components/input-text/hide-errors.tsx +6 -2
- package/src/components/input-text/routes.ts +0 -2
- package/src/components/kolibri/basic.tsx +3 -3
- package/src/components/link/basic.tsx +4 -1
- package/src/components/link/icons.tsx +2 -1
- package/src/components/link/image.tsx +4 -9
- package/src/components/link/target.tsx +24 -7
- package/src/components/link-button/basic.tsx +2 -1
- package/src/components/link-group/basic.tsx +6 -2
- package/src/components/link-group/horizontal.tsx +6 -2
- package/src/components/modal/basic.tsx +6 -5
- package/src/components/nav/aria-current.tsx +4 -4
- package/src/components/nav/basic.tsx +3 -2
- package/src/components/nav/horizontal.tsx +2 -4
- package/src/components/pagination/basic.tsx +8 -6
- package/src/components/progress/basic.tsx +2 -1
- package/src/components/quote/basic.tsx +2 -1
- package/src/components/quote/block.tsx +2 -4
- package/src/components/select/basic.tsx +2 -4
- package/src/components/skip-nav/basic.tsx +6 -8
- package/src/components/spin/basic.tsx +2 -1
- package/src/components/spin/custom.tsx +3 -2
- package/src/components/spin/cycle.tsx +2 -1
- package/src/components/split-button/basic.tsx +3 -2
- package/src/components/table/column-alignment.tsx +3 -1
- package/src/components/table/complex-headers.tsx +3 -1
- package/src/components/table/horizontal-scrollbar.tsx +4 -2
- package/src/components/table/pagination-position.tsx +4 -1
- package/src/components/table/render-cell.tsx +2 -1
- package/src/components/table/routes.ts +0 -2
- package/src/components/table/sort-data.tsx +1 -4
- package/src/components/table/stateful-with-selection.tsx +3 -1
- package/src/components/table/stateless-with-selection.tsx +3 -1
- package/src/components/table/stateless.tsx +3 -1
- package/src/components/table/with-footer.tsx +3 -1
- package/src/components/table/with-pagination.tsx +1 -4
- package/src/components/tabs/basic.tsx +14 -15
- package/src/components/tabs/icons-only.tsx +1 -1
- package/src/components/textarea/adjust-height.tsx +7 -10
- package/src/components/textarea/basic.tsx +2 -1
- package/src/components/textarea/counter.tsx +5 -8
- package/src/components/textarea/partials/cases.tsx +1 -0
- package/src/components/textarea/resize.tsx +8 -6
- package/src/components/textarea/routes.ts +0 -6
- package/src/components/textarea/rows.tsx +4 -1
- package/src/components/toast/basic.tsx +2 -1
- package/src/components/toolbar/basic.tsx +10 -2
- package/src/components/toolbar/disabled.tsx +7 -2
- package/src/components/tree/basic.tsx +4 -0
- package/src/components/version/basic.tsx +2 -1
- package/src/components/version/context.tsx +2 -1
- package/src/react.main.tsx +1 -1
- package/src/scenarios/appointment-form/AppointmentForm.tsx +54 -43
- package/src/scenarios/custom-tooltip-width.tsx +11 -1
- package/src/scenarios/disabled-interactive-elements.tsx +1 -0
- package/src/scenarios/focus-elements.tsx +10 -2
- package/src/scenarios/inputs-get-value.tsx +1 -1
- package/src/scenarios/static-form.tsx +1 -1
- package/dist/3454.js +0 -2
- package/dist/5168.js.LICENSE.txt +0 -3
- package/src/components/accordion/list.tsx +0 -45
- package/src/components/button/hide-label.tsx +0 -41
- package/src/components/card/confirm.tsx +0 -28
- package/src/components/card/flex.tsx +0 -44
- package/src/components/card/selection.tsx +0 -83
- package/src/components/input-radio/select.tsx +0 -25
- package/src/components/input-text/blur.tsx +0 -21
- package/src/components/table/badge-size.tsx +0 -66
- package/src/components/textarea/disabled.tsx +0 -22
- package/src/components/textarea/placeholder.tsx +0 -17
- package/src/components/textarea/readonly.tsx +0 -22
- /package/dist/{3454.js.LICENSE.txt → 6787.js.LICENSE.txt} +0 -0
- /package/dist/{445.js.LICENSE.txt → 788.js.LICENSE.txt} +0 -0
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { KolButton, KolCard, KolInputCheckbox } from '@public-ui/react';
|
|
4
|
-
|
|
5
|
-
import type { FC } from 'react';
|
|
6
|
-
import { SampleDescription } from '../SampleDescription';
|
|
7
|
-
|
|
8
|
-
const STYLE = {
|
|
9
|
-
display: 'flex',
|
|
10
|
-
justifyContent: 'space-between',
|
|
11
|
-
alignItems: 'center',
|
|
12
|
-
gap: '.5rem',
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export const CardSelection: FC = () => (
|
|
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">
|
|
22
|
-
<div>
|
|
23
|
-
<div>
|
|
24
|
-
TeCorp Endplatte
|
|
25
|
-
<br />
|
|
26
|
-
VZTA
|
|
27
|
-
</div>
|
|
28
|
-
<div>
|
|
29
|
-
<div>
|
|
30
|
-
<img alt="Darstellung des KoliBri-Theming" src="abgrenzung.jpg" width="100%" />
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
<div>
|
|
34
|
-
<div style={STYLE}>
|
|
35
|
-
<KolInputCheckbox _label={`Auswählen`} />
|
|
36
|
-
<KolButton _variant="primary" _label="Öffnen"></KolButton>
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
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">
|
|
42
|
-
<div>
|
|
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
|
-
</div>
|
|
53
|
-
<div>
|
|
54
|
-
<div style={STYLE}>
|
|
55
|
-
<KolInputCheckbox _label={`Auswählen`} />
|
|
56
|
-
<KolButton _variant="primary" _label="Öffnen"></KolButton>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
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">
|
|
62
|
-
<div>
|
|
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>
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
80
|
-
</KolCard>
|
|
81
|
-
</div>
|
|
82
|
-
</>
|
|
83
|
-
);
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { KolForm, KolInputRadio } from '@public-ui/react';
|
|
4
|
-
|
|
5
|
-
import { ERROR_MSG } from '../../shares/constants';
|
|
6
|
-
import { SampleDescription } from '../SampleDescription';
|
|
7
|
-
|
|
8
|
-
import type { FC } from 'react';
|
|
9
|
-
|
|
10
|
-
const options = [
|
|
11
|
-
{ label: 'Frau', value: 'Frau' },
|
|
12
|
-
{ disabled: true, label: 'Herr (disabled)', value: 'Herr' },
|
|
13
|
-
{ label: 'Firma', value: 'Firma' },
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
export const InputRadioSelect: FC = () => (
|
|
17
|
-
<>
|
|
18
|
-
<SampleDescription>
|
|
19
|
-
<p>Hier ist ein Beispiel Radio-Button. Nur eine gleichzeitige Auswahl ist möglich. </p>
|
|
20
|
-
</SampleDescription>
|
|
21
|
-
<KolForm className="grid gap-4">
|
|
22
|
-
<KolInputRadio _msg={{ _type: 'error', _description: ERROR_MSG }} _options={options} _label="Anrede" />
|
|
23
|
-
</KolForm>
|
|
24
|
-
</>
|
|
25
|
-
);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { KolForm, KolInputText } from '@public-ui/react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { SampleDescription } from '../SampleDescription';
|
|
4
|
-
import type { FC } from 'react';
|
|
5
|
-
|
|
6
|
-
export const InputTextBlur: FC = () => (
|
|
7
|
-
<>
|
|
8
|
-
<SampleDescription>
|
|
9
|
-
<p>Hier ist ein Freitexteingabefeld. </p>
|
|
10
|
-
</SampleDescription>
|
|
11
|
-
<KolForm>
|
|
12
|
-
<KolInputText
|
|
13
|
-
_on={{
|
|
14
|
-
onBlur: console.log,
|
|
15
|
-
}}
|
|
16
|
-
_type="search"
|
|
17
|
-
_label="Suche"
|
|
18
|
-
/>
|
|
19
|
-
</KolForm>
|
|
20
|
-
</>
|
|
21
|
-
);
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import type { FC } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
import { KolBadge, KolTable } from '@public-ui/react';
|
|
5
|
-
|
|
6
|
-
import { getRoot } from '../../shares/react-roots';
|
|
7
|
-
import type { Data } from './test-data';
|
|
8
|
-
import { DATA } from './test-data';
|
|
9
|
-
import { SampleDescription } from '../SampleDescription';
|
|
10
|
-
|
|
11
|
-
import type { KoliBriTableHeaders } from '@public-ui/components';
|
|
12
|
-
|
|
13
|
-
const DATE_FORMATTER = Intl.DateTimeFormat('de-DE', {
|
|
14
|
-
day: '2-digit',
|
|
15
|
-
month: '2-digit',
|
|
16
|
-
year: 'numeric',
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
const HEADERS: KoliBriTableHeaders = {
|
|
20
|
-
horizontal: [
|
|
21
|
-
[
|
|
22
|
-
{ label: 'order', key: 'order', textAlign: 'center', width: '10em' },
|
|
23
|
-
{
|
|
24
|
-
label: 'date',
|
|
25
|
-
key: 'date',
|
|
26
|
-
textAlign: 'center',
|
|
27
|
-
width: '20em',
|
|
28
|
-
render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as Data).date),
|
|
29
|
-
sort: (data) =>
|
|
30
|
-
data.sort((data0, data1) => {
|
|
31
|
-
if ((data0 as Data).date < (data1 as Data).date) return -1;
|
|
32
|
-
else if ((data1 as Data).date < (data0 as Data).date) return 1;
|
|
33
|
-
else return 0;
|
|
34
|
-
}),
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
label: 'Aktion',
|
|
38
|
-
key: 'order',
|
|
39
|
-
render: (el) => {
|
|
40
|
-
getRoot(el).render(
|
|
41
|
-
<KolBadge
|
|
42
|
-
style={{
|
|
43
|
-
backgroundColor: 'red',
|
|
44
|
-
width: '80%',
|
|
45
|
-
}}
|
|
46
|
-
_icons="codicon codicon-location"
|
|
47
|
-
_label={'Speichern'}
|
|
48
|
-
/>,
|
|
49
|
-
);
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
],
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export const TableBadgeSize: FC = () => (
|
|
57
|
-
<>
|
|
58
|
-
<SampleDescription>
|
|
59
|
-
<p>
|
|
60
|
-
Hier ist eine Tabelle, die durch anklicken des Knopfes sortiert werden kann. Entweder nach der Reihenfolge, nach dem ältesten Datum oder nach dem
|
|
61
|
-
jüngsten Datum.
|
|
62
|
-
</p>
|
|
63
|
-
</SampleDescription>
|
|
64
|
-
<KolTable _label="Sort a date column" _data={DATA} _headers={HEADERS} className="block min-w-75em" />
|
|
65
|
-
</>
|
|
66
|
-
);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { KolForm, KolTextarea } from '@public-ui/react';
|
|
4
|
-
|
|
5
|
-
import type { FC } from 'react';
|
|
6
|
-
import { SampleDescription } from '../SampleDescription';
|
|
7
|
-
|
|
8
|
-
export const TextareaDisabled: FC = () => (
|
|
9
|
-
<>
|
|
10
|
-
<SampleDescription>
|
|
11
|
-
<p>Hier ist ein Beispiel für ein deaktiviertes Textfeld.</p>
|
|
12
|
-
</SampleDescription>
|
|
13
|
-
<KolForm>
|
|
14
|
-
<KolTextarea
|
|
15
|
-
_disabled
|
|
16
|
-
_msg={{ _type: 'error', _description: 'Es ist ein Fehler aufgetreten' }}
|
|
17
|
-
_value="Kleiner Text im Eingabefeld ..."
|
|
18
|
-
_label="Texteingabe"
|
|
19
|
-
/>
|
|
20
|
-
</KolForm>
|
|
21
|
-
</>
|
|
22
|
-
);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { KolForm, KolTextarea } from '@public-ui/react';
|
|
4
|
-
|
|
5
|
-
import type { FC } from 'react';
|
|
6
|
-
import { SampleDescription } from '../SampleDescription';
|
|
7
|
-
|
|
8
|
-
export const TextareaPlaceholder: FC = () => (
|
|
9
|
-
<>
|
|
10
|
-
<SampleDescription>
|
|
11
|
-
<p>Hier ist ein Beispiel für ein Freitextfeld mit Platzhaltertext.</p>
|
|
12
|
-
</SampleDescription>
|
|
13
|
-
<KolForm>
|
|
14
|
-
<KolTextarea _placeholder="Hier steht ein Platzhaltertext" _label="Texteingabe" />
|
|
15
|
-
</KolForm>
|
|
16
|
-
</>
|
|
17
|
-
);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { KolForm, KolTextarea } from '@public-ui/react';
|
|
4
|
-
|
|
5
|
-
import type { FC } from 'react';
|
|
6
|
-
import { SampleDescription } from '../SampleDescription';
|
|
7
|
-
|
|
8
|
-
export const TextareaReadOnly: FC = () => (
|
|
9
|
-
<>
|
|
10
|
-
<SampleDescription>
|
|
11
|
-
<p>Hier ist ein Beispiel für ein Textfeld, in das nicht geschrieben werden kann.</p>
|
|
12
|
-
</SampleDescription>
|
|
13
|
-
<KolForm>
|
|
14
|
-
<KolTextarea
|
|
15
|
-
_msg={{ _type: 'error', _description: 'Es ist ein Fehler aufgetreten' }}
|
|
16
|
-
_readOnly
|
|
17
|
-
_value="Kleiner Text im Eingabefeld ..."
|
|
18
|
-
_label="Texteingabe"
|
|
19
|
-
/>
|
|
20
|
-
</KolForm>
|
|
21
|
-
</>
|
|
22
|
-
);
|
|
File without changes
|
|
File without changes
|