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 1859b78568b..7445518e506 100644 --- a/packages/calcite-components/package.json +++ b/packages/calcite-components/package.json @@ -61,7 +61,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", @@ -77,6 +76,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 346aed4f24b..38c607b81f5 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 { ActionMessages } from "./components/action/assets/action/t9n"; import { FlipPlacement, LogicalPlacement, MenuPlacement, OverlayPositioning, ReferenceElement } from "./utils/floating-ui"; @@ -103,7 +102,6 @@ import { ValueListMessages } from "./components/value-list/assets/value-list/t9n 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 { ActionMessages } from "./components/action/assets/action/t9n"; export { FlipPlacement, LogicalPlacement, MenuPlacement, OverlayPositioning, ReferenceElement } from "./utils/floating-ui"; @@ -243,7 +241,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"`). */ @@ -255,7 +253,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`. */ @@ -294,7 +292,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"`). */ @@ -525,7 +523,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"`). */ @@ -624,7 +622,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"`). */ @@ -632,7 +630,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. */ @@ -667,7 +665,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"`). */ @@ -675,7 +673,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. */ @@ -737,7 +735,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"`). */ @@ -745,7 +743,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. */ @@ -1021,7 +1019,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"`). */ @@ -1299,7 +1297,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"`). */ @@ -1349,7 +1347,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. */ @@ -1397,7 +1395,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"`). */ @@ -1830,7 +1828,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"`). */ @@ -1838,7 +1836,7 @@ export namespace Components { /** * Specifies an icon to display at the start of the component. */ - "iconStart": IconName; + "iconStart": string; /** * Accessible name for the component. */ @@ -1881,7 +1879,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"`). */ @@ -2133,7 +2131,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. */ @@ -2232,7 +2230,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"`). */ @@ -2370,7 +2368,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. */ @@ -2494,7 +2492,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. */ @@ -2518,7 +2516,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"`). */ @@ -2574,7 +2572,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"`). */ @@ -2689,7 +2687,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. */ @@ -2743,7 +2741,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"`). */ @@ -2830,7 +2828,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. */ @@ -2930,7 +2928,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. */ @@ -3018,7 +3016,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. */ @@ -3069,7 +3067,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"`). */ @@ -3077,7 +3075,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`. */ @@ -3358,7 +3356,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"`). */ @@ -3366,7 +3364,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. @@ -3597,7 +3595,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"`). */ @@ -3667,7 +3665,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"`). */ @@ -4195,7 +4193,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. */ @@ -4314,7 +4312,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. */ @@ -4346,7 +4344,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"`). */ @@ -4354,7 +4352,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`. */ @@ -4409,7 +4407,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. */ @@ -4757,7 +4755,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"`). */ @@ -4765,7 +4763,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. */ @@ -5025,7 +5023,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"`). */ @@ -5033,7 +5031,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. @@ -5361,7 +5359,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. */ @@ -5416,7 +5414,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"`). */ @@ -5518,7 +5516,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"`). */ @@ -5746,7 +5744,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. */ @@ -8131,7 +8129,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"`). */ @@ -8143,7 +8141,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`. */ @@ -8180,7 +8178,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"`). */ @@ -8399,7 +8397,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"`). */ @@ -8518,7 +8516,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"`). */ @@ -8526,7 +8524,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. */ @@ -8578,7 +8576,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"`). */ @@ -8586,7 +8584,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. */ @@ -8648,7 +8646,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"`). */ @@ -8656,7 +8654,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. */ @@ -8945,7 +8943,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"`). */ @@ -9262,7 +9260,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"`). */ @@ -9302,7 +9300,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. */ @@ -9350,7 +9348,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"`). */ @@ -9824,7 +9822,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"`). */ @@ -9832,7 +9830,7 @@ declare namespace LocalJSX { /** * Specifies an icon to display at the start of the component. */ - "iconStart"?: IconName; + "iconStart"?: string; /** * Accessible name for the component. */ @@ -9878,7 +9876,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"`). */ @@ -10124,7 +10122,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. */ @@ -10228,7 +10226,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"`). */ @@ -10368,7 +10366,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. */ @@ -10502,7 +10500,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. */ @@ -10526,7 +10524,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"`). */ @@ -10582,7 +10580,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"`). */ @@ -10699,7 +10697,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. */ @@ -10753,7 +10751,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"`). */ @@ -10845,7 +10843,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. */ @@ -10956,7 +10954,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. */ @@ -11063,7 +11061,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. */ @@ -11117,7 +11115,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"`). */ @@ -11125,7 +11123,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`. */ @@ -11441,7 +11439,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"`). */ @@ -11449,7 +11447,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. @@ -11683,7 +11681,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"`). */ @@ -11745,7 +11743,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"`). */ @@ -12303,7 +12301,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. */ @@ -12422,7 +12420,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. */ @@ -12454,7 +12452,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"`). */ @@ -12462,7 +12460,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`. */ @@ -12521,7 +12519,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. */ @@ -12895,7 +12893,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"`). */ @@ -12903,7 +12901,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. */ @@ -13141,7 +13139,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"`). */ @@ -13149,7 +13147,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. @@ -13502,7 +13500,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. */ @@ -13557,7 +13555,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"`). */ @@ -13664,7 +13662,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"`). */ @@ -13906,7 +13904,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 (