@public-ui/sample-react 2.0.4 → 2.0.5
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/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/4443.js +2 -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/6992.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/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/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/main.css +1 -1
- package/dist/main.js +10276 -5799
- package/dist/main.js.LICENSE.txt +2 -2
- package/package.json +14 -15
- 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/partials/cases.tsx +1 -1
- package/src/components/input-text/partials/variants.tsx +1 -1
- package/src/components/input-text/routes.ts +0 -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 +2 -2
- 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 → 2120.js.LICENSE.txt} +0 -0
- /package/dist/{2163.js.LICENSE.txt → 2240.js.LICENSE.txt} +0 -0
- /package/dist/{2415.js.LICENSE.txt → 2364.js.LICENSE.txt} +0 -0
- /package/dist/{2594.js.LICENSE.txt → 2392.js.LICENSE.txt} +0 -0
- /package/dist/{2611.js.LICENSE.txt → 2444.js.LICENSE.txt} +0 -0
- /package/dist/{2643.js.LICENSE.txt → 2628.js.LICENSE.txt} +0 -0
- /package/dist/{3034.js.LICENSE.txt → 2740.js.LICENSE.txt} +0 -0
- /package/dist/{3099.js.LICENSE.txt → 2764.js.LICENSE.txt} +0 -0
- /package/dist/{3145.js.LICENSE.txt → 2782.js.LICENSE.txt} +0 -0
- /package/dist/{3345.js.LICENSE.txt → 2812.js.LICENSE.txt} +0 -0
- /package/dist/{3388.js.LICENSE.txt → 2984.js.LICENSE.txt} +0 -0
- /package/dist/{3466.js.LICENSE.txt → 3200.js.LICENSE.txt} +0 -0
- /package/dist/{3580.js.LICENSE.txt → 3204.js.LICENSE.txt} +0 -0
- /package/dist/{3600.js.LICENSE.txt → 3384.js.LICENSE.txt} +0 -0
- /package/dist/{3619.js.LICENSE.txt → 352.js.LICENSE.txt} +0 -0
- /package/dist/{3776.js.LICENSE.txt → 3564.js.LICENSE.txt} +0 -0
- /package/dist/{3845.js.LICENSE.txt → 3920.js.LICENSE.txt} +0 -0
- /package/dist/{4150.js.LICENSE.txt → 4064.js.LICENSE.txt} +0 -0
- /package/dist/{42.js.LICENSE.txt → 4443.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 → 6992.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 → 8188.js.LICENSE.txt} +0 -0
- /package/dist/{9330.js.LICENSE.txt → 8232.js.LICENSE.txt} +0 -0
- /package/dist/{9670.js.LICENSE.txt → 8248.js.LICENSE.txt} +0 -0
- /package/dist/{9700.js.LICENSE.txt → 828.js.LICENSE.txt} +0 -0
- /package/dist/{9727.js.LICENSE.txt → 8476.js.LICENSE.txt} +0 -0
- /package/dist/{9797.js.LICENSE.txt → 8524.js.LICENSE.txt} +0 -0
- /package/dist/{9865.js.LICENSE.txt → 9072.js.LICENSE.txt} +0 -0
- /package/dist/{9886.js.LICENSE.txt → 9088.js.LICENSE.txt} +0 -0
- /package/dist/{9912.js.LICENSE.txt → 9224.js.LICENSE.txt} +0 -0
package/dist/main.js.LICENSE.txt
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @remix-run/router v1.
|
|
36
|
+
* @remix-run/router v1.15.0
|
|
37
37
|
*
|
|
38
38
|
* Copyright (c) Remix Software Inc.
|
|
39
39
|
*
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
*/
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* React Router v6.
|
|
47
|
+
* React Router v6.22.0
|
|
48
48
|
*
|
|
49
49
|
* Copyright (c) Remix Software Inc.
|
|
50
50
|
*
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/sample-react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "This app contains samples for the KoliBri/Public UI",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@leanup/stack": "1.3.49",
|
|
8
8
|
"@leanup/stack-react": "1.3.49",
|
|
9
9
|
"@leanup/stack-webpack": "1.3.49",
|
|
10
|
-
"@public-ui/components": "2.0.
|
|
11
|
-
"@public-ui/react": "2.0.
|
|
12
|
-
"@public-ui/themes": "2.0.
|
|
13
|
-
"@types/node": "20.11.
|
|
14
|
-
"@types/react": "18.2.
|
|
15
|
-
"@types/react-dom": "18.2.
|
|
16
|
-
"@unocss/preset-uno": "0.58.
|
|
17
|
-
"@unocss/webpack": "0.58.
|
|
10
|
+
"@public-ui/components": "2.0.5",
|
|
11
|
+
"@public-ui/react": "2.0.5",
|
|
12
|
+
"@public-ui/themes": "2.0.5",
|
|
13
|
+
"@types/node": "20.11.17",
|
|
14
|
+
"@types/react": "18.2.55",
|
|
15
|
+
"@types/react-dom": "18.2.19",
|
|
16
|
+
"@unocss/preset-uno": "0.58.5",
|
|
17
|
+
"@unocss/webpack": "0.58.5",
|
|
18
18
|
"ajv": "8.12.0",
|
|
19
|
-
"chromedriver": "
|
|
19
|
+
"chromedriver": "121.0.0",
|
|
20
20
|
"cpy-cli": "5.0.0",
|
|
21
21
|
"eslint-plugin-jsx-a11y": "6.8.0",
|
|
22
22
|
"eslint-plugin-react": "7.33.2",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"npm-run-all": "4.1.5",
|
|
26
26
|
"react": "18.2.0",
|
|
27
27
|
"react-dom": "18.2.0",
|
|
28
|
-
"react-router": "6.
|
|
29
|
-
"react-router-dom": "6.
|
|
28
|
+
"react-router": "6.22.0",
|
|
29
|
+
"react-router-dom": "6.22.0",
|
|
30
30
|
"rimraf": "3.0.2",
|
|
31
31
|
"ts-prune": "0.10.3",
|
|
32
32
|
"typescript": "5.3.3",
|
|
33
|
-
"world_countries_lists": "2.
|
|
33
|
+
"world_countries_lists": "2.9.0",
|
|
34
34
|
"yup": "1.3.3"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
@@ -48,9 +48,8 @@
|
|
|
48
48
|
"webpack.config.js"
|
|
49
49
|
],
|
|
50
50
|
"scripts": {
|
|
51
|
-
"clean": "git clean -f -d -X",
|
|
52
|
-
"clean:locks": "rimraf package-lock.json pnpm-lock.yaml && npm run clean",
|
|
53
51
|
"build": "rimraf dist && cross-env NODE_ENV=production webpack",
|
|
52
|
+
"build:deps": "pnpm --filter @public-ui/sample-react^... build",
|
|
54
53
|
"format": "prettier --check src",
|
|
55
54
|
"lint": "eslint \"{src,tests}/**/*.{html,js,json,jsx,ts,tsx,gql,graphql}\"",
|
|
56
55
|
"serve": "cross-env NODE_ENV=development webpack serve --devtool=source-map",
|
package/src/App.tsx
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useLocation } from 'react-router';
|
|
2
4
|
import { Navigate, Route, Routes, useSearchParams } from 'react-router-dom';
|
|
3
|
-
import { Route as MyRoute, Routes as MyRoutes } from './shares/types';
|
|
4
5
|
|
|
5
|
-
import { Option } from '@public-ui/components';
|
|
6
|
-
import { KolAlert, KolBadge } from '@public-ui/react';
|
|
7
|
-
import { ROUTES } from './shares/routes';
|
|
8
|
-
import { isDraftTheme, Theme, THEME_OPTIONS } from './shares/theme';
|
|
9
6
|
import PackageJson from '@public-ui/components/package.json';
|
|
10
|
-
import {
|
|
7
|
+
import { KolAlert, KolBadge } from '@public-ui/react';
|
|
8
|
+
|
|
11
9
|
import { Sidebar } from './components/Sidebar';
|
|
12
|
-
import { useLocation } from 'react-router';
|
|
13
|
-
import { HideMenusContext } from './shares/HideMenusContext';
|
|
14
10
|
import { useSetCurrentLocation } from './hooks/useSetCurrentLocation';
|
|
11
|
+
import { HideMenusContext } from './shares/HideMenusContext';
|
|
12
|
+
import { ROUTES } from './shares/routes';
|
|
13
|
+
import { getTheme, getThemeName, setStorage, setTheme } from './shares/store';
|
|
14
|
+
import { isDraftTheme, THEME_OPTIONS } from './shares/theme';
|
|
15
|
+
import { BackPage } from './components/BackPage';
|
|
16
|
+
|
|
17
|
+
import type { Route as MyRoute, Routes as MyRoutes } from './shares/types';
|
|
15
18
|
|
|
19
|
+
import type { Option } from '@public-ui/components';
|
|
20
|
+
import type { Theme } from './shares/theme';
|
|
16
21
|
setStorage(localStorage);
|
|
17
22
|
|
|
18
23
|
const getRouteList = (routes: MyRoutes, offset = '/'): string[] => {
|
|
@@ -133,10 +138,11 @@ export const App: FC = () => {
|
|
|
133
138
|
)}
|
|
134
139
|
|
|
135
140
|
<div className="p-4" id="route-container">
|
|
136
|
-
{!hideMenus && isDraftTheme(theme) && <KolBadge className="mb-3" _label="DRAFT" _color="#db5461" />}
|
|
141
|
+
{!hideMenus && isDraftTheme(theme) && <KolBadge className="block mb-3" _label="DRAFT" _color="#db5461" />}
|
|
137
142
|
<Routes>
|
|
138
143
|
{ROUTE_TREE}
|
|
139
144
|
<Route path="*" element={<KolAlert _type="info">This code example has not been migrated yet - it's coming soon!</KolAlert>} />
|
|
145
|
+
<Route path="back-page" element={<BackPage />} />
|
|
140
146
|
</Routes>
|
|
141
147
|
</div>
|
|
142
148
|
</div>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { KolAlert, KolButton } from '@public-ui/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
import type { FC } from 'react';
|
|
5
|
+
|
|
6
|
+
export const BackPage: FC = () => {
|
|
7
|
+
const goBack = {
|
|
8
|
+
onClick: () => history.back(),
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<KolAlert _label="This is an example page" _level={0} _type="info">
|
|
13
|
+
<p>You followed an example link.</p>
|
|
14
|
+
{history.length > 1 && <KolButton _label="Go Back" _on={goBack} />}
|
|
15
|
+
</KolAlert>
|
|
16
|
+
);
|
|
17
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import React, { useRef } from 'react';
|
|
3
|
+
|
|
4
|
+
import type { RefComponent } from './types';
|
|
3
5
|
|
|
4
6
|
type FokusElementProps = {
|
|
5
7
|
RefComponent: RefComponent;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
1
3
|
import { KolButton, KolForm } from '@public-ui/react';
|
|
2
|
-
|
|
4
|
+
|
|
3
5
|
import { FocusElement } from './FocusInput';
|
|
4
|
-
|
|
6
|
+
|
|
7
|
+
import type { FC } from 'react';
|
|
8
|
+
import type { RefFormComponent } from './types';
|
|
5
9
|
|
|
6
10
|
type FormWrapProps = {
|
|
7
11
|
RefComponent: RefFormComponent;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import React, { useContext } from 'react';
|
|
3
|
+
|
|
2
4
|
import { KolIndentedText, KolLink } from '@public-ui/react';
|
|
5
|
+
|
|
3
6
|
import { HideMenusContext } from '../shares/HideMenusContext';
|
|
4
7
|
|
|
5
8
|
export const SampleDescription: FC<PropsWithChildren> = (props) => {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
|
|
2
4
|
import { KolAccordion, KolButton, KolHeading, KolLink, KolSelect, KolVersion } from '@public-ui/react';
|
|
3
|
-
|
|
4
|
-
import { Routes } from '../shares/types';
|
|
5
|
+
|
|
5
6
|
import { useMobile } from '../hooks/useMobile';
|
|
7
|
+
import { THEME_OPTIONS } from '../shares/theme';
|
|
6
8
|
|
|
9
|
+
import type { Routes } from '../shares/types';
|
|
7
10
|
type Props = {
|
|
8
11
|
version: string;
|
|
9
12
|
theme: string;
|
|
@@ -81,7 +84,12 @@ export const Sidebar: FC<Props> = ({ version, theme, routes, routeList, sample,
|
|
|
81
84
|
<ul className="list-inside ml p0">
|
|
82
85
|
{Object.keys(children).map((childName) => (
|
|
83
86
|
<li key={`${parentName}/${childName}`}>
|
|
84
|
-
|
|
87
|
+
{/* Handle special case for nested routes in tree example - this might need a proper refactoring in the future */}
|
|
88
|
+
{parentName === 'tree' && childName === 'basic/:subPage' ? (
|
|
89
|
+
<KolLink _label="basic" _href={`#/${parentName}/basic/home`} _on={{ onClick: handleLinkClick }} />
|
|
90
|
+
) : (
|
|
91
|
+
<KolLink _label={childName} _href={`#/${parentName}/${childName}`} _on={{ onClick: handleLinkClick }} />
|
|
92
|
+
)}
|
|
85
93
|
</li>
|
|
86
94
|
))}
|
|
87
95
|
</ul>
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
|
|
2
3
|
import { KolAccordion } from '@public-ui/react';
|
|
3
4
|
|
|
4
|
-
import { FC } from 'react';
|
|
5
|
+
import type { FC } from 'react';
|
|
5
6
|
|
|
6
7
|
export const AccordionBasic: FC = () => (
|
|
7
8
|
<div className="grid gap-4">
|
|
8
9
|
<KolAccordion _label="Überschrift Accordion Tab 1" _level={1}>
|
|
9
10
|
<div slot="">Inhalt Accordion Tab 1</div>
|
|
10
11
|
</KolAccordion>
|
|
11
|
-
<KolAccordion _label="Überschrift Accordion Tab 2" _level={1} _open>
|
|
12
|
+
<KolAccordion _disabled _label="Überschrift Accordion Tab 2 (deaktiviert)" _level={1} _open>
|
|
12
13
|
<div slot="">Inhalt Accordion Tab 2</div>
|
|
13
14
|
</KolAccordion>
|
|
14
15
|
<KolAccordion _label="Überschrift Accordion Tab 3" _level={1}>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
|
|
2
3
|
import { KolAlert } from '@public-ui/react';
|
|
3
4
|
|
|
4
|
-
import { FC } from 'react';
|
|
5
|
-
import { AlertType, AlertVariant, HeadingLevel } from '@public-ui/components';
|
|
5
|
+
import type { FC } from 'react';
|
|
6
|
+
import type { AlertType, AlertVariant, HeadingLevel } from '@public-ui/components';
|
|
6
7
|
|
|
7
8
|
type PropsByType = {
|
|
8
9
|
level: HeadingLevel;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
|
|
2
3
|
import { KolAlert } from '@public-ui/react';
|
|
3
4
|
|
|
4
|
-
import { FC } from 'react';
|
|
5
|
+
import type { FC } from 'react';
|
|
5
6
|
|
|
6
7
|
export const AlertHtml: FC = () => (
|
|
7
8
|
<div>
|
|
@@ -9,14 +10,14 @@ export const AlertHtml: FC = () => (
|
|
|
9
10
|
<h2 className="mt-2 mb-3">Hier wird eine H2-Überschrift ausgegeben</h2>
|
|
10
11
|
<div className="grid gap-4 sm:grid-cols-2">
|
|
11
12
|
<div>
|
|
12
|
-
<
|
|
13
|
+
<h3>Text in einer linken Spalte</h3>
|
|
13
14
|
<p>
|
|
14
15
|
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quidem sed fugiat dolorum ratione et, ullam officia nobis nihil debitis, consectetur dicta
|
|
15
16
|
accusantium. Vitae debitis, quibusdam vel recusandae deleniti placeat dolorem?
|
|
16
17
|
</p>
|
|
17
18
|
</div>
|
|
18
19
|
<div>
|
|
19
|
-
<
|
|
20
|
+
<h3>Text in einer rechten Spalte</h3>
|
|
20
21
|
<p>
|
|
21
22
|
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quod beatae officiis, velit nam dicta quae repellat perspiciatis explicabo illo. Possimus,
|
|
22
23
|
molestiae deleniti! Exercitationem blanditiis ducimus similique tempora ratione consequuntur eaque!
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
1
3
|
import { KolAvatar } from '@public-ui/react';
|
|
2
|
-
import React, { FC } from 'react';
|
|
3
4
|
|
|
5
|
+
import type { FC } from 'react';
|
|
4
6
|
export const AvatarBasic: FC = () => (
|
|
5
7
|
<div className="flex flex-wrap gap-4">
|
|
6
8
|
<KolAvatar _src="https://www.w3schools.com/howto/img_avatar.png" _label="Elke Mustermann" />
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
|
|
2
3
|
import { KolBreadcrumb } from '@public-ui/react';
|
|
3
4
|
|
|
4
|
-
import { FC } from 'react';
|
|
5
|
+
import type { FC } from 'react';
|
|
5
6
|
|
|
6
7
|
export const BreadcrumbBasic: FC = () => (
|
|
7
8
|
<div className="grid gap-4">
|
|
8
9
|
<KolBreadcrumb
|
|
9
10
|
_label="Breadcrumb aus Text-Links"
|
|
10
11
|
_links={[
|
|
11
|
-
{ _label: 'Startseite', _href: '#/' },
|
|
12
|
-
{ _label: 'Unterseite der Startseite', _href: '#/
|
|
12
|
+
{ _label: 'Startseite', _href: '#/back-page' },
|
|
13
|
+
{ _label: 'Unterseite der Startseite', _href: '#/back-page' },
|
|
13
14
|
{
|
|
14
15
|
_label: 'Unterseite der Unterseite',
|
|
15
|
-
_href: '#/
|
|
16
|
+
_href: '#/back-page',
|
|
16
17
|
},
|
|
17
18
|
]}
|
|
18
19
|
></KolBreadcrumb>
|
|
@@ -23,29 +24,29 @@ export const BreadcrumbBasic: FC = () => (
|
|
|
23
24
|
_label: 'Startseite',
|
|
24
25
|
_icons: 'codicon codicon-home',
|
|
25
26
|
_hideLabel: true,
|
|
26
|
-
_href: '#/',
|
|
27
|
+
_href: '#/back-page',
|
|
27
28
|
},
|
|
28
29
|
{
|
|
29
30
|
_label: 'Unterseite der Startseite mit sehr langem Link-Test',
|
|
30
|
-
_href: '#/
|
|
31
|
+
_href: '#/back-page',
|
|
31
32
|
},
|
|
32
33
|
{
|
|
33
34
|
_label: 'Unterseite der Unterseite',
|
|
34
|
-
_href: '#/
|
|
35
|
+
_href: '#/back-page',
|
|
35
36
|
},
|
|
36
37
|
]}
|
|
37
38
|
></KolBreadcrumb>
|
|
38
39
|
<KolBreadcrumb
|
|
39
40
|
_label="Breadcrumb aus Icons- und Text-Links"
|
|
40
41
|
_links={[
|
|
41
|
-
{ _label: 'Startseite', _icons: 'codicon codicon-home', _href: '#/' },
|
|
42
|
+
{ _label: 'Startseite', _icons: 'codicon codicon-home', _href: '#/back-page' },
|
|
42
43
|
{
|
|
43
44
|
_label: 'Unterseite der Startseite und ich_bin_ein_echt_langes_zusammengesetztes_Worte_und_versuche_das_Layout_zu_brechen',
|
|
44
|
-
_href: '#/
|
|
45
|
+
_href: '#/back-page',
|
|
45
46
|
},
|
|
46
47
|
{
|
|
47
48
|
_label: 'Unterseite der Unterseite',
|
|
48
|
-
_href: '#/
|
|
49
|
+
_href: '#/back-page',
|
|
49
50
|
},
|
|
50
51
|
]}
|
|
51
52
|
></KolBreadcrumb>
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
1
3
|
import { KolButton } from '@public-ui/react';
|
|
2
|
-
import React, { FC } from 'react';
|
|
3
4
|
|
|
5
|
+
import type { FC } from 'react';
|
|
4
6
|
export const ButtonAccessKey: FC = () => (
|
|
5
7
|
<div className="flex flex-wrap gap-4">
|
|
6
8
|
<KolButton _label="Mit S access key" _accessKey="S"></KolButton>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Components } from '@public-ui/components';
|
|
2
|
-
import { KolButton } from '@public-ui/react';
|
|
1
|
+
import type { Components } from '@public-ui/components';
|
|
3
2
|
import React, { forwardRef } from 'react';
|
|
4
3
|
|
|
4
|
+
import { KolButton } from '@public-ui/react';
|
|
5
|
+
|
|
5
6
|
export const ButtonCases = forwardRef<HTMLKolButtonElement, Components.KolButton>(function InputCheckboxCases(props, ref) {
|
|
6
7
|
return (
|
|
7
8
|
<div className="flex flex-wrap gap-4">
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Components } from '@public-ui/components';
|
|
1
|
+
import type { Components } from '@public-ui/components';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
+
|
|
3
4
|
import { ButtonCases } from './cases';
|
|
4
5
|
|
|
5
6
|
export const ButtonVariants = forwardRef<HTMLKolButtonElement, Components.KolButton>(function InputCheckboxVariant(props, ref) {
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { Routes } from '../../shares/types';
|
|
2
|
-
|
|
2
|
+
import { ButtonAccessKey } from './access-key';
|
|
3
|
+
import { ButtonBaselined } from './baselined';
|
|
3
4
|
import { ButtonBasic } from './basic';
|
|
4
|
-
|
|
5
5
|
import { ButtonIconOnly } from './hide-label';
|
|
6
|
-
|
|
7
6
|
import { ButtonIcons } from './icons';
|
|
8
|
-
|
|
9
7
|
import { ButtonWidth } from './width';
|
|
10
|
-
import { ButtonAccessKey } from './access-key';
|
|
11
|
-
import { ButtonBaselined } from './baselined';
|
|
12
8
|
|
|
13
9
|
export const BUTTON_ROUTES: Routes = {
|
|
14
10
|
button: {
|