@canonical/react-ds-global 0.15.0 → 0.16.0-experimental.1

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.
@@ -6,7 +6,7 @@ const componentCssClassName = "ds icon";
6
6
  * @implements ds:global.component.icon
7
7
  */
8
8
  const Icon = ({ xmlns = "http://www.w3.org/2000/svg", viewBox = "0 0 16 16", icon, className, rootPath = "/icons", role = "img", ...props }) => {
9
- return (_jsx("svg", { xmlns: xmlns, viewBox: viewBox, className: [componentCssClassName, className].filter(Boolean).join(" "), role: role, ...props, children: _jsx("use", { href: `${rootPath}/${icon}.svg#${icon}` }) }));
9
+ return (_jsx("svg", { xmlns: xmlns, viewBox: viewBox, className: [componentCssClassName, className].filter(Boolean).join(" "), role: role, "aria-label": icon, ...props, children: _jsx("use", { href: `${rootPath}/${icon}.svg#${icon}` }) }));
10
10
  };
11
11
  export default Icon;
12
12
  //# sourceMappingURL=Icon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../../src/lib/Icon/Icon.tsx"],"names":[],"mappings":";AAGA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAExC;;;GAGG;AACH,MAAM,IAAI,GAAG,CAAC,EACZ,KAAK,GAAG,4BAA4B,EACpC,OAAO,GAAG,WAAW,EACrB,IAAI,EACJ,SAAS,EACT,QAAQ,GAAG,QAAQ,EACnB,IAAI,GAAG,KAAK,EACZ,GAAG,KAAK,EACE,EAAgB,EAAE;IAC5B,OAAO,CACL,cACE,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACvE,IAAI,EAAE,IAAI,KACN,KAAK,YAET,cAAK,IAAI,EAAE,GAAG,QAAQ,IAAI,IAAI,QAAQ,IAAI,EAAE,GAAI,GAC5C,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../../src/lib/Icon/Icon.tsx"],"names":[],"mappings":";AAEA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAExC;;;GAGG;AACH,MAAM,IAAI,GAAG,CAAC,EACZ,KAAK,GAAG,4BAA4B,EACpC,OAAO,GAAG,WAAW,EACrB,IAAI,EACJ,SAAS,EACT,QAAQ,GAAG,QAAQ,EACnB,IAAI,GAAG,KAAK,EACZ,GAAG,KAAK,EACE,EAAgB,EAAE;IAC5B,OAAO,CACL,cACE,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACvE,IAAI,EAAE,IAAI,gBACE,IAAI,KACZ,KAAK,YAET,cAAK,IAAI,EAAE,GAAG,QAAQ,IAAI,IAAI,QAAQ,IAAI,EAAE,GAAI,GAC5C,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -72,13 +72,6 @@
72
72
  visibility: visible;
73
73
  }
74
74
 
75
- &.autofit {
76
- &::before {
77
- transform: translateX(var(--tooltip-arrow-offset-left))
78
- translateY(var(--tooltip-arrow-offset-top));
79
- }
80
- }
81
-
82
75
  /* triangle */
83
76
  &::before {
84
77
  content: "";
@@ -88,6 +81,13 @@
88
81
  position: absolute;
89
82
  }
90
83
 
84
+ &.autofit {
85
+ &::before {
86
+ transform: translateX(var(--tooltip-arrow-offset-left))
87
+ translateY(var(--tooltip-arrow-offset-top));
88
+ }
89
+ }
90
+
91
91
  &.top::before {
92
92
  border-top: var(--tooltip-border-arrow-visible);
93
93
  bottom: var(--tooltip-spacing-arrow-edge);
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Icon/Icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAItB;;;GAGG;AACH,QAAA,MAAM,IAAI,GAAI,+DAQX,SAAS,KAAG,YAYd,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAItB;;;GAGG;AACH,QAAA,MAAM,IAAI,GAAI,+DAQX,SAAS,KAAG,YAad,CAAC;AAEF,eAAe,IAAI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonical/react-ds-global",
3
- "version": "0.15.0",
3
+ "version": "0.16.0-experimental.1",
4
4
  "type": "module",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -39,20 +39,20 @@
39
39
  "test:vitest:watch": "vitest"
40
40
  },
41
41
  "dependencies": {
42
- "@canonical/ds-assets": "^0.15.0",
43
- "@canonical/storybook-config": "^0.15.0",
44
- "@canonical/styles": "^0.15.0",
45
- "@canonical/utils": "^0.15.0",
42
+ "@canonical/ds-assets": "^0.16.0-experimental.1",
43
+ "@canonical/storybook-config": "^0.16.0-experimental.1",
44
+ "@canonical/styles": "^0.16.0-experimental.1",
45
+ "@canonical/utils": "^0.16.0-experimental.1",
46
46
  "react": "^19.2.4",
47
47
  "react-dom": "^19.2.4"
48
48
  },
49
49
  "devDependencies": {
50
- "@biomejs/biome": "2.3.14",
51
- "@canonical/biome-config": "^0.15.0",
52
- "@canonical/ds-types": "^0.15.0",
53
- "@canonical/storybook-helpers": "^0.15.0",
54
- "@canonical/typescript-config-react": "^0.15.0",
55
- "@canonical/webarchitect": "^0.15.0",
50
+ "@biomejs/biome": "2.4.5",
51
+ "@canonical/biome-config": "^0.16.0-experimental.1",
52
+ "@canonical/ds-types": "^0.16.0-experimental.1",
53
+ "@canonical/storybook-helpers": "^0.16.0-experimental.1",
54
+ "@canonical/typescript-config-react": "^0.16.0-experimental.1",
55
+ "@canonical/webarchitect": "^0.16.0-experimental.1",
56
56
  "@chromatic-com/storybook": "^5.0.1",
57
57
  "@storybook/addon-docs": "^10.2.8",
58
58
  "@storybook/react-vite": "^10.2.8",
@@ -71,5 +71,5 @@
71
71
  "vite-tsconfig-paths": "^6.1.0",
72
72
  "vitest": "^4.0.18"
73
73
  },
74
- "gitHead": "60c6f6f355d4a80ce110d8dd44c429695301ad86"
74
+ "gitHead": "b29a336dd55f28373a36fe4736f547296c734c3c"
75
75
  }