@marigold/icons 0.2.0 → 0.3.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 (227) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/action/Cancel.d.ts +1 -0
  3. package/dist/action/Crop.d.ts +1 -0
  4. package/dist/action/Edit.d.ts +1 -0
  5. package/dist/action/FormatBold.d.ts +1 -0
  6. package/dist/action/FormatItalic.d.ts +1 -0
  7. package/dist/action/FormatSize.d.ts +1 -0
  8. package/dist/action/HighlightOff.d.ts +1 -0
  9. package/dist/action/Image.d.ts +1 -0
  10. package/dist/action/Location.d.ts +1 -0
  11. package/dist/action/Lock.d.ts +1 -0
  12. package/dist/action/LockOpen.d.ts +1 -0
  13. package/dist/action/Pause.d.ts +1 -0
  14. package/dist/action/PauseAlt.d.ts +1 -0
  15. package/dist/action/Play.d.ts +1 -0
  16. package/dist/action/PlayAlt.d.ts +1 -0
  17. package/dist/action/ResaleEdit.d.ts +1 -0
  18. package/dist/action/RotateLeft.d.ts +1 -0
  19. package/dist/action/RotateRight.d.ts +1 -0
  20. package/dist/action/Save.d.ts +1 -0
  21. package/dist/action/Sort.d.ts +1 -0
  22. package/dist/action/SortDown.d.ts +1 -0
  23. package/dist/action/SortUp.d.ts +1 -0
  24. package/dist/action/Star.d.ts +1 -0
  25. package/dist/action/Stop.d.ts +1 -0
  26. package/dist/action/Underlined.d.ts +1 -0
  27. package/dist/action/Zoom.d.ts +1 -0
  28. package/dist/icons.cjs.development.js +315 -337
  29. package/dist/icons.cjs.development.js.map +1 -1
  30. package/dist/icons.cjs.production.min.js +1 -1
  31. package/dist/icons.cjs.production.min.js.map +1 -1
  32. package/dist/icons.esm.js +212 -233
  33. package/dist/icons.esm.js.map +1 -1
  34. package/dist/index.d.ts +0 -1
  35. package/dist/info/Accessible.d.ts +1 -0
  36. package/dist/info/AutoRenew.d.ts +1 -0
  37. package/dist/info/Banned.d.ts +1 -0
  38. package/dist/info/Bus.d.ts +1 -0
  39. package/dist/info/Calendar.d.ts +1 -0
  40. package/dist/info/Camera.d.ts +1 -0
  41. package/dist/info/Clock.d.ts +1 -0
  42. package/dist/info/Direction.d.ts +1 -0
  43. package/dist/info/Email.d.ts +1 -0
  44. package/dist/info/EventDate.d.ts +1 -0
  45. package/dist/info/Exclamation.d.ts +1 -0
  46. package/dist/info/Feedback.d.ts +1 -0
  47. package/dist/info/Food.d.ts +1 -0
  48. package/dist/info/Globe.d.ts +1 -0
  49. package/dist/info/Home.d.ts +1 -0
  50. package/dist/info/Info.d.ts +1 -0
  51. package/dist/info/Marker.d.ts +1 -0
  52. package/dist/info/MobilePhone.d.ts +1 -0
  53. package/dist/info/Notification.d.ts +1 -0
  54. package/dist/info/Parking.d.ts +1 -0
  55. package/dist/info/Phone.d.ts +1 -0
  56. package/dist/info/Print.d.ts +1 -0
  57. package/dist/info/Required.d.ts +1 -0
  58. package/dist/info/ResaleLogbook.d.ts +1 -0
  59. package/dist/info/Spinner.d.ts +1 -0
  60. package/dist/info/Thumb.d.ts +1 -0
  61. package/dist/info/Truck.d.ts +1 -0
  62. package/dist/social/Facebook.d.ts +1 -0
  63. package/dist/social/Google.d.ts +1 -0
  64. package/dist/social/Instagram.d.ts +1 -0
  65. package/dist/social/Share.d.ts +1 -0
  66. package/dist/social/Twitter.d.ts +1 -0
  67. package/dist/social/Whatsapp.d.ts +1 -0
  68. package/dist/ticketing/Deal.d.ts +1 -0
  69. package/dist/ticketing/DesignTicket.d.ts +1 -0
  70. package/dist/ticketing/GiftCard.d.ts +1 -0
  71. package/dist/ticketing/Membership.d.ts +1 -0
  72. package/dist/ticketing/Pickup.d.ts +1 -0
  73. package/dist/ticketing/Price.d.ts +1 -0
  74. package/dist/ticketing/Resale.d.ts +1 -0
  75. package/dist/ticketing/Scanner.d.ts +1 -0
  76. package/dist/ticketing/Seat.d.ts +1 -0
  77. package/dist/ticketing/Selling.d.ts +1 -0
  78. package/dist/ticketing/Ticket.d.ts +1 -0
  79. package/dist/ticketing/TicketInsurance.d.ts +1 -0
  80. package/dist/ticketing/Turnstile.d.ts +1 -0
  81. package/dist/ui/Add.d.ts +1 -0
  82. package/dist/ui/ArrowDown.d.ts +1 -0
  83. package/dist/ui/ArrowDownA.d.ts +1 -0
  84. package/dist/ui/ArrowLeft.d.ts +1 -0
  85. package/dist/ui/ArrowLeftA.d.ts +1 -0
  86. package/dist/ui/ArrowRight.d.ts +1 -0
  87. package/dist/ui/ArrowRightA.d.ts +1 -0
  88. package/dist/ui/ArrowUp.d.ts +1 -0
  89. package/dist/ui/ArrowUpA.d.ts +1 -0
  90. package/dist/ui/BurgerMenu.d.ts +1 -0
  91. package/dist/ui/Check.d.ts +1 -0
  92. package/dist/ui/CircleChecked.d.ts +1 -0
  93. package/dist/ui/CircleUnchecked.d.ts +1 -0
  94. package/dist/ui/Close.d.ts +1 -0
  95. package/dist/ui/Delete.d.ts +1 -0
  96. package/dist/ui/ExternalLink.d.ts +1 -0
  97. package/dist/ui/Filter.d.ts +1 -0
  98. package/dist/ui/IconMore.d.ts +1 -0
  99. package/dist/ui/Remove.d.ts +1 -0
  100. package/dist/ui/Search.d.ts +1 -0
  101. package/dist/ui/SettingDots.d.ts +1 -0
  102. package/dist/ui/SquareChecked.d.ts +1 -0
  103. package/dist/ui/SquareUnchecked.d.ts +1 -0
  104. package/dist/user/Cart.d.ts +1 -0
  105. package/dist/user/CreditCard.d.ts +1 -0
  106. package/dist/user/Group.d.ts +1 -0
  107. package/dist/user/Id.d.ts +1 -0
  108. package/dist/user/SmilieDissatisfied.d.ts +1 -0
  109. package/dist/user/SmilieNeutral.d.ts +1 -0
  110. package/dist/user/SmilieSatisfied.d.ts +1 -0
  111. package/dist/user/SmilieVeryDissatisfied.d.ts +1 -0
  112. package/dist/user/SmilieVerySatisfied.d.ts +1 -0
  113. package/dist/user/User.d.ts +1 -0
  114. package/package.json +2 -2
  115. package/src/Icons.stories.mdx +755 -1038
  116. package/src/action/Cancel.tsx +1 -1
  117. package/src/action/Crop.tsx +1 -1
  118. package/src/action/Edit.tsx +1 -1
  119. package/src/action/FormatBold.tsx +1 -1
  120. package/src/action/FormatItalic.tsx +1 -1
  121. package/src/action/FormatSize.tsx +1 -1
  122. package/src/action/HighlightOff.tsx +1 -1
  123. package/src/action/Image.tsx +1 -1
  124. package/src/action/Location.tsx +1 -1
  125. package/src/action/Lock.tsx +1 -1
  126. package/src/action/LockOpen.tsx +1 -1
  127. package/src/action/Pause.tsx +1 -1
  128. package/src/action/PauseAlt.tsx +1 -1
  129. package/src/action/Play.tsx +1 -1
  130. package/src/action/PlayAlt.tsx +1 -1
  131. package/src/action/ResaleEdit.tsx +1 -1
  132. package/src/action/RotateLeft.tsx +1 -1
  133. package/src/action/RotateRight.tsx +1 -1
  134. package/src/action/Save.tsx +1 -1
  135. package/src/action/Sort.tsx +1 -1
  136. package/src/action/SortDown.tsx +1 -1
  137. package/src/action/SortUp.tsx +1 -1
  138. package/src/action/Star.tsx +1 -1
  139. package/src/action/Stop.tsx +1 -1
  140. package/src/action/Underlined.tsx +1 -1
  141. package/src/action/Zoom.tsx +1 -1
  142. package/src/index.ts +0 -1
  143. package/src/info/Accessible.tsx +1 -1
  144. package/src/info/AutoRenew.tsx +1 -1
  145. package/src/info/Banned.tsx +1 -1
  146. package/src/info/Bus.tsx +1 -1
  147. package/src/info/Calendar.tsx +1 -1
  148. package/src/info/Camera.tsx +1 -1
  149. package/src/info/Clock.tsx +1 -1
  150. package/src/info/Direction.tsx +1 -1
  151. package/src/info/Email.tsx +1 -1
  152. package/src/info/EventDate.tsx +1 -1
  153. package/src/info/Exclamation.tsx +1 -1
  154. package/src/info/Feedback.tsx +1 -1
  155. package/src/info/Food.tsx +1 -1
  156. package/src/info/Globe.tsx +1 -1
  157. package/src/info/Home.tsx +1 -1
  158. package/src/info/Info.tsx +1 -1
  159. package/src/info/Marker.tsx +1 -1
  160. package/src/info/MobilePhone.tsx +1 -1
  161. package/src/info/Notification.tsx +1 -1
  162. package/src/info/Parking.tsx +1 -1
  163. package/src/info/Phone.tsx +1 -1
  164. package/src/info/Print.tsx +1 -1
  165. package/src/info/Required.tsx +1 -1
  166. package/src/info/ResaleLogbook.tsx +1 -1
  167. package/src/info/Spinner.tsx +1 -1
  168. package/src/info/Thumb.tsx +1 -1
  169. package/src/info/Truck.tsx +1 -1
  170. package/src/social/Facebook.tsx +1 -1
  171. package/src/social/Google.tsx +1 -1
  172. package/src/social/Instagram.tsx +1 -1
  173. package/src/social/Share.tsx +1 -1
  174. package/src/social/Twitter.tsx +1 -1
  175. package/src/social/Whatsapp.tsx +1 -1
  176. package/src/ticketing/Deal.tsx +1 -1
  177. package/src/ticketing/DesignTicket.tsx +1 -1
  178. package/src/ticketing/GiftCard.tsx +1 -1
  179. package/src/ticketing/Membership.tsx +1 -1
  180. package/src/ticketing/Pickup.tsx +1 -1
  181. package/src/ticketing/Price.tsx +1 -1
  182. package/src/ticketing/Resale.tsx +1 -1
  183. package/src/ticketing/Scanner.tsx +1 -1
  184. package/src/ticketing/Seat.tsx +1 -1
  185. package/src/ticketing/Selling.tsx +1 -1
  186. package/src/ticketing/Ticket.tsx +1 -1
  187. package/src/ticketing/TicketInsurance.tsx +1 -1
  188. package/src/ticketing/Turnstile.tsx +1 -1
  189. package/src/ui/Add.tsx +1 -1
  190. package/src/ui/ArrowDown.tsx +1 -1
  191. package/src/ui/ArrowDownA.tsx +1 -1
  192. package/src/ui/ArrowLeft.tsx +1 -1
  193. package/src/ui/ArrowLeftA.tsx +1 -1
  194. package/src/ui/ArrowRight.tsx +1 -1
  195. package/src/ui/ArrowRightA.tsx +1 -1
  196. package/src/ui/ArrowUp.tsx +1 -1
  197. package/src/ui/ArrowUpA.tsx +1 -1
  198. package/src/ui/BurgerMenu.tsx +1 -1
  199. package/src/ui/Check.tsx +1 -1
  200. package/src/ui/CircleChecked.tsx +1 -1
  201. package/src/ui/CircleUnchecked.tsx +1 -1
  202. package/src/ui/Close.tsx +1 -1
  203. package/src/ui/Delete.tsx +1 -1
  204. package/src/ui/ExternalLink.tsx +1 -1
  205. package/src/ui/Filter.tsx +1 -1
  206. package/src/ui/IconMore.tsx +1 -1
  207. package/src/ui/Remove.tsx +1 -1
  208. package/src/ui/Search.tsx +1 -1
  209. package/src/ui/SettingDots.tsx +1 -1
  210. package/src/ui/SquareChecked.tsx +1 -1
  211. package/src/ui/SquareUnchecked.tsx +1 -1
  212. package/src/user/Cart.tsx +1 -1
  213. package/src/user/CreditCard.tsx +1 -1
  214. package/src/user/Group.tsx +1 -1
  215. package/src/user/Id.tsx +1 -1
  216. package/src/user/SmilieDissatisfied.tsx +1 -1
  217. package/src/user/SmilieNeutral.tsx +1 -1
  218. package/src/user/SmilieSatisfied.tsx +1 -1
  219. package/src/user/SmilieVeryDissatisfied.tsx +1 -1
  220. package/src/user/SmilieVerySatisfied.tsx +1 -1
  221. package/src/user/User.tsx +1 -1
  222. package/dist/SVG/SVG.d.ts +0 -8
  223. package/dist/SVG/index.d.ts +0 -1
  224. package/src/SVG/SVG.stories.mdx +0 -55
  225. package/src/SVG/SVG.test.tsx +0 -69
  226. package/src/SVG/SVG.tsx +0 -30
  227. package/src/SVG/index.ts +0 -1
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const ArrowDownA = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const ArrowLeft = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const ArrowLeftA = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const ArrowRight = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const ArrowRightA = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const ArrowUp = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const ArrowUpA = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const BurgerMenu = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
package/src/ui/Check.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const Check = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const CircleChecked = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const CircleUnchecked = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
package/src/ui/Close.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const Close = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
package/src/ui/Delete.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const Delete = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const ExternalLink = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
package/src/ui/Filter.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const Filter = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const IconMore = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
package/src/ui/Remove.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const Remove = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
package/src/ui/Search.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const Search = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const SettingDots = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const SquareChecked = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const SquareUnchecked = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
package/src/user/Cart.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const Cart = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const CreditCard = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const Group = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
package/src/user/Id.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const Id = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const SmilieDissatisfied = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const SmilieNeutral = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const SmilieSatisfied = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const SmilieVeryDissatisfied = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const SmilieVerySatisfied = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
package/src/user/User.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SVG } from '../SVG';
2
+ import { SVG } from '@marigold/system';
3
3
 
4
4
  export const User = ({ className = '', ...props }) => (
5
5
  <SVG className={className} {...props}>
package/dist/SVG/SVG.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { ComponentProps } from '@marigold/types';
3
- export declare type SVGProps = {
4
- variant?: string;
5
- size?: number;
6
- title?: string;
7
- } & ComponentProps<'svg'>;
8
- export declare const SVG: React.FC<SVGProps>;
@@ -1 +0,0 @@
1
- export * from './SVG';
@@ -1,55 +0,0 @@
1
- import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs';
2
- import { SVG } from './SVG';
3
-
4
- <Meta
5
- title="Components/SVG"
6
- argTypes={{
7
- variant: {
8
- control: {
9
- type: 'text',
10
- },
11
- table: {
12
- defaultValue: {
13
- summary: 'icon',
14
- },
15
- },
16
- },
17
- size: {
18
- control: {
19
- type: 'range',
20
- min: 0,
21
- max: 96,
22
- step: 2,
23
- },
24
- table: {
25
- defaultValue: {
26
- summary: 24,
27
- },
28
- },
29
- },
30
- fill: {
31
- control: {
32
- type: 'text',
33
- },
34
- table: {
35
- defaultValue: {
36
- summary: 'currentColor',
37
- },
38
- },
39
- },
40
- }}
41
- />
42
-
43
- # SVG
44
-
45
- export const Template = args => (
46
- <SVG {...args}>
47
- <path d="M9.9 20.113V13.8415H14.1V20.113H19.35V11.751H22.5L12 2.34375L1.5 11.751H4.65V20.113H9.9Z" />
48
- </SVG>
49
- );
50
-
51
- <Canvas>
52
- <Story name="Default">{Template.bind({})}</Story>
53
- </Canvas>
54
-
55
- <ArgsTable story="Default" />
@@ -1,69 +0,0 @@
1
- import React from 'react';
2
- import { render, screen } from '@testing-library/react';
3
- import { SVG } from './SVG';
4
-
5
- test('supports default fill color', () => {
6
- render(
7
- <SVG title="svg">
8
- <path d="M9.9 20.113V13.8415H14" />
9
- </SVG>
10
- );
11
- const svg = screen.getByTitle(/svg/);
12
-
13
- expect(svg.getAttribute('fill')).toEqual('currentcolor');
14
- });
15
-
16
- test('supports default size', () => {
17
- render(
18
- <SVG title="svg">
19
- <path d="M9.9 20.113V13.8415H14" />
20
- </SVG>
21
- );
22
- const svg = screen.getByTitle(/svg/);
23
-
24
- expect(svg.getAttribute('width')).toEqual('24');
25
- });
26
-
27
- test('supports size prop', () => {
28
- render(
29
- <SVG title="svg" size={30}>
30
- <path d="M9.9 20.113V13.8415H14" />
31
- </SVG>
32
- );
33
- const svg = screen.getByTitle(/svg/);
34
-
35
- expect(svg.getAttribute('width')).toEqual('30');
36
- });
37
-
38
- test('supports fill prop', () => {
39
- render(
40
- <SVG title="svg" fill="#fafafa">
41
- <path d="M9.9 20.113V13.8415H14" />
42
- </SVG>
43
- );
44
- const svg = screen.getByTitle(/svg/);
45
-
46
- expect(svg.getAttribute('fill')).toEqual('#fafafa');
47
- });
48
-
49
- test('accepts custom styles prop className', () => {
50
- render(
51
- <SVG title="svg" className="custom-class-name">
52
- <path d="M9.9 20.113V13.8415H14" />
53
- </SVG>
54
- );
55
- const svg = screen.getByTitle(/svg/);
56
-
57
- expect(svg.getAttribute('class')).toMatch(/custom-class-name/);
58
- });
59
-
60
- test('renders <svg> element', () => {
61
- render(
62
- <SVG title="svg">
63
- <path d="M9.9 20.113V13.8415H14" />
64
- </SVG>
65
- );
66
- const svg = screen.getByTitle(/svg/);
67
-
68
- expect(svg instanceof SVGElement).toBeTruthy();
69
- });
package/src/SVG/SVG.tsx DELETED
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- import { Element } from '@marigold/system';
3
- import { ComponentProps } from '@marigold/types';
4
-
5
- export type SVGProps = {
6
- variant?: string;
7
- size?: number;
8
- title?: string; // For Testing
9
- } & ComponentProps<'svg'>;
10
-
11
- export const SVG: React.FC<SVGProps> = ({
12
- variant = 'icon',
13
- size = 24,
14
- className,
15
- children,
16
- ...props
17
- }) => (
18
- <Element
19
- as="svg"
20
- variant={`icon.${variant}`}
21
- width={size}
22
- height={size}
23
- className={className}
24
- viewBox="0 0 24 24"
25
- fill="currentcolor"
26
- {...props}
27
- >
28
- {children}
29
- </Element>
30
- );
package/src/SVG/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './SVG';