@public-ui/sample-react 2.0.4 → 2.0.6
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/.eslintrc.js +2 -1
- package/dist/104.js +2 -0
- package/dist/{4669.js → 1296.js} +2 -2
- package/dist/{8869.js → 1461.js} +2 -2
- package/dist/1684.js +2 -0
- package/dist/1685.js +2 -0
- package/dist/1888.js +2 -0
- package/dist/1892.js +2 -0
- package/dist/2120.js +2 -0
- package/dist/2240.js +2 -0
- package/dist/2364.js +2 -0
- package/dist/{4279.js → 2392.js} +2 -2
- package/dist/2444.js +2 -0
- package/dist/2628.js +2 -0
- package/dist/{3388.js → 2740.js} +2 -2
- package/dist/2764.js +2 -0
- package/dist/2782.js +2 -0
- package/dist/2812.js +2 -0
- package/dist/{3845.js → 2984.js} +2 -2
- package/dist/{5324.js → 3200.js} +2 -2
- package/dist/3204.js +2 -0
- package/dist/{3034.js → 3384.js} +2 -2
- package/dist/352.js +2 -0
- package/dist/3564.js +2 -0
- package/dist/{8612.js → 3920.js} +2 -2
- package/dist/4064.js +2 -0
- package/dist/4136.js +1 -0
- package/dist/4544.js +2 -0
- package/dist/{9865.js → 4728.js} +2 -2
- package/dist/4915.js +2 -0
- package/dist/4988.js +2 -0
- package/dist/5376.js +2 -0
- package/dist/5456.js +2 -0
- package/dist/5615.js +1 -1
- package/dist/5628.js +2 -0
- package/dist/5744.js +2 -0
- package/dist/5768.js +2 -0
- package/dist/{9330.js → 5839.js} +2 -2
- package/dist/5956.js +2 -0
- package/dist/5972.js +2 -0
- package/dist/6040.js +2 -0
- package/dist/{3600.js → 6112.js} +2 -2
- package/dist/6476.js +2 -0
- package/dist/6488.js +2 -0
- package/dist/7192.js +2 -0
- package/dist/7312.js +2 -0
- package/dist/736.js +2 -0
- package/dist/{8734.js → 7496.js} +2 -2
- package/dist/7508.js +2 -0
- package/dist/7596.js +2 -0
- package/dist/7712.js +2 -0
- package/dist/7804.js +2 -0
- package/dist/{9886.js → 7808.js} +2 -2
- package/dist/80.js +2 -0
- package/dist/8188.js +2 -0
- package/dist/8232.js +2 -0
- package/dist/8248.js +2 -0
- package/dist/828.js +2 -0
- package/dist/8476.js +2 -0
- package/dist/8524.js +2 -0
- package/dist/9072.js +2 -0
- package/dist/9088.js +2 -0
- package/dist/{2079.js → 9224.js} +2 -2
- package/dist/9224.js.LICENSE.txt +3 -0
- package/dist/9404.js +2 -0
- package/dist/9404.js.LICENSE.txt +3 -0
- package/dist/9424.js +2 -0
- package/dist/9424.js.LICENSE.txt +3 -0
- package/dist/9680.js +2 -0
- package/dist/9680.js.LICENSE.txt +3 -0
- package/dist/9888.js +2 -0
- package/dist/9888.js.LICENSE.txt +3 -0
- package/dist/9984.js +1 -1
- package/dist/index.html +1 -1
- package/dist/main.css +1 -1
- package/dist/main.js +10336 -5859
- package/dist/main.js.LICENSE.txt +2 -2
- package/package.json +14 -15
- package/public/index.html +1 -1
- package/src/App.tsx +16 -10
- package/src/components/BackPage.tsx +17 -0
- package/src/components/FocusInput.tsx +4 -2
- package/src/components/FormWrap.tsx +6 -2
- package/src/components/SampleDescription.tsx +4 -1
- package/src/components/Sidebar.tsx +12 -4
- package/src/components/abbr/basic.tsx +2 -1
- package/src/components/abbr/routes.ts +0 -1
- package/src/components/accordion/basic.tsx +3 -2
- package/src/components/accordion/headlines.tsx +2 -1
- package/src/components/accordion/list.tsx +3 -1
- package/src/components/accordion/routes.ts +0 -1
- package/src/components/alert/basic.tsx +3 -2
- package/src/components/alert/card-msg.tsx +2 -1
- package/src/components/alert/html.tsx +4 -3
- package/src/components/alert/routes.ts +0 -3
- package/src/components/avatar/basic.tsx +3 -1
- package/src/components/badge/basic.tsx +2 -1
- package/src/components/badge/button.tsx +2 -1
- package/src/components/badge/routes.ts +0 -2
- package/src/components/breadcrumb/basic.tsx +11 -10
- package/src/components/breadcrumb/routes.ts +0 -1
- package/src/components/button/access-key.tsx +3 -1
- package/src/components/button/baselined.tsx +2 -1
- package/src/components/button/basic.tsx +3 -1
- package/src/components/button/hide-label.tsx +2 -1
- package/src/components/button/icons.tsx +2 -1
- package/src/components/button/partials/cases.tsx +3 -2
- package/src/components/button/partials/variants.tsx +2 -1
- package/src/components/button/routes.ts +2 -6
- package/src/components/button/width.tsx +2 -1
- package/src/components/button-group/basic.tsx +2 -1
- package/src/components/button-group/routes.ts +0 -1
- package/src/components/button-link/basic.tsx +2 -1
- package/src/components/button-link/icons.tsx +2 -1
- package/src/components/button-link/image.tsx +2 -1
- package/src/components/button-link/routes.ts +0 -3
- package/src/components/card/basic.tsx +2 -1
- package/src/components/card/confirm.tsx +2 -1
- package/src/components/card/flex.tsx +2 -1
- package/src/components/card/routes.ts +0 -4
- package/src/components/card/selection.tsx +2 -1
- package/src/components/details/basic.tsx +7 -1
- package/src/components/details/routes.ts +0 -1
- package/src/components/handout/basic.tsx +38 -34
- package/src/components/handout/routes.ts +0 -1
- package/src/components/heading/badged.tsx +2 -1
- package/src/components/heading/basic.tsx +2 -1
- package/src/components/heading/paragraph.tsx +2 -1
- package/src/components/heading/routes.ts +0 -3
- package/src/components/icon/basic.tsx +2 -1
- package/src/components/icon/routes.ts +0 -1
- package/src/components/image/basic.tsx +3 -2
- package/src/components/image/routes.ts +0 -1
- package/src/components/indented-text/basic.tsx +2 -1
- package/src/components/indented-text/routes.ts +0 -1
- package/src/components/input-checkbox/basic.tsx +3 -1
- package/src/components/input-checkbox/button.tsx +3 -1
- package/src/components/input-checkbox/partials/cases.tsx +1 -1
- package/src/components/input-checkbox/partials/variants.tsx +1 -1
- package/src/components/input-checkbox/routes.ts +0 -1
- package/src/components/input-checkbox/switch.tsx +4 -2
- package/src/components/input-color/basic.tsx +3 -1
- package/src/components/input-color/partials/cases.tsx +1 -1
- package/src/components/input-color/partials/variants.tsx +1 -1
- package/src/components/input-color/routes.ts +0 -1
- package/src/components/input-date/basic.tsx +3 -1
- package/src/components/input-date/partials/cases.tsx +1 -1
- package/src/components/input-date/partials/variants.tsx +1 -1
- package/src/components/input-date/routes.ts +0 -1
- package/src/components/input-email/basic.tsx +3 -1
- package/src/components/input-email/partials/cases.tsx +1 -1
- package/src/components/input-email/partials/variants.tsx +1 -1
- package/src/components/input-email/routes.ts +0 -1
- package/src/components/input-file/basic.tsx +3 -1
- package/src/components/input-file/partials/cases.tsx +1 -1
- package/src/components/input-file/partials/variants.tsx +1 -1
- package/src/components/input-file/routes.ts +0 -1
- package/src/components/input-number/basic.tsx +17 -2
- package/src/components/input-number/partials/cases.tsx +1 -1
- package/src/components/input-number/partials/variants.tsx +1 -1
- package/src/components/input-number/routes.ts +0 -1
- package/src/components/input-password/basic.tsx +3 -1
- package/src/components/input-password/partials/cases.tsx +1 -1
- package/src/components/input-password/partials/variants.tsx +1 -1
- package/src/components/input-password/routes.ts +0 -1
- package/src/components/input-password/show-password.tsx +3 -1
- package/src/components/input-radio/basic.tsx +3 -1
- package/src/components/input-radio/horizontal.tsx +4 -2
- package/src/components/input-radio/partials/cases.tsx +1 -1
- package/src/components/input-radio/partials/variants.tsx +1 -1
- package/src/components/input-radio/routes.ts +0 -2
- package/src/components/input-radio/select.tsx +3 -2
- package/src/components/input-range/basic.tsx +3 -1
- package/src/components/input-range/partials/cases.tsx +1 -1
- package/src/components/input-range/partials/variants.tsx +1 -1
- package/src/components/input-range/routes.ts +0 -1
- package/src/components/input-text/basic.tsx +3 -1
- package/src/components/input-text/blur.tsx +3 -1
- package/src/components/input-text/focus.tsx +2 -1
- package/src/components/input-text/hide-errors.tsx +25 -0
- package/src/components/input-text/partials/cases.tsx +1 -1
- package/src/components/input-text/partials/variants.tsx +1 -1
- package/src/components/input-text/routes.ts +2 -1
- package/src/components/kolibri/basic.tsx +5 -2
- package/src/components/kolibri/routes.ts +0 -1
- package/src/components/link/basic.tsx +13 -8
- package/src/components/link/icons.tsx +7 -2
- package/src/components/link/image.tsx +5 -4
- package/src/components/link/routes.ts +0 -4
- package/src/components/link/target.tsx +8 -6
- package/src/components/link-button/basic.tsx +3 -4
- package/src/components/link-button/routes.ts +0 -1
- package/src/components/link-group/basic.tsx +6 -4
- package/src/components/link-group/horizontal.tsx +6 -4
- package/src/components/logo/basic.tsx +4 -2
- package/src/components/logo/routes.ts +0 -1
- package/src/components/modal/basic.tsx +3 -1
- package/src/components/modal/routes.ts +0 -1
- package/src/components/nav/aria-current.tsx +4 -3
- package/src/components/nav/basic.tsx +22 -4
- package/src/components/nav/horizontal.tsx +2 -1
- package/src/components/nav/links.ts +17 -17
- package/src/components/pagination/basic.tsx +2 -1
- package/src/components/pagination/routes.ts +0 -1
- package/src/components/progress/basic.tsx +2 -1
- package/src/components/progress/routes.ts +0 -1
- package/src/components/quote/basic.tsx +3 -1
- package/src/components/quote/block.tsx +3 -1
- package/src/components/quote/routes.ts +0 -1
- package/src/components/select/basic.tsx +3 -1
- package/src/components/select/partials/cases.tsx +3 -3
- package/src/components/select/partials/variants.tsx +1 -1
- package/src/components/select/routes.ts +0 -1
- package/src/components/skip-nav/basic.tsx +4 -1
- package/src/components/skip-nav/routes.ts +0 -1
- package/src/components/spin/basic.tsx +2 -1
- package/src/components/spin/custom.tsx +4 -2
- package/src/components/spin/cycle.tsx +2 -1
- package/src/components/spin/routes.ts +0 -1
- package/src/components/split-button/basic.tsx +3 -1
- package/src/components/table/badge-size.tsx +5 -3
- package/src/components/table/column-alignment.tsx +4 -2
- package/src/components/table/horizontal-scrollbar.tsx +4 -2
- package/src/components/table/pagination-position.tsx +8 -4
- package/src/components/table/render-cell.tsx +4 -3
- package/src/components/table/routes.ts +2 -3
- package/src/components/table/sort-data.tsx +6 -3
- package/src/components/table/with-pagination.tsx +6 -3
- package/src/components/tabs/basic.tsx +3 -1
- package/src/components/tabs/icons-only.tsx +3 -1
- package/src/components/tabs/routes.ts +0 -1
- package/src/components/textarea/adjust-height.tsx +2 -1
- package/src/components/textarea/basic.tsx +3 -1
- package/src/components/textarea/counter.tsx +3 -1
- package/src/components/textarea/disabled.tsx +2 -1
- package/src/components/textarea/partials/cases.tsx +2 -1
- package/src/components/textarea/partials/variants.tsx +1 -1
- package/src/components/textarea/placeholder.tsx +2 -1
- package/src/components/textarea/readonly.tsx +2 -1
- package/src/components/textarea/resize.tsx +2 -1
- package/src/components/textarea/routes.ts +2 -9
- package/src/components/textarea/rows.tsx +3 -2
- package/src/components/toast/basic.tsx +4 -1
- package/src/components/tree/basic.tsx +72 -0
- package/src/components/tree/routes.ts +9 -0
- package/src/components/types.tsx +14 -13
- package/src/components/version/basic.tsx +2 -1
- package/src/components/version/context.tsx +2 -1
- package/src/components/version/routes.ts +0 -2
- package/src/hooks/useSetCurrentLocation.ts +2 -1
- package/src/main.ts +0 -2
- package/src/react.main.tsx +3 -2
- package/src/scenarios/appointment-form/AppointmentForm.tsx +21 -12
- package/src/scenarios/appointment-form/AvailableAppointmentsForm.tsx +13 -13
- package/src/scenarios/appointment-form/DistrictForm.tsx +13 -13
- package/src/scenarios/appointment-form/PersonalInformationForm.tsx +25 -7
- package/src/scenarios/appointment-form/Summary.tsx +4 -2
- package/src/scenarios/appointment-form/formUtils.ts +8 -0
- package/src/scenarios/complex-form/kopfdaten/component.tsx +2 -1
- package/src/scenarios/complex-form/location/component.tsx +3 -2
- package/src/scenarios/complex-form/schedule/component.tsx +1 -0
- package/src/scenarios/custom-tooltip-width.tsx +3 -1
- package/src/scenarios/inputs-get-value.tsx +6 -3
- package/src/scenarios/routes.ts +4 -2
- package/src/scenarios/static-form.tsx +78 -0
- package/src/shares/randomEmoji.ts +4 -0
- package/src/shares/routes.ts +2 -0
- package/src/shares/store.ts +3 -3
- package/dist/1090.js +0 -2
- package/dist/1181.js +0 -2
- package/dist/1218.js +0 -2
- package/dist/1338.js +0 -2
- package/dist/1517.js +0 -2
- package/dist/1596.js +0 -2
- package/dist/2163.js +0 -2
- package/dist/2415.js +0 -2
- package/dist/2594.js +0 -2
- package/dist/2611.js +0 -2
- package/dist/2643.js +0 -2
- package/dist/3099.js +0 -2
- package/dist/3145.js +0 -2
- package/dist/3345.js +0 -2
- package/dist/3466.js +0 -2
- package/dist/3580.js +0 -2
- package/dist/3619.js +0 -2
- package/dist/3776.js +0 -2
- package/dist/4150.js +0 -2
- package/dist/42.js +0 -2
- package/dist/4463.js +0 -2
- package/dist/4686.js +0 -2
- package/dist/4756.js +0 -2
- package/dist/5027.js +0 -2
- package/dist/521.js +0 -2
- package/dist/5373.js +0 -2
- package/dist/5518.js +0 -2
- package/dist/5853.js +0 -2
- package/dist/6010.js +0 -2
- package/dist/6308.js +0 -2
- package/dist/7170.js +0 -2
- package/dist/755.js +0 -2
- package/dist/7654.js +0 -2
- package/dist/8037.js +0 -1
- package/dist/817.js +0 -2
- package/dist/881.js +0 -2
- package/dist/892.js +0 -2
- package/dist/8948.js +0 -2
- package/dist/8951.js +0 -2
- package/dist/9227.js +0 -2
- package/dist/9317.js +0 -2
- package/dist/9670.js +0 -2
- package/dist/9700.js +0 -2
- package/dist/9727.js +0 -2
- package/dist/9797.js +0 -2
- package/dist/9912.js +0 -2
- package/src/scenarios/appointment-form/ErrorList.tsx +0 -35
- /package/dist/{1090.js.LICENSE.txt → 104.js.LICENSE.txt} +0 -0
- /package/dist/{1181.js.LICENSE.txt → 1296.js.LICENSE.txt} +0 -0
- /package/dist/{1218.js.LICENSE.txt → 1461.js.LICENSE.txt} +0 -0
- /package/dist/{1338.js.LICENSE.txt → 1684.js.LICENSE.txt} +0 -0
- /package/dist/{1517.js.LICENSE.txt → 1685.js.LICENSE.txt} +0 -0
- /package/dist/{1596.js.LICENSE.txt → 1888.js.LICENSE.txt} +0 -0
- /package/dist/{2079.js.LICENSE.txt → 1892.js.LICENSE.txt} +0 -0
- /package/dist/{2163.js.LICENSE.txt → 2120.js.LICENSE.txt} +0 -0
- /package/dist/{2415.js.LICENSE.txt → 2240.js.LICENSE.txt} +0 -0
- /package/dist/{2594.js.LICENSE.txt → 2364.js.LICENSE.txt} +0 -0
- /package/dist/{2611.js.LICENSE.txt → 2392.js.LICENSE.txt} +0 -0
- /package/dist/{2643.js.LICENSE.txt → 2444.js.LICENSE.txt} +0 -0
- /package/dist/{3034.js.LICENSE.txt → 2628.js.LICENSE.txt} +0 -0
- /package/dist/{3099.js.LICENSE.txt → 2740.js.LICENSE.txt} +0 -0
- /package/dist/{3145.js.LICENSE.txt → 2764.js.LICENSE.txt} +0 -0
- /package/dist/{3345.js.LICENSE.txt → 2782.js.LICENSE.txt} +0 -0
- /package/dist/{3388.js.LICENSE.txt → 2812.js.LICENSE.txt} +0 -0
- /package/dist/{3466.js.LICENSE.txt → 2984.js.LICENSE.txt} +0 -0
- /package/dist/{3580.js.LICENSE.txt → 3200.js.LICENSE.txt} +0 -0
- /package/dist/{3600.js.LICENSE.txt → 3204.js.LICENSE.txt} +0 -0
- /package/dist/{3619.js.LICENSE.txt → 3384.js.LICENSE.txt} +0 -0
- /package/dist/{3776.js.LICENSE.txt → 352.js.LICENSE.txt} +0 -0
- /package/dist/{3845.js.LICENSE.txt → 3564.js.LICENSE.txt} +0 -0
- /package/dist/{4150.js.LICENSE.txt → 3920.js.LICENSE.txt} +0 -0
- /package/dist/{42.js.LICENSE.txt → 4064.js.LICENSE.txt} +0 -0
- /package/dist/{4279.js.LICENSE.txt → 4544.js.LICENSE.txt} +0 -0
- /package/dist/{4463.js.LICENSE.txt → 4728.js.LICENSE.txt} +0 -0
- /package/dist/{4669.js.LICENSE.txt → 4915.js.LICENSE.txt} +0 -0
- /package/dist/{4686.js.LICENSE.txt → 4988.js.LICENSE.txt} +0 -0
- /package/dist/{4756.js.LICENSE.txt → 5376.js.LICENSE.txt} +0 -0
- /package/dist/{5027.js.LICENSE.txt → 5456.js.LICENSE.txt} +0 -0
- /package/dist/{521.js.LICENSE.txt → 5628.js.LICENSE.txt} +0 -0
- /package/dist/{5324.js.LICENSE.txt → 5744.js.LICENSE.txt} +0 -0
- /package/dist/{5373.js.LICENSE.txt → 5768.js.LICENSE.txt} +0 -0
- /package/dist/{5518.js.LICENSE.txt → 5839.js.LICENSE.txt} +0 -0
- /package/dist/{5853.js.LICENSE.txt → 5956.js.LICENSE.txt} +0 -0
- /package/dist/{6010.js.LICENSE.txt → 5972.js.LICENSE.txt} +0 -0
- /package/dist/{6308.js.LICENSE.txt → 6040.js.LICENSE.txt} +0 -0
- /package/dist/{7170.js.LICENSE.txt → 6112.js.LICENSE.txt} +0 -0
- /package/dist/{755.js.LICENSE.txt → 6476.js.LICENSE.txt} +0 -0
- /package/dist/{7654.js.LICENSE.txt → 6488.js.LICENSE.txt} +0 -0
- /package/dist/{817.js.LICENSE.txt → 7192.js.LICENSE.txt} +0 -0
- /package/dist/{8612.js.LICENSE.txt → 7312.js.LICENSE.txt} +0 -0
- /package/dist/{8734.js.LICENSE.txt → 736.js.LICENSE.txt} +0 -0
- /package/dist/{881.js.LICENSE.txt → 7496.js.LICENSE.txt} +0 -0
- /package/dist/{8869.js.LICENSE.txt → 7508.js.LICENSE.txt} +0 -0
- /package/dist/{892.js.LICENSE.txt → 7596.js.LICENSE.txt} +0 -0
- /package/dist/{8948.js.LICENSE.txt → 7712.js.LICENSE.txt} +0 -0
- /package/dist/{8951.js.LICENSE.txt → 7804.js.LICENSE.txt} +0 -0
- /package/dist/{9227.js.LICENSE.txt → 7808.js.LICENSE.txt} +0 -0
- /package/dist/{9317.js.LICENSE.txt → 80.js.LICENSE.txt} +0 -0
- /package/dist/{9330.js.LICENSE.txt → 8188.js.LICENSE.txt} +0 -0
- /package/dist/{9670.js.LICENSE.txt → 8232.js.LICENSE.txt} +0 -0
- /package/dist/{9700.js.LICENSE.txt → 8248.js.LICENSE.txt} +0 -0
- /package/dist/{9727.js.LICENSE.txt → 828.js.LICENSE.txt} +0 -0
- /package/dist/{9797.js.LICENSE.txt → 8476.js.LICENSE.txt} +0 -0
- /package/dist/{9865.js.LICENSE.txt → 8524.js.LICENSE.txt} +0 -0
- /package/dist/{9886.js.LICENSE.txt → 9072.js.LICENSE.txt} +0 -0
- /package/dist/{9912.js.LICENSE.txt → 9088.js.LICENSE.txt} +0 -0
|
@@ -2,9 +2,9 @@ import React, { forwardRef } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { KolInputPassword } from '@public-ui/react';
|
|
4
4
|
|
|
5
|
-
import { Components } from '@public-ui/components';
|
|
6
5
|
import { ERROR_MSG } from '../../../shares/constants';
|
|
7
6
|
|
|
7
|
+
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">
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
|
|
3
|
-
import { Components } from '@public-ui/components';
|
|
4
3
|
import { InputPasswordCases } from './cases';
|
|
5
4
|
|
|
5
|
+
import type { Components } from '@public-ui/components';
|
|
6
6
|
export const InputPasswordVariants = forwardRef<HTMLKolInputPasswordElement, Components.KolInputPassword>(function InputPasswordVariant(props, ref) {
|
|
7
7
|
return (
|
|
8
8
|
<div className="grid md:grid-cols-2 gap-4">
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
+
|
|
2
4
|
import { KolForm, KolInputPassword } from '@public-ui/react';
|
|
3
5
|
|
|
4
6
|
export const InputPasswordShowPassword: FC = () => {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import React, { useState } from 'react';
|
|
2
3
|
|
|
3
|
-
import { Orientation } from '@public-ui/components';
|
|
4
4
|
import { KolButton, KolForm, KolInputCheckbox, KolInputRadio } from '@public-ui/react';
|
|
5
|
+
|
|
5
6
|
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
8
|
+
import type { Orientation } from '@public-ui/components';
|
|
7
9
|
export const InputRadioHorizontal: FC = () => {
|
|
8
10
|
const [show, setShow] = useState(true);
|
|
9
11
|
const [orientation, setOrientation] = useState<Orientation>('horizontal');
|
|
@@ -2,9 +2,9 @@ import React, { forwardRef } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { KolInputRadio } from '@public-ui/react';
|
|
4
4
|
|
|
5
|
-
import { Components } from '@public-ui/components';
|
|
6
5
|
import { ERROR_MSG } from '../../../shares/constants';
|
|
7
6
|
|
|
7
|
+
import type { Components } from '@public-ui/components';
|
|
8
8
|
export const InputRadioCases = forwardRef<HTMLKolInputRadioElement, Components.KolInputRadio>(function InputRadioCases(props, ref) {
|
|
9
9
|
return (
|
|
10
10
|
<div className="grid gap-4">
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
|
|
3
|
-
import { Components } from '@public-ui/components';
|
|
4
3
|
import { InputRadioCases } from './cases';
|
|
5
4
|
|
|
5
|
+
import type { Components } from '@public-ui/components';
|
|
6
6
|
export const InputRadioVariants = forwardRef<HTMLKolInputRadioElement, Components.KolInputRadio>(function InputRadioVariant(props, ref) {
|
|
7
7
|
return (
|
|
8
8
|
<div className="grid md:grid-cols-2 gap-4">
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { KolForm, KolInputRadio } from '@public-ui/react';
|
|
3
2
|
|
|
4
|
-
import {
|
|
3
|
+
import { KolForm, KolInputRadio } from '@public-ui/react';
|
|
5
4
|
|
|
6
5
|
import { ERROR_MSG } from '../../shares/constants';
|
|
7
6
|
|
|
7
|
+
import type { FC } from 'react';
|
|
8
|
+
|
|
8
9
|
const options = [
|
|
9
10
|
{ label: 'Frau', value: 'Frau' },
|
|
10
11
|
{ disabled: true, label: 'Herr (disabled)', value: 'Herr' },
|
|
@@ -2,9 +2,9 @@ import React, { forwardRef } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { KolInputRange } from '@public-ui/react';
|
|
4
4
|
|
|
5
|
-
import { Components } from '@public-ui/components';
|
|
6
5
|
import { ERROR_MSG } from '../../../shares/constants';
|
|
7
6
|
|
|
7
|
+
import type { Components } from '@public-ui/components';
|
|
8
8
|
export const InputRangeCases = forwardRef<HTMLKolInputRangeElement, Components.KolInputRange>(function InputRangeCases(props, ref) {
|
|
9
9
|
return (
|
|
10
10
|
<div className="grid gap-4">
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
|
|
3
|
-
import { Components } from '@public-ui/components';
|
|
4
3
|
import { InputRangeCases } from './cases';
|
|
5
4
|
|
|
5
|
+
import type { Components } from '@public-ui/components';
|
|
6
6
|
export const InputRangeVariants = forwardRef<HTMLKolInputRangeElement, Components.KolInputRange>(function InputRangeVariant(props, ref) {
|
|
7
7
|
return (
|
|
8
8
|
<div className="grid md:grid-cols-2 gap-4">
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { useLayoutEffect, useRef } from 'react';
|
|
2
|
+
|
|
2
3
|
import { KolButton, KolForm, KolInputText } from '@public-ui/react';
|
|
3
4
|
|
|
4
|
-
import { FC } from 'react';
|
|
5
|
+
import type { FC } from 'react';
|
|
5
6
|
|
|
6
7
|
export const InputTextFocus: FC = () => {
|
|
7
8
|
const ref = useRef<HTMLKolInputTextElement | null>(null);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { KolAlert, KolCard, KolInputText } from '@public-ui/react';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
|
+
|
|
6
|
+
export const InputTextHideErrors: FC = () => (
|
|
7
|
+
<div className="grid gap-4">
|
|
8
|
+
<SampleDescription>
|
|
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
|
+
</SampleDescription>
|
|
11
|
+
<KolCard _label="Normal input field with error" _level={0}>
|
|
12
|
+
<KolInputText _error="Error message" _label="Input with error" _touched />
|
|
13
|
+
</KolCard>
|
|
14
|
+
<KolCard _label="Input field with hidden error" _level={0}>
|
|
15
|
+
<fieldset className="grid md:grid-cols-2 gap-4">
|
|
16
|
+
<legend>Combined input field</legend>
|
|
17
|
+
<KolAlert className="col-span-2" _level={0} _type="error">
|
|
18
|
+
This is a combined error message
|
|
19
|
+
</KolAlert>
|
|
20
|
+
<KolInputText _error="This is a combined error message" _hideError _label="First input" _touched />
|
|
21
|
+
<KolInputText _error="This is a combined error message" _hideError _label="Second input with error" _touched />
|
|
22
|
+
</fieldset>
|
|
23
|
+
</KolCard>
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
@@ -2,9 +2,9 @@ import React, { forwardRef } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { KolInputText } from '@public-ui/react';
|
|
4
4
|
|
|
5
|
-
import { Components } from '@public-ui/components';
|
|
6
5
|
import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
|
|
7
6
|
|
|
7
|
+
import type { Components } from '@public-ui/components';
|
|
8
8
|
export const InputTextCases = forwardRef<HTMLKolInputTextElement, Components.KolInputText>(function InputTextCases(props, ref) {
|
|
9
9
|
return (
|
|
10
10
|
<div className="grid gap-4">
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
|
|
3
|
-
import { Components } from '@public-ui/components';
|
|
4
3
|
import { InputTextCases } from './cases';
|
|
5
4
|
|
|
5
|
+
import type { Components } from '@public-ui/components';
|
|
6
6
|
export const InputTextVariants = forwardRef<HTMLKolInputTextElement, Components.KolInputText>(function InputTextVariant(props, ref) {
|
|
7
7
|
return (
|
|
8
8
|
<div className="grid md:grid-cols-2 gap-4">
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Routes } from '../../shares/types';
|
|
2
|
-
|
|
3
2
|
import { InputTextBasic } from './basic';
|
|
4
3
|
import { InputTextBlur } from './blur';
|
|
5
4
|
import { InputTextFocus } from './focus';
|
|
5
|
+
import { InputTextHideErrors } from './hide-errors';
|
|
6
6
|
|
|
7
7
|
export const INPUT_TEXT_ROUTES: Routes = {
|
|
8
8
|
'input-text': {
|
|
9
9
|
basic: InputTextBasic,
|
|
10
10
|
blur: InputTextBlur,
|
|
11
11
|
focus: InputTextFocus,
|
|
12
|
+
'hide-errors': InputTextHideErrors,
|
|
12
13
|
},
|
|
13
14
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
import { KolHeading, KolKolibri } from '@public-ui/react';
|
|
5
|
+
|
|
3
6
|
import { SampleDescription } from '../SampleDescription';
|
|
4
7
|
|
|
5
8
|
export const KolibriBasic: FC = () => (
|
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
2
4
|
import { KolLink } from '@public-ui/react';
|
|
3
5
|
|
|
4
6
|
export const LinkBasic: FC = () => (
|
|
5
7
|
<div className="grid gap-4">
|
|
6
|
-
<KolLink _href="
|
|
8
|
+
<KolLink _href="#/back-page" _label="Simple Link" />
|
|
9
|
+
<KolLink _disabled _href="#/back-page" _label="Simple Link (deaktiviert)" />
|
|
10
|
+
<KolLink _hideLabel _icons="codicon codicon-home" _href="#/back-page" _label="Icon Link" />
|
|
11
|
+
<KolLink _disabled _hideLabel _icons="codicon codicon-home" _href="#/back-page" _label="Icon Link (deaktiviert)" />
|
|
7
12
|
<p>
|
|
8
|
-
In diesem Absatz wird ein Link gesetzt, der keine weiteren Attribute enthält. <KolLink _href="
|
|
9
|
-
<strong>inline-Element</strong> ausgegeben.
|
|
13
|
+
In diesem Absatz wird ein Link gesetzt, der keine weiteren Attribute enthält. <KolLink _href="#/back-page" _label="Simple Link" /> Er wird standardmäßig
|
|
14
|
+
als <strong>inline-Element</strong> ausgegeben.
|
|
10
15
|
</p>
|
|
11
16
|
<p>
|
|
12
17
|
In diesem Absatz wird ein Link gesetzt, der einmal als inline-block-Element ausgegeben wird.{' '}
|
|
13
|
-
<KolLink class="d-inline-block" _accessKey="S" _href="
|
|
14
|
-
Eigenschaften zuweisen.
|
|
18
|
+
<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
|
|
19
|
+
andere Eigenschaften zuweisen.
|
|
15
20
|
<br />
|
|
16
21
|
<br />
|
|
17
|
-
Danach folgt ein Link, der als block-Element ausgegeben wird.
|
|
18
|
-
|
|
22
|
+
Danach folgt ein Link, der als block-Element ausgegeben wird. <KolLink class="d-block" _href="#/back-page" _label="Simple Link" />, daher gehe ich über
|
|
23
|
+
die ganze Breite des Eltern-Elements erzeuge so einen Zeilenumbruch.
|
|
19
24
|
</p>
|
|
20
25
|
</div>
|
|
21
26
|
);
|
|
@@ -1,28 +1,32 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
|
|
2
3
|
import { KolLink } from '@public-ui/react';
|
|
3
4
|
|
|
4
|
-
import { FC } from 'react';
|
|
5
|
+
import type { FC } from 'react';
|
|
5
6
|
|
|
6
7
|
export const LinkIcons: FC = () => (
|
|
7
8
|
<div className="grid gap-4">
|
|
8
|
-
<KolLink _icons="codicon codicon-home" _label="Ich bin ein Link mit Icon links" />
|
|
9
|
+
<KolLink _icons="codicon codicon-home" _label="Ich bin ein Link mit Icon links" _href="#/back-page" />
|
|
9
10
|
<KolLink
|
|
10
11
|
_icons={{
|
|
11
12
|
right: 'codicon codicon-home',
|
|
12
13
|
}}
|
|
13
14
|
_label="Ich bin ein Link mit Icon rechts"
|
|
15
|
+
_href="#/back-page"
|
|
14
16
|
/>
|
|
15
17
|
<KolLink
|
|
16
18
|
_icons={{
|
|
17
19
|
top: 'codicon codicon-home',
|
|
18
20
|
}}
|
|
19
21
|
_label="Ich bin ein Link mit Icon oben"
|
|
22
|
+
_href="#/back-page"
|
|
20
23
|
/>
|
|
21
24
|
<KolLink
|
|
22
25
|
_icons={{
|
|
23
26
|
bottom: 'codicon codicon-home',
|
|
24
27
|
}}
|
|
25
28
|
_label="Ich bin ein Link mit Icon unten"
|
|
29
|
+
_href="#/back-page"
|
|
26
30
|
/>
|
|
27
31
|
<KolLink
|
|
28
32
|
_icons={{
|
|
@@ -32,6 +36,7 @@ export const LinkIcons: FC = () => (
|
|
|
32
36
|
left: 'codicon codicon-home',
|
|
33
37
|
}}
|
|
34
38
|
_label="Ich bin ein Link mit allen Icons"
|
|
39
|
+
_href="#/back-page"
|
|
35
40
|
/>
|
|
36
41
|
</div>
|
|
37
42
|
);
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
|
|
2
3
|
import { KolKolibri, KolLink } from '@public-ui/react';
|
|
3
4
|
|
|
4
|
-
import { FC } from 'react';
|
|
5
|
+
import type { FC } from 'react';
|
|
5
6
|
|
|
6
7
|
export const LinkImage: FC = () => (
|
|
7
8
|
<div className="grid gap-4">
|
|
8
|
-
<KolLink _href="
|
|
9
|
+
<KolLink _href="#/back-page" _label="Ich bin ein Link, der als Text gerendert wird" />
|
|
9
10
|
<br />
|
|
10
|
-
<KolLink _href="
|
|
11
|
+
<KolLink _href="#/back-page" _label="">
|
|
11
12
|
<img alt="Darstellung des KoliBri-Theming" slot="expert" src="abgrenzung.jpg" width="300" />
|
|
12
13
|
<KolKolibri style={{ width: '300px' }}></KolKolibri>
|
|
13
14
|
</KolLink>
|
|
14
15
|
<br />
|
|
15
|
-
<KolLink _href="
|
|
16
|
+
<KolLink _href="#/back-page" _label="">
|
|
16
17
|
<img alt="Darstellung des KoliBri-Theming" slot="expert" src="abgrenzung.jpg" width="300" />
|
|
17
18
|
</KolLink>
|
|
18
19
|
</div>
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
|
|
2
3
|
import { KolLink } from '@public-ui/react';
|
|
3
4
|
|
|
4
|
-
import { FC } from 'react';
|
|
5
|
+
import type { FC } from 'react';
|
|
5
6
|
|
|
6
7
|
export const LinkTarget: FC = () => (
|
|
7
8
|
<div className="d-flex gap-4">
|
|
8
|
-
<KolLink _href="
|
|
9
|
-
<KolLink _href="
|
|
10
|
-
<KolLink _href="
|
|
11
|
-
<KolLink _href="
|
|
12
|
-
<KolLink _href="
|
|
9
|
+
<KolLink _href="#/back-page" _label="Ich bin ein Link ohne Target" />{' '}
|
|
10
|
+
<KolLink _href="#/back-page" _label="Ich bin ein Link mit Target (_self)" _target="_self" />{' '}
|
|
11
|
+
<KolLink _href="#/back-page" _label="Ich bin ein Link mit Target (_blank)" _target="_blank" />{' '}
|
|
12
|
+
<KolLink _href="#/back-page" _icons="codicon codicon-home" _hideLabel _label="Ich bin ein Link ohne Target" />{' '}
|
|
13
|
+
<KolLink _href="#/back-page" _icons="codicon codicon-home" _hideLabel _label="Ich bin ein Link mit Target (_self)" _target="_self" />{' '}
|
|
14
|
+
<KolLink _href="#/back-page" _icons="codicon codicon-home" _hideLabel _label="Ich bin ein Link mit Target (_blank)" _target="_blank" />
|
|
13
15
|
</div>
|
|
14
16
|
);
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
|
|
2
3
|
import { KolLinkButton } from '@public-ui/react';
|
|
3
4
|
|
|
4
|
-
import { FC } from 'react';
|
|
5
|
+
import type { FC } from 'react';
|
|
5
6
|
|
|
6
7
|
const ARGS = {
|
|
7
|
-
|
|
8
|
-
onClick: (_event, _value) => alert('Klick!'),
|
|
9
|
-
},
|
|
8
|
+
_href: '#/back-page',
|
|
10
9
|
};
|
|
11
10
|
|
|
12
11
|
export const LinkButtonBasic: FC = () => (
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
2
4
|
import { KolLinkGroup } from '@public-ui/react';
|
|
3
5
|
|
|
4
6
|
const links = [
|
|
5
|
-
{ _label: 'Link 1', _href: '
|
|
6
|
-
{ _label: 'Link 2', _href: '
|
|
7
|
-
{ _label: 'Link 3', _href: '
|
|
7
|
+
{ _label: 'Link 1', _href: '#/back-page' },
|
|
8
|
+
{ _label: 'Link 2', _href: '#/back-page' },
|
|
9
|
+
{ _label: 'Link 3', _href: '#/back-page' },
|
|
8
10
|
];
|
|
9
11
|
export const LinkGroupBasic: FC = () => <KolLinkGroup _links={links} _label="" />;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
2
4
|
import { KolLinkGroup } from '@public-ui/react';
|
|
3
5
|
|
|
4
6
|
const links = [
|
|
5
|
-
{ _label: 'Link 1', _href: '
|
|
6
|
-
{ _label: 'Link 2', _href: '
|
|
7
|
-
{ _label: 'Link 3', _href: '
|
|
7
|
+
{ _label: 'Link 1', _href: '#/back-page' },
|
|
8
|
+
{ _label: 'Link 2', _href: '#/back-page' },
|
|
9
|
+
{ _label: 'Link 3', _href: '#/back-page' },
|
|
8
10
|
];
|
|
9
11
|
export const LinkGroupHorizontal: FC = () => <KolLinkGroup _links={links} _orientation="horizontal" _label="" />;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
3
4
|
import { Bundesministerium } from '@public-ui/components';
|
|
5
|
+
import { KolLogo } from '@public-ui/react';
|
|
4
6
|
|
|
5
7
|
export const LogoBasic: FC = () => <KolLogo className="w-50%" _org={Bundesministerium['Die Bundesregierung']} />;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
|
|
2
3
|
import { KolNav } from '@public-ui/react';
|
|
3
4
|
|
|
4
|
-
import { FC } from 'react';
|
|
5
5
|
import { SampleDescription } from '../SampleDescription';
|
|
6
6
|
|
|
7
|
+
import type { FC } from 'react';
|
|
7
8
|
export const NavAriaCurrent: FC = () => (
|
|
8
9
|
<>
|
|
9
10
|
<SampleDescription>
|
|
@@ -19,11 +20,11 @@ export const NavAriaCurrent: FC = () => (
|
|
|
19
20
|
_links={[
|
|
20
21
|
{
|
|
21
22
|
_label: 'Homepage',
|
|
22
|
-
_href: '#/',
|
|
23
|
+
_href: '#/back-page',
|
|
23
24
|
},
|
|
24
25
|
{
|
|
25
26
|
_label: 'Nav - aria-current (Aktuelle Seite)',
|
|
26
|
-
_href: '#/
|
|
27
|
+
_href: '#/back-page',
|
|
27
28
|
_active: true,
|
|
28
29
|
},
|
|
29
30
|
]}
|
|
@@ -1,7 +1,25 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
|
|
3
|
+
import { KolInputCheckbox, KolNav } from '@public-ui/react';
|
|
3
4
|
|
|
4
|
-
import { FC } from 'react';
|
|
5
5
|
import { LINKS } from './links';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import type { FC } from 'react';
|
|
8
|
+
export const NavBasic: FC = () => {
|
|
9
|
+
const [hasIconsWhenExpanded, setHasIconsWhenExpanded] = useState(false);
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<>
|
|
13
|
+
<KolInputCheckbox
|
|
14
|
+
_label="Show icons when expanded"
|
|
15
|
+
_checked={hasIconsWhenExpanded}
|
|
16
|
+
_on={{
|
|
17
|
+
onChange: (_event, value: unknown) => {
|
|
18
|
+
setHasIconsWhenExpanded(value as boolean);
|
|
19
|
+
},
|
|
20
|
+
}}
|
|
21
|
+
></KolInputCheckbox>
|
|
22
|
+
<KolNav class="block w-fit" _label="Main navigation" _links={LINKS} _hasCompactButton _hasIconsWhenExpanded={hasIconsWhenExpanded} />
|
|
23
|
+
</>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
|
|
2
3
|
import { KolNav } from '@public-ui/react';
|
|
3
4
|
|
|
4
|
-
import { FC } from 'react';
|
|
5
5
|
import { LINKS } from './links';
|
|
6
6
|
|
|
7
|
+
import type { FC } from 'react';
|
|
7
8
|
export const NavHorizontal: FC = () => <KolNav _label="Main navigation" _links={LINKS} _orientation="horizontal" />;
|