@orianatech/pire 1.6.0 → 2.1.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/components/core/Button.d.cts +12 -0
- package/dist/components/core/Button.d.ts +12 -0
- package/dist/components/core/Button.d.ts.map +1 -1
- package/dist/components/core/ComingSoonMark.d.cts +39 -0
- package/dist/components/core/ComingSoonMark.d.ts +40 -0
- package/dist/components/core/ComingSoonMark.d.ts.map +1 -0
- package/dist/components/data/DataTable.d.cts +35 -1
- package/dist/components/data/DataTable.d.ts +35 -1
- package/dist/components/data/DataTable.d.ts.map +1 -1
- package/dist/components/forms/ChoiceCardGroup.d.cts +11 -1
- package/dist/components/forms/ChoiceCardGroup.d.ts +11 -1
- package/dist/components/forms/ChoiceCardGroup.d.ts.map +1 -1
- package/dist/components/forms/ComboBox.d.cts +11 -1
- package/dist/components/forms/ComboBox.d.ts +11 -1
- package/dist/components/forms/ComboBox.d.ts.map +1 -1
- package/dist/components/forms/DatePicker.d.cts +11 -1
- package/dist/components/forms/DatePicker.d.ts +11 -1
- package/dist/components/forms/DatePicker.d.ts.map +1 -1
- package/dist/components/forms/DateRangePicker.d.cts +11 -1
- package/dist/components/forms/DateRangePicker.d.ts +11 -1
- package/dist/components/forms/DateRangePicker.d.ts.map +1 -1
- package/dist/components/forms/FieldDescription.d.cts +16 -0
- package/dist/components/forms/FieldDescription.d.ts +17 -0
- package/dist/components/forms/FieldDescription.d.ts.map +1 -0
- package/dist/components/forms/FieldHelp.d.cts +19 -0
- package/dist/components/forms/FieldHelp.d.ts +20 -0
- package/dist/components/forms/FieldHelp.d.ts.map +1 -0
- package/dist/components/forms/FieldLabel.d.cts +36 -0
- package/dist/components/forms/FieldLabel.d.ts +37 -0
- package/dist/components/forms/FieldLabel.d.ts.map +1 -0
- package/dist/components/forms/FormField.d.cts +10 -1
- package/dist/components/forms/FormField.d.ts +10 -1
- package/dist/components/forms/FormField.d.ts.map +1 -1
- package/dist/components/forms/Input.d.cts +11 -1
- package/dist/components/forms/Input.d.ts +11 -1
- package/dist/components/forms/Input.d.ts.map +1 -1
- package/dist/components/forms/MultiComboBox.d.cts +11 -1
- package/dist/components/forms/MultiComboBox.d.ts +11 -1
- package/dist/components/forms/MultiComboBox.d.ts.map +1 -1
- package/dist/components/forms/NumberField.d.cts +11 -1
- package/dist/components/forms/NumberField.d.ts +11 -1
- package/dist/components/forms/NumberField.d.ts.map +1 -1
- package/dist/components/forms/Select.d.cts +38 -4
- package/dist/components/forms/Select.d.ts +38 -4
- package/dist/components/forms/Select.d.ts.map +1 -1
- package/dist/components/forms/TextArea.d.cts +11 -1
- package/dist/components/forms/TextArea.d.ts +11 -1
- package/dist/components/forms/TextArea.d.ts.map +1 -1
- package/dist/components/layout/SelectionBar.d.cts +31 -4
- package/dist/components/layout/SelectionBar.d.ts +31 -4
- package/dist/components/layout/SelectionBar.d.ts.map +1 -1
- package/dist/components/navigation/Breadcrumb.d.cts +12 -2
- package/dist/components/navigation/Breadcrumb.d.ts +12 -2
- package/dist/components/navigation/Breadcrumb.d.ts.map +1 -1
- package/dist/components/navigation/Ribbon.d.cts +27 -0
- package/dist/components/navigation/Ribbon.d.ts +27 -0
- package/dist/components/navigation/Ribbon.d.ts.map +1 -1
- package/dist/components/navigation/ShellBar.d.cts +19 -1
- package/dist/components/navigation/ShellBar.d.ts +19 -1
- package/dist/components/navigation/ShellBar.d.ts.map +1 -1
- package/dist/components/patterns/SidePanel.d.cts +17 -3
- package/dist/components/patterns/SidePanel.d.ts +17 -3
- package/dist/components/patterns/SidePanel.d.ts.map +1 -1
- package/dist/components/utils/devWarn.d.cts +9 -0
- package/dist/components/utils/devWarn.d.ts +10 -0
- package/dist/components/utils/devWarn.d.ts.map +1 -0
- package/dist/components.css +224 -2
- package/dist/i18n/messages.d.cts +37 -1
- package/dist/i18n/messages.d.ts +37 -1
- package/dist/i18n/messages.d.ts.map +1 -1
- package/dist/index.cjs +1617 -1107
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1523 -1026
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface BreadcrumbItem {
|
|
3
3
|
id?: string;
|
|
4
4
|
label: string;
|
|
@@ -8,7 +8,17 @@ export interface BreadcrumbProps {
|
|
|
8
8
|
/** Ordered trail, current page last. The last item is never a link. */
|
|
9
9
|
items: BreadcrumbItem[];
|
|
10
10
|
onNavigate?: (id: string) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Keeps the trail on one line however narrow its container gets. When the whole trail does not
|
|
13
|
+
* fit, the middle steps fold into a "…" button that opens them as a menu, keeping the first and
|
|
14
|
+
* current steps on screen. On a phone-narrow container the first step folds in too. The current
|
|
15
|
+
* step is never folded: it truncates with an ellipsis instead, its full text kept in `title`.
|
|
16
|
+
*
|
|
17
|
+
* Off by default, where the trail wraps instead. `ShellBar`'s `breadcrumb` turns it on, because
|
|
18
|
+
* a 48px bar has no second line to wrap onto.
|
|
19
|
+
*/
|
|
20
|
+
isCollapsible?: boolean;
|
|
11
21
|
className?: string;
|
|
12
22
|
style?: React.CSSProperties;
|
|
13
23
|
}
|
|
14
|
-
export declare function Breadcrumb({ items, onNavigate, className, style }: BreadcrumbProps): React.JSX.Element;
|
|
24
|
+
export declare function Breadcrumb({ items, onNavigate, isCollapsible, className, style }: BreadcrumbProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface BreadcrumbItem {
|
|
3
3
|
id?: string;
|
|
4
4
|
label: string;
|
|
@@ -8,8 +8,18 @@ export interface BreadcrumbProps {
|
|
|
8
8
|
/** Ordered trail, current page last. The last item is never a link. */
|
|
9
9
|
items: BreadcrumbItem[];
|
|
10
10
|
onNavigate?: (id: string) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Keeps the trail on one line however narrow its container gets. When the whole trail does not
|
|
13
|
+
* fit, the middle steps fold into a "…" button that opens them as a menu, keeping the first and
|
|
14
|
+
* current steps on screen. On a phone-narrow container the first step folds in too. The current
|
|
15
|
+
* step is never folded: it truncates with an ellipsis instead, its full text kept in `title`.
|
|
16
|
+
*
|
|
17
|
+
* Off by default, where the trail wraps instead. `ShellBar`'s `breadcrumb` turns it on, because
|
|
18
|
+
* a 48px bar has no second line to wrap onto.
|
|
19
|
+
*/
|
|
20
|
+
isCollapsible?: boolean;
|
|
11
21
|
className?: string;
|
|
12
22
|
style?: React.CSSProperties;
|
|
13
23
|
}
|
|
14
|
-
export declare function Breadcrumb({ items, onNavigate, className, style }: BreadcrumbProps): React.JSX.Element;
|
|
24
|
+
export declare function Breadcrumb({ items, onNavigate, isCollapsible, className, style }: BreadcrumbProps): React.JSX.Element;
|
|
15
25
|
//# sourceMappingURL=Breadcrumb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/Breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,
|
|
1
|
+
{"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/Breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/B,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,uEAAuE;IACvE,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AA0CD,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,eAAe,qBAiHjG"}
|
|
@@ -13,6 +13,33 @@ export interface RibbonCommandProps {
|
|
|
13
13
|
/** Disables the command while nothing is selected. Use it for anything that acts *on rows* —
|
|
14
14
|
* a command that fires against an empty selection is the bug this prevents. */
|
|
15
15
|
requiresSelection?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* An action the product will have but does not have yet: drawn in the tertiary ink with a "Soon"
|
|
18
|
+
* mark, in the band and in the collapsed bar, focusable with `aria-disabled="true"`, and never
|
|
19
|
+
* pressed. See `Button`'s `isComingSoon` for why this is not `isDisabled`.
|
|
20
|
+
*
|
|
21
|
+
* `requiresSelection` never brings it to life — an action that does not exist does not start
|
|
22
|
+
* existing because rows were selected.
|
|
23
|
+
*/
|
|
24
|
+
isComingSoon?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The screen's main action — "Nuevo presupuesto", "Facturar", "Aprobar". Declared once and drawn
|
|
27
|
+
* in the primary fill in both modes: as the first large tile of its group while the ribbon is
|
|
28
|
+
* open (it is always `lg`, whatever `size` says), and at the very front of the collapsed bar,
|
|
29
|
+
* before `leading`, without needing `inBar`.
|
|
30
|
+
*
|
|
31
|
+
* One per ribbon. It is what `leading` was being borrowed for, and `leading` keeps its own job:
|
|
32
|
+
* row context such as the saved-view chip, not an action. Ignored on a contextual tab's commands,
|
|
33
|
+
* which never reach the bar.
|
|
34
|
+
*/
|
|
35
|
+
isPrimary?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Explanation shown on hover and on keyboard focus. Commands are configuration elements, so a
|
|
38
|
+
* `Tooltip` cannot be wrapped around one from outside; this is the slot instead. Its natural
|
|
39
|
+
* partner is `isComingSoon` — "Sends the order PDF to the customer's WhatsApp" — but any command
|
|
40
|
+
* can carry one.
|
|
41
|
+
*/
|
|
42
|
+
tooltip?: React.ReactNode;
|
|
16
43
|
/** Also shows the command in the collapsed bar. Reserve it for the handful a user reaches for
|
|
17
44
|
* without opening the ribbon; a bar that carries everything is the ribbon again, in one row. */
|
|
18
45
|
inBar?: boolean;
|
|
@@ -13,6 +13,33 @@ export interface RibbonCommandProps {
|
|
|
13
13
|
/** Disables the command while nothing is selected. Use it for anything that acts *on rows* —
|
|
14
14
|
* a command that fires against an empty selection is the bug this prevents. */
|
|
15
15
|
requiresSelection?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* An action the product will have but does not have yet: drawn in the tertiary ink with a "Soon"
|
|
18
|
+
* mark, in the band and in the collapsed bar, focusable with `aria-disabled="true"`, and never
|
|
19
|
+
* pressed. See `Button`'s `isComingSoon` for why this is not `isDisabled`.
|
|
20
|
+
*
|
|
21
|
+
* `requiresSelection` never brings it to life — an action that does not exist does not start
|
|
22
|
+
* existing because rows were selected.
|
|
23
|
+
*/
|
|
24
|
+
isComingSoon?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The screen's main action — "Nuevo presupuesto", "Facturar", "Aprobar". Declared once and drawn
|
|
27
|
+
* in the primary fill in both modes: as the first large tile of its group while the ribbon is
|
|
28
|
+
* open (it is always `lg`, whatever `size` says), and at the very front of the collapsed bar,
|
|
29
|
+
* before `leading`, without needing `inBar`.
|
|
30
|
+
*
|
|
31
|
+
* One per ribbon. It is what `leading` was being borrowed for, and `leading` keeps its own job:
|
|
32
|
+
* row context such as the saved-view chip, not an action. Ignored on a contextual tab's commands,
|
|
33
|
+
* which never reach the bar.
|
|
34
|
+
*/
|
|
35
|
+
isPrimary?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Explanation shown on hover and on keyboard focus. Commands are configuration elements, so a
|
|
38
|
+
* `Tooltip` cannot be wrapped around one from outside; this is the slot instead. Its natural
|
|
39
|
+
* partner is `isComingSoon` — "Sends the order PDF to the customer's WhatsApp" — but any command
|
|
40
|
+
* can carry one.
|
|
41
|
+
*/
|
|
42
|
+
tooltip?: React.ReactNode;
|
|
16
43
|
/** Also shows the command in the collapsed bar. Reserve it for the handful a user reaches for
|
|
17
44
|
* without opening the ribbon; a bar that carries everything is the ribbon again, in one row. */
|
|
18
45
|
inBar?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ribbon.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/Ribbon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Ribbon.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/Ribbon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,kBAAkB;IACjC;6FACyF;IACzF,KAAK,EAAE,MAAM,CAAC;IACd,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;kGAC8F;IAC9F,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;oFACgF;IAChF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;qGACiG;IACjG,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B;yEACqE;IACrE,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd;wFACoF;IACpF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,WAAW;IAC1B,6FAA6F;IAC7F,YAAY,EAAE,MAAM,CAAC;IACrB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,mGAAmG;IACnG,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD;;kBAEc;IACd,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,iGAAiG;IACjG,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;4FACwF;IACxF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAqBD,0BAA0B;AAC1B,eAAO,MAAM,SAAS,EAAsC,CAAC,KAAK,EAAE,cAAc,KAAK,KAAK,CAAC,YAAY,CAAC;AAC1G,4BAA4B;AAC5B,eAAO,MAAM,WAAW,EAA4C,CAClE,KAAK,EAAE,gBAAgB,KACpB,KAAK,CAAC,YAAY,CAAC;AACxB,8BAA8B;AAC9B,eAAO,MAAM,aAAa,EAAgD,CACxE,KAAK,EAAE,kBAAkB,KACtB,KAAK,CAAC,YAAY,CAAC;AAsQxB;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,OAAO,EACP,OAAO,EACP,cAAc,EACd,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,WAAW,qBAmLb;yBAhMe,MAAM;aAkMT,SAAS;aACP,WAAW;aACT,aAAa"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
+
import { type BreadcrumbItem } from './Breadcrumb.cjs';
|
|
2
3
|
export interface ShellBarProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
|
|
3
4
|
/** Wordmark at far left, uppercase micro-caps. */
|
|
4
5
|
product?: string;
|
|
@@ -6,6 +7,23 @@ export interface ShellBarProps extends Omit<React.HTMLAttributes<HTMLElement>, '
|
|
|
6
7
|
monogram?: string;
|
|
7
8
|
/** Current app or object title. */
|
|
8
9
|
title?: React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Where the user is — "Ventas › Órdenes de venta › OV-000128" — drawn after `product`, behind a
|
|
12
|
+
* separator, in the bar's own colours. Current step last; it is marked `aria-current="page"` and
|
|
13
|
+
* is never a link. `href`s navigate through `RouterProvider`, like every other Pire link.
|
|
14
|
+
*
|
|
15
|
+
* The trail is the part of the bar that gives way: it takes the room the actions leave, folds its
|
|
16
|
+
* middle steps into a "…" menu when it does not fit, and then truncates the current step with an
|
|
17
|
+
* ellipsis. A screen that draws its own `Breadcrumb` above the page can drop it — the bar keeps
|
|
18
|
+
* the trail in one place on every screen without costing a row of height.
|
|
19
|
+
*
|
|
20
|
+
* Prefer this to putting a `Breadcrumb` in `title`, which sets it in bold, on the page's link
|
|
21
|
+
* colours, and with no width management.
|
|
22
|
+
*/
|
|
23
|
+
breadcrumb?: BreadcrumbItem[];
|
|
24
|
+
/** Called with a step's `id` (or its `label` when it has none) when it is pressed — for a step
|
|
25
|
+
* without an `href`, or to observe navigation. Same contract as `Breadcrumb`'s `onNavigate`. */
|
|
26
|
+
onBreadcrumbNavigate?: (id: string) => void;
|
|
9
27
|
/**
|
|
10
28
|
* The leftmost cell of the bar — pass an `AppLauncher`.
|
|
11
29
|
*
|
|
@@ -41,4 +59,4 @@ export interface ShellBarProps extends Omit<React.HTMLAttributes<HTMLElement>, '
|
|
|
41
59
|
userMenuLabel?: string;
|
|
42
60
|
}
|
|
43
61
|
/** Fixed 48px application chrome. One per page, always the first landmark. */
|
|
44
|
-
export declare function ShellBar({ launcher, product, monogram, title, onMenu, onSearch, menuLabel, searchLabel, actions, user, userMenu, userMenuLabel, className, ...rest }: ShellBarProps): React.JSX.Element;
|
|
62
|
+
export declare function ShellBar({ launcher, product, monogram, title, breadcrumb, onBreadcrumbNavigate, onMenu, onSearch, menuLabel, searchLabel, actions, user, userMenu, userMenuLabel, className, ...rest }: ShellBarProps): React.JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
+
import { type BreadcrumbItem } from './Breadcrumb.js';
|
|
2
3
|
export interface ShellBarProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
|
|
3
4
|
/** Wordmark at far left, uppercase micro-caps. */
|
|
4
5
|
product?: string;
|
|
@@ -6,6 +7,23 @@ export interface ShellBarProps extends Omit<React.HTMLAttributes<HTMLElement>, '
|
|
|
6
7
|
monogram?: string;
|
|
7
8
|
/** Current app or object title. */
|
|
8
9
|
title?: React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Where the user is — "Ventas › Órdenes de venta › OV-000128" — drawn after `product`, behind a
|
|
12
|
+
* separator, in the bar's own colours. Current step last; it is marked `aria-current="page"` and
|
|
13
|
+
* is never a link. `href`s navigate through `RouterProvider`, like every other Pire link.
|
|
14
|
+
*
|
|
15
|
+
* The trail is the part of the bar that gives way: it takes the room the actions leave, folds its
|
|
16
|
+
* middle steps into a "…" menu when it does not fit, and then truncates the current step with an
|
|
17
|
+
* ellipsis. A screen that draws its own `Breadcrumb` above the page can drop it — the bar keeps
|
|
18
|
+
* the trail in one place on every screen without costing a row of height.
|
|
19
|
+
*
|
|
20
|
+
* Prefer this to putting a `Breadcrumb` in `title`, which sets it in bold, on the page's link
|
|
21
|
+
* colours, and with no width management.
|
|
22
|
+
*/
|
|
23
|
+
breadcrumb?: BreadcrumbItem[];
|
|
24
|
+
/** Called with a step's `id` (or its `label` when it has none) when it is pressed — for a step
|
|
25
|
+
* without an `href`, or to observe navigation. Same contract as `Breadcrumb`'s `onNavigate`. */
|
|
26
|
+
onBreadcrumbNavigate?: (id: string) => void;
|
|
9
27
|
/**
|
|
10
28
|
* The leftmost cell of the bar — pass an `AppLauncher`.
|
|
11
29
|
*
|
|
@@ -41,5 +59,5 @@ export interface ShellBarProps extends Omit<React.HTMLAttributes<HTMLElement>, '
|
|
|
41
59
|
userMenuLabel?: string;
|
|
42
60
|
}
|
|
43
61
|
/** Fixed 48px application chrome. One per page, always the first landmark. */
|
|
44
|
-
export declare function ShellBar({ launcher, product, monogram, title, onMenu, onSearch, menuLabel, searchLabel, actions, user, userMenu, userMenuLabel, className, ...rest }: ShellBarProps): React.JSX.Element;
|
|
62
|
+
export declare function ShellBar({ launcher, product, monogram, title, breadcrumb, onBreadcrumbNavigate, onMenu, onSearch, menuLabel, searchLabel, actions, user, userMenu, userMenuLabel, className, ...rest }: ShellBarProps): React.JSX.Element;
|
|
45
63
|
//# sourceMappingURL=ShellBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShellBar.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/ShellBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ShellBar.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/ShellBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAI/D,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IACrF,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mCAAmC;IACnC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAC9B;qGACiG;IACjG,oBAAoB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;kGAC8F;IAC9F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;oEAEgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;mGAC+F;IAC/F,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAWD,8EAA8E;AAC9E,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,KAAK,EACL,UAAU,EACV,oBAAoB,EACpB,MAAM,EACN,QAAQ,EACR,SAA6B,EAC7B,WAAsB,EACtB,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,SAAS,EACT,GAAG,IAAI,EACR,EAAE,aAAa,qBAgDf"}
|
|
@@ -1,14 +1,28 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface SidePanelProps {
|
|
3
3
|
isOpen?: boolean;
|
|
4
4
|
title?: React.ReactNode;
|
|
5
5
|
subtitle?: React.ReactNode;
|
|
6
6
|
/** Panel width in px. 400 default; 560 for editable forms. */
|
|
7
7
|
width?: number;
|
|
8
|
+
/**
|
|
9
|
+
* `modal` (default) overlays the page: a scrim, a focus trap, the list behind it inert. Right for
|
|
10
|
+
* a detail that interrupts.
|
|
11
|
+
*
|
|
12
|
+
* `docked` puts the panel *in the flow* — place it beside the table in a flex row — with no scrim
|
|
13
|
+
* and no trap, so the list stays usable and choosing another row switches the record being
|
|
14
|
+
* edited. Right for a 4–8 field master (categories, cost centres, cash boxes) that has no page of
|
|
15
|
+
* its own. `Escape` inside the panel still calls `onClose`.
|
|
16
|
+
*
|
|
17
|
+
* Opening a docked panel does not move focus: it opens because the user picked a row, and pulling
|
|
18
|
+
* them out of the table each time they pick another would make the list unusable from the
|
|
19
|
+
* keyboard. At a phone's width (600px or less) the panel falls back to the modal presentation.
|
|
20
|
+
*/
|
|
21
|
+
presentation?: 'modal' | 'docked';
|
|
8
22
|
children?: React.ReactNode;
|
|
9
23
|
footer?: React.ReactNode;
|
|
10
24
|
onClose?: () => void;
|
|
11
25
|
className?: string;
|
|
12
26
|
}
|
|
13
|
-
/** Right-hand
|
|
14
|
-
export declare function SidePanel({ isOpen, title, subtitle, width, children, footer, onClose, className, }: SidePanelProps): React.JSX.Element;
|
|
27
|
+
/** Right-hand panel for details and edits that must keep the list in view. */
|
|
28
|
+
export declare function SidePanel({ isOpen, title, subtitle, width, presentation, children, footer, onClose, className, }: SidePanelProps): React.JSX.Element | null;
|
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface SidePanelProps {
|
|
3
3
|
isOpen?: boolean;
|
|
4
4
|
title?: React.ReactNode;
|
|
5
5
|
subtitle?: React.ReactNode;
|
|
6
6
|
/** Panel width in px. 400 default; 560 for editable forms. */
|
|
7
7
|
width?: number;
|
|
8
|
+
/**
|
|
9
|
+
* `modal` (default) overlays the page: a scrim, a focus trap, the list behind it inert. Right for
|
|
10
|
+
* a detail that interrupts.
|
|
11
|
+
*
|
|
12
|
+
* `docked` puts the panel *in the flow* — place it beside the table in a flex row — with no scrim
|
|
13
|
+
* and no trap, so the list stays usable and choosing another row switches the record being
|
|
14
|
+
* edited. Right for a 4–8 field master (categories, cost centres, cash boxes) that has no page of
|
|
15
|
+
* its own. `Escape` inside the panel still calls `onClose`.
|
|
16
|
+
*
|
|
17
|
+
* Opening a docked panel does not move focus: it opens because the user picked a row, and pulling
|
|
18
|
+
* them out of the table each time they pick another would make the list unusable from the
|
|
19
|
+
* keyboard. At a phone's width (600px or less) the panel falls back to the modal presentation.
|
|
20
|
+
*/
|
|
21
|
+
presentation?: 'modal' | 'docked';
|
|
8
22
|
children?: React.ReactNode;
|
|
9
23
|
footer?: React.ReactNode;
|
|
10
24
|
onClose?: () => void;
|
|
11
25
|
className?: string;
|
|
12
26
|
}
|
|
13
|
-
/** Right-hand
|
|
14
|
-
export declare function SidePanel({ isOpen, title, subtitle, width, children, footer, onClose, className, }: SidePanelProps): React.JSX.Element;
|
|
27
|
+
/** Right-hand panel for details and edits that must keep the list in view. */
|
|
28
|
+
export declare function SidePanel({ isOpen, title, subtitle, width, presentation, children, footer, onClose, className, }: SidePanelProps): React.JSX.Element | null;
|
|
15
29
|
//# sourceMappingURL=SidePanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidePanel.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/SidePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,
|
|
1
|
+
{"version":3,"file":"SidePanel.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/SidePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAYD,8EAA8E;AAC9E,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,KAAK,EACL,QAAQ,EACR,KAAW,EACX,YAAsB,EACtB,QAAQ,EACR,MAAM,EACN,OAAO,EACP,SAAS,GACV,EAAE,cAAc,4BAyEhB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Dev-only diagnostics. Every bundler replaces `process.env.NODE_ENV` statically, so the
|
|
2
|
+
* warnings and their registry are dead code a minifier drops from production builds. Do *not*
|
|
3
|
+
* wrap this in `typeof process !== 'undefined'`: `process` is genuinely undefined in the
|
|
4
|
+
* browser, the `typeof` test is not something a bundler substitutes, and the guard would
|
|
5
|
+
* evaluate false in development — silencing the warnings this exists to emit. */
|
|
6
|
+
export declare const IS_DEV: boolean;
|
|
7
|
+
/** One warning per distinct cause. Fields re-render on every keystroke, so warning per render
|
|
8
|
+
* would bury the message in its own repetitions. */
|
|
9
|
+
export declare function warnOnce(key: string, message: string): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Dev-only diagnostics. Every bundler replaces `process.env.NODE_ENV` statically, so the
|
|
2
|
+
* warnings and their registry are dead code a minifier drops from production builds. Do *not*
|
|
3
|
+
* wrap this in `typeof process !== 'undefined'`: `process` is genuinely undefined in the
|
|
4
|
+
* browser, the `typeof` test is not something a bundler substitutes, and the guard would
|
|
5
|
+
* evaluate false in development — silencing the warnings this exists to emit. */
|
|
6
|
+
export declare const IS_DEV: boolean;
|
|
7
|
+
/** One warning per distinct cause. Fields re-render on every keystroke, so warning per render
|
|
8
|
+
* would bury the message in its own repetitions. */
|
|
9
|
+
export declare function warnOnce(key: string, message: string): void;
|
|
10
|
+
//# sourceMappingURL=devWarn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devWarn.d.ts","sourceRoot":"","sources":["../../../src/components/utils/devWarn.ts"],"names":[],"mappings":"AAMA;;;;kFAIkF;AAClF,eAAO,MAAM,MAAM,SAAwC,CAAC;AAI5D;qDACqD;AACrD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAI3D"}
|
package/dist/components.css
CHANGED
|
@@ -165,6 +165,37 @@
|
|
|
165
165
|
border-color: var(--border-subtle);
|
|
166
166
|
cursor: not-allowed;
|
|
167
167
|
}
|
|
168
|
+
/* Coming soon: "not yet", which must not read as disabled ("not now"). The tertiary ink clears
|
|
169
|
+
4.5:1 on every content surface, so unlike disabled text it stays readable — it is a promise, not
|
|
170
|
+
an inactive control. Every variant collapses to the same quiet shape, because a primary-blue fill
|
|
171
|
+
on an action that does nothing is the loudest possible way to say nothing. The state attributes
|
|
172
|
+
React Aria still sets on press and hover are flattened too: nothing happens, so nothing moves. */
|
|
173
|
+
.pire-btn[data-coming-soon],
|
|
174
|
+
.pire-btn[data-coming-soon][data-hovered],
|
|
175
|
+
.pire-btn[data-coming-soon][data-pressed] {
|
|
176
|
+
background: var(--surface-card);
|
|
177
|
+
color: var(--text-tertiary);
|
|
178
|
+
border-color: var(--border-subtle);
|
|
179
|
+
cursor: default;
|
|
180
|
+
}
|
|
181
|
+
.pire-btn[data-variant="tertiary"][data-coming-soon] {
|
|
182
|
+
background: transparent;
|
|
183
|
+
border-color: transparent;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* The "Soon" mark beside a coming-soon Button or Ribbon command. Dashed, because a solid outline
|
|
187
|
+
is a Tag — and a Tag is data, while this is a statement about the control it sits in. */
|
|
188
|
+
.pire-soon-mark {
|
|
189
|
+
display: inline-flex;
|
|
190
|
+
align-items: center;
|
|
191
|
+
flex: 0 0 auto;
|
|
192
|
+
padding: 0 var(--sp-1);
|
|
193
|
+
border: 1px dashed var(--border-strong);
|
|
194
|
+
border-radius: var(--radius-1);
|
|
195
|
+
font: var(--type-micro);
|
|
196
|
+
color: var(--text-tertiary);
|
|
197
|
+
white-space: nowrap;
|
|
198
|
+
}
|
|
168
199
|
|
|
169
200
|
/* ---- IconButton ------------------------------------------------------ */
|
|
170
201
|
.pire-iconbtn {
|
|
@@ -382,6 +413,11 @@
|
|
|
382
413
|
font: var(--type-caption);
|
|
383
414
|
color: var(--status-negative-fg);
|
|
384
415
|
}
|
|
416
|
+
.pire-field-labelrow {
|
|
417
|
+
display: flex;
|
|
418
|
+
align-items: center;
|
|
419
|
+
gap: var(--sp-1);
|
|
420
|
+
}
|
|
385
421
|
.pire-field[data-layout="horizontal"] {
|
|
386
422
|
display: grid;
|
|
387
423
|
grid-template-columns: 160px 1fr;
|
|
@@ -391,6 +427,9 @@
|
|
|
391
427
|
.pire-field[data-layout="horizontal"] .pire-field-label {
|
|
392
428
|
text-align: right;
|
|
393
429
|
}
|
|
430
|
+
.pire-field[data-layout="horizontal"] .pire-field-labelrow {
|
|
431
|
+
justify-content: flex-end;
|
|
432
|
+
}
|
|
394
433
|
.pire-field[data-layout="horizontal"] .pire-field-hint,
|
|
395
434
|
.pire-field[data-layout="horizontal"] .pire-field-error {
|
|
396
435
|
grid-column: 2;
|
|
@@ -623,6 +662,9 @@
|
|
|
623
662
|
color: var(--text-disabled);
|
|
624
663
|
cursor: not-allowed;
|
|
625
664
|
}
|
|
665
|
+
.pire-option[data-clear="true"] {
|
|
666
|
+
color: var(--text-secondary);
|
|
667
|
+
}
|
|
626
668
|
|
|
627
669
|
/* ---- Checkbox / Radio / Switch --------------------------------------- */
|
|
628
670
|
.pire-choice {
|
|
@@ -1000,6 +1042,23 @@
|
|
|
1000
1042
|
outline: var(--focus-w) solid var(--focus-color);
|
|
1001
1043
|
outline-offset: calc(var(--focus-offset) * -1);
|
|
1002
1044
|
}
|
|
1045
|
+
/* The screen's main action, in the primary button's fill. Its focus ring stays inset like every
|
|
1046
|
+
other command's — outside, the scroller clips it, since the bar's scroller is exactly as tall as
|
|
1047
|
+
its commands — but in the fill's own ink, because the usual blue ring vanishes on a blue tile.
|
|
1048
|
+
Disabled and coming-soon, both below, override the fill. */
|
|
1049
|
+
.pire-ribbon-command[data-primary] {
|
|
1050
|
+
background: var(--accent-bg);
|
|
1051
|
+
color: var(--accent-fg);
|
|
1052
|
+
}
|
|
1053
|
+
.pire-ribbon-command[data-primary][data-hovered] {
|
|
1054
|
+
background: var(--accent-bg-hover);
|
|
1055
|
+
}
|
|
1056
|
+
.pire-ribbon-command[data-primary][data-pressed] {
|
|
1057
|
+
background: var(--accent-bg-active);
|
|
1058
|
+
}
|
|
1059
|
+
.pire-ribbon-command[data-primary][data-focus-visible] {
|
|
1060
|
+
outline-color: var(--accent-fg);
|
|
1061
|
+
}
|
|
1003
1062
|
/* Disabled stays at --text-disabled and below 4.5:1 on purpose: WCAG 1.4.3 exempts an inactive
|
|
1004
1063
|
control, and darkening it deletes the cue that the command needs a selection first. */
|
|
1005
1064
|
.pire-ribbon-command[data-disabled] {
|
|
@@ -1007,6 +1066,20 @@
|
|
|
1007
1066
|
cursor: default;
|
|
1008
1067
|
background: transparent;
|
|
1009
1068
|
}
|
|
1069
|
+
.pire-ribbon-command[data-coming-soon],
|
|
1070
|
+
.pire-ribbon-command[data-coming-soon][data-hovered],
|
|
1071
|
+
.pire-ribbon-command[data-coming-soon][data-pressed] {
|
|
1072
|
+
color: var(--text-tertiary);
|
|
1073
|
+
background: transparent;
|
|
1074
|
+
cursor: default;
|
|
1075
|
+
}
|
|
1076
|
+
/* The 78x68 tile has no room for a third line under a two-line caption, so the mark sits beside the
|
|
1077
|
+
icon on the tile's top row (see `Command` in Ribbon.tsx). */
|
|
1078
|
+
.pire-ribbon-command-head {
|
|
1079
|
+
display: inline-flex;
|
|
1080
|
+
align-items: center;
|
|
1081
|
+
gap: var(--sp-1);
|
|
1082
|
+
}
|
|
1010
1083
|
.pire-ribbon-command[data-size="lg"] {
|
|
1011
1084
|
flex-direction: column;
|
|
1012
1085
|
justify-content: center;
|
|
@@ -1119,14 +1192,81 @@
|
|
|
1119
1192
|
.pire-breadcrumb[data-current] {
|
|
1120
1193
|
color: var(--text-primary);
|
|
1121
1194
|
}
|
|
1122
|
-
.pire-breadcrumb a
|
|
1195
|
+
.pire-breadcrumb a,
|
|
1196
|
+
.pire-breadcrumb-link[href] {
|
|
1123
1197
|
color: var(--text-link);
|
|
1124
1198
|
text-decoration: none;
|
|
1125
1199
|
cursor: pointer;
|
|
1126
1200
|
}
|
|
1127
|
-
.pire-breadcrumb a[data-hovered]
|
|
1201
|
+
.pire-breadcrumb a[data-hovered],
|
|
1202
|
+
.pire-breadcrumb-link[href][data-hovered] {
|
|
1128
1203
|
text-decoration: underline;
|
|
1129
1204
|
}
|
|
1205
|
+
.pire-breadcrumb-sep {
|
|
1206
|
+
flex: 0 0 auto;
|
|
1207
|
+
color: var(--text-tertiary);
|
|
1208
|
+
}
|
|
1209
|
+
/* Collapsible: one line, always. The box is what is measured against — it takes whatever width its
|
|
1210
|
+
parent gives it — and the trail inside it shrinks from the current step, which truncates. */
|
|
1211
|
+
.pire-breadcrumbs-fit {
|
|
1212
|
+
position: relative;
|
|
1213
|
+
min-width: 0;
|
|
1214
|
+
}
|
|
1215
|
+
.pire-breadcrumbs[data-collapsible] {
|
|
1216
|
+
flex-wrap: nowrap;
|
|
1217
|
+
min-width: 0;
|
|
1218
|
+
}
|
|
1219
|
+
.pire-breadcrumbs[data-collapsible] .pire-breadcrumb {
|
|
1220
|
+
flex: 0 0 auto;
|
|
1221
|
+
white-space: nowrap;
|
|
1222
|
+
}
|
|
1223
|
+
.pire-breadcrumbs[data-collapsible] .pire-breadcrumb[data-last] {
|
|
1224
|
+
flex: 0 1 auto;
|
|
1225
|
+
min-width: 0;
|
|
1226
|
+
}
|
|
1227
|
+
/* `.pire-breadcrumb-link` exists only in collapsible mode, so it needs no `[data-collapsible]` scope. */
|
|
1228
|
+
.pire-breadcrumb[data-last] .pire-breadcrumb-link {
|
|
1229
|
+
display: block;
|
|
1230
|
+
min-width: 0;
|
|
1231
|
+
overflow: hidden;
|
|
1232
|
+
text-overflow: ellipsis;
|
|
1233
|
+
white-space: nowrap;
|
|
1234
|
+
}
|
|
1235
|
+
/* The measuring copy: laid out at its natural width so it can be read, never painted. Its box
|
|
1236
|
+
clips, because an absolutely positioned trail wider than the bar still counts towards every
|
|
1237
|
+
ancestor's scroll width — the bar would scroll sideways by exactly the width it gave up. */
|
|
1238
|
+
.pire-breadcrumbs-measure {
|
|
1239
|
+
position: absolute;
|
|
1240
|
+
inset: 0;
|
|
1241
|
+
overflow: hidden;
|
|
1242
|
+
visibility: hidden;
|
|
1243
|
+
pointer-events: none;
|
|
1244
|
+
}
|
|
1245
|
+
.pire-breadcrumbs[data-measure] {
|
|
1246
|
+
flex-wrap: nowrap;
|
|
1247
|
+
width: max-content;
|
|
1248
|
+
white-space: nowrap;
|
|
1249
|
+
}
|
|
1250
|
+
.pire-breadcrumb-more {
|
|
1251
|
+
display: inline-flex;
|
|
1252
|
+
align-items: center;
|
|
1253
|
+
justify-content: center;
|
|
1254
|
+
height: var(--sp-6);
|
|
1255
|
+
padding: 0 var(--sp-1);
|
|
1256
|
+
border: 0;
|
|
1257
|
+
border-radius: var(--radius-1);
|
|
1258
|
+
background: transparent;
|
|
1259
|
+
color: var(--text-link);
|
|
1260
|
+
cursor: pointer;
|
|
1261
|
+
outline: none;
|
|
1262
|
+
}
|
|
1263
|
+
.pire-breadcrumb-more[data-hovered] {
|
|
1264
|
+
background: var(--surface-hover);
|
|
1265
|
+
}
|
|
1266
|
+
.pire-breadcrumb-more[data-focus-visible] {
|
|
1267
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
1268
|
+
outline-offset: var(--focus-offset);
|
|
1269
|
+
}
|
|
1130
1270
|
.pire-pagination {
|
|
1131
1271
|
display: flex;
|
|
1132
1272
|
align-items: center;
|
|
@@ -1173,6 +1313,51 @@
|
|
|
1173
1313
|
.pire-shellbar-spacer {
|
|
1174
1314
|
flex: 1;
|
|
1175
1315
|
}
|
|
1316
|
+
/* The breadcrumb slot is the bar's one flexible item: it takes what the actions leave and gives it
|
|
1317
|
+
back first. Muted steps and separators, the current step in the bar's full ink and weight — the
|
|
1318
|
+
page's link blue would be unreadable on the shell, and is the wrong signal there anyway. */
|
|
1319
|
+
.pire-shellbar-crumbs {
|
|
1320
|
+
display: flex;
|
|
1321
|
+
align-items: center;
|
|
1322
|
+
gap: var(--sp-3);
|
|
1323
|
+
flex: 1 1 auto;
|
|
1324
|
+
min-width: 0;
|
|
1325
|
+
}
|
|
1326
|
+
.pire-shellbar-sep {
|
|
1327
|
+
flex: 0 0 auto;
|
|
1328
|
+
width: 1px;
|
|
1329
|
+
height: var(--sp-5);
|
|
1330
|
+
background: var(--text-inverse-secondary);
|
|
1331
|
+
}
|
|
1332
|
+
.pire-shellbar-crumbs .pire-breadcrumbs-fit {
|
|
1333
|
+
flex: 1 1 auto;
|
|
1334
|
+
}
|
|
1335
|
+
.pire-shellbar-crumbs .pire-breadcrumbs {
|
|
1336
|
+
font: var(--type-body);
|
|
1337
|
+
}
|
|
1338
|
+
.pire-shellbar-crumbs .pire-breadcrumb,
|
|
1339
|
+
.pire-shellbar-crumbs .pire-breadcrumb-sep,
|
|
1340
|
+
.pire-shellbar-crumbs .pire-breadcrumb .pire-breadcrumb-link,
|
|
1341
|
+
.pire-shellbar-crumbs .pire-breadcrumb-more {
|
|
1342
|
+
color: var(--text-inverse-secondary);
|
|
1343
|
+
}
|
|
1344
|
+
.pire-shellbar-crumbs .pire-breadcrumb[data-last] .pire-breadcrumb-link {
|
|
1345
|
+
font: var(--type-body-strong);
|
|
1346
|
+
color: var(--text-inverse);
|
|
1347
|
+
cursor: default;
|
|
1348
|
+
}
|
|
1349
|
+
.pire-shellbar-crumbs .pire-breadcrumb-more[data-hovered] {
|
|
1350
|
+
background: var(--surface-shell-hover);
|
|
1351
|
+
color: var(--text-inverse);
|
|
1352
|
+
}
|
|
1353
|
+
.pire-shellbar-crumbs .pire-breadcrumb-link[data-hovered] {
|
|
1354
|
+
color: var(--text-inverse);
|
|
1355
|
+
}
|
|
1356
|
+
.pire-shellbar-crumbs .pire-breadcrumb-more[data-focus-visible],
|
|
1357
|
+
.pire-shellbar-crumbs .pire-breadcrumb-link[data-focus-visible] {
|
|
1358
|
+
outline: var(--focus-w) solid var(--text-inverse);
|
|
1359
|
+
outline-offset: var(--focus-offset);
|
|
1360
|
+
}
|
|
1176
1361
|
.pire-avatar {
|
|
1177
1362
|
display: inline-flex;
|
|
1178
1363
|
align-items: center;
|
|
@@ -1654,6 +1839,27 @@
|
|
|
1654
1839
|
box-shadow: var(--shadow-3);
|
|
1655
1840
|
outline: none;
|
|
1656
1841
|
}
|
|
1842
|
+
/* Docked: in the flow beside the list, not over it. No scrim, no shadow — it is a column of the
|
|
1843
|
+
screen, so it is separated by a rule like any other column. It takes the height of its container
|
|
1844
|
+
and scrolls its body, so the header and footer stay put however long the form is. `max-width`
|
|
1845
|
+
keeps a fixed `width` from pushing the table off a container narrower than the panel. */
|
|
1846
|
+
.pire-sidepanel[data-presentation="docked"] {
|
|
1847
|
+
flex: 0 0 auto;
|
|
1848
|
+
align-self: stretch;
|
|
1849
|
+
height: auto;
|
|
1850
|
+
min-height: 0;
|
|
1851
|
+
max-width: 100%;
|
|
1852
|
+
background: var(--surface-card);
|
|
1853
|
+
border-left: 1px solid var(--border-subtle);
|
|
1854
|
+
box-shadow: none;
|
|
1855
|
+
}
|
|
1856
|
+
.pire-sidepanel[data-presentation="docked"] .pire-dialog-body {
|
|
1857
|
+
flex: 1;
|
|
1858
|
+
min-height: 0;
|
|
1859
|
+
}
|
|
1860
|
+
.pire-sidepanel[data-presentation="docked"] .pire-dialog-foot {
|
|
1861
|
+
border-radius: 0;
|
|
1862
|
+
}
|
|
1657
1863
|
.pire-sidepanel[data-entering] {
|
|
1658
1864
|
animation: pire-panel-in var(--dur-moderate) var(--ease-entrance);
|
|
1659
1865
|
}
|
|
@@ -1997,6 +2203,18 @@
|
|
|
1997
2203
|
.pire-tr[data-disabled][data-hovered] {
|
|
1998
2204
|
background: transparent;
|
|
1999
2205
|
}
|
|
2206
|
+
/* A row being edited in place. The fields fill their cells, and the row is tinted so it reads as the
|
|
2207
|
+
one place on the grid where typing goes somewhere. The cell's own padding stays — a field flush
|
|
2208
|
+
against the column rule looks like the grid cut it off. */
|
|
2209
|
+
.pire-tr[data-editing] > .pire-td {
|
|
2210
|
+
background: var(--surface-selected);
|
|
2211
|
+
}
|
|
2212
|
+
/* A grid so the one field inside stretches to the cell without a child selector reaching into it. */
|
|
2213
|
+
.pire-td-edit {
|
|
2214
|
+
display: grid;
|
|
2215
|
+
min-width: 0;
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2000
2218
|
/* Detail rows sit under their record and read as part of it: sunken, no bottom rule between the
|
|
2001
2219
|
two, and free of the fixed row height since the content decides how tall they are. */
|
|
2002
2220
|
.pire-tr-expanded {
|
|
@@ -2557,6 +2775,10 @@
|
|
|
2557
2775
|
font: var(--type-body-strong);
|
|
2558
2776
|
color: var(--accent-subtle-fg);
|
|
2559
2777
|
}
|
|
2778
|
+
.pire-selectionbar-note {
|
|
2779
|
+
font: var(--type-caption);
|
|
2780
|
+
color: var(--text-secondary);
|
|
2781
|
+
}
|
|
2560
2782
|
.pire-selectionbar-actions {
|
|
2561
2783
|
margin-left: auto;
|
|
2562
2784
|
display: flex;
|