@zumer/orbit 0.6.0 → 1.0.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.
package/README.md CHANGED
@@ -5,12 +5,9 @@
5
5
  </a>
6
6
  </p>
7
7
  <p align="center">
8
- <a href="#installation"><b>⚙️ Install</b></a> •
9
- <a href="#features"><b>🤖 Features</b></a> •
10
- <a href="#examples"><b>🎮 Examples</b></a> •
11
8
  <a href="https://zumerlab.github.io/orbit-docs" target="_blank"><b>📚 Docs</b></a> •
12
- <a href="https://github.com/zumerlab/orbit/discussions" target="_blank"><b>💬 Github Discussions</b></a> •
13
- <a href="https://t.me/ZumlyCommunity" target="_blank"><b>🧑‍💻 Telegram Group</b></a>
9
+ <a href="https://github.com/zumerlab/orbit/discussions" target="_blank"><b>💬 Github discussions</b></a> •
10
+ <a href="https://t.me/ZumlyCommunity" target="_blank"><b>🧑‍💻 Telegram group</b></a>
14
11
  </p>
15
12
  <p align="center">
16
13
  <b>Use Orbit to create amazing radial UIs using CSS only!</b>
@@ -21,109 +18,94 @@
21
18
  </p>
22
19
 
23
20
  <p align="center">
24
- <a href="#stay-in-orbit"><b>Get involved</b></a>, leave a star <a href="https://github.com/zumerlab/orbit/stargazers"> <img src="https://img.shields.io/github/stars/zumerlab/orbit.svg?label=%E2%98%85%20Stars&logo=-&style=social"></a>
21
+ <a href="#stay-in-orbit"><b>Get involved</b></a>,
22
+ place your ⭐ in Orbit! <a href="https://github.com/zumerlab/orbit/stargazers"> <img src="https://img.shields.io/github/stars/zumerlab/orbit.svg?label=%E2%98%85%20Stars&logo=-&style=social"></a>
25
23
  </p>
26
24
 
25
+ ## Orbit CSS overview
27
26
 
28
- ## 🖖 Orbit in a nutshell
27
+ **Orbit** is a CSS framework designed for creating radial layouts. It offers simplicity, effectiveness, ease of use, and tremendous versatility for crafting compelling designs. It offers extensive customization options and supports nesting for building intricate designs tailored to your requirements.
29
28
 
30
- **Orbit** is the first general-purpose CSS framework designed specifically for radial user interfaces. We've used the latest CSS features to make building radial layouts a breeze. It provides intuitive CSS classes and Custom Elements for building radial menus, dashboards, creative portfolios, or a cutting-edge applications.
31
29
 
32
30
  ## Why Orbit?
33
31
 
34
- Because creating radial UIs generally involves resorting to JS or other languages to calculate angles, radius, distances, etc. **Orbit** helps and saves you a lot of time by allowing you to build these UIs with just CSS.
35
-
36
- ## Status
37
- > We’re in the early stages of development, things are still evolving. You’re welcome to explore and experiment, but keep in mind that names, features, and functionalities may change as we refine our project. We appreciate your understanding and flexibility during this exciting phase!
32
+ Creating radial UIs generally involves using JavaScript or other programming languages to calculate angles, radii, distances, and more. **Orbit** saves you time and effort by enabling you to build these UIs with just CSS.
38
33
 
39
34
  ## What is radial UI?
40
35
 
41
- Radial UI refers to a design paradigm where elements are organized and laid out in a circular or radial pattern, rather than the traditional grid-based or linear layouts. This approach can create visually appealing and intuitive interfaces, especially for applications that involve:
36
+ Radial UI refers to a design paradigm where elements are organized in a circular or radial pattern, diverging from traditional grid-based or linear layouts. This design approach is particularly effective for applications that involve:
42
37
 
43
- - Circular data visualization (e.g., pie charts, multi-level pie charts, gauges, watch faces)
44
- - Navigation menus or controls (e.g., radial or pie menus, circular scrolling)
45
- - Dashboards (e.g., car dashboards, infotainment, smart-home dashboards)
46
- - Landing pages (e.g., Orbit website landing page)
38
+ - **Circular data visualization:** progress bars, pie charts, multi-level pies, gauges, knobs
39
+ - **Navigation menus and controls:** radial or pie menus, circular scrolling
40
+ - **Dashboards:** smart-home interfaces, car dashboards, infotainment systems
41
+ - **Calendars:** circular layouts for scheduling and event tracking
42
+ - **Creative art and structures:** mandalas, sci-fi-inspired art, chemical structures
43
+ - **Interactive interfaces:** watch faces, dynamic controls for games or tools
47
44
 
48
- **Characteristics of Radial UI:**
45
+ **Characteristics of radial UI:**
49
46
 
50
- - Circular layout: Elements are arranged in a circular or curved pattern.
51
- - Center-focused: The center of the circle often serves as a focal point.
52
- - Symmetry: Radial UIs often exhibit symmetry, creating a sense of balance.
53
- - Angular relationships: Elements are positioned at specific angles relative to each other.
47
+ - **Circular layout:** elements are arranged in a circular or curved pattern.
48
+ - **Center-focused:** the center often serves as a focal point.
49
+ - **Symmetry:** radial UIs frequently exhibit symmetry, fostering a sense of balance.
50
+ - **Angular relationships:** elements are positioned at specific angles relative to one another.
54
51
 
55
- **Benefits of Radial UI:**
52
+ **Benefits of radial UI:**
56
53
 
57
- - Aesthetics: Radial designs can be visually stunning and engaging.
58
- - Intuitive navigation: Circular layouts can simplify navigation and reduce cognitive load.
59
- - Space efficiency: Radial UIs can make efficient use of screen real estate.
54
+ - **Aesthetics:** radial designs are visually striking and engaging.
55
+ - **Intuitive navigation:** circular layouts simplify navigation and reduce cognitive load.
56
+ - **Space efficiency:** radial UIs make efficient use of available screen, ideal for both compact and expansive interfaces.
60
57
 
61
58
  ## Features
62
59
 
63
- With Orbit, you can:
60
+ With **Orbit**, you can:
64
61
 
65
- - Build any kind of radial UI using our predefined CSS classes that do the heavy lifting.
66
- - Easily compose simple or complex radial designs by combining Orbit elements.
67
- - Use Orbit alongside other traditional CSS frameworks.
68
- - Get started quickly with our detailed documentation, examples, and guides that walk you through using Orbit's features effectively.
62
+ - Build any kind of radial UI using predefined CSS classes that do the heavy lifting.
63
+ - Easily compose simple or complex radial designs by combining **Orbit** elements.
64
+ - Use **Orbit** alongside other traditional CSS frameworks.
65
+ - Get started quickly with our detailed documentation, examples, and guides.
69
66
 
70
- ## 🚀 Try Orbit now!
67
+ ## Documentation
71
68
 
72
- To quickly get a taste of Orbit, you can try it directly in a [Orbit Codepen template](https://codepen.io/pen?template=KKjaoRj).
69
+ Learn all about **Orbit** in our [doc site](https://zumerlab.github.io/orbit-docs)!
73
70
 
74
71
  ## Installation
75
72
 
76
- Orbit comes with just two files: `orbit.css` (or `orbit.min.css`), and `orbit.js` (or `orbit.min.js`).
77
-
78
- ### Getting the Orbit files:
79
-
80
- You have three ways to get **Orbit** files:
81
-
82
- #### 1. Download the Orbit files
83
-
84
- - Get the **Orbit CSS file**: [orbit.css](https://unpkg.com/@zumer/orbit@latest/dist/orbit.css) or [orbit.min.css (minified)](https://unpkg.com/@zumer/orbit@latest/dist/orbit.min.css)
85
-
86
- - Get the **Orbit JS file**: [orbit.js](https://unpkg.com/@zumer/orbit@latest/dist/orbit.js) or [orbit.min.js (minified)](https://unpkg.com/@zumer/orbit@latest/dist/orbit.min.js)
87
-
88
-
89
- #### 2. Use Orbit via CDN (content delivery network)
73
+ **Orbit** comes with just two files: `orbit.css` (or `orbit.min.css`) and `orbit.js` (or `orbit.min.js`).
90
74
 
91
- - For latest version of **Orbit CSS file**:
75
+ ### Obtaining the Orbit files
92
76
 
93
- Uncompressed version: [https://unpkg.com/@zumer/orbit@latest/dist/orbit.css](https://unpkg.com/@zumer/orbit@latest/dist/orbit.css)
77
+ You can get **Orbit** files in three ways:
94
78
 
95
- Minified version: [https://unpkg.com/@zumer/orbit@latest/dist/orbit.min.css](https://unpkg.com/@zumer/orbit@latest/dist/orbit.min.css)
79
+ #### 1. Download the files
96
80
 
97
- - For latest version of **Orbit JS file**:
81
+ - Download the **CSS file:** [orbit.css](https://unpkg.com/@zumer/orbit@latest/dist/orbit.css) or [orbit.min.css](https://unpkg.com/@zumer/orbit@latest/dist/orbit.min.css).
82
+ - Download the **JS file:** [orbit.js](https://unpkg.com/@zumer/orbit@latest/dist/orbit.js) or [orbit.min.js](https://unpkg.com/@zumer/orbit@latest/dist/orbit.min.js).
98
83
 
99
- Uncompressed version: [https://unpkg.com/@zumer/orbit@latest/dist/orbit.js](https://unpkg.com/@zumer/orbit@latest/dist/orbit.js)
84
+ #### 2. Use a CDN
100
85
 
101
- Minified version: [https://unpkg.com/@zumer/orbit@latest/dist/orbit.min.js](https://unpkg.com/@zumer/orbit@latest/dist/orbit.min.js)
86
+ - **CSS:**
87
+ Uncompressed: [orbit.css](https://unpkg.com/@zumer/orbit@latest/dist/orbit.css)
88
+ Minified: [orbit.min.css](https://unpkg.com/@zumer/orbit@latest/dist/orbit.min.css)
102
89
 
90
+ - **JS:**
91
+ Uncompressed: [orbit.js](https://unpkg.com/@zumer/orbit@latest/dist/orbit.js)
92
+ Minified: [orbit.min.js](https://unpkg.com/@zumer/orbit@latest/dist/orbit.min.js)
103
93
 
104
- #### 3. Install Orbit via a Package Manager
94
+ #### 3. Install via npm or yarn
105
95
 
106
- You can also install Orbit using **npm** or **yarn**:
107
-
108
- ```sh
109
- npm install @zumer/orbit
110
- ```
111
-
112
- Or
113
-
114
- ```sh
115
- yarn add @zumer/orbit
116
- ```
117
-
118
- ### Setting up Orbit in your project:
96
+ ```sh
97
+ npm install @zumer/orbit
98
+ ```
119
99
 
120
- After install Orbit, follow this simple steps to get Orbit working.
100
+ or
121
101
 
122
- #### Link Orbit files or CDN in your HTML file:
102
+ ```sh
103
+ yarn add @zumer/orbit
104
+ ```
123
105
 
124
- If you have downloaded them just use `<link> tag ` for the CSS file, and `<script> tag` for the JS file within the `<head>` section:
106
+ ### Adding Orbit to your project
125
107
 
126
- In case you have downloaded the files:
108
+ Include the files in your project as follows:
127
109
 
128
110
  ```html
129
111
  <head>
@@ -132,7 +114,7 @@ In case you have downloaded the files:
132
114
  </head>
133
115
  ```
134
116
 
135
- In case you are using CDN:
117
+ Or via CDN:
136
118
 
137
119
  ```html
138
120
  <head>
@@ -141,134 +123,31 @@ In case you are using CDN:
141
123
  </head>
142
124
  ```
143
125
 
144
- > **Tip for CSS file**: You can use `@import` CSS rule in your `<style> tag` to import the **CSS file**:
145
- >
146
- > Downloaded file:
147
- > ```css
148
- > @import url('path/to/orbit.css');
149
- > ```
150
- > Or via CDN:
151
- >```css
152
- > @import url('https://unpkg.com/@zumer/orbit@latest/dist/orbit.css');
153
- > ```
154
-
155
126
  ## 🏁 Quick start
156
127
 
157
- ### Basic Orbit layout
158
-
159
- Just add `.bigbang` CSS class in a HTML element like `<div>`. Then use `.gravity-spot` class, and within it, add another element with `.orbit` class. Finally, inside `.orbit` element, add radial elements, such us: `.satellite`, `.vector`, `.side`, or `<o-text>`, `<o-arc>`, `<o-progress>` web components . Here’s a minimal working example:
160
-
161
128
  ```html
162
- <!DOCTYPE html>
163
- <html lang="en">
164
- <head>
165
- <meta charset="UTF-8" />
166
- <link rel="stylesheet" href="https://unpkg.com/@zumer/orbit@latest/dist/orbit.css" />
167
- <script src="https://unpkg.com/@zumer/orbit@latest/dist/orbit.js" defer></script>
168
- <title>Orbit Quick Start</title>
169
- </head>
170
- <body>
171
- <div class="bigbang">
172
- <div class="gravity-spot">
173
- <div class="orbit">
174
- <div class="satellite">1</div>
175
- <div class="satellite">2</div>
176
- <div class="satellite">3</div>
177
- </div>
178
- <div class="orbit">
179
- <o-text>Curved text</o-text>
180
- </div>
181
- </div>
129
+ <div class="bigbang">
130
+ <div class="gravity-spot">
131
+ <div class="orbit">
132
+ <div class="satellite">1</div>
133
+ <div class="satellite">2</div>
134
+ <div class="satellite">3</div>
182
135
  </div>
183
- </body>
184
- </html>
136
+ </div>
137
+ </div>
185
138
  ```
186
139
 
187
- ## Radial elements
188
-
189
- ### Bigbang
190
-
191
- The foundation of every Orbit project, serving as a container for your application.
192
-
193
- ### Gravity-spot
194
-
195
- The parent container for organizing Orbit elements within a radial layout.
196
-
197
- ### Orbit
198
-
199
- Defines a circular path around a .gravity-spot, with variations from .orbit-0 to .orbit-24. Within .orbit element, various Orbit elements such as `satellites`, `o-arcs`, `o-progress`, `vectors`, `sides`, and `o-texts` can be positioned.
200
-
201
- ### Satellite
202
-
203
- Places elements along an .orbit or .orbit-* path, serving as content containers or nesting points for other orbits.
204
-
205
- ### Vector
206
-
207
- Renders perpendicular lines across orbits, perfect for creating connector lines or minute marks.
208
-
209
- ### Side
210
-
211
- Generates a regular polygon figure when used with other sides.
212
-
213
- ### O-Text
214
-
215
- A web-component for rendering curved text.
216
-
217
- ### o-arc
218
-
219
- A web-component for rendering radial slices, arcs, or pies.
220
-
221
- ### O-Progress
222
-
223
- A web-component for rendering a radial progress bar.
224
-
225
-
226
140
  ## Examples
227
141
 
228
- ### A dashboard
229
-
230
- <p align="center">
231
- <a href="https://zumerlab.github.io/orbit-docs/examples/#a-dashboard" target="_blank">
232
- <img src="https://raw.githubusercontent.com/zumerlab/orbit-docs/main/public/images/demo1.png" width="60%">
233
- </a>
234
- </p>
235
-
236
-
237
- ### An orbital map
142
+ - **A dashboard**
143
+ ![demo1](https://raw.githubusercontent.com/zumerlab/orbit-docs/main/public/images/demo1.png)
238
144
 
239
- <p align="center">
240
- <a href="https://zumerlab.github.io/orbit-docs/examples/#an-abstract-orbital-map" target="_blank">
241
- <img src="https://raw.githubusercontent.com/zumerlab/orbit-docs/main/public/images/demo2.png" width="60%">
242
- </a>
243
- </p>
145
+ - **A watch**
146
+ ![demo3](https://raw.githubusercontent.com/zumerlab/orbit-docs/main/public/images/demo3.png)
244
147
 
245
- ### A watch
148
+ Explore more examples in our [doc site](https://zumerlab.github.io/orbit-docs/examples/progress).
246
149
 
247
- <p align="center">
248
- <a href="https://zumerlab.github.io/orbit-docs/examples/#a-watch" target="_blank">
249
- <img src="https://raw.githubusercontent.com/zumerlab/orbit-docs/main/public/images/demo3.png" width="60%">
250
- </a>
251
- </p>
252
-
253
- ### The solar system
254
-
255
- <p align="center">
256
- <a href="https://zumerlab.github.io/orbit-docs/examples/#the-solar-system" target="_blank">
257
- <img src="https://raw.githubusercontent.com/zumerlab/orbit-docs/main/public/images/demo4.png" width="60%">
258
- </a>
259
- </p>
260
-
261
-
262
- > **Show & Tell**:
263
- >
264
- > Join to [Discussion section](https://github.com/zumerlab/orbit/discussions/15) and show off what have you done with Orbit.
265
-
266
-
267
- ## 🥋 Mastering Orbit
268
-
269
- Read the Orbit docs [here.](https://zumerlab.github.io/orbit-docs)
270
-
271
- ## Stay in orbit
150
+ ## Stay in Orbit
272
151
 
273
152
  There are many ways to **contribute** to **Orbit** development:
274
153
 
@@ -277,10 +156,6 @@ There are many ways to **contribute** to **Orbit** development:
277
156
  - [**Telegram group**](https://t.me/ZumlyCommunity): Join our Telegram group for real-time discussions and updates.
278
157
 
279
158
 
280
-
281
159
  ## License
282
160
 
283
161
  [MIT](https://github.com/zumerlab/orbit/blob/main/LICENSE)
284
-
285
-
286
-