@public-ui/sample-react 2.0.8 → 2.0.10
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/1051.js +2 -0
- package/dist/1278.js +2 -0
- package/dist/1499.js +2 -0
- package/dist/1502.js +2 -0
- package/dist/1517.js +2 -0
- package/dist/1699.js +2 -0
- package/dist/1731.js +2 -0
- package/dist/1848.js +2 -0
- package/dist/1940.js +2 -0
- package/dist/2015.js +2 -0
- package/dist/2156.js +2 -0
- package/dist/2182.js +2 -0
- package/dist/{3384.js → 2186.js} +2 -2
- package/dist/2439.js +2 -0
- package/dist/2563.js +2 -0
- package/dist/2619.js +2 -0
- package/dist/2624.js +2 -0
- package/dist/2671.js +2 -0
- package/dist/2926.js +2 -0
- package/dist/3028.js +2 -0
- package/dist/{2984.js → 3073.js} +2 -2
- package/dist/351.js +2 -0
- package/dist/3625.js +2 -0
- package/dist/4619.js +2 -0
- package/dist/{9340.js → 4627.js} +2 -2
- package/dist/4937.js +2 -0
- package/dist/5172.js +2 -0
- package/dist/528.js +2 -0
- package/dist/5342.js +2 -0
- package/dist/5431.js +2 -0
- package/dist/5784.js +2 -0
- package/dist/5896.js +2 -0
- package/dist/6114.js +2 -0
- package/dist/6329.js +2 -0
- package/dist/6357.js +2 -0
- package/dist/6511.js +2 -0
- package/dist/7086.js +2 -0
- package/dist/710.js +2 -0
- package/dist/7160.js +2 -0
- package/dist/7240.js +2 -0
- package/dist/7435.js +2 -0
- package/dist/7628.js +2 -0
- package/dist/7732.js +2 -0
- package/dist/7748.js +2 -0
- package/dist/7950.js +2 -0
- package/dist/7986.js +2 -0
- package/dist/8240.js +2 -0
- package/dist/8247.js +2 -0
- package/dist/8256.js +2 -0
- package/dist/8494.js +2 -0
- package/dist/8507.js +2 -0
- package/dist/{6476.js → 9014.js} +2 -2
- package/dist/9035.js +2 -0
- package/dist/9094.js +2 -0
- package/dist/9179.js +2 -0
- package/dist/9183.js +2 -0
- package/dist/{9224.js → 9190.js} +2 -2
- package/dist/9237.js +2 -0
- package/dist/9246.js +2 -0
- package/dist/9424.js +1 -1
- package/dist/9456.js +2 -0
- package/dist/9483.js +2 -0
- package/dist/9485.js +2 -0
- package/dist/9528.js +2 -0
- package/dist/9622.js +2 -0
- package/dist/97.js +2 -0
- package/dist/9758.js +2 -0
- package/dist/9758.js.LICENSE.txt +3 -0
- package/dist/9829.js +2 -0
- package/dist/9829.js.LICENSE.txt +3 -0
- package/dist/9918.js +2 -0
- package/dist/9918.js.LICENSE.txt +3 -0
- package/dist/{6112.js → 9993.js} +2 -2
- package/dist/9993.js.LICENSE.txt +3 -0
- package/dist/main.css +1 -1
- package/dist/main.js +1 -17750
- package/dist/main.js.LICENSE.txt +2 -2
- package/package.json +16 -16
- package/src/App.tsx +7 -6
- 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 +59 -28
- 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/partials/cases.tsx +1 -1
- package/src/components/input-checkbox/switch.tsx +16 -3
- package/src/components/input-color/basic.tsx +12 -1
- package/src/components/input-color/partials/cases.tsx +8 -2
- package/src/components/input-date/basic.tsx +14 -1
- package/src/components/input-date/partials/cases.tsx +9 -1
- package/src/components/input-email/basic.tsx +9 -1
- package/src/components/input-email/partials/cases.tsx +2 -2
- package/src/components/input-file/basic.tsx +12 -1
- package/src/components/input-file/partials/cases.tsx +2 -2
- package/src/components/input-number/partials/cases.tsx +1 -1
- package/src/components/input-password/basic.tsx +9 -1
- package/src/components/input-password/partials/cases.tsx +2 -2
- package/src/components/input-password/show-password.tsx +28 -19
- package/src/components/input-radio/basic.tsx +9 -1
- package/src/components/input-radio/objectValue.tsx +37 -0
- package/src/components/input-radio/partials/cases.tsx +2 -2
- package/src/components/input-radio/routes.ts +2 -0
- package/src/components/input-radio/select.tsx +9 -3
- package/src/components/input-range/basic.tsx +9 -1
- package/src/components/input-range/partials/cases.tsx +12 -2
- 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/input-text/hide-errors.tsx +3 -3
- package/src/components/input-text/partials/cases.tsx +4 -4
- 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/nav/links.ts +18 -2
- 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/select/partials/cases.tsx +10 -2
- package/src/components/spin/basic.tsx +9 -1
- package/src/components/spin/custom.tsx +12 -3
- package/src/components/spin/cycle.tsx +9 -1
- package/src/components/split-button/basic.tsx +18 -9
- 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 +13 -1
- package/src/components/textarea/disabled.tsx +14 -3
- package/src/components/textarea/partials/cases.tsx +1 -1
- package/src/components/textarea/placeholder.tsx +9 -3
- package/src/components/textarea/readonly.tsx +14 -3
- package/src/components/textarea/resize.tsx +13 -7
- package/src/components/textarea/rows.tsx +9 -3
- package/src/components/toast/basic.tsx +18 -12
- package/src/components/version/basic.tsx +9 -2
- package/src/components/version/context.tsx +11 -5
- package/src/react.main.tsx +44 -18
- package/src/scenarios/appointment-form/AvailableAppointmentsForm.tsx +11 -4
- package/src/scenarios/appointment-form/DistrictForm.tsx +9 -2
- package/src/scenarios/appointment-form/PersonalInformationForm.tsx +8 -2
- package/src/scenarios/appointment-form/formUtils.ts +6 -0
- package/src/scenarios/routes.ts +0 -2
- package/src/scenarios/static-form.tsx +15 -0
- package/src/shares/store.ts +5 -5
- package/src/shares/theme.ts +6 -5
- package/src/shares/types.ts +1 -1
- package/webpack.config.js +1 -0
- 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/5615.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/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/9680.js +0 -2
- package/dist/9888.js +0 -2
- package/dist/9984.js +0 -2
- package/src/components/abbr/basic.html +0 -6
- package/src/scenarios/complex-form/common/form/component.tsx +0 -25
- package/src/scenarios/complex-form/common/form/types.ts +0 -13
- package/src/scenarios/complex-form/component.tsx +0 -163
- package/src/scenarios/complex-form/kopfdaten/component.tsx +0 -51
- package/src/scenarios/complex-form/location/component.tsx +0 -17
- package/src/scenarios/complex-form/location/location.form.ts +0 -22
- package/src/scenarios/complex-form/schedule/component.tsx +0 -17
- package/src/scenarios/complex-form/schedule/schedule.form.ts +0 -34
- /package/dist/{104.js.LICENSE.txt → 1051.js.LICENSE.txt} +0 -0
- /package/dist/{1296.js.LICENSE.txt → 1278.js.LICENSE.txt} +0 -0
- /package/dist/{1461.js.LICENSE.txt → 1499.js.LICENSE.txt} +0 -0
- /package/dist/{1684.js.LICENSE.txt → 1502.js.LICENSE.txt} +0 -0
- /package/dist/{1685.js.LICENSE.txt → 1517.js.LICENSE.txt} +0 -0
- /package/dist/{1888.js.LICENSE.txt → 1699.js.LICENSE.txt} +0 -0
- /package/dist/{2120.js.LICENSE.txt → 1731.js.LICENSE.txt} +0 -0
- /package/dist/{2240.js.LICENSE.txt → 1848.js.LICENSE.txt} +0 -0
- /package/dist/{2364.js.LICENSE.txt → 1940.js.LICENSE.txt} +0 -0
- /package/dist/{2392.js.LICENSE.txt → 2015.js.LICENSE.txt} +0 -0
- /package/dist/{2444.js.LICENSE.txt → 2156.js.LICENSE.txt} +0 -0
- /package/dist/{2628.js.LICENSE.txt → 2182.js.LICENSE.txt} +0 -0
- /package/dist/{2740.js.LICENSE.txt → 2186.js.LICENSE.txt} +0 -0
- /package/dist/{2764.js.LICENSE.txt → 2439.js.LICENSE.txt} +0 -0
- /package/dist/{2782.js.LICENSE.txt → 2563.js.LICENSE.txt} +0 -0
- /package/dist/{2812.js.LICENSE.txt → 2619.js.LICENSE.txt} +0 -0
- /package/dist/{2984.js.LICENSE.txt → 2624.js.LICENSE.txt} +0 -0
- /package/dist/{3200.js.LICENSE.txt → 2671.js.LICENSE.txt} +0 -0
- /package/dist/{3204.js.LICENSE.txt → 2926.js.LICENSE.txt} +0 -0
- /package/dist/{3384.js.LICENSE.txt → 3028.js.LICENSE.txt} +0 -0
- /package/dist/{352.js.LICENSE.txt → 3073.js.LICENSE.txt} +0 -0
- /package/dist/{3564.js.LICENSE.txt → 351.js.LICENSE.txt} +0 -0
- /package/dist/{3920.js.LICENSE.txt → 3625.js.LICENSE.txt} +0 -0
- /package/dist/{4064.js.LICENSE.txt → 4619.js.LICENSE.txt} +0 -0
- /package/dist/{4544.js.LICENSE.txt → 4627.js.LICENSE.txt} +0 -0
- /package/dist/{4728.js.LICENSE.txt → 4937.js.LICENSE.txt} +0 -0
- /package/dist/{4915.js.LICENSE.txt → 5172.js.LICENSE.txt} +0 -0
- /package/dist/{4988.js.LICENSE.txt → 528.js.LICENSE.txt} +0 -0
- /package/dist/{5376.js.LICENSE.txt → 5342.js.LICENSE.txt} +0 -0
- /package/dist/{5456.js.LICENSE.txt → 5431.js.LICENSE.txt} +0 -0
- /package/dist/{5615.js.LICENSE.txt → 5784.js.LICENSE.txt} +0 -0
- /package/dist/{5628.js.LICENSE.txt → 5896.js.LICENSE.txt} +0 -0
- /package/dist/{5744.js.LICENSE.txt → 6114.js.LICENSE.txt} +0 -0
- /package/dist/{5768.js.LICENSE.txt → 6329.js.LICENSE.txt} +0 -0
- /package/dist/{5839.js.LICENSE.txt → 6357.js.LICENSE.txt} +0 -0
- /package/dist/{5956.js.LICENSE.txt → 6511.js.LICENSE.txt} +0 -0
- /package/dist/{5972.js.LICENSE.txt → 7086.js.LICENSE.txt} +0 -0
- /package/dist/{6040.js.LICENSE.txt → 710.js.LICENSE.txt} +0 -0
- /package/dist/{6112.js.LICENSE.txt → 7160.js.LICENSE.txt} +0 -0
- /package/dist/{6476.js.LICENSE.txt → 7240.js.LICENSE.txt} +0 -0
- /package/dist/{7192.js.LICENSE.txt → 7435.js.LICENSE.txt} +0 -0
- /package/dist/{72.js.LICENSE.txt → 7628.js.LICENSE.txt} +0 -0
- /package/dist/{7312.js.LICENSE.txt → 7732.js.LICENSE.txt} +0 -0
- /package/dist/{736.js.LICENSE.txt → 7748.js.LICENSE.txt} +0 -0
- /package/dist/{7496.js.LICENSE.txt → 7950.js.LICENSE.txt} +0 -0
- /package/dist/{7508.js.LICENSE.txt → 7986.js.LICENSE.txt} +0 -0
- /package/dist/{7596.js.LICENSE.txt → 8240.js.LICENSE.txt} +0 -0
- /package/dist/{7712.js.LICENSE.txt → 8247.js.LICENSE.txt} +0 -0
- /package/dist/{7804.js.LICENSE.txt → 8256.js.LICENSE.txt} +0 -0
- /package/dist/{7808.js.LICENSE.txt → 8494.js.LICENSE.txt} +0 -0
- /package/dist/{8188.js.LICENSE.txt → 8507.js.LICENSE.txt} +0 -0
- /package/dist/{8232.js.LICENSE.txt → 9014.js.LICENSE.txt} +0 -0
- /package/dist/{8248.js.LICENSE.txt → 9035.js.LICENSE.txt} +0 -0
- /package/dist/{828.js.LICENSE.txt → 9094.js.LICENSE.txt} +0 -0
- /package/dist/{8476.js.LICENSE.txt → 9179.js.LICENSE.txt} +0 -0
- /package/dist/{8524.js.LICENSE.txt → 9183.js.LICENSE.txt} +0 -0
- /package/dist/{9072.js.LICENSE.txt → 9190.js.LICENSE.txt} +0 -0
- /package/dist/{9088.js.LICENSE.txt → 9237.js.LICENSE.txt} +0 -0
- /package/dist/{9200.js.LICENSE.txt → 9246.js.LICENSE.txt} +0 -0
- /package/dist/{9224.js.LICENSE.txt → 9456.js.LICENSE.txt} +0 -0
- /package/dist/{9340.js.LICENSE.txt → 9483.js.LICENSE.txt} +0 -0
- /package/dist/{9404.js.LICENSE.txt → 9485.js.LICENSE.txt} +0 -0
- /package/dist/{9680.js.LICENSE.txt → 9528.js.LICENSE.txt} +0 -0
- /package/dist/{9888.js.LICENSE.txt → 9622.js.LICENSE.txt} +0 -0
- /package/dist/{9984.js.LICENSE.txt → 97.js.LICENSE.txt} +0 -0
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
4
|
-
import { FormWrap } from '../FormWrap';
|
|
3
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
4
|
import { InputCheckboxVariants } from './partials/variants';
|
|
5
|
+
import { FormWrap } from '../FormWrap';
|
|
6
6
|
|
|
7
|
-
export const InputCheckboxSwitch: FC = () =>
|
|
7
|
+
export const InputCheckboxSwitch: FC = () => (
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>
|
|
11
|
+
{' '}
|
|
12
|
+
Hier werden verschiedene Checkboxen mit betiteltem Wunschausgangsverhalten angezeigt. Die Checkbox 'Nicht ausgewählt' ist Standardmäßig nicht
|
|
13
|
+
ausgewählt usw. Die Buttons unten haben keine direkte Funktion, außer, dass Sie ausgewählt werden können. Der Unterschied zwischen der linken und
|
|
14
|
+
Rechten Darstellung ist, dass erst nach anklicken im Rechten Teil ein Label angezeigt wird. In diesem Beispiel sind die Checkboxen als Switches
|
|
15
|
+
dargestellt.
|
|
16
|
+
</p>
|
|
17
|
+
</SampleDescription>
|
|
18
|
+
<FormWrap RefComponent={InputCheckboxVariants} _variant="switch" />
|
|
19
|
+
</>
|
|
20
|
+
);
|
|
@@ -3,5 +3,16 @@ import React from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { FormWrap } from '../FormWrap';
|
|
5
5
|
import { InputColorVariants } from './partials/variants';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
|
-
export const InputColorBasic: FC = () =>
|
|
8
|
+
export const InputColorBasic: FC = () => (
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>
|
|
12
|
+
Hier sind verschiedene Formular-Felder mit Farben angezeigt. Links mit Label, Rechts nur nach anklicken mit Label. Die Farben können verändert werden.
|
|
13
|
+
Die Buttons unten haben keine direkte Funktion. Sie können angeklickt werden.{' '}
|
|
14
|
+
</p>
|
|
15
|
+
</SampleDescription>
|
|
16
|
+
<FormWrap RefComponent={InputColorVariants} />
|
|
17
|
+
</>
|
|
18
|
+
);
|
|
@@ -10,14 +10,20 @@ export const InputColorCases = forwardRef<HTMLKolInputColorElement, Components.K
|
|
|
10
10
|
<div className="grid gap-4">
|
|
11
11
|
<KolInputColor
|
|
12
12
|
{...props}
|
|
13
|
-
|
|
13
|
+
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
14
14
|
_icons={{
|
|
15
15
|
left: 'codicon codicon-symbol-color',
|
|
16
16
|
}}
|
|
17
17
|
_label="Color"
|
|
18
18
|
_value="#f08080"
|
|
19
19
|
/>
|
|
20
|
-
<KolInputColor
|
|
20
|
+
<KolInputColor
|
|
21
|
+
{...props}
|
|
22
|
+
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
23
|
+
_label="Color with error"
|
|
24
|
+
_suggestions="['#000000','#f08080', '#0000ff','#00ff00']"
|
|
25
|
+
_touched
|
|
26
|
+
/>
|
|
21
27
|
<KolInputColor {...props} ref={ref} _accessKey="C" _hint="Hint text" _label="Color with hint" _value="#f08080" />
|
|
22
28
|
<KolInputColor {...props} _disabled _label="Color (Disabled)" _value="#f08080" />
|
|
23
29
|
</div>
|
|
@@ -3,5 +3,18 @@ import React from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { FormWrap } from '../FormWrap';
|
|
5
5
|
import { InputDateVariants } from './partials/variants';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
|
-
export const InputDateBasic: FC = () =>
|
|
8
|
+
export const InputDateBasic: FC = () => (
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>
|
|
12
|
+
Hier sieht man ein Formularfeld mit verschiedenen Zeiteingaben. Bei Datumseingabe kann ein Datum in einem Kalender ausgewählt werden, aber auch
|
|
13
|
+
eingetippt werden. Es gibt ein gleiches Verhalten im nächsten Feld. Die Felder Monat und Woche sind Freitextfelder. Im Feld Zeit können nur Werte von 0
|
|
14
|
+
bis 23 und 0 bis 59 angegeben werden. Mit den Feldern Zahleneingabe gibt es keine Interaktionsmöglichekeit. Ein gleiches Verhalten gibt es im Rechten
|
|
15
|
+
Feld, hier werden die Label erst nach anklicken angezeigt.{' '}
|
|
16
|
+
</p>
|
|
17
|
+
</SampleDescription>
|
|
18
|
+
<FormWrap RefComponent={InputDateVariants} />
|
|
19
|
+
</>
|
|
20
|
+
);
|
|
@@ -10,7 +10,15 @@ export const InputDateCases = forwardRef<HTMLKolInputDateElement, Components.Kol
|
|
|
10
10
|
<div className="grid gap-4">
|
|
11
11
|
<KolInputDate {...props} _type="date" _label="Datumseingabe" _required />
|
|
12
12
|
<KolInputDate {...props} _type="datetime-local" _label="Local-Datetime (Standard)" _required />
|
|
13
|
-
<KolInputDate
|
|
13
|
+
<KolInputDate
|
|
14
|
+
{...props}
|
|
15
|
+
_step={1}
|
|
16
|
+
_type="datetime-local"
|
|
17
|
+
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
18
|
+
_label="Local-Datetime (mit Sekunden)"
|
|
19
|
+
_required
|
|
20
|
+
_touched
|
|
21
|
+
/>
|
|
14
22
|
<KolInputDate {...props} _type="month" _label="Monat" _required />
|
|
15
23
|
<KolInputDate {...props} ref={ref} _accessKey="W" _type="week" _label="Woche" _required />
|
|
16
24
|
<KolInputDate {...props} _type="time" _label="Zeit (Standard)" _required />
|
|
@@ -3,5 +3,13 @@ import React from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { FormWrap } from '../FormWrap';
|
|
5
5
|
import { InputEmailVariants } from './partials/variants';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
|
-
export const InputEmailBasic: FC = () =>
|
|
8
|
+
export const InputEmailBasic: FC = () => (
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>Hier verstehe ich es nicht. (Fehlermeldung bei Standard.) </p>
|
|
12
|
+
</SampleDescription>
|
|
13
|
+
<FormWrap RefComponent={InputEmailVariants} />
|
|
14
|
+
</>
|
|
15
|
+
);
|
|
@@ -8,7 +8,7 @@ import type { Components } from '@public-ui/components';
|
|
|
8
8
|
export const InputEmailCases = forwardRef<HTMLKolInputEmailElement, Components.KolInputEmail>(function InputEmailCases(props, ref) {
|
|
9
9
|
return (
|
|
10
10
|
<div className="grid gap-4">
|
|
11
|
-
<KolInputEmail {...props} _required _value="test@mail.de"
|
|
11
|
+
<KolInputEmail {...props} _required _value="test@mail.de" _msg={{ _type: 'error', _description: ERROR_MSG }} _label="E-Mail" />
|
|
12
12
|
<KolInputEmail
|
|
13
13
|
{...props}
|
|
14
14
|
ref={ref}
|
|
@@ -16,7 +16,7 @@ export const InputEmailCases = forwardRef<HTMLKolInputEmailElement, Components.K
|
|
|
16
16
|
_placeholder="elke@mustermann.de"
|
|
17
17
|
_suggestions="['test1@mail.de', 'test2@mail.de', 'test3@mail.de']"
|
|
18
18
|
_label="E-Mail (Liste)"
|
|
19
|
-
|
|
19
|
+
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
20
20
|
_touched
|
|
21
21
|
_icons={{
|
|
22
22
|
left: {
|
|
@@ -3,5 +3,16 @@ import React from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { FormWrap } from '../FormWrap';
|
|
5
5
|
import { InputFileVariants } from './partials/variants';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
|
-
export const InputFileBasic: FC = () =>
|
|
8
|
+
export const InputFileBasic: FC = () => (
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>
|
|
12
|
+
Hier können einzelne oder mehrere Files ausgewählt werden. Bei 'Datei hochladen' wird der Name der ausgewählten Datei angezeigt. Bei
|
|
13
|
+
'Datei hochladen (Multiple)' werden die Anzahl der ausgewählten Dateien angezeigt.
|
|
14
|
+
</p>
|
|
15
|
+
</SampleDescription>
|
|
16
|
+
<FormWrap RefComponent={InputFileVariants} />
|
|
17
|
+
</>
|
|
18
|
+
);
|
|
@@ -11,7 +11,7 @@ export const InputFileCases = forwardRef<HTMLKolInputFileElement, Components.Kol
|
|
|
11
11
|
<KolInputFile
|
|
12
12
|
{...props}
|
|
13
13
|
_required
|
|
14
|
-
|
|
14
|
+
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
15
15
|
_label="Datei hochladen"
|
|
16
16
|
_icons={{
|
|
17
17
|
left: {
|
|
@@ -20,7 +20,7 @@ export const InputFileCases = forwardRef<HTMLKolInputFileElement, Components.Kol
|
|
|
20
20
|
}}
|
|
21
21
|
_touched
|
|
22
22
|
/>
|
|
23
|
-
<KolInputFile {...props} ref={ref} _accessKey="h" _multiple
|
|
23
|
+
<KolInputFile {...props} ref={ref} _accessKey="h" _multiple _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Datei hochladen (Multiple)" />
|
|
24
24
|
<KolInputFile {...props} _disabled _label="Datei hochladen (Disabled)" />
|
|
25
25
|
</div>
|
|
26
26
|
);
|
|
@@ -11,7 +11,7 @@ export const InputNumberCases = forwardRef<HTMLKolInputNumberElement, Components
|
|
|
11
11
|
<KolInputNumber
|
|
12
12
|
{...props}
|
|
13
13
|
_required
|
|
14
|
-
|
|
14
|
+
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
15
15
|
_touched
|
|
16
16
|
_placeholder="Mit Icons"
|
|
17
17
|
_label="Zahleneingabe"
|
|
@@ -3,5 +3,13 @@ import React from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { FormWrap } from '../FormWrap';
|
|
5
5
|
import { InputPasswordVariants } from './partials/variants';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
|
-
export const InputPasswordBasic: FC = () =>
|
|
8
|
+
export const InputPasswordBasic: FC = () => (
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>Hier sind Passwort Eingabefelder dargestellt. Im Feld 'Passwort P' eingegebene Zeichen werden verdeckt angezeigt.</p>
|
|
12
|
+
</SampleDescription>
|
|
13
|
+
<FormWrap RefComponent={InputPasswordVariants} />
|
|
14
|
+
</>
|
|
15
|
+
);
|
|
@@ -8,14 +8,14 @@ import type { Components } from '@public-ui/components';
|
|
|
8
8
|
export const InputPasswordCases = forwardRef<HTMLKolInputPasswordElement, Components.KolInputPassword>(function InputPasswordCases(props, ref) {
|
|
9
9
|
return (
|
|
10
10
|
<div className="grid gap-4">
|
|
11
|
-
<KolInputPassword {...props} _disabled
|
|
11
|
+
<KolInputPassword {...props} _disabled _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Passwort (Disabled)" _touched />
|
|
12
12
|
<KolInputPassword {...props} _readOnly _label="Passwort (Readonly)" />
|
|
13
13
|
<KolInputPassword
|
|
14
14
|
{...props}
|
|
15
15
|
ref={ref}
|
|
16
16
|
_accessKey="P"
|
|
17
17
|
_required
|
|
18
|
-
|
|
18
|
+
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
19
19
|
_placeholder="Mit Icons"
|
|
20
20
|
_label="Passwort"
|
|
21
21
|
_icons={{
|
|
@@ -2,6 +2,7 @@ import type { FC } from 'react';
|
|
|
2
2
|
import React, { useEffect, useRef, useState } from 'react';
|
|
3
3
|
|
|
4
4
|
import { KolForm, KolInputPassword } from '@public-ui/react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const InputPasswordShowPassword: FC = () => {
|
|
7
8
|
const [isPasswordVisible, setIsPasswordVisible] = useState(false);
|
|
@@ -17,25 +18,33 @@ export const InputPasswordShowPassword: FC = () => {
|
|
|
17
18
|
}, [isPasswordVisible]);
|
|
18
19
|
|
|
19
20
|
return (
|
|
20
|
-
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
<>
|
|
22
|
+
<SampleDescription>
|
|
23
|
+
<p>
|
|
24
|
+
Hier wird ein Passwort Eingabefeld angezeigt. Durch klicken auf den im Feld Rechts stehenden Button, kann zwischen verdecktem und angezeigtem Passwort
|
|
25
|
+
gewechselt werden.
|
|
26
|
+
</p>
|
|
27
|
+
</SampleDescription>
|
|
28
|
+
<KolForm>
|
|
29
|
+
<KolInputPassword
|
|
30
|
+
_placeholder="Mit 'Passwort anzeigen' Button"
|
|
31
|
+
_label="Passwort"
|
|
32
|
+
ref={passwordRef}
|
|
33
|
+
_smartButton={{
|
|
34
|
+
_icons: {
|
|
35
|
+
left: {
|
|
36
|
+
icon: 'codicon codicon-eye',
|
|
37
|
+
},
|
|
29
38
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
_hideLabel: true,
|
|
40
|
+
_label: `Passwort ${isPasswordVisible ? 'ausblenden' : 'einblenden'}`,
|
|
41
|
+
_on: {
|
|
42
|
+
onClick: handleTogglePasswordClick,
|
|
43
|
+
},
|
|
44
|
+
}}
|
|
45
|
+
className="block"
|
|
46
|
+
/>
|
|
47
|
+
</KolForm>
|
|
48
|
+
</>
|
|
40
49
|
);
|
|
41
50
|
};
|
|
@@ -3,5 +3,13 @@ import React from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { FormWrap } from '../FormWrap';
|
|
5
5
|
import { InputRadioVariants } from './partials/variants';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
|
-
export const InputRadioBasic: FC = () =>
|
|
8
|
+
export const InputRadioBasic: FC = () => (
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>Hier sind Radio-Buttons in verschiedenen Ausführungen angezeigt. Es kann immer nur einer der drei Radio-Buttons gleichzeitig angeklickt werden.</p>
|
|
12
|
+
</SampleDescription>
|
|
13
|
+
<FormWrap RefComponent={InputRadioVariants} />
|
|
14
|
+
</>
|
|
15
|
+
);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
import { KolForm, KolInputRadio } from '@public-ui/react';
|
|
5
|
+
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
7
|
+
|
|
8
|
+
export const InputRadioObjectValue: FC = () => {
|
|
9
|
+
const options = [
|
|
10
|
+
{ label: 'Field 1', value: { id: 1, name: 'Option 1' } },
|
|
11
|
+
{ label: 'Field 2', value: { id: 2, name: 'Option 2' } },
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<div className="grid gap-4">
|
|
16
|
+
<SampleDescription>
|
|
17
|
+
Examples of implementing the <code>KolInputRadio</code> component with object-based preselected value and undefined value.
|
|
18
|
+
</SampleDescription>
|
|
19
|
+
<p>
|
|
20
|
+
In this example for <code>KolInputRadio</code>, the values of the options are defined as objects.
|
|
21
|
+
</p>
|
|
22
|
+
<KolForm>
|
|
23
|
+
<div className="container my-4 d-grid gap-4">
|
|
24
|
+
<KolInputRadio _value={options[1].value} _options={options} _label="Test(with object value)" />
|
|
25
|
+
</div>
|
|
26
|
+
</KolForm>
|
|
27
|
+
<p>
|
|
28
|
+
In this example for <code>KolInputRadio</code>, no value is set.
|
|
29
|
+
</p>
|
|
30
|
+
<KolForm>
|
|
31
|
+
<div className="container my-4 d-grid gap-4">
|
|
32
|
+
<KolInputRadio _options={options} _label="Test(without value)" />
|
|
33
|
+
</div>
|
|
34
|
+
</KolForm>
|
|
35
|
+
</div>
|
|
36
|
+
);
|
|
37
|
+
};
|
|
@@ -16,7 +16,7 @@ export const InputRadioCases = forwardRef<HTMLKolInputRadioElement, Components.K
|
|
|
16
16
|
<KolInputRadio
|
|
17
17
|
{...props}
|
|
18
18
|
_required
|
|
19
|
-
|
|
19
|
+
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
20
20
|
_touched
|
|
21
21
|
_value="Firma"
|
|
22
22
|
_options="[{'label':'Frau','value':'Frau'},{'disabled':true,'label':'Herr (disabled)','value':'Herr'},{'label':'Firma','value':'Firma'}]"
|
|
@@ -37,7 +37,7 @@ export const InputRadioCases = forwardRef<HTMLKolInputRadioElement, Components.K
|
|
|
37
37
|
_disabled
|
|
38
38
|
_orientation="horizontal"
|
|
39
39
|
_required
|
|
40
|
-
|
|
40
|
+
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
41
41
|
_touched
|
|
42
42
|
_value="Firma"
|
|
43
43
|
_options="[{'label':'Frau','value':'Frau'},{'disabled':true,'label':'Herr (disabled)'},{'label':'Firma','value':'Firma'}]"
|
|
@@ -2,11 +2,13 @@ import { Routes } from '../../shares/types';
|
|
|
2
2
|
import { InputRadioBasic } from './basic';
|
|
3
3
|
import { InputRadioHorizontal } from './horizontal';
|
|
4
4
|
import { InputRadioSelect } from './select';
|
|
5
|
+
import { InputRadioObjectValue } from './objectValue';
|
|
5
6
|
|
|
6
7
|
export const INPUT_RADIO_ROUTES: Routes = {
|
|
7
8
|
'input-radio': {
|
|
8
9
|
basic: InputRadioBasic,
|
|
9
10
|
horizontal: InputRadioHorizontal,
|
|
10
11
|
select: InputRadioSelect,
|
|
12
|
+
object: InputRadioObjectValue,
|
|
11
13
|
},
|
|
12
14
|
};
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { KolForm, KolInputRadio } from '@public-ui/react';
|
|
4
4
|
|
|
5
5
|
import { ERROR_MSG } from '../../shares/constants';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
8
|
import type { FC } from 'react';
|
|
8
9
|
|
|
@@ -13,7 +14,12 @@ const options = [
|
|
|
13
14
|
];
|
|
14
15
|
|
|
15
16
|
export const InputRadioSelect: FC = () => (
|
|
16
|
-
|
|
17
|
-
<
|
|
18
|
-
|
|
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
|
+
</>
|
|
19
25
|
);
|
|
@@ -3,5 +3,13 @@ import React from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { FormWrap } from '../FormWrap';
|
|
5
5
|
import { InputRangeVariants } from './partials/variants';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
|
-
export const InputRangeBasic: FC = () =>
|
|
8
|
+
export const InputRangeBasic: FC = () => (
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>Hier ist ein Schieberegler mit Schalter am Rand. Der Wert kann von 0 bis 50 verändert werden.</p>
|
|
12
|
+
</SampleDescription>
|
|
13
|
+
<FormWrap RefComponent={InputRangeVariants} />
|
|
14
|
+
</>
|
|
15
|
+
);
|
|
@@ -12,7 +12,7 @@ export const InputRangeCases = forwardRef<HTMLKolInputRangeElement, Components.K
|
|
|
12
12
|
{...props}
|
|
13
13
|
_min={0}
|
|
14
14
|
_max={50}
|
|
15
|
-
|
|
15
|
+
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
16
16
|
_label="Schieberegler"
|
|
17
17
|
_icons={{
|
|
18
18
|
left: {
|
|
@@ -24,7 +24,17 @@ export const InputRangeCases = forwardRef<HTMLKolInputRangeElement, Components.K
|
|
|
24
24
|
}}
|
|
25
25
|
_touched
|
|
26
26
|
/>
|
|
27
|
-
<KolInputRange
|
|
27
|
+
<KolInputRange
|
|
28
|
+
{...props}
|
|
29
|
+
ref={ref}
|
|
30
|
+
_accessKey="F"
|
|
31
|
+
_min={0}
|
|
32
|
+
_max={50}
|
|
33
|
+
_step={10}
|
|
34
|
+
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
35
|
+
_label="Schieberegler mit Fehler"
|
|
36
|
+
_touched
|
|
37
|
+
/>
|
|
28
38
|
<KolInputRange {...props} _disabled _min={0} _max={50} _label="Schieberegler (disabled)" />
|
|
29
39
|
</div>
|
|
30
40
|
);
|
|
@@ -3,5 +3,13 @@ import React from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { FormWrap } from '../FormWrap';
|
|
5
5
|
import { InputTextVariants } from './partials/variants';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
|
-
export const InputTextBasic: FC = () =>
|
|
8
|
+
export const InputTextBasic: FC = () => (
|
|
9
|
+
<>
|
|
10
|
+
<SampleDescription>
|
|
11
|
+
<p>Hier sind verschiedene Freitexteingabefelder.</p>
|
|
12
|
+
</SampleDescription>
|
|
13
|
+
<FormWrap RefComponent={InputTextVariants} />
|
|
14
|
+
</>
|
|
15
|
+
);
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
1
|
import { KolForm, KolInputText } from '@public-ui/react';
|
|
4
|
-
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
4
|
import type { FC } from 'react';
|
|
5
|
+
|
|
6
6
|
export const InputTextBlur: FC = () => (
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
+
</>
|
|
16
21
|
);
|
|
@@ -3,6 +3,7 @@ import React, { useLayoutEffect, useRef } from 'react';
|
|
|
3
3
|
import { KolButton, KolForm, KolInputText } from '@public-ui/react';
|
|
4
4
|
|
|
5
5
|
import type { FC } from 'react';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
8
|
export const InputTextFocus: FC = () => {
|
|
8
9
|
const ref = useRef<HTMLKolInputTextElement | null>(null);
|
|
@@ -14,14 +15,19 @@ export const InputTextFocus: FC = () => {
|
|
|
14
15
|
}, [ref]);
|
|
15
16
|
|
|
16
17
|
return (
|
|
17
|
-
|
|
18
|
-
<
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
<>
|
|
19
|
+
<SampleDescription>
|
|
20
|
+
<p>Hier sind zwei Freitexteingabefelder.</p>
|
|
21
|
+
</SampleDescription>
|
|
22
|
+
<KolForm>
|
|
23
|
+
<div className="grid gap-4">
|
|
24
|
+
<KolInputText ref={ref} _label="Vorname" />
|
|
25
|
+
<KolInputText _label="Nachname" />
|
|
26
|
+
<div>
|
|
27
|
+
<KolButton _label="Submit"></KolButton>
|
|
28
|
+
</div>
|
|
23
29
|
</div>
|
|
24
|
-
</
|
|
25
|
-
|
|
30
|
+
</KolForm>
|
|
31
|
+
</>
|
|
26
32
|
);
|
|
27
33
|
};
|
|
@@ -9,7 +9,7 @@ export const InputTextHideErrors: FC = () => (
|
|
|
9
9
|
This case shows the <code>_hideError</code> feature in the se. You can use the <code>_error</code> prop to show an error message.
|
|
10
10
|
</SampleDescription>
|
|
11
11
|
<KolCard _label="Normal input field with error" _level={0}>
|
|
12
|
-
<KolInputText
|
|
12
|
+
<KolInputText _msg={{ _type: 'error', _description: 'Error message' }} _label="Input with error" _touched />
|
|
13
13
|
</KolCard>
|
|
14
14
|
<KolCard _label="Input field with hidden error" _level={0}>
|
|
15
15
|
<fieldset className="grid md:grid-cols-2 gap-4">
|
|
@@ -17,8 +17,8 @@ export const InputTextHideErrors: FC = () => (
|
|
|
17
17
|
<KolAlert className="col-span-2" _level={0} _type="error">
|
|
18
18
|
This is a combined error message
|
|
19
19
|
</KolAlert>
|
|
20
|
-
<KolInputText
|
|
21
|
-
<KolInputText
|
|
20
|
+
<KolInputText _msg={{ _type: 'error', _description: 'This is a combined error message' }} _hideError _label="First input" _touched />
|
|
21
|
+
<KolInputText _msg={{ _type: 'error', _description: 'This is a combined error message' }} _hideError _label="Second input with error" _touched />
|
|
22
22
|
</fieldset>
|
|
23
23
|
</KolCard>
|
|
24
24
|
</div>
|
|
@@ -11,7 +11,7 @@ export const InputTextCases = forwardRef<HTMLKolInputTextElement, Components.Kol
|
|
|
11
11
|
<KolInputText
|
|
12
12
|
{...props}
|
|
13
13
|
_hint={HINT_MSG}
|
|
14
|
-
|
|
14
|
+
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
15
15
|
_placeholder="Mit Icons"
|
|
16
16
|
_icons={{
|
|
17
17
|
right: {
|
|
@@ -34,9 +34,9 @@ export const InputTextCases = forwardRef<HTMLKolInputTextElement, Components.Kol
|
|
|
34
34
|
_accessKey="V"
|
|
35
35
|
ref={ref}
|
|
36
36
|
/>
|
|
37
|
-
<KolInputText {...props} _placeholder="Placeholder" _label="Suche (search)" _type="search" />
|
|
38
|
-
<KolInputText {...props} _placeholder="Placeholder"
|
|
39
|
-
<KolInputText {...props} _placeholder="Placeholder" _type="tel" _label="Telefon (tel)" />
|
|
37
|
+
<KolInputText {...props} _placeholder="Placeholder" _msg={{ _type: 'info', _description: 'Nur ein Hinweis' }} _label="Suche (search)" _type="search" />
|
|
38
|
+
<KolInputText {...props} _placeholder="Placeholder" _msg={{ _type: 'error', _description: ERROR_MSG }} _touched _type="url" _label="URL (url)" />
|
|
39
|
+
<KolInputText {...props} _placeholder="Placeholder" _type="tel" _label="Telefon (tel)" _msg={{ _type: 'warning', _description: 'Kleine Warnung' }} />
|
|
40
40
|
<KolInputText {...props} _placeholder="Placeholder" _readOnly _label="Vorname (text, readonly)" />
|
|
41
41
|
<KolInputText {...props} _value="Value" _readOnly _label="Vorname (text, readonly)" />
|
|
42
42
|
<KolInputText {...props} _placeholder="Placeholder" _disabled _label="Vorname (text, disabled)" />
|
|
@@ -2,25 +2,31 @@ import type { FC } from 'react';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
import { KolLink } from '@public-ui/react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const LinkBasic: FC = () => (
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>Hier sind Beispiele für verschiedene Links.</p>
|
|
11
|
+
</SampleDescription>
|
|
12
|
+
<div className="grid gap-4">
|
|
13
|
+
<KolLink _href="#/back-page" _label="Simple Link" />
|
|
14
|
+
<KolLink _disabled _href="#/back-page" _label="Simple Link (deaktiviert)" />
|
|
15
|
+
<KolLink _hideLabel _icons="codicon codicon-home" _href="#/back-page" _label="Icon Link" />
|
|
16
|
+
<KolLink _disabled _hideLabel _icons="codicon codicon-home" _href="#/back-page" _label="Icon Link (deaktiviert)" />
|
|
17
|
+
<p>
|
|
18
|
+
In diesem Absatz wird ein Link gesetzt, der keine weiteren Attribute enthält. <KolLink _href="#/back-page" _label="Simple Link" /> Er wird standardmäßig
|
|
19
|
+
als <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
|
+
<KolLink class="d-inline-block" _accessKey="S" _href="#/back-page" _label="Simple Link" />. Damit kann man mir per CSS-Styles eine Breite, eine Höhe und
|
|
24
|
+
andere Eigenschaften zuweisen.
|
|
25
|
+
<br />
|
|
26
|
+
<br />
|
|
27
|
+
Danach folgt ein Link, der als block-Element ausgegeben wird. <KolLink class="d-block" _href="#/back-page" _label="Simple Link" />, daher gehe ich über
|
|
28
|
+
die ganze Breite des Eltern-Elements erzeuge so einen Zeilenumbruch.
|
|
29
|
+
</p>
|
|
30
|
+
</div>
|
|
31
|
+
</>
|
|
26
32
|
);
|