From b1ecaba6a8490169daf50a67d34fb943f4b5cdc2 Mon Sep 17 00:00:00 2001 From: Alla Doroshkevych Date: Wed, 24 Apr 2024 12:04:00 -0400 Subject: [PATCH] popup examples added --- .../Examples.2/CellContent.7.doc.mdx | 5 +- .../Examples.2/CellContent.jsx | 64 +++++++++++++++++-- packages/terra-popup/src/_PopupContent.jsx | 2 + 3 files changed, 63 insertions(+), 8 deletions(-) diff --git a/packages/terra-framework-docs/src/terra-dev-site/doc/compact-interactive-list/Examples.2/CellContent.7.doc.mdx b/packages/terra-framework-docs/src/terra-dev-site/doc/compact-interactive-list/Examples.2/CellContent.7.doc.mdx index 8605806d228..5b3f64c2bb0 100644 --- a/packages/terra-framework-docs/src/terra-dev-site/doc/compact-interactive-list/Examples.2/CellContent.7.doc.mdx +++ b/packages/terra-framework-docs/src/terra-dev-site/doc/compact-interactive-list/Examples.2/CellContent.7.doc.mdx @@ -7,8 +7,9 @@ import CellContent from './CellContent?dev-site-examples'; * Only one interactive element per cell is allowed. Because the Compact Intercative List component is one tab stop and the arrow keys are used to move between cells, these keys are not available to move to multiple interactive elements in a cell. -* Interactive elements are limited to [terra-button](https://engineering.cerner.com/terra-ui/components/cerner-terra-core-docs/button/about), [terra-hyperlink](https://engineering.cerner.com/terra-ui/components/cerner-terra-core-docs/hyperlink/about), and [terra-menu](https://engineering.cerner.com/terra-ui/components/cerner-terra-framework-docs/menu/menu). Currently, the cell does not restrict interaction when active, -and all interactive elements keep their native arrow key interactions. If you place a text input, a text area, or select elements in a cell, you are unable to move away from the cell with the arrow keys. +* Interactive elements are limited to [terra-button](https://engineering.cerner.com/terra-ui/components/cerner-terra-core-docs/button/about), [terra-hyperlink](https://engineering.cerner.com/terra-ui/components/cerner-terra-core-docs/hyperlink/about), [terra-menu](https://engineering.cerner.com/terra-ui/components/cerner-terra-framework-docs/menu/menu), and [terra-popup](https://engineering.cerner.com/terra-ui/components/cerner-terra-framework-docs/popup/popup). +Currently, the cell does not restrict interaction when active, and all interactive elements keep their native arrow key interactions. +If you place a text input, a text area, or select elements in a cell, you are unable to move away from the cell with the arrow keys. diff --git a/packages/terra-framework-docs/src/terra-dev-site/doc/compact-interactive-list/Examples.2/CellContent.jsx b/packages/terra-framework-docs/src/terra-dev-site/doc/compact-interactive-list/Examples.2/CellContent.jsx index 18eea51a0c3..5c8d347dc54 100644 --- a/packages/terra-framework-docs/src/terra-dev-site/doc/compact-interactive-list/Examples.2/CellContent.jsx +++ b/packages/terra-framework-docs/src/terra-dev-site/doc/compact-interactive-list/Examples.2/CellContent.jsx @@ -1,14 +1,16 @@ -import React, { useState, useCallback } from 'react'; +import React, { useState, useCallback, useRef } from 'react'; import CompactInteractiveList, { alignTypes } from 'terra-compact-interactive-list'; import { IconFeaturedOff, IconFeatured, IconMultipleResultsNormal, IconMultipleResultsNotNormal, IconMultipleResultsCritical, } from 'terra-icon'; import Button from 'terra-button'; import Hyperlink from 'terra-hyperlink'; +import Checkbox, { CheckboxField } from 'terra-form-checkbox'; +import Popup from 'terra-popup'; import BasicMenu from '../../menu/example/BasicMenu'; // eslint-disable-next-line no-alert -const buttonCell = */} +