@oicl/openbridge-webcomponents 0.0.20260324133556 β 0.0.20260325090235
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/README.md +63 -106
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,150 +1,107 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @oicl/openbridge-webcomponents
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The core library of the OpenBridge design system, implemented as Lit-based web components.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://join.slack.com/t/openbridgegroup/shared_invite/zt-2e4clvl6s-uZLkN5L3g8O~c1UZCN1reQ)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## ποΈ Project Status
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
The code is only available for the partners until the release in March 2026. It is possible to get access to the code in active development by joining the project.
|
|
9
|
+
This library is currently in active development. We are gearing up for our first stable release in **Q2 2026**.
|
|
11
10
|
|
|
12
|
-
[π Click here to read more about the project.](https://
|
|
11
|
+
[π Click here to read more about the project and the JIP.](https://join.slack.com/t/openbridgegroup/shared_invite/zt-2e4clvl6s-uZLkN5L3g8O~c1UZCN1reQ)
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
## π Storybook & Demo
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
- **[Storybook](https://openbridge-jip-storybook.web.app)**: Browse components and view their different states.
|
|
16
|
+
- **[Live Demo](https://openbridge-jip-demo.web.app/)**: See the components in action.
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
## πΎ Installation
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
To use the components in your project, install the package from npm:
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<a href="http://www.youtube.com/watch?feature=player_embedded&v=5DiEA4voqzI" target="_blank">
|
|
27
|
-
<img src="https://img.youtube.com/vi/5DiEA4voqzI/0.jpg" alt="Watch the video" width="480" height="360" />
|
|
28
|
-
</a>
|
|
29
|
-
|
|
30
|
-
## Table of Contents
|
|
31
|
-
|
|
32
|
-
- [Storybook](#storybook)
|
|
33
|
-
- [Demo](#demo)
|
|
34
|
-
- [CSS file for palettes](#css-file-for-palettes)
|
|
35
|
-
- [Installation](#installation)
|
|
36
|
-
- [Bundle Version (Browser Only)](#bundle-version-browser-only)
|
|
37
|
-
- [Contributing](#contributing)
|
|
38
|
-
|
|
39
|
-
## Storybook
|
|
40
|
-
|
|
41
|
-
[Storybook](https://storybook.js.org/) is a development environment for UI components. It allows you to browse a component library, view the different states of each component, and interactively develop and test components in isolation.
|
|
42
|
-
|
|
43
|
-
To access the Storybook for this project, click [here](https://openbridge-jip-storybook.web.app).
|
|
44
|
-
|
|
45
|
-
## Demo
|
|
22
|
+
```bash
|
|
23
|
+
npm install @oicl/openbridge-webcomponents
|
|
24
|
+
```
|
|
46
25
|
|
|
47
|
-
|
|
26
|
+
> **Note:** If you are using Vue, React, Angular, or Svelte, we recommend using our [wrapper packages](#-framework-wrappers) for a better developer experience.
|
|
48
27
|
|
|
49
|
-
|
|
28
|
+
## π Quick Setup
|
|
50
29
|
|
|
51
|
-
|
|
30
|
+
### 1. Include CSS Palettes
|
|
52
31
|
|
|
53
|
-
|
|
32
|
+
Import the global OpenBridge CSS file in your main entry point:
|
|
54
33
|
|
|
55
34
|
```javascript
|
|
56
35
|
import '@oicl/openbridge-webcomponents/dist/openbridge.css';
|
|
57
36
|
```
|
|
58
37
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
38
|
+
### 2. Set the Theme
|
|
39
|
+
|
|
40
|
+
Select the palette by setting the `data-obc-theme` attribute on the `html` tag (`bright`, `day`, `dusk`, or `night`):
|
|
62
41
|
|
|
63
42
|
```html
|
|
64
43
|
<html lang="en" data-obc-theme="day"></html>
|
|
65
44
|
```
|
|
66
45
|
|
|
67
|
-
|
|
46
|
+
### 3. Set Component Size
|
|
68
47
|
|
|
69
|
-
|
|
48
|
+
Select the global component size by setting a class on the `body` tag (`obc-component-size-regular`, `medium`, `large`, or `xl`):
|
|
70
49
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
```bash
|
|
74
|
-
npm install @oicl/openbridge-webcomponents
|
|
50
|
+
```html
|
|
51
|
+
<body class="obc-component-size-regular"></body>
|
|
75
52
|
```
|
|
76
53
|
|
|
77
|
-
### Setup
|
|
54
|
+
### 4. Font Setup
|
|
55
|
+
|
|
56
|
+
The library uses **Noto Sans**. You should ensure it is available in your project.
|
|
78
57
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
```html
|
|
85
|
-
<html lang="en" data-obc-theme="day"></html>
|
|
86
|
-
```
|
|
87
|
-
3. Install the Noto Sans font by using the attached `NotoSans.ttf` file. Add the following to your css:
|
|
58
|
+
```css
|
|
59
|
+
@font-face {
|
|
60
|
+
font-family: 'Noto Sans';
|
|
61
|
+
src: url('path/to/NotoSans.ttf');
|
|
62
|
+
}
|
|
88
63
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
64
|
+
* {
|
|
65
|
+
font-family: 'Noto Sans', sans-serif;
|
|
66
|
+
}
|
|
67
|
+
```
|
|
94
68
|
|
|
95
|
-
|
|
96
|
-
font-family: Noto Sans;
|
|
97
|
-
}
|
|
98
|
-
```
|
|
69
|
+
## π§© Usage
|
|
99
70
|
|
|
100
|
-
|
|
71
|
+
### Standard Web Components
|
|
101
72
|
|
|
102
|
-
|
|
103
|
-
import '@oicl/openbridge-webcomponents/dist/components/top-bar/top-bar.js';
|
|
104
|
-
```
|
|
73
|
+
Import the components you need:
|
|
105
74
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
```
|
|
75
|
+
```javascript
|
|
76
|
+
import '@oicl/openbridge-webcomponents/dist/components/top-bar/top-bar.js';
|
|
77
|
+
```
|
|
110
78
|
|
|
111
|
-
|
|
79
|
+
Use them in your HTML:
|
|
112
80
|
|
|
113
|
-
|
|
81
|
+
```html
|
|
82
|
+
<obc-top-bar></obc-top-bar>
|
|
83
|
+
```
|
|
114
84
|
|
|
115
|
-
|
|
85
|
+
### Bundle Version (CDN / Prototyping)
|
|
116
86
|
|
|
117
|
-
|
|
87
|
+
For quick prototyping, you can use the bundled version:
|
|
118
88
|
|
|
119
89
|
```html
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
<title>OpenBridge Components</title>
|
|
125
|
-
|
|
126
|
-
<!-- Import CSS -->
|
|
127
|
-
<link rel="stylesheet" href="path/to/openbridge.css" />
|
|
128
|
-
|
|
129
|
-
<!-- Import bundle -->
|
|
130
|
-
<script
|
|
131
|
-
type="module"
|
|
132
|
-
src="path/to/openbridge-webcomponents.bundle.js"
|
|
133
|
-
></script>
|
|
134
|
-
</head>
|
|
135
|
-
<body>
|
|
136
|
-
<!-- All components are now available -->
|
|
137
|
-
<obc-button>Click Me</obc-button>
|
|
138
|
-
<obc-card>
|
|
139
|
-
<div slot="header">Card Header</div>
|
|
140
|
-
<div slot="content">Card content</div>
|
|
141
|
-
</obc-card>
|
|
142
|
-
</body>
|
|
143
|
-
</html>
|
|
90
|
+
<script
|
|
91
|
+
type="module"
|
|
92
|
+
src="node_modules/@oicl/openbridge-webcomponents/dist/openbridge-webcomponents.bundle.js"
|
|
93
|
+
></script>
|
|
144
94
|
```
|
|
145
95
|
|
|
146
|
-
|
|
96
|
+
## π¦ Framework Wrappers
|
|
97
|
+
|
|
98
|
+
For the best experience in your framework of choice, use our auto-generated wrappers:
|
|
99
|
+
|
|
100
|
+
- [`@oicl/openbridge-webcomponents-vue`](../openbridge-webcomponents-vue)
|
|
101
|
+
- [`@oicl/openbridge-webcomponents-react`](../openbridge-webcomponents-react)
|
|
102
|
+
- [`@oicl/openbridge-webcomponents-ng`](../openbridge-webcomponents-ng)
|
|
103
|
+
- [`@oicl/openbridge-webcomponents-svelte`](../openbridge-webcomponents-svelte)
|
|
147
104
|
|
|
148
|
-
## Contributing
|
|
105
|
+
## π« Contributing
|
|
149
106
|
|
|
150
|
-
Contributions are welcome!
|
|
107
|
+
Contributions are welcome! Please see the [root README](../../README.md) and [CONTRIBUTING.md](../../CONTRIBUTING.md) for development instructions.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oicl/openbridge-webcomponents",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20260325090235",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"test:browser": "vitest --config=vitest.browser.config.ts",
|
|
42
42
|
"π¦_WRAPPERS__________________________________________________": "echo _____",
|
|
43
43
|
"wrappers": "npm run wrappers:clean && npm run wrappers:generate && npm run wrappers:post-fix",
|
|
44
|
-
"wrappers:clean": "git clean -fdx ../openbridge-webcomponents-*",
|
|
44
|
+
"wrappers:clean": "git clean -fdx -e README.md ../openbridge-webcomponents-*",
|
|
45
45
|
"wrappers:generate": "lit labs gen --framework=vue --framework=react --framework=angular --framework=svelte --out=..",
|
|
46
46
|
"wrappers:post-fix": "node fix-generated.cjs",
|
|
47
47
|
"π_SCRIPTS___________________________________________________": "echo _____",
|