@meteo28093/equinox-ui 0.0.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/LICENCE.md +99 -0
- package/README.md +92 -0
- package/dist/equinox-ui.0.0.1.esm.js +2575 -0
- package/dist/equinox-ui.0.0.1.global.js +2575 -0
- package/dist/equinox-ui.esm.js +2575 -0
- package/dist/equinox-ui.global.js +2575 -0
- package/equinox.css +67 -0
- package/package.json +58 -0
package/LICENCE.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Equinox UI Commons License
|
|
2
|
+
|
|
3
|
+
Copyright (c) meteo28093
|
|
4
|
+
|
|
5
|
+
This software is licensed under a [Fair-Code license](https://faircode.io). By using the software, you agree
|
|
6
|
+
to all of the terms and conditions below.
|
|
7
|
+
|
|
8
|
+
For all third party components incorporated into the Software, those components are licensed under the
|
|
9
|
+
original license provided by the owner of the applicable component.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Copyright License
|
|
13
|
+
|
|
14
|
+
The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license
|
|
15
|
+
to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject
|
|
16
|
+
to the limitations below.
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## Limitations
|
|
20
|
+
|
|
21
|
+
1. You may use or modify the software only for your own internal business purposes or for non-commercial or
|
|
22
|
+
personal use.
|
|
23
|
+
|
|
24
|
+
2. You may distribute the software or provide it to others only if you do so free of charge for
|
|
25
|
+
non-commercial purposes.
|
|
26
|
+
|
|
27
|
+
3. You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the
|
|
28
|
+
software. Any use of the licensor's trademarks is subject to applicable law.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## Disallowed Uses
|
|
32
|
+
|
|
33
|
+
The software maybe not be used for the following purposes:
|
|
34
|
+
|
|
35
|
+
1. Projects that contain misinformation, hate speech or discriminating content based on age, gender, gender
|
|
36
|
+
identity, race, sexuality, religion, nationality, serious illnesses or disabilities, no matter who authored
|
|
37
|
+
this content. Misinformation is defined as content that is false or misleading and may lead to significant
|
|
38
|
+
risk of physical or societal harm.
|
|
39
|
+
|
|
40
|
+
2. Use by companies or individuals who:
|
|
41
|
+
- lobby for, promote, derive a majority of income from, or are significantly invested in:
|
|
42
|
+
+ the production of tobacco or weapons,
|
|
43
|
+
+ any prison or jail operated for profit,
|
|
44
|
+
+ any action or facility that supports or contributes to gambling, adversely addictive behaviors,
|
|
45
|
+
or deforestation.
|
|
46
|
+
- lobby against or derive a majority of income from actions that discourage or frustrate:
|
|
47
|
+
+ peace,
|
|
48
|
+
+ access to the rights set out in the Universal Declaration of Human Rights and the
|
|
49
|
+
Convention on the Rights of the Child,
|
|
50
|
+
+ peaceful assembly and association (including worker associations),
|
|
51
|
+
+ a safe environment or action to curtail the use of fossil fuels or to prevent climate change or
|
|
52
|
+
+ democratic processes.
|
|
53
|
+
|
|
54
|
+
## Notices
|
|
55
|
+
|
|
56
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these
|
|
57
|
+
terms. If you modify the software, you must include in any modified copies of the software a prominent notice
|
|
58
|
+
stating that you have modified the software.
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
## No Other Rights
|
|
62
|
+
|
|
63
|
+
These terms do not imply any licenses other than those expressly granted in these terms.
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
## Termination
|
|
67
|
+
|
|
68
|
+
If you use the software in violation of these terms, such use is not licensed, and your license will
|
|
69
|
+
automatically terminate. If the licensor provides you with a notice of your violation, and you cease all
|
|
70
|
+
violation of this license no later than 30 days after you receive that notice, your license will be reinstated
|
|
71
|
+
retroactively. However, if you violate these terms after such reinstatement, any additional violation of these
|
|
72
|
+
terms will cause your license to terminate automatically and permanently.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
## No Liability
|
|
76
|
+
|
|
77
|
+
As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will
|
|
78
|
+
not be liable to you for any damages arising out of these terms or the use or nature of the software, under
|
|
79
|
+
any kind of legal claim.
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## Definitions
|
|
83
|
+
|
|
84
|
+
The "licensor" is the entity offering these terms.
|
|
85
|
+
|
|
86
|
+
The "software" is the software the licensor makes available under these terms, including any portion of it.
|
|
87
|
+
|
|
88
|
+
"You" refers to the individual or entity agreeing to these terms.
|
|
89
|
+
|
|
90
|
+
"Your company" is any legal entity, sole proprietorship, or other kind of organization that you work for, plus
|
|
91
|
+
all organizations that have control over, are under the control of, or are under common control with that
|
|
92
|
+
organization. Control means ownership of substantially all the assets of an entity, or the power to direct its
|
|
93
|
+
management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
94
|
+
|
|
95
|
+
"Your license" is the license granted to you for the software under these terms.
|
|
96
|
+
|
|
97
|
+
"Use" means anything you do with the software requiring your license.
|
|
98
|
+
|
|
99
|
+
"Trademark" means trademarks, service marks, and similar rights.
|
package/README.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Equinox UI
|
|
2
|
+
|
|
3
|
+
Equinox UI is a no-build web component library for blogs and small web projects.
|
|
4
|
+
|
|
5
|
+
## Scope and acceptance criteria
|
|
6
|
+
|
|
7
|
+
### Classless CSS compatibility
|
|
8
|
+
|
|
9
|
+
Components stay readable and usable in all of:
|
|
10
|
+
|
|
11
|
+
- No CSS framework (browser defaults + component fallbacks)
|
|
12
|
+
- Water.css
|
|
13
|
+
- Pico.css
|
|
14
|
+
- Sakura.css
|
|
15
|
+
|
|
16
|
+
You can use the bundled `equinox.css`
|
|
17
|
+
|
|
18
|
+
## Use with a CDN
|
|
19
|
+
|
|
20
|
+
```html
|
|
21
|
+
<script src="https://cdn.jsdelivr.net/npm/equinox-ui@<version>/dist/equinox-ui.global.js"></script>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
This registers components globally.
|
|
25
|
+
|
|
26
|
+
## Use with classless CSS frameworks
|
|
27
|
+
|
|
28
|
+
Example (Pico.css):
|
|
29
|
+
|
|
30
|
+
```html
|
|
31
|
+
<link
|
|
32
|
+
rel="stylesheet"
|
|
33
|
+
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"
|
|
34
|
+
/>
|
|
35
|
+
<script type="module">
|
|
36
|
+
import "https://cdn.jsdelivr.net/npm/equinox-ui@1.0.0/dist/equinox-ui.esm.js";
|
|
37
|
+
</script>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Example (Water.css):
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<link
|
|
44
|
+
rel="stylesheet"
|
|
45
|
+
href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css"
|
|
46
|
+
/>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Use without any CSS framework
|
|
50
|
+
|
|
51
|
+
No additional CSS is required. Components include fallback tokens so they remain readable out of the box.
|
|
52
|
+
|
|
53
|
+
## Component capabilities
|
|
54
|
+
|
|
55
|
+
- `ee-nav` - Navigation component with mobile menu
|
|
56
|
+
- `ee-code-block` - Syntax-highlighted code display
|
|
57
|
+
- `ee-lorem-ipsum` - Lorem Ipsum generator
|
|
58
|
+
- `ee-card` - Content card component
|
|
59
|
+
- `ee-bar-chart`, `ee-line-chart`, `ee-sparkline`, `ee-gauge` - Data visualization
|
|
60
|
+
- `ee-faq-accordion` - FAQ accordion
|
|
61
|
+
- `ee-slide-show` - Image carousel
|
|
62
|
+
- `ee-repl` - In-browser HTML/CSS/JS REPL
|
|
63
|
+
- And many more
|
|
64
|
+
|
|
65
|
+
A demo is here: [https://equinox-ui.up.railway.app](https://equinox-ui.up.railway.app)
|
|
66
|
+
|
|
67
|
+
## macOS status bar preview
|
|
68
|
+
|
|
69
|
+
This repo includes a local macOS status bar helper for showing components in the menu bar. This is not included in the NPM package and CDN.
|
|
70
|
+
|
|
71
|
+
Launch format:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
node statusbar.js <component-tag> '<params-json>' --icon <icon-spec>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Examples:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
node test.js ee-moon-card '{"city": "Berlin"}' --icon lucide:moon-star
|
|
81
|
+
node test.js ee-geo-storm '{}' --icon lucide:cloud-lightning
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Notes:
|
|
85
|
+
|
|
86
|
+
- `<component-tag>` must match a file in `src/components`, for example `ee-card` or `ee-geo-storm`.
|
|
87
|
+
- `<params-json>` is optional and must be a JSON object. Values are applied to the element as attributes and properties before it mounts.
|
|
88
|
+
- `--icon` is optional. `lucide:<name>` uses a Lucide icon from `src/vendor/lucide.js`. `sf:<name>` uses an Apple SF Symbol.
|
|
89
|
+
- Only one live helper is kept per component tag. Launching `ee-zodiac` again replaces the existing `ee-zodiac` helper, but `ee-zodiac` and `ee-card` can run at the same time.
|
|
90
|
+
- The popover includes a `Quit` button that closes that helper instance.
|
|
91
|
+
|
|
92
|
+
The helper compiles `mac/StatusBarApp.swift`, serves `mac/StatusPopover.html` over `http://127.0.0.1`, and loads the selected component into a `WKWebView`.
|