@apliteni/apliteni-ui 0.41.2 → 0.41.3

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.
@@ -6,7 +6,7 @@
6
6
 
7
7
  **Rule:** Put something in the palette only if a reader can name it.
8
8
 
9
- **Why:** Named items are easier to find and understand.
9
+ **Why:** Readers can search for “New invoice”; “More” gives them no name to search for.
10
10
 
11
11
  **Do:** Include recognisable commands and numbered records that readers can also reach by clicking through the product.
12
12
 
@@ -22,7 +22,7 @@
22
22
 
23
23
  **Why:** Groups tell readers whether a result opens a record, changes location or runs a command.
24
24
 
25
- **Do:** Use three sentence-case headings at the 13px label rank for actions, destinations and recent items.
25
+ **Do:** Use sentence-case headings at the 13px label rank, such as Actions, Destinations and Recent items.
26
26
 
27
27
  **Don't:** Show nine ungrouped rows that hide whether Enter runs a command, opens an invoice or goes to a page.
28
28
 
@@ -22,9 +22,9 @@
22
22
 
23
23
  **Except:** Use a drawer when the answer needs a form instead of two buttons.
24
24
 
25
- **Do:** The question stops the page.
25
+ **Do:** Ask “Rotate this token?” in a confirm with “Keep token” and “Rotate token” buttons.
26
26
 
27
- **Don't:** Show the same question with nothing to answer.
27
+ **Don't:** Put “Rotate this token?” in a callout with no answer buttons.
28
28
 
29
29
  ## Show lasting conditions
30
30
 
@@ -44,29 +44,29 @@
44
44
 
45
45
  <!-- rule: panels -->
46
46
 
47
- **Rule:** Use tabs() when the control owns a panel and segmented() when it owns nothing.
47
+ **Rule:** Use `tabs()` to switch panels and `segmented()` for a choice that owns no panel, such as a value, filter or sort order.
48
48
 
49
49
  **Why:** A tablist promises a panel and arrow-key support; a strip without either fails the reader.
50
50
 
51
51
  **Except:** Links between locations are neither; the kit’s nav uses aria-current, not a tablist.
52
52
 
53
- **Do:** Use a filter strip that owns no panel.
53
+ **Do:** Use a segmented control to filter one list by Any, Verified or Pending.
54
54
 
55
- **Don't:** Use a tablist that owns no panels.
55
+ **Don't:** Give those same list filters tab roles when they have no separate panels.
56
56
 
57
57
  ## Match confirmation scale
58
58
 
59
59
  <!-- rule: scale -->
60
60
 
61
- **Rule:** Choose the confirmation by how much of the screen it owns.
61
+ **Rule:** Use `successPanel()` for a confirmation inside a page and `success()` for a full-page confirmation or a next action.
62
62
 
63
63
  **Why:** successPanel() is a page block; success() is the page and tells the reader where to go next.
64
64
 
65
65
  **Except:** A block that needs somewhere to go next still uses success(); successPanel() takes two strings.
66
66
 
67
- **Do:** Use a block confirmation inside the page.
67
+ **Do:** Use `successPanel()` to confirm sent feedback inside a card.
68
68
 
69
- **Don't:** Force a page-sized confirmation into a card.
69
+ **Don't:** Put the full-page `success()` layout inside that card.
70
70
 
71
71
  ## Add dropdown search
72
72
 
@@ -1,7 +1,5 @@
1
1
  # Dense tables
2
2
 
3
- Keep numbers comparable when the dataset needs many rows and columns.
4
-
5
3
  ## Use the right surface
6
4
 
7
5
  <!-- rule: surface -->
@@ -54,7 +52,7 @@ Keep numbers comparable when the dataset needs many rows and columns.
54
52
 
55
53
  <!-- rule: units -->
56
54
 
57
- **Why:** Units carry information even when they are secondary to the value.
55
+ **Why:** A value without a readable unit leaves readers guessing whether it means euros, percent or a count.
58
56
 
59
57
  **Rule:** Keep units smaller and in body ink.
60
58
 
@@ -24,9 +24,9 @@
24
24
 
25
25
  **Except:** Use “Cancel” when there is nothing to keep yet, such as a new form or upload.
26
26
 
27
- **Do:** Each label makes sense alone.
27
+ **Do:** Pair “Revoke access” with “Keep access”.
28
28
 
29
- **Don't:** Use “Are you sure?” without saying what will happen.
29
+ **Don't:** Pair “OK” with “Cancel” under “Are you sure?” without naming the action.
30
30
 
31
31
  ## Choose confirmation or undo
32
32
 
@@ -40,7 +40,7 @@
40
40
 
41
41
  **Do:** Keep the Lucide path unchanged and document a different name.
42
42
 
43
- **Don't:** Trace or copy a path without recording the difference.
43
+ **Don't:** Redraw a Lucide path or rename the glyph without recording its original name.
44
44
 
45
45
  ## Status stroke width
46
46
 
@@ -36,9 +36,9 @@
36
36
 
37
37
  **Except:** Keep inherently capitalised words as written, including acronyms, currency codes and key names such as USD, API and Esc.
38
38
 
39
- **Do:** Written and shown in sentence case.
39
+ **Do:** Write “Total revenue” and display it without a text-transform override.
40
40
 
41
- **Don't:** Use all capitals, which pulls attention from the figures.
41
+ **Don't:** Display “TOTAL REVENUE” above the figure.
42
42
 
43
43
  ## Rank card titles
44
44
 
@@ -50,7 +50,7 @@
50
50
 
51
51
  **Do:** Use --text-2xl for the page title and --text-lg for the card title.
52
52
 
53
- **Don't:** Use a second h1 for the card; it creates two page titles.
53
+ **Don't:** Give the card title the same `--text-2xl` size as the page title.
54
54
 
55
55
  ## Use heading levels
56
56
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  **Why:** Shared tokens prevent conflicting page widths and topbar overrides.
10
10
 
11
- **Do:** Use one token for both kit and site.
11
+ **Do:** Use `--container` for the page and topbar widths.
12
12
 
13
13
  **Don't:** Put four page-width numbers in different files.
14
14
 
@@ -45,7 +45,7 @@
45
45
 
46
46
  **Rule:** Below the reading column, use `--panel-*` in `px` for component boxes and `--prose-*` in `ch` for text lines.
47
47
 
48
- **Why:** Panel tokens match component widths; prose tokens match text types.
48
+ **Why:** Pixel widths keep mixed-size content in one box; `ch` limits a text line using its own font size.
49
49
 
50
50
  **Do:** Use panel `sm/md/lg` for 320/420/560px boxes and prose tokens for caption, lede, body, and dense text.
51
51
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  **Rule:** Name a control for its current state, and rename it when the state changes.
8
8
 
9
- **Why:** A name that is correct only once becomes unhelpful later.
9
+ **Why:** A checked switch named “Turn off” describes the next action instead of its current state.
10
10
 
11
11
  **Do:** Name the checked switch “In-app notifications, on.”
12
12
 
@@ -20,9 +20,9 @@
20
20
 
21
21
  **Rule:** Use 150ms for controls, 250ms for surfaces, 400ms for entrances, and 80ms (`--dur-instant`) for presses.
22
22
 
23
- **Why:** Use only `--dur-fast`, `--dur-med`, `--dur-slow`, and `--dur-instant` to keep one tempo.
23
+ **Why:** Shared durations keep the same interaction from taking different amounts of time across the product.
24
24
 
25
- **Do:** Use the matching duration token.
25
+ **Do:** Use `--dur-fast`, `--dur-med`, `--dur-slow`, and `--dur-instant` for controls, surfaces, entrances, and presses respectively.
26
26
 
27
27
  **Don't:** Use an unrelated duration such as 300ms.
28
28
 
@@ -34,9 +34,9 @@
34
34
 
35
35
  **Why:** Visibility keeps its old value during a transition, so easing adds no benefit.
36
36
 
37
- **Do:** Transition visibility with `linear`.
37
+ **Do:** Use `--ease` for a drawer transition and `linear` for its visibility.
38
38
 
39
- **Don't:** Use CSS `ease` instead of `--ease`.
39
+ **Don't:** Use CSS `ease` for both the drawer transition and its visibility.
40
40
 
41
41
  ## Honor reduced motion
42
42
 
@@ -16,12 +16,10 @@
16
16
 
17
17
  <!-- rule: the-jump -->
18
18
 
19
- **Rule:** Use steps for filtering and sorting, numbers for short lists, or jump for a specific page.
19
+ **Rule:** Use steps for filtering and sorting, numbers for short browsable lists such as changelogs and galleries, or jump for a specific page.
20
20
 
21
21
  **Why:** Filtering and sorting usually need quick jumps, while short lists can use numbered pages.
22
22
 
23
- **Except:** Use numbered pages for short browsable lists such as changelogs and galleries.
24
-
25
23
  **Do:** Use four fixed controls so a ledger’s first and last pages are one press away.
26
24
 
27
25
  **Don't:** On page 25 of 49, show only 1, 24, 26, and 49 as direct choices.
@@ -6,7 +6,7 @@
6
6
 
7
7
  **Rule:** Put key figures in a stat band, not in a card of parts.
8
8
 
9
- **Why:** Each figure stays easy to compare and understand.
9
+ **Why:** A shared layout keeps values, changes and their comparison basis in the same place for each figure.
10
10
 
11
11
  **Do:** Use one card per figure by default, with the figure largest, an arrow, a signed change, and one comparison caption above the row.
12
12
 
@@ -8,9 +8,9 @@
8
8
 
9
9
  **Why:** One solid band and halo keep focus consistent while the browser decides when to show it.
10
10
 
11
- **Do:** Button and input share one ring.
11
+ **Do:** Apply `--ring` to both the button and input on keyboard focus.
12
12
 
13
- **Don't:** The input draws its own ring.
13
+ **Don't:** Give the input a separate muted outline while the button uses `--ring`.
14
14
 
15
15
  **Except:** Text-entry controls may match `:focus-visible` on mouse focus. Surface backgrounds set the gap colour and recompose `--ring`; adjust width and colour at the root.
16
16
 
@@ -36,9 +36,9 @@
36
36
 
37
37
  **Why:** Red alone communicates the state only to sighted readers.
38
38
 
39
- **Do:** The field reads its reason with it.
39
+ **Do:** Mark the field `aria-invalid="true"` and connect its error message with `aria-describedby`.
40
40
 
41
- **Don't:** Use the same red with no connected reason.
41
+ **Don't:** Paint the field red and show an error elsewhere without connecting the message to the field.
42
42
 
43
43
  **Except:** Put `required` in the attribute, not the label wording; the asterisk is decoration and hidden from assistive technology.
44
44
 
@@ -50,8 +50,8 @@
50
50
 
51
51
  **Why:** Silent loading gives screen-reader users no event.
52
52
 
53
- **Do:** Announce the coming shape in a status region.
53
+ **Do:** Mark the loading region busy and announce “Loading…” in its status region.
54
54
 
55
- **Don't:** Let only the button know while the page reads as finished.
55
+ **Don't:** Show a spinner only in the button while the loading region has no busy state or announcement.
56
56
 
57
57
  **Except:** A toast has its own live region, so a screen reporting through the toast stack needs no second one.
@@ -56,9 +56,9 @@
56
56
 
57
57
  **Why:** Skipped levels hide structure, and a fourth level usually means the page should be split.
58
58
 
59
- **Do:** Keep each heading level under the one above it.
59
+ **Do:** Use a page heading, then section headings, then group headings.
60
60
 
61
- **Don't:** Make readers guess which content belongs together.
61
+ **Don't:** Skip from the page heading to a group heading, or add a fourth heading level.
62
62
 
63
63
  ## Emphasize one action
64
64
 
@@ -118,6 +118,6 @@
118
118
 
119
119
  **Why:** Repeating the title wastes the reader’s time.
120
120
 
121
- **Do:** Add useful context below “Payouts.”
121
+ **Do:** Below “Payouts”, say “Payouts arrive within three business days.”
122
122
 
123
123
  **Don't:** Write “This is the payouts page” below “Payouts.”
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apliteni/apliteni-ui",
3
- "version": "0.41.2",
3
+ "version": "0.41.3",
4
4
  "workspaces": [
5
5
  "react"
6
6
  ],