@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.
Files changed (178) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +143 -0
  3. package/dist/cjs/index.js +598 -205
  4. package/dist/esm/index.js +598 -205
  5. package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
  6. package/dist/iconfont/_mobius-icons.scss +882 -0
  7. package/dist/iconfont/index.html +718 -0
  8. package/dist/iconfont/mobius-icons.css +163 -0
  9. package/dist/iconfont/mobius-icons.json +133 -0
  10. package/dist/iconfont/mobius-icons.woff2 +0 -0
  11. package/dist/types/src/arrowLeft.d.ts +4 -0
  12. package/dist/types/src/arrowRight.d.ts +3 -0
  13. package/dist/types/src/arrowRotateRight.d.ts +3 -0
  14. package/dist/types/src/arrowsRotate.d.ts +3 -0
  15. package/dist/types/src/ban.d.ts +3 -0
  16. package/dist/types/src/bars.d.ts +3 -0
  17. package/dist/types/src/chevronUpDown.d.ts +3 -0
  18. package/dist/types/src/circleCheck.d.ts +3 -0
  19. package/dist/types/src/circleExclamation.d.ts +3 -0
  20. package/dist/types/src/circleTick.d.ts +3 -0
  21. package/dist/types/src/cross.d.ts +5 -0
  22. package/dist/types/src/dropdown.d.ts +3 -0
  23. package/dist/types/src/error.d.ts +3 -0
  24. package/dist/types/src/errorCircle.d.ts +3 -0
  25. package/dist/types/src/fett.d.ts +3 -0
  26. package/dist/types/src/icons.d.ts +21 -7
  27. package/dist/types/src/leftArrow.d.ts +3 -0
  28. package/dist/types/src/loading.d.ts +3 -0
  29. package/dist/types/src/magnifierPlus.d.ts +3 -0
  30. package/dist/types/src/magnifyingGlassPlus.d.ts +3 -0
  31. package/dist/types/src/menu.d.ts +3 -0
  32. package/dist/types/src/phone.d.ts +3 -0
  33. package/dist/types/src/refreshArrow.d.ts +3 -0
  34. package/dist/types/src/refreshCircle.d.ts +3 -0
  35. package/dist/types/src/rightArrow.d.ts +3 -0
  36. package/dist/types/src/sort.d.ts +3 -0
  37. package/dist/types/src/spinnerThird.d.ts +3 -0
  38. package/dist/types/src/squareCheck.d.ts +3 -0
  39. package/dist/types/src/squareTick.d.ts +3 -0
  40. package/dist/types/src/telephone.d.ts +3 -0
  41. package/dist/types/src/triangleExclamation.d.ts +3 -0
  42. package/dist/types/src/types.d.ts +4 -0
  43. package/dist/types/src/userBountyHunter.d.ts +3 -0
  44. package/dist/types/src/warning.d.ts +3 -0
  45. package/package.json +10 -3
  46. package/src/arrowDownToBracket.tsx +2 -0
  47. package/src/arrowDownToLine.tsx +2 -0
  48. package/src/arrowLeft.tsx +5 -0
  49. package/src/arrowRight.tsx +15 -0
  50. package/src/arrowRightFromBracket.tsx +2 -0
  51. package/src/arrowRotateRight.tsx +15 -0
  52. package/src/arrowUp.tsx +2 -0
  53. package/src/arrowsRotate.tsx +15 -0
  54. package/src/ban.tsx +15 -0
  55. package/src/bars.tsx +15 -0
  56. package/src/bell.tsx +2 -0
  57. package/src/bin.tsx +2 -0
  58. package/src/boxOpen.tsx +2 -0
  59. package/src/briefcase.tsx +2 -0
  60. package/src/broomWide.tsx +2 -0
  61. package/src/buildingCircleArrowRight.tsx +2 -0
  62. package/src/buildingCircleCheck.tsx +2 -0
  63. package/src/calendar.tsx +2 -0
  64. package/src/calendarClock.tsx +2 -0
  65. package/src/calendarDay.tsx +2 -0
  66. package/src/carBuilding.tsx +2 -0
  67. package/src/chartMixedUpCircleDollar.tsx +2 -0
  68. package/src/chartUser.tsx +2 -0
  69. package/src/chevronDown.tsx +2 -0
  70. package/src/chevronLeft.tsx +2 -0
  71. package/src/chevronRight.tsx +2 -0
  72. package/src/chevronUp.tsx +2 -0
  73. package/src/chevronUpDown.tsx +8 -3
  74. package/src/circleCheck.tsx +15 -0
  75. package/src/circleDollar.tsx +2 -0
  76. package/src/circleExclamation.tsx +15 -0
  77. package/src/circleInfo.tsx +2 -0
  78. package/src/circleQuestion.tsx +2 -0
  79. package/src/circleSterling.tsx +2 -0
  80. package/src/circleTick.tsx +5 -1
  81. package/src/city.tsx +2 -0
  82. package/src/clock.tsx +2 -0
  83. package/src/creditCard.tsx +2 -0
  84. package/src/creditCardSync.tsx +1 -0
  85. package/src/cross.tsx +6 -0
  86. package/src/dollarSign.tsx +2 -0
  87. package/src/download.tsx +2 -0
  88. package/src/dropdown.tsx +5 -1
  89. package/src/error.tsx +5 -1
  90. package/src/errorCircle.tsx +7 -3
  91. package/src/fett.tsx +5 -1
  92. package/src/fileArrowDown.tsx +2 -0
  93. package/src/fileCertificate.tsx +2 -0
  94. package/src/fileCheck.tsx +2 -0
  95. package/src/fileCircleInfo.tsx +2 -0
  96. package/src/fileCirclePlus.tsx +2 -0
  97. package/src/fileContract.tsx +2 -0
  98. package/src/fileImage.tsx +2 -0
  99. package/src/filePen.tsx +2 -0
  100. package/src/fileShield.tsx +2 -0
  101. package/src/fileSignature.tsx +2 -0
  102. package/src/gear.tsx +2 -0
  103. package/src/grid2.tsx +1 -0
  104. package/src/handHoldingHeart.tsx +2 -0
  105. package/src/handshake.tsx +2 -0
  106. package/src/home.tsx +2 -0
  107. package/src/houseBuilding.tsx +2 -0
  108. package/src/houseChimney.tsx +2 -0
  109. package/src/houseHeart.tsx +2 -0
  110. package/src/icons.tsx +21 -7
  111. package/src/leftArrow.tsx +4 -0
  112. package/src/lightbulbOn.tsx +2 -0
  113. package/src/link.tsx +2 -0
  114. package/src/list.tsx +2 -0
  115. package/src/loading.tsx +5 -1
  116. package/src/lock.tsx +2 -0
  117. package/src/lockKeyhole.tsx +2 -0
  118. package/src/magnifierPlus.tsx +7 -3
  119. package/src/magnifyingGlassPlus.tsx +15 -0
  120. package/src/menu.tsx +6 -1
  121. package/src/message.tsx +2 -0
  122. package/src/messageQuestion.tsx +2 -0
  123. package/src/messageSmile.tsx +2 -0
  124. package/src/microphone.tsx +2 -0
  125. package/src/minus.tsx +2 -0
  126. package/src/moneyBill.tsx +2 -0
  127. package/src/moneyCheckDollar.tsx +2 -0
  128. package/src/newspaper.tsx +2 -0
  129. package/src/notdef.tsx +2 -0
  130. package/src/paintRoller.tsx +2 -0
  131. package/src/paintbrushPencil.tsx +2 -0
  132. package/src/partyHorn.tsx +4 -1
  133. package/src/pen.tsx +2 -0
  134. package/src/penToSquare.tsx +2 -0
  135. package/src/pencil.tsx +2 -0
  136. package/src/phone.tsx +15 -0
  137. package/src/plug.tsx +2 -0
  138. package/src/plus.tsx +2 -0
  139. package/src/question.tsx +2 -0
  140. package/src/refreshArrow.tsx +5 -1
  141. package/src/refreshCircle.tsx +7 -3
  142. package/src/rightArrow.tsx +6 -2
  143. package/src/robot.tsx +2 -0
  144. package/src/rocketLaunch.tsx +2 -0
  145. package/src/rulerTriangle.tsx +2 -0
  146. package/src/sb.tsx +1 -0
  147. package/src/screwdriverWrench.tsx +2 -0
  148. package/src/search.tsx +2 -0
  149. package/src/shield.tsx +4 -1
  150. package/src/shieldCheck.tsx +3 -1
  151. package/src/shieldHeart.tsx +2 -0
  152. package/src/simplybusiness.tsx +1 -0
  153. package/src/sort.tsx +15 -0
  154. package/src/sparkles.tsx +2 -0
  155. package/src/spinnerThird.tsx +15 -0
  156. package/src/sprinkler.tsx +2 -0
  157. package/src/square.tsx +2 -0
  158. package/src/squareCheck.tsx +15 -0
  159. package/src/squareTick.tsx +5 -1
  160. package/src/star.tsx +2 -0
  161. package/src/sterlingSign.tsx +2 -0
  162. package/src/store.tsx +2 -0
  163. package/src/tag.tsx +2 -0
  164. package/src/telephone.tsx +6 -2
  165. package/src/thumbsUp.tsx +2 -0
  166. package/src/tick.tsx +2 -0
  167. package/src/tree.tsx +2 -0
  168. package/src/triangleExclamation.tsx +15 -0
  169. package/src/truck.tsx +2 -0
  170. package/src/types.ts +4 -0
  171. package/src/user.tsx +2 -0
  172. package/src/userBountyHunter.tsx +15 -0
  173. package/src/userHelmetSafety.tsx +2 -0
  174. package/src/userShield.tsx +2 -0
  175. package/src/users.tsx +2 -0
  176. package/src/utensils.tsx +2 -0
  177. package/src/vacuum.tsx +2 -0
  178. 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
+ ```