@crewlethq/icons 0.37.0 → 0.38.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.
package/README.md CHANGED
@@ -72,7 +72,7 @@ import { VendorMark } from '@crewlethq/icons';
72
72
 
73
73
  | Prop | Type | Default | Purpose |
74
74
  | ---- | ---- | ------- | ------- |
75
- | `vendor` | `Vendor`: `'atlassian' \| 'clickup' \| 'datadog' \| 'discord' \| 'figma' \| 'github' \| 'gitlab' \| 'mattermost' \| 'microsoft-teams' \| 'notion' \| 'slack' \| 'telegram'` | required | Which mark. |
75
+ | `vendor` | `Vendor`: `'atlassian' \| 'clickup' \| 'crewlet' \| 'datadog' \| 'discord' \| 'figma' \| 'github' \| 'gitlab' \| 'mattermost' \| 'microsoft-teams' \| 'notion' \| 'slack' \| 'telegram'` | required | Which mark. |
76
76
  | `size` | as `Glyph` | `'1em'` | How big it draws. |
77
77
  | `title` | string | none | Names the mark. Without one it is `aria-hidden`. |
78
78
  | `muted` | boolean | `false` | Drains the colour, for an application that is available but not connected. |
@@ -81,7 +81,9 @@ import { VendorMark } from '@crewlethq/icons';
81
81
 
82
82
  GitHub's and Notion's marks are monochrome by design and take the current text colour, so they read on either theme. That is each vendor's own instruction rather than an exemption: both publish one mark, black on a light ground and white on a dark one, so a fixed hex would be wrong in one theme whichever was picked.
83
83
 
84
- A mark keeps its own viewBox, so one that is not square (Figma's is 2:3) is drawn to fit the square `size` and centred in it, at the aspect ratio the vendor draws.
84
+ **`crewlet` is Crewlet's own mark**, for the services built into it (its tracker, its knowledge base) where a catalogue lists them beside the third-party apps they stand in for. It is drawn from the brand mark the package already carries (`svg/crewlet-icon.svg`, `CrewletIcon`), not a second copy, and takes the same `size` and `muted` as any other vendor.
85
+
86
+ A mark keeps its own viewBox, so one that is not square (Figma's is 2:3) is drawn to fit the square `size` and centred in it, at the aspect ratio the vendor draws. Every drawing fills its viewBox edge to edge, so the marks in a catalogue stand at one weight: GitLab's is cropped to its logo (its press-kit file framed the logo in twice its own width, and drew at half the size of every mark beside it), and Crewlet's is the brand mark framed in the square its own extent fits rather than in the wide file's artwork margins, so it draws the slot's full width.
85
87
 
86
88
  The marks and the terms on which they may be used are in [`TRADEMARKS.md`](./TRADEMARKS.md), which ships in the package. The Mattermost, Datadog, Notion, Discord, ClickUp, Telegram and Microsoft Teams drawings are Simple Icons' renderings, whose path data is CC0 1.0.
87
89
 
package/dist/index.d.ts CHANGED
@@ -72,8 +72,8 @@ interface CrewletFigureProps extends SVGProps<SVGSVGElement> {
72
72
  }
73
73
  declare const CrewletFigure: ({ motion, delay, color, fillGaps, className, style, ...rest }: CrewletFigureProps) => react.JSX.Element;
74
74
 
75
- /** The apps this package carries a mark for. */
76
- declare const VENDORS: readonly ["atlassian", "clickup", "datadog", "discord", "figma", "github", "gitlab", "mattermost", "microsoft-teams", "notion", "slack", "telegram"];
75
+ /** The apps this package carries a mark for, Crewlet's own services among them. */
76
+ declare const VENDORS: readonly ["atlassian", "clickup", "crewlet", "datadog", "discord", "figma", "github", "gitlab", "mattermost", "microsoft-teams", "notion", "slack", "telegram"];
77
77
  type Vendor = (typeof VENDORS)[number];
78
78
  interface VendorMarkProps extends Omit<SVGProps<SVGSVGElement>, 'title'> {
79
79
  vendor: Vendor;
package/dist/index.js CHANGED
@@ -424,7 +424,7 @@ var Figma = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2
424
424
  var Figma_default = Figma;
425
425
  var Github = (props) => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 24 24", width: "1em", height: "1em", "aria-hidden": "true", focusable: "false", ...props, children: /* @__PURE__ */ jsx("path", { d: "M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.5 11.5 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12" }) });
426
426
  var Github_default = Github;
427
- var Gitlab = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 380 380", width: "1em", height: "1em", "aria-hidden": "true", focusable: "false", ...props, children: [
427
+ var Gitlab = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "94 94 192 192", width: "1em", height: "1em", "aria-hidden": "true", focusable: "false", ...props, children: [
428
428
  /* @__PURE__ */ jsx("path", { fill: "#E24329", d: "m282.83 170.73-.27-.69-26.14-68.22a6.8 6.8 0 0 0-2.69-3.24 7 7 0 0 0-8 .43 7 7 0 0 0-2.32 3.52l-17.65 54h-71.47l-17.65-54a6.86 6.86 0 0 0-2.32-3.53 7 7 0 0 0-8-.43 6.87 6.87 0 0 0-2.69 3.24L97.44 170l-.26.69a48.54 48.54 0 0 0 16.1 56.1l.09.07.24.17 39.82 29.82 19.7 14.91 12 9.06a8.07 8.07 0 0 0 9.76 0l12-9.06 19.7-14.91 40.06-30 .1-.08a48.56 48.56 0 0 0 16.08-56.04" }),
429
429
  /* @__PURE__ */ jsx("path", { fill: "#FC6D26", d: "m282.83 170.73-.27-.69a88.3 88.3 0 0 0-35.15 15.8L190 229.25c19.55 14.79 36.57 27.64 36.57 27.64l40.06-30 .1-.08a48.56 48.56 0 0 0 16.1-56.08" }),
430
430
  /* @__PURE__ */ jsx("path", { fill: "#FCA326", d: "m153.43 256.89 19.7 14.91 12 9.06a8.07 8.07 0 0 0 9.76 0l12-9.06 19.7-14.91S209.55 244 190 229.25c-19.55 14.75-36.57 27.64-36.57 27.64" }),
@@ -449,6 +449,7 @@ var Telegram_default = Telegram;
449
449
  var VENDORS = [
450
450
  "atlassian",
451
451
  "clickup",
452
+ "crewlet",
452
453
  "datadog",
453
454
  "discord",
454
455
  "figma",
@@ -463,6 +464,7 @@ var VENDORS = [
463
464
  var drawings = {
464
465
  atlassian: Atlassian_default,
465
466
  clickup: Clickup_default,
467
+ crewlet: CrewletIcon_default,
466
468
  datadog: Datadog_default,
467
469
  discord: Discord_default,
468
470
  figma: Figma_default,
@@ -474,14 +476,28 @@ var drawings = {
474
476
  slack: Slack_default,
475
477
  telegram: Telegram_default
476
478
  };
479
+ var FRAMES = {
480
+ crewlet: "110 -107 1280 1280"
481
+ };
477
482
  function VendorMark({ vendor, size, title, muted = false, className, ...rest }) {
478
483
  const Drawing = drawings[vendor];
484
+ const frame = FRAMES[vendor];
479
485
  const dimension = cssLength(size);
480
486
  const semantics = title ? { role: "img", "aria-label": title, "aria-hidden": void 0, focusable: "false" } : { "aria-hidden": true, focusable: "false" };
481
487
  const classes = ["crewlet-vendor-mark"];
482
488
  if (muted) classes.push("crewlet-vendor-mark--muted");
483
489
  if (className !== void 0) classes.push(className);
484
- return /* @__PURE__ */ jsx(Drawing, { width: dimension, height: dimension, ...semantics, className: classes.join(" "), ...rest });
490
+ return /* @__PURE__ */ jsx(
491
+ Drawing,
492
+ {
493
+ width: dimension,
494
+ height: dimension,
495
+ ...frame === void 0 ? null : { viewBox: frame },
496
+ ...semantics,
497
+ className: classes.join(" "),
498
+ ...rest
499
+ }
500
+ );
485
501
  }
486
502
 
487
503
  // src/generated/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/icons",
3
- "version": "0.37.0",
3
+ "version": "0.38.0",
4
4
  "description": "Crewlet signature illustrated icons, vendor marks, and the Lucide glyph set as React components.",
5
5
  "license": "MIT AND ISC",
6
6
  "repository": {
@@ -1,4 +1,4 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 380 380" fill="none">
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="94 94 192 192" fill="none">
2
2
  <path fill="#E24329" d="M282.83 170.73l-.27-.69-26.14-68.22a6.81 6.81 0 00-2.69-3.24 7 7 0 00-8 .43 7 7 0 00-2.32 3.52l-17.65 54h-71.47l-17.65-54a6.86 6.86 0 00-2.32-3.53 7 7 0 00-8-.43 6.87 6.87 0 00-2.69 3.24L97.44 170l-.26.69a48.54 48.54 0 0016.1 56.1l.09.07.24.17 39.82 29.82 19.7 14.91 12 9.06a8.07 8.07 0 009.76 0l12-9.06 19.7-14.91 40.06-30 .1-.08a48.56 48.56 0 0016.08-56.04z"/>
3
3
  <path fill="#FC6D26" d="M282.83 170.73l-.27-.69a88.3 88.3 0 00-35.15 15.8L190 229.25c19.55 14.79 36.57 27.64 36.57 27.64l40.06-30 .1-.08a48.56 48.56 0 0016.1-56.08z"/>
4
4
  <path fill="#FCA326" d="M153.43 256.89l19.7 14.91 12 9.06a8.07 8.07 0 009.76 0l12-9.06 19.7-14.91S209.55 244 190 229.25c-19.55 14.75-36.57 27.64-36.57 27.64z"/>