@public-ui/sample-react 4.7.0-rc.2 → 4.7.0-rc.3
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/sample-react",
|
|
3
|
-
"version": "4.7.0-rc.
|
|
3
|
+
"version": "4.7.0-rc.3",
|
|
4
4
|
"description": "This app contains samples for the KoliBri/Public UI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "EUPL-1.2",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"typescript": "5.9.3",
|
|
21
21
|
"world_countries_lists": "3.3.0",
|
|
22
22
|
"zod": "4.6.7",
|
|
23
|
-
"@public-ui/react-
|
|
24
|
-
"@public-ui/react-
|
|
23
|
+
"@public-ui/react-hook-form-adapter": "4.7.0-rc.3",
|
|
24
|
+
"@public-ui/react-v19": "4.7.0-rc.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/react": "19.2.18",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"react": "19.2.8",
|
|
38
38
|
"react-dom": "19.2.8",
|
|
39
39
|
"react-router": "8.4.0",
|
|
40
|
-
"@public-ui/components": "4.7.0-rc.
|
|
40
|
+
"@public-ui/components": "4.7.0-rc.3"
|
|
41
41
|
},
|
|
42
42
|
"files": [
|
|
43
43
|
"assets",
|
package/src/scenarios/routes.ts
CHANGED
|
@@ -2,7 +2,6 @@ import type { Routes } from '../shares/types';
|
|
|
2
2
|
import { AccordionComponentContent } from './accordionComponentContent';
|
|
3
3
|
import { ButtonShortkeyTable } from './button-shortkey-table';
|
|
4
4
|
import { ChangeTabindex } from './change-tabindex';
|
|
5
|
-
import { CustomTooltipCssProperties } from './custom-tooltip-css-properties';
|
|
6
5
|
import { DateInForm } from './date-in-form';
|
|
7
6
|
import { DisabledInteractiveElements } from './disabled-interactive-elements';
|
|
8
7
|
import { FocusElements } from './focus-elements';
|
|
@@ -24,7 +23,6 @@ export const SCENARIO_ROUTES: Routes = {
|
|
|
24
23
|
scenarios: {
|
|
25
24
|
'button-shortkey-table': ButtonShortkeyTable,
|
|
26
25
|
'change-tabindex': ChangeTabindex,
|
|
27
|
-
'custom-tooltip-css-properties': CustomTooltipCssProperties,
|
|
28
26
|
'date-in-form': DateInForm,
|
|
29
27
|
'disabled-interactive-scenario': DisabledInteractiveElements,
|
|
30
28
|
'focus-elements': FocusElements,
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { FC } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
import { KolButton } from '@public-ui/react-v19';
|
|
5
|
-
import { SampleDescription } from '../components/SampleDescription';
|
|
6
|
-
import { useAlert } from '../hooks/useAlert';
|
|
7
|
-
|
|
8
|
-
export const CustomTooltipCssProperties: FC = () => {
|
|
9
|
-
const { dummyClickEventHandler } = useAlert();
|
|
10
|
-
|
|
11
|
-
const dummyEventHandler = {
|
|
12
|
-
onClick: dummyClickEventHandler,
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<>
|
|
17
|
-
<SampleDescription>
|
|
18
|
-
<p>
|
|
19
|
-
This sample demonstrates how tooltip animation duration and width can be customized via
|
|
20
|
-
<code>--kolibri-tooltip-animation-duration</code> and <code>--kol-tooltip-width</code>.
|
|
21
|
-
</p>
|
|
22
|
-
</SampleDescription>
|
|
23
|
-
|
|
24
|
-
<div className="flex justify-center items-center gap-4">
|
|
25
|
-
<KolButton
|
|
26
|
-
_label="Custom duration"
|
|
27
|
-
_hideLabel
|
|
28
|
-
style={{ '--kolibri-tooltip-animation-duration': '2500ms' }}
|
|
29
|
-
_icons="fa-solid fa-clock"
|
|
30
|
-
_on={dummyEventHandler}
|
|
31
|
-
></KolButton>
|
|
32
|
-
<KolButton _label="Custom width" _hideLabel style={{ '--kol-tooltip-width': '400px' }} _icons="kolicon-chevron-up" _on={dummyEventHandler}></KolButton>
|
|
33
|
-
</div>
|
|
34
|
-
</>
|
|
35
|
-
);
|
|
36
|
-
};
|