@photon-ai/pho-ui 4.14.0 → 4.16.0
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/chunks/{basic-page-6dDfY33L.js → basic-page-C0C8NDjG.js} +681 -661
- package/dist/chunks/basic-page-C0C8NDjG.js.map +1 -0
- package/dist/chunks/filter-bar-yEcG2pBm.js +287 -0
- package/dist/chunks/filter-bar-yEcG2pBm.js.map +1 -0
- package/dist/components/command.js +222 -3
- package/dist/components/command.js.map +1 -0
- package/dist/components/filter-bar.js +1 -1
- package/dist/index.js +2 -2
- package/dist/sections/basic-page.js +1 -1
- package/dist/src/components/filter-bar/filter-bar.d.ts +10 -6
- package/dist/src/sections/basic-page/basic-page.d.ts +12 -1
- package/package.json +1 -1
- package/dist/chunks/basic-page-6dDfY33L.js.map +0 -1
- package/dist/chunks/command-kB5bMvM1.js +0 -225
- package/dist/chunks/command-kB5bMvM1.js.map +0 -1
- package/dist/chunks/filter-bar-DuZXXvdm.js +0 -258
- package/dist/chunks/filter-bar-DuZXXvdm.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import { n as Es, t as _s } from "./chunks/date-picker-CZbcNIe-.js";
|
|
|
16
16
|
import { n as ms, t as As } from "./chunks/copy-button-D8XyP0oR.js";
|
|
17
17
|
import { a as Ts, c as ps, d as Rs, i as ls, l as Cs, n as us, o as Bs, r as fs, s as Ns, t as Ls, u as Ps } from "./chunks/sidebar-BP39w1iA.js";
|
|
18
18
|
import { t as Ds } from "./chunks/input-fFWvPJOf.js";
|
|
19
|
-
import { i as ds, n as Vs, r as gs, t as hs } from "./chunks/filter-bar-
|
|
19
|
+
import { i as ds, n as Vs, r as gs, t as hs } from "./chunks/filter-bar-yEcG2pBm.js";
|
|
20
20
|
import { i as Us } from "./chunks/data-table-hzZb7Otx.js";
|
|
21
21
|
import { n as bs, t as Fs } from "./chunks/stat-hnNqjWVG.js";
|
|
22
22
|
import { t as ks } from "./chunks/calendar-4OFiCLAv.js";
|
|
@@ -26,7 +26,7 @@ import { n as xs, t as zs } from "./chunks/card-N-tvFsuV.js";
|
|
|
26
26
|
import { n as Ys, t as Zs } from "./chunks/dialog-12foDiQb.js";
|
|
27
27
|
import { i as Js, n as Qs, r as qs, t as $s } from "./chunks/status-view-C8tabjDu.js";
|
|
28
28
|
import { t as st } from "./chunks/description-list-8qm83WZB.js";
|
|
29
|
-
import { a as rt, c as ot, d as et, f as it, i as St, l as Et, m as _t, n as nt, o as mt, p as At, r as It, s as Tt, t as pt, u as Rt } from "./chunks/basic-page-
|
|
29
|
+
import { a as rt, c as ot, d as et, f as it, i as St, l as Et, m as _t, n as nt, o as mt, p as At, r as It, s as Tt, t as pt, u as Rt } from "./chunks/basic-page-C0C8NDjG.js";
|
|
30
30
|
import { a as Ct, i as ut, n as Bt, o as ft, r as Nt, s as Lt, t as Pt } from "./chunks/chart-Dx3rjeFn.js";
|
|
31
31
|
import "./components/chart.js";
|
|
32
32
|
import { t as Ot } from "./chunks/bar-chart-By5gWQqP.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { i as s } from "../chunks/data-table-hzZb7Otx.js";
|
|
3
|
-
import { a as E, c as a, d as C, f as S, i as I, l as e, m as o, n as B, o as P, p as N, r, s as t, t as D, u as R } from "../chunks/basic-page-
|
|
3
|
+
import { a as E, c as a, d as C, f as S, i as I, l as e, m as o, n as B, o as P, p as N, r, s as t, t as D, u as R } from "../chunks/basic-page-C0C8NDjG.js";
|
|
4
4
|
export {
|
|
5
5
|
D as AUTO_SAVE_DELAY_MS,
|
|
6
6
|
B as BASIC_PAGE_CALLOUT,
|
|
@@ -3,18 +3,22 @@ import { ComponentProps, ReactNode, Ref } from 'react';
|
|
|
3
3
|
* Filter Bar — the row that pins above a log list: a search field for an
|
|
4
4
|
* id, then one chip per filter. A chip with nothing chosen reads
|
|
5
5
|
* `+ Status`; with a value it reads `Status: Failed` and carries its own
|
|
6
|
-
* clear. Each chip opens a
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* clear. Each chip opens a menu: a keyboard-first list of options (with a
|
|
7
|
+
* search field past eight of them), or presets and a from / to pair for a
|
|
8
|
+
* date range.
|
|
9
9
|
*
|
|
10
10
|
* Design notes:
|
|
11
|
+
* - Built from the library's own controls, nothing bespoke: a chip is an
|
|
12
|
+
* outlined `Button` (the clear beside it another), and what it opens is a
|
|
13
|
+
* `Menu` — so a chip's menu wears the same hairline, shadow and
|
|
14
|
+
* origin-scaled entrance as every other menu, in both themes.
|
|
11
15
|
* - Fully controlled. The page owns `filters` and `search` and hands
|
|
12
|
-
* them back changed; the bar keeps no state but which
|
|
16
|
+
* them back changed; the bar keeps no state but which menu is open.
|
|
13
17
|
* That keeps the query in one place (the URL, a store) and lets the
|
|
14
18
|
* list refetch from it.
|
|
15
19
|
* - Chips are real buttons (the trigger, and the clear beside it), so
|
|
16
|
-
* the bar is one tab stop per control and Escape closes a
|
|
17
|
-
*
|
|
20
|
+
* the bar is one tab stop per control and Escape closes a menu back
|
|
21
|
+
* onto its chip.
|
|
18
22
|
* - No scroll container of its own: chips wrap. `sticky` pins it to the
|
|
19
23
|
* top of the nearest scroll pane on the surface it sits on.
|
|
20
24
|
*/
|
|
@@ -844,8 +844,19 @@ declare function Saved({ name, className, ...props }: Omit<ComponentProps<"outpu
|
|
|
844
844
|
* label and hint; wrap other controls in `Field`. `Alert` and `Footer`
|
|
845
845
|
* sit inside, at the bottom — unlike a `Card` of rows, a sheet keeps its
|
|
846
846
|
* submit: the button's box lines up with the fields' edge.
|
|
847
|
+
*
|
|
848
|
+
* Height follows the sheet's contents on the page spring (the same
|
|
849
|
+
* measured path as `Card animateHeight`): a Reveal among the fields, an
|
|
850
|
+
* alert, or a row that grows never jumps the card.
|
|
847
851
|
*/
|
|
848
|
-
declare function Fields({ className, ...props }: ComponentProps<"div"> & {
|
|
852
|
+
declare function Fields({ animateHeight, className, children, ...props }: ComponentProps<"div"> & {
|
|
853
|
+
/**
|
|
854
|
+
* Follow the contents' height on the page spring. Pass `false` for a
|
|
855
|
+
* sheet whose changes already move on springs of their own (a `Scope`'s
|
|
856
|
+
* list, a `Card animateHeight`): following them too, the sheet's edge
|
|
857
|
+
* trails a beat behind and clips what sits at its foot. @default true
|
|
858
|
+
*/
|
|
859
|
+
animateHeight?: boolean;
|
|
849
860
|
ref?: Ref<HTMLDivElement>;
|
|
850
861
|
}): import("react").JSX.Element;
|
|
851
862
|
/** Fields side by side from `sm` (a first and last name), stacked below. */
|