diff --git a/.changeset/many-plums-scream.md b/.changeset/many-plums-scream.md
new file mode 100644
index 0000000000..c090cc1a0a
--- /dev/null
+++ b/.changeset/many-plums-scream.md
@@ -0,0 +1,6 @@
+---
+'@leafygreen-ui/text-input': minor
+'@leafygreen-ui/select': minor
+---
+
+Updates testUtils files to accommodate changes to the Icon package
diff --git a/.changeset/puny-paws-yell.md b/.changeset/puny-paws-yell.md
new file mode 100644
index 0000000000..aa14c8fd3d
--- /dev/null
+++ b/.changeset/puny-paws-yell.md
@@ -0,0 +1,5 @@
+---
+'@leafygreen-ui/icon': minor
+---
+
+Updated Icon to include
element when title is added. Deprecated the `createGlyphComponent`, and the design system is instead using glyphs from the `generated` folder
diff --git a/packages/icon-button/src/IconButton/IconButton.spec.tsx b/packages/icon-button/src/IconButton/IconButton.spec.tsx
index 16288a5893..679eb07e1b 100644
--- a/packages/icon-button/src/IconButton/IconButton.spec.tsx
+++ b/packages/icon-button/src/IconButton/IconButton.spec.tsx
@@ -4,7 +4,7 @@ import { axe } from 'jest-axe';
import EllipsisIcon from '@leafygreen-ui/icon/dist/Ellipsis';
-import IconButton from '..';
+import { IconButton } from '..';
const onClick = jest.fn();
const className = 'test-icon-button-class';
@@ -84,13 +84,14 @@ describe('packages/icon-button', () => {
expect(iconButton.tagName.toLowerCase()).toBe('a');
});
- test(`when '${titleText}' is set directly as the title child icon, the rendered icon includes the title attribute, '${titleText}'`, () => {
+ test(`shows a title element with '${titleText}' when the title prop is set`, () => {
const iconWithTitle = (
);
const { icon } = renderIconButton({ children: iconWithTitle });
-
- expect(icon.getAttribute('title')).toBe(titleText);
+ expect(icon).toBeInTheDocument();
+ const title = icon.querySelector('title');
+ expect(title?.textContent).toBe(titleText);
});
/* eslint-disable jest/no-disabled-tests*/
diff --git a/packages/icon/package.json b/packages/icon/package.json
index 0da2c10947..5a7a85034d 100644
--- a/packages/icon/package.json
+++ b/packages/icon/package.json
@@ -36,6 +36,7 @@
},
"dependencies": {
"@leafygreen-ui/emotion": "workspace:^",
+ "@leafygreen-ui/hooks": "workspace:^",
"lodash": "^4.17.21"
},
"devDependencies": {
diff --git a/packages/icon/scripts/build/compare-checksum.ts b/packages/icon/scripts/build/compare-checksum.ts
index 76f616ebbb..1fefbb3edb 100644
--- a/packages/icon/scripts/build/compare-checksum.ts
+++ b/packages/icon/scripts/build/compare-checksum.ts
@@ -13,7 +13,8 @@ export function getAllIcons(): Array {
const iconNames = fsx
.readdirSync(ICON_DIR)
.filter(f => /\.tsx?$/.test(f))
- .map(f => path.basename(f, path.extname(f)));
+ .map(f => path.basename(f, path.extname(f)))
+ .filter(name => name !== 'index'); // Exclude the index file
return iconNames;
}
diff --git a/packages/icon/scripts/prebuild/index.ts b/packages/icon/scripts/prebuild/index.ts
index 4de77989dd..c59523ba00 100644
--- a/packages/icon/scripts/prebuild/index.ts
+++ b/packages/icon/scripts/prebuild/index.ts
@@ -7,7 +7,7 @@ import fs from 'fs';
import path from 'path';
import { getChecksum } from './checksum';
-import { indexTemplate } from './indexTemplate';
+import { generatedIndexTemplate, indexTemplate } from './indexTemplate';
import { FileObject, PrebuildOptions } from './prebuild.types';
import { svgrTemplate } from './svgrTemplate';
@@ -28,6 +28,7 @@ async function buildSvgFiles(options: PrebuildOptions): Promise {
options?.verbose && console.log('Processing SVG files...\n');
await Promise.all(svgFiles.map(processFile));
await createIndexFile(svgFiles, options);
+ await createGeneratedIndexFile(svgFiles, outputDir, options);
}
/**
@@ -91,6 +92,21 @@ async function createIndexFile(
fs.writeFileSync(indexPath, formattedIndexContent, { encoding: 'utf8' });
}
+/**
+ * Create the index file for the generated component exports
+ */
+async function createGeneratedIndexFile(
+ svgFiles: Array,
+ outputDir: string,
+ options?: PrebuildOptions,
+) {
+ const indexPath = path.resolve(outputDir, 'index.ts');
+ options?.verbose && console.log('Writing generated index file...', indexPath);
+ const indexContent = await generatedIndexTemplate(svgFiles);
+ const formattedIndexContent = await formatLG(indexContent, indexPath);
+ fs.writeFileSync(indexPath, formattedIndexContent, { encoding: 'utf8' });
+}
+
/**
* Annotate the generated file with script and checksum information
*/
diff --git a/packages/icon/scripts/prebuild/indexTemplate.ts b/packages/icon/scripts/prebuild/indexTemplate.ts
index 595719d05c..73fd58a17e 100644
--- a/packages/icon/scripts/prebuild/indexTemplate.ts
+++ b/packages/icon/scripts/prebuild/indexTemplate.ts
@@ -5,27 +5,31 @@ export async function indexTemplate(svgFiles: Array) {
.map(({ name }) => `import ${name} from './${name}.svg';`)
.join('\n');
- const _glyphs = `{
- ${svgFiles.map(({ name }) => `${name}`).join(',\n')}
- }`;
+ const glyphsList = svgFiles.map(({ name }) => `${name}`).join(',\n ');
return `
- import { createGlyphComponent } from '../createGlyphComponent';
- import { LGGlyph } from '../types';
-
// Glyphs
${imports}
- const _glyphs = ${_glyphs} as const;
-
- export type GlyphName = keyof typeof _glyphs;
-
- const glyphKeys = Object.keys(_glyphs) as Array;
-
- export const glyphs = glyphKeys.reduce((acc, name) => {
- acc[name] = createGlyphComponent(name, _glyphs[name]);
-
- return acc;
- }, {} as Record);
+ export const glyphs = {
+ ${glyphsList}
+ } as const;
+
+ export type GlyphName = keyof typeof glyphs;
`;
}
+
+export async function generatedIndexTemplate(svgFiles: Array) {
+ const exports = svgFiles
+ .map(({ name }) => `export { default as ${name} } from './${name}';`)
+ .join('\n');
+
+ return `/**
+ * This is a generated file. Do not modify it manually.
+ *
+ * @script packages/icon/scripts/prebuild/index.ts
+ */
+
+${exports}
+`;
+}
diff --git a/packages/icon/scripts/prebuild/svgrTemplate.ts b/packages/icon/scripts/prebuild/svgrTemplate.ts
index a3d2381883..dc5167e379 100644
--- a/packages/icon/scripts/prebuild/svgrTemplate.ts
+++ b/packages/icon/scripts/prebuild/svgrTemplate.ts
@@ -20,10 +20,12 @@ interface ASTParts extends Record {
}
export function svgrTemplate(
- { template }: BabelAPI,
- { state: { componentName } }: SVGROptions,
+ api: BabelAPI,
+ opts: SVGROptions,
{ imports, jsx, exports }: ASTParts,
) {
+ const { template, types: t } = api;
+ const { componentName } = opts.state;
const typeScriptTpl = template.smart({ plugins: ['jsx', 'typescript'] });
const jsxAttributes = typeScriptTpl.ast`
@@ -48,9 +50,40 @@ export function svgrTemplate(
jsx.openingElement.attributes[2],
);
+ // Convert self-closing svg to have children
+ jsx.openingElement.selfClosing = false;
+
+ // Create closing element using Babel types
+ jsx.closingElement = t.jsxClosingElement(
+ t.jsxIdentifier(jsx.openingElement.name.name),
+ );
+
+ // Create the title element JSX manually using Babel types
+ // {title && {title}}
+ const titleJSXElement = t.jsxElement(
+ t.jsxOpeningElement(t.jsxIdentifier('title'), [
+ t.jsxAttribute(
+ t.jsxIdentifier('id'),
+ t.jsxExpressionContainer(t.identifier('titleId')),
+ ),
+ ]),
+ t.jsxClosingElement(t.jsxIdentifier('title')),
+ [t.jsxExpressionContainer(t.identifier('title'))],
+ false,
+ );
+
+ // Wrap title in conditional expression: {title && ...}
+ const conditionalTitleExpression = t.jsxExpressionContainer(
+ t.logicalExpression('&&', t.identifier('title'), titleJSXElement),
+ );
+
+ // Add the conditional title as a child, followed by the original children
+ jsx.children = [conditionalTitleExpression, ...jsx.children];
+
return typeScriptTpl(`
%%imports%%
import { css, cx } from '@leafygreen-ui/emotion';
+ import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
@@ -66,6 +99,7 @@ export function svgrTemplate(
role = 'img',
...props
}: ${componentName}Props) => {
+ const titleId = useIdAllocator({ prefix: 'icon-title' });
const fillStyle = css\`
color: \${fill};
\`;
@@ -74,7 +108,7 @@ export function svgrTemplate(
flex-shrink: 0;
\`;
- const accessibleProps = generateAccessibleProps(role, '${componentName}', { title, ['aria-label']: ariaLabel, ['aria-labelledby']: ariaLabelledby })
+ const accessibleProps = generateAccessibleProps(role, '${componentName}', { title, titleId, ['aria-label']: ariaLabel, ['aria-labelledby']: ariaLabelledby })
return %%jsx%%;
}
diff --git a/packages/icon/src/Icon.spec.tsx b/packages/icon/src/Icon.spec.tsx
index cf6b302cb8..37b776237b 100644
--- a/packages/icon/src/Icon.spec.tsx
+++ b/packages/icon/src/Icon.spec.tsx
@@ -29,9 +29,11 @@ const glyphPaths = fs
const generatedFilesDirectory = path.resolve(__dirname, './generated');
const baseNameToGeneratedFilePath: Record = {};
-fs.readdirSync(generatedFilesDirectory).forEach(filePath => {
- baseNameToGeneratedFilePath[getBaseName(filePath)] = filePath;
-});
+fs.readdirSync(generatedFilesDirectory)
+ .filter(filePath => /.*\.tsx$/.test(filePath))
+ .forEach(filePath => {
+ baseNameToGeneratedFilePath[getBaseName(filePath)] = filePath;
+ });
const MyTestSVGRGlyph: SVGR.Component = props => (
@@ -276,7 +278,7 @@ describe('Generated glyphs', () => {
});
describe('accessible props handled correctly', () => {
- test('when no prop is supplied, aria-label is genereated', () => {
+ test('when no prop is supplied, aria-label is generated', () => {
render();
const editIcon = screen.getByRole('img');
expect(editIcon.getAttribute('aria-label')).toBe('Edit Icon');
@@ -295,11 +297,32 @@ describe('Generated glyphs', () => {
expect(editIcon.getAttribute('aria-labelledby')).toBe('Test label');
});
- test('when title is supplied it overrides default label', () => {
+ test('when title is supplied it renders a title element and aria-labelledby', () => {
render();
const editIcon = screen.getByRole('img');
expect(editIcon.getAttribute('aria-label')).toBe(null);
- expect(editIcon.getAttribute('title')).toBe('Test title');
+ // Should have aria-labelledby instead of title attribute
+ const ariaLabelledBy = editIcon.getAttribute('aria-labelledby');
+ expect(ariaLabelledBy).not.toBe(null);
+ // Should find a title element with matching ID containing the text
+ const titleElement = editIcon.querySelector('title');
+ expect(titleElement).not.toBe(null);
+ expect(titleElement?.textContent).toBe('Test title');
+ expect(titleElement?.id).toBe(ariaLabelledBy);
+ });
+
+ test('when both title and aria-labelledby are supplied they are combined', () => {
+ render();
+ const editIcon = screen.getByRole('img');
+ expect(editIcon.getAttribute('aria-label')).toBe(null);
+ const ariaLabelledBy = editIcon.getAttribute('aria-labelledby');
+ // Should contain both the title ID and the external label
+ expect(ariaLabelledBy).toContain('external-label');
+ const titleElement = editIcon.querySelector('title');
+ expect(titleElement).not.toBe(null);
+ expect(titleElement?.textContent).toBe('Test title');
+ // The aria-labelledby should reference both
+ expect(ariaLabelledBy).toBe(`${titleElement?.id} external-label`);
});
test('when role="presentation", aria-hidden is true', () => {
diff --git a/packages/icon/src/Icon.stories.tsx b/packages/icon/src/Icon.stories.tsx
index c61600d32a..aebdfbbd6e 100644
--- a/packages/icon/src/Icon.stories.tsx
+++ b/packages/icon/src/Icon.stories.tsx
@@ -17,7 +17,7 @@ const meta: StoryMetaType = {
parameters: {
default: 'LiveExample',
controls: {
- exclude: [...storybookExcludedControlParams, 'title', 'data-testid'],
+ exclude: [...storybookExcludedControlParams, 'data-testid'],
},
},
args: {
@@ -33,6 +33,11 @@ const meta: StoryMetaType = {
fill: {
control: 'color',
},
+ title: {
+ control: 'text',
+ description: 'The title of the icon for accessibility',
+ defaultValue: undefined,
+ },
},
};
diff --git a/packages/icon/src/Icon.tsx b/packages/icon/src/Icon.tsx
index 376d7bb8b2..28a11a5a0f 100644
--- a/packages/icon/src/Icon.tsx
+++ b/packages/icon/src/Icon.tsx
@@ -1,5 +1,5 @@
import { createIconComponent } from './createIconComponent';
-import { glyphs } from './glyphs';
+import * as glyphs from './generated';
/**
* The LeafyGreen system icons are a clear and concise set of glyphs designed to be minimal in form and express a variety of use-cases for all digital products.
diff --git a/packages/icon/src/createGlyphComponent.tsx b/packages/icon/src/createGlyphComponent.tsx
index cad914ef41..8910c75b59 100644
--- a/packages/icon/src/createGlyphComponent.tsx
+++ b/packages/icon/src/createGlyphComponent.tsx
@@ -1,13 +1,16 @@
import React from 'react';
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, Size, sizeMap } from './glyphCommon';
import { LGGlyph, SVGR } from './types';
+// This function will be updated and potentially deprecated in https://jira.mongodb.org/browse/LG-5680
/**
* Returns a single glyph component.
* Process custom glyphs to ensure consistent behavior between custom and built-in icons
+ * This function is different from the `createIconComponent` function in that it returns a single glyph component instead of an icon component.
* @param glyphName: string - the display name of the icon
* @param Glyph: SVGR.Component - the SVG icon component
* @returns LGGlyph.Component
@@ -26,6 +29,7 @@ export function createGlyphComponent(
role = 'img',
...rest
}: LGGlyph.ComponentProps) => {
+ const titleId = useIdAllocator({ prefix: 'icon-title' });
const fillStyle = css`
color: ${fill};
`;
@@ -51,6 +55,7 @@ export function createGlyphComponent(
role={role}
{...generateAccessibleProps(role, glyphName, {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby,
})}
diff --git a/packages/icon/src/generated/AIModel.tsx b/packages/icon/src/generated/AIModel.tsx
index bbd7c217e7..56c883044c 100644
--- a/packages/icon/src/generated/AIModel.tsx
+++ b/packages/icon/src/generated/AIModel.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 1b3d40728665f27a2c0b6039f0387bf8
+* @checksum 6618e7834f98f848d25dff98c9e6585f
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface AIModelProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const AIModel = ({
role = 'img',
...props
}: AIModelProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const AIModel = ({
`;
const accessibleProps = generateAccessibleProps(role, 'AIModel', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
AIModel.displayName = 'AIModel';
AIModel.isGlyph = true;
diff --git a/packages/icon/src/generated/ActivityFeed.tsx b/packages/icon/src/generated/ActivityFeed.tsx
index 2d129c5dba..09b7473bd3 100644
--- a/packages/icon/src/generated/ActivityFeed.tsx
+++ b/packages/icon/src/generated/ActivityFeed.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 260808bc7119d3af4c161e80ea57a6c5
+* @checksum 77e7639d3019eed3006460e66ce660d8
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ActivityFeedProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const ActivityFeed = ({
role = 'img',
...props
}: ActivityFeedProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const ActivityFeed = ({
`;
const accessibleProps = generateAccessibleProps(role, 'ActivityFeed', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
ActivityFeed.displayName = 'ActivityFeed';
ActivityFeed.isGlyph = true;
diff --git a/packages/icon/src/generated/AddFile.tsx b/packages/icon/src/generated/AddFile.tsx
index 78008accee..54eae80e49 100644
--- a/packages/icon/src/generated/AddFile.tsx
+++ b/packages/icon/src/generated/AddFile.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum cc1e1cbb6d61f3388205f4e843e3e712
+* @checksum 9d241bdb9a9755e69b14c65c5ada7b83
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface AddFileProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const AddFile = ({
role = 'img',
...props
}: AddFileProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const AddFile = ({
`;
const accessibleProps = generateAccessibleProps(role, 'AddFile', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
AddFile.displayName = 'AddFile';
AddFile.isGlyph = true;
diff --git a/packages/icon/src/generated/AllProducts.tsx b/packages/icon/src/generated/AllProducts.tsx
index 8a47f63a7f..bc1617ab13 100644
--- a/packages/icon/src/generated/AllProducts.tsx
+++ b/packages/icon/src/generated/AllProducts.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 5c37a6bef3cb4644287c2c3f068f875a
+* @checksum 6e02f67e866a650b89700f27b7d227a8
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface AllProductsProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const AllProducts = ({
role = 'img',
...props
}: AllProductsProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const AllProducts = ({
`;
const accessibleProps = generateAccessibleProps(role, 'AllProducts', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
AllProducts.displayName = 'AllProducts';
AllProducts.isGlyph = true;
diff --git a/packages/icon/src/generated/AnalyticsNode.tsx b/packages/icon/src/generated/AnalyticsNode.tsx
index 0dfc35791f..00014accda 100644
--- a/packages/icon/src/generated/AnalyticsNode.tsx
+++ b/packages/icon/src/generated/AnalyticsNode.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 9805552df6dff2c768c44ca81aa213c4
+* @checksum 265c75036a8bcdb40d1268c94fe4769f
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface AnalyticsNodeProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const AnalyticsNode = ({
role = 'img',
...props
}: AnalyticsNodeProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const AnalyticsNode = ({
`;
const accessibleProps = generateAccessibleProps(role, 'AnalyticsNode', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
AnalyticsNode.displayName = 'AnalyticsNode';
AnalyticsNode.isGlyph = true;
diff --git a/packages/icon/src/generated/Apps.tsx b/packages/icon/src/generated/Apps.tsx
index 71b47db97c..e657b8790a 100644
--- a/packages/icon/src/generated/Apps.tsx
+++ b/packages/icon/src/generated/Apps.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 425e40d61dd5d93e2cee0b03900ae595
+* @checksum fd4b5e6ffb82c2ae671db1db31d737fc
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface AppsProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Apps = ({
role = 'img',
...props
}: AppsProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Apps = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Apps', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Apps.displayName = 'Apps';
Apps.isGlyph = true;
diff --git a/packages/icon/src/generated/Array.tsx b/packages/icon/src/generated/Array.tsx
index 78c6b1b423..4cf0acc9d9 100644
--- a/packages/icon/src/generated/Array.tsx
+++ b/packages/icon/src/generated/Array.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum b3bf0a50a840b53f371336851204c2a5
+* @checksum c6b9e3f17644ba370dbfbed5e69eaf1c
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ArrayProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Array = ({
role = 'img',
...props
}: ArrayProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Array = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Array', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Array.displayName = 'Array';
Array.isGlyph = true;
diff --git a/packages/icon/src/generated/ArrowDown.tsx b/packages/icon/src/generated/ArrowDown.tsx
index e3ee37d12b..828a77be37 100644
--- a/packages/icon/src/generated/ArrowDown.tsx
+++ b/packages/icon/src/generated/ArrowDown.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 80388a72ab7b330b3a6580b0c297fddf
+* @checksum 9437f68d12bf7a9a78296d9c9f946a47
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ArrowDownProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const ArrowDown = ({
role = 'img',
...props
}: ArrowDownProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const ArrowDown = ({
`;
const accessibleProps = generateAccessibleProps(role, 'ArrowDown', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
ArrowDown.displayName = 'ArrowDown';
ArrowDown.isGlyph = true;
diff --git a/packages/icon/src/generated/ArrowLeft.tsx b/packages/icon/src/generated/ArrowLeft.tsx
index a93f71ef36..69c47d30ad 100644
--- a/packages/icon/src/generated/ArrowLeft.tsx
+++ b/packages/icon/src/generated/ArrowLeft.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum b616058bc8611a0f41a0b72ef9007615
+* @checksum b8f0afcac7be2bbf00ce7e4eeb60dd18
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ArrowLeftProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const ArrowLeft = ({
role = 'img',
...props
}: ArrowLeftProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const ArrowLeft = ({
`;
const accessibleProps = generateAccessibleProps(role, 'ArrowLeft', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
ArrowLeft.displayName = 'ArrowLeft';
ArrowLeft.isGlyph = true;
diff --git a/packages/icon/src/generated/ArrowRight.tsx b/packages/icon/src/generated/ArrowRight.tsx
index e520a7fbd0..6927a5426a 100644
--- a/packages/icon/src/generated/ArrowRight.tsx
+++ b/packages/icon/src/generated/ArrowRight.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 23de185adab4900108b14253a1e923ae
+* @checksum 26a58ea4031a88c43e834c9b18d201f9
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ArrowRightProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const ArrowRight = ({
role = 'img',
...props
}: ArrowRightProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const ArrowRight = ({
`;
const accessibleProps = generateAccessibleProps(role, 'ArrowRight', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
ArrowRight.displayName = 'ArrowRight';
ArrowRight.isGlyph = true;
diff --git a/packages/icon/src/generated/ArrowUp.tsx b/packages/icon/src/generated/ArrowUp.tsx
index e599f19f22..4521219b00 100644
--- a/packages/icon/src/generated/ArrowUp.tsx
+++ b/packages/icon/src/generated/ArrowUp.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 49ee0cf73d7b62b81389b9ff02da9762
+* @checksum 4d9da39771da1e36ac5d8227b2cc44c1
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ArrowUpProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const ArrowUp = ({
role = 'img',
...props
}: ArrowUpProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const ArrowUp = ({
`;
const accessibleProps = generateAccessibleProps(role, 'ArrowUp', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
ArrowUp.displayName = 'ArrowUp';
ArrowUp.isGlyph = true;
diff --git a/packages/icon/src/generated/Award.tsx b/packages/icon/src/generated/Award.tsx
index 4b5f8a12c5..3f934973e5 100644
--- a/packages/icon/src/generated/Award.tsx
+++ b/packages/icon/src/generated/Award.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 3b9e32a25f51f7150b52bafd3268e9e7
+* @checksum f31d0f9bba287d5bf4a46e0c1bae3dcb
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface AwardProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Award = ({
role = 'img',
...props
}: AwardProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Award = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Award', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Award.displayName = 'Award';
Award.isGlyph = true;
diff --git a/packages/icon/src/generated/Beaker.tsx b/packages/icon/src/generated/Beaker.tsx
index 11d0ee9095..aa2c140b5f 100644
--- a/packages/icon/src/generated/Beaker.tsx
+++ b/packages/icon/src/generated/Beaker.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 672dda640a4f6847536982968cfb0a72
+* @checksum 50f0566b44be1897710a3b16b07575dc
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface BeakerProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Beaker = ({
role = 'img',
...props
}: BeakerProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Beaker = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Beaker', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Beaker.displayName = 'Beaker';
Beaker.isGlyph = true;
diff --git a/packages/icon/src/generated/Bell.tsx b/packages/icon/src/generated/Bell.tsx
index 232b92e7d7..c403d52feb 100644
--- a/packages/icon/src/generated/Bell.tsx
+++ b/packages/icon/src/generated/Bell.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum c63a1d36f26f487d4e09ec57d2e07e96
+* @checksum 74750d7efa8657bf2279254580dad0e8
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface BellProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Bell = ({
role = 'img',
...props
}: BellProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Bell = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Bell', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Bell.displayName = 'Bell';
Bell.isGlyph = true;
diff --git a/packages/icon/src/generated/Biometric.tsx b/packages/icon/src/generated/Biometric.tsx
index 957643de7b..b29ce63b6d 100644
--- a/packages/icon/src/generated/Biometric.tsx
+++ b/packages/icon/src/generated/Biometric.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum b38fe171af2489e14639cf28ce6f82a9
+* @checksum cdc56ff7da42d8345c636fffba370395
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface BiometricProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Biometric = ({
role = 'img',
...props
}: BiometricProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Biometric = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Biometric', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Biometric.displayName = 'Biometric';
Biometric.isGlyph = true;
diff --git a/packages/icon/src/generated/Boolean.tsx b/packages/icon/src/generated/Boolean.tsx
index 3a6d040086..1949cbaa44 100644
--- a/packages/icon/src/generated/Boolean.tsx
+++ b/packages/icon/src/generated/Boolean.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 224d52aa04474618343045cb91eb024b
+* @checksum 307fea66f968bdaa9d730c72c09867c6
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface BooleanProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Boolean = ({
role = 'img',
...props
}: BooleanProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Boolean = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Boolean', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Boolean.displayName = 'Boolean';
Boolean.isGlyph = true;
diff --git a/packages/icon/src/generated/Building.tsx b/packages/icon/src/generated/Building.tsx
index 0db5ed0386..91d99e7426 100644
--- a/packages/icon/src/generated/Building.tsx
+++ b/packages/icon/src/generated/Building.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum cd0cc93f287eb3cfa85f6b4f23f219ea
+* @checksum c34ec414130942b0a18e0047619a8110
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface BuildingProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Building = ({
role = 'img',
...props
}: BuildingProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Building = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Building', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Building.displayName = 'Building';
Building.isGlyph = true;
diff --git a/packages/icon/src/generated/Bulb.tsx b/packages/icon/src/generated/Bulb.tsx
index 1c1ee511c7..ed366abddd 100644
--- a/packages/icon/src/generated/Bulb.tsx
+++ b/packages/icon/src/generated/Bulb.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum a01c0e6b2545e3d46df479877be7691a
+* @checksum 8c69a6795e940dcfd317faad38eb0801
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface BulbProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Bulb = ({
role = 'img',
...props
}: BulbProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Bulb = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Bulb', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Bulb.displayName = 'Bulb';
Bulb.isGlyph = true;
diff --git a/packages/icon/src/generated/Calendar.tsx b/packages/icon/src/generated/Calendar.tsx
index 25f8664acf..bb27432fd5 100644
--- a/packages/icon/src/generated/Calendar.tsx
+++ b/packages/icon/src/generated/Calendar.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 7112ff5b67ee7b683204ef6c2ef8f4bc
+* @checksum 3f4399743b8d60fb6c36de3b8256456c
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CalendarProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Calendar = ({
role = 'img',
...props
}: CalendarProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Calendar = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Calendar', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Calendar.displayName = 'Calendar';
Calendar.isGlyph = true;
diff --git a/packages/icon/src/generated/Camera.tsx b/packages/icon/src/generated/Camera.tsx
index 6106ea1236..68dac61984 100644
--- a/packages/icon/src/generated/Camera.tsx
+++ b/packages/icon/src/generated/Camera.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 47b24752cf1f046d783a987dcb3c42dd
+* @checksum 8aff628acbfb7f2ca52670475c85bf3e
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CameraProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Camera = ({
role = 'img',
...props
}: CameraProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Camera = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Camera', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Camera.displayName = 'Camera';
Camera.isGlyph = true;
diff --git a/packages/icon/src/generated/Cap.tsx b/packages/icon/src/generated/Cap.tsx
index 1337230605..cf10ad1b90 100644
--- a/packages/icon/src/generated/Cap.tsx
+++ b/packages/icon/src/generated/Cap.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 4e96db1fcbbe1eaff9f36dcc67cde9f2
+* @checksum e34fc73647e110da1848d92ab1f69a7f
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CapProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Cap = ({
role = 'img',
...props
}: CapProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Cap = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Cap', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Cap.displayName = 'Cap';
Cap.isGlyph = true;
diff --git a/packages/icon/src/generated/CaretDown.tsx b/packages/icon/src/generated/CaretDown.tsx
index 653b7202b9..f55bd21020 100644
--- a/packages/icon/src/generated/CaretDown.tsx
+++ b/packages/icon/src/generated/CaretDown.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum b7cc7a9061c98a368fd005b771e1f18d
+* @checksum faea53a69296283876240c2f52c4d535
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CaretDownProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const CaretDown = ({
role = 'img',
...props
}: CaretDownProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const CaretDown = ({
`;
const accessibleProps = generateAccessibleProps(role, 'CaretDown', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
CaretDown.displayName = 'CaretDown';
CaretDown.isGlyph = true;
diff --git a/packages/icon/src/generated/CaretLeft.tsx b/packages/icon/src/generated/CaretLeft.tsx
index e02f7e30eb..0a69c8a569 100644
--- a/packages/icon/src/generated/CaretLeft.tsx
+++ b/packages/icon/src/generated/CaretLeft.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 0bc57fb243bd763d1297c5e8acd52d96
+* @checksum 5ccea9324f8a2ef8474355b44ea3834d
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CaretLeftProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const CaretLeft = ({
role = 'img',
...props
}: CaretLeftProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const CaretLeft = ({
`;
const accessibleProps = generateAccessibleProps(role, 'CaretLeft', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
CaretLeft.displayName = 'CaretLeft';
CaretLeft.isGlyph = true;
diff --git a/packages/icon/src/generated/CaretRight.tsx b/packages/icon/src/generated/CaretRight.tsx
index d75f1eee06..68631c20a1 100644
--- a/packages/icon/src/generated/CaretRight.tsx
+++ b/packages/icon/src/generated/CaretRight.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 47bdb54fcab8aca96858ae2be419aa77
+* @checksum b267d20161f902d535b7860d1fbfb7e6
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CaretRightProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const CaretRight = ({
role = 'img',
...props
}: CaretRightProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const CaretRight = ({
`;
const accessibleProps = generateAccessibleProps(role, 'CaretRight', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
CaretRight.displayName = 'CaretRight';
CaretRight.isGlyph = true;
diff --git a/packages/icon/src/generated/CaretUp.tsx b/packages/icon/src/generated/CaretUp.tsx
index 1b34d42904..e358efda9f 100644
--- a/packages/icon/src/generated/CaretUp.tsx
+++ b/packages/icon/src/generated/CaretUp.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 467de2169295f5b5a3166cda3118c90f
+* @checksum 20cd9893bb8962d333afa7d8b53b0272
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CaretUpProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const CaretUp = ({
role = 'img',
...props
}: CaretUpProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const CaretUp = ({
`;
const accessibleProps = generateAccessibleProps(role, 'CaretUp', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
CaretUp.displayName = 'CaretUp';
CaretUp.isGlyph = true;
diff --git a/packages/icon/src/generated/ChartFilled.tsx b/packages/icon/src/generated/ChartFilled.tsx
index 4cf46ecb3a..44d310d272 100644
--- a/packages/icon/src/generated/ChartFilled.tsx
+++ b/packages/icon/src/generated/ChartFilled.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 52a2e2fd93d3181057afc417ae9a2118
+* @checksum ec29acc313c57cb762030195b99f1284
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ChartFilledProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const ChartFilled = ({
role = 'img',
...props
}: ChartFilledProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const ChartFilled = ({
`;
const accessibleProps = generateAccessibleProps(role, 'ChartFilled', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
ChartFilled.displayName = 'ChartFilled';
ChartFilled.isGlyph = true;
diff --git a/packages/icon/src/generated/Charts.tsx b/packages/icon/src/generated/Charts.tsx
index 1a2ad662a7..cf8ef36ff6 100644
--- a/packages/icon/src/generated/Charts.tsx
+++ b/packages/icon/src/generated/Charts.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum eb9e11c27066d151ace30e0570051ecc
+* @checksum 9a970971e28f512d48606ec8433963b9
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ChartsProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Charts = ({
role = 'img',
...props
}: ChartsProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Charts = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Charts', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Charts.displayName = 'Charts';
Charts.isGlyph = true;
diff --git a/packages/icon/src/generated/Checkmark.tsx b/packages/icon/src/generated/Checkmark.tsx
index 9de89d5ac6..54275c3a52 100644
--- a/packages/icon/src/generated/Checkmark.tsx
+++ b/packages/icon/src/generated/Checkmark.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 5c8f29787a59e9aa2cb10f982fb0e34e
+* @checksum ec066b42edd61151fa77028c59e1cd38
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CheckmarkProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Checkmark = ({
role = 'img',
...props
}: CheckmarkProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Checkmark = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Checkmark', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Checkmark.displayName = 'Checkmark';
Checkmark.isGlyph = true;
diff --git a/packages/icon/src/generated/CheckmarkWithCircle.tsx b/packages/icon/src/generated/CheckmarkWithCircle.tsx
index 68543dac2b..0c40e62a03 100644
--- a/packages/icon/src/generated/CheckmarkWithCircle.tsx
+++ b/packages/icon/src/generated/CheckmarkWithCircle.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 01e3301b68ab1c0849499c3fd52b9c64
+* @checksum 00077ebf794be9aacfcbad2265921574
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CheckmarkWithCircleProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const CheckmarkWithCircle = ({
role = 'img',
...props
}: CheckmarkWithCircleProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const CheckmarkWithCircle = ({
`;
const accessibleProps = generateAccessibleProps(role, 'CheckmarkWithCircle', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
CheckmarkWithCircle.displayName = 'CheckmarkWithCircle';
CheckmarkWithCircle.isGlyph = true;
diff --git a/packages/icon/src/generated/ChevronDown.tsx b/packages/icon/src/generated/ChevronDown.tsx
index a07bdfd8e4..8c53f5d970 100644
--- a/packages/icon/src/generated/ChevronDown.tsx
+++ b/packages/icon/src/generated/ChevronDown.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 1b70552302dc5f33ef29f45169b61722
+* @checksum e275fb3bb5b89ba8e7921f8057d97b61
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ChevronDownProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const ChevronDown = ({
role = 'img',
...props
}: ChevronDownProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const ChevronDown = ({
`;
const accessibleProps = generateAccessibleProps(role, 'ChevronDown', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
ChevronDown.displayName = 'ChevronDown';
ChevronDown.isGlyph = true;
diff --git a/packages/icon/src/generated/ChevronLeft.tsx b/packages/icon/src/generated/ChevronLeft.tsx
index f75e5d69c9..45fa24ead3 100644
--- a/packages/icon/src/generated/ChevronLeft.tsx
+++ b/packages/icon/src/generated/ChevronLeft.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum b256a3ede62cb851b7e7e09ceb3fe12c
+* @checksum 6fc3eec869d8fdac398779319ff111e5
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ChevronLeftProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const ChevronLeft = ({
role = 'img',
...props
}: ChevronLeftProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const ChevronLeft = ({
`;
const accessibleProps = generateAccessibleProps(role, 'ChevronLeft', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
ChevronLeft.displayName = 'ChevronLeft';
ChevronLeft.isGlyph = true;
diff --git a/packages/icon/src/generated/ChevronRight.tsx b/packages/icon/src/generated/ChevronRight.tsx
index 1fc2ad7886..d02378dfb0 100644
--- a/packages/icon/src/generated/ChevronRight.tsx
+++ b/packages/icon/src/generated/ChevronRight.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 61deb1cc5f8aaabad3c9303f7ffdfd45
+* @checksum 60bb62c5594c1e3ad5fa32afdd700306
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ChevronRightProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const ChevronRight = ({
role = 'img',
...props
}: ChevronRightProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const ChevronRight = ({
`;
const accessibleProps = generateAccessibleProps(role, 'ChevronRight', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
ChevronRight.displayName = 'ChevronRight';
ChevronRight.isGlyph = true;
diff --git a/packages/icon/src/generated/ChevronUp.tsx b/packages/icon/src/generated/ChevronUp.tsx
index 0dfd213cfd..d8f2fe2979 100644
--- a/packages/icon/src/generated/ChevronUp.tsx
+++ b/packages/icon/src/generated/ChevronUp.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum c2e9544b35690bffab1838d83caa496d
+* @checksum 5b3ceb89db986b5027dc2afc7a9f6e4c
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ChevronUpProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const ChevronUp = ({
role = 'img',
...props
}: ChevronUpProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const ChevronUp = ({
`;
const accessibleProps = generateAccessibleProps(role, 'ChevronUp', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
ChevronUp.displayName = 'ChevronUp';
ChevronUp.isGlyph = true;
diff --git a/packages/icon/src/generated/Circle.tsx b/packages/icon/src/generated/Circle.tsx
index 470f504696..7d01261f47 100644
--- a/packages/icon/src/generated/Circle.tsx
+++ b/packages/icon/src/generated/Circle.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 58c735cc8fda3c43338ae2f01473a0cf
+* @checksum e829167c1953740dcb6125ad8cd3c702
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CircleProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Circle = ({
role = 'img',
...props
}: CircleProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Circle = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Circle', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Circle.displayName = 'Circle';
Circle.isGlyph = true;
diff --git a/packages/icon/src/generated/Clock.tsx b/packages/icon/src/generated/Clock.tsx
index 984ef11aeb..84d93a5c20 100644
--- a/packages/icon/src/generated/Clock.tsx
+++ b/packages/icon/src/generated/Clock.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 0c4caec1c47768a8921a638fb73034dc
+* @checksum 9a02c8d2237e34d328ae06498762c516
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ClockProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Clock = ({
role = 'img',
...props
}: ClockProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Clock = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Clock', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Clock.displayName = 'Clock';
Clock.isGlyph = true;
diff --git a/packages/icon/src/generated/ClockWithArrow.tsx b/packages/icon/src/generated/ClockWithArrow.tsx
index 562e846d21..2d2b95496c 100644
--- a/packages/icon/src/generated/ClockWithArrow.tsx
+++ b/packages/icon/src/generated/ClockWithArrow.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum c10e62ba77cbd413359726526d086577
+* @checksum 801ec811d8cadd01a92629fba5496494
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ClockWithArrowProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const ClockWithArrow = ({
role = 'img',
...props
}: ClockWithArrowProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const ClockWithArrow = ({
`;
const accessibleProps = generateAccessibleProps(role, 'ClockWithArrow', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
ClockWithArrow.displayName = 'ClockWithArrow';
ClockWithArrow.isGlyph = true;
diff --git a/packages/icon/src/generated/Clone.tsx b/packages/icon/src/generated/Clone.tsx
index 3b0a8f5e52..d89d3a322f 100644
--- a/packages/icon/src/generated/Clone.tsx
+++ b/packages/icon/src/generated/Clone.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum c49bb6f86ac38132c73ffe2cd13d6343
+* @checksum 5272702ad682dc0cd2673580405c6eae
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CloneProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Clone = ({
role = 'img',
...props
}: CloneProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Clone = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Clone', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Clone.displayName = 'Clone';
Clone.isGlyph = true;
diff --git a/packages/icon/src/generated/Cloud.tsx b/packages/icon/src/generated/Cloud.tsx
index 3bd89316dd..c54756e8fa 100644
--- a/packages/icon/src/generated/Cloud.tsx
+++ b/packages/icon/src/generated/Cloud.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum b794844aa742da6b09e629854e0d0342
+* @checksum 419912cc8359239dde4ae49ac42ce174
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CloudProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Cloud = ({
role = 'img',
...props
}: CloudProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Cloud = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Cloud', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Cloud.displayName = 'Cloud';
Cloud.isGlyph = true;
diff --git a/packages/icon/src/generated/Code.tsx b/packages/icon/src/generated/Code.tsx
index f0fed72cee..ed0f27a980 100644
--- a/packages/icon/src/generated/Code.tsx
+++ b/packages/icon/src/generated/Code.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 30e648aaf8cce9b86c913f565c132d42
+* @checksum d1646228a06071051ef13676e6a11303
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CodeProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Code = ({
role = 'img',
...props
}: CodeProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Code = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Code', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Code.displayName = 'Code';
Code.isGlyph = true;
diff --git a/packages/icon/src/generated/CodeBlock.tsx b/packages/icon/src/generated/CodeBlock.tsx
index eb28ea3d80..64d70f2603 100644
--- a/packages/icon/src/generated/CodeBlock.tsx
+++ b/packages/icon/src/generated/CodeBlock.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 5386522dad3a43ade4466bb31a7c5bc6
+* @checksum fe7d7e62b2cd7fdbaf37e4bcd3a4c6fe
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CodeBlockProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const CodeBlock = ({
role = 'img',
...props
}: CodeBlockProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const CodeBlock = ({
`;
const accessibleProps = generateAccessibleProps(role, 'CodeBlock', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
CodeBlock.displayName = 'CodeBlock';
CodeBlock.isGlyph = true;
diff --git a/packages/icon/src/generated/Coin.tsx b/packages/icon/src/generated/Coin.tsx
index 671429b0b0..d99239dfec 100644
--- a/packages/icon/src/generated/Coin.tsx
+++ b/packages/icon/src/generated/Coin.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum acc25b6acacb32da914ddd0746bfce3f
+* @checksum 5ad701f313c4e655eac0938f2d7f3fb8
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CoinProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Coin = ({
role = 'img',
...props
}: CoinProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Coin = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Coin', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Coin.displayName = 'Coin';
Coin.isGlyph = true;
diff --git a/packages/icon/src/generated/Colon.tsx b/packages/icon/src/generated/Colon.tsx
index c29db41b6b..34e175d783 100644
--- a/packages/icon/src/generated/Colon.tsx
+++ b/packages/icon/src/generated/Colon.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 7edf17e577c84d506317f7a87288b5aa
+* @checksum aa11cb66b8291a087fe11fbe4616292c
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ColonProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Colon = ({
role = 'img',
...props
}: ColonProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Colon = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Colon', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Colon.displayName = 'Colon';
Colon.isGlyph = true;
diff --git a/packages/icon/src/generated/Config.tsx b/packages/icon/src/generated/Config.tsx
index 0d5ec1768b..92408a6610 100644
--- a/packages/icon/src/generated/Config.tsx
+++ b/packages/icon/src/generated/Config.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 9fadfbc8315f706fab1639b48cefccfe
+* @checksum 3e43b9a64baef9e6a2e1b0bad4c0d4e7
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ConfigProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Config = ({
role = 'img',
...props
}: ConfigProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Config = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Config', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Config.displayName = 'Config';
Config.isGlyph = true;
diff --git a/packages/icon/src/generated/Connect.tsx b/packages/icon/src/generated/Connect.tsx
index c6de807e15..7a9beafb47 100644
--- a/packages/icon/src/generated/Connect.tsx
+++ b/packages/icon/src/generated/Connect.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 0184ac81eca23f9e9fa3a02d1572db34
+* @checksum cacc5f021481d402053e2d0be9bd7edb
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ConnectProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Connect = ({
role = 'img',
...props
}: ConnectProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Connect = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Connect', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Connect.displayName = 'Connect';
Connect.isGlyph = true;
diff --git a/packages/icon/src/generated/Copy.tsx b/packages/icon/src/generated/Copy.tsx
index 6a236e05e1..4ee18715ac 100644
--- a/packages/icon/src/generated/Copy.tsx
+++ b/packages/icon/src/generated/Copy.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 757446df7bed5d8ee0b4515c2a908b82
+* @checksum 5d913433fd02bb0ed57bf74446645eb2
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CopyProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Copy = ({
role = 'img',
...props
}: CopyProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Copy = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Copy', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Copy.displayName = 'Copy';
Copy.isGlyph = true;
diff --git a/packages/icon/src/generated/CreditCard.tsx b/packages/icon/src/generated/CreditCard.tsx
index 96be9052d0..da16d6d9de 100644
--- a/packages/icon/src/generated/CreditCard.tsx
+++ b/packages/icon/src/generated/CreditCard.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 50cfcb04ce79f8c7f4b7ab5c8594ccfc
+* @checksum bc2752783815d54113564fcb4b09858d
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CreditCardProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const CreditCard = ({
role = 'img',
...props
}: CreditCardProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const CreditCard = ({
`;
const accessibleProps = generateAccessibleProps(role, 'CreditCard', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
CreditCard.displayName = 'CreditCard';
CreditCard.isGlyph = true;
diff --git a/packages/icon/src/generated/CurlyBraces.tsx b/packages/icon/src/generated/CurlyBraces.tsx
index b7c5b82b54..df48299158 100644
--- a/packages/icon/src/generated/CurlyBraces.tsx
+++ b/packages/icon/src/generated/CurlyBraces.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 76897dc0cfe4ff71bcce816038e398a7
+* @checksum 2493a4e08371585756eed503e8cded3e
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CurlyBracesProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const CurlyBraces = ({
role = 'img',
...props
}: CurlyBracesProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const CurlyBraces = ({
`;
const accessibleProps = generateAccessibleProps(role, 'CurlyBraces', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
CurlyBraces.displayName = 'CurlyBraces';
CurlyBraces.isGlyph = true;
diff --git a/packages/icon/src/generated/Cursor.tsx b/packages/icon/src/generated/Cursor.tsx
index 499f52e37a..e6f9c736e7 100644
--- a/packages/icon/src/generated/Cursor.tsx
+++ b/packages/icon/src/generated/Cursor.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum d503f7f7b2910c436fc8350192119667
+* @checksum 7e2f46ea0cd42230970ecba889744916
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface CursorProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Cursor = ({
role = 'img',
...props
}: CursorProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Cursor = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Cursor', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Cursor.displayName = 'Cursor';
Cursor.isGlyph = true;
diff --git a/packages/icon/src/generated/Dashboard.tsx b/packages/icon/src/generated/Dashboard.tsx
index 1ff6b0d04d..52065807f3 100644
--- a/packages/icon/src/generated/Dashboard.tsx
+++ b/packages/icon/src/generated/Dashboard.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 20ca1d9aa8b48ee77c0b1e1036622ed1
+* @checksum 12343b3c630ed3481d18d47fac2e2191
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface DashboardProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Dashboard = ({
role = 'img',
...props
}: DashboardProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Dashboard = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Dashboard', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Dashboard.displayName = 'Dashboard';
Dashboard.isGlyph = true;
diff --git a/packages/icon/src/generated/Database.tsx b/packages/icon/src/generated/Database.tsx
index 1f35795758..c8f3636a9d 100644
--- a/packages/icon/src/generated/Database.tsx
+++ b/packages/icon/src/generated/Database.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum eb1573d4ef4842ea3d9a2e83b80bbb57
+* @checksum 10fc51684f1060f611bfbe1719c8a862
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface DatabaseProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Database = ({
role = 'img',
...props
}: DatabaseProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Database = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Database', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Database.displayName = 'Database';
Database.isGlyph = true;
diff --git a/packages/icon/src/generated/Diagram.tsx b/packages/icon/src/generated/Diagram.tsx
index 089dc15034..06e455a2a5 100644
--- a/packages/icon/src/generated/Diagram.tsx
+++ b/packages/icon/src/generated/Diagram.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum f5cb72651982fab52d9f3b57f86d7334
+* @checksum 1d18686942e620277e4b035a7f3d44f9
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface DiagramProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Diagram = ({
role = 'img',
...props
}: DiagramProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Diagram = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Diagram', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Diagram.displayName = 'Diagram';
Diagram.isGlyph = true;
diff --git a/packages/icon/src/generated/Diagram2.tsx b/packages/icon/src/generated/Diagram2.tsx
index 1b5b9a316a..9976d5ab48 100644
--- a/packages/icon/src/generated/Diagram2.tsx
+++ b/packages/icon/src/generated/Diagram2.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 61dfaebf66fe6da158506f2714d16330
+* @checksum 7c13c43955b830bed25c266f26606406
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface Diagram2Props extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Diagram2 = ({
role = 'img',
...props
}: Diagram2Props) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Diagram2 = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Diagram2', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Diagram2.displayName = 'Diagram2';
Diagram2.isGlyph = true;
diff --git a/packages/icon/src/generated/Diagram3.tsx b/packages/icon/src/generated/Diagram3.tsx
index 5740c45ebf..cd85031b6a 100644
--- a/packages/icon/src/generated/Diagram3.tsx
+++ b/packages/icon/src/generated/Diagram3.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 703675a1797ecdf19ce09182c94e05c4
+* @checksum 383bbfa70722f01eb8c7e1e6bed91194
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface Diagram3Props extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Diagram3 = ({
role = 'img',
...props
}: Diagram3Props) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Diagram3 = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Diagram3', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Diagram3.displayName = 'Diagram3';
Diagram3.isGlyph = true;
diff --git a/packages/icon/src/generated/Disconnect.tsx b/packages/icon/src/generated/Disconnect.tsx
index 1f17855588..78dde89407 100644
--- a/packages/icon/src/generated/Disconnect.tsx
+++ b/packages/icon/src/generated/Disconnect.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 2c0de1f29e6f85707ac47516d174ff52
+* @checksum 9fc9990a94ba151cbac6ba7938afa23d
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface DisconnectProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Disconnect = ({
role = 'img',
...props
}: DisconnectProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Disconnect = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Disconnect', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Disconnect.displayName = 'Disconnect';
Disconnect.isGlyph = true;
diff --git a/packages/icon/src/generated/Download.tsx b/packages/icon/src/generated/Download.tsx
index 108e94a324..8ee44ce8b2 100644
--- a/packages/icon/src/generated/Download.tsx
+++ b/packages/icon/src/generated/Download.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum e3557fcbfdcc2f05665dab6cb7c73753
+* @checksum ecd0dc351a44588f395b93c39d47fe01
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface DownloadProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Download = ({
role = 'img',
...props
}: DownloadProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Download = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Download', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Download.displayName = 'Download';
Download.isGlyph = true;
diff --git a/packages/icon/src/generated/Drag.tsx b/packages/icon/src/generated/Drag.tsx
index 80b382b94f..423b2d10f5 100644
--- a/packages/icon/src/generated/Drag.tsx
+++ b/packages/icon/src/generated/Drag.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 315987e344984b22a0951bc7bec2ac20
+* @checksum c6d5c97459805c76728763d0049b1755
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface DragProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Drag = ({
role = 'img',
...props
}: DragProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Drag = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Drag', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Drag.displayName = 'Drag';
Drag.isGlyph = true;
diff --git a/packages/icon/src/generated/Edit.tsx b/packages/icon/src/generated/Edit.tsx
index 3cce815c20..0edd06a4bd 100644
--- a/packages/icon/src/generated/Edit.tsx
+++ b/packages/icon/src/generated/Edit.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum b7cab0d99453146719f7da2929c44003
+* @checksum 7e5327d531eb7c4ab9f74f0f8d5168d0
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface EditProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Edit = ({
role = 'img',
...props
}: EditProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Edit = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Edit', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Edit.displayName = 'Edit';
Edit.isGlyph = true;
diff --git a/packages/icon/src/generated/Ellipsis.tsx b/packages/icon/src/generated/Ellipsis.tsx
index 0d24c8f242..2ad24ce602 100644
--- a/packages/icon/src/generated/Ellipsis.tsx
+++ b/packages/icon/src/generated/Ellipsis.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 7660d6fb3d24577cfced3bb912ead720
+* @checksum 7279f3d19ae1847bdeb83bf6d4c6f6eb
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface EllipsisProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Ellipsis = ({
role = 'img',
...props
}: EllipsisProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Ellipsis = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Ellipsis', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Ellipsis.displayName = 'Ellipsis';
Ellipsis.isGlyph = true;
diff --git a/packages/icon/src/generated/Email.tsx b/packages/icon/src/generated/Email.tsx
index 5f567b96bc..cd8cdb8d1a 100644
--- a/packages/icon/src/generated/Email.tsx
+++ b/packages/icon/src/generated/Email.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 0f01463681c2106e89d98ca898c9a2a0
+* @checksum 4ccf39e2832b7958413f5dcf1e8b92d9
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface EmailProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Email = ({
role = 'img',
...props
}: EmailProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Email = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Email', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Email.displayName = 'Email';
Email.isGlyph = true;
diff --git a/packages/icon/src/generated/EmptyDatabase.tsx b/packages/icon/src/generated/EmptyDatabase.tsx
index 7a5cc25e38..563d2dcce4 100644
--- a/packages/icon/src/generated/EmptyDatabase.tsx
+++ b/packages/icon/src/generated/EmptyDatabase.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 191affe38345c5ac4e8dade5731ed200
+* @checksum 10a062116ea680566514b7bbd6a23543
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface EmptyDatabaseProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const EmptyDatabase = ({
role = 'img',
...props
}: EmptyDatabaseProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const EmptyDatabase = ({
`;
const accessibleProps = generateAccessibleProps(role, 'EmptyDatabase', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
EmptyDatabase.displayName = 'EmptyDatabase';
EmptyDatabase.isGlyph = true;
diff --git a/packages/icon/src/generated/EmptyFolder.tsx b/packages/icon/src/generated/EmptyFolder.tsx
index fc8e3cd83f..5eb13e9e88 100644
--- a/packages/icon/src/generated/EmptyFolder.tsx
+++ b/packages/icon/src/generated/EmptyFolder.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 27e4808c89a2df3b3b4222901edb8ad0
+* @checksum e643d2b2219d2af0c9f7019a024cf5fd
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface EmptyFolderProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const EmptyFolder = ({
role = 'img',
...props
}: EmptyFolderProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const EmptyFolder = ({
`;
const accessibleProps = generateAccessibleProps(role, 'EmptyFolder', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
EmptyFolder.displayName = 'EmptyFolder';
EmptyFolder.isGlyph = true;
diff --git a/packages/icon/src/generated/Eraser.tsx b/packages/icon/src/generated/Eraser.tsx
index 7f2e592665..94b790448c 100644
--- a/packages/icon/src/generated/Eraser.tsx
+++ b/packages/icon/src/generated/Eraser.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 543c08fb00bf1c1d2c2b4f041d804f59
+* @checksum f3dc3704cab47b6e170449b95ce7941e
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface EraserProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Eraser = ({
role = 'img',
...props
}: EraserProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Eraser = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Eraser', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Eraser.displayName = 'Eraser';
Eraser.isGlyph = true;
diff --git a/packages/icon/src/generated/Escalation.tsx b/packages/icon/src/generated/Escalation.tsx
index e07bc0ce0d..2d4c0dec86 100644
--- a/packages/icon/src/generated/Escalation.tsx
+++ b/packages/icon/src/generated/Escalation.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 2cb3bf9191d63dec9f01a2c35a440bb2
+* @checksum cc58f19c520502262c789fb80932b8e7
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface EscalationProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Escalation = ({
role = 'img',
...props
}: EscalationProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Escalation = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Escalation', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Escalation.displayName = 'Escalation';
Escalation.isGlyph = true;
diff --git a/packages/icon/src/generated/Export.tsx b/packages/icon/src/generated/Export.tsx
index d55b10dfef..477a02be12 100644
--- a/packages/icon/src/generated/Export.tsx
+++ b/packages/icon/src/generated/Export.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 9bbfaead3792ee03dcb656e8926b60ba
+* @checksum a270d72889172f9ce9df760e21081433
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ExportProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Export = ({
role = 'img',
...props
}: ExportProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Export = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Export', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Export.displayName = 'Export';
Export.isGlyph = true;
diff --git a/packages/icon/src/generated/Favorite.tsx b/packages/icon/src/generated/Favorite.tsx
index 631528563c..d70279562c 100644
--- a/packages/icon/src/generated/Favorite.tsx
+++ b/packages/icon/src/generated/Favorite.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 9105c932e585d948b3be9537b45867ba
+* @checksum 7244d39bbd8e05a17d3f20d10b6125d5
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface FavoriteProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Favorite = ({
role = 'img',
...props
}: FavoriteProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Favorite = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Favorite', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Favorite.displayName = 'Favorite';
Favorite.isGlyph = true;
diff --git a/packages/icon/src/generated/Federation.tsx b/packages/icon/src/generated/Federation.tsx
index a24217983a..f848f0d42c 100644
--- a/packages/icon/src/generated/Federation.tsx
+++ b/packages/icon/src/generated/Federation.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 30ad3a76c1480a237c9aa289c33049ba
+* @checksum a0ccfa81ae5643665b2623d2a09961d3
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface FederationProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Federation = ({
role = 'img',
...props
}: FederationProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Federation = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Federation', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Federation.displayName = 'Federation';
Federation.isGlyph = true;
diff --git a/packages/icon/src/generated/File.tsx b/packages/icon/src/generated/File.tsx
index 0edfc2216b..d0a2c70a07 100644
--- a/packages/icon/src/generated/File.tsx
+++ b/packages/icon/src/generated/File.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum a638451083c2d992bcceca9c9a011ad5
+* @checksum 2a5b7807c3eac2280501e585d8020a1d
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface FileProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const File = ({
role = 'img',
...props
}: FileProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const File = ({
`;
const accessibleProps = generateAccessibleProps(role, 'File', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
File.displayName = 'File';
File.isGlyph = true;
diff --git a/packages/icon/src/generated/Filter.tsx b/packages/icon/src/generated/Filter.tsx
index 5ed6607ef7..02ab7cffd8 100644
--- a/packages/icon/src/generated/Filter.tsx
+++ b/packages/icon/src/generated/Filter.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum a700d27f7ce1179149146df351bc239f
+* @checksum 7ce08aa7006737f22f4f5cda55faa565
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface FilterProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Filter = ({
role = 'img',
...props
}: FilterProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Filter = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Filter', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Filter.displayName = 'Filter';
Filter.isGlyph = true;
diff --git a/packages/icon/src/generated/Folder.tsx b/packages/icon/src/generated/Folder.tsx
index 6907b5b773..5332aa6d10 100644
--- a/packages/icon/src/generated/Folder.tsx
+++ b/packages/icon/src/generated/Folder.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 56c2bfa5ef7bbe055848858525fc9511
+* @checksum 83819ade6db7efb018768b25da779ccc
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface FolderProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Folder = ({
role = 'img',
...props
}: FolderProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Folder = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Folder', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Folder.displayName = 'Folder';
Folder.isGlyph = true;
diff --git a/packages/icon/src/generated/Format.tsx b/packages/icon/src/generated/Format.tsx
index b369a07264..247babbd9d 100644
--- a/packages/icon/src/generated/Format.tsx
+++ b/packages/icon/src/generated/Format.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 5449b4343d7881f7455f49c709a7ea95
+* @checksum a97bd266efe1fdbd69c4d4589dd96061
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface FormatProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Format = ({
role = 'img',
...props
}: FormatProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Format = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Format', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Format.displayName = 'Format';
Format.isGlyph = true;
diff --git a/packages/icon/src/generated/FullScreenEnter.tsx b/packages/icon/src/generated/FullScreenEnter.tsx
index a55f866c8e..05251d0176 100644
--- a/packages/icon/src/generated/FullScreenEnter.tsx
+++ b/packages/icon/src/generated/FullScreenEnter.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 795d59ef8fca2a4eefe2b1721a9a8a13
+* @checksum 94127249c923c2c8519be62c940f5c49
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface FullScreenEnterProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const FullScreenEnter = ({
role = 'img',
...props
}: FullScreenEnterProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const FullScreenEnter = ({
`;
const accessibleProps = generateAccessibleProps(role, 'FullScreenEnter', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
FullScreenEnter.displayName = 'FullScreenEnter';
FullScreenEnter.isGlyph = true;
diff --git a/packages/icon/src/generated/FullScreenExit.tsx b/packages/icon/src/generated/FullScreenExit.tsx
index a3a1e8559f..024beaef79 100644
--- a/packages/icon/src/generated/FullScreenExit.tsx
+++ b/packages/icon/src/generated/FullScreenExit.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum f484aadc94c0e228875b2f1c8b628a14
+* @checksum 6163e258a084f2b74ae1e9f96b8bdb1d
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface FullScreenExitProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const FullScreenExit = ({
role = 'img',
...props
}: FullScreenExitProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const FullScreenExit = ({
`;
const accessibleProps = generateAccessibleProps(role, 'FullScreenExit', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
FullScreenExit.displayName = 'FullScreenExit';
FullScreenExit.isGlyph = true;
diff --git a/packages/icon/src/generated/Function.tsx b/packages/icon/src/generated/Function.tsx
index f9a615c21c..3e8acb706d 100644
--- a/packages/icon/src/generated/Function.tsx
+++ b/packages/icon/src/generated/Function.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 0766fa669545a73f1261d2950d77510d
+* @checksum 8ad02ffaf712d2a311ba6b6b06e18a43
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface FunctionProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Function = ({
role = 'img',
...props
}: FunctionProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Function = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Function', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Function.displayName = 'Function';
Function.isGlyph = true;
diff --git a/packages/icon/src/generated/Gauge.tsx b/packages/icon/src/generated/Gauge.tsx
index 773ecb03ea..debe560141 100644
--- a/packages/icon/src/generated/Gauge.tsx
+++ b/packages/icon/src/generated/Gauge.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum fae4d3bd54d52655f04beb481a121b0d
+* @checksum 5e19d95946c683d99e402894574a71d3
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface GaugeProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Gauge = ({
role = 'img',
...props
}: GaugeProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Gauge = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Gauge', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Gauge.displayName = 'Gauge';
Gauge.isGlyph = true;
diff --git a/packages/icon/src/generated/GlobeAmericas.tsx b/packages/icon/src/generated/GlobeAmericas.tsx
index 148c4f489f..34b7ccce85 100644
--- a/packages/icon/src/generated/GlobeAmericas.tsx
+++ b/packages/icon/src/generated/GlobeAmericas.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 4aa7ede9e76acfe503c91a5cbbcc360e
+* @checksum cf44fec8ebe5cfca13fb9d8a140a4bde
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface GlobeAmericasProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const GlobeAmericas = ({
role = 'img',
...props
}: GlobeAmericasProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const GlobeAmericas = ({
`;
const accessibleProps = generateAccessibleProps(role, 'GlobeAmericas', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
GlobeAmericas.displayName = 'GlobeAmericas';
GlobeAmericas.isGlyph = true;
diff --git a/packages/icon/src/generated/GovernmentBuilding.tsx b/packages/icon/src/generated/GovernmentBuilding.tsx
index 164ef6d0af..2a3bd215ca 100644
--- a/packages/icon/src/generated/GovernmentBuilding.tsx
+++ b/packages/icon/src/generated/GovernmentBuilding.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 93d857dc5276aea15c4def863d4e770c
+* @checksum 26d79d1c4b746dda7fbdca11f434e964
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface GovernmentBuildingProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const GovernmentBuilding = ({
role = 'img',
...props
}: GovernmentBuildingProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const GovernmentBuilding = ({
`;
const accessibleProps = generateAccessibleProps(role, 'GovernmentBuilding', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
GovernmentBuilding.displayName = 'GovernmentBuilding';
GovernmentBuilding.isGlyph = true;
diff --git a/packages/icon/src/generated/Guide.tsx b/packages/icon/src/generated/Guide.tsx
index 997aa05ee5..f7d314a9cc 100644
--- a/packages/icon/src/generated/Guide.tsx
+++ b/packages/icon/src/generated/Guide.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 6197d4dc1126bf4eda03370327452548
+* @checksum 8c573105eb9ab4f831127e8033b67ff7
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface GuideProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Guide = ({
role = 'img',
...props
}: GuideProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Guide = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Guide', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Guide.displayName = 'Guide';
Guide.isGlyph = true;
diff --git a/packages/icon/src/generated/Hash.tsx b/packages/icon/src/generated/Hash.tsx
index 53093c2e75..eee3bcea22 100644
--- a/packages/icon/src/generated/Hash.tsx
+++ b/packages/icon/src/generated/Hash.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 732cbb137f14f311c82c7f60ee1f9242
+* @checksum 76a3e439b7df5616f7d4257fdc57c953
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface HashProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Hash = ({
role = 'img',
...props
}: HashProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Hash = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Hash', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Hash.displayName = 'Hash';
Hash.isGlyph = true;
diff --git a/packages/icon/src/generated/HiddenSecondaryNode.tsx b/packages/icon/src/generated/HiddenSecondaryNode.tsx
index 8234c6f1ac..ac0df57b40 100644
--- a/packages/icon/src/generated/HiddenSecondaryNode.tsx
+++ b/packages/icon/src/generated/HiddenSecondaryNode.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 2aff31aae26b5e933ae67e64e2995aaf
+* @checksum 6137eaf937720aabbb68834d9f14380e
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface HiddenSecondaryNodeProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const HiddenSecondaryNode = ({
role = 'img',
...props
}: HiddenSecondaryNodeProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const HiddenSecondaryNode = ({
`;
const accessibleProps = generateAccessibleProps(role, 'HiddenSecondaryNode', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
HiddenSecondaryNode.displayName = 'HiddenSecondaryNode';
HiddenSecondaryNode.isGlyph = true;
diff --git a/packages/icon/src/generated/Highlight.tsx b/packages/icon/src/generated/Highlight.tsx
index ed5a584210..7a6b4f318f 100644
--- a/packages/icon/src/generated/Highlight.tsx
+++ b/packages/icon/src/generated/Highlight.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum b33d967dc6dbcdacb2e862060c0d4f22
+* @checksum b3a9bd31f4b79083d37db104181dda62
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface HighlightProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Highlight = ({
role = 'img',
...props
}: HighlightProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Highlight = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Highlight', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Highlight.displayName = 'Highlight';
Highlight.isGlyph = true;
diff --git a/packages/icon/src/generated/Home.tsx b/packages/icon/src/generated/Home.tsx
index 9908a97d20..63be5f3ba6 100644
--- a/packages/icon/src/generated/Home.tsx
+++ b/packages/icon/src/generated/Home.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 21d3e165dc18b87a3ddc2a7c2dd6ea02
+* @checksum 51c6c2c7bf89cf8895fae4247eb37b68
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface HomeProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Home = ({
role = 'img',
...props
}: HomeProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Home = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Home', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Home.displayName = 'Home';
Home.isGlyph = true;
diff --git a/packages/icon/src/generated/HorizontalDrag.tsx b/packages/icon/src/generated/HorizontalDrag.tsx
index 59f3c965d4..d543eadfbe 100644
--- a/packages/icon/src/generated/HorizontalDrag.tsx
+++ b/packages/icon/src/generated/HorizontalDrag.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum bb43a70c64a4cd58d135bcafa70ad44e
+* @checksum 35c8aff2b2d1b0e88c79c16c7f71a6ae
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface HorizontalDragProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const HorizontalDrag = ({
role = 'img',
...props
}: HorizontalDragProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const HorizontalDrag = ({
`;
const accessibleProps = generateAccessibleProps(role, 'HorizontalDrag', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
HorizontalDrag.displayName = 'HorizontalDrag';
HorizontalDrag.isGlyph = true;
diff --git a/packages/icon/src/generated/Import.tsx b/packages/icon/src/generated/Import.tsx
index 969fc39597..689cee594a 100644
--- a/packages/icon/src/generated/Import.tsx
+++ b/packages/icon/src/generated/Import.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum d38dfc5fac49cb72eb2a046379199bc5
+* @checksum d054f5e2ed30cd080294e130401d351d
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ImportProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Import = ({
role = 'img',
...props
}: ImportProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Import = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Import', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Import.displayName = 'Import';
Import.isGlyph = true;
diff --git a/packages/icon/src/generated/ImportantWithCircle.tsx b/packages/icon/src/generated/ImportantWithCircle.tsx
index 3f8126e2ef..8037a21d3c 100644
--- a/packages/icon/src/generated/ImportantWithCircle.tsx
+++ b/packages/icon/src/generated/ImportantWithCircle.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 1e24056f238ac6b1ac52e61f4f79ee09
+* @checksum 8b9fb3a1ddd64878c8fe9ea0e22486e3
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ImportantWithCircleProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const ImportantWithCircle = ({
role = 'img',
...props
}: ImportantWithCircleProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const ImportantWithCircle = ({
`;
const accessibleProps = generateAccessibleProps(role, 'ImportantWithCircle', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
ImportantWithCircle.displayName = 'ImportantWithCircle';
ImportantWithCircle.isGlyph = true;
diff --git a/packages/icon/src/generated/InfoWithCircle.tsx b/packages/icon/src/generated/InfoWithCircle.tsx
index 6acccab35d..7bbac5c00f 100644
--- a/packages/icon/src/generated/InfoWithCircle.tsx
+++ b/packages/icon/src/generated/InfoWithCircle.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 42b8ee1317157261ded4a3babc011e9d
+* @checksum a405ff7306f629d976dd60b1b450d14d
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface InfoWithCircleProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const InfoWithCircle = ({
role = 'img',
...props
}: InfoWithCircleProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const InfoWithCircle = ({
`;
const accessibleProps = generateAccessibleProps(role, 'InfoWithCircle', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
InfoWithCircle.displayName = 'InfoWithCircle';
InfoWithCircle.isGlyph = true;
diff --git a/packages/icon/src/generated/InternalEmployee.tsx b/packages/icon/src/generated/InternalEmployee.tsx
index ad19954e67..38028ea917 100644
--- a/packages/icon/src/generated/InternalEmployee.tsx
+++ b/packages/icon/src/generated/InternalEmployee.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 3a743ff35bb8246fb61e0821ae8f3cf7
+* @checksum f72bc5656389983ffd413c51fcdeae4e
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface InternalEmployeeProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const InternalEmployee = ({
role = 'img',
...props
}: InternalEmployeeProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const InternalEmployee = ({
`;
const accessibleProps = generateAccessibleProps(role, 'InternalEmployee', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
InternalEmployee.displayName = 'InternalEmployee';
InternalEmployee.isGlyph = true;
diff --git a/packages/icon/src/generated/InviteUser.tsx b/packages/icon/src/generated/InviteUser.tsx
index cc00069668..58d37a1d1f 100644
--- a/packages/icon/src/generated/InviteUser.tsx
+++ b/packages/icon/src/generated/InviteUser.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 04e22a7a87f2d3a9f361d9e97c72c3dd
+* @checksum 4ba94ee41c12971733bfe7f0a19c81e8
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface InviteUserProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const InviteUser = ({
role = 'img',
...props
}: InviteUserProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const InviteUser = ({
`;
const accessibleProps = generateAccessibleProps(role, 'InviteUser', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
InviteUser.displayName = 'InviteUser';
InviteUser.isGlyph = true;
diff --git a/packages/icon/src/generated/Key.tsx b/packages/icon/src/generated/Key.tsx
index 0cf1ceb0a6..2065f6d5af 100644
--- a/packages/icon/src/generated/Key.tsx
+++ b/packages/icon/src/generated/Key.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum a2934806347014c30e081f35f8b9d529
+* @checksum 55ba2fb46a0157b47d250416d7cee1da
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface KeyProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Key = ({
role = 'img',
...props
}: KeyProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Key = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Key', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Key.displayName = 'Key';
Key.isGlyph = true;
diff --git a/packages/icon/src/generated/Laptop.tsx b/packages/icon/src/generated/Laptop.tsx
index 0f8a9d461a..d7c1685ab4 100644
--- a/packages/icon/src/generated/Laptop.tsx
+++ b/packages/icon/src/generated/Laptop.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 5315fbdd2a356385eae20cbedf98e9d1
+* @checksum ea53aed13dcb370149598289eca4dce8
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface LaptopProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Laptop = ({
role = 'img',
...props
}: LaptopProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Laptop = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Laptop', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Laptop.displayName = 'Laptop';
Laptop.isGlyph = true;
diff --git a/packages/icon/src/generated/LightningBolt.tsx b/packages/icon/src/generated/LightningBolt.tsx
index 3b732ed39a..9511faac06 100644
--- a/packages/icon/src/generated/LightningBolt.tsx
+++ b/packages/icon/src/generated/LightningBolt.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum a10c975ffb48562637f9e402998205cb
+* @checksum f1b58eae365521a904046c519752b7ad
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface LightningBoltProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const LightningBolt = ({
role = 'img',
...props
}: LightningBoltProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const LightningBolt = ({
`;
const accessibleProps = generateAccessibleProps(role, 'LightningBolt', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
LightningBolt.displayName = 'LightningBolt';
LightningBolt.isGlyph = true;
diff --git a/packages/icon/src/generated/Link.tsx b/packages/icon/src/generated/Link.tsx
index e3cff4d629..2fdc77ed2d 100644
--- a/packages/icon/src/generated/Link.tsx
+++ b/packages/icon/src/generated/Link.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 5d87561d3f971173e87897338a2a5b8f
+* @checksum 53329c505e033f138485355a04be4f1e
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface LinkProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Link = ({
role = 'img',
...props
}: LinkProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Link = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Link', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Link.displayName = 'Link';
Link.isGlyph = true;
diff --git a/packages/icon/src/generated/List.tsx b/packages/icon/src/generated/List.tsx
index 6520edf46b..a1576ccfd1 100644
--- a/packages/icon/src/generated/List.tsx
+++ b/packages/icon/src/generated/List.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 7b3c59c5c1f8183c33c10b130225e3d6
+* @checksum 68c07145089c9d2652b8857d95312f57
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ListProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const List = ({
role = 'img',
...props
}: ListProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const List = ({
`;
const accessibleProps = generateAccessibleProps(role, 'List', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
List.displayName = 'List';
List.isGlyph = true;
diff --git a/packages/icon/src/generated/Lock.tsx b/packages/icon/src/generated/Lock.tsx
index c5df97be87..413e68583d 100644
--- a/packages/icon/src/generated/Lock.tsx
+++ b/packages/icon/src/generated/Lock.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum db2944b5ea90810bd2054f7f98e32b30
+* @checksum f34dc805f2c98965ec89569e03a30966
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface LockProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Lock = ({
role = 'img',
...props
}: LockProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Lock = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Lock', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Lock.displayName = 'Lock';
Lock.isGlyph = true;
diff --git a/packages/icon/src/generated/LogIn.tsx b/packages/icon/src/generated/LogIn.tsx
index 69d5325646..ce8491a405 100644
--- a/packages/icon/src/generated/LogIn.tsx
+++ b/packages/icon/src/generated/LogIn.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 3d056d9e5165a7723128a420b4ad15ec
+* @checksum d47828cec6f7c6028be6c54e95c9ed91
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface LogInProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const LogIn = ({
role = 'img',
...props
}: LogInProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const LogIn = ({
`;
const accessibleProps = generateAccessibleProps(role, 'LogIn', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
LogIn.displayName = 'LogIn';
LogIn.isGlyph = true;
diff --git a/packages/icon/src/generated/LogOut.tsx b/packages/icon/src/generated/LogOut.tsx
index 31d4ccc9ee..57a67380e5 100644
--- a/packages/icon/src/generated/LogOut.tsx
+++ b/packages/icon/src/generated/LogOut.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 00b937d8d2060846b56a44d9edf553ce
+* @checksum bd8c6c4bacb26cb7564b13c09155650b
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface LogOutProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const LogOut = ({
role = 'img',
...props
}: LogOutProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const LogOut = ({
`;
const accessibleProps = generateAccessibleProps(role, 'LogOut', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
LogOut.displayName = 'LogOut';
LogOut.isGlyph = true;
diff --git a/packages/icon/src/generated/MagnifyingGlass.tsx b/packages/icon/src/generated/MagnifyingGlass.tsx
index 38d7236592..784c203b1b 100644
--- a/packages/icon/src/generated/MagnifyingGlass.tsx
+++ b/packages/icon/src/generated/MagnifyingGlass.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 60b361f5d943c43ba4d2a55de4f99347
+* @checksum fcadccd495552292e9bfca5d6a1ea246
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface MagnifyingGlassProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const MagnifyingGlass = ({
role = 'img',
...props
}: MagnifyingGlassProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const MagnifyingGlass = ({
`;
const accessibleProps = generateAccessibleProps(role, 'MagnifyingGlass', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
MagnifyingGlass.displayName = 'MagnifyingGlass';
MagnifyingGlass.isGlyph = true;
diff --git a/packages/icon/src/generated/Megaphone.tsx b/packages/icon/src/generated/Megaphone.tsx
index 2f1dad0219..2dea7ec26d 100644
--- a/packages/icon/src/generated/Megaphone.tsx
+++ b/packages/icon/src/generated/Megaphone.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 90dad46833764f8613e8b83f3c00a376
+* @checksum b061bbdd34e4523872295de410d3989a
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface MegaphoneProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Megaphone = ({
role = 'img',
...props
}: MegaphoneProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Megaphone = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Megaphone', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Megaphone.displayName = 'Megaphone';
Megaphone.isGlyph = true;
diff --git a/packages/icon/src/generated/Menu.tsx b/packages/icon/src/generated/Menu.tsx
index 117888e45b..1613f154f8 100644
--- a/packages/icon/src/generated/Menu.tsx
+++ b/packages/icon/src/generated/Menu.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 1302681cd46d65becd40e8e91b091765
+* @checksum 57dace6012b1bb15e0bef37d13618007
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface MenuProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Menu = ({
role = 'img',
...props
}: MenuProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Menu = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Menu', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Menu.displayName = 'Menu';
Menu.isGlyph = true;
diff --git a/packages/icon/src/generated/Minus.tsx b/packages/icon/src/generated/Minus.tsx
index e1b522f6ab..a7c62a95f2 100644
--- a/packages/icon/src/generated/Minus.tsx
+++ b/packages/icon/src/generated/Minus.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 9c244c1119801dc22acac1be9bc51d04
+* @checksum e1f0b478e23e2eac011f4e6c01c1c588
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface MinusProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Minus = ({
role = 'img',
...props
}: MinusProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Minus = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Minus', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Minus.displayName = 'Minus';
Minus.isGlyph = true;
diff --git a/packages/icon/src/generated/Mobile.tsx b/packages/icon/src/generated/Mobile.tsx
index dce6451424..4113746282 100644
--- a/packages/icon/src/generated/Mobile.tsx
+++ b/packages/icon/src/generated/Mobile.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 1d9da6a1ce4eeeb3e0c6cac6a588ea9a
+* @checksum 590cde11eb372ef3e1626758d8edd3be
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface MobileProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Mobile = ({
role = 'img',
...props
}: MobileProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Mobile = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Mobile', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Mobile.displayName = 'Mobile';
Mobile.isGlyph = true;
diff --git a/packages/icon/src/generated/Moon.tsx b/packages/icon/src/generated/Moon.tsx
index 654563bfe6..6edac388d7 100644
--- a/packages/icon/src/generated/Moon.tsx
+++ b/packages/icon/src/generated/Moon.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum d7a3f24b41ad4f62c488d74dbcbbf9fa
+* @checksum b663f91fa185d7fac22cfa0b0bc83753
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface MoonProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Moon = ({
role = 'img',
...props
}: MoonProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Moon = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Moon', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Moon.displayName = 'Moon';
Moon.isGlyph = true;
diff --git a/packages/icon/src/generated/MultiDirectionArrow.tsx b/packages/icon/src/generated/MultiDirectionArrow.tsx
index 07aaacc146..22576baf03 100644
--- a/packages/icon/src/generated/MultiDirectionArrow.tsx
+++ b/packages/icon/src/generated/MultiDirectionArrow.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum c7cc7e4f42011f561655f1bd43f40695
+* @checksum 23e8a8859dc4696ef87adaead7594d12
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface MultiDirectionArrowProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const MultiDirectionArrow = ({
role = 'img',
...props
}: MultiDirectionArrowProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const MultiDirectionArrow = ({
`;
const accessibleProps = generateAccessibleProps(role, 'MultiDirectionArrow', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
MultiDirectionArrow.displayName = 'MultiDirectionArrow';
MultiDirectionArrow.isGlyph = true;
diff --git a/packages/icon/src/generated/MultiLayers.tsx b/packages/icon/src/generated/MultiLayers.tsx
index 921d442353..098231ab65 100644
--- a/packages/icon/src/generated/MultiLayers.tsx
+++ b/packages/icon/src/generated/MultiLayers.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 54a552a4db8de48df83aad856752f1d6
+* @checksum 138c8977690ae049e37a450575468ccb
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface MultiLayersProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const MultiLayers = ({
role = 'img',
...props
}: MultiLayersProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const MultiLayers = ({
`;
const accessibleProps = generateAccessibleProps(role, 'MultiLayers', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
MultiLayers.displayName = 'MultiLayers';
MultiLayers.isGlyph = true;
diff --git a/packages/icon/src/generated/NavCollapse.tsx b/packages/icon/src/generated/NavCollapse.tsx
index 466fdc1df2..a05ac0bcc5 100644
--- a/packages/icon/src/generated/NavCollapse.tsx
+++ b/packages/icon/src/generated/NavCollapse.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 7e1173827864fd0acaf7131938be6c0a
+* @checksum a468e130ebd08f00aed43cd499959b89
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface NavCollapseProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const NavCollapse = ({
role = 'img',
...props
}: NavCollapseProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const NavCollapse = ({
`;
const accessibleProps = generateAccessibleProps(role, 'NavCollapse', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
NavCollapse.displayName = 'NavCollapse';
NavCollapse.isGlyph = true;
diff --git a/packages/icon/src/generated/NavExpand.tsx b/packages/icon/src/generated/NavExpand.tsx
index 1e9e506d71..08f3e24c51 100644
--- a/packages/icon/src/generated/NavExpand.tsx
+++ b/packages/icon/src/generated/NavExpand.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum bfe28d9a31cde7325ff344b05af73ff8
+* @checksum 9839b61bd5a9ead488763f7a2446abe7
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface NavExpandProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const NavExpand = ({
role = 'img',
...props
}: NavExpandProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const NavExpand = ({
`;
const accessibleProps = generateAccessibleProps(role, 'NavExpand', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
NavExpand.displayName = 'NavExpand';
NavExpand.isGlyph = true;
diff --git a/packages/icon/src/generated/NoFilter.tsx b/packages/icon/src/generated/NoFilter.tsx
index 5c9ed69f33..47974dab19 100644
--- a/packages/icon/src/generated/NoFilter.tsx
+++ b/packages/icon/src/generated/NoFilter.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum e9eab9c247dbec275fe6d580566d61dc
+* @checksum 6454cb046f256c5df44b6666c498a003
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface NoFilterProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const NoFilter = ({
role = 'img',
...props
}: NoFilterProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const NoFilter = ({
`;
const accessibleProps = generateAccessibleProps(role, 'NoFilter', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
NoFilter.displayName = 'NoFilter';
NoFilter.isGlyph = true;
diff --git a/packages/icon/src/generated/NotAllowed.tsx b/packages/icon/src/generated/NotAllowed.tsx
index e391cde356..e67bd282a6 100644
--- a/packages/icon/src/generated/NotAllowed.tsx
+++ b/packages/icon/src/generated/NotAllowed.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 032177bb1c049b718edfcb232351db03
+* @checksum 04194aa4c07cac1778b7630760754009
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface NotAllowedProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const NotAllowed = ({
role = 'img',
...props
}: NotAllowedProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const NotAllowed = ({
`;
const accessibleProps = generateAccessibleProps(role, 'NotAllowed', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
NotAllowed.displayName = 'NotAllowed';
NotAllowed.isGlyph = true;
diff --git a/packages/icon/src/generated/Note.tsx b/packages/icon/src/generated/Note.tsx
index 19e20202a5..f92ef9f26c 100644
--- a/packages/icon/src/generated/Note.tsx
+++ b/packages/icon/src/generated/Note.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 92571b38141a3b76af9af70766e8984f
+* @checksum da17fde6b187b1f7f2e05081c64026f8
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface NoteProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Note = ({
role = 'img',
...props
}: NoteProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Note = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Note', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Note.displayName = 'Note';
Note.isGlyph = true;
diff --git a/packages/icon/src/generated/NumberedList.tsx b/packages/icon/src/generated/NumberedList.tsx
index 51e8a28c50..ee7385a030 100644
--- a/packages/icon/src/generated/NumberedList.tsx
+++ b/packages/icon/src/generated/NumberedList.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 78d5ea655c25d7d086fb19cccabdd527
+* @checksum 7eba0ef41afe30759b27cc28c078d9f8
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface NumberedListProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const NumberedList = ({
role = 'img',
...props
}: NumberedListProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const NumberedList = ({
`;
const accessibleProps = generateAccessibleProps(role, 'NumberedList', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
NumberedList.displayName = 'NumberedList';
NumberedList.isGlyph = true;
diff --git a/packages/icon/src/generated/OpenNewTab.tsx b/packages/icon/src/generated/OpenNewTab.tsx
index 06937e94c2..89c4d2fcaf 100644
--- a/packages/icon/src/generated/OpenNewTab.tsx
+++ b/packages/icon/src/generated/OpenNewTab.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 0550f2c3df7e2061ea801aecc3f4c8bd
+* @checksum d4005c46811f3c637e4b82937003bf3e
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface OpenNewTabProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const OpenNewTab = ({
role = 'img',
...props
}: OpenNewTabProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const OpenNewTab = ({
`;
const accessibleProps = generateAccessibleProps(role, 'OpenNewTab', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
OpenNewTab.displayName = 'OpenNewTab';
OpenNewTab.isGlyph = true;
diff --git a/packages/icon/src/generated/OutlineFavorite.tsx b/packages/icon/src/generated/OutlineFavorite.tsx
index 1d1db68e41..b55e20d724 100644
--- a/packages/icon/src/generated/OutlineFavorite.tsx
+++ b/packages/icon/src/generated/OutlineFavorite.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum a0947f6a8bc4f0aa42a0db795f6439f6
+* @checksum 083eed322a2beb8496f2c97039c3e6d4
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface OutlineFavoriteProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const OutlineFavorite = ({
role = 'img',
...props
}: OutlineFavoriteProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const OutlineFavorite = ({
`;
const accessibleProps = generateAccessibleProps(role, 'OutlineFavorite', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
OutlineFavorite.displayName = 'OutlineFavorite';
OutlineFavorite.isGlyph = true;
diff --git a/packages/icon/src/generated/Package.tsx b/packages/icon/src/generated/Package.tsx
index da86c17fb7..4615f9eeb2 100644
--- a/packages/icon/src/generated/Package.tsx
+++ b/packages/icon/src/generated/Package.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 6e59261cf982bdfcdfdce185d5ad6a28
+* @checksum 80ef69108a03312295187bd343f0835a
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface PackageProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Package = ({
role = 'img',
...props
}: PackageProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Package = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Package', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Package.displayName = 'Package';
Package.isGlyph = true;
diff --git a/packages/icon/src/generated/Pause.tsx b/packages/icon/src/generated/Pause.tsx
index f6e5f92836..472ecd7ca2 100644
--- a/packages/icon/src/generated/Pause.tsx
+++ b/packages/icon/src/generated/Pause.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum ee75535a9d92a7747f49a72adef467a2
+* @checksum 32498b21a72a9ac79ad0f49862796caf
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface PauseProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Pause = ({
role = 'img',
...props
}: PauseProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Pause = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Pause', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Pause.displayName = 'Pause';
Pause.isGlyph = true;
diff --git a/packages/icon/src/generated/Pending.tsx b/packages/icon/src/generated/Pending.tsx
index 77a0bec13b..b87a13038f 100644
--- a/packages/icon/src/generated/Pending.tsx
+++ b/packages/icon/src/generated/Pending.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 2990101e09c44c0d8cfafeabe85560fa
+* @checksum fe84beb7e01f087e26cb0e1d62e38a96
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface PendingProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Pending = ({
role = 'img',
...props
}: PendingProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Pending = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Pending', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Pending.displayName = 'Pending';
Pending.isGlyph = true;
diff --git a/packages/icon/src/generated/Person.tsx b/packages/icon/src/generated/Person.tsx
index 5306c60d3a..6dd146b3ff 100644
--- a/packages/icon/src/generated/Person.tsx
+++ b/packages/icon/src/generated/Person.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 31cf947007014102c24311d4253dbc79
+* @checksum 5b759e05777425b9385a72c39e349284
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface PersonProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Person = ({
role = 'img',
...props
}: PersonProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Person = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Person', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Person.displayName = 'Person';
Person.isGlyph = true;
diff --git a/packages/icon/src/generated/PersonGroup.tsx b/packages/icon/src/generated/PersonGroup.tsx
index 0b6d2e064f..6b71c91755 100644
--- a/packages/icon/src/generated/PersonGroup.tsx
+++ b/packages/icon/src/generated/PersonGroup.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum b3bba5f39fa2c4a59ec027bce5e35d45
+* @checksum 601e6ecb1c75062c883f6a0b71dcea16
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface PersonGroupProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const PersonGroup = ({
role = 'img',
...props
}: PersonGroupProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const PersonGroup = ({
`;
const accessibleProps = generateAccessibleProps(role, 'PersonGroup', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
PersonGroup.displayName = 'PersonGroup';
PersonGroup.isGlyph = true;
diff --git a/packages/icon/src/generated/PersonWithLock.tsx b/packages/icon/src/generated/PersonWithLock.tsx
index c86f641ffb..d80cc4ac1e 100644
--- a/packages/icon/src/generated/PersonWithLock.tsx
+++ b/packages/icon/src/generated/PersonWithLock.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum c9ac63659fb3944c090d94f1824ce291
+* @checksum fd61868248373ec9a8906e59814e6799
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface PersonWithLockProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const PersonWithLock = ({
role = 'img',
...props
}: PersonWithLockProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const PersonWithLock = ({
`;
const accessibleProps = generateAccessibleProps(role, 'PersonWithLock', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
PersonWithLock.displayName = 'PersonWithLock';
PersonWithLock.isGlyph = true;
diff --git a/packages/icon/src/generated/Pin.tsx b/packages/icon/src/generated/Pin.tsx
index 6bcf39d347..e31155877a 100644
--- a/packages/icon/src/generated/Pin.tsx
+++ b/packages/icon/src/generated/Pin.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 0f84209bef2f8c074241c48b4730e561
+* @checksum 58e7153beda5946ddc4f29eb31ddb2f2
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface PinProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Pin = ({
role = 'img',
...props
}: PinProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Pin = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Pin', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Pin.displayName = 'Pin';
Pin.isGlyph = true;
diff --git a/packages/icon/src/generated/Play.tsx b/packages/icon/src/generated/Play.tsx
index 885e2bc0d2..27b369e6f6 100644
--- a/packages/icon/src/generated/Play.tsx
+++ b/packages/icon/src/generated/Play.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum eeea36a12d7e0c78bf3aad12c14a8a5d
+* @checksum dd63d3e1a63feb369c7793579dc03cb4
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface PlayProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Play = ({
role = 'img',
...props
}: PlayProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Play = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Play', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Play.displayName = 'Play';
Play.isGlyph = true;
diff --git a/packages/icon/src/generated/Plus.tsx b/packages/icon/src/generated/Plus.tsx
index 4dc6c22033..c536378aa3 100644
--- a/packages/icon/src/generated/Plus.tsx
+++ b/packages/icon/src/generated/Plus.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 0b56c268ab06407a7c924db85ad2a16b
+* @checksum 2985e7c22cafc8aee7499ec3e9e99d3c
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface PlusProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Plus = ({
role = 'img',
...props
}: PlusProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Plus = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Plus', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Plus.displayName = 'Plus';
Plus.isGlyph = true;
diff --git a/packages/icon/src/generated/PlusWithCircle.tsx b/packages/icon/src/generated/PlusWithCircle.tsx
index f46079df90..1dd957cfdb 100644
--- a/packages/icon/src/generated/PlusWithCircle.tsx
+++ b/packages/icon/src/generated/PlusWithCircle.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 4a198f81b67f4fff8bfad90b83e5a50e
+* @checksum cb5f557bdb5928b1aabe5ec34bcb72b3
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface PlusWithCircleProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const PlusWithCircle = ({
role = 'img',
...props
}: PlusWithCircleProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const PlusWithCircle = ({
`;
const accessibleProps = generateAccessibleProps(role, 'PlusWithCircle', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
PlusWithCircle.displayName = 'PlusWithCircle';
PlusWithCircle.isGlyph = true;
diff --git a/packages/icon/src/generated/Primary.tsx b/packages/icon/src/generated/Primary.tsx
index 0aa258ad74..00862abf61 100644
--- a/packages/icon/src/generated/Primary.tsx
+++ b/packages/icon/src/generated/Primary.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 2e1672e47a094394bb69d18d34d07c47
+* @checksum 3c53c2e96af3e55e88847edc1492781c
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface PrimaryProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Primary = ({
role = 'img',
...props
}: PrimaryProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Primary = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Primary', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Primary.displayName = 'Primary';
Primary.isGlyph = true;
diff --git a/packages/icon/src/generated/Project.tsx b/packages/icon/src/generated/Project.tsx
index fa6c6ca853..4e8e1f9b36 100644
--- a/packages/icon/src/generated/Project.tsx
+++ b/packages/icon/src/generated/Project.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum d3fcc0dee5e5431858994a79e3d5b9b3
+* @checksum 0b63e5d3545a1caffcf310659518e8e9
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ProjectProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Project = ({
role = 'img',
...props
}: ProjectProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Project = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Project', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Project.displayName = 'Project';
Project.isGlyph = true;
diff --git a/packages/icon/src/generated/QuestionMarkWithCircle.tsx b/packages/icon/src/generated/QuestionMarkWithCircle.tsx
index 6cb21a0390..809dd3708a 100644
--- a/packages/icon/src/generated/QuestionMarkWithCircle.tsx
+++ b/packages/icon/src/generated/QuestionMarkWithCircle.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum e3c77fdc2bdcc5a2511a78ec3a8058b1
+* @checksum e8d911b6712a20a06b08622aa024bcb8
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface QuestionMarkWithCircleProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const QuestionMarkWithCircle = ({
role = 'img',
...props
}: QuestionMarkWithCircleProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const QuestionMarkWithCircle = ({
`;
const accessibleProps = generateAccessibleProps(role, 'QuestionMarkWithCircle', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
QuestionMarkWithCircle.displayName = 'QuestionMarkWithCircle';
QuestionMarkWithCircle.isGlyph = true;
diff --git a/packages/icon/src/generated/Read.tsx b/packages/icon/src/generated/Read.tsx
index c97f600fb3..f43006bebe 100644
--- a/packages/icon/src/generated/Read.tsx
+++ b/packages/icon/src/generated/Read.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 2048eecd64e1b11d7b3e08314290329a
+* @checksum c8ba5b394dffb71ce28c3e47de497f15
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ReadProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Read = ({
role = 'img',
...props
}: ReadProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Read = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Read', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Read.displayName = 'Read';
Read.isGlyph = true;
diff --git a/packages/icon/src/generated/Recommended.tsx b/packages/icon/src/generated/Recommended.tsx
index 9eb962b96a..86db8e35a4 100644
--- a/packages/icon/src/generated/Recommended.tsx
+++ b/packages/icon/src/generated/Recommended.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 39c5c559a039bfdc941799fa127eacb8
+* @checksum a1beb9ee097f05d95e06fc05789c00bd
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface RecommendedProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Recommended = ({
role = 'img',
...props
}: RecommendedProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Recommended = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Recommended', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Recommended.displayName = 'Recommended';
Recommended.isGlyph = true;
diff --git a/packages/icon/src/generated/Redo.tsx b/packages/icon/src/generated/Redo.tsx
index 837842d137..f4a364e4f2 100644
--- a/packages/icon/src/generated/Redo.tsx
+++ b/packages/icon/src/generated/Redo.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 94bb886a2e3c4fbccf7f51d22f460fb6
+* @checksum f483fbf2370aef61ac33412fde3e377f
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface RedoProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Redo = ({
role = 'img',
...props
}: RedoProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Redo = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Redo', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Redo.displayName = 'Redo';
Redo.isGlyph = true;
diff --git a/packages/icon/src/generated/Refresh.tsx b/packages/icon/src/generated/Refresh.tsx
index fa72d21de0..c1e16ec92b 100644
--- a/packages/icon/src/generated/Refresh.tsx
+++ b/packages/icon/src/generated/Refresh.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum f1c3390781c6f99bf6f88aa6faa5a31d
+* @checksum 3224c594f852483d1da0b28852435dc3
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface RefreshProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Refresh = ({
role = 'img',
...props
}: RefreshProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Refresh = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Refresh', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Refresh.displayName = 'Refresh';
Refresh.isGlyph = true;
diff --git a/packages/icon/src/generated/Relationship.tsx b/packages/icon/src/generated/Relationship.tsx
index 89ddcf34e9..c738683064 100644
--- a/packages/icon/src/generated/Relationship.tsx
+++ b/packages/icon/src/generated/Relationship.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum f1b6e767453a9635bee72cf897775edb
+* @checksum 581e14df157dd41acbe56d87377f3a45
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface RelationshipProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Relationship = ({
role = 'img',
...props
}: RelationshipProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Relationship = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Relationship', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Relationship.displayName = 'Relationship';
Relationship.isGlyph = true;
diff --git a/packages/icon/src/generated/ReplicaSet.tsx b/packages/icon/src/generated/ReplicaSet.tsx
index 71d148858f..6073313fbe 100644
--- a/packages/icon/src/generated/ReplicaSet.tsx
+++ b/packages/icon/src/generated/ReplicaSet.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 2bea089178e1fab0526b7fa4268d176b
+* @checksum be0fb6f7dabb7d6c40470727be5f32d9
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ReplicaSetProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const ReplicaSet = ({
role = 'img',
...props
}: ReplicaSetProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const ReplicaSet = ({
`;
const accessibleProps = generateAccessibleProps(role, 'ReplicaSet', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
ReplicaSet.displayName = 'ReplicaSet';
ReplicaSet.isGlyph = true;
diff --git a/packages/icon/src/generated/Resize.tsx b/packages/icon/src/generated/Resize.tsx
index 92a30ee3db..656f017aef 100644
--- a/packages/icon/src/generated/Resize.tsx
+++ b/packages/icon/src/generated/Resize.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum fee3256c80da5096170156f59e09e087
+* @checksum 2f9e78aed457fa72a1e5d13cae45df6e
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ResizeProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Resize = ({
role = 'img',
...props
}: ResizeProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Resize = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Resize', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Resize.displayName = 'Resize';
Resize.isGlyph = true;
diff --git a/packages/icon/src/generated/Resource.tsx b/packages/icon/src/generated/Resource.tsx
index 32f8ffb533..a94f618740 100644
--- a/packages/icon/src/generated/Resource.tsx
+++ b/packages/icon/src/generated/Resource.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 9ec4992f3837f7bd0837fb90a4d9ed89
+* @checksum 9fe72420fd1bc7e6ca78c980da3e8cbb
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ResourceProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Resource = ({
role = 'img',
...props
}: ResourceProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Resource = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Resource', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Resource.displayName = 'Resource';
Resource.isGlyph = true;
diff --git a/packages/icon/src/generated/Return.tsx b/packages/icon/src/generated/Return.tsx
index 7ef3bec91f..87631d1fe1 100644
--- a/packages/icon/src/generated/Return.tsx
+++ b/packages/icon/src/generated/Return.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum f2504ef6bb18fa9ef178d7936f437bd6
+* @checksum cb455ae81426632a7fde296ac3ee93e4
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ReturnProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Return = ({
role = 'img',
...props
}: ReturnProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Return = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Return', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Return.displayName = 'Return';
Return.isGlyph = true;
diff --git a/packages/icon/src/generated/Revert.tsx b/packages/icon/src/generated/Revert.tsx
index 5e7c58c0c8..495a471ec6 100644
--- a/packages/icon/src/generated/Revert.tsx
+++ b/packages/icon/src/generated/Revert.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum ceebe674c72b8db63286c07567793217
+* @checksum c482456b583c7bc64b059e7d0bd7dfb7
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface RevertProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Revert = ({
role = 'img',
...props
}: RevertProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Revert = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Revert', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Revert.displayName = 'Revert';
Revert.isGlyph = true;
diff --git a/packages/icon/src/generated/Router.tsx b/packages/icon/src/generated/Router.tsx
index 92fcc56ba0..d400c15907 100644
--- a/packages/icon/src/generated/Router.tsx
+++ b/packages/icon/src/generated/Router.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 26b268485a87705e369fef3cee115d85
+* @checksum 87bf274c98c4286ce21666e17bf6d0cf
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface RouterProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Router = ({
role = 'img',
...props
}: RouterProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Router = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Router', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Router.displayName = 'Router';
Router.isGlyph = true;
diff --git a/packages/icon/src/generated/SMS.tsx b/packages/icon/src/generated/SMS.tsx
index 12dc9d6ef3..01e5c849dc 100644
--- a/packages/icon/src/generated/SMS.tsx
+++ b/packages/icon/src/generated/SMS.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum ce13ff18d80b041de18dc658f749a828
+* @checksum 02c507e0e0b5e19eb993a161b570c272
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface SMSProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const SMS = ({
role = 'img',
...props
}: SMSProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const SMS = ({
`;
const accessibleProps = generateAccessibleProps(role, 'SMS', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
SMS.displayName = 'SMS';
SMS.isGlyph = true;
diff --git a/packages/icon/src/generated/Save.tsx b/packages/icon/src/generated/Save.tsx
index b2b04624d9..0603410f02 100644
--- a/packages/icon/src/generated/Save.tsx
+++ b/packages/icon/src/generated/Save.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 904983e53706275facd1f094d926a4cf
+* @checksum fc3c31e83aa13d4942bf63257c1b1e74
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface SaveProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Save = ({
role = 'img',
...props
}: SaveProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Save = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Save', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Save.displayName = 'Save';
Save.isGlyph = true;
diff --git a/packages/icon/src/generated/SearchIndex.tsx b/packages/icon/src/generated/SearchIndex.tsx
index 654264e3a7..12b71131e4 100644
--- a/packages/icon/src/generated/SearchIndex.tsx
+++ b/packages/icon/src/generated/SearchIndex.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 84fafe19c477c2660e835a752627ee27
+* @checksum ba804a294af513ead63d9ee1fa8387ec
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface SearchIndexProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const SearchIndex = ({
role = 'img',
...props
}: SearchIndexProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const SearchIndex = ({
`;
const accessibleProps = generateAccessibleProps(role, 'SearchIndex', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
SearchIndex.displayName = 'SearchIndex';
SearchIndex.isGlyph = true;
diff --git a/packages/icon/src/generated/Secondary.tsx b/packages/icon/src/generated/Secondary.tsx
index 32fb68f9c3..0cf19ba43f 100644
--- a/packages/icon/src/generated/Secondary.tsx
+++ b/packages/icon/src/generated/Secondary.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 88240cf63eabdb680196493723db69de
+* @checksum 07a18998556ab8687deff6e047d975d6
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface SecondaryProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Secondary = ({
role = 'img',
...props
}: SecondaryProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Secondary = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Secondary', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Secondary.displayName = 'Secondary';
Secondary.isGlyph = true;
diff --git a/packages/icon/src/generated/Serverless.tsx b/packages/icon/src/generated/Serverless.tsx
index 65e067b5ac..fa8a178fe8 100644
--- a/packages/icon/src/generated/Serverless.tsx
+++ b/packages/icon/src/generated/Serverless.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 6236dd59a36b30b56a85d2551a5ecb37
+* @checksum 8669a9fce8f62ddde57601c0fea559d8
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ServerlessProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Serverless = ({
role = 'img',
...props
}: ServerlessProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Serverless = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Serverless', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Serverless.displayName = 'Serverless';
Serverless.isGlyph = true;
diff --git a/packages/icon/src/generated/Settings.tsx b/packages/icon/src/generated/Settings.tsx
index 9a22f53723..98516dbc62 100644
--- a/packages/icon/src/generated/Settings.tsx
+++ b/packages/icon/src/generated/Settings.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 8dd130a799c0e750237f9d7e9bf1973b
+* @checksum 34b559a3c2f751afd2269bd8ba585287
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface SettingsProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Settings = ({
role = 'img',
...props
}: SettingsProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Settings = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Settings', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Settings.displayName = 'Settings';
Settings.isGlyph = true;
diff --git a/packages/icon/src/generated/ShardedCluster.tsx b/packages/icon/src/generated/ShardedCluster.tsx
index ad179067df..3cfbdc90be 100644
--- a/packages/icon/src/generated/ShardedCluster.tsx
+++ b/packages/icon/src/generated/ShardedCluster.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum bce97cf1d21ec506245a6e1311775b42
+* @checksum 24886fe418011a9a47791830f528a4d1
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ShardedClusterProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const ShardedCluster = ({
role = 'img',
...props
}: ShardedClusterProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const ShardedCluster = ({
`;
const accessibleProps = generateAccessibleProps(role, 'ShardedCluster', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
ShardedCluster.displayName = 'ShardedCluster';
ShardedCluster.isGlyph = true;
diff --git a/packages/icon/src/generated/Shell.tsx b/packages/icon/src/generated/Shell.tsx
index 4462d94775..5569b07ba2 100644
--- a/packages/icon/src/generated/Shell.tsx
+++ b/packages/icon/src/generated/Shell.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 4b16b5ec09706e8eff27700d81d1b23b
+* @checksum f9a5da06d04b48e2d9ae5d23741a1130
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ShellProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Shell = ({
role = 'img',
...props
}: ShellProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Shell = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Shell', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Shell.displayName = 'Shell';
Shell.isGlyph = true;
diff --git a/packages/icon/src/generated/Shield.tsx b/packages/icon/src/generated/Shield.tsx
index 8068d3c051..c8b2349f63 100644
--- a/packages/icon/src/generated/Shield.tsx
+++ b/packages/icon/src/generated/Shield.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 70cc6170af301b7a5ccc2e39f2ae8d34
+* @checksum abb8c5f609486e99e73950f9028c134c
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ShieldProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Shield = ({
role = 'img',
...props
}: ShieldProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Shield = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Shield', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Shield.displayName = 'Shield';
Shield.isGlyph = true;
diff --git a/packages/icon/src/generated/Shirt.tsx b/packages/icon/src/generated/Shirt.tsx
index 009876fe7c..e274661d5b 100644
--- a/packages/icon/src/generated/Shirt.tsx
+++ b/packages/icon/src/generated/Shirt.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 98b2f66e19898c84f1dce726e066deb6
+* @checksum f1a02e2a9e336b8a9b7c520208704edd
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ShirtProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Shirt = ({
role = 'img',
...props
}: ShirtProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Shirt = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Shirt', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Shirt.displayName = 'Shirt';
Shirt.isGlyph = true;
diff --git a/packages/icon/src/generated/Shortcut.tsx b/packages/icon/src/generated/Shortcut.tsx
index afba63caa3..70b49e4310 100644
--- a/packages/icon/src/generated/Shortcut.tsx
+++ b/packages/icon/src/generated/Shortcut.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 54866582b4ce0e776960df3186a39b95
+* @checksum e798fbed73ad163471fcfaa4b76d57d5
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ShortcutProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Shortcut = ({
role = 'img',
...props
}: ShortcutProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Shortcut = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Shortcut', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Shortcut.displayName = 'Shortcut';
Shortcut.isGlyph = true;
diff --git a/packages/icon/src/generated/SortAscending.tsx b/packages/icon/src/generated/SortAscending.tsx
index 35d8e3b2e5..0808e4a70d 100644
--- a/packages/icon/src/generated/SortAscending.tsx
+++ b/packages/icon/src/generated/SortAscending.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum d467fb89729cd88f35c539371faf8b14
+* @checksum 62f0dd9b51d6c713617e489b2a83c227
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface SortAscendingProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const SortAscending = ({
role = 'img',
...props
}: SortAscendingProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const SortAscending = ({
`;
const accessibleProps = generateAccessibleProps(role, 'SortAscending', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
SortAscending.displayName = 'SortAscending';
SortAscending.isGlyph = true;
diff --git a/packages/icon/src/generated/SortDescending.tsx b/packages/icon/src/generated/SortDescending.tsx
index 8acc89e286..2058607b08 100644
--- a/packages/icon/src/generated/SortDescending.tsx
+++ b/packages/icon/src/generated/SortDescending.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 77ca38381a8dfb3d248f686f85aae34c
+* @checksum 4e69ec9ddc0c6d6ed69247ae247032ca
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface SortDescendingProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const SortDescending = ({
role = 'img',
...props
}: SortDescendingProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const SortDescending = ({
`;
const accessibleProps = generateAccessibleProps(role, 'SortDescending', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
SortDescending.displayName = 'SortDescending';
SortDescending.isGlyph = true;
diff --git a/packages/icon/src/generated/Sparkle.tsx b/packages/icon/src/generated/Sparkle.tsx
index 82f7d99f1e..789c47e902 100644
--- a/packages/icon/src/generated/Sparkle.tsx
+++ b/packages/icon/src/generated/Sparkle.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum dcb075c6ece22142352c3c8ccae791a9
+* @checksum 75b9f89083a70770e5a05835b62e9be9
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface SparkleProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Sparkle = ({
role = 'img',
...props
}: SparkleProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Sparkle = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Sparkle', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Sparkle.displayName = 'Sparkle';
Sparkle.isGlyph = true;
diff --git a/packages/icon/src/generated/SplitHorizontal.tsx b/packages/icon/src/generated/SplitHorizontal.tsx
index f535f6a96e..5c6dfbb88a 100644
--- a/packages/icon/src/generated/SplitHorizontal.tsx
+++ b/packages/icon/src/generated/SplitHorizontal.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 79804e11ff1c22567752e7be4c9d5f7b
+* @checksum e15e4da45251df6b440e7bb5f7f4878f
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface SplitHorizontalProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const SplitHorizontal = ({
role = 'img',
...props
}: SplitHorizontalProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const SplitHorizontal = ({
`;
const accessibleProps = generateAccessibleProps(role, 'SplitHorizontal', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
SplitHorizontal.displayName = 'SplitHorizontal';
SplitHorizontal.isGlyph = true;
diff --git a/packages/icon/src/generated/SplitVertical.tsx b/packages/icon/src/generated/SplitVertical.tsx
index 160dbe8760..8b80053e07 100644
--- a/packages/icon/src/generated/SplitVertical.tsx
+++ b/packages/icon/src/generated/SplitVertical.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 23a43817b3ef9eeb03f289536ea833c4
+* @checksum dec658baa8100a5e2d4c11fc8c1aff2b
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface SplitVerticalProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const SplitVertical = ({
role = 'img',
...props
}: SplitVerticalProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const SplitVertical = ({
`;
const accessibleProps = generateAccessibleProps(role, 'SplitVertical', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
SplitVertical.displayName = 'SplitVertical';
SplitVertical.isGlyph = true;
diff --git a/packages/icon/src/generated/Stitch.tsx b/packages/icon/src/generated/Stitch.tsx
index 73dddd80c5..aa30daef15 100644
--- a/packages/icon/src/generated/Stitch.tsx
+++ b/packages/icon/src/generated/Stitch.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 4f795369a06c595141210f603e63a331
+* @checksum d493a0d435d280bf2e91e7d81c824d53
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface StitchProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Stitch = ({
role = 'img',
...props
}: StitchProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Stitch = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Stitch', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Stitch.displayName = 'Stitch';
Stitch.isGlyph = true;
diff --git a/packages/icon/src/generated/Stop.tsx b/packages/icon/src/generated/Stop.tsx
index 53d3b96293..ddae5a88c5 100644
--- a/packages/icon/src/generated/Stop.tsx
+++ b/packages/icon/src/generated/Stop.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 02824b2c1413b47ba291fb039342b16e
+* @checksum fc58d0b6198352ae94326cf8565e5aa1
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface StopProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Stop = ({
role = 'img',
...props
}: StopProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Stop = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Stop', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Stop.displayName = 'Stop';
Stop.isGlyph = true;
diff --git a/packages/icon/src/generated/Streaming.tsx b/packages/icon/src/generated/Streaming.tsx
index 843b6adf11..8f7584d278 100644
--- a/packages/icon/src/generated/Streaming.tsx
+++ b/packages/icon/src/generated/Streaming.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum cecb0b1fef059ae78d0925fc0d134682
+* @checksum 98fc2e99b703a2989b258cc1aa497d53
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface StreamingProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Streaming = ({
role = 'img',
...props
}: StreamingProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Streaming = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Streaming', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Streaming.displayName = 'Streaming';
Streaming.isGlyph = true;
diff --git a/packages/icon/src/generated/String.tsx b/packages/icon/src/generated/String.tsx
index 7266117f52..f8f24243f5 100644
--- a/packages/icon/src/generated/String.tsx
+++ b/packages/icon/src/generated/String.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 3c8da6506796ce168a23d28f387d8764
+* @checksum 5b5f5b87ce7dff980f6138dd597651c6
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface StringProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const String = ({
role = 'img',
...props
}: StringProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const String = ({
`;
const accessibleProps = generateAccessibleProps(role, 'String', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
String.displayName = 'String';
String.isGlyph = true;
diff --git a/packages/icon/src/generated/Sun.tsx b/packages/icon/src/generated/Sun.tsx
index a98335ac1b..6183907772 100644
--- a/packages/icon/src/generated/Sun.tsx
+++ b/packages/icon/src/generated/Sun.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 3b93aec0df1efae499d954276194c9ff
+* @checksum c305bc7f339564a51cd2d44fbd686c00
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface SunProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Sun = ({
role = 'img',
...props
}: SunProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Sun = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Sun', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Sun.displayName = 'Sun';
Sun.isGlyph = true;
diff --git a/packages/icon/src/generated/Support.tsx b/packages/icon/src/generated/Support.tsx
index 4be9bb180c..a0fd077f1c 100644
--- a/packages/icon/src/generated/Support.tsx
+++ b/packages/icon/src/generated/Support.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 48724d477e4bdb442f5157382ad8ccf2
+* @checksum 60a656fec2bd367fd3a1b1a313f78703
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface SupportProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Support = ({
role = 'img',
...props
}: SupportProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Support = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Support', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Support.displayName = 'Support';
Support.isGlyph = true;
diff --git a/packages/icon/src/generated/Sweep.tsx b/packages/icon/src/generated/Sweep.tsx
index f17068f86c..d3f9baccc5 100644
--- a/packages/icon/src/generated/Sweep.tsx
+++ b/packages/icon/src/generated/Sweep.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 5b174776545eac61bde7b82bae7118e3
+* @checksum 6cb2e98030782fa21d2b4ded9bb26092
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface SweepProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Sweep = ({
role = 'img',
...props
}: SweepProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Sweep = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Sweep', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Sweep.displayName = 'Sweep';
Sweep.isGlyph = true;
diff --git a/packages/icon/src/generated/Table.tsx b/packages/icon/src/generated/Table.tsx
index 649ed31d5f..3aca87ddae 100644
--- a/packages/icon/src/generated/Table.tsx
+++ b/packages/icon/src/generated/Table.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum b4b9384b49c89a815def3b92cb3cb073
+* @checksum 4f4cbffa0e538ec66121527af5f28ace
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface TableProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Table = ({
role = 'img',
...props
}: TableProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Table = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Table', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Table.displayName = 'Table';
Table.isGlyph = true;
diff --git a/packages/icon/src/generated/Tag.tsx b/packages/icon/src/generated/Tag.tsx
index d77626b386..eeabe41d64 100644
--- a/packages/icon/src/generated/Tag.tsx
+++ b/packages/icon/src/generated/Tag.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 5cd33c32bd2b3617c7f6ec870e968975
+* @checksum e31ff5fe7d3baa05179910bc0facaf86
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface TagProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Tag = ({
role = 'img',
...props
}: TagProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Tag = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Tag', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Tag.displayName = 'Tag';
Tag.isGlyph = true;
diff --git a/packages/icon/src/generated/TemporaryTable.tsx b/packages/icon/src/generated/TemporaryTable.tsx
index 4d67c22819..b9557e6880 100644
--- a/packages/icon/src/generated/TemporaryTable.tsx
+++ b/packages/icon/src/generated/TemporaryTable.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 165f652d98c2d6a4c0b7bdbadf0a7e1e
+* @checksum 5ac113f484ea339e9a44c5e9837ee54a
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface TemporaryTableProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const TemporaryTable = ({
role = 'img',
...props
}: TemporaryTableProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const TemporaryTable = ({
`;
const accessibleProps = generateAccessibleProps(role, 'TemporaryTable', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
TemporaryTable.displayName = 'TemporaryTable';
TemporaryTable.isGlyph = true;
diff --git a/packages/icon/src/generated/ThumbsDown.tsx b/packages/icon/src/generated/ThumbsDown.tsx
index febf441e43..234a522161 100644
--- a/packages/icon/src/generated/ThumbsDown.tsx
+++ b/packages/icon/src/generated/ThumbsDown.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 71f3824af79a2a53ea638b2feb5c61e7
+* @checksum 443d526420d745af73b018ec81b38f80
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ThumbsDownProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const ThumbsDown = ({
role = 'img',
...props
}: ThumbsDownProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const ThumbsDown = ({
`;
const accessibleProps = generateAccessibleProps(role, 'ThumbsDown', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
ThumbsDown.displayName = 'ThumbsDown';
ThumbsDown.isGlyph = true;
diff --git a/packages/icon/src/generated/ThumbsUp.tsx b/packages/icon/src/generated/ThumbsUp.tsx
index c9649a52ac..e01a49e177 100644
--- a/packages/icon/src/generated/ThumbsUp.tsx
+++ b/packages/icon/src/generated/ThumbsUp.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 4143793eb7004a29fdeef4eaa9a3018a
+* @checksum 0ac755d88a0fdbb41f8d2f14e1cc86bb
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ThumbsUpProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const ThumbsUp = ({
role = 'img',
...props
}: ThumbsUpProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const ThumbsUp = ({
`;
const accessibleProps = generateAccessibleProps(role, 'ThumbsUp', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
ThumbsUp.displayName = 'ThumbsUp';
ThumbsUp.isGlyph = true;
diff --git a/packages/icon/src/generated/TimeSeries.tsx b/packages/icon/src/generated/TimeSeries.tsx
index e45f831b2a..54f8c12d37 100644
--- a/packages/icon/src/generated/TimeSeries.tsx
+++ b/packages/icon/src/generated/TimeSeries.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum e6fc7034b28a94dc36bff3b57bdebbcd
+* @checksum bb13b5e7b3836ec2b808bcae700a4584
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface TimeSeriesProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const TimeSeries = ({
role = 'img',
...props
}: TimeSeriesProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const TimeSeries = ({
`;
const accessibleProps = generateAccessibleProps(role, 'TimeSeries', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
TimeSeries.displayName = 'TimeSeries';
TimeSeries.isGlyph = true;
diff --git a/packages/icon/src/generated/TimeSeriesCollection.tsx b/packages/icon/src/generated/TimeSeriesCollection.tsx
index 169f975e52..b7b632a453 100644
--- a/packages/icon/src/generated/TimeSeriesCollection.tsx
+++ b/packages/icon/src/generated/TimeSeriesCollection.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum badaa5f7f2f1e04267653028daf9a5d4
+* @checksum ff34b63a3b354a28d71e15f1510e4611
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface TimeSeriesCollectionProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const TimeSeriesCollection = ({
role = 'img',
...props
}: TimeSeriesCollectionProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const TimeSeriesCollection = ({
`;
const accessibleProps = generateAccessibleProps(role, 'TimeSeriesCollection', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
TimeSeriesCollection.displayName = 'TimeSeriesCollection';
TimeSeriesCollection.isGlyph = true;
diff --git a/packages/icon/src/generated/Trash.tsx b/packages/icon/src/generated/Trash.tsx
index e24dccbc28..aa09d15e9f 100644
--- a/packages/icon/src/generated/Trash.tsx
+++ b/packages/icon/src/generated/Trash.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 4ec6190fcaa732d59f9b62a914dd5748
+* @checksum e9e429247764fbcf7c2387a22520a2a5
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface TrashProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Trash = ({
role = 'img',
...props
}: TrashProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Trash = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Trash', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Trash.displayName = 'Trash';
Trash.isGlyph = true;
diff --git a/packages/icon/src/generated/Undo.tsx b/packages/icon/src/generated/Undo.tsx
index baa3ae30b1..ac9514e3c8 100644
--- a/packages/icon/src/generated/Undo.tsx
+++ b/packages/icon/src/generated/Undo.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum f252343c842bb7d7db324ecc18b5b8ed
+* @checksum 43e92e1a2c6352037d6aadf06ad8650e
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface UndoProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Undo = ({
role = 'img',
...props
}: UndoProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Undo = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Undo', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Undo.displayName = 'Undo';
Undo.isGlyph = true;
diff --git a/packages/icon/src/generated/University.tsx b/packages/icon/src/generated/University.tsx
index fc1438ff36..80c28f00ee 100644
--- a/packages/icon/src/generated/University.tsx
+++ b/packages/icon/src/generated/University.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 58486ad5c0edb233fb2565d2a2cfbbcf
+* @checksum 6243c8188f23f3526141618b40aa83f0
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface UniversityProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const University = ({
role = 'img',
...props
}: UniversityProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const University = ({
`;
const accessibleProps = generateAccessibleProps(role, 'University', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
University.displayName = 'University';
University.isGlyph = true;
diff --git a/packages/icon/src/generated/Unlock.tsx b/packages/icon/src/generated/Unlock.tsx
index c40df500cc..a282675170 100644
--- a/packages/icon/src/generated/Unlock.tsx
+++ b/packages/icon/src/generated/Unlock.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 1398661254afbd25f082d3802da4e54d
+* @checksum 5561ad9b70a705f5b3869d75d89ebecf
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface UnlockProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Unlock = ({
role = 'img',
...props
}: UnlockProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Unlock = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Unlock', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Unlock.displayName = 'Unlock';
Unlock.isGlyph = true;
diff --git a/packages/icon/src/generated/Unsorted.tsx b/packages/icon/src/generated/Unsorted.tsx
index 522c7c7fa3..c452baf4d2 100644
--- a/packages/icon/src/generated/Unsorted.tsx
+++ b/packages/icon/src/generated/Unsorted.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum b478bddb140a3412f644139063f5fca3
+* @checksum 03d8fb5bfa3dcf38855991adeea054a4
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface UnsortedProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Unsorted = ({
role = 'img',
...props
}: UnsortedProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Unsorted = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Unsorted', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Unsorted.displayName = 'Unsorted';
Unsorted.isGlyph = true;
diff --git a/packages/icon/src/generated/UpDownCarets.tsx b/packages/icon/src/generated/UpDownCarets.tsx
index 272feed9bd..6b53d0d1b7 100644
--- a/packages/icon/src/generated/UpDownCarets.tsx
+++ b/packages/icon/src/generated/UpDownCarets.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 0d09fd5ba0e292136e7d8c6dae74fcc8
+* @checksum 56f314b91e16d9b293472635828925fe
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface UpDownCaretsProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const UpDownCarets = ({
role = 'img',
...props
}: UpDownCaretsProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const UpDownCarets = ({
`;
const accessibleProps = generateAccessibleProps(role, 'UpDownCarets', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
UpDownCarets.displayName = 'UpDownCarets';
UpDownCarets.isGlyph = true;
diff --git a/packages/icon/src/generated/Upload.tsx b/packages/icon/src/generated/Upload.tsx
index 9908d65449..870ae39e81 100644
--- a/packages/icon/src/generated/Upload.tsx
+++ b/packages/icon/src/generated/Upload.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 5a585242d556b5b40d7dc32e59be15aa
+* @checksum b45b46954ead2faa612a6b42fba434d9
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface UploadProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Upload = ({
role = 'img',
...props
}: UploadProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Upload = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Upload', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Upload.displayName = 'Upload';
Upload.isGlyph = true;
diff --git a/packages/icon/src/generated/VerticalEllipsis.tsx b/packages/icon/src/generated/VerticalEllipsis.tsx
index 6b4cf85507..d6b4601cc1 100644
--- a/packages/icon/src/generated/VerticalEllipsis.tsx
+++ b/packages/icon/src/generated/VerticalEllipsis.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum fccdd3758844d746064dd4942777cacd
+* @checksum 97606a0994feab2e88f69f108d1a5f3e
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface VerticalEllipsisProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const VerticalEllipsis = ({
role = 'img',
...props
}: VerticalEllipsisProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const VerticalEllipsis = ({
`;
const accessibleProps = generateAccessibleProps(role, 'VerticalEllipsis', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
VerticalEllipsis.displayName = 'VerticalEllipsis';
VerticalEllipsis.isGlyph = true;
diff --git a/packages/icon/src/generated/View.tsx b/packages/icon/src/generated/View.tsx
index 82beedda8e..41092844d7 100644
--- a/packages/icon/src/generated/View.tsx
+++ b/packages/icon/src/generated/View.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 30dc1f6a39c2d65b6fcb241025159b77
+* @checksum cbd721211421954cd313dfb469531874
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface ViewProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const View = ({
role = 'img',
...props
}: ViewProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const View = ({
`;
const accessibleProps = generateAccessibleProps(role, 'View', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
View.displayName = 'View';
View.isGlyph = true;
diff --git a/packages/icon/src/generated/Visibility.tsx b/packages/icon/src/generated/Visibility.tsx
index 2e0617e276..8de2c0ad26 100644
--- a/packages/icon/src/generated/Visibility.tsx
+++ b/packages/icon/src/generated/Visibility.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum b3ee5e82a13af887c9ab15bda1c229fa
+* @checksum f0e6dd74aee5ad2ce83e44f083e87714
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface VisibilityProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Visibility = ({
role = 'img',
...props
}: VisibilityProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Visibility = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Visibility', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Visibility.displayName = 'Visibility';
Visibility.isGlyph = true;
diff --git a/packages/icon/src/generated/VisibilityOff.tsx b/packages/icon/src/generated/VisibilityOff.tsx
index 03e8d51bf8..4cdecf954d 100644
--- a/packages/icon/src/generated/VisibilityOff.tsx
+++ b/packages/icon/src/generated/VisibilityOff.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum e01caf6dcdfaae2f04cfcc60f165ea12
+* @checksum 129319f889503fc65f3a32a3f599950e
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface VisibilityOffProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const VisibilityOff = ({
role = 'img',
...props
}: VisibilityOffProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const VisibilityOff = ({
`;
const accessibleProps = generateAccessibleProps(role, 'VisibilityOff', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
VisibilityOff.displayName = 'VisibilityOff';
VisibilityOff.isGlyph = true;
diff --git a/packages/icon/src/generated/Warning.tsx b/packages/icon/src/generated/Warning.tsx
index b2e4228521..a1dbf87fdd 100644
--- a/packages/icon/src/generated/Warning.tsx
+++ b/packages/icon/src/generated/Warning.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 035040f166e113ed89f47afdcd0e6ba9
+* @checksum 0c70b15126c8ec6b8db47542e99ca8a1
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface WarningProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Warning = ({
role = 'img',
...props
}: WarningProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Warning = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Warning', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Warning.displayName = 'Warning';
Warning.isGlyph = true;
diff --git a/packages/icon/src/generated/Wizard.tsx b/packages/icon/src/generated/Wizard.tsx
index 062403188d..3561885eea 100644
--- a/packages/icon/src/generated/Wizard.tsx
+++ b/packages/icon/src/generated/Wizard.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 1a58301da72bb805197080c3015df426
+* @checksum fa20d3b6fe28c0c5813895bcb2f89f34
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface WizardProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Wizard = ({
role = 'img',
...props
}: WizardProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Wizard = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Wizard', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Wizard.displayName = 'Wizard';
Wizard.isGlyph = true;
diff --git a/packages/icon/src/generated/Wrench.tsx b/packages/icon/src/generated/Wrench.tsx
index 1c2a05e656..e6ff31c239 100644
--- a/packages/icon/src/generated/Wrench.tsx
+++ b/packages/icon/src/generated/Wrench.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 7e1030317445aa257afea5afd5508d8a
+* @checksum 38055181bb9a97d91f3fddf9c72ec6a6
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface WrenchProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Wrench = ({
role = 'img',
...props
}: WrenchProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Wrench = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Wrench', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Wrench.displayName = 'Wrench';
Wrench.isGlyph = true;
diff --git a/packages/icon/src/generated/Write.tsx b/packages/icon/src/generated/Write.tsx
index 6789169458..8d743ae37e 100644
--- a/packages/icon/src/generated/Write.tsx
+++ b/packages/icon/src/generated/Write.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum 88f5725fa3ea564f5ae7a38c459c4202
+* @checksum e5274ac8e945b7065abfc6e2469a8f56
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface WriteProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const Write = ({
role = 'img',
...props
}: WriteProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const Write = ({
`;
const accessibleProps = generateAccessibleProps(role, 'Write', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
Write.displayName = 'Write';
Write.isGlyph = true;
diff --git a/packages/icon/src/generated/X.tsx b/packages/icon/src/generated/X.tsx
index cf2bc5ccaa..326adcca30 100644
--- a/packages/icon/src/generated/X.tsx
+++ b/packages/icon/src/generated/X.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum c4c4dba0474e43edea5bc9c3132850bb
+* @checksum 40801001b61f74e5e9538d77c29e4ded
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface XProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const X = ({
role = 'img',
...props
}: XProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const X = ({
`;
const accessibleProps = generateAccessibleProps(role, 'X', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
X.displayName = 'X';
X.isGlyph = true;
diff --git a/packages/icon/src/generated/XWithCircle.tsx b/packages/icon/src/generated/XWithCircle.tsx
index da225f3998..d6a806292a 100644
--- a/packages/icon/src/generated/XWithCircle.tsx
+++ b/packages/icon/src/generated/XWithCircle.tsx
@@ -2,10 +2,11 @@
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
-* @checksum be4d5840abf953589ffc2965feeb2bba
+* @checksum f2808706ac66b2c1d7d2582bc38986ff
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
+import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface XWithCircleProps extends LGGlyph.ComponentProps {}
@@ -19,6 +20,9 @@ const XWithCircle = ({
role = 'img',
...props
}: XWithCircleProps) => {
+ const titleId = useIdAllocator({
+ prefix: 'icon-title'
+ });
const fillStyle = css`
color: ${fill};
`;
@@ -27,12 +31,13 @@ const XWithCircle = ({
`;
const accessibleProps = generateAccessibleProps(role, 'XWithCircle', {
title,
+ titleId,
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby
});
return ;
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && {title}};
};
XWithCircle.displayName = 'XWithCircle';
XWithCircle.isGlyph = true;
diff --git a/packages/icon/src/generated/index.ts b/packages/icon/src/generated/index.ts
new file mode 100644
index 0000000000..79d47bc919
--- /dev/null
+++ b/packages/icon/src/generated/index.ts
@@ -0,0 +1,188 @@
+/**
+ * This is a generated file. Do not modify it manually.
+ *
+ * @script packages/icon/scripts/prebuild/index.ts
+ */
+
+export { default as ActivityFeed } from './ActivityFeed';
+export { default as AddFile } from './AddFile';
+export { default as AIModel } from './AIModel';
+export { default as AllProducts } from './AllProducts';
+export { default as AnalyticsNode } from './AnalyticsNode';
+export { default as Apps } from './Apps';
+export { default as Array } from './Array';
+export { default as ArrowDown } from './ArrowDown';
+export { default as ArrowLeft } from './ArrowLeft';
+export { default as ArrowRight } from './ArrowRight';
+export { default as ArrowUp } from './ArrowUp';
+export { default as Award } from './Award';
+export { default as Beaker } from './Beaker';
+export { default as Bell } from './Bell';
+export { default as Biometric } from './Biometric';
+export { default as Boolean } from './Boolean';
+export { default as Building } from './Building';
+export { default as Bulb } from './Bulb';
+export { default as Calendar } from './Calendar';
+export { default as Camera } from './Camera';
+export { default as Cap } from './Cap';
+export { default as CaretDown } from './CaretDown';
+export { default as CaretLeft } from './CaretLeft';
+export { default as CaretRight } from './CaretRight';
+export { default as CaretUp } from './CaretUp';
+export { default as ChartFilled } from './ChartFilled';
+export { default as Charts } from './Charts';
+export { default as Checkmark } from './Checkmark';
+export { default as CheckmarkWithCircle } from './CheckmarkWithCircle';
+export { default as ChevronDown } from './ChevronDown';
+export { default as ChevronLeft } from './ChevronLeft';
+export { default as ChevronRight } from './ChevronRight';
+export { default as ChevronUp } from './ChevronUp';
+export { default as Circle } from './Circle';
+export { default as Clock } from './Clock';
+export { default as ClockWithArrow } from './ClockWithArrow';
+export { default as Clone } from './Clone';
+export { default as Cloud } from './Cloud';
+export { default as Code } from './Code';
+export { default as CodeBlock } from './CodeBlock';
+export { default as Coin } from './Coin';
+export { default as Colon } from './Colon';
+export { default as Config } from './Config';
+export { default as Connect } from './Connect';
+export { default as Copy } from './Copy';
+export { default as CreditCard } from './CreditCard';
+export { default as CurlyBraces } from './CurlyBraces';
+export { default as Cursor } from './Cursor';
+export { default as Dashboard } from './Dashboard';
+export { default as Database } from './Database';
+export { default as Diagram } from './Diagram';
+export { default as Diagram2 } from './Diagram2';
+export { default as Diagram3 } from './Diagram3';
+export { default as Disconnect } from './Disconnect';
+export { default as Download } from './Download';
+export { default as Drag } from './Drag';
+export { default as Edit } from './Edit';
+export { default as Ellipsis } from './Ellipsis';
+export { default as Email } from './Email';
+export { default as EmptyDatabase } from './EmptyDatabase';
+export { default as EmptyFolder } from './EmptyFolder';
+export { default as Eraser } from './Eraser';
+export { default as Escalation } from './Escalation';
+export { default as Export } from './Export';
+export { default as Favorite } from './Favorite';
+export { default as Federation } from './Federation';
+export { default as File } from './File';
+export { default as Filter } from './Filter';
+export { default as Folder } from './Folder';
+export { default as Format } from './Format';
+export { default as FullScreenEnter } from './FullScreenEnter';
+export { default as FullScreenExit } from './FullScreenExit';
+export { default as Function } from './Function';
+export { default as Gauge } from './Gauge';
+export { default as GlobeAmericas } from './GlobeAmericas';
+export { default as GovernmentBuilding } from './GovernmentBuilding';
+export { default as Guide } from './Guide';
+export { default as Hash } from './Hash';
+export { default as HiddenSecondaryNode } from './HiddenSecondaryNode';
+export { default as Highlight } from './Highlight';
+export { default as Home } from './Home';
+export { default as HorizontalDrag } from './HorizontalDrag';
+export { default as Import } from './Import';
+export { default as ImportantWithCircle } from './ImportantWithCircle';
+export { default as InfoWithCircle } from './InfoWithCircle';
+export { default as InternalEmployee } from './InternalEmployee';
+export { default as InviteUser } from './InviteUser';
+export { default as Key } from './Key';
+export { default as Laptop } from './Laptop';
+export { default as LightningBolt } from './LightningBolt';
+export { default as Link } from './Link';
+export { default as List } from './List';
+export { default as Lock } from './Lock';
+export { default as LogIn } from './LogIn';
+export { default as LogOut } from './LogOut';
+export { default as MagnifyingGlass } from './MagnifyingGlass';
+export { default as Megaphone } from './Megaphone';
+export { default as Menu } from './Menu';
+export { default as Minus } from './Minus';
+export { default as Mobile } from './Mobile';
+export { default as Moon } from './Moon';
+export { default as MultiDirectionArrow } from './MultiDirectionArrow';
+export { default as MultiLayers } from './MultiLayers';
+export { default as NavCollapse } from './NavCollapse';
+export { default as NavExpand } from './NavExpand';
+export { default as NoFilter } from './NoFilter';
+export { default as NotAllowed } from './NotAllowed';
+export { default as Note } from './Note';
+export { default as NumberedList } from './NumberedList';
+export { default as OpenNewTab } from './OpenNewTab';
+export { default as OutlineFavorite } from './OutlineFavorite';
+export { default as Package } from './Package';
+export { default as Pause } from './Pause';
+export { default as Pending } from './Pending';
+export { default as Person } from './Person';
+export { default as PersonGroup } from './PersonGroup';
+export { default as PersonWithLock } from './PersonWithLock';
+export { default as Pin } from './Pin';
+export { default as Play } from './Play';
+export { default as Plus } from './Plus';
+export { default as PlusWithCircle } from './PlusWithCircle';
+export { default as Primary } from './Primary';
+export { default as Project } from './Project';
+export { default as QuestionMarkWithCircle } from './QuestionMarkWithCircle';
+export { default as Read } from './Read';
+export { default as Recommended } from './Recommended';
+export { default as Redo } from './Redo';
+export { default as Refresh } from './Refresh';
+export { default as Relationship } from './Relationship';
+export { default as ReplicaSet } from './ReplicaSet';
+export { default as Resize } from './Resize';
+export { default as Resource } from './Resource';
+export { default as Return } from './Return';
+export { default as Revert } from './Revert';
+export { default as Router } from './Router';
+export { default as Save } from './Save';
+export { default as SearchIndex } from './SearchIndex';
+export { default as Secondary } from './Secondary';
+export { default as Serverless } from './Serverless';
+export { default as Settings } from './Settings';
+export { default as ShardedCluster } from './ShardedCluster';
+export { default as Shell } from './Shell';
+export { default as Shield } from './Shield';
+export { default as Shirt } from './Shirt';
+export { default as Shortcut } from './Shortcut';
+export { default as SMS } from './SMS';
+export { default as SortAscending } from './SortAscending';
+export { default as SortDescending } from './SortDescending';
+export { default as Sparkle } from './Sparkle';
+export { default as SplitHorizontal } from './SplitHorizontal';
+export { default as SplitVertical } from './SplitVertical';
+export { default as Stitch } from './Stitch';
+export { default as Stop } from './Stop';
+export { default as Streaming } from './Streaming';
+export { default as String } from './String';
+export { default as Sun } from './Sun';
+export { default as Support } from './Support';
+export { default as Sweep } from './Sweep';
+export { default as Table } from './Table';
+export { default as Tag } from './Tag';
+export { default as TemporaryTable } from './TemporaryTable';
+export { default as ThumbsDown } from './ThumbsDown';
+export { default as ThumbsUp } from './ThumbsUp';
+export { default as TimeSeries } from './TimeSeries';
+export { default as TimeSeriesCollection } from './TimeSeriesCollection';
+export { default as Trash } from './Trash';
+export { default as Undo } from './Undo';
+export { default as University } from './University';
+export { default as Unlock } from './Unlock';
+export { default as Unsorted } from './Unsorted';
+export { default as UpDownCarets } from './UpDownCarets';
+export { default as Upload } from './Upload';
+export { default as VerticalEllipsis } from './VerticalEllipsis';
+export { default as View } from './View';
+export { default as Visibility } from './Visibility';
+export { default as VisibilityOff } from './VisibilityOff';
+export { default as Warning } from './Warning';
+export { default as Wizard } from './Wizard';
+export { default as Wrench } from './Wrench';
+export { default as Write } from './Write';
+export { default as X } from './X';
+export { default as XWithCircle } from './XWithCircle';
diff --git a/packages/icon/src/glyphCommon.ts b/packages/icon/src/glyphCommon.ts
index 3f16c0535a..9bba5df595 100644
--- a/packages/icon/src/glyphCommon.ts
+++ b/packages/icon/src/glyphCommon.ts
@@ -18,10 +18,11 @@ interface AccessibleFunctionParams {
'aria-labelledby'?: string;
'aria-label'?: string;
title?: string | null;
+ titleId?: string;
}
type AccessibleFunctionReturnType =
- | AccessibleFunctionParams
+ | { 'aria-labelledby'?: string; 'aria-label'?: string }
| { 'aria-hidden': true; alt: '' };
export function generateAccessibleProps(
@@ -31,19 +32,34 @@ export function generateAccessibleProps(
['aria-label']: ariaLabel,
['aria-labelledby']: ariaLabelledby,
title,
+ titleId,
}: AccessibleFunctionParams,
): AccessibleFunctionReturnType {
switch (role) {
- case 'img':
+ case 'img': {
if (!ariaLabel && !ariaLabelledby && !title) {
return { 'aria-label': getGlyphLabel(glyphName) };
}
+ // If there's a title, use the titleId for aria-labelledby
+ // If there's already an aria-labelledby, combine them
+ let labelledBy: string | undefined;
+
+ if (title) {
+ if (ariaLabelledby) {
+ labelledBy = `${titleId} ${ariaLabelledby}`;
+ } else {
+ labelledBy = titleId;
+ }
+ } else {
+ labelledBy = ariaLabelledby;
+ }
+
return {
- ['aria-labelledby']: ariaLabelledby,
+ ['aria-labelledby']: labelledBy,
['aria-label']: ariaLabel,
- title,
};
+ }
case 'presentation':
return { 'aria-hidden': true, alt: '' };
diff --git a/packages/icon/src/glyphs/AIModel.svg b/packages/icon/src/glyphs/AIModel.svg
index fda047b2fe..924351f902 100644
--- a/packages/icon/src/glyphs/AIModel.svg
+++ b/packages/icon/src/glyphs/AIModel.svg
@@ -1,20 +1,3 @@
-