Skip to content

Commit d2cd1a9

Browse files
Cyrille Bourgoisjleveugle
authored andcommitted
refactor: rename universes-styles to telecom-styles
Add build of @ovh-ux/manager-telecom-styles Remove unused less variables and helpers BREAKING CHANGE : @ovh-ux/manager-universes-styles is now @ovh-ux/manager-telecom-styles Before: import @ovh-ux/manager-telecom-styles/src/telecom.less in less After: import @ovh-ux/manager-telecom-styles in javascript
1 parent 6d6f9b2 commit d2cd1a9

20 files changed

+55
-92
lines changed
File renamed without changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "@ovh-ux/manager-telecom-styles",
3+
"version": "1.0.0",
4+
"license": "BSD-3-Clause",
5+
"main": "./dist/cjs/index.js",
6+
"module": "./dist/esm/index.js",
7+
"scripts": {
8+
"build": "rollup -c --environment BUILD:production",
9+
"dev": "rollup -c --environment BUILD:development --watch",
10+
"prepare": "yarn run build"
11+
},
12+
"browser": "./dist/umd/index.js",
13+
"dependencies": {
14+
"bootstrap": "~3.3.7",
15+
"ovh-ui-kit": "^2.21.5",
16+
"ovh-ui-kit-bs": "~1.3.3"
17+
},
18+
"devDependencies": {
19+
"@ovh-ux/component-rollup-config": "5.0.0-beta.3"
20+
}
21+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import path from 'path';
2+
import rollupConfig from '@ovh-ux/component-rollup-config';
3+
4+
const config = rollupConfig({
5+
input: 'src/index.js',
6+
}, {
7+
lessTildeImporter: {
8+
paths: [
9+
path.resolve(__dirname, 'node_modules'),
10+
path.resolve(__dirname, '../../../node_modules'),
11+
],
12+
},
13+
});
14+
15+
const outputs = [config.es()];
16+
17+
if (process.env.BUILD === 'production') {
18+
outputs.push(config.cjs());
19+
outputs.push(config.umd());
20+
}
21+
22+
export default outputs;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import './telecom.less';

packages/manager/universes-styles/src/telecom.less renamed to packages/manager/telecom-styles/src/telecom.less

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
@import "~ovh-ui-kit/packages/oui-color/_variables";
2+
@import "~ovh-ui-kit/packages/oui-typography/_variables";
3+
@import "~bootstrap/less/variables.less";
4+
15
.telecom-legacy {
26
.telecom-section-header {
37
clear: both;
@@ -31,19 +35,23 @@
3135
overflow: visible !important;
3236
}
3337

34-
// @import './telecom/ovh-angular-input-number-spinner';
38+
// TODO: Delete this custom style once we remove editable service name component
39+
// and use page-header ui-kit component with header-tabs
40+
.oui-header-tabs {
41+
background-color: @oui-color-nurse;
42+
}
3543

3644
@import './telecom/button';
3745
@import './telecom/common';
3846
@import './telecom/date-picker';
3947
@import './telecom/form';
4048
@import './telecom/global';
4149
@import './telecom/header';
50+
@import './telecom/ovh-angular-input-number-spinner';
4251
@import './telecom/popover';
4352
@import './telecom/revert-really-buttons';
4453
@import './telecom/service';
4554
@import './telecom/tables';
4655
@import './telecom/uiview-animate';
47-
@import './telecom/variables';
4856
@import './telecom/widget-presentation';
4957
}

packages/manager/universes-styles/src/telecom/button.less renamed to packages/manager/telecom-styles/src/telecom/button.less

File renamed without changes.

packages/manager/universes-styles/src/telecom/common.less renamed to packages/manager/telecom-styles/src/telecom/common.less

File renamed without changes.

packages/manager/universes-styles/src/telecom/date-picker.less renamed to packages/manager/telecom-styles/src/telecom/date-picker.less

File renamed without changes.

packages/manager/universes-styles/src/telecom/form.less renamed to packages/manager/telecom-styles/src/telecom/form.less

File renamed without changes.

packages/manager/universes-styles/src/telecom/global.less renamed to packages/manager/telecom-styles/src/telecom/global.less

File renamed without changes.

0 commit comments

Comments
 (0)