diff --git a/package-lock.json b/package-lock.json index 5180d35bb79..c646116fae0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35900,7 +35900,6 @@ "version": "2.11.0-next.29", "license": "SEE LICENSE.md", "dependencies": { - "@esri/calcite-ui-icons": "^3.29.1-next.0", "@floating-ui/dom": "1.6.8", "@stencil/core": "4.19.2", "@types/color": "3.0.6", @@ -35916,6 +35915,7 @@ }, "devDependencies": { "@esri/calcite-design-tokens": "^2.2.1-next.3", + "@esri/calcite-ui-icons": "^3.29.1-next.0", "@esri/eslint-plugin-calcite-components": "^1.2.1-next.3", "@stencil-community/eslint-plugin": "0.7.2", "@stencil-community/postcss": "2.2.0", diff --git a/packages/calcite-components/.eslintrc.cjs b/packages/calcite-components/.eslintrc.cjs index b5ceb4e7075..75c1fcfcd12 100644 --- a/packages/calcite-components/.eslintrc.cjs +++ b/packages/calcite-components/.eslintrc.cjs @@ -70,7 +70,6 @@ module.exports = { ], }, ], - "@typescript-eslint/lines-between-class-members": ["error", "always"], "@typescript-eslint/method-signature-style": ["error", "property"], "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-unused-vars": "error", @@ -85,7 +84,7 @@ module.exports = { "jsdoc/require-property-type": "off", "jsdoc/require-returns-type": "off", "jsdoc/tag-lines": ["error", "any", { startLines: 1 }], - "lines-between-class-members": "off", + "lines-between-class-members": ["error", "always"], "no-eval": "error", "no-implied-eval": "error", "no-multiple-empty-lines": [ diff --git a/packages/calcite-components/package.json b/packages/calcite-components/package.json index 94e78b1d3e4..b0fa18276e5 100644 --- a/packages/calcite-components/package.json +++ b/packages/calcite-components/package.json @@ -63,7 +63,6 @@ "directory": "packages/calcite-components" }, "dependencies": { - "@esri/calcite-ui-icons": "^3.29.1-next.0", "@floating-ui/dom": "1.6.8", "@stencil/core": "4.19.2", "@types/color": "3.0.6", @@ -79,6 +78,7 @@ }, "devDependencies": { "@esri/calcite-design-tokens": "^2.2.1-next.3", + "@esri/calcite-ui-icons": "^3.29.1-next.0", "@esri/eslint-plugin-calcite-components": "^1.2.1-next.3", "@stencil-community/eslint-plugin": "0.7.2", "@stencil-community/postcss": "2.2.0", diff --git a/packages/calcite-components/src/components.d.ts b/packages/calcite-components/src/components.d.ts index f90f78a16c5..6aa9d2bfd4f 100644 --- a/packages/calcite-components/src/components.d.ts +++ b/packages/calcite-components/src/components.d.ts @@ -7,7 +7,6 @@ import { HTMLStencilElement, JSXBase } from "@stencil/core/internal"; import { Alignment, Appearance, CollapseDirection, FlipContext, IconType, Kind, Layout, LogicalFlowPosition, Position, Scale, SelectionAppearance as SelectionAppearance1, SelectionMode, Status, Width } from "./components/interfaces"; import { RequestedItem } from "./components/accordion/interfaces"; -import { IconName } from "./components/icon/interfaces"; import { RequestedItem as RequestedItem1 } from "./components/accordion-item/interfaces"; import { FlipPlacement, LogicalPlacement, MenuPlacement, OverlayPositioning, ReferenceElement } from "./utils/floating-ui"; import { Columns } from "./components/action-group/interfaces"; @@ -53,7 +52,6 @@ import { TreeItemSelectDetail } from "./components/tree-item/interfaces"; import { ListItemAndHandle } from "./components/value-list-item/interfaces"; export { Alignment, Appearance, CollapseDirection, FlipContext, IconType, Kind, Layout, LogicalFlowPosition, Position, Scale, SelectionAppearance as SelectionAppearance1, SelectionMode, Status, Width } from "./components/interfaces"; export { RequestedItem } from "./components/accordion/interfaces"; -export { IconName } from "./components/icon/interfaces"; export { RequestedItem as RequestedItem1 } from "./components/accordion-item/interfaces"; export { FlipPlacement, LogicalPlacement, MenuPlacement, OverlayPositioning, ReferenceElement } from "./utils/floating-ui"; export { Columns } from "./components/action-group/interfaces"; @@ -143,7 +141,7 @@ export namespace Components { /** * Specifies an icon to display at the end of the component. */ - "iconEnd": IconName; + "iconEnd": string; /** * Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -155,7 +153,7 @@ export namespace Components { /** * Specifies an icon to display at the start of the component. */ - "iconStart": IconName; + "iconStart": string; /** * Specifies the type of the icon in the header inherited from the `calcite-accordion`. */ @@ -194,7 +192,7 @@ export namespace Components { /** * Specifies an icon to display. */ - "icon": IconName; + "icon": string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -425,7 +423,7 @@ export namespace Components { /** * When `true`, shows a default recommended icon. Alternatively, pass a Calcite UI Icon name to display a specific icon. */ - "icon": IconName | boolean; + "icon": string | boolean; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -524,7 +522,7 @@ export namespace Components { /** * Specifies an icon to display at the end of the component. */ - "iconEnd": IconName; + "iconEnd": string; /** * Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -532,7 +530,7 @@ export namespace Components { /** * Specifies an icon to display at the start of the component. */ - "iconStart": IconName; + "iconStart": string; /** * When `true`, a busy indicator is displayed. */ @@ -567,7 +565,7 @@ export namespace Components { /** * Specifies an icon to display at the end of the component. */ - "iconEnd": IconName; + "iconEnd": string; /** * Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -575,7 +573,7 @@ export namespace Components { /** * Specifies an icon to display at the start of the component. */ - "iconStart": IconName; + "iconStart": string; /** * Use this property to override individual strings used by the component. */ @@ -637,7 +635,7 @@ export namespace Components { /** * Specifies an icon to display at the end of the component. */ - "iconEnd": IconName; + "iconEnd": string; /** * Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -645,7 +643,7 @@ export namespace Components { /** * Specifies an icon to display at the start of the component. */ - "iconStart": IconName; + "iconStart": string; /** * Specifies the kind of the component, which will apply to the border and background if applicable. */ @@ -921,7 +919,7 @@ export namespace Components { /** * Specifies an icon to display. */ - "icon": IconName; + "icon": string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -1199,7 +1197,7 @@ export namespace Components { /** * Specifies the placeholder icon for the input. */ - "placeholderIcon": IconName; + "placeholderIcon": string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -1249,7 +1247,7 @@ export namespace Components { /** * Specifies the validation icon to display under the component. */ - "validationIcon": IconName | boolean; + "validationIcon": string | boolean; /** * Specifies the validation message to display under the component. */ @@ -1297,7 +1295,7 @@ export namespace Components { /** * Specifies an icon to display. */ - "icon": IconName; + "icon": string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -1730,7 +1728,7 @@ export namespace Components { /** * Specifies an icon to display at the end of the component. */ - "iconEnd": IconName; + "iconEnd": string; /** * Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -1738,7 +1736,7 @@ export namespace Components { /** * Specifies an icon to display at the start of the component. */ - "iconStart": IconName; + "iconStart": string; /** * Accessible name for the component. */ @@ -1781,7 +1779,7 @@ export namespace Components { * Specifies an icon to display. * @default "plus" */ - "icon": IconName; + "icon": string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -2033,7 +2031,7 @@ export namespace Components { * Displays a specific icon. * @see [Icons](https://esri.github.io/calcite-ui-icons) */ - "icon": IconName; + "icon": string; /** * Specifies the size of the component. */ @@ -2132,7 +2130,7 @@ export namespace Components { /** * When `true`, shows a default recommended icon. Alternatively, pass a Calcite UI Icon name to display a specific icon. */ - "icon": IconName | boolean; + "icon": string | boolean; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -2270,7 +2268,7 @@ export namespace Components { /** * Specifies the validation icon to display under the component. */ - "validationIcon": IconName | boolean; + "validationIcon": string | boolean; /** * Specifies the validation message to display under the component. */ @@ -2393,7 +2391,7 @@ export namespace Components { /** * Specifies the validation icon to display under the component. */ - "validationIcon": IconName | boolean; + "validationIcon": string | boolean; /** * Specifies the validation message to display under the component. */ @@ -2417,7 +2415,7 @@ export namespace Components { /** * Specifies an icon to display. */ - "icon": IconName | boolean; + "icon": boolean | string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -2473,7 +2471,7 @@ export namespace Components { * Specifies an icon to display. * @futureBreaking Remove boolean type as it is not supported. */ - "icon": IconName | boolean; + "icon": string | boolean; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -2588,7 +2586,7 @@ export namespace Components { /** * Specifies the validation icon to display under the component. */ - "validationIcon": IconName | boolean; + "validationIcon": string | boolean; /** * Specifies the validation message to display under the component. */ @@ -2642,7 +2640,7 @@ export namespace Components { * Specifies an icon to display. * @futureBreaking Remove boolean type as it is not supported. */ - "icon": IconName | boolean; + "icon": string | boolean; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -2729,7 +2727,7 @@ export namespace Components { /** * Specifies the validation icon to display under the component. */ - "validationIcon": IconName | boolean; + "validationIcon": string | boolean; /** * Specifies the validation message to display under the component. */ @@ -2829,7 +2827,7 @@ export namespace Components { /** * Specifies the validation icon to display under the component. */ - "validationIcon": IconName | boolean; + "validationIcon": string | boolean; /** * Specifies the validation message to display under the component. */ @@ -2917,7 +2915,7 @@ export namespace Components { /** * Specifies the validation icon to display under the component. */ - "validationIcon": IconName | boolean; + "validationIcon": string | boolean; /** * Specifies the validation message to display under the component. */ @@ -2968,7 +2966,7 @@ export namespace Components { /** * Specifies an icon to display at the end of the component. */ - "iconEnd": IconName; + "iconEnd": string; /** * Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -2976,7 +2974,7 @@ export namespace Components { /** * Specifies an icon to display at the start of the component. */ - "iconStart": IconName; + "iconStart": string; /** * Specifies the relationship to the linked document defined in `href`. */ @@ -3257,7 +3255,7 @@ export namespace Components { /** * Specifies an icon to display at the end of the component. */ - "iconEnd": IconName; + "iconEnd": string; /** * Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -3265,7 +3263,7 @@ export namespace Components { /** * Specifies an icon to display at the start of the component. */ - "iconStart": IconName; + "iconStart": string; "isTopLevelItem": boolean; /** * Accessible name for the component. @@ -3496,7 +3494,7 @@ export namespace Components { /** * Specifies an icon to display. */ - "icon": IconName; + "icon": string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -3566,7 +3564,7 @@ export namespace Components { /** * When `true`, shows a default recommended icon. Alternatively, pass a Calcite UI Icon name to display a specific icon. */ - "icon": IconName | boolean; + "icon": string | boolean; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -4094,7 +4092,7 @@ export namespace Components { /** * Specifies the validation icon to display under the component. */ - "validationIcon": IconName | boolean; + "validationIcon": string | boolean; /** * Specifies the validation message to display under the component. */ @@ -4213,7 +4211,7 @@ export namespace Components { /** * Specifies the validation icon to display under the component. */ - "validationIcon": IconName | boolean; + "validationIcon": string | boolean; /** * Specifies the validation message to display under the component. */ @@ -4245,7 +4243,7 @@ export namespace Components { /** * Specifies an icon to display at the end of the component. */ - "iconEnd": IconName; + "iconEnd": string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -4253,7 +4251,7 @@ export namespace Components { /** * Specifies an icon to display at the start of the component. */ - "iconStart": IconName; + "iconStart": string; /** * Defines the layout of the component inherited from parent `calcite-segmented-control`, defaults to `horizontal`. */ @@ -4308,7 +4306,7 @@ export namespace Components { /** * Specifies the validation icon to display under the component. */ - "validationIcon": IconName | boolean; + "validationIcon": string | boolean; /** * Specifies the validation message to display under the component. */ @@ -4656,7 +4654,7 @@ export namespace Components { /** * Specifies an icon to display at the end of the primary button. */ - "primaryIconEnd": IconName; + "primaryIconEnd": string; /** * Displays the `primaryIconStart` and/or `primaryIconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -4664,7 +4662,7 @@ export namespace Components { /** * Specifies an icon to display at the start of the primary button. */ - "primaryIconStart": IconName; + "primaryIconStart": string; /** * Accessible name for the primary button. */ @@ -4924,7 +4922,7 @@ export namespace Components { /** * Specifies an icon to display at the end of the component. */ - "iconEnd": IconName; + "iconEnd": string; /** * Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -4932,7 +4930,7 @@ export namespace Components { /** * Specifies an icon to display at the start of the component. */ - "iconStart": IconName; + "iconStart": string; "layout": TabLayout; /** * Use this property to override individual strings used by the component. @@ -5260,7 +5258,7 @@ export namespace Components { /** * Specifies the validation icon to display under the component. */ - "validationIcon": IconName | boolean; + "validationIcon": string | boolean; /** * Specifies the validation message to display under the component. */ @@ -5315,7 +5313,7 @@ export namespace Components { /** * Specifies an icon to display. */ - "icon": IconName; + "icon": string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -5417,7 +5415,7 @@ export namespace Components { /** * Specifies an icon to display. */ - "icon": IconName; + "icon": string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -5645,7 +5643,7 @@ export namespace Components { /** * Specifies an icon to display at the start of the component. */ - "iconStart": IconName; + "iconStart": string; /** * In ancestor selection mode, show as indeterminate when only some children are selected. */ @@ -8030,7 +8028,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the end of the component. */ - "iconEnd"?: IconName; + "iconEnd"?: string; /** * Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -8042,7 +8040,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the start of the component. */ - "iconStart"?: IconName; + "iconStart"?: string; /** * Specifies the type of the icon in the header inherited from the `calcite-accordion`. */ @@ -8079,7 +8077,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display. */ - "icon"?: IconName; + "icon"?: string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -8298,7 +8296,7 @@ declare namespace LocalJSX { /** * When `true`, shows a default recommended icon. Alternatively, pass a Calcite UI Icon name to display a specific icon. */ - "icon"?: IconName | boolean; + "icon"?: string | boolean; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -8417,7 +8415,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the end of the component. */ - "iconEnd"?: IconName; + "iconEnd"?: string; /** * Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -8425,7 +8423,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the start of the component. */ - "iconStart"?: IconName; + "iconStart"?: string; /** * When `true`, a busy indicator is displayed. */ @@ -8477,7 +8475,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the end of the component. */ - "iconEnd"?: IconName; + "iconEnd"?: string; /** * Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -8485,7 +8483,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the start of the component. */ - "iconStart"?: IconName; + "iconStart"?: string; /** * Use this property to override individual strings used by the component. */ @@ -8547,7 +8545,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the end of the component. */ - "iconEnd"?: IconName; + "iconEnd"?: string; /** * Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -8555,7 +8553,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the start of the component. */ - "iconStart"?: IconName; + "iconStart"?: string; /** * Specifies the kind of the component, which will apply to the border and background if applicable. */ @@ -8844,7 +8842,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display. */ - "icon"?: IconName; + "icon"?: string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -9161,7 +9159,7 @@ declare namespace LocalJSX { /** * Specifies the placeholder icon for the input. */ - "placeholderIcon"?: IconName; + "placeholderIcon"?: string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -9201,7 +9199,7 @@ declare namespace LocalJSX { /** * Specifies the validation icon to display under the component. */ - "validationIcon"?: IconName | boolean; + "validationIcon"?: string | boolean; /** * Specifies the validation message to display under the component. */ @@ -9249,7 +9247,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display. */ - "icon"?: IconName; + "icon"?: string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -9723,7 +9721,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the end of the component. */ - "iconEnd"?: IconName; + "iconEnd"?: string; /** * Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -9731,7 +9729,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the start of the component. */ - "iconStart"?: IconName; + "iconStart"?: string; /** * Accessible name for the component. */ @@ -9777,7 +9775,7 @@ declare namespace LocalJSX { * Specifies an icon to display. * @default "plus" */ - "icon"?: IconName; + "icon"?: string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -10023,7 +10021,7 @@ declare namespace LocalJSX { * Displays a specific icon. * @see [Icons](https://esri.github.io/calcite-ui-icons) */ - "icon"?: IconName; + "icon"?: string; /** * Specifies the size of the component. */ @@ -10127,7 +10125,7 @@ declare namespace LocalJSX { /** * When `true`, shows a default recommended icon. Alternatively, pass a Calcite UI Icon name to display a specific icon. */ - "icon"?: IconName | boolean; + "icon"?: string | boolean; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -10267,7 +10265,7 @@ declare namespace LocalJSX { /** * Specifies the validation icon to display under the component. */ - "validationIcon"?: IconName | boolean; + "validationIcon"?: string | boolean; /** * Specifies the validation message to display under the component. */ @@ -10401,7 +10399,7 @@ declare namespace LocalJSX { /** * Specifies the validation icon to display under the component. */ - "validationIcon"?: IconName | boolean; + "validationIcon"?: string | boolean; /** * Specifies the validation message to display under the component. */ @@ -10425,7 +10423,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display. */ - "icon"?: IconName | boolean; + "icon"?: boolean | string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -10481,7 +10479,7 @@ declare namespace LocalJSX { * Specifies an icon to display. * @futureBreaking Remove boolean type as it is not supported. */ - "icon"?: IconName | boolean; + "icon"?: string | boolean; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -10598,7 +10596,7 @@ declare namespace LocalJSX { /** * Specifies the validation icon to display under the component. */ - "validationIcon"?: IconName | boolean; + "validationIcon"?: string | boolean; /** * Specifies the validation message to display under the component. */ @@ -10652,7 +10650,7 @@ declare namespace LocalJSX { * Specifies an icon to display. * @futureBreaking Remove boolean type as it is not supported. */ - "icon"?: IconName | boolean; + "icon"?: string | boolean; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -10744,7 +10742,7 @@ declare namespace LocalJSX { /** * Specifies the validation icon to display under the component. */ - "validationIcon"?: IconName | boolean; + "validationIcon"?: string | boolean; /** * Specifies the validation message to display under the component. */ @@ -10855,7 +10853,7 @@ declare namespace LocalJSX { /** * Specifies the validation icon to display under the component. */ - "validationIcon"?: IconName | boolean; + "validationIcon"?: string | boolean; /** * Specifies the validation message to display under the component. */ @@ -10962,7 +10960,7 @@ declare namespace LocalJSX { /** * Specifies the validation icon to display under the component. */ - "validationIcon"?: IconName | boolean; + "validationIcon"?: string | boolean; /** * Specifies the validation message to display under the component. */ @@ -11016,7 +11014,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the end of the component. */ - "iconEnd"?: IconName; + "iconEnd"?: string; /** * Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -11024,7 +11022,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the start of the component. */ - "iconStart"?: IconName; + "iconStart"?: string; /** * Specifies the relationship to the linked document defined in `href`. */ @@ -11340,7 +11338,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the end of the component. */ - "iconEnd"?: IconName; + "iconEnd"?: string; /** * Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -11348,7 +11346,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the start of the component. */ - "iconStart"?: IconName; + "iconStart"?: string; "isTopLevelItem"?: boolean; /** * Accessible name for the component. @@ -11582,7 +11580,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display. */ - "icon"?: IconName; + "icon"?: string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -11644,7 +11642,7 @@ declare namespace LocalJSX { /** * When `true`, shows a default recommended icon. Alternatively, pass a Calcite UI Icon name to display a specific icon. */ - "icon"?: IconName | boolean; + "icon"?: string | boolean; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -12202,7 +12200,7 @@ declare namespace LocalJSX { /** * Specifies the validation icon to display under the component. */ - "validationIcon"?: IconName | boolean; + "validationIcon"?: string | boolean; /** * Specifies the validation message to display under the component. */ @@ -12321,7 +12319,7 @@ declare namespace LocalJSX { /** * Specifies the validation icon to display under the component. */ - "validationIcon"?: IconName | boolean; + "validationIcon"?: string | boolean; /** * Specifies the validation message to display under the component. */ @@ -12353,7 +12351,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the end of the component. */ - "iconEnd"?: IconName; + "iconEnd"?: string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -12361,7 +12359,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the start of the component. */ - "iconStart"?: IconName; + "iconStart"?: string; /** * Defines the layout of the component inherited from parent `calcite-segmented-control`, defaults to `horizontal`. */ @@ -12420,7 +12418,7 @@ declare namespace LocalJSX { /** * Specifies the validation icon to display under the component. */ - "validationIcon"?: IconName | boolean; + "validationIcon"?: string | boolean; /** * Specifies the validation message to display under the component. */ @@ -12794,7 +12792,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the end of the primary button. */ - "primaryIconEnd"?: IconName; + "primaryIconEnd"?: string; /** * Displays the `primaryIconStart` and/or `primaryIconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -12802,7 +12800,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the start of the primary button. */ - "primaryIconStart"?: IconName; + "primaryIconStart"?: string; /** * Accessible name for the primary button. */ @@ -13040,7 +13038,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the end of the component. */ - "iconEnd"?: IconName; + "iconEnd"?: string; /** * Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @@ -13048,7 +13046,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the start of the component. */ - "iconStart"?: IconName; + "iconStart"?: string; "layout"?: TabLayout; /** * Use this property to override individual strings used by the component. @@ -13401,7 +13399,7 @@ declare namespace LocalJSX { /** * Specifies the validation icon to display under the component. */ - "validationIcon"?: IconName | boolean; + "validationIcon"?: string | boolean; /** * Specifies the validation message to display under the component. */ @@ -13456,7 +13454,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display. */ - "icon"?: IconName; + "icon"?: string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -13563,7 +13561,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display. */ - "icon"?: IconName; + "icon"?: string; /** * When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @@ -13805,7 +13803,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the start of the component. */ - "iconStart"?: IconName; + "iconStart"?: string; /** * In ancestor selection mode, show as indeterminate when only some children are selected. */ diff --git a/packages/calcite-components/src/components/accordion-item/accordion-item.tsx b/packages/calcite-components/src/components/accordion-item/accordion-item.tsx index c8e99f9512b..973e9374f3a 100644 --- a/packages/calcite-components/src/components/accordion-item/accordion-item.tsx +++ b/packages/calcite-components/src/components/accordion-item/accordion-item.tsx @@ -30,7 +30,6 @@ import { setComponentLoaded, setUpLoadableComponent, } from "../../utils/loadable"; -import { IconName } from "../icon/interfaces"; import { SLOTS, CSS, IDS } from "./resources"; import { RequestedItem } from "./interfaces"; @@ -61,10 +60,10 @@ export class AccordionItem implements ConditionalSlotComponent, LoadableComponen @Prop() description: string; /** Specifies an icon to display at the start of the component. */ - @Prop({ reflect: true }) iconStart: IconName; + @Prop({ reflect: true }) iconStart: string; /** Specifies an icon to display at the end of the component. */ - @Prop({ reflect: true }) iconEnd: IconName; + @Prop({ reflect: true }) iconEnd: string; /** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */ @Prop({ reflect: true }) iconFlipRtl: FlipContext; diff --git a/packages/calcite-components/src/components/action-group/resources.ts b/packages/calcite-components/src/components/action-group/resources.ts index 7d8be4ba27e..c43144a4821 100644 --- a/packages/calcite-components/src/components/action-group/resources.ts +++ b/packages/calcite-components/src/components/action-group/resources.ts @@ -5,7 +5,7 @@ export const SLOTS = { export const ICONS = { menu: "ellipsis", -} as const; +}; export const CSS = { container: "container", diff --git a/packages/calcite-components/src/components/action-menu/resources.ts b/packages/calcite-components/src/components/action-menu/resources.ts index 38223214d32..d10c0e03549 100644 --- a/packages/calcite-components/src/components/action-menu/resources.ts +++ b/packages/calcite-components/src/components/action-menu/resources.ts @@ -10,6 +10,6 @@ export const SLOTS = { export const ICONS = { menu: "ellipsis", -} as const; +}; export const activeAttr = "data-active"; diff --git a/packages/calcite-components/src/components/action/action.tsx b/packages/calcite-components/src/components/action/action.tsx index f68e5515f88..f77b9dad14c 100644 --- a/packages/calcite-components/src/components/action/action.tsx +++ b/packages/calcite-components/src/components/action/action.tsx @@ -36,7 +36,6 @@ import { updateMessages, } from "../../utils/t9n"; import { Alignment, Appearance, Scale } from "../interfaces"; -import { IconName } from "../icon/interfaces"; import { isBrowser } from "../../utils/browser"; import { ActionMessages } from "./assets/action/t9n"; import { CSS, SLOTS } from "./resources"; @@ -86,7 +85,7 @@ export class Action @Prop({ reflect: true }) disabled = false; /** Specifies an icon to display. */ - @Prop() icon: IconName; + @Prop() icon: string; /** When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @Prop({ reflect: true }) iconFlipRtl = false; diff --git a/packages/calcite-components/src/components/alert/alert.tsx b/packages/calcite-components/src/components/alert/alert.tsx index 2ba97cd4a11..93aefbc2bbf 100644 --- a/packages/calcite-components/src/components/alert/alert.tsx +++ b/packages/calcite-components/src/components/alert/alert.tsx @@ -42,7 +42,6 @@ import { } from "../../utils/t9n"; import { Kind, Scale } from "../interfaces"; import { KindIcons } from "../resources"; -import { IconName } from "../icon/interfaces"; import { AlertMessages } from "./assets/alert/t9n"; import { AlertDuration, Sync, Unregister } from "./interfaces"; import { CSS, DURATIONS, SLOTS } from "./resources"; @@ -111,7 +110,7 @@ export class Alert implements OpenCloseComponent, LoadableComponent, T9nComponen * When `true`, shows a default recommended icon. Alternatively, * pass a Calcite UI Icon name to display a specific icon. */ - @Prop({ reflect: true }) icon: IconName | boolean; + @Prop({ reflect: true }) icon: string | boolean; /** When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */ @Prop({ reflect: true }) iconFlipRtl = false; @@ -309,7 +308,7 @@ export class Alert implements OpenCloseComponent, LoadableComponent, T9nComponen ); } - private renderIcon(icon: IconName): VNode { + private renderIcon(icon: string): VNode { return (