Skip to content

Commit

Permalink
mark the Tooltip and Toggletip components as stable
Browse files Browse the repository at this point in the history
  • Loading branch information
sirineJ committed Oct 29, 2024
1 parent a4b5d2c commit ec0fa45
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/cuddly-worms-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sumup-oss/eslint-plugin-circuit-ui": minor
---

Updated the `component-lifecycle-imports` ESLint rule to flag imports of stable components Tooltip and Toggletip from `@sumup-oss/circuit-ui/experimental`.
16 changes: 16 additions & 0 deletions .changeset/wet-avocados-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"@sumup-oss/circuit-ui": major
---

Marked the `Tooltip` and `Toggletip` components as stable. Update the related imports:

```diff
- import { Tooltip, type TooltipProps, type TooltipReferenceProps } from '@sumup-oss/circuit-ui/experimental';
+ import { Tooltip, type TooltipProps, type TooltipReferenceProps } from '@sumup-oss/circuit-ui';
```

```diff
- import { Toggletip, type ToggletipProps } from '@sumup-oss/circuit-ui/experimental';
+ import { Toggletip, type ToggletipProps } from '@sumup-oss/circuit-ui';
```

2 changes: 1 addition & 1 deletion packages/circuit-ui/components/Toggletip/Toggletip.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as Stories from './Toggletip.stories';

# Toggletip

<Status variant="experimental" />
<Status variant="stable" />

Toggletips display additional information that is contextual, helpful, and nonessential to the user upon pressing a UI trigger element and can contain interactive elements.

Expand Down
2 changes: 1 addition & 1 deletion packages/circuit-ui/components/Tooltip/Tooltip.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as Stories from './Tooltip.stories';

# Tooltip

<Status variant="experimental" />
<Status variant="stable" />

Tooltips display additional information upon hover or focus that is contextual, helpful, and nonessential to clarify the purpose of otherwise ambiguous interactive elements.

Expand Down
9 changes: 0 additions & 9 deletions packages/circuit-ui/experimental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,3 @@
* limitations under the License.
*/

export {
Tooltip,
type TooltipProps,
type TooltipReferenceProps,
} from './components/Tooltip/index.js';
export {
Toggletip,
type ToggletipProps,
} from './components/Toggletip/index.js';
9 changes: 9 additions & 0 deletions packages/circuit-ui/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,15 @@ export {
useComponents,
} from './components/ComponentsContext/index.js';
export type { ComponentsContextType } from './components/ComponentsContext/index.js';
export {
Tooltip,
type TooltipProps,
type TooltipReferenceProps,
} from './components/Tooltip/index.js';
export {
Toggletip,
type ToggletipProps,
} from './components/Toggletip/index.js';

// Hooks
export { useClickOutside } from './hooks/useClickOutside/index.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ const mappings = [
'ColorInputProps',
'PhoneNumberInputProps',
'PhoneNumberInput',
'Tooltip',
'TooltipProps',
'TooltipReferenceProps',
'Toggletip',
'ToggletipProps',
],
},
];
Expand Down

0 comments on commit ec0fa45

Please sign in to comment.