@crewlethq/icons 0.66.0 → 0.67.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 +76 -5
- package/dist/ProductMark-B6YQSAPH.css +81 -0
- package/dist/chunk-7HJUA3FG.js +95 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/product-mark.d.ts +39 -16
- package/dist/product-mark.js +1 -1
- package/package.json +1 -1
- package/svg/product/app-tile/assistant.svg +7 -0
- package/svg/product/app-tile/chat.svg +6 -0
- package/svg/product/app-tile/doclet.svg +6 -0
- package/svg/product/app-tile/worklet.svg +6 -0
- package/svg/product/assistant.svg +4 -3
- package/svg/product/chat.svg +3 -3
- package/svg/product/doclet.svg +3 -3
- package/svg/product/small/assistant.svg +6 -0
- package/svg/product/small/chat.svg +5 -0
- package/svg/product/small/doclet.svg +5 -0
- package/svg/product/small/worklet.svg +5 -0
- package/svg/product/worklet.svg +3 -6
- package/dist/ProductMark-7G2NG3XS.css +0 -41
- package/dist/chunk-2PBR5533.js +0 -53
package/README.md
CHANGED
|
@@ -96,20 +96,91 @@ The marks and the terms on which they may be used are in [`TRADEMARKS.md`](./TRA
|
|
|
96
96
|
import { ProductMark } from '@crewlethq/icons/product-mark';
|
|
97
97
|
|
|
98
98
|
<ProductMark product="worklet" size={24} />
|
|
99
|
-
<ProductMark product="chat" size=
|
|
100
|
-
<ProductMark product="assistant" size=
|
|
99
|
+
<ProductMark product="chat" size="md" soon />
|
|
100
|
+
<ProductMark product="assistant" size="sm" title="AI Assistant" />
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
`@crewlethq/icons/product-mark` is the marks' own entry, with `ProductMark`, `PRODUCTS` and their types and nothing else: its import graph reaches the
|
|
103
|
+
`@crewlethq/icons/product-mark` is the marks' own entry, with `ProductMark`, `PRODUCTS` and their types and nothing else: its import graph reaches the drawings, the glyph frame and `ProductMark.css`, never the root with its illustrations, vendor marks and their stylesheets, so a first paint that draws one mark (an Ask button) pays for that alone whatever its bundler does with the root's side effects. The root still exports the same functions; `test/bundle.test.mjs` holds the entry's graph and what a build of it carries (about 6 KB for all eight drawings).
|
|
104
104
|
|
|
105
105
|
| Prop | Type | Default | Purpose |
|
|
106
106
|
| ---- | ---- | ------- | ------- |
|
|
107
107
|
| `product` | `Product`: `'worklet' \| 'doclet' \| 'chat' \| 'assistant'` | required | Which of Crewlet's own products. |
|
|
108
108
|
| `size` | as `Glyph` | `'1em'` | How big it draws. |
|
|
109
|
+
| `drawing` | `ProductMarkDrawing`: `'auto' \| 'small' \| 'master'` | `'auto'` | Which drawing to mount. `auto` mounts the 16 pixel grid drawing below 24 px and the master from 24 px up (see [Two drawings](#two-drawings)). |
|
|
109
110
|
| `title` | string | none | Names the mark. Without one it is `aria-hidden`. |
|
|
110
|
-
| `soon` | boolean | `false` | Draws a product that has not shipped hollow: a faint violet body under a violet keyline and
|
|
111
|
+
| `soon` | boolean | `false` | Draws a product that has not shipped hollow: a faint violet body under a violet keyline and figure. Never grey, which is how a vendor mark says "not connected". |
|
|
111
112
|
|
|
112
|
-
The four services built into Crewlet each have a mark of their own, drawn from the brand mark's construction.
|
|
113
|
+
The four services built into Crewlet each have a mark of their own, drawn from the brand mark's construction. `PRODUCTS` lists them. Pair the Assistant's mark with its words ("Ask" on a button, "AI Assistant" in navigation and catalogues), because a sparkle alone is also read as "new" or "favourite"; for the same reason, Crewlet's own "new" and "soon" cues never use a four point star.
|
|
114
|
+
|
|
115
|
+
| Product | Figure |
|
|
116
|
+
| ------- | ------ |
|
|
117
|
+
| `worklet` (projects and tasks) | A large tick for the finished task over one open row: a hollow chamfered box and its line for the task still to do. Done is solid and heavy, open is hollow and light. |
|
|
118
|
+
| `doclet` (spaces and pages) | A page whose corner is folded by the brand's own 45 degree chamfer, with a heading block and two lines of text. |
|
|
119
|
+
| `chat` (talking with agents) | A chamfered speech bubble whose one horizontal window is the crewmate's visor, cut through to the tile. The family's one crew reference, with no eyes and no face. |
|
|
120
|
+
| `assistant` (asking Crewlet itself, as the signed-in person) | A four point concave spark with a small companion spark on the 45 degree axis that points into the octagon's upper right chamfer. No face: the assistant has no identity of its own, so it is a capability of Crewlet rather than a crew member. |
|
|
121
|
+
|
|
122
|
+
### Construction
|
|
123
|
+
|
|
124
|
+
All four stand on one tile: the crewmate head's octagon on the 48 unit grid, inset 2 units, with 9 unit chamfers at 45 degrees, so its weight sits beside a vendor mark's. A lower facet gives it the brand mark's depth. One white figure tells them apart, every straight edge orthogonal or a true 45 degree diagonal and every curve a circular arc, so no size shows a staircase. Interior detail is always a knockout through to the tile, never a second tone. Each file is a handful of paths, each tagged with the part it plays:
|
|
125
|
+
|
|
126
|
+
| `data-part` | What it is | In |
|
|
127
|
+
| ----------- | ---------- | -- |
|
|
128
|
+
| `body` | The octagon tile. | every drawing |
|
|
129
|
+
| `shade` | The lower facet. | the master and the app tile |
|
|
130
|
+
| `keyline` | The soon ring, hidden (`fill="none"`) until the soon rule paints it. | the master and the 16 pixel grid drawing |
|
|
131
|
+
| `detail` | The white figure. | every drawing |
|
|
132
|
+
| `ground` | The full bleed square behind the tile. | the app tile |
|
|
133
|
+
|
|
134
|
+
### Colours
|
|
135
|
+
|
|
136
|
+
| Colour | Hex | Where |
|
|
137
|
+
| ------ | --- | ----- |
|
|
138
|
+
| Brand violet | `#7c56ff` | The tile (`body`), and the keyline and figure when soon. 4.23:1 on the light ground, 4.25:1 on the dark one. |
|
|
139
|
+
| Deep violet | `#6a3cff` | The lower facet (`shade`), and the app tile's ground. Decorative: 1.25:1 against the tile, so it never carries the silhouette. |
|
|
140
|
+
| Deepest violet | `#5c24ff` | The app tile's facet alone, one step deeper so it still reads against the tile's ground. |
|
|
141
|
+
| White | `#ffffff` | The figure. 4.53:1 on the tile. |
|
|
142
|
+
|
|
143
|
+
Nothing else: no gradient and no other hue, in any file. The marks keep these colours in both themes, as the brand mark does, because they are its identity. `test/products.test.mjs` holds every file to them.
|
|
144
|
+
|
|
145
|
+
### Two drawings
|
|
146
|
+
|
|
147
|
+
Each product has two drawings. The master, `svg/product/<product>.svg` on `0 0 48 48`, serves 24 px and up, where every orthogonal edge lands on a whole pixel. The 16 pixel grid drawing, `svg/product/small/<product>.svg` on `0 0 16 16`, serves 16 to 20 px: the tile goes full bleed with no facet (the master's 2 unit inset would be a blurred two thirds of a pixel), and each figure is redrawn on whole pixels with walls and counters of at least one pixel. It also serves 32 px at 2x. At 20 px it is drawn at 1.25x, slightly soft by design.
|
|
148
|
+
|
|
149
|
+
`drawing="auto"` reads `size`: a step from `xs` to `lg`, a number, or a length in `px` below 24 mounts the 16 pixel grid drawing, and anything from 24 up mounts the master. A size in another unit (the default `1em`, a `rem`) cannot be measured while rendering, so it takes the master; pass `drawing="small"` where such a mark sits in a line of body text, and `drawing="master"` to keep the master at any size.
|
|
150
|
+
|
|
151
|
+
### Soon
|
|
152
|
+
|
|
153
|
+
`soon` is derived from the drawing that is mounted, at either size, with no second file. `ProductMark.css` drops the body to an 8 percent tint, hides the facet, and paints the hidden keyline (3 units on the master, one whole pixel on the 16 grid) and the figure in the brand violet. The keyline's inner contour winds against its outer one, so it stays hollow under either fill rule. A part that would come within a pixel of the keyline on the 16 grid declares `data-soon="tuck"` and is drawn at 0.9 about its own centre (only the Assistant's main spark). The state is a class, `crewlet-product-mark--soon`, so a strict `style-src` never refuses it.
|
|
154
|
+
|
|
155
|
+
**Under forced colours** (Windows high contrast) a mark draws its one colour form in the reader's system colours: the tile and facet in `CanvasText` with the figure knocked out to `Canvas`, which keeps every figure readable on any palette. Soon keeps its hollow keyline and figure in `CanvasText`, at half strength.
|
|
156
|
+
|
|
157
|
+
### Motion
|
|
158
|
+
|
|
159
|
+
The marks never move by themselves. The Assistant's main spark carries `data-motion="turn"` and its companion `data-motion="twinkle"`, in both drawings, so a working state can move them; `ThinkingIndicator` in `@crewlethq/ui` owns that motion. Over one period of `--motion-duration-spark` (1.6s), the spark makes a quarter turn about its own centre, tucking to 0.8 through the middle of the turn so its tip passes the companion with clear violet between them, while the companion dips to 0.7 and half strength; both rest for the other half of the period. Under `prefers-reduced-motion: reduce` both animations stop and the mark holds a still working pose (the spark at 0.8, the companion at 0.7 and half strength). Any other host that moves these parts pivots them with `transform-box: fill-box; transform-origin: center`, keeps rotate and scale in one transform, and stops them under reduced motion.
|
|
160
|
+
|
|
161
|
+
### App tiles
|
|
162
|
+
|
|
163
|
+
A 180 px app tile ships for each product, as a raw file rather than a component, for an `apple-touch-icon`, a web manifest or a catalogue:
|
|
164
|
+
|
|
165
|
+
```ts
|
|
166
|
+
import workletTile from '@crewlethq/icons/svg/product/app-tile/worklet.svg';
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
```html
|
|
170
|
+
<link rel="apple-touch-icon" href="/worklet-180.png" />
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
All four share one frame on `0 0 180 180`: a full bleed `#6a3cff` ground, the octagon redrawn for 180 px in `#7c56ff` with its lower facet in `#5c24ff`, and the master's figure at 80 percent baked into absolute coordinates. Every figure sits inside the 72 px maskable safe zone, so a manifest may list a PNG exported from it as `any maskable`; a rounded or circle mask crops the octagon's corners, which is expected. Raster pipelines export the PNG from this file, and favicons from the 16 pixel grid drawing (16 px, and 32 px at 2x). A change to a figure is baked into its app tile too.
|
|
174
|
+
|
|
175
|
+
### Raw files
|
|
176
|
+
|
|
177
|
+
| File | Use |
|
|
178
|
+
| ---- | --- |
|
|
179
|
+
| `@crewlethq/icons/svg/product/<product>.svg` | The master, `0 0 48 48`. |
|
|
180
|
+
| `@crewlethq/icons/svg/product/small/<product>.svg` | The 16 pixel grid drawing, `0 0 16 16`. |
|
|
181
|
+
| `@crewlethq/icons/svg/product/app-tile/<product>.svg` | The app tile, `0 0 180 180`. |
|
|
182
|
+
|
|
183
|
+
The marks' sources are these files: `npm run build` compiles the master and the 16 pixel grid drawing of each product into `ProductMark`, and refuses a product that has one without the other.
|
|
113
184
|
|
|
114
185
|
## Signature illustrations
|
|
115
186
|
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
|
|
6
|
+
.crewlet-product-mark {
|
|
7
|
+
display: inline-block;
|
|
8
|
+
flex: none;
|
|
9
|
+
vertical-align: middle;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
* SOON IS HOLLOW, NOT GREY. Every drawing, the 48 unit master and the 16 pixel
|
|
14
|
+
* grid alike, carries its own soon keyline as a hidden part
|
|
15
|
+
* (data-part="keyline", fill="none"), so the soon state is derived from the
|
|
16
|
+
* drawing ProductMark mounts, with no second file. The keyline's inner contour
|
|
17
|
+
* winds against its outer one, so it stays hollow under either fill rule.
|
|
18
|
+
*/
|
|
19
|
+
.crewlet-product-mark--soon {
|
|
20
|
+
--crewlet-product-mark-soon-ink: #7c56ff;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* A faint tint of the violet: it carries no contrast of its own. */
|
|
24
|
+
.crewlet-product-mark--soon [data-part='body'] {
|
|
25
|
+
fill-opacity: 0.08;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* The lower facet is dropped: depth belongs to the shipped mark. */
|
|
29
|
+
.crewlet-product-mark--soon [data-part='shade'] {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* The keyline (3 units on the master, 1 px on the 16 grid) draws the silhouette. */
|
|
34
|
+
.crewlet-product-mark--soon [data-part='keyline'] {
|
|
35
|
+
fill: var(--crewlet-product-mark-soon-ink);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* The figure keeps its shape and takes the violet. */
|
|
39
|
+
.crewlet-product-mark--soon [data-part='detail'] {
|
|
40
|
+
fill: var(--crewlet-product-mark-soon-ink);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/*
|
|
44
|
+
* A part that would come within 1 px of the keyline on the 16 grid declares
|
|
45
|
+
* data-soon="tuck" and is drawn one step smaller about its own centre (today
|
|
46
|
+
* only the Assistant's main spark: tip radius 5 to 4.5, tips on whole pixel
|
|
47
|
+
* edges).
|
|
48
|
+
*/
|
|
49
|
+
.crewlet-product-mark--soon [data-soon='tuck'] {
|
|
50
|
+
transform: scale(0.9);
|
|
51
|
+
transform-box: fill-box;
|
|
52
|
+
transform-origin: center;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/*
|
|
56
|
+
* FORCED COLOURS DRAW THE MONO MARK. The system's palette replaces the
|
|
57
|
+
* violet, so the mark is drawn the way its one colour drawing is: the tile in
|
|
58
|
+
* the system's text colour with the figure knocked out to the ground, which
|
|
59
|
+
* keeps every figure readable on any palette the reader chose. The mark sets
|
|
60
|
+
* its own system colours, so the browser is told not to adjust them again.
|
|
61
|
+
* Soon keeps its hollow shape in the text colour, at half strength.
|
|
62
|
+
*/
|
|
63
|
+
@media (forced-colors: active) {
|
|
64
|
+
.crewlet-product-mark {
|
|
65
|
+
forced-color-adjust: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.crewlet-product-mark [data-part='body'],
|
|
69
|
+
.crewlet-product-mark [data-part='shade'] {
|
|
70
|
+
fill: CanvasText;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.crewlet-product-mark:not(.crewlet-product-mark--soon) [data-part='detail'] {
|
|
74
|
+
fill: Canvas;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.crewlet-product-mark--soon {
|
|
78
|
+
--crewlet-product-mark-soon-ink: CanvasText;
|
|
79
|
+
opacity: 0.5;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { cssLength } from './chunk-TOSJN7HA.js';
|
|
2
|
+
import './ProductMark-B6YQSAPH.css';
|
|
3
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var Assistant = (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: [
|
|
6
|
+
/* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M11 2h26l9 9v26l-9 9H11l-9-9V11z", "data-part": "body" }),
|
|
7
|
+
/* @__PURE__ */ jsx("path", { fill: "#6a3cff", d: "M2 33v4l9 9h26l9-9v-4l-9 9H11z", "data-part": "shade" }),
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "none", d: "M11 2h26l9 9v26l-9 9H11l-9-9V11zm1.24 3L5 12.24v23.52L12.24 43h23.52L43 35.76V12.24L35.76 5z", "data-part": "keyline" }),
|
|
9
|
+
/* @__PURE__ */ jsx("path", { fill: "#fff", d: "M22 10a21.18 21.18 0 0 0 15 15 21.18 21.18 0 0 0-15 15A21.18 21.18 0 0 0 7 25a21.18 21.18 0 0 0 15-15", "data-motion": "turn", "data-part": "detail" }),
|
|
10
|
+
/* @__PURE__ */ jsx("path", { fill: "#fff", d: "M34 7a9.81 9.81 0 0 0 6 6 9.81 9.81 0 0 0-6 6 9.81 9.81 0 0 0-6-6 9.81 9.81 0 0 0 6-6", "data-motion": "twinkle", "data-part": "detail" })
|
|
11
|
+
] });
|
|
12
|
+
var Assistant_default = Assistant;
|
|
13
|
+
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: [
|
|
14
|
+
/* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M11 2h26l9 9v26l-9 9H11l-9-9V11z", "data-part": "body" }),
|
|
15
|
+
/* @__PURE__ */ jsx("path", { fill: "#6a3cff", d: "M2 33v4l9 9h26l9-9v-4l-9 9H11z", "data-part": "shade" }),
|
|
16
|
+
/* @__PURE__ */ jsx("path", { fill: "none", d: "M11 2h26l9 9v26l-9 9H11l-9-9V11zm1.24 3L5 12.24v23.52L12.24 43h23.52L43 35.76V12.24L35.76 5z", "data-part": "keyline" }),
|
|
17
|
+
/* @__PURE__ */ jsx("path", { fill: "#fff", fillRule: "evenodd", d: "M16 10h16l6 6v10l-6 6h-4v6l-6-6h-6l-6-6V16zm0 6h16l2 2v6l-2 2H16l-2-2v-6z", "data-part": "detail" })
|
|
18
|
+
] });
|
|
19
|
+
var Chat_default = Chat;
|
|
20
|
+
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: [
|
|
21
|
+
/* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M11 2h26l9 9v26l-9 9H11l-9-9V11z", "data-part": "body" }),
|
|
22
|
+
/* @__PURE__ */ jsx("path", { fill: "#6a3cff", d: "M2 33v4l9 9h26l9-9v-4l-9 9H11z", "data-part": "shade" }),
|
|
23
|
+
/* @__PURE__ */ jsx("path", { fill: "none", d: "M11 2h26l9 9v26l-9 9H11l-9-9V11zm1.24 3L5 12.24v23.52L12.24 43h23.52L43 35.76V12.24L35.76 5z", "data-part": "keyline" }),
|
|
24
|
+
/* @__PURE__ */ jsx("path", { fill: "#fff", fillRule: "evenodd", d: "M16 8h10l8 8v20l-2 2H16l-2-2V10zm2 4h6v6h-6zm0 10h12v4H18zm0 8h8v4h-8z", "data-part": "detail" })
|
|
25
|
+
] });
|
|
26
|
+
var Doclet_default = Doclet;
|
|
27
|
+
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: [
|
|
28
|
+
/* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M11 2h26l9 9v26l-9 9H11l-9-9V11z", "data-part": "body" }),
|
|
29
|
+
/* @__PURE__ */ jsx("path", { fill: "#6a3cff", d: "M2 33v4l9 9h26l9-9v-4l-9 9H11z", "data-part": "shade" }),
|
|
30
|
+
/* @__PURE__ */ jsx("path", { fill: "none", d: "M11 2h26l9 9v26l-9 9H11l-9-9V11zm1.24 3L5 12.24v23.52L12.24 43h23.52L43 35.76V12.24L35.76 5z", "data-part": "keyline" }),
|
|
31
|
+
/* @__PURE__ */ jsx("path", { fill: "#fff", fillRule: "evenodd", d: "m20 12 4 4 8-8 4 4-12 12-8-8zm-6 16h8l2 2v8l-2 2h-8l-2-2v-8zm2 4v4h4v-4zm12 0h10v4H28z", "data-part": "detail" })
|
|
32
|
+
] });
|
|
33
|
+
var Worklet_default = Worklet;
|
|
34
|
+
var Assistant2 = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em", "aria-hidden": "true", focusable: "false", ...props, children: [
|
|
35
|
+
/* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M3 0h10l3 3v10l-3 3H3l-3-3V3z", "data-part": "body" }),
|
|
36
|
+
/* @__PURE__ */ jsx("path", { fill: "none", d: "M3 0h10l3 3v10l-3 3H3l-3-3V3zm.41 1L1 3.41v9.18L3.41 15h9.18L15 12.59V3.41L12.59 1z", "data-part": "keyline" }),
|
|
37
|
+
/* @__PURE__ */ jsx("path", { fill: "#fff", d: "M6.5 4.5a8.17 8.17 0 0 0 5 5 8.17 8.17 0 0 0-5 5 8.17 8.17 0 0 0-5-5 8.17 8.17 0 0 0 5-5", "data-motion": "turn", "data-part": "detail", "data-soon": "tuck" }),
|
|
38
|
+
/* @__PURE__ */ jsx("path", { fill: "#fff", d: "M11.5 2A4.56 4.56 0 0 0 14 4.5 4.56 4.56 0 0 0 11.5 7 4.56 4.56 0 0 0 9 4.5 4.56 4.56 0 0 0 11.5 2", "data-motion": "twinkle", "data-part": "detail" })
|
|
39
|
+
] });
|
|
40
|
+
var Assistant_default2 = Assistant2;
|
|
41
|
+
var Chat2 = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em", "aria-hidden": "true", focusable: "false", ...props, children: [
|
|
42
|
+
/* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M3 0h10l3 3v10l-3 3H3l-3-3V3z", "data-part": "body" }),
|
|
43
|
+
/* @__PURE__ */ jsx("path", { fill: "none", d: "M3 0h10l3 3v10l-3 3H3l-3-3V3zm.41 1L1 3.41v9.18L3.41 15h9.18L15 12.59V3.41L12.59 1z", "data-part": "keyline" }),
|
|
44
|
+
/* @__PURE__ */ jsx("path", { fill: "#fff", fillRule: "evenodd", d: "M4 3h8l2 2v4l-2 2h-2v3l-3-3H4L2 9V5zm0 2h8v4H4z", "data-part": "detail" })
|
|
45
|
+
] });
|
|
46
|
+
var Chat_default2 = Chat2;
|
|
47
|
+
var Doclet2 = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em", "aria-hidden": "true", focusable: "false", ...props, children: [
|
|
48
|
+
/* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M3 0h10l3 3v10l-3 3H3l-3-3V3z", "data-part": "body" }),
|
|
49
|
+
/* @__PURE__ */ jsx("path", { fill: "none", d: "M3 0h10l3 3v10l-3 3H3l-3-3V3zm.41 1L1 3.41v9.18L3.41 15h9.18L15 12.59V3.41L12.59 1z", "data-part": "keyline" }),
|
|
50
|
+
/* @__PURE__ */ jsx("path", { fill: "#fff", fillRule: "evenodd", d: "M4 2h5l3 3v8H4zm2 2h3v3H6zm0 4h4v1H6zm0 2h3v1H6z", "data-part": "detail" })
|
|
51
|
+
] });
|
|
52
|
+
var Doclet_default2 = Doclet2;
|
|
53
|
+
var Worklet2 = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em", "aria-hidden": "true", focusable: "false", ...props, children: [
|
|
54
|
+
/* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M3 0h10l3 3v10l-3 3H3l-3-3V3z", "data-part": "body" }),
|
|
55
|
+
/* @__PURE__ */ jsx("path", { fill: "none", d: "M3 0h10l3 3v10l-3 3H3l-3-3V3zm.41 1L1 3.41v9.18L3.41 15h9.18L15 12.59V3.41L12.59 1z", "data-part": "keyline" }),
|
|
56
|
+
/* @__PURE__ */ jsx("path", { fill: "#fff", fillRule: "evenodd", d: "M5.5 3.5 7 5l3-3 1.5 1.5L7 8 4 5zM3 9h4v4H3zm1 1v2h2v-2zm5 0h5v2H9z", "data-part": "detail" })
|
|
57
|
+
] });
|
|
58
|
+
var Worklet_default2 = Worklet2;
|
|
59
|
+
var PRODUCTS = ["worklet", "doclet", "chat", "assistant"];
|
|
60
|
+
var MASTER_FROM = 24;
|
|
61
|
+
var drawings = {
|
|
62
|
+
worklet: { small: Worklet_default2, master: Worklet_default },
|
|
63
|
+
doclet: { small: Doclet_default2, master: Doclet_default },
|
|
64
|
+
chat: { small: Chat_default2, master: Chat_default },
|
|
65
|
+
assistant: { small: Assistant_default2, master: Assistant_default }
|
|
66
|
+
};
|
|
67
|
+
function pixels(size) {
|
|
68
|
+
const match = /^(\d*\.?\d+)px$/.exec(cssLength(size).trim());
|
|
69
|
+
return match === null ? null : Number(match[1]);
|
|
70
|
+
}
|
|
71
|
+
function drawsSmall(size, drawing) {
|
|
72
|
+
if (drawing !== "auto") return drawing === "small";
|
|
73
|
+
const px = pixels(size);
|
|
74
|
+
return px !== null && px < MASTER_FROM;
|
|
75
|
+
}
|
|
76
|
+
function ProductMark({
|
|
77
|
+
product,
|
|
78
|
+
size,
|
|
79
|
+
title,
|
|
80
|
+
soon = false,
|
|
81
|
+
drawing = "auto",
|
|
82
|
+
className,
|
|
83
|
+
...rest
|
|
84
|
+
}) {
|
|
85
|
+
const pair = drawings[product];
|
|
86
|
+
const Drawing = drawsSmall(size, drawing) ? pair.small : pair.master;
|
|
87
|
+
const dimension = cssLength(size);
|
|
88
|
+
const semantics = title ? { role: "img", "aria-label": title, "aria-hidden": void 0, focusable: "false" } : { "aria-hidden": true, focusable: "false" };
|
|
89
|
+
const classes = ["crewlet-product-mark", `crewlet-product-mark--${product}`];
|
|
90
|
+
if (soon) classes.push("crewlet-product-mark--soon");
|
|
91
|
+
if (className !== void 0) classes.push(className);
|
|
92
|
+
return /* @__PURE__ */ jsx(Drawing, { width: dimension, height: dimension, ...semantics, className: classes.join(" "), ...rest });
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { PRODUCTS, ProductMark };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { SVGProps } from 'react';
|
|
3
3
|
export { CREWLET_CHARACTERS, CREWLET_CHARACTER_GEOMETRY, CharacterBox, CrewletCharacter, CrewletCharacterDetail, CrewletCharacterGeometry, CrewletCharacterId, CrewletCharacterProps, isCrewletCharacter } from './characters.js';
|
|
4
4
|
import { GlyphSize } from './glyphs.js';
|
|
5
|
-
export { PRODUCTS, Product, ProductMark, ProductMarkProps } from './product-mark.js';
|
|
5
|
+
export { PRODUCTS, Product, ProductMark, ProductMarkDrawing, ProductMarkProps } from './product-mark.js';
|
|
6
6
|
|
|
7
7
|
declare const AgentError: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
8
8
|
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { CREWLET_CHARACTERS, CREWLET_CHARACTER_GEOMETRY, CrewletCharacter_default as CrewletCharacter, isCrewletCharacter } from './chunk-X7FKGFKM.js';
|
|
2
|
-
export { PRODUCTS, ProductMark } from './chunk-
|
|
2
|
+
export { PRODUCTS, ProductMark } from './chunk-7HJUA3FG.js';
|
|
3
3
|
import { cssLength } from './chunk-TOSJN7HA.js';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
5
|
import './CrewletFigure-4PMMCAFG.css';
|
package/dist/product-mark.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ import { GlyphSize } from './glyphs.js';
|
|
|
5
5
|
/** Crewlet's own products, each with a mark of its own. */
|
|
6
6
|
declare const PRODUCTS: readonly ["worklet", "doclet", "chat", "assistant"];
|
|
7
7
|
type Product = (typeof PRODUCTS)[number];
|
|
8
|
+
/**
|
|
9
|
+
* Which drawing of a mark is mounted: `small`, the 16 pixel grid drawing,
|
|
10
|
+
* `master`, the 48 unit master, or `auto`, chosen from the size.
|
|
11
|
+
*/
|
|
12
|
+
type ProductMarkDrawing = 'auto' | 'small' | 'master';
|
|
8
13
|
interface ProductMarkProps extends Omit<SVGProps<SVGSVGElement>, 'title'> {
|
|
9
14
|
product: Product;
|
|
10
15
|
size?: GlyphSize;
|
|
@@ -12,11 +17,20 @@ interface ProductMarkProps extends Omit<SVGProps<SVGSVGElement>, 'title'> {
|
|
|
12
17
|
title?: string;
|
|
13
18
|
/**
|
|
14
19
|
* A product that has not shipped yet: the mark is drawn hollow, its
|
|
15
|
-
*
|
|
16
|
-
* which is how a catalogue says "available but not connected" about a
|
|
20
|
+
* keyline and figure in the brand violet over a faint tint of it. Never
|
|
21
|
+
* grey, which is how a catalogue says "available but not connected" about a
|
|
17
22
|
* vendor, a different fact.
|
|
18
23
|
*/
|
|
19
24
|
soon?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Which drawing to mount. `auto` (the default) mounts the 16 pixel grid
|
|
27
|
+
* drawing when `size` resolves to fewer than 24 px (a step from `xs` to
|
|
28
|
+
* `lg`, a number, or a length in px) and the master otherwise. A size in
|
|
29
|
+
* any other unit (the default `1em`, a `rem`) cannot be measured while
|
|
30
|
+
* rendering, so it takes the master; pass `small` where such a mark sits in
|
|
31
|
+
* a line of text.
|
|
32
|
+
*/
|
|
33
|
+
drawing?: ProductMarkDrawing;
|
|
20
34
|
}
|
|
21
35
|
/**
|
|
22
36
|
* The mark of one of Crewlet's own products: Worklet (projects and tasks),
|
|
@@ -24,23 +38,32 @@ interface ProductMarkProps extends Omit<SVGProps<SVGSVGElement>, 'title'> {
|
|
|
24
38
|
* (asking Crewlet itself, as the signed-in person).
|
|
25
39
|
*
|
|
26
40
|
* ONE FAMILY WITH THE BRAND MARK. Each stands on the same tile: the crewmate
|
|
27
|
-
* head's octagon, chamfered at 45 degrees
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
41
|
+
* head's octagon, chamfered at 45 degrees, in the brand violet with a deeper
|
|
42
|
+
* lower facet for the brand mark's depth. What tells them apart is one white
|
|
43
|
+
* figure each: a tick over one open task (Worklet), a page with a chamfer
|
|
44
|
+
* fold (Doclet), a speech bubble with the crewmate's visor (Chat), and two
|
|
45
|
+
* sparks (the Assistant). The Assistant has no face: it acts as the person who
|
|
46
|
+
* asks and has no identity of its own, so it is drawn as a capability of
|
|
47
|
+
* Crewlet rather than as one more member of a crew.
|
|
48
|
+
*
|
|
49
|
+
* TWO DRAWINGS OF EACH. The 48 unit master serves 24 px and up; the 16 pixel
|
|
50
|
+
* grid drawing serves 16 to 20 px, with its figure redrawn on whole pixels,
|
|
51
|
+
* so a sidebar row never shows a blurred master. `drawing` chooses, and
|
|
52
|
+
* `auto` reads the size.
|
|
53
|
+
*
|
|
54
|
+
* SOON IS DERIVED FROM THE DRAWING. Each drawing carries its own hidden
|
|
55
|
+
* keyline (`data-part="keyline"`), which only the soon rule paints, so the
|
|
56
|
+
* hollow state needs no second file at either size.
|
|
57
|
+
*
|
|
58
|
+
* THE ASSISTANT'S MOTION BELONGS TO ITS HOST. Its main spark carries
|
|
59
|
+
* `data-motion="turn"` and its companion `data-motion="twinkle"`, so a working
|
|
60
|
+
* state (`ThinkingIndicator` in `@crewlethq/ui`) can move them; the mark
|
|
61
|
+
* itself never moves.
|
|
39
62
|
*
|
|
40
63
|
* Sized like a glyph and drawn edge to edge in its square, so it stands at the
|
|
41
64
|
* weight of the vendor marks a catalogue sets beside it.
|
|
42
65
|
*/
|
|
43
|
-
declare function ProductMark({ product, size, title, soon, className, ...rest }: ProductMarkProps): react.JSX.Element;
|
|
66
|
+
declare function ProductMark({ product, size, title, soon, drawing, className, ...rest }: ProductMarkProps): react.JSX.Element;
|
|
44
67
|
|
|
45
68
|
export { PRODUCTS, ProductMark };
|
|
46
|
-
export type { Product, ProductMarkProps };
|
|
69
|
+
export type { Product, ProductMarkDrawing, ProductMarkProps };
|
package/dist/product-mark.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { PRODUCTS, ProductMark } from './chunk-
|
|
1
|
+
export { PRODUCTS, ProductMark } from './chunk-7HJUA3FG.js';
|
|
2
2
|
import './chunk-TOSJN7HA.js';
|
package/package.json
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 180 180" fill="none">
|
|
2
|
+
<path data-part="ground" fill="#6a3cff" d="M0 0h180v180H0z"/>
|
|
3
|
+
<path data-part="body" fill="#7c56ff" d="M45 15h90l30 30v90l-30 30H45l-30-30V45z"/>
|
|
4
|
+
<path data-part="shade" fill="#5c24ff" d="M15 123v12l30 30h90l30-30v-12l-30 30H45z"/>
|
|
5
|
+
<path data-part="detail" data-motion="turn" fill="#ffffff" d="M84 48A63.54 63.54 0 0 0 129 93A63.54 63.54 0 0 0 84 138A63.54 63.54 0 0 0 39 93A63.54 63.54 0 0 0 84 48Z"/>
|
|
6
|
+
<path data-part="detail" data-motion="twinkle" fill="#ffffff" d="M120 39A29.43 29.43 0 0 0 138 57A29.43 29.43 0 0 0 120 75A29.43 29.43 0 0 0 102 57A29.43 29.43 0 0 0 120 39Z"/>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 180 180" fill="none">
|
|
2
|
+
<path data-part="ground" fill="#6a3cff" d="M0 0h180v180H0z"/>
|
|
3
|
+
<path data-part="body" fill="#7c56ff" d="M45 15h90l30 30v90l-30 30H45l-30-30V45z"/>
|
|
4
|
+
<path data-part="shade" fill="#5c24ff" d="M15 123v12l30 30h90l30-30v-12l-30 30H45z"/>
|
|
5
|
+
<path data-part="detail" fill-rule="evenodd" fill="#ffffff" d="M66 48H114L132 66V96L114 114H102V132L84 114H66L48 96V66ZM66 66H114L120 72V90L114 96H66L60 90V72Z"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 180 180" fill="none">
|
|
2
|
+
<path data-part="ground" fill="#6a3cff" d="M0 0h180v180H0z"/>
|
|
3
|
+
<path data-part="body" fill="#7c56ff" d="M45 15h90l30 30v90l-30 30H45l-30-30V45z"/>
|
|
4
|
+
<path data-part="shade" fill="#5c24ff" d="M15 123v12l30 30h90l30-30v-12l-30 30H45z"/>
|
|
5
|
+
<path data-part="detail" fill-rule="evenodd" fill="#ffffff" d="M66 42H96L120 66V126L114 132H66L60 126V48ZM72 54H90V72H72ZM72 84H108V96H72ZM72 108H96V120H72Z"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 180 180" fill="none">
|
|
2
|
+
<path data-part="ground" fill="#6a3cff" d="M0 0h180v180H0z"/>
|
|
3
|
+
<path data-part="body" fill="#7c56ff" d="M45 15h90l30 30v90l-30 30H45l-30-30V45z"/>
|
|
4
|
+
<path data-part="shade" fill="#5c24ff" d="M15 123v12l30 30h90l30-30v-12l-30 30H45z"/>
|
|
5
|
+
<path data-part="detail" fill-rule="evenodd" fill="#ffffff" d="M78 54L90 66L114 42L126 54L90 90L66 66ZM60 102H84L90 108V132L84 138H60L54 132V108ZM66 114V126H78V114ZM102 114H132V126H102Z"/>
|
|
6
|
+
</svg>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="none">
|
|
2
2
|
<path data-part="body" fill="#7c56ff" d="M11 2h26l9 9v26l-9 9H11l-9-9V11z"/>
|
|
3
|
-
<path data-part="shade" fill="#
|
|
4
|
-
<path data-part="
|
|
5
|
-
<path data-part="detail" fill="#ffffff" d="
|
|
3
|
+
<path data-part="shade" fill="#6a3cff" d="M2 33v4l9 9h26l9-9v-4l-9 9H11z"/>
|
|
4
|
+
<path data-part="keyline" fill="none" d="M11 2h26l9 9v26l-9 9H11l-9-9V11zM12.24 5 5 12.24v23.52L12.24 43h23.52L43 35.76V12.24L35.76 5z"/>
|
|
5
|
+
<path data-part="detail" data-motion="turn" fill="#ffffff" d="M22 10A21.18 21.18 0 0 0 37 25A21.18 21.18 0 0 0 22 40A21.18 21.18 0 0 0 7 25A21.18 21.18 0 0 0 22 10Z"/>
|
|
6
|
+
<path data-part="detail" data-motion="twinkle" fill="#ffffff" d="M34 7A9.81 9.81 0 0 0 40 13A9.81 9.81 0 0 0 34 19A9.81 9.81 0 0 0 28 13A9.81 9.81 0 0 0 34 7Z"/>
|
|
6
7
|
</svg>
|
package/svg/product/chat.svg
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="none">
|
|
2
2
|
<path data-part="body" fill="#7c56ff" d="M11 2h26l9 9v26l-9 9H11l-9-9V11z"/>
|
|
3
|
-
<path data-part="shade" fill="#
|
|
4
|
-
<path data-part="
|
|
5
|
-
<path data-part="
|
|
3
|
+
<path data-part="shade" fill="#6a3cff" d="M2 33v4l9 9h26l9-9v-4l-9 9H11z"/>
|
|
4
|
+
<path data-part="keyline" fill="none" d="M11 2h26l9 9v26l-9 9H11l-9-9V11zM12.24 5 5 12.24v23.52L12.24 43h23.52L43 35.76V12.24L35.76 5z"/>
|
|
5
|
+
<path data-part="detail" fill="#ffffff" fill-rule="evenodd" d="M16 10h16l6 6v10l-6 6h-4v6l-6-6h-6l-6-6V16zM16 16h16l2 2v6l-2 2H16l-2-2v-6z"/>
|
|
6
6
|
</svg>
|
package/svg/product/doclet.svg
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="none">
|
|
2
2
|
<path data-part="body" fill="#7c56ff" d="M11 2h26l9 9v26l-9 9H11l-9-9V11z"/>
|
|
3
|
-
<path data-part="shade" fill="#
|
|
4
|
-
<path data-part="
|
|
5
|
-
<path data-part="
|
|
3
|
+
<path data-part="shade" fill="#6a3cff" d="M2 33v4l9 9h26l9-9v-4l-9 9H11z"/>
|
|
4
|
+
<path data-part="keyline" fill="none" d="M11 2h26l9 9v26l-9 9H11l-9-9V11zM12.24 5 5 12.24v23.52L12.24 43h23.52L43 35.76V12.24L35.76 5z"/>
|
|
5
|
+
<path data-part="detail" fill="#ffffff" fill-rule="evenodd" d="M16 8h10l8 8v20l-2 2H16l-2-2V10zM18 12h6v6h-6zM18 22h12v4H18zM18 30h8v4h-8z"/>
|
|
6
6
|
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none">
|
|
2
|
+
<path data-part="body" fill="#7c56ff" d="M3 0h10l3 3v10l-3 3H3l-3-3V3z"/>
|
|
3
|
+
<path data-part="keyline" fill="none" d="M3 0h10l3 3v10l-3 3H3l-3-3V3zM3.41 1 1 3.41v9.18L3.41 15h9.18L15 12.59V3.41L12.59 1z"/>
|
|
4
|
+
<path data-part="detail" data-motion="turn" data-soon="tuck" fill="#ffffff" d="M6.5 4.5A8.17 8.17 0 0 0 11.5 9.5A8.17 8.17 0 0 0 6.5 14.5A8.17 8.17 0 0 0 1.5 9.5A8.17 8.17 0 0 0 6.5 4.5Z"/>
|
|
5
|
+
<path data-part="detail" data-motion="twinkle" fill="#ffffff" d="M11.5 2A4.56 4.56 0 0 0 14 4.5A4.56 4.56 0 0 0 11.5 7A4.56 4.56 0 0 0 9 4.5A4.56 4.56 0 0 0 11.5 2Z"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none">
|
|
2
|
+
<path data-part="body" fill="#7c56ff" d="M3 0h10l3 3v10l-3 3H3l-3-3V3z"/>
|
|
3
|
+
<path data-part="keyline" fill="none" d="M3 0h10l3 3v10l-3 3H3l-3-3V3zM3.41 1 1 3.41v9.18L3.41 15h9.18L15 12.59V3.41L12.59 1z"/>
|
|
4
|
+
<path data-part="detail" fill="#ffffff" fill-rule="evenodd" d="M4 3h8l2 2v4l-2 2h-2v3l-3-3H4l-2-2V5zM4 5h8v4H4z"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none">
|
|
2
|
+
<path data-part="body" fill="#7c56ff" d="M3 0h10l3 3v10l-3 3H3l-3-3V3z"/>
|
|
3
|
+
<path data-part="keyline" fill="none" d="M3 0h10l3 3v10l-3 3H3l-3-3V3zM3.41 1 1 3.41v9.18L3.41 15h9.18L15 12.59V3.41L12.59 1z"/>
|
|
4
|
+
<path data-part="detail" fill="#ffffff" fill-rule="evenodd" d="M4 2h5l3 3v8H4zM6 4h3v3H6zM6 8h4v1H6zM6 10h3v1H6z"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none">
|
|
2
|
+
<path data-part="body" fill="#7c56ff" d="M3 0h10l3 3v10l-3 3H3l-3-3V3z"/>
|
|
3
|
+
<path data-part="keyline" fill="none" d="M3 0h10l3 3v10l-3 3H3l-3-3V3zM3.41 1 1 3.41v9.18L3.41 15h9.18L15 12.59V3.41L12.59 1z"/>
|
|
4
|
+
<path data-part="detail" fill="#ffffff" fill-rule="evenodd" d="M5.5 3.5 7 5 10 2 11.5 3.5 7 8 4 5zM3 9h4v4H3zM4 10v2h2v-2zM9 10h5v2H9z"/>
|
|
5
|
+
</svg>
|
package/svg/product/worklet.svg
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="none">
|
|
2
2
|
<path data-part="body" fill="#7c56ff" d="M11 2h26l9 9v26l-9 9H11l-9-9V11z"/>
|
|
3
|
-
<path data-part="shade" fill="#
|
|
4
|
-
<path data-part="
|
|
5
|
-
<path data-part="
|
|
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"/>
|
|
3
|
+
<path data-part="shade" fill="#6a3cff" d="M2 33v4l9 9h26l9-9v-4l-9 9H11z"/>
|
|
4
|
+
<path data-part="keyline" fill="none" d="M11 2h26l9 9v26l-9 9H11l-9-9V11zM12.24 5 5 12.24v23.52L12.24 43h23.52L43 35.76V12.24L35.76 5z"/>
|
|
5
|
+
<path data-part="detail" fill="#ffffff" fill-rule="evenodd" d="M20 12 24 16 32 8 36 12 24 24 16 16zM14 28h8l2 2v8l-2 2h-8l-2-2v-8zM16 32v4h4v-4zM28 32h10v4H28z"/>
|
|
9
6
|
</svg>
|
|
@@ -1,41 +0,0 @@
|
|
|
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/chunk-2PBR5533.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { cssLength } from './chunk-TOSJN7HA.js';
|
|
2
|
-
import './ProductMark-7G2NG3XS.css';
|
|
3
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
var Assistant = (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: [
|
|
6
|
-
/* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M11 2h26l9 9v26l-9 9H11l-9-9V11z", "data-part": "body" }),
|
|
7
|
-
/* @__PURE__ */ jsx("path", { fill: "#5c24ff", d: "M2 33v4l9 9h26l9-9v-4l-9 9H11z", "data-part": "shade" }),
|
|
8
|
-
/* @__PURE__ */ jsx("path", { fill: "#fff", d: "m9 15 6-6h12v6zm24-6 6 6v12h-6zm6 24-6 6H21v-6zm-24 6-6-6V21h6z", "data-motion": "turn", "data-part": "detail" }),
|
|
9
|
-
/* @__PURE__ */ jsx("path", { fill: "#fff", d: "m24 18 6 6-6 6-6-6z", "data-part": "detail" })
|
|
10
|
-
] });
|
|
11
|
-
var Assistant_default = Assistant;
|
|
12
|
-
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: [
|
|
13
|
-
/* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M11 2h26l9 9v26l-9 9H11l-9-9V11z", "data-part": "body" }),
|
|
14
|
-
/* @__PURE__ */ jsx("path", { fill: "#5c24ff", d: "M2 33v4l9 9h26l9-9v-4l-9 9H11z", "data-part": "shade" }),
|
|
15
|
-
/* @__PURE__ */ jsx("path", { fill: "#fff", d: "M14 10h20l5 5v12l-5 5H23l-8 6v-6h-1l-5-5V15z", "data-part": "detail" }),
|
|
16
|
-
/* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M18 16h4v9h-4zm8 0h4v9h-4z", "data-part": "eye" })
|
|
17
|
-
] });
|
|
18
|
-
var Chat_default = Chat;
|
|
19
|
-
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: [
|
|
20
|
-
/* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M11 2h26l9 9v26l-9 9H11l-9-9V11z", "data-part": "body" }),
|
|
21
|
-
/* @__PURE__ */ jsx("path", { fill: "#5c24ff", d: "M2 33v4l9 9h26l9-9v-4l-9 9H11z", "data-part": "shade" }),
|
|
22
|
-
/* @__PURE__ */ jsx("path", { fill: "#fff", d: "m9 13 13 3v22L9 35zm30 0-13 3v22l13-3z", "data-part": "detail" }),
|
|
23
|
-
/* @__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" })
|
|
24
|
-
] });
|
|
25
|
-
var Doclet_default = Doclet;
|
|
26
|
-
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: [
|
|
27
|
-
/* @__PURE__ */ jsx("path", { fill: "#7c56ff", d: "M11 2h26l9 9v26l-9 9H11l-9-9V11z", "data-part": "body" }),
|
|
28
|
-
/* @__PURE__ */ jsx("path", { fill: "#5c24ff", d: "M2 33v4l9 9h26l9-9v-4l-9 9H11z", "data-part": "shade" }),
|
|
29
|
-
/* @__PURE__ */ jsx("path", { fill: "#fff", d: "M11 12h10v10H11z", "data-part": "detail" }),
|
|
30
|
-
/* @__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" }),
|
|
31
|
-
/* @__PURE__ */ jsx("path", { fill: "#fff", d: "M24 14h13v6H24z", "data-part": "detail" }),
|
|
32
|
-
/* @__PURE__ */ jsx("path", { fill: "#c9b8ff", d: "M11 26h10v10H11z", "data-part": "dim" }),
|
|
33
|
-
/* @__PURE__ */ jsx("path", { fill: "#fff", d: "M24 28h9v6h-9z", "data-part": "detail" })
|
|
34
|
-
] });
|
|
35
|
-
var Worklet_default = Worklet;
|
|
36
|
-
var PRODUCTS = ["worklet", "doclet", "chat", "assistant"];
|
|
37
|
-
var drawings = {
|
|
38
|
-
worklet: Worklet_default,
|
|
39
|
-
doclet: Doclet_default,
|
|
40
|
-
chat: Chat_default,
|
|
41
|
-
assistant: Assistant_default
|
|
42
|
-
};
|
|
43
|
-
function ProductMark({ product, size, title, soon = false, className, ...rest }) {
|
|
44
|
-
const Drawing = drawings[product];
|
|
45
|
-
const dimension = cssLength(size);
|
|
46
|
-
const semantics = title ? { role: "img", "aria-label": title, "aria-hidden": void 0, focusable: "false" } : { "aria-hidden": true, focusable: "false" };
|
|
47
|
-
const classes = ["crewlet-product-mark", `crewlet-product-mark--${product}`];
|
|
48
|
-
if (soon) classes.push("crewlet-product-mark--soon");
|
|
49
|
-
if (className !== void 0) classes.push(className);
|
|
50
|
-
return /* @__PURE__ */ jsx(Drawing, { width: dimension, height: dimension, ...semantics, className: classes.join(" "), ...rest });
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export { PRODUCTS, ProductMark };
|