@freightos/icons 1.0.12 → 1.0.16
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 +29 -134
- package/dist/cjs/colors.js +17 -14
- package/dist/cjs/icons/IconArrowForward.js +1 -1
- package/dist/cjs/icons/IconArrowLeft.js +54 -0
- package/dist/cjs/icons/IconArrowRight.js +54 -0
- package/dist/cjs/icons/IconBlock.js +1 -1
- package/dist/cjs/icons/IconCall.js +1 -1
- package/dist/cjs/icons/IconChooseList.js +3 -3
- package/dist/cjs/icons/IconCircleCheck.js +54 -0
- package/dist/cjs/icons/IconCloseCircle.js +1 -1
- package/dist/cjs/icons/IconCrate.js +2 -2
- package/dist/cjs/icons/IconDot.js +53 -0
- package/dist/cjs/icons/IconExchange.js +1 -1
- package/dist/cjs/icons/IconExternalLink.js +53 -0
- package/dist/cjs/icons/IconLink.js +2 -3
- package/dist/cjs/icons/IconListBullet.js +2 -7
- package/dist/cjs/icons/IconListNumbered.js +2 -8
- package/dist/cjs/icons/IconLoaderCircle.js +53 -0
- package/dist/cjs/icons/IconManageSearch.js +1 -1
- package/dist/cjs/icons/IconMonitor.js +53 -0
- package/dist/cjs/icons/IconOctagonX.js +55 -0
- package/dist/cjs/icons/IconSmartphone.js +53 -0
- package/dist/cjs/icons/IconSync.js +1 -1
- package/dist/cjs/icons/IconTablet.js +53 -0
- package/dist/cjs/icons/IconTextBold.js +2 -3
- package/dist/cjs/icons/IconTextItalic.js +2 -4
- package/dist/cjs/icons/IconTextUnderline.js +2 -3
- package/dist/cjs/icons/IconTriangleAlert.js +55 -0
- package/dist/cjs/index.js +24 -17
- package/dist/esm/colors.js +17 -14
- package/dist/esm/icons/IconArrowForward.js +1 -1
- package/dist/esm/icons/IconArrowLeft.js +18 -0
- package/dist/esm/icons/IconArrowRight.js +18 -0
- package/dist/esm/icons/IconBlock.js +1 -1
- package/dist/esm/icons/IconCall.js +1 -1
- package/dist/esm/icons/IconChooseList.js +3 -3
- package/dist/esm/icons/IconCircleCheck.js +18 -0
- package/dist/esm/icons/IconCloseCircle.js +1 -1
- package/dist/esm/icons/IconCrate.js +2 -2
- package/dist/esm/icons/IconDot.js +17 -0
- package/dist/esm/icons/IconExchange.js +1 -1
- package/dist/esm/icons/IconExternalLink.js +17 -0
- package/dist/esm/icons/IconLink.js +2 -3
- package/dist/esm/icons/IconListBullet.js +2 -7
- package/dist/esm/icons/IconListNumbered.js +2 -8
- package/dist/esm/icons/IconLoaderCircle.js +17 -0
- package/dist/esm/icons/IconManageSearch.js +1 -1
- package/dist/esm/icons/IconMonitor.js +17 -0
- package/dist/esm/icons/IconOctagonX.js +19 -0
- package/dist/esm/icons/IconSmartphone.js +17 -0
- package/dist/esm/icons/IconSync.js +1 -1
- package/dist/esm/icons/IconTablet.js +17 -0
- package/dist/esm/icons/IconTextBold.js +2 -3
- package/dist/esm/icons/IconTextItalic.js +2 -4
- package/dist/esm/icons/IconTextUnderline.js +2 -3
- package/dist/esm/icons/IconTriangleAlert.js +19 -0
- package/dist/esm/index.js +10 -7
- package/dist/types/colors.d.ts +7 -5
- package/dist/types/icons/IconArrowLeft.d.ts +3 -0
- package/dist/types/icons/IconArrowRight.d.ts +3 -0
- package/dist/types/icons/IconCircleCheck.d.ts +3 -0
- package/dist/types/icons/IconDot.d.ts +3 -0
- package/dist/types/icons/IconExternalLink.d.ts +3 -0
- package/dist/types/icons/IconLoaderCircle.d.ts +3 -0
- package/dist/types/icons/IconMonitor.d.ts +3 -0
- package/dist/types/icons/IconOctagonX.d.ts +3 -0
- package/dist/types/icons/IconSmartphone.d.ts +3 -0
- package/dist/types/icons/IconTablet.d.ts +3 -0
- package/dist/types/icons/IconTriangleAlert.d.ts +3 -0
- package/dist/types/index.d.ts +10 -6
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @freightos/icons
|
|
2
2
|
|
|
3
|
-
A comprehensive icon library with
|
|
3
|
+
A comprehensive icon library with 217 SVG icons designed for Freightos applications. Built with React, TypeScript, and developer experience in mind.
|
|
4
|
+
|
|
5
|
+
This package lives inside the [FreightWind](https://freightwind.freightos.com) monorepo at `packages/icons/`.
|
|
4
6
|
|
|
5
7
|
## Features
|
|
6
8
|
|
|
7
|
-
- 🎨 **
|
|
9
|
+
- 🎨 **217 Icons** - Complete set of professionally designed icons
|
|
8
10
|
- 📦 **Tree-shakeable** - Import only what you need
|
|
9
11
|
- 🔷 **TypeScript First** - Full type definitions included
|
|
10
12
|
- ⚡ **Dual Format** - Both ESM and CJS builds included
|
|
@@ -24,6 +26,8 @@ yarn add @freightos/icons
|
|
|
24
26
|
pnpm add @freightos/icons
|
|
25
27
|
```
|
|
26
28
|
|
|
29
|
+
> **Monorepo users:** Within the FreightWind repo, icons are linked via `workspace:*` — no install needed.
|
|
30
|
+
|
|
27
31
|
## Usage Guide
|
|
28
32
|
|
|
29
33
|
### Basic Usage
|
|
@@ -127,8 +131,8 @@ The following Freightos design system colors are available with autocomplete sup
|
|
|
127
131
|
|
|
128
132
|
```tsx
|
|
129
133
|
// With click handler
|
|
130
|
-
<IconSearch
|
|
131
|
-
onClick={() => console.log('Search clicked')}
|
|
134
|
+
<IconSearch
|
|
135
|
+
onClick={() => console.log('Search clicked')}
|
|
132
136
|
className="cursor-pointer"
|
|
133
137
|
/>
|
|
134
138
|
|
|
@@ -196,53 +200,6 @@ function Navigation() {
|
|
|
196
200
|
}
|
|
197
201
|
```
|
|
198
202
|
|
|
199
|
-
### Type-Safe Component Props
|
|
200
|
-
|
|
201
|
-
```typescript
|
|
202
|
-
import { Icon } from '@freightos/icons';
|
|
203
|
-
|
|
204
|
-
interface ButtonProps {
|
|
205
|
-
label: string;
|
|
206
|
-
icon: Icon;
|
|
207
|
-
onClick: () => void;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
function IconButton({ label, icon: IconComponent, onClick }: ButtonProps) {
|
|
211
|
-
return (
|
|
212
|
-
<button onClick={onClick}>
|
|
213
|
-
<IconComponent size={20} />
|
|
214
|
-
{label}
|
|
215
|
-
</button>
|
|
216
|
-
);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
// Usage
|
|
220
|
-
<IconButton
|
|
221
|
-
icon={IconSearch}
|
|
222
|
-
label="Search"
|
|
223
|
-
onClick={() => console.log('clicked')}
|
|
224
|
-
/>
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
### Configuration Objects
|
|
228
|
-
|
|
229
|
-
```typescript
|
|
230
|
-
import { Icon, IconDashboard, IconSettings, IconUser } from '@freightos/icons';
|
|
231
|
-
|
|
232
|
-
interface MenuItem {
|
|
233
|
-
id: string;
|
|
234
|
-
label: string;
|
|
235
|
-
icon: Icon;
|
|
236
|
-
badge?: number;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
const menuConfig: MenuItem[] = [
|
|
240
|
-
{ id: '1', label: 'Dashboard', icon: IconDashboard },
|
|
241
|
-
{ id: '2', label: 'Settings', icon: IconSettings },
|
|
242
|
-
{ id: '3', label: 'Profile', icon: IconUser, badge: 5 },
|
|
243
|
-
];
|
|
244
|
-
```
|
|
245
|
-
|
|
246
203
|
### Dynamic Icon Selection
|
|
247
204
|
|
|
248
205
|
```typescript
|
|
@@ -256,82 +213,19 @@ const iconMap: Record<string, Icon> = {
|
|
|
256
213
|
|
|
257
214
|
function DynamicIcon({ name }: { name: string }) {
|
|
258
215
|
const IconComponent = iconMap[name];
|
|
259
|
-
|
|
216
|
+
|
|
260
217
|
if (!IconComponent) {
|
|
261
218
|
console.warn(`Icon "${name}" not found`);
|
|
262
219
|
return null;
|
|
263
220
|
}
|
|
264
|
-
|
|
265
|
-
return <IconComponent size={24} />;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
// Usage
|
|
269
|
-
<DynamicIcon name="search" />
|
|
270
|
-
<DynamicIcon name="user" />
|
|
271
|
-
```
|
|
272
|
-
|
|
273
|
-
## Styling with CSS Frameworks
|
|
274
|
-
|
|
275
|
-
### Tailwind CSS
|
|
276
221
|
|
|
277
|
-
|
|
278
|
-
// Size with Tailwind
|
|
279
|
-
<IconSearch className="w-6 h-6" />
|
|
280
|
-
<IconSearch className="w-8 h-8" />
|
|
281
|
-
|
|
282
|
-
// Color with Tailwind
|
|
283
|
-
<IconSearch className="text-blue-500" />
|
|
284
|
-
<IconSearch className="text-red-600" />
|
|
285
|
-
|
|
286
|
-
// Responsive
|
|
287
|
-
<IconSearch className="w-4 h-4 md:w-6 md:h-6 lg:w-8 lg:h-8" />
|
|
288
|
-
|
|
289
|
-
// Dark mode
|
|
290
|
-
<IconSearch className="text-gray-900 dark:text-gray-100" />
|
|
291
|
-
|
|
292
|
-
// Interactive states
|
|
293
|
-
<IconSearch className="text-gray-600 hover:text-blue-500 active:text-blue-700 transition-colors" />
|
|
294
|
-
|
|
295
|
-
// In a button
|
|
296
|
-
<button className="flex items-center gap-2 px-4 py-2 bg-blue-500 text-white rounded">
|
|
297
|
-
<IconSearch className="w-5 h-5" />
|
|
298
|
-
<span>Search</span>
|
|
299
|
-
</button>
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
### Custom CSS
|
|
303
|
-
|
|
304
|
-
```css
|
|
305
|
-
.icon-primary {
|
|
306
|
-
width: 24px;
|
|
307
|
-
height: 24px;
|
|
308
|
-
color: var(--color-primary);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.icon-large {
|
|
312
|
-
width: 48px;
|
|
313
|
-
height: 48px;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.icon-interactive {
|
|
317
|
-
cursor: pointer;
|
|
318
|
-
transition: color 0.2s;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
.icon-interactive:hover {
|
|
322
|
-
color: var(--color-primary);
|
|
222
|
+
return <IconComponent size={24} />;
|
|
323
223
|
}
|
|
324
224
|
```
|
|
325
225
|
|
|
326
|
-
```tsx
|
|
327
|
-
<IconSearch className="icon-primary" />
|
|
328
|
-
<IconUser className="icon-large" />
|
|
329
|
-
<IconDashboard className="icon-interactive" />
|
|
330
|
-
```
|
|
331
|
-
|
|
332
226
|
## Available Icons
|
|
333
227
|
|
|
334
|
-
All
|
|
228
|
+
All 217 icons are available, organized by category:
|
|
335
229
|
|
|
336
230
|
- **Navigation**: Search, MenuOpen, MenuClose, ArrowBack, ArrowForward, CaretUp, CaretDown, etc.
|
|
337
231
|
- **Actions**: Edit, Trash, Save, Copy, Check, Close, Plus, Minus, Refresh, etc.
|
|
@@ -344,7 +238,7 @@ All 213 icons are available, organized by category:
|
|
|
344
238
|
- **Interface**: Dashboard, Settings, Filter, List, Grid, Table, Tile, etc.
|
|
345
239
|
- **Logistics**: Container, Box, Pallet, Crate, Customs, Insurance, Port, etc.
|
|
346
240
|
|
|
347
|
-
See your IDE's autocomplete for the complete list of all
|
|
241
|
+
See your IDE's autocomplete for the complete list of all 217 icons.
|
|
348
242
|
|
|
349
243
|
## Icon Naming Convention
|
|
350
244
|
|
|
@@ -358,11 +252,11 @@ Icons follow a consistent naming pattern:
|
|
|
358
252
|
|
|
359
253
|
### Adding New Icons
|
|
360
254
|
|
|
361
|
-
1. Add your SVG file to
|
|
255
|
+
1. Add your SVG file to `packages/icons/svg/` (use kebab-case naming: `my-icon.svg`)
|
|
362
256
|
2. Generate React components:
|
|
363
257
|
|
|
364
258
|
```bash
|
|
365
|
-
|
|
259
|
+
pnpm --filter @freightos/icons run generate
|
|
366
260
|
```
|
|
367
261
|
|
|
368
262
|
This will:
|
|
@@ -373,32 +267,33 @@ This will:
|
|
|
373
267
|
3. Build the package:
|
|
374
268
|
|
|
375
269
|
```bash
|
|
376
|
-
|
|
270
|
+
pnpm --filter @freightos/icons run build
|
|
377
271
|
```
|
|
378
272
|
|
|
379
273
|
### Available Scripts
|
|
380
274
|
|
|
381
275
|
```bash
|
|
382
276
|
# Generate icons from SVG files
|
|
383
|
-
|
|
277
|
+
pnpm --filter @freightos/icons run generate
|
|
384
278
|
|
|
385
279
|
# Build all formats (ESM + CJS + Types)
|
|
386
|
-
|
|
280
|
+
pnpm --filter @freightos/icons run build
|
|
387
281
|
|
|
388
|
-
#
|
|
389
|
-
|
|
282
|
+
# Generate and build in one command
|
|
283
|
+
pnpm --filter @freightos/icons run dev
|
|
390
284
|
|
|
391
|
-
#
|
|
392
|
-
|
|
285
|
+
# Clean build output
|
|
286
|
+
pnpm --filter @freightos/icons run clean
|
|
287
|
+
```
|
|
393
288
|
|
|
394
|
-
|
|
395
|
-
npm run build:types
|
|
289
|
+
### Publishing
|
|
396
290
|
|
|
397
|
-
|
|
398
|
-
npm run clean
|
|
291
|
+
The package is published to npm as `@freightos/icons`:
|
|
399
292
|
|
|
400
|
-
|
|
401
|
-
|
|
293
|
+
```bash
|
|
294
|
+
pnpm --filter @freightos/icons run release:patch # 1.0.12 → 1.0.13
|
|
295
|
+
pnpm --filter @freightos/icons run release:minor # 1.0.12 → 1.1.0
|
|
296
|
+
pnpm --filter @freightos/icons run release:major # 1.0.12 → 2.0.0
|
|
402
297
|
```
|
|
403
298
|
|
|
404
299
|
## Maintainer
|
package/dist/cjs/colors.js
CHANGED
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
* These color tokens can be used with the `color` prop on any icon component
|
|
6
6
|
* to get autocomplete support for design system colors.
|
|
7
7
|
*
|
|
8
|
+
* Names match the FDS token convention (e.g. `blue-30` = primary blue).
|
|
9
|
+
*
|
|
8
10
|
* @example
|
|
9
|
-
* <IconSearch color="blue" />
|
|
10
|
-
* <IconError color="red" />
|
|
11
|
-
* <IconWarning color="yellow" />
|
|
12
|
-
* <IconSuccess color="green" />
|
|
11
|
+
* <IconSearch color="blue-30" />
|
|
12
|
+
* <IconError color="red-30" />
|
|
13
|
+
* <IconWarning color="yellow-30" />
|
|
14
|
+
* <IconSuccess color="green-30" />
|
|
13
15
|
*/
|
|
14
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
17
|
exports.FREIGHTOS_COLORS = void 0;
|
|
@@ -19,28 +21,29 @@ exports.FREIGHTOS_COLORS = void 0;
|
|
|
19
21
|
*/
|
|
20
22
|
exports.FREIGHTOS_COLORS = {
|
|
21
23
|
// Blues
|
|
24
|
+
"blue-05": "#b0cee8",
|
|
22
25
|
"blue-10": "#e1f5f9",
|
|
23
26
|
"blue-20": "#ace8f0",
|
|
24
|
-
blue: "#2075bd",
|
|
27
|
+
"blue-30": "#2075bd",
|
|
25
28
|
"blue-40": "#125c9b",
|
|
26
29
|
"blue-50": "#05387d",
|
|
27
30
|
// Reds
|
|
28
31
|
"red-10": "#ffede1",
|
|
29
32
|
"red-20": "#fbbea4",
|
|
30
|
-
red: "#d8271e",
|
|
33
|
+
"red-30": "#d8271e",
|
|
31
34
|
"red-40": "#9b0f1f",
|
|
32
35
|
"red-50": "#670521",
|
|
33
36
|
// Yellows
|
|
34
37
|
"yellow-10": "#fef6cc",
|
|
35
38
|
"yellow-20": "#fdea9a",
|
|
36
|
-
yellow: "#edaf07",
|
|
37
|
-
"yellow-
|
|
38
|
-
"yellow-
|
|
39
|
-
"yellow-
|
|
39
|
+
"yellow-30": "#edaf07",
|
|
40
|
+
"yellow-40": "#dc9500",
|
|
41
|
+
"yellow-50": "#9c6b02",
|
|
42
|
+
"yellow-60": "#714601",
|
|
40
43
|
// Greens
|
|
41
44
|
"green-10": "#eafdea",
|
|
42
45
|
"green-20": "#bdf6c2",
|
|
43
|
-
green: "#47a96e",
|
|
46
|
+
"green-30": "#47a96e",
|
|
44
47
|
"green-40": "#237957",
|
|
45
48
|
"green-50": "#0d5143",
|
|
46
49
|
// Grays
|
|
@@ -55,10 +58,10 @@ exports.FREIGHTOS_COLORS = {
|
|
|
55
58
|
"gray-70": "#6a6f73",
|
|
56
59
|
"gray-80": "#53575f",
|
|
57
60
|
"gray-90": "#3b3f4b",
|
|
58
|
-
gray: "#232537",
|
|
61
|
+
"gray-100": "#232537",
|
|
59
62
|
// Purples
|
|
60
|
-
"purple-
|
|
61
|
-
purple: "#
|
|
63
|
+
"purple-1": "#715397",
|
|
64
|
+
"purple-2": "#e7d8fc",
|
|
62
65
|
// Special
|
|
63
66
|
transparent: "transparent",
|
|
64
67
|
};
|
|
@@ -48,7 +48,7 @@ exports.IconArrowForward = (0, react_1.forwardRef)(({ size = '1em', color = 'cur
|
|
|
48
48
|
verticalAlign: 'middle',
|
|
49
49
|
...style,
|
|
50
50
|
}, ...props },
|
|
51
|
-
react_1.default.createElement("g", {
|
|
51
|
+
react_1.default.createElement("g", { clipPath: "url(#clip0_805_28001)" },
|
|
52
52
|
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.998 3.998l-1.41 1.41L16.166 11H3.998v1.995h12.168l-5.578 5.593 1.41 1.41 8-8-8-8z", fill: "currentColor" })),
|
|
53
53
|
react_1.default.createElement("defs", null,
|
|
54
54
|
react_1.default.createElement("clipPath", { id: "clip0_805_28001" },
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.IconArrowLeft = void 0;
|
|
37
|
+
const react_1 = __importStar(require("react"));
|
|
38
|
+
const colors_1 = require("../colors");
|
|
39
|
+
exports.IconArrowLeft = (0, react_1.forwardRef)(({ size = '1em', color = 'currentColor', style, ...props }, ref) => {
|
|
40
|
+
const resolvedColor = color && color in colors_1.FREIGHTOS_COLORS ? colors_1.FREIGHTOS_COLORS[color] : color;
|
|
41
|
+
return (react_1.default.createElement("svg", { ref: ref, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", color: resolvedColor, style: {
|
|
42
|
+
width: size,
|
|
43
|
+
height: size,
|
|
44
|
+
minWidth: size,
|
|
45
|
+
minHeight: size,
|
|
46
|
+
flexShrink: 0,
|
|
47
|
+
display: 'inline-block',
|
|
48
|
+
verticalAlign: 'middle',
|
|
49
|
+
...style,
|
|
50
|
+
}, ...props },
|
|
51
|
+
react_1.default.createElement("line", { x1: "19", y1: "12", x2: "5", y2: "12", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
52
|
+
react_1.default.createElement("polyline", { points: "12 19 5 12 12 5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })));
|
|
53
|
+
});
|
|
54
|
+
exports.IconArrowLeft.displayName = 'IconArrowLeft';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.IconArrowRight = void 0;
|
|
37
|
+
const react_1 = __importStar(require("react"));
|
|
38
|
+
const colors_1 = require("../colors");
|
|
39
|
+
exports.IconArrowRight = (0, react_1.forwardRef)(({ size = '1em', color = 'currentColor', style, ...props }, ref) => {
|
|
40
|
+
const resolvedColor = color && color in colors_1.FREIGHTOS_COLORS ? colors_1.FREIGHTOS_COLORS[color] : color;
|
|
41
|
+
return (react_1.default.createElement("svg", { ref: ref, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", color: resolvedColor, style: {
|
|
42
|
+
width: size,
|
|
43
|
+
height: size,
|
|
44
|
+
minWidth: size,
|
|
45
|
+
minHeight: size,
|
|
46
|
+
flexShrink: 0,
|
|
47
|
+
display: 'inline-block',
|
|
48
|
+
verticalAlign: 'middle',
|
|
49
|
+
...style,
|
|
50
|
+
}, ...props },
|
|
51
|
+
react_1.default.createElement("line", { x1: "5", y1: "12", x2: "19", y2: "12", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
52
|
+
react_1.default.createElement("polyline", { points: "12 5 19 12 12 19", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })));
|
|
53
|
+
});
|
|
54
|
+
exports.IconArrowRight.displayName = 'IconArrowRight';
|
|
@@ -48,7 +48,7 @@ exports.IconBlock = (0, react_1.forwardRef)(({ size = '1em', color = 'currentCol
|
|
|
48
48
|
verticalAlign: 'middle',
|
|
49
49
|
...style,
|
|
50
50
|
}, ...props },
|
|
51
|
-
react_1.default.createElement("g", {
|
|
51
|
+
react_1.default.createElement("g", { clipPath: "url(#clip0_805_27957)" },
|
|
52
52
|
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 2a10 10 0 100 20 10 10 0 000-20zM3.995 12A8.004 8.004 0 0112 3.995a7.87 7.87 0 014.899 1.696L5.69 16.899A7.87 7.87 0 013.995 12zM12 20.005a7.87 7.87 0 01-4.899-1.696L18.31 7.101A7.87 7.87 0 0120.004 12 8.004 8.004 0 0112 20.005z", fill: "currentColor" })),
|
|
53
53
|
react_1.default.createElement("defs", null,
|
|
54
54
|
react_1.default.createElement("clipPath", { id: "clip0_805_27957" },
|
|
@@ -48,7 +48,7 @@ exports.IconCall = (0, react_1.forwardRef)(({ size = '1em', color = 'currentColo
|
|
|
48
48
|
verticalAlign: 'middle',
|
|
49
49
|
...style,
|
|
50
50
|
}, ...props },
|
|
51
|
-
react_1.default.createElement("g", {
|
|
51
|
+
react_1.default.createElement("g", { clipPath: "url(#clip0_805_27887)" },
|
|
52
52
|
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.933 4.225c.065.973.232 1.937.5 2.875L5.1 8.433a16.333 16.333 0 01-.833-4.208h1.666zm10.959 13.333c.94.266 1.907.434 2.883.5v1.667c-1.435-.1-2.851-.38-4.217-.833l1.334-1.325v-.009zM7 2H3.108A1.117 1.117 0 002 3.108 18.892 18.892 0 0020.892 22 1.117 1.117 0 0022 20.892V17a1.117 1.117 0 00-1.108-1.108c-1.348 0-2.687-.214-3.967-.634a.99.99 0 00-.35-.058 1.14 1.14 0 00-.783.325l-2.45 2.442a16.825 16.825 0 01-7.317-7.317L8.467 8.2a1.108 1.108 0 00.275-1.133A12.67 12.67 0 018.108 3.1 1.117 1.117 0 007 2z", fill: "currentColor" })),
|
|
53
53
|
react_1.default.createElement("defs", null,
|
|
54
54
|
react_1.default.createElement("clipPath", { id: "clip0_805_27887" },
|
|
@@ -50,8 +50,8 @@ exports.IconChooseList = (0, react_1.forwardRef)(({ size = '1em', color = 'curre
|
|
|
50
50
|
}, ...props },
|
|
51
51
|
react_1.default.createElement("defs", null,
|
|
52
52
|
react_1.default.createElement("clipPath", { id: "a" },
|
|
53
|
-
react_1.default.createElement("path", { fill: "
|
|
54
|
-
react_1.default.createElement("g", {
|
|
55
|
-
react_1.default.createElement("path", { fill: "
|
|
53
|
+
react_1.default.createElement("path", { fill: "none", d: "M8.4 0c.968 0 1.794.338 2.476 1.012a3.318 3.318 0 011.024 2.45 3.274 3.274 0 01-.7 2.042l2.8 2.77-.735.726-2.8-2.77c-.303.232-.63.405-.98.52-.35.115-.712.173-1.085.173-.968 0-1.794-.337-2.476-1.012A3.318 3.318 0 014.9 3.46c0-.957.341-1.773 1.024-2.448C6.606.338 7.432 0 8.4 0zM7 7.962V9H0V7.962h7zm1.4-6.924c-.677 0-1.254.237-1.732.71a2.322 2.322 0 00-.718 1.714c0 .669.24 1.24.718 1.713.478.473 1.055.71 1.732.71s1.254-.237 1.732-.71a2.322 2.322 0 00.718-1.713c0-.67-.24-1.24-.717-1.714a2.374 2.374 0 00-1.733-.71zM3.5 4.327v1.038H0V4.327h3.5zm0-3.635v1.039H0V.692h3.5z" }))),
|
|
54
|
+
react_1.default.createElement("g", { clipPath: "url(#a)", transform: "translate(1 3)" },
|
|
55
|
+
react_1.default.createElement("path", { fill: "none", d: "M0 0h14v9H0V0z" }))));
|
|
56
56
|
});
|
|
57
57
|
exports.IconChooseList.displayName = 'IconChooseList';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.IconCircleCheck = void 0;
|
|
37
|
+
const react_1 = __importStar(require("react"));
|
|
38
|
+
const colors_1 = require("../colors");
|
|
39
|
+
exports.IconCircleCheck = (0, react_1.forwardRef)(({ size = '1em', color = 'currentColor', style, ...props }, ref) => {
|
|
40
|
+
const resolvedColor = color && color in colors_1.FREIGHTOS_COLORS ? colors_1.FREIGHTOS_COLORS[color] : color;
|
|
41
|
+
return (react_1.default.createElement("svg", { ref: ref, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", color: resolvedColor, style: {
|
|
42
|
+
width: size,
|
|
43
|
+
height: size,
|
|
44
|
+
minWidth: size,
|
|
45
|
+
minHeight: size,
|
|
46
|
+
flexShrink: 0,
|
|
47
|
+
display: 'inline-block',
|
|
48
|
+
verticalAlign: 'middle',
|
|
49
|
+
...style,
|
|
50
|
+
}, ...props },
|
|
51
|
+
react_1.default.createElement("circle", { cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "2" }),
|
|
52
|
+
react_1.default.createElement("path", { fill: "none", d: "M9 12l2 2 4-4", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })));
|
|
53
|
+
});
|
|
54
|
+
exports.IconCircleCheck.displayName = 'IconCircleCheck';
|
|
@@ -48,6 +48,6 @@ exports.IconCloseCircle = (0, react_1.forwardRef)(({ size = '1em', color = 'curr
|
|
|
48
48
|
verticalAlign: 'middle',
|
|
49
49
|
...style,
|
|
50
50
|
}, ...props },
|
|
51
|
-
react_1.default.createElement("path", { fill: "
|
|
51
|
+
react_1.default.createElement("path", { fill: "none", d: "M21.66 12.23l-1.89-1.89L16 14.11l-3.77-3.77-1.89 1.89L14.11 16l-3.77 3.77 1.89 1.89L16 17.89l3.77 3.77 1.89-1.89L17.89 16zM16 2.67A13.33 13.33 0 1029.33 16 13.33 13.33 0 0016 2.67z", fillRule: "evenodd" })));
|
|
52
52
|
});
|
|
53
53
|
exports.IconCloseCircle.displayName = 'IconCloseCircle';
|
|
@@ -48,7 +48,7 @@ exports.IconCrate = (0, react_1.forwardRef)(({ size = '1em', color = 'currentCol
|
|
|
48
48
|
verticalAlign: 'middle',
|
|
49
49
|
...style,
|
|
50
50
|
}, ...props },
|
|
51
|
-
react_1.default.createElement("path", { fill: "
|
|
52
|
-
react_1.default.createElement("path", { fill: "
|
|
51
|
+
react_1.default.createElement("path", { fill: "none", d: "M12 20.735V8.88m0 0l9.697-3.12M12 8.88L2.303 5.76m19.475.025l-9.697-2.774a.295.295 0 00-.162 0L2.222 5.784a.303.303 0 00-.16.112.318.318 0 00-.062.189v11.83c0 .14.09.262.222.3l9.697 2.774c.053.015.11.015.162 0l9.697-2.773a.303.303 0 00.16-.112.318.318 0 00.062-.189V6.085a.317.317 0 00-.062-.188.303.303 0 00-.16-.112v0z", stroke: "currentColor", strokeWidth: "1.5" }),
|
|
52
|
+
react_1.default.createElement("path", { fill: "none", d: "M12.382 9.098l4.26 4.386-4.303 7.09.267.161.267.163 4.22-6.95 4.38 4.51.224-.218.224-.218-4.493-4.626 4.536-7.473-.267-.162-.267-.163-4.452 7.334-4.148-4.27-.224.218-.224.218zm-9.855 9.36l4.27-4.396 4.333 6.84.264-.167.264-.167-4.413-6.967 4.373-4.503-.224-.218-.224-.217-4.27 4.395-4.333-6.84-.264.167-.264.167 4.414 6.967-4.374 4.503.224.218.224.217z", stroke: "currentColor", strokeWidth: ".625" })));
|
|
53
53
|
});
|
|
54
54
|
exports.IconCrate.displayName = 'IconCrate';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.IconDot = void 0;
|
|
37
|
+
const react_1 = __importStar(require("react"));
|
|
38
|
+
const colors_1 = require("../colors");
|
|
39
|
+
exports.IconDot = (0, react_1.forwardRef)(({ size = '1em', color = 'currentColor', style, ...props }, ref) => {
|
|
40
|
+
const resolvedColor = color && color in colors_1.FREIGHTOS_COLORS ? colors_1.FREIGHTOS_COLORS[color] : color;
|
|
41
|
+
return (react_1.default.createElement("svg", { ref: ref, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", color: resolvedColor, style: {
|
|
42
|
+
width: size,
|
|
43
|
+
height: size,
|
|
44
|
+
minWidth: size,
|
|
45
|
+
minHeight: size,
|
|
46
|
+
flexShrink: 0,
|
|
47
|
+
display: 'inline-block',
|
|
48
|
+
verticalAlign: 'middle',
|
|
49
|
+
...style,
|
|
50
|
+
}, ...props },
|
|
51
|
+
react_1.default.createElement("circle", { cx: "12", cy: "12", r: "4", fill: "currentColor" })));
|
|
52
|
+
});
|
|
53
|
+
exports.IconDot.displayName = 'IconDot';
|
|
@@ -48,6 +48,6 @@ exports.IconExchange = (0, react_1.forwardRef)(({ size = '1em', color = 'current
|
|
|
48
48
|
verticalAlign: 'middle',
|
|
49
49
|
...style,
|
|
50
50
|
}, ...props },
|
|
51
|
-
react_1.default.createElement("path", { fill: "
|
|
51
|
+
react_1.default.createElement("path", { fill: "none", d: "M21 9l-4-4v3h-7v2h7v3M7 11l-4 4 4 4v-3h7v-2H7v-3z" })));
|
|
52
52
|
});
|
|
53
53
|
exports.IconExchange.displayName = 'IconExchange';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.IconExternalLink = void 0;
|
|
37
|
+
const react_1 = __importStar(require("react"));
|
|
38
|
+
const colors_1 = require("../colors");
|
|
39
|
+
exports.IconExternalLink = (0, react_1.forwardRef)(({ size = '1em', color = 'currentColor', style, ...props }, ref) => {
|
|
40
|
+
const resolvedColor = color && color in colors_1.FREIGHTOS_COLORS ? colors_1.FREIGHTOS_COLORS[color] : color;
|
|
41
|
+
return (react_1.default.createElement("svg", { ref: ref, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", color: resolvedColor, style: {
|
|
42
|
+
width: size,
|
|
43
|
+
height: size,
|
|
44
|
+
minWidth: size,
|
|
45
|
+
minHeight: size,
|
|
46
|
+
flexShrink: 0,
|
|
47
|
+
display: 'inline-block',
|
|
48
|
+
verticalAlign: 'middle',
|
|
49
|
+
...style,
|
|
50
|
+
}, ...props },
|
|
51
|
+
react_1.default.createElement("path", { d: "M19 19H5V5H12V3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V12H19V19ZM14 3V5H17.59L7.76 14.83L9.17 16.24L19 6.41V10H21V3H14Z", fill: "currentColor" })));
|
|
52
|
+
});
|
|
53
|
+
exports.IconExternalLink.displayName = 'IconExternalLink';
|