@ultraviolet/icons 5.1.6 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,11 @@
1
1
  import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
2
+ import { init_themes_css_js_vanilla } from "../../themes/dist/vanilla/themes.css.js.vanilla.js";
2
3
  import { init_style_css_ts_vanilla } from "./style.css.ts.vanilla.js";
3
4
 
4
5
  //#region src/components/Flags/style.css.ts
5
6
  var flag;
6
7
  var init_style_css = __esmMin(() => {
8
+ init_themes_css_js_vanilla();
7
9
  init_style_css_ts_vanilla();
8
10
  flag = {
9
11
  large: "uv_icons_1q2vtpp0",
@@ -11,7 +11,7 @@ export type IconProps = {
11
11
  disabled?: boolean;
12
12
  children: ReactNode;
13
13
  title: string;
14
- } & Pick<SVGProps<SVGSVGElement>, 'className' | 'stroke' | 'cursor' | 'strokeWidth' | 'aria-label' | 'style'>;
14
+ } & Pick<SVGProps<SVGSVGElement>, 'className' | 'stroke' | 'cursor' | 'strokeWidth' | 'aria-label' | 'aria-hidden' | 'style'>;
15
15
  /**
16
16
  * Icon component is our set of system icons in the design system. All of them are SVGs.
17
17
  */
@@ -23,6 +23,6 @@ export declare const Icon: import("react").ForwardRefExoticComponent<{
23
23
  disabled?: boolean | undefined;
24
24
  children: ReactNode;
25
25
  title: string;
26
- } & Pick<SVGProps<SVGSVGElement>, "aria-label" | "className" | "cursor" | "stroke" | "strokeWidth" | "style"> & import("react").RefAttributes<SVGSVGElement>>;
26
+ } & Pick<SVGProps<SVGSVGElement>, "aria-hidden" | "aria-label" | "className" | "cursor" | "stroke" | "strokeWidth" | "style"> & import("react").RefAttributes<SVGSVGElement>>;
27
27
  export {};
28
28
  //# sourceMappingURL=Icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,E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AAA;IACjB,UAAU,CAAC,EAAE,eAAe,CAAA;IAC5B,SAAS,CAAC,EAAE,KAAK,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACd,GAAG,IAAI,CACN,QAAQ,CAAC,aAAa,CAAC,EACrB,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,aAAa,GACb,OAAO,CACV,CAAA;AAED;;GAEG;AAEH,eAAO,MAAM,IAAI;;;;;;;;6KAoDhB,CAAA"}
@@ -9,9 +9,10 @@ import { forwardRef } from "react";
9
9
  var Icon;
10
10
  var init_Icon = __esmMin(() => {
11
11
  init_styles_css();
12
- Icon = forwardRef(({ sentiment, size = "small", prominence = "default", className, "data-testid": dataTestId, stroke, cursor, strokeWidth, disabled, "aria-label": ariaLabel, children, style, title }, ref) => {
12
+ Icon = forwardRef(({ sentiment, size = "small", prominence = "default", className, "data-testid": dataTestId, stroke, cursor, strokeWidth, disabled, "aria-label": ariaLabel, "aria-hidden": ariaHidden, children, style, title }, ref) => {
13
13
  const defaultHW = typeof size === "string" && ["xsmall", "small"].includes(size) ? "16" : "20";
14
14
  return /* @__PURE__ */ jsxs("svg", {
15
+ "aria-hidden": ariaHidden,
15
16
  "aria-label": ariaLabel,
16
17
  className: cn(className, icon({
17
18
  disabled,
@@ -1,11 +1,9 @@
1
1
  import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
2
- import { init_themes_css_js_vanilla } from "../../themes/dist/vanilla/themes.css.js.vanilla.js";
3
2
  import { init_style_css_ts_vanilla } from "./style.css.ts.vanilla.js";
4
3
 
5
4
  //#region src/components/Logo/style.css.ts
6
5
  var logo;
7
6
  var init_style_css = __esmMin(() => {
8
- init_themes_css_js_vanilla();
9
7
  init_style_css_ts_vanilla();
10
8
  logo = {
11
9
  large: "uv_icons_1739vf20",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultraviolet/icons",
3
- "version": "5.1.6",
3
+ "version": "5.2.0",
4
4
  "description": "Ultraviolet Icons",
5
5
  "homepage": "https://github.com/scaleway/ultraviolet#readme",
6
6
  "repository": {