@simplybusiness/icons 4.39.0 → 4.40.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/CHANGELOG.md +26 -0
- package/README.md +143 -0
- package/dist/cjs/index.js +598 -205
- package/dist/esm/index.js +598 -205
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/iconfont/_mobius-icons.scss +882 -0
- package/dist/iconfont/index.html +718 -0
- package/dist/iconfont/mobius-icons.css +163 -0
- package/dist/iconfont/mobius-icons.json +133 -0
- package/dist/iconfont/mobius-icons.woff2 +0 -0
- package/dist/types/src/arrowLeft.d.ts +4 -0
- package/dist/types/src/arrowRight.d.ts +3 -0
- package/dist/types/src/arrowRotateRight.d.ts +3 -0
- package/dist/types/src/arrowsRotate.d.ts +3 -0
- package/dist/types/src/ban.d.ts +3 -0
- package/dist/types/src/bars.d.ts +3 -0
- package/dist/types/src/chevronUpDown.d.ts +3 -0
- package/dist/types/src/circleCheck.d.ts +3 -0
- package/dist/types/src/circleExclamation.d.ts +3 -0
- package/dist/types/src/circleTick.d.ts +3 -0
- package/dist/types/src/cross.d.ts +5 -0
- package/dist/types/src/dropdown.d.ts +3 -0
- package/dist/types/src/error.d.ts +3 -0
- package/dist/types/src/errorCircle.d.ts +3 -0
- package/dist/types/src/fett.d.ts +3 -0
- package/dist/types/src/icons.d.ts +21 -7
- package/dist/types/src/leftArrow.d.ts +3 -0
- package/dist/types/src/loading.d.ts +3 -0
- package/dist/types/src/magnifierPlus.d.ts +3 -0
- package/dist/types/src/magnifyingGlassPlus.d.ts +3 -0
- package/dist/types/src/menu.d.ts +3 -0
- package/dist/types/src/phone.d.ts +3 -0
- package/dist/types/src/refreshArrow.d.ts +3 -0
- package/dist/types/src/refreshCircle.d.ts +3 -0
- package/dist/types/src/rightArrow.d.ts +3 -0
- package/dist/types/src/sort.d.ts +3 -0
- package/dist/types/src/spinnerThird.d.ts +3 -0
- package/dist/types/src/squareCheck.d.ts +3 -0
- package/dist/types/src/squareTick.d.ts +3 -0
- package/dist/types/src/telephone.d.ts +3 -0
- package/dist/types/src/triangleExclamation.d.ts +3 -0
- package/dist/types/src/types.d.ts +4 -0
- package/dist/types/src/userBountyHunter.d.ts +3 -0
- package/dist/types/src/warning.d.ts +3 -0
- package/package.json +10 -3
- package/src/arrowDownToBracket.tsx +2 -0
- package/src/arrowDownToLine.tsx +2 -0
- package/src/arrowLeft.tsx +5 -0
- package/src/arrowRight.tsx +15 -0
- package/src/arrowRightFromBracket.tsx +2 -0
- package/src/arrowRotateRight.tsx +15 -0
- package/src/arrowUp.tsx +2 -0
- package/src/arrowsRotate.tsx +15 -0
- package/src/ban.tsx +15 -0
- package/src/bars.tsx +15 -0
- package/src/bell.tsx +2 -0
- package/src/bin.tsx +2 -0
- package/src/boxOpen.tsx +2 -0
- package/src/briefcase.tsx +2 -0
- package/src/broomWide.tsx +2 -0
- package/src/buildingCircleArrowRight.tsx +2 -0
- package/src/buildingCircleCheck.tsx +2 -0
- package/src/calendar.tsx +2 -0
- package/src/calendarClock.tsx +2 -0
- package/src/calendarDay.tsx +2 -0
- package/src/carBuilding.tsx +2 -0
- package/src/chartMixedUpCircleDollar.tsx +2 -0
- package/src/chartUser.tsx +2 -0
- package/src/chevronDown.tsx +2 -0
- package/src/chevronLeft.tsx +2 -0
- package/src/chevronRight.tsx +2 -0
- package/src/chevronUp.tsx +2 -0
- package/src/chevronUpDown.tsx +8 -3
- package/src/circleCheck.tsx +15 -0
- package/src/circleDollar.tsx +2 -0
- package/src/circleExclamation.tsx +15 -0
- package/src/circleInfo.tsx +2 -0
- package/src/circleQuestion.tsx +2 -0
- package/src/circleSterling.tsx +2 -0
- package/src/circleTick.tsx +5 -1
- package/src/city.tsx +2 -0
- package/src/clock.tsx +2 -0
- package/src/creditCard.tsx +2 -0
- package/src/creditCardSync.tsx +1 -0
- package/src/cross.tsx +6 -0
- package/src/dollarSign.tsx +2 -0
- package/src/download.tsx +2 -0
- package/src/dropdown.tsx +5 -1
- package/src/error.tsx +5 -1
- package/src/errorCircle.tsx +7 -3
- package/src/fett.tsx +5 -1
- package/src/fileArrowDown.tsx +2 -0
- package/src/fileCertificate.tsx +2 -0
- package/src/fileCheck.tsx +2 -0
- package/src/fileCircleInfo.tsx +2 -0
- package/src/fileCirclePlus.tsx +2 -0
- package/src/fileContract.tsx +2 -0
- package/src/fileImage.tsx +2 -0
- package/src/filePen.tsx +2 -0
- package/src/fileShield.tsx +2 -0
- package/src/fileSignature.tsx +2 -0
- package/src/gear.tsx +2 -0
- package/src/grid2.tsx +1 -0
- package/src/handHoldingHeart.tsx +2 -0
- package/src/handshake.tsx +2 -0
- package/src/home.tsx +2 -0
- package/src/houseBuilding.tsx +2 -0
- package/src/houseChimney.tsx +2 -0
- package/src/houseHeart.tsx +2 -0
- package/src/icons.tsx +21 -7
- package/src/leftArrow.tsx +4 -0
- package/src/lightbulbOn.tsx +2 -0
- package/src/link.tsx +2 -0
- package/src/list.tsx +2 -0
- package/src/loading.tsx +5 -1
- package/src/lock.tsx +2 -0
- package/src/lockKeyhole.tsx +2 -0
- package/src/magnifierPlus.tsx +7 -3
- package/src/magnifyingGlassPlus.tsx +15 -0
- package/src/menu.tsx +6 -1
- package/src/message.tsx +2 -0
- package/src/messageQuestion.tsx +2 -0
- package/src/messageSmile.tsx +2 -0
- package/src/microphone.tsx +2 -0
- package/src/minus.tsx +2 -0
- package/src/moneyBill.tsx +2 -0
- package/src/moneyCheckDollar.tsx +2 -0
- package/src/newspaper.tsx +2 -0
- package/src/notdef.tsx +2 -0
- package/src/paintRoller.tsx +2 -0
- package/src/paintbrushPencil.tsx +2 -0
- package/src/partyHorn.tsx +4 -1
- package/src/pen.tsx +2 -0
- package/src/penToSquare.tsx +2 -0
- package/src/pencil.tsx +2 -0
- package/src/phone.tsx +15 -0
- package/src/plug.tsx +2 -0
- package/src/plus.tsx +2 -0
- package/src/question.tsx +2 -0
- package/src/refreshArrow.tsx +5 -1
- package/src/refreshCircle.tsx +7 -3
- package/src/rightArrow.tsx +6 -2
- package/src/robot.tsx +2 -0
- package/src/rocketLaunch.tsx +2 -0
- package/src/rulerTriangle.tsx +2 -0
- package/src/sb.tsx +1 -0
- package/src/screwdriverWrench.tsx +2 -0
- package/src/search.tsx +2 -0
- package/src/shield.tsx +4 -1
- package/src/shieldCheck.tsx +3 -1
- package/src/shieldHeart.tsx +2 -0
- package/src/simplybusiness.tsx +1 -0
- package/src/sort.tsx +15 -0
- package/src/sparkles.tsx +2 -0
- package/src/spinnerThird.tsx +15 -0
- package/src/sprinkler.tsx +2 -0
- package/src/square.tsx +2 -0
- package/src/squareCheck.tsx +15 -0
- package/src/squareTick.tsx +5 -1
- package/src/star.tsx +2 -0
- package/src/sterlingSign.tsx +2 -0
- package/src/store.tsx +2 -0
- package/src/tag.tsx +2 -0
- package/src/telephone.tsx +6 -2
- package/src/thumbsUp.tsx +2 -0
- package/src/tick.tsx +2 -0
- package/src/tree.tsx +2 -0
- package/src/triangleExclamation.tsx +15 -0
- package/src/truck.tsx +2 -0
- package/src/types.ts +4 -0
- package/src/user.tsx +2 -0
- package/src/userBountyHunter.tsx +15 -0
- package/src/userHelmetSafety.tsx +2 -0
- package/src/userShield.tsx +2 -0
- package/src/users.tsx +2 -0
- package/src/utensils.tsx +2 -0
- package/src/vacuum.tsx +2 -0
- package/src/warning.tsx +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.40.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 51f1d36: Add arrowRight icon from FontAwesome Sharp Regular
|
|
8
|
+
- 51f1d36: Add arrowRotateRight icon from FontAwesome Sharp Regular
|
|
9
|
+
- 51f1d36: Add arrowsRotate icon from FontAwesome Sharp Regular
|
|
10
|
+
- 51f1d36: Add ban icon from FontAwesome Sharp Regular
|
|
11
|
+
- 51f1d36: Add bars icon from FontAwesome Sharp Regular
|
|
12
|
+
- 51f1d36: Add circleCheck icon from FontAwesome Sharp Regular
|
|
13
|
+
- 51f1d36: Add circleExclamation icon from FontAwesome Sharp Regular
|
|
14
|
+
- fc346a2: Add icon font generation to produce woff2 font from icon definitions
|
|
15
|
+
- Generates mobius-icons.woff2 font file
|
|
16
|
+
- Generates CSS with .icon-\* classes (Icomoon-compatible)
|
|
17
|
+
- Generates SCSS with %icon-\* placeholders for @extend usage
|
|
18
|
+
- Includes backwards-compatible aliases for bijou icon names
|
|
19
|
+
- Adds HTML preview page for visual verification
|
|
20
|
+
|
|
21
|
+
- 51f1d36: Add magnifyingGlassPlus icon from FontAwesome Sharp Regular
|
|
22
|
+
- 51f1d36: Add phone icon from FontAwesome Sharp Regular
|
|
23
|
+
- 51f1d36: Add sort icon from FontAwesome Sharp Regular
|
|
24
|
+
- 51f1d36: Add spinnerThird icon from FontAwesome Sharp Regular
|
|
25
|
+
- 51f1d36: Add squareCheck icon from FontAwesome Sharp Regular
|
|
26
|
+
- 51f1d36: Add triangleExclamation icon from FontAwesome Sharp Regular
|
|
27
|
+
- 51f1d36: Add userBountyHunter icon from FontAwesome Sharp Regular
|
|
28
|
+
|
|
3
29
|
## 4.39.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
package/README.md
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# @simplybusiness/icons
|
|
2
|
+
|
|
3
|
+
Simply Business icon library for use in React applications and as an icon font.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
yarn add @simplybusiness/icons
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### React Components (Recommended)
|
|
14
|
+
|
|
15
|
+
Use the `Icon` component from `@simplybusiness/mobius` with icon definitions from this package:
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
import { Icon } from '@simplybusiness/mobius';
|
|
19
|
+
import { tick, bell, chevronDown } from '@simplybusiness/icons';
|
|
20
|
+
|
|
21
|
+
// Basic usage
|
|
22
|
+
<Icon icon={tick} />
|
|
23
|
+
|
|
24
|
+
// With size (xs, sm, md, lg)
|
|
25
|
+
<Icon icon={bell} size="md" />
|
|
26
|
+
|
|
27
|
+
// With custom color
|
|
28
|
+
<Icon icon={chevronDown} color="#0066cc" />
|
|
29
|
+
|
|
30
|
+
// With animation
|
|
31
|
+
<Icon icon={loading} spin />
|
|
32
|
+
|
|
33
|
+
// Fixed width (useful for alignment in lists)
|
|
34
|
+
<Icon icon={tick} fixedWidth />
|
|
35
|
+
|
|
36
|
+
// Custom accessibility title
|
|
37
|
+
<Icon icon={bell} title="Notifications" />
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
#### Icon Component Props
|
|
41
|
+
|
|
42
|
+
| Prop | Type | Default | Description |
|
|
43
|
+
|------|------|---------|-------------|
|
|
44
|
+
| `icon` | `IconDefinition` | required | Icon definition from `@simplybusiness/icons` |
|
|
45
|
+
| `size` | `'xs' \| 'sm' \| 'md' \| 'lg'` | `'xs'` | Icon size |
|
|
46
|
+
| `color` | `string` | inherited | Icon color (CSS color value) |
|
|
47
|
+
| `fixedWidth` | `boolean` | `false` | Fixed width for alignment |
|
|
48
|
+
| `spin` | `boolean` | `false` | Spinning animation |
|
|
49
|
+
| `spinReverse` | `boolean` | `false` | Reverse spinning animation |
|
|
50
|
+
| `title` | `string` | auto-generated | Accessibility title |
|
|
51
|
+
| `className` | `string` | - | Additional CSS classes |
|
|
52
|
+
|
|
53
|
+
### Icon Font
|
|
54
|
+
|
|
55
|
+
For non-React environments (Rails/HAML, emails, legacy apps), use the icon font:
|
|
56
|
+
|
|
57
|
+
#### CSS Import
|
|
58
|
+
|
|
59
|
+
```css
|
|
60
|
+
@import '@simplybusiness/icons/iconfont';
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
```html
|
|
64
|
+
<i class="icon-tick"></i>
|
|
65
|
+
<i class="icon-bell"></i>
|
|
66
|
+
<i class="icon-chevron-down"></i>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
#### SCSS with Placeholders
|
|
70
|
+
|
|
71
|
+
For SCSS projects using `@extend`:
|
|
72
|
+
|
|
73
|
+
```scss
|
|
74
|
+
@import '@simplybusiness/icons/iconfont/scss';
|
|
75
|
+
|
|
76
|
+
.my-success-indicator:before {
|
|
77
|
+
@extend %icon-tick;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.my-button-icon:before {
|
|
81
|
+
@extend %icon-chevron-right;
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
#### Direct Font Import
|
|
86
|
+
|
|
87
|
+
```scss
|
|
88
|
+
// Import just the font file
|
|
89
|
+
@font-face {
|
|
90
|
+
font-family: 'mobius-icons';
|
|
91
|
+
src: url('~@simplybusiness/icons/iconfont/font') format('woff2');
|
|
92
|
+
font-weight: normal;
|
|
93
|
+
font-style: normal;
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Available Exports
|
|
98
|
+
|
|
99
|
+
| Export | Description |
|
|
100
|
+
|--------|-------------|
|
|
101
|
+
| `@simplybusiness/icons` | Icon definitions for React |
|
|
102
|
+
| `@simplybusiness/icons/iconfont` | CSS file with icon classes |
|
|
103
|
+
| `@simplybusiness/icons/iconfont/css` | CSS file (explicit) |
|
|
104
|
+
| `@simplybusiness/icons/iconfont/scss` | SCSS with `%icon-*` placeholders |
|
|
105
|
+
| `@simplybusiness/icons/iconfont/font` | woff2 font file |
|
|
106
|
+
|
|
107
|
+
## Backwards Compatibility
|
|
108
|
+
|
|
109
|
+
For projects migrating from bijou/Icomoon, these aliases are available:
|
|
110
|
+
|
|
111
|
+
| Alias | Maps to |
|
|
112
|
+
|-------|---------|
|
|
113
|
+
| `icon-cta-arrow` | `icon-right-arrow` |
|
|
114
|
+
| `icon-button-arrow-left` | `icon-left-arrow` |
|
|
115
|
+
| `icon-button-arrow-right` | `icon-right-arrow` |
|
|
116
|
+
| `icon-info` | `icon-circle-info` |
|
|
117
|
+
| `icon-phone` | `icon-telephone` |
|
|
118
|
+
| `icon-close` | `icon-cross` |
|
|
119
|
+
| `icon-chevron-up-2` | `icon-chevron-up` |
|
|
120
|
+
| `icon-chevron-down-2` | `icon-chevron-down` |
|
|
121
|
+
|
|
122
|
+
## Available Icons
|
|
123
|
+
|
|
124
|
+
Run `yarn workspace @simplybusiness/icons build:iconfont` and open `dist/iconfont/index.html` for a visual preview of all available icons.
|
|
125
|
+
|
|
126
|
+
## Adding New Icons
|
|
127
|
+
|
|
128
|
+
1. Add the icon definition file in `src/` following the `IconDefinition` type
|
|
129
|
+
2. Export it from `src/icons.tsx`
|
|
130
|
+
3. Run `yarn workspace @simplybusiness/icons build`
|
|
131
|
+
|
|
132
|
+
## Development
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
# Build all outputs (React + icon font)
|
|
136
|
+
yarn workspace @simplybusiness/icons build
|
|
137
|
+
|
|
138
|
+
# Build just the icon font
|
|
139
|
+
yarn workspace @simplybusiness/icons build:iconfont
|
|
140
|
+
|
|
141
|
+
# Type check
|
|
142
|
+
yarn workspace @simplybusiness/icons check-types
|
|
143
|
+
```
|