Skip to content

Commit 52d51ca

Browse files
committed
feat(docs): docs-native Icon component, drop @ably/ui/core/Icon (DX-1128)
1 parent 7fe3b3c commit 52d51ca

95 files changed

Lines changed: 357 additions & 35 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/components/Icon/glyphs/

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ data/onPostBuild/__fixtures__/*.mdx
99

1010
# Vendored @ably/ui design tokens, reset and component CSS (DX-1128) - do not reformat
1111
src/styles/ui/
12+
13+
# Vendored @ably/ui icon glyphs (DX-1128) - do not reformat
14+
src/components/Icon/glyphs/

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"@codesandbox/sandpack-react": "^2.20.0",
4646
"@codesandbox/sandpack-themes": "^2.0.21",
4747
"@gfx/zopfli": "^1.0.15",
48+
"@heroicons/react": "^2.2.0",
4849
"@mdx-js/react": "^2.3.0",
4950
"@radix-ui/react-accordion": "^1.2.12",
5051
"@radix-ui/react-dropdown-menu": "^2.1.16",

src/components/Examples/ExamplesCheckbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import Icon from '@ably/ui/core/Icon';
2+
import Icon from 'src/components/Icon';
33
import cn from 'src/utilities/cn';
44

55
const ExamplesCheckbox = ({

src/components/Examples/ExamplesFilter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { ChangeEvent, Dispatch, SetStateAction, useCallback, useEffect, useMemo, useRef, useState } from 'react';
22
import ReactDOM from 'react-dom';
3-
import Icon from '@ably/ui/core/Icon';
3+
import Icon from 'src/components/Icon';
44
import { Input } from 'src/components/ui/Input';
55
import { products } from '../../data/examples';
66
import Button from '@ably/ui/core/Button';

src/components/Examples/ExamplesGrid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useCallback } from 'react';
22
import Badge from '@ably/ui/core/Badge';
3-
import Icon from '@ably/ui/core/Icon';
4-
import { IconName } from '@ably/ui/core/Icon/types';
3+
import Icon from 'src/components/Icon';
4+
import { IconName } from 'src/components/Icon/types';
55
import { ProductName, products as dataProducts } from '@ably/ui/core/ProductTile/data';
66
import cn from 'src/utilities/cn';
77
import { Image, ImageProps } from '../Image';

src/components/Examples/ExamplesRenderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { CodeEditor } from 'src/components/CodeEditor';
55
import { LanguageKey } from 'src/data/languages/types';
66
import { ExampleFiles, ExampleWithContent } from 'src/data/examples/types';
77
import { updateAblyConnectionKey } from 'src/utilities/update-ably-connection-keys';
8-
import { IconName } from '@ably/ui/core/Icon/types';
8+
import { IconName } from 'src/components/Icon/types';
99
import SegmentedControl from '@ably/ui/core/SegmentedControl';
1010
import dotGrid from './images/dot-grid.svg';
1111
import cn from 'src/utilities/cn';

src/components/Icon/glyphs/icon-gui-ably-badge.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Icon/glyphs/icon-gui-prod-ai-transport-outline.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Icon/glyphs/icon-gui-prod-ai-transport-solid.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)