ionbase-ui 0.16.0 → 0.18.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.
Files changed (53) hide show
  1. package/README.md +71 -7
  2. package/dist/meta/Alert.json +269 -0
  3. package/dist/meta/Avatar.json +97 -0
  4. package/dist/meta/AvatarGroup.json +82 -0
  5. package/dist/meta/Badge.json +83 -0
  6. package/dist/meta/Button.json +556 -0
  7. package/dist/meta/Checkbox.json +113 -0
  8. package/dist/meta/Divider.json +30 -0
  9. package/dist/meta/FullCard.json +97 -0
  10. package/dist/meta/Header.json +91 -0
  11. package/dist/meta/Icon.json +35 -0
  12. package/dist/meta/Input.json +558 -0
  13. package/dist/meta/Link.json +239 -0
  14. package/dist/meta/Logo.json +46 -0
  15. package/dist/meta/LogoMark.json +41 -0
  16. package/dist/meta/Menu.json +50 -0
  17. package/dist/meta/MenuItem.json +75 -0
  18. package/dist/meta/Modal.json +241 -0
  19. package/dist/meta/NavItem.json +76 -0
  20. package/dist/meta/PhoneInput.json +472 -0
  21. package/dist/meta/Popover.json +124 -0
  22. package/dist/meta/Radio.json +104 -0
  23. package/dist/meta/RadioGroup.json +126 -0
  24. package/dist/meta/ScrollProgress.json +63 -0
  25. package/dist/meta/Select.json +195 -0
  26. package/dist/meta/TabItem.json +15 -0
  27. package/dist/meta/Table.json +135 -0
  28. package/dist/meta/TableBody.json +43 -0
  29. package/dist/meta/TableCell.json +105 -0
  30. package/dist/meta/TableHead.json +43 -0
  31. package/dist/meta/TableRow.json +56 -0
  32. package/dist/meta/Tabs.json +186 -0
  33. package/dist/meta/Toast.json +105 -0
  34. package/dist/meta/ToastProvider.json +75 -0
  35. package/dist/meta/Toggle.json +102 -0
  36. package/dist/meta/Tooltip.json +78 -0
  37. package/dist/meta/components.json +4816 -0
  38. package/dist/meta/contrast.json +3608 -0
  39. package/dist/meta/index.json +479 -0
  40. package/dist/styles/alert.css +10 -5
  41. package/dist/styles/tokens/base.css +25 -25
  42. package/dist/styles/tokens/theme-dark.css +11 -11
  43. package/dist/tokens/index.d.ts +8 -8
  44. package/dist/tokens/index.js +8 -8
  45. package/eslint-plugin/index.js +64 -0
  46. package/eslint-plugin/meta-data.js +66 -0
  47. package/eslint-plugin/rules/needs-accessible-name.js +88 -0
  48. package/eslint-plugin/rules/no-deprecated-props.js +74 -0
  49. package/eslint-plugin/rules/no-known-contrast-failure.js +75 -0
  50. package/eslint-plugin/rules/no-raw-style-values.js +107 -0
  51. package/eslint-plugin/rules/one-primary-action.js +128 -0
  52. package/package.json +33 -7
  53. package/stylelint-config.js +144 -0
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "Tooltip",
3
+ "source": "src/components/Tooltip.tsx",
4
+ "propsType": "TooltipProps",
5
+ "description": "Tooltip — Figma `Tooltip` (801:1568).\n\nWraps its trigger rather than taking a ref, so the common case is one\nelement deep: `<Tooltip label=\"...\"><Button/></Tooltip>`.\n\nFOCUS OPENS IT, NOT JUST HOVER. A hover-only tooltip is invisible to keyboard\nand switch users, and `useTooltipTrigger` wires both plus Escape to dismiss.\nIt also enforces one open tooltip at a time and a shared warmup, so moving\nalong a row of icon buttons does not flash a tooltip per button.\n\nThe trigger is cloned with the interaction props and a ref, which means it\nmust forward both. Every component in this library does; a bare `<div>` does\ntoo. A function component that drops its ref will render, but the tooltip\nwill have nothing to position against.",
6
+ "import": "import { Tooltip } from 'ionbase-ui';",
7
+ "stylesheet": "src/styles/tooltip.css",
8
+ "tokens": [
9
+ "--font-family-sans",
10
+ "--font-weight-medium",
11
+ "--font-weight-regular",
12
+ "--ion-shadow-shadow-md",
13
+ "--ion-tooltip-arrow",
14
+ "--radius-sm",
15
+ "--spacing-12",
16
+ "--spacing-4",
17
+ "--spacing-8",
18
+ "--surface-inverse",
19
+ "--text-inverse",
20
+ "--type-body-sm",
21
+ "--type-body-sm-line-height"
22
+ ],
23
+ "props": {
24
+ "label": {
25
+ "type": "React.ReactNode",
26
+ "required": true,
27
+ "origin": "own",
28
+ "description": "The hint. A tooltip is text only — anything interactive or focusable\nbelongs in a popover, because a tooltip cannot be focused, cannot be\nscrolled, and closes the moment the pointer leaves."
29
+ },
30
+ "title": {
31
+ "type": "React.ReactNode",
32
+ "required": false,
33
+ "origin": "own",
34
+ "description": "Optional heading above the label."
35
+ },
36
+ "placement": {
37
+ "type": "TooltipPlacement | undefined",
38
+ "required": false,
39
+ "origin": "own",
40
+ "description": "Matches the Figma `Placement` variant, and names where the TOOLTIP sits —\nnot where the arrow points. `top` is above the trigger, with the arrow on\nthe tooltip's bottom edge.\n\nTreated as a preference, not a guarantee: it flips to the opposite side\nwhen there is no room, which is the behaviour Figma cannot draw.",
41
+ "values": [
42
+ "right",
43
+ "left",
44
+ "top",
45
+ "bottom"
46
+ ]
47
+ },
48
+ "delay": {
49
+ "type": "number | undefined",
50
+ "required": false,
51
+ "origin": "own",
52
+ "description": "Milliseconds before it opens on hover. Focus always opens immediately."
53
+ },
54
+ "isDisabled": {
55
+ "type": "boolean | undefined",
56
+ "required": false,
57
+ "origin": "own",
58
+ "description": "Disable the tooltip without unmounting the trigger."
59
+ },
60
+ "children": {
61
+ "type": "React.ReactElement<unknown, string | React.JSXElementConstructor<any>>",
62
+ "required": true,
63
+ "origin": "own",
64
+ "description": "The element the tooltip describes. Must accept a ref and DOM props."
65
+ },
66
+ "className": {
67
+ "type": "string | undefined",
68
+ "required": false,
69
+ "origin": "own"
70
+ }
71
+ },
72
+ "propCounts": {
73
+ "own": 7,
74
+ "aria": 0,
75
+ "dom": 0,
76
+ "other": 0
77
+ }
78
+ }