@apliteni/apliteni-ui 0.116.0 → 0.118.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.
@@ -60,6 +60,20 @@
60
60
 
61
61
  **Don't:** Hide units in muted text or make readers guess what an abbreviation means.
62
62
 
63
+ ## Size the table to its content
64
+
65
+ <!-- rule: content-width -->
66
+
67
+ **Why:** Large gaps separate labels from values.
68
+
69
+ **Rule:** Limit each column to its longest cell plus the cell inset.
70
+
71
+ **Do:** Keep amounts beside their references in a two-column table.
72
+
73
+ **Don't:** Stretch short tables across the page.
74
+
75
+ **Except:** A text column intended to grow, such as a name or title, takes the remaining width.
76
+
63
77
  ## Scroll instead of squeezing
64
78
 
65
79
  <!-- rule: overflow -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apliteni/apliteni-ui",
3
- "version": "0.116.0",
3
+ "version": "0.118.0",
4
4
  "workspaces": [
5
5
  "react"
6
6
  ],
package/react/README.md CHANGED
@@ -636,7 +636,7 @@ AppShell includes the kit’s rail and top band. Pass the current router pathnam
636
636
 
637
637
  ## Tooltip
638
638
 
639
- Tooltip accepts text and inline children, without nested controls. Hovering or focusing opens it; pressing Escape, moving focus away, or moving the mouse away closes it. On touch devices, tapping toggles it. It uses the kit’s tooltip styles and moves below the trigger when there is not enough space above. Keep the same information elsewhere on the page.
639
+ Tooltip accepts `text` (a label shorthand), or `label`, `value`, and `detail`, with inline children without nested controls. Hovering or focusing opens it; pressing Escape, moving focus away, or moving the mouse away closes it. On touch devices, tapping toggles it. It uses the kit’s tooltip styles and moves below the trigger when there is not enough space above. Keep the same information elsewhere on the page.
640
640
 
641
641
  ```tsx
642
642
  <Tooltip text="Updated daily">Balance</Tooltip>
@@ -317,6 +317,12 @@
317
317
  transition: none;
318
318
  }
319
319
  }
320
+ .rx-table-pager:has(.ui-pager) {
321
+ margin-top: var(--space-4);
322
+ }
323
+ .rx-table-pager:not(:has(.ui-pager)) {
324
+ display: none;
325
+ }
320
326
 
321
327
  /* src/DatePicker.css */
322
328
  .ui-datepicker__panel {
@@ -23,7 +23,7 @@ declare const Switch: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<H
23
23
  } & react.RefAttributes<HTMLInputElement>>;
24
24
 
25
25
  type ButtonOptions = {
26
- variant?: 'primary' | 'secondary' | 'ghost' | 'danger';
26
+ variant?: 'primary' | 'secondary' | 'ghost' | 'danger' | 'link';
27
27
  size?: 'xs' | 'sm' | 'md' | 'lg';
28
28
  icon?: string;
29
29
  /** Decorative caller artwork, before the label; takes precedence over icon. */
@@ -581,6 +581,7 @@ type FilterBarProps = {
581
581
  filters: Filter[];
582
582
  label?: string;
583
583
  clearLabel?: string;
584
+ clearVariant?: 'ghost' | 'secondary' | 'link';
584
585
  disabled?: boolean;
585
586
  busy?: boolean;
586
587
  add?: AddFilter[];
@@ -590,7 +591,7 @@ type FilterBarProps = {
590
591
  onChange: (id: string, value: string | undefined) => void;
591
592
  onAdd?: (id: string, value: string | undefined) => void;
592
593
  };
593
- declare function FilterBar({ filters, label, clearLabel, add, addLabel, disabled, busy, onRemove, onClear, onChange, onAdd }: FilterBarProps): react.JSX.Element;
594
+ declare function FilterBar({ filters, label, clearLabel, clearVariant, add, addLabel, disabled, busy, onRemove, onClear, onChange, onAdd }: FilterBarProps): react.JSX.Element;
594
595
 
595
596
  type KeyValueRow = {
596
597
  label: string;
@@ -836,11 +837,15 @@ type ThemeToggleProps = {
836
837
  declare function ThemeToggle({ labelled }: ThemeToggleProps): react.JSX.Element;
837
838
 
838
839
  type TooltipProps = {
839
- text: string;
840
+ text?: string;
841
+ label?: string;
842
+ value?: string;
843
+ detail?: string;
844
+ placement?: 'top' | 'bottom';
840
845
  /** Inline content without nested controls. */
841
846
  children: ReactNode;
842
847
  };
843
- declare function Tooltip({ text, children }: TooltipProps): react.JSX.Element;
848
+ declare function Tooltip({ text, label, value, detail, placement, children }: TooltipProps): react.JSX.Element;
844
849
 
845
850
  type SuccessMark = 'line' | 'circled';
846
851
  type SuccessCheckProps = Omit<SVGAttributes<SVGSVGElement>, 'children'> & {