@narmi/design_system 6.30.0 → 6.31.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.
@@ -14,6 +14,13 @@ export interface TooltipProps {
14
14
  isOpen?: boolean;
15
15
  /** Optional value for `data-testid` attribute */
16
16
  testId?: string;
17
+ /**
18
+ * When `false`, the wrapper element around the tooltip trigger is removed
19
+ * from the tab order. Use this when the child is already focusable (e.g. a
20
+ * `Button`) to avoid an extra tab stop. Focus events still bubble from the
21
+ * child, so the tooltip continues to open on keyboard focus.
22
+ */
23
+ focusable?: boolean;
17
24
  }
18
25
  /**
19
26
  * Renders a text-only tooltip on hover or focus of a trigger.
@@ -21,6 +28,6 @@ export interface TooltipProps {
21
28
  * The tooltip will position itself based on the `side` prop, but will
22
29
  * automatically reposition to avoid collisions with viewport edges.
23
30
  */
24
- declare const Tooltip: ({ side, text, children, wrapperDisplay, maxWidth, testId, isOpen, }: TooltipProps) => React.JSX.Element;
31
+ declare const Tooltip: ({ side, text, children, wrapperDisplay, maxWidth, testId, isOpen, focusable, }: TooltipProps) => React.JSX.Element;
25
32
  export default Tooltip;
26
33
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Tooltip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAIpE,MAAM,WAAW,YAAY;IAC3B,2FAA2F;IAC3F,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,mEAAmE;IACnE,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3C,0EAA0E;IAC1E,cAAc,CAAC,EAAE,aAAa,GAAG,cAAc,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAC9E,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,QAAA,MAAM,OAAO,GAAI,qEAQd,YAAY,sBAgFd,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Tooltip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAIpE,MAAM,WAAW,YAAY;IAC3B,2FAA2F;IAC3F,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,mEAAmE;IACnE,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3C,0EAA0E;IAC1E,cAAc,CAAC,EAAE,aAAa,GAAG,cAAc,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAC9E,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;GAKG;AACH,QAAA,MAAM,OAAO,GAAI,gFASd,YAAY,sBAgFd,CAAC;AAEF,eAAe,OAAO,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narmi/design_system",
3
- "version": "6.30.0",
3
+ "version": "6.31.0",
4
4
  "description": "⚡ A consistent look-and-feel and extensible interface for Narmi experiences 🔥",
5
5
  "main": "dist/index.js",
6
6
  "style": "dist/style.css",