@sincpro/web-ui 2.3.0 → 2.4.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/README.md +49 -5
- package/dist/components/guide/Guide.d.ts +33 -0
- package/dist/components/guide/Guide.js +288 -0
- package/dist/components/guide/GuideSpot.d.ts +14 -0
- package/dist/components/guide/GuideSpot.js +13 -0
- package/dist/components/guide/index.d.ts +4 -0
- package/dist/components/guide/index.js +6 -0
- package/dist/components/guide/place.d.ts +44 -0
- package/dist/components/guide/place.js +69 -0
- package/dist/components/guide/target.d.ts +41 -0
- package/dist/components/guide/target.js +55 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/listing/Listing.js +7 -5
- package/dist/components/listing/Row.js +8 -7
- package/dist/components/navigation/NavigationTree.js +1 -1
- package/dist/components/record/DirtyActions.d.ts +9 -7
- package/dist/components/record/DirtyActions.js +14 -9
- package/dist/components/record/ThumbBar.js +2 -1
- package/dist/components/shell/SearchEntry.d.ts +29 -0
- package/dist/components/shell/SearchEntry.js +34 -0
- package/dist/components/shell/Sidebar.d.ts +5 -1
- package/dist/components/shell/Sidebar.js +4 -3
- package/dist/components/shell/TopBar.d.ts +5 -1
- package/dist/components/shell/TopBar.js +3 -2
- package/dist/components/shell/index.d.ts +1 -0
- package/dist/components/shell/index.js +3 -0
- package/dist/foundations/copy.d.ts +19 -2
- package/dist/foundations/copy.es.js +10 -0
- package/dist/foundations/copy.js +10 -0
- package/dist/foundations/index.d.ts +1 -0
- package/dist/foundations/index.js +2 -0
- package/dist/foundations/shortcut.d.ts +18 -0
- package/dist/foundations/shortcut.js +20 -0
- package/dist/primitives/value/Metric.d.ts +5 -1
- package/dist/primitives/value/Metric.js +5 -3
- package/dist/tokens.css +39 -20
- package/package.json +1 -1
package/dist/tokens.css
CHANGED
|
@@ -541,30 +541,33 @@
|
|
|
541
541
|
It is asked for and not imposed —a base and not a fixed width— because a
|
|
542
542
|
row also lands in a 480 px drawer, and there a quarter of the box reserved
|
|
543
543
|
for the word «vencida» is a quarter taken away from the name. When there
|
|
544
|
-
is not enough for
|
|
545
|
-
|
|
546
|
-
tag, not the
|
|
544
|
+
is not enough for both, the column takes a line of its own under the
|
|
545
|
+
name and its meta (`--container-row-split`); it never shrinks below the
|
|
546
|
+
width of its own tags: from there down what shrinks is a tag, not the
|
|
547
|
+
column. */
|
|
547
548
|
--container-tags: 8rem;
|
|
548
549
|
|
|
549
|
-
/* What a name ASKS FOR in a list row before the
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
fit, the metadata drops to the line below and the name keeps the first one
|
|
557
|
-
whole — it is what identifies the record, and cut down to «ve…» it
|
|
558
|
-
identifies nothing.
|
|
559
|
-
|
|
560
|
-
That it is an ask and not a minimum is what makes the row work in a box
|
|
561
|
-
narrower than this: with the metadata already below, the name uses whatever
|
|
562
|
-
there is instead of overflowing. And it is what makes a checkbox, an icon
|
|
563
|
-
or a row of actions shift the moment it wraps without anyone declaring it
|
|
564
|
-
— they take their width from the same line, and the ask stops being met
|
|
565
|
-
earlier. */
|
|
550
|
+
/* What a name ASKS FOR in a list row before the tags give up its line.
|
|
551
|
+
|
|
552
|
+
It is an ask and not a minimum: in a box narrower than this the name uses
|
|
553
|
+
whatever there is instead of overflowing — it is what identifies the record,
|
|
554
|
+
and cut down to «ve…» it identifies nothing. With the tags' ask it makes
|
|
555
|
+
`--container-row-split`, the width under which the tags take a line of
|
|
556
|
+
their own. */
|
|
566
557
|
--container-name: 12rem;
|
|
567
558
|
|
|
559
|
+
/* The widest the TEXT of a list row gets — its name and the meta under it. On a 2000 px
|
|
560
|
+
workspace a row that stretched its text to the edge put the tags 1300 px away from the
|
|
561
|
+
name they describe; capped, the tags sit right after it, at the same place in every
|
|
562
|
+
row, and what is left of the line is empty, not a gap to jump across. */
|
|
563
|
+
--container-row-text: 40rem;
|
|
564
|
+
|
|
565
|
+
/* Under this width a list row's tags leave the name's line for one of their own: it is
|
|
566
|
+
the name's ask (`--container-name`), the tags' (`--container-tags`) and the gap
|
|
567
|
+
between, rounded up. Written as a figure because a container query cannot read a
|
|
568
|
+
variable. It is a query on the ROW'S box, so every row of a list decides the same. */
|
|
569
|
+
--container-row-split: 21rem;
|
|
570
|
+
|
|
568
571
|
/* The widest a chip of the search bar gets before it truncates. A filter written by hand
|
|
569
572
|
(«cliente contiene Importadora y Exportadora…») would otherwise take a whole line of the
|
|
570
573
|
bar and push the rest down; the full text stays in the chip's title. */
|
|
@@ -651,6 +654,10 @@
|
|
|
651
654
|
which is where a thumb taps to close it. */
|
|
652
655
|
--container-drawer: min(20rem, calc(100vw - 3rem));
|
|
653
656
|
|
|
657
|
+
/* A tour's card: a title and two or three lines read without moving the eye far, and on a
|
|
658
|
+
phone the screen minus a margin each side, so it never touches an edge. */
|
|
659
|
+
--container-guide: min(21rem, calc(100vw - 2rem));
|
|
660
|
+
|
|
654
661
|
/* The record sheet. The rail above it spans the whole window; the sheet does not: a form
|
|
655
662
|
stretched to 1,400 px puts the label and its value half a screen apart and turns every
|
|
656
663
|
input into a bar nobody fills. 72rem holds two columns of fields at a readable width —
|
|
@@ -800,6 +807,18 @@
|
|
|
800
807
|
|
|
801
808
|
/* A table's header band. */
|
|
802
809
|
--color-ui-table-head: var(--ui-table-head-bg, var(--color-ground));
|
|
810
|
+
|
|
811
|
+
/* A guided tour: its card, and the veil around what a step points at. */
|
|
812
|
+
--radius-ui-guide: var(--ui-guide-radius, var(--radius-panel));
|
|
813
|
+
--color-ui-guide: var(--ui-guide-bg, var(--color-surface));
|
|
814
|
+
--color-ui-guide-scrim: var(
|
|
815
|
+
--ui-guide-scrim,
|
|
816
|
+
color-mix(in srgb, var(--color-scrim) 55%, transparent)
|
|
817
|
+
);
|
|
818
|
+
/* The veil itself: the cut-out around the target throws a spread as wide as the window, in
|
|
819
|
+
its own colour (`text-ui-guide-scrim`) — the hole is exact and rounded, and it glides. The
|
|
820
|
+
same in both themes: the colour is the scrim's, which already is per theme. */
|
|
821
|
+
--shadow-guide-veil: 0 0 0 100vmax currentColor;
|
|
803
822
|
}
|
|
804
823
|
|
|
805
824
|
@keyframes reveal {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sincpro/web-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "An enterprise web design system for business software — ERPs, back offices, management tools — in React and Tailwind: tokens, primitives, components and the two views every management screen is made of.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|