@apliteni/apliteni-ui 0.146.0 → 0.147.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.
|
@@ -4,23 +4,23 @@
|
|
|
4
4
|
|
|
5
5
|
<!-- rule: words-first -->
|
|
6
6
|
|
|
7
|
-
**Rule:** Give every button words, and add a glyph only to help
|
|
7
|
+
**Rule:** Give every button words, and add a glyph only to help them.
|
|
8
8
|
|
|
9
9
|
**Do:** Export, Rename and Share, named at rest.
|
|
10
10
|
|
|
11
|
-
**Don't:** The same three,
|
|
11
|
+
**Don't:** The same three, named only on a hover a finger never performs.
|
|
12
12
|
|
|
13
13
|
## Let the glyph repeat the verb
|
|
14
14
|
|
|
15
15
|
<!-- rule: glyph-repeats-the-verb -->
|
|
16
16
|
|
|
17
|
-
**Rule:** Add a glyph
|
|
17
|
+
**Rule:** Add a glyph only when it depicts its label’s action, and treat a row’s buttons alike.
|
|
18
18
|
|
|
19
19
|
**Except:** A dismissing action beside a committing one is not a peer, and stays plain.
|
|
20
20
|
|
|
21
21
|
**Do:** The arrow downloads, the sheets copy.
|
|
22
22
|
|
|
23
|
-
**Don't:** A table is what is exported, not the export; the plain neighbour
|
|
23
|
+
**Don't:** A table is what is exported, not the export; the plain neighbour looks weaker.
|
|
24
24
|
|
|
25
25
|
## Earn a wordless button
|
|
26
26
|
|
|
@@ -28,8 +28,20 @@
|
|
|
28
28
|
|
|
29
29
|
**Rule:** Drop a button’s words only when its glyph is learned everywhere, its action is on the closed list, and its name reaches assistive technology and a hover title.
|
|
30
30
|
|
|
31
|
-
**Except:** Icon-only controls on the Iconography page is the list. The folded rail shows
|
|
31
|
+
**Except:** Icon-only controls on the Iconography page is the list, plus the download glyph, named and titled Download PDF. The folded rail shows names beside its glyphs, so they carry no title.
|
|
32
32
|
|
|
33
33
|
**Do:** Overflow is on that list; the funnel is not.
|
|
34
34
|
|
|
35
|
-
**Don't:** A funnel could filter, sort or export; the cog
|
|
35
|
+
**Don't:** A funnel could filter, sort or export; the cog lost the word that said which.
|
|
36
|
+
|
|
37
|
+
## Put no action on a text selection
|
|
38
|
+
|
|
39
|
+
<!-- rule: no-action-on-selection -->
|
|
40
|
+
|
|
41
|
+
**Rule:** Give a text action its own button, which opens a popover or a modal, and never wait for a selection.
|
|
42
|
+
|
|
43
|
+
**Why:** A reader selects text to copy it, and a phone or a screen reader seldom makes one.
|
|
44
|
+
|
|
45
|
+
**Do:** An Add note button under the clause opens the note form.
|
|
46
|
+
|
|
47
|
+
**Don't:** A toolbar that appears over the selected words.
|
|
@@ -64,14 +64,50 @@
|
|
|
64
64
|
|
|
65
65
|
**Don't:** A table alone, its period fixed when it was built.
|
|
66
66
|
|
|
67
|
-
##
|
|
67
|
+
## Download a report with one icon button
|
|
68
68
|
|
|
69
|
-
<!-- rule:
|
|
69
|
+
<!-- rule: export-icon -->
|
|
70
70
|
|
|
71
|
-
**Rule:**
|
|
71
|
+
**Rule:** Offer a report's download as one icon button, named for the file it makes.
|
|
72
72
|
|
|
73
|
-
**Why:**
|
|
73
|
+
**Why:** The glyph is learned everywhere, and its name reaches assistive technology and a hover title.
|
|
74
74
|
|
|
75
|
-
**Do:** The
|
|
75
|
+
**Do:** The download glyph named Download PDF, at the end of the filter row.
|
|
76
76
|
|
|
77
|
-
**Don't:** The
|
|
77
|
+
**Don't:** The same button with its words, wider than every filter.
|
|
78
|
+
|
|
79
|
+
## Switch a chart to its table
|
|
80
|
+
|
|
81
|
+
<!-- rule: chart-table-switch -->
|
|
82
|
+
|
|
83
|
+
**Rule:** Give a chart's block a Chart and Table switch that opens on Chart.
|
|
84
|
+
|
|
85
|
+
**Why:** The chart shows the shape of a change, and the table the amounts it is read for.
|
|
86
|
+
|
|
87
|
+
**Do:** Net settled by month as bars, then switched to its rows.
|
|
88
|
+
|
|
89
|
+
**Don't:** The rows stacked under the bars, in one block or the next.
|
|
90
|
+
|
|
91
|
+
## Name the lines by their values or a key
|
|
92
|
+
|
|
93
|
+
<!-- rule: value-not-legend -->
|
|
94
|
+
|
|
95
|
+
**Rule:** Write the last values on a chart of one or two lines when the latest value matters, and draw a key for more lines or when no one value matters.
|
|
96
|
+
|
|
97
|
+
**Why:** A key sends the eye from a line to the key and back and gives no amount, but a tap shows the readout with the values at that point.
|
|
98
|
+
|
|
99
|
+
**Do:** Spend with a key and last values, and seasonal spend with a key.
|
|
100
|
+
|
|
101
|
+
**Don't:** The same two lines without values.
|
|
102
|
+
|
|
103
|
+
## Draw at most two lines on a chart
|
|
104
|
+
|
|
105
|
+
<!-- rule: two-lines-at-most -->
|
|
106
|
+
|
|
107
|
+
**Rule:** Draw one line on a chart, or two when the reader compares them.
|
|
108
|
+
|
|
109
|
+
**Why:** Past two lines, the colours are hard to tell apart and the crossings hide the shape of each line.
|
|
110
|
+
|
|
111
|
+
**Do:** Spend against Estimated, then revenue against expenses on a second chart.
|
|
112
|
+
|
|
113
|
+
**Don't:** All four lines on one chart.
|
package/package.json
CHANGED
package/react/dist/index.js
CHANGED
|
@@ -2221,7 +2221,7 @@ function DatePicker({
|
|
|
2221
2221
|
};
|
|
2222
2222
|
const from = text2(span.start);
|
|
2223
2223
|
const to = text2(span.end);
|
|
2224
|
-
if (from && to) return `${from} ${EN_DASH} ${to}`;
|
|
2224
|
+
if (from && to) return from === to ? from : `${from} ${EN_DASH} ${to}`;
|
|
2225
2225
|
if (from) return `From ${from}`;
|
|
2226
2226
|
if (to) return `Until ${to}`;
|
|
2227
2227
|
return null;
|