@crewlethq/icons 0.54.0 → 0.55.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
|
@@ -81,7 +81,7 @@ 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
|
-
**`crewlet` is Crewlet's own mark**, for the services built into it (
|
|
84
|
+
**`crewlet` is Crewlet's own mark**, for the services built into it (Worklet, Doclet) 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
85
|
|
|
86
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.
|
|
87
87
|
|
|
@@ -94,18 +94,18 @@ The marks and the terms on which they may be used are in [`TRADEMARKS.md`](./TRA
|
|
|
94
94
|
```tsx
|
|
95
95
|
import { ProductMark } from '@crewlethq/icons';
|
|
96
96
|
|
|
97
|
-
<ProductMark product="
|
|
97
|
+
<ProductMark product="worklet" size={24} />
|
|
98
98
|
<ProductMark product="chat" size={24} soon />
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
| Prop | Type | Default | Purpose |
|
|
102
102
|
| ---- | ---- | ------- | ------- |
|
|
103
|
-
| `product` | `Product`: `'
|
|
103
|
+
| `product` | `Product`: `'worklet' \| 'doclet' \| 'chat'` | required | Which of Crewlet's own products. |
|
|
104
104
|
| `size` | as `Glyph` | `'1em'` | How big it draws. |
|
|
105
105
|
| `title` | string | none | Names the mark. Without one it is `aria-hidden`. |
|
|
106
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
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: **
|
|
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: **Worklet** (projects and tasks) is a task list, one task ticked and one open; **Doclet** (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
109
|
|
|
110
110
|
## Signature illustrations
|
|
111
111
|
|
package/dist/index.d.ts
CHANGED
|
@@ -90,7 +90,7 @@ interface VendorMarkProps extends Omit<SVGProps<SVGSVGElement>, 'title'> {
|
|
|
90
90
|
declare function VendorMark({ vendor, size, title, muted, className, ...rest }: VendorMarkProps): react.JSX.Element;
|
|
91
91
|
|
|
92
92
|
/** Crewlet's own products, each with a mark of its own. */
|
|
93
|
-
declare const PRODUCTS: readonly ["
|
|
93
|
+
declare const PRODUCTS: readonly ["worklet", "doclet", "chat"];
|
|
94
94
|
type Product = (typeof PRODUCTS)[number];
|
|
95
95
|
interface ProductMarkProps extends Omit<SVGProps<SVGSVGElement>, 'title'> {
|
|
96
96
|
product: Product;
|
|
@@ -106,15 +106,15 @@ interface ProductMarkProps extends Omit<SVGProps<SVGSVGElement>, 'title'> {
|
|
|
106
106
|
soon?: boolean;
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
* The mark of one of Crewlet's own products:
|
|
110
|
-
*
|
|
109
|
+
* The mark of one of Crewlet's own products: Worklet (projects and tasks),
|
|
110
|
+
* Doclet (spaces and pages) and Chat (talking with agents).
|
|
111
111
|
*
|
|
112
112
|
* ONE FAMILY WITH THE BRAND MARK. Each stands on the same tile: the crewmate
|
|
113
113
|
* head's octagon, chamfered at 45 degrees on the 48 grid, in the brand violet
|
|
114
114
|
* with a deeper lower facet for the brand mark's depth. What tells them apart
|
|
115
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 (
|
|
117
|
-
* open), an open book with its lines of text (
|
|
116
|
+
* whole pixels at 16, 24 and 48: a task list (Worklet, one task ticked and one
|
|
117
|
+
* open), an open book with its lines of text (Doclet), and the crewmate's
|
|
118
118
|
* two eyes in a speech bubble (Chat).
|
|
119
119
|
*
|
|
120
120
|
* Sized like a glyph and drawn edge to edge in its square, so it stands at the
|
package/dist/index.js
CHANGED
|
@@ -507,14 +507,14 @@ var Chat = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/20
|
|
|
507
507
|
/* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M18 16h4v9h-4zm8 0h4v9h-4z", "data-part": "eye" })
|
|
508
508
|
] });
|
|
509
509
|
var Chat_default = Chat;
|
|
510
|
-
var
|
|
510
|
+
var Doclet = (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
511
|
/* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M11 2h26l9 9v26l-9 9H11l-9-9V11z", "data-part": "body" }),
|
|
512
512
|
/* @__PURE__ */ jsx("path", { fill: "#5c24ff", d: "M2 33v4l9 9h26l9-9v-4l-9 9H11z", "data-part": "shade" }),
|
|
513
513
|
/* @__PURE__ */ jsx("path", { fill: "#fff", d: "m9 13 13 3v22L9 35zm30 0-13 3v22l13-3z", "data-part": "detail" }),
|
|
514
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
515
|
] });
|
|
516
|
-
var
|
|
517
|
-
var
|
|
516
|
+
var Doclet_default = Doclet;
|
|
517
|
+
var Worklet = (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
518
|
/* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M11 2h26l9 9v26l-9 9H11l-9-9V11z", "data-part": "body" }),
|
|
519
519
|
/* @__PURE__ */ jsx("path", { fill: "#5c24ff", d: "M2 33v4l9 9h26l9-9v-4l-9 9H11z", "data-part": "shade" }),
|
|
520
520
|
/* @__PURE__ */ jsx("path", { fill: "#fff", d: "M11 12h10v10H11z", "data-part": "detail" }),
|
|
@@ -523,11 +523,11 @@ var Works = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2
|
|
|
523
523
|
/* @__PURE__ */ jsx("path", { fill: "#c9b8ff", d: "M11 26h10v10H11z", "data-part": "dim" }),
|
|
524
524
|
/* @__PURE__ */ jsx("path", { fill: "#fff", d: "M24 28h9v6h-9z", "data-part": "detail" })
|
|
525
525
|
] });
|
|
526
|
-
var
|
|
527
|
-
var PRODUCTS = ["
|
|
526
|
+
var Worklet_default = Worklet;
|
|
527
|
+
var PRODUCTS = ["worklet", "doclet", "chat"];
|
|
528
528
|
var drawings2 = {
|
|
529
|
-
|
|
530
|
-
|
|
529
|
+
worklet: Worklet_default,
|
|
530
|
+
doclet: Doclet_default,
|
|
531
531
|
chat: Chat_default
|
|
532
532
|
};
|
|
533
533
|
function ProductMark({ product, size, title, soon = false, className, ...rest }) {
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|