@konce-pt/react 0.14.0 → 0.15.1
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/card/llms.txt +0 -1
- package/dist/dialog/dialog.d.ts +8 -3
- package/dist/dialog/llms.txt +3 -0
- package/dist/splitter/llms.txt +0 -3
- package/package.json +14 -14
package/dist/card/llms.txt
CHANGED
|
@@ -16,7 +16,6 @@ Import: `import { KptCard } from '@konce-pt/react';`
|
|
|
16
16
|
- `variant`: 'elevated' | 'outlined' (default 'elevated')
|
|
17
17
|
- `header`: string - optional header text; use `<KptCard.Header>` for richer content
|
|
18
18
|
- `headingLevel`: 1-6 - makes `header` a heading of that level (`role="heading"` + `aria-level`)
|
|
19
|
-
- `headingLevel`: 1-6 - makes `header` a heading of that level (`role="heading"` + `aria-level`)
|
|
20
19
|
- `flush`: boolean - a body with no padding (for rich layouts that manage their own sections)
|
|
21
20
|
- `className`, `ref` and every other `<div>` prop go to the card root
|
|
22
21
|
|
package/dist/dialog/dialog.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
2
|
import { type KptI18nOverrides } from '../i18n/i18n-context.tsx';
|
|
3
|
-
/**
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Szerokość okna. `md` to wartość domyślna i zarazem jedyna, jaką okno miało wcześniej;
|
|
5
|
+
* `full` to cały ekran (bez ramki, zaokrągleń i marginesów).
|
|
6
|
+
*/
|
|
7
|
+
export type KptDialogSize = 'sm' | 'md' | 'lg' | 'full';
|
|
5
8
|
export interface KptDialogProps extends Omit<ComponentPropsWithRef<'dialog'>, 'open' | 'onClose'>, KptI18nOverrides {
|
|
6
9
|
open: boolean;
|
|
7
10
|
onOpenChange: (open: boolean) => void;
|
|
@@ -9,7 +12,9 @@ export interface KptDialogProps extends Omit<ComponentPropsWithRef<'dialog'>, 'o
|
|
|
9
12
|
/**
|
|
10
13
|
* Szerokość okna: `sm` 24rem, `md` 32rem (domyślna), `lg` 48rem - zawsze przycięta do szerokości
|
|
11
14
|
* okna przeglądarki. `lg` jest dla treści, której nie da się sensownie zwęzić: kodu, tabeli,
|
|
12
|
-
* porównania dwóch kolumn.
|
|
15
|
+
* porównania dwóch kolumn. `full` zajmuje cały ekran, a treść rośnie na całą wysokość - dla
|
|
16
|
+
* podglądu kamery, edytora albo okna, które na telefonie ma być osobnym ekranem
|
|
17
|
+
* (`[size]="phone() ? 'full' : 'md'"`).
|
|
13
18
|
*/
|
|
14
19
|
size?: KptDialogSize;
|
|
15
20
|
/** Pozwala zamknąć klawiszem Esc i przyciskiem x. */
|
package/dist/dialog/llms.txt
CHANGED
|
@@ -18,6 +18,9 @@ platform, not from our code. Import: `import { KptDialog } from '@konce-pt/react
|
|
|
18
18
|
on its own (Escape, the `close` event), and the state has to follow
|
|
19
19
|
- `header`: string - the title; with no header there is no header row and no x button
|
|
20
20
|
- `dismissible`: boolean (default true) - allows Escape and shows x
|
|
21
|
+
- `size`: 'sm' | 'md' | 'lg' | 'full' (default 'md') - 24rem / 32rem / 48rem, capped at the viewport;
|
|
22
|
+
`full` covers the whole screen (no border, radius or margin) and the body grows to the full height -
|
|
23
|
+
e.g. `size={phone ? 'full' : 'md'}` for a window that is its own screen on a phone
|
|
21
24
|
- `className`, `ref` and every other `<dialog>` prop go to the dialog
|
|
22
25
|
|
|
23
26
|
## Sub-components
|
package/dist/splitter/llms.txt
CHANGED
|
@@ -19,9 +19,6 @@ Import: `import { KptSplitter } from '@konce-pt/react';`
|
|
|
19
19
|
- `startSize` / `defaultStartSize` / `onStartSizeChange` - the first pane's size in percent
|
|
20
20
|
- `minSize`: number (percent, default 10) - neither pane goes below it
|
|
21
21
|
- `ariaLabel`: string - the handle's name; empty = `splitter.resize` from the dictionary
|
|
22
|
-
- `ariaLabel`: string - the handle's name; empty = `splitter.resize` from the dictionary
|
|
23
|
-
- `ariaLabel`: string - the handle's name; empty = `splitter.resize` from the dictionary
|
|
24
|
-
- `ariaLabel`: string - the handle's name; empty = `splitter.resize` from the dictionary
|
|
25
22
|
- `className`, `ref` and every other `<div>` prop go to the host
|
|
26
23
|
|
|
27
24
|
## Panes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konce-pt/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "Open-source React 19 component library on the Koncept UI design system - the same kpt-* CSS layer and --kpt-* tokens as the Angular port. Zero runtime dependencies.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "konce.pt",
|
|
@@ -65,19 +65,19 @@
|
|
|
65
65
|
"leaflet": "^1.9.0"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@konce-pt/
|
|
69
|
-
"@konce-pt/
|
|
70
|
-
"@konce-pt/
|
|
71
|
-
"@konce-pt/
|
|
72
|
-
"@konce-pt/
|
|
73
|
-
"@konce-pt/
|
|
74
|
-
"@konce-pt/
|
|
75
|
-
"@konce-pt/
|
|
76
|
-
"@konce-pt/
|
|
77
|
-
"@konce-pt/
|
|
78
|
-
"@konce-pt/tokens": "0.
|
|
79
|
-
"@konce-pt/
|
|
80
|
-
"@konce-pt/map": "0.
|
|
68
|
+
"@konce-pt/backdrop": "0.15.1",
|
|
69
|
+
"@konce-pt/chart": "0.15.1",
|
|
70
|
+
"@konce-pt/icons": "0.15.1",
|
|
71
|
+
"@konce-pt/mention": "0.15.1",
|
|
72
|
+
"@konce-pt/i18n": "0.15.1",
|
|
73
|
+
"@konce-pt/roadmap": "0.15.1",
|
|
74
|
+
"@konce-pt/datetime": "0.15.1",
|
|
75
|
+
"@konce-pt/speech": "0.15.1",
|
|
76
|
+
"@konce-pt/motion": "0.15.1",
|
|
77
|
+
"@konce-pt/table": "0.15.1",
|
|
78
|
+
"@konce-pt/tokens": "0.15.1",
|
|
79
|
+
"@konce-pt/chat": "0.15.1",
|
|
80
|
+
"@konce-pt/map": "0.15.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@types/react": "^19.2.0",
|