@crewlethq/icons 0.42.0 → 0.43.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
@@ -89,6 +89,24 @@ The marks and the terms on which they may be used are in [`TRADEMARKS.md`](./TRA
89
89
 
90
90
  `VENDORS` lists every mark the package carries.
91
91
 
92
+ ## Product marks
93
+
94
+ ```tsx
95
+ import { ProductMark } from '@crewlethq/icons';
96
+
97
+ <ProductMark product="works" size={24} />
98
+ <ProductMark product="chat" size={24} soon />
99
+ ```
100
+
101
+ | Prop | Type | Default | Purpose |
102
+ | ---- | ---- | ------- | ------- |
103
+ | `product` | `Product`: `'works' \| 'knowledge' \| 'chat'` | required | Which of Crewlet's own products. |
104
+ | `size` | as `Glyph` | `'1em'` | How big it draws. |
105
+ | `title` | string | none | Names the mark. Without one it is `aria-hidden`. |
106
+ | `soon` | boolean | `false` | Draws a product that has not shipped hollow: a faint violet body under a violet keyline and face. Never grey, which is how a vendor mark says "not connected". |
107
+
108
+ The three services built into Crewlet each have a mark of their own, drawn from the brand mark's construction. All three stand on one tile, the crewmate head's octagon with its 45 degree chamfers on the 48 grid, in the brand violet (`#7c56ff`) with a deeper lower facet (`#5c24ff`), inset two units so its weight sits beside a vendor mark's. One white figure on each tells them apart, drawn on the 6 unit grid so its edges land on whole pixels at 16, 24 and 48: **Works** (projects and tasks) is a task list, one task ticked and one open; **Knowledge** (spaces and pages) is an open book with its lines of text; **Chat** (talking with agents) is the crewmate's two eyes in a speech bubble. The sources are `svg/product/*.svg`, exported as `@crewlethq/icons/svg/product/*.svg`. `PRODUCTS` lists them.
109
+
92
110
  ## Signature illustrations
93
111
 
94
112
  ```tsx
@@ -0,0 +1,41 @@
1
+ /*
2
+ * A product mark draws the brand's own violet, so it reads the same in both
3
+ * themes: the brand mark's colours are its identity, as a vendor's are.
4
+ *
5
+ * SOON IS HOLLOW, NOT GREY. The body keeps a faint violet tint, and its keyline
6
+ * and face are drawn in the violet itself, so a product that has not shipped
7
+ * is still unmistakably Crewlet's and never reads as a disconnected app.
8
+ */
9
+
10
+ .crewlet-product-mark {
11
+ display: inline-block;
12
+ flex: none;
13
+ vertical-align: middle;
14
+ }
15
+
16
+ .crewlet-product-mark--soon [data-part='body'] {
17
+ fill-opacity: 0.16;
18
+ }
19
+
20
+ .crewlet-product-mark--soon [data-part='shade'] {
21
+ fill-opacity: 0.32;
22
+ }
23
+
24
+ .crewlet-product-mark--soon [data-part='detail'] {
25
+ fill: #7c56ff;
26
+ }
27
+
28
+ .crewlet-product-mark--soon [data-part='dim'] {
29
+ fill: #7c56ff;
30
+ fill-opacity: 0.4;
31
+ }
32
+
33
+ .crewlet-product-mark--soon [data-part='eye'] {
34
+ fill: #ffffff;
35
+ }
36
+
37
+ @media (forced-colors: active) {
38
+ .crewlet-product-mark--soon {
39
+ opacity: 0.5;
40
+ }
41
+ }
package/dist/index.d.ts CHANGED
@@ -89,5 +89,38 @@ interface VendorMarkProps extends Omit<SVGProps<SVGSVGElement>, 'title'> {
89
89
  }
90
90
  declare function VendorMark({ vendor, size, title, muted, className, ...rest }: VendorMarkProps): react.JSX.Element;
91
91
 
92
- export { AgentError, AgentGreeting, AgentIdle, AgentLoading, AgentReading, AgentSuccess, AgentThinking, AgentWorking, CodeSandbox, CompanyAsCode, CrewletFigure, CrewletIcon, CrewletReading, Hierarchy, HumanInLoop, ICON_NAMES, Icon, Knowledge, TurnEngine, VENDORS, VendorMark };
93
- export type { CrewletFigureProps, CrewletMotion, IconName, IconProps, IconSize, Vendor, VendorMarkProps };
92
+ /** Crewlet's own products, each with a mark of its own. */
93
+ declare const PRODUCTS: readonly ["works", "knowledge", "chat"];
94
+ type Product = (typeof PRODUCTS)[number];
95
+ interface ProductMarkProps extends Omit<SVGProps<SVGSVGElement>, 'title'> {
96
+ product: Product;
97
+ size?: GlyphSize;
98
+ /** Names the mark. Without one it is `aria-hidden`. */
99
+ title?: string;
100
+ /**
101
+ * A product that has not shipped yet: the mark is drawn hollow, its
102
+ * outline and face in the brand violet over a faint tint of it. Never grey,
103
+ * which is how a catalogue says "available but not connected" about a
104
+ * vendor, a different fact.
105
+ */
106
+ soon?: boolean;
107
+ }
108
+ /**
109
+ * The mark of one of Crewlet's own products: Works (projects and tasks),
110
+ * Knowledge (spaces and pages) and Chat (talking with agents).
111
+ *
112
+ * ONE FAMILY WITH THE BRAND MARK. Each stands on the same tile: the crewmate
113
+ * head's octagon, chamfered at 45 degrees on the 48 grid, in the brand violet
114
+ * with a deeper lower facet for the brand mark's depth. What tells them apart
115
+ * is one white figure each, drawn on the 6 unit grid so its edges land on
116
+ * whole pixels at 16, 24 and 48: a task list (Works, one task ticked and one
117
+ * open), an open book with its lines of text (Knowledge), and the crewmate's
118
+ * two eyes in a speech bubble (Chat).
119
+ *
120
+ * Sized like a glyph and drawn edge to edge in its square, so it stands at the
121
+ * weight of the vendor marks a catalogue sets beside it.
122
+ */
123
+ declare function ProductMark({ product, size, title, soon, className, ...rest }: ProductMarkProps): react.JSX.Element;
124
+
125
+ export { AgentError, AgentGreeting, AgentIdle, AgentLoading, AgentReading, AgentSuccess, AgentThinking, AgentWorking, CodeSandbox, CompanyAsCode, CrewletFigure, CrewletIcon, CrewletReading, Hierarchy, HumanInLoop, ICON_NAMES, Icon, Knowledge, PRODUCTS, ProductMark, TurnEngine, VENDORS, VendorMark };
126
+ export type { CrewletFigureProps, CrewletMotion, IconName, IconProps, IconSize, Product, ProductMarkProps, Vendor, VendorMarkProps };
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@ import { cssLength } from './chunk-TOSJN7HA.js';
3
3
  import { jsxs, jsx } from 'react/jsx-runtime';
4
4
  import './CrewletFigure-4PMMCAFG.css';
5
5
  import './VendorMark-AGZRLMVT.css';
6
+ import './ProductMark-7G2NG3XS.css';
6
7
 
7
8
  var AgentError = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.6, viewBox: "0 0 32 32", width: "1em", height: "1em", "aria-hidden": "true", focusable: "false", ...props, children: [
8
9
  /* @__PURE__ */ jsx("circle", { cx: 14, cy: 11, r: 4 }),
@@ -499,8 +500,47 @@ function VendorMark({ vendor, size, title, muted = false, className, ...rest })
499
500
  }
500
501
  );
501
502
  }
503
+ var Chat = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 48 48", width: "1em", height: "1em", "aria-hidden": "true", focusable: "false", ...props, children: [
504
+ /* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M11 2h26l9 9v26l-9 9H11l-9-9V11z", "data-part": "body" }),
505
+ /* @__PURE__ */ jsx("path", { fill: "#5c24ff", d: "M2 33v4l9 9h26l9-9v-4l-9 9H11z", "data-part": "shade" }),
506
+ /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M14 10h20l5 5v12l-5 5H23l-8 6v-6h-1l-5-5V15z", "data-part": "detail" }),
507
+ /* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M18 16h4v9h-4zm8 0h4v9h-4z", "data-part": "eye" })
508
+ ] });
509
+ var Chat_default = Chat;
510
+ var Knowledge2 = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 48 48", width: "1em", height: "1em", "aria-hidden": "true", focusable: "false", ...props, children: [
511
+ /* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M11 2h26l9 9v26l-9 9H11l-9-9V11z", "data-part": "body" }),
512
+ /* @__PURE__ */ jsx("path", { fill: "#5c24ff", d: "M2 33v4l9 9h26l9-9v-4l-9 9H11z", "data-part": "shade" }),
513
+ /* @__PURE__ */ jsx("path", { fill: "#fff", d: "m9 13 13 3v22L9 35zm30 0-13 3v22l13-3z", "data-part": "detail" }),
514
+ /* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "m12 19.4 7 1.6v2.6L12 22zm0 6 7 1.6v2.6L12 28zm24-6L29 21v2.6l7-1.6zm0 6L29 27v2.6l7-1.6z", "data-part": "eye" })
515
+ ] });
516
+ var Knowledge_default2 = Knowledge2;
517
+ var Works = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 48 48", width: "1em", height: "1em", "aria-hidden": "true", focusable: "false", ...props, children: [
518
+ /* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M11 2h26l9 9v26l-9 9H11l-9-9V11z", "data-part": "body" }),
519
+ /* @__PURE__ */ jsx("path", { fill: "#5c24ff", d: "M2 33v4l9 9h26l9-9v-4l-9 9H11z", "data-part": "shade" }),
520
+ /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M11 12h10v10H11z", "data-part": "detail" }),
521
+ /* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "m13.4 16.6 1.7-1.7 1.9 1.9 3.4-3.4 1.7 1.7-5.1 5.1z", "data-part": "eye" }),
522
+ /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M24 14h13v6H24z", "data-part": "detail" }),
523
+ /* @__PURE__ */ jsx("path", { fill: "#c9b8ff", d: "M11 26h10v10H11z", "data-part": "dim" }),
524
+ /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M24 28h9v6h-9z", "data-part": "detail" })
525
+ ] });
526
+ var Works_default = Works;
527
+ var PRODUCTS = ["works", "knowledge", "chat"];
528
+ var drawings2 = {
529
+ works: Works_default,
530
+ knowledge: Knowledge_default2,
531
+ chat: Chat_default
532
+ };
533
+ function ProductMark({ product, size, title, soon = false, className, ...rest }) {
534
+ const Drawing = drawings2[product];
535
+ const dimension = cssLength(size);
536
+ const semantics = title ? { role: "img", "aria-label": title, "aria-hidden": void 0, focusable: "false" } : { "aria-hidden": true, focusable: "false" };
537
+ const classes = ["crewlet-product-mark", `crewlet-product-mark--${product}`];
538
+ if (soon) classes.push("crewlet-product-mark--soon");
539
+ if (className !== void 0) classes.push(className);
540
+ return /* @__PURE__ */ jsx(Drawing, { width: dimension, height: dimension, ...semantics, className: classes.join(" "), ...rest });
541
+ }
502
542
 
503
543
  // src/generated/index.ts
504
544
  var ICON_NAMES = ["AgentError", "AgentGreeting", "AgentIdle", "AgentLoading", "AgentReading", "AgentSuccess", "AgentThinking", "AgentWorking", "CodeSandbox", "CompanyAsCode", "CrewletIcon", "CrewletReading", "Hierarchy", "HumanInLoop", "Knowledge", "TurnEngine"];
505
545
 
506
- export { AgentError_default as AgentError, AgentGreeting_default as AgentGreeting, AgentIdle_default as AgentIdle, AgentLoading_default as AgentLoading, AgentReading_default as AgentReading, AgentSuccess_default as AgentSuccess, AgentThinking_default as AgentThinking, AgentWorking_default as AgentWorking, CodeSandbox_default as CodeSandbox, CompanyAsCode_default as CompanyAsCode, CrewletFigure_default as CrewletFigure, CrewletIcon_default as CrewletIcon, CrewletReading_default as CrewletReading, Hierarchy_default as Hierarchy, HumanInLoop_default as HumanInLoop, ICON_NAMES, Icon, Knowledge_default as Knowledge, TurnEngine_default as TurnEngine, VENDORS, VendorMark };
546
+ export { AgentError_default as AgentError, AgentGreeting_default as AgentGreeting, AgentIdle_default as AgentIdle, AgentLoading_default as AgentLoading, AgentReading_default as AgentReading, AgentSuccess_default as AgentSuccess, AgentThinking_default as AgentThinking, AgentWorking_default as AgentWorking, CodeSandbox_default as CodeSandbox, CompanyAsCode_default as CompanyAsCode, CrewletFigure_default as CrewletFigure, CrewletIcon_default as CrewletIcon, CrewletReading_default as CrewletReading, Hierarchy_default as Hierarchy, HumanInLoop_default as HumanInLoop, ICON_NAMES, Icon, Knowledge_default as Knowledge, PRODUCTS, ProductMark, TurnEngine_default as TurnEngine, VENDORS, VendorMark };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/icons",
3
- "version": "0.42.0",
3
+ "version": "0.43.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": {
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="none">
2
+ <path data-part="body" fill="#7c56ff" d="M11 2h26l9 9v26l-9 9H11l-9-9V11z"/>
3
+ <path data-part="shade" fill="#5c24ff" d="M2 33v4l9 9h26l9-9v-4l-9 9H11z"/>
4
+ <path data-part="detail" fill="#ffffff" d="M14 10h20l5 5v12l-5 5H23l-8 6v-6h-1l-5-5V15z"/>
5
+ <path data-part="eye" fill="#7c56ff" d="M18 16h4v9h-4zM26 16h4v9h-4z"/>
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="none">
2
+ <path data-part="body" fill="#7c56ff" d="M11 2h26l9 9v26l-9 9H11l-9-9V11z"/>
3
+ <path data-part="shade" fill="#5c24ff" d="M2 33v4l9 9h26l9-9v-4l-9 9H11z"/>
4
+ <path data-part="detail" fill="#ffffff" d="M9 13l13 3v22l-13-3zM39 13l-13 3v22l13-3z"/>
5
+ <path data-part="eye" fill="#7c56ff" d="M12 19.4l7 1.6v2.6l-7-1.6zM12 25.4l7 1.6v2.6l-7-1.6zM36 19.4l-7 1.6v2.6l7-1.6zM36 25.4l-7 1.6v2.6l7-1.6z"/>
6
+ </svg>
@@ -0,0 +1,9 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="none">
2
+ <path data-part="body" fill="#7c56ff" d="M11 2h26l9 9v26l-9 9H11l-9-9V11z"/>
3
+ <path data-part="shade" fill="#5c24ff" d="M2 33v4l9 9h26l9-9v-4l-9 9H11z"/>
4
+ <path data-part="detail" fill="#ffffff" d="M11 12h10v10H11z"/>
5
+ <path data-part="eye" fill="#7c56ff" d="m13.4 16.6 1.7-1.7 1.9 1.9 3.4-3.4 1.7 1.7-5.1 5.1z"/>
6
+ <path data-part="detail" fill="#ffffff" d="M24 14h13v6H24z"/>
7
+ <path data-part="dim" fill="#c9b8ff" d="M11 26h10v10H11z"/>
8
+ <path data-part="detail" fill="#ffffff" d="M24 28h9v6h-9z"/>
9
+ </svg>