@techbykyle/svg-logo 0.2.9 → 0.3.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.
package/BRAND_ASSETS.md CHANGED
@@ -8,6 +8,15 @@ Records classified as `trademark` should be treated as identification assets bel
8
8
 
9
9
  Records classified as `project-owned` identify artwork controlled by the package maintainer or the named project. Their inclusion does not transfer ownership or create a separate trademark license.
10
10
 
11
+ ## Newly added in 0.3.1
12
+
13
+ | Export | Source basis | Treatment | Classification |
14
+ | --- | --- | --- | --- |
15
+ | `Ubuntu` | Canonical's official standalone [Circle of Friends SVG](https://assets.ubuntu.com/v1/82818827-CoF_white.svg), used on [ubuntu.com](https://ubuntu.com/) | All three circle elements and three vector paths retained exactly. The 60.45×57.87 canvas is centered in a square `0 -1.29 60.45 60.45` view box; fixed white fills are omitted so the mark inherits `currentColor`. Transparent background; no extended orange tag or wordmark. | `trademark` |
16
+ | `Canonical` | Same official Ubuntu Circle of Friends SVG | Identical square geometry and monochrome treatment, exposed under a separate identifier at the maintainer's request. This is a package-provided alias for the Ubuntu mark, not Canonical's separate corporate wordmark. | `trademark` |
17
+
18
+ These are package-provided UI treatments derived from the official standalone vector asset. Brand resources are available from [Canonical Design](https://design.ubuntu.com/resources).
19
+
11
20
  ## Newly added in 0.2.9
12
21
 
13
22
  | Export | Source basis | Treatment | Classification |
package/README.md CHANGED
@@ -36,7 +36,7 @@ Use `LoadLogo` when an icon identifier is selected at runtime. It accepts the ex
36
36
  import LoadLogo from '@techbykyle/svg-logo'
37
37
 
38
38
  export function BrandLogo({ brand }) {
39
- return <LoadLogo iconPath={brand} size={48} />
39
+ return <LoadLogo iconPath={brand} width={48} />
40
40
  }
41
41
  ```
42
42
 
@@ -49,7 +49,14 @@ export function BrandLogo({ brand }) {
49
49
 
50
50
  ## Component API
51
51
 
52
- Every icon forwards its ref to the root `<svg>` and accepts standard SVG properties, including `width`, `height`, `fill`, `color`, `className`, `style`, ARIA attributes, event handlers, and `data-*` attributes. `size` sets both dimensions unless one is supplied explicitly.
52
+ Every icon forwards its ref to the root `<svg>` and accepts standard SVG properties, including `width`, `height`, `fill`, `color`, `className`, `style`, ARIA attributes, event handlers, and `data-*` attributes. `size` sets both dimensions to the same value for backwards compatibility. When `size` is omitted, a logo with only `width` or only `height` uses the SVG's intrinsic aspect ratio for the other dimension. Logos without explicit dimensions also use that ratio when needed. Pass both `width` and `height` to override it explicitly.
53
+
54
+ ```jsx
55
+ <GrokKFull width={160} /> // 160 × 62.5
56
+ <Aqara height={28} /> // 96 × 28
57
+ ```
58
+
59
+ You can inspect the source geometry through `Icon.metadata.viewBox` and `Icon.metadata.aspectRatio`.
53
60
 
54
61
  Icons are decorative by default and render with `aria-hidden="true"`. Supply `title`, `titleAccess`, `aria-label`, `aria-labelledby`, `role="img"`, or `aria-hidden={false}` when the SVG itself conveys meaning:
55
62
 
@@ -128,6 +135,7 @@ Raw metadata is available at `@techbykyle/svg-logo/metadata.json`. Every icon co
128
135
  | `Anthropic` | `anthropic` | logomark | monochrome | trademark |
129
136
  | `Apple` | `apple` | logo | monochrome | trademark |
130
137
  | `Aqara` | `aqara` | logo | monochrome | trademark |
138
+ | `Canonical` | `canonical` | logomark | monochrome | trademark |
131
139
  | `Cisco` | `cisco` | logo | monochrome | trademark |
132
140
  | `ClaudeCode` | `claude-code` | logomark | fixed-color | trademark |
133
141
  | `ClaudeCodeMonochrome` | `claude-code-monochrome` | logomark | monochrome | trademark |
@@ -158,6 +166,7 @@ Raw metadata is available at `@techbykyle/svg-logo/metadata.json`. Every icon co
158
166
  | `Samsung` | `samsung` | logo | monochrome | trademark |
159
167
  | `Shelly` | `shelly` | logo | monochrome | trademark |
160
168
  | `Ubiquiti` | `ubiquiti` | logo | monochrome | trademark |
169
+ | `Ubuntu` | `ubuntu` | logomark | monochrome | trademark |
161
170
  | `VsCode` | `visual-studio-code` | logo | monochrome | trademark |
162
171
  | `Wellcube` | `wellcube` | logo | monochrome | trademark |
163
172
  | `XAI` | `xai` | logomark | fixed-color | trademark |
@@ -166,6 +175,8 @@ Raw metadata is available at `@techbykyle/svg-logo/metadata.json`. Every icon co
166
175
 
167
176
  `Grok` is the standalone mark. The full supplied mark is exported with the exact requested name `GrokKFull`.
168
177
 
178
+ `Ubuntu` and `Canonical` use the same official standalone Ubuntu Circle of Friends geometry on a transparent square canvas, without the extended orange tag or wordmark. Both inherit `currentColor`. `Canonical` is a package-provided identifier for the Ubuntu mark, not Canonical's separate corporate wordmark.
179
+
169
180
  `ClaudeCode` uses Anthropic's official Claude Spark (Clay) press-kit asset as the Claude Code product identifier; it is not a separate Claude Code wordmark.
170
181
 
171
182
  `ClaudeCodeMonochrome` preserves the same Claude Spark view box and path geometry while inheriting `currentColor` for uniform provider-icon systems.
@@ -6,6 +6,7 @@ const Amazon = require('./icons/Amazon.js')
6
6
  const Anthropic = require('./icons/Anthropic.js')
7
7
  const Apple = require('./icons/Apple.js')
8
8
  const Aqara = require('./icons/Aqara.js')
9
+ const Canonical = require('./icons/Canonical.js')
9
10
  const Cisco = require('./icons/Cisco.js')
10
11
  const ClaudeCode = require('./icons/ClaudeCode.js')
11
12
  const ClaudeCodeMonochrome = require('./icons/ClaudeCodeMonochrome.js')
@@ -36,6 +37,7 @@ const Reolink = require('./icons/Reolink.js')
36
37
  const Samsung = require('./icons/Samsung.js')
37
38
  const Shelly = require('./icons/Shelly.js')
38
39
  const Ubiquiti = require('./icons/Ubiquiti.js')
40
+ const Ubuntu = require('./icons/Ubuntu.js')
39
41
  const VsCode = require('./icons/VsCode.js')
40
42
  const Wellcube = require('./icons/Wellcube.js')
41
43
  const XAI = require('./icons/XAI.js')
@@ -48,6 +50,7 @@ const iconMap = Object.freeze({
48
50
  Anthropic,
49
51
  Apple,
50
52
  Aqara,
53
+ Canonical,
51
54
  Cisco,
52
55
  ClaudeCode,
53
56
  ClaudeCodeMonochrome,
@@ -78,6 +81,7 @@ const iconMap = Object.freeze({
78
81
  Samsung,
79
82
  Shelly,
80
83
  Ubiquiti,
84
+ Ubuntu,
81
85
  VsCode,
82
86
  Wellcube,
83
87
  XAI,
@@ -91,6 +95,7 @@ const iconMapBySlug = Object.freeze({
91
95
  "anthropic": Anthropic,
92
96
  "apple": Apple,
93
97
  "aqara": Aqara,
98
+ "canonical": Canonical,
94
99
  "cisco": Cisco,
95
100
  "claude-code": ClaudeCode,
96
101
  "claude-code-monochrome": ClaudeCodeMonochrome,
@@ -121,6 +126,7 @@ const iconMapBySlug = Object.freeze({
121
126
  "samsung": Samsung,
122
127
  "shelly": Shelly,
123
128
  "ubiquiti": Ubiquiti,
129
+ "ubuntu": Ubuntu,
124
130
  "visual-studio-code": VsCode,
125
131
  "wellcube": Wellcube,
126
132
  "xai": XAI,
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ // Ubuntu Circle of Friends exposed as the requested Canonical UI identifier.
11
+ var Canonical = function Canonical(_ref) {
12
+ var _ref$fill = _ref.fill,
13
+ fill = _ref$fill === void 0 ? {} : _ref$fill,
14
+ _ref$w = _ref.w,
15
+ w = _ref$w === void 0 ? 45 : _ref$w,
16
+ _ref$h = _ref.h,
17
+ h = _ref$h === void 0 ? 45 : _ref$h,
18
+ _ref$title = _ref.title,
19
+ title = _ref$title === void 0 ? 'Canonical' : _ref$title;
20
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
21
+ style: fill,
22
+ role: "img",
23
+ viewBox: "0 -1.29 60.45 60.45",
24
+ xmlns: "http://www.w3.org/2000/svg",
25
+ width: w,
26
+ height: h,
27
+ preserveAspectRatio: "xMidYMid meet",
28
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("title", {
29
+ children: title
30
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
31
+ cx: "9.66",
32
+ cy: "27.41",
33
+ r: "8.12"
34
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
35
+ cx: "43.48",
36
+ cy: "9.61",
37
+ r: "8.12"
38
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
39
+ d: "M7.34,38.71A26.67,26.67,0,0,0,32.58,55.55a11.47,11.47,0,0,1-2.49-7Q29,48.4,28,48.19A19.62,19.62,0,0,1,14.55,37.83,11.49,11.49,0,0,1,7.34,38.71Z"
40
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
41
+ cx: "41.65",
42
+ cy: "48.35",
43
+ r: "8.12"
44
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
45
+ d: "M48.9,39.31a11.58,11.58,0,0,1,4,6.25,26.64,26.64,0,0,0,1.36-31.63,11.47,11.47,0,0,1-4.7,5.54A19.73,19.73,0,0,1,48.9,39.31Z"
46
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
47
+ d: "M9.68,15.85a11.44,11.44,0,0,1,2.4.25,11.72,11.72,0,0,1,3.77,1.54,19.73,19.73,0,0,1,16-8.56,12.15,12.15,0,0,1,.22-1.9h0a11.75,11.75,0,0,1,2.34-4.89A26.9,26.9,0,0,0,8.82,15.88C9.11,15.86,9.39,15.85,9.68,15.85Z"
48
+ })]
49
+ });
50
+ };
51
+ var _default = exports["default"] = Canonical;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ // Official standalone Circle of Friends; square canvas and inherited fill for UI use.
11
+ var Ubuntu = function Ubuntu(_ref) {
12
+ var _ref$fill = _ref.fill,
13
+ fill = _ref$fill === void 0 ? {} : _ref$fill,
14
+ _ref$w = _ref.w,
15
+ w = _ref$w === void 0 ? 45 : _ref$w,
16
+ _ref$h = _ref.h,
17
+ h = _ref$h === void 0 ? 45 : _ref$h,
18
+ _ref$title = _ref.title,
19
+ title = _ref$title === void 0 ? 'Ubuntu' : _ref$title;
20
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
21
+ style: fill,
22
+ role: "img",
23
+ viewBox: "0 -1.29 60.45 60.45",
24
+ xmlns: "http://www.w3.org/2000/svg",
25
+ width: w,
26
+ height: h,
27
+ preserveAspectRatio: "xMidYMid meet",
28
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("title", {
29
+ children: title
30
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
31
+ cx: "9.66",
32
+ cy: "27.41",
33
+ r: "8.12"
34
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
35
+ cx: "43.48",
36
+ cy: "9.61",
37
+ r: "8.12"
38
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
39
+ d: "M7.34,38.71A26.67,26.67,0,0,0,32.58,55.55a11.47,11.47,0,0,1-2.49-7Q29,48.4,28,48.19A19.62,19.62,0,0,1,14.55,37.83,11.49,11.49,0,0,1,7.34,38.71Z"
40
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
41
+ cx: "41.65",
42
+ cy: "48.35",
43
+ r: "8.12"
44
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
45
+ d: "M48.9,39.31a11.58,11.58,0,0,1,4,6.25,26.64,26.64,0,0,0,1.36-31.63,11.47,11.47,0,0,1-4.7,5.54A19.73,19.73,0,0,1,48.9,39.31Z"
46
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
47
+ d: "M9.68,15.85a11.44,11.44,0,0,1,2.4.25,11.72,11.72,0,0,1,3.77,1.54,19.73,19.73,0,0,1,16-8.56,12.15,12.15,0,0,1,.22-1.9h0a11.75,11.75,0,0,1,2.34-4.89A26.9,26.9,0,0,0,8.82,15.88C9.11,15.86,9.39,15.85,9.68,15.85Z"
48
+ })]
49
+ });
50
+ };
51
+ var _default = exports["default"] = Ubuntu;
@@ -0,0 +1,11 @@
1
+ 'use strict'
2
+
3
+ const rawModule = require('../Logo/Canonical.js')
4
+ const { createLogoComponent } = require('../runtime.js')
5
+ const { iconMetadata } = require('../metadata.js')
6
+
7
+ const RawLogo = rawModule.default || rawModule
8
+ const Canonical = createLogoComponent(RawLogo, iconMetadata.Canonical)
9
+
10
+ module.exports = Canonical
11
+ module.exports.default = Canonical
@@ -0,0 +1,11 @@
1
+ 'use strict'
2
+
3
+ const rawModule = require('../Logo/Ubuntu.js')
4
+ const { createLogoComponent } = require('../runtime.js')
5
+ const { iconMetadata } = require('../metadata.js')
6
+
7
+ const RawLogo = rawModule.default || rawModule
8
+ const Ubuntu = createLogoComponent(RawLogo, iconMetadata.Ubuntu)
9
+
10
+ module.exports = Ubuntu
11
+ module.exports.default = Ubuntu
package/dist/cjs/index.js CHANGED
@@ -12,6 +12,7 @@ module.exports.Amazon = require('./icons/Amazon.js')
12
12
  module.exports.Anthropic = require('./icons/Anthropic.js')
13
13
  module.exports.Apple = require('./icons/Apple.js')
14
14
  module.exports.Aqara = require('./icons/Aqara.js')
15
+ module.exports.Canonical = require('./icons/Canonical.js')
15
16
  module.exports.Cisco = require('./icons/Cisco.js')
16
17
  module.exports.ClaudeCode = require('./icons/ClaudeCode.js')
17
18
  module.exports.ClaudeCodeMonochrome = require('./icons/ClaudeCodeMonochrome.js')
@@ -42,6 +43,7 @@ module.exports.Reolink = require('./icons/Reolink.js')
42
43
  module.exports.Samsung = require('./icons/Samsung.js')
43
44
  module.exports.Shelly = require('./icons/Shelly.js')
44
45
  module.exports.Ubiquiti = require('./icons/Ubiquiti.js')
46
+ module.exports.Ubuntu = require('./icons/Ubuntu.js')
45
47
  module.exports.VsCode = require('./icons/VsCode.js')
46
48
  module.exports.Wellcube = require('./icons/Wellcube.js')
47
49
  module.exports.XAI = require('./icons/XAI.js')