Skip to content

Commit 3a5cf19

Browse files
authored
fix: resolve merge conflicts with origin/mbertamini/1597-remove-o2new-skin
1 parent 8693653 commit 3a5cf19

7 files changed

Lines changed: 11 additions & 90 deletions

File tree

.github/actions/audit-accessibility/main.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,7 @@ const main = async () => {
250250
}
251251

252252
const stories = getStories().filter((story) => !STORIES_BLACKLIST.has(story));
253-
<<<<<<< HEAD
254253
const skins = ['Movistar', 'O2', 'Vivo', 'Vivo-evolution', 'Blau'];
255-
=======
256-
const skins = ['Movistar-new', 'O2', 'Vivo', 'Vivo-evolution', 'Blau'];
257-
>>>>>>> origin/mbertamini/1597-remove-o2new-skin
258254

259255
/**
260256
* @type Array<[story: string, skin: string]>

.storybook/preview.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,7 @@ const MisticaThemeProvider = ({
134134
{(skin === MOVISTAR_SKIN || skin === O2_SKIN || skin === ESIMFLAG_SKIN) && (
135135
<style>{`body {font-family: "On Air"}`}</style>
136136
)}
137-
<<<<<<< HEAD
138137
{skin === MOVISTAR_SKIN && <style>{`body {font-family: "Movistar Sans"}`}</style>}
139-
=======
140-
{skin === MOVISTAR_NEW_SKIN && <style>{`body {font-family: "Movistar Sans"}`}</style>}
141-
>>>>>>> origin/mbertamini/1597-remove-o2new-skin
142138
<Story {...context} />
143139
</OverscrollColorProvider>
144140
</ThemeContextProvider>

doc/fonts.md

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
\*\*\*\*# Fonts
1+
# Fonts
22

33
Mistica does **not** inject a font family automatically. Without explicit setup, browsers fall back to their
44
default serif font (Times New Roman on desktop). You must declare `@font-face` rules and set `font-family` on
@@ -8,28 +8,15 @@ default serif font (Times New Roman on desktop). You must declare `@font-face` r
88

99
Each skin has a designated font family. Use the correct one for the skin your app is using:
1010

11-
<<<<<<< HEAD
12-
| Skin | Getter function | Font family |
13-
| --------------------- | ------------------------ | ------------------- |
14-
| `movistar` _(legacy)_ | `getMovistarSkin()` | `'On Air'` |
15-
| `o2` | `getO2Skin()` | `'On Air'` |
16-
| `vivo` | `getVivoSkin()` | `'Vivo Type'` |
17-
| `vivo-evolution` | `getVivoEvolutionSkin()` | `'Vivo Type'` |
18-
| `telefonica` | `getTelefonicaSkin()` | `'Telefonica Sans'` |
19-
| `blau` | `getBlauSkin()` | `'Roboto'` |
20-
| `esimflag` | `getEsimflagSkin()` | `'On Air'` |
21-
=======
22-
| Skin | Getter function | Font family |
23-
| ---------------------------- | ------------------------ | ------------------- |
24-
| `movistar-new` _(preferred)_ | `getMovistarNewSkin()` | `'Movistar Sans'` |
25-
| `movistar` _(legacy)_ | `getMovistarSkin()` | `'On Air'` |
26-
| `o2` | `getO2Skin()` | `'On Air'` |
27-
| `vivo` | `getVivoSkin()` | `'Vivo Type'` |
28-
| `vivo-evolution` | `getVivoEvolutionSkin()` | `'Vivo Type'` |
29-
| `telefonica` | `getTelefonicaSkin()` | `'Telefonica Sans'` |
30-
| `blau` | `getBlauSkin()` | `'Roboto'` |
31-
| `esimflag` | `getEsimflagSkin()` | `'On Air'` |
32-
>>>>>>> origin/mbertamini/1597-remove-o2new-skin
11+
| Skin | Getter function | Font family |
12+
| ---------------- | ------------------------ | ------------------- |
13+
| `movistar` | `getMovistarSkin()` | `'Movistar Sans'` |
14+
| `o2` | `getO2Skin()` | `'On Air'` |
15+
| `vivo` | `getVivoSkin()` | `'Vivo Type'` |
16+
| `vivo-evolution` | `getVivoEvolutionSkin()` | `'Vivo Type'` |
17+
| `telefonica` | `getTelefonicaSkin()` | `'Telefonica Sans'` |
18+
| `blau` | `getBlauSkin()` | `'Roboto'` |
19+
| `esimflag` | `getEsimflagSkin()` | `'On Air'` |
3320

3421
## Setting font-family
3522

doc/llms/llms.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -152,24 +152,12 @@ type ThemeConfig = {
152152
};
153153
```
154154

155-
<<<<<<< HEAD
156155
Available skins: `getMovistarSkin()`, `getVivoSkin()`, `getVivoEvolutionSkin()`, `getO2Skin()`,
157-
`getTelefonicaSkin()`, `getBlauSkin()`, and others via `getSkinByName()`. The legacy Movistar variant without
158-
the `New` suffix also exists (`getMovistarSkin()`). You can also create a custom skin.
159-
156+
`getTelefonicaSkin()`, `getBlauSkin()`, and others via `getSkinByName()`. You can also create a custom skin.
160157
If you need to customize default component colors, radii, or other visual tokens beyond the props exposed by a
161158
component, prefer extending a skin over overriding component styles. Built-in palette exports such as
162159
`movistarPalette`, `o2Palette`, `vivoPalette`, etc. are available for skin authoring, and custom skins may
163160
also define their own palette colors from scratch.
164-
=======
165-
Available skins: `getMovistarNewSkin()`, `getVivoSkin()`, `getVivoEvolutionSkin()`, `getO2Skin()`,
166-
`getTelefonicaSkin()`, `getBlauSkin()`, and others via `getSkinByName()`. The legacy Movistar variant without
167-
the `New` suffix also exists (`getMovistarSkin()`); prefer the `New` version for new projects. You can also
168-
create a custom skin. If you need to customize default component colors, radii, or other visual tokens beyond
169-
the props exposed by a component, prefer extending a skin over overriding component styles. Built-in palette
170-
exports such as `movistarNewPalette`, `o2Palette`, `vivoPalette`, etc. are available for skin authoring, and
171-
custom skins may also define their own palette colors from scratch.
172-
>>>>>>> origin/mbertamini/1597-remove-o2new-skin
173161

174162
Built-in Link integrations: `Next12`, `Next13`, `Next14`, `ReactRouter5`, `ReactRouter6`.
175163

@@ -299,11 +287,7 @@ All tokens via `skinVars` from `@telefonica/mistica`:
299287

300288
- **Colors**: `skinVars.colors.*` (286 tokens for backgrounds, text, borders, controls, status, tags)
301289
- **Raw colors**: `skinVars.rawColors.*` (same tokens as RGB values, for use with `applyAlpha`)
302-
<<<<<<< HEAD
303290
- **Palettes for skin authoring**: built-in palette exports such as `movistarPalette`, `o2Palette`,
304-
=======
305-
- **Palettes for skin authoring**: built-in palette exports such as `movistarNewPalette`, `o2Palette`,
306-
>>>>>>> origin/mbertamini/1597-remove-o2new-skin
307291
`vivoPalette`, etc. Use these only when creating/extending a `Skin`, not for styling app components
308292
directly.
309293
- **Border radii**: `skinVars.borderRadii.*` (container, button, input, popup, chip, sheet, avatar, tag, etc.)

playroom/components/index.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ import {
2020
O2Logo,
2121
EsimflagLogo,
2222
} from '../../src';
23-
<<<<<<< HEAD
2423
import {Movistar, Telefonica, Blau, Vivo, Vivo_Evolution, O2, Esimflag} from '../themes';
25-
=======
26-
import {Movistar_New, Telefonica, Blau, Vivo, Vivo_Evolution, O2, Esimflag} from '../themes';
27-
>>>>>>> origin/mbertamini/1597-remove-o2new-skin
2824
import {useOverrideTheme} from '../frame-component';
2925
import IconSun from '../icons/icon-sun';
3026
import IconMoon from '../icons/icon-moon';
@@ -42,11 +38,7 @@ export * from '../../src/community';
4238
export {default as Loader} from './loader';
4339
export {default as Animation} from './animation';
4440

45-
<<<<<<< HEAD
4641
type ValidSkinName = KnownSkinName;
47-
=======
48-
type ValidSkinName = Exclude<KnownSkinName, 'Movistar'>;
49-
>>>>>>> origin/mbertamini/1597-remove-o2new-skin
5042

5143
const BrandIcon = ({Logo}: {Logo: React.ComponentType<{size: number; color?: string}>}) => {
5244
const {isDarkMode} = useTheme();

src/__stories__/logo-story.tsx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
import * as React from 'react';
2-
<<<<<<< HEAD
32
import {BlauLogo, Logo, MovistarLogo, O2Logo, TelefonicaLogo, VivoLogo, EsimflagLogo} from '../logo';
4-
=======
5-
import {
6-
BlauLogo,
7-
Logo,
8-
MovistarLogo,
9-
MovistarNewLogo,
10-
O2Logo,
11-
TelefonicaLogo,
12-
VivoLogo,
13-
EsimflagLogo,
14-
} from '../logo';
15-
>>>>>>> origin/mbertamini/1597-remove-o2new-skin
163
import {Box, ResponsiveLayout, useTheme} from '../index';
174

185
import type {Variant} from '../theme-variant-context';
@@ -39,11 +26,7 @@ type Args = {
3926
variantOutside: Variant;
4027
action: 'none' | 'onPress' | 'href' | 'to';
4128
forceBrandLogo: boolean;
42-
<<<<<<< HEAD
4329
brand: 'Movistar' | 'O2' | 'Vivo' | 'Telefonica' | 'Blau' | 'Esimflag';
44-
=======
45-
brand: 'Movistar' | 'Movistar-new' | 'O2' | 'Vivo' | 'Telefonica' | 'Blau' | 'Esimflag';
46-
>>>>>>> origin/mbertamini/1597-remove-o2new-skin
4730
color: (typeof COLOR_OPTIONS)[number];
4831
};
4932

@@ -120,11 +103,7 @@ Default.args = {
120103

121104
Default.argTypes = {
122105
brand: {
123-
<<<<<<< HEAD
124106
options: ['Movistar', 'O2', 'Vivo', 'Telefonica', 'Blau', 'Esimflag'],
125-
=======
126-
options: ['Movistar', 'Movistar-new', 'O2', 'Vivo', 'Telefonica', 'Blau', 'Esimflag'],
127-
>>>>>>> origin/mbertamini/1597-remove-o2new-skin
128107
control: {type: 'select'},
129108
if: {arg: 'forceBrandLogo'},
130109
},

src/test-utils/index.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -185,20 +185,7 @@ export const openStoryPage = ({
185185
id: string;
186186
device?: Device;
187187
viewport?: TestViewport;
188-
<<<<<<< HEAD
189188
skin?: 'Movistar' | 'Vivo' | 'Vivo-evolution' | 'O2' | 'Telefonica' | 'Blau' | 'Esimflag' | 'Cyber';
190-
=======
191-
skin?:
192-
| 'Movistar'
193-
| 'Movistar-new'
194-
| 'Vivo'
195-
| 'Vivo-evolution'
196-
| 'O2'
197-
| 'Telefonica'
198-
| 'Blau'
199-
| 'Esimflag'
200-
| 'Cyber';
201-
>>>>>>> origin/mbertamini/1597-remove-o2new-skin
202189
args?: StoryArgs;
203190
isDarkMode?: boolean;
204191
}): Promise<PageApi> =>

0 commit comments

Comments
 (0)