@public-ui/sample-react 4.3.0-rc.7 → 4.3.0-rc.8
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/package.json +12 -11
- package/src/App.tsx +1 -2
- package/src/components/Navigation.tsx +1 -1
- package/src/components/SampleColumns.tsx +1 -1
- package/src/components/button/expert-slot.tsx +2 -3
- package/src/components/button/variants.tsx +1 -1
- package/src/components/drawer/basic.tsx +1 -1
- package/src/components/drawer/controlled.tsx +1 -1
- package/src/components/icon/font.tsx +1 -1
- package/src/components/link/link-react-router.tsx +1 -1
- package/src/components/link/variant.tsx +1 -1
- package/src/components/link-button/basic.tsx +1 -1
- package/src/components/toast/basic.tsx +1 -1
- package/src/components/toast/configurator.tsx +1 -1
- package/src/scenarios/focus-elements.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/sample-react",
|
|
3
|
-
"version": "4.3.0-rc.
|
|
3
|
+
"version": "4.3.0-rc.8",
|
|
4
4
|
"description": "This app contains samples for the KoliBri/Public UI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "EUPL-1.2",
|
|
@@ -13,31 +13,32 @@
|
|
|
13
13
|
"@stencil/core": "4.38.3",
|
|
14
14
|
"@types/node": "26.1.2",
|
|
15
15
|
"@types/papaparse": "5.5.2",
|
|
16
|
-
"@types/react": "19.2.17",
|
|
17
|
-
"@types/react-dom": "19.2.3",
|
|
18
|
-
"adopted-style-sheets": "1.1.9-rc.25",
|
|
19
16
|
"papaparse": "5.5.4",
|
|
20
|
-
"react": "19.2.8",
|
|
21
|
-
"react-dom": "19.2.8",
|
|
22
17
|
"react-hook-form": "7.83.0",
|
|
23
18
|
"react-number-format": "5.4.5",
|
|
24
|
-
"react-router": "8.3.0",
|
|
25
|
-
"react-router-dom": "7.18.2",
|
|
26
19
|
"tslib": "2.8.1",
|
|
27
20
|
"typescript": "5.9.3",
|
|
28
21
|
"world_countries_lists": "3.3.0",
|
|
29
22
|
"zod": "4.4.3",
|
|
30
|
-
"@public-ui/
|
|
31
|
-
"@public-ui/react-
|
|
32
|
-
"@public-ui/react-v19": "4.3.0-rc.7"
|
|
23
|
+
"@public-ui/react-hook-form-adapter": "4.3.0-rc.8",
|
|
24
|
+
"@public-ui/react-v19": "4.3.0-rc.8"
|
|
33
25
|
},
|
|
34
26
|
"devDependencies": {
|
|
27
|
+
"@types/react": "19.2.18",
|
|
28
|
+
"@types/react-dom": "19.2.4",
|
|
29
|
+
"adopted-style-sheets": "1.1.9-rc.25",
|
|
35
30
|
"eslint": "9.39.5",
|
|
36
31
|
"knip": "6.29.0",
|
|
37
32
|
"prettier": "3.9.6",
|
|
38
33
|
"prettier-plugin-organize-imports": "4.3.0",
|
|
39
34
|
"stylelint": "17.14.1"
|
|
40
35
|
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"react": "19.2.8",
|
|
38
|
+
"react-dom": "19.2.8",
|
|
39
|
+
"react-router": "8.3.0",
|
|
40
|
+
"@public-ui/components": "4.3.0-rc.8"
|
|
41
|
+
},
|
|
41
42
|
"files": [
|
|
42
43
|
"assets",
|
|
43
44
|
"src",
|
package/src/App.tsx
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
3
|
-
import { useLocation } from 'react-router';
|
|
4
|
-
import { Navigate, Route, Routes, useSearchParams } from 'react-router-dom';
|
|
3
|
+
import { Navigate, Route, Routes, useLocation, useSearchParams } from 'react-router';
|
|
5
4
|
|
|
6
5
|
import PackageJson from '@public-ui/components/package.json';
|
|
7
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { KolInputText, KolTree, KolTreeItem } from '@public-ui/react-v19';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useState } from 'react';
|
|
4
|
-
import { useHref, useMatch, useResolvedPath } from 'react-router
|
|
4
|
+
import { useHref, useMatch, useResolvedPath } from 'react-router';
|
|
5
5
|
import type { Route, Routes } from '../shares/types';
|
|
6
6
|
|
|
7
7
|
type NavigationProps = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type PropsWithChildren } from 'react';
|
|
2
|
-
import { useSearchParams } from 'react-router
|
|
2
|
+
import { useSearchParams } from 'react-router';
|
|
3
3
|
|
|
4
4
|
export function SampleColumns({ children }: PropsWithChildren) {
|
|
5
5
|
const [searchParams] = useSearchParams();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KolButton, KolHeading, KolIcon } from '@public-ui/react-v19';
|
|
2
2
|
import type { FC } from 'react';
|
|
3
|
-
import React
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import { useToasterService } from '../../hooks/useToasterService';
|
|
5
5
|
import { SampleDescription } from '../SampleDescription';
|
|
6
6
|
|
|
@@ -10,7 +10,6 @@ const KolTooltip = 'kol-tooltip-wc' as unknown as React.FC<{ _label: string }>;
|
|
|
10
10
|
|
|
11
11
|
export const ButtonExpertSlot: FC = () => {
|
|
12
12
|
const { dummyClickEventHandler } = useToasterService();
|
|
13
|
-
const iconButtonRef = useRef<HTMLElement>(null);
|
|
14
13
|
|
|
15
14
|
const dummyEventHandler = {
|
|
16
15
|
onClick: dummyClickEventHandler,
|
|
@@ -38,7 +37,7 @@ export const ButtonExpertSlot: FC = () => {
|
|
|
38
37
|
<KolButton _icons="kolicon-alert-warning" _label="" _variant="danger" _on={dummyEventHandler}>
|
|
39
38
|
<span slot="expert">Delete with custom text</span>
|
|
40
39
|
</KolButton>
|
|
41
|
-
<KolButton
|
|
40
|
+
<KolButton _label="" _variant="danger" _on={dummyEventHandler}>
|
|
42
41
|
<KolIcon _icons="kolicon-alert-warning" _label="Delete with custom text" slot="expert" />
|
|
43
42
|
</KolButton>
|
|
44
43
|
<KolTooltip _label="Delete with custom text" />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { KolButton, KolHeading } from '@public-ui/react-v19';
|
|
2
2
|
import type { FC } from 'react';
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
|
-
import { useSearchParams } from 'react-router
|
|
4
|
+
import { useSearchParams } from 'react-router';
|
|
5
5
|
import { useToasterService } from '../../hooks/useToasterService';
|
|
6
6
|
import { fetchVariantData } from '../../shares/fetchVariantData';
|
|
7
7
|
import { getCustomThemes } from '../../shares/store';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { useSearchParams } from 'react-router
|
|
3
|
+
import { useSearchParams } from 'react-router';
|
|
4
4
|
|
|
5
5
|
import type { AlignPropType } from '@public-ui/components';
|
|
6
6
|
import { KolButton, KolDrawer, KolInputCheckbox } from '@public-ui/react-v19';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import { useSearchParams } from 'react-router
|
|
3
|
+
import { useSearchParams } from 'react-router';
|
|
4
4
|
|
|
5
5
|
import type { AlignPropType } from '@public-ui/components';
|
|
6
6
|
import { KolButton, KolDrawer } from '@public-ui/react-v19';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { KolLink } from '@public-ui/react-v19';
|
|
2
2
|
import type { FC } from 'react';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { useNavigate } from 'react-router
|
|
4
|
+
import { useNavigate } from 'react-router';
|
|
5
5
|
import { SampleDescription } from '../SampleDescription';
|
|
6
6
|
|
|
7
7
|
export const LinkReactRouter: FC = () => {
|
|
@@ -3,7 +3,7 @@ import React, { useMemo } from 'react';
|
|
|
3
3
|
import { KolLinkButton } from '@public-ui/react-v19';
|
|
4
4
|
|
|
5
5
|
import type { FC } from 'react';
|
|
6
|
-
import { useSearchParams } from 'react-router
|
|
6
|
+
import { useSearchParams } from 'react-router';
|
|
7
7
|
import { useToasterService } from '../../hooks/useToasterService';
|
|
8
8
|
import { fetchVariantData } from '../../shares/fetchVariantData';
|
|
9
9
|
import { getCustomThemes } from '../../shares/store';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import { useSearchParams } from 'react-router
|
|
2
|
+
import { useSearchParams } from 'react-router';
|
|
3
3
|
|
|
4
4
|
import type { AlertTypePropType } from '@public-ui/components';
|
|
5
5
|
import { ToasterService } from '@public-ui/components';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
2
|
-
import { useSearchParams } from 'react-router
|
|
2
|
+
import { useSearchParams } from 'react-router';
|
|
3
3
|
|
|
4
4
|
import type { AlertTypePropType } from '@public-ui/components';
|
|
5
5
|
import { ToasterService } from '@public-ui/components';
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from '@public-ui/react-v19';
|
|
34
34
|
import type { FC, ForwardRefRenderFunction } from 'react';
|
|
35
35
|
import React, { forwardRef, useCallback, useMemo } from 'react';
|
|
36
|
-
import { useSearchParams } from 'react-router
|
|
36
|
+
import { useSearchParams } from 'react-router';
|
|
37
37
|
import { SampleDescription } from '../components/SampleDescription';
|
|
38
38
|
|
|
39
39
|
const getFocusElements = () => {
|