@xsolla/xui-icons-brand 0.141.0 → 0.141.1
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/package.json +1 -1
- package/README.md +0 -247
package/package.json
CHANGED
package/README.md
DELETED
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
# Icons Brand
|
|
2
|
-
|
|
3
|
-
A cross-platform React brand icons package containing 160+ company and platform logos. Each icon supports colored and monochrome variants.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @xsolla/xui-icons-brand
|
|
9
|
-
# or
|
|
10
|
-
yarn add @xsolla/xui-icons-brand
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Demo
|
|
14
|
-
|
|
15
|
-
### Colored Icons (Default)
|
|
16
|
-
|
|
17
|
-
```tsx
|
|
18
|
-
import * as React from 'react';
|
|
19
|
-
import { Github, Discord, Steam, Twitch } from '@xsolla/xui-icons-brand';
|
|
20
|
-
|
|
21
|
-
export default function ColoredIcons() {
|
|
22
|
-
return (
|
|
23
|
-
<div style={{ display: 'flex', gap: 16 }}>
|
|
24
|
-
<Github size={32} />
|
|
25
|
-
<Discord size={32} />
|
|
26
|
-
<Steam size={32} />
|
|
27
|
-
<Twitch size={32} />
|
|
28
|
-
</div>
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Monochrome Icons
|
|
34
|
-
|
|
35
|
-
```tsx
|
|
36
|
-
import * as React from 'react';
|
|
37
|
-
import { Github, Discord, Steam, Twitch } from '@xsolla/xui-icons-brand';
|
|
38
|
-
|
|
39
|
-
export default function MonoIcons() {
|
|
40
|
-
return (
|
|
41
|
-
<div style={{ display: 'flex', gap: 16 }}>
|
|
42
|
-
<Github size={32} variant="mono" />
|
|
43
|
-
<Discord size={32} variant="mono" />
|
|
44
|
-
<Steam size={32} variant="mono" />
|
|
45
|
-
<Twitch size={32} variant="mono" />
|
|
46
|
-
</div>
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Different Sizes
|
|
52
|
-
|
|
53
|
-
```tsx
|
|
54
|
-
import * as React from 'react';
|
|
55
|
-
import { Google } from '@xsolla/xui-icons-brand';
|
|
56
|
-
|
|
57
|
-
export default function Sizes() {
|
|
58
|
-
return (
|
|
59
|
-
<div style={{ display: 'flex', alignItems: 'center', gap: 16 }}>
|
|
60
|
-
<Google size={16} />
|
|
61
|
-
<Google size={24} />
|
|
62
|
-
<Google size={32} />
|
|
63
|
-
<Google size={48} />
|
|
64
|
-
</div>
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
## Anatomy
|
|
70
|
-
|
|
71
|
-
```jsx
|
|
72
|
-
import { Github } from '@xsolla/xui-icons-brand';
|
|
73
|
-
|
|
74
|
-
<Github
|
|
75
|
-
size={24} // Size in pixels
|
|
76
|
-
variant="colored" // colored or mono
|
|
77
|
-
className="brand-icon" // CSS class
|
|
78
|
-
style={{ margin: 4 }} // Inline styles
|
|
79
|
-
aria-label="GitHub" // Accessible label
|
|
80
|
-
/>
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
## Examples
|
|
84
|
-
|
|
85
|
-
### Social Media Links
|
|
86
|
-
|
|
87
|
-
```tsx
|
|
88
|
-
import * as React from 'react';
|
|
89
|
-
import { Facebook, Twitter, Instagram, Linkedin, Youtube } from '@xsolla/xui-icons-brand';
|
|
90
|
-
|
|
91
|
-
export default function SocialLinks() {
|
|
92
|
-
const socials = [
|
|
93
|
-
{ Icon: Facebook, url: 'https://facebook.com', label: 'Facebook' },
|
|
94
|
-
{ Icon: Twitter, url: 'https://twitter.com', label: 'Twitter' },
|
|
95
|
-
{ Icon: Instagram, url: 'https://instagram.com', label: 'Instagram' },
|
|
96
|
-
{ Icon: Linkedin, url: 'https://linkedin.com', label: 'LinkedIn' },
|
|
97
|
-
{ Icon: Youtube, url: 'https://youtube.com', label: 'YouTube' },
|
|
98
|
-
];
|
|
99
|
-
|
|
100
|
-
return (
|
|
101
|
-
<div style={{ display: 'flex', gap: 12 }}>
|
|
102
|
-
{socials.map(({ Icon, url, label }) => (
|
|
103
|
-
<a key={label} href={url} aria-label={label}>
|
|
104
|
-
<Icon size={24} />
|
|
105
|
-
</a>
|
|
106
|
-
))}
|
|
107
|
-
</div>
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
### Platform Login Options
|
|
113
|
-
|
|
114
|
-
```tsx
|
|
115
|
-
import * as React from 'react';
|
|
116
|
-
import { Google, Apple, Steam, Discord } from '@xsolla/xui-icons-brand';
|
|
117
|
-
import { Button } from '@xsolla/xui-button';
|
|
118
|
-
|
|
119
|
-
export default function LoginOptions() {
|
|
120
|
-
return (
|
|
121
|
-
<div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>
|
|
122
|
-
<Button variant="secondary" iconLeft={<Google size={20} />}>
|
|
123
|
-
Continue with Google
|
|
124
|
-
</Button>
|
|
125
|
-
<Button variant="secondary" iconLeft={<Apple size={20} />}>
|
|
126
|
-
Continue with Apple
|
|
127
|
-
</Button>
|
|
128
|
-
<Button variant="secondary" iconLeft={<Steam size={20} />}>
|
|
129
|
-
Continue with Steam
|
|
130
|
-
</Button>
|
|
131
|
-
<Button variant="secondary" iconLeft={<Discord size={20} />}>
|
|
132
|
-
Continue with Discord
|
|
133
|
-
</Button>
|
|
134
|
-
</div>
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
### Gaming Platforms
|
|
140
|
-
|
|
141
|
-
```tsx
|
|
142
|
-
import * as React from 'react';
|
|
143
|
-
import {
|
|
144
|
-
Steam,
|
|
145
|
-
EpicGamesStore,
|
|
146
|
-
Gog,
|
|
147
|
-
Playstation,
|
|
148
|
-
Xbox,
|
|
149
|
-
BattleNet,
|
|
150
|
-
} from '@xsolla/xui-icons-brand';
|
|
151
|
-
|
|
152
|
-
export default function GamingPlatforms() {
|
|
153
|
-
return (
|
|
154
|
-
<div style={{ display: 'flex', gap: 16 }}>
|
|
155
|
-
<Steam size={32} aria-label="Steam" />
|
|
156
|
-
<EpicGamesStore size={32} aria-label="Epic Games Store" />
|
|
157
|
-
<Gog size={32} aria-label="GOG" />
|
|
158
|
-
<Playstation size={32} aria-label="PlayStation" />
|
|
159
|
-
<Xbox size={32} aria-label="Xbox" />
|
|
160
|
-
<BattleNet size={32} aria-label="Battle.net" />
|
|
161
|
-
</div>
|
|
162
|
-
);
|
|
163
|
-
}
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
### Themed Footer
|
|
167
|
-
|
|
168
|
-
```tsx
|
|
169
|
-
import * as React from 'react';
|
|
170
|
-
import { Github, Twitter, Discord } from '@xsolla/xui-icons-brand';
|
|
171
|
-
|
|
172
|
-
export default function ThemedFooter() {
|
|
173
|
-
return (
|
|
174
|
-
<footer style={{ background: '#1a1a1a', padding: 24 }}>
|
|
175
|
-
<div style={{ display: 'flex', gap: 16, justifyContent: 'center' }}>
|
|
176
|
-
<Github size={24} variant="mono" style={{ color: '#fff' }} />
|
|
177
|
-
<Twitter size={24} variant="mono" style={{ color: '#fff' }} />
|
|
178
|
-
<Discord size={24} variant="mono" style={{ color: '#fff' }} />
|
|
179
|
-
</div>
|
|
180
|
-
</footer>
|
|
181
|
-
);
|
|
182
|
-
}
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
## API Reference
|
|
186
|
-
|
|
187
|
-
### Brand Icon Components
|
|
188
|
-
|
|
189
|
-
Each brand icon component accepts the same props:
|
|
190
|
-
|
|
191
|
-
**BrandIconProps:**
|
|
192
|
-
|
|
193
|
-
| Prop | Type | Default | Description |
|
|
194
|
-
| :--- | :--- | :------ | :---------- |
|
|
195
|
-
| size | `number` | `24` | Size in pixels. |
|
|
196
|
-
| variant | `"colored" \| "mono"` | `"colored"` | Icon style variant. |
|
|
197
|
-
| className | `string` | - | CSS class name. |
|
|
198
|
-
| style | `CSSProperties` | - | Inline styles. |
|
|
199
|
-
| data-testid | `string` | - | Test ID (web). |
|
|
200
|
-
| testID | `string` | - | Test ID (React Native). |
|
|
201
|
-
| aria-label | `string` | - | Accessible label. |
|
|
202
|
-
| aria-hidden | `boolean` | `true` if no aria-label | Hide from screen readers. |
|
|
203
|
-
|
|
204
|
-
## Available Icons (160+)
|
|
205
|
-
|
|
206
|
-
### Social & Communication
|
|
207
|
-
`Discord`, `Facebook`, `FacebookMessenger`, `Instagram`, `Line`, `Linkedin`, `Meetup`, `RedditAlien`, `Skype`, `Slack`, `SnapchatGhost`, `TelegramPlane`, `Tiktok`, `Tumblr`, `Twitter`, `Viber`, `Vk`, `Wechat`, `Whatsapp`
|
|
208
|
-
|
|
209
|
-
### Gaming Platforms
|
|
210
|
-
`BattleNet`, `EaGames`, `EpicGamesStore`, `Gog`, `GooglePlay`, `GoogleStadia`, `ItchIo`, `MinecraftLauncher`, `MyNintendoStore`, `NexonLauncher`, `Oculus`, `Origin`, `ParadoxLauncher`, `Playstation`, `RiotGames`, `RobloxClient`, `RockstarGames`, `Steam`, `SteamSymbol`, `Ubisoft`, `Viveport`, `WargamingGameCenter`, `Xbox`
|
|
211
|
-
|
|
212
|
-
### Payment & Finance
|
|
213
|
-
`AmericanExpress`, `ApplePay`, `Btc`, `CcDinersClub`, `CcJcb`, `CcMastercard`, `CcPaypal`, `CcVisa`, `Ethereum`, `GooglePay`, `Paypal`, `Stripe`
|
|
214
|
-
|
|
215
|
-
### Tech Companies
|
|
216
|
-
`Adobe`, `Amazon`, `Apple`, `Atlassian`, `Dropbox`, `Ebay`, `Etsy`, `Google`, `GoogleDrive`, `Meta`, `Microsoft`, `Salesforce`
|
|
217
|
-
|
|
218
|
-
### Development
|
|
219
|
-
`Angular`, `Bitbucket`, `Bootstrap`, `Centos`, `Codepen`, `Confluence`, `Css3Alt`, `Figma`, `GitAlt`, `Github`, `GithubAlt`, `Gitlab`, `Html5`, `Java`, `Jira`, `Linux`, `NodeJs`, `Npm`, `Sketch`, `Trello`, `Ubuntu`, `Unity`, `WordpressSimple`
|
|
220
|
-
|
|
221
|
-
### Browsers
|
|
222
|
-
`Chrome`, `Edge`, `FirefoxBrowser`, `Opera`, `Safari`
|
|
223
|
-
|
|
224
|
-
### Media & Entertainment
|
|
225
|
-
`Bandcamp`, `Behance`, `Deviantart`, `Dribbble`, `Flickr`, `Imdb`, `ItunesNote`, `Soundcloud`, `Spotify`, `Twitch`, `Unsplash`, `VimeoV`, `Youtube`
|
|
226
|
-
|
|
227
|
-
### Xsolla
|
|
228
|
-
`XsollaLine`, `XsollaSolid`
|
|
229
|
-
|
|
230
|
-
## Tree Shaking
|
|
231
|
-
|
|
232
|
-
Import individual icons for optimal bundle size:
|
|
233
|
-
|
|
234
|
-
```tsx
|
|
235
|
-
// Good - only imports needed icons
|
|
236
|
-
import { Github, Discord } from '@xsolla/xui-icons-brand';
|
|
237
|
-
|
|
238
|
-
// Avoid - imports all icons
|
|
239
|
-
import * as BrandIcons from '@xsolla/xui-icons-brand';
|
|
240
|
-
```
|
|
241
|
-
|
|
242
|
-
## Accessibility
|
|
243
|
-
|
|
244
|
-
- Icons are hidden from screen readers by default (`aria-hidden="true"`)
|
|
245
|
-
- Use `aria-label` when the icon conveys meaningful information
|
|
246
|
-
- When used in buttons/links, the parent element should have the accessible label
|
|
247
|
-
- For decorative brand badges, keep the default hidden behavior
|